vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,19 +1,20 @@
1
- import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as y, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
2
- import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-CZNLCg7T.js";
3
- import { t as Bt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as je } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as Dt } from "./usePrinter-ButWuZVm.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-CO4hmfuX.js";
9
- import qe from "./Legend-DoxQwq_u.js";
10
- import Ht from "./Title-BQLtfM0P.js";
11
- import { _ as Ye } from "./Shape-CrstrfQ9.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"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Sl = {
17
+ }, ha = ["onClick"], pa = { style: "width:100%;padding-top: 36px;position:relative" }, ya = { class: "vue-ui-data-table" }, ga = { key: 0 }, fa = { style: { width: "100%" } }, ba = ["data-cell"], ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ka = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $a = ["data-cell"], wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = ["data-cell"], Ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ta = ["data-cell"], La = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Na = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pa = ["data-cell"], Va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ia = {
17
18
  __name: "vue-ui-vertical-bar",
18
19
  props: {
19
20
  config: {
@@ -30,65 +31,65 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
30
31
  }
31
32
  },
32
33
  emits: ["selectLegend"],
33
- setup(Ke, { expose: Je, emit: Qe }) {
34
- _t((l) => ({
35
- "8661a912": l.tdo
34
+ setup(Je, { expose: Qe, emit: Ze }) {
35
+ $t((a) => ({
36
+ "2cc0ddf2": a.tdo
36
37
  }));
37
- const Ze = H(() => import("./BaseIcon-DJab5OQD.js")), et = H(() => import("./PackageVersion-DCreTQN4.js")), tt = H(() => import("./PenAndPaper-BS60tkQN.js")), lt = H(() => import("./vue-ui-skeleton-D9B8DY_k.js")), at = H(() => import("./Tooltip-5JmGL7sR.js")), ot = H(() => import("./UserOptions-DMGkAAIO.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: St.vue_ui_vertical_bar[l.theme] || T.config,
49
- defaultConfig: l
47
+ return a.theme ? {
48
+ ...qe({
49
+ userConfig: Vt.vue_ui_vertical_bar[a.theme] || T.config,
50
+ defaultConfig: a
50
51
  }),
51
- customPalette: Pt[l.theme] || D
52
- } : l;
52
+ customPalette: Pt[a.theme] || E
53
+ } : a;
53
54
  }
54
- Xe(() => T.config, (l) => {
55
+ He(() => T.config, (a) => {
55
56
  e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, f.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
56
- }, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
57
- const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Pe } = Dt({
57
+ }, { deep: !0 }), He(() => T.dataset, ae, { deep: !0 });
58
+ const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Se } = Et({
58
59
  elementId: `vue-ui-vertical-bar_${C.value}`,
59
60
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
60
61
  options: e.value.userOptions.print
61
- }), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
62
- We(() => {
62
+ }), vt = 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,50 +115,50 @@ 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
- opacity: P.value.includes(t) ? 0.5 : 1,
125
+ opacity: S.value.includes(t) ? 0.5 : 1,
125
126
  value: Math.abs(_),
126
127
  sign: x,
127
128
  hasChildren: o,
128
129
  isChild: !1,
129
130
  segregate: () => K(t),
130
- isSegregated: P.value.includes(t),
131
- color: ye(l.color) || Se.value[a] || D[a] || D[a % D.length],
132
- children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
131
+ isSegregated: S.value.includes(t),
132
+ color: ye(a.color) || Pe.value[l] || E[l] || E[l % E.length],
133
+ children: !a.children || !a.children.length ? [] : a.children.toSorted(le.value ? () => 0 : (p, V) => Fe.value ? V.value - p.value : p.value - V.value).map((p, V) => ({
133
134
  ...p,
134
135
  value: N(Math.abs(p.value)),
135
- absoluteIndex: a,
136
+ absoluteIndex: l,
136
137
  sign: p.value >= 0 ? 1 : -1,
137
138
  isChild: !0,
138
139
  parentId: t,
139
- parentName: l.name,
140
+ 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) || Se.value[a] || D[a] || D[a % D.length]
145
+ color: ye(p.color) || ye(a.color) || Pe.value[l] || E[l] || E[l % E.length]
145
146
  })).map((p, V) => ({
146
147
  ...p,
147
148
  isFirstChild: V === 0,
148
- isLastChild: V === l.children.length - 1
149
+ isLastChild: V === a.children.length - 1
149
150
  }))
150
151
  };
151
- }).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = m(() => ({
152
+ }).toSorted(le.value ? () => 0 : (a, l) => Fe.value ? l.value - a.value : a.value - l.value))), Me = 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,103 +173,103 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
172
173
  bottom: g.value.padding.top + g.value.height,
173
174
  width: g.value.width - (g.value.padding.left + g.value.padding.right)
174
175
  }));
