vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent 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-CobsZUkv.js";
|
|
3
|
+
import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ve } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ft from "./Legend-3LNqqLDg.js";
|
|
9
|
+
import St from "./Title-DpERl1yr.js";
|
|
10
|
+
import Nt from "./img-utitT2Gd.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-Dt-TIOyY.js")), Ge = _(() => import("./PenAndPaper-Cde-wJ3N.js")), We = _(() => import("./vue-ui-accordion-UewqY6OI.js")), Xe = _(() => import("./vue-ui-skeleton-8s4xts8z.js")), je = _(() => import("./Tooltip-DA0bYKFG.js")), qe = _(() => import("./UserOptions-DTEJ3UM_.js")), He = _(() => import("./PackageVersion-C-4Ee8BQ.js")), Ye = _(() => import("./vue-ui-sparkbar-B8MB-kn9.js")), { vue_ui_radar: Je } = vt(), h = Ue, U = p(() => !!h.dataset && Object.keys(h.dataset).length), T = c(pt()), Ke = c(null), H = c(!1), Y = c(""), re = c(0), C = 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
|
-
e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.value += 1,
|
|
53
|
+
nt(() => h.config, (t) => {
|
|
54
|
+
e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tootlip ? e.value.style.chart.tootlip.show : !1;
|
|
54
55
|
}, { deep: !0 });
|
|
55
|
-
const
|
|
56
|
+
const w = 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: C.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
|
-
|
|
74
|
+
w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect()), w.value = new ResizeObserver(t), N.value = C.value.parentNode, w.value.observe(N.value);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
ut(() => {
|
|
77
78
|
ye();
|
|
78
|
-
}),
|
|
79
|
-
|
|
79
|
+
}), it(() => {
|
|
80
|
+
w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect());
|
|
80
81
|
});
|
|
81
|
-
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } =
|
|
82
|
-
elementId: `vue-ui-radar_${
|
|
82
|
+
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = xt({
|
|
83
|
+
elementId: `vue-ui-radar_${T.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)), b = 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",
|
|
@@ -167,27 +168,27 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
167
168
|
});
|
|
168
169
|
}), h.dataset.categories.map((t, a) => ({
|
|
169
170
|
name: t.name,
|
|
170
|
-
categoryId: `radar_category_${
|
|
171
|
-
color:
|
|
171
|
+
categoryId: `radar_category_${T.value}_${a}`,
|
|
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
|
-
serieId: `radar_serie_${
|
|
177
|
+
color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
|
|
178
|
+
serieId: `radar_serie_${T.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
|
-
const o = k.value[a].values.map((l) =>
|
|
190
|
+
}), $ = p(() => Pe.value.coordinates.map((t, a) => {
|
|
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,10 +245,10 @@ 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,
|
|
248
|
+
...l.values.map((s, m) => `${ze(
|
|
248
249
|
l.formatter,
|
|
249
250
|
s,
|
|
250
|
-
G({ p: y.value[
|
|
251
|
+
G({ p: y.value[m].prefix, v: s, s: y.value[m].suffix, r: e.value.table.td.roundingValue })
|
|
251
252
|
)} (${isNaN(s / l.target) ? "" : G({
|
|
252
253
|
v: s / l.target * 100,
|
|
253
254
|
s: "%",
|
|
@@ -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 = {
|
|
@@ -277,21 +278,21 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
277
278
|
series: {
|
|
278
279
|
categories: y.value,
|
|
279
280
|
datapoints: k.value,
|
|
280
|
-
radar:
|
|
281
|
+
radar: $.value
|
|
281
282
|
},
|
|
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
|
-
series: { categories: y.value, datapoints: k.value, radar:
|
|
289
|
+
series: { categories: y.value, datapoints: k.value, radar: $.value },
|
|
289
290
|
config: e.value
|
|
290
291
|
})))
|
|
291
292
|
Y.value = l({
|
|
292
293
|
seriesIndex: a,
|
|
293
294
|
datapoint: t,
|
|
294
|
-
series: { categories: y.value, datapoints: k.value, radar:
|
|
295
|
+
series: { categories: y.value, datapoints: k.value, radar: $.value },
|
|
295
296
|
config: e.value
|
|
296
297
|
});
|
|
297
298
|
else {
|
|
@@ -310,46 +311,60 @@ 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),
|
|
318
|
-
t ? t(
|
|
317
|
+
isNaN(ae / P.target) ? "" : ae / P.target * 100
|
|
318
|
+
])]), s = a.concat([o]).concat(l), m = Ct(s);
|
|
319
|
+
t ? t(m) : wt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
319
320
|
});
|
|
320
321
|
}
|
|
321
|
-
const
|
|
322
|
-
function
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
function Oe() {
|
|
326
|
-
m.value.showTable = !m.value.showTable;
|
|
322
|
+
const L = c(!1);
|
|
323
|
+
function Oe(t) {
|
|
324
|
+
L.value = t, re.value += 1;
|
|
327
325
|
}
|
|
328
326
|
function Ae() {
|
|
329
|
-
|
|
327
|
+
b.value.showTable = !b.value.showTable;
|
|
328
|
+
}
|
|
329
|
+
function Fe() {
|
|
330
|
+
b.value.showTooltip = !b.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 (!C.value) return;
|
|
338
|
+
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: m } = await Nt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
339
|
+
return {
|
|
340
|
+
imageUri: s,
|
|
341
|
+
base64: m,
|
|
342
|
+
title: e.value.style.chart.title.text,
|
|
343
|
+
width: a,
|
|
344
|
+
height: o,
|
|
345
|
+
aspectRatio: l
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
return Ee({
|
|
349
|
+
getData: tt,
|
|
350
|
+
getImage: st,
|
|
337
351
|
generatePdf: ke,
|
|
338
352
|
generateCsv: xe,
|
|
339
353
|
generateImage: Ce,
|
|
340
|
-
toggleTable:
|
|
341
|
-
toggleTooltip:
|
|
342
|
-
toggleAnnotator: te
|
|
354
|
+
toggleTable: Ae,
|
|
355
|
+
toggleTooltip: Fe,
|
|
356
|
+
toggleAnnotator: te,
|
|
357
|
+
toggleFullscreen: Oe
|
|
343
358
|
}), (t, a) => (r(), u("div", {
|
|
344
|
-
class: B(`vue-ui-radar ${
|
|
359
|
+
class: B(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
345
360
|
ref_key: "radarChart",
|
|
346
|
-
ref:
|
|
347
|
-
id: `vue-ui-radar_${
|
|
361
|
+
ref: C,
|
|
362
|
+
id: `vue-ui-radar_${T.value}`,
|
|
348
363
|
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
364
|
onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
|
|
350
365
|
onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
|
|
351
366
|
}, [
|
|
352
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
367
|
+
e.value.userOptions.buttons.annotator ? (r(), x(n(Ge), {
|
|
353
368
|
key: 0,
|
|
354
369
|
svgRef: n(ge),
|
|
355
370
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -357,7 +372,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
357
372
|
active: j.value,
|
|
358
373
|
onClose: te
|
|
359
374
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
360
|
-
|
|
375
|
+
Qe.value ? (r(), u("div", {
|
|
361
376
|
key: 1,
|
|
362
377
|
ref_key: "noTitle",
|
|
363
378
|
ref: ie,
|
|
@@ -370,7 +385,7 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
370
385
|
ref: se,
|
|
371
386
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
372
387
|
}, [
|
|
373
|
-
(r(),
|
|
388
|
+
(r(), x(St, {
|
|
374
389
|
key: `title_${ce.value}`,
|
|
375
390
|
config: {
|
|
376
391
|
title: {
|
|
@@ -384,45 +399,45 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
384
399
|
}
|
|
385
400
|
}, null, 8, ["config"]))
|
|
386
401
|
], 512)) : d("", !0),
|
|
387
|
-
e.value.userOptions.show &&
|
|
402
|
+
e.value.userOptions.show && U.value && (n(he) || n(J)) ? (r(), x(n(qe), {
|
|
388
403
|
ref_key: "details",
|
|
389
|
-
ref:
|
|
404
|
+
ref: Ke,
|
|
390
405
|
key: `user_options_${re.value}`,
|
|
391
406
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
407
|
color: e.value.style.chart.color,
|
|
393
408
|
isImaging: n(be),
|
|
394
409
|
isPrinting: n(me),
|
|
395
|
-
uid:
|
|
410
|
+
uid: T.value,
|
|
396
411
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
397
412
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
398
413
|
hasImg: e.value.userOptions.buttons.img,
|
|
399
414
|
hasXls: e.value.userOptions.buttons.csv,
|
|
400
415
|
hasTable: e.value.userOptions.buttons.table,
|
|
401
416
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
402
|
-
isFullscreen:
|
|
403
|
-
isTooltip:
|
|
417
|
+
isFullscreen: L.value,
|
|
418
|
+
isTooltip: b.value.showTooltip,
|
|
404
419
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
405
|
-
chartElement:
|
|
420
|
+
chartElement: C.value,
|
|
406
421
|
position: e.value.userOptions.position,
|
|
407
422
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
408
423
|
isAnnotation: j.value,
|
|
409
424
|
callbacks: e.value.userOptions.callbacks,
|
|
410
425
|
printScale: e.value.userOptions.print.scale,
|
|
411
|
-
onToggleFullscreen:
|
|
426
|
+
onToggleFullscreen: Oe,
|
|
412
427
|
onGeneratePdf: n(ke),
|
|
413
428
|
onGenerateCsv: xe,
|
|
414
429
|
onGenerateImage: n(Ce),
|
|
415
|
-
onToggleTable:
|
|
416
|
-
onToggleTooltip:
|
|
430
|
+
onToggleTable: Ae,
|
|
431
|
+
onToggleTooltip: Fe,
|
|
417
432
|
onToggleAnnotator: te,
|
|
418
433
|
style: q({
|
|
419
434
|
visibility: n(he) ? n(J) ? "visible" : "hidden" : "visible"
|
|
420
435
|
})
|
|
421
|
-
},
|
|
436
|
+
}, ct({ _: 2 }, [
|
|
422
437
|
t.$slots.menuIcon ? {
|
|
423
438
|
name: "menuIcon",
|
|
424
439
|
fn: f(({ isOpen: o, color: l }) => [
|
|
425
|
-
g(t.$slots, "menuIcon",
|
|
440
|
+
g(t.$slots, "menuIcon", z(M({ isOpen: o, color: l })), void 0, !0)
|
|
426
441
|
]),
|
|
427
442
|
key: "0"
|
|
428
443
|
} : void 0,
|
|
@@ -464,28 +479,28 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
464
479
|
t.$slots.optionFullscreen ? {
|
|
465
480
|
name: "optionFullscreen",
|
|
466
481
|
fn: f(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
467
|
-
g(t.$slots, "optionFullscreen",
|
|
482
|
+
g(t.$slots, "optionFullscreen", z(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
468
483
|
]),
|
|
469
484
|
key: "6"
|
|
470
485
|
} : void 0,
|
|
471
486
|
t.$slots.optionAnnotator ? {
|
|
472
487
|
name: "optionAnnotator",
|
|
473
488
|
fn: f(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
474
|
-
g(t.$slots, "optionAnnotator",
|
|
489
|
+
g(t.$slots, "optionAnnotator", z(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
475
490
|
]),
|
|
476
491
|
key: "7"
|
|
477
492
|
} : void 0
|
|
478
493
|
]), 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
|
-
|
|
494
|
+
U.value ? (r(), u("svg", {
|
|
480
495
|
key: 4,
|
|
481
496
|
ref_key: "svgRef",
|
|
482
497
|
ref: ge,
|
|
483
|
-
xmlns: n(
|
|
484
|
-
class: B({ "vue-data-ui-fullscreen--on":
|
|
498
|
+
xmlns: n(bt),
|
|
499
|
+
class: B({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
485
500
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
486
501
|
style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
487
502
|
}, [
|
|
488
|
-
oe(n(
|
|
503
|
+
oe(n(He)),
|
|
489
504
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
490
505
|
key: 0,
|
|
491
506
|
x: 0,
|
|
@@ -497,38 +512,38 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
497
512
|
}
|
|
498
513
|
}, [
|
|
499
514
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
500
|
-
], 8,
|
|
501
|
-
|
|
502
|
-
(r(!0), u(
|
|
515
|
+
], 8, zt)) : d("", !0),
|
|
516
|
+
O("defs", null, [
|
|
517
|
+
(r(!0), u(A, null, F(y.value, (o, l) => (r(), u("radialGradient", {
|
|
503
518
|
cx: "50%",
|
|
504
519
|
cy: "50%",
|
|
505
520
|
r: "50%",
|
|
506
521
|
fx: "50%",
|
|
507
522
|
fy: "50%",
|
|
508
|
-
id: `radar_gradient_${
|
|
523
|
+
id: `radar_gradient_${T.value}_${l}`
|
|
509
524
|
}, [
|
|
510
|
-
|
|
525
|
+
O("stop", {
|
|
511
526
|
offset: "0%",
|
|
512
|
-
"stop-color": n(le)(n(
|
|
513
|
-
}, null, 8,
|
|
514
|
-
|
|
527
|
+
"stop-color": n(le)(n(kt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
528
|
+
}, null, 8, Vt),
|
|
529
|
+
O("stop", {
|
|
515
530
|
offset: "100%",
|
|
516
531
|
"stop-color": n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
517
|
-
}, null, 8,
|
|
518
|
-
], 8,
|
|
532
|
+
}, null, 8, Ut)
|
|
533
|
+
], 8, Mt))), 256))
|
|
519
534
|
]),
|
|
520
|
-
e.value.style.chart.layout.grid.show ? (r(), u("g",
|
|
521
|
-
(r(!0), u(
|
|
535
|
+
e.value.style.chart.layout.grid.show ? (r(), u("g", Et, [
|
|
536
|
+
(r(!0), u(A, null, F($.value, (o) => (r(), u("line", {
|
|
522
537
|
x1: i.value.width / 2,
|
|
523
538
|
y1: i.value.height / 2,
|
|
524
539
|
x2: o.x,
|
|
525
540
|
y2: o.y,
|
|
526
541
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
527
542
|
"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(
|
|
543
|
+
}, null, 8, Bt))), 256)),
|
|
544
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Dt, [
|
|
545
|
+
(r(!0), u(A, null, F(at.value, (o) => (r(), u("path", {
|
|
546
|
+
d: n(Le)({
|
|
532
547
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
533
548
|
radius: o,
|
|
534
549
|
sides: Te.value,
|
|
@@ -537,69 +552,69 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
537
552
|
fill: "none",
|
|
538
553
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
539
554
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
540
|
-
}, null, 8,
|
|
555
|
+
}, null, 8, Gt))), 256))
|
|
541
556
|
])) : d("", !0)
|
|
542
557
|
])) : d("", !0),
|
|
543
|
-
|
|
558
|
+
O("path", {
|
|
544
559
|
d: Pe.value.path,
|
|
545
560
|
fill: "none",
|
|
546
561
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
547
562
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
548
563
|
"stroke-linejoin": "round",
|
|
549
564
|
"stroke-linecap": "round"
|
|
550
|
-
}, null, 8,
|
|
551
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g",
|
|
552
|
-
(r(!0), u(
|
|
565
|
+
}, null, 8, Wt),
|
|
566
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Xt, [
|
|
567
|
+
(r(!0), u(A, null, F($.value, (o, l) => (r(), u("text", {
|
|
553
568
|
x: Q(o).x,
|
|
554
569
|
y: Q(o).y,
|
|
555
570
|
"text-anchor": Q(o).anchor,
|
|
556
571
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
557
572
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
558
|
-
onMouseenter: (s) =>
|
|
573
|
+
onMouseenter: (s) => rt(o, l),
|
|
559
574
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
560
575
|
H.value = !1, X.value = null;
|
|
561
576
|
})
|
|
562
|
-
}, D(o.name), 41,
|
|
577
|
+
}, D(o.name), 41, jt))), 256))
|
|
563
578
|
])) : d("", !0),
|
|
564
|
-
(r(!0), u(
|
|
565
|
-
|
|
579
|
+
(r(!0), u(A, null, F(y.value, (o, l) => (r(), u("g", null, [
|
|
580
|
+
O("g", null, [
|
|
566
581
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
567
582
|
key: 0,
|
|
568
|
-
points: n(
|
|
583
|
+
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
569
584
|
stroke: e.value.style.chart.backgroundColor,
|
|
570
585
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
571
586
|
fill: "none",
|
|
572
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
573
|
-
}, null, 10,
|
|
587
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
588
|
+
}, null, 10, qt)) : d("", !0),
|
|
574
589
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
575
590
|
key: 1,
|
|
576
|
-
points: n(
|
|
591
|
+
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
577
592
|
stroke: o.color,
|
|
578
593
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
579
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
580
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
581
|
-
}, null, 10,
|
|
594
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${T.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
595
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
596
|
+
}, null, 10, Ht)) : d("", !0)
|
|
582
597
|
])
|
|
583
598
|
]))), 256)),
|
|
584
|
-
e.value.style.chart.layout.plots.show ? (r(), u("g",
|
|
585
|
-
(r(!0), u(
|
|
586
|
-
(r(!0), u(
|
|
599
|
+
e.value.style.chart.layout.plots.show ? (r(), u("g", Yt, [
|
|
600
|
+
(r(!0), u(A, null, F($.value, (o, l) => (r(), u("g", null, [
|
|
601
|
+
(r(!0), u(A, null, F(o.plots, (s, m) => (r(), u("circle", {
|
|
587
602
|
cx: s.x,
|
|
588
603
|
cy: s.y,
|
|
589
|
-
fill: v.value.includes(
|
|
604
|
+
fill: v.value.includes(m) ? "transparent" : y.value[m].color,
|
|
590
605
|
r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
591
|
-
stroke: v.value.includes(
|
|
606
|
+
stroke: v.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
592
607
|
"stroke-width": 0.5,
|
|
593
|
-
class: B({ "animated-out": v.value.includes(
|
|
594
|
-
}, null, 10,
|
|
608
|
+
class: B({ "animated-out": v.value.includes(m) && e.value.useCssAnimation, "animated-in": I.value && E.value === m && e.value.useCssAnimation })
|
|
609
|
+
}, null, 10, Jt))), 256))
|
|
595
610
|
]))), 256))
|
|
596
611
|
])) : d("", !0),
|
|
597
612
|
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
598
|
-
], 14,
|
|
599
|
-
t.$slots.watermark ? (r(), u("div",
|
|
600
|
-
g(t.$slots, "watermark",
|
|
613
|
+
], 14, Lt)) : d("", !0),
|
|
614
|
+
t.$slots.watermark ? (r(), u("div", Kt, [
|
|
615
|
+
g(t.$slots, "watermark", z(M({ isPrinting: n(me) || n(be) })), void 0, !0)
|
|
601
616
|
])) : d("", !0),
|
|
602
|
-
|
|
617
|
+
U.value ? d("", !0) : (r(), x(n(Xe), {
|
|
603
618
|
key: 6,
|
|
604
619
|
config: {
|
|
605
620
|
type: "radar",
|
|
@@ -616,30 +631,30 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
616
631
|
}
|
|
617
632
|
}
|
|
618
633
|
}, null, 8, ["config"])),
|
|
619
|
-
|
|
634
|
+
O("div", {
|
|
620
635
|
ref_key: "chartLegend",
|
|
621
636
|
ref: ne
|
|
622
637
|
}, [
|
|
623
|
-
e.value.style.chart.legend.show ? (r(),
|
|
638
|
+
e.value.style.chart.legend.show ? (r(), x(Ft, {
|
|
624
639
|
key: `legend_${ve.value}`,
|
|
625
|
-
legendSet:
|
|
626
|
-
config:
|
|
640
|
+
legendSet: R.value,
|
|
641
|
+
config: lt.value,
|
|
627
642
|
onClickMarker: a[1] || (a[1] = ({ i: o }) => $e(o))
|
|
628
643
|
}, {
|
|
629
644
|
item: f(({ legend: o, index: l }) => [
|
|
630
|
-
|
|
645
|
+
O("div", {
|
|
631
646
|
onClick: (s) => o.segregate(),
|
|
632
647
|
style: q(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
633
648
|
}, D(o.name) + ": " + D(n(G)({
|
|
634
649
|
v: o.totalProportion * 100,
|
|
635
650
|
s: "%",
|
|
636
651
|
r: e.value.style.chart.legend.roundingPercentage
|
|
637
|
-
})), 13,
|
|
652
|
+
})), 13, Qt)
|
|
638
653
|
]),
|
|
639
654
|
_: 1
|
|
640
655
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
641
656
|
key: 1,
|
|
642
|
-
legend:
|
|
657
|
+
legend: R.value
|
|
643
658
|
}, void 0, !0)
|
|
644
659
|
], 512),
|
|
645
660
|
t.$slots.source ? (r(), u("div", {
|
|
@@ -650,8 +665,8 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
650
665
|
}, [
|
|
651
666
|
g(t.$slots, "source", {}, void 0, !0)
|
|
652
667
|
], 512)) : d("", !0),
|
|
653
|
-
oe(n(
|
|
654
|
-
show:
|
|
668
|
+
oe(n(je), {
|
|
669
|
+
show: b.value.showTooltip && H.value,
|
|
655
670
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
656
671
|
color: e.value.style.chart.tooltip.color,
|
|
657
672
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -661,31 +676,31 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
661
676
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
662
677
|
position: e.value.style.chart.tooltip.position,
|
|
663
678
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
664
|
-
parent:
|
|
679
|
+
parent: C.value,
|
|
665
680
|
content: Y.value,
|
|
666
|
-
isFullscreen:
|
|
681
|
+
isFullscreen: L.value,
|
|
667
682
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
668
683
|
}, {
|
|
669
684
|
"tooltip-before": f(() => [
|
|
670
|
-
g(t.$slots, "tooltip-before",
|
|
685
|
+
g(t.$slots, "tooltip-before", z(M({ ...ee.value })), void 0, !0)
|
|
671
686
|
]),
|
|
672
687
|
"tooltip-after": f(() => [
|
|
673
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div",
|
|
674
|
-
oe(n(
|
|
688
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Zt, [
|
|
689
|
+
oe(n(Ye), {
|
|
675
690
|
dataset: Z.value,
|
|
676
|
-
config:
|
|
691
|
+
config: Ze.value,
|
|
677
692
|
backgroundOpacity: 0
|
|
678
693
|
}, null, 8, ["dataset", "config"])
|
|
679
694
|
])),
|
|
680
|
-
g(t.$slots, "tooltip-after",
|
|
695
|
+
g(t.$slots, "tooltip-after", z(M({ ...ee.value })), void 0, !0)
|
|
681
696
|
]),
|
|
682
697
|
_: 3
|
|
683
698
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
684
|
-
|
|
699
|
+
U.value ? (r(), x(n(We), {
|
|
685
700
|
key: 8,
|
|
686
701
|
hideDetails: "",
|
|
687
702
|
config: {
|
|
688
|
-
open:
|
|
703
|
+
open: b.value.showTable,
|
|
689
704
|
maxHeight: 1e4,
|
|
690
705
|
body: {
|
|
691
706
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -698,29 +713,29 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
698
713
|
}
|
|
699
714
|
}, {
|
|
700
715
|
content: f(() => [
|
|
701
|
-
(r(),
|
|
716
|
+
(r(), x(n(De), {
|
|
702
717
|
key: `table_${de.value}`,
|
|
703
718
|
colNames: W.value.colNames,
|
|
704
719
|
head: W.value.head,
|
|
705
720
|
body: W.value.body,
|
|
706
721
|
config: W.value.config,
|
|
707
722
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
708
|
-
onClose: a[2] || (a[2] = (o) =>
|
|
723
|
+
onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
|
|
709
724
|
}, {
|
|
710
725
|
th: f(({ th: o }) => [
|
|
711
|
-
|
|
726
|
+
Ne(D(o.name), 1)
|
|
712
727
|
]),
|
|
713
728
|
td: f(({ td: o }) => [
|
|
714
|
-
|
|
729
|
+
Ne(D(o), 1)
|
|
715
730
|
]),
|
|
716
731
|
_: 1
|
|
717
732
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
718
733
|
]),
|
|
719
734
|
_: 1
|
|
720
735
|
}, 8, ["config"])) : d("", !0)
|
|
721
|
-
], 46,
|
|
736
|
+
], 46, Rt));
|
|
722
737
|
}
|
|
723
|
-
},
|
|
738
|
+
}, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-3515f6e2"]]);
|
|
724
739
|
export {
|
|
725
|
-
|
|
740
|
+
pa as default
|
|
726
741
|
};
|