vue-data-ui 2.12.8-beta.3 → 2.13.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 +10 -4
  2. package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
  4. package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
  5. package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
  6. package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
  7. package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
  9. package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
  10. package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
  11. package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
  12. package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
  13. package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
  14. package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
  15. package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
  16. package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
  17. package/dist/dom-to-png-4VVH9Qna.js +247 -0
  18. package/dist/img-Dy6IrSzX.js +20 -0
  19. package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
  20. package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +20 -3
  23. package/dist/types/vue-data-ui.d.ts +20 -3
  24. package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
  25. package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
  26. package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
  29. package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
  31. package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
  32. package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
  33. package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
  34. package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
  35. package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
  36. package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
  37. package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
  38. package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
  39. package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
  40. package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
  41. package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
  42. package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
  43. package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
  44. package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
  45. package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
  46. package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
  47. package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
  48. package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
  50. package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
  51. package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
  53. package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
  54. package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
  55. package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
  56. package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
  58. package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
  59. package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
  60. package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
  61. package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
  63. package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
  64. package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
  65. package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
  66. package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
  67. package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
  74. package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
  75. package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
  76. package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
  78. package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
  79. package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
  80. package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
  82. package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
  83. package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
  84. package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
  85. package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
  87. package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
  88. package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
  89. package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-C0Ct8ClX.js +0 -243
  92. package/dist/img-P0SFFw37.js +0 -19
@@ -1,14 +1,14 @@
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 p, 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-CH_mJIWj.js";
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-BXbyT0Qn.js";
3
3
  import { t as Bt, u as Rt } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as je } from "./useNestedProp-rMR-JeOJ.js";
5
- import { u as Dt } from "./usePrinter-DJ7WfWUs.js";
4
+ import { u as je } from "./useNestedProp-DVZpeH84.js";
5
+ import { u as Dt } from "./usePrinter-aKh5-HcK.js";
6
6
  import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xt from "./vue-ui-accordion-Ds4zkPIx.js";
9
- import qe from "./Legend-DRqzYrP9.js";
10
- import Ht from "./Title-apr_T9tg.js";
11
- import { _ as Ye } from "./Shape-DEWxbZ-l.js";
8
+ import Xt from "./vue-ui-accordion-CXsjHe1y.js";
9
+ import qe from "./Legend-DcDRW3Xd.js";
10
+ import Ht from "./Title-DoWqzga-.js";
11
+ import { _ as Ye } from "./Shape-CnD-h_98.js";
12
12
  import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
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 = {
14
14
  key: 6,
@@ -32,9 +32,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
32
32
  emits: ["selectLegend"],
33
33
  setup(Ke, { expose: Je, emit: Qe }) {
34
34
  _t((l) => ({
35
- "5ba4c306": l.tdo
35
+ "8661a912": l.tdo
36
36
  }));
37
- const Ze = H(() => import("./BaseIcon-DaR0sIWZ.js")), et = H(() => import("./PackageVersion-ClpqQxYT.js")), tt = H(() => import("./PenAndPaper-B-T7XvxF.js")), lt = H(() => import("./vue-ui-skeleton-C6PWt_m5.js")), at = H(() => import("./Tooltip-BuHsMAfp.js")), ot = H(() => import("./UserOptions-OVNxxnq5.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({
37
+ const Ze = H(() => import("./BaseIcon-P7wV92Er.js")), et = H(() => import("./PackageVersion-C5fpg4GN.js")), tt = H(() => import("./PenAndPaper-BRkuVFb4.js")), lt = H(() => import("./vue-ui-skeleton-Fxr752Oi.js")), at = H(() => import("./Tooltip-DYCBNM-_.js")), ot = H(() => import("./UserOptions-B3q-xfQV.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
38
  get: () => Ce(),
39
39
  set: (l) => l
40
40
  }), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
@@ -52,7 +52,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
52
52
  } : l;
53
53
  }
54
54
  Xe(() => T.config, (l) => {
55
- 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, g.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;
55
+ 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
56
  }, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
57
57
  const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Pe } = Dt({
58
58
  elementId: `vue-ui-vertical-bar_${C.value}`,
@@ -76,7 +76,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
76
76
  noTitle: ke.value
77
77
  });
78
78
  requestAnimationFrame(() => {
79
- ze.value = a, v.value = t / te.value - g.value * 2;
79
+ ze.value = a, v.value = t / te.value - f.value * 2;
80
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);
@@ -115,7 +115,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
115
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((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = _ >= 0 ? 1 : -1;
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;
119
119
  return {
120
120
  ...l,
121
121
  id: t,
@@ -123,27 +123,27 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
123
123
  shape: "square",
124
124
  opacity: P.value.includes(t) ? 0.5 : 1,
125
125
  value: Math.abs(_),
126
- sign: f,
126
+ sign: x,
127
127
  hasChildren: o,
128
128
  isChild: !1,
129
129
  segregate: () => K(t),
130
130
  isSegregated: P.value.includes(t),
131
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 : (x, V) => Fe.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
133
- ...x,
134
- value: N(Math.abs(x.value)),
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) => ({
133
+ ...p,
134
+ value: N(Math.abs(p.value)),
135
135
  absoluteIndex: a,
136
- sign: x.value >= 0 ? 1 : -1,
136
+ sign: p.value >= 0 ? 1 : -1,
137
137
  isChild: !0,
138
138
  parentId: t,
139
139
  parentName: l.name,
140
140
  parentValue: _,
141
- parentSign: f,
141
+ parentSign: x,
142
142
  id: `vertical_child_${a}_${V}_${C.value}`,
143
143
  childIndex: V,
144
- color: ye(x.color) || ye(l.color) || Se.value[a] || D[a] || D[a % D.length]
145
- })).map((x, V) => ({
146
- ...x,
144
+ color: ye(p.color) || ye(l.color) || Se.value[a] || D[a] || D[a % D.length]
145
+ })).map((p, V) => ({
146
+ ...p,
147
147
  isFirstChild: V === 0,
148
148
  isLastChild: V === l.children.length - 1
149
149
  }))
@@ -155,7 +155,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
155
155
  fontSize: e.value.style.chart.legend.fontSize,
156
156
  paddingBottom: 12,
157
157
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
158
- })), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + g.value) * te.value), ze = d(512), y = m(() => ({
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
159
  width: ze.value,
160
160
  height: ht.value,
161
161
  padding: {
@@ -165,12 +165,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
165
165
  bottom: 12
166
166
  }
167
167
  })), s = m(() => ({
168
- fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
169
- top: y.value.padding.top,
170
- left: y.value.padding.left,
171
- right: y.value.width - y.value.padding.right,
172
- bottom: y.value.padding.top + y.value.height,
173
- width: y.value.width - (y.value.padding.left + y.value.padding.right)
168
+ fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
169
+ top: g.value.padding.top,
170
+ left: g.value.padding.left,
171
+ right: g.value.width - g.value.padding.right,
172
+ bottom: g.value.padding.top + g.value.height,
173
+ width: g.value.width - (g.value.padding.left + g.value.padding.right)
174
174
  }));
