vue-data-ui 3.4.9 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-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-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-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
15
|
-
import
|
|
16
|
-
import { S as
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
1
|
+
import { defineAsyncComponent as B, ref as i, shallowRef as xt, computed as y, onMounted as dl, toRefs as hl, nextTick as Ie, watch as ie, watchEffect as yl, onBeforeUnmount as gl, createElementBlock as s, openBlock as u, unref as c, normalizeStyle as te, normalizeClass as P, createBlock as D, createCommentVNode as v, createElementVNode as m, withCtx as f, renderSlot as p, normalizeProps as R, guardReactiveProps as E, createSlots as kt, createVNode as wt, Fragment as $, renderList as z, toDisplayString as C, Teleport as fl, resolveDynamicComponent as bl, mergeProps as ml, createTextVNode as Te } from "vue";
|
|
2
|
+
import { c as Ct, o as Lt, f as ce, g as pl, t as xl, b as kl, p as ve, O as _t, e as wl, h as De, a1 as Cl, m as At, T as Oe, a as Ne, d as de, X as Ll, s as le, a2 as _l, M as Al, V as Sl, W as $l, Y as St, P as zl, Q as Il, a3 as $t, a4 as Tl } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as zt, u as Dl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ol, a as It } from "./useNestedProp-DjGXw6S9.js";
|
|
5
|
+
import { u as Nl } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
+
import { u as Pl, B as Rl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as El } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Fl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Bl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Ml } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import Hl from "./img-BecE5qXd.js";
|
|
13
|
+
import Ul from "./Title-isbiM8i8.js";
|
|
14
|
+
import { t as Xl } from "./themes-AUNCOb2G.js";
|
|
15
|
+
import Wl from "./Legend-G6GMcdAc.js";
|
|
16
|
+
import { S as Gl } from "./Slicer-D2wm0coO.js";
|
|
17
|
+
import { _ as Yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const jl = ["id"], ql = ["id"], Ql = ["xmlns", "viewBox"], Jl = ["x", "y", "width", "height"], Kl = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["id"], la = ["stop-color"], aa = ["stop-color"], oa = ["stop-color"], ua = { key: 1 }, na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ra = { key: 0 }, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["font-size", "fill", "transform"], va = ["x", "y", "font-size", "fill"], da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x", "y", "font-size", "fill", "font-weight"], ya = { key: 0 }, ga = ["text-anchor", "font-size", "fill", "transform"], fa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = { key: 1 }, pa = ["cx", "cy", "r", "fill"], xa = { key: 0 }, ka = { key: 0 }, wa = ["d", "stroke"], Ca = ["text-anchor", "x", "y", "fill"], La = ["cx", "cy", "r", "fill"], _a = { key: 0 }, Aa = ["cx", "cy", "fill"], Sa = { key: 1 }, $a = ["d", "fill", "stroke"], za = { key: 2 }, Ia = ["d", "fill", "stroke"], Ta = ["x", "y", "font-size", "fill"], Da = ["x", "y", "width", "height", "fill"], Oa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Na = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, Pa = ["id"], Ra = ["onClick"], Ea = { key: 0 }, Fa = { key: 1 }, Va = {
|
|
22
22
|
__name: "vue-ui-donut-evolution",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -35,58 +35,58 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
|
|
38
|
+
setup(Tt, { expose: Dt, emit: Ot }) {
|
|
39
|
+
const Nt = B(() => import("./vue-ui-accordion-CqhVCfc2.js")), Pt = B(() => import("./BaseIcon-BmMbm4d0.js")), Rt = B(() => import("./DataTable-BT7VF2ua.js")), Et = B(() => import("./PackageVersion-DQvyATVa.js")), Ft = B(() => import("./PenAndPaper-SZQIAgkg.js")), Vt = B(() => import("./UserOptions-CGnQt6Fd.js")), Bt = B(() => import("./vue-ui-donut-CxZcJFTo.js")), Pe = B(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_donut_evolution: Mt } = Ol(), x = Tt, O = i(Ct()), w = i([]), b = i(null), ae = i(null), he = i(!1), M = i(null), F = i(null), Ht = i(null), Re = i(0), Ee = i(0), Fe = i(0), Ve = i(0), Be = i(0), ye = i(null), oe = i(null), ge = i(null), fe = i(null), Me = i(!1), Q = i(null), be = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), me = i(!1), J = xt(null), ue = xt(null), Ye = i(null), je = Ot, qe = y(() => !!x.dataset && x.dataset.length);
|
|
40
|
+
dl(() => {
|
|
41
41
|
Me.value = !0, Qe();
|
|
42
42
|
});
|
|
43
|
-
const
|
|
43
|
+
const ne = y(() => !!e.value.debug);
|
|
44
44
|
function Qe() {
|
|
45
|
-
if (
|
|
45
|
+
if (Lt(x.dataset) ? (ce({
|
|
46
46
|
componentName: "VueUiDonutEvolution",
|
|
47
47
|
type: "dataset",
|
|
48
|
-
debug:
|
|
49
|
-
}), se.value = !0) :
|
|
50
|
-
|
|
48
|
+
debug: ne.value
|
|
49
|
+
}), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
|
|
50
|
+
pl({
|
|
51
51
|
datasetObject: t,
|
|
52
52
|
requiredAttributes: ["name", "values"]
|
|
53
53
|
}).forEach((l) => {
|
|
54
|
-
|
|
54
|
+
ce({
|
|
55
55
|
componentName: "VueUiDonutEvolution",
|
|
56
56
|
type: "datasetSerieAttribute",
|
|
57
57
|
property: l,
|
|
58
58
|
index: a,
|
|
59
|
-
debug:
|
|
59
|
+
debug: ne.value
|
|
60
60
|
}), se.value = !0;
|
|
61
61
|
});
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
}, 10),
|
|
65
|
-
const t =
|
|
66
|
-
|
|
67
|
-
const { width: a, height: l } =
|
|
68
|
-
chart:
|
|
62
|
+
}), Lt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
|
|
63
|
+
me.value = !0;
|
|
64
|
+
}, 10), xe(), e.value.responsive) {
|
|
65
|
+
const t = zt(() => {
|
|
66
|
+
me.value = !1;
|
|
67
|
+
const { width: a, height: l } = Dl({
|
|
68
|
+
chart: F.value,
|
|
69
69
|
title: e.value.style.chart.title.text ? He.value : null,
|
|
70
70
|
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
71
71
|
slicer: e.value.style.chart.zoom.show && Ke.value > 1 ? Ge.value : null,
|
|
72
72
|
source: Xe.value
|
|
73
73
|
});
|
|
74
74
|
requestAnimationFrame(() => {
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
G.value.width = a, G.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
|
|
76
|
+
me.value = !0;
|
|
77
77
|
}, 10);
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
J.value && (ue.value && J.value.unobserve(ue.value), J.value.disconnect()), J.value = new ResizeObserver(t), ue.value = F.value.parentNode, J.value.observe(ue.value);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const e = i(
|
|
84
|
-
...
|
|
83
|
+
const e = i(Ce()), { loading: Je, FINAL_DATASET: pe, manualLoading: se } = Pl({
|
|
84
|
+
...hl(x),
|
|
85
85
|
FINAL_CONFIG: e,
|
|
86
|
-
prepareConfig:
|
|
86
|
+
prepareConfig: Ce,
|
|
87
87
|
callback: () => {
|
|
88
88
|
Promise.resolve().then(async () => {
|
|
89
|
-
await
|
|
89
|
+
await xe();
|
|
90
90
|
});
|
|
91
91
|
},
|
|
92
92
|
skeletonDataset: [
|
|
@@ -106,7 +106,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
106
106
|
color: "#CACACA"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
-
skeletonConfig:
|
|
109
|
+
skeletonConfig: xl({
|
|
110
110
|
defaultConfig: e.value,
|
|
111
111
|
userConfig: {
|
|
112
112
|
useCssAnimation: !1,
|
|
@@ -148,173 +148,173 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
})
|
|
151
|
-
}),
|
|
151
|
+
}), G = i({
|
|
152
152
|
width: e.value.style.chart.layout.width,
|
|
153
153
|
height: e.value.style.chart.layout.height
|
|
154
|
-
}), Ke = y(() => Math.max(...
|
|
154
|
+
}), Ke = y(() => Math.max(...pe.value.map((t) => t.values.length))), h = i({
|
|
155
155
|
start: 0,
|
|
156
156
|
end: Ke.value
|
|
157
157
|
});
|
|
158
158
|
function Ze() {
|
|
159
|
-
|
|
159
|
+
xe();
|
|
160
160
|
}
|
|
161
|
-
async function
|
|
161
|
+
async function xe() {
|
|
162
162
|
await Ie(), await Ie();
|
|
163
163
|
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = We.value;
|
|
164
|
-
h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(
|
|
164
|
+
h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Ut(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
|
|
165
165
|
start: 0,
|
|
166
166
|
end: I.value
|
|
167
|
-
},
|
|
167
|
+
}, Ee.value += 1);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ut(t) {
|
|
170
170
|
const a = I.value;
|
|
171
171
|
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
172
172
|
}
|
|
173
|
-
const { userOptionsVisible:
|
|
174
|
-
function
|
|
175
|
-
const t =
|
|
176
|
-
userConfig:
|
|
177
|
-
defaultConfig:
|
|
173
|
+
const { userOptionsVisible: ke, setUserOptionsVisibility: et, keepUserOptionState: tt } = Vl({ config: e.value }), { svgRef: we } = Bl({ config: e.value.style.chart.title });
|
|
174
|
+
function Ce() {
|
|
175
|
+
const t = It({
|
|
176
|
+
userConfig: x.config,
|
|
177
|
+
defaultConfig: Mt
|
|
178
178
|
});
|
|
179
179
|
let a = {};
|
|
180
180
|
return t.theme ? a = {
|
|
181
|
-
...
|
|
182
|
-
userConfig:
|
|
181
|
+
...It({
|
|
182
|
+
userConfig: Xl.vue_ui_donut_evolution[t.theme] || x.config,
|
|
183
183
|
defaultConfig: t
|
|
184
184
|
}),
|
|
185
|
-
customPalette:
|
|
186
|
-
} : a = t,
|
|
185
|
+
customPalette: kl[t.theme] || ve
|
|
186
|
+
} : a = t, x.config && _t(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && _t(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
Je.value || (e.value =
|
|
190
|
-
}, { deep: !0 }),
|
|
188
|
+
ie(() => x.config, (t) => {
|
|
189
|
+
Je.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, Qe(), Fe.value += 1, Ve.value += 1, Be.value += 1, H.value.showTable = e.value.table.show;
|
|
190
|
+
}, { deep: !0 }), ie(() => x.dataset, (t) => {
|
|
191
191
|
Array.isArray(t) && t.length > 0 && (se.value = !1), Ze();
|
|
192
192
|
}, { deep: !0 });
|
|
193
|
-
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } =
|
|
194
|
-
elementId:
|
|
193
|
+
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Nl({
|
|
194
|
+
elementId: O.value,
|
|
195
195
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
196
196
|
options: e.value.userOptions.print
|
|
197
|
-
}),
|
|
197
|
+
}), Xt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Wt = y(() => wl(e.value.customPalette)), H = i({
|
|
198
198
|
showTable: e.value.table.show
|
|
199
199
|
});
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
ie(e, () => {
|
|
201
|
+
H.value = {
|
|
202
202
|
showTable: e.value.table.show
|
|
203
203
|
};
|
|
204
204
|
}, { immediate: !0 });
|
|
205
|
-
const
|
|
205
|
+
const U = y(() => ({
|
|
206
206
|
top: e.value.style.chart.layout.padding.top,
|
|
207
207
|
right: e.value.style.chart.layout.padding.right,
|
|
208
208
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
209
209
|
left: e.value.style.chart.layout.padding.left
|
|
210
210
|
}));
|
|
211
|
-
function
|
|
211
|
+
function Gt() {
|
|
212
212
|
let t = 0;
|
|
213
|
-
|
|
213
|
+
ye.value && (t = Array.from(ye.value.querySelectorAll("text")).reduce((o, g) => {
|
|
214
214
|
const d = g.getComputedTextLength();
|
|
215
215
|
return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
|
|
216
216
|
}, 0));
|
|
217
|
-
const a =
|
|
217
|
+
const a = fe.value ? fe.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
218
218
|
return t + a + 5;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
|
|
220
|
+
const Le = i(0), Yt = zt((t) => {
|
|
221
|
+
Le.value = t;
|
|
222
222
|
}, 100);
|
|
223
|
-
|
|
224
|
-
const a =
|
|
223
|
+
yl((t) => {
|
|
224
|
+
const a = oe.value;
|
|
225
225
|
if (!a) return;
|
|
226
|
-
const l = new ResizeObserver((
|
|
227
|
-
|
|
226
|
+
const l = new ResizeObserver((n) => {
|
|
227
|
+
Yt(n[0].contentRect.height);
|
|
228
228
|
});
|
|
229
229
|
l.observe(a), t(() => l.disconnect());
|
|
230
|
-
}),
|
|
231
|
-
|
|
230
|
+
}), gl(() => {
|
|
231
|
+
Le.value = 0;
|
|
232
232
|
});
|
|
233
|
-
const
|
|
233
|
+
const nt = y(() => {
|
|
234
234
|
let t = 0;
|
|
235
|
-
|
|
235
|
+
ge.value && (t = ge.value.getBBox().height);
|
|
236
236
|
let a = 0;
|
|
237
|
-
return
|
|
237
|
+
return oe.value && (a = Le.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
238
238
|
}), r = y(() => {
|
|
239
|
-
const t =
|
|
239
|
+
const t = Gt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = G.value.width, n = G.value.height, o = U.value.left + t, g = l - U.value.right, d = l - o - U.value.right, k = n - U.value.top - U.value.bottom - a - nt.value, q = U.value.top + a, V = n - U.value.bottom - nt.value;
|
|
240
240
|
return {
|
|
241
|
-
top:
|
|
241
|
+
top: q,
|
|
242
242
|
left: o,
|
|
243
243
|
right: g,
|
|
244
|
-
bottom:
|
|
245
|
-
absoluteHeight:
|
|
244
|
+
bottom: V,
|
|
245
|
+
absoluteHeight: n,
|
|
246
246
|
absoluteWidth: l,
|
|
247
247
|
centerX: o + Math.max(10, d) / 2,
|
|
248
|
-
centerY:
|
|
248
|
+
centerY: q + Math.max(10, k) / 2,
|
|
249
249
|
width: Math.max(10, d),
|
|
250
|
-
height: Math.max(10,
|
|
250
|
+
height: Math.max(10, k)
|
|
251
251
|
};
|
|
252
|
-
}),
|
|
253
|
-
[null, void 0].includes(t.name) &&
|
|
252
|
+
}), N = y(() => (pe.value.forEach((t, a) => {
|
|
253
|
+
[null, void 0].includes(t.name) && ce({
|
|
254
254
|
componentName: "VueUiDonutEvolution",
|
|
255
255
|
type: "datasetSerieAttribute",
|
|
256
256
|
property: "name",
|
|
257
257
|
index: a,
|
|
258
|
-
debug:
|
|
259
|
-
}), [null, void 0].includes(t.values) &&
|
|
258
|
+
debug: ne.value
|
|
259
|
+
}), [null, void 0].includes(t.values) && ce({
|
|
260
260
|
componentName: "VueUiDonutEvolution",
|
|
261
261
|
type: "datasetSerieAttribute",
|
|
262
262
|
property: "values",
|
|
263
263
|
index: a,
|
|
264
|
-
debug:
|
|
264
|
+
debug: ne.value
|
|
265
265
|
});
|
|
266
|
-
}),
|
|
266
|
+
}), pe.value.map((t, a) => ({
|
|
267
267
|
...t,
|
|
268
|
-
values:
|
|
269
|
-
color:
|
|
268
|
+
values: Cl(t.values),
|
|
269
|
+
color: De(t.color) || Wt.value[a] || ve[a] || ve[a % ve.length],
|
|
270
270
|
length: (t.values || []).length,
|
|
271
|
-
uid:
|
|
272
|
-
})))),
|
|
271
|
+
uid: Ct()
|
|
272
|
+
})))), X = y(() => N.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
|
|
273
273
|
...t,
|
|
274
274
|
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
275
|
-
}))), I = y(() => Math.max(...
|
|
275
|
+
}))), I = y(() => Math.max(...X.value.map((t) => t.length))), _ = y(() => Fl({
|
|
276
276
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
277
277
|
maxDatapoints: I.value,
|
|
278
278
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
279
279
|
start: h.value.start,
|
|
280
280
|
end: h.value.end
|
|
281
|
-
})),
|
|
281
|
+
})), L = y(() => r.value.width / (h.value.end - h.value.start)), A = y(() => {
|
|
282
282
|
const t = [];
|
|
283
283
|
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
284
|
-
const g =
|
|
284
|
+
const g = X.value.map((T) => T.values[o] ?? null), d = g.filter((T) => [void 0, null].includes(T)).length === g.length, k = g.reduce((T, S) => T + S, 0), q = g.map((T) => T / k), V = r.value.left + L.value * o + L.value / 2;
|
|
285
285
|
t.push({
|
|
286
286
|
index: o,
|
|
287
|
-
percentages:
|
|
288
|
-
subtotal: d ||
|
|
287
|
+
percentages: q,
|
|
288
|
+
subtotal: d || k < 0 ? null : k,
|
|
289
289
|
values: g,
|
|
290
|
-
x:
|
|
290
|
+
x: V
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
const a = 0, l = Math.max(...t.map((o) => o.subtotal)),
|
|
293
|
+
const a = 0, l = Math.max(...t.map((o) => o.subtotal)), n = t.length === 1 ? l * 2 : l;
|
|
294
294
|
return t.map((o, g) => {
|
|
295
|
-
const d = Math.min(r.value.width / 24,
|
|
295
|
+
const d = Math.min(r.value.width / 24, L.value / 2 * 0.7), k = d > r.value.width / 16 ? r.value.width / 16 : d, q = b.value === o.index ? r.value.width / 16 : k, V = t.length > 4 ? d * 2 : d * 2 > L.value / 2 * 0.7 ? L.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * o.subtotal / At(a, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
296
296
|
return {
|
|
297
297
|
...o,
|
|
298
|
-
y:
|
|
299
|
-
radius:
|
|
300
|
-
activeRadius:
|
|
301
|
-
hoverRadius:
|
|
302
|
-
donut:
|
|
303
|
-
series:
|
|
298
|
+
y: T,
|
|
299
|
+
radius: k,
|
|
300
|
+
activeRadius: q,
|
|
301
|
+
hoverRadius: V,
|
|
302
|
+
donut: Oe({
|
|
303
|
+
series: X.value.map((S, pt) => ({
|
|
304
304
|
color: S.color,
|
|
305
305
|
name: S.name,
|
|
306
306
|
value: S.values[g] ?? 0
|
|
307
307
|
}))
|
|
308
|
-
}, o.x,
|
|
309
|
-
donutHover:
|
|
310
|
-
series:
|
|
308
|
+
}, o.x, T, k, k, 1.99999, 2, 1, 360, 105.25, k / 2),
|
|
309
|
+
donutHover: Oe({
|
|
310
|
+
series: X.value.map((S, pt) => ({
|
|
311
311
|
color: S.color,
|
|
312
312
|
name: S.name,
|
|
313
313
|
value: S.values[g] ?? 0
|
|
314
314
|
}))
|
|
315
|
-
}, o.x,
|
|
316
|
-
donutFocus:
|
|
317
|
-
series:
|
|
315
|
+
}, o.x, T, V, V, 1.99999, 2, 1, 360, 105.25, V / 2),
|
|
316
|
+
donutFocus: Oe({
|
|
317
|
+
series: X.value.map((S, pt) => ({
|
|
318
318
|
color: S.color,
|
|
319
319
|
name: S.name,
|
|
320
320
|
value: S.values[g] ?? 0
|
|
@@ -323,11 +323,11 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
323
323
|
};
|
|
324
324
|
});
|
|
325
325
|
});
|
|
326
|
-
function
|
|
326
|
+
function st(t, a, l) {
|
|
327
327
|
return Ne(
|
|
328
328
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
329
329
|
t,
|
|
330
|
-
|
|
330
|
+
de({
|
|
331
331
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
332
332
|
v: t,
|
|
333
333
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -337,59 +337,59 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
337
337
|
);
|
|
338
338
|
}
|
|
339
339
|
const _e = y(() => ({
|
|
340
|
-
max: Math.max(...
|
|
340
|
+
max: Math.max(...A.value.map((t) => t.subtotal)),
|
|
341
341
|
min: 0
|
|
342
|
-
})),
|
|
343
|
-
const t =
|
|
344
|
-
return
|
|
342
|
+
})), Y = y(() => {
|
|
343
|
+
const t = A.value.length === 1 ? _e.value.max * 2 : _e.value.max;
|
|
344
|
+
return At(_e.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
345
345
|
});
|
|
346
|
-
function
|
|
347
|
-
return t /
|
|
346
|
+
function jt(t) {
|
|
347
|
+
return t / Y.value.max;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
350
|
-
y: r.value.bottom - r.value.height *
|
|
349
|
+
const qt = y(() => Y.value.ticks.map((t) => ({
|
|
350
|
+
y: r.value.bottom - r.value.height * jt(t),
|
|
351
351
|
value: t
|
|
352
352
|
})));
|
|
353
|
-
function
|
|
354
|
-
return isNaN(t.value /
|
|
353
|
+
function Qt(t, a) {
|
|
354
|
+
return isNaN(t.value / $t(a, "value")) ? 0 : (t.value / $t(a, "value") * 100).toFixed(0) + "%";
|
|
355
355
|
}
|
|
356
356
|
function rt(t) {
|
|
357
|
-
|
|
357
|
+
b.value = null, ae.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }),
|
|
359
|
+
function Jt(t) {
|
|
360
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index, ae.value = t;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const K = i(null);
|
|
363
363
|
function it(t, a) {
|
|
364
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (
|
|
364
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (ae.value = null, b.value = null, he.value = !0, M.value = t, ll(t), [null, void 0].includes(a) || (K.value = a));
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const Ae = y(() => N.value.map((t, a) => ({
|
|
367
367
|
name: t.name,
|
|
368
|
-
value: t.values.slice(h.value.start, h.value.end).reduce((l,
|
|
368
|
+
value: t.values.slice(h.value.start, h.value.end).reduce((l, n) => l + n, 0),
|
|
369
369
|
shape: "circle",
|
|
370
370
|
uid: t.uid,
|
|
371
371
|
color: t.color
|
|
372
372
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
373
373
|
...t,
|
|
374
|
-
opacity:
|
|
375
|
-
segregate: () =>
|
|
376
|
-
isSegregated:
|
|
374
|
+
opacity: w.value.includes(t.uid) ? 0.5 : 1,
|
|
375
|
+
segregate: () => Z(t.uid),
|
|
376
|
+
isSegregated: w.value.includes(t.uid),
|
|
377
377
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ne(
|
|
378
378
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
379
379
|
t.value,
|
|
380
|
-
|
|
380
|
+
de({
|
|
381
381
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
382
382
|
v: t.value,
|
|
383
383
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
384
384
|
r: e.value.style.chart.legend.roundingValue
|
|
385
385
|
}),
|
|
386
386
|
{ datapoint: t, seriesIndex: a }
|
|
387
|
-
) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
387
|
+
) : ""}${e.value.style.chart.legend.showPercentage ? w.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : de({
|
|
388
388
|
v: t.value / ct.value * 100,
|
|
389
389
|
s: "%",
|
|
390
390
|
r: e.value.style.chart.legend.roundingPercentage
|
|
391
391
|
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
392
|
-
}))), ct = y(() =>
|
|
392
|
+
}))), ct = y(() => A.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Kt = y(() => ({
|
|
393
393
|
cy: "donut-div-legend",
|
|
394
394
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
395
395
|
color: e.value.style.chart.legend.color,
|
|
@@ -397,24 +397,38 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
397
397
|
paddingBottom: 12,
|
|
398
398
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
399
399
|
}));
|
|
400
|
-
function
|
|
401
|
-
if (
|
|
402
|
-
|
|
400
|
+
function Z(t) {
|
|
401
|
+
if (w.value.includes(t))
|
|
402
|
+
w.value = w.value.filter((a) => a !== t), je("selectLegend", X.value);
|
|
403
403
|
else {
|
|
404
|
-
if (
|
|
405
|
-
|
|
404
|
+
if (w.value.length === N.value.length - 1) return;
|
|
405
|
+
w.value.push(t), je("selectLegend", X.value);
|
|
406
406
|
}
|
|
407
|
-
|
|
407
|
+
M.value && it(A.value.find((a, l) => l === K.value));
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
function vt(t) {
|
|
410
|
+
if (!N.value.length)
|
|
411
|
+
return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
|
|
412
|
+
const a = N.value.find((l) => l.name === t);
|
|
413
|
+
return a || (e.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${t}"`), null);
|
|
414
|
+
}
|
|
415
|
+
function Zt(t) {
|
|
416
|
+
const a = vt(t);
|
|
417
|
+
a !== null && w.value.includes(a.uid) && Z(a.uid);
|
|
418
|
+
}
|
|
419
|
+
function el(t) {
|
|
420
|
+
const a = vt(t);
|
|
421
|
+
a !== null && (w.value.includes(a.uid) || Z(a.uid));
|
|
422
|
+
}
|
|
423
|
+
const j = y(() => {
|
|
424
|
+
const t = [""].concat(N.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
|
|
411
425
|
name: o.name,
|
|
412
426
|
color: o.color
|
|
413
427
|
}))).concat(["Σ"]);
|
|
414
428
|
let a = [];
|
|
415
429
|
for (let o = 0; o < I.value; o += 1) {
|
|
416
|
-
const g =
|
|
417
|
-
a.push([_.value[o] ? _.value[o].text : "-"].concat(
|
|
430
|
+
const g = N.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, k) => d + k, 0);
|
|
431
|
+
a.push([_.value[o] ? _.value[o].text : "-"].concat(N.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
|
|
418
432
|
value: d.values[o] ?? 0,
|
|
419
433
|
percentage: d.values[o] ? d.values[o] / g * 100 : 0
|
|
420
434
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -431,83 +445,83 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
431
445
|
outline: e.value.table.td.outline
|
|
432
446
|
},
|
|
433
447
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
434
|
-
},
|
|
448
|
+
}, n = [
|
|
435
449
|
e.value.table.columnNames.period
|
|
436
|
-
].concat(
|
|
437
|
-
return { head: t, body: a, config: l, colNames:
|
|
450
|
+
].concat(N.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
451
|
+
return { head: t, body: a, config: l, colNames: n };
|
|
438
452
|
});
|
|
439
|
-
function
|
|
440
|
-
return
|
|
453
|
+
function tl() {
|
|
454
|
+
return N.value;
|
|
441
455
|
}
|
|
442
456
|
function Se(t = null) {
|
|
443
457
|
Ie(() => {
|
|
444
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...
|
|
445
|
-
t ? t(g) :
|
|
458
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...j.value.head.map((d) => d.name ?? d)], n = [...j.value.body.map((d) => d.map((k) => k.value ?? k))], o = a.concat([l]).concat(n), g = zl(o);
|
|
459
|
+
t ? t(g) : Il({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
446
460
|
});
|
|
447
461
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
450
|
-
|
|
462
|
+
const W = i(!1);
|
|
463
|
+
function dt(t) {
|
|
464
|
+
W.value = t, Re.value += 1;
|
|
451
465
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
466
|
+
function ht() {
|
|
467
|
+
H.value.showTable = !H.value.showTable;
|
|
454
468
|
}
|
|
455
|
-
const
|
|
469
|
+
const re = i(!1);
|
|
456
470
|
function $e() {
|
|
457
|
-
|
|
471
|
+
re.value = !re.value;
|
|
458
472
|
}
|
|
459
|
-
function
|
|
473
|
+
function yt(t) {
|
|
460
474
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
461
475
|
}
|
|
462
|
-
const
|
|
463
|
-
function
|
|
464
|
-
|
|
476
|
+
const gt = i([]), ft = i({}), ze = i(null);
|
|
477
|
+
function ll(t) {
|
|
478
|
+
gt.value = t.donut.map((a) => ({
|
|
465
479
|
name: a.name,
|
|
466
480
|
values: [a.value],
|
|
467
481
|
color: a.color
|
|
468
|
-
})),
|
|
482
|
+
})), ft.value = Tl({
|
|
469
483
|
...e.value.style.chart.dialog.donutChart,
|
|
470
484
|
responsive: !0,
|
|
471
485
|
theme: e.value.theme
|
|
472
486
|
}), ze.value && ze.value.open();
|
|
473
487
|
}
|
|
474
|
-
async function
|
|
475
|
-
if (!
|
|
476
|
-
const { width: a, height: l } =
|
|
488
|
+
async function al({ scale: t = 2 } = {}) {
|
|
489
|
+
if (!F.value) return;
|
|
490
|
+
const { width: a, height: l } = F.value.getBoundingClientRect(), n = a / l, { imageUri: o, base64: g } = await Hl({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
477
491
|
return {
|
|
478
492
|
imageUri: o,
|
|
479
493
|
base64: g,
|
|
480
494
|
title: e.value.style.chart.title.text,
|
|
481
495
|
width: a,
|
|
482
496
|
height: l,
|
|
483
|
-
aspectRatio:
|
|
497
|
+
aspectRatio: n
|
|
484
498
|
};
|
|
485
499
|
}
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
timeLabelsEls:
|
|
500
|
+
const ol = y(() => G.value.width), ul = y(() => G.value.height);
|
|
501
|
+
Ml({
|
|
502
|
+
timeLabelsEls: oe,
|
|
489
503
|
timeLabels: _,
|
|
490
504
|
slicer: h,
|
|
491
505
|
configRef: e,
|
|
492
506
|
rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
493
507
|
autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
494
508
|
isAutoSize: !1,
|
|
495
|
-
width:
|
|
496
|
-
height:
|
|
509
|
+
width: ol,
|
|
510
|
+
height: ul,
|
|
497
511
|
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
498
512
|
});
|
|
499
|
-
const
|
|
500
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
513
|
+
const ee = y(() => {
|
|
514
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = H.value.showTable;
|
|
501
515
|
return {
|
|
502
|
-
component: t ? Pe :
|
|
516
|
+
component: t ? Pe : Nt,
|
|
503
517
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
504
518
|
props: t ? {
|
|
505
519
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
506
520
|
color: e.value.table.th.color,
|
|
507
521
|
headerColor: e.value.table.th.color,
|
|
508
522
|
headerBg: e.value.table.th.backgroundColor,
|
|
509
|
-
isFullscreen:
|
|
510
|
-
fullscreenParent:
|
|
523
|
+
isFullscreen: W.value,
|
|
524
|
+
fullscreenParent: F.value,
|
|
511
525
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
512
526
|
} : {
|
|
513
527
|
hideDetails: !0,
|
|
@@ -526,72 +540,94 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
526
540
|
}
|
|
527
541
|
};
|
|
528
542
|
});
|
|
529
|
-
|
|
530
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
543
|
+
ie(() => H.value.showTable, (t) => {
|
|
544
|
+
e.value.table.show || (t && e.value.table.useDialog && Q.value ? Q.value.open() : "close" in Q.value && Q.value.close());
|
|
531
545
|
});
|
|
532
|
-
function
|
|
533
|
-
|
|
546
|
+
function bt() {
|
|
547
|
+
H.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
534
548
|
}
|
|
535
|
-
const
|
|
549
|
+
const nl = y(() => Ae.value.map((t) => ({
|
|
536
550
|
...t,
|
|
537
551
|
name: t.display
|
|
538
|
-
}))),
|
|
539
|
-
svg:
|
|
540
|
-
title:
|
|
541
|
-
legend:
|
|
542
|
-
legendItems:
|
|
543
|
-
backgroundColor:
|
|
552
|
+
}))), sl = y(() => e.value.style.chart.backgroundColor), rl = y(() => e.value.style.chart.legend), il = y(() => e.value.style.chart.title), { exportSvg: cl, getSvg: vl } = El({
|
|
553
|
+
svg: we,
|
|
554
|
+
title: il,
|
|
555
|
+
legend: rl,
|
|
556
|
+
legendItems: nl,
|
|
557
|
+
backgroundColor: sl
|
|
544
558
|
});
|
|
545
|
-
async function
|
|
559
|
+
async function mt({ isCb: t }) {
|
|
546
560
|
if (t) {
|
|
547
|
-
const { blob: a, url: l, text:
|
|
548
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: l, text:
|
|
561
|
+
const { blob: a, url: l, text: n, dataUrl: o } = await vl();
|
|
562
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: n, dataUrl: o });
|
|
549
563
|
} else
|
|
550
|
-
|
|
564
|
+
cl();
|
|
551
565
|
}
|
|
552
|
-
return
|
|
553
|
-
getData:
|
|
554
|
-
getImage:
|
|
566
|
+
return Dt({
|
|
567
|
+
getData: tl,
|
|
568
|
+
getImage: al,
|
|
555
569
|
generatePdf: ot,
|
|
556
570
|
generateCsv: Se,
|
|
557
571
|
generateImage: ut,
|
|
558
|
-
generateSvg:
|
|
559
|
-
|
|
572
|
+
generateSvg: mt,
|
|
573
|
+
hideSeries: el,
|
|
574
|
+
showSeries: Zt,
|
|
575
|
+
toggleTable: ht,
|
|
560
576
|
toggleAnnotator: $e,
|
|
561
|
-
toggleFullscreen:
|
|
562
|
-
}), (t, a) => (u(),
|
|
577
|
+
toggleFullscreen: dt
|
|
578
|
+
}), (t, a) => (u(), s("div", {
|
|
563
579
|
ref_key: "donutEvolutionChart",
|
|
564
|
-
ref:
|
|
565
|
-
class:
|
|
566
|
-
style:
|
|
567
|
-
id:
|
|
580
|
+
ref: F,
|
|
581
|
+
class: P(`vue-data-ui-component vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
582
|
+
style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
583
|
+
id: O.value,
|
|
568
584
|
onMouseenter: a[5] || (a[5] = () => c(et)(!0)),
|
|
569
585
|
onMouseleave: a[6] || (a[6] = () => c(et)(!1))
|
|
570
586
|
}, [
|
|
571
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
587
|
+
e.value.userOptions.buttons.annotator ? (u(), D(c(Ft), {
|
|
572
588
|
key: 0,
|
|
573
|
-
svgRef: c(
|
|
589
|
+
svgRef: c(we),
|
|
574
590
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
575
591
|
color: e.value.style.chart.color,
|
|
576
|
-
active:
|
|
592
|
+
active: re.value,
|
|
577
593
|
onClose: $e
|
|
578
|
-
},
|
|
579
|
-
|
|
594
|
+
}, {
|
|
595
|
+
"annotator-action-close": f(() => [
|
|
596
|
+
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
597
|
+
]),
|
|
598
|
+
"annotator-action-color": f(({ color: l }) => [
|
|
599
|
+
p(t.$slots, "annotator-action-color", R(E({ color: l })), void 0, !0)
|
|
600
|
+
]),
|
|
601
|
+
"annotator-action-draw": f(({ mode: l }) => [
|
|
602
|
+
p(t.$slots, "annotator-action-draw", R(E({ mode: l })), void 0, !0)
|
|
603
|
+
]),
|
|
604
|
+
"annotator-action-undo": f(({ disabled: l }) => [
|
|
605
|
+
p(t.$slots, "annotator-action-undo", R(E({ disabled: l })), void 0, !0)
|
|
606
|
+
]),
|
|
607
|
+
"annotator-action-redo": f(({ disabled: l }) => [
|
|
608
|
+
p(t.$slots, "annotator-action-redo", R(E({ disabled: l })), void 0, !0)
|
|
609
|
+
]),
|
|
610
|
+
"annotator-action-delete": f(({ disabled: l }) => [
|
|
611
|
+
p(t.$slots, "annotator-action-delete", R(E({ disabled: l })), void 0, !0)
|
|
612
|
+
]),
|
|
613
|
+
_: 3
|
|
614
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
615
|
+
Xt.value ? (u(), s("div", {
|
|
580
616
|
key: 1,
|
|
581
617
|
ref_key: "noTitle",
|
|
582
|
-
ref:
|
|
618
|
+
ref: Ht,
|
|
583
619
|
class: "vue-data-ui-no-title-space",
|
|
584
620
|
style: "height:36px; width: 100%;background:transparent"
|
|
585
621
|
}, null, 512)) : v("", !0),
|
|
586
|
-
e.value.style.chart.title.text ? (u(),
|
|
622
|
+
e.value.style.chart.title.text ? (u(), s("div", {
|
|
587
623
|
key: 2,
|
|
588
624
|
ref_key: "chartTitle",
|
|
589
625
|
ref: He,
|
|
590
626
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
591
627
|
onMouseleave: rt
|
|
592
628
|
}, [
|
|
593
|
-
(u(),
|
|
594
|
-
key: `title_${
|
|
629
|
+
(u(), D(Ul, {
|
|
630
|
+
key: `title_${Fe.value}`,
|
|
595
631
|
config: {
|
|
596
632
|
title: {
|
|
597
633
|
cy: "donut-evolution-div-title",
|
|
@@ -604,111 +640,111 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
604
640
|
}
|
|
605
641
|
}, null, 8, ["config"]))
|
|
606
642
|
], 544)) : v("", !0),
|
|
607
|
-
|
|
608
|
-
id: `legend-top-${
|
|
609
|
-
}, null, 8,
|
|
610
|
-
e.value.userOptions.show && qe.value && (c(tt) || c(
|
|
643
|
+
m("div", {
|
|
644
|
+
id: `legend-top-${O.value}`
|
|
645
|
+
}, null, 8, ql),
|
|
646
|
+
e.value.userOptions.show && qe.value && (c(tt) || c(ke)) ? (u(), D(c(Vt), {
|
|
611
647
|
ref_key: "userOptionsRef",
|
|
612
|
-
ref:
|
|
648
|
+
ref: be,
|
|
613
649
|
key: `user_options_${Re.value}`,
|
|
614
650
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
615
651
|
color: e.value.style.chart.color,
|
|
616
652
|
isPrinting: c(lt),
|
|
617
653
|
isImaging: c(at),
|
|
618
|
-
uid:
|
|
654
|
+
uid: O.value,
|
|
619
655
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
620
656
|
hasImg: e.value.userOptions.buttons.img,
|
|
621
657
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
622
658
|
hasXls: e.value.userOptions.buttons.csv,
|
|
623
659
|
hasTable: e.value.userOptions.buttons.table,
|
|
624
660
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
625
|
-
isFullscreen:
|
|
661
|
+
isFullscreen: W.value,
|
|
626
662
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
627
|
-
chartElement:
|
|
663
|
+
chartElement: F.value,
|
|
628
664
|
position: e.value.userOptions.position,
|
|
629
665
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
630
|
-
isAnnotation:
|
|
666
|
+
isAnnotation: re.value,
|
|
631
667
|
callbacks: e.value.userOptions.callbacks,
|
|
632
668
|
printScale: e.value.userOptions.print.scale,
|
|
633
669
|
tableDialog: e.value.table.useDialog,
|
|
634
|
-
onToggleFullscreen:
|
|
670
|
+
onToggleFullscreen: dt,
|
|
635
671
|
onGeneratePdf: c(ot),
|
|
636
672
|
onGenerateCsv: Se,
|
|
637
673
|
onGenerateImage: c(ut),
|
|
638
|
-
onGenerateSvg:
|
|
639
|
-
onToggleTable:
|
|
674
|
+
onGenerateSvg: mt,
|
|
675
|
+
onToggleTable: ht,
|
|
640
676
|
onToggleAnnotator: $e,
|
|
641
|
-
style:
|
|
642
|
-
visibility: c(tt) ? c(
|
|
677
|
+
style: te({
|
|
678
|
+
visibility: c(tt) ? c(ke) ? "visible" : "hidden" : "visible"
|
|
643
679
|
})
|
|
644
|
-
},
|
|
680
|
+
}, kt({ _: 2 }, [
|
|
645
681
|
t.$slots.menuIcon ? {
|
|
646
682
|
name: "menuIcon",
|
|
647
|
-
fn:
|
|
648
|
-
|
|
683
|
+
fn: f(({ isOpen: l, color: n }) => [
|
|
684
|
+
p(t.$slots, "menuIcon", R(E({ isOpen: l, color: n })), void 0, !0)
|
|
649
685
|
]),
|
|
650
686
|
key: "0"
|
|
651
687
|
} : void 0,
|
|
652
688
|
t.$slots.optionPdf ? {
|
|
653
689
|
name: "optionPdf",
|
|
654
|
-
fn:
|
|
655
|
-
|
|
690
|
+
fn: f(() => [
|
|
691
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
656
692
|
]),
|
|
657
693
|
key: "1"
|
|
658
694
|
} : void 0,
|
|
659
695
|
t.$slots.optionCsv ? {
|
|
660
696
|
name: "optionCsv",
|
|
661
|
-
fn:
|
|
662
|
-
|
|
697
|
+
fn: f(() => [
|
|
698
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
663
699
|
]),
|
|
664
700
|
key: "2"
|
|
665
701
|
} : void 0,
|
|
666
702
|
t.$slots.optionImg ? {
|
|
667
703
|
name: "optionImg",
|
|
668
|
-
fn:
|
|
669
|
-
|
|
704
|
+
fn: f(() => [
|
|
705
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
670
706
|
]),
|
|
671
707
|
key: "3"
|
|
672
708
|
} : void 0,
|
|
673
709
|
t.$slots.optionSvg ? {
|
|
674
710
|
name: "optionSvg",
|
|
675
|
-
fn:
|
|
676
|
-
|
|
711
|
+
fn: f(() => [
|
|
712
|
+
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
677
713
|
]),
|
|
678
714
|
key: "4"
|
|
679
715
|
} : void 0,
|
|
680
716
|
t.$slots.optionTable ? {
|
|
681
717
|
name: "optionTable",
|
|
682
|
-
fn:
|
|
683
|
-
|
|
718
|
+
fn: f(() => [
|
|
719
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
684
720
|
]),
|
|
685
721
|
key: "5"
|
|
686
722
|
} : void 0,
|
|
687
723
|
t.$slots.optionFullscreen ? {
|
|
688
724
|
name: "optionFullscreen",
|
|
689
|
-
fn:
|
|
690
|
-
|
|
725
|
+
fn: f(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
726
|
+
p(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
691
727
|
]),
|
|
692
728
|
key: "6"
|
|
693
729
|
} : void 0,
|
|
694
730
|
t.$slots.optionAnnotator ? {
|
|
695
731
|
name: "optionAnnotator",
|
|
696
|
-
fn:
|
|
697
|
-
|
|
732
|
+
fn: f(({ toggleAnnotator: l, isAnnotator: n }) => [
|
|
733
|
+
p(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
|
|
698
734
|
]),
|
|
699
735
|
key: "7"
|
|
700
736
|
} : void 0
|
|
701
737
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
702
|
-
(u(),
|
|
738
|
+
(u(), s("svg", {
|
|
703
739
|
ref_key: "svgRef",
|
|
704
|
-
ref:
|
|
705
|
-
xmlns: c(
|
|
706
|
-
class:
|
|
740
|
+
ref: we,
|
|
741
|
+
xmlns: c(Ll),
|
|
742
|
+
class: P({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
707
743
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
708
|
-
style:
|
|
744
|
+
style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
709
745
|
}, [
|
|
710
|
-
|
|
711
|
-
t.$slots["chart-background"] ? (u(),
|
|
746
|
+
wt(c(Et)),
|
|
747
|
+
t.$slots["chart-background"] ? (u(), s("foreignObject", {
|
|
712
748
|
key: 0,
|
|
713
749
|
x: r.value.left,
|
|
714
750
|
y: r.value.top,
|
|
@@ -718,44 +754,44 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
718
754
|
pointerEvents: "none"
|
|
719
755
|
}
|
|
720
756
|
}, [
|
|
721
|
-
|
|
722
|
-
], 8,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
id: `hover_${
|
|
757
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
758
|
+
], 8, Jl)) : v("", !0),
|
|
759
|
+
m("defs", null, [
|
|
760
|
+
m("linearGradient", {
|
|
761
|
+
id: `hover_${O.value}`,
|
|
726
762
|
x1: "0%",
|
|
727
763
|
y1: "0%",
|
|
728
764
|
x2: "0%",
|
|
729
765
|
y2: "100%"
|
|
730
766
|
}, [
|
|
731
|
-
|
|
767
|
+
m("stop", {
|
|
732
768
|
offset: "0%",
|
|
733
|
-
"stop-color": c(
|
|
734
|
-
}, null, 8,
|
|
735
|
-
|
|
769
|
+
"stop-color": c(le)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
770
|
+
}, null, 8, Zl),
|
|
771
|
+
m("stop", {
|
|
736
772
|
offset: "100%",
|
|
737
|
-
"stop-color": c(
|
|
738
|
-
}, null, 8,
|
|
739
|
-
], 8,
|
|
740
|
-
|
|
741
|
-
id: `focus_${
|
|
773
|
+
"stop-color": c(le)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
774
|
+
}, null, 8, ea)
|
|
775
|
+
], 8, Kl),
|
|
776
|
+
m("radialGradient", {
|
|
777
|
+
id: `focus_${O.value}`
|
|
742
778
|
}, [
|
|
743
|
-
|
|
779
|
+
m("stop", {
|
|
744
780
|
offset: "0%",
|
|
745
|
-
"stop-color": c(
|
|
746
|
-
}, null, 8,
|
|
747
|
-
|
|
781
|
+
"stop-color": c(le)(c(De)(e.value.style.chart.backgroundColor), 0)
|
|
782
|
+
}, null, 8, la),
|
|
783
|
+
m("stop", {
|
|
748
784
|
offset: "77%",
|
|
749
|
-
"stop-color": c(
|
|
750
|
-
}, null, 8,
|
|
751
|
-
|
|
785
|
+
"stop-color": c(le)("#FFFFFF", 30)
|
|
786
|
+
}, null, 8, aa),
|
|
787
|
+
m("stop", {
|
|
752
788
|
offset: "100%",
|
|
753
|
-
"stop-color": c(
|
|
754
|
-
}, null, 8,
|
|
755
|
-
], 8,
|
|
789
|
+
"stop-color": c(le)(c(De)(e.value.style.chart.backgroundColor), 0)
|
|
790
|
+
}, null, 8, oa)
|
|
791
|
+
], 8, ta)
|
|
756
792
|
]),
|
|
757
|
-
e.value.style.chart.layout.grid.show ? (u(),
|
|
758
|
-
|
|
793
|
+
e.value.style.chart.layout.grid.show ? (u(), s("g", ua, [
|
|
794
|
+
m("line", {
|
|
759
795
|
x1: r.value.left,
|
|
760
796
|
x2: r.value.left,
|
|
761
797
|
y1: r.value.top,
|
|
@@ -763,8 +799,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
763
799
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
764
800
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
765
801
|
"stroke-linecap": "round"
|
|
766
|
-
}, null, 8,
|
|
767
|
-
|
|
802
|
+
}, null, 8, na),
|
|
803
|
+
m("line", {
|
|
768
804
|
x1: r.value.left,
|
|
769
805
|
x2: r.value.right,
|
|
770
806
|
y1: r.value.bottom,
|
|
@@ -772,49 +808,49 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
772
808
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
773
809
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
774
810
|
"stroke-linecap": "round"
|
|
775
|
-
}, null, 8,
|
|
776
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (u(),
|
|
777
|
-
(u(!0),
|
|
778
|
-
x1: r.value.left + (
|
|
779
|
-
x2: r.value.left + (
|
|
811
|
+
}, null, 8, sa),
|
|
812
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (u(), s("g", ra, [
|
|
813
|
+
(u(!0), s($, null, z(h.value.end - h.value.start, (l, n) => (u(), s("line", {
|
|
814
|
+
x1: r.value.left + (n + 1) * L.value,
|
|
815
|
+
x2: r.value.left + (n + 1) * L.value,
|
|
780
816
|
y1: r.value.top,
|
|
781
817
|
y2: r.value.bottom,
|
|
782
818
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
783
819
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
784
820
|
"stroke-linecap": "round"
|
|
785
|
-
}, null, 8,
|
|
821
|
+
}, null, 8, ia))), 256))
|
|
786
822
|
])) : v("", !0)
|
|
787
823
|
])) : v("", !0),
|
|
788
|
-
|
|
789
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (u(),
|
|
824
|
+
m("g", null, [
|
|
825
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (u(), s("text", {
|
|
790
826
|
key: 0,
|
|
791
827
|
ref_key: "yAxisLabel",
|
|
792
|
-
ref:
|
|
828
|
+
ref: fe,
|
|
793
829
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
794
830
|
fill: e.value.style.chart.layout.grid.axis.color,
|
|
795
831
|
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
796
832
|
"text-anchor": "middle",
|
|
797
833
|
style: { transition: "none" }
|
|
798
|
-
},
|
|
799
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (u(),
|
|
834
|
+
}, C(e.value.style.chart.layout.grid.axis.yLabel), 9, ca)) : v("", !0),
|
|
835
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (u(), s("text", {
|
|
800
836
|
key: 1,
|
|
801
837
|
ref_key: "xAxisLabel",
|
|
802
|
-
ref:
|
|
838
|
+
ref: ge,
|
|
803
839
|
"text-anchor": "middle",
|
|
804
840
|
x: r.value.absoluteWidth / 2,
|
|
805
841
|
y: r.value.absoluteHeight - 3,
|
|
806
842
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
807
843
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
808
|
-
},
|
|
844
|
+
}, C(e.value.style.chart.layout.grid.axis.xLabel), 9, va)) : v("", !0)
|
|
809
845
|
]),
|
|
810
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(),
|
|
846
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), s("g", {
|
|
811
847
|
key: 2,
|
|
812
848
|
ref_key: "scaleLabels",
|
|
813
|
-
ref:
|
|
814
|
-
class:
|
|
849
|
+
ref: ye,
|
|
850
|
+
class: P({ "donut-opacity": !0, "donut-behind": b.value !== null })
|
|
815
851
|
}, [
|
|
816
|
-
(u(!0),
|
|
817
|
-
l.value >=
|
|
852
|
+
(u(!0), s($, null, z(qt.value, (l, n) => (u(), s("g", null, [
|
|
853
|
+
l.value >= Y.value.min && l.value <= Y.value.max ? (u(), s("line", {
|
|
818
854
|
key: 0,
|
|
819
855
|
x1: r.value.left,
|
|
820
856
|
x2: r.value.left - 5,
|
|
@@ -822,8 +858,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
822
858
|
y2: l.y,
|
|
823
859
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
824
860
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
825
|
-
}, null, 8,
|
|
826
|
-
l.value >=
|
|
861
|
+
}, null, 8, da)) : v("", !0),
|
|
862
|
+
l.value >= Y.value.min && l.value <= Y.value.max ? (u(), s("text", {
|
|
827
863
|
key: 1,
|
|
828
864
|
x: r.value.left,
|
|
829
865
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -831,193 +867,193 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
831
867
|
"text-anchor": "end",
|
|
832
868
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
833
869
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
834
|
-
},
|
|
870
|
+
}, C(c(_l)(l.value) ? c(Ne)(
|
|
835
871
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
836
872
|
l.value,
|
|
837
|
-
c(
|
|
873
|
+
c(de)({
|
|
838
874
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
839
875
|
v: l.value,
|
|
840
876
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
841
877
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
842
878
|
}),
|
|
843
|
-
{ datapoint: l, seriesIndex:
|
|
844
|
-
) : ""), 9,
|
|
879
|
+
{ datapoint: l, seriesIndex: n }
|
|
880
|
+
) : ""), 9, ha)) : v("", !0)
|
|
845
881
|
]))), 256))
|
|
846
882
|
], 2)) : v("", !0),
|
|
847
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(),
|
|
883
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), s("g", {
|
|
848
884
|
key: 3,
|
|
849
885
|
ref_key: "timeLabelsEls",
|
|
850
|
-
ref:
|
|
851
|
-
class:
|
|
886
|
+
ref: oe,
|
|
887
|
+
class: P({ "donut-opacity": !0 })
|
|
852
888
|
}, [
|
|
853
|
-
(u(!0),
|
|
854
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (
|
|
855
|
-
String(_.value[
|
|
856
|
-
`) ? (u(),
|
|
889
|
+
(u(!0), s($, null, z(h.value.end - h.value.start, (l, n) => (u(), s("g", null, [
|
|
890
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[n] && _.value[n].text ? (u(), s("g", ya, [
|
|
891
|
+
String(_.value[n].text).includes(`
|
|
892
|
+
`) ? (u(), s("text", {
|
|
857
893
|
key: 1,
|
|
858
894
|
class: "vue-data-ui-time-label",
|
|
859
895
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
860
896
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
861
897
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
862
|
-
transform: `translate(${r.value.left +
|
|
863
|
-
innerHTML: c(
|
|
864
|
-
content: String(_.value[
|
|
898
|
+
transform: `translate(${r.value.left + L.value * n + L.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
899
|
+
innerHTML: c(Al)({
|
|
900
|
+
content: String(_.value[n].text),
|
|
865
901
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
866
902
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
867
903
|
x: 0,
|
|
868
904
|
y: 0
|
|
869
905
|
})
|
|
870
|
-
}, null, 8,
|
|
906
|
+
}, null, 8, fa)) : (u(), s("text", {
|
|
871
907
|
key: 0,
|
|
872
908
|
class: "vue-data-ui-time-label",
|
|
873
909
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
874
910
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
875
911
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
876
|
-
transform: `translate(${r.value.left +
|
|
877
|
-
},
|
|
912
|
+
transform: `translate(${r.value.left + L.value * n + L.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
913
|
+
}, C(_.value[n].text || ""), 9, ga))
|
|
878
914
|
])) : v("", !0)
|
|
879
915
|
]))), 256))
|
|
880
916
|
], 512)) : v("", !0),
|
|
881
|
-
(u(!0),
|
|
882
|
-
e.value.style.chart.layout.line.show &&
|
|
917
|
+
(u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", null, [
|
|
918
|
+
e.value.style.chart.layout.line.show && n < A.value.length - 1 && ![l.subtotal, A.value[n + 1].subtotal].includes(null) ? (u(), s("line", {
|
|
883
919
|
key: 0,
|
|
884
|
-
class:
|
|
920
|
+
class: P({ "donut-opacity": !0, "donut-behind": b.value !== null }),
|
|
885
921
|
x1: l.x,
|
|
886
922
|
y1: l.y,
|
|
887
|
-
x2:
|
|
888
|
-
y2:
|
|
923
|
+
x2: A.value[n + 1].x,
|
|
924
|
+
y2: A.value[n + 1].y,
|
|
889
925
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
890
926
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
891
927
|
"stroke-linecap": "round",
|
|
892
928
|
"stroke-linejoin": "round"
|
|
893
|
-
}, null, 10,
|
|
894
|
-
l.subtotal !== null ? (u(),
|
|
895
|
-
l.subtotal ? (u(),
|
|
929
|
+
}, null, 10, ba)) : v("", !0),
|
|
930
|
+
l.subtotal !== null ? (u(), s("g", ma, [
|
|
931
|
+
l.subtotal ? (u(), s("circle", {
|
|
896
932
|
key: 0,
|
|
897
933
|
cx: l.x,
|
|
898
934
|
cy: l.y,
|
|
899
935
|
r: l.activeRadius,
|
|
900
936
|
fill: e.value.style.chart.backgroundColor
|
|
901
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, pa)) : v("", !0)
|
|
902
938
|
])) : v("", !0)
|
|
903
939
|
]))), 256)),
|
|
904
|
-
(u(!0),
|
|
905
|
-
class:
|
|
940
|
+
(u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
|
|
941
|
+
class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null })
|
|
906
942
|
}, [
|
|
907
|
-
l.subtotal ? (u(),
|
|
908
|
-
|
|
909
|
-
(u(!0),
|
|
910
|
-
|
|
943
|
+
l.subtotal ? (u(), s("g", xa, [
|
|
944
|
+
b.value !== null && b.value === n ? (u(), s("g", ka, [
|
|
945
|
+
(u(!0), s($, null, z(l.donutHover, (o) => (u(), s("g", null, [
|
|
946
|
+
yt(o) ? (u(), s("path", {
|
|
911
947
|
key: 0,
|
|
912
|
-
d: c(
|
|
948
|
+
d: c(Sl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
913
949
|
stroke: o.color,
|
|
914
950
|
"stroke-width": "1",
|
|
915
951
|
"stroke-linecap": "round",
|
|
916
952
|
"stroke-linejoin": "round",
|
|
917
953
|
fill: "none"
|
|
918
|
-
}, null, 8,
|
|
954
|
+
}, null, 8, wa)) : v("", !0)
|
|
919
955
|
]))), 256)),
|
|
920
|
-
(u(!0),
|
|
921
|
-
|
|
956
|
+
(u(!0), s($, null, z(l.donutHover, (o, g) => (u(), s("g", null, [
|
|
957
|
+
yt(o) ? (u(), s("text", {
|
|
922
958
|
key: 0,
|
|
923
959
|
"data-cy-hover-label": "",
|
|
924
|
-
"text-anchor": c(
|
|
925
|
-
x: c(
|
|
926
|
-
y: c(
|
|
960
|
+
"text-anchor": c(St)(o, !0, 0).anchor,
|
|
961
|
+
x: c(St)(o, !0, 9).x,
|
|
962
|
+
y: c($l)(o, 14, 10),
|
|
927
963
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
928
964
|
"font-size": 8,
|
|
929
965
|
"font-weight": "bold"
|
|
930
|
-
},
|
|
966
|
+
}, C(o.name) + ": " + C(Qt(o, l.donut)) + " (" + C(o.value === null ? "-" : st(o.value, o, g)) + ") ", 9, Ca)) : v("", !0)
|
|
931
967
|
]))), 256)),
|
|
932
|
-
|
|
933
|
-
|
|
968
|
+
m("g", null, [
|
|
969
|
+
m("circle", {
|
|
934
970
|
cx: l.x,
|
|
935
971
|
cy: l.y,
|
|
936
972
|
r: l.hoverRadius,
|
|
937
973
|
fill: e.value.style.chart.backgroundColor
|
|
938
|
-
}, null, 8,
|
|
974
|
+
}, null, 8, La)
|
|
939
975
|
])
|
|
940
976
|
])) : v("", !0)
|
|
941
977
|
])) : v("", !0)
|
|
942
978
|
], 2))), 256)),
|
|
943
|
-
(u(!0),
|
|
944
|
-
class:
|
|
979
|
+
(u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
|
|
980
|
+
class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null })
|
|
945
981
|
}, [
|
|
946
|
-
l.subtotal !== null ? (u(),
|
|
947
|
-
l.subtotal === 0 ? (u(),
|
|
982
|
+
l.subtotal !== null ? (u(), s("g", _a, [
|
|
983
|
+
l.subtotal === 0 ? (u(), s("circle", {
|
|
948
984
|
key: 0,
|
|
949
985
|
cx: l.x,
|
|
950
986
|
cy: l.y,
|
|
951
987
|
r: 3,
|
|
952
988
|
fill: e.value.style.chart.color
|
|
953
|
-
}, null, 8,
|
|
954
|
-
(u(!0),
|
|
989
|
+
}, null, 8, Aa)) : b.value !== null && b.value === n ? (u(), s("g", Sa, [
|
|
990
|
+
(u(!0), s($, null, z(l.donutHover, (o, g) => (u(), s("path", {
|
|
955
991
|
d: o.arcSlice,
|
|
956
992
|
fill: `${o.color}`,
|
|
957
993
|
"stroke-width": 1,
|
|
958
994
|
stroke: e.value.style.chart.backgroundColor
|
|
959
|
-
}, null, 8,
|
|
960
|
-
])) : (u(),
|
|
961
|
-
(u(!0),
|
|
995
|
+
}, null, 8, $a))), 256))
|
|
996
|
+
])) : (u(), s("g", za, [
|
|
997
|
+
(u(!0), s($, null, z(l.donut, (o, g) => (u(), s("path", {
|
|
962
998
|
d: o.arcSlice,
|
|
963
999
|
fill: `${o.color}`,
|
|
964
1000
|
"stroke-width": 0.5,
|
|
965
1001
|
stroke: e.value.style.chart.backgroundColor
|
|
966
|
-
}, null, 8,
|
|
1002
|
+
}, null, 8, Ia))), 256))
|
|
967
1003
|
]))
|
|
968
1004
|
])) : v("", !0)
|
|
969
1005
|
], 2))), 256)),
|
|
970
|
-
(u(!0),
|
|
971
|
-
class:
|
|
1006
|
+
(u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
|
|
1007
|
+
class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null || he.value && n !== M.value.index })
|
|
972
1008
|
}, [
|
|
973
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(),
|
|
1009
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), s("text", {
|
|
974
1010
|
key: 0,
|
|
975
1011
|
"text-anchor": "middle",
|
|
976
1012
|
x: l.x,
|
|
977
|
-
y:
|
|
1013
|
+
y: b.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
|
|
978
1014
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
979
1015
|
"font-weight": "bold",
|
|
980
1016
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
981
|
-
},
|
|
1017
|
+
}, C(st(l.subtotal, l, n)), 9, Ta)) : v("", !0)
|
|
982
1018
|
], 2))), 256)),
|
|
983
|
-
(u(!0),
|
|
984
|
-
x: r.value.left +
|
|
1019
|
+
(u(!0), s($, null, z(A.value, (l, n) => (u(), s("rect", {
|
|
1020
|
+
x: r.value.left + n * L.value,
|
|
985
1021
|
y: r.value.top,
|
|
986
|
-
width:
|
|
1022
|
+
width: L.value,
|
|
987
1023
|
height: r.value.height,
|
|
988
|
-
fill: [
|
|
989
|
-
class:
|
|
1024
|
+
fill: [b.value, K.value].includes(l.index) ? `url(#hover_${O.value})` : "transparent",
|
|
1025
|
+
class: P({ "donut-hover": l.subtotal && [b.value, K.value].includes(l.index) }),
|
|
990
1026
|
style: {
|
|
991
1027
|
pointerEvents: "none"
|
|
992
1028
|
}
|
|
993
|
-
}, null, 10,
|
|
994
|
-
(u(!0),
|
|
1029
|
+
}, null, 10, Da))), 256)),
|
|
1030
|
+
(u(!0), s($, null, z(A.value, (l, n) => (u(), s("rect", {
|
|
995
1031
|
"data-cy-trap": "",
|
|
996
|
-
x: r.value.left +
|
|
1032
|
+
x: r.value.left + n * L.value,
|
|
997
1033
|
y: r.value.top,
|
|
998
|
-
width:
|
|
1034
|
+
width: L.value,
|
|
999
1035
|
height: r.value.height,
|
|
1000
1036
|
fill: "transparent",
|
|
1001
|
-
onMouseenter: (o) =>
|
|
1037
|
+
onMouseenter: (o) => Jt(l),
|
|
1002
1038
|
onMouseleave: (o) => rt(l),
|
|
1003
|
-
onClick: (o) => it(l,
|
|
1004
|
-
class:
|
|
1005
|
-
}, null, 42,
|
|
1006
|
-
|
|
1007
|
-
], 14,
|
|
1008
|
-
t.$slots.watermark ? (u(),
|
|
1009
|
-
|
|
1039
|
+
onClick: (o) => it(l, n),
|
|
1040
|
+
class: P({ "donut-hover": b.value === l.index && l.subtotal })
|
|
1041
|
+
}, null, 42, Oa))), 256)),
|
|
1042
|
+
p(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
1043
|
+
], 14, Ql)),
|
|
1044
|
+
t.$slots.watermark ? (u(), s("div", Na, [
|
|
1045
|
+
p(t.$slots, "watermark", R(E({ isPrinting: c(lt) || c(at) })), void 0, !0)
|
|
1010
1046
|
])) : v("", !0),
|
|
1011
|
-
|
|
1047
|
+
m("div", {
|
|
1012
1048
|
ref_key: "chartSlicer",
|
|
1013
1049
|
ref: Ge,
|
|
1014
|
-
style:
|
|
1050
|
+
style: te(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1015
1051
|
"data-dom-to-png-ignore": ""
|
|
1016
1052
|
}, [
|
|
1017
|
-
I.value > 1 && e.value.style.chart.zoom.show ? (u(),
|
|
1053
|
+
I.value > 1 && e.value.style.chart.zoom.show ? (u(), D(Gl, {
|
|
1018
1054
|
ref_key: "slicerComponent",
|
|
1019
1055
|
ref: We,
|
|
1020
|
-
key: `slicer_${
|
|
1056
|
+
key: `slicer_${Ee.value}`,
|
|
1021
1057
|
background: e.value.style.chart.zoom.color,
|
|
1022
1058
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1023
1059
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -1043,70 +1079,70 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
1043
1079
|
focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
|
|
1044
1080
|
onReset: Ze
|
|
1045
1081
|
}, {
|
|
1046
|
-
"reset-action":
|
|
1047
|
-
|
|
1082
|
+
"reset-action": f(({ reset: l }) => [
|
|
1083
|
+
p(t.$slots, "reset-action", R(E({ reset: l })), void 0, !0)
|
|
1048
1084
|
]),
|
|
1049
1085
|
_: 3
|
|
1050
1086
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : v("", !0)
|
|
1051
1087
|
], 4),
|
|
1052
|
-
|
|
1053
|
-
id: `legend-bottom-${
|
|
1054
|
-
}, null, 8,
|
|
1055
|
-
Me.value ? (u(),
|
|
1088
|
+
m("div", {
|
|
1089
|
+
id: `legend-bottom-${O.value}`
|
|
1090
|
+
}, null, 8, Pa),
|
|
1091
|
+
Me.value ? (u(), D(fl, {
|
|
1056
1092
|
key: 5,
|
|
1057
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1093
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1058
1094
|
}, [
|
|
1059
|
-
|
|
1095
|
+
m("div", {
|
|
1060
1096
|
ref_key: "chartLegend",
|
|
1061
1097
|
ref: Ue
|
|
1062
1098
|
}, [
|
|
1063
|
-
e.value.style.chart.legend.show ? (u(),
|
|
1099
|
+
e.value.style.chart.legend.show ? (u(), D(Wl, {
|
|
1064
1100
|
key: `legend_${Be.value}`,
|
|
1065
|
-
legendSet:
|
|
1066
|
-
config:
|
|
1067
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) =>
|
|
1101
|
+
legendSet: Ae.value,
|
|
1102
|
+
config: Kt.value,
|
|
1103
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => Z(l.uid))
|
|
1068
1104
|
}, {
|
|
1069
|
-
item:
|
|
1070
|
-
|
|
1071
|
-
onClick: (o) =>
|
|
1072
|
-
style:
|
|
1073
|
-
},
|
|
1105
|
+
item: f(({ legend: l, index: n }) => [
|
|
1106
|
+
m("div", {
|
|
1107
|
+
onClick: (o) => Z(l.uid),
|
|
1108
|
+
style: te(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1109
|
+
}, C(l.display), 13, Ra)
|
|
1074
1110
|
]),
|
|
1075
1111
|
_: 1
|
|
1076
1112
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
1077
|
-
|
|
1113
|
+
p(t.$slots, "legend", { legend: Ae.value }, void 0, !0)
|
|
1078
1114
|
], 512)
|
|
1079
1115
|
], 8, ["to"])) : v("", !0),
|
|
1080
|
-
t.$slots.source ? (u(),
|
|
1116
|
+
t.$slots.source ? (u(), s("div", {
|
|
1081
1117
|
key: 6,
|
|
1082
1118
|
ref_key: "source",
|
|
1083
1119
|
ref: Xe,
|
|
1084
1120
|
dir: "auto"
|
|
1085
1121
|
}, [
|
|
1086
|
-
|
|
1122
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
1087
1123
|
], 512)) : v("", !0),
|
|
1088
|
-
qe.value && e.value.userOptions.buttons.table ? (u(),
|
|
1124
|
+
qe.value && e.value.userOptions.buttons.table ? (u(), D(bl(ee.value.component), ml({ key: 7 }, ee.value.props, {
|
|
1089
1125
|
ref_key: "tableUnit",
|
|
1090
|
-
ref:
|
|
1091
|
-
onClose:
|
|
1092
|
-
}),
|
|
1093
|
-
content:
|
|
1094
|
-
(u(),
|
|
1126
|
+
ref: Q,
|
|
1127
|
+
onClose: bt
|
|
1128
|
+
}), kt({
|
|
1129
|
+
content: f(() => [
|
|
1130
|
+
(u(), D(c(Rt), {
|
|
1095
1131
|
key: `table_${Ve.value}`,
|
|
1096
|
-
colNames:
|
|
1097
|
-
head:
|
|
1098
|
-
body:
|
|
1099
|
-
config:
|
|
1100
|
-
title: e.value.table.useDialog ? "" :
|
|
1132
|
+
colNames: j.value.colNames,
|
|
1133
|
+
head: j.value.head,
|
|
1134
|
+
body: j.value.body,
|
|
1135
|
+
config: j.value.config,
|
|
1136
|
+
title: e.value.table.useDialog ? "" : ee.value.title,
|
|
1101
1137
|
withCloseButton: !e.value.table.useDialog,
|
|
1102
|
-
onClose:
|
|
1138
|
+
onClose: bt
|
|
1103
1139
|
}, {
|
|
1104
|
-
th:
|
|
1105
|
-
|
|
1140
|
+
th: f(({ th: l }) => [
|
|
1141
|
+
Te(C(l.name ?? l), 1)
|
|
1106
1142
|
]),
|
|
1107
|
-
td:
|
|
1108
|
-
l.value === null ? (u(),
|
|
1109
|
-
|
|
1143
|
+
td: f(({ td: l }) => [
|
|
1144
|
+
l.value === null ? (u(), s("span", Ea, "-")) : (u(), s("b", Fa, C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + C(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1145
|
+
m("span", null, C(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1110
1146
|
]),
|
|
1111
1147
|
_: 1
|
|
1112
1148
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1115,58 +1151,58 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
1115
1151
|
}, [
|
|
1116
1152
|
e.value.table.useDialog ? {
|
|
1117
1153
|
name: "title",
|
|
1118
|
-
fn:
|
|
1119
|
-
|
|
1154
|
+
fn: f(() => [
|
|
1155
|
+
Te(C(ee.value.title), 1)
|
|
1120
1156
|
]),
|
|
1121
1157
|
key: "0"
|
|
1122
1158
|
} : void 0,
|
|
1123
1159
|
e.value.table.useDialog ? {
|
|
1124
1160
|
name: "actions",
|
|
1125
|
-
fn:
|
|
1126
|
-
|
|
1161
|
+
fn: f(() => [
|
|
1162
|
+
m("button", {
|
|
1127
1163
|
tabindex: "0",
|
|
1128
1164
|
class: "vue-ui-user-options-button",
|
|
1129
1165
|
onClick: a[3] || (a[3] = (l) => Se(e.value.userOptions.callbacks.csv))
|
|
1130
1166
|
}, [
|
|
1131
|
-
|
|
1167
|
+
wt(c(Pt), {
|
|
1132
1168
|
name: "excel",
|
|
1133
|
-
stroke:
|
|
1169
|
+
stroke: ee.value.props.color
|
|
1134
1170
|
}, null, 8, ["stroke"])
|
|
1135
1171
|
])
|
|
1136
1172
|
]),
|
|
1137
1173
|
key: "1"
|
|
1138
1174
|
} : void 0
|
|
1139
1175
|
]), 1040)) : v("", !0),
|
|
1140
|
-
e.value.style.chart.dialog.show ? (u(),
|
|
1176
|
+
e.value.style.chart.dialog.show ? (u(), D(c(Pe), {
|
|
1141
1177
|
key: 8,
|
|
1142
1178
|
ref_key: "dialog",
|
|
1143
1179
|
ref: ze,
|
|
1144
1180
|
onClose: a[4] || (a[4] = (l) => {
|
|
1145
|
-
|
|
1181
|
+
M.value = null, he.value = !1, ae.value = null, b.value = null, K.value = null;
|
|
1146
1182
|
}),
|
|
1147
1183
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1148
1184
|
color: e.value.style.chart.dialog.color,
|
|
1149
1185
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1150
1186
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1151
|
-
isFullscreen:
|
|
1152
|
-
fullscreenParent:
|
|
1187
|
+
isFullscreen: W.value,
|
|
1188
|
+
fullscreenParent: F.value
|
|
1153
1189
|
}, {
|
|
1154
|
-
title:
|
|
1155
|
-
|
|
1190
|
+
title: f(() => [
|
|
1191
|
+
Te(C(_.value[Number(M.value.index)] ? _.value[Number(M.value.index)].text : ""), 1)
|
|
1156
1192
|
]),
|
|
1157
|
-
content:
|
|
1158
|
-
|
|
1193
|
+
content: f(() => [
|
|
1194
|
+
M.value ? (u(), D(c(Bt), {
|
|
1159
1195
|
key: 0,
|
|
1160
|
-
config:
|
|
1161
|
-
dataset:
|
|
1196
|
+
config: ft.value,
|
|
1197
|
+
dataset: gt.value
|
|
1162
1198
|
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1163
1199
|
]),
|
|
1164
1200
|
_: 1
|
|
1165
1201
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1166
|
-
c(Je) ? (u(),
|
|
1167
|
-
], 46,
|
|
1202
|
+
c(Je) ? (u(), D(Rl, { key: 9 })) : v("", !0)
|
|
1203
|
+
], 46, jl));
|
|
1168
1204
|
}
|
|
1169
|
-
},
|
|
1205
|
+
}, ao = /* @__PURE__ */ Yl(Va, [["__scopeId", "data-v-d491ac71"]]);
|
|
1170
1206
|
export {
|
|
1171
|
-
|
|
1207
|
+
ao as default
|
|
1172
1208
|
};
|