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