vue-data-ui 3.0.0-next.33 → 3.0.0-next.35
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-VgHimrRb.js → Arrow-9U-UjNas.js} +1 -1
- package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-CdaQDDs0.js} +2 -2
- package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-DB8UP3sU.js} +1 -1
- package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-Cb3SgjWM.js} +2 -2
- package/dist/{DataTable-CQqQt3fP.js → DataTable-BvgiQ2JE.js} +2 -2
- package/dist/{Legend-DAN5L1lo.js → Legend-DBh56vdD.js} +2 -2
- package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-fHaJC-dl.js} +3 -3
- package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-Bhohtzrj.js} +1 -1
- package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-vCj1-UEY.js} +3 -3
- package/dist/{Shape-CjeprST6.js → Shape-D2E4CMoi.js} +1 -1
- package/dist/{Slicer-8WIL9Cfq.js → Slicer-1-SaJZ80.js} +2 -2
- package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-CE4BUH-_.js} +1 -1
- package/dist/{Title-Bo-MVYcn.js → Title-8eeSFss9.js} +1 -1
- package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-C7HgI7vF.js} +1 -1
- package/dist/{UserOptions-dJLhbxrH.js → UserOptions-Cxr0ZsfM.js} +2 -2
- package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-DDW5fRWT.js} +1 -1
- package/dist/{img-59KgIaXp.js → img-czwmJka_.js} +1 -1
- package/dist/{index-h6tbqLot.js → index-Cy_OHCLi.js} +700 -660
- package/dist/{pdf-CVKcemYx.js → pdf-BLIP6Yoc.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +46 -8
- package/dist/types/vue-data-ui.d.ts +46 -8
- package/dist/{useNestedProp-D059IOwh.js → useNestedProp-Di0uuVL6.js} +1 -1
- package/dist/{usePrinter-BuJDNOzF.js → usePrinter-B3aBnAXo.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-C8hTMkHA.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-2BDo53CG.js → vue-ui-3d-bar-BybaBB_P.js} +6 -6
- package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-DJ7Cgx6-.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-DPuw31_r.js} +6 -6
- package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BRVlhEK2.js} +2 -2
- package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-4NYyyaH9.js} +7 -7
- package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-DEYGVnYY.js} +230 -222
- package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-DBV6s3lm.js} +4 -4
- package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-EngIIDHp.js} +5 -5
- package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-B0lIgdaA.js} +8 -8
- package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-D2_7Q03M.js} +6 -6
- package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-B8W8SBMh.js} +2 -2
- package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-R18RfpNq.js} +62 -62
- package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-lDDMeEMg.js} +2 -2
- package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-C0QxZHSs.js} +8 -8
- package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DMuOgr00.js} +307 -304
- package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-BoehGkow.js} +7 -7
- package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-CMpJ4VNW.js} +7 -7
- package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-V-ep0uRk.js} +6 -6
- package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-5_UI4rRC.js} +5 -5
- package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-DuPPfpX8.js} +6 -6
- package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-DC0_MhU8.js} +3 -3
- package/dist/vue-ui-heatmap-Du7CgmK0.js +1084 -0
- package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-DUAojY09.js} +7 -7
- package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-DFqD1V27.js} +3 -3
- package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-Dhx_wzdm.js} +2 -2
- package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-F69F6eYS.js} +5 -5
- package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-Bx-4k7jY.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-BVeoZkgI.js} +9 -9
- package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-DHYlAXM7.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-N5KtznHX.js} +8 -8
- package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-BsQ8O9e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-Bocy5d7r.js} +6 -6
- package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-ByUt1ys9.js} +7 -7
- package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-C1KpOoZF.js} +2 -2
- package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-Bw-A49Ol.js} +6 -6
- package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-g9JYjIcs.js} +11 -9
- package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-D4-dAblw.js} +8 -8
- package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-Ese_ubEo.js} +8 -8
- package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-DGCSWS6R.js} +3 -3
- package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-D-2kksbm.js} +2 -2
- package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-x900EpiA.js} +3 -3
- package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-t47Lq5jH.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-T8iByZV1.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-D_ZvA5DH.js} +4 -4
- package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-DQExYN7j.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-9ywYLwLc.js} +3 -3
- package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-Cpf9GA_9.js} +455 -446
- package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-Dd31-kf1.js} +7 -7
- package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-ChP6rjYz.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-sp_8-q-v.js} +5 -5
- package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-D04Usdos.js} +4 -4
- package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-tp3Zjpbn.js} +6 -6
- package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-xVlYHzJH.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-CkUbhFx0.js} +6 -6
- package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-BpkTja9I.js} +8 -8
- package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-CQ2y_LEJ.js} +9 -9
- package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-BzBS5B9r.js} +8 -8
- package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-CEiRdkDJ.js} +6 -6
- package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-h7iNtGpT.js} +6 -6
- package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-D6iHt4w8.js} +6 -6
- package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-BtOdpKQf.js} +58 -55
- package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-BvrKpXv1.js} +8 -8
- package/package.json +1 -1
- package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
- package/dist/vue-ui-heatmap-D_8NEANa.js +0 -881
|
@@ -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 f, onMounted as jt, toRefs as qt, nextTick as Ce, watch as Le, watchEffect as Jt, onBeforeUnmount as Kt, createElementBlock as n, openBlock as u, unref as i, normalizeStyle as J, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as p, createSlots as Qt, withCtx as _, 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 _e, 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-Cy_OHCLi.js";
|
|
3
|
+
import { u as fl } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
+
import { u as xt } from "./useNestedProp-Di0uuVL6.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-B3aBnAXo.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-DBh56vdD.js";
|
|
10
|
+
import { S as kl } from "./Slicer-1-SaJZ80.js";
|
|
11
|
+
import wl from "./Title-8eeSFss9.js";
|
|
12
|
+
import Cl from "./img-czwmJka_.js";
|
|
13
|
+
import { t as pt, u as Ll } from "./useResponsive-DfdjqQps.js";
|
|
14
|
+
import { u as _l, 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", "onMouseleave", "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
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const Lt = V(() => import("./vue-ui-accordion-DJ7Cgx6-.js")), _t = V(() => import("./BaseDraggableDialog-CdaQDDs0.js")), At = V(() => import("./DataTable-BvgiQ2JE.js")), St = V(() => import("./PackageVersion-Bhohtzrj.js")), zt = V(() => import("./PenAndPaper-vCj1-UEY.js")), $t = V(() => import("./UserOptions-Cxr0ZsfM.js")), It = V(() => import("./vue-ui-donut-C0QxZHSs.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 = f(() => !!b.dataset && b.dataset.length);
|
|
38
|
+
jt(() => {
|
|
39
|
+
He();
|
|
40
40
|
});
|
|
41
|
-
const
|
|
42
|
-
function
|
|
41
|
+
const ae = f(() => !!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 } = Ll({
|
|
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 } = _l({
|
|
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 = f(() => Math.max(...ye.value.map((t) => t.values.length))), h = 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))) : (h.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,40 +177,40 @@ 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
|
-
|
|
187
|
-
|
|
188
|
-
}, { deep: !0 }),
|
|
189
|
-
Array.isArray(t) && t.length > 0 && (
|
|
186
|
+
Le(() => b.config, (t) => {
|
|
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
|
+
}, { deep: !0 }), Le(() => b.dataset, (t) => {
|
|
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 = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Dt = f(() => ul(e.value.customPalette)), B = c({
|
|
196
196
|
showTable: e.value.table.show
|
|
197
197
|
});
|
|
198
|
-
|
|
198
|
+
Le(e, () => {
|
|
199
199
|
B.value = {
|
|
200
200
|
showTable: e.value.table.show
|
|
201
201
|
};
|
|
202
202
|
}, { immediate: !0 });
|
|
203
|
-
const R =
|
|
203
|
+
const R = f(() => ({
|
|
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
|
-
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((
|
|
212
|
-
const d =
|
|
213
|
-
return (d >
|
|
211
|
+
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((o, y) => {
|
|
212
|
+
const d = y.getComputedTextLength();
|
|
213
|
+
return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
|
|
214
214
|
}, 0));
|
|
215
215
|
const a = de.value ? de.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
216
216
|
return t + a + 5;
|
|
@@ -218,104 +218,104 @@ 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 = f(() => {
|
|
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 = f(() => {
|
|
237
|
+
const t = Ft(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height, o = R.value.left + t, y = l - R.value.right, d = l - o - 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:
|
|
240
|
-
left:
|
|
241
|
-
right:
|
|
242
|
-
bottom:
|
|
239
|
+
top: W,
|
|
240
|
+
left: o,
|
|
241
|
+
right: y,
|
|
242
|
+
bottom: F,
|
|
243
243
|
absoluteHeight: s,
|
|
244
244
|
absoluteWidth: l,
|
|
245
|
-
centerX:
|
|
246
|
-
centerY:
|
|
245
|
+
centerX: o + Math.max(10, d) / 2,
|
|
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 = f(() => (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:
|
|
266
|
+
values: sl(t.values),
|
|
267
|
+
color: _e(t.color) || Dt.value[a] || ne[a] || ne[a % ne.length],
|
|
268
268
|
length: (t.values || []).length,
|
|
269
269
|
uid: ht()
|
|
270
|
-
})))),
|
|
270
|
+
})))), j = f(() => 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 >= h.value.start && l <= h.value.end)
|
|
273
|
+
}))), D = f(() => Math.max(...j.value.map((t) => t.length))), C = f(() => 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: h.value.start,
|
|
278
|
+
end: h.value.end
|
|
279
|
+
})), k = f(() => r.value.width / (h.value.end - h.value.start)), L = f(() => {
|
|
280
280
|
const t = [];
|
|
281
|
-
for (let
|
|
282
|
-
const
|
|
281
|
+
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
282
|
+
const y = j.value.map((I) => I.values[o] ?? null), d = y.filter((I) => [void 0, null].includes(I)).length === y.length, x = y.reduce((I, A) => I + A, 0), W = y.map((I) => I / x), F = r.value.left + k.value * o + k.value / 2;
|
|
283
283
|
t.push({
|
|
284
|
-
index:
|
|
285
|
-
percentages:
|
|
284
|
+
index: o,
|
|
285
|
+
percentages: W,
|
|
286
286
|
subtotal: d || x < 0 ? null : x,
|
|
287
|
-
values:
|
|
288
|
-
x:
|
|
287
|
+
values: y,
|
|
288
|
+
x: F
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
const a = 0, l = Math.max(...t.map((
|
|
292
|
-
return t.map((
|
|
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,
|
|
291
|
+
const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
292
|
+
return t.map((o, y) => {
|
|
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 === o.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 * o.subtotal / gt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
294
294
|
return {
|
|
295
|
-
...
|
|
295
|
+
...o,
|
|
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
|
-
value: A.values[
|
|
304
|
+
value: A.values[y] ?? 0
|
|
305
305
|
}))
|
|
306
|
-
},
|
|
306
|
+
}, o.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
|
-
value: A.values[
|
|
311
|
+
value: A.values[y] ?? 0
|
|
312
312
|
}))
|
|
313
|
-
},
|
|
313
|
+
}, o.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
|
-
value: A.values[
|
|
318
|
+
value: A.values[y] ?? 0
|
|
319
319
|
}))
|
|
320
320
|
}, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
|
|
321
321
|
};
|
|
@@ -334,36 +334,36 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
334
334
|
{ datapoint: a, index: l }
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
const xe =
|
|
338
|
-
max: Math.max(...
|
|
337
|
+
const xe = f(() => ({
|
|
338
|
+
max: Math.max(...L.value.map((t) => t.subtotal)),
|
|
339
339
|
min: 0
|
|
340
|
-
})),
|
|
341
|
-
const t =
|
|
340
|
+
})), U = f(() => {
|
|
341
|
+
const t = L.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 = f(() => U.value.ticks.map((t) => ({
|
|
348
348
|
y: r.value.bottom - r.value.height * Rt(t),
|
|
349
349
|
value: t
|
|
350
350
|
})));
|
|
351
351
|
function Mt(t, a) {
|
|
352
352
|
return isNaN(t.value / bt(a, "value")) ? 0 : (t.value / bt(a, "value") * 100).toFixed(0) + "%";
|
|
353
353
|
}
|
|
354
|
-
function et() {
|
|
355
|
-
|
|
354
|
+
function et(t) {
|
|
355
|
+
g.value = null, ee.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
|
|
357
|
+
function Ht(t) {
|
|
358
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), 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
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!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 = f(() => O.value.map((t, a) => ({
|
|
365
365
|
name: t.name,
|
|
366
|
-
value: t.values.slice(
|
|
366
|
+
value: t.values.slice(h.value.start, h.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 = f(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Bt = f(() => ({
|
|
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,20 +387,20 @@ 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(
|
|
390
|
+
E.value && tt(L.value.find((a, l) => l === q.value));
|
|
391
391
|
}
|
|
392
|
-
const
|
|
393
|
-
const t = [""].concat(O.value.filter((
|
|
394
|
-
name:
|
|
395
|
-
color:
|
|
392
|
+
const X = f(() => {
|
|
393
|
+
const t = [""].concat(O.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
|
|
394
|
+
name: o.name,
|
|
395
|
+
color: o.color
|
|
396
396
|
}))).concat(["Σ"]);
|
|
397
397
|
let a = [];
|
|
398
|
-
for (let
|
|
399
|
-
const
|
|
400
|
-
a.push([C[
|
|
401
|
-
value: d.values[
|
|
402
|
-
percentage: d.values[
|
|
403
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(
|
|
398
|
+
for (let o = 0; o < D.value; o += 1) {
|
|
399
|
+
const y = O.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, x) => d + x, 0);
|
|
400
|
+
a.push([C[o] ? C[o].text : "-"].concat(O.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
|
|
401
|
+
value: d.values[o] ?? 0,
|
|
402
|
+
percentage: d.values[o] ? d.values[o] / y * 100 : 0
|
|
403
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(y.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
404
404
|
}
|
|
405
405
|
const l = {
|
|
406
406
|
th: {
|
|
@@ -416,7 +416,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
416
416
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
417
417
|
}, s = [
|
|
418
418
|
e.value.table.columnNames.period
|
|
419
|
-
].concat(O.value.filter((
|
|
419
|
+
].concat(O.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
420
420
|
return { head: t, body: a, config: l, colNames: s };
|
|
421
421
|
});
|
|
422
422
|
function Ut() {
|
|
@@ -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(
|
|
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))], o = a.concat([l]).concat(s), y = dl(o);
|
|
428
|
+
t ? t(y) : hl({ csvContent: y, 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,24 +456,27 @@ 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:
|
|
459
|
+
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: y } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
460
460
|
return {
|
|
461
|
-
imageUri:
|
|
462
|
-
base64:
|
|
461
|
+
imageUri: o,
|
|
462
|
+
base64: y,
|
|
463
463
|
title: e.value.style.chart.title.text,
|
|
464
464
|
width: a,
|
|
465
465
|
height: l,
|
|
466
466
|
aspectRatio: s
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
const Wt = f(() => H.value.width), Yt = f(() => H.value.height);
|
|
470
|
+
return xl({
|
|
471
|
+
timeLabelsEls: te,
|
|
471
472
|
timeLabels: C,
|
|
472
|
-
slicer:
|
|
473
|
+
slicer: h,
|
|
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,
|
|
@@ -483,16 +486,16 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
483
486
|
toggleTable: st,
|
|
484
487
|
toggleAnnotator: ke,
|
|
485
488
|
toggleFullscreen: ut
|
|
486
|
-
}), (t, a) => (
|
|
489
|
+
}), (t, a) => (u(), 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))
|
|
494
497
|
}, [
|
|
495
|
-
e.value.userOptions.buttons.annotator ? (
|
|
498
|
+
e.value.userOptions.buttons.annotator ? (u(), T(i(zt), {
|
|
496
499
|
key: 0,
|
|
497
500
|
svgRef: i(Ye),
|
|
498
501
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -500,21 +503,21 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
500
503
|
active: ue.value,
|
|
501
504
|
onClose: ke
|
|
502
505
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
503
|
-
Pt.value ? (
|
|
506
|
+
Pt.value ? (u(), n("div", {
|
|
504
507
|
key: 1,
|
|
505
508
|
ref_key: "noTitle",
|
|
506
509
|
ref: Tt,
|
|
507
510
|
class: "vue-data-ui-no-title-space",
|
|
508
511
|
style: "height:36px; width: 100%;background:transparent"
|
|
509
512
|
}, null, 512)) : v("", !0),
|
|
510
|
-
e.value.style.chart.title.text ? (
|
|
513
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
511
514
|
key: 2,
|
|
512
515
|
ref_key: "chartTitle",
|
|
513
516
|
ref: Oe,
|
|
514
517
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
515
518
|
onMouseleave: et
|
|
516
519
|
}, [
|
|
517
|
-
(
|
|
520
|
+
(u(), T(wl, {
|
|
518
521
|
key: `title_${Ie.value}`,
|
|
519
522
|
config: {
|
|
520
523
|
title: {
|
|
@@ -528,7 +531,7 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
528
531
|
}
|
|
529
532
|
}, null, 8, ["config"]))
|
|
530
533
|
], 544)) : v("", !0),
|
|
531
|
-
e.value.userOptions.show && Me.value && (i(We) || i(ge)) ? (
|
|
534
|
+
e.value.userOptions.show && Me.value && (i(We) || i(ge)) ? (u(), T(i($t), {
|
|
532
535
|
ref: "details",
|
|
533
536
|
key: `user_options_${ze.value}`,
|
|
534
537
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -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,70 +558,70 @@ 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
|
-
fn:
|
|
565
|
-
S(t.$slots, "menuIcon",
|
|
567
|
+
fn: _(({ isOpen: l, color: s }) => [
|
|
568
|
+
S(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
|
|
566
569
|
]),
|
|
567
570
|
key: "0"
|
|
568
571
|
} : void 0,
|
|
569
572
|
t.$slots.optionPdf ? {
|
|
570
573
|
name: "optionPdf",
|
|
571
|
-
fn:
|
|
574
|
+
fn: _(() => [
|
|
572
575
|
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
573
576
|
]),
|
|
574
577
|
key: "1"
|
|
575
578
|
} : void 0,
|
|
576
579
|
t.$slots.optionCsv ? {
|
|
577
580
|
name: "optionCsv",
|
|
578
|
-
fn:
|
|
581
|
+
fn: _(() => [
|
|
579
582
|
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
580
583
|
]),
|
|
581
584
|
key: "2"
|
|
582
585
|
} : void 0,
|
|
583
586
|
t.$slots.optionImg ? {
|
|
584
587
|
name: "optionImg",
|
|
585
|
-
fn:
|
|
588
|
+
fn: _(() => [
|
|
586
589
|
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
587
590
|
]),
|
|
588
591
|
key: "3"
|
|
589
592
|
} : void 0,
|
|
590
593
|
t.$slots.optionTable ? {
|
|
591
594
|
name: "optionTable",
|
|
592
|
-
fn:
|
|
595
|
+
fn: _(() => [
|
|
593
596
|
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
594
597
|
]),
|
|
595
598
|
key: "4"
|
|
596
599
|
} : void 0,
|
|
597
600
|
t.$slots.optionFullscreen ? {
|
|
598
601
|
name: "optionFullscreen",
|
|
599
|
-
fn:
|
|
600
|
-
S(t.$slots, "optionFullscreen",
|
|
602
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
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
|
-
fn:
|
|
607
|
-
S(t.$slots, "optionAnnotator",
|
|
609
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
610
|
+
S(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
608
611
|
]),
|
|
609
612
|
key: "6"
|
|
610
613
|
} : void 0
|
|
611
614
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
612
|
-
(
|
|
615
|
+
(u(), 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
|
-
|
|
621
|
-
t.$slots["chart-background"] ? (
|
|
623
|
+
Zt(i(St)),
|
|
624
|
+
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
622
625
|
key: 0,
|
|
623
626
|
x: r.value.left,
|
|
624
627
|
y: r.value.top,
|
|
@@ -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(_e)(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(_e)(e.value.style.chart.backgroundColor), 0)
|
|
667
|
+
}, null, 8, El)
|
|
668
|
+
], 8, Pl)
|
|
666
669
|
]),
|
|
667
|
-
e.value.style.chart.layout.grid.show ? (
|
|
670
|
+
e.value.style.chart.layout.grid.show ? (u(), 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 ? (
|
|
687
|
-
(
|
|
688
|
+
}, null, 8, Ml),
|
|
689
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", Hl, [
|
|
690
|
+
(u(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (u(), 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,11 +695,11 @@ 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, [
|
|
699
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (
|
|
702
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (u(), n("text", {
|
|
700
703
|
key: 0,
|
|
701
704
|
ref_key: "yAxisLabel",
|
|
702
705
|
ref: de,
|
|
@@ -705,8 +708,8 @@ 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,
|
|
709
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (
|
|
711
|
+
}, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Ul)) : v("", !0),
|
|
712
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (u(), n("text", {
|
|
710
713
|
key: 1,
|
|
711
714
|
ref_key: "xAxisLabel",
|
|
712
715
|
ref: ve,
|
|
@@ -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
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
723
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), 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
|
-
(
|
|
727
|
-
l.value >=
|
|
729
|
+
(u(!0), n(z, null, $(Vt.value, (l, s) => (u(), n("g", null, [
|
|
730
|
+
l.value >= U.value.min && l.value <= U.value.max ? (u(), 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 ? (u(), 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,93 +754,93 @@ 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
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
760
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), 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
|
-
(
|
|
764
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
766
|
+
(u(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (u(), 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 ? (u(), n("g", Yl, [
|
|
765
768
|
String(C.value[s].text).includes(`
|
|
766
|
-
`) ? (
|
|
769
|
+
`) ? (u(), n("text", {
|
|
767
770
|
key: 1,
|
|
768
771
|
class: "vue-data-ui-time-label",
|
|
769
772
|
"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",
|
|
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)) : (u(), 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
|
-
(
|
|
792
|
-
e.value.style.chart.layout.line.show && s <
|
|
794
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", null, [
|
|
795
|
+
e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (u(), 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
|
-
x2:
|
|
798
|
-
y2:
|
|
800
|
+
x2: L.value[s + 1].x,
|
|
801
|
+
y2: L.value[s + 1].y,
|
|
799
802
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
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 ? (
|
|
805
|
-
l.subtotal ? (
|
|
806
|
+
}, null, 10, Jl)) : v("", !0),
|
|
807
|
+
l.subtotal !== null ? (u(), n("g", Kl, [
|
|
808
|
+
l.subtotal ? (u(), 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
|
-
(
|
|
815
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
817
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
|
|
818
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
816
819
|
}, [
|
|
817
|
-
l.subtotal ? (
|
|
818
|
-
|
|
819
|
-
(
|
|
820
|
-
nt(
|
|
820
|
+
l.subtotal ? (u(), n("g", Zl, [
|
|
821
|
+
g.value !== null && g.value === s ? (u(), n("g", ea, [
|
|
822
|
+
(u(!0), n(z, null, $(l.donutHover, (o) => (u(), n("g", null, [
|
|
823
|
+
nt(o) ? (u(), n("path", {
|
|
821
824
|
key: 0,
|
|
822
|
-
d: i(
|
|
823
|
-
stroke:
|
|
825
|
+
d: i(cl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
826
|
+
stroke: o.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
|
-
(
|
|
831
|
-
nt(
|
|
833
|
+
(u(!0), n(z, null, $(l.donutHover, (o, y) => (u(), n("g", null, [
|
|
834
|
+
nt(o) ? (u(), n("text", {
|
|
832
835
|
key: 0,
|
|
833
836
|
"data-cy-hover-label": "",
|
|
834
|
-
"text-anchor": i(mt)(
|
|
835
|
-
x: i(mt)(
|
|
836
|
-
y: i(
|
|
837
|
+
"text-anchor": i(mt)(o, !0, 0).anchor,
|
|
838
|
+
x: i(mt)(o, !0, 9).x,
|
|
839
|
+
y: i(vl)(o, 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(
|
|
843
|
+
}, m(o.name) + ": " + m(Mt(o, l.donut)) + " (" + m(o.value === null ? "-" : Ze(o.value, o, y)) + ") ", 9, la)) : v("", !0)
|
|
841
844
|
]))), 256)),
|
|
842
845
|
p("g", null, [
|
|
843
846
|
p("circle", {
|
|
@@ -845,88 +848,88 @@ 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
|
-
(
|
|
854
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
856
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
|
|
857
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
855
858
|
}, [
|
|
856
|
-
l.subtotal !== null ? (
|
|
857
|
-
l.subtotal === 0 ? (
|
|
859
|
+
l.subtotal !== null ? (u(), n("g", oa, [
|
|
860
|
+
l.subtotal === 0 ? (u(), 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,
|
|
864
|
-
(
|
|
865
|
-
d:
|
|
866
|
-
fill: `${
|
|
866
|
+
}, null, 8, ua)) : g.value !== null && g.value === s ? (u(), n("g", sa, [
|
|
867
|
+
(u(!0), n(z, null, $(l.donutHover, (o, y) => (u(), n("path", {
|
|
868
|
+
d: o.arcSlice,
|
|
869
|
+
fill: `${o.color}`,
|
|
867
870
|
"stroke-width": 1,
|
|
868
871
|
stroke: e.value.style.chart.backgroundColor
|
|
869
|
-
}, null, 8,
|
|
870
|
-
])) : (
|
|
871
|
-
(
|
|
872
|
-
d:
|
|
873
|
-
fill: `${
|
|
872
|
+
}, null, 8, na))), 256))
|
|
873
|
+
])) : (u(), n("g", ra, [
|
|
874
|
+
(u(!0), n(z, null, $(l.donut, (o, y) => (u(), n("path", {
|
|
875
|
+
d: o.arcSlice,
|
|
876
|
+
fill: `${o.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
|
-
(
|
|
881
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
883
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
|
|
884
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ie.value && s !== E.value.index })
|
|
882
885
|
}, [
|
|
883
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
886
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), 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
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), 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,
|
|
904
|
-
(
|
|
906
|
+
}, null, 10, va))), 256)),
|
|
907
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("rect", {
|
|
905
908
|
"data-cy-trap": "",
|
|
906
909
|
x: r.value.left + s * k.value,
|
|
907
910
|
y: r.value.top,
|
|
908
911
|
width: k.value,
|
|
909
912
|
height: r.value.height,
|
|
910
913
|
fill: "transparent",
|
|
911
|
-
onMouseenter: (
|
|
912
|
-
onMouseleave: et,
|
|
913
|
-
onClick: (
|
|
914
|
-
class: N({ "donut-hover":
|
|
915
|
-
}, null, 42,
|
|
914
|
+
onMouseenter: (o) => Ht(l),
|
|
915
|
+
onMouseleave: (o) => et(l),
|
|
916
|
+
onClick: (o) => tt(l, s),
|
|
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 ? (
|
|
919
|
-
S(t.$slots, "watermark",
|
|
920
|
+
], 14, $l)),
|
|
921
|
+
t.$slots.watermark ? (u(), 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 ? (u(), 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: h.value.start,
|
|
946
|
+
valueEnd: h.value.end,
|
|
947
|
+
start: h.value.start,
|
|
948
|
+
"onUpdate:start": a[0] || (a[0] = (l) => h.value.start = l),
|
|
949
|
+
end: h.value.end,
|
|
950
|
+
"onUpdate:end": a[1] || (a[1] = (l) => h.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
|
-
"reset-action":
|
|
955
|
-
S(t.$slots, "reset-action",
|
|
957
|
+
"reset-action": _(({ reset: l }) => [
|
|
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 ? (
|
|
967
|
+
e.value.style.chart.legend.show ? (u(), 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
|
-
item:
|
|
973
|
+
item: _(({ legend: l, index: s }) => [
|
|
971
974
|
p("div", {
|
|
972
|
-
onClick: (
|
|
973
|
-
style:
|
|
975
|
+
onClick: (o) => pe(l.uid),
|
|
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,21 +988,21 @@ 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),
|
|
992
995
|
S(t.$slots, "legend", { legend: lt.value }, void 0, !0)
|
|
993
996
|
], 512),
|
|
994
|
-
t.$slots.source ? (
|
|
997
|
+
t.$slots.source ? (u(), 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)
|
|
1001
1004
|
], 512)) : v("", !0),
|
|
1002
|
-
Me.value ? (
|
|
1005
|
+
Me.value ? (u(), T(i(Lt), {
|
|
1003
1006
|
key: 6,
|
|
1004
1007
|
hideDetails: "",
|
|
1005
1008
|
config: {
|
|
@@ -1015,21 +1018,21 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
1015
1018
|
}
|
|
1016
1019
|
}
|
|
1017
1020
|
}, {
|
|
1018
|
-
content:
|
|
1019
|
-
(
|
|
1021
|
+
content: _(() => [
|
|
1022
|
+
(u(), 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
|
}, {
|
|
1028
|
-
th:
|
|
1031
|
+
th: _(({ th: l }) => [
|
|
1029
1032
|
dt(m(l.name ?? l), 1)
|
|
1030
1033
|
]),
|
|
1031
|
-
td:
|
|
1032
|
-
l.value === null ? (
|
|
1034
|
+
td: _(({ td: l }) => [
|
|
1035
|
+
l.value === null ? (u(), n("span", fa, "-")) : (u(), 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
|
|
@@ -1037,25 +1040,25 @@ const Al = ["id"], Sl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"]
|
|
|
1037
1040
|
]),
|
|
1038
1041
|
_: 1
|
|
1039
1042
|
}, 8, ["config"])) : v("", !0),
|
|
1040
|
-
e.value.style.chart.dialog.show ? (
|
|
1043
|
+
e.value.style.chart.dialog.show ? (u(), T(i(_t), {
|
|
1041
1044
|
key: 7,
|
|
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
|
-
title:
|
|
1057
|
+
title: _(() => [
|
|
1055
1058
|
dt(m(C.value[Number(E.value.index)] ? C.value[Number(E.value.index)].text : ""), 1)
|
|
1056
1059
|
]),
|
|
1057
|
-
default:
|
|
1058
|
-
E.value ? (
|
|
1060
|
+
default: _(() => [
|
|
1061
|
+
E.value ? (u(), T(i(It), {
|
|
1059
1062
|
key: 0,
|
|
1060
1063
|
config: it.value,
|
|
1061
1064
|
dataset: rt.value
|
|
@@ -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) ? (u(), T(Al, { key: 8 })) : v("", !0)
|
|
1070
|
+
], 46, zl));
|
|
1068
1071
|
}
|
|
1069
|
-
},
|
|
1072
|
+
}, Oa = /* @__PURE__ */ Sl(ma, [["__scopeId", "data-v-b059689d"]]);
|
|
1070
1073
|
export {
|
|
1071
|
-
|
|
1074
|
+
Oa as default
|
|
1072
1075
|
};
|