vue-data-ui 3.16.4 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
- package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computed as m, defineAsyncComponent as Me, useSlots as aa, shallowRef as Ie, ref as b, onMounted as vl, onBeforeUnmount as dl, toRefs as oa, watch as je, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as qt, createElementVNode as w, toDisplayString as ye, createBlock as ge, createCommentVNode as d, unref as s, withCtx as _, renderSlot as k, normalizeProps as
|
|
2
|
-
import { o as yl, q as Kt, r as ua, j as ra, t as gl, n as ia, p as Re, K as ca, s as pl, k as pe, l as ve, a4 as ml, ax as va, X as da, u as
|
|
1
|
+
import { computed as m, defineAsyncComponent as Me, useSlots as aa, shallowRef as Ie, ref as b, onMounted as vl, onBeforeUnmount as dl, toRefs as oa, watch as je, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as qt, createElementVNode as w, toDisplayString as ye, createBlock as ge, createCommentVNode as d, unref as s, withCtx as _, renderSlot as k, normalizeProps as W, guardReactiveProps as j, createSlots as Wt, createVNode as Tt, Fragment as P, renderList as J, mergeProps as jt, withDirectives as Pt, vShow as St, Teleport as na, resolveDynamicComponent as sa, createTextVNode as hl, nextTick as fl } from "vue";
|
|
2
|
+
import { o as yl, q as Kt, r as ua, j as ra, t as gl, n as ia, p as Re, K as ca, s as pl, k as pe, l as ve, a4 as ml, ax as va, X as da, u as Lt, v as ha, a5 as fa, ae as X, G as bl, a6 as we, a7 as A, as as wl, C as ya, m as ga, a0 as pa, a1 as ma, T as ba, ay as kl, ai as xl } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { f as wa, b as ka } from "./labelUtils-CqTHa20R.js";
|
|
4
4
|
import { t as xa, u as $a } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Ca } from "./useConfig-
|
|
5
|
+
import { u as Ca } from "./useConfig-ChRble71.js";
|
|
6
6
|
import { u as _a } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as Aa, B as Ta } from "./BaseScanner-BhhkKVoj.js";
|
|
8
8
|
import { u as Pa } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -21,23 +21,23 @@ import { _ as Xa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
21
21
|
function Na(it) {
|
|
22
22
|
const {
|
|
23
23
|
FINAL_CONFIG: ct,
|
|
24
|
-
noGhostDonut:
|
|
24
|
+
noGhostDonut: Mt,
|
|
25
25
|
svg: Ke,
|
|
26
26
|
padding: vt,
|
|
27
|
-
labels_inline_fontSize:
|
|
27
|
+
labels_inline_fontSize: It,
|
|
28
28
|
minSize: dt,
|
|
29
|
-
findArcMidpoint:
|
|
30
|
-
calcMarkerOffsetX:
|
|
31
|
-
calcMarkerOffsetY:
|
|
32
|
-
animatingIndex:
|
|
33
|
-
segregated:
|
|
34
|
-
isSmallArc:
|
|
29
|
+
findArcMidpoint: Ft,
|
|
30
|
+
calcMarkerOffsetX: zt,
|
|
31
|
+
calcMarkerOffsetY: Ot,
|
|
32
|
+
animatingIndex: Yt,
|
|
33
|
+
segregated: Dt,
|
|
34
|
+
isSmallArc: Bt
|
|
35
35
|
} = it;
|
|
36
36
|
return { smallArcLayoutsClassic: m(() => {
|
|
37
37
|
if (ct.value.type !== "classic") return {};
|
|
38
|
-
const Qe = {}, E =
|
|
38
|
+
const Qe = {}, E = Mt.value || [];
|
|
39
39
|
if (!E.length) return Qe;
|
|
40
|
-
const B = Ke.value.width / 2, M = Ke.value.height / 2, Fe = vt.value.top + 16, ht = Ke.value.height - vt.value.bottom - 16, Je =
|
|
40
|
+
const B = Ke.value.width / 2, M = Ke.value.height / 2, Fe = vt.value.top + 16, ht = Ke.value.height - vt.value.bottom - 16, Je = It.value, ft = Je / 3, yt = Je * 1.5, ne = 8, me = 6, Ze = B - (dt.value + me), et = B + (dt.value + me), gt = !!ct.value.style.chart.layout.curvedMarkers;
|
|
41
41
|
function pt({ midX: h, midY: g, bandX: f, bandY: C }) {
|
|
42
42
|
if (!gt)
|
|
43
43
|
return `M ${h} ${g} L ${h} ${C} L ${f} ${C}`;
|
|
@@ -54,14 +54,14 @@ function Na(it) {
|
|
|
54
54
|
if (ae < 56) {
|
|
55
55
|
const _e = F / ae;
|
|
56
56
|
let re = -(le / ae), Z = _e;
|
|
57
|
-
const Ae = (h + f) * 0.5, Te = (g + C) * 0.5,
|
|
58
|
-
(He - B) * (He - B) + (Ge - M) * (Ge - M) >
|
|
59
|
-
const at = 0.78, $t = h + F * at,
|
|
57
|
+
const Ae = (h + f) * 0.5, Te = (g + C) * 0.5, K = Ae + re, kt = Te + Z, Nt = (K - B) * (K - B) + (kt - M) * (kt - M), He = Ae - re, Ge = Te - Z;
|
|
58
|
+
(He - B) * (He - B) + (Ge - M) * (Ge - M) > Nt && (re = -re, Z = -Z);
|
|
59
|
+
const at = 0.78, $t = h + F * at, Rt = g + le * at, qe = Math.max(0, Math.min(1, (ae - 18) / 44)), x = qe * qe * (3 - 2 * qe);
|
|
60
60
|
let n = 2.5 + x * 4, he = 1 + x * 2.5;
|
|
61
61
|
n *= 0.9;
|
|
62
62
|
const ot = {
|
|
63
63
|
x: $t + re * n + se * he,
|
|
64
|
-
y:
|
|
64
|
+
y: Rt + Z * n + z * he
|
|
65
65
|
}, U = e(ot);
|
|
66
66
|
return `M ${h} ${g} Q ${U.x} ${U.y} ${f} ${C}`;
|
|
67
67
|
}
|
|
@@ -72,10 +72,10 @@ function Na(it) {
|
|
|
72
72
|
const Ye = {
|
|
73
73
|
x: h + se * $e,
|
|
74
74
|
y: g + z * $e
|
|
75
|
-
}, Ue = B + I * Math.max(Math.abs(f - B), Oe),
|
|
75
|
+
}, Ue = B + I * Math.max(Math.abs(f - B), Oe), Xt = {
|
|
76
76
|
x: f - I * Math.min(ue, Math.abs(Ue - f) * 0.75),
|
|
77
77
|
y: C
|
|
78
|
-
}, Y = e(Ye), Ce = e(
|
|
78
|
+
}, Y = e(Ye), Ce = e(Xt);
|
|
79
79
|
return `M ${h} ${g} C ${Y.x} ${Y.y} ${Ce.x} ${Ce.y} ${f} ${C}`;
|
|
80
80
|
}
|
|
81
81
|
function mt(h) {
|
|
@@ -83,7 +83,7 @@ function Na(it) {
|
|
|
83
83
|
return yt + I;
|
|
84
84
|
}
|
|
85
85
|
function bt({ arc: h, index: g }) {
|
|
86
|
-
const { x: f, y: C } =
|
|
86
|
+
const { x: f, y: C } = Ft(h.path), I = zt(h).x, F = Ot(h) - 3.5, le = mt(h.name);
|
|
87
87
|
return {
|
|
88
88
|
arc: h,
|
|
89
89
|
index: g,
|
|
@@ -96,7 +96,7 @@ function Na(it) {
|
|
|
96
96
|
}
|
|
97
97
|
function ze(h) {
|
|
98
98
|
const { arc: g } = h, f = g.seriesIndex ?? 0;
|
|
99
|
-
return
|
|
99
|
+
return Yt.value === f || Dt.value.includes(f) ? !1 : Bt(g, f);
|
|
100
100
|
}
|
|
101
101
|
function tt(h) {
|
|
102
102
|
const g = h.inlineMarkerY < M, f = h.inlineMarkerX < B;
|
|
@@ -212,8 +212,8 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
215
|
-
setup(it, { expose: ct, emit:
|
|
216
|
-
const Ke = Me(() => import("./Tooltip-
|
|
215
|
+
setup(it, { expose: ct, emit: Mt }) {
|
|
216
|
+
const Ke = Me(() => import("./Tooltip-C8KGyqQk.js")), vt = Me(() => import("./BaseIcon-Cb3zzG6s.js")), It = Me(() => import("./vue-ui-accordion-CnDW2UQL.js")), dt = Me(() => import("./DataTable-DT2kIdQ6.js")), Ft = Me(() => import("./PenAndPaper-Ct3qJ4lA.js")), zt = Me(() => import("./UserOptions-rW2fRf3V.js")), Ot = Me(() => import("./PackageVersion-B3kmPxTR.js")), Yt = Me(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_donut: Dt } = Ca(), { isThemeValid: Bt, warnInvalidTheme: Jt } = Sa(), Qe = aa(), E = it, B = m({
|
|
217
217
|
get() {
|
|
218
218
|
return !!E.dataset && E.dataset.length;
|
|
219
219
|
},
|
|
@@ -234,7 +234,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
234
234
|
const F = () => {
|
|
235
235
|
!e.value.autoSize || I || (I = !0, requestAnimationFrame(() => {
|
|
236
236
|
I = !1;
|
|
237
|
-
const t = e.value, o = Fe.value, l =
|
|
237
|
+
const t = e.value, o = Fe.value, l = K.value;
|
|
238
238
|
if (!t.autoSize || !o || !l) return;
|
|
239
239
|
const [a, r, c, y] = l.getAttribute("viewBox").split(" ").map(Number), $ = { x: a, y: r, width: c, height: y }, D = [
|
|
240
240
|
{
|
|
@@ -338,13 +338,13 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
338
338
|
function Oe() {
|
|
339
339
|
const t = Qt({
|
|
340
340
|
userConfig: E.config,
|
|
341
|
-
defaultConfig:
|
|
341
|
+
defaultConfig: Dt
|
|
342
342
|
});
|
|
343
343
|
let o = {};
|
|
344
344
|
const l = t.theme;
|
|
345
345
|
if (!l)
|
|
346
346
|
o = t;
|
|
347
|
-
else if (!
|
|
347
|
+
else if (!Bt.value(t))
|
|
348
348
|
Jt(t), o = t;
|
|
349
349
|
else {
|
|
350
350
|
const a = Qt({
|
|
@@ -397,7 +397,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
397
397
|
}
|
|
398
398
|
},
|
|
399
399
|
userConfig: e.value.skeletonConfig ?? {}
|
|
400
|
-
})), { loading: ue, FINAL_DATASET: Ye, manualLoading: Ue, skeletonDataset:
|
|
400
|
+
})), { loading: ue, FINAL_DATASET: Ye, manualLoading: Ue, skeletonDataset: Xt } = Aa({
|
|
401
401
|
...oa(E),
|
|
402
402
|
FINAL_CONFIG: e,
|
|
403
403
|
prepareConfig: Oe,
|
|
@@ -442,7 +442,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
442
442
|
async (t) => {
|
|
443
443
|
if (t || _e.value)
|
|
444
444
|
return;
|
|
445
|
-
const o = Ye.value ===
|
|
445
|
+
const o = Ye.value === Xt, l = e.value.startAnimation?.show;
|
|
446
446
|
if (!o && l) {
|
|
447
447
|
_e.value = !0;
|
|
448
448
|
const a = e.value.startAnimation.durationMs || 1e3;
|
|
@@ -453,11 +453,11 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
453
453
|
},
|
|
454
454
|
{ immediate: !0 }
|
|
455
455
|
);
|
|
456
|
-
const { userOptionsVisible: Z, setUserOptionsVisibility: Ae, keepUserOptionState: Te } = La({ config: e.value }), { svgRef:
|
|
456
|
+
const { userOptionsVisible: Z, setUserOptionsVisibility: Ae, keepUserOptionState: Te } = La({ config: e.value }), { svgRef: K } = Ma({ config: e.value.style.chart.title });
|
|
457
457
|
function kt() {
|
|
458
458
|
Ae(!0);
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Nt() {
|
|
461
461
|
Ae(!1);
|
|
462
462
|
}
|
|
463
463
|
je(() => E.config, (t) => {
|
|
@@ -476,7 +476,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
476
476
|
elementId: `donut__${p.value}`,
|
|
477
477
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
478
478
|
options: e.value.userOptions.print
|
|
479
|
-
}),
|
|
479
|
+
}), Rt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), qe = m(() => ia(e.value.customPalette)), x = b({
|
|
480
480
|
dataLabels: {
|
|
481
481
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
482
482
|
},
|
|
@@ -500,7 +500,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
500
500
|
return O.value;
|
|
501
501
|
const t = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * t, l = o > O.value ? O.value : o;
|
|
502
502
|
return Math.max(l, 12 * (1 + t));
|
|
503
|
-
}), ot =
|
|
503
|
+
}), ot = Mt, U = m(() => Ye.value.sort((t, o) => {
|
|
504
504
|
const l = Array.isArray(t.values) ? t.values.reduce((r, c) => r + c, 0) : t.value ?? 0, a = Array.isArray(o.values) ? o.values.reduce((r, c) => r + c, 0) : o.value ?? 0;
|
|
505
505
|
return t.ghost && !o.ghost ? 1 : o.ghost && !t.ghost ? -1 : a - l;
|
|
506
506
|
}).map((t, o) => ({
|
|
@@ -517,9 +517,9 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
517
517
|
je(() => E.dataset, (t) => {
|
|
518
518
|
Array.isArray(t) && t.length > 0 && (Ue.value = !1);
|
|
519
519
|
}, { immediate: !0 });
|
|
520
|
-
const
|
|
520
|
+
const Q = Ie(U.value);
|
|
521
521
|
je(() => U.value, (t) => {
|
|
522
|
-
|
|
522
|
+
Q.value = t, requestAnimationFrame(F);
|
|
523
523
|
});
|
|
524
524
|
function $l() {
|
|
525
525
|
return U.value.map((t) => ({
|
|
@@ -544,10 +544,10 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
544
544
|
}
|
|
545
545
|
function Ct(t) {
|
|
546
546
|
const o = U.value.find((r, c) => c === t);
|
|
547
|
-
let a =
|
|
547
|
+
let a = Q.value.find((r, c) => c === t).value;
|
|
548
548
|
if (N.value.includes(t)) {
|
|
549
549
|
let c = function() {
|
|
550
|
-
|
|
550
|
+
Q.value = Q.value.map(
|
|
551
551
|
($, D) => t === D ? { ...$, value: r } : $
|
|
552
552
|
);
|
|
553
553
|
}, y = function() {
|
|
@@ -556,7 +556,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
556
556
|
to: r,
|
|
557
557
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
558
558
|
onUpdate: ($, D) => {
|
|
559
|
-
|
|
559
|
+
Q.value = Q.value.map(
|
|
560
560
|
(S, V) => t === V ? { ...S, value: $ } : S
|
|
561
561
|
), requestAnimationFrame(F);
|
|
562
562
|
},
|
|
@@ -570,7 +570,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
570
570
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? y() : (c(), requestAnimationFrame(F));
|
|
571
571
|
} else if (N.value.length < U.value.length - 1) {
|
|
572
572
|
let r = function() {
|
|
573
|
-
N.value.push(t),
|
|
573
|
+
N.value.push(t), Q.value = Q.value.map(
|
|
574
574
|
(y, $) => t === $ ? { ...y, value: 0 } : y
|
|
575
575
|
);
|
|
576
576
|
}, c = function() {
|
|
@@ -579,7 +579,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
579
579
|
to: 0,
|
|
580
580
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
581
581
|
onUpdate: (y, $) => {
|
|
582
|
-
|
|
582
|
+
Q.value = Q.value.map(
|
|
583
583
|
(D, S) => t === S ? { ...D, value: y } : D
|
|
584
584
|
), requestAnimationFrame(F);
|
|
585
585
|
},
|
|
@@ -630,13 +630,13 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
630
630
|
ghost: !0
|
|
631
631
|
}), o;
|
|
632
632
|
} else
|
|
633
|
-
return
|
|
633
|
+
return Q.value.forEach((t) => {
|
|
634
634
|
if ([null, void 0].includes(t.values))
|
|
635
635
|
return {
|
|
636
636
|
...t,
|
|
637
637
|
values: []
|
|
638
638
|
};
|
|
639
|
-
}),
|
|
639
|
+
}), Q.value.map((t, o) => ({
|
|
640
640
|
...t,
|
|
641
641
|
seriesIndex: o
|
|
642
642
|
})).filter((t, o) => !N.value.includes(o));
|
|
@@ -754,16 +754,16 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
754
754
|
const te = m(() => be.value.map((t) => t.value).reduce((t, o) => t + o, 0)), zl = m(() => {
|
|
755
755
|
const t = U.value.reduce((o, l) => o + l.value, 0);
|
|
756
756
|
return t <= 0 ? [] : U.value.map((o) => o.value / t);
|
|
757
|
-
}),
|
|
757
|
+
}), Vt = m(() => te.value / be.value.length);
|
|
758
758
|
function ll(t) {
|
|
759
759
|
return Pe.value ? t.proportion * 100 : t.value / te.value * 100;
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const _t = b(null), st = b(!1);
|
|
762
762
|
function fe({ datapoint: t, seriesIndex: o }) {
|
|
763
763
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), oe.value = !1, z.value = null, H.value = null, G.value = "pointer";
|
|
764
764
|
}
|
|
765
765
|
function ie({ datapoint: t, relativeIndex: o, seriesIndex: l, show: a = !1, triggerMode: r = "pointer" }) {
|
|
766
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), G.value = r, H.value = o,
|
|
766
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), G.value = r, H.value = o, _t.value = { datapoint: t, seriesIndex: l, config: e.value, series: U.value }, oe.value = a, z.value = o;
|
|
767
767
|
let c = "";
|
|
768
768
|
const y = e.value.style.chart.tooltip.customFormat;
|
|
769
769
|
if (st.value = !1, ba(y))
|
|
@@ -829,7 +829,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
831
|
function Yl(t, o, l) {
|
|
832
|
-
const { textAnchor: a, x: r } = Ol(t, o), c =
|
|
832
|
+
const { textAnchor: a, x: r } = Ol(t, o), c = At(t), y = `
|
|
833
833
|
<tspan
|
|
834
834
|
class="vue-data-ui-datalabel-inline"
|
|
835
835
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
@@ -867,7 +867,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
867
867
|
centerY: n.value.height / 2
|
|
868
868
|
}), c = r.x;
|
|
869
869
|
r.y;
|
|
870
|
-
const y =
|
|
870
|
+
const y = At(t), $ = `
|
|
871
871
|
<tspan
|
|
872
872
|
class="vue-data-ui-datalabel-value"
|
|
873
873
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
@@ -982,7 +982,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
982
982
|
showPercentage: a
|
|
983
983
|
});
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function At(t) {
|
|
986
986
|
return Ut({
|
|
987
987
|
val: pe(
|
|
988
988
|
e.value.style.chart.layout.labels.value.formatter,
|
|
@@ -1032,12 +1032,12 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1032
1032
|
function Rl() {
|
|
1033
1033
|
if (!Fe.value) return;
|
|
1034
1034
|
const { x: t, y: o, width: l, height: a } = Fe.value.getBBox();
|
|
1035
|
-
|
|
1035
|
+
K.value && K.value.setAttribute("viewBox", `${t} ${o} ${l + Math.min(0, t)} ${a + Math.min(0, o)}`);
|
|
1036
1036
|
}
|
|
1037
1037
|
const rt = m(() => {
|
|
1038
1038
|
const t = e.value.table.useDialog && !e.value.table.show, o = x.value.showTable;
|
|
1039
1039
|
return {
|
|
1040
|
-
component: t ?
|
|
1040
|
+
component: t ? Yt : It,
|
|
1041
1041
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1042
1042
|
props: t ? {
|
|
1043
1043
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -1075,7 +1075,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1075
1075
|
...t,
|
|
1076
1076
|
name: t.display
|
|
1077
1077
|
}))), El = m(() => e.value.style.chart.backgroundColor), Ul = m(() => e.value.style.chart.legend), Hl = m(() => e.value.style.chart.title), { exportSvg: Gl, getSvg: ql } = Pa({
|
|
1078
|
-
svg:
|
|
1078
|
+
svg: K,
|
|
1079
1079
|
title: Hl,
|
|
1080
1080
|
legend: Ul,
|
|
1081
1081
|
legendItems: Vl,
|
|
@@ -1107,14 +1107,14 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1107
1107
|
async function cl() {
|
|
1108
1108
|
if (ot("copyAlt", {
|
|
1109
1109
|
config: e.value,
|
|
1110
|
-
dataset:
|
|
1110
|
+
dataset: Q.value
|
|
1111
1111
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
1112
1112
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
1115
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
1116
1116
|
config: e.value,
|
|
1117
|
-
dataset:
|
|
1117
|
+
dataset: Q.value
|
|
1118
1118
|
}));
|
|
1119
1119
|
}
|
|
1120
1120
|
function jl() {
|
|
@@ -1124,7 +1124,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1124
1124
|
H.value = null, G.value = "pointer", oe.value = !1, z.value = null, h.value = !1;
|
|
1125
1125
|
}
|
|
1126
1126
|
function Ql(t) {
|
|
1127
|
-
if (!
|
|
1127
|
+
if (!K.value || ut.value || document.activeElement !== K.value || !T.value.length) return;
|
|
1128
1128
|
const o = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), a = t.key === "Enter" || t.key === " ", r = t.key === "Escape";
|
|
1129
1129
|
if (!o && !l && !a && !r) return;
|
|
1130
1130
|
if (t.preventDefault(), t.stopPropagation(), r) {
|
|
@@ -1151,7 +1151,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1151
1151
|
}));
|
|
1152
1152
|
}
|
|
1153
1153
|
function Jl(t) {
|
|
1154
|
-
if (!Number.isFinite(t) || !
|
|
1154
|
+
if (!Number.isFinite(t) || !K.value) return;
|
|
1155
1155
|
let o = n.value.width / 2, l = n.value.height / 2;
|
|
1156
1156
|
if (e.value.type === "classic") {
|
|
1157
1157
|
const r = T.value[t];
|
|
@@ -1164,7 +1164,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1164
1164
|
if (!r) return;
|
|
1165
1165
|
o = r.x, l = r.y;
|
|
1166
1166
|
}
|
|
1167
|
-
const a =
|
|
1167
|
+
const a = K.value.getBoundingClientRect();
|
|
1168
1168
|
wt.value = {
|
|
1169
1169
|
x: a.left + o / n.value.width * a.width,
|
|
1170
1170
|
y: a.top + l / n.value.height * a.height
|
|
@@ -1197,7 +1197,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1197
1197
|
style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
1198
1198
|
id: `donut__${p.value}`,
|
|
1199
1199
|
onMouseenter: kt,
|
|
1200
|
-
onMouseleave:
|
|
1200
|
+
onMouseleave: Nt
|
|
1201
1201
|
}, [
|
|
1202
1202
|
w("div", {
|
|
1203
1203
|
id: `chart-instructions-${p.value}`,
|
|
@@ -1213,12 +1213,12 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1213
1213
|
notice: e.value.a11y.translations.tableAvailable,
|
|
1214
1214
|
caption: e.value.a11y.translations.tableCaption
|
|
1215
1215
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : d("", !0),
|
|
1216
|
-
e.value.userOptions.buttons.annotator && s(
|
|
1216
|
+
e.value.userOptions.buttons.annotator && s(K) ? (u(), ge(s(Ft), {
|
|
1217
1217
|
key: 1,
|
|
1218
1218
|
color: e.value.style.chart.color,
|
|
1219
1219
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1220
1220
|
active: ut.value,
|
|
1221
|
-
svgRef: s(
|
|
1221
|
+
svgRef: s(K),
|
|
1222
1222
|
isCursorPointer: xe.value,
|
|
1223
1223
|
onClose: Ht
|
|
1224
1224
|
}, {
|
|
@@ -1226,24 +1226,24 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1226
1226
|
k(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1227
1227
|
]),
|
|
1228
1228
|
"annotator-action-color": _(({ color: l }) => [
|
|
1229
|
-
k(t.$slots, "annotator-action-color",
|
|
1229
|
+
k(t.$slots, "annotator-action-color", W(j({ color: l })), void 0, !0)
|
|
1230
1230
|
]),
|
|
1231
1231
|
"annotator-action-draw": _(({ mode: l }) => [
|
|
1232
|
-
k(t.$slots, "annotator-action-draw",
|
|
1232
|
+
k(t.$slots, "annotator-action-draw", W(j({ mode: l })), void 0, !0)
|
|
1233
1233
|
]),
|
|
1234
1234
|
"annotator-action-undo": _(({ disabled: l }) => [
|
|
1235
|
-
k(t.$slots, "annotator-action-undo",
|
|
1235
|
+
k(t.$slots, "annotator-action-undo", W(j({ disabled: l })), void 0, !0)
|
|
1236
1236
|
]),
|
|
1237
1237
|
"annotator-action-redo": _(({ disabled: l }) => [
|
|
1238
|
-
k(t.$slots, "annotator-action-redo",
|
|
1238
|
+
k(t.$slots, "annotator-action-redo", W(j({ disabled: l })), void 0, !0)
|
|
1239
1239
|
]),
|
|
1240
1240
|
"annotator-action-delete": _(({ disabled: l }) => [
|
|
1241
|
-
k(t.$slots, "annotator-action-delete",
|
|
1241
|
+
k(t.$slots, "annotator-action-delete", W(j({ disabled: l })), void 0, !0)
|
|
1242
1242
|
]),
|
|
1243
1243
|
_: 3
|
|
1244
1244
|
}, 8, ["color", "backgroundColor", "active", "svgRef", "isCursorPointer"])) : d("", !0),
|
|
1245
1245
|
k(t.$slots, "userConfig", {}, void 0, !0),
|
|
1246
|
-
|
|
1246
|
+
Rt.value ? (u(), i("div", {
|
|
1247
1247
|
key: 2,
|
|
1248
1248
|
ref_key: "noTitle",
|
|
1249
1249
|
ref: et,
|
|
@@ -1273,7 +1273,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1273
1273
|
w("div", {
|
|
1274
1274
|
id: `legend-top-${p.value}`
|
|
1275
1275
|
}, null, 8, Ea),
|
|
1276
|
-
e.value.userOptions.show && B.value && (s(Te) || s(Z)) ? (u(), ge(s(
|
|
1276
|
+
e.value.userOptions.show && B.value && (s(Te) || s(Z)) ? (u(), ge(s(zt), {
|
|
1277
1277
|
ref_key: "userOptionsRef",
|
|
1278
1278
|
ref: tt,
|
|
1279
1279
|
key: `user_option_${lt.value}`,
|
|
@@ -1317,7 +1317,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1317
1317
|
t.$slots.menuIcon ? {
|
|
1318
1318
|
name: "menuIcon",
|
|
1319
1319
|
fn: _(({ isOpen: l, color: a }) => [
|
|
1320
|
-
k(t.$slots, "menuIcon",
|
|
1320
|
+
k(t.$slots, "menuIcon", W(j({ isOpen: l, color: a })), void 0, !0)
|
|
1321
1321
|
]),
|
|
1322
1322
|
key: "0"
|
|
1323
1323
|
} : void 0,
|
|
@@ -1373,21 +1373,21 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1373
1373
|
t.$slots.optionFullscreen ? {
|
|
1374
1374
|
name: "optionFullscreen",
|
|
1375
1375
|
fn: _(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
1376
|
-
k(t.$slots, "optionFullscreen",
|
|
1376
|
+
k(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
1377
1377
|
]),
|
|
1378
1378
|
key: "8"
|
|
1379
1379
|
} : void 0,
|
|
1380
1380
|
t.$slots.optionAnnotator ? {
|
|
1381
1381
|
name: "optionAnnotator",
|
|
1382
1382
|
fn: _(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
1383
|
-
k(t.$slots, "optionAnnotator",
|
|
1383
|
+
k(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
1384
1384
|
]),
|
|
1385
1385
|
key: "9"
|
|
1386
1386
|
} : void 0,
|
|
1387
1387
|
t.$slots.optionAltCopy ? {
|
|
1388
1388
|
name: "optionAltCopy",
|
|
1389
1389
|
fn: _(({ altCopy: l }) => [
|
|
1390
|
-
k(t.$slots, "optionAltCopy",
|
|
1390
|
+
k(t.$slots, "optionAltCopy", W(j({ altCopy: l })), void 0, !0)
|
|
1391
1391
|
]),
|
|
1392
1392
|
key: "10"
|
|
1393
1393
|
} : void 0
|
|
@@ -1395,7 +1395,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1395
1395
|
w("div", Ua, [
|
|
1396
1396
|
(u(), i("svg", {
|
|
1397
1397
|
ref_key: "svgRef",
|
|
1398
|
-
ref:
|
|
1398
|
+
ref: K,
|
|
1399
1399
|
xmlns: s(da),
|
|
1400
1400
|
"aria-describedby": `chart-instructions-${p.value}`,
|
|
1401
1401
|
class: qt({ "vue-data-ui-fullscreen--on": Xe.value, "vue-data-ui-fulscreen--off": !Xe.value, "vue-data-ui-svg": !0 }),
|
|
@@ -1411,7 +1411,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1411
1411
|
ref: Fe,
|
|
1412
1412
|
class: "vue-data-ui-g"
|
|
1413
1413
|
}, [
|
|
1414
|
-
|
|
1414
|
+
Tt(s(Ot)),
|
|
1415
1415
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1416
1416
|
key: 0,
|
|
1417
1417
|
x: 0,
|
|
@@ -1431,21 +1431,21 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1431
1431
|
}, [
|
|
1432
1432
|
w("stop", {
|
|
1433
1433
|
offset: "0%",
|
|
1434
|
-
"stop-color": s(
|
|
1434
|
+
"stop-color": s(Lt)(e.value.style.chart.backgroundColor, 0),
|
|
1435
1435
|
"stop-opacity": "0"
|
|
1436
1436
|
}, null, 8, ja),
|
|
1437
1437
|
w("stop", {
|
|
1438
1438
|
offset: `${(1 - he.value / O.value) * 100}%`,
|
|
1439
|
-
"stop-color": s(
|
|
1439
|
+
"stop-color": s(Lt)("#FFFFFF", 0),
|
|
1440
1440
|
"stop-opacity": "0"
|
|
1441
1441
|
}, null, 8, Ka),
|
|
1442
1442
|
w("stop", {
|
|
1443
1443
|
offset: `${(1 - he.value / O.value / 2) * 100}%`,
|
|
1444
|
-
"stop-color": s(
|
|
1444
|
+
"stop-color": s(Lt)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
1445
1445
|
}, null, 8, Qa),
|
|
1446
1446
|
w("stop", {
|
|
1447
1447
|
offset: "100%",
|
|
1448
|
-
"stop-color": s(
|
|
1448
|
+
"stop-color": s(Lt)(e.value.style.chart.backgroundColor, 0),
|
|
1449
1449
|
"stop-opacity": "0"
|
|
1450
1450
|
}, null, 8, Ja)
|
|
1451
1451
|
], 8, Wa)) : d("", !0)
|
|
@@ -1779,10 +1779,10 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1779
1779
|
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1780
1780
|
}, ye(Pe.value || Y.value ? "--" : s(pe)(
|
|
1781
1781
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1782
|
-
s(bl)(
|
|
1782
|
+
s(bl)(Vt.value),
|
|
1783
1783
|
s(ve)({
|
|
1784
1784
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1785
|
-
v: s(bl)(
|
|
1785
|
+
v: s(bl)(Vt.value),
|
|
1786
1786
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1787
1787
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1788
1788
|
})
|
|
@@ -1834,7 +1834,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1834
1834
|
}),
|
|
1835
1835
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1836
1836
|
}, null, 40, Ho)) : d("", !0),
|
|
1837
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine || s(R)[a] ?
|
|
1837
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine || s(R)[a] ? Pt((u(), i("text", {
|
|
1838
1838
|
key: 1,
|
|
1839
1839
|
class: "vue-data-ui-datalabel-inline",
|
|
1840
1840
|
"text-anchor": s(R)[a]?.textAnchor || s(A)(l, !0, 12).anchor,
|
|
@@ -1850,9 +1850,9 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1850
1850
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1851
1851
|
innerHTML: Yl(l, a, !!s(R)[a])
|
|
1852
1852
|
}, null, 40, Go)), [
|
|
1853
|
-
[
|
|
1853
|
+
[St, ee(l) && x.value.dataLabels.show]
|
|
1854
1854
|
]) : (u(), i(P, { key: 2 }, [
|
|
1855
|
-
|
|
1855
|
+
Pt(w("text", {
|
|
1856
1856
|
class: "vue-data-ui-datalabel-value",
|
|
1857
1857
|
"text-anchor": s(R)[a]?.textAnchor || s(A)(l, !0, 12).anchor,
|
|
1858
1858
|
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
@@ -1868,10 +1868,10 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1868
1868
|
show: !0
|
|
1869
1869
|
}),
|
|
1870
1870
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1871
|
-
}, ye(
|
|
1872
|
-
[
|
|
1871
|
+
}, ye(At(l)), 45, qo), [
|
|
1872
|
+
[St, ee(l) && x.value.dataLabels.show]
|
|
1873
1873
|
]),
|
|
1874
|
-
|
|
1874
|
+
Pt(w("text", {
|
|
1875
1875
|
class: "vue-data-ui-datalabel-name",
|
|
1876
1876
|
"text-anchor": s(R)[a]?.textAnchor || s(A)(l).anchor,
|
|
1877
1877
|
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
@@ -1895,7 +1895,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1895
1895
|
y: (s(R)[a]?.labelY ?? s(we)(l)) + f.value
|
|
1896
1896
|
})
|
|
1897
1897
|
}, null, 44, Wo), [
|
|
1898
|
-
[
|
|
1898
|
+
[St, ee(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.name.show]
|
|
1899
1899
|
])
|
|
1900
1900
|
], 64))
|
|
1901
1901
|
], 64)) : d("", !0),
|
|
@@ -1921,7 +1921,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1921
1921
|
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1922
1922
|
})
|
|
1923
1923
|
}, null, 44, jo)) : d("", !0),
|
|
1924
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine ?
|
|
1924
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine ? Pt((u(), i("text", {
|
|
1925
1925
|
key: 1,
|
|
1926
1926
|
class: "vue-data-ui-datalabel-inline",
|
|
1927
1927
|
"text-anchor": Se(v.value[a].middlePoint),
|
|
@@ -1940,7 +1940,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1940
1940
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1941
1941
|
innerHTML: Dl(l, a)
|
|
1942
1942
|
}, null, 44, Ko)), [
|
|
1943
|
-
[
|
|
1943
|
+
[St, ee(l) && x.value.dataLabels.show]
|
|
1944
1944
|
]) : (u(), i(P, { key: 2 }, [
|
|
1945
1945
|
ee(l) && x.value.dataLabels.show ? (u(), i("text", {
|
|
1946
1946
|
key: 0,
|
|
@@ -1962,7 +1962,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
1962
1962
|
show: !0
|
|
1963
1963
|
}),
|
|
1964
1964
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1965
|
-
}, ye(
|
|
1965
|
+
}, ye(At(l)), 45, Qo)) : d("", !0),
|
|
1966
1966
|
ee(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.name.show ? (u(), i("text", {
|
|
1967
1967
|
key: 1,
|
|
1968
1968
|
class: "vue-data-ui-datalabel-name",
|
|
@@ -2039,11 +2039,11 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
2039
2039
|
], 512)
|
|
2040
2040
|
], 46, Ha)),
|
|
2041
2041
|
t.$slots.hint ? (u(), i("div", ln, [
|
|
2042
|
-
k(t.$slots, "hint",
|
|
2042
|
+
k(t.$slots, "hint", W(j({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: h.value })), void 0, !0)
|
|
2043
2043
|
])) : d("", !0)
|
|
2044
2044
|
]),
|
|
2045
2045
|
t.$slots.watermark ? (u(), i("div", an, [
|
|
2046
|
-
k(t.$slots, "watermark",
|
|
2046
|
+
k(t.$slots, "watermark", W(j({ isPrinting: s(Ge) || s(xt) || Ve.value || Ee.value })), void 0, !0)
|
|
2047
2047
|
])) : d("", !0),
|
|
2048
2048
|
w("div", {
|
|
2049
2049
|
id: `legend-bottom-${p.value}`
|
|
@@ -2085,7 +2085,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
2085
2085
|
t.$slots.pattern ? {
|
|
2086
2086
|
name: "legend-pattern",
|
|
2087
2087
|
fn: _(({ legend: l, index: a }) => [
|
|
2088
|
-
|
|
2088
|
+
Tt(Fa, {
|
|
2089
2089
|
shape: l.shape,
|
|
2090
2090
|
radius: 30,
|
|
2091
2091
|
stroke: "none",
|
|
@@ -2108,13 +2108,13 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
2108
2108
|
k(t.$slots, "source", {}, void 0, !0)
|
|
2109
2109
|
], 512)) : d("", !0),
|
|
2110
2110
|
t.$slots.hollow ? (u(), i("div", sn, [
|
|
2111
|
-
k(t.$slots, "hollow",
|
|
2111
|
+
k(t.$slots, "hollow", W(j({
|
|
2112
2112
|
total: te.value,
|
|
2113
|
-
average:
|
|
2113
|
+
average: Vt.value,
|
|
2114
2114
|
dataset: U.value
|
|
2115
2115
|
})), void 0, !0)
|
|
2116
2116
|
])) : d("", !0),
|
|
2117
|
-
|
|
2117
|
+
Tt(s(Ke), {
|
|
2118
2118
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
2119
2119
|
show: x.value.showTooltip && oe.value,
|
|
2120
2120
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2138,10 +2138,13 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
2138
2138
|
a11yPosition: wt.value
|
|
2139
2139
|
}, {
|
|
2140
2140
|
"tooltip-before": _(() => [
|
|
2141
|
-
k(t.$slots, "tooltip-before",
|
|
2141
|
+
k(t.$slots, "tooltip-before", W(j({ ..._t.value })), void 0, !0)
|
|
2142
|
+
]),
|
|
2143
|
+
tooltip: _(() => [
|
|
2144
|
+
k(t.$slots, "tooltip", W(j({ ..._t.value })), void 0, !0)
|
|
2142
2145
|
]),
|
|
2143
2146
|
"tooltip-after": _(() => [
|
|
2144
|
-
k(t.$slots, "tooltip-after",
|
|
2147
|
+
k(t.$slots, "tooltip-after", W(j({ ..._t.value })), void 0, !0)
|
|
2145
2148
|
]),
|
|
2146
2149
|
_: 3
|
|
2147
2150
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
@@ -2209,7 +2212,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
2209
2212
|
onClick: o[4] || (o[4] = (l) => Et(e.value.userOptions.callbacks.csv)),
|
|
2210
2213
|
style: L({ cursor: xe.value ? "pointer" : "default" })
|
|
2211
2214
|
}, [
|
|
2212
|
-
|
|
2215
|
+
Tt(s(vt), {
|
|
2213
2216
|
name: "fileCsv",
|
|
2214
2217
|
stroke: rt.value.props.color
|
|
2215
2218
|
}, null, 8, ["stroke"])
|
|
@@ -2223,7 +2226,7 @@ const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative
|
|
|
2223
2226
|
], !0)
|
|
2224
2227
|
], 46, Ra));
|
|
2225
2228
|
}
|
|
2226
|
-
}, Ln = /* @__PURE__ */ Xa(rn, [["__scopeId", "data-v-
|
|
2229
|
+
}, Ln = /* @__PURE__ */ Xa(rn, [["__scopeId", "data-v-efe06837"]]);
|
|
2227
2230
|
export {
|
|
2228
2231
|
Ln as default
|
|
2229
2232
|
};
|