175
- function le() {
176
- te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
176
+ function ae() {
177
+ te.value = z.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
177
178
  }
178
- const P = d([]);
179
- function K(l) {
180
- P.value.includes(l) ? P.value = P.value.filter((a) => a !== l) : P.value.push(l), le(), it("selectLegend", M.value);
179
+ const S = d([]);
180
+ function K(a) {
181
+ S.value.includes(a) ? S.value = S.value.filter((l) => l !== a) : S.value.push(a), ae(), dt("selectLegend", z.value);
181
182
  }
182
- const M = m(() => F.value.filter((l) => !P.value.includes(l.id))), S = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
183
- function Ae(l, a = !1, t = 0) {
184
- return a ? E({
185
- v: N(Math.abs(l) / S.value * 100),
183
+ const z = 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) / S.value;
189
+ }) : Math.abs(a) / P.value;
189
190
  }
190
- const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
191
- function w(l) {
192
- const a = l / pt.value;
193
- return s.value.width / (A.value ? 2 : 1) * a;
191
+ const A = 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,
203
204
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
204
- percentageToTotal: isNaN(t.value / S.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
205
+ percentageToTotal: isNaN(t.value / P.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
205
206
  sign: t.sign
206
207
  };
207
208
  }
208
- function gt() {
209
- return M.value;
209
+ function ft() {
210
+ return z.value;
210
211
  }
211
212
  const ve = d(null), ce = d(null);
212
- function ft(l, a) {
213
+ function bt(a, l) {
213
214
  ce.value = {
214
- datapoint: l,
215
- seriesIndex: a,
216
- series: F.value,
215
+ datapoint: a,
216
+ seriesIndex: l,
217
+ series: M.value,
217
218
  config: e.value
218
- }, ue.value = !0, ve.value = l.id;
219
+ }, ue.value = !0, ve.value = a.id;
219
220
  let t = "";
220
- const o = l.isChild ? l.parentName : l.name, _ = l.isChild ? l.name : "", x = e.value.style.chart.tooltip.customFormat;
221
- zt(x) && At(() => x({
222
- datapoint: l,
223
- series: F.value,
221
+ const o = a.isChild ? a.parentName : a.name, _ = 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) / S.value * 100,
244
+ { datapoint: a, seriesIndex: l }
245
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
246
+ v: Math.abs(a.value) / P.value * 100,
246
247
  s: "%",
247
248
  r: e.value.style.chart.tooltip.roundingPercentage
248
- })}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${E({
249
- v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
249
+ })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
250
+ v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
250
251
  s: "%",
251
252
  r: e.value.style.chart.tooltip.roundingPercentage
252
253
  })}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
253
254
  }
