vue-data-ui 3.25.8 → 3.25.9
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-KBMdaOXg.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-C4XeEHJx.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CQUp12xB.js → render-common-By8J0AE-.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-CBWuUAXT.js} +62 -62
- package/dist/vue-data-ui.js +62 -62
- package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-BSbq90H3.js} +2 -2
- package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-B2Y3Wqh9.js} +2 -2
- package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DXvvjG4I.js} +2 -2
- package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-D-ZkPRta.js} +1 -1
- package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-CyW3IoYC.js} +2 -2
- package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DS0jni9A.js} +2 -2
- package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-qOONOtcv.js} +1 -1
- package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-CmeFsKhR.js} +2 -2
- package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-C7Z5BTN4.js} +58 -58
- package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-Bf68x6fb.js} +1 -1
- package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CkBPJW_T.js} +836 -824
- package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-DzDSYgVp.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-CDJumo0t.js} +2 -2
- package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-Cr__26dN.js} +2 -2
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-BlC7KxS6.js} +1 -1
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-BHsaent1.js} +2 -2
- package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-DqFUBEai.js} +2 -2
- package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DXqj9ial.js} +405 -393
- package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-B3fPAfhL.js} +1 -1
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-Mf318HvK.js} +1 -1
- package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-jkE2ENX5.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRnH2ikm.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-Blejn8LY.js} +2 -2
- package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-BPr3u7IL.js} +1 -1
- package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend-B7w4Mg8O.js} +2 -2
- package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-lVDnYEYA.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-BryoGCoc.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-BdNoLb9L.js} +2 -2
- package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-CNFD5K6z.js} +2 -2
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-BzF75YjN.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-B9ICTtoE.js} +1 -1
- package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-Am7llqdI.js} +2 -2
- package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-D6EvkM31.js} +1 -1
- package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DiQJu8Em.js} +2 -2
- package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-wUZpijpr.js} +309 -297
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DnyCE0CK.js} +2 -2
- package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BD-ighya.js} +1 -1
- package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
- package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
- package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
- package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
- package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
- package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
- package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
- package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
- package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, M as a, Nt as o, Pt as s, S as ee, Ut as te, Wt as ne, X as c, Yt as re,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { l as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as u, Teleport as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, M as a, Nt as o, Pt as s, S as ee, Ut as te, Wt as ne, X as c, Yt as re, Z as ie, Zt as ae, b as oe, ht as se, i as ce, lt as le, nt as l, q as ue, t as de, w as fe } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as me } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as he } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ge, t as _e } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as ve } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as be } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as xe } from "./img-DhGApYG0.js";
|
|
11
|
+
import { n as Se } from "./Title-CPHi-evi.js";
|
|
12
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Ee } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as De } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
16
|
+
import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as je } from "./Legend-X4kF4PvW.js";
|
|
20
|
+
import { t as Me } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
|
+
import { t as Ne } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
+
import { Fragment as u, Teleport as Pe, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Ve, onMounted as He, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as w, toRefs as Ge, unref as T, watch as Ke, withCtx as E } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-radar.vue
|
|
24
|
-
var
|
|
24
|
+
var qe = /* @__PURE__ */ e({ default: () => wt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"viewBox"
|
|
28
|
-
],
|
|
28
|
+
], $e = ["width", "height"], et = { key: 1 }, tt = [
|
|
29
29
|
"x1",
|
|
30
30
|
"y1",
|
|
31
31
|
"x2",
|
|
32
32
|
"y2",
|
|
33
33
|
"stroke",
|
|
34
34
|
"stroke-width"
|
|
35
|
-
],
|
|
35
|
+
], nt = {
|
|
36
36
|
key: 0,
|
|
37
37
|
style: { "pointer-events": "none" }
|
|
38
|
-
},
|
|
38
|
+
}, rt = [
|
|
39
39
|
"d",
|
|
40
40
|
"stroke",
|
|
41
41
|
"stroke-width"
|
|
42
|
-
],
|
|
42
|
+
], it = [
|
|
43
43
|
"d",
|
|
44
44
|
"stroke",
|
|
45
45
|
"stroke-width"
|
|
46
|
-
],
|
|
46
|
+
], at = { key: 2 }, ot = [
|
|
47
47
|
"x",
|
|
48
48
|
"y",
|
|
49
49
|
"text-anchor",
|
|
@@ -52,35 +52,35 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
52
52
|
"onMouseenter",
|
|
53
53
|
"onMouseleave",
|
|
54
54
|
"onClick"
|
|
55
|
-
],
|
|
55
|
+
], st = [
|
|
56
56
|
"points",
|
|
57
57
|
"stroke",
|
|
58
58
|
"stroke-width"
|
|
59
|
-
],
|
|
59
|
+
], ct = [
|
|
60
60
|
"points",
|
|
61
61
|
"stroke",
|
|
62
62
|
"stroke-width",
|
|
63
63
|
"fill"
|
|
64
|
-
],
|
|
64
|
+
], lt = [
|
|
65
65
|
"d",
|
|
66
66
|
"stroke",
|
|
67
67
|
"stroke-width",
|
|
68
68
|
"stroke-dasharray"
|
|
69
|
-
],
|
|
69
|
+
], ut = { key: 4 }, dt = [
|
|
70
70
|
"onMouseenter",
|
|
71
71
|
"onMouseleave",
|
|
72
72
|
"onClick"
|
|
73
|
-
],
|
|
73
|
+
], ft = [
|
|
74
74
|
"cx",
|
|
75
75
|
"cy",
|
|
76
76
|
"r"
|
|
77
|
-
],
|
|
77
|
+
], pt = [
|
|
78
78
|
"cx",
|
|
79
79
|
"cy",
|
|
80
80
|
"fill",
|
|
81
81
|
"r",
|
|
82
82
|
"stroke"
|
|
83
|
-
],
|
|
83
|
+
], mt = {
|
|
84
84
|
key: 0,
|
|
85
85
|
style: {
|
|
86
86
|
position: "absolute",
|
|
@@ -90,23 +90,23 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
90
90
|
},
|
|
91
91
|
"data-dom-to-png-ignore": "",
|
|
92
92
|
"aria-hidden": "true"
|
|
93
|
-
},
|
|
93
|
+
}, ht = {
|
|
94
94
|
key: 5,
|
|
95
95
|
class: "vue-data-ui-watermark"
|
|
96
|
-
},
|
|
96
|
+
}, gt = ["id"], _t = ["onClick"], vt = { class: "vue-data-ui-legend-item" }, yt = [
|
|
97
97
|
"stroke",
|
|
98
98
|
"stroke-width",
|
|
99
99
|
"stroke-dasharray"
|
|
100
|
-
],
|
|
100
|
+
], bt = {
|
|
101
101
|
key: 0,
|
|
102
102
|
style: {
|
|
103
103
|
"max-width": "200px",
|
|
104
104
|
margin: "0 auto"
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, xt = {
|
|
107
107
|
class: "vue-ui-radar-tooltip-datalabel",
|
|
108
108
|
style: { width: "100%" }
|
|
109
|
-
},
|
|
109
|
+
}, St = { class: "vue-ui-radar-tooltip-datalabel-name" }, Ct = { key: 0 }, wt = /*#__PURE__*/ Ce({
|
|
110
110
|
__name: "vue-ui-radar",
|
|
111
111
|
props: {
|
|
112
112
|
config: {
|
|
@@ -123,12 +123,12 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
emits: ["selectLegend", "copyAlt"],
|
|
126
|
-
setup(e, { expose:
|
|
127
|
-
let
|
|
126
|
+
setup(e, { expose: Ce, emit: qe }) {
|
|
127
|
+
let wt = g(() => import("./Tooltip-hhrkQ3Lk.js")), Tt = g(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Et = g(() => import("./vue-ui-sparkbar-lVDnYEYA.js").then((e) => e.n)), Dt = g(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Ot = g(() => import("./DataTable-oiM9uWrQ.js")), kt = g(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), At = g(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), jt = g(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), Mt = g(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_radar: Nt } = me(), { isThemeValid: Pt, warnInvalidTheme: Ft } = ye(), D = e, It = d(() => !!D.dataset && Object.keys(D.dataset).length), O = x(ue()), Lt = x(!1), Rt = x(""), zt = x(0), k = x(null), Bt = x(null), Vt = x(null), Ht = x(null), Ut = x(null), Wt = x(0), Gt = x(0), Kt = x(0), qt = x(!1), Jt = x(null), Yt = x(null), A = x(null), Xt = x({
|
|
128
128
|
x: 0,
|
|
129
129
|
y: 0
|
|
130
|
-
}),
|
|
131
|
-
|
|
130
|
+
}), Zt = x("pointer"), Qt = x(!1), j = x(on()), M = d(() => j.value.userOptions), N = d(() => j.value.style.chart.layout.labels), P = d(() => j.value.style.chart.layout), F = d(() => j.value.style.chart.tooltip), I = d(() => j.value.style.chart);
|
|
131
|
+
pe({
|
|
132
132
|
config: () => j.value,
|
|
133
133
|
dataset: () => D.dataset,
|
|
134
134
|
component: "VueUiRadar",
|
|
@@ -172,7 +172,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
});
|
|
175
|
-
let L = d(() => j.value.userOptions.useCursorPointer),
|
|
175
|
+
let L = d(() => j.value.userOptions.useCursorPointer), $t = d(() => ae({
|
|
176
176
|
defaultConfig: {
|
|
177
177
|
userOptions: { show: !1 },
|
|
178
178
|
table: { show: !1 },
|
|
@@ -188,13 +188,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
188
188
|
} }
|
|
189
189
|
},
|
|
190
190
|
userConfig: j.value.skeletonConfig ?? {}
|
|
191
|
-
})), { loading:
|
|
192
|
-
...
|
|
191
|
+
})), { loading: en, FINAL_DATASET: R } = ge({
|
|
192
|
+
...Ge(D),
|
|
193
193
|
FINAL_CONFIG: j,
|
|
194
|
-
prepareConfig:
|
|
194
|
+
prepareConfig: on,
|
|
195
195
|
callback: () => {
|
|
196
196
|
Promise.resolve().then(async () => {
|
|
197
|
-
await
|
|
197
|
+
await ze(), U.value.showTable = j.value.table.show;
|
|
198
198
|
});
|
|
199
199
|
},
|
|
200
200
|
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
@@ -235,12 +235,12 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
235
235
|
}
|
|
236
236
|
]
|
|
237
237
|
},
|
|
238
|
-
skeletonConfig:
|
|
238
|
+
skeletonConfig: ae({
|
|
239
239
|
defaultConfig: j.value,
|
|
240
|
-
userConfig:
|
|
240
|
+
userConfig: $t.value
|
|
241
241
|
})
|
|
242
|
-
}), { userOptionsVisible:
|
|
243
|
-
function
|
|
242
|
+
}), { userOptionsVisible: tn, setUserOptionsVisibility: nn, keepUserOptionState: rn } = ke({ config: j.value }), { svgRef: z } = Ae({ config: I.value.title });
|
|
243
|
+
function an(e) {
|
|
244
244
|
return {
|
|
245
245
|
...e,
|
|
246
246
|
style: {
|
|
@@ -265,17 +265,17 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
let e =
|
|
268
|
+
function on() {
|
|
269
|
+
let e = an(ve({
|
|
270
270
|
userConfig: D.config,
|
|
271
|
-
defaultConfig:
|
|
271
|
+
defaultConfig: Nt
|
|
272
272
|
})), t = e.theme;
|
|
273
273
|
if (!t) return e;
|
|
274
|
-
if (!
|
|
275
|
-
let n =
|
|
276
|
-
userConfig:
|
|
274
|
+
if (!Pt.value(e)) return Ft(e), e;
|
|
275
|
+
let n = ve({
|
|
276
|
+
userConfig: Ne[t] || D.config,
|
|
277
277
|
defaultConfig: e
|
|
278
|
-
}), r =
|
|
278
|
+
}), r = ve({
|
|
279
279
|
userConfig: D.config,
|
|
280
280
|
defaultConfig: n
|
|
281
281
|
});
|
|
@@ -284,46 +284,58 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
284
284
|
customPalette: r.customPalette.length ? r.customPalette : re[t] || i
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
function sn(e) {
|
|
288
|
+
let t = ie(e);
|
|
289
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
290
|
+
}
|
|
291
|
+
let cn = sn(D.config);
|
|
292
|
+
Ke(() => D.config, (e, t) => {
|
|
293
|
+
let n = sn(e), r = n !== cn;
|
|
294
|
+
cn = n;
|
|
295
|
+
let i = on();
|
|
296
|
+
if (!r) {
|
|
297
|
+
j.value.style.chart.tooltip = i.style.chart.tooltip, U.value.showTooltip = j.value.style.chart.tooltip.show;
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
j.value = i, tn.value = !j.value.userOptions.showOnChartHover, ln(), Wt.value += 1, Gt.value += 1, Kt.value += 1, U.value.dataLabels.show = N.value.dataLabels.show, U.value.showTable = j.value.table.show, U.value.showTooltip = F.value ? F.value.show : !1;
|
|
289
301
|
}, { deep: !0 });
|
|
290
|
-
let B =
|
|
291
|
-
function
|
|
302
|
+
let B = We(null), V = We(null), H = d(() => j.value.debug);
|
|
303
|
+
function ln() {
|
|
292
304
|
if (s(D.dataset) && l({
|
|
293
305
|
componentName: "VueUiRadar",
|
|
294
306
|
type: "dataset",
|
|
295
307
|
debug: H.value
|
|
296
308
|
}), j.value.responsive) {
|
|
297
|
-
let e =
|
|
298
|
-
let { width: e, height: t } =
|
|
309
|
+
let e = we(() => {
|
|
310
|
+
let { width: e, height: t } = Te({
|
|
299
311
|
chart: k.value,
|
|
300
|
-
title: I.value.title.text ?
|
|
301
|
-
legend: I.value.legend.show ?
|
|
302
|
-
source:
|
|
303
|
-
noTitle:
|
|
312
|
+
title: I.value.title.text ? Bt.value : null,
|
|
313
|
+
legend: I.value.legend.show ? Vt.value : null,
|
|
314
|
+
source: Ht.value,
|
|
315
|
+
noTitle: Ut.value
|
|
304
316
|
});
|
|
305
317
|
requestAnimationFrame(() => {
|
|
306
|
-
W.value.width = e, W.value.height = t,
|
|
318
|
+
W.value.width = e, W.value.height = t, Rn();
|
|
307
319
|
});
|
|
308
320
|
});
|
|
309
321
|
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = k.value.parentNode, B.value.observe(V.value);
|
|
310
322
|
}
|
|
311
|
-
|
|
323
|
+
Rn();
|
|
312
324
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}),
|
|
325
|
+
He(() => {
|
|
326
|
+
qt.value = !0, ln();
|
|
327
|
+
}), Ve(() => {
|
|
316
328
|
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
317
329
|
});
|
|
318
|
-
let { isPrinting:
|
|
330
|
+
let { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = he({
|
|
319
331
|
elementId: `vue-ui-radar_${O.value}`,
|
|
320
332
|
fileName: I.value.title.text || "vue-ui-radar",
|
|
321
333
|
options: j.value.userOptions.print
|
|
322
|
-
}),
|
|
334
|
+
}), mn = d(() => j.value.userOptions.show && !I.value.title.text), hn = d(() => fe(j.value.customPalette)), U = x({
|
|
323
335
|
dataLabels: { show: N.value.dataLabels.show },
|
|
324
336
|
showTable: j.value.table.show,
|
|
325
337
|
showTooltip: F.value.show
|
|
326
|
-
}),
|
|
338
|
+
}), gn = d(() => ({ style: {
|
|
327
339
|
backgroundColor: "#FFFFFF00",
|
|
328
340
|
animation: {
|
|
329
341
|
show: F.value.animation.show,
|
|
@@ -340,34 +352,34 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
340
352
|
} })), W = x({
|
|
341
353
|
height: 312,
|
|
342
354
|
width: 512
|
|
343
|
-
}),
|
|
344
|
-
function
|
|
355
|
+
}), _n = qe, G = x([]), vn = x(null), K = x(!1);
|
|
356
|
+
function yn() {
|
|
345
357
|
G.value.length ? G.value = [] : X.value.forEach((e, t) => {
|
|
346
358
|
G.value.push(t);
|
|
347
|
-
}),
|
|
359
|
+
}), bn();
|
|
348
360
|
}
|
|
349
|
-
function
|
|
350
|
-
|
|
361
|
+
function bn() {
|
|
362
|
+
_n("selectLegend", X.value.filter((e, t) => !G.value.includes(t)).map((e) => ({
|
|
351
363
|
name: e.name,
|
|
352
364
|
color: e.color,
|
|
353
365
|
proportion: e.totalProportion
|
|
354
366
|
})));
|
|
355
367
|
}
|
|
356
|
-
function
|
|
357
|
-
K.value = !0, G.value.includes(e) ? (
|
|
358
|
-
K.value = !1,
|
|
368
|
+
function xn(e) {
|
|
369
|
+
K.value = !0, G.value.includes(e) ? (vn.value = e, G.value = G.value.filter((t) => t !== e), setTimeout(() => {
|
|
370
|
+
K.value = !1, vn.value = null;
|
|
359
371
|
}, 500)) : (G.value.push(e), setTimeout(() => {
|
|
360
372
|
K.value = !1;
|
|
361
|
-
}, 500)),
|
|
373
|
+
}, 500)), bn();
|
|
362
374
|
}
|
|
363
|
-
function
|
|
375
|
+
function Sn() {
|
|
364
376
|
return X.value.map((e) => ({
|
|
365
377
|
name: e.name,
|
|
366
378
|
color: e.color,
|
|
367
379
|
proportion: e.totalProportion
|
|
368
380
|
}));
|
|
369
381
|
}
|
|
370
|
-
function
|
|
382
|
+
function Cn() {
|
|
371
383
|
let e = R.value;
|
|
372
384
|
if ([null, void 0].includes(e?.categories)) {
|
|
373
385
|
l({
|
|
@@ -388,7 +400,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
388
400
|
property: "categories",
|
|
389
401
|
debug: H.value
|
|
390
402
|
}) : H.value && e.categories.forEach((e, t) => {
|
|
391
|
-
|
|
403
|
+
se({
|
|
392
404
|
datasetObject: e,
|
|
393
405
|
requiredAttributes: ["name"]
|
|
394
406
|
}).forEach((e) => {
|
|
@@ -405,7 +417,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
405
417
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
406
418
|
debug: H.value
|
|
407
419
|
}) : H.value && e.series.forEach((e, t) => {
|
|
408
|
-
|
|
420
|
+
se({
|
|
409
421
|
datasetObject: e,
|
|
410
422
|
requiredAttributes: [
|
|
411
423
|
"name",
|
|
@@ -423,12 +435,12 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
423
435
|
});
|
|
424
436
|
});
|
|
425
437
|
}
|
|
426
|
-
|
|
438
|
+
Ke(() => R.value, () => Cn(), {
|
|
427
439
|
deep: !0,
|
|
428
440
|
immediate: !0
|
|
429
441
|
});
|
|
430
442
|
let q = d(() => {
|
|
431
|
-
let e = Array.isArray(R.value?.categories) ? R.value.categories : [], t =
|
|
443
|
+
let e = Array.isArray(R.value?.categories) ? R.value.categories : [], t = hn.value ?? i;
|
|
432
444
|
return e.map((e, n) => ({
|
|
433
445
|
name: e?.name ?? "",
|
|
434
446
|
categoryId: `radar_category_${O.value}_${n}`,
|
|
@@ -438,60 +450,60 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
438
450
|
}));
|
|
439
451
|
}), J = d(() => R.value.series.map((e, t) => ({
|
|
440
452
|
...e,
|
|
441
|
-
color: ee(e.color) ||
|
|
453
|
+
color: ee(e.color) || hn.value[t] || i[t] || i[t % i.length],
|
|
442
454
|
serieId: `radar_serie_${O.value}_${t}`,
|
|
443
455
|
formatter: e.formatter || null,
|
|
444
456
|
absoluteIndex: t
|
|
445
457
|
})));
|
|
446
|
-
function
|
|
458
|
+
function wn(e) {
|
|
447
459
|
return J.value.length ? X.value.find((t) => t.name === e) || (H.value && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (H.value && console.warn("VueUiRadar - There are no series to show."), null);
|
|
448
460
|
}
|
|
449
|
-
function
|
|
450
|
-
let t =
|
|
451
|
-
t !== null && G.value.includes(t.absoluteIndex) &&
|
|
461
|
+
function Tn(e) {
|
|
462
|
+
let t = wn(e);
|
|
463
|
+
t !== null && G.value.includes(t.absoluteIndex) && xn(t.absoluteIndex);
|
|
452
464
|
}
|
|
453
|
-
function
|
|
454
|
-
let t =
|
|
455
|
-
t !== null && (G.value.includes(t.absoluteIndex) ||
|
|
465
|
+
function En(e) {
|
|
466
|
+
let t = wn(e);
|
|
467
|
+
t !== null && (G.value.includes(t.absoluteIndex) || xn(t.absoluteIndex));
|
|
456
468
|
}
|
|
457
|
-
let
|
|
458
|
-
function
|
|
459
|
-
return P.value.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target ||
|
|
469
|
+
let Dn = d(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
|
|
470
|
+
function On(e) {
|
|
471
|
+
return P.value.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || Dn.value || 1;
|
|
460
472
|
}
|
|
461
|
-
let
|
|
462
|
-
let n =
|
|
463
|
-
return
|
|
473
|
+
let kn = d(() => J.value.map((e, t) => {
|
|
474
|
+
let n = Pn.value.coordinates[t];
|
|
475
|
+
return zn({
|
|
464
476
|
centerX: W.value.width / 2,
|
|
465
477
|
centerY: W.value.height / 2,
|
|
466
478
|
apexX: n.x,
|
|
467
479
|
apexY: n.y,
|
|
468
|
-
proportion: (e.target || 0) /
|
|
480
|
+
proportion: (e.target || 0) / On(e)
|
|
469
481
|
});
|
|
470
|
-
})),
|
|
482
|
+
})), An = d(() => J.value.length), jn = d(() => Math.min(W.value.width, W.value.height) / 3), Mn = d(() => {
|
|
471
483
|
let e = Number(P.value.plots.radius ?? 0);
|
|
472
484
|
return Math.max(Number.isFinite(e) ? e * 2.5 : 0, 10);
|
|
473
|
-
}),
|
|
485
|
+
}), Nn = d(() => {
|
|
474
486
|
let e = Number(P.value.grid.rotation ?? 0);
|
|
475
487
|
return Number.isFinite(e) ? e * Math.PI / 180 : 0;
|
|
476
|
-
}),
|
|
488
|
+
}), Pn = d(() => a({
|
|
477
489
|
plot: {
|
|
478
490
|
x: W.value.width / 2,
|
|
479
491
|
y: W.value.height / 2
|
|
480
492
|
},
|
|
481
|
-
radius:
|
|
482
|
-
sides:
|
|
483
|
-
rotation:
|
|
484
|
-
})),
|
|
493
|
+
radius: jn.value,
|
|
494
|
+
sides: An.value,
|
|
495
|
+
rotation: Nn.value
|
|
496
|
+
})), Fn = d(() => {
|
|
485
497
|
let e = [];
|
|
486
|
-
for (let t = 0; t <
|
|
498
|
+
for (let t = 0; t < jn.value; t += jn.value / P.value.grid.graduations) e.push(t);
|
|
487
499
|
return e;
|
|
488
|
-
}), Y = d(() =>
|
|
489
|
-
let n = J.value[t], r = J.value[t].values.map((t) =>
|
|
500
|
+
}), Y = d(() => Pn.value.coordinates.map((e, t) => {
|
|
501
|
+
let n = J.value[t], r = J.value[t].values.map((t) => zn({
|
|
490
502
|
centerX: W.value.width / 2,
|
|
491
503
|
centerY: W.value.height / 2,
|
|
492
504
|
apexX: e.x,
|
|
493
505
|
apexY: e.y,
|
|
494
|
-
proportion: t /
|
|
506
|
+
proportion: t / On(n)
|
|
495
507
|
}));
|
|
496
508
|
return {
|
|
497
509
|
...e,
|
|
@@ -500,11 +512,11 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
500
512
|
};
|
|
501
513
|
}).map((e) => ({
|
|
502
514
|
...e,
|
|
503
|
-
labelX:
|
|
504
|
-
labelY:
|
|
505
|
-
labelAnchor:
|
|
515
|
+
labelX: In(e).x,
|
|
516
|
+
labelY: In(e).y,
|
|
517
|
+
labelAnchor: In(e).anchor
|
|
506
518
|
})));
|
|
507
|
-
function
|
|
519
|
+
function In({ x: e, y: t }) {
|
|
508
520
|
let n = W.value.width / 2, r = W.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(N.value.dataLabels.offset ?? 0), ee = 20 + (Number.isFinite(s) ? s : 0);
|
|
509
521
|
if (!o) return {
|
|
510
522
|
x: e,
|
|
@@ -518,33 +530,33 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
518
530
|
anchor: c
|
|
519
531
|
};
|
|
520
532
|
}
|
|
521
|
-
let
|
|
533
|
+
let Ln = d({
|
|
522
534
|
get: () => N.value.dataLabels.fontSize,
|
|
523
535
|
set: (e) => e
|
|
524
|
-
}), { autoSizeLabels:
|
|
536
|
+
}), { autoSizeLabels: Rn } = Me({
|
|
525
537
|
svgRef: z,
|
|
526
538
|
fontSize: N.value.dataLabels.fontSize,
|
|
527
539
|
minFontSize: 6,
|
|
528
|
-
sizeRef:
|
|
540
|
+
sizeRef: Ln,
|
|
529
541
|
labelClass: ".vue-ui-radar-apex-label"
|
|
530
542
|
});
|
|
531
|
-
function
|
|
543
|
+
function zn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
532
544
|
return {
|
|
533
545
|
x: e + (n - e) * i,
|
|
534
546
|
y: t + (r - t) * i
|
|
535
547
|
};
|
|
536
548
|
}
|
|
537
549
|
let X = d(() => {
|
|
538
|
-
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
550
|
+
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || Dn.value)));
|
|
539
551
|
return q.value.map((t, n) => {
|
|
540
|
-
let r =
|
|
552
|
+
let r = oe(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
|
|
541
553
|
return {
|
|
542
554
|
...t,
|
|
543
555
|
absoluteIndex: n,
|
|
544
556
|
totalProportion: r,
|
|
545
557
|
shape: "circle",
|
|
546
558
|
opacity: G.value.includes(n) ? .5 : 1,
|
|
547
|
-
segregate: () =>
|
|
559
|
+
segregate: () => xn(n),
|
|
548
560
|
isSegregated: G.value.includes(n),
|
|
549
561
|
display: `${t.name}: ${c({
|
|
550
562
|
v: (r ?? 0) * 100,
|
|
@@ -553,7 +565,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
553
565
|
})}`
|
|
554
566
|
};
|
|
555
567
|
});
|
|
556
|
-
}),
|
|
568
|
+
}), Bn = d(() => ({
|
|
557
569
|
cy: "radar-div-legend",
|
|
558
570
|
backgroundColor: I.value.legend.backgroundColor,
|
|
559
571
|
color: I.value.legend.color,
|
|
@@ -576,13 +588,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
576
588
|
head: e,
|
|
577
589
|
body: R.value.series.map((e) => [
|
|
578
590
|
e.name,
|
|
579
|
-
|
|
591
|
+
ce(e.formatter, e.target, c({
|
|
580
592
|
p: e.prefix,
|
|
581
593
|
v: e.target,
|
|
582
594
|
s: e.suffix,
|
|
583
595
|
r: j.value.table.td.roundingValue
|
|
584
596
|
})),
|
|
585
|
-
...e.values.map((t, n) => `${
|
|
597
|
+
...e.values.map((t, n) => `${ce(e.formatter, t, c({
|
|
586
598
|
p: q.value[n]?.prefix ?? "",
|
|
587
599
|
v: t,
|
|
588
600
|
s: q.value[n]?.suffix ?? "",
|
|
@@ -608,26 +620,26 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
608
620
|
},
|
|
609
621
|
colNames: e
|
|
610
622
|
};
|
|
611
|
-
}), Q = x(null),
|
|
612
|
-
function
|
|
613
|
-
|
|
623
|
+
}), Q = x(null), Vn = x([]), Hn = x(null);
|
|
624
|
+
function Un(e, t) {
|
|
625
|
+
Lt.value = !1, Q.value = null, A.value = null, Zt.value = "pointer", j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
614
626
|
datapoint: e,
|
|
615
627
|
seriesIndex: t
|
|
616
628
|
});
|
|
617
629
|
}
|
|
618
|
-
function
|
|
630
|
+
function Wn(e, t) {
|
|
619
631
|
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
620
632
|
datapoint: e,
|
|
621
633
|
seriesIndex: t
|
|
622
634
|
});
|
|
623
635
|
}
|
|
624
|
-
function
|
|
636
|
+
function Gn(e, t, r = "pointer") {
|
|
625
637
|
j.value.events.datapointEnter && j.value.events.datapointEnter({
|
|
626
638
|
datapoint: e,
|
|
627
639
|
seriesIndex: t
|
|
628
|
-
}),
|
|
640
|
+
}), Zt.value = r, A.value = t;
|
|
629
641
|
let i = q.value.slice();
|
|
630
|
-
|
|
642
|
+
Vn.value = [], Q.value = t, Lt.value = !0, Hn.value = {
|
|
631
643
|
datapoint: e,
|
|
632
644
|
seriesIndex: t,
|
|
633
645
|
series: {
|
|
@@ -638,7 +650,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
638
650
|
config: j.value
|
|
639
651
|
};
|
|
640
652
|
let a = F.value.customFormat;
|
|
641
|
-
if (n(a) &&
|
|
653
|
+
if (n(a) && le(() => a({
|
|
642
654
|
seriesIndex: t,
|
|
643
655
|
datapoint: e,
|
|
644
656
|
series: {
|
|
@@ -648,7 +660,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
648
660
|
},
|
|
649
661
|
config: j.value
|
|
650
662
|
}))) {
|
|
651
|
-
|
|
663
|
+
Rt.value = a({
|
|
652
664
|
seriesIndex: t,
|
|
653
665
|
datapoint: e,
|
|
654
666
|
series: {
|
|
@@ -660,9 +672,9 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
660
672
|
});
|
|
661
673
|
return;
|
|
662
674
|
}
|
|
663
|
-
|
|
675
|
+
Rt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
664
676
|
for (let t = 0; t < e.values.length; t += 1) if (!G.value.includes(t)) {
|
|
665
|
-
let n = i[t], r = e.values[t], a = isNaN(r / e.target) ? 0 : r / e.target * 100, o =
|
|
677
|
+
let n = i[t], r = e.values[t], a = isNaN(r / e.target) ? 0 : r / e.target * 100, o = ce(e.formatter, r, c({
|
|
666
678
|
p: q.value[t].prefix,
|
|
667
679
|
v: r,
|
|
668
680
|
s: q.value[t].suffix,
|
|
@@ -672,7 +684,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
672
684
|
s: "%",
|
|
673
685
|
r: F.value.roundingPercentage
|
|
674
686
|
}), ee = F.value.showValue && F.value.showPercentage ? `${o} (${s})` : F.value.showValue && !F.value.showPercentage ? o : !F.value.showValue && F.value.showPercentage ? `${s}` : "";
|
|
675
|
-
|
|
687
|
+
Vn.value.push({
|
|
676
688
|
name: n?.name ?? `#${t + 1}`,
|
|
677
689
|
value: e.values[t] / e.target * 100,
|
|
678
690
|
color: n?.color,
|
|
@@ -683,8 +695,8 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
683
695
|
});
|
|
684
696
|
}
|
|
685
697
|
}
|
|
686
|
-
function
|
|
687
|
-
|
|
698
|
+
function Kn(e = null) {
|
|
699
|
+
ze(() => {
|
|
688
700
|
let n = [
|
|
689
701
|
[I.value.title.text],
|
|
690
702
|
[I.value.title.subtitle.text],
|
|
@@ -705,22 +717,22 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
705
717
|
});
|
|
706
718
|
}
|
|
707
719
|
let $ = x(!1);
|
|
708
|
-
function
|
|
709
|
-
$.value = e,
|
|
720
|
+
function qn(e) {
|
|
721
|
+
$.value = e, zt.value += 1;
|
|
710
722
|
}
|
|
711
|
-
function
|
|
723
|
+
function Jn() {
|
|
712
724
|
U.value.showTable = !U.value.showTable;
|
|
713
725
|
}
|
|
714
|
-
function
|
|
726
|
+
function Yn() {
|
|
715
727
|
U.value.showTooltip = !U.value.showTooltip;
|
|
716
728
|
}
|
|
717
|
-
let
|
|
718
|
-
function
|
|
719
|
-
|
|
729
|
+
let Xn = x(!1);
|
|
730
|
+
function Zn() {
|
|
731
|
+
Xn.value = !Xn.value;
|
|
720
732
|
}
|
|
721
|
-
async function
|
|
733
|
+
async function Qn({ scale: e = 2 } = {}) {
|
|
722
734
|
if (!k.value) return;
|
|
723
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
735
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
724
736
|
domElement: k.value,
|
|
725
737
|
base64: !0,
|
|
726
738
|
img: !0,
|
|
@@ -735,10 +747,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
735
747
|
aspectRatio: r
|
|
736
748
|
};
|
|
737
749
|
}
|
|
738
|
-
let
|
|
750
|
+
let $n = d(() => {
|
|
739
751
|
let e = j.value.table.useDialog && !j.value.table.show, t = U.value.showTable;
|
|
740
752
|
return {
|
|
741
|
-
component: e ?
|
|
753
|
+
component: e ? Mt : Dt,
|
|
742
754
|
title: `${I.value.title.text}${I.value.title.subtitle.text ? `: ${I.value.title.subtitle.text}` : ""}`,
|
|
743
755
|
props: e ? {
|
|
744
756
|
backgroundColor: j.value.table.th.backgroundColor,
|
|
@@ -766,26 +778,26 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
766
778
|
}
|
|
767
779
|
};
|
|
768
780
|
});
|
|
769
|
-
|
|
770
|
-
j.value.table.show || (e && j.value.table.useDialog &&
|
|
781
|
+
Ke(() => U.value.showTable, (e) => {
|
|
782
|
+
j.value.table.show || (e && j.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
|
|
771
783
|
});
|
|
772
|
-
function
|
|
773
|
-
U.value.showTable = !1,
|
|
784
|
+
function er() {
|
|
785
|
+
U.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
774
786
|
}
|
|
775
|
-
let
|
|
787
|
+
let tr = d(() => X.value.map((e) => ({
|
|
776
788
|
...e,
|
|
777
789
|
name: e.display
|
|
778
|
-
}))),
|
|
790
|
+
}))), nr = d(() => I.value.backgroundColor), rr = d(() => I.value.legend), ir = d(() => I.value.title), { isCallbackImaging: ar, isCallbackSvg: or, generateSvg: sr, onGenerateImage: cr } = be({
|
|
779
791
|
svg: z,
|
|
780
|
-
title:
|
|
781
|
-
legend:
|
|
782
|
-
legendItems:
|
|
783
|
-
backgroundColor:
|
|
792
|
+
title: ir,
|
|
793
|
+
legend: rr,
|
|
794
|
+
legendItems: tr,
|
|
795
|
+
backgroundColor: nr,
|
|
784
796
|
getSvgCallback: () => j.value.userOptions.callbacks.svg,
|
|
785
|
-
generateImage:
|
|
797
|
+
generateImage: pn
|
|
786
798
|
});
|
|
787
|
-
async function
|
|
788
|
-
if (
|
|
799
|
+
async function lr() {
|
|
800
|
+
if (_n("copyAlt", {
|
|
789
801
|
config: j.value,
|
|
790
802
|
dataset: Y.value
|
|
791
803
|
}), !j.value.userOptions.callbacks.altCopy) {
|
|
@@ -797,78 +809,78 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
797
809
|
dataset: Y.value
|
|
798
810
|
}));
|
|
799
811
|
}
|
|
800
|
-
function
|
|
801
|
-
A.value = null,
|
|
812
|
+
function ur() {
|
|
813
|
+
A.value = null, Qt.value = !0;
|
|
802
814
|
}
|
|
803
|
-
function
|
|
804
|
-
A.value = null,
|
|
815
|
+
function dr() {
|
|
816
|
+
A.value = null, Zt.value = "pointer", Lt.value = !1, Q.value = null, Qt.value = !1;
|
|
805
817
|
}
|
|
806
|
-
function
|
|
818
|
+
function fr(e) {
|
|
807
819
|
if (!Number.isFinite(e) || !z.value) return;
|
|
808
820
|
let t = Y.value[e];
|
|
809
821
|
if (!t) return;
|
|
810
822
|
let n = z.value.getBoundingClientRect();
|
|
811
|
-
|
|
823
|
+
Xt.value = {
|
|
812
824
|
x: n.left + t.labelX / W.value.width * n.width,
|
|
813
825
|
y: n.top + t.labelY / W.value.height * n.height
|
|
814
826
|
};
|
|
815
827
|
}
|
|
816
|
-
function
|
|
817
|
-
if (!z.value ||
|
|
828
|
+
function pr(e) {
|
|
829
|
+
if (!z.value || Xn.value || document.activeElement !== z.value || !Y.value.length) return;
|
|
818
830
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
819
831
|
if (!t && !n && !r && !i) return;
|
|
820
832
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
821
|
-
A.value = null,
|
|
833
|
+
A.value = null, Zt.value = "pointer", Lt.value = !1, Q.value = null;
|
|
822
834
|
return;
|
|
823
835
|
}
|
|
824
836
|
if (r) {
|
|
825
837
|
if (A.value === null) return;
|
|
826
838
|
let e = Y.value[A.value];
|
|
827
839
|
if (!e) return;
|
|
828
|
-
|
|
840
|
+
Wn(e, A.value);
|
|
829
841
|
return;
|
|
830
842
|
}
|
|
831
843
|
let a = A.value;
|
|
832
844
|
a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1));
|
|
833
845
|
let o = Y.value[a];
|
|
834
|
-
o && (A.value = a,
|
|
846
|
+
o && (A.value = a, fr(a), Gn(o, a, "keyboard"));
|
|
835
847
|
}
|
|
836
|
-
let
|
|
848
|
+
let mr = d(() => ({
|
|
837
849
|
headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
838
850
|
rows: Z.value?.body ?? []
|
|
839
851
|
}));
|
|
840
|
-
return
|
|
841
|
-
getData:
|
|
842
|
-
getImage:
|
|
843
|
-
generatePdf:
|
|
844
|
-
generateCsv:
|
|
845
|
-
generateImage:
|
|
846
|
-
generateSvg:
|
|
847
|
-
hideSeries:
|
|
848
|
-
showSeries:
|
|
849
|
-
toggleTable:
|
|
850
|
-
toggleTooltip:
|
|
851
|
-
toggleAnnotator:
|
|
852
|
-
toggleFullscreen:
|
|
853
|
-
copyAlt:
|
|
852
|
+
return Ce({
|
|
853
|
+
getData: Sn,
|
|
854
|
+
getImage: Qn,
|
|
855
|
+
generatePdf: fn,
|
|
856
|
+
generateCsv: Kn,
|
|
857
|
+
generateImage: pn,
|
|
858
|
+
generateSvg: sr,
|
|
859
|
+
hideSeries: En,
|
|
860
|
+
showSeries: Tn,
|
|
861
|
+
toggleTable: Jn,
|
|
862
|
+
toggleTooltip: Yn,
|
|
863
|
+
toggleAnnotator: Zn,
|
|
864
|
+
toggleFullscreen: qn,
|
|
865
|
+
copyAlt: lr
|
|
854
866
|
}), (e, t) => (b(), m("div", {
|
|
855
|
-
class:
|
|
867
|
+
class: Be(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
856
868
|
ref_key: "radarChart",
|
|
857
869
|
ref: k,
|
|
858
870
|
id: `vue-ui-radar_${O.value}`,
|
|
859
871
|
style: y(`font-family:${j.value.style.fontFamily};width:100%; ${j.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.backgroundColor}`),
|
|
860
|
-
onMouseenter: t[2] ||= () => T(
|
|
861
|
-
onMouseleave: t[3] ||= () => T(
|
|
872
|
+
onMouseenter: t[2] ||= () => T(nn)(!0),
|
|
873
|
+
onMouseleave: t[3] ||= () => T(nn)(!1)
|
|
862
874
|
}, [
|
|
863
875
|
h("div", {
|
|
864
876
|
id: `chart-instructions-${O.value}`,
|
|
865
877
|
class: "sr-only"
|
|
866
|
-
}, [h("p", null, w(j.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
867
|
-
|
|
878
|
+
}, [h("p", null, w(j.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
879
|
+
mr.value?.rows?.length ? (b(), f(Oe, {
|
|
868
880
|
key: 0,
|
|
869
881
|
uid: O.value,
|
|
870
|
-
head:
|
|
871
|
-
body:
|
|
882
|
+
head: mr.value.headers,
|
|
883
|
+
body: mr.value.rows,
|
|
872
884
|
notice: j.value.a11y.translations.tableAvailable,
|
|
873
885
|
caption: j.value.a11y.translations.tableCaption
|
|
874
886
|
}, null, 8, [
|
|
@@ -878,15 +890,15 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
878
890
|
"notice",
|
|
879
891
|
"caption"
|
|
880
892
|
])) : p("", !0),
|
|
881
|
-
M.value.buttons.annotator ? (b(), f(T(
|
|
893
|
+
M.value.buttons.annotator ? (b(), f(T(kt), {
|
|
882
894
|
key: 1,
|
|
883
895
|
svgRef: T(z),
|
|
884
896
|
backgroundColor: I.value.backgroundColor,
|
|
885
897
|
color: I.value.color,
|
|
886
|
-
active:
|
|
898
|
+
active: Xn.value,
|
|
887
899
|
isCursorPointer: L.value,
|
|
888
900
|
palette: M.value.annotatorPalette,
|
|
889
|
-
onClose:
|
|
901
|
+
onClose: Zn
|
|
890
902
|
}, {
|
|
891
903
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
892
904
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
@@ -903,20 +915,20 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
903
915
|
"isCursorPointer",
|
|
904
916
|
"palette"
|
|
905
917
|
])) : p("", !0),
|
|
906
|
-
|
|
918
|
+
mn.value ? (b(), m("div", {
|
|
907
919
|
key: 2,
|
|
908
920
|
ref_key: "noTitle",
|
|
909
|
-
ref:
|
|
921
|
+
ref: Ut,
|
|
910
922
|
class: "vue-data-ui-no-title-space",
|
|
911
923
|
style: "height:36px; width: 100%;background:transparent"
|
|
912
924
|
}, null, 512)) : p("", !0),
|
|
913
925
|
I.value.title.text ? (b(), m("div", {
|
|
914
926
|
key: 3,
|
|
915
927
|
ref_key: "chartTitle",
|
|
916
|
-
ref:
|
|
928
|
+
ref: Bt,
|
|
917
929
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
918
|
-
}, [(b(), f(
|
|
919
|
-
key: `title_${
|
|
930
|
+
}, [(b(), f(Se, {
|
|
931
|
+
key: `title_${Wt.value}`,
|
|
920
932
|
config: {
|
|
921
933
|
title: {
|
|
922
934
|
cy: "radar-div-title",
|
|
@@ -928,15 +940,15 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
928
940
|
}
|
|
929
941
|
}
|
|
930
942
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
931
|
-
h("div", { id: `legend-top-${O.value}` }, null, 8,
|
|
932
|
-
M.value.show &&
|
|
943
|
+
h("div", { id: `legend-top-${O.value}` }, null, 8, Xe),
|
|
944
|
+
M.value.show && It.value && (T(rn) || T(tn)) ? (b(), f(T(At), {
|
|
933
945
|
ref_key: "userOptionsRef",
|
|
934
|
-
ref:
|
|
935
|
-
key: `user_options_${
|
|
946
|
+
ref: Yt,
|
|
947
|
+
key: `user_options_${zt.value}`,
|
|
936
948
|
backgroundColor: I.value.backgroundColor,
|
|
937
949
|
color: I.value.color,
|
|
938
|
-
isImaging: T(
|
|
939
|
-
isPrinting: T(
|
|
950
|
+
isImaging: T(dn),
|
|
951
|
+
isPrinting: T(un),
|
|
940
952
|
uid: O.value,
|
|
941
953
|
hasTooltip: M.value.buttons.tooltip && F.value.show,
|
|
942
954
|
hasPdf: M.value.buttons.pdf,
|
|
@@ -952,22 +964,22 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
952
964
|
chartElement: k.value,
|
|
953
965
|
position: M.value.position,
|
|
954
966
|
hasAnnotator: M.value.buttons.annotator,
|
|
955
|
-
isAnnotation:
|
|
967
|
+
isAnnotation: Xn.value,
|
|
956
968
|
callbacks: M.value.callbacks,
|
|
957
969
|
printScale: M.value.print.scale,
|
|
958
970
|
tableDialog: j.value.table.useDialog,
|
|
959
971
|
isCursorPointer: L.value,
|
|
960
|
-
onToggleFullscreen:
|
|
961
|
-
onGeneratePdf: T(
|
|
962
|
-
onGenerateCsv:
|
|
963
|
-
onGenerateImage: T(
|
|
964
|
-
onGenerateSvg: T(
|
|
965
|
-
onToggleTable:
|
|
966
|
-
onToggleTooltip:
|
|
967
|
-
onToggleAnnotator:
|
|
968
|
-
onCopyAlt:
|
|
969
|
-
style: y({ visibility: T(
|
|
970
|
-
},
|
|
972
|
+
onToggleFullscreen: qn,
|
|
973
|
+
onGeneratePdf: T(fn),
|
|
974
|
+
onGenerateCsv: Kn,
|
|
975
|
+
onGenerateImage: T(cr),
|
|
976
|
+
onGenerateSvg: T(sr),
|
|
977
|
+
onToggleTable: Jn,
|
|
978
|
+
onToggleTooltip: Yn,
|
|
979
|
+
onToggleAnnotator: Zn,
|
|
980
|
+
onCopyAlt: lr,
|
|
981
|
+
style: y({ visibility: T(rn) ? T(tn) ? "visible" : "hidden" : "visible" })
|
|
982
|
+
}, Fe({ _: 2 }, [
|
|
971
983
|
e.$slots.menuIcon ? {
|
|
972
984
|
name: "menuIcon",
|
|
973
985
|
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
@@ -1038,23 +1050,23 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1038
1050
|
key: "11"
|
|
1039
1051
|
} : void 0
|
|
1040
1052
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
|
|
1041
|
-
h("div",
|
|
1053
|
+
h("div", Ze, [(b(), m("svg", {
|
|
1042
1054
|
ref_key: "svgRef",
|
|
1043
1055
|
ref: z,
|
|
1044
|
-
xmlns: T(
|
|
1056
|
+
xmlns: T(de),
|
|
1045
1057
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1046
|
-
class:
|
|
1058
|
+
class: Be({
|
|
1047
1059
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1048
1060
|
"vue-data-ui-fulscreen--off": !$.value
|
|
1049
1061
|
}),
|
|
1050
1062
|
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
1051
1063
|
style: y(`max-width:100%;overflow:visible;background:transparent;color:${I.value.color}`),
|
|
1052
1064
|
tabindex: "0",
|
|
1053
|
-
onFocus:
|
|
1054
|
-
onBlur:
|
|
1055
|
-
onKeydown:
|
|
1065
|
+
onFocus: ur,
|
|
1066
|
+
onBlur: dr,
|
|
1067
|
+
onKeydown: pr
|
|
1056
1068
|
}, [
|
|
1057
|
-
|
|
1069
|
+
Le(T(jt)),
|
|
1058
1070
|
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1059
1071
|
key: 0,
|
|
1060
1072
|
x: 0,
|
|
@@ -1062,8 +1074,8 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1062
1074
|
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
1063
1075
|
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
1064
1076
|
style: { pointerEvents: "none" }
|
|
1065
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1066
|
-
h("defs", null, [(b(!0), m(u, null, S(q.value, (e, t) => (b(), f(
|
|
1077
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : p("", !0),
|
|
1078
|
+
h("defs", null, [(b(!0), m(u, null, S(q.value, (e, t) => (b(), f(Ee, {
|
|
1067
1079
|
t: "radial",
|
|
1068
1080
|
cx: "50%",
|
|
1069
1081
|
cy: "50%",
|
|
@@ -1082,7 +1094,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1082
1094
|
1
|
|
1083
1095
|
]]
|
|
1084
1096
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1085
|
-
P.value.grid.show ? (b(), m("g",
|
|
1097
|
+
P.value.grid.show ? (b(), m("g", et, [(b(!0), m(u, null, S(Y.value, (e) => (b(), m("line", {
|
|
1086
1098
|
x1: W.value.width / 2,
|
|
1087
1099
|
y1: W.value.height / 2,
|
|
1088
1100
|
x2: e.x,
|
|
@@ -1090,30 +1102,30 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1090
1102
|
stroke: P.value.grid.stroke,
|
|
1091
1103
|
"stroke-width": P.value.grid.strokeWidth,
|
|
1092
1104
|
style: { "pointer-events": "none" }
|
|
1093
|
-
}, null, 8,
|
|
1105
|
+
}, null, 8, tt))), 256)), P.value.grid.graduations > 0 ? (b(), m("g", nt, [(b(!0), m(u, null, S(Fn.value, (e) => (b(), m("path", {
|
|
1094
1106
|
d: T(a)({
|
|
1095
1107
|
plot: {
|
|
1096
1108
|
x: W.value.width / 2,
|
|
1097
1109
|
y: W.value.height / 2
|
|
1098
1110
|
},
|
|
1099
1111
|
radius: e,
|
|
1100
|
-
sides:
|
|
1101
|
-
rotation:
|
|
1112
|
+
sides: An.value,
|
|
1113
|
+
rotation: Nn.value
|
|
1102
1114
|
}).path,
|
|
1103
1115
|
fill: "none",
|
|
1104
1116
|
stroke: P.value.grid.stroke,
|
|
1105
1117
|
"stroke-width": P.value.grid.strokeWidth
|
|
1106
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, rt))), 256))])) : p("", !0)])) : p("", !0),
|
|
1107
1119
|
h("path", {
|
|
1108
|
-
d:
|
|
1120
|
+
d: Pn.value.path,
|
|
1109
1121
|
fill: "none",
|
|
1110
1122
|
stroke: P.value.outerPolygon.stroke,
|
|
1111
1123
|
"stroke-width": P.value.outerPolygon.strokeWidth,
|
|
1112
1124
|
"stroke-linejoin": "round",
|
|
1113
1125
|
"stroke-linecap": "round",
|
|
1114
1126
|
style: { "pointer-events": "none" }
|
|
1115
|
-
}, null, 8,
|
|
1116
|
-
N.value.dataLabels.show ? (b(), m("g",
|
|
1127
|
+
}, null, 8, it),
|
|
1128
|
+
N.value.dataLabels.show ? (b(), m("g", at, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("text", {
|
|
1117
1129
|
class: "vue-ui-radar-apex-label",
|
|
1118
1130
|
x: e.labelX,
|
|
1119
1131
|
y: e.labelY,
|
|
@@ -1121,37 +1133,37 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1121
1133
|
"dominant-baseline": "middle",
|
|
1122
1134
|
"font-size": N.value.dataLabels.fontSize,
|
|
1123
1135
|
fill: N.value.dataLabels.color,
|
|
1124
|
-
onMouseenter: (n) =>
|
|
1125
|
-
onMouseleave: (n) =>
|
|
1126
|
-
onClick: (n) =>
|
|
1127
|
-
}, w(e.name), 41,
|
|
1136
|
+
onMouseenter: (n) => Gn(e, t, "pointer"),
|
|
1137
|
+
onMouseleave: (n) => Un(e, t),
|
|
1138
|
+
onClick: (n) => Wn(e, t)
|
|
1139
|
+
}, w(e.name), 41, ot))), 256))])) : p("", !0),
|
|
1128
1140
|
(b(!0), m(u, null, S(q.value, (e, t) => (b(), m("g", null, [h("g", null, [j.value.useCssAnimation || !j.value.useCssAnimation && !G.value.includes(t) ? (b(), m("polygon", {
|
|
1129
1141
|
key: 0,
|
|
1130
1142
|
points: T(o)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1131
1143
|
stroke: I.value.backgroundColor,
|
|
1132
1144
|
"stroke-width": P.value.dataPolygon.strokeWidth + 1,
|
|
1133
1145
|
fill: "none",
|
|
1134
|
-
class:
|
|
1146
|
+
class: Be({
|
|
1135
1147
|
"animated-out": G.value.includes(t) && j.value.useCssAnimation,
|
|
1136
|
-
"animated-in": K.value &&
|
|
1148
|
+
"animated-in": K.value && vn.value === t && j.value.useCssAnimation
|
|
1137
1149
|
}),
|
|
1138
1150
|
style: { "pointer-events": "none" }
|
|
1139
|
-
}, null, 10,
|
|
1151
|
+
}, null, 10, st)) : p("", !0), j.value.useCssAnimation || !j.value.useCssAnimation && !G.value.includes(t) ? (b(), m("polygon", {
|
|
1140
1152
|
key: 1,
|
|
1141
1153
|
points: T(o)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1142
1154
|
stroke: e.color,
|
|
1143
1155
|
"stroke-width": P.value.dataPolygon.strokeWidth,
|
|
1144
1156
|
fill: P.value.dataPolygon.transparent ? "transparent" : P.value.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${t})` : T(te)(e.color, P.value.dataPolygon.opacity),
|
|
1145
|
-
class:
|
|
1157
|
+
class: Be({
|
|
1146
1158
|
"animated-out": G.value.includes(t) && j.value.useCssAnimation,
|
|
1147
|
-
"animated-in": K.value &&
|
|
1159
|
+
"animated-in": K.value && vn.value === t && j.value.useCssAnimation
|
|
1148
1160
|
}),
|
|
1149
1161
|
style: { "pointer-events": "none" }
|
|
1150
|
-
}, null, 10,
|
|
1162
|
+
}, null, 10, ct)) : p("", !0)])]))), 256)),
|
|
1151
1163
|
P.value.targetReference.show ? (b(), m("path", {
|
|
1152
1164
|
key: 3,
|
|
1153
1165
|
class: "vue-ui-radar-target-polygon",
|
|
1154
|
-
d: `M${T(o)(
|
|
1166
|
+
d: `M${T(o)(kn.value, !1, !0)}Z`,
|
|
1155
1167
|
fill: "none",
|
|
1156
1168
|
stroke: P.value.targetReference.stroke,
|
|
1157
1169
|
"stroke-width": P.value.targetReference.strokeWidth,
|
|
@@ -1159,70 +1171,70 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1159
1171
|
"stroke-linecap": "round",
|
|
1160
1172
|
"stroke-dasharray": P.value.targetReference.strokeDasharray,
|
|
1161
1173
|
style: { "pointer-events": "none" }
|
|
1162
|
-
}, null, 8,
|
|
1163
|
-
P.value.plots.show ? (b(), m("g",
|
|
1174
|
+
}, null, 8, lt)) : p("", !0),
|
|
1175
|
+
P.value.plots.show ? (b(), m("g", ut, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("g", { key: `radar-category-${t}` }, [(b(!0), m(u, null, S(e.plots, (n, r) => (b(), m("g", {
|
|
1164
1176
|
key: `radar-plot-${t}-${r}`,
|
|
1165
|
-
onMouseenter: (n) => !G.value.includes(r) &&
|
|
1166
|
-
onMouseleave: (n) => !G.value.includes(r) &&
|
|
1167
|
-
onClick: (n) => !G.value.includes(r) &&
|
|
1177
|
+
onMouseenter: (n) => !G.value.includes(r) && Gn(e, t, "pointer"),
|
|
1178
|
+
onMouseleave: (n) => !G.value.includes(r) && Un(e, t),
|
|
1179
|
+
onClick: (n) => !G.value.includes(r) && Wn(e, t)
|
|
1168
1180
|
}, [h("circle", {
|
|
1169
1181
|
cx: n.x,
|
|
1170
1182
|
cy: n.y,
|
|
1171
|
-
r:
|
|
1183
|
+
r: Mn.value,
|
|
1172
1184
|
fill: "transparent",
|
|
1173
1185
|
stroke: "transparent",
|
|
1174
1186
|
style: y({ pointerEvents: G.value.includes(r) ? "none" : "all" })
|
|
1175
|
-
}, null, 12,
|
|
1187
|
+
}, null, 12, ft), h("circle", {
|
|
1176
1188
|
cx: n.x,
|
|
1177
1189
|
cy: n.y,
|
|
1178
1190
|
fill: G.value.includes(r) ? "transparent" : q.value[r] ? q.value[r].color : "transparent",
|
|
1179
1191
|
r: Q.value !== null && Q.value === t ? P.value.plots.radius * 1.6 : P.value.plots.radius,
|
|
1180
1192
|
stroke: G.value.includes(r) ? "transparent" : I.value.backgroundColor,
|
|
1181
1193
|
"stroke-width": .5,
|
|
1182
|
-
class:
|
|
1194
|
+
class: Be({
|
|
1183
1195
|
"animated-out": G.value.includes(r) && j.value.useCssAnimation,
|
|
1184
|
-
"animated-in": K.value &&
|
|
1196
|
+
"animated-in": K.value && vn.value === r && j.value.useCssAnimation
|
|
1185
1197
|
}),
|
|
1186
1198
|
style: { "pointer-events": "none" }
|
|
1187
|
-
}, null, 10,
|
|
1199
|
+
}, null, 10, pt)], 40, dt))), 128))]))), 128))])) : p("", !0),
|
|
1188
1200
|
C(e.$slots, "svg", { svg: {
|
|
1189
1201
|
...W.value,
|
|
1190
|
-
outerPolygon:
|
|
1191
|
-
isPrintingImg: T(
|
|
1192
|
-
isPrintingSvg: T(
|
|
1202
|
+
outerPolygon: Pn.value,
|
|
1203
|
+
isPrintingImg: T(un) || T(dn) || T(ar),
|
|
1204
|
+
isPrintingSvg: T(or)
|
|
1193
1205
|
} }, void 0, !0)
|
|
1194
|
-
], 46,
|
|
1206
|
+
], 46, Qe)), e.$slots.hint ? (b(), m("div", mt, [C(e.$slots, "hint", v(_({
|
|
1195
1207
|
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1196
|
-
isVisible:
|
|
1208
|
+
isVisible: Qt.value
|
|
1197
1209
|
})), void 0, !0)])) : p("", !0)]),
|
|
1198
|
-
e.$slots.watermark ? (b(), m("div",
|
|
1199
|
-
h("div", { id: `legend-bottom-${O.value}` }, null, 8,
|
|
1200
|
-
|
|
1210
|
+
e.$slots.watermark ? (b(), m("div", ht, [C(e.$slots, "watermark", v(_({ isPrinting: T(un) || T(dn) || T(ar) || T(or) })), void 0, !0)])) : p("", !0),
|
|
1211
|
+
h("div", { id: `legend-bottom-${O.value}` }, null, 8, gt),
|
|
1212
|
+
qt.value && (I.value.legend.show || e.$slots.legend) ? (b(), f(Pe, {
|
|
1201
1213
|
key: 6,
|
|
1202
1214
|
to: I.value.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1203
1215
|
}, [h("div", {
|
|
1204
1216
|
ref_key: "chartLegend",
|
|
1205
|
-
ref:
|
|
1206
|
-
}, [C(e.$slots, "legend", { legend: X.value }, () => [I.value.legend.show ? (b(), f(
|
|
1207
|
-
key: `legend_${
|
|
1217
|
+
ref: Vt
|
|
1218
|
+
}, [C(e.$slots, "legend", { legend: X.value }, () => [I.value.legend.show ? (b(), f(je, {
|
|
1219
|
+
key: `legend_${Kt.value}`,
|
|
1208
1220
|
legendSet: X.value,
|
|
1209
|
-
config:
|
|
1221
|
+
config: Bn.value,
|
|
1210
1222
|
isCursorPointer: L.value,
|
|
1211
|
-
onClickMarker: t[0] ||= ({ i: e }) =>
|
|
1212
|
-
},
|
|
1213
|
-
item: E(({ legend: e, index: t }) => [T(
|
|
1223
|
+
onClickMarker: t[0] ||= ({ i: e }) => xn(e)
|
|
1224
|
+
}, Fe({
|
|
1225
|
+
item: E(({ legend: e, index: t }) => [T(en) ? p("", !0) : (b(), m("div", {
|
|
1214
1226
|
key: 0,
|
|
1215
1227
|
onClick: (t) => e.segregate(),
|
|
1216
1228
|
style: y(`opacity:${G.value.includes(t) ? .5 : 1}`)
|
|
1217
|
-
}, w(e.display), 13,
|
|
1218
|
-
legendToggle: E(() => [X.value.length > 2 && I.value.legend.selectAllToggle.show && !T(
|
|
1229
|
+
}, w(e.display), 13, _t))]),
|
|
1230
|
+
legendToggle: E(() => [X.value.length > 2 && I.value.legend.selectAllToggle.show && !T(en) ? (b(), f(De, {
|
|
1219
1231
|
key: 0,
|
|
1220
1232
|
backgroundColor: I.value.legend.selectAllToggle.backgroundColor,
|
|
1221
1233
|
color: I.value.legend.selectAllToggle.color,
|
|
1222
1234
|
fontSize: I.value.legend.fontSize,
|
|
1223
1235
|
checked: G.value.length > 0,
|
|
1224
1236
|
isCursorPointer: L.value,
|
|
1225
|
-
onToggle:
|
|
1237
|
+
onToggle: yn
|
|
1226
1238
|
}, null, 8, [
|
|
1227
1239
|
"backgroundColor",
|
|
1228
1240
|
"color",
|
|
@@ -1233,7 +1245,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1233
1245
|
_: 2
|
|
1234
1246
|
}, [P.value.targetReference.show && P.value.targetReference.showInLegend ? {
|
|
1235
1247
|
name: "after",
|
|
1236
|
-
fn: E(() => [h("div",
|
|
1248
|
+
fn: E(() => [h("div", vt, [h("div", { style: y({
|
|
1237
1249
|
display: "flex",
|
|
1238
1250
|
height: I.value.legend.fontSize
|
|
1239
1251
|
}) }, [(b(), m("svg", {
|
|
@@ -1248,7 +1260,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1248
1260
|
"stroke-width": P.value.targetReference.strokeWidth * .7,
|
|
1249
1261
|
"stroke-dasharray": P.value.targetReference.strokeDasharray * .7,
|
|
1250
1262
|
"stroke-linecap": "round"
|
|
1251
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, yt)], 4))], 4), h("span", null, w(P.value.targetReference.legendLabel), 1)])]),
|
|
1252
1264
|
key: "0"
|
|
1253
1265
|
} : void 0]), 1032, [
|
|
1254
1266
|
"legendSet",
|
|
@@ -1258,12 +1270,12 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1258
1270
|
e.$slots.source ? (b(), m("div", {
|
|
1259
1271
|
key: 7,
|
|
1260
1272
|
ref_key: "source",
|
|
1261
|
-
ref:
|
|
1273
|
+
ref: Ht,
|
|
1262
1274
|
dir: "auto"
|
|
1263
1275
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1264
|
-
|
|
1276
|
+
Le(T(wt), {
|
|
1265
1277
|
teleportTo: F.value.teleportTo,
|
|
1266
|
-
show: U.value.showTooltip &&
|
|
1278
|
+
show: U.value.showTooltip && Lt.value,
|
|
1267
1279
|
backgroundColor: F.value.backgroundColor,
|
|
1268
1280
|
color: F.value.color,
|
|
1269
1281
|
borderRadius: F.value.borderRadius,
|
|
@@ -1275,26 +1287,26 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1275
1287
|
offsetX: F.value.offsetX,
|
|
1276
1288
|
offsetY: F.value.offsetY,
|
|
1277
1289
|
parent: k.value,
|
|
1278
|
-
content:
|
|
1290
|
+
content: Rt.value,
|
|
1279
1291
|
isFullscreen: $.value,
|
|
1280
1292
|
isCustom: F.value.customFormat && typeof F.value.customFormat == "function",
|
|
1281
1293
|
smooth: F.value.smooth,
|
|
1282
1294
|
backdropFilter: F.value.backdropFilter,
|
|
1283
1295
|
smoothForce: F.value.smoothForce,
|
|
1284
1296
|
smoothSnapThreshold: F.value.smoothSnapThreshold,
|
|
1285
|
-
isA11yMode:
|
|
1286
|
-
a11yPosition:
|
|
1297
|
+
isA11yMode: Zt.value === "keyboard",
|
|
1298
|
+
a11yPosition: Xt.value
|
|
1287
1299
|
}, {
|
|
1288
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...
|
|
1289
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...
|
|
1290
|
-
"tooltip-after": E(() => [!["function"].includes(typeof F.value.customFormat) && !e.$slots.tooltip ? (b(), m("div",
|
|
1291
|
-
dataset:
|
|
1292
|
-
config:
|
|
1300
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(_({ ...Hn.value })), void 0, !0)]),
|
|
1301
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(_({ ...Hn.value })), void 0, !0)]),
|
|
1302
|
+
"tooltip-after": E(() => [!["function"].includes(typeof F.value.customFormat) && !e.$slots.tooltip ? (b(), m("div", bt, [Le(T(Et), {
|
|
1303
|
+
dataset: Vn.value,
|
|
1304
|
+
config: gn.value,
|
|
1293
1305
|
backgroundOpacity: 0
|
|
1294
1306
|
}, {
|
|
1295
|
-
"data-label": E(({ bar: e }) => [h("div",
|
|
1307
|
+
"data-label": E(({ bar: e }) => [h("div", xt, [h("span", St, w(e.name + (F.value.showValue || F.value.showPercentage ? ":" : "")), 1), F.value.showValue || F.value.showPercentage ? (b(), m("span", Ct, w(e.suffix), 1)) : p("", !0)])]),
|
|
1296
1308
|
_: 1
|
|
1297
|
-
}, 8, ["dataset", "config"])])) : p("", !0), C(e.$slots, "tooltip-after", v(_({ ...
|
|
1309
|
+
}, 8, ["dataset", "config"])])) : p("", !0), C(e.$slots, "tooltip-after", v(_({ ...Hn.value })), void 0, !0)]),
|
|
1298
1310
|
_: 3
|
|
1299
1311
|
}, 8, [
|
|
1300
1312
|
"teleportTo",
|
|
@@ -1320,24 +1332,24 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1320
1332
|
"isA11yMode",
|
|
1321
1333
|
"a11yPosition"
|
|
1322
1334
|
]),
|
|
1323
|
-
|
|
1335
|
+
It.value && M.value.buttons.table ? (b(), f(Ue($n.value.component), Re({ key: 8 }, $n.value.props, {
|
|
1324
1336
|
ref_key: "tableUnit",
|
|
1325
|
-
ref:
|
|
1326
|
-
onClose:
|
|
1327
|
-
}),
|
|
1328
|
-
content: E(() => [(b(), f(T(
|
|
1329
|
-
key: `table_${
|
|
1337
|
+
ref: Jt,
|
|
1338
|
+
onClose: er
|
|
1339
|
+
}), Fe({
|
|
1340
|
+
content: E(() => [(b(), f(T(Ot), {
|
|
1341
|
+
key: `table_${Gt.value}`,
|
|
1330
1342
|
colNames: Z.value.colNames,
|
|
1331
1343
|
head: Z.value.head,
|
|
1332
1344
|
body: Z.value.body,
|
|
1333
1345
|
config: Z.value.config,
|
|
1334
|
-
title: j.value.table.useDialog ? "" :
|
|
1346
|
+
title: j.value.table.useDialog ? "" : $n.value.title,
|
|
1335
1347
|
withCloseButton: !j.value.table.useDialog,
|
|
1336
1348
|
isCursorPointer: L.value,
|
|
1337
|
-
onClose:
|
|
1349
|
+
onClose: er
|
|
1338
1350
|
}, {
|
|
1339
|
-
th: E(({ th: e }) => [
|
|
1340
|
-
td: E(({ td: e }) => [
|
|
1351
|
+
th: E(({ th: e }) => [Ie(w(e.name), 1)]),
|
|
1352
|
+
td: E(({ td: e }) => [Ie(w(e), 1)]),
|
|
1341
1353
|
_: 1
|
|
1342
1354
|
}, 8, [
|
|
1343
1355
|
"colNames",
|
|
@@ -1351,24 +1363,24 @@ var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye
|
|
|
1351
1363
|
_: 2
|
|
1352
1364
|
}, [j.value.table.useDialog ? {
|
|
1353
1365
|
name: "title",
|
|
1354
|
-
fn: E(() => [
|
|
1366
|
+
fn: E(() => [Ie(w($n.value.title), 1)]),
|
|
1355
1367
|
key: "0"
|
|
1356
1368
|
} : void 0, j.value.table.useDialog ? {
|
|
1357
1369
|
name: "actions",
|
|
1358
1370
|
fn: E(() => [h("button", {
|
|
1359
1371
|
tabindex: "0",
|
|
1360
1372
|
class: "vue-ui-user-options-button",
|
|
1361
|
-
onClick: t[1] ||= (e) =>
|
|
1373
|
+
onClick: t[1] ||= (e) => Kn(M.value.callbacks.csv),
|
|
1362
1374
|
style: y({ cursor: L.value ? "pointer" : "default" })
|
|
1363
|
-
}, [
|
|
1375
|
+
}, [Le(T(Tt), {
|
|
1364
1376
|
name: "fileCsv",
|
|
1365
|
-
stroke:
|
|
1377
|
+
stroke: $n.value.props.color
|
|
1366
1378
|
}, null, 8, ["stroke"])], 4)]),
|
|
1367
1379
|
key: "1"
|
|
1368
1380
|
} : void 0]), 1040)) : p("", !0),
|
|
1369
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1370
|
-
], 46,
|
|
1381
|
+
C(e.$slots, "skeleton", {}, () => [T(en) ? (b(), f(_e, { key: 0 })) : p("", !0)], !0)
|
|
1382
|
+
], 46, Je));
|
|
1371
1383
|
}
|
|
1372
|
-
}, [["__scopeId", "data-v-
|
|
1384
|
+
}, [["__scopeId", "data-v-27993883"]]);
|
|
1373
1385
|
//#endregion
|
|
1374
|
-
export {
|
|
1386
|
+
export { qe as n, wt as t };
|