vue-data-ui 3.4.9 → 3.5.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/README.md +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c 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 { t as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as Vt, watch as de, shallowRef as He, onMounted as Dt, onBeforeUnmount as zt, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as Z, normalizeClass as H, createBlock as P, createCommentVNode as p, createElementVNode as C, createVNode as ee, createSlots as je, withCtx as g, renderSlot as f, normalizeProps as E, guardReactiveProps as M, Fragment as L, renderList as N, toDisplayString as R, Teleport as Ut, resolveDynamicComponent as Bt, mergeProps as Et, createTextVNode as pe, nextTick as qe } from "vue";
|
|
2
|
+
import { c as Mt, t as Gt, b as Wt, p as V, o as Xt, f as D, e as Yt, h as Qe, k as Je, x as Ht, d as G, a as he, X as jt, s as ge, i as qt, a8 as Ke, g as Ze, P as Qt, Q as Jt, G as Kt, H as Zt } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as ea, u as ta } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as aa, a as et } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as oa, B as la } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as sa } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ra } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as ua } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
10
|
+
import ia from "./img-BecE5qXd.js";
|
|
11
|
+
import ca from "./Title-l36lOBMx.js";
|
|
12
|
+
import va from "./Legend-G6GMcdAc.js";
|
|
13
|
+
import { t as da } from "./themes-AUNCOb2G.js";
|
|
14
|
+
import { u as pa } from "./useSvgExport-DrjCWun4.js";
|
|
15
|
+
import { _ as ha } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const ga = ["id"], fa = ["id"], ya = ["xmlns", "viewBox"], ma = ["width", "height"], ba = ["id"], ka = ["stop-color"], Ca = ["stop-color"], wa = { key: 1 }, $a = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], _a = { key: 0 }, Ta = ["d", "stroke", "stroke-width"], Sa = ["d", "stroke", "stroke-width"], Aa = { key: 2 }, Pa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], xa = ["points", "stroke", "stroke-width"], Oa = ["points", "stroke", "stroke-width", "fill"], Fa = { key: 3 }, Ia = ["cx", "cy", "fill", "r", "stroke"], La = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, Na = ["id"], Ra = ["onClick"], Va = {
|
|
20
20
|
key: 0,
|
|
21
21
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
22
|
-
},
|
|
22
|
+
}, Da = {
|
|
23
23
|
class: "vue-ui-radar-tooltip-datalabel",
|
|
24
24
|
style: { width: "100%" }
|
|
25
|
-
},
|
|
25
|
+
}, za = { class: "vue-ui-radar-tooltip-datalabel-name" }, Ua = { key: 0 }, Ba = {
|
|
26
26
|
__name: "vue-ui-radar",
|
|
27
27
|
props: {
|
|
28
28
|
config: {
|
|
@@ -39,14 +39,14 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
emits: ["selectLegend"],
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
44
|
-
...
|
|
42
|
+
setup(tt, { expose: at, emit: ot }) {
|
|
43
|
+
const lt = _(() => import("./Tooltip-oWCO1HKy.js")), st = _(() => import("./BaseIcon-BmMbm4d0.js")), nt = _(() => import("./vue-ui-sparkbar-DnKP55Vu.js")), rt = _(() => import("./vue-ui-accordion-CZ0thhxa.js")), ut = _(() => import("./DataTable-BT7VF2ua.js")), it = _(() => import("./PenAndPaper-DSvu9dwa.js")), ct = _(() => import("./UserOptions-CGnQt6Fd.js")), vt = _(() => import("./PackageVersion-Cyx_s25h.js")), dt = _(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_radar: pt } = aa(), x = tt, fe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Mt()), te = c(!1), ae = c(""), ye = c(0), $ = c(null), me = c(null), be = c(null), ke = c(null), Ce = c(null), we = c(0), $e = c(0), _e = c(0), Te = c(!1), W = c(null), oe = c(null), e = c(se()), { loading: Se, FINAL_DATASET: O } = oa({
|
|
44
|
+
...Vt(x),
|
|
45
45
|
FINAL_CONFIG: e,
|
|
46
|
-
prepareConfig:
|
|
46
|
+
prepareConfig: se,
|
|
47
47
|
callback: () => {
|
|
48
48
|
Promise.resolve().then(async () => {
|
|
49
|
-
await
|
|
49
|
+
await qe(), y.value.showTable = e.value.table.show;
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
skeletonDataset: {
|
|
@@ -60,7 +60,7 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
60
60
|
{ name: "_", values: [0.6], target: 1 }
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
skeletonConfig:
|
|
63
|
+
skeletonConfig: Gt({
|
|
64
64
|
defaultConfig: e.value,
|
|
65
65
|
userConfig: {
|
|
66
66
|
userOptions: { show: !1 },
|
|
@@ -87,62 +87,62 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
|
-
}), { userOptionsVisible:
|
|
91
|
-
function
|
|
92
|
-
const t =
|
|
93
|
-
userConfig:
|
|
94
|
-
defaultConfig:
|
|
90
|
+
}), { userOptionsVisible: le, setUserOptionsVisibility: Ae, keepUserOptionState: Pe } = na({ config: e.value }), { svgRef: j } = ra({ config: e.value.style.chart.title });
|
|
91
|
+
function se() {
|
|
92
|
+
const t = et({
|
|
93
|
+
userConfig: x.config,
|
|
94
|
+
defaultConfig: pt
|
|
95
95
|
});
|
|
96
96
|
return t.theme ? {
|
|
97
|
-
...
|
|
98
|
-
userConfig:
|
|
97
|
+
...et({
|
|
98
|
+
userConfig: da.vue_ui_radar[t.theme] || x.config,
|
|
99
99
|
defaultConfig: t
|
|
100
100
|
}),
|
|
101
|
-
customPalette:
|
|
101
|
+
customPalette: Wt[t.theme] || V
|
|
102
102
|
} : t;
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
e.value =
|
|
104
|
+
de(() => x.config, (t) => {
|
|
105
|
+
e.value = se(), le.value = !e.value.userOptions.showOnChartHover, xe(), we.value += 1, $e.value += 1, _e.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
106
106
|
}, { deep: !0 });
|
|
107
|
-
const T =
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
107
|
+
const T = He(null), z = He(null), F = v(() => e.value.debug);
|
|
108
|
+
function xe() {
|
|
109
|
+
if (Xt(x.dataset) && D({
|
|
110
110
|
componentName: "VueUiRadar",
|
|
111
111
|
type: "dataset",
|
|
112
|
-
debug:
|
|
112
|
+
debug: F.value
|
|
113
113
|
}), e.value.responsive) {
|
|
114
|
-
const t =
|
|
115
|
-
const { width:
|
|
116
|
-
chart:
|
|
117
|
-
title: e.value.style.chart.title.text ?
|
|
118
|
-
legend: e.value.style.chart.legend.show ?
|
|
119
|
-
source:
|
|
120
|
-
noTitle:
|
|
114
|
+
const t = ea(() => {
|
|
115
|
+
const { width: a, height: o } = ta({
|
|
116
|
+
chart: $.value,
|
|
117
|
+
title: e.value.style.chart.title.text ? me.value : null,
|
|
118
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
119
|
+
source: ke.value,
|
|
120
|
+
noTitle: Ce.value
|
|
121
121
|
});
|
|
122
122
|
requestAnimationFrame(() => {
|
|
123
|
-
i.value.width =
|
|
123
|
+
i.value.width = a, i.value.height = o, Ue();
|
|
124
124
|
});
|
|
125
125
|
});
|
|
126
|
-
T.value && (
|
|
126
|
+
T.value && (z.value && T.value.unobserve(z.value), T.value.disconnect()), T.value = new ResizeObserver(t), z.value = $.value.parentNode, T.value.observe(z.value);
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
Ue();
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}),
|
|
133
|
-
T.value && (
|
|
130
|
+
Dt(() => {
|
|
131
|
+
Te.value = !0, xe();
|
|
132
|
+
}), zt(() => {
|
|
133
|
+
T.value && (z.value && T.value.unobserve(z.value), T.value.disconnect());
|
|
134
134
|
});
|
|
135
|
-
const { isPrinting: Oe, isImaging:
|
|
135
|
+
const { isPrinting: Oe, isImaging: Fe, generatePdf: Ie, generateImage: Le } = sa({
|
|
136
136
|
elementId: `vue-ui-radar_${b.value}`,
|
|
137
137
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
138
138
|
options: e.value.userOptions.print
|
|
139
|
-
}),
|
|
139
|
+
}), ht = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = v(() => Yt(e.value.customPalette)), y = c({
|
|
140
140
|
dataLabels: {
|
|
141
141
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
142
142
|
},
|
|
143
143
|
showTable: e.value.table.show,
|
|
144
144
|
showTooltip: e.value.style.chart.tooltip.show
|
|
145
|
-
}),
|
|
145
|
+
}), gt = v(() => ({
|
|
146
146
|
style: {
|
|
147
147
|
backgroundColor: "#FFFFFF00",
|
|
148
148
|
animation: {
|
|
@@ -163,180 +163,197 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
163
163
|
})), i = c({
|
|
164
164
|
height: 312,
|
|
165
165
|
width: 512
|
|
166
|
-
}),
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, 500)) : (
|
|
171
|
-
|
|
172
|
-
}, 500)),
|
|
173
|
-
name:
|
|
174
|
-
color:
|
|
175
|
-
proportion:
|
|
166
|
+
}), ft = ot, h = c([]), X = c(null), U = c(!1);
|
|
167
|
+
function q(t) {
|
|
168
|
+
U.value = !0, h.value.includes(t) ? (X.value = t, h.value = h.value.filter((a) => a !== t), setTimeout(() => {
|
|
169
|
+
U.value = !1, X.value = null;
|
|
170
|
+
}, 500)) : (h.value.push(t), setTimeout(() => {
|
|
171
|
+
U.value = !1;
|
|
172
|
+
}, 500)), ft("selectLegend", A.value.filter((a, o) => !h.value.includes(o)).map((a) => ({
|
|
173
|
+
name: a.name,
|
|
174
|
+
color: a.color,
|
|
175
|
+
proportion: a.totalProportion
|
|
176
176
|
})));
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
178
|
+
function yt() {
|
|
179
|
+
return A.value.map((t) => ({
|
|
180
180
|
name: t.name,
|
|
181
181
|
color: t.color,
|
|
182
182
|
proportion: t.totalProportion
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function mt() {
|
|
186
186
|
const t = O.value;
|
|
187
187
|
if ([null, void 0].includes(t?.categories)) {
|
|
188
|
-
|
|
188
|
+
D({
|
|
189
189
|
componentName: "VueUiRadar",
|
|
190
190
|
type: "dataset",
|
|
191
|
-
debug:
|
|
192
|
-
}),
|
|
191
|
+
debug: F.value
|
|
192
|
+
}), D({
|
|
193
193
|
componentName: "VueUiRadar",
|
|
194
194
|
type: "datasetAttribute",
|
|
195
195
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
196
|
-
debug:
|
|
196
|
+
debug: F.value
|
|
197
197
|
});
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
|
-
t.categories.length === 0 ?
|
|
200
|
+
t.categories.length === 0 ? D({
|
|
201
201
|
componentName: "VueUiRadar",
|
|
202
202
|
type: "datasetAttributeEmpty",
|
|
203
203
|
property: "categories",
|
|
204
|
-
debug:
|
|
205
|
-
}) : t.categories.forEach((
|
|
206
|
-
|
|
207
|
-
datasetObject:
|
|
204
|
+
debug: F.value
|
|
205
|
+
}) : t.categories.forEach((a, o) => {
|
|
206
|
+
Ze({
|
|
207
|
+
datasetObject: a,
|
|
208
208
|
requiredAttributes: ["name"]
|
|
209
209
|
}).forEach((l) => {
|
|
210
|
-
|
|
210
|
+
D({
|
|
211
211
|
componentName: "VueUiRadar",
|
|
212
212
|
type: "datasetAttribute",
|
|
213
|
-
property: `category.${l} at index ${
|
|
214
|
-
index:
|
|
215
|
-
debug:
|
|
213
|
+
property: `category.${l} at index ${o}`,
|
|
214
|
+
index: o,
|
|
215
|
+
debug: F.value
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
|
-
}), [null, void 0].includes(t?.series) ?
|
|
218
|
+
}), [null, void 0].includes(t?.series) ? D({
|
|
219
219
|
componentName: "VueUiRadar",
|
|
220
220
|
type: "datasetAttribute",
|
|
221
221
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
222
|
-
debug:
|
|
223
|
-
}) : t.series.forEach((
|
|
224
|
-
|
|
225
|
-
datasetObject:
|
|
222
|
+
debug: F.value
|
|
223
|
+
}) : t.series.forEach((a, o) => {
|
|
224
|
+
Ze({
|
|
225
|
+
datasetObject: a,
|
|
226
226
|
requiredAttributes: ["name", "values", "target"]
|
|
227
227
|
}).forEach((l) => {
|
|
228
|
-
|
|
228
|
+
D({
|
|
229
229
|
componentName: "VueUiRadar",
|
|
230
230
|
type: "datasetSerieAttribute",
|
|
231
231
|
key: "series",
|
|
232
232
|
property: l,
|
|
233
|
-
index:
|
|
234
|
-
debug:
|
|
233
|
+
index: o,
|
|
234
|
+
debug: F.value
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
-
|
|
239
|
+
de(
|
|
240
240
|
() => O.value,
|
|
241
|
-
() =>
|
|
241
|
+
() => mt(),
|
|
242
242
|
{ deep: !0, immediate: !0 }
|
|
243
243
|
);
|
|
244
|
-
const
|
|
245
|
-
const t = Array.isArray(O.value?.categories) ? O.value.categories : [],
|
|
246
|
-
return t.map((
|
|
247
|
-
name:
|
|
244
|
+
const w = v(() => {
|
|
245
|
+
const t = Array.isArray(O.value?.categories) ? O.value.categories : [], a = Ne.value ?? V;
|
|
246
|
+
return t.map((o, l) => ({
|
|
247
|
+
name: o?.name ?? "",
|
|
248
248
|
categoryId: `radar_category_${b.value}_${l}`,
|
|
249
|
-
color:
|
|
250
|
-
prefix:
|
|
251
|
-
suffix:
|
|
249
|
+
color: Qe(o?.color) || a[l] || V[l % V.length],
|
|
250
|
+
prefix: o?.prefix ?? "",
|
|
251
|
+
suffix: o?.suffix ?? ""
|
|
252
252
|
}));
|
|
253
|
-
}),
|
|
253
|
+
}), k = v(() => O.value.series.map((t, a) => ({
|
|
254
254
|
...t,
|
|
255
|
-
color:
|
|
256
|
-
serieId: `radar_serie_${b.value}_${
|
|
257
|
-
formatter: t.formatter || null
|
|
258
|
-
|
|
255
|
+
color: Qe(t.color) || Ne.value[a] || V[a] || V[a % V.length],
|
|
256
|
+
serieId: `radar_serie_${b.value}_${a}`,
|
|
257
|
+
formatter: t.formatter || null,
|
|
258
|
+
absoluteIndex: a
|
|
259
|
+
})));
|
|
260
|
+
function Re(t) {
|
|
261
|
+
if (!k.value.length)
|
|
262
|
+
return e.value.debug && console.warn("VueUiRadar - There are no series to show."), null;
|
|
263
|
+
const a = A.value.find((o) => o.name === t);
|
|
264
|
+
return a || (e.value.debug && console.warn(`VueUiRadar - Series name not found "${t}"`), null);
|
|
265
|
+
}
|
|
266
|
+
function bt(t) {
|
|
267
|
+
const a = Re(t);
|
|
268
|
+
a !== null && h.value.includes(a.absoluteIndex) && q(a.absoluteIndex);
|
|
269
|
+
}
|
|
270
|
+
function kt(t) {
|
|
271
|
+
const a = Re(t);
|
|
272
|
+
a !== null && (h.value.includes(a.absoluteIndex) || q(a.absoluteIndex));
|
|
273
|
+
}
|
|
274
|
+
const Ve = v(() => Math.max(...k.value.flatMap((t) => t.values))), De = v(() => k.value.length), ne = v(() => Math.min(i.value.width, i.value.height) / 3), ze = v(() => Je({
|
|
259
275
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
260
|
-
radius:
|
|
276
|
+
radius: ne.value,
|
|
261
277
|
sides: De.value,
|
|
262
278
|
rotation: 0
|
|
263
|
-
})),
|
|
279
|
+
})), Ct = v(() => {
|
|
264
280
|
const t = [];
|
|
265
|
-
for (let
|
|
266
|
-
t.push(
|
|
281
|
+
for (let a = 0; a < ne.value; a += ne.value / e.value.style.chart.layout.grid.graduations)
|
|
282
|
+
t.push(a);
|
|
267
283
|
return t;
|
|
268
|
-
}),
|
|
269
|
-
const
|
|
284
|
+
}), S = v(() => ze.value.coordinates.map((t, a) => {
|
|
285
|
+
const o = k.value[a].values.map((l) => $t({
|
|
270
286
|
centerX: i.value.width / 2,
|
|
271
287
|
centerY: i.value.height / 2,
|
|
272
288
|
apexX: t.x,
|
|
273
289
|
apexY: t.y,
|
|
274
|
-
proportion: l / (
|
|
290
|
+
proportion: l / (k.value[a].target || Ve.value)
|
|
275
291
|
}));
|
|
276
292
|
return {
|
|
277
293
|
...t,
|
|
278
|
-
...
|
|
279
|
-
plots:
|
|
294
|
+
...k.value[a],
|
|
295
|
+
plots: o
|
|
280
296
|
};
|
|
281
297
|
}).map((t) => ({
|
|
282
298
|
...t,
|
|
283
|
-
labelX:
|
|
284
|
-
labelY:
|
|
285
|
-
labelAnchor:
|
|
299
|
+
labelX: re(t).x,
|
|
300
|
+
labelY: re(t).y,
|
|
301
|
+
labelAnchor: re(t).anchor
|
|
286
302
|
})));
|
|
287
|
-
function
|
|
288
|
-
let
|
|
289
|
-
return t = Math.round(t),
|
|
303
|
+
function re({ x: t, y: a }) {
|
|
304
|
+
let o = "middle";
|
|
305
|
+
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 };
|
|
290
306
|
}
|
|
291
|
-
const
|
|
307
|
+
const wt = v({
|
|
292
308
|
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
293
309
|
set: (t) => t
|
|
294
|
-
}), { autoSizeLabels:
|
|
310
|
+
}), { autoSizeLabels: Ue } = ua({
|
|
295
311
|
svgRef: j,
|
|
296
312
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
297
313
|
minFontSize: 6,
|
|
298
|
-
sizeRef:
|
|
314
|
+
sizeRef: wt,
|
|
299
315
|
labelClass: ".vue-ui-radar-apex-label"
|
|
300
316
|
});
|
|
301
|
-
function
|
|
317
|
+
function $t({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
302
318
|
return {
|
|
303
|
-
x: t + (
|
|
304
|
-
y:
|
|
319
|
+
x: t + (o - t) * s,
|
|
320
|
+
y: a + (l - a) * s
|
|
305
321
|
};
|
|
306
322
|
}
|
|
307
|
-
const
|
|
308
|
-
const t =
|
|
309
|
-
return
|
|
310
|
-
const l =
|
|
323
|
+
const A = v(() => {
|
|
324
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ve.value)));
|
|
325
|
+
return w.value.map((a, o) => {
|
|
326
|
+
const l = Ht(t.map((s) => s[o]).reduce((s, d) => s + d, 0) / k.value.length);
|
|
311
327
|
return {
|
|
312
|
-
...
|
|
328
|
+
...a,
|
|
329
|
+
absoluteIndex: o,
|
|
313
330
|
totalProportion: l,
|
|
314
331
|
shape: "circle",
|
|
315
|
-
opacity:
|
|
316
|
-
segregate: () =>
|
|
317
|
-
isSegregated:
|
|
318
|
-
display: `${
|
|
332
|
+
opacity: h.value.includes(o) ? 0.5 : 1,
|
|
333
|
+
segregate: () => q(o),
|
|
334
|
+
isSegregated: h.value.includes(o),
|
|
335
|
+
display: `${a.name}: ${G({
|
|
319
336
|
v: (l ?? 0) * 100,
|
|
320
337
|
s: "%",
|
|
321
338
|
r: e.value.style.chart.legend.roundingPercentage
|
|
322
339
|
})}`
|
|
323
340
|
};
|
|
324
341
|
});
|
|
325
|
-
}),
|
|
342
|
+
}), _t = v(() => ({
|
|
326
343
|
cy: "radar-div-legend",
|
|
327
344
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
328
345
|
color: e.value.style.chart.legend.color,
|
|
329
346
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
330
347
|
paddingBottom: 12,
|
|
331
348
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
332
|
-
})),
|
|
349
|
+
})), Q = v(() => {
|
|
333
350
|
const t = [
|
|
334
351
|
{ name: e.value.translations.datapoint, color: "" },
|
|
335
352
|
{ name: e.value.translations.target, color: "" },
|
|
336
|
-
...
|
|
337
|
-
],
|
|
353
|
+
...A.value
|
|
354
|
+
], a = O.value.series.map((l) => [
|
|
338
355
|
l.name,
|
|
339
|
-
|
|
356
|
+
he(
|
|
340
357
|
l.formatter,
|
|
341
358
|
l.target,
|
|
342
359
|
G({
|
|
@@ -346,16 +363,16 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
346
363
|
r: e.value.table.td.roundingValue
|
|
347
364
|
})
|
|
348
365
|
),
|
|
349
|
-
...l.values.map((s, d) => `${
|
|
366
|
+
...l.values.map((s, d) => `${he(
|
|
350
367
|
l.formatter,
|
|
351
368
|
s,
|
|
352
|
-
G({ p:
|
|
369
|
+
G({ p: w.value[d]?.prefix ?? "", v: s, s: w.value[d]?.suffix ?? "", r: e.value.table.td.roundingValue })
|
|
353
370
|
)} (${isNaN(s / l.target) ? "" : G({
|
|
354
371
|
v: s / l.target * 100,
|
|
355
372
|
s: "%",
|
|
356
373
|
r: e.value.table.td.roundingPercentage
|
|
357
374
|
})})`)
|
|
358
|
-
]),
|
|
375
|
+
]), o = {
|
|
359
376
|
th: {
|
|
360
377
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
361
378
|
color: e.value.table.th.color,
|
|
@@ -368,110 +385,110 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
368
385
|
},
|
|
369
386
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
370
387
|
};
|
|
371
|
-
return { head: t, body:
|
|
372
|
-
}),
|
|
373
|
-
function
|
|
374
|
-
|
|
388
|
+
return { head: t, body: a, config: o, colNames: t };
|
|
389
|
+
}), J = c(null), ue = c([]), ie = c(null);
|
|
390
|
+
function Tt(t, a) {
|
|
391
|
+
te.value = !1, J.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
375
392
|
}
|
|
376
|
-
function
|
|
377
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
393
|
+
function St(t, a) {
|
|
394
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
378
395
|
}
|
|
379
|
-
function
|
|
380
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
381
|
-
const
|
|
382
|
-
|
|
396
|
+
function At(t, a) {
|
|
397
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a });
|
|
398
|
+
const o = w.value.slice();
|
|
399
|
+
ue.value = [], J.value = a, te.value = !0, ie.value = {
|
|
383
400
|
datapoint: t,
|
|
384
|
-
seriesIndex:
|
|
401
|
+
seriesIndex: a,
|
|
385
402
|
series: {
|
|
386
|
-
categories:
|
|
387
|
-
datapoints:
|
|
388
|
-
radar:
|
|
403
|
+
categories: o,
|
|
404
|
+
datapoints: k.value,
|
|
405
|
+
radar: S.value
|
|
389
406
|
},
|
|
390
407
|
config: e.value
|
|
391
408
|
};
|
|
392
409
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
393
|
-
if (
|
|
394
|
-
seriesIndex:
|
|
410
|
+
if (Kt(l) && Zt(() => l({
|
|
411
|
+
seriesIndex: a,
|
|
395
412
|
datapoint: t,
|
|
396
|
-
series: { categories:
|
|
413
|
+
series: { categories: o, datapoints: k.value, radar: S.value },
|
|
397
414
|
config: e.value
|
|
398
415
|
}))) {
|
|
399
|
-
|
|
400
|
-
seriesIndex:
|
|
416
|
+
ae.value = l({
|
|
417
|
+
seriesIndex: a,
|
|
401
418
|
datapoint: t,
|
|
402
|
-
series: { categories:
|
|
419
|
+
series: { categories: o, datapoints: k.value, radar: S.value },
|
|
403
420
|
config: e.value
|
|
404
421
|
});
|
|
405
422
|
return;
|
|
406
423
|
}
|
|
407
|
-
|
|
424
|
+
ae.value = `<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>`;
|
|
408
425
|
for (let s = 0; s < t.values.length; s += 1)
|
|
409
|
-
if (!
|
|
410
|
-
const d =
|
|
426
|
+
if (!h.value.includes(s)) {
|
|
427
|
+
const d = o[s], m = t.values[s], Xe = isNaN(m / t.target) ? 0 : m / t.target * 100, B = he(
|
|
411
428
|
t.formatter,
|
|
412
429
|
m,
|
|
413
430
|
G({
|
|
414
|
-
p:
|
|
431
|
+
p: w.value[s].prefix,
|
|
415
432
|
v: m,
|
|
416
|
-
s:
|
|
433
|
+
s: w.value[s].suffix,
|
|
417
434
|
r: e.value.style.chart.tooltip.roundingValue
|
|
418
435
|
}),
|
|
419
436
|
{ datapoint: t }
|
|
420
|
-
),
|
|
421
|
-
v:
|
|
437
|
+
), Ye = G({
|
|
438
|
+
v: Xe,
|
|
422
439
|
s: "%",
|
|
423
440
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
424
|
-
}),
|
|
425
|
-
|
|
441
|
+
}), Rt = e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${B} (${Ye})` : e.value.style.chart.tooltip.showValue && !e.value.style.chart.tooltip.showPercentage ? B : !e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${Ye}` : "";
|
|
442
|
+
ue.value.push({
|
|
426
443
|
name: d?.name ?? `#${s + 1}`,
|
|
427
444
|
value: t.values[s] / t.target * 100,
|
|
428
445
|
color: d?.color,
|
|
429
|
-
suffix:
|
|
446
|
+
suffix: Rt,
|
|
430
447
|
prefix: "",
|
|
431
448
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
432
449
|
formatter: t.formatter
|
|
433
450
|
});
|
|
434
451
|
}
|
|
435
452
|
}
|
|
436
|
-
function
|
|
437
|
-
|
|
438
|
-
const
|
|
439
|
-
|
|
440
|
-
isNaN(
|
|
441
|
-
])]), s =
|
|
442
|
-
t ? t(d) :
|
|
453
|
+
function ce(t = null) {
|
|
454
|
+
qe(() => {
|
|
455
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...A.value.flatMap((m) => [[m.name], ["%"]])], l = O.value.series.map((m, Xe) => [m.name, m.target, ...m.values.flatMap((B) => [
|
|
456
|
+
B,
|
|
457
|
+
isNaN(B / m.target) ? "" : B / m.target * 100
|
|
458
|
+
])]), s = a.concat([o]).concat(l), d = Qt(s);
|
|
459
|
+
t ? t(d) : Jt({ csvContent: d, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
443
460
|
});
|
|
444
461
|
}
|
|
445
462
|
const I = c(!1);
|
|
446
463
|
function Be(t) {
|
|
447
|
-
I.value = t,
|
|
464
|
+
I.value = t, ye.value += 1;
|
|
448
465
|
}
|
|
449
|
-
function
|
|
466
|
+
function Ee() {
|
|
450
467
|
y.value.showTable = !y.value.showTable;
|
|
451
468
|
}
|
|
452
|
-
function
|
|
469
|
+
function Me() {
|
|
453
470
|
y.value.showTooltip = !y.value.showTooltip;
|
|
454
471
|
}
|
|
455
|
-
const
|
|
456
|
-
function
|
|
457
|
-
|
|
472
|
+
const K = c(!1);
|
|
473
|
+
function ve() {
|
|
474
|
+
K.value = !K.value;
|
|
458
475
|
}
|
|
459
|
-
async function
|
|
460
|
-
if (
|
|
461
|
-
const { width:
|
|
476
|
+
async function Pt({ scale: t = 2 } = {}) {
|
|
477
|
+
if (!$.value) return;
|
|
478
|
+
const { width: a, height: o } = $.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: d } = await ia({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
462
479
|
return {
|
|
463
480
|
imageUri: s,
|
|
464
481
|
base64: d,
|
|
465
482
|
title: e.value.style.chart.title.text,
|
|
466
|
-
width:
|
|
467
|
-
height:
|
|
483
|
+
width: a,
|
|
484
|
+
height: o,
|
|
468
485
|
aspectRatio: l
|
|
469
486
|
};
|
|
470
487
|
}
|
|
471
488
|
const Y = v(() => {
|
|
472
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
489
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = y.value.showTable;
|
|
473
490
|
return {
|
|
474
|
-
component: t ?
|
|
491
|
+
component: t ? dt : rt,
|
|
475
492
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
476
493
|
props: t ? {
|
|
477
494
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -479,12 +496,12 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
479
496
|
headerColor: e.value.table.th.color,
|
|
480
497
|
headerBg: e.value.table.th.backgroundColor,
|
|
481
498
|
isFullscreen: I.value,
|
|
482
|
-
fullscreenParent:
|
|
499
|
+
fullscreenParent: $.value,
|
|
483
500
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
484
501
|
} : {
|
|
485
502
|
hideDetails: !0,
|
|
486
503
|
config: {
|
|
487
|
-
open:
|
|
504
|
+
open: a,
|
|
488
505
|
maxHeight: 1e4,
|
|
489
506
|
body: {
|
|
490
507
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -498,72 +515,74 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
498
515
|
}
|
|
499
516
|
};
|
|
500
517
|
});
|
|
501
|
-
|
|
518
|
+
de(() => y.value.showTable, (t) => {
|
|
502
519
|
e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
|
|
503
520
|
});
|
|
504
|
-
function
|
|
505
|
-
y.value.showTable = !1,
|
|
521
|
+
function Ge() {
|
|
522
|
+
y.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
|
|
506
523
|
}
|
|
507
|
-
const
|
|
524
|
+
const xt = v(() => A.value.map((t) => ({
|
|
508
525
|
...t,
|
|
509
526
|
name: t.display
|
|
510
|
-
}))),
|
|
527
|
+
}))), Ot = v(() => e.value.style.chart.backgroundColor), Ft = v(() => e.value.style.chart.legend), It = v(() => e.value.style.chart.title), { exportSvg: Lt, getSvg: Nt } = pa({
|
|
511
528
|
svg: j,
|
|
512
|
-
title:
|
|
513
|
-
legend:
|
|
514
|
-
legendItems:
|
|
515
|
-
backgroundColor:
|
|
529
|
+
title: It,
|
|
530
|
+
legend: Ft,
|
|
531
|
+
legendItems: xt,
|
|
532
|
+
backgroundColor: Ot
|
|
516
533
|
});
|
|
517
|
-
async function
|
|
534
|
+
async function We({ isCb: t }) {
|
|
518
535
|
if (t) {
|
|
519
|
-
const { blob:
|
|
520
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
536
|
+
const { blob: a, url: o, text: l, dataUrl: s } = await Nt();
|
|
537
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: o, text: l, dataUrl: s });
|
|
521
538
|
} else
|
|
522
|
-
|
|
539
|
+
Lt();
|
|
523
540
|
}
|
|
524
|
-
return
|
|
525
|
-
getData:
|
|
526
|
-
getImage:
|
|
527
|
-
generatePdf:
|
|
528
|
-
generateCsv:
|
|
529
|
-
generateImage:
|
|
530
|
-
generateSvg:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
541
|
+
return at({
|
|
542
|
+
getData: yt,
|
|
543
|
+
getImage: Pt,
|
|
544
|
+
generatePdf: Ie,
|
|
545
|
+
generateCsv: ce,
|
|
546
|
+
generateImage: Le,
|
|
547
|
+
generateSvg: We,
|
|
548
|
+
hideSeries: kt,
|
|
549
|
+
showSeries: bt,
|
|
550
|
+
toggleTable: Ee,
|
|
551
|
+
toggleTooltip: Me,
|
|
552
|
+
toggleAnnotator: ve,
|
|
534
553
|
toggleFullscreen: Be
|
|
535
|
-
}), (t,
|
|
554
|
+
}), (t, a) => (n(), r("div", {
|
|
536
555
|
class: H(`vue-data-ui-component vue-ui-radar ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
537
556
|
ref_key: "radarChart",
|
|
538
|
-
ref:
|
|
557
|
+
ref: $,
|
|
539
558
|
id: `vue-ui-radar_${b.value}`,
|
|
540
|
-
style:
|
|
541
|
-
onMouseenter:
|
|
542
|
-
onMouseleave:
|
|
559
|
+
style: Z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
560
|
+
onMouseenter: a[2] || (a[2] = () => u(Ae)(!0)),
|
|
561
|
+
onMouseleave: a[3] || (a[3] = () => u(Ae)(!1))
|
|
543
562
|
}, [
|
|
544
|
-
e.value.userOptions.buttons.annotator ? (n(), P(u(
|
|
563
|
+
e.value.userOptions.buttons.annotator ? (n(), P(u(it), {
|
|
545
564
|
key: 0,
|
|
546
565
|
svgRef: u(j),
|
|
547
566
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
548
567
|
color: e.value.style.chart.color,
|
|
549
|
-
active:
|
|
550
|
-
onClose:
|
|
568
|
+
active: K.value,
|
|
569
|
+
onClose: ve
|
|
551
570
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
552
|
-
|
|
571
|
+
ht.value ? (n(), r("div", {
|
|
553
572
|
key: 1,
|
|
554
573
|
ref_key: "noTitle",
|
|
555
|
-
ref:
|
|
574
|
+
ref: Ce,
|
|
556
575
|
class: "vue-data-ui-no-title-space",
|
|
557
576
|
style: "height:36px; width: 100%;background:transparent"
|
|
558
577
|
}, null, 512)) : p("", !0),
|
|
559
578
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
560
579
|
key: 2,
|
|
561
580
|
ref_key: "chartTitle",
|
|
562
|
-
ref:
|
|
581
|
+
ref: me,
|
|
563
582
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
564
583
|
}, [
|
|
565
|
-
(n(), P(
|
|
566
|
-
key: `title_${
|
|
584
|
+
(n(), P(ca, {
|
|
585
|
+
key: `title_${we.value}`,
|
|
567
586
|
config: {
|
|
568
587
|
title: {
|
|
569
588
|
cy: "radar-div-title",
|
|
@@ -576,16 +595,16 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
576
595
|
}
|
|
577
596
|
}, null, 8, ["config"]))
|
|
578
597
|
], 512)) : p("", !0),
|
|
579
|
-
|
|
598
|
+
C("div", {
|
|
580
599
|
id: `legend-top-${b.value}`
|
|
581
|
-
}, null, 8,
|
|
582
|
-
e.value.userOptions.show &&
|
|
600
|
+
}, null, 8, fa),
|
|
601
|
+
e.value.userOptions.show && fe.value && (u(Pe) || u(le)) ? (n(), P(u(ct), {
|
|
583
602
|
ref_key: "userOptionsRef",
|
|
584
|
-
ref:
|
|
585
|
-
key: `user_options_${
|
|
603
|
+
ref: oe,
|
|
604
|
+
key: `user_options_${ye.value}`,
|
|
586
605
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
587
606
|
color: e.value.style.chart.color,
|
|
588
|
-
isImaging: u(
|
|
607
|
+
isImaging: u(Fe),
|
|
589
608
|
isPrinting: u(Oe),
|
|
590
609
|
uid: b.value,
|
|
591
610
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
@@ -598,85 +617,85 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
598
617
|
isFullscreen: I.value,
|
|
599
618
|
isTooltip: y.value.showTooltip,
|
|
600
619
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
601
|
-
chartElement:
|
|
620
|
+
chartElement: $.value,
|
|
602
621
|
position: e.value.userOptions.position,
|
|
603
622
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
604
|
-
isAnnotation:
|
|
623
|
+
isAnnotation: K.value,
|
|
605
624
|
callbacks: e.value.userOptions.callbacks,
|
|
606
625
|
printScale: e.value.userOptions.print.scale,
|
|
607
626
|
tableDialog: e.value.table.useDialog,
|
|
608
627
|
onToggleFullscreen: Be,
|
|
609
|
-
onGeneratePdf: u(
|
|
610
|
-
onGenerateCsv:
|
|
611
|
-
onGenerateImage: u(
|
|
612
|
-
onGenerateSvg:
|
|
613
|
-
onToggleTable:
|
|
614
|
-
onToggleTooltip:
|
|
615
|
-
onToggleAnnotator:
|
|
616
|
-
style:
|
|
617
|
-
visibility: u(Pe) ? u(
|
|
628
|
+
onGeneratePdf: u(Ie),
|
|
629
|
+
onGenerateCsv: ce,
|
|
630
|
+
onGenerateImage: u(Le),
|
|
631
|
+
onGenerateSvg: We,
|
|
632
|
+
onToggleTable: Ee,
|
|
633
|
+
onToggleTooltip: Me,
|
|
634
|
+
onToggleAnnotator: ve,
|
|
635
|
+
style: Z({
|
|
636
|
+
visibility: u(Pe) ? u(le) ? "visible" : "hidden" : "visible"
|
|
618
637
|
})
|
|
619
|
-
},
|
|
638
|
+
}, je({ _: 2 }, [
|
|
620
639
|
t.$slots.menuIcon ? {
|
|
621
640
|
name: "menuIcon",
|
|
622
|
-
fn:
|
|
623
|
-
f(t.$slots, "menuIcon", E(M({ isOpen:
|
|
641
|
+
fn: g(({ isOpen: o, color: l }) => [
|
|
642
|
+
f(t.$slots, "menuIcon", E(M({ isOpen: o, color: l })), void 0, !0)
|
|
624
643
|
]),
|
|
625
644
|
key: "0"
|
|
626
645
|
} : void 0,
|
|
627
646
|
t.$slots.optionTooltip ? {
|
|
628
647
|
name: "optionTooltip",
|
|
629
|
-
fn:
|
|
648
|
+
fn: g(() => [
|
|
630
649
|
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
631
650
|
]),
|
|
632
651
|
key: "1"
|
|
633
652
|
} : void 0,
|
|
634
653
|
t.$slots.optionPdf ? {
|
|
635
654
|
name: "optionPdf",
|
|
636
|
-
fn:
|
|
655
|
+
fn: g(() => [
|
|
637
656
|
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
638
657
|
]),
|
|
639
658
|
key: "2"
|
|
640
659
|
} : void 0,
|
|
641
660
|
t.$slots.optionCsv ? {
|
|
642
661
|
name: "optionCsv",
|
|
643
|
-
fn:
|
|
662
|
+
fn: g(() => [
|
|
644
663
|
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
645
664
|
]),
|
|
646
665
|
key: "3"
|
|
647
666
|
} : void 0,
|
|
648
667
|
t.$slots.optionImg ? {
|
|
649
668
|
name: "optionImg",
|
|
650
|
-
fn:
|
|
669
|
+
fn: g(() => [
|
|
651
670
|
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
652
671
|
]),
|
|
653
672
|
key: "4"
|
|
654
673
|
} : void 0,
|
|
655
674
|
t.$slots.optionSvg ? {
|
|
656
675
|
name: "optionSvg",
|
|
657
|
-
fn:
|
|
676
|
+
fn: g(() => [
|
|
658
677
|
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
659
678
|
]),
|
|
660
679
|
key: "5"
|
|
661
680
|
} : void 0,
|
|
662
681
|
t.$slots.optionTable ? {
|
|
663
682
|
name: "optionTable",
|
|
664
|
-
fn:
|
|
683
|
+
fn: g(() => [
|
|
665
684
|
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
666
685
|
]),
|
|
667
686
|
key: "6"
|
|
668
687
|
} : void 0,
|
|
669
688
|
t.$slots.optionFullscreen ? {
|
|
670
689
|
name: "optionFullscreen",
|
|
671
|
-
fn:
|
|
672
|
-
f(t.$slots, "optionFullscreen", E(M({ toggleFullscreen:
|
|
690
|
+
fn: g(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
691
|
+
f(t.$slots, "optionFullscreen", E(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
673
692
|
]),
|
|
674
693
|
key: "7"
|
|
675
694
|
} : void 0,
|
|
676
695
|
t.$slots.optionAnnotator ? {
|
|
677
696
|
name: "optionAnnotator",
|
|
678
|
-
fn:
|
|
679
|
-
f(t.$slots, "optionAnnotator", E(M({ toggleAnnotator:
|
|
697
|
+
fn: g(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
698
|
+
f(t.$slots, "optionAnnotator", E(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
680
699
|
]),
|
|
681
700
|
key: "8"
|
|
682
701
|
} : void 0
|
|
@@ -684,12 +703,12 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
684
703
|
(n(), r("svg", {
|
|
685
704
|
ref_key: "svgRef",
|
|
686
705
|
ref: j,
|
|
687
|
-
xmlns: u(
|
|
706
|
+
xmlns: u(jt),
|
|
688
707
|
class: H({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
689
708
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
690
|
-
style:
|
|
709
|
+
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
691
710
|
}, [
|
|
692
|
-
|
|
711
|
+
ee(u(vt)),
|
|
693
712
|
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
694
713
|
key: 0,
|
|
695
714
|
x: 0,
|
|
@@ -701,9 +720,9 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
701
720
|
}
|
|
702
721
|
}, [
|
|
703
722
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
704
|
-
], 8,
|
|
705
|
-
|
|
706
|
-
(n(!0), r(L, null, N(
|
|
723
|
+
], 8, ma)) : p("", !0),
|
|
724
|
+
C("defs", null, [
|
|
725
|
+
(n(!0), r(L, null, N(w.value, (o, l) => (n(), r("radialGradient", {
|
|
707
726
|
cx: "50%",
|
|
708
727
|
cy: "50%",
|
|
709
728
|
r: "50%",
|
|
@@ -711,139 +730,139 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
711
730
|
fy: "50%",
|
|
712
731
|
id: `radar_gradient_${b.value}_${l}`
|
|
713
732
|
}, [
|
|
714
|
-
|
|
733
|
+
C("stop", {
|
|
715
734
|
offset: "0%",
|
|
716
|
-
"stop-color": u(
|
|
717
|
-
}, null, 8,
|
|
718
|
-
|
|
735
|
+
"stop-color": u(ge)(u(qt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
736
|
+
}, null, 8, ka),
|
|
737
|
+
C("stop", {
|
|
719
738
|
offset: "100%",
|
|
720
|
-
"stop-color": u(
|
|
721
|
-
}, null, 8,
|
|
722
|
-
], 8,
|
|
739
|
+
"stop-color": u(ge)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
740
|
+
}, null, 8, Ca)
|
|
741
|
+
], 8, ba))), 256))
|
|
723
742
|
]),
|
|
724
|
-
e.value.style.chart.layout.grid.show ? (n(), r("g",
|
|
725
|
-
(n(!0), r(L, null, N(
|
|
743
|
+
e.value.style.chart.layout.grid.show ? (n(), r("g", wa, [
|
|
744
|
+
(n(!0), r(L, null, N(S.value, (o) => (n(), r("line", {
|
|
726
745
|
x1: i.value.width / 2,
|
|
727
746
|
y1: i.value.height / 2,
|
|
728
|
-
x2:
|
|
729
|
-
y2:
|
|
747
|
+
x2: o.x,
|
|
748
|
+
y2: o.y,
|
|
730
749
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
731
750
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
732
|
-
}, null, 8,
|
|
733
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (n(), r("g",
|
|
734
|
-
(n(!0), r(L, null, N(
|
|
735
|
-
d: u(
|
|
751
|
+
}, null, 8, $a))), 256)),
|
|
752
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (n(), r("g", _a, [
|
|
753
|
+
(n(!0), r(L, null, N(Ct.value, (o) => (n(), r("path", {
|
|
754
|
+
d: u(Je)({
|
|
736
755
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
737
|
-
radius:
|
|
756
|
+
radius: o,
|
|
738
757
|
sides: De.value,
|
|
739
758
|
rotation: 0
|
|
740
759
|
}).path,
|
|
741
760
|
fill: "none",
|
|
742
761
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
743
762
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
744
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, Ta))), 256))
|
|
745
764
|
])) : p("", !0)
|
|
746
765
|
])) : p("", !0),
|
|
747
|
-
|
|
766
|
+
C("path", {
|
|
748
767
|
d: ze.value.path,
|
|
749
768
|
fill: "none",
|
|
750
769
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
751
770
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
752
771
|
"stroke-linejoin": "round",
|
|
753
772
|
"stroke-linecap": "round"
|
|
754
|
-
}, null, 8,
|
|
755
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g",
|
|
756
|
-
(n(!0), r(L, null, N(
|
|
773
|
+
}, null, 8, Sa),
|
|
774
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Aa, [
|
|
775
|
+
(n(!0), r(L, null, N(S.value, (o, l) => (n(), r("text", {
|
|
757
776
|
class: "vue-ui-radar-apex-label",
|
|
758
|
-
x:
|
|
759
|
-
y:
|
|
760
|
-
"text-anchor":
|
|
777
|
+
x: o.labelX,
|
|
778
|
+
y: o.labelY,
|
|
779
|
+
"text-anchor": o.labelAnchor,
|
|
761
780
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
762
781
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
763
|
-
onMouseenter: (s) =>
|
|
764
|
-
onMouseleave: (s) =>
|
|
765
|
-
onClick: (s) =>
|
|
766
|
-
}, R(
|
|
782
|
+
onMouseenter: (s) => At(o, l),
|
|
783
|
+
onMouseleave: (s) => Tt(o, l),
|
|
784
|
+
onClick: (s) => St(o, l)
|
|
785
|
+
}, R(o.name), 41, Pa))), 256))
|
|
767
786
|
])) : p("", !0),
|
|
768
|
-
(n(!0), r(L, null, N(
|
|
769
|
-
|
|
770
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !
|
|
787
|
+
(n(!0), r(L, null, N(w.value, (o, l) => (n(), r("g", null, [
|
|
788
|
+
C("g", null, [
|
|
789
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !h.value.includes(l) ? (n(), r("polygon", {
|
|
771
790
|
key: 0,
|
|
772
|
-
points: u(
|
|
791
|
+
points: u(Ke)(S.value.map((s) => s.plots[l]), !1, !0),
|
|
773
792
|
stroke: e.value.style.chart.backgroundColor,
|
|
774
793
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
775
794
|
fill: "none",
|
|
776
|
-
class: H({ "animated-out":
|
|
777
|
-
}, null, 10,
|
|
778
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !
|
|
795
|
+
class: H({ "animated-out": h.value.includes(l) && e.value.useCssAnimation, "animated-in": U.value && X.value === l && e.value.useCssAnimation })
|
|
796
|
+
}, null, 10, xa)) : p("", !0),
|
|
797
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !h.value.includes(l) ? (n(), r("polygon", {
|
|
779
798
|
key: 1,
|
|
780
|
-
points: u(
|
|
781
|
-
stroke:
|
|
799
|
+
points: u(Ke)(S.value.map((s) => s.plots[l]), !1, !0),
|
|
800
|
+
stroke: o.color,
|
|
782
801
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
783
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : u(
|
|
784
|
-
class: H({ "animated-out":
|
|
785
|
-
}, null, 10,
|
|
802
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : u(ge)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
803
|
+
class: H({ "animated-out": h.value.includes(l) && e.value.useCssAnimation, "animated-in": U.value && X.value === l && e.value.useCssAnimation })
|
|
804
|
+
}, null, 10, Oa)) : p("", !0)
|
|
786
805
|
])
|
|
787
806
|
]))), 256)),
|
|
788
|
-
e.value.style.chart.layout.plots.show ? (n(), r("g",
|
|
789
|
-
(n(!0), r(L, null, N(
|
|
790
|
-
(n(!0), r(L, null, N(
|
|
807
|
+
e.value.style.chart.layout.plots.show ? (n(), r("g", Fa, [
|
|
808
|
+
(n(!0), r(L, null, N(S.value, (o, l) => (n(), r("g", null, [
|
|
809
|
+
(n(!0), r(L, null, N(o.plots, (s, d) => (n(), r("circle", {
|
|
791
810
|
cx: s.x,
|
|
792
811
|
cy: s.y,
|
|
793
|
-
fill:
|
|
794
|
-
r:
|
|
795
|
-
stroke:
|
|
812
|
+
fill: h.value.includes(d) ? "transparent" : w.value[d] ? w.value[d].color : "transparent",
|
|
813
|
+
r: J.value !== null && J.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
814
|
+
stroke: h.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
796
815
|
"stroke-width": 0.5,
|
|
797
|
-
class: H({ "animated-out":
|
|
798
|
-
}, null, 10,
|
|
816
|
+
class: H({ "animated-out": h.value.includes(d) && e.value.useCssAnimation, "animated-in": U.value && X.value === d && e.value.useCssAnimation })
|
|
817
|
+
}, null, 10, Ia))), 256))
|
|
799
818
|
]))), 256))
|
|
800
819
|
])) : p("", !0),
|
|
801
820
|
f(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
802
|
-
], 14,
|
|
803
|
-
t.$slots.watermark ? (n(), r("div",
|
|
804
|
-
f(t.$slots, "watermark", E(M({ isPrinting: u(Oe) || u(
|
|
821
|
+
], 14, ya)),
|
|
822
|
+
t.$slots.watermark ? (n(), r("div", La, [
|
|
823
|
+
f(t.$slots, "watermark", E(M({ isPrinting: u(Oe) || u(Fe) })), void 0, !0)
|
|
805
824
|
])) : p("", !0),
|
|
806
|
-
|
|
825
|
+
C("div", {
|
|
807
826
|
id: `legend-bottom-${b.value}`
|
|
808
|
-
}, null, 8,
|
|
809
|
-
|
|
827
|
+
}, null, 8, Na),
|
|
828
|
+
Te.value ? (n(), P(Ut, {
|
|
810
829
|
key: 5,
|
|
811
830
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
812
831
|
}, [
|
|
813
|
-
|
|
832
|
+
C("div", {
|
|
814
833
|
ref_key: "chartLegend",
|
|
815
|
-
ref:
|
|
834
|
+
ref: be
|
|
816
835
|
}, [
|
|
817
|
-
e.value.style.chart.legend.show ? (n(), P(
|
|
836
|
+
e.value.style.chart.legend.show ? (n(), P(va, {
|
|
818
837
|
key: `legend_${_e.value}`,
|
|
819
|
-
legendSet:
|
|
820
|
-
config:
|
|
821
|
-
onClickMarker:
|
|
838
|
+
legendSet: A.value,
|
|
839
|
+
config: _t.value,
|
|
840
|
+
onClickMarker: a[0] || (a[0] = ({ i: o }) => q(o))
|
|
822
841
|
}, {
|
|
823
|
-
item:
|
|
824
|
-
u(
|
|
842
|
+
item: g(({ legend: o, index: l }) => [
|
|
843
|
+
u(Se) ? p("", !0) : (n(), r("div", {
|
|
825
844
|
key: 0,
|
|
826
|
-
onClick: (s) =>
|
|
827
|
-
style:
|
|
828
|
-
}, R(
|
|
845
|
+
onClick: (s) => o.segregate(),
|
|
846
|
+
style: Z(`opacity:${h.value.includes(l) ? 0.5 : 1}`)
|
|
847
|
+
}, R(o.display), 13, Ra))
|
|
829
848
|
]),
|
|
830
849
|
_: 1
|
|
831
850
|
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
832
851
|
key: 1,
|
|
833
|
-
legend:
|
|
852
|
+
legend: A.value
|
|
834
853
|
}, void 0, !0)
|
|
835
854
|
], 512)
|
|
836
855
|
], 8, ["to"])) : p("", !0),
|
|
837
856
|
t.$slots.source ? (n(), r("div", {
|
|
838
857
|
key: 6,
|
|
839
858
|
ref_key: "source",
|
|
840
|
-
ref:
|
|
859
|
+
ref: ke,
|
|
841
860
|
dir: "auto"
|
|
842
861
|
}, [
|
|
843
862
|
f(t.$slots, "source", {}, void 0, !0)
|
|
844
863
|
], 512)) : p("", !0),
|
|
845
|
-
|
|
846
|
-
show: y.value.showTooltip &&
|
|
864
|
+
ee(u(lt), {
|
|
865
|
+
show: y.value.showTooltip && te.value,
|
|
847
866
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
848
867
|
color: e.value.style.chart.tooltip.color,
|
|
849
868
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -853,8 +872,8 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
853
872
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
854
873
|
position: e.value.style.chart.tooltip.position,
|
|
855
874
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
856
|
-
parent:
|
|
857
|
-
content:
|
|
875
|
+
parent: $.value,
|
|
876
|
+
content: ae.value,
|
|
858
877
|
isFullscreen: I.value,
|
|
859
878
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
860
879
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -862,50 +881,50 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
862
881
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
863
882
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
864
883
|
}, {
|
|
865
|
-
"tooltip-before":
|
|
866
|
-
f(t.$slots, "tooltip-before", E(M({ ...
|
|
884
|
+
"tooltip-before": g(() => [
|
|
885
|
+
f(t.$slots, "tooltip-before", E(M({ ...ie.value })), void 0, !0)
|
|
867
886
|
]),
|
|
868
|
-
"tooltip-after":
|
|
869
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? p("", !0) : (n(), r("div",
|
|
870
|
-
|
|
871
|
-
dataset:
|
|
872
|
-
config:
|
|
887
|
+
"tooltip-after": g(() => [
|
|
888
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? p("", !0) : (n(), r("div", Va, [
|
|
889
|
+
ee(u(nt), {
|
|
890
|
+
dataset: ue.value,
|
|
891
|
+
config: gt.value,
|
|
873
892
|
backgroundOpacity: 0
|
|
874
893
|
}, {
|
|
875
|
-
"data-label":
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? (n(), r("span",
|
|
894
|
+
"data-label": g(({ bar: o }) => [
|
|
895
|
+
C("div", Da, [
|
|
896
|
+
C("span", za, R(o.name + (e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? ":" : "")), 1),
|
|
897
|
+
e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? (n(), r("span", Ua, R(o.suffix), 1)) : p("", !0)
|
|
879
898
|
])
|
|
880
899
|
]),
|
|
881
900
|
_: 1
|
|
882
901
|
}, 8, ["dataset", "config"])
|
|
883
902
|
])),
|
|
884
|
-
f(t.$slots, "tooltip-after", E(M({ ...
|
|
903
|
+
f(t.$slots, "tooltip-after", E(M({ ...ie.value })), void 0, !0)
|
|
885
904
|
]),
|
|
886
905
|
_: 3
|
|
887
906
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
888
|
-
|
|
907
|
+
fe.value && e.value.userOptions.buttons.table ? (n(), P(Bt(Y.value.component), Et({ key: 7 }, Y.value.props, {
|
|
889
908
|
ref_key: "tableUnit",
|
|
890
909
|
ref: W,
|
|
891
|
-
onClose:
|
|
892
|
-
}),
|
|
893
|
-
content:
|
|
894
|
-
(n(), P(u(
|
|
895
|
-
key: `table_${
|
|
896
|
-
colNames:
|
|
897
|
-
head:
|
|
898
|
-
body:
|
|
899
|
-
config:
|
|
910
|
+
onClose: Ge
|
|
911
|
+
}), je({
|
|
912
|
+
content: g(() => [
|
|
913
|
+
(n(), P(u(ut), {
|
|
914
|
+
key: `table_${$e.value}`,
|
|
915
|
+
colNames: Q.value.colNames,
|
|
916
|
+
head: Q.value.head,
|
|
917
|
+
body: Q.value.body,
|
|
918
|
+
config: Q.value.config,
|
|
900
919
|
title: e.value.table.useDialog ? "" : Y.value.title,
|
|
901
920
|
withCloseButton: !e.value.table.useDialog,
|
|
902
|
-
onClose:
|
|
921
|
+
onClose: Ge
|
|
903
922
|
}, {
|
|
904
|
-
th:
|
|
905
|
-
|
|
923
|
+
th: g(({ th: o }) => [
|
|
924
|
+
pe(R(o.name), 1)
|
|
906
925
|
]),
|
|
907
|
-
td:
|
|
908
|
-
|
|
926
|
+
td: g(({ td: o }) => [
|
|
927
|
+
pe(R(o), 1)
|
|
909
928
|
]),
|
|
910
929
|
_: 1
|
|
911
930
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -914,20 +933,20 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
914
933
|
}, [
|
|
915
934
|
e.value.table.useDialog ? {
|
|
916
935
|
name: "title",
|
|
917
|
-
fn:
|
|
918
|
-
|
|
936
|
+
fn: g(() => [
|
|
937
|
+
pe(R(Y.value.title), 1)
|
|
919
938
|
]),
|
|
920
939
|
key: "0"
|
|
921
940
|
} : void 0,
|
|
922
941
|
e.value.table.useDialog ? {
|
|
923
942
|
name: "actions",
|
|
924
|
-
fn:
|
|
925
|
-
|
|
943
|
+
fn: g(() => [
|
|
944
|
+
C("button", {
|
|
926
945
|
tabindex: "0",
|
|
927
946
|
class: "vue-ui-user-options-button",
|
|
928
|
-
onClick:
|
|
947
|
+
onClick: a[1] || (a[1] = (o) => ce(e.value.userOptions.callbacks.csv))
|
|
929
948
|
}, [
|
|
930
|
-
|
|
949
|
+
ee(u(st), {
|
|
931
950
|
name: "excel",
|
|
932
951
|
stroke: Y.value.props.color
|
|
933
952
|
}, null, 8, ["stroke"])
|
|
@@ -936,10 +955,10 @@ const da = ["id"], pa = ["id"], ha = ["xmlns", "viewBox"], ga = ["width", "heigh
|
|
|
936
955
|
key: "1"
|
|
937
956
|
} : void 0
|
|
938
957
|
]), 1040)) : p("", !0),
|
|
939
|
-
u(
|
|
940
|
-
], 46,
|
|
958
|
+
u(Se) ? (n(), P(la, { key: 8 })) : p("", !0)
|
|
959
|
+
], 46, ga));
|
|
941
960
|
}
|
|
942
|
-
},
|
|
961
|
+
}, ao = /* @__PURE__ */ ha(Ba, [["__scopeId", "data-v-e4b61e07"]]);
|
|
943
962
|
export {
|
|
944
|
-
|
|
963
|
+
ao as default
|
|
945
964
|
};
|