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

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