vue-data-ui 3.1.4 → 3.1.6

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/dist/{Arrow-COJRk3pc.js → Arrow-DtlAIKPQ.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
  3. package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-D_BjQBAR.js} +1 -1
  4. package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-BeJGNqJl.js} +2 -2
  5. package/dist/{DataTable-CzO3oHys.js → DataTable-IycMkaTU.js} +2 -2
  6. package/dist/{Legend-BQqnf4BN.js → Legend-D7l8BJ7z.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
  8. package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BtfT0hV9.js} +1 -1
  9. package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-BdzDJYnr.js} +3 -3
  10. package/dist/{Shape-BEVQVI0z.js → Shape-DD3SLpa4.js} +1 -1
  11. package/dist/Slicer-DoGlWyq_.js +596 -0
  12. package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-DAfofSes.js} +1 -1
  13. package/dist/{Title-nHtPyPd9.js → Title-DbQthJAs.js} +1 -1
  14. package/dist/Tooltip-DvtYLrX2.js +200 -0
  15. package/dist/{UserOptions-D3pVnvAB.js → UserOptions-Dd5XOrwq.js} +2 -2
  16. package/dist/{dom-to-png-CcijTM69.js → dom-to-png-j6qE-sAL.js} +1 -1
  17. package/dist/{img-Bl0o2UAr.js → img-DLgjML7h.js} +1 -1
  18. package/dist/{index-INqbM37s.js → index-C0wrF8hm.js} +6 -2
  19. package/dist/{pdf-BeeAdG2m.js → pdf-Csglybwj.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
  24. package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-Bg2FlIgI.js} +1 -1
  25. package/dist/{usePrinter-9WO5mDzj.js → usePrinter-C2jvouU0.js} +2 -2
  26. package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-DaOijb0V.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
  29. package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D94C1TOK.js} +44 -42
  31. package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
  32. package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-vMGbmNWA.js} +87 -85
  34. package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
  35. package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
  36. package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-Du8GJXPN.js} +11 -11
  37. package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
  38. package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-B70FlDqP.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
  40. package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-CQy-vOC2.js} +2 -2
  41. package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-D0RdN18d.js} +53 -51
  42. package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
  43. package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
  44. package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-Dh8_ii-s.js} +82 -80
  45. package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
  46. package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-Dqklv14X.js} +49 -47
  47. package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-BpcoDwpi.js} +69 -67
  50. package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-D8tmNUHo.js} +148 -146
  51. package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-88Bguk6S.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
  53. package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-Cn8yeJLZ.js} +63 -61
  54. package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
  55. package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-D1EZ91Wm.js} +71 -69
  56. package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-B_mir5Ax.js} +40 -37
  57. package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +54 -52
  58. package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-D7ihdCkd.js} +204 -202
  59. package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-Dwc1xJtX.js} +63 -61
  60. package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-DhsgkGwF.js} +121 -119
  61. package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-D_sWv7fR.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
  64. package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-BrBkOGZk.js} +162 -160
  65. package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter--kNBhPeG.js} +158 -156
  66. package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
  67. package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-Bzmq9peq.js} +36 -34
  74. package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-C0cn-5Sz.js} +15 -13
  75. package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-D3StIxYT.js} +59 -57
  76. package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-B-wP544v.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
  80. package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-XeLnI_ia.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
  82. package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-Nd27H4H5.js} +41 -39
  83. package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-Dd1XUvnp.js} +54 -52
  84. package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-Czg-z9KF.js} +56 -54
  85. package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CB9_bPjO.js} +107 -104
  87. package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-Bo_NzzhJ.js} +12 -10
  88. package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Dc-o6Q3R.js} +1234 -1231
  89. package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-D1Do33ar.js} +46 -44
  90. package/package.json +4 -2
  91. package/dist/Slicer-Cmc94zkG.js +0 -604
  92. package/dist/Tooltip-RCWHeRDV.js +0 -161
