vue-data-ui 3.23.1 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { $ as t, Bt as n, D as r, Jt as i, K as a, Kt as o, Mt as s, Pt as c, S as l, Vt as u, X as d, at as ee, b as te, et as f, f as p, h as ne, i as m, j as h, jt as re, kt as ie, ot as ae, p as g, pt as oe, q as se, s as ce, t as le, tt as ue, w as de, xt as fe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as he } from "./useConfig-
|
|
4
|
+
import { t as he } from "./useConfig-DlNpz6P8.js";
|
|
5
5
|
import { t as ge } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ye } from "./
|
|
8
|
-
import { t as be } from "./
|
|
9
|
-
import { t as xe } from "./
|
|
7
|
+
import { t as ye } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as Se } from "./img-Bnokohej.js";
|
|
11
11
|
import { n as Ce } from "./Title-BE3qg9xl.js";
|
|
12
12
|
import { t as we } from "./Shape-C21CMlWS.js";
|
|
@@ -401,28 +401,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
401
401
|
"copyAlt"
|
|
402
402
|
],
|
|
403
403
|
setup(e, { expose: Te, emit: nt }) {
|
|
404
|
-
let gn = Ve(() => import("./Tooltip-DhjyfHwz.js")), _n = Ve(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), vn = Ve(() => import("./vue-ui-accordion-
|
|
404
|
+
let gn = Ve(() => import("./Tooltip-DhjyfHwz.js")), _n = Ve(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), vn = Ve(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), yn = Ve(() => import("./DataTable-BbKgJ5UI.js")), bn = Ve(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), xn = Ve(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Sn = Ve(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Cn = Ve(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_donut: wn } = he(), { isThemeValid: Tn, warnInvalidTheme: En } = be(), Dn = Ze(), M = e, On = v({
|
|
405
405
|
get() {
|
|
406
406
|
return !!M.dataset && M.dataset.length;
|
|
407
407
|
},
|
|
408
408
|
set(e) {
|
|
409
409
|
return e;
|
|
410
410
|
}
|
|
411
|
-
}), N = Je(null), kn = D(null), An = D(null), jn = D(null), Mn = Je(null), Nn = Je(null), Pn = Je(null), Fn = Je(null), In = Je(null), Ln = Je(null), Rn = D(0), zn = D(0), Bn = D(0), Vn = D(!1), Hn = D(null), Un = D(null), Wn = D(
|
|
411
|
+
}), N = Je(null), kn = D(null), An = D(null), jn = D(null), Mn = Je(null), Nn = Je(null), Pn = Je(null), Fn = Je(null), In = Je(null), Ln = Je(null), Rn = D(0), zn = D(0), Bn = D(0), Vn = D(!1), Hn = D(null), Un = D(null), Wn = D(null), Gn = D({
|
|
412
412
|
x: 0,
|
|
413
413
|
y: 0
|
|
414
|
-
}),
|
|
414
|
+
}), Kn = D("pointer"), qn = D(!1), Jn = v({
|
|
415
415
|
get: () => L.value.style.chart.layout.labels.percentage.fontSize,
|
|
416
416
|
set: (e) => e
|
|
417
417
|
}), P = v({
|
|
418
418
|
get: () => L.value.style.chart.layout.labels.name.fontSize,
|
|
419
419
|
set: (e) => e
|
|
420
|
-
}),
|
|
420
|
+
}), Yn = v({
|
|
421
421
|
get: () => L.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
422
422
|
set: (e) => e
|
|
423
|
-
}),
|
|
424
|
-
!L.value.autoSize ||
|
|
425
|
-
|
|
423
|
+
}), Xn = !1, Zn = () => {
|
|
424
|
+
!L.value.autoSize || Xn || (Xn = !0, requestAnimationFrame(() => {
|
|
425
|
+
Xn = !1;
|
|
426
426
|
let e = L.value, t = kn.value, n = z.value;
|
|
427
427
|
if (!e.autoSize || !t || !n) return;
|
|
428
428
|
let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
|
|
@@ -435,7 +435,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
435
435
|
selector: ".vue-data-ui-datalabel-value",
|
|
436
436
|
baseSize: e.style.chart.layout.labels.percentage.fontSize,
|
|
437
437
|
minSize: e.style.chart.layout.labels.percentage.minFontSize,
|
|
438
|
-
sizeRef:
|
|
438
|
+
sizeRef: Jn
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
selector: ".vue-data-ui-datalabel-name",
|
|
@@ -447,7 +447,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
447
447
|
selector: ".vue-data-ui-datalabel-inline",
|
|
448
448
|
baseSize: e.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
449
449
|
minSize: e.style.chart.layout.labels.name.minFontSize,
|
|
450
|
-
sizeRef:
|
|
450
|
+
sizeRef: Yn
|
|
451
451
|
}
|
|
452
452
|
];
|
|
453
453
|
c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
|
|
@@ -465,31 +465,31 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
465
465
|
}));
|
|
466
466
|
};
|
|
467
467
|
Ke(async () => {
|
|
468
|
-
Vn.value = !0,
|
|
468
|
+
Vn.value = !0, er(), requestAnimationFrame(Zn);
|
|
469
469
|
});
|
|
470
|
-
let
|
|
470
|
+
let Qn;
|
|
471
471
|
Ke(() => {
|
|
472
|
-
N.value && (
|
|
472
|
+
N.value && (Qn = new ResizeObserver((e) => {
|
|
473
473
|
for (let t of e) {
|
|
474
474
|
let { width: e, height: n } = t.contentRect;
|
|
475
475
|
if (e > 0 && n > 0) {
|
|
476
|
-
|
|
476
|
+
Zn();
|
|
477
477
|
break;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
}),
|
|
480
|
+
}), Qn.observe(N.value.parentElement));
|
|
481
481
|
}), Ge(() => {
|
|
482
|
-
|
|
482
|
+
Qn?.disconnect();
|
|
483
483
|
}), Ge(() => {
|
|
484
484
|
Pn.value && (Fn.value && Pn.value.unobserve(Fn.value), Pn.value.disconnect());
|
|
485
485
|
});
|
|
486
|
-
let
|
|
487
|
-
function
|
|
486
|
+
let $n = v(() => L.value.debug);
|
|
487
|
+
function er() {
|
|
488
488
|
if (re(M.dataset) ? (ue({
|
|
489
489
|
componentName: "VueUiDonut",
|
|
490
490
|
type: "dataset",
|
|
491
|
-
debug:
|
|
492
|
-
}), On.value = !1,
|
|
491
|
+
debug: $n.value
|
|
492
|
+
}), On.value = !1, lr.value = !0) : (M.dataset.forEach((e, t) => {
|
|
493
493
|
oe({
|
|
494
494
|
datasetObject: e,
|
|
495
495
|
requiredAttributes: ["name", "values"]
|
|
@@ -499,18 +499,17 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
499
499
|
type: "datasetSerieAttribute",
|
|
500
500
|
property: e,
|
|
501
501
|
index: t,
|
|
502
|
-
debug:
|
|
503
|
-
}), On.value = !1,
|
|
502
|
+
debug: $n.value
|
|
503
|
+
}), On.value = !1, lr.value = !0;
|
|
504
504
|
});
|
|
505
|
-
}), M.dataset.forEach((e, t) => {
|
|
505
|
+
}), $n.value && M.dataset.forEach((e, t) => {
|
|
506
506
|
(!e.name || e.name === "") && ue({
|
|
507
507
|
componentName: "VueUiDonut",
|
|
508
508
|
type: "datasetAttributeEmpty",
|
|
509
509
|
property: "name",
|
|
510
|
-
index: t
|
|
511
|
-
debug: tr.value
|
|
510
|
+
index: t
|
|
512
511
|
});
|
|
513
|
-
})), re(M.dataset) || (
|
|
512
|
+
})), re(M.dataset) || (lr.value = L.value.loading), L.value.responsive) {
|
|
514
513
|
let e = Ee(() => {
|
|
515
514
|
let { width: e, height: t } = De({
|
|
516
515
|
chart: N.value,
|
|
@@ -518,30 +517,30 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
518
517
|
legend: L.value.style.chart.legend.show ? Nn.value : null,
|
|
519
518
|
source: In.value,
|
|
520
519
|
noTitle: Ln.value,
|
|
521
|
-
padding: L.value.autoSize ? void 0 :
|
|
520
|
+
padding: L.value.autoSize ? void 0 : br.value
|
|
522
521
|
});
|
|
523
522
|
requestAnimationFrame(() => {
|
|
524
|
-
V.value.width = e, V.value.height = t,
|
|
523
|
+
V.value.width = e, V.value.height = t, Zn();
|
|
525
524
|
});
|
|
526
525
|
});
|
|
527
526
|
Pn.value && (Fn.value && Pn.value.unobserve(Fn.value), Pn.value.disconnect()), Pn.value = new ResizeObserver(e), Fn.value = N.value.parentNode, Pn.value.observe(Fn.value);
|
|
528
527
|
}
|
|
529
528
|
}
|
|
530
|
-
let F = D(se()),
|
|
531
|
-
function
|
|
532
|
-
let e =
|
|
529
|
+
let F = D(se()), tr = D(!1), nr = D(""), I = D(null), rr = D(0);
|
|
530
|
+
function ir() {
|
|
531
|
+
let e = ye({
|
|
533
532
|
userConfig: M.config,
|
|
534
533
|
defaultConfig: wn
|
|
535
534
|
}), t = {}, n = e.theme;
|
|
536
535
|
if (!n) t = e;
|
|
537
536
|
else if (!Tn.value(e)) En(e), t = e;
|
|
538
537
|
else {
|
|
539
|
-
let r =
|
|
538
|
+
let r = ye({
|
|
540
539
|
userConfig: Fe[n] || M.config,
|
|
541
540
|
defaultConfig: e
|
|
542
541
|
});
|
|
543
542
|
t = {
|
|
544
|
-
...
|
|
543
|
+
...ye({
|
|
545
544
|
userConfig: M.config,
|
|
546
545
|
defaultConfig: r
|
|
547
546
|
}),
|
|
@@ -550,7 +549,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
550
549
|
}
|
|
551
550
|
return t;
|
|
552
551
|
}
|
|
553
|
-
let L = D(
|
|
552
|
+
let L = D(ir());
|
|
554
553
|
pe({
|
|
555
554
|
config: () => L.value,
|
|
556
555
|
dataset: () => M.dataset,
|
|
@@ -572,7 +571,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
572
571
|
}
|
|
573
572
|
]
|
|
574
573
|
});
|
|
575
|
-
let
|
|
574
|
+
let ar = v(() => L.value.userOptions.useCursorPointer), or = v(() => i({
|
|
576
575
|
defaultConfig: {
|
|
577
576
|
useCssAnimation: !1,
|
|
578
577
|
table: { show: !1 },
|
|
@@ -600,10 +599,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
600
599
|
} }
|
|
601
600
|
},
|
|
602
601
|
userConfig: L.value.skeletonConfig ?? {}
|
|
603
|
-
})), { loading:
|
|
602
|
+
})), { loading: sr, FINAL_DATASET: cr, manualLoading: lr, skeletonDataset: ur } = _e({
|
|
604
603
|
...Xe(M),
|
|
605
604
|
FINAL_CONFIG: L,
|
|
606
|
-
prepareConfig:
|
|
605
|
+
prepareConfig: ir,
|
|
607
606
|
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
608
607
|
{
|
|
609
608
|
name: "",
|
|
@@ -623,35 +622,35 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
623
622
|
],
|
|
624
623
|
skeletonConfig: i({
|
|
625
624
|
defaultConfig: L.value,
|
|
626
|
-
userConfig:
|
|
625
|
+
userConfig: or.value
|
|
627
626
|
})
|
|
628
|
-
}), R = D(!0),
|
|
629
|
-
function
|
|
627
|
+
}), R = D(!0), dr = D(0), fr = D(!1), pr = null;
|
|
628
|
+
function mr(e = 1e3) {
|
|
630
629
|
return new Promise((t) => {
|
|
631
630
|
let n = performance.now();
|
|
632
631
|
function r(i) {
|
|
633
632
|
let a = i - n, o = Math.min(a / e, 1), s = f(o);
|
|
634
|
-
|
|
633
|
+
dr.value = s, o < 1 ? pr = requestAnimationFrame(r) : (dr.value = 1, pr = null, t());
|
|
635
634
|
}
|
|
636
|
-
|
|
635
|
+
pr !== null && cancelAnimationFrame(pr), dr.value = 0, pr = requestAnimationFrame(r);
|
|
637
636
|
});
|
|
638
637
|
}
|
|
639
|
-
$e(() =>
|
|
640
|
-
if (e ||
|
|
641
|
-
let t =
|
|
642
|
-
!t && n ? (
|
|
638
|
+
$e(() => sr.value, async (e) => {
|
|
639
|
+
if (e || fr.value) return;
|
|
640
|
+
let t = cr.value === ur, n = L.value.startAnimation?.show;
|
|
641
|
+
!t && n ? (fr.value = !0, await mr(L.value.startAnimation.durationMs || 1e3)) : dr.value = 1, R.value = !1;
|
|
643
642
|
}, { immediate: !0 });
|
|
644
|
-
let { userOptionsVisible:
|
|
645
|
-
function
|
|
646
|
-
|
|
643
|
+
let { userOptionsVisible: hr, setUserOptionsVisibility: gr, keepUserOptionState: _r } = je({ config: L.value }), { svgRef: z } = Me({ config: L.value.style.chart.title });
|
|
644
|
+
function vr() {
|
|
645
|
+
gr(!0);
|
|
647
646
|
}
|
|
648
|
-
function
|
|
649
|
-
|
|
647
|
+
function yr() {
|
|
648
|
+
gr(!1);
|
|
650
649
|
}
|
|
651
650
|
$e(() => M.config, (e) => {
|
|
652
|
-
|
|
651
|
+
sr.value || (L.value = ir()), hr.value = !L.value.userOptions.showOnChartHover, er(), Rn.value += 1, zn.value += 1, Bn.value += 1, B.value.dataLabels.show = L.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, V.value.height = L.value.style.chart.height, V.value.width = L.value.style.chart.width;
|
|
653
652
|
}, { deep: !0 });
|
|
654
|
-
let
|
|
653
|
+
let br = v(() => {
|
|
655
654
|
let { top: e, right: t, bottom: n, left: r } = L.value.style.chart.padding;
|
|
656
655
|
return {
|
|
657
656
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -660,11 +659,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
660
659
|
bottom: n,
|
|
661
660
|
left: r
|
|
662
661
|
};
|
|
663
|
-
}), { isPrinting:
|
|
662
|
+
}), { isPrinting: xr, isImaging: Sr, generatePdf: Cr, generateImage: wr } = ge({
|
|
664
663
|
elementId: `donut__${F.value}`,
|
|
665
664
|
fileName: L.value.style.chart.title.text || "vue-ui-donut",
|
|
666
665
|
options: L.value.userOptions.print
|
|
667
|
-
}),
|
|
666
|
+
}), Tr = v(() => L.value.userOptions.show && !L.value.style.chart.title.text), Er = v(() => de(L.value.customPalette)), B = D({
|
|
668
667
|
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
669
668
|
showTable: L.value.table.show,
|
|
670
669
|
showTooltip: L.value.style.chart.tooltip.show
|
|
@@ -679,16 +678,16 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
679
678
|
let V = D({
|
|
680
679
|
height: L.value.style.chart.height,
|
|
681
680
|
width: L.value.style.chart.width
|
|
682
|
-
}),
|
|
681
|
+
}), Dr = v(() => {
|
|
683
682
|
if (L.value.pie) return G.value;
|
|
684
683
|
let e = L.value.style.chart.layout.donut.strokeWidth / 512, t = Math.min(V.value.width, V.value.height) * e, n = t > G.value ? G.value : t;
|
|
685
684
|
return Math.max(n, 12 * (1 + e));
|
|
686
|
-
}),
|
|
685
|
+
}), Or = nt, H = v(() => cr.value.sort((e, t) => {
|
|
687
686
|
let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
|
|
688
687
|
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
689
688
|
}).map((e, t) => ({
|
|
690
689
|
name: e.name,
|
|
691
|
-
color: l(e.color) ||
|
|
690
|
+
color: l(e.color) || Er.value[t] || c[t] || c[t % c.length],
|
|
692
691
|
value: te(e.values.reduce((e, t) => e + t, 0)),
|
|
693
692
|
absoluteValues: e.values,
|
|
694
693
|
comment: e.comment || "",
|
|
@@ -698,28 +697,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
698
697
|
pattern: `pattern_${F.value}_${t}`
|
|
699
698
|
})));
|
|
700
699
|
$e(() => M.dataset, (e) => {
|
|
701
|
-
Array.isArray(e) && e.length > 0 && (
|
|
700
|
+
Array.isArray(e) && e.length > 0 && (lr.value = !1);
|
|
702
701
|
}, { immediate: !0 });
|
|
703
702
|
let U = Je(H.value);
|
|
704
703
|
$e(() => H.value, (e) => {
|
|
705
|
-
U.value = e, requestAnimationFrame(
|
|
704
|
+
U.value = e, requestAnimationFrame(Zn);
|
|
706
705
|
});
|
|
707
|
-
function
|
|
706
|
+
function kr() {
|
|
708
707
|
return H.value.map((e) => ({
|
|
709
708
|
name: e.name,
|
|
710
709
|
color: e.color,
|
|
711
710
|
value: e.value
|
|
712
711
|
}));
|
|
713
712
|
}
|
|
714
|
-
let W = D([]),
|
|
715
|
-
function
|
|
716
|
-
|
|
713
|
+
let W = D([]), Ar = D(!1), jr = D(null);
|
|
714
|
+
function Mr() {
|
|
715
|
+
Or("selectLegend", Br.value.map((e) => ({
|
|
717
716
|
name: e.name,
|
|
718
717
|
color: e.color,
|
|
719
718
|
value: e.value
|
|
720
719
|
})));
|
|
721
720
|
}
|
|
722
|
-
function
|
|
721
|
+
function Nr({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = f }) {
|
|
723
722
|
let o = performance.now();
|
|
724
723
|
function s(c) {
|
|
725
724
|
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
@@ -727,12 +726,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
727
726
|
}
|
|
728
727
|
requestAnimationFrame(s);
|
|
729
728
|
}
|
|
730
|
-
function
|
|
731
|
-
W.value.length ? W.value = [] :
|
|
729
|
+
function Pr() {
|
|
730
|
+
W.value.length ? W.value = [] : Vr.value.forEach((e, t) => {
|
|
732
731
|
W.value.push(t);
|
|
733
|
-
}),
|
|
732
|
+
}), Mr();
|
|
734
733
|
}
|
|
735
|
-
function
|
|
734
|
+
function Fr(e) {
|
|
736
735
|
let t = H.value.find((t, n) => n === e), n = U.value.find((t, n) => n === e).value;
|
|
737
736
|
if (W.value.includes(e)) {
|
|
738
737
|
W.value = W.value.filter((t) => t !== e);
|
|
@@ -741,10 +740,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
741
740
|
U.value = U.value.map((t, n) => e === n ? {
|
|
742
741
|
...t,
|
|
743
742
|
value: r
|
|
744
|
-
} : t),
|
|
743
|
+
} : t), Mr();
|
|
745
744
|
}
|
|
746
745
|
function a() {
|
|
747
|
-
|
|
746
|
+
Ar.value = !0, jr.value = e, Nr({
|
|
748
747
|
from: n,
|
|
749
748
|
to: r,
|
|
750
749
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -752,23 +751,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
752
751
|
U.value = U.value.map((n, r) => e === r ? {
|
|
753
752
|
...n,
|
|
754
753
|
value: t
|
|
755
|
-
} : n), requestAnimationFrame(
|
|
754
|
+
} : n), requestAnimationFrame(Zn);
|
|
756
755
|
},
|
|
757
756
|
onDone: () => {
|
|
758
|
-
i(),
|
|
757
|
+
i(), Ar.value = !1, jr.value = null;
|
|
759
758
|
}
|
|
760
759
|
});
|
|
761
760
|
}
|
|
762
|
-
L.value.serieToggleAnimation.show && L.value.type === "classic" ? a() : (i(), requestAnimationFrame(
|
|
761
|
+
L.value.serieToggleAnimation.show && L.value.type === "classic" ? a() : (i(), requestAnimationFrame(Zn));
|
|
763
762
|
} else if (W.value.length < H.value.length - 1) {
|
|
764
763
|
function t() {
|
|
765
764
|
W.value.push(e), U.value = U.value.map((t, n) => e === n ? {
|
|
766
765
|
...t,
|
|
767
766
|
value: 0
|
|
768
|
-
} : t),
|
|
767
|
+
} : t), Mr();
|
|
769
768
|
}
|
|
770
769
|
function r() {
|
|
771
|
-
|
|
770
|
+
Ar.value = !0, jr.value = e, Nr({
|
|
772
771
|
from: n,
|
|
773
772
|
to: 0,
|
|
774
773
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -776,35 +775,35 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
776
775
|
U.value = U.value.map((n, r) => e === r ? {
|
|
777
776
|
...n,
|
|
778
777
|
value: t
|
|
779
|
-
} : n), requestAnimationFrame(
|
|
778
|
+
} : n), requestAnimationFrame(Zn);
|
|
780
779
|
},
|
|
781
780
|
onDone: () => {
|
|
782
|
-
t(), requestAnimationFrame(
|
|
781
|
+
t(), requestAnimationFrame(Zn), Ar.value = !1, jr.value = null;
|
|
783
782
|
}
|
|
784
783
|
});
|
|
785
784
|
}
|
|
786
785
|
L.value.serieToggleAnimation.show && L.value.type === "classic" ? r() : t();
|
|
787
786
|
}
|
|
788
787
|
}
|
|
789
|
-
function
|
|
790
|
-
return H.value.length ? H.value.find((t) => t.name === e) || (
|
|
788
|
+
function Ir(e) {
|
|
789
|
+
return H.value.length ? H.value.find((t) => t.name === e) || ($n.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : ($n.value && console.warn("VueUiDonut - There are no series to show."), null);
|
|
791
790
|
}
|
|
792
|
-
function
|
|
793
|
-
let t =
|
|
794
|
-
t !== null && W.value.includes(t.seriesIndex) &&
|
|
791
|
+
function Lr(e) {
|
|
792
|
+
let t = Ir(e);
|
|
793
|
+
t !== null && W.value.includes(t.seriesIndex) && Fr(t.seriesIndex);
|
|
795
794
|
}
|
|
796
|
-
function
|
|
797
|
-
let t =
|
|
798
|
-
t !== null && (W.value.includes(t.seriesIndex) ||
|
|
795
|
+
function Rr(e) {
|
|
796
|
+
let t = Ir(e);
|
|
797
|
+
t !== null && (W.value.includes(t.seriesIndex) || Fr(t.seriesIndex));
|
|
799
798
|
}
|
|
800
|
-
let
|
|
801
|
-
if (R.value && !
|
|
802
|
-
let e =
|
|
799
|
+
let zr = v(() => cr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), Br = v(() => {
|
|
800
|
+
if (R.value && !sr.value) {
|
|
801
|
+
let e = dr.value, t = H.value.map((t) => ({
|
|
803
802
|
...t,
|
|
804
803
|
value: t.value * e,
|
|
805
804
|
color: t.color,
|
|
806
805
|
ghost: !1
|
|
807
|
-
})), n =
|
|
806
|
+
})), n = zr.value * (1 - e);
|
|
808
807
|
return n > 0 && t.push({
|
|
809
808
|
name: "__ghost__",
|
|
810
809
|
value: n,
|
|
@@ -821,11 +820,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
821
820
|
...e,
|
|
822
821
|
seriesIndex: t
|
|
823
822
|
})).filter((e, t) => !W.value.includes(t));
|
|
824
|
-
}),
|
|
825
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n /
|
|
823
|
+
}), Vr = v(() => cr.value.map((e, t) => {
|
|
824
|
+
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / cr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
826
825
|
return {
|
|
827
826
|
name: e.name,
|
|
828
|
-
color: l(e.color) ||
|
|
827
|
+
color: l(e.color) || Er.value[t] || c[t] || c[t % c.length],
|
|
829
828
|
value: n,
|
|
830
829
|
shape: "circle",
|
|
831
830
|
patternIndex: t,
|
|
@@ -840,13 +839,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
840
839
|
}), {
|
|
841
840
|
datapoint: e,
|
|
842
841
|
index: t
|
|
843
|
-
}), r = m(L.value.style.chart.layout.labels.percentage.formatter,
|
|
844
|
-
v:
|
|
842
|
+
}), r = m(L.value.style.chart.layout.labels.percentage.formatter, Qr(e), d({
|
|
843
|
+
v: Qr(e),
|
|
845
844
|
s: "%",
|
|
846
845
|
r: L.value.style.chart.legend.roundingPercentage
|
|
847
|
-
})), i =
|
|
846
|
+
})), i = mi({
|
|
848
847
|
val: n,
|
|
849
|
-
percentage: W.value.includes(t) ? `${
|
|
848
|
+
percentage: W.value.includes(t) ? `${pi(e.proportion * 100)}%` : r,
|
|
850
849
|
showVal: L.value.style.chart.legend.showValue,
|
|
851
850
|
showPercentage: L.value.style.chart.legend.showPercentage,
|
|
852
851
|
config: L.value.style.chart.legend
|
|
@@ -854,11 +853,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
854
853
|
return {
|
|
855
854
|
...e,
|
|
856
855
|
opacity: W.value.includes(t) ? .5 : 1,
|
|
857
|
-
segregate: () => !
|
|
856
|
+
segregate: () => !Ar.value && Fr(t),
|
|
858
857
|
isSegregated: W.value.includes(t),
|
|
859
858
|
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
860
859
|
};
|
|
861
|
-
})),
|
|
860
|
+
})), Hr = v(() => ({
|
|
862
861
|
cy: "donut-div-legend",
|
|
863
862
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
864
863
|
color: L.value.style.chart.legend.color,
|
|
@@ -868,7 +867,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
868
867
|
})), G = v(() => {
|
|
869
868
|
let e = L.value.style.chart.layout.donut.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(V.value.width * t, V.value.height * t);
|
|
870
869
|
return Math.max(12, n);
|
|
871
|
-
}), K = v(() => ie({ series:
|
|
870
|
+
}), K = v(() => ie({ series: Br.value }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Dr.value)), Ur = v(() => Math.abs(Br.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Wr = v(() => ie({ series: [{
|
|
872
871
|
value: 1,
|
|
873
872
|
color: L.value.style.chart.layout.donut.emptyFill,
|
|
874
873
|
name: "_",
|
|
@@ -876,8 +875,8 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
876
875
|
patternIndex: -1,
|
|
877
876
|
ghost: !1,
|
|
878
877
|
absoluteValues: [1]
|
|
879
|
-
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25,
|
|
880
|
-
let e = Math.max(...
|
|
878
|
+
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Dr.value)), q = v(() => K.value.filter((e) => !e.ghost)), J = v(() => {
|
|
879
|
+
let e = Math.max(...Br.value.map((e) => e.value)), t = Br.value.map((t) => t.value / e);
|
|
881
880
|
return h({
|
|
882
881
|
series: t,
|
|
883
882
|
center: {
|
|
@@ -888,10 +887,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
888
887
|
hasGhost: R.value
|
|
889
888
|
});
|
|
890
889
|
});
|
|
891
|
-
function
|
|
890
|
+
function Gr(e) {
|
|
892
891
|
return e.x > V.value.width / 2 + 6 ? "start" : e.x < V.value.width / 2 - 6 ? "end" : "middle";
|
|
893
892
|
}
|
|
894
|
-
function
|
|
893
|
+
function Kr(e) {
|
|
895
894
|
return e.middlePoint.y > V.value.height / 2 ? s({
|
|
896
895
|
initX: e.middlePoint.x,
|
|
897
896
|
initY: e.middlePoint.y,
|
|
@@ -909,72 +908,72 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
909
908
|
function Y(e) {
|
|
910
909
|
return e.proportion * 100 > L.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
911
910
|
}
|
|
912
|
-
function
|
|
913
|
-
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (
|
|
911
|
+
function qr(e, t) {
|
|
912
|
+
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (Xr.value[t] ?? e.proportion ?? 0) * 100;
|
|
914
913
|
return i > n && i <= r;
|
|
915
914
|
}
|
|
916
915
|
let { smallArcLayoutsClassic: X } = tt({
|
|
917
916
|
FINAL_CONFIG: L,
|
|
918
917
|
noGhostDonut: q,
|
|
919
918
|
svg: V,
|
|
920
|
-
padding:
|
|
921
|
-
labels_inline_fontSize:
|
|
919
|
+
padding: br,
|
|
920
|
+
labels_inline_fontSize: Yn,
|
|
922
921
|
minSize: G,
|
|
923
922
|
findArcMidpoint: ee,
|
|
924
923
|
calcMarkerOffsetX: p,
|
|
925
924
|
calcMarkerOffsetY: g,
|
|
926
|
-
animatingIndex:
|
|
925
|
+
animatingIndex: jr,
|
|
927
926
|
segregated: W,
|
|
928
|
-
isSmallArc:
|
|
927
|
+
isSmallArc: qr
|
|
929
928
|
});
|
|
930
|
-
function
|
|
931
|
-
let n = e.value /
|
|
929
|
+
function Jr(e, t) {
|
|
930
|
+
let n = e.value / Yr(t);
|
|
932
931
|
return isNaN(n) ? 0 : m(L.value.style.chart.layout.labels.percentage.formatter, n * 100, d({
|
|
933
932
|
v: n * 100,
|
|
934
933
|
s: "%",
|
|
935
934
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
936
935
|
}), { datapoint: e });
|
|
937
936
|
}
|
|
938
|
-
function
|
|
937
|
+
function Yr(e) {
|
|
939
938
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
940
939
|
}
|
|
941
|
-
let Z = v(() =>
|
|
940
|
+
let Z = v(() => Br.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Xr = v(() => {
|
|
942
941
|
let e = H.value.reduce((e, t) => e + t.value, 0);
|
|
943
942
|
return e <= 0 ? [] : H.value.map((t) => t.value / e);
|
|
944
|
-
}),
|
|
945
|
-
function
|
|
946
|
-
return
|
|
943
|
+
}), Zr = v(() => Z.value / Br.value.length);
|
|
944
|
+
function Qr(e) {
|
|
945
|
+
return Ar.value ? e.proportion * 100 : e.value / Z.value * 100;
|
|
947
946
|
}
|
|
948
|
-
let
|
|
949
|
-
function
|
|
947
|
+
let $r = D(null), ei = D(!1);
|
|
948
|
+
function ti({ datapoint: e, seriesIndex: t }) {
|
|
950
949
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
951
950
|
datapoint: e,
|
|
952
951
|
seriesIndex: t
|
|
953
|
-
}),
|
|
952
|
+
}), tr.value = !1, I.value = null, Wn.value = null, Kn.value = "pointer";
|
|
954
953
|
}
|
|
955
954
|
function Q({ datapoint: e, relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer" }) {
|
|
956
955
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
957
956
|
datapoint: e,
|
|
958
957
|
seriesIndex: n
|
|
959
|
-
}),
|
|
958
|
+
}), Kn.value = i, Wn.value = t, $r.value = {
|
|
960
959
|
datapoint: e,
|
|
961
960
|
seriesIndex: n,
|
|
962
961
|
config: L.value,
|
|
963
962
|
series: H.value
|
|
964
|
-
},
|
|
963
|
+
}, tr.value = r, I.value = t;
|
|
965
964
|
let a = "", o = L.value.style.chart.tooltip.customFormat;
|
|
966
|
-
if (
|
|
965
|
+
if (ei.value = !1, fe(o)) try {
|
|
967
966
|
let t = o({
|
|
968
967
|
seriesIndex: n,
|
|
969
968
|
datapoint: e,
|
|
970
969
|
series: H.value,
|
|
971
970
|
config: L.value
|
|
972
971
|
});
|
|
973
|
-
typeof t == "string" && (
|
|
972
|
+
typeof t == "string" && (nr.value = t, ei.value = !0);
|
|
974
973
|
} catch {
|
|
975
|
-
console.warn("Custom format cannot be applied."),
|
|
974
|
+
console.warn("Custom format cannot be applied."), ei.value = !1;
|
|
976
975
|
}
|
|
977
|
-
|
|
976
|
+
ei.value || (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${Dn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${F.value}_${n})"/>` : ""}</svg>`, a += `<b>${mi({
|
|
978
977
|
showVal: L.value.style.chart.tooltip.showValue,
|
|
979
978
|
showPercentage: L.value.style.chart.tooltip.showPercentage,
|
|
980
979
|
val: `<span>${m(L.value.style.chart.layout.labels.value.formatter, e.value, d({
|
|
@@ -997,9 +996,9 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
997
996
|
seriesIndex: n
|
|
998
997
|
}),
|
|
999
998
|
config: L.value.style.chart.tooltip
|
|
1000
|
-
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`),
|
|
999
|
+
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), nr.value = `<div>${a}</div>`);
|
|
1001
1000
|
}
|
|
1002
|
-
function
|
|
1001
|
+
function ni(e, t) {
|
|
1003
1002
|
let n = X.value[t];
|
|
1004
1003
|
if (n) return {
|
|
1005
1004
|
textAnchor: n.textAnchor,
|
|
@@ -1013,12 +1012,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1013
1012
|
y: g(e)
|
|
1014
1013
|
};
|
|
1015
1014
|
}
|
|
1016
|
-
function
|
|
1017
|
-
let { textAnchor: r, x: i } =
|
|
1015
|
+
function ri(e, t, n) {
|
|
1016
|
+
let { textAnchor: r, x: i } = ni(e, t), a = hi(e), o = `
|
|
1018
1017
|
<tspan
|
|
1019
1018
|
class="vue-data-ui-datalabel-inline"
|
|
1020
1019
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1021
|
-
font-size="${n ?
|
|
1020
|
+
font-size="${n ? Yn.value : Jn.value}px"
|
|
1022
1021
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
1023
1022
|
>${a}</tspan>
|
|
1024
1023
|
`, s = String(e.name ?? "").split(/\n/g), c = "";
|
|
@@ -1027,23 +1026,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1027
1026
|
<tspan
|
|
1028
1027
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1029
1028
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1030
|
-
font-size="${n ?
|
|
1029
|
+
font-size="${n ? Yn.value : P.value}px"
|
|
1031
1030
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
1032
1031
|
>${e}</tspan>
|
|
1033
1032
|
` : `
|
|
1034
1033
|
<tspan
|
|
1035
1034
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1036
1035
|
x="${i}"
|
|
1037
|
-
dy="${(n ?
|
|
1036
|
+
dy="${(n ? Yn.value : P.value) * 1.2}"
|
|
1038
1037
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1039
|
-
font-size="${n ?
|
|
1038
|
+
font-size="${n ? Yn.value : P.value}px"
|
|
1040
1039
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
1041
1040
|
>${e}</tspan>
|
|
1042
1041
|
`;
|
|
1043
1042
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? c : ""}${o}` : `${o}${L.value.style.chart.layout.labels.name.show ? c : ""}`;
|
|
1044
1043
|
}
|
|
1045
|
-
function
|
|
1046
|
-
let n = J.value[t].middlePoint, r =
|
|
1044
|
+
function ii(e, t) {
|
|
1045
|
+
let n = J.value[t].middlePoint, r = Gr(n), i = s({
|
|
1047
1046
|
initX: n.x,
|
|
1048
1047
|
initY: n.y,
|
|
1049
1048
|
offset: 42,
|
|
@@ -1051,11 +1050,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1051
1050
|
centerY: V.value.height / 2
|
|
1052
1051
|
}), a = i.x;
|
|
1053
1052
|
i.y;
|
|
1054
|
-
let o =
|
|
1053
|
+
let o = hi(e), c = `
|
|
1055
1054
|
<tspan
|
|
1056
1055
|
class="vue-data-ui-datalabel-value"
|
|
1057
1056
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1058
|
-
font-size="${
|
|
1057
|
+
font-size="${Jn.value}px"
|
|
1059
1058
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
1060
1059
|
>${o}</tspan>
|
|
1061
1060
|
`, l = String(e.name ?? "").split(/\n/g), u = "";
|
|
@@ -1079,27 +1078,27 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1079
1078
|
`;
|
|
1080
1079
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? u : ""}${c}` : `${c}${L.value.style.chart.layout.labels.name.show ? u : ""}`;
|
|
1081
1080
|
}
|
|
1082
|
-
function
|
|
1081
|
+
function ai(e) {
|
|
1083
1082
|
return L.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${F.value})` : "";
|
|
1084
1083
|
}
|
|
1085
|
-
function
|
|
1086
|
-
if (!
|
|
1084
|
+
function oi(e) {
|
|
1085
|
+
if (!Ar.value || jr.value === null || e.seriesIndex !== jr.value) return 1;
|
|
1087
1086
|
let t = (e.proportion ?? 0) * 100, n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, i = n;
|
|
1088
1087
|
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1089
1088
|
}
|
|
1090
|
-
let
|
|
1091
|
-
head:
|
|
1089
|
+
let si = v(() => ({
|
|
1090
|
+
head: Br.value.map((e) => ({
|
|
1092
1091
|
name: e.name,
|
|
1093
1092
|
color: e.color
|
|
1094
1093
|
})),
|
|
1095
|
-
body:
|
|
1094
|
+
body: Br.value.map((e) => e.value)
|
|
1096
1095
|
}));
|
|
1097
|
-
function
|
|
1096
|
+
function ci(e = null) {
|
|
1098
1097
|
Ue(() => {
|
|
1099
|
-
let n =
|
|
1098
|
+
let n = si.value.head.map((e, t) => [
|
|
1100
1099
|
[e.name],
|
|
1101
|
-
[
|
|
1102
|
-
[isNaN(
|
|
1100
|
+
[si.value.body[t]],
|
|
1101
|
+
[isNaN(si.value.body[t] / Z.value) ? "-" : si.value.body[t] / Z.value * 100]
|
|
1103
1102
|
]), i = [
|
|
1104
1103
|
[L.value.style.chart.title.text],
|
|
1105
1104
|
[L.value.style.chart.title.subtitle.text],
|
|
@@ -1115,7 +1114,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1115
1114
|
});
|
|
1116
1115
|
});
|
|
1117
1116
|
}
|
|
1118
|
-
let
|
|
1117
|
+
let li = v(() => {
|
|
1119
1118
|
let e = [
|
|
1120
1119
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
1121
1120
|
d({
|
|
@@ -1125,13 +1124,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1125
1124
|
r: L.value.table.td.roundingValue
|
|
1126
1125
|
}),
|
|
1127
1126
|
"100%"
|
|
1128
|
-
], t =
|
|
1127
|
+
], t = si.value.head.map((e, t) => [
|
|
1129
1128
|
{
|
|
1130
1129
|
color: e.color,
|
|
1131
1130
|
name: e.name || "-"
|
|
1132
1131
|
},
|
|
1133
|
-
|
|
1134
|
-
isNaN(
|
|
1132
|
+
si.value.body[t],
|
|
1133
|
+
isNaN(si.value.body[t] / Z.value) ? "-" : (si.value.body[t] / Z.value * 100).toFixed(L.value.table.td.roundingPercentage) + "%"
|
|
1135
1134
|
]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
1136
1135
|
th: {
|
|
1137
1136
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1156,18 +1155,18 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1156
1155
|
a11yBody: n,
|
|
1157
1156
|
config: r
|
|
1158
1157
|
};
|
|
1159
|
-
}),
|
|
1160
|
-
function
|
|
1161
|
-
|
|
1158
|
+
}), ui = D(!1);
|
|
1159
|
+
function di(e) {
|
|
1160
|
+
ui.value = e, rr.value += 1;
|
|
1162
1161
|
}
|
|
1163
|
-
let
|
|
1164
|
-
function
|
|
1162
|
+
let fi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1163
|
+
function pi(e) {
|
|
1165
1164
|
return Ne({
|
|
1166
1165
|
num: e,
|
|
1167
1166
|
rounding: L.value.style.chart.legend.roundingPercentage
|
|
1168
1167
|
});
|
|
1169
1168
|
}
|
|
1170
|
-
function
|
|
1169
|
+
function mi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1171
1170
|
return Pe({
|
|
1172
1171
|
config: i,
|
|
1173
1172
|
val: e,
|
|
@@ -1176,15 +1175,15 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1176
1175
|
showPercentage: r
|
|
1177
1176
|
});
|
|
1178
1177
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1178
|
+
function hi(e) {
|
|
1179
|
+
return mi({
|
|
1181
1180
|
val: m(L.value.style.chart.layout.labels.value.formatter, e.value, d({
|
|
1182
1181
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1183
1182
|
v: e.value,
|
|
1184
1183
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1185
1184
|
r: L.value.style.chart.layout.labels.value.rounding
|
|
1186
1185
|
}), { datapoint: e }),
|
|
1187
|
-
percentage:
|
|
1186
|
+
percentage: Jr(e, q.value),
|
|
1188
1187
|
showVal: L.value.style.chart.layout.labels.value.show,
|
|
1189
1188
|
showPercentage: L.value.style.chart.layout.labels.percentage.show,
|
|
1190
1189
|
config: L.value.style.chart.layout.labels.dataLabels
|
|
@@ -1194,25 +1193,25 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1194
1193
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
1195
1194
|
datapoint: e,
|
|
1196
1195
|
seriesIndex: e.seriesIndex
|
|
1197
|
-
}),
|
|
1196
|
+
}), Or("selectDatapoint", {
|
|
1198
1197
|
datapoint: e,
|
|
1199
1198
|
index: t
|
|
1200
1199
|
});
|
|
1201
1200
|
}
|
|
1202
|
-
function
|
|
1201
|
+
function gi() {
|
|
1203
1202
|
B.value.showTable = !B.value.showTable;
|
|
1204
1203
|
}
|
|
1205
|
-
function
|
|
1204
|
+
function _i() {
|
|
1206
1205
|
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
1207
1206
|
}
|
|
1208
|
-
function
|
|
1207
|
+
function vi() {
|
|
1209
1208
|
B.value.showTooltip = !B.value.showTooltip;
|
|
1210
1209
|
}
|
|
1211
|
-
let
|
|
1212
|
-
function
|
|
1213
|
-
|
|
1210
|
+
let yi = D(!1);
|
|
1211
|
+
function bi() {
|
|
1212
|
+
yi.value = !yi.value;
|
|
1214
1213
|
}
|
|
1215
|
-
async function
|
|
1214
|
+
async function xi({ scale: e = 2 } = {}) {
|
|
1216
1215
|
if (!N.value) return;
|
|
1217
1216
|
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
1218
1217
|
domElement: N.value,
|
|
@@ -1229,12 +1228,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1229
1228
|
aspectRatio: r
|
|
1230
1229
|
};
|
|
1231
1230
|
}
|
|
1232
|
-
function
|
|
1231
|
+
function Si() {
|
|
1233
1232
|
if (!kn.value) return;
|
|
1234
1233
|
let { x: e, y: t, width: n, height: r } = kn.value.getBBox();
|
|
1235
1234
|
z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1236
1235
|
}
|
|
1237
|
-
let
|
|
1236
|
+
let Ci = v(() => {
|
|
1238
1237
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
1239
1238
|
return {
|
|
1240
1239
|
component: e ? Cn : vn,
|
|
@@ -1244,10 +1243,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1244
1243
|
color: L.value.table.th.color,
|
|
1245
1244
|
headerColor: L.value.table.th.color,
|
|
1246
1245
|
headerBg: L.value.table.th.backgroundColor,
|
|
1247
|
-
isFullscreen:
|
|
1246
|
+
isFullscreen: ui.value,
|
|
1248
1247
|
fullscreenParent: N.value,
|
|
1249
1248
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1250
|
-
isCursorPointer:
|
|
1249
|
+
isCursorPointer: ar.value
|
|
1251
1250
|
} : {
|
|
1252
1251
|
hideDetails: !0,
|
|
1253
1252
|
config: {
|
|
@@ -1268,48 +1267,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1268
1267
|
$e(() => B.value.showTable, (e) => {
|
|
1269
1268
|
L.value.table.show || (e && L.value.table.useDialog && Hn.value ? Hn.value.open() : "close" in Hn.value && Hn.value.close());
|
|
1270
1269
|
});
|
|
1271
|
-
function
|
|
1270
|
+
function wi() {
|
|
1272
1271
|
B.value.showTable = !1, Un.value && Un.value.setTableIconState(!1);
|
|
1273
1272
|
}
|
|
1274
|
-
let
|
|
1273
|
+
let Ti = v(() => Vr.value.map((e) => ({
|
|
1275
1274
|
...e,
|
|
1276
1275
|
name: e.display
|
|
1277
|
-
}))),
|
|
1276
|
+
}))), Ei = v(() => L.value.style.chart.backgroundColor), Di = v(() => L.value.style.chart.legend), Oi = v(() => L.value.style.chart.title), { isCallbackImaging: ki, isCallbackSvg: Ai, generateSvg: ji, onGenerateImage: Mi } = xe({
|
|
1278
1277
|
svg: z,
|
|
1279
|
-
title:
|
|
1280
|
-
legend:
|
|
1281
|
-
legendItems:
|
|
1282
|
-
backgroundColor:
|
|
1278
|
+
title: Oi,
|
|
1279
|
+
legend: Di,
|
|
1280
|
+
legendItems: Ti,
|
|
1281
|
+
backgroundColor: Ei,
|
|
1282
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
1283
|
+
generateImage: wr
|
|
1283
1284
|
});
|
|
1284
|
-
async function Ni(
|
|
1285
|
-
|
|
1286
|
-
try {
|
|
1287
|
-
if (e) {
|
|
1288
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Mi();
|
|
1289
|
-
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1290
|
-
blob: e,
|
|
1291
|
-
url: t,
|
|
1292
|
-
text: n,
|
|
1293
|
-
dataUrl: r
|
|
1294
|
-
}));
|
|
1295
|
-
} else await Promise.resolve(ji());
|
|
1296
|
-
} finally {
|
|
1297
|
-
Gn.value = !1;
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
function Pi(e) {
|
|
1301
|
-
if (e?.stage === "start") {
|
|
1302
|
-
Wn.value = !0;
|
|
1303
|
-
return;
|
|
1304
|
-
}
|
|
1305
|
-
if (e?.stage === "end") {
|
|
1306
|
-
Wn.value = !1;
|
|
1307
|
-
return;
|
|
1308
|
-
}
|
|
1309
|
-
Er();
|
|
1310
|
-
}
|
|
1311
|
-
async function Fi() {
|
|
1312
|
-
if (Ar("copyAlt", {
|
|
1285
|
+
async function Ni() {
|
|
1286
|
+
if (Or("copyAlt", {
|
|
1313
1287
|
config: L.value,
|
|
1314
1288
|
dataset: U.value
|
|
1315
1289
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -1321,31 +1295,31 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1321
1295
|
dataset: U.value
|
|
1322
1296
|
}));
|
|
1323
1297
|
}
|
|
1324
|
-
function
|
|
1325
|
-
|
|
1298
|
+
function Pi() {
|
|
1299
|
+
Wn.value = null, qn.value = !0;
|
|
1326
1300
|
}
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1301
|
+
function Fi() {
|
|
1302
|
+
Wn.value = null, Kn.value = "pointer", tr.value = !1, I.value = null, qn.value = !1;
|
|
1329
1303
|
}
|
|
1330
|
-
function
|
|
1331
|
-
if (!z.value ||
|
|
1304
|
+
function Ii(e) {
|
|
1305
|
+
if (!z.value || yi.value || document.activeElement !== z.value || !q.value.length) return;
|
|
1332
1306
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1333
1307
|
if (!t && !n && !r && !i) return;
|
|
1334
1308
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1335
|
-
|
|
1309
|
+
Wn.value = null, Kn.value = "pointer", tr.value = !1, I.value = null;
|
|
1336
1310
|
return;
|
|
1337
1311
|
}
|
|
1338
1312
|
if (r) {
|
|
1339
|
-
if (
|
|
1340
|
-
let e = q.value[
|
|
1313
|
+
if (Wn.value === null) return;
|
|
1314
|
+
let e = q.value[Wn.value];
|
|
1341
1315
|
if (!e) return;
|
|
1342
|
-
$(e,
|
|
1316
|
+
$(e, Wn.value);
|
|
1343
1317
|
return;
|
|
1344
1318
|
}
|
|
1345
|
-
let a =
|
|
1319
|
+
let a = Wn.value, o = I.value, s = a !== null && a >= 0 && a < q.value.length, c = o !== null && o >= 0 && o < q.value.length;
|
|
1346
1320
|
s ? n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= q.value.length && (a = 0), a < 0 && (a = q.value.length - 1)) : a = n ? 0 : q.value.length - 1;
|
|
1347
1321
|
let l = q.value[a];
|
|
1348
|
-
l && (
|
|
1322
|
+
l && (Wn.value = a, Li(a), Q({
|
|
1349
1323
|
datapoint: l,
|
|
1350
1324
|
relativeIndex: a,
|
|
1351
1325
|
seriesIndex: l.seriesIndex,
|
|
@@ -1353,7 +1327,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1353
1327
|
triggerMode: "keyboard"
|
|
1354
1328
|
}));
|
|
1355
1329
|
}
|
|
1356
|
-
function
|
|
1330
|
+
function Li(e) {
|
|
1357
1331
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1358
1332
|
let t = V.value.width / 2, n = V.value.height / 2;
|
|
1359
1333
|
if (L.value.type === "classic") {
|
|
@@ -1368,49 +1342,49 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1368
1342
|
t = r.x, n = r.y;
|
|
1369
1343
|
}
|
|
1370
1344
|
let r = z.value.getBoundingClientRect();
|
|
1371
|
-
|
|
1345
|
+
Gn.value = {
|
|
1372
1346
|
x: r.left + t / V.value.width * r.width,
|
|
1373
1347
|
y: r.top + n / V.value.height * r.height
|
|
1374
1348
|
};
|
|
1375
1349
|
}
|
|
1376
|
-
let
|
|
1377
|
-
headers:
|
|
1378
|
-
rows:
|
|
1350
|
+
let Ri = v(() => ({
|
|
1351
|
+
headers: li.value?.colNames ?? [],
|
|
1352
|
+
rows: li.value?.a11yBody ?? []
|
|
1379
1353
|
}));
|
|
1380
1354
|
return Te({
|
|
1381
|
-
autoSize:
|
|
1382
|
-
getData:
|
|
1383
|
-
getImage:
|
|
1384
|
-
generatePdf:
|
|
1385
|
-
generateCsv:
|
|
1386
|
-
generateImage:
|
|
1387
|
-
generateSvg:
|
|
1388
|
-
hideSeries:
|
|
1389
|
-
showSeries:
|
|
1390
|
-
toggleTable:
|
|
1391
|
-
toggleLabels:
|
|
1392
|
-
toggleTooltip:
|
|
1393
|
-
toggleAnnotator:
|
|
1394
|
-
toggleFullscreen:
|
|
1395
|
-
copyAlt:
|
|
1355
|
+
autoSize: Si,
|
|
1356
|
+
getData: kr,
|
|
1357
|
+
getImage: xi,
|
|
1358
|
+
generatePdf: Cr,
|
|
1359
|
+
generateCsv: ci,
|
|
1360
|
+
generateImage: wr,
|
|
1361
|
+
generateSvg: ji,
|
|
1362
|
+
hideSeries: Rr,
|
|
1363
|
+
showSeries: Lr,
|
|
1364
|
+
toggleTable: gi,
|
|
1365
|
+
toggleLabels: _i,
|
|
1366
|
+
toggleTooltip: vi,
|
|
1367
|
+
toggleAnnotator: bi,
|
|
1368
|
+
toggleFullscreen: di,
|
|
1369
|
+
copyAlt: Ni
|
|
1396
1370
|
}), (t, r) => (E(), x("div", {
|
|
1397
1371
|
ref_key: "donutChart",
|
|
1398
1372
|
ref: N,
|
|
1399
|
-
class: We(`vue-data-ui-component vue-ui-donut ${
|
|
1373
|
+
class: We(`vue-data-ui-component vue-ui-donut ${ui.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1400
1374
|
style: T(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1401
1375
|
id: `donut__${F.value}`,
|
|
1402
|
-
onMouseenter:
|
|
1403
|
-
onMouseleave:
|
|
1376
|
+
onMouseenter: vr,
|
|
1377
|
+
onMouseleave: yr
|
|
1404
1378
|
}, [
|
|
1405
1379
|
S("div", {
|
|
1406
1380
|
id: `chart-instructions-${F.value}`,
|
|
1407
1381
|
class: "sr-only"
|
|
1408
1382
|
}, [S("p", null, Ye(L.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
1409
|
-
|
|
1383
|
+
Ri.value?.rows?.length ? (E(), y(Ae, {
|
|
1410
1384
|
key: 0,
|
|
1411
1385
|
uid: F.value,
|
|
1412
|
-
head:
|
|
1413
|
-
body:
|
|
1386
|
+
head: Ri.value.headers,
|
|
1387
|
+
body: Ri.value.rows,
|
|
1414
1388
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1415
1389
|
caption: L.value.a11y.translations.tableCaption
|
|
1416
1390
|
}, null, 8, [
|
|
@@ -1424,10 +1398,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1424
1398
|
key: 1,
|
|
1425
1399
|
color: L.value.style.chart.color,
|
|
1426
1400
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1427
|
-
active:
|
|
1401
|
+
active: yi.value,
|
|
1428
1402
|
svgRef: A(z),
|
|
1429
|
-
isCursorPointer:
|
|
1430
|
-
onClose:
|
|
1403
|
+
isCursorPointer: ar.value,
|
|
1404
|
+
onClose: bi
|
|
1431
1405
|
}, {
|
|
1432
1406
|
"annotator-action-close": j(() => [k(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1433
1407
|
"annotator-action-color": j(({ color: e }) => [k(t.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
|
|
@@ -1444,7 +1418,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1444
1418
|
"isCursorPointer"
|
|
1445
1419
|
])) : b("", !0),
|
|
1446
1420
|
k(t.$slots, "userConfig", {}, void 0, !0),
|
|
1447
|
-
|
|
1421
|
+
Tr.value ? (E(), x("div", {
|
|
1448
1422
|
key: 2,
|
|
1449
1423
|
ref_key: "noTitle",
|
|
1450
1424
|
ref: Ln,
|
|
@@ -1470,14 +1444,14 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1470
1444
|
}
|
|
1471
1445
|
}, null, 8, ["config"]))], 512)) : b("", !0),
|
|
1472
1446
|
S("div", { id: `legend-top-${F.value}` }, null, 8, at),
|
|
1473
|
-
L.value.userOptions.show && On.value && (A(
|
|
1447
|
+
L.value.userOptions.show && On.value && (A(_r) || A(hr)) ? (E(), y(A(xn), {
|
|
1474
1448
|
ref_key: "userOptionsRef",
|
|
1475
1449
|
ref: Un,
|
|
1476
|
-
key: `user_option_${
|
|
1450
|
+
key: `user_option_${rr.value}`,
|
|
1477
1451
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1478
1452
|
color: L.value.style.chart.color,
|
|
1479
|
-
isPrinting: A(
|
|
1480
|
-
isImaging: A(
|
|
1453
|
+
isPrinting: A(xr),
|
|
1454
|
+
isImaging: A(Sr),
|
|
1481
1455
|
uid: F.value,
|
|
1482
1456
|
hasTooltip: L.value.style.chart.tooltip.show && L.value.userOptions.buttons.tooltip,
|
|
1483
1457
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1488,28 +1462,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1488
1462
|
hasLabel: L.value.userOptions.buttons.labels,
|
|
1489
1463
|
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1490
1464
|
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1491
|
-
isFullscreen:
|
|
1465
|
+
isFullscreen: ui.value,
|
|
1492
1466
|
chartElement: N.value,
|
|
1493
1467
|
position: L.value.userOptions.position,
|
|
1494
1468
|
callbacks: L.value.userOptions.callbacks,
|
|
1495
1469
|
isTooltip: B.value.showTooltip,
|
|
1496
1470
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1497
1471
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1498
|
-
isAnnotation:
|
|
1472
|
+
isAnnotation: yi.value,
|
|
1499
1473
|
printScale: L.value.userOptions.print.scale,
|
|
1500
1474
|
tableDialog: L.value.table.useDialog,
|
|
1501
|
-
isCursorPointer:
|
|
1502
|
-
onToggleFullscreen:
|
|
1503
|
-
onGeneratePdf: A(
|
|
1504
|
-
onGenerateCsv:
|
|
1505
|
-
onGenerateImage:
|
|
1506
|
-
onGenerateSvg:
|
|
1507
|
-
onToggleTable:
|
|
1508
|
-
onToggleLabels:
|
|
1509
|
-
onToggleTooltip:
|
|
1510
|
-
onToggleAnnotator:
|
|
1511
|
-
onCopyAlt:
|
|
1512
|
-
style: T({ visibility: A(
|
|
1475
|
+
isCursorPointer: ar.value,
|
|
1476
|
+
onToggleFullscreen: di,
|
|
1477
|
+
onGeneratePdf: A(Cr),
|
|
1478
|
+
onGenerateCsv: ci,
|
|
1479
|
+
onGenerateImage: A(Mi),
|
|
1480
|
+
onGenerateSvg: A(ji),
|
|
1481
|
+
onToggleTable: gi,
|
|
1482
|
+
onToggleLabels: _i,
|
|
1483
|
+
onToggleTooltip: vi,
|
|
1484
|
+
onToggleAnnotator: bi,
|
|
1485
|
+
onCopyAlt: Ni,
|
|
1486
|
+
style: T({ visibility: A(_r) ? A(hr) ? "visible" : "hidden" : "visible" })
|
|
1513
1487
|
}, Re({ _: 2 }, [
|
|
1514
1488
|
t.$slots.menuIcon ? {
|
|
1515
1489
|
name: "menuIcon",
|
|
@@ -1585,23 +1559,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1585
1559
|
fn: j(() => [k(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1586
1560
|
key: "12"
|
|
1587
1561
|
} : void 0
|
|
1588
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : b("", !0),
|
|
1562
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
|
|
1589
1563
|
S("div", ot, [(E(), x("svg", {
|
|
1590
1564
|
ref_key: "svgRef",
|
|
1591
1565
|
ref: z,
|
|
1592
1566
|
xmlns: A(le),
|
|
1593
1567
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1594
1568
|
class: We({
|
|
1595
|
-
"vue-data-ui-fullscreen--on":
|
|
1596
|
-
"vue-data-ui-fulscreen--off": !
|
|
1569
|
+
"vue-data-ui-fullscreen--on": ui.value,
|
|
1570
|
+
"vue-data-ui-fulscreen--off": !ui.value,
|
|
1597
1571
|
"vue-data-ui-svg": !0
|
|
1598
1572
|
}),
|
|
1599
1573
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1600
|
-
style: T(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${
|
|
1574
|
+
style: T(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${br.value.css}`),
|
|
1601
1575
|
tabindex: "0",
|
|
1602
|
-
onFocus:
|
|
1603
|
-
onBlur:
|
|
1604
|
-
onKeydown:
|
|
1576
|
+
onFocus: Pi,
|
|
1577
|
+
onBlur: Fi,
|
|
1578
|
+
onKeydown: Ii
|
|
1605
1579
|
}, [S("g", {
|
|
1606
1580
|
ref_key: "G",
|
|
1607
1581
|
ref: kn,
|
|
@@ -1616,7 +1590,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1616
1590
|
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
1617
1591
|
style: { pointerEvents: "none" }
|
|
1618
1592
|
}, [k(t.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : b("", !0),
|
|
1619
|
-
L.value.type === "classic" && !isNaN(
|
|
1593
|
+
L.value.type === "classic" && !isNaN(Dr.value / G.value) ? (E(), x("defs", lt, [L.value.style.chart.useGradient ? (E(), y(Oe, {
|
|
1620
1594
|
key: 0,
|
|
1621
1595
|
t: "radial",
|
|
1622
1596
|
id: `gradient_${F.value}`,
|
|
@@ -1627,12 +1601,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1627
1601
|
0
|
|
1628
1602
|
],
|
|
1629
1603
|
[
|
|
1630
|
-
`${(1 -
|
|
1604
|
+
`${(1 - Dr.value / G.value) * 100}%`,
|
|
1631
1605
|
A(n)("#FFFFFF", 0),
|
|
1632
1606
|
0
|
|
1633
1607
|
],
|
|
1634
1608
|
[
|
|
1635
|
-
`${(1 -
|
|
1609
|
+
`${(1 - Dr.value / G.value / 2) * 100}%`,
|
|
1636
1610
|
A(n)("#FFFFFF", L.value.style.chart.gradientIntensity),
|
|
1637
1611
|
1
|
|
1638
1612
|
],
|
|
@@ -1710,13 +1684,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1710
1684
|
d: A(X)[t]?.connectorPath || A(ne)(e, {
|
|
1711
1685
|
x: V.value.width / 2,
|
|
1712
1686
|
y: V.value.height / 2
|
|
1713
|
-
}, 16, 16, !1, !1,
|
|
1687
|
+
}, 16, 16, !1, !1, Dr.value, 12, L.value.style.chart.layout.curvedMarkers),
|
|
1714
1688
|
stroke: e.color,
|
|
1715
1689
|
"stroke-width": "1",
|
|
1716
1690
|
"stroke-linecap": "round",
|
|
1717
1691
|
"stroke-linejoin": "round",
|
|
1718
1692
|
fill: "none",
|
|
1719
|
-
filter:
|
|
1693
|
+
filter: ai(t)
|
|
1720
1694
|
}, null, 8, _t)) : b("", !0)]))), 256)) : b("", !0),
|
|
1721
1695
|
L.value.type === "polar" ? (E(!0), x(_, { key: 4 }, O(K.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", null, [Y(e) && B.value.dataLabels.show ? (E(), x("path", {
|
|
1722
1696
|
key: 0,
|
|
@@ -1738,7 +1712,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1738
1712
|
"stroke-linecap": "round",
|
|
1739
1713
|
"stroke-linejoin": "round",
|
|
1740
1714
|
fill: "none",
|
|
1741
|
-
filter:
|
|
1715
|
+
filter: ai(t),
|
|
1742
1716
|
style: T({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1743
1717
|
}, null, 12, vt)) : b("", !0)]))), 256)) : b("", !0),
|
|
1744
1718
|
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (E(), x("circle", {
|
|
@@ -1765,7 +1739,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1765
1739
|
fill: e.color,
|
|
1766
1740
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1767
1741
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1768
|
-
filter:
|
|
1742
|
+
filter: ai(t)
|
|
1769
1743
|
}, null, 8, St))), 256)),
|
|
1770
1744
|
t.$slots.pattern ? (E(), x("g", Ct, [(E(!0), x(_, null, O(q.value, (e, t) => (E(), x("path", {
|
|
1771
1745
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1773,7 +1747,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1773
1747
|
fill: `url(#${e.pattern})`,
|
|
1774
1748
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1775
1749
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1776
|
-
filter:
|
|
1750
|
+
filter: ai(t)
|
|
1777
1751
|
}, null, 8, wt))), 256))])) : b("", !0)
|
|
1778
1752
|
], 64)) : b("", !0),
|
|
1779
1753
|
Z.value && L.value.type === "polar" ? (E(), x(_, { key: 8 }, [K.value.length > 1 ? (E(), x("g", Tt, [
|
|
@@ -1798,7 +1772,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1798
1772
|
fill: `url(#${e.pattern})`,
|
|
1799
1773
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1800
1774
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1801
|
-
filter:
|
|
1775
|
+
filter: ai(t),
|
|
1802
1776
|
style: T({
|
|
1803
1777
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1804
1778
|
transformOrigin: "center"
|
|
@@ -1810,7 +1784,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1810
1784
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_${t}_${F.value})` : e.color,
|
|
1811
1785
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1812
1786
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1813
|
-
filter:
|
|
1787
|
+
filter: ai(t),
|
|
1814
1788
|
style: T({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1815
1789
|
}, null, 12, jt))), 256))
|
|
1816
1790
|
])) : (E(), x("g", Mt, [t.$slots.pattern ? (E(), x("circle", {
|
|
@@ -1828,7 +1802,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1828
1802
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_0_${F.value})` : K.value[0].color,
|
|
1829
1803
|
stroke: L.value.style.chart.backgroundColor,
|
|
1830
1804
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1831
|
-
}, null, 8, Pt)]))], 64)) : (E(), x(_, { key: 9 }, [L.value.type === "classic" && !
|
|
1805
|
+
}, null, 8, Pt)]))], 64)) : (E(), x(_, { key: 9 }, [L.value.type === "classic" && !Ur.value ? (E(), x("g", Ft, [(E(!0), x(_, null, O(Wr.value, (e, t) => (E(), x("path", {
|
|
1832
1806
|
class: "vue-ui-donut-arc-path",
|
|
1833
1807
|
d: e.arcSlice,
|
|
1834
1808
|
fill: e.color,
|
|
@@ -1855,7 +1829,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1855
1829
|
fill: "none",
|
|
1856
1830
|
cx: V.value.width / 2,
|
|
1857
1831
|
cy: V.value.height / 2,
|
|
1858
|
-
r: Math.max(.1,
|
|
1832
|
+
r: Math.max(.1, Dr.value * 1.7)
|
|
1859
1833
|
}, null, 8, zt),
|
|
1860
1834
|
Z.value ? (E(), x(_, { key: 11 }, [K.value.length > 1 || L.value.type === "classic" ? (E(), x("g", Bt, [(E(!0), x(_, null, O(K.value.filter((e) => !e.ghost), (e, t) => (E(), x("path", {
|
|
1861
1835
|
d: L.value.type === "classic" ? e.arcSlice : J.value[t].path,
|
|
@@ -1867,7 +1841,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1867
1841
|
seriesIndex: e.seriesIndex,
|
|
1868
1842
|
show: !0
|
|
1869
1843
|
}),
|
|
1870
|
-
onMouseleave: (t) =>
|
|
1844
|
+
onMouseleave: (t) => ti({
|
|
1871
1845
|
datapoint: e,
|
|
1872
1846
|
seriesIndex: e.seriesIndex
|
|
1873
1847
|
}),
|
|
@@ -1883,7 +1857,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1883
1857
|
seriesIndex: K.value[0].seriesIndex,
|
|
1884
1858
|
show: !0
|
|
1885
1859
|
}),
|
|
1886
|
-
onMouseleave: r[1] ||= (e) =>
|
|
1860
|
+
onMouseleave: r[1] ||= (e) => ti({
|
|
1887
1861
|
datapoint: K.value[0],
|
|
1888
1862
|
seriesIndex: K.value[0].seriesIndex
|
|
1889
1863
|
}),
|
|
@@ -1934,31 +1908,31 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1934
1908
|
fill: L.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1935
1909
|
"font-size": L.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1936
1910
|
style: T(`font-weight:${L.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1937
|
-
}, Ye(
|
|
1911
|
+
}, Ye(Ar.value || R.value ? "--" : A(m)(L.value.style.chart.layout.labels.hollow.average.value.formatter, A(ae)(Zr.value), A(d)({
|
|
1938
1912
|
p: L.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1939
|
-
v: A(ae)(
|
|
1913
|
+
v: A(ae)(Zr.value),
|
|
1940
1914
|
s: L.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1941
1915
|
r: L.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1942
1916
|
}))), 13, qt)) : b("", !0)
|
|
1943
1917
|
], 512)) : b("", !0),
|
|
1944
1918
|
(E(!0), x(_, null, O(q.value.filter((e) => !e.ghost), (e, n) => (E(), x("g", {
|
|
1945
|
-
filter:
|
|
1919
|
+
filter: ai(n),
|
|
1946
1920
|
key: e.seriesIndex,
|
|
1947
|
-
opacity:
|
|
1921
|
+
opacity: oi(e)
|
|
1948
1922
|
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (E(), x("g", Yt, [(E(), x("foreignObject", {
|
|
1949
1923
|
x: A(p)(e, !0).anchor === "end" ? A(p)(e).x - 120 : A(p)(e, !0).anchor === "middle" ? A(p)(e).x - 60 : A(p)(e).x,
|
|
1950
|
-
y: A(g)(e) - (
|
|
1924
|
+
y: A(g)(e) - (fi.value ? 20 : 0),
|
|
1951
1925
|
width: "120",
|
|
1952
1926
|
height: "60",
|
|
1953
1927
|
style: { overflow: "visible" }
|
|
1954
1928
|
}, [S("div", null, [k(t.$slots, "dataLabel", He({ ref_for: !0 }, {
|
|
1955
1929
|
datapoint: e,
|
|
1956
1930
|
isBlur: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === n,
|
|
1957
|
-
isSafari:
|
|
1931
|
+
isSafari: fi.value,
|
|
1958
1932
|
isVisible: Y(e) && B.value.dataLabels.show,
|
|
1959
1933
|
textAlign: A(p)(e, !0, 16, !0).anchor,
|
|
1960
1934
|
flexAlign: A(p)(e, !0, 16).anchor,
|
|
1961
|
-
percentage:
|
|
1935
|
+
percentage: Jr(e, q.value)
|
|
1962
1936
|
}), void 0, !0)])], 8, Xt))])) : (E(), x("g", Zt, [L.value.type === "classic" ? (E(), x(_, { key: 0 }, [Y(e) && B.value.dataLabels.show ? (E(), x("circle", {
|
|
1963
1937
|
key: 0,
|
|
1964
1938
|
cx: A(X)[n]?.markerX ?? A(p)(e).x,
|
|
@@ -1975,7 +1949,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1975
1949
|
seriesIndex: e.seriesIndex,
|
|
1976
1950
|
show: !0
|
|
1977
1951
|
}),
|
|
1978
|
-
onMouseleave: (t) =>
|
|
1952
|
+
onMouseleave: (t) => ti({
|
|
1979
1953
|
datapoint: e,
|
|
1980
1954
|
seriesIndex: e.seriesIndex
|
|
1981
1955
|
})
|
|
@@ -1992,18 +1966,18 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1992
1966
|
seriesIndex: e.seriesIndex,
|
|
1993
1967
|
show: !0
|
|
1994
1968
|
}),
|
|
1995
|
-
onMouseleave: (t) =>
|
|
1969
|
+
onMouseleave: (t) => ti({
|
|
1996
1970
|
datapoint: e,
|
|
1997
1971
|
seriesIndex: e.seriesIndex
|
|
1998
1972
|
}),
|
|
1999
|
-
innerHTML:
|
|
1973
|
+
innerHTML: ri(e, n, !!A(X)[n])
|
|
2000
1974
|
}, null, 40, $t)), [[Qe, Y(e) && B.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [et(S("text", {
|
|
2001
1975
|
class: "vue-data-ui-datalabel-value",
|
|
2002
1976
|
"text-anchor": A(X)[n]?.textAnchor || A(p)(e, !0, 12).anchor,
|
|
2003
1977
|
x: A(X)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
2004
1978
|
y: A(X)[n]?.labelY ?? A(g)(e),
|
|
2005
1979
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2006
|
-
"font-size":
|
|
1980
|
+
"font-size": Jn.value + "px",
|
|
2007
1981
|
style: T(`font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
2008
1982
|
onClick: (t) => $(e, n),
|
|
2009
1983
|
onMouseenter: (t) => Q({
|
|
@@ -2012,11 +1986,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2012
1986
|
seriesIndex: e.seriesIndex,
|
|
2013
1987
|
show: !0
|
|
2014
1988
|
}),
|
|
2015
|
-
onMouseleave: (t) =>
|
|
1989
|
+
onMouseleave: (t) => ti({
|
|
2016
1990
|
datapoint: e,
|
|
2017
1991
|
seriesIndex: e.seriesIndex
|
|
2018
1992
|
})
|
|
2019
|
-
}, Ye(
|
|
1993
|
+
}, Ye(hi(e)), 45, en), [[Qe, Y(e) && B.value.dataLabels.show]]), et(S("text", {
|
|
2020
1994
|
class: "vue-data-ui-datalabel-name",
|
|
2021
1995
|
"text-anchor": A(X)[n]?.textAnchor || A(p)(e).anchor,
|
|
2022
1996
|
x: A(X)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
@@ -2031,7 +2005,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2031
2005
|
seriesIndex: e.seriesIndex,
|
|
2032
2006
|
show: !0
|
|
2033
2007
|
}),
|
|
2034
|
-
onMouseleave: (t) =>
|
|
2008
|
+
onMouseleave: (t) => ti({
|
|
2035
2009
|
datapoint: e,
|
|
2036
2010
|
seriesIndex: e.seriesIndex
|
|
2037
2011
|
}),
|
|
@@ -2070,7 +2044,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2070
2044
|
seriesIndex: e.seriesIndex,
|
|
2071
2045
|
show: !0
|
|
2072
2046
|
}),
|
|
2073
|
-
onMouseleave: (t) =>
|
|
2047
|
+
onMouseleave: (t) => ti({
|
|
2074
2048
|
datapoint: e,
|
|
2075
2049
|
seriesIndex: e.seriesIndex
|
|
2076
2050
|
}),
|
|
@@ -2078,7 +2052,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2078
2052
|
}, null, 44, nn)) : b("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine ? et((E(), x("text", {
|
|
2079
2053
|
key: 1,
|
|
2080
2054
|
class: "vue-data-ui-datalabel-inline",
|
|
2081
|
-
"text-anchor":
|
|
2055
|
+
"text-anchor": Gr(J.value[n].middlePoint),
|
|
2082
2056
|
x: A(s)({
|
|
2083
2057
|
initX: J.value[n].middlePoint.x,
|
|
2084
2058
|
initY: J.value[n].middlePoint.y,
|
|
@@ -2101,15 +2075,15 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2101
2075
|
seriesIndex: e.seriesIndex,
|
|
2102
2076
|
show: !0
|
|
2103
2077
|
}),
|
|
2104
|
-
onMouseleave: (t) =>
|
|
2078
|
+
onMouseleave: (t) => ti({
|
|
2105
2079
|
datapoint: e,
|
|
2106
2080
|
seriesIndex: e.seriesIndex
|
|
2107
2081
|
}),
|
|
2108
|
-
innerHTML:
|
|
2082
|
+
innerHTML: ii(e, n)
|
|
2109
2083
|
}, null, 44, rn)), [[Qe, Y(e) && B.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [Y(e) && B.value.dataLabels.show ? (E(), x("text", {
|
|
2110
2084
|
key: 0,
|
|
2111
2085
|
class: "vue-data-ui-datalabel-value",
|
|
2112
|
-
"text-anchor":
|
|
2086
|
+
"text-anchor": Gr(J.value[n].middlePoint),
|
|
2113
2087
|
x: A(s)({
|
|
2114
2088
|
initX: J.value[n].middlePoint.x,
|
|
2115
2089
|
initY: J.value[n].middlePoint.y,
|
|
@@ -2125,7 +2099,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2125
2099
|
centerY: V.value.height / 2
|
|
2126
2100
|
}).y,
|
|
2127
2101
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2128
|
-
"font-size":
|
|
2102
|
+
"font-size": Jn.value,
|
|
2129
2103
|
style: T({
|
|
2130
2104
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2131
2105
|
fontWeight: L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
@@ -2137,14 +2111,14 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2137
2111
|
seriesIndex: e.seriesIndex,
|
|
2138
2112
|
show: !0
|
|
2139
2113
|
}),
|
|
2140
|
-
onMouseleave: (t) =>
|
|
2114
|
+
onMouseleave: (t) => ti({
|
|
2141
2115
|
datapoint: e,
|
|
2142
2116
|
seriesIndex: e.seriesIndex
|
|
2143
2117
|
})
|
|
2144
|
-
}, Ye(
|
|
2118
|
+
}, Ye(hi(e)), 45, an)) : b("", !0), Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show ? (E(), x("text", {
|
|
2145
2119
|
key: 1,
|
|
2146
2120
|
class: "vue-data-ui-datalabel-name",
|
|
2147
|
-
"text-anchor":
|
|
2121
|
+
"text-anchor": Gr(J.value[n].middlePoint),
|
|
2148
2122
|
x: A(s)({
|
|
2149
2123
|
initX: J.value[n].middlePoint.x,
|
|
2150
2124
|
initY: J.value[n].middlePoint.y,
|
|
@@ -2172,7 +2146,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2172
2146
|
seriesIndex: e.seriesIndex,
|
|
2173
2147
|
show: !0
|
|
2174
2148
|
}),
|
|
2175
|
-
onMouseleave: (t) =>
|
|
2149
|
+
onMouseleave: (t) => ti({
|
|
2176
2150
|
datapoint: e,
|
|
2177
2151
|
seriesIndex: e.seriesIndex
|
|
2178
2152
|
}),
|
|
@@ -2212,13 +2186,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2212
2186
|
isFirstLoad: R.value
|
|
2213
2187
|
} }, void 0, !0)])], 8, cn)) : b("", !0), Y(e) && L.value.type === "polar" ? (E(), x("foreignObject", {
|
|
2214
2188
|
key: 1,
|
|
2215
|
-
x: L.value.style.chart.comments.offsetX + (
|
|
2189
|
+
x: L.value.style.chart.comments.offsetX + (Gr(J.value[n].middlePoint) === "end" ? A(s)({
|
|
2216
2190
|
initX: J.value[n].middlePoint.x,
|
|
2217
2191
|
initY: J.value[n].middlePoint.y,
|
|
2218
2192
|
offset: 42,
|
|
2219
2193
|
centerX: V.value.width / 2,
|
|
2220
2194
|
centerY: V.value.height / 2
|
|
2221
|
-
}).x - L.value.style.chart.comments.width :
|
|
2195
|
+
}).x - L.value.style.chart.comments.width : Gr(J.value[n].middlePoint) === "middle" ? A(s)({
|
|
2222
2196
|
initX: J.value[n].middlePoint.x,
|
|
2223
2197
|
initY: J.value[n].middlePoint.y,
|
|
2224
2198
|
offset: 42,
|
|
@@ -2231,7 +2205,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2231
2205
|
centerX: V.value.width / 2,
|
|
2232
2206
|
centerY: V.value.height / 2
|
|
2233
2207
|
}).x),
|
|
2234
|
-
y:
|
|
2208
|
+
y: Kr(J.value[n]) + L.value.style.chart.comments.offsetY,
|
|
2235
2209
|
width: L.value.style.chart.comments.width,
|
|
2236
2210
|
height: "200",
|
|
2237
2211
|
style: T({
|
|
@@ -2241,21 +2215,21 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2241
2215
|
})
|
|
2242
2216
|
}, [S("div", null, [k(t.$slots, "plot-comment", { plot: {
|
|
2243
2217
|
...e,
|
|
2244
|
-
textAlign:
|
|
2245
|
-
flexAlign:
|
|
2218
|
+
textAlign: Gr(J.value[n].middlePoint),
|
|
2219
|
+
flexAlign: Gr(J.value[n].middlePoint),
|
|
2246
2220
|
isFirstLoad: R.value
|
|
2247
2221
|
} }, void 0, !0)])], 12, ln)) : b("", !0)])) : b("", !0)], 8, Jt))), 128)),
|
|
2248
2222
|
k(t.$slots, "svg", { svg: {
|
|
2249
2223
|
...V.value,
|
|
2250
2224
|
datapoints: K.value,
|
|
2251
|
-
isPrintingImg: A(
|
|
2252
|
-
isPrintingSvg:
|
|
2225
|
+
isPrintingImg: A(xr) || A(Sr) || A(ki),
|
|
2226
|
+
isPrintingSvg: A(Ai)
|
|
2253
2227
|
} }, void 0, !0)
|
|
2254
2228
|
], 512)], 46, st)), t.$slots.hint ? (E(), x("div", un, [k(t.$slots, "hint", w(C({
|
|
2255
2229
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
2256
|
-
isVisible:
|
|
2230
|
+
isVisible: qn.value
|
|
2257
2231
|
})), void 0, !0)])) : b("", !0)]),
|
|
2258
|
-
t.$slots.watermark ? (E(), x("div", dn, [k(t.$slots, "watermark", w(C({ isPrinting: A(
|
|
2232
|
+
t.$slots.watermark ? (E(), x("div", dn, [k(t.$slots, "watermark", w(C({ isPrinting: A(xr) || A(Sr) || A(ki) || A(Ai) })), void 0, !0)])) : b("", !0),
|
|
2259
2233
|
S("div", { id: `legend-bottom-${F.value}` }, null, 8, fn),
|
|
2260
2234
|
Vn.value && (L.value.style.chart.legend.show || t.$slots.legend) ? (E(), y(Le, {
|
|
2261
2235
|
key: 6,
|
|
@@ -2263,25 +2237,25 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2263
2237
|
}, [S("div", {
|
|
2264
2238
|
ref_key: "chartLegend",
|
|
2265
2239
|
ref: Nn
|
|
2266
|
-
}, [k(t.$slots, "legend", { legend:
|
|
2240
|
+
}, [k(t.$slots, "legend", { legend: Vr.value }, () => [L.value.style.chart.legend.show ? (E(), y(Ie, {
|
|
2267
2241
|
key: `legend_${Bn.value}`,
|
|
2268
|
-
legendSet:
|
|
2269
|
-
config:
|
|
2270
|
-
onClickMarker: r[3] ||= ({ i: e }) =>
|
|
2271
|
-
isCursorPointer:
|
|
2242
|
+
legendSet: Vr.value,
|
|
2243
|
+
config: Hr.value,
|
|
2244
|
+
onClickMarker: r[3] ||= ({ i: e }) => Fr(e),
|
|
2245
|
+
isCursorPointer: ar.value
|
|
2272
2246
|
}, Re({
|
|
2273
2247
|
item: j(({ legend: e, index: t }) => [S("div", {
|
|
2274
2248
|
style: T(`opacity:${W.value.includes(t) ? .5 : 1}`),
|
|
2275
2249
|
onClick: (t) => e.segregate()
|
|
2276
2250
|
}, Ye(e.display), 13, pn)]),
|
|
2277
|
-
legendToggle: j(() => [
|
|
2251
|
+
legendToggle: j(() => [Vr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !A(sr) ? (E(), y(ke, {
|
|
2278
2252
|
key: 0,
|
|
2279
2253
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2280
2254
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
2281
2255
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
2282
2256
|
checked: W.value.length > 0,
|
|
2283
|
-
isCursorPointer:
|
|
2284
|
-
onToggle:
|
|
2257
|
+
isCursorPointer: ar.value,
|
|
2258
|
+
onToggle: Pr
|
|
2285
2259
|
}, null, 8, [
|
|
2286
2260
|
"backgroundColor",
|
|
2287
2261
|
"color",
|
|
@@ -2316,13 +2290,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2316
2290
|
}, [k(t.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
2317
2291
|
t.$slots.hollow ? (E(), x("div", mn, [k(t.$slots, "hollow", w(C({
|
|
2318
2292
|
total: Z.value,
|
|
2319
|
-
average:
|
|
2293
|
+
average: Zr.value,
|
|
2320
2294
|
dataset: H.value,
|
|
2321
2295
|
...V.value
|
|
2322
2296
|
})), void 0, !0)])) : b("", !0),
|
|
2323
2297
|
Be(A(gn), {
|
|
2324
2298
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
2325
|
-
show: B.value.showTooltip &&
|
|
2299
|
+
show: B.value.showTooltip && tr.value,
|
|
2326
2300
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
2327
2301
|
color: L.value.style.chart.tooltip.color,
|
|
2328
2302
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -2334,19 +2308,19 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2334
2308
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
2335
2309
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
2336
2310
|
parent: N.value,
|
|
2337
|
-
content:
|
|
2338
|
-
isCustom:
|
|
2339
|
-
isFullscreen:
|
|
2311
|
+
content: nr.value,
|
|
2312
|
+
isCustom: ei.value,
|
|
2313
|
+
isFullscreen: ui.value,
|
|
2340
2314
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
2341
2315
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
2342
2316
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
2343
2317
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThrehsold,
|
|
2344
|
-
isA11yMode:
|
|
2345
|
-
a11yPosition:
|
|
2318
|
+
isA11yMode: Kn.value === "keyboard",
|
|
2319
|
+
a11yPosition: Gn.value
|
|
2346
2320
|
}, {
|
|
2347
|
-
"tooltip-before": j(() => [k(t.$slots, "tooltip-before", w(C({
|
|
2348
|
-
tooltip: j(() => [k(t.$slots, "tooltip", w(C({
|
|
2349
|
-
"tooltip-after": j(() => [k(t.$slots, "tooltip-after", w(C({
|
|
2321
|
+
"tooltip-before": j(() => [k(t.$slots, "tooltip-before", w(C({ ...$r.value })), void 0, !0)]),
|
|
2322
|
+
tooltip: j(() => [k(t.$slots, "tooltip", w(C({ ...$r.value })), void 0, !0)]),
|
|
2323
|
+
"tooltip-after": j(() => [k(t.$slots, "tooltip-after", w(C({ ...$r.value })), void 0, !0)]),
|
|
2350
2324
|
_: 3
|
|
2351
2325
|
}, 8, [
|
|
2352
2326
|
"teleportTo",
|
|
@@ -2372,21 +2346,21 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2372
2346
|
"isA11yMode",
|
|
2373
2347
|
"a11yPosition"
|
|
2374
2348
|
]),
|
|
2375
|
-
On.value && L.value.userOptions.buttons.table ? (E(), y(qe(
|
|
2349
|
+
On.value && L.value.userOptions.buttons.table ? (E(), y(qe(Ci.value.component), He({ key: 9 }, Ci.value.props, {
|
|
2376
2350
|
ref_key: "tableUnit",
|
|
2377
2351
|
ref: Hn,
|
|
2378
|
-
onClose:
|
|
2352
|
+
onClose: wi
|
|
2379
2353
|
}), Re({
|
|
2380
2354
|
content: j(() => [(E(), y(A(yn), {
|
|
2381
2355
|
key: `table_${zn.value}`,
|
|
2382
|
-
colNames:
|
|
2383
|
-
head:
|
|
2384
|
-
body:
|
|
2385
|
-
config:
|
|
2386
|
-
title: L.value.table.useDialog ? "" :
|
|
2356
|
+
colNames: li.value.colNames,
|
|
2357
|
+
head: li.value.head,
|
|
2358
|
+
body: li.value.body,
|
|
2359
|
+
config: li.value.config,
|
|
2360
|
+
title: L.value.table.useDialog ? "" : Ci.value.title,
|
|
2387
2361
|
withCloseButton: !L.value.table.useDialog,
|
|
2388
|
-
isCursorPointer:
|
|
2389
|
-
onClose:
|
|
2362
|
+
isCursorPointer: ar.value,
|
|
2363
|
+
onClose: wi
|
|
2390
2364
|
}, {
|
|
2391
2365
|
th: j(({ th: e }) => [S("div", {
|
|
2392
2366
|
innerHTML: e,
|
|
@@ -2418,24 +2392,24 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2418
2392
|
_: 2
|
|
2419
2393
|
}, [L.value.table.useDialog ? {
|
|
2420
2394
|
name: "title",
|
|
2421
|
-
fn: j(() => [ze(Ye(
|
|
2395
|
+
fn: j(() => [ze(Ye(Ci.value.title), 1)]),
|
|
2422
2396
|
key: "0"
|
|
2423
2397
|
} : void 0, L.value.table.useDialog ? {
|
|
2424
2398
|
name: "actions",
|
|
2425
2399
|
fn: j(() => [S("button", {
|
|
2426
2400
|
tabindex: "0",
|
|
2427
2401
|
class: "vue-ui-user-options-button",
|
|
2428
|
-
onClick: r[4] ||= (e) =>
|
|
2429
|
-
style: T({ cursor:
|
|
2402
|
+
onClick: r[4] ||= (e) => ci(L.value.userOptions.callbacks.csv),
|
|
2403
|
+
style: T({ cursor: ar.value ? "pointer" : "default" })
|
|
2430
2404
|
}, [Be(A(_n), {
|
|
2431
2405
|
name: "fileCsv",
|
|
2432
|
-
stroke:
|
|
2406
|
+
stroke: Ci.value.props.color
|
|
2433
2407
|
}, null, 8, ["stroke"])], 4)]),
|
|
2434
2408
|
key: "1"
|
|
2435
2409
|
} : void 0]), 1040)) : b("", !0),
|
|
2436
|
-
k(t.$slots, "skeleton", {}, () => [A(
|
|
2410
|
+
k(t.$slots, "skeleton", {}, () => [A(sr) ? (E(), y(ve, { key: 0 })) : b("", !0)], !0)
|
|
2437
2411
|
], 46, rt));
|
|
2438
2412
|
}
|
|
2439
|
-
}, [["__scopeId", "data-v-
|
|
2413
|
+
}, [["__scopeId", "data-v-593004f0"]]);
|
|
2440
2414
|
//#endregion
|
|
2441
2415
|
export { nt as n, gn as t };
|