vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4

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 +21 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +60 -1
  23. package/dist/types/vue-data-ui.d.ts +60 -1
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-BjSUS-jY.js +0 -243
  92. package/dist/img-DWfzRJdv.js +0 -19
@@ -1,10 +1,10 @@
1
- import { defineAsyncComponent as G, computed as T, ref as j, watch as Ke, onMounted as Qe, createElementBlock as d, openBlock as n, unref as u, normalizeStyle as O, normalizeClass as Pe, createBlock as U, createCommentVNode as y, createSlots as et, withCtx as S, renderSlot as P, normalizeProps as J, guardReactiveProps as K, createVNode as tt, createElementVNode as i, Fragment as _, renderList as m, toDisplayString as B, mergeProps as je, createTextVNode as lt, nextTick as ot } from "vue";
2
- import { u as st, c as Te, t as at, p as Q, a as nt, b as rt, d as ut, o as it, e as ee, g as ue, l as E, m as Se, f as D, X as dt, s as g, h as te, i as le, j as De, k as oe, n as A, q as ct, r as ht } from "./index-CbcpITE_.js";
3
- import { u as Oe } from "./useNestedProp-y56W8I7J.js";
4
- import { u as vt } from "./usePrinter-u-gQiRNz.js";
1
+ import { defineAsyncComponent as G, computed as T, ref as j, watch as Ke, onMounted as Qe, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as O, normalizeClass as Pe, createBlock as U, createCommentVNode as y, createSlots as et, withCtx as S, renderSlot as P, normalizeProps as J, guardReactiveProps as K, createVNode as tt, createElementVNode as d, Fragment as _, renderList as m, toDisplayString as B, mergeProps as je, createTextVNode as lt, nextTick as ot } from "vue";
2
+ import { u as st, c as Te, t as at, p as Q, a as nt, b as rt, d as ut, o as it, e as ee, g as ue, l as E, m as Se, f as D, X as dt, s as g, h as te, i as le, j as De, k as oe, n as A, q as ct, r as ht } from "./index-BzQ0j5xI.js";
3
+ import { u as Oe } from "./useNestedProp-DqpZEE3h.js";
4
+ import { u as vt } from "./usePrinter-CpG5jh_z.js";
5
5
  import { u as ft } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as pt } from "./useChartAccessibility-9icAAmYg.js";
