vue-data-ui 3.0.0-next.0 → 3.0.0-next.1
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 +92 -66
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
- package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
- package/dist/img-D3JvqNF8.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
- package/dist/pdf-DROWzopj.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1018 -166
- package/dist/types/vue-data-ui.d.ts +1018 -166
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
- package/dist/vue-data-ui-BzMRz9Un.js +314 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
- package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
- package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
- package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
- package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
- package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
- package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
- package/package.json +1 -1
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
|
@@ -1,19 +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
|
-
|
|
1
|
+
import { useCssVars as $t, defineAsyncComponent as W, useSlots as wt, computed as k, ref as d, watch as He, shallowRef as We, onMounted as Ge, onBeforeUnmount as xt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as R, createBlock as D, createCommentVNode as y, renderSlot as m, 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 Ct, withKeys as Tt, createTextVNode as Lt } from "vue";
|
|
2
|
+
import { u as Nt, c as St, t as Pt, p as E, a as Vt, b as It, o as je, e as Z, v as N, d as ye, i as ne, f as U, X as Ot, s as ge, w as Ft, q as Mt, r as zt, x as At, y as Bt } from "./index-BSa4GlHG.js";
|
|
3
|
+
import { t as Rt, u as Dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as qe } from "./useNestedProp-uR74_CFG.js";
|
|
5
|
+
import { u as Et } from "./usePrinter-j3g1L2nh.js";
|
|
6
|
+
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ht from "./vue-ui-accordion-DzF-SPaZ.js";
|
|
9
|
+
import Ye from "./Legend-CIElSUHU.js";
|
|
10
|
+
import Wt from "./Title-CWxjC3bE.js";
|
|
11
|
+
import { _ as Ke } from "./Shape-Blrp5ZfP.js";
|
|
12
|
+
import Gt from "./img-D3JvqNF8.js";
|
|
13
|
+
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "height"], Qt = ["id"], Zt = ["stop-color"], ea = ["stop-color"], ta = { key: 1 }, aa = ["x", "y", "width", "height", "fill", "rx"], la = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], oa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], na = ["x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ra = ["x", "y", "font-size", "fill", "font-weight"], ia = ["x", "y", "font-size", "fill", "font-weight"], da = ["x", "y", "font-size", "fill", "font-weight"], va = ["y", "width", "height", "fill", "onMouseenter"], ca = {
|
|
14
15
|
key: 6,
|
|
15
16
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
17
|
+
}, ha = ["onClick"], pa = { style: "width:100%;padding-top: 36px;position:relative" }, ya = { class: "vue-ui-data-table" }, ga = { key: 0 }, fa = { style: { width: "100%" } }, ba = ["data-cell"], ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ka = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $a = ["data-cell"], wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = ["data-cell"], Ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ta = ["data-cell"], La = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Na = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pa = ["data-cell"], Va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ia = {
|
|
17
18
|
__name: "vue-ui-vertical-bar",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -30,65 +31,65 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
|
|
35
|
-
"
|
|
34
|
+
setup(Je, { expose: Qe, emit: Ze }) {
|
|
35
|
+
$t((a) => ({
|
|
36
|
+
"78b81303": a.tdo
|
|
36
37
|
}));
|
|
37
|
-
const
|
|
38
|
+
const et = W(() => import("./BaseIcon-BAHAKjob.js")), tt = W(() => import("./PackageVersion-B0wGS6pw.js")), at = W(() => import("./PenAndPaper-7o0xS-d4.js")), lt = W(() => import("./vue-ui-skeleton-DY48gQ96.js")), ot = W(() => import("./Tooltip-Cq9HywcX.js")), nt = W(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_vertical_bar: ut } = Nt(), st = wt(), T = Je, ee = k(() => !!T.dataset && T.dataset.length), C = d(St()), rt = d(null), ue = d(!1), se = d(""), te = d(0), it = d(null), fe = d(0), I = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), dt = Ze, e = k({
|
|
38
39
|
get: () => Ce(),
|
|
39
|
-
set: (
|
|
40
|
-
}), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } =
|
|
40
|
+
set: (a) => a
|
|
41
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Ut({ config: e.value }), { svgRef: xe } = Xt({ config: e.value.style.chart.title });
|
|
41
42
|
function Ce() {
|
|
42
|
-
const
|
|
43
|
+
const a = qe({
|
|
43
44
|
userConfig: T.config,
|
|
44
|
-
defaultConfig:
|
|
45
|
+
defaultConfig: ut
|
|
45
46
|
});
|
|
46
|
-
return
|
|
47
|
-
...
|
|
48
|
-
userConfig:
|
|
49
|
-
defaultConfig:
|
|
47
|
+
return a.theme ? {
|
|
48
|
+
...qe({
|
|
49
|
+
userConfig: Vt.vue_ui_vertical_bar[a.theme] || T.config,
|
|
50
|
+
defaultConfig: a
|
|
50
51
|
}),
|
|
51
|
-
customPalette: Pt[
|
|
52
|
-
} :
|
|
52
|
+
customPalette: Pt[a.theme] || E
|
|
53
|
+
} : a;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
He(() => T.config, (a) => {
|
|
55
56
|
e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, f.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
56
|
-
}, { deep: !0 }),
|
|
57
|
-
const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage:
|
|
57
|
+
}, { deep: !0 }), He(() => T.dataset, ae, { deep: !0 });
|
|
58
|
+
const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Et({
|
|
58
59
|
elementId: `vue-ui-vertical-bar_${C.value}`,
|
|
59
60
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
60
61
|
options: e.value.userOptions.print
|
|
61
|
-
}),
|
|
62
|
-
|
|
62
|
+
}), vt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = k(() => It(e.value.customPalette)), Ve = d(null), Ie = d(!1), ct = k(() => e.value.table.responsiveBreakpoint), O = We(null), X = We(null);
|
|
63
|
+
Ge(() => {
|
|
63
64
|
Oe();
|
|
64
65
|
});
|
|
65
66
|
function Oe() {
|
|
66
|
-
if (
|
|
67
|
+
if (je(T.dataset) && Z({
|
|
67
68
|
componentName: "VueUiVerticalBar",
|
|
68
69
|
type: "dataset"
|
|
69
|
-
}), te.value = T.dataset.flatMap((
|
|
70
|
-
const
|
|
71
|
-
const { width:
|
|
72
|
-
chart:
|
|
70
|
+
}), te.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), ht(), e.value.responsive) {
|
|
71
|
+
const a = Rt(() => {
|
|
72
|
+
const { width: l, height: t } = Dt({
|
|
73
|
+
chart: I.value,
|
|
73
74
|
title: e.value.style.chart.title.text ? be.value : null,
|
|
74
75
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
75
76
|
source: me.value,
|
|
76
77
|
noTitle: ke.value
|
|
77
78
|
});
|
|
78
79
|
requestAnimationFrame(() => {
|
|
79
|
-
ze.value =
|
|
80
|
+
ze.value = l, v.value = t / te.value - f.value * 2;
|
|
80
81
|
});
|
|
81
82
|
});
|
|
82
|
-
|
|
83
|
+
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);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
xt(() => {
|
|
87
|
+
O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect());
|
|
87
88
|
});
|
|
88
|
-
function
|
|
89
|
-
new ResizeObserver((
|
|
90
|
-
|
|
91
|
-
Ie.value = t.contentRect.width <
|
|
89
|
+
function ht() {
|
|
90
|
+
new ResizeObserver((l) => {
|
|
91
|
+
l.forEach((t) => {
|
|
92
|
+
Ie.value = t.contentRect.width < ct.value;
|
|
92
93
|
});
|
|
93
94
|
}).observe(Ve.value);
|
|
94
95
|
}
|
|
@@ -96,16 +97,16 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
96
97
|
showTable: e.value.table.show,
|
|
97
98
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
98
99
|
showTooltip: e.value.style.chart.tooltip.show
|
|
99
|
-
}), Fe =
|
|
100
|
-
!
|
|
100
|
+
}), Fe = k(() => $.value.sortDesc), M = k(() => (T.dataset.forEach((a, l) => {
|
|
101
|
+
!a.value && !a.children && Z({
|
|
101
102
|
componentName: "VueUiVerticalBar",
|
|
102
103
|
type: "datasetAttributeEmpty",
|
|
103
|
-
property: `value (index ${
|
|
104
|
-
}),
|
|
104
|
+
property: `value (index ${l})`
|
|
105
|
+
}), a.children && (je(a.children) ? Z({
|
|
105
106
|
componentName: "VueUiVerticalBar",
|
|
106
107
|
type: "datasetAttributeEmpty",
|
|
107
|
-
property: `children (index ${
|
|
108
|
-
}) :
|
|
108
|
+
property: `children (index ${l})`
|
|
109
|
+
}) : a.children.forEach((t, o) => {
|
|
109
110
|
[null, void 0].includes(t.name) && Z({
|
|
110
111
|
componentName: "VueUiVerticalBar",
|
|
111
112
|
type: "datasetSerieAttribute",
|
|
@@ -114,57 +115,57 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
114
115
|
index: o
|
|
115
116
|
});
|
|
116
117
|
}));
|
|
117
|
-
}), T.dataset.map((
|
|
118
|
-
const t = `vertical_parent_${
|
|
118
|
+
}), T.dataset.map((a, l) => {
|
|
119
|
+
const t = `vertical_parent_${l}_${C.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), w = b >= 0 ? 1 : -1;
|
|
119
120
|
return {
|
|
120
|
-
...
|
|
121
|
+
...a,
|
|
121
122
|
id: t,
|
|
122
|
-
absoluteIndex:
|
|
123
|
+
absoluteIndex: l,
|
|
123
124
|
shape: "square",
|
|
124
|
-
opacity:
|
|
125
|
-
value: Math.abs(
|
|
126
|
-
sign:
|
|
125
|
+
opacity: S.value.includes(t) ? 0.5 : 1,
|
|
126
|
+
value: Math.abs(b),
|
|
127
|
+
sign: w,
|
|
127
128
|
hasChildren: o,
|
|
128
129
|
isChild: !1,
|
|
129
130
|
segregate: () => K(t),
|
|
130
|
-
isSegregated:
|
|
131
|
-
color: ye(
|
|
132
|
-
children: !
|
|
131
|
+
isSegregated: S.value.includes(t),
|
|
132
|
+
color: ye(a.color) || Pe.value[l] || E[l] || E[l % E.length],
|
|
133
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted(le.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
|
|
133
134
|
...p,
|
|
134
135
|
value: N(Math.abs(p.value)),
|
|
135
|
-
absoluteIndex:
|
|
136
|
+
absoluteIndex: l,
|
|
136
137
|
sign: p.value >= 0 ? 1 : -1,
|
|
137
138
|
isChild: !0,
|
|
138
139
|
parentId: t,
|
|
139
|
-
parentName:
|
|
140
|
-
parentValue:
|
|
141
|
-
parentSign:
|
|
142
|
-
id: `vertical_child_${
|
|
140
|
+
parentName: a.name,
|
|
141
|
+
parentValue: b,
|
|
142
|
+
parentSign: w,
|
|
143
|
+
id: `vertical_child_${l}_${V}_${C.value}`,
|
|
143
144
|
childIndex: V,
|
|
144
|
-
color: ye(p.color) || ye(
|
|
145
|
+
color: ye(p.color) || ye(a.color) || Pe.value[l] || E[l] || E[l % E.length]
|
|
145
146
|
})).map((p, V) => ({
|
|
146
147
|
...p,
|
|
147
148
|
isFirstChild: V === 0,
|
|
148
|
-
isLastChild: V ===
|
|
149
|
+
isLastChild: V === a.children.length - 1
|
|
149
150
|
}))
|
|
150
151
|
};
|
|
151
|
-
}).toSorted(
|
|
152
|
+
}).toSorted(le.value ? () => 0 : (a, l) => Fe.value ? l.value - a.value : a.value - l.value))), Me = k(() => ({
|
|
152
153
|
cy: "vertical-bar-div-legend",
|
|
153
154
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
154
155
|
color: e.value.style.chart.legend.color,
|
|
155
156
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
156
157
|
paddingBottom: 12,
|
|
157
158
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
158
|
-
})), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap),
|
|
159
|
+
})), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap), pt = k(() => (v.value + f.value) * te.value), ze = d(512), g = k(() => ({
|
|
159
160
|
width: ze.value,
|
|
160
|
-
height:
|
|
161
|
+
height: pt.value,
|
|
161
162
|
padding: {
|
|
162
163
|
top: 12,
|
|
163
164
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
164
165
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
165
166
|
bottom: 12
|
|
166
167
|
}
|
|
167
|
-
})), s =
|
|
168
|
+
})), s = k(() => ({
|
|
168
169
|
fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
|
|
169
170
|
top: g.value.padding.top,
|
|
170
171
|
left: g.value.padding.left,
|
|
@@ -172,103 +173,103 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
172
173
|
bottom: g.value.padding.top + g.value.height,
|
|
173
174
|
width: g.value.width - (g.value.padding.left + g.value.padding.right)
|
|
174
175
|
}));
|
|
175
|
-
function
|
|
176
|
-
te.value =
|
|
176
|
+
function ae() {
|
|
177
|
+
te.value = z.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
177
178
|
}
|
|
178
|
-
const
|
|
179
|
-
function K(
|
|
180
|
-
|
|
179
|
+
const S = d([]);
|
|
180
|
+
function K(a) {
|
|
181
|
+
S.value.includes(a) ? S.value = S.value.filter((l) => l !== a) : S.value.push(a), ae(), dt("selectLegend", z.value);
|
|
181
182
|
}
|
|
182
|
-
const
|
|
183
|
-
function Ae(
|
|
184
|
-
return
|
|
185
|
-
v: N(Math.abs(
|
|
183
|
+
const z = k(() => M.value.filter((a) => !S.value.includes(a.id))), P = k(() => z.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
184
|
+
function Ae(a, l = !1, t = 0) {
|
|
185
|
+
return l ? U({
|
|
186
|
+
v: N(Math.abs(a) / P.value * 100),
|
|
186
187
|
s: "%",
|
|
187
188
|
r: t
|
|
188
|
-
}) : Math.abs(
|
|
189
|
+
}) : Math.abs(a) / P.value;
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
return s.value.width / (
|
|
191
|
+
const A = k(() => z.value.flatMap((a) => a.hasChildren ? a.children : a)), B = k(() => A.value.map((a) => a.sign).includes(-1)), yt = k(() => Math.max(...z.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
192
|
+
function x(a) {
|
|
193
|
+
const l = a / yt.value;
|
|
194
|
+
return s.value.width / (B.value ? 2 : 1) * l;
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
196
|
+
function gt(a) {
|
|
197
|
+
return x(a) + s.value.left;
|
|
197
198
|
}
|
|
198
|
-
function J(
|
|
199
|
-
const t =
|
|
199
|
+
function J(a, l) {
|
|
200
|
+
const t = z.value.find((w) => w.id === a.parentId), o = s.value.top + (f.value + v.value) * l, b = t.children.length * (f.value + v.value);
|
|
200
201
|
return {
|
|
201
|
-
y: o +
|
|
202
|
+
y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
202
203
|
name: t.name,
|
|
203
204
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
204
|
-
percentageToTotal: isNaN(t.value /
|
|
205
|
+
percentageToTotal: isNaN(t.value / P.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
205
206
|
sign: t.sign
|
|
206
207
|
};
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
209
|
+
function ft() {
|
|
210
|
+
return z.value;
|
|
210
211
|
}
|
|
211
212
|
const ve = d(null), ce = d(null);
|
|
212
|
-
function
|
|
213
|
+
function bt(a, l) {
|
|
213
214
|
ce.value = {
|
|
214
|
-
datapoint:
|
|
215
|
-
seriesIndex:
|
|
216
|
-
series:
|
|
215
|
+
datapoint: a,
|
|
216
|
+
seriesIndex: l,
|
|
217
|
+
series: M.value,
|
|
217
218
|
config: e.value
|
|
218
|
-
}, ue.value = !0, ve.value =
|
|
219
|
+
}, ue.value = !0, ve.value = a.id;
|
|
219
220
|
let t = "";
|
|
220
|
-
const o =
|
|
221
|
-
|
|
222
|
-
datapoint:
|
|
223
|
-
series:
|
|
221
|
+
const o = a.isChild ? a.parentName : a.name, b = a.isChild ? a.name : "", w = e.value.style.chart.tooltip.customFormat;
|
|
222
|
+
At(w) && Bt(() => w({
|
|
223
|
+
datapoint: a,
|
|
224
|
+
series: M.value,
|
|
224
225
|
config: e.value,
|
|
225
|
-
seriesIndex:
|
|
226
|
-
})) ? se.value =
|
|
227
|
-
datapoint:
|
|
228
|
-
series:
|
|
226
|
+
seriesIndex: l
|
|
227
|
+
})) ? se.value = w({
|
|
228
|
+
datapoint: a,
|
|
229
|
+
series: M.value,
|
|
229
230
|
config: e.value,
|
|
230
|
-
seriesIndex:
|
|
231
|
+
seriesIndex: l
|
|
231
232
|
}) : (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;">
|
|
232
|
-
<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="${
|
|
233
|
-
${
|
|
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}"/>${st.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${a.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
234
|
+
${b ? `<div>${b}</div>` : ""}
|
|
234
235
|
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
|
|
235
236
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
a.sign === 1 ? a.value : -a.value,
|
|
238
|
+
U({
|
|
238
239
|
p: e.value.style.chart.tooltip.prefix,
|
|
239
|
-
v:
|
|
240
|
+
v: a.sign === 1 ? a.value : -a.value,
|
|
240
241
|
s: e.value.style.chart.tooltip.suffix,
|
|
241
242
|
r: e.value.style.chart.tooltip.roundingValue
|
|
242
243
|
}),
|
|
243
|
-
{ datapoint:
|
|
244
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
245
|
-
v: Math.abs(
|
|
244
|
+
{ datapoint: a, seriesIndex: l }
|
|
245
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
|
|
246
|
+
v: Math.abs(a.value) / P.value * 100,
|
|
246
247
|
s: "%",
|
|
247
248
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
248
|
-
})}</b></div>`,
|
|
249
|
-
v: Math.abs(
|
|
249
|
+
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
|
|
250
|
+
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
250
251
|
s: "%",
|
|
251
252
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
252
253
|
})}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
|
|
253
254
|
}
|
|
254
|
-
function Be(
|
|
255
|
+
function Be(a, l, t, o) {
|
|
255
256
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
256
257
|
return "";
|
|
257
|
-
const
|
|
258
|
+
const b = ne(
|
|
258
259
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
259
|
-
N(o === -1 &&
|
|
260
|
-
|
|
260
|
+
N(o === -1 && a >= 0 ? -a : a),
|
|
261
|
+
U({
|
|
261
262
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
262
|
-
v: N(o === -1 &&
|
|
263
|
+
v: N(o === -1 && a >= 0 ? -a : a),
|
|
263
264
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
264
265
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
265
266
|
}),
|
|
266
|
-
{ datapoint:
|
|
267
|
-
),
|
|
268
|
-
return `${
|
|
267
|
+
{ datapoint: l, seriesIndex: t }
|
|
268
|
+
), w = `(${Ae(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
269
|
+
return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
|
|
269
270
|
}
|
|
270
|
-
const L =
|
|
271
|
-
const
|
|
271
|
+
const L = k(() => {
|
|
272
|
+
const a = [
|
|
272
273
|
e.value.translations.parentName,
|
|
273
274
|
e.value.translations.value,
|
|
274
275
|
e.value.translations.percentageToTotal,
|
|
@@ -276,15 +277,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
276
277
|
e.value.translations.value,
|
|
277
278
|
e.value.translations.percentageToSerie,
|
|
278
279
|
e.value.translations.percentageToTotal
|
|
279
|
-
],
|
|
280
|
+
], l = A.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
280
281
|
color: t.color,
|
|
281
282
|
parentName: t.parentName,
|
|
282
283
|
parentValue: t.parentValue,
|
|
283
|
-
percentageToTotal: t.parentValue /
|
|
284
|
+
percentageToTotal: t.parentValue / P.value,
|
|
284
285
|
childName: t.name,
|
|
285
286
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
286
287
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
287
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
288
|
+
childPercentageToTotal: Math.abs(t.value) / P.value
|
|
288
289
|
} : {
|
|
289
290
|
color: "",
|
|
290
291
|
parentName: "",
|
|
@@ -293,21 +294,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
293
294
|
childName: t.name,
|
|
294
295
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
295
296
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
296
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
297
|
+
childPercentageToTotal: Math.abs(t.value) / P.value
|
|
297
298
|
} : {
|
|
298
299
|
color: t.color,
|
|
299
300
|
parentName: t.name,
|
|
300
301
|
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
301
|
-
percentageToTotal: Math.abs(t.value) /
|
|
302
|
+
percentageToTotal: Math.abs(t.value) / P.value,
|
|
302
303
|
childName: "",
|
|
303
304
|
childValue: "",
|
|
304
305
|
childPercentageToParent: "",
|
|
305
306
|
childPercentageToTotal: ""
|
|
306
307
|
});
|
|
307
|
-
return { head:
|
|
308
|
+
return { head: a, body: l };
|
|
308
309
|
});
|
|
309
|
-
function Re(
|
|
310
|
-
const
|
|
310
|
+
function Re(a = null) {
|
|
311
|
+
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) => [
|
|
311
312
|
p.parentName,
|
|
312
313
|
p.parentValue,
|
|
313
314
|
p.percentageToTotal,
|
|
@@ -315,62 +316,76 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
315
316
|
p.childValue,
|
|
316
317
|
p.childPercentageToParent,
|
|
317
318
|
p.childPercentageToTotal
|
|
318
|
-
]),
|
|
319
|
-
|
|
319
|
+
]), b = l.concat([t]).concat(o), w = Mt(b);
|
|
320
|
+
a ? a(w) : zt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
320
321
|
}
|
|
321
|
-
const
|
|
322
|
-
function
|
|
323
|
-
|
|
322
|
+
const H = d(!1);
|
|
323
|
+
function De(a) {
|
|
324
|
+
H.value = a, fe.value += 1;
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
+
function Ee() {
|
|
326
327
|
$.value.showTable = !$.value.showTable;
|
|
327
328
|
}
|
|
328
329
|
const mt = d({
|
|
329
330
|
none: 0,
|
|
330
331
|
asc: 1,
|
|
331
332
|
desc: 2
|
|
332
|
-
}),
|
|
333
|
-
|
|
333
|
+
}), F = d(0), le = d(!1);
|
|
334
|
+
Ge(() => {
|
|
334
335
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
|
|
335
336
|
componentName: "VueUiVerticalBar",
|
|
336
337
|
type: "attributeWrongValue",
|
|
337
338
|
property: "style.chart.layout.bars.sort",
|
|
338
339
|
key: e.value.style.chart.layout.bars.sort
|
|
339
|
-
}),
|
|
340
|
+
}), F.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = F.value === 2, le.value = F.value === 0;
|
|
340
341
|
});
|
|
341
342
|
function kt() {
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
function Ee() {
|
|
345
|
-
kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
|
|
343
|
+
F.value += 1, F.value > 2 && (F.value = 0);
|
|
346
344
|
}
|
|
347
345
|
function Ue() {
|
|
346
|
+
kt(), $.value.sortDesc = F.value === 2, le.value = F.value === 0, ae();
|
|
347
|
+
}
|
|
348
|
+
function Xe() {
|
|
348
349
|
$.value.showTooltip = !$.value.showTooltip;
|
|
349
350
|
}
|
|
350
351
|
const oe = d(!1);
|
|
351
352
|
function he() {
|
|
352
353
|
oe.value = !oe.value;
|
|
353
354
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
async function _t({ scale: a = 2 } = {}) {
|
|
356
|
+
if (!I.value) return;
|
|
357
|
+
const { width: l, height: t } = I.value.getBoundingClientRect(), o = l / t, { imageUri: b, base64: w } = await Gt({ domElement: I.value, base64: !0, img: !0, scale: a });
|
|
358
|
+
return {
|
|
359
|
+
imageUri: b,
|
|
360
|
+
base64: w,
|
|
361
|
+
title: e.value.style.chart.title.text,
|
|
362
|
+
width: l,
|
|
363
|
+
height: t,
|
|
364
|
+
aspectRatio: o
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
return Qe({
|
|
368
|
+
getData: ft,
|
|
369
|
+
getImage: _t,
|
|
370
|
+
recalculateHeight: ae,
|
|
357
371
|
generatePdf: Ne,
|
|
358
372
|
generateCsv: Re,
|
|
359
|
-
generateImage:
|
|
360
|
-
toggleTable:
|
|
361
|
-
toggleSort:
|
|
362
|
-
toggleTooltip:
|
|
363
|
-
toggleAnnotator: he
|
|
364
|
-
|
|
365
|
-
|
|
373
|
+
generateImage: Se,
|
|
374
|
+
toggleTable: Ee,
|
|
375
|
+
toggleSort: Ue,
|
|
376
|
+
toggleTooltip: Xe,
|
|
377
|
+
toggleAnnotator: he,
|
|
378
|
+
toggleFullscreen: De
|
|
379
|
+
}), (a, l) => (u(), i("div", {
|
|
380
|
+
class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
366
381
|
ref_key: "verticalBarChart",
|
|
367
|
-
ref:
|
|
382
|
+
ref: I,
|
|
368
383
|
id: `vue-ui-vertical-bar_${C.value}`,
|
|
369
384
|
style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
370
|
-
onMouseenter:
|
|
371
|
-
onMouseleave:
|
|
385
|
+
onMouseenter: l[5] || (l[5] = () => r($e)(!0)),
|
|
386
|
+
onMouseleave: l[6] || (l[6] = () => r($e)(!1))
|
|
372
387
|
}, [
|
|
373
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
388
|
+
e.value.userOptions.buttons.annotator ? (u(), D(r(at), {
|
|
374
389
|
key: 0,
|
|
375
390
|
svgRef: r(xe),
|
|
376
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -378,7 +393,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
378
393
|
active: oe.value,
|
|
379
394
|
onClose: he
|
|
380
395
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
381
|
-
|
|
396
|
+
vt.value ? (u(), i("div", {
|
|
382
397
|
key: 1,
|
|
383
398
|
ref_key: "noTitle",
|
|
384
399
|
ref: ke,
|
|
@@ -391,7 +406,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
391
406
|
ref: be,
|
|
392
407
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
393
408
|
}, [
|
|
394
|
-
(u(),
|
|
409
|
+
(u(), D(Wt, {
|
|
395
410
|
key: `title_${_e.value}`,
|
|
396
411
|
config: {
|
|
397
412
|
title: {
|
|
@@ -405,9 +420,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
405
420
|
}
|
|
406
421
|
}, null, 8, ["config"]))
|
|
407
422
|
], 512)) : y("", !0),
|
|
408
|
-
e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(),
|
|
423
|
+
e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), D(r(nt), {
|
|
409
424
|
ref_key: "details",
|
|
410
|
-
ref:
|
|
425
|
+
ref: rt,
|
|
411
426
|
key: `user_options_${fe.value}`,
|
|
412
427
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
413
428
|
color: e.value.style.chart.color,
|
|
@@ -421,130 +436,131 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
421
436
|
hasTable: e.value.userOptions.buttons.table,
|
|
422
437
|
hasSort: e.value.userOptions.buttons.sort,
|
|
423
438
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
424
|
-
isFullscreen:
|
|
439
|
+
isFullscreen: H.value,
|
|
425
440
|
isTooltip: $.value.showTooltip,
|
|
426
441
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
427
|
-
chartElement:
|
|
442
|
+
chartElement: I.value,
|
|
428
443
|
position: e.value.userOptions.position,
|
|
429
444
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
430
445
|
isAnnotation: oe.value,
|
|
431
446
|
callbacks: e.value.userOptions.callbacks,
|
|
432
|
-
|
|
447
|
+
printScale: e.value.userOptions.print.scale,
|
|
448
|
+
onToggleFullscreen: De,
|
|
433
449
|
onGeneratePdf: r(Ne),
|
|
434
450
|
onGenerateCsv: Re,
|
|
435
|
-
onGenerateImage: r(
|
|
436
|
-
onToggleTable:
|
|
437
|
-
onToggleSort:
|
|
438
|
-
onToggleTooltip:
|
|
451
|
+
onGenerateImage: r(Se),
|
|
452
|
+
onToggleTable: Ee,
|
|
453
|
+
onToggleSort: Ue,
|
|
454
|
+
onToggleTooltip: Xe,
|
|
439
455
|
onToggleAnnotator: he,
|
|
440
456
|
style: c({
|
|
441
457
|
visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
|
|
442
458
|
})
|
|
443
459
|
}, pe({ _: 2 }, [
|
|
444
|
-
|
|
460
|
+
a.$slots.menuIcon ? {
|
|
445
461
|
name: "menuIcon",
|
|
446
|
-
fn:
|
|
447
|
-
|
|
462
|
+
fn: _(({ isOpen: t, color: o }) => [
|
|
463
|
+
m(a.$slots, "menuIcon", G(j({ isOpen: t, color: o })), void 0, !0)
|
|
448
464
|
]),
|
|
449
465
|
key: "0"
|
|
450
466
|
} : void 0,
|
|
451
|
-
|
|
467
|
+
a.$slots.optionTooltip ? {
|
|
452
468
|
name: "optionTooltip",
|
|
453
|
-
fn:
|
|
454
|
-
|
|
469
|
+
fn: _(() => [
|
|
470
|
+
m(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
455
471
|
]),
|
|
456
472
|
key: "1"
|
|
457
473
|
} : void 0,
|
|
458
|
-
|
|
474
|
+
a.$slots.optionPdf ? {
|
|
459
475
|
name: "optionPdf",
|
|
460
|
-
fn:
|
|
461
|
-
|
|
476
|
+
fn: _(() => [
|
|
477
|
+
m(a.$slots, "optionPdf", {}, void 0, !0)
|
|
462
478
|
]),
|
|
463
479
|
key: "2"
|
|
464
480
|
} : void 0,
|
|
465
|
-
|
|
481
|
+
a.$slots.optionCsv ? {
|
|
466
482
|
name: "optionCsv",
|
|
467
|
-
fn:
|
|
468
|
-
|
|
483
|
+
fn: _(() => [
|
|
484
|
+
m(a.$slots, "optionCsv", {}, void 0, !0)
|
|
469
485
|
]),
|
|
470
486
|
key: "3"
|
|
471
487
|
} : void 0,
|
|
472
|
-
|
|
488
|
+
a.$slots.optionImg ? {
|
|
473
489
|
name: "optionImg",
|
|
474
|
-
fn:
|
|
475
|
-
|
|
490
|
+
fn: _(() => [
|
|
491
|
+
m(a.$slots, "optionImg", {}, void 0, !0)
|
|
476
492
|
]),
|
|
477
493
|
key: "4"
|
|
478
494
|
} : void 0,
|
|
479
|
-
|
|
495
|
+
a.$slots.optionTable ? {
|
|
480
496
|
name: "optionTable",
|
|
481
|
-
fn:
|
|
482
|
-
|
|
497
|
+
fn: _(() => [
|
|
498
|
+
m(a.$slots, "optionTable", {}, void 0, !0)
|
|
483
499
|
]),
|
|
484
500
|
key: "5"
|
|
485
501
|
} : void 0,
|
|
486
|
-
|
|
502
|
+
a.$slots.optionLabels ? {
|
|
487
503
|
name: "optionLabels",
|
|
488
|
-
fn:
|
|
489
|
-
|
|
504
|
+
fn: _(() => [
|
|
505
|
+
m(a.$slots, "optionLabels", {}, void 0, !0)
|
|
490
506
|
]),
|
|
491
507
|
key: "6"
|
|
492
508
|
} : void 0,
|
|
493
|
-
|
|
509
|
+
a.$slots.optionSort ? {
|
|
494
510
|
name: "optionSort",
|
|
495
|
-
fn:
|
|
496
|
-
|
|
511
|
+
fn: _(() => [
|
|
512
|
+
m(a.$slots, "optionSort", {}, void 0, !0)
|
|
497
513
|
]),
|
|
498
514
|
key: "7"
|
|
499
515
|
} : void 0,
|
|
500
|
-
|
|
516
|
+
a.$slots.optionFullscreen ? {
|
|
501
517
|
name: "optionFullscreen",
|
|
502
|
-
fn:
|
|
503
|
-
|
|
518
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
519
|
+
m(a.$slots, "optionFullscreen", G(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
504
520
|
]),
|
|
505
521
|
key: "8"
|
|
506
522
|
} : void 0,
|
|
507
|
-
|
|
523
|
+
a.$slots.optionAnnotator ? {
|
|
508
524
|
name: "optionAnnotator",
|
|
509
|
-
fn:
|
|
510
|
-
|
|
525
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
526
|
+
m(a.$slots, "optionAnnotator", G(j({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
511
527
|
]),
|
|
512
528
|
key: "9"
|
|
513
529
|
} : void 0
|
|
514
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
530
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
515
531
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
|
|
516
532
|
key: 4,
|
|
517
533
|
ref_key: "chartLegend",
|
|
518
534
|
ref: re
|
|
519
535
|
}, [
|
|
520
|
-
(u(),
|
|
536
|
+
(u(), D(Ye, {
|
|
521
537
|
key: `legend_top_${ie.value}`,
|
|
522
|
-
legendSet:
|
|
538
|
+
legendSet: M.value,
|
|
523
539
|
config: Me.value,
|
|
524
|
-
onClickMarker:
|
|
540
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => K(t.id))
|
|
525
541
|
}, pe({
|
|
526
|
-
item:
|
|
542
|
+
item: _(({ legend: t, index: o }) => [
|
|
527
543
|
n("div", {
|
|
528
|
-
onClick: (
|
|
529
|
-
style: c(`opacity:${
|
|
544
|
+
onClick: (b) => K(t.id),
|
|
545
|
+
style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
530
546
|
}, h(t.name) + ": " + h(r(ne)(
|
|
531
547
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
532
548
|
t.value,
|
|
533
|
-
r(
|
|
549
|
+
r(U)({
|
|
534
550
|
p: e.value.style.chart.legend.prefix,
|
|
535
551
|
v: t.value,
|
|
536
552
|
s: e.value.style.chart.legend.suffix,
|
|
537
553
|
r: e.value.style.chart.legend.roundingValue
|
|
538
554
|
}),
|
|
539
555
|
{ datapoint: t, seriesIndex: o }
|
|
540
|
-
)), 13,
|
|
556
|
+
)), 13, Yt)
|
|
541
557
|
]),
|
|
542
558
|
_: 2
|
|
543
559
|
}, [
|
|
544
|
-
|
|
560
|
+
a.$slots.pattern ? {
|
|
545
561
|
name: "legend-pattern",
|
|
546
|
-
fn:
|
|
547
|
-
Q(
|
|
562
|
+
fn: _(({ legend: t, index: o }) => [
|
|
563
|
+
Q(Ke, {
|
|
548
564
|
shape: t.shape,
|
|
549
565
|
radius: 30,
|
|
550
566
|
stroke: "none",
|
|
@@ -560,13 +576,13 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
560
576
|
key: 5,
|
|
561
577
|
ref_key: "svgRef",
|
|
562
578
|
ref: xe,
|
|
563
|
-
xmlns: r(
|
|
564
|
-
class:
|
|
579
|
+
xmlns: r(Ot),
|
|
580
|
+
class: R({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
565
581
|
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
566
582
|
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
567
583
|
}, [
|
|
568
|
-
Q(r(
|
|
569
|
-
|
|
584
|
+
Q(r(tt)),
|
|
585
|
+
a.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
570
586
|
key: 0,
|
|
571
587
|
x: 0,
|
|
572
588
|
y: 0,
|
|
@@ -576,9 +592,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
576
592
|
pointerEvents: "none"
|
|
577
593
|
}
|
|
578
594
|
}, [
|
|
579
|
-
|
|
580
|
-
], 8,
|
|
581
|
-
(u(!0), i(
|
|
595
|
+
m(a.$slots, "chart-background", {}, void 0, !0)
|
|
596
|
+
], 8, Jt)) : y("", !0),
|
|
597
|
+
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("linearGradient", {
|
|
582
598
|
x1: "0%",
|
|
583
599
|
y1: "0%",
|
|
584
600
|
x2: "100%",
|
|
@@ -588,53 +604,53 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
588
604
|
n("stop", {
|
|
589
605
|
offset: "0%",
|
|
590
606
|
"stop-color": t.color
|
|
591
|
-
}, null, 8,
|
|
607
|
+
}, null, 8, Zt),
|
|
592
608
|
n("stop", {
|
|
593
609
|
offset: "100%",
|
|
594
|
-
"stop-color": r(ge)(r(
|
|
595
|
-
}, null, 8,
|
|
596
|
-
], 8,
|
|
597
|
-
|
|
598
|
-
(u(!0), i(
|
|
599
|
-
|
|
610
|
+
"stop-color": r(ge)(r(Ft)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
611
|
+
}, null, 8, ea)
|
|
612
|
+
], 8, Qt))), 256)),
|
|
613
|
+
a.$slots.pattern ? (u(), i("g", ta, [
|
|
614
|
+
(u(!0), i(q, null, Y(A.value, (t) => (u(), i("defs", null, [
|
|
615
|
+
m(a.$slots, "pattern", Ct({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
600
616
|
]))), 256))
|
|
601
617
|
])) : y("", !0),
|
|
602
|
-
(u(!0), i(
|
|
618
|
+
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
|
|
603
619
|
n("rect", {
|
|
604
|
-
x: r(N)(
|
|
620
|
+
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
|
|
605
621
|
y: s.value.top + (f.value + v.value) * o,
|
|
606
|
-
width: r(N)(
|
|
622
|
+
width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
|
|
607
623
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
608
624
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
609
625
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
610
|
-
class:
|
|
611
|
-
}, null, 10,
|
|
626
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
627
|
+
}, null, 10, aa)
|
|
612
628
|
]))), 256)),
|
|
613
|
-
(u(!0), i(
|
|
629
|
+
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
|
|
614
630
|
n("rect", {
|
|
615
|
-
x: r(N)(
|
|
631
|
+
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
|
|
616
632
|
y: s.value.top + (f.value + v.value) * o,
|
|
617
|
-
width: r(N)(
|
|
633
|
+
width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
|
|
618
634
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
619
635
|
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
620
636
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
621
637
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
622
638
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
623
|
-
class:
|
|
624
|
-
}, null, 10,
|
|
625
|
-
|
|
639
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
640
|
+
}, null, 10, la),
|
|
641
|
+
a.$slots.pattern ? (u(), i("rect", {
|
|
626
642
|
key: 0,
|
|
627
|
-
x: r(N)(
|
|
643
|
+
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
|
|
628
644
|
y: s.value.top + (f.value + v.value) * o,
|
|
629
|
-
width: r(N)(
|
|
645
|
+
width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
|
|
630
646
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
631
647
|
fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
|
|
632
648
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
633
649
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
634
650
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
635
|
-
class:
|
|
636
|
-
}, null, 10,
|
|
637
|
-
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
651
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
652
|
+
}, null, 10, oa)) : y("", !0),
|
|
653
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== A.value.length - 1 ? (u(), i("line", {
|
|
638
654
|
key: 1,
|
|
639
655
|
x1: 0,
|
|
640
656
|
x2: s.value.left,
|
|
@@ -643,8 +659,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
643
659
|
stroke: e.value.style.chart.layout.separators.color,
|
|
644
660
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
645
661
|
"stroke-linecap": "round"
|
|
646
|
-
}, null, 8,
|
|
647
|
-
|
|
662
|
+
}, null, 8, na)) : y("", !0),
|
|
663
|
+
B.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
|
|
648
664
|
key: 2,
|
|
649
665
|
x1: s.value.left + s.value.width / 2,
|
|
650
666
|
x2: s.value.left + s.value.width / 2,
|
|
@@ -653,15 +669,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
653
669
|
stroke: e.value.style.chart.layout.separators.color,
|
|
654
670
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
655
671
|
"stroke-linecap": "round"
|
|
656
|
-
}, null, 8,
|
|
672
|
+
}, null, 8, ua)) : y("", !0),
|
|
657
673
|
n("text", {
|
|
658
|
-
x:
|
|
674
|
+
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,
|
|
659
675
|
y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
660
|
-
"text-anchor": !
|
|
676
|
+
"text-anchor": !B.value || t.sign === -1 ? "start" : "end",
|
|
661
677
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
662
678
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
663
679
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
664
|
-
}, h(Be(t.value, t, o, t.sign)), 9,
|
|
680
|
+
}, h(Be(t.value, t, o, t.sign)), 9, sa),
|
|
665
681
|
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
|
|
666
682
|
key: 3,
|
|
667
683
|
"text-anchor": "end",
|
|
@@ -670,7 +686,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
670
686
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
671
687
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
672
688
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
673
|
-
}, h(t.name), 9,
|
|
689
|
+
}, h(t.name), 9, ra)) : y("", !0),
|
|
674
690
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
675
691
|
key: 4,
|
|
676
692
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -679,7 +695,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
679
695
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
680
696
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
681
697
|
"text-anchor": "start"
|
|
682
|
-
}, h(J(t, o).name), 9,
|
|
698
|
+
}, h(J(t, o).name), 9, ia)) : y("", !0),
|
|
683
699
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
684
700
|
key: 5,
|
|
685
701
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -688,25 +704,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
688
704
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
689
705
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
690
706
|
"text-anchor": "start"
|
|
691
|
-
}, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9,
|
|
707
|
+
}, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, da)) : y("", !0),
|
|
692
708
|
n("rect", {
|
|
693
709
|
x: 0,
|
|
694
710
|
y: s.value.top + (f.value + v.value) * o - f.value / 2,
|
|
695
711
|
width: g.value.width <= 0 ? 1e-4 : g.value.width,
|
|
696
712
|
height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
|
|
697
713
|
fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
698
|
-
onMouseenter: (
|
|
699
|
-
onMouseleave:
|
|
700
|
-
|
|
714
|
+
onMouseenter: (b) => bt(t, o),
|
|
715
|
+
onMouseleave: l[1] || (l[1] = (b) => {
|
|
716
|
+
it.value = null, ue.value = !1, ve.value = null;
|
|
701
717
|
})
|
|
702
|
-
}, null, 40,
|
|
718
|
+
}, null, 40, va)
|
|
703
719
|
]))), 256)),
|
|
704
|
-
|
|
705
|
-
], 14,
|
|
706
|
-
|
|
707
|
-
|
|
720
|
+
m(a.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
721
|
+
], 14, Kt)) : y("", !0),
|
|
722
|
+
a.$slots.watermark ? (u(), i("div", ca, [
|
|
723
|
+
m(a.$slots, "watermark", G(j({ isPrinting: r(Te) || r(Le) })), void 0, !0)
|
|
708
724
|
])) : y("", !0),
|
|
709
|
-
ee.value ? y("", !0) : (u(),
|
|
725
|
+
ee.value ? y("", !0) : (u(), D(r(lt), {
|
|
710
726
|
key: 7,
|
|
711
727
|
config: {
|
|
712
728
|
type: "verticalBar",
|
|
@@ -726,34 +742,34 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
726
742
|
ref_key: "chartLegend",
|
|
727
743
|
ref: re
|
|
728
744
|
}, [
|
|
729
|
-
(u(),
|
|
745
|
+
(u(), D(Ye, {
|
|
730
746
|
key: `legend_bottom_${ie.value}`,
|
|
731
|
-
legendSet:
|
|
747
|
+
legendSet: M.value,
|
|
732
748
|
config: Me.value,
|
|
733
|
-
onClickMarker:
|
|
749
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => K(t.id))
|
|
734
750
|
}, pe({
|
|
735
|
-
item:
|
|
751
|
+
item: _(({ legend: t, index: o }) => [
|
|
736
752
|
n("div", {
|
|
737
|
-
onClick: (
|
|
738
|
-
style: c(`opacity:${
|
|
753
|
+
onClick: (b) => K(t.id),
|
|
754
|
+
style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
739
755
|
}, h(t.name) + ": " + h(r(ne)(
|
|
740
756
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
741
757
|
t.value,
|
|
742
|
-
r(
|
|
758
|
+
r(U)({
|
|
743
759
|
p: e.value.style.chart.legend.prefix,
|
|
744
760
|
v: t.value,
|
|
745
761
|
s: e.value.style.chart.legend.suffix,
|
|
746
762
|
r: e.value.style.chart.legend.roundingValue
|
|
747
763
|
}),
|
|
748
764
|
{ datapoint: t, seriesIndex: o }
|
|
749
|
-
)), 13,
|
|
765
|
+
)), 13, ha)
|
|
750
766
|
]),
|
|
751
767
|
_: 2
|
|
752
768
|
}, [
|
|
753
|
-
|
|
769
|
+
a.$slots.pattern ? {
|
|
754
770
|
name: "legend-pattern",
|
|
755
|
-
fn:
|
|
756
|
-
Q(
|
|
771
|
+
fn: _(({ legend: t, index: o }) => [
|
|
772
|
+
Q(Ke, {
|
|
757
773
|
shape: t.shape,
|
|
758
774
|
radius: 30,
|
|
759
775
|
stroke: "none",
|
|
@@ -765,17 +781,17 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
765
781
|
} : void 0
|
|
766
782
|
]), 1032, ["legendSet", "config"]))
|
|
767
783
|
], 512)) : y("", !0),
|
|
768
|
-
|
|
769
|
-
|
|
784
|
+
m(a.$slots, "legend", { legend: M.value }, void 0, !0),
|
|
785
|
+
a.$slots.source ? (u(), i("div", {
|
|
770
786
|
key: 9,
|
|
771
787
|
ref_key: "source",
|
|
772
788
|
ref: me,
|
|
773
789
|
dir: "auto"
|
|
774
790
|
}, [
|
|
775
|
-
|
|
791
|
+
m(a.$slots, "source", {}, void 0, !0)
|
|
776
792
|
], 512)) : y("", !0),
|
|
777
|
-
Q(r(
|
|
778
|
-
show: $.value.showTooltip && ue.value &&
|
|
793
|
+
Q(r(ot), {
|
|
794
|
+
show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
|
|
779
795
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
780
796
|
color: e.value.style.chart.tooltip.color,
|
|
781
797
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -785,20 +801,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
785
801
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
786
802
|
position: e.value.style.chart.tooltip.position,
|
|
787
803
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
788
|
-
parent:
|
|
804
|
+
parent: I.value,
|
|
789
805
|
content: se.value,
|
|
790
|
-
isFullscreen:
|
|
806
|
+
isFullscreen: H.value,
|
|
791
807
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
792
808
|
}, {
|
|
793
|
-
"tooltip-before":
|
|
794
|
-
|
|
809
|
+
"tooltip-before": _(() => [
|
|
810
|
+
m(a.$slots, "tooltip-before", G(j({ ...ce.value })), void 0, !0)
|
|
795
811
|
]),
|
|
796
|
-
"tooltip-after":
|
|
797
|
-
|
|
812
|
+
"tooltip-after": _(() => [
|
|
813
|
+
m(a.$slots, "tooltip-after", G(j({ ...ce.value })), void 0, !0)
|
|
798
814
|
]),
|
|
799
815
|
_: 3
|
|
800
816
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
801
|
-
ee.value ? (u(),
|
|
817
|
+
ee.value ? (u(), D(Ht, {
|
|
802
818
|
key: 10,
|
|
803
819
|
hideDetails: "",
|
|
804
820
|
config: {
|
|
@@ -814,21 +830,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
814
830
|
}
|
|
815
831
|
}
|
|
816
832
|
}, {
|
|
817
|
-
content:
|
|
833
|
+
content: _(() => [
|
|
818
834
|
n("div", {
|
|
819
835
|
ref_key: "tableContainer",
|
|
820
836
|
ref: Ve,
|
|
821
837
|
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
822
838
|
}, [
|
|
823
|
-
n("div",
|
|
839
|
+
n("div", pa, [
|
|
824
840
|
n("div", {
|
|
825
841
|
role: "button",
|
|
826
842
|
tabindex: "0",
|
|
827
843
|
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};`),
|
|
828
|
-
onClick:
|
|
829
|
-
onKeypress:
|
|
844
|
+
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
845
|
+
onKeypress: l[4] || (l[4] = Tt((t) => $.value.showTable = !1, ["enter"]))
|
|
830
846
|
}, [
|
|
831
|
-
Q(r(
|
|
847
|
+
Q(r(et), {
|
|
832
848
|
name: "close",
|
|
833
849
|
stroke: e.value.table.th.color,
|
|
834
850
|
"stroke-width": 2
|
|
@@ -836,25 +852,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
836
852
|
], 36),
|
|
837
853
|
n("div", {
|
|
838
854
|
style: { width: "100%", "container-type": "inline-size" },
|
|
839
|
-
class:
|
|
855
|
+
class: R({ "vue-ui-responsive": Ie.value })
|
|
840
856
|
}, [
|
|
841
|
-
n("table",
|
|
857
|
+
n("table", ya, [
|
|
842
858
|
n("caption", {
|
|
843
859
|
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
844
860
|
class: "vue-ui-data-table__caption"
|
|
845
861
|
}, [
|
|
846
|
-
|
|
847
|
-
e.value.style.chart.title.subtitle.text ? (u(), i("span",
|
|
862
|
+
Lt(h(e.value.style.chart.title.text) + " ", 1),
|
|
863
|
+
e.value.style.chart.title.subtitle.text ? (u(), i("span", ga, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
848
864
|
], 4),
|
|
849
865
|
n("thead", null, [
|
|
850
866
|
n("tr", {
|
|
851
867
|
role: "row",
|
|
852
868
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
853
869
|
}, [
|
|
854
|
-
(u(!0), i(
|
|
870
|
+
(u(!0), i(q, null, Y(L.value.head, (t) => (u(), i("th", {
|
|
855
871
|
style: c(`outline:${e.value.table.th.outline}`)
|
|
856
872
|
}, [
|
|
857
|
-
n("div",
|
|
873
|
+
n("div", fa, h(t), 1)
|
|
858
874
|
], 4))), 256))
|
|
859
875
|
], 4),
|
|
860
876
|
n("tr", null, [
|
|
@@ -863,7 +879,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
863
879
|
}, null, 4),
|
|
864
880
|
n("th", {
|
|
865
881
|
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`)
|
|
866
|
-
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(
|
|
882
|
+
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(P.value) ? "" : P.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
|
|
867
883
|
n("th", {
|
|
868
884
|
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`)
|
|
869
885
|
}, "100%", 4),
|
|
@@ -882,8 +898,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
882
898
|
])
|
|
883
899
|
]),
|
|
884
900
|
n("tbody", null, [
|
|
885
|
-
(u(!0), i(
|
|
886
|
-
class:
|
|
901
|
+
(u(!0), i(q, null, Y(L.value.body, (t, o) => (u(), i("tr", {
|
|
902
|
+
class: R({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
887
903
|
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
888
904
|
}, [
|
|
889
905
|
n("td", {
|
|
@@ -891,56 +907,56 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
891
907
|
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
892
908
|
"data-cell": L.value.head[0] ?? ""
|
|
893
909
|
}, [
|
|
894
|
-
n("div",
|
|
910
|
+
n("div", ma, [
|
|
895
911
|
t.color ? (u(), i("span", {
|
|
896
912
|
key: 0,
|
|
897
913
|
style: c(`color:${t.color};margin-right:3px`)
|
|
898
914
|
}, "⬤", 4)) : y("", !0),
|
|
899
915
|
n("span", null, h(t.parentName), 1)
|
|
900
916
|
])
|
|
901
|
-
], 12,
|
|
917
|
+
], 12, ba),
|
|
902
918
|
n("td", {
|
|
903
919
|
class: "vue-ui-data-table__tbody__td",
|
|
904
920
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
905
921
|
"data-cell": L.value.head[1] ?? ""
|
|
906
922
|
}, [
|
|
907
|
-
n("div",
|
|
908
|
-
], 12,
|
|
923
|
+
n("div", _a, 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)
|
|
924
|
+
], 12, ka),
|
|
909
925
|
n("td", {
|
|
910
926
|
class: "vue-ui-data-table__tbody__td",
|
|
911
927
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
912
928
|
"data-cell": L.value.head[2] ?? ""
|
|
913
929
|
}, [
|
|
914
|
-
n("div",
|
|
915
|
-
], 12,
|
|
930
|
+
n("div", wa, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
931
|
+
], 12, $a),
|
|
916
932
|
n("td", {
|
|
917
933
|
class: "vue-ui-data-table__tbody__td",
|
|
918
934
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
919
935
|
"data-cell": L.value.head[3] ?? ""
|
|
920
936
|
}, [
|
|
921
|
-
n("div",
|
|
922
|
-
], 12,
|
|
937
|
+
n("div", Ca, h(t.childName), 1)
|
|
938
|
+
], 12, xa),
|
|
923
939
|
n("td", {
|
|
924
940
|
class: "vue-ui-data-table__tbody__td",
|
|
925
941
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
926
942
|
"data-cell": L.value.head[4] ?? ""
|
|
927
943
|
}, [
|
|
928
|
-
n("div",
|
|
929
|
-
], 12,
|
|
944
|
+
n("div", La, 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)
|
|
945
|
+
], 12, Ta),
|
|
930
946
|
n("td", {
|
|
931
947
|
class: "vue-ui-data-table__tbody__td",
|
|
932
948
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
933
949
|
"data-cell": L.value.head[5] ?? ""
|
|
934
950
|
}, [
|
|
935
|
-
n("div",
|
|
936
|
-
], 12,
|
|
951
|
+
n("div", Sa, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
952
|
+
], 12, Na),
|
|
937
953
|
n("td", {
|
|
938
954
|
class: "vue-ui-data-table__tbody__td",
|
|
939
955
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
940
956
|
"data-cell": L.value.head[6] ?? ""
|
|
941
957
|
}, [
|
|
942
|
-
n("div",
|
|
943
|
-
], 12,
|
|
958
|
+
n("div", Va, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
959
|
+
], 12, Pa)
|
|
944
960
|
], 6))), 256))
|
|
945
961
|
])
|
|
946
962
|
])
|
|
@@ -950,9 +966,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
950
966
|
]),
|
|
951
967
|
_: 1
|
|
952
968
|
}, 8, ["config"])) : y("", !0)
|
|
953
|
-
], 46,
|
|
969
|
+
], 46, qt));
|
|
954
970
|
}
|
|
955
|
-
},
|
|
971
|
+
}, Ga = /* @__PURE__ */ jt(Ia, [["__scopeId", "data-v-ced63abf"]]);
|
|
956
972
|
export {
|
|
957
|
-
|
|
973
|
+
Ga as default
|
|
958
974
|
};
|