vue-data-ui 3.4.0 → 3.4.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/dist/{PackageVersion-DyDViSOy.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-D7Tgakts.js → vue-data-ui-oDJui39L.js} +53 -53
- package/dist/vue-data-ui.js +53 -53
- package/dist/{vue-ui-3d-bar-H_4pqH3h.js → vue-ui-3d-bar-wycTM073.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BGzYbrts.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +1 -1
- package/dist/{vue-ui-bullet-Cf4Uzhez.js → vue-ui-bullet-CIsX5UJw.js} +1 -1
- package/dist/{vue-ui-candlestick-DfbP87Cr.js → vue-ui-candlestick-BRFx3_KK.js} +1 -1
- package/dist/{vue-ui-carousel-table-0z6eLg_I.js → vue-ui-carousel-table-hJySHJTu.js} +1 -1
- package/dist/{vue-ui-chestnut-BcQFRaXx.js → vue-ui-chestnut-D4GjvQh0.js} +1 -1
- package/dist/{vue-ui-chord-YYE07iRP.js → vue-ui-chord-By2NOs0N.js} +1 -1
- package/dist/{vue-ui-circle-pack-BRSqhjxm.js → vue-ui-circle-pack-OCmAkTNs.js} +1 -1
- package/dist/{vue-ui-dashboard-BpeLteeH.js → vue-ui-dashboard-C7fwU9xb.js} +53 -53
- package/dist/{vue-ui-donut-Yw81BFf2.js → vue-ui-donut-dVVBUQJz.js} +1 -1
- package/dist/{vue-ui-donut-evolution-k3xCwZYv.js → vue-ui-donut-evolution-BoWGaQP0.js} +1 -1
- package/dist/{vue-ui-dumbbell-DMPndU1O.js → vue-ui-dumbbell-YMPZ3CVA.js} +1 -1
- package/dist/{vue-ui-flow-D-W3VQTv.js → vue-ui-flow-BE62rVS3.js} +1 -1
- package/dist/{vue-ui-funnel-q-b-LqXG.js → vue-ui-funnel-kNpDFAWo.js} +1 -1
- package/dist/{vue-ui-galaxy-4pueJOcI.js → vue-ui-galaxy-BBBiXXyk.js} +1 -1
- package/dist/{vue-ui-gauge-APtv_CvA.js → vue-ui-gauge-PQNTTl3Y.js} +1 -1
- package/dist/{vue-ui-gizmo-BH0MvhIV.js → vue-ui-gizmo-D3gQxQz3.js} +1 -1
- package/dist/{vue-ui-heatmap-BBdrkhmg.js → vue-ui-heatmap-CKWQButF.js} +1 -1
- package/dist/{vue-ui-history-plot-DL5ioFH4.js → vue-ui-history-plot-DYFzdR4Z.js} +1 -1
- package/dist/{vue-ui-molecule-DnjRfc4-.js → vue-ui-molecule-Cklyb74B.js} +1 -1
- package/dist/{vue-ui-mood-radar-9aAC_ake.js → vue-ui-mood-radar-Cvq4ZuLe.js} +1 -1
- package/dist/{vue-ui-nested-donuts-BnVXn9Qa.js → vue-ui-nested-donuts-Bm78P1ES.js} +1 -1
- package/dist/{vue-ui-onion-DbanwrFr.js → vue-ui-onion-Bh5jTb31.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CtlpCJ97.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +1 -1
- package/dist/{vue-ui-quadrant-BVffm_0o.js → vue-ui-quadrant-BPhJzots.js} +1 -1
- package/dist/{vue-ui-quick-chart-C4Uc3DRH.js → vue-ui-quick-chart-DbJR9CN3.js} +1 -1
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-relation-circle-4MPxPkAi.js → vue-ui-relation-circle-BJ5RuZ0j.js} +1 -1
- package/dist/{vue-ui-ridgeline-B1T10gWF.js → vue-ui-ridgeline-CKuom5Bu.js} +1 -1
- package/dist/{vue-ui-rings-G0bYxlue.js → vue-ui-rings-B84GAEf4.js} +1 -1
- package/dist/{vue-ui-scatter-DqZwonPL.js → vue-ui-scatter-CBX-g9w3.js} +1 -1
- package/dist/{vue-ui-skeleton-C-IKc-3B.js → vue-ui-skeleton-CZ8xxpEU.js} +1 -1
- package/dist/{vue-ui-spark-trend-8vV7SyrA.js → vue-ui-spark-trend-DOf7-cIf.js} +1 -1
- package/dist/{vue-ui-sparkbar-BsWBXGuQ.js → vue-ui-sparkbar-D-MPA2zf.js} +1 -1
- package/dist/{vue-ui-sparkgauge-B9-iRqNC.js → vue-ui-sparkgauge-B9xRiVSU.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CV4PH2vQ.js → vue-ui-sparkhistogram-BWb0lqQP.js} +1 -1
- package/dist/{vue-ui-sparkline-DScNHLXj.js → vue-ui-sparkline-BF-qr8Ti.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CXPJToNY.js → vue-ui-sparkstackbar-DnCUpk50.js} +1 -1
- package/dist/{vue-ui-stackbar-94piqh7z.js → vue-ui-stackbar-DvJ8Hahn.js} +1 -1
- package/dist/{vue-ui-strip-plot-CA4GL9dj.js → vue-ui-strip-plot-SAh1gIs5.js} +1 -1
- package/dist/{vue-ui-table-BAbQsJGk.js → vue-ui-table-BJdDfMYD.js} +2 -2
- package/dist/{vue-ui-table-sparkline-1KrHuOle.js → vue-ui-table-sparkline-BBFEJ8c6.js} +1 -1
- package/dist/{vue-ui-thermometer-DrCAdNyW.js → vue-ui-thermometer-D8DH6QSN.js} +1 -1
- package/dist/{vue-ui-timer-Cj677c6_.js → vue-ui-timer-CaUdAHBE.js} +1 -1
- package/dist/{vue-ui-tiremarks-O5LGA_1a.js → vue-ui-tiremarks-_sUH1d3J.js} +1 -1
- package/dist/{vue-ui-treemap-BVe_Fft6.js → vue-ui-treemap-DXduzuW4.js} +1 -1
- package/dist/{vue-ui-vertical-bar-D8oCUku1.js → vue-ui-vertical-bar-JdjmgwQj.js} +1 -1
- package/dist/{vue-ui-waffle-C39XL2GH.js → vue-ui-waffle-h8zoi4Rc.js} +1 -1
- package/dist/{vue-ui-wheel-BEpyCUNj.js → vue-ui-wheel-Ck1Mx37j.js} +1 -1
- package/dist/{vue-ui-word-cloud-Dlp9LghX.js → vue-ui-word-cloud-CjWvuukM.js} +1 -1
- package/dist/{vue-ui-world-BS8BCZJ3.js → vue-ui-world-Dw71_Mu2.js} +1 -1
- package/dist/{vue-ui-xy-D3LqMzve.js → vue-ui-xy-tSMgXqqb.js} +1 -1
- package/package.json +2 -2
- package/dist/vue-ui-radar-C-MSV1ZJ.js +0 -891
|
@@ -1,891 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as Pt, watch as Ve, shallowRef as Ge, onMounted as Ot, onBeforeUnmount as Ft, createElementBlock as u, openBlock as n, unref as r, normalizeStyle as J, normalizeClass as W, createBlock as S, createCommentVNode as d, createElementVNode as $, createVNode as K, createSlots as We, withCtx as g, renderSlot as f, normalizeProps as B, guardReactiveProps as E, Fragment as I, renderList as L, toDisplayString as X, Teleport as It, resolveDynamicComponent as Lt, mergeProps as Nt, createTextVNode as ve, nextTick as Xe } from "vue";
|
|
2
|
-
import { c as Rt, t as zt, b as Dt, p as N, o as Bt, f as M, e as Et, g as Ye, h as He, k as je, x as Mt, d as Y, a as qe, X as Ut, s as de, i as Vt, a8 as Qe, P as Gt, Q as Wt, G as Xt, H as Yt } from "./lib-BcBZIm6u.js";
|
|
3
|
-
import { t as Ht, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as qt, a as Je } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
-
import { u as Qt, B as Jt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Kt } from "./usePrinter-C1GiglOH.js";
|
|
7
|
-
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as ea } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import { u as ta } from "./useAutoSizeLabelsInsideViewbox-BHq4FD8x.js";
|
|
10
|
-
import aa from "./img-CFY3JivG.js";
|
|
11
|
-
import oa from "./Title-CFmv95In.js";
|
|
12
|
-
import la from "./Legend-C8u37J42.js";
|
|
13
|
-
import { t as sa } from "./themes-Dw-dDudK.js";
|
|
14
|
-
import { u as na } from "./useSvgExport-DrjCWun4.js";
|
|
15
|
-
import { _ as ra } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const ua = ["id"], ia = ["id"], ca = ["xmlns", "viewBox"], va = ["width", "height"], da = ["id"], pa = ["stop-color"], ha = ["stop-color"], ga = { key: 1 }, fa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = { key: 0 }, ya = ["d", "stroke", "stroke-width"], ba = ["d", "stroke", "stroke-width"], ka = { key: 2 }, Ca = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], wa = ["points", "stroke", "stroke-width"], _a = ["points", "stroke", "stroke-width", "fill"], $a = { key: 3 }, Ta = ["cx", "cy", "fill", "r", "stroke"], Aa = {
|
|
17
|
-
key: 4,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, Sa = ["id"], xa = ["onClick"], Pa = {
|
|
20
|
-
key: 0,
|
|
21
|
-
style: { "max-width": "200px", margin: "0 auto" }
|
|
22
|
-
}, Oa = {
|
|
23
|
-
__name: "vue-ui-radar",
|
|
24
|
-
props: {
|
|
25
|
-
config: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
dataset: {
|
|
32
|
-
type: Object,
|
|
33
|
-
default() {
|
|
34
|
-
return {};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["selectLegend"],
|
|
39
|
-
setup(Ke, { expose: Ze, emit: et }) {
|
|
40
|
-
const tt = _(() => import("./Tooltip-Cs4v8OnI.js")), at = _(() => import("./BaseIcon-B5KaGWWC.js")), ot = _(() => import("./vue-ui-sparkbar-BsWBXGuQ.js")), lt = _(() => import("./vue-ui-accordion-BKkTS12x.js")), st = _(() => import("./DataTable-DOx3zgih.js")), nt = _(() => import("./PenAndPaper-Dj2diYr0.js")), rt = _(() => import("./UserOptions-C0YT60JN.js")), ut = _(() => import("./PackageVersion-DyDViSOy.js")), it = _(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_radar: ct } = qt(), x = Ke, pe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Rt()), Z = c(!1), ee = c(""), he = c(0), C = c(null), ge = c(null), fe = c(null), me = c(null), ye = c(null), be = c(0), ke = c(0), Ce = c(0), we = c(!1), U = c(null), te = c(null), e = c(oe()), { loading: _e, FINAL_DATASET: w } = Qt({
|
|
41
|
-
...Pt(x),
|
|
42
|
-
FINAL_CONFIG: e,
|
|
43
|
-
prepareConfig: oe,
|
|
44
|
-
callback: () => {
|
|
45
|
-
Promise.resolve().then(async () => {
|
|
46
|
-
await Xe(), y.value.showTable = e.value.table.show;
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
skeletonDataset: {
|
|
50
|
-
categories: [{ name: "_", color: "#6A6A6A" }],
|
|
51
|
-
series: [
|
|
52
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
53
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
54
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
55
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
56
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
57
|
-
{ name: "_", values: [0.6], target: 1 }
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
skeletonConfig: zt({
|
|
61
|
-
defaultConfig: e.value,
|
|
62
|
-
userConfig: {
|
|
63
|
-
userOptions: { show: !1 },
|
|
64
|
-
table: { show: !1 },
|
|
65
|
-
useCssAnimation: !1,
|
|
66
|
-
style: {
|
|
67
|
-
chart: {
|
|
68
|
-
backgroundColor: "#99999930",
|
|
69
|
-
layout: {
|
|
70
|
-
grid: {
|
|
71
|
-
stroke: "#6A6A6A90"
|
|
72
|
-
},
|
|
73
|
-
labels: {
|
|
74
|
-
dataLabels: { show: !1 }
|
|
75
|
-
},
|
|
76
|
-
outerPolygon: {
|
|
77
|
-
stroke: "#6A6A6A"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
legend: {
|
|
81
|
-
backgroundColor: "transparent"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
})
|
|
87
|
-
}), { userOptionsVisible: ae, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: H } = ea({ config: e.value.style.chart.title });
|
|
88
|
-
function oe() {
|
|
89
|
-
const t = Je({
|
|
90
|
-
userConfig: x.config,
|
|
91
|
-
defaultConfig: ct
|
|
92
|
-
});
|
|
93
|
-
return t.theme ? {
|
|
94
|
-
...Je({
|
|
95
|
-
userConfig: sa.vue_ui_radar[t.theme] || x.config,
|
|
96
|
-
defaultConfig: t
|
|
97
|
-
}),
|
|
98
|
-
customPalette: Dt[t.theme] || N
|
|
99
|
-
} : t;
|
|
100
|
-
}
|
|
101
|
-
Ve(() => x.config, (t) => {
|
|
102
|
-
e.value = oe(), ae.value = !e.value.userOptions.showOnChartHover, Ae(), be.value += 1, ke.value += 1, Ce.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
103
|
-
}, { deep: !0 });
|
|
104
|
-
const T = Ge(null), R = Ge(null), z = v(() => e.value.debug);
|
|
105
|
-
function Ae() {
|
|
106
|
-
if (Bt(x.dataset) && M({
|
|
107
|
-
componentName: "VueUiRadar",
|
|
108
|
-
type: "dataset",
|
|
109
|
-
debug: z.value
|
|
110
|
-
}), e.value.responsive) {
|
|
111
|
-
const t = Ht(() => {
|
|
112
|
-
const { width: a, height: o } = jt({
|
|
113
|
-
chart: C.value,
|
|
114
|
-
title: e.value.style.chart.title.text ? ge.value : null,
|
|
115
|
-
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
116
|
-
source: me.value,
|
|
117
|
-
noTitle: ye.value
|
|
118
|
-
});
|
|
119
|
-
requestAnimationFrame(() => {
|
|
120
|
-
i.value.width = a, i.value.height = o, ze();
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(t), R.value = C.value.parentNode, T.value.observe(R.value);
|
|
124
|
-
}
|
|
125
|
-
ze();
|
|
126
|
-
}
|
|
127
|
-
Ot(() => {
|
|
128
|
-
we.value = !0, Ae();
|
|
129
|
-
}), Ft(() => {
|
|
130
|
-
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect());
|
|
131
|
-
});
|
|
132
|
-
const { isPrinting: Se, isImaging: xe, generatePdf: Pe, generateImage: Oe } = Kt({
|
|
133
|
-
elementId: `vue-ui-radar_${b.value}`,
|
|
134
|
-
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
135
|
-
options: e.value.userOptions.print
|
|
136
|
-
}), vt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = v(() => Et(e.value.customPalette)), y = c({
|
|
137
|
-
dataLabels: {
|
|
138
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
139
|
-
},
|
|
140
|
-
showTable: e.value.table.show,
|
|
141
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
142
|
-
}), dt = v(() => ({
|
|
143
|
-
style: {
|
|
144
|
-
backgroundColor: "#FFFFFF00",
|
|
145
|
-
animation: {
|
|
146
|
-
show: e.value.style.chart.tooltip.animation.show,
|
|
147
|
-
animationFrames: e.value.style.chart.tooltip.animation.animationFrames
|
|
148
|
-
},
|
|
149
|
-
labels: {
|
|
150
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
151
|
-
name: {
|
|
152
|
-
color: e.value.style.chart.tooltip.color
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
gutter: {
|
|
156
|
-
backgroundColor: "#CCCCCC",
|
|
157
|
-
opacity: 30
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
})), i = c({
|
|
161
|
-
height: 312,
|
|
162
|
-
width: 512
|
|
163
|
-
}), pt = et, p = c([]), V = c(null), D = c(!1);
|
|
164
|
-
function Ie(t) {
|
|
165
|
-
D.value = !0, p.value.includes(t) ? (V.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
|
|
166
|
-
D.value = !1, V.value = null;
|
|
167
|
-
}, 500)) : (p.value.push(t), setTimeout(() => {
|
|
168
|
-
D.value = !1;
|
|
169
|
-
}, 500)), pt("selectLegend", P.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
|
|
170
|
-
name: a.name,
|
|
171
|
-
color: a.color,
|
|
172
|
-
proportion: a.totalProportion
|
|
173
|
-
})));
|
|
174
|
-
}
|
|
175
|
-
function ht() {
|
|
176
|
-
return P.value.map((t) => ({
|
|
177
|
-
name: t.name,
|
|
178
|
-
color: t.color,
|
|
179
|
-
proportion: t.totalProportion
|
|
180
|
-
}));
|
|
181
|
-
}
|
|
182
|
-
const m = v(() => [null, void 0].includes(w.value.categories) ? (M({
|
|
183
|
-
componentName: "VueUiRadar",
|
|
184
|
-
type: "datasetAttribute",
|
|
185
|
-
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
186
|
-
debug: z.value
|
|
187
|
-
}), []) : (w.value.categories.length === 0 ? M({
|
|
188
|
-
componentName: "VueUiRadar",
|
|
189
|
-
type: "datasetAttributeEmpty",
|
|
190
|
-
property: "categories",
|
|
191
|
-
debug: z.value
|
|
192
|
-
}) : w.value.categories.forEach((t, a) => {
|
|
193
|
-
Ye({
|
|
194
|
-
datasetObject: t,
|
|
195
|
-
requiredAttributes: ["name"]
|
|
196
|
-
}).forEach((o) => {
|
|
197
|
-
M({
|
|
198
|
-
componentName: "VueUiRadar",
|
|
199
|
-
type: "datasetAttribute",
|
|
200
|
-
property: `category.${o} at index ${a}`,
|
|
201
|
-
index: a,
|
|
202
|
-
debug: z.value
|
|
203
|
-
});
|
|
204
|
-
});
|
|
205
|
-
}), [null, void 0].includes(w.value.series) ? M({
|
|
206
|
-
componentName: "VueUiRadar",
|
|
207
|
-
type: "datasetAttribute",
|
|
208
|
-
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
209
|
-
debug: z.value
|
|
210
|
-
}) : w.value.series.forEach((t, a) => {
|
|
211
|
-
Ye({
|
|
212
|
-
datasetObject: t,
|
|
213
|
-
requiredAttributes: ["name", "values", "target"]
|
|
214
|
-
}).forEach((o) => {
|
|
215
|
-
M({
|
|
216
|
-
componentName: "VueUiRadar",
|
|
217
|
-
type: "datasetSerieAttribute",
|
|
218
|
-
key: "series",
|
|
219
|
-
property: o,
|
|
220
|
-
index: a,
|
|
221
|
-
debug: z.value
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
}), w.value.categories.map((t, a) => ({
|
|
225
|
-
name: t.name,
|
|
226
|
-
categoryId: `radar_category_${b.value}_${a}`,
|
|
227
|
-
color: He(t.color) || Fe.value[a] || N[a] || N[a % N.length],
|
|
228
|
-
prefix: t.prefix ?? "",
|
|
229
|
-
suffix: t.suffix ?? ""
|
|
230
|
-
})))), k = v(() => w.value.series.map((t, a) => ({
|
|
231
|
-
...t,
|
|
232
|
-
color: He(t.color) || Fe.value[a] || N[a] || N[a % N.length],
|
|
233
|
-
serieId: `radar_serie_${b.value}_${a}`,
|
|
234
|
-
formatter: t.formatter || null
|
|
235
|
-
}))), Le = v(() => Math.max(...k.value.flatMap((t) => t.values))), Ne = v(() => k.value.length), le = v(() => Math.min(i.value.width, i.value.height) / 3), Re = v(() => je({
|
|
236
|
-
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
237
|
-
radius: le.value,
|
|
238
|
-
sides: Ne.value,
|
|
239
|
-
rotation: 0
|
|
240
|
-
})), gt = v(() => {
|
|
241
|
-
const t = [];
|
|
242
|
-
for (let a = 0; a < le.value; a += le.value / e.value.style.chart.layout.grid.graduations)
|
|
243
|
-
t.push(a);
|
|
244
|
-
return t;
|
|
245
|
-
}), A = v(() => Re.value.coordinates.map((t, a) => {
|
|
246
|
-
const o = k.value[a].values.map((l) => mt({
|
|
247
|
-
centerX: i.value.width / 2,
|
|
248
|
-
centerY: i.value.height / 2,
|
|
249
|
-
apexX: t.x,
|
|
250
|
-
apexY: t.y,
|
|
251
|
-
proportion: l / (k.value[a].target || Le.value)
|
|
252
|
-
}));
|
|
253
|
-
return {
|
|
254
|
-
...t,
|
|
255
|
-
...k.value[a],
|
|
256
|
-
plots: o
|
|
257
|
-
};
|
|
258
|
-
}).map((t) => ({
|
|
259
|
-
...t,
|
|
260
|
-
labelX: se(t).x,
|
|
261
|
-
labelY: se(t).y,
|
|
262
|
-
labelAnchor: se(t).anchor
|
|
263
|
-
})));
|
|
264
|
-
function se({ x: t, y: a }) {
|
|
265
|
-
let o = "middle";
|
|
266
|
-
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 + 1 && (a += 20), a < i.value.height / 2 - 1 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
267
|
-
}
|
|
268
|
-
const ft = v({
|
|
269
|
-
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
270
|
-
set: (t) => t
|
|
271
|
-
}), { autoSizeLabels: ze } = ta({
|
|
272
|
-
svgRef: H,
|
|
273
|
-
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
274
|
-
minFontSize: 6,
|
|
275
|
-
sizeRef: ft,
|
|
276
|
-
labelClass: ".vue-ui-radar-apex-label"
|
|
277
|
-
});
|
|
278
|
-
function mt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
279
|
-
return {
|
|
280
|
-
x: t + (o - t) * s,
|
|
281
|
-
y: a + (l - a) * s
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
const P = v(() => {
|
|
285
|
-
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Le.value)));
|
|
286
|
-
return m.value.map((a, o) => {
|
|
287
|
-
const l = Mt(t.map((s) => s[o]).reduce((s, h) => s + h, 0) / k.value.length);
|
|
288
|
-
return {
|
|
289
|
-
...a,
|
|
290
|
-
totalProportion: l,
|
|
291
|
-
shape: "circle",
|
|
292
|
-
opacity: p.value.includes(o) ? 0.5 : 1,
|
|
293
|
-
segregate: () => Ie(o),
|
|
294
|
-
isSegregated: p.value.includes(o),
|
|
295
|
-
display: `${a.name}: ${Y({
|
|
296
|
-
v: (l ?? 0) * 100,
|
|
297
|
-
s: "%",
|
|
298
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
299
|
-
})}`
|
|
300
|
-
};
|
|
301
|
-
});
|
|
302
|
-
}), yt = v(() => ({
|
|
303
|
-
cy: "radar-div-legend",
|
|
304
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
305
|
-
color: e.value.style.chart.legend.color,
|
|
306
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
307
|
-
paddingBottom: 12,
|
|
308
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
309
|
-
})), j = v(() => {
|
|
310
|
-
const t = [
|
|
311
|
-
{ name: e.value.translations.datapoint, color: "" },
|
|
312
|
-
{ name: e.value.translations.target, color: "" },
|
|
313
|
-
...P.value
|
|
314
|
-
], a = w.value.series.map((l) => [
|
|
315
|
-
l.name,
|
|
316
|
-
qe(
|
|
317
|
-
l.formatter,
|
|
318
|
-
l.target,
|
|
319
|
-
Y({
|
|
320
|
-
p: l.prefix,
|
|
321
|
-
v: l.target,
|
|
322
|
-
s: l.suffix,
|
|
323
|
-
r: e.value.table.td.roundingValue
|
|
324
|
-
})
|
|
325
|
-
),
|
|
326
|
-
...l.values.map((s, h) => `${qe(
|
|
327
|
-
l.formatter,
|
|
328
|
-
s,
|
|
329
|
-
Y({ p: m.value[h].prefix, v: s, s: m.value[h].suffix, r: e.value.table.td.roundingValue })
|
|
330
|
-
)} (${isNaN(s / l.target) ? "" : Y({
|
|
331
|
-
v: s / l.target * 100,
|
|
332
|
-
s: "%",
|
|
333
|
-
r: e.value.table.td.roundingPercentage
|
|
334
|
-
})})`)
|
|
335
|
-
]), o = {
|
|
336
|
-
th: {
|
|
337
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
338
|
-
color: e.value.table.th.color,
|
|
339
|
-
outline: e.value.table.th.outline
|
|
340
|
-
},
|
|
341
|
-
td: {
|
|
342
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
343
|
-
color: e.value.table.td.color,
|
|
344
|
-
outline: e.value.table.td.outline
|
|
345
|
-
},
|
|
346
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
347
|
-
};
|
|
348
|
-
return { head: t, body: a, config: o, colNames: t };
|
|
349
|
-
}), q = c(null), ne = c([]), re = c(null);
|
|
350
|
-
function bt(t, a) {
|
|
351
|
-
Z.value = !1, q.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
352
|
-
}
|
|
353
|
-
function kt(t, a) {
|
|
354
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
355
|
-
}
|
|
356
|
-
function Ct(t, a) {
|
|
357
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ne.value = [], q.value = a, Z.value = !0;
|
|
358
|
-
let o = "";
|
|
359
|
-
re.value = {
|
|
360
|
-
datapoint: t,
|
|
361
|
-
seriesIndex: a,
|
|
362
|
-
series: {
|
|
363
|
-
categories: m.value,
|
|
364
|
-
datapoints: k.value,
|
|
365
|
-
radar: A.value
|
|
366
|
-
},
|
|
367
|
-
config: e.value
|
|
368
|
-
};
|
|
369
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
370
|
-
if (Xt(l) && Yt(() => l({
|
|
371
|
-
seriesIndex: a,
|
|
372
|
-
datapoint: t,
|
|
373
|
-
series: { categories: m.value, datapoints: k.value, radar: A.value },
|
|
374
|
-
config: e.value
|
|
375
|
-
})))
|
|
376
|
-
ee.value = l({
|
|
377
|
-
seriesIndex: a,
|
|
378
|
-
datapoint: t,
|
|
379
|
-
series: { categories: m.value, datapoints: k.value, radar: A.value },
|
|
380
|
-
config: e.value
|
|
381
|
-
});
|
|
382
|
-
else {
|
|
383
|
-
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>`;
|
|
384
|
-
for (let s = 0; s < t.values.length; s += 1)
|
|
385
|
-
p.value.includes(s) || ne.value.push({
|
|
386
|
-
name: m.value[s].name,
|
|
387
|
-
value: t.values[s] / t.target * 100,
|
|
388
|
-
color: m.value[s].color,
|
|
389
|
-
suffix: "%)",
|
|
390
|
-
prefix: `${Y({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
391
|
-
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
392
|
-
formatter: t.formatter
|
|
393
|
-
});
|
|
394
|
-
ee.value = o;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
function ue(t = null) {
|
|
398
|
-
Xe(() => {
|
|
399
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...P.value.flatMap((F) => [[F.name], ["%"]])], l = w.value.series.map((F, Fa) => [F.name, F.target, ...F.values.flatMap((ce) => [
|
|
400
|
-
ce,
|
|
401
|
-
isNaN(ce / F.target) ? "" : ce / F.target * 100
|
|
402
|
-
])]), s = a.concat([o]).concat(l), h = Gt(s);
|
|
403
|
-
t ? t(h) : Wt({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
const O = c(!1);
|
|
407
|
-
function De(t) {
|
|
408
|
-
O.value = t, he.value += 1;
|
|
409
|
-
}
|
|
410
|
-
function Be() {
|
|
411
|
-
y.value.showTable = !y.value.showTable;
|
|
412
|
-
}
|
|
413
|
-
function Ee() {
|
|
414
|
-
y.value.showTooltip = !y.value.showTooltip;
|
|
415
|
-
}
|
|
416
|
-
const Q = c(!1);
|
|
417
|
-
function ie() {
|
|
418
|
-
Q.value = !Q.value;
|
|
419
|
-
}
|
|
420
|
-
async function wt({ scale: t = 2 } = {}) {
|
|
421
|
-
if (!C.value) return;
|
|
422
|
-
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: h } = await aa({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
423
|
-
return {
|
|
424
|
-
imageUri: s,
|
|
425
|
-
base64: h,
|
|
426
|
-
title: e.value.style.chart.title.text,
|
|
427
|
-
width: a,
|
|
428
|
-
height: o,
|
|
429
|
-
aspectRatio: l
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
const G = v(() => {
|
|
433
|
-
const t = e.value.table.useDialog && !e.value.table.show, a = y.value.showTable;
|
|
434
|
-
return {
|
|
435
|
-
component: t ? it : lt,
|
|
436
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
437
|
-
props: t ? {
|
|
438
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
439
|
-
color: e.value.table.th.color,
|
|
440
|
-
headerColor: e.value.table.th.color,
|
|
441
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
442
|
-
isFullscreen: O.value,
|
|
443
|
-
fullscreenParent: C.value,
|
|
444
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
445
|
-
} : {
|
|
446
|
-
hideDetails: !0,
|
|
447
|
-
config: {
|
|
448
|
-
open: a,
|
|
449
|
-
maxHeight: 1e4,
|
|
450
|
-
body: {
|
|
451
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
452
|
-
color: e.value.style.chart.color
|
|
453
|
-
},
|
|
454
|
-
head: {
|
|
455
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
456
|
-
color: e.value.style.chart.color
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
});
|
|
462
|
-
Ve(() => y.value.showTable, (t) => {
|
|
463
|
-
e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
|
|
464
|
-
});
|
|
465
|
-
function Me() {
|
|
466
|
-
y.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
467
|
-
}
|
|
468
|
-
const _t = v(() => P.value.map((t) => ({
|
|
469
|
-
...t,
|
|
470
|
-
name: t.display
|
|
471
|
-
}))), $t = v(() => e.value.style.chart.backgroundColor), Tt = v(() => e.value.style.chart.legend), At = v(() => e.value.style.chart.title), { exportSvg: St, getSvg: xt } = na({
|
|
472
|
-
svg: H,
|
|
473
|
-
title: At,
|
|
474
|
-
legend: Tt,
|
|
475
|
-
legendItems: _t,
|
|
476
|
-
backgroundColor: $t
|
|
477
|
-
});
|
|
478
|
-
async function Ue({ isCb: t }) {
|
|
479
|
-
if (t) {
|
|
480
|
-
const { blob: a, url: o, text: l, dataUrl: s } = await xt();
|
|
481
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: o, text: l, dataUrl: s });
|
|
482
|
-
} else
|
|
483
|
-
St();
|
|
484
|
-
}
|
|
485
|
-
return Ze({
|
|
486
|
-
getData: ht,
|
|
487
|
-
getImage: wt,
|
|
488
|
-
generatePdf: Pe,
|
|
489
|
-
generateCsv: ue,
|
|
490
|
-
generateImage: Oe,
|
|
491
|
-
generateSvg: Ue,
|
|
492
|
-
toggleTable: Be,
|
|
493
|
-
toggleTooltip: Ee,
|
|
494
|
-
toggleAnnotator: ie,
|
|
495
|
-
toggleFullscreen: De
|
|
496
|
-
}), (t, a) => (n(), u("div", {
|
|
497
|
-
class: W(`vue-data-ui-component vue-ui-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
498
|
-
ref_key: "radarChart",
|
|
499
|
-
ref: C,
|
|
500
|
-
id: `vue-ui-radar_${b.value}`,
|
|
501
|
-
style: J(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
502
|
-
onMouseenter: a[2] || (a[2] = () => r($e)(!0)),
|
|
503
|
-
onMouseleave: a[3] || (a[3] = () => r($e)(!1))
|
|
504
|
-
}, [
|
|
505
|
-
e.value.userOptions.buttons.annotator ? (n(), S(r(nt), {
|
|
506
|
-
key: 0,
|
|
507
|
-
svgRef: r(H),
|
|
508
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
509
|
-
color: e.value.style.chart.color,
|
|
510
|
-
active: Q.value,
|
|
511
|
-
onClose: ie
|
|
512
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
513
|
-
vt.value ? (n(), u("div", {
|
|
514
|
-
key: 1,
|
|
515
|
-
ref_key: "noTitle",
|
|
516
|
-
ref: ye,
|
|
517
|
-
class: "vue-data-ui-no-title-space",
|
|
518
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
519
|
-
}, null, 512)) : d("", !0),
|
|
520
|
-
e.value.style.chart.title.text ? (n(), u("div", {
|
|
521
|
-
key: 2,
|
|
522
|
-
ref_key: "chartTitle",
|
|
523
|
-
ref: ge,
|
|
524
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
525
|
-
}, [
|
|
526
|
-
(n(), S(oa, {
|
|
527
|
-
key: `title_${be.value}`,
|
|
528
|
-
config: {
|
|
529
|
-
title: {
|
|
530
|
-
cy: "radar-div-title",
|
|
531
|
-
...e.value.style.chart.title
|
|
532
|
-
},
|
|
533
|
-
subtitle: {
|
|
534
|
-
cy: "radar-div-subtitle",
|
|
535
|
-
...e.value.style.chart.title.subtitle
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}, null, 8, ["config"]))
|
|
539
|
-
], 512)) : d("", !0),
|
|
540
|
-
$("div", {
|
|
541
|
-
id: `legend-top-${b.value}`
|
|
542
|
-
}, null, 8, ia),
|
|
543
|
-
e.value.userOptions.show && pe.value && (r(Te) || r(ae)) ? (n(), S(r(rt), {
|
|
544
|
-
ref_key: "userOptionsRef",
|
|
545
|
-
ref: te,
|
|
546
|
-
key: `user_options_${he.value}`,
|
|
547
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
548
|
-
color: e.value.style.chart.color,
|
|
549
|
-
isImaging: r(xe),
|
|
550
|
-
isPrinting: r(Se),
|
|
551
|
-
uid: b.value,
|
|
552
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
553
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
554
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
555
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
556
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
557
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
558
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
559
|
-
isFullscreen: O.value,
|
|
560
|
-
isTooltip: y.value.showTooltip,
|
|
561
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
562
|
-
chartElement: C.value,
|
|
563
|
-
position: e.value.userOptions.position,
|
|
564
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
565
|
-
isAnnotation: Q.value,
|
|
566
|
-
callbacks: e.value.userOptions.callbacks,
|
|
567
|
-
printScale: e.value.userOptions.print.scale,
|
|
568
|
-
tableDialog: e.value.table.useDialog,
|
|
569
|
-
onToggleFullscreen: De,
|
|
570
|
-
onGeneratePdf: r(Pe),
|
|
571
|
-
onGenerateCsv: ue,
|
|
572
|
-
onGenerateImage: r(Oe),
|
|
573
|
-
onGenerateSvg: Ue,
|
|
574
|
-
onToggleTable: Be,
|
|
575
|
-
onToggleTooltip: Ee,
|
|
576
|
-
onToggleAnnotator: ie,
|
|
577
|
-
style: J({
|
|
578
|
-
visibility: r(Te) ? r(ae) ? "visible" : "hidden" : "visible"
|
|
579
|
-
})
|
|
580
|
-
}, We({ _: 2 }, [
|
|
581
|
-
t.$slots.menuIcon ? {
|
|
582
|
-
name: "menuIcon",
|
|
583
|
-
fn: g(({ isOpen: o, color: l }) => [
|
|
584
|
-
f(t.$slots, "menuIcon", B(E({ isOpen: o, color: l })), void 0, !0)
|
|
585
|
-
]),
|
|
586
|
-
key: "0"
|
|
587
|
-
} : void 0,
|
|
588
|
-
t.$slots.optionTooltip ? {
|
|
589
|
-
name: "optionTooltip",
|
|
590
|
-
fn: g(() => [
|
|
591
|
-
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
592
|
-
]),
|
|
593
|
-
key: "1"
|
|
594
|
-
} : void 0,
|
|
595
|
-
t.$slots.optionPdf ? {
|
|
596
|
-
name: "optionPdf",
|
|
597
|
-
fn: g(() => [
|
|
598
|
-
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
599
|
-
]),
|
|
600
|
-
key: "2"
|
|
601
|
-
} : void 0,
|
|
602
|
-
t.$slots.optionCsv ? {
|
|
603
|
-
name: "optionCsv",
|
|
604
|
-
fn: g(() => [
|
|
605
|
-
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
606
|
-
]),
|
|
607
|
-
key: "3"
|
|
608
|
-
} : void 0,
|
|
609
|
-
t.$slots.optionImg ? {
|
|
610
|
-
name: "optionImg",
|
|
611
|
-
fn: g(() => [
|
|
612
|
-
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
613
|
-
]),
|
|
614
|
-
key: "4"
|
|
615
|
-
} : void 0,
|
|
616
|
-
t.$slots.optionTable ? {
|
|
617
|
-
name: "optionTable",
|
|
618
|
-
fn: g(() => [
|
|
619
|
-
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
620
|
-
]),
|
|
621
|
-
key: "5"
|
|
622
|
-
} : void 0,
|
|
623
|
-
t.$slots.optionFullscreen ? {
|
|
624
|
-
name: "optionFullscreen",
|
|
625
|
-
fn: g(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
626
|
-
f(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
627
|
-
]),
|
|
628
|
-
key: "6"
|
|
629
|
-
} : void 0,
|
|
630
|
-
t.$slots.optionAnnotator ? {
|
|
631
|
-
name: "optionAnnotator",
|
|
632
|
-
fn: g(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
633
|
-
f(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
634
|
-
]),
|
|
635
|
-
key: "7"
|
|
636
|
-
} : void 0
|
|
637
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
638
|
-
(n(), u("svg", {
|
|
639
|
-
ref_key: "svgRef",
|
|
640
|
-
ref: H,
|
|
641
|
-
xmlns: r(Ut),
|
|
642
|
-
class: W({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
643
|
-
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
644
|
-
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
645
|
-
}, [
|
|
646
|
-
K(r(ut)),
|
|
647
|
-
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
648
|
-
key: 0,
|
|
649
|
-
x: 0,
|
|
650
|
-
y: 0,
|
|
651
|
-
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
652
|
-
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
653
|
-
style: {
|
|
654
|
-
pointerEvents: "none"
|
|
655
|
-
}
|
|
656
|
-
}, [
|
|
657
|
-
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
658
|
-
], 8, va)) : d("", !0),
|
|
659
|
-
$("defs", null, [
|
|
660
|
-
(n(!0), u(I, null, L(m.value, (o, l) => (n(), u("radialGradient", {
|
|
661
|
-
cx: "50%",
|
|
662
|
-
cy: "50%",
|
|
663
|
-
r: "50%",
|
|
664
|
-
fx: "50%",
|
|
665
|
-
fy: "50%",
|
|
666
|
-
id: `radar_gradient_${b.value}_${l}`
|
|
667
|
-
}, [
|
|
668
|
-
$("stop", {
|
|
669
|
-
offset: "0%",
|
|
670
|
-
"stop-color": r(de)(r(Vt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
671
|
-
}, null, 8, pa),
|
|
672
|
-
$("stop", {
|
|
673
|
-
offset: "100%",
|
|
674
|
-
"stop-color": r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
675
|
-
}, null, 8, ha)
|
|
676
|
-
], 8, da))), 256))
|
|
677
|
-
]),
|
|
678
|
-
e.value.style.chart.layout.grid.show ? (n(), u("g", ga, [
|
|
679
|
-
(n(!0), u(I, null, L(A.value, (o) => (n(), u("line", {
|
|
680
|
-
x1: i.value.width / 2,
|
|
681
|
-
y1: i.value.height / 2,
|
|
682
|
-
x2: o.x,
|
|
683
|
-
y2: o.y,
|
|
684
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
685
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
686
|
-
}, null, 8, fa))), 256)),
|
|
687
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (n(), u("g", ma, [
|
|
688
|
-
(n(!0), u(I, null, L(gt.value, (o) => (n(), u("path", {
|
|
689
|
-
d: r(je)({
|
|
690
|
-
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
691
|
-
radius: o,
|
|
692
|
-
sides: Ne.value,
|
|
693
|
-
rotation: 0
|
|
694
|
-
}).path,
|
|
695
|
-
fill: "none",
|
|
696
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
697
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
698
|
-
}, null, 8, ya))), 256))
|
|
699
|
-
])) : d("", !0)
|
|
700
|
-
])) : d("", !0),
|
|
701
|
-
$("path", {
|
|
702
|
-
d: Re.value.path,
|
|
703
|
-
fill: "none",
|
|
704
|
-
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
705
|
-
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
706
|
-
"stroke-linejoin": "round",
|
|
707
|
-
"stroke-linecap": "round"
|
|
708
|
-
}, null, 8, ba),
|
|
709
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), u("g", ka, [
|
|
710
|
-
(n(!0), u(I, null, L(A.value, (o, l) => (n(), u("text", {
|
|
711
|
-
class: "vue-ui-radar-apex-label",
|
|
712
|
-
x: o.labelX,
|
|
713
|
-
y: o.labelY,
|
|
714
|
-
"text-anchor": o.labelAnchor,
|
|
715
|
-
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
716
|
-
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
717
|
-
onMouseenter: (s) => Ct(o, l),
|
|
718
|
-
onMouseleave: (s) => bt(o, l),
|
|
719
|
-
onClick: (s) => kt(o, l)
|
|
720
|
-
}, X(o.name), 41, Ca))), 256))
|
|
721
|
-
])) : d("", !0),
|
|
722
|
-
(n(!0), u(I, null, L(m.value, (o, l) => (n(), u("g", null, [
|
|
723
|
-
$("g", null, [
|
|
724
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
|
|
725
|
-
key: 0,
|
|
726
|
-
points: r(Qe)(A.value.map((s) => s.plots[l]), !1, !0),
|
|
727
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
728
|
-
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
729
|
-
fill: "none",
|
|
730
|
-
class: W({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": D.value && V.value === l && e.value.useCssAnimation })
|
|
731
|
-
}, null, 10, wa)) : d("", !0),
|
|
732
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
|
|
733
|
-
key: 1,
|
|
734
|
-
points: r(Qe)(A.value.map((s) => s.plots[l]), !1, !0),
|
|
735
|
-
stroke: o.color,
|
|
736
|
-
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
737
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
738
|
-
class: W({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": D.value && V.value === l && e.value.useCssAnimation })
|
|
739
|
-
}, null, 10, _a)) : d("", !0)
|
|
740
|
-
])
|
|
741
|
-
]))), 256)),
|
|
742
|
-
e.value.style.chart.layout.plots.show ? (n(), u("g", $a, [
|
|
743
|
-
(n(!0), u(I, null, L(A.value, (o, l) => (n(), u("g", null, [
|
|
744
|
-
(n(!0), u(I, null, L(o.plots, (s, h) => (n(), u("circle", {
|
|
745
|
-
cx: s.x,
|
|
746
|
-
cy: s.y,
|
|
747
|
-
fill: p.value.includes(h) ? "transparent" : m.value[h] ? m.value[h].color : "transparent",
|
|
748
|
-
r: q.value !== null && q.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
749
|
-
stroke: p.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
750
|
-
"stroke-width": 0.5,
|
|
751
|
-
class: W({ "animated-out": p.value.includes(h) && e.value.useCssAnimation, "animated-in": D.value && V.value === h && e.value.useCssAnimation })
|
|
752
|
-
}, null, 10, Ta))), 256))
|
|
753
|
-
]))), 256))
|
|
754
|
-
])) : d("", !0),
|
|
755
|
-
f(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
756
|
-
], 14, ca)),
|
|
757
|
-
t.$slots.watermark ? (n(), u("div", Aa, [
|
|
758
|
-
f(t.$slots, "watermark", B(E({ isPrinting: r(Se) || r(xe) })), void 0, !0)
|
|
759
|
-
])) : d("", !0),
|
|
760
|
-
$("div", {
|
|
761
|
-
id: `legend-bottom-${b.value}`
|
|
762
|
-
}, null, 8, Sa),
|
|
763
|
-
we.value ? (n(), S(It, {
|
|
764
|
-
key: 5,
|
|
765
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
766
|
-
}, [
|
|
767
|
-
$("div", {
|
|
768
|
-
ref_key: "chartLegend",
|
|
769
|
-
ref: fe
|
|
770
|
-
}, [
|
|
771
|
-
e.value.style.chart.legend.show ? (n(), S(la, {
|
|
772
|
-
key: `legend_${Ce.value}`,
|
|
773
|
-
legendSet: P.value,
|
|
774
|
-
config: yt.value,
|
|
775
|
-
onClickMarker: a[0] || (a[0] = ({ i: o }) => Ie(o))
|
|
776
|
-
}, {
|
|
777
|
-
item: g(({ legend: o, index: l }) => [
|
|
778
|
-
r(_e) ? d("", !0) : (n(), u("div", {
|
|
779
|
-
key: 0,
|
|
780
|
-
onClick: (s) => o.segregate(),
|
|
781
|
-
style: J(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
|
|
782
|
-
}, X(o.display), 13, xa))
|
|
783
|
-
]),
|
|
784
|
-
_: 1
|
|
785
|
-
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
786
|
-
key: 1,
|
|
787
|
-
legend: P.value
|
|
788
|
-
}, void 0, !0)
|
|
789
|
-
], 512)
|
|
790
|
-
], 8, ["to"])) : d("", !0),
|
|
791
|
-
t.$slots.source ? (n(), u("div", {
|
|
792
|
-
key: 6,
|
|
793
|
-
ref_key: "source",
|
|
794
|
-
ref: me,
|
|
795
|
-
dir: "auto"
|
|
796
|
-
}, [
|
|
797
|
-
f(t.$slots, "source", {}, void 0, !0)
|
|
798
|
-
], 512)) : d("", !0),
|
|
799
|
-
K(r(tt), {
|
|
800
|
-
show: y.value.showTooltip && Z.value,
|
|
801
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
802
|
-
color: e.value.style.chart.tooltip.color,
|
|
803
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
804
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
805
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
806
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
807
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
808
|
-
position: e.value.style.chart.tooltip.position,
|
|
809
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
810
|
-
parent: C.value,
|
|
811
|
-
content: ee.value,
|
|
812
|
-
isFullscreen: O.value,
|
|
813
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
814
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
815
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
816
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
817
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
818
|
-
}, {
|
|
819
|
-
"tooltip-before": g(() => [
|
|
820
|
-
f(t.$slots, "tooltip-before", B(E({ ...re.value })), void 0, !0)
|
|
821
|
-
]),
|
|
822
|
-
"tooltip-after": g(() => [
|
|
823
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (n(), u("div", Pa, [
|
|
824
|
-
K(r(ot), {
|
|
825
|
-
dataset: ne.value,
|
|
826
|
-
config: dt.value,
|
|
827
|
-
backgroundOpacity: 0
|
|
828
|
-
}, null, 8, ["dataset", "config"])
|
|
829
|
-
])),
|
|
830
|
-
f(t.$slots, "tooltip-after", B(E({ ...re.value })), void 0, !0)
|
|
831
|
-
]),
|
|
832
|
-
_: 3
|
|
833
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
834
|
-
pe.value && e.value.userOptions.buttons.table ? (n(), S(Lt(G.value.component), Nt({ key: 7 }, G.value.props, {
|
|
835
|
-
ref_key: "tableUnit",
|
|
836
|
-
ref: U,
|
|
837
|
-
onClose: Me
|
|
838
|
-
}), We({
|
|
839
|
-
content: g(() => [
|
|
840
|
-
(n(), S(r(st), {
|
|
841
|
-
key: `table_${ke.value}`,
|
|
842
|
-
colNames: j.value.colNames,
|
|
843
|
-
head: j.value.head,
|
|
844
|
-
body: j.value.body,
|
|
845
|
-
config: j.value.config,
|
|
846
|
-
title: e.value.table.useDialog ? "" : G.value.title,
|
|
847
|
-
withCloseButton: !e.value.table.useDialog,
|
|
848
|
-
onClose: Me
|
|
849
|
-
}, {
|
|
850
|
-
th: g(({ th: o }) => [
|
|
851
|
-
ve(X(o.name), 1)
|
|
852
|
-
]),
|
|
853
|
-
td: g(({ td: o }) => [
|
|
854
|
-
ve(X(o), 1)
|
|
855
|
-
]),
|
|
856
|
-
_: 1
|
|
857
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
858
|
-
]),
|
|
859
|
-
_: 2
|
|
860
|
-
}, [
|
|
861
|
-
e.value.table.useDialog ? {
|
|
862
|
-
name: "title",
|
|
863
|
-
fn: g(() => [
|
|
864
|
-
ve(X(G.value.title), 1)
|
|
865
|
-
]),
|
|
866
|
-
key: "0"
|
|
867
|
-
} : void 0,
|
|
868
|
-
e.value.table.useDialog ? {
|
|
869
|
-
name: "actions",
|
|
870
|
-
fn: g(() => [
|
|
871
|
-
$("button", {
|
|
872
|
-
tabindex: "0",
|
|
873
|
-
class: "vue-ui-user-options-button",
|
|
874
|
-
onClick: a[1] || (a[1] = (o) => ue(e.value.userOptions.callbacks.csv))
|
|
875
|
-
}, [
|
|
876
|
-
K(r(at), {
|
|
877
|
-
name: "excel",
|
|
878
|
-
stroke: G.value.props.color
|
|
879
|
-
}, null, 8, ["stroke"])
|
|
880
|
-
])
|
|
881
|
-
]),
|
|
882
|
-
key: "1"
|
|
883
|
-
} : void 0
|
|
884
|
-
]), 1040)) : d("", !0),
|
|
885
|
-
r(_e) ? (n(), S(Jt, { key: 8 })) : d("", !0)
|
|
886
|
-
], 46, ua));
|
|
887
|
-
}
|
|
888
|
-
}, Ha = /* @__PURE__ */ ra(Oa, [["__scopeId", "data-v-cfb6bdec"]]);
|
|
889
|
-
export {
|
|
890
|
-
Ha as default
|
|
891
|
-
};
|