vue-data-ui 3.0.2 → 3.0.3
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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -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 S, computed as v, ref as c, toRefs as ht, watch as gt, shallowRef as ze, onMounted as ft, onBeforeUnmount as yt, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as j, normalizeClass as D, createBlock as T, createCommentVNode as d, createElementVNode as A, createVNode as ne, createSlots as mt, withCtx as y, renderSlot as h, normalizeProps as M, guardReactiveProps as V, Fragment as F, renderList as O, toDisplayString as G, Teleport as bt, createTextVNode as Ee, nextTick as kt } from "vue";
|
|
2
|
+
import { u as Ct, c as wt, t as _t, a as $t, p as I, b as Tt, o as At, f as U, d as Pt, g as Me, e as Ve, R as Ue, h as xt, k as Be, i as W, X as St, s as re, x as Ft, S as De, v as Ot, w as It, y as Nt, z as Lt } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as Rt, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Et, B as Mt } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as Vt } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as Ge } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Dt } from "./useAutoSizeLabelsInsideViewbox-C0d8h29h.js";
|
|
10
|
+
import Gt from "./img-CBdOMFyn.js";
|
|
11
|
+
import Wt from "./Title-CINHji0n.js";
|
|
12
|
+
import Xt from "./Legend-CevCqVZ5.js";
|
|
13
|
+
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Ht = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["id"], Qt = ["stop-color"], Zt = ["stop-color"], ea = { key: 1 }, ta = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], aa = { key: 0 }, oa = ["d", "stroke", "stroke-width"], la = ["d", "stroke", "stroke-width"], sa = { key: 2 }, na = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], ra = ["points", "stroke", "stroke-width"], ua = ["points", "stroke", "stroke-width", "fill"], ia = { key: 3 }, ca = ["cx", "cy", "fill", "r", "stroke"], da = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, va = ["id"], pa = ["onClick"], ha = {
|
|
18
18
|
key: 0,
|
|
19
19
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
20
|
-
},
|
|
20
|
+
}, ga = {
|
|
21
21
|
__name: "vue-ui-radar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,9 +34,9 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
...
|
|
37
|
+
setup(We, { expose: Xe, emit: Ye }) {
|
|
38
|
+
const He = S(() => import("./DataTable-CWzb1j8d.js")), je = S(() => import("./PenAndPaper-C_R9vJkU.js")), qe = S(() => import("./vue-ui-accordion-s_m_NJzJ.js")), Je = S(() => import("./Tooltip-hfdFRoLp.js")), Ke = S(() => import("./UserOptions-r0epwyXR.js")), Qe = S(() => import("./PackageVersion-n4qokxnx.js")), Ze = S(() => import("./vue-ui-sparkbar-DwSd_DZu.js")), { vue_ui_radar: et } = Ct(), P = We, ue = v(() => !!P.dataset && Object.keys(P.dataset).length), m = c(wt()), tt = c(null), q = c(!1), J = c(""), ie = c(0), w = c(null), ce = c(null), de = c(null), ve = c(null), pe = c(null), he = c(0), ge = c(0), fe = c(0), ye = c(!1), e = c(Z()), { loading: me, FINAL_DATASET: C } = Et({
|
|
39
|
+
...ht(P),
|
|
40
40
|
FINAL_CONFIG: e,
|
|
41
41
|
prepareConfig: Z,
|
|
42
42
|
skeletonDataset: {
|
|
@@ -50,7 +50,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
50
50
|
{ name: "_", values: [0.6], target: 1 }
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
skeletonConfig:
|
|
53
|
+
skeletonConfig: _t({
|
|
54
54
|
defaultConfig: e.value,
|
|
55
55
|
userConfig: {
|
|
56
56
|
userOptions: { show: !1 },
|
|
@@ -77,62 +77,62 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
})
|
|
80
|
-
}), { userOptionsVisible: K, setUserOptionsVisibility:
|
|
80
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: be, keepUserOptionState: ke } = Ut({ config: e.value }), { svgRef: Q } = Bt({ config: e.value.style.chart.title });
|
|
81
81
|
function Z() {
|
|
82
|
-
const t =
|
|
83
|
-
userConfig:
|
|
84
|
-
defaultConfig:
|
|
82
|
+
const t = Ge({
|
|
83
|
+
userConfig: P.config,
|
|
84
|
+
defaultConfig: et
|
|
85
85
|
});
|
|
86
86
|
return t.theme ? {
|
|
87
|
-
...
|
|
88
|
-
userConfig:
|
|
87
|
+
...Ge({
|
|
88
|
+
userConfig: Tt.vue_ui_radar[t.theme] || P.config,
|
|
89
89
|
defaultConfig: t
|
|
90
90
|
}),
|
|
91
|
-
customPalette:
|
|
91
|
+
customPalette: $t[t.theme] || I
|
|
92
92
|
} : t;
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
e.value = Z(), K.value = !e.value.userOptions.showOnChartHover,
|
|
94
|
+
gt(() => P.config, (t) => {
|
|
95
|
+
e.value = Z(), K.value = !e.value.userOptions.showOnChartHover, Ce(), he.value += 1, ge.value += 1, fe.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
96
96
|
}, { deep: !0 });
|
|
97
|
-
const
|
|
98
|
-
function
|
|
99
|
-
if (
|
|
97
|
+
const _ = ze(null), N = ze(null), L = v(() => e.value.debug);
|
|
98
|
+
function Ce() {
|
|
99
|
+
if (At(P.dataset) && U({
|
|
100
100
|
componentName: "VueUiRadar",
|
|
101
101
|
type: "dataset",
|
|
102
|
-
debug:
|
|
102
|
+
debug: L.value
|
|
103
103
|
}), e.value.responsive) {
|
|
104
|
-
const t =
|
|
105
|
-
const { width: a, height: o } =
|
|
106
|
-
chart:
|
|
104
|
+
const t = Rt(() => {
|
|
105
|
+
const { width: a, height: o } = zt({
|
|
106
|
+
chart: w.value,
|
|
107
107
|
title: e.value.style.chart.title.text ? ce.value : null,
|
|
108
|
-
legend: e.value.style.chart.legend.show ?
|
|
109
|
-
source:
|
|
108
|
+
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
109
|
+
source: ve.value,
|
|
110
110
|
noTitle: pe.value
|
|
111
111
|
});
|
|
112
112
|
requestAnimationFrame(() => {
|
|
113
|
-
i.value.width = a, i.value.height = o,
|
|
113
|
+
i.value.width = a, i.value.height = o, Oe();
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
|
-
|
|
116
|
+
_.value && (N.value && _.value.unobserve(N.value), _.value.disconnect()), _.value = new ResizeObserver(t), N.value = w.value.parentNode, _.value.observe(N.value);
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
Oe();
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}),
|
|
123
|
-
|
|
120
|
+
ft(() => {
|
|
121
|
+
ye.value = !0, Ce();
|
|
122
|
+
}), yt(() => {
|
|
123
|
+
_.value && (N.value && _.value.unobserve(N.value), _.value.disconnect());
|
|
124
124
|
});
|
|
125
|
-
const { isPrinting:
|
|
126
|
-
elementId: `vue-ui-radar_${
|
|
125
|
+
const { isPrinting: we, isImaging: _e, generatePdf: $e, generateImage: Te } = Vt({
|
|
126
|
+
elementId: `vue-ui-radar_${m.value}`,
|
|
127
127
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
128
128
|
options: e.value.userOptions.print
|
|
129
|
-
}),
|
|
129
|
+
}), at = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ae = v(() => Pt(e.value.customPalette)), b = c({
|
|
130
130
|
dataLabels: {
|
|
131
131
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
132
132
|
},
|
|
133
133
|
showTable: e.value.table.show,
|
|
134
134
|
showTooltip: e.value.style.chart.tooltip.show
|
|
135
|
-
}),
|
|
135
|
+
}), ot = v(() => ({
|
|
136
136
|
style: {
|
|
137
137
|
backgroundColor: "#FFFFFF00",
|
|
138
138
|
animation: {
|
|
@@ -153,37 +153,37 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
153
153
|
})), i = c({
|
|
154
154
|
height: 312,
|
|
155
155
|
width: 512
|
|
156
|
-
}),
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
}), lt = Ye, p = c([]), B = c(null), R = c(!1);
|
|
157
|
+
function Pe(t) {
|
|
158
|
+
R.value = !0, p.value.includes(t) ? (B.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
|
|
159
|
+
R.value = !1, B.value = null;
|
|
160
160
|
}, 500)) : (p.value.push(t), setTimeout(() => {
|
|
161
|
-
|
|
162
|
-
}, 500)),
|
|
161
|
+
R.value = !1;
|
|
162
|
+
}, 500)), lt("selectLegend", z.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
|
|
163
163
|
name: a.name,
|
|
164
164
|
color: a.color,
|
|
165
165
|
proportion: a.totalProportion
|
|
166
166
|
})));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
168
|
+
function st() {
|
|
169
|
+
return z.value.map((t) => ({
|
|
170
170
|
name: t.name,
|
|
171
171
|
color: t.color,
|
|
172
172
|
proportion: t.totalProportion
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
175
|
-
const g = v(() => [null, void 0].includes(
|
|
175
|
+
const g = v(() => [null, void 0].includes(C.value.categories) ? (U({
|
|
176
176
|
componentName: "VueUiRadar",
|
|
177
177
|
type: "datasetAttribute",
|
|
178
178
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
179
|
-
debug:
|
|
180
|
-
}), []) : (
|
|
179
|
+
debug: L.value
|
|
180
|
+
}), []) : (C.value.categories.length === 0 ? U({
|
|
181
181
|
componentName: "VueUiRadar",
|
|
182
182
|
type: "datasetAttributeEmpty",
|
|
183
183
|
property: "categories",
|
|
184
|
-
debug:
|
|
185
|
-
}) :
|
|
186
|
-
|
|
184
|
+
debug: L.value
|
|
185
|
+
}) : C.value.categories.forEach((t, a) => {
|
|
186
|
+
Me({
|
|
187
187
|
datasetObject: t,
|
|
188
188
|
requiredAttributes: ["name"]
|
|
189
189
|
}).forEach((o) => {
|
|
@@ -192,16 +192,16 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
192
192
|
type: "datasetAttribute",
|
|
193
193
|
property: `category.${o} at index ${a}`,
|
|
194
194
|
index: a,
|
|
195
|
-
debug:
|
|
195
|
+
debug: L.value
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
|
-
}), [null, void 0].includes(
|
|
198
|
+
}), [null, void 0].includes(C.value.series) ? U({
|
|
199
199
|
componentName: "VueUiRadar",
|
|
200
200
|
type: "datasetAttribute",
|
|
201
201
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
202
|
-
debug:
|
|
203
|
-
}) :
|
|
204
|
-
|
|
202
|
+
debug: L.value
|
|
203
|
+
}) : C.value.series.forEach((t, a) => {
|
|
204
|
+
Me({
|
|
205
205
|
datasetObject: t,
|
|
206
206
|
requiredAttributes: ["name", "values", "target"]
|
|
207
207
|
}).forEach((o) => {
|
|
@@ -211,41 +211,41 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
211
211
|
key: "series",
|
|
212
212
|
property: o,
|
|
213
213
|
index: a,
|
|
214
|
-
debug:
|
|
214
|
+
debug: L.value
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
|
-
}),
|
|
217
|
+
}), C.value.categories.map((t, a) => ({
|
|
218
218
|
name: t.name,
|
|
219
|
-
categoryId: `radar_category_${
|
|
220
|
-
color:
|
|
219
|
+
categoryId: `radar_category_${m.value}_${a}`,
|
|
220
|
+
color: Ve(t.color) || Ae.value[a] || I[a] || I[a % I.length],
|
|
221
221
|
prefix: t.prefix ?? "",
|
|
222
222
|
suffix: t.suffix ?? ""
|
|
223
|
-
})))),
|
|
223
|
+
})))), k = v(() => C.value.series.map((t, a) => ({
|
|
224
224
|
...t,
|
|
225
|
-
color:
|
|
226
|
-
serieId: `radar_serie_${
|
|
225
|
+
color: Ve(t.color) || Ae.value[a] || I[a] || I[a % I.length],
|
|
226
|
+
serieId: `radar_serie_${m.value}_${a}`,
|
|
227
227
|
formatter: t.formatter || null
|
|
228
|
-
}))),
|
|
228
|
+
}))), xe = v(() => Math.max(...k.value.flatMap((t) => t.values))), Se = v(() => k.value.length), ee = v(() => Math.min(i.value.width, i.value.height) / 3), Fe = v(() => Ue({
|
|
229
229
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
230
230
|
radius: ee.value,
|
|
231
|
-
sides:
|
|
231
|
+
sides: Se.value,
|
|
232
232
|
rotation: 0
|
|
233
|
-
})),
|
|
233
|
+
})), nt = v(() => {
|
|
234
234
|
const t = [];
|
|
235
235
|
for (let a = 0; a < ee.value; a += ee.value / e.value.style.chart.layout.grid.graduations)
|
|
236
236
|
t.push(a);
|
|
237
237
|
return t;
|
|
238
|
-
}),
|
|
239
|
-
const o =
|
|
238
|
+
}), $ = v(() => Fe.value.coordinates.map((t, a) => {
|
|
239
|
+
const o = k.value[a].values.map((l) => ut({
|
|
240
240
|
centerX: i.value.width / 2,
|
|
241
241
|
centerY: i.value.height / 2,
|
|
242
242
|
apexX: t.x,
|
|
243
243
|
apexY: t.y,
|
|
244
|
-
proportion: l / (
|
|
244
|
+
proportion: l / (k.value[a].target || xe.value)
|
|
245
245
|
}));
|
|
246
246
|
return {
|
|
247
247
|
...t,
|
|
248
|
-
...
|
|
248
|
+
...k.value[a],
|
|
249
249
|
plots: o
|
|
250
250
|
};
|
|
251
251
|
}).map((t) => ({
|
|
@@ -258,33 +258,33 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
258
258
|
let o = "middle";
|
|
259
259
|
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 + 1 && (a += 20), a < i.value.height / 2 - 1 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const rt = v({
|
|
262
262
|
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
263
263
|
set: (t) => t
|
|
264
|
-
}), { autoSizeLabels:
|
|
264
|
+
}), { autoSizeLabels: Oe } = Dt({
|
|
265
265
|
svgRef: Q,
|
|
266
266
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
267
267
|
minFontSize: 6,
|
|
268
|
-
sizeRef:
|
|
268
|
+
sizeRef: rt,
|
|
269
269
|
labelClass: ".vue-ui-radar-apex-label"
|
|
270
270
|
});
|
|
271
|
-
function
|
|
271
|
+
function ut({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
|
|
272
272
|
return {
|
|
273
273
|
x: t + (o - t) * n,
|
|
274
274
|
y: a + (l - a) * n
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
const t =
|
|
277
|
+
const z = v(() => {
|
|
278
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || xe.value)));
|
|
279
279
|
return g.value.map((a, o) => ({
|
|
280
280
|
...a,
|
|
281
|
-
totalProportion:
|
|
281
|
+
totalProportion: xt(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / k.value.length),
|
|
282
282
|
shape: "circle",
|
|
283
283
|
opacity: p.value.includes(o) ? 0.5 : 1,
|
|
284
|
-
segregate: () =>
|
|
284
|
+
segregate: () => Pe(o),
|
|
285
285
|
isSegregated: p.value.includes(o)
|
|
286
286
|
}));
|
|
287
|
-
}),
|
|
287
|
+
}), it = v(() => ({
|
|
288
288
|
cy: "radar-div-legend",
|
|
289
289
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
290
290
|
color: e.value.style.chart.legend.color,
|
|
@@ -295,10 +295,10 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
295
295
|
const t = [
|
|
296
296
|
{ name: e.value.translations.datapoint, color: "" },
|
|
297
297
|
{ name: e.value.translations.target, color: "" },
|
|
298
|
-
...
|
|
299
|
-
], a =
|
|
298
|
+
...z.value
|
|
299
|
+
], a = C.value.series.map((l) => [
|
|
300
300
|
l.name,
|
|
301
|
-
|
|
301
|
+
Be(
|
|
302
302
|
l.formatter,
|
|
303
303
|
l.target,
|
|
304
304
|
W({
|
|
@@ -308,7 +308,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
308
308
|
r: e.value.table.td.roundingValue
|
|
309
309
|
})
|
|
310
310
|
),
|
|
311
|
-
...l.values.map((n, f) => `${
|
|
311
|
+
...l.values.map((n, f) => `${Be(
|
|
312
312
|
l.formatter,
|
|
313
313
|
n,
|
|
314
314
|
W({ p: g.value[f].prefix, v: n, s: g.value[f].suffix, r: e.value.table.td.roundingValue })
|
|
@@ -332,10 +332,10 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
332
332
|
};
|
|
333
333
|
return { head: t, body: a, config: o, colNames: t };
|
|
334
334
|
}), Y = c(null), ae = c([]), oe = c(null);
|
|
335
|
-
function
|
|
335
|
+
function ct(t, a) {
|
|
336
336
|
q.value = !1, Y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function dt(t, a) {
|
|
339
339
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
340
340
|
}
|
|
341
341
|
function vt(t, a) {
|
|
@@ -346,22 +346,22 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
346
346
|
seriesIndex: a,
|
|
347
347
|
series: {
|
|
348
348
|
categories: g.value,
|
|
349
|
-
datapoints:
|
|
350
|
-
radar:
|
|
349
|
+
datapoints: k.value,
|
|
350
|
+
radar: $.value
|
|
351
351
|
},
|
|
352
352
|
config: e.value
|
|
353
353
|
};
|
|
354
354
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
355
|
-
if (
|
|
355
|
+
if (Nt(l) && Lt(() => l({
|
|
356
356
|
seriesIndex: a,
|
|
357
357
|
datapoint: t,
|
|
358
|
-
series: { categories: g.value, datapoints:
|
|
358
|
+
series: { categories: g.value, datapoints: k.value, radar: $.value },
|
|
359
359
|
config: e.value
|
|
360
360
|
})))
|
|
361
361
|
J.value = l({
|
|
362
362
|
seriesIndex: a,
|
|
363
363
|
datapoint: t,
|
|
364
|
-
series: { categories: g.value, datapoints:
|
|
364
|
+
series: { categories: g.value, datapoints: k.value, radar: $.value },
|
|
365
365
|
config: e.value
|
|
366
366
|
});
|
|
367
367
|
else {
|
|
@@ -379,32 +379,32 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
379
379
|
J.value = o;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
|
|
384
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...
|
|
382
|
+
function Ie(t = null) {
|
|
383
|
+
kt(() => {
|
|
384
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...z.value.flatMap((x) => [[x.name], ["%"]])], l = C.value.series.map((x, fa) => [x.name, x.target, ...x.values.flatMap((se) => [
|
|
385
385
|
se,
|
|
386
|
-
isNaN(se /
|
|
387
|
-
])]), n = a.concat([o]).concat(l), f =
|
|
388
|
-
t ? t(f) :
|
|
386
|
+
isNaN(se / x.target) ? "" : se / x.target * 100
|
|
387
|
+
])]), n = a.concat([o]).concat(l), f = Ot(n);
|
|
388
|
+
t ? t(f) : It({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
function Ne() {
|
|
396
|
-
m.value.showTable = !m.value.showTable;
|
|
391
|
+
const E = c(!1);
|
|
392
|
+
function Ne(t) {
|
|
393
|
+
E.value = t, ie.value += 1;
|
|
397
394
|
}
|
|
398
395
|
function Le() {
|
|
399
|
-
|
|
396
|
+
b.value.showTable = !b.value.showTable;
|
|
397
|
+
}
|
|
398
|
+
function Re() {
|
|
399
|
+
b.value.showTooltip = !b.value.showTooltip;
|
|
400
400
|
}
|
|
401
401
|
const H = c(!1);
|
|
402
402
|
function le() {
|
|
403
403
|
H.value = !H.value;
|
|
404
404
|
}
|
|
405
|
-
async function
|
|
406
|
-
if (!
|
|
407
|
-
const { width: a, height: o } =
|
|
405
|
+
async function pt({ scale: t = 2 } = {}) {
|
|
406
|
+
if (!w.value) return;
|
|
407
|
+
const { width: a, height: o } = w.value.getBoundingClientRect(), l = a / o, { imageUri: n, base64: f } = await Gt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
408
408
|
return {
|
|
409
409
|
imageUri: n,
|
|
410
410
|
base64: f,
|
|
@@ -414,26 +414,26 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
414
414
|
aspectRatio: l
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
return
|
|
418
|
-
getData:
|
|
419
|
-
getImage:
|
|
420
|
-
generatePdf:
|
|
421
|
-
generateCsv:
|
|
422
|
-
generateImage:
|
|
423
|
-
toggleTable:
|
|
424
|
-
toggleTooltip:
|
|
417
|
+
return Xe({
|
|
418
|
+
getData: st,
|
|
419
|
+
getImage: pt,
|
|
420
|
+
generatePdf: $e,
|
|
421
|
+
generateCsv: Ie,
|
|
422
|
+
generateImage: Te,
|
|
423
|
+
toggleTable: Le,
|
|
424
|
+
toggleTooltip: Re,
|
|
425
425
|
toggleAnnotator: le,
|
|
426
|
-
toggleFullscreen:
|
|
426
|
+
toggleFullscreen: Ne
|
|
427
427
|
}), (t, a) => (s(), u("div", {
|
|
428
|
-
class: D(`vue-ui-radar ${
|
|
428
|
+
class: D(`vue-ui-radar ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
429
429
|
ref_key: "radarChart",
|
|
430
|
-
ref:
|
|
431
|
-
id: `vue-ui-radar_${
|
|
430
|
+
ref: w,
|
|
431
|
+
id: `vue-ui-radar_${m.value}`,
|
|
432
432
|
style: j(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
433
|
-
onMouseenter: a[2] || (a[2] = () => r(
|
|
434
|
-
onMouseleave: a[3] || (a[3] = () => r(
|
|
433
|
+
onMouseenter: a[2] || (a[2] = () => r(be)(!0)),
|
|
434
|
+
onMouseleave: a[3] || (a[3] = () => r(be)(!1))
|
|
435
435
|
}, [
|
|
436
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
436
|
+
e.value.userOptions.buttons.annotator ? (s(), T(r(je), {
|
|
437
437
|
key: 0,
|
|
438
438
|
svgRef: r(Q),
|
|
439
439
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -441,7 +441,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
441
441
|
active: H.value,
|
|
442
442
|
onClose: le
|
|
443
443
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
444
|
-
|
|
444
|
+
at.value ? (s(), u("div", {
|
|
445
445
|
key: 1,
|
|
446
446
|
ref_key: "noTitle",
|
|
447
447
|
ref: pe,
|
|
@@ -454,7 +454,7 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
454
454
|
ref: ce,
|
|
455
455
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
456
456
|
}, [
|
|
457
|
-
(s(),
|
|
457
|
+
(s(), T(Wt, {
|
|
458
458
|
key: `title_${he.value}`,
|
|
459
459
|
config: {
|
|
460
460
|
title: {
|
|
@@ -468,41 +468,44 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
468
468
|
}
|
|
469
469
|
}, null, 8, ["config"]))
|
|
470
470
|
], 512)) : d("", !0),
|
|
471
|
-
|
|
471
|
+
A("div", {
|
|
472
|
+
id: `legend-top-${m.value}`
|
|
473
|
+
}, null, 8, jt),
|
|
474
|
+
e.value.userOptions.show && ue.value && (r(ke) || r(K)) ? (s(), T(r(Ke), {
|
|
472
475
|
ref_key: "details",
|
|
473
|
-
ref:
|
|
476
|
+
ref: tt,
|
|
474
477
|
key: `user_options_${ie.value}`,
|
|
475
478
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
476
479
|
color: e.value.style.chart.color,
|
|
477
|
-
isImaging: r(
|
|
478
|
-
isPrinting: r(
|
|
479
|
-
uid:
|
|
480
|
+
isImaging: r(_e),
|
|
481
|
+
isPrinting: r(we),
|
|
482
|
+
uid: m.value,
|
|
480
483
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
481
484
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
482
485
|
hasImg: e.value.userOptions.buttons.img,
|
|
483
486
|
hasXls: e.value.userOptions.buttons.csv,
|
|
484
487
|
hasTable: e.value.userOptions.buttons.table,
|
|
485
488
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
486
|
-
isFullscreen:
|
|
487
|
-
isTooltip:
|
|
489
|
+
isFullscreen: E.value,
|
|
490
|
+
isTooltip: b.value.showTooltip,
|
|
488
491
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
489
|
-
chartElement:
|
|
492
|
+
chartElement: w.value,
|
|
490
493
|
position: e.value.userOptions.position,
|
|
491
494
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
492
495
|
isAnnotation: H.value,
|
|
493
496
|
callbacks: e.value.userOptions.callbacks,
|
|
494
497
|
printScale: e.value.userOptions.print.scale,
|
|
495
|
-
onToggleFullscreen:
|
|
496
|
-
onGeneratePdf: r(
|
|
497
|
-
onGenerateCsv:
|
|
498
|
-
onGenerateImage: r(
|
|
499
|
-
onToggleTable:
|
|
500
|
-
onToggleTooltip:
|
|
498
|
+
onToggleFullscreen: Ne,
|
|
499
|
+
onGeneratePdf: r($e),
|
|
500
|
+
onGenerateCsv: Ie,
|
|
501
|
+
onGenerateImage: r(Te),
|
|
502
|
+
onToggleTable: Le,
|
|
503
|
+
onToggleTooltip: Re,
|
|
501
504
|
onToggleAnnotator: le,
|
|
502
505
|
style: j({
|
|
503
|
-
visibility: r(
|
|
506
|
+
visibility: r(ke) ? r(K) ? "visible" : "hidden" : "visible"
|
|
504
507
|
})
|
|
505
|
-
},
|
|
508
|
+
}, mt({ _: 2 }, [
|
|
506
509
|
t.$slots.menuIcon ? {
|
|
507
510
|
name: "menuIcon",
|
|
508
511
|
fn: y(({ isOpen: o, color: l }) => [
|
|
@@ -563,12 +566,12 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
563
566
|
(s(), u("svg", {
|
|
564
567
|
ref_key: "svgRef",
|
|
565
568
|
ref: Q,
|
|
566
|
-
xmlns: r(
|
|
567
|
-
class: D({ "vue-data-ui-fullscreen--on":
|
|
569
|
+
xmlns: r(St),
|
|
570
|
+
class: D({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
568
571
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
569
572
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
570
573
|
}, [
|
|
571
|
-
ne(r(
|
|
574
|
+
ne(r(Qe)),
|
|
572
575
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
573
576
|
key: 0,
|
|
574
577
|
x: 0,
|
|
@@ -580,59 +583,59 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
580
583
|
}
|
|
581
584
|
}, [
|
|
582
585
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
583
|
-
], 8,
|
|
584
|
-
|
|
585
|
-
(s(!0), u(
|
|
586
|
+
], 8, Jt)) : d("", !0),
|
|
587
|
+
A("defs", null, [
|
|
588
|
+
(s(!0), u(F, null, O(g.value, (o, l) => (s(), u("radialGradient", {
|
|
586
589
|
cx: "50%",
|
|
587
590
|
cy: "50%",
|
|
588
591
|
r: "50%",
|
|
589
592
|
fx: "50%",
|
|
590
593
|
fy: "50%",
|
|
591
|
-
id: `radar_gradient_${
|
|
594
|
+
id: `radar_gradient_${m.value}_${l}`
|
|
592
595
|
}, [
|
|
593
|
-
|
|
596
|
+
A("stop", {
|
|
594
597
|
offset: "0%",
|
|
595
|
-
"stop-color": r(re)(r(
|
|
596
|
-
}, null, 8,
|
|
597
|
-
|
|
598
|
+
"stop-color": r(re)(r(Ft)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
599
|
+
}, null, 8, Qt),
|
|
600
|
+
A("stop", {
|
|
598
601
|
offset: "100%",
|
|
599
602
|
"stop-color": r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
600
|
-
}, null, 8,
|
|
601
|
-
], 8,
|
|
603
|
+
}, null, 8, Zt)
|
|
604
|
+
], 8, Kt))), 256))
|
|
602
605
|
]),
|
|
603
|
-
e.value.style.chart.layout.grid.show ? (s(), u("g",
|
|
604
|
-
(s(!0), u(
|
|
606
|
+
e.value.style.chart.layout.grid.show ? (s(), u("g", ea, [
|
|
607
|
+
(s(!0), u(F, null, O($.value, (o) => (s(), u("line", {
|
|
605
608
|
x1: i.value.width / 2,
|
|
606
609
|
y1: i.value.height / 2,
|
|
607
610
|
x2: o.x,
|
|
608
611
|
y2: o.y,
|
|
609
612
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
610
613
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
611
|
-
}, null, 8,
|
|
612
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (s(), u("g",
|
|
613
|
-
(s(!0), u(
|
|
614
|
-
d: r(
|
|
614
|
+
}, null, 8, ta))), 256)),
|
|
615
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (s(), u("g", aa, [
|
|
616
|
+
(s(!0), u(F, null, O(nt.value, (o) => (s(), u("path", {
|
|
617
|
+
d: r(Ue)({
|
|
615
618
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
616
619
|
radius: o,
|
|
617
|
-
sides:
|
|
620
|
+
sides: Se.value,
|
|
618
621
|
rotation: 0
|
|
619
622
|
}).path,
|
|
620
623
|
fill: "none",
|
|
621
624
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
622
625
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
623
|
-
}, null, 8,
|
|
626
|
+
}, null, 8, oa))), 256))
|
|
624
627
|
])) : d("", !0)
|
|
625
628
|
])) : d("", !0),
|
|
626
|
-
|
|
627
|
-
d:
|
|
629
|
+
A("path", {
|
|
630
|
+
d: Fe.value.path,
|
|
628
631
|
fill: "none",
|
|
629
632
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
630
633
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
631
634
|
"stroke-linejoin": "round",
|
|
632
635
|
"stroke-linecap": "round"
|
|
633
|
-
}, null, 8,
|
|
634
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (s(), u("g",
|
|
635
|
-
(s(!0), u(
|
|
636
|
+
}, null, 8, la),
|
|
637
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (s(), u("g", sa, [
|
|
638
|
+
(s(!0), u(F, null, O($.value, (o, l) => (s(), u("text", {
|
|
636
639
|
class: "vue-ui-radar-apex-label",
|
|
637
640
|
x: o.labelX,
|
|
638
641
|
y: o.labelY,
|
|
@@ -640,85 +643,93 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
640
643
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
641
644
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
642
645
|
onMouseenter: (n) => vt(o, l),
|
|
643
|
-
onMouseleave: (n) =>
|
|
644
|
-
onClick: (n) =>
|
|
645
|
-
}, G(o.name), 41,
|
|
646
|
+
onMouseleave: (n) => ct(o, l),
|
|
647
|
+
onClick: (n) => dt(o, l)
|
|
648
|
+
}, G(o.name), 41, na))), 256))
|
|
646
649
|
])) : d("", !0),
|
|
647
|
-
(s(!0), u(
|
|
648
|
-
|
|
650
|
+
(s(!0), u(F, null, O(g.value, (o, l) => (s(), u("g", null, [
|
|
651
|
+
A("g", null, [
|
|
649
652
|
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
|
|
650
653
|
key: 0,
|
|
651
|
-
points: r(
|
|
654
|
+
points: r(De)($.value.map((n) => n.plots[l]), !1, !0),
|
|
652
655
|
stroke: e.value.style.chart.backgroundColor,
|
|
653
656
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
654
657
|
fill: "none",
|
|
655
|
-
class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
656
|
-
}, null, 10,
|
|
658
|
+
class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": R.value && B.value === l && e.value.useCssAnimation })
|
|
659
|
+
}, null, 10, ra)) : d("", !0),
|
|
657
660
|
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (s(), u("polygon", {
|
|
658
661
|
key: 1,
|
|
659
|
-
points: r(
|
|
662
|
+
points: r(De)($.value.map((n) => n.plots[l]), !1, !0),
|
|
660
663
|
stroke: o.color,
|
|
661
664
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
662
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
663
|
-
class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
664
|
-
}, null, 10,
|
|
665
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${m.value}_${l})` : r(re)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
666
|
+
class: D({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": R.value && B.value === l && e.value.useCssAnimation })
|
|
667
|
+
}, null, 10, ua)) : d("", !0)
|
|
665
668
|
])
|
|
666
669
|
]))), 256)),
|
|
667
|
-
e.value.style.chart.layout.plots.show ? (s(), u("g",
|
|
668
|
-
(s(!0), u(
|
|
669
|
-
(s(!0), u(
|
|
670
|
+
e.value.style.chart.layout.plots.show ? (s(), u("g", ia, [
|
|
671
|
+
(s(!0), u(F, null, O($.value, (o, l) => (s(), u("g", null, [
|
|
672
|
+
(s(!0), u(F, null, O(o.plots, (n, f) => (s(), u("circle", {
|
|
670
673
|
cx: n.x,
|
|
671
674
|
cy: n.y,
|
|
672
675
|
fill: p.value.includes(f) ? "transparent" : g.value[f] ? g.value[f].color : "transparent",
|
|
673
676
|
r: Y.value !== null && Y.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
674
677
|
stroke: p.value.includes(f) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
675
678
|
"stroke-width": 0.5,
|
|
676
|
-
class: D({ "animated-out": p.value.includes(f) && e.value.useCssAnimation, "animated-in":
|
|
677
|
-
}, null, 10,
|
|
679
|
+
class: D({ "animated-out": p.value.includes(f) && e.value.useCssAnimation, "animated-in": R.value && B.value === f && e.value.useCssAnimation })
|
|
680
|
+
}, null, 10, ca))), 256))
|
|
678
681
|
]))), 256))
|
|
679
682
|
])) : d("", !0),
|
|
680
683
|
h(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
681
|
-
], 14,
|
|
682
|
-
t.$slots.watermark ? (s(), u("div",
|
|
683
|
-
h(t.$slots, "watermark", M(V({ isPrinting: r(
|
|
684
|
+
], 14, qt)),
|
|
685
|
+
t.$slots.watermark ? (s(), u("div", da, [
|
|
686
|
+
h(t.$slots, "watermark", M(V({ isPrinting: r(we) || r(_e) })), void 0, !0)
|
|
684
687
|
])) : d("", !0),
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
+
A("div", {
|
|
689
|
+
id: `legend-bottom-${m.value}`
|
|
690
|
+
}, null, 8, va),
|
|
691
|
+
ye.value ? (s(), T(bt, {
|
|
692
|
+
key: 5,
|
|
693
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
688
694
|
}, [
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
695
|
+
A("div", {
|
|
696
|
+
ref_key: "chartLegend",
|
|
697
|
+
ref: de
|
|
698
|
+
}, [
|
|
699
|
+
e.value.style.chart.legend.show ? (s(), T(Xt, {
|
|
700
|
+
key: `legend_${fe.value}`,
|
|
701
|
+
legendSet: z.value,
|
|
702
|
+
config: it.value,
|
|
703
|
+
onClickMarker: a[0] || (a[0] = ({ i: o }) => Pe(o))
|
|
704
|
+
}, {
|
|
705
|
+
item: y(({ legend: o, index: l }) => [
|
|
706
|
+
r(me) ? d("", !0) : (s(), u("div", {
|
|
707
|
+
key: 0,
|
|
708
|
+
onClick: (n) => o.segregate(),
|
|
709
|
+
style: j(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
|
|
710
|
+
}, G(o.name) + ": " + G(r(W)({
|
|
711
|
+
v: o.totalProportion * 100,
|
|
712
|
+
s: "%",
|
|
713
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
714
|
+
})), 13, pa))
|
|
715
|
+
]),
|
|
716
|
+
_: 1
|
|
717
|
+
}, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
718
|
+
key: 1,
|
|
719
|
+
legend: z.value
|
|
720
|
+
}, void 0, !0)
|
|
721
|
+
], 512)
|
|
722
|
+
], 8, ["to"])) : d("", !0),
|
|
712
723
|
t.$slots.source ? (s(), u("div", {
|
|
713
|
-
key:
|
|
724
|
+
key: 6,
|
|
714
725
|
ref_key: "source",
|
|
715
|
-
ref:
|
|
726
|
+
ref: ve,
|
|
716
727
|
dir: "auto"
|
|
717
728
|
}, [
|
|
718
729
|
h(t.$slots, "source", {}, void 0, !0)
|
|
719
730
|
], 512)) : d("", !0),
|
|
720
|
-
ne(r(
|
|
721
|
-
show:
|
|
731
|
+
ne(r(Je), {
|
|
732
|
+
show: b.value.showTooltip && q.value,
|
|
722
733
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
723
734
|
color: e.value.style.chart.tooltip.color,
|
|
724
735
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -728,9 +739,9 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
728
739
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
729
740
|
position: e.value.style.chart.tooltip.position,
|
|
730
741
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
731
|
-
parent:
|
|
742
|
+
parent: w.value,
|
|
732
743
|
content: J.value,
|
|
733
|
-
isFullscreen:
|
|
744
|
+
isFullscreen: E.value,
|
|
734
745
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
735
746
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
736
747
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
@@ -739,10 +750,10 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
739
750
|
h(t.$slots, "tooltip-before", M(V({ ...oe.value })), void 0, !0)
|
|
740
751
|
]),
|
|
741
752
|
"tooltip-after": y(() => [
|
|
742
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (s(), u("div",
|
|
743
|
-
ne(r(
|
|
753
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (s(), u("div", ha, [
|
|
754
|
+
ne(r(Ze), {
|
|
744
755
|
dataset: ae.value,
|
|
745
|
-
config:
|
|
756
|
+
config: ot.value,
|
|
746
757
|
backgroundOpacity: 0
|
|
747
758
|
}, null, 8, ["dataset", "config"])
|
|
748
759
|
])),
|
|
@@ -750,11 +761,11 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
750
761
|
]),
|
|
751
762
|
_: 3
|
|
752
763
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
753
|
-
ue.value ? (s(),
|
|
754
|
-
key:
|
|
764
|
+
ue.value ? (s(), T(r(qe), {
|
|
765
|
+
key: 7,
|
|
755
766
|
hideDetails: "",
|
|
756
767
|
config: {
|
|
757
|
-
open:
|
|
768
|
+
open: b.value.showTable,
|
|
758
769
|
maxHeight: 1e4,
|
|
759
770
|
body: {
|
|
760
771
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -767,30 +778,30 @@ const Xt = ["id"], Yt = ["xmlns", "viewBox"], Ht = ["width", "height"], jt = ["i
|
|
|
767
778
|
}
|
|
768
779
|
}, {
|
|
769
780
|
content: y(() => [
|
|
770
|
-
(s(),
|
|
781
|
+
(s(), T(r(He), {
|
|
771
782
|
key: `table_${ge.value}`,
|
|
772
783
|
colNames: X.value.colNames,
|
|
773
784
|
head: X.value.head,
|
|
774
785
|
body: X.value.body,
|
|
775
786
|
config: X.value.config,
|
|
776
787
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
777
|
-
onClose: a[1] || (a[1] = (o) =>
|
|
788
|
+
onClose: a[1] || (a[1] = (o) => b.value.showTable = !1)
|
|
778
789
|
}, {
|
|
779
790
|
th: y(({ th: o }) => [
|
|
780
|
-
|
|
791
|
+
Ee(G(o.name), 1)
|
|
781
792
|
]),
|
|
782
793
|
td: y(({ td: o }) => [
|
|
783
|
-
|
|
794
|
+
Ee(G(o), 1)
|
|
784
795
|
]),
|
|
785
796
|
_: 1
|
|
786
797
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
787
798
|
]),
|
|
788
799
|
_: 1
|
|
789
800
|
}, 8, ["config"])) : d("", !0),
|
|
790
|
-
r(
|
|
791
|
-
], 46,
|
|
801
|
+
r(me) ? (s(), T(Mt, { key: 8 })) : d("", !0)
|
|
802
|
+
], 46, Ht));
|
|
792
803
|
}
|
|
793
|
-
},
|
|
804
|
+
}, Fa = /* @__PURE__ */ Yt(ga, [["__scopeId", "data-v-ae5f591e"]]);
|
|
794
805
|
export {
|
|
795
|
-
|
|
806
|
+
Fa as default
|
|
796
807
|
};
|