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