@@ -1,40 +1,40 @@
1
- import { useCssVars as mt, computed as _, defineAsyncComponent as N, ref as y, toRefs as pt, watch as ne, shallowRef as Ue, onMounted as yt, onBeforeUnmount as bt, watchEffect as gt, createElementBlock as b, openBlock as m, unref as r, normalizeStyle as se, normalizeClass as Ve, createBlock as V, createCommentVNode as C, renderSlot as k, createSlots as He, withCtx as z, normalizeProps as J, guardReactiveProps as K, createVNode as je, Fragment as ue, renderList as kt, createElementVNode as $, mergeProps as be, toDisplayString as H, resolveDynamicComponent as wt, createTextVNode as Ge, nextTick as We } from "vue";
2
- import { u as xt, c as qe, t as Ct, a as ge, p as re, b as _t, o as zt, f as $t, d as Tt, e as St, j as Xe, i as ke, X as Ft, l as Ot, F as Q, al as It, v as Pt, w as At, k as Ye } from "./index-INqbM37s.js";
3
- import { t as Dt, u as Mt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Et } from "./usePrinter-9WO5mDzj.js";
5
- import { u as Nt, B as Rt } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Ze } from "./useNestedProp-BKprMEaB.js";
7
- import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Lt } from "./useChartAccessibility-9icAAmYg.js";
9
- import Ut from "./img-Bl0o2UAr.js";
10
- import Vt from "./Title-nHtPyPd9.js";
11
- import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- function Je(u, c = 0) {
13
- const f = u.reduce((o, { x: s, r: d }) => Math.min(o, s - d - c), 1 / 0), p = u.reduce((o, { x: s, r: d }) => Math.max(o, s + d + c), -1 / 0), v = u.reduce((o, { y: s, r: d }) => Math.min(o, s - d - c), 1 / 0), n = u.reduce((o, { y: s, r: d }) => Math.max(o, s + d + c), -1 / 0);
14
- return [f, v, p - f, n - v];
1
+ import { useCssVars as yt, computed as _, defineAsyncComponent as N, ref as m, toRefs as bt, watch as ne, shallowRef as He, onMounted as gt, onBeforeUnmount as kt, watchEffect as wt, createElementBlock as b, openBlock as p, unref as r, normalizeStyle as se, normalizeClass as je, createBlock as V, createCommentVNode as C, renderSlot as k, createSlots as Ge, withCtx as z, normalizeProps as J, guardReactiveProps as K, createVNode as We, Fragment as ue, renderList as xt, createElementVNode as $, mergeProps as ge, toDisplayString as H, resolveDynamicComponent as Ct, createTextVNode as qe, nextTick as Xe } from "vue";
2
+ import { u as _t, c as Ye, t as zt, a as ke, p as re, b as $t, o as Tt, f as Ot, d as St, e as Dt, j as Ze, i as we, X as Ft, l as It, F as Q, al as Pt, v as At, w as Mt, k as Je } from "./index-C0wrF8hm.js";
3
+ import { t as Et, u as Nt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Rt } from "./usePrinter-C2jvouU0.js";
5
+ import { u as Bt, B as Lt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ke } from "./useNestedProp-Bg2FlIgI.js";
7
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Ht from "./img-DLgjML7h.js";
10
+ import jt from "./Title-DbQthJAs.js";
11
+ import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ function Qe(u, c = 0) {
13
+ const f = u.reduce((o, { x: s, r: d }) => Math.min(o, s - d - c), 1 / 0), y = u.reduce((o, { x: s, r: d }) => Math.max(o, s + d + c), -1 / 0), v = u.reduce((o, { y: s, r: d }) => Math.min(o, s - d - c), 1 / 0), n = u.reduce((o, { y: s, r: d }) => Math.max(o, s + d + c), -1 / 0);
14
+ return [f, v, y - f, n - v];
15
15
  }
16
- function jt(u, c, f) {
17
- const p = u._, v = u.next._, n = p.r + v.r, o = (p.x * v.r + v.x * p.r) / n, s = (p.y * v.r + v.y * p.r) / n;
16
+ function Wt(u, c, f) {
17
+ const y = u._, v = u.next._, n = y.r + v.r, o = (y.x * v.r + v.x * y.r) / n, s = (y.y * v.r + v.y * y.r) / n;
18
18
  return Math.max(Math.abs(o * f), Math.abs(s * c));
19
19
  }
20
- function Ke(u, c, f) {
21
- const p = jt, v = u.length;
20
+ function et(u, c, f) {
21
+ const y = Wt, v = u.length;
22
22
  if (!v) return u;
23
23
  let n, o, s;
24
24
  if (n = u[0], n.x = 0, n.y = 0, !(v > 1) || (o = u[1], n.x = -o.r, o.x = n.r, o.y = 0, !(v > 2))) return u;
25
- Qe(o, n, s = u[2]), n = new ie(n), o = new ie(o), s = new ie(s), n.next = s.previous = o, o.next = n.previous = s, s.next = o.previous = n;
25
+ tt(o, n, s = u[2]), n = new ie(n), o = new ie(o), s = new ie(s), n.next = s.previous = o, o.next = n.previous = s, s.next = o.previous = n;
26
26
  e: for (let d = 3; d < v; ++d) {
27
- Qe(n._, o._, s = u[d]), s = new ie(s);
27
+ tt(n._, o._, s = u[d]), s = new ie(s);
28
28
  let w = o.next, x = n.previous, ee = o._.r, te = n._.r;
29
29
  do
30
30
  if (ee <= te) {
31
- if (et(w._, s._)) {
31
+ if (lt(w._, s._)) {
32
32
  o = w, n.next = o, o.previous = n, --d;
33
33
  continue e;
34
34
  }
35
35
  ee += w._.r, w = w.next;
36
36
  } else {
37
- if (et(x._, s._)) {
37
+ if (lt(x._, s._)) {
38
38
  n = x, n.next = o, o.previous = n, --d;
39
39
  continue e;
40
40
  }
@@ -42,43 +42,43 @@ function Ke(u, c, f) {
42
42
  }
43
43
  while (w !== x.next);
44
44
  s.previous = n, s.next = o, n.next = o.previous = o = s;
45
- let j = p(n, f, c), S;
45
+ let j = y(n, f, c), O;
46
46
  for (; (s = s.next) !== o; )
47
- (S = p(s, f, c)) < j && (n = s, j = S);
47
+ (O = y(s, f, c)) < j && (n = s, j = O);
48
48
  o = n.next;
49
49
  }
50
50
  return u;
51
51
  }
52
- function Qe(u, c, f) {
53
- const p = u.x - c.x, v = u.y - c.y, n = p * p + v * v;
52
+ function tt(u, c, f) {
53
+ const y = u.x - c.x, v = u.y - c.y, n = y * y + v * v;
54
54
  if (n) {
55
55
  const o = (c.r + f.r) ** 2, s = (u.r + f.r) ** 2;
56
56
  if (o > s) {
57
57
  const d = (n + s - o) / (2 * n), w = Math.sqrt(Math.max(0, s / n - d * d));
58
- f.x = u.x - d * p - w * v, f.y = u.y - d * v + w * p;
58
+ f.x = u.x - d * y - w * v, f.y = u.y - d * v + w * y;
59
59
  } else {
60
60
  const d = (n + o - s) / (2 * n), w = Math.sqrt(Math.max(0, o / n - d * d));
61
- f.x = c.x + d * p - w * v, f.y = c.y + d * v + w * p;
61
+ f.x = c.x + d * y - w * v, f.y = c.y + d * v + w * y;
62
62
  }
63
63
  } else
64
64
  f.x = c.x + f.r, f.y = c.y;
65
65
  }
66
- function et(u, c) {
67
- const f = u.r + c.r - 1e-6, p = c.x - u.x, v = c.y - u.y;
68
- return f > 0 && f * f > p * p + v * v;
66
+ function lt(u, c) {
67
+ const f = u.r + c.r - 1e-6, y = c.x - u.x, v = c.y - u.y;
68
+ return f > 0 && f * f > y * y + v * v;
69
69
  }
70
70
  class ie {
71
71
  constructor(c) {
72
72
  this._ = c, this.next = null, this.previous = null;
73
73
  }
74
74
  }
75
- const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y", "width", "height"], Xt = ["id"], Yt = ["stop-color"], Zt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 0 }, Qt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], el = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], tl = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ll = ["opacity", "x", "y", "font-size", "fill", "font-weight"], al = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], ol = {
75
+ const qt = ["id"], Xt = ["xmlns", "viewBox", "height", "width"], Yt = ["x", "y", "width", "height"], Zt = ["id"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = ["stop-color"], el = { key: 0 }, tl = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], ll = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], al = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ol = ["opacity", "x", "y", "font-size", "fill", "font-weight"], nl = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], sl = {
76
76
  key: 0,
77
77
  style: { pointerEvents: "none" }
78
- }, nl = { key: 1 }, sl = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ul = ["opacity", "x", "y", "font-size", "fill", "font-weight"], rl = {
78
+ }, ul = { key: 1 }, rl = ["opacity", "x", "y", "font-size", "fill", "font-weight"], il = ["opacity", "x", "y", "font-size", "fill", "font-weight"], cl = {
79
79
  key: 4,
80
80
  class: "vue-data-ui-watermark"
81
- }, il = ["innerHTML"], cl = {
81
+ }, vl = ["innerHTML"], dl = {
82
82
  __name: "vue-ui-circle-pack",
83
83
  props: {
84
84
  config: {
@@ -96,14 +96,14 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
96
96
  },
97
97
  emits: ["selectDatapoint"],
98
98
  setup(u, { expose: c, emit: f }) {
99
- mt((t) => ({
100
- "5748196e": L.value,
101
- "2de8b0e7": he.value
99
+ yt((t) => ({
100
+ "2a81d2d6": L.value,
101
+ "5d7acbce": fe.value
102
102
  }));
103
- const p = N(() => import("./BaseIcon-B5nQNkmd.js")), v = N(() => import("./vue-ui-accordion-CQZjxT5U.js")), n = N(() => import("./DataTable-CzO3oHys.js")), o = N(() => import("./UserOptions-D3pVnvAB.js")), s = N(() => import("./PenAndPaper-C8hICPzL.js")), d = N(() => import("./PackageVersion-7CxQB-mx.js")), w = N(() => import("./BaseDraggableDialog-BdAp3qr9.js")), x = u, ee = f, { vue_ui_circle_pack: te } = xt(), j = _(() => !!x.dataset && x.dataset.length), S = y(qe()), T = y(null), we = y(null), xe = y(null), Ce = y(0), _e = y(0), ze = y(0), tt = y(null), G = y(null), e = y(ve()), { loading: $e, FINAL_DATASET: Te } = Nt({
104
- ...pt(x),
103
+ const y = N(() => import("./BaseIcon-D_BjQBAR.js")), v = N(() => import("./vue-ui-accordion-3JuSLBjV.js")), n = N(() => import("./DataTable-IycMkaTU.js")), o = N(() => import("./UserOptions-Dd5XOrwq.js")), s = N(() => import("./PenAndPaper-BdzDJYnr.js")), d = N(() => import("./PackageVersion-BtfT0hV9.js")), w = N(() => import("./BaseDraggableDialog-BVZPPMT9.js")), x = u, ee = f, { vue_ui_circle_pack: te } = _t(), j = _(() => !!x.dataset && x.dataset.length), O = m(Ye()), T = m(null), xe = m(null), Ce = m(null), _e = m(0), ze = m(0), $e = m(0), at = m(null), G = m(null), ce = m(null), e = m(de()), { loading: Te, FINAL_DATASET: Oe } = Bt({
104
+ ...bt(x),
105
105
  FINAL_CONFIG: e,
106
- prepareConfig: ve,
106
+ prepareConfig: de,
107
107
  skeletonDataset: [
108
108
  { name: "_", value: 13, color: "#F2F2F2" },
109
109
  { name: "_", value: 8, color: "#DBDBDB" },
@@ -112,7 +112,7 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
112
112
  { name: "_", value: 2, color: "#808080" },
113
113
  { name: "_", value: 1, color: "#696969" }
114
114
  ],
115
- skeletonConfig: Ct({
115
+ skeletonConfig: zt({
116
116
  defaultConfig: e.value,
117
117
  userConfig: {
118
118
  userOptions: { show: !1 },
@@ -131,65 +131,65 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
131
131
  }
132
132
  }
133
133
  })
134
- }), { svgRef: Se } = Lt({ config: e.value.style.chart.title }), {
135
- userOptionsVisible: ce,
136
- setUserOptionsVisibility: Fe,
137
- keepUserOptionState: Oe
138
- } = Bt({ config: e.value });
139
- function ve() {
140
- const t = Ze({
134
+ }), { svgRef: Se } = Vt({ config: e.value.style.chart.title }), {
135
+ userOptionsVisible: ve,
136
+ setUserOptionsVisibility: De,
137
+ keepUserOptionState: Fe
138
+ } = Ut({ config: e.value });
139
+ function de() {
140
+ const t = Ke({
141
141
  userConfig: x.config,
142
142
  defaultConfig: te
143
143
  });
144
144
  return t.theme ? {
145
- ...Ze({
146
- userConfig: _t.vue_ui_circle_pack[t.theme] || x.config,
145
+ ...Ke({
146
+ userConfig: $t.vue_ui_circle_pack[t.theme] || x.config,
147
147
  defaultConfig: t
148
148
  }),
149
- customPalette: ge[t.theme] || re
149
+ customPalette: ke[t.theme] || re
150
150
  } : t;
151
151
  }
152
152
  ne(() => x.config, (t) => {
153
- e.value = ve(), ce.value = !e.value.userOptions.showOnChartHover, de(), Ce.value += 1, _e.value += 1, F.value.showTable = e.value.table.show;
153
+ e.value = de(), ve.value = !e.value.userOptions.showOnChartHover, he(), _e.value += 1, ze.value += 1, P.value.showTable = e.value.table.show;
154
154
  }, { deep: !0 });
155
- const { isPrinting: Ie, isImaging: Pe, generatePdf: Ae, generateImage: De } = Et({
156
- elementId: `vue-ui-circle-pack_${S.value}`,
155
+ const { isPrinting: Ie, isImaging: Pe, generatePdf: Ae, generateImage: Me } = Rt({
156
+ elementId: `vue-ui-circle-pack_${O.value}`,
157
157
  fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
158
158
  options: e.value.userOptions.print
159
- }), lt = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), F = y({
159
+ }), ot = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = m({
160
160
  showTable: e.value.table.show
161
161
  });
162
162
  ne(e, () => {
163
- F.value = {
163
+ P.value = {
164
164
  showTable: e.value.table.show
165
165
  };
166
166
  }, { immediate: !0 });
167
- const O = Ue(null), R = Ue(null), D = y({ h: 10, w: 10 }), Me = y(0), M = y([0, 0, 100, 100]), W = y({ h: 0, w: 0 }), at = _(() => e.value.debug);
168
- async function de() {
169
- zt(x.dataset) && $t({
167
+ const S = He(null), R = He(null), A = m({ h: 10, w: 10 }), Ee = m(0), M = m([0, 0, 100, 100]), W = m({ h: 0, w: 0 }), nt = _(() => e.value.debug);
168
+ async function he() {
169
+ Tt(x.dataset) && Ot({
170
170
  componentName: "VueUiCirclePack",
171
171
  type: "dataset",
172
- debug: at.value
173
- }), D.value = { h: 10, w: 10 }, M.value = [0, 0, 100, 100], W.value = { h: 0, w: 0 }, B.value = await Ke(le.value), I.value = Je(B.value, 1).join(" "), W.value = Ee(T.value);
174
- const t = Dt(() => {
175
- const { width: a, height: l, heightTitle: i, heightNoTitle: g } = Mt({
172
+ debug: nt.value
173
+ }), A.value = { h: 10, w: 10 }, M.value = [0, 0, 100, 100], W.value = { h: 0, w: 0 }, B.value = await et(le.value), D.value = Qe(B.value, 1).join(" "), W.value = Ne(T.value);
174
+ const t = Et(() => {
175
+ const { width: a, height: l, heightTitle: i, heightNoTitle: g } = Nt({
176
176
  chart: T.value,
177
- title: we.value,
178
- noTitle: xe.value
179
- }), E = Math.max(10, a), ye = Math.max(10, l - 12);
180
- Me.value = e.value.style.chart.title.text ? i : g, requestAnimationFrame(() => {
181
- D.value.w = E, D.value.h = ye - Me.value, We(async () => {
182
- const ht = le.value.map((ft) => ({ ...ft }));
183
- B.value = await Ke(ht, D.value.h, D.value.w), M.value = Je(B.value, 1), I.value = M.value.join(" "), W.value = Ee(T.value);
177
+ title: xe.value,
178
+ noTitle: Ce.value
179
+ }), E = Math.max(10, a), be = Math.max(10, l - 12);
180
+ Ee.value = e.value.style.chart.title.text ? i : g, requestAnimationFrame(() => {
181
+ A.value.w = E, A.value.h = be - Ee.value, Xe(async () => {
182
+ const mt = le.value.map((pt) => ({ ...pt }));
183
+ B.value = await et(mt, A.value.h, A.value.w), M.value = Qe(B.value, 1), D.value = M.value.join(" "), W.value = Ne(T.value);
184
184
  });
185
185
  });
186
186
  });
187
- O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect()), O.value = new ResizeObserver(t), R.value = T.value.parentNode, O.value.observe(R.value);
187
+ S.value && (R.value && S.value.unobserve(R.value), S.value.disconnect()), S.value = new ResizeObserver(t), R.value = T.value.parentNode, S.value.observe(R.value);
188
188
  }
189
- yt(de), bt(() => {
190
- O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect());
189
+ gt(he), kt(() => {
190
+ S.value && (R.value && S.value.unobserve(R.value), S.value.disconnect());
191
191
  });
192
- function Ee(t) {
192
+ function Ne(t) {
193
193
  if (!t || !t.parentElement)
194
194
  return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
195
195
  const a = t.parentElement;
@@ -198,46 +198,46 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
198
198
  const l = window.getComputedStyle(a), i = l.width, g = l.height;
199
199
  return i !== "auto" && g !== "auto" && parseFloat(i) > 0 && parseFloat(g) > 0 ? { w: parseFloat(i), h: parseFloat(g) } : { w: 0, h: 0 };
200
200
  }
201
- ne(() => Te.value, async (t) => {
202
- await de();
201
+ ne(() => Oe.value, async (t) => {
202
+ await he();
203
203
  }, { deep: !0 });
204
- const ot = _(() => Tt(e.value.customPalette)), le = _(() => Te.value.map((t, a) => {
205
- const l = St(t.color) || ot.value[a] || ge[e.value.theme || "default"][a % ge[e.value.theme || "default"].length] || re[a] || re[a % re.length];
204
+ const st = _(() => St(e.value.customPalette)), le = _(() => Oe.value.map((t, a) => {
205
+ const l = Dt(t.color) || st.value[a] || ke[e.value.theme || "default"][a % ke[e.value.theme || "default"].length] || re[a] || re[a % re.length];
206
206
  return {
207
207
  ...t,
208
208
  r: t.value,
209
- id: qe(),
209
+ id: Ye(),
210
210
  color: l
211
211
  };
212
- }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), B = y([]), I = y("0 0 100 100"), q = _(() => Math.max(...B.value.map((t) => t.r)));
213
- function Ne(t, a) {
212
+ }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), B = m([]), D = m("0 0 100 100"), q = _(() => Math.max(...B.value.map((t) => t.r)));
213
+ function Re(t, a) {
214
214
  return a / q.value * t;
215
215
  }
216
- function nt(t, a) {
216
+ function ut(t, a) {
217
217
  h.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
218
218
  }
219
- function st(t, a) {
219
+ function rt(t, a) {
220
220
  ee("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
221
221
  }
222
- function ut(t, a) {
223
- rt(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a });
222
+ function it(t, a) {
223
+ ct(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a });
224
224
  }
225
- const h = y(null);
226
- function rt(t) {
225
+ const h = m(null);
226
+ function ct(t) {
227
227
  e.value.style.chart.circles.zoom.show && (h.value = t);
228
228
  }
229
- const L = _(() => h.value ? h.value.r : 0), he = _(() => A.value ? L.value : h.value ? h.value.r > M.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? h.value.r : M.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), P = y(0), it = _(() => ({
229
+ const L = _(() => h.value ? h.value.r : 0), fe = _(() => I.value ? L.value : h.value ? h.value.r > M.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? h.value.r : M.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), F = m(0), vt = _(() => ({
230
230
  pointerEvents: "none",
231
- opacity: P.value,
232
- filter: `drop-shadow(0px 0px 6px ${Xe(h.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
233
- })), X = y(L.value);
234
- gt(() => {
235
- X.value = L.value, P.value = 0;
231
+ opacity: F.value,
232
+ filter: `drop-shadow(0px 0px 6px ${Ze(h.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
233
+ })), X = m(L.value);
234
+ wt(() => {
235
+ X.value = L.value, F.value = 0;
236
236
  let t = null;
237
237
  function a(l) {
238
238
  t || (t = l);
239
239
  const i = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
240
- i < 1 ? (X.value = L.value + (he.value - L.value) * i, P.value = 0 + e.value.style.chart.circles.zoom.opacity * i, requestAnimationFrame(a)) : (X.value = he.value, P.value = e.value.style.chart.circles.zoom.opacity);
240
+ i < 1 ? (X.value = L.value + (fe.value - L.value) * i, F.value = 0 + e.value.style.chart.circles.zoom.opacity * i, requestAnimationFrame(a)) : (X.value = fe.value, F.value = e.value.style.chart.circles.zoom.opacity);
241
241
  }
242
242
  requestAnimationFrame(a);
243
243
  });
@@ -245,11 +245,11 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
245
245
  name: e.value.style.chart.circles.zoom.label.name.fontSize * M.value[3] / 300,
246
246
  value: e.value.style.chart.circles.zoom.label.value.fontSize * M.value[3] / 300
247
247
  }));
248
- function fe(t) {
249
- return Ye(
248
+ function me(t) {
249
+ return Je(
250
250
  e.value.style.chart.circles.labels.value.formatter,
251
251
  t.value,
252
- ke({
252
+ we({
253
253
  p: e.value.style.chart.circles.labels.value.prefix,
254
254
  v: t.value,
255
255
  s: e.value.style.chart.circles.labels.value.suffix,
@@ -257,11 +257,11 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
257
257
  })
258
258
  );
259
259
  }
260
- function ct() {
261
- return Ye(
260
+ function dt() {
261
+ return Je(
262
262
  e.value.style.chart.circles.zoom.label.value.formatter,
263
263
  h.value.value,
264
- ke({
264
+ we({
265
265
  p: e.value.style.chart.circles.zoom.label.value.prefix,
266
266
  v: h.value.value,
267
267
  s: e.value.style.chart.circles.zoom.label.value.suffix,
@@ -269,19 +269,19 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
269
269
  })
270
270
  );
271
271
  }
272
- function Re(t) {
272
+ function Be(t) {
273
273
  if (!t)
274
274
  return 0;
275
- const a = t.r / fe(t).length * (fe(t).length === 1 ? 1 : 2);
275
+ const a = t.r / me(t).length * (me(t).length === 1 ? 1 : 2);
276
276
  return Math.min(t.r / 2.5, a);
277
277
  }
278
- const U = y(!1);
279
- function Be(t) {
280
- U.value = t, ze.value += 1;
278
+ const U = m(!1);
279
+ function Le(t) {
280
+ U.value = t, $e.value += 1;
281
281
  }
282
- const A = y(!1);
283
- function me() {
284
- A.value = !A.value;
282
+ const I = m(!1);
283
+ function pe() {
284
+ I.value = !I.value;
285
285
  }
286
286
  const ae = _(() => {
287
287
  const t = le.value.map((l) => ({
@@ -291,12 +291,12 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
291
291
  })).toSorted((l, i) => i.value - l.value), a = t.map((l) => l.value);
292
292
  return { head: t, body: a };
293
293
  });
294
- function pe(t = null) {
295
- We(() => {
294
+ function ye(t = null) {
295
+ Xe(() => {
296
296
  const a = ae.value.head.map((g, E) => [[
297
297
  g.name
298
- ], [ae.value.body[E]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), i = Pt(l);
299
- t ? t(i) : At({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
298
+ ], [ae.value.body[E]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), i = At(l);
299
+ t ? t(i) : Mt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
300
300
  });
301
301
  }
302
302
  const oe = _(() => {
@@ -304,7 +304,7 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
304
304
  e.value.table.columnNames.datapoint,
305
305
  e.value.table.columnNames.value
306
306
  ], a = ae.value.head.map((g, E) => {
307
- const ye = ke({
307
+ const be = we({
308
308
  p: e.value.style.chart.circles.labels.value.prefix,
309
309
  v: ae.value.body[E],
310
310
  s: e.value.style.chart.circles.labels.value.suffix,
@@ -315,7 +315,7 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
315
315
  color: g.color,
316
316
  name: g.name
317
317
  },
318
- ye
318
+ be
319
319
  ];
320
320
  }), l = {
321
321
  th: {
@@ -340,15 +340,15 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
340
340
  config: l
341
341
  };
342
342
  });
343
- function Le() {
344
- F.value.showTable = !F.value.showTable;
343
+ function Ue() {
344
+ P.value.showTable = !P.value.showTable;
345
345
  }
346
- function vt() {
346
+ function ht() {
347
347
  return le.value;
348
348
  }
349
- async function dt({ scale: t = 2 } = {}) {
349
+ async function ft({ scale: t = 2 } = {}) {
350
350
  if (!T.value) return;
351
- const { width: a, height: l } = T.value.getBoundingClientRect(), i = a / l, { imageUri: g, base64: E } = await Ut({ domElement: T.value, base64: !0, img: !0, scale: t });
351
+ const { width: a, height: l } = T.value.getBoundingClientRect(), i = a / l, { imageUri: g, base64: E } = await Ht({ domElement: T.value, base64: !0, img: !0, scale: t });
352
352
  return {
353
353
  imageUri: g,
354
354
  base64: E,
@@ -359,7 +359,7 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
359
359
  };
360
360
  }
361
361
  const Z = _(() => {
362
- const t = e.value.table.useDialog && !e.value.table.show, a = F.value.showTable;
362
+ const t = e.value.table.useDialog && !e.value.table.show, a = P.value.showTable;
363
363
  return {
364
364
  component: t ? w : v,
365
365
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
@@ -388,51 +388,55 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
388
388
  }
389
389
  };
390
390
  });
391
- return ne(() => F.value.showTable, (t) => {
391
+ ne(() => P.value.showTable, (t) => {
392
392
  e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
393
- }), c({
394
- getData: vt,
395
- getImage: dt,
396
- generateCsv: pe,
393
+ });
394
+ function Ve() {
395
+ P.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
396
+ }
397
+ return c({
398
+ getData: ht,
399
+ getImage: ft,
400
+ generateCsv: ye,
397
401
  generatePdf: Ae,
398
- generateImage: De,
399
- toggleTable: Le,
400
- toggleAnnotator: me,
401
- toggleFullscreen: Be
402
- }), (t, a) => (m(), b("div", {
403
- id: `vue-ui-circle-pack_${S.value}`,
404
- class: Ve(`vue-ui-circle-pack ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${r($e) ? "loading" : ""}`),
402
+ generateImage: Me,
403
+ toggleTable: Ue,
404
+ toggleAnnotator: pe,
405
+ toggleFullscreen: Le
406
+ }), (t, a) => (p(), b("div", {
407
+ id: `vue-ui-circle-pack_${O.value}`,
408
+ class: je(`vue-ui-circle-pack ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${r(Te) ? "loading" : ""}`),
405
409
  ref_key: "circlePackChart",
406
410
  ref: T,
407
411
  style: se(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${W.value.h}px; width:${W.value.w}px`),
408
- onMouseenter: a[3] || (a[3] = () => r(Fe)(!0)),
409
- onMouseleave: a[4] || (a[4] = () => r(Fe)(!1))
412
+ onMouseenter: a[1] || (a[1] = () => r(De)(!0)),
413
+ onMouseleave: a[2] || (a[2] = () => r(De)(!1))
410
414
  }, [
411
- e.value.userOptions.buttons.annotator ? (m(), V(r(s), {
415
+ e.value.userOptions.buttons.annotator ? (p(), V(r(s), {
412
416
  key: 0,
413
417
  svgRef: r(Se),
414
418
  backgroundColor: e.value.style.chart.backgroundColor,
415
419
  color: e.value.style.chart.color,
416
- active: A.value,
420
+ active: I.value,
417
421
  scale: q.value / 100,
418
- onClose: me
422
+ onClose: pe
419
423
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : C("", !0),
420
424
  k(t.$slots, "userConfig", {}, void 0, !0),
421
- lt.value ? (m(), b("div", {
425
+ ot.value ? (p(), b("div", {
422
426
  key: 1,
423
427
  ref_key: "noTitle",
424
- ref: xe,
428
+ ref: Ce,
425
429
  class: "vue-data-ui-no-title-space",
426
430
  style: "height:36px; width: 100%;background:transparent"
427
431
  }, null, 512)) : C("", !0),
428
- e.value.style.chart.title.text ? (m(), b("div", {
432
+ e.value.style.chart.title.text ? (p(), b("div", {
429
433
  key: 2,
430
434
  ref_key: "chartTitle",
431
- ref: we,
435
+ ref: xe,
432
436
  style: "width:100%;background:transparent;padding-bottom:12px"
433
437
  }, [
434
- (m(), V(Vt, {
435
- key: `title_${Ce.value}`,
438
+ (p(), V(jt, {
439
+ key: `title_${_e.value}`,
436
440
  config: {
437
441
  title: {
438
442
  cy: "donut-div-title",
@@ -445,14 +449,15 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
445
449
  }
446
450
  }, null, 8, ["config"]))
447
451
  ], 512)) : C("", !0),
448
- e.value.userOptions.show && j.value && (r(Oe) || r(ce)) ? (m(), V(r(o), {
449
- ref: "details",
450
- key: `user_option_${ze.value}`,
452
+ e.value.userOptions.show && j.value && (r(Fe) || r(ve)) ? (p(), V(r(o), {
453
+ ref_key: "userOptionsRef",
454
+ ref: ce,
455
+ key: `user_option_${$e.value}`,
451
456
  backgroundColor: e.value.style.chart.backgroundColor,
452
457
  color: e.value.style.chart.color,
453
458
  isPrinting: r(Ie),
454
459
  isImaging: r(Pe),
455
- uid: S.value,
460
+ uid: O.value,
456
461
  hasTooltip: !1,
457
462
  hasLabel: !1,
458
463
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -467,17 +472,16 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
467
472
  printScale: e.value.userOptions.print.scale,
468
473
  titles: { ...e.value.userOptions.buttonTitles },
469
474
  hasAnnotator: e.value.userOptions.buttons.annotator,
470
- isAnnotation: A.value,
471
- onToggleFullscreen: Be,
475
+ isAnnotation: I.value,
476
+ tableDialog: e.value.table.useDialog,
477
+ onToggleFullscreen: Le,
472
478
  onGeneratePdf: r(Ae),
473
- onGenerateCsv: pe,
474
- onGenerateImage: r(De),
475
- onToggleTable: Le,
476
- onToggleAnnotator: me,
477
- style: se({
478
- visibility: r(Oe) ? r(ce) ? "visible" : "hidden" : "visible"
479
- })
480
- }, He({ _: 2 }, [
479
+ onGenerateCsv: ye,
480
+ onGenerateImage: r(Me),
481
+ onToggleTable: Ue,
482
+ onToggleAnnotator: pe,
483
+ style: se({ visibility: r(Fe) ? r(ve) ? "visible" : "hidden" : "visible" })
484
+ }, Ge({ _: 2 }, [
481
485
  t.$slots.menuIcon ? {
482
486
  name: "menuIcon",
483
487
  fn: z(({ isOpen: l, color: i }) => [
@@ -527,31 +531,31 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
527
531
  ]),
528
532
  key: "6"
529
533
  } : void 0
530
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
531
- (m(), b("svg", {
534
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
535
+ (p(), b("svg", {
532
536
  ref_key: "svgRef",
533
537
  ref: Se,
534
538
  xmlns: r(Ft),
535
- viewBox: I.value,
536
- height: Math.max(10, D.value.h),
537
- width: Math.max(10, D.value.w),
538
- class: Ve({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
539
+ viewBox: D.value,
540
+ height: Math.max(10, A.value.h),
541
+ width: Math.max(10, A.value.w),
542
+ class: je({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
539
543
  style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
540
544
  }, [
541
- je(r(d)),
542
- t.$slots["chart-background"] ? (m(), b("foreignObject", {
545
+ We(r(d)),
546
+ t.$slots["chart-background"] ? (p(), b("foreignObject", {
543
547
  key: 0,
544
- x: I.value.x,
545
- y: I.value.y,
546
- width: I.value.width,
547
- height: I.value.height,
548
+ x: D.value.x,
549
+ y: D.value.y,
550
+ width: D.value.width,
551
+ height: D.value.height,
548
552
  style: {
549
553
  pointerEvents: "none"
550
554
  }
551
555
  }, [
552
556
  k(t.$slots, "chart-background", {}, void 0, !0)
553
- ], 8, qt)) : C("", !0),
554
- (m(!0), b(ue, null, kt(B.value, (l, i) => (m(), b(ue, null, [
557
+ ], 8, Yt)) : C("", !0),
558
+ (p(!0), b(ue, null, xt(B.value, (l, i) => (p(), b(ue, null, [
555
559
  $("defs", null, [
556
560
  $("radialGradient", {
557
561
  id: l.id,
@@ -559,21 +563,21 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
559
563
  }, [
560
564
  $("stop", {
561
565
  offset: "10%",
562
- "stop-color": r(Ot)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
563
- }, null, 8, Yt),
566
+ "stop-color": r(It)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
567
+ }, null, 8, Jt),
564
568
  $("stop", {
565
569
  offset: "90%",
566
- "stop-color": r(Xe)(l.color, 0.1)
567
- }, null, 8, Zt),
570
+ "stop-color": r(Ze)(l.color, 0.1)
571
+ }, null, 8, Kt),
568
572
  $("stop", {
569
573
  offset: "100%",
570
574
  "stop-color": l.color
571
- }, null, 8, Jt)
572
- ], 8, Xt)
575
+ }, null, 8, Qt)
576
+ ], 8, Zt)
573
577
  ]),
574
- t.$slots.pattern ? (m(), b("g", Kt, [
578
+ t.$slots.pattern ? (p(), b("g", el, [
575
579
  $("defs", null, [
576
- k(t.$slots, "pattern", be({ ref_for: !0 }, { ...l, patternId: `pattern_${S.value}_${l.id}` }), void 0, !0)
580
+ k(t.$slots, "pattern", ge({ ref_for: !0 }, { ...l, patternId: `pattern_${O.value}_${l.id}` }), void 0, !0)
577
581
  ])
578
582
  ])) : C("", !0),
579
583
  $("rect", {
@@ -585,11 +589,11 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
585
589
  "stroke-width": e.value.style.chart.circles.strokeWidth * q.value / 100,
586
590
  fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
587
591
  rx: l.r,
588
- onMouseenter: (g) => ut(l, i),
589
- onMouseout: (g) => nt(l, i),
590
- onClick: (g) => st(l, i)
591
- }, null, 40, Qt),
592
- t.$slots.pattern ? (m(), b("rect", {
592
+ onMouseenter: (g) => it(l, i),
593
+ onMouseout: (g) => ut(l, i),
594
+ onClick: (g) => rt(l, i)
595
+ }, null, 40, tl),
596
+ t.$slots.pattern ? (p(), b("rect", {
593
597
  key: 1,
594
598
  x: l.x - l.r,
595
599
  y: l.y - l.r,
@@ -597,125 +601,125 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
597
601
  height: l.r * 2,
598
602
  stroke: e.value.style.chart.circles.stroke,
599
603
  "stroke-width": e.value.style.chart.circles.strokeWidth * q.value / 100,
600
- fill: `url(#pattern_${S.value}_${l.id})`,
604
+ fill: `url(#pattern_${O.value}_${l.id})`,
601
605
  rx: l.r,
602
606
  style: {
603
607
  pointerEvents: "none"
604
608
  }
605
- }, null, 8, el)) : C("", !0),
606
- t.$slots["data-label"] ? k(t.$slots, "data-label", be({
609
+ }, null, 8, ll)) : C("", !0),
610
+ t.$slots["data-label"] ? k(t.$slots, "data-label", ge({
607
611
  key: 2,
608
612
  ref_for: !0
609
- }, { ...l, createTSpans: r(It), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Re(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : r(Q)(l.color) }), void 0, !0) : (m(), b(ue, { key: 3 }, [
610
- e.value.style.chart.circles.labels.name.show && l.name ? (m(), b("text", {
613
+ }, { ...l, createTSpans: r(Pt), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Be(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : r(Q)(l.color) }), void 0, !0) : (p(), b(ue, { key: 3 }, [
614
+ e.value.style.chart.circles.labels.name.show && l.name ? (p(), b("text", {
611
615
  key: 0,
612
616
  style: {
613
617
  pointerEvents: "none",
614
618
  transition: "opacity 0.2s ease-in-out"
615
619
  },
616
- opacity: h.value && !A.value ? 0.2 : 1,
620
+ opacity: h.value && !I.value ? 0.2 : 1,
617
621
  x: l.x,
618
- y: l.y + Ne(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
622
+ y: l.y + Re(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
619
623
  "font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
620
624
  fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : r(Q)(l.color),
621
625
  "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
622
626
  "text-anchor": "middle"
623
- }, H(l.name), 9, tl)) : C("", !0),
624
- e.value.style.chart.circles.labels.value.show ? (m(), b("text", {
627
+ }, H(l.name), 9, al)) : C("", !0),
628
+ e.value.style.chart.circles.labels.value.show ? (p(), b("text", {
625
629
  key: 1,
626
630
  style: {
627
631
  pointerEvents: "none",
628
632
  transition: "opacity 0.2s ease-in-out"
629
633
  },
630
- opacity: h.value && !A.value ? 0.2 : 1,
634
+ opacity: h.value && !I.value ? 0.2 : 1,
631
635
  x: l.x,
632
- y: l.y + Ne(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
633
- "font-size": Re(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
636
+ y: l.y + Re(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
637
+ "font-size": Be(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
634
638
  fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : r(Q)(l.color),
635
639
  "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
636
640
  "text-anchor": "middle"
637
- }, H(fe(l)), 9, ll)) : C("", !0)
641
+ }, H(me(l)), 9, ol)) : C("", !0)
638
642
  ], 64))
639
643
  ], 64))), 256)),
640
- h.value && e.value.style.chart.circles.zoom.show && !A.value ? (m(), b(ue, { key: 1 }, [
644
+ h.value && e.value.style.chart.circles.zoom.show && !I.value ? (p(), b(ue, { key: 1 }, [
641
645
  $("circle", {
642
- style: se(it.value),
646
+ style: se(vt.value),
643
647
  cx: h.value.x,
644
648
  cy: h.value.y,
645
649
  r: X.value,
646
- opacity: P.value,
650
+ opacity: F.value,
647
651
  stroke: e.value.style.chart.circles.stroke,
648
652
  "stroke-width": e.value.style.chart.circles.strokeWidth * q.value / 100,
649
653
  fill: e.value.style.chart.circles.gradient.show ? `url(#${h.value.id})` : h.value.color
650
- }, null, 12, al),
651
- t.$slots["zoom-label"] ? (m(), b("g", ol, [
652
- k(t.$slots, "zoom-label", J(K({ ...h.value, zoomOpacity: P.value, currentRadius: X.value, fontSize: Y.value })), void 0, !0)
653
- ])) : (m(), b("g", nl, [
654
+ }, null, 12, nl),
655
+ t.$slots["zoom-label"] ? (p(), b("g", sl, [
656
+ k(t.$slots, "zoom-label", J(K({ ...h.value, zoomOpacity: F.value, currentRadius: X.value, fontSize: Y.value })), void 0, !0)
657
+ ])) : (p(), b("g", ul, [
654
658
  $("text", {
655
659
  style: {
656
660
  pointerEvents: "none"
657
661
  },
658
- opacity: P.value,
662
+ opacity: F.value,
659
663
  x: h.value.x,
660
664
  y: h.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - Y.value.name / 4,
661
665
  "text-anchor": "middle",
662
666
  "font-size": Y.value.name,
663
667
  fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : r(Q)(h.value.color),
664
668
  "font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
665
- }, H(h.value.name), 9, sl),
669
+ }, H(h.value.name), 9, rl),
666
670
  $("text", {
667
671
  style: {
668
672
  pointerEvents: "none"
669
673
  },
670
- opacity: P.value,
674
+ opacity: F.value,
671
675
  x: h.value.x,
672
676
  y: h.value.y + Y.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
673
677
  "text-anchor": "middle",
674
678
  "font-size": Y.value.value,
675
679
  fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : r(Q)(h.value.color),
676
680
  "font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
677
- }, H(ct()), 9, ul)
681
+ }, H(dt()), 9, il)
678
682
  ]))
679
683
  ], 64)) : C("", !0),
680
684
  k(t.$slots, "svg", {
681
- svg: { ...I.value }
685
+ svg: { ...D.value }
682
686
  }, void 0, !0)
683
- ], 14, Wt)),
684
- t.$slots.watermark ? (m(), b("div", rl, [
687
+ ], 14, Xt)),
688
+ t.$slots.watermark ? (p(), b("div", cl, [
685
689
  k(t.$slots, "watermark", J(K({ isPrinting: r(Ie) || r(Pe) })), void 0, !0)
686
690
  ])) : C("", !0),
687
- t.$slots.source ? (m(), b("div", {
691
+ t.$slots.source ? (p(), b("div", {
688
692
  key: 5,
689
693
  ref_key: "source",
690
- ref: tt,
694
+ ref: at,
691
695
  dir: "auto"
692
696
  }, [
693
697
  k(t.$slots, "source", {}, void 0, !0)
694
698
  ], 512)) : C("", !0),
695
- j.value ? (m(), V(wt(Z.value.component), be({ key: 6 }, Z.value.props, {
699
+ j.value && e.value.userOptions.buttons.table ? (p(), V(Ct(Z.value.component), ge({ key: 6 }, Z.value.props, {
696
700
  ref_key: "tableUnit",
697
701
  ref: G,
698
- onClose: a[2] || (a[2] = (l) => F.value.showTable = !1)
699
- }), He({
702
+ onClose: Ve
703
+ }), Ge({
700
704
  content: z(() => [
701
- (m(), V(r(n), {
702
- key: `table_${_e.value}`,
705
+ (p(), V(r(n), {
706
+ key: `table_${ze.value}`,
703
707
  colNames: oe.value.colNames,
704
708
  head: oe.value.head,
705
709
  body: oe.value.body,
706
710
  config: oe.value.config,
707
711
  title: e.value.table.useDialog ? "" : Z.value.title,
708
712
  withCloseButton: !e.value.table.useDialog,
709
- onClose: a[1] || (a[1] = (l) => F.value.showTable = !1)
713
+ onClose: Ve
710
714
  }, {
711
715
  th: z(({ th: l }) => [
712
716
  $("div", {
713
717
  innerHTML: l,
714
718
  style: { display: "flex", "align-items": "center" }
715
- }, null, 8, il)
719
+ }, null, 8, vl)
716
720
  ]),
717
721
  td: z(({ td: l }) => [
718
- Ge(H(l.name || l), 1)
722
+ qe(H(l.name || l), 1)
719
723
  ]),
720
724
  _: 1
721
725
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -725,7 +729,7 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
725
729
  e.value.table.useDialog ? {
726
730
  name: "title",
727
731
  fn: z(() => [
728
- Ge(H(Z.value.title), 1)
732
+ qe(H(Z.value.title), 1)
729
733
  ]),
730
734
  key: "0"
731
735
  } : void 0,
@@ -735,9 +739,9 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
735
739
  $("button", {
736
740
  tabindex: "0",
737
741
  class: "vue-ui-user-options-button",
738
- onClick: a[0] || (a[0] = (l) => pe(e.value.userOptions.callbacks.csv))
742
+ onClick: a[0] || (a[0] = (l) => ye(e.value.userOptions.callbacks.csv))
739
743
  }, [
740
- je(r(p), {
744
+ We(r(y), {
741
745
  name: "excel",
742
746
  stroke: Z.value.props.color
743
747
  }, null, 8, ["stroke"])
@@ -746,10 +750,10 @@ const Gt = ["id"], Wt = ["xmlns", "viewBox", "height", "width"], qt = ["x", "y",
746
750
  key: "1"
747
751
  } : void 0
748
752
  ]), 1040)) : C("", !0),
749
- r($e) ? (m(), V(Rt, { key: 7 })) : C("", !0)
750
- ], 46, Gt));
753
+ r(Te) ? (p(), V(Lt, { key: 7 })) : C("", !0)
754
+ ], 46, qt));
751
755
  }
752
- }, xl = /* @__PURE__ */ Ht(cl, [["__scopeId", "data-v-d0db794a"]]);
756
+ }, _l = /* @__PURE__ */ Gt(dl, [["__scopeId", "data-v-d36ab967"]]);
753
757
  export {
754
- xl as default
758
+ _l as default
755
759
  };