vue-data-ui 3.1.4 → 3.1.5
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-COJRk3pc.js → Arrow-BFbcF5Sq.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-BQQGRQ2U.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-d1kmGapq.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-D6voeZvO.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-nPGcCxG_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BeStrsPr.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-C6tiapdo.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DBVq0fdK.js} +1 -1
- package/dist/Slicer-Duqm7KZK.js +597 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-wNGmXZSx.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-ydtId0LC.js} +1 -1
- package/dist/Tooltip-oeu9knGI.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-CnJxN2Vo.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-CMCYtLrX.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-Neec0VVb.js} +1 -1
- package/dist/{index-INqbM37s.js → index-BkfuZCRT.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-CpQ-dqJh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-BMzw9VUz.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-CEdg3j8S.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-D5B7a84o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-VPchh2r2.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-DVSBY9ou.js} +8 -8
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-BIuc6nds.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-C7xIcrvD.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-BApz1ho5.js} +52 -50
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-COtJRNLE.js} +40 -38
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-CFUA5ORH.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-DakytdCv.js} +68 -66
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-UmcKQftv.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-BZrmSVps.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-aHCc3r7L.js} +38 -36
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-CJ2Wdln9.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-Cgnooz7-.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-DF71ymNG.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-C4hKgrft.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-BItmKbvF.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-BIv2sfQA.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-CewP8k-W.js} +67 -65
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-CuwXMI3D.js} +11 -9
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
- package/package.json +1 -1
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed as _, ref as c, toRefs as tl, watch as te, onMounted as ll, shallowRef as gt, onBeforeUnmount as al, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ve, normalizeClass as M, createBlock as B, createCommentVNode as k, createElementVNode as p, createVNode as Ve, createSlots as mt, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as
|
|
2
|
-
import { u as nl, c as rl, t as il, a as dl, p as ze, b as vl, C as Me, o as cl, f as K, d as hl, G as E, e as fl, m as Be, i as
|
|
1
|
+
import { defineAsyncComponent as z, computed as _, ref as c, toRefs as tl, watch as te, onMounted as ll, shallowRef as gt, onBeforeUnmount as al, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ve, normalizeClass as M, createBlock as B, createCommentVNode as k, createElementVNode as p, createVNode as Ve, createSlots as mt, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as S, withDirectives as wt, vShow as kt, Teleport as ol, resolveDynamicComponent as sl, mergeProps as ul, createTextVNode as $t, nextTick as Ct } from "vue";
|
|
2
|
+
import { u as nl, c as rl, t as il, a as dl, p as ze, b as vl, C as Me, o as cl, f as K, d as hl, G as E, e as fl, m as Be, i as O, X as pl, s as yl, L as Lt, q as Ee, r as Q, k as le, y as _t, v as bl, w as gl, z as ml, T as xt, h as Re } from "./index-BkfuZCRT.js";
|
|
3
3
|
import { t as wl, u as kl } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as $l, B as Cl } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as Ll } from "./usePrinter-
|
|
6
|
-
import { u as At } from "./useNestedProp-
|
|
5
|
+
import { u as Ll } from "./usePrinter-CEdg3j8S.js";
|
|
6
|
+
import { u as At } from "./useNestedProp-BMzw9VUz.js";
|
|
7
7
|
import { u as _l } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Al from "./img-
|
|
10
|
-
import Tl from "./Title-
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
9
|
+
import Al from "./img-Neec0VVb.js";
|
|
10
|
+
import Tl from "./Title-ydtId0LC.js";
|
|
11
|
+
import Fl from "./Legend-nPGcCxG_.js";
|
|
12
|
+
import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Ol = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "height"], Pl = ["id"], Vl = ["offset", "stop-color"], zl = ["offset", "stop-opacity"], Ml = ["id"], Bl = ["id"], El = ["id"], Rl = ["flood-color"], Ul = ["id", "d"], Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Yl = ["d", "fill", "stroke", "stroke-width"], Wl = { key: 1 }, Xl = ["d", "fill"], ql = { key: 2 }, Hl = ["font-size", "font-weight", "fill", "dy"], Jl = ["href"], Kl = ["x", "y", "font-size", "font-weight", "fill"], Ql = { key: 3 }, Zl = ["filter"], jl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ea = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ta = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], la = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], aa = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, oa = ["id"], sa = {
|
|
@@ -33,8 +33,8 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(Tt, { expose:
|
|
37
|
-
const
|
|
36
|
+
setup(Tt, { expose: Ft, emit: St }) {
|
|
37
|
+
const Ot = z(() => import("./Tooltip-oeu9knGI.js")), Nt = z(() => import("./BaseIcon-BQQGRQ2U.js")), It = z(() => import("./vue-ui-accordion-DFxAHGEZ.js")), Dt = z(() => import("./DataTable-D6voeZvO.js")), Pt = z(() => import("./UserOptions-CnJxN2Vo.js")), Vt = z(() => import("./PenAndPaper-C6tiapdo.js")), zt = z(() => import("./PackageVersion-BeStrsPr.js")), Mt = z(() => import("./BaseDraggableDialog-BO4B1Kwa.js")), { vue_ui_nested_donuts: Bt } = nl(), g = Tt, ce = _({
|
|
38
38
|
get() {
|
|
39
39
|
return !!g.dataset && g.dataset.length;
|
|
40
40
|
},
|
|
@@ -143,29 +143,29 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
143
143
|
setTimeout(() => {
|
|
144
144
|
const w = performance.now();
|
|
145
145
|
function d(b) {
|
|
146
|
-
const
|
|
147
|
-
U.value[y] =
|
|
146
|
+
const F = Math.min((b - w) / s, 1), Fe = xt(F), Se = v * Fe;
|
|
147
|
+
U.value[y] = Se, U.value = [...U.value];
|
|
148
148
|
const ie = [];
|
|
149
|
-
let
|
|
150
|
-
g.dataset.forEach((de,
|
|
149
|
+
let Oe = 0;
|
|
150
|
+
g.dataset.forEach((de, Ne) => {
|
|
151
151
|
const Qt = Re(de.series.reduce(
|
|
152
152
|
(De, Pe) => De + Re(E(Pe.values).reduce((jt, el) => jt + el, 0)),
|
|
153
153
|
0
|
|
154
|
-
)), Zt = Re(U.value.slice(
|
|
154
|
+
)), Zt = Re(U.value.slice(Oe, Oe + de.series.length).reduce((De, Pe) => De + Pe, 0)), Ie = Qt - Zt;
|
|
155
155
|
Ie > Number.MIN_VALUE && ie.push({
|
|
156
156
|
name: "__ghost__",
|
|
157
157
|
arcOf: de.name,
|
|
158
|
-
arcOfId: `${f.value}_${
|
|
159
|
-
id: `ghost_${f.value}_${
|
|
158
|
+
arcOfId: `${f.value}_${Ne}`,
|
|
159
|
+
id: `ghost_${f.value}_${Ne}`,
|
|
160
160
|
seriesIndex: -1,
|
|
161
|
-
datasetIndex:
|
|
161
|
+
datasetIndex: Ne,
|
|
162
162
|
color: "transparent",
|
|
163
163
|
value: Ie,
|
|
164
164
|
fullValue: Ie,
|
|
165
165
|
absoluteValues: [],
|
|
166
166
|
ghost: !0
|
|
167
|
-
}),
|
|
168
|
-
}), Z.value = ie,
|
|
167
|
+
}), Oe += de.series.length;
|
|
168
|
+
}), Z.value = ie, F < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
|
|
169
169
|
}
|
|
170
170
|
requestAnimationFrame(d);
|
|
171
171
|
}, y * a);
|
|
@@ -257,7 +257,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
257
257
|
const h = c({
|
|
258
258
|
width: e.value.style.chart.width,
|
|
259
259
|
height: e.value.style.chart.height
|
|
260
|
-
}), nt =
|
|
260
|
+
}), nt = St;
|
|
261
261
|
function Gt({ datapoint: l, index: s, seriesIndex: a }) {
|
|
262
262
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a }), nt("selectDatapoint", { datapoint: l, index: s });
|
|
263
263
|
}
|
|
@@ -271,12 +271,12 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
271
271
|
}) {
|
|
272
272
|
const v = performance.now();
|
|
273
273
|
function y(w) {
|
|
274
|
-
const d = Math.min((w - v) / a, 1), b = n(d),
|
|
275
|
-
o(
|
|
274
|
+
const d = Math.min((w - v) / a, 1), b = n(d), F = l + (s - l) * b;
|
|
275
|
+
o(F, d), d < 1 ? requestAnimationFrame(y) : (o(s, 1), t && t());
|
|
276
276
|
}
|
|
277
277
|
requestAnimationFrame(y);
|
|
278
278
|
}
|
|
279
|
-
const L = c([]),
|
|
279
|
+
const L = c([]), N = _(() => {
|
|
280
280
|
ge.value, Y.value.forEach((s, a) => {
|
|
281
281
|
[null, void 0].includes(s.name) && K({
|
|
282
282
|
componentName: "VueUiNestedDonuts",
|
|
@@ -338,7 +338,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
338
338
|
te(() => g.dataset, (l) => {
|
|
339
339
|
Array.isArray(l) && l.length > 0 && (me.value = !1);
|
|
340
340
|
}, { immediate: !0 });
|
|
341
|
-
const D = _(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = _(() => [...
|
|
341
|
+
const D = _(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = _(() => [...N.value].map((l, s) => {
|
|
342
342
|
const a = l.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
343
343
|
return {
|
|
344
344
|
...l,
|
|
@@ -363,16 +363,16 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
363
363
|
function $e(l) {
|
|
364
364
|
nt("selectLegend", l);
|
|
365
365
|
const s = g.dataset.flatMap(
|
|
366
|
-
(d, b) => d.series.map((
|
|
367
|
-
value: E(
|
|
368
|
-
id: `${f.value}_${b}_${
|
|
366
|
+
(d, b) => d.series.map((F, Fe) => ({
|
|
367
|
+
value: E(F.values).reduce((Se, ie) => Se + ie, 0),
|
|
368
|
+
id: `${f.value}_${b}_${Fe}`,
|
|
369
369
|
arcOfId: `${f.value}_${b}`
|
|
370
370
|
}))
|
|
371
371
|
).find((d) => d.id === l.id);
|
|
372
372
|
if (!s) return;
|
|
373
|
-
const a =
|
|
373
|
+
const a = N.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === l.id);
|
|
374
374
|
let n = o ? o.value : 0;
|
|
375
|
-
const v =
|
|
375
|
+
const v = N.value.find(
|
|
376
376
|
(d) => d.id === s.arcOfId
|
|
377
377
|
);
|
|
378
378
|
if (!v) return;
|
|
@@ -388,7 +388,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
388
388
|
onUpdate: (d) => {
|
|
389
389
|
m.value = m.value.map((b) => ({
|
|
390
390
|
...b,
|
|
391
|
-
series: b.series.map((
|
|
391
|
+
series: b.series.map((F) => F.id === l.id ? { ...F, value: d } : F)
|
|
392
392
|
}));
|
|
393
393
|
}
|
|
394
394
|
}) : m.value = m.value.map((d) => ({
|
|
@@ -401,7 +401,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
401
401
|
onUpdate: (d) => {
|
|
402
402
|
m.value = m.value.map((b) => ({
|
|
403
403
|
...b,
|
|
404
|
-
series: b.series.map((
|
|
404
|
+
series: b.series.map((F) => F.id === l.id ? { ...F, value: d } : F)
|
|
405
405
|
}));
|
|
406
406
|
},
|
|
407
407
|
onDone: () => {
|
|
@@ -412,7 +412,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
412
412
|
series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
|
|
413
413
|
})), L.value.push(l.id)));
|
|
414
414
|
}
|
|
415
|
-
const oe = _(() => D.value /
|
|
415
|
+
const oe = _(() => D.value / N.value.length * e.value.style.chart.layout.donut.spacingRatio), dt = _(() => m.value.map((l, s) => D.value - s * D.value / N.value.length)), q = _(() => m.value.map((l, s) => {
|
|
416
416
|
const a = Math.abs(l.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = D.value - s * D.value / m.value.length, t = R.value ? Z.value.find((w) => w.datasetIndex === s) : null, n = [...l.series, ...t ? [t] : []].map((w) => ({
|
|
417
417
|
...w,
|
|
418
418
|
value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
|
|
@@ -453,8 +453,8 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
453
453
|
oe.value
|
|
454
454
|
)
|
|
455
455
|
};
|
|
456
|
-
})), vt = _(() => [...
|
|
457
|
-
const a = s * D.value /
|
|
456
|
+
})), vt = _(() => [...N.value].map((l, s) => {
|
|
457
|
+
const a = s * D.value / N.value.length;
|
|
458
458
|
return {
|
|
459
459
|
sizeRatio: a,
|
|
460
460
|
donut: Be(
|
|
@@ -468,7 +468,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
468
468
|
1,
|
|
469
469
|
360,
|
|
470
470
|
105.25,
|
|
471
|
-
D.value /
|
|
471
|
+
D.value / N.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
472
472
|
)[0]
|
|
473
473
|
};
|
|
474
474
|
})), ct = c(null), se = c(null), ue = c(null), Ce = c(null);
|
|
@@ -517,7 +517,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
517
517
|
${e.value.style.chart.tooltip.showValue ? `<b>${le(
|
|
518
518
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
519
519
|
l.value,
|
|
520
|
-
|
|
520
|
+
O({
|
|
521
521
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
522
522
|
v: l.value,
|
|
523
523
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -526,7 +526,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
526
526
|
{ datapoint: l, seriesIndex: a }
|
|
527
527
|
)}
|
|
528
528
|
</b>` : ""}
|
|
529
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
529
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${O({
|
|
530
530
|
v: v.proportion * 100,
|
|
531
531
|
s: "%",
|
|
532
532
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -539,18 +539,18 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
539
539
|
t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.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="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${le(
|
|
540
540
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
541
541
|
l.value,
|
|
542
|
-
|
|
542
|
+
O({
|
|
543
543
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
544
544
|
v: l.value,
|
|
545
545
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
546
546
|
r: e.value.style.chart.tooltip.roundingValue
|
|
547
547
|
}),
|
|
548
548
|
{ datapoint: l, seriesIndex: a }
|
|
549
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
549
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
|
|
550
550
|
v: l.proportion * 100,
|
|
551
551
|
s: "%",
|
|
552
552
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
553
|
-
})})</span></div>` : t += `<b>${
|
|
553
|
+
})})</span></div>` : t += `<b>${O({
|
|
554
554
|
v: l.proportion * 100,
|
|
555
555
|
s: "%",
|
|
556
556
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -570,7 +570,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
570
570
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
|
|
571
571
|
return [null, void 0].includes(se.value) || se.value === l.id ? "" : `url(#blur_${f.value})`;
|
|
572
572
|
}
|
|
573
|
-
const _e = _(() =>
|
|
573
|
+
const _e = _(() => N.value.map((l, s) => {
|
|
574
574
|
const a = l.series.filter(
|
|
575
575
|
(t) => !L.value.includes(t.id)
|
|
576
576
|
), o = R.value ? a.map((t) => {
|
|
@@ -641,7 +641,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
641
641
|
e.value.table.columnNames.value,
|
|
642
642
|
e.value.table.columnNames.percentage
|
|
643
643
|
], s = V.value.head.map((t, n) => {
|
|
644
|
-
const v =
|
|
644
|
+
const v = O({
|
|
645
645
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
646
646
|
v: V.value.body[n],
|
|
647
647
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -653,7 +653,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
653
653
|
name: t.name
|
|
654
654
|
},
|
|
655
655
|
v,
|
|
656
|
-
isNaN(V.value.body[n] / t.total) ? "-" :
|
|
656
|
+
isNaN(V.value.body[n] / t.total) ? "-" : O({
|
|
657
657
|
v: V.value.body[n] / t.total * 100,
|
|
658
658
|
s: "%",
|
|
659
659
|
r: e.value.table.td.roundingPercentage
|
|
@@ -684,7 +684,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
684
684
|
};
|
|
685
685
|
});
|
|
686
686
|
function Ht() {
|
|
687
|
-
return
|
|
687
|
+
return N.value;
|
|
688
688
|
}
|
|
689
689
|
function ft() {
|
|
690
690
|
$.value.showTable = !$.value.showTable;
|
|
@@ -753,7 +753,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
753
753
|
function bt() {
|
|
754
754
|
$.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
755
755
|
}
|
|
756
|
-
return
|
|
756
|
+
return Ft({
|
|
757
757
|
autoSize: Kt,
|
|
758
758
|
getData: Ht,
|
|
759
759
|
getImage: Jt,
|
|
@@ -810,7 +810,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
810
810
|
], 512)) : k("", !0),
|
|
811
811
|
p("div", {
|
|
812
812
|
id: `legend-top-${f.value}`
|
|
813
|
-
}, null, 8,
|
|
813
|
+
}, null, 8, Nl),
|
|
814
814
|
e.value.userOptions.show && ce.value && (i(je) || i(we)) ? (u(), B(i(Pt), {
|
|
815
815
|
ref_key: "userOptionsRef",
|
|
816
816
|
ref: be,
|
|
@@ -1057,7 +1057,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1057
1057
|
method: "align",
|
|
1058
1058
|
spacing: "auto",
|
|
1059
1059
|
side: "right"
|
|
1060
|
-
},
|
|
1060
|
+
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(Lt)({
|
|
1061
1061
|
source: a.name,
|
|
1062
1062
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1063
1063
|
}) : a.name), 9, Jl)
|
|
@@ -1074,7 +1074,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1074
1074
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1075
1075
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1076
1076
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1077
|
-
},
|
|
1077
|
+
}, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(Lt)({
|
|
1078
1078
|
source: a.name,
|
|
1079
1079
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1080
1080
|
}) : a.name), 11, Kl)) : k("", !0)
|
|
@@ -1103,7 +1103,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1103
1103
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1104
1104
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1105
1105
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1106
|
-
},
|
|
1106
|
+
}, S(i(O)({
|
|
1107
1107
|
v: t.proportion * 100,
|
|
1108
1108
|
s: "%",
|
|
1109
1109
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
@@ -1130,10 +1130,10 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1130
1130
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1131
1131
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1132
1132
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1133
|
-
}, " (" +
|
|
1133
|
+
}, " (" + S(i(le)(
|
|
1134
1134
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1135
1135
|
t.value,
|
|
1136
|
-
i(
|
|
1136
|
+
i(O)({
|
|
1137
1137
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1138
1138
|
v: t.value,
|
|
1139
1139
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1163,10 +1163,10 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1163
1163
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1164
1164
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1165
1165
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1166
|
-
},
|
|
1166
|
+
}, S(i(le)(
|
|
1167
1167
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1168
1168
|
t.value,
|
|
1169
|
-
i(
|
|
1169
|
+
i(O)({
|
|
1170
1170
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1171
1171
|
v: t.value,
|
|
1172
1172
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1197,7 +1197,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1197
1197
|
l.$slots.watermark ? (u(), r("div", aa, [
|
|
1198
1198
|
x(l.$slots, "watermark", H(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
|
|
1199
1199
|
])) : k("", !0),
|
|
1200
|
-
Ve(i(
|
|
1200
|
+
Ve(i(Ot), {
|
|
1201
1201
|
show: $.value.showTooltip && he.value,
|
|
1202
1202
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1203
1203
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1213,7 +1213,9 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1213
1213
|
isFullscreen: G.value,
|
|
1214
1214
|
isCustom: i(_t)(e.value.style.chart.tooltip.customFormat),
|
|
1215
1215
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1216
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1216
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1217
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1218
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1217
1219
|
}, {
|
|
1218
1220
|
"tooltip-before": C(() => [
|
|
1219
1221
|
x(l.$slots, "tooltip-before", H(J({ ...Ce.value })), void 0, !0)
|
|
@@ -1222,7 +1224,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1222
1224
|
x(l.$slots, "tooltip-after", H(J({ ...Ce.value })), void 0, !0)
|
|
1223
1225
|
]),
|
|
1224
1226
|
_: 3
|
|
1225
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1227
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1226
1228
|
p("div", {
|
|
1227
1229
|
id: `legend-bottom-${f.value}`
|
|
1228
1230
|
}, null, 8, oa),
|
|
@@ -1236,30 +1238,30 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1236
1238
|
ref: ye,
|
|
1237
1239
|
class: M({ "vue-ui-nested-donuts-legend": _e.value.length > 1 })
|
|
1238
1240
|
}, [
|
|
1239
|
-
(u(!0), r(A, null, T(_e.value, (a, o) => (u(), B(
|
|
1241
|
+
(u(!0), r(A, null, T(_e.value, (a, o) => (u(), B(Fl, {
|
|
1240
1242
|
key: `legend_${o}_${He.value}`,
|
|
1241
1243
|
legendSet: a,
|
|
1242
1244
|
config: qt.value,
|
|
1243
1245
|
onClickMarker: s[0] || (s[0] = ({ legend: t }) => $e(t))
|
|
1244
1246
|
}, {
|
|
1245
1247
|
legendTitle: C(({ titleSet: t }) => [
|
|
1246
|
-
t[0] && t[0].arcOf ? (u(), r("div", sa,
|
|
1248
|
+
t[0] && t[0].arcOf ? (u(), r("div", sa, S(t[0].arcOf), 1)) : k("", !0)
|
|
1247
1249
|
]),
|
|
1248
1250
|
item: C(({ legend: t, index: n }) => [
|
|
1249
1251
|
p("div", {
|
|
1250
1252
|
onClick: (v) => $e(t),
|
|
1251
1253
|
style: ve(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1252
|
-
},
|
|
1254
|
+
}, S(t.name) + S(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + S(e.value.style.chart.legend.showValue ? i(le)(
|
|
1253
1255
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1254
1256
|
t.value,
|
|
1255
|
-
i(
|
|
1257
|
+
i(O)({
|
|
1256
1258
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1257
1259
|
v: t.value,
|
|
1258
1260
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1259
1261
|
r: e.value.style.chart.legend.roundingValue
|
|
1260
1262
|
}),
|
|
1261
1263
|
{ datapoint: t, seriesIndex: n }
|
|
1262
|
-
) : "") + " " +
|
|
1264
|
+
) : "") + " " + S(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(O)({
|
|
1263
1265
|
v: t.value / t.total * 100,
|
|
1264
1266
|
s: "%",
|
|
1265
1267
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1307,7 +1309,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1307
1309
|
}, null, 8, na)
|
|
1308
1310
|
]),
|
|
1309
1311
|
td: C(({ td: a }) => [
|
|
1310
|
-
$t(
|
|
1312
|
+
$t(S(a.name || a), 1)
|
|
1311
1313
|
]),
|
|
1312
1314
|
_: 1
|
|
1313
1315
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1317,7 +1319,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1317
1319
|
e.value.table.useDialog ? {
|
|
1318
1320
|
name: "title",
|
|
1319
1321
|
fn: C(() => [
|
|
1320
|
-
$t(
|
|
1322
|
+
$t(S(ee.value.title), 1)
|
|
1321
1323
|
]),
|
|
1322
1324
|
key: "0"
|
|
1323
1325
|
} : void 0,
|
|
@@ -1329,7 +1331,7 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1329
1331
|
class: "vue-ui-user-options-button",
|
|
1330
1332
|
onClick: s[1] || (s[1] = (a) => xe(e.value.userOptions.callbacks.csv))
|
|
1331
1333
|
}, [
|
|
1332
|
-
Ve(i(
|
|
1334
|
+
Ve(i(Nt), {
|
|
1333
1335
|
name: "excel",
|
|
1334
1336
|
stroke: ee.value.props.color
|
|
1335
1337
|
}, null, 8, ["stroke"])
|
|
@@ -1339,9 +1341,9 @@ const Fl = ["id"], Sl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1339
1341
|
} : void 0
|
|
1340
1342
|
]), 1040)) : k("", !0),
|
|
1341
1343
|
i(ge) ? (u(), B(Cl, { key: 9 })) : k("", !0)
|
|
1342
|
-
], 46,
|
|
1344
|
+
], 46, Ol));
|
|
1343
1345
|
}
|
|
1344
|
-
}, ka = /* @__PURE__ */
|
|
1346
|
+
}, ka = /* @__PURE__ */ Sl(ra, [["__scopeId", "data-v-82796b42"]]);
|
|
1345
1347
|
export {
|
|
1346
1348
|
ka as default
|
|
1347
1349
|
};
|