vue-data-ui 3.1.1 → 3.1.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/dist/{Arrow-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as wt, watch as Ue, shallowRef as Ve, onMounted as _t, onBeforeUnmount as $t, createElementBlock as u, openBlock as n, unref as r, normalizeStyle as J, normalizeClass as X, createBlock as P, createCommentVNode as d, createElementVNode as $, createVNode as K, createSlots as We, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as M, Fragment as F, renderList as I, toDisplayString as E, Teleport as Tt, resolveDynamicComponent as At, mergeProps as Pt, createTextVNode as ve, nextTick as Ge } from "vue";
|
|
2
|
+
import { u as xt, c as Ot, t as St, a as Ft, p as N, b as It, o as Nt, f as U, d as Lt, g as Xe, e as Ye, R as He, h as Rt, k as je, i as Y, X as zt, s as de, x as Dt, S as qe, v as Bt, w as Mt, y as Et, z as Ut } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as Vt, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Gt, B as Xt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Yt } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as Je } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as Ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as qt } from "./useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js";
|
|
10
|
+
import Jt from "./img-DvuphHeJ.js";
|
|
11
|
+
import Kt from "./Title-AGmmsSi_.js";
|
|
12
|
+
import Qt from "./Legend-DLzeDl3-.js";
|
|
13
|
+
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "height"], la = ["id"], na = ["stop-color"], sa = ["stop-color"], ra = { key: 1 }, ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ia = { key: 0 }, ca = ["d", "stroke", "stroke-width"], va = ["d", "stroke", "stroke-width"], da = { key: 2 }, pa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], ha = ["points", "stroke", "stroke-width"], ga = ["points", "stroke", "stroke-width", "fill"], fa = { key: 3 }, ya = ["cx", "cy", "fill", "r", "stroke"], ma = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ba = ["id"], ka = ["onClick"], Ca = {
|
|
18
18
|
key: 0,
|
|
19
19
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
20
|
-
},
|
|
20
|
+
}, wa = {
|
|
21
21
|
__name: "vue-ui-radar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,14 +34,14 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
...
|
|
37
|
+
setup(Ke, { expose: Qe, emit: Ze }) {
|
|
38
|
+
const et = _(() => import("./Tooltip-le0yZk_t.js")), tt = _(() => import("./BaseIcon-BLg8FaQ2.js")), at = _(() => import("./vue-ui-sparkbar-BzxynYoW.js")), ot = _(() => import("./vue-ui-accordion-Cv747Pg6.js")), lt = _(() => import("./DataTable-BRN1-1ob.js")), nt = _(() => import("./PenAndPaper-TgGWddgD.js")), st = _(() => import("./UserOptions-DEFwuQIo.js")), rt = _(() => import("./PackageVersion-Jz9FlNXl.js")), ut = _(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_radar: it } = xt(), x = Ke, pe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Ot()), Q = c(!1), Z = c(""), he = c(0), C = c(null), ge = c(null), fe = c(null), ye = c(null), me = c(null), be = c(0), ke = c(0), Ce = c(0), we = c(!1), V = c(null), ee = c(null), e = c(oe()), { loading: _e, FINAL_DATASET: w } = Gt({
|
|
39
|
+
...wt(x),
|
|
40
40
|
FINAL_CONFIG: e,
|
|
41
|
-
prepareConfig:
|
|
41
|
+
prepareConfig: oe,
|
|
42
42
|
callback: () => {
|
|
43
43
|
Promise.resolve().then(async () => {
|
|
44
|
-
await
|
|
44
|
+
await Ge(), m.value.showTable = e.value.table.show;
|
|
45
45
|
});
|
|
46
46
|
},
|
|
47
47
|
skeletonDataset: {
|
|
@@ -55,7 +55,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
55
55
|
{ name: "_", values: [0.6], target: 1 }
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
skeletonConfig:
|
|
58
|
+
skeletonConfig: St({
|
|
59
59
|
defaultConfig: e.value,
|
|
60
60
|
userConfig: {
|
|
61
61
|
userOptions: { show: !1 },
|
|
@@ -82,62 +82,62 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
})
|
|
85
|
-
}), { userOptionsVisible:
|
|
86
|
-
function
|
|
87
|
-
const t =
|
|
85
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Ht({ config: e.value }), { svgRef: ae } = jt({ config: e.value.style.chart.title });
|
|
86
|
+
function oe() {
|
|
87
|
+
const t = Je({
|
|
88
88
|
userConfig: x.config,
|
|
89
|
-
defaultConfig:
|
|
89
|
+
defaultConfig: it
|
|
90
90
|
});
|
|
91
91
|
return t.theme ? {
|
|
92
|
-
...
|
|
93
|
-
userConfig:
|
|
92
|
+
...Je({
|
|
93
|
+
userConfig: It.vue_ui_radar[t.theme] || x.config,
|
|
94
94
|
defaultConfig: t
|
|
95
95
|
}),
|
|
96
|
-
customPalette:
|
|
96
|
+
customPalette: Ft[t.theme] || N
|
|
97
97
|
} : t;
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
e.value =
|
|
99
|
+
Ue(() => x.config, (t) => {
|
|
100
|
+
e.value = oe(), te.value = !e.value.userOptions.showOnChartHover, Ae(), be.value += 1, ke.value += 1, Ce.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
101
101
|
}, { deep: !0 });
|
|
102
|
-
const T =
|
|
103
|
-
function
|
|
104
|
-
if (
|
|
102
|
+
const T = Ve(null), L = Ve(null), R = v(() => e.value.debug);
|
|
103
|
+
function Ae() {
|
|
104
|
+
if (Nt(x.dataset) && U({
|
|
105
105
|
componentName: "VueUiRadar",
|
|
106
106
|
type: "dataset",
|
|
107
107
|
debug: R.value
|
|
108
108
|
}), e.value.responsive) {
|
|
109
|
-
const t =
|
|
110
|
-
const { width: a, height: o } =
|
|
109
|
+
const t = Vt(() => {
|
|
110
|
+
const { width: a, height: o } = Wt({
|
|
111
111
|
chart: C.value,
|
|
112
|
-
title: e.value.style.chart.title.text ?
|
|
113
|
-
legend: e.value.style.chart.legend.show ?
|
|
114
|
-
source:
|
|
115
|
-
noTitle:
|
|
112
|
+
title: e.value.style.chart.title.text ? ge.value : null,
|
|
113
|
+
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
114
|
+
source: ye.value,
|
|
115
|
+
noTitle: me.value
|
|
116
116
|
});
|
|
117
117
|
requestAnimationFrame(() => {
|
|
118
|
-
i.value.width = a, i.value.height = o,
|
|
118
|
+
i.value.width = a, i.value.height = o, ze();
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
121
|
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect()), T.value = new ResizeObserver(t), L.value = C.value.parentNode, T.value.observe(L.value);
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
ze();
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
_t(() => {
|
|
126
|
+
we.value = !0, Ae();
|
|
127
127
|
}), $t(() => {
|
|
128
128
|
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect());
|
|
129
129
|
});
|
|
130
|
-
const { isPrinting:
|
|
130
|
+
const { isPrinting: Pe, isImaging: xe, generatePdf: Oe, generateImage: Se } = Yt({
|
|
131
131
|
elementId: `vue-ui-radar_${b.value}`,
|
|
132
132
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
133
133
|
options: e.value.userOptions.print
|
|
134
|
-
}),
|
|
134
|
+
}), ct = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = v(() => Lt(e.value.customPalette)), m = c({
|
|
135
135
|
dataLabels: {
|
|
136
136
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
137
137
|
},
|
|
138
138
|
showTable: e.value.table.show,
|
|
139
139
|
showTooltip: e.value.style.chart.tooltip.show
|
|
140
|
-
}),
|
|
140
|
+
}), vt = v(() => ({
|
|
141
141
|
style: {
|
|
142
142
|
backgroundColor: "#FFFFFF00",
|
|
143
143
|
animation: {
|
|
@@ -158,26 +158,26 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
158
158
|
})), i = c({
|
|
159
159
|
height: 312,
|
|
160
160
|
width: 512
|
|
161
|
-
}),
|
|
162
|
-
function
|
|
161
|
+
}), dt = Ze, p = c([]), W = c(null), z = c(!1);
|
|
162
|
+
function Ie(t) {
|
|
163
163
|
z.value = !0, p.value.includes(t) ? (W.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
|
|
164
164
|
z.value = !1, W.value = null;
|
|
165
165
|
}, 500)) : (p.value.push(t), setTimeout(() => {
|
|
166
166
|
z.value = !1;
|
|
167
|
-
}, 500)),
|
|
167
|
+
}, 500)), dt("selectLegend", D.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
|
|
168
168
|
name: a.name,
|
|
169
169
|
color: a.color,
|
|
170
170
|
proportion: a.totalProportion
|
|
171
171
|
})));
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function pt() {
|
|
174
174
|
return D.value.map((t) => ({
|
|
175
175
|
name: t.name,
|
|
176
176
|
color: t.color,
|
|
177
177
|
proportion: t.totalProportion
|
|
178
178
|
}));
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const f = v(() => [null, void 0].includes(w.value.categories) ? (U({
|
|
181
181
|
componentName: "VueUiRadar",
|
|
182
182
|
type: "datasetAttribute",
|
|
183
183
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
@@ -188,7 +188,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
188
188
|
property: "categories",
|
|
189
189
|
debug: R.value
|
|
190
190
|
}) : w.value.categories.forEach((t, a) => {
|
|
191
|
-
|
|
191
|
+
Xe({
|
|
192
192
|
datasetObject: t,
|
|
193
193
|
requiredAttributes: ["name"]
|
|
194
194
|
}).forEach((o) => {
|
|
@@ -206,7 +206,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
206
206
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
207
207
|
debug: R.value
|
|
208
208
|
}) : w.value.series.forEach((t, a) => {
|
|
209
|
-
|
|
209
|
+
Xe({
|
|
210
210
|
datasetObject: t,
|
|
211
211
|
requiredAttributes: ["name", "values", "target"]
|
|
212
212
|
}).forEach((o) => {
|
|
@@ -222,31 +222,31 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
222
222
|
}), w.value.categories.map((t, a) => ({
|
|
223
223
|
name: t.name,
|
|
224
224
|
categoryId: `radar_category_${b.value}_${a}`,
|
|
225
|
-
color:
|
|
225
|
+
color: Ye(t.color) || Fe.value[a] || N[a] || N[a % N.length],
|
|
226
226
|
prefix: t.prefix ?? "",
|
|
227
227
|
suffix: t.suffix ?? ""
|
|
228
228
|
})))), k = v(() => w.value.series.map((t, a) => ({
|
|
229
229
|
...t,
|
|
230
|
-
color:
|
|
230
|
+
color: Ye(t.color) || Fe.value[a] || N[a] || N[a % N.length],
|
|
231
231
|
serieId: `radar_serie_${b.value}_${a}`,
|
|
232
232
|
formatter: t.formatter || null
|
|
233
|
-
}))),
|
|
233
|
+
}))), Ne = v(() => Math.max(...k.value.flatMap((t) => t.values))), Le = v(() => k.value.length), le = v(() => Math.min(i.value.width, i.value.height) / 3), Re = v(() => He({
|
|
234
234
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
235
|
-
radius:
|
|
236
|
-
sides:
|
|
235
|
+
radius: le.value,
|
|
236
|
+
sides: Le.value,
|
|
237
237
|
rotation: 0
|
|
238
|
-
})),
|
|
238
|
+
})), ht = v(() => {
|
|
239
239
|
const t = [];
|
|
240
|
-
for (let a = 0; a <
|
|
240
|
+
for (let a = 0; a < le.value; a += le.value / e.value.style.chart.layout.grid.graduations)
|
|
241
241
|
t.push(a);
|
|
242
242
|
return t;
|
|
243
|
-
}), A = v(() =>
|
|
244
|
-
const o = k.value[a].values.map((l) =>
|
|
243
|
+
}), A = v(() => Re.value.coordinates.map((t, a) => {
|
|
244
|
+
const o = k.value[a].values.map((l) => ft({
|
|
245
245
|
centerX: i.value.width / 2,
|
|
246
246
|
centerY: i.value.height / 2,
|
|
247
247
|
apexX: t.x,
|
|
248
248
|
apexY: t.y,
|
|
249
|
-
proportion: l / (k.value[a].target ||
|
|
249
|
+
proportion: l / (k.value[a].target || Ne.value)
|
|
250
250
|
}));
|
|
251
251
|
return {
|
|
252
252
|
...t,
|
|
@@ -255,41 +255,41 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
255
255
|
};
|
|
256
256
|
}).map((t) => ({
|
|
257
257
|
...t,
|
|
258
|
-
labelX:
|
|
259
|
-
labelY:
|
|
260
|
-
labelAnchor:
|
|
258
|
+
labelX: ne(t).x,
|
|
259
|
+
labelY: ne(t).y,
|
|
260
|
+
labelAnchor: ne(t).anchor
|
|
261
261
|
})));
|
|
262
|
-
function
|
|
262
|
+
function ne({ x: t, y: a }) {
|
|
263
263
|
let o = "middle";
|
|
264
264
|
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 };
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const gt = v({
|
|
267
267
|
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
268
268
|
set: (t) => t
|
|
269
|
-
}), { autoSizeLabels:
|
|
270
|
-
svgRef:
|
|
269
|
+
}), { autoSizeLabels: ze } = qt({
|
|
270
|
+
svgRef: ae,
|
|
271
271
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
272
272
|
minFontSize: 6,
|
|
273
|
-
sizeRef:
|
|
273
|
+
sizeRef: gt,
|
|
274
274
|
labelClass: ".vue-ui-radar-apex-label"
|
|
275
275
|
});
|
|
276
|
-
function
|
|
276
|
+
function ft({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
277
277
|
return {
|
|
278
278
|
x: t + (o - t) * s,
|
|
279
279
|
y: a + (l - a) * s
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
const D = v(() => {
|
|
283
|
-
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
284
|
-
return
|
|
283
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ne.value)));
|
|
284
|
+
return f.value.map((a, o) => ({
|
|
285
285
|
...a,
|
|
286
|
-
totalProportion:
|
|
286
|
+
totalProportion: Rt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
|
|
287
287
|
shape: "circle",
|
|
288
288
|
opacity: p.value.includes(o) ? 0.5 : 1,
|
|
289
|
-
segregate: () =>
|
|
289
|
+
segregate: () => Ie(o),
|
|
290
290
|
isSegregated: p.value.includes(o)
|
|
291
291
|
}));
|
|
292
|
-
}),
|
|
292
|
+
}), yt = v(() => ({
|
|
293
293
|
cy: "radar-div-legend",
|
|
294
294
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
295
295
|
color: e.value.style.chart.legend.color,
|
|
@@ -303,7 +303,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
303
303
|
...D.value
|
|
304
304
|
], a = w.value.series.map((l) => [
|
|
305
305
|
l.name,
|
|
306
|
-
|
|
306
|
+
je(
|
|
307
307
|
l.formatter,
|
|
308
308
|
l.target,
|
|
309
309
|
Y({
|
|
@@ -313,10 +313,10 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
313
313
|
r: e.value.table.td.roundingValue
|
|
314
314
|
})
|
|
315
315
|
),
|
|
316
|
-
...l.values.map((s,
|
|
316
|
+
...l.values.map((s, y) => `${je(
|
|
317
317
|
l.formatter,
|
|
318
318
|
s,
|
|
319
|
-
Y({ p:
|
|
319
|
+
Y({ p: f.value[y].prefix, v: s, s: f.value[y].suffix, r: e.value.table.td.roundingValue })
|
|
320
320
|
)} (${isNaN(s / l.target) ? "" : Y({
|
|
321
321
|
v: s / l.target * 100,
|
|
322
322
|
s: "%",
|
|
@@ -336,83 +336,83 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
336
336
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
337
337
|
};
|
|
338
338
|
return { head: t, body: a, config: o, colNames: t };
|
|
339
|
-
}), j = c(null),
|
|
340
|
-
function
|
|
339
|
+
}), j = c(null), se = c([]), re = c(null);
|
|
340
|
+
function mt(t, a) {
|
|
341
341
|
Q.value = !1, j.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function bt(t, a) {
|
|
344
344
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
346
|
+
function kt(t, a) {
|
|
347
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), se.value = [], j.value = a, Q.value = !0;
|
|
348
348
|
let o = "";
|
|
349
|
-
|
|
349
|
+
re.value = {
|
|
350
350
|
datapoint: t,
|
|
351
351
|
seriesIndex: a,
|
|
352
352
|
series: {
|
|
353
|
-
categories:
|
|
353
|
+
categories: f.value,
|
|
354
354
|
datapoints: k.value,
|
|
355
355
|
radar: A.value
|
|
356
356
|
},
|
|
357
357
|
config: e.value
|
|
358
358
|
};
|
|
359
359
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
360
|
-
if (
|
|
360
|
+
if (Et(l) && Ut(() => l({
|
|
361
361
|
seriesIndex: a,
|
|
362
362
|
datapoint: t,
|
|
363
|
-
series: { categories:
|
|
363
|
+
series: { categories: f.value, datapoints: k.value, radar: A.value },
|
|
364
364
|
config: e.value
|
|
365
365
|
})))
|
|
366
366
|
Z.value = l({
|
|
367
367
|
seriesIndex: a,
|
|
368
368
|
datapoint: t,
|
|
369
|
-
series: { categories:
|
|
369
|
+
series: { categories: f.value, datapoints: k.value, radar: A.value },
|
|
370
370
|
config: e.value
|
|
371
371
|
});
|
|
372
372
|
else {
|
|
373
373
|
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>`;
|
|
374
374
|
for (let s = 0; s < t.values.length; s += 1)
|
|
375
|
-
p.value.includes(s) ||
|
|
376
|
-
name:
|
|
375
|
+
p.value.includes(s) || se.value.push({
|
|
376
|
+
name: f.value[s].name,
|
|
377
377
|
value: t.values[s] / t.target * 100,
|
|
378
|
-
color:
|
|
378
|
+
color: f.value[s].color,
|
|
379
379
|
suffix: "%)",
|
|
380
|
-
prefix: `${Y({ p:
|
|
380
|
+
prefix: `${Y({ p: f.value[s].prefix ?? "", v: t.values[s], s: f.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
381
381
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
382
382
|
formatter: t.formatter
|
|
383
383
|
});
|
|
384
384
|
Z.value = o;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
|
|
389
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...D.value.flatMap((
|
|
390
|
-
|
|
391
|
-
isNaN(
|
|
392
|
-
])]), s = a.concat([o]).concat(l),
|
|
393
|
-
t ? t(
|
|
387
|
+
function ue(t = null) {
|
|
388
|
+
Ge(() => {
|
|
389
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...D.value.flatMap((S) => [[S.name], ["%"]])], l = w.value.series.map((S, _a) => [S.name, S.target, ...S.values.flatMap((ce) => [
|
|
390
|
+
ce,
|
|
391
|
+
isNaN(ce / S.target) ? "" : ce / S.target * 100
|
|
392
|
+
])]), s = a.concat([o]).concat(l), y = Bt(s);
|
|
393
|
+
t ? t(y) : Mt({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
const
|
|
397
|
-
function
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
function De() {
|
|
401
|
-
f.value.showTable = !f.value.showTable;
|
|
396
|
+
const O = c(!1);
|
|
397
|
+
function De(t) {
|
|
398
|
+
O.value = t, he.value += 1;
|
|
402
399
|
}
|
|
403
400
|
function Be() {
|
|
404
|
-
|
|
401
|
+
m.value.showTable = !m.value.showTable;
|
|
402
|
+
}
|
|
403
|
+
function Me() {
|
|
404
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
405
405
|
}
|
|
406
406
|
const q = c(!1);
|
|
407
|
-
function
|
|
407
|
+
function ie() {
|
|
408
408
|
q.value = !q.value;
|
|
409
409
|
}
|
|
410
|
-
async function
|
|
410
|
+
async function Ct({ scale: t = 2 } = {}) {
|
|
411
411
|
if (!C.value) return;
|
|
412
|
-
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64:
|
|
412
|
+
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: y } = await Jt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
413
413
|
return {
|
|
414
414
|
imageUri: s,
|
|
415
|
-
base64:
|
|
415
|
+
base64: y,
|
|
416
416
|
title: e.value.style.chart.title.text,
|
|
417
417
|
width: a,
|
|
418
418
|
height: o,
|
|
@@ -420,16 +420,16 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
422
|
const G = v(() => {
|
|
423
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
423
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = m.value.showTable;
|
|
424
424
|
return {
|
|
425
|
-
component: t ?
|
|
425
|
+
component: t ? ut : ot,
|
|
426
426
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
427
427
|
props: t ? {
|
|
428
428
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
429
429
|
color: e.value.table.th.color,
|
|
430
430
|
headerColor: e.value.table.th.color,
|
|
431
431
|
headerBg: e.value.table.th.backgroundColor,
|
|
432
|
-
isFullscreen:
|
|
432
|
+
isFullscreen: O.value,
|
|
433
433
|
fullscreenParent: C.value,
|
|
434
434
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
435
435
|
} : {
|
|
@@ -449,50 +449,54 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
});
|
|
452
|
-
|
|
452
|
+
Ue(() => m.value.showTable, (t) => {
|
|
453
453
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
454
|
-
})
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
454
|
+
});
|
|
455
|
+
function Ee() {
|
|
456
|
+
m.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
457
|
+
}
|
|
458
|
+
return Qe({
|
|
459
|
+
getData: pt,
|
|
460
|
+
getImage: Ct,
|
|
461
|
+
generatePdf: Oe,
|
|
462
|
+
generateCsv: ue,
|
|
463
|
+
generateImage: Se,
|
|
464
|
+
toggleTable: Be,
|
|
465
|
+
toggleTooltip: Me,
|
|
466
|
+
toggleAnnotator: ie,
|
|
467
|
+
toggleFullscreen: De
|
|
464
468
|
}), (t, a) => (n(), u("div", {
|
|
465
|
-
class: X(`vue-ui-radar ${
|
|
469
|
+
class: X(`vue-ui-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
466
470
|
ref_key: "radarChart",
|
|
467
471
|
ref: C,
|
|
468
472
|
id: `vue-ui-radar_${b.value}`,
|
|
469
473
|
style: J(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
470
|
-
onMouseenter: a[
|
|
471
|
-
onMouseleave: a[
|
|
474
|
+
onMouseenter: a[2] || (a[2] = () => r($e)(!0)),
|
|
475
|
+
onMouseleave: a[3] || (a[3] = () => r($e)(!1))
|
|
472
476
|
}, [
|
|
473
|
-
e.value.userOptions.buttons.annotator ? (n(), P(r(
|
|
477
|
+
e.value.userOptions.buttons.annotator ? (n(), P(r(nt), {
|
|
474
478
|
key: 0,
|
|
475
|
-
svgRef: r(
|
|
479
|
+
svgRef: r(ae),
|
|
476
480
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
477
481
|
color: e.value.style.chart.color,
|
|
478
482
|
active: q.value,
|
|
479
|
-
onClose:
|
|
483
|
+
onClose: ie
|
|
480
484
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
481
|
-
|
|
485
|
+
ct.value ? (n(), u("div", {
|
|
482
486
|
key: 1,
|
|
483
487
|
ref_key: "noTitle",
|
|
484
|
-
ref:
|
|
488
|
+
ref: me,
|
|
485
489
|
class: "vue-data-ui-no-title-space",
|
|
486
490
|
style: "height:36px; width: 100%;background:transparent"
|
|
487
491
|
}, null, 512)) : d("", !0),
|
|
488
492
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
489
493
|
key: 2,
|
|
490
494
|
ref_key: "chartTitle",
|
|
491
|
-
ref:
|
|
495
|
+
ref: ge,
|
|
492
496
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
493
497
|
}, [
|
|
494
|
-
(n(), P(
|
|
495
|
-
key: `title_${
|
|
498
|
+
(n(), P(Kt, {
|
|
499
|
+
key: `title_${be.value}`,
|
|
496
500
|
config: {
|
|
497
501
|
title: {
|
|
498
502
|
cy: "radar-div-title",
|
|
@@ -505,17 +509,17 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
505
509
|
}
|
|
506
510
|
}, null, 8, ["config"]))
|
|
507
511
|
], 512)) : d("", !0),
|
|
508
|
-
|
|
512
|
+
$("div", {
|
|
509
513
|
id: `legend-top-${b.value}`
|
|
510
|
-
}, null, 8,
|
|
511
|
-
e.value.userOptions.show &&
|
|
512
|
-
ref_key: "
|
|
513
|
-
ref:
|
|
514
|
-
key: `user_options_${
|
|
514
|
+
}, null, 8, ta),
|
|
515
|
+
e.value.userOptions.show && pe.value && (r(Te) || r(te)) ? (n(), P(r(st), {
|
|
516
|
+
ref_key: "userOptionsRef",
|
|
517
|
+
ref: ee,
|
|
518
|
+
key: `user_options_${he.value}`,
|
|
515
519
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
516
520
|
color: e.value.style.chart.color,
|
|
517
|
-
isImaging: r(
|
|
518
|
-
isPrinting: r(
|
|
521
|
+
isImaging: r(xe),
|
|
522
|
+
isPrinting: r(Pe),
|
|
519
523
|
uid: b.value,
|
|
520
524
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
521
525
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -523,8 +527,8 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
523
527
|
hasXls: e.value.userOptions.buttons.csv,
|
|
524
528
|
hasTable: e.value.userOptions.buttons.table,
|
|
525
529
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
526
|
-
isFullscreen:
|
|
527
|
-
isTooltip:
|
|
530
|
+
isFullscreen: O.value,
|
|
531
|
+
isTooltip: m.value.showTooltip,
|
|
528
532
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
529
533
|
chartElement: C.value,
|
|
530
534
|
position: e.value.userOptions.position,
|
|
@@ -532,17 +536,18 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
532
536
|
isAnnotation: q.value,
|
|
533
537
|
callbacks: e.value.userOptions.callbacks,
|
|
534
538
|
printScale: e.value.userOptions.print.scale,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
tableDialog: e.value.table.useDialog,
|
|
540
|
+
onToggleFullscreen: De,
|
|
541
|
+
onGeneratePdf: r(Oe),
|
|
542
|
+
onGenerateCsv: ue,
|
|
543
|
+
onGenerateImage: r(Se),
|
|
544
|
+
onToggleTable: Be,
|
|
545
|
+
onToggleTooltip: Me,
|
|
546
|
+
onToggleAnnotator: ie,
|
|
542
547
|
style: J({
|
|
543
|
-
visibility: r(
|
|
548
|
+
visibility: r(Te) ? r(te) ? "visible" : "hidden" : "visible"
|
|
544
549
|
})
|
|
545
|
-
},
|
|
550
|
+
}, We({ _: 2 }, [
|
|
546
551
|
t.$slots.menuIcon ? {
|
|
547
552
|
name: "menuIcon",
|
|
548
553
|
fn: h(({ isOpen: o, color: l }) => [
|
|
@@ -599,16 +604,16 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
599
604
|
]),
|
|
600
605
|
key: "7"
|
|
601
606
|
} : void 0
|
|
602
|
-
]), 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),
|
|
607
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
603
608
|
(n(), u("svg", {
|
|
604
609
|
ref_key: "svgRef",
|
|
605
|
-
ref:
|
|
606
|
-
xmlns: r(
|
|
607
|
-
class: X({ "vue-data-ui-fullscreen--on":
|
|
610
|
+
ref: ae,
|
|
611
|
+
xmlns: r(zt),
|
|
612
|
+
class: X({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
608
613
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
609
614
|
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
610
615
|
}, [
|
|
611
|
-
K(r(
|
|
616
|
+
K(r(rt)),
|
|
612
617
|
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
613
618
|
key: 0,
|
|
614
619
|
x: 0,
|
|
@@ -620,9 +625,9 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
620
625
|
}
|
|
621
626
|
}, [
|
|
622
627
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
623
|
-
], 8,
|
|
624
|
-
|
|
625
|
-
(n(!0), u(
|
|
628
|
+
], 8, oa)) : d("", !0),
|
|
629
|
+
$("defs", null, [
|
|
630
|
+
(n(!0), u(F, null, I(f.value, (o, l) => (n(), u("radialGradient", {
|
|
626
631
|
cx: "50%",
|
|
627
632
|
cy: "50%",
|
|
628
633
|
r: "50%",
|
|
@@ -630,117 +635,117 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
630
635
|
fy: "50%",
|
|
631
636
|
id: `radar_gradient_${b.value}_${l}`
|
|
632
637
|
}, [
|
|
633
|
-
|
|
638
|
+
$("stop", {
|
|
634
639
|
offset: "0%",
|
|
635
|
-
"stop-color": r(
|
|
636
|
-
}, null, 8,
|
|
637
|
-
|
|
640
|
+
"stop-color": r(de)(r(Dt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
641
|
+
}, null, 8, na),
|
|
642
|
+
$("stop", {
|
|
638
643
|
offset: "100%",
|
|
639
|
-
"stop-color": r(
|
|
640
|
-
}, null, 8,
|
|
641
|
-
], 8,
|
|
644
|
+
"stop-color": r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
645
|
+
}, null, 8, sa)
|
|
646
|
+
], 8, la))), 256))
|
|
642
647
|
]),
|
|
643
|
-
e.value.style.chart.layout.grid.show ? (n(), u("g",
|
|
644
|
-
(n(!0), u(
|
|
648
|
+
e.value.style.chart.layout.grid.show ? (n(), u("g", ra, [
|
|
649
|
+
(n(!0), u(F, null, I(A.value, (o) => (n(), u("line", {
|
|
645
650
|
x1: i.value.width / 2,
|
|
646
651
|
y1: i.value.height / 2,
|
|
647
652
|
x2: o.x,
|
|
648
653
|
y2: o.y,
|
|
649
654
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
650
655
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
651
|
-
}, null, 8,
|
|
652
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (n(), u("g",
|
|
653
|
-
(n(!0), u(
|
|
654
|
-
d: r(
|
|
656
|
+
}, null, 8, ua))), 256)),
|
|
657
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (n(), u("g", ia, [
|
|
658
|
+
(n(!0), u(F, null, I(ht.value, (o) => (n(), u("path", {
|
|
659
|
+
d: r(He)({
|
|
655
660
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
656
661
|
radius: o,
|
|
657
|
-
sides:
|
|
662
|
+
sides: Le.value,
|
|
658
663
|
rotation: 0
|
|
659
664
|
}).path,
|
|
660
665
|
fill: "none",
|
|
661
666
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
662
667
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
663
|
-
}, null, 8,
|
|
668
|
+
}, null, 8, ca))), 256))
|
|
664
669
|
])) : d("", !0)
|
|
665
670
|
])) : d("", !0),
|
|
666
|
-
|
|
667
|
-
d:
|
|
671
|
+
$("path", {
|
|
672
|
+
d: Re.value.path,
|
|
668
673
|
fill: "none",
|
|
669
674
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
670
675
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
671
676
|
"stroke-linejoin": "round",
|
|
672
677
|
"stroke-linecap": "round"
|
|
673
|
-
}, null, 8,
|
|
674
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), u("g",
|
|
675
|
-
(n(!0), u(
|
|
678
|
+
}, null, 8, va),
|
|
679
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), u("g", da, [
|
|
680
|
+
(n(!0), u(F, null, I(A.value, (o, l) => (n(), u("text", {
|
|
676
681
|
class: "vue-ui-radar-apex-label",
|
|
677
682
|
x: o.labelX,
|
|
678
683
|
y: o.labelY,
|
|
679
684
|
"text-anchor": o.labelAnchor,
|
|
680
685
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
681
686
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
682
|
-
onMouseenter: (s) =>
|
|
683
|
-
onMouseleave: (s) =>
|
|
684
|
-
onClick: (s) =>
|
|
685
|
-
}, E(o.name), 41,
|
|
687
|
+
onMouseenter: (s) => kt(o, l),
|
|
688
|
+
onMouseleave: (s) => mt(o, l),
|
|
689
|
+
onClick: (s) => bt(o, l)
|
|
690
|
+
}, E(o.name), 41, pa))), 256))
|
|
686
691
|
])) : d("", !0),
|
|
687
|
-
(n(!0), u(
|
|
688
|
-
|
|
692
|
+
(n(!0), u(F, null, I(f.value, (o, l) => (n(), u("g", null, [
|
|
693
|
+
$("g", null, [
|
|
689
694
|
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
|
|
690
695
|
key: 0,
|
|
691
|
-
points: r(
|
|
696
|
+
points: r(qe)(A.value.map((s) => s.plots[l]), !1, !0),
|
|
692
697
|
stroke: e.value.style.chart.backgroundColor,
|
|
693
698
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
694
699
|
fill: "none",
|
|
695
700
|
class: X({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": z.value && W.value === l && e.value.useCssAnimation })
|
|
696
|
-
}, null, 10,
|
|
701
|
+
}, null, 10, ha)) : d("", !0),
|
|
697
702
|
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
|
|
698
703
|
key: 1,
|
|
699
|
-
points: r(
|
|
704
|
+
points: r(qe)(A.value.map((s) => s.plots[l]), !1, !0),
|
|
700
705
|
stroke: o.color,
|
|
701
706
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
702
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : r(
|
|
707
|
+
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),
|
|
703
708
|
class: X({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": z.value && W.value === l && e.value.useCssAnimation })
|
|
704
|
-
}, null, 10,
|
|
709
|
+
}, null, 10, ga)) : d("", !0)
|
|
705
710
|
])
|
|
706
711
|
]))), 256)),
|
|
707
|
-
e.value.style.chart.layout.plots.show ? (n(), u("g",
|
|
708
|
-
(n(!0), u(
|
|
709
|
-
(n(!0), u(
|
|
712
|
+
e.value.style.chart.layout.plots.show ? (n(), u("g", fa, [
|
|
713
|
+
(n(!0), u(F, null, I(A.value, (o, l) => (n(), u("g", null, [
|
|
714
|
+
(n(!0), u(F, null, I(o.plots, (s, y) => (n(), u("circle", {
|
|
710
715
|
cx: s.x,
|
|
711
716
|
cy: s.y,
|
|
712
|
-
fill: p.value.includes(
|
|
717
|
+
fill: p.value.includes(y) ? "transparent" : f.value[y] ? f.value[y].color : "transparent",
|
|
713
718
|
r: j.value !== null && j.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
714
|
-
stroke: p.value.includes(
|
|
719
|
+
stroke: p.value.includes(y) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
715
720
|
"stroke-width": 0.5,
|
|
716
|
-
class: X({ "animated-out": p.value.includes(
|
|
717
|
-
}, null, 10,
|
|
721
|
+
class: X({ "animated-out": p.value.includes(y) && e.value.useCssAnimation, "animated-in": z.value && W.value === y && e.value.useCssAnimation })
|
|
722
|
+
}, null, 10, ya))), 256))
|
|
718
723
|
]))), 256))
|
|
719
724
|
])) : d("", !0),
|
|
720
725
|
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
721
|
-
], 14,
|
|
722
|
-
t.$slots.watermark ? (n(), u("div",
|
|
723
|
-
g(t.$slots, "watermark", B(M({ isPrinting: r(
|
|
726
|
+
], 14, aa)),
|
|
727
|
+
t.$slots.watermark ? (n(), u("div", ma, [
|
|
728
|
+
g(t.$slots, "watermark", B(M({ isPrinting: r(Pe) || r(xe) })), void 0, !0)
|
|
724
729
|
])) : d("", !0),
|
|
725
|
-
|
|
730
|
+
$("div", {
|
|
726
731
|
id: `legend-bottom-${b.value}`
|
|
727
|
-
}, null, 8,
|
|
728
|
-
|
|
732
|
+
}, null, 8, ba),
|
|
733
|
+
we.value ? (n(), P(Tt, {
|
|
729
734
|
key: 5,
|
|
730
735
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
731
736
|
}, [
|
|
732
|
-
|
|
737
|
+
$("div", {
|
|
733
738
|
ref_key: "chartLegend",
|
|
734
|
-
ref:
|
|
739
|
+
ref: fe
|
|
735
740
|
}, [
|
|
736
|
-
e.value.style.chart.legend.show ? (n(), P(
|
|
737
|
-
key: `legend_${
|
|
741
|
+
e.value.style.chart.legend.show ? (n(), P(Qt, {
|
|
742
|
+
key: `legend_${Ce.value}`,
|
|
738
743
|
legendSet: D.value,
|
|
739
|
-
config:
|
|
740
|
-
onClickMarker: a[0] || (a[0] = ({ i: o }) =>
|
|
744
|
+
config: yt.value,
|
|
745
|
+
onClickMarker: a[0] || (a[0] = ({ i: o }) => Ie(o))
|
|
741
746
|
}, {
|
|
742
747
|
item: h(({ legend: o, index: l }) => [
|
|
743
|
-
r(
|
|
748
|
+
r(_e) ? d("", !0) : (n(), u("div", {
|
|
744
749
|
key: 0,
|
|
745
750
|
onClick: (s) => o.segregate(),
|
|
746
751
|
style: J(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
|
|
@@ -748,7 +753,7 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
748
753
|
v: o.totalProportion * 100,
|
|
749
754
|
s: "%",
|
|
750
755
|
r: e.value.style.chart.legend.roundingPercentage
|
|
751
|
-
})), 13,
|
|
756
|
+
})), 13, ka))
|
|
752
757
|
]),
|
|
753
758
|
_: 1
|
|
754
759
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
@@ -760,13 +765,13 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
760
765
|
t.$slots.source ? (n(), u("div", {
|
|
761
766
|
key: 6,
|
|
762
767
|
ref_key: "source",
|
|
763
|
-
ref:
|
|
768
|
+
ref: ye,
|
|
764
769
|
dir: "auto"
|
|
765
770
|
}, [
|
|
766
771
|
g(t.$slots, "source", {}, void 0, !0)
|
|
767
772
|
], 512)) : d("", !0),
|
|
768
|
-
K(r(
|
|
769
|
-
show:
|
|
773
|
+
K(r(et), {
|
|
774
|
+
show: m.value.showTooltip && Q.value,
|
|
770
775
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
771
776
|
color: e.value.style.chart.tooltip.color,
|
|
772
777
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -778,47 +783,47 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
778
783
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
779
784
|
parent: C.value,
|
|
780
785
|
content: Z.value,
|
|
781
|
-
isFullscreen:
|
|
786
|
+
isFullscreen: O.value,
|
|
782
787
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
783
788
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
784
789
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
785
790
|
}, {
|
|
786
791
|
"tooltip-before": h(() => [
|
|
787
|
-
g(t.$slots, "tooltip-before", B(M({ ...
|
|
792
|
+
g(t.$slots, "tooltip-before", B(M({ ...re.value })), void 0, !0)
|
|
788
793
|
]),
|
|
789
794
|
"tooltip-after": h(() => [
|
|
790
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (n(), u("div",
|
|
791
|
-
K(r(
|
|
792
|
-
dataset:
|
|
793
|
-
config:
|
|
795
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (n(), u("div", Ca, [
|
|
796
|
+
K(r(at), {
|
|
797
|
+
dataset: se.value,
|
|
798
|
+
config: vt.value,
|
|
794
799
|
backgroundOpacity: 0
|
|
795
800
|
}, null, 8, ["dataset", "config"])
|
|
796
801
|
])),
|
|
797
|
-
g(t.$slots, "tooltip-after", B(M({ ...
|
|
802
|
+
g(t.$slots, "tooltip-after", B(M({ ...re.value })), void 0, !0)
|
|
798
803
|
]),
|
|
799
804
|
_: 3
|
|
800
805
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
801
|
-
|
|
806
|
+
pe.value ? (n(), P(At(G.value.component), Pt({ key: 7 }, G.value.props, {
|
|
802
807
|
ref_key: "tableUnit",
|
|
803
808
|
ref: V,
|
|
804
|
-
onClose:
|
|
805
|
-
}),
|
|
809
|
+
onClose: Ee
|
|
810
|
+
}), We({
|
|
806
811
|
content: h(() => [
|
|
807
|
-
(n(), P(r(
|
|
808
|
-
key: `table_${
|
|
812
|
+
(n(), P(r(lt), {
|
|
813
|
+
key: `table_${ke.value}`,
|
|
809
814
|
colNames: H.value.colNames,
|
|
810
815
|
head: H.value.head,
|
|
811
816
|
body: H.value.body,
|
|
812
817
|
config: H.value.config,
|
|
813
818
|
title: e.value.table.useDialog ? "" : G.value.title,
|
|
814
819
|
withCloseButton: !e.value.table.useDialog,
|
|
815
|
-
onClose:
|
|
820
|
+
onClose: Ee
|
|
816
821
|
}, {
|
|
817
822
|
th: h(({ th: o }) => [
|
|
818
|
-
|
|
823
|
+
ve(E(o.name), 1)
|
|
819
824
|
]),
|
|
820
825
|
td: h(({ td: o }) => [
|
|
821
|
-
|
|
826
|
+
ve(E(o), 1)
|
|
822
827
|
]),
|
|
823
828
|
_: 1
|
|
824
829
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -828,19 +833,19 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
828
833
|
e.value.table.useDialog ? {
|
|
829
834
|
name: "title",
|
|
830
835
|
fn: h(() => [
|
|
831
|
-
|
|
836
|
+
ve(E(G.value.title), 1)
|
|
832
837
|
]),
|
|
833
838
|
key: "0"
|
|
834
839
|
} : void 0,
|
|
835
840
|
e.value.table.useDialog ? {
|
|
836
841
|
name: "actions",
|
|
837
842
|
fn: h(() => [
|
|
838
|
-
|
|
843
|
+
$("button", {
|
|
839
844
|
tabindex: "0",
|
|
840
845
|
class: "vue-ui-user-options-button",
|
|
841
|
-
onClick: a[1] || (a[1] = (o) =>
|
|
846
|
+
onClick: a[1] || (a[1] = (o) => ue(e.value.userOptions.callbacks.csv))
|
|
842
847
|
}, [
|
|
843
|
-
K(r(
|
|
848
|
+
K(r(tt), {
|
|
844
849
|
name: "excel",
|
|
845
850
|
stroke: G.value.props.color
|
|
846
851
|
}, null, 8, ["stroke"])
|
|
@@ -849,10 +854,10 @@ const Zt = ["id"], ea = ["id"], ta = ["xmlns", "viewBox"], aa = ["width", "heigh
|
|
|
849
854
|
key: "1"
|
|
850
855
|
} : void 0
|
|
851
856
|
]), 1040)) : d("", !0),
|
|
852
|
-
r(
|
|
853
|
-
], 46,
|
|
857
|
+
r(_e) ? (n(), P(Xt, { key: 8 })) : d("", !0)
|
|
858
|
+
], 46, ea));
|
|
854
859
|
}
|
|
855
|
-
},
|
|
860
|
+
}, Da = /* @__PURE__ */ Zt(wa, [["__scopeId", "data-v-4ce66d0d"]]);
|
|
856
861
|
export {
|
|
857
|
-
|
|
862
|
+
Da as default
|
|
858
863
|
};
|