vue-data-ui 2.17.0 → 2.17.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 +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +63 -160
- package/dist/types/vue-data-ui.d.ts +63 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
- package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
- package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useCssVars as $t, defineAsyncComponent as W, useSlots as wt, computed as
|
|
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-
|
|
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-CobsZUkv.js";
|
|
3
3
|
import { t as Rt, u as Dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as qe } from "./useNestedProp-
|
|
5
|
-
import { u as Et } from "./usePrinter-
|
|
4
|
+
import { u as qe } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as Et } from "./usePrinter-DPh6U_Qk.js";
|
|
6
6
|
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ht from "./vue-ui-accordion-
|
|
9
|
-
import Ye from "./Legend-
|
|
10
|
-
import Wt from "./Title-
|
|
11
|
-
import { _ as Ke } from "./Shape-
|
|
12
|
-
import Gt from "./img-
|
|
8
|
+
import Ht from "./vue-ui-accordion-UewqY6OI.js";
|
|
9
|
+
import Ye from "./Legend-3LNqqLDg.js";
|
|
10
|
+
import Wt from "./Title-DpERl1yr.js";
|
|
11
|
+
import { _ as Ke } from "./Shape-C75836Jl.js";
|
|
12
|
+
import Gt from "./img-utitT2Gd.js";
|
|
13
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"],
|
|
14
|
+
const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "height"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = { key: 1 }, ll = ["x", "y", "width", "height", "fill", "rx"], al = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ol = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], nl = ["x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["x", "y", "font-size", "fill", "font-weight"], dl = ["x", "y", "font-size", "fill", "font-weight"], vl = ["y", "width", "height", "fill", "onMouseenter"], cl = {
|
|
15
15
|
key: 6,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, hl = ["onClick"], pl = { style: "width:100%;padding-top: 36px;position:relative" }, yl = { class: "vue-ui-data-table" }, gl = { key: 0 }, fl = { style: { width: "100%" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pl = ["data-cell"], Vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Il = {
|
|
18
18
|
__name: "vue-ui-vertical-bar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -32,34 +32,34 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Je, { expose: Qe, emit: Ze }) {
|
|
35
|
-
$t((
|
|
36
|
-
"
|
|
35
|
+
$t((l) => ({
|
|
36
|
+
"16cc6e66": l.tdo
|
|
37
37
|
}));
|
|
38
|
-
const et = W(() => import("./BaseIcon-
|
|
38
|
+
const et = W(() => import("./BaseIcon-D9Tz8ARD.js")), tt = W(() => import("./PackageVersion-C-4Ee8BQ.js")), lt = W(() => import("./PenAndPaper-Cde-wJ3N.js")), at = W(() => import("./vue-ui-skeleton-8s4xts8z.js")), ot = W(() => import("./Tooltip-DA0bYKFG.js")), nt = W(() => import("./UserOptions-DTEJ3UM_.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({
|
|
39
39
|
get: () => Ce(),
|
|
40
|
-
set: (
|
|
40
|
+
set: (l) => l
|
|
41
41
|
}), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Ut({ config: e.value }), { svgRef: xe } = Xt({ config: e.value.style.chart.title });
|
|
42
42
|
function Ce() {
|
|
43
|
-
const
|
|
43
|
+
const l = qe({
|
|
44
44
|
userConfig: T.config,
|
|
45
45
|
defaultConfig: ut
|
|
46
46
|
});
|
|
47
|
-
return
|
|
47
|
+
return l.theme ? {
|
|
48
48
|
...qe({
|
|
49
|
-
userConfig: Vt.vue_ui_vertical_bar[
|
|
50
|
-
defaultConfig:
|
|
49
|
+
userConfig: Vt.vue_ui_vertical_bar[l.theme] || T.config,
|
|
50
|
+
defaultConfig: l
|
|
51
51
|
}),
|
|
52
|
-
customPalette: Pt[
|
|
53
|
-
} :
|
|
52
|
+
customPalette: Pt[l.theme] || E
|
|
53
|
+
} : l;
|
|
54
54
|
}
|
|
55
|
-
He(() => T.config, (
|
|
55
|
+
He(() => T.config, (l) => {
|
|
56
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;
|
|
57
|
-
}, { deep: !0 }), He(() => T.dataset,
|
|
57
|
+
}, { deep: !0 }), He(() => T.dataset, le, { deep: !0 });
|
|
58
58
|
const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Et({
|
|
59
59
|
elementId: `vue-ui-vertical-bar_${C.value}`,
|
|
60
60
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
61
61
|
options: e.value.userOptions.print
|
|
62
|
-
}), vt =
|
|
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
63
|
Ge(() => {
|
|
64
64
|
Oe();
|
|
65
65
|
});
|
|
@@ -67,28 +67,28 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
67
67
|
if (je(T.dataset) && Z({
|
|
68
68
|
componentName: "VueUiVerticalBar",
|
|
69
69
|
type: "dataset"
|
|
70
|
-
}), te.value = T.dataset.flatMap((
|
|
71
|
-
const
|
|
72
|
-
const { width:
|
|
73
|
-
chart:
|
|
70
|
+
}), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ht(), e.value.responsive) {
|
|
71
|
+
const l = Rt(() => {
|
|
72
|
+
const { width: a, height: t } = Dt({
|
|
73
|
+
chart: I.value,
|
|
74
74
|
title: e.value.style.chart.title.text ? be.value : null,
|
|
75
75
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
76
76
|
source: me.value,
|
|
77
77
|
noTitle: ke.value
|
|
78
78
|
});
|
|
79
79
|
requestAnimationFrame(() => {
|
|
80
|
-
ze.value =
|
|
80
|
+
ze.value = a, v.value = t / te.value - f.value * 2;
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
|
|
83
|
+
O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect()), O.value = new ResizeObserver(l), X.value = I.value.parentNode, O.value.observe(X.value);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
xt(() => {
|
|
87
|
-
|
|
87
|
+
O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect());
|
|
88
88
|
});
|
|
89
89
|
function ht() {
|
|
90
|
-
new ResizeObserver((
|
|
91
|
-
|
|
90
|
+
new ResizeObserver((a) => {
|
|
91
|
+
a.forEach((t) => {
|
|
92
92
|
Ie.value = t.contentRect.width < ct.value;
|
|
93
93
|
});
|
|
94
94
|
}).observe(Ve.value);
|
|
@@ -97,16 +97,16 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
97
97
|
showTable: e.value.table.show,
|
|
98
98
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
99
99
|
showTooltip: e.value.style.chart.tooltip.show
|
|
100
|
-
}), Fe =
|
|
101
|
-
!
|
|
100
|
+
}), Fe = k(() => $.value.sortDesc), M = k(() => (T.dataset.forEach((l, a) => {
|
|
101
|
+
!l.value && !l.children && Z({
|
|
102
102
|
componentName: "VueUiVerticalBar",
|
|
103
103
|
type: "datasetAttributeEmpty",
|
|
104
|
-
property: `value (index ${
|
|
105
|
-
}),
|
|
104
|
+
property: `value (index ${a})`
|
|
105
|
+
}), l.children && (je(l.children) ? Z({
|
|
106
106
|
componentName: "VueUiVerticalBar",
|
|
107
107
|
type: "datasetAttributeEmpty",
|
|
108
|
-
property: `children (index ${
|
|
109
|
-
}) :
|
|
108
|
+
property: `children (index ${a})`
|
|
109
|
+
}) : l.children.forEach((t, o) => {
|
|
110
110
|
[null, void 0].includes(t.name) && Z({
|
|
111
111
|
componentName: "VueUiVerticalBar",
|
|
112
112
|
type: "datasetSerieAttribute",
|
|
@@ -115,48 +115,48 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
115
115
|
index: o
|
|
116
116
|
});
|
|
117
117
|
}));
|
|
118
|
-
}), T.dataset.map((
|
|
119
|
-
const t = `vertical_parent_${
|
|
118
|
+
}), T.dataset.map((l, a) => {
|
|
119
|
+
const t = `vertical_parent_${a}_${C.value}`, o = l.children && l.children.length > 0, b = N(l.value ? l.value : o ? l.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), w = b >= 0 ? 1 : -1;
|
|
120
120
|
return {
|
|
121
|
-
...
|
|
121
|
+
...l,
|
|
122
122
|
id: t,
|
|
123
|
-
absoluteIndex:
|
|
123
|
+
absoluteIndex: a,
|
|
124
124
|
shape: "square",
|
|
125
125
|
opacity: S.value.includes(t) ? 0.5 : 1,
|
|
126
|
-
value: Math.abs(
|
|
127
|
-
sign:
|
|
126
|
+
value: Math.abs(b),
|
|
127
|
+
sign: w,
|
|
128
128
|
hasChildren: o,
|
|
129
129
|
isChild: !1,
|
|
130
130
|
segregate: () => K(t),
|
|
131
131
|
isSegregated: S.value.includes(t),
|
|
132
|
-
color: ye(
|
|
133
|
-
children: !
|
|
132
|
+
color: ye(l.color) || Pe.value[a] || E[a] || E[a % E.length],
|
|
133
|
+
children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
|
|
134
134
|
...p,
|
|
135
135
|
value: N(Math.abs(p.value)),
|
|
136
|
-
absoluteIndex:
|
|
136
|
+
absoluteIndex: a,
|
|
137
137
|
sign: p.value >= 0 ? 1 : -1,
|
|
138
138
|
isChild: !0,
|
|
139
139
|
parentId: t,
|
|
140
|
-
parentName:
|
|
141
|
-
parentValue:
|
|
142
|
-
parentSign:
|
|
143
|
-
id: `vertical_child_${
|
|
140
|
+
parentName: l.name,
|
|
141
|
+
parentValue: b,
|
|
142
|
+
parentSign: w,
|
|
143
|
+
id: `vertical_child_${a}_${V}_${C.value}`,
|
|
144
144
|
childIndex: V,
|
|
145
|
-
color: ye(p.color) || ye(
|
|
145
|
+
color: ye(p.color) || ye(l.color) || Pe.value[a] || E[a] || E[a % E.length]
|
|
146
146
|
})).map((p, V) => ({
|
|
147
147
|
...p,
|
|
148
148
|
isFirstChild: V === 0,
|
|
149
|
-
isLastChild: V ===
|
|
149
|
+
isLastChild: V === l.children.length - 1
|
|
150
150
|
}))
|
|
151
151
|
};
|
|
152
|
-
}).toSorted(
|
|
152
|
+
}).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = k(() => ({
|
|
153
153
|
cy: "vertical-bar-div-legend",
|
|
154
154
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
155
155
|
color: e.value.style.chart.legend.color,
|
|
156
156
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
157
157
|
paddingBottom: 12,
|
|
158
158
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
159
|
-
})), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap), pt =
|
|
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(() => ({
|
|
160
160
|
width: ze.value,
|
|
161
161
|
height: pt.value,
|
|
162
162
|
padding: {
|
|
@@ -165,7 +165,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
165
165
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
166
166
|
bottom: 12
|
|
167
167
|
}
|
|
168
|
-
})), s =
|
|
168
|
+
})), s = k(() => ({
|
|
169
169
|
fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
|
|
170
170
|
top: g.value.padding.top,
|
|
171
171
|
left: g.value.padding.left,
|
|
@@ -173,33 +173,33 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
173
173
|
bottom: g.value.padding.top + g.value.height,
|
|
174
174
|
width: g.value.width - (g.value.padding.left + g.value.padding.right)
|
|
175
175
|
}));
|
|
176
|
-
function
|
|
177
|
-
te.value = z.value.flatMap((
|
|
176
|
+
function le() {
|
|
177
|
+
te.value = z.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
|
|
178
178
|
}
|
|
179
179
|
const S = d([]);
|
|
180
|
-
function K(
|
|
181
|
-
S.value.includes(
|
|
180
|
+
function K(l) {
|
|
181
|
+
S.value.includes(l) ? S.value = S.value.filter((a) => a !== l) : S.value.push(l), le(), dt("selectLegend", z.value);
|
|
182
182
|
}
|
|
183
|
-
const z =
|
|
184
|
-
function Ae(
|
|
185
|
-
return
|
|
186
|
-
v: N(Math.abs(
|
|
183
|
+
const z = k(() => M.value.filter((l) => !S.value.includes(l.id))), P = k(() => z.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
|
|
184
|
+
function Ae(l, a = !1, t = 0) {
|
|
185
|
+
return a ? U({
|
|
186
|
+
v: N(Math.abs(l) / P.value * 100),
|
|
187
187
|
s: "%",
|
|
188
188
|
r: t
|
|
189
|
-
}) : Math.abs(
|
|
189
|
+
}) : Math.abs(l) / P.value;
|
|
190
190
|
}
|
|
191
|
-
const A =
|
|
192
|
-
function
|
|
193
|
-
const
|
|
194
|
-
return s.value.width / (B.value ? 2 : 1) *
|
|
191
|
+
const A = k(() => z.value.flatMap((l) => l.hasChildren ? l.children : l)), B = k(() => A.value.map((l) => l.sign).includes(-1)), yt = k(() => Math.max(...z.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
|
|
192
|
+
function x(l) {
|
|
193
|
+
const a = l / yt.value;
|
|
194
|
+
return s.value.width / (B.value ? 2 : 1) * a;
|
|
195
195
|
}
|
|
196
|
-
function gt(
|
|
197
|
-
return
|
|
196
|
+
function gt(l) {
|
|
197
|
+
return x(l) + s.value.left;
|
|
198
198
|
}
|
|
199
|
-
function J(
|
|
200
|
-
const t = z.value.find((
|
|
199
|
+
function J(l, a) {
|
|
200
|
+
const t = z.value.find((w) => w.id === l.parentId), o = s.value.top + (f.value + v.value) * a, b = t.children.length * (f.value + v.value);
|
|
201
201
|
return {
|
|
202
|
-
y: o +
|
|
202
|
+
y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
203
203
|
name: t.name,
|
|
204
204
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
205
205
|
percentageToTotal: isNaN(t.value / P.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
@@ -210,66 +210,66 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
210
210
|
return z.value;
|
|
211
211
|
}
|
|
212
212
|
const ve = d(null), ce = d(null);
|
|
213
|
-
function bt(
|
|
213
|
+
function bt(l, a) {
|
|
214
214
|
ce.value = {
|
|
215
|
-
datapoint:
|
|
216
|
-
seriesIndex:
|
|
215
|
+
datapoint: l,
|
|
216
|
+
seriesIndex: a,
|
|
217
217
|
series: M.value,
|
|
218
218
|
config: e.value
|
|
219
|
-
}, ue.value = !0, ve.value =
|
|
219
|
+
}, ue.value = !0, ve.value = l.id;
|
|
220
220
|
let t = "";
|
|
221
|
-
const o =
|
|
222
|
-
At(
|
|
223
|
-
datapoint:
|
|
221
|
+
const o = l.isChild ? l.parentName : l.name, b = l.isChild ? l.name : "", w = e.value.style.chart.tooltip.customFormat;
|
|
222
|
+
At(w) && Bt(() => w({
|
|
223
|
+
datapoint: l,
|
|
224
224
|
series: M.value,
|
|
225
225
|
config: e.value,
|
|
226
|
-
seriesIndex:
|
|
227
|
-
})) ? se.value =
|
|
228
|
-
datapoint:
|
|
226
|
+
seriesIndex: a
|
|
227
|
+
})) ? se.value = w({
|
|
228
|
+
datapoint: l,
|
|
229
229
|
series: M.value,
|
|
230
230
|
config: e.value,
|
|
231
|
-
seriesIndex:
|
|
231
|
+
seriesIndex: a
|
|
232
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;">
|
|
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="${
|
|
234
|
-
${
|
|
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="${l.color}"/>${st.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${l.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
234
|
+
${b ? `<div>${b}</div>` : ""}
|
|
235
235
|
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
|
|
236
236
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
237
|
-
|
|
237
|
+
l.sign === 1 ? l.value : -l.value,
|
|
238
238
|
U({
|
|
239
239
|
p: e.value.style.chart.tooltip.prefix,
|
|
240
|
-
v:
|
|
240
|
+
v: l.sign === 1 ? l.value : -l.value,
|
|
241
241
|
s: e.value.style.chart.tooltip.suffix,
|
|
242
242
|
r: e.value.style.chart.tooltip.roundingValue
|
|
243
243
|
}),
|
|
244
|
-
{ datapoint:
|
|
244
|
+
{ datapoint: l, seriesIndex: a }
|
|
245
245
|
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
|
|
246
|
-
v: Math.abs(
|
|
246
|
+
v: Math.abs(l.value) / P.value * 100,
|
|
247
247
|
s: "%",
|
|
248
248
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
249
|
-
})}</b></div>`,
|
|
250
|
-
v: Math.abs(
|
|
249
|
+
})}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
|
|
250
|
+
v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
|
|
251
251
|
s: "%",
|
|
252
252
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
253
253
|
})}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
|
|
254
254
|
}
|
|
255
|
-
function Be(
|
|
255
|
+
function Be(l, a, t, o) {
|
|
256
256
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
257
257
|
return "";
|
|
258
|
-
const
|
|
258
|
+
const b = ne(
|
|
259
259
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
260
|
-
N(o === -1 &&
|
|
260
|
+
N(o === -1 && l >= 0 ? -l : l),
|
|
261
261
|
U({
|
|
262
262
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
263
|
-
v: N(o === -1 &&
|
|
263
|
+
v: N(o === -1 && l >= 0 ? -l : l),
|
|
264
264
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
265
265
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
266
266
|
}),
|
|
267
|
-
{ datapoint:
|
|
268
|
-
),
|
|
269
|
-
return `${
|
|
267
|
+
{ datapoint: a, seriesIndex: t }
|
|
268
|
+
), w = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
269
|
+
return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
|
|
270
270
|
}
|
|
271
|
-
const L =
|
|
272
|
-
const
|
|
271
|
+
const L = k(() => {
|
|
272
|
+
const l = [
|
|
273
273
|
e.value.translations.parentName,
|
|
274
274
|
e.value.translations.value,
|
|
275
275
|
e.value.translations.percentageToTotal,
|
|
@@ -277,7 +277,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
277
277
|
e.value.translations.value,
|
|
278
278
|
e.value.translations.percentageToSerie,
|
|
279
279
|
e.value.translations.percentageToTotal
|
|
280
|
-
],
|
|
280
|
+
], a = A.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
281
281
|
color: t.color,
|
|
282
282
|
parentName: t.parentName,
|
|
283
283
|
parentValue: t.parentValue,
|
|
@@ -305,10 +305,10 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
305
305
|
childPercentageToParent: "",
|
|
306
306
|
childPercentageToTotal: ""
|
|
307
307
|
});
|
|
308
|
-
return { head:
|
|
308
|
+
return { head: l, body: a };
|
|
309
309
|
});
|
|
310
|
-
function Re(
|
|
311
|
-
const
|
|
310
|
+
function Re(l = null) {
|
|
311
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = L.value.head, o = L.value.body.map((p) => [
|
|
312
312
|
p.parentName,
|
|
313
313
|
p.parentValue,
|
|
314
314
|
p.percentageToTotal,
|
|
@@ -316,12 +316,12 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
316
316
|
p.childValue,
|
|
317
317
|
p.childPercentageToParent,
|
|
318
318
|
p.childPercentageToTotal
|
|
319
|
-
]),
|
|
320
|
-
|
|
319
|
+
]), b = a.concat([t]).concat(o), w = Mt(b);
|
|
320
|
+
l ? l(w) : zt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
321
321
|
}
|
|
322
322
|
const H = d(!1);
|
|
323
|
-
function De(
|
|
324
|
-
H.value =
|
|
323
|
+
function De(l) {
|
|
324
|
+
H.value = l, fe.value += 1;
|
|
325
325
|
}
|
|
326
326
|
function Ee() {
|
|
327
327
|
$.value.showTable = !$.value.showTable;
|
|
@@ -330,20 +330,20 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
330
330
|
none: 0,
|
|
331
331
|
asc: 1,
|
|
332
332
|
desc: 2
|
|
333
|
-
}),
|
|
333
|
+
}), F = d(0), ae = d(!1);
|
|
334
334
|
Ge(() => {
|
|
335
335
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
|
|
336
336
|
componentName: "VueUiVerticalBar",
|
|
337
337
|
type: "attributeWrongValue",
|
|
338
338
|
property: "style.chart.layout.bars.sort",
|
|
339
339
|
key: e.value.style.chart.layout.bars.sort
|
|
340
|
-
}),
|
|
340
|
+
}), F.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = F.value === 2, ae.value = F.value === 0;
|
|
341
341
|
});
|
|
342
342
|
function kt() {
|
|
343
|
-
|
|
343
|
+
F.value += 1, F.value > 2 && (F.value = 0);
|
|
344
344
|
}
|
|
345
345
|
function Ue() {
|
|
346
|
-
kt(), $.value.sortDesc =
|
|
346
|
+
kt(), $.value.sortDesc = F.value === 2, ae.value = F.value === 0, le();
|
|
347
347
|
}
|
|
348
348
|
function Xe() {
|
|
349
349
|
$.value.showTooltip = !$.value.showTooltip;
|
|
@@ -352,15 +352,22 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
352
352
|
function he() {
|
|
353
353
|
oe.value = !oe.value;
|
|
354
354
|
}
|
|
355
|
-
async function _t({ scale:
|
|
356
|
-
if (!
|
|
357
|
-
const { imageUri:
|
|
358
|
-
return {
|
|
355
|
+
async function _t({ scale: l = 2 } = {}) {
|
|
356
|
+
if (!I.value) return;
|
|
357
|
+
const { width: a, height: t } = I.value.getBoundingClientRect(), o = a / t, { imageUri: b, base64: w } = await Gt({ domElement: I.value, base64: !0, img: !0, scale: l });
|
|
358
|
+
return {
|
|
359
|
+
imageUri: b,
|
|
360
|
+
base64: w,
|
|
361
|
+
title: e.value.style.chart.title.text,
|
|
362
|
+
width: a,
|
|
363
|
+
height: t,
|
|
364
|
+
aspectRatio: o
|
|
365
|
+
};
|
|
359
366
|
}
|
|
360
367
|
return Qe({
|
|
361
368
|
getData: ft,
|
|
362
369
|
getImage: _t,
|
|
363
|
-
recalculateHeight:
|
|
370
|
+
recalculateHeight: le,
|
|
364
371
|
generatePdf: Ne,
|
|
365
372
|
generateCsv: Re,
|
|
366
373
|
generateImage: Se,
|
|
@@ -369,16 +376,16 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
369
376
|
toggleTooltip: Xe,
|
|
370
377
|
toggleAnnotator: he,
|
|
371
378
|
toggleFullscreen: De
|
|
372
|
-
}), (
|
|
379
|
+
}), (l, a) => (u(), i("div", {
|
|
373
380
|
class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
374
381
|
ref_key: "verticalBarChart",
|
|
375
|
-
ref:
|
|
382
|
+
ref: I,
|
|
376
383
|
id: `vue-ui-vertical-bar_${C.value}`,
|
|
377
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%" : ""}`),
|
|
378
|
-
onMouseenter:
|
|
379
|
-
onMouseleave:
|
|
385
|
+
onMouseenter: a[5] || (a[5] = () => r($e)(!0)),
|
|
386
|
+
onMouseleave: a[6] || (a[6] = () => r($e)(!1))
|
|
380
387
|
}, [
|
|
381
|
-
e.value.userOptions.buttons.annotator ? (u(), D(r(
|
|
388
|
+
e.value.userOptions.buttons.annotator ? (u(), D(r(lt), {
|
|
382
389
|
key: 0,
|
|
383
390
|
svgRef: r(xe),
|
|
384
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -432,7 +439,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
432
439
|
isFullscreen: H.value,
|
|
433
440
|
isTooltip: $.value.showTooltip,
|
|
434
441
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
435
|
-
chartElement:
|
|
442
|
+
chartElement: I.value,
|
|
436
443
|
position: e.value.userOptions.position,
|
|
437
444
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
438
445
|
isAnnotation: oe.value,
|
|
@@ -450,73 +457,73 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
450
457
|
visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
|
|
451
458
|
})
|
|
452
459
|
}, pe({ _: 2 }, [
|
|
453
|
-
|
|
460
|
+
l.$slots.menuIcon ? {
|
|
454
461
|
name: "menuIcon",
|
|
455
|
-
fn:
|
|
456
|
-
|
|
462
|
+
fn: _(({ isOpen: t, color: o }) => [
|
|
463
|
+
m(l.$slots, "menuIcon", G(j({ isOpen: t, color: o })), void 0, !0)
|
|
457
464
|
]),
|
|
458
465
|
key: "0"
|
|
459
466
|
} : void 0,
|
|
460
|
-
|
|
467
|
+
l.$slots.optionTooltip ? {
|
|
461
468
|
name: "optionTooltip",
|
|
462
|
-
fn:
|
|
463
|
-
|
|
469
|
+
fn: _(() => [
|
|
470
|
+
m(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
464
471
|
]),
|
|
465
472
|
key: "1"
|
|
466
473
|
} : void 0,
|
|
467
|
-
|
|
474
|
+
l.$slots.optionPdf ? {
|
|
468
475
|
name: "optionPdf",
|
|
469
|
-
fn:
|
|
470
|
-
|
|
476
|
+
fn: _(() => [
|
|
477
|
+
m(l.$slots, "optionPdf", {}, void 0, !0)
|
|
471
478
|
]),
|
|
472
479
|
key: "2"
|
|
473
480
|
} : void 0,
|
|
474
|
-
|
|
481
|
+
l.$slots.optionCsv ? {
|
|
475
482
|
name: "optionCsv",
|
|
476
|
-
fn:
|
|
477
|
-
|
|
483
|
+
fn: _(() => [
|
|
484
|
+
m(l.$slots, "optionCsv", {}, void 0, !0)
|
|
478
485
|
]),
|
|
479
486
|
key: "3"
|
|
480
487
|
} : void 0,
|
|
481
|
-
|
|
488
|
+
l.$slots.optionImg ? {
|
|
482
489
|
name: "optionImg",
|
|
483
|
-
fn:
|
|
484
|
-
|
|
490
|
+
fn: _(() => [
|
|
491
|
+
m(l.$slots, "optionImg", {}, void 0, !0)
|
|
485
492
|
]),
|
|
486
493
|
key: "4"
|
|
487
494
|
} : void 0,
|
|
488
|
-
|
|
495
|
+
l.$slots.optionTable ? {
|
|
489
496
|
name: "optionTable",
|
|
490
|
-
fn:
|
|
491
|
-
|
|
497
|
+
fn: _(() => [
|
|
498
|
+
m(l.$slots, "optionTable", {}, void 0, !0)
|
|
492
499
|
]),
|
|
493
500
|
key: "5"
|
|
494
501
|
} : void 0,
|
|
495
|
-
|
|
502
|
+
l.$slots.optionLabels ? {
|
|
496
503
|
name: "optionLabels",
|
|
497
|
-
fn:
|
|
498
|
-
|
|
504
|
+
fn: _(() => [
|
|
505
|
+
m(l.$slots, "optionLabels", {}, void 0, !0)
|
|
499
506
|
]),
|
|
500
507
|
key: "6"
|
|
501
508
|
} : void 0,
|
|
502
|
-
|
|
509
|
+
l.$slots.optionSort ? {
|
|
503
510
|
name: "optionSort",
|
|
504
|
-
fn:
|
|
505
|
-
|
|
511
|
+
fn: _(() => [
|
|
512
|
+
m(l.$slots, "optionSort", {}, void 0, !0)
|
|
506
513
|
]),
|
|
507
514
|
key: "7"
|
|
508
515
|
} : void 0,
|
|
509
|
-
|
|
516
|
+
l.$slots.optionFullscreen ? {
|
|
510
517
|
name: "optionFullscreen",
|
|
511
|
-
fn:
|
|
512
|
-
|
|
518
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
519
|
+
m(l.$slots, "optionFullscreen", G(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
513
520
|
]),
|
|
514
521
|
key: "8"
|
|
515
522
|
} : void 0,
|
|
516
|
-
|
|
523
|
+
l.$slots.optionAnnotator ? {
|
|
517
524
|
name: "optionAnnotator",
|
|
518
|
-
fn:
|
|
519
|
-
|
|
525
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
526
|
+
m(l.$slots, "optionAnnotator", G(j({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
520
527
|
]),
|
|
521
528
|
key: "9"
|
|
522
529
|
} : void 0
|
|
@@ -530,11 +537,11 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
530
537
|
key: `legend_top_${ie.value}`,
|
|
531
538
|
legendSet: M.value,
|
|
532
539
|
config: Me.value,
|
|
533
|
-
onClickMarker:
|
|
540
|
+
onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
|
|
534
541
|
}, pe({
|
|
535
|
-
item:
|
|
542
|
+
item: _(({ legend: t, index: o }) => [
|
|
536
543
|
n("div", {
|
|
537
|
-
onClick: (
|
|
544
|
+
onClick: (b) => K(t.id),
|
|
538
545
|
style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
539
546
|
}, h(t.name) + ": " + h(r(ne)(
|
|
540
547
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
@@ -550,9 +557,9 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
550
557
|
]),
|
|
551
558
|
_: 2
|
|
552
559
|
}, [
|
|
553
|
-
|
|
560
|
+
l.$slots.pattern ? {
|
|
554
561
|
name: "legend-pattern",
|
|
555
|
-
fn:
|
|
562
|
+
fn: _(({ legend: t, index: o }) => [
|
|
556
563
|
Q(Ke, {
|
|
557
564
|
shape: t.shape,
|
|
558
565
|
radius: 30,
|
|
@@ -575,7 +582,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
575
582
|
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
576
583
|
}, [
|
|
577
584
|
Q(r(tt)),
|
|
578
|
-
|
|
585
|
+
l.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
579
586
|
key: 0,
|
|
580
587
|
x: 0,
|
|
581
588
|
y: 0,
|
|
@@ -585,7 +592,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
585
592
|
pointerEvents: "none"
|
|
586
593
|
}
|
|
587
594
|
}, [
|
|
588
|
-
|
|
595
|
+
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
589
596
|
], 8, Jt)) : y("", !0),
|
|
590
597
|
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("linearGradient", {
|
|
591
598
|
x1: "0%",
|
|
@@ -601,48 +608,48 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
601
608
|
n("stop", {
|
|
602
609
|
offset: "100%",
|
|
603
610
|
"stop-color": r(ge)(r(Ft)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
604
|
-
}, null, 8,
|
|
611
|
+
}, null, 8, el)
|
|
605
612
|
], 8, Qt))), 256)),
|
|
606
|
-
|
|
613
|
+
l.$slots.pattern ? (u(), i("g", tl, [
|
|
607
614
|
(u(!0), i(q, null, Y(A.value, (t) => (u(), i("defs", null, [
|
|
608
|
-
|
|
615
|
+
m(l.$slots, "pattern", Ct({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
609
616
|
]))), 256))
|
|
610
617
|
])) : y("", !0),
|
|
611
618
|
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
|
|
612
619
|
n("rect", {
|
|
613
|
-
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 :
|
|
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),
|
|
614
621
|
y: s.value.top + (f.value + v.value) * o,
|
|
615
|
-
width: r(N)(
|
|
622
|
+
width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
|
|
616
623
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
617
624
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
618
625
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
619
626
|
class: R({ animated: e.value.useCssAnimation })
|
|
620
|
-
}, null, 10,
|
|
627
|
+
}, null, 10, ll)
|
|
621
628
|
]))), 256)),
|
|
622
629
|
(u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
|
|
623
630
|
n("rect", {
|
|
624
|
-
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 :
|
|
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),
|
|
625
632
|
y: s.value.top + (f.value + v.value) * o,
|
|
626
|
-
width: r(N)(
|
|
633
|
+
width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
|
|
627
634
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
628
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),
|
|
629
636
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
630
637
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
631
638
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
632
639
|
class: R({ animated: e.value.useCssAnimation })
|
|
633
|
-
}, null, 10,
|
|
634
|
-
|
|
640
|
+
}, null, 10, al),
|
|
641
|
+
l.$slots.pattern ? (u(), i("rect", {
|
|
635
642
|
key: 0,
|
|
636
|
-
x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 :
|
|
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),
|
|
637
644
|
y: s.value.top + (f.value + v.value) * o,
|
|
638
|
-
width: r(N)(
|
|
645
|
+
width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
|
|
639
646
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
640
647
|
fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
|
|
641
648
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
642
649
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
643
650
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
644
651
|
class: R({ animated: e.value.useCssAnimation })
|
|
645
|
-
}, null, 10,
|
|
652
|
+
}, null, 10, ol)) : y("", !0),
|
|
646
653
|
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== A.value.length - 1 ? (u(), i("line", {
|
|
647
654
|
key: 1,
|
|
648
655
|
x1: 0,
|
|
@@ -652,7 +659,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
652
659
|
stroke: e.value.style.chart.layout.separators.color,
|
|
653
660
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
654
661
|
"stroke-linecap": "round"
|
|
655
|
-
}, null, 8,
|
|
662
|
+
}, null, 8, nl)) : y("", !0),
|
|
656
663
|
B.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
|
|
657
664
|
key: 2,
|
|
658
665
|
x1: s.value.left + s.value.width / 2,
|
|
@@ -662,7 +669,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
662
669
|
stroke: e.value.style.chart.layout.separators.color,
|
|
663
670
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
664
671
|
"stroke-linecap": "round"
|
|
665
|
-
}, null, 8,
|
|
672
|
+
}, null, 8, ul)) : y("", !0),
|
|
666
673
|
n("text", {
|
|
667
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,
|
|
668
675
|
y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
@@ -670,7 +677,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
670
677
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
671
678
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
672
679
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
673
|
-
}, h(Be(t.value, t, o, t.sign)), 9,
|
|
680
|
+
}, h(Be(t.value, t, o, t.sign)), 9, sl),
|
|
674
681
|
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
|
|
675
682
|
key: 3,
|
|
676
683
|
"text-anchor": "end",
|
|
@@ -679,7 +686,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
679
686
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
680
687
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
681
688
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
682
|
-
}, h(t.name), 9,
|
|
689
|
+
}, h(t.name), 9, rl)) : y("", !0),
|
|
683
690
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
684
691
|
key: 4,
|
|
685
692
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -688,7 +695,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
688
695
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
689
696
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
690
697
|
"text-anchor": "start"
|
|
691
|
-
}, h(J(t, o).name), 9,
|
|
698
|
+
}, h(J(t, o).name), 9, il)) : y("", !0),
|
|
692
699
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
693
700
|
key: 5,
|
|
694
701
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -697,25 +704,25 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
697
704
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
698
705
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
699
706
|
"text-anchor": "start"
|
|
700
|
-
}, 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, dl)) : y("", !0),
|
|
701
708
|
n("rect", {
|
|
702
709
|
x: 0,
|
|
703
710
|
y: s.value.top + (f.value + v.value) * o - f.value / 2,
|
|
704
711
|
width: g.value.width <= 0 ? 1e-4 : g.value.width,
|
|
705
712
|
height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
|
|
706
713
|
fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
707
|
-
onMouseenter: (
|
|
708
|
-
onMouseleave:
|
|
714
|
+
onMouseenter: (b) => bt(t, o),
|
|
715
|
+
onMouseleave: a[1] || (a[1] = (b) => {
|
|
709
716
|
it.value = null, ue.value = !1, ve.value = null;
|
|
710
717
|
})
|
|
711
|
-
}, null, 40,
|
|
718
|
+
}, null, 40, vl)
|
|
712
719
|
]))), 256)),
|
|
713
|
-
|
|
720
|
+
m(l.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
714
721
|
], 14, Kt)) : y("", !0),
|
|
715
|
-
|
|
716
|
-
|
|
722
|
+
l.$slots.watermark ? (u(), i("div", cl, [
|
|
723
|
+
m(l.$slots, "watermark", G(j({ isPrinting: r(Te) || r(Le) })), void 0, !0)
|
|
717
724
|
])) : y("", !0),
|
|
718
|
-
ee.value ? y("", !0) : (u(), D(r(
|
|
725
|
+
ee.value ? y("", !0) : (u(), D(r(at), {
|
|
719
726
|
key: 7,
|
|
720
727
|
config: {
|
|
721
728
|
type: "verticalBar",
|
|
@@ -739,11 +746,11 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
739
746
|
key: `legend_bottom_${ie.value}`,
|
|
740
747
|
legendSet: M.value,
|
|
741
748
|
config: Me.value,
|
|
742
|
-
onClickMarker:
|
|
749
|
+
onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
|
|
743
750
|
}, pe({
|
|
744
|
-
item:
|
|
751
|
+
item: _(({ legend: t, index: o }) => [
|
|
745
752
|
n("div", {
|
|
746
|
-
onClick: (
|
|
753
|
+
onClick: (b) => K(t.id),
|
|
747
754
|
style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
748
755
|
}, h(t.name) + ": " + h(r(ne)(
|
|
749
756
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
@@ -755,13 +762,13 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
755
762
|
r: e.value.style.chart.legend.roundingValue
|
|
756
763
|
}),
|
|
757
764
|
{ datapoint: t, seriesIndex: o }
|
|
758
|
-
)), 13,
|
|
765
|
+
)), 13, hl)
|
|
759
766
|
]),
|
|
760
767
|
_: 2
|
|
761
768
|
}, [
|
|
762
|
-
|
|
769
|
+
l.$slots.pattern ? {
|
|
763
770
|
name: "legend-pattern",
|
|
764
|
-
fn:
|
|
771
|
+
fn: _(({ legend: t, index: o }) => [
|
|
765
772
|
Q(Ke, {
|
|
766
773
|
shape: t.shape,
|
|
767
774
|
radius: 30,
|
|
@@ -774,14 +781,14 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
774
781
|
} : void 0
|
|
775
782
|
]), 1032, ["legendSet", "config"]))
|
|
776
783
|
], 512)) : y("", !0),
|
|
777
|
-
|
|
778
|
-
|
|
784
|
+
m(l.$slots, "legend", { legend: M.value }, void 0, !0),
|
|
785
|
+
l.$slots.source ? (u(), i("div", {
|
|
779
786
|
key: 9,
|
|
780
787
|
ref_key: "source",
|
|
781
788
|
ref: me,
|
|
782
789
|
dir: "auto"
|
|
783
790
|
}, [
|
|
784
|
-
|
|
791
|
+
m(l.$slots, "source", {}, void 0, !0)
|
|
785
792
|
], 512)) : y("", !0),
|
|
786
793
|
Q(r(ot), {
|
|
787
794
|
show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
|
|
@@ -794,16 +801,16 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
794
801
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
795
802
|
position: e.value.style.chart.tooltip.position,
|
|
796
803
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
797
|
-
parent:
|
|
804
|
+
parent: I.value,
|
|
798
805
|
content: se.value,
|
|
799
806
|
isFullscreen: H.value,
|
|
800
807
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
801
808
|
}, {
|
|
802
|
-
"tooltip-before":
|
|
803
|
-
|
|
809
|
+
"tooltip-before": _(() => [
|
|
810
|
+
m(l.$slots, "tooltip-before", G(j({ ...ce.value })), void 0, !0)
|
|
804
811
|
]),
|
|
805
|
-
"tooltip-after":
|
|
806
|
-
|
|
812
|
+
"tooltip-after": _(() => [
|
|
813
|
+
m(l.$slots, "tooltip-after", G(j({ ...ce.value })), void 0, !0)
|
|
807
814
|
]),
|
|
808
815
|
_: 3
|
|
809
816
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -823,19 +830,19 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
823
830
|
}
|
|
824
831
|
}
|
|
825
832
|
}, {
|
|
826
|
-
content:
|
|
833
|
+
content: _(() => [
|
|
827
834
|
n("div", {
|
|
828
835
|
ref_key: "tableContainer",
|
|
829
836
|
ref: Ve,
|
|
830
837
|
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
831
838
|
}, [
|
|
832
|
-
n("div",
|
|
839
|
+
n("div", pl, [
|
|
833
840
|
n("div", {
|
|
834
841
|
role: "button",
|
|
835
842
|
tabindex: "0",
|
|
836
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};`),
|
|
837
|
-
onClick:
|
|
838
|
-
onKeypress:
|
|
844
|
+
onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
|
|
845
|
+
onKeypress: a[4] || (a[4] = Tt((t) => $.value.showTable = !1, ["enter"]))
|
|
839
846
|
}, [
|
|
840
847
|
Q(r(et), {
|
|
841
848
|
name: "close",
|
|
@@ -847,13 +854,13 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
847
854
|
style: { width: "100%", "container-type": "inline-size" },
|
|
848
855
|
class: R({ "vue-ui-responsive": Ie.value })
|
|
849
856
|
}, [
|
|
850
|
-
n("table",
|
|
857
|
+
n("table", yl, [
|
|
851
858
|
n("caption", {
|
|
852
859
|
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
853
860
|
class: "vue-ui-data-table__caption"
|
|
854
861
|
}, [
|
|
855
862
|
Lt(h(e.value.style.chart.title.text) + " ", 1),
|
|
856
|
-
e.value.style.chart.title.subtitle.text ? (u(), i("span",
|
|
863
|
+
e.value.style.chart.title.subtitle.text ? (u(), i("span", gl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
857
864
|
], 4),
|
|
858
865
|
n("thead", null, [
|
|
859
866
|
n("tr", {
|
|
@@ -863,7 +870,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
863
870
|
(u(!0), i(q, null, Y(L.value.head, (t) => (u(), i("th", {
|
|
864
871
|
style: c(`outline:${e.value.table.th.outline}`)
|
|
865
872
|
}, [
|
|
866
|
-
n("div",
|
|
873
|
+
n("div", fl, h(t), 1)
|
|
867
874
|
], 4))), 256))
|
|
868
875
|
], 4),
|
|
869
876
|
n("tr", null, [
|
|
@@ -900,56 +907,56 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
900
907
|
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
901
908
|
"data-cell": L.value.head[0] ?? ""
|
|
902
909
|
}, [
|
|
903
|
-
n("div",
|
|
910
|
+
n("div", ml, [
|
|
904
911
|
t.color ? (u(), i("span", {
|
|
905
912
|
key: 0,
|
|
906
913
|
style: c(`color:${t.color};margin-right:3px`)
|
|
907
914
|
}, "⬤", 4)) : y("", !0),
|
|
908
915
|
n("span", null, h(t.parentName), 1)
|
|
909
916
|
])
|
|
910
|
-
], 12,
|
|
917
|
+
], 12, bl),
|
|
911
918
|
n("td", {
|
|
912
919
|
class: "vue-ui-data-table__tbody__td",
|
|
913
920
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
914
921
|
"data-cell": L.value.head[1] ?? ""
|
|
915
922
|
}, [
|
|
916
|
-
n("div",
|
|
917
|
-
], 12,
|
|
923
|
+
n("div", _l, 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, kl),
|
|
918
925
|
n("td", {
|
|
919
926
|
class: "vue-ui-data-table__tbody__td",
|
|
920
927
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
921
928
|
"data-cell": L.value.head[2] ?? ""
|
|
922
929
|
}, [
|
|
923
|
-
n("div",
|
|
924
|
-
], 12, $
|
|
930
|
+
n("div", wl, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
931
|
+
], 12, $l),
|
|
925
932
|
n("td", {
|
|
926
933
|
class: "vue-ui-data-table__tbody__td",
|
|
927
934
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
928
935
|
"data-cell": L.value.head[3] ?? ""
|
|
929
936
|
}, [
|
|
930
|
-
n("div",
|
|
931
|
-
], 12,
|
|
937
|
+
n("div", Cl, h(t.childName), 1)
|
|
938
|
+
], 12, xl),
|
|
932
939
|
n("td", {
|
|
933
940
|
class: "vue-ui-data-table__tbody__td",
|
|
934
941
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
935
942
|
"data-cell": L.value.head[4] ?? ""
|
|
936
943
|
}, [
|
|
937
|
-
n("div",
|
|
938
|
-
], 12,
|
|
944
|
+
n("div", Ll, 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, Tl),
|
|
939
946
|
n("td", {
|
|
940
947
|
class: "vue-ui-data-table__tbody__td",
|
|
941
948
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
942
949
|
"data-cell": L.value.head[5] ?? ""
|
|
943
950
|
}, [
|
|
944
|
-
n("div",
|
|
945
|
-
], 12,
|
|
951
|
+
n("div", Sl, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
952
|
+
], 12, Nl),
|
|
946
953
|
n("td", {
|
|
947
954
|
class: "vue-ui-data-table__tbody__td",
|
|
948
955
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
949
956
|
"data-cell": L.value.head[6] ?? ""
|
|
950
957
|
}, [
|
|
951
|
-
n("div",
|
|
952
|
-
], 12,
|
|
958
|
+
n("div", Vl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
959
|
+
], 12, Pl)
|
|
953
960
|
], 6))), 256))
|
|
954
961
|
])
|
|
955
962
|
])
|
|
@@ -961,7 +968,7 @@ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "
|
|
|
961
968
|
}, 8, ["config"])) : y("", !0)
|
|
962
969
|
], 46, qt));
|
|
963
970
|
}
|
|
964
|
-
},
|
|
971
|
+
}, Gl = /* @__PURE__ */ jt(Il, [["__scopeId", "data-v-cd700405"]]);
|
|
965
972
|
export {
|
|
966
|
-
|
|
973
|
+
Gl as default
|
|
967
974
|
};
|