175
175
  function le() {
176
176
  te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
@@ -196,7 +196,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
196
196
  return w(l) + s.value.left;
197
197
  }
198
198
  function J(l, a) {
199
- const t = M.value.find((f) => f.id === l.parentId), o = s.value.top + (g.value + v.value) * a, _ = t.children.length * (g.value + v.value);
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);
200
200
  return {
201
201
  y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
202
202
  name: t.name,
@@ -217,13 +217,13 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
217
217
  config: e.value
218
218
  }, ue.value = !0, ve.value = l.id;
219
219
  let t = "";
220
- const o = l.isChild ? l.parentName : l.name, _ = l.isChild ? l.name : "", f = e.value.style.chart.tooltip.customFormat;
221
- zt(f) && At(() => f({
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
222
  datapoint: l,
223
223
  series: F.value,
224
224
  config: e.value,
225
225
  seriesIndex: a
226
- })) ? se.value = f({
226
+ })) ? se.value = x({
227
227
  datapoint: l,
228
228
  series: F.value,
229
229
  config: e.value,
@@ -264,8 +264,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
264
264
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
265
265
  }),
266
266
  { datapoint: a, seriesIndex: t }
267
- ), f = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
268
- return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
267
+ ), x = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
268
+ return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${x}` : ""}`;
269
269
  }
270
270
  const L = m(() => {
271
271
  const l = [
@@ -306,17 +306,17 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
306
306
  });
307
307
  return { head: l, body: a };
308
308
  });
309
- function Re() {
310
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = L.value.head, t = L.value.body.map((f) => [
311
- f.parentName,
312
- f.parentValue,
313
- f.percentageToTotal,
314
- f.childName,
315
- f.childValue,
316
- f.childPercentageToParent,
317
- f.childPercentageToTotal
318
- ]), o = l.concat([a]).concat(t), _ = Ft(o);
319
- Mt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
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) => [
311
+ p.parentName,
312
+ p.parentValue,
313
+ p.percentageToTotal,
314
+ p.childName,
315
+ p.childValue,
316
+ p.childPercentageToParent,
317
+ 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" });
320
320
  }
321
321
  const X = d(!1);
