vue-data-ui 3.0.0-next.30 → 3.0.0-next.32
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/{Arrow-gZkDqarC.js → Arrow-DiI9PrPS.js} +1 -1
- package/dist/{BaseDraggableDialog-Cx7MDUn7.js → BaseDraggableDialog-C0Kz_kZp.js} +2 -2
- package/dist/{BaseIcon-DEGIw8ne.js → BaseIcon-B_tGgA4H.js} +1 -1
- package/dist/{ColorPicker-dVo9qgIk.js → ColorPicker-CNsQt00F.js} +2 -2
- package/dist/{DataTable-DjL9vVfm.js → DataTable-Cm1oLidx.js} +2 -2
- package/dist/{Legend-DNs8ZSxL.js → Legend-DlUDcF1t.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bmu00306.js → NonSvgPenAndPaper-CLlxRJK1.js} +3 -3
- package/dist/{PackageVersion-SqC1iXfO.js → PackageVersion-DZMJZGOu.js} +1 -1
- package/dist/{PenAndPaper-C1bF0gIz.js → PenAndPaper-BDNLADWh.js} +3 -3
- package/dist/{Shape-CNmKltYG.js → Shape-Br_SZ_x0.js} +1 -1
- package/dist/Slicer-DMU3nifX.js +588 -0
- package/dist/{SparkTooltip-BuPeepCP.js → SparkTooltip-B6xp9zx_.js} +1 -1
- package/dist/{Title-B21jaJ0n.js → Title-B5lsq0cx.js} +1 -1
- package/dist/{Tooltip-C4HWh3fx.js → Tooltip-CrAURNKT.js} +23 -19
- package/dist/{UserOptions-DQDPN9YO.js → UserOptions-CksX2mn0.js} +2 -2
- package/dist/{dom-to-png-Z16yk8O6.js → dom-to-png-CIBDe8BB.js} +1 -1
- package/dist/{img-UQKhhbxb.js → img-CWXYkVMQ.js} +1 -1
- package/dist/{index-Bxh2efzz.js → index-DB4XIP_N.js} +16 -3
- package/dist/{pdf-D2K9GCDq.js → pdf-Dm-ieKMv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +13 -1
- package/dist/types/vue-data-ui.d.ts +13 -1
- package/dist/{useNestedProp-BGEUK51b.js → useNestedProp-iTa19l34.js} +1 -1
- package/dist/{usePrinter-CfB_poc_.js → usePrinter-id381vkp.js} +2 -2
- package/dist/{vue-data-ui-Em_nyncZ.js → vue-data-ui-WdvK3lBL.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-KFXQhCpk.js → vue-ui-3d-bar-CtiAXSRA.js} +6 -6
- package/dist/{vue-ui-accordion-CXj3OfMj.js → vue-ui-accordion-DAT3uTMD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bygd_6Lj.js → vue-ui-age-pyramid-LuljyG04.js} +11 -9
- package/dist/{vue-ui-annotator-CaxhGvw9.js → vue-ui-annotator-CzHa2GlG.js} +2 -2
- package/dist/{vue-ui-bullet-xsVzeIGY.js → vue-ui-bullet-BEzXYrWC.js} +7 -7
- package/dist/{vue-ui-candlestick-DT3NblSj.js → vue-ui-candlestick-DSaFw3wl.js} +12 -10
- package/dist/{vue-ui-carousel-table-Bj6Blcps.js → vue-ui-carousel-table-D1CLPWmk.js} +4 -4
- package/dist/{vue-ui-chestnut-Bzi7pvOQ.js → vue-ui-chestnut-D3FNLdep.js} +5 -5
- package/dist/{vue-ui-chord-SN0lkfJI.js → vue-ui-chord-CFT-LcE4.js} +8 -8
- package/dist/{vue-ui-circle-pack-BwH7JGeH.js → vue-ui-circle-pack-Bl_cyLTg.js} +6 -6
- package/dist/{vue-ui-cursor-BLHqKKuQ.js → vue-ui-cursor-C2XYAY0n.js} +2 -2
- package/dist/{vue-ui-dashboard-C5ye3aO2.js → vue-ui-dashboard-4ZwAsn1N.js} +62 -62
- package/dist/{vue-ui-digits-fWW_yCiA.js → vue-ui-digits-Da5mTaOQ.js} +2 -2
- package/dist/{vue-ui-donut-VI_2cil0.js → vue-ui-donut-B6QlrBEH.js} +13 -11
- package/dist/{vue-ui-donut-evolution-BMDGbLPk.js → vue-ui-donut-evolution-Tv7oj7TE.js} +8 -8
- package/dist/{vue-ui-dumbbell-DYVwpQdP.js → vue-ui-dumbbell-LNnnDec4.js} +7 -7
- package/dist/{vue-ui-flow-BP3lwS2c.js → vue-ui-flow-B618L2Da.js} +12 -10
- package/dist/{vue-ui-funnel-C2gKEJrg.js → vue-ui-funnel-DS_tcSnW.js} +6 -6
- package/dist/{vue-ui-galaxy-CHu9EpUI.js → vue-ui-galaxy-C5qk-fEV.js} +51 -49
- package/dist/{vue-ui-gauge-DXoBEk4e.js → vue-ui-gauge-C33XPj6b.js} +6 -6
- package/dist/{vue-ui-gizmo-DpWaeVxb.js → vue-ui-gizmo-Cr6zUxnq.js} +3 -3
- package/dist/{vue-ui-heatmap-C6Xh5fmd.js → vue-ui-heatmap-ksiw1nTI.js} +32 -30
- package/dist/{vue-ui-history-plot-CH4RJSqN.js → vue-ui-history-plot-DM_vTyiY.js} +12 -10
- package/dist/{vue-ui-kpi-DJrypxm5.js → vue-ui-kpi-BgFQSUVT.js} +3 -3
- package/dist/{vue-ui-mini-loader-BMaEgYp1.js → vue-ui-mini-loader-BEpehl5X.js} +2 -2
- package/dist/{vue-ui-molecule-om_udncc.js → vue-ui-molecule-BIQFbPof.js} +35 -33
- package/dist/{vue-ui-mood-radar-BOd7BMa4.js → vue-ui-mood-radar-RShxk3Bz.js} +7 -7
- package/dist/{vue-ui-nested-donuts-B6krlgFx.js → vue-ui-nested-donuts-dMBxBBnZ.js} +62 -60
- package/dist/{vue-ui-onion-COQ1H7Ft.js → vue-ui-onion-ZVZ6wpNM.js} +46 -44
- package/dist/{vue-ui-parallel-coordinate-plot-CEKsfccd.js → vue-ui-parallel-coordinate-plot-1a3BGVsh.js} +69 -67
- package/dist/{vue-ui-quadrant-C88vkF8q.js → vue-ui-quadrant-XCnxKrJd.js} +59 -57
- package/dist/{vue-ui-quick-chart-CG2lY19C.js → vue-ui-quick-chart-BQJqdHxB.js} +11 -9
- package/dist/{vue-ui-radar-CUAYzxM4.js → vue-ui-radar-CeXlq2A-.js} +12 -10
- package/dist/{vue-ui-rating-DT0BLQ1G.js → vue-ui-rating-DTq-mZyU.js} +2 -2
- package/dist/{vue-ui-relation-circle-Ek_uAHpF.js → vue-ui-relation-circle-k8viefM-.js} +6 -6
- package/dist/{vue-ui-ridgeline-73OXSMcJ.js → vue-ui-ridgeline-B8oddwmZ.js} +8 -8
- package/dist/{vue-ui-rings-D1gK_JVs.js → vue-ui-rings-9XT1ePuY.js} +13 -11
- package/dist/{vue-ui-scatter-DCy4Vb84.js → vue-ui-scatter-oM-LVerf.js} +72 -70
- package/dist/{vue-ui-skeleton-DIb-2uan.js → vue-ui-skeleton-DDLBx4bb.js} +3 -3
- package/dist/{vue-ui-smiley-DiIu0kjQ.js → vue-ui-smiley-D5ybBkdY.js} +2 -2
- package/dist/{vue-ui-spark-trend-BPczzwfH.js → vue-ui-spark-trend-Tl-sOjqa.js} +3 -3
- package/dist/{vue-ui-sparkbar-B4LpToMU.js → vue-ui-sparkbar-Ce6dYcF4.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D9KwmalJ.js → vue-ui-sparkgauge-DRHrbpSl.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-h7qmzAe1.js → vue-ui-sparkhistogram-DBtPWFim.js} +4 -4
- package/dist/{vue-ui-sparkline-DYYy38Fu.js → vue-ui-sparkline-DcF2ugGh.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DIIyxzKM.js → vue-ui-sparkstackbar-C01iI0y3.js} +55 -53
- package/dist/{vue-ui-stackbar-BhPcAjIe.js → vue-ui-stackbar-BeCCgw_v.js} +196 -194
- package/dist/{vue-ui-strip-plot-9wxxXL3R.js → vue-ui-strip-plot-CsK2a1mH.js} +30 -28
- package/dist/{vue-ui-table-FAEiGW1W.js → vue-ui-table-COjBJDmq.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Cwbw5Rqy.js → vue-ui-table-heatmap-DfxMcAr9.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnZ44NiP.js → vue-ui-table-sparkline-0BC6BxKt.js} +4 -4
- package/dist/{vue-ui-thermometer-CHFtR_VC.js → vue-ui-thermometer-Bf2_qGBi.js} +6 -6
- package/dist/{vue-ui-timer-DWzZTLxC.js → vue-ui-timer-BC9tH4qB.js} +5 -5
- package/dist/{vue-ui-tiremarks-DTS-ZQRp.js → vue-ui-tiremarks-ya8ABi9I.js} +6 -6
- package/dist/{vue-ui-treemap-B5OdGgS-.js → vue-ui-treemap-BSHptMc8.js} +13 -11
- package/dist/{vue-ui-vertical-bar-CcjDg9Bc.js → vue-ui-vertical-bar-B_Oa-v87.js} +41 -39
- package/dist/{vue-ui-waffle-C1XVqncx.js → vue-ui-waffle-DHB8v3nh.js} +13 -11
- package/dist/{vue-ui-wheel-DEIJPpR4.js → vue-ui-wheel-Bi28_KVB.js} +6 -6
- package/dist/{vue-ui-word-cloud-CUzU4JpO.js → vue-ui-word-cloud-BcQ2cfcu.js} +12 -10
- package/dist/{vue-ui-world-D0pONCg9.js → vue-ui-world-aLL9NUDQ.js} +11 -9
- package/dist/vue-ui-xy-BxonzF88.js +3710 -0
- package/dist/{vue-ui-xy-canvas-Do-IpmFr.js → vue-ui-xy-canvas-sUpmc7gl.js} +30 -28
- package/package.json +1 -1
- package/dist/Slicer-DYffOkSj.js +0 -577
- package/dist/vue-ui-xy-EoeoBLu2.js +0 -3027
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as U, computed as C, ref as h, toRefs as Wt, watch as re, onMounted as qt, shallowRef as ct, onBeforeUnmount as Ht, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as G, createCommentVNode as $, createVNode as ht, createSlots as Jt, withCtx as x, renderSlot as _, normalizeProps as H, guardReactiveProps as J, createElementVNode as y, Fragment as A, renderList as T, toDisplayString as
|
|
2
|
-
import { u as Qt, c as Zt, A as jt, t as ea, p as
|
|
1
|
+
import { defineAsyncComponent as U, computed as C, ref as h, toRefs as Wt, watch as re, onMounted as qt, shallowRef as ct, onBeforeUnmount as Ht, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as G, createCommentVNode as $, createVNode as ht, createSlots as Jt, withCtx as x, renderSlot as _, normalizeProps as H, guardReactiveProps as J, createElementVNode as y, Fragment as A, renderList as T, toDisplayString as O, withDirectives as ft, vShow as yt, createTextVNode as Kt, nextTick as pt } from "vue";
|
|
2
|
+
import { u as Qt, c as Zt, A as jt, t as ea, p as Se, a as ta, C as Ie, o as aa, e as K, b as la, G as M, d as oa, m as Ve, f as F, X as sa, s as ua, L as bt, k as Pe, n as Q, i as j, x as gt, q as na, r as ra, y as ia, T as mt, v as De } from "./index-DB4XIP_N.js";
|
|
3
3
|
import { t as da, u as va } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as wt } from "./useNestedProp-
|
|
5
|
-
import { u as ca } from "./usePrinter-
|
|
4
|
+
import { u as wt } from "./useNestedProp-iTa19l34.js";
|
|
5
|
+
import { u as ca } from "./usePrinter-id381vkp.js";
|
|
6
6
|
import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ya from "./Title-
|
|
9
|
-
import pa from "./Legend-
|
|
10
|
-
import ba from "./img-
|
|
8
|
+
import ya from "./Title-B5lsq0cx.js";
|
|
9
|
+
import pa from "./Legend-DlUDcF1t.js";
|
|
10
|
+
import ba from "./img-CWXYkVMQ.js";
|
|
11
11
|
import { u as ga, B as ma } from "./BaseScanner-DIK2NTdp.js";
|
|
12
12
|
import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["id"], xa = ["offset", "stop-color"], _a = ["offset", "stop-opacity"], Aa = ["id"], Ta = ["id"], Na = ["id"],
|
|
13
|
+
const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["id"], xa = ["offset", "stop-color"], _a = ["offset", "stop-opacity"], Aa = ["id"], Ta = ["id"], Na = ["id"], Fa = ["flood-color"], Oa = ["id", "d"], Sa = ["d", "fill", "stroke", "stroke-width", "filter"], Ia = ["d", "fill", "stroke", "stroke-width"], Va = { key: 1 }, Pa = ["d", "fill"], Da = { key: 2 }, za = ["font-size", "font-weight", "fill", "dy"], Ma = ["href"], Ea = ["x", "y", "font-size", "font-weight", "fill"], Ba = { key: 3 }, Ra = ["filter"], Ua = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ga = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ya = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xa = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Wa = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, qa = {
|
|
@@ -34,9 +34,9 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
36
|
setup($t, { expose: kt, emit: Lt }) {
|
|
37
|
-
const Ct = U(() => import("./vue-ui-accordion-
|
|
38
|
-
U(() => import("./vue-ui-skeleton-
|
|
39
|
-
const Tt = U(() => import("./Tooltip-
|
|
37
|
+
const Ct = U(() => import("./vue-ui-accordion-DAT3uTMD.js")), xt = U(() => import("./DataTable-Cm1oLidx.js")), _t = U(() => import("./PackageVersion-DZMJZGOu.js")), At = U(() => import("./PenAndPaper-BDNLADWh.js"));
|
|
38
|
+
U(() => import("./vue-ui-skeleton-DDLBx4bb.js"));
|
|
39
|
+
const Tt = U(() => import("./Tooltip-CrAURNKT.js")), Nt = U(() => import("./UserOptions-CksX2mn0.js")), { vue_ui_nested_donuts: Ft } = Qt(), g = $t, de = C({
|
|
40
40
|
get() {
|
|
41
41
|
return !!g.dataset && g.dataset.length;
|
|
42
42
|
},
|
|
@@ -108,7 +108,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
108
108
|
function ge() {
|
|
109
109
|
const a = wt({
|
|
110
110
|
userConfig: g.config,
|
|
111
|
-
defaultConfig:
|
|
111
|
+
defaultConfig: Ft
|
|
112
112
|
});
|
|
113
113
|
let s = {};
|
|
114
114
|
return a.theme ? s = {
|
|
@@ -116,8 +116,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
116
116
|
userConfig: ta.vue_ui_nested_donuts[a.theme] || g.config,
|
|
117
117
|
defaultConfig: a
|
|
118
118
|
}),
|
|
119
|
-
customPalette: ea[a.theme] ||
|
|
120
|
-
} : s = a, g.config &&
|
|
119
|
+
customPalette: ea[a.theme] || Se
|
|
120
|
+
} : s = a, g.config && Ie(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Ie(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Ie(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
121
121
|
}
|
|
122
122
|
re(
|
|
123
123
|
() => g.config,
|
|
@@ -136,7 +136,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
136
136
|
left: o
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
function
|
|
139
|
+
function Ot(a, s = 1e3, l = 50) {
|
|
140
140
|
return new Promise((o) => {
|
|
141
141
|
const t = a.length;
|
|
142
142
|
B.value = Array(t).fill(0), Z.value = [];
|
|
@@ -151,9 +151,9 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
151
151
|
let Ae = 0;
|
|
152
152
|
g.dataset.forEach((ne, Te) => {
|
|
153
153
|
const Ut = De(ne.series.reduce(
|
|
154
|
-
(
|
|
154
|
+
(Fe, Oe) => Fe + De(M(Oe.values).reduce((Yt, Xt) => Yt + Xt, 0)),
|
|
155
155
|
0
|
|
156
|
-
)), Gt = De(B.value.slice(Ae, Ae + ne.series.length).reduce((
|
|
156
|
+
)), Gt = De(B.value.slice(Ae, Ae + ne.series.length).reduce((Fe, Oe) => Fe + Oe, 0)), Ne = Ut - Gt;
|
|
157
157
|
Ne > Number.MIN_VALUE && ue.push({
|
|
158
158
|
name: "__ghost__",
|
|
159
159
|
arcOf: ne.name,
|
|
@@ -197,7 +197,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
197
197
|
absoluteValues: [],
|
|
198
198
|
ghost: !0
|
|
199
199
|
};
|
|
200
|
-
}), await pt(),
|
|
200
|
+
}), await pt(), Ot(
|
|
201
201
|
s,
|
|
202
202
|
e.value.startAnimation.durationMs,
|
|
203
203
|
e.value.startAnimation.staggerMs
|
|
@@ -240,7 +240,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
240
240
|
elementId: `nested_donuts_${p.value}`,
|
|
241
241
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
242
242
|
options: e.value.userOptions.print
|
|
243
|
-
}),
|
|
243
|
+
}), St = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), It = C(() => la(e.value.customPalette)), k = h({
|
|
244
244
|
dataLabels: {
|
|
245
245
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
246
246
|
},
|
|
@@ -278,7 +278,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
278
278
|
}
|
|
279
279
|
requestAnimationFrame(f);
|
|
280
280
|
}
|
|
281
|
-
const L = h([]),
|
|
281
|
+
const L = h([]), S = C(() => {
|
|
282
282
|
ye.value, R.value.forEach((s, l) => {
|
|
283
283
|
[null, void 0].includes(s.name) && K({
|
|
284
284
|
componentName: "VueUiNestedDonuts",
|
|
@@ -330,7 +330,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
330
330
|
id: `${p.value}_${l}_${t}`,
|
|
331
331
|
seriesIndex: t,
|
|
332
332
|
datasetIndex: l,
|
|
333
|
-
color: oa(o.color) ||
|
|
333
|
+
color: oa(o.color) || It.value[t] || Se[t % Se.length],
|
|
334
334
|
value: E.value ? B.value[a++] ?? 0 : u,
|
|
335
335
|
absoluteValues: o.values || []
|
|
336
336
|
};
|
|
@@ -340,7 +340,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
340
340
|
re(() => g.dataset, (a) => {
|
|
341
341
|
Array.isArray(a) && a.length > 0 && (pe.value = !1);
|
|
342
342
|
}, { immediate: !0 });
|
|
343
|
-
const
|
|
343
|
+
const I = C(() => Math.min(c.value.height, c.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), lt = C(() => [...S.value].map((a, s) => {
|
|
344
344
|
const l = a.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
345
345
|
return {
|
|
346
346
|
...a,
|
|
@@ -372,9 +372,9 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
372
372
|
}))
|
|
373
373
|
).find((d) => d.id === a.id);
|
|
374
374
|
if (!s) return;
|
|
375
|
-
const l =
|
|
375
|
+
const l = S.value.flatMap((d) => d.series).find((d) => d.id === a.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === a.id);
|
|
376
376
|
let u = o ? o.value : 0;
|
|
377
|
-
const v =
|
|
377
|
+
const v = S.value.find(
|
|
378
378
|
(d) => d.id === s.arcOfId
|
|
379
379
|
);
|
|
380
380
|
if (!v) return;
|
|
@@ -414,8 +414,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
414
414
|
series: d.series.map((b) => b.id === a.id ? { ...b, value: 0 } : b)
|
|
415
415
|
})), L.value.push(a.id)));
|
|
416
416
|
}
|
|
417
|
-
const te = C(() =>
|
|
418
|
-
const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o =
|
|
417
|
+
const te = C(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), ot = C(() => m.value.map((a, s) => I.value - s * I.value / S.value.length)), q = C(() => m.value.map((a, s) => {
|
|
418
|
+
const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = I.value - s * I.value / m.value.length, t = E.value ? Z.value.find((w) => w.datasetIndex === s) : null, u = [...a.series, ...t ? [t] : []].map((w) => ({
|
|
419
419
|
...w,
|
|
420
420
|
value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
|
|
421
421
|
})), v = Ve(
|
|
@@ -455,22 +455,22 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
455
455
|
te.value
|
|
456
456
|
)
|
|
457
457
|
};
|
|
458
|
-
})), st = C(() => [...
|
|
459
|
-
const l = s *
|
|
458
|
+
})), st = C(() => [...S.value].map((a, s) => {
|
|
459
|
+
const l = s * I.value / S.value.length;
|
|
460
460
|
return {
|
|
461
461
|
sizeRatio: l,
|
|
462
462
|
donut: Ve(
|
|
463
463
|
{ series: [{ value: 1 }] },
|
|
464
464
|
c.value.width / 2,
|
|
465
465
|
c.value.height / 2,
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
I.value - l,
|
|
467
|
+
I.value - l,
|
|
468
468
|
1.99999,
|
|
469
469
|
2,
|
|
470
470
|
1,
|
|
471
471
|
360,
|
|
472
472
|
105.25,
|
|
473
|
-
|
|
473
|
+
I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
474
474
|
)[0]
|
|
475
475
|
};
|
|
476
476
|
})), ut = h(null), ae = h(null), le = h(null), we = h(null);
|
|
@@ -519,7 +519,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
519
519
|
${e.value.style.chart.tooltip.showValue ? `<b>${j(
|
|
520
520
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
521
521
|
a.value,
|
|
522
|
-
|
|
522
|
+
F({
|
|
523
523
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
524
524
|
v: a.value,
|
|
525
525
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -528,7 +528,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
528
528
|
{ datapoint: a, seriesIndex: l }
|
|
529
529
|
)}
|
|
530
530
|
</b>` : ""}
|
|
531
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
531
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${F({
|
|
532
532
|
v: v.proportion * 100,
|
|
533
533
|
s: "%",
|
|
534
534
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -541,18 +541,18 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
541
541
|
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.arcOf ?? ""} - ${a.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${j(
|
|
542
542
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
543
543
|
a.value,
|
|
544
|
-
|
|
544
|
+
F({
|
|
545
545
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
546
546
|
v: a.value,
|
|
547
547
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
548
548
|
r: e.value.style.chart.tooltip.roundingValue
|
|
549
549
|
}),
|
|
550
550
|
{ datapoint: a, seriesIndex: l }
|
|
551
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
551
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${F({
|
|
552
552
|
v: a.proportion * 100,
|
|
553
553
|
s: "%",
|
|
554
554
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
555
|
-
})})</span></div>` : t += `<b>${
|
|
555
|
+
})})</span></div>` : t += `<b>${F({
|
|
556
556
|
v: a.proportion * 100,
|
|
557
557
|
s: "%",
|
|
558
558
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -572,7 +572,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
572
572
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
|
|
573
573
|
return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${p.value})`;
|
|
574
574
|
}
|
|
575
|
-
const ke = C(() =>
|
|
575
|
+
const ke = C(() => S.value.map((a, s) => {
|
|
576
576
|
const l = a.series.filter(
|
|
577
577
|
(t) => !L.value.includes(t.id)
|
|
578
578
|
), o = E.value ? l.map((t) => {
|
|
@@ -643,7 +643,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
643
643
|
e.value.table.columnNames.value,
|
|
644
644
|
e.value.table.columnNames.percentage
|
|
645
645
|
], s = D.value.head.map((t, u) => {
|
|
646
|
-
const v =
|
|
646
|
+
const v = F({
|
|
647
647
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
648
648
|
v: D.value.body[u],
|
|
649
649
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -655,7 +655,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
655
655
|
name: t.name
|
|
656
656
|
},
|
|
657
657
|
v,
|
|
658
|
-
isNaN(D.value.body[u] / t.total) ? "-" :
|
|
658
|
+
isNaN(D.value.body[u] / t.total) ? "-" : F({
|
|
659
659
|
v: D.value.body[u] / t.total * 100,
|
|
660
660
|
s: "%",
|
|
661
661
|
r: e.value.table.td.roundingPercentage
|
|
@@ -686,7 +686,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
686
686
|
};
|
|
687
687
|
});
|
|
688
688
|
function Et() {
|
|
689
|
-
return
|
|
689
|
+
return S.value;
|
|
690
690
|
}
|
|
691
691
|
function it() {
|
|
692
692
|
k.value.showTable = !k.value.showTable;
|
|
@@ -748,7 +748,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
748
748
|
active: se.value,
|
|
749
749
|
onClose: Le
|
|
750
750
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
|
|
751
|
-
|
|
751
|
+
St.value ? (n(), r("div", {
|
|
752
752
|
key: 1,
|
|
753
753
|
ref_key: "noTitle",
|
|
754
754
|
ref: Be,
|
|
@@ -958,7 +958,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
958
958
|
stdDeviation: "10",
|
|
959
959
|
"flood-opacity": "0.5",
|
|
960
960
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
961
|
-
}, null, 8,
|
|
961
|
+
}, null, 8, Fa)
|
|
962
962
|
], 8, Na)
|
|
963
963
|
]),
|
|
964
964
|
y("defs", null, [
|
|
@@ -967,7 +967,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
967
967
|
id: `path-full-${o}-${p.value}`,
|
|
968
968
|
d: l.fullCirclePath,
|
|
969
969
|
fill: "none"
|
|
970
|
-
}, null, 8,
|
|
970
|
+
}, null, 8, Oa))), 128))
|
|
971
971
|
]),
|
|
972
972
|
(n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
|
|
973
973
|
l.hasData ? (n(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
|
|
@@ -978,7 +978,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
978
978
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
979
979
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
980
980
|
filter: nt(t, u)
|
|
981
|
-
}, null, 8,
|
|
981
|
+
}, null, 8, Sa)
|
|
982
982
|
]))), 256)) : (n(!0), r(A, { key: 1 }, T(l.skeleton, (t, u) => (n(), r("g", null, [
|
|
983
983
|
y("path", {
|
|
984
984
|
class: "vue-ui-donut-arc-path",
|
|
@@ -986,7 +986,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
986
986
|
fill: t.color,
|
|
987
987
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
988
988
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
989
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, Ia)
|
|
990
990
|
]))), 256))
|
|
991
991
|
]))), 256)),
|
|
992
992
|
e.value.style.chart.useGradient ? (n(), r("g", Va, [
|
|
@@ -1018,7 +1018,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1018
1018
|
method: "align",
|
|
1019
1019
|
spacing: "auto",
|
|
1020
1020
|
side: "right"
|
|
1021
|
-
},
|
|
1021
|
+
}, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
|
|
1022
1022
|
source: l.name,
|
|
1023
1023
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1024
1024
|
}) : l.name), 9, Ma)
|
|
@@ -1035,7 +1035,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1035
1035
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1036
1036
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1037
1037
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1038
|
-
},
|
|
1038
|
+
}, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
|
|
1039
1039
|
source: l.name,
|
|
1040
1040
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1041
1041
|
}) : l.name), 11, Ea)) : $("", !0)
|
|
@@ -1064,7 +1064,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1064
1064
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1065
1065
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1066
1066
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1067
|
-
},
|
|
1067
|
+
}, O(i(F)({
|
|
1068
1068
|
v: t.proportion * 100,
|
|
1069
1069
|
s: "%",
|
|
1070
1070
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
@@ -1091,10 +1091,10 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1091
1091
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1092
1092
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1093
1093
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1094
|
-
}, " (" +
|
|
1094
|
+
}, " (" + O(i(j)(
|
|
1095
1095
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1096
1096
|
t.value,
|
|
1097
|
-
i(
|
|
1097
|
+
i(F)({
|
|
1098
1098
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1099
1099
|
v: t.value,
|
|
1100
1100
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1124,10 +1124,10 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1124
1124
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1125
1125
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1126
1126
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1127
|
-
},
|
|
1127
|
+
}, O(i(j)(
|
|
1128
1128
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1129
1129
|
t.value,
|
|
1130
|
-
i(
|
|
1130
|
+
i(F)({
|
|
1131
1131
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1132
1132
|
v: t.value,
|
|
1133
1133
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1172,7 +1172,9 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1172
1172
|
parent: V.value,
|
|
1173
1173
|
content: ce.value,
|
|
1174
1174
|
isFullscreen: Y.value,
|
|
1175
|
-
isCustom: i(gt)(e.value.style.chart.tooltip.customFormat)
|
|
1175
|
+
isCustom: i(gt)(e.value.style.chart.tooltip.customFormat),
|
|
1176
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1177
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1176
1178
|
}, {
|
|
1177
1179
|
"tooltip-before": x(() => [
|
|
1178
1180
|
_(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
|
|
@@ -1181,7 +1183,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1181
1183
|
_(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
|
|
1182
1184
|
]),
|
|
1183
1185
|
_: 3
|
|
1184
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1186
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1185
1187
|
e.value.style.chart.legend.show ? (n(), r("div", {
|
|
1186
1188
|
key: 5,
|
|
1187
1189
|
ref_key: "chartLegend",
|
|
@@ -1195,23 +1197,23 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1195
1197
|
onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
|
|
1196
1198
|
}, {
|
|
1197
1199
|
legendTitle: x(({ titleSet: t }) => [
|
|
1198
|
-
t[0] && t[0].arcOf ? (n(), r("div", qa,
|
|
1200
|
+
t[0] && t[0].arcOf ? (n(), r("div", qa, O(t[0].arcOf), 1)) : $("", !0)
|
|
1199
1201
|
]),
|
|
1200
1202
|
item: x(({ legend: t, index: u }) => [
|
|
1201
1203
|
y("div", {
|
|
1202
1204
|
onClick: (v) => me(t),
|
|
1203
1205
|
style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1204
|
-
},
|
|
1206
|
+
}, O(t.name) + O(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + O(e.value.style.chart.legend.showValue ? i(j)(
|
|
1205
1207
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1206
1208
|
t.value,
|
|
1207
|
-
i(
|
|
1209
|
+
i(F)({
|
|
1208
1210
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1209
1211
|
v: t.value,
|
|
1210
1212
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1211
1213
|
r: e.value.style.chart.legend.roundingValue
|
|
1212
1214
|
}),
|
|
1213
1215
|
{ datapoint: t, seriesIndex: u }
|
|
1214
|
-
) : "") + " " +
|
|
1216
|
+
) : "") + " " + O(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(F)({
|
|
1215
1217
|
v: t.value / t.total * 100,
|
|
1216
1218
|
s: "%",
|
|
1217
1219
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1268,7 +1270,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1268
1270
|
}, null, 8, Ja)
|
|
1269
1271
|
]),
|
|
1270
1272
|
td: x(({ td: l }) => [
|
|
1271
|
-
Kt(
|
|
1273
|
+
Kt(O(l.name || l), 1)
|
|
1272
1274
|
]),
|
|
1273
1275
|
_: 1
|
|
1274
1276
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -1278,7 +1280,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
|
|
|
1278
1280
|
i(ye) ? (n(), G(ma, { key: 9 })) : $("", !0)
|
|
1279
1281
|
], 46, $a));
|
|
1280
1282
|
}
|
|
1281
|
-
}, il = /* @__PURE__ */ wa(Ka, [["__scopeId", "data-v-
|
|
1283
|
+
}, il = /* @__PURE__ */ wa(Ka, [["__scopeId", "data-v-2b87514e"]]);
|
|
1282
1284
|
export {
|
|
1283
1285
|
il as default
|
|
1284
1286
|
};
|