vue-data-ui 3.0.0-next.0 → 3.0.0-next.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.
Files changed (98) hide show
  1. package/README.md +92 -66
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
  15. package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
  18. package/dist/img-D3JvqNF8.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
  20. package/dist/pdf-DROWzopj.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1018 -166
  23. package/dist/types/vue-data-ui.d.ts +1018 -166
  24. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
  25. package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
  26. package/dist/vue-data-ui-BzMRz9Un.js +314 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
  29. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
  31. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
  32. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
  33. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
  34. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
  35. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
  36. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
  37. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
  38. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
  40. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
  41. package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
  43. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
  44. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
  45. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
  46. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
  47. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
  48. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
  49. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
  50. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
  51. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
  53. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
  54. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
  55. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
  56. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
  57. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
  58. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
  59. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
  60. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
  61. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
  63. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
  64. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
  65. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
  66. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
  67. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
  75. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
  76. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
  79. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
  80. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
  81. package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
  82. package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
  84. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
  85. package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
  86. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
  87. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
  88. package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
  89. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
  90. package/package.json +1 -1
  91. package/dist/img-BeMVTwmF.js +0 -20
  92. package/dist/pdf-DPxOdzfi.js +0 -51
  93. package/dist/vue-data-ui-nceqWRts.js +0 -301
  94. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  95. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  96. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  97. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  98. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
