vue-data-ui 3.0.22 → 3.1.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/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/Legend-2-dC7DVb.js +72 -0
- package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-Y5T9UxMO.js +0 -133
- package/dist/Legend-DkU3at-b.js +0 -72
- package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
- package/dist/vue-ui-chord-0wf798ls.js +0 -1049
- package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
- package/dist/vue-ui-flow-K7UBguES.js +0 -852
- package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
- package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
- package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
- package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
- package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
- package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
- package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
- package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
- package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
- package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
- package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { useCssVars as Ut, defineAsyncComponent as K, useSlots as Xt, computed as y, ref as r, toRefs as Wt, watch as Ne, shallowRef as it, onMounted as Ae, nextTick as ce, onBeforeUnmount as Gt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as c, normalizeClass as U, createBlock as X, createCommentVNode as f, renderSlot as _, createVNode as J, createSlots as he, withCtx as m, normalizeProps as Q, guardReactiveProps as Z, createElementVNode as n, toDisplayString as h, Fragment as ee, renderList as te, mergeProps as vt, resolveDynamicComponent as Ht, withKeys as jt, createTextVNode as dt } from "vue";
|
|
2
|
+
import { u as qt, c as Yt, t as Kt, a as Jt, p as W, b as Qt, C as ze, d as Zt, h as L, o as Ve, f as ue, e as Ie, k as pe, i as G, X as ea, s as Oe, x as ta, v as aa, w as la, y as oa, z as na } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as ua, u as sa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ra, B as ia } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as va } from "./usePrinter-Bnl1YeUU.js";
|
|
6
|
+
import { u as ct } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as da } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ca } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import ht from "./Legend-2-dC7DVb.js";
|
|
10
|
+
import ha from "./vue-ui-accordion-Bf_LHFFX.js";
|
|
11
|
+
import pa from "./Title-Dq2_Z9kR.js";
|
|
12
|
+
import { _ as pt } from "./Shape-Dj2Hl33H.js";
|
|
13
|
+
import fa from "./img-JOqdlnUs.js";
|
|
14
|
+
import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ya = ["id"], ba = ["onClick"], ma = ["xmlns", "viewBox"], ka = ["x", "width", "height"], xa = ["id"], wa = ["stop-color"], _a = ["stop-color"], $a = { key: 1 }, Ca = ["x", "y", "width", "height", "fill", "rx"], Ta = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = { class: "vue-ui-horizontal-bar-child-label" }, Aa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], za = ["x", "y", "font-size", "fill", "font-weight"], Va = { class: "vue-ui-horizontal-bar-parent-label" }, Ia = ["x", "y", "font-size", "fill", "font-weight"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Fa = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ma = {
|
|
16
16
|
key: 5,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, Ba = ["onClick"], Da = { style: "width:100%;padding-top: 36px;position:relative" }, Ra = { class: "vue-ui-data-table" }, Ea = { key: 0 }, Ua = { style: { width: "100%" } }, Xa = ["data-cell"], Wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ga = ["data-cell"], Ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = ["data-cell"], qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ya = ["data-cell"], Ka = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ja = ["data-cell"], Qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Za = ["data-cell"], el = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, tl = ["data-cell"], al = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ll = {
|
|
19
19
|
__name: "vue-ui-vertical-bar",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,35 +32,35 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
setup(ft, { expose: gt, emit: yt }) {
|
|
36
|
+
Ut((t) => ({
|
|
37
|
+
d072bdee: t.tdo
|
|
38
38
|
}));
|
|
39
|
-
const
|
|
39
|
+
const bt = K(() => import("./Tooltip-Y219DXZO.js")), Fe = K(() => import("./BaseIcon-DHtro8us.js")), mt = K(() => import("./PenAndPaper-B7QEDgx4.js")), kt = K(() => import("./UserOptions-BuGfCdAY.js")), xt = K(() => import("./PackageVersion-DU12WH3O.js")), wt = K(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_vertical_bar: _t } = qt(), $t = Xt(), b = ft, fe = y({
|
|
40
40
|
get() {
|
|
41
|
-
return !!
|
|
41
|
+
return !!b.dataset && b.dataset.length;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), S =
|
|
46
|
+
}), S = r(Yt()), Ct = r(null), ge = r(!1), ye = r(""), ae = r(0), Tt = r(null), Me = r(0), P = r(null), Be = r(null), be = r(null), De = r(null), Re = r(null), Ee = r(0), me = r(0), H = r(null), le = r(null), St = yt, e = r($e()), Lt = y(() => [
|
|
47
47
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
48
48
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
49
49
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
50
50
|
{ name: "", value: 3, color: "#d9d9d9" },
|
|
51
51
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
52
52
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
53
|
-
]), { loading:
|
|
54
|
-
...
|
|
53
|
+
]), { loading: ke, FINAL_DATASET: xe, manualLoading: we } = ra({
|
|
54
|
+
...Wt(b),
|
|
55
55
|
FINAL_CONFIG: e,
|
|
56
|
-
prepareConfig:
|
|
56
|
+
prepareConfig: $e,
|
|
57
57
|
callback: () => {
|
|
58
58
|
Promise.resolve().then(async () => {
|
|
59
|
-
|
|
59
|
+
q(), k.value.showTable = e.value.table.show, await O();
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
|
-
skeletonDataset:
|
|
63
|
-
skeletonConfig:
|
|
62
|
+
skeletonDataset: Lt.value,
|
|
63
|
+
skeletonConfig: Kt({
|
|
64
64
|
defaultConfig: e.value,
|
|
65
65
|
userConfig: {
|
|
66
66
|
useCssAnimation: !1,
|
|
@@ -106,154 +106,154 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
})
|
|
109
|
-
}), { userOptionsVisible:
|
|
110
|
-
function
|
|
111
|
-
const t =
|
|
112
|
-
userConfig:
|
|
113
|
-
defaultConfig:
|
|
109
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: Ue, keepUserOptionState: Xe } = da({ config: e.value }), { svgRef: We } = ca({ config: e.value.style.chart.title });
|
|
110
|
+
function $e() {
|
|
111
|
+
const t = ct({
|
|
112
|
+
userConfig: b.config,
|
|
113
|
+
defaultConfig: _t
|
|
114
114
|
});
|
|
115
115
|
let l = {};
|
|
116
116
|
return t.theme ? l = {
|
|
117
|
-
...
|
|
118
|
-
userConfig:
|
|
117
|
+
...ct({
|
|
118
|
+
userConfig: Qt.vue_ui_vertical_bar[t.theme] || b.config,
|
|
119
119
|
defaultConfig: t
|
|
120
120
|
}),
|
|
121
|
-
customPalette:
|
|
122
|
-
} : l = t,
|
|
121
|
+
customPalette: Jt[t.theme] || W
|
|
122
|
+
} : l = t, b.config && ze(b.config, "events.datapointEnter") ? l.events.datapointEnter = b.config.events.datapointEnter : l.events.datapointEnter = null, b.config && ze(b.config, "events.datapointLeave") ? l.events.datapointLeave = b.config.events.datapointLeave : l.events.datapointLeave = null, b.config && ze(b.config, "events.datapointClick") ? l.events.datapointClick = b.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, { deep: !0 }),
|
|
127
|
-
Array.isArray(t) && t.length > 0 && (
|
|
124
|
+
Ne(() => b.config, (t) => {
|
|
125
|
+
ke.value || (e.value = $e()), _e.value = !e.value.userOptions.showOnChartHover, Ze(), Ee.value += 1, me.value += 1, p.value = e.value.style.chart.layout.bars.height, x.value = e.value.style.chart.layout.bars.gap, k.value.showTable = e.value.table.show, k.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
126
|
+
}, { deep: !0 }), Ne(() => b.dataset, (t) => {
|
|
127
|
+
Array.isArray(t) && t.length > 0 && (we.value = !1), q();
|
|
128
128
|
}, { deep: !0 });
|
|
129
|
-
const { isPrinting:
|
|
129
|
+
const { isPrinting: Ge, isImaging: He, generatePdf: je, generateImage: qe } = va({
|
|
130
130
|
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
131
131
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
132
132
|
options: e.value.userOptions.print
|
|
133
|
-
}),
|
|
134
|
-
const [t, l, a, o] =
|
|
133
|
+
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => Zt(e.value.customPalette)), Ke = r(null), Je = r(!1), Nt = y(() => e.value.table.responsiveBreakpoint), I = it(null), j = it(null), se = r("0 0 10 10"), N = y(() => {
|
|
134
|
+
const [t, l, a, o] = se.value.split(" ").map(Number);
|
|
135
135
|
return { x: t, y: l, width: a, height: o };
|
|
136
136
|
});
|
|
137
|
-
|
|
138
|
-
await
|
|
137
|
+
Ae(async () => {
|
|
138
|
+
await ce(), Ze(), O();
|
|
139
139
|
});
|
|
140
140
|
async function O() {
|
|
141
|
-
if (
|
|
142
|
-
const t =
|
|
141
|
+
if (se.value = `0 0 ${C.value.width} ${i.value.fullHeight}`, !e.value.autoSize || !H.value) return;
|
|
142
|
+
const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
143
143
|
if (t && t.length) {
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
return
|
|
147
|
-
})),
|
|
148
|
-
const
|
|
149
|
-
return
|
|
144
|
+
const g = Math.max(...Array.from(t).flatMap((d) => {
|
|
145
|
+
const w = d.querySelectorAll("text");
|
|
146
|
+
return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
|
|
147
|
+
})), $ = Math.max(...Array.from(l).flatMap((d) => {
|
|
148
|
+
const w = d.querySelectorAll("text");
|
|
149
|
+
return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
|
|
150
150
|
}));
|
|
151
151
|
Array.from(t).forEach((d) => {
|
|
152
|
-
const
|
|
153
|
-
Array.from(
|
|
154
|
-
Y.setAttribute("x", 0), Y.setAttribute("x", L(-
|
|
152
|
+
const w = d.querySelectorAll("text");
|
|
153
|
+
Array.from(w).forEach(async (Y) => {
|
|
154
|
+
Y.setAttribute("x", 0), Y.setAttribute("x", L(-g - $));
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
await
|
|
159
|
-
const a =
|
|
160
|
-
|
|
158
|
+
await ce();
|
|
159
|
+
const a = H.value ? H.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
160
|
+
se.value = [
|
|
161
161
|
a.x + -o,
|
|
162
162
|
0,
|
|
163
163
|
a.width + o * 2,
|
|
164
|
-
|
|
164
|
+
i.value.fullHeight
|
|
165
165
|
].join(" ");
|
|
166
166
|
}
|
|
167
|
-
let
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
let Qe;
|
|
168
|
+
Ae(() => {
|
|
169
|
+
P.value && (Qe = new ResizeObserver((t) => {
|
|
170
170
|
for (const l of t) {
|
|
171
171
|
const { width: a, height: o } = l.contentRect;
|
|
172
172
|
if (a > 0 && o > 0) {
|
|
173
173
|
Promise.resolve().then(async () => {
|
|
174
|
-
|
|
174
|
+
q(), await O();
|
|
175
175
|
});
|
|
176
176
|
break;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
}),
|
|
179
|
+
}), Qe.observe(P.value.parentElement));
|
|
180
180
|
});
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
if (
|
|
181
|
+
const re = y(() => !!e.value.debug), Ce = r(0);
|
|
182
|
+
function Ze() {
|
|
183
|
+
if (Ve(b.dataset) && (ue({
|
|
184
184
|
componentName: "VueUiVerticalBar",
|
|
185
185
|
type: "dataset",
|
|
186
|
-
debug:
|
|
187
|
-
}),
|
|
188
|
-
const t =
|
|
189
|
-
const { width: l, height: a } =
|
|
190
|
-
chart:
|
|
191
|
-
title: e.value.style.chart.title.text ?
|
|
192
|
-
legend: e.value.style.chart.legend.show ?
|
|
193
|
-
source:
|
|
194
|
-
noTitle:
|
|
186
|
+
debug: re.value
|
|
187
|
+
}), fe.value = !1, we.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), At(), Ve(b.dataset) || (we.value = e.value.loading), e.value.responsive) {
|
|
188
|
+
const t = ua(() => {
|
|
189
|
+
const { width: l, height: a } = sa({
|
|
190
|
+
chart: P.value,
|
|
191
|
+
title: e.value.style.chart.title.text ? Be.value : null,
|
|
192
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
193
|
+
source: De.value,
|
|
194
|
+
noTitle: Re.value
|
|
195
195
|
});
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const o =
|
|
199
|
-
|
|
196
|
+
Ce.value = a / 3, requestAnimationFrame(async () => {
|
|
197
|
+
at.value = l;
|
|
198
|
+
const o = x.value * (ae.value - 1);
|
|
199
|
+
p.value = (a - o) / ae.value, await ce(), O();
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
|
-
I.value && (
|
|
202
|
+
I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect()), I.value = new ResizeObserver(t), j.value = P.value.parentNode, I.value.observe(j.value), e.value.autoSize && O();
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
|
|
206
|
-
I.value && (
|
|
205
|
+
Gt(() => {
|
|
206
|
+
I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect());
|
|
207
207
|
});
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
208
|
+
function At() {
|
|
209
|
+
if (ke.value) return;
|
|
210
210
|
new ResizeObserver((l) => {
|
|
211
211
|
l.forEach((a) => {
|
|
212
|
-
|
|
212
|
+
Je.value = a.contentRect.width < Nt.value;
|
|
213
213
|
});
|
|
214
|
-
}).observe(
|
|
214
|
+
}).observe(Ke.value);
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const k = r({
|
|
217
217
|
showTable: e.value.table.show,
|
|
218
218
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
219
219
|
showTooltip: e.value.style.chart.tooltip.show
|
|
220
|
-
}),
|
|
221
|
-
!t.value && !t.children &&
|
|
220
|
+
}), et = y(() => k.value.sortDesc), F = y(() => (xe.value.forEach((t, l) => {
|
|
221
|
+
!t.value && !t.children && ue({
|
|
222
222
|
componentName: "VueUiVerticalBar",
|
|
223
223
|
type: "datasetAttributeEmpty",
|
|
224
224
|
property: `value (index ${l})`,
|
|
225
|
-
debug:
|
|
226
|
-
}), t.children && (
|
|
225
|
+
debug: re.value
|
|
226
|
+
}), t.children && (Ve(t.children) ? ue({
|
|
227
227
|
componentName: "VueUiVerticalBar",
|
|
228
228
|
type: "datasetAttributeEmpty",
|
|
229
229
|
property: `children (index ${l})`,
|
|
230
|
-
debug:
|
|
230
|
+
debug: re.value
|
|
231
231
|
}) : t.children.forEach((a, o) => {
|
|
232
|
-
[null, void 0].includes(a.name) &&
|
|
232
|
+
[null, void 0].includes(a.name) && ue({
|
|
233
233
|
componentName: "VueUiVerticalBar",
|
|
234
234
|
type: "datasetSerieAttribute",
|
|
235
235
|
property: "name",
|
|
236
236
|
key: "children",
|
|
237
237
|
index: o,
|
|
238
|
-
debug:
|
|
238
|
+
debug: re.value
|
|
239
239
|
});
|
|
240
240
|
}));
|
|
241
|
-
}),
|
|
242
|
-
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0,
|
|
241
|
+
}), xe.value.map((t, l) => {
|
|
242
|
+
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, g = L(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, w) => d + w, 0) : 0), $ = g >= 0 ? 1 : -1;
|
|
243
243
|
return {
|
|
244
244
|
...t,
|
|
245
245
|
id: a,
|
|
246
246
|
absoluteIndex: l,
|
|
247
247
|
shape: "square",
|
|
248
|
-
opacity:
|
|
249
|
-
value: Math.abs(
|
|
250
|
-
sign:
|
|
248
|
+
opacity: A.value.includes(a) ? 0.5 : 1,
|
|
249
|
+
value: Math.abs(g),
|
|
250
|
+
sign: $,
|
|
251
251
|
hasChildren: o,
|
|
252
252
|
isChild: !1,
|
|
253
|
-
segregate: () =>
|
|
254
|
-
isSegregated:
|
|
255
|
-
color:
|
|
256
|
-
children: !t.children || !t.children.length ? [] : t.children.toSorted(
|
|
253
|
+
segregate: () => oe(a),
|
|
254
|
+
isSegregated: A.value.includes(a),
|
|
255
|
+
color: Ie(t.color) || Ye.value[l] || W[l] || W[l % W.length],
|
|
256
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted(ie.value ? () => 0 : (d, w) => et.value ? w.value - d.value : d.value - w.value).map((d, w) => ({
|
|
257
257
|
...d,
|
|
258
258
|
value: L(Math.abs(d.value)),
|
|
259
259
|
absoluteIndex: l,
|
|
@@ -261,34 +261,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
261
261
|
isChild: !0,
|
|
262
262
|
parentId: a,
|
|
263
263
|
parentName: t.name,
|
|
264
|
-
parentValue:
|
|
265
|
-
parentSign:
|
|
266
|
-
id: `vertical_child_${l}_${
|
|
267
|
-
childIndex:
|
|
268
|
-
color:
|
|
269
|
-
})).map((d,
|
|
264
|
+
parentValue: g,
|
|
265
|
+
parentSign: $,
|
|
266
|
+
id: `vertical_child_${l}_${w}_${S.value}`,
|
|
267
|
+
childIndex: w,
|
|
268
|
+
color: Ie(d.color) || Ie(t.color) || Ye.value[l] || W[l] || W[l % W.length]
|
|
269
|
+
})).map((d, w) => ({
|
|
270
270
|
...d,
|
|
271
|
-
isFirstChild:
|
|
272
|
-
isLastChild:
|
|
271
|
+
isFirstChild: w === 0,
|
|
272
|
+
isLastChild: w === t.children.length - 1
|
|
273
273
|
}))
|
|
274
274
|
};
|
|
275
|
-
}).toSorted(
|
|
275
|
+
}).toSorted(ie.value ? () => 0 : (t, l) => et.value ? l.value - t.value : t.value - l.value))), tt = y(() => ({
|
|
276
276
|
cy: "vertical-bar-div-legend",
|
|
277
277
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
278
278
|
color: e.value.style.chart.legend.color,
|
|
279
279
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
280
280
|
paddingBottom: 12,
|
|
281
281
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
282
|
-
})),
|
|
283
|
-
width:
|
|
284
|
-
height:
|
|
282
|
+
})), p = r(e.value.style.chart.layout.bars.height), x = r(e.value.style.chart.layout.bars.gap), zt = y(() => (p.value + x.value) * ae.value), at = r(512), C = y(() => ({
|
|
283
|
+
width: at.value,
|
|
284
|
+
height: zt.value,
|
|
285
285
|
padding: {
|
|
286
286
|
top: 12,
|
|
287
287
|
left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
|
|
288
288
|
right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
|
|
289
289
|
bottom: 12
|
|
290
290
|
}
|
|
291
|
-
})),
|
|
291
|
+
})), i = y(() => ({
|
|
292
292
|
fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
|
|
293
293
|
top: C.value.padding.top,
|
|
294
294
|
left: C.value.padding.left,
|
|
@@ -296,78 +296,78 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
296
296
|
bottom: C.value.padding.top + C.value.height,
|
|
297
297
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
298
298
|
}));
|
|
299
|
-
async function
|
|
300
|
-
|
|
299
|
+
async function q() {
|
|
300
|
+
ae.value = B.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await O();
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
async function
|
|
304
|
-
if (
|
|
305
|
-
|
|
302
|
+
const A = r([]);
|
|
303
|
+
async function oe(t) {
|
|
304
|
+
if (A.value.includes(t))
|
|
305
|
+
A.value = A.value.filter((l) => l !== t);
|
|
306
306
|
else {
|
|
307
|
-
if (
|
|
308
|
-
|
|
307
|
+
if (A.value.length === F.value.length - 1) return;
|
|
308
|
+
A.value.push(t);
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
q(), await ce(), e.value.autoSize && O(), St("selectLegend", B.value);
|
|
311
311
|
}
|
|
312
|
-
const B =
|
|
313
|
-
function
|
|
312
|
+
const B = y(() => F.value.filter((t) => !A.value.includes(t.id))), V = y(() => B.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
313
|
+
function lt(t, l = !1, a = 0) {
|
|
314
314
|
return l ? G({
|
|
315
315
|
v: L(Math.abs(t) / V.value * 100),
|
|
316
316
|
s: "%",
|
|
317
317
|
r: a
|
|
318
318
|
}) : Math.abs(t) / V.value;
|
|
319
319
|
}
|
|
320
|
-
const
|
|
320
|
+
const D = y(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), R = y(() => D.value.map((t) => t.sign).includes(-1)), Vt = y(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
|
|
321
321
|
function T(t) {
|
|
322
|
-
const l = t /
|
|
323
|
-
return
|
|
322
|
+
const l = t / Vt.value;
|
|
323
|
+
return i.value.width / (R.value ? 2 : 1) * l;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return T(t) +
|
|
325
|
+
function It(t) {
|
|
326
|
+
return T(t) + i.value.left;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
const a = B.value.find((
|
|
328
|
+
function ne(t, l) {
|
|
329
|
+
const a = B.value.find(($) => $.id === t.parentId), o = i.value.top + (x.value + p.value) * l, g = a.children.length * (x.value + p.value);
|
|
330
330
|
return {
|
|
331
|
-
y: o +
|
|
331
|
+
y: o + g / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
332
332
|
name: a.name,
|
|
333
333
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
334
|
-
percentageToTotal: isNaN(a.value / V.value) ? "" :
|
|
334
|
+
percentageToTotal: isNaN(a.value / V.value) ? "" : lt(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
335
335
|
sign: a.sign
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ot() {
|
|
339
339
|
return B.value;
|
|
340
340
|
}
|
|
341
|
-
const
|
|
342
|
-
function
|
|
341
|
+
const Te = r(null), Se = r(null);
|
|
342
|
+
function Ft({ datapoint: t, seriesIndex: l }) {
|
|
343
343
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
345
|
+
function Mt({ datapoint: t, seriesIndex: l }) {
|
|
346
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Tt.value = null, ge.value = !1, Te.value = null;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }),
|
|
348
|
+
function Bt(t, l) {
|
|
349
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
|
|
350
350
|
datapoint: t,
|
|
351
351
|
seriesIndex: l,
|
|
352
352
|
series: F.value,
|
|
353
353
|
config: e.value
|
|
354
|
-
},
|
|
354
|
+
}, ge.value = !0, Te.value = t.id;
|
|
355
355
|
let a = "";
|
|
356
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
357
|
-
|
|
356
|
+
const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", $ = e.value.style.chart.tooltip.customFormat;
|
|
357
|
+
oa($) && na(() => $({
|
|
358
358
|
datapoint: t,
|
|
359
359
|
series: F.value,
|
|
360
360
|
config: e.value,
|
|
361
361
|
seriesIndex: l
|
|
362
|
-
})) ?
|
|
362
|
+
})) ? ye.value = $({
|
|
363
363
|
datapoint: t,
|
|
364
364
|
series: F.value,
|
|
365
365
|
config: e.value,
|
|
366
366
|
seriesIndex: l
|
|
367
367
|
}) : (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;">
|
|
368
|
-
<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}"/>${
|
|
369
|
-
${
|
|
370
|
-
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${
|
|
368
|
+
<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}"/>${$t.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
369
|
+
${g ? `<div>${g}</div>` : ""}
|
|
370
|
+
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${pe(
|
|
371
371
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
372
372
|
t.sign === 1 ? t.value : -t.value,
|
|
373
373
|
G({
|
|
@@ -385,12 +385,12 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
385
385
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
386
386
|
s: "%",
|
|
387
387
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
388
|
-
})}</b></div>`)),
|
|
388
|
+
})}</b></div>`)), ye.value = `<div style="text-align:left">${a}</div>`);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ot(t, l, a, o) {
|
|
391
391
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
392
392
|
return "";
|
|
393
|
-
const
|
|
393
|
+
const g = pe(
|
|
394
394
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
395
395
|
L(o === -1 && t >= 0 ? -t : t),
|
|
396
396
|
G({
|
|
@@ -400,10 +400,10 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
400
400
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
401
401
|
}),
|
|
402
402
|
{ datapoint: l, seriesIndex: a }
|
|
403
|
-
),
|
|
404
|
-
return `${
|
|
403
|
+
), $ = `(${lt(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
404
|
+
return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${$}` : ""}`;
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const z = y(() => {
|
|
407
407
|
const t = [
|
|
408
408
|
e.value.translations.parentName,
|
|
409
409
|
e.value.translations.value,
|
|
@@ -412,7 +412,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
412
412
|
e.value.translations.value,
|
|
413
413
|
e.value.translations.percentageToSerie,
|
|
414
414
|
e.value.translations.percentageToTotal
|
|
415
|
-
], l =
|
|
415
|
+
], l = D.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
416
416
|
color: a.color,
|
|
417
417
|
parentName: a.parentName,
|
|
418
418
|
parentValue: a.parentValue,
|
|
@@ -442,8 +442,8 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
442
442
|
});
|
|
443
443
|
return { head: t, body: l };
|
|
444
444
|
});
|
|
445
|
-
function
|
|
446
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
445
|
+
function Le(t = null) {
|
|
446
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = z.value.head, o = z.value.body.map((d) => [
|
|
447
447
|
d.parentName,
|
|
448
448
|
d.parentValue,
|
|
449
449
|
d.percentageToTotal,
|
|
@@ -451,100 +451,132 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
451
451
|
d.childValue,
|
|
452
452
|
d.childPercentageToParent,
|
|
453
453
|
d.childPercentageToTotal
|
|
454
|
-
]),
|
|
455
|
-
t ? t(
|
|
454
|
+
]), g = l.concat([a]).concat(o), $ = aa(g);
|
|
455
|
+
t ? t($) : la({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
function
|
|
459
|
-
|
|
457
|
+
const E = r(!1);
|
|
458
|
+
function nt(t) {
|
|
459
|
+
E.value = t, Me.value += 1;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
|
|
461
|
+
function ut() {
|
|
462
|
+
k.value.showTable = !k.value.showTable;
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const Dt = r({
|
|
465
465
|
none: 0,
|
|
466
466
|
asc: 1,
|
|
467
467
|
desc: 2
|
|
468
|
-
}), M =
|
|
469
|
-
|
|
470
|
-
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) ||
|
|
468
|
+
}), M = r(0), ie = r(!1);
|
|
469
|
+
Ae(() => {
|
|
470
|
+
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
|
|
471
471
|
componentName: "VueUiVerticalBar",
|
|
472
472
|
type: "attributeWrongValue",
|
|
473
473
|
property: "style.chart.layout.bars.sort",
|
|
474
474
|
key: e.value.style.chart.layout.bars.sort
|
|
475
|
-
}), M.value =
|
|
475
|
+
}), M.value = Dt.value[e.value.style.chart.layout.bars.sort], k.value.sortDesc = M.value === 2, ie.value = M.value === 0;
|
|
476
476
|
});
|
|
477
|
-
function
|
|
477
|
+
function Rt() {
|
|
478
478
|
M.value += 1, M.value > 2 && (M.value = 0);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
|
|
480
|
+
function st() {
|
|
481
|
+
Rt(), k.value.sortDesc = M.value === 2, ie.value = M.value === 0, q();
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
|
|
483
|
+
function rt() {
|
|
484
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
function
|
|
488
|
-
|
|
486
|
+
const ve = r(!1);
|
|
487
|
+
function Pe() {
|
|
488
|
+
ve.value = !ve.value;
|
|
489
489
|
}
|
|
490
|
-
async function
|
|
491
|
-
if (!
|
|
492
|
-
const { width: l, height: a } =
|
|
490
|
+
async function Et({ scale: t = 2 } = {}) {
|
|
491
|
+
if (!P.value) return;
|
|
492
|
+
const { width: l, height: a } = P.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: $ } = await fa({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
493
493
|
return {
|
|
494
|
-
imageUri:
|
|
495
|
-
base64:
|
|
494
|
+
imageUri: g,
|
|
495
|
+
base64: $,
|
|
496
496
|
title: e.value.style.chart.title.text,
|
|
497
497
|
width: l,
|
|
498
498
|
height: a,
|
|
499
499
|
aspectRatio: o
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
|
|
502
|
+
const de = y(() => {
|
|
503
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = k.value.showTable;
|
|
504
|
+
return {
|
|
505
|
+
component: t ? wt : ha,
|
|
506
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
507
|
+
props: t ? {
|
|
508
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
509
|
+
color: e.value.table.th.color,
|
|
510
|
+
headerColor: e.value.table.th.color,
|
|
511
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
512
|
+
isFullscreen: E.value,
|
|
513
|
+
fullscreenParent: P.value,
|
|
514
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
515
|
+
} : {
|
|
516
|
+
hideDetails: !0,
|
|
517
|
+
config: {
|
|
518
|
+
open: l,
|
|
519
|
+
maxHeight: 1e4,
|
|
520
|
+
body: {
|
|
521
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
522
|
+
color: e.value.style.chart.color
|
|
523
|
+
},
|
|
524
|
+
head: {
|
|
525
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
526
|
+
color: e.value.style.chart.color
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
});
|
|
532
|
+
return Ne(() => k.value.showTable, (t) => {
|
|
533
|
+
e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
534
|
+
}), gt({
|
|
503
535
|
autoSize: O,
|
|
504
536
|
// v3
|
|
505
|
-
getData:
|
|
506
|
-
getImage:
|
|
507
|
-
recalculateHeight:
|
|
508
|
-
generatePdf:
|
|
509
|
-
generateCsv:
|
|
510
|
-
generateImage:
|
|
511
|
-
toggleTable:
|
|
512
|
-
toggleSort:
|
|
513
|
-
toggleTooltip:
|
|
514
|
-
toggleAnnotator:
|
|
515
|
-
toggleFullscreen:
|
|
537
|
+
getData: Ot,
|
|
538
|
+
getImage: Et,
|
|
539
|
+
recalculateHeight: q,
|
|
540
|
+
generatePdf: je,
|
|
541
|
+
generateCsv: Le,
|
|
542
|
+
generateImage: qe,
|
|
543
|
+
toggleTable: ut,
|
|
544
|
+
toggleSort: st,
|
|
545
|
+
toggleTooltip: rt,
|
|
546
|
+
toggleAnnotator: Pe,
|
|
547
|
+
toggleFullscreen: nt
|
|
516
548
|
}), (t, l) => (u(), v("div", {
|
|
517
|
-
class:
|
|
549
|
+
class: U(`vue-ui-vertical-bar ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
518
550
|
ref_key: "verticalBarChart",
|
|
519
|
-
ref:
|
|
551
|
+
ref: P,
|
|
520
552
|
id: `vue-ui-vertical-bar_${S.value}`,
|
|
521
|
-
style:
|
|
522
|
-
onMouseenter: l[
|
|
523
|
-
onMouseleave: l[
|
|
553
|
+
style: c(`padding-top:${e.value.responsive && e.value.autoSize ? `${Ce.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% - ${Ce.value}px` : "height: 100%" : ""}`),
|
|
554
|
+
onMouseenter: l[6] || (l[6] = () => s(Ue)(!0)),
|
|
555
|
+
onMouseleave: l[7] || (l[7] = () => s(Ue)(!1))
|
|
524
556
|
}, [
|
|
525
|
-
e.value.userOptions.buttons.annotator ? (u(), X(s(
|
|
557
|
+
e.value.userOptions.buttons.annotator ? (u(), X(s(mt), {
|
|
526
558
|
key: 0,
|
|
527
|
-
svgRef: s(
|
|
559
|
+
svgRef: s(We),
|
|
528
560
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
529
561
|
color: e.value.style.chart.color,
|
|
530
|
-
active:
|
|
531
|
-
onClose:
|
|
532
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
533
|
-
|
|
562
|
+
active: ve.value,
|
|
563
|
+
onClose: Pe
|
|
564
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
565
|
+
Pt.value ? (u(), v("div", {
|
|
534
566
|
key: 1,
|
|
535
567
|
ref_key: "noTitle",
|
|
536
|
-
ref:
|
|
568
|
+
ref: Re,
|
|
537
569
|
class: "vue-data-ui-no-title-space",
|
|
538
570
|
style: "height:36px; width: 100%;background:transparent"
|
|
539
|
-
}, null, 512)) :
|
|
571
|
+
}, null, 512)) : f("", !0),
|
|
540
572
|
e.value.style.chart.title.text ? (u(), v("div", {
|
|
541
573
|
key: 2,
|
|
542
574
|
ref_key: "chartTitle",
|
|
543
|
-
ref:
|
|
575
|
+
ref: Be,
|
|
544
576
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
545
577
|
}, [
|
|
546
|
-
(u(), X(
|
|
547
|
-
key: `title_${
|
|
578
|
+
(u(), X(pa, {
|
|
579
|
+
key: `title_${Ee.value}`,
|
|
548
580
|
config: {
|
|
549
581
|
title: {
|
|
550
582
|
cy: "vertical-bar-div-title",
|
|
@@ -556,15 +588,15 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
556
588
|
}
|
|
557
589
|
}
|
|
558
590
|
}, null, 8, ["config"]))
|
|
559
|
-
], 512)) :
|
|
560
|
-
e.value.userOptions.show &&
|
|
591
|
+
], 512)) : f("", !0),
|
|
592
|
+
e.value.userOptions.show && fe.value && (s(Xe) || s(_e)) ? (u(), X(s(kt), {
|
|
561
593
|
ref_key: "details",
|
|
562
|
-
ref:
|
|
563
|
-
key: `user_options_${
|
|
594
|
+
ref: Ct,
|
|
595
|
+
key: `user_options_${Me.value}`,
|
|
564
596
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
597
|
color: e.value.style.chart.color,
|
|
566
|
-
isImaging: s(
|
|
567
|
-
isPrinting: s(
|
|
598
|
+
isImaging: s(He),
|
|
599
|
+
isPrinting: s(Ge),
|
|
568
600
|
uid: S.value,
|
|
569
601
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
570
602
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -573,114 +605,114 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
573
605
|
hasTable: e.value.userOptions.buttons.table,
|
|
574
606
|
hasSort: e.value.userOptions.buttons.sort,
|
|
575
607
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
576
|
-
isFullscreen:
|
|
577
|
-
isTooltip:
|
|
608
|
+
isFullscreen: E.value,
|
|
609
|
+
isTooltip: k.value.showTooltip,
|
|
578
610
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
579
|
-
chartElement:
|
|
611
|
+
chartElement: P.value,
|
|
580
612
|
position: e.value.userOptions.position,
|
|
581
613
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
582
|
-
isAnnotation:
|
|
614
|
+
isAnnotation: ve.value,
|
|
583
615
|
callbacks: e.value.userOptions.callbacks,
|
|
584
616
|
printScale: e.value.userOptions.print.scale,
|
|
585
|
-
onToggleFullscreen:
|
|
586
|
-
onGeneratePdf: s(
|
|
587
|
-
onGenerateCsv:
|
|
588
|
-
onGenerateImage: s(
|
|
589
|
-
onToggleTable:
|
|
590
|
-
onToggleSort:
|
|
591
|
-
onToggleTooltip:
|
|
592
|
-
onToggleAnnotator:
|
|
593
|
-
style:
|
|
594
|
-
visibility: s(
|
|
617
|
+
onToggleFullscreen: nt,
|
|
618
|
+
onGeneratePdf: s(je),
|
|
619
|
+
onGenerateCsv: Le,
|
|
620
|
+
onGenerateImage: s(qe),
|
|
621
|
+
onToggleTable: ut,
|
|
622
|
+
onToggleSort: st,
|
|
623
|
+
onToggleTooltip: rt,
|
|
624
|
+
onToggleAnnotator: Pe,
|
|
625
|
+
style: c({
|
|
626
|
+
visibility: s(Xe) ? s(_e) ? "visible" : "hidden" : "visible"
|
|
595
627
|
})
|
|
596
|
-
},
|
|
628
|
+
}, he({ _: 2 }, [
|
|
597
629
|
t.$slots.menuIcon ? {
|
|
598
630
|
name: "menuIcon",
|
|
599
|
-
fn:
|
|
600
|
-
|
|
631
|
+
fn: m(({ isOpen: a, color: o }) => [
|
|
632
|
+
_(t.$slots, "menuIcon", Q(Z({ isOpen: a, color: o })), void 0, !0)
|
|
601
633
|
]),
|
|
602
634
|
key: "0"
|
|
603
635
|
} : void 0,
|
|
604
636
|
t.$slots.optionTooltip ? {
|
|
605
637
|
name: "optionTooltip",
|
|
606
|
-
fn:
|
|
607
|
-
|
|
638
|
+
fn: m(() => [
|
|
639
|
+
_(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
608
640
|
]),
|
|
609
641
|
key: "1"
|
|
610
642
|
} : void 0,
|
|
611
643
|
t.$slots.optionPdf ? {
|
|
612
644
|
name: "optionPdf",
|
|
613
|
-
fn:
|
|
614
|
-
|
|
645
|
+
fn: m(() => [
|
|
646
|
+
_(t.$slots, "optionPdf", {}, void 0, !0)
|
|
615
647
|
]),
|
|
616
648
|
key: "2"
|
|
617
649
|
} : void 0,
|
|
618
650
|
t.$slots.optionCsv ? {
|
|
619
651
|
name: "optionCsv",
|
|
620
|
-
fn:
|
|
621
|
-
|
|
652
|
+
fn: m(() => [
|
|
653
|
+
_(t.$slots, "optionCsv", {}, void 0, !0)
|
|
622
654
|
]),
|
|
623
655
|
key: "3"
|
|
624
656
|
} : void 0,
|
|
625
657
|
t.$slots.optionImg ? {
|
|
626
658
|
name: "optionImg",
|
|
627
|
-
fn:
|
|
628
|
-
|
|
659
|
+
fn: m(() => [
|
|
660
|
+
_(t.$slots, "optionImg", {}, void 0, !0)
|
|
629
661
|
]),
|
|
630
662
|
key: "4"
|
|
631
663
|
} : void 0,
|
|
632
664
|
t.$slots.optionTable ? {
|
|
633
665
|
name: "optionTable",
|
|
634
|
-
fn:
|
|
635
|
-
|
|
666
|
+
fn: m(() => [
|
|
667
|
+
_(t.$slots, "optionTable", {}, void 0, !0)
|
|
636
668
|
]),
|
|
637
669
|
key: "5"
|
|
638
670
|
} : void 0,
|
|
639
671
|
t.$slots.optionLabels ? {
|
|
640
672
|
name: "optionLabels",
|
|
641
|
-
fn:
|
|
642
|
-
|
|
673
|
+
fn: m(() => [
|
|
674
|
+
_(t.$slots, "optionLabels", {}, void 0, !0)
|
|
643
675
|
]),
|
|
644
676
|
key: "6"
|
|
645
677
|
} : void 0,
|
|
646
678
|
t.$slots.optionSort ? {
|
|
647
679
|
name: "optionSort",
|
|
648
|
-
fn:
|
|
649
|
-
|
|
680
|
+
fn: m(() => [
|
|
681
|
+
_(t.$slots, "optionSort", {}, void 0, !0)
|
|
650
682
|
]),
|
|
651
683
|
key: "7"
|
|
652
684
|
} : void 0,
|
|
653
685
|
t.$slots.optionFullscreen ? {
|
|
654
686
|
name: "optionFullscreen",
|
|
655
|
-
fn:
|
|
656
|
-
|
|
687
|
+
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
688
|
+
_(t.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
657
689
|
]),
|
|
658
690
|
key: "8"
|
|
659
691
|
} : void 0,
|
|
660
692
|
t.$slots.optionAnnotator ? {
|
|
661
693
|
name: "optionAnnotator",
|
|
662
|
-
fn:
|
|
663
|
-
|
|
694
|
+
fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
695
|
+
_(t.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
664
696
|
]),
|
|
665
697
|
key: "9"
|
|
666
698
|
} : void 0
|
|
667
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
699
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
668
700
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
|
|
669
701
|
key: 4,
|
|
670
702
|
ref_key: "chartLegend",
|
|
671
|
-
ref:
|
|
703
|
+
ref: be
|
|
672
704
|
}, [
|
|
673
|
-
(u(), X(
|
|
674
|
-
key: `legend_top_${
|
|
705
|
+
(u(), X(ht, {
|
|
706
|
+
key: `legend_top_${me.value}`,
|
|
675
707
|
legendSet: F.value,
|
|
676
|
-
config:
|
|
677
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
678
|
-
},
|
|
679
|
-
item:
|
|
708
|
+
config: tt.value,
|
|
709
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
710
|
+
}, he({
|
|
711
|
+
item: m(({ legend: a, index: o }) => [
|
|
680
712
|
n("div", {
|
|
681
|
-
onClick: (
|
|
682
|
-
style:
|
|
683
|
-
},
|
|
713
|
+
onClick: (g) => oe(a.id),
|
|
714
|
+
style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
715
|
+
}, h(a.name) + ": " + h(s(pe)(
|
|
684
716
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
685
717
|
a.value,
|
|
686
718
|
s(G)({
|
|
@@ -690,14 +722,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
690
722
|
r: e.value.style.chart.legend.roundingValue
|
|
691
723
|
}),
|
|
692
724
|
{ datapoint: a, seriesIndex: o }
|
|
693
|
-
)), 13,
|
|
725
|
+
)), 13, ba)
|
|
694
726
|
]),
|
|
695
727
|
_: 2
|
|
696
728
|
}, [
|
|
697
729
|
t.$slots.pattern ? {
|
|
698
730
|
name: "legend-pattern",
|
|
699
|
-
fn:
|
|
700
|
-
|
|
731
|
+
fn: m(({ legend: a, index: o }) => [
|
|
732
|
+
J(pt, {
|
|
701
733
|
shape: a.shape,
|
|
702
734
|
radius: 30,
|
|
703
735
|
stroke: "none",
|
|
@@ -708,34 +740,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
708
740
|
key: "0"
|
|
709
741
|
} : void 0
|
|
710
742
|
]), 1032, ["legendSet", "config"]))
|
|
711
|
-
], 512)) :
|
|
743
|
+
], 512)) : f("", !0),
|
|
712
744
|
(u(), v("svg", {
|
|
713
745
|
ref_key: "svgRef",
|
|
714
|
-
ref:
|
|
715
|
-
xmlns: s(
|
|
716
|
-
class:
|
|
717
|
-
viewBox:
|
|
718
|
-
style:
|
|
746
|
+
ref: We,
|
|
747
|
+
xmlns: s(ea),
|
|
748
|
+
class: U({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
749
|
+
viewBox: se.value,
|
|
750
|
+
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
719
751
|
}, [
|
|
720
752
|
n("g", {
|
|
721
753
|
ref_key: "G",
|
|
722
|
-
ref:
|
|
754
|
+
ref: H,
|
|
723
755
|
class: "vue-data-ui-g"
|
|
724
756
|
}, [
|
|
725
|
-
|
|
757
|
+
J(s(xt)),
|
|
726
758
|
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
727
759
|
key: 0,
|
|
728
|
-
x:
|
|
760
|
+
x: N.value.x,
|
|
729
761
|
y: 0,
|
|
730
|
-
width:
|
|
731
|
-
height:
|
|
762
|
+
width: N.value.width,
|
|
763
|
+
height: N.value.height,
|
|
732
764
|
style: {
|
|
733
765
|
pointerEvents: "none"
|
|
734
766
|
}
|
|
735
767
|
}, [
|
|
736
|
-
|
|
737
|
-
], 8,
|
|
738
|
-
(u(!0), v(
|
|
768
|
+
_(t.$slots, "chart-background", {}, void 0, !0)
|
|
769
|
+
], 8, ka)) : f("", !0),
|
|
770
|
+
(u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("linearGradient", {
|
|
739
771
|
x1: "0%",
|
|
740
772
|
y1: "0%",
|
|
741
773
|
x2: "100%",
|
|
@@ -745,145 +777,145 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
745
777
|
n("stop", {
|
|
746
778
|
offset: "0%",
|
|
747
779
|
"stop-color": a.color
|
|
748
|
-
}, null, 8,
|
|
780
|
+
}, null, 8, wa),
|
|
749
781
|
n("stop", {
|
|
750
782
|
offset: "100%",
|
|
751
|
-
"stop-color": s(
|
|
752
|
-
}, null, 8,
|
|
753
|
-
], 8,
|
|
754
|
-
t.$slots.pattern ? (u(), v("g",
|
|
755
|
-
(u(!0), v(
|
|
756
|
-
|
|
783
|
+
"stop-color": s(Oe)(s(ta)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
784
|
+
}, null, 8, _a)
|
|
785
|
+
], 8, xa))), 256)),
|
|
786
|
+
t.$slots.pattern ? (u(), v("g", $a, [
|
|
787
|
+
(u(!0), v(ee, null, te(D.value, (a) => (u(), v("defs", null, [
|
|
788
|
+
_(t.$slots, "pattern", vt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
757
789
|
]))), 256))
|
|
758
|
-
])) :
|
|
759
|
-
(u(!0), v(
|
|
790
|
+
])) : f("", !0),
|
|
791
|
+
(u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
|
|
760
792
|
n("rect", {
|
|
761
|
-
x: s(L)(
|
|
762
|
-
y:
|
|
793
|
+
x: s(L)(R.value ? i.value.left + i.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : i.value.left),
|
|
794
|
+
y: i.value.top + (x.value + p.value) * o,
|
|
763
795
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
764
|
-
height:
|
|
796
|
+
height: p.value <= 0 ? 1e-4 : p.value,
|
|
765
797
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
766
798
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
767
|
-
class:
|
|
768
|
-
}, null, 10,
|
|
799
|
+
class: U({ animated: e.value.useCssAnimation })
|
|
800
|
+
}, null, 10, Ca)
|
|
769
801
|
]))), 256)),
|
|
770
|
-
(u(!0), v(
|
|
802
|
+
(u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
|
|
771
803
|
n("rect", {
|
|
772
|
-
x: s(L)(
|
|
773
|
-
y:
|
|
804
|
+
x: s(L)(R.value ? i.value.left + i.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : i.value.left),
|
|
805
|
+
y: i.value.top + (x.value + p.value) * o,
|
|
774
806
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
775
|
-
height:
|
|
776
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(
|
|
807
|
+
height: p.value <= 0 ? 1e-4 : p.value,
|
|
808
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Oe)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
777
809
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
778
810
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
779
811
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
780
|
-
class:
|
|
781
|
-
}, null, 10,
|
|
812
|
+
class: U({ animated: e.value.useCssAnimation })
|
|
813
|
+
}, null, 10, Ta),
|
|
782
814
|
t.$slots.pattern ? (u(), v("rect", {
|
|
783
815
|
key: 0,
|
|
784
|
-
x: s(L)(
|
|
785
|
-
y:
|
|
816
|
+
x: s(L)(R.value ? i.value.left + i.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : i.value.left),
|
|
817
|
+
y: i.value.top + (x.value + p.value) * o,
|
|
786
818
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
787
|
-
height:
|
|
819
|
+
height: p.value <= 0 ? 1e-4 : p.value,
|
|
788
820
|
fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
|
|
789
821
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
790
822
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
791
823
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
792
|
-
class:
|
|
793
|
-
}, null, 10,
|
|
794
|
-
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
824
|
+
class: U({ animated: e.value.useCssAnimation })
|
|
825
|
+
}, null, 10, Sa)) : f("", !0),
|
|
826
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== D.value.length - 1 ? (u(), v("line", {
|
|
795
827
|
key: 1,
|
|
796
|
-
x1:
|
|
797
|
-
x2: e.value.style.chart.layout.separators.fullWidth ?
|
|
798
|
-
y1:
|
|
799
|
-
y2:
|
|
828
|
+
x1: N.value.x,
|
|
829
|
+
x2: e.value.style.chart.layout.separators.fullWidth ? N.value.width - Math.abs(N.value.x) : i.value.left,
|
|
830
|
+
y1: p.value + x.value / 2 + i.value.top + (x.value + p.value) * o,
|
|
831
|
+
y2: p.value + x.value / 2 + i.value.top + (x.value + p.value) * o,
|
|
800
832
|
stroke: e.value.style.chart.layout.separators.color,
|
|
801
833
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
802
834
|
"stroke-linecap": "round",
|
|
803
835
|
style: { transition: "none !important", animation: "none !important" }
|
|
804
|
-
}, null, 8,
|
|
805
|
-
|
|
836
|
+
}, null, 8, La)) : f("", !0),
|
|
837
|
+
R.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
|
|
806
838
|
key: 2,
|
|
807
|
-
x1:
|
|
808
|
-
x2:
|
|
809
|
-
y1:
|
|
810
|
-
y2:
|
|
839
|
+
x1: i.value.left + i.value.width / 2,
|
|
840
|
+
x2: i.value.left + i.value.width / 2,
|
|
841
|
+
y1: i.value.top,
|
|
842
|
+
y2: i.value.bottom,
|
|
811
843
|
stroke: e.value.style.chart.layout.separators.color,
|
|
812
844
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
813
845
|
"stroke-linecap": "round"
|
|
814
|
-
}, null, 8,
|
|
815
|
-
n("g",
|
|
846
|
+
}, null, 8, Pa)) : f("", !0),
|
|
847
|
+
n("g", Na, [
|
|
816
848
|
n("text", {
|
|
817
|
-
x:
|
|
818
|
-
y:
|
|
819
|
-
"text-anchor": !
|
|
849
|
+
x: R.value ? i.value.left + i.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) : It(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
850
|
+
y: i.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
851
|
+
"text-anchor": !R.value || a.sign === -1 ? "start" : "end",
|
|
820
852
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
821
853
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
822
854
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
823
|
-
},
|
|
855
|
+
}, h(ot(a.value, a, o, a.sign)), 9, Aa),
|
|
824
856
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
|
|
825
857
|
key: 0,
|
|
826
858
|
"text-anchor": "end",
|
|
827
|
-
x:
|
|
828
|
-
y:
|
|
859
|
+
x: i.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
860
|
+
y: i.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
829
861
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
830
862
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
831
863
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
832
|
-
},
|
|
864
|
+
}, h(a.name), 9, za)) : f("", !0)
|
|
833
865
|
]),
|
|
834
|
-
n("g",
|
|
866
|
+
n("g", Va, [
|
|
835
867
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
836
868
|
key: 0,
|
|
837
|
-
x: e.value.autoSize ? void 0 :
|
|
838
|
-
y:
|
|
869
|
+
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
870
|
+
y: ne(a, o).y,
|
|
839
871
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
840
872
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
841
873
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
842
874
|
"text-anchor": "start"
|
|
843
|
-
},
|
|
875
|
+
}, h(ne(a, o).name), 9, Ia)) : f("", !0),
|
|
844
876
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
845
877
|
key: 1,
|
|
846
|
-
x: e.value.autoSize ? void 0 :
|
|
847
|
-
y:
|
|
878
|
+
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
879
|
+
y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
848
880
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
849
881
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
850
882
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
851
883
|
"text-anchor": "start"
|
|
852
|
-
},
|
|
884
|
+
}, h(ot(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Oa)) : f("", !0)
|
|
853
885
|
]),
|
|
854
886
|
n("rect", {
|
|
855
|
-
x:
|
|
856
|
-
y:
|
|
857
|
-
width:
|
|
858
|
-
height:
|
|
859
|
-
fill:
|
|
860
|
-
onMouseenter: (
|
|
861
|
-
onMouseleave: (
|
|
862
|
-
onClick: (
|
|
863
|
-
}, null, 40,
|
|
887
|
+
x: N.value.x,
|
|
888
|
+
y: i.value.top + (x.value + p.value) * o - x.value / 2,
|
|
889
|
+
width: N.value.width,
|
|
890
|
+
height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
|
|
891
|
+
fill: Te.value === a.id ? s(Oe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
892
|
+
onMouseenter: (g) => Bt(a, o),
|
|
893
|
+
onMouseleave: (g) => Mt({ datapoint: a, seriesIndex: o }),
|
|
894
|
+
onClick: (g) => Ft({ datapoint: a, seriesIndex: o })
|
|
895
|
+
}, null, 40, Fa)
|
|
864
896
|
]))), 256)),
|
|
865
|
-
|
|
897
|
+
_(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
866
898
|
], 512)
|
|
867
|
-
], 14,
|
|
868
|
-
t.$slots.watermark ? (u(), v("div",
|
|
869
|
-
|
|
870
|
-
])) :
|
|
899
|
+
], 14, ma)),
|
|
900
|
+
t.$slots.watermark ? (u(), v("div", Ma, [
|
|
901
|
+
_(t.$slots, "watermark", Q(Z({ isPrinting: s(Ge) || s(He) })), void 0, !0)
|
|
902
|
+
])) : f("", !0),
|
|
871
903
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
|
|
872
904
|
key: 6,
|
|
873
905
|
ref_key: "chartLegend",
|
|
874
|
-
ref:
|
|
906
|
+
ref: be
|
|
875
907
|
}, [
|
|
876
|
-
(u(), X(
|
|
877
|
-
key: `legend_bottom_${
|
|
908
|
+
(u(), X(ht, {
|
|
909
|
+
key: `legend_bottom_${me.value}`,
|
|
878
910
|
legendSet: F.value,
|
|
879
|
-
config:
|
|
880
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
881
|
-
},
|
|
882
|
-
item:
|
|
911
|
+
config: tt.value,
|
|
912
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
|
|
913
|
+
}, he({
|
|
914
|
+
item: m(({ legend: a, index: o }) => [
|
|
883
915
|
n("div", {
|
|
884
|
-
onClick: (
|
|
885
|
-
style:
|
|
886
|
-
},
|
|
916
|
+
onClick: (g) => oe(a.id),
|
|
917
|
+
style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
918
|
+
}, h(a.name) + ": " + h(s(pe)(
|
|
887
919
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
888
920
|
a.value,
|
|
889
921
|
s(G)({
|
|
@@ -893,14 +925,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
893
925
|
r: e.value.style.chart.legend.roundingValue
|
|
894
926
|
}),
|
|
895
927
|
{ datapoint: a, seriesIndex: o }
|
|
896
|
-
)), 13,
|
|
928
|
+
)), 13, Ba)
|
|
897
929
|
]),
|
|
898
930
|
_: 2
|
|
899
931
|
}, [
|
|
900
932
|
t.$slots.pattern ? {
|
|
901
933
|
name: "legend-pattern",
|
|
902
|
-
fn:
|
|
903
|
-
|
|
934
|
+
fn: m(({ legend: a, index: o }) => [
|
|
935
|
+
J(pt, {
|
|
904
936
|
shape: a.shape,
|
|
905
937
|
radius: 30,
|
|
906
938
|
stroke: "none",
|
|
@@ -911,18 +943,18 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
911
943
|
key: "0"
|
|
912
944
|
} : void 0
|
|
913
945
|
]), 1032, ["legendSet", "config"]))
|
|
914
|
-
], 512)) :
|
|
915
|
-
|
|
946
|
+
], 512)) : f("", !0),
|
|
947
|
+
_(t.$slots, "legend", { legend: F.value }, void 0, !0),
|
|
916
948
|
t.$slots.source ? (u(), v("div", {
|
|
917
949
|
key: 7,
|
|
918
950
|
ref_key: "source",
|
|
919
|
-
ref:
|
|
951
|
+
ref: De,
|
|
920
952
|
dir: "auto"
|
|
921
953
|
}, [
|
|
922
|
-
|
|
923
|
-
], 512)) :
|
|
924
|
-
|
|
925
|
-
show:
|
|
954
|
+
_(t.$slots, "source", {}, void 0, !0)
|
|
955
|
+
], 512)) : f("", !0),
|
|
956
|
+
J(s(bt), {
|
|
957
|
+
show: k.value.showTooltip && ge.value && A.value.length < b.dataset.length,
|
|
926
958
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
927
959
|
color: e.value.style.chart.tooltip.color,
|
|
928
960
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -932,177 +964,193 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
932
964
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
933
965
|
position: e.value.style.chart.tooltip.position,
|
|
934
966
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
935
|
-
parent:
|
|
936
|
-
content:
|
|
937
|
-
isFullscreen:
|
|
967
|
+
parent: P.value,
|
|
968
|
+
content: ye.value,
|
|
969
|
+
isFullscreen: E.value,
|
|
938
970
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
939
971
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
940
972
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
941
973
|
}, {
|
|
942
|
-
"tooltip-before":
|
|
943
|
-
|
|
974
|
+
"tooltip-before": m(() => [
|
|
975
|
+
_(t.$slots, "tooltip-before", Q(Z({ ...Se.value })), void 0, !0)
|
|
944
976
|
]),
|
|
945
|
-
"tooltip-after":
|
|
946
|
-
|
|
977
|
+
"tooltip-after": m(() => [
|
|
978
|
+
_(t.$slots, "tooltip-after", Q(Z({ ...Se.value })), void 0, !0)
|
|
947
979
|
]),
|
|
948
980
|
_: 3
|
|
949
981
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
body: {
|
|
957
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
958
|
-
color: e.value.style.chart.color
|
|
959
|
-
},
|
|
960
|
-
head: {
|
|
961
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
962
|
-
color: e.value.style.chart.color
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
}, {
|
|
966
|
-
content: w(() => [
|
|
982
|
+
fe.value ? (u(), X(Ht(de.value.component), vt({ key: 8 }, de.value.props, {
|
|
983
|
+
ref_key: "tableUnit",
|
|
984
|
+
ref: le,
|
|
985
|
+
onClose: l[5] || (l[5] = (a) => k.value.showTable = !1)
|
|
986
|
+
}), he({
|
|
987
|
+
content: m(() => [
|
|
967
988
|
n("div", {
|
|
968
989
|
ref_key: "tableContainer",
|
|
969
|
-
ref:
|
|
970
|
-
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
990
|
+
ref: Ke,
|
|
991
|
+
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
992
|
+
style: c(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
971
993
|
}, [
|
|
972
|
-
n("div",
|
|
973
|
-
|
|
994
|
+
n("div", Da, [
|
|
995
|
+
e.value.table.useDialog ? f("", !0) : (u(), v("div", {
|
|
996
|
+
key: 0,
|
|
974
997
|
role: "button",
|
|
975
998
|
tabindex: "0",
|
|
976
|
-
style:
|
|
977
|
-
onClick: l[
|
|
978
|
-
onKeypress: l[
|
|
999
|
+
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};`),
|
|
1000
|
+
onClick: l[3] || (l[3] = (a) => k.value.showTable = !1),
|
|
1001
|
+
onKeypress: l[4] || (l[4] = jt((a) => k.value.showTable = !1, ["enter"]))
|
|
979
1002
|
}, [
|
|
980
|
-
|
|
1003
|
+
J(s(Fe), {
|
|
981
1004
|
name: "close",
|
|
982
1005
|
stroke: e.value.table.th.color,
|
|
983
1006
|
"stroke-width": 2
|
|
984
1007
|
}, null, 8, ["stroke"])
|
|
985
|
-
], 36),
|
|
1008
|
+
], 36)),
|
|
986
1009
|
n("div", {
|
|
987
1010
|
style: { width: "100%", "container-type": "inline-size" },
|
|
988
|
-
class:
|
|
1011
|
+
class: U({ "vue-ui-responsive": Je.value })
|
|
989
1012
|
}, [
|
|
990
|
-
n("table",
|
|
991
|
-
|
|
992
|
-
|
|
1013
|
+
n("table", Ra, [
|
|
1014
|
+
e.value.table.useDialog ? f("", !0) : (u(), v("caption", {
|
|
1015
|
+
key: 0,
|
|
1016
|
+
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
993
1017
|
class: "vue-ui-data-table__caption"
|
|
994
1018
|
}, [
|
|
995
|
-
|
|
996
|
-
e.value.style.chart.title.subtitle.text ? (u(), v("span",
|
|
997
|
-
], 4),
|
|
1019
|
+
dt(h(e.value.style.chart.title.text) + " ", 1),
|
|
1020
|
+
e.value.style.chart.title.subtitle.text ? (u(), v("span", Ea, h(e.value.style.chart.title.subtitle.text), 1)) : f("", !0)
|
|
1021
|
+
], 4)),
|
|
998
1022
|
n("thead", null, [
|
|
999
1023
|
n("tr", {
|
|
1000
1024
|
role: "row",
|
|
1001
|
-
style:
|
|
1025
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1002
1026
|
}, [
|
|
1003
|
-
(u(!0), v(
|
|
1004
|
-
style:
|
|
1027
|
+
(u(!0), v(ee, null, te(z.value.head, (a) => (u(), v("th", {
|
|
1028
|
+
style: c(`outline:${e.value.table.th.outline}`)
|
|
1005
1029
|
}, [
|
|
1006
|
-
n("div",
|
|
1030
|
+
n("div", Ua, h(a), 1)
|
|
1007
1031
|
], 4))), 256))
|
|
1008
1032
|
], 4),
|
|
1009
1033
|
n("tr", null, [
|
|
1010
1034
|
n("th", {
|
|
1011
|
-
style:
|
|
1035
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1012
1036
|
}, null, 4),
|
|
1013
1037
|
n("th", {
|
|
1014
|
-
style:
|
|
1015
|
-
}, "∑ " +
|
|
1038
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
1039
|
+
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(V.value) ? "" : V.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
|
|
1016
1040
|
n("th", {
|
|
1017
|
-
style:
|
|
1041
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
1018
1042
|
}, "100%", 4),
|
|
1019
1043
|
n("th", {
|
|
1020
|
-
style:
|
|
1044
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1021
1045
|
}, null, 4),
|
|
1022
1046
|
n("th", {
|
|
1023
|
-
style:
|
|
1047
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1024
1048
|
}, null, 4),
|
|
1025
1049
|
n("th", {
|
|
1026
|
-
style:
|
|
1050
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1027
1051
|
}, null, 4),
|
|
1028
1052
|
n("th", {
|
|
1029
|
-
style:
|
|
1053
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1030
1054
|
}, null, 4)
|
|
1031
1055
|
])
|
|
1032
1056
|
]),
|
|
1033
1057
|
n("tbody", null, [
|
|
1034
|
-
(u(!0), v(
|
|
1035
|
-
class:
|
|
1036
|
-
style:
|
|
1058
|
+
(u(!0), v(ee, null, te(z.value.body, (a, o) => (u(), v("tr", {
|
|
1059
|
+
class: U({ "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 }),
|
|
1060
|
+
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1037
1061
|
}, [
|
|
1038
1062
|
n("td", {
|
|
1039
1063
|
class: "vue-ui-data-table__tbody__td",
|
|
1040
|
-
style:
|
|
1041
|
-
"data-cell":
|
|
1064
|
+
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1065
|
+
"data-cell": z.value.head[0] ?? ""
|
|
1042
1066
|
}, [
|
|
1043
|
-
n("div",
|
|
1067
|
+
n("div", Wa, [
|
|
1044
1068
|
a.color ? (u(), v("span", {
|
|
1045
1069
|
key: 0,
|
|
1046
|
-
style:
|
|
1047
|
-
}, "⬤", 4)) :
|
|
1048
|
-
n("span", null,
|
|
1070
|
+
style: c(`color:${a.color};margin-right:3px`)
|
|
1071
|
+
}, "⬤", 4)) : f("", !0),
|
|
1072
|
+
n("span", null, h(a.parentName), 1)
|
|
1049
1073
|
])
|
|
1050
|
-
], 12,
|
|
1074
|
+
], 12, Xa),
|
|
1051
1075
|
n("td", {
|
|
1052
1076
|
class: "vue-ui-data-table__tbody__td",
|
|
1053
|
-
style:
|
|
1054
|
-
"data-cell":
|
|
1077
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1078
|
+
"data-cell": z.value.head[1] ?? ""
|
|
1055
1079
|
}, [
|
|
1056
|
-
n("div",
|
|
1057
|
-
], 12,
|
|
1080
|
+
n("div", Ha, 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)
|
|
1081
|
+
], 12, Ga),
|
|
1058
1082
|
n("td", {
|
|
1059
1083
|
class: "vue-ui-data-table__tbody__td",
|
|
1060
|
-
style:
|
|
1061
|
-
"data-cell":
|
|
1084
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1085
|
+
"data-cell": z.value.head[2] ?? ""
|
|
1062
1086
|
}, [
|
|
1063
|
-
n("div",
|
|
1064
|
-
], 12,
|
|
1087
|
+
n("div", qa, h(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1088
|
+
], 12, ja),
|
|
1065
1089
|
n("td", {
|
|
1066
1090
|
class: "vue-ui-data-table__tbody__td",
|
|
1067
|
-
style:
|
|
1068
|
-
"data-cell":
|
|
1091
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1092
|
+
"data-cell": z.value.head[3] ?? ""
|
|
1069
1093
|
}, [
|
|
1070
|
-
n("div",
|
|
1071
|
-
], 12,
|
|
1094
|
+
n("div", Ka, h(a.childName), 1)
|
|
1095
|
+
], 12, Ya),
|
|
1072
1096
|
n("td", {
|
|
1073
1097
|
class: "vue-ui-data-table__tbody__td",
|
|
1074
|
-
style:
|
|
1075
|
-
"data-cell":
|
|
1098
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1099
|
+
"data-cell": z.value.head[4] ?? ""
|
|
1076
1100
|
}, [
|
|
1077
|
-
n("div",
|
|
1078
|
-
], 12,
|
|
1101
|
+
n("div", Qa, 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)
|
|
1102
|
+
], 12, Ja),
|
|
1079
1103
|
n("td", {
|
|
1080
1104
|
class: "vue-ui-data-table__tbody__td",
|
|
1081
|
-
style:
|
|
1082
|
-
"data-cell":
|
|
1105
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1106
|
+
"data-cell": z.value.head[5] ?? ""
|
|
1083
1107
|
}, [
|
|
1084
|
-
n("div",
|
|
1085
|
-
], 12,
|
|
1108
|
+
n("div", el, h(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1109
|
+
], 12, Za),
|
|
1086
1110
|
n("td", {
|
|
1087
1111
|
class: "vue-ui-data-table__tbody__td",
|
|
1088
|
-
style:
|
|
1089
|
-
"data-cell":
|
|
1112
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1113
|
+
"data-cell": z.value.head[6] ?? ""
|
|
1090
1114
|
}, [
|
|
1091
|
-
n("div",
|
|
1092
|
-
], 12,
|
|
1115
|
+
n("div", al, h(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1116
|
+
], 12, tl)
|
|
1093
1117
|
], 6))), 256))
|
|
1094
1118
|
])
|
|
1095
1119
|
])
|
|
1096
1120
|
], 2)
|
|
1097
1121
|
])
|
|
1098
|
-
],
|
|
1122
|
+
], 4)
|
|
1099
1123
|
]),
|
|
1100
|
-
_:
|
|
1101
|
-
},
|
|
1102
|
-
|
|
1103
|
-
|
|
1124
|
+
_: 2
|
|
1125
|
+
}, [
|
|
1126
|
+
e.value.table.useDialog ? {
|
|
1127
|
+
name: "title",
|
|
1128
|
+
fn: m(() => [
|
|
1129
|
+
dt(h(de.value.title), 1)
|
|
1130
|
+
]),
|
|
1131
|
+
key: "0"
|
|
1132
|
+
} : void 0,
|
|
1133
|
+
e.value.table.useDialog ? {
|
|
1134
|
+
name: "actions",
|
|
1135
|
+
fn: m(() => [
|
|
1136
|
+
n("button", {
|
|
1137
|
+
tabindex: "0",
|
|
1138
|
+
class: "vue-ui-user-options-button",
|
|
1139
|
+
onClick: l[2] || (l[2] = (a) => Le(e.value.userOptions.callbacks.csv))
|
|
1140
|
+
}, [
|
|
1141
|
+
J(s(Fe), {
|
|
1142
|
+
name: "excel",
|
|
1143
|
+
stroke: de.value.props.color
|
|
1144
|
+
}, null, 8, ["stroke"])
|
|
1145
|
+
])
|
|
1146
|
+
]),
|
|
1147
|
+
key: "1"
|
|
1148
|
+
} : void 0
|
|
1149
|
+
]), 1040)) : f("", !0),
|
|
1150
|
+
s(ke) ? (u(), X(ia, { key: 9 })) : f("", !0)
|
|
1151
|
+
], 46, ya));
|
|
1104
1152
|
}
|
|
1105
|
-
},
|
|
1153
|
+
}, bl = /* @__PURE__ */ ga(ll, [["__scopeId", "data-v-7dfdd878"]]);
|
|
1106
1154
|
export {
|
|
1107
|
-
|
|
1155
|
+
bl as default
|
|
1108
1156
|
};
|