vue-data-ui 3.0.2 → 3.0.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 (91) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
  41. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
  42. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
  88. package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
  89. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
@@ -1,33 +1,33 @@
1
- import { defineAsyncComponent as se, useSlots as Lt, onMounted as vt, computed as k, ref as y, shallowRef as E, toRefs as Mt, watch as Se, onBeforeUnmount as Vt, createElementBlock as m, openBlock as p, unref as r, normalizeStyle as V, normalizeClass as Ie, createBlock as Q, createCommentVNode as x, createElementVNode as F, createVNode as Fe, createSlots as Dt, withCtx as _, renderSlot as C, normalizeProps as ee, guardReactiveProps as te, Fragment as ye, renderList as Ne, withKeys as dt, withModifiers as ze, mergeProps as ht, createTextVNode as Pe, toDisplayString as j, nextTick as Bt } from "vue";
2
- import { u as Et, c as be, t as Ht, a as Ut, p as A, b as Wt, d as Gt, o as pt, f as Xt, e as ce, k as we, i as ve, X as qt, l as ft, F as gt, y as mt, v as Yt, w as jt, z as Zt } from "./index-B9Ct1B_p.js";
3
- import { t as Kt, u as Jt } from "./useResponsive-DfdjqQps.js";
4
- import { u as yt } from "./useNestedProp-C0gKxLur.js";
5
- import { u as Qt } from "./usePrinter-DcZXg1hH.js";
6
- import { u as el } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as tl } from "./useChartAccessibility-9icAAmYg.js";
8
- import ll from "./BaseIcon-B8CknCYk.js";
9
- import ol from "./Title-CntvKJss.js";
10
- import al from "./Legend-CQsASoei.js";
11
- import nl from "./img-Cv4nScI0.js";
12
- import { u as sl, B as ul } from "./useLoading-D7YHNtLX.js";
13
- import { _ as rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- function bt(n, i) {
1
+ import { defineAsyncComponent as se, useSlots as Mt, onMounted as vt, computed as k, ref as y, shallowRef as E, toRefs as Vt, watch as Se, onBeforeUnmount as Dt, createElementBlock as m, openBlock as v, unref as r, normalizeStyle as V, normalizeClass as Ie, createBlock as j, createCommentVNode as x, createElementVNode as O, createVNode as Fe, createSlots as Bt, withCtx as A, renderSlot as C, normalizeProps as ee, guardReactiveProps as te, Fragment as me, renderList as Ne, withKeys as ht, withModifiers as ze, mergeProps as pt, createTextVNode as Pe, toDisplayString as Z, Teleport as Et, nextTick as Ht } from "vue";
2
+ import { u as Ut, c as be, t as Wt, a as Gt, p as I, b as Xt, d as qt, o as ft, f as Yt, e as ce, k as we, i as de, X as jt, l as gt, F as yt, y as mt, v as Zt, w as Kt, z as Jt } from "./index-q-LPw2IT.js";
3
+ import { t as Qt, u as el } from "./useResponsive-DfdjqQps.js";
4
+ import { u as bt } from "./useNestedProp-04aFeUYu.js";
5
+ import { u as tl } from "./usePrinter-DX7efa1s.js";
6
+ import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
8
+ import al from "./BaseIcon-CCivwZUq.js";
9
+ import nl from "./Title-B55R8CAZ.js";
10
+ import sl from "./Legend-DcDSkq99.js";
11
+ import ul from "./img-Ctts6JQb.js";
12
+ import { u as rl, B as il } from "./useLoading-D7YHNtLX.js";
13
+ import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ function wt(n, i) {
15
15
  const s = n.length;
16
16
  if (s === 0)
17
17
  throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
18
18
  {
19
- let c = 1 / 0, u = -1 / 0, d = 0;
19
+ let c = 1 / 0, u = -1 / 0, h = 0;
20
20
  for (let g = 0; g < s; g += 1) {
21
21
  const f = n[g].normalizedValue;
22
- f < c && (c = f), f > u && (u = f), d += f;
22
+ f < c && (c = f), f > u && (u = f), h += f;
23
23
  }
24
24
  return Math.max(
25
- i ** 2 * u / d ** 2,
26
- d ** 2 / (i ** 2 * c)
25
+ i ** 2 * u / h ** 2,
26
+ h ** 2 / (i ** 2 * c)
27
27
  );
28
28
  }
29
29
  }
30
- function wt(n) {
30
+ function kt(n) {
31
31
  const { xOffset: i, yOffset: s, width: c, height: u } = n;
32
32
  return {
33
33
  x0: i,
@@ -36,76 +36,76 @@ function wt(n) {
36
36
  y1: s + u
37
37
  };
38
38
  }
39
- function il(n, i, s) {
39
+ function dl(n, i, s) {
40
40
  if (n.length === 0)
41
41
  return !0;
42
42
  {
43
- const c = n.concat(i), u = bt(
43
+ const c = n.concat(i), u = wt(
44
44
  n,
45
45
  s
46
- ), d = bt(c, s);
47
- return u >= d;
46
+ ), h = wt(c, s);
47
+ return u >= h;
48
48
  }
49
49
  }
50
- function cl(n) {
50
+ function vl(n) {
51
51
  const i = [], s = n.length;
52
52
  for (let c = 0; c < s; c += 1) {
53
- const u = n[c], d = u.length;
54
- for (let v = 0; v < d; v += 1)
55
- i.push(u[v]);
53
+ const u = n[c], h = u.length;
54
+ for (let d = 0; d < h; d += 1)
55
+ i.push(u[d]);
56
56
  }
57
57
  return i;
58
58
  }
59
- function vl(n, i) {
59
+ function hl(n, i) {
60
60
  const s = {
61
61
  ...i,
62
62
  children: n
63
63
  };
64
- return Ct(s);
64
+ return $t(s);
65
65
  }
66
- function dl(n) {
66
+ function pl(n) {
67
67
  return (n.x1 - n.x0) * (n.y1 - n.y0);
68
68
  }
69
- function kt(n, i) {
70
- const { width: s, height: c, xOffset: u, yOffset: d } = Re(i), v = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, N) => w + N, 0), f = g / c, H = g / s;
71
- let b = u, O = d;
72
- const S = [];
69
+ function Ct(n, i) {
70
+ const { width: s, height: c, xOffset: u, yOffset: h } = Re(i), d = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, N) => w + N, 0), f = g / c, H = g / s;
71
+ let b = u, S = h;
72
+ const F = [];
73
73
  if (s >= c) {
74
- for (let w = 0; w < v; w += 1) {
75
- const N = n[w], I = O + N.normalizedValue / f, D = {
74
+ for (let w = 0; w < d; w += 1) {
75
+ const N = n[w], $ = S + N.normalizedValue / f, D = {
76
76
  x0: b,
77
- y0: O,
77
+ y0: S,
78
78
  x1: b + f,
79
- y1: I
79
+ y1: $
80
80
  }, z = Object.assign({}, N, D);
81
- O = I, S.push(z);
81
+ S = $, F.push(z);
82
82
  }
83
- return S;
83
+ return F;
84
84
  } else {
85
- for (let w = 0; w < v; w += 1) {
86
- const N = n[w], I = b + N.normalizedValue / H, D = {
85
+ for (let w = 0; w < d; w += 1) {
86
+ const N = n[w], $ = b + N.normalizedValue / H, D = {
87
87
  x0: b,
88
- y0: O,
89
- x1: I,
90
- y1: O + H
88
+ y0: S,
89
+ x1: $,
90
+ y1: S + H
91
91
  }, z = Object.assign({}, N, D);
92
- b = I, S.push(z);
92
+ b = $, F.push(z);
93
93
  }
94
- return S;
94
+ return F;
95
95
  }
96
96
  }
97
- function hl(n) {
97
+ function fl(n) {
98
98
  const i = Re(n), s = i.width, c = i.height;
99
99
  return Math.min(s, c);
100
100
  }
101
- function pl(n, i) {
102
- const s = n.length, c = n.map((f) => f.value ?? 0).reduce((f, H) => f + H, 0), u = i / c, d = [];
103
- let v, g;
101
+ function gl(n, i) {
102
+ const s = n.length, c = n.map((f) => f.value ?? 0).reduce((f, H) => f + H, 0), u = i / c, h = [];
103
+ let d, g;
104
104
  for (let f = 0; f < s; f += 1)
105
- g = n[f], v = Object.assign({}, g, {
105
+ g = n[f], d = Object.assign({}, g, {
106
106
  normalizedValue: g.value * (u || 0)
107
- }), d.push(v);
108
- return d;
107
+ }), h.push(d);
108
+ return h;
109
109
  }
110
110
  function Re(n) {
111
111
  const { x0: i, y0: s, x1: c, y1: u } = n;
@@ -116,74 +116,74 @@ function Re(n) {
116
116
  height: u - s
117
117
  };
118
118
  }
119
- function fl(n, i, s, c) {
120
- let u = n, d = i, v = s, g = c;
119
+ function yl(n, i, s, c) {
120
+ let u = n, h = i, d = s, g = c;
121
121
  for (; ; ) {
122
122
  const f = u.length;
123
123
  if (f === 0) {
124
- const S = kt(d, v);
125
- return g.concat(S);
124
+ const F = Ct(h, d);
125
+ return g.concat(F);
126
126
  }
127
- const H = hl(v), b = u[0], O = u.slice(1, f);
128
- if (il(d, b, H)) {
129
- const S = d.concat(b);
130
- u = O, d = S, v = v, g = g;
127
+ const H = fl(d), b = u[0], S = u.slice(1, f);
128
+ if (dl(h, b, H)) {
129
+ const F = h.concat(b);
130
+ u = S, h = F, d = d, g = g;
131
131
  } else {
132
- const S = d.length;
132
+ const F = h.length;
133
133
  let w = 0;
134
- for (let z = 0; z < S; z += 1)
135
- w += d[z].normalizedValue;
136
- const N = gl(v, w), I = kt(d, v), D = g.concat(I);
137
- u = u, d = [], v = N, g = D;
134
+ for (let z = 0; z < F; z += 1)
135
+ w += h[z].normalizedValue;
136
+ const N = ml(d, w), $ = Ct(h, d), D = g.concat($);
137
+ u = u, h = [], d = N, g = D;
138
138
  }
139
139
  }
140
140
  }
141
- function Ct(n) {
141
+ function $t(n) {
142
142
  if (typeof n.children > "u" || !n.children.length)
143
143
  return [n];
144
144
  {
145
- const i = pl(
145
+ const i = gl(
146
146
  n.children,
147
- dl(n)
148
- ), s = fl(i, [], n, []), c = s.length, u = [];
149
- for (let v = 0; v < c; v += 1)
150
- u.push(Ct(s[v]));
151
- return cl(u);
147
+ pl(n)
148
+ ), s = yl(i, [], n, []), c = s.length, u = [];
149
+ for (let d = 0; d < c; d += 1)
150
+ u.push($t(s[d]));
151
+ return vl(u);
152
152
  }
153
153
  }
154
- function gl(n, i) {
155
- const { width: s, height: c, xOffset: u, yOffset: d } = Re(n);
154
+ function ml(n, i) {
155
+ const { width: s, height: c, xOffset: u, yOffset: h } = Re(n);
156
156
  if (s >= c) {
157
- const v = i / c, g = s - v, f = {
158
- xOffset: u + v,
159
- yOffset: d,
157
+ const d = i / c, g = s - d, f = {
158
+ xOffset: u + d,
159
+ yOffset: h,
160
160
  width: g,
161
161
  height: c
162
162
  };
163
- return wt(f);
163
+ return kt(f);
164
164
  } else {
165
- const v = i / s, g = c - v, f = {
165
+ const d = i / s, g = c - d, f = {
166
166
  xOffset: u,
167
- yOffset: d + v,
167
+ yOffset: h + d,
168
168
  width: s,
169
169
  height: g
170
170
  };
171
- return wt(f);
171
+ return kt(f);
172
172
  }
173
173
  }
174
- const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], bl = { class: "vue-ui-treemap-crumb-unit" }, wl = { class: "vue-ui-treemap-crumb-unit-label" }, kl = {
174
+ const bl = ["id"], wl = ["id"], kl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Cl = { class: "vue-ui-treemap-crumb-unit" }, $l = { class: "vue-ui-treemap-crumb-unit-label" }, Tl = {
175
175
  key: 0,
176
176
  style: { width: "24px", display: "flex", "align-items": "center" }
177
- }, Cl = {
177
+ }, xl = {
178
178
  key: 0,
179
179
  class: "vue-ui-treemap-crumb-unit-arrow"
180
- }, $l = ["xmlns", "viewBox"], Tl = { key: 0 }, xl = ["id"], _l = ["stop-color"], Ol = ["stop-color"], Al = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Sl = ["x", "y", "height", "width"], Il = {
180
+ }, _l = ["xmlns", "viewBox"], Ol = { key: 0 }, Al = ["id"], Sl = ["stop-color"], Il = ["stop-color"], Fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Nl = ["x", "y", "height", "width"], zl = {
181
181
  style: { width: "100%", height: "100%" },
182
182
  class: "vue-ui-treemap-cell"
183
- }, Fl = {
183
+ }, Pl = {
184
184
  key: 5,
185
185
  class: "vue-data-ui-watermark"
186
- }, Nl = ["onClick"], zl = ["innerHTML"], Pl = {
186
+ }, Rl = ["id"], Ll = ["onClick"], Ml = ["innerHTML"], Vl = {
187
187
  __name: "vue-ui-treemap",
188
188
  props: {
189
189
  config: {
@@ -201,12 +201,12 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
201
201
  },
202
202
  emits: ["selectLegend", "selectDatapoint"],
203
203
  setup(n, { expose: i, emit: s }) {
204
- const c = se(() => import("./DataTable-osx68WLA.js")), u = se(() => import("./PenAndPaper-CdXspg5R.js")), d = se(() => import("./vue-ui-accordion-B31QK9Hj.js")), v = se(() => import("./Tooltip-DF8e4iB9.js")), g = se(() => import("./UserOptions-DQyIO0ts.js")), f = se(() => import("./PackageVersion-DZGrOKw5.js")), { vue_ui_treemap: H } = Et(), b = n, O = s, S = Lt();
204
+ const c = se(() => import("./DataTable-rj9-mAwF.js")), u = se(() => import("./PenAndPaper-BJ0hcgsa.js")), h = se(() => import("./vue-ui-accordion-D46i_gkB.js")), d = se(() => import("./Tooltip-BMOddG-M.js")), g = se(() => import("./UserOptions-DVzyjG-W.js")), f = se(() => import("./PackageVersion-5ZjKSIei.js")), { vue_ui_treemap: H } = Ut(), b = n, S = s, F = Mt();
205
205
  vt(() => {
206
- S["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
206
+ F["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
207
207
  });
208
- const w = k(() => !!b.dataset && b.dataset.length), N = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), I = y(be()), D = y(!1), z = y(""), le = y(!1), Le = y(0), L = y([]), U = E(null), Me = E(null), Ve = E(null), De = E(null), Be = E(null), Ee = y(0), ke = y(0), Ce = y(0), $ = y([]), $e = y(null), e = y(_e()), { loading: ue, FINAL_DATASET: Te, manualLoading: $t } = sl({
209
- ...Mt(b),
208
+ const w = k(() => !!b.dataset && b.dataset.length), N = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), $ = y(be()), D = y(!1), z = y(""), le = y(!1), Le = y(0), L = y([]), U = E(null), Me = E(null), Ve = E(null), De = E(null), Be = E(null), Ee = y(0), ke = y(0), Ce = y(0), T = y([]), $e = y(null), He = y(!1), e = y(_e()), { loading: ue, FINAL_DATASET: Te, manualLoading: Tt } = rl({
209
+ ...Vt(b),
210
210
  FINAL_CONFIG: e,
211
211
  prepareConfig: _e,
212
212
  skeletonDataset: [
@@ -225,7 +225,7 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
225
225
  ]
226
226
  }
227
227
  ],
228
- skeletonConfig: Ht({
228
+ skeletonConfig: Wt({
229
229
  defaultConfig: e.value,
230
230
  userConfig: {
231
231
  userOptions: { show: !1 },
@@ -247,28 +247,28 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
247
247
  }
248
248
  }
249
249
  })
250
- }), { userOptionsVisible: xe, setUserOptionsVisibility: He, keepUserOptionState: Ue } = el({ config: e.value }), { svgRef: We } = tl({ config: e.value.style.chart.title });
250
+ }), { userOptionsVisible: xe, setUserOptionsVisibility: Ue, keepUserOptionState: We } = ll({ config: e.value }), { svgRef: Ge } = ol({ config: e.value.style.chart.title });
251
251
  function _e() {
252
- const t = yt({
252
+ const t = bt({
253
253
  userConfig: b.config,
254
254
  defaultConfig: H
255
255
  });
256
256
  return t.theme ? {
257
- ...yt({
258
- userConfig: Wt.vue_ui_treemap[t.theme] || b.config,
257
+ ...bt({
258
+ userConfig: Xt.vue_ui_treemap[t.theme] || b.config,
259
259
  defaultConfig: t
260
260
  }),
261
- customPalette: Ut[t.theme] || A
261
+ customPalette: Gt[t.theme] || I
262
262
  } : t;
263
263
  }
264
264
  Se(() => b.config, (t) => {
265
265
  ue.value || (e.value = _e()), xe.value = !e.value.userOptions.showOnChartHover, Ee.value += 1, ke.value += 1, Ce.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
266
266
  }, { deep: !0 });
267
- const { isPrinting: Ge, isImaging: Xe, generatePdf: qe, generateImage: Ye } = Qt({
268
- elementId: `treemap_${I.value}`,
267
+ const { isPrinting: Xe, isImaging: qe, generatePdf: Ye, generateImage: je } = tl({
268
+ elementId: `treemap_${$.value}`,
269
269
  fileName: e.value.style.chart.title.text || "vue-ui-treemap",
270
270
  options: e.value.userOptions.print
271
- }), Tt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), de = k(() => Gt(e.value.customPalette)), P = y({
271
+ }), xt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), ve = k(() => qt(e.value.customPalette)), P = y({
272
272
  showTable: e.value.table.show,
273
273
  showTooltip: e.value.style.chart.tooltip.show
274
274
  });
@@ -281,7 +281,7 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
281
281
  const W = y({
282
282
  height: e.value.style.chart.height,
283
283
  width: e.value.style.chart.width
284
- }), Z = k(() => ({
284
+ }), K = k(() => ({
285
285
  bottom: W.value.height - e.value.style.chart.padding.bottom,
286
286
  height: W.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
287
287
  left: e.value.style.chart.padding.left,
@@ -290,47 +290,47 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
290
290
  vbHeight: W.value.height,
291
291
  vbWidth: W.value.width,
292
292
  width: W.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
293
- })), R = y(Te.value), G = y(R.value), je = E(/* @__PURE__ */ new Map());
294
- function Ze(t) {
293
+ })), R = y(Te.value), G = y(R.value), Ze = E(/* @__PURE__ */ new Map());
294
+ function Ke(t) {
295
295
  Array.isArray(t) && t.forEach((o, l) => {
296
296
  o.id || (o.id = be());
297
- let a = ce(o.color) || je.value.get(o.id) || de.value[l] || A[l] || A[l % A.length];
298
- a = ce(a), je.value.set(o.id, a), o.color = a, Ke(o, a);
297
+ let a = ce(o.color) || Ze.value.get(o.id) || ve.value[l] || I[l] || I[l % I.length];
298
+ a = ce(a), Ze.value.set(o.id, a), o.color = a, Je(o, a);
299
299
  });
300
300
  }
301
- function Ke(t, o) {
301
+ function Je(t, o) {
302
302
  Array.isArray(t.children) && t.children.forEach((l) => {
303
- l.id || (l.id = be()), l.parentId = t.id, l.color = o, Ke(l, o);
303
+ l.id || (l.id = be()), l.parentId = t.id, l.color = o, Je(l, o);
304
304
  });
305
305
  }
306
- function xt() {
307
- if (!$.value.length)
306
+ function _t() {
307
+ if (!T.value.length)
308
308
  G.value = R.value.slice();
309
309
  else {
310
- const t = $.value[$.value.length - 1], o = q(t);
310
+ const t = T.value[T.value.length - 1], o = q(t);
311
311
  G.value = o?.children?.slice() || [];
312
312
  }
313
313
  }
314
314
  Se(
315
315
  () => Te.value,
316
316
  () => {
317
- R.value = Te.value, Ze(R.value), xt(), Ce.value += 1, ke.value += 1;
317
+ R.value = Te.value, Ke(R.value), _t(), Ce.value += 1, ke.value += 1;
318
318
  },
319
319
  { deep: !0, immediate: !0, flush: "post" }
320
320
  );
321
321
  const X = E(null), oe = E(null);
322
322
  vt(() => {
323
- Ot();
323
+ He.value = !0, At();
324
324
  });
325
- const _t = k(() => e.value.debug);
326
- function Ot() {
327
- if (pt(b.dataset) && Xt({
325
+ const Ot = k(() => e.value.debug);
326
+ function At() {
327
+ if (ft(b.dataset) && Yt({
328
328
  componentName: "VueUiTreemap",
329
329
  type: "dataset",
330
- debug: _t.value
331
- }), Ze(R.value), pt(b.dataset) || ($t.value = e.value.loading), e.value.responsive) {
332
- const t = Kt(() => {
333
- const { width: o, height: l } = Jt({
330
+ debug: Ot.value
331
+ }), Ke(R.value), ft(b.dataset) || (Tt.value = e.value.loading), e.value.responsive) {
332
+ const t = Qt(() => {
333
+ const { width: o, height: l } = el({
334
334
  chart: U.value,
335
335
  title: e.value.style.chart.title.text ? Me.value : null,
336
336
  legend: e.value.style.chart.legend.show ? Ve.value : null,
@@ -344,13 +344,13 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
344
344
  X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect()), X.value = new ResizeObserver(t), oe.value = U.value.parentNode, X.value.observe(oe.value);
345
345
  }
346
346
  }
347
- Vt(() => {
347
+ Dt(() => {
348
348
  X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect());
349
349
  });
350
350
  const re = k(() => G.value.map((t, o) => ({
351
351
  ...t,
352
- color: ce(t.color) || de.value[o] || A[o] || A[o % A.length]
353
- })).filter((t) => !L.value.includes(t.id))), ae = k(() => R.value.filter((t) => !L.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Je = k({
352
+ color: ce(t.color) || ve.value[o] || I[o] || I[o % I.length]
353
+ })).filter((t) => !L.value.includes(t.id))), ae = k(() => R.value.filter((t) => !L.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Qe = k({
354
354
  get() {
355
355
  let t = [...re.value];
356
356
  return e.value.style.chart.layout.sorted && (t = [...re.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
@@ -361,49 +361,49 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
361
361
  return t;
362
362
  }
363
363
  });
364
- function Qe(t, o) {
364
+ function et(t, o) {
365
365
  return t.value / o;
366
366
  }
367
- function At(t, o, l) {
368
- const a = e.value.style.chart.layout.rects.colorRatio - Qe(o, l);
369
- return ft(t, a < 0 ? 0 : a);
367
+ function St(t, o, l) {
368
+ const a = e.value.style.chart.layout.rects.colorRatio - et(o, l);
369
+ return gt(t, a < 0 ? 0 : a);
370
370
  }
371
- function et(t, o, l, a) {
372
- return t.map((h, T) => {
373
- const me = At(ce(o) || de.value[T] || A[T] || A[T % A.length], h, a), Rt = Qe(h, a);
371
+ function tt(t, o, l, a) {
372
+ return t.map((p, _) => {
373
+ const ye = St(ce(o) || ve.value[_] || I[_] || I[_ % I.length], p, a), Lt = et(p, a);
374
374
  return {
375
- ...h,
376
- color: me,
377
- proportion: Rt,
375
+ ...p,
376
+ color: ye,
377
+ proportion: Lt,
378
378
  parentName: l,
379
- children: h.children ? et(h.children, me, h.name, a) : void 0
379
+ children: p.children ? tt(p.children, ye, p.name, a) : void 0
380
380
  };
381
381
  });
382
382
  }
383
- const ie = k(() => vl(
384
- Je.value.map((t, o) => {
385
- const l = t.children ? t.children.reduce((a, h) => a + h.value, 0) : t.value;
383
+ const ie = k(() => hl(
384
+ Qe.value.map((t, o) => {
385
+ const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
386
386
  return {
387
387
  value: t.value,
388
388
  id: t.id || be(),
389
- children: t.children ? et(t.children.sort((a, h) => h.value - a.value), t.color, t.name, l) : void 0,
389
+ children: t.children ? tt(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
390
390
  color: t.color,
391
391
  name: t.name
392
392
  };
393
393
  }),
394
- { x0: Z.value.left * 2, y0: Z.value.top, x1: Z.value.width, y1: Z.value.height }
394
+ { x0: K.value.left * 2, y0: K.value.top, x1: K.value.width, y1: K.value.height }
395
395
  ));
396
- function tt({ y0: t, y1: o }) {
396
+ function lt({ y0: t, y1: o }) {
397
397
  return o - t <= 0 ? 1e-4 : o - t;
398
398
  }
399
- function lt({ x0: t, x1: o }) {
399
+ function ot({ x0: t, x1: o }) {
400
400
  return o - t <= 0 ? 1e-4 : o - t;
401
401
  }
402
- function K(t) {
402
+ function J(t) {
403
403
  const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
404
404
  return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
405
405
  }
406
- function ot(t) {
406
+ function at(t) {
407
407
  le.value = t, Le.value += 1;
408
408
  }
409
409
  const ne = k(() => {
@@ -411,8 +411,8 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
411
411
  return $e.value && (t = $e.value.getBoundingClientRect().height), {
412
412
  startX: 0,
413
413
  startY: 0,
414
- width: Z.value.vbWidth,
415
- height: Z.value.vbHeight - t
414
+ width: K.value.vbWidth,
415
+ height: K.value.vbHeight - t
416
416
  };
417
417
  });
418
418
  function q(t, o = R.value) {
@@ -427,39 +427,39 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
427
427
  }
428
428
  return null;
429
429
  }
430
- const J = k(() => $.value.length > 0);
430
+ const Q = k(() => T.value.length > 0);
431
431
  function he(t, o) {
432
432
  if (!t) {
433
- G.value = R.value.slice(), O("selectDatapoint", void 0), $.value = [];
433
+ G.value = R.value.slice(), S("selectDatapoint", void 0), T.value = [];
434
434
  return;
435
435
  }
436
436
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
437
437
  const l = q(t.id);
438
438
  if (l && l.children?.length)
439
- $.value.push(l.id), G.value = l.children.slice(), O("selectDatapoint", t);
439
+ T.value.push(l.id), G.value = l.children.slice(), S("selectDatapoint", t);
440
440
  else if (t.parentId) {
441
- $.value.push(t.parentId);
441
+ T.value.push(t.parentId);
442
442
  const a = q(t.parentId);
443
- G.value = a.children.slice(), O("selectDatapoint", t);
444
- } else if ($.value.length > 0) {
445
- $.value.pop();
446
- const a = $.value[$.value.length - 1];
443
+ G.value = a.children.slice(), S("selectDatapoint", t);
444
+ } else if (T.value.length > 0) {
445
+ T.value.pop();
446
+ const a = T.value[T.value.length - 1];
447
447
  if (a) {
448
- const h = q(a);
449
- G.value = h.children.slice();
448
+ const p = q(a);
449
+ G.value = p.children.slice();
450
450
  } else
451
- G.value = R.value.slice(), $.value = [], O("selectDatapoint", void 0);
451
+ G.value = R.value.slice(), T.value = [], S("selectDatapoint", void 0);
452
452
  }
453
453
  }
454
- function St(t) {
454
+ function It(t) {
455
455
  return !!(q(t.id)?.children?.length || t.parentId);
456
456
  }
457
457
  const Y = k(() => {
458
458
  const t = [
459
459
  { id: null, label: "All" }
460
460
  ];
461
- if ($.value.length > 0) {
462
- let o = q($.value[$.value.length - 1]);
461
+ if (T.value.length > 0) {
462
+ let o = q(T.value[T.value.length - 1]);
463
463
  const l = [];
464
464
  for (; o; )
465
465
  l.unshift(o), o = o.parentId ? q(o.parentId) : null;
@@ -471,15 +471,15 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
471
471
  });
472
472
  }
473
473
  return t;
474
- }), M = E(null), at = k(() => R.value.map((t, o) => ({
474
+ }), M = E(null), nt = k(() => R.value.map((t, o) => ({
475
475
  ...t,
476
- color: ce(t.color) || de.value[o] || A[o] || A[o % A.length],
476
+ color: ce(t.color) || ve.value[o] || I[o] || I[o % I.length],
477
477
  shape: "square"
478
478
  })).sort((t, o) => o.value - t.value).map((t, o) => ({
479
479
  ...t,
480
480
  proportion: t.value / R.value.map((l) => l.value).reduce((l, a) => l + a, 0),
481
481
  opacity: L.value.includes(t.id) ? 0.5 : 1
482
- }))), It = k(() => ({
482
+ }))), Ft = k(() => ({
483
483
  cy: "treemap-div-legend",
484
484
  backgroundColor: e.value.style.chart.legend.backgroundColor,
485
485
  color: e.value.style.chart.legend.color,
@@ -487,17 +487,17 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
487
487
  paddingBottom: 12,
488
488
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
489
489
  }));
490
- function nt(t) {
491
- M.value = null, L.value.includes(t.id) ? L.value = L.value.filter((o) => o !== t.id) : L.value.length < b.dataset.length - 1 && L.value.push(t.id), O("selectLegend", Je.value);
490
+ function st(t) {
491
+ M.value = null, L.value.includes(t.id) ? L.value = L.value.filter((o) => o !== t.id) : L.value.length < b.dataset.length - 1 && L.value.push(t.id), S("selectLegend", Qe.value);
492
492
  }
493
- function Ft({ datapoint: t, seriesIndex: o }) {
493
+ function Nt({ datapoint: t, seriesIndex: o }) {
494
494
  M.value = null, D.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
495
495
  }
496
496
  const Oe = y(null);
497
- function Nt({ datapoint: t, seriesIndex: o }) {
497
+ function zt({ datapoint: t, seriesIndex: o }) {
498
498
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), M.value = t, Oe.value = { datapoint: t, seriesIndex: o, config: e.value, series: re.value };
499
499
  const l = e.value.style.chart.tooltip.customFormat;
500
- if (mt(l) && Zt(() => l({
500
+ if (mt(l) && Jt(() => l({
501
501
  seriesIndex: o,
502
502
  datapoint: t,
503
503
  series: re.value,
@@ -514,7 +514,7 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
514
514
  a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${we(
515
515
  e.value.style.chart.layout.labels.formatter,
516
516
  t.value,
517
- ve({
517
+ de({
518
518
  p: e.value.style.chart.layout.labels.prefix,
519
519
  v: t.value,
520
520
  s: e.value.style.chart.layout.labels.suffix,
@@ -532,12 +532,12 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
532
532
  })), o = ie.value.map((l) => l.value);
533
533
  return { head: t, body: o };
534
534
  });
535
- function st(t = null) {
536
- Bt(() => {
537
- const o = B.value.head.map((h, T) => [[
538
- h.name
539
- ], [B.value.body[T]], [isNaN(B.value.body[T] / ae.value) ? "-" : B.value.body[T] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Yt(l);
540
- t ? t(a) : jt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
535
+ function ut(t = null) {
536
+ Ht(() => {
537
+ const o = B.value.head.map((p, _) => [[
538
+ p.name
539
+ ], [B.value.body[_]], [isNaN(B.value.body[_] / ae.value) ? "-" : B.value.body[_] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Zt(l);
540
+ t ? t(a) : Kt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
541
541
  });
542
542
  }
543
543
  const pe = k(() => {
@@ -545,26 +545,26 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
545
545
  e.value.table.columnNames.series,
546
546
  e.value.table.columnNames.value,
547
547
  e.value.table.columnNames.percentage
548
- ], o = B.value.head.map((h, T) => {
549
- const me = we(
548
+ ], o = B.value.head.map((p, _) => {
549
+ const ye = we(
550
550
  e.value.style.chart.layout.labels.formatter,
551
- B.value.body[T],
552
- ve({
551
+ B.value.body[_],
552
+ de({
553
553
  p: e.value.style.chart.layout.labels.prefix,
554
- v: B.value.body[T],
554
+ v: B.value.body[_],
555
555
  s: e.value.style.chart.layout.labels.suffix,
556
556
  r: e.value.table.td.roundingValue
557
557
  })
558
558
  );
559
559
  return [
560
560
  {
561
- color: h.color,
562
- name: h.name,
561
+ color: p.color,
562
+ name: p.name,
563
563
  shape: "square"
564
564
  },
565
- me,
566
- isNaN(B.value.body[T] / ae.value) ? "-" : ve({
567
- v: B.value.body[T] / ae.value * 100,
565
+ ye,
566
+ isNaN(B.value.body[_] / ae.value) ? "-" : de({
567
+ v: B.value.body[_] / ae.value * 100,
568
568
  s: "%",
569
569
  r: e.value.table.td.roundingPercentage
570
570
  })
@@ -592,13 +592,13 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
592
592
  config: l
593
593
  };
594
594
  });
595
- function zt() {
595
+ function Pt() {
596
596
  return ie.value;
597
597
  }
598
- function ut() {
598
+ function rt() {
599
599
  P.value.showTable = !P.value.showTable;
600
600
  }
601
- function rt() {
601
+ function it() {
602
602
  P.value.showTooltip = !P.value.showTooltip;
603
603
  }
604
604
  const fe = y(!1);
@@ -606,18 +606,18 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
606
606
  fe.value = !fe.value;
607
607
  }
608
608
  const ge = y(null);
609
- function it(t) {
609
+ function ct(t) {
610
610
  ge.value = t;
611
611
  }
612
- function ct() {
612
+ function dt() {
613
613
  ge.value = null;
614
614
  }
615
- async function Pt({ scale: t = 2 } = {}) {
615
+ async function Rt({ scale: t = 2 } = {}) {
616
616
  if (!U.value) return;
617
- const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: h, base64: T } = await nl({ domElement: U.value, base64: !0, img: !0, scale: t });
617
+ const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: p, base64: _ } = await ul({ domElement: U.value, base64: !0, img: !0, scale: t });
618
618
  return {
619
- imageUri: h,
620
- base64: T,
619
+ imageUri: p,
620
+ base64: _,
621
621
  title: e.value.style.chart.title.text,
622
622
  width: o,
623
623
  height: l,
@@ -625,46 +625,46 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
625
625
  };
626
626
  }
627
627
  return i({
628
- getData: zt,
629
- getImage: Pt,
630
- generateCsv: st,
631
- generateImage: Ye,
632
- generatePdf: qe,
633
- toggleTable: ut,
634
- toggleTooltip: rt,
628
+ getData: Pt,
629
+ getImage: Rt,
630
+ generateCsv: ut,
631
+ generateImage: je,
632
+ generatePdf: Ye,
633
+ toggleTable: rt,
634
+ toggleTooltip: it,
635
635
  toggleAnnotator: Ae,
636
- toggleFullscreen: ot
637
- }), (t, o) => (p(), m("div", {
636
+ toggleFullscreen: at
637
+ }), (t, o) => (v(), m("div", {
638
638
  ref_key: "treemapChart",
639
639
  ref: U,
640
640
  class: Ie(`vue-ui-treemap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
641
641
  style: V(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
642
- id: `treemap_${I.value}`,
643
- onMouseenter: o[2] || (o[2] = () => r(He)(!0)),
644
- onMouseleave: o[3] || (o[3] = () => r(He)(!1))
642
+ id: `treemap_${$.value}`,
643
+ onMouseenter: o[2] || (o[2] = () => r(Ue)(!0)),
644
+ onMouseleave: o[3] || (o[3] = () => r(Ue)(!1))
645
645
  }, [
646
- e.value.userOptions.buttons.annotator ? (p(), Q(r(u), {
646
+ e.value.userOptions.buttons.annotator ? (v(), j(r(u), {
647
647
  key: 0,
648
- svgRef: r(We),
648
+ svgRef: r(Ge),
649
649
  backgroundColor: e.value.style.chart.backgroundColor,
650
650
  color: e.value.style.chart.color,
651
651
  active: fe.value,
652
652
  onClose: Ae
653
653
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
654
- Tt.value ? (p(), m("div", {
654
+ xt.value ? (v(), m("div", {
655
655
  key: 1,
656
656
  ref_key: "noTitle",
657
657
  ref: Be,
658
658
  class: "vue-data-ui-no-title-space",
659
659
  style: "height:36px; width: 100%;background:transparent"
660
660
  }, null, 512)) : x("", !0),
661
- e.value.style.chart.title.text ? (p(), m("div", {
661
+ e.value.style.chart.title.text ? (v(), m("div", {
662
662
  key: 2,
663
663
  ref_key: "chartTitle",
664
664
  ref: Me,
665
665
  style: V(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
666
666
  }, [
667
- (p(), Q(ol, {
667
+ (v(), j(nl, {
668
668
  key: `title_${Ee.value}`,
669
669
  config: {
670
670
  title: {
@@ -678,14 +678,17 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
678
678
  }
679
679
  }, null, 8, ["config"]))
680
680
  ], 4)) : x("", !0),
681
- e.value.userOptions.show && w.value && (r(Ue) || r(xe)) ? (p(), Q(r(g), {
681
+ O("div", {
682
+ id: `legend-top-${$.value}`
683
+ }, null, 8, wl),
684
+ e.value.userOptions.show && w.value && (r(We) || r(xe)) ? (v(), j(r(g), {
682
685
  ref: "details",
683
686
  key: `user_option_${Le.value}`,
684
687
  backgroundColor: e.value.style.chart.backgroundColor,
685
688
  color: e.value.style.chart.color,
686
- isPrinting: r(Ge),
687
- isImaging: r(Xe),
688
- uid: I.value,
689
+ isPrinting: r(Xe),
690
+ isImaging: r(qe),
691
+ uid: $.value,
689
692
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
690
693
  hasPdf: e.value.userOptions.buttons.pdf,
691
694
  hasXls: e.value.userOptions.buttons.csv,
@@ -701,197 +704,197 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
701
704
  isAnnotation: fe.value,
702
705
  callbacks: e.value.userOptions.callbacks,
703
706
  printScale: e.value.userOptions.print.scale,
704
- onToggleFullscreen: ot,
705
- onGeneratePdf: r(qe),
706
- onGenerateCsv: st,
707
- onGenerateImage: r(Ye),
708
- onToggleTable: ut,
709
- onToggleTooltip: rt,
707
+ onToggleFullscreen: at,
708
+ onGeneratePdf: r(Ye),
709
+ onGenerateCsv: ut,
710
+ onGenerateImage: r(je),
711
+ onToggleTable: rt,
712
+ onToggleTooltip: it,
710
713
  onToggleAnnotator: Ae,
711
714
  style: V({
712
- visibility: r(Ue) ? r(xe) ? "visible" : "hidden" : "visible"
715
+ visibility: r(We) ? r(xe) ? "visible" : "hidden" : "visible"
713
716
  })
714
- }, Dt({ _: 2 }, [
717
+ }, Bt({ _: 2 }, [
715
718
  t.$slots.menuIcon ? {
716
719
  name: "menuIcon",
717
- fn: _(({ isOpen: l, color: a }) => [
720
+ fn: A(({ isOpen: l, color: a }) => [
718
721
  C(t.$slots, "menuIcon", ee(te({ isOpen: l, color: a })), void 0, !0)
719
722
  ]),
720
723
  key: "0"
721
724
  } : void 0,
722
725
  t.$slots.optionTooltip ? {
723
726
  name: "optionTooltip",
724
- fn: _(() => [
727
+ fn: A(() => [
725
728
  C(t.$slots, "optionTooltip", {}, void 0, !0)
726
729
  ]),
727
730
  key: "1"
728
731
  } : void 0,
729
732
  t.$slots.optionPdf ? {
730
733
  name: "optionPdf",
731
- fn: _(() => [
734
+ fn: A(() => [
732
735
  C(t.$slots, "optionPdf", {}, void 0, !0)
733
736
  ]),
734
737
  key: "2"
735
738
  } : void 0,
736
739
  t.$slots.optionCsv ? {
737
740
  name: "optionCsv",
738
- fn: _(() => [
741
+ fn: A(() => [
739
742
  C(t.$slots, "optionCsv", {}, void 0, !0)
740
743
  ]),
741
744
  key: "3"
742
745
  } : void 0,
743
746
  t.$slots.optionImg ? {
744
747
  name: "optionImg",
745
- fn: _(() => [
748
+ fn: A(() => [
746
749
  C(t.$slots, "optionImg", {}, void 0, !0)
747
750
  ]),
748
751
  key: "4"
749
752
  } : void 0,
750
753
  t.$slots.optionTable ? {
751
754
  name: "optionTable",
752
- fn: _(() => [
755
+ fn: A(() => [
753
756
  C(t.$slots, "optionTable", {}, void 0, !0)
754
757
  ]),
755
758
  key: "5"
756
759
  } : void 0,
757
760
  t.$slots.optionFullscreen ? {
758
761
  name: "optionFullscreen",
759
- fn: _(({ toggleFullscreen: l, isFullscreen: a }) => [
762
+ fn: A(({ toggleFullscreen: l, isFullscreen: a }) => [
760
763
  C(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
761
764
  ]),
762
765
  key: "6"
763
766
  } : void 0,
764
767
  t.$slots.optionAnnotator ? {
765
768
  name: "optionAnnotator",
766
- fn: _(({ toggleAnnotator: l, isAnnotator: a }) => [
769
+ fn: A(({ toggleAnnotator: l, isAnnotator: a }) => [
767
770
  C(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
768
771
  ]),
769
772
  key: "7"
770
773
  } : void 0
771
774
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
772
- Y.value.length > 1 ? (p(), m("nav", {
775
+ Y.value.length > 1 ? (v(), m("nav", {
773
776
  key: 4,
774
777
  class: "vue-ui-treemap-breadcrumbs",
775
778
  "data-dom-to-png-ignore": "",
776
779
  ref_key: "breadcrumbsNav",
777
780
  ref: $e
778
781
  }, [
779
- (p(!0), m(ye, null, Ne(Y.value, (l, a) => (p(), m("span", {
782
+ (v(!0), m(me, null, Ne(Y.value, (l, a) => (v(), m("span", {
780
783
  role: "button",
781
784
  tabindex: a < Y.value.length - 1 ? 0 : void 0,
782
785
  key: l.id || "root",
783
- onClick: (h) => a === Y.value.length - 1 ? () => {
786
+ onClick: (p) => a === Y.value.length - 1 ? () => {
784
787
  } : he(l.node),
785
788
  onKeydown: [
786
- dt(ze((h) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["enter"]),
787
- dt(ze((h) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["space"])
789
+ ht(ze((p) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["enter"]),
790
+ ht(ze((p) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["space"])
788
791
  ],
789
792
  class: "vue-ui-treemap-crumb",
790
793
  "data-last-crumb": a === Y.value.length - 1,
791
794
  style: V({
792
795
  color: e.value.style.chart.color
793
796
  }),
794
- onMouseenter: (h) => it(a),
795
- onMouseleave: ct,
796
- onFocus: (h) => it(a),
797
- onBlur: ct
797
+ onMouseenter: (p) => ct(a),
798
+ onMouseleave: dt,
799
+ onFocus: (p) => ct(a),
800
+ onBlur: dt
798
801
  }, [
799
- F("span", bl, [
800
- F("span", wl, [
801
- C(t.$slots, "breadcrumb-label", ht({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ge.value === a }), () => [
802
- a === 0 ? (p(), m("div", kl, [
803
- Fe(ll, {
802
+ O("span", Cl, [
803
+ O("span", $l, [
804
+ C(t.$slots, "breadcrumb-label", pt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ge.value === a }), () => [
805
+ a === 0 ? (v(), m("div", Tl, [
806
+ Fe(al, {
804
807
  name: ge.value === 0 ? "homeFilled" : "home",
805
808
  stroke: e.value.style.chart.color
806
809
  }, null, 8, ["name", "stroke"])
807
- ])) : (p(), m(ye, { key: 1 }, [
808
- Pe(j(l.label), 1)
810
+ ])) : (v(), m(me, { key: 1 }, [
811
+ Pe(Z(l.label), 1)
809
812
  ], 64))
810
813
  ], !0)
811
814
  ]),
812
- a < Y.value.length - 1 ? (p(), m("span", Cl, [
815
+ a < Y.value.length - 1 ? (v(), m("span", xl, [
813
816
  C(t.$slots, "breadcrumb-arrow", {}, () => [
814
817
  o[4] || (o[4] = Pe(" › ", -1))
815
818
  ], !0)
816
819
  ])) : x("", !0)
817
820
  ])
818
- ], 44, yl))), 128))
821
+ ], 44, kl))), 128))
819
822
  ], 512)) : x("", !0),
820
- (p(), m("svg", {
823
+ (v(), m("svg", {
821
824
  ref_key: "svgRef",
822
- ref: We,
823
- xmlns: r(qt),
824
- class: Ie({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !J.value, "vue-data-ui-zoom-minus": J.value, loading: r(ue) }),
825
+ ref: Ge,
826
+ xmlns: r(jt),
827
+ class: Ie({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !Q.value, "vue-data-ui-zoom-minus": Q.value, loading: r(ue) }),
825
828
  viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
826
829
  style: V(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
827
830
  }, [
828
831
  Fe(r(f)),
829
- (p(!0), m(ye, null, Ne(ie.value, (l, a) => (p(), m("g", {
832
+ (v(!0), m(me, null, Ne(ie.value, (l, a) => (v(), m("g", {
830
833
  key: `tgrad_${l.id}`
831
834
  }, [
832
- e.value.style.chart.layout.rects.gradient.show ? (p(), m("defs", Tl, [
833
- F("radialGradient", {
835
+ e.value.style.chart.layout.rects.gradient.show ? (v(), m("defs", Ol, [
836
+ O("radialGradient", {
834
837
  id: `tgrad_${l.id}`,
835
838
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
836
839
  }, [
837
- F("stop", {
840
+ O("stop", {
838
841
  offset: "18%",
839
842
  "stop-color": l.color
840
- }, null, 8, _l),
841
- F("stop", {
843
+ }, null, 8, Sl),
844
+ O("stop", {
842
845
  offset: "100%",
843
- "stop-color": r(ft)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
844
- }, null, 8, Ol)
845
- ], 8, xl)
846
+ "stop-color": r(gt)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
847
+ }, null, 8, Il)
848
+ ], 8, Al)
846
849
  ])) : x("", !0)
847
850
  ]))), 128)),
848
- (p(!0), m(ye, null, Ne(ie.value, (l, a) => (p(), m("g", {
851
+ (v(!0), m(me, null, Ne(ie.value, (l, a) => (v(), m("g", {
849
852
  key: `k_${l.id}`
850
853
  }, [
851
- F("rect", {
854
+ O("rect", {
852
855
  x: l.x0,
853
856
  y: l.y0,
854
- height: tt(l),
855
- width: lt(l),
857
+ height: lt(l),
858
+ width: ot(l),
856
859
  fill: N.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
857
860
  rx: e.value.style.chart.layout.rects.borderRadius,
858
861
  stroke: M.value && M.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
859
862
  "stroke-width": M.value && M.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
860
- onClick: ze((h) => he(l, a), ["stop"]),
861
- onMouseenter: () => Nt({
863
+ onClick: ze((p) => he(l, a), ["stop"]),
864
+ onMouseenter: () => zt({
862
865
  datapoint: l,
863
866
  seriesIndex: a
864
867
  }),
865
- onMouseleave: (h) => Ft({ datapoint: l, seriesIndex: a }),
868
+ onMouseleave: (p) => Nt({ datapoint: l, seriesIndex: a }),
866
869
  style: V(`opacity:${M.value ? M.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
867
870
  class: Ie([
868
871
  "vue-ui-treemap-rect",
869
- St(l) ? "vue-data-ui-zoom-plus" : J.value ? "vue-data-ui-zoom-minus" : ""
872
+ It(l) ? "vue-data-ui-zoom-plus" : Q.value ? "vue-data-ui-zoom-minus" : ""
870
873
  ])
871
- }, null, 46, Al),
872
- (p(), m("foreignObject", {
874
+ }, null, 46, Fl),
875
+ (v(), m("foreignObject", {
873
876
  x: l.x0,
874
877
  y: l.y0,
875
- height: tt(l),
876
- width: lt(l),
878
+ height: lt(l),
879
+ width: ot(l),
877
880
  class: "vue-ui-treemap-cell-foreignObject"
878
881
  }, [
879
- F("div", Il, [
880
- e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || J.value) ? (p(), m("div", {
882
+ O("div", zl, [
883
+ e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value) ? (v(), m("div", {
881
884
  key: 0,
882
885
  class: "vue-ui-treemap-cell-default",
883
- style: V(`width:calc(100% - ${K(l) / 1.5}px);text-align:left;line-height:${K(l) < 14 ? 14 : K(l)}px;padding:${K(l) / 3}px; color:${r(gt)(l.color)}`)
886
+ style: V(`width:calc(100% - ${J(l) / 1.5}px);text-align:left;line-height:${J(l) < 14 ? 14 : J(l)}px;padding:${J(l) / 3}px; color:${r(yt)(l.color)}`)
884
887
  }, [
885
- F("span", {
886
- style: V(`width:100%;font-size:${K(l)}px;`)
887
- }, j(l.name), 5),
888
- o[5] || (o[5] = F("br", null, null, -1)),
889
- F("span", {
890
- style: V(`width:100%;font-size:${K(l)}px;`)
891
- }, j(r(we)(
888
+ O("span", {
889
+ style: V(`width:100%;font-size:${J(l)}px;`)
890
+ }, Z(l.name), 5),
891
+ o[5] || (o[5] = O("br", null, null, -1)),
892
+ O("span", {
893
+ style: V(`width:100%;font-size:${J(l)}px;`)
894
+ }, Z(r(we)(
892
895
  e.value.style.chart.layout.labels.formatter,
893
896
  l.value,
894
- r(ve)({
897
+ r(de)({
895
898
  p: e.value.style.chart.layout.labels.prefix,
896
899
  v: l.value,
897
900
  s: e.value.style.chart.layout.labels.suffix,
@@ -900,67 +903,75 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
900
903
  { datapoint: l }
901
904
  )), 5)
902
905
  ], 4)) : x("", !0),
903
- r(ue) ? x("", !0) : C(t.$slots, "rect", ht({
906
+ r(ue) ? x("", !0) : C(t.$slots, "rect", pt({
904
907
  key: 1,
905
908
  ref_for: !0
906
909
  }, {
907
910
  rect: l,
908
- shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || J.value,
909
- fontSize: K(l),
910
- isZoom: J.value,
911
- textColor: r(gt)(l.color)
911
+ shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value,
912
+ fontSize: J(l),
913
+ isZoom: Q.value,
914
+ textColor: r(yt)(l.color)
912
915
  }), void 0, !0)
913
916
  ])
914
- ], 8, Sl))
917
+ ], 8, Nl))
915
918
  ]))), 128)),
916
- C(t.$slots, "svg", ee(te({ svg: Z.value, isZoom: J.value, rect: M.value, config: e.value })), void 0, !0)
917
- ], 14, $l)),
918
- t.$slots.watermark ? (p(), m("div", Fl, [
919
- C(t.$slots, "watermark", ee(te({ isPrinting: r(Ge) || r(Xe) })), void 0, !0)
919
+ C(t.$slots, "svg", ee(te({ svg: K.value, isZoom: Q.value, rect: M.value, config: e.value })), void 0, !0)
920
+ ], 14, _l)),
921
+ t.$slots.watermark ? (v(), m("div", Pl, [
922
+ C(t.$slots, "watermark", ee(te({ isPrinting: r(Xe) || r(qe) })), void 0, !0)
920
923
  ])) : x("", !0),
921
- F("div", {
922
- ref_key: "chartLegend",
923
- ref: Ve
924
- }, [
925
- e.value.style.chart.legend.show ? (p(), Q(al, {
926
- key: `legend_${Ce.value}`,
927
- legendSet: at.value,
928
- config: It.value,
929
- id: `treemap_legend_${I.value}`,
930
- onClickMarker: o[0] || (o[0] = ({ legend: l }) => nt(l))
931
- }, {
932
- item: _(({ legend: l, index: a }) => [
933
- r(ue) ? x("", !0) : (p(), m("div", {
934
- key: 0,
935
- onClick: (h) => nt(l),
936
- style: V(`opacity:${L.value.includes(l.id) ? 0.5 : 1}`)
937
- }, j(l.name) + j(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + j(e.value.style.chart.legend.showValue ? r(we)(
938
- e.value.style.chart.layout.labels.formatter,
939
- l.value,
940
- r(ve)({
941
- p: e.value.style.chart.layout.labels.prefix,
942
- v: l.value,
943
- s: e.value.style.chart.layout.labels.suffix,
944
- r: e.value.style.chart.legend.roundingValue
945
- }),
946
- { datapoint: l }
947
- ) : "") + " " + j(e.value.style.chart.legend.showPercentage ? L.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Nl))
948
- ]),
949
- _: 1
950
- }, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
951
- key: 1,
952
- legend: at.value
953
- }, void 0, !0)
954
- ], 512),
955
- t.$slots.source ? (p(), m("div", {
924
+ O("div", {
925
+ id: `legend-bottom-${$.value}`
926
+ }, null, 8, Rl),
927
+ He.value ? (v(), j(Et, {
956
928
  key: 6,
929
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
930
+ }, [
931
+ O("div", {
932
+ ref_key: "chartLegend",
933
+ ref: Ve
934
+ }, [
935
+ e.value.style.chart.legend.show ? (v(), j(sl, {
936
+ key: `legend_${Ce.value}`,
937
+ legendSet: nt.value,
938
+ config: Ft.value,
939
+ id: `treemap_legend_${$.value}`,
940
+ onClickMarker: o[0] || (o[0] = ({ legend: l }) => st(l))
941
+ }, {
942
+ item: A(({ legend: l, index: a }) => [
943
+ r(ue) ? x("", !0) : (v(), m("div", {
944
+ key: 0,
945
+ onClick: (p) => st(l),
946
+ style: V(`opacity:${L.value.includes(l.id) ? 0.5 : 1}`)
947
+ }, Z(l.name) + Z(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + Z(e.value.style.chart.legend.showValue ? r(we)(
948
+ e.value.style.chart.layout.labels.formatter,
949
+ l.value,
950
+ r(de)({
951
+ p: e.value.style.chart.layout.labels.prefix,
952
+ v: l.value,
953
+ s: e.value.style.chart.layout.labels.suffix,
954
+ r: e.value.style.chart.legend.roundingValue
955
+ }),
956
+ { datapoint: l }
957
+ ) : "") + " " + Z(e.value.style.chart.legend.showPercentage ? L.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ll))
958
+ ]),
959
+ _: 1
960
+ }, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
961
+ key: 1,
962
+ legend: nt.value
963
+ }, void 0, !0)
964
+ ], 512)
965
+ ], 8, ["to"])) : x("", !0),
966
+ t.$slots.source ? (v(), m("div", {
967
+ key: 7,
957
968
  ref_key: "source",
958
969
  ref: De,
959
970
  dir: "auto"
960
971
  }, [
961
972
  C(t.$slots, "source", {}, void 0, !0)
962
973
  ], 512)) : x("", !0),
963
- Fe(r(v), {
974
+ Fe(r(d), {
964
975
  show: P.value.showTooltip && D.value,
965
976
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
966
977
  color: e.value.style.chart.tooltip.color,
@@ -978,16 +989,16 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
978
989
  smooth: e.value.style.chart.tooltip.smooth,
979
990
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
980
991
  }, {
981
- "tooltip-before": _(() => [
992
+ "tooltip-before": A(() => [
982
993
  C(t.$slots, "tooltip-before", ee(te({ ...Oe.value })), void 0, !0)
983
994
  ]),
984
- "tooltip-after": _(() => [
995
+ "tooltip-after": A(() => [
985
996
  C(t.$slots, "tooltip-after", ee(te({ ...Oe.value })), void 0, !0)
986
997
  ]),
987
998
  _: 3
988
999
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
989
- w.value ? (p(), Q(r(d), {
990
- key: 7,
1000
+ w.value ? (v(), j(r(h), {
1001
+ key: 8,
991
1002
  hideDetails: "",
992
1003
  config: {
993
1004
  open: P.value.showTable,
@@ -1002,8 +1013,8 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
1002
1013
  }
1003
1014
  }
1004
1015
  }, {
1005
- content: _(() => [
1006
- (p(), Q(r(c), {
1016
+ content: A(() => [
1017
+ (v(), j(r(c), {
1007
1018
  key: `table_${ke.value}`,
1008
1019
  colNames: pe.value.colNames,
1009
1020
  head: pe.value.head,
@@ -1012,24 +1023,24 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
1012
1023
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1013
1024
  onClose: o[1] || (o[1] = (l) => P.value.showTable = !1)
1014
1025
  }, {
1015
- th: _(({ th: l }) => [
1016
- F("div", {
1026
+ th: A(({ th: l }) => [
1027
+ O("div", {
1017
1028
  innerHTML: l,
1018
1029
  style: { display: "flex", "align-items": "center" }
1019
- }, null, 8, zl)
1030
+ }, null, 8, Ml)
1020
1031
  ]),
1021
- td: _(({ td: l }) => [
1022
- Pe(j(l.name || l), 1)
1032
+ td: A(({ td: l }) => [
1033
+ Pe(Z(l.name || l), 1)
1023
1034
  ]),
1024
1035
  _: 1
1025
1036
  }, 8, ["colNames", "head", "body", "config", "title"]))
1026
1037
  ]),
1027
1038
  _: 1
1028
1039
  }, 8, ["config"])) : x("", !0),
1029
- r(ue) ? (p(), Q(ul, { key: 8 })) : x("", !0)
1030
- ], 46, ml));
1040
+ r(ue) ? (v(), j(il, { key: 9 })) : x("", !0)
1041
+ ], 46, bl));
1031
1042
  }
1032
- }, Yl = /* @__PURE__ */ rl(Pl, [["__scopeId", "data-v-3b96c525"]]);
1043
+ }, Jl = /* @__PURE__ */ cl(Vl, [["__scopeId", "data-v-adb108e4"]]);
1033
1044
  export {
1034
- Yl as default
1045
+ Jl as default
1035
1046
  };