vue-data-ui 2.17.5 → 2.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-V2QU9IrH.js → Arrow-B5XMxiDI.js} +1 -1
- package/dist/{BaseDraggableDialog-B9we9Njj.js → BaseDraggableDialog-B05teCuC.js} +2 -2
- package/dist/{BaseIcon-CIwIBC3F.js → BaseIcon-CbMrQkx9.js} +1 -1
- package/dist/{ColorPicker-DIh1Yy5j.js → ColorPicker-KP19H18w.js} +2 -2
- package/dist/{DataTable-CuWuzeRI.js → DataTable-CZ_AURpz.js} +2 -2
- package/dist/{Legend-Bqi7F2iA.js → Legend-BHey9BA_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CZZHY1OT.js → NonSvgPenAndPaper-C9niuQO5.js} +3 -3
- package/dist/{PackageVersion-BrZUdhZl.js → PackageVersion-BuyTFzA_.js} +1 -1
- package/dist/{PenAndPaper-DYoM74sL.js → PenAndPaper-C6SI350S.js} +3 -3
- package/dist/{Shape-J_57EZ2b.js → Shape-DeUTHS2H.js} +1 -1
- package/dist/{Slicer-BcmxCA-7.js → Slicer-fejiX9pa.js} +2 -2
- package/dist/{SparkTooltip-DTZ9lyG2.js → SparkTooltip-Bh6sdk1R.js} +1 -1
- package/dist/{Title-C6IPIA3g.js → Title-eafHHaEy.js} +1 -1
- package/dist/{Tooltip-Co7-BfJt.js → Tooltip-DqkPv4p5.js} +1 -1
- package/dist/{UserOptions-B_r-qsSM.js → UserOptions-Xu1YwU1i.js} +2 -2
- package/dist/{dom-to-png-BIakyQa8.js → dom-to-png-DttAWyyk.js} +1 -1
- package/dist/{img-01ajmdrG.js → img-B7FQLrD7.js} +1 -1
- package/dist/{index-1P8hgXEL.js → index-CNt4Vhp9.js} +332 -322
- package/dist/{pdf-DpU5K64g.js → pdf-MhTzuA1z.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +10 -0
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useNestedProp-DpGVxlm5.js → useNestedProp-BI2tFEgE.js} +1 -1
- package/dist/{usePrinter-DhVpUIjn.js → usePrinter-BGZOlDDN.js} +2 -2
- package/dist/{vue-data-ui-CY8hyLh3.js → vue-data-ui-ClvOBukx.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BylWATuf.js → vue-ui-3d-bar-DpD3ikuS.js} +6 -6
- package/dist/{vue-ui-accordion-24NeyZv-.js → vue-ui-accordion-BE-IMk5e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B83tZ39h.js → vue-ui-age-pyramid-iTZEunV8.js} +6 -6
- package/dist/{vue-ui-annotator-CzjOtDZF.js → vue-ui-annotator-BzvdPz95.js} +2 -2
- package/dist/{vue-ui-bullet-DF3LC9Bq.js → vue-ui-bullet-B-wUrrB3.js} +7 -7
- package/dist/{vue-ui-candlestick-CUz_PMvv.js → vue-ui-candlestick-CCWOBvyK.js} +7 -7
- package/dist/{vue-ui-carousel-table-l3XWJkDn.js → vue-ui-carousel-table-Bui8kmRH.js} +4 -4
- package/dist/{vue-ui-chestnut-Up5iZggG.js → vue-ui-chestnut-CWng5XOC.js} +5 -5
- package/dist/{vue-ui-chord-Ci4m__az.js → vue-ui-chord-CcWakA3D.js} +8 -8
- package/dist/{vue-ui-circle-pack-Bt-mm22Z.js → vue-ui-circle-pack-BCaGnC6O.js} +6 -6
- package/dist/{vue-ui-cursor-DrhAdLl4.js → vue-ui-cursor-CehblpQK.js} +2 -2
- package/dist/{vue-ui-dashboard-BTHMYSV_.js → vue-ui-dashboard-0GLoZUA2.js} +62 -62
- package/dist/{vue-ui-digits-CuQv2y9K.js → vue-ui-digits-DF1vHQ1D.js} +2 -2
- package/dist/vue-ui-donut-DRBk_HYh.js +1380 -0
- package/dist/{vue-ui-donut-evolution-K9ak_ipi.js → vue-ui-donut-evolution-CLHxXCuD.js} +8 -8
- package/dist/{vue-ui-dumbbell-BgkwijRo.js → vue-ui-dumbbell-BRmCusY0.js} +7 -7
- package/dist/{vue-ui-flow-DERu1AKJ.js → vue-ui-flow-D7WGLuvV.js} +7 -7
- package/dist/{vue-ui-funnel-Cg9WOVIy.js → vue-ui-funnel-DjNGxVxu.js} +6 -6
- package/dist/{vue-ui-galaxy-EQjQWQnQ.js → vue-ui-galaxy-U8ejfLWO.js} +5 -5
- package/dist/{vue-ui-gauge-DK6IYcgh.js → vue-ui-gauge-DizxW2Xu.js} +6 -6
- package/dist/{vue-ui-gizmo-CTP17DpI.js → vue-ui-gizmo-BjFeSL7X.js} +3 -3
- package/dist/{vue-ui-heatmap-_2cCJYLT.js → vue-ui-heatmap-Ccv1uJHg.js} +7 -7
- package/dist/{vue-ui-history-plot-DLDyT58X.js → vue-ui-history-plot-DZr3ZdGS.js} +7 -7
- package/dist/{vue-ui-kpi-DjPn2a-U.js → vue-ui-kpi-BAbus_Tt.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU6qKMZd.js → vue-ui-mini-loader-jDIz8RyR.js} +2 -2
- package/dist/{vue-ui-molecule-Gh7AgRWc.js → vue-ui-molecule-DXv62-LW.js} +5 -5
- package/dist/{vue-ui-mood-radar-DIwX-_gl.js → vue-ui-mood-radar-B9oxs6M6.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DBTmpY4B.js → vue-ui-nested-donuts-DdQ09CTY.js} +7 -7
- package/dist/{vue-ui-onion-DwGWtFDH.js → vue-ui-onion-DOptmUuE.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BgeqRRyn.js → vue-ui-parallel-coordinate-plot-CE05YF2g.js} +8 -8
- package/dist/{vue-ui-quadrant-CBzkH3qE.js → vue-ui-quadrant-DYz8y-m1.js} +8 -8
- package/dist/{vue-ui-quick-chart-CDDj9TxF.js → vue-ui-quick-chart-plvfC_DT.js} +6 -6
- package/dist/{vue-ui-radar-D1UXMxkA.js → vue-ui-radar-CJe7r_Ks.js} +7 -7
- package/dist/{vue-ui-rating-aNFQ5sd7.js → vue-ui-rating-D1jE5Ak_.js} +2 -2
- package/dist/{vue-ui-relation-circle-DLALezkH.js → vue-ui-relation-circle-B6X49uAY.js} +6 -6
- package/dist/{vue-ui-ridgeline-D1ZwVo6V.js → vue-ui-ridgeline-C7EZKTo6.js} +8 -8
- package/dist/{vue-ui-rings-CE31ZZXT.js → vue-ui-rings-C3RKJnZC.js} +8 -8
- package/dist/{vue-ui-scatter-DyyuU-A3.js → vue-ui-scatter-FCuwnAoV.js} +8 -8
- package/dist/{vue-ui-skeleton-DGfviPaE.js → vue-ui-skeleton-Bpd3uMFT.js} +3 -3
- package/dist/{vue-ui-smiley-C6TsY3Hl.js → vue-ui-smiley-DJAXb8r7.js} +2 -2
- package/dist/{vue-ui-spark-trend-B400VATP.js → vue-ui-spark-trend-aQNa2scr.js} +3 -3
- package/dist/{vue-ui-sparkbar-C0OnOOJ5.js → vue-ui-sparkbar-DG1xT-2y.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BkNqshFM.js → vue-ui-sparkgauge-B_P9WUij.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3LwQSVu.js → vue-ui-sparkhistogram-CFeb1YdS.js} +4 -4
- package/dist/{vue-ui-sparkline-CLfr_Who.js → vue-ui-sparkline-Du-laBid.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-zycRUKtt.js → vue-ui-sparkstackbar-SZ5eU6gZ.js} +3 -3
- package/dist/{vue-ui-stackbar-Bc-qdemV.js → vue-ui-stackbar-BXFKobNU.js} +9 -9
- package/dist/{vue-ui-strip-plot-KZtAVPn8.js → vue-ui-strip-plot-BDo6l_l6.js} +7 -7
- package/dist/{vue-ui-table-4Oxtep8q.js → vue-ui-table-BpoXkgRA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Cx-gl_Jh.js → vue-ui-table-heatmap-BJFJ2K1F.js} +5 -5
- package/dist/{vue-ui-table-sparkline-u8mbihVP.js → vue-ui-table-sparkline-Dxorwils.js} +4 -4
- package/dist/{vue-ui-thermometer-CIdkm0Cz.js → vue-ui-thermometer-BJF-fB5p.js} +6 -6
- package/dist/{vue-ui-timer-BbVyIS3I.js → vue-ui-timer-DWmZKJij.js} +5 -5
- package/dist/{vue-ui-tiremarks-CAX9tTfm.js → vue-ui-tiremarks-BwL7Z4fj.js} +6 -6
- package/dist/{vue-ui-treemap-CjzvHTfM.js → vue-ui-treemap-DNgGFetB.js} +8 -8
- package/dist/{vue-ui-vertical-bar-C81RHFCQ.js → vue-ui-vertical-bar-CNr5Jrwd.js} +279 -273
- package/dist/{vue-ui-waffle-DOtUYFsS.js → vue-ui-waffle-BeAxPtiv.js} +8 -8
- package/dist/{vue-ui-wheel-cn3Z8XVN.js → vue-ui-wheel-BZ0pa_6W.js} +6 -6
- package/dist/{vue-ui-word-cloud-COUvIVpX.js → vue-ui-word-cloud-DIjaOMPZ.js} +6 -6
- package/dist/{vue-ui-world-NdI2WafX.js → vue-ui-world-CvRfePfH.js} +6 -6
- package/dist/{vue-ui-xy-D9eKQQ5Z.js → vue-ui-xy-5gnkPQs4.js} +17 -17
- package/dist/{vue-ui-xy-canvas-IunRC-hl.js → vue-ui-xy-canvas-BHKnaGNJ.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-donut-C1leqtTL.js +0 -1338
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { useCssVars as Ct, defineAsyncComponent as W, useSlots as Tt, computed as _, ref as d, watch as We, shallowRef as Ge, onMounted as je, onBeforeUnmount as Lt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as R, createBlock as D, createCommentVNode as y, renderSlot as k, createVNode as Q, createSlots as pe, withCtx as $, normalizeProps as G, guardReactiveProps as j, createElementVNode as n, toDisplayString as h, Fragment as q, renderList as Y, mergeProps as Nt, withKeys as Pt, createTextVNode as St } from "vue";
|
|
2
|
+
import { u as Vt, c as It, t as Ot, p as E, a as Ft, C as ye, b as Mt, o as qe, e as Z, v as N, d as fe, i as ne, f as U, X as zt, s as ge, w as At, q as Bt, r as Rt, x as Dt, y as Et } from "./index-CNt4Vhp9.js";
|
|
3
|
+
import { t as Ut, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ye } from "./useNestedProp-BI2tFEgE.js";
|
|
5
|
+
import { u as Ht } from "./usePrinter-BGZOlDDN.js";
|
|
6
|
+
import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import jt from "./vue-ui-accordion-BE-IMk5e.js";
|
|
9
|
+
import Ke from "./Legend-BHey9BA_.js";
|
|
10
|
+
import qt from "./Title-eafHHaEy.js";
|
|
11
|
+
import { _ as Je } from "./Shape-DeUTHS2H.js";
|
|
12
|
+
import Yt from "./img-B7FQLrD7.js";
|
|
13
|
+
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Jt = ["id"], Qt = ["onClick"], Zt = ["xmlns", "viewBox"], ea = ["width", "height"], ta = ["id"], aa = ["stop-color"], la = ["stop-color"], oa = { key: 1 }, na = ["x", "y", "width", "height", "fill", "rx"], ua = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ra = ["x2", "y1", "y2", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], va = ["x", "y", "font-size", "fill", "font-weight"], ca = ["x", "y", "font-size", "fill", "font-weight"], ha = ["x", "y", "font-size", "fill", "font-weight"], pa = ["y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], ya = {
|
|
15
15
|
key: 6,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, fa = ["onClick"], ga = { style: "width:100%;padding-top: 36px;position:relative" }, ba = { class: "vue-ui-data-table" }, ma = { key: 0 }, ka = { style: { width: "100%" } }, _a = ["data-cell"], $a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wa = ["data-cell"], xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ca = ["data-cell"], Ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = ["data-cell"], Na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pa = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Va = ["data-cell"], Ia = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Oa = ["data-cell"], Fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ma = {
|
|
18
18
|
__name: "vue-ui-vertical-bar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,78 +31,79 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
setup(Qe, { expose: Ze, emit: et }) {
|
|
35
|
+
Ct((a) => ({
|
|
36
|
+
c77ebc28: a.tdo
|
|
37
37
|
}));
|
|
38
|
-
const
|
|
39
|
-
get: () =>
|
|
38
|
+
const tt = W(() => import("./BaseIcon-CbMrQkx9.js")), at = W(() => import("./PackageVersion-BuyTFzA_.js")), lt = W(() => import("./PenAndPaper-C6SI350S.js")), ot = W(() => import("./vue-ui-skeleton-Bpd3uMFT.js")), nt = W(() => import("./Tooltip-DqkPv4p5.js")), ut = W(() => import("./UserOptions-Xu1YwU1i.js")), { vue_ui_vertical_bar: st } = Vt(), rt = Tt(), f = Qe, ee = _(() => !!f.dataset && f.dataset.length), T = d(It()), it = d(null), ue = d(!1), se = d(""), te = d(0), dt = d(null), be = d(0), I = d(null), me = d(null), re = d(null), ke = d(null), _e = d(null), $e = d(0), ie = d(0), vt = et, e = _({
|
|
39
|
+
get: () => Te(),
|
|
40
40
|
set: (a) => a
|
|
41
|
-
}), { userOptionsVisible: de, setUserOptionsVisibility:
|
|
42
|
-
function
|
|
43
|
-
const a =
|
|
44
|
-
userConfig:
|
|
45
|
-
defaultConfig:
|
|
41
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: we, keepUserOptionState: xe } = Wt({ config: e.value }), { svgRef: Ce } = Gt({ config: e.value.style.chart.title });
|
|
42
|
+
function Te() {
|
|
43
|
+
const a = Ye({
|
|
44
|
+
userConfig: f.config,
|
|
45
|
+
defaultConfig: st
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
let l = {};
|
|
48
|
+
return a.theme ? l = {
|
|
49
|
+
...Ye({
|
|
50
|
+
userConfig: Ft.vue_ui_vertical_bar[a.theme] || f.config,
|
|
50
51
|
defaultConfig: a
|
|
51
52
|
}),
|
|
52
|
-
customPalette:
|
|
53
|
-
} : a;
|
|
53
|
+
customPalette: Ot[a.theme] || E
|
|
54
|
+
} : l = a, f.config && ye(f.config, "events.datapointEnter") ? l.events.datapointEnter = f.config.events.datapointEnter : l.events.datapointEnter = null, f.config && ye(f.config, "events.datapointLeave") ? l.events.datapointLeave = f.config.events.datapointLeave : l.events.datapointLeave = null, f.config && ye(f.config, "events.datapointClick") ? l.events.datapointClick = f.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
e.value =
|
|
57
|
-
}, { deep: !0 }),
|
|
58
|
-
const { isPrinting:
|
|
59
|
-
elementId: `vue-ui-vertical-bar_${
|
|
56
|
+
We(() => f.config, (a) => {
|
|
57
|
+
e.value = Te(), de.value = !e.value.userOptions.showOnChartHover, Fe(), $e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, m.value = e.value.style.chart.layout.bars.gap, w.value.showTable = e.value.table.show, w.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
58
|
+
}, { deep: !0 }), We(() => f.dataset, ae, { deep: !0 });
|
|
59
|
+
const { isPrinting: Le, isImaging: Ne, generatePdf: Pe, generateImage: Se } = Ht({
|
|
60
|
+
elementId: `vue-ui-vertical-bar_${T.value}`,
|
|
60
61
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
61
62
|
options: e.value.userOptions.print
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
}), ct = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ve = _(() => Mt(e.value.customPalette)), Ie = d(null), Oe = d(!1), ht = _(() => e.value.table.responsiveBreakpoint), O = Ge(null), X = Ge(null);
|
|
64
|
+
je(() => {
|
|
65
|
+
Fe();
|
|
65
66
|
});
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
67
|
+
function Fe() {
|
|
68
|
+
if (qe(f.dataset) && Z({
|
|
68
69
|
componentName: "VueUiVerticalBar",
|
|
69
70
|
type: "dataset"
|
|
70
|
-
}), te.value =
|
|
71
|
-
const a =
|
|
72
|
-
const { width: l, height: t } =
|
|
71
|
+
}), te.value = f.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), pt(), e.value.responsive) {
|
|
72
|
+
const a = Ut(() => {
|
|
73
|
+
const { width: l, height: t } = Xt({
|
|
73
74
|
chart: I.value,
|
|
74
|
-
title: e.value.style.chart.title.text ?
|
|
75
|
+
title: e.value.style.chart.title.text ? me.value : null,
|
|
75
76
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
76
|
-
source:
|
|
77
|
-
noTitle:
|
|
77
|
+
source: ke.value,
|
|
78
|
+
noTitle: _e.value
|
|
78
79
|
});
|
|
79
80
|
requestAnimationFrame(() => {
|
|
80
|
-
|
|
81
|
+
Ae.value = l, v.value = t / te.value - m.value * 2;
|
|
81
82
|
});
|
|
82
83
|
});
|
|
83
84
|
O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect()), O.value = new ResizeObserver(a), X.value = I.value.parentNode, O.value.observe(X.value);
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
+
Lt(() => {
|
|
87
88
|
O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect());
|
|
88
89
|
});
|
|
89
|
-
function
|
|
90
|
+
function pt() {
|
|
90
91
|
new ResizeObserver((l) => {
|
|
91
92
|
l.forEach((t) => {
|
|
92
|
-
|
|
93
|
+
Oe.value = t.contentRect.width < ht.value;
|
|
93
94
|
});
|
|
94
|
-
}).observe(
|
|
95
|
+
}).observe(Ie.value);
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const w = d({
|
|
97
98
|
showTable: e.value.table.show,
|
|
98
99
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
99
100
|
showTooltip: e.value.style.chart.tooltip.show
|
|
100
|
-
}),
|
|
101
|
+
}), Me = _(() => w.value.sortDesc), M = _(() => (f.dataset.forEach((a, l) => {
|
|
101
102
|
!a.value && !a.children && Z({
|
|
102
103
|
componentName: "VueUiVerticalBar",
|
|
103
104
|
type: "datasetAttributeEmpty",
|
|
104
105
|
property: `value (index ${l})`
|
|
105
|
-
}), a.children && (
|
|
106
|
+
}), a.children && (qe(a.children) ? Z({
|
|
106
107
|
componentName: "VueUiVerticalBar",
|
|
107
108
|
type: "datasetAttributeEmpty",
|
|
108
109
|
property: `children (index ${l})`
|
|
@@ -115,22 +116,22 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
115
116
|
index: o
|
|
116
117
|
});
|
|
117
118
|
}));
|
|
118
|
-
}),
|
|
119
|
-
const t = `vertical_parent_${l}_${
|
|
119
|
+
}), f.dataset.map((a, l) => {
|
|
120
|
+
const t = `vertical_parent_${l}_${T.value}`, o = a.children && a.children.length > 0, b = N(a.value ? a.value : o ? a.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), x = b >= 0 ? 1 : -1;
|
|
120
121
|
return {
|
|
121
122
|
...a,
|
|
122
123
|
id: t,
|
|
123
124
|
absoluteIndex: l,
|
|
124
125
|
shape: "square",
|
|
125
|
-
opacity:
|
|
126
|
+
opacity: P.value.includes(t) ? 0.5 : 1,
|
|
126
127
|
value: Math.abs(b),
|
|
127
|
-
sign:
|
|
128
|
+
sign: x,
|
|
128
129
|
hasChildren: o,
|
|
129
130
|
isChild: !1,
|
|
130
131
|
segregate: () => K(t),
|
|
131
|
-
isSegregated:
|
|
132
|
-
color:
|
|
133
|
-
children: !a.children || !a.children.length ? [] : a.children.toSorted(le.value ? () => 0 : (p, V) =>
|
|
132
|
+
isSegregated: P.value.includes(t),
|
|
133
|
+
color: fe(a.color) || Ve.value[l] || E[l] || E[l % E.length],
|
|
134
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted(le.value ? () => 0 : (p, V) => Me.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
|
|
134
135
|
...p,
|
|
135
136
|
value: N(Math.abs(p.value)),
|
|
136
137
|
absoluteIndex: l,
|
|
@@ -139,33 +140,33 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
139
140
|
parentId: t,
|
|
140
141
|
parentName: a.name,
|
|
141
142
|
parentValue: b,
|
|
142
|
-
parentSign:
|
|
143
|
-
id: `vertical_child_${l}_${V}_${
|
|
143
|
+
parentSign: x,
|
|
144
|
+
id: `vertical_child_${l}_${V}_${T.value}`,
|
|
144
145
|
childIndex: V,
|
|
145
|
-
color:
|
|
146
|
+
color: fe(p.color) || fe(a.color) || Ve.value[l] || E[l] || E[l % E.length]
|
|
146
147
|
})).map((p, V) => ({
|
|
147
148
|
...p,
|
|
148
149
|
isFirstChild: V === 0,
|
|
149
150
|
isLastChild: V === a.children.length - 1
|
|
150
151
|
}))
|
|
151
152
|
};
|
|
152
|
-
}).toSorted(le.value ? () => 0 : (a, l) =>
|
|
153
|
+
}).toSorted(le.value ? () => 0 : (a, l) => Me.value ? l.value - a.value : a.value - l.value))), ze = _(() => ({
|
|
153
154
|
cy: "vertical-bar-div-legend",
|
|
154
155
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
155
156
|
color: e.value.style.chart.legend.color,
|
|
156
157
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
157
158
|
paddingBottom: 12,
|
|
158
159
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
159
|
-
})), v = d(e.value.style.chart.layout.bars.height),
|
|
160
|
-
width:
|
|
161
|
-
height:
|
|
160
|
+
})), v = d(e.value.style.chart.layout.bars.height), m = d(e.value.style.chart.layout.bars.gap), yt = _(() => (v.value + m.value) * te.value), Ae = d(512), g = _(() => ({
|
|
161
|
+
width: Ae.value,
|
|
162
|
+
height: yt.value,
|
|
162
163
|
padding: {
|
|
163
164
|
top: 12,
|
|
164
165
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
165
166
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
166
167
|
bottom: 12
|
|
167
168
|
}
|
|
168
|
-
})), s =
|
|
169
|
+
})), s = _(() => ({
|
|
169
170
|
fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
|
|
170
171
|
top: g.value.padding.top,
|
|
171
172
|
left: g.value.padding.left,
|
|
@@ -176,61 +177,67 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
176
177
|
function ae() {
|
|
177
178
|
te.value = z.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
178
179
|
}
|
|
179
|
-
const
|
|
180
|
+
const P = d([]);
|
|
180
181
|
function K(a) {
|
|
181
|
-
|
|
182
|
+
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ae(), vt("selectLegend", z.value);
|
|
182
183
|
}
|
|
183
|
-
const z =
|
|
184
|
-
function
|
|
184
|
+
const z = _(() => M.value.filter((a) => !P.value.includes(a.id))), S = _(() => z.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
185
|
+
function Be(a, l = !1, t = 0) {
|
|
185
186
|
return l ? U({
|
|
186
|
-
v: N(Math.abs(a) /
|
|
187
|
+
v: N(Math.abs(a) / S.value * 100),
|
|
187
188
|
s: "%",
|
|
188
189
|
r: t
|
|
189
|
-
}) : Math.abs(a) /
|
|
190
|
+
}) : Math.abs(a) / S.value;
|
|
190
191
|
}
|
|
191
|
-
const A =
|
|
192
|
-
function
|
|
193
|
-
const l = a /
|
|
192
|
+
const A = _(() => z.value.flatMap((a) => a.hasChildren ? a.children : a)), B = _(() => A.value.map((a) => a.sign).includes(-1)), ft = _(() => Math.max(...z.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
193
|
+
function C(a) {
|
|
194
|
+
const l = a / ft.value;
|
|
194
195
|
return s.value.width / (B.value ? 2 : 1) * l;
|
|
195
196
|
}
|
|
196
197
|
function gt(a) {
|
|
197
|
-
return
|
|
198
|
+
return C(a) + s.value.left;
|
|
198
199
|
}
|
|
199
200
|
function J(a, l) {
|
|
200
|
-
const t = z.value.find((
|
|
201
|
+
const t = z.value.find((x) => x.id === a.parentId), o = s.value.top + (m.value + v.value) * l, b = t.children.length * (m.value + v.value);
|
|
201
202
|
return {
|
|
202
203
|
y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
203
204
|
name: t.name,
|
|
204
205
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
205
|
-
percentageToTotal: isNaN(t.value /
|
|
206
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Be(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
206
207
|
sign: t.sign
|
|
207
208
|
};
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
+
function bt() {
|
|
210
211
|
return z.value;
|
|
211
212
|
}
|
|
212
213
|
const ve = d(null), ce = d(null);
|
|
213
|
-
function
|
|
214
|
-
|
|
214
|
+
function mt({ datapoint: a, seriesIndex: l }) {
|
|
215
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l });
|
|
216
|
+
}
|
|
217
|
+
function kt({ datapoint: a, seriesIndex: l }) {
|
|
218
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: l }), dt.value = null, ue.value = !1, ve.value = null;
|
|
219
|
+
}
|
|
220
|
+
function _t(a, l) {
|
|
221
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: a, seriesIndex: l }), ce.value = {
|
|
215
222
|
datapoint: a,
|
|
216
223
|
seriesIndex: l,
|
|
217
224
|
series: M.value,
|
|
218
225
|
config: e.value
|
|
219
226
|
}, ue.value = !0, ve.value = a.id;
|
|
220
227
|
let t = "";
|
|
221
|
-
const o = a.isChild ? a.parentName : a.name, b = a.isChild ? a.name : "",
|
|
222
|
-
|
|
228
|
+
const o = a.isChild ? a.parentName : a.name, b = a.isChild ? a.name : "", x = e.value.style.chart.tooltip.customFormat;
|
|
229
|
+
Dt(x) && Et(() => x({
|
|
223
230
|
datapoint: a,
|
|
224
231
|
series: M.value,
|
|
225
232
|
config: e.value,
|
|
226
233
|
seriesIndex: l
|
|
227
|
-
})) ? se.value =
|
|
234
|
+
})) ? se.value = x({
|
|
228
235
|
datapoint: a,
|
|
229
236
|
series: M.value,
|
|
230
237
|
config: e.value,
|
|
231
238
|
seriesIndex: l
|
|
232
239
|
}) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
233
|
-
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${
|
|
240
|
+
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${rt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${T.value}_${a.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
234
241
|
${b ? `<div>${b}</div>` : ""}
|
|
235
242
|
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
|
|
236
243
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
@@ -243,7 +250,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
243
250
|
}),
|
|
244
251
|
{ datapoint: a, seriesIndex: l }
|
|
245
252
|
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
|
|
246
|
-
v: Math.abs(a.value) /
|
|
253
|
+
v: Math.abs(a.value) / S.value * 100,
|
|
247
254
|
s: "%",
|
|
248
255
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
249
256
|
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
|
|
@@ -252,7 +259,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
252
259
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
253
260
|
})}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
|
|
254
261
|
}
|
|
255
|
-
function
|
|
262
|
+
function Re(a, l, t, o) {
|
|
256
263
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
257
264
|
return "";
|
|
258
265
|
const b = ne(
|
|
@@ -265,10 +272,10 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
265
272
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
266
273
|
}),
|
|
267
274
|
{ datapoint: l, seriesIndex: t }
|
|
268
|
-
),
|
|
269
|
-
return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${
|
|
275
|
+
), x = `(${Be(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
276
|
+
return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${x}` : ""}`;
|
|
270
277
|
}
|
|
271
|
-
const L =
|
|
278
|
+
const L = _(() => {
|
|
272
279
|
const a = [
|
|
273
280
|
e.value.translations.parentName,
|
|
274
281
|
e.value.translations.value,
|
|
@@ -281,11 +288,11 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
281
288
|
color: t.color,
|
|
282
289
|
parentName: t.parentName,
|
|
283
290
|
parentValue: t.parentValue,
|
|
284
|
-
percentageToTotal: t.parentValue /
|
|
291
|
+
percentageToTotal: t.parentValue / S.value,
|
|
285
292
|
childName: t.name,
|
|
286
293
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
287
294
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
288
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
295
|
+
childPercentageToTotal: Math.abs(t.value) / S.value
|
|
289
296
|
} : {
|
|
290
297
|
color: "",
|
|
291
298
|
parentName: "",
|
|
@@ -294,12 +301,12 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
294
301
|
childName: t.name,
|
|
295
302
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
296
303
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
297
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
304
|
+
childPercentageToTotal: Math.abs(t.value) / S.value
|
|
298
305
|
} : {
|
|
299
306
|
color: t.color,
|
|
300
307
|
parentName: t.name,
|
|
301
308
|
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
302
|
-
percentageToTotal: Math.abs(t.value) /
|
|
309
|
+
percentageToTotal: Math.abs(t.value) / S.value,
|
|
303
310
|
childName: "",
|
|
304
311
|
childValue: "",
|
|
305
312
|
childPercentageToParent: "",
|
|
@@ -307,7 +314,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
307
314
|
});
|
|
308
315
|
return { head: a, body: l };
|
|
309
316
|
});
|
|
310
|
-
function
|
|
317
|
+
function De(a = null) {
|
|
311
318
|
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = L.value.head, o = L.value.body.map((p) => [
|
|
312
319
|
p.parentName,
|
|
313
320
|
p.parentValue,
|
|
@@ -316,98 +323,98 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
316
323
|
p.childValue,
|
|
317
324
|
p.childPercentageToParent,
|
|
318
325
|
p.childPercentageToTotal
|
|
319
|
-
]), b = l.concat([t]).concat(o),
|
|
320
|
-
a ? a(
|
|
326
|
+
]), b = l.concat([t]).concat(o), x = Bt(b);
|
|
327
|
+
a ? a(x) : Rt({ csvContent: x, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
321
328
|
}
|
|
322
329
|
const H = d(!1);
|
|
323
|
-
function
|
|
324
|
-
H.value = a,
|
|
330
|
+
function Ee(a) {
|
|
331
|
+
H.value = a, be.value += 1;
|
|
325
332
|
}
|
|
326
|
-
function
|
|
327
|
-
|
|
333
|
+
function Ue() {
|
|
334
|
+
w.value.showTable = !w.value.showTable;
|
|
328
335
|
}
|
|
329
|
-
const
|
|
336
|
+
const $t = d({
|
|
330
337
|
none: 0,
|
|
331
338
|
asc: 1,
|
|
332
339
|
desc: 2
|
|
333
340
|
}), F = d(0), le = d(!1);
|
|
334
|
-
|
|
341
|
+
je(() => {
|
|
335
342
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
|
|
336
343
|
componentName: "VueUiVerticalBar",
|
|
337
344
|
type: "attributeWrongValue",
|
|
338
345
|
property: "style.chart.layout.bars.sort",
|
|
339
346
|
key: e.value.style.chart.layout.bars.sort
|
|
340
|
-
}), F.value =
|
|
347
|
+
}), F.value = $t.value[e.value.style.chart.layout.bars.sort], w.value.sortDesc = F.value === 2, le.value = F.value === 0;
|
|
341
348
|
});
|
|
342
|
-
function
|
|
349
|
+
function wt() {
|
|
343
350
|
F.value += 1, F.value > 2 && (F.value = 0);
|
|
344
351
|
}
|
|
345
|
-
function Ue() {
|
|
346
|
-
kt(), $.value.sortDesc = F.value === 2, le.value = F.value === 0, ae();
|
|
347
|
-
}
|
|
348
352
|
function Xe() {
|
|
349
|
-
|
|
353
|
+
wt(), w.value.sortDesc = F.value === 2, le.value = F.value === 0, ae();
|
|
354
|
+
}
|
|
355
|
+
function He() {
|
|
356
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
350
357
|
}
|
|
351
358
|
const oe = d(!1);
|
|
352
359
|
function he() {
|
|
353
360
|
oe.value = !oe.value;
|
|
354
361
|
}
|
|
355
|
-
async function
|
|
362
|
+
async function xt({ scale: a = 2 } = {}) {
|
|
356
363
|
if (!I.value) return;
|
|
357
|
-
const { width: l, height: t } = I.value.getBoundingClientRect(), o = l / t, { imageUri: b, base64:
|
|
364
|
+
const { width: l, height: t } = I.value.getBoundingClientRect(), o = l / t, { imageUri: b, base64: x } = await Yt({ domElement: I.value, base64: !0, img: !0, scale: a });
|
|
358
365
|
return {
|
|
359
366
|
imageUri: b,
|
|
360
|
-
base64:
|
|
367
|
+
base64: x,
|
|
361
368
|
title: e.value.style.chart.title.text,
|
|
362
369
|
width: l,
|
|
363
370
|
height: t,
|
|
364
371
|
aspectRatio: o
|
|
365
372
|
};
|
|
366
373
|
}
|
|
367
|
-
return
|
|
368
|
-
getData:
|
|
369
|
-
getImage:
|
|
374
|
+
return Ze({
|
|
375
|
+
getData: bt,
|
|
376
|
+
getImage: xt,
|
|
370
377
|
recalculateHeight: ae,
|
|
371
|
-
generatePdf:
|
|
372
|
-
generateCsv:
|
|
378
|
+
generatePdf: Pe,
|
|
379
|
+
generateCsv: De,
|
|
373
380
|
generateImage: Se,
|
|
374
|
-
toggleTable:
|
|
375
|
-
toggleSort:
|
|
376
|
-
toggleTooltip:
|
|
381
|
+
toggleTable: Ue,
|
|
382
|
+
toggleSort: Xe,
|
|
383
|
+
toggleTooltip: He,
|
|
377
384
|
toggleAnnotator: he,
|
|
378
|
-
toggleFullscreen:
|
|
385
|
+
toggleFullscreen: Ee
|
|
379
386
|
}), (a, l) => (u(), i("div", {
|
|
380
387
|
class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
381
388
|
ref_key: "verticalBarChart",
|
|
382
389
|
ref: I,
|
|
383
|
-
id: `vue-ui-vertical-bar_${
|
|
390
|
+
id: `vue-ui-vertical-bar_${T.value}`,
|
|
384
391
|
style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
385
|
-
onMouseenter: l[
|
|
386
|
-
onMouseleave: l[
|
|
392
|
+
onMouseenter: l[4] || (l[4] = () => r(we)(!0)),
|
|
393
|
+
onMouseleave: l[5] || (l[5] = () => r(we)(!1))
|
|
387
394
|
}, [
|
|
388
|
-
e.value.userOptions.buttons.annotator ? (u(), D(r(
|
|
395
|
+
e.value.userOptions.buttons.annotator ? (u(), D(r(lt), {
|
|
389
396
|
key: 0,
|
|
390
|
-
svgRef: r(
|
|
397
|
+
svgRef: r(Ce),
|
|
391
398
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
399
|
color: e.value.style.chart.color,
|
|
393
400
|
active: oe.value,
|
|
394
401
|
onClose: he
|
|
395
402
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
396
|
-
|
|
403
|
+
ct.value ? (u(), i("div", {
|
|
397
404
|
key: 1,
|
|
398
405
|
ref_key: "noTitle",
|
|
399
|
-
ref:
|
|
406
|
+
ref: _e,
|
|
400
407
|
class: "vue-data-ui-no-title-space",
|
|
401
408
|
style: "height:36px; width: 100%;background:transparent"
|
|
402
409
|
}, null, 512)) : y("", !0),
|
|
403
410
|
e.value.style.chart.title.text ? (u(), i("div", {
|
|
404
411
|
key: 2,
|
|
405
412
|
ref_key: "chartTitle",
|
|
406
|
-
ref:
|
|
413
|
+
ref: me,
|
|
407
414
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
408
415
|
}, [
|
|
409
|
-
(u(), D(
|
|
410
|
-
key: `title_${
|
|
416
|
+
(u(), D(qt, {
|
|
417
|
+
key: `title_${$e.value}`,
|
|
411
418
|
config: {
|
|
412
419
|
title: {
|
|
413
420
|
cy: "vertical-bar-div-title",
|
|
@@ -420,15 +427,15 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
420
427
|
}
|
|
421
428
|
}, null, 8, ["config"]))
|
|
422
429
|
], 512)) : y("", !0),
|
|
423
|
-
e.value.userOptions.show && ee.value && (r(
|
|
430
|
+
e.value.userOptions.show && ee.value && (r(xe) || r(de)) ? (u(), D(r(ut), {
|
|
424
431
|
ref_key: "details",
|
|
425
|
-
ref:
|
|
426
|
-
key: `user_options_${
|
|
432
|
+
ref: it,
|
|
433
|
+
key: `user_options_${be.value}`,
|
|
427
434
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
428
435
|
color: e.value.style.chart.color,
|
|
429
|
-
isImaging: r(
|
|
430
|
-
isPrinting: r(
|
|
431
|
-
uid:
|
|
436
|
+
isImaging: r(Ne),
|
|
437
|
+
isPrinting: r(Le),
|
|
438
|
+
uid: T.value,
|
|
432
439
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
433
440
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
434
441
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -437,7 +444,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
437
444
|
hasSort: e.value.userOptions.buttons.sort,
|
|
438
445
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
439
446
|
isFullscreen: H.value,
|
|
440
|
-
isTooltip:
|
|
447
|
+
isTooltip: w.value.showTooltip,
|
|
441
448
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
442
449
|
chartElement: I.value,
|
|
443
450
|
position: e.value.userOptions.position,
|
|
@@ -445,85 +452,85 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
445
452
|
isAnnotation: oe.value,
|
|
446
453
|
callbacks: e.value.userOptions.callbacks,
|
|
447
454
|
printScale: e.value.userOptions.print.scale,
|
|
448
|
-
onToggleFullscreen:
|
|
449
|
-
onGeneratePdf: r(
|
|
450
|
-
onGenerateCsv:
|
|
455
|
+
onToggleFullscreen: Ee,
|
|
456
|
+
onGeneratePdf: r(Pe),
|
|
457
|
+
onGenerateCsv: De,
|
|
451
458
|
onGenerateImage: r(Se),
|
|
452
|
-
onToggleTable:
|
|
453
|
-
onToggleSort:
|
|
454
|
-
onToggleTooltip:
|
|
459
|
+
onToggleTable: Ue,
|
|
460
|
+
onToggleSort: Xe,
|
|
461
|
+
onToggleTooltip: He,
|
|
455
462
|
onToggleAnnotator: he,
|
|
456
463
|
style: c({
|
|
457
|
-
visibility: r(
|
|
464
|
+
visibility: r(xe) ? r(de) ? "visible" : "hidden" : "visible"
|
|
458
465
|
})
|
|
459
466
|
}, pe({ _: 2 }, [
|
|
460
467
|
a.$slots.menuIcon ? {
|
|
461
468
|
name: "menuIcon",
|
|
462
|
-
fn:
|
|
463
|
-
|
|
469
|
+
fn: $(({ isOpen: t, color: o }) => [
|
|
470
|
+
k(a.$slots, "menuIcon", G(j({ isOpen: t, color: o })), void 0, !0)
|
|
464
471
|
]),
|
|
465
472
|
key: "0"
|
|
466
473
|
} : void 0,
|
|
467
474
|
a.$slots.optionTooltip ? {
|
|
468
475
|
name: "optionTooltip",
|
|
469
|
-
fn:
|
|
470
|
-
|
|
476
|
+
fn: $(() => [
|
|
477
|
+
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
471
478
|
]),
|
|
472
479
|
key: "1"
|
|
473
480
|
} : void 0,
|
|
474
481
|
a.$slots.optionPdf ? {
|
|
475
482
|
name: "optionPdf",
|
|
476
|
-
fn:
|
|
477
|
-
|
|
483
|
+
fn: $(() => [
|
|
484
|
+
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
478
485
|
]),
|
|
479
486
|
key: "2"
|
|
480
487
|
} : void 0,
|
|
481
488
|
a.$slots.optionCsv ? {
|
|
482
489
|
name: "optionCsv",
|
|
483
|
-
fn:
|
|
484
|
-
|
|
490
|
+
fn: $(() => [
|
|
491
|
+
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
485
492
|
]),
|
|
486
493
|
key: "3"
|
|
487
494
|
} : void 0,
|
|
488
495
|
a.$slots.optionImg ? {
|
|
489
496
|
name: "optionImg",
|
|
490
|
-
fn:
|
|
491
|
-
|
|
497
|
+
fn: $(() => [
|
|
498
|
+
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
492
499
|
]),
|
|
493
500
|
key: "4"
|
|
494
501
|
} : void 0,
|
|
495
502
|
a.$slots.optionTable ? {
|
|
496
503
|
name: "optionTable",
|
|
497
|
-
fn:
|
|
498
|
-
|
|
504
|
+
fn: $(() => [
|
|
505
|
+
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
499
506
|
]),
|
|
500
507
|
key: "5"
|
|
501
508
|
} : void 0,
|
|
502
509
|
a.$slots.optionLabels ? {
|
|
503
510
|
name: "optionLabels",
|
|
504
|
-
fn:
|
|
505
|
-
|
|
511
|
+
fn: $(() => [
|
|
512
|
+
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
506
513
|
]),
|
|
507
514
|
key: "6"
|
|
508
515
|
} : void 0,
|
|
509
516
|
a.$slots.optionSort ? {
|
|
510
517
|
name: "optionSort",
|
|
511
|
-
fn:
|
|
512
|
-
|
|
518
|
+
fn: $(() => [
|
|
519
|
+
k(a.$slots, "optionSort", {}, void 0, !0)
|
|
513
520
|
]),
|
|
514
521
|
key: "7"
|
|
515
522
|
} : void 0,
|
|
516
523
|
a.$slots.optionFullscreen ? {
|
|
517
524
|
name: "optionFullscreen",
|
|
518
|
-
fn:
|
|
519
|
-
|
|
525
|
+
fn: $(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
526
|
+
k(a.$slots, "optionFullscreen", G(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
520
527
|
]),
|
|
521
528
|
key: "8"
|
|
522
529
|
} : void 0,
|
|
523
530
|
a.$slots.optionAnnotator ? {
|
|
524
531
|
name: "optionAnnotator",
|
|
525
|
-
fn:
|
|
526
|
-
|
|
532
|
+
fn: $(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
533
|
+
k(a.$slots, "optionAnnotator", G(j({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
527
534
|
]),
|
|
528
535
|
key: "9"
|
|
529
536
|
} : void 0
|
|
@@ -533,16 +540,16 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
533
540
|
ref_key: "chartLegend",
|
|
534
541
|
ref: re
|
|
535
542
|
}, [
|
|
536
|
-
(u(), D(
|
|
543
|
+
(u(), D(Ke, {
|
|
537
544
|
key: `legend_top_${ie.value}`,
|
|
538
545
|
legendSet: M.value,
|
|
539
|
-
config:
|
|
546
|
+
config: ze.value,
|
|
540
547
|
onClickMarker: l[0] || (l[0] = ({ legend: t }) => K(t.id))
|
|
541
548
|
}, pe({
|
|
542
|
-
item:
|
|
549
|
+
item: $(({ legend: t, index: o }) => [
|
|
543
550
|
n("div", {
|
|
544
551
|
onClick: (b) => K(t.id),
|
|
545
|
-
style: c(`opacity:${
|
|
552
|
+
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
546
553
|
}, h(t.name) + ": " + h(r(ne)(
|
|
547
554
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
548
555
|
t.value,
|
|
@@ -553,19 +560,19 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
553
560
|
r: e.value.style.chart.legend.roundingValue
|
|
554
561
|
}),
|
|
555
562
|
{ datapoint: t, seriesIndex: o }
|
|
556
|
-
)), 13,
|
|
563
|
+
)), 13, Qt)
|
|
557
564
|
]),
|
|
558
565
|
_: 2
|
|
559
566
|
}, [
|
|
560
567
|
a.$slots.pattern ? {
|
|
561
568
|
name: "legend-pattern",
|
|
562
|
-
fn:
|
|
563
|
-
Q(
|
|
569
|
+
fn: $(({ legend: t, index: o }) => [
|
|
570
|
+
Q(Je, {
|
|
564
571
|
shape: t.shape,
|
|
565
572
|
radius: 30,
|
|
566
573
|
stroke: "none",
|
|
567
574
|
plot: { x: 30, y: 30 },
|
|
568
|
-
fill: `url(#pattern_${
|
|
575
|
+
fill: `url(#pattern_${T.value}_${o})`
|
|
569
576
|
}, null, 8, ["shape", "fill"])
|
|
570
577
|
]),
|
|
571
578
|
key: "0"
|
|
@@ -575,13 +582,13 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
575
582
|
ee.value ? (u(), i("svg", {
|
|
576
583
|
key: 5,
|
|
577
584
|
ref_key: "svgRef",
|
|
578
|
-
ref:
|
|
579
|
-
xmlns: r(
|
|
585
|
+
ref: Ce,
|
|
586
|
+
xmlns: r(zt),
|
|
580
587
|
class: R({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
581
588
|
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
582
589
|
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
583
590
|
}, [
|
|
584
|
-
Q(r(
|
|
591
|
+
Q(r(at)),
|
|
585
592
|
a.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
586
593
|
key: 0,
|
|
587
594
|
x: 0,
|
|
@@ -592,74 +599,74 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
592
599
|
pointerEvents: "none"
|
|
593
600
|
}
|
|
594
601
|
}, [
|
|
595
|
-
|
|
596
|
-
], 8,
|
|
602
|
+
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
603
|
+
], 8, ea)) : y("", !0),
|
|
597
604
|
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("linearGradient", {
|
|
598
605
|
x1: "0%",
|
|
599
606
|
y1: "0%",
|
|
600
607
|
x2: "100%",
|
|
601
608
|
y2: "0%",
|
|
602
|
-
id: `vertical_bar_gradient_${
|
|
609
|
+
id: `vertical_bar_gradient_${T.value}_${o}`
|
|
603
610
|
}, [
|
|
604
611
|
n("stop", {
|
|
605
612
|
offset: "0%",
|
|
606
613
|
"stop-color": t.color
|
|
607
|
-
}, null, 8,
|
|
614
|
+
}, null, 8, aa),
|
|
608
615
|
n("stop", {
|
|
609
616
|
offset: "100%",
|
|
610
|
-
"stop-color": r(ge)(r(
|
|
611
|
-
}, null, 8,
|
|
612
|
-
], 8,
|
|
613
|
-
a.$slots.pattern ? (u(), i("g",
|
|
617
|
+
"stop-color": r(ge)(r(At)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
618
|
+
}, null, 8, la)
|
|
619
|
+
], 8, ta))), 256)),
|
|
620
|
+
a.$slots.pattern ? (u(), i("g", oa, [
|
|
614
621
|
(u(!0), i(q, null, Y(A.value, (t) => (u(), i("defs", null, [
|
|
615
|
-
|
|
622
|
+
k(a.$slots, "pattern", Nt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${T.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
616
623
|
]))), 256))
|
|
617
624
|
])) : y("", !0),
|
|
618
625
|
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
|
|
619
626
|
n("rect", {
|
|
620
|
-
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 :
|
|
621
|
-
y: s.value.top + (
|
|
622
|
-
width: r(N)(
|
|
627
|
+
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : C(t.value) <= 0 ? 1e-4 : C(t.value)) : s.value.left),
|
|
628
|
+
y: s.value.top + (m.value + v.value) * o,
|
|
629
|
+
width: r(N)(C(t.value) <= 0 ? 1e-4 : C(t.value)),
|
|
623
630
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
624
631
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
625
632
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
626
633
|
class: R({ animated: e.value.useCssAnimation })
|
|
627
|
-
}, null, 10,
|
|
634
|
+
}, null, 10, na)
|
|
628
635
|
]))), 256)),
|
|
629
636
|
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
|
|
630
637
|
n("rect", {
|
|
631
|
-
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 :
|
|
632
|
-
y: s.value.top + (
|
|
633
|
-
width: r(N)(
|
|
638
|
+
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : C(t.value) <= 0 ? 1e-4 : C(t.value)) : s.value.left),
|
|
639
|
+
y: s.value.top + (m.value + v.value) * o,
|
|
640
|
+
width: r(N)(C(t.value) <= 0 ? 1e-4 : C(t.value)),
|
|
634
641
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
635
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${
|
|
642
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${T.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
636
643
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
637
644
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
638
645
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
639
646
|
class: R({ animated: e.value.useCssAnimation })
|
|
640
|
-
}, null, 10,
|
|
647
|
+
}, null, 10, ua),
|
|
641
648
|
a.$slots.pattern ? (u(), i("rect", {
|
|
642
649
|
key: 0,
|
|
643
|
-
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 :
|
|
644
|
-
y: s.value.top + (
|
|
645
|
-
width: r(N)(
|
|
650
|
+
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : C(t.value) <= 0 ? 1e-4 : C(t.value)) : s.value.left),
|
|
651
|
+
y: s.value.top + (m.value + v.value) * o,
|
|
652
|
+
width: r(N)(C(t.value) <= 0 ? 1e-4 : C(t.value)),
|
|
646
653
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
647
|
-
fill: `url(#pattern_${
|
|
654
|
+
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`,
|
|
648
655
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
649
656
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
650
657
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
651
658
|
class: R({ animated: e.value.useCssAnimation })
|
|
652
|
-
}, null, 10,
|
|
659
|
+
}, null, 10, sa)) : y("", !0),
|
|
653
660
|
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== A.value.length - 1 ? (u(), i("line", {
|
|
654
661
|
key: 1,
|
|
655
662
|
x1: 0,
|
|
656
663
|
x2: s.value.left,
|
|
657
|
-
y1: v.value +
|
|
658
|
-
y2: v.value +
|
|
664
|
+
y1: v.value + m.value / 2 + s.value.top + (m.value + v.value) * o,
|
|
665
|
+
y2: v.value + m.value / 2 + s.value.top + (m.value + v.value) * o,
|
|
659
666
|
stroke: e.value.style.chart.layout.separators.color,
|
|
660
667
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
661
668
|
"stroke-linecap": "round"
|
|
662
|
-
}, null, 8,
|
|
669
|
+
}, null, 8, ra)) : y("", !0),
|
|
663
670
|
B.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
|
|
664
671
|
key: 2,
|
|
665
672
|
x1: s.value.left + s.value.width / 2,
|
|
@@ -669,24 +676,24 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
669
676
|
stroke: e.value.style.chart.layout.separators.color,
|
|
670
677
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
671
678
|
"stroke-linecap": "round"
|
|
672
|
-
}, null, 8,
|
|
679
|
+
}, null, 8, ia)) : y("", !0),
|
|
673
680
|
n("text", {
|
|
674
681
|
x: B.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : gt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
675
|
-
y: s.value.top + (
|
|
682
|
+
y: s.value.top + (m.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
676
683
|
"text-anchor": !B.value || t.sign === -1 ? "start" : "end",
|
|
677
684
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
678
685
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
679
686
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
680
|
-
}, h(
|
|
687
|
+
}, h(Re(t.value, t, o, t.sign)), 9, da),
|
|
681
688
|
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
|
|
682
689
|
key: 3,
|
|
683
690
|
"text-anchor": "end",
|
|
684
691
|
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
685
|
-
y: s.value.top + (
|
|
692
|
+
y: s.value.top + (m.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
686
693
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
687
694
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
688
695
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
689
|
-
}, h(t.name), 9,
|
|
696
|
+
}, h(t.name), 9, va)) : y("", !0),
|
|
690
697
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
691
698
|
key: 4,
|
|
692
699
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -695,7 +702,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
695
702
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
696
703
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
697
704
|
"text-anchor": "start"
|
|
698
|
-
}, h(J(t, o).name), 9,
|
|
705
|
+
}, h(J(t, o).name), 9, ca)) : y("", !0),
|
|
699
706
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
700
707
|
key: 5,
|
|
701
708
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -704,25 +711,24 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
704
711
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
705
712
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
706
713
|
"text-anchor": "start"
|
|
707
|
-
}, h(
|
|
714
|
+
}, h(Re(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, ha)) : y("", !0),
|
|
708
715
|
n("rect", {
|
|
709
716
|
x: 0,
|
|
710
|
-
y: s.value.top + (
|
|
717
|
+
y: s.value.top + (m.value + v.value) * o - m.value / 2,
|
|
711
718
|
width: g.value.width <= 0 ? 1e-4 : g.value.width,
|
|
712
|
-
height: v.value +
|
|
719
|
+
height: v.value + m.value <= 0 ? 1e-4 : v.value + m.value,
|
|
713
720
|
fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
714
|
-
onMouseenter: (b) =>
|
|
715
|
-
onMouseleave:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}, null, 40, va)
|
|
721
|
+
onMouseenter: (b) => _t(t, o),
|
|
722
|
+
onMouseleave: (b) => kt({ datapoint: t, seriesIndex: o }),
|
|
723
|
+
onClick: (b) => mt({ datapoint: t, seriesIndex: o })
|
|
724
|
+
}, null, 40, pa)
|
|
719
725
|
]))), 256)),
|
|
720
|
-
|
|
721
|
-
], 14,
|
|
722
|
-
a.$slots.watermark ? (u(), i("div",
|
|
723
|
-
|
|
726
|
+
k(a.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
727
|
+
], 14, Zt)) : y("", !0),
|
|
728
|
+
a.$slots.watermark ? (u(), i("div", ya, [
|
|
729
|
+
k(a.$slots, "watermark", G(j({ isPrinting: r(Le) || r(Ne) })), void 0, !0)
|
|
724
730
|
])) : y("", !0),
|
|
725
|
-
ee.value ? y("", !0) : (u(), D(r(
|
|
731
|
+
ee.value ? y("", !0) : (u(), D(r(ot), {
|
|
726
732
|
key: 7,
|
|
727
733
|
config: {
|
|
728
734
|
type: "verticalBar",
|
|
@@ -742,16 +748,16 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
742
748
|
ref_key: "chartLegend",
|
|
743
749
|
ref: re
|
|
744
750
|
}, [
|
|
745
|
-
(u(), D(
|
|
751
|
+
(u(), D(Ke, {
|
|
746
752
|
key: `legend_bottom_${ie.value}`,
|
|
747
753
|
legendSet: M.value,
|
|
748
|
-
config:
|
|
749
|
-
onClickMarker: l[
|
|
754
|
+
config: ze.value,
|
|
755
|
+
onClickMarker: l[1] || (l[1] = ({ legend: t }) => K(t.id))
|
|
750
756
|
}, pe({
|
|
751
|
-
item:
|
|
757
|
+
item: $(({ legend: t, index: o }) => [
|
|
752
758
|
n("div", {
|
|
753
759
|
onClick: (b) => K(t.id),
|
|
754
|
-
style: c(`opacity:${
|
|
760
|
+
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
755
761
|
}, h(t.name) + ": " + h(r(ne)(
|
|
756
762
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
757
763
|
t.value,
|
|
@@ -762,36 +768,36 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
762
768
|
r: e.value.style.chart.legend.roundingValue
|
|
763
769
|
}),
|
|
764
770
|
{ datapoint: t, seriesIndex: o }
|
|
765
|
-
)), 13,
|
|
771
|
+
)), 13, fa)
|
|
766
772
|
]),
|
|
767
773
|
_: 2
|
|
768
774
|
}, [
|
|
769
775
|
a.$slots.pattern ? {
|
|
770
776
|
name: "legend-pattern",
|
|
771
|
-
fn:
|
|
772
|
-
Q(
|
|
777
|
+
fn: $(({ legend: t, index: o }) => [
|
|
778
|
+
Q(Je, {
|
|
773
779
|
shape: t.shape,
|
|
774
780
|
radius: 30,
|
|
775
781
|
stroke: "none",
|
|
776
782
|
plot: { x: 30, y: 30 },
|
|
777
|
-
fill: `url(#pattern_${
|
|
783
|
+
fill: `url(#pattern_${T.value}_${o})`
|
|
778
784
|
}, null, 8, ["shape", "fill"])
|
|
779
785
|
]),
|
|
780
786
|
key: "0"
|
|
781
787
|
} : void 0
|
|
782
788
|
]), 1032, ["legendSet", "config"]))
|
|
783
789
|
], 512)) : y("", !0),
|
|
784
|
-
|
|
790
|
+
k(a.$slots, "legend", { legend: M.value }, void 0, !0),
|
|
785
791
|
a.$slots.source ? (u(), i("div", {
|
|
786
792
|
key: 9,
|
|
787
793
|
ref_key: "source",
|
|
788
|
-
ref:
|
|
794
|
+
ref: ke,
|
|
789
795
|
dir: "auto"
|
|
790
796
|
}, [
|
|
791
|
-
|
|
797
|
+
k(a.$slots, "source", {}, void 0, !0)
|
|
792
798
|
], 512)) : y("", !0),
|
|
793
|
-
Q(r(
|
|
794
|
-
show:
|
|
799
|
+
Q(r(nt), {
|
|
800
|
+
show: w.value.showTooltip && ue.value && P.value.length < f.dataset.length,
|
|
795
801
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
796
802
|
color: e.value.style.chart.tooltip.color,
|
|
797
803
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -806,19 +812,19 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
806
812
|
isFullscreen: H.value,
|
|
807
813
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
808
814
|
}, {
|
|
809
|
-
"tooltip-before":
|
|
810
|
-
|
|
815
|
+
"tooltip-before": $(() => [
|
|
816
|
+
k(a.$slots, "tooltip-before", G(j({ ...ce.value })), void 0, !0)
|
|
811
817
|
]),
|
|
812
|
-
"tooltip-after":
|
|
813
|
-
|
|
818
|
+
"tooltip-after": $(() => [
|
|
819
|
+
k(a.$slots, "tooltip-after", G(j({ ...ce.value })), void 0, !0)
|
|
814
820
|
]),
|
|
815
821
|
_: 3
|
|
816
822
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
817
|
-
ee.value ? (u(), D(
|
|
823
|
+
ee.value ? (u(), D(jt, {
|
|
818
824
|
key: 10,
|
|
819
825
|
hideDetails: "",
|
|
820
826
|
config: {
|
|
821
|
-
open:
|
|
827
|
+
open: w.value.showTable,
|
|
822
828
|
maxHeight: 1e4,
|
|
823
829
|
body: {
|
|
824
830
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -830,21 +836,21 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
830
836
|
}
|
|
831
837
|
}
|
|
832
838
|
}, {
|
|
833
|
-
content:
|
|
839
|
+
content: $(() => [
|
|
834
840
|
n("div", {
|
|
835
841
|
ref_key: "tableContainer",
|
|
836
|
-
ref:
|
|
842
|
+
ref: Ie,
|
|
837
843
|
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
838
844
|
}, [
|
|
839
|
-
n("div",
|
|
845
|
+
n("div", ga, [
|
|
840
846
|
n("div", {
|
|
841
847
|
role: "button",
|
|
842
848
|
tabindex: "0",
|
|
843
849
|
style: c(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
844
|
-
onClick: l[
|
|
845
|
-
onKeypress: l[
|
|
850
|
+
onClick: l[2] || (l[2] = (t) => w.value.showTable = !1),
|
|
851
|
+
onKeypress: l[3] || (l[3] = Pt((t) => w.value.showTable = !1, ["enter"]))
|
|
846
852
|
}, [
|
|
847
|
-
Q(r(
|
|
853
|
+
Q(r(tt), {
|
|
848
854
|
name: "close",
|
|
849
855
|
stroke: e.value.table.th.color,
|
|
850
856
|
"stroke-width": 2
|
|
@@ -852,15 +858,15 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
852
858
|
], 36),
|
|
853
859
|
n("div", {
|
|
854
860
|
style: { width: "100%", "container-type": "inline-size" },
|
|
855
|
-
class: R({ "vue-ui-responsive":
|
|
861
|
+
class: R({ "vue-ui-responsive": Oe.value })
|
|
856
862
|
}, [
|
|
857
|
-
n("table",
|
|
863
|
+
n("table", ba, [
|
|
858
864
|
n("caption", {
|
|
859
865
|
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
860
866
|
class: "vue-ui-data-table__caption"
|
|
861
867
|
}, [
|
|
862
|
-
|
|
863
|
-
e.value.style.chart.title.subtitle.text ? (u(), i("span",
|
|
868
|
+
St(h(e.value.style.chart.title.text) + " ", 1),
|
|
869
|
+
e.value.style.chart.title.subtitle.text ? (u(), i("span", ma, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
864
870
|
], 4),
|
|
865
871
|
n("thead", null, [
|
|
866
872
|
n("tr", {
|
|
@@ -870,7 +876,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
870
876
|
(u(!0), i(q, null, Y(L.value.head, (t) => (u(), i("th", {
|
|
871
877
|
style: c(`outline:${e.value.table.th.outline}`)
|
|
872
878
|
}, [
|
|
873
|
-
n("div",
|
|
879
|
+
n("div", ka, h(t), 1)
|
|
874
880
|
], 4))), 256))
|
|
875
881
|
], 4),
|
|
876
882
|
n("tr", null, [
|
|
@@ -879,7 +885,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
879
885
|
}, null, 4),
|
|
880
886
|
n("th", {
|
|
881
887
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
882
|
-
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(
|
|
888
|
+
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
|
|
883
889
|
n("th", {
|
|
884
890
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
885
891
|
}, "100%", 4),
|
|
@@ -907,56 +913,56 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
907
913
|
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
908
914
|
"data-cell": L.value.head[0] ?? ""
|
|
909
915
|
}, [
|
|
910
|
-
n("div",
|
|
916
|
+
n("div", $a, [
|
|
911
917
|
t.color ? (u(), i("span", {
|
|
912
918
|
key: 0,
|
|
913
919
|
style: c(`color:${t.color};margin-right:3px`)
|
|
914
920
|
}, "⬤", 4)) : y("", !0),
|
|
915
921
|
n("span", null, h(t.parentName), 1)
|
|
916
922
|
])
|
|
917
|
-
], 12,
|
|
923
|
+
], 12, _a),
|
|
918
924
|
n("td", {
|
|
919
925
|
class: "vue-ui-data-table__tbody__td",
|
|
920
926
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
921
927
|
"data-cell": L.value.head[1] ?? ""
|
|
922
928
|
}, [
|
|
923
|
-
n("div",
|
|
924
|
-
], 12,
|
|
929
|
+
n("div", xa, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
930
|
+
], 12, wa),
|
|
925
931
|
n("td", {
|
|
926
932
|
class: "vue-ui-data-table__tbody__td",
|
|
927
933
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
928
934
|
"data-cell": L.value.head[2] ?? ""
|
|
929
935
|
}, [
|
|
930
|
-
n("div",
|
|
931
|
-
], 12,
|
|
936
|
+
n("div", Ta, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
937
|
+
], 12, Ca),
|
|
932
938
|
n("td", {
|
|
933
939
|
class: "vue-ui-data-table__tbody__td",
|
|
934
940
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
935
941
|
"data-cell": L.value.head[3] ?? ""
|
|
936
942
|
}, [
|
|
937
|
-
n("div",
|
|
938
|
-
], 12,
|
|
943
|
+
n("div", Na, h(t.childName), 1)
|
|
944
|
+
], 12, La),
|
|
939
945
|
n("td", {
|
|
940
946
|
class: "vue-ui-data-table__tbody__td",
|
|
941
947
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
942
948
|
"data-cell": L.value.head[4] ?? ""
|
|
943
949
|
}, [
|
|
944
|
-
n("div",
|
|
945
|
-
], 12,
|
|
950
|
+
n("div", Sa, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
951
|
+
], 12, Pa),
|
|
946
952
|
n("td", {
|
|
947
953
|
class: "vue-ui-data-table__tbody__td",
|
|
948
954
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
949
955
|
"data-cell": L.value.head[5] ?? ""
|
|
950
956
|
}, [
|
|
951
|
-
n("div",
|
|
952
|
-
], 12,
|
|
957
|
+
n("div", Ia, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
958
|
+
], 12, Va),
|
|
953
959
|
n("td", {
|
|
954
960
|
class: "vue-ui-data-table__tbody__td",
|
|
955
961
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
956
962
|
"data-cell": L.value.head[6] ?? ""
|
|
957
963
|
}, [
|
|
958
|
-
n("div",
|
|
959
|
-
], 12,
|
|
964
|
+
n("div", Fa, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
965
|
+
], 12, Oa)
|
|
960
966
|
], 6))), 256))
|
|
961
967
|
])
|
|
962
968
|
])
|
|
@@ -966,9 +972,9 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
966
972
|
]),
|
|
967
973
|
_: 1
|
|
968
974
|
}, 8, ["config"])) : y("", !0)
|
|
969
|
-
], 46,
|
|
975
|
+
], 46, Jt));
|
|
970
976
|
}
|
|
971
|
-
},
|
|
977
|
+
}, Ya = /* @__PURE__ */ Kt(Ma, [["__scopeId", "data-v-5bfdccb4"]]);
|
|
972
978
|
export {
|
|
973
|
-
|
|
979
|
+
Ya as default
|
|
974
980
|
};
|