254
- function Be(l, a, t, o) {
255
+ function Be(a, l, t, o) {
255
256
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
256
257
  return "";
257
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,15 +277,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
276
277
  e.value.translations.value,
277
278
  e.value.translations.percentageToSerie,
278
279
  e.value.translations.percentageToTotal
279
- ], a = z.value.map((t) => t.isChild ? t.isFirstChild ? {
280
+ ], l = A.value.map((t) => t.isChild ? t.isFirstChild ? {
280
281
  color: t.color,
281
282
  parentName: t.parentName,
282
283
  parentValue: t.parentValue,
283
- percentageToTotal: t.parentValue / S.value,
284
+ percentageToTotal: t.parentValue / P.value,
284
285
  childName: t.name,
285
286
  childValue: t.sign === 1 ? t.value : -t.value,
286
287
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
287
- childPercentageToTotal: Math.abs(t.value) / S.value
288
+ childPercentageToTotal: Math.abs(t.value) / P.value
288
289
  } : {
289
290
  color: "",
290
291
  parentName: "",
@@ -293,21 +294,21 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
293
294
  childName: t.name,
294
295
  childValue: t.sign === 1 ? t.value : -t.value,
295
296
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
296
- childPercentageToTotal: Math.abs(t.value) / S.value
297
+ childPercentageToTotal: Math.abs(t.value) / P.value
297
298
  } : {
298
299
  color: t.color,
299
300
  parentName: t.name,
300
301
  parentValue: t.sign === 1 ? t.value : -t.value,
301
- percentageToTotal: Math.abs(t.value) / S.value,
302
+ percentageToTotal: Math.abs(t.value) / P.value,
302
303
  childName: "",
303
304
  childValue: "",
304
305
  childPercentageToParent: "",
305
306
  childPercentageToTotal: ""
306
307
  });
307
- return { head: l, body: a };
308
+ return { head: a, body: l };
308
309
  });
