vue-data-ui 3.0.0-next.2 → 3.0.0-next.20

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.
Files changed (98) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-Dck2Ea5K.js → Arrow-BUlbY5qN.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CatHZ1ns.js → BaseDraggableDialog-DdMqvofL.js} +2 -2
  4. package/dist/{BaseIcon-BmZ4MREl.js → BaseIcon-GwmxkCYt.js} +1 -1
  5. package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
  6. package/dist/{ColorPicker-C1MXyD9Q.js → ColorPicker-CWPVu4Mn.js} +2 -2
  7. package/dist/{DataTable-CgL0Rz0x.js → DataTable-DiYlFcoN.js} +2 -2
  8. package/dist/{Legend-CYbP3Kfg.js → Legend-CJH2DwvF.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-CcbcJm_U.js → NonSvgPenAndPaper-kP7w_wnX.js} +3 -3
  10. package/dist/{PackageVersion-CAkNkiIG.js → PackageVersion-C3IgYdy5.js} +1 -1
  11. package/dist/{PenAndPaper-Cx1-5zdD.js → PenAndPaper-DX7Vz7zG.js} +3 -3
  12. package/dist/{Shape-DBXkGxKt.js → Shape-M_osyQRq.js} +1 -1
  13. package/dist/{Slicer-nrMi5hzj.js → Slicer-DSoA99Qi.js} +2 -2
  14. package/dist/{SparkTooltip-fNzL4pIU.js → SparkTooltip-QHzSSaRw.js} +1 -1
  15. package/dist/{Title-pVYRzQXY.js → Title-BZzqwhfm.js} +1 -1
  16. package/dist/{Tooltip-NwATo4ZJ.js → Tooltip-CM7R4xmg.js} +1 -1
  17. package/dist/{UserOptions-DAsRxxrf.js → UserOptions-YnajLuA-.js} +2 -2
  18. package/dist/{dom-to-png-BF_4H_6u.js → dom-to-png-CwcljPsH.js} +1 -1
  19. package/dist/{img-ku4zevVD.js → img-BTcfCQH5.js} +1 -1
  20. package/dist/{index-BzfnuLnw.js → index-BAN_h_nZ.js} +799 -735
  21. package/dist/{pdf-CguiIsUc.js → pdf-BpoXwx5J.js} +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/types/vue-data-ui.d.cts +113 -15
  24. package/dist/types/vue-data-ui.d.ts +113 -15
  25. package/dist/{useNestedProp-DorElw91.js → useNestedProp-BV-XJ1SY.js} +1 -1
  26. package/dist/{usePrinter-C9qkgv0r.js → usePrinter-UlRss_LR.js} +2 -2
  27. package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
  28. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
  29. package/dist/{vue-data-ui-DQef_oFO.js → vue-data-ui-djYxJCHp.js} +80 -74
  30. package/dist/vue-data-ui.js +54 -52
  31. package/dist/{vue-ui-3d-bar-DPSamIA-.js → vue-ui-3d-bar-C_4BSVNz.js} +6 -6
  32. package/dist/{vue-ui-accordion-DgZK-qDz.js → vue-ui-accordion-7QHuQc6-.js} +3 -3
  33. package/dist/{vue-ui-age-pyramid-DVeGKvf9.js → vue-ui-age-pyramid-Bk6krIzr.js} +6 -6
  34. package/dist/{vue-ui-annotator-6ikkK-FK.js → vue-ui-annotator-CdX7H6hn.js} +2 -2
  35. package/dist/{vue-ui-bullet-Bg4hfFk2.js → vue-ui-bullet-DwyS1JQX.js} +7 -7
  36. package/dist/vue-ui-candlestick-DX_YX-vm.js +973 -0
  37. package/dist/{vue-ui-carousel-table-DitKhrFT.js → vue-ui-carousel-table-B1cAxuTm.js} +4 -4
  38. package/dist/{vue-ui-chestnut-D8wGAZod.js → vue-ui-chestnut-DpKv0sh4.js} +5 -5
  39. package/dist/{vue-ui-chord-C-uTVCDP.js → vue-ui-chord-CiPJPGiG.js} +8 -8
  40. package/dist/{vue-ui-circle-pack-CPy6xcxv.js → vue-ui-circle-pack-Bjkt4LB5.js} +6 -6
  41. package/dist/{vue-ui-cursor-Dd7vUd0q.js → vue-ui-cursor-D84ggJvK.js} +2 -2
  42. package/dist/{vue-ui-dashboard-CKurbu8M.js → vue-ui-dashboard-C_yR4UTa.js} +62 -62
  43. package/dist/{vue-ui-digits-DfdZI11G.js → vue-ui-digits-BqEMiolR.js} +2 -2
  44. package/dist/{vue-ui-donut-tECBFvud.js → vue-ui-donut-SC_gy9DF.js} +416 -401
  45. package/dist/{vue-ui-donut-evolution-CKbLO8yR.js → vue-ui-donut-evolution-NkWihGjp.js} +9 -9
  46. package/dist/{vue-ui-dumbbell-DI5Lj3r_.js → vue-ui-dumbbell-tCZEa_qU.js} +7 -7
  47. package/dist/{vue-ui-flow-CjU48s9z.js → vue-ui-flow-BsnqODVX.js} +7 -7
  48. package/dist/{vue-ui-funnel-DM_5vHZ4.js → vue-ui-funnel-rjuN7SMb.js} +6 -6
  49. package/dist/{vue-ui-galaxy-ocvZgZJx.js → vue-ui-galaxy-maMA25Pj.js} +5 -5
  50. package/dist/{vue-ui-gauge-DajNoY-D.js → vue-ui-gauge-DBk_QEqG.js} +6 -6
  51. package/dist/{vue-ui-gizmo-DTnzeQbm.js → vue-ui-gizmo-BbGKsycH.js} +3 -3
  52. package/dist/{vue-ui-heatmap-CfBS8jQe.js → vue-ui-heatmap-J0HrOp33.js} +7 -7
  53. package/dist/{vue-ui-history-plot-BuOPWQoP.js → vue-ui-history-plot-C1WCPCFB.js} +7 -7
  54. package/dist/{vue-ui-kpi-DLGHOIRj.js → vue-ui-kpi-DXP7mJmU.js} +3 -3
  55. package/dist/{vue-ui-mini-loader-CHAHi4c9.js → vue-ui-mini-loader-BDCUhVXV.js} +2 -2
  56. package/dist/{vue-ui-molecule-R5-oDFeW.js → vue-ui-molecule-BK4mr3zK.js} +5 -5
  57. package/dist/{vue-ui-mood-radar-Ddf2gaES.js → vue-ui-mood-radar-CidQ7htJ.js} +7 -7
  58. package/dist/vue-ui-nested-donuts-CNNuwHVy.js +1282 -0
  59. package/dist/{vue-ui-onion-D2n4zUkV.js → vue-ui-onion-BKzAnhfX.js} +7 -7
  60. package/dist/{vue-ui-parallel-coordinate-plot-CNWQqlxf.js → vue-ui-parallel-coordinate-plot-BVxjoZbs.js} +8 -8
  61. package/dist/{vue-ui-quadrant-CxNj2FEx.js → vue-ui-quadrant-DMTwRxJO.js} +8 -8
  62. package/dist/{vue-ui-quick-chart-Bm_VmhJR.js → vue-ui-quick-chart-Bh7Uzdkl.js} +7 -7
  63. package/dist/{vue-ui-radar-DSYMQJ6K.js → vue-ui-radar-CWneFyvx.js} +7 -7
  64. package/dist/{vue-ui-rating-BiQpwXnc.js → vue-ui-rating-Cpj3lgkf.js} +2 -2
  65. package/dist/{vue-ui-relation-circle-Cdxe78Bm.js → vue-ui-relation-circle-BbLMXzQC.js} +6 -6
  66. package/dist/{vue-ui-ridgeline-DpeM2hRi.js → vue-ui-ridgeline-DQOxy2Wd.js} +9 -9
  67. package/dist/{vue-ui-rings-BenmQHKv.js → vue-ui-rings-DQ0sF_fU.js} +8 -8
  68. package/dist/{vue-ui-scatter-mDMY1H6U.js → vue-ui-scatter-BtdXQwop.js} +8 -8
  69. package/dist/{vue-ui-skeleton-Ch_XkFuP.js → vue-ui-skeleton-B7V8lFmX.js} +3 -3
  70. package/dist/{vue-ui-smiley-DTig5lTU.js → vue-ui-smiley-ZOCueWUm.js} +2 -2
  71. package/dist/{vue-ui-spark-trend-BkDsp8E0.js → vue-ui-spark-trend-DFYHQJ_o.js} +3 -3
  72. package/dist/{vue-ui-sparkbar-CgqoyBOm.js → vue-ui-sparkbar-DDSLizGP.js} +3 -3
  73. package/dist/{vue-ui-sparkgauge-B4jR_Y62.js → vue-ui-sparkgauge-B7WUdl3j.js} +3 -3
  74. package/dist/{vue-ui-sparkhistogram-DfxjglLy.js → vue-ui-sparkhistogram-D8QDG-TS.js} +4 -4
  75. package/dist/{vue-ui-sparkline-M3QR8xJE.js → vue-ui-sparkline-DeU8AfL8.js} +3 -3
  76. package/dist/{vue-ui-sparkstackbar-B2Ls-Mb8.js → vue-ui-sparkstackbar-ChW_4elU.js} +3 -3
  77. package/dist/vue-ui-stackbar-DHgP90mv.js +1354 -0
  78. package/dist/{vue-ui-strip-plot-B_ZLbu2D.js → vue-ui-strip-plot-DcUh22d6.js} +7 -7
  79. package/dist/{vue-ui-table-BhymhDOh.js → vue-ui-table-B1cY8Rpp.js} +3 -3
  80. package/dist/{vue-ui-table-heatmap-DokRh4dS.js → vue-ui-table-heatmap-BvPtl3oA.js} +5 -5
  81. package/dist/{vue-ui-table-sparkline-DxBZGKZJ.js → vue-ui-table-sparkline-DGDQjRme.js} +4 -4
  82. package/dist/{vue-ui-thermometer-e2L6IdF-.js → vue-ui-thermometer-Dw3WZJ9y.js} +6 -6
  83. package/dist/{vue-ui-timer-BG2EwK3o.js → vue-ui-timer-InBkyjSR.js} +5 -5
  84. package/dist/{vue-ui-tiremarks-nzQH7woJ.js → vue-ui-tiremarks-B2K05981.js} +6 -6
  85. package/dist/{vue-ui-treemap-CZxyi6fl.js → vue-ui-treemap-CH0WwNHy.js} +8 -8
  86. package/dist/vue-ui-vertical-bar-Hc_kP36D.js +1106 -0
  87. package/dist/{vue-ui-waffle-D399D4UE.js → vue-ui-waffle-BZGzaNiM.js} +8 -8
  88. package/dist/{vue-ui-wheel-DtcwtHzJ.js → vue-ui-wheel-QBwIVAdZ.js} +6 -6
  89. package/dist/{vue-ui-word-cloud-CTDceQsf.js → vue-ui-word-cloud-Blri-0nB.js} +6 -6
  90. package/dist/{vue-ui-world-BjNSbqMZ.js → vue-ui-world-Ug4iiW5F.js} +6 -6
  91. package/dist/vue-ui-xy-DGdMvSQ8.js +2997 -0
  92. package/dist/{vue-ui-xy-canvas-BKAowbe0.js → vue-ui-xy-canvas-D_yxXjPt.js} +9 -9
  93. package/package.json +1 -1
  94. package/dist/vue-ui-candlestick-Bi59FGXn.js +0 -873
  95. package/dist/vue-ui-nested-donuts-CksklV83.js +0 -1177
  96. package/dist/vue-ui-stackbar-DIHkn6__.js +0 -1207
  97. package/dist/vue-ui-vertical-bar-DahdX1Sn.js +0 -980
  98. package/dist/vue-ui-xy-BkTP-JpK.js +0 -2958
