vue-data-ui 3.21.1 → 3.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Legend-BLhREbj7.js → Legend-B3tdljl0.js} +3 -2
- package/dist/{PackageVersion-C19kRMwz.js → PackageVersion-Ch5CwQQ0.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-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-2loQetAS.js → package-DGHwZPNC.js} +1 -1
- package/dist/{render-common-ZYTBPta1.js → render-common-CEtFwZ7E.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 +9 -0
- package/dist/{useConfig-DnH7Pf_2.js → useConfig-Ceammwok.js} +9 -0
- package/dist/{useObjectBindings-2aHyifU7.js → useObjectBindings-DVAI_7eR.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-Pk8ey2Zp.js → vue-data-ui-Cqw-EwKQ.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-VTeR1mZx.js → vue-ui-3d-bar-D4Y4XPXe.js} +2 -2
- package/dist/{vue-ui-accordion-DLnwuQda.js → vue-ui-accordion-6KrR0W3I.js} +1 -1
- package/dist/{vue-ui-age-pyramid-xEOXbRHP.js → vue-ui-age-pyramid-BKTUOzeL.js} +2 -2
- package/dist/{vue-ui-annotator-BljP5cB7.js → vue-ui-annotator-BXsgCUg7.js} +2 -2
- package/dist/{vue-ui-bullet-CrZLxzj_.js → vue-ui-bullet-DAFePzj5.js} +3 -3
- package/dist/{vue-ui-bump-CTgHWBol.js → vue-ui-bump-DmspS2p9.js} +2 -2
- package/dist/{vue-ui-candlestick-BnlUMIhy.js → vue-ui-candlestick-CPMDMs_p.js} +2 -2
- package/dist/{vue-ui-carousel-table-CUCUCXKo.js → vue-ui-carousel-table-BdpKu2Gu.js} +2 -2
- package/dist/{vue-ui-chestnut-duBljSlu.js → vue-ui-chestnut-D5VDyETx.js} +2 -2
- package/dist/{vue-ui-chord-Bj4slh-a.js → vue-ui-chord-BLD3FTrM.js} +3 -3
- package/dist/{vue-ui-circle-pack-i8NWuWRC.js → vue-ui-circle-pack-Crty2ywQ.js} +2 -2
- package/dist/{vue-ui-cursor-gsK2MfeA.js → vue-ui-cursor-gIz2v2sh.js} +2 -2
- package/dist/{vue-ui-dag-D1iHafKn.js → vue-ui-dag-D99YAHUN.js} +2 -2
- package/dist/{vue-ui-dashboard-CHGG2h_R.js → vue-ui-dashboard-Bwsahr3Q.js} +65 -65
- package/dist/{vue-ui-digits-L0CQHwNC.js → vue-ui-digits-B5TOL7Tg.js} +2 -2
- package/dist/{vue-ui-donut-BvdCujBD.js → vue-ui-donut-BX4FqXxi.js} +2 -2
- package/dist/{vue-ui-donut-DZI7-m5W.js → vue-ui-donut-DxwpwPXL.js} +3 -3
- package/dist/{vue-ui-donut-evolution-6Swt5Bfu.js → vue-ui-donut-evolution-DgOi1hrP.js} +3 -3
- package/dist/{vue-ui-dumbbell-Du7kYvcj.js → vue-ui-dumbbell-CF2HSfLD.js} +3 -3
- package/dist/{vue-ui-flow-CCuIvxey.js → vue-ui-flow-CcZqIxXm.js} +3 -3
- package/dist/{vue-ui-funnel-CjGDyxgn.js → vue-ui-funnel-CUEAMdGQ.js} +2 -2
- package/dist/{vue-ui-galaxy-CgfJo8YL.js → vue-ui-galaxy-DLCN6lVW.js} +3 -3
- package/dist/{vue-ui-gauge-CQOlEqFH.js → vue-ui-gauge-Ci9BECLJ.js} +2 -2
- package/dist/{vue-ui-geo-BDmUqZzA.js → vue-ui-geo-LN4_jmL1.js} +2 -2
- package/dist/{vue-ui-gizmo-C5TF8RsA.js → vue-ui-gizmo-m4m1T7wp.js} +2 -2
- package/dist/{vue-ui-heatmap-DNfexjVQ.js → vue-ui-heatmap-CGbgmvze.js} +3 -3
- package/dist/{vue-ui-history-plot-BsRlZ3Ch.js → vue-ui-history-plot-Jv8e316x.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-B3FVEoEc.js → vue-ui-horizontal-bar-Bp4bQE9L.js} +4 -4
- package/dist/{vue-ui-kpi-DvNkTrdr.js → vue-ui-kpi-BUCkAnwc.js} +2 -2
- package/dist/{vue-ui-mini-loader-BnLOdRA0.js → vue-ui-mini-loader-Bdtyyj4j.js} +1 -1
- package/dist/{vue-ui-molecule-B-SSu23l.js → vue-ui-molecule-COlIB0f9.js} +2 -2
- package/dist/{vue-ui-mood-radar-C0uBZS5M.js → vue-ui-mood-radar-ZorBnn5A.js} +3 -3
- package/dist/{vue-ui-nested-donuts-CvOcH0kV.js → vue-ui-nested-donuts-YNeX2TNF.js} +3 -3
- package/dist/{vue-ui-onion-DtQBdJrD.js → vue-ui-onion-CXxE2VEZ.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-Bg2tSMri.js → vue-ui-parallel-coordinate-plot-CBKGYeJ8.js} +3 -3
- package/dist/{vue-ui-quadrant-aMfV7BCQ.js → vue-ui-quadrant-DyVZUH3C.js} +3 -3
- package/dist/{vue-ui-quick-chart-B9E9JbtT.js → vue-ui-quick-chart-BoTdvCF6.js} +2 -2
- package/dist/{vue-ui-radar-C3sVf4Kk.js → vue-ui-radar-CJdevsUV.js} +266 -214
- package/dist/{vue-ui-rating-pDVqT08V.js → vue-ui-rating-CZGaYqLU.js} +1 -1
- package/dist/{vue-ui-relation-circle-Bh8gBtow.js → vue-ui-relation-circle-UOkATiKO.js} +2 -2
- package/dist/{vue-ui-ridgeline-CvON901U.js → vue-ui-ridgeline-DzT0MjuZ.js} +3 -3
- package/dist/{vue-ui-rings-2oM3ddqR.js → vue-ui-rings-UHR4QZAu.js} +3 -3
- package/dist/{vue-ui-scatter-DJJ6I8jn.js → vue-ui-scatter-Dz06VMne.js} +3 -3
- package/dist/{vue-ui-skeleton-CUf4LhWq.js → vue-ui-skeleton-DszO5oKN.js} +2 -2
- package/dist/{vue-ui-smiley-DUI5n89s.js → vue-ui-smiley-bFNZybVe.js} +1 -1
- package/dist/{vue-ui-spark-trend-5EbTK8CN.js → vue-ui-spark-trend-BhHhXKMO.js} +2 -2
- package/dist/{vue-ui-sparkbar-V1Q7yOzO.js → vue-ui-sparkbar-3pujPUwi.js} +2 -2
- package/dist/{vue-ui-sparkgauge-DVFBXPs-.js → vue-ui-sparkgauge-BVNi8awn.js} +2 -2
- package/dist/{vue-ui-sparkhistogram--mzKP-M1.js → vue-ui-sparkhistogram-BHL0TXsU.js} +2 -2
- package/dist/{vue-ui-sparkline-IbMn1jAF.js → vue-ui-sparkline-Ce0H8VCU.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-BehvXszi.js → vue-ui-sparkstackbar-96m0_60o.js} +2 -2
- package/dist/{vue-ui-stackbar-D--yXf7n.js → vue-ui-stackbar-qel6EQbi.js} +3 -3
- package/dist/{vue-ui-stackline-DI2_W85f.js → vue-ui-stackline-C7-gkhqX.js} +3 -3
- package/dist/{vue-ui-strip-plot-D243ak4S.js → vue-ui-strip-plot-SDiz1Qqj.js} +2 -2
- package/dist/{vue-ui-table-ChiyCBKh.js → vue-ui-table-DIasXzkB.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C1e_7MJ2.js → vue-ui-table-heatmap-BJD8A_Rt.js} +1 -1
- package/dist/{vue-ui-table-sparkline-BN4D7tBN.js → vue-ui-table-sparkline-sxs355Ao.js} +2 -2
- package/dist/{vue-ui-thermometer-CV4l5Sjx.js → vue-ui-thermometer-gb1GvP5r.js} +2 -2
- package/dist/{vue-ui-timer-DtvtZpm0.js → vue-ui-timer-DWiGCYOA.js} +2 -2
- package/dist/{vue-ui-tiremarks-Bk3Cy8YN.js → vue-ui-tiremarks-BjAL0iLb.js} +2 -2
- package/dist/{vue-ui-treemap-CU7kBoiL.js → vue-ui-treemap-BB18e9NT.js} +3 -3
- package/dist/{vue-ui-waffle-CIevmSko.js → vue-ui-waffle-D8mdsq1a.js} +3 -3
- package/dist/{vue-ui-wheel-CFkx_bUf.js → vue-ui-wheel-rEAlApIG.js} +2 -2
- package/dist/{vue-ui-word-cloud-DJ7e4RZy.js → vue-ui-word-cloud-BXjUK4pv.js} +2 -2
- package/dist/{vue-ui-world-Cng3zjSW.js → vue-ui-world-DAB4Gg8j.js} +2 -2
- package/dist/{vue-ui-xy-B8jNN9dy.js → vue-ui-xy-BJ9B55c0.js} +3 -3
- package/dist/{vue-ui-xy-yPqdWpyW.js → vue-ui-xy-V9KNpq90.js} +23 -22
- package/dist/{vue-ui-xy-canvas-DjxM7y3T.js → vue-ui-xy-canvas-iuxHwCtX.js} +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Bt as t, D as n, Ft as r, G as i, H as a, Ht as o, J as ee, Ot as s, Pt as te, S as ne, Tt as re, X as c, ct as ie, ht as ae, i as oe, it as se, t as ce, v as le, wt as ue, x as de, y as fe } from "./lib-AJRHFE5U.js";
|
|
3
|
-
import { t as pe } from "./useConfig-
|
|
3
|
+
import { t as pe } from "./useConfig-Ceammwok.js";
|
|
4
4
|
import { t as me } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { n as he, t as ge } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
6
|
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
@@ -15,12 +15,12 @@ import { t as Te } from "./BaseLegendToggle-BNRi408o.js";
|
|
|
15
15
|
import { t as Ee } from "./A11yDataTable-BCbtxMU6.js";
|
|
16
16
|
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as ke } from "./Legend-
|
|
18
|
+
import { t as ke } from "./Legend-B3tdljl0.js";
|
|
19
19
|
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-kjVKQz36.js";
|
|
20
20
|
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
21
21
|
import { Fragment as l, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Re, onMounted as ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as w, toRefs as He, unref as T, watch as Ue, withCtx as E } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-radar.vue
|
|
23
|
-
var We = /* @__PURE__ */ e({ default: () =>
|
|
23
|
+
var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
|
|
24
24
|
"xmlns",
|
|
25
25
|
"aria-describedby",
|
|
26
26
|
"viewBox"
|
|
@@ -57,13 +57,18 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
57
57
|
"stroke",
|
|
58
58
|
"stroke-width",
|
|
59
59
|
"fill"
|
|
60
|
-
], lt =
|
|
60
|
+
], lt = [
|
|
61
|
+
"d",
|
|
62
|
+
"stroke",
|
|
63
|
+
"stroke-width",
|
|
64
|
+
"stroke-dasharray"
|
|
65
|
+
], ut = { key: 4 }, dt = [
|
|
61
66
|
"cx",
|
|
62
67
|
"cy",
|
|
63
68
|
"fill",
|
|
64
69
|
"r",
|
|
65
70
|
"stroke"
|
|
66
|
-
],
|
|
71
|
+
], ft = {
|
|
67
72
|
key: 0,
|
|
68
73
|
style: {
|
|
69
74
|
position: "absolute",
|
|
@@ -73,19 +78,23 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
73
78
|
},
|
|
74
79
|
"data-dom-to-png-ignore": "",
|
|
75
80
|
"aria-hidden": "true"
|
|
76
|
-
},
|
|
81
|
+
}, pt = {
|
|
77
82
|
key: 5,
|
|
78
83
|
class: "vue-data-ui-watermark"
|
|
79
|
-
},
|
|
84
|
+
}, mt = ["id"], ht = ["onClick"], gt = { class: "vue-data-ui-legend-item" }, _t = [
|
|
85
|
+
"stroke",
|
|
86
|
+
"stroke-width",
|
|
87
|
+
"stroke-dasharray"
|
|
88
|
+
], vt = {
|
|
80
89
|
key: 0,
|
|
81
90
|
style: {
|
|
82
91
|
"max-width": "200px",
|
|
83
92
|
margin: "0 auto"
|
|
84
93
|
}
|
|
85
|
-
},
|
|
94
|
+
}, yt = {
|
|
86
95
|
class: "vue-ui-radar-tooltip-datalabel",
|
|
87
96
|
style: { width: "100%" }
|
|
88
|
-
},
|
|
97
|
+
}, bt = { class: "vue-ui-radar-tooltip-datalabel-name" }, xt = { key: 0 }, St = /* @__PURE__ */ Se({
|
|
89
98
|
__name: "vue-ui-radar",
|
|
90
99
|
props: {
|
|
91
100
|
config: {
|
|
@@ -103,10 +112,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
103
112
|
},
|
|
104
113
|
emits: ["selectLegend", "copyAlt"],
|
|
105
114
|
setup(e, { expose: Se, emit: We }) {
|
|
106
|
-
let
|
|
115
|
+
let St = h(() => import("./Tooltip-979Ytd8R.js")), Ct = h(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), wt = h(() => import("./vue-ui-sparkbar-3pujPUwi.js").then((e) => e.n)), Tt = h(() => import("./vue-ui-accordion-6KrR0W3I.js").then((e) => e.n)), Et = h(() => import("./DataTable-DweDyHc1.js")), Dt = h(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Ot = h(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), kt = h(() => import("./PackageVersion-Ch5CwQQ0.js").then((e) => e.t)), At = h(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_radar: jt } = pe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = ye(), D = e, Pt = u(() => !!D.dataset && Object.keys(D.dataset).length), O = x(a()), k = x(!1), Ft = x(""), It = x(0), A = x(null), Lt = x(null), Rt = x(null), zt = x(null), Bt = x(null), Vt = x(0), Ht = x(0), Ut = x(0), Wt = x(!1), j = x(null), Gt = x(null), Kt = x(!1), qt = x(!1), M = x(null), Jt = x({
|
|
107
116
|
x: 0,
|
|
108
117
|
y: 0
|
|
109
|
-
}), N = x("pointer"),
|
|
118
|
+
}), N = x("pointer"), Yt = x(!1), P = x(tn()), F = u(() => P.value.userOptions.useCursorPointer), Xt = u(() => o({
|
|
110
119
|
defaultConfig: {
|
|
111
120
|
userOptions: { show: !1 },
|
|
112
121
|
table: { show: !1 },
|
|
@@ -122,10 +131,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
122
131
|
} }
|
|
123
132
|
},
|
|
124
133
|
userConfig: P.value.skeletonConfig ?? {}
|
|
125
|
-
})), { loading:
|
|
134
|
+
})), { loading: Zt, FINAL_DATASET: I } = he({
|
|
126
135
|
...He(D),
|
|
127
136
|
FINAL_CONFIG: P,
|
|
128
|
-
prepareConfig:
|
|
137
|
+
prepareConfig: tn,
|
|
129
138
|
callback: () => {
|
|
130
139
|
Promise.resolve().then(async () => {
|
|
131
140
|
await Le(), V.value.showTable = P.value.table.show;
|
|
@@ -171,16 +180,16 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
171
180
|
},
|
|
172
181
|
skeletonConfig: o({
|
|
173
182
|
defaultConfig: P.value,
|
|
174
|
-
userConfig:
|
|
183
|
+
userConfig: Xt.value
|
|
175
184
|
})
|
|
176
|
-
}), { userOptionsVisible:
|
|
177
|
-
function
|
|
185
|
+
}), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = De({ config: P.value }), { svgRef: L } = Oe({ config: P.value.style.chart.title });
|
|
186
|
+
function tn() {
|
|
178
187
|
let e = ve({
|
|
179
188
|
userConfig: D.config,
|
|
180
|
-
defaultConfig:
|
|
189
|
+
defaultConfig: jt
|
|
181
190
|
}), n = e.theme;
|
|
182
191
|
if (!n) return e;
|
|
183
|
-
if (!
|
|
192
|
+
if (!Mt.value(e)) return Nt(e), e;
|
|
184
193
|
let r = ve({
|
|
185
194
|
userConfig: je[n] || D.config,
|
|
186
195
|
defaultConfig: e
|
|
@@ -194,10 +203,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
194
203
|
};
|
|
195
204
|
}
|
|
196
205
|
Ue(() => D.config, (e) => {
|
|
197
|
-
P.value =
|
|
206
|
+
P.value = tn(), Qt.value = !P.value.userOptions.showOnChartHover, nn(), Vt.value += 1, Ht.value += 1, Ut.value += 1, V.value.dataLabels.show = P.value.style.chart.layout.labels.dataLabels.show, V.value.showTable = P.value.table.show, V.value.showTooltip = P.value.style.chart.tooltip ? P.value.style.chart.tooltip.show : !1;
|
|
198
207
|
}, { deep: !0 });
|
|
199
208
|
let R = Ve(null), z = Ve(null), B = u(() => P.value.debug);
|
|
200
|
-
function
|
|
209
|
+
function nn() {
|
|
201
210
|
if (re(D.dataset) && c({
|
|
202
211
|
componentName: "VueUiRadar",
|
|
203
212
|
type: "dataset",
|
|
@@ -206,33 +215,33 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
206
215
|
let e = Ce(() => {
|
|
207
216
|
let { width: e, height: t } = we({
|
|
208
217
|
chart: A.value,
|
|
209
|
-
title: P.value.style.chart.title.text ?
|
|
210
|
-
legend: P.value.style.chart.legend.show ?
|
|
211
|
-
source:
|
|
212
|
-
noTitle:
|
|
218
|
+
title: P.value.style.chart.title.text ? Lt.value : null,
|
|
219
|
+
legend: P.value.style.chart.legend.show ? Rt.value : null,
|
|
220
|
+
source: zt.value,
|
|
221
|
+
noTitle: Bt.value
|
|
213
222
|
});
|
|
214
223
|
requestAnimationFrame(() => {
|
|
215
|
-
H.value.width = e, H.value.height = t,
|
|
224
|
+
H.value.width = e, H.value.height = t, kn();
|
|
216
225
|
});
|
|
217
226
|
});
|
|
218
227
|
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = A.value.parentNode, R.value.observe(z.value);
|
|
219
228
|
}
|
|
220
|
-
|
|
229
|
+
kn();
|
|
221
230
|
}
|
|
222
231
|
ze(() => {
|
|
223
|
-
|
|
232
|
+
Wt.value = !0, nn();
|
|
224
233
|
}), Re(() => {
|
|
225
234
|
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
226
235
|
});
|
|
227
|
-
let { isPrinting:
|
|
236
|
+
let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = me({
|
|
228
237
|
elementId: `vue-ui-radar_${O.value}`,
|
|
229
238
|
fileName: P.value.style.chart.title.text || "vue-ui-radar",
|
|
230
239
|
options: P.value.userOptions.print
|
|
231
|
-
}),
|
|
240
|
+
}), cn = u(() => P.value.userOptions.show && !P.value.style.chart.title.text), ln = u(() => de(P.value.customPalette)), V = x({
|
|
232
241
|
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
233
242
|
showTable: P.value.table.show,
|
|
234
243
|
showTooltip: P.value.style.chart.tooltip.show
|
|
235
|
-
}),
|
|
244
|
+
}), un = u(() => ({ style: {
|
|
236
245
|
backgroundColor: "#FFFFFF00",
|
|
237
246
|
animation: {
|
|
238
247
|
show: P.value.style.chart.tooltip.animation.show,
|
|
@@ -249,34 +258,34 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
249
258
|
} })), H = x({
|
|
250
259
|
height: 312,
|
|
251
260
|
width: 512
|
|
252
|
-
}),
|
|
253
|
-
function
|
|
261
|
+
}), dn = We, U = x([]), W = x(null), G = x(!1);
|
|
262
|
+
function fn() {
|
|
254
263
|
U.value.length ? U.value = [] : Y.value.forEach((e, t) => {
|
|
255
264
|
U.value.push(t);
|
|
256
|
-
}),
|
|
265
|
+
}), pn();
|
|
257
266
|
}
|
|
258
|
-
function
|
|
259
|
-
|
|
267
|
+
function pn() {
|
|
268
|
+
dn("selectLegend", Y.value.filter((e, t) => !U.value.includes(t)).map((e) => ({
|
|
260
269
|
name: e.name,
|
|
261
270
|
color: e.color,
|
|
262
271
|
proportion: e.totalProportion
|
|
263
272
|
})));
|
|
264
273
|
}
|
|
265
|
-
function
|
|
274
|
+
function mn(e) {
|
|
266
275
|
G.value = !0, U.value.includes(e) ? (W.value = e, U.value = U.value.filter((t) => t !== e), setTimeout(() => {
|
|
267
276
|
G.value = !1, W.value = null;
|
|
268
277
|
}, 500)) : (U.value.push(e), setTimeout(() => {
|
|
269
278
|
G.value = !1;
|
|
270
|
-
}, 500)),
|
|
279
|
+
}, 500)), pn();
|
|
271
280
|
}
|
|
272
|
-
function
|
|
281
|
+
function hn() {
|
|
273
282
|
return Y.value.map((e) => ({
|
|
274
283
|
name: e.name,
|
|
275
284
|
color: e.color,
|
|
276
285
|
proportion: e.totalProportion
|
|
277
286
|
}));
|
|
278
287
|
}
|
|
279
|
-
function
|
|
288
|
+
function gn() {
|
|
280
289
|
let e = I.value;
|
|
281
290
|
if ([null, void 0].includes(e?.categories)) {
|
|
282
291
|
c({
|
|
@@ -334,12 +343,12 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
334
343
|
});
|
|
335
344
|
});
|
|
336
345
|
}
|
|
337
|
-
Ue(() => I.value, () =>
|
|
346
|
+
Ue(() => I.value, () => gn(), {
|
|
338
347
|
deep: !0,
|
|
339
348
|
immediate: !0
|
|
340
349
|
});
|
|
341
350
|
let K = u(() => {
|
|
342
|
-
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t =
|
|
351
|
+
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t = ln.value ?? s;
|
|
343
352
|
return e.map((e, n) => ({
|
|
344
353
|
name: e?.name ?? "",
|
|
345
354
|
categoryId: `radar_category_${O.value}_${n}`,
|
|
@@ -349,54 +358,67 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
349
358
|
}));
|
|
350
359
|
}), q = u(() => I.value.series.map((e, t) => ({
|
|
351
360
|
...e,
|
|
352
|
-
color: fe(e.color) ||
|
|
361
|
+
color: fe(e.color) || ln.value[t] || s[t] || s[t % s.length],
|
|
353
362
|
serieId: `radar_serie_${O.value}_${t}`,
|
|
354
363
|
formatter: e.formatter || null,
|
|
355
364
|
absoluteIndex: t
|
|
356
365
|
})));
|
|
357
|
-
function
|
|
366
|
+
function _n(e) {
|
|
358
367
|
return q.value.length ? Y.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
359
368
|
}
|
|
360
|
-
function
|
|
361
|
-
let t =
|
|
362
|
-
t !== null && U.value.includes(t.absoluteIndex) &&
|
|
369
|
+
function vn(e) {
|
|
370
|
+
let t = _n(e);
|
|
371
|
+
t !== null && U.value.includes(t.absoluteIndex) && mn(t.absoluteIndex);
|
|
363
372
|
}
|
|
364
|
-
function
|
|
365
|
-
let t =
|
|
366
|
-
t !== null && (U.value.includes(t.absoluteIndex) ||
|
|
373
|
+
function yn(e) {
|
|
374
|
+
let t = _n(e);
|
|
375
|
+
t !== null && (U.value.includes(t.absoluteIndex) || mn(t.absoluteIndex));
|
|
367
376
|
}
|
|
368
|
-
let
|
|
377
|
+
let bn = u(() => Math.max(0, ...q.value.flatMap((e) => e.values)));
|
|
378
|
+
function xn(e) {
|
|
379
|
+
return P.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || bn.value || 1;
|
|
380
|
+
}
|
|
381
|
+
let Sn = u(() => q.value.map((e, t) => {
|
|
382
|
+
let n = Tn.value.coordinates[t];
|
|
383
|
+
return An({
|
|
384
|
+
centerX: H.value.width / 2,
|
|
385
|
+
centerY: H.value.height / 2,
|
|
386
|
+
apexX: n.x,
|
|
387
|
+
apexY: n.y,
|
|
388
|
+
proportion: (e.target || 0) / xn(e)
|
|
389
|
+
});
|
|
390
|
+
})), Cn = u(() => q.value.length), wn = u(() => Math.min(H.value.width, H.value.height) / 3), Tn = u(() => n({
|
|
369
391
|
plot: {
|
|
370
392
|
x: H.value.width / 2,
|
|
371
393
|
y: H.value.height / 2
|
|
372
394
|
},
|
|
373
|
-
radius:
|
|
374
|
-
sides:
|
|
395
|
+
radius: wn.value,
|
|
396
|
+
sides: Cn.value,
|
|
375
397
|
rotation: 0
|
|
376
|
-
})),
|
|
398
|
+
})), En = u(() => {
|
|
377
399
|
let e = [];
|
|
378
|
-
for (let t = 0; t <
|
|
400
|
+
for (let t = 0; t < wn.value; t += wn.value / P.value.style.chart.layout.grid.graduations) e.push(t);
|
|
379
401
|
return e;
|
|
380
|
-
}), J = u(() =>
|
|
381
|
-
let n = q.value[t].values.map((
|
|
402
|
+
}), J = u(() => Tn.value.coordinates.map((e, t) => {
|
|
403
|
+
let n = q.value[t], r = q.value[t].values.map((t) => An({
|
|
382
404
|
centerX: H.value.width / 2,
|
|
383
405
|
centerY: H.value.height / 2,
|
|
384
406
|
apexX: e.x,
|
|
385
407
|
apexY: e.y,
|
|
386
|
-
proportion:
|
|
408
|
+
proportion: t / xn(n)
|
|
387
409
|
}));
|
|
388
410
|
return {
|
|
389
411
|
...e,
|
|
390
|
-
...
|
|
391
|
-
plots:
|
|
412
|
+
...n,
|
|
413
|
+
plots: r
|
|
392
414
|
};
|
|
393
415
|
}).map((e) => ({
|
|
394
416
|
...e,
|
|
395
|
-
labelX:
|
|
396
|
-
labelY:
|
|
397
|
-
labelAnchor:
|
|
417
|
+
labelX: Dn(e).x,
|
|
418
|
+
labelY: Dn(e).y,
|
|
419
|
+
labelAnchor: Dn(e).anchor
|
|
398
420
|
})));
|
|
399
|
-
function
|
|
421
|
+
function Dn({ x: e, y: t }) {
|
|
400
422
|
let n = "middle";
|
|
401
423
|
return e = Math.round(e), t = Math.round(t), e > H.value.width / 2 && (e += 12, n = "start"), e < H.value.width / 2 && (e -= 12, n = "end"), t > H.value.height / 2 + 1 && (t += 20), t < H.value.height / 2 - 1 && (t -= 12), t === H.value.height / 2 && (t += 4), {
|
|
402
424
|
x: e,
|
|
@@ -404,24 +426,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
404
426
|
anchor: n
|
|
405
427
|
};
|
|
406
428
|
}
|
|
407
|
-
let
|
|
429
|
+
let On = u({
|
|
408
430
|
get: () => P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
409
431
|
set: (e) => e
|
|
410
|
-
}), { autoSizeLabels:
|
|
432
|
+
}), { autoSizeLabels: kn } = Ae({
|
|
411
433
|
svgRef: L,
|
|
412
434
|
fontSize: P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
413
435
|
minFontSize: 6,
|
|
414
|
-
sizeRef:
|
|
436
|
+
sizeRef: On,
|
|
415
437
|
labelClass: ".vue-ui-radar-apex-label"
|
|
416
438
|
});
|
|
417
|
-
function
|
|
439
|
+
function An({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
418
440
|
return {
|
|
419
441
|
x: e + (n - e) * i,
|
|
420
442
|
y: t + (r - t) * i
|
|
421
443
|
};
|
|
422
444
|
}
|
|
423
445
|
let Y = u(() => {
|
|
424
|
-
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
446
|
+
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target || bn.value)));
|
|
425
447
|
return K.value.map((t, n) => {
|
|
426
448
|
let r = le(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / q.value.length);
|
|
427
449
|
return {
|
|
@@ -430,7 +452,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
430
452
|
totalProportion: r,
|
|
431
453
|
shape: "circle",
|
|
432
454
|
opacity: U.value.includes(n) ? .5 : 1,
|
|
433
|
-
segregate: () =>
|
|
455
|
+
segregate: () => mn(n),
|
|
434
456
|
isSegregated: U.value.includes(n),
|
|
435
457
|
display: `${t.name}: ${i({
|
|
436
458
|
v: (r ?? 0) * 100,
|
|
@@ -439,7 +461,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
439
461
|
})}`
|
|
440
462
|
};
|
|
441
463
|
});
|
|
442
|
-
}),
|
|
464
|
+
}), jn = u(() => ({
|
|
443
465
|
cy: "radar-div-legend",
|
|
444
466
|
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
445
467
|
color: P.value.style.chart.legend.color,
|
|
@@ -494,26 +516,26 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
494
516
|
},
|
|
495
517
|
colNames: e
|
|
496
518
|
};
|
|
497
|
-
}), Z = x(null),
|
|
498
|
-
function
|
|
519
|
+
}), Z = x(null), Mn = x([]), Nn = x(null);
|
|
520
|
+
function Pn(e, t) {
|
|
499
521
|
k.value = !1, Z.value = null, M.value = null, N.value = "pointer", P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
500
522
|
datapoint: e,
|
|
501
523
|
seriesIndex: t
|
|
502
524
|
});
|
|
503
525
|
}
|
|
504
|
-
function
|
|
526
|
+
function Fn(e, t) {
|
|
505
527
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
506
528
|
datapoint: e,
|
|
507
529
|
seriesIndex: t
|
|
508
530
|
});
|
|
509
531
|
}
|
|
510
|
-
function
|
|
532
|
+
function In(e, t, n = "pointer") {
|
|
511
533
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
512
534
|
datapoint: e,
|
|
513
535
|
seriesIndex: t
|
|
514
536
|
}), N.value = n, M.value = t;
|
|
515
537
|
let r = K.value.slice();
|
|
516
|
-
|
|
538
|
+
Mn.value = [], Z.value = t, k.value = !0, Nn.value = {
|
|
517
539
|
datapoint: e,
|
|
518
540
|
seriesIndex: t,
|
|
519
541
|
series: {
|
|
@@ -534,7 +556,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
534
556
|
},
|
|
535
557
|
config: P.value
|
|
536
558
|
}))) {
|
|
537
|
-
|
|
559
|
+
Ft.value = a({
|
|
538
560
|
seriesIndex: t,
|
|
539
561
|
datapoint: e,
|
|
540
562
|
series: {
|
|
@@ -546,7 +568,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
546
568
|
});
|
|
547
569
|
return;
|
|
548
570
|
}
|
|
549
|
-
|
|
571
|
+
Ft.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
550
572
|
for (let t = 0; t < e.values.length; t += 1) if (!U.value.includes(t)) {
|
|
551
573
|
let n = r[t], a = e.values[t], o = isNaN(a / e.target) ? 0 : a / e.target * 100, ee = oe(e.formatter, a, i({
|
|
552
574
|
p: K.value[t].prefix,
|
|
@@ -558,7 +580,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
558
580
|
s: "%",
|
|
559
581
|
r: P.value.style.chart.tooltip.roundingPercentage
|
|
560
582
|
}), te = P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${ee} (${s})` : P.value.style.chart.tooltip.showValue && !P.value.style.chart.tooltip.showPercentage ? ee : !P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
561
|
-
|
|
583
|
+
Mn.value.push({
|
|
562
584
|
name: n?.name ?? `#${t + 1}`,
|
|
563
585
|
value: e.values[t] / e.target * 100,
|
|
564
586
|
color: n?.color,
|
|
@@ -569,7 +591,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
569
591
|
});
|
|
570
592
|
}
|
|
571
593
|
}
|
|
572
|
-
function
|
|
594
|
+
function Ln(e = null) {
|
|
573
595
|
Le(() => {
|
|
574
596
|
let t = [
|
|
575
597
|
[P.value.style.chart.title.text],
|
|
@@ -591,20 +613,20 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
591
613
|
});
|
|
592
614
|
}
|
|
593
615
|
let Q = x(!1);
|
|
594
|
-
function
|
|
595
|
-
Q.value = e,
|
|
616
|
+
function Rn(e) {
|
|
617
|
+
Q.value = e, It.value += 1;
|
|
596
618
|
}
|
|
597
|
-
function
|
|
619
|
+
function zn() {
|
|
598
620
|
V.value.showTable = !V.value.showTable;
|
|
599
621
|
}
|
|
600
|
-
function
|
|
622
|
+
function Bn() {
|
|
601
623
|
V.value.showTooltip = !V.value.showTooltip;
|
|
602
624
|
}
|
|
603
|
-
let
|
|
604
|
-
function
|
|
605
|
-
|
|
625
|
+
let $ = x(!1);
|
|
626
|
+
function Vn() {
|
|
627
|
+
$.value = !$.value;
|
|
606
628
|
}
|
|
607
|
-
async function
|
|
629
|
+
async function Hn({ scale: e = 2 } = {}) {
|
|
608
630
|
if (!A.value) return;
|
|
609
631
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
610
632
|
domElement: A.value,
|
|
@@ -621,10 +643,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
621
643
|
aspectRatio: r
|
|
622
644
|
};
|
|
623
645
|
}
|
|
624
|
-
let
|
|
646
|
+
let Un = u(() => {
|
|
625
647
|
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
626
648
|
return {
|
|
627
|
-
component: e ?
|
|
649
|
+
component: e ? At : Tt,
|
|
628
650
|
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
629
651
|
props: e ? {
|
|
630
652
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -655,48 +677,48 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
655
677
|
Ue(() => V.value.showTable, (e) => {
|
|
656
678
|
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
657
679
|
});
|
|
658
|
-
function
|
|
659
|
-
V.value.showTable = !1,
|
|
680
|
+
function Wn() {
|
|
681
|
+
V.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
|
|
660
682
|
}
|
|
661
|
-
let
|
|
683
|
+
let Gn = u(() => Y.value.map((e) => ({
|
|
662
684
|
...e,
|
|
663
685
|
name: e.display
|
|
664
|
-
}))),
|
|
686
|
+
}))), Kn = u(() => P.value.style.chart.backgroundColor), qn = u(() => P.value.style.chart.legend), { exportSvg: Jn, getSvg: Yn } = _e({
|
|
665
687
|
svg: L,
|
|
666
688
|
title: u(() => P.value.style.chart.title),
|
|
667
|
-
legend:
|
|
668
|
-
legendItems:
|
|
669
|
-
backgroundColor:
|
|
689
|
+
legend: qn,
|
|
690
|
+
legendItems: Gn,
|
|
691
|
+
backgroundColor: Kn
|
|
670
692
|
});
|
|
671
|
-
async function
|
|
672
|
-
|
|
693
|
+
async function Xn({ isCb: e }) {
|
|
694
|
+
qt.value = !0, await Le();
|
|
673
695
|
try {
|
|
674
696
|
if (e) {
|
|
675
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
697
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Yn();
|
|
676
698
|
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
677
699
|
blob: e,
|
|
678
700
|
url: t,
|
|
679
701
|
text: n,
|
|
680
702
|
dataUrl: r
|
|
681
703
|
}));
|
|
682
|
-
} else await Promise.resolve(
|
|
704
|
+
} else await Promise.resolve(Jn());
|
|
683
705
|
} finally {
|
|
684
|
-
|
|
706
|
+
qt.value = !1;
|
|
685
707
|
}
|
|
686
708
|
}
|
|
687
|
-
function
|
|
709
|
+
function Zn(e) {
|
|
688
710
|
if (e?.stage === "start") {
|
|
689
|
-
|
|
711
|
+
Kt.value = !0;
|
|
690
712
|
return;
|
|
691
713
|
}
|
|
692
714
|
if (e?.stage === "end") {
|
|
693
|
-
|
|
715
|
+
Kt.value = !1;
|
|
694
716
|
return;
|
|
695
717
|
}
|
|
696
|
-
|
|
718
|
+
sn();
|
|
697
719
|
}
|
|
698
|
-
async function
|
|
699
|
-
if (
|
|
720
|
+
async function Qn() {
|
|
721
|
+
if (dn("copyAlt", {
|
|
700
722
|
config: P.value,
|
|
701
723
|
dataset: J.value
|
|
702
724
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
@@ -708,24 +730,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
708
730
|
dataset: J.value
|
|
709
731
|
}));
|
|
710
732
|
}
|
|
711
|
-
function
|
|
712
|
-
M.value = null,
|
|
733
|
+
function $n() {
|
|
734
|
+
M.value = null, Yt.value = !0;
|
|
713
735
|
}
|
|
714
|
-
function
|
|
715
|
-
M.value = null, N.value = "pointer", k.value = !1, Z.value = null,
|
|
736
|
+
function er() {
|
|
737
|
+
M.value = null, N.value = "pointer", k.value = !1, Z.value = null, Yt.value = !1;
|
|
716
738
|
}
|
|
717
|
-
function
|
|
739
|
+
function tr(e) {
|
|
718
740
|
if (!Number.isFinite(e) || !L.value) return;
|
|
719
741
|
let t = J.value[e];
|
|
720
742
|
if (!t) return;
|
|
721
743
|
let n = L.value.getBoundingClientRect();
|
|
722
|
-
|
|
744
|
+
Jt.value = {
|
|
723
745
|
x: n.left + t.labelX / H.value.width * n.width,
|
|
724
746
|
y: n.top + t.labelY / H.value.height * n.height
|
|
725
747
|
};
|
|
726
748
|
}
|
|
727
|
-
function
|
|
728
|
-
if (!L.value ||
|
|
749
|
+
function nr(e) {
|
|
750
|
+
if (!L.value || $.value || document.activeElement !== L.value || !J.value.length) return;
|
|
729
751
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
730
752
|
if (!t && !n && !r && !i) return;
|
|
731
753
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -736,50 +758,50 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
736
758
|
if (M.value === null) return;
|
|
737
759
|
let e = J.value[M.value];
|
|
738
760
|
if (!e) return;
|
|
739
|
-
|
|
761
|
+
Fn(e, M.value);
|
|
740
762
|
return;
|
|
741
763
|
}
|
|
742
764
|
let a = M.value;
|
|
743
765
|
a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1));
|
|
744
766
|
let o = J.value[a];
|
|
745
|
-
o && (M.value = a,
|
|
767
|
+
o && (M.value = a, tr(a), In(o, a, "keyboard"));
|
|
746
768
|
}
|
|
747
|
-
let
|
|
769
|
+
let rr = u(() => ({
|
|
748
770
|
headers: X.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
749
771
|
rows: X.value?.body ?? []
|
|
750
772
|
}));
|
|
751
773
|
return Se({
|
|
752
|
-
getData:
|
|
753
|
-
getImage:
|
|
754
|
-
generatePdf:
|
|
755
|
-
generateCsv:
|
|
756
|
-
generateImage:
|
|
757
|
-
generateSvg:
|
|
758
|
-
hideSeries:
|
|
759
|
-
showSeries:
|
|
760
|
-
toggleTable:
|
|
761
|
-
toggleTooltip:
|
|
762
|
-
toggleAnnotator:
|
|
763
|
-
toggleFullscreen:
|
|
764
|
-
copyAlt:
|
|
774
|
+
getData: hn,
|
|
775
|
+
getImage: Hn,
|
|
776
|
+
generatePdf: on,
|
|
777
|
+
generateCsv: Ln,
|
|
778
|
+
generateImage: sn,
|
|
779
|
+
generateSvg: Xn,
|
|
780
|
+
hideSeries: yn,
|
|
781
|
+
showSeries: vn,
|
|
782
|
+
toggleTable: zn,
|
|
783
|
+
toggleTooltip: Bn,
|
|
784
|
+
toggleAnnotator: Vn,
|
|
785
|
+
toggleFullscreen: Rn,
|
|
786
|
+
copyAlt: Qn
|
|
765
787
|
}), (e, t) => (b(), p("div", {
|
|
766
788
|
class: _(`vue-data-ui-component vue-ui-radar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
767
789
|
ref_key: "radarChart",
|
|
768
790
|
ref: A,
|
|
769
791
|
id: `vue-ui-radar_${O.value}`,
|
|
770
792
|
style: y(`font-family:${P.value.style.fontFamily};width:100%; ${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
771
|
-
onMouseenter: t[2] ||= () => T(
|
|
772
|
-
onMouseleave: t[3] ||= () => T(
|
|
793
|
+
onMouseenter: t[2] ||= () => T($t)(!0),
|
|
794
|
+
onMouseleave: t[3] ||= () => T($t)(!1)
|
|
773
795
|
}, [
|
|
774
796
|
m("div", {
|
|
775
797
|
id: `chart-instructions-${O.value}`,
|
|
776
798
|
class: "sr-only"
|
|
777
799
|
}, [m("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
778
|
-
|
|
800
|
+
rr.value?.rows?.length ? (b(), d(Ee, {
|
|
779
801
|
key: 0,
|
|
780
802
|
uid: O.value,
|
|
781
|
-
head:
|
|
782
|
-
body:
|
|
803
|
+
head: rr.value.headers,
|
|
804
|
+
body: rr.value.rows,
|
|
783
805
|
notice: P.value.a11y.translations.tableAvailable,
|
|
784
806
|
caption: P.value.a11y.translations.tableCaption
|
|
785
807
|
}, null, 8, [
|
|
@@ -789,14 +811,14 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
789
811
|
"notice",
|
|
790
812
|
"caption"
|
|
791
813
|
])) : f("", !0),
|
|
792
|
-
P.value.userOptions.buttons.annotator ? (b(), d(T(
|
|
814
|
+
P.value.userOptions.buttons.annotator ? (b(), d(T(Dt), {
|
|
793
815
|
key: 1,
|
|
794
816
|
svgRef: T(L),
|
|
795
817
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
796
818
|
color: P.value.style.chart.color,
|
|
797
|
-
active:
|
|
819
|
+
active: $.value,
|
|
798
820
|
isCursorPointer: F.value,
|
|
799
|
-
onClose:
|
|
821
|
+
onClose: Vn
|
|
800
822
|
}, {
|
|
801
823
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
802
824
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
@@ -812,20 +834,20 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
812
834
|
"active",
|
|
813
835
|
"isCursorPointer"
|
|
814
836
|
])) : f("", !0),
|
|
815
|
-
|
|
837
|
+
cn.value ? (b(), p("div", {
|
|
816
838
|
key: 2,
|
|
817
839
|
ref_key: "noTitle",
|
|
818
|
-
ref:
|
|
840
|
+
ref: Bt,
|
|
819
841
|
class: "vue-data-ui-no-title-space",
|
|
820
842
|
style: "height:36px; width: 100%;background:transparent"
|
|
821
843
|
}, null, 512)) : f("", !0),
|
|
822
844
|
P.value.style.chart.title.text ? (b(), p("div", {
|
|
823
845
|
key: 3,
|
|
824
846
|
ref_key: "chartTitle",
|
|
825
|
-
ref:
|
|
847
|
+
ref: Lt,
|
|
826
848
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
827
849
|
}, [(b(), d(xe, {
|
|
828
|
-
key: `title_${
|
|
850
|
+
key: `title_${Vt.value}`,
|
|
829
851
|
config: {
|
|
830
852
|
title: {
|
|
831
853
|
cy: "radar-div-title",
|
|
@@ -838,14 +860,14 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
838
860
|
}
|
|
839
861
|
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
840
862
|
m("div", { id: `legend-top-${O.value}` }, null, 8, qe),
|
|
841
|
-
P.value.userOptions.show &&
|
|
863
|
+
P.value.userOptions.show && Pt.value && (T(en) || T(Qt)) ? (b(), d(T(Ot), {
|
|
842
864
|
ref_key: "userOptionsRef",
|
|
843
|
-
ref:
|
|
844
|
-
key: `user_options_${
|
|
865
|
+
ref: Gt,
|
|
866
|
+
key: `user_options_${It.value}`,
|
|
845
867
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
846
868
|
color: P.value.style.chart.color,
|
|
847
|
-
isImaging: T(
|
|
848
|
-
isPrinting: T(
|
|
869
|
+
isImaging: T(an),
|
|
870
|
+
isPrinting: T(rn),
|
|
849
871
|
uid: O.value,
|
|
850
872
|
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
851
873
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
@@ -861,21 +883,21 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
861
883
|
chartElement: A.value,
|
|
862
884
|
position: P.value.userOptions.position,
|
|
863
885
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
864
|
-
isAnnotation:
|
|
886
|
+
isAnnotation: $.value,
|
|
865
887
|
callbacks: P.value.userOptions.callbacks,
|
|
866
888
|
printScale: P.value.userOptions.print.scale,
|
|
867
889
|
tableDialog: P.value.table.useDialog,
|
|
868
890
|
isCursorPointer: F.value,
|
|
869
|
-
onToggleFullscreen:
|
|
870
|
-
onGeneratePdf: T(
|
|
871
|
-
onGenerateCsv:
|
|
872
|
-
onGenerateImage:
|
|
873
|
-
onGenerateSvg:
|
|
874
|
-
onToggleTable:
|
|
875
|
-
onToggleTooltip:
|
|
876
|
-
onToggleAnnotator:
|
|
877
|
-
onCopyAlt:
|
|
878
|
-
style: y({ visibility: T(
|
|
891
|
+
onToggleFullscreen: Rn,
|
|
892
|
+
onGeneratePdf: T(on),
|
|
893
|
+
onGenerateCsv: Ln,
|
|
894
|
+
onGenerateImage: Zn,
|
|
895
|
+
onGenerateSvg: Xn,
|
|
896
|
+
onToggleTable: zn,
|
|
897
|
+
onToggleTooltip: Bn,
|
|
898
|
+
onToggleAnnotator: Vn,
|
|
899
|
+
onCopyAlt: Qn,
|
|
900
|
+
style: y({ visibility: T(en) ? T(Qt) ? "visible" : "hidden" : "visible" })
|
|
879
901
|
}, Ne({ _: 2 }, [
|
|
880
902
|
e.$slots.menuIcon ? {
|
|
881
903
|
name: "menuIcon",
|
|
@@ -959,11 +981,11 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
959
981
|
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
960
982
|
style: y(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
961
983
|
tabindex: "0",
|
|
962
|
-
onFocus:
|
|
963
|
-
onBlur:
|
|
964
|
-
onKeydown:
|
|
984
|
+
onFocus: $n,
|
|
985
|
+
onBlur: er,
|
|
986
|
+
onKeydown: nr
|
|
965
987
|
}, [
|
|
966
|
-
Fe(T(
|
|
988
|
+
Fe(T(kt)),
|
|
967
989
|
e.$slots["chart-background"] ? (b(), p("foreignObject", {
|
|
968
990
|
key: 0,
|
|
969
991
|
x: 0,
|
|
@@ -993,14 +1015,14 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
993
1015
|
y2: e.y,
|
|
994
1016
|
stroke: P.value.style.chart.layout.grid.stroke,
|
|
995
1017
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
996
|
-
}, null, 8, tt))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", nt, [(b(!0), p(l, null, S(
|
|
1018
|
+
}, null, 8, tt))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", nt, [(b(!0), p(l, null, S(En.value, (e) => (b(), p("path", {
|
|
997
1019
|
d: T(n)({
|
|
998
1020
|
plot: {
|
|
999
1021
|
x: H.value.width / 2,
|
|
1000
1022
|
y: H.value.height / 2
|
|
1001
1023
|
},
|
|
1002
1024
|
radius: e,
|
|
1003
|
-
sides:
|
|
1025
|
+
sides: Cn.value,
|
|
1004
1026
|
rotation: 0
|
|
1005
1027
|
}).path,
|
|
1006
1028
|
fill: "none",
|
|
@@ -1008,7 +1030,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1008
1030
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1009
1031
|
}, null, 8, rt))), 256))])) : f("", !0)])) : f("", !0),
|
|
1010
1032
|
m("path", {
|
|
1011
|
-
d:
|
|
1033
|
+
d: Tn.value.path,
|
|
1012
1034
|
fill: "none",
|
|
1013
1035
|
stroke: P.value.style.chart.layout.outerPolygon.stroke,
|
|
1014
1036
|
"stroke-width": P.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
@@ -1022,9 +1044,9 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1022
1044
|
"text-anchor": e.labelAnchor,
|
|
1023
1045
|
"font-size": P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1024
1046
|
fill: P.value.style.chart.layout.labels.dataLabels.color,
|
|
1025
|
-
onMouseenter: (n) =>
|
|
1026
|
-
onMouseleave: (n) =>
|
|
1027
|
-
onClick: (n) =>
|
|
1047
|
+
onMouseenter: (n) => In(e, t, "pointer"),
|
|
1048
|
+
onMouseleave: (n) => Pn(e, t),
|
|
1049
|
+
onClick: (n) => Fn(e, t)
|
|
1028
1050
|
}, w(e.name), 41, ot))), 256))])) : f("", !0),
|
|
1029
1051
|
(b(!0), p(l, null, S(K.value, (e, t) => (b(), p("g", null, [m("g", null, [P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1030
1052
|
key: 0,
|
|
@@ -1047,7 +1069,18 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1047
1069
|
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1048
1070
|
})
|
|
1049
1071
|
}, null, 10, ct)) : f("", !0)])]))), 256)),
|
|
1050
|
-
P.value.style.chart.layout.
|
|
1072
|
+
P.value.style.chart.layout.targetReference.show ? (b(), p("path", {
|
|
1073
|
+
key: 3,
|
|
1074
|
+
class: "vue-ui-radar-target-polygon",
|
|
1075
|
+
d: `M${T(ue)(Sn.value, !1, !0)}Z`,
|
|
1076
|
+
fill: "none",
|
|
1077
|
+
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1078
|
+
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth,
|
|
1079
|
+
"stroke-linejoin": "round",
|
|
1080
|
+
"stroke-linecap": "round",
|
|
1081
|
+
"stroke-dasharray": P.value.style.chart.layout.targetReference.strokeDasharray
|
|
1082
|
+
}, null, 8, lt)) : f("", !0),
|
|
1083
|
+
P.value.style.chart.layout.plots.show ? (b(), p("g", ut, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("g", null, [(b(!0), p(l, null, S(e.plots, (e, n) => (b(), p("circle", {
|
|
1051
1084
|
cx: e.x,
|
|
1052
1085
|
cy: e.y,
|
|
1053
1086
|
fill: U.value.includes(n) ? "transparent" : K.value[n] ? K.value[n].color : "transparent",
|
|
@@ -1058,45 +1091,45 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1058
1091
|
"animated-out": U.value.includes(n) && P.value.useCssAnimation,
|
|
1059
1092
|
"animated-in": G.value && W.value === n && P.value.useCssAnimation
|
|
1060
1093
|
})
|
|
1061
|
-
}, null, 10,
|
|
1094
|
+
}, null, 10, dt))), 256))]))), 256))])) : f("", !0),
|
|
1062
1095
|
C(e.$slots, "svg", { svg: {
|
|
1063
1096
|
...H.value,
|
|
1064
|
-
outerPolygon:
|
|
1065
|
-
isPrintingImg: T(
|
|
1066
|
-
isPrintingSvg:
|
|
1097
|
+
outerPolygon: Tn.value,
|
|
1098
|
+
isPrintingImg: T(rn) || T(an) || Kt.value,
|
|
1099
|
+
isPrintingSvg: qt.value
|
|
1067
1100
|
} }, void 0, !0)
|
|
1068
|
-
], 46, Ye)), e.$slots.hint ? (b(), p("div",
|
|
1101
|
+
], 46, Ye)), e.$slots.hint ? (b(), p("div", ft, [C(e.$slots, "hint", v(g({
|
|
1069
1102
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1070
|
-
isVisible:
|
|
1103
|
+
isVisible: Yt.value
|
|
1071
1104
|
})), void 0, !0)])) : f("", !0)]),
|
|
1072
|
-
e.$slots.watermark ? (b(), p("div",
|
|
1073
|
-
m("div", { id: `legend-bottom-${O.value}` }, null, 8,
|
|
1074
|
-
|
|
1105
|
+
e.$slots.watermark ? (b(), p("div", pt, [C(e.$slots, "watermark", v(g({ isPrinting: T(rn) || T(an) || Kt.value || qt.value })), void 0, !0)])) : f("", !0),
|
|
1106
|
+
m("div", { id: `legend-bottom-${O.value}` }, null, 8, mt),
|
|
1107
|
+
Wt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Me, {
|
|
1075
1108
|
key: 6,
|
|
1076
1109
|
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1077
1110
|
}, [m("div", {
|
|
1078
1111
|
ref_key: "chartLegend",
|
|
1079
|
-
ref:
|
|
1112
|
+
ref: Rt
|
|
1080
1113
|
}, [C(e.$slots, "legend", { legend: Y.value }, () => [P.value.style.chart.legend.show ? (b(), d(ke, {
|
|
1081
|
-
key: `legend_${
|
|
1114
|
+
key: `legend_${Ut.value}`,
|
|
1082
1115
|
legendSet: Y.value,
|
|
1083
|
-
config:
|
|
1116
|
+
config: jn.value,
|
|
1084
1117
|
isCursorPointer: F.value,
|
|
1085
|
-
onClickMarker: t[0] ||= ({ i: e }) =>
|
|
1086
|
-
}, {
|
|
1087
|
-
item: E(({ legend: e, index: t }) => [T(
|
|
1118
|
+
onClickMarker: t[0] ||= ({ i: e }) => mn(e)
|
|
1119
|
+
}, Ne({
|
|
1120
|
+
item: E(({ legend: e, index: t }) => [T(Zt) ? f("", !0) : (b(), p("div", {
|
|
1088
1121
|
key: 0,
|
|
1089
1122
|
onClick: (t) => e.segregate(),
|
|
1090
1123
|
style: y(`opacity:${U.value.includes(t) ? .5 : 1}`)
|
|
1091
|
-
}, w(e.display), 13,
|
|
1092
|
-
legendToggle: E(() => [Y.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(
|
|
1124
|
+
}, w(e.display), 13, ht))]),
|
|
1125
|
+
legendToggle: E(() => [Y.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(Zt) ? (b(), d(Te, {
|
|
1093
1126
|
key: 0,
|
|
1094
1127
|
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1095
1128
|
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1096
1129
|
fontSize: P.value.style.chart.legend.fontSize,
|
|
1097
1130
|
checked: U.value.length > 0,
|
|
1098
1131
|
isCursorPointer: F.value,
|
|
1099
|
-
onToggle:
|
|
1132
|
+
onToggle: fn
|
|
1100
1133
|
}, null, 8, [
|
|
1101
1134
|
"backgroundColor",
|
|
1102
1135
|
"color",
|
|
@@ -1104,8 +1137,27 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1104
1137
|
"checked",
|
|
1105
1138
|
"isCursorPointer"
|
|
1106
1139
|
])) : f("", !0)]),
|
|
1107
|
-
_:
|
|
1108
|
-
},
|
|
1140
|
+
_: 2
|
|
1141
|
+
}, [P.value.style.chart.layout.targetReference.show && P.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1142
|
+
name: "after",
|
|
1143
|
+
fn: E(() => [m("div", gt, [m("div", { style: y({
|
|
1144
|
+
display: "flex",
|
|
1145
|
+
height: P.value.style.chart.legend.fontSize
|
|
1146
|
+
}) }, [(b(), p("svg", {
|
|
1147
|
+
style: y({ width: P.value.style.chart.legend.fontSize * 2 }),
|
|
1148
|
+
viewBox: "0 0 16 8"
|
|
1149
|
+
}, [m("line", {
|
|
1150
|
+
x1: "0",
|
|
1151
|
+
x2: "16",
|
|
1152
|
+
y1: "4",
|
|
1153
|
+
y2: "4",
|
|
1154
|
+
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1155
|
+
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1156
|
+
"stroke-dasharray": P.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1157
|
+
"stroke-linecap": "round"
|
|
1158
|
+
}, null, 8, _t)], 4))], 4), m("span", null, w(P.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1159
|
+
key: "0"
|
|
1160
|
+
} : void 0]), 1032, [
|
|
1109
1161
|
"legendSet",
|
|
1110
1162
|
"config",
|
|
1111
1163
|
"isCursorPointer"
|
|
@@ -1113,10 +1165,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1113
1165
|
e.$slots.source ? (b(), p("div", {
|
|
1114
1166
|
key: 7,
|
|
1115
1167
|
ref_key: "source",
|
|
1116
|
-
ref:
|
|
1168
|
+
ref: zt,
|
|
1117
1169
|
dir: "auto"
|
|
1118
1170
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1119
|
-
Fe(T(
|
|
1171
|
+
Fe(T(St), {
|
|
1120
1172
|
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1121
1173
|
show: V.value.showTooltip && k.value,
|
|
1122
1174
|
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1130,7 +1182,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1130
1182
|
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1131
1183
|
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1132
1184
|
parent: A.value,
|
|
1133
|
-
content:
|
|
1185
|
+
content: Ft.value,
|
|
1134
1186
|
isFullscreen: Q.value,
|
|
1135
1187
|
isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
|
|
1136
1188
|
smooth: P.value.style.chart.tooltip.smooth,
|
|
@@ -1138,18 +1190,18 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1138
1190
|
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1139
1191
|
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1140
1192
|
isA11yMode: N.value === "keyboard",
|
|
1141
|
-
a11yPosition:
|
|
1193
|
+
a11yPosition: Jt.value
|
|
1142
1194
|
}, {
|
|
1143
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...
|
|
1144
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...
|
|
1145
|
-
"tooltip-after": E(() => [!["function"].includes(typeof P.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (b(), p("div",
|
|
1146
|
-
dataset:
|
|
1147
|
-
config:
|
|
1195
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...Nn.value })), void 0, !0)]),
|
|
1196
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...Nn.value })), void 0, !0)]),
|
|
1197
|
+
"tooltip-after": E(() => [!["function"].includes(typeof P.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (b(), p("div", vt, [Fe(T(wt), {
|
|
1198
|
+
dataset: Mn.value,
|
|
1199
|
+
config: un.value,
|
|
1148
1200
|
backgroundOpacity: 0
|
|
1149
1201
|
}, {
|
|
1150
|
-
"data-label": E(({ bar: e }) => [m("div",
|
|
1202
|
+
"data-label": E(({ bar: e }) => [m("div", yt, [m("span", bt, w(e.name + (P.value.style.chart.tooltip.showValue || P.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), P.value.style.chart.tooltip.showValue || P.value.style.chart.tooltip.showPercentage ? (b(), p("span", xt, w(e.suffix), 1)) : f("", !0)])]),
|
|
1151
1203
|
_: 1
|
|
1152
|
-
}, 8, ["dataset", "config"])])) : f("", !0), C(e.$slots, "tooltip-after", v(g({ ...
|
|
1204
|
+
}, 8, ["dataset", "config"])])) : f("", !0), C(e.$slots, "tooltip-after", v(g({ ...Nn.value })), void 0, !0)]),
|
|
1153
1205
|
_: 3
|
|
1154
1206
|
}, 8, [
|
|
1155
1207
|
"teleportTo",
|
|
@@ -1175,21 +1227,21 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1175
1227
|
"isA11yMode",
|
|
1176
1228
|
"a11yPosition"
|
|
1177
1229
|
]),
|
|
1178
|
-
|
|
1230
|
+
Pt.value && P.value.userOptions.buttons.table ? (b(), d(Be(Un.value.component), Ie({ key: 8 }, Un.value.props, {
|
|
1179
1231
|
ref_key: "tableUnit",
|
|
1180
1232
|
ref: j,
|
|
1181
|
-
onClose:
|
|
1233
|
+
onClose: Wn
|
|
1182
1234
|
}), Ne({
|
|
1183
|
-
content: E(() => [(b(), d(T(
|
|
1184
|
-
key: `table_${
|
|
1235
|
+
content: E(() => [(b(), d(T(Et), {
|
|
1236
|
+
key: `table_${Ht.value}`,
|
|
1185
1237
|
colNames: X.value.colNames,
|
|
1186
1238
|
head: X.value.head,
|
|
1187
1239
|
body: X.value.body,
|
|
1188
1240
|
config: X.value.config,
|
|
1189
|
-
title: P.value.table.useDialog ? "" :
|
|
1241
|
+
title: P.value.table.useDialog ? "" : Un.value.title,
|
|
1190
1242
|
withCloseButton: !P.value.table.useDialog,
|
|
1191
1243
|
isCursorPointer: F.value,
|
|
1192
|
-
onClose:
|
|
1244
|
+
onClose: Wn
|
|
1193
1245
|
}, {
|
|
1194
1246
|
th: E(({ th: e }) => [Pe(w(e.name), 1)]),
|
|
1195
1247
|
td: E(({ td: e }) => [Pe(w(e), 1)]),
|
|
@@ -1206,24 +1258,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1206
1258
|
_: 2
|
|
1207
1259
|
}, [P.value.table.useDialog ? {
|
|
1208
1260
|
name: "title",
|
|
1209
|
-
fn: E(() => [Pe(w(
|
|
1261
|
+
fn: E(() => [Pe(w(Un.value.title), 1)]),
|
|
1210
1262
|
key: "0"
|
|
1211
1263
|
} : void 0, P.value.table.useDialog ? {
|
|
1212
1264
|
name: "actions",
|
|
1213
1265
|
fn: E(() => [m("button", {
|
|
1214
1266
|
tabindex: "0",
|
|
1215
1267
|
class: "vue-ui-user-options-button",
|
|
1216
|
-
onClick: t[1] ||= (e) =>
|
|
1268
|
+
onClick: t[1] ||= (e) => Ln(P.value.userOptions.callbacks.csv),
|
|
1217
1269
|
style: y({ cursor: F.value ? "pointer" : "default" })
|
|
1218
|
-
}, [Fe(T(
|
|
1270
|
+
}, [Fe(T(Ct), {
|
|
1219
1271
|
name: "fileCsv",
|
|
1220
|
-
stroke:
|
|
1272
|
+
stroke: Un.value.props.color
|
|
1221
1273
|
}, null, 8, ["stroke"])], 4)]),
|
|
1222
1274
|
key: "1"
|
|
1223
1275
|
} : void 0]), 1040)) : f("", !0),
|
|
1224
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1276
|
+
C(e.$slots, "skeleton", {}, () => [T(Zt) ? (b(), d(ge, { key: 0 })) : f("", !0)], !0)
|
|
1225
1277
|
], 46, Ge));
|
|
1226
1278
|
}
|
|
1227
|
-
}, [["__scopeId", "data-v-
|
|
1279
|
+
}, [["__scopeId", "data-v-be7bab86"]]);
|
|
1228
1280
|
//#endregion
|
|
1229
|
-
export { We as n,
|
|
1281
|
+
export { We as n, St as t };
|