322
322
  function bt(l) {
@@ -377,14 +377,14 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
377
377
  color: e.value.style.chart.color,
378
378
  active: oe.value,
379
379
  onClose: he
380
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
380
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
381
381
  dt.value ? (u(), i("div", {
382
382
  key: 1,
383
383
  ref_key: "noTitle",
384
384
  ref: ke,
385
385
  class: "vue-data-ui-no-title-space",
386
386
  style: "height:36px; width: 100%;background:transparent"
387
- }, null, 512)) : p("", !0),
387
+ }, null, 512)) : y("", !0),
388
388
  e.value.style.chart.title.text ? (u(), i("div", {
389
389
  key: 2,
390
390
  ref_key: "chartTitle",
@@ -404,7 +404,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
404
404
  }
405
405
  }
406
406
  }, null, 8, ["config"]))
407
- ], 512)) : p("", !0),
407
+ ], 512)) : y("", !0),
408
408
  e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), R(r(ot), {
409
409
  ref_key: "details",
410
410
  ref: st,
@@ -511,7 +511,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
511
511
  ]),
512
512
  key: "9"
513
513
  } : 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"])) : p("", !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),
515
515
  e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
516
516
  key: 4,
517
517
  ref_key: "chartLegend",
@@ -555,14 +555,14 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
555
555
  key: "0"
556
556
  } : void 0
557
557
  ]), 1032, ["legendSet", "config"]))
558
- ], 512)) : p("", !0),
558
+ ], 512)) : y("", !0),
559
559
  ee.value ? (u(), i("svg", {
560
560
  key: 5,
561
561
  ref_key: "svgRef",
562
562
  ref: xe,
563
563
  xmlns: r(It),
564
564
  class: B({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
565
- viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
565
+ viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
566
566
  style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
567
567
  }, [
568
568
  Q(r(et)),
@@ -570,14 +570,14 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
570
570
  key: 0,
571
571
  x: 0,
572
572
  y: 0,
573
- width: y.value.width <= 0 ? 10 : y.value.width,
573
+ width: g.value.width <= 0 ? 10 : g.value.width,
574
574
  height: s.value.fullHeight <= 0 ? 10 : s.value.fullHeight,
575
575
  style: {
576
576
  pointerEvents: "none"
577
577
  }
578
578
  }, [
579
579
  b(l.$slots, "chart-background", {}, void 0, !0)
580
- ], 8, Yt)) : p("", !0),
580
+ ], 8, Yt)) : y("", !0),
581
581
  (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
582
582
  x1: "0%",
583
583
  y1: "0%",
@@ -598,11 +598,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
598
598
  (u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
599
599
  b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
600
600
  ]))), 256))
601
- ])) : p("", !0),
601
+ ])) : y("", !0),
602
602
  (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
603
603
  n("rect", {
604
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),
605
- y: s.value.top + (g.value + v.value) * o,
605
+ y: s.value.top + (f.value + v.value) * o,
606
606
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
607
607
  height: v.value <= 0 ? 1e-4 : v.value,
608
608
  fill: e.value.style.chart.layout.bars.underlayerColor,
@@ -613,7 +613,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
613
613
  (u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
614
614
  n("rect", {
615
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),
616
- y: s.value.top + (g.value + v.value) * o,
616
+ y: s.value.top + (f.value + v.value) * o,
617
617
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
618
618
  height: v.value <= 0 ? 1e-4 : v.value,
619
619
  fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
@@ -625,7 +625,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
625
625
  l.$slots.pattern ? (u(), i("rect", {
626
626
  key: 0,
627
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),
628
- y: s.value.top + (g.value + v.value) * o,
628
+ y: s.value.top + (f.value + v.value) * o,
629
629
  width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
630
630
  height: v.value <= 0 ? 1e-4 : v.value,
631
631
  fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
@@ -633,17 +633,17 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
633
633
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
634
634
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
635
635
  class: B({ animated: e.value.useCssAnimation })
636
- }, null, 10, ll)) : p("", !0),
636
+ }, null, 10, ll)) : y("", !0),
637
637
  (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
638
638
  key: 1,
639
639
  x1: 0,
640
640
  x2: s.value.left,
641
- y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
642
- y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
641
+ y1: v.value + f.value / 2 + s.value.top + (f.value + v.value) * o,
642
+ y2: v.value + f.value / 2 + s.value.top + (f.value + v.value) * o,
643
643
  stroke: e.value.style.chart.layout.separators.color,
644
644
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
645
645
  "stroke-linecap": "round"
646
- }, null, 8, al)) : p("", !0),
646
+ }, null, 8, al)) : y("", !0),
647
647
  A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
648
648
  key: 2,
649
649
  x1: s.value.left + s.value.width / 2,
@@ -653,10 +653,10 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
653
653
  stroke: e.value.style.chart.layout.separators.color,
654
654
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
655
655
  "stroke-linecap": "round"