@@ -1,19 +1,20 @@
1
- import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as y, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
2
- import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-DMqAxz7R.js";
3
- import { t as Bt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as Dt } from "./usePrinter-COkTjv6C.js";
6
- import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xt from "./vue-ui-accordion-P6eFHGQp.js";
9
- import qe from "./Legend-Q4bOb-Nf.js";
10
- import Ht from "./Title-D29apS4l.js";
11
- import { _ as Ye } from "./Shape-DbsLJ-SE.js";
12
- import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
1
+ import { useCssVars as $t, defineAsyncComponent as W, useSlots as wt, computed as k, ref as d, watch as He, shallowRef as We, onMounted as Ge, onBeforeUnmount as xt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as R, createBlock as D, createCommentVNode as y, renderSlot as m, createVNode as Q, createSlots as pe, withCtx as _, normalizeProps as G, guardReactiveProps as j, createElementVNode as n, toDisplayString as h, Fragment as q, renderList as Y, mergeProps as Ct, withKeys as Tt, createTextVNode as Lt } from "vue";
2
+ import { u as Nt, c as St, t as Pt, p as E, a as Vt, b as It, o as je, e as Z, v as N, d as ye, i as ne, f as U, X as Ot, s as ge, w as Ft, q as Mt, r as zt, x as At, y as Bt } from "./index-BSa4GlHG.js";
3
+ import { t as Rt, u as Dt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as qe } from "./useNestedProp-uR74_CFG.js";
5
+ import { u as Et } from "./usePrinter-j3g1L2nh.js";
6
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Ht from "./vue-ui-accordion-DzF-SPaZ.js";
9
+ import Ye from "./Legend-CIElSUHU.js";
10
+ import Wt from "./Title-CWxjC3bE.js";
11
+ import { _ as Ke } from "./Shape-Blrp5ZfP.js";
12
+ import Gt from "./img-D3JvqNF8.js";
13
+ import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const qt = ["id"], Yt = ["onClick"], Kt = ["xmlns", "viewBox"], Jt = ["width", "height"], Qt = ["id"], Zt = ["stop-color"], ea = ["stop-color"], ta = { key: 1 }, aa = ["x", "y", "width", "height", "fill", "rx"], la = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], oa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], na = ["x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ra = ["x", "y", "font-size", "fill", "font-weight"], ia = ["x", "y", "font-size", "fill", "font-weight"], da = ["x", "y", "font-size", "fill", "font-weight"], va = ["y", "width", "height", "fill", "onMouseenter"], ca = {
14
15
  key: 6,
15
16
  class: "vue-data-ui-watermark"
16
- }, vl = ["onClick"], cl = { style: "width:100%;padding-top: 36px;position:relative" }, hl = { class: "vue-ui-data-table" }, pl = { key: 0 }, yl = { style: { width: "100%" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Sl = {
17
+ }, ha = ["onClick"], pa = { style: "width:100%;padding-top: 36px;position:relative" }, ya = { class: "vue-ui-data-table" }, ga = { key: 0 }, fa = { style: { width: "100%" } }, ba = ["data-cell"], ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ka = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $a = ["data-cell"], wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = ["data-cell"], Ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ta = ["data-cell"], La = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Na = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pa = ["data-cell"], Va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ia = {
17
18
  __name: "vue-ui-vertical-bar",
18
19
  props: {
19
20
  config: {
@@ -30,65 +31,65 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
30
31
  }
31
32
  },
32
33
  emits: ["selectLegend"],
33
- setup(Ke, { expose: Je, emit: Qe }) {
34
- _t((l) => ({
35
- "8661a912": l.tdo
34
+ setup(Je, { expose: Qe, emit: Ze }) {
35
+ $t((a) => ({
36
+ "78b81303": a.tdo
36
37
  }));
37
- const Ze = H(() => import("./BaseIcon-DoDjTdD5.js")), et = H(() => import("./PackageVersion-D0VPY8-5.js")), tt = H(() => import("./PenAndPaper-DhBJsnob.js")), lt = H(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), at = H(() => import("./Tooltip-hVZUY_s5.js")), ot = H(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
38
+ const et = W(() => import("./BaseIcon-BAHAKjob.js")), tt = W(() => import("./PackageVersion-B0wGS6pw.js")), at = W(() => import("./PenAndPaper-7o0xS-d4.js")), lt = W(() => import("./vue-ui-skeleton-DY48gQ96.js")), ot = W(() => import("./Tooltip-Cq9HywcX.js")), nt = W(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_vertical_bar: ut } = Nt(), st = wt(), T = Je, ee = k(() => !!T.dataset && T.dataset.length), C = d(St()), rt = d(null), ue = d(!1), se = d(""), te = d(0), it = d(null), fe = d(0), I = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), dt = Ze, e = k({
38
39
  get: () => Ce(),
39
- set: (l) => l
40
- }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
40
+ set: (a) => a
41
+ }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Ut({ config: e.value }), { svgRef: xe } = Xt({ config: e.value.style.chart.title });
41
42
  function Ce() {
42
- const l = je({
43
+ const a = qe({
43
44
  userConfig: T.config,
44
- defaultConfig: nt
45
+ defaultConfig: ut
45
46
  });
46
- return l.theme ? {
47
- ...je({
48
- userConfig: St.vue_ui_vertical_bar[l.theme] || T.config,
49
- defaultConfig: l
47
+ return a.theme ? {
48
+ ...qe({
49
+ userConfig: Vt.vue_ui_vertical_bar[a.theme] || T.config,
50
+ defaultConfig: a
50
51
  }),
51
- customPalette: Pt[l.theme] || D
52
- } : l;
52
+ customPalette: Pt[a.theme] || E
53
+ } : a;
53
54
  }
54
- Xe(() => T.config, (l) => {
55
+ He(() => T.config, (a) => {
55
56
  e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, f.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;
56
- }, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
57
- const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Pe } = Dt({
57
+ }, { deep: !0 }), He(() => T.dataset, ae, { deep: !0 });
58
+ const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Et({
58
59
  elementId: `vue-ui-vertical-bar_${C.value}`,
59
60
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
60
61
  options: e.value.userOptions.print
61
- }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
62
- We(() => {
62
+ }), vt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = k(() => It(e.value.customPalette)), Ve = d(null), Ie = d(!1), ct = k(() => e.value.table.responsiveBreakpoint), O = We(null), X = We(null);
63
+ Ge(() => {
63
64
  Oe();
64
65
  });
65
66
  function Oe() {
66
- if (Ge(T.dataset) && Z({
67
+ if (je(T.dataset) && Z({
67
68
  componentName: "VueUiVerticalBar",
68
69
  type: "dataset"
69
- }), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ct(), e.value.responsive) {
70
- const l = Bt(() => {
71
- const { width: a, height: t } = Rt({
72
- chart: Y.value,
70
+ }), te.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), ht(), e.value.responsive) {
71
+ const a = Rt(() => {
72
+ const { width: l, height: t } = Dt({
73
+ chart: I.value,
73
74
  title: e.value.style.chart.title.text ? be.value : null,
74
75
  legend: e.value.style.chart.legend.show ? re.value : null,
75
76
  source: me.value,
76
77
  noTitle: ke.value
77
78
  });
78
79
  requestAnimationFrame(() => {
79
- ze.value = a, v.value = t / te.value - f.value * 2;
80
+ ze.value = l, v.value = t / te.value - f.value * 2;
80
81
  });
81
82
  });
82
- I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect()), I.value = new ResizeObserver(l), U.value = Y.value.parentNode, I.value.observe(U.value);
83
+ O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect()), O.value = new ResizeObserver(a), X.value = I.value.parentNode, O.value.observe(X.value);
83
84
  }
84
85
  }
85
- wt(() => {
86
- I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
86
+ xt(() => {
87
+ O.value && (X.value && O.value.unobserve(X.value), O.value.disconnect());
87
88
  });
88
- function ct() {
89
- new ResizeObserver((a) => {
90
- a.forEach((t) => {
91
- Ie.value = t.contentRect.width < vt.value;
89
+ function ht() {
90
+ new ResizeObserver((l) => {
91
+ l.forEach((t) => {
92
+ Ie.value = t.contentRect.width < ct.value;
92
93
  });
93
94
  }).observe(Ve.value);
94
95
  }
@@ -96,16 +97,16 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
96
97
  showTable: e.value.table.show,
97
98
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
98
99
  showTooltip: e.value.style.chart.tooltip.show
99
- }), Fe = m(() => $.value.sortDesc), F = m(() => (T.dataset.forEach((l, a) => {
100
- !l.value && !l.children && Z({
100
+ }), Fe = k(() => $.value.sortDesc), M = k(() => (T.dataset.forEach((a, l) => {
101
+ !a.value && !a.children && Z({
101
102
  componentName: "VueUiVerticalBar",
102
103
  type: "datasetAttributeEmpty",
103
- property: `value (index ${a})`
104
- }), l.children && (Ge(l.children) ? Z({
104
+ property: `value (index ${l})`
105
+ }), a.children && (je(a.children) ? Z({
105
106
  componentName: "VueUiVerticalBar",
106
107
  type: "datasetAttributeEmpty",
107
- property: `children (index ${a})`
108
- }) : l.children.forEach((t, o) => {
108
+ property: `children (index ${l})`
109
+ }) : a.children.forEach((t, o) => {
109
110
  [null, void 0].includes(t.name) && Z({
110
111
  componentName: "VueUiVerticalBar",
111
112
  type: "datasetSerieAttribute",
@@ -114,57 +115,57 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
114
115
  index: o
115
116
  });
116
117
  }));
117
- }), T.dataset.map((l, a) => {
118
- const t = `vertical_parent_${a}_${C.value}`, o = l.children && l.children.length > 0, _ = N(l.value ? l.value : o ? l.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), x = _ >= 0 ? 1 : -1;
118
+ }), T.dataset.map((a, l) => {
119
+ const t = `vertical_parent_${l}_${C.value}`, o = a.children && a.children.length > 0, b = N(a.value ? a.value : o ? a.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), w = b >= 0 ? 1 : -1;
119
120
  return {
120
- ...l,
121
+ ...a,
121
122
  id: t,
122
- absoluteIndex: a,
123
+ absoluteIndex: l,
123
124
  shape: "square",
124
- opacity: P.value.includes(t) ? 0.5 : 1,
125
- value: Math.abs(_),
126
- sign: x,
125
+ opacity: S.value.includes(t) ? 0.5 : 1,
126
+ value: Math.abs(b),
127
+ sign: w,
127
128
  hasChildren: o,
128
129
  isChild: !1,
129
130
  segregate: () => K(t),
130
- isSegregated: P.value.includes(t),
131
- color: ye(l.color) || Se.value[a] || D[a] || D[a % D.length],
132
- children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
131
+ isSegregated: S.value.includes(t),
132
+ color: ye(a.color) || Pe.value[l] || E[l] || E[l % E.length],
133
+ children: !a.children || !a.children.length ? [] : a.children.toSorted(le.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
133
134
  ...p,
134
135
  value: N(Math.abs(p.value)),
135
- absoluteIndex: a,
136
+ absoluteIndex: l,
136
137
  sign: p.value >= 0 ? 1 : -1,
137
138
  isChild: !0,
138
139
  parentId: t,
139
- parentName: l.name,
140
- parentValue: _,
141
- parentSign: x,
142
- id: `vertical_child_${a}_${V}_${C.value}`,
140
+ parentName: a.name,
141
+ parentValue: b,
142
+ parentSign: w,
143
+ id: `vertical_child_${l}_${V}_${C.value}`,
143
144
  childIndex: V,
144
- color: ye(p.color) || ye(l.color) || Se.value[a] || D[a] || D[a % D.length]
145
+ color: ye(p.color) || ye(a.color) || Pe.value[l] || E[l] || E[l % E.length]
145
146
  })).map((p, V) => ({
146
147
  ...p,
147
148
  isFirstChild: V === 0,
148
- isLastChild: V === l.children.length - 1
149
+ isLastChild: V === a.children.length - 1
149
150
  }))
150
151
  };
151
- }).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = m(() => ({
152
+ }).toSorted(le.value ? () => 0 : (a, l) => Fe.value ? l.value - a.value : a.value - l.value))), Me = k(() => ({
152
153
  cy: "vertical-bar-div-legend",
153
154
  backgroundColor: e.value.style.chart.legend.backgroundColor,
154
155
  color: e.value.style.chart.legend.color,
155
156
  fontSize: e.value.style.chart.legend.fontSize,
156
157
  paddingBottom: 12,
157
158
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
158
- })), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + f.value) * te.value), ze = d(512), g = m(() => ({
159
+ })), v = d(e.value.style.chart.layout.bars.height), f = d(e.value.style.chart.layout.bars.gap), pt = k(() => (v.value + f.value) * te.value), ze = d(512), g = k(() => ({
159
160
  width: ze.value,
160
- height: ht.value,
161
+ height: pt.value,
161
162
  padding: {
162
163
  top: 12,
163
164
  left: 128 + e.value.style.chart.layout.bars.offsetX,
164
165
  right: 64 + e.value.style.chart.layout.bars.paddingRight,
165
166
  bottom: 12
166
167
  }
167
- })), s = m(() => ({
168
+ })), s = k(() => ({
168
169
  fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
169
170
  top: g.value.padding.top,
170
171
  left: g.value.padding.left,
@@ -172,103 +173,103 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
172
173
  bottom: g.value.padding.top + g.value.height,
173
174
  width: g.value.width - (g.value.padding.left + g.value.padding.right)
174
175
  }));
175
- function le() {
176
- te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
176
+ function ae() {
177
+ te.value = z.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
177
178
  }
178
- const P = d([]);
179
- function K(l) {
180
- P.value.includes(l) ? P.value = P.value.filter((a) => a !== l) : P.value.push(l), le(), it("selectLegend", M.value);
179
+ const S = d([]);
180
+ function K(a) {
181
+ S.value.includes(a) ? S.value = S.value.filter((l) => l !== a) : S.value.push(a), ae(), dt("selectLegend", z.value);
181
182
  }
182
- const M = m(() => F.value.filter((l) => !P.value.includes(l.id))), S = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
183
- function Ae(l, a = !1, t = 0) {
184
- return a ? E({
185
- v: N(Math.abs(l) / S.value * 100),
183
+ const z = k(() => M.value.filter((a) => !S.value.includes(a.id))), P = k(() => z.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
184
+ function Ae(a, l = !1, t = 0) {
185
+ return l ? U({
186
+ v: N(Math.abs(a) / P.value * 100),
186
187
  s: "%",
187
188
  r: t
188
- }) : Math.abs(l) / S.value;
189
+ }) : Math.abs(a) / P.value;
189
190
  }
190
- const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
191
- function w(l) {
192
- const a = l / pt.value;
193
- return s.value.width / (A.value ? 2 : 1) * a;
191
+ const A = k(() => z.value.flatMap((a) => a.hasChildren ? a.children : a)), B = k(() => A.value.map((a) => a.sign).includes(-1)), yt = k(() => Math.max(...z.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
192
+ function x(a) {
193
+ const l = a / yt.value;
194
+ return s.value.width / (B.value ? 2 : 1) * l;
194
195
  }
195
- function yt(l) {
196
- return w(l) + s.value.left;
196
+ function gt(a) {
197
+ return x(a) + s.value.left;
197
198
  }
198
- function J(l, a) {
199
- const t = M.value.find((x) => x.id === l.parentId), o = s.value.top + (f.value + v.value) * a, _ = t.children.length * (f.value + v.value);
199
+ function J(a, l) {
200
+ const t = z.value.find((w) => w.id === a.parentId), o = s.value.top + (f.value + v.value) * l, b = t.children.length * (f.value + v.value);
200
201
  return {
201
- y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
+ y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
203
  name: t.name,
203
204
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
204
- percentageToTotal: isNaN(t.value / S.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
205
+ percentageToTotal: isNaN(t.value / P.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
205
206
  sign: t.sign
206
207
  };
207
208
  }
208
- function gt() {
209
- return M.value;
209
+ function ft() {
210
+ return z.value;
210
211
  }
211
212
  const ve = d(null), ce = d(null);
212
- function ft(l, a) {
213
+ function bt(a, l) {
213
214
  ce.value = {
214
- datapoint: l,
215
- seriesIndex: a,
216
- series: F.value,
215
+ datapoint: a,
216
+ seriesIndex: l,
217
+ series: M.value,
217
218
  config: e.value
218
- }, ue.value = !0, ve.value = l.id;
219
+ }, ue.value = !0, ve.value = a.id;
219
220
  let t = "";
220
- const o = l.isChild ? l.parentName : l.name, _ = l.isChild ? l.name : "", x = e.value.style.chart.tooltip.customFormat;
221
- zt(x) && At(() => x({
222
- datapoint: l,
223
- series: F.value,
221
+ const o = a.isChild ? a.parentName : a.name, b = a.isChild ? a.name : "", w = e.value.style.chart.tooltip.customFormat;
222
+ At(w) && Bt(() => w({
223
+ datapoint: a,
224
+ series: M.value,
224
225
  config: e.value,
225
- seriesIndex: a
226
- })) ? se.value = x({
227
- datapoint: l,
228
- series: F.value,
226
+ seriesIndex: l
227
+ })) ? se.value = w({
228
+ datapoint: a,
229
+ series: M.value,
229
230
  config: e.value,
230
- seriesIndex: a
231
+ seriesIndex: l
231
232
  }) : (t += `<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;">
232
- <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="${l.color}"/>${ut.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${l.absoluteIndex})"/>` : ""}</svg> ${o}</div>
233
- ${_ ? `<div>${_}</div>` : ""}
233
+ <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="${a.color}"/>${st.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${a.absoluteIndex})"/>` : ""}</svg> ${o}</div>
234
+ ${b ? `<div>${b}</div>` : ""}
234
235
  </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
235
236
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
236
- l.sign === 1 ? l.value : -l.value,
237
- E({
237
+ a.sign === 1 ? a.value : -a.value,
238
+ U({
238
239
  p: e.value.style.chart.tooltip.prefix,
239
- v: l.sign === 1 ? l.value : -l.value,
240
+ v: a.sign === 1 ? a.value : -a.value,
240
241
  s: e.value.style.chart.tooltip.suffix,
241
242
  r: e.value.style.chart.tooltip.roundingValue
242
243
  }),
243
- { datapoint: l, seriesIndex: a }
244
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${E({
245
- v: Math.abs(l.value) / S.value * 100,
244
+ { datapoint: a, seriesIndex: l }
245
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
246
+ v: Math.abs(a.value) / P.value * 100,
246
247
  s: "%",
247
248
  r: e.value.style.chart.tooltip.roundingPercentage
248
- })}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${E({
249
- v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
249
+ })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
250
+ v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
250
251
  s: "%",
251
252
  r: e.value.style.chart.tooltip.roundingPercentage
252
253
  })}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
253
254
  }
254
- function Be(l, a, t, o) {
255
+ function Be(a, l, t, o) {
255
256
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
256
257
  return "";
257
- const _ = ne(
258
+ const b = ne(
258
259
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
259
- N(o === -1 && l >= 0 ? -l : l),
260
- E({
260
+ N(o === -1 && a >= 0 ? -a : a),
261
+ U({
261
262
  p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
262
- v: N(o === -1 && l >= 0 ? -l : l),
263
+ v: N(o === -1 && a >= 0 ? -a : a),
263
264
  s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
264
265
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
265
266
  }),
266
- { datapoint: a, seriesIndex: t }
267
- ), x = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
268
- return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${x}` : ""}`;
267
+ { datapoint: l, seriesIndex: t }
268
+ ), w = `(${Ae(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
269
+ return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
269
270
  }
270
- const L = m(() => {
271
- const l = [
271
+ const L = k(() => {
272
+ const a = [
272
273
  e.value.translations.parentName,
273
274
  e.value.translations.value,
274
275
  e.value.translations.percentageToTotal,
@@ -276,15 +277,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
276
277
  e.value.translations.value,
277
278
  e.value.translations.percentageToSerie,
278
279
  e.value.translations.percentageToTotal
279
- ], a = z.value.map((t) => t.isChild ? t.isFirstChild ? {
280
+ ], l = A.value.map((t) => t.isChild ? t.isFirstChild ? {
280
281
  color: t.color,
281
282
  parentName: t.parentName,
282
283
  parentValue: t.parentValue,
283
- percentageToTotal: t.parentValue / S.value,
284
+ percentageToTotal: t.parentValue / P.value,
284
285
  childName: t.name,
285
286
  childValue: t.sign === 1 ? t.value : -t.value,
286
287
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
287
- childPercentageToTotal: Math.abs(t.value) / S.value
288
+ childPercentageToTotal: Math.abs(t.value) / P.value
288
289
  } : {
289
290
  color: "",
290
291
  parentName: "",
@@ -293,21 +294,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
293
294
  childName: t.name,
294
295
  childValue: t.sign === 1 ? t.value : -t.value,
295
296
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
296
- childPercentageToTotal: Math.abs(t.value) / S.value
297
+ childPercentageToTotal: Math.abs(t.value) / P.value
297
298
  } : {
298
299
  color: t.color,
299
300
  parentName: t.name,
300
301
  parentValue: t.sign === 1 ? t.value : -t.value,
301
- percentageToTotal: Math.abs(t.value) / S.value,
302
+ percentageToTotal: Math.abs(t.value) / P.value,
302
303
  childName: "",
303
304
  childValue: "",
304
305
  childPercentageToParent: "",
305
306
  childPercentageToTotal: ""
306
307
  });
307
- return { head: l, body: a };
308
+ return { head: a, body: l };
308
309
  });
309
- function Re(l = null) {
310
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = L.value.head, o = L.value.body.map((p) => [
310
+ function Re(a = null) {
311
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = L.value.head, o = L.value.body.map((p) => [
311
312
  p.parentName,
312
313
  p.parentValue,
313
314
  p.percentageToTotal,
@@ -315,62 +316,76 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
315
316
  p.childValue,
316
317
  p.childPercentageToParent,
317
318
  p.childPercentageToTotal
318
- ]), _ = a.concat([t]).concat(o), x = Ft(_);
319
- l ? l(x) : Mt({ csvContent: x, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
319
+ ]), b = l.concat([t]).concat(o), w = Mt(b);
320
+ a ? a(w) : zt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
320
321
  }
321
- const X = d(!1);
322
- function bt(l) {
323
- X.value = l, fe.value += 1;
322
+ const H = d(!1);
323
+ function De(a) {
324
+ H.value = a, fe.value += 1;
324
325
  }
325
- function De() {
326
+ function Ee() {
326
327
  $.value.showTable = !$.value.showTable;
327
328
  }
328
329
  const mt = d({
329
330
  none: 0,
330
331
  asc: 1,
331
332
  desc: 2
332
- }), O = d(0), ae = d(!1);
333
- We(() => {
333
+ }), F = d(0), le = d(!1);
334
+ Ge(() => {
334
335
  ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
335
336
  componentName: "VueUiVerticalBar",
336
337
  type: "attributeWrongValue",
337
338
  property: "style.chart.layout.bars.sort",
338
339
  key: e.value.style.chart.layout.bars.sort
339
- }), O.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = O.value === 2, ae.value = O.value === 0;
340
+ }), F.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = F.value === 2, le.value = F.value === 0;
340
341
  });
341
342
  function kt() {
342
- O.value += 1, O.value > 2 && (O.value = 0);
343
- }
344
- function Ee() {
345
- kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
343
+ F.value += 1, F.value > 2 && (F.value = 0);
346
344
  }
347
345
  function Ue() {
346
+ kt(), $.value.sortDesc = F.value === 2, le.value = F.value === 0, ae();
347
+ }
348
+ function Xe() {
348
349
  $.value.showTooltip = !$.value.showTooltip;
349
350
  }
350
351
  const oe = d(!1);
351
352
  function he() {
352
353
  oe.value = !oe.value;
353
354
  }
354
- return Je({
355
- getData: gt,
356
- recalculateHeight: le,
355
+ async function _t({ scale: a = 2 } = {}) {
356
+ if (!I.value) return;
357
+ const { width: l, height: t } = I.value.getBoundingClientRect(), o = l / t, { imageUri: b, base64: w } = await Gt({ domElement: I.value, base64: !0, img: !0, scale: a });
358
+ return {
359
+ imageUri: b,
360
+ base64: w,
361
+ title: e.value.style.chart.title.text,
362
+ width: l,
363
+ height: t,
364
+ aspectRatio: o
365
+ };
366
+ }
367
+ return Qe({
368
+ getData: ft,
369
+ getImage: _t,
370
+ recalculateHeight: ae,
357
371
  generatePdf: Ne,
358
372
  generateCsv: Re,
359
- generateImage: Pe,
360
- toggleTable: De,
361
- toggleSort: Ee,
362
- toggleTooltip: Ue,
363
- toggleAnnotator: he
364
- }), (l, a) => (u(), i("div", {
365
- class: B(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
373
+ generateImage: Se,
374
+ toggleTable: Ee,
375
+ toggleSort: Ue,
376
+ toggleTooltip: Xe,
377
+ toggleAnnotator: he,
378
+ toggleFullscreen: De
379
+ }), (a, l) => (u(), i("div", {
380
+ class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
366
381
  ref_key: "verticalBarChart",
367
- ref: Y,
382
+ ref: I,
368
383
  id: `vue-ui-vertical-bar_${C.value}`,
369
384
  style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
370
- onMouseenter: a[5] || (a[5] = () => r($e)(!0)),
371
- onMouseleave: a[6] || (a[6] = () => r($e)(!1))
385
+ onMouseenter: l[5] || (l[5] = () => r($e)(!0)),
386
+ onMouseleave: l[6] || (l[6] = () => r($e)(!1))
372
387
  }, [
373
- e.value.userOptions.buttons.annotator ? (u(), R(r(tt), {
388
+ e.value.userOptions.buttons.annotator ? (u(), D(r(at), {
374
389
  key: 0,
375
390
  svgRef: r(xe),
376
391
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -378,7 +393,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
378
393
  active: oe.value,
379
394
  onClose: he
380
395
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
381
- dt.value ? (u(), i("div", {
396
+ vt.value ? (u(), i("div", {
382
397
  key: 1,
383
398
  ref_key: "noTitle",
384
399
  ref: ke,
@@ -391,7 +406,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
391
406
  ref: be,
392
407
  style: "width:100%;background:transparent;padding-bottom:12px"
393
408
  }, [
394
- (u(), R(Ht, {
409
+ (u(), D(Wt, {
395
410
  key: `title_${_e.value}`,
396
411
  config: {
397
412
  title: {
@@ -405,9 +420,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
405
420
  }
406
421
  }, null, 8, ["config"]))
407
422
  ], 512)) : y("", !0),
408
- e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), R(r(ot), {
423
+ e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), D(r(nt), {
409
424
  ref_key: "details",
410
- ref: st,
425
+ ref: rt,
411
426
  key: `user_options_${fe.value}`,
412
427
  backgroundColor: e.value.style.chart.backgroundColor,
413
428
  color: e.value.style.chart.color,
@@ -421,130 +436,131 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
421
436
  hasTable: e.value.userOptions.buttons.table,
422
437
  hasSort: e.value.userOptions.buttons.sort,
423
438
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
424
- isFullscreen: X.value,
439
+ isFullscreen: H.value,
425
440
  isTooltip: $.value.showTooltip,
426
441
  titles: { ...e.value.userOptions.buttonTitles },
427
- chartElement: Y.value,
442
+ chartElement: I.value,
428
443
  position: e.value.userOptions.position,
429
444
  hasAnnotator: e.value.userOptions.buttons.annotator,
430
445
  isAnnotation: oe.value,
431
446
  callbacks: e.value.userOptions.callbacks,
432
- onToggleFullscreen: bt,
447
+ printScale: e.value.userOptions.print.scale,
448
+ onToggleFullscreen: De,
433
449
  onGeneratePdf: r(Ne),
434
450
  onGenerateCsv: Re,
435
- onGenerateImage: r(Pe),
436
- onToggleTable: De,
437
- onToggleSort: Ee,
438
- onToggleTooltip: Ue,
451
+ onGenerateImage: r(Se),
452
+ onToggleTable: Ee,
453
+ onToggleSort: Ue,
454
+ onToggleTooltip: Xe,
439
455
  onToggleAnnotator: he,
440
456
  style: c({
441
457
  visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
442
458
  })
443
459
  }, pe({ _: 2 }, [
444
- l.$slots.menuIcon ? {
460
+ a.$slots.menuIcon ? {
445
461
  name: "menuIcon",
446
- fn: k(({ isOpen: t, color: o }) => [
447
- b(l.$slots, "menuIcon", W(G({ isOpen: t, color: o })), void 0, !0)
462
+ fn: _(({ isOpen: t, color: o }) => [
463
+ m(a.$slots, "menuIcon", G(j({ isOpen: t, color: o })), void 0, !0)
448
464
  ]),
449
465
  key: "0"
450
466
  } : void 0,
451
- l.$slots.optionTooltip ? {
467
+ a.$slots.optionTooltip ? {
452
468
  name: "optionTooltip",
453
- fn: k(() => [
454
- b(l.$slots, "optionTooltip", {}, void 0, !0)
469
+ fn: _(() => [
470
+ m(a.$slots, "optionTooltip", {}, void 0, !0)
455
471
  ]),
456
472
  key: "1"
457
473
  } : void 0,
458
- l.$slots.optionPdf ? {
474
+ a.$slots.optionPdf ? {
459
475
  name: "optionPdf",
460
- fn: k(() => [
461
- b(l.$slots, "optionPdf", {}, void 0, !0)
476
+ fn: _(() => [
477
+ m(a.$slots, "optionPdf", {}, void 0, !0)
462
478
  ]),
463
479
  key: "2"
464
480
  } : void 0,
465
- l.$slots.optionCsv ? {
481
+ a.$slots.optionCsv ? {
466
482
  name: "optionCsv",
467
- fn: k(() => [
468
- b(l.$slots, "optionCsv", {}, void 0, !0)
483
+ fn: _(() => [
484
+ m(a.$slots, "optionCsv", {}, void 0, !0)
469
485
  ]),
470
486
  key: "3"
471
487
  } : void 0,
472
- l.$slots.optionImg ? {
488
+ a.$slots.optionImg ? {
473
489
  name: "optionImg",
474
- fn: k(() => [
475
- b(l.$slots, "optionImg", {}, void 0, !0)
490
+ fn: _(() => [
491
+ m(a.$slots, "optionImg", {}, void 0, !0)
476
492
  ]),
477
493
  key: "4"
478
494
  } : void 0,
479
- l.$slots.optionTable ? {
495
+ a.$slots.optionTable ? {
480
496
  name: "optionTable",
481
- fn: k(() => [
482
- b(l.$slots, "optionTable", {}, void 0, !0)
497
+ fn: _(() => [
498
+ m(a.$slots, "optionTable", {}, void 0, !0)
483
499
  ]),
484
500
  key: "5"
485
501
  } : void 0,
486
- l.$slots.optionLabels ? {
502
+ a.$slots.optionLabels ? {
487
503
  name: "optionLabels",
488
- fn: k(() => [
489
- b(l.$slots, "optionLabels", {}, void 0, !0)
504
+ fn: _(() => [
505
+ m(a.$slots, "optionLabels", {}, void 0, !0)
490
506
  ]),
491
507
  key: "6"
492
508
  } : void 0,
493
- l.$slots.optionSort ? {
509
+ a.$slots.optionSort ? {
494
510
  name: "optionSort",
495
- fn: k(() => [
496
- b(l.$slots, "optionSort", {}, void 0, !0)
511
+ fn: _(() => [
512
+ m(a.$slots, "optionSort", {}, void 0, !0)
497
513
  ]),
498
514
  key: "7"
499
515
  } : void 0,
500
- l.$slots.optionFullscreen ? {
516
+ a.$slots.optionFullscreen ? {
501
517
  name: "optionFullscreen",
502
- fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
503
- b(l.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
518
+ fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
519
+ m(a.$slots, "optionFullscreen", G(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
504
520
  ]),
505
521
  key: "8"
506
522
  } : void 0,
507
- l.$slots.optionAnnotator ? {
523
+ a.$slots.optionAnnotator ? {
508
524
  name: "optionAnnotator",
509
- fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
510
- b(l.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
525
+ fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
526
+ m(a.$slots, "optionAnnotator", G(j({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
511
527
  ]),
512
528
  key: "9"
513
529
  } : void 0
514
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
530
+ ]), 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),
515
531
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
516
532
  key: 4,
517
533
  ref_key: "chartLegend",
518
534
  ref: re
519
535
  }, [
520
- (u(), R(qe, {
536
+ (u(), D(Ye, {
521
537
  key: `legend_top_${ie.value}`,
522
- legendSet: F.value,
538
+ legendSet: M.value,
523
539
  config: Me.value,
524
- onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
540
+ onClickMarker: l[0] || (l[0] = ({ legend: t }) => K(t.id))
525
541
  }, pe({
526
- item: k(({ legend: t, index: o }) => [
542
+ item: _(({ legend: t, index: o }) => [
527
543
  n("div", {
528
- onClick: (_) => K(t.id),
529
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
544
+ onClick: (b) => K(t.id),
545
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
530
546
  }, h(t.name) + ": " + h(r(ne)(
531
547
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
532
548
  t.value,
533
- r(E)({
549
+ r(U)({
534
550
  p: e.value.style.chart.legend.prefix,
535
551
  v: t.value,
536
552
  s: e.value.style.chart.legend.suffix,
537
553
  r: e.value.style.chart.legend.roundingValue
538
554
  }),
539
555
  { datapoint: t, seriesIndex: o }
540
- )), 13, jt)
556
+ )), 13, Yt)
541
557
  ]),
542
558
  _: 2
543
559
  }, [
544
- l.$slots.pattern ? {
560
+ a.$slots.pattern ? {
545
561
  name: "legend-pattern",
546
- fn: k(({ legend: t, index: o }) => [
547
- Q(Ye, {
562
+ fn: _(({ legend: t, index: o }) => [
563
+ Q(Ke, {
548
564
  shape: t.shape,
549
565
  radius: 30,
550
566
  stroke: "none",
@@ -560,13 +576,13 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
560
576
  key: 5,
561
577
  ref_key: "svgRef",
562
578
  ref: xe,
563
- xmlns: r(It),
564
- class: B({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
579
+ xmlns: r(Ot),
580
+ class: R({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
565
581
  viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
566
582
  style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
567
583
  }, [
568
- Q(r(et)),
569
- l.$slots["chart-background"] ? (u(), i("foreignObject", {
584
+ Q(r(tt)),
585
+ a.$slots["chart-background"] ? (u(), i("foreignObject", {
570
586
  key: 0,
571
587
  x: 0,
572
588
  y: 0,
@@ -576,9 +592,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
576
592
  pointerEvents: "none"
577
593
  }
578
594
  }, [
579
- b(l.$slots, "chart-background", {}, void 0, !0)
580
- ], 8, Yt)) : y("", !0),
581
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
595
+ m(a.$slots, "chart-background", {}, void 0, !0)
596
+ ], 8, Jt)) : y("", !0),
597
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("linearGradient", {
582
598
  x1: "0%",
583
599
  y1: "0%",
584
600
  x2: "100%",
@@ -588,53 +604,53 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
588
604
  n("stop", {
589
605
  offset: "0%",
590
606
  "stop-color": t.color
591
- }, null, 8, Jt),
607
+ }, null, 8, Zt),
592
608
  n("stop", {
593
609
  offset: "100%",
594
- "stop-color": r(ge)(r(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
595
- }, null, 8, Qt)
596
- ], 8, Kt))), 256)),
597
- l.$slots.pattern ? (u(), i("g", Zt, [
598
- (u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
599
- b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
610
+ "stop-color": r(ge)(r(Ft)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
611
+ }, null, 8, ea)
612
+ ], 8, Qt))), 256)),
613
+ a.$slots.pattern ? (u(), i("g", ta, [
614
+ (u(!0), i(q, null, Y(A.value, (t) => (u(), i("defs", null, [
615
+ m(a.$slots, "pattern", Ct({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
600
616
  ]))), 256))
601
617
  ])) : y("", !0),
602
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
618
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
603
619
  n("rect", {
604
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
620
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
605
621
  y: s.value.top + (f.value + v.value) * o,
606
- width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
622
+ width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
607
623
  height: v.value <= 0 ? 1e-4 : v.value,
608
624
  fill: e.value.style.chart.layout.bars.underlayerColor,
609
625
  rx: e.value.style.chart.layout.bars.borderRadius,
610
- class: B({ animated: e.value.useCssAnimation })
611
- }, null, 10, el)
626
+ class: R({ animated: e.value.useCssAnimation })
627
+ }, null, 10, aa)
612
628
  ]))), 256)),
613
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
629
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
614
630
  n("rect", {
615
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
631
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
616
632
  y: s.value.top + (f.value + v.value) * o,
617
- width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
633
+ width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
618
634
  height: v.value <= 0 ? 1e-4 : v.value,
619
635
  fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
620
636
  rx: e.value.style.chart.layout.bars.borderRadius,
621
637
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
622
638
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
623
- class: B({ animated: e.value.useCssAnimation })
624
- }, null, 10, tl),
625
- l.$slots.pattern ? (u(), i("rect", {
639
+ class: R({ animated: e.value.useCssAnimation })
640
+ }, null, 10, la),
641
+ a.$slots.pattern ? (u(), i("rect", {
626
642
  key: 0,
627
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
643
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : x(t.value) <= 0 ? 1e-4 : x(t.value)) : s.value.left),
628
644
  y: s.value.top + (f.value + v.value) * o,
629
- width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
645
+ width: r(N)(x(t.value) <= 0 ? 1e-4 : x(t.value)),
630
646
  height: v.value <= 0 ? 1e-4 : v.value,
631
647
  fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
632
648
  rx: e.value.style.chart.layout.bars.borderRadius,
633
649
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
634
650
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
635
- class: B({ animated: e.value.useCssAnimation })
636
- }, null, 10, ll)) : y("", !0),
637
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
651
+ class: R({ animated: e.value.useCssAnimation })
652
+ }, null, 10, oa)) : y("", !0),
653
+ (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== A.value.length - 1 ? (u(), i("line", {
638
654
  key: 1,
639
655
  x1: 0,
640
656
  x2: s.value.left,
@@ -643,8 +659,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
643
659
  stroke: e.value.style.chart.layout.separators.color,
644
660
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
645
661
  "stroke-linecap": "round"
646
- }, null, 8, al)) : y("", !0),
647
- A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
662
+ }, null, 8, na)) : y("", !0),
663
+ B.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
648
664
  key: 2,
649
665
  x1: s.value.left + s.value.width / 2,
650
666
  x2: s.value.left + s.value.width / 2,
@@ -653,15 +669,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
653
669
  stroke: e.value.style.chart.layout.separators.color,
654
670
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
655
671
  "stroke-linecap": "round"
656
- }, null, 8, ol)) : y("", !0),
672
+ }, null, 8, ua)) : y("", !0),
657
673
  n("text", {
658
- x: A.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : yt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
674
+ x: B.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : gt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
659
675
  y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
660
- "text-anchor": !A.value || t.sign === -1 ? "start" : "end",
676
+ "text-anchor": !B.value || t.sign === -1 ? "start" : "end",
661
677
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
662
678
  fill: e.value.style.chart.layout.bars.dataLabels.color,
663
679
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
664
- }, h(Be(t.value, t, o, t.sign)), 9, nl),
680
+ }, h(Be(t.value, t, o, t.sign)), 9, sa),
665
681
  (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
666
682
  key: 3,
667
683
  "text-anchor": "end",
@@ -670,7 +686,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
670
686
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
671
687
  fill: e.value.style.chart.layout.bars.nameLabels.color,
672
688
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
673
- }, h(t.name), 9, ul)) : y("", !0),
689
+ }, h(t.name), 9, ra)) : y("", !0),
674
690
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
675
691
  key: 4,
676
692
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -679,7 +695,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
679
695
  fill: e.value.style.chart.layout.bars.parentLabels.color,
680
696
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
681
697
  "text-anchor": "start"
682
- }, h(J(t, o).name), 9, sl)) : y("", !0),
698
+ }, h(J(t, o).name), 9, ia)) : y("", !0),
683
699
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
684
700
  key: 5,
685
701
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -688,25 +704,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
688
704
  fill: e.value.style.chart.layout.bars.parentLabels.color,
689
705
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
690
706
  "text-anchor": "start"
691
- }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : y("", !0),
707
+ }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, da)) : y("", !0),
692
708
  n("rect", {
693
709
  x: 0,
694
710
  y: s.value.top + (f.value + v.value) * o - f.value / 2,
695
711
  width: g.value.width <= 0 ? 1e-4 : g.value.width,
696
712
  height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
697
713
  fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
698
- onMouseenter: (_) => ft(t, o),
699
- onMouseleave: a[1] || (a[1] = (_) => {
700
- rt.value = null, ue.value = !1, ve.value = null;
714
+ onMouseenter: (b) => bt(t, o),
715
+ onMouseleave: l[1] || (l[1] = (b) => {
716
+ it.value = null, ue.value = !1, ve.value = null;
701
717
  })
702
- }, null, 40, il)
718
+ }, null, 40, va)
703
719
  ]))), 256)),
704
- b(l.$slots, "svg", { svg: g.value }, void 0, !0)
705
- ], 14, qt)) : y("", !0),
706
- l.$slots.watermark ? (u(), i("div", dl, [
707
- b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
720
+ m(a.$slots, "svg", { svg: g.value }, void 0, !0)
721
+ ], 14, Kt)) : y("", !0),
722
+ a.$slots.watermark ? (u(), i("div", ca, [
723
+ m(a.$slots, "watermark", G(j({ isPrinting: r(Te) || r(Le) })), void 0, !0)
708
724
  ])) : y("", !0),
709
- ee.value ? y("", !0) : (u(), R(r(lt), {
725
+ ee.value ? y("", !0) : (u(), D(r(lt), {
710
726
  key: 7,
711
727
  config: {
712
728
  type: "verticalBar",
@@ -726,34 +742,34 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
726
742
  ref_key: "chartLegend",
727
743
  ref: re
728
744
  }, [
729
- (u(), R(qe, {
745
+ (u(), D(Ye, {
730
746
  key: `legend_bottom_${ie.value}`,
731
- legendSet: F.value,
747
+ legendSet: M.value,
732
748
  config: Me.value,
733
- onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
749
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => K(t.id))
734
750
  }, pe({
735
- item: k(({ legend: t, index: o }) => [
751
+ item: _(({ legend: t, index: o }) => [
736
752
  n("div", {
737
- onClick: (_) => K(t.id),
738
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
753
+ onClick: (b) => K(t.id),
754
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
739
755
  }, h(t.name) + ": " + h(r(ne)(
740
756
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
741
757
  t.value,
742
- r(E)({
758
+ r(U)({
743
759
  p: e.value.style.chart.legend.prefix,
744
760
  v: t.value,
745
761
  s: e.value.style.chart.legend.suffix,
746
762
  r: e.value.style.chart.legend.roundingValue
747
763
  }),
748
764
  { datapoint: t, seriesIndex: o }
749
- )), 13, vl)
765
+ )), 13, ha)
750
766
  ]),
751
767
  _: 2
752
768
  }, [
753
- l.$slots.pattern ? {
769
+ a.$slots.pattern ? {
754
770
  name: "legend-pattern",
755
- fn: k(({ legend: t, index: o }) => [
756
- Q(Ye, {
771
+ fn: _(({ legend: t, index: o }) => [
772
+ Q(Ke, {
757
773
  shape: t.shape,
758
774
  radius: 30,
759
775
  stroke: "none",
@@ -765,17 +781,17 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
765
781
  } : void 0
766
782
  ]), 1032, ["legendSet", "config"]))
767
783
  ], 512)) : y("", !0),
768
- b(l.$slots, "legend", { legend: F.value }, void 0, !0),
769
- l.$slots.source ? (u(), i("div", {
784
+ m(a.$slots, "legend", { legend: M.value }, void 0, !0),
785
+ a.$slots.source ? (u(), i("div", {
770
786
  key: 9,
771
787
  ref_key: "source",
772
788
  ref: me,
773
789
  dir: "auto"
774
790
  }, [
775
- b(l.$slots, "source", {}, void 0, !0)
791
+ m(a.$slots, "source", {}, void 0, !0)
776
792
  ], 512)) : y("", !0),
777
- Q(r(at), {
778
- show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
793
+ Q(r(ot), {
794
+ show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
779
795
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
780
796
  color: e.value.style.chart.tooltip.color,
781
797
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -785,20 +801,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
785
801
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
786
802
  position: e.value.style.chart.tooltip.position,
787
803
  offsetY: e.value.style.chart.tooltip.offsetY,
788
- parent: Y.value,
804
+ parent: I.value,
789
805
  content: se.value,
790
- isFullscreen: X.value,
806
+ isFullscreen: H.value,
791
807
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
792
808
  }, {
793
- "tooltip-before": k(() => [
794
- b(l.$slots, "tooltip-before", W(G({ ...ce.value })), void 0, !0)
809
+ "tooltip-before": _(() => [
810
+ m(a.$slots, "tooltip-before", G(j({ ...ce.value })), void 0, !0)
795
811
  ]),
796
- "tooltip-after": k(() => [
797
- b(l.$slots, "tooltip-after", W(G({ ...ce.value })), void 0, !0)
812
+ "tooltip-after": _(() => [
813
+ m(a.$slots, "tooltip-after", G(j({ ...ce.value })), void 0, !0)
798
814
  ]),
799
815
  _: 3
800
816
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
801
- ee.value ? (u(), R(Xt, {
817
+ ee.value ? (u(), D(Ht, {
802
818
  key: 10,
803
819
  hideDetails: "",
804
820
  config: {
@@ -814,21 +830,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
814
830
  }
815
831
  }
816
832
  }, {
817
- content: k(() => [
833
+ content: _(() => [
818
834
  n("div", {
819
835
  ref_key: "tableContainer",
820
836
  ref: Ve,
821
837
  class: "vue-ui-vertical-bar-table atom-data-table"
822
838
  }, [
823
- n("div", cl, [
839
+ n("div", pa, [
824
840
  n("div", {
825
841
  role: "button",
826
842
  tabindex: "0",
827
843
  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};`),
828
- onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
829
- onKeypress: a[4] || (a[4] = Ct((t) => $.value.showTable = !1, ["enter"]))
844
+ onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
845
+ onKeypress: l[4] || (l[4] = Tt((t) => $.value.showTable = !1, ["enter"]))
830
846
  }, [
831
- Q(r(Ze), {
847
+ Q(r(et), {
832
848
  name: "close",
833
849
  stroke: e.value.table.th.color,
834
850
  "stroke-width": 2
@@ -836,25 +852,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
836
852
  ], 36),
837
853
  n("div", {
838
854
  style: { width: "100%", "container-type": "inline-size" },
839
- class: B({ "vue-ui-responsive": Ie.value })
855
+ class: R({ "vue-ui-responsive": Ie.value })
840
856
  }, [
841
- n("table", hl, [
857
+ n("table", ya, [
842
858
  n("caption", {
843
859
  style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
844
860
  class: "vue-ui-data-table__caption"
845
861
  }, [
846
- Tt(h(e.value.style.chart.title.text) + " ", 1),
847
- e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
862
+ Lt(h(e.value.style.chart.title.text) + " ", 1),
863
+ e.value.style.chart.title.subtitle.text ? (u(), i("span", ga, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
848
864
  ], 4),
849
865
  n("thead", null, [
850
866
  n("tr", {
851
867
  role: "row",
852
868
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
853
869
  }, [
854
- (u(!0), i(j, null, q(L.value.head, (t) => (u(), i("th", {
870
+ (u(!0), i(q, null, Y(L.value.head, (t) => (u(), i("th", {
855
871
  style: c(`outline:${e.value.table.th.outline}`)
856
872
  }, [
857
- n("div", yl, h(t), 1)
873
+ n("div", fa, h(t), 1)
858
874
  ], 4))), 256))
859
875
  ], 4),
860
876
  n("tr", null, [
@@ -863,7 +879,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
863
879
  }, null, 4),
864
880
  n("th", {
865
881
  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`)
866
- }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
882
+ }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(P.value) ? "" : P.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
867
883
  n("th", {
868
884
  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`)
869
885
  }, "100%", 4),
@@ -882,8 +898,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
882
898
  ])
883
899
  ]),
884
900
  n("tbody", null, [
885
- (u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
886
- class: B({ "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 }),
901
+ (u(!0), i(q, null, Y(L.value.body, (t, o) => (u(), i("tr", {
902
+ class: R({ "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 }),
887
903
  style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
888
904
  }, [
889
905
  n("td", {
@@ -891,56 +907,56 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
891
907
  style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
892
908
  "data-cell": L.value.head[0] ?? ""
893
909
  }, [
894
- n("div", fl, [
910
+ n("div", ma, [
895
911
  t.color ? (u(), i("span", {
896
912
  key: 0,
897
913
  style: c(`color:${t.color};margin-right:3px`)
898
914
  }, "⬤", 4)) : y("", !0),
899
915
  n("span", null, h(t.parentName), 1)
900
916
  ])
901
- ], 12, gl),
917
+ ], 12, ba),
902
918
  n("td", {
903
919
  class: "vue-ui-data-table__tbody__td",
904
920
  style: c(`outline:${e.value.table.td.outline}`),
905
921
  "data-cell": L.value.head[1] ?? ""
906
922
  }, [
907
- n("div", ml, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
908
- ], 12, bl),
923
+ n("div", _a, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
924
+ ], 12, ka),
909
925
  n("td", {
910
926
  class: "vue-ui-data-table__tbody__td",
911
927
  style: c(`outline:${e.value.table.td.outline}`),
912
928
  "data-cell": L.value.head[2] ?? ""
913
929
  }, [
914
- n("div", _l, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
915
- ], 12, kl),
930
+ n("div", wa, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
931
+ ], 12, $a),
916
932
  n("td", {
917
933
  class: "vue-ui-data-table__tbody__td",
918
934
  style: c(`outline:${e.value.table.td.outline}`),
919
935
  "data-cell": L.value.head[3] ?? ""
920
936
  }, [
921
- n("div", wl, h(t.childName), 1)
922
- ], 12, $l),
937
+ n("div", Ca, h(t.childName), 1)
938
+ ], 12, xa),
923
939
  n("td", {
924
940
  class: "vue-ui-data-table__tbody__td",
925
941
  style: c(`outline:${e.value.table.td.outline}`),
926
942
  "data-cell": L.value.head[4] ?? ""
927
943
  }, [
928
- n("div", Cl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
929
- ], 12, xl),
944
+ n("div", La, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
945
+ ], 12, Ta),
930
946
  n("td", {
931
947
  class: "vue-ui-data-table__tbody__td",
932
948
  style: c(`outline:${e.value.table.td.outline}`),
933
949
  "data-cell": L.value.head[5] ?? ""
934
950
  }, [
935
- n("div", Ll, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
936
- ], 12, Tl),
951
+ n("div", Sa, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
952
+ ], 12, Na),
937
953
  n("td", {
938
954
  class: "vue-ui-data-table__tbody__td",
939
955
  style: c(`outline:${e.value.table.td.outline}`),
940
956
  "data-cell": L.value.head[6] ?? ""
941
957
  }, [
942
- n("div", Pl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
943
- ], 12, Nl)
958
+ n("div", Va, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
959
+ ], 12, Pa)
944
960
  ], 6))), 256))
945
961
  ])
946
962
  ])
@@ -950,9 +966,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
950
966
  ]),
951
967
  _: 1
952
968
  }, 8, ["config"])) : y("", !0)
953
- ], 46, Gt));
969
+ ], 46, qt));
954
970
  }
955
- }, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-56a29a80"]]);
971
+ }, Ga = /* @__PURE__ */ jt(Ia, [["__scopeId", "data-v-ced63abf"]]);
956
972
  export {
957
- Xl as default
973
+ Ga as default
958
974
  };