vue-data-ui 2.16.6 → 2.17.0

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 (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -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 St, p as D, a as Pt, 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-DvIXJm6t.js";
3
- import { t as Bt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Dt } from "./usePrinter-CWnXbGMb.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-D55kCO5G.js";
9
- import qe from "./Legend-nBXoxXJH.js";
10
- import Ht from "./Title-Gi81VwUM.js";
11
- import { _ as Ye } from "./Shape-Bnf512BA.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 m, 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 b, createVNode as Q, createSlots as pe, withCtx as k, 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-pPGk-uhD.js";
3
+ import { t as Rt, u as Dt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as qe } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as Et } from "./usePrinter-DDHcrl0A.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-CVnA550V.js";
9
+ import Ye from "./Legend-Bxlv67uY.js";
10
+ import Wt from "./Title-B-2bV0SW.js";
11
+ import { _ as Ke } from "./Shape-DtFT5EJa.js";
12
+ import Gt from "./img-Y_hYz-ZC.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"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pl = {
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
- "7fbb7b73": l.tdo
34
+ setup(Je, { expose: Qe, emit: Ze }) {
35
+ $t((a) => ({
36
+ "2cc0ddf2": a.tdo
36
37
  }));
37
- const Ze = H(() => import("./BaseIcon-Bn996RXm.js")), et = H(() => import("./PackageVersion-Bg_9KCU-.js")), tt = H(() => import("./PenAndPaper-BPTpbnay.js")), lt = H(() => import("./vue-ui-skeleton-BAOt2neL.js")), at = H(() => import("./Tooltip-CJxVw7-T.js")), ot = H(() => import("./UserOptions-CBEK6_jo.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-naqtCxVi.js")), tt = W(() => import("./PackageVersion-5TR4ocqp.js")), at = W(() => import("./PenAndPaper-D6AqipIO.js")), lt = W(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ot = W(() => import("./Tooltip-CoQnTnr-.js")), nt = W(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_vertical_bar: ut } = Nt(), st = wt(), T = Je, ee = m(() => !!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), F = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), dt = Ze, e = m({
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: Pt.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: St[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: Se } = 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), Pe = 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 = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = m(() => It(e.value.customPalette)), Ve = d(null), Ie = d(!1), ct = m(() => e.value.table.responsiveBreakpoint), I = 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: F.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
+ I.value && (X.value && I.value.unobserve(X.value), I.value.disconnect()), I.value = new ResizeObserver(a), X.value = F.value.parentNode, I.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
+ I.value && (X.value && I.value.unobserve(X.value), I.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 = m(() => $.value.sortDesc), M = m(() => (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,12 +115,12 @@ 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, _ = N(a.value ? a.value : o ? a.children.map((p) => p.value || 0).reduce((p, V) => p + V, 0) : 0), x = _ >= 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
125
  opacity: S.value.includes(t) ? 0.5 : 1,
125
126
  value: Math.abs(_),
@@ -128,36 +129,36 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
128
129
  isChild: !1,
129
130
  segregate: () => K(t),
130
131
  isSegregated: S.value.includes(t),
131
- color: ye(l.color) || Pe.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) => ({
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
+ parentName: a.name,
140
141
  parentValue: _,
141
142
  parentSign: x,
142
- id: `vertical_child_${a}_${V}_${C.value}`,
143
+ id: `vertical_child_${l}_${V}_${C.value}`,
143
144
  childIndex: V,
144
- color: ye(p.color) || ye(l.color) || Pe.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 = m(() => ({
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 = m(() => (v.value + f.value) * te.value), ze = d(512), g = m(() => ({
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,
@@ -172,31 +173,31 @@ 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
179
  const S = d([]);
179
- function K(l) {
180
- S.value.includes(l) ? S.value = S.value.filter((a) => a !== l) : S.value.push(l), le(), it("selectLegend", M.value);
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) => !S.value.includes(l.id))), P = 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) / P.value * 100),
183
+ const z = m(() => M.value.filter((a) => !S.value.includes(a.id))), P = m(() => 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) / P.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 = m(() => z.value.flatMap((a) => a.hasChildren ? a.children : a)), B = m(() => A.value.map((a) => a.sign).includes(-1)), yt = m(() => Math.max(...z.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
192
+ function w(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 w(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((x) => x.id === a.parentId), o = s.value.top + (f.value + v.value) * l, _ = t.children.length * (f.value + v.value);
200
201
  return {
201
202
  y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
203
  name: t.name,
@@ -205,70 +206,70 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
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, _ = a.isChild ? a.name : "", x = e.value.style.chart.tooltip.customFormat;
222
+ At(x) && Bt(() => x({
223
+ datapoint: a,
224
+ series: M.value,
224
225
  config: e.value,
225
- seriesIndex: a
226
+ seriesIndex: l
226
227
  })) ? se.value = x({
227
- datapoint: l,
228
- series: F.value,
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 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>
233
234
  ${_ ? `<div>${_}</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) / P.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
258
  const _ = 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)})`;
267
+ { datapoint: l, seriesIndex: t }
268
+ ), x = `(${Ae(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
268
269
  return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${x}` : ""}`;
269
270
  }
270
271
  const L = m(() => {
271
- const l = [
272
+ const a = [
272
273
  e.value.translations.parentName,
273
274
  e.value.translations.value,
274
275
  e.value.translations.percentageToTotal,
@@ -276,7 +277,7 @@ 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,
@@ -304,10 +305,10 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
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,69 @@ 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
+ ]), _ = l.concat([t]).concat(o), x = Mt(_);
320
+ a ? a(x) : zt({ csvContent: x, 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
+ }), O = 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
+ }), O.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = O.value === 2, le.value = O.value === 0;
340
341
  });
341
342
  function kt() {
342
343
  O.value += 1, O.value > 2 && (O.value = 0);
343
344
  }
344
- function Ee() {
345
- kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
346
- }
347
345
  function Ue() {
346
+ kt(), $.value.sortDesc = O.value === 2, le.value = O.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 (!F.value) return;
357
+ const { imageUri: l, base64: t } = await Gt({ domElement: F.value, base64: !0, img: !0, scale: a });
358
+ return { imageUri: l, base64: t };
359
+ }
360
+ return Qe({
361
+ getData: ft,
362
+ getImage: _t,
363
+ recalculateHeight: ae,
357
364
  generatePdf: Ne,
358
365
  generateCsv: Re,
359
366
  generateImage: Se,
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"}`),
367
+ toggleTable: Ee,
368
+ toggleSort: Ue,
369
+ toggleTooltip: Xe,
370
+ toggleAnnotator: he,
371
+ toggleFullscreen: De
372
+ }), (a, l) => (u(), i("div", {
373
+ class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
366
374
  ref_key: "verticalBarChart",
367
- ref: Y,
375
+ ref: F,
368
376
  id: `vue-ui-vertical-bar_${C.value}`,
369
377
  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))
378
+ onMouseenter: l[5] || (l[5] = () => r($e)(!0)),
379
+ onMouseleave: l[6] || (l[6] = () => r($e)(!1))
372
380
  }, [
373
- e.value.userOptions.buttons.annotator ? (u(), R(r(tt), {
381
+ e.value.userOptions.buttons.annotator ? (u(), D(r(at), {
374
382
  key: 0,
375
383
  svgRef: r(xe),
376
384
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -378,7 +386,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
378
386
  active: oe.value,
379
387
  onClose: he
380
388
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
381
- dt.value ? (u(), i("div", {
389
+ vt.value ? (u(), i("div", {
382
390
  key: 1,
383
391
  ref_key: "noTitle",
384
392
  ref: ke,
@@ -391,7 +399,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
391
399
  ref: be,
392
400
  style: "width:100%;background:transparent;padding-bottom:12px"
393
401
  }, [
394
- (u(), R(Ht, {
402
+ (u(), D(Wt, {
395
403
  key: `title_${_e.value}`,
396
404
  config: {
397
405
  title: {
@@ -405,9 +413,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
405
413
  }
406
414
  }, null, 8, ["config"]))
407
415
  ], 512)) : y("", !0),
408
- e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), R(r(ot), {
416
+ e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), D(r(nt), {
409
417
  ref_key: "details",
410
- ref: st,
418
+ ref: rt,
411
419
  key: `user_options_${fe.value}`,
412
420
  backgroundColor: e.value.style.chart.backgroundColor,
413
421
  color: e.value.style.chart.color,
@@ -421,94 +429,94 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
421
429
  hasTable: e.value.userOptions.buttons.table,
422
430
  hasSort: e.value.userOptions.buttons.sort,
423
431
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
424
- isFullscreen: X.value,
432
+ isFullscreen: H.value,
425
433
  isTooltip: $.value.showTooltip,
426
434
  titles: { ...e.value.userOptions.buttonTitles },
427
- chartElement: Y.value,
435
+ chartElement: F.value,
428
436
  position: e.value.userOptions.position,
429
437
  hasAnnotator: e.value.userOptions.buttons.annotator,
430
438
  isAnnotation: oe.value,
431
439
  callbacks: e.value.userOptions.callbacks,
432
440
  printScale: e.value.userOptions.print.scale,
433
- onToggleFullscreen: bt,
441
+ onToggleFullscreen: De,
434
442
  onGeneratePdf: r(Ne),
435
443
  onGenerateCsv: Re,
436
444
  onGenerateImage: r(Se),
437
- onToggleTable: De,
438
- onToggleSort: Ee,
439
- onToggleTooltip: Ue,
445
+ onToggleTable: Ee,
446
+ onToggleSort: Ue,
447
+ onToggleTooltip: Xe,
440
448
  onToggleAnnotator: he,
441
449
  style: c({
442
450
  visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
443
451
  })
444
452
  }, pe({ _: 2 }, [
445
- l.$slots.menuIcon ? {
453
+ a.$slots.menuIcon ? {
446
454
  name: "menuIcon",
447
455
  fn: k(({ isOpen: t, color: o }) => [
448
- b(l.$slots, "menuIcon", W(G({ isOpen: t, color: o })), void 0, !0)
456
+ b(a.$slots, "menuIcon", G(j({ isOpen: t, color: o })), void 0, !0)
449
457
  ]),
450
458
  key: "0"
451
459
  } : void 0,
452
- l.$slots.optionTooltip ? {
460
+ a.$slots.optionTooltip ? {
453
461
  name: "optionTooltip",
454
462
  fn: k(() => [
455
- b(l.$slots, "optionTooltip", {}, void 0, !0)
463
+ b(a.$slots, "optionTooltip", {}, void 0, !0)
456
464
  ]),
457
465
  key: "1"
458
466
  } : void 0,
459
- l.$slots.optionPdf ? {
467
+ a.$slots.optionPdf ? {
460
468
  name: "optionPdf",
461
469
  fn: k(() => [
462
- b(l.$slots, "optionPdf", {}, void 0, !0)
470
+ b(a.$slots, "optionPdf", {}, void 0, !0)
463
471
  ]),
464
472
  key: "2"
465
473
  } : void 0,
466
- l.$slots.optionCsv ? {
474
+ a.$slots.optionCsv ? {
467
475
  name: "optionCsv",
468
476
  fn: k(() => [
469
- b(l.$slots, "optionCsv", {}, void 0, !0)
477
+ b(a.$slots, "optionCsv", {}, void 0, !0)
470
478
  ]),
471
479
  key: "3"
472
480
  } : void 0,
473
- l.$slots.optionImg ? {
481
+ a.$slots.optionImg ? {
474
482
  name: "optionImg",
475
483
  fn: k(() => [
476
- b(l.$slots, "optionImg", {}, void 0, !0)
484
+ b(a.$slots, "optionImg", {}, void 0, !0)
477
485
  ]),
478
486
  key: "4"
479
487
  } : void 0,
480
- l.$slots.optionTable ? {
488
+ a.$slots.optionTable ? {
481
489
  name: "optionTable",
482
490
  fn: k(() => [
483
- b(l.$slots, "optionTable", {}, void 0, !0)
491
+ b(a.$slots, "optionTable", {}, void 0, !0)
484
492
  ]),
485
493
  key: "5"
486
494
  } : void 0,
487
- l.$slots.optionLabels ? {
495
+ a.$slots.optionLabels ? {
488
496
  name: "optionLabels",
489
497
  fn: k(() => [
490
- b(l.$slots, "optionLabels", {}, void 0, !0)
498
+ b(a.$slots, "optionLabels", {}, void 0, !0)
491
499
  ]),
492
500
  key: "6"
493
501
  } : void 0,
494
- l.$slots.optionSort ? {
502
+ a.$slots.optionSort ? {
495
503
  name: "optionSort",
496
504
  fn: k(() => [
497
- b(l.$slots, "optionSort", {}, void 0, !0)
505
+ b(a.$slots, "optionSort", {}, void 0, !0)
498
506
  ]),
499
507
  key: "7"
500
508
  } : void 0,
501
- l.$slots.optionFullscreen ? {
509
+ a.$slots.optionFullscreen ? {
502
510
  name: "optionFullscreen",
503
511
  fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
504
- b(l.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
512
+ b(a.$slots, "optionFullscreen", G(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
505
513
  ]),
506
514
  key: "8"
507
515
  } : void 0,
508
- l.$slots.optionAnnotator ? {
516
+ a.$slots.optionAnnotator ? {
509
517
  name: "optionAnnotator",
510
518
  fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
511
- b(l.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
519
+ b(a.$slots, "optionAnnotator", G(j({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
512
520
  ]),
513
521
  key: "9"
514
522
  } : void 0
@@ -518,11 +526,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
518
526
  ref_key: "chartLegend",
519
527
  ref: re
520
528
  }, [
521
- (u(), R(qe, {
529
+ (u(), D(Ye, {
522
530
  key: `legend_top_${ie.value}`,
523
- legendSet: F.value,
531
+ legendSet: M.value,
524
532
  config: Me.value,
525
- onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
533
+ onClickMarker: l[0] || (l[0] = ({ legend: t }) => K(t.id))
526
534
  }, pe({
527
535
  item: k(({ legend: t, index: o }) => [
528
536
  n("div", {
@@ -531,21 +539,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
531
539
  }, h(t.name) + ": " + h(r(ne)(
532
540
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
533
541
  t.value,
534
- r(E)({
542
+ r(U)({
535
543
  p: e.value.style.chart.legend.prefix,
536
544
  v: t.value,
537
545
  s: e.value.style.chart.legend.suffix,
538
546
  r: e.value.style.chart.legend.roundingValue
539
547
  }),
540
548
  { datapoint: t, seriesIndex: o }
541
- )), 13, jt)
549
+ )), 13, Yt)
542
550
  ]),
543
551
  _: 2
544
552
  }, [
545
- l.$slots.pattern ? {
553
+ a.$slots.pattern ? {
546
554
  name: "legend-pattern",
547
555
  fn: k(({ legend: t, index: o }) => [
548
- Q(Ye, {
556
+ Q(Ke, {
549
557
  shape: t.shape,
550
558
  radius: 30,
551
559
  stroke: "none",
@@ -561,13 +569,13 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
561
569
  key: 5,
562
570
  ref_key: "svgRef",
563
571
  ref: xe,
564
- xmlns: r(It),
565
- class: B({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
572
+ xmlns: r(Ot),
573
+ class: R({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
566
574
  viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
567
575
  style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
568
576
  }, [
569
- Q(r(et)),
570
- l.$slots["chart-background"] ? (u(), i("foreignObject", {
577
+ Q(r(tt)),
578
+ a.$slots["chart-background"] ? (u(), i("foreignObject", {
571
579
  key: 0,
572
580
  x: 0,
573
581
  y: 0,
@@ -577,9 +585,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
577
585
  pointerEvents: "none"
578
586
  }
579
587
  }, [
580
- b(l.$slots, "chart-background", {}, void 0, !0)
581
- ], 8, Yt)) : y("", !0),
582
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
588
+ b(a.$slots, "chart-background", {}, void 0, !0)
589
+ ], 8, Jt)) : y("", !0),
590
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("linearGradient", {
583
591
  x1: "0%",
584
592
  y1: "0%",
585
593
  x2: "100%",
@@ -589,31 +597,31 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
589
597
  n("stop", {
590
598
  offset: "0%",
591
599
  "stop-color": t.color
592
- }, null, 8, Jt),
600
+ }, null, 8, Zt),
593
601
  n("stop", {
594
602
  offset: "100%",
595
- "stop-color": r(ge)(r(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
596
- }, null, 8, Qt)
597
- ], 8, Kt))), 256)),
598
- l.$slots.pattern ? (u(), i("g", Zt, [
599
- (u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
600
- b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
603
+ "stop-color": r(ge)(r(Ft)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
604
+ }, null, 8, ea)
605
+ ], 8, Qt))), 256)),
606
+ a.$slots.pattern ? (u(), i("g", ta, [
607
+ (u(!0), i(q, null, Y(A.value, (t) => (u(), i("defs", null, [
608
+ b(a.$slots, "pattern", Ct({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
601
609
  ]))), 256))
602
610
  ])) : y("", !0),
603
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
611
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
604
612
  n("rect", {
605
- 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),
613
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
606
614
  y: s.value.top + (f.value + v.value) * o,
607
615
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
608
616
  height: v.value <= 0 ? 1e-4 : v.value,
609
617
  fill: e.value.style.chart.layout.bars.underlayerColor,
610
618
  rx: e.value.style.chart.layout.bars.borderRadius,
611
- class: B({ animated: e.value.useCssAnimation })
612
- }, null, 10, el)
619
+ class: R({ animated: e.value.useCssAnimation })
620
+ }, null, 10, aa)
613
621
  ]))), 256)),
614
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
622
+ (u(!0), i(q, null, Y(A.value, (t, o) => (u(), i("g", null, [
615
623
  n("rect", {
616
- 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),
624
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
617
625
  y: s.value.top + (f.value + v.value) * o,
618
626
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
619
627
  height: v.value <= 0 ? 1e-4 : v.value,
@@ -621,11 +629,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
621
629
  rx: e.value.style.chart.layout.bars.borderRadius,
622
630
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
623
631
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
624
- class: B({ animated: e.value.useCssAnimation })
625
- }, null, 10, tl),
626
- l.$slots.pattern ? (u(), i("rect", {
632
+ class: R({ animated: e.value.useCssAnimation })
633
+ }, null, 10, la),
634
+ a.$slots.pattern ? (u(), i("rect", {
627
635
  key: 0,
628
- 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),
636
+ x: r(N)(B.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
629
637
  y: s.value.top + (f.value + v.value) * o,
630
638
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
631
639
  height: v.value <= 0 ? 1e-4 : v.value,
@@ -633,9 +641,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
633
641
  rx: e.value.style.chart.layout.bars.borderRadius,
634
642
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
635
643
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
636
- class: B({ animated: e.value.useCssAnimation })
637
- }, null, 10, ll)) : y("", !0),
638
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
644
+ class: R({ animated: e.value.useCssAnimation })
645
+ }, null, 10, oa)) : y("", !0),
646
+ (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== A.value.length - 1 ? (u(), i("line", {
639
647
  key: 1,
640
648
  x1: 0,
641
649
  x2: s.value.left,
@@ -644,8 +652,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
644
652
  stroke: e.value.style.chart.layout.separators.color,
645
653
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
646
654
  "stroke-linecap": "round"
647
- }, null, 8, al)) : y("", !0),
648
- A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
655
+ }, null, 8, na)) : y("", !0),
656
+ B.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
649
657
  key: 2,
650
658
  x1: s.value.left + s.value.width / 2,
651
659
  x2: s.value.left + s.value.width / 2,
@@ -654,15 +662,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
654
662
  stroke: e.value.style.chart.layout.separators.color,
655
663
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
656
664
  "stroke-linecap": "round"
657
- }, null, 8, ol)) : y("", !0),
665
+ }, null, 8, ua)) : y("", !0),
658
666
  n("text", {
659
- 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,
667
+ 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,
660
668
  y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
661
- "text-anchor": !A.value || t.sign === -1 ? "start" : "end",
669
+ "text-anchor": !B.value || t.sign === -1 ? "start" : "end",
662
670
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
663
671
  fill: e.value.style.chart.layout.bars.dataLabels.color,
664
672
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
665
- }, h(Be(t.value, t, o, t.sign)), 9, nl),
673
+ }, h(Be(t.value, t, o, t.sign)), 9, sa),
666
674
  (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
667
675
  key: 3,
668
676
  "text-anchor": "end",
@@ -671,7 +679,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
671
679
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
672
680
  fill: e.value.style.chart.layout.bars.nameLabels.color,
673
681
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
674
- }, h(t.name), 9, ul)) : y("", !0),
682
+ }, h(t.name), 9, ra)) : y("", !0),
675
683
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
676
684
  key: 4,
677
685
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -680,7 +688,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
680
688
  fill: e.value.style.chart.layout.bars.parentLabels.color,
681
689
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
682
690
  "text-anchor": "start"
683
- }, h(J(t, o).name), 9, sl)) : y("", !0),
691
+ }, h(J(t, o).name), 9, ia)) : y("", !0),
684
692
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
685
693
  key: 5,
686
694
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -689,25 +697,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
689
697
  fill: e.value.style.chart.layout.bars.parentLabels.color,
690
698
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
691
699
  "text-anchor": "start"
692
- }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : y("", !0),
700
+ }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, da)) : y("", !0),
693
701
  n("rect", {
694
702
  x: 0,
695
703
  y: s.value.top + (f.value + v.value) * o - f.value / 2,
696
704
  width: g.value.width <= 0 ? 1e-4 : g.value.width,
697
705
  height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
698
706
  fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
699
- onMouseenter: (_) => ft(t, o),
700
- onMouseleave: a[1] || (a[1] = (_) => {
701
- rt.value = null, ue.value = !1, ve.value = null;
707
+ onMouseenter: (_) => bt(t, o),
708
+ onMouseleave: l[1] || (l[1] = (_) => {
709
+ it.value = null, ue.value = !1, ve.value = null;
702
710
  })
703
- }, null, 40, il)
711
+ }, null, 40, va)
704
712
  ]))), 256)),
705
- b(l.$slots, "svg", { svg: g.value }, void 0, !0)
706
- ], 14, qt)) : y("", !0),
707
- l.$slots.watermark ? (u(), i("div", dl, [
708
- b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
713
+ b(a.$slots, "svg", { svg: g.value }, void 0, !0)
714
+ ], 14, Kt)) : y("", !0),
715
+ a.$slots.watermark ? (u(), i("div", ca, [
716
+ b(a.$slots, "watermark", G(j({ isPrinting: r(Te) || r(Le) })), void 0, !0)
709
717
  ])) : y("", !0),
710
- ee.value ? y("", !0) : (u(), R(r(lt), {
718
+ ee.value ? y("", !0) : (u(), D(r(lt), {
711
719
  key: 7,
712
720
  config: {
713
721
  type: "verticalBar",
@@ -727,11 +735,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
727
735
  ref_key: "chartLegend",
728
736
  ref: re
729
737
  }, [
730
- (u(), R(qe, {
738
+ (u(), D(Ye, {
731
739
  key: `legend_bottom_${ie.value}`,
732
- legendSet: F.value,
740
+ legendSet: M.value,
733
741
  config: Me.value,
734
- onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
742
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => K(t.id))
735
743
  }, pe({
736
744
  item: k(({ legend: t, index: o }) => [
737
745
  n("div", {
@@ -740,21 +748,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
740
748
  }, h(t.name) + ": " + h(r(ne)(
741
749
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
742
750
  t.value,
743
- r(E)({
751
+ r(U)({
744
752
  p: e.value.style.chart.legend.prefix,
745
753
  v: t.value,
746
754
  s: e.value.style.chart.legend.suffix,
747
755
  r: e.value.style.chart.legend.roundingValue
748
756
  }),
749
757
  { datapoint: t, seriesIndex: o }
750
- )), 13, vl)
758
+ )), 13, ha)
751
759
  ]),
752
760
  _: 2
753
761
  }, [
754
- l.$slots.pattern ? {
762
+ a.$slots.pattern ? {
755
763
  name: "legend-pattern",
756
764
  fn: k(({ legend: t, index: o }) => [
757
- Q(Ye, {
765
+ Q(Ke, {
758
766
  shape: t.shape,
759
767
  radius: 30,
760
768
  stroke: "none",
@@ -766,16 +774,16 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
766
774
  } : void 0
767
775
  ]), 1032, ["legendSet", "config"]))
768
776
  ], 512)) : y("", !0),
769
- b(l.$slots, "legend", { legend: F.value }, void 0, !0),
770
- l.$slots.source ? (u(), i("div", {
777
+ b(a.$slots, "legend", { legend: M.value }, void 0, !0),
778
+ a.$slots.source ? (u(), i("div", {
771
779
  key: 9,
772
780
  ref_key: "source",
773
781
  ref: me,
774
782
  dir: "auto"
775
783
  }, [
776
- b(l.$slots, "source", {}, void 0, !0)
784
+ b(a.$slots, "source", {}, void 0, !0)
777
785
  ], 512)) : y("", !0),
778
- Q(r(at), {
786
+ Q(r(ot), {
779
787
  show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
780
788
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
781
789
  color: e.value.style.chart.tooltip.color,
@@ -786,20 +794,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
786
794
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
787
795
  position: e.value.style.chart.tooltip.position,
788
796
  offsetY: e.value.style.chart.tooltip.offsetY,
789
- parent: Y.value,
797
+ parent: F.value,
790
798
  content: se.value,
791
- isFullscreen: X.value,
799
+ isFullscreen: H.value,
792
800
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
793
801
  }, {
794
802
  "tooltip-before": k(() => [
795
- b(l.$slots, "tooltip-before", W(G({ ...ce.value })), void 0, !0)
803
+ b(a.$slots, "tooltip-before", G(j({ ...ce.value })), void 0, !0)
796
804
  ]),
797
805
  "tooltip-after": k(() => [
798
- b(l.$slots, "tooltip-after", W(G({ ...ce.value })), void 0, !0)
806
+ b(a.$slots, "tooltip-after", G(j({ ...ce.value })), void 0, !0)
799
807
  ]),
800
808
  _: 3
801
809
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
802
- ee.value ? (u(), R(Xt, {
810
+ ee.value ? (u(), D(Ht, {
803
811
  key: 10,
804
812
  hideDetails: "",
805
813
  config: {
@@ -821,15 +829,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
821
829
  ref: Ve,
822
830
  class: "vue-ui-vertical-bar-table atom-data-table"
823
831
  }, [
824
- n("div", cl, [
832
+ n("div", pa, [
825
833
  n("div", {
826
834
  role: "button",
827
835
  tabindex: "0",
828
836
  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};`),
829
- onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
830
- onKeypress: a[4] || (a[4] = Ct((t) => $.value.showTable = !1, ["enter"]))
837
+ onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
838
+ onKeypress: l[4] || (l[4] = Tt((t) => $.value.showTable = !1, ["enter"]))
831
839
  }, [
832
- Q(r(Ze), {
840
+ Q(r(et), {
833
841
  name: "close",
834
842
  stroke: e.value.table.th.color,
835
843
  "stroke-width": 2
@@ -837,25 +845,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
837
845
  ], 36),
838
846
  n("div", {
839
847
  style: { width: "100%", "container-type": "inline-size" },
840
- class: B({ "vue-ui-responsive": Ie.value })
848
+ class: R({ "vue-ui-responsive": Ie.value })
841
849
  }, [
842
- n("table", hl, [
850
+ n("table", ya, [
843
851
  n("caption", {
844
852
  style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
845
853
  class: "vue-ui-data-table__caption"
846
854
  }, [
847
- Tt(h(e.value.style.chart.title.text) + " ", 1),
848
- e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
855
+ Lt(h(e.value.style.chart.title.text) + " ", 1),
856
+ e.value.style.chart.title.subtitle.text ? (u(), i("span", ga, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
849
857
  ], 4),
850
858
  n("thead", null, [
851
859
  n("tr", {
852
860
  role: "row",
853
861
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
854
862
  }, [
855
- (u(!0), i(j, null, q(L.value.head, (t) => (u(), i("th", {
863
+ (u(!0), i(q, null, Y(L.value.head, (t) => (u(), i("th", {
856
864
  style: c(`outline:${e.value.table.th.outline}`)
857
865
  }, [
858
- n("div", yl, h(t), 1)
866
+ n("div", fa, h(t), 1)
859
867
  ], 4))), 256))
860
868
  ], 4),
861
869
  n("tr", null, [
@@ -883,8 +891,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
883
891
  ])
884
892
  ]),
885
893
  n("tbody", null, [
886
- (u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
887
- 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 }),
894
+ (u(!0), i(q, null, Y(L.value.body, (t, o) => (u(), i("tr", {
895
+ 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 }),
888
896
  style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
889
897
  }, [
890
898
  n("td", {
@@ -892,56 +900,56 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
892
900
  style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
893
901
  "data-cell": L.value.head[0] ?? ""
894
902
  }, [
895
- n("div", fl, [
903
+ n("div", ma, [
896
904
  t.color ? (u(), i("span", {
897
905
  key: 0,
898
906
  style: c(`color:${t.color};margin-right:3px`)
899
907
  }, "⬤", 4)) : y("", !0),
900
908
  n("span", null, h(t.parentName), 1)
901
909
  ])
902
- ], 12, gl),
910
+ ], 12, ba),
903
911
  n("td", {
904
912
  class: "vue-ui-data-table__tbody__td",
905
913
  style: c(`outline:${e.value.table.td.outline}`),
906
914
  "data-cell": L.value.head[1] ?? ""
907
915
  }, [
908
- 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)
909
- ], 12, bl),
916
+ 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)
917
+ ], 12, ka),
910
918
  n("td", {
911
919
  class: "vue-ui-data-table__tbody__td",
912
920
  style: c(`outline:${e.value.table.td.outline}`),
913
921
  "data-cell": L.value.head[2] ?? ""
914
922
  }, [
915
- n("div", _l, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
916
- ], 12, kl),
923
+ n("div", wa, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
924
+ ], 12, $a),
917
925
  n("td", {
918
926
  class: "vue-ui-data-table__tbody__td",
919
927
  style: c(`outline:${e.value.table.td.outline}`),
920
928
  "data-cell": L.value.head[3] ?? ""
921
929
  }, [
922
- n("div", wl, h(t.childName), 1)
923
- ], 12, $l),
930
+ n("div", Ca, h(t.childName), 1)
931
+ ], 12, xa),
924
932
  n("td", {
925
933
  class: "vue-ui-data-table__tbody__td",
926
934
  style: c(`outline:${e.value.table.td.outline}`),
927
935
  "data-cell": L.value.head[4] ?? ""
928
936
  }, [
929
- 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)
930
- ], 12, xl),
937
+ 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)
938
+ ], 12, Ta),
931
939
  n("td", {
932
940
  class: "vue-ui-data-table__tbody__td",
933
941
  style: c(`outline:${e.value.table.td.outline}`),
934
942
  "data-cell": L.value.head[5] ?? ""
935
943
  }, [
936
- n("div", Ll, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
937
- ], 12, Tl),
944
+ n("div", Sa, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
945
+ ], 12, Na),
938
946
  n("td", {
939
947
  class: "vue-ui-data-table__tbody__td",
940
948
  style: c(`outline:${e.value.table.td.outline}`),
941
949
  "data-cell": L.value.head[6] ?? ""
942
950
  }, [
943
- n("div", Sl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
944
- ], 12, Nl)
951
+ n("div", Va, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
952
+ ], 12, Pa)
945
953
  ], 6))), 256))
946
954
  ])
947
955
  ])
@@ -951,9 +959,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
951
959
  ]),
952
960
  _: 1
953
961
  }, 8, ["config"])) : y("", !0)
954
- ], 46, Gt));
962
+ ], 46, qt));
955
963
  }
956
- }, Xl = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-fd58c8ff"]]);
964
+ }, Ga = /* @__PURE__ */ jt(Ia, [["__scopeId", "data-v-d4a588fd"]]);
957
965
  export {
958
- Xl as default
966
+ Ga as default
959
967
  };