7
- import yt from "./Title-Dx8ctnVy.js";
7
+ import yt from "./Title-CJcZXNtK.js";
8
8
  import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const gt = ["id"], $t = {
10
10
  key: 1,
@@ -34,7 +34,7 @@ const gt = ["id"], $t = {
34
34
  },
35
35
  emits: ["selectDatapoint"],
36
36
  setup(ze, { expose: Ne, emit: Be }) {
37
- const Ae = G(() => import("./vue-ui-accordion-BkA7rtwr.js")), Ie = G(() => import("./DataTable-CsoAI95B.js")), Le = G(() => import("./PackageVersion-DCAZ9Z7V.js")), Ve = G(() => import("./PenAndPaper-B9RP4oFj.js")), We = G(() => import("./vue-ui-skeleton-miKWlCAi.js")), Ge = G(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_3d_bar: Ue } = st(), $ = ze, Z = Be, q = T(() => !!$.dataset && Object.keys($.dataset).length), b = j(Te()), Ee = j(null), ie = j(null), I = j(!1), de = j(0), ce = j(0), t = T({
37
+ const Ae = G(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ie = G(() => import("./DataTable-CmbjnjRg.js")), Le = G(() => import("./PackageVersion-OcbP0WH2.js")), Ve = G(() => import("./PenAndPaper-BgPXmpGI.js")), We = G(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ge = G(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_3d_bar: Ue } = st(), $ = ze, Z = Be, q = T(() => !!$.dataset && Object.keys($.dataset).length), b = j(Te()), Ee = j(null), ie = j(null), I = j(!1), de = j(0), ce = j(0), t = T({
38
38
  get: () => pe(),
39
39
  set: (a) => a
40
40
  }), { userOptionsVisible: se, setUserOptionsVisibility: he, keepUserOptionState: ve } = ft({ config: t.value }), { svgRef: fe } = pt({ config: t.value.style.chart.title });
@@ -76,7 +76,7 @@ const gt = ["id"], $t = {
76
76
  id: Te(),
77
77
  proportion: (l.value || 0) / a,
78
78
  color: ut(l.color) || He.value[r] || Q[r] || Q[r % Q.length],
79
- breakdown: l.breakdown ? l.breakdown.sort((c, k) => k.value - c.value) : null
79
+ breakdown: l.breakdown ? l.breakdown.sort((i, k) => k.value - i.value) : null
80
80
  })).sort((l, r) => r.value - l.value), e = [];
81
81
  let h = 0;
82
82
  for (let l = 0; l < s.length; l += 1)
@@ -145,7 +145,7 @@ const gt = ["id"], $t = {
145
145
  });
146
146
  }
147
147
  function Re(a, s, e, h) {
148
- const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: c, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a, re = c - v - p - l * s / 2, Xe = re > o.value.height / 2 ? "top" : "bottom", we = 64, Ye = !!e;
148
+ const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: i, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a, re = i - v - p - l * s / 2, Xe = re > o.value.height / 2 ? "top" : "bottom", we = 64, Ye = !!e;
149
149
  let Ce = null, Fe = null;
150
150
  return Ye && (e = e.map((Me, Je) => ({
151
151
  ...Me,
@@ -166,7 +166,7 @@ const gt = ["id"], $t = {
166
166
  ), Fe = Se(
167
167
  { series: e },
168
168
  r - w + 20,
169
- c - v - p - l * s / 2,
169
+ i - v - p - l * s / 2,
170
170
  6,
171
171
  6,
172
172
  1.99999,
@@ -180,48 +180,48 @@ const gt = ["id"], $t = {
180
180
  miniDonut: Fe,
181
181
  sidePointer: {
182
182
  x: r - w,
183
- y: c - v - p - l * s / 2,
184
- topY: c - v - p - l * s,
183
+ y: i - v - p - l * s / 2,
184
+ topY: i - v - p - l * s,
185
185
  height: l * s
186
186
  },
187
- apexBottom: { y: c - v, x: r / 2 },
188
- apexTop: { y: c - v - l * s, x: r / 2 },
189
- right: `M${r / 2},${c - v} ${r / 2},${c - v - l * s} ${r - w},${c - v - p - l * s} ${r - w},${c - v - p}Z`,
190
- left: `M${r / 2},${c - v} ${r / 2},${c - v - l * s} ${f}, ${c - v - p - l * s} ${f},${c - v - p}Z`,
191
- liningTop: `M${f},${c - v - p - l * s} ${r / 2},${c - v - l * s} ${r - w},${c - v - p - l * s}`,
192
- liningTopShade: `M${f},${c - v - p - l * s - 0.5} ${r / 2},${c - v - l * s - 0.5} ${r - w},${c - v - p - l * s - 0.5}`,
193
- top: `M${r / 2},${c - v - l * s} ${f},${c - v - p - l * s} ${r / 2},${c - v - p * 2 - l * s} ${r - w},${c - v - p - l * s} Z`,
194
- tubeTop: `M${f},${c - v - l * s - p} C ${f},${c - v - l * s - p * 2.5} ${r - w},${c - v - l * s - p * 2.5} ${r - w},${c - v - l * s - p} C ${r - w},${c - v - l * s + p / 2} ${f},${c - v - l * s + p / 2} ${f},${c - v - l * s - p}`,
195
- bottomTubeTop: `M ${r - w - 0.5},${c - v - p} C ${r - w - 0.5},${c - v + p / 2} ${f},${c - v + p / 2} ${f + 0.5},${c - v - p}`,
187
+ apexBottom: { y: i - v, x: r / 2 },
188
+ apexTop: { y: i - v - l * s, x: r / 2 },
189
+ right: `M${r / 2},${i - v} ${r / 2},${i - v - l * s} ${r - w},${i - v - p - l * s} ${r - w},${i - v - p}Z`,
190
+ left: `M${r / 2},${i - v} ${r / 2},${i - v - l * s} ${f}, ${i - v - p - l * s} ${f},${i - v - p}Z`,
191
+ liningTop: `M${f},${i - v - p - l * s} ${r / 2},${i - v - l * s} ${r - w},${i - v - p - l * s}`,
192
+ liningTopShade: `M${f},${i - v - p - l * s - 0.5} ${r / 2},${i - v - l * s - 0.5} ${r - w},${i - v - p - l * s - 0.5}`,
193
+ top: `M${r / 2},${i - v - l * s} ${f},${i - v - p - l * s} ${r / 2},${i - v - p * 2 - l * s} ${r - w},${i - v - p - l * s} Z`,
194
+ tubeTop: `M${f},${i - v - l * s - p} C ${f},${i - v - l * s - p * 2.5} ${r - w},${i - v - l * s - p * 2.5} ${r - w},${i - v - l * s - p} C ${r - w},${i - v - l * s + p / 2} ${f},${i - v - l * s + p / 2} ${f},${i - v - l * s - p}`,
195
+ bottomTubeTop: `M ${r - w - 0.5},${i - v - p} C ${r - w - 0.5},${i - v + p / 2} ${f},${i - v + p / 2} ${f + 0.5},${i - v - p}`,
196
196
  tubeBody: `M
197
- ${f},${c - v - l * s - p}
198
- C ${f},${c - v - l * s + p / 2}
199
- ${r - w},${c - v - l * s + p / 2}
200
- ${r - w},${c - v - l * s - p}
201
- L${r - w},${c - v - p}
197
+ ${f},${i - v - l * s - p}
198
+ C ${f},${i - v - l * s + p / 2}
199
+ ${r - w},${i - v - l * s + p / 2}
200
+ ${r - w},${i - v - l * s - p}
201
+ L${r - w},${i - v - p}
202
202
  C
203
- ${r - w},${c - v + p / 2}
204
- ${f},${c - v + p / 2}
205
- ${f},${c - v - p}Z`
203
+ ${r - w},${i - v + p / 2}
204
+ ${f},${i - v + p / 2}
205
+ ${f},${i - v - p}Z`
206
206
  };
207
207
  }
208
208
  const R = T(() => {
209
- const a = V.value / 100, s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: h, bottom: l, right: r, left: c, perspective: k } = o.value, f = l + s * 0;
209
+ const a = V.value / 100, s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: h, bottom: l, right: r, left: i, perspective: k } = o.value, f = l + s * 0;
210
210
  return {
211
211
  right: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${e - r},${h - f - k - s * a} ${e - r},${h - f - k}Z`,
212
- left: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${c}, ${h - f - k - s * a} ${c},${h - f - k}Z`,
213
- top: `M${e / 2},${h - f - s * a} ${c},${h - f - k - s * a} ${e / 2},${h - f - k * 2 - s * a} ${e - r},${h - f - k - s * a} Z`,
214
- tubeTop: `M${c},${h - f - s * a - k} C ${c},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k} C ${e - r},${h - f - s * a + k / 2} ${c},${h - f - s * a + k / 2} ${c},${h - f - s * a - k}`,
212
+ left: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${i}, ${h - f - k - s * a} ${i},${h - f - k}Z`,
213
+ top: `M${e / 2},${h - f - s * a} ${i},${h - f - k - s * a} ${e / 2},${h - f - k * 2 - s * a} ${e - r},${h - f - k - s * a} Z`,
214
+ tubeTop: `M${i},${h - f - s * a - k} C ${i},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k} C ${e - r},${h - f - s * a + k / 2} ${i},${h - f - s * a + k / 2} ${i},${h - f - s * a - k}`,
215
215
  tubeBody: `M
216
- ${c},${h - f - s * a - k}
217
- C ${c},${h - f - s * a + k / 2}
216
+ ${i},${h - f - s * a - k}
217
+ C ${i},${h - f - s * a + k / 2}
218
218
  ${e - r},${h - f - s * a + k / 2}
219
219
  ${e - r},${h - f - s * a - k}
220
220
  L${e - r},${h - k * 1.5}
221
221
  C
222
222
  ${e - r},${h}
223
- ${c},${h}
224
- ${c},${h - f - k}Z`
223
+ ${i},${h}
224
+ ${i},${h - f - k}Z`
225
225
  };
226
226
  }), x = j(null);
227
227
  function M(a, s = !1) {
@@ -231,7 +231,7 @@ const gt = ["id"], $t = {
231
231
  I.value || (x.value = null);
232
232
  }
233
233
  function W(a, s, e = !1) {
234
- const h = $.dataset.series.map((c) => c.value || 0).reduce((c, k) => c + k, 0), l = isNaN(a.value / h) ? 0 : a.value / h * 100, r = isNaN(a.value / me(s)) ? 0 : a.value / me(s) * 100;
234
+ const h = $.dataset.series.map((i) => i.value || 0).reduce((i, k) => i + k, 0), l = isNaN(a.value / h) ? 0 : a.value / h * 100, r = isNaN(a.value / me(s)) ? 0 : a.value / me(s) * 100;
235
235
  return e ? r : l.toFixed(0) + "%";
236
236
  }
237
237
  function me(a) {
@@ -257,33 +257,33 @@ const gt = ["id"], $t = {
257
257
  } else
258
258
  return null;
259
259
  });
260
- function be() {
260
+ function be(a = null) {
261
261
  if (!F.value) {
262
262
  console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
263
263
  return;
264
264
  }
265
265
  ot(() => {
266
- const a = C.value.map((l) => l.value).reduce((l, r) => l + r, 0), s = N.value.head.map((l, r) => [[
267
- l.name
268
- ], [N.value.body[r]], [isNaN(N.value.body[r] / a) ? "-" : N.value.body[r] / a * 100]]), e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), h = ct(e);
269
- ht({ csvContent: h, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
266
+ const s = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), e = N.value.head.map((r, i) => [[
267
+ r.name
268
+ ], [N.value.body[i]], [isNaN(N.value.body[i] / s) ? "-" : N.value.body[i] / s * 100]]), h = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l = ct(h);
269
+ a ? a(l) : ht({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
270
270
  });
271
271
  }
272
272
  const X = T(() => {
273
- const a = C.value.map((r) => r.value).reduce((r, c) => r + c, 0), s = [
273
+ const a = C.value.map((r) => r.value).reduce((r, i) => r + i, 0), s = [
274
274
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
275
275
  D({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
276
276
  "100%"
277
- ], e = N.value.head.map((r, c) => {
278
- const k = D({ p: t.value.style.chart.legend.prefix, v: N.value.body[c], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
277
+ ], e = N.value.head.map((r, i) => {
278
+ const k = D({ p: t.value.style.chart.legend.prefix, v: N.value.body[i], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
279
279
  return [
280
280
  {
281
281
  color: r.color,
282
282
  name: r.name
283
283
  },
284
284
  k,
285
- isNaN(N.value.body[c] / a) ? "-" : D({
286
- v: N.value.body[c] / a * 100,
285
+ isNaN(N.value.body[i] / a) ? "-" : D({
286
+ v: N.value.body[i] / a * 100,
287
287
  s: "%",
288
288
  r: t.value.table.td.roundingPercentage
289
289
  })
@@ -327,7 +327,7 @@ const gt = ["id"], $t = {
327
327
  getData: qe,
328
328
  toggleTable: xe,
329
329
  toggleAnnotator: ne
330
- }), (a, s) => (n(), d("div", {
330
+ }), (a, s) => (n(), c("div", {
331
331
  ref_key: "bar3dChart",
332
332
  ref: ie,
333
333
  class: Pe("vue-ui-3d-bar"),
@@ -344,7 +344,7 @@ const gt = ["id"], $t = {
344
344
  active: Y.value,
345
345
  onClose: ne
346
346
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
347
- t.value.style.chart.title.text ? (n(), d("div", $t, [
347
+ t.value.style.chart.title.text ? (n(), c("div", $t, [
348
348
  (n(), U(yt, {
349
349
  key: `title_${de.value}`,
350
350
  config: {
@@ -378,6 +378,7 @@ const gt = ["id"], $t = {
378
378
  position: t.value.userOptions.position,
379
379
  hasAnnotator: t.value.userOptions.buttons.annotator,
380
380
  isAnnotation: Y.value,
381
+ callbacks: t.value.userOptions.callbacks,
381
382
  onToggleFullscreen: Ze,
382
383
  onGeneratePdf: u(ge),
383
384
  onGenerateCsv: be,
@@ -437,8 +438,8 @@ const gt = ["id"], $t = {
437
438
  ]),
438
439
  key: "6"
439
440
  } : void 0
440
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
441
- q.value ? (n(), d("svg", {
441
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
442
+ q.value ? (n(), c("svg", {
442
443
  key: 3,
443
444
  ref_key: "svgRef",
444
445
  ref: fe,
@@ -448,7 +449,7 @@ const gt = ["id"], $t = {
448
449
  style: O(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
449
450
  }, [
450
451
  tt(u(Le)),
451
- a.$slots["chart-background"] ? (n(), d("foreignObject", {
452
+ a.$slots["chart-background"] ? (n(), c("foreignObject", {
452
453
  key: 0,
453
454
  x: 0,
454
455
  y: 0,
@@ -460,119 +461,119 @@ const gt = ["id"], $t = {
460
461
  }, [
461
462
  P(a.$slots, "chart-background", {}, void 0, !0)
462
463
  ], 8, mt)) : y("", !0),
463
- i("defs", null, [
464
- i("radialGradient", {
464
+ d("defs", null, [
465
+ d("radialGradient", {
465
466
  id: `gradient_top${b.value}`
466
467
  }, [
467
- i("stop", {
468
+ d("stop", {
468
469
  offset: "0%",
469
470
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
470
471
  }, null, 8, xt),
471
- i("stop", {
472
+ d("stop", {
472
473
  offset: "100%",
473
474
  "stop-color": t.value.style.chart.bar.color
474
475
  }, null, 8, wt)
475
476
  ], 8, bt),
476
- i("radialGradient", {
477
+ d("radialGradient", {
477
478
  id: `gradient_left${b.value}`
478
479
  }, [
479
- i("stop", {
480
+ d("stop", {
480
481
  offset: "0%",
481
482
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
482
483
  }, null, 8, Ft),
483
- i("stop", {
484
+ d("stop", {
484
485
  offset: "100%",
485
486
  "stop-color": u(g)(t.value.style.chart.bar.color, 20)
486
487
  }, null, 8, Mt)
487
488
  ], 8, Ct),
488
- i("radialGradient", {
489
+ d("radialGradient", {
489
490
  id: `gradient_right${b.value}`
490
491
  }, [
491
- i("stop", {
492
+ d("stop", {
492
493
  offset: "0%",
493
494
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
494
495
  }, null, 8, jt),
495
- i("stop", {
496
+ d("stop", {
496
497
  offset: "100%",
497
498
  "stop-color": u(g)(t.value.style.chart.bar.color, 20)
498
499
  }, null, 8, Tt)
499
500
  ], 8, Pt),
500
- i("linearGradient", {
501
+ d("linearGradient", {
501
502
  id: `gradient_tube_body${b.value}`,
502
503
  x1: "0%",
503
504
  y1: "0%",
504
505
  x2: "100%",
505
506
  y2: "0%"
506
507
  }, [
507
- i("stop", {
508
+ d("stop", {
508
509
  offset: "0%",
509
510
  "stop-color": `${t.value.style.chart.bar.color}`
510
511
  }, null, 8, Dt),
511
- i("stop", {
512
+ d("stop", {
512
513
  offset: "75%",
513
514
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
514
515
  }, null, 8, Ot),
515
- i("stop", {
516
+ d("stop", {
516
517
  offset: "100%",
517
518
  "stop-color": u(g)(t.value.style.chart.bar.color, 40)
518
519
  }, null, 8, zt)
519
520
  ], 8, St)
520
521
  ]),
521
- F.value ? (n(), d("defs", Nt, [
522
- (n(!0), d(_, null, m(C.value, (e) => (n(), d("radialGradient", {
522
+ F.value ? (n(), c("defs", Nt, [
523
+ (n(!0), c(_, null, m(C.value, (e) => (n(), c("radialGradient", {
523
524
  id: `grad_top_${e.id}`
524
525
  }, [
525
- i("stop", {
526
+ d("stop", {
526
527
  offset: "0%",
527
528
  "stop-color": u(g)(u(E)(e.color, 0.5), 80)
528
529
  }, null, 8, At),
529
- i("stop", {
530
+ d("stop", {
530
531
  offset: "100%",
531
532
  "stop-color": e.color
532
533
  }, null, 8, It)
533
534
  ], 8, Bt))), 256)),
534
- (n(!0), d(_, null, m(C.value, (e) => (n(), d("linearGradient", {
535
+ (n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
535
536
  id: `grad_left_${e.id}`
536
537
  }, [
537
- i("stop", {
538
+ d("stop", {
538
539
  offset: "0%",
539
540
  "stop-color": u(g)(e.color, 80)
540
541
  }, null, 8, Vt),
541
- i("stop", {
542
+ d("stop", {
542
543
  offset: "100%",
543
544
  "stop-color": u(g)(u(te)(e.color, 0.5), 100)
544
545
  }, null, 8, Wt)
545
546
  ], 8, Lt))), 256)),
546
- (n(!0), d(_, null, m(C.value, (e) => (n(), d("linearGradient", {
547
+ (n(!0), c(_, null, m(C.value, (e) => (n(), c("linearGradient", {
547
548
  id: `grad_right_${e.id}`
548
549
  }, [
549
- i("stop", {
550
+ d("stop", {
550
551
  offset: "2%",
551
552
  "stop-color": u(g)(u(E)(e.color, 0.5), 100)
552
553
  }, null, 8, Ut),
553
- i("stop", {
554
+ d("stop", {
554
555
  offset: "100%",
555
556
  "stop-color": u(g)(e.color, 80)
556
557
  }, null, 8, Et)
557
558
  ], 8, Gt))), 256)),
558
- i("linearGradient", {
559
+ d("linearGradient", {
559
560
  x1: "0%",
560
561
  y1: "0%",
561
562
  x2: "0%",
562
563
  y2: "100%",
563
564
  id: `vertical_line_${b.value}`
564
565
  }, s[4] || (s[4] = [
565
- i("stop", {
566
+ d("stop", {
566
567
  offset: "0%",
567
568
  "stop-color": "#FFFFFF"
568
569
  }, null, -1),
569
- i("stop", {
570
+ d("stop", {
570
571
  offset: "100%",
571
572
  "stop-color": "#FFFFFF33"
572
573
  }, null, -1)
573
574
  ]), 8, Ht)
574
575
  ])) : y("", !0),
575
- t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), d("text", {
576
+ t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), c("text", {
576
577
  key: 2,
577
578
  x: o.value.width / 2,
578
579
  y: o.value.top - t.value.style.chart.dataLabel.fontSize / 2,
@@ -585,7 +586,7 @@ const gt = ["id"], $t = {
585
586
  s: "%",
586
587
  r: t.value.style.chart.dataLabel.rounding
587
588
  })), 9, Rt)) : y("", !0),
588
- I.value ? (n(), d("g", {
589
+ I.value ? (n(), c("g", {
589
590
  key: 3,
590
591
  onClick: s[0] || (s[0] = (e) => {
591
592
  I.value = !1, x.value = null;
@@ -593,29 +594,29 @@ const gt = ["id"], $t = {
593
594
  "data-dom-to-png-ignore": "",
594
595
  style: { cursor: "pointer" }
595
596
  }, [
596
- i("rect", {
597
+ d("rect", {
597
598
  x: o.value.width / 2 - 6,
598
599
  y: o.value.top - 20,
599
600
  height: 12,
600
601
  width: 12,
601
602
  fill: "transparent"
602
603
  }, null, 8, Zt),
603
- i("path", {
604
+ d("path", {
604
605
  d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
605
606
  stroke: t.value.style.chart.color,
606
607
  "stroke-linecap": "round",
607
608
  "stroke-width": "1"
608
609
  }, null, 8, qt),
609
- i("path", {
610
+ d("path", {
610
611
  d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
611
612
  stroke: t.value.style.chart.color,
612
613
  "stroke-linecap": "round",
613
614
  "stroke-width": "1"
614
615
  }, null, 8, Xt)
615
616
  ])) : y("", !0),
616
- !t.value.style.shape || t.value.style.shape === "bar" ? (n(), d("g", Yt, [
617
- F.value ? y("", !0) : (n(), d("g", Jt, [
618
- i("path", {
617
+ !t.value.style.shape || t.value.style.shape === "bar" ? (n(), c("g", Yt, [
618
+ F.value ? y("", !0) : (n(), c("g", Jt, [
619
+ d("path", {
619
620
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
620
621
  d: z.value.right,
621
622
  stroke: t.value.style.chart.box.stroke,
@@ -624,7 +625,7 @@ const gt = ["id"], $t = {
624
625
  "stroke-linecap": "round",
625
626
  fill: "none"
626
627
  }, null, 8, Kt),
627
- i("path", {
628
+ d("path", {
628
629
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
629
630
  d: z.value.left,
630
631
  stroke: t.value.style.chart.box.stroke,
@@ -633,7 +634,7 @@ const gt = ["id"], $t = {
633
634
  "stroke-linecap": "round",
634
635
  fill: "none"
635
636
  }, null, 8, Qt),
636
- i("path", {
637
+ d("path", {
637
638
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
638
639
  d: z.value.side,
639
640
  stroke: t.value.style.chart.box.stroke,
@@ -642,7 +643,7 @@ const gt = ["id"], $t = {
642
643
  "stroke-linecap": "round",
643
644
  fill: "none"
644
645
  }, null, 8, el),
645
- i("path", {
646
+ d("path", {
646
647
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
647
648
  d: z.value.topSides,
648
649
  stroke: t.value.style.chart.box.stroke,
@@ -652,8 +653,8 @@ const gt = ["id"], $t = {
652
653
  fill: "none"
653
654
  }, null, 8, tl)
654
655
  ])),
655
- F.value ? y("", !0) : (n(), d("g", ll, [
656
- i("path", {
656
+ F.value ? y("", !0) : (n(), c("g", ll, [
657
+ d("path", {
657
658
  d: R.value.right,
658
659
  stroke: t.value.style.chart.bar.stroke,
659
660
  "stroke-width": t.value.style.chart.bar.strokeWidth,
@@ -661,7 +662,7 @@ const gt = ["id"], $t = {
661
662
  "stroke-linecap": "round",
662
663
  fill: `url(#gradient_right${b.value})`
663
664
  }, null, 8, ol),
664
- i("path", {
665
+ d("path", {
665
666
  d: R.value.left,
666
667
  stroke: t.value.style.chart.bar.stroke,
667
668
  "stroke-width": t.value.style.chart.bar.strokeWidth,
@@ -669,7 +670,7 @@ const gt = ["id"], $t = {
669
670
  "stroke-linecap": "round",
670
671
  fill: `url(#gradient_left${b.value})`
671
672
  }, null, 8, sl),
672
- i("path", {
673
+ d("path", {
673
674
  d: R.value.top,
674
675
  stroke: t.value.style.chart.bar.stroke,
675
676
  "stroke-width": t.value.style.chart.bar.strokeWidth,
@@ -678,33 +679,33 @@ const gt = ["id"], $t = {
678
679
  fill: `url(#gradient_top${b.value})`
679
680
  }, null, 8, al)
680
681
  ])),
681
- F.value ? (n(), d("g", nl, [
682
- (n(!0), d(_, null, m(C.value, (e, h) => (n(), d("g", {
682
+ F.value ? (n(), c("g", nl, [
683
+ (n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
683
684
  style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
684
685
  class: "vue-ui-3d-bar-stack"
685
686
  }, [
686
- i("path", {
687
+ d("path", {
687
688
  d: e.fill.right,
688
689
  fill: `url(#grad_right_${e.id})`,
689
690
  onMouseenter: (l) => M(e),
690
691
  onClick: (l) => M(e, !0),
691
692
  onMouseout: L
692
693
  }, null, 40, rl),
693
- i("path", {
694
+ d("path", {
694
695
  d: e.fill.left,
695
696
  fill: `url(#grad_left_${e.id})`,
696
697
  onMouseenter: (l) => M(e),
697
698
  onClick: (l) => M(e, !0),
698
699
  onMouseout: L
699
700
  }, null, 40, ul),
700
- i("path", {
701
+ d("path", {
701
702
  d: e.fill.top,
702
703
  fill: `url(#grad_top_${e.id})`,
703
704
  onMouseenter: (l) => M(e),
704
705
  onClick: (l) => M(e, !0),
705
706
  onMouseout: L
706
707
  }, null, 40, il),
707
- i("path", {
708
+ d("path", {
708
709
  d: e.fill.liningTop,
709
710
  stroke: "#FFFFFF",
710
711
  "stroke-width": "0.5",
@@ -714,15 +715,15 @@ const gt = ["id"], $t = {
714
715
  onClick: (l) => M(e, !0),
715
716
  onMouseout: L
716
717
  }, null, 40, dl),
717
- i("path", {
718
+ d("path", {
718
719
  d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
719
720
  stroke: "#FFFFFF",
720
721
  "stroke-width": "0.5",
721
722
  "stroke-linecap": "round"
722
723
  }, null, 8, cl)
723
724
  ], 4))), 256)),
724
- (n(!0), d(_, null, m(C.value, (e, h) => (n(), d("g", null, [
725
- h !== C.value.length - 1 ? (n(), d("path", {
725
+ (n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", null, [
726
+ h !== C.value.length - 1 ? (n(), c("path", {
726
727
  key: 0,
727
728
  d: e.fill.liningTopShade,
728
729
  stroke: t.value.style.chart.bar.shadeColor,
@@ -732,18 +733,18 @@ const gt = ["id"], $t = {
732
733
  style: { "pointer-events": "none" }
733
734
  }, null, 8, hl)) : y("", !0)
734
735
  ]))), 256)),
735
- (n(!0), d(_, null, m(C.value, (e, h) => (n(), d("g", {
736
+ (n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
736
737
  style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
737
738
  onClick: (l) => Z("selectDatapoint", e)
738
739
  }, [
739
- i("path", {
740
+ d("path", {
740
741
  stroke: t.value.style.chart.color,
741
742
  "stroke-dasharray": "1",
742
743
  "stroke-width": "0.5",
743
744
  "stroke-linecap": "round",
744
745
  d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
745
746
  }, null, 8, fl),
746
- !e.fill.miniDonut || x.value ? (n(), d("circle", {
747
+ !e.fill.miniDonut || x.value ? (n(), c("circle", {
747
748
  key: 0,
748
749
  cx: e.fill.sidePointer.x + 20,
749
750
  cy: e.fill.sidePointer.y,
@@ -751,14 +752,14 @@ const gt = ["id"], $t = {
751
752
  fill: e.color,
752
753
  stroke: t.value.style.chart.backgroundColor
753
754
  }, null, 8, pl)) : y("", !0),
754
- (n(), d("foreignObject", {
755
+ (n(), c("foreignObject", {
755
756
  x: e.fill.sidePointer.x + 30,
756
757
  y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
757
758
  width: o.value.absoluteWidth / 2 - 12,
758
759
  height: t.value.style.chart.legend.fontSize * 2,
759
760
  style: { overflow: "visible", position: "relative" }
760
761
  }, [
761
- t.value.style.chart.legend.showDefault ? (n(), d("div", {
762
+ t.value.style.chart.legend.showDefault ? (n(), c("div", {
762
763
  key: 0,
763
764
  style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
764
765
  }, B(u(le)(
@@ -774,9 +775,9 @@ const gt = ["id"], $t = {
774
775
  )), 5)) : y("", !0),
775
776
  P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
776
777
  ], 8, yl)),
777
- e.fill.donut && x.value === e.id ? (n(), d("g", kl, [
778
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("g", null, [
779
- W(l, e.fill.donut, !0) > 6 ? (n(), d("path", {
778
+ e.fill.donut && x.value === e.id ? (n(), c("g", kl, [
779
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
780
+ W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
780
781
  key: 0,
781
782
  d: u(De)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
782
783
  stroke: l.color,
@@ -787,48 +788,48 @@ const gt = ["id"], $t = {
787
788
  fill: "none"
788
789
  }, null, 8, gl)) : y("", !0)
789
790
  ]))), 256)),
790
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("path", {
791
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
791
792
  class: "vue-ui-donut-arc-path",
792
793
  d: l.arcSlice,
793
794
  fill: `${l.color}`,
794
795
  stroke: t.value.style.chart.backgroundColor,
795
796
  "stroke-width": 1
796
797
  }, null, 8, $l))), 256)),
797
- i("defs", null, [
798
- i("radialGradient", {
798
+ d("defs", null, [
799
+ d("radialGradient", {
799
800
  id: `hollow_gradient_${b.value}`
800
801
  }, [
801
- i("stop", {
802
+ d("stop", {
802
803
  offset: "0%",
803
804
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
804
805
  }, null, 8, ml),
805
- s[5] || (s[5] = i("stop", {
806
+ s[5] || (s[5] = d("stop", {
806
807
  offset: "77%",
807
808
  "stop-color": "#FFFFFF20"
808
809
  }, null, -1)),
809
- i("stop", {
810
+ d("stop", {
810
811
  offset: "100%",
811
812
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
812
813
  }, null, 8, bl)
813
814
  ], 8, _l)
814
815
  ]),
815
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("circle", {
816
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
816
817
  class: "vue-ui-donut-arc-path",
817
818
  cx: l.cx,
818
819
  cy: l.cy,
819
820
  r: 28,
820
821
  fill: `url(#hollow_gradient_${b.value})`
821
822
  }, null, 8, xl))), 256)),
822
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("circle", {
823
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
823
824
  class: "vue-ui-donut-arc-path",
824
825
  cx: l.cx,
825
826
  cy: l.cy,
826
827
  r: 14,
827
828
  fill: t.value.style.chart.backgroundColor
828
829
  }, null, 8, wl))), 256)),
829
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("g", null, [
830
- W(l, e.fill.donut, !0) > 6 ? (n(), d("g", Cl, [
831
- i("text", {
830
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
831
+ W(l, e.fill.donut, !0) > 6 ? (n(), c("g", Cl, [
832
+ d("text", {
832
833
  "text-anchor": u(A)(l, !0, 0).anchor,
833
834
  x: u(A)(l, !0, 2).x,
834
835
  y: u(oe)(l, 12, 12),
@@ -845,7 +846,7 @@ const gt = ["id"], $t = {
845
846
  })})`,
846
847
  { datapoint: l, seriesIndex: r, type: "donutDatapoint" }
847
848
  )), 9, Fl),
848
- i("text", {
849
+ d("text", {
849
850
  "text-anchor": u(A)(l).anchor,
850
851
  x: u(A)(l, !0, 2).x,
851
852
  y: u(oe)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
@@ -855,8 +856,8 @@ const gt = ["id"], $t = {
855
856
  ])) : y("", !0)
856
857
  ]))), 256))
857
858
  ])) : y("", !0),
858
- e.fill.miniDonut && !x.value ? (n(), d("g", Pl, [
859
- (n(!0), d(_, null, m(e.fill.miniDonut, (l, r) => (n(), d("path", {
859
+ e.fill.miniDonut && !x.value ? (n(), c("g", Pl, [
860
+ (n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
860
861
  class: "vue-ui-donut-arc-path",
861
862
  d: l.arcSlice,
862
863
  fill: `${l.color}`,
@@ -867,9 +868,9 @@ const gt = ["id"], $t = {
867
868
  ], 12, vl))), 256))
868
869
  ])) : y("", !0)
869
870
  ])) : y("", !0),
870
- t.value.style.shape === "tube" ? (n(), d("g", Tl, [
871
- F.value ? y("", !0) : (n(), d("g", Sl, [
872
- i("path", {
871
+ t.value.style.shape === "tube" ? (n(), c("g", Tl, [
872
+ F.value ? y("", !0) : (n(), c("g", Sl, [
873
+ d("path", {
873
874
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
874
875
  d: z.value.tubeTop,
875
876
  stroke: t.value.style.chart.box.stroke,
@@ -878,7 +879,7 @@ const gt = ["id"], $t = {
878
879
  "stroke-linecap": "round",
879
880
  fill: "none"
880
881
  }, null, 8, Dl),
881
- i("path", {
882
+ d("path", {
882
883
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
883
884
  d: z.value.tubeLeft,
884
885
  stroke: t.value.style.chart.box.stroke,
@@ -887,7 +888,7 @@ const gt = ["id"], $t = {
887
888
  "stroke-linecap": "round",
888
889
  fill: "none"
889
890
  }, null, 8, Ol),
890
- i("path", {
891
+ d("path", {
891
892
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
892
893
  d: z.value.tubeRight,
893
894
  stroke: t.value.style.chart.box.stroke,
@@ -896,7 +897,7 @@ const gt = ["id"], $t = {
896
897
  "stroke-linecap": "round",
897
898
  fill: "none"
898
899
  }, null, 8, zl),
899
- i("path", {
900
+ d("path", {
900
901
  "stroke-dasharray": t.value.style.chart.box.strokeDasharray,
901
902
  d: z.value.tubeBottom,
902
903
  stroke: t.value.style.chart.box.stroke,
@@ -905,7 +906,7 @@ const gt = ["id"], $t = {
905
906
  "stroke-linecap": "round",
906
907
  fill: "none"
907
908
  }, null, 8, Nl),
908
- i("path", {
909
+ d("path", {
909
910
  d: R.value.tubeTop,
910
911
  stroke: t.value.style.chart.bar.stroke,
911
912
  "stroke-width": t.value.style.chart.bar.strokeWidth,
@@ -913,7 +914,7 @@ const gt = ["id"], $t = {
913
914
  "stroke-linecap": "round",
914
915
  fill: `url(#gradient_top${b.value})`
915
916
  }, null, 8, Bl),
916
- i("path", {
917
+ d("path", {
917
918
  d: R.value.tubeBody,
918
919
  stroke: t.value.style.chart.bar.stroke,
919
920
  "stroke-width": t.value.style.chart.bar.strokeWidth,
@@ -922,57 +923,57 @@ const gt = ["id"], $t = {
922
923
  fill: `url(#gradient_tube_body${b.value})`
923
924
  }, null, 8, Al)
924
925
  ])),
925
- F.value ? (n(), d("g", Il, [
926
- (n(!0), d(_, null, m(C.value, (e, h) => (n(), d("g", {
926
+ F.value ? (n(), c("g", Il, [
927
+ (n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
927
928
  style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0.3 : 1}`),
928
929
  class: "vue-ui-3d-bar-stack",
929
930
  onClick: (l) => Z("selectDatapoint", e)
930
931
  }, [
931
- i("defs", null, [
932
- i("radialGradient", {
932
+ d("defs", null, [
933
+ d("radialGradient", {
933
934
  id: `gradient_tube_top_${e.id}`,
934
935
  fx: "10%",
935
936
  cy: "55%"
936
937
  }, [
937
- i("stop", {
938
+ d("stop", {
938
939
  offset: "0%",
939
940
  "stop-color": u(g)(u(E)(e.color, 0.5), 80)
940
941
  }, null, 8, Wl),
941
- i("stop", {
942
+ d("stop", {
942
943
  offset: "100%",
943
944
  "stop-color": u(g)(u(te)(e.color, 0.1), 80)
944
945
  }, null, 8, Gl)
945
946
  ], 8, Vl),
946
- i("linearGradient", {
947
+ d("linearGradient", {
947
948
  id: `gradient_tube_body_${e.id}`,
948
949
  x1: "0%",
949
950
  y1: "0%",
950
951
  x2: "100%",
951
952
  y2: "0%"
952
953
  }, [
953
- i("stop", {
954
+ d("stop", {
954
955
  offset: "0%",
955
956
  "stop-color": `${e.color}`
956
957
  }, null, 8, El),
957
- i("stop", {
958
+ d("stop", {
958
959
  offset: "10%",
959
960
  "stop-color": u(g)(u(te)(e.color, 0.7), 100)
960
961
  }, null, 8, Hl),
961
- i("stop", {
962
+ d("stop", {
962
963
  offset: "25%",
963
964
  "stop-color": u(g)(u(te)(e.color, 0.5), 100)
964
965
  }, null, 8, Rl),
965
- i("stop", {
966
+ d("stop", {
966
967
  offset: "75%",
967
968
  "stop-color": u(g)(e.color, 80)
968
969
  }, null, 8, Zl),
969
- i("stop", {
970
+ d("stop", {
970
971
  offset: "100%",
971
972
  "stop-color": u(g)(u(E)(e.color, 0.7), 100)
972
973
  }, null, 8, ql)
973
974
  ], 8, Ul)
974
975
  ]),
975
- i("path", {
976
+ d("path", {
976
977
  onMouseenter: (l) => M(e),
977
978
  onClick: (l) => M(e, !0),
978
979
  onMouseout: L,
@@ -983,7 +984,7 @@ const gt = ["id"], $t = {
983
984
  "stroke-linecap": "round",
984
985
  fill: `url(#gradient_tube_body_${e.id})`
985
986
  }, null, 40, Xl),
986
- h > 0 ? (n(), d("path", {
987
+ h > 0 ? (n(), c("path", {
987
988
  key: 0,
988
989
  onMouseenter: (l) => M(e),
989
990
  onClick: (l) => M(e, !0),
@@ -995,7 +996,7 @@ const gt = ["id"], $t = {
995
996
  "stroke-linecap": "round",
996
997
  fill: "none"
997
998
  }, null, 40, Yl)) : y("", !0),
998
- i("path", {
999
+ d("path", {
999
1000
  onMouseenter: (l) => M(e),
1000
1001
  onClick: (l) => M(e, !0),
1001
1002
  onMouseout: L,
@@ -1007,18 +1008,18 @@ const gt = ["id"], $t = {
1007
1008
  fill: `url(#gradient_tube_top_${e.id})`
1008
1009
  }, null, 40, Jl)
1009
1010
  ], 12, Ll))), 256)),
1010
- (n(!0), d(_, null, m(C.value, (e, h) => (n(), d("g", {
1011
+ (n(!0), c(_, null, m(C.value, (e, h) => (n(), c("g", {
1011
1012
  style: O(`opacity:${x.value ? x.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
1012
1013
  onClick: (l) => Z("selectDatapoint", e)
1013
1014
  }, [
1014
- i("path", {
1015
+ d("path", {
1015
1016
  stroke: t.value.style.chart.color,
1016
1017
  "stroke-dasharray": "1",
1017
1018
  "stroke-width": "0.5",
1018
1019
  "stroke-linecap": "round",
1019
1020
  d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
1020
1021
  }, null, 8, Ql),
1021
- !e.fill.miniDonut || x.value ? (n(), d("circle", {
1022
+ !e.fill.miniDonut || x.value ? (n(), c("circle", {
1022
1023
  key: 0,
1023
1024
  cx: e.fill.sidePointer.x + 20,
1024
1025
  cy: e.fill.sidePointer.y,
@@ -1026,14 +1027,14 @@ const gt = ["id"], $t = {
1026
1027
  fill: e.color,
1027
1028
  stroke: t.value.style.chart.backgroundColor
1028
1029
  }, null, 8, eo)) : y("", !0),
1029
- (n(), d("foreignObject", {
1030
+ (n(), c("foreignObject", {
1030
1031
  x: e.fill.sidePointer.x + 30,
1031
1032
  y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
1032
1033
  width: o.value.absoluteWidth / 2 - 12,
1033
1034
  height: t.value.style.chart.legend.fontSize * 2,
1034
1035
  style: { overflow: "visible", position: "relative" }
1035
1036
  }, [
1036
- t.value.style.chart.legend.showDefault ? (n(), d("div", {
1037
+ t.value.style.chart.legend.showDefault ? (n(), c("div", {
1037
1038
  key: 0,
1038
1039
  style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
1039
1040
  }, B(u(le)(
@@ -1049,9 +1050,9 @@ const gt = ["id"], $t = {
1049
1050
  )), 5)) : y("", !0),
1050
1051
  P(a.$slots, "legend", je({ ref_for: !0 }, { datapoint: e, config: t.value, dataset: C.value }), void 0, !0)
1051
1052
  ], 8, to)),
1052
- e.fill.donut && x.value === e.id ? (n(), d("g", lo, [
1053
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("g", null, [
1054
- W(l, e.fill.donut, !0) > 6 ? (n(), d("path", {
1053
+ e.fill.donut && x.value === e.id ? (n(), c("g", lo, [
1054
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
1055
+ W(l, e.fill.donut, !0) > 6 ? (n(), c("path", {
1055
1056
  key: 0,
1056
1057
  d: u(De)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
1057
1058
  stroke: l.color,
@@ -1062,48 +1063,48 @@ const gt = ["id"], $t = {
1062
1063
  fill: "none"
1063
1064
  }, null, 8, oo)) : y("", !0)
1064
1065
  ]))), 256)),
1065
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("path", {
1066
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("path", {
1066
1067
  class: "vue-ui-donut-arc-path",
1067
1068
  d: l.arcSlice,
1068
1069
  fill: `${l.color}`,
1069
1070
  stroke: t.value.style.chart.backgroundColor,
1070
1071
  "stroke-width": 1
1071
1072
  }, null, 8, so))), 256)),
1072
- i("defs", null, [
1073
- i("radialGradient", {
1073
+ d("defs", null, [
1074
+ d("radialGradient", {
1074
1075
  id: `hollow_gradient_${b.value}`
1075
1076
  }, [
1076
- i("stop", {
1077
+ d("stop", {
1077
1078
  offset: "0%",
1078
1079
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
1079
1080
  }, null, 8, no),
1080
- s[6] || (s[6] = i("stop", {
1081
+ s[6] || (s[6] = d("stop", {
1081
1082
  offset: "77%",
1082
1083
  "stop-color": "#FFFFFF20"
1083
1084
  }, null, -1)),
1084
- i("stop", {
1085
+ d("stop", {
1085
1086
  offset: "100%",
1086
1087
  "stop-color": u(g)(t.value.style.chart.backgroundColor, 0)
1087
1088
  }, null, 8, ro)
1088
1089
  ], 8, ao)
1089
1090
  ]),
1090
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("circle", {
1091
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
1091
1092
  class: "vue-ui-donut-arc-path",
1092
1093
  cx: l.cx,
1093
1094
  cy: l.cy,
1094
1095
  r: 28,
1095
1096
  fill: `url(#hollow_gradient_${b.value})`
1096
1097
  }, null, 8, uo))), 256)),
1097
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("circle", {
1098
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("circle", {
1098
1099
  class: "vue-ui-donut-arc-path",
1099
1100
  cx: l.cx,
1100
1101
  cy: l.cy,
1101
1102
  r: 14,
1102
1103
  fill: t.value.style.chart.backgroundColor
1103
1104
  }, null, 8, io))), 256)),
1104
- (n(!0), d(_, null, m(e.fill.donut, (l, r) => (n(), d("g", null, [
1105
- W(l, e.fill.donut, !0) > 6 ? (n(), d("g", co, [
1106
- i("text", {
1105
+ (n(!0), c(_, null, m(e.fill.donut, (l, r) => (n(), c("g", null, [
1106
+ W(l, e.fill.donut, !0) > 6 ? (n(), c("g", co, [
1107
+ d("text", {
1107
1108
  "text-anchor": u(A)(l, !0, 0).anchor,
1108
1109
  x: u(A)(l, !0, 2).x,
1109
1110
  y: u(oe)(l, 12, 12),
@@ -1120,7 +1121,7 @@ const gt = ["id"], $t = {
1120
1121
  })})`,
1121
1122
  { datapoint: l, seriesIndex: r, type: "donutDatapoint" }
1122
1123
  )), 9, ho),
1123
- i("text", {
1124
+ d("text", {
1124
1125
  "text-anchor": u(A)(l).anchor,
1125
1126
  x: u(A)(l, !0, 2).x,
1126
1127
  y: u(oe)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
@@ -1130,8 +1131,8 @@ const gt = ["id"], $t = {
1130
1131
  ])) : y("", !0)
1131
1132
  ]))), 256))
1132
1133
  ])) : y("", !0),
1133
- e.fill.miniDonut && !x.value ? (n(), d("g", fo, [
1134
- (n(!0), d(_, null, m(e.fill.miniDonut, (l, r) => (n(), d("path", {
1134
+ e.fill.miniDonut && !x.value ? (n(), c("g", fo, [
1135
+ (n(!0), c(_, null, m(e.fill.miniDonut, (l, r) => (n(), c("path", {
1135
1136
  class: "vue-ui-donut-arc-path",
1136
1137
  d: l.arcSlice,
1137
1138
  fill: `${l.color}`,
@@ -1144,7 +1145,7 @@ const gt = ["id"], $t = {
1144
1145
  ])) : y("", !0),
1145
1146
  P(a.$slots, "svg", { svg: o.value }, void 0, !0)
1146
1147
  ], 14, _t)) : y("", !0),
1147
- a.$slots.watermark ? (n(), d("div", yo, [
1148
+ a.$slots.watermark ? (n(), c("div", yo, [
1148
1149
  P(a.$slots, "watermark", J(K({ isPrinting: u(ye) || u(ke) })), void 0, !0)
1149
1150
  ])) : y("", !0),
1150
1151
  q.value ? y("", !0) : (n(), U(u(We), {
@@ -1159,7 +1160,7 @@ const gt = ["id"], $t = {
1159
1160
  }
1160
1161
  }
1161
1162
  }, null, 8, ["config"])),
1162
- a.$slots.source ? (n(), d("div", ko, [
1163
+ a.$slots.source ? (n(), c("div", ko, [
1163
1164
  P(a.$slots, "source", {}, void 0, !0)
1164
1165
  ], 512)) : y("", !0),
1165
1166
  q.value && F.value ? (n(), U(u(Ae), {
@@ -1189,7 +1190,7 @@ const gt = ["id"], $t = {
1189
1190
  onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
1190
1191
  }, {
1191
1192
  th: S(({ th: e }) => [
1192
- i("div", {
1193
+ d("div", {
1193
1194
  innerHTML: e,
1194
1195
  style: { display: "flex", "align-items": "center" }
1195
1196
  }, null, 8, go)
@@ -1204,7 +1205,7 @@ const gt = ["id"], $t = {
1204
1205
  }, 8, ["config"])) : y("", !0)
1205
1206
  ], 44, gt));
1206
1207
  }
1207
- }, Po = /* @__PURE__ */ kt($o, [["__scopeId", "data-v-1fcdcf56"]]);
1208
+ }, Po = /* @__PURE__ */ kt($o, [["__scopeId", "data-v-f21d1895"]]);
1208
1209
  export {
1209
1210
  Po as default
1210
1211
  };