vue-data-ui 3.4.9 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { t as
|
|
1
|
+
import { useCssVars as Zt, defineAsyncComponent as Q, useSlots as ea, computed as f, ref as i, toRefs as ta, watch as ze, shallowRef as dt, onMounted as Ve, nextTick as he, onBeforeUnmount as aa, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as d, normalizeClass as G, createBlock as W, createCommentVNode as y, renderSlot as k, createVNode as J, createSlots as pe, withCtx as b, normalizeProps as Z, guardReactiveProps as ee, createElementVNode as n, toDisplayString as h, Fragment as te, renderList as ae, mergeProps as ht, resolveDynamicComponent as la, withKeys as oa, createTextVNode as pt } from "vue";
|
|
2
|
+
import { c as na, t as ua, b as sa, p as H, O as Oe, e as ra, x as P, o as Ie, f as ue, h as Fe, a as se, d as M, X as ia, s as Be, i as va, P as ca, Q as da, G as ha, H as pa } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as fa, u as ga } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ya, a as ft } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as ba, B as ma } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as ka } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as xa } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as wa } from "./useTableResponsive-Cbx-ACcP.js";
|
|
9
|
+
import { u as _a } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as $a } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { t as Ca } from "./themes-AUNCOb2G.js";
|
|
12
12
|
import gt from "./Legend-G6GMcdAc.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
13
|
+
import Ta from "./vue-ui-accordion-CZ0thhxa.js";
|
|
14
|
+
import Sa from "./Title-l36lOBMx.js";
|
|
15
|
+
import { _ as yt } from "./Shape-CNXKB8O0.js";
|
|
16
|
+
import La from "./img-BecE5qXd.js";
|
|
17
|
+
import { _ as Pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "width", "height"], Oa = ["id"], Ia = ["stop-color"], Fa = ["stop-color"], Ba = { key: 1 }, Ma = ["x", "y", "width", "height", "fill", "rx"], Da = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ra = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = { class: "vue-ui-horizontal-bar-child-label" }, Ga = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ha = { class: "vue-ui-horizontal-bar-parent-label" }, ja = ["x", "y", "font-size", "fill", "font-weight"], qa = ["x", "y", "font-size", "fill", "font-weight"], Ya = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ka = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, Qa = ["onClick"], Ja = { style: "width:100%;padding-top: 36px;position:relative" }, Za = { class: "vue-ui-data-table" }, el = { key: 0 }, tl = { style: { width: "100%" } }, al = ["data-cell"], ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ol = ["data-cell"], nl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ul = ["data-cell"], sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, rl = ["data-cell"], il = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, vl = ["data-cell"], cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, dl = ["data-cell"], hl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, gl = {
|
|
22
22
|
__name: "vue-ui-vertical-bar",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -35,35 +35,35 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
setup(bt, { expose: mt, emit: kt }) {
|
|
39
|
+
Zt((t) => ({
|
|
40
|
+
v6fce4bf0: t.tdo
|
|
41
41
|
}));
|
|
42
|
-
const
|
|
42
|
+
const xt = Q(() => import("./Tooltip-oWCO1HKy.js")), Me = Q(() => import("./BaseIcon-BmMbm4d0.js")), wt = Q(() => import("./PenAndPaper-DSvu9dwa.js")), _t = Q(() => import("./UserOptions-CGnQt6Fd.js")), $t = Q(() => import("./PackageVersion-Cyx_s25h.js")), Ct = Q(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_vertical_bar: Tt } = ya(), St = ea(), m = bt, fe = f({
|
|
43
43
|
get() {
|
|
44
44
|
return !!m.dataset && m.dataset.length;
|
|
45
45
|
},
|
|
46
46
|
set(t) {
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
49
|
+
}), L = i(na()), ge = i(!1), ye = i(""), le = i(0), Lt = i(null), De = i(0), N = i(null), Re = i(null), be = i(null), Ee = i(null), Ue = i(null), Xe = i(0), me = i(0), j = i(null), oe = i(null), ke = i(null), Pt = kt, e = i(Ce()), Nt = f(() => [
|
|
50
50
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
51
51
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
52
52
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
53
53
|
{ name: "", value: 3, color: "#d9d9d9" },
|
|
54
54
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
55
55
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
56
|
-
]), { loading: Ge, FINAL_DATASET: xe, manualLoading:
|
|
57
|
-
...
|
|
56
|
+
]), { loading: Ge, FINAL_DATASET: xe, manualLoading: we } = ba({
|
|
57
|
+
...ta(m),
|
|
58
58
|
FINAL_CONFIG: e,
|
|
59
59
|
prepareConfig: Ce,
|
|
60
60
|
callback: () => {
|
|
61
61
|
Promise.resolve().then(async () => {
|
|
62
|
-
|
|
62
|
+
Y(), $.value.showTable = e.value.table.show, await F();
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
|
-
skeletonDataset:
|
|
66
|
-
skeletonConfig:
|
|
65
|
+
skeletonDataset: Nt.value,
|
|
66
|
+
skeletonConfig: ua({
|
|
67
67
|
defaultConfig: e.value,
|
|
68
68
|
userConfig: {
|
|
69
69
|
useCssAnimation: !1,
|
|
@@ -109,31 +109,31 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
})
|
|
112
|
-
}), { userOptionsVisible:
|
|
112
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: We, keepUserOptionState: He } = _a({ config: e.value }), { svgRef: $e } = $a({ config: e.value.style.chart.title });
|
|
113
113
|
function Ce() {
|
|
114
|
-
const t =
|
|
114
|
+
const t = ft({
|
|
115
115
|
userConfig: m.config,
|
|
116
|
-
defaultConfig:
|
|
116
|
+
defaultConfig: Tt
|
|
117
117
|
});
|
|
118
118
|
let l = {};
|
|
119
119
|
return t.theme ? l = {
|
|
120
|
-
...
|
|
121
|
-
userConfig:
|
|
120
|
+
...ft({
|
|
121
|
+
userConfig: Ca.vue_ui_vertical_bar[t.theme] || m.config,
|
|
122
122
|
defaultConfig: t
|
|
123
123
|
}),
|
|
124
|
-
customPalette:
|
|
124
|
+
customPalette: sa[t.theme] || H
|
|
125
125
|
} : l = t, m.config && Oe(m.config, "events.datapointEnter") ? l.events.datapointEnter = m.config.events.datapointEnter : l.events.datapointEnter = null, m.config && Oe(m.config, "events.datapointLeave") ? l.events.datapointLeave = m.config.events.datapointLeave : l.events.datapointLeave = null, m.config && Oe(m.config, "events.datapointClick") ? l.events.datapointClick = m.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
126
126
|
}
|
|
127
127
|
ze(() => m.config, (t) => {
|
|
128
|
-
Ge.value || (e.value = Ce()),
|
|
128
|
+
Ge.value || (e.value = Ce()), _e.value = !e.value.userOptions.showOnChartHover, et(), Xe.value += 1, me.value += 1, p.value = e.value.style.chart.layout.bars.height, x.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;
|
|
129
129
|
}, { deep: !0 }), ze(() => m.dataset, (t) => {
|
|
130
|
-
Array.isArray(t) && t.length > 0 && (
|
|
130
|
+
Array.isArray(t) && t.length > 0 && (we.value = !1), Y();
|
|
131
131
|
}, { deep: !0 });
|
|
132
|
-
const { isPrinting: je, isImaging: qe, generatePdf: Ye, generateImage: Ke } =
|
|
133
|
-
elementId: `vue-ui-vertical-bar_${
|
|
132
|
+
const { isPrinting: je, isImaging: qe, generatePdf: Ye, generateImage: Ke } = ka({
|
|
133
|
+
elementId: `vue-ui-vertical-bar_${L.value}`,
|
|
134
134
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
135
135
|
options: e.value.userOptions.print
|
|
136
|
-
}),
|
|
136
|
+
}), At = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = f(() => ra(e.value.customPalette)), Je = i(null), zt = f(() => e.value.table.responsiveBreakpoint), I = dt(null), q = dt(null), re = i("0 0 10 10"), A = f(() => {
|
|
137
137
|
const [t, l, a, o] = re.value.split(" ").map(Number);
|
|
138
138
|
return { x: t, y: l, width: a, height: o };
|
|
139
139
|
});
|
|
@@ -141,25 +141,25 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
141
141
|
await he(), et(), F();
|
|
142
142
|
});
|
|
143
143
|
async function F() {
|
|
144
|
-
if (re.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !
|
|
145
|
-
const t =
|
|
144
|
+
if (re.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !j.value) return;
|
|
145
|
+
const t = j.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = j.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
146
146
|
if (t && t.length) {
|
|
147
|
-
const
|
|
148
|
-
const
|
|
149
|
-
return
|
|
150
|
-
})),
|
|
151
|
-
const
|
|
152
|
-
return
|
|
147
|
+
const g = Math.max(...Array.from(t).flatMap((c) => {
|
|
148
|
+
const w = c.querySelectorAll("text");
|
|
149
|
+
return w.length ? Array.from(w).map((K) => K.getBBox().width) : 0;
|
|
150
|
+
})), _ = Math.max(...Array.from(l).flatMap((c) => {
|
|
151
|
+
const w = c.querySelectorAll("text");
|
|
152
|
+
return w.length ? Array.from(w).map((K) => K.getBBox().width) : 0;
|
|
153
153
|
}));
|
|
154
154
|
Array.from(t).forEach((c) => {
|
|
155
|
-
const
|
|
156
|
-
Array.from(
|
|
157
|
-
|
|
155
|
+
const w = c.querySelectorAll("text");
|
|
156
|
+
Array.from(w).forEach(async (K) => {
|
|
157
|
+
K.setAttribute("x", 0), K.setAttribute("x", P(-g - _));
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
await he();
|
|
162
|
-
const a =
|
|
162
|
+
const a = j.value ? j.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
163
163
|
re.value = [
|
|
164
164
|
a.x + -o,
|
|
165
165
|
0,
|
|
@@ -169,28 +169,28 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
169
169
|
}
|
|
170
170
|
let Ze;
|
|
171
171
|
Ve(() => {
|
|
172
|
-
|
|
172
|
+
N.value && (Ze = new ResizeObserver((t) => {
|
|
173
173
|
for (const l of t) {
|
|
174
174
|
const { width: a, height: o } = l.contentRect;
|
|
175
175
|
if (a > 0 && o > 0) {
|
|
176
176
|
Promise.resolve().then(async () => {
|
|
177
|
-
|
|
177
|
+
Y(), await F();
|
|
178
178
|
});
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
}), Ze.observe(
|
|
182
|
+
}), Ze.observe(N.value.parentElement));
|
|
183
183
|
});
|
|
184
|
-
const ie =
|
|
184
|
+
const ie = f(() => !!e.value.debug), Te = i(0);
|
|
185
185
|
function et() {
|
|
186
186
|
if (Ie(m.dataset) && (ue({
|
|
187
187
|
componentName: "VueUiVerticalBar",
|
|
188
188
|
type: "dataset",
|
|
189
189
|
debug: ie.value
|
|
190
|
-
}),
|
|
191
|
-
const t =
|
|
192
|
-
const { width: l, height: a } =
|
|
193
|
-
chart:
|
|
190
|
+
}), fe.value = !1, we.value = !0), le.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(m.dataset) || (we.value = e.value.loading), e.value.responsive) {
|
|
191
|
+
const t = fa(() => {
|
|
192
|
+
const { width: l, height: a } = ga({
|
|
193
|
+
chart: N.value,
|
|
194
194
|
title: e.value.style.chart.title.text ? Re.value : null,
|
|
195
195
|
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
196
196
|
source: Ee.value,
|
|
@@ -198,21 +198,21 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
198
198
|
});
|
|
199
199
|
Te.value = a / 3, requestAnimationFrame(async () => {
|
|
200
200
|
lt.value = l;
|
|
201
|
-
const o = x.value * (
|
|
202
|
-
p.value = (a - o) /
|
|
201
|
+
const o = x.value * (le.value - 1);
|
|
202
|
+
p.value = (a - o) / le.value, await he(), F();
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
I.value && (
|
|
205
|
+
I.value && (q.value && I.value.unobserve(q.value), I.value.disconnect()), I.value = new ResizeObserver(t), q.value = N.value.parentNode, I.value.observe(q.value), e.value.autoSize && F();
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
I.value && (
|
|
208
|
+
aa(() => {
|
|
209
|
+
I.value && (q.value && I.value.unobserve(q.value), I.value.disconnect());
|
|
210
210
|
});
|
|
211
211
|
const $ = i({
|
|
212
212
|
showTable: e.value.table.show,
|
|
213
213
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
214
214
|
showTooltip: e.value.style.chart.tooltip.show
|
|
215
|
-
}), tt =
|
|
215
|
+
}), tt = f(() => $.value.sortDesc), z = f(() => (xe.value.forEach((t, l) => {
|
|
216
216
|
!t.value && !t.children && ue({
|
|
217
217
|
componentName: "VueUiVerticalBar",
|
|
218
218
|
type: "datasetAttributeEmpty",
|
|
@@ -234,56 +234,56 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
234
234
|
});
|
|
235
235
|
}));
|
|
236
236
|
}), xe.value.map((t, l) => {
|
|
237
|
-
const a = `vertical_parent_${l}_${
|
|
237
|
+
const a = `vertical_parent_${l}_${L.value}`, o = t.children && t.children.length > 0, g = P(t.value ? t.value : o ? t.children.map((c) => c.value || 0).reduce((c, w) => c + w, 0) : 0), _ = g >= 0 ? 1 : -1;
|
|
238
238
|
return {
|
|
239
239
|
...t,
|
|
240
240
|
id: a,
|
|
241
241
|
absoluteIndex: l,
|
|
242
242
|
shape: "square",
|
|
243
|
-
opacity:
|
|
244
|
-
value: Math.abs(
|
|
245
|
-
sign:
|
|
243
|
+
opacity: T.value.includes(a) ? 0.5 : 1,
|
|
244
|
+
value: Math.abs(g),
|
|
245
|
+
sign: _,
|
|
246
246
|
hasChildren: o,
|
|
247
247
|
isChild: !1,
|
|
248
|
-
segregate: () =>
|
|
249
|
-
isSegregated:
|
|
250
|
-
color: Fe(t.color) || Qe.value[l] ||
|
|
251
|
-
children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (c,
|
|
248
|
+
segregate: () => D(a),
|
|
249
|
+
isSegregated: T.value.includes(a),
|
|
250
|
+
color: Fe(t.color) || Qe.value[l] || H[l] || H[l % H.length],
|
|
251
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (c, w) => tt.value ? w.value - c.value : c.value - w.value).map((c, w) => ({
|
|
252
252
|
...c,
|
|
253
|
-
value:
|
|
253
|
+
value: P(Math.abs(c.value)),
|
|
254
254
|
absoluteIndex: l,
|
|
255
255
|
sign: c.value >= 0 ? 1 : -1,
|
|
256
256
|
isChild: !0,
|
|
257
257
|
parentId: a,
|
|
258
258
|
parentName: t.name,
|
|
259
|
-
parentValue:
|
|
260
|
-
parentSign:
|
|
261
|
-
id: `vertical_child_${l}_${
|
|
262
|
-
childIndex:
|
|
263
|
-
color: Fe(c.color) || Fe(t.color) || Qe.value[l] ||
|
|
264
|
-
})).map((c,
|
|
259
|
+
parentValue: g,
|
|
260
|
+
parentSign: _,
|
|
261
|
+
id: `vertical_child_${l}_${w}_${L.value}`,
|
|
262
|
+
childIndex: w,
|
|
263
|
+
color: Fe(c.color) || Fe(t.color) || Qe.value[l] || H[l] || H[l % H.length]
|
|
264
|
+
})).map((c, w) => ({
|
|
265
265
|
...c,
|
|
266
|
-
isFirstChild:
|
|
267
|
-
isLastChild:
|
|
266
|
+
isFirstChild: w === 0,
|
|
267
|
+
isLastChild: w === t.children.length - 1
|
|
268
268
|
}))
|
|
269
269
|
};
|
|
270
|
-
}).toSorted(ve.value ? () => 0 : (t, l) => tt.value ? l.value - t.value : t.value - l.value))), at =
|
|
270
|
+
}).toSorted(ve.value ? () => 0 : (t, l) => tt.value ? l.value - t.value : t.value - l.value))), at = f(() => ({
|
|
271
271
|
cy: "vertical-bar-div-legend",
|
|
272
272
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
273
273
|
color: e.value.style.chart.legend.color,
|
|
274
274
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
275
275
|
paddingBottom: 12,
|
|
276
276
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
277
|
-
})), p = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap),
|
|
277
|
+
})), p = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), Vt = f(() => (p.value + x.value) * le.value), lt = i(512), C = f(() => ({
|
|
278
278
|
width: lt.value,
|
|
279
|
-
height:
|
|
279
|
+
height: Vt.value,
|
|
280
280
|
padding: {
|
|
281
281
|
top: 12,
|
|
282
282
|
left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
|
|
283
283
|
right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
|
|
284
284
|
bottom: 12
|
|
285
285
|
}
|
|
286
|
-
})), r =
|
|
286
|
+
})), r = f(() => ({
|
|
287
287
|
fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
|
|
288
288
|
top: C.value.padding.top,
|
|
289
289
|
left: C.value.padding.left,
|
|
@@ -291,114 +291,128 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
291
291
|
bottom: C.value.padding.top + C.value.height,
|
|
292
292
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
293
293
|
}));
|
|
294
|
-
async function
|
|
295
|
-
|
|
294
|
+
async function Y() {
|
|
295
|
+
le.value = R.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await F();
|
|
296
296
|
}
|
|
297
|
-
const
|
|
298
|
-
async function
|
|
299
|
-
if (
|
|
300
|
-
|
|
297
|
+
const T = i([]);
|
|
298
|
+
async function D(t) {
|
|
299
|
+
if (T.value.includes(t))
|
|
300
|
+
T.value = T.value.filter((l) => l !== t);
|
|
301
301
|
else {
|
|
302
|
-
if (
|
|
303
|
-
|
|
302
|
+
if (T.value.length === z.value.length - 1) return;
|
|
303
|
+
T.value.push(t);
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
Y(), await he(), e.value.autoSize && F(), Pt("selectLegend", R.value);
|
|
306
306
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
307
|
+
function ot(t) {
|
|
308
|
+
if (!z.value.length)
|
|
309
|
+
return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
|
|
310
|
+
const l = z.value.find((a) => a.name === t);
|
|
311
|
+
return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
|
|
312
|
+
}
|
|
313
|
+
function Ot(t) {
|
|
314
|
+
const l = ot(t);
|
|
315
|
+
l !== null && T.value.includes(l.id) && D(l.id);
|
|
316
|
+
}
|
|
317
|
+
function It(t) {
|
|
318
|
+
const l = ot(t);
|
|
319
|
+
l !== null && (T.value.includes(l.id) || D(l.id));
|
|
320
|
+
}
|
|
321
|
+
const R = f(() => z.value.filter((t) => !T.value.includes(t.id))), O = f(() => R.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
322
|
+
function nt(t, l = !1, a = 0) {
|
|
323
|
+
return l ? M({
|
|
324
|
+
v: P(Math.abs(t) / O.value * 100),
|
|
311
325
|
s: "%",
|
|
312
326
|
r: a
|
|
313
|
-
}) : Math.abs(t) /
|
|
327
|
+
}) : Math.abs(t) / O.value;
|
|
314
328
|
}
|
|
315
|
-
const
|
|
316
|
-
function
|
|
317
|
-
const l = t /
|
|
318
|
-
return r.value.width / (
|
|
329
|
+
const E = f(() => R.value.flatMap((t) => t.hasChildren ? t.children : t)), U = f(() => E.value.map((t) => t.sign).includes(-1)), Ft = f(() => Math.max(...R.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
|
|
330
|
+
function S(t) {
|
|
331
|
+
const l = t / Ft.value;
|
|
332
|
+
return r.value.width / (U.value ? 2 : 1) * l;
|
|
319
333
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
334
|
+
function Bt(t) {
|
|
335
|
+
return S(t) + r.value.left;
|
|
322
336
|
}
|
|
323
337
|
function ne(t, l) {
|
|
324
|
-
const a =
|
|
338
|
+
const a = R.value.find((_) => _.id === t.parentId), o = r.value.top + (x.value + p.value) * l, g = a.children.length * (x.value + p.value);
|
|
325
339
|
return {
|
|
326
|
-
y: o +
|
|
340
|
+
y: o + g / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
327
341
|
name: a.name,
|
|
328
342
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
329
|
-
percentageToTotal: isNaN(a.value /
|
|
343
|
+
percentageToTotal: isNaN(a.value / O.value) ? "" : nt(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
330
344
|
sign: a.sign
|
|
331
345
|
};
|
|
332
346
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
347
|
+
function Mt() {
|
|
348
|
+
return R.value;
|
|
335
349
|
}
|
|
336
350
|
const Se = i(null), Le = i(null);
|
|
337
|
-
function
|
|
351
|
+
function Dt({ datapoint: t, seriesIndex: l }) {
|
|
338
352
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
339
353
|
}
|
|
340
|
-
function
|
|
341
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
354
|
+
function Rt({ datapoint: t, seriesIndex: l }) {
|
|
355
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Lt.value = null, ge.value = !1, Se.value = null;
|
|
342
356
|
}
|
|
343
|
-
function
|
|
357
|
+
function Et(t, l) {
|
|
344
358
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Le.value = {
|
|
345
359
|
datapoint: t,
|
|
346
360
|
seriesIndex: l,
|
|
347
|
-
series:
|
|
361
|
+
series: z.value,
|
|
348
362
|
config: e.value
|
|
349
|
-
},
|
|
363
|
+
}, ge.value = !0, Se.value = t.id;
|
|
350
364
|
let a = "";
|
|
351
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
352
|
-
|
|
365
|
+
const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", _ = e.value.style.chart.tooltip.customFormat;
|
|
366
|
+
ha(_) && pa(() => _({
|
|
353
367
|
datapoint: t,
|
|
354
|
-
series:
|
|
368
|
+
series: z.value,
|
|
355
369
|
config: e.value,
|
|
356
370
|
seriesIndex: l
|
|
357
|
-
})) ? ye.value =
|
|
371
|
+
})) ? ye.value = _({
|
|
358
372
|
datapoint: t,
|
|
359
|
-
series:
|
|
373
|
+
series: z.value,
|
|
360
374
|
config: e.value,
|
|
361
375
|
seriesIndex: l
|
|
362
376
|
}) : (a += `<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;">
|
|
363
|
-
<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="${t.color}"/>${
|
|
364
|
-
${
|
|
377
|
+
<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="${t.color}"/>${St.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${L.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
378
|
+
${g ? `<div>${g}</div>` : ""}
|
|
365
379
|
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${se(
|
|
366
380
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
367
381
|
t.sign === 1 ? t.value : -t.value,
|
|
368
|
-
|
|
382
|
+
M({
|
|
369
383
|
p: e.value.style.chart.tooltip.prefix,
|
|
370
384
|
v: t.sign === 1 ? t.value : -t.value,
|
|
371
385
|
s: e.value.style.chart.tooltip.suffix,
|
|
372
386
|
r: e.value.style.chart.tooltip.roundingValue
|
|
373
387
|
}),
|
|
374
388
|
{ datapoint: t, seriesIndex: l }
|
|
375
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
376
|
-
v: Math.abs(t.value) /
|
|
389
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${M({
|
|
390
|
+
v: Math.abs(t.value) / O.value * 100,
|
|
377
391
|
s: "%",
|
|
378
392
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
379
|
-
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
393
|
+
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${M({
|
|
380
394
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
381
395
|
s: "%",
|
|
382
396
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
383
397
|
})}</b></div>`)), ye.value = `<div style="text-align:left">${a}</div>`);
|
|
384
398
|
}
|
|
385
|
-
function
|
|
399
|
+
function ut(t, l, a, o) {
|
|
386
400
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
387
401
|
return "";
|
|
388
|
-
const
|
|
402
|
+
const g = se(
|
|
389
403
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
390
|
-
|
|
391
|
-
|
|
404
|
+
P(o === -1 && t >= 0 ? -t : t),
|
|
405
|
+
M({
|
|
392
406
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
393
|
-
v:
|
|
407
|
+
v: P(o === -1 && t >= 0 ? -t : t),
|
|
394
408
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
395
409
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
396
410
|
}),
|
|
397
411
|
{ datapoint: l, seriesIndex: a }
|
|
398
|
-
),
|
|
399
|
-
return `${
|
|
412
|
+
), _ = `(${nt(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
413
|
+
return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${_}` : ""}`;
|
|
400
414
|
}
|
|
401
|
-
const
|
|
415
|
+
const V = f(() => {
|
|
402
416
|
const t = [
|
|
403
417
|
e.value.translations.parentName,
|
|
404
418
|
e.value.translations.value,
|
|
@@ -407,15 +421,15 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
407
421
|
e.value.translations.value,
|
|
408
422
|
e.value.translations.percentageToSerie,
|
|
409
423
|
e.value.translations.percentageToTotal
|
|
410
|
-
], l =
|
|
424
|
+
], l = E.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
411
425
|
color: a.color,
|
|
412
426
|
parentName: a.parentName,
|
|
413
427
|
parentValue: a.parentValue,
|
|
414
|
-
percentageToTotal: a.parentValue /
|
|
428
|
+
percentageToTotal: a.parentValue / O.value,
|
|
415
429
|
childName: a.name,
|
|
416
430
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
417
431
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
418
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
432
|
+
childPercentageToTotal: Math.abs(a.value) / O.value
|
|
419
433
|
} : {
|
|
420
434
|
color: "",
|
|
421
435
|
parentName: "",
|
|
@@ -424,12 +438,12 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
424
438
|
childName: a.name,
|
|
425
439
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
426
440
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
427
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
441
|
+
childPercentageToTotal: Math.abs(a.value) / O.value
|
|
428
442
|
} : {
|
|
429
443
|
color: a.color,
|
|
430
444
|
parentName: a.name,
|
|
431
445
|
parentValue: a.sign === 1 ? a.value : -a.value,
|
|
432
|
-
percentageToTotal: Math.abs(a.value) /
|
|
446
|
+
percentageToTotal: Math.abs(a.value) / O.value,
|
|
433
447
|
childName: "",
|
|
434
448
|
childValue: "",
|
|
435
449
|
childPercentageToParent: "",
|
|
@@ -438,7 +452,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
438
452
|
return { head: t, body: l };
|
|
439
453
|
});
|
|
440
454
|
function Pe(t = null) {
|
|
441
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
455
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = V.value.head, o = V.value.body.map((c) => [
|
|
442
456
|
c.parentName,
|
|
443
457
|
c.parentValue,
|
|
444
458
|
c.percentageToTotal,
|
|
@@ -446,66 +460,66 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
446
460
|
c.childValue,
|
|
447
461
|
c.childPercentageToParent,
|
|
448
462
|
c.childPercentageToTotal
|
|
449
|
-
]),
|
|
450
|
-
t ? t(
|
|
463
|
+
]), g = l.concat([a]).concat(o), _ = ca(g);
|
|
464
|
+
t ? t(_) : da({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
451
465
|
}
|
|
452
|
-
const
|
|
453
|
-
function
|
|
454
|
-
|
|
466
|
+
const X = i(!1);
|
|
467
|
+
function st(t) {
|
|
468
|
+
X.value = t, De.value += 1;
|
|
455
469
|
}
|
|
456
|
-
function
|
|
470
|
+
function rt() {
|
|
457
471
|
$.value.showTable = !$.value.showTable;
|
|
458
472
|
}
|
|
459
|
-
const
|
|
473
|
+
const Ut = i({
|
|
460
474
|
none: 0,
|
|
461
475
|
asc: 1,
|
|
462
476
|
desc: 2
|
|
463
|
-
}),
|
|
477
|
+
}), B = i(0), ve = i(!1);
|
|
464
478
|
Ve(() => {
|
|
465
479
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
|
|
466
480
|
componentName: "VueUiVerticalBar",
|
|
467
481
|
type: "attributeWrongValue",
|
|
468
482
|
property: "style.chart.layout.bars.sort",
|
|
469
483
|
key: e.value.style.chart.layout.bars.sort
|
|
470
|
-
}),
|
|
484
|
+
}), B.value = Ut.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = B.value === 2, ve.value = B.value === 0;
|
|
471
485
|
});
|
|
472
|
-
function
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
function rt() {
|
|
476
|
-
Rt(), $.value.sortDesc = M.value === 2, ve.value = M.value === 0, q();
|
|
486
|
+
function Xt() {
|
|
487
|
+
B.value += 1, B.value > 2 && (B.value = 0);
|
|
477
488
|
}
|
|
478
489
|
function it() {
|
|
490
|
+
Xt(), $.value.sortDesc = B.value === 2, ve.value = B.value === 0, Y();
|
|
491
|
+
}
|
|
492
|
+
function vt() {
|
|
479
493
|
$.value.showTooltip = !$.value.showTooltip;
|
|
480
494
|
}
|
|
481
495
|
const ce = i(!1);
|
|
482
496
|
function Ne() {
|
|
483
497
|
ce.value = !ce.value;
|
|
484
498
|
}
|
|
485
|
-
async function
|
|
486
|
-
if (!
|
|
487
|
-
const { width: l, height: a } =
|
|
499
|
+
async function Gt({ scale: t = 2 } = {}) {
|
|
500
|
+
if (!N.value) return;
|
|
501
|
+
const { width: l, height: a } = N.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: _ } = await La({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
488
502
|
return {
|
|
489
|
-
imageUri:
|
|
490
|
-
base64:
|
|
503
|
+
imageUri: g,
|
|
504
|
+
base64: _,
|
|
491
505
|
title: e.value.style.chart.title.text,
|
|
492
506
|
width: l,
|
|
493
507
|
height: a,
|
|
494
508
|
aspectRatio: o
|
|
495
509
|
};
|
|
496
510
|
}
|
|
497
|
-
const de =
|
|
511
|
+
const de = f(() => {
|
|
498
512
|
const t = e.value.table.useDialog && !e.value.table.show, l = $.value.showTable;
|
|
499
513
|
return {
|
|
500
|
-
component: t ?
|
|
514
|
+
component: t ? Ct : Ta,
|
|
501
515
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
502
516
|
props: t ? {
|
|
503
517
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
504
518
|
color: e.value.table.th.color,
|
|
505
519
|
headerColor: e.value.table.th.color,
|
|
506
520
|
headerBg: e.value.table.th.backgroundColor,
|
|
507
|
-
isFullscreen:
|
|
508
|
-
fullscreenParent:
|
|
521
|
+
isFullscreen: X.value,
|
|
522
|
+
fullscreenParent: N.value,
|
|
509
523
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
510
524
|
} : {
|
|
511
525
|
hideDetails: !0,
|
|
@@ -525,19 +539,19 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
525
539
|
};
|
|
526
540
|
});
|
|
527
541
|
ze(() => $.value.showTable, (t) => {
|
|
528
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
542
|
+
e.value.table.show || (t && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
529
543
|
});
|
|
530
|
-
const { isResponsive:
|
|
544
|
+
const { isResponsive: Wt } = wa(Je, zt);
|
|
531
545
|
function Ae() {
|
|
532
546
|
$.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
|
|
533
547
|
}
|
|
534
|
-
const
|
|
548
|
+
const Ht = f(() => z.value.map((t, l) => ({
|
|
535
549
|
...t,
|
|
536
550
|
shape: "square",
|
|
537
551
|
display: `${t.name}: ${se(
|
|
538
552
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
539
553
|
t.value,
|
|
540
|
-
|
|
554
|
+
M({
|
|
541
555
|
p: e.value.style.chart.legend.prefix,
|
|
542
556
|
v: t.value,
|
|
543
557
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -545,48 +559,50 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
545
559
|
}),
|
|
546
560
|
{ datapoint: t, seriesIndex: l }
|
|
547
561
|
)}`
|
|
548
|
-
}))),
|
|
562
|
+
}))), jt = f(() => e.value.style.chart.backgroundColor), qt = f(() => e.value.style.chart.legend), Yt = f(() => e.value.style.chart.title), Kt = f(() => Ht.value.map((t) => ({
|
|
549
563
|
...t,
|
|
550
564
|
name: t.display
|
|
551
|
-
}))), { exportSvg:
|
|
565
|
+
}))), { exportSvg: Qt, getSvg: Jt } = xa({
|
|
552
566
|
svg: $e,
|
|
553
|
-
title:
|
|
554
|
-
legend:
|
|
555
|
-
legendItems:
|
|
556
|
-
backgroundColor:
|
|
567
|
+
title: Yt,
|
|
568
|
+
legend: qt,
|
|
569
|
+
legendItems: Kt,
|
|
570
|
+
backgroundColor: jt
|
|
557
571
|
});
|
|
558
|
-
async function
|
|
572
|
+
async function ct({ isCb: t }) {
|
|
559
573
|
if (t) {
|
|
560
|
-
const { blob: l, url: a, text: o, dataUrl:
|
|
561
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl:
|
|
574
|
+
const { blob: l, url: a, text: o, dataUrl: g } = await Jt();
|
|
575
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: g });
|
|
562
576
|
} else
|
|
563
|
-
|
|
577
|
+
Qt();
|
|
564
578
|
}
|
|
565
|
-
return
|
|
579
|
+
return mt({
|
|
566
580
|
autoSize: F,
|
|
567
581
|
// v3
|
|
568
|
-
getData:
|
|
569
|
-
getImage:
|
|
570
|
-
recalculateHeight:
|
|
582
|
+
getData: Mt,
|
|
583
|
+
getImage: Gt,
|
|
584
|
+
recalculateHeight: Y,
|
|
571
585
|
generatePdf: Ye,
|
|
572
586
|
generateCsv: Pe,
|
|
573
587
|
generateImage: Ke,
|
|
574
|
-
generateSvg:
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
588
|
+
generateSvg: ct,
|
|
589
|
+
hideSeries: It,
|
|
590
|
+
showSeries: Ot,
|
|
591
|
+
toggleTable: rt,
|
|
592
|
+
toggleSort: it,
|
|
593
|
+
toggleTooltip: vt,
|
|
578
594
|
toggleAnnotator: Ne,
|
|
579
|
-
toggleFullscreen:
|
|
595
|
+
toggleFullscreen: st
|
|
580
596
|
}), (t, l) => (u(), v("div", {
|
|
581
|
-
class:
|
|
597
|
+
class: G(`vue-data-ui-component vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
582
598
|
ref_key: "verticalBarChart",
|
|
583
|
-
ref:
|
|
584
|
-
id: `vue-ui-vertical-bar_${
|
|
599
|
+
ref: N,
|
|
600
|
+
id: `vue-ui-vertical-bar_${L.value}`,
|
|
585
601
|
style: d(`padding-top:${e.value.responsive && e.value.autoSize ? `${Te.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${Te.value}px` : "height: 100%" : ""}`),
|
|
586
602
|
onMouseenter: l[3] || (l[3] = () => s(We)(!0)),
|
|
587
603
|
onMouseleave: l[4] || (l[4] = () => s(We)(!1))
|
|
588
604
|
}, [
|
|
589
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
605
|
+
e.value.userOptions.buttons.annotator ? (u(), W(s(wt), {
|
|
590
606
|
key: 0,
|
|
591
607
|
svgRef: s($e),
|
|
592
608
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -594,7 +610,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
594
610
|
active: ce.value,
|
|
595
611
|
onClose: Ne
|
|
596
612
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
597
|
-
|
|
613
|
+
At.value ? (u(), v("div", {
|
|
598
614
|
key: 1,
|
|
599
615
|
ref_key: "noTitle",
|
|
600
616
|
ref: Ue,
|
|
@@ -607,7 +623,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
607
623
|
ref: Re,
|
|
608
624
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
609
625
|
}, [
|
|
610
|
-
(u(),
|
|
626
|
+
(u(), W(Sa, {
|
|
611
627
|
key: `title_${Xe.value}`,
|
|
612
628
|
config: {
|
|
613
629
|
title: {
|
|
@@ -621,15 +637,15 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
621
637
|
}
|
|
622
638
|
}, null, 8, ["config"]))
|
|
623
639
|
], 512)) : y("", !0),
|
|
624
|
-
e.value.userOptions.show &&
|
|
640
|
+
e.value.userOptions.show && fe.value && (s(He) || s(_e)) ? (u(), W(s(_t), {
|
|
625
641
|
ref_key: "userOptionsRef",
|
|
626
642
|
ref: ke,
|
|
627
|
-
key: `user_options_${
|
|
643
|
+
key: `user_options_${De.value}`,
|
|
628
644
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
629
645
|
color: e.value.style.chart.color,
|
|
630
646
|
isImaging: s(qe),
|
|
631
647
|
isPrinting: s(je),
|
|
632
|
-
uid:
|
|
648
|
+
uid: L.value,
|
|
633
649
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
634
650
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
635
651
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -638,33 +654,33 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
638
654
|
hasTable: e.value.userOptions.buttons.table,
|
|
639
655
|
hasSort: e.value.userOptions.buttons.sort,
|
|
640
656
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
641
|
-
isFullscreen:
|
|
657
|
+
isFullscreen: X.value,
|
|
642
658
|
isTooltip: $.value.showTooltip,
|
|
643
659
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
644
|
-
chartElement:
|
|
660
|
+
chartElement: N.value,
|
|
645
661
|
position: e.value.userOptions.position,
|
|
646
662
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
647
663
|
isAnnotation: ce.value,
|
|
648
664
|
callbacks: e.value.userOptions.callbacks,
|
|
649
665
|
printScale: e.value.userOptions.print.scale,
|
|
650
666
|
tableDialog: e.value.table.useDialog,
|
|
651
|
-
onToggleFullscreen:
|
|
667
|
+
onToggleFullscreen: st,
|
|
652
668
|
onGeneratePdf: s(Ye),
|
|
653
669
|
onGenerateCsv: Pe,
|
|
654
670
|
onGenerateImage: s(Ke),
|
|
655
|
-
onGenerateSvg:
|
|
656
|
-
onToggleTable:
|
|
657
|
-
onToggleSort:
|
|
658
|
-
onToggleTooltip:
|
|
671
|
+
onGenerateSvg: ct,
|
|
672
|
+
onToggleTable: rt,
|
|
673
|
+
onToggleSort: it,
|
|
674
|
+
onToggleTooltip: vt,
|
|
659
675
|
onToggleAnnotator: Ne,
|
|
660
676
|
style: d({
|
|
661
|
-
visibility: s(He) ? s(
|
|
677
|
+
visibility: s(He) ? s(_e) ? "visible" : "hidden" : "visible"
|
|
662
678
|
})
|
|
663
679
|
}, pe({ _: 2 }, [
|
|
664
680
|
t.$slots.menuIcon ? {
|
|
665
681
|
name: "menuIcon",
|
|
666
682
|
fn: b(({ isOpen: a, color: o }) => [
|
|
667
|
-
k(t.$slots, "menuIcon",
|
|
683
|
+
k(t.$slots, "menuIcon", Z(ee({ isOpen: a, color: o })), void 0, !0)
|
|
668
684
|
]),
|
|
669
685
|
key: "0"
|
|
670
686
|
} : void 0,
|
|
@@ -727,14 +743,14 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
727
743
|
t.$slots.optionFullscreen ? {
|
|
728
744
|
name: "optionFullscreen",
|
|
729
745
|
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
730
|
-
k(t.$slots, "optionFullscreen",
|
|
746
|
+
k(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
731
747
|
]),
|
|
732
748
|
key: "9"
|
|
733
749
|
} : void 0,
|
|
734
750
|
t.$slots.optionAnnotator ? {
|
|
735
751
|
name: "optionAnnotator",
|
|
736
752
|
fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
737
|
-
k(t.$slots, "optionAnnotator",
|
|
753
|
+
k(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
738
754
|
]),
|
|
739
755
|
key: "10"
|
|
740
756
|
} : void 0
|
|
@@ -744,39 +760,39 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
744
760
|
ref_key: "chartLegend",
|
|
745
761
|
ref: be
|
|
746
762
|
}, [
|
|
747
|
-
(u(),
|
|
763
|
+
(u(), W(gt, {
|
|
748
764
|
key: `legend_top_${me.value}`,
|
|
749
|
-
legendSet:
|
|
765
|
+
legendSet: z.value,
|
|
750
766
|
config: at.value,
|
|
751
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
767
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => D(a.id))
|
|
752
768
|
}, pe({
|
|
753
769
|
item: b(({ legend: a, index: o }) => [
|
|
754
770
|
n("div", {
|
|
755
|
-
onClick: (
|
|
756
|
-
style: d(`opacity:${
|
|
771
|
+
onClick: (g) => D(a.id),
|
|
772
|
+
style: d(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
|
|
757
773
|
}, h(a.name) + ": " + h(s(se)(
|
|
758
774
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
759
775
|
a.value,
|
|
760
|
-
s(
|
|
776
|
+
s(M)({
|
|
761
777
|
p: e.value.style.chart.legend.prefix,
|
|
762
778
|
v: a.value,
|
|
763
779
|
s: e.value.style.chart.legend.suffix,
|
|
764
780
|
r: e.value.style.chart.legend.roundingValue
|
|
765
781
|
}),
|
|
766
782
|
{ datapoint: a, seriesIndex: o }
|
|
767
|
-
)), 13,
|
|
783
|
+
)), 13, Aa)
|
|
768
784
|
]),
|
|
769
785
|
_: 2
|
|
770
786
|
}, [
|
|
771
787
|
t.$slots.pattern ? {
|
|
772
788
|
name: "legend-pattern",
|
|
773
789
|
fn: b(({ legend: a, index: o }) => [
|
|
774
|
-
|
|
790
|
+
J(yt, {
|
|
775
791
|
shape: a.shape,
|
|
776
792
|
radius: 30,
|
|
777
793
|
stroke: "none",
|
|
778
794
|
plot: { x: 30, y: 30 },
|
|
779
|
-
fill: `url(#pattern_${
|
|
795
|
+
fill: `url(#pattern_${L.value}_${o})`
|
|
780
796
|
}, null, 8, ["shape", "fill"])
|
|
781
797
|
]),
|
|
782
798
|
key: "0"
|
|
@@ -786,97 +802,97 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
786
802
|
(u(), v("svg", {
|
|
787
803
|
ref_key: "svgRef",
|
|
788
804
|
ref: $e,
|
|
789
|
-
xmlns: s(
|
|
790
|
-
class:
|
|
805
|
+
xmlns: s(ia),
|
|
806
|
+
class: G({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
791
807
|
viewBox: re.value,
|
|
792
808
|
style: d(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
793
809
|
}, [
|
|
794
810
|
n("g", {
|
|
795
811
|
ref_key: "G",
|
|
796
|
-
ref:
|
|
812
|
+
ref: j,
|
|
797
813
|
class: "vue-data-ui-g"
|
|
798
814
|
}, [
|
|
799
|
-
|
|
815
|
+
J(s($t)),
|
|
800
816
|
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
801
817
|
key: 0,
|
|
802
|
-
x:
|
|
818
|
+
x: A.value.x,
|
|
803
819
|
y: 0,
|
|
804
|
-
width:
|
|
805
|
-
height:
|
|
820
|
+
width: A.value.width,
|
|
821
|
+
height: A.value.height,
|
|
806
822
|
style: {
|
|
807
823
|
pointerEvents: "none"
|
|
808
824
|
}
|
|
809
825
|
}, [
|
|
810
826
|
k(t.$slots, "chart-background", {}, void 0, !0)
|
|
811
|
-
], 8,
|
|
812
|
-
(u(!0), v(
|
|
827
|
+
], 8, Va)) : y("", !0),
|
|
828
|
+
(u(!0), v(te, null, ae(E.value, (a, o) => (u(), v("linearGradient", {
|
|
813
829
|
x1: "0%",
|
|
814
830
|
y1: "0%",
|
|
815
831
|
x2: "100%",
|
|
816
832
|
y2: "0%",
|
|
817
|
-
id: `vertical_bar_gradient_${
|
|
833
|
+
id: `vertical_bar_gradient_${L.value}_${o}`
|
|
818
834
|
}, [
|
|
819
835
|
n("stop", {
|
|
820
836
|
offset: "0%",
|
|
821
837
|
"stop-color": a.color
|
|
822
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Ia),
|
|
823
839
|
n("stop", {
|
|
824
840
|
offset: "100%",
|
|
825
|
-
"stop-color": s(
|
|
826
|
-
}, null, 8,
|
|
827
|
-
], 8,
|
|
828
|
-
t.$slots.pattern ? (u(), v("g",
|
|
829
|
-
(u(!0), v(
|
|
830
|
-
k(t.$slots, "pattern",
|
|
841
|
+
"stop-color": s(Be)(s(va)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
842
|
+
}, null, 8, Fa)
|
|
843
|
+
], 8, Oa))), 256)),
|
|
844
|
+
t.$slots.pattern ? (u(), v("g", Ba, [
|
|
845
|
+
(u(!0), v(te, null, ae(E.value, (a) => (u(), v("defs", null, [
|
|
846
|
+
k(t.$slots, "pattern", ht({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${L.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
831
847
|
]))), 256))
|
|
832
848
|
])) : y("", !0),
|
|
833
|
-
(u(!0), v(
|
|
849
|
+
(u(!0), v(te, null, ae(E.value, (a, o) => (u(), v("g", null, [
|
|
834
850
|
n("rect", {
|
|
835
|
-
x: s(
|
|
851
|
+
x: s(P)(U.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
|
|
836
852
|
y: r.value.top + (x.value + p.value) * o,
|
|
837
|
-
width: s(
|
|
853
|
+
width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
|
|
838
854
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
839
855
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
840
856
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
841
|
-
class:
|
|
842
|
-
}, null, 10,
|
|
857
|
+
class: G({ animated: e.value.useCssAnimation })
|
|
858
|
+
}, null, 10, Ma)
|
|
843
859
|
]))), 256)),
|
|
844
|
-
(u(!0), v(
|
|
860
|
+
(u(!0), v(te, null, ae(E.value, (a, o) => (u(), v("g", null, [
|
|
845
861
|
n("rect", {
|
|
846
|
-
x: s(
|
|
862
|
+
x: s(P)(U.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
|
|
847
863
|
y: r.value.top + (x.value + p.value) * o,
|
|
848
|
-
width: s(
|
|
864
|
+
width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
|
|
849
865
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
850
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${
|
|
866
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${L.value}_${o})` : s(Be)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
851
867
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
852
868
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
853
869
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
854
|
-
class:
|
|
855
|
-
}, null, 10,
|
|
870
|
+
class: G({ animated: e.value.useCssAnimation })
|
|
871
|
+
}, null, 10, Da),
|
|
856
872
|
t.$slots.pattern ? (u(), v("rect", {
|
|
857
873
|
key: 0,
|
|
858
|
-
x: s(
|
|
874
|
+
x: s(P)(U.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
|
|
859
875
|
y: r.value.top + (x.value + p.value) * o,
|
|
860
|
-
width: s(
|
|
876
|
+
width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
|
|
861
877
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
862
|
-
fill: `url(#pattern_${
|
|
878
|
+
fill: `url(#pattern_${L.value}_${a.absoluteIndex})`,
|
|
863
879
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
864
880
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
865
881
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
866
|
-
class:
|
|
867
|
-
}, null, 10,
|
|
868
|
-
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
882
|
+
class: G({ animated: e.value.useCssAnimation })
|
|
883
|
+
}, null, 10, Ra)) : y("", !0),
|
|
884
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== E.value.length - 1 ? (u(), v("line", {
|
|
869
885
|
key: 1,
|
|
870
|
-
x1:
|
|
871
|
-
x2: e.value.style.chart.layout.separators.fullWidth ?
|
|
886
|
+
x1: A.value.x,
|
|
887
|
+
x2: e.value.style.chart.layout.separators.fullWidth ? A.value.width - Math.abs(A.value.x) : r.value.left,
|
|
872
888
|
y1: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
|
|
873
889
|
y2: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
|
|
874
890
|
stroke: e.value.style.chart.layout.separators.color,
|
|
875
891
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
876
892
|
"stroke-linecap": "round",
|
|
877
893
|
style: { transition: "none !important", animation: "none !important" }
|
|
878
|
-
}, null, 8,
|
|
879
|
-
|
|
894
|
+
}, null, 8, Ea)) : y("", !0),
|
|
895
|
+
U.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
|
|
880
896
|
key: 2,
|
|
881
897
|
x1: r.value.left + r.value.width / 2,
|
|
882
898
|
x2: r.value.left + r.value.width / 2,
|
|
@@ -885,16 +901,16 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
885
901
|
stroke: e.value.style.chart.layout.separators.color,
|
|
886
902
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
887
903
|
"stroke-linecap": "round"
|
|
888
|
-
}, null, 8,
|
|
889
|
-
n("g",
|
|
904
|
+
}, null, 8, Ua)) : y("", !0),
|
|
905
|
+
n("g", Xa, [
|
|
890
906
|
n("text", {
|
|
891
|
-
x:
|
|
907
|
+
x: U.value ? r.value.left + r.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Bt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
892
908
|
y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
893
|
-
"text-anchor": !
|
|
909
|
+
"text-anchor": !U.value || a.sign === -1 ? "start" : "end",
|
|
894
910
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
895
911
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
896
912
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
897
|
-
}, h(
|
|
913
|
+
}, h(ut(a.value, a, o, a.sign)), 9, Ga),
|
|
898
914
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
|
|
899
915
|
key: 0,
|
|
900
916
|
"text-anchor": "end",
|
|
@@ -903,90 +919,90 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
903
919
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
904
920
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
905
921
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
906
|
-
}, h(a.name), 9,
|
|
922
|
+
}, h(a.name), 9, Wa)) : y("", !0)
|
|
907
923
|
]),
|
|
908
|
-
n("g",
|
|
924
|
+
n("g", Ha, [
|
|
909
925
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
910
926
|
key: 0,
|
|
911
|
-
x: e.value.autoSize ? void 0 :
|
|
927
|
+
x: e.value.autoSize ? void 0 : A.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
912
928
|
y: ne(a, o).y,
|
|
913
929
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
914
930
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
915
931
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
916
932
|
"text-anchor": "start"
|
|
917
|
-
}, h(ne(a, o).name), 9,
|
|
933
|
+
}, h(ne(a, o).name), 9, ja)) : y("", !0),
|
|
918
934
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
919
935
|
key: 1,
|
|
920
|
-
x: e.value.autoSize ? void 0 :
|
|
936
|
+
x: e.value.autoSize ? void 0 : A.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
921
937
|
y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
922
938
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
923
939
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
924
940
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
925
941
|
"text-anchor": "start"
|
|
926
|
-
}, h(
|
|
942
|
+
}, h(ut(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, qa)) : y("", !0)
|
|
927
943
|
]),
|
|
928
944
|
n("rect", {
|
|
929
|
-
x:
|
|
945
|
+
x: A.value.x,
|
|
930
946
|
y: r.value.top + (x.value + p.value) * o - x.value / 2,
|
|
931
|
-
width:
|
|
947
|
+
width: A.value.width,
|
|
932
948
|
height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
|
|
933
|
-
fill: Se.value === a.id ? s(
|
|
934
|
-
onMouseenter: (
|
|
935
|
-
onMouseleave: (
|
|
936
|
-
onClick: (
|
|
937
|
-
}, null, 40,
|
|
949
|
+
fill: Se.value === a.id ? s(Be)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
950
|
+
onMouseenter: (g) => Et(a, o),
|
|
951
|
+
onMouseleave: (g) => Rt({ datapoint: a, seriesIndex: o }),
|
|
952
|
+
onClick: (g) => Dt({ datapoint: a, seriesIndex: o })
|
|
953
|
+
}, null, 40, Ya)
|
|
938
954
|
]))), 256)),
|
|
939
|
-
k(t.$slots, "svg", { svg:
|
|
955
|
+
k(t.$slots, "svg", { svg: A.value }, void 0, !0)
|
|
940
956
|
], 512)
|
|
941
|
-
], 14,
|
|
942
|
-
t.$slots.watermark ? (u(), v("div",
|
|
943
|
-
k(t.$slots, "watermark",
|
|
957
|
+
], 14, za)),
|
|
958
|
+
t.$slots.watermark ? (u(), v("div", Ka, [
|
|
959
|
+
k(t.$slots, "watermark", Z(ee({ isPrinting: s(je) || s(qe) })), void 0, !0)
|
|
944
960
|
])) : y("", !0),
|
|
945
961
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
|
|
946
962
|
key: 6,
|
|
947
963
|
ref_key: "chartLegend",
|
|
948
964
|
ref: be
|
|
949
965
|
}, [
|
|
950
|
-
(u(),
|
|
966
|
+
(u(), W(gt, {
|
|
951
967
|
key: `legend_bottom_${me.value}`,
|
|
952
|
-
legendSet:
|
|
968
|
+
legendSet: z.value,
|
|
953
969
|
config: at.value,
|
|
954
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
970
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => D(a.id))
|
|
955
971
|
}, pe({
|
|
956
972
|
item: b(({ legend: a, index: o }) => [
|
|
957
973
|
n("div", {
|
|
958
|
-
onClick: (
|
|
959
|
-
style: d(`opacity:${
|
|
974
|
+
onClick: (g) => D(a.id),
|
|
975
|
+
style: d(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
|
|
960
976
|
}, h(a.name) + ": " + h(s(se)(
|
|
961
977
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
962
978
|
a.value,
|
|
963
|
-
s(
|
|
979
|
+
s(M)({
|
|
964
980
|
p: e.value.style.chart.legend.prefix,
|
|
965
981
|
v: a.value,
|
|
966
982
|
s: e.value.style.chart.legend.suffix,
|
|
967
983
|
r: e.value.style.chart.legend.roundingValue
|
|
968
984
|
}),
|
|
969
985
|
{ datapoint: a, seriesIndex: o }
|
|
970
|
-
)), 13,
|
|
986
|
+
)), 13, Qa)
|
|
971
987
|
]),
|
|
972
988
|
_: 2
|
|
973
989
|
}, [
|
|
974
990
|
t.$slots.pattern ? {
|
|
975
991
|
name: "legend-pattern",
|
|
976
992
|
fn: b(({ legend: a, index: o }) => [
|
|
977
|
-
|
|
993
|
+
J(yt, {
|
|
978
994
|
shape: a.shape,
|
|
979
995
|
radius: 30,
|
|
980
996
|
stroke: "none",
|
|
981
997
|
plot: { x: 30, y: 30 },
|
|
982
|
-
fill: `url(#pattern_${
|
|
998
|
+
fill: `url(#pattern_${L.value}_${o})`
|
|
983
999
|
}, null, 8, ["shape", "fill"])
|
|
984
1000
|
]),
|
|
985
1001
|
key: "0"
|
|
986
1002
|
} : void 0
|
|
987
1003
|
]), 1032, ["legendSet", "config"]))
|
|
988
1004
|
], 512)) : y("", !0),
|
|
989
|
-
k(t.$slots, "legend", { legend:
|
|
1005
|
+
k(t.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
990
1006
|
t.$slots.source ? (u(), v("div", {
|
|
991
1007
|
key: 7,
|
|
992
1008
|
ref_key: "source",
|
|
@@ -995,8 +1011,8 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
995
1011
|
}, [
|
|
996
1012
|
k(t.$slots, "source", {}, void 0, !0)
|
|
997
1013
|
], 512)) : y("", !0),
|
|
998
|
-
|
|
999
|
-
show: $.value.showTooltip &&
|
|
1014
|
+
J(s(xt), {
|
|
1015
|
+
show: $.value.showTooltip && ge.value && T.value.length < m.dataset.length,
|
|
1000
1016
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1001
1017
|
color: e.value.style.chart.tooltip.color,
|
|
1002
1018
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1006,9 +1022,9 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1006
1022
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1007
1023
|
position: e.value.style.chart.tooltip.position,
|
|
1008
1024
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1009
|
-
parent:
|
|
1025
|
+
parent: N.value,
|
|
1010
1026
|
content: ye.value,
|
|
1011
|
-
isFullscreen:
|
|
1027
|
+
isFullscreen: X.value,
|
|
1012
1028
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1013
1029
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1014
1030
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -1016,16 +1032,16 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1016
1032
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1017
1033
|
}, {
|
|
1018
1034
|
"tooltip-before": b(() => [
|
|
1019
|
-
k(t.$slots, "tooltip-before",
|
|
1035
|
+
k(t.$slots, "tooltip-before", Z(ee({ ...Le.value })), void 0, !0)
|
|
1020
1036
|
]),
|
|
1021
1037
|
"tooltip-after": b(() => [
|
|
1022
|
-
k(t.$slots, "tooltip-after",
|
|
1038
|
+
k(t.$slots, "tooltip-after", Z(ee({ ...Le.value })), void 0, !0)
|
|
1023
1039
|
]),
|
|
1024
1040
|
_: 3
|
|
1025
1041
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1026
|
-
|
|
1042
|
+
fe.value && e.value.userOptions.buttons.table ? (u(), W(la(de.value.component), ht({ key: 8 }, de.value.props, {
|
|
1027
1043
|
ref_key: "tableUnit",
|
|
1028
|
-
ref:
|
|
1044
|
+
ref: oe,
|
|
1029
1045
|
onClose: Ae
|
|
1030
1046
|
}), pe({
|
|
1031
1047
|
content: b(() => [
|
|
@@ -1035,16 +1051,16 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1035
1051
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1036
1052
|
style: d(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1037
1053
|
}, [
|
|
1038
|
-
n("div",
|
|
1054
|
+
n("div", Ja, [
|
|
1039
1055
|
e.value.table.useDialog ? y("", !0) : (u(), v("div", {
|
|
1040
1056
|
key: 0,
|
|
1041
1057
|
role: "button",
|
|
1042
1058
|
tabindex: "0",
|
|
1043
1059
|
style: d(`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};`),
|
|
1044
1060
|
onClick: Ae,
|
|
1045
|
-
onKeypress:
|
|
1061
|
+
onKeypress: oa(Ae, ["enter"])
|
|
1046
1062
|
}, [
|
|
1047
|
-
|
|
1063
|
+
J(s(Me), {
|
|
1048
1064
|
name: "close",
|
|
1049
1065
|
stroke: e.value.table.th.color,
|
|
1050
1066
|
"stroke-width": 2
|
|
@@ -1052,26 +1068,26 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1052
1068
|
], 36)),
|
|
1053
1069
|
n("div", {
|
|
1054
1070
|
style: { width: "100%", "container-type": "inline-size" },
|
|
1055
|
-
class:
|
|
1071
|
+
class: G({ "vue-ui-responsive": s(Wt) })
|
|
1056
1072
|
}, [
|
|
1057
|
-
n("table",
|
|
1073
|
+
n("table", Za, [
|
|
1058
1074
|
e.value.table.useDialog ? y("", !0) : (u(), v("caption", {
|
|
1059
1075
|
key: 0,
|
|
1060
1076
|
style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1061
1077
|
class: "vue-ui-data-table__caption"
|
|
1062
1078
|
}, [
|
|
1063
|
-
|
|
1064
|
-
e.value.style.chart.title.subtitle.text ? (u(), v("span",
|
|
1079
|
+
pt(h(e.value.style.chart.title.text) + " ", 1),
|
|
1080
|
+
e.value.style.chart.title.subtitle.text ? (u(), v("span", el, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
1065
1081
|
], 4)),
|
|
1066
1082
|
n("thead", null, [
|
|
1067
1083
|
n("tr", {
|
|
1068
1084
|
role: "row",
|
|
1069
1085
|
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1070
1086
|
}, [
|
|
1071
|
-
(u(!0), v(
|
|
1087
|
+
(u(!0), v(te, null, ae(V.value.head, (a) => (u(), v("th", {
|
|
1072
1088
|
style: d(`outline:${e.value.table.th.outline}`)
|
|
1073
1089
|
}, [
|
|
1074
|
-
n("div",
|
|
1090
|
+
n("div", tl, h(a), 1)
|
|
1075
1091
|
], 4))), 256))
|
|
1076
1092
|
], 4),
|
|
1077
1093
|
n("tr", null, [
|
|
@@ -1080,7 +1096,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1080
1096
|
}, null, 4),
|
|
1081
1097
|
n("th", {
|
|
1082
1098
|
style: d(`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`)
|
|
1083
|
-
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(
|
|
1099
|
+
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(O.value) ? "" : O.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
|
|
1084
1100
|
n("th", {
|
|
1085
1101
|
style: d(`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`)
|
|
1086
1102
|
}, "100%", 4),
|
|
@@ -1099,65 +1115,65 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1099
1115
|
])
|
|
1100
1116
|
]),
|
|
1101
1117
|
n("tbody", null, [
|
|
1102
|
-
(u(!0), v(
|
|
1103
|
-
class:
|
|
1118
|
+
(u(!0), v(te, null, ae(V.value.body, (a, o) => (u(), v("tr", {
|
|
1119
|
+
class: G({ "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 }),
|
|
1104
1120
|
style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1105
1121
|
}, [
|
|
1106
1122
|
n("td", {
|
|
1107
1123
|
class: "vue-ui-data-table__tbody__td",
|
|
1108
1124
|
style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1109
|
-
"data-cell":
|
|
1125
|
+
"data-cell": V.value.head[0] ?? ""
|
|
1110
1126
|
}, [
|
|
1111
|
-
n("div",
|
|
1127
|
+
n("div", ll, [
|
|
1112
1128
|
a.color ? (u(), v("span", {
|
|
1113
1129
|
key: 0,
|
|
1114
1130
|
style: d(`color:${a.color};margin-right:3px`)
|
|
1115
1131
|
}, "⬤", 4)) : y("", !0),
|
|
1116
1132
|
n("span", null, h(a.parentName), 1)
|
|
1117
1133
|
])
|
|
1118
|
-
], 12,
|
|
1134
|
+
], 12, al),
|
|
1119
1135
|
n("td", {
|
|
1120
1136
|
class: "vue-ui-data-table__tbody__td",
|
|
1121
1137
|
style: d(`outline:${e.value.table.td.outline}`),
|
|
1122
|
-
"data-cell":
|
|
1138
|
+
"data-cell": V.value.head[1] ?? ""
|
|
1123
1139
|
}, [
|
|
1124
|
-
n("div",
|
|
1125
|
-
], 12,
|
|
1140
|
+
n("div", nl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
1141
|
+
], 12, ol),
|
|
1126
1142
|
n("td", {
|
|
1127
1143
|
class: "vue-ui-data-table__tbody__td",
|
|
1128
1144
|
style: d(`outline:${e.value.table.td.outline}`),
|
|
1129
|
-
"data-cell":
|
|
1145
|
+
"data-cell": V.value.head[2] ?? ""
|
|
1130
1146
|
}, [
|
|
1131
|
-
n("div",
|
|
1132
|
-
], 12,
|
|
1147
|
+
n("div", sl, h(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1148
|
+
], 12, ul),
|
|
1133
1149
|
n("td", {
|
|
1134
1150
|
class: "vue-ui-data-table__tbody__td",
|
|
1135
1151
|
style: d(`outline:${e.value.table.td.outline}`),
|
|
1136
|
-
"data-cell":
|
|
1152
|
+
"data-cell": V.value.head[3] ?? ""
|
|
1137
1153
|
}, [
|
|
1138
|
-
n("div",
|
|
1139
|
-
], 12,
|
|
1154
|
+
n("div", il, h(a.childName), 1)
|
|
1155
|
+
], 12, rl),
|
|
1140
1156
|
n("td", {
|
|
1141
1157
|
class: "vue-ui-data-table__tbody__td",
|
|
1142
1158
|
style: d(`outline:${e.value.table.td.outline}`),
|
|
1143
|
-
"data-cell":
|
|
1159
|
+
"data-cell": V.value.head[4] ?? ""
|
|
1144
1160
|
}, [
|
|
1145
|
-
n("div",
|
|
1146
|
-
], 12,
|
|
1161
|
+
n("div", cl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
1162
|
+
], 12, vl),
|
|
1147
1163
|
n("td", {
|
|
1148
1164
|
class: "vue-ui-data-table__tbody__td",
|
|
1149
1165
|
style: d(`outline:${e.value.table.td.outline}`),
|
|
1150
|
-
"data-cell":
|
|
1166
|
+
"data-cell": V.value.head[5] ?? ""
|
|
1151
1167
|
}, [
|
|
1152
|
-
n("div",
|
|
1153
|
-
], 12,
|
|
1168
|
+
n("div", hl, h(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1169
|
+
], 12, dl),
|
|
1154
1170
|
n("td", {
|
|
1155
1171
|
class: "vue-ui-data-table__tbody__td",
|
|
1156
1172
|
style: d(`outline:${e.value.table.td.outline}`),
|
|
1157
|
-
"data-cell":
|
|
1173
|
+
"data-cell": V.value.head[6] ?? ""
|
|
1158
1174
|
}, [
|
|
1159
|
-
n("div",
|
|
1160
|
-
], 12,
|
|
1175
|
+
n("div", fl, h(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1176
|
+
], 12, pl)
|
|
1161
1177
|
], 6))), 256))
|
|
1162
1178
|
])
|
|
1163
1179
|
])
|
|
@@ -1170,7 +1186,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1170
1186
|
e.value.table.useDialog ? {
|
|
1171
1187
|
name: "title",
|
|
1172
1188
|
fn: b(() => [
|
|
1173
|
-
|
|
1189
|
+
pt(h(de.value.title), 1)
|
|
1174
1190
|
]),
|
|
1175
1191
|
key: "0"
|
|
1176
1192
|
} : void 0,
|
|
@@ -1182,7 +1198,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1182
1198
|
class: "vue-ui-user-options-button",
|
|
1183
1199
|
onClick: l[2] || (l[2] = (a) => Pe(e.value.userOptions.callbacks.csv))
|
|
1184
1200
|
}, [
|
|
1185
|
-
|
|
1201
|
+
J(s(Me), {
|
|
1186
1202
|
name: "excel",
|
|
1187
1203
|
stroke: de.value.props.color
|
|
1188
1204
|
}, null, 8, ["stroke"])
|
|
@@ -1191,10 +1207,10 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1191
1207
|
key: "1"
|
|
1192
1208
|
} : void 0
|
|
1193
1209
|
]), 1040)) : y("", !0),
|
|
1194
|
-
s(Ge) ? (u(),
|
|
1195
|
-
], 46,
|
|
1210
|
+
s(Ge) ? (u(), W(ma, { key: 9 })) : y("", !0)
|
|
1211
|
+
], 46, Na));
|
|
1196
1212
|
}
|
|
1197
|
-
},
|
|
1213
|
+
}, Ol = /* @__PURE__ */ Pa(gl, [["__scopeId", "data-v-4ecc1fd7"]]);
|
|
1198
1214
|
export {
|
|
1199
|
-
|
|
1215
|
+
Ol as default
|
|
1200
1216
|
};
|