vue-data-ui 3.0.2 → 3.0.4
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-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
- package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
- package/package.json +1 -1
- package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
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
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as M, ref as c, shallowRef as dt, computed as f, onMounted as qt, toRefs as Jt, nextTick as _e, watch as Ce, watchEffect as Kt, onBeforeUnmount as Qt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as J, normalizeClass as O, createBlock as T, createCommentVNode as v, createElementVNode as m, createSlots as Zt, withCtx as L, renderSlot as S, normalizeProps as K, guardReactiveProps as Q, createVNode as el, Fragment as z, renderList as $, toDisplayString as b, Teleport as tl, createTextVNode as ht } from "vue";
|
|
2
|
+
import { u as ll, c as yt, o as ft, f as se, g as al, t as ol, a as ul, p as ne, b as sl, C as gt, d as nl, e as Le, G as rl, D as mt, m as Ae, X as il, s as Z, H as cl, k as Se, i as re, I as vl, n as dl, q as hl, r as bt, v as yl, w as fl, J as xt, K as gl } from "./index-q-LPw2IT.js";
|
|
3
|
+
import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
+
import { u as pt } from "./useNestedProp-04aFeUYu.js";
|
|
5
|
+
import { u as bl } from "./usePrinter-DX7efa1s.js";
|
|
6
|
+
import { u as xl } from "./useTimeLabels-DkzmKfZn.js";
|
|
7
|
+
import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as kl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import wl from "./Legend-DcDSkq99.js";
|
|
10
|
+
import { S as _l } from "./Slicer-BarTZZDU.js";
|
|
11
|
+
import Cl from "./Title-B55R8CAZ.js";
|
|
12
|
+
import Ll from "./img-Ctts6JQb.js";
|
|
13
|
+
import { t as kt, u as Al } from "./useResponsive-DfdjqQps.js";
|
|
14
|
+
import { u as Sl, B as zl } from "./useLoading-D7YHNtLX.js";
|
|
15
|
+
import { _ as $l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"], Pl = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], El = ["id"], Rl = ["stop-color"], Vl = ["stop-color"], Ml = ["stop-color"], Hl = { key: 1 }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xl = { key: 0 }, Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = ["font-size", "fill", "transform"], Yl = ["x", "y", "font-size", "fill"], jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ql = ["x", "y", "font-size", "fill", "font-weight"], Jl = { key: 0 }, Kl = ["text-anchor", "font-size", "fill", "transform"], Ql = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Zl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ea = { key: 1 }, ta = ["cx", "cy", "r", "fill"], la = { key: 0 }, aa = { key: 0 }, oa = ["d", "stroke"], ua = ["text-anchor", "x", "y", "fill"], sa = ["cx", "cy", "r", "fill"], na = { key: 0 }, ra = ["cx", "cy", "fill"], ia = { key: 1 }, ca = ["d", "fill", "stroke"], va = { key: 2 }, da = ["d", "fill", "stroke"], ha = ["x", "y", "font-size", "fill"], ya = ["x", "y", "width", "height", "fill"], fa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ga = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, ma = ["id"], ba = ["onClick"], xa = { key: 0 }, pa = { key: 1 }, ka = {
|
|
20
20
|
__name: "vue-ui-donut-evolution",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,19 +33,19 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(
|
|
37
|
-
const Lt =
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
setup(wt, { expose: _t, emit: Ct }) {
|
|
37
|
+
const Lt = M(() => import("./vue-ui-accordion-D46i_gkB.js")), At = M(() => import("./BaseDraggableDialog-DdXLTRiK.js")), St = M(() => import("./DataTable-rj9-mAwF.js")), zt = M(() => import("./PackageVersion-5ZjKSIei.js")), $t = M(() => import("./PenAndPaper-BJ0hcgsa.js")), It = M(() => import("./UserOptions-DVzyjG-W.js")), Tt = M(() => import("./vue-ui-donut-CdLAu_O5.js")), { vue_ui_donut_evolution: Nt } = ll(), x = wt, N = c(yt()), w = c([]), g = c(null), ee = c(null), ie = c(!1), R = c(null), D = c(null), Ot = c(null), ze = c(0), $e = c(0), Ie = c(0), Te = c(0), Ne = c(0), ce = c(null), te = c(null), ve = c(null), de = c(null), Oe = c(!1), Pe = c(null), De = c(null), Fe = c(null), Ee = c(null), Re = c(null), he = c(!1), Y = dt(null), le = dt(null), Ve = c(null), Me = Ct, He = f(() => !!x.dataset && x.dataset.length);
|
|
38
|
+
qt(() => {
|
|
39
|
+
Oe.value = !0, Be();
|
|
40
40
|
});
|
|
41
41
|
const ae = f(() => !!e.value.debug);
|
|
42
|
-
function
|
|
43
|
-
if (
|
|
42
|
+
function Be() {
|
|
43
|
+
if (ft(x.dataset) ? (se({
|
|
44
44
|
componentName: "VueUiDonutEvolution",
|
|
45
45
|
type: "dataset",
|
|
46
46
|
debug: ae.value
|
|
47
|
-
}), oe.value = !0) :
|
|
48
|
-
|
|
47
|
+
}), oe.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
|
|
48
|
+
al({
|
|
49
49
|
datasetObject: t,
|
|
50
50
|
requiredAttributes: ["name", "values"]
|
|
51
51
|
}).forEach((l) => {
|
|
@@ -57,29 +57,29 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
57
57
|
debug: ae.value
|
|
58
58
|
}), oe.value = !0;
|
|
59
59
|
});
|
|
60
|
-
}),
|
|
60
|
+
}), ft(x.dataset) || (oe.value = e.value.loading), setTimeout(() => {
|
|
61
61
|
he.value = !0;
|
|
62
62
|
}, 10), fe(), e.value.responsive) {
|
|
63
|
-
const t =
|
|
63
|
+
const t = kt(() => {
|
|
64
64
|
he.value = !1;
|
|
65
|
-
const { width: a, height: l } =
|
|
66
|
-
chart:
|
|
67
|
-
title: e.value.style.chart.title.text ?
|
|
68
|
-
legend: e.value.style.chart.legend.show ?
|
|
69
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
70
|
-
source:
|
|
65
|
+
const { width: a, height: l } = Al({
|
|
66
|
+
chart: D.value,
|
|
67
|
+
title: e.value.style.chart.title.text ? Pe.value : null,
|
|
68
|
+
legend: e.value.style.chart.legend.show ? De.value : null,
|
|
69
|
+
slicer: e.value.style.chart.zoom.show && Xe.value > 1 ? Re.value : null,
|
|
70
|
+
source: Fe.value
|
|
71
71
|
});
|
|
72
72
|
requestAnimationFrame(() => {
|
|
73
|
-
H.value.width = a, H.value.height = l - 12, clearTimeout(
|
|
73
|
+
H.value.width = a, H.value.height = l - 12, clearTimeout(Ve.value), Ve.value = setTimeout(() => {
|
|
74
74
|
he.value = !0;
|
|
75
75
|
}, 10);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
Y.value && (le.value && Y.value.unobserve(le.value), Y.value.disconnect()), Y.value = new ResizeObserver(t), le.value =
|
|
78
|
+
Y.value && (le.value && Y.value.unobserve(le.value), Y.value.disconnect()), Y.value = new ResizeObserver(t), le.value = D.value.parentNode, Y.value.observe(le.value);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const e = c(me()), { loading:
|
|
82
|
-
...
|
|
81
|
+
const e = c(me()), { loading: Ue, FINAL_DATASET: ye, manualLoading: oe } = Sl({
|
|
82
|
+
...Jt(x),
|
|
83
83
|
FINAL_CONFIG: e,
|
|
84
84
|
prepareConfig: me,
|
|
85
85
|
callback: () => {
|
|
@@ -104,7 +104,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
104
104
|
color: "#CACACA"
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
|
-
skeletonConfig:
|
|
107
|
+
skeletonConfig: ol({
|
|
108
108
|
defaultConfig: e.value,
|
|
109
109
|
userConfig: {
|
|
110
110
|
useCssAnimation: !1,
|
|
@@ -149,105 +149,105 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
149
149
|
}), H = c({
|
|
150
150
|
width: e.value.style.chart.layout.width,
|
|
151
151
|
height: e.value.style.chart.layout.height
|
|
152
|
-
}),
|
|
152
|
+
}), Xe = f(() => Math.max(...ye.value.map((t) => t.values.length))), h = c({
|
|
153
153
|
start: 0,
|
|
154
|
-
end:
|
|
154
|
+
end: Xe.value
|
|
155
155
|
});
|
|
156
|
-
function
|
|
156
|
+
function Ge() {
|
|
157
157
|
fe();
|
|
158
158
|
}
|
|
159
159
|
async function fe() {
|
|
160
|
-
await
|
|
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(
|
|
160
|
+
await _e(), await _e();
|
|
161
|
+
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Ee.value;
|
|
162
|
+
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Pt(a + 1))) : (h.value = {
|
|
163
163
|
start: 0,
|
|
164
|
-
end:
|
|
164
|
+
end: F.value
|
|
165
165
|
}, $e.value += 1);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
const a =
|
|
167
|
+
function Pt(t) {
|
|
168
|
+
const a = F.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:
|
|
171
|
+
const { userOptionsVisible: ge, setUserOptionsVisibility: We, keepUserOptionState: Ye } = pl({ config: e.value }), { svgRef: je } = ml({ config: e.value.style.chart.title });
|
|
172
172
|
function me() {
|
|
173
|
-
const t =
|
|
174
|
-
userConfig:
|
|
173
|
+
const t = pt({
|
|
174
|
+
userConfig: x.config,
|
|
175
175
|
defaultConfig: Nt
|
|
176
176
|
});
|
|
177
177
|
let a = {};
|
|
178
178
|
return t.theme ? a = {
|
|
179
|
-
...
|
|
180
|
-
userConfig:
|
|
179
|
+
...pt({
|
|
180
|
+
userConfig: sl.vue_ui_donut_evolution[t.theme] || x.config,
|
|
181
181
|
defaultConfig: t
|
|
182
182
|
}),
|
|
183
|
-
customPalette:
|
|
184
|
-
} : a = t,
|
|
183
|
+
customPalette: ul[t.theme] || ne
|
|
184
|
+
} : a = t, x.config && gt(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && gt(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.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 && (oe.value = !1),
|
|
186
|
+
Ce(() => x.config, (t) => {
|
|
187
|
+
Ue.value || (e.value = me()), ge.value = !e.value.userOptions.showOnChartHover, Be(), Ie.value += 1, Te.value += 1, Ne.value += 1, B.value.showTable = e.value.table.show;
|
|
188
|
+
}, { deep: !0 }), Ce(() => x.dataset, (t) => {
|
|
189
|
+
Array.isArray(t) && t.length > 0 && (oe.value = !1), Ge();
|
|
190
190
|
}, { deep: !0 });
|
|
191
|
-
const { isPrinting:
|
|
192
|
-
elementId:
|
|
191
|
+
const { isPrinting: qe, isImaging: Je, generatePdf: Ke, generateImage: Qe } = bl({
|
|
192
|
+
elementId: N.value,
|
|
193
193
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
194
194
|
options: e.value.userOptions.print
|
|
195
|
-
}),
|
|
195
|
+
}), Dt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = f(() => nl(e.value.customPalette)), B = c({
|
|
196
196
|
showTable: e.value.table.show
|
|
197
197
|
});
|
|
198
|
-
|
|
198
|
+
Ce(e, () => {
|
|
199
199
|
B.value = {
|
|
200
200
|
showTable: e.value.table.show
|
|
201
201
|
};
|
|
202
202
|
}, { immediate: !0 });
|
|
203
|
-
const
|
|
203
|
+
const V = 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 Et() {
|
|
210
210
|
let t = 0;
|
|
211
|
-
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((
|
|
211
|
+
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((u, y) => {
|
|
212
212
|
const d = y.getComputedTextLength();
|
|
213
|
-
return (d >
|
|
213
|
+
return (d > u ? d : u) + 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;
|
|
217
217
|
}
|
|
218
|
-
const be = c(0),
|
|
218
|
+
const be = c(0), Rt = kt((t) => {
|
|
219
219
|
be.value = t;
|
|
220
220
|
}, 100);
|
|
221
|
-
|
|
221
|
+
Kt((t) => {
|
|
222
222
|
const a = te.value;
|
|
223
223
|
if (!a) return;
|
|
224
224
|
const l = new ResizeObserver((s) => {
|
|
225
|
-
|
|
225
|
+
Rt(s[0].contentRect.height);
|
|
226
226
|
});
|
|
227
227
|
l.observe(a), t(() => l.disconnect());
|
|
228
|
-
}),
|
|
228
|
+
}), Qt(() => {
|
|
229
229
|
be.value = 0;
|
|
230
230
|
});
|
|
231
|
-
const
|
|
231
|
+
const Ze = f(() => {
|
|
232
232
|
let t = 0;
|
|
233
233
|
ve.value && (t = ve.value.getBBox().height);
|
|
234
234
|
let a = 0;
|
|
235
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
236
|
}), r = f(() => {
|
|
237
|
-
const t =
|
|
237
|
+
const t = Et(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height, u = V.value.left + t, y = l - V.value.right, d = l - u - V.value.right, p = s - V.value.top - V.value.bottom - a - Ze.value, W = V.value.top + a, E = s - V.value.bottom - Ze.value;
|
|
238
238
|
return {
|
|
239
239
|
top: W,
|
|
240
|
-
left:
|
|
240
|
+
left: u,
|
|
241
241
|
right: y,
|
|
242
|
-
bottom:
|
|
242
|
+
bottom: E,
|
|
243
243
|
absoluteHeight: s,
|
|
244
244
|
absoluteWidth: l,
|
|
245
|
-
centerX:
|
|
246
|
-
centerY: W + Math.max(10,
|
|
245
|
+
centerX: u + Math.max(10, d) / 2,
|
|
246
|
+
centerY: W + Math.max(10, p) / 2,
|
|
247
247
|
width: Math.max(10, d),
|
|
248
|
-
height: Math.max(10,
|
|
248
|
+
height: Math.max(10, p)
|
|
249
249
|
};
|
|
250
|
-
}),
|
|
250
|
+
}), P = f(() => (ye.value.forEach((t, a) => {
|
|
251
251
|
[null, void 0].includes(t.name) && se({
|
|
252
252
|
componentName: "VueUiDonutEvolution",
|
|
253
253
|
type: "datasetSerieAttribute",
|
|
@@ -263,56 +263,56 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
263
263
|
});
|
|
264
264
|
}), ye.value.map((t, a) => ({
|
|
265
265
|
...t,
|
|
266
|
-
values:
|
|
267
|
-
color:
|
|
266
|
+
values: rl(t.values),
|
|
267
|
+
color: Le(t.color) || Ft.value[a] || ne[a] || ne[a % ne.length],
|
|
268
268
|
length: (t.values || []).length,
|
|
269
|
-
uid:
|
|
270
|
-
})))), j = f(() =>
|
|
269
|
+
uid: yt()
|
|
270
|
+
})))), j = f(() => P.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
|
|
271
271
|
...t,
|
|
272
272
|
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
273
|
-
}))),
|
|
273
|
+
}))), F = f(() => Math.max(...j.value.map((t) => t.length))), _ = f(() => xl({
|
|
274
274
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
275
|
-
maxDatapoints:
|
|
275
|
+
maxDatapoints: F.value,
|
|
276
276
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
277
277
|
start: h.value.start,
|
|
278
278
|
end: h.value.end
|
|
279
|
-
})), k = f(() => r.value.width / (h.value.end - h.value.start)),
|
|
279
|
+
})), k = f(() => r.value.width / (h.value.end - h.value.start)), C = f(() => {
|
|
280
280
|
const t = [];
|
|
281
|
-
for (let
|
|
282
|
-
const y = j.value.map((I) => I.values[
|
|
281
|
+
for (let u = 0; u < h.value.end - h.value.start; u += 1) {
|
|
282
|
+
const y = j.value.map((I) => I.values[u] ?? null), d = y.filter((I) => [void 0, null].includes(I)).length === y.length, p = y.reduce((I, A) => I + A, 0), W = y.map((I) => I / p), E = r.value.left + k.value * u + k.value / 2;
|
|
283
283
|
t.push({
|
|
284
|
-
index:
|
|
284
|
+
index: u,
|
|
285
285
|
percentages: W,
|
|
286
|
-
subtotal: d ||
|
|
286
|
+
subtotal: d || p < 0 ? null : p,
|
|
287
287
|
values: y,
|
|
288
|
-
x:
|
|
288
|
+
x: E
|
|
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),
|
|
291
|
+
const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
292
|
+
return t.map((u, y) => {
|
|
293
|
+
const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), p = d > r.value.width / 16 ? r.value.width / 16 : d, W = g.value === u.index ? r.value.width / 16 : p, E = 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 / mt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
294
294
|
return {
|
|
295
|
-
...
|
|
295
|
+
...u,
|
|
296
296
|
y: I,
|
|
297
|
-
radius:
|
|
297
|
+
radius: p,
|
|
298
298
|
activeRadius: W,
|
|
299
|
-
hoverRadius:
|
|
299
|
+
hoverRadius: E,
|
|
300
300
|
donut: Ae({
|
|
301
|
-
series: j.value.map((A,
|
|
301
|
+
series: j.value.map((A, vt) => ({
|
|
302
302
|
color: A.color,
|
|
303
303
|
name: A.name,
|
|
304
304
|
value: A.values[y] ?? 0
|
|
305
305
|
}))
|
|
306
|
-
},
|
|
306
|
+
}, u.x, I, p, p, 1.99999, 2, 1, 360, 105.25, p / 2),
|
|
307
307
|
donutHover: Ae({
|
|
308
|
-
series: j.value.map((A,
|
|
308
|
+
series: j.value.map((A, vt) => ({
|
|
309
309
|
color: A.color,
|
|
310
310
|
name: A.name,
|
|
311
311
|
value: A.values[y] ?? 0
|
|
312
312
|
}))
|
|
313
|
-
},
|
|
313
|
+
}, u.x, I, E, E, 1.99999, 2, 1, 360, 105.25, E / 2),
|
|
314
314
|
donutFocus: Ae({
|
|
315
|
-
series: j.value.map((A,
|
|
315
|
+
series: j.value.map((A, vt) => ({
|
|
316
316
|
color: A.color,
|
|
317
317
|
name: A.name,
|
|
318
318
|
value: A.values[y] ?? 0
|
|
@@ -321,7 +321,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
321
321
|
};
|
|
322
322
|
});
|
|
323
323
|
});
|
|
324
|
-
function
|
|
324
|
+
function et(t, a, l) {
|
|
325
325
|
return Se(
|
|
326
326
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
327
327
|
t,
|
|
@@ -335,33 +335,33 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
337
|
const xe = f(() => ({
|
|
338
|
-
max: Math.max(...
|
|
338
|
+
max: Math.max(...C.value.map((t) => t.subtotal)),
|
|
339
339
|
min: 0
|
|
340
340
|
})), U = f(() => {
|
|
341
|
-
const t =
|
|
342
|
-
return
|
|
341
|
+
const t = C.value.length === 1 ? xe.value.max * 2 : xe.value.max;
|
|
342
|
+
return mt(xe.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
343
343
|
});
|
|
344
|
-
function
|
|
344
|
+
function Vt(t) {
|
|
345
345
|
return t / U.value.max;
|
|
346
346
|
}
|
|
347
|
-
const
|
|
348
|
-
y: r.value.bottom - r.value.height *
|
|
347
|
+
const Mt = f(() => U.value.ticks.map((t) => ({
|
|
348
|
+
y: r.value.bottom - r.value.height * Vt(t),
|
|
349
349
|
value: t
|
|
350
350
|
})));
|
|
351
|
-
function
|
|
352
|
-
return isNaN(t.value /
|
|
351
|
+
function Ht(t, a) {
|
|
352
|
+
return isNaN(t.value / xt(a, "value")) ? 0 : (t.value / xt(a, "value") * 100).toFixed(0) + "%";
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function tt(t) {
|
|
355
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
|
|
357
|
+
function Bt(t) {
|
|
358
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
360
|
const q = c(null);
|
|
361
|
-
function
|
|
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,
|
|
361
|
+
function lt(t, a) {
|
|
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, R.value = t, Gt(t), [null, void 0].includes(a) || (q.value = a));
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const at = f(() => P.value.map((t, a) => ({
|
|
365
365
|
name: t.name,
|
|
366
366
|
value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
|
|
367
367
|
shape: "circle",
|
|
@@ -372,7 +372,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["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
|
-
}))),
|
|
375
|
+
}))), ot = f(() => C.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Ut = 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,
|
|
@@ -382,24 +382,24 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
382
382
|
}));
|
|
383
383
|
function pe(t) {
|
|
384
384
|
if (w.value.includes(t))
|
|
385
|
-
w.value = w.value.filter((a) => a !== t),
|
|
385
|
+
w.value = w.value.filter((a) => a !== t), Me("selectLegend", null);
|
|
386
386
|
else {
|
|
387
|
-
if (w.value.length ===
|
|
388
|
-
w.value.push(t),
|
|
387
|
+
if (w.value.length === P.value.length - 1) return;
|
|
388
|
+
w.value.push(t), Me("selectLegend", P.value.find((a) => a.uid === t));
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
R.value && lt(C.value.find((a, l) => l === q.value));
|
|
391
391
|
}
|
|
392
392
|
const X = f(() => {
|
|
393
|
-
const t = [""].concat(
|
|
394
|
-
name:
|
|
395
|
-
color:
|
|
393
|
+
const t = [""].concat(P.value.filter((u) => !w.value.includes(u.uid)).map((u) => ({
|
|
394
|
+
name: u.name,
|
|
395
|
+
color: u.color
|
|
396
396
|
}))).concat(["Σ"]);
|
|
397
397
|
let a = [];
|
|
398
|
-
for (let
|
|
399
|
-
const y =
|
|
400
|
-
a.push([
|
|
401
|
-
value: d.values[
|
|
402
|
-
percentage: d.values[
|
|
398
|
+
for (let u = 0; u < F.value; u += 1) {
|
|
399
|
+
const y = P.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, p) => d + p, 0);
|
|
400
|
+
a.push([_[u] ? _[u].text : "-"].concat(P.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
|
|
401
|
+
value: d.values[u] ?? 0,
|
|
402
|
+
percentage: d.values[u] ? d.values[u] / y * 100 : 0
|
|
403
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 = {
|
|
@@ -416,49 +416,49 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
416
416
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
417
417
|
}, s = [
|
|
418
418
|
e.value.table.columnNames.period
|
|
419
|
-
].concat(
|
|
419
|
+
].concat(P.value.filter((u) => !w.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
420
420
|
return { head: t, body: a, config: l, colNames: s };
|
|
421
421
|
});
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function Xt() {
|
|
423
|
+
return P.value;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
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((
|
|
428
|
-
t ? t(y) :
|
|
425
|
+
function ut(t = null) {
|
|
426
|
+
_e(() => {
|
|
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((p) => p.value ?? p))], u = a.concat([l]).concat(s), y = yl(u);
|
|
428
|
+
t ? t(y) : fl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
const G = c(!1);
|
|
432
|
-
function
|
|
432
|
+
function st(t) {
|
|
433
433
|
G.value = t, ze.value += 1;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function nt() {
|
|
436
436
|
B.value.showTable = !B.value.showTable;
|
|
437
437
|
}
|
|
438
438
|
const ue = c(!1);
|
|
439
439
|
function ke() {
|
|
440
440
|
ue.value = !ue.value;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function rt(t) {
|
|
443
443
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
function
|
|
447
|
-
|
|
445
|
+
const it = c([]), ct = c({}), we = c(null);
|
|
446
|
+
function Gt(t) {
|
|
447
|
+
it.value = t.donut.map((a) => ({
|
|
448
448
|
name: a.name,
|
|
449
449
|
values: [a.value],
|
|
450
450
|
color: a.color
|
|
451
|
-
})),
|
|
451
|
+
})), ct.value = gl({
|
|
452
452
|
...e.value.style.chart.dialog.donutChart,
|
|
453
453
|
responsive: !0,
|
|
454
454
|
theme: e.value.theme
|
|
455
455
|
}), we.value && we.value.open();
|
|
456
456
|
}
|
|
457
|
-
async function
|
|
458
|
-
if (!
|
|
459
|
-
const { width: a, height: l } =
|
|
457
|
+
async function Wt({ scale: t = 2 } = {}) {
|
|
458
|
+
if (!D.value) return;
|
|
459
|
+
const { width: a, height: l } = D.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: y } = await Ll({ domElement: D.value, base64: !0, img: !0, scale: t });
|
|
460
460
|
return {
|
|
461
|
-
imageUri:
|
|
461
|
+
imageUri: u,
|
|
462
462
|
base64: y,
|
|
463
463
|
title: e.value.style.chart.title.text,
|
|
464
464
|
width: a,
|
|
@@ -466,59 +466,59 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
466
466
|
aspectRatio: s
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
return
|
|
469
|
+
const Yt = f(() => H.value.width), jt = f(() => H.value.height);
|
|
470
|
+
return kl({
|
|
471
471
|
timeLabelsEls: te,
|
|
472
|
-
timeLabels:
|
|
472
|
+
timeLabels: _,
|
|
473
473
|
slicer: h,
|
|
474
474
|
configRef: e,
|
|
475
475
|
rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
476
476
|
autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
477
477
|
isAutoSize: !1,
|
|
478
|
-
width:
|
|
479
|
-
height:
|
|
478
|
+
width: Yt,
|
|
479
|
+
height: jt,
|
|
480
480
|
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
481
|
-
}),
|
|
482
|
-
getData:
|
|
483
|
-
getImage:
|
|
484
|
-
generatePdf:
|
|
485
|
-
generateCsv:
|
|
486
|
-
generateImage:
|
|
487
|
-
toggleTable:
|
|
481
|
+
}), _t({
|
|
482
|
+
getData: Xt,
|
|
483
|
+
getImage: Wt,
|
|
484
|
+
generatePdf: Ke,
|
|
485
|
+
generateCsv: ut,
|
|
486
|
+
generateImage: Qe,
|
|
487
|
+
toggleTable: nt,
|
|
488
488
|
toggleAnnotator: ke,
|
|
489
|
-
toggleFullscreen:
|
|
490
|
-
}), (t, a) => (
|
|
489
|
+
toggleFullscreen: st
|
|
490
|
+
}), (t, a) => (o(), n("div", {
|
|
491
491
|
ref_key: "donutEvolutionChart",
|
|
492
|
-
ref:
|
|
493
|
-
class:
|
|
492
|
+
ref: D,
|
|
493
|
+
class: O(`vue-ui-donut-evolution ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
494
494
|
style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
495
|
-
id:
|
|
496
|
-
onMouseenter: a[5] || (a[5] = () => i(
|
|
497
|
-
onMouseleave: a[6] || (a[6] = () => i(
|
|
495
|
+
id: N.value,
|
|
496
|
+
onMouseenter: a[5] || (a[5] = () => i(We)(!0)),
|
|
497
|
+
onMouseleave: a[6] || (a[6] = () => i(We)(!1))
|
|
498
498
|
}, [
|
|
499
|
-
e.value.userOptions.buttons.annotator ? (
|
|
499
|
+
e.value.userOptions.buttons.annotator ? (o(), T(i($t), {
|
|
500
500
|
key: 0,
|
|
501
|
-
svgRef: i(
|
|
501
|
+
svgRef: i(je),
|
|
502
502
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
503
503
|
color: e.value.style.chart.color,
|
|
504
504
|
active: ue.value,
|
|
505
505
|
onClose: ke
|
|
506
506
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
507
|
-
|
|
507
|
+
Dt.value ? (o(), n("div", {
|
|
508
508
|
key: 1,
|
|
509
509
|
ref_key: "noTitle",
|
|
510
|
-
ref:
|
|
510
|
+
ref: Ot,
|
|
511
511
|
class: "vue-data-ui-no-title-space",
|
|
512
512
|
style: "height:36px; width: 100%;background:transparent"
|
|
513
513
|
}, null, 512)) : v("", !0),
|
|
514
|
-
e.value.style.chart.title.text ? (
|
|
514
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
515
515
|
key: 2,
|
|
516
516
|
ref_key: "chartTitle",
|
|
517
|
-
ref:
|
|
517
|
+
ref: Pe,
|
|
518
518
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
519
|
-
onMouseleave:
|
|
519
|
+
onMouseleave: tt
|
|
520
520
|
}, [
|
|
521
|
-
(
|
|
521
|
+
(o(), T(Cl, {
|
|
522
522
|
key: `title_${Ie.value}`,
|
|
523
523
|
config: {
|
|
524
524
|
title: {
|
|
@@ -532,14 +532,17 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
532
532
|
}
|
|
533
533
|
}, null, 8, ["config"]))
|
|
534
534
|
], 544)) : v("", !0),
|
|
535
|
-
|
|
535
|
+
m("div", {
|
|
536
|
+
id: `legend-top-${N.value}`
|
|
537
|
+
}, null, 8, Tl),
|
|
538
|
+
e.value.userOptions.show && He.value && (i(Ye) || i(ge)) ? (o(), T(i(It), {
|
|
536
539
|
ref: "details",
|
|
537
540
|
key: `user_options_${ze.value}`,
|
|
538
541
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
539
542
|
color: e.value.style.chart.color,
|
|
540
|
-
isPrinting: i(
|
|
541
|
-
isImaging: i(
|
|
542
|
-
uid:
|
|
543
|
+
isPrinting: i(qe),
|
|
544
|
+
isImaging: i(Je),
|
|
545
|
+
uid: N.value,
|
|
543
546
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
544
547
|
hasImg: e.value.userOptions.buttons.img,
|
|
545
548
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -547,82 +550,82 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
547
550
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
548
551
|
isFullscreen: G.value,
|
|
549
552
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
550
|
-
chartElement:
|
|
553
|
+
chartElement: D.value,
|
|
551
554
|
position: e.value.userOptions.position,
|
|
552
555
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
553
556
|
isAnnotation: ue.value,
|
|
554
557
|
callbacks: e.value.userOptions.callbacks,
|
|
555
558
|
printScale: e.value.userOptions.print.scale,
|
|
556
|
-
onToggleFullscreen:
|
|
557
|
-
onGeneratePdf: i(
|
|
558
|
-
onGenerateCsv:
|
|
559
|
-
onGenerateImage: i(
|
|
560
|
-
onToggleTable:
|
|
559
|
+
onToggleFullscreen: st,
|
|
560
|
+
onGeneratePdf: i(Ke),
|
|
561
|
+
onGenerateCsv: ut,
|
|
562
|
+
onGenerateImage: i(Qe),
|
|
563
|
+
onToggleTable: nt,
|
|
561
564
|
onToggleAnnotator: ke,
|
|
562
565
|
style: J({
|
|
563
|
-
visibility: i(
|
|
566
|
+
visibility: i(Ye) ? i(ge) ? "visible" : "hidden" : "visible"
|
|
564
567
|
})
|
|
565
|
-
},
|
|
568
|
+
}, Zt({ _: 2 }, [
|
|
566
569
|
t.$slots.menuIcon ? {
|
|
567
570
|
name: "menuIcon",
|
|
568
|
-
fn:
|
|
571
|
+
fn: L(({ isOpen: l, color: s }) => [
|
|
569
572
|
S(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
|
|
570
573
|
]),
|
|
571
574
|
key: "0"
|
|
572
575
|
} : void 0,
|
|
573
576
|
t.$slots.optionPdf ? {
|
|
574
577
|
name: "optionPdf",
|
|
575
|
-
fn:
|
|
578
|
+
fn: L(() => [
|
|
576
579
|
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
577
580
|
]),
|
|
578
581
|
key: "1"
|
|
579
582
|
} : void 0,
|
|
580
583
|
t.$slots.optionCsv ? {
|
|
581
584
|
name: "optionCsv",
|
|
582
|
-
fn:
|
|
585
|
+
fn: L(() => [
|
|
583
586
|
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
584
587
|
]),
|
|
585
588
|
key: "2"
|
|
586
589
|
} : void 0,
|
|
587
590
|
t.$slots.optionImg ? {
|
|
588
591
|
name: "optionImg",
|
|
589
|
-
fn:
|
|
592
|
+
fn: L(() => [
|
|
590
593
|
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
591
594
|
]),
|
|
592
595
|
key: "3"
|
|
593
596
|
} : void 0,
|
|
594
597
|
t.$slots.optionTable ? {
|
|
595
598
|
name: "optionTable",
|
|
596
|
-
fn:
|
|
599
|
+
fn: L(() => [
|
|
597
600
|
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
598
601
|
]),
|
|
599
602
|
key: "4"
|
|
600
603
|
} : void 0,
|
|
601
604
|
t.$slots.optionFullscreen ? {
|
|
602
605
|
name: "optionFullscreen",
|
|
603
|
-
fn:
|
|
606
|
+
fn: L(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
604
607
|
S(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
605
608
|
]),
|
|
606
609
|
key: "5"
|
|
607
610
|
} : void 0,
|
|
608
611
|
t.$slots.optionAnnotator ? {
|
|
609
612
|
name: "optionAnnotator",
|
|
610
|
-
fn:
|
|
613
|
+
fn: L(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
611
614
|
S(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
612
615
|
]),
|
|
613
616
|
key: "6"
|
|
614
617
|
} : void 0
|
|
615
618
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
616
|
-
(
|
|
619
|
+
(o(), n("svg", {
|
|
617
620
|
ref_key: "svgRef",
|
|
618
|
-
ref:
|
|
619
|
-
xmlns: i(
|
|
620
|
-
class:
|
|
621
|
+
ref: je,
|
|
622
|
+
xmlns: i(il),
|
|
623
|
+
class: O({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
621
624
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
622
625
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
623
626
|
}, [
|
|
624
|
-
|
|
625
|
-
t.$slots["chart-background"] ? (
|
|
627
|
+
el(i(zt)),
|
|
628
|
+
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
626
629
|
key: 0,
|
|
627
630
|
x: r.value.left,
|
|
628
631
|
y: r.value.top,
|
|
@@ -633,43 +636,43 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
633
636
|
}
|
|
634
637
|
}, [
|
|
635
638
|
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
636
|
-
], 8,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
id: `hover_${
|
|
639
|
+
], 8, Ol)) : v("", !0),
|
|
640
|
+
m("defs", null, [
|
|
641
|
+
m("linearGradient", {
|
|
642
|
+
id: `hover_${N.value}`,
|
|
640
643
|
x1: "0%",
|
|
641
644
|
y1: "0%",
|
|
642
645
|
x2: "0%",
|
|
643
646
|
y2: "100%"
|
|
644
647
|
}, [
|
|
645
|
-
|
|
648
|
+
m("stop", {
|
|
646
649
|
offset: "0%",
|
|
647
650
|
"stop-color": i(Z)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
648
|
-
}, null, 8,
|
|
649
|
-
|
|
651
|
+
}, null, 8, Dl),
|
|
652
|
+
m("stop", {
|
|
650
653
|
offset: "100%",
|
|
651
654
|
"stop-color": i(Z)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
652
|
-
}, null, 8,
|
|
653
|
-
], 8,
|
|
654
|
-
|
|
655
|
-
id: `focus_${
|
|
655
|
+
}, null, 8, Fl)
|
|
656
|
+
], 8, Pl),
|
|
657
|
+
m("radialGradient", {
|
|
658
|
+
id: `focus_${N.value}`
|
|
656
659
|
}, [
|
|
657
|
-
|
|
660
|
+
m("stop", {
|
|
658
661
|
offset: "0%",
|
|
659
|
-
"stop-color": i(Z)(i(
|
|
660
|
-
}, null, 8,
|
|
661
|
-
|
|
662
|
+
"stop-color": i(Z)(i(Le)(e.value.style.chart.backgroundColor), 0)
|
|
663
|
+
}, null, 8, Rl),
|
|
664
|
+
m("stop", {
|
|
662
665
|
offset: "77%",
|
|
663
666
|
"stop-color": i(Z)("#FFFFFF", 30)
|
|
664
|
-
}, null, 8,
|
|
665
|
-
|
|
667
|
+
}, null, 8, Vl),
|
|
668
|
+
m("stop", {
|
|
666
669
|
offset: "100%",
|
|
667
|
-
"stop-color": i(Z)(i(
|
|
668
|
-
}, null, 8,
|
|
669
|
-
], 8,
|
|
670
|
+
"stop-color": i(Z)(i(Le)(e.value.style.chart.backgroundColor), 0)
|
|
671
|
+
}, null, 8, Ml)
|
|
672
|
+
], 8, El)
|
|
670
673
|
]),
|
|
671
|
-
e.value.style.chart.layout.grid.show ? (
|
|
672
|
-
|
|
674
|
+
e.value.style.chart.layout.grid.show ? (o(), n("g", Hl, [
|
|
675
|
+
m("line", {
|
|
673
676
|
x1: r.value.left,
|
|
674
677
|
x2: r.value.left,
|
|
675
678
|
y1: r.value.top,
|
|
@@ -677,8 +680,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
677
680
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
678
681
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
679
682
|
"stroke-linecap": "round"
|
|
680
|
-
}, null, 8,
|
|
681
|
-
|
|
683
|
+
}, null, 8, Bl),
|
|
684
|
+
m("line", {
|
|
682
685
|
x1: r.value.left,
|
|
683
686
|
x2: r.value.right,
|
|
684
687
|
y1: r.value.bottom,
|
|
@@ -686,9 +689,9 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
686
689
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
687
690
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
688
691
|
"stroke-linecap": "round"
|
|
689
|
-
}, null, 8,
|
|
690
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
691
|
-
(
|
|
692
|
+
}, null, 8, Ul),
|
|
693
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", Xl, [
|
|
694
|
+
(o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("line", {
|
|
692
695
|
x1: r.value.left + (s + 1) * k.value,
|
|
693
696
|
x2: r.value.left + (s + 1) * k.value,
|
|
694
697
|
y1: r.value.top,
|
|
@@ -696,11 +699,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
696
699
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
697
700
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
698
701
|
"stroke-linecap": "round"
|
|
699
|
-
}, null, 8,
|
|
702
|
+
}, null, 8, Gl))), 256))
|
|
700
703
|
])) : v("", !0)
|
|
701
704
|
])) : v("", !0),
|
|
702
|
-
|
|
703
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (
|
|
705
|
+
m("g", null, [
|
|
706
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (o(), n("text", {
|
|
704
707
|
key: 0,
|
|
705
708
|
ref_key: "yAxisLabel",
|
|
706
709
|
ref: de,
|
|
@@ -709,8 +712,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
709
712
|
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
710
713
|
"text-anchor": "middle",
|
|
711
714
|
style: { transition: "none" }
|
|
712
|
-
},
|
|
713
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (
|
|
715
|
+
}, b(e.value.style.chart.layout.grid.axis.yLabel), 9, Wl)) : v("", !0),
|
|
716
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
|
|
714
717
|
key: 1,
|
|
715
718
|
ref_key: "xAxisLabel",
|
|
716
719
|
ref: ve,
|
|
@@ -719,16 +722,16 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
719
722
|
y: r.value.absoluteHeight - 3,
|
|
720
723
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
721
724
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
722
|
-
},
|
|
725
|
+
}, b(e.value.style.chart.layout.grid.axis.xLabel), 9, Yl)) : v("", !0)
|
|
723
726
|
]),
|
|
724
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
727
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
|
|
725
728
|
key: 2,
|
|
726
729
|
ref_key: "scaleLabels",
|
|
727
730
|
ref: ce,
|
|
728
|
-
class:
|
|
731
|
+
class: O({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
729
732
|
}, [
|
|
730
|
-
(
|
|
731
|
-
l.value >= U.value.min && l.value <= U.value.max ? (
|
|
733
|
+
(o(!0), n(z, null, $(Mt.value, (l, s) => (o(), n("g", null, [
|
|
734
|
+
l.value >= U.value.min && l.value <= U.value.max ? (o(), n("line", {
|
|
732
735
|
key: 0,
|
|
733
736
|
x1: r.value.left,
|
|
734
737
|
x2: r.value.left - 5,
|
|
@@ -736,8 +739,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
736
739
|
y2: l.y,
|
|
737
740
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
738
741
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
739
|
-
}, null, 8,
|
|
740
|
-
l.value >= U.value.min && l.value <= U.value.max ? (
|
|
742
|
+
}, null, 8, jl)) : v("", !0),
|
|
743
|
+
l.value >= U.value.min && l.value <= U.value.max ? (o(), n("text", {
|
|
741
744
|
key: 1,
|
|
742
745
|
x: r.value.left,
|
|
743
746
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -745,7 +748,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
745
748
|
"text-anchor": "end",
|
|
746
749
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
747
750
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
748
|
-
},
|
|
751
|
+
}, b(i(cl)(l.value) ? i(Se)(
|
|
749
752
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
750
753
|
l.value,
|
|
751
754
|
i(re)({
|
|
@@ -755,136 +758,136 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
755
758
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
756
759
|
}),
|
|
757
760
|
{ datapoint: l, seriesIndex: s }
|
|
758
|
-
) : ""), 9,
|
|
761
|
+
) : ""), 9, ql)) : v("", !0)
|
|
759
762
|
]))), 256))
|
|
760
763
|
], 2)) : v("", !0),
|
|
761
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
764
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
|
|
762
765
|
key: 3,
|
|
763
766
|
ref_key: "timeLabelsEls",
|
|
764
767
|
ref: te,
|
|
765
|
-
class:
|
|
768
|
+
class: O({ "donut-opacity": !0 })
|
|
766
769
|
}, [
|
|
767
|
-
(
|
|
768
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
769
|
-
String(
|
|
770
|
-
`) ? (
|
|
770
|
+
(o(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
|
|
771
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === F.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[s] && _.value[s].text ? (o(), n("g", Jl, [
|
|
772
|
+
String(_.value[s].text).includes(`
|
|
773
|
+
`) ? (o(), n("text", {
|
|
771
774
|
key: 1,
|
|
772
775
|
class: "vue-data-ui-time-label",
|
|
773
776
|
"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",
|
|
774
777
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
775
778
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
776
779
|
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})`,
|
|
777
|
-
innerHTML: i(
|
|
778
|
-
content: String(
|
|
780
|
+
innerHTML: i(vl)({
|
|
781
|
+
content: String(_.value[s].text),
|
|
779
782
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
780
783
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
781
784
|
x: 0,
|
|
782
785
|
y: 0
|
|
783
786
|
})
|
|
784
|
-
}, null, 8,
|
|
787
|
+
}, null, 8, Ql)) : (o(), n("text", {
|
|
785
788
|
key: 0,
|
|
786
789
|
class: "vue-data-ui-time-label",
|
|
787
790
|
"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",
|
|
788
791
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
789
792
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
790
793
|
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})`
|
|
791
|
-
},
|
|
794
|
+
}, b(_.value[s].text || ""), 9, Kl))
|
|
792
795
|
])) : v("", !0)
|
|
793
796
|
]))), 256))
|
|
794
797
|
], 512)) : v("", !0),
|
|
795
|
-
(
|
|
796
|
-
e.value.style.chart.layout.line.show && s <
|
|
798
|
+
(o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", null, [
|
|
799
|
+
e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
|
|
797
800
|
key: 0,
|
|
798
|
-
class:
|
|
801
|
+
class: O({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
799
802
|
x1: l.x,
|
|
800
803
|
y1: l.y,
|
|
801
|
-
x2:
|
|
802
|
-
y2:
|
|
804
|
+
x2: C.value[s + 1].x,
|
|
805
|
+
y2: C.value[s + 1].y,
|
|
803
806
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
804
807
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
805
808
|
"stroke-linecap": "round",
|
|
806
809
|
"stroke-linejoin": "round"
|
|
807
|
-
}, null, 10,
|
|
808
|
-
l.subtotal !== null ? (
|
|
809
|
-
l.subtotal ? (
|
|
810
|
+
}, null, 10, Zl)) : v("", !0),
|
|
811
|
+
l.subtotal !== null ? (o(), n("g", ea, [
|
|
812
|
+
l.subtotal ? (o(), n("circle", {
|
|
810
813
|
key: 0,
|
|
811
814
|
cx: l.x,
|
|
812
815
|
cy: l.y,
|
|
813
816
|
r: l.activeRadius,
|
|
814
817
|
fill: e.value.style.chart.backgroundColor
|
|
815
|
-
}, null, 8,
|
|
818
|
+
}, null, 8, ta)) : v("", !0)
|
|
816
819
|
])) : v("", !0)
|
|
817
820
|
]))), 256)),
|
|
818
|
-
(
|
|
819
|
-
class:
|
|
821
|
+
(o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", {
|
|
822
|
+
class: O({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
820
823
|
}, [
|
|
821
|
-
l.subtotal ? (
|
|
822
|
-
g.value !== null && g.value === s ? (
|
|
823
|
-
(
|
|
824
|
-
|
|
824
|
+
l.subtotal ? (o(), n("g", la, [
|
|
825
|
+
g.value !== null && g.value === s ? (o(), n("g", aa, [
|
|
826
|
+
(o(!0), n(z, null, $(l.donutHover, (u) => (o(), n("g", null, [
|
|
827
|
+
rt(u) ? (o(), n("path", {
|
|
825
828
|
key: 0,
|
|
826
|
-
d: i(
|
|
827
|
-
stroke:
|
|
829
|
+
d: i(dl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
830
|
+
stroke: u.color,
|
|
828
831
|
"stroke-width": "1",
|
|
829
832
|
"stroke-linecap": "round",
|
|
830
833
|
"stroke-linejoin": "round",
|
|
831
834
|
fill: "none"
|
|
832
|
-
}, null, 8,
|
|
835
|
+
}, null, 8, oa)) : v("", !0)
|
|
833
836
|
]))), 256)),
|
|
834
|
-
(
|
|
835
|
-
|
|
837
|
+
(o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("g", null, [
|
|
838
|
+
rt(u) ? (o(), n("text", {
|
|
836
839
|
key: 0,
|
|
837
840
|
"data-cy-hover-label": "",
|
|
838
|
-
"text-anchor": i(
|
|
839
|
-
x: i(
|
|
840
|
-
y: i(
|
|
841
|
+
"text-anchor": i(bt)(u, !0, 0).anchor,
|
|
842
|
+
x: i(bt)(u, !0, 9).x,
|
|
843
|
+
y: i(hl)(u, 14, 10),
|
|
841
844
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
842
845
|
"font-size": 8,
|
|
843
846
|
"font-weight": "bold"
|
|
844
|
-
},
|
|
847
|
+
}, b(u.name) + ": " + b(Ht(u, l.donut)) + " (" + b(u.value === null ? "-" : et(u.value, u, y)) + ") ", 9, ua)) : v("", !0)
|
|
845
848
|
]))), 256)),
|
|
846
|
-
|
|
847
|
-
|
|
849
|
+
m("g", null, [
|
|
850
|
+
m("circle", {
|
|
848
851
|
cx: l.x,
|
|
849
852
|
cy: l.y,
|
|
850
853
|
r: l.hoverRadius,
|
|
851
854
|
fill: e.value.style.chart.backgroundColor
|
|
852
|
-
}, null, 8,
|
|
855
|
+
}, null, 8, sa)
|
|
853
856
|
])
|
|
854
857
|
])) : v("", !0)
|
|
855
858
|
])) : v("", !0)
|
|
856
859
|
], 2))), 256)),
|
|
857
|
-
(
|
|
858
|
-
class:
|
|
860
|
+
(o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", {
|
|
861
|
+
class: O({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
859
862
|
}, [
|
|
860
|
-
l.subtotal !== null ? (
|
|
861
|
-
l.subtotal === 0 ? (
|
|
863
|
+
l.subtotal !== null ? (o(), n("g", na, [
|
|
864
|
+
l.subtotal === 0 ? (o(), n("circle", {
|
|
862
865
|
key: 0,
|
|
863
866
|
cx: l.x,
|
|
864
867
|
cy: l.y,
|
|
865
868
|
r: 3,
|
|
866
869
|
fill: e.value.style.chart.color
|
|
867
|
-
}, null, 8,
|
|
868
|
-
(
|
|
869
|
-
d:
|
|
870
|
-
fill: `${
|
|
870
|
+
}, null, 8, ra)) : g.value !== null && g.value === s ? (o(), n("g", ia, [
|
|
871
|
+
(o(!0), n(z, null, $(l.donutHover, (u, y) => (o(), n("path", {
|
|
872
|
+
d: u.arcSlice,
|
|
873
|
+
fill: `${u.color}`,
|
|
871
874
|
"stroke-width": 1,
|
|
872
875
|
stroke: e.value.style.chart.backgroundColor
|
|
873
|
-
}, null, 8,
|
|
874
|
-
])) : (
|
|
875
|
-
(
|
|
876
|
-
d:
|
|
877
|
-
fill: `${
|
|
876
|
+
}, null, 8, ca))), 256))
|
|
877
|
+
])) : (o(), n("g", va, [
|
|
878
|
+
(o(!0), n(z, null, $(l.donut, (u, y) => (o(), n("path", {
|
|
879
|
+
d: u.arcSlice,
|
|
880
|
+
fill: `${u.color}`,
|
|
878
881
|
"stroke-width": 0.5,
|
|
879
882
|
stroke: e.value.style.chart.backgroundColor
|
|
880
|
-
}, null, 8,
|
|
883
|
+
}, null, 8, da))), 256))
|
|
881
884
|
]))
|
|
882
885
|
])) : v("", !0)
|
|
883
886
|
], 2))), 256)),
|
|
884
|
-
(
|
|
885
|
-
class:
|
|
887
|
+
(o(!0), n(z, null, $(C.value, (l, s) => (o(), n("g", {
|
|
888
|
+
class: O({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ie.value && s !== R.value.index })
|
|
886
889
|
}, [
|
|
887
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
890
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
|
|
888
891
|
key: 0,
|
|
889
892
|
"text-anchor": "middle",
|
|
890
893
|
x: l.x,
|
|
@@ -892,56 +895,56 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
892
895
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
893
896
|
"font-weight": "bold",
|
|
894
897
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
895
|
-
},
|
|
898
|
+
}, b(et(l.subtotal, l, s)), 9, ha)) : v("", !0)
|
|
896
899
|
], 2))), 256)),
|
|
897
|
-
(
|
|
900
|
+
(o(!0), n(z, null, $(C.value, (l, s) => (o(), n("rect", {
|
|
898
901
|
x: r.value.left + s * k.value,
|
|
899
902
|
y: r.value.top,
|
|
900
903
|
width: k.value,
|
|
901
904
|
height: r.value.height,
|
|
902
|
-
fill: [g.value, q.value].includes(l.index) ? `url(#hover_${
|
|
903
|
-
class:
|
|
905
|
+
fill: [g.value, q.value].includes(l.index) ? `url(#hover_${N.value})` : "transparent",
|
|
906
|
+
class: O({ "donut-hover": l.subtotal && [g.value, q.value].includes(l.index) }),
|
|
904
907
|
style: {
|
|
905
908
|
pointerEvents: "none"
|
|
906
909
|
}
|
|
907
|
-
}, null, 10,
|
|
908
|
-
(
|
|
910
|
+
}, null, 10, ya))), 256)),
|
|
911
|
+
(o(!0), n(z, null, $(C.value, (l, s) => (o(), n("rect", {
|
|
909
912
|
"data-cy-trap": "",
|
|
910
913
|
x: r.value.left + s * k.value,
|
|
911
914
|
y: r.value.top,
|
|
912
915
|
width: k.value,
|
|
913
916
|
height: r.value.height,
|
|
914
917
|
fill: "transparent",
|
|
915
|
-
onMouseenter: (
|
|
916
|
-
onMouseleave: (
|
|
917
|
-
onClick: (
|
|
918
|
-
class:
|
|
919
|
-
}, null, 42,
|
|
918
|
+
onMouseenter: (u) => Bt(l),
|
|
919
|
+
onMouseleave: (u) => tt(l),
|
|
920
|
+
onClick: (u) => lt(l, s),
|
|
921
|
+
class: O({ "donut-hover": g.value === l.index && l.subtotal })
|
|
922
|
+
}, null, 42, fa))), 256)),
|
|
920
923
|
S(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
921
|
-
], 14,
|
|
922
|
-
t.$slots.watermark ? (
|
|
923
|
-
S(t.$slots, "watermark", K(Q({ isPrinting: i(
|
|
924
|
+
], 14, Nl)),
|
|
925
|
+
t.$slots.watermark ? (o(), n("div", ga, [
|
|
926
|
+
S(t.$slots, "watermark", K(Q({ isPrinting: i(qe) || i(Je) })), void 0, !0)
|
|
924
927
|
])) : v("", !0),
|
|
925
|
-
|
|
928
|
+
m("div", {
|
|
926
929
|
ref_key: "chartSlicer",
|
|
927
|
-
ref:
|
|
930
|
+
ref: Re,
|
|
928
931
|
style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
929
932
|
"data-dom-to-png-ignore": ""
|
|
930
933
|
}, [
|
|
931
|
-
|
|
934
|
+
F.value > 1 && e.value.style.chart.zoom.show ? (o(), T(_l, {
|
|
932
935
|
ref_key: "slicerComponent",
|
|
933
|
-
ref:
|
|
936
|
+
ref: Ee,
|
|
934
937
|
key: `slicer_${$e.value}`,
|
|
935
938
|
background: e.value.style.chart.zoom.color,
|
|
936
939
|
borderColor: e.value.style.chart.backgroundColor,
|
|
937
940
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
938
941
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
939
|
-
labelLeft:
|
|
940
|
-
labelRight:
|
|
942
|
+
labelLeft: _.value[0] ? _.value[0].text : "",
|
|
943
|
+
labelRight: _.value.at(-1) ? _.value.at(-1).text : "",
|
|
941
944
|
textColor: e.value.style.chart.color,
|
|
942
945
|
inputColor: e.value.style.chart.zoom.color,
|
|
943
946
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
944
|
-
max:
|
|
947
|
+
max: F.value,
|
|
945
948
|
min: 0,
|
|
946
949
|
valueStart: h.value.start,
|
|
947
950
|
valueEnd: h.value.end,
|
|
@@ -950,61 +953,69 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
950
953
|
end: h.value.end,
|
|
951
954
|
"onUpdate:end": a[1] || (a[1] = (l) => h.value.end = l),
|
|
952
955
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
953
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 :
|
|
956
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : F.value,
|
|
954
957
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
955
958
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
956
|
-
onReset:
|
|
959
|
+
onReset: Ge
|
|
957
960
|
}, {
|
|
958
|
-
"reset-action":
|
|
961
|
+
"reset-action": L(({ reset: l }) => [
|
|
959
962
|
S(t.$slots, "reset-action", K(Q({ reset: l })), void 0, !0)
|
|
960
963
|
]),
|
|
961
964
|
_: 3
|
|
962
965
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
|
|
963
966
|
], 4),
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
e.value.style.chart.legend.show ? (u(), T(pl, {
|
|
969
|
-
key: `legend_${Te.value}`,
|
|
970
|
-
legendSet: lt.value,
|
|
971
|
-
config: Bt.value,
|
|
972
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) => pe(l.uid))
|
|
973
|
-
}, {
|
|
974
|
-
item: _(({ legend: l, index: s }) => [
|
|
975
|
-
p("div", {
|
|
976
|
-
onClick: (o) => pe(l.uid),
|
|
977
|
-
style: J(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
|
|
978
|
-
}, 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)(
|
|
979
|
-
e.value.style.chart.layout.dataLabels.formatter,
|
|
980
|
-
l.value,
|
|
981
|
-
i(re)({
|
|
982
|
-
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
983
|
-
v: l.value,
|
|
984
|
-
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
985
|
-
r: e.value.style.chart.legend.roundingValue
|
|
986
|
-
}),
|
|
987
|
-
{ datapoint: l, seriesIndex: s }
|
|
988
|
-
) : "") + " " + m(e.value.style.chart.legend.showPercentage ? w.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / at.value) ? "-" : i(re)({
|
|
989
|
-
v: l.value / at.value * 100,
|
|
990
|
-
s: "%",
|
|
991
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
992
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ya)
|
|
993
|
-
]),
|
|
994
|
-
_: 1
|
|
995
|
-
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
996
|
-
S(t.$slots, "legend", { legend: lt.value }, void 0, !0)
|
|
997
|
-
], 512),
|
|
998
|
-
t.$slots.source ? (u(), n("div", {
|
|
967
|
+
m("div", {
|
|
968
|
+
id: `legend-bottom-${N.value}`
|
|
969
|
+
}, null, 8, ma),
|
|
970
|
+
Oe.value ? (o(), T(tl, {
|
|
999
971
|
key: 5,
|
|
972
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
|
|
973
|
+
}, [
|
|
974
|
+
m("div", {
|
|
975
|
+
ref_key: "chartLegend",
|
|
976
|
+
ref: De
|
|
977
|
+
}, [
|
|
978
|
+
e.value.style.chart.legend.show ? (o(), T(wl, {
|
|
979
|
+
key: `legend_${Ne.value}`,
|
|
980
|
+
legendSet: at.value,
|
|
981
|
+
config: Ut.value,
|
|
982
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => pe(l.uid))
|
|
983
|
+
}, {
|
|
984
|
+
item: L(({ legend: l, index: s }) => [
|
|
985
|
+
m("div", {
|
|
986
|
+
onClick: (u) => pe(l.uid),
|
|
987
|
+
style: J(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
|
|
988
|
+
}, b(l.name) + b(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + b(e.value.style.chart.legend.showValue ? i(Se)(
|
|
989
|
+
e.value.style.chart.layout.dataLabels.formatter,
|
|
990
|
+
l.value,
|
|
991
|
+
i(re)({
|
|
992
|
+
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
993
|
+
v: l.value,
|
|
994
|
+
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
995
|
+
r: e.value.style.chart.legend.roundingValue
|
|
996
|
+
}),
|
|
997
|
+
{ datapoint: l, seriesIndex: s }
|
|
998
|
+
) : "") + " " + b(e.value.style.chart.legend.showPercentage ? w.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ot.value) ? "-" : i(re)({
|
|
999
|
+
v: l.value / ot.value * 100,
|
|
1000
|
+
s: "%",
|
|
1001
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
1002
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ba)
|
|
1003
|
+
]),
|
|
1004
|
+
_: 1
|
|
1005
|
+
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
1006
|
+
S(t.$slots, "legend", { legend: at.value }, void 0, !0)
|
|
1007
|
+
], 512)
|
|
1008
|
+
], 8, ["to"])) : v("", !0),
|
|
1009
|
+
t.$slots.source ? (o(), n("div", {
|
|
1010
|
+
key: 6,
|
|
1000
1011
|
ref_key: "source",
|
|
1001
|
-
ref:
|
|
1012
|
+
ref: Fe,
|
|
1002
1013
|
dir: "auto"
|
|
1003
1014
|
}, [
|
|
1004
1015
|
S(t.$slots, "source", {}, void 0, !0)
|
|
1005
1016
|
], 512)) : v("", !0),
|
|
1006
|
-
|
|
1007
|
-
key:
|
|
1017
|
+
He.value ? (o(), T(i(Lt), {
|
|
1018
|
+
key: 7,
|
|
1008
1019
|
hideDetails: "",
|
|
1009
1020
|
config: {
|
|
1010
1021
|
open: B.value.showTable,
|
|
@@ -1019,9 +1030,9 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1019
1030
|
}
|
|
1020
1031
|
}
|
|
1021
1032
|
}, {
|
|
1022
|
-
content:
|
|
1023
|
-
(
|
|
1024
|
-
key: `table_${
|
|
1033
|
+
content: L(() => [
|
|
1034
|
+
(o(), T(i(St), {
|
|
1035
|
+
key: `table_${Te.value}`,
|
|
1025
1036
|
colNames: X.value.colNames,
|
|
1026
1037
|
head: X.value.head,
|
|
1027
1038
|
body: X.value.body,
|
|
@@ -1029,48 +1040,48 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1029
1040
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1030
1041
|
onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
|
|
1031
1042
|
}, {
|
|
1032
|
-
th:
|
|
1033
|
-
|
|
1043
|
+
th: L(({ th: l }) => [
|
|
1044
|
+
ht(b(l.name ?? l), 1)
|
|
1034
1045
|
]),
|
|
1035
|
-
td:
|
|
1036
|
-
l.value === null ? (
|
|
1037
|
-
|
|
1046
|
+
td: L(({ td: l }) => [
|
|
1047
|
+
l.value === null ? (o(), n("span", xa, "-")) : (o(), n("b", pa, b(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + b(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + b(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1048
|
+
m("span", null, b(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1038
1049
|
]),
|
|
1039
1050
|
_: 1
|
|
1040
1051
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1041
1052
|
]),
|
|
1042
1053
|
_: 1
|
|
1043
1054
|
}, 8, ["config"])) : v("", !0),
|
|
1044
|
-
e.value.style.chart.dialog.show ? (
|
|
1045
|
-
key:
|
|
1055
|
+
e.value.style.chart.dialog.show ? (o(), T(i(At), {
|
|
1056
|
+
key: 8,
|
|
1046
1057
|
ref_key: "dialog",
|
|
1047
1058
|
ref: we,
|
|
1048
1059
|
onClose: a[4] || (a[4] = (l) => {
|
|
1049
|
-
|
|
1060
|
+
R.value = null, ie.value = !1, ee.value = null, g.value = null, q.value = null;
|
|
1050
1061
|
}),
|
|
1051
1062
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1052
1063
|
color: e.value.style.chart.dialog.color,
|
|
1053
1064
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1054
1065
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1055
1066
|
isFullscreen: G.value,
|
|
1056
|
-
fullscreenParent:
|
|
1067
|
+
fullscreenParent: D.value
|
|
1057
1068
|
}, {
|
|
1058
|
-
title:
|
|
1059
|
-
|
|
1069
|
+
title: L(() => [
|
|
1070
|
+
ht(b(_.value[Number(R.value.index)] ? _.value[Number(R.value.index)].text : ""), 1)
|
|
1060
1071
|
]),
|
|
1061
|
-
default:
|
|
1062
|
-
|
|
1072
|
+
default: L(() => [
|
|
1073
|
+
R.value ? (o(), T(i(Tt), {
|
|
1063
1074
|
key: 0,
|
|
1064
|
-
config:
|
|
1065
|
-
dataset:
|
|
1075
|
+
config: ct.value,
|
|
1076
|
+
dataset: it.value
|
|
1066
1077
|
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1067
1078
|
]),
|
|
1068
1079
|
_: 1
|
|
1069
1080
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1070
|
-
i(
|
|
1071
|
-
], 46,
|
|
1081
|
+
i(Ue) ? (o(), T(zl, { key: 9 })) : v("", !0)
|
|
1082
|
+
], 46, Il));
|
|
1072
1083
|
}
|
|
1073
|
-
},
|
|
1084
|
+
}, Ea = /* @__PURE__ */ $l(ka, [["__scopeId", "data-v-7a81cb76"]]);
|
|
1074
1085
|
export {
|
|
1075
|
-
|
|
1086
|
+
Ea as default
|
|
1076
1087
|
};
|