vue-data-ui 2.12.6 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { u as Ie } from "./useNestedProp-v7KPpwuP.js";
|
|
13
|
-
import { _ as _t } from "./PackageVersion-BjrblLPQ.js";
|
|
14
|
-
import { _ as $t } from "./PenAndPaper-BkP3J-Ft.js";
|
|
15
|
-
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
|
-
import { u as Pt } from "./useChartAccessibility-BWojgys7.js";
|
|
17
|
-
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["id"], St = ["stop-color"], It = ["stop-color"], Rt = { key: 1 }, Lt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], zt = { key: 0 }, Mt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Vt = { key: 2 }, Et = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Bt = ["points", "stroke", "stroke-width"], Dt = ["points", "stroke", "stroke-width", "fill"], Gt = { key: 3 }, Wt = ["cx", "cy", "fill", "r", "stroke"], Xt = {
|
|
1
|
+
import { defineAsyncComponent as $, computed as h, ref as c, watch as rt, shallowRef as Oe, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as j, normalizeClass as E, createBlock as T, createCommentVNode as d, createElementVNode as P, createVNode as ae, createSlots as ut, withCtx as y, renderSlot as f, normalizeProps as R, guardReactiveProps as L, Fragment as x, renderList as A, toDisplayString as B, createTextVNode as Fe, nextTick as it } from "vue";
|
|
2
|
+
import { u as ct, c as dt, t as vt, p as O, a as pt, o as ht, e as z, b as gt, g as Ne, d as Se, Q as Ie, v as ft, i as Re, f as D, X as yt, s as oe, w as mt, R as Le, q as bt, r as kt, x as Ct, y as wt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as $t, u as _t } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as ze } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as Tt } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import At from "./Legend-DFunFf8i.js";
|
|
9
|
+
import Ot from "./Title-B5qqUI3M.js";
|
|
10
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Nt = ["id"], St = ["xmlns", "viewBox"], It = ["width", "height"], Rt = ["id"], Lt = ["stop-color"], zt = ["stop-color"], Mt = { key: 1 }, Vt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = { key: 0 }, Et = ["d", "stroke", "stroke-width"], Bt = ["d", "stroke", "stroke-width"], Dt = { key: 2 }, Gt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Wt = ["points", "stroke", "stroke-width"], Xt = ["points", "stroke", "stroke-width", "fill"], jt = { key: 3 }, qt = ["cx", "cy", "fill", "r", "stroke"], Ht = {
|
|
19
12
|
key: 5,
|
|
20
13
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
14
|
+
}, Yt = ["onClick"], Qt = {
|
|
22
15
|
key: 0,
|
|
23
16
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
24
|
-
},
|
|
17
|
+
}, Jt = {
|
|
25
18
|
__name: "vue-ui-radar",
|
|
26
19
|
props: {
|
|
27
20
|
config: {
|
|
@@ -38,64 +31,64 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
38
31
|
}
|
|
39
32
|
},
|
|
40
33
|
emits: ["selectLegend"],
|
|
41
|
-
setup(
|
|
42
|
-
const { vue_ui_radar:
|
|
43
|
-
get: () =>
|
|
34
|
+
setup(Me, { expose: Ve, emit: Ue }) {
|
|
35
|
+
const Ee = $(() => import("./DataTable-Cv9CIz-a.js")), Be = $(() => import("./PenAndPaper-B9na2mbr.js")), De = $(() => import("./vue-ui-accordion-CmCs2yR2.js")), Ge = $(() => import("./vue-ui-skeleton-CbYQYRvD.js")), We = $(() => import("./Tooltip-C9rxJ-Ru.js")), Xe = $(() => import("./UserOptions-Ddy6CuLC.js")), je = $(() => import("./PackageVersion-CLY-udAA.js")), qe = $(() => import("./vue-ui-sparkbar-ChtFIugH.js")), { vue_ui_radar: He } = ct(), g = Me, M = h(() => !!g.dataset && Object.keys(g.dataset).length), _ = c(dt()), Ye = c(null), q = c(!1), H = c(""), le = c(0), V = c(null), re = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(0), ce = c(0), de = c(0), e = h({
|
|
36
|
+
get: () => ge(),
|
|
44
37
|
set: (t) => t
|
|
45
|
-
}), { userOptionsVisible:
|
|
46
|
-
function
|
|
47
|
-
const t =
|
|
38
|
+
}), { userOptionsVisible: Y, setUserOptionsVisibility: ve, keepUserOptionState: pe } = Pt({ config: e.value }), { svgRef: he } = xt({ config: e.value.style.chart.title });
|
|
39
|
+
function ge() {
|
|
40
|
+
const t = ze({
|
|
48
41
|
userConfig: g.config,
|
|
49
|
-
defaultConfig:
|
|
42
|
+
defaultConfig: He
|
|
50
43
|
});
|
|
51
44
|
return t.theme ? {
|
|
52
|
-
...
|
|
53
|
-
userConfig:
|
|
45
|
+
...ze({
|
|
46
|
+
userConfig: pt.vue_ui_radar[t.theme] || g.config,
|
|
54
47
|
defaultConfig: t
|
|
55
48
|
}),
|
|
56
|
-
customPalette:
|
|
49
|
+
customPalette: vt[t.theme] || O
|
|
57
50
|
} : t;
|
|
58
51
|
}
|
|
59
|
-
|
|
60
|
-
e.value =
|
|
52
|
+
rt(() => g.config, (t) => {
|
|
53
|
+
e.value = ge(), Y.value = !e.value.userOptions.showOnChartHover, fe(), ie.value += 1, ce.value += 1, de.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tootlip ? e.value.style.chart.tootlip.show : !1;
|
|
61
54
|
}, { deep: !0 });
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
55
|
+
const C = Oe(null), F = Oe(null);
|
|
56
|
+
function fe() {
|
|
57
|
+
if (ht(g.dataset) && z({
|
|
65
58
|
componentName: "VueUiRadar",
|
|
66
59
|
type: "dataset"
|
|
67
60
|
}), e.value.responsive) {
|
|
68
|
-
const t =
|
|
69
|
-
const { width: a, height: o } =
|
|
70
|
-
chart:
|
|
71
|
-
title: e.value.style.chart.title.text ?
|
|
72
|
-
legend: e.value.style.chart.legend.show ?
|
|
73
|
-
source:
|
|
74
|
-
noTitle:
|
|
61
|
+
const t = $t(() => {
|
|
62
|
+
const { width: a, height: o } = _t({
|
|
63
|
+
chart: V.value,
|
|
64
|
+
title: e.value.style.chart.title.text ? re.value : null,
|
|
65
|
+
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
66
|
+
source: ne.value,
|
|
67
|
+
noTitle: ue.value
|
|
75
68
|
});
|
|
76
69
|
requestAnimationFrame(() => {
|
|
77
|
-
|
|
70
|
+
i.value.width = a, i.value.height = o;
|
|
78
71
|
});
|
|
79
72
|
});
|
|
80
|
-
|
|
73
|
+
C.value && (F.value && C.value.unobserve(F.value), C.value.disconnect()), C.value = new ResizeObserver(t), F.value = V.value.parentNode, C.value.observe(F.value);
|
|
81
74
|
}
|
|
82
75
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}),
|
|
86
|
-
|
|
76
|
+
st(() => {
|
|
77
|
+
fe();
|
|
78
|
+
}), nt(() => {
|
|
79
|
+
C.value && (F.value && C.value.unobserve(F.value), C.value.disconnect());
|
|
87
80
|
});
|
|
88
|
-
const { isPrinting:
|
|
89
|
-
elementId: `vue-ui-radar_${
|
|
81
|
+
const { isPrinting: ye, isImaging: me, generatePdf: be, generateImage: ke } = Tt({
|
|
82
|
+
elementId: `vue-ui-radar_${_.value}`,
|
|
90
83
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
91
84
|
options: e.value.userOptions.print
|
|
92
|
-
}),
|
|
85
|
+
}), Qe = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ce = h(() => gt(e.value.customPalette)), b = c({
|
|
93
86
|
dataLabels: {
|
|
94
87
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
95
88
|
},
|
|
96
89
|
showTable: e.value.table.show,
|
|
97
90
|
showTooltip: e.value.style.chart.tooltip.show
|
|
98
|
-
}),
|
|
91
|
+
}), Je = h(() => ({
|
|
99
92
|
style: {
|
|
100
93
|
backgroundColor: "#FFFFFF00",
|
|
101
94
|
animation: {
|
|
@@ -113,58 +106,58 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
113
106
|
opacity: 30
|
|
114
107
|
}
|
|
115
108
|
}
|
|
116
|
-
})),
|
|
109
|
+
})), i = c({
|
|
117
110
|
height: 312,
|
|
118
111
|
width: 512
|
|
119
|
-
}),
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
|
|
112
|
+
}), Ke = Ue, v = c([]), U = c(null), N = c(!1);
|
|
113
|
+
function we(t) {
|
|
114
|
+
N.value = !0, v.value.includes(t) ? (U.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
|
|
115
|
+
N.value = !1, U.value = null;
|
|
123
116
|
}, 500)) : (v.value.push(t), setTimeout(() => {
|
|
124
|
-
|
|
125
|
-
}, 500)),
|
|
117
|
+
N.value = !1;
|
|
118
|
+
}, 500)), Ke("selectLegend", S.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
|
|
126
119
|
name: a.name,
|
|
127
120
|
color: a.color,
|
|
128
121
|
proportion: a.totalProportion
|
|
129
122
|
})));
|
|
130
123
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
124
|
+
function Ze() {
|
|
125
|
+
return S.value.map((t) => ({
|
|
133
126
|
name: t.name,
|
|
134
127
|
color: t.color,
|
|
135
128
|
proportion: t.totalProportion
|
|
136
129
|
}));
|
|
137
130
|
}
|
|
138
|
-
const m =
|
|
131
|
+
const m = h(() => [null, void 0].includes(g.dataset.categories) ? (z({
|
|
139
132
|
componentName: "VueUiRadar",
|
|
140
133
|
type: "datasetAttribute",
|
|
141
134
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
142
|
-
}), []) : (g.dataset.categories.length === 0 ?
|
|
135
|
+
}), []) : (g.dataset.categories.length === 0 ? z({
|
|
143
136
|
componentName: "VueUiRadar",
|
|
144
137
|
type: "datasetAttributeEmpty",
|
|
145
138
|
property: "categories"
|
|
146
139
|
}) : g.dataset.categories.forEach((t, a) => {
|
|
147
|
-
|
|
140
|
+
Ne({
|
|
148
141
|
datasetObject: t,
|
|
149
142
|
requiredAttributes: ["name"]
|
|
150
143
|
}).forEach((o) => {
|
|
151
|
-
|
|
144
|
+
z({
|
|
152
145
|
componentName: "VueUiRadar",
|
|
153
146
|
type: "datasetAttribute",
|
|
154
147
|
property: `category.${o} at index ${a}`,
|
|
155
148
|
index: a
|
|
156
149
|
});
|
|
157
150
|
});
|
|
158
|
-
}), [null, void 0].includes(g.dataset.series) ?
|
|
151
|
+
}), [null, void 0].includes(g.dataset.series) ? z({
|
|
159
152
|
componentName: "VueUiRadar",
|
|
160
153
|
type: "datasetAttribute",
|
|
161
154
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
162
155
|
}) : g.dataset.series.forEach((t, a) => {
|
|
163
|
-
|
|
156
|
+
Ne({
|
|
164
157
|
datasetObject: t,
|
|
165
158
|
requiredAttributes: ["name", "values", "target"]
|
|
166
159
|
}).forEach((o) => {
|
|
167
|
-
|
|
160
|
+
z({
|
|
168
161
|
componentName: "VueUiRadar",
|
|
169
162
|
type: "datasetSerieAttribute",
|
|
170
163
|
key: "series",
|
|
@@ -174,32 +167,32 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
174
167
|
});
|
|
175
168
|
}), g.dataset.categories.map((t, a) => ({
|
|
176
169
|
name: t.name,
|
|
177
|
-
categoryId: `radar_category_${
|
|
178
|
-
color:
|
|
170
|
+
categoryId: `radar_category_${_.value}_${a}`,
|
|
171
|
+
color: Se(t.color) || Ce.value[a] || O[a] || O[a % O.length],
|
|
179
172
|
prefix: t.prefix ?? "",
|
|
180
173
|
suffix: t.suffix ?? ""
|
|
181
|
-
})))), k =
|
|
174
|
+
})))), k = h(() => M.value ? g.dataset.series.map((t, a) => ({
|
|
182
175
|
...t,
|
|
183
|
-
color:
|
|
184
|
-
serieId: `radar_serie_${
|
|
176
|
+
color: Se(t.color) || Ce.value[a] || O[a] || O[a % O.length],
|
|
177
|
+
serieId: `radar_serie_${_.value}_${a}`,
|
|
185
178
|
formatter: t.formatter || null
|
|
186
|
-
})) : []),
|
|
187
|
-
plot: { x:
|
|
188
|
-
radius:
|
|
189
|
-
sides:
|
|
179
|
+
})) : []), $e = h(() => Math.max(...k.value.flatMap((t) => t.values))), _e = h(() => k.value.length), Q = h(() => Math.min(i.value.width, i.value.height) / 3), Te = h(() => Ie({
|
|
180
|
+
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
181
|
+
radius: Q.value,
|
|
182
|
+
sides: _e.value,
|
|
190
183
|
rotation: 0
|
|
191
|
-
})),
|
|
184
|
+
})), et = h(() => {
|
|
192
185
|
const t = [];
|
|
193
|
-
for (let a = 0; a <
|
|
186
|
+
for (let a = 0; a < Q.value; a += Q.value / e.value.style.chart.layout.grid.graduations)
|
|
194
187
|
t.push(a);
|
|
195
188
|
return t;
|
|
196
|
-
}),
|
|
197
|
-
const o = k.value[a].values.map((l) =>
|
|
198
|
-
centerX:
|
|
199
|
-
centerY:
|
|
189
|
+
}), w = h(() => Te.value.coordinates.map((t, a) => {
|
|
190
|
+
const o = k.value[a].values.map((l) => tt({
|
|
191
|
+
centerX: i.value.width / 2,
|
|
192
|
+
centerY: i.value.height / 2,
|
|
200
193
|
apexX: t.x,
|
|
201
194
|
apexY: t.y,
|
|
202
|
-
proportion: l / (k.value[a].target ||
|
|
195
|
+
proportion: l / (k.value[a].target || $e.value)
|
|
203
196
|
}));
|
|
204
197
|
return {
|
|
205
198
|
...t,
|
|
@@ -207,55 +200,55 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
207
200
|
plots: o
|
|
208
201
|
};
|
|
209
202
|
}));
|
|
210
|
-
function
|
|
203
|
+
function J({ x: t, y: a }) {
|
|
211
204
|
let o = "middle";
|
|
212
|
-
return t = Math.round(t), a = Math.round(a), t >
|
|
205
|
+
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 && (a += 20), a < i.value.height / 2 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
213
206
|
}
|
|
214
|
-
function
|
|
207
|
+
function tt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
215
208
|
return {
|
|
216
209
|
x: t + (o - t) * s,
|
|
217
210
|
y: a + (l - a) * s
|
|
218
211
|
};
|
|
219
212
|
}
|
|
220
|
-
const
|
|
221
|
-
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
213
|
+
const S = h(() => {
|
|
214
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || $e.value)));
|
|
222
215
|
return m.value.map((a, o) => ({
|
|
223
216
|
...a,
|
|
224
|
-
totalProportion:
|
|
217
|
+
totalProportion: ft(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
|
|
225
218
|
shape: "circle",
|
|
226
219
|
opacity: v.value.includes(o) ? 0.5 : 1,
|
|
227
|
-
segregate: () =>
|
|
220
|
+
segregate: () => we(o),
|
|
228
221
|
isSegregated: v.value.includes(o)
|
|
229
222
|
}));
|
|
230
|
-
}),
|
|
223
|
+
}), at = h(() => ({
|
|
231
224
|
cy: "radar-div-legend",
|
|
232
225
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
233
226
|
color: e.value.style.chart.legend.color,
|
|
234
227
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
235
228
|
paddingBottom: 12,
|
|
236
229
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
237
|
-
})),
|
|
230
|
+
})), G = h(() => {
|
|
238
231
|
const t = [
|
|
239
232
|
{ name: e.value.translations.datapoint, color: "" },
|
|
240
233
|
{ name: e.value.translations.target, color: "" },
|
|
241
|
-
...
|
|
234
|
+
...S.value
|
|
242
235
|
], a = g.dataset.series.map((l) => [
|
|
243
236
|
l.name,
|
|
244
|
-
|
|
237
|
+
Re(
|
|
245
238
|
l.formatter,
|
|
246
239
|
l.target,
|
|
247
|
-
|
|
240
|
+
D({
|
|
248
241
|
p: l.prefix,
|
|
249
242
|
v: l.target,
|
|
250
243
|
s: l.suffix,
|
|
251
244
|
r: e.value.table.td.roundingValue
|
|
252
245
|
})
|
|
253
246
|
),
|
|
254
|
-
...l.values.map((s,
|
|
247
|
+
...l.values.map((s, p) => `${Re(
|
|
255
248
|
l.formatter,
|
|
256
249
|
s,
|
|
257
|
-
|
|
258
|
-
)} (${isNaN(s / l.target) ? "" :
|
|
250
|
+
D({ p: m.value[p].prefix, v: s, s: m.value[p].suffix, r: e.value.table.td.roundingValue })
|
|
251
|
+
)} (${isNaN(s / l.target) ? "" : D({
|
|
259
252
|
v: s / l.target * 100,
|
|
260
253
|
s: "%",
|
|
261
254
|
r: e.value.table.td.roundingPercentage
|
|
@@ -274,111 +267,111 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
274
267
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
275
268
|
};
|
|
276
269
|
return { head: t, body: a, config: o, colNames: t };
|
|
277
|
-
}),
|
|
278
|
-
function
|
|
279
|
-
|
|
270
|
+
}), W = c(null), K = c([]), Z = c(null);
|
|
271
|
+
function ot(t, a) {
|
|
272
|
+
K.value = [], W.value = a, q.value = !0;
|
|
280
273
|
let o = "";
|
|
281
|
-
|
|
274
|
+
Z.value = {
|
|
282
275
|
datapoint: t,
|
|
283
276
|
seriesIndex: a,
|
|
284
277
|
series: {
|
|
285
278
|
categories: m.value,
|
|
286
279
|
datapoints: k.value,
|
|
287
|
-
radar:
|
|
280
|
+
radar: w.value
|
|
288
281
|
},
|
|
289
282
|
config: e.value
|
|
290
283
|
};
|
|
291
284
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
292
|
-
if (
|
|
285
|
+
if (Ct(l) && wt(() => l({
|
|
293
286
|
seriesIndex: a,
|
|
294
287
|
datapoint: t,
|
|
295
|
-
series: { categories: m.value, datapoints: k.value, radar:
|
|
288
|
+
series: { categories: m.value, datapoints: k.value, radar: w.value },
|
|
296
289
|
config: e.value
|
|
297
290
|
})))
|
|
298
|
-
|
|
291
|
+
H.value = l({
|
|
299
292
|
seriesIndex: a,
|
|
300
293
|
datapoint: t,
|
|
301
|
-
series: { categories: m.value, datapoints: k.value, radar:
|
|
294
|
+
series: { categories: m.value, datapoints: k.value, radar: w.value },
|
|
302
295
|
config: e.value
|
|
303
296
|
});
|
|
304
297
|
else {
|
|
305
298
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
306
299
|
for (let s = 0; s < t.values.length; s += 1)
|
|
307
|
-
v.value.includes(s) ||
|
|
300
|
+
v.value.includes(s) || K.value.push({
|
|
308
301
|
name: m.value[s].name,
|
|
309
302
|
value: t.values[s] / t.target * 100,
|
|
310
303
|
color: m.value[s].color,
|
|
311
304
|
suffix: "%)",
|
|
312
|
-
prefix: `${
|
|
305
|
+
prefix: `${D({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
313
306
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
314
307
|
formatter: t.formatter
|
|
315
308
|
});
|
|
316
|
-
|
|
309
|
+
H.value = o;
|
|
317
310
|
}
|
|
318
311
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
321
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...
|
|
322
|
-
|
|
323
|
-
isNaN(
|
|
324
|
-
])]), l = t.concat([a]).concat(o), s =
|
|
325
|
-
|
|
312
|
+
function Pe() {
|
|
313
|
+
it(() => {
|
|
314
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...S.value.flatMap((p) => [[p.name], ["%"]])], o = g.dataset.series.map((p, Kt) => [p.name, p.target, ...p.values.flatMap((te) => [
|
|
315
|
+
te,
|
|
316
|
+
isNaN(te / p.target) ? "" : te / p.target * 100
|
|
317
|
+
])]), l = t.concat([a]).concat(o), s = bt(l);
|
|
318
|
+
kt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
326
319
|
});
|
|
327
320
|
}
|
|
328
|
-
const
|
|
329
|
-
function
|
|
330
|
-
|
|
321
|
+
const I = c(!1);
|
|
322
|
+
function lt(t) {
|
|
323
|
+
I.value = t, le.value += 1;
|
|
331
324
|
}
|
|
332
|
-
function
|
|
325
|
+
function xe() {
|
|
333
326
|
b.value.showTable = !b.value.showTable;
|
|
334
327
|
}
|
|
335
|
-
function
|
|
328
|
+
function Ae() {
|
|
336
329
|
b.value.showTooltip = !b.value.showTooltip;
|
|
337
330
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
340
|
-
|
|
331
|
+
const X = c(!1);
|
|
332
|
+
function ee() {
|
|
333
|
+
X.value = !X.value;
|
|
341
334
|
}
|
|
342
|
-
return
|
|
343
|
-
getData:
|
|
344
|
-
generatePdf:
|
|
345
|
-
generateCsv:
|
|
346
|
-
generateImage:
|
|
347
|
-
toggleTable:
|
|
348
|
-
toggleTooltip:
|
|
349
|
-
toggleAnnotator:
|
|
350
|
-
}), (t, a) => (r(),
|
|
351
|
-
class:
|
|
335
|
+
return Ve({
|
|
336
|
+
getData: Ze,
|
|
337
|
+
generatePdf: be,
|
|
338
|
+
generateCsv: Pe,
|
|
339
|
+
generateImage: ke,
|
|
340
|
+
toggleTable: xe,
|
|
341
|
+
toggleTooltip: Ae,
|
|
342
|
+
toggleAnnotator: ee
|
|
343
|
+
}), (t, a) => (r(), u("div", {
|
|
344
|
+
class: E(`vue-ui-radar ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
352
345
|
ref_key: "radarChart",
|
|
353
|
-
ref:
|
|
354
|
-
id: `vue-ui-radar_${
|
|
355
|
-
style:
|
|
356
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
357
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
346
|
+
ref: V,
|
|
347
|
+
id: `vue-ui-radar_${_.value}`,
|
|
348
|
+
style: j(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
349
|
+
onMouseenter: a[3] || (a[3] = () => n(ve)(!0)),
|
|
350
|
+
onMouseleave: a[4] || (a[4] = () => n(ve)(!1))
|
|
358
351
|
}, [
|
|
359
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
352
|
+
e.value.userOptions.buttons.annotator ? (r(), T(n(Be), {
|
|
360
353
|
key: 0,
|
|
361
|
-
svgRef:
|
|
354
|
+
svgRef: n(he),
|
|
362
355
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
363
356
|
color: e.value.style.chart.color,
|
|
364
|
-
active:
|
|
365
|
-
onClose:
|
|
357
|
+
active: X.value,
|
|
358
|
+
onClose: ee
|
|
366
359
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
367
|
-
|
|
360
|
+
Qe.value ? (r(), u("div", {
|
|
368
361
|
key: 1,
|
|
369
362
|
ref_key: "noTitle",
|
|
370
|
-
ref:
|
|
363
|
+
ref: ue,
|
|
371
364
|
class: "vue-data-ui-no-title-space",
|
|
372
365
|
style: "height:36px; width: 100%;background:transparent"
|
|
373
366
|
}, null, 512)) : d("", !0),
|
|
374
|
-
e.value.style.chart.title.text ? (r(),
|
|
367
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
375
368
|
key: 2,
|
|
376
369
|
ref_key: "chartTitle",
|
|
377
|
-
ref:
|
|
370
|
+
ref: re,
|
|
378
371
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
379
372
|
}, [
|
|
380
|
-
(r(),
|
|
381
|
-
key: `title_${
|
|
373
|
+
(r(), T(Ot, {
|
|
374
|
+
key: `title_${ie.value}`,
|
|
382
375
|
config: {
|
|
383
376
|
title: {
|
|
384
377
|
cy: "radar-div-title",
|
|
@@ -391,43 +384,43 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
391
384
|
}
|
|
392
385
|
}, null, 8, ["config"]))
|
|
393
386
|
], 512)) : d("", !0),
|
|
394
|
-
e.value.userOptions.show &&
|
|
387
|
+
e.value.userOptions.show && M.value && (n(pe) || n(Y)) ? (r(), T(n(Xe), {
|
|
395
388
|
ref_key: "details",
|
|
396
|
-
ref:
|
|
397
|
-
key: `user_options_${
|
|
389
|
+
ref: Ye,
|
|
390
|
+
key: `user_options_${le.value}`,
|
|
398
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
399
392
|
color: e.value.style.chart.color,
|
|
400
|
-
isImaging:
|
|
401
|
-
isPrinting:
|
|
402
|
-
uid:
|
|
393
|
+
isImaging: n(me),
|
|
394
|
+
isPrinting: n(ye),
|
|
395
|
+
uid: _.value,
|
|
403
396
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
404
397
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
405
398
|
hasImg: e.value.userOptions.buttons.img,
|
|
406
399
|
hasXls: e.value.userOptions.buttons.csv,
|
|
407
400
|
hasTable: e.value.userOptions.buttons.table,
|
|
408
401
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
409
|
-
isFullscreen:
|
|
402
|
+
isFullscreen: I.value,
|
|
410
403
|
isTooltip: b.value.showTooltip,
|
|
411
404
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
412
|
-
chartElement:
|
|
405
|
+
chartElement: V.value,
|
|
413
406
|
position: e.value.userOptions.position,
|
|
414
407
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
415
|
-
isAnnotation:
|
|
416
|
-
onToggleFullscreen:
|
|
417
|
-
onGeneratePdf:
|
|
418
|
-
onGenerateCsv:
|
|
419
|
-
onGenerateImage:
|
|
420
|
-
onToggleTable:
|
|
421
|
-
onToggleTooltip:
|
|
422
|
-
onToggleAnnotator:
|
|
423
|
-
style:
|
|
424
|
-
visibility:
|
|
408
|
+
isAnnotation: X.value,
|
|
409
|
+
onToggleFullscreen: lt,
|
|
410
|
+
onGeneratePdf: n(be),
|
|
411
|
+
onGenerateCsv: Pe,
|
|
412
|
+
onGenerateImage: n(ke),
|
|
413
|
+
onToggleTable: xe,
|
|
414
|
+
onToggleTooltip: Ae,
|
|
415
|
+
onToggleAnnotator: ee,
|
|
416
|
+
style: j({
|
|
417
|
+
visibility: n(pe) ? n(Y) ? "visible" : "hidden" : "visible"
|
|
425
418
|
})
|
|
426
|
-
},
|
|
419
|
+
}, ut({ _: 2 }, [
|
|
427
420
|
t.$slots.menuIcon ? {
|
|
428
421
|
name: "menuIcon",
|
|
429
422
|
fn: y(({ isOpen: o, color: l }) => [
|
|
430
|
-
f(t.$slots, "menuIcon",
|
|
423
|
+
f(t.$slots, "menuIcon", R(L({ isOpen: o, color: l })), void 0, !0)
|
|
431
424
|
]),
|
|
432
425
|
key: "0"
|
|
433
426
|
} : void 0,
|
|
@@ -469,142 +462,142 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
469
462
|
t.$slots.optionFullscreen ? {
|
|
470
463
|
name: "optionFullscreen",
|
|
471
464
|
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
472
|
-
f(t.$slots, "optionFullscreen",
|
|
465
|
+
f(t.$slots, "optionFullscreen", R(L({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
473
466
|
]),
|
|
474
467
|
key: "6"
|
|
475
468
|
} : void 0,
|
|
476
469
|
t.$slots.optionAnnotator ? {
|
|
477
470
|
name: "optionAnnotator",
|
|
478
471
|
fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
479
|
-
f(t.$slots, "optionAnnotator",
|
|
472
|
+
f(t.$slots, "optionAnnotator", R(L({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
480
473
|
]),
|
|
481
474
|
key: "7"
|
|
482
475
|
} : void 0
|
|
483
476
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
484
|
-
|
|
477
|
+
M.value ? (r(), u("svg", {
|
|
485
478
|
key: 4,
|
|
486
479
|
ref_key: "svgRef",
|
|
487
|
-
ref:
|
|
488
|
-
xmlns:
|
|
489
|
-
class:
|
|
490
|
-
viewBox: `0 0 ${
|
|
491
|
-
style:
|
|
480
|
+
ref: he,
|
|
481
|
+
xmlns: n(yt),
|
|
482
|
+
class: E({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
483
|
+
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
484
|
+
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
492
485
|
}, [
|
|
493
|
-
|
|
494
|
-
t.$slots["chart-background"] ? (r(),
|
|
486
|
+
ae(n(je)),
|
|
487
|
+
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
495
488
|
key: 0,
|
|
496
489
|
x: 0,
|
|
497
490
|
y: 0,
|
|
498
|
-
width:
|
|
499
|
-
height:
|
|
491
|
+
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
492
|
+
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
500
493
|
style: {
|
|
501
494
|
pointerEvents: "none"
|
|
502
495
|
}
|
|
503
496
|
}, [
|
|
504
497
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
505
|
-
], 8,
|
|
506
|
-
|
|
507
|
-
(r(!0),
|
|
498
|
+
], 8, It)) : d("", !0),
|
|
499
|
+
P("defs", null, [
|
|
500
|
+
(r(!0), u(x, null, A(m.value, (o, l) => (r(), u("radialGradient", {
|
|
508
501
|
cx: "50%",
|
|
509
502
|
cy: "50%",
|
|
510
503
|
r: "50%",
|
|
511
504
|
fx: "50%",
|
|
512
505
|
fy: "50%",
|
|
513
|
-
id: `radar_gradient_${
|
|
506
|
+
id: `radar_gradient_${_.value}_${l}`
|
|
514
507
|
}, [
|
|
515
|
-
|
|
508
|
+
P("stop", {
|
|
516
509
|
offset: "0%",
|
|
517
|
-
"stop-color":
|
|
518
|
-
}, null, 8,
|
|
519
|
-
|
|
510
|
+
"stop-color": n(oe)(n(mt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
511
|
+
}, null, 8, Lt),
|
|
512
|
+
P("stop", {
|
|
520
513
|
offset: "100%",
|
|
521
|
-
"stop-color":
|
|
522
|
-
}, null, 8,
|
|
523
|
-
], 8,
|
|
514
|
+
"stop-color": n(oe)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
515
|
+
}, null, 8, zt)
|
|
516
|
+
], 8, Rt))), 256))
|
|
524
517
|
]),
|
|
525
|
-
e.value.style.chart.layout.grid.show ? (r(),
|
|
526
|
-
(r(!0),
|
|
527
|
-
x1:
|
|
528
|
-
y1:
|
|
518
|
+
e.value.style.chart.layout.grid.show ? (r(), u("g", Mt, [
|
|
519
|
+
(r(!0), u(x, null, A(w.value, (o) => (r(), u("line", {
|
|
520
|
+
x1: i.value.width / 2,
|
|
521
|
+
y1: i.value.height / 2,
|
|
529
522
|
x2: o.x,
|
|
530
523
|
y2: o.y,
|
|
531
524
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
532
525
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
533
|
-
}, null, 8,
|
|
534
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (r(),
|
|
535
|
-
(r(!0),
|
|
536
|
-
d:
|
|
537
|
-
plot: { x:
|
|
526
|
+
}, null, 8, Vt))), 256)),
|
|
527
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), u("g", Ut, [
|
|
528
|
+
(r(!0), u(x, null, A(et.value, (o) => (r(), u("path", {
|
|
529
|
+
d: n(Ie)({
|
|
530
|
+
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
538
531
|
radius: o,
|
|
539
|
-
sides:
|
|
532
|
+
sides: _e.value,
|
|
540
533
|
rotation: 0
|
|
541
534
|
}).path,
|
|
542
535
|
fill: "none",
|
|
543
536
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
544
537
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
545
|
-
}, null, 8,
|
|
538
|
+
}, null, 8, Et))), 256))
|
|
546
539
|
])) : d("", !0)
|
|
547
540
|
])) : d("", !0),
|
|
548
|
-
|
|
549
|
-
d:
|
|
541
|
+
P("path", {
|
|
542
|
+
d: Te.value.path,
|
|
550
543
|
fill: "none",
|
|
551
544
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
552
545
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
553
546
|
"stroke-linejoin": "round",
|
|
554
547
|
"stroke-linecap": "round"
|
|
555
|
-
}, null, 8,
|
|
556
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (r(),
|
|
557
|
-
(r(!0),
|
|
558
|
-
x:
|
|
559
|
-
y:
|
|
560
|
-
"text-anchor":
|
|
548
|
+
}, null, 8, Bt),
|
|
549
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Dt, [
|
|
550
|
+
(r(!0), u(x, null, A(w.value, (o, l) => (r(), u("text", {
|
|
551
|
+
x: J(o).x,
|
|
552
|
+
y: J(o).y,
|
|
553
|
+
"text-anchor": J(o).anchor,
|
|
561
554
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
562
555
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
563
|
-
onMouseenter: (s) =>
|
|
556
|
+
onMouseenter: (s) => ot(o, l),
|
|
564
557
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
565
|
-
|
|
558
|
+
q.value = !1, W.value = null;
|
|
566
559
|
})
|
|
567
|
-
},
|
|
560
|
+
}, B(o.name), 41, Gt))), 256))
|
|
568
561
|
])) : d("", !0),
|
|
569
|
-
(r(!0),
|
|
570
|
-
|
|
571
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(),
|
|
562
|
+
(r(!0), u(x, null, A(m.value, (o, l) => (r(), u("g", null, [
|
|
563
|
+
P("g", null, [
|
|
564
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
572
565
|
key: 0,
|
|
573
|
-
points:
|
|
566
|
+
points: n(Le)(w.value.map((s) => s.plots[l]), !1, !0),
|
|
574
567
|
stroke: e.value.style.chart.backgroundColor,
|
|
575
568
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
576
569
|
fill: "none",
|
|
577
|
-
class:
|
|
578
|
-
}, null, 10,
|
|
579
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(),
|
|
570
|
+
class: E({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && U.value === l && e.value.useCssAnimation })
|
|
571
|
+
}, null, 10, Wt)) : d("", !0),
|
|
572
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
580
573
|
key: 1,
|
|
581
|
-
points:
|
|
574
|
+
points: n(Le)(w.value.map((s) => s.plots[l]), !1, !0),
|
|
582
575
|
stroke: o.color,
|
|
583
576
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
584
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
585
|
-
class:
|
|
586
|
-
}, null, 10,
|
|
577
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : n(oe)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
578
|
+
class: E({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": N.value && U.value === l && e.value.useCssAnimation })
|
|
579
|
+
}, null, 10, Xt)) : d("", !0)
|
|
587
580
|
])
|
|
588
581
|
]))), 256)),
|
|
589
|
-
e.value.style.chart.layout.plots.show ? (r(),
|
|
590
|
-
(r(!0),
|
|
591
|
-
(r(!0),
|
|
582
|
+
e.value.style.chart.layout.plots.show ? (r(), u("g", jt, [
|
|
583
|
+
(r(!0), u(x, null, A(w.value, (o, l) => (r(), u("g", null, [
|
|
584
|
+
(r(!0), u(x, null, A(o.plots, (s, p) => (r(), u("circle", {
|
|
592
585
|
cx: s.x,
|
|
593
586
|
cy: s.y,
|
|
594
|
-
fill: v.value.includes(
|
|
595
|
-
r:
|
|
596
|
-
stroke: v.value.includes(
|
|
587
|
+
fill: v.value.includes(p) ? "transparent" : m.value[p].color,
|
|
588
|
+
r: W.value !== null && W.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
589
|
+
stroke: v.value.includes(p) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
597
590
|
"stroke-width": 0.5,
|
|
598
|
-
class:
|
|
599
|
-
}, null, 10,
|
|
591
|
+
class: E({ "animated-out": v.value.includes(p) && e.value.useCssAnimation, "animated-in": N.value && U.value === p && e.value.useCssAnimation })
|
|
592
|
+
}, null, 10, qt))), 256))
|
|
600
593
|
]))), 256))
|
|
601
594
|
])) : d("", !0),
|
|
602
|
-
f(t.$slots, "svg", { svg:
|
|
603
|
-
], 14,
|
|
604
|
-
t.$slots.watermark ? (r(),
|
|
605
|
-
f(t.$slots, "watermark",
|
|
595
|
+
f(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
596
|
+
], 14, St)) : d("", !0),
|
|
597
|
+
t.$slots.watermark ? (r(), u("div", Ht, [
|
|
598
|
+
f(t.$slots, "watermark", R(L({ isPrinting: n(ye) || n(me) })), void 0, !0)
|
|
606
599
|
])) : d("", !0),
|
|
607
|
-
|
|
600
|
+
M.value ? d("", !0) : (r(), T(n(Ge), {
|
|
608
601
|
key: 6,
|
|
609
602
|
config: {
|
|
610
603
|
type: "radar",
|
|
@@ -621,42 +614,42 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
621
614
|
}
|
|
622
615
|
}
|
|
623
616
|
}, null, 8, ["config"])),
|
|
624
|
-
|
|
617
|
+
P("div", {
|
|
625
618
|
ref_key: "chartLegend",
|
|
626
|
-
ref:
|
|
619
|
+
ref: se
|
|
627
620
|
}, [
|
|
628
|
-
e.value.style.chart.legend.show ? (r(),
|
|
629
|
-
key: `legend_${
|
|
630
|
-
legendSet:
|
|
631
|
-
config:
|
|
632
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
621
|
+
e.value.style.chart.legend.show ? (r(), T(At, {
|
|
622
|
+
key: `legend_${de.value}`,
|
|
623
|
+
legendSet: S.value,
|
|
624
|
+
config: at.value,
|
|
625
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => we(o))
|
|
633
626
|
}, {
|
|
634
627
|
item: y(({ legend: o, index: l }) => [
|
|
635
|
-
|
|
628
|
+
P("div", {
|
|
636
629
|
onClick: (s) => o.segregate(),
|
|
637
|
-
style:
|
|
638
|
-
},
|
|
630
|
+
style: j(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
631
|
+
}, B(o.name) + ": " + B(n(D)({
|
|
639
632
|
v: o.totalProportion * 100,
|
|
640
633
|
s: "%",
|
|
641
634
|
r: e.value.style.chart.legend.roundingPercentage
|
|
642
|
-
})), 13,
|
|
635
|
+
})), 13, Yt)
|
|
643
636
|
]),
|
|
644
637
|
_: 1
|
|
645
638
|
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
646
639
|
key: 1,
|
|
647
|
-
legend:
|
|
640
|
+
legend: S.value
|
|
648
641
|
}, void 0, !0)
|
|
649
642
|
], 512),
|
|
650
|
-
t.$slots.source ? (r(),
|
|
643
|
+
t.$slots.source ? (r(), u("div", {
|
|
651
644
|
key: 7,
|
|
652
645
|
ref_key: "source",
|
|
653
|
-
ref:
|
|
646
|
+
ref: ne,
|
|
654
647
|
dir: "auto"
|
|
655
648
|
}, [
|
|
656
649
|
f(t.$slots, "source", {}, void 0, !0)
|
|
657
650
|
], 512)) : d("", !0),
|
|
658
|
-
|
|
659
|
-
show: b.value.showTooltip &&
|
|
651
|
+
ae(n(We), {
|
|
652
|
+
show: b.value.showTooltip && q.value,
|
|
660
653
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
661
654
|
color: e.value.style.chart.tooltip.color,
|
|
662
655
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -666,27 +659,27 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
666
659
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
667
660
|
position: e.value.style.chart.tooltip.position,
|
|
668
661
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
669
|
-
parent:
|
|
670
|
-
content:
|
|
671
|
-
isFullscreen:
|
|
662
|
+
parent: V.value,
|
|
663
|
+
content: H.value,
|
|
664
|
+
isFullscreen: I.value,
|
|
672
665
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
673
666
|
}, {
|
|
674
667
|
"tooltip-before": y(() => [
|
|
675
|
-
f(t.$slots, "tooltip-before",
|
|
668
|
+
f(t.$slots, "tooltip-before", R(L({ ...Z.value })), void 0, !0)
|
|
676
669
|
]),
|
|
677
670
|
"tooltip-after": y(() => [
|
|
678
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(),
|
|
679
|
-
|
|
680
|
-
dataset:
|
|
681
|
-
config:
|
|
671
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), u("div", Qt, [
|
|
672
|
+
ae(n(qe), {
|
|
673
|
+
dataset: K.value,
|
|
674
|
+
config: Je.value,
|
|
682
675
|
backgroundOpacity: 0
|
|
683
676
|
}, null, 8, ["dataset", "config"])
|
|
684
677
|
])),
|
|
685
|
-
f(t.$slots, "tooltip-after",
|
|
678
|
+
f(t.$slots, "tooltip-after", R(L({ ...Z.value })), void 0, !0)
|
|
686
679
|
]),
|
|
687
680
|
_: 3
|
|
688
681
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
689
|
-
|
|
682
|
+
M.value ? (r(), T(n(De), {
|
|
690
683
|
key: 8,
|
|
691
684
|
hideDetails: "",
|
|
692
685
|
config: {
|
|
@@ -703,29 +696,29 @@ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
703
696
|
}
|
|
704
697
|
}, {
|
|
705
698
|
content: y(() => [
|
|
706
|
-
(r(),
|
|
707
|
-
key: `table_${
|
|
708
|
-
colNames:
|
|
709
|
-
head:
|
|
710
|
-
body:
|
|
711
|
-
config:
|
|
699
|
+
(r(), T(n(Ee), {
|
|
700
|
+
key: `table_${ce.value}`,
|
|
701
|
+
colNames: G.value.colNames,
|
|
702
|
+
head: G.value.head,
|
|
703
|
+
body: G.value.body,
|
|
704
|
+
config: G.value.config,
|
|
712
705
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
713
706
|
onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
|
|
714
707
|
}, {
|
|
715
708
|
th: y(({ th: o }) => [
|
|
716
|
-
|
|
709
|
+
Fe(B(o.name), 1)
|
|
717
710
|
]),
|
|
718
711
|
td: y(({ td: o }) => [
|
|
719
|
-
|
|
712
|
+
Fe(B(o), 1)
|
|
720
713
|
]),
|
|
721
714
|
_: 1
|
|
722
715
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
723
716
|
]),
|
|
724
717
|
_: 1
|
|
725
718
|
}, 8, ["config"])) : d("", !0)
|
|
726
|
-
], 46,
|
|
719
|
+
], 46, Nt));
|
|
727
720
|
}
|
|
728
|
-
},
|
|
721
|
+
}, ia = /* @__PURE__ */ Ft(Jt, [["__scopeId", "data-v-990e4bf4"]]);
|
|
729
722
|
export {
|
|
730
|
-
|
|
723
|
+
ia as default
|
|
731
724
|
};
|