vue-data-ui 2.12.8-beta.3 → 2.13.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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed 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 { _ as
|
|
11
|
-
const
|
|
1
|
+
import { defineAsyncComponent as $, computed as p, ref as c, watch as st, shallowRef as Fe, onMounted as nt, onBeforeUnmount as ut, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as P, createCommentVNode as d, createElementVNode as x, createVNode as oe, createSlots as it, withCtx as f, renderSlot as g, normalizeProps as L, guardReactiveProps as z, Fragment as A, renderList as O, toDisplayString as D, createTextVNode as Ne, nextTick as ct } from "vue";
|
|
2
|
+
import { u as dt, c as vt, t as pt, p as F, a as ht, o as gt, e as M, b as ft, g as Se, d as Ie, Q as Re, v as yt, i as Le, f as G, X as mt, s as le, w as bt, R as ze, q as kt, r as Ct, x as wt, y as $t } from "./index-BXbyT0Qn.js";
|
|
3
|
+
import { t as _t, u as Tt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Me } from "./useNestedProp-DVZpeH84.js";
|
|
5
|
+
import { u as Pt } from "./usePrinter-aKh5-HcK.js";
|
|
6
|
+
import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ot from "./Legend-DcDRW3Xd.js";
|
|
9
|
+
import Ft from "./Title-DoWqzga-.js";
|
|
10
|
+
import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const St = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["id"], zt = ["stop-color"], Mt = ["stop-color"], Vt = { key: 1 }, Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Et = { key: 0 }, Bt = ["d", "stroke", "stroke-width"], Dt = ["d", "stroke", "stroke-width"], Gt = { key: 2 }, Wt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Xt = ["points", "stroke", "stroke-width"], jt = ["points", "stroke", "stroke-width", "fill"], qt = { key: 3 }, Ht = ["cx", "cy", "fill", "r", "stroke"], Yt = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Qt = ["onClick"], Jt = {
|
|
15
15
|
key: 0,
|
|
16
16
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
17
|
-
},
|
|
17
|
+
}, Kt = {
|
|
18
18
|
__name: "vue-ui-radar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,64 +31,64 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
get: () =>
|
|
34
|
+
setup(Ve, { expose: Ue, emit: Ee }) {
|
|
35
|
+
const Be = $(() => import("./DataTable-DBkfb6pd.js")), De = $(() => import("./PenAndPaper-BRkuVFb4.js")), Ge = $(() => import("./vue-ui-accordion-CXsjHe1y.js")), We = $(() => import("./vue-ui-skeleton-Fxr752Oi.js")), Xe = $(() => import("./Tooltip-DYCBNM-_.js")), je = $(() => import("./UserOptions-B3q-xfQV.js")), qe = $(() => import("./PackageVersion-C5fpg4GN.js")), He = $(() => import("./vue-ui-sparkbar-DMTRPWwC.js")), { vue_ui_radar: Ye } = dt(), h = Ve, V = p(() => !!h.dataset && Object.keys(h.dataset).length), _ = c(vt()), Qe = c(null), H = c(!1), Y = c(""), re = c(0), U = 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
|
+
get: () => fe(),
|
|
37
37
|
set: (t) => t
|
|
38
|
-
}), { userOptionsVisible:
|
|
39
|
-
function
|
|
40
|
-
const t =
|
|
41
|
-
userConfig:
|
|
42
|
-
defaultConfig:
|
|
38
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: pe, keepUserOptionState: he } = xt({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
|
|
39
|
+
function fe() {
|
|
40
|
+
const t = Me({
|
|
41
|
+
userConfig: h.config,
|
|
42
|
+
defaultConfig: Ye
|
|
43
43
|
});
|
|
44
44
|
return t.theme ? {
|
|
45
|
-
...
|
|
46
|
-
userConfig:
|
|
45
|
+
...Me({
|
|
46
|
+
userConfig: ht.vue_ui_radar[t.theme] || h.config,
|
|
47
47
|
defaultConfig: t
|
|
48
48
|
}),
|
|
49
|
-
customPalette:
|
|
49
|
+
customPalette: pt[t.theme] || F
|
|
50
50
|
} : t;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
e.value =
|
|
52
|
+
st(() => h.config, (t) => {
|
|
53
|
+
e.value = fe(), Q.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
54
|
}, { deep: !0 });
|
|
55
|
-
const C =
|
|
56
|
-
function
|
|
57
|
-
if (
|
|
55
|
+
const C = Fe(null), N = Fe(null);
|
|
56
|
+
function ye() {
|
|
57
|
+
if (gt(h.dataset) && M({
|
|
58
58
|
componentName: "VueUiRadar",
|
|
59
59
|
type: "dataset"
|
|
60
60
|
}), e.value.responsive) {
|
|
61
|
-
const t =
|
|
62
|
-
const { width: a, height: o } =
|
|
63
|
-
chart:
|
|
64
|
-
title: e.value.style.chart.title.text ?
|
|
65
|
-
legend: e.value.style.chart.legend.show ?
|
|
66
|
-
source:
|
|
67
|
-
noTitle:
|
|
61
|
+
const t = _t(() => {
|
|
62
|
+
const { width: a, height: o } = Tt({
|
|
63
|
+
chart: U.value,
|
|
64
|
+
title: e.value.style.chart.title.text ? se.value : null,
|
|
65
|
+
legend: e.value.style.chart.legend.show ? ne.value : null,
|
|
66
|
+
source: ue.value,
|
|
67
|
+
noTitle: ie.value
|
|
68
68
|
});
|
|
69
69
|
requestAnimationFrame(() => {
|
|
70
70
|
i.value.width = a, i.value.height = o;
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
C.value && (
|
|
73
|
+
C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect()), C.value = new ResizeObserver(t), N.value = U.value.parentNode, C.value.observe(N.value);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
C.value && (
|
|
76
|
+
nt(() => {
|
|
77
|
+
ye();
|
|
78
|
+
}), ut(() => {
|
|
79
|
+
C.value && (N.value && C.value.unobserve(N.value), C.value.disconnect());
|
|
80
80
|
});
|
|
81
|
-
const { isPrinting:
|
|
81
|
+
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = Pt({
|
|
82
82
|
elementId: `vue-ui-radar_${_.value}`,
|
|
83
83
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
84
84
|
options: e.value.userOptions.print
|
|
85
|
-
}),
|
|
85
|
+
}), Je = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => ft(e.value.customPalette)), m = c({
|
|
86
86
|
dataLabels: {
|
|
87
87
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
88
88
|
},
|
|
89
89
|
showTable: e.value.table.show,
|
|
90
90
|
showTooltip: e.value.style.chart.tooltip.show
|
|
91
|
-
}),
|
|
91
|
+
}), Ke = p(() => ({
|
|
92
92
|
style: {
|
|
93
93
|
backgroundColor: "#FFFFFF00",
|
|
94
94
|
animation: {
|
|
@@ -109,55 +109,55 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
109
109
|
})), i = c({
|
|
110
110
|
height: 312,
|
|
111
111
|
width: 512
|
|
112
|
-
}),
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
}), Ze = Ee, v = c([]), E = c(null), S = c(!1);
|
|
113
|
+
function $e(t) {
|
|
114
|
+
S.value = !0, v.value.includes(t) ? (E.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
|
|
115
|
+
S.value = !1, E.value = null;
|
|
116
116
|
}, 500)) : (v.value.push(t), setTimeout(() => {
|
|
117
|
-
|
|
118
|
-
}, 500)),
|
|
117
|
+
S.value = !1;
|
|
118
|
+
}, 500)), Ze("selectLegend", I.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
|
|
119
119
|
name: a.name,
|
|
120
120
|
color: a.color,
|
|
121
121
|
proportion: a.totalProportion
|
|
122
122
|
})));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function et() {
|
|
125
|
+
return I.value.map((t) => ({
|
|
126
126
|
name: t.name,
|
|
127
127
|
color: t.color,
|
|
128
128
|
proportion: t.totalProportion
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const y = p(() => [null, void 0].includes(h.dataset.categories) ? (M({
|
|
132
132
|
componentName: "VueUiRadar",
|
|
133
133
|
type: "datasetAttribute",
|
|
134
134
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
135
|
-
}), []) : (
|
|
135
|
+
}), []) : (h.dataset.categories.length === 0 ? M({
|
|
136
136
|
componentName: "VueUiRadar",
|
|
137
137
|
type: "datasetAttributeEmpty",
|
|
138
138
|
property: "categories"
|
|
139
|
-
}) :
|
|
140
|
-
|
|
139
|
+
}) : h.dataset.categories.forEach((t, a) => {
|
|
140
|
+
Se({
|
|
141
141
|
datasetObject: t,
|
|
142
142
|
requiredAttributes: ["name"]
|
|
143
143
|
}).forEach((o) => {
|
|
144
|
-
|
|
144
|
+
M({
|
|
145
145
|
componentName: "VueUiRadar",
|
|
146
146
|
type: "datasetAttribute",
|
|
147
147
|
property: `category.${o} at index ${a}`,
|
|
148
148
|
index: a
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
|
-
}), [null, void 0].includes(
|
|
151
|
+
}), [null, void 0].includes(h.dataset.series) ? M({
|
|
152
152
|
componentName: "VueUiRadar",
|
|
153
153
|
type: "datasetAttribute",
|
|
154
154
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
155
|
-
}) :
|
|
156
|
-
|
|
155
|
+
}) : h.dataset.series.forEach((t, a) => {
|
|
156
|
+
Se({
|
|
157
157
|
datasetObject: t,
|
|
158
158
|
requiredAttributes: ["name", "values", "target"]
|
|
159
159
|
}).forEach((o) => {
|
|
160
|
-
|
|
160
|
+
M({
|
|
161
161
|
componentName: "VueUiRadar",
|
|
162
162
|
type: "datasetSerieAttribute",
|
|
163
163
|
key: "series",
|
|
@@ -165,34 +165,34 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
165
165
|
index: a
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
|
-
}),
|
|
168
|
+
}), h.dataset.categories.map((t, a) => ({
|
|
169
169
|
name: t.name,
|
|
170
170
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
171
|
-
color:
|
|
171
|
+
color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
|
|
172
172
|
prefix: t.prefix ?? "",
|
|
173
173
|
suffix: t.suffix ?? ""
|
|
174
|
-
})))), k =
|
|
174
|
+
})))), k = p(() => V.value ? h.dataset.series.map((t, a) => ({
|
|
175
175
|
...t,
|
|
176
|
-
color:
|
|
176
|
+
color: Ie(t.color) || we.value[a] || F[a] || F[a % F.length],
|
|
177
177
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
178
178
|
formatter: t.formatter || null
|
|
179
|
-
})) : []),
|
|
179
|
+
})) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), J = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Re({
|
|
180
180
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
181
|
-
radius:
|
|
182
|
-
sides:
|
|
181
|
+
radius: J.value,
|
|
182
|
+
sides: Te.value,
|
|
183
183
|
rotation: 0
|
|
184
|
-
})),
|
|
184
|
+
})), tt = p(() => {
|
|
185
185
|
const t = [];
|
|
186
|
-
for (let a = 0; a <
|
|
186
|
+
for (let a = 0; a < J.value; a += J.value / e.value.style.chart.layout.grid.graduations)
|
|
187
187
|
t.push(a);
|
|
188
188
|
return t;
|
|
189
|
-
}), w =
|
|
190
|
-
const o = k.value[a].values.map((l) =>
|
|
189
|
+
}), w = p(() => Pe.value.coordinates.map((t, a) => {
|
|
190
|
+
const o = k.value[a].values.map((l) => at({
|
|
191
191
|
centerX: i.value.width / 2,
|
|
192
192
|
centerY: i.value.height / 2,
|
|
193
193
|
apexX: t.x,
|
|
194
194
|
apexY: t.y,
|
|
195
|
-
proportion: l / (k.value[a].target ||
|
|
195
|
+
proportion: l / (k.value[a].target || _e.value)
|
|
196
196
|
}));
|
|
197
197
|
return {
|
|
198
198
|
...t,
|
|
@@ -200,55 +200,55 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
200
200
|
plots: o
|
|
201
201
|
};
|
|
202
202
|
}));
|
|
203
|
-
function
|
|
203
|
+
function K({ x: t, y: a }) {
|
|
204
204
|
let o = "middle";
|
|
205
205
|
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
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function at({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
208
208
|
return {
|
|
209
209
|
x: t + (o - t) * s,
|
|
210
210
|
y: a + (l - a) * s
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
215
|
-
return
|
|
213
|
+
const I = p(() => {
|
|
214
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || _e.value)));
|
|
215
|
+
return y.value.map((a, o) => ({
|
|
216
216
|
...a,
|
|
217
|
-
totalProportion:
|
|
217
|
+
totalProportion: yt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
|
|
218
218
|
shape: "circle",
|
|
219
219
|
opacity: v.value.includes(o) ? 0.5 : 1,
|
|
220
|
-
segregate: () =>
|
|
220
|
+
segregate: () => $e(o),
|
|
221
221
|
isSegregated: v.value.includes(o)
|
|
222
222
|
}));
|
|
223
|
-
}),
|
|
223
|
+
}), ot = p(() => ({
|
|
224
224
|
cy: "radar-div-legend",
|
|
225
225
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
226
226
|
color: e.value.style.chart.legend.color,
|
|
227
227
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
228
228
|
paddingBottom: 12,
|
|
229
229
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
230
|
-
})),
|
|
230
|
+
})), W = p(() => {
|
|
231
231
|
const t = [
|
|
232
232
|
{ name: e.value.translations.datapoint, color: "" },
|
|
233
233
|
{ name: e.value.translations.target, color: "" },
|
|
234
|
-
...
|
|
235
|
-
], a =
|
|
234
|
+
...I.value
|
|
235
|
+
], a = h.dataset.series.map((l) => [
|
|
236
236
|
l.name,
|
|
237
|
-
|
|
237
|
+
Le(
|
|
238
238
|
l.formatter,
|
|
239
239
|
l.target,
|
|
240
|
-
|
|
240
|
+
G({
|
|
241
241
|
p: l.prefix,
|
|
242
242
|
v: l.target,
|
|
243
243
|
s: l.suffix,
|
|
244
244
|
r: e.value.table.td.roundingValue
|
|
245
245
|
})
|
|
246
246
|
),
|
|
247
|
-
...l.values.map((s,
|
|
247
|
+
...l.values.map((s, b) => `${Le(
|
|
248
248
|
l.formatter,
|
|
249
249
|
s,
|
|
250
|
-
|
|
251
|
-
)} (${isNaN(s / l.target) ? "" :
|
|
250
|
+
G({ p: y.value[b].prefix, v: s, s: y.value[b].suffix, r: e.value.table.td.roundingValue })
|
|
251
|
+
)} (${isNaN(s / l.target) ? "" : G({
|
|
252
252
|
v: s / l.target * 100,
|
|
253
253
|
s: "%",
|
|
254
254
|
r: e.value.table.td.roundingPercentage
|
|
@@ -267,111 +267,111 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
267
267
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
268
268
|
};
|
|
269
269
|
return { head: t, body: a, config: o, colNames: t };
|
|
270
|
-
}),
|
|
271
|
-
function
|
|
272
|
-
|
|
270
|
+
}), X = c(null), Z = c([]), ee = c(null);
|
|
271
|
+
function lt(t, a) {
|
|
272
|
+
Z.value = [], X.value = a, H.value = !0;
|
|
273
273
|
let o = "";
|
|
274
|
-
|
|
274
|
+
ee.value = {
|
|
275
275
|
datapoint: t,
|
|
276
276
|
seriesIndex: a,
|
|
277
277
|
series: {
|
|
278
|
-
categories:
|
|
278
|
+
categories: y.value,
|
|
279
279
|
datapoints: k.value,
|
|
280
280
|
radar: w.value
|
|
281
281
|
},
|
|
282
282
|
config: e.value
|
|
283
283
|
};
|
|
284
284
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
285
|
-
if (
|
|
285
|
+
if (wt(l) && $t(() => l({
|
|
286
286
|
seriesIndex: a,
|
|
287
287
|
datapoint: t,
|
|
288
|
-
series: { categories:
|
|
288
|
+
series: { categories: y.value, datapoints: k.value, radar: w.value },
|
|
289
289
|
config: e.value
|
|
290
290
|
})))
|
|
291
|
-
|
|
291
|
+
Y.value = l({
|
|
292
292
|
seriesIndex: a,
|
|
293
293
|
datapoint: t,
|
|
294
|
-
series: { categories:
|
|
294
|
+
series: { categories: y.value, datapoints: k.value, radar: w.value },
|
|
295
295
|
config: e.value
|
|
296
296
|
});
|
|
297
297
|
else {
|
|
298
298
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
299
299
|
for (let s = 0; s < t.values.length; s += 1)
|
|
300
|
-
v.value.includes(s) ||
|
|
301
|
-
name:
|
|
300
|
+
v.value.includes(s) || Z.value.push({
|
|
301
|
+
name: y.value[s].name,
|
|
302
302
|
value: t.values[s] / t.target * 100,
|
|
303
|
-
color:
|
|
303
|
+
color: y.value[s].color,
|
|
304
304
|
suffix: "%)",
|
|
305
|
-
prefix: `${
|
|
305
|
+
prefix: `${G({ p: y.value[s].prefix ?? "", v: t.values[s], s: y.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
306
306
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
307
307
|
formatter: t.formatter
|
|
308
308
|
});
|
|
309
|
-
|
|
309
|
+
Y.value = o;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
isNaN(
|
|
317
|
-
])]),
|
|
318
|
-
|
|
312
|
+
function xe(t = null) {
|
|
313
|
+
ct(() => {
|
|
314
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...I.value.flatMap((T) => [[T.name], ["%"]])], l = h.dataset.series.map((T, Zt) => [T.name, T.target, ...T.values.flatMap((ae) => [
|
|
315
|
+
ae,
|
|
316
|
+
isNaN(ae / T.target) ? "" : ae / T.target * 100
|
|
317
|
+
])]), s = a.concat([o]).concat(l), b = kt(s);
|
|
318
|
+
t ? t(b) : Ct({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
function
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
function xe() {
|
|
326
|
-
b.value.showTable = !b.value.showTable;
|
|
321
|
+
const R = c(!1);
|
|
322
|
+
function rt(t) {
|
|
323
|
+
R.value = t, re.value += 1;
|
|
327
324
|
}
|
|
328
325
|
function Ae() {
|
|
329
|
-
|
|
326
|
+
m.value.showTable = !m.value.showTable;
|
|
330
327
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
X.value = !X.value;
|
|
328
|
+
function Oe() {
|
|
329
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
334
330
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
331
|
+
const j = c(!1);
|
|
332
|
+
function te() {
|
|
333
|
+
j.value = !j.value;
|
|
334
|
+
}
|
|
335
|
+
return Ue({
|
|
336
|
+
getData: et,
|
|
337
|
+
generatePdf: ke,
|
|
338
|
+
generateCsv: xe,
|
|
339
|
+
generateImage: Ce,
|
|
340
|
+
toggleTable: Ae,
|
|
341
|
+
toggleTooltip: Oe,
|
|
342
|
+
toggleAnnotator: te
|
|
343
343
|
}), (t, a) => (r(), u("div", {
|
|
344
|
-
class:
|
|
344
|
+
class: B(`vue-ui-radar ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
345
345
|
ref_key: "radarChart",
|
|
346
|
-
ref:
|
|
346
|
+
ref: U,
|
|
347
347
|
id: `vue-ui-radar_${_.value}`,
|
|
348
|
-
style:
|
|
349
|
-
onMouseenter: a[3] || (a[3] = () => n(
|
|
350
|
-
onMouseleave: a[4] || (a[4] = () => n(
|
|
348
|
+
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
|
+
onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
|
|
350
|
+
onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
|
|
351
351
|
}, [
|
|
352
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
352
|
+
e.value.userOptions.buttons.annotator ? (r(), P(n(De), {
|
|
353
353
|
key: 0,
|
|
354
|
-
svgRef: n(
|
|
354
|
+
svgRef: n(ge),
|
|
355
355
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
356
356
|
color: e.value.style.chart.color,
|
|
357
|
-
active:
|
|
358
|
-
onClose:
|
|
357
|
+
active: j.value,
|
|
358
|
+
onClose: te
|
|
359
359
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
360
|
-
|
|
360
|
+
Je.value ? (r(), u("div", {
|
|
361
361
|
key: 1,
|
|
362
362
|
ref_key: "noTitle",
|
|
363
|
-
ref:
|
|
363
|
+
ref: ie,
|
|
364
364
|
class: "vue-data-ui-no-title-space",
|
|
365
365
|
style: "height:36px; width: 100%;background:transparent"
|
|
366
366
|
}, null, 512)) : d("", !0),
|
|
367
367
|
e.value.style.chart.title.text ? (r(), u("div", {
|
|
368
368
|
key: 2,
|
|
369
369
|
ref_key: "chartTitle",
|
|
370
|
-
ref:
|
|
370
|
+
ref: se,
|
|
371
371
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
372
372
|
}, [
|
|
373
|
-
(r(),
|
|
374
|
-
key: `title_${
|
|
373
|
+
(r(), P(Ft, {
|
|
374
|
+
key: `title_${ce.value}`,
|
|
375
375
|
config: {
|
|
376
376
|
title: {
|
|
377
377
|
cy: "radar-div-title",
|
|
@@ -384,14 +384,14 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
384
384
|
}
|
|
385
385
|
}, null, 8, ["config"]))
|
|
386
386
|
], 512)) : d("", !0),
|
|
387
|
-
e.value.userOptions.show &&
|
|
387
|
+
e.value.userOptions.show && V.value && (n(he) || n(Q)) ? (r(), P(n(je), {
|
|
388
388
|
ref_key: "details",
|
|
389
|
-
ref:
|
|
390
|
-
key: `user_options_${
|
|
389
|
+
ref: Qe,
|
|
390
|
+
key: `user_options_${re.value}`,
|
|
391
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
392
|
color: e.value.style.chart.color,
|
|
393
|
-
isImaging: n(
|
|
394
|
-
isPrinting: n(
|
|
393
|
+
isImaging: n(be),
|
|
394
|
+
isPrinting: n(me),
|
|
395
395
|
uid: _.value,
|
|
396
396
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
397
397
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -399,91 +399,92 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
399
399
|
hasXls: e.value.userOptions.buttons.csv,
|
|
400
400
|
hasTable: e.value.userOptions.buttons.table,
|
|
401
401
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
402
|
-
isFullscreen:
|
|
403
|
-
isTooltip:
|
|
402
|
+
isFullscreen: R.value,
|
|
403
|
+
isTooltip: m.value.showTooltip,
|
|
404
404
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
405
|
-
chartElement:
|
|
405
|
+
chartElement: U.value,
|
|
406
406
|
position: e.value.userOptions.position,
|
|
407
407
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
408
|
-
isAnnotation:
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
408
|
+
isAnnotation: j.value,
|
|
409
|
+
callbacks: e.value.userOptions.callbacks,
|
|
410
|
+
onToggleFullscreen: rt,
|
|
411
|
+
onGeneratePdf: n(ke),
|
|
412
|
+
onGenerateCsv: xe,
|
|
413
|
+
onGenerateImage: n(Ce),
|
|
414
|
+
onToggleTable: Ae,
|
|
415
|
+
onToggleTooltip: Oe,
|
|
416
|
+
onToggleAnnotator: te,
|
|
417
|
+
style: q({
|
|
418
|
+
visibility: n(he) ? n(Q) ? "visible" : "hidden" : "visible"
|
|
418
419
|
})
|
|
419
|
-
},
|
|
420
|
+
}, it({ _: 2 }, [
|
|
420
421
|
t.$slots.menuIcon ? {
|
|
421
422
|
name: "menuIcon",
|
|
422
|
-
fn:
|
|
423
|
-
|
|
423
|
+
fn: f(({ isOpen: o, color: l }) => [
|
|
424
|
+
g(t.$slots, "menuIcon", L(z({ isOpen: o, color: l })), void 0, !0)
|
|
424
425
|
]),
|
|
425
426
|
key: "0"
|
|
426
427
|
} : void 0,
|
|
427
428
|
t.$slots.optionTooltip ? {
|
|
428
429
|
name: "optionTooltip",
|
|
429
|
-
fn:
|
|
430
|
-
|
|
430
|
+
fn: f(() => [
|
|
431
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
431
432
|
]),
|
|
432
433
|
key: "1"
|
|
433
434
|
} : void 0,
|
|
434
435
|
t.$slots.optionPdf ? {
|
|
435
436
|
name: "optionPdf",
|
|
436
|
-
fn:
|
|
437
|
-
|
|
437
|
+
fn: f(() => [
|
|
438
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
438
439
|
]),
|
|
439
440
|
key: "2"
|
|
440
441
|
} : void 0,
|
|
441
442
|
t.$slots.optionCsv ? {
|
|
442
443
|
name: "optionCsv",
|
|
443
|
-
fn:
|
|
444
|
-
|
|
444
|
+
fn: f(() => [
|
|
445
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
445
446
|
]),
|
|
446
447
|
key: "3"
|
|
447
448
|
} : void 0,
|
|
448
449
|
t.$slots.optionImg ? {
|
|
449
450
|
name: "optionImg",
|
|
450
|
-
fn:
|
|
451
|
-
|
|
451
|
+
fn: f(() => [
|
|
452
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
452
453
|
]),
|
|
453
454
|
key: "4"
|
|
454
455
|
} : void 0,
|
|
455
456
|
t.$slots.optionTable ? {
|
|
456
457
|
name: "optionTable",
|
|
457
|
-
fn:
|
|
458
|
-
|
|
458
|
+
fn: f(() => [
|
|
459
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
459
460
|
]),
|
|
460
461
|
key: "5"
|
|
461
462
|
} : void 0,
|
|
462
463
|
t.$slots.optionFullscreen ? {
|
|
463
464
|
name: "optionFullscreen",
|
|
464
|
-
fn:
|
|
465
|
-
|
|
465
|
+
fn: f(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
466
|
+
g(t.$slots, "optionFullscreen", L(z({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
466
467
|
]),
|
|
467
468
|
key: "6"
|
|
468
469
|
} : void 0,
|
|
469
470
|
t.$slots.optionAnnotator ? {
|
|
470
471
|
name: "optionAnnotator",
|
|
471
|
-
fn:
|
|
472
|
-
|
|
472
|
+
fn: f(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
473
|
+
g(t.$slots, "optionAnnotator", L(z({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
473
474
|
]),
|
|
474
475
|
key: "7"
|
|
475
476
|
} : void 0
|
|
476
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
477
|
-
|
|
477
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
478
|
+
V.value ? (r(), u("svg", {
|
|
478
479
|
key: 4,
|
|
479
480
|
ref_key: "svgRef",
|
|
480
|
-
ref:
|
|
481
|
-
xmlns: n(
|
|
482
|
-
class:
|
|
481
|
+
ref: ge,
|
|
482
|
+
xmlns: n(mt),
|
|
483
|
+
class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
483
484
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
484
|
-
style:
|
|
485
|
+
style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
485
486
|
}, [
|
|
486
|
-
|
|
487
|
+
oe(n(qe)),
|
|
487
488
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
488
489
|
key: 0,
|
|
489
490
|
x: 0,
|
|
@@ -494,10 +495,10 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
494
495
|
pointerEvents: "none"
|
|
495
496
|
}
|
|
496
497
|
}, [
|
|
497
|
-
|
|
498
|
-
], 8,
|
|
499
|
-
|
|
500
|
-
(r(!0), u(
|
|
498
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
499
|
+
], 8, Rt)) : d("", !0),
|
|
500
|
+
x("defs", null, [
|
|
501
|
+
(r(!0), u(A, null, O(y.value, (o, l) => (r(), u("radialGradient", {
|
|
501
502
|
cx: "50%",
|
|
502
503
|
cy: "50%",
|
|
503
504
|
r: "50%",
|
|
@@ -505,99 +506,99 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
505
506
|
fy: "50%",
|
|
506
507
|
id: `radar_gradient_${_.value}_${l}`
|
|
507
508
|
}, [
|
|
508
|
-
|
|
509
|
+
x("stop", {
|
|
509
510
|
offset: "0%",
|
|
510
|
-
"stop-color": n(
|
|
511
|
-
}, null, 8,
|
|
512
|
-
|
|
511
|
+
"stop-color": n(le)(n(bt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
512
|
+
}, null, 8, zt),
|
|
513
|
+
x("stop", {
|
|
513
514
|
offset: "100%",
|
|
514
|
-
"stop-color": n(
|
|
515
|
-
}, null, 8,
|
|
516
|
-
], 8,
|
|
515
|
+
"stop-color": n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
516
|
+
}, null, 8, Mt)
|
|
517
|
+
], 8, Lt))), 256))
|
|
517
518
|
]),
|
|
518
|
-
e.value.style.chart.layout.grid.show ? (r(), u("g",
|
|
519
|
-
(r(!0), u(
|
|
519
|
+
e.value.style.chart.layout.grid.show ? (r(), u("g", Vt, [
|
|
520
|
+
(r(!0), u(A, null, O(w.value, (o) => (r(), u("line", {
|
|
520
521
|
x1: i.value.width / 2,
|
|
521
522
|
y1: i.value.height / 2,
|
|
522
523
|
x2: o.x,
|
|
523
524
|
y2: o.y,
|
|
524
525
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
525
526
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
526
|
-
}, null, 8,
|
|
527
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g",
|
|
528
|
-
(r(!0), u(
|
|
529
|
-
d: n(
|
|
527
|
+
}, null, 8, Ut))), 256)),
|
|
528
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Et, [
|
|
529
|
+
(r(!0), u(A, null, O(tt.value, (o) => (r(), u("path", {
|
|
530
|
+
d: n(Re)({
|
|
530
531
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
531
532
|
radius: o,
|
|
532
|
-
sides:
|
|
533
|
+
sides: Te.value,
|
|
533
534
|
rotation: 0
|
|
534
535
|
}).path,
|
|
535
536
|
fill: "none",
|
|
536
537
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
537
538
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
538
|
-
}, null, 8,
|
|
539
|
+
}, null, 8, Bt))), 256))
|
|
539
540
|
])) : d("", !0)
|
|
540
541
|
])) : d("", !0),
|
|
541
|
-
|
|
542
|
-
d:
|
|
542
|
+
x("path", {
|
|
543
|
+
d: Pe.value.path,
|
|
543
544
|
fill: "none",
|
|
544
545
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
545
546
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
546
547
|
"stroke-linejoin": "round",
|
|
547
548
|
"stroke-linecap": "round"
|
|
548
|
-
}, null, 8,
|
|
549
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g",
|
|
550
|
-
(r(!0), u(
|
|
551
|
-
x:
|
|
552
|
-
y:
|
|
553
|
-
"text-anchor":
|
|
549
|
+
}, null, 8, Dt),
|
|
550
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Gt, [
|
|
551
|
+
(r(!0), u(A, null, O(w.value, (o, l) => (r(), u("text", {
|
|
552
|
+
x: K(o).x,
|
|
553
|
+
y: K(o).y,
|
|
554
|
+
"text-anchor": K(o).anchor,
|
|
554
555
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
555
556
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
556
|
-
onMouseenter: (s) =>
|
|
557
|
+
onMouseenter: (s) => lt(o, l),
|
|
557
558
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
558
|
-
|
|
559
|
+
H.value = !1, X.value = null;
|
|
559
560
|
})
|
|
560
|
-
},
|
|
561
|
+
}, D(o.name), 41, Wt))), 256))
|
|
561
562
|
])) : d("", !0),
|
|
562
|
-
(r(!0), u(
|
|
563
|
-
|
|
563
|
+
(r(!0), u(A, null, O(y.value, (o, l) => (r(), u("g", null, [
|
|
564
|
+
x("g", null, [
|
|
564
565
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
565
566
|
key: 0,
|
|
566
|
-
points: n(
|
|
567
|
+
points: n(ze)(w.value.map((s) => s.plots[l]), !1, !0),
|
|
567
568
|
stroke: e.value.style.chart.backgroundColor,
|
|
568
569
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
569
570
|
fill: "none",
|
|
570
|
-
class:
|
|
571
|
-
}, null, 10,
|
|
571
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": S.value && E.value === l && e.value.useCssAnimation })
|
|
572
|
+
}, null, 10, Xt)) : d("", !0),
|
|
572
573
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
573
574
|
key: 1,
|
|
574
|
-
points: n(
|
|
575
|
+
points: n(ze)(w.value.map((s) => s.plots[l]), !1, !0),
|
|
575
576
|
stroke: o.color,
|
|
576
577
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
577
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : n(
|
|
578
|
-
class:
|
|
579
|
-
}, null, 10,
|
|
578
|
+
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),
|
|
579
|
+
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": S.value && E.value === l && e.value.useCssAnimation })
|
|
580
|
+
}, null, 10, jt)) : d("", !0)
|
|
580
581
|
])
|
|
581
582
|
]))), 256)),
|
|
582
|
-
e.value.style.chart.layout.plots.show ? (r(), u("g",
|
|
583
|
-
(r(!0), u(
|
|
584
|
-
(r(!0), u(
|
|
583
|
+
e.value.style.chart.layout.plots.show ? (r(), u("g", qt, [
|
|
584
|
+
(r(!0), u(A, null, O(w.value, (o, l) => (r(), u("g", null, [
|
|
585
|
+
(r(!0), u(A, null, O(o.plots, (s, b) => (r(), u("circle", {
|
|
585
586
|
cx: s.x,
|
|
586
587
|
cy: s.y,
|
|
587
|
-
fill: v.value.includes(
|
|
588
|
-
r:
|
|
589
|
-
stroke: v.value.includes(
|
|
588
|
+
fill: v.value.includes(b) ? "transparent" : y.value[b].color,
|
|
589
|
+
r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
590
|
+
stroke: v.value.includes(b) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
590
591
|
"stroke-width": 0.5,
|
|
591
|
-
class:
|
|
592
|
-
}, null, 10,
|
|
592
|
+
class: B({ "animated-out": v.value.includes(b) && e.value.useCssAnimation, "animated-in": S.value && E.value === b && e.value.useCssAnimation })
|
|
593
|
+
}, null, 10, Ht))), 256))
|
|
593
594
|
]))), 256))
|
|
594
595
|
])) : d("", !0),
|
|
595
|
-
|
|
596
|
-
], 14,
|
|
597
|
-
t.$slots.watermark ? (r(), u("div",
|
|
598
|
-
|
|
596
|
+
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
597
|
+
], 14, It)) : d("", !0),
|
|
598
|
+
t.$slots.watermark ? (r(), u("div", Yt, [
|
|
599
|
+
g(t.$slots, "watermark", L(z({ isPrinting: n(me) || n(be) })), void 0, !0)
|
|
599
600
|
])) : d("", !0),
|
|
600
|
-
|
|
601
|
+
V.value ? d("", !0) : (r(), P(n(We), {
|
|
601
602
|
key: 6,
|
|
602
603
|
config: {
|
|
603
604
|
type: "radar",
|
|
@@ -614,42 +615,42 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
617
|
}, null, 8, ["config"])),
|
|
617
|
-
|
|
618
|
+
x("div", {
|
|
618
619
|
ref_key: "chartLegend",
|
|
619
|
-
ref:
|
|
620
|
+
ref: ne
|
|
620
621
|
}, [
|
|
621
|
-
e.value.style.chart.legend.show ? (r(),
|
|
622
|
-
key: `legend_${
|
|
623
|
-
legendSet:
|
|
624
|
-
config:
|
|
625
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
622
|
+
e.value.style.chart.legend.show ? (r(), P(Ot, {
|
|
623
|
+
key: `legend_${ve.value}`,
|
|
624
|
+
legendSet: I.value,
|
|
625
|
+
config: ot.value,
|
|
626
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => $e(o))
|
|
626
627
|
}, {
|
|
627
|
-
item:
|
|
628
|
-
|
|
628
|
+
item: f(({ legend: o, index: l }) => [
|
|
629
|
+
x("div", {
|
|
629
630
|
onClick: (s) => o.segregate(),
|
|
630
|
-
style:
|
|
631
|
-
},
|
|
631
|
+
style: q(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
632
|
+
}, D(o.name) + ": " + D(n(G)({
|
|
632
633
|
v: o.totalProportion * 100,
|
|
633
634
|
s: "%",
|
|
634
635
|
r: e.value.style.chart.legend.roundingPercentage
|
|
635
|
-
})), 13,
|
|
636
|
+
})), 13, Qt)
|
|
636
637
|
]),
|
|
637
638
|
_: 1
|
|
638
|
-
}, 8, ["legendSet", "config"])) :
|
|
639
|
+
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
639
640
|
key: 1,
|
|
640
|
-
legend:
|
|
641
|
+
legend: I.value
|
|
641
642
|
}, void 0, !0)
|
|
642
643
|
], 512),
|
|
643
644
|
t.$slots.source ? (r(), u("div", {
|
|
644
645
|
key: 7,
|
|
645
646
|
ref_key: "source",
|
|
646
|
-
ref:
|
|
647
|
+
ref: ue,
|
|
647
648
|
dir: "auto"
|
|
648
649
|
}, [
|
|
649
|
-
|
|
650
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
650
651
|
], 512)) : d("", !0),
|
|
651
|
-
|
|
652
|
-
show:
|
|
652
|
+
oe(n(Xe), {
|
|
653
|
+
show: m.value.showTooltip && H.value,
|
|
653
654
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
654
655
|
color: e.value.style.chart.tooltip.color,
|
|
655
656
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -659,31 +660,31 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
659
660
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
660
661
|
position: e.value.style.chart.tooltip.position,
|
|
661
662
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
662
|
-
parent:
|
|
663
|
-
content:
|
|
664
|
-
isFullscreen:
|
|
663
|
+
parent: U.value,
|
|
664
|
+
content: Y.value,
|
|
665
|
+
isFullscreen: R.value,
|
|
665
666
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
666
667
|
}, {
|
|
667
|
-
"tooltip-before":
|
|
668
|
-
|
|
668
|
+
"tooltip-before": f(() => [
|
|
669
|
+
g(t.$slots, "tooltip-before", L(z({ ...ee.value })), void 0, !0)
|
|
669
670
|
]),
|
|
670
|
-
"tooltip-after":
|
|
671
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div",
|
|
672
|
-
|
|
673
|
-
dataset:
|
|
674
|
-
config:
|
|
671
|
+
"tooltip-after": f(() => [
|
|
672
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Jt, [
|
|
673
|
+
oe(n(He), {
|
|
674
|
+
dataset: Z.value,
|
|
675
|
+
config: Ke.value,
|
|
675
676
|
backgroundOpacity: 0
|
|
676
677
|
}, null, 8, ["dataset", "config"])
|
|
677
678
|
])),
|
|
678
|
-
|
|
679
|
+
g(t.$slots, "tooltip-after", L(z({ ...ee.value })), void 0, !0)
|
|
679
680
|
]),
|
|
680
681
|
_: 3
|
|
681
682
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
682
|
-
|
|
683
|
+
V.value ? (r(), P(n(Ge), {
|
|
683
684
|
key: 8,
|
|
684
685
|
hideDetails: "",
|
|
685
686
|
config: {
|
|
686
|
-
open:
|
|
687
|
+
open: m.value.showTable,
|
|
687
688
|
maxHeight: 1e4,
|
|
688
689
|
body: {
|
|
689
690
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -695,30 +696,30 @@ const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["i
|
|
|
695
696
|
}
|
|
696
697
|
}
|
|
697
698
|
}, {
|
|
698
|
-
content:
|
|
699
|
-
(r(),
|
|
700
|
-
key: `table_${
|
|
701
|
-
colNames:
|
|
702
|
-
head:
|
|
703
|
-
body:
|
|
704
|
-
config:
|
|
699
|
+
content: f(() => [
|
|
700
|
+
(r(), P(n(Be), {
|
|
701
|
+
key: `table_${de.value}`,
|
|
702
|
+
colNames: W.value.colNames,
|
|
703
|
+
head: W.value.head,
|
|
704
|
+
body: W.value.body,
|
|
705
|
+
config: W.value.config,
|
|
705
706
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
706
|
-
onClose: a[2] || (a[2] = (o) =>
|
|
707
|
+
onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
|
|
707
708
|
}, {
|
|
708
|
-
th:
|
|
709
|
-
|
|
709
|
+
th: f(({ th: o }) => [
|
|
710
|
+
Ne(D(o.name), 1)
|
|
710
711
|
]),
|
|
711
|
-
td:
|
|
712
|
-
|
|
712
|
+
td: f(({ td: o }) => [
|
|
713
|
+
Ne(D(o), 1)
|
|
713
714
|
]),
|
|
714
715
|
_: 1
|
|
715
716
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
716
717
|
]),
|
|
717
718
|
_: 1
|
|
718
719
|
}, 8, ["config"])) : d("", !0)
|
|
719
|
-
], 46,
|
|
720
|
+
], 46, St));
|
|
720
721
|
}
|
|
721
|
-
},
|
|
722
|
+
}, ca = /* @__PURE__ */ Nt(Kt, [["__scopeId", "data-v-0723e970"]]);
|
|
722
723
|
export {
|
|
723
|
-
|
|
724
|
+
ca as default
|
|
724
725
|
};
|