vue-data-ui 3.23.4 → 3.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-CtRPcMPr.js → PackageVersion-BZs_wnK5.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-bump.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-dag.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-geo.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-hill.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-stackline.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/{package-MHNlcjAX.js → package-DpxpyR_I.js} +1 -1
- package/dist/{render-common-BOIjYVtz.js → render-common-WZ4vXtlg.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +14 -0
- package/dist/{useConfig-DlNpz6P8.js → useConfig-u71vax4T.js} +16 -3
- package/dist/{useObjectBindings-BeWS5v0i.js → useObjectBindings-d-C_nl0U.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-xlN6di_n.js → vue-data-ui-CMf1mzF1.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-G3GsMDp6.js → vue-ui-3d-bar-BHi1QlwW.js} +2 -2
- package/dist/{vue-ui-accordion-DegI2lzR.js → vue-ui-accordion-DNdBR3LQ.js} +1 -1
- package/dist/{vue-ui-age-pyramid-HW1Kiqib.js → vue-ui-age-pyramid-CivMIHO6.js} +2 -2
- package/dist/{vue-ui-annotator-DfG79D4r.js → vue-ui-annotator-fCliMKNQ.js} +2 -2
- package/dist/{vue-ui-bullet-AWT4T1Yz.js → vue-ui-bullet-BaRzzJfE.js} +2 -2
- package/dist/{vue-ui-bump-DNDDJtRI.js → vue-ui-bump-DhQKyCdv.js} +2 -2
- package/dist/{vue-ui-candlestick-DvNtfrWd.js → vue-ui-candlestick-C_QlFw1y.js} +2 -2
- package/dist/{vue-ui-carousel-table-BQk8CkxQ.js → vue-ui-carousel-table-DER6q3au.js} +2 -2
- package/dist/{vue-ui-chestnut-Cc2J1iOE.js → vue-ui-chestnut-BWc5fSXS.js} +2 -2
- package/dist/{vue-ui-chord-j2Qbi0HA.js → vue-ui-chord-Cbp8ULG2.js} +2 -2
- package/dist/{vue-ui-circle-pack-Do8Bbh4z.js → vue-ui-circle-pack-RDzMeb3A.js} +2 -2
- package/dist/{vue-ui-cursor-Cyzzm6Y6.js → vue-ui-cursor-MRKKLhJk.js} +2 -2
- package/dist/{vue-ui-dag-0e_XFGOJ.js → vue-ui-dag-0Q6HiGmy.js} +2 -2
- package/dist/{vue-ui-dashboard-BJzsxyrY.js → vue-ui-dashboard-CBWYnHvU.js} +65 -65
- package/dist/{vue-ui-digits-Uy498lu-.js → vue-ui-digits-C3Q7fmPc.js} +2 -2
- package/dist/{vue-ui-donut-8RB-gL2J.js → vue-ui-donut-B5DdD0_x.js} +2 -2
- package/dist/{vue-ui-donut-w8R0mW_C.js → vue-ui-donut-BMrXYTdN.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CSYfyIbX.js → vue-ui-donut-evolution-CEcp64yA.js} +2 -2
- package/dist/{vue-ui-dumbbell-8eNZFzyp.js → vue-ui-dumbbell-B6V-yVd7.js} +2 -2
- package/dist/{vue-ui-flow-9VbVqIpA.js → vue-ui-flow-Ccx4O4-m.js} +2 -2
- package/dist/{vue-ui-funnel-BJvc2n0l.js → vue-ui-funnel-CgxQJMUU.js} +2 -2
- package/dist/{vue-ui-galaxy-cpdWAYuu.js → vue-ui-galaxy-CeaKn5Ld.js} +2 -2
- package/dist/{vue-ui-gauge-CCA1unzt.js → vue-ui-gauge-BCs7VZxY.js} +2 -2
- package/dist/{vue-ui-geo-BeFmMlu5.js → vue-ui-geo-Djrp8LQ6.js} +2 -2
- package/dist/{vue-ui-gizmo-BvShxRjx.js → vue-ui-gizmo-BCr3r9Z5.js} +2 -2
- package/dist/{vue-ui-heatmap-DaqaYsGY.js → vue-ui-heatmap-DIKxGiAH.js} +3 -3
- package/dist/{vue-ui-hill-BT5ixO2U.js → vue-ui-hill-DAavuv5-.js} +2 -2
- package/dist/{vue-ui-history-plot-S6MAWwzs.js → vue-ui-history-plot-COfZMiI7.js} +2 -2
- package/dist/{vue-ui-horizontal-bar-DUMN2pwu.js → vue-ui-horizontal-bar-B4vrK1QB.js} +3 -3
- package/dist/{vue-ui-kpi-_UO0otlH.js → vue-ui-kpi-Dlw9Mi3b.js} +2 -2
- package/dist/{vue-ui-mini-loader-CtTewZJG.js → vue-ui-mini-loader-DukGL2bc.js} +1 -1
- package/dist/{vue-ui-molecule-D0s8EZSv.js → vue-ui-molecule-ehZAzPqn.js} +2 -2
- package/dist/{vue-ui-mood-radar-BnvrlH3J.js → vue-ui-mood-radar-CS9qIJzX.js} +2 -2
- package/dist/{vue-ui-nested-donuts-CPkrAtLj.js → vue-ui-nested-donuts-CwEd9CDc.js} +2 -2
- package/dist/{vue-ui-onion-Cs-P6c1S.js → vue-ui-onion-BiffHj6v.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1msZmPiM.js → vue-ui-parallel-coordinate-plot-DC9EjFYA.js} +2 -2
- package/dist/{vue-ui-quadrant-H4BH2X1n.js → vue-ui-quadrant-BIpxU65Y.js} +2 -2
- package/dist/{vue-ui-quick-chart-Dn2OpR7I.js → vue-ui-quick-chart-uwVsepnf.js} +2 -2
- package/dist/{vue-ui-radar-B-0WKG9B.js → vue-ui-radar-CHdxJwQ2.js} +416 -349
- package/dist/{vue-ui-rating-BDVSVFA0.js → vue-ui-rating-DoUFoJvB.js} +1 -1
- package/dist/{vue-ui-relation-circle-B9O3HmHR.js → vue-ui-relation-circle-FGG7wCYA.js} +2 -2
- package/dist/{vue-ui-ridgeline-D_8sALB0.js → vue-ui-ridgeline-ClyBRJef.js} +2 -2
- package/dist/{vue-ui-rings-lgGvyEW_.js → vue-ui-rings-CRDcurAB.js} +2 -2
- package/dist/{vue-ui-scatter-Dzdkyw1C.js → vue-ui-scatter-DYkylqTr.js} +2 -2
- package/dist/{vue-ui-skeleton-E6Hbh29Z.js → vue-ui-skeleton-CBtzmJiI.js} +2 -2
- package/dist/{vue-ui-smiley-5iHJeTPc.js → vue-ui-smiley-BTPYPZdS.js} +1 -1
- package/dist/{vue-ui-spark-trend-BUQ1_7eU.js → vue-ui-spark-trend-Cg__gAj9.js} +2 -2
- package/dist/{vue-ui-sparkbar-iyq8Toli.js → vue-ui-sparkbar-DSqyYcSy.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CJXxmdWD.js → vue-ui-sparkgauge-CfW6-ExF.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-B_zDxZp5.js → vue-ui-sparkhistogram-ClN9JYQF.js} +2 -2
- package/dist/{vue-ui-sparkline-jQ1WegfT.js → vue-ui-sparkline-CzjD9seh.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-Bcipd2lT.js → vue-ui-sparkstackbar-nZ3tHm7l.js} +2 -2
- package/dist/{vue-ui-stackbar-BH5oIVxw.js → vue-ui-stackbar-CRP_j7bH.js} +2 -2
- package/dist/{vue-ui-stackline-CAbvGgyL.js → vue-ui-stackline-CWBthsVq.js} +2 -2
- package/dist/{vue-ui-strip-plot-CjIOca_Y.js → vue-ui-strip-plot-CiEIA52J.js} +2 -2
- package/dist/{vue-ui-table-DzCJOvjR.js → vue-ui-table-CoGF2GWe.js} +3 -3
- package/dist/{vue-ui-table-heatmap-D1bbPXKG.js → vue-ui-table-heatmap-DQ28DYwv.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Dc6HEQUQ.js → vue-ui-table-sparkline-DVpKsZd7.js} +2 -2
- package/dist/{vue-ui-thermometer-DdrOgp8t.js → vue-ui-thermometer-CyIIhi3B.js} +2 -2
- package/dist/{vue-ui-timer-BpFDnonz.js → vue-ui-timer-DAJmVDbB.js} +2 -2
- package/dist/{vue-ui-tiremarks-B19X7xfh.js → vue-ui-tiremarks-BIdIGZ3A.js} +2 -2
- package/dist/{vue-ui-treemap-Dd9pg6yW.js → vue-ui-treemap-e1dtE4yJ.js} +2 -2
- package/dist/vue-ui-waffle-CTvRwpKU.js +1595 -0
- package/dist/{vue-ui-wheel-C4HHM1-P.js → vue-ui-wheel-L7-X1Ezl.js} +2 -2
- package/dist/{vue-ui-word-cloud-e86BT9TU.js → vue-ui-word-cloud-B6ytHITa.js} +2 -2
- package/dist/{vue-ui-world-BYnB-6Gl.js → vue-ui-world-CPWP-sZ5.js} +2 -2
- package/dist/{vue-ui-xy-ChUQgqEu.js → vue-ui-xy-8NgsjKrE.js} +3 -3
- package/dist/{vue-ui-xy-LRU_D8xn.js → vue-ui-xy-DmydKppa.js} +2 -2
- package/dist/{vue-ui-xy-canvas-1rbwMA1m.js → vue-ui-xy-canvas-BMVdrH11.js} +2 -2
- package/dist/{vue_ui_waffle-DIARFc7g.js → vue_ui_waffle-DE_DiSVP.js} +14 -7
- package/package.json +3 -3
- package/dist/vue-ui-waffle-JmiCg9-q.js +0 -1386
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { $ as t, At as n, Bt as r, D as i, Jt as a, Kt as o, M as s, Pt as c, S as ee, Vt as te, X as l, b as ne, ct as re, i as ie, jt as ae, pt as oe, q as se, t as ce, tt as u, w as le, xt as ue } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as fe } from "./useConfig-
|
|
4
|
+
import { t as fe } from "./useConfig-u71vax4T.js";
|
|
5
5
|
import { t as pe } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as ge } from "./useNestedProp-vPNvh7rV.js";
|
|
@@ -19,28 +19,31 @@ import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
|
19
19
|
import { t as ke } from "./Legend-CQxUgOd-.js";
|
|
20
20
|
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
21
|
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
-
import { Fragment as d, Teleport as Me, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ie, nextTick as Le, normalizeClass as
|
|
22
|
+
import { Fragment as d, Teleport as Me, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ze, onMounted as Be, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as T, toRefs as Ue, unref as E, watch as We, withCtx as D } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-radar.vue
|
|
24
|
-
var
|
|
24
|
+
var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"viewBox"
|
|
28
|
-
],
|
|
28
|
+
], Ze = ["width", "height"], Qe = { key: 1 }, $e = [
|
|
29
29
|
"x1",
|
|
30
30
|
"y1",
|
|
31
31
|
"x2",
|
|
32
32
|
"y2",
|
|
33
33
|
"stroke",
|
|
34
34
|
"stroke-width"
|
|
35
|
-
],
|
|
35
|
+
], et = {
|
|
36
|
+
key: 0,
|
|
37
|
+
style: { "pointer-events": "none" }
|
|
38
|
+
}, tt = [
|
|
36
39
|
"d",
|
|
37
40
|
"stroke",
|
|
38
41
|
"stroke-width"
|
|
39
|
-
],
|
|
42
|
+
], nt = [
|
|
40
43
|
"d",
|
|
41
44
|
"stroke",
|
|
42
45
|
"stroke-width"
|
|
43
|
-
],
|
|
46
|
+
], rt = { key: 2 }, it = [
|
|
44
47
|
"x",
|
|
45
48
|
"y",
|
|
46
49
|
"text-anchor",
|
|
@@ -49,27 +52,35 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
49
52
|
"onMouseenter",
|
|
50
53
|
"onMouseleave",
|
|
51
54
|
"onClick"
|
|
52
|
-
],
|
|
55
|
+
], at = [
|
|
53
56
|
"points",
|
|
54
57
|
"stroke",
|
|
55
58
|
"stroke-width"
|
|
56
|
-
],
|
|
59
|
+
], ot = [
|
|
57
60
|
"points",
|
|
58
61
|
"stroke",
|
|
59
62
|
"stroke-width",
|
|
60
63
|
"fill"
|
|
61
|
-
],
|
|
64
|
+
], st = [
|
|
62
65
|
"d",
|
|
63
66
|
"stroke",
|
|
64
67
|
"stroke-width",
|
|
65
68
|
"stroke-dasharray"
|
|
66
|
-
],
|
|
69
|
+
], ct = { key: 4 }, lt = [
|
|
70
|
+
"onMouseenter",
|
|
71
|
+
"onMouseleave",
|
|
72
|
+
"onClick"
|
|
73
|
+
], ut = [
|
|
74
|
+
"cx",
|
|
75
|
+
"cy",
|
|
76
|
+
"r"
|
|
77
|
+
], dt = [
|
|
67
78
|
"cx",
|
|
68
79
|
"cy",
|
|
69
80
|
"fill",
|
|
70
81
|
"r",
|
|
71
82
|
"stroke"
|
|
72
|
-
],
|
|
83
|
+
], ft = {
|
|
73
84
|
key: 0,
|
|
74
85
|
style: {
|
|
75
86
|
position: "absolute",
|
|
@@ -79,23 +90,23 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
79
90
|
},
|
|
80
91
|
"data-dom-to-png-ignore": "",
|
|
81
92
|
"aria-hidden": "true"
|
|
82
|
-
},
|
|
93
|
+
}, pt = {
|
|
83
94
|
key: 5,
|
|
84
95
|
class: "vue-data-ui-watermark"
|
|
85
|
-
},
|
|
96
|
+
}, mt = ["id"], ht = ["onClick"], gt = { class: "vue-data-ui-legend-item" }, _t = [
|
|
86
97
|
"stroke",
|
|
87
98
|
"stroke-width",
|
|
88
99
|
"stroke-dasharray"
|
|
89
|
-
],
|
|
100
|
+
], vt = {
|
|
90
101
|
key: 0,
|
|
91
102
|
style: {
|
|
92
103
|
"max-width": "200px",
|
|
93
104
|
margin: "0 auto"
|
|
94
105
|
}
|
|
95
|
-
},
|
|
106
|
+
}, yt = {
|
|
96
107
|
class: "vue-ui-radar-tooltip-datalabel",
|
|
97
108
|
style: { width: "100%" }
|
|
98
|
-
},
|
|
109
|
+
}, bt = { class: "vue-ui-radar-tooltip-datalabel-name" }, xt = { key: 0 }, St = /*#__PURE__*/ xe({
|
|
99
110
|
__name: "vue-ui-radar",
|
|
100
111
|
props: {
|
|
101
112
|
config: {
|
|
@@ -112,14 +123,14 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
112
123
|
}
|
|
113
124
|
},
|
|
114
125
|
emits: ["selectLegend", "copyAlt"],
|
|
115
|
-
setup(e, { expose: xe, emit:
|
|
116
|
-
let
|
|
126
|
+
setup(e, { expose: xe, emit: Ge }) {
|
|
127
|
+
let St = _(() => import("./Tooltip-DhjyfHwz.js")), Ct = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), wt = _(() => import("./vue-ui-sparkbar-DSqyYcSy.js").then((e) => e.n)), Tt = _(() => import("./vue-ui-accordion-DNdBR3LQ.js").then((e) => e.n)), Et = _(() => import("./DataTable-BbKgJ5UI.js")), Dt = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ot = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), kt = _(() => import("./PackageVersion-BZs_wnK5.js").then((e) => e.t)), At = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_radar: jt } = fe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = _e(), O = e, Pt = f(() => !!O.dataset && Object.keys(O.dataset).length), k = S(se()), A = S(!1), Ft = S(""), It = S(0), j = S(null), Lt = S(null), Rt = S(null), zt = S(null), Bt = S(null), Vt = S(0), Ht = S(0), Ut = S(0), Wt = S(!1), M = S(null), Gt = S(null), N = S(null), Kt = S({
|
|
117
128
|
x: 0,
|
|
118
129
|
y: 0
|
|
119
|
-
}),
|
|
130
|
+
}), P = S("pointer"), qt = S(!1), F = S(en());
|
|
120
131
|
de({
|
|
121
132
|
config: () => F.value,
|
|
122
|
-
dataset: () =>
|
|
133
|
+
dataset: () => O.dataset,
|
|
123
134
|
component: "VueUiRadar",
|
|
124
135
|
rules: [
|
|
125
136
|
{
|
|
@@ -161,7 +172,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
161
172
|
}
|
|
162
173
|
]
|
|
163
174
|
});
|
|
164
|
-
let I = f(() => F.value.userOptions.useCursorPointer),
|
|
175
|
+
let I = f(() => F.value.userOptions.useCursorPointer), Jt = f(() => a({
|
|
165
176
|
defaultConfig: {
|
|
166
177
|
userOptions: { show: !1 },
|
|
167
178
|
table: { show: !1 },
|
|
@@ -177,16 +188,16 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
177
188
|
} }
|
|
178
189
|
},
|
|
179
190
|
userConfig: F.value.skeletonConfig ?? {}
|
|
180
|
-
})), { loading:
|
|
181
|
-
...
|
|
191
|
+
})), { loading: Yt, FINAL_DATASET: L } = me({
|
|
192
|
+
...Ue(O),
|
|
182
193
|
FINAL_CONFIG: F,
|
|
183
|
-
prepareConfig:
|
|
194
|
+
prepareConfig: en,
|
|
184
195
|
callback: () => {
|
|
185
196
|
Promise.resolve().then(async () => {
|
|
186
197
|
await Le(), H.value.showTable = F.value.table.show;
|
|
187
198
|
});
|
|
188
199
|
},
|
|
189
|
-
skeletonDataset:
|
|
200
|
+
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
190
201
|
categories: [{
|
|
191
202
|
name: "_",
|
|
192
203
|
color: "#6A6A6A"
|
|
@@ -226,21 +237,46 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
226
237
|
},
|
|
227
238
|
skeletonConfig: a({
|
|
228
239
|
defaultConfig: F.value,
|
|
229
|
-
userConfig:
|
|
240
|
+
userConfig: Jt.value
|
|
230
241
|
})
|
|
231
|
-
}), { userOptionsVisible:
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
242
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = De({ config: F.value }), { svgRef: R } = Oe({ config: F.value.style.chart.title });
|
|
243
|
+
function $t(e) {
|
|
244
|
+
return {
|
|
245
|
+
...e,
|
|
246
|
+
style: {
|
|
247
|
+
...e.style,
|
|
248
|
+
chart: {
|
|
249
|
+
...e.style.chart,
|
|
250
|
+
layout: {
|
|
251
|
+
...e.style.chart.layout,
|
|
252
|
+
grid: {
|
|
253
|
+
rotate: 0,
|
|
254
|
+
...e.style.chart.layout.grid
|
|
255
|
+
},
|
|
256
|
+
labels: {
|
|
257
|
+
...e.style.chart.layout.labels,
|
|
258
|
+
dataLabels: {
|
|
259
|
+
offset: 0,
|
|
260
|
+
...e.style.chart.layout.labels.dataLabels
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function en() {
|
|
269
|
+
let e = $t(ge({
|
|
270
|
+
userConfig: O.config,
|
|
271
|
+
defaultConfig: jt
|
|
272
|
+
})), t = e.theme;
|
|
237
273
|
if (!t) return e;
|
|
238
|
-
if (!
|
|
274
|
+
if (!Mt.value(e)) return Nt(e), e;
|
|
239
275
|
let n = ge({
|
|
240
|
-
userConfig: je[t] ||
|
|
276
|
+
userConfig: je[t] || O.config,
|
|
241
277
|
defaultConfig: e
|
|
242
278
|
}), r = ge({
|
|
243
|
-
userConfig:
|
|
279
|
+
userConfig: O.config,
|
|
244
280
|
defaultConfig: n
|
|
245
281
|
});
|
|
246
282
|
return {
|
|
@@ -248,46 +284,46 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
248
284
|
customPalette: r.customPalette.length ? r.customPalette : o[t] || c
|
|
249
285
|
};
|
|
250
286
|
}
|
|
251
|
-
|
|
252
|
-
F.value =
|
|
287
|
+
We(() => O.config, (e) => {
|
|
288
|
+
F.value = en(), Xt.value = !F.value.userOptions.showOnChartHover, tn(), Vt.value += 1, Ht.value += 1, Ut.value += 1, H.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.chart.tooltip ? F.value.style.chart.tooltip.show : !1;
|
|
253
289
|
}, { deep: !0 });
|
|
254
|
-
let z =
|
|
255
|
-
function
|
|
256
|
-
if (ae(
|
|
290
|
+
let z = He(null), B = He(null), V = f(() => F.value.debug);
|
|
291
|
+
function tn() {
|
|
292
|
+
if (ae(O.dataset) && u({
|
|
257
293
|
componentName: "VueUiRadar",
|
|
258
294
|
type: "dataset",
|
|
259
295
|
debug: V.value
|
|
260
296
|
}), F.value.responsive) {
|
|
261
297
|
let e = Se(() => {
|
|
262
298
|
let { width: e, height: t } = Ce({
|
|
263
|
-
chart:
|
|
264
|
-
title: F.value.style.chart.title.text ?
|
|
265
|
-
legend: F.value.style.chart.legend.show ?
|
|
266
|
-
source:
|
|
267
|
-
noTitle:
|
|
299
|
+
chart: j.value,
|
|
300
|
+
title: F.value.style.chart.title.text ? Lt.value : null,
|
|
301
|
+
legend: F.value.style.chart.legend.show ? Rt.value : null,
|
|
302
|
+
source: zt.value,
|
|
303
|
+
noTitle: Bt.value
|
|
268
304
|
});
|
|
269
305
|
requestAnimationFrame(() => {
|
|
270
|
-
U.value.width = e, U.value.height = t,
|
|
306
|
+
U.value.width = e, U.value.height = t, An();
|
|
271
307
|
});
|
|
272
308
|
});
|
|
273
|
-
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value =
|
|
309
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = j.value.parentNode, z.value.observe(B.value);
|
|
274
310
|
}
|
|
275
|
-
|
|
311
|
+
An();
|
|
276
312
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}),
|
|
313
|
+
Be(() => {
|
|
314
|
+
Wt.value = !0, tn();
|
|
315
|
+
}), ze(() => {
|
|
280
316
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
281
317
|
});
|
|
282
|
-
let { isPrinting:
|
|
283
|
-
elementId: `vue-ui-radar_${
|
|
318
|
+
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = pe({
|
|
319
|
+
elementId: `vue-ui-radar_${k.value}`,
|
|
284
320
|
fileName: F.value.style.chart.title.text || "vue-ui-radar",
|
|
285
321
|
options: F.value.userOptions.print
|
|
286
|
-
}),
|
|
322
|
+
}), sn = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), cn = f(() => le(F.value.customPalette)), H = S({
|
|
287
323
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
288
324
|
showTable: F.value.table.show,
|
|
289
325
|
showTooltip: F.value.style.chart.tooltip.show
|
|
290
|
-
}),
|
|
326
|
+
}), ln = f(() => ({ style: {
|
|
291
327
|
backgroundColor: "#FFFFFF00",
|
|
292
328
|
animation: {
|
|
293
329
|
show: F.value.style.chart.tooltip.animation.show,
|
|
@@ -301,37 +337,37 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
301
337
|
backgroundColor: "#CCCCCC",
|
|
302
338
|
opacity: 30
|
|
303
339
|
}
|
|
304
|
-
} })), U =
|
|
340
|
+
} })), U = S({
|
|
305
341
|
height: 312,
|
|
306
342
|
width: 512
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
343
|
+
}), un = Ge, W = S([]), G = S(null), K = S(!1);
|
|
344
|
+
function dn() {
|
|
309
345
|
W.value.length ? W.value = [] : X.value.forEach((e, t) => {
|
|
310
346
|
W.value.push(t);
|
|
311
|
-
}),
|
|
347
|
+
}), fn();
|
|
312
348
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
349
|
+
function fn() {
|
|
350
|
+
un("selectLegend", X.value.filter((e, t) => !W.value.includes(t)).map((e) => ({
|
|
315
351
|
name: e.name,
|
|
316
352
|
color: e.color,
|
|
317
353
|
proportion: e.totalProportion
|
|
318
354
|
})));
|
|
319
355
|
}
|
|
320
|
-
function
|
|
356
|
+
function pn(e) {
|
|
321
357
|
K.value = !0, W.value.includes(e) ? (G.value = e, W.value = W.value.filter((t) => t !== e), setTimeout(() => {
|
|
322
358
|
K.value = !1, G.value = null;
|
|
323
359
|
}, 500)) : (W.value.push(e), setTimeout(() => {
|
|
324
360
|
K.value = !1;
|
|
325
|
-
}, 500)),
|
|
361
|
+
}, 500)), fn();
|
|
326
362
|
}
|
|
327
|
-
function
|
|
363
|
+
function mn() {
|
|
328
364
|
return X.value.map((e) => ({
|
|
329
365
|
name: e.name,
|
|
330
366
|
color: e.color,
|
|
331
367
|
proportion: e.totalProportion
|
|
332
368
|
}));
|
|
333
369
|
}
|
|
334
|
-
function
|
|
370
|
+
function hn() {
|
|
335
371
|
let e = L.value;
|
|
336
372
|
if ([null, void 0].includes(e?.categories)) {
|
|
337
373
|
u({
|
|
@@ -387,69 +423,75 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
387
423
|
});
|
|
388
424
|
});
|
|
389
425
|
}
|
|
390
|
-
|
|
426
|
+
We(() => L.value, () => hn(), {
|
|
391
427
|
deep: !0,
|
|
392
428
|
immediate: !0
|
|
393
429
|
});
|
|
394
430
|
let q = f(() => {
|
|
395
|
-
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t =
|
|
431
|
+
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = cn.value ?? c;
|
|
396
432
|
return e.map((e, n) => ({
|
|
397
433
|
name: e?.name ?? "",
|
|
398
|
-
categoryId: `radar_category_${
|
|
434
|
+
categoryId: `radar_category_${k.value}_${n}`,
|
|
399
435
|
color: ee(e?.color) || t[n] || c[n % c.length],
|
|
400
436
|
prefix: e?.prefix ?? "",
|
|
401
437
|
suffix: e?.suffix ?? ""
|
|
402
438
|
}));
|
|
403
439
|
}), J = f(() => L.value.series.map((e, t) => ({
|
|
404
440
|
...e,
|
|
405
|
-
color: ee(e.color) ||
|
|
406
|
-
serieId: `radar_serie_${
|
|
441
|
+
color: ee(e.color) || cn.value[t] || c[t] || c[t % c.length],
|
|
442
|
+
serieId: `radar_serie_${k.value}_${t}`,
|
|
407
443
|
formatter: e.formatter || null,
|
|
408
444
|
absoluteIndex: t
|
|
409
445
|
})));
|
|
410
|
-
function
|
|
446
|
+
function gn(e) {
|
|
411
447
|
return J.value.length ? X.value.find((t) => t.name === e) || (V.value && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (V.value && console.warn("VueUiRadar - There are no series to show."), null);
|
|
412
448
|
}
|
|
413
|
-
function
|
|
414
|
-
let t =
|
|
415
|
-
t !== null && W.value.includes(t.absoluteIndex) &&
|
|
449
|
+
function _n(e) {
|
|
450
|
+
let t = gn(e);
|
|
451
|
+
t !== null && W.value.includes(t.absoluteIndex) && pn(t.absoluteIndex);
|
|
416
452
|
}
|
|
417
|
-
function
|
|
418
|
-
let t =
|
|
419
|
-
t !== null && (W.value.includes(t.absoluteIndex) ||
|
|
453
|
+
function vn(e) {
|
|
454
|
+
let t = gn(e);
|
|
455
|
+
t !== null && (W.value.includes(t.absoluteIndex) || pn(t.absoluteIndex));
|
|
420
456
|
}
|
|
421
|
-
let
|
|
422
|
-
function
|
|
423
|
-
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target ||
|
|
457
|
+
let yn = f(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
|
|
458
|
+
function bn(e) {
|
|
459
|
+
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || yn.value || 1;
|
|
424
460
|
}
|
|
425
|
-
let
|
|
426
|
-
let n =
|
|
427
|
-
return
|
|
461
|
+
let xn = f(() => J.value.map((e, t) => {
|
|
462
|
+
let n = En.value.coordinates[t];
|
|
463
|
+
return jn({
|
|
428
464
|
centerX: U.value.width / 2,
|
|
429
465
|
centerY: U.value.height / 2,
|
|
430
466
|
apexX: n.x,
|
|
431
467
|
apexY: n.y,
|
|
432
|
-
proportion: (e.target || 0) /
|
|
468
|
+
proportion: (e.target || 0) / bn(e)
|
|
433
469
|
});
|
|
434
|
-
})),
|
|
470
|
+
})), Sn = f(() => J.value.length), Cn = f(() => Math.min(U.value.width, U.value.height) / 3), wn = f(() => {
|
|
471
|
+
let e = Number(F.value.style.chart.layout.plots.radius ?? 0);
|
|
472
|
+
return Math.max(Number.isFinite(e) ? e * 2.5 : 0, 10);
|
|
473
|
+
}), Tn = f(() => {
|
|
474
|
+
let e = Number(F.value.style.chart.layout.grid.rotation ?? 0);
|
|
475
|
+
return Number.isFinite(e) ? e * Math.PI / 180 : 0;
|
|
476
|
+
}), En = f(() => s({
|
|
435
477
|
plot: {
|
|
436
478
|
x: U.value.width / 2,
|
|
437
479
|
y: U.value.height / 2
|
|
438
480
|
},
|
|
439
|
-
radius:
|
|
440
|
-
sides:
|
|
441
|
-
rotation:
|
|
442
|
-
})),
|
|
481
|
+
radius: Cn.value,
|
|
482
|
+
sides: Sn.value,
|
|
483
|
+
rotation: Tn.value
|
|
484
|
+
})), Dn = f(() => {
|
|
443
485
|
let e = [];
|
|
444
|
-
for (let t = 0; t <
|
|
486
|
+
for (let t = 0; t < Cn.value; t += Cn.value / F.value.style.chart.layout.grid.graduations) e.push(t);
|
|
445
487
|
return e;
|
|
446
|
-
}), Y = f(() =>
|
|
447
|
-
let n = J.value[t], r = J.value[t].values.map((t) =>
|
|
488
|
+
}), Y = f(() => En.value.coordinates.map((e, t) => {
|
|
489
|
+
let n = J.value[t], r = J.value[t].values.map((t) => jn({
|
|
448
490
|
centerX: U.value.width / 2,
|
|
449
491
|
centerY: U.value.height / 2,
|
|
450
492
|
apexX: e.x,
|
|
451
493
|
apexY: e.y,
|
|
452
|
-
proportion: t /
|
|
494
|
+
proportion: t / bn(n)
|
|
453
495
|
}));
|
|
454
496
|
return {
|
|
455
497
|
...e,
|
|
@@ -458,36 +500,42 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
458
500
|
};
|
|
459
501
|
}).map((e) => ({
|
|
460
502
|
...e,
|
|
461
|
-
labelX:
|
|
462
|
-
labelY:
|
|
463
|
-
labelAnchor:
|
|
503
|
+
labelX: On(e).x,
|
|
504
|
+
labelY: On(e).y,
|
|
505
|
+
labelAnchor: On(e).anchor
|
|
464
506
|
})));
|
|
465
|
-
function
|
|
466
|
-
let n =
|
|
467
|
-
|
|
507
|
+
function On({ x: e, y: t }) {
|
|
508
|
+
let n = U.value.width / 2, r = U.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(F.value.style.chart.layout.labels.dataLabels.offset ?? 0), c = 20 + (Number.isFinite(s) ? s : 0);
|
|
509
|
+
if (!o) return {
|
|
468
510
|
x: e,
|
|
469
511
|
y: t,
|
|
470
|
-
anchor:
|
|
512
|
+
anchor: "middle"
|
|
513
|
+
};
|
|
514
|
+
let ee = i / o, te = a / o, l = "middle";
|
|
515
|
+
return ee > .01 ? l = "start" : ee < -.01 && (l = "end"), {
|
|
516
|
+
x: e + ee * c,
|
|
517
|
+
y: t + te * c,
|
|
518
|
+
anchor: l
|
|
471
519
|
};
|
|
472
520
|
}
|
|
473
|
-
let
|
|
521
|
+
let kn = f({
|
|
474
522
|
get: () => F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
475
523
|
set: (e) => e
|
|
476
|
-
}), { autoSizeLabels:
|
|
524
|
+
}), { autoSizeLabels: An } = Ae({
|
|
477
525
|
svgRef: R,
|
|
478
526
|
fontSize: F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
479
527
|
minFontSize: 6,
|
|
480
|
-
sizeRef:
|
|
528
|
+
sizeRef: kn,
|
|
481
529
|
labelClass: ".vue-ui-radar-apex-label"
|
|
482
530
|
});
|
|
483
|
-
function
|
|
531
|
+
function jn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
484
532
|
return {
|
|
485
533
|
x: e + (n - e) * i,
|
|
486
534
|
y: t + (r - t) * i
|
|
487
535
|
};
|
|
488
536
|
}
|
|
489
537
|
let X = f(() => {
|
|
490
|
-
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
538
|
+
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || yn.value)));
|
|
491
539
|
return q.value.map((t, n) => {
|
|
492
540
|
let r = ne(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
|
|
493
541
|
return {
|
|
@@ -496,7 +544,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
496
544
|
totalProportion: r,
|
|
497
545
|
shape: "circle",
|
|
498
546
|
opacity: W.value.includes(n) ? .5 : 1,
|
|
499
|
-
segregate: () =>
|
|
547
|
+
segregate: () => pn(n),
|
|
500
548
|
isSegregated: W.value.includes(n),
|
|
501
549
|
display: `${t.name}: ${l({
|
|
502
550
|
v: (r ?? 0) * 100,
|
|
@@ -505,7 +553,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
505
553
|
})}`
|
|
506
554
|
};
|
|
507
555
|
});
|
|
508
|
-
}),
|
|
556
|
+
}), Mn = f(() => ({
|
|
509
557
|
cy: "radar-div-legend",
|
|
510
558
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
511
559
|
color: F.value.style.chart.legend.color,
|
|
@@ -560,26 +608,26 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
560
608
|
},
|
|
561
609
|
colNames: e
|
|
562
610
|
};
|
|
563
|
-
}), Q =
|
|
564
|
-
function
|
|
565
|
-
|
|
611
|
+
}), Q = S(null), Nn = S([]), Pn = S(null);
|
|
612
|
+
function Fn(e, t) {
|
|
613
|
+
A.value = !1, Q.value = null, N.value = null, P.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
566
614
|
datapoint: e,
|
|
567
615
|
seriesIndex: t
|
|
568
616
|
});
|
|
569
617
|
}
|
|
570
|
-
function
|
|
618
|
+
function In(e, t) {
|
|
571
619
|
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
572
620
|
datapoint: e,
|
|
573
621
|
seriesIndex: t
|
|
574
622
|
});
|
|
575
623
|
}
|
|
576
|
-
function
|
|
624
|
+
function Ln(e, t, n = "pointer") {
|
|
577
625
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
578
626
|
datapoint: e,
|
|
579
627
|
seriesIndex: t
|
|
580
|
-
}),
|
|
628
|
+
}), P.value = n, N.value = t;
|
|
581
629
|
let r = q.value.slice();
|
|
582
|
-
|
|
630
|
+
Nn.value = [], Q.value = t, A.value = !0, Pn.value = {
|
|
583
631
|
datapoint: e,
|
|
584
632
|
seriesIndex: t,
|
|
585
633
|
series: {
|
|
@@ -600,7 +648,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
600
648
|
},
|
|
601
649
|
config: F.value
|
|
602
650
|
}))) {
|
|
603
|
-
|
|
651
|
+
Ft.value = i({
|
|
604
652
|
seriesIndex: t,
|
|
605
653
|
datapoint: e,
|
|
606
654
|
series: {
|
|
@@ -612,7 +660,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
612
660
|
});
|
|
613
661
|
return;
|
|
614
662
|
}
|
|
615
|
-
|
|
663
|
+
Ft.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
616
664
|
for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
|
|
617
665
|
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = ie(e.formatter, i, l({
|
|
618
666
|
p: q.value[t].prefix,
|
|
@@ -624,7 +672,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
624
672
|
s: "%",
|
|
625
673
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
626
674
|
}), c = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : F.value.style.chart.tooltip.showValue && !F.value.style.chart.tooltip.showPercentage ? o : !F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
627
|
-
|
|
675
|
+
Nn.value.push({
|
|
628
676
|
name: n?.name ?? `#${t + 1}`,
|
|
629
677
|
value: e.values[t] / e.target * 100,
|
|
630
678
|
color: n?.color,
|
|
@@ -635,7 +683,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
635
683
|
});
|
|
636
684
|
}
|
|
637
685
|
}
|
|
638
|
-
function
|
|
686
|
+
function Rn(e = null) {
|
|
639
687
|
Le(() => {
|
|
640
688
|
let n = [
|
|
641
689
|
[F.value.style.chart.title.text],
|
|
@@ -656,24 +704,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
656
704
|
});
|
|
657
705
|
});
|
|
658
706
|
}
|
|
659
|
-
let $ =
|
|
660
|
-
function
|
|
661
|
-
$.value = e,
|
|
707
|
+
let $ = S(!1);
|
|
708
|
+
function zn(e) {
|
|
709
|
+
$.value = e, It.value += 1;
|
|
662
710
|
}
|
|
663
|
-
function
|
|
711
|
+
function Bn() {
|
|
664
712
|
H.value.showTable = !H.value.showTable;
|
|
665
713
|
}
|
|
666
|
-
function
|
|
714
|
+
function Vn() {
|
|
667
715
|
H.value.showTooltip = !H.value.showTooltip;
|
|
668
716
|
}
|
|
669
|
-
let
|
|
670
|
-
function
|
|
671
|
-
|
|
717
|
+
let Hn = S(!1);
|
|
718
|
+
function Un() {
|
|
719
|
+
Hn.value = !Hn.value;
|
|
672
720
|
}
|
|
673
|
-
async function
|
|
674
|
-
if (!
|
|
675
|
-
let { width: t, height: n } =
|
|
676
|
-
domElement:
|
|
721
|
+
async function Wn({ scale: e = 2 } = {}) {
|
|
722
|
+
if (!j.value) return;
|
|
723
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
724
|
+
domElement: j.value,
|
|
677
725
|
base64: !0,
|
|
678
726
|
img: !0,
|
|
679
727
|
scale: e
|
|
@@ -687,10 +735,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
687
735
|
aspectRatio: r
|
|
688
736
|
};
|
|
689
737
|
}
|
|
690
|
-
let
|
|
738
|
+
let Gn = f(() => {
|
|
691
739
|
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
692
740
|
return {
|
|
693
|
-
component: e ?
|
|
741
|
+
component: e ? At : Tt,
|
|
694
742
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
695
743
|
props: e ? {
|
|
696
744
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -698,7 +746,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
698
746
|
headerColor: F.value.table.th.color,
|
|
699
747
|
headerBg: F.value.table.th.backgroundColor,
|
|
700
748
|
isFullscreen: $.value,
|
|
701
|
-
fullscreenParent:
|
|
749
|
+
fullscreenParent: j.value,
|
|
702
750
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
703
751
|
isCursorPointer: I.value
|
|
704
752
|
} : {
|
|
@@ -718,26 +766,26 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
718
766
|
}
|
|
719
767
|
};
|
|
720
768
|
});
|
|
721
|
-
|
|
722
|
-
F.value.table.show || (e && F.value.table.useDialog &&
|
|
769
|
+
We(() => H.value.showTable, (e) => {
|
|
770
|
+
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
723
771
|
});
|
|
724
|
-
function
|
|
725
|
-
H.value.showTable = !1,
|
|
772
|
+
function Kn() {
|
|
773
|
+
H.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
|
|
726
774
|
}
|
|
727
|
-
let
|
|
775
|
+
let qn = f(() => X.value.map((e) => ({
|
|
728
776
|
...e,
|
|
729
777
|
name: e.display
|
|
730
|
-
}))),
|
|
778
|
+
}))), Jn = f(() => F.value.style.chart.backgroundColor), Yn = f(() => F.value.style.chart.legend), Xn = f(() => F.value.style.chart.title), { isCallbackImaging: Zn, isCallbackSvg: Qn, generateSvg: $n, onGenerateImage: er } = ve({
|
|
731
779
|
svg: R,
|
|
732
|
-
title:
|
|
733
|
-
legend:
|
|
734
|
-
legendItems:
|
|
735
|
-
backgroundColor:
|
|
780
|
+
title: Xn,
|
|
781
|
+
legend: Yn,
|
|
782
|
+
legendItems: qn,
|
|
783
|
+
backgroundColor: Jn,
|
|
736
784
|
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
737
|
-
generateImage:
|
|
785
|
+
generateImage: on
|
|
738
786
|
});
|
|
739
|
-
async function
|
|
740
|
-
if (
|
|
787
|
+
async function tr() {
|
|
788
|
+
if (un("copyAlt", {
|
|
741
789
|
config: F.value,
|
|
742
790
|
dataset: Y.value
|
|
743
791
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -749,78 +797,78 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
749
797
|
dataset: Y.value
|
|
750
798
|
}));
|
|
751
799
|
}
|
|
752
|
-
function
|
|
753
|
-
|
|
800
|
+
function nr() {
|
|
801
|
+
N.value = null, qt.value = !0;
|
|
754
802
|
}
|
|
755
|
-
function
|
|
756
|
-
|
|
803
|
+
function rr() {
|
|
804
|
+
N.value = null, P.value = "pointer", A.value = !1, Q.value = null, qt.value = !1;
|
|
757
805
|
}
|
|
758
|
-
function
|
|
806
|
+
function ir(e) {
|
|
759
807
|
if (!Number.isFinite(e) || !R.value) return;
|
|
760
808
|
let t = Y.value[e];
|
|
761
809
|
if (!t) return;
|
|
762
810
|
let n = R.value.getBoundingClientRect();
|
|
763
|
-
|
|
811
|
+
Kt.value = {
|
|
764
812
|
x: n.left + t.labelX / U.value.width * n.width,
|
|
765
813
|
y: n.top + t.labelY / U.value.height * n.height
|
|
766
814
|
};
|
|
767
815
|
}
|
|
768
|
-
function
|
|
769
|
-
if (!R.value ||
|
|
816
|
+
function ar(e) {
|
|
817
|
+
if (!R.value || Hn.value || document.activeElement !== R.value || !Y.value.length) return;
|
|
770
818
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
771
819
|
if (!t && !n && !r && !i) return;
|
|
772
820
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
773
|
-
|
|
821
|
+
N.value = null, P.value = "pointer", A.value = !1, Q.value = null;
|
|
774
822
|
return;
|
|
775
823
|
}
|
|
776
824
|
if (r) {
|
|
777
|
-
if (
|
|
778
|
-
let e = Y.value[
|
|
825
|
+
if (N.value === null) return;
|
|
826
|
+
let e = Y.value[N.value];
|
|
779
827
|
if (!e) return;
|
|
780
|
-
|
|
828
|
+
In(e, N.value);
|
|
781
829
|
return;
|
|
782
830
|
}
|
|
783
|
-
let a =
|
|
831
|
+
let a = N.value;
|
|
784
832
|
a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1));
|
|
785
833
|
let o = Y.value[a];
|
|
786
|
-
o && (
|
|
834
|
+
o && (N.value = a, ir(a), Ln(o, a, "keyboard"));
|
|
787
835
|
}
|
|
788
|
-
let
|
|
836
|
+
let or = f(() => ({
|
|
789
837
|
headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
790
838
|
rows: Z.value?.body ?? []
|
|
791
839
|
}));
|
|
792
840
|
return xe({
|
|
793
|
-
getData:
|
|
794
|
-
getImage:
|
|
795
|
-
generatePdf:
|
|
796
|
-
generateCsv:
|
|
797
|
-
generateImage:
|
|
798
|
-
generateSvg:
|
|
799
|
-
hideSeries:
|
|
800
|
-
showSeries:
|
|
801
|
-
toggleTable:
|
|
802
|
-
toggleTooltip:
|
|
803
|
-
toggleAnnotator:
|
|
804
|
-
toggleFullscreen:
|
|
805
|
-
copyAlt:
|
|
806
|
-
}), (e, t) => (
|
|
807
|
-
class:
|
|
841
|
+
getData: mn,
|
|
842
|
+
getImage: Wn,
|
|
843
|
+
generatePdf: an,
|
|
844
|
+
generateCsv: Rn,
|
|
845
|
+
generateImage: on,
|
|
846
|
+
generateSvg: $n,
|
|
847
|
+
hideSeries: vn,
|
|
848
|
+
showSeries: _n,
|
|
849
|
+
toggleTable: Bn,
|
|
850
|
+
toggleTooltip: Vn,
|
|
851
|
+
toggleAnnotator: Un,
|
|
852
|
+
toggleFullscreen: zn,
|
|
853
|
+
copyAlt: tr
|
|
854
|
+
}), (e, t) => (x(), h("div", {
|
|
855
|
+
class: Re(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
808
856
|
ref_key: "radarChart",
|
|
809
|
-
ref:
|
|
810
|
-
id: `vue-ui-radar_${
|
|
811
|
-
style:
|
|
812
|
-
onMouseenter: t[2] ||= () =>
|
|
813
|
-
onMouseleave: t[3] ||= () =>
|
|
857
|
+
ref: j,
|
|
858
|
+
id: `vue-ui-radar_${k.value}`,
|
|
859
|
+
style: b(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
860
|
+
onMouseenter: t[2] ||= () => E(Zt)(!0),
|
|
861
|
+
onMouseleave: t[3] ||= () => E(Zt)(!1)
|
|
814
862
|
}, [
|
|
815
863
|
g("div", {
|
|
816
|
-
id: `chart-instructions-${
|
|
864
|
+
id: `chart-instructions-${k.value}`,
|
|
817
865
|
class: "sr-only"
|
|
818
|
-
}, [g("p", null,
|
|
819
|
-
|
|
866
|
+
}, [g("p", null, T(F.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
867
|
+
or.value?.rows?.length ? (x(), p(Ee, {
|
|
820
868
|
key: 0,
|
|
821
|
-
uid:
|
|
822
|
-
head:
|
|
823
|
-
body:
|
|
869
|
+
uid: k.value,
|
|
870
|
+
head: or.value.headers,
|
|
871
|
+
body: or.value.rows,
|
|
824
872
|
notice: F.value.a11y.translations.tableAvailable,
|
|
825
873
|
caption: F.value.a11y.translations.tableCaption
|
|
826
874
|
}, null, 8, [
|
|
@@ -830,21 +878,21 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
830
878
|
"notice",
|
|
831
879
|
"caption"
|
|
832
880
|
])) : m("", !0),
|
|
833
|
-
F.value.userOptions.buttons.annotator ? (
|
|
881
|
+
F.value.userOptions.buttons.annotator ? (x(), p(E(Dt), {
|
|
834
882
|
key: 1,
|
|
835
|
-
svgRef:
|
|
883
|
+
svgRef: E(R),
|
|
836
884
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
837
885
|
color: F.value.style.chart.color,
|
|
838
|
-
active:
|
|
886
|
+
active: Hn.value,
|
|
839
887
|
isCursorPointer: I.value,
|
|
840
|
-
onClose:
|
|
888
|
+
onClose: Un
|
|
841
889
|
}, {
|
|
842
|
-
"annotator-action-close":
|
|
843
|
-
"annotator-action-color":
|
|
844
|
-
"annotator-action-draw":
|
|
845
|
-
"annotator-action-undo":
|
|
846
|
-
"annotator-action-redo":
|
|
847
|
-
"annotator-action-delete":
|
|
890
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
891
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
892
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
|
|
893
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
|
|
894
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
|
|
895
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
|
|
848
896
|
_: 3
|
|
849
897
|
}, 8, [
|
|
850
898
|
"svgRef",
|
|
@@ -853,20 +901,20 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
853
901
|
"active",
|
|
854
902
|
"isCursorPointer"
|
|
855
903
|
])) : m("", !0),
|
|
856
|
-
|
|
904
|
+
sn.value ? (x(), h("div", {
|
|
857
905
|
key: 2,
|
|
858
906
|
ref_key: "noTitle",
|
|
859
|
-
ref:
|
|
907
|
+
ref: Bt,
|
|
860
908
|
class: "vue-data-ui-no-title-space",
|
|
861
909
|
style: "height:36px; width: 100%;background:transparent"
|
|
862
910
|
}, null, 512)) : m("", !0),
|
|
863
|
-
F.value.style.chart.title.text ? (
|
|
911
|
+
F.value.style.chart.title.text ? (x(), h("div", {
|
|
864
912
|
key: 3,
|
|
865
913
|
ref_key: "chartTitle",
|
|
866
|
-
ref:
|
|
914
|
+
ref: Lt,
|
|
867
915
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
868
|
-
}, [(
|
|
869
|
-
key: `title_${
|
|
916
|
+
}, [(x(), p(be, {
|
|
917
|
+
key: `title_${Vt.value}`,
|
|
870
918
|
config: {
|
|
871
919
|
title: {
|
|
872
920
|
cy: "radar-div-title",
|
|
@@ -878,16 +926,16 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
878
926
|
}
|
|
879
927
|
}
|
|
880
928
|
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
881
|
-
g("div", { id: `legend-top-${
|
|
882
|
-
F.value.userOptions.show &&
|
|
929
|
+
g("div", { id: `legend-top-${k.value}` }, null, 8, Je),
|
|
930
|
+
F.value.userOptions.show && Pt.value && (E(Qt) || E(Xt)) ? (x(), p(E(Ot), {
|
|
883
931
|
ref_key: "userOptionsRef",
|
|
884
|
-
ref:
|
|
885
|
-
key: `user_options_${
|
|
932
|
+
ref: Gt,
|
|
933
|
+
key: `user_options_${It.value}`,
|
|
886
934
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
887
935
|
color: F.value.style.chart.color,
|
|
888
|
-
isImaging:
|
|
889
|
-
isPrinting:
|
|
890
|
-
uid:
|
|
936
|
+
isImaging: E(rn),
|
|
937
|
+
isPrinting: E(nn),
|
|
938
|
+
uid: k.value,
|
|
891
939
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
892
940
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
893
941
|
hasImg: F.value.userOptions.buttons.img,
|
|
@@ -899,28 +947,28 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
899
947
|
isFullscreen: $.value,
|
|
900
948
|
isTooltip: H.value.showTooltip,
|
|
901
949
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
902
|
-
chartElement:
|
|
950
|
+
chartElement: j.value,
|
|
903
951
|
position: F.value.userOptions.position,
|
|
904
952
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
905
|
-
isAnnotation:
|
|
953
|
+
isAnnotation: Hn.value,
|
|
906
954
|
callbacks: F.value.userOptions.callbacks,
|
|
907
955
|
printScale: F.value.userOptions.print.scale,
|
|
908
956
|
tableDialog: F.value.table.useDialog,
|
|
909
957
|
isCursorPointer: I.value,
|
|
910
|
-
onToggleFullscreen:
|
|
911
|
-
onGeneratePdf:
|
|
912
|
-
onGenerateCsv:
|
|
913
|
-
onGenerateImage:
|
|
914
|
-
onGenerateSvg:
|
|
915
|
-
onToggleTable:
|
|
916
|
-
onToggleTooltip:
|
|
917
|
-
onToggleAnnotator:
|
|
918
|
-
onCopyAlt:
|
|
919
|
-
style:
|
|
958
|
+
onToggleFullscreen: zn,
|
|
959
|
+
onGeneratePdf: E(an),
|
|
960
|
+
onGenerateCsv: Rn,
|
|
961
|
+
onGenerateImage: E(er),
|
|
962
|
+
onGenerateSvg: E($n),
|
|
963
|
+
onToggleTable: Bn,
|
|
964
|
+
onToggleTooltip: Vn,
|
|
965
|
+
onToggleAnnotator: Un,
|
|
966
|
+
onCopyAlt: tr,
|
|
967
|
+
style: b({ visibility: E(Qt) ? E(Xt) ? "visible" : "hidden" : "visible" })
|
|
920
968
|
}, Ne({ _: 2 }, [
|
|
921
969
|
e.$slots.menuIcon ? {
|
|
922
970
|
name: "menuIcon",
|
|
923
|
-
fn:
|
|
971
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(v({
|
|
924
972
|
isOpen: t,
|
|
925
973
|
color: n
|
|
926
974
|
})), void 0, !0)]),
|
|
@@ -928,37 +976,37 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
928
976
|
} : void 0,
|
|
929
977
|
e.$slots.optionTooltip ? {
|
|
930
978
|
name: "optionTooltip",
|
|
931
|
-
fn:
|
|
979
|
+
fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
932
980
|
key: "1"
|
|
933
981
|
} : void 0,
|
|
934
982
|
e.$slots.optionPdf ? {
|
|
935
983
|
name: "optionPdf",
|
|
936
|
-
fn:
|
|
984
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
937
985
|
key: "2"
|
|
938
986
|
} : void 0,
|
|
939
987
|
e.$slots.optionCsv ? {
|
|
940
988
|
name: "optionCsv",
|
|
941
|
-
fn:
|
|
989
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
942
990
|
key: "3"
|
|
943
991
|
} : void 0,
|
|
944
992
|
e.$slots.optionImg ? {
|
|
945
993
|
name: "optionImg",
|
|
946
|
-
fn:
|
|
994
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
947
995
|
key: "4"
|
|
948
996
|
} : void 0,
|
|
949
997
|
e.$slots.optionSvg ? {
|
|
950
998
|
name: "optionSvg",
|
|
951
|
-
fn:
|
|
999
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
952
1000
|
key: "5"
|
|
953
1001
|
} : void 0,
|
|
954
1002
|
e.$slots.optionTable ? {
|
|
955
1003
|
name: "optionTable",
|
|
956
|
-
fn:
|
|
1004
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
957
1005
|
key: "6"
|
|
958
1006
|
} : void 0,
|
|
959
1007
|
e.$slots.optionFullscreen ? {
|
|
960
1008
|
name: "optionFullscreen",
|
|
961
|
-
fn:
|
|
1009
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(v({
|
|
962
1010
|
toggleFullscreen: t,
|
|
963
1011
|
isFullscreen: n
|
|
964
1012
|
})), void 0, !0)]),
|
|
@@ -966,7 +1014,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
966
1014
|
} : void 0,
|
|
967
1015
|
e.$slots.optionAnnotator ? {
|
|
968
1016
|
name: "optionAnnotator",
|
|
969
|
-
fn:
|
|
1017
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(v({
|
|
970
1018
|
toggleAnnotator: t,
|
|
971
1019
|
isAnnotator: n
|
|
972
1020
|
})), void 0, !0)]),
|
|
@@ -974,186 +1022,205 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
974
1022
|
} : void 0,
|
|
975
1023
|
e.$slots.optionAltCopy ? {
|
|
976
1024
|
name: "optionAltCopy",
|
|
977
|
-
fn:
|
|
1025
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
|
|
978
1026
|
key: "9"
|
|
979
1027
|
} : void 0,
|
|
980
1028
|
e.$slots["custom-menu-before"] ? {
|
|
981
1029
|
name: "custom-menu-before",
|
|
982
|
-
fn:
|
|
1030
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
983
1031
|
key: "10"
|
|
984
1032
|
} : void 0,
|
|
985
1033
|
e.$slots["custom-menu-after"] ? {
|
|
986
1034
|
name: "custom-menu-after",
|
|
987
|
-
fn:
|
|
1035
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
988
1036
|
key: "11"
|
|
989
1037
|
} : void 0
|
|
990
1038
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
991
|
-
g("div",
|
|
1039
|
+
g("div", Ye, [(x(), h("svg", {
|
|
992
1040
|
ref_key: "svgRef",
|
|
993
1041
|
ref: R,
|
|
994
|
-
xmlns:
|
|
995
|
-
"aria-describedby": `chart-instructions-${
|
|
996
|
-
class:
|
|
1042
|
+
xmlns: E(ce),
|
|
1043
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1044
|
+
class: Re({
|
|
997
1045
|
"vue-data-ui-fullscreen--on": $.value,
|
|
998
1046
|
"vue-data-ui-fulscreen--off": !$.value
|
|
999
1047
|
}),
|
|
1000
1048
|
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
1001
|
-
style:
|
|
1049
|
+
style: b(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
|
|
1002
1050
|
tabindex: "0",
|
|
1003
|
-
onFocus:
|
|
1004
|
-
onBlur:
|
|
1005
|
-
onKeydown:
|
|
1051
|
+
onFocus: nr,
|
|
1052
|
+
onBlur: rr,
|
|
1053
|
+
onKeydown: ar
|
|
1006
1054
|
}, [
|
|
1007
|
-
Fe(
|
|
1008
|
-
e.$slots["chart-background"] ? (
|
|
1055
|
+
Fe(E(kt)),
|
|
1056
|
+
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1009
1057
|
key: 0,
|
|
1010
1058
|
x: 0,
|
|
1011
1059
|
y: 0,
|
|
1012
1060
|
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
1013
1061
|
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
1014
1062
|
style: { pointerEvents: "none" }
|
|
1015
|
-
}, [
|
|
1016
|
-
g("defs", null, [(
|
|
1063
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : m("", !0),
|
|
1064
|
+
g("defs", null, [(x(!0), h(d, null, C(q.value, (e, t) => (x(), p(we, {
|
|
1017
1065
|
t: "radial",
|
|
1018
1066
|
cx: "50%",
|
|
1019
1067
|
cy: "50%",
|
|
1020
1068
|
r: "50%",
|
|
1021
1069
|
fx: "50%",
|
|
1022
1070
|
fy: "50%",
|
|
1023
|
-
id: `radar_gradient_${
|
|
1024
|
-
key: `radar_gradient_${
|
|
1071
|
+
id: `radar_gradient_${k.value}_${t}`,
|
|
1072
|
+
key: `radar_gradient_${k.value}_${t}`,
|
|
1025
1073
|
stops: [[
|
|
1026
1074
|
"0%",
|
|
1027
|
-
|
|
1075
|
+
E(r)(E(te)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
|
|
1028
1076
|
1
|
|
1029
1077
|
], [
|
|
1030
1078
|
"100%",
|
|
1031
|
-
|
|
1079
|
+
E(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1032
1080
|
1
|
|
1033
1081
|
]]
|
|
1034
1082
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1035
|
-
F.value.style.chart.layout.grid.show ? (
|
|
1083
|
+
F.value.style.chart.layout.grid.show ? (x(), h("g", Qe, [(x(!0), h(d, null, C(Y.value, (e) => (x(), h("line", {
|
|
1036
1084
|
x1: U.value.width / 2,
|
|
1037
1085
|
y1: U.value.height / 2,
|
|
1038
1086
|
x2: e.x,
|
|
1039
1087
|
y2: e.y,
|
|
1040
1088
|
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1041
|
-
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1042
|
-
|
|
1043
|
-
|
|
1089
|
+
"stroke-width": F.value.style.chart.layout.grid.strokeWidth,
|
|
1090
|
+
style: { "pointer-events": "none" }
|
|
1091
|
+
}, null, 8, $e))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (x(), h("g", et, [(x(!0), h(d, null, C(Dn.value, (e) => (x(), h("path", {
|
|
1092
|
+
d: E(s)({
|
|
1044
1093
|
plot: {
|
|
1045
1094
|
x: U.value.width / 2,
|
|
1046
1095
|
y: U.value.height / 2
|
|
1047
1096
|
},
|
|
1048
1097
|
radius: e,
|
|
1049
|
-
sides:
|
|
1050
|
-
rotation:
|
|
1098
|
+
sides: Sn.value,
|
|
1099
|
+
rotation: Tn.value
|
|
1051
1100
|
}).path,
|
|
1052
1101
|
fill: "none",
|
|
1053
1102
|
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1054
1103
|
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1055
|
-
}, null, 8,
|
|
1104
|
+
}, null, 8, tt))), 256))])) : m("", !0)])) : m("", !0),
|
|
1056
1105
|
g("path", {
|
|
1057
|
-
d:
|
|
1106
|
+
d: En.value.path,
|
|
1058
1107
|
fill: "none",
|
|
1059
1108
|
stroke: F.value.style.chart.layout.outerPolygon.stroke,
|
|
1060
1109
|
"stroke-width": F.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1061
1110
|
"stroke-linejoin": "round",
|
|
1062
|
-
"stroke-linecap": "round"
|
|
1063
|
-
|
|
1064
|
-
|
|
1111
|
+
"stroke-linecap": "round",
|
|
1112
|
+
style: { "pointer-events": "none" }
|
|
1113
|
+
}, null, 8, nt),
|
|
1114
|
+
F.value.style.chart.layout.labels.dataLabels.show ? (x(), h("g", rt, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("text", {
|
|
1065
1115
|
class: "vue-ui-radar-apex-label",
|
|
1066
1116
|
x: e.labelX,
|
|
1067
1117
|
y: e.labelY,
|
|
1068
1118
|
"text-anchor": e.labelAnchor,
|
|
1119
|
+
"dominant-baseline": "middle",
|
|
1069
1120
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1070
1121
|
fill: F.value.style.chart.layout.labels.dataLabels.color,
|
|
1071
|
-
onMouseenter: (n) =>
|
|
1072
|
-
onMouseleave: (n) =>
|
|
1073
|
-
onClick: (n) =>
|
|
1074
|
-
},
|
|
1075
|
-
(
|
|
1122
|
+
onMouseenter: (n) => Ln(e, t, "pointer"),
|
|
1123
|
+
onMouseleave: (n) => Fn(e, t),
|
|
1124
|
+
onClick: (n) => In(e, t)
|
|
1125
|
+
}, T(e.name), 41, it))), 256))])) : m("", !0),
|
|
1126
|
+
(x(!0), h(d, null, C(q.value, (e, t) => (x(), h("g", null, [g("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), h("polygon", {
|
|
1076
1127
|
key: 0,
|
|
1077
|
-
points:
|
|
1128
|
+
points: E(n)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1078
1129
|
stroke: F.value.style.chart.backgroundColor,
|
|
1079
1130
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1080
1131
|
fill: "none",
|
|
1081
|
-
class:
|
|
1132
|
+
class: Re({
|
|
1082
1133
|
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1083
1134
|
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1084
|
-
})
|
|
1085
|
-
|
|
1135
|
+
}),
|
|
1136
|
+
style: { "pointer-events": "none" }
|
|
1137
|
+
}, null, 10, at)) : m("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), h("polygon", {
|
|
1086
1138
|
key: 1,
|
|
1087
|
-
points:
|
|
1139
|
+
points: E(n)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1088
1140
|
stroke: e.color,
|
|
1089
1141
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1090
|
-
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
1091
|
-
class:
|
|
1142
|
+
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${k.value}_${t})` : E(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1143
|
+
class: Re({
|
|
1092
1144
|
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1093
1145
|
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1094
|
-
})
|
|
1095
|
-
|
|
1096
|
-
|
|
1146
|
+
}),
|
|
1147
|
+
style: { "pointer-events": "none" }
|
|
1148
|
+
}, null, 10, ot)) : m("", !0)])]))), 256)),
|
|
1149
|
+
F.value.style.chart.layout.targetReference.show ? (x(), h("path", {
|
|
1097
1150
|
key: 3,
|
|
1098
1151
|
class: "vue-ui-radar-target-polygon",
|
|
1099
|
-
d: `M${
|
|
1152
|
+
d: `M${E(n)(xn.value, !1, !0)}Z`,
|
|
1100
1153
|
fill: "none",
|
|
1101
1154
|
stroke: F.value.style.chart.layout.targetReference.stroke,
|
|
1102
1155
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
|
|
1103
1156
|
"stroke-linejoin": "round",
|
|
1104
1157
|
"stroke-linecap": "round",
|
|
1105
|
-
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1158
|
+
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray,
|
|
1159
|
+
style: { "pointer-events": "none" }
|
|
1160
|
+
}, null, 8, st)) : m("", !0),
|
|
1161
|
+
F.value.style.chart.layout.plots.show ? (x(), h("g", ct, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", { key: `radar-category-${t}` }, [(x(!0), h(d, null, C(e.plots, (n, r) => (x(), h("g", {
|
|
1162
|
+
key: `radar-plot-${t}-${r}`,
|
|
1163
|
+
onMouseenter: (n) => !W.value.includes(r) && Ln(e, t, "pointer"),
|
|
1164
|
+
onMouseleave: (n) => !W.value.includes(r) && Fn(e, t),
|
|
1165
|
+
onClick: (n) => !W.value.includes(r) && In(e, t)
|
|
1166
|
+
}, [g("circle", {
|
|
1167
|
+
cx: n.x,
|
|
1168
|
+
cy: n.y,
|
|
1169
|
+
r: wn.value,
|
|
1170
|
+
fill: "transparent",
|
|
1171
|
+
stroke: "transparent",
|
|
1172
|
+
style: b({ pointerEvents: W.value.includes(r) ? "none" : "all" })
|
|
1173
|
+
}, null, 12, ut), g("circle", {
|
|
1174
|
+
cx: n.x,
|
|
1175
|
+
cy: n.y,
|
|
1176
|
+
fill: W.value.includes(r) ? "transparent" : q.value[r] ? q.value[r].color : "transparent",
|
|
1111
1177
|
r: Q.value !== null && Q.value === t ? F.value.style.chart.layout.plots.radius * 1.6 : F.value.style.chart.layout.plots.radius,
|
|
1112
|
-
stroke: W.value.includes(
|
|
1178
|
+
stroke: W.value.includes(r) ? "transparent" : F.value.style.chart.backgroundColor,
|
|
1113
1179
|
"stroke-width": .5,
|
|
1114
|
-
class:
|
|
1115
|
-
"animated-out": W.value.includes(
|
|
1116
|
-
"animated-in": K.value && G.value ===
|
|
1117
|
-
})
|
|
1118
|
-
|
|
1119
|
-
|
|
1180
|
+
class: Re({
|
|
1181
|
+
"animated-out": W.value.includes(r) && F.value.useCssAnimation,
|
|
1182
|
+
"animated-in": K.value && G.value === r && F.value.useCssAnimation
|
|
1183
|
+
}),
|
|
1184
|
+
style: { "pointer-events": "none" }
|
|
1185
|
+
}, null, 10, dt)], 40, lt))), 128))]))), 128))])) : m("", !0),
|
|
1186
|
+
w(e.$slots, "svg", { svg: {
|
|
1120
1187
|
...U.value,
|
|
1121
|
-
outerPolygon:
|
|
1122
|
-
isPrintingImg:
|
|
1123
|
-
isPrintingSvg:
|
|
1188
|
+
outerPolygon: En.value,
|
|
1189
|
+
isPrintingImg: E(nn) || E(rn) || E(Zn),
|
|
1190
|
+
isPrintingSvg: E(Qn)
|
|
1124
1191
|
} }, void 0, !0)
|
|
1125
|
-
], 46,
|
|
1192
|
+
], 46, Xe)), e.$slots.hint ? (x(), h("div", ft, [w(e.$slots, "hint", y(v({
|
|
1126
1193
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1127
|
-
isVisible:
|
|
1194
|
+
isVisible: qt.value
|
|
1128
1195
|
})), void 0, !0)])) : m("", !0)]),
|
|
1129
|
-
e.$slots.watermark ? (
|
|
1130
|
-
g("div", { id: `legend-bottom-${
|
|
1131
|
-
|
|
1196
|
+
e.$slots.watermark ? (x(), h("div", pt, [w(e.$slots, "watermark", y(v({ isPrinting: E(nn) || E(rn) || E(Zn) || E(Qn) })), void 0, !0)])) : m("", !0),
|
|
1197
|
+
g("div", { id: `legend-bottom-${k.value}` }, null, 8, mt),
|
|
1198
|
+
Wt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), p(Me, {
|
|
1132
1199
|
key: 6,
|
|
1133
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1200
|
+
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1134
1201
|
}, [g("div", {
|
|
1135
1202
|
ref_key: "chartLegend",
|
|
1136
|
-
ref:
|
|
1137
|
-
}, [
|
|
1138
|
-
key: `legend_${
|
|
1203
|
+
ref: Rt
|
|
1204
|
+
}, [w(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (x(), p(ke, {
|
|
1205
|
+
key: `legend_${Ut.value}`,
|
|
1139
1206
|
legendSet: X.value,
|
|
1140
|
-
config:
|
|
1207
|
+
config: Mn.value,
|
|
1141
1208
|
isCursorPointer: I.value,
|
|
1142
|
-
onClickMarker: t[0] ||= ({ i: e }) =>
|
|
1209
|
+
onClickMarker: t[0] ||= ({ i: e }) => pn(e)
|
|
1143
1210
|
}, Ne({
|
|
1144
|
-
item:
|
|
1211
|
+
item: D(({ legend: e, index: t }) => [E(Yt) ? m("", !0) : (x(), h("div", {
|
|
1145
1212
|
key: 0,
|
|
1146
1213
|
onClick: (t) => e.segregate(),
|
|
1147
|
-
style:
|
|
1148
|
-
},
|
|
1149
|
-
legendToggle:
|
|
1214
|
+
style: b(`opacity:${W.value.includes(t) ? .5 : 1}`)
|
|
1215
|
+
}, T(e.display), 13, ht))]),
|
|
1216
|
+
legendToggle: D(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(Yt) ? (x(), p(Te, {
|
|
1150
1217
|
key: 0,
|
|
1151
1218
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1152
1219
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1153
1220
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
1154
1221
|
checked: W.value.length > 0,
|
|
1155
1222
|
isCursorPointer: I.value,
|
|
1156
|
-
onToggle:
|
|
1223
|
+
onToggle: dn
|
|
1157
1224
|
}, null, 8, [
|
|
1158
1225
|
"backgroundColor",
|
|
1159
1226
|
"color",
|
|
@@ -1164,11 +1231,11 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1164
1231
|
_: 2
|
|
1165
1232
|
}, [F.value.style.chart.layout.targetReference.show && F.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1166
1233
|
name: "after",
|
|
1167
|
-
fn:
|
|
1234
|
+
fn: D(() => [g("div", gt, [g("div", { style: b({
|
|
1168
1235
|
display: "flex",
|
|
1169
1236
|
height: F.value.style.chart.legend.fontSize
|
|
1170
|
-
}) }, [(
|
|
1171
|
-
style:
|
|
1237
|
+
}) }, [(x(), h("svg", {
|
|
1238
|
+
style: b({ width: F.value.style.chart.legend.fontSize * 2 }),
|
|
1172
1239
|
viewBox: "0 0 16 8"
|
|
1173
1240
|
}, [g("line", {
|
|
1174
1241
|
x1: "0",
|
|
@@ -1179,22 +1246,22 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1179
1246
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1180
1247
|
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1181
1248
|
"stroke-linecap": "round"
|
|
1182
|
-
}, null, 8,
|
|
1249
|
+
}, null, 8, _t)], 4))], 4), g("span", null, T(F.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1183
1250
|
key: "0"
|
|
1184
1251
|
} : void 0]), 1032, [
|
|
1185
1252
|
"legendSet",
|
|
1186
1253
|
"config",
|
|
1187
1254
|
"isCursorPointer"
|
|
1188
1255
|
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1189
|
-
e.$slots.source ? (
|
|
1256
|
+
e.$slots.source ? (x(), h("div", {
|
|
1190
1257
|
key: 7,
|
|
1191
1258
|
ref_key: "source",
|
|
1192
|
-
ref:
|
|
1259
|
+
ref: zt,
|
|
1193
1260
|
dir: "auto"
|
|
1194
|
-
}, [
|
|
1195
|
-
Fe(
|
|
1261
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1262
|
+
Fe(E(St), {
|
|
1196
1263
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1197
|
-
show: H.value.showTooltip &&
|
|
1264
|
+
show: H.value.showTooltip && A.value,
|
|
1198
1265
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1199
1266
|
color: F.value.style.chart.tooltip.color,
|
|
1200
1267
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -1205,27 +1272,27 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1205
1272
|
position: F.value.style.chart.tooltip.position,
|
|
1206
1273
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1207
1274
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1208
|
-
parent:
|
|
1209
|
-
content:
|
|
1275
|
+
parent: j.value,
|
|
1276
|
+
content: Ft.value,
|
|
1210
1277
|
isFullscreen: $.value,
|
|
1211
1278
|
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
1212
1279
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1213
1280
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1214
1281
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1215
1282
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1216
|
-
isA11yMode:
|
|
1217
|
-
a11yPosition:
|
|
1283
|
+
isA11yMode: P.value === "keyboard",
|
|
1284
|
+
a11yPosition: Kt.value
|
|
1218
1285
|
}, {
|
|
1219
|
-
"tooltip-before":
|
|
1220
|
-
tooltip:
|
|
1221
|
-
"tooltip-after":
|
|
1222
|
-
dataset:
|
|
1223
|
-
config:
|
|
1286
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(v({ ...Pn.value })), void 0, !0)]),
|
|
1287
|
+
tooltip: D(() => [w(e.$slots, "tooltip", y(v({ ...Pn.value })), void 0, !0)]),
|
|
1288
|
+
"tooltip-after": D(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (x(), h("div", vt, [Fe(E(wt), {
|
|
1289
|
+
dataset: Nn.value,
|
|
1290
|
+
config: ln.value,
|
|
1224
1291
|
backgroundOpacity: 0
|
|
1225
1292
|
}, {
|
|
1226
|
-
"data-label":
|
|
1293
|
+
"data-label": D(({ bar: e }) => [g("div", yt, [g("span", bt, T(e.name + (F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? (x(), h("span", xt, T(e.suffix), 1)) : m("", !0)])]),
|
|
1227
1294
|
_: 1
|
|
1228
|
-
}, 8, ["dataset", "config"])])) : m("", !0),
|
|
1295
|
+
}, 8, ["dataset", "config"])])) : m("", !0), w(e.$slots, "tooltip-after", y(v({ ...Pn.value })), void 0, !0)]),
|
|
1229
1296
|
_: 3
|
|
1230
1297
|
}, 8, [
|
|
1231
1298
|
"teleportTo",
|
|
@@ -1251,24 +1318,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1251
1318
|
"isA11yMode",
|
|
1252
1319
|
"a11yPosition"
|
|
1253
1320
|
]),
|
|
1254
|
-
|
|
1321
|
+
Pt.value && F.value.userOptions.buttons.table ? (x(), p(Ve(Gn.value.component), Ie({ key: 8 }, Gn.value.props, {
|
|
1255
1322
|
ref_key: "tableUnit",
|
|
1256
|
-
ref:
|
|
1257
|
-
onClose:
|
|
1323
|
+
ref: M,
|
|
1324
|
+
onClose: Kn
|
|
1258
1325
|
}), Ne({
|
|
1259
|
-
content:
|
|
1260
|
-
key: `table_${
|
|
1326
|
+
content: D(() => [(x(), p(E(Et), {
|
|
1327
|
+
key: `table_${Ht.value}`,
|
|
1261
1328
|
colNames: Z.value.colNames,
|
|
1262
1329
|
head: Z.value.head,
|
|
1263
1330
|
body: Z.value.body,
|
|
1264
1331
|
config: Z.value.config,
|
|
1265
|
-
title: F.value.table.useDialog ? "" :
|
|
1332
|
+
title: F.value.table.useDialog ? "" : Gn.value.title,
|
|
1266
1333
|
withCloseButton: !F.value.table.useDialog,
|
|
1267
1334
|
isCursorPointer: I.value,
|
|
1268
|
-
onClose:
|
|
1335
|
+
onClose: Kn
|
|
1269
1336
|
}, {
|
|
1270
|
-
th:
|
|
1271
|
-
td:
|
|
1337
|
+
th: D(({ th: e }) => [Pe(T(e.name), 1)]),
|
|
1338
|
+
td: D(({ td: e }) => [Pe(T(e), 1)]),
|
|
1272
1339
|
_: 1
|
|
1273
1340
|
}, 8, [
|
|
1274
1341
|
"colNames",
|
|
@@ -1282,24 +1349,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1282
1349
|
_: 2
|
|
1283
1350
|
}, [F.value.table.useDialog ? {
|
|
1284
1351
|
name: "title",
|
|
1285
|
-
fn:
|
|
1352
|
+
fn: D(() => [Pe(T(Gn.value.title), 1)]),
|
|
1286
1353
|
key: "0"
|
|
1287
1354
|
} : void 0, F.value.table.useDialog ? {
|
|
1288
1355
|
name: "actions",
|
|
1289
|
-
fn:
|
|
1356
|
+
fn: D(() => [g("button", {
|
|
1290
1357
|
tabindex: "0",
|
|
1291
1358
|
class: "vue-ui-user-options-button",
|
|
1292
|
-
onClick: t[1] ||= (e) =>
|
|
1293
|
-
style:
|
|
1294
|
-
}, [Fe(
|
|
1359
|
+
onClick: t[1] ||= (e) => Rn(F.value.userOptions.callbacks.csv),
|
|
1360
|
+
style: b({ cursor: I.value ? "pointer" : "default" })
|
|
1361
|
+
}, [Fe(E(Ct), {
|
|
1295
1362
|
name: "fileCsv",
|
|
1296
|
-
stroke:
|
|
1363
|
+
stroke: Gn.value.props.color
|
|
1297
1364
|
}, null, 8, ["stroke"])], 4)]),
|
|
1298
1365
|
key: "1"
|
|
1299
1366
|
} : void 0]), 1040)) : m("", !0),
|
|
1300
|
-
|
|
1301
|
-
], 46,
|
|
1367
|
+
w(e.$slots, "skeleton", {}, () => [E(Yt) ? (x(), p(he, { key: 0 })) : m("", !0)], !0)
|
|
1368
|
+
], 46, Ke));
|
|
1302
1369
|
}
|
|
1303
|
-
}, [["__scopeId", "data-v-
|
|
1370
|
+
}, [["__scopeId", "data-v-3095c6cc"]]);
|
|
1304
1371
|
//#endregion
|
|
1305
|
-
export {
|
|
1372
|
+
export { Ge as n, St as t };
|