vue-data-ui 2.17.0 → 2.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineAsyncComponent as he, ref as z, computed as U, watch as Ve, shallowRef as ft, onMounted as Tt, onBeforeUnmount as Pt, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as fe, createBlock as Fe, createCommentVNode as g, createVNode as ge, unref as f, createSlots as Rt, withCtx as G, renderSlot as M, normalizeProps as ie, guardReactiveProps as ue, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
|
|
2
|
-
import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as He, m as qt, D as mt, X as Ht, j as Wt, k as We, n as Le, i as X, f as D, I as jt, V as pt, v as Z, x as Ne, y as je } from "./index-
|
|
2
|
+
import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as He, m as qt, D as mt, X as Ht, j as Wt, k as We, n as Le, i as X, f as D, I as jt, V as pt, v as Z, x as Ne, y as je } from "./index-JzUbx__y.js";
|
|
3
3
|
import { t as Gt, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as yt } from "./useNestedProp-
|
|
5
|
-
import { u as Zt } from "./usePrinter-
|
|
4
|
+
import { u as yt } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as Zt } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import { S as Jt } from "./Slicer-
|
|
7
|
+
import { S as Jt } from "./Slicer-Dju6LE-h.js";
|
|
8
8
|
import { u as Qt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
|
-
import Kt from "./img-
|
|
9
|
+
import Kt from "./img-D0DpKcFX.js";
|
|
10
10
|
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const A = {
|
|
12
12
|
LINE: "LINE",
|
|
@@ -153,7 +153,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
153
153
|
},
|
|
154
154
|
emits: ["selectDatapoint", "selectLegend"],
|
|
155
155
|
setup(c, { expose: C, emit: y }) {
|
|
156
|
-
const T = he(() => import("./BaseIcon-
|
|
156
|
+
const T = he(() => import("./BaseIcon-C2f-EcZc.js")), H = he(() => import("./PackageVersion-CIX1W_aa.js")), me = he(() => import("./PenAndPaper-CqJ4wudB.js")), pe = he(() => import("./vue-ui-skeleton-B4KQLEQy.js")), ye = he(() => import("./Tooltip-BTnTpPdO.js")), $e = he(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_quick_chart: F } = Mt(), B = c, J = z(null), Ge = z(null), Xe = z(null), Ze = z(null), Q = z(Ft()), te = z(!1), xe = z(null), ae = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
|
|
157
157
|
get: () => at(),
|
|
158
158
|
set: (o) => o
|
|
159
159
|
}), { svgRef: Ke } = Yt({ config: { text: e.value.title } }), wt = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
|
|
@@ -197,7 +197,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
197
197
|
});
|
|
198
198
|
}, { immediate: !0 });
|
|
199
199
|
const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } = Zt({
|
|
200
|
-
elementId: `${L.value}_${
|
|
200
|
+
elementId: `${L.value}_${Q.value}`,
|
|
201
201
|
fileName: e.value.title || L.value,
|
|
202
202
|
options: e.value.userOptionsPrint
|
|
203
203
|
}), _t = U(() => e.value.showUserOptions && !e.value.title), b = z({
|
|
@@ -205,7 +205,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
205
205
|
height: e.value.height
|
|
206
206
|
}), Se = z({
|
|
207
207
|
showTooltip: e.value.showTooltip
|
|
208
|
-
}),
|
|
208
|
+
}), K = ft(null), se = ft(null);
|
|
209
209
|
Tt(() => {
|
|
210
210
|
nt();
|
|
211
211
|
});
|
|
@@ -213,7 +213,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
213
213
|
if (e.value.responsive) {
|
|
214
214
|
const o = Gt(() => {
|
|
215
215
|
const { width: s, height: t } = Xt({
|
|
216
|
-
chart:
|
|
216
|
+
chart: J.value,
|
|
217
217
|
title: e.value.title ? Ge.value : null,
|
|
218
218
|
legend: e.value.showLegend ? Xe.value : null,
|
|
219
219
|
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ze.value : null,
|
|
@@ -224,12 +224,12 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
224
224
|
b.value.width = s, b.value.height = t;
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
|
-
|
|
227
|
+
K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect()), K.value = new ResizeObserver(o), se.value = J.value.parentNode, K.value.observe(se.value);
|
|
228
228
|
}
|
|
229
229
|
dt();
|
|
230
230
|
}
|
|
231
231
|
Pt(() => {
|
|
232
|
-
|
|
232
|
+
K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect());
|
|
233
233
|
});
|
|
234
234
|
const Lt = U(() => {
|
|
235
235
|
switch (L.value) {
|
|
@@ -247,7 +247,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
247
247
|
return [...o].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
248
248
|
}
|
|
249
249
|
function we(o) {
|
|
250
|
-
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${
|
|
250
|
+
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${Q.value})` : "";
|
|
251
251
|
}
|
|
252
252
|
function ut(o, s) {
|
|
253
253
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
@@ -511,7 +511,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
511
511
|
});
|
|
512
512
|
else {
|
|
513
513
|
let k = "";
|
|
514
|
-
|
|
514
|
+
ee.value[i[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[i[0].absoluteIndex].text}</div>`), i.forEach((E, N) => {
|
|
515
515
|
k += `
|
|
516
516
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
517
517
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
|
|
@@ -637,7 +637,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
637
637
|
});
|
|
638
638
|
else {
|
|
639
639
|
let E = "";
|
|
640
|
-
|
|
640
|
+
ee.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[S[0].absoluteIndex].text}</div>`), S.forEach((N, Ae) => {
|
|
641
641
|
E += `
|
|
642
642
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
643
643
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${N.color}"/></svg>
|
|
@@ -674,7 +674,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
674
674
|
useTooltip: oe,
|
|
675
675
|
killTooltip: n
|
|
676
676
|
};
|
|
677
|
-
}),
|
|
677
|
+
}), ee = U(() => Qt({
|
|
678
678
|
values: e.value.xyPeriods,
|
|
679
679
|
maxDatapoints: p.value.maxSeriesLength,
|
|
680
680
|
formatter: e.value.datetimeFormatter,
|
|
@@ -692,9 +692,16 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
692
692
|
Re.value = !Re.value;
|
|
693
693
|
}
|
|
694
694
|
async function Ot({ scale: o = 2 } = {}) {
|
|
695
|
-
if (!
|
|
696
|
-
const {
|
|
697
|
-
return {
|
|
695
|
+
if (!J.value) return;
|
|
696
|
+
const { width: s, height: t } = J.value.getBoundingClientRect(), u = s / t, { imageUri: r, base64: h } = await Kt({ domElement: J.value, base64: !0, img: !0, scale: o });
|
|
697
|
+
return {
|
|
698
|
+
imageUri: r,
|
|
699
|
+
base64: h,
|
|
700
|
+
title: e.value.title,
|
|
701
|
+
width: s,
|
|
702
|
+
height: t,
|
|
703
|
+
aspectRatio: u
|
|
704
|
+
};
|
|
698
705
|
}
|
|
699
706
|
return C({
|
|
700
707
|
getImage: Ot,
|
|
@@ -705,9 +712,9 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
705
712
|
toggleFullscreen: ct
|
|
706
713
|
}), (o, s) => At.value ? (a(), l("div", {
|
|
707
714
|
key: 0,
|
|
708
|
-
id: `${L.value}_${
|
|
715
|
+
id: `${L.value}_${Q.value}`,
|
|
709
716
|
ref_key: "quickChart",
|
|
710
|
-
ref:
|
|
717
|
+
ref: J,
|
|
711
718
|
class: fe({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
712
719
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
713
720
|
onMouseenter: s[5] || (s[5] = () => tt(!0)),
|
|
@@ -735,7 +742,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
735
742
|
color: e.value.color,
|
|
736
743
|
isPrinting: f(Ee),
|
|
737
744
|
isImaging: f(Oe),
|
|
738
|
-
uid:
|
|
745
|
+
uid: Q.value,
|
|
739
746
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
740
747
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
741
748
|
hasImg: e.value.userOptionsButtons.img,
|
|
@@ -744,7 +751,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
744
751
|
isTooltip: Se.value.showTooltip,
|
|
745
752
|
isFullscreen: Pe.value,
|
|
746
753
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
747
|
-
chartElement:
|
|
754
|
+
chartElement: J.value,
|
|
748
755
|
position: e.value.userOptionsPosition,
|
|
749
756
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
750
757
|
isAnnotation: Re.value,
|
|
@@ -856,7 +863,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
856
863
|
], 8, da)) : g("", !0),
|
|
857
864
|
_("defs", null, [
|
|
858
865
|
_("filter", {
|
|
859
|
-
id: `blur_${
|
|
866
|
+
id: `blur_${Q.value}`,
|
|
860
867
|
x: "-50%",
|
|
861
868
|
y: "-50%",
|
|
862
869
|
width: "200%",
|
|
@@ -865,7 +872,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
865
872
|
_("feGaussianBlur", {
|
|
866
873
|
in: "SourceGraphic",
|
|
867
874
|
stdDeviation: 2,
|
|
868
|
-
id: `blur_std_${
|
|
875
|
+
id: `blur_std_${Q.value}`
|
|
869
876
|
}, null, 8, ha),
|
|
870
877
|
s[7] || (s[7] = _("feColorMatrix", {
|
|
871
878
|
type: "saturate",
|
|
@@ -873,7 +880,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
873
880
|
}, null, -1))
|
|
874
881
|
], 8, ca),
|
|
875
882
|
_("filter", {
|
|
876
|
-
id: `shadow_${
|
|
883
|
+
id: `shadow_${Q.value}`,
|
|
877
884
|
"color-interpolation-filters": "sRGB"
|
|
878
885
|
}, [
|
|
879
886
|
_("feDropShadow", {
|
|
@@ -905,7 +912,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
905
912
|
cy: I.value.cy,
|
|
906
913
|
r: I.value.radius,
|
|
907
914
|
fill: e.value.backgroundColor,
|
|
908
|
-
filter: e.value.donutUseShadow ? `url(#shadow_${
|
|
915
|
+
filter: e.value.donutUseShadow ? `url(#shadow_${Q.value})` : ""
|
|
909
916
|
}, null, 8, ya),
|
|
910
917
|
_("g", xa, [
|
|
911
918
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
@@ -1064,7 +1071,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1064
1071
|
], 64))), 256))
|
|
1065
1072
|
])) : g("", !0),
|
|
1066
1073
|
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Na, [
|
|
1067
|
-
(a(!0), l(m, null, $(
|
|
1074
|
+
(a(!0), l(m, null, $(ee.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
|
|
1068
1075
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
|
|
1069
1076
|
key: 0,
|
|
1070
1077
|
x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
@@ -1279,7 +1286,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1279
1286
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1280
1287
|
"stroke-linecap": "round"
|
|
1281
1288
|
}, null, 8, vl))), 256)),
|
|
1282
|
-
(a(!0), l(m, null, $(
|
|
1289
|
+
(a(!0), l(m, null, $(ee.value.map((t) => t.text), (t, u) => (a(), l("text", {
|
|
1283
1290
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1284
1291
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1285
1292
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
@@ -1426,8 +1433,8 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1426
1433
|
borderColor: e.value.backgroundColor,
|
|
1427
1434
|
fontSize: e.value.zoomFontSize,
|
|
1428
1435
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1429
|
-
labelLeft: e.value.xyPeriods[x.value.start] ?
|
|
1430
|
-
labelRight: e.value.xyPeriods[x.value.end - 1] ?
|
|
1436
|
+
labelLeft: e.value.xyPeriods[x.value.start] ? ee.value[0].text : "",
|
|
1437
|
+
labelRight: e.value.xyPeriods[x.value.end - 1] ? ee.value.at(-1).text : "",
|
|
1431
1438
|
textColor: e.value.color,
|
|
1432
1439
|
inputColor: e.value.zoomColor,
|
|
1433
1440
|
selectColor: e.value.zoomHighlightColor,
|
|
@@ -1578,7 +1585,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1578
1585
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1579
1586
|
position: e.value.tooltipPosition,
|
|
1580
1587
|
offsetY: e.value.tooltipOffsetY,
|
|
1581
|
-
parent:
|
|
1588
|
+
parent: J.value,
|
|
1582
1589
|
content: ae.value,
|
|
1583
1590
|
isFullscreen: Pe.value,
|
|
1584
1591
|
isCustom: f(Ne)(e.value.tooltipCustomFormat)
|
|
@@ -1599,7 +1606,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1599
1606
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1600
1607
|
]));
|
|
1601
1608
|
}
|
|
1602
|
-
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-
|
|
1609
|
+
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-38c96f9a"]]);
|
|
1603
1610
|
export {
|
|
1604
1611
|
Wl as default
|
|
1605
1612
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as vt, c as pt, t as ht, p as S, a as gt, o as ft, e as V, b as yt, g as Ie, d as Re, R as Le, v as mt, i as ze, f as G, X as bt, s as le, w as kt, S as Me, q as Ct, r as wt, x as $t, y as _t } from "./index-
|
|
1
|
+
import { defineAsyncComponent as _, computed as p, ref as c, watch as nt, shallowRef as Se, onMounted as ut, onBeforeUnmount as it, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as q, normalizeClass as B, createBlock as x, createCommentVNode as d, createElementVNode as O, createVNode as oe, createSlots as ct, withCtx as f, renderSlot as g, normalizeProps as z, guardReactiveProps as M, Fragment as A, renderList as F, toDisplayString as D, createTextVNode as Ne, nextTick as dt } from "vue";
|
|
2
|
+
import { u as vt, c as pt, t as ht, p as S, a as gt, o as ft, e as V, b as yt, g as Ie, d as Re, R as Le, v as mt, i as ze, f as G, X as bt, s as le, w as kt, S as Me, q as Ct, r as wt, x as $t, y as _t } from "./index-JzUbx__y.js";
|
|
3
3
|
import { t as Tt, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ve } from "./useNestedProp-
|
|
5
|
-
import { u as xt } from "./usePrinter-
|
|
4
|
+
import { u as Ve } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as At } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ft from "./Legend-
|
|
9
|
-
import St from "./Title-
|
|
10
|
-
import Nt from "./img-
|
|
8
|
+
import Ft from "./Legend-1R-B-7st.js";
|
|
9
|
+
import St from "./Title-BQb7X_OR.js";
|
|
10
|
+
import Nt from "./img-D0DpKcFX.js";
|
|
11
11
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["id"], Vt = ["stop-color"], Ut = ["stop-color"], Et = { key: 1 }, Bt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 0 }, Gt = ["d", "stroke", "stroke-width"], Wt = ["d", "stroke", "stroke-width"], Xt = { key: 2 }, jt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], qt = ["points", "stroke", "stroke-width"], Ht = ["points", "stroke", "stroke-width", "fill"], Yt = { key: 3 }, Jt = ["cx", "cy", "fill", "r", "stroke"], Kt = {
|
|
13
13
|
key: 5,
|
|
@@ -33,7 +33,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
35
|
setup(Ue, { expose: Ee, emit: Be }) {
|
|
36
|
-
const De =
|
|
36
|
+
const De = _(() => import("./DataTable-6BxhjBzt.js")), Ge = _(() => import("./PenAndPaper-CqJ4wudB.js")), We = _(() => import("./vue-ui-accordion-CcTUbiHq.js")), Xe = _(() => import("./vue-ui-skeleton-B4KQLEQy.js")), je = _(() => import("./Tooltip-BTnTpPdO.js")), qe = _(() => import("./UserOptions-lneAyZKu.js")), He = _(() => import("./PackageVersion-CIX1W_aa.js")), Ye = _(() => import("./vue-ui-sparkbar-DuZulYgD.js")), { vue_ui_radar: Je } = vt(), h = Ue, U = p(() => !!h.dataset && Object.keys(h.dataset).length), T = c(pt()), Ke = c(null), H = c(!1), Y = c(""), re = c(0), C = c(null), se = c(null), ne = c(null), ue = c(null), ie = c(null), ce = c(0), de = c(0), ve = c(0), e = p({
|
|
37
37
|
get: () => fe(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
}), { userOptionsVisible: J, setUserOptionsVisibility: pe, keepUserOptionState: he } = Ot({ config: e.value }), { svgRef: ge } = At({ config: e.value.style.chart.title });
|
|
@@ -51,9 +51,9 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
51
51
|
} : t;
|
|
52
52
|
}
|
|
53
53
|
nt(() => h.config, (t) => {
|
|
54
|
-
e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.value += 1,
|
|
54
|
+
e.value = fe(), J.value = !e.value.userOptions.showOnChartHover, ye(), ce.value += 1, de.value += 1, ve.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tootlip ? e.value.style.chart.tootlip.show : !1;
|
|
55
55
|
}, { deep: !0 });
|
|
56
|
-
const
|
|
56
|
+
const w = Se(null), N = Se(null);
|
|
57
57
|
function ye() {
|
|
58
58
|
if (ft(h.dataset) && V({
|
|
59
59
|
componentName: "VueUiRadar",
|
|
@@ -61,7 +61,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
61
61
|
}), e.value.responsive) {
|
|
62
62
|
const t = Tt(() => {
|
|
63
63
|
const { width: a, height: o } = Pt({
|
|
64
|
-
chart:
|
|
64
|
+
chart: C.value,
|
|
65
65
|
title: e.value.style.chart.title.text ? se.value : null,
|
|
66
66
|
legend: e.value.style.chart.legend.show ? ne.value : null,
|
|
67
67
|
source: ue.value,
|
|
@@ -71,19 +71,19 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
71
71
|
i.value.width = a, i.value.height = o;
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
|
-
|
|
74
|
+
w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect()), w.value = new ResizeObserver(t), N.value = C.value.parentNode, w.value.observe(N.value);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
ut(() => {
|
|
78
78
|
ye();
|
|
79
79
|
}), it(() => {
|
|
80
|
-
|
|
80
|
+
w.value && (N.value && w.value.unobserve(N.value), w.value.disconnect());
|
|
81
81
|
});
|
|
82
82
|
const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = xt({
|
|
83
|
-
elementId: `vue-ui-radar_${
|
|
83
|
+
elementId: `vue-ui-radar_${T.value}`,
|
|
84
84
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
85
85
|
options: e.value.userOptions.print
|
|
86
|
-
}), Qe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => yt(e.value.customPalette)),
|
|
86
|
+
}), Qe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), we = p(() => yt(e.value.customPalette)), b = c({
|
|
87
87
|
dataLabels: {
|
|
88
88
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
89
89
|
},
|
|
@@ -168,14 +168,14 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
168
168
|
});
|
|
169
169
|
}), h.dataset.categories.map((t, a) => ({
|
|
170
170
|
name: t.name,
|
|
171
|
-
categoryId: `radar_category_${
|
|
171
|
+
categoryId: `radar_category_${T.value}_${a}`,
|
|
172
172
|
color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
|
|
173
173
|
prefix: t.prefix ?? "",
|
|
174
174
|
suffix: t.suffix ?? ""
|
|
175
175
|
})))), k = p(() => U.value ? h.dataset.series.map((t, a) => ({
|
|
176
176
|
...t,
|
|
177
177
|
color: Re(t.color) || we.value[a] || S[a] || S[a % S.length],
|
|
178
|
-
serieId: `radar_serie_${
|
|
178
|
+
serieId: `radar_serie_${T.value}_${a}`,
|
|
179
179
|
formatter: t.formatter || null
|
|
180
180
|
})) : []), _e = p(() => Math.max(...k.value.flatMap((t) => t.values))), Te = p(() => k.value.length), K = p(() => Math.min(i.value.width, i.value.height) / 3), Pe = p(() => Le({
|
|
181
181
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
@@ -187,7 +187,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
187
187
|
for (let a = 0; a < K.value; a += K.value / e.value.style.chart.layout.grid.graduations)
|
|
188
188
|
t.push(a);
|
|
189
189
|
return t;
|
|
190
|
-
}),
|
|
190
|
+
}), $ = p(() => Pe.value.coordinates.map((t, a) => {
|
|
191
191
|
const o = k.value[a].values.map((l) => ot({
|
|
192
192
|
centerX: i.value.width / 2,
|
|
193
193
|
centerY: i.value.height / 2,
|
|
@@ -245,10 +245,10 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
245
245
|
r: e.value.table.td.roundingValue
|
|
246
246
|
})
|
|
247
247
|
),
|
|
248
|
-
...l.values.map((s,
|
|
248
|
+
...l.values.map((s, m) => `${ze(
|
|
249
249
|
l.formatter,
|
|
250
250
|
s,
|
|
251
|
-
G({ p: y.value[
|
|
251
|
+
G({ p: y.value[m].prefix, v: s, s: y.value[m].suffix, r: e.value.table.td.roundingValue })
|
|
252
252
|
)} (${isNaN(s / l.target) ? "" : G({
|
|
253
253
|
v: s / l.target * 100,
|
|
254
254
|
s: "%",
|
|
@@ -278,7 +278,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
278
278
|
series: {
|
|
279
279
|
categories: y.value,
|
|
280
280
|
datapoints: k.value,
|
|
281
|
-
radar:
|
|
281
|
+
radar: $.value
|
|
282
282
|
},
|
|
283
283
|
config: e.value
|
|
284
284
|
};
|
|
@@ -286,13 +286,13 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
286
286
|
if ($t(l) && _t(() => l({
|
|
287
287
|
seriesIndex: a,
|
|
288
288
|
datapoint: t,
|
|
289
|
-
series: { categories: y.value, datapoints: k.value, radar:
|
|
289
|
+
series: { categories: y.value, datapoints: k.value, radar: $.value },
|
|
290
290
|
config: e.value
|
|
291
291
|
})))
|
|
292
292
|
Y.value = l({
|
|
293
293
|
seriesIndex: a,
|
|
294
294
|
datapoint: t,
|
|
295
|
-
series: { categories: y.value, datapoints: k.value, radar:
|
|
295
|
+
series: { categories: y.value, datapoints: k.value, radar: $.value },
|
|
296
296
|
config: e.value
|
|
297
297
|
});
|
|
298
298
|
else {
|
|
@@ -315,8 +315,8 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
315
315
|
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...R.value.flatMap((P) => [[P.name], ["%"]])], l = h.dataset.series.map((P, ta) => [P.name, P.target, ...P.values.flatMap((ae) => [
|
|
316
316
|
ae,
|
|
317
317
|
isNaN(ae / P.target) ? "" : ae / P.target * 100
|
|
318
|
-
])]), s = a.concat([o]).concat(l),
|
|
319
|
-
t ? t(
|
|
318
|
+
])]), s = a.concat([o]).concat(l), m = Ct(s);
|
|
319
|
+
t ? t(m) : wt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
const L = c(!1);
|
|
@@ -324,19 +324,26 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
324
324
|
L.value = t, re.value += 1;
|
|
325
325
|
}
|
|
326
326
|
function Ae() {
|
|
327
|
-
|
|
327
|
+
b.value.showTable = !b.value.showTable;
|
|
328
328
|
}
|
|
329
329
|
function Fe() {
|
|
330
|
-
|
|
330
|
+
b.value.showTooltip = !b.value.showTooltip;
|
|
331
331
|
}
|
|
332
332
|
const j = c(!1);
|
|
333
333
|
function te() {
|
|
334
334
|
j.value = !j.value;
|
|
335
335
|
}
|
|
336
336
|
async function st({ scale: t = 2 } = {}) {
|
|
337
|
-
if (!
|
|
338
|
-
const {
|
|
339
|
-
return {
|
|
337
|
+
if (!C.value) return;
|
|
338
|
+
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: m } = await Nt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
339
|
+
return {
|
|
340
|
+
imageUri: s,
|
|
341
|
+
base64: m,
|
|
342
|
+
title: e.value.style.chart.title.text,
|
|
343
|
+
width: a,
|
|
344
|
+
height: o,
|
|
345
|
+
aspectRatio: l
|
|
346
|
+
};
|
|
340
347
|
}
|
|
341
348
|
return Ee({
|
|
342
349
|
getData: tt,
|
|
@@ -351,8 +358,8 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
351
358
|
}), (t, a) => (r(), u("div", {
|
|
352
359
|
class: B(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
353
360
|
ref_key: "radarChart",
|
|
354
|
-
ref:
|
|
355
|
-
id: `vue-ui-radar_${
|
|
361
|
+
ref: C,
|
|
362
|
+
id: `vue-ui-radar_${T.value}`,
|
|
356
363
|
style: q(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
357
364
|
onMouseenter: a[3] || (a[3] = () => n(pe)(!0)),
|
|
358
365
|
onMouseleave: a[4] || (a[4] = () => n(pe)(!1))
|
|
@@ -400,7 +407,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
400
407
|
color: e.value.style.chart.color,
|
|
401
408
|
isImaging: n(be),
|
|
402
409
|
isPrinting: n(me),
|
|
403
|
-
uid:
|
|
410
|
+
uid: T.value,
|
|
404
411
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
405
412
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
406
413
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -408,9 +415,9 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
408
415
|
hasTable: e.value.userOptions.buttons.table,
|
|
409
416
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
410
417
|
isFullscreen: L.value,
|
|
411
|
-
isTooltip:
|
|
418
|
+
isTooltip: b.value.showTooltip,
|
|
412
419
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
413
|
-
chartElement:
|
|
420
|
+
chartElement: C.value,
|
|
414
421
|
position: e.value.userOptions.position,
|
|
415
422
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
416
423
|
isAnnotation: j.value,
|
|
@@ -513,7 +520,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
513
520
|
r: "50%",
|
|
514
521
|
fx: "50%",
|
|
515
522
|
fy: "50%",
|
|
516
|
-
id: `radar_gradient_${
|
|
523
|
+
id: `radar_gradient_${T.value}_${l}`
|
|
517
524
|
}, [
|
|
518
525
|
O("stop", {
|
|
519
526
|
offset: "0%",
|
|
@@ -526,7 +533,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
526
533
|
], 8, Mt))), 256))
|
|
527
534
|
]),
|
|
528
535
|
e.value.style.chart.layout.grid.show ? (r(), u("g", Et, [
|
|
529
|
-
(r(!0), u(A, null, F(
|
|
536
|
+
(r(!0), u(A, null, F($.value, (o) => (r(), u("line", {
|
|
530
537
|
x1: i.value.width / 2,
|
|
531
538
|
y1: i.value.height / 2,
|
|
532
539
|
x2: o.x,
|
|
@@ -557,7 +564,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
557
564
|
"stroke-linecap": "round"
|
|
558
565
|
}, null, 8, Wt),
|
|
559
566
|
e.value.style.chart.layout.labels.dataLabels.show ? (r(), u("g", Xt, [
|
|
560
|
-
(r(!0), u(A, null, F(
|
|
567
|
+
(r(!0), u(A, null, F($.value, (o, l) => (r(), u("text", {
|
|
561
568
|
x: Q(o).x,
|
|
562
569
|
y: Q(o).y,
|
|
563
570
|
"text-anchor": Q(o).anchor,
|
|
@@ -573,7 +580,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
573
580
|
O("g", null, [
|
|
574
581
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
575
582
|
key: 0,
|
|
576
|
-
points: n(Me)(
|
|
583
|
+
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
577
584
|
stroke: e.value.style.chart.backgroundColor,
|
|
578
585
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
579
586
|
fill: "none",
|
|
@@ -581,24 +588,24 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
581
588
|
}, null, 10, qt)) : d("", !0),
|
|
582
589
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), u("polygon", {
|
|
583
590
|
key: 1,
|
|
584
|
-
points: n(Me)(
|
|
591
|
+
points: n(Me)($.value.map((s) => s.plots[l]), !1, !0),
|
|
585
592
|
stroke: o.color,
|
|
586
593
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
587
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
594
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${T.value}_${l})` : n(le)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
588
595
|
class: B({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": I.value && E.value === l && e.value.useCssAnimation })
|
|
589
596
|
}, null, 10, Ht)) : d("", !0)
|
|
590
597
|
])
|
|
591
598
|
]))), 256)),
|
|
592
599
|
e.value.style.chart.layout.plots.show ? (r(), u("g", Yt, [
|
|
593
|
-
(r(!0), u(A, null, F(
|
|
594
|
-
(r(!0), u(A, null, F(o.plots, (s,
|
|
600
|
+
(r(!0), u(A, null, F($.value, (o, l) => (r(), u("g", null, [
|
|
601
|
+
(r(!0), u(A, null, F(o.plots, (s, m) => (r(), u("circle", {
|
|
595
602
|
cx: s.x,
|
|
596
603
|
cy: s.y,
|
|
597
|
-
fill: v.value.includes(
|
|
604
|
+
fill: v.value.includes(m) ? "transparent" : y.value[m].color,
|
|
598
605
|
r: X.value !== null && X.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
599
|
-
stroke: v.value.includes(
|
|
606
|
+
stroke: v.value.includes(m) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
600
607
|
"stroke-width": 0.5,
|
|
601
|
-
class: B({ "animated-out": v.value.includes(
|
|
608
|
+
class: B({ "animated-out": v.value.includes(m) && e.value.useCssAnimation, "animated-in": I.value && E.value === m && e.value.useCssAnimation })
|
|
602
609
|
}, null, 10, Jt))), 256))
|
|
603
610
|
]))), 256))
|
|
604
611
|
])) : d("", !0),
|
|
@@ -659,7 +666,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
659
666
|
g(t.$slots, "source", {}, void 0, !0)
|
|
660
667
|
], 512)) : d("", !0),
|
|
661
668
|
oe(n(je), {
|
|
662
|
-
show:
|
|
669
|
+
show: b.value.showTooltip && H.value,
|
|
663
670
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
664
671
|
color: e.value.style.chart.tooltip.color,
|
|
665
672
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -669,7 +676,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
669
676
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
670
677
|
position: e.value.style.chart.tooltip.position,
|
|
671
678
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
672
|
-
parent:
|
|
679
|
+
parent: C.value,
|
|
673
680
|
content: Y.value,
|
|
674
681
|
isFullscreen: L.value,
|
|
675
682
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
@@ -693,7 +700,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
693
700
|
key: 8,
|
|
694
701
|
hideDetails: "",
|
|
695
702
|
config: {
|
|
696
|
-
open:
|
|
703
|
+
open: b.value.showTable,
|
|
697
704
|
maxHeight: 1e4,
|
|
698
705
|
body: {
|
|
699
706
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -713,7 +720,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
713
720
|
body: W.value.body,
|
|
714
721
|
config: W.value.config,
|
|
715
722
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
716
|
-
onClose: a[2] || (a[2] = (o) =>
|
|
723
|
+
onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
|
|
717
724
|
}, {
|
|
718
725
|
th: f(({ th: o }) => [
|
|
719
726
|
Ne(D(o.name), 1)
|
|
@@ -728,7 +735,7 @@ const Rt = ["id"], Lt = ["xmlns", "viewBox"], zt = ["width", "height"], Mt = ["i
|
|
|
728
735
|
}, 8, ["config"])) : d("", !0)
|
|
729
736
|
], 46, Rt));
|
|
730
737
|
}
|
|
731
|
-
}, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-
|
|
738
|
+
}, pa = /* @__PURE__ */ It(ea, [["__scopeId", "data-v-3515f6e2"]]);
|
|
732
739
|
export {
|
|
733
740
|
pa as default
|
|
734
741
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
2
|
+
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-JzUbx__y.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-D_jd2dz9.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|