vue-data-ui 2.16.6 → 2.17.0
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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as p, ref as c, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as $, computed as p, ref as c, watch as nt, shallowRef as Se, onMounted as ut, onBeforeUnmount as it, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as x, createCommentVNode as d, createElementVNode as O, createVNode as oe, createSlots as ct, withCtx as f, renderSlot as g, normalizeProps as z, guardReactiveProps as M, Fragment as A, renderList as F, toDisplayString as D, createTextVNode as Ne, nextTick as dt } from "vue";
|
|
2
|
+
import { u as vt, c as pt, t as ht, p as S, a as gt, o as ft, e as V, b as yt, g as Ie, d as Re, R as Le, v as mt, i as ze, f as G, X as bt, s as le, w as kt, S as Me, q as Ct, r as wt, x as $t, y as _t } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ve } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ft from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import St from "./Title-B-2bV0SW.js";
|
|
10
|
+
import Nt from "./img-Y_hYz-ZC.js";
|
|
11
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["id"], Vt = ["stop-color"], Ut = ["stop-color"], Et = { key: 1 }, Bt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 0 }, Gt = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Xt = { key: 2 }, jt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], qt = ["points", "stroke", "stroke-width"], Ht = ["points", "stroke", "stroke-width", "fill"], Yt = { key: 3 }, Jt = ["cx", "cy", "fill", "r", "stroke"], Kt = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, Qt = ["onClick"], Zt = {
|
|
15
16
|
key: 0,
|
|
16
17
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
17
|
-
},
|
|
18
|
+
}, ea = {
|
|
18
19
|
__name: "vue-ui-radar",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -31,36 +32,36 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
35
|
+
setup(Ue, { expose: Ee, emit: Be }) {
|
|
36
|
+
const De = $(() => import("./DataTable-D0VYDhfx.js")), Ge = $(() => import("./PenAndPaper-D6AqipIO.js")), We = $(() => import("./vue-ui-accordion-CVnA550V.js")), Xe = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), je = $(() => import("./Tooltip-CoQnTnr-.js")), qe = $(() => import("./UserOptions-Dd34lEKb.js")), He = $(() => import("./PackageVersion-5TR4ocqp.js")), Ye = $(() => import("./vue-ui-sparkbar-Ds2ITgwn.js")), { vue_ui_radar: Je } = vt(), h = Ue, U = p(() => !!h.dataset && Object.keys(h.dataset).length), _ = c(pt()), Ke = c(null), H = c(!1), Y = c(""), re = c(0), T = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(null), ce = c(0), de = c(0), ve = c(0), e = p({
|
|
36
37
|
get: () => fe(),
|
|
37
38
|
set: (t) => t
|
|
38
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } =
|
|
39
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = Ot({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
|
|
39
40
|
function fe() {
|
|
40
|
-
const t =
|
|
41
|
+
const t = Ve({
|
|
41
42
|
userConfig: h.config,
|
|
42
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: Je
|
|
43
44
|
});
|
|
44
45
|
return t.theme ? {
|
|
45
|
-
...
|
|
46
|
-
userConfig:
|
|
46
|
+
...Ve({
|
|
47
|
+
userConfig: gt.vue_ui_radar[t.theme] || h.config,
|
|
47
48
|
defaultConfig: t
|
|
48
49
|
}),
|
|
49
|
-
customPalette:
|
|
50
|
+
customPalette: ht[t.theme] || S
|
|
50
51
|
} : t;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
+
nt(() => h.config, (t) => {
|
|
53
54
|
e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tootlip ? e.value.style.chart.tootlip.show : !1;
|
|
54
55
|
}, { deep: !0 });
|
|
55
|
-
const C =
|
|
56
|
+
const C = Se(null), N = Se(null);
|
|
56
57
|
function ye() {
|
|
57
|
-
if (
|
|
58
|
+
if (ft(h.dataset) && V({
|
|
58
59
|
componentName: "VueUiRadar",
|
|
59
60
|
type: "dataset"
|
|
60
61
|
}), e.value.responsive) {
|
|
61
|
-
const t =
|
|
62
|
-
const { width: a, height: o } =
|
|
63
|
-
chart:
|
|
62
|
+
const t = Tt(() => {
|
|
63
|
+
const { width: a, height: o } = Pt({
|
|
64
|
+
chart: T.value,
|
|
64
65
|
title: e.value.style.chart.title.text ? se.value : null,
|
|
65
66
|
legend: e.value.style.chart.legend.show ? ne.value : null,
|
|
66
67
|
source: ue.value,
|
|
@@ -70,25 +71,25 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
70
71
|
i.value.width = a, i.value.height = o;
|
|
71
72
|
});
|
|
72
73
|
});
|
|
73
|
-
C.value && (
|
|
74
|
+
C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect()), C.value = new ResizeObserver(t), N.value = T.value.parentNode, C.value.observe(N.value);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
ut(() => {
|
|
77
78
|
ye();
|
|
78
|
-
}),
|
|
79
|
-
C.value && (
|
|
79
|
+
}), it(() => {
|
|
80
|
+
C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect());
|
|
80
81
|
});
|
|
81
|
-
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } =
|
|
82
|
+
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = xt({
|
|
82
83
|
elementId: `vue-ui-radar_${_.value}`,
|
|
83
84
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
84
85
|
options: e.value.userOptions.print
|
|
85
|
-
}),
|
|
86
|
+
}), Qe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => yt(e.value.customPalette)), m = c({
|
|
86
87
|
dataLabels: {
|
|
87
88
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
88
89
|
},
|
|
89
90
|
showTable: e.value.table.show,
|
|
90
91
|
showTooltip: e.value.style.chart.tooltip.show
|
|
91
|
-
}),
|
|
92
|
+
}), Ze = p(() => ({
|
|
92
93
|
style: {
|
|
93
94
|
backgroundColor: "#FFFFFF00",
|
|
94
95
|
animation: {
|
|
@@ -109,55 +110,55 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
109
110
|
})), i = c({
|
|
110
111
|
height: 312,
|
|
111
112
|
width: 512
|
|
112
|
-
}),
|
|
113
|
+
}), et = Be, v = c([]), E = c(null), I = c(!1);
|
|
113
114
|
function $e(t) {
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
I.value = !0, v.value.includes(t) ? (E.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
|
|
116
|
+
I.value = !1, E.value = null;
|
|
116
117
|
}, 500)) : (v.value.push(t), setTimeout(() => {
|
|
117
|
-
|
|
118
|
-
}, 500)),
|
|
118
|
+
I.value = !1;
|
|
119
|
+
}, 500)), et("selectLegend", R.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
|
|
119
120
|
name: a.name,
|
|
120
121
|
color: a.color,
|
|
121
122
|
proportion: a.totalProportion
|
|
122
123
|
})));
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
125
|
+
function tt() {
|
|
126
|
+
return R.value.map((t) => ({
|
|
126
127
|
name: t.name,
|
|
127
128
|
color: t.color,
|
|
128
129
|
proportion: t.totalProportion
|
|
129
130
|
}));
|
|
130
131
|
}
|
|
131
|
-
const y = p(() => [null, void 0].includes(h.dataset.categories) ? (
|
|
132
|
+
const y = p(() => [null, void 0].includes(h.dataset.categories) ? (V({
|
|
132
133
|
componentName: "VueUiRadar",
|
|
133
134
|
type: "datasetAttribute",
|
|
134
135
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
135
|
-
}), []) : (h.dataset.categories.length === 0 ?
|
|
136
|
+
}), []) : (h.dataset.categories.length === 0 ? V({
|
|
136
137
|
componentName: "VueUiRadar",
|
|
137
138
|
type: "datasetAttributeEmpty",
|
|
138
139
|
property: "categories"
|
|
139
140
|
}) : h.dataset.categories.forEach((t, a) => {
|
|
140
|
-
|
|
141
|
+
Ie({
|
|
141
142
|
datasetObject: t,
|
|
142
143
|
requiredAttributes: ["name"]
|
|
143
144
|
}).forEach((o) => {
|
|
144
|
-
|
|
145
|
+
V({
|
|
145
146
|
componentName: "VueUiRadar",
|
|
146
147
|
type: "datasetAttribute",
|
|
147
148
|
property: `category.${o} at index ${a}`,
|
|
148
149
|
index: a
|
|
149
150
|
});
|
|
150
151
|
});
|
|
151
|
-
}), [null, void 0].includes(h.dataset.series) ?
|
|
152
|
+
}), [null, void 0].includes(h.dataset.series) ? V({
|
|
152
153
|
componentName: "VueUiRadar",
|
|
153
154
|
type: "datasetAttribute",
|
|
154
155
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
155
156
|
}) : h.dataset.series.forEach((t, a) => {
|
|
156
|
-
|
|
157
|
+
Ie({
|
|
157
158
|
datasetObject: t,
|
|
158
159
|
requiredAttributes: ["name", "values", "target"]
|
|
159
160
|
}).forEach((o) => {
|
|
160
|
-
|
|
161
|
+
V({
|
|
161
162
|
componentName: "VueUiRadar",
|
|
162
163
|
type: "datasetSerieAttribute",
|
|
163
164
|
key: "series",
|
|
@@ -168,26 +169,26 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
168
169
|
}), h.dataset.categories.map((t, a) => ({
|
|
169
170
|
name: t.name,
|
|
170
171
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
171
|
-
color:
|
|
172
|
+
color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
|
|
172
173
|
prefix: t.prefix ?? "",
|
|
173
174
|
suffix: t.suffix ?? ""
|
|
174
|
-
})))), k = p(() =>
|
|
175
|
+
})))), k = p(() => U.value ? h.dataset.series.map((t, a) => ({
|
|
175
176
|
...t,
|
|
176
|
-
color:
|
|
177
|
+
color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
|
|
177
178
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
178
179
|
formatter: t.formatter || null
|
|
179
|
-
})) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), K = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() =>
|
|
180
|
+
})) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), K = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Le({
|
|
180
181
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
181
182
|
radius: K.value,
|
|
182
183
|
sides: Te.value,
|
|
183
184
|
rotation: 0
|
|
184
|
-
})),
|
|
185
|
+
})), at = p(() => {
|
|
185
186
|
const t = [];
|
|
186
187
|
for (let a = 0; a < K.value; a += K.value / e.value.style.chart.layout.grid.graduations)
|
|
187
188
|
t.push(a);
|
|
188
189
|
return t;
|
|
189
190
|
}), w = p(() => Pe.value.coordinates.map((t, a) => {
|
|
190
|
-
const o = k.value[a].values.map((l) =>
|
|
191
|
+
const o = k.value[a].values.map((l) => ot({
|
|
191
192
|
centerX: i.value.width / 2,
|
|
192
193
|
centerY: i.value.height / 2,
|
|
193
194
|
apexX: t.x,
|
|
@@ -204,23 +205,23 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
204
205
|
let o = "middle";
|
|
205
206
|
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 && (a += 20), a < i.value.height / 2 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function ot({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
208
209
|
return {
|
|
209
210
|
x: t + (o - t) * s,
|
|
210
211
|
y: a + (l - a) * s
|
|
211
212
|
};
|
|
212
213
|
}
|
|
213
|
-
const
|
|
214
|
+
const R = p(() => {
|
|
214
215
|
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || _e.value)));
|
|
215
216
|
return y.value.map((a, o) => ({
|
|
216
217
|
...a,
|
|
217
|
-
totalProportion:
|
|
218
|
+
totalProportion: mt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
|
|
218
219
|
shape: "circle",
|
|
219
220
|
opacity: v.value.includes(o) ? 0.5 : 1,
|
|
220
221
|
segregate: () => $e(o),
|
|
221
222
|
isSegregated: v.value.includes(o)
|
|
222
223
|
}));
|
|
223
|
-
}),
|
|
224
|
+
}), lt = p(() => ({
|
|
224
225
|
cy: "radar-div-legend",
|
|
225
226
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
226
227
|
color: e.value.style.chart.legend.color,
|
|
@@ -231,10 +232,10 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
231
232
|
const t = [
|
|
232
233
|
{ name: e.value.translations.datapoint, color: "" },
|
|
233
234
|
{ name: e.value.translations.target, color: "" },
|
|
234
|
-
...
|
|
235
|
+
...R.value
|
|
235
236
|
], a = h.dataset.series.map((l) => [
|
|
236
237
|
l.name,
|
|
237
|
-
|
|
238
|
+
ze(
|
|
238
239
|
l.formatter,
|
|
239
240
|
l.target,
|
|
240
241
|
G({
|
|
@@ -244,7 +245,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
244
245
|
r: e.value.table.td.roundingValue
|
|
245
246
|
})
|
|
246
247
|
),
|
|
247
|
-
...l.values.map((s, b) => `${
|
|
248
|
+
...l.values.map((s, b) => `${ze(
|
|
248
249
|
l.formatter,
|
|
249
250
|
s,
|
|
250
251
|
G({ p: y.value[b].prefix, v: s, s: y.value[b].suffix, r: e.value.table.td.roundingValue })
|
|
@@ -268,7 +269,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
268
269
|
};
|
|
269
270
|
return { head: t, body: a, config: o, colNames: t };
|
|
270
271
|
}), X = c(null), Z = c([]), ee = c(null);
|
|
271
|
-
function
|
|
272
|
+
function rt(t, a) {
|
|
272
273
|
Z.value = [], X.value = a, H.value = !0;
|
|
273
274
|
let o = "";
|
|
274
275
|
ee.value = {
|
|
@@ -282,7 +283,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
282
283
|
config: e.value
|
|
283
284
|
};
|
|
284
285
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
285
|
-
if (
|
|
286
|
+
if ($t(l) && _t(() => l({
|
|
286
287
|
seriesIndex: a,
|
|
287
288
|
datapoint: t,
|
|
288
289
|
series: { categories: y.value, datapoints: k.value, radar: w.value },
|
|
@@ -310,46 +311,53 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
310
311
|
}
|
|
311
312
|
}
|
|
312
313
|
function xe(t = null) {
|
|
313
|
-
|
|
314
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...
|
|
314
|
+
dt(() => {
|
|
315
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...R.value.flatMap((P) => [[P.name], ["%"]])], l = h.dataset.series.map((P, ta) => [P.name, P.target, ...P.values.flatMap((ae) => [
|
|
315
316
|
ae,
|
|
316
|
-
isNaN(ae /
|
|
317
|
-
])]), s = a.concat([o]).concat(l), b =
|
|
318
|
-
t ? t(b) :
|
|
317
|
+
isNaN(ae / P.target) ? "" : ae / P.target * 100
|
|
318
|
+
])]), s = a.concat([o]).concat(l), b = Ct(s);
|
|
319
|
+
t ? t(b) : wt({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
319
320
|
});
|
|
320
321
|
}
|
|
321
|
-
const
|
|
322
|
-
function
|
|
323
|
-
|
|
322
|
+
const L = c(!1);
|
|
323
|
+
function Oe(t) {
|
|
324
|
+
L.value = t, re.value += 1;
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
+
function Ae() {
|
|
326
327
|
m.value.showTable = !m.value.showTable;
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function Fe() {
|
|
329
330
|
m.value.showTooltip = !m.value.showTooltip;
|
|
330
331
|
}
|
|
331
332
|
const j = c(!1);
|
|
332
333
|
function te() {
|
|
333
334
|
j.value = !j.value;
|
|
334
335
|
}
|
|
335
|
-
|
|
336
|
-
|
|
336
|
+
async function st({ scale: t = 2 } = {}) {
|
|
337
|
+
if (!T.value) return;
|
|
338
|
+
const { imageUri: a, base64: o } = await Nt({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
339
|
+
return { imageUri: a, base64: o };
|
|
340
|
+
}
|
|
341
|
+
return Ee({
|
|
342
|
+
getData: tt,
|
|
343
|
+
getImage: st,
|
|
337
344
|
generatePdf: ke,
|
|
338
345
|
generateCsv: xe,
|
|
339
346
|
generateImage: Ce,
|
|
340
|
-
toggleTable:
|
|
341
|
-
toggleTooltip:
|
|
342
|
-
toggleAnnotator: te
|
|
347
|
+
toggleTable: Ae,
|
|
348
|
+
toggleTooltip: Fe,
|
|
349
|
+
toggleAnnotator: te,
|
|
350
|
+
toggleFullscreen: Oe
|
|
343
351
|
}), (t, a) => (r(), u("div", {
|
|
344
|
-
class: B(`vue-ui-radar ${
|
|
352
|
+
class: B(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
345
353
|
ref_key: "radarChart",
|
|
346
|
-
ref:
|
|
354
|
+
ref: T,
|
|
347
355
|
id: `vue-ui-radar_${_.value}`,
|
|
348
356
|
style: q(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
349
357
|
onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
|
|
350
358
|
onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
|
|
351
359
|
}, [
|
|
352
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
360
|
+
e.value.userOptions.buttons.annotator ? (r(), x(n(Ge), {
|
|
353
361
|
key: 0,
|
|
354
362
|
svgRef: n(ge),
|
|
355
363
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -357,7 +365,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
357
365
|
active: j.value,
|
|
358
366
|
onClose: te
|
|
359
367
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
360
|
-
|
|
368
|
+
Qe.value ? (r(), u("div", {
|
|
361
369
|
key: 1,
|
|
362
370
|
ref_key: "noTitle",
|
|
363
371
|
ref: ie,
|
|
@@ -370,7 +378,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
370
378
|
ref: se,
|
|
371
379
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
372
380
|
}, [
|
|
373
|
-
(r(),
|
|
381
|
+
(r(), x(St, {
|
|
374
382
|
key: `title_${ce.value}`,
|
|
375
383
|
config: {
|
|
376
384
|
title: {
|
|
@@ -384,9 +392,9 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
384
392
|
}
|
|
385
393
|
}, null, 8, ["config"]))
|
|
386
394
|
], 512)) : d("", !0),
|
|
387
|
-
e.value.userOptions.show &&
|
|
395
|
+
e.value.userOptions.show && U.value && (n(he) || n(J)) ? (r(), x(n(qe), {
|
|
388
396
|
ref_key: "details",
|
|
389
|
-
ref:
|
|
397
|
+
ref: Ke,
|
|
390
398
|
key: `user_options_${re.value}`,
|
|
391
399
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
400
|
color: e.value.style.chart.color,
|
|
@@ -399,30 +407,30 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
399
407
|
hasXls: e.value.userOptions.buttons.csv,
|
|
400
408
|
hasTable: e.value.userOptions.buttons.table,
|
|
401
409
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
402
|
-
isFullscreen:
|
|
410
|
+
isFullscreen: L.value,
|
|
403
411
|
isTooltip: m.value.showTooltip,
|
|
404
412
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
405
|
-
chartElement:
|
|
413
|
+
chartElement: T.value,
|
|
406
414
|
position: e.value.userOptions.position,
|
|
407
415
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
408
416
|
isAnnotation: j.value,
|
|
409
417
|
callbacks: e.value.userOptions.callbacks,
|
|
410
418
|
printScale: e.value.userOptions.print.scale,
|
|
411
|
-
onToggleFullscreen:
|
|
419
|
+
onToggleFullscreen: Oe,
|
|
412
420
|
onGeneratePdf: n(ke),
|
|
413
421
|
onGenerateCsv: xe,
|
|
414
422
|
onGenerateImage: n(Ce),
|
|
415
|
-
onToggleTable:
|
|
416
|
-
onToggleTooltip:
|
|
423
|
+
onToggleTable: Ae,
|
|
424
|
+
onToggleTooltip: Fe,
|
|
417
425
|
onToggleAnnotator: te,
|
|
418
426
|
style: q({
|
|
419
427
|
visibility: n(he) ? n(J) ? "visible" : "hidden" : "visible"
|
|
420
428
|
})
|
|
421
|
-
},
|
|
429
|
+
}, ct({ _: 2 }, [
|
|
422
430
|
t.$slots.menuIcon ? {
|
|
423
431
|
name: "menuIcon",
|
|
424
432
|
fn: f(({ isOpen: o, color: l }) => [
|
|
425
|
-
g(t.$slots, "menuIcon",
|
|
433
|
+
g(t.$slots, "menuIcon", z(M({ isOpen: o, color: l })), void 0, !0)
|
|
426
434
|
]),
|
|
427
435
|
key: "0"
|
|
428
436
|
} : void 0,
|
|
@@ -464,28 +472,28 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
464
472
|
t.$slots.optionFullscreen ? {
|
|
465
473
|
name: "optionFullscreen",
|
|
466
474
|
fn: f(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
467
|
-
g(t.$slots, "optionFullscreen",
|
|
475
|
+
g(t.$slots, "optionFullscreen", z(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
468
476
|
]),
|
|
469
477
|
key: "6"
|
|
470
478
|
} : void 0,
|
|
471
479
|
t.$slots.optionAnnotator ? {
|
|
472
480
|
name: "optionAnnotator",
|
|
473
481
|
fn: f(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
474
|
-
g(t.$slots, "optionAnnotator",
|
|
482
|
+
g(t.$slots, "optionAnnotator", z(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
475
483
|
]),
|
|
476
484
|
key: "7"
|
|
477
485
|
} : void 0
|
|
478
486
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
479
|
-
|
|
487
|
+
U.value ? (r(), u("svg", {
|
|
480
488
|
key: 4,
|
|
481
489
|
ref_key: "svgRef",
|
|
482
490
|
ref: ge,
|
|
483
|
-
xmlns: n(
|
|
484
|
-
class: B({ "vue-data-ui-fullscreen--on":
|
|
491
|
+
xmlns: n(bt),
|
|
492
|
+
class: B({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
485
493
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
486
494
|
style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
487
495
|
}, [
|
|
488
|
-
oe(n(
|
|
496
|
+
oe(n(He)),
|
|
489
497
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
490
498
|
key: 0,
|
|
491
499
|
x: 0,
|
|
@@ -497,9 +505,9 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
497
505
|
}
|
|
498
506
|
}, [
|
|
499
507
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
500
|
-
], 8,
|
|
501
|
-
|
|
502
|
-
(r(!0), u(
|
|
508
|
+
], 8, zt)) : d("", !0),
|
|
509
|
+
O("defs", null, [
|
|
510
|
+
(r(!0), u(A, null, F(y.value, (o, l) => (r(), u("radialGradient", {
|
|
503
511
|
cx: "50%",
|
|
504
512
|
cy: "50%",
|
|
505
513
|
r: "50%",
|
|
@@ -507,28 +515,28 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
507
515
|
fy: "50%",
|
|
508
516
|
id: `radar_gradient_${_.value}_${l}`
|
|
509
517
|
}, [
|
|
510
|
-
|
|
518
|
+
O("stop", {
|
|
511
519
|
offset: "0%",
|
|
512
|
-
"stop-color": n(le)(n(
|
|
513
|
-
}, null, 8,
|
|
514
|
-
|
|
520
|
+
"stop-color": n(le)(n(kt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
521
|
+
}, null, 8, Vt),
|
|
522
|
+
O("stop", {
|
|
515
523
|
offset: "100%",
|
|
516
524
|
"stop-color": n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
517
|
-
}, null, 8,
|
|
518
|
-
], 8,
|
|
525
|
+
}, null, 8, Ut)
|
|
526
|
+
], 8, Mt))), 256))
|
|
519
527
|
]),
|
|
520
|
-
e.value.style.chart.layout.grid.show ? (r(), u("g",
|
|
521
|
-
(r(!0), u(
|
|
528
|
+
e.value.style.chart.layout.grid.show ? (r(), u("g", Et, [
|
|
529
|
+
(r(!0), u(A, null, F(w.value, (o) => (r(), u("line", {
|
|
522
530
|
x1: i.value.width / 2,
|
|
523
531
|
y1: i.value.height / 2,
|
|
524
532
|
x2: o.x,
|
|
525
533
|
y2: o.y,
|
|
526
534
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
527
535
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
528
|
-
}, null, 8,
|
|
529
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g",
|
|
530
|
-
(r(!0), u(
|
|
531
|
-
d: n(
|
|
536
|
+
}, null, 8, Bt))), 256)),
|
|
537
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Dt, [
|
|
538
|
+
(r(!0), u(A, null, F(at.value, (o) => (r(), u("path", {
|
|
539
|
+
d: n(Le)({
|
|
532
540
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
533
541
|
radius: o,
|
|
534
542
|
sides: Te.value,
|
|
@@ -537,69 +545,69 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
537
545
|
fill: "none",
|
|
538
546
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
539
547
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
540
|
-
}, null, 8,
|
|
548
|
+
}, null, 8, Gt))), 256))
|
|
541
549
|
])) : d("", !0)
|
|
542
550
|
])) : d("", !0),
|
|
543
|
-
|
|
551
|
+
O("path", {
|
|
544
552
|
d: Pe.value.path,
|
|
545
553
|
fill: "none",
|
|
546
554
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
547
555
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
548
556
|
"stroke-linejoin": "round",
|
|
549
557
|
"stroke-linecap": "round"
|
|
550
|
-
}, null, 8,
|
|
551
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g",
|
|
552
|
-
(r(!0), u(
|
|
558
|
+
}, null, 8, Wt),
|
|
559
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Xt, [
|
|
560
|
+
(r(!0), u(A, null, F(w.value, (o, l) => (r(), u("text", {
|
|
553
561
|
x: Q(o).x,
|
|
554
562
|
y: Q(o).y,
|
|
555
563
|
"text-anchor": Q(o).anchor,
|
|
556
564
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
557
565
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
558
|
-
onMouseenter: (s) =>
|
|
566
|
+
onMouseenter: (s) => rt(o, l),
|
|
559
567
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
560
568
|
H.value = !1, X.value = null;
|
|
561
569
|
})
|
|
562
|
-
}, D(o.name), 41,
|
|
570
|
+
}, D(o.name), 41, jt))), 256))
|
|
563
571
|
])) : d("", !0),
|
|
564
|
-
(r(!0), u(
|
|
565
|
-
|
|
572
|
+
(r(!0), u(A, null, F(y.value, (o, l) => (r(), u("g", null, [
|
|
573
|
+
O("g", null, [
|
|
566
574
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
567
575
|
key: 0,
|
|
568
|
-
points: n(
|
|
576
|
+
points: n(Me)(w.value.map((s) => s.plots[l]), !1, !0),
|
|
569
577
|
stroke: e.value.style.chart.backgroundColor,
|
|
570
578
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
571
579
|
fill: "none",
|
|
572
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
573
|
-
}, null, 10,
|
|
580
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
581
|
+
}, null, 10, qt)) : d("", !0),
|
|
574
582
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
575
583
|
key: 1,
|
|
576
|
-
points: n(
|
|
584
|
+
points: n(Me)(w.value.map((s) => s.plots[l]), !1, !0),
|
|
577
585
|
stroke: o.color,
|
|
578
586
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
579
587
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
580
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
581
|
-
}, null, 10,
|
|
588
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
589
|
+
}, null, 10, Ht)) : d("", !0)
|
|
582
590
|
])
|
|
583
591
|
]))), 256)),
|
|
584
|
-
e.value.style.chart.layout.plots.show ? (r(), u("g",
|
|
585
|
-
(r(!0), u(
|
|
586
|
-
(r(!0), u(
|
|
592
|
+
e.value.style.chart.layout.plots.show ? (r(), u("g", Yt, [
|
|
593
|
+
(r(!0), u(A, null, F(w.value, (o, l) => (r(), u("g", null, [
|
|
594
|
+
(r(!0), u(A, null, F(o.plots, (s, b) => (r(), u("circle", {
|
|
587
595
|
cx: s.x,
|
|
588
596
|
cy: s.y,
|
|
589
597
|
fill: v.value.includes(b) ? "transparent" : y.value[b].color,
|
|
590
598
|
r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
591
599
|
stroke: v.value.includes(b) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
592
600
|
"stroke-width": 0.5,
|
|
593
|
-
class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in":
|
|
594
|
-
}, null, 10,
|
|
601
|
+
class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in": I.value && E.value === b && e.value.useCssAnimation })
|
|
602
|
+
}, null, 10, Jt))), 256))
|
|
595
603
|
]))), 256))
|
|
596
604
|
])) : d("", !0),
|
|
597
605
|
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
598
|
-
], 14,
|
|
599
|
-
t.$slots.watermark ? (r(), u("div",
|
|
600
|
-
g(t.$slots, "watermark",
|
|
606
|
+
], 14, Lt)) : d("", !0),
|
|
607
|
+
t.$slots.watermark ? (r(), u("div", Kt, [
|
|
608
|
+
g(t.$slots, "watermark", z(M({ isPrinting: n(me) || n(be) })), void 0, !0)
|
|
601
609
|
])) : d("", !0),
|
|
602
|
-
|
|
610
|
+
U.value ? d("", !0) : (r(), x(n(Xe), {
|
|
603
611
|
key: 6,
|
|
604
612
|
config: {
|
|
605
613
|
type: "radar",
|
|
@@ -616,30 +624,30 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
616
624
|
}
|
|
617
625
|
}
|
|
618
626
|
}, null, 8, ["config"])),
|
|
619
|
-
|
|
627
|
+
O("div", {
|
|
620
628
|
ref_key: "chartLegend",
|
|
621
629
|
ref: ne
|
|
622
630
|
}, [
|
|
623
|
-
e.value.style.chart.legend.show ? (r(),
|
|
631
|
+
e.value.style.chart.legend.show ? (r(), x(Ft, {
|
|
624
632
|
key: `legend_${ve.value}`,
|
|
625
|
-
legendSet:
|
|
626
|
-
config:
|
|
633
|
+
legendSet: R.value,
|
|
634
|
+
config: lt.value,
|
|
627
635
|
onClickMarker: a[1] || (a[1] = ({ i: o }) => $e(o))
|
|
628
636
|
}, {
|
|
629
637
|
item: f(({ legend: o, index: l }) => [
|
|
630
|
-
|
|
638
|
+
O("div", {
|
|
631
639
|
onClick: (s) => o.segregate(),
|
|
632
640
|
style: q(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
633
641
|
}, D(o.name) + ": " + D(n(G)({
|
|
634
642
|
v: o.totalProportion * 100,
|
|
635
643
|
s: "%",
|
|
636
644
|
r: e.value.style.chart.legend.roundingPercentage
|
|
637
|
-
})), 13,
|
|
645
|
+
})), 13, Qt)
|
|
638
646
|
]),
|
|
639
647
|
_: 1
|
|
640
648
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
641
649
|
key: 1,
|
|
642
|
-
legend:
|
|
650
|
+
legend: R.value
|
|
643
651
|
}, void 0, !0)
|
|
644
652
|
], 512),
|
|
645
653
|
t.$slots.source ? (r(), u("div", {
|
|
@@ -650,7 +658,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
650
658
|
}, [
|
|
651
659
|
g(t.$slots, "source", {}, void 0, !0)
|
|
652
660
|
], 512)) : d("", !0),
|
|
653
|
-
oe(n(
|
|
661
|
+
oe(n(je), {
|
|
654
662
|
show: m.value.showTooltip && H.value,
|
|
655
663
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
656
664
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -661,27 +669,27 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
661
669
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
662
670
|
position: e.value.style.chart.tooltip.position,
|
|
663
671
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
664
|
-
parent:
|
|
672
|
+
parent: T.value,
|
|
665
673
|
content: Y.value,
|
|
666
|
-
isFullscreen:
|
|
674
|
+
isFullscreen: L.value,
|
|
667
675
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
668
676
|
}, {
|
|
669
677
|
"tooltip-before": f(() => [
|
|
670
|
-
g(t.$slots, "tooltip-before",
|
|
678
|
+
g(t.$slots, "tooltip-before", z(M({ ...ee.value })), void 0, !0)
|
|
671
679
|
]),
|
|
672
680
|
"tooltip-after": f(() => [
|
|
673
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div",
|
|
674
|
-
oe(n(
|
|
681
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Zt, [
|
|
682
|
+
oe(n(Ye), {
|
|
675
683
|
dataset: Z.value,
|
|
676
|
-
config:
|
|
684
|
+
config: Ze.value,
|
|
677
685
|
backgroundOpacity: 0
|
|
678
686
|
}, null, 8, ["dataset", "config"])
|
|
679
687
|
])),
|
|
680
|
-
g(t.$slots, "tooltip-after",
|
|
688
|
+
g(t.$slots, "tooltip-after", z(M({ ...ee.value })), void 0, !0)
|
|
681
689
|
]),
|
|
682
690
|
_: 3
|
|
683
691
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
684
|
-
|
|
692
|
+
U.value ? (r(), x(n(We), {
|
|
685
693
|
key: 8,
|
|
686
694
|
hideDetails: "",
|
|
687
695
|
config: {
|
|
@@ -698,7 +706,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
698
706
|
}
|
|
699
707
|
}, {
|
|
700
708
|
content: f(() => [
|
|
701
|
-
(r(),
|
|
709
|
+
(r(), x(n(De), {
|
|
702
710
|
key: `table_${de.value}`,
|
|
703
711
|
colNames: W.value.colNames,
|
|
704
712
|
head: W.value.head,
|
|
@@ -708,19 +716,19 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
708
716
|
onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
|
|
709
717
|
}, {
|
|
710
718
|
th: f(({ th: o }) => [
|
|
711
|
-
|
|
719
|
+
Ne(D(o.name), 1)
|
|
712
720
|
]),
|
|
713
721
|
td: f(({ td: o }) => [
|
|
714
|
-
|
|
722
|
+
Ne(D(o), 1)
|
|
715
723
|
]),
|
|
716
724
|
_: 1
|
|
717
725
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
718
726
|
]),
|
|
719
727
|
_: 1
|
|
720
728
|
}, 8, ["config"])) : d("", !0)
|
|
721
|
-
], 46,
|
|
729
|
+
], 46, Rt));
|
|
722
730
|
}
|
|
723
|
-
},
|
|
731
|
+
}, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-e7633d87"]]);
|
|
724
732
|
export {
|
|
725
|
-
|
|
733
|
+
pa as default
|
|
726
734
|
};
|