vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
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 +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -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
|
|
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-BzfnuLnw.js";
|
|
3
|
+
import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ve } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
8
|
+
import Ft from "./Legend-CYbP3Kfg.js";
|
|
9
|
+
import St from "./Title-pVYRzQXY.js";
|
|
10
|
+
import Nt from "./img-ku4zevVD.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-CgL0Rz0x.js")), Ge = _(() => import("./PenAndPaper-Cx1-5zdD.js")), We = _(() => import("./vue-ui-accordion-DgZK-qDz.js")), Xe = _(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), je = _(() => import("./Tooltip-NwATo4ZJ.js")), qe = _(() => import("./UserOptions-DAsRxxrf.js")), He = _(() => import("./PackageVersion-CAkNkiIG.js")), Ye = _(() => import("./vue-ui-sparkbar-CgqoyBOm.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
|
-
|
|
322
|
+
const L = c(!1);
|
|
323
|
+
function Oe(t) {
|
|
324
|
+
L.value = t, re.value += 1;
|
|
324
325
|
}
|
|
325
326
|
function Ae() {
|
|
326
|
-
|
|
327
|
+
b.value.showTable = !b.value.showTable;
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
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
354
|
toggleTable: Ae,
|
|
341
|
-
toggleTooltip:
|
|
342
|
-
toggleAnnotator: te
|
|
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,44 +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,
|
|
426
|
+
onToggleFullscreen: Oe,
|
|
411
427
|
onGeneratePdf: n(ke),
|
|
412
428
|
onGenerateCsv: xe,
|
|
413
429
|
onGenerateImage: n(Ce),
|
|
414
430
|
onToggleTable: Ae,
|
|
415
|
-
onToggleTooltip:
|
|
431
|
+
onToggleTooltip: Fe,
|
|
416
432
|
onToggleAnnotator: te,
|
|
417
433
|
style: q({
|
|
418
434
|
visibility: n(he) ? n(J) ? "visible" : "hidden" : "visible"
|
|
419
435
|
})
|
|
420
|
-
},
|
|
436
|
+
}, ct({ _: 2 }, [
|
|
421
437
|
t.$slots.menuIcon ? {
|
|
422
438
|
name: "menuIcon",
|
|
423
439
|
fn: f(({ isOpen: o, color: l }) => [
|
|
424
|
-
g(t.$slots, "menuIcon",
|
|
440
|
+
g(t.$slots, "menuIcon", z(M({ isOpen: o, color: l })), void 0, !0)
|
|
425
441
|
]),
|
|
426
442
|
key: "0"
|
|
427
443
|
} : void 0,
|
|
@@ -463,28 +479,28 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
463
479
|
t.$slots.optionFullscreen ? {
|
|
464
480
|
name: "optionFullscreen",
|
|
465
481
|
fn: f(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
466
|
-
g(t.$slots, "optionFullscreen",
|
|
482
|
+
g(t.$slots, "optionFullscreen", z(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
467
483
|
]),
|
|
468
484
|
key: "6"
|
|
469
485
|
} : void 0,
|
|
470
486
|
t.$slots.optionAnnotator ? {
|
|
471
487
|
name: "optionAnnotator",
|
|
472
488
|
fn: f(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
473
|
-
g(t.$slots, "optionAnnotator",
|
|
489
|
+
g(t.$slots, "optionAnnotator", z(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
474
490
|
]),
|
|
475
491
|
key: "7"
|
|
476
492
|
} : void 0
|
|
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
|
-
|
|
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),
|
|
494
|
+
U.value ? (r(), u("svg", {
|
|
479
495
|
key: 4,
|
|
480
496
|
ref_key: "svgRef",
|
|
481
497
|
ref: ge,
|
|
482
|
-
xmlns: n(
|
|
483
|
-
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 }),
|
|
484
500
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
485
501
|
style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
486
502
|
}, [
|
|
487
|
-
oe(n(
|
|
503
|
+
oe(n(He)),
|
|
488
504
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
489
505
|
key: 0,
|
|
490
506
|
x: 0,
|
|
@@ -496,38 +512,38 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
496
512
|
}
|
|
497
513
|
}, [
|
|
498
514
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
499
|
-
], 8,
|
|
500
|
-
|
|
501
|
-
(r(!0), u(A, null,
|
|
515
|
+
], 8, zt)) : d("", !0),
|
|
516
|
+
O("defs", null, [
|
|
517
|
+
(r(!0), u(A, null, F(y.value, (o, l) => (r(), u("radialGradient", {
|
|
502
518
|
cx: "50%",
|
|
503
519
|
cy: "50%",
|
|
504
520
|
r: "50%",
|
|
505
521
|
fx: "50%",
|
|
506
522
|
fy: "50%",
|
|
507
|
-
id: `radar_gradient_${
|
|
523
|
+
id: `radar_gradient_${T.value}_${l}`
|
|
508
524
|
}, [
|
|
509
|
-
|
|
525
|
+
O("stop", {
|
|
510
526
|
offset: "0%",
|
|
511
|
-
"stop-color": n(le)(n(
|
|
512
|
-
}, null, 8,
|
|
513
|
-
|
|
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", {
|
|
514
530
|
offset: "100%",
|
|
515
531
|
"stop-color": n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
516
|
-
}, null, 8,
|
|
517
|
-
], 8,
|
|
532
|
+
}, null, 8, Ut)
|
|
533
|
+
], 8, Mt))), 256))
|
|
518
534
|
]),
|
|
519
|
-
e.value.style.chart.layout.grid.show ? (r(), u("g",
|
|
520
|
-
(r(!0), u(A, null,
|
|
535
|
+
e.value.style.chart.layout.grid.show ? (r(), u("g", Et, [
|
|
536
|
+
(r(!0), u(A, null, F($.value, (o) => (r(), u("line", {
|
|
521
537
|
x1: i.value.width / 2,
|
|
522
538
|
y1: i.value.height / 2,
|
|
523
539
|
x2: o.x,
|
|
524
540
|
y2: o.y,
|
|
525
541
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
526
542
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
527
|
-
}, null, 8,
|
|
528
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g",
|
|
529
|
-
(r(!0), u(A, null,
|
|
530
|
-
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)({
|
|
531
547
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
532
548
|
radius: o,
|
|
533
549
|
sides: Te.value,
|
|
@@ -536,69 +552,69 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
536
552
|
fill: "none",
|
|
537
553
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
538
554
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
539
|
-
}, null, 8,
|
|
555
|
+
}, null, 8, Gt))), 256))
|
|
540
556
|
])) : d("", !0)
|
|
541
557
|
])) : d("", !0),
|
|
542
|
-
|
|
558
|
+
O("path", {
|
|
543
559
|
d: Pe.value.path,
|
|
544
560
|
fill: "none",
|
|
545
561
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
546
562
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
547
563
|
"stroke-linejoin": "round",
|
|
548
564
|
"stroke-linecap": "round"
|
|
549
|
-
}, null, 8,
|
|
550
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g",
|
|
551
|
-
(r(!0), u(A, null,
|
|
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", {
|
|
552
568
|
x: Q(o).x,
|
|
553
569
|
y: Q(o).y,
|
|
554
570
|
"text-anchor": Q(o).anchor,
|
|
555
571
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
556
572
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
557
|
-
onMouseenter: (s) =>
|
|
573
|
+
onMouseenter: (s) => rt(o, l),
|
|
558
574
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
559
575
|
H.value = !1, X.value = null;
|
|
560
576
|
})
|
|
561
|
-
}, D(o.name), 41,
|
|
577
|
+
}, D(o.name), 41, jt))), 256))
|
|
562
578
|
])) : d("", !0),
|
|
563
|
-
(r(!0), u(A, null,
|
|
564
|
-
|
|
579
|
+
(r(!0), u(A, null, F(y.value, (o, l) => (r(), u("g", null, [
|
|
580
|
+
O("g", null, [
|
|
565
581
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
566
582
|
key: 0,
|
|
567
|
-
points: n(
|
|
583
|
+
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
568
584
|
stroke: e.value.style.chart.backgroundColor,
|
|
569
585
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
570
586
|
fill: "none",
|
|
571
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
572
|
-
}, 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),
|
|
573
589
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
574
590
|
key: 1,
|
|
575
|
-
points: n(
|
|
591
|
+
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
576
592
|
stroke: o.color,
|
|
577
593
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
578
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
579
|
-
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
580
|
-
}, 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)
|
|
581
597
|
])
|
|
582
598
|
]))), 256)),
|
|
583
|
-
e.value.style.chart.layout.plots.show ? (r(), u("g",
|
|
584
|
-
(r(!0), u(A, null,
|
|
585
|
-
(r(!0), u(A, null,
|
|
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", {
|
|
586
602
|
cx: s.x,
|
|
587
603
|
cy: s.y,
|
|
588
|
-
fill: v.value.includes(
|
|
604
|
+
fill: v.value.includes(m) ? "transparent" : y.value[m].color,
|
|
589
605
|
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(
|
|
606
|
+
stroke: v.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
591
607
|
"stroke-width": 0.5,
|
|
592
|
-
class: B({ "animated-out": v.value.includes(
|
|
593
|
-
}, 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))
|
|
594
610
|
]))), 256))
|
|
595
611
|
])) : d("", !0),
|
|
596
612
|
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
597
|
-
], 14,
|
|
598
|
-
t.$slots.watermark ? (r(), u("div",
|
|
599
|
-
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)
|
|
600
616
|
])) : d("", !0),
|
|
601
|
-
|
|
617
|
+
U.value ? d("", !0) : (r(), x(n(Xe), {
|
|
602
618
|
key: 6,
|
|
603
619
|
config: {
|
|
604
620
|
type: "radar",
|
|
@@ -615,30 +631,30 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
615
631
|
}
|
|
616
632
|
}
|
|
617
633
|
}, null, 8, ["config"])),
|
|
618
|
-
|
|
634
|
+
O("div", {
|
|
619
635
|
ref_key: "chartLegend",
|
|
620
636
|
ref: ne
|
|
621
637
|
}, [
|
|
622
|
-
e.value.style.chart.legend.show ? (r(),
|
|
638
|
+
e.value.style.chart.legend.show ? (r(), x(Ft, {
|
|
623
639
|
key: `legend_${ve.value}`,
|
|
624
|
-
legendSet:
|
|
625
|
-
config:
|
|
640
|
+
legendSet: R.value,
|
|
641
|
+
config: lt.value,
|
|
626
642
|
onClickMarker: a[1] || (a[1] = ({ i: o }) => $e(o))
|
|
627
643
|
}, {
|
|
628
644
|
item: f(({ legend: o, index: l }) => [
|
|
629
|
-
|
|
645
|
+
O("div", {
|
|
630
646
|
onClick: (s) => o.segregate(),
|
|
631
647
|
style: q(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
632
648
|
}, D(o.name) + ": " + D(n(G)({
|
|
633
649
|
v: o.totalProportion * 100,
|
|
634
650
|
s: "%",
|
|
635
651
|
r: e.value.style.chart.legend.roundingPercentage
|
|
636
|
-
})), 13,
|
|
652
|
+
})), 13, Qt)
|
|
637
653
|
]),
|
|
638
654
|
_: 1
|
|
639
655
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
640
656
|
key: 1,
|
|
641
|
-
legend:
|
|
657
|
+
legend: R.value
|
|
642
658
|
}, void 0, !0)
|
|
643
659
|
], 512),
|
|
644
660
|
t.$slots.source ? (r(), u("div", {
|
|
@@ -649,8 +665,8 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
649
665
|
}, [
|
|
650
666
|
g(t.$slots, "source", {}, void 0, !0)
|
|
651
667
|
], 512)) : d("", !0),
|
|
652
|
-
oe(n(
|
|
653
|
-
show:
|
|
668
|
+
oe(n(je), {
|
|
669
|
+
show: b.value.showTooltip && H.value,
|
|
654
670
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
655
671
|
color: e.value.style.chart.tooltip.color,
|
|
656
672
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -660,31 +676,31 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
660
676
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
661
677
|
position: e.value.style.chart.tooltip.position,
|
|
662
678
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
663
|
-
parent:
|
|
679
|
+
parent: C.value,
|
|
664
680
|
content: Y.value,
|
|
665
|
-
isFullscreen:
|
|
681
|
+
isFullscreen: L.value,
|
|
666
682
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
667
683
|
}, {
|
|
668
684
|
"tooltip-before": f(() => [
|
|
669
|
-
g(t.$slots, "tooltip-before",
|
|
685
|
+
g(t.$slots, "tooltip-before", z(M({ ...ee.value })), void 0, !0)
|
|
670
686
|
]),
|
|
671
687
|
"tooltip-after": f(() => [
|
|
672
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div",
|
|
673
|
-
oe(n(
|
|
688
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Zt, [
|
|
689
|
+
oe(n(Ye), {
|
|
674
690
|
dataset: Z.value,
|
|
675
|
-
config:
|
|
691
|
+
config: Ze.value,
|
|
676
692
|
backgroundOpacity: 0
|
|
677
693
|
}, null, 8, ["dataset", "config"])
|
|
678
694
|
])),
|
|
679
|
-
g(t.$slots, "tooltip-after",
|
|
695
|
+
g(t.$slots, "tooltip-after", z(M({ ...ee.value })), void 0, !0)
|
|
680
696
|
]),
|
|
681
697
|
_: 3
|
|
682
698
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
683
|
-
|
|
699
|
+
U.value ? (r(), x(n(We), {
|
|
684
700
|
key: 8,
|
|
685
701
|
hideDetails: "",
|
|
686
702
|
config: {
|
|
687
|
-
open:
|
|
703
|
+
open: b.value.showTable,
|
|
688
704
|
maxHeight: 1e4,
|
|
689
705
|
body: {
|
|
690
706
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -697,29 +713,29 @@ const Nt = ["id"], It = ["xmlns", "viewBox"], Rt = ["width", "height"], Lt = ["i
|
|
|
697
713
|
}
|
|
698
714
|
}, {
|
|
699
715
|
content: f(() => [
|
|
700
|
-
(r(),
|
|
716
|
+
(r(), x(n(De), {
|
|
701
717
|
key: `table_${de.value}`,
|
|
702
718
|
colNames: W.value.colNames,
|
|
703
719
|
head: W.value.head,
|
|
704
720
|
body: W.value.body,
|
|
705
721
|
config: W.value.config,
|
|
706
722
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
707
|
-
onClose: a[2] || (a[2] = (o) =>
|
|
723
|
+
onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
|
|
708
724
|
}, {
|
|
709
725
|
th: f(({ th: o }) => [
|
|
710
|
-
|
|
726
|
+
Ne(D(o.name), 1)
|
|
711
727
|
]),
|
|
712
728
|
td: f(({ td: o }) => [
|
|
713
|
-
|
|
729
|
+
Ne(D(o), 1)
|
|
714
730
|
]),
|
|
715
731
|
_: 1
|
|
716
732
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
717
733
|
]),
|
|
718
734
|
_: 1
|
|
719
735
|
}, 8, ["config"])) : d("", !0)
|
|
720
|
-
], 46,
|
|
736
|
+
], 46, Rt));
|
|
721
737
|
}
|
|
722
|
-
},
|
|
738
|
+
}, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-699cbae7"]]);
|
|
723
739
|
export {
|
|
724
|
-
|
|
740
|
+
pa as default
|
|
725
741
|
};
|