@@ -0,0 +1,1106 @@
1
+ import { useCssVars as Ft, defineAsyncComponent as ae, useSlots as Bt, computed as b, ref as i, toRefs as Rt, watch as nt, shallowRef as ut, onMounted as Te, nextTick as ve, onBeforeUnmount as Et, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as h, normalizeClass as D, createBlock as X, createCommentVNode as y, renderSlot as x, createVNode as le, createSlots as Se, withCtx as w, normalizeProps as Y, guardReactiveProps as K, createElementVNode as n, toDisplayString as p, Fragment as J, renderList as Q, mergeProps as Dt, withKeys as Xt, createTextVNode as Ut } from "vue";
2
+ import { u as Gt, c as Wt, A as Ht, t as jt, p as U, a as qt, C as Le, b as Yt, v as L, o as Pe, e as oe, d as Ne, i as de, f as G, X as Kt, s as Ae, w as Jt, q as Qt, r as Zt, x as ea, y as ta } from "./index-BAN_h_nZ.js";
3
+ import { t as aa, u as la } from "./useResponsive-DfdjqQps.js";
4
+ import { u as st } from "./useNestedProp-BV-XJ1SY.js";
5
+ import { u as oa } from "./usePrinter-UlRss_LR.js";
6
+ import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ua } from "./useChartAccessibility-9icAAmYg.js";
8
+ import sa from "./vue-ui-accordion-7QHuQc6-.js";
9
+ import rt from "./Legend-CJH2DwvF.js";
10
+ import ra from "./Title-BZzqwhfm.js";
11
+ import { _ as it } from "./Shape-M_osyQRq.js";
12
+ import ia from "./img-BTcfCQH5.js";
13
+ import { u as va, B as da } from "./BaseScanner-DIK2NTdp.js";
14
+ import { _ as ca } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const ha = ["id"], pa = ["onClick"], fa = ["xmlns", "viewBox"], ya = ["x", "width", "height"], ga = ["id"], ba = ["stop-color"], ma = ["stop-color"], ka = { key: 1 }, xa = ["x", "y", "width", "height", "fill", "rx"], _a = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], wa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { class: "vue-ui-horizontal-bar-child-label" }, Sa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], La = ["x", "y", "font-size", "fill", "font-weight"], Pa = { class: "vue-ui-horizontal-bar-parent-label" }, Na = ["x", "y", "font-size", "fill", "font-weight"], Aa = ["x", "y", "font-size", "fill", "font-weight"], za = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Va = {
16
+ key: 5,
17
+ class: "vue-data-ui-watermark"
18
+ }, Ia = ["onClick"], Oa = { style: "width:100%;padding-top: 36px;position:relative" }, Ma = { class: "vue-ui-data-table" }, Fa = { key: 0 }, Ba = { style: { width: "100%" } }, Ra = ["data-cell"], Ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Da = ["data-cell"], Xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ua = ["data-cell"], Ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wa = ["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 = {
19
+ __name: "vue-ui-vertical-bar",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectLegend"],
35
+ setup(vt, { expose: dt, emit: ct }) {
36
+ Ft((t) => ({
37
+ a8e45186: t.tdo
38
+ }));
39
+ const ht = ae(() => import("./BaseIcon-GwmxkCYt.js")), pt = ae(() => import("./PackageVersion-C3IgYdy5.js")), ft = ae(() => import("./PenAndPaper-DX7Vz7zG.js")), yt = ae(() => import("./Tooltip-CM7R4xmg.js")), gt = ae(() => import("./UserOptions-YnajLuA-.js")), { vue_ui_vertical_bar: bt } = Gt(), mt = Bt(), g = vt, ce = b({
40
+ get() {
41
+ return !!g.dataset && g.dataset.length;
42
+ },
43
+ set(t) {
44
+ return t;
45
+ }
46
+ }), S = i(Wt()), kt = i(null), he = i(!1), pe = i(""), Z = i(0), xt = i(null), ze = i(0), z = i(null), Ve = i(null), fe = i(null), Ie = i(null), Oe = i(null), Me = i(0), ye = i(0), ne = i(null), _t = ct, e = i(xe()), wt = b(() => [
47
+ { name: "", value: 6, color: "#d9d9d9" },
48
+ { name: "", value: 5, color: "#d9d9d9" },
49
+ { name: "", value: 4, color: "#d9d9d9" },
50
+ { name: "", value: 3, color: "#d9d9d9" },
51
+ { name: "", value: 2, color: "#d9d9d9" },
52
+ { name: "", value: 1, color: "#d9d9d9" }
53
+ ]), { loading: ge, FINAL_DATASET: be, manualLoading: me } = va({
54
+ ...Rt(g),
55
+ FINAL_CONFIG: e,
56
+ prepareConfig: xe,
57
+ callback: () => {
58
+ Promise.resolve().then(async () => {
59
+ H(), await O();
60
+ });
61
+ },
62
+ skeletonDataset: wt.value,
63
+ skeletonConfig: Ht({
64
+ defaultConfig: e.value,
65
+ userConfig: {
66
+ useCssAnimation: !1,
67
+ userOptions: { show: !1 },
68
+ table: { show: !1 },
69
+ style: {
70
+ chart: {
71
+ backgroundColor: "#99999930",
72
+ layout: {
73
+ bars: {
74
+ offsetX: 110,
75
+ dataLabels: {
76
+ color: "transparent",
77
+ value: {
78
+ prefix: "",
79
+ suffix: "",
80
+ formatter: null
81
+ }
82
+ },
83
+ nameLabels: {
84
+ color: "transparent"
85
+ }
86
+ },
87
+ separators: {
88
+ color: "#7A7A7A"
89
+ }
90
+ },
91
+ legend: {
92
+ show: !0,
93
+ backgroundColor: "transparent",
94
+ color: "transparent",
95
+ prefix: "",
96
+ suffix: "",
97
+ formatter: null
98
+ },
99
+ title: {
100
+ color: "#1A1A1A",
101
+ subtitle: {
102
+ color: "#5A5A5A"
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ })
109
+ }), { userOptionsVisible: ke, setUserOptionsVisibility: Fe, keepUserOptionState: Be } = na({ config: e.value }), { svgRef: Re } = ua({ config: e.value.style.chart.title });
110
+ function xe() {
111
+ const t = st({
112
+ userConfig: g.config,
113
+ defaultConfig: bt
114
+ });
115
+ let l = {};
116
+ return t.theme ? l = {
117
+ ...st({
118
+ userConfig: qt.vue_ui_vertical_bar[t.theme] || g.config,
119
+ defaultConfig: t
120
+ }),
121
+ customPalette: jt[t.theme] || U
122
+ } : l = t, g.config && Le(g.config, "events.datapointEnter") ? l.events.datapointEnter = g.config.events.datapointEnter : l.events.datapointEnter = null, g.config && Le(g.config, "events.datapointLeave") ? l.events.datapointLeave = g.config.events.datapointLeave : l.events.datapointLeave = null, g.config && Le(g.config, "events.datapointClick") ? l.events.datapointClick = g.config.events.datapointClick : l.events.datapointClick = null, l;
123
+ }
124
+ nt(() => g.config, (t) => {
125
+ ge.value || (e.value = xe()), ke.value = !e.value.userOptions.showOnChartHover, qe(), Me.value += 1, ye.value += 1, c.value = e.value.style.chart.layout.bars.height, m.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;
126
+ }, { deep: !0 }), nt(() => g.dataset, (t) => {
127
+ Array.isArray(t) && t.length > 0 && (me.value = !1), H();
128
+ }, { deep: !0 });
129
+ const { isPrinting: Ee, isImaging: De, generatePdf: Xe, generateImage: Ue } = oa({
130
+ elementId: `vue-ui-vertical-bar_${S.value}`,
131
+ fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
132
+ options: e.value.userOptions.print
133
+ }), $t = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = b(() => Yt(e.value.customPalette)), We = i(null), He = i(!1), Ct = b(() => e.value.table.responsiveBreakpoint), I = ut(null), W = ut(null), ue = i("0 0 10 10"), P = b(() => {
134
+ const [t, l, a, o] = ue.value.split(" ").map(Number);
135
+ return { x: t, y: l, width: a, height: o };
136
+ });
137
+ Te(async () => {
138
+ await ve(), qe(), O();
139
+ });
140
+ async function O() {
141
+ if (ue.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize) return;
142
+ const t = ne.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = ne.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
143
+ if (t.length) {
144
+ const f = Math.max(...Array.from(t).flatMap((d) => {
145
+ const k = d.querySelectorAll("text");
146
+ return k.length ? Array.from(k).map((q) => q.getBBox().width) : 0;
147
+ })), _ = Math.max(...Array.from(l).flatMap((d) => {
148
+ const k = d.querySelectorAll("text");
149
+ return k.length ? Array.from(k).map((q) => q.getBBox().width) : 0;
150
+ }));
151
+ Array.from(t).forEach((d) => {
152
+ const k = d.querySelectorAll("text");
153
+ Array.from(k).forEach(async (q) => {
154
+ q.setAttribute("x", 0), q.setAttribute("x", L(-f - _));
155
+ });
156
+ });
157
+ }
158
+ await ve();
159
+ const a = ne.value.getBBox(), o = e.value.style.chart.layout.bars.dataLabels.offsetX;
160
+ ue.value = [
161
+ a.x + -o,
162
+ 0,
163
+ a.width + o * 2,
164
+ r.value.fullHeight
165
+ ].join(" ");
166
+ }
167
+ let je;
168
+ Te(() => {
169
+ z.value && (je = new ResizeObserver((t) => {
170
+ for (const l of t) {
171
+ const { width: a, height: o } = l.contentRect;
172
+ if (a > 0 && o > 0) {
173
+ Promise.resolve().then(async () => {
174
+ H(), await O();
175
+ });
176
+ break;
177
+ }
178
+ }
179
+ }), je.observe(z.value.parentElement));
180
+ });
181
+ const se = b(() => !!e.value.debug), _e = i(0);
182
+ function qe() {
183
+ if (Pe(g.dataset) && (oe({
184
+ componentName: "VueUiVerticalBar",
185
+ type: "dataset",
186
+ debug: se.value
187
+ }), ce.value = !1, me.value = !0), Z.value = be.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Tt(), Pe(g.dataset) || (me.value = e.value.loading), e.value.responsive) {
188
+ const t = aa(() => {
189
+ const { width: l, height: a } = la({
190
+ chart: z.value,
191
+ title: e.value.style.chart.title.text ? Ve.value : null,
192
+ legend: e.value.style.chart.legend.show ? fe.value : null,
193
+ source: Ie.value,
194
+ noTitle: Oe.value
195
+ });
196
+ _e.value = a / 3, requestAnimationFrame(async () => {
197
+ Je.value = l;
198
+ const o = m.value * (Z.value - 1);
199
+ c.value = (a - o) / Z.value, await ve(), O();
200
+ });
201
+ });
202
+ I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(t), W.value = z.value.parentNode, I.value.observe(W.value), e.value.autoSize && O();
203
+ }
204
+ }
205
+ Et(() => {
206
+ I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
207
+ });
208
+ function Tt() {
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({
217
+ showTable: e.value.table.show,
218
+ sortDesc: e.value.style.chart.layout.bars.sort === "desc",
219
+ showTooltip: e.value.style.chart.tooltip.show
220
+ }), Ye = b(() => $.value.sortDesc), M = b(() => (be.value.forEach((t, l) => {
221
+ !t.value && !t.children && oe({
222
+ componentName: "VueUiVerticalBar",
223
+ type: "datasetAttributeEmpty",
224
+ property: `value (index ${l})`,
225
+ debug: se.value
226
+ }), t.children && (Pe(t.children) ? oe({
227
+ componentName: "VueUiVerticalBar",
228
+ type: "datasetAttributeEmpty",
229
+ property: `children (index ${l})`,
230
+ debug: se.value
231
+ }) : t.children.forEach((a, o) => {
232
+ [null, void 0].includes(a.name) && oe({
233
+ componentName: "VueUiVerticalBar",
234
+ type: "datasetSerieAttribute",
235
+ property: "name",
236
+ key: "children",
237
+ index: o,
238
+ debug: se.value
239
+ });
240
+ }));
241
+ }), be.value.map((t, l) => {
242
+ const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, f = L(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, k) => d + k, 0) : 0), _ = f >= 0 ? 1 : -1;
243
+ return {
244
+ ...t,
245
+ id: a,
246
+ absoluteIndex: l,
247
+ shape: "square",
248
+ opacity: N.value.includes(a) ? 0.5 : 1,
249
+ value: Math.abs(f),
250
+ sign: _,
251
+ hasChildren: o,
252
+ isChild: !1,
253
+ segregate: () => ee(a),
254
+ isSegregated: N.value.includes(a),
255
+ color: Ne(t.color) || Ge.value[l] || U[l] || U[l % U.length],
256
+ children: !t.children || !t.children.length ? [] : t.children.toSorted(re.value ? () => 0 : (d, k) => Ye.value ? k.value - d.value : d.value - k.value).map((d, k) => ({
257
+ ...d,
258
+ value: L(Math.abs(d.value)),
259
+ absoluteIndex: l,
260
+ sign: d.value >= 0 ? 1 : -1,
261
+ isChild: !0,
262
+ parentId: a,
263
+ parentName: t.name,
264
+ parentValue: f,
265
+ parentSign: _,
266
+ id: `vertical_child_${l}_${k}_${S.value}`,
267
+ childIndex: k,
268
+ color: Ne(d.color) || Ne(t.color) || Ge.value[l] || U[l] || U[l % U.length]
269
+ })).map((d, k) => ({
270
+ ...d,
271
+ isFirstChild: k === 0,
272
+ isLastChild: k === t.children.length - 1
273
+ }))
274
+ };
275
+ }).toSorted(re.value ? () => 0 : (t, l) => Ye.value ? l.value - t.value : t.value - l.value))), Ke = b(() => ({
276
+ cy: "vertical-bar-div-legend",
277
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
278
+ color: e.value.style.chart.legend.color,
279
+ fontSize: e.value.style.chart.legend.fontSize,
280
+ paddingBottom: 12,
281
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
282
+ })), c = i(e.value.style.chart.layout.bars.height), m = i(e.value.style.chart.layout.bars.gap), St = b(() => (c.value + m.value) * Z.value), Je = i(512), C = b(() => ({
283
+ width: Je.value,
284
+ height: St.value,
285
+ padding: {
286
+ top: 12,
287
+ left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
288
+ right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
289
+ bottom: 12
290
+ }
291
+ })), r = b(() => ({
292
+ fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
293
+ top: C.value.padding.top,
294
+ left: C.value.padding.left,
295
+ right: C.value.width - C.value.padding.right,
296
+ bottom: C.value.padding.top + C.value.height,
297
+ width: C.value.width - (C.value.padding.left + C.value.padding.right)
298
+ }));
299
+ async function H() {
300
+ Z.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
+ }
302
+ const N = i([]);
303
+ async function ee(t) {
304
+ if (N.value.includes(t))
305
+ N.value = N.value.filter((l) => l !== t);
306
+ else {
307
+ if (N.value.length === M.value.length - 1) return;
308
+ N.value.push(t);
309
+ }
310
+ H(), await ve(), e.value.autoSize && O(), _t("selectLegend", B.value);
311
+ }
312
+ const B = b(() => M.value.filter((t) => !N.value.includes(t.id))), V = b(() => B.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
313
+ function Qe(t, l = !1, a = 0) {
314
+ return l ? G({
315
+ v: L(Math.abs(t) / V.value * 100),
316
+ s: "%",
317
+ r: a
318
+ }) : Math.abs(t) / V.value;
319
+ }
320
+ const R = b(() => B.value.flatMap((t) => t.hasChildren ? t.children : t)), E = b(() => R.value.map((t) => t.sign).includes(-1)), Lt = b(() => Math.max(...B.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
321
+ function T(t) {
322
+ const l = t / Lt.value;
323
+ return r.value.width / (E.value ? 2 : 1) * l;
324
+ }
325
+ function Pt(t) {
326
+ return T(t) + r.value.left;
327
+ }
328
+ function te(t, l) {
329
+ const a = B.value.find((_) => _.id === t.parentId), o = r.value.top + (m.value + c.value) * l, f = a.children.length * (m.value + c.value);
330
+ return {
331
+ y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
332
+ name: a.name,
333
+ value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
334
+ percentageToTotal: isNaN(a.value / V.value) ? "" : Qe(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
335
+ sign: a.sign
336
+ };
337
+ }
338
+ function Nt() {
339
+ return B.value;
340
+ }
341
+ const we = i(null), $e = i(null);
342
+ function At({ datapoint: t, seriesIndex: l }) {
343
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
344
+ }
345
+ function zt({ datapoint: t, seriesIndex: l }) {
346
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), xt.value = null, he.value = !1, we.value = null;
347
+ }
348
+ function Vt(t, l) {
349
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), $e.value = {
350
+ datapoint: t,
351
+ seriesIndex: l,
352
+ series: M.value,
353
+ config: e.value
354
+ }, he.value = !0, we.value = t.id;
355
+ let a = "";
356
+ const o = t.isChild ? t.parentName : t.name, f = t.isChild ? t.name : "", _ = e.value.style.chart.tooltip.customFormat;
357
+ ea(_) && ta(() => _({
358
+ datapoint: t,
359
+ series: M.value,
360
+ config: e.value,
361
+ seriesIndex: l
362
+ })) ? pe.value = _({
363
+ datapoint: t,
364
+ series: M.value,
365
+ config: e.value,
366
+ seriesIndex: l
367
+ }) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
368
+ <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${mt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
369
+ ${f ? `<div>${f}</div>` : ""}
370
+ </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${de(
371
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
372
+ t.sign === 1 ? t.value : -t.value,
373
+ G({
374
+ p: e.value.style.chart.tooltip.prefix,
375
+ v: t.sign === 1 ? t.value : -t.value,
376
+ s: e.value.style.chart.tooltip.suffix,
377
+ r: e.value.style.chart.tooltip.roundingValue
378
+ }),
379
+ { datapoint: t, seriesIndex: l }
380
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${G({
381
+ v: Math.abs(t.value) / V.value * 100,
382
+ s: "%",
383
+ r: e.value.style.chart.tooltip.roundingPercentage
384
+ })}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${G({
385
+ v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
386
+ s: "%",
387
+ r: e.value.style.chart.tooltip.roundingPercentage
388
+ })}</b></div>`)), pe.value = `<div style="text-align:left">${a}</div>`);
389
+ }
390
+ function Ze(t, l, a, o) {
391
+ if (!e.value.style.chart.layout.bars.dataLabels.value.show)
392
+ return "";
393
+ const f = de(
394
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
395
+ L(o === -1 && t >= 0 ? -t : t),
396
+ G({
397
+ p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
398
+ v: L(o === -1 && t >= 0 ? -t : t),
399
+ s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
400
+ r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
401
+ }),
402
+ { datapoint: l, seriesIndex: a }
403
+ ), _ = `(${Qe(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
404
+ return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${_}` : ""}`;
405
+ }
406
+ const A = b(() => {
407
+ const t = [
408
+ e.value.translations.parentName,
409
+ e.value.translations.value,
410
+ e.value.translations.percentageToTotal,
411
+ e.value.translations.childName,
412
+ e.value.translations.value,
413
+ e.value.translations.percentageToSerie,
414
+ e.value.translations.percentageToTotal
415
+ ], l = R.value.map((a) => a.isChild ? a.isFirstChild ? {
416
+ color: a.color,
417
+ parentName: a.parentName,
418
+ parentValue: a.parentValue,
419
+ percentageToTotal: a.parentValue / V.value,
420
+ childName: a.name,
421
+ childValue: a.sign === 1 ? a.value : -a.value,
422
+ childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
423
+ childPercentageToTotal: Math.abs(a.value) / V.value
424
+ } : {
425
+ color: "",
426
+ parentName: "",
427
+ parentValue: "",
428
+ percentageToTotal: "",
429
+ childName: a.name,
430
+ childValue: a.sign === 1 ? a.value : -a.value,
431
+ childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
432
+ childPercentageToTotal: Math.abs(a.value) / V.value
433
+ } : {
434
+ color: a.color,
435
+ parentName: a.name,
436
+ parentValue: a.sign === 1 ? a.value : -a.value,
437
+ percentageToTotal: Math.abs(a.value) / V.value,
438
+ childName: "",
439
+ childValue: "",
440
+ childPercentageToParent: "",
441
+ childPercentageToTotal: ""
442
+ });
443
+ return { head: t, body: l };
444
+ });
445
+ function et(t = null) {
446
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = A.value.head, o = A.value.body.map((d) => [
447
+ d.parentName,
448
+ d.parentValue,
449
+ d.percentageToTotal,
450
+ d.childName,
451
+ d.childValue,
452
+ d.childPercentageToParent,
453
+ d.childPercentageToTotal
454
+ ]), f = l.concat([a]).concat(o), _ = Qt(f);
455
+ t ? t(_) : Zt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
456
+ }
457
+ const j = i(!1);
458
+ function tt(t) {
459
+ j.value = t, ze.value += 1;
460
+ }
461
+ function at() {
462
+ $.value.showTable = !$.value.showTable;
463
+ }
464
+ const It = i({
465
+ none: 0,
466
+ asc: 1,
467
+ desc: 2
468
+ }), F = i(0), re = i(!1);
469
+ Te(() => {
470
+ ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || oe({
471
+ componentName: "VueUiVerticalBar",
472
+ type: "attributeWrongValue",
473
+ property: "style.chart.layout.bars.sort",
474
+ key: e.value.style.chart.layout.bars.sort
475
+ }), F.value = It.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = F.value === 2, re.value = F.value === 0;
476
+ });
477
+ function Ot() {
478
+ F.value += 1, F.value > 2 && (F.value = 0);
479
+ }
480
+ function lt() {
481
+ Ot(), $.value.sortDesc = F.value === 2, re.value = F.value === 0, H();
482
+ }
483
+ function ot() {
484
+ $.value.showTooltip = !$.value.showTooltip;
485
+ }
486
+ const ie = i(!1);
487
+ function Ce() {
488
+ ie.value = !ie.value;
489
+ }
490
+ async function Mt({ scale: t = 2 } = {}) {
491
+ if (!z.value) return;
492
+ const { width: l, height: a } = z.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: _ } = await ia({ domElement: z.value, base64: !0, img: !0, scale: t });
493
+ return {
494
+ imageUri: f,
495
+ base64: _,
496
+ title: e.value.style.chart.title.text,
497
+ width: l,
498
+ height: a,
499
+ aspectRatio: o
500
+ };
501
+ }
502
+ return dt({
503
+ autoSize: O,
504
+ // v3
505
+ getData: Nt,
506
+ getImage: Mt,
507
+ recalculateHeight: H,
508
+ generatePdf: Xe,
509
+ generateCsv: et,
510
+ generateImage: Ue,
511
+ toggleTable: at,
512
+ toggleSort: lt,
513
+ toggleTooltip: ot,
514
+ toggleAnnotator: Ce,
515
+ toggleFullscreen: tt
516
+ }), (t, l) => (u(), v("div", {
517
+ class: D(`vue-ui-vertical-bar ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
518
+ ref_key: "verticalBarChart",
519
+ ref: z,
520
+ id: `vue-ui-vertical-bar_${S.value}`,
521
+ style: h(`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%" : ""}`),
522
+ onMouseenter: l[4] || (l[4] = () => s(Fe)(!0)),
523
+ onMouseleave: l[5] || (l[5] = () => s(Fe)(!1))
524
+ }, [
525
+ e.value.userOptions.buttons.annotator ? (u(), X(s(ft), {
526
+ key: 0,
527
+ svgRef: s(Re),
528
+ backgroundColor: e.value.style.chart.backgroundColor,
529
+ color: e.value.style.chart.color,
530
+ active: ie.value,
531
+ onClose: Ce
532
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
533
+ $t.value ? (u(), v("div", {
534
+ key: 1,
535
+ ref_key: "noTitle",
536
+ ref: Oe,
537
+ class: "vue-data-ui-no-title-space",
538
+ style: "height:36px; width: 100%;background:transparent"
539
+ }, null, 512)) : y("", !0),
540
+ e.value.style.chart.title.text ? (u(), v("div", {
541
+ key: 2,
542
+ ref_key: "chartTitle",
543
+ ref: Ve,
544
+ style: "width:100%;background:transparent;padding-bottom:12px"
545
+ }, [
546
+ (u(), X(ra, {
547
+ key: `title_${Me.value}`,
548
+ config: {
549
+ title: {
550
+ cy: "vertical-bar-div-title",
551
+ ...e.value.style.chart.title
552
+ },
553
+ subtitle: {
554
+ cy: "vertical-bar-div-subtitle",
555
+ ...e.value.style.chart.title.subtitle
556
+ }
557
+ }
558
+ }, null, 8, ["config"]))
559
+ ], 512)) : y("", !0),
560
+ e.value.userOptions.show && ce.value && (s(Be) || s(ke)) ? (u(), X(s(gt), {
561
+ ref_key: "details",
562
+ ref: kt,
563
+ key: `user_options_${ze.value}`,
564
+ backgroundColor: e.value.style.chart.backgroundColor,
565
+ color: e.value.style.chart.color,
566
+ isImaging: s(De),
567
+ isPrinting: s(Ee),
568
+ uid: S.value,
569
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
570
+ hasPdf: e.value.userOptions.buttons.pdf,
571
+ hasImg: e.value.userOptions.buttons.img,
572
+ hasXls: e.value.userOptions.buttons.csv,
573
+ hasTable: e.value.userOptions.buttons.table,
574
+ hasSort: e.value.userOptions.buttons.sort,
575
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
576
+ isFullscreen: j.value,
577
+ isTooltip: $.value.showTooltip,
578
+ titles: { ...e.value.userOptions.buttonTitles },
579
+ chartElement: z.value,
580
+ position: e.value.userOptions.position,
581
+ hasAnnotator: e.value.userOptions.buttons.annotator,
582
+ isAnnotation: ie.value,
583
+ callbacks: e.value.userOptions.callbacks,
584
+ printScale: e.value.userOptions.print.scale,
585
+ onToggleFullscreen: tt,
586
+ onGeneratePdf: s(Xe),
587
+ onGenerateCsv: et,
588
+ onGenerateImage: s(Ue),
589
+ onToggleTable: at,
590
+ onToggleSort: lt,
591
+ onToggleTooltip: ot,
592
+ onToggleAnnotator: Ce,
593
+ style: h({
594
+ visibility: s(Be) ? s(ke) ? "visible" : "hidden" : "visible"
595
+ })
596
+ }, Se({ _: 2 }, [
597
+ t.$slots.menuIcon ? {
598
+ name: "menuIcon",
599
+ fn: w(({ isOpen: a, color: o }) => [
600
+ x(t.$slots, "menuIcon", Y(K({ isOpen: a, color: o })), void 0, !0)
601
+ ]),
602
+ key: "0"
603
+ } : void 0,
604
+ t.$slots.optionTooltip ? {
605
+ name: "optionTooltip",
606
+ fn: w(() => [
607
+ x(t.$slots, "optionTooltip", {}, void 0, !0)
608
+ ]),
609
+ key: "1"
610
+ } : void 0,
611
+ t.$slots.optionPdf ? {
612
+ name: "optionPdf",
613
+ fn: w(() => [
614
+ x(t.$slots, "optionPdf", {}, void 0, !0)
615
+ ]),
616
+ key: "2"
617
+ } : void 0,
618
+ t.$slots.optionCsv ? {
619
+ name: "optionCsv",
620
+ fn: w(() => [
621
+ x(t.$slots, "optionCsv", {}, void 0, !0)
622
+ ]),
623
+ key: "3"
624
+ } : void 0,
625
+ t.$slots.optionImg ? {
626
+ name: "optionImg",
627
+ fn: w(() => [
628
+ x(t.$slots, "optionImg", {}, void 0, !0)
629
+ ]),
630
+ key: "4"
631
+ } : void 0,
632
+ t.$slots.optionTable ? {
633
+ name: "optionTable",
634
+ fn: w(() => [
635
+ x(t.$slots, "optionTable", {}, void 0, !0)
636
+ ]),
637
+ key: "5"
638
+ } : void 0,
639
+ t.$slots.optionLabels ? {
640
+ name: "optionLabels",
641
+ fn: w(() => [
642
+ x(t.$slots, "optionLabels", {}, void 0, !0)
643
+ ]),
644
+ key: "6"
645
+ } : void 0,
646
+ t.$slots.optionSort ? {
647
+ name: "optionSort",
648
+ fn: w(() => [
649
+ x(t.$slots, "optionSort", {}, void 0, !0)
650
+ ]),
651
+ key: "7"
652
+ } : void 0,
653
+ t.$slots.optionFullscreen ? {
654
+ name: "optionFullscreen",
655
+ fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
656
+ x(t.$slots, "optionFullscreen", Y(K({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
657
+ ]),
658
+ key: "8"
659
+ } : void 0,
660
+ t.$slots.optionAnnotator ? {
661
+ name: "optionAnnotator",
662
+ fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
663
+ x(t.$slots, "optionAnnotator", Y(K({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
664
+ ]),
665
+ key: "9"
666
+ } : 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"])) : y("", !0),
668
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
669
+ key: 4,
670
+ ref_key: "chartLegend",
671
+ ref: fe
672
+ }, [
673
+ (u(), X(rt, {
674
+ key: `legend_top_${ye.value}`,
675
+ legendSet: M.value,
676
+ config: Ke.value,
677
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => ee(a.id))
678
+ }, Se({
679
+ item: w(({ legend: a, index: o }) => [
680
+ n("div", {
681
+ onClick: (f) => ee(a.id),
682
+ style: h(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
683
+ }, p(a.name) + ": " + p(s(de)(
684
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
685
+ a.value,
686
+ s(G)({
687
+ p: e.value.style.chart.legend.prefix,
688
+ v: a.value,
689
+ s: e.value.style.chart.legend.suffix,
690
+ r: e.value.style.chart.legend.roundingValue
691
+ }),
692
+ { datapoint: a, seriesIndex: o }
693
+ )), 13, pa)
694
+ ]),
695
+ _: 2
696
+ }, [
697
+ t.$slots.pattern ? {
698
+ name: "legend-pattern",
699
+ fn: w(({ legend: a, index: o }) => [
700
+ le(it, {
701
+ shape: a.shape,
702
+ radius: 30,
703
+ stroke: "none",
704
+ plot: { x: 30, y: 30 },
705
+ fill: `url(#pattern_${S.value}_${o})`
706
+ }, null, 8, ["shape", "fill"])
707
+ ]),
708
+ key: "0"
709
+ } : void 0
710
+ ]), 1032, ["legendSet", "config"]))
711
+ ], 512)) : y("", !0),
712
+ (u(), v("svg", {
713
+ ref_key: "svgRef",
714
+ ref: Re,
715
+ xmlns: s(Kt),
716
+ class: D({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
717
+ viewBox: ue.value,
718
+ style: h(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
719
+ }, [
720
+ n("g", {
721
+ ref_key: "G",
722
+ ref: ne,
723
+ class: "vue-data-ui-g"
724
+ }, [
725
+ le(s(pt)),
726
+ t.$slots["chart-background"] ? (u(), v("foreignObject", {
727
+ key: 0,
728
+ x: P.value.x,
729
+ y: 0,
730
+ width: P.value.width,
731
+ height: P.value.height,
732
+ style: {
733
+ pointerEvents: "none"
734
+ }
735
+ }, [
736
+ x(t.$slots, "chart-background", {}, void 0, !0)
737
+ ], 8, ya)) : y("", !0),
738
+ (u(!0), v(J, null, Q(R.value, (a, o) => (u(), v("linearGradient", {
739
+ x1: "0%",
740
+ y1: "0%",
741
+ x2: "100%",
742
+ y2: "0%",
743
+ id: `vertical_bar_gradient_${S.value}_${o}`
744
+ }, [
745
+ n("stop", {
746
+ offset: "0%",
747
+ "stop-color": a.color
748
+ }, null, 8, ba),
749
+ n("stop", {
750
+ offset: "100%",
751
+ "stop-color": s(Ae)(s(Jt)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
752
+ }, null, 8, ma)
753
+ ], 8, ga))), 256)),
754
+ t.$slots.pattern ? (u(), v("g", ka, [
755
+ (u(!0), v(J, null, Q(R.value, (a) => (u(), v("defs", null, [
756
+ x(t.$slots, "pattern", Dt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
757
+ ]))), 256))
758
+ ])) : y("", !0),
759
+ (u(!0), v(J, null, Q(R.value, (a, o) => (u(), v("g", null, [
760
+ n("rect", {
761
+ x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
762
+ y: r.value.top + (m.value + c.value) * o,
763
+ width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
764
+ height: c.value <= 0 ? 1e-4 : c.value,
765
+ fill: e.value.style.chart.layout.bars.underlayerColor,
766
+ rx: e.value.style.chart.layout.bars.borderRadius,
767
+ class: D({ animated: e.value.useCssAnimation })
768
+ }, null, 10, xa)
769
+ ]))), 256)),
770
+ (u(!0), v(J, null, Q(R.value, (a, o) => (u(), v("g", null, [
771
+ n("rect", {
772
+ x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
773
+ y: r.value.top + (m.value + c.value) * o,
774
+ width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
775
+ height: c.value <= 0 ? 1e-4 : c.value,
776
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Ae)(a.color, e.value.style.chart.layout.bars.fillOpacity),
777
+ rx: e.value.style.chart.layout.bars.borderRadius,
778
+ stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
779
+ "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
780
+ class: D({ animated: e.value.useCssAnimation })
781
+ }, null, 10, _a),
782
+ t.$slots.pattern ? (u(), v("rect", {
783
+ key: 0,
784
+ x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
785
+ y: r.value.top + (m.value + c.value) * o,
786
+ width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
787
+ height: c.value <= 0 ? 1e-4 : c.value,
788
+ fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
789
+ rx: e.value.style.chart.layout.bars.borderRadius,
790
+ stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
791
+ "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
792
+ class: D({ animated: e.value.useCssAnimation })
793
+ }, null, 10, wa)) : y("", !0),
794
+ (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== R.value.length - 1 ? (u(), v("line", {
795
+ key: 1,
796
+ x1: P.value.x,
797
+ x2: e.value.style.chart.layout.separators.fullWidth ? P.value.width - Math.abs(P.value.x) : r.value.left,
798
+ y1: c.value + m.value / 2 + r.value.top + (m.value + c.value) * o,
799
+ y2: c.value + m.value / 2 + r.value.top + (m.value + c.value) * o,
800
+ stroke: e.value.style.chart.layout.separators.color,
801
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
802
+ "stroke-linecap": "round",
803
+ style: { transition: "none !important", animation: "none !important" }
804
+ }, null, 8, $a)) : y("", !0),
805
+ E.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
806
+ key: 2,
807
+ x1: r.value.left + r.value.width / 2,
808
+ x2: r.value.left + r.value.width / 2,
809
+ y1: r.value.top,
810
+ y2: r.value.bottom,
811
+ stroke: e.value.style.chart.layout.separators.color,
812
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
813
+ "stroke-linecap": "round"
814
+ }, null, 8, Ca)) : y("", !0),
815
+ n("g", Ta, [
816
+ n("text", {
817
+ x: E.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) : Pt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
818
+ y: r.value.top + (m.value + c.value) * o + c.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
819
+ "text-anchor": !E.value || a.sign === -1 ? "start" : "end",
820
+ "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
821
+ fill: e.value.style.chart.layout.bars.dataLabels.color,
822
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
823
+ }, p(Ze(a.value, a, o, a.sign)), 9, Sa),
824
+ (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
825
+ key: 0,
826
+ "text-anchor": "end",
827
+ x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
828
+ y: r.value.top + (m.value + c.value) * o + c.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
829
+ "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
830
+ fill: e.value.style.chart.layout.bars.nameLabels.color,
831
+ "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
832
+ }, p(a.name), 9, La)) : y("", !0)
833
+ ]),
834
+ n("g", Pa, [
835
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
836
+ key: 0,
837
+ x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
838
+ y: te(a, o).y,
839
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
840
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
841
+ "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
842
+ "text-anchor": "start"
843
+ }, p(te(a, o).name), 9, Na)) : y("", !0),
844
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
845
+ key: 1,
846
+ x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
847
+ y: te(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
848
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
849
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
850
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
851
+ "text-anchor": "start"
852
+ }, p(Ze(te(a, o).value), te(a, o), o, a.parentSign || a.sign), 9, Aa)) : y("", !0)
853
+ ]),
854
+ n("rect", {
855
+ x: P.value.x,
856
+ y: r.value.top + (m.value + c.value) * o - m.value / 2,
857
+ width: P.value.width,
858
+ height: c.value + m.value <= 0 ? 1e-4 : c.value + m.value,
859
+ fill: we.value === a.id ? s(Ae)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
860
+ onMouseenter: (f) => Vt(a, o),
861
+ onMouseleave: (f) => zt({ datapoint: a, seriesIndex: o }),
862
+ onClick: (f) => At({ datapoint: a, seriesIndex: o })
863
+ }, null, 40, za)
864
+ ]))), 256)),
865
+ x(t.$slots, "svg", { svg: P.value }, void 0, !0)
866
+ ], 512)
867
+ ], 14, fa)),
868
+ t.$slots.watermark ? (u(), v("div", Va, [
869
+ x(t.$slots, "watermark", Y(K({ isPrinting: s(Ee) || s(De) })), void 0, !0)
870
+ ])) : y("", !0),
871
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
872
+ key: 6,
873
+ ref_key: "chartLegend",
874
+ ref: fe
875
+ }, [
876
+ (u(), X(rt, {
877
+ key: `legend_bottom_${ye.value}`,
878
+ legendSet: M.value,
879
+ config: Ke.value,
880
+ onClickMarker: l[1] || (l[1] = ({ legend: a }) => ee(a.id))
881
+ }, Se({
882
+ item: w(({ legend: a, index: o }) => [
883
+ n("div", {
884
+ onClick: (f) => ee(a.id),
885
+ style: h(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
886
+ }, p(a.name) + ": " + p(s(de)(
887
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
888
+ a.value,
889
+ s(G)({
890
+ p: e.value.style.chart.legend.prefix,
891
+ v: a.value,
892
+ s: e.value.style.chart.legend.suffix,
893
+ r: e.value.style.chart.legend.roundingValue
894
+ }),
895
+ { datapoint: a, seriesIndex: o }
896
+ )), 13, Ia)
897
+ ]),
898
+ _: 2
899
+ }, [
900
+ t.$slots.pattern ? {
901
+ name: "legend-pattern",
902
+ fn: w(({ legend: a, index: o }) => [
903
+ le(it, {
904
+ shape: a.shape,
905
+ radius: 30,
906
+ stroke: "none",
907
+ plot: { x: 30, y: 30 },
908
+ fill: `url(#pattern_${S.value}_${o})`
909
+ }, null, 8, ["shape", "fill"])
910
+ ]),
911
+ key: "0"
912
+ } : void 0
913
+ ]), 1032, ["legendSet", "config"]))
914
+ ], 512)) : y("", !0),
915
+ x(t.$slots, "legend", { legend: M.value }, void 0, !0),
916
+ t.$slots.source ? (u(), v("div", {
917
+ key: 7,
918
+ ref_key: "source",
919
+ ref: Ie,
920
+ dir: "auto"
921
+ }, [
922
+ x(t.$slots, "source", {}, void 0, !0)
923
+ ], 512)) : y("", !0),
924
+ le(s(yt), {
925
+ show: $.value.showTooltip && he.value && N.value.length < g.dataset.length,
926
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
927
+ color: e.value.style.chart.tooltip.color,
928
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
929
+ borderColor: e.value.style.chart.tooltip.borderColor,
930
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
931
+ fontSize: e.value.style.chart.tooltip.fontSize,
932
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
933
+ position: e.value.style.chart.tooltip.position,
934
+ offsetY: e.value.style.chart.tooltip.offsetY,
935
+ parent: z.value,
936
+ content: pe.value,
937
+ isFullscreen: j.value,
938
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
939
+ }, {
940
+ "tooltip-before": w(() => [
941
+ x(t.$slots, "tooltip-before", Y(K({ ...$e.value })), void 0, !0)
942
+ ]),
943
+ "tooltip-after": w(() => [
944
+ x(t.$slots, "tooltip-after", Y(K({ ...$e.value })), void 0, !0)
945
+ ]),
946
+ _: 3
947
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
948
+ ce.value ? (u(), X(sa, {
949
+ key: 8,
950
+ hideDetails: "",
951
+ config: {
952
+ open: $.value.showTable,
953
+ maxHeight: 1e4,
954
+ body: {
955
+ backgroundColor: e.value.style.chart.backgroundColor,
956
+ color: e.value.style.chart.color
957
+ },
958
+ head: {
959
+ backgroundColor: e.value.style.chart.backgroundColor,
960
+ color: e.value.style.chart.color
961
+ }
962
+ }
963
+ }, {
964
+ content: w(() => [
965
+ n("div", {
966
+ ref_key: "tableContainer",
967
+ ref: We,
968
+ class: "vue-ui-vertical-bar-table atom-data-table"
969
+ }, [
970
+ n("div", Oa, [
971
+ n("div", {
972
+ role: "button",
973
+ tabindex: "0",
974
+ style: h(`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};`),
975
+ onClick: l[2] || (l[2] = (a) => $.value.showTable = !1),
976
+ onKeypress: l[3] || (l[3] = Xt((a) => $.value.showTable = !1, ["enter"]))
977
+ }, [
978
+ le(s(ht), {
979
+ name: "close",
980
+ stroke: e.value.table.th.color,
981
+ "stroke-width": 2
982
+ }, null, 8, ["stroke"])
983
+ ], 36),
984
+ n("div", {
985
+ style: { width: "100%", "container-type": "inline-size" },
986
+ class: D({ "vue-ui-responsive": He.value })
987
+ }, [
988
+ n("table", Ma, [
989
+ n("caption", {
990
+ style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
991
+ class: "vue-ui-data-table__caption"
992
+ }, [
993
+ Ut(p(e.value.style.chart.title.text) + " ", 1),
994
+ e.value.style.chart.title.subtitle.text ? (u(), v("span", Fa, p(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
995
+ ], 4),
996
+ n("thead", null, [
997
+ n("tr", {
998
+ role: "row",
999
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1000
+ }, [
1001
+ (u(!0), v(J, null, Q(A.value.head, (a) => (u(), v("th", {
1002
+ style: h(`outline:${e.value.table.th.outline}`)
1003
+ }, [
1004
+ n("div", Ba, p(a), 1)
1005
+ ], 4))), 256))
1006
+ ], 4),
1007
+ n("tr", null, [
1008
+ n("th", {
1009
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1010
+ }, null, 4),
1011
+ n("th", {
1012
+ style: h(`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`)
1013
+ }, "∑ " + p(e.value.table.td.prefix) + p(isNaN(V.value) ? "" : V.value.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 5),
1014
+ n("th", {
1015
+ style: h(`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`)
1016
+ }, "100%", 4),
1017
+ n("th", {
1018
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1019
+ }, null, 4),
1020
+ n("th", {
1021
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1022
+ }, null, 4),
1023
+ n("th", {
1024
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1025
+ }, null, 4),
1026
+ n("th", {
1027
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1028
+ }, null, 4)
1029
+ ])
1030
+ ]),
1031
+ n("tbody", null, [
1032
+ (u(!0), v(J, null, Q(A.value.body, (a, o) => (u(), v("tr", {
1033
+ class: D({ "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 }),
1034
+ style: h(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1035
+ }, [
1036
+ n("td", {
1037
+ class: "vue-ui-data-table__tbody__td",
1038
+ style: h(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1039
+ "data-cell": A.value.head[0] ?? ""
1040
+ }, [
1041
+ n("div", Ea, [
1042
+ a.color ? (u(), v("span", {
1043
+ key: 0,
1044
+ style: h(`color:${a.color};margin-right:3px`)
1045
+ }, "⬤", 4)) : y("", !0),
1046
+ n("span", null, p(a.parentName), 1)
1047
+ ])
1048
+ ], 12, Ra),
1049
+ n("td", {
1050
+ class: "vue-ui-data-table__tbody__td",
1051
+ style: h(`outline:${e.value.table.td.outline}`),
1052
+ "data-cell": A.value.head[1] ?? ""
1053
+ }, [
1054
+ n("div", Xa, 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)
1055
+ ], 12, Da),
1056
+ n("td", {
1057
+ class: "vue-ui-data-table__tbody__td",
1058
+ style: h(`outline:${e.value.table.td.outline}`),
1059
+ "data-cell": A.value.head[2] ?? ""
1060
+ }, [
1061
+ n("div", Ga, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1062
+ ], 12, Ua),
1063
+ n("td", {
1064
+ class: "vue-ui-data-table__tbody__td",
1065
+ style: h(`outline:${e.value.table.td.outline}`),
1066
+ "data-cell": A.value.head[3] ?? ""
1067
+ }, [
1068
+ n("div", Ha, p(a.childName), 1)
1069
+ ], 12, Wa),
1070
+ n("td", {
1071
+ class: "vue-ui-data-table__tbody__td",
1072
+ style: h(`outline:${e.value.table.td.outline}`),
1073
+ "data-cell": A.value.head[4] ?? ""
1074
+ }, [
1075
+ n("div", qa, 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)
1076
+ ], 12, ja),
1077
+ n("td", {
1078
+ class: "vue-ui-data-table__tbody__td",
1079
+ style: h(`outline:${e.value.table.td.outline}`),
1080
+ "data-cell": A.value.head[5] ?? ""
1081
+ }, [
1082
+ n("div", Ka, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1083
+ ], 12, Ya),
1084
+ n("td", {
1085
+ class: "vue-ui-data-table__tbody__td",
1086
+ style: h(`outline:${e.value.table.td.outline}`),
1087
+ "data-cell": A.value.head[6] ?? ""
1088
+ }, [
1089
+ n("div", Qa, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1090
+ ], 12, Ja)
1091
+ ], 6))), 256))
1092
+ ])
1093
+ ])
1094
+ ], 2)
1095
+ ])
1096
+ ], 512)
1097
+ ]),
1098
+ _: 1
1099
+ }, 8, ["config"])) : y("", !0),
1100
+ s(ge) ? (u(), X(da, { key: 9 })) : y("", !0)
1101
+ ], 46, ha));
1102
+ }
1103
+ }, pl = /* @__PURE__ */ ca(Za, [["__scopeId", "data-v-a76fb71b"]]);
1104
+ export {
1105
+ pl as default
1106
+ };