656
- }, null, 8, ol)) : p("", !0),
656
+ }, null, 8, ol)) : y("", !0),
657
657
  n("text", {
658
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,
659
- y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
659
+ y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
660
660
  "text-anchor": !A.value || t.sign === -1 ? "start" : "end",
661
661
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
662
662
  fill: e.value.style.chart.layout.bars.dataLabels.color,
@@ -666,11 +666,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
666
666
  key: 3,
667
667
  "text-anchor": "end",
668
668
  x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
669
- y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
669
+ y: s.value.top + (f.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
670
670
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
671
671
  fill: e.value.style.chart.layout.bars.nameLabels.color,
672
672
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
673
- }, h(t.name), 9, ul)) : p("", !0),
673
+ }, h(t.name), 9, ul)) : y("", !0),
674
674
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
675
675
  key: 4,
676
676
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -679,7 +679,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
679
679
  fill: e.value.style.chart.layout.bars.parentLabels.color,
680
680
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
681
681
  "text-anchor": "start"
682
- }, h(J(t, o).name), 9, sl)) : p("", !0),
682
+ }, h(J(t, o).name), 9, sl)) : y("", !0),
683
683
  t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
684
684
  key: 5,
685
685
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
@@ -688,12 +688,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
688
688
  fill: e.value.style.chart.layout.bars.parentLabels.color,
689
689
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
690
690
  "text-anchor": "start"
691
- }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : p("", !0),
691
+ }, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : y("", !0),
692
692
  n("rect", {
693
693
  x: 0,
694
- y: s.value.top + (g.value + v.value) * o - g.value / 2,
695
- width: y.value.width <= 0 ? 1e-4 : y.value.width,
696
- height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
694
+ y: s.value.top + (f.value + v.value) * o - f.value / 2,
695
+ width: g.value.width <= 0 ? 1e-4 : g.value.width,
696
+ height: v.value + f.value <= 0 ? 1e-4 : v.value + f.value,
697
697
  fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
698
698
  onMouseenter: (_) => ft(t, o),
699
699
  onMouseleave: a[1] || (a[1] = (_) => {
@@ -701,12 +701,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
701
701
  })
702
702
  }, null, 40, il)
703
703
  ]))), 256)),
704
- b(l.$slots, "svg", { svg: y.value }, void 0, !0)
705
- ], 14, qt)) : p("", !0),
704
+ b(l.$slots, "svg", { svg: g.value }, void 0, !0)
705
+ ], 14, qt)) : y("", !0),
706
706
  l.$slots.watermark ? (u(), i("div", dl, [
707
707
  b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
708
- ])) : p("", !0),
709
- ee.value ? p("", !0) : (u(), R(r(lt), {
708
+ ])) : y("", !0),
709
+ ee.value ? y("", !0) : (u(), R(r(lt), {
710
710
  key: 7,
711
711
  config: {
712
712
  type: "verticalBar",
@@ -764,7 +764,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
764
764
  key: "0"
765
765
  } : void 0
766
766
  ]), 1032, ["legendSet", "config"]))
767
- ], 512)) : p("", !0),
767
+ ], 512)) : y("", !0),
768
768
  b(l.$slots, "legend", { legend: F.value }, void 0, !0),
769
769
  l.$slots.source ? (u(), i("div", {
770
770
  key: 9,
@@ -773,7 +773,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
773
773
  dir: "auto"
774
774
  }, [
775
775
  b(l.$slots, "source", {}, void 0, !0)
776
- ], 512)) : p("", !0),
776
+ ], 512)) : y("", !0),
777
777
  Q(r(at), {
778
778
  show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
779
779
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
@@ -844,7 +844,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
844
844
  class: "vue-ui-data-table__caption"
845
845
  }, [
846
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)) : p("", !0)
847
+ e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
848
848
  ], 4),
849
849
  n("thead", null, [
850
850
  n("tr", {
@@ -895,7 +895,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
895
895
  t.color ? (u(), i("span", {
896
896
  key: 0,
897
897
  style: c(`color:${t.color};margin-right:3px`)
898
- }, "⬤", 4)) : p("", !0),
898
+ }, "⬤", 4)) : y("", !0),
899
899
  n("span", null, h(t.parentName), 1)
900
900
  ])
901
901
  ], 12, gl),
@@ -949,10 +949,10 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
949
949
  ], 512)
950
950
  ]),
951
951
  _: 1
952
- }, 8, ["config"])) : p("", !0)
952
+ }, 8, ["config"])) : y("", !0)
953
953
  ], 46, Gt));
954
954
  }
955
- }, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-14d06c2b"]]);
955
+ }, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-56a29a80"]]);
956
956
  export {
957
957
  Xl as default
958
958
  };