309
- function Re(l = null) {
310
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = L.value.head, o = L.value.body.map((p) => [
310
+ function Re(a = null) {
311
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = L.value.head, o = L.value.body.map((p) => [
311
312
  p.parentName,
312
313
  p.parentValue,
313
314
  p.percentageToTotal,
@@ -315,62 +316,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
- generateImage: Pe,
360
- toggleTable: De,
361
- toggleSort: Ee,
362
- toggleTooltip: Ue,
363
- toggleAnnotator: he
364
- }), (l, a) => (u(), i("div", {
365
- class: B(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
366
+ generateImage: Se,
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,130 +429,131 @@ 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
- onToggleFullscreen: bt,
440
+ printScale: e.value.userOptions.print.scale,
441
+ onToggleFullscreen: De,
433
442
  onGeneratePdf: r(Ne),
434
443
  onGenerateCsv: Re,
435
- onGenerateImage: r(Pe),
436
- onToggleTable: De,
437
- onToggleSort: Ee,
438
- onToggleTooltip: Ue,
444
+ onGenerateImage: r(Se),
445
+ onToggleTable: Ee,
446
+ onToggleSort: Ue,
447
+ onToggleTooltip: Xe,
439
448
  onToggleAnnotator: he,
440
449
  style: c({
441
450
  visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
442
451
  })
443
452
  }, pe({ _: 2 }, [
444
- l.$slots.menuIcon ? {
453
+ a.$slots.menuIcon ? {
445
454
  name: "menuIcon",
446
455
  fn: k(({ isOpen: t, color: o }) => [
447
- 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)
448
457
  ]),
449
458
  key: "0"
450
459
  } : void 0,
451
- l.$slots.optionTooltip ? {
460
+ a.$slots.optionTooltip ? {
452
461
  name: "optionTooltip",
453
462
  fn: k(() => [
454
- b(l.$slots, "optionTooltip", {}, void 0, !0)
463
+ b(a.$slots, "optionTooltip", {}, void 0, !0)
455
464
  ]),
456
465
  key: "1"
457
466
  } : void 0,
458
- l.$slots.optionPdf ? {
467
+ a.$slots.optionPdf ? {
459
468
  name: "optionPdf",
460
469
  fn: k(() => [
461
- b(l.$slots, "optionPdf", {}, void 0, !0)
470
+ b(a.$slots, "optionPdf", {}, void 0, !0)
462
471
  ]),
463
472
  key: "2"
464
473
  } : void 0,
465
- l.$slots.optionCsv ? {
474
+ a.$slots.optionCsv ? {
466
475
  name: "optionCsv",
467
476
  fn: k(() => [
468
- b(l.$slots, "optionCsv", {}, void 0, !0)
477
+ b(a.$slots, "optionCsv", {}, void 0, !0)
469
478
  ]),
470
479
  key: "3"
471
480
  } : void 0,
472
- l.$slots.optionImg ? {
481
+ a.$slots.optionImg ? {
473
482
  name: "optionImg",
474
483
  fn: k(() => [
475
- b(l.$slots, "optionImg", {}, void 0, !0)
484
+ b(a.$slots, "optionImg", {}, void 0, !0)
476
485
  ]),
477
486
  key: "4"
478
487
  } : void 0,
479
- l.$slots.optionTable ? {
488
+ a.$slots.optionTable ? {
480
489
  name: "optionTable",
481
490
  fn: k(() => [
482
- b(l.$slots, "optionTable", {}, void 0, !0)
491
+ b(a.$slots, "optionTable", {}, void 0, !0)
483
492
  ]),
484
493
  key: "5"
485
494
  } : void 0,
486
- l.$slots.optionLabels ? {
495
+ a.$slots.optionLabels ? {
487
496
  name: "optionLabels",
488
497
  fn: k(() => [
489
- b(l.$slots, "optionLabels", {}, void 0, !0)
498
+ b(a.$slots, "optionLabels", {}, void 0, !0)
490
499
  ]),
491
500
  key: "6"
492
501
  } : void 0,
493
- l.$slots.optionSort ? {
502
+ a.$slots.optionSort ? {
494
503
  name: "optionSort",
495
504
  fn: k(() => [
496
- b(l.$slots, "optionSort", {}, void 0, !0)
505
+ b(a.$slots, "optionSort", {}, void 0, !0)
497
506
  ]),
498
507
  key: "7"
499
508
  } : void 0,
500
- l.$slots.optionFullscreen ? {
509
+ a.$slots.optionFullscreen ? {
501
510
  name: "optionFullscreen",
502
511
  fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
503
- 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)
504
513
  ]),
505
514
  key: "8"
506
515
  } : void 0,
507
- l.$slots.optionAnnotator ? {
516
+ a.$slots.optionAnnotator ? {
508
517
  name: "optionAnnotator",
509
518
  fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
510
- 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)
511
520
  ]),
512
521
  key: "9"
513
522
  } : void 0
514
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
523
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
515
524
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
516
525
  key: 4,
517
526
  ref_key: "chartLegend",
518
527
  ref: re
519
528
  }, [
520
- (u(), R(qe, {
529
+ (u(), D(Ye, {
521
530
  key: `legend_top_${ie.value}`,
522
- legendSet: F.value,
531
+ legendSet: M.value,
523
532
  config: Me.value,
524
- onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
533
+ onClickMarker: l[0] || (l[0] = ({ legend: t }) => K(t.id))
525
534
  }, pe({
526
535
  item: k(({ legend: t, index: o }) => [
527
536
  n("div", {
528
537
  onClick: (_) => K(t.id),
529
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
538
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
530
539
  }, h(t.name) + ": " + h(r(ne)(
531
540
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
532
541
  t.value,
533
- r(E)({
542
+ r(U)({
534
543
  p: e.value.style.chart.legend.prefix,
535
544
  v: t.value,
536
545
  s: e.value.style.chart.legend.suffix,
537
546
  r: e.value.style.chart.legend.roundingValue
538
547
  }),
539
548
  { datapoint: t, seriesIndex: o }
540
- )), 13, jt)
549
+ )), 13, Yt)
541
550
  ]),
542
551
  _: 2
543
552
  }, [
544
- l.$slots.pattern ? {
553
+ a.$slots.pattern ? {
545
554
  name: "legend-pattern",
546
555
  fn: k(({ legend: t, index: o }) => [
547
- Q(Ye, {
556
+ Q(Ke, {
548
557
  shape: t.shape,
549
558
  radius: 30,
550
559
  stroke: "none",
@@ -560,13 +569,13 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
560
569
  key: 5,
561
570
  ref_key: "svgRef",
562
571
  ref: xe,
563
- xmlns: r(It),
564
- 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 }),
565
574
  viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
566
575
  style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
567
576
  }, [
568
- Q(r(et)),
569
- l.$slots["chart-background"] ? (u(), i("foreignObject", {
577
+ Q(r(tt)),
578
+ a.$slots["chart-background"] ? (u(), i("foreignObject", {
570
579
  key: 0,
571
580
  x: 0,
572
581
  y: 0,
@@ -576,9 +585,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
576
585
  pointerEvents: "none"
577
586
  }
578
587
  }, [
579
- b(l.$slots, "chart-background", {}, void 0, !0)
580
- ], 8, Yt)) : y("", !0),
581
- (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
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", {
582
591
  x1: "0%",
583
592
  y1: "0%",
584
593
  x2: "100%",
@@ -588,31 +597,31 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
588
597
  n("stop", {
589
598
  offset: "0%",
590
599
  "stop-color": t.color
591
- }, null, 8, Jt),
600
+ }, null, 8, Zt),
592
601
  n("stop", {
593
602
  offset: "100%",
594
- "stop-color": r(ge)(r(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
595
- }, null, 8, Qt)
596
- ], 8, Kt))), 256)),
597
- l.$slots.pattern ? (u(), i("g", Zt, [
598
- (u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
599
- b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
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)
600
609
  ]))), 256))
601
610
  ])) : y("", !0),
602
- (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, [
603
612
  n("rect", {
604
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
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),
605
614
  y: s.value.top + (f.value + v.value) * o,
606
615
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
607
616
  height: v.value <= 0 ? 1e-4 : v.value,
608
617
  fill: e.value.style.chart.layout.bars.underlayerColor,
609
618
  rx: e.value.style.chart.layout.bars.borderRadius,
610
- class: B({ animated: e.value.useCssAnimation })
611
- }, null, 10, el)
619
+ class: R({ animated: e.value.useCssAnimation })
620
+ }, null, 10, aa)
612
621
  ]))), 256)),
613
- (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, [
614
623
  n("rect", {
615
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
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),
616
625
  y: s.value.top + (f.value + v.value) * o,
617
626
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
618
627
  height: v.value <= 0 ? 1e-4 : v.value,
@@ -620,11 +629,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
620
629
  rx: e.value.style.chart.layout.bars.borderRadius,
621
630
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
622
631
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
623
- class: B({ animated: e.value.useCssAnimation })
624
- }, null, 10, tl),
625
- l.$slots.pattern ? (u(), i("rect", {
632
+ class: R({ animated: e.value.useCssAnimation })
633
+ }, null, 10, la),
634
+ a.$slots.pattern ? (u(), i("rect", {
626
635
  key: 0,
627
- x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
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),
628
637
  y: s.value.top + (f.value + v.value) * o,
629
638
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
630
639
  height: v.value <= 0 ? 1e-4 : v.value,
@@ -632,9 +641,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
632
641
  rx: e.value.style.chart.layout.bars.borderRadius,
633
642
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
634
643
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
635
- class: B({ animated: e.value.useCssAnimation })
636
- }, null, 10, ll)) : y("", !0),
637
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
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", {
638
647
  key: 1,
639
648
  x1: 0,
640
649
  x2: s.value.left,
@@ -643,8 +652,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
643
652
  stroke: e.value.style.chart.layout.separators.color,
644
653
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
645
654
  "stroke-linecap": "round"
646
- }, null, 8, al)) : y("", !0),
647
- 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", {
648
657
  key: 2,
649
658
  x1: s.value.left + s.value.width / 2,
650
659
  x2: s.value.left + s.value.width / 2,
@@ -653,15 +662,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
653
662
  stroke: e.value.style.chart.layout.separators.color,
654
663
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
655
664
  "stroke-linecap": "round"
656
- }, null, 8, ol)) : y("", !0),
665
+ }, null, 8, ua)) : y("", !0),
657
666
  n("text", {
658
- x: A.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : yt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
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,
659
668
  y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
660
- "text-anchor": !A.value || t.sign === -1 ? "start" : "end",
669
+ "text-anchor": !B.value || t.sign === -1 ? "start" : "end",
661
670
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
662
671
  fill: e.value.style.chart.layout.bars.dataLabels.color,
663
672
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
664
- }, h(Be(t.value, t, o, t.sign)), 9, nl),
673
+ }, h(Be(t.value, t, o, t.sign)), 9, sa),
665
674
  (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
666
675
  key: 3,
667
676
  "text-anchor": "end",
@@ -670,7 +679,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
670
679
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
671
680
  fill: e.value.style.chart.layout.bars.nameLabels.color,
672
681
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
673
- }, h(t.name), 9, ul)) : y("", !0),
682
+ }, h(t.name), 9, ra)) : y("", !0),
674
683
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
675
684
  key: 4,
