vue-data-ui 3.0.0-next.32 → 3.0.0-next.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DiI9PrPS.js → Arrow-7o1zcGGd.js} +1 -1
- package/dist/{BaseDraggableDialog-C0Kz_kZp.js → BaseDraggableDialog-fZ1Z5U4d.js} +2 -2
- package/dist/{BaseIcon-B_tGgA4H.js → BaseIcon-Cq9SmUOT.js} +1 -1
- package/dist/{ColorPicker-CNsQt00F.js → ColorPicker-BNmC5tPY.js} +2 -2
- package/dist/{DataTable-Cm1oLidx.js → DataTable-DonNp9Tn.js} +2 -2
- package/dist/{Legend-DlUDcF1t.js → Legend-De_LcU2x.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CLlxRJK1.js → NonSvgPenAndPaper-DCCmvppN.js} +3 -3
- package/dist/{PackageVersion-DZMJZGOu.js → PackageVersion-F_KOshQ5.js} +1 -1
- package/dist/{PenAndPaper-BDNLADWh.js → PenAndPaper-BzsPyqiU.js} +3 -3
- package/dist/{Shape-Br_SZ_x0.js → Shape-CJI8rA0G.js} +1 -1
- package/dist/{Slicer-DMU3nifX.js → Slicer-BCCGJwNV.js} +2 -2
- package/dist/{SparkTooltip-B6xp9zx_.js → SparkTooltip-ZSo6Sdhj.js} +1 -1
- package/dist/{Title-B5lsq0cx.js → Title-CbfJu3Bz.js} +1 -1
- package/dist/{Tooltip-CrAURNKT.js → Tooltip-BuuVsO8D.js} +1 -1
- package/dist/{UserOptions-CksX2mn0.js → UserOptions-32osgWD2.js} +2 -2
- package/dist/{dom-to-png-CIBDe8BB.js → dom-to-png-B4iPnzPd.js} +1 -1
- package/dist/{img-CWXYkVMQ.js → img-Domj-5hZ.js} +1 -1
- package/dist/{index-DB4XIP_N.js → index-BeBasrrG.js} +160 -137
- package/dist/{pdf-Dm-ieKMv.js → pdf-KclgkN6e.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +14 -4
- package/dist/types/vue-data-ui.d.ts +14 -4
- package/dist/{useNestedProp-iTa19l34.js → useNestedProp-BI69cynt.js} +1 -1
- package/dist/{usePrinter-id381vkp.js → usePrinter-DpTBVYGM.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DFkUfjfs.js → useTimeLabels-DkzmKfZn.js} +21 -21
- package/dist/{vue-data-ui-WdvK3lBL.js → vue-data-ui-DfOSI-cw.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtiAXSRA.js → vue-ui-3d-bar-BFUcEqAl.js} +6 -6
- package/dist/{vue-ui-accordion-DAT3uTMD.js → vue-ui-accordion-BBZQktvS.js} +3 -3
- package/dist/{vue-ui-age-pyramid-LuljyG04.js → vue-ui-age-pyramid-C1fCszkG.js} +6 -6
- package/dist/{vue-ui-annotator-CzHa2GlG.js → vue-ui-annotator-BThZoiBl.js} +2 -2
- package/dist/{vue-ui-bullet-BEzXYrWC.js → vue-ui-bullet-D0-jL6aT.js} +7 -7
- package/dist/{vue-ui-candlestick-DSaFw3wl.js → vue-ui-candlestick-BKY_1NxQ.js} +163 -160
- package/dist/{vue-ui-carousel-table-D1CLPWmk.js → vue-ui-carousel-table-RqYXqUym.js} +4 -4
- package/dist/{vue-ui-chestnut-D3FNLdep.js → vue-ui-chestnut-QLx875w4.js} +5 -5
- package/dist/{vue-ui-chord-CFT-LcE4.js → vue-ui-chord-rUYoYkRO.js} +8 -8
- package/dist/{vue-ui-circle-pack-Bl_cyLTg.js → vue-ui-circle-pack-DX5resGr.js} +6 -6
- package/dist/{vue-ui-cursor-C2XYAY0n.js → vue-ui-cursor-Day-0aL1.js} +2 -2
- package/dist/{vue-ui-dashboard-4ZwAsn1N.js → vue-ui-dashboard-G0W4wq1U.js} +62 -62
- package/dist/{vue-ui-digits-Da5mTaOQ.js → vue-ui-digits-DFREi_Ky.js} +2 -2
- package/dist/{vue-ui-donut-B6QlrBEH.js → vue-ui-donut-BdxnEUCr.js} +8 -8
- package/dist/{vue-ui-donut-evolution-Tv7oj7TE.js → vue-ui-donut-evolution-DYeMgZMU.js} +215 -212
- package/dist/{vue-ui-dumbbell-LNnnDec4.js → vue-ui-dumbbell-ajhNYekO.js} +7 -7
- package/dist/{vue-ui-flow-B618L2Da.js → vue-ui-flow-BOq3_apj.js} +7 -7
- package/dist/{vue-ui-funnel-DS_tcSnW.js → vue-ui-funnel-1Tc-WWAK.js} +6 -6
- package/dist/{vue-ui-galaxy-C5qk-fEV.js → vue-ui-galaxy-DRdIquCv.js} +5 -5
- package/dist/{vue-ui-gauge-C33XPj6b.js → vue-ui-gauge-B0a3J_d1.js} +6 -6
- package/dist/{vue-ui-gizmo-Cr6zUxnq.js → vue-ui-gizmo-5G0uR26C.js} +3 -3
- package/dist/vue-ui-heatmap-BGYSmKC-.js +1084 -0
- package/dist/{vue-ui-history-plot-DM_vTyiY.js → vue-ui-history-plot-kHo6293P.js} +7 -7
- package/dist/{vue-ui-kpi-BgFQSUVT.js → vue-ui-kpi-6zONwNMN.js} +3 -3
- package/dist/{vue-ui-mini-loader-BEpehl5X.js → vue-ui-mini-loader-XyVfmLch.js} +2 -2
- package/dist/{vue-ui-molecule-BIQFbPof.js → vue-ui-molecule-BoQKd6NP.js} +5 -5
- package/dist/{vue-ui-mood-radar-RShxk3Bz.js → vue-ui-mood-radar-DncLIzjX.js} +7 -7
- package/dist/{vue-ui-nested-donuts-dMBxBBnZ.js → vue-ui-nested-donuts-DXMadqNK.js} +9 -9
- package/dist/{vue-ui-onion-ZVZ6wpNM.js → vue-ui-onion-CbtXXJHJ.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-1a3BGVsh.js → vue-ui-parallel-coordinate-plot-D-zLAqYN.js} +8 -8
- package/dist/{vue-ui-quadrant-XCnxKrJd.js → vue-ui-quadrant-DqN9de-E.js} +8 -8
- package/dist/{vue-ui-quick-chart-BQJqdHxB.js → vue-ui-quick-chart-fAHV8BFQ.js} +7 -7
- package/dist/{vue-ui-radar-CeXlq2A-.js → vue-ui-radar-Dcr4Y35J.js} +7 -7
- package/dist/{vue-ui-rating-DTq-mZyU.js → vue-ui-rating-Y_X6wrM8.js} +2 -2
- package/dist/{vue-ui-relation-circle-k8viefM-.js → vue-ui-relation-circle-CsjfP4w3.js} +6 -6
- package/dist/{vue-ui-ridgeline-B8oddwmZ.js → vue-ui-ridgeline-COQZjWXD.js} +9 -9
- package/dist/{vue-ui-rings-9XT1ePuY.js → vue-ui-rings-IWHU4YHR.js} +8 -8
- package/dist/{vue-ui-scatter-oM-LVerf.js → vue-ui-scatter-zG4nPspJ.js} +8 -8
- package/dist/{vue-ui-skeleton-DDLBx4bb.js → vue-ui-skeleton-BLCAe0aL.js} +3 -3
- package/dist/{vue-ui-smiley-D5ybBkdY.js → vue-ui-smiley-CgMyaK6w.js} +2 -2
- package/dist/{vue-ui-spark-trend-Tl-sOjqa.js → vue-ui-spark-trend-Dn2iTtuB.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ce6dYcF4.js → vue-ui-sparkbar-BA_s34xX.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DRHrbpSl.js → vue-ui-sparkgauge-CGoeUY4p.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DBtPWFim.js → vue-ui-sparkhistogram-BuSn8iJi.js} +4 -4
- package/dist/{vue-ui-sparkline-DcF2ugGh.js → vue-ui-sparkline-CYJUhGaJ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-C01iI0y3.js → vue-ui-sparkstackbar-BDQWVxNP.js} +3 -3
- package/dist/{vue-ui-stackbar-BeCCgw_v.js → vue-ui-stackbar-B92-pzwh.js} +301 -298
- package/dist/{vue-ui-strip-plot-CsK2a1mH.js → vue-ui-strip-plot-BLTjzATL.js} +7 -7
- package/dist/{vue-ui-table-COjBJDmq.js → vue-ui-table-Ba7Z_7OX.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DfxMcAr9.js → vue-ui-table-heatmap-C29u3mfg.js} +5 -5
- package/dist/{vue-ui-table-sparkline-0BC6BxKt.js → vue-ui-table-sparkline-BLR9glHo.js} +4 -4
- package/dist/{vue-ui-thermometer-Bf2_qGBi.js → vue-ui-thermometer-BAm6l97t.js} +6 -6
- package/dist/{vue-ui-timer-BC9tH4qB.js → vue-ui-timer-CqbbNnBk.js} +5 -5
- package/dist/{vue-ui-tiremarks-ya8ABi9I.js → vue-ui-tiremarks-BnZr2Vrp.js} +6 -6
- package/dist/{vue-ui-treemap-BSHptMc8.js → vue-ui-treemap-J8OANLCg.js} +8 -8
- package/dist/{vue-ui-vertical-bar-B_Oa-v87.js → vue-ui-vertical-bar-DdR3STYF.js} +9 -9
- package/dist/{vue-ui-waffle-DHB8v3nh.js → vue-ui-waffle-w5VJA7gR.js} +8 -8
- package/dist/{vue-ui-wheel-Bi28_KVB.js → vue-ui-wheel-D5yea4oH.js} +6 -6
- package/dist/{vue-ui-word-cloud-BcQ2cfcu.js → vue-ui-word-cloud-OugLGxgB.js} +6 -6
- package/dist/{vue-ui-world-aLL9NUDQ.js → vue-ui-world-BSptBo4h.js} +6 -6
- package/dist/vue-ui-xy-DnYo2K58.js +3741 -0
- package/dist/{vue-ui-xy-canvas-sUpmc7gl.js → vue-ui-xy-canvas-Cmn0RWbG.js} +9 -9
- package/package.json +1 -1
- package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
- package/dist/vue-ui-heatmap-ksiw1nTI.js +0 -879
- package/dist/vue-ui-xy-BxonzF88.js +0 -3710
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, ref as c, shallowRef as vt, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as xt } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { t as pt, u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as V, ref as c, shallowRef as vt, computed as y, onMounted as jt, toRefs as qt, nextTick as Ce, watch as _e, watchEffect as Jt, onBeforeUnmount as Kt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as J, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as p, createSlots as Qt, withCtx as L, renderSlot as S, normalizeProps as K, guardReactiveProps as Q, createVNode as Zt, Fragment as z, renderList as $, toDisplayString as m, createTextVNode as dt } from "vue";
|
|
2
|
+
import { u as el, c as ht, o as yt, e as se, g as tl, A as ll, t as al, p as ne, a as ol, C as ft, b as ul, d as Le, G as sl, D as gt, m as Ae, X as nl, s as Z, H as rl, i as Se, f as re, I as il, j as cl, k as vl, n as mt, q as dl, r as hl, J as bt, K as yl } from "./index-BeBasrrG.js";
|
|
3
|
+
import { u as fl } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
+
import { u as xt } from "./useNestedProp-BI69cynt.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-DpTBVYGM.js";
|
|
6
|
+
import { u as ml } from "./useTimeLabels-DkzmKfZn.js";
|
|
7
|
+
import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as xl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import pl from "./Legend-De_LcU2x.js";
|
|
10
|
+
import { S as kl } from "./Slicer-BCCGJwNV.js";
|
|
11
|
+
import wl from "./Title-CbfJu3Bz.js";
|
|
12
|
+
import Cl from "./img-Domj-5hZ.js";
|
|
13
|
+
import { t as pt, u as _l } from "./useResponsive-DfdjqQps.js";
|
|
14
|
+
import { u as Ll, B as Al } from "./BaseScanner-DIK2NTdp.js";
|
|
15
|
+
import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"], Nl = ["id"], Tl = ["stop-color"], Ol = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], El = ["stop-color"], Rl = { key: 1 }, Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = { key: 0 }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["font-size", "fill", "transform"], Xl = ["x", "y", "font-size", "fill"], Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = ["x", "y", "font-size", "fill", "font-weight"], Yl = { key: 0 }, jl = ["text-anchor", "font-size", "fill", "transform"], ql = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Jl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Kl = { key: 1 }, Ql = ["cx", "cy", "r", "fill"], Zl = { key: 0 }, ea = { key: 0 }, ta = ["d", "stroke"], la = ["text-anchor", "x", "y", "fill"], aa = ["cx", "cy", "r", "fill"], oa = { key: 0 }, ua = ["cx", "cy", "fill"], sa = { key: 1 }, na = ["d", "fill", "stroke"], ra = { key: 2 }, ia = ["d", "fill", "stroke"], ca = ["x", "y", "font-size", "fill"], va = ["x", "y", "width", "height", "fill"], da = ["x", "y", "width", "height", "onMouseenter", "onClick"], ha = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, ya = ["onClick"], fa = { key: 0 }, ga = { key: 1 }, ma = {
|
|
20
20
|
__name: "vue-ui-donut-evolution",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -34,18 +34,18 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(kt, { expose: wt, emit: Ct }) {
|
|
37
|
-
const _t = V(() => import("./vue-ui-accordion-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const _t = V(() => import("./vue-ui-accordion-BBZQktvS.js")), Lt = V(() => import("./BaseDraggableDialog-fZ1Z5U4d.js")), At = V(() => import("./DataTable-DonNp9Tn.js")), St = V(() => import("./PackageVersion-F_KOshQ5.js")), zt = V(() => import("./PenAndPaper-BzsPyqiU.js")), $t = V(() => import("./UserOptions-32osgWD2.js")), It = V(() => import("./vue-ui-donut-BdxnEUCr.js")), { vue_ui_donut_evolution: Nt } = el(), b = kt, M = c(ht()), w = c([]), g = c(null), ee = c(null), ie = c(!1), E = c(null), P = c(null), Tt = c(null), ze = c(0), $e = c(0), Ie = c(0), Ne = c(0), Te = c(0), ce = c(null), te = c(null), ve = c(null), de = c(null), Oe = c(null), Pe = c(null), De = c(null), Fe = c(null), Ee = c(null), he = c(!1), Y = vt(null), le = vt(null), Re = c(null), Ve = Ct, Me = y(() => !!b.dataset && b.dataset.length);
|
|
38
|
+
jt(() => {
|
|
39
|
+
He();
|
|
40
40
|
});
|
|
41
|
-
const
|
|
42
|
-
function
|
|
41
|
+
const ae = y(() => !!e.value.debug);
|
|
42
|
+
function He() {
|
|
43
43
|
if (yt(b.dataset) ? (se({
|
|
44
44
|
componentName: "VueUiDonutEvolution",
|
|
45
45
|
type: "dataset",
|
|
46
|
-
debug:
|
|
47
|
-
}),
|
|
48
|
-
|
|
46
|
+
debug: ae.value
|
|
47
|
+
}), oe.value = !0) : b.dataset.length && b.dataset.forEach((t, a) => {
|
|
48
|
+
tl({
|
|
49
49
|
datasetObject: t,
|
|
50
50
|
requiredAttributes: ["name", "values"]
|
|
51
51
|
}).forEach((l) => {
|
|
@@ -54,32 +54,32 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
54
54
|
type: "datasetSerieAttribute",
|
|
55
55
|
property: l,
|
|
56
56
|
index: a,
|
|
57
|
-
debug:
|
|
58
|
-
}),
|
|
57
|
+
debug: ae.value
|
|
58
|
+
}), oe.value = !0;
|
|
59
59
|
});
|
|
60
|
-
}), yt(b.dataset) || (
|
|
60
|
+
}), yt(b.dataset) || (oe.value = e.value.loading), setTimeout(() => {
|
|
61
61
|
he.value = !0;
|
|
62
62
|
}, 10), fe(), e.value.responsive) {
|
|
63
63
|
const t = pt(() => {
|
|
64
64
|
he.value = !1;
|
|
65
|
-
const { width: a, height: l } =
|
|
65
|
+
const { width: a, height: l } = _l({
|
|
66
66
|
chart: P.value,
|
|
67
67
|
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
68
68
|
legend: e.value.style.chart.legend.show ? Pe.value : null,
|
|
69
69
|
slicer: e.value.style.chart.zoom.show && Ue.value > 1 ? Ee.value : null,
|
|
70
|
-
source:
|
|
70
|
+
source: De.value
|
|
71
71
|
});
|
|
72
72
|
requestAnimationFrame(() => {
|
|
73
|
-
|
|
73
|
+
H.value.width = a, H.value.height = l - 12, clearTimeout(Re.value), Re.value = setTimeout(() => {
|
|
74
74
|
he.value = !0;
|
|
75
75
|
}, 10);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
Y.value && (le.value && Y.value.unobserve(le.value), Y.value.disconnect()), Y.value = new ResizeObserver(t), le.value = P.value.parentNode, Y.value.observe(le.value);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const e = c(me()), { loading:
|
|
82
|
-
...
|
|
81
|
+
const e = c(me()), { loading: Be, FINAL_DATASET: ye, manualLoading: oe } = Ll({
|
|
82
|
+
...qt(b),
|
|
83
83
|
FINAL_CONFIG: e,
|
|
84
84
|
prepareConfig: me,
|
|
85
85
|
callback: () => {
|
|
@@ -104,7 +104,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
104
104
|
color: "#CACACA"
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
|
-
skeletonConfig:
|
|
107
|
+
skeletonConfig: ll({
|
|
108
108
|
defaultConfig: e.value,
|
|
109
109
|
userConfig: {
|
|
110
110
|
useCssAnimation: !1,
|
|
@@ -146,10 +146,10 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
})
|
|
149
|
-
}),
|
|
149
|
+
}), H = c({
|
|
150
150
|
width: e.value.style.chart.layout.width,
|
|
151
151
|
height: e.value.style.chart.layout.height
|
|
152
|
-
}), Ue =
|
|
152
|
+
}), Ue = y(() => Math.max(...ye.value.map((t) => t.values.length))), f = c({
|
|
153
153
|
start: 0,
|
|
154
154
|
end: Ue.value
|
|
155
155
|
});
|
|
@@ -158,17 +158,17 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
158
158
|
}
|
|
159
159
|
async function fe() {
|
|
160
160
|
await Ce(), await Ce();
|
|
161
|
-
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l =
|
|
162
|
-
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Ot(a + 1))) : (
|
|
161
|
+
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Fe.value;
|
|
162
|
+
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Ot(a + 1))) : (f.value = {
|
|
163
163
|
start: 0,
|
|
164
|
-
end:
|
|
164
|
+
end: D.value
|
|
165
165
|
}, $e.value += 1);
|
|
166
166
|
}
|
|
167
167
|
function Ot(t) {
|
|
168
|
-
const a =
|
|
168
|
+
const a = D.value;
|
|
169
169
|
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;
|
|
170
170
|
}
|
|
171
|
-
const { userOptionsVisible: ge, setUserOptionsVisibility: Ge, keepUserOptionState: We } =
|
|
171
|
+
const { userOptionsVisible: ge, setUserOptionsVisibility: Ge, keepUserOptionState: We } = bl({ config: e.value }), { svgRef: Ye } = fl({ config: e.value.style.chart.title });
|
|
172
172
|
function me() {
|
|
173
173
|
const t = xt({
|
|
174
174
|
userConfig: b.config,
|
|
@@ -177,22 +177,22 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
177
177
|
let a = {};
|
|
178
178
|
return t.theme ? a = {
|
|
179
179
|
...xt({
|
|
180
|
-
userConfig:
|
|
180
|
+
userConfig: ol.vue_ui_donut_evolution[t.theme] || b.config,
|
|
181
181
|
defaultConfig: t
|
|
182
182
|
}),
|
|
183
|
-
customPalette:
|
|
183
|
+
customPalette: al[t.theme] || ne
|
|
184
184
|
} : a = t, b.config && ft(b.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, b.config && ft(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
185
185
|
}
|
|
186
186
|
_e(() => b.config, (t) => {
|
|
187
|
-
|
|
187
|
+
Be.value || (e.value = me()), ge.value = !e.value.userOptions.showOnChartHover, He(), Ie.value += 1, Ne.value += 1, Te.value += 1, B.value.showTable = e.value.table.show;
|
|
188
188
|
}, { deep: !0 }), _e(() => b.dataset, (t) => {
|
|
189
|
-
Array.isArray(t) && t.length > 0 && (
|
|
189
|
+
Array.isArray(t) && t.length > 0 && (oe.value = !1), Xe();
|
|
190
190
|
}, { deep: !0 });
|
|
191
|
-
const { isPrinting: je, isImaging: qe, generatePdf: Je, generateImage: Ke } =
|
|
191
|
+
const { isPrinting: je, isImaging: qe, generatePdf: Je, generateImage: Ke } = gl({
|
|
192
192
|
elementId: M.value,
|
|
193
193
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
194
194
|
options: e.value.userOptions.print
|
|
195
|
-
}), Pt =
|
|
195
|
+
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Dt = y(() => ul(e.value.customPalette)), B = c({
|
|
196
196
|
showTable: e.value.table.show
|
|
197
197
|
});
|
|
198
198
|
_e(e, () => {
|
|
@@ -200,13 +200,13 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
200
200
|
showTable: e.value.table.show
|
|
201
201
|
};
|
|
202
202
|
}, { immediate: !0 });
|
|
203
|
-
const R =
|
|
203
|
+
const R = y(() => ({
|
|
204
204
|
top: e.value.style.chart.layout.padding.top,
|
|
205
205
|
right: e.value.style.chart.layout.padding.right,
|
|
206
206
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
207
207
|
left: e.value.style.chart.layout.padding.left
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
209
|
+
function Ft() {
|
|
210
210
|
let t = 0;
|
|
211
211
|
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((u, h) => {
|
|
212
212
|
const d = h.getComputedTextLength();
|
|
@@ -218,101 +218,101 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
218
218
|
const be = c(0), Et = pt((t) => {
|
|
219
219
|
be.value = t;
|
|
220
220
|
}, 100);
|
|
221
|
-
|
|
222
|
-
const a =
|
|
221
|
+
Jt((t) => {
|
|
222
|
+
const a = te.value;
|
|
223
223
|
if (!a) return;
|
|
224
224
|
const l = new ResizeObserver((s) => {
|
|
225
225
|
Et(s[0].contentRect.height);
|
|
226
226
|
});
|
|
227
227
|
l.observe(a), t(() => l.disconnect());
|
|
228
|
-
}),
|
|
228
|
+
}), Kt(() => {
|
|
229
229
|
be.value = 0;
|
|
230
230
|
});
|
|
231
|
-
const Qe =
|
|
231
|
+
const Qe = y(() => {
|
|
232
232
|
let t = 0;
|
|
233
233
|
ve.value && (t = ve.value.getBBox().height);
|
|
234
234
|
let a = 0;
|
|
235
|
-
return
|
|
236
|
-
}), r =
|
|
237
|
-
const t =
|
|
235
|
+
return te.value && (a = be.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
236
|
+
}), r = y(() => {
|
|
237
|
+
const t = Ft(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height, u = R.value.left + t, h = l - R.value.right, d = l - u - R.value.right, x = s - R.value.top - R.value.bottom - a - Qe.value, W = R.value.top + a, F = s - R.value.bottom - Qe.value;
|
|
238
238
|
return {
|
|
239
|
-
top:
|
|
239
|
+
top: W,
|
|
240
240
|
left: u,
|
|
241
241
|
right: h,
|
|
242
|
-
bottom:
|
|
242
|
+
bottom: F,
|
|
243
243
|
absoluteHeight: s,
|
|
244
244
|
absoluteWidth: l,
|
|
245
245
|
centerX: u + Math.max(10, d) / 2,
|
|
246
|
-
centerY:
|
|
246
|
+
centerY: W + Math.max(10, x) / 2,
|
|
247
247
|
width: Math.max(10, d),
|
|
248
248
|
height: Math.max(10, x)
|
|
249
249
|
};
|
|
250
|
-
}), O =
|
|
250
|
+
}), O = y(() => (ye.value.forEach((t, a) => {
|
|
251
251
|
[null, void 0].includes(t.name) && se({
|
|
252
252
|
componentName: "VueUiDonutEvolution",
|
|
253
253
|
type: "datasetSerieAttribute",
|
|
254
254
|
property: "name",
|
|
255
255
|
index: a,
|
|
256
|
-
debug:
|
|
256
|
+
debug: ae.value
|
|
257
257
|
}), [null, void 0].includes(t.values) && se({
|
|
258
258
|
componentName: "VueUiDonutEvolution",
|
|
259
259
|
type: "datasetSerieAttribute",
|
|
260
260
|
property: "values",
|
|
261
261
|
index: a,
|
|
262
|
-
debug:
|
|
262
|
+
debug: ae.value
|
|
263
263
|
});
|
|
264
264
|
}), ye.value.map((t, a) => ({
|
|
265
265
|
...t,
|
|
266
|
-
values:
|
|
267
|
-
color: Le(t.color) ||
|
|
266
|
+
values: sl(t.values),
|
|
267
|
+
color: Le(t.color) || Dt.value[a] || ne[a] || ne[a % ne.length],
|
|
268
268
|
length: (t.values || []).length,
|
|
269
269
|
uid: ht()
|
|
270
|
-
})))),
|
|
270
|
+
})))), j = y(() => O.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
|
|
271
271
|
...t,
|
|
272
|
-
values: t.values.filter((a, l) => l >=
|
|
273
|
-
}))),
|
|
272
|
+
values: t.values.filter((a, l) => l >= f.value.start && l <= f.value.end)
|
|
273
|
+
}))), D = y(() => Math.max(...j.value.map((t) => t.length))), C = y(() => ml({
|
|
274
274
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
275
|
-
maxDatapoints:
|
|
275
|
+
maxDatapoints: D.value,
|
|
276
276
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
277
|
-
start:
|
|
278
|
-
end:
|
|
279
|
-
})), k =
|
|
277
|
+
start: f.value.start,
|
|
278
|
+
end: f.value.end
|
|
279
|
+
})), k = y(() => r.value.width / (f.value.end - f.value.start)), _ = y(() => {
|
|
280
280
|
const t = [];
|
|
281
|
-
for (let u = 0; u <
|
|
282
|
-
const h =
|
|
281
|
+
for (let u = 0; u < f.value.end - f.value.start; u += 1) {
|
|
282
|
+
const h = j.value.map((I) => I.values[u] ?? null), d = h.filter((I) => [void 0, null].includes(I)).length === h.length, x = h.reduce((I, A) => I + A, 0), W = h.map((I) => I / x), F = r.value.left + k.value * u + k.value / 2;
|
|
283
283
|
t.push({
|
|
284
284
|
index: u,
|
|
285
|
-
percentages:
|
|
285
|
+
percentages: W,
|
|
286
286
|
subtotal: d || x < 0 ? null : x,
|
|
287
287
|
values: h,
|
|
288
|
-
x:
|
|
288
|
+
x: F
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
292
292
|
return t.map((u, h) => {
|
|
293
|
-
const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d,
|
|
293
|
+
const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, W = g.value === u.index ? r.value.width / 16 : x, F = t.length > 4 ? d * 2 : d * 2 > k.value / 2 * 0.7 ? k.value / 2 * 0.7 : d * 2, I = r.value.bottom - r.value.height * u.subtotal / gt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
294
294
|
return {
|
|
295
295
|
...u,
|
|
296
296
|
y: I,
|
|
297
297
|
radius: x,
|
|
298
|
-
activeRadius:
|
|
299
|
-
hoverRadius:
|
|
298
|
+
activeRadius: W,
|
|
299
|
+
hoverRadius: F,
|
|
300
300
|
donut: Ae({
|
|
301
|
-
series:
|
|
301
|
+
series: j.value.map((A, ct) => ({
|
|
302
302
|
color: A.color,
|
|
303
303
|
name: A.name,
|
|
304
304
|
value: A.values[h] ?? 0
|
|
305
305
|
}))
|
|
306
306
|
}, u.x, I, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
|
|
307
307
|
donutHover: Ae({
|
|
308
|
-
series:
|
|
308
|
+
series: j.value.map((A, ct) => ({
|
|
309
309
|
color: A.color,
|
|
310
310
|
name: A.name,
|
|
311
311
|
value: A.values[h] ?? 0
|
|
312
312
|
}))
|
|
313
|
-
}, u.x, I,
|
|
313
|
+
}, u.x, I, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
|
|
314
314
|
donutFocus: Ae({
|
|
315
|
-
series:
|
|
315
|
+
series: j.value.map((A, ct) => ({
|
|
316
316
|
color: A.color,
|
|
317
317
|
name: A.name,
|
|
318
318
|
value: A.values[h] ?? 0
|
|
@@ -334,17 +334,17 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
334
334
|
{ datapoint: a, index: l }
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
const xe =
|
|
337
|
+
const xe = y(() => ({
|
|
338
338
|
max: Math.max(..._.value.map((t) => t.subtotal)),
|
|
339
339
|
min: 0
|
|
340
|
-
})),
|
|
340
|
+
})), U = y(() => {
|
|
341
341
|
const t = _.value.length === 1 ? xe.value.max * 2 : xe.value.max;
|
|
342
342
|
return gt(xe.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
343
343
|
});
|
|
344
344
|
function Rt(t) {
|
|
345
|
-
return t /
|
|
345
|
+
return t / U.value.max;
|
|
346
346
|
}
|
|
347
|
-
const Vt =
|
|
347
|
+
const Vt = y(() => U.value.ticks.map((t) => ({
|
|
348
348
|
y: r.value.bottom - r.value.height * Rt(t),
|
|
349
349
|
value: t
|
|
350
350
|
})));
|
|
@@ -352,18 +352,18 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
352
352
|
return isNaN(t.value / bt(a, "value")) ? 0 : (t.value / bt(a, "value") * 100).toFixed(0) + "%";
|
|
353
353
|
}
|
|
354
354
|
function et() {
|
|
355
|
-
|
|
355
|
+
g.value = null, ee.value = null;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
|
|
357
|
+
function Ht(t) {
|
|
358
|
+
g.value = t.index, ee.value = t;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const q = c(null);
|
|
361
361
|
function tt(t, a) {
|
|
362
|
-
!t.subtotal || !e.value.style.chart.dialog.show || (
|
|
362
|
+
!t.subtotal || !e.value.style.chart.dialog.show || (ee.value = null, g.value = null, ie.value = !0, E.value = t, Xt(t), [null, void 0].includes(a) || (q.value = a));
|
|
363
363
|
}
|
|
364
|
-
const lt =
|
|
364
|
+
const lt = y(() => O.value.map((t, a) => ({
|
|
365
365
|
name: t.name,
|
|
366
|
-
value: t.values.slice(
|
|
366
|
+
value: t.values.slice(f.value.start, f.value.end).reduce((l, s) => l + s, 0),
|
|
367
367
|
shape: "circle",
|
|
368
368
|
uid: t.uid,
|
|
369
369
|
color: t.color
|
|
@@ -372,7 +372,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
372
372
|
opacity: w.value.includes(t.uid) ? 0.5 : 1,
|
|
373
373
|
segregate: () => pe(t.uid),
|
|
374
374
|
isSegregated: w.value.includes(t.uid)
|
|
375
|
-
}))), at =
|
|
375
|
+
}))), at = y(() => _.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Bt = y(() => ({
|
|
376
376
|
cy: "donut-div-legend",
|
|
377
377
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
378
378
|
color: e.value.style.chart.legend.color,
|
|
@@ -387,15 +387,15 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
387
387
|
if (w.value.length === O.value.length - 1) return;
|
|
388
388
|
w.value.push(t), Ve("selectLegend", O.value.find((a) => a.uid === t));
|
|
389
389
|
}
|
|
390
|
-
E.value && tt(_.value.find((a, l) => l ===
|
|
390
|
+
E.value && tt(_.value.find((a, l) => l === q.value));
|
|
391
391
|
}
|
|
392
|
-
const
|
|
392
|
+
const X = y(() => {
|
|
393
393
|
const t = [""].concat(O.value.filter((u) => !w.value.includes(u.uid)).map((u) => ({
|
|
394
394
|
name: u.name,
|
|
395
395
|
color: u.color
|
|
396
396
|
}))).concat(["Σ"]);
|
|
397
397
|
let a = [];
|
|
398
|
-
for (let u = 0; u <
|
|
398
|
+
for (let u = 0; u < D.value; u += 1) {
|
|
399
399
|
const h = O.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, x) => d + x, 0);
|
|
400
400
|
a.push([C[u] ? C[u].text : "-"].concat(O.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
|
|
401
401
|
value: d.values[u] ?? 0,
|
|
@@ -424,13 +424,13 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
424
424
|
}
|
|
425
425
|
function ot(t = null) {
|
|
426
426
|
Ce(() => {
|
|
427
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...
|
|
428
|
-
t ? t(h) :
|
|
427
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...X.value.head.map((d) => d.name ?? d)], s = [...X.value.body.map((d) => d.map((x) => x.value ?? x))], u = a.concat([l]).concat(s), h = dl(u);
|
|
428
|
+
t ? t(h) : hl({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
|
-
const
|
|
431
|
+
const G = c(!1);
|
|
432
432
|
function ut(t) {
|
|
433
|
-
|
|
433
|
+
G.value = t, ze.value += 1;
|
|
434
434
|
}
|
|
435
435
|
function st() {
|
|
436
436
|
B.value.showTable = !B.value.showTable;
|
|
@@ -448,7 +448,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
448
448
|
name: a.name,
|
|
449
449
|
values: [a.value],
|
|
450
450
|
color: a.color
|
|
451
|
-
})), it.value =
|
|
451
|
+
})), it.value = yl({
|
|
452
452
|
...e.value.style.chart.dialog.donutChart,
|
|
453
453
|
responsive: !0,
|
|
454
454
|
theme: e.value.theme
|
|
@@ -456,7 +456,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
456
456
|
}
|
|
457
457
|
async function Gt({ scale: t = 2 } = {}) {
|
|
458
458
|
if (!P.value) return;
|
|
459
|
-
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: h } = await
|
|
459
|
+
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: h } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
460
460
|
return {
|
|
461
461
|
imageUri: u,
|
|
462
462
|
base64: h,
|
|
@@ -466,14 +466,17 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
466
466
|
aspectRatio: s
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
const Wt = y(() => H.value.width), Yt = y(() => H.value.height);
|
|
470
|
+
return xl({
|
|
471
|
+
timeLabelsEls: te,
|
|
471
472
|
timeLabels: C,
|
|
472
|
-
slicer:
|
|
473
|
+
slicer: f,
|
|
473
474
|
configRef: e,
|
|
474
475
|
rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
475
476
|
autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
|
|
476
|
-
isAutoSize: !1
|
|
477
|
+
isAutoSize: !1,
|
|
478
|
+
width: Wt,
|
|
479
|
+
height: Yt
|
|
477
480
|
}), wt({
|
|
478
481
|
getData: Ut,
|
|
479
482
|
getImage: Gt,
|
|
@@ -486,8 +489,8 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
486
489
|
}), (t, a) => (o(), n("div", {
|
|
487
490
|
ref_key: "donutEvolutionChart",
|
|
488
491
|
ref: P,
|
|
489
|
-
class: N(`vue-ui-donut-evolution ${
|
|
490
|
-
style:
|
|
492
|
+
class: N(`vue-ui-donut-evolution ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
493
|
+
style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
491
494
|
id: M.value,
|
|
492
495
|
onMouseenter: a[5] || (a[5] = () => i(Ge)(!0)),
|
|
493
496
|
onMouseleave: a[6] || (a[6] = () => i(Ge)(!1))
|
|
@@ -514,7 +517,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
514
517
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
515
518
|
onMouseleave: et
|
|
516
519
|
}, [
|
|
517
|
-
(o(), T(
|
|
520
|
+
(o(), T(wl, {
|
|
518
521
|
key: `title_${Ie.value}`,
|
|
519
522
|
config: {
|
|
520
523
|
title: {
|
|
@@ -541,7 +544,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
541
544
|
hasXls: e.value.userOptions.buttons.csv,
|
|
542
545
|
hasTable: e.value.userOptions.buttons.table,
|
|
543
546
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
544
|
-
isFullscreen:
|
|
547
|
+
isFullscreen: G.value,
|
|
545
548
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
546
549
|
chartElement: P.value,
|
|
547
550
|
position: e.value.userOptions.position,
|
|
@@ -555,14 +558,14 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
555
558
|
onGenerateImage: i(Ke),
|
|
556
559
|
onToggleTable: st,
|
|
557
560
|
onToggleAnnotator: ke,
|
|
558
|
-
style:
|
|
561
|
+
style: J({
|
|
559
562
|
visibility: i(We) ? i(ge) ? "visible" : "hidden" : "visible"
|
|
560
563
|
})
|
|
561
|
-
},
|
|
564
|
+
}, Qt({ _: 2 }, [
|
|
562
565
|
t.$slots.menuIcon ? {
|
|
563
566
|
name: "menuIcon",
|
|
564
567
|
fn: L(({ isOpen: l, color: s }) => [
|
|
565
|
-
S(t.$slots, "menuIcon",
|
|
568
|
+
S(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
|
|
566
569
|
]),
|
|
567
570
|
key: "0"
|
|
568
571
|
} : void 0,
|
|
@@ -597,14 +600,14 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
597
600
|
t.$slots.optionFullscreen ? {
|
|
598
601
|
name: "optionFullscreen",
|
|
599
602
|
fn: L(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
600
|
-
S(t.$slots, "optionFullscreen",
|
|
603
|
+
S(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
601
604
|
]),
|
|
602
605
|
key: "5"
|
|
603
606
|
} : void 0,
|
|
604
607
|
t.$slots.optionAnnotator ? {
|
|
605
608
|
name: "optionAnnotator",
|
|
606
609
|
fn: L(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
607
|
-
S(t.$slots, "optionAnnotator",
|
|
610
|
+
S(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
608
611
|
]),
|
|
609
612
|
key: "6"
|
|
610
613
|
} : void 0
|
|
@@ -612,12 +615,12 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
612
615
|
(o(), n("svg", {
|
|
613
616
|
ref_key: "svgRef",
|
|
614
617
|
ref: Ye,
|
|
615
|
-
xmlns: i(
|
|
616
|
-
class: N({ "vue-data-ui-fullscreen--on":
|
|
618
|
+
xmlns: i(nl),
|
|
619
|
+
class: N({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
617
620
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
618
|
-
style:
|
|
621
|
+
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
619
622
|
}, [
|
|
620
|
-
|
|
623
|
+
Zt(i(St)),
|
|
621
624
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
622
625
|
key: 0,
|
|
623
626
|
x: r.value.left,
|
|
@@ -629,7 +632,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
629
632
|
}
|
|
630
633
|
}, [
|
|
631
634
|
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
632
|
-
], 8,
|
|
635
|
+
], 8, Il)) : v("", !0),
|
|
633
636
|
p("defs", null, [
|
|
634
637
|
p("linearGradient", {
|
|
635
638
|
id: `hover_${M.value}`,
|
|
@@ -640,31 +643,31 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
640
643
|
}, [
|
|
641
644
|
p("stop", {
|
|
642
645
|
offset: "0%",
|
|
643
|
-
"stop-color": i(
|
|
644
|
-
}, null, 8,
|
|
646
|
+
"stop-color": i(Z)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
647
|
+
}, null, 8, Tl),
|
|
645
648
|
p("stop", {
|
|
646
649
|
offset: "100%",
|
|
647
|
-
"stop-color": i(
|
|
648
|
-
}, null, 8,
|
|
649
|
-
], 8,
|
|
650
|
+
"stop-color": i(Z)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
651
|
+
}, null, 8, Ol)
|
|
652
|
+
], 8, Nl),
|
|
650
653
|
p("radialGradient", {
|
|
651
654
|
id: `focus_${M.value}`
|
|
652
655
|
}, [
|
|
653
656
|
p("stop", {
|
|
654
657
|
offset: "0%",
|
|
655
|
-
"stop-color": i(
|
|
656
|
-
}, null, 8,
|
|
658
|
+
"stop-color": i(Z)(i(Le)(e.value.style.chart.backgroundColor), 0)
|
|
659
|
+
}, null, 8, Dl),
|
|
657
660
|
p("stop", {
|
|
658
661
|
offset: "77%",
|
|
659
|
-
"stop-color": i(
|
|
660
|
-
}, null, 8,
|
|
662
|
+
"stop-color": i(Z)("#FFFFFF", 30)
|
|
663
|
+
}, null, 8, Fl),
|
|
661
664
|
p("stop", {
|
|
662
665
|
offset: "100%",
|
|
663
|
-
"stop-color": i(
|
|
664
|
-
}, null, 8,
|
|
665
|
-
], 8,
|
|
666
|
+
"stop-color": i(Z)(i(Le)(e.value.style.chart.backgroundColor), 0)
|
|
667
|
+
}, null, 8, El)
|
|
668
|
+
], 8, Pl)
|
|
666
669
|
]),
|
|
667
|
-
e.value.style.chart.layout.grid.show ? (o(), n("g",
|
|
670
|
+
e.value.style.chart.layout.grid.show ? (o(), n("g", Rl, [
|
|
668
671
|
p("line", {
|
|
669
672
|
x1: r.value.left,
|
|
670
673
|
x2: r.value.left,
|
|
@@ -673,7 +676,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
673
676
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
674
677
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
675
678
|
"stroke-linecap": "round"
|
|
676
|
-
}, null, 8,
|
|
679
|
+
}, null, 8, Vl),
|
|
677
680
|
p("line", {
|
|
678
681
|
x1: r.value.left,
|
|
679
682
|
x2: r.value.right,
|
|
@@ -682,9 +685,9 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
682
685
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
683
686
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
684
687
|
"stroke-linecap": "round"
|
|
685
|
-
}, null, 8,
|
|
686
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g",
|
|
687
|
-
(o(!0), n(z, null, $(
|
|
688
|
+
}, null, 8, Ml),
|
|
689
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", Hl, [
|
|
690
|
+
(o(!0), n(z, null, $(f.value.end - f.value.start, (l, s) => (o(), n("line", {
|
|
688
691
|
x1: r.value.left + (s + 1) * k.value,
|
|
689
692
|
x2: r.value.left + (s + 1) * k.value,
|
|
690
693
|
y1: r.value.top,
|
|
@@ -692,7 +695,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
692
695
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
693
696
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
694
697
|
"stroke-linecap": "round"
|
|
695
|
-
}, null, 8,
|
|
698
|
+
}, null, 8, Bl))), 256))
|
|
696
699
|
])) : v("", !0)
|
|
697
700
|
])) : v("", !0),
|
|
698
701
|
p("g", null, [
|
|
@@ -705,7 +708,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
705
708
|
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
706
709
|
"text-anchor": "middle",
|
|
707
710
|
style: { transition: "none" }
|
|
708
|
-
}, m(e.value.style.chart.layout.grid.axis.yLabel), 9,
|
|
711
|
+
}, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Ul)) : v("", !0),
|
|
709
712
|
e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
|
|
710
713
|
key: 1,
|
|
711
714
|
ref_key: "xAxisLabel",
|
|
@@ -715,16 +718,16 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
715
718
|
y: r.value.absoluteHeight - 3,
|
|
716
719
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
717
720
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
718
|
-
}, m(e.value.style.chart.layout.grid.axis.xLabel), 9,
|
|
721
|
+
}, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Xl)) : v("", !0)
|
|
719
722
|
]),
|
|
720
723
|
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
|
|
721
724
|
key: 2,
|
|
722
725
|
ref_key: "scaleLabels",
|
|
723
726
|
ref: ce,
|
|
724
|
-
class: N({ "donut-opacity": !0, "donut-behind":
|
|
727
|
+
class: N({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
725
728
|
}, [
|
|
726
729
|
(o(!0), n(z, null, $(Vt.value, (l, s) => (o(), n("g", null, [
|
|
727
|
-
l.value >=
|
|
730
|
+
l.value >= U.value.min && l.value <= U.value.max ? (o(), n("line", {
|
|
728
731
|
key: 0,
|
|
729
732
|
x1: r.value.left,
|
|
730
733
|
x2: r.value.left - 5,
|
|
@@ -732,8 +735,8 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
732
735
|
y2: l.y,
|
|
733
736
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
734
737
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
735
|
-
}, null, 8,
|
|
736
|
-
l.value >=
|
|
738
|
+
}, null, 8, Gl)) : v("", !0),
|
|
739
|
+
l.value >= U.value.min && l.value <= U.value.max ? (o(), n("text", {
|
|
737
740
|
key: 1,
|
|
738
741
|
x: r.value.left,
|
|
739
742
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -741,7 +744,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
741
744
|
"text-anchor": "end",
|
|
742
745
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
743
746
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
744
|
-
}, m(i(
|
|
747
|
+
}, m(i(rl)(l.value) ? i(Se)(
|
|
745
748
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
746
749
|
l.value,
|
|
747
750
|
i(re)({
|
|
@@ -751,17 +754,17 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
751
754
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
752
755
|
}),
|
|
753
756
|
{ datapoint: l, seriesIndex: s }
|
|
754
|
-
) : ""), 9,
|
|
757
|
+
) : ""), 9, Wl)) : v("", !0)
|
|
755
758
|
]))), 256))
|
|
756
759
|
], 2)) : v("", !0),
|
|
757
760
|
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
|
|
758
761
|
key: 3,
|
|
759
762
|
ref_key: "timeLabelsEls",
|
|
760
|
-
ref:
|
|
763
|
+
ref: te,
|
|
761
764
|
class: N({ "donut-opacity": !0 })
|
|
762
765
|
}, [
|
|
763
|
-
(o(!0), n(z, null, $(
|
|
764
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
766
|
+
(o(!0), n(z, null, $(f.value.end - f.value.start, (l, s) => (o(), n("g", null, [
|
|
767
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === D.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && C.value[s] && C.value[s].text ? (o(), n("g", Yl, [
|
|
765
768
|
String(C.value[s].text).includes(`
|
|
766
769
|
`) ? (o(), n("text", {
|
|
767
770
|
key: 1,
|
|
@@ -770,28 +773,28 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
770
773
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
771
774
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
772
775
|
transform: `translate(${r.value.left + k.value * s + k.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})`,
|
|
773
|
-
innerHTML: i(
|
|
776
|
+
innerHTML: i(il)({
|
|
774
777
|
content: String(C.value[s].text),
|
|
775
778
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
776
779
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
777
780
|
x: 0,
|
|
778
781
|
y: 0
|
|
779
782
|
})
|
|
780
|
-
}, null, 8,
|
|
783
|
+
}, null, 8, ql)) : (o(), n("text", {
|
|
781
784
|
key: 0,
|
|
782
785
|
class: "vue-data-ui-time-label",
|
|
783
786
|
"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",
|
|
784
787
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
785
788
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
786
789
|
transform: `translate(${r.value.left + k.value * s + k.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})`
|
|
787
|
-
}, m(C.value[s].text || ""), 9,
|
|
790
|
+
}, m(C.value[s].text || ""), 9, jl))
|
|
788
791
|
])) : v("", !0)
|
|
789
792
|
]))), 256))
|
|
790
793
|
], 512)) : v("", !0),
|
|
791
794
|
(o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", null, [
|
|
792
795
|
e.value.style.chart.layout.line.show && s < _.value.length - 1 && ![l.subtotal, _.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
|
|
793
796
|
key: 0,
|
|
794
|
-
class: N({ "donut-opacity": !0, "donut-behind":
|
|
797
|
+
class: N({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
795
798
|
x1: l.x,
|
|
796
799
|
y1: l.y,
|
|
797
800
|
x2: _.value[s + 1].x,
|
|
@@ -800,32 +803,32 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
800
803
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
801
804
|
"stroke-linecap": "round",
|
|
802
805
|
"stroke-linejoin": "round"
|
|
803
|
-
}, null, 10,
|
|
804
|
-
l.subtotal !== null ? (o(), n("g",
|
|
806
|
+
}, null, 10, Jl)) : v("", !0),
|
|
807
|
+
l.subtotal !== null ? (o(), n("g", Kl, [
|
|
805
808
|
l.subtotal ? (o(), n("circle", {
|
|
806
809
|
key: 0,
|
|
807
810
|
cx: l.x,
|
|
808
811
|
cy: l.y,
|
|
809
812
|
r: l.activeRadius,
|
|
810
813
|
fill: e.value.style.chart.backgroundColor
|
|
811
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, Ql)) : v("", !0)
|
|
812
815
|
])) : v("", !0)
|
|
813
816
|
]))), 256)),
|
|
814
817
|
(o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", {
|
|
815
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
818
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
816
819
|
}, [
|
|
817
|
-
l.subtotal ? (o(), n("g",
|
|
818
|
-
|
|
820
|
+
l.subtotal ? (o(), n("g", Zl, [
|
|
821
|
+
g.value !== null && g.value === s ? (o(), n("g", ea, [
|
|
819
822
|
(o(!0), n(z, null, $(l.donutHover, (u) => (o(), n("g", null, [
|
|
820
823
|
nt(u) ? (o(), n("path", {
|
|
821
824
|
key: 0,
|
|
822
|
-
d: i(
|
|
825
|
+
d: i(cl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
823
826
|
stroke: u.color,
|
|
824
827
|
"stroke-width": "1",
|
|
825
828
|
"stroke-linecap": "round",
|
|
826
829
|
"stroke-linejoin": "round",
|
|
827
830
|
fill: "none"
|
|
828
|
-
}, null, 8,
|
|
831
|
+
}, null, 8, ta)) : v("", !0)
|
|
829
832
|
]))), 256)),
|
|
830
833
|
(o(!0), n(z, null, $(l.donutHover, (u, h) => (o(), n("g", null, [
|
|
831
834
|
nt(u) ? (o(), n("text", {
|
|
@@ -833,11 +836,11 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
833
836
|
"data-cy-hover-label": "",
|
|
834
837
|
"text-anchor": i(mt)(u, !0, 0).anchor,
|
|
835
838
|
x: i(mt)(u, !0, 9).x,
|
|
836
|
-
y: i(
|
|
839
|
+
y: i(vl)(u, 14, 10),
|
|
837
840
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
838
841
|
"font-size": 8,
|
|
839
842
|
"font-weight": "bold"
|
|
840
|
-
}, m(u.name) + ": " + m(Mt(u, l.donut)) + " (" + m(u.value === null ? "-" : Ze(u.value, u, h)) + ") ", 9,
|
|
843
|
+
}, m(u.name) + ": " + m(Mt(u, l.donut)) + " (" + m(u.value === null ? "-" : Ze(u.value, u, h)) + ") ", 9, la)) : v("", !0)
|
|
841
844
|
]))), 256)),
|
|
842
845
|
p("g", null, [
|
|
843
846
|
p("circle", {
|
|
@@ -845,62 +848,62 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
845
848
|
cy: l.y,
|
|
846
849
|
r: l.hoverRadius,
|
|
847
850
|
fill: e.value.style.chart.backgroundColor
|
|
848
|
-
}, null, 8,
|
|
851
|
+
}, null, 8, aa)
|
|
849
852
|
])
|
|
850
853
|
])) : v("", !0)
|
|
851
854
|
])) : v("", !0)
|
|
852
855
|
], 2))), 256)),
|
|
853
856
|
(o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", {
|
|
854
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
857
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
855
858
|
}, [
|
|
856
|
-
l.subtotal !== null ? (o(), n("g",
|
|
859
|
+
l.subtotal !== null ? (o(), n("g", oa, [
|
|
857
860
|
l.subtotal === 0 ? (o(), n("circle", {
|
|
858
861
|
key: 0,
|
|
859
862
|
cx: l.x,
|
|
860
863
|
cy: l.y,
|
|
861
864
|
r: 3,
|
|
862
865
|
fill: e.value.style.chart.color
|
|
863
|
-
}, null, 8,
|
|
866
|
+
}, null, 8, ua)) : g.value !== null && g.value === s ? (o(), n("g", sa, [
|
|
864
867
|
(o(!0), n(z, null, $(l.donutHover, (u, h) => (o(), n("path", {
|
|
865
868
|
d: u.arcSlice,
|
|
866
869
|
fill: `${u.color}`,
|
|
867
870
|
"stroke-width": 1,
|
|
868
871
|
stroke: e.value.style.chart.backgroundColor
|
|
869
|
-
}, null, 8,
|
|
870
|
-
])) : (o(), n("g",
|
|
872
|
+
}, null, 8, na))), 256))
|
|
873
|
+
])) : (o(), n("g", ra, [
|
|
871
874
|
(o(!0), n(z, null, $(l.donut, (u, h) => (o(), n("path", {
|
|
872
875
|
d: u.arcSlice,
|
|
873
876
|
fill: `${u.color}`,
|
|
874
877
|
"stroke-width": 0.5,
|
|
875
878
|
stroke: e.value.style.chart.backgroundColor
|
|
876
|
-
}, null, 8,
|
|
879
|
+
}, null, 8, ia))), 256))
|
|
877
880
|
]))
|
|
878
881
|
])) : v("", !0)
|
|
879
882
|
], 2))), 256)),
|
|
880
883
|
(o(!0), n(z, null, $(_.value, (l, s) => (o(), n("g", {
|
|
881
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
884
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ie.value && s !== E.value.index })
|
|
882
885
|
}, [
|
|
883
886
|
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
|
|
884
887
|
key: 0,
|
|
885
888
|
"text-anchor": "middle",
|
|
886
889
|
x: l.x,
|
|
887
|
-
y:
|
|
890
|
+
y: g.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,
|
|
888
891
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
889
892
|
"font-weight": "bold",
|
|
890
893
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
891
|
-
}, m(Ze(l.subtotal, l, s)), 9,
|
|
894
|
+
}, m(Ze(l.subtotal, l, s)), 9, ca)) : v("", !0)
|
|
892
895
|
], 2))), 256)),
|
|
893
896
|
(o(!0), n(z, null, $(_.value, (l, s) => (o(), n("rect", {
|
|
894
897
|
x: r.value.left + s * k.value,
|
|
895
898
|
y: r.value.top,
|
|
896
899
|
width: k.value,
|
|
897
900
|
height: r.value.height,
|
|
898
|
-
fill: [
|
|
899
|
-
class: N({ "donut-hover": l.subtotal && [
|
|
901
|
+
fill: [g.value, q.value].includes(l.index) ? `url(#hover_${M.value})` : "transparent",
|
|
902
|
+
class: N({ "donut-hover": l.subtotal && [g.value, q.value].includes(l.index) }),
|
|
900
903
|
style: {
|
|
901
904
|
pointerEvents: "none"
|
|
902
905
|
}
|
|
903
|
-
}, null, 10,
|
|
906
|
+
}, null, 10, va))), 256)),
|
|
904
907
|
(o(!0), n(z, null, $(_.value, (l, s) => (o(), n("rect", {
|
|
905
908
|
"data-cy-trap": "",
|
|
906
909
|
x: r.value.left + s * k.value,
|
|
@@ -908,25 +911,25 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
908
911
|
width: k.value,
|
|
909
912
|
height: r.value.height,
|
|
910
913
|
fill: "transparent",
|
|
911
|
-
onMouseenter: (u) =>
|
|
914
|
+
onMouseenter: (u) => Ht(l),
|
|
912
915
|
onMouseleave: et,
|
|
913
916
|
onClick: (u) => tt(l, s),
|
|
914
|
-
class: N({ "donut-hover":
|
|
915
|
-
}, null, 42,
|
|
917
|
+
class: N({ "donut-hover": g.value === l.index && l.subtotal })
|
|
918
|
+
}, null, 42, da))), 256)),
|
|
916
919
|
S(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
917
|
-
], 14,
|
|
918
|
-
t.$slots.watermark ? (o(), n("div",
|
|
919
|
-
S(t.$slots, "watermark",
|
|
920
|
+
], 14, $l)),
|
|
921
|
+
t.$slots.watermark ? (o(), n("div", ha, [
|
|
922
|
+
S(t.$slots, "watermark", K(Q({ isPrinting: i(je) || i(qe) })), void 0, !0)
|
|
920
923
|
])) : v("", !0),
|
|
921
924
|
p("div", {
|
|
922
925
|
ref_key: "chartSlicer",
|
|
923
926
|
ref: Ee,
|
|
924
|
-
style:
|
|
927
|
+
style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
925
928
|
"data-dom-to-png-ignore": ""
|
|
926
929
|
}, [
|
|
927
|
-
|
|
930
|
+
D.value > 1 && e.value.style.chart.zoom.show ? (o(), T(kl, {
|
|
928
931
|
ref_key: "slicerComponent",
|
|
929
|
-
ref:
|
|
932
|
+
ref: Fe,
|
|
930
933
|
key: `slicer_${$e.value}`,
|
|
931
934
|
background: e.value.style.chart.zoom.color,
|
|
932
935
|
borderColor: e.value.style.chart.backgroundColor,
|
|
@@ -937,22 +940,22 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
937
940
|
textColor: e.value.style.chart.color,
|
|
938
941
|
inputColor: e.value.style.chart.zoom.color,
|
|
939
942
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
940
|
-
max:
|
|
943
|
+
max: D.value,
|
|
941
944
|
min: 0,
|
|
942
|
-
valueStart:
|
|
943
|
-
valueEnd:
|
|
944
|
-
start:
|
|
945
|
-
"onUpdate:start": a[0] || (a[0] = (l) =>
|
|
946
|
-
end:
|
|
947
|
-
"onUpdate:end": a[1] || (a[1] = (l) =>
|
|
945
|
+
valueStart: f.value.start,
|
|
946
|
+
valueEnd: f.value.end,
|
|
947
|
+
start: f.value.start,
|
|
948
|
+
"onUpdate:start": a[0] || (a[0] = (l) => f.value.start = l),
|
|
949
|
+
end: f.value.end,
|
|
950
|
+
"onUpdate:end": a[1] || (a[1] = (l) => f.value.end = l),
|
|
948
951
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
949
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 :
|
|
952
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : D.value,
|
|
950
953
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
951
954
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
952
955
|
onReset: Xe
|
|
953
956
|
}, {
|
|
954
957
|
"reset-action": L(({ reset: l }) => [
|
|
955
|
-
S(t.$slots, "reset-action",
|
|
958
|
+
S(t.$slots, "reset-action", K(Q({ reset: l })), void 0, !0)
|
|
956
959
|
]),
|
|
957
960
|
_: 3
|
|
958
961
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
|
|
@@ -961,16 +964,16 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
961
964
|
ref_key: "chartLegend",
|
|
962
965
|
ref: Pe
|
|
963
966
|
}, [
|
|
964
|
-
e.value.style.chart.legend.show ? (o(), T(
|
|
967
|
+
e.value.style.chart.legend.show ? (o(), T(pl, {
|
|
965
968
|
key: `legend_${Te.value}`,
|
|
966
969
|
legendSet: lt.value,
|
|
967
|
-
config:
|
|
970
|
+
config: Bt.value,
|
|
968
971
|
onClickMarker: a[2] || (a[2] = ({ legend: l }) => pe(l.uid))
|
|
969
972
|
}, {
|
|
970
973
|
item: L(({ legend: l, index: s }) => [
|
|
971
974
|
p("div", {
|
|
972
975
|
onClick: (u) => pe(l.uid),
|
|
973
|
-
style:
|
|
976
|
+
style: J(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
|
|
974
977
|
}, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(Se)(
|
|
975
978
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
976
979
|
l.value,
|
|
@@ -985,7 +988,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
985
988
|
v: l.value / at.value * 100,
|
|
986
989
|
s: "%",
|
|
987
990
|
r: e.value.style.chart.legend.roundingPercentage
|
|
988
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
991
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ya)
|
|
989
992
|
]),
|
|
990
993
|
_: 1
|
|
991
994
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
@@ -994,7 +997,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
994
997
|
t.$slots.source ? (o(), n("div", {
|
|
995
998
|
key: 5,
|
|
996
999
|
ref_key: "source",
|
|
997
|
-
ref:
|
|
1000
|
+
ref: De,
|
|
998
1001
|
dir: "auto"
|
|
999
1002
|
}, [
|
|
1000
1003
|
S(t.$slots, "source", {}, void 0, !0)
|
|
@@ -1018,10 +1021,10 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
1018
1021
|
content: L(() => [
|
|
1019
1022
|
(o(), T(i(At), {
|
|
1020
1023
|
key: `table_${Ne.value}`,
|
|
1021
|
-
colNames:
|
|
1022
|
-
head:
|
|
1023
|
-
body:
|
|
1024
|
-
config:
|
|
1024
|
+
colNames: X.value.colNames,
|
|
1025
|
+
head: X.value.head,
|
|
1026
|
+
body: X.value.body,
|
|
1027
|
+
config: X.value.config,
|
|
1025
1028
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1026
1029
|
onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
|
|
1027
1030
|
}, {
|
|
@@ -1029,7 +1032,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
1029
1032
|
dt(m(l.name ?? l), 1)
|
|
1030
1033
|
]),
|
|
1031
1034
|
td: L(({ td: l }) => [
|
|
1032
|
-
l.value === null ? (o(), n("span",
|
|
1035
|
+
l.value === null ? (o(), n("span", fa, "-")) : (o(), n("b", ga, m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + m(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1033
1036
|
p("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1034
1037
|
]),
|
|
1035
1038
|
_: 1
|
|
@@ -1042,13 +1045,13 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
1042
1045
|
ref_key: "dialog",
|
|
1043
1046
|
ref: we,
|
|
1044
1047
|
onClose: a[4] || (a[4] = (l) => {
|
|
1045
|
-
E.value = null, ie.value = !1,
|
|
1048
|
+
E.value = null, ie.value = !1, ee.value = null, g.value = null, q.value = null;
|
|
1046
1049
|
}),
|
|
1047
1050
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1048
1051
|
color: e.value.style.chart.dialog.color,
|
|
1049
1052
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1050
1053
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1051
|
-
isFullscreen:
|
|
1054
|
+
isFullscreen: G.value,
|
|
1052
1055
|
fullscreenParent: P.value
|
|
1053
1056
|
}, {
|
|
1054
1057
|
title: L(() => [
|
|
@@ -1063,10 +1066,10 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
1063
1066
|
]),
|
|
1064
1067
|
_: 1
|
|
1065
1068
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1066
|
-
i(
|
|
1067
|
-
], 46,
|
|
1069
|
+
i(Be) ? (o(), T(Al, { key: 8 })) : v("", !0)
|
|
1070
|
+
], 46, zl));
|
|
1068
1071
|
}
|
|
1069
|
-
},
|
|
1072
|
+
}, Oa = /* @__PURE__ */ Sl(ma, [["__scopeId", "data-v-11c6c720"]]);
|
|
1070
1073
|
export {
|
|
1071
|
-
|
|
1074
|
+
Oa as default
|
|
1072
1075
|
};
|