vue-data-ui 2.14.2 → 2.14.3-beta.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 +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as wt, o as
|
|
1
|
+
import { defineAsyncComponent as T, computed as m, ref as h, onMounted as kt, watch as Xe, createElementBlock as n, openBlock as a, unref as r, normalizeStyle as ee, normalizeClass as P, createBlock as F, createCommentVNode as c, renderSlot as z, createSlots as Ct, withCtx as w, normalizeProps as j, guardReactiveProps as Y, createVNode as _t, createElementVNode as L, Fragment as $, renderList as I, toDisplayString as x, createTextVNode as de, nextTick as q } from "vue";
|
|
2
|
+
import { u as wt, o as Lt, e as te, g as St, c as Ge, t as At, p as le, a as zt, C as We, b as $t, d as he, H as It, D as je, m as ye, X as Nt, s as J, E as Ft, i as fe, f as ae, I as Pt, j as Dt, k as Ot, n as Ye, q as Tt, r as Et, J as qe, K as Ht } from "./index-BzH6XFI9.js";
|
|
3
3
|
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
-
import { u as Je } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
4
|
+
import { u as Je } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as Mt } from "./usePrinter-C653sJjz.js";
|
|
6
6
|
import { u as Rt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
7
|
+
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import Bt from "./Legend-Cpx0xSce.js";
|
|
9
|
+
import { S as Xt } from "./Slicer-DjwiDPEk.js";
|
|
10
|
+
import Gt from "./Title-B71Dk29x.js";
|
|
11
|
+
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"], Jt = ["id"], Kt = ["stop-color"], Qt = ["stop-color"], Zt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["stop-color"], al = { key: 1 }, ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = { key: 0 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x", "y", "font-size", "fill", "font-weight"], cl = {
|
|
13
13
|
key: 3,
|
|
14
|
-
class: /* @__PURE__ */
|
|
15
|
-
},
|
|
14
|
+
class: /* @__PURE__ */ P({ "donut-opacity": !0 })
|
|
15
|
+
}, vl = { key: 0 }, dl = ["text-anchor", "font-size", "fill", "transform"], hl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], yl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fl = { key: 1 }, gl = ["cx", "cy", "r", "fill"], ml = { key: 0 }, bl = { key: 0 }, pl = ["d", "stroke"], xl = ["text-anchor", "x", "y", "fill"], kl = ["cx", "cy", "r", "fill"], Cl = { key: 0 }, _l = ["cx", "cy", "fill"], wl = { key: 1 }, Ll = ["d", "fill", "stroke"], Sl = { key: 2 }, Al = ["d", "fill", "stroke"], zl = ["x", "y", "font-size", "fill"], $l = ["x", "y", "width", "height", "fill"], Il = ["x", "y", "width", "height", "onMouseenter", "onClick"], Nl = {
|
|
16
16
|
key: 5,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, Fl = ["onClick"], Pl = { key: 0 }, Dl = { key: 1 }, Ol = {
|
|
19
19
|
key: 9,
|
|
20
20
|
ref: "source",
|
|
21
21
|
dir: "auto"
|
|
22
|
-
},
|
|
22
|
+
}, Tl = { key: 0 }, El = { key: 1 }, Hl = {
|
|
23
23
|
__name: "vue-ui-donut-evolution",
|
|
24
24
|
props: {
|
|
25
25
|
config: {
|
|
@@ -37,33 +37,33 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend"],
|
|
39
39
|
setup(Ke, { expose: Qe, emit: Ze }) {
|
|
40
|
-
const et =
|
|
40
|
+
const et = T(() => import("./vue-ui-accordion-Cjq4hqGi.js")), tt = T(() => import("./BaseDraggableDialog-BBiAE4t8.js")), lt = T(() => import("./DataTable-D8n1mvaG.js")), at = T(() => import("./PackageVersion-Bwu7jdjH.js")), ot = T(() => import("./PenAndPaper-BzQcbTCN.js")), ut = T(() => import("./vue-ui-skeleton-qa5B2MES.js")), nt = T(() => import("./UserOptions-fd2DeGS7.js")), st = T(() => import("./vue-ui-donut-D6VPixUt.js")), { vue_ui_donut_evolution: rt } = wt(), b = Ke, K = m(() => !!b.dataset && b.dataset.length), y = h({
|
|
41
41
|
start: 0,
|
|
42
42
|
end: Math.max(...b.dataset.map((t) => t.values.length))
|
|
43
43
|
});
|
|
44
|
-
function
|
|
44
|
+
function ge() {
|
|
45
45
|
me();
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const H = h(null);
|
|
48
48
|
async function me() {
|
|
49
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
49
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && H.value ? (e.value.style.chart.zoom.startIndex !== null && (await q(), await q(), H.value && H.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await q(), await q(), H.value && H.value.setEndValue(it(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
|
|
50
50
|
start: 0,
|
|
51
51
|
end: O.value
|
|
52
52
|
}, xe.value += 1);
|
|
53
53
|
}
|
|
54
54
|
function it(t) {
|
|
55
|
-
const
|
|
56
|
-
return t >
|
|
55
|
+
const o = O.value;
|
|
56
|
+
return t > o ? o : 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;
|
|
57
57
|
}
|
|
58
58
|
kt(() => {
|
|
59
59
|
be();
|
|
60
60
|
});
|
|
61
61
|
function be() {
|
|
62
|
-
|
|
62
|
+
Lt(b.dataset) ? te({
|
|
63
63
|
componentName: "VueUiDonutEvolution",
|
|
64
64
|
type: "dataset"
|
|
65
|
-
}) : b.dataset.length && b.dataset.forEach((t,
|
|
66
|
-
|
|
65
|
+
}) : b.dataset.length && b.dataset.forEach((t, o) => {
|
|
66
|
+
St({
|
|
67
67
|
datasetObject: t,
|
|
68
68
|
requiredAttributes: ["name", "values"]
|
|
69
69
|
}).forEach((l) => {
|
|
@@ -71,39 +71,39 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
71
71
|
componentName: "VueUiDonutEvolution",
|
|
72
72
|
type: "datasetSerieAttribute",
|
|
73
73
|
property: l,
|
|
74
|
-
index:
|
|
74
|
+
index: o
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}), me();
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
get: () =>
|
|
79
|
+
const V = h(Ge()), k = h([]), f = h(null), Q = h(null), oe = h(!1), E = h(null), ue = h(null), ct = h(null), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = h(0), we = Ze, e = m({
|
|
80
|
+
get: () => ze(),
|
|
81
81
|
set: (t) => t
|
|
82
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility:
|
|
83
|
-
function
|
|
82
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Le, keepUserOptionState: Se } = Ut({ config: e.value }), { svgRef: Ae } = Vt({ config: e.value.style.chart.title });
|
|
83
|
+
function ze() {
|
|
84
84
|
const t = Je({
|
|
85
85
|
userConfig: b.config,
|
|
86
86
|
defaultConfig: rt
|
|
87
87
|
});
|
|
88
|
-
let
|
|
89
|
-
return t.theme ?
|
|
88
|
+
let o = {};
|
|
89
|
+
return t.theme ? o = {
|
|
90
90
|
...Je({
|
|
91
|
-
userConfig:
|
|
91
|
+
userConfig: zt.vue_ui_donut_evolution[t.theme] || b.config,
|
|
92
92
|
defaultConfig: t
|
|
93
93
|
}),
|
|
94
|
-
customPalette:
|
|
95
|
-
} :
|
|
94
|
+
customPalette: At[t.theme] || le
|
|
95
|
+
} : o = t, b.config && We(b.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, b.config && We(b.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
|
|
96
96
|
}
|
|
97
97
|
Xe(() => b.config, (t) => {
|
|
98
|
-
e.value =
|
|
98
|
+
e.value = ze(), ne.value = !e.value.userOptions.showOnChartHover, be(), ke.value += 1, Ce.value += 1, _e.value += 1, X.value.showTable = e.value.table.show;
|
|
99
99
|
}, { deep: !0 }), Xe(() => b.dataset, (t) => {
|
|
100
|
-
|
|
100
|
+
ge();
|
|
101
101
|
}, { deep: !0 });
|
|
102
|
-
const { isPrinting:
|
|
103
|
-
elementId:
|
|
102
|
+
const { isPrinting: $e, isImaging: Ie, generatePdf: Ne, generateImage: Fe } = Mt({
|
|
103
|
+
elementId: V.value,
|
|
104
104
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
105
105
|
options: e.value.userOptions.print
|
|
106
|
-
}), vt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = m(() =>
|
|
106
|
+
}), vt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = m(() => $t(e.value.customPalette)), X = h({
|
|
107
107
|
showTable: e.value.table.show
|
|
108
108
|
}), i = m(() => ({
|
|
109
109
|
top: e.value.style.chart.layout.padding.top,
|
|
@@ -111,89 +111,89 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
111
111
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
112
112
|
left: e.value.style.chart.layout.padding.left
|
|
113
113
|
})), v = m(() => {
|
|
114
|
-
const t = e.value.style.chart.layout.height,
|
|
114
|
+
const t = e.value.style.chart.layout.height, o = e.value.style.chart.layout.width, l = t - i.value.top - i.value.bottom, s = o - i.value.left - i.value.right;
|
|
115
115
|
return {
|
|
116
116
|
absoluteHeight: t,
|
|
117
|
-
absoluteWidth:
|
|
117
|
+
absoluteWidth: o,
|
|
118
118
|
centerX: i.value.left + s / 2,
|
|
119
119
|
centerY: i.value.top + l / 2,
|
|
120
120
|
height: l,
|
|
121
121
|
width: s
|
|
122
122
|
};
|
|
123
|
-
}),
|
|
123
|
+
}), D = m(() => (b.dataset.forEach((t, o) => {
|
|
124
124
|
[null, void 0].includes(t.name) && te({
|
|
125
125
|
componentName: "VueUiDonutEvolution",
|
|
126
126
|
type: "datasetSerieAttribute",
|
|
127
127
|
property: "name",
|
|
128
|
-
index:
|
|
128
|
+
index: o
|
|
129
129
|
}), [null, void 0].includes(t.values) && te({
|
|
130
130
|
componentName: "VueUiDonutEvolution",
|
|
131
131
|
type: "datasetSerieAttribute",
|
|
132
132
|
property: "values",
|
|
133
|
-
index:
|
|
133
|
+
index: o
|
|
134
134
|
});
|
|
135
|
-
}), b.dataset.map((t,
|
|
135
|
+
}), b.dataset.map((t, o) => ({
|
|
136
136
|
...t,
|
|
137
137
|
values: It(t.values),
|
|
138
|
-
color: he(t.color) || dt.value[
|
|
138
|
+
color: he(t.color) || dt.value[o] || le[o] || le[o % le.length],
|
|
139
139
|
length: (t.values || []).length,
|
|
140
140
|
uid: Ge()
|
|
141
|
-
})))), G = m(() =>
|
|
141
|
+
})))), G = m(() => D.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
|
|
142
142
|
...t,
|
|
143
|
-
values: t.values.filter((
|
|
144
|
-
}))), O = m(() => Math.max(...G.value.map((t) => t.length))),
|
|
143
|
+
values: t.values.filter((o, l) => l >= y.value.start && l <= y.value.end)
|
|
144
|
+
}))), O = m(() => Math.max(...G.value.map((t) => t.length))), S = m(() => Rt({
|
|
145
145
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
146
146
|
maxDatapoints: O.value,
|
|
147
147
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
148
148
|
start: y.value.start,
|
|
149
149
|
end: y.value.end
|
|
150
|
-
})),
|
|
150
|
+
})), p = m(() => v.value.width / (y.value.end - y.value.start)), C = m(() => {
|
|
151
151
|
const t = [];
|
|
152
152
|
for (let u = 0; u < y.value.end - y.value.start; u += 1) {
|
|
153
|
-
const
|
|
153
|
+
const g = G.value.map((N) => N.values[u] ?? null), d = g.filter((N) => [void 0, null].includes(N)).length === g.length, _ = g.reduce((N, A) => N + A, 0), ve = g.map((N) => N / _), B = i.value.left + p.value * u + p.value / 2;
|
|
154
154
|
t.push({
|
|
155
155
|
index: u,
|
|
156
156
|
percentages: ve,
|
|
157
|
-
subtotal: d ||
|
|
158
|
-
values:
|
|
157
|
+
subtotal: d || _ < 0 ? null : _,
|
|
158
|
+
values: g,
|
|
159
159
|
x: B
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
return t.map((u,
|
|
164
|
-
const d =
|
|
162
|
+
const o = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
163
|
+
return t.map((u, g) => {
|
|
164
|
+
const d = p.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = f.value === u.index ? v.value.width / 16 : _, B = t.length > 4 ? d * 2 : d * 2 > p.value / 2 * 0.7 ? p.value / 2 * 0.7 : d * 2, N = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / je(o, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
165
165
|
return {
|
|
166
166
|
...u,
|
|
167
|
-
y:
|
|
168
|
-
radius:
|
|
167
|
+
y: N,
|
|
168
|
+
radius: _,
|
|
169
169
|
activeRadius: ve,
|
|
170
170
|
hoverRadius: B,
|
|
171
171
|
donut: ye({
|
|
172
|
-
series: G.value.map((
|
|
173
|
-
color:
|
|
174
|
-
name:
|
|
175
|
-
value:
|
|
172
|
+
series: G.value.map((A, Be) => ({
|
|
173
|
+
color: A.color,
|
|
174
|
+
name: A.name,
|
|
175
|
+
value: A.values[g] ?? 0
|
|
176
176
|
}))
|
|
177
|
-
}, u.x,
|
|
177
|
+
}, u.x, N, _, _, 1.99999, 2, 1, 360, 105.25, _ / 2),
|
|
178
178
|
donutHover: ye({
|
|
179
|
-
series: G.value.map((
|
|
180
|
-
color:
|
|
181
|
-
name:
|
|
182
|
-
value:
|
|
179
|
+
series: G.value.map((A, Be) => ({
|
|
180
|
+
color: A.color,
|
|
181
|
+
name: A.name,
|
|
182
|
+
value: A.values[g] ?? 0
|
|
183
183
|
}))
|
|
184
|
-
}, u.x,
|
|
184
|
+
}, u.x, N, B, B, 1.99999, 2, 1, 360, 105.25, B / 2),
|
|
185
185
|
donutFocus: ye({
|
|
186
|
-
series: G.value.map((
|
|
187
|
-
color:
|
|
188
|
-
name:
|
|
189
|
-
value:
|
|
186
|
+
series: G.value.map((A, Be) => ({
|
|
187
|
+
color: A.color,
|
|
188
|
+
name: A.name,
|
|
189
|
+
value: A.values[g] ?? 0
|
|
190
190
|
}))
|
|
191
191
|
}, v.value.centerX, v.value.centerY, v.value.height / 3.6, v.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, v.value.height / 6)
|
|
192
192
|
};
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function Pe(t, o, l) {
|
|
196
|
+
return fe(
|
|
197
197
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
198
198
|
t,
|
|
199
199
|
ae({
|
|
@@ -202,48 +202,48 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
202
202
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
203
203
|
r: e.value.style.chart.layout.dataLabels.rounding
|
|
204
204
|
}),
|
|
205
|
-
{ datapoint:
|
|
205
|
+
{ datapoint: o, index: l }
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
const se = m(() => ({
|
|
209
|
-
max: Math.max(...
|
|
209
|
+
max: Math.max(...C.value.map((t) => t.subtotal)),
|
|
210
210
|
min: 0
|
|
211
|
-
})),
|
|
212
|
-
const t =
|
|
211
|
+
})), M = m(() => {
|
|
212
|
+
const t = C.value.length === 1 ? se.value.max * 2 : se.value.max;
|
|
213
213
|
return je(se.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
214
214
|
});
|
|
215
215
|
function ht(t) {
|
|
216
|
-
return t /
|
|
216
|
+
return t / M.value.max;
|
|
217
217
|
}
|
|
218
|
-
const yt = m(() =>
|
|
218
|
+
const yt = m(() => M.value.ticks.map((t) => ({
|
|
219
219
|
y: v.value.absoluteHeight - i.value.bottom - v.value.height * ht(t),
|
|
220
220
|
value: t
|
|
221
221
|
})));
|
|
222
|
-
function
|
|
223
|
-
return isNaN(t.value / qe(
|
|
222
|
+
function ft(t, o) {
|
|
223
|
+
return isNaN(t.value / qe(o, "value")) ? 0 : (t.value / qe(o, "value") * 100).toFixed(0) + "%";
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
225
|
+
function De() {
|
|
226
|
+
f.value = null, Q.value = null;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
228
|
+
function gt(t) {
|
|
229
|
+
f.value = t.index, Q.value = t;
|
|
230
230
|
}
|
|
231
231
|
const W = h(null);
|
|
232
|
-
function Oe(t,
|
|
233
|
-
!t.subtotal || !e.value.style.chart.dialog.show || (Q.value = null,
|
|
232
|
+
function Oe(t, o) {
|
|
233
|
+
!t.subtotal || !e.value.style.chart.dialog.show || (Q.value = null, f.value = null, oe.value = !0, E.value = t, xt(t), [null, void 0].includes(o) || (W.value = o));
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const Te = m(() => D.value.map((t, o) => ({
|
|
236
236
|
name: t.name,
|
|
237
237
|
value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
|
|
238
238
|
shape: "circle",
|
|
239
239
|
uid: t.uid,
|
|
240
240
|
color: t.color
|
|
241
|
-
})).sort((t,
|
|
241
|
+
})).sort((t, o) => o.value - t.value).map((t) => ({
|
|
242
242
|
...t,
|
|
243
|
-
opacity:
|
|
243
|
+
opacity: k.value.includes(t.uid) ? 0.5 : 1,
|
|
244
244
|
segregate: () => re(t.uid),
|
|
245
|
-
isSegregated:
|
|
246
|
-
}))),
|
|
245
|
+
isSegregated: k.value.includes(t.uid)
|
|
246
|
+
}))), Ee = m(() => C.value.map((t) => t.subtotal).reduce((t, o) => t + o, 0)), mt = m(() => ({
|
|
247
247
|
cy: "donut-div-legend",
|
|
248
248
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
249
|
color: e.value.style.chart.legend.color,
|
|
@@ -252,26 +252,26 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
252
252
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
253
253
|
}));
|
|
254
254
|
function re(t) {
|
|
255
|
-
if (
|
|
256
|
-
|
|
255
|
+
if (k.value.includes(t))
|
|
256
|
+
k.value = k.value.filter((o) => o !== t), we("selectLegend", null);
|
|
257
257
|
else {
|
|
258
|
-
if (
|
|
259
|
-
|
|
258
|
+
if (k.value.length === D.value.length - 1) return;
|
|
259
|
+
k.value.push(t), we("selectLegend", D.value.find((o) => o.uid === t));
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
E.value && Oe(C.value.find((o, l) => l === W.value));
|
|
262
262
|
}
|
|
263
|
-
const
|
|
264
|
-
const t = [""].concat(
|
|
263
|
+
const R = m(() => {
|
|
264
|
+
const t = [""].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => ({
|
|
265
265
|
name: u.name,
|
|
266
266
|
color: u.color
|
|
267
267
|
}))).concat(["Σ"]);
|
|
268
|
-
let
|
|
268
|
+
let o = [];
|
|
269
269
|
for (let u = 0; u < O.value; u += 1) {
|
|
270
|
-
const
|
|
271
|
-
|
|
270
|
+
const g = D.value.filter((d) => !k.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, _) => d + _, 0);
|
|
271
|
+
o.push([S[u] ? S[u].text : "-"].concat(D.value.filter((d) => !k.value.includes(d.uid)).map((d) => ({
|
|
272
272
|
value: d.values[u] ?? 0,
|
|
273
|
-
percentage: d.values[u] ? d.values[u] /
|
|
274
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(
|
|
273
|
+
percentage: d.values[u] ? d.values[u] / g * 100 : 0
|
|
274
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
275
275
|
}
|
|
276
276
|
const l = {
|
|
277
277
|
th: {
|
|
@@ -287,39 +287,39 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
287
287
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
288
288
|
}, s = [
|
|
289
289
|
e.value.table.columnNames.period
|
|
290
|
-
].concat(
|
|
291
|
-
return { head: t, body:
|
|
290
|
+
].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
291
|
+
return { head: t, body: o, config: l, colNames: s };
|
|
292
292
|
});
|
|
293
293
|
function bt() {
|
|
294
|
-
return
|
|
294
|
+
return D.value;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function He(t = null) {
|
|
297
297
|
q(() => {
|
|
298
|
-
const
|
|
299
|
-
t ? t(
|
|
298
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...R.value.head.map((d) => d.name ?? d)], s = [...R.value.body.map((d) => d.map((_) => _.value ?? _))], u = o.concat([l]).concat(s), g = Tt(u);
|
|
299
|
+
t ? t(g) : Et({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
const U = h(!1);
|
|
303
303
|
function pt(t) {
|
|
304
304
|
U.value = t, pe.value += 1;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Ve() {
|
|
307
307
|
X.value.showTable = !X.value.showTable;
|
|
308
308
|
}
|
|
309
309
|
const Z = h(!1);
|
|
310
310
|
function ie() {
|
|
311
311
|
Z.value = !Z.value;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Me(t) {
|
|
314
314
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
315
315
|
}
|
|
316
|
-
const
|
|
316
|
+
const Re = h([]), Ue = h({}), ce = h(null);
|
|
317
317
|
function xt(t) {
|
|
318
|
-
|
|
319
|
-
name:
|
|
320
|
-
values: [
|
|
321
|
-
color:
|
|
322
|
-
})), Ue.value =
|
|
318
|
+
Re.value = t.donut.map((o) => ({
|
|
319
|
+
name: o.name,
|
|
320
|
+
values: [o.value],
|
|
321
|
+
color: o.color
|
|
322
|
+
})), Ue.value = Ht({
|
|
323
323
|
...e.value.style.chart.dialog.donutChart,
|
|
324
324
|
responsive: !0,
|
|
325
325
|
theme: e.value.theme
|
|
@@ -328,40 +328,40 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
328
328
|
return Qe({
|
|
329
329
|
getData: bt,
|
|
330
330
|
generatePdf: Ne,
|
|
331
|
-
generateCsv:
|
|
332
|
-
generateImage:
|
|
333
|
-
toggleTable:
|
|
331
|
+
generateCsv: He,
|
|
332
|
+
generateImage: Fe,
|
|
333
|
+
toggleTable: Ve,
|
|
334
334
|
toggleAnnotator: ie
|
|
335
|
-
}), (t,
|
|
335
|
+
}), (t, o) => (a(), n("div", {
|
|
336
336
|
ref_key: "donutEvolutionChart",
|
|
337
337
|
ref: ue,
|
|
338
|
-
class:
|
|
338
|
+
class: P(`vue-ui-donut-evolution ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
339
339
|
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
340
|
-
id:
|
|
341
|
-
onMouseenter:
|
|
342
|
-
onMouseleave:
|
|
340
|
+
id: V.value,
|
|
341
|
+
onMouseenter: o[5] || (o[5] = () => r(Le)(!0)),
|
|
342
|
+
onMouseleave: o[6] || (o[6] = () => r(Le)(!1))
|
|
343
343
|
}, [
|
|
344
|
-
e.value.userOptions.buttons.annotator ? (
|
|
344
|
+
e.value.userOptions.buttons.annotator ? (a(), F(r(ot), {
|
|
345
345
|
key: 0,
|
|
346
|
-
svgRef: r(
|
|
346
|
+
svgRef: r(Ae),
|
|
347
347
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
348
348
|
color: e.value.style.chart.color,
|
|
349
349
|
active: Z.value,
|
|
350
350
|
onClose: ie
|
|
351
351
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
352
|
-
vt.value ? (
|
|
352
|
+
vt.value ? (a(), n("div", {
|
|
353
353
|
key: 1,
|
|
354
354
|
ref_key: "noTitle",
|
|
355
355
|
ref: ct,
|
|
356
356
|
class: "vue-data-ui-no-title-space",
|
|
357
357
|
style: "height:36px; width: 100%;background:transparent"
|
|
358
358
|
}, null, 512)) : c("", !0),
|
|
359
|
-
e.value.style.chart.title.text ? (
|
|
359
|
+
e.value.style.chart.title.text ? (a(), n("div", {
|
|
360
360
|
key: 2,
|
|
361
361
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
362
|
-
onMouseleave:
|
|
362
|
+
onMouseleave: De
|
|
363
363
|
}, [
|
|
364
|
-
(
|
|
364
|
+
(a(), F(Gt, {
|
|
365
365
|
key: `title_${ke.value}`,
|
|
366
366
|
config: {
|
|
367
367
|
title: {
|
|
@@ -375,14 +375,14 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
375
375
|
}
|
|
376
376
|
}, null, 8, ["config"]))
|
|
377
377
|
], 32)) : c("", !0),
|
|
378
|
-
e.value.userOptions.show && K.value && (r(
|
|
378
|
+
e.value.userOptions.show && K.value && (r(Se) || r(ne)) ? (a(), F(r(nt), {
|
|
379
379
|
ref: "details",
|
|
380
380
|
key: `user_options_${pe.value}`,
|
|
381
381
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
382
382
|
color: e.value.style.chart.color,
|
|
383
|
-
isPrinting: r(
|
|
383
|
+
isPrinting: r($e),
|
|
384
384
|
isImaging: r(Ie),
|
|
385
|
-
uid:
|
|
385
|
+
uid: V.value,
|
|
386
386
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
387
387
|
hasImg: e.value.userOptions.buttons.img,
|
|
388
388
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -397,75 +397,75 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
397
397
|
callbacks: e.value.userOptions.callbacks,
|
|
398
398
|
onToggleFullscreen: pt,
|
|
399
399
|
onGeneratePdf: r(Ne),
|
|
400
|
-
onGenerateCsv:
|
|
401
|
-
onGenerateImage: r(
|
|
402
|
-
onToggleTable:
|
|
400
|
+
onGenerateCsv: He,
|
|
401
|
+
onGenerateImage: r(Fe),
|
|
402
|
+
onToggleTable: Ve,
|
|
403
403
|
onToggleAnnotator: ie,
|
|
404
404
|
style: ee({
|
|
405
|
-
visibility: r(
|
|
405
|
+
visibility: r(Se) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
406
406
|
})
|
|
407
407
|
}, Ct({ _: 2 }, [
|
|
408
408
|
t.$slots.menuIcon ? {
|
|
409
409
|
name: "menuIcon",
|
|
410
|
-
fn:
|
|
410
|
+
fn: w(({ isOpen: l, color: s }) => [
|
|
411
411
|
z(t.$slots, "menuIcon", j(Y({ isOpen: l, color: s })), void 0, !0)
|
|
412
412
|
]),
|
|
413
413
|
key: "0"
|
|
414
414
|
} : void 0,
|
|
415
415
|
t.$slots.optionPdf ? {
|
|
416
416
|
name: "optionPdf",
|
|
417
|
-
fn:
|
|
417
|
+
fn: w(() => [
|
|
418
418
|
z(t.$slots, "optionPdf", {}, void 0, !0)
|
|
419
419
|
]),
|
|
420
420
|
key: "1"
|
|
421
421
|
} : void 0,
|
|
422
422
|
t.$slots.optionCsv ? {
|
|
423
423
|
name: "optionCsv",
|
|
424
|
-
fn:
|
|
424
|
+
fn: w(() => [
|
|
425
425
|
z(t.$slots, "optionCsv", {}, void 0, !0)
|
|
426
426
|
]),
|
|
427
427
|
key: "2"
|
|
428
428
|
} : void 0,
|
|
429
429
|
t.$slots.optionImg ? {
|
|
430
430
|
name: "optionImg",
|
|
431
|
-
fn:
|
|
431
|
+
fn: w(() => [
|
|
432
432
|
z(t.$slots, "optionImg", {}, void 0, !0)
|
|
433
433
|
]),
|
|
434
434
|
key: "3"
|
|
435
435
|
} : void 0,
|
|
436
436
|
t.$slots.optionTable ? {
|
|
437
437
|
name: "optionTable",
|
|
438
|
-
fn:
|
|
438
|
+
fn: w(() => [
|
|
439
439
|
z(t.$slots, "optionTable", {}, void 0, !0)
|
|
440
440
|
]),
|
|
441
441
|
key: "4"
|
|
442
442
|
} : void 0,
|
|
443
443
|
t.$slots.optionFullscreen ? {
|
|
444
444
|
name: "optionFullscreen",
|
|
445
|
-
fn:
|
|
445
|
+
fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
446
446
|
z(t.$slots, "optionFullscreen", j(Y({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
447
447
|
]),
|
|
448
448
|
key: "5"
|
|
449
449
|
} : void 0,
|
|
450
450
|
t.$slots.optionAnnotator ? {
|
|
451
451
|
name: "optionAnnotator",
|
|
452
|
-
fn:
|
|
452
|
+
fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
453
453
|
z(t.$slots, "optionAnnotator", j(Y({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
454
454
|
]),
|
|
455
455
|
key: "6"
|
|
456
456
|
} : void 0
|
|
457
457
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
458
|
-
K.value ? (
|
|
458
|
+
K.value ? (a(), n("svg", {
|
|
459
459
|
key: 4,
|
|
460
460
|
ref_key: "svgRef",
|
|
461
|
-
ref:
|
|
461
|
+
ref: Ae,
|
|
462
462
|
xmlns: r(Nt),
|
|
463
|
-
class:
|
|
463
|
+
class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
464
464
|
viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
|
|
465
465
|
style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
466
466
|
}, [
|
|
467
467
|
_t(r(at)),
|
|
468
|
-
t.$slots["chart-background"] ? (
|
|
468
|
+
t.$slots["chart-background"] ? (a(), n("foreignObject", {
|
|
469
469
|
key: 0,
|
|
470
470
|
x: i.value.left,
|
|
471
471
|
y: i.value.top,
|
|
@@ -476,43 +476,43 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
476
476
|
}
|
|
477
477
|
}, [
|
|
478
478
|
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
479
|
-
], 8,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
id: `hover_${
|
|
479
|
+
], 8, qt)) : c("", !0),
|
|
480
|
+
L("defs", null, [
|
|
481
|
+
L("linearGradient", {
|
|
482
|
+
id: `hover_${V.value}`,
|
|
483
483
|
x1: "0%",
|
|
484
484
|
y1: "0%",
|
|
485
485
|
x2: "0%",
|
|
486
486
|
y2: "100%"
|
|
487
487
|
}, [
|
|
488
|
-
|
|
488
|
+
L("stop", {
|
|
489
489
|
offset: "0%",
|
|
490
490
|
"stop-color": r(J)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
491
|
-
}, null, 8,
|
|
492
|
-
|
|
491
|
+
}, null, 8, Kt),
|
|
492
|
+
L("stop", {
|
|
493
493
|
offset: "100%",
|
|
494
494
|
"stop-color": r(J)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
495
|
-
}, null, 8,
|
|
496
|
-
], 8,
|
|
497
|
-
|
|
498
|
-
id: `focus_${
|
|
495
|
+
}, null, 8, Qt)
|
|
496
|
+
], 8, Jt),
|
|
497
|
+
L("radialGradient", {
|
|
498
|
+
id: `focus_${V.value}`
|
|
499
499
|
}, [
|
|
500
|
-
|
|
500
|
+
L("stop", {
|
|
501
501
|
offset: "0%",
|
|
502
502
|
"stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
|
|
503
|
-
}, null, 8,
|
|
504
|
-
|
|
503
|
+
}, null, 8, el),
|
|
504
|
+
L("stop", {
|
|
505
505
|
offset: "77%",
|
|
506
506
|
"stop-color": r(J)("#FFFFFF", 30)
|
|
507
|
-
}, null, 8,
|
|
508
|
-
|
|
507
|
+
}, null, 8, tl),
|
|
508
|
+
L("stop", {
|
|
509
509
|
offset: "100%",
|
|
510
510
|
"stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
|
|
511
|
-
}, null, 8,
|
|
512
|
-
], 8,
|
|
511
|
+
}, null, 8, ll)
|
|
512
|
+
], 8, Zt)
|
|
513
513
|
]),
|
|
514
|
-
e.value.style.chart.layout.grid.show ? (
|
|
515
|
-
|
|
514
|
+
e.value.style.chart.layout.grid.show ? (a(), n("g", al, [
|
|
515
|
+
L("line", {
|
|
516
516
|
x1: i.value.left,
|
|
517
517
|
x2: i.value.left,
|
|
518
518
|
y1: i.value.top,
|
|
@@ -520,8 +520,8 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
520
520
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
521
521
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
522
522
|
"stroke-linecap": "round"
|
|
523
|
-
}, null, 8,
|
|
524
|
-
|
|
523
|
+
}, null, 8, ol),
|
|
524
|
+
L("line", {
|
|
525
525
|
x1: i.value.left,
|
|
526
526
|
x2: v.value.absoluteWidth - i.value.right,
|
|
527
527
|
y1: v.value.absoluteHeight - i.value.bottom,
|
|
@@ -529,25 +529,25 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
529
529
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
530
530
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
531
531
|
"stroke-linecap": "round"
|
|
532
|
-
}, null, 8,
|
|
533
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
534
|
-
(
|
|
535
|
-
x1: i.value.left + (s + 1) *
|
|
536
|
-
x2: i.value.left + (s + 1) *
|
|
532
|
+
}, null, 8, ul),
|
|
533
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (a(), n("g", nl, [
|
|
534
|
+
(a(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (a(), n("line", {
|
|
535
|
+
x1: i.value.left + (s + 1) * p.value,
|
|
536
|
+
x2: i.value.left + (s + 1) * p.value,
|
|
537
537
|
y1: i.value.top,
|
|
538
538
|
y2: v.value.absoluteHeight - i.value.bottom,
|
|
539
539
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
540
540
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
541
541
|
"stroke-linecap": "round"
|
|
542
|
-
}, null, 8,
|
|
542
|
+
}, null, 8, sl))), 256))
|
|
543
543
|
])) : c("", !0)
|
|
544
544
|
])) : c("", !0),
|
|
545
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
545
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), n("g", {
|
|
546
546
|
key: 2,
|
|
547
|
-
class:
|
|
547
|
+
class: P({ "donut-opacity": !0, "donut-behind": f.value !== null })
|
|
548
548
|
}, [
|
|
549
|
-
(
|
|
550
|
-
l.value >=
|
|
549
|
+
(a(!0), n($, null, I(yt.value, (l, s) => (a(), n("g", null, [
|
|
550
|
+
l.value >= M.value.min && l.value <= M.value.max ? (a(), n("line", {
|
|
551
551
|
key: 0,
|
|
552
552
|
x1: i.value.left,
|
|
553
553
|
x2: i.value.left - 5,
|
|
@@ -555,8 +555,8 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
555
555
|
y2: l.y,
|
|
556
556
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
557
557
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
558
|
-
}, null, 8,
|
|
559
|
-
l.value >=
|
|
558
|
+
}, null, 8, rl)) : c("", !0),
|
|
559
|
+
l.value >= M.value.min && l.value <= M.value.max ? (a(), n("text", {
|
|
560
560
|
key: 1,
|
|
561
561
|
x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
562
562
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -564,7 +564,7 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
564
564
|
"text-anchor": "end",
|
|
565
565
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
566
566
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
567
|
-
},
|
|
567
|
+
}, x(r(Ft)(l.value) ? r(fe)(
|
|
568
568
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
569
569
|
l.value,
|
|
570
570
|
r(ae)({
|
|
@@ -574,50 +574,66 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
574
574
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
575
575
|
}),
|
|
576
576
|
{ datapoint: l, seriesIndex: s }
|
|
577
|
-
) : ""), 9,
|
|
577
|
+
) : ""), 9, il)) : c("", !0)
|
|
578
578
|
]))), 256))
|
|
579
579
|
], 2)) : c("", !0),
|
|
580
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
581
|
-
(
|
|
582
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
580
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(), n("g", cl, [
|
|
581
|
+
(a(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (a(), n("g", null, [
|
|
582
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && S.value[s] && S.value[s].text ? (a(), n("g", vl, [
|
|
583
|
+
S.value[s].text.includes(`
|
|
584
|
+
`) ? (a(), n("text", {
|
|
585
|
+
key: 1,
|
|
586
|
+
"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",
|
|
587
|
+
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
588
|
+
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
589
|
+
transform: `translate(${i.value.left + p.value * s + p.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + v.value.absoluteHeight - i.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
590
|
+
innerHTML: r(Pt)({
|
|
591
|
+
content: S.value[s].text,
|
|
592
|
+
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
593
|
+
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
594
|
+
x: 0,
|
|
595
|
+
y: 0
|
|
596
|
+
})
|
|
597
|
+
}, null, 8, hl)) : (a(), n("text", {
|
|
598
|
+
key: 0,
|
|
599
|
+
"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",
|
|
600
|
+
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
601
|
+
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
602
|
+
transform: `translate(${i.value.left + p.value * s + p.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + v.value.absoluteHeight - i.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
603
|
+
}, x(S.value[s].text), 9, dl))
|
|
604
|
+
])) : c("", !0)
|
|
589
605
|
]))), 256))
|
|
590
606
|
])) : c("", !0),
|
|
591
|
-
(
|
|
592
|
-
e.value.style.chart.layout.line.show && s <
|
|
607
|
+
(a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", null, [
|
|
608
|
+
e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (a(), n("line", {
|
|
593
609
|
key: 0,
|
|
594
|
-
class:
|
|
610
|
+
class: P({ "donut-opacity": !0, "donut-behind": f.value !== null }),
|
|
595
611
|
x1: l.x,
|
|
596
612
|
y1: l.y,
|
|
597
|
-
x2:
|
|
598
|
-
y2:
|
|
613
|
+
x2: C.value[s + 1].x,
|
|
614
|
+
y2: C.value[s + 1].y,
|
|
599
615
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
600
616
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
601
617
|
"stroke-linecap": "round",
|
|
602
618
|
"stroke-linejoin": "round"
|
|
603
|
-
}, null, 10,
|
|
604
|
-
l.subtotal !== null ? (
|
|
605
|
-
l.subtotal ? (
|
|
619
|
+
}, null, 10, yl)) : c("", !0),
|
|
620
|
+
l.subtotal !== null ? (a(), n("g", fl, [
|
|
621
|
+
l.subtotal ? (a(), n("circle", {
|
|
606
622
|
key: 0,
|
|
607
623
|
cx: l.x,
|
|
608
624
|
cy: l.y,
|
|
609
625
|
r: l.activeRadius,
|
|
610
626
|
fill: e.value.style.chart.backgroundColor
|
|
611
|
-
}, null, 8,
|
|
627
|
+
}, null, 8, gl)) : c("", !0)
|
|
612
628
|
])) : c("", !0)
|
|
613
629
|
]))), 256)),
|
|
614
|
-
(
|
|
615
|
-
class:
|
|
630
|
+
(a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
|
|
631
|
+
class: P({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
|
|
616
632
|
}, [
|
|
617
|
-
l.subtotal ? (
|
|
618
|
-
|
|
619
|
-
(
|
|
620
|
-
|
|
633
|
+
l.subtotal ? (a(), n("g", ml, [
|
|
634
|
+
f.value !== null && f.value === s ? (a(), n("g", bl, [
|
|
635
|
+
(a(!0), n($, null, I(l.donutHover, (u) => (a(), n("g", null, [
|
|
636
|
+
Me(u) ? (a(), n("path", {
|
|
621
637
|
key: 0,
|
|
622
638
|
d: r(Dt)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
623
639
|
stroke: u.color,
|
|
@@ -625,100 +641,100 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
625
641
|
"stroke-linecap": "round",
|
|
626
642
|
"stroke-linejoin": "round",
|
|
627
643
|
fill: "none"
|
|
628
|
-
}, null, 8,
|
|
644
|
+
}, null, 8, pl)) : c("", !0)
|
|
629
645
|
]))), 256)),
|
|
630
|
-
(
|
|
631
|
-
|
|
646
|
+
(a(!0), n($, null, I(l.donutHover, (u, g) => (a(), n("g", null, [
|
|
647
|
+
Me(u) ? (a(), n("text", {
|
|
632
648
|
key: 0,
|
|
633
649
|
"data-cy-hover-label": "",
|
|
634
650
|
"text-anchor": r(Ye)(u, !0, 0).anchor,
|
|
635
651
|
x: r(Ye)(u, !0, 9).x,
|
|
636
|
-
y: r(
|
|
652
|
+
y: r(Ot)(u, 14, 10),
|
|
637
653
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
638
654
|
"font-size": 8,
|
|
639
655
|
"font-weight": "bold"
|
|
640
|
-
},
|
|
656
|
+
}, x(u.name) + ": " + x(ft(u, l.donut)) + " (" + x(u.value === null ? "-" : Pe(u.value, u, g)) + ") ", 9, xl)) : c("", !0)
|
|
641
657
|
]))), 256)),
|
|
642
|
-
|
|
643
|
-
|
|
658
|
+
L("g", null, [
|
|
659
|
+
L("circle", {
|
|
644
660
|
cx: l.x,
|
|
645
661
|
cy: l.y,
|
|
646
662
|
r: l.hoverRadius,
|
|
647
663
|
fill: e.value.style.chart.backgroundColor
|
|
648
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, kl)
|
|
649
665
|
])
|
|
650
666
|
])) : c("", !0)
|
|
651
667
|
])) : c("", !0)
|
|
652
668
|
], 2))), 256)),
|
|
653
|
-
(
|
|
654
|
-
class:
|
|
669
|
+
(a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
|
|
670
|
+
class: P({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
|
|
655
671
|
}, [
|
|
656
|
-
l.subtotal !== null ? (
|
|
657
|
-
l.subtotal === 0 ? (
|
|
672
|
+
l.subtotal !== null ? (a(), n("g", Cl, [
|
|
673
|
+
l.subtotal === 0 ? (a(), n("circle", {
|
|
658
674
|
key: 0,
|
|
659
675
|
cx: l.x,
|
|
660
676
|
cy: l.y,
|
|
661
677
|
r: 3,
|
|
662
678
|
fill: e.value.style.chart.color
|
|
663
|
-
}, null, 8,
|
|
664
|
-
(
|
|
679
|
+
}, null, 8, _l)) : f.value !== null && f.value === s ? (a(), n("g", wl, [
|
|
680
|
+
(a(!0), n($, null, I(l.donutHover, (u, g) => (a(), n("path", {
|
|
665
681
|
d: u.arcSlice,
|
|
666
682
|
fill: `${u.color}`,
|
|
667
683
|
"stroke-width": 1,
|
|
668
684
|
stroke: e.value.style.chart.backgroundColor
|
|
669
|
-
}, null, 8,
|
|
670
|
-
])) : (
|
|
671
|
-
(
|
|
685
|
+
}, null, 8, Ll))), 256))
|
|
686
|
+
])) : (a(), n("g", Sl, [
|
|
687
|
+
(a(!0), n($, null, I(l.donut, (u, g) => (a(), n("path", {
|
|
672
688
|
d: u.arcSlice,
|
|
673
689
|
fill: `${u.color}`,
|
|
674
690
|
"stroke-width": 0.5,
|
|
675
691
|
stroke: e.value.style.chart.backgroundColor
|
|
676
|
-
}, null, 8,
|
|
692
|
+
}, null, 8, Al))), 256))
|
|
677
693
|
]))
|
|
678
694
|
])) : c("", !0)
|
|
679
695
|
], 2))), 256)),
|
|
680
|
-
(
|
|
681
|
-
class:
|
|
696
|
+
(a(!0), n($, null, I(C.value, (l, s) => (a(), n("g", {
|
|
697
|
+
class: P({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null || oe.value && s !== E.value.index })
|
|
682
698
|
}, [
|
|
683
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
699
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), n("text", {
|
|
684
700
|
key: 0,
|
|
685
701
|
"text-anchor": "middle",
|
|
686
702
|
x: l.x,
|
|
687
|
-
y:
|
|
703
|
+
y: f.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
|
|
688
704
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
689
705
|
"font-weight": "bold",
|
|
690
706
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
691
|
-
},
|
|
707
|
+
}, x(Pe(l.subtotal, l, s)), 9, zl)) : c("", !0)
|
|
692
708
|
], 2))), 256)),
|
|
693
|
-
(
|
|
694
|
-
x: i.value.left + s *
|
|
709
|
+
(a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
|
|
710
|
+
x: i.value.left + s * p.value,
|
|
695
711
|
y: i.value.top,
|
|
696
|
-
width:
|
|
712
|
+
width: p.value,
|
|
697
713
|
height: v.value.height,
|
|
698
|
-
fill: [
|
|
699
|
-
class:
|
|
714
|
+
fill: [f.value, W.value].includes(l.index) ? `url(#hover_${V.value})` : "transparent",
|
|
715
|
+
class: P({ "donut-hover": l.subtotal && [f.value, W.value].includes(l.index) }),
|
|
700
716
|
style: {
|
|
701
717
|
pointerEvents: "none"
|
|
702
718
|
}
|
|
703
719
|
}, null, 10, $l))), 256)),
|
|
704
|
-
(
|
|
720
|
+
(a(!0), n($, null, I(C.value, (l, s) => (a(), n("rect", {
|
|
705
721
|
"data-cy-trap": "",
|
|
706
|
-
x: i.value.left + s *
|
|
722
|
+
x: i.value.left + s * p.value,
|
|
707
723
|
y: i.value.top,
|
|
708
|
-
width:
|
|
724
|
+
width: p.value,
|
|
709
725
|
height: v.value.height,
|
|
710
726
|
fill: "transparent",
|
|
711
|
-
onMouseenter: (u) =>
|
|
712
|
-
onMouseleave:
|
|
727
|
+
onMouseenter: (u) => gt(l),
|
|
728
|
+
onMouseleave: De,
|
|
713
729
|
onClick: (u) => Oe(l, s),
|
|
714
|
-
class:
|
|
715
|
-
}, null, 42,
|
|
730
|
+
class: P({ "donut-hover": f.value === l.index && l.subtotal })
|
|
731
|
+
}, null, 42, Il))), 256)),
|
|
716
732
|
z(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
717
|
-
], 14,
|
|
718
|
-
t.$slots.watermark ? (
|
|
719
|
-
z(t.$slots, "watermark", j(Y({ isPrinting: r(
|
|
733
|
+
], 14, Yt)) : c("", !0),
|
|
734
|
+
t.$slots.watermark ? (a(), n("div", Nl, [
|
|
735
|
+
z(t.$slots, "watermark", j(Y({ isPrinting: r($e) || r(Ie) })), void 0, !0)
|
|
720
736
|
])) : c("", !0),
|
|
721
|
-
K.value ? c("", !0) : (
|
|
737
|
+
K.value ? c("", !0) : (a(), F(r(ut), {
|
|
722
738
|
key: 6,
|
|
723
739
|
config: {
|
|
724
740
|
type: "donutEvolution",
|
|
@@ -735,16 +751,16 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
735
751
|
}
|
|
736
752
|
}
|
|
737
753
|
}, null, 8, ["config"])),
|
|
738
|
-
O.value > 1 && e.value.style.chart.zoom.show ? (
|
|
754
|
+
O.value > 1 && e.value.style.chart.zoom.show ? (a(), F(Xt, {
|
|
739
755
|
ref_key: "slicerComponent",
|
|
740
|
-
ref:
|
|
756
|
+
ref: H,
|
|
741
757
|
key: `slicer_${xe.value}`,
|
|
742
758
|
background: e.value.style.chart.zoom.color,
|
|
743
759
|
borderColor: e.value.style.chart.backgroundColor,
|
|
744
760
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
745
761
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
746
|
-
labelLeft:
|
|
747
|
-
labelRight:
|
|
762
|
+
labelLeft: S.value[0] ? S.value[0].text : "",
|
|
763
|
+
labelRight: S.value.at(-1) ? S.value.at(-1).text : "",
|
|
748
764
|
textColor: e.value.style.chart.color,
|
|
749
765
|
inputColor: e.value.style.chart.zoom.color,
|
|
750
766
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
@@ -753,32 +769,32 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
753
769
|
valueStart: y.value.start,
|
|
754
770
|
valueEnd: y.value.end,
|
|
755
771
|
start: y.value.start,
|
|
756
|
-
"onUpdate:start":
|
|
772
|
+
"onUpdate:start": o[0] || (o[0] = (l) => y.value.start = l),
|
|
757
773
|
end: y.value.end,
|
|
758
|
-
"onUpdate:end":
|
|
774
|
+
"onUpdate:end": o[1] || (o[1] = (l) => y.value.end = l),
|
|
759
775
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
760
776
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
|
|
761
777
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
762
778
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
763
|
-
onReset:
|
|
779
|
+
onReset: ge
|
|
764
780
|
}, {
|
|
765
|
-
"reset-action":
|
|
781
|
+
"reset-action": w(({ reset: l }) => [
|
|
766
782
|
z(t.$slots, "reset-action", j(Y({ reset: l })), void 0, !0)
|
|
767
783
|
]),
|
|
768
784
|
_: 3
|
|
769
785
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
|
|
770
|
-
e.value.style.chart.legend.show ? (
|
|
786
|
+
e.value.style.chart.legend.show ? (a(), F(Bt, {
|
|
771
787
|
key: `legend_${_e.value}`,
|
|
772
|
-
legendSet:
|
|
788
|
+
legendSet: Te.value,
|
|
773
789
|
config: mt.value,
|
|
774
|
-
onClickMarker:
|
|
790
|
+
onClickMarker: o[2] || (o[2] = ({ legend: l }) => re(l.uid))
|
|
775
791
|
}, {
|
|
776
|
-
item:
|
|
777
|
-
|
|
792
|
+
item: w(({ legend: l, index: s }) => [
|
|
793
|
+
L("div", {
|
|
778
794
|
onClick: (u) => re(l.uid),
|
|
779
|
-
style: ee(`opacity:${
|
|
795
|
+
style: ee(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
|
|
780
796
|
}, [
|
|
781
|
-
de(
|
|
797
|
+
de(x(l.name) + ": " + x(r(fe)(
|
|
782
798
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
783
799
|
l.value,
|
|
784
800
|
r(ae)({
|
|
@@ -789,20 +805,20 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
789
805
|
}),
|
|
790
806
|
{ datapoint: l, seriesIndex: s }
|
|
791
807
|
)) + " ", 1),
|
|
792
|
-
|
|
793
|
-
v: l.value /
|
|
808
|
+
k.value.includes(l.uid) ? (a(), n("span", Dl, " ( - % ) ")) : (a(), n("span", Pl, " (" + x(isNaN(l.value / Ee.value) ? "-" : r(ae)({
|
|
809
|
+
v: l.value / Ee.value * 100,
|
|
794
810
|
s: "%",
|
|
795
811
|
r: e.value.style.chart.legend.roundingPercentage
|
|
796
812
|
})) + ") ", 1))
|
|
797
|
-
], 12,
|
|
813
|
+
], 12, Fl)
|
|
798
814
|
]),
|
|
799
815
|
_: 1
|
|
800
816
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
801
|
-
z(t.$slots, "legend", { legend:
|
|
802
|
-
t.$slots.source ? (
|
|
817
|
+
z(t.$slots, "legend", { legend: Te.value }, void 0, !0),
|
|
818
|
+
t.$slots.source ? (a(), n("div", Ol, [
|
|
803
819
|
z(t.$slots, "source", {}, void 0, !0)
|
|
804
820
|
], 512)) : c("", !0),
|
|
805
|
-
K.value ? (
|
|
821
|
+
K.value ? (a(), F(r(et), {
|
|
806
822
|
key: 10,
|
|
807
823
|
hideDetails: "",
|
|
808
824
|
config: {
|
|
@@ -818,34 +834,34 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
818
834
|
}
|
|
819
835
|
}
|
|
820
836
|
}, {
|
|
821
|
-
content:
|
|
822
|
-
(
|
|
837
|
+
content: w(() => [
|
|
838
|
+
(a(), F(r(lt), {
|
|
823
839
|
key: `table_${Ce.value}`,
|
|
824
|
-
colNames:
|
|
825
|
-
head:
|
|
826
|
-
body:
|
|
827
|
-
config:
|
|
840
|
+
colNames: R.value.colNames,
|
|
841
|
+
head: R.value.head,
|
|
842
|
+
body: R.value.body,
|
|
843
|
+
config: R.value.config,
|
|
828
844
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
829
|
-
onClose:
|
|
845
|
+
onClose: o[3] || (o[3] = (l) => X.value.showTable = !1)
|
|
830
846
|
}, {
|
|
831
|
-
th:
|
|
832
|
-
de(
|
|
847
|
+
th: w(({ th: l }) => [
|
|
848
|
+
de(x(l.name ?? l), 1)
|
|
833
849
|
]),
|
|
834
|
-
td:
|
|
835
|
-
l.value === null ? (
|
|
836
|
-
|
|
850
|
+
td: w(({ td: l }) => [
|
|
851
|
+
l.value === null ? (a(), n("span", Tl, "-")) : (a(), n("b", El, x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + x(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
852
|
+
L("span", null, x(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
837
853
|
]),
|
|
838
854
|
_: 1
|
|
839
855
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
840
856
|
]),
|
|
841
857
|
_: 1
|
|
842
858
|
}, 8, ["config"])) : c("", !0),
|
|
843
|
-
e.value.style.chart.dialog.show ? (
|
|
859
|
+
e.value.style.chart.dialog.show ? (a(), F(r(tt), {
|
|
844
860
|
key: 11,
|
|
845
861
|
ref_key: "dialog",
|
|
846
862
|
ref: ce,
|
|
847
|
-
onClose:
|
|
848
|
-
|
|
863
|
+
onClose: o[4] || (o[4] = (l) => {
|
|
864
|
+
E.value = null, oe.value = !1, Q.value = null, f.value = null, W.value = null;
|
|
849
865
|
}),
|
|
850
866
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
851
867
|
color: e.value.style.chart.dialog.color,
|
|
@@ -854,21 +870,21 @@ const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"]
|
|
|
854
870
|
isFullscreen: U.value,
|
|
855
871
|
fullscreenParent: ue.value
|
|
856
872
|
}, {
|
|
857
|
-
title:
|
|
858
|
-
de(
|
|
873
|
+
title: w(() => [
|
|
874
|
+
de(x(S.value[Number(E.value.index)] ? S.value[Number(E.value.index)].text : ""), 1)
|
|
859
875
|
]),
|
|
860
|
-
default:
|
|
861
|
-
|
|
876
|
+
default: w(() => [
|
|
877
|
+
E.value ? (a(), F(r(st), {
|
|
862
878
|
key: 0,
|
|
863
879
|
config: Ue.value,
|
|
864
|
-
dataset:
|
|
880
|
+
dataset: Re.value
|
|
865
881
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
866
882
|
]),
|
|
867
883
|
_: 1
|
|
868
884
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
869
|
-
], 46,
|
|
885
|
+
], 46, jt));
|
|
870
886
|
}
|
|
871
|
-
},
|
|
887
|
+
}, Jl = /* @__PURE__ */ Wt(Hl, [["__scopeId", "data-v-e6b95a81"]]);
|
|
872
888
|
export {
|
|
873
|
-
|
|
889
|
+
Jl as default
|
|
874
890
|
};
|