676
685
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -679,7 +688,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
679
688
  fill: e.value.style.chart.layout.bars.parentLabels.color,
680
689
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
681
690
  "text-anchor": "start"
682
- }, h(J(t, o).name), 9, sl)) : y("", !0),
691
+ }, h(J(t, o).name), 9, ia)) : y("", !0),
683
692
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
684
693
  key: 5,
685
694
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -688,25 +697,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
688
697
  fill: e.value.style.chart.layout.bars.parentLabels.color,
689
698
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
690
699
  "text-anchor": "start"
691
- }, 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),
692
701
  n("rect", {
693
702
  x: 0,
694
703
  y: s.value.top + (f.value + v.value) * o - f.value / 2,
695
704
  width: g.value.width <= 0 ? 1e-4 : g.value.width,
696
705
  height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
697
706
  fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
698
- onMouseenter: (_) => ft(t, o),
699
- onMouseleave: a[1] || (a[1] = (_) => {
700
- rt.value = null, ue.value = !1, ve.value = null;
707
+ onMouseenter: (_) => bt(t, o),
708
+ onMouseleave: l[1] || (l[1] = (_) => {
709
+ it.value = null, ue.value = !1, ve.value = null;
701
710
  })
702
- }, null, 40, il)
711
+ }, null, 40, va)
703
712
  ]))), 256)),
