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