vue-data-ui 3.0.23 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.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-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,21 +1,22 @@
|
|
|
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
|
|
15
|
-
|
|
1
|
+
import { useCssVars as Et, defineAsyncComponent as K, useSlots as Ut, computed as y, ref as i, toRefs as Xt, watch as Pe, shallowRef as rt, onMounted as Ne, nextTick as ce, onBeforeUnmount as Wt, 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 it, resolveDynamicComponent as Gt, withKeys as Ht, createTextVNode as vt } from "vue";
|
|
2
|
+
import { u as jt, c as qt, t as Yt, a as Kt, p as W, b as Jt, C as Ae, d as Qt, h as L, o as ze, f as ue, e as Ve, k as pe, i as G, X as Zt, s as Ie, x as ea, v as ta, w as aa, y as la, z as oa } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as na, u as ua } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as sa, B as ra } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as ia } from "./usePrinter-BzuXiubT.js";
|
|
6
|
+
import { u as dt } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as va } from "./useTableResponsive-Cbx-ACcP.js";
|
|
8
|
+
import { u as da } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as ca } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import ct from "./Legend-8_V5egWW.js";
|
|
11
|
+
import ha from "./vue-ui-accordion-B5QeV3BK.js";
|
|
12
|
+
import pa from "./Title-Dz-j6ERs.js";
|
|
13
|
+
import { _ as ht } from "./Shape-Cjca5zta.js";
|
|
14
|
+
import fa from "./img-gBDz7xQQ.js";
|
|
15
|
+
import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
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
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, 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
20
|
__name: "vue-ui-vertical-bar",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,35 +33,35 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
setup(pt, { expose: ft, emit: gt }) {
|
|
37
|
+
Et((t) => ({
|
|
38
|
+
"4e09523a": t.tdo
|
|
38
39
|
}));
|
|
39
|
-
const
|
|
40
|
+
const yt = K(() => import("./Tooltip-BTGOEC7w.js")), Oe = K(() => import("./BaseIcon-DLesaZpW.js")), bt = K(() => import("./PenAndPaper-B6OvfyHH.js")), mt = K(() => import("./UserOptions-CsDlFB0L.js")), kt = K(() => import("./PackageVersion-Cv_ypT0N.js")), xt = K(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_vertical_bar: wt } = jt(), _t = Ut(), b = pt, fe = y({
|
|
40
41
|
get() {
|
|
41
|
-
return !!
|
|
42
|
+
return !!b.dataset && b.dataset.length;
|
|
42
43
|
},
|
|
43
44
|
set(t) {
|
|
44
45
|
return t;
|
|
45
46
|
}
|
|
46
|
-
}), S = i(
|
|
47
|
+
}), S = i(qt()), $t = i(null), ge = i(!1), ye = i(""), ae = i(0), Ct = i(null), Fe = i(0), P = i(null), Me = i(null), be = i(null), Be = i(null), De = i(null), Re = i(0), me = i(0), H = i(null), le = i(null), Tt = gt, e = i(_e()), St = y(() => [
|
|
47
48
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
48
49
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
49
50
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
50
51
|
{ name: "", value: 3, color: "#d9d9d9" },
|
|
51
52
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
52
53
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
53
|
-
]), { loading:
|
|
54
|
-
...
|
|
54
|
+
]), { loading: Ee, FINAL_DATASET: ke, manualLoading: xe } = sa({
|
|
55
|
+
...Xt(b),
|
|
55
56
|
FINAL_CONFIG: e,
|
|
56
|
-
prepareConfig:
|
|
57
|
+
prepareConfig: _e,
|
|
57
58
|
callback: () => {
|
|
58
59
|
Promise.resolve().then(async () => {
|
|
59
|
-
|
|
60
|
+
q(), k.value.showTable = e.value.table.show, await O();
|
|
60
61
|
});
|
|
61
62
|
},
|
|
62
|
-
skeletonDataset:
|
|
63
|
-
skeletonConfig:
|
|
63
|
+
skeletonDataset: St.value,
|
|
64
|
+
skeletonConfig: Yt({
|
|
64
65
|
defaultConfig: e.value,
|
|
65
66
|
userConfig: {
|
|
66
67
|
useCssAnimation: !1,
|
|
@@ -106,154 +107,146 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
})
|
|
109
|
-
}), { userOptionsVisible:
|
|
110
|
-
function
|
|
111
|
-
const t =
|
|
112
|
-
userConfig:
|
|
113
|
-
defaultConfig:
|
|
110
|
+
}), { userOptionsVisible: we, setUserOptionsVisibility: Ue, keepUserOptionState: Xe } = da({ config: e.value }), { svgRef: We } = ca({ config: e.value.style.chart.title });
|
|
111
|
+
function _e() {
|
|
112
|
+
const t = dt({
|
|
113
|
+
userConfig: b.config,
|
|
114
|
+
defaultConfig: wt
|
|
114
115
|
});
|
|
115
116
|
let l = {};
|
|
116
117
|
return t.theme ? l = {
|
|
117
|
-
...
|
|
118
|
-
userConfig:
|
|
118
|
+
...dt({
|
|
119
|
+
userConfig: Jt.vue_ui_vertical_bar[t.theme] || b.config,
|
|
119
120
|
defaultConfig: t
|
|
120
121
|
}),
|
|
121
|
-
customPalette:
|
|
122
|
-
} : l = t,
|
|
122
|
+
customPalette: Kt[t.theme] || W
|
|
123
|
+
} : l = t, b.config && Ae(b.config, "events.datapointEnter") ? l.events.datapointEnter = b.config.events.datapointEnter : l.events.datapointEnter = null, b.config && Ae(b.config, "events.datapointLeave") ? l.events.datapointLeave = b.config.events.datapointLeave : l.events.datapointLeave = null, b.config && Ae(b.config, "events.datapointClick") ? l.events.datapointClick = b.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, { deep: !0 }),
|
|
127
|
-
Array.isArray(t) && t.length > 0 && (
|
|
125
|
+
Pe(() => b.config, (t) => {
|
|
126
|
+
Ee.value || (e.value = _e()), we.value = !e.value.userOptions.showOnChartHover, Qe(), Re.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;
|
|
127
|
+
}, { deep: !0 }), Pe(() => b.dataset, (t) => {
|
|
128
|
+
Array.isArray(t) && t.length > 0 && (xe.value = !1), q();
|
|
128
129
|
}, { deep: !0 });
|
|
129
|
-
const { isPrinting:
|
|
130
|
+
const { isPrinting: Ge, isImaging: He, generatePdf: je, generateImage: qe } = ia({
|
|
130
131
|
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
131
132
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
132
133
|
options: e.value.userOptions.print
|
|
133
|
-
}),
|
|
134
|
-
const [t, l, a, o] =
|
|
134
|
+
}), Lt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => Qt(e.value.customPalette)), Ke = i(null), Pt = y(() => e.value.table.responsiveBreakpoint), I = rt(null), j = rt(null), se = i("0 0 10 10"), N = y(() => {
|
|
135
|
+
const [t, l, a, o] = se.value.split(" ").map(Number);
|
|
135
136
|
return { x: t, y: l, width: a, height: o };
|
|
136
137
|
});
|
|
137
|
-
|
|
138
|
-
await
|
|
138
|
+
Ne(async () => {
|
|
139
|
+
await ce(), Qe(), O();
|
|
139
140
|
});
|
|
140
141
|
async function O() {
|
|
141
|
-
if (
|
|
142
|
-
const t =
|
|
142
|
+
if (se.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !H.value) return;
|
|
143
|
+
const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
143
144
|
if (t && t.length) {
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
return
|
|
147
|
-
})),
|
|
148
|
-
const
|
|
149
|
-
return
|
|
145
|
+
const g = Math.max(...Array.from(t).flatMap((d) => {
|
|
146
|
+
const w = d.querySelectorAll("text");
|
|
147
|
+
return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
|
|
148
|
+
})), $ = Math.max(...Array.from(l).flatMap((d) => {
|
|
149
|
+
const w = d.querySelectorAll("text");
|
|
150
|
+
return w.length ? Array.from(w).map((Y) => Y.getBBox().width) : 0;
|
|
150
151
|
}));
|
|
151
152
|
Array.from(t).forEach((d) => {
|
|
152
|
-
const
|
|
153
|
-
Array.from(
|
|
154
|
-
Y.setAttribute("x", 0), Y.setAttribute("x", L(-
|
|
153
|
+
const w = d.querySelectorAll("text");
|
|
154
|
+
Array.from(w).forEach(async (Y) => {
|
|
155
|
+
Y.setAttribute("x", 0), Y.setAttribute("x", L(-g - $));
|
|
155
156
|
});
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
|
-
await
|
|
159
|
-
const a =
|
|
160
|
-
|
|
159
|
+
await ce();
|
|
160
|
+
const a = H.value ? H.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
161
|
+
se.value = [
|
|
161
162
|
a.x + -o,
|
|
162
163
|
0,
|
|
163
164
|
a.width + o * 2,
|
|
164
165
|
r.value.fullHeight
|
|
165
166
|
].join(" ");
|
|
166
167
|
}
|
|
167
|
-
let
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
let Je;
|
|
169
|
+
Ne(() => {
|
|
170
|
+
P.value && (Je = new ResizeObserver((t) => {
|
|
170
171
|
for (const l of t) {
|
|
171
172
|
const { width: a, height: o } = l.contentRect;
|
|
172
173
|
if (a > 0 && o > 0) {
|
|
173
174
|
Promise.resolve().then(async () => {
|
|
174
|
-
|
|
175
|
+
q(), await O();
|
|
175
176
|
});
|
|
176
177
|
break;
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
|
-
}),
|
|
180
|
+
}), Je.observe(P.value.parentElement));
|
|
180
181
|
});
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
if (
|
|
182
|
+
const re = y(() => !!e.value.debug), $e = i(0);
|
|
183
|
+
function Qe() {
|
|
184
|
+
if (ze(b.dataset) && (ue({
|
|
184
185
|
componentName: "VueUiVerticalBar",
|
|
185
186
|
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:
|
|
187
|
+
debug: re.value
|
|
188
|
+
}), fe.value = !1, xe.value = !0), ae.value = ke.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), ze(b.dataset) || (xe.value = e.value.loading), e.value.responsive) {
|
|
189
|
+
const t = na(() => {
|
|
190
|
+
const { width: l, height: a } = ua({
|
|
191
|
+
chart: P.value,
|
|
192
|
+
title: e.value.style.chart.title.text ? Me.value : null,
|
|
193
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
194
|
+
source: Be.value,
|
|
195
|
+
noTitle: De.value
|
|
195
196
|
});
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
const o =
|
|
199
|
-
|
|
197
|
+
$e.value = a / 3, requestAnimationFrame(async () => {
|
|
198
|
+
tt.value = l;
|
|
199
|
+
const o = x.value * (ae.value - 1);
|
|
200
|
+
p.value = (a - o) / ae.value, await ce(), O();
|
|
200
201
|
});
|
|
201
202
|
});
|
|
202
|
-
I.value && (
|
|
203
|
+
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
204
|
}
|
|
204
205
|
}
|
|
205
|
-
|
|
206
|
-
I.value && (
|
|
206
|
+
Wt(() => {
|
|
207
|
+
I.value && (j.value && I.value.unobserve(j.value), I.value.disconnect());
|
|
207
208
|
});
|
|
208
|
-
|
|
209
|
-
if (ge.value) return;
|
|
210
|
-
new ResizeObserver((l) => {
|
|
211
|
-
l.forEach((a) => {
|
|
212
|
-
He.value = a.contentRect.width < Ct.value;
|
|
213
|
-
});
|
|
214
|
-
}).observe(We.value);
|
|
215
|
-
}
|
|
216
|
-
const $ = i({
|
|
209
|
+
const k = i({
|
|
217
210
|
showTable: e.value.table.show,
|
|
218
211
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
219
212
|
showTooltip: e.value.style.chart.tooltip.show
|
|
220
|
-
}),
|
|
221
|
-
!t.value && !t.children &&
|
|
213
|
+
}), Ze = y(() => k.value.sortDesc), F = y(() => (ke.value.forEach((t, l) => {
|
|
214
|
+
!t.value && !t.children && ue({
|
|
222
215
|
componentName: "VueUiVerticalBar",
|
|
223
216
|
type: "datasetAttributeEmpty",
|
|
224
217
|
property: `value (index ${l})`,
|
|
225
|
-
debug:
|
|
226
|
-
}), t.children && (
|
|
218
|
+
debug: re.value
|
|
219
|
+
}), t.children && (ze(t.children) ? ue({
|
|
227
220
|
componentName: "VueUiVerticalBar",
|
|
228
221
|
type: "datasetAttributeEmpty",
|
|
229
222
|
property: `children (index ${l})`,
|
|
230
|
-
debug:
|
|
223
|
+
debug: re.value
|
|
231
224
|
}) : t.children.forEach((a, o) => {
|
|
232
|
-
[null, void 0].includes(a.name) &&
|
|
225
|
+
[null, void 0].includes(a.name) && ue({
|
|
233
226
|
componentName: "VueUiVerticalBar",
|
|
234
227
|
type: "datasetSerieAttribute",
|
|
235
228
|
property: "name",
|
|
236
229
|
key: "children",
|
|
237
230
|
index: o,
|
|
238
|
-
debug:
|
|
231
|
+
debug: re.value
|
|
239
232
|
});
|
|
240
233
|
}));
|
|
241
|
-
}),
|
|
242
|
-
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0,
|
|
234
|
+
}), ke.value.map((t, l) => {
|
|
235
|
+
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
236
|
return {
|
|
244
237
|
...t,
|
|
245
238
|
id: a,
|
|
246
239
|
absoluteIndex: l,
|
|
247
240
|
shape: "square",
|
|
248
|
-
opacity:
|
|
249
|
-
value: Math.abs(
|
|
250
|
-
sign:
|
|
241
|
+
opacity: A.value.includes(a) ? 0.5 : 1,
|
|
242
|
+
value: Math.abs(g),
|
|
243
|
+
sign: $,
|
|
251
244
|
hasChildren: o,
|
|
252
245
|
isChild: !1,
|
|
253
|
-
segregate: () =>
|
|
254
|
-
isSegregated:
|
|
255
|
-
color:
|
|
256
|
-
children: !t.children || !t.children.length ? [] : t.children.toSorted(
|
|
246
|
+
segregate: () => oe(a),
|
|
247
|
+
isSegregated: A.value.includes(a),
|
|
248
|
+
color: Ve(t.color) || Ye.value[l] || W[l] || W[l % W.length],
|
|
249
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted(ie.value ? () => 0 : (d, w) => Ze.value ? w.value - d.value : d.value - w.value).map((d, w) => ({
|
|
257
250
|
...d,
|
|
258
251
|
value: L(Math.abs(d.value)),
|
|
259
252
|
absoluteIndex: l,
|
|
@@ -261,34 +254,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
261
254
|
isChild: !0,
|
|
262
255
|
parentId: a,
|
|
263
256
|
parentName: t.name,
|
|
264
|
-
parentValue:
|
|
265
|
-
parentSign:
|
|
266
|
-
id: `vertical_child_${l}_${
|
|
267
|
-
childIndex:
|
|
268
|
-
color:
|
|
269
|
-
})).map((d,
|
|
257
|
+
parentValue: g,
|
|
258
|
+
parentSign: $,
|
|
259
|
+
id: `vertical_child_${l}_${w}_${S.value}`,
|
|
260
|
+
childIndex: w,
|
|
261
|
+
color: Ve(d.color) || Ve(t.color) || Ye.value[l] || W[l] || W[l % W.length]
|
|
262
|
+
})).map((d, w) => ({
|
|
270
263
|
...d,
|
|
271
|
-
isFirstChild:
|
|
272
|
-
isLastChild:
|
|
264
|
+
isFirstChild: w === 0,
|
|
265
|
+
isLastChild: w === t.children.length - 1
|
|
273
266
|
}))
|
|
274
267
|
};
|
|
275
|
-
}).toSorted(
|
|
268
|
+
}).toSorted(ie.value ? () => 0 : (t, l) => Ze.value ? l.value - t.value : t.value - l.value))), et = y(() => ({
|
|
276
269
|
cy: "vertical-bar-div-legend",
|
|
277
270
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
278
271
|
color: e.value.style.chart.legend.color,
|
|
279
272
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
280
273
|
paddingBottom: 12,
|
|
281
274
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
282
|
-
})),
|
|
283
|
-
width:
|
|
284
|
-
height:
|
|
275
|
+
})), p = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), Nt = y(() => (p.value + x.value) * ae.value), tt = i(512), C = y(() => ({
|
|
276
|
+
width: tt.value,
|
|
277
|
+
height: Nt.value,
|
|
285
278
|
padding: {
|
|
286
279
|
top: 12,
|
|
287
280
|
left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
|
|
288
281
|
right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
|
|
289
282
|
bottom: 12
|
|
290
283
|
}
|
|
291
|
-
})), r =
|
|
284
|
+
})), r = y(() => ({
|
|
292
285
|
fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
|
|
293
286
|
top: C.value.padding.top,
|
|
294
287
|
left: C.value.padding.left,
|
|
@@ -296,78 +289,78 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
296
289
|
bottom: C.value.padding.top + C.value.height,
|
|
297
290
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
298
291
|
}));
|
|
299
|
-
async function
|
|
300
|
-
|
|
292
|
+
async function q() {
|
|
293
|
+
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
294
|
}
|
|
302
|
-
const
|
|
303
|
-
async function
|
|
304
|
-
if (
|
|
305
|
-
|
|
295
|
+
const A = i([]);
|
|
296
|
+
async function oe(t) {
|
|
297
|
+
if (A.value.includes(t))
|
|
298
|
+
A.value = A.value.filter((l) => l !== t);
|
|
306
299
|
else {
|
|
307
|
-
if (
|
|
308
|
-
|
|
300
|
+
if (A.value.length === F.value.length - 1) return;
|
|
301
|
+
A.value.push(t);
|
|
309
302
|
}
|
|
310
|
-
|
|
303
|
+
q(), await ce(), e.value.autoSize && O(), Tt("selectLegend", B.value);
|
|
311
304
|
}
|
|
312
|
-
const B =
|
|
313
|
-
function
|
|
305
|
+
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));
|
|
306
|
+
function at(t, l = !1, a = 0) {
|
|
314
307
|
return l ? G({
|
|
315
308
|
v: L(Math.abs(t) / V.value * 100),
|
|
316
309
|
s: "%",
|
|
317
310
|
r: a
|
|
318
311
|
}) : Math.abs(t) / V.value;
|
|
319
312
|
}
|
|
320
|
-
const
|
|
313
|
+
const D = y(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), R = y(() => D.value.map((t) => t.sign).includes(-1)), At = y(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
|
|
321
314
|
function T(t) {
|
|
322
|
-
const l = t /
|
|
323
|
-
return r.value.width / (
|
|
315
|
+
const l = t / At.value;
|
|
316
|
+
return r.value.width / (R.value ? 2 : 1) * l;
|
|
324
317
|
}
|
|
325
|
-
function
|
|
318
|
+
function zt(t) {
|
|
326
319
|
return T(t) + r.value.left;
|
|
327
320
|
}
|
|
328
|
-
function
|
|
329
|
-
const a = B.value.find((
|
|
321
|
+
function ne(t, l) {
|
|
322
|
+
const a = B.value.find(($) => $.id === t.parentId), o = r.value.top + (x.value + p.value) * l, g = a.children.length * (x.value + p.value);
|
|
330
323
|
return {
|
|
331
|
-
y: o +
|
|
324
|
+
y: o + g / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
332
325
|
name: a.name,
|
|
333
326
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
334
|
-
percentageToTotal: isNaN(a.value / V.value) ? "" :
|
|
327
|
+
percentageToTotal: isNaN(a.value / V.value) ? "" : at(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
335
328
|
sign: a.sign
|
|
336
329
|
};
|
|
337
330
|
}
|
|
338
|
-
function
|
|
331
|
+
function Vt() {
|
|
339
332
|
return B.value;
|
|
340
333
|
}
|
|
341
|
-
const
|
|
342
|
-
function
|
|
334
|
+
const Ce = i(null), Te = i(null);
|
|
335
|
+
function It({ datapoint: t, seriesIndex: l }) {
|
|
343
336
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
344
337
|
}
|
|
345
|
-
function
|
|
346
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
338
|
+
function Ot({ datapoint: t, seriesIndex: l }) {
|
|
339
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Ct.value = null, ge.value = !1, Ce.value = null;
|
|
347
340
|
}
|
|
348
|
-
function
|
|
349
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }),
|
|
341
|
+
function Ft(t, l) {
|
|
342
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Te.value = {
|
|
350
343
|
datapoint: t,
|
|
351
344
|
seriesIndex: l,
|
|
352
345
|
series: F.value,
|
|
353
346
|
config: e.value
|
|
354
|
-
},
|
|
347
|
+
}, ge.value = !0, Ce.value = t.id;
|
|
355
348
|
let a = "";
|
|
356
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
357
|
-
|
|
349
|
+
const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", $ = e.value.style.chart.tooltip.customFormat;
|
|
350
|
+
la($) && oa(() => $({
|
|
358
351
|
datapoint: t,
|
|
359
352
|
series: F.value,
|
|
360
353
|
config: e.value,
|
|
361
354
|
seriesIndex: l
|
|
362
|
-
})) ?
|
|
355
|
+
})) ? ye.value = $({
|
|
363
356
|
datapoint: t,
|
|
364
357
|
series: F.value,
|
|
365
358
|
config: e.value,
|
|
366
359
|
seriesIndex: l
|
|
367
360
|
}) : (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>${
|
|
361
|
+
<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>
|
|
362
|
+
${g ? `<div>${g}</div>` : ""}
|
|
363
|
+
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${pe(
|
|
371
364
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
372
365
|
t.sign === 1 ? t.value : -t.value,
|
|
373
366
|
G({
|
|
@@ -385,12 +378,12 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
385
378
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
386
379
|
s: "%",
|
|
387
380
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
388
|
-
})}</b></div>`)),
|
|
381
|
+
})}</b></div>`)), ye.value = `<div style="text-align:left">${a}</div>`);
|
|
389
382
|
}
|
|
390
|
-
function
|
|
383
|
+
function lt(t, l, a, o) {
|
|
391
384
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
392
385
|
return "";
|
|
393
|
-
const
|
|
386
|
+
const g = pe(
|
|
394
387
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
395
388
|
L(o === -1 && t >= 0 ? -t : t),
|
|
396
389
|
G({
|
|
@@ -400,10 +393,10 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
400
393
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
401
394
|
}),
|
|
402
395
|
{ datapoint: l, seriesIndex: a }
|
|
403
|
-
),
|
|
404
|
-
return `${
|
|
396
|
+
), $ = `(${at(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
397
|
+
return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${$}` : ""}`;
|
|
405
398
|
}
|
|
406
|
-
const
|
|
399
|
+
const z = y(() => {
|
|
407
400
|
const t = [
|
|
408
401
|
e.value.translations.parentName,
|
|
409
402
|
e.value.translations.value,
|
|
@@ -412,7 +405,7 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
412
405
|
e.value.translations.value,
|
|
413
406
|
e.value.translations.percentageToSerie,
|
|
414
407
|
e.value.translations.percentageToTotal
|
|
415
|
-
], l =
|
|
408
|
+
], l = D.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
416
409
|
color: a.color,
|
|
417
410
|
parentName: a.parentName,
|
|
418
411
|
parentValue: a.parentValue,
|
|
@@ -442,8 +435,8 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
442
435
|
});
|
|
443
436
|
return { head: t, body: l };
|
|
444
437
|
});
|
|
445
|
-
function
|
|
446
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
438
|
+
function Se(t = null) {
|
|
439
|
+
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
440
|
d.parentName,
|
|
448
441
|
d.parentValue,
|
|
449
442
|
d.percentageToTotal,
|
|
@@ -451,100 +444,134 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
451
444
|
d.childValue,
|
|
452
445
|
d.childPercentageToParent,
|
|
453
446
|
d.childPercentageToTotal
|
|
454
|
-
]),
|
|
455
|
-
t ? t(
|
|
447
|
+
]), g = l.concat([a]).concat(o), $ = ta(g);
|
|
448
|
+
t ? t($) : aa({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
456
449
|
}
|
|
457
|
-
const
|
|
458
|
-
function
|
|
459
|
-
|
|
450
|
+
const E = i(!1);
|
|
451
|
+
function ot(t) {
|
|
452
|
+
E.value = t, Fe.value += 1;
|
|
460
453
|
}
|
|
461
|
-
function
|
|
462
|
-
|
|
454
|
+
function nt() {
|
|
455
|
+
k.value.showTable = !k.value.showTable;
|
|
463
456
|
}
|
|
464
|
-
const
|
|
457
|
+
const Mt = i({
|
|
465
458
|
none: 0,
|
|
466
459
|
asc: 1,
|
|
467
460
|
desc: 2
|
|
468
|
-
}), M = i(0),
|
|
469
|
-
|
|
470
|
-
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) ||
|
|
461
|
+
}), M = i(0), ie = i(!1);
|
|
462
|
+
Ne(() => {
|
|
463
|
+
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
|
|
471
464
|
componentName: "VueUiVerticalBar",
|
|
472
465
|
type: "attributeWrongValue",
|
|
473
466
|
property: "style.chart.layout.bars.sort",
|
|
474
467
|
key: e.value.style.chart.layout.bars.sort
|
|
475
|
-
}), M.value =
|
|
468
|
+
}), M.value = Mt.value[e.value.style.chart.layout.bars.sort], k.value.sortDesc = M.value === 2, ie.value = M.value === 0;
|
|
476
469
|
});
|
|
477
|
-
function
|
|
470
|
+
function Bt() {
|
|
478
471
|
M.value += 1, M.value > 2 && (M.value = 0);
|
|
479
472
|
}
|
|
480
|
-
function
|
|
481
|
-
|
|
473
|
+
function ut() {
|
|
474
|
+
Bt(), k.value.sortDesc = M.value === 2, ie.value = M.value === 0, q();
|
|
482
475
|
}
|
|
483
|
-
function
|
|
484
|
-
|
|
476
|
+
function st() {
|
|
477
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
485
478
|
}
|
|
486
|
-
const
|
|
487
|
-
function
|
|
488
|
-
|
|
479
|
+
const ve = i(!1);
|
|
480
|
+
function Le() {
|
|
481
|
+
ve.value = !ve.value;
|
|
489
482
|
}
|
|
490
|
-
async function
|
|
491
|
-
if (!
|
|
492
|
-
const { width: l, height: a } =
|
|
483
|
+
async function Dt({ scale: t = 2 } = {}) {
|
|
484
|
+
if (!P.value) return;
|
|
485
|
+
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
486
|
return {
|
|
494
|
-
imageUri:
|
|
495
|
-
base64:
|
|
487
|
+
imageUri: g,
|
|
488
|
+
base64: $,
|
|
496
489
|
title: e.value.style.chart.title.text,
|
|
497
490
|
width: l,
|
|
498
491
|
height: a,
|
|
499
492
|
aspectRatio: o
|
|
500
493
|
};
|
|
501
494
|
}
|
|
502
|
-
|
|
495
|
+
const de = y(() => {
|
|
496
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = k.value.showTable;
|
|
497
|
+
return {
|
|
498
|
+
component: t ? xt : ha,
|
|
499
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
500
|
+
props: t ? {
|
|
501
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
502
|
+
color: e.value.table.th.color,
|
|
503
|
+
headerColor: e.value.table.th.color,
|
|
504
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
505
|
+
isFullscreen: E.value,
|
|
506
|
+
fullscreenParent: P.value,
|
|
507
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
508
|
+
} : {
|
|
509
|
+
hideDetails: !0,
|
|
510
|
+
config: {
|
|
511
|
+
open: l,
|
|
512
|
+
maxHeight: 1e4,
|
|
513
|
+
body: {
|
|
514
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
515
|
+
color: e.value.style.chart.color
|
|
516
|
+
},
|
|
517
|
+
head: {
|
|
518
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
519
|
+
color: e.value.style.chart.color
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
});
|
|
525
|
+
Pe(() => k.value.showTable, (t) => {
|
|
526
|
+
e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
527
|
+
});
|
|
528
|
+
const { isResponsive: Rt } = va(Ke, Pt);
|
|
529
|
+
return ft({
|
|
503
530
|
autoSize: O,
|
|
504
531
|
// v3
|
|
505
|
-
getData:
|
|
506
|
-
getImage:
|
|
507
|
-
recalculateHeight:
|
|
508
|
-
generatePdf:
|
|
509
|
-
generateCsv:
|
|
510
|
-
generateImage:
|
|
511
|
-
toggleTable:
|
|
512
|
-
toggleSort:
|
|
513
|
-
toggleTooltip:
|
|
514
|
-
toggleAnnotator:
|
|
515
|
-
toggleFullscreen:
|
|
532
|
+
getData: Vt,
|
|
533
|
+
getImage: Dt,
|
|
534
|
+
recalculateHeight: q,
|
|
535
|
+
generatePdf: je,
|
|
536
|
+
generateCsv: Se,
|
|
537
|
+
generateImage: qe,
|
|
538
|
+
toggleTable: nt,
|
|
539
|
+
toggleSort: ut,
|
|
540
|
+
toggleTooltip: st,
|
|
541
|
+
toggleAnnotator: Le,
|
|
542
|
+
toggleFullscreen: ot
|
|
516
543
|
}), (t, l) => (u(), v("div", {
|
|
517
|
-
class:
|
|
544
|
+
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
545
|
ref_key: "verticalBarChart",
|
|
519
|
-
ref:
|
|
546
|
+
ref: P,
|
|
520
547
|
id: `vue-ui-vertical-bar_${S.value}`,
|
|
521
|
-
style:
|
|
522
|
-
onMouseenter: l[
|
|
523
|
-
onMouseleave: l[
|
|
548
|
+
style: c(`padding-top:${e.value.responsive && e.value.autoSize ? `${$e.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% - ${$e.value}px` : "height: 100%" : ""}`),
|
|
549
|
+
onMouseenter: l[6] || (l[6] = () => s(Ue)(!0)),
|
|
550
|
+
onMouseleave: l[7] || (l[7] = () => s(Ue)(!1))
|
|
524
551
|
}, [
|
|
525
|
-
e.value.userOptions.buttons.annotator ? (u(), X(s(
|
|
552
|
+
e.value.userOptions.buttons.annotator ? (u(), X(s(bt), {
|
|
526
553
|
key: 0,
|
|
527
|
-
svgRef: s(
|
|
554
|
+
svgRef: s(We),
|
|
528
555
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
529
556
|
color: e.value.style.chart.color,
|
|
530
|
-
active:
|
|
531
|
-
onClose:
|
|
532
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
533
|
-
|
|
557
|
+
active: ve.value,
|
|
558
|
+
onClose: Le
|
|
559
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
560
|
+
Lt.value ? (u(), v("div", {
|
|
534
561
|
key: 1,
|
|
535
562
|
ref_key: "noTitle",
|
|
536
|
-
ref:
|
|
563
|
+
ref: De,
|
|
537
564
|
class: "vue-data-ui-no-title-space",
|
|
538
565
|
style: "height:36px; width: 100%;background:transparent"
|
|
539
|
-
}, null, 512)) :
|
|
566
|
+
}, null, 512)) : f("", !0),
|
|
540
567
|
e.value.style.chart.title.text ? (u(), v("div", {
|
|
541
568
|
key: 2,
|
|
542
569
|
ref_key: "chartTitle",
|
|
543
|
-
ref:
|
|
570
|
+
ref: Me,
|
|
544
571
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
545
572
|
}, [
|
|
546
|
-
(u(), X(
|
|
547
|
-
key: `title_${
|
|
573
|
+
(u(), X(pa, {
|
|
574
|
+
key: `title_${Re.value}`,
|
|
548
575
|
config: {
|
|
549
576
|
title: {
|
|
550
577
|
cy: "vertical-bar-div-title",
|
|
@@ -556,15 +583,15 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
556
583
|
}
|
|
557
584
|
}
|
|
558
585
|
}, null, 8, ["config"]))
|
|
559
|
-
], 512)) :
|
|
560
|
-
e.value.userOptions.show &&
|
|
586
|
+
], 512)) : f("", !0),
|
|
587
|
+
e.value.userOptions.show && fe.value && (s(Xe) || s(we)) ? (u(), X(s(mt), {
|
|
561
588
|
ref_key: "details",
|
|
562
|
-
ref:
|
|
563
|
-
key: `user_options_${
|
|
589
|
+
ref: $t,
|
|
590
|
+
key: `user_options_${Fe.value}`,
|
|
564
591
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
592
|
color: e.value.style.chart.color,
|
|
566
|
-
isImaging: s(
|
|
567
|
-
isPrinting: s(
|
|
593
|
+
isImaging: s(He),
|
|
594
|
+
isPrinting: s(Ge),
|
|
568
595
|
uid: S.value,
|
|
569
596
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
570
597
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -573,114 +600,114 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
573
600
|
hasTable: e.value.userOptions.buttons.table,
|
|
574
601
|
hasSort: e.value.userOptions.buttons.sort,
|
|
575
602
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
576
|
-
isFullscreen:
|
|
577
|
-
isTooltip:
|
|
603
|
+
isFullscreen: E.value,
|
|
604
|
+
isTooltip: k.value.showTooltip,
|
|
578
605
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
579
|
-
chartElement:
|
|
606
|
+
chartElement: P.value,
|
|
580
607
|
position: e.value.userOptions.position,
|
|
581
608
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
582
|
-
isAnnotation:
|
|
609
|
+
isAnnotation: ve.value,
|
|
583
610
|
callbacks: e.value.userOptions.callbacks,
|
|
584
611
|
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(
|
|
612
|
+
onToggleFullscreen: ot,
|
|
613
|
+
onGeneratePdf: s(je),
|
|
614
|
+
onGenerateCsv: Se,
|
|
615
|
+
onGenerateImage: s(qe),
|
|
616
|
+
onToggleTable: nt,
|
|
617
|
+
onToggleSort: ut,
|
|
618
|
+
onToggleTooltip: st,
|
|
619
|
+
onToggleAnnotator: Le,
|
|
620
|
+
style: c({
|
|
621
|
+
visibility: s(Xe) ? s(we) ? "visible" : "hidden" : "visible"
|
|
595
622
|
})
|
|
596
|
-
},
|
|
623
|
+
}, he({ _: 2 }, [
|
|
597
624
|
t.$slots.menuIcon ? {
|
|
598
625
|
name: "menuIcon",
|
|
599
|
-
fn:
|
|
600
|
-
|
|
626
|
+
fn: m(({ isOpen: a, color: o }) => [
|
|
627
|
+
_(t.$slots, "menuIcon", Q(Z({ isOpen: a, color: o })), void 0, !0)
|
|
601
628
|
]),
|
|
602
629
|
key: "0"
|
|
603
630
|
} : void 0,
|
|
604
631
|
t.$slots.optionTooltip ? {
|
|
605
632
|
name: "optionTooltip",
|
|
606
|
-
fn:
|
|
607
|
-
|
|
633
|
+
fn: m(() => [
|
|
634
|
+
_(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
608
635
|
]),
|
|
609
636
|
key: "1"
|
|
610
637
|
} : void 0,
|
|
611
638
|
t.$slots.optionPdf ? {
|
|
612
639
|
name: "optionPdf",
|
|
613
|
-
fn:
|
|
614
|
-
|
|
640
|
+
fn: m(() => [
|
|
641
|
+
_(t.$slots, "optionPdf", {}, void 0, !0)
|
|
615
642
|
]),
|
|
616
643
|
key: "2"
|
|
617
644
|
} : void 0,
|
|
618
645
|
t.$slots.optionCsv ? {
|
|
619
646
|
name: "optionCsv",
|
|
620
|
-
fn:
|
|
621
|
-
|
|
647
|
+
fn: m(() => [
|
|
648
|
+
_(t.$slots, "optionCsv", {}, void 0, !0)
|
|
622
649
|
]),
|
|
623
650
|
key: "3"
|
|
624
651
|
} : void 0,
|
|
625
652
|
t.$slots.optionImg ? {
|
|
626
653
|
name: "optionImg",
|
|
627
|
-
fn:
|
|
628
|
-
|
|
654
|
+
fn: m(() => [
|
|
655
|
+
_(t.$slots, "optionImg", {}, void 0, !0)
|
|
629
656
|
]),
|
|
630
657
|
key: "4"
|
|
631
658
|
} : void 0,
|
|
632
659
|
t.$slots.optionTable ? {
|
|
633
660
|
name: "optionTable",
|
|
634
|
-
fn:
|
|
635
|
-
|
|
661
|
+
fn: m(() => [
|
|
662
|
+
_(t.$slots, "optionTable", {}, void 0, !0)
|
|
636
663
|
]),
|
|
637
664
|
key: "5"
|
|
638
665
|
} : void 0,
|
|
639
666
|
t.$slots.optionLabels ? {
|
|
640
667
|
name: "optionLabels",
|
|
641
|
-
fn:
|
|
642
|
-
|
|
668
|
+
fn: m(() => [
|
|
669
|
+
_(t.$slots, "optionLabels", {}, void 0, !0)
|
|
643
670
|
]),
|
|
644
671
|
key: "6"
|
|
645
672
|
} : void 0,
|
|
646
673
|
t.$slots.optionSort ? {
|
|
647
674
|
name: "optionSort",
|
|
648
|
-
fn:
|
|
649
|
-
|
|
675
|
+
fn: m(() => [
|
|
676
|
+
_(t.$slots, "optionSort", {}, void 0, !0)
|
|
650
677
|
]),
|
|
651
678
|
key: "7"
|
|
652
679
|
} : void 0,
|
|
653
680
|
t.$slots.optionFullscreen ? {
|
|
654
681
|
name: "optionFullscreen",
|
|
655
|
-
fn:
|
|
656
|
-
|
|
682
|
+
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
683
|
+
_(t.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
657
684
|
]),
|
|
658
685
|
key: "8"
|
|
659
686
|
} : void 0,
|
|
660
687
|
t.$slots.optionAnnotator ? {
|
|
661
688
|
name: "optionAnnotator",
|
|
662
|
-
fn:
|
|
663
|
-
|
|
689
|
+
fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
690
|
+
_(t.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
664
691
|
]),
|
|
665
692
|
key: "9"
|
|
666
693
|
} : 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"])) :
|
|
694
|
+
]), 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
695
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
|
|
669
696
|
key: 4,
|
|
670
697
|
ref_key: "chartLegend",
|
|
671
|
-
ref:
|
|
698
|
+
ref: be
|
|
672
699
|
}, [
|
|
673
|
-
(u(), X(
|
|
674
|
-
key: `legend_top_${
|
|
700
|
+
(u(), X(ct, {
|
|
701
|
+
key: `legend_top_${me.value}`,
|
|
675
702
|
legendSet: F.value,
|
|
676
|
-
config:
|
|
677
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
678
|
-
},
|
|
679
|
-
item:
|
|
703
|
+
config: et.value,
|
|
704
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
705
|
+
}, he({
|
|
706
|
+
item: m(({ legend: a, index: o }) => [
|
|
680
707
|
n("div", {
|
|
681
|
-
onClick: (
|
|
682
|
-
style:
|
|
683
|
-
},
|
|
708
|
+
onClick: (g) => oe(a.id),
|
|
709
|
+
style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
710
|
+
}, h(a.name) + ": " + h(s(pe)(
|
|
684
711
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
685
712
|
a.value,
|
|
686
713
|
s(G)({
|
|
@@ -690,14 +717,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
690
717
|
r: e.value.style.chart.legend.roundingValue
|
|
691
718
|
}),
|
|
692
719
|
{ datapoint: a, seriesIndex: o }
|
|
693
|
-
)), 13,
|
|
720
|
+
)), 13, ba)
|
|
694
721
|
]),
|
|
695
722
|
_: 2
|
|
696
723
|
}, [
|
|
697
724
|
t.$slots.pattern ? {
|
|
698
725
|
name: "legend-pattern",
|
|
699
|
-
fn:
|
|
700
|
-
|
|
726
|
+
fn: m(({ legend: a, index: o }) => [
|
|
727
|
+
J(ht, {
|
|
701
728
|
shape: a.shape,
|
|
702
729
|
radius: 30,
|
|
703
730
|
stroke: "none",
|
|
@@ -708,34 +735,34 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
708
735
|
key: "0"
|
|
709
736
|
} : void 0
|
|
710
737
|
]), 1032, ["legendSet", "config"]))
|
|
711
|
-
], 512)) :
|
|
738
|
+
], 512)) : f("", !0),
|
|
712
739
|
(u(), v("svg", {
|
|
713
740
|
ref_key: "svgRef",
|
|
714
|
-
ref:
|
|
715
|
-
xmlns: s(
|
|
716
|
-
class:
|
|
717
|
-
viewBox:
|
|
718
|
-
style:
|
|
741
|
+
ref: We,
|
|
742
|
+
xmlns: s(Zt),
|
|
743
|
+
class: U({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
744
|
+
viewBox: se.value,
|
|
745
|
+
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
719
746
|
}, [
|
|
720
747
|
n("g", {
|
|
721
748
|
ref_key: "G",
|
|
722
|
-
ref:
|
|
749
|
+
ref: H,
|
|
723
750
|
class: "vue-data-ui-g"
|
|
724
751
|
}, [
|
|
725
|
-
|
|
752
|
+
J(s(kt)),
|
|
726
753
|
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
727
754
|
key: 0,
|
|
728
|
-
x:
|
|
755
|
+
x: N.value.x,
|
|
729
756
|
y: 0,
|
|
730
|
-
width:
|
|
731
|
-
height:
|
|
757
|
+
width: N.value.width,
|
|
758
|
+
height: N.value.height,
|
|
732
759
|
style: {
|
|
733
760
|
pointerEvents: "none"
|
|
734
761
|
}
|
|
735
762
|
}, [
|
|
736
|
-
|
|
737
|
-
], 8,
|
|
738
|
-
(u(!0), v(
|
|
763
|
+
_(t.$slots, "chart-background", {}, void 0, !0)
|
|
764
|
+
], 8, ka)) : f("", !0),
|
|
765
|
+
(u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("linearGradient", {
|
|
739
766
|
x1: "0%",
|
|
740
767
|
y1: "0%",
|
|
741
768
|
x2: "100%",
|
|
@@ -745,64 +772,64 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
745
772
|
n("stop", {
|
|
746
773
|
offset: "0%",
|
|
747
774
|
"stop-color": a.color
|
|
748
|
-
}, null, 8,
|
|
775
|
+
}, null, 8, wa),
|
|
749
776
|
n("stop", {
|
|
750
777
|
offset: "100%",
|
|
751
|
-
"stop-color": s(
|
|
752
|
-
}, null, 8,
|
|
753
|
-
], 8,
|
|
754
|
-
t.$slots.pattern ? (u(), v("g",
|
|
755
|
-
(u(!0), v(
|
|
756
|
-
|
|
778
|
+
"stop-color": s(Ie)(s(ea)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
779
|
+
}, null, 8, _a)
|
|
780
|
+
], 8, xa))), 256)),
|
|
781
|
+
t.$slots.pattern ? (u(), v("g", $a, [
|
|
782
|
+
(u(!0), v(ee, null, te(D.value, (a) => (u(), v("defs", null, [
|
|
783
|
+
_(t.$slots, "pattern", it({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
757
784
|
]))), 256))
|
|
758
|
-
])) :
|
|
759
|
-
(u(!0), v(
|
|
785
|
+
])) : f("", !0),
|
|
786
|
+
(u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
|
|
760
787
|
n("rect", {
|
|
761
|
-
x: s(L)(
|
|
762
|
-
y: r.value.top + (
|
|
788
|
+
x: s(L)(R.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
789
|
+
y: r.value.top + (x.value + p.value) * o,
|
|
763
790
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
764
|
-
height:
|
|
791
|
+
height: p.value <= 0 ? 1e-4 : p.value,
|
|
765
792
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
766
793
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
767
|
-
class:
|
|
768
|
-
}, null, 10,
|
|
794
|
+
class: U({ animated: e.value.useCssAnimation })
|
|
795
|
+
}, null, 10, Ca)
|
|
769
796
|
]))), 256)),
|
|
770
|
-
(u(!0), v(
|
|
797
|
+
(u(!0), v(ee, null, te(D.value, (a, o) => (u(), v("g", null, [
|
|
771
798
|
n("rect", {
|
|
772
|
-
x: s(L)(
|
|
773
|
-
y: r.value.top + (
|
|
799
|
+
x: s(L)(R.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
800
|
+
y: r.value.top + (x.value + p.value) * o,
|
|
774
801
|
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(
|
|
802
|
+
height: p.value <= 0 ? 1e-4 : p.value,
|
|
803
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Ie)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
777
804
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
778
805
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
779
806
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
780
|
-
class:
|
|
781
|
-
}, null, 10,
|
|
807
|
+
class: U({ animated: e.value.useCssAnimation })
|
|
808
|
+
}, null, 10, Ta),
|
|
782
809
|
t.$slots.pattern ? (u(), v("rect", {
|
|
783
810
|
key: 0,
|
|
784
|
-
x: s(L)(
|
|
785
|
-
y: r.value.top + (
|
|
811
|
+
x: s(L)(R.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
812
|
+
y: r.value.top + (x.value + p.value) * o,
|
|
786
813
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
787
|
-
height:
|
|
814
|
+
height: p.value <= 0 ? 1e-4 : p.value,
|
|
788
815
|
fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
|
|
789
816
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
790
817
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
791
818
|
"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 !==
|
|
819
|
+
class: U({ animated: e.value.useCssAnimation })
|
|
820
|
+
}, null, 10, Sa)) : f("", !0),
|
|
821
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== D.value.length - 1 ? (u(), v("line", {
|
|
795
822
|
key: 1,
|
|
796
|
-
x1:
|
|
797
|
-
x2: e.value.style.chart.layout.separators.fullWidth ?
|
|
798
|
-
y1:
|
|
799
|
-
y2:
|
|
823
|
+
x1: N.value.x,
|
|
824
|
+
x2: e.value.style.chart.layout.separators.fullWidth ? N.value.width - Math.abs(N.value.x) : r.value.left,
|
|
825
|
+
y1: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
|
|
826
|
+
y2: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
|
|
800
827
|
stroke: e.value.style.chart.layout.separators.color,
|
|
801
828
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
802
829
|
"stroke-linecap": "round",
|
|
803
830
|
style: { transition: "none !important", animation: "none !important" }
|
|
804
|
-
}, null, 8,
|
|
805
|
-
|
|
831
|
+
}, null, 8, La)) : f("", !0),
|
|
832
|
+
R.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
|
|
806
833
|
key: 2,
|
|
807
834
|
x1: r.value.left + r.value.width / 2,
|
|
808
835
|
x2: r.value.left + r.value.width / 2,
|
|
@@ -811,79 +838,79 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
811
838
|
stroke: e.value.style.chart.layout.separators.color,
|
|
812
839
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
813
840
|
"stroke-linecap": "round"
|
|
814
|
-
}, null, 8,
|
|
815
|
-
n("g",
|
|
841
|
+
}, null, 8, Pa)) : f("", !0),
|
|
842
|
+
n("g", Na, [
|
|
816
843
|
n("text", {
|
|
817
|
-
x:
|
|
818
|
-
y: r.value.top + (
|
|
819
|
-
"text-anchor": !
|
|
844
|
+
x: R.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) : zt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
845
|
+
y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
846
|
+
"text-anchor": !R.value || a.sign === -1 ? "start" : "end",
|
|
820
847
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
821
848
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
822
849
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
823
|
-
},
|
|
850
|
+
}, h(lt(a.value, a, o, a.sign)), 9, Aa),
|
|
824
851
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
|
|
825
852
|
key: 0,
|
|
826
853
|
"text-anchor": "end",
|
|
827
854
|
x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
828
|
-
y: r.value.top + (
|
|
855
|
+
y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
829
856
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
830
857
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
831
858
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
832
|
-
},
|
|
859
|
+
}, h(a.name), 9, za)) : f("", !0)
|
|
833
860
|
]),
|
|
834
|
-
n("g",
|
|
861
|
+
n("g", Va, [
|
|
835
862
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
836
863
|
key: 0,
|
|
837
|
-
x: e.value.autoSize ? void 0 :
|
|
838
|
-
y:
|
|
864
|
+
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
865
|
+
y: ne(a, o).y,
|
|
839
866
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
840
867
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
841
868
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
842
869
|
"text-anchor": "start"
|
|
843
|
-
},
|
|
870
|
+
}, h(ne(a, o).name), 9, Ia)) : f("", !0),
|
|
844
871
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
845
872
|
key: 1,
|
|
846
|
-
x: e.value.autoSize ? void 0 :
|
|
847
|
-
y:
|
|
873
|
+
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
874
|
+
y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
848
875
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
849
876
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
850
877
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
851
878
|
"text-anchor": "start"
|
|
852
|
-
},
|
|
879
|
+
}, h(lt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Oa)) : f("", !0)
|
|
853
880
|
]),
|
|
854
881
|
n("rect", {
|
|
855
|
-
x:
|
|
856
|
-
y: r.value.top + (
|
|
857
|
-
width:
|
|
858
|
-
height:
|
|
859
|
-
fill:
|
|
860
|
-
onMouseenter: (
|
|
861
|
-
onMouseleave: (
|
|
862
|
-
onClick: (
|
|
863
|
-
}, null, 40,
|
|
882
|
+
x: N.value.x,
|
|
883
|
+
y: r.value.top + (x.value + p.value) * o - x.value / 2,
|
|
884
|
+
width: N.value.width,
|
|
885
|
+
height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
|
|
886
|
+
fill: Ce.value === a.id ? s(Ie)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
887
|
+
onMouseenter: (g) => Ft(a, o),
|
|
888
|
+
onMouseleave: (g) => Ot({ datapoint: a, seriesIndex: o }),
|
|
889
|
+
onClick: (g) => It({ datapoint: a, seriesIndex: o })
|
|
890
|
+
}, null, 40, Fa)
|
|
864
891
|
]))), 256)),
|
|
865
|
-
|
|
892
|
+
_(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
866
893
|
], 512)
|
|
867
|
-
], 14,
|
|
868
|
-
t.$slots.watermark ? (u(), v("div",
|
|
869
|
-
|
|
870
|
-
])) :
|
|
894
|
+
], 14, ma)),
|
|
895
|
+
t.$slots.watermark ? (u(), v("div", Ma, [
|
|
896
|
+
_(t.$slots, "watermark", Q(Z({ isPrinting: s(Ge) || s(He) })), void 0, !0)
|
|
897
|
+
])) : f("", !0),
|
|
871
898
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
|
|
872
899
|
key: 6,
|
|
873
900
|
ref_key: "chartLegend",
|
|
874
|
-
ref:
|
|
901
|
+
ref: be
|
|
875
902
|
}, [
|
|
876
|
-
(u(), X(
|
|
877
|
-
key: `legend_bottom_${
|
|
903
|
+
(u(), X(ct, {
|
|
904
|
+
key: `legend_bottom_${me.value}`,
|
|
878
905
|
legendSet: F.value,
|
|
879
|
-
config:
|
|
880
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
881
|
-
},
|
|
882
|
-
item:
|
|
906
|
+
config: et.value,
|
|
907
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
|
|
908
|
+
}, he({
|
|
909
|
+
item: m(({ legend: a, index: o }) => [
|
|
883
910
|
n("div", {
|
|
884
|
-
onClick: (
|
|
885
|
-
style:
|
|
886
|
-
},
|
|
911
|
+
onClick: (g) => oe(a.id),
|
|
912
|
+
style: c(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
913
|
+
}, h(a.name) + ": " + h(s(pe)(
|
|
887
914
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
888
915
|
a.value,
|
|
889
916
|
s(G)({
|
|
@@ -893,14 +920,14 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
893
920
|
r: e.value.style.chart.legend.roundingValue
|
|
894
921
|
}),
|
|
895
922
|
{ datapoint: a, seriesIndex: o }
|
|
896
|
-
)), 13,
|
|
923
|
+
)), 13, Ba)
|
|
897
924
|
]),
|
|
898
925
|
_: 2
|
|
899
926
|
}, [
|
|
900
927
|
t.$slots.pattern ? {
|
|
901
928
|
name: "legend-pattern",
|
|
902
|
-
fn:
|
|
903
|
-
|
|
929
|
+
fn: m(({ legend: a, index: o }) => [
|
|
930
|
+
J(ht, {
|
|
904
931
|
shape: a.shape,
|
|
905
932
|
radius: 30,
|
|
906
933
|
stroke: "none",
|
|
@@ -911,18 +938,18 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
911
938
|
key: "0"
|
|
912
939
|
} : void 0
|
|
913
940
|
]), 1032, ["legendSet", "config"]))
|
|
914
|
-
], 512)) :
|
|
915
|
-
|
|
941
|
+
], 512)) : f("", !0),
|
|
942
|
+
_(t.$slots, "legend", { legend: F.value }, void 0, !0),
|
|
916
943
|
t.$slots.source ? (u(), v("div", {
|
|
917
944
|
key: 7,
|
|
918
945
|
ref_key: "source",
|
|
919
|
-
ref:
|
|
946
|
+
ref: Be,
|
|
920
947
|
dir: "auto"
|
|
921
948
|
}, [
|
|
922
|
-
|
|
923
|
-
], 512)) :
|
|
924
|
-
|
|
925
|
-
show:
|
|
949
|
+
_(t.$slots, "source", {}, void 0, !0)
|
|
950
|
+
], 512)) : f("", !0),
|
|
951
|
+
J(s(yt), {
|
|
952
|
+
show: k.value.showTooltip && ge.value && A.value.length < b.dataset.length,
|
|
926
953
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
927
954
|
color: e.value.style.chart.tooltip.color,
|
|
928
955
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -932,177 +959,193 @@ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "widt
|
|
|
932
959
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
933
960
|
position: e.value.style.chart.tooltip.position,
|
|
934
961
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
935
|
-
parent:
|
|
936
|
-
content:
|
|
937
|
-
isFullscreen:
|
|
962
|
+
parent: P.value,
|
|
963
|
+
content: ye.value,
|
|
964
|
+
isFullscreen: E.value,
|
|
938
965
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
939
966
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
940
967
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
941
968
|
}, {
|
|
942
|
-
"tooltip-before":
|
|
943
|
-
|
|
969
|
+
"tooltip-before": m(() => [
|
|
970
|
+
_(t.$slots, "tooltip-before", Q(Z({ ...Te.value })), void 0, !0)
|
|
944
971
|
]),
|
|
945
|
-
"tooltip-after":
|
|
946
|
-
|
|
972
|
+
"tooltip-after": m(() => [
|
|
973
|
+
_(t.$slots, "tooltip-after", Q(Z({ ...Te.value })), void 0, !0)
|
|
947
974
|
]),
|
|
948
975
|
_: 3
|
|
949
976
|
}, 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(() => [
|
|
977
|
+
fe.value ? (u(), X(Gt(de.value.component), it({ key: 8 }, de.value.props, {
|
|
978
|
+
ref_key: "tableUnit",
|
|
979
|
+
ref: le,
|
|
980
|
+
onClose: l[5] || (l[5] = (a) => k.value.showTable = !1)
|
|
981
|
+
}), he({
|
|
982
|
+
content: m(() => [
|
|
967
983
|
n("div", {
|
|
968
984
|
ref_key: "tableContainer",
|
|
969
|
-
ref:
|
|
970
|
-
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
985
|
+
ref: Ke,
|
|
986
|
+
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
987
|
+
style: c(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
971
988
|
}, [
|
|
972
|
-
n("div",
|
|
973
|
-
|
|
989
|
+
n("div", Da, [
|
|
990
|
+
e.value.table.useDialog ? f("", !0) : (u(), v("div", {
|
|
991
|
+
key: 0,
|
|
974
992
|
role: "button",
|
|
975
993
|
tabindex: "0",
|
|
976
|
-
style:
|
|
977
|
-
onClick: l[
|
|
978
|
-
onKeypress: l[
|
|
994
|
+
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};`),
|
|
995
|
+
onClick: l[3] || (l[3] = (a) => k.value.showTable = !1),
|
|
996
|
+
onKeypress: l[4] || (l[4] = Ht((a) => k.value.showTable = !1, ["enter"]))
|
|
979
997
|
}, [
|
|
980
|
-
|
|
998
|
+
J(s(Oe), {
|
|
981
999
|
name: "close",
|
|
982
1000
|
stroke: e.value.table.th.color,
|
|
983
1001
|
"stroke-width": 2
|
|
984
1002
|
}, null, 8, ["stroke"])
|
|
985
|
-
], 36),
|
|
1003
|
+
], 36)),
|
|
986
1004
|
n("div", {
|
|
987
1005
|
style: { width: "100%", "container-type": "inline-size" },
|
|
988
|
-
class:
|
|
1006
|
+
class: U({ "vue-ui-responsive": s(Rt) })
|
|
989
1007
|
}, [
|
|
990
|
-
n("table",
|
|
991
|
-
|
|
992
|
-
|
|
1008
|
+
n("table", Ra, [
|
|
1009
|
+
e.value.table.useDialog ? f("", !0) : (u(), v("caption", {
|
|
1010
|
+
key: 0,
|
|
1011
|
+
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
993
1012
|
class: "vue-ui-data-table__caption"
|
|
994
1013
|
}, [
|
|
995
|
-
|
|
996
|
-
e.value.style.chart.title.subtitle.text ? (u(), v("span",
|
|
997
|
-
], 4),
|
|
1014
|
+
vt(h(e.value.style.chart.title.text) + " ", 1),
|
|
1015
|
+
e.value.style.chart.title.subtitle.text ? (u(), v("span", Ea, h(e.value.style.chart.title.subtitle.text), 1)) : f("", !0)
|
|
1016
|
+
], 4)),
|
|
998
1017
|
n("thead", null, [
|
|
999
1018
|
n("tr", {
|
|
1000
1019
|
role: "row",
|
|
1001
|
-
style:
|
|
1020
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1002
1021
|
}, [
|
|
1003
|
-
(u(!0), v(
|
|
1004
|
-
style:
|
|
1022
|
+
(u(!0), v(ee, null, te(z.value.head, (a) => (u(), v("th", {
|
|
1023
|
+
style: c(`outline:${e.value.table.th.outline}`)
|
|
1005
1024
|
}, [
|
|
1006
|
-
n("div",
|
|
1025
|
+
n("div", Ua, h(a), 1)
|
|
1007
1026
|
], 4))), 256))
|
|
1008
1027
|
], 4),
|
|
1009
1028
|
n("tr", null, [
|
|
1010
1029
|
n("th", {
|
|
1011
|
-
style:
|
|
1030
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1012
1031
|
}, null, 4),
|
|
1013
1032
|
n("th", {
|
|
1014
|
-
style:
|
|
1015
|
-
}, "∑ " +
|
|
1033
|
+
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`)
|
|
1034
|
+
}, "∑ " + 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
1035
|
n("th", {
|
|
1017
|
-
style:
|
|
1036
|
+
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
1037
|
}, "100%", 4),
|
|
1019
1038
|
n("th", {
|
|
1020
|
-
style:
|
|
1039
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1021
1040
|
}, null, 4),
|
|
1022
1041
|
n("th", {
|
|
1023
|
-
style:
|
|
1042
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1024
1043
|
}, null, 4),
|
|
1025
1044
|
n("th", {
|
|
1026
|
-
style:
|
|
1045
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1027
1046
|
}, null, 4),
|
|
1028
1047
|
n("th", {
|
|
1029
|
-
style:
|
|
1048
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1030
1049
|
}, null, 4)
|
|
1031
1050
|
])
|
|
1032
1051
|
]),
|
|
1033
1052
|
n("tbody", null, [
|
|
1034
|
-
(u(!0), v(
|
|
1035
|
-
class:
|
|
1036
|
-
style:
|
|
1053
|
+
(u(!0), v(ee, null, te(z.value.body, (a, o) => (u(), v("tr", {
|
|
1054
|
+
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 }),
|
|
1055
|
+
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1037
1056
|
}, [
|
|
1038
1057
|
n("td", {
|
|
1039
1058
|
class: "vue-ui-data-table__tbody__td",
|
|
1040
|
-
style:
|
|
1041
|
-
"data-cell":
|
|
1059
|
+
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1060
|
+
"data-cell": z.value.head[0] ?? ""
|
|
1042
1061
|
}, [
|
|
1043
|
-
n("div",
|
|
1062
|
+
n("div", Wa, [
|
|
1044
1063
|
a.color ? (u(), v("span", {
|
|
1045
1064
|
key: 0,
|
|
1046
|
-
style:
|
|
1047
|
-
}, "⬤", 4)) :
|
|
1048
|
-
n("span", null,
|
|
1065
|
+
style: c(`color:${a.color};margin-right:3px`)
|
|
1066
|
+
}, "⬤", 4)) : f("", !0),
|
|
1067
|
+
n("span", null, h(a.parentName), 1)
|
|
1049
1068
|
])
|
|
1050
|
-
], 12,
|
|
1069
|
+
], 12, Xa),
|
|
1051
1070
|
n("td", {
|
|
1052
1071
|
class: "vue-ui-data-table__tbody__td",
|
|
1053
|
-
style:
|
|
1054
|
-
"data-cell":
|
|
1072
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1073
|
+
"data-cell": z.value.head[1] ?? ""
|
|
1055
1074
|
}, [
|
|
1056
|
-
n("div",
|
|
1057
|
-
], 12,
|
|
1075
|
+
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)
|
|
1076
|
+
], 12, Ga),
|
|
1058
1077
|
n("td", {
|
|
1059
1078
|
class: "vue-ui-data-table__tbody__td",
|
|
1060
|
-
style:
|
|
1061
|
-
"data-cell":
|
|
1079
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1080
|
+
"data-cell": z.value.head[2] ?? ""
|
|
1062
1081
|
}, [
|
|
1063
|
-
n("div",
|
|
1064
|
-
], 12,
|
|
1082
|
+
n("div", qa, h(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1083
|
+
], 12, ja),
|
|
1065
1084
|
n("td", {
|
|
1066
1085
|
class: "vue-ui-data-table__tbody__td",
|
|
1067
|
-
style:
|
|
1068
|
-
"data-cell":
|
|
1086
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1087
|
+
"data-cell": z.value.head[3] ?? ""
|
|
1069
1088
|
}, [
|
|
1070
|
-
n("div",
|
|
1071
|
-
], 12,
|
|
1089
|
+
n("div", Ka, h(a.childName), 1)
|
|
1090
|
+
], 12, Ya),
|
|
1072
1091
|
n("td", {
|
|
1073
1092
|
class: "vue-ui-data-table__tbody__td",
|
|
1074
|
-
style:
|
|
1075
|
-
"data-cell":
|
|
1093
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1094
|
+
"data-cell": z.value.head[4] ?? ""
|
|
1076
1095
|
}, [
|
|
1077
|
-
n("div",
|
|
1078
|
-
], 12,
|
|
1096
|
+
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)
|
|
1097
|
+
], 12, Ja),
|
|
1079
1098
|
n("td", {
|
|
1080
1099
|
class: "vue-ui-data-table__tbody__td",
|
|
1081
|
-
style:
|
|
1082
|
-
"data-cell":
|
|
1100
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1101
|
+
"data-cell": z.value.head[5] ?? ""
|
|
1083
1102
|
}, [
|
|
1084
|
-
n("div",
|
|
1085
|
-
], 12,
|
|
1103
|
+
n("div", el, h(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1104
|
+
], 12, Za),
|
|
1086
1105
|
n("td", {
|
|
1087
1106
|
class: "vue-ui-data-table__tbody__td",
|
|
1088
|
-
style:
|
|
1089
|
-
"data-cell":
|
|
1107
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1108
|
+
"data-cell": z.value.head[6] ?? ""
|
|
1090
1109
|
}, [
|
|
1091
|
-
n("div",
|
|
1092
|
-
], 12,
|
|
1110
|
+
n("div", al, h(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1111
|
+
], 12, tl)
|
|
1093
1112
|
], 6))), 256))
|
|
1094
1113
|
])
|
|
1095
1114
|
])
|
|
1096
1115
|
], 2)
|
|
1097
1116
|
])
|
|
1098
|
-
],
|
|
1117
|
+
], 4)
|
|
1099
1118
|
]),
|
|
1100
|
-
_:
|
|
1101
|
-
},
|
|
1102
|
-
|
|
1103
|
-
|
|
1119
|
+
_: 2
|
|
1120
|
+
}, [
|
|
1121
|
+
e.value.table.useDialog ? {
|
|
1122
|
+
name: "title",
|
|
1123
|
+
fn: m(() => [
|
|
1124
|
+
vt(h(de.value.title), 1)
|
|
1125
|
+
]),
|
|
1126
|
+
key: "0"
|
|
1127
|
+
} : void 0,
|
|
1128
|
+
e.value.table.useDialog ? {
|
|
1129
|
+
name: "actions",
|
|
1130
|
+
fn: m(() => [
|
|
1131
|
+
n("button", {
|
|
1132
|
+
tabindex: "0",
|
|
1133
|
+
class: "vue-ui-user-options-button",
|
|
1134
|
+
onClick: l[2] || (l[2] = (a) => Se(e.value.userOptions.callbacks.csv))
|
|
1135
|
+
}, [
|
|
1136
|
+
J(s(Oe), {
|
|
1137
|
+
name: "excel",
|
|
1138
|
+
stroke: de.value.props.color
|
|
1139
|
+
}, null, 8, ["stroke"])
|
|
1140
|
+
])
|
|
1141
|
+
]),
|
|
1142
|
+
key: "1"
|
|
1143
|
+
} : void 0
|
|
1144
|
+
]), 1040)) : f("", !0),
|
|
1145
|
+
s(Ee) ? (u(), X(ra, { key: 9 })) : f("", !0)
|
|
1146
|
+
], 46, ya));
|
|
1104
1147
|
}
|
|
1105
|
-
},
|
|
1148
|
+
}, ml = /* @__PURE__ */ ga(ll, [["__scopeId", "data-v-36772bc6"]]);
|
|
1106
1149
|
export {
|
|
1107
|
-
|
|
1150
|
+
ml as default
|
|
1108
1151
|
};
|