704
- b(l.$slots, "svg", { svg: g.value }, void 0, !0)
705
- ], 14, qt)) : y("", !0),
706
- l.$slots.watermark ? (u(), i("div", dl, [
707
- b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
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)
708
717
  ])) : y("", !0),
709
- ee.value ? y("", !0) : (u(), R(r(lt), {
718
+ ee.value ? y("", !0) : (u(), D(r(lt), {
710
719
  key: 7,
711
720
  config: {
712
721
  type: "verticalBar",
@@ -726,34 +735,34 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
726
735
  ref_key: "chartLegend",
727
736
  ref: re
728
737
  }, [
729
- (u(), R(qe, {
738
+ (u(), D(Ye, {
730
739
  key: `legend_bottom_${ie.value}`,
731
- legendSet: F.value,
740
+ legendSet: M.value,
732
741
  config: Me.value,
733
- onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
742
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => K(t.id))
734
743
  }, pe({
735
744
  item: k(({ legend: t, index: o }) => [
736
745
  n("div", {
737
746
  onClick: (_) => K(t.id),
738
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
747
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
739
748
  }, h(t.name) + ": " + h(r(ne)(
740
749
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
741
750
  t.value,
742
- r(E)({
751
+ r(U)({
743
752
  p: e.value.style.chart.legend.prefix,
744
753
  v: t.value,
745
754
  s: e.value.style.chart.legend.suffix,
746
755
  r: e.value.style.chart.legend.roundingValue
747
756
  }),
748
757
  { datapoint: t, seriesIndex: o }
749
- )), 13, vl)
758
+ )), 13, ha)
750
759
  ]),
751
760
  _: 2
752
761
  }, [
753
- l.$slots.pattern ? {
762
+ a.$slots.pattern ? {
754
763
  name: "legend-pattern",
755
764
  fn: k(({ legend: t, index: o }) => [
756
- Q(Ye, {
765
+ Q(Ke, {
757
766
  shape: t.shape,
758
767
  radius: 30,
759
768
  stroke: "none",
@@ -765,17 +774,17 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
765
774
  } : void 0
766
775
  ]), 1032, ["legendSet", "config"]))
767
776
  ], 512)) : y("", !0),
768
- b(l.$slots, "legend", { legend: F.value }, void 0, !0),
769
- l.$slots.source ? (u(), i("div", {
777
+ b(a.$slots, "legend", { legend: M.value }, void 0, !0),
778
+ a.$slots.source ? (u(), i("div", {
770
779
  key: 9,
771
780
  ref_key: "source",
772
781
  ref: me,
773
782
  dir: "auto"
774
783
  }, [
775
- b(l.$slots, "source", {}, void 0, !0)
784
+ b(a.$slots, "source", {}, void 0, !0)
776
785
  ], 512)) : y("", !0),
777
- Q(r(at), {
778
- show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
786
+ Q(r(ot), {
787
+ show: $.value.showTooltip && ue.value && S.value.length < T.dataset.length,
779
788
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
780
789
  color: e.value.style.chart.tooltip.color,
781
790
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -785,20 +794,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
785
794
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
786
795
  position: e.value.style.chart.tooltip.position,
787
796
  offsetY: e.value.style.chart.tooltip.offsetY,
788
- parent: Y.value,
797
+ parent: F.value,
789
798
  content: se.value,
790
- isFullscreen: X.value,
799
+ isFullscreen: H.value,
791
800
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
792
801
  }, {
793
802
  "tooltip-before": k(() => [
794
- 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)
795
804
  ]),
796
805
  "tooltip-after": k(() => [
797
- 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)
798
807
  ]),
799
808
  _: 3
800
809
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
801
- ee.value ? (u(), R(Xt, {
810
+ ee.value ? (u(), D(Ht, {
802
811
  key: 10,
803
812
  hideDetails: "",
804
813
  config: {
@@ -820,15 +829,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
820
829
  ref: Ve,
821
830
  class: "vue-ui-vertical-bar-table atom-data-table"
822
831
  }, [
823
- n("div", cl, [
832
+ n("div", pa, [
824
833
  n("div", {
825
834
  role: "button",
826
835
  tabindex: "0",
827
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};`),
828
- onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
829
- 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"]))
830
839
  }, [
831
- Q(r(Ze), {
840
+ Q(r(et), {
832
841
  name: "close",
833
842
  stroke: e.value.table.th.color,
834
843
  "stroke-width": 2
@@ -836,25 +845,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
836
845
  ], 36),
837
846
  n("div", {
838
847
  style: { width: "100%", "container-type": "inline-size" },
839
- class: B({ "vue-ui-responsive": Ie.value })
848
+ class: R({ "vue-ui-responsive": Ie.value })
840
849
  }, [
841
- n("table", hl, [
850
+ n("table", ya, [
842
851
  n("caption", {
843
852
  style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
844
853
  class: "vue-ui-data-table__caption"
845
854
  }, [
846
- Tt(h(e.value.style.chart.title.text) + " ", 1),
847
- e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
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)
848
857
  ], 4),
849
858
  n("thead", null, [
850
859
  n("tr", {
851
860
  role: "row",
852
861
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
853
862
  }, [
854
- (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", {
855
864
  style: c(`outline:${e.value.table.th.outline}`)
856
865
  }, [
857
- n("div", yl, h(t), 1)
866
+ n("div", fa, h(t), 1)
858
867
  ], 4))), 256))
859
868
  ], 4),
860
869
  n("tr", null, [
@@ -863,7 +872,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
863
872
  }, null, 4),
864
873
  n("th", {
865
874
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
866
- }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
875
+ }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(P.value) ? "" : P.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
867
876
  n("th", {
868
877
  style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
869
878
  }, "100%", 4),
@@ -882,8 +891,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
882
891
  ])
883
892
  ]),
884
893
  n("tbody", null, [
885
- (u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
886
- class: B({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
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 }),
887
896
  style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
888
897
  }, [
889
898
  n("td", {
@@ -891,56 +900,56 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
891
900
  style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
892
901
  "data-cell": L.value.head[0] ?? ""
893
902
  }, [
894
- n("div", fl, [
903
+ n("div", ma, [
895
904
  t.color ? (u(), i("span", {
896
905
  key: 0,
897
906
  style: c(`color:${t.color};margin-right:3px`)
898
907
  }, "⬤", 4)) : y("", !0),
899
908
  n("span", null, h(t.parentName), 1)
900
909
  ])
901
- ], 12, gl),
910
+ ], 12, ba),
902
911
  n("td", {
903
912
  class: "vue-ui-data-table__tbody__td",
904
913
  style: c(`outline:${e.value.table.td.outline}`),
905
914
  "data-cell": L.value.head[1] ?? ""
906
915
  }, [
907
- n("div", ml, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
908
- ], 12, bl),
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),
909
918
  n("td", {
910
919
  class: "vue-ui-data-table__tbody__td",
911
920
  style: c(`outline:${e.value.table.td.outline}`),
912
921
  "data-cell": L.value.head[2] ?? ""
913
922
  }, [
914
- n("div", _l, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
915
- ], 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),
916
925
  n("td", {
917
926
  class: "vue-ui-data-table__tbody__td",
918
927
  style: c(`outline:${e.value.table.td.outline}`),
919
928
  "data-cell": L.value.head[3] ?? ""
920
929
  }, [
921
- n("div", wl, h(t.childName), 1)
922
- ], 12, $l),
930
+ n("div", Ca, h(t.childName), 1)
931
+ ], 12, xa),
923
932
  n("td", {
924
933
  class: "vue-ui-data-table__tbody__td",
925
934
  style: c(`outline:${e.value.table.td.outline}`),
926
935
  "data-cell": L.value.head[4] ?? ""
927
936
  }, [
928
- n("div", Cl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
929
- ], 12, xl),
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),
930
939
  n("td", {
931
940
  class: "vue-ui-data-table__tbody__td",
932
941
  style: c(`outline:${e.value.table.td.outline}`),
933
942
  "data-cell": L.value.head[5] ?? ""
934
943
  }, [
935
- n("div", Ll, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
936
- ], 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),
937
946
  n("td", {
938
947
  class: "vue-ui-data-table__tbody__td",
939
948
  style: c(`outline:${e.value.table.td.outline}`),
940
949
  "data-cell": L.value.head[6] ?? ""
941
950
  }, [
942
- n("div", Pl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
943
- ], 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)
944
953
  ], 6))), 256))
945
954
  ])
946
955
  ])
@@ -950,9 +959,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
950
959
  ]),
951
960
  _: 1
952
961
  }, 8, ["config"])) : y("", !0)
953
- ], 46, Gt));
962
+ ], 46, qt));
954
963
  }
955
- }, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-56a29a80"]]);
964
+ }, Ga = /* @__PURE__ */ jt(Ia, [["__scopeId", "data-v-d4a588fd"]]);
956
965
  export {
957
- Xl as default
966
+ Ga as default
958
967
  };