vue-data-ui 3.0.23 → 3.1.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/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,807 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as S, computed as v, ref as c, toRefs as ht, watch as gt, shallowRef as ze, onMounted as ft, onBeforeUnmount as yt, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as j, normalizeClass as D, createBlock as T, createCommentVNode as d, createElementVNode as A, createVNode as ne, createSlots as mt, withCtx as y, renderSlot as h, normalizeProps as M, guardReactiveProps as V, Fragment as F, renderList as O, toDisplayString as G, Teleport as bt, createTextVNode as Ee, nextTick as kt } from "vue";
|
|
2
|
-
import { u as Ct, c as wt, t as _t, a as $t, p as I, b as Tt, o as At, f as U, d as Pt, g as Me, e as Ve, R as Ue, h as xt, k as Be, i as W, X as St, s as re, x as Ft, S as De, v as Ot, w as It, y as Nt, z as Lt } from "./index-BEuUtONc.js";
|
|
3
|
-
import { t as Rt, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Et, B as Mt } from "./useLoading-D7YHNtLX.js";
|
|
5
|
-
import { u as Vt } from "./usePrinter-DiB0_UNt.js";
|
|
6
|
-
import { u as Ge } from "./useNestedProp-DhLFhguL.js";
|
|
7
|
-
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import { u as Dt } from "./useAutoSizeLabelsInsideViewbox-CchB8S-o.js";
|
|
10
|
-
import Gt from "./img-z5p1gGfY.js";
|
|
11
|
-
import Wt from "./Title-D_e0SFWS.js";
|
|
12
|
-
import Xt from "./Legend-CyYXMSsW.js";
|
|
13
|
-
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const Ht = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["id"], Qt = ["stop-color"], Zt = ["stop-color"], ea = { key: 1 }, ta = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], aa = { key: 0 }, oa = ["d", "stroke", "stroke-width"], la = ["d", "stroke", "stroke-width"], sa = { key: 2 }, na = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], ra = ["points", "stroke", "stroke-width"], ua = ["points", "stroke", "stroke-width", "fill"], ia = { key: 3 }, ca = ["cx", "cy", "fill", "r", "stroke"], da = {
|
|
15
|
-
key: 4,
|
|
16
|
-
class: "vue-data-ui-watermark"
|
|
17
|
-
}, va = ["id"], pa = ["onClick"], ha = {
|
|
18
|
-
key: 0,
|
|
19
|
-
style: { "max-width": "200px", margin: "0 auto" }
|
|
20
|
-
}, ga = {
|
|
21
|
-
__name: "vue-ui-radar",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Object,
|
|
31
|
-
default() {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["selectLegend"],
|
|
37
|
-
setup(We, { expose: Xe, emit: Ye }) {
|
|
38
|
-
const He = S(() => import("./DataTable-nO6ydJO2.js")), je = S(() => import("./PenAndPaper-zym5uEeN.js")), qe = S(() => import("./vue-ui-accordion-B4YfUjZ5.js")), Je = S(() => import("./Tooltip-DjVoFYj1.js")), Ke = S(() => import("./UserOptions-z0NWZ7aQ.js")), Qe = S(() => import("./PackageVersion-B6M-3jRt.js")), Ze = S(() => import("./vue-ui-sparkbar-Da315uRq.js")), { vue_ui_radar: et } = Ct(), P = We, ue = v(() => !!P.dataset && Object.keys(P.dataset).length), m = c(wt()), tt = c(null), q = c(!1), J = c(""), ie = c(0), w = c(null), ce = c(null), de = c(null), ve = c(null), pe = c(null), he = c(0), ge = c(0), fe = c(0), ye = c(!1), e = c(Z()), { loading: me, FINAL_DATASET: C } = Et({
|
|
39
|
-
...ht(P),
|
|
40
|
-
FINAL_CONFIG: e,
|
|
41
|
-
prepareConfig: Z,
|
|
42
|
-
skeletonDataset: {
|
|
43
|
-
categories: [{ name: "_", color: "#6A6A6A" }],
|
|
44
|
-
series: [
|
|
45
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
46
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
47
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
48
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
49
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
50
|
-
{ name: "_", values: [0.6], target: 1 }
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
skeletonConfig: _t({
|
|
54
|
-
defaultConfig: e.value,
|
|
55
|
-
userConfig: {
|
|
56
|
-
userOptions: { show: !1 },
|
|
57
|
-
table: { show: !1 },
|
|
58
|
-
useCssAnimation: !1,
|
|
59
|
-
style: {
|
|
60
|
-
chart: {
|
|
61
|
-
backgroundColor: "#99999930",
|
|
62
|
-
layout: {
|
|
63
|
-
grid: {
|
|
64
|
-
stroke: "#6A6A6A90"
|
|
65
|
-
},
|
|
66
|
-
labels: {
|
|
67
|
-
dataLabels: { show: !1 }
|
|
68
|
-
},
|
|
69
|
-
outerPolygon: {
|
|
70
|
-
stroke: "#6A6A6A"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
legend: {
|
|
74
|
-
backgroundColor: "transparent"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
}), { userOptionsVisible: K, setUserOptionsVisibility: be, keepUserOptionState: ke } = Ut({ config: e.value }), { svgRef: Q } = Bt({ config: e.value.style.chart.title });
|
|
81
|
-
function Z() {
|
|
82
|
-
const t = Ge({
|
|
83
|
-
userConfig: P.config,
|
|
84
|
-
defaultConfig: et
|
|
85
|
-
});
|
|
86
|
-
return t.theme ? {
|
|
87
|
-
...Ge({
|
|
88
|
-
userConfig: Tt.vue_ui_radar[t.theme] || P.config,
|
|
89
|
-
defaultConfig: t
|
|
90
|
-
}),
|
|
91
|
-
customPalette: $t[t.theme] || I
|
|
92
|
-
} : t;
|
|
93
|
-
}
|
|
94
|
-
gt(() => P.config, (t) => {
|
|
95
|
-
e.value = Z(), K.value = !e.value.userOptions.showOnChartHover, Ce(), he.value += 1, ge.value += 1, fe.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.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
96
|
-
}, { deep: !0 });
|
|
97
|
-
const _ = ze(null), N = ze(null), L = v(() => e.value.debug);
|
|
98
|
-
function Ce() {
|
|
99
|
-
if (At(P.dataset) && U({
|
|
100
|
-
componentName: "VueUiRadar",
|
|
101
|
-
type: "dataset",
|
|
102
|
-
debug: L.value
|
|
103
|
-
}), e.value.responsive) {
|
|
104
|
-
const t = Rt(() => {
|
|
105
|
-
const { width: a, height: o } = zt({
|
|
106
|
-
chart: w.value,
|
|
107
|
-
title: e.value.style.chart.title.text ? ce.value : null,
|
|
108
|
-
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
109
|
-
source: ve.value,
|
|
110
|
-
noTitle: pe.value
|
|
111
|
-
});
|
|
112
|
-
requestAnimationFrame(() => {
|
|
113
|
-
i.value.width = a, i.value.height = o, Oe();
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
_.value && (N.value && _.value.unobserve(N.value), _.value.disconnect()), _.value = new ResizeObserver(t), N.value = w.value.parentNode, _.value.observe(N.value);
|
|
117
|
-
}
|
|
118
|
-
Oe();
|
|
119
|
-
}
|
|
120
|
-
ft(() => {
|
|
121
|
-
ye.value = !0, Ce();
|
|
122
|
-
}), yt(() => {
|
|
123
|
-
_.value && (N.value && _.value.unobserve(N.value), _.value.disconnect());
|
|
124
|
-
});
|
|
125
|
-
const { isPrinting: we, isImaging: _e, generatePdf: $e, generateImage: Te } = Vt({
|
|
126
|
-
elementId: `vue-ui-radar_${m.value}`,
|
|
127
|
-
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
128
|
-
options: e.value.userOptions.print
|
|
129
|
-
}), at = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ae = v(() => Pt(e.value.customPalette)), b = c({
|
|
130
|
-
dataLabels: {
|
|
131
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
132
|
-
},
|
|
133
|
-
showTable: e.value.table.show,
|
|
134
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
135
|
-
}), ot = v(() => ({
|
|
136
|
-
style: {
|
|
137
|
-
backgroundColor: "#FFFFFF00",
|
|
138
|
-
animation: {
|
|
139
|
-
show: e.value.style.chart.tooltip.animation.show,
|
|
140
|
-
animationFrames: e.value.style.chart.tooltip.animation.animationFrames
|
|
141
|
-
},
|
|
142
|
-
labels: {
|
|
143
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
144
|
-
name: {
|
|
145
|
-
color: e.value.style.chart.tooltip.color
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
gutter: {
|
|
149
|
-
backgroundColor: "#CCCCCC",
|
|
150
|
-
opacity: 30
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
})), i = c({
|
|
154
|
-
height: 312,
|
|
155
|
-
width: 512
|
|
156
|
-
}), lt = Ye, p = c([]), B = c(null), R = c(!1);
|
|
157
|
-
function Pe(t) {
|
|
158
|
-
R.value = !0, p.value.includes(t) ? (B.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
|
|
159
|
-
R.value = !1, B.value = null;
|
|
160
|
-
}, 500)) : (p.value.push(t), setTimeout(() => {
|
|
161
|
-
R.value = !1;
|
|
162
|
-
}, 500)), lt("selectLegend", z.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
|
|
163
|
-
name: a.name,
|
|
164
|
-
color: a.color,
|
|
165
|
-
proportion: a.totalProportion
|
|
166
|
-
})));
|
|
167
|
-
}
|
|
168
|
-
function st() {
|
|
169
|
-
return z.value.map((t) => ({
|
|
170
|
-
name: t.name,
|
|
171
|
-
color: t.color,
|
|
172
|
-
proportion: t.totalProportion
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
175
|
-
const g = v(() => [null, void 0].includes(C.value.categories) ? (U({
|
|
176
|
-
componentName: "VueUiRadar",
|
|
177
|
-
type: "datasetAttribute",
|
|
178
|
-
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
179
|
-
debug: L.value
|
|
180
|
-
}), []) : (C.value.categories.length === 0 ? U({
|
|
181
|
-
componentName: "VueUiRadar",
|
|
182
|
-
type: "datasetAttributeEmpty",
|
|
183
|
-
property: "categories",
|
|
184
|
-
debug: L.value
|
|
185
|
-
}) : C.value.categories.forEach((t, a) => {
|
|
186
|
-
Me({
|
|
187
|
-
datasetObject: t,
|
|
188
|
-
requiredAttributes: ["name"]
|
|
189
|
-
}).forEach((o) => {
|
|
190
|
-
U({
|
|
191
|
-
componentName: "VueUiRadar",
|
|
192
|
-
type: "datasetAttribute",
|
|
193
|
-
property: `category.${o} at index ${a}`,
|
|
194
|
-
index: a,
|
|
195
|
-
debug: L.value
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
}), [null, void 0].includes(C.value.series) ? U({
|
|
199
|
-
componentName: "VueUiRadar",
|
|
200
|
-
type: "datasetAttribute",
|
|
201
|
-
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
202
|
-
debug: L.value
|
|
203
|
-
}) : C.value.series.forEach((t, a) => {
|
|
204
|
-
Me({
|
|
205
|
-
datasetObject: t,
|
|
206
|
-
requiredAttributes: ["name", "values", "target"]
|
|
207
|
-
}).forEach((o) => {
|
|
208
|
-
U({
|
|
209
|
-
componentName: "VueUiRadar",
|
|
210
|
-
type: "datasetSerieAttribute",
|
|
211
|
-
key: "series",
|
|
212
|
-
property: o,
|
|
213
|
-
index: a,
|
|
214
|
-
debug: L.value
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
}), C.value.categories.map((t, a) => ({
|
|
218
|
-
name: t.name,
|
|
219
|
-
categoryId: `radar_category_${m.value}_${a}`,
|
|
220
|
-
color: Ve(t.color) || Ae.value[a] || I[a] || I[a % I.length],
|
|
221
|
-
prefix: t.prefix ?? "",
|
|
222
|
-
suffix: t.suffix ?? ""
|
|
223
|
-
})))), k = v(() => C.value.series.map((t, a) => ({
|
|
224
|
-
...t,
|
|
225
|
-
color: Ve(t.color) || Ae.value[a] || I[a] || I[a % I.length],
|
|
226
|
-
serieId: `radar_serie_${m.value}_${a}`,
|
|
227
|
-
formatter: t.formatter || null
|
|
228
|
-
}))), xe = v(() => Math.max(...k.value.flatMap((t) => t.values))), Se = v(() => k.value.length), ee = v(() => Math.min(i.value.width, i.value.height) / 3), Fe = v(() => Ue({
|
|
229
|
-
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
230
|
-
radius: ee.value,
|
|
231
|
-
sides: Se.value,
|
|
232
|
-
rotation: 0
|
|
233
|
-
})), nt = v(() => {
|
|
234
|
-
const t = [];
|
|
235
|
-
for (let a = 0; a < ee.value; a += ee.value / e.value.style.chart.layout.grid.graduations)
|
|
236
|
-
t.push(a);
|
|
237
|
-
return t;
|
|
238
|
-
}), $ = v(() => Fe.value.coordinates.map((t, a) => {
|
|
239
|
-
const o = k.value[a].values.map((l) => ut({
|
|
240
|
-
centerX: i.value.width / 2,
|
|
241
|
-
centerY: i.value.height / 2,
|
|
242
|
-
apexX: t.x,
|
|
243
|
-
apexY: t.y,
|
|
244
|
-
proportion: l / (k.value[a].target || xe.value)
|
|
245
|
-
}));
|
|
246
|
-
return {
|
|
247
|
-
...t,
|
|
248
|
-
...k.value[a],
|
|
249
|
-
plots: o
|
|
250
|
-
};
|
|
251
|
-
}).map((t) => ({
|
|
252
|
-
...t,
|
|
253
|
-
labelX: te(t).x,
|
|
254
|
-
labelY: te(t).y,
|
|
255
|
-
labelAnchor: te(t).anchor
|
|
256
|
-
})));
|
|
257
|
-
function te({ x: t, y: a }) {
|
|
258
|
-
let o = "middle";
|
|
259
|
-
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 };
|
|
260
|
-
}
|
|
261
|
-
const rt = v({
|
|
262
|
-
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
263
|
-
set: (t) => t
|
|
264
|
-
}), { autoSizeLabels: Oe } = Dt({
|
|
265
|
-
svgRef: Q,
|
|
266
|
-
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
267
|
-
minFontSize: 6,
|
|
268
|
-
sizeRef: rt,
|
|
269
|
-
labelClass: ".vue-ui-radar-apex-label"
|
|
270
|
-
});
|
|
271
|
-
function ut({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
|
|
272
|
-
return {
|
|
273
|
-
x: t + (o - t) * n,
|
|
274
|
-
y: a + (l - a) * n
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
const z = v(() => {
|
|
278
|
-
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || xe.value)));
|
|
279
|
-
return g.value.map((a, o) => ({
|
|
280
|
-
...a,
|
|
281
|
-
totalProportion: xt(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / k.value.length),
|
|
282
|
-
shape: "circle",
|
|
283
|
-
opacity: p.value.includes(o) ? 0.5 : 1,
|
|
284
|
-
segregate: () => Pe(o),
|
|
285
|
-
isSegregated: p.value.includes(o)
|
|
286
|
-
}));
|
|
287
|
-
}), it = v(() => ({
|
|
288
|
-
cy: "radar-div-legend",
|
|
289
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
290
|
-
color: e.value.style.chart.legend.color,
|
|
291
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
292
|
-
paddingBottom: 12,
|
|
293
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
294
|
-
})), X = v(() => {
|
|
295
|
-
const t = [
|
|
296
|
-
{ name: e.value.translations.datapoint, color: "" },
|
|
297
|
-
{ name: e.value.translations.target, color: "" },
|
|
298
|
-
...z.value
|
|
299
|
-
], a = C.value.series.map((l) => [
|
|
300
|
-
l.name,
|
|
301
|
-
Be(
|
|
302
|
-
l.formatter,
|
|
303
|
-
l.target,
|
|
304
|
-
W({
|
|
305
|
-
p: l.prefix,
|
|
306
|
-
v: l.target,
|
|
307
|
-
s: l.suffix,
|
|
308
|
-
r: e.value.table.td.roundingValue
|
|
309
|
-
})
|
|
310
|
-
),
|
|
311
|
-
...l.values.map((n, f) => `${Be(
|
|
312
|
-
l.formatter,
|
|
313
|
-
n,
|
|
314
|
-
W({ p: g.value[f].prefix, v: n, s: g.value[f].suffix, r: e.value.table.td.roundingValue })
|
|
315
|
-
)} (${isNaN(n / l.target) ? "" : W({
|
|
316
|
-
v: n / l.target * 100,
|
|
317
|
-
s: "%",
|
|
318
|
-
r: e.value.table.td.roundingPercentage
|
|
319
|
-
})})`)
|
|
320
|
-
]), o = {
|
|
321
|
-
th: {
|
|
322
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
323
|
-
color: e.value.table.th.color,
|
|
324
|
-
outline: e.value.table.th.outline
|
|
325
|
-
},
|
|
326
|
-
td: {
|
|
327
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
328
|
-
color: e.value.table.td.color,
|
|
329
|
-
outline: e.value.table.td.outline
|
|
330
|
-
},
|
|
331
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
332
|
-
};
|
|
333
|
-
return { head: t, body: a, config: o, colNames: t };
|
|
334
|
-
}), Y = c(null), ae = c([]), oe = c(null);
|
|
335
|
-
function ct(t, a) {
|
|
336
|
-
q.value = !1, Y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
337
|
-
}
|
|
338
|
-
function dt(t, a) {
|
|
339
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
340
|
-
}
|
|
341
|
-
function vt(t, a) {
|
|
342
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ae.value = [], Y.value = a, q.value = !0;
|
|
343
|
-
let o = "";
|
|
344
|
-
oe.value = {
|
|
345
|
-
datapoint: t,
|
|
346
|
-
seriesIndex: a,
|
|
347
|
-
series: {
|
|
348
|
-
categories: g.value,
|
|
349
|
-
datapoints: k.value,
|
|
350
|
-
radar: $.value
|
|
351
|
-
},
|
|
352
|
-
config: e.value
|
|
353
|
-
};
|
|
354
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
355
|
-
if (Nt(l) && Lt(() => l({
|
|
356
|
-
seriesIndex: a,
|
|
357
|
-
datapoint: t,
|
|
358
|
-
series: { categories: g.value, datapoints: k.value, radar: $.value },
|
|
359
|
-
config: e.value
|
|
360
|
-
})))
|
|
361
|
-
J.value = l({
|
|
362
|
-
seriesIndex: a,
|
|
363
|
-
datapoint: t,
|
|
364
|
-
series: { categories: g.value, datapoints: k.value, radar: $.value },
|
|
365
|
-
config: e.value
|
|
366
|
-
});
|
|
367
|
-
else {
|
|
368
|
-
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>`;
|
|
369
|
-
for (let n = 0; n < t.values.length; n += 1)
|
|
370
|
-
p.value.includes(n) || ae.value.push({
|
|
371
|
-
name: g.value[n].name,
|
|
372
|
-
value: t.values[n] / t.target * 100,
|
|
373
|
-
color: g.value[n].color,
|
|
374
|
-
suffix: "%)",
|
|
375
|
-
prefix: `${W({ p: g.value[n].prefix ?? "", v: t.values[n], s: g.value[n].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
376
|
-
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
377
|
-
formatter: t.formatter
|
|
378
|
-
});
|
|
379
|
-
J.value = o;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function Ie(t = null) {
|
|
383
|
-
kt(() => {
|
|
384
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...z.value.flatMap((x) => [[x.name], ["%"]])], l = C.value.series.map((x, fa) => [x.name, x.target, ...x.values.flatMap((se) => [
|
|
385
|
-
se,
|
|
386
|
-
isNaN(se / x.target) ? "" : se / x.target * 100
|
|
387
|
-
])]), n = a.concat([o]).concat(l), f = Ot(n);
|
|
388
|
-
t ? t(f) : It({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
const E = c(!1);
|
|
392
|
-
function Ne(t) {
|
|
393
|
-
E.value = t, ie.value += 1;
|
|
394
|
-
}
|
|
395
|
-
function Le() {
|
|
396
|
-
b.value.showTable = !b.value.showTable;
|
|
397
|
-
}
|
|
398
|
-
function Re() {
|
|
399
|
-
b.value.showTooltip = !b.value.showTooltip;
|
|
400
|
-
}
|
|
401
|
-
const H = c(!1);
|
|
402
|
-
function le() {
|
|
403
|
-
H.value = !H.value;
|
|
404
|
-
}
|
|
405
|
-
async function pt({ scale: t = 2 } = {}) {
|
|
406
|
-
if (!w.value) return;
|
|
407
|
-
const { width: a, height: o } = w.value.getBoundingClientRect(), l = a / o, { imageUri: n, base64: f } = await Gt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
408
|
-
return {
|
|
409
|
-
imageUri: n,
|
|
410
|
-
base64: f,
|
|
411
|
-
title: e.value.style.chart.title.text,
|
|
412
|
-
width: a,
|
|
413
|
-
height: o,
|
|
414
|
-
aspectRatio: l
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
return Xe({
|
|
418
|
-
getData: st,
|
|
419
|
-
getImage: pt,
|
|
420
|
-
generatePdf: $e,
|
|
421
|
-
generateCsv: Ie,
|
|
422
|
-
generateImage: Te,
|
|
423
|
-
toggleTable: Le,
|
|
424
|
-
toggleTooltip: Re,
|
|
425
|
-
toggleAnnotator: le,
|
|
426
|
-
toggleFullscreen: Ne
|
|
427
|
-
}), (t, a) => (s(), u("div", {
|
|
428
|
-
class: D(`vue-ui-radar ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
429
|
-
ref_key: "radarChart",
|
|
430
|
-
ref: w,
|
|
431
|
-
id: `vue-ui-radar_${m.value}`,
|
|
432
|
-
style: j(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
433
|
-
onMouseenter: a[2] || (a[2] = () => r(be)(!0)),
|
|
434
|
-
onMouseleave: a[3] || (a[3] = () => r(be)(!1))
|
|
435
|
-
}, [
|
|
436
|
-
e.value.userOptions.buttons.annotator ? (s(), T(r(je), {
|
|
437
|
-
key: 0,
|
|
438
|
-
svgRef: r(Q),
|
|
439
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
440
|
-
color: e.value.style.chart.color,
|
|
441
|
-
active: H.value,
|
|
442
|
-
onClose: le
|
|
443
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
444
|
-
at.value ? (s(), u("div", {
|
|
445
|
-
key: 1,
|
|
446
|
-
ref_key: "noTitle",
|
|
447
|
-
ref: pe,
|
|
448
|
-
class: "vue-data-ui-no-title-space",
|
|
449
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
450
|
-
}, null, 512)) : d("", !0),
|
|
451
|
-
e.value.style.chart.title.text ? (s(), u("div", {
|
|
452
|
-
key: 2,
|
|
453
|
-
ref_key: "chartTitle",
|
|
454
|
-
ref: ce,
|
|
455
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
456
|
-
}, [
|
|
457
|
-
(s(), T(Wt, {
|
|
458
|
-
key: `title_${he.value}`,
|
|
459
|
-
config: {
|
|
460
|
-
title: {
|
|
461
|
-
cy: "radar-div-title",
|
|
462
|
-
...e.value.style.chart.title
|
|
463
|
-
},
|
|
464
|
-
subtitle: {
|
|
465
|
-
cy: "radar-div-subtitle",
|
|
466
|
-
...e.value.style.chart.title.subtitle
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}, null, 8, ["config"]))
|
|
470
|
-
], 512)) : d("", !0),
|
|
471
|
-
A("div", {
|
|
472
|
-
id: `legend-top-${m.value}`
|
|
473
|
-
}, null, 8, jt),
|
|
474
|
-
e.value.userOptions.show && ue.value && (r(ke) || r(K)) ? (s(), T(r(Ke), {
|
|
475
|
-
ref_key: "details",
|
|
476
|
-
ref: tt,
|
|
477
|
-
key: `user_options_${ie.value}`,
|
|
478
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
479
|
-
color: e.value.style.chart.color,
|
|
480
|
-
isImaging: r(_e),
|
|
481
|
-
isPrinting: r(we),
|
|
482
|
-
uid: m.value,
|
|
483
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
484
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
485
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
486
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
487
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
488
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
489
|
-
isFullscreen: E.value,
|
|
490
|
-
isTooltip: b.value.showTooltip,
|
|
491
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
492
|
-
chartElement: w.value,
|
|
493
|
-
position: e.value.userOptions.position,
|
|
494
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
495
|
-
isAnnotation: H.value,
|
|
496
|
-
callbacks: e.value.userOptions.callbacks,
|
|
497
|
-
printScale: e.value.userOptions.print.scale,
|
|
498
|
-
onToggleFullscreen: Ne,
|
|
499
|
-
onGeneratePdf: r($e),
|
|
500
|
-
onGenerateCsv: Ie,
|
|
501
|
-
onGenerateImage: r(Te),
|
|
502
|
-
onToggleTable: Le,
|
|
503
|
-
onToggleTooltip: Re,
|
|
504
|
-
onToggleAnnotator: le,
|
|
505
|
-
style: j({
|
|
506
|
-
visibility: r(ke) ? r(K) ? "visible" : "hidden" : "visible"
|
|
507
|
-
})
|
|
508
|
-
}, mt({ _: 2 }, [
|
|
509
|
-
t.$slots.menuIcon ? {
|
|
510
|
-
name: "menuIcon",
|
|
511
|
-
fn: y(({ isOpen: o, color: l }) => [
|
|
512
|
-
h(t.$slots, "menuIcon", M(V({ isOpen: o, color: l })), void 0, !0)
|
|
513
|
-
]),
|
|
514
|
-
key: "0"
|
|
515
|
-
} : void 0,
|
|
516
|
-
t.$slots.optionTooltip ? {
|
|
517
|
-
name: "optionTooltip",
|
|
518
|
-
fn: y(() => [
|
|
519
|
-
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
520
|
-
]),
|
|
521
|
-
key: "1"
|
|
522
|
-
} : void 0,
|
|
523
|
-
t.$slots.optionPdf ? {
|
|
524
|
-
name: "optionPdf",
|
|
525
|
-
fn: y(() => [
|
|
526
|
-
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
527
|
-
]),
|
|
528
|
-
key: "2"
|
|
529
|
-
} : void 0,
|
|
530
|
-
t.$slots.optionCsv ? {
|
|
531
|
-
name: "optionCsv",
|
|
532
|
-
fn: y(() => [
|
|
533
|
-
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
534
|
-
]),
|
|
535
|
-
key: "3"
|
|
536
|
-
} : void 0,
|
|
537
|
-
t.$slots.optionImg ? {
|
|
538
|
-
name: "optionImg",
|
|
539
|
-
fn: y(() => [
|
|
540
|
-
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
541
|
-
]),
|
|
542
|
-
key: "4"
|
|
543
|
-
} : void 0,
|
|
544
|
-
t.$slots.optionTable ? {
|
|
545
|
-
name: "optionTable",
|
|
546
|
-
fn: y(() => [
|
|
547
|
-
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
548
|
-
]),
|
|
549
|
-
key: "5"
|
|
550
|
-
} : void 0,
|
|
551
|
-
t.$slots.optionFullscreen ? {
|
|
552
|
-
name: "optionFullscreen",
|
|
553
|
-
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
554
|
-
h(t.$slots, "optionFullscreen", M(V({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
555
|
-
]),
|
|
556
|
-
key: "6"
|
|
557
|
-
} : void 0,
|
|
558
|
-
t.$slots.optionAnnotator ? {
|
|
559
|
-
name: "optionAnnotator",
|
|
560
|
-
fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
561
|
-
h(t.$slots, "optionAnnotator", M(V({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
562
|
-
]),
|
|
563
|
-
key: "7"
|
|
564
|
-
} : void 0
|
|
565
|
-
]), 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),
|
|
566
|
-
(s(), u("svg", {
|
|
567
|
-
ref_key: "svgRef",
|
|
568
|
-
ref: Q,
|
|
569
|
-
xmlns: r(St),
|
|
570
|
-
class: D({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
571
|
-
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
572
|
-
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
573
|
-
}, [
|
|
574
|
-
ne(r(Qe)),
|
|
575
|
-
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
576
|
-
key: 0,
|
|
577
|
-
x: 0,
|
|
578
|
-
y: 0,
|
|
579
|
-
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
580
|
-
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
581
|
-
style: {
|
|
582
|
-
pointerEvents: "none"
|
|
583
|
-
}
|
|
584
|
-
}, [
|
|
585
|
-
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
586
|
-
], 8, Jt)) : d("", !0),
|
|
587
|
-
A("defs", null, [
|
|
588
|
-
(s(!0), u(F, null, O(g.value, (o, l) => (s(), u("radialGradient", {
|
|
589
|
-
cx: "50%",
|
|
590
|
-
cy: "50%",
|
|
591
|
-
r: "50%",
|
|
592
|
-
fx: "50%",
|
|
593
|
-
fy: "50%",
|
|
594
|
-
id: `radar_gradient_${m.value}_${l}`
|
|
595
|
-
}, [
|
|
596
|
-
A("stop", {
|
|
597
|
-
offset: "0%",
|
|
598
|
-
"stop-color": r(re)(r(Ft)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
599
|
-
}, null, 8, Qt),
|
|
600
|
-
A("stop", {
|
|
601
|
-
offset: "100%",
|
|
602
|
-
"stop-color": r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
603
|
-
}, null, 8, Zt)
|
|
604
|
-
], 8, Kt))), 256))
|
|
605
|
-
]),
|
|
606
|
-
e.value.style.chart.layout.grid.show ? (s(), u("g", ea, [
|
|
607
|
-
(s(!0), u(F, null, O($.value, (o) => (s(), u("line", {
|
|
608
|
-
x1: i.value.width / 2,
|
|
609
|
-
y1: i.value.height / 2,
|
|
610
|
-
x2: o.x,
|
|
611
|
-
y2: o.y,
|
|
612
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
613
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
614
|
-
}, null, 8, ta))), 256)),
|
|
615
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (s(), u("g", aa, [
|
|
616
|
-
(s(!0), u(F, null, O(nt.value, (o) => (s(), u("path", {
|
|
617
|
-
d: r(Ue)({
|
|
618
|
-
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
619
|
-
radius: o,
|
|
620
|
-
sides: Se.value,
|
|
621
|
-
rotation: 0
|
|
622
|
-
}).path,
|
|
623
|
-
fill: "none",
|
|
624
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
625
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
626
|
-
}, null, 8, oa))), 256))
|
|
627
|
-
])) : d("", !0)
|
|
628
|
-
])) : d("", !0),
|
|
629
|
-
A("path", {
|
|
630
|
-
d: Fe.value.path,
|
|
631
|
-
fill: "none",
|
|
632
|
-
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
633
|
-
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
634
|
-
"stroke-linejoin": "round",
|
|
635
|
-
"stroke-linecap": "round"
|
|
636
|
-
}, null, 8, la),
|
|
637
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (s(), u("g", sa, [
|
|
638
|
-
(s(!0), u(F, null, O($.value, (o, l) => (s(), u("text", {
|
|
639
|
-
class: "vue-ui-radar-apex-label",
|
|
640
|
-
x: o.labelX,
|
|
641
|
-
y: o.labelY,
|
|
642
|
-
"text-anchor": o.labelAnchor,
|
|
643
|
-
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
644
|
-
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
645
|
-
onMouseenter: (n) => vt(o, l),
|
|
646
|
-
onMouseleave: (n) => ct(o, l),
|
|
647
|
-
onClick: (n) => dt(o, l)
|
|
648
|
-
}, G(o.name), 41, na))), 256))
|
|
649
|
-
])) : d("", !0),
|
|
650
|
-
(s(!0), u(F, null, O(g.value, (o, l) => (s(), u("g", null, [
|
|
651
|
-
A("g", null, [
|
|
652
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
|
|
653
|
-
key: 0,
|
|
654
|
-
points: r(De)($.value.map((n) => n.plots[l]), !1, !0),
|
|
655
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
656
|
-
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
657
|
-
fill: "none",
|
|
658
|
-
class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": R.value && B.value === l && e.value.useCssAnimation })
|
|
659
|
-
}, null, 10, ra)) : d("", !0),
|
|
660
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
|
|
661
|
-
key: 1,
|
|
662
|
-
points: r(De)($.value.map((n) => n.plots[l]), !1, !0),
|
|
663
|
-
stroke: o.color,
|
|
664
|
-
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
665
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${m.value}_${l})` : r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
666
|
-
class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": R.value && B.value === l && e.value.useCssAnimation })
|
|
667
|
-
}, null, 10, ua)) : d("", !0)
|
|
668
|
-
])
|
|
669
|
-
]))), 256)),
|
|
670
|
-
e.value.style.chart.layout.plots.show ? (s(), u("g", ia, [
|
|
671
|
-
(s(!0), u(F, null, O($.value, (o, l) => (s(), u("g", null, [
|
|
672
|
-
(s(!0), u(F, null, O(o.plots, (n, f) => (s(), u("circle", {
|
|
673
|
-
cx: n.x,
|
|
674
|
-
cy: n.y,
|
|
675
|
-
fill: p.value.includes(f) ? "transparent" : g.value[f] ? g.value[f].color : "transparent",
|
|
676
|
-
r: Y.value !== null && Y.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
677
|
-
stroke: p.value.includes(f) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
678
|
-
"stroke-width": 0.5,
|
|
679
|
-
class: D({ "animated-out": p.value.includes(f) && e.value.useCssAnimation, "animated-in": R.value && B.value === f && e.value.useCssAnimation })
|
|
680
|
-
}, null, 10, ca))), 256))
|
|
681
|
-
]))), 256))
|
|
682
|
-
])) : d("", !0),
|
|
683
|
-
h(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
684
|
-
], 14, qt)),
|
|
685
|
-
t.$slots.watermark ? (s(), u("div", da, [
|
|
686
|
-
h(t.$slots, "watermark", M(V({ isPrinting: r(we) || r(_e) })), void 0, !0)
|
|
687
|
-
])) : d("", !0),
|
|
688
|
-
A("div", {
|
|
689
|
-
id: `legend-bottom-${m.value}`
|
|
690
|
-
}, null, 8, va),
|
|
691
|
-
ye.value ? (s(), T(bt, {
|
|
692
|
-
key: 5,
|
|
693
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
694
|
-
}, [
|
|
695
|
-
A("div", {
|
|
696
|
-
ref_key: "chartLegend",
|
|
697
|
-
ref: de
|
|
698
|
-
}, [
|
|
699
|
-
e.value.style.chart.legend.show ? (s(), T(Xt, {
|
|
700
|
-
key: `legend_${fe.value}`,
|
|
701
|
-
legendSet: z.value,
|
|
702
|
-
config: it.value,
|
|
703
|
-
onClickMarker: a[0] || (a[0] = ({ i: o }) => Pe(o))
|
|
704
|
-
}, {
|
|
705
|
-
item: y(({ legend: o, index: l }) => [
|
|
706
|
-
r(me) ? d("", !0) : (s(), u("div", {
|
|
707
|
-
key: 0,
|
|
708
|
-
onClick: (n) => o.segregate(),
|
|
709
|
-
style: j(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
|
|
710
|
-
}, G(o.name) + ": " + G(r(W)({
|
|
711
|
-
v: o.totalProportion * 100,
|
|
712
|
-
s: "%",
|
|
713
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
714
|
-
})), 13, pa))
|
|
715
|
-
]),
|
|
716
|
-
_: 1
|
|
717
|
-
}, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
718
|
-
key: 1,
|
|
719
|
-
legend: z.value
|
|
720
|
-
}, void 0, !0)
|
|
721
|
-
], 512)
|
|
722
|
-
], 8, ["to"])) : d("", !0),
|
|
723
|
-
t.$slots.source ? (s(), u("div", {
|
|
724
|
-
key: 6,
|
|
725
|
-
ref_key: "source",
|
|
726
|
-
ref: ve,
|
|
727
|
-
dir: "auto"
|
|
728
|
-
}, [
|
|
729
|
-
h(t.$slots, "source", {}, void 0, !0)
|
|
730
|
-
], 512)) : d("", !0),
|
|
731
|
-
ne(r(Je), {
|
|
732
|
-
show: b.value.showTooltip && q.value,
|
|
733
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
734
|
-
color: e.value.style.chart.tooltip.color,
|
|
735
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
736
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
737
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
738
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
739
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
740
|
-
position: e.value.style.chart.tooltip.position,
|
|
741
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
742
|
-
parent: w.value,
|
|
743
|
-
content: J.value,
|
|
744
|
-
isFullscreen: E.value,
|
|
745
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
746
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
747
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
748
|
-
}, {
|
|
749
|
-
"tooltip-before": y(() => [
|
|
750
|
-
h(t.$slots, "tooltip-before", M(V({ ...oe.value })), void 0, !0)
|
|
751
|
-
]),
|
|
752
|
-
"tooltip-after": y(() => [
|
|
753
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (s(), u("div", ha, [
|
|
754
|
-
ne(r(Ze), {
|
|
755
|
-
dataset: ae.value,
|
|
756
|
-
config: ot.value,
|
|
757
|
-
backgroundOpacity: 0
|
|
758
|
-
}, null, 8, ["dataset", "config"])
|
|
759
|
-
])),
|
|
760
|
-
h(t.$slots, "tooltip-after", M(V({ ...oe.value })), void 0, !0)
|
|
761
|
-
]),
|
|
762
|
-
_: 3
|
|
763
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
764
|
-
ue.value ? (s(), T(r(qe), {
|
|
765
|
-
key: 7,
|
|
766
|
-
hideDetails: "",
|
|
767
|
-
config: {
|
|
768
|
-
open: b.value.showTable,
|
|
769
|
-
maxHeight: 1e4,
|
|
770
|
-
body: {
|
|
771
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
772
|
-
color: e.value.style.chart.color
|
|
773
|
-
},
|
|
774
|
-
head: {
|
|
775
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
776
|
-
color: e.value.style.chart.color
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
}, {
|
|
780
|
-
content: y(() => [
|
|
781
|
-
(s(), T(r(He), {
|
|
782
|
-
key: `table_${ge.value}`,
|
|
783
|
-
colNames: X.value.colNames,
|
|
784
|
-
head: X.value.head,
|
|
785
|
-
body: X.value.body,
|
|
786
|
-
config: X.value.config,
|
|
787
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
788
|
-
onClose: a[1] || (a[1] = (o) => b.value.showTable = !1)
|
|
789
|
-
}, {
|
|
790
|
-
th: y(({ th: o }) => [
|
|
791
|
-
Ee(G(o.name), 1)
|
|
792
|
-
]),
|
|
793
|
-
td: y(({ td: o }) => [
|
|
794
|
-
Ee(G(o), 1)
|
|
795
|
-
]),
|
|
796
|
-
_: 1
|
|
797
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
798
|
-
]),
|
|
799
|
-
_: 1
|
|
800
|
-
}, 8, ["config"])) : d("", !0),
|
|
801
|
-
r(me) ? (s(), T(Mt, { key: 8 })) : d("", !0)
|
|
802
|
-
], 46, Ht));
|
|
803
|
-
}
|
|
804
|
-
}, Fa = /* @__PURE__ */ Yt(ga, [["__scopeId", "data-v-ae5f591e"]]);
|
|
805
|
-
export {
|
|
806
|
-
Fa as default
|
|
807
|
-
};
|