vue-data-ui 3.17.5 → 3.17.7

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 (124) hide show
  1. package/dist/{PackageVersion-BjeuEImy.js → PackageVersion-D7UsxIU3.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-bump.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-cursor.js +1 -1
  12. package/dist/components/vue-ui-dag.js +1 -1
  13. package/dist/components/vue-ui-dashboard.js +1 -1
  14. package/dist/components/vue-ui-digits.js +1 -1
  15. package/dist/components/vue-ui-donut-evolution.js +1 -1
  16. package/dist/components/vue-ui-donut.js +1 -1
  17. package/dist/components/vue-ui-dumbbell.js +1 -1
  18. package/dist/components/vue-ui-flow.js +1 -1
  19. package/dist/components/vue-ui-funnel.js +1 -1
  20. package/dist/components/vue-ui-galaxy.js +1 -1
  21. package/dist/components/vue-ui-gauge.js +1 -1
  22. package/dist/components/vue-ui-geo.js +1 -1
  23. package/dist/components/vue-ui-gizmo.js +1 -1
  24. package/dist/components/vue-ui-heatmap.js +1 -1
  25. package/dist/components/vue-ui-history-plot.js +1 -1
  26. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  27. package/dist/components/vue-ui-kpi.js +1 -1
  28. package/dist/components/vue-ui-molecule.js +1 -1
  29. package/dist/components/vue-ui-mood-radar.js +1 -1
  30. package/dist/components/vue-ui-nested-donuts.js +1 -1
  31. package/dist/components/vue-ui-onion.js +1 -1
  32. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  33. package/dist/components/vue-ui-quadrant.js +1 -1
  34. package/dist/components/vue-ui-quick-chart.js +1 -1
  35. package/dist/components/vue-ui-radar.js +1 -1
  36. package/dist/components/vue-ui-relation-circle.js +1 -1
  37. package/dist/components/vue-ui-ridgeline.js +1 -1
  38. package/dist/components/vue-ui-rings.js +1 -1
  39. package/dist/components/vue-ui-scatter.js +1 -1
  40. package/dist/components/vue-ui-skeleton.js +1 -1
  41. package/dist/components/vue-ui-spark-trend.js +1 -1
  42. package/dist/components/vue-ui-sparkbar.js +1 -1
  43. package/dist/components/vue-ui-sparkgauge.js +1 -1
  44. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  45. package/dist/components/vue-ui-sparkline.js +1 -1
  46. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  47. package/dist/components/vue-ui-stackbar.js +1 -1
  48. package/dist/components/vue-ui-stackline.js +1 -1
  49. package/dist/components/vue-ui-strip-plot.js +1 -1
  50. package/dist/components/vue-ui-table-sparkline.js +1 -1
  51. package/dist/components/vue-ui-table.js +1 -1
  52. package/dist/components/vue-ui-thermometer.js +1 -1
  53. package/dist/components/vue-ui-timer.js +1 -1
  54. package/dist/components/vue-ui-tiremarks.js +1 -1
  55. package/dist/components/vue-ui-treemap.js +1 -1
  56. package/dist/components/vue-ui-vertical-bar.js +1 -1
  57. package/dist/components/vue-ui-waffle.js +1 -1
  58. package/dist/components/vue-ui-wheel.js +1 -1
  59. package/dist/components/vue-ui-word-cloud.js +1 -1
  60. package/dist/components/vue-ui-world.js +1 -1
  61. package/dist/components/vue-ui-xy.js +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/{vue-data-ui-sUtQffE5.js → vue-data-ui-Du_qkQyu.js} +60 -60
  64. package/dist/vue-data-ui.js +60 -60
  65. package/dist/{vue-ui-3d-bar-D9T1Rz8K.js → vue-ui-3d-bar-gIc1g60K.js} +1 -1
  66. package/dist/{vue-ui-age-pyramid-vHYpqVeE.js → vue-ui-age-pyramid-CRxbfWdY.js} +1 -1
  67. package/dist/{vue-ui-bullet-B-PfDV7g.js → vue-ui-bullet-BlEOUwNr.js} +1 -1
  68. package/dist/{vue-ui-bump-CpQyyxzJ.js → vue-ui-bump-Bs3e3KcI.js} +1 -1
  69. package/dist/{vue-ui-candlestick-B5wVhTFS.js → vue-ui-candlestick-BEGQhq-W.js} +1 -1
  70. package/dist/{vue-ui-carousel-table-BwrTmEUk.js → vue-ui-carousel-table-CuOUIIbO.js} +1 -1
  71. package/dist/{vue-ui-chestnut-DpwRmult.js → vue-ui-chestnut-1gHrx1-s.js} +1 -1
  72. package/dist/{vue-ui-chord-Co8hJS-b.js → vue-ui-chord-DOPm4RmH.js} +1 -1
  73. package/dist/{vue-ui-circle-pack-CF6Dgnfc.js → vue-ui-circle-pack-CI76sYNB.js} +1 -1
  74. package/dist/{vue-ui-cursor-DH_wY_tf.js → vue-ui-cursor-CGn-QDX9.js} +1 -1
  75. package/dist/{vue-ui-dag-DNbCfrdq.js → vue-ui-dag-LAYMq6km.js} +1 -1
  76. package/dist/{vue-ui-dashboard-BCpIGFXu.js → vue-ui-dashboard-CPQxEo42.js} +57 -57
  77. package/dist/{vue-ui-digits-D6ndc1-Y.js → vue-ui-digits-5t8TjeeS.js} +1 -1
  78. package/dist/{vue-ui-donut-CHDVQ77G.js → vue-ui-donut-BvopByst.js} +1 -1
  79. package/dist/{vue-ui-donut-evolution-BHGQCixS.js → vue-ui-donut-evolution-BGXBWuKg.js} +2 -2
  80. package/dist/{vue-ui-dumbbell-Bmr188oI.js → vue-ui-dumbbell-C5f56KQI.js} +1 -1
  81. package/dist/{vue-ui-flow-Bk4XhCzv.js → vue-ui-flow-BXaXVXas.js} +1 -1
  82. package/dist/{vue-ui-funnel-BrNSApwi.js → vue-ui-funnel-CsU05oj2.js} +2 -2
  83. package/dist/{vue-ui-galaxy-Q5iomgg7.js → vue-ui-galaxy-hjPGRUCf.js} +1 -1
  84. package/dist/{vue-ui-gauge-BaWqd5eR.js → vue-ui-gauge-CTqZJDCY.js} +1 -1
  85. package/dist/{vue-ui-geo-BvySgBl9.js → vue-ui-geo-BbIgbqV-.js} +1 -1
  86. package/dist/{vue-ui-gizmo-B9wHNMWI.js → vue-ui-gizmo-WFwz6fj6.js} +1 -1
  87. package/dist/{vue-ui-heatmap-CHmJrc5H.js → vue-ui-heatmap-DzrHrimV.js} +1 -1
  88. package/dist/{vue-ui-history-plot-DlDV_-XR.js → vue-ui-history-plot-DXQnRjJM.js} +1 -1
  89. package/dist/{vue-ui-horizontal-bar-DDj9N2Df.js → vue-ui-horizontal-bar-DG9_Wql8.js} +1 -1
  90. package/dist/{vue-ui-kpi-CT4lahy2.js → vue-ui-kpi-D-WCJhyF.js} +1 -1
  91. package/dist/{vue-ui-molecule-BiixieE_.js → vue-ui-molecule-DbXKNiG4.js} +1 -1
  92. package/dist/{vue-ui-mood-radar-DPBpYEDx.js → vue-ui-mood-radar-BQPBN4mA.js} +1 -1
  93. package/dist/{vue-ui-nested-donuts-DegYxm8S.js → vue-ui-nested-donuts-Csuw3C58.js} +1 -1
  94. package/dist/{vue-ui-onion-D4hRf3z7.js → vue-ui-onion-CDA_eWqE.js} +1 -1
  95. package/dist/{vue-ui-parallel-coordinate-plot-DZ015lrs.js → vue-ui-parallel-coordinate-plot-CjPfE5uv.js} +1 -1
  96. package/dist/{vue-ui-quadrant-BG8B3jz-.js → vue-ui-quadrant-BP91bgJ2.js} +1 -1
  97. package/dist/{vue-ui-quick-chart-BzNfX1Ry.js → vue-ui-quick-chart-BECkCQV0.js} +1 -1
  98. package/dist/{vue-ui-radar-Bjl5EavN.js → vue-ui-radar-CEjKIwz2.js} +2 -2
  99. package/dist/{vue-ui-relation-circle-CK6hnanW.js → vue-ui-relation-circle-Ds9sdr-h.js} +1 -1
  100. package/dist/{vue-ui-ridgeline-ClC-DGEI.js → vue-ui-ridgeline-CaNrSWz1.js} +2 -2
  101. package/dist/{vue-ui-rings-BtDpfeuS.js → vue-ui-rings-LRiAx82U.js} +1 -1
  102. package/dist/{vue-ui-scatter-CnUnzVb4.js → vue-ui-scatter-jY8YHHIr.js} +1 -1
  103. package/dist/{vue-ui-skeleton-CWW9zQ2I.js → vue-ui-skeleton-DFCkA9d2.js} +1 -1
  104. package/dist/{vue-ui-spark-trend-DMTsPJrB.js → vue-ui-spark-trend-DV6s8MY4.js} +1 -1
  105. package/dist/{vue-ui-sparkbar-CNRgbyb6.js → vue-ui-sparkbar-6832jVNI.js} +1 -1
  106. package/dist/{vue-ui-sparkgauge-DXOELREA.js → vue-ui-sparkgauge-DkhMo6EH.js} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-B83Tb5ee.js → vue-ui-sparkhistogram-DM2rWusY.js} +1 -1
  108. package/dist/{vue-ui-sparkline-PLYMeA9O.js → vue-ui-sparkline-xqwvE5D3.js} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-C-UNOmDZ.js → vue-ui-sparkstackbar-DFQ5Cb2h.js} +1 -1
  110. package/dist/{vue-ui-stackbar-CcVtuQTN.js → vue-ui-stackbar-OUgzqXk4.js} +1 -1
  111. package/dist/{vue-ui-stackline-C6c2nPQM.js → vue-ui-stackline-BCXq29Jo.js} +1 -1
  112. package/dist/{vue-ui-strip-plot-iwjHwBgZ.js → vue-ui-strip-plot-BgztfGLm.js} +1 -1
  113. package/dist/{vue-ui-table-CfhBUYL5.js → vue-ui-table-B0AtIA3B.js} +2 -2
  114. package/dist/{vue-ui-table-sparkline-BZb8f2RN.js → vue-ui-table-sparkline-B1N0kuUe.js} +1 -1
  115. package/dist/{vue-ui-thermometer-CR4tSQWQ.js → vue-ui-thermometer-7FNwmAOQ.js} +1 -1
  116. package/dist/{vue-ui-timer-DubcPvRK.js → vue-ui-timer-CMrWGqdt.js} +1 -1
  117. package/dist/{vue-ui-tiremarks-CFnJT7Pn.js → vue-ui-tiremarks-Co1Z7Sqt.js} +1 -1
  118. package/dist/{vue-ui-treemap--bugssUn.js → vue-ui-treemap-CoAbOv9j.js} +423 -413
  119. package/dist/{vue-ui-waffle-K9ojC2iZ.js → vue-ui-waffle-DvDucxEW.js} +1 -1
  120. package/dist/{vue-ui-wheel-TgOkrNNt.js → vue-ui-wheel-ntU5t4mw.js} +1 -1
  121. package/dist/{vue-ui-word-cloud-B77SnVWg.js → vue-ui-word-cloud-Boqcvs5-.js} +1 -1
  122. package/dist/{vue-ui-world-Y0yBodxT.js → vue-ui-world-CSEx_65t.js} +1 -1
  123. package/dist/{vue-ui-xy-Cs4_NqXo.js → vue-ui-xy-CVbiS4kX.js} +4 -4
  124. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as be, useSlots as rl, onMounted as ao, computed as w, ref as g, shallowRef as se, toRefs as ul, watch as Ce, onBeforeUnmount as il, openBlock as c, createElementBlock as A, unref as y, normalizeStyle as he, normalizeClass as bt, createElementVNode as R, toDisplayString as Ne, createBlock as Q, createCommentVNode as F, withCtx as T, renderSlot as m, normalizeProps as B, guardReactiveProps as H, createSlots as no, Fragment as xe, renderList as Re, withKeys as so, withModifiers as Ct, mergeProps as wt, createVNode as Ye, createTextVNode as Ze, Teleport as cl, resolveDynamicComponent as dl, nextTick as ro } from "vue";
2
- import { j as je, t as uo, m as vl, p as z, n as hl, ag as io, o as co, q as fl, s as fe, k as kt, l as Ke, X as pl, x as vo, W as ho, T as fo, a0 as gl, a1 as yl, U as ml, az as bl } from "./lib-DMzrGQHK.js";
1
+ import { defineAsyncComponent as be, useSlots as rl, onMounted as ao, computed as $, ref as g, shallowRef as se, toRefs as ul, watch as Ce, onBeforeUnmount as il, openBlock as c, createElementBlock as A, unref as m, normalizeStyle as he, normalizeClass as Ct, createElementVNode as N, toDisplayString as Ne, createBlock as Q, createCommentVNode as _, withCtx as T, renderSlot as b, normalizeProps as D, guardReactiveProps as B, createSlots as no, Fragment as xe, renderList as Re, withKeys as so, withModifiers as wt, mergeProps as kt, createVNode as Ze, createTextVNode as je, Teleport as cl, resolveDynamicComponent as dl, nextTick as ro } from "vue";
2
+ import { j as Ke, t as uo, m as vl, p as R, n as hl, ag as io, o as co, q as fl, s as fe, k as qe, l as ze, X as pl, x as vo, W as ho, T as fo, a0 as gl, a1 as yl, U as ml, az as bl } from "./lib-DMzrGQHK.js";
3
3
  import { t as Cl, u as wl } from "./useResponsive-DfdjqQps.js";
4
4
  import { u as kl } from "./useConfig-DTHxOX6V.js";
5
5
  import { u as $l, B as Tl } from "./BaseScanner-C2j3TsSY.js";
@@ -24,14 +24,14 @@ function go(u, h) {
24
24
  `Max aspect ratio cannot be computed: ${u} is an empty array`
25
25
  );
26
26
  {
27
- let f = 1 / 0, v = -1 / 0, b = 0;
28
- for (let M = 0; M < d; M += 1) {
29
- const x = u[M].normalizedValue;
30
- x < f && (f = x), x > v && (v = x), b += x;
27
+ let f = 1 / 0, v = -1 / 0, C = 0;
28
+ for (let S = 0; S < d; S += 1) {
29
+ const x = u[S].normalizedValue;
30
+ x < f && (f = x), x > v && (v = x), C += x;
31
31
  }
32
32
  return Math.max(
33
- h ** 2 * v / b ** 2,
34
- b ** 2 / (h ** 2 * f)
33
+ h ** 2 * v / C ** 2,
34
+ C ** 2 / (h ** 2 * f)
35
35
  );
36
36
  }
37
37
  }
@@ -48,15 +48,15 @@ function zl(u, h, d) {
48
48
  if (u.length === 0)
49
49
  return !0;
50
50
  {
51
- const f = u.concat(h), v = go(u, d), b = go(f, d);
52
- return v >= b;
51
+ const f = u.concat(h), v = go(u, d), C = go(f, d);
52
+ return v >= C;
53
53
  }
54
54
  }
55
55
  function Dl(u) {
56
56
  const h = [], d = u.length;
57
57
  for (let f = 0; f < d; f += 1) {
58
- const v = u[f], b = v.length;
59
- for (let p = 0; p < b; p += 1)
58
+ const v = u[f], C = v.length;
59
+ for (let p = 0; p < C; p += 1)
60
60
  h.push(v[p]);
61
61
  }
62
62
  return h;
@@ -68,49 +68,49 @@ function Bl(u, h) {
68
68
  };
69
69
  return bo(d);
70
70
  }
71
- function Hl(u) {
71
+ function Vl(u) {
72
72
  return (u.x1 - u.x0) * (u.y1 - u.y0);
73
73
  }
74
74
  function mo(u, h) {
75
- const { width: d, height: f, xOffset: v, yOffset: b } = Tt(h), p = u.length, M = u.map((C) => C.normalizedValue || 0).reduce((C, D) => C + D, 0), x = M / f, re = M / d;
76
- let j = v, ee = b;
75
+ const { width: d, height: f, xOffset: v, yOffset: C } = Tt(h), p = u.length, S = u.map((w) => w.normalizedValue || 0).reduce((w, z) => w + z, 0), x = S / f, re = S / d;
76
+ let j = v, ee = C;
77
77
  const U = [];
78
78
  if (d >= f) {
79
- for (let C = 0; C < p; C += 1) {
80
- const D = u[C], te = ee + D.normalizedValue / x, ue = {
79
+ for (let w = 0; w < p; w += 1) {
80
+ const z = u[w], te = ee + z.normalizedValue / x, ue = {
81
81
  x0: j,
82
82
  y0: ee,
83
83
  x1: j + x,
84
84
  y1: te
85
- }, oe = Object.assign({}, D, ue);
85
+ }, oe = Object.assign({}, z, ue);
86
86
  ee = te, U.push(oe);
87
87
  }
88
88
  return U;
89
89
  } else {
90
- for (let C = 0; C < p; C += 1) {
91
- const D = u[C], te = j + D.normalizedValue / re, ue = {
90
+ for (let w = 0; w < p; w += 1) {
91
+ const z = u[w], te = j + z.normalizedValue / re, ue = {
92
92
  x0: j,
93
93
  y0: ee,
94
94
  x1: te,
95
95
  y1: ee + re
96
- }, oe = Object.assign({}, D, ue);
96
+ }, oe = Object.assign({}, z, ue);
97
97
  j = te, U.push(oe);
98
98
  }
99
99
  return U;
100
100
  }
101
101
  }
102
- function Vl(u) {
102
+ function Hl(u) {
103
103
  const h = Tt(u), d = h.width, f = h.height;
104
104
  return Math.min(d, f);
105
105
  }
106
106
  function El(u, h) {
107
- const d = u.length, f = u.map((x) => x.value ?? 0).reduce((x, re) => x + re, 0), v = h / f, b = [];
108
- let p, M;
107
+ const d = u.length, f = u.map((x) => x.value ?? 0).reduce((x, re) => x + re, 0), v = h / f, C = [];
108
+ let p, S;
109
109
  for (let x = 0; x < d; x += 1)
110
- M = u[x], p = Object.assign({}, M, {
111
- normalizedValue: M.value * (v || 0)
112
- }), b.push(p);
113
- return b;
110
+ S = u[x], p = Object.assign({}, S, {
111
+ normalizedValue: S.value * (v || 0)
112
+ }), C.push(p);
113
+ return C;
114
114
  }
115
115
  function Tt(u) {
116
116
  const { x0: h, y0: d, x1: f, y1: v } = u;
@@ -122,24 +122,24 @@ function Tt(u) {
122
122
  };
123
123
  }
124
124
  function Ul(u, h, d, f) {
125
- let v = u, b = h, p = d, M = f;
125
+ let v = u, C = h, p = d, S = f;
126
126
  for (; ; ) {
127
127
  const x = v.length;
128
128
  if (x === 0) {
129
- const U = mo(b, p);
130
- return M.concat(U);
129
+ const U = mo(C, p);
130
+ return S.concat(U);
131
131
  }
132
- const re = Vl(p), j = v[0], ee = v.slice(1, x);
133
- if (zl(b, j, re)) {
134
- const U = b.concat(j);
135
- v = ee, b = U, p = p, M = M;
132
+ const re = Hl(p), j = v[0], ee = v.slice(1, x);
133
+ if (zl(C, j, re)) {
134
+ const U = C.concat(j);
135
+ v = ee, C = U, p = p, S = S;
136
136
  } else {
137
- const U = b.length;
138
- let C = 0;
137
+ const U = C.length;
138
+ let w = 0;
139
139
  for (let oe = 0; oe < U; oe += 1)
140
- C += b[oe].normalizedValue;
141
- const D = Wl(p, C), te = mo(b, p), ue = M.concat(te);
142
- v = v, b = [], p = D, M = ue;
140
+ w += C[oe].normalizedValue;
141
+ const z = Wl(p, w), te = mo(C, p), ue = S.concat(te);
142
+ v = v, C = [], p = z, S = ue;
143
143
  }
144
144
  }
145
145
  }
@@ -147,28 +147,28 @@ function bo(u) {
147
147
  if (typeof u.children > "u" || !u.children.length)
148
148
  return [u];
149
149
  {
150
- const h = El(u.children, Hl(u)), d = Ul(h, [], u, []), f = d.length, v = [];
150
+ const h = El(u.children, Vl(u)), d = Ul(h, [], u, []), f = d.length, v = [];
151
151
  for (let p = 0; p < f; p += 1)
152
152
  v.push(bo(d[p]));
153
153
  return Dl(v);
154
154
  }
155
155
  }
156
156
  function Wl(u, h) {
157
- const { width: d, height: f, xOffset: v, yOffset: b } = Tt(u);
157
+ const { width: d, height: f, xOffset: v, yOffset: C } = Tt(u);
158
158
  if (d >= f) {
159
- const p = h / f, M = d - p, x = {
159
+ const p = h / f, S = d - p, x = {
160
160
  xOffset: v + p,
161
- yOffset: b,
162
- width: M,
161
+ yOffset: C,
162
+ width: S,
163
163
  height: f
164
164
  };
165
165
  return yo(x);
166
166
  } else {
167
- const p = h / d, M = f - p, x = {
167
+ const p = h / d, S = f - p, x = {
168
168
  xOffset: v,
169
- yOffset: b + p,
169
+ yOffset: C + p,
170
170
  width: d,
171
- height: M
171
+ height: S
172
172
  };
173
173
  return yo(x);
174
174
  }
@@ -213,21 +213,21 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
213
213
  setup(u, { expose: h, emit: d }) {
214
214
  const f = be(() => import("./DataTable-cMnb68Ik.js")), v = be(
215
215
  () => import("./PenAndPaper-CJDoB5H9.js")
216
- ), b = be(() => import("./vue-ui-accordion-BHmfmb_6.js")), p = be(() => import("./Tooltip-Cvt7Fi0Q.js")), M = be(
216
+ ), C = be(() => import("./vue-ui-accordion-BHmfmb_6.js")), p = be(() => import("./Tooltip-Cvt7Fi0Q.js")), S = be(
217
217
  () => import("./UserOptions-DVduN6X7.js")
218
218
  ), x = be(
219
- () => import("./PackageVersion-BjeuEImy.js")
219
+ () => import("./PackageVersion-D7UsxIU3.js")
220
220
  ), re = be(
221
221
  () => import("./BaseDraggableDialog-Di8Hlru3.js")
222
- ), { vue_ui_treemap: j } = kl(), { isThemeValid: ee, warnInvalidTheme: U } = Sl(), C = u, D = d, te = rl();
222
+ ), { vue_ui_treemap: j } = kl(), { isThemeValid: ee, warnInvalidTheme: U } = Sl(), w = u, z = d, te = rl();
223
223
  ao(() => {
224
224
  te["chart-background"] && console.warn(
225
225
  "VueUiTreemap does not support the #chart-background slot."
226
226
  );
227
227
  });
228
- const ue = w(() => !!C.dataset && C.dataset.length), oe = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), W = g(je()), Ae = g(!1), qe = g(""), pe = g(!1), xt = g(0), P = g([]), K = se(null), At = se(null), St = se(null), It = se(null), Mt = se(null), Ot = g(0), ze = g(0), De = g(0), V = g([]), Je = g(null), Pt = g(!1), Se = g(null), Qe = g(null), _t = g(null), et = g(/* @__PURE__ */ new Map()), Be = g(!1), He = g(!1), le = g(null), Lt = g({ x: 0, y: 0 }), Ie = g("pointer"), tt = g(!1), t = g(at()), ie = w(
228
+ const ue = $(() => !!w.dataset && w.dataset.length), oe = $(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), W = g(Ke()), Ae = g(!1), Je = g(""), pe = g(!1), xt = g(0), P = g([]), K = se(null), At = se(null), St = se(null), It = se(null), Mt = se(null), Ot = g(0), De = g(0), Be = g(0), V = g([]), Qe = g(null), Pt = g(!1), Se = g(null), et = g(null), _t = g(null), tt = g(/* @__PURE__ */ new Map()), Ve = g(!1), He = g(!1), le = g(null), Lt = g({ x: 0, y: 0 }), Ie = g("pointer"), ot = g(!1), t = g(nt()), ie = $(
229
229
  () => t.value.userOptions.useCursorPointer
230
- ), Co = w(() => uo({
230
+ ), Co = $(() => uo({
231
231
  defaultConfig: {
232
232
  userOptions: { show: !1 },
233
233
  style: {
@@ -248,11 +248,11 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
248
248
  }
249
249
  },
250
250
  userConfig: t.value.skeletonConfig ?? {}
251
- })), { loading: ge, FINAL_DATASET: ot, manualLoading: wo } = $l({
252
- ...ul(C),
251
+ })), { loading: ge, FINAL_DATASET: lt, manualLoading: wo } = $l({
252
+ ...ul(w),
253
253
  FINAL_CONFIG: t,
254
- prepareConfig: at,
255
- skeletonDataset: C.config?.skeletonDataset ?? [
254
+ prepareConfig: nt,
255
+ skeletonDataset: w.config?.skeletonDataset ?? [
256
256
  {
257
257
  name: "_",
258
258
  value: 53,
@@ -272,41 +272,41 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
272
272
  defaultConfig: t.value,
273
273
  userConfig: Co.value
274
274
  })
275
- }), { userOptionsVisible: lt, setUserOptionsVisibility: Ft, keepUserOptionState: Nt } = Il({ config: t.value }), { svgRef: ye } = Ml({
275
+ }), { userOptionsVisible: at, setUserOptionsVisibility: Ft, keepUserOptionState: Nt } = Il({ config: t.value }), { svgRef: ye } = Ml({
276
276
  config: t.value.style.chart.title
277
277
  });
278
- function at() {
278
+ function nt() {
279
279
  const e = $t({
280
- userConfig: C.config,
280
+ userConfig: w.config,
281
281
  defaultConfig: j
282
282
  }), l = e.theme;
283
283
  if (!l) return e;
284
284
  if (!ee.value(e))
285
285
  return U(e), e;
286
286
  const o = $t({
287
- userConfig: _l[l] || C.config,
287
+ userConfig: _l[l] || w.config,
288
288
  defaultConfig: e
289
289
  }), a = $t({
290
- userConfig: C.config,
290
+ userConfig: w.config,
291
291
  defaultConfig: o
292
292
  });
293
293
  return {
294
294
  ...a,
295
- customPalette: a.customPalette.length ? a.customPalette : vl[l] || z
295
+ customPalette: a.customPalette.length ? a.customPalette : vl[l] || R
296
296
  };
297
297
  }
298
298
  Ce(
299
- () => C.config,
299
+ () => w.config,
300
300
  (e) => {
301
- ge.value || (t.value = at()), lt.value = !t.value.userOptions.showOnChartHover, Ot.value += 1, ze.value += 1, De.value += 1, X.value.showTable = t.value.table.show, X.value.showTooltip = t.value.style.chart.tooltip.show;
301
+ ge.value || (t.value = nt()), at.value = !t.value.userOptions.showOnChartHover, Ot.value += 1, De.value += 1, Be.value += 1, X.value.showTable = t.value.table.show, X.value.showTooltip = t.value.style.chart.tooltip.show;
302
302
  },
303
303
  { deep: !0 }
304
304
  );
305
- const { isPrinting: nt, isImaging: st, generatePdf: Rt, generateImage: zt } = xl({
305
+ const { isPrinting: st, isImaging: rt, generatePdf: Rt, generateImage: zt } = xl({
306
306
  elementId: `treemap_${W.value}`,
307
307
  fileName: t.value.style.chart.title.text || "vue-ui-treemap",
308
308
  options: t.value.userOptions.print
309
- }), ko = w(() => t.value.userOptions.show && !t.value.style.chart.title.text), Me = w(() => hl(t.value.customPalette)), X = g({
309
+ }), ko = $(() => t.value.userOptions.show && !t.value.style.chart.title.text), Me = $(() => hl(t.value.customPalette)), X = g({
310
310
  showTable: t.value.table.show,
311
311
  showTooltip: t.value.style.chart.tooltip.show
312
312
  });
@@ -331,11 +331,11 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
331
331
  return e * (o / a.height);
332
332
  }
333
333
  function To() {
334
- if (!Je.value || ae.value.length <= 1) return 0;
335
- const e = Je.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
334
+ if (!Qe.value || ae.value.length <= 1) return 0;
335
+ const e = Qe.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
336
336
  return $o(o);
337
337
  }
338
- const G = w(() => {
338
+ const Y = $(() => {
339
339
  const e = t.value.style.chart.padding, l = me.value.width, o = me.value.height, a = To(), n = e.left, s = l - e.right, r = e.top, k = o - e.bottom - a;
340
340
  return {
341
341
  left: n,
@@ -348,46 +348,46 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
348
348
  vbHeight: o - a,
349
349
  offsetY: a
350
350
  };
351
- }), E = g(io(ot.value)), q = g(E.value), rt = se(/* @__PURE__ */ new Map());
351
+ }), E = g(io(lt.value)), q = g(E.value), ut = se(/* @__PURE__ */ new Map());
352
352
  Ce(
353
353
  [E, () => t.value],
354
354
  () => {
355
- _t.value = null, et.value = /* @__PURE__ */ new Map();
355
+ _t.value = null, tt.value = /* @__PURE__ */ new Map();
356
356
  },
357
357
  { deep: !0 }
358
358
  ), Ce(
359
359
  () => P.value,
360
360
  () => {
361
- _t.value = null, et.value = /* @__PURE__ */ new Map(), Ht(), De.value += 1, ze.value += 1;
361
+ _t.value = null, tt.value = /* @__PURE__ */ new Map(), Vt(), Be.value += 1, De.value += 1;
362
362
  },
363
363
  { deep: !0 }
364
364
  ), Ce(
365
365
  [() => me.value.width, () => me.value.height],
366
366
  () => {
367
- et.value = /* @__PURE__ */ new Map();
367
+ tt.value = /* @__PURE__ */ new Map();
368
368
  }
369
369
  );
370
370
  function Dt(e) {
371
371
  Array.isArray(e) && e.forEach((l, o) => {
372
- l.id || (l.id = je()), l.sourceColor === void 0 && (l.sourceColor = fe(l.color) || null);
373
- let a = l.sourceColor || rt.value.get(l.id) || Me.value[o] || z[o] || z[o % z.length];
374
- a = fe(a), rt.value.set(l.id, a), l.color = a, Bt(l, a);
372
+ l.id || (l.id = Ke()), l.sourceColor === void 0 && (l.sourceColor = fe(l.color) || null);
373
+ let a = l.sourceColor || ut.value.get(l.id) || Me.value[o] || R[o] || R[o % R.length];
374
+ a = fe(a), ut.value.set(l.id, a), l.color = a, Bt(l, a);
375
375
  });
376
376
  }
377
377
  function Bt(e, l) {
378
378
  Array.isArray(e.children) && e.children.forEach((o) => {
379
- o.id || (o.id = je()), o.parentId = e.id, o.sourceColor === void 0 && (o.sourceColor = fe(o.color) || null);
379
+ o.id || (o.id = Ke()), o.parentId = e.id, o.sourceColor === void 0 && (o.sourceColor = fe(o.color) || null);
380
380
  const a = o.sourceColor || l;
381
381
  o.color = a, Bt(o, a);
382
382
  });
383
383
  }
384
384
  function xo(e) {
385
- let l = Y(e);
385
+ let l = Z(e);
386
386
  for (; l?.parentId; )
387
- l = Y(l.parentId);
387
+ l = Z(l.parentId);
388
388
  return l?.id ?? null;
389
389
  }
390
- function Ht() {
390
+ function Vt() {
391
391
  const e = E.value.filter(
392
392
  (n) => !P.value.includes(n.id)
393
393
  );
@@ -395,7 +395,7 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
395
395
  q.value = e;
396
396
  return;
397
397
  }
398
- const l = V.value[V.value.length - 1], o = Y(l);
398
+ const l = V.value[V.value.length - 1], o = Z(l);
399
399
  if (!o) {
400
400
  V.value = [], q.value = e;
401
401
  return;
@@ -408,9 +408,9 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
408
408
  q.value = [o];
409
409
  }
410
410
  Ce(
411
- () => ot.value,
411
+ () => lt.value,
412
412
  () => {
413
- E.value = io(ot.value), Dt(E.value), Ht(), De.value += 1, ze.value += 1;
413
+ E.value = io(lt.value), Dt(E.value), Vt(), Be.value += 1, De.value += 1;
414
414
  },
415
415
  { deep: !0, immediate: !0, flush: "post" }
416
416
  );
@@ -418,13 +418,13 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
418
418
  ao(() => {
419
419
  Pt.value = !0, So();
420
420
  });
421
- const Ao = w(() => t.value.debug);
421
+ const Ao = $(() => t.value.debug);
422
422
  function So() {
423
- if (co(C.dataset) && fl({
423
+ if (co(w.dataset) && fl({
424
424
  componentName: "VueUiTreemap",
425
425
  type: "dataset",
426
426
  debug: Ao.value
427
- }), Dt(E.value), co(C.dataset) || (wo.value = t.value.loading), t.value.responsive) {
427
+ }), Dt(E.value), co(w.dataset) || (wo.value = t.value.loading), t.value.responsive) {
428
428
  const e = Cl(() => {
429
429
  const { width: l, height: o } = wl({
430
430
  chart: K.value,
@@ -443,12 +443,12 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
443
443
  il(() => {
444
444
  ce.value && (we.value && ce.value.unobserve(we.value), ce.value.disconnect());
445
445
  });
446
- const Oe = w(() => q.value.map((e, l) => ({
446
+ const Oe = $(() => q.value.map((e, l) => ({
447
447
  ...e,
448
- color: fe(e.color) || Me.value[l] || z[l] || z[l % z.length]
449
- })).filter((e) => !P.value.includes(e.id))), ke = w(
448
+ color: fe(e.color) || Me.value[l] || R[l] || R[l % R.length]
449
+ })).filter((e) => !P.value.includes(e.id))), ke = $(
450
450
  () => E.value.filter((e) => !P.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)
451
- ), Vt = w({
451
+ ), Ht = $({
452
452
  get() {
453
453
  let e = [...Oe.value];
454
454
  return t.value.style.chart.layout.sorted && (e = [...Oe.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
@@ -480,84 +480,84 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
480
480
  }
481
481
  function Xt(e, l, o, a, n) {
482
482
  return Io(e).map((r, k) => {
483
- const S = r.sourceColor || fe(r.color) || fe(l) || Me.value[k] || z[k] || z[k % z.length], i = r.sourceColor ? r.sourceColor : Ut(S, r, a), $ = Et(r, a), I = n ?? r.parentId ?? r.id, _ = Array.isArray(r.children) && r.children.length && r.children.reduce(
484
- (Z, L) => Z + (Number(L.value) || 0),
483
+ const I = r.sourceColor || fe(r.color) || fe(l) || Me.value[k] || R[k] || R[k % R.length], i = r.sourceColor ? r.sourceColor : Ut(I, r, a), y = Et(r, a), M = n ?? r.parentId ?? r.id, L = Array.isArray(r.children) && r.children.length && r.children.reduce(
484
+ (H, G) => H + (Number(G.value) || 0),
485
485
  0
486
486
  ) || 1;
487
487
  return {
488
488
  ...r,
489
489
  color: i,
490
- proportion: $,
490
+ proportion: y,
491
491
  parentName: o,
492
- rootId: I,
492
+ rootId: M,
493
493
  children: Array.isArray(r.children) && r.children.length ? Xt(
494
494
  r.children,
495
- S,
495
+ I,
496
496
  r.name,
497
- _,
498
- I
497
+ L,
498
+ M
499
499
  ) : void 0
500
500
  };
501
501
  });
502
502
  }
503
503
  function Mo(e) {
504
- const l = it(e), o = ut(e), a = l * 0.55, n = l * 0.55, s = l * 1.05, r = l * 1.05, k = l * 0.35, S = o ? s + r + k : l * 0.45, i = e.x0 + a, $ = e.x1 - a, I = e.y0 + S, _ = e.y1 - n;
505
- return $ <= i || _ <= I ? null : { x0: i, y0: I, x1: $, y1: _ };
504
+ const l = ct(e), o = it(e), a = l * 0.55, n = l * 0.55, s = l * 1.05, r = l * 1.05, k = l * 0.35, I = o ? s + r + k : l * 0.45, i = e.x0 + a, y = e.x1 - a, M = e.y0 + I, L = e.y1 - n;
505
+ return y <= i || L <= M ? null : { x0: i, y0: M, x1: y, y1: L };
506
506
  }
507
- function ut(e) {
508
- const { height: l, lineHeight: o, width: a } = Ge(e);
507
+ function it(e) {
508
+ const { height: l, lineHeight: o, width: a } = Ye(e);
509
509
  return l >= o && a > 6;
510
510
  }
511
511
  function Gt(e, l, o = 0, a = null) {
512
512
  if (!Array.isArray(e) || !e.length) return [];
513
513
  const n = e.map((i) => {
514
- const { children: $, ...I } = i;
514
+ const { children: y, ...M } = i;
515
515
  return {
516
- ...I
516
+ ...M
517
517
  };
518
518
  }), s = new Map(
519
519
  e.map((i) => [
520
520
  i.id,
521
521
  Array.isArray(i.children) ? i.children : []
522
522
  ])
523
- ), r = new Map(e.map((i) => [i.id, i])), k = Bl(n, l), S = [];
523
+ ), r = new Map(e.map((i) => [i.id, i])), k = Bl(n, l), I = [];
524
524
  for (const i of k) {
525
- const $ = s.get(i.id) || [], I = r.get(i.id), _ = {
525
+ const y = s.get(i.id) || [], M = r.get(i.id), L = {
526
526
  ...i,
527
527
  depth: o,
528
528
  parentId: a ?? i.parentId ?? null,
529
- color: I?.color ?? i.color ?? null,
530
- children: $,
529
+ color: M?.color ?? i.color ?? null,
530
+ children: y,
531
531
  isVisibleNode: !0,
532
- showLabel: ut(i)
532
+ showLabel: it(i)
533
533
  };
534
- if (S.push(_), $.length) {
535
- const Z = Mo(_);
536
- Z && S.push(
534
+ if (I.push(L), y.length) {
535
+ const H = Mo(L);
536
+ H && I.push(
537
537
  ...Gt(
538
- $,
539
- Z,
538
+ y,
539
+ H,
540
540
  o + 1,
541
541
  i.id
542
542
  )
543
543
  );
544
544
  }
545
545
  }
546
- return S;
546
+ return I;
547
547
  }
548
- const Oo = w(() => {
549
- const e = q.value.length ? q.value : Vt.value, l = e.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, o = e.map((n, s) => {
548
+ const Oo = $(() => {
549
+ const e = q.value.length ? q.value : Ht.value, l = e.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, o = e.map((n, s) => {
550
550
  const r = n.children ? n.children.reduce(
551
- (I, _) => I + (Number(_.value) || 0),
551
+ (M, L) => M + (Number(L.value) || 0),
552
552
  0
553
- ) : n.value, { children: k, ...S } = n, i = n.sourceColor || fe(n.color) || rt.value.get(n.id) || Me.value[s] || z[s] || z[s % z.length], $ = n.sourceColor ? n.sourceColor : Ut(i, n, l);
553
+ ) : n.value, { children: k, ...I } = n, i = n.sourceColor || fe(n.color) || ut.value.get(n.id) || Me.value[s] || R[s] || R[s % R.length], y = n.sourceColor ? n.sourceColor : Ut(i, n, l);
554
554
  return {
555
- ...S,
556
- id: n.id || je(),
555
+ ...I,
556
+ id: n.id || Ke(),
557
557
  parentId: n.parentId ?? null,
558
558
  name: n.name,
559
559
  value: n.value,
560
- color: $,
560
+ color: y,
561
561
  proportion: (Number(n.value) || 0) / l,
562
562
  children: Array.isArray(n.children) && n.children.length ? Xt(
563
563
  n.children,
@@ -567,49 +567,49 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
567
567
  ) : void 0
568
568
  };
569
569
  }), a = {
570
- x0: G.value.left,
571
- y0: G.value.top,
572
- x1: G.value.left + G.value.width,
573
- y1: G.value.top + G.value.height
570
+ x0: Y.value.left,
571
+ y0: Y.value.top,
572
+ x1: Y.value.left + Y.value.width,
573
+ y1: Y.value.top + Y.value.height
574
574
  };
575
575
  return Gt(o, a);
576
- }), O = w(() => Oo.value);
576
+ }), O = $(() => Oo.value);
577
577
  function de({ y0: e, y1: l }) {
578
578
  return l - e <= 0 ? 1e-4 : l - e;
579
579
  }
580
580
  function ve({ x0: e, x1: l }) {
581
581
  return l - e <= 0 ? 1e-4 : l - e;
582
582
  }
583
- function it(e) {
584
- const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, r = 0.6, k = 1, S = 0.9;
583
+ function ct(e) {
584
+ const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, r = 0.6, k = 1, I = 0.9;
585
585
  let i = e.proportion;
586
586
  if (!(typeof i == "number" && isFinite(i))) {
587
- const nl = Math.max(1e-6, ve(e) * de(e)), sl = Math.max(1e-6, G.value.width * G.value.height);
587
+ const nl = Math.max(1e-6, ve(e) * de(e)), sl = Math.max(1e-6, Y.value.width * Y.value.height);
588
588
  i = nl / sl;
589
589
  }
590
- const $ = Math.pow(
590
+ const y = Math.pow(
591
591
  Math.min(1, Math.max(0, i)),
592
592
  s
593
- ), I = r + (k - r) * $, _ = Math.max(0, Number(e.depth) || 0), Z = Math.pow(0.9, _);
594
- let L = o * I * Z;
595
- const mt = Math.max(1e-4, Math.min(ve(e), de(e)));
596
- return L = Math.min(L, mt * S), L = Math.min(L, n), L = Math.max(a, L), L;
593
+ ), M = r + (k - r) * y, L = Math.max(0, Number(e.depth) || 0), H = Math.pow(0.9, L);
594
+ let G = o * M * H;
595
+ const bt = Math.max(1e-4, Math.min(ve(e), de(e)));
596
+ return G = Math.min(G, bt * I), G = Math.min(G, n), G = Math.max(a, G), G;
597
597
  }
598
598
  function Yt(e) {
599
599
  pe.value = e, xt.value += 1;
600
600
  }
601
- const J = w(() => ({
601
+ const J = $(() => ({
602
602
  startX: 0,
603
603
  startY: 0,
604
- width: G.value.vbWidth,
605
- height: G.value.vbHeight
604
+ width: Y.value.vbWidth,
605
+ height: Y.value.vbHeight
606
606
  }));
607
- function Y(e, l = E.value) {
607
+ function Z(e, l = E.value) {
608
608
  for (const o of l) {
609
609
  if (o.id === e)
610
610
  return o;
611
611
  if (o.children) {
612
- const a = Y(e, o.children);
612
+ const a = Z(e, o.children);
613
613
  if (a)
614
614
  return a;
615
615
  }
@@ -618,74 +618,74 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
618
618
  }
619
619
  function Zt(e) {
620
620
  const l = [];
621
- let o = Y(e);
621
+ let o = Z(e);
622
622
  for (; o && o.parentId; ) {
623
- const a = Y(o.parentId);
623
+ const a = Z(o.parentId);
624
624
  if (!a) break;
625
625
  l.unshift(a.id), o = a;
626
626
  }
627
627
  return l;
628
628
  }
629
- const Pe = w(() => V.value.length > 0);
630
- function Ve() {
631
- q.value = E.value.slice(), V.value = [], D("selectDatapoint", void 0);
629
+ const Pe = $(() => V.value.length > 0);
630
+ function Ee() {
631
+ q.value = E.value.slice(), V.value = [], z("selectDatapoint", void 0);
632
632
  }
633
- function ct() {
633
+ function dt() {
634
634
  return V.value[V.value.length - 1] ?? null;
635
635
  }
636
636
  function Po(e, l, o) {
637
637
  V.value = [...Zt(e.id), e.id], q.value = [e], t.value.events.datapointClick && t.value.events.datapointClick({
638
638
  datapoint: l ?? e,
639
639
  seriesIndex: o
640
- }), D("selectDatapoint", l ?? e);
640
+ }), z("selectDatapoint", l ?? e);
641
641
  }
642
642
  function _o(e, l) {
643
- const o = ct();
643
+ const o = dt();
644
644
  if (!o) {
645
- Ve();
645
+ Ee();
646
646
  return;
647
647
  }
648
- const a = Y(o);
648
+ const a = Z(o);
649
649
  if (!a?.parentId) {
650
650
  t.value.events.datapointClick && t.value.events.datapointClick({
651
651
  datapoint: e,
652
652
  seriesIndex: l
653
- }), Ve();
653
+ }), Ee();
654
654
  return;
655
655
  }
656
- const n = Y(a.parentId);
656
+ const n = Z(a.parentId);
657
657
  if (!n) {
658
- Ve();
658
+ Ee();
659
659
  return;
660
660
  }
661
661
  V.value = [...Zt(n.id), n.id], q.value = [n], t.value.events.datapointClick && t.value.events.datapointClick({
662
662
  datapoint: e,
663
663
  seriesIndex: l
664
- }), D("selectDatapoint", e);
664
+ }), z("selectDatapoint", e);
665
665
  }
666
666
  function _e(e, l) {
667
667
  if (!e) {
668
- Ve();
668
+ Ee();
669
669
  return;
670
670
  }
671
- const o = Y(e.id);
671
+ const o = Z(e.id);
672
672
  if (!o) return;
673
- if (ct() === o.id) {
673
+ if (dt() === o.id) {
674
674
  _o(e, l);
675
675
  return;
676
676
  }
677
677
  Po(o, e, l);
678
678
  }
679
679
  function Lo(e) {
680
- return e ? ct() === e.id : !1;
680
+ return e ? dt() === e.id : !1;
681
681
  }
682
- const ae = w(() => {
682
+ const ae = $(() => {
683
683
  const e = [{ id: null, label: "All" }];
684
684
  if (V.value.length > 0) {
685
- let l = Y(V.value[V.value.length - 1]);
685
+ let l = Z(V.value[V.value.length - 1]);
686
686
  const o = [];
687
687
  for (; l; )
688
- o.unshift(l), l = l.parentId ? Y(l.parentId) : null;
688
+ o.unshift(l), l = l.parentId ? Z(l.parentId) : null;
689
689
  for (const a of o)
690
690
  e.push({
691
691
  id: a.id,
@@ -694,9 +694,9 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
694
694
  });
695
695
  }
696
696
  return e;
697
- }), N = se(null), $e = w(() => E.value.map((e, l) => ({
697
+ }), F = se(null), $e = $(() => E.value.map((e, l) => ({
698
698
  ...e,
699
- color: fe(e.color) || Me.value[l] || z[l] || z[l % z.length],
699
+ color: fe(e.color) || Me.value[l] || R[l] || R[l % R.length],
700
700
  shape: "square"
701
701
  })).sort((e, l) => l.value - e.value).map((e, l) => {
702
702
  const o = e.value / E.value.map((a) => a.value).reduce((a, n) => a + n, 0);
@@ -704,10 +704,10 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
704
704
  ...e,
705
705
  proportion: o,
706
706
  opacity: P.value.includes(e.id) ? 0.5 : 1,
707
- display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? kt(
707
+ display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? qe(
708
708
  t.value.style.chart.layout.labels.formatter,
709
709
  e.value,
710
- Ke({
710
+ ze({
711
711
  p: t.value.style.chart.layout.labels.prefix,
712
712
  v: e.value,
713
713
  s: t.value.style.chart.layout.labels.suffix,
@@ -716,14 +716,14 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
716
716
  { datapoint: e }
717
717
  ) : ""}${t.value.style.chart.legend.showPercentage ? P.value.includes(e.id) ? `${t.value.style.chart.legend.showValue ? " (" : ""}- %${t.value.style.chart.legend.showValue ? ")" : ""}` : `${t.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ke.value) ? "-" : (e.value / ke.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)}%${t.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
718
718
  };
719
- })), Fo = w(() => ({
719
+ })), Fo = $(() => ({
720
720
  cy: "treemap-div-legend",
721
721
  backgroundColor: t.value.style.chart.legend.backgroundColor,
722
722
  color: t.value.style.chart.legend.color,
723
723
  fontSize: t.value.style.chart.legend.fontSize,
724
724
  paddingBottom: 12,
725
725
  fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
726
- })), Ee = w(
726
+ })), Ue = $(
727
727
  () => P.value.length === $e.value.length
728
728
  );
729
729
  function No() {
@@ -731,8 +731,8 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
731
731
  P.value.push(e.id);
732
732
  });
733
733
  }
734
- function Ue(e) {
735
- N.value = null, P.value.includes(e.id) ? P.value = P.value.filter((l) => l !== e.id) : P.value.length < C.dataset.length - 1 && P.value.push(e.id), D("selectLegend", Vt.value);
734
+ function We(e) {
735
+ F.value = null, P.value.includes(e.id) ? P.value = P.value.filter((l) => l !== e.id) : P.value.length < w.dataset.length - 1 && P.value.push(e.id), z("selectLegend", Ht.value);
736
736
  }
737
737
  function jt(e) {
738
738
  if (!E.value.length)
@@ -742,19 +742,19 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
742
742
  }
743
743
  function Ro(e) {
744
744
  const l = jt(e);
745
- l !== null && P.value.includes(l.id) && Ue({ id: l.id });
745
+ l !== null && P.value.includes(l.id) && We({ id: l.id });
746
746
  }
747
747
  function zo(e) {
748
748
  const l = jt(e);
749
- l !== null && (P.value.includes(l.id) || Ue({ id: l.id }));
749
+ l !== null && (P.value.includes(l.id) || We({ id: l.id }));
750
750
  }
751
751
  function Do({ datapoint: e, seriesIndex: l }) {
752
- N.value = null, Ae.value = !1, le.value = null, Ie.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
752
+ F.value = null, Ae.value = !1, le.value = null, Ie.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
753
753
  }
754
- const We = g(null);
754
+ const Xe = g(null);
755
755
  function Kt({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
756
- if (Ee.value) return;
757
- t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), le.value = l, Ie.value = o, N.value = e, We.value = {
756
+ if (Ue.value) return;
757
+ t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), le.value = l, Ie.value = o, F.value = e, Xe.value = {
758
758
  datapoint: e,
759
759
  seriesIndex: l,
760
760
  config: t.value,
@@ -769,7 +769,7 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
769
769
  config: t.value
770
770
  })
771
771
  ))
772
- qe.value = a({
772
+ Je.value = a({
773
773
  seriesIndex: l,
774
774
  datapoint: e,
775
775
  series: Oe.value,
@@ -777,28 +777,28 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
777
777
  });
778
778
  else {
779
779
  let n = "";
780
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<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="${e.color}"/></svg>`, n += `<b>${kt(
780
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<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="${e.color}"/></svg>`, n += `<b>${qe(
781
781
  t.value.style.chart.layout.labels.formatter,
782
782
  e.value,
783
- Ke({
783
+ ze({
784
784
  p: t.value.style.chart.layout.labels.prefix,
785
785
  v: e.value,
786
786
  s: t.value.style.chart.layout.labels.suffix,
787
787
  r: t.value.style.chart.tooltip.roundingValue
788
788
  }),
789
789
  { datapoint: e, seriesIndex: l }
790
- )}</b>`, qe.value = `<div>${n}</div>`;
790
+ )}</b>`, Je.value = `<div>${n}</div>`;
791
791
  }
792
792
  Ae.value = !0;
793
793
  }
794
- const ne = w(() => {
794
+ const ne = $(() => {
795
795
  const e = O.value.map((o) => ({
796
796
  name: o.name,
797
797
  color: o.color
798
798
  })), l = O.value.map((o) => o.value);
799
799
  return { head: e, body: l };
800
800
  });
801
- function dt(e = null) {
801
+ function vt(e = null) {
802
802
  ro(() => {
803
803
  const l = ne.value.head.map((n, s) => [
804
804
  [n.name],
@@ -817,16 +817,16 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
817
817
  });
818
818
  });
819
819
  }
820
- const Te = w(() => {
820
+ const Te = $(() => {
821
821
  const e = [
822
822
  t.value.table.columnNames.series,
823
823
  t.value.table.columnNames.value,
824
824
  t.value.table.columnNames.percentage
825
825
  ], l = ne.value.head.map((n, s) => {
826
- const r = kt(
826
+ const r = qe(
827
827
  t.value.style.chart.layout.labels.formatter,
828
828
  ne.value.body[s],
829
- Ke({
829
+ ze({
830
830
  p: t.value.style.chart.layout.labels.prefix,
831
831
  v: ne.value.body[s],
832
832
  s: t.value.style.chart.layout.labels.suffix,
@@ -840,7 +840,7 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
840
840
  shape: "square"
841
841
  },
842
842
  r,
843
- isNaN(ne.value.body[s] / ke.value) ? "-" : Ke({
843
+ isNaN(ne.value.body[s] / ke.value) ? "-" : ze({
844
844
  v: ne.value.body[s] / ke.value * 100,
845
845
  s: "%",
846
846
  r: t.value.table.td.roundingPercentage
@@ -879,17 +879,17 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
879
879
  X.value.showTooltip = !X.value.showTooltip;
880
880
  }
881
881
  const Le = g(!1);
882
- function vt() {
882
+ function ht() {
883
883
  Le.value = !Le.value;
884
884
  }
885
- const Xe = g(null);
885
+ const Ge = g(null);
886
886
  function Qt(e) {
887
- Xe.value = e;
887
+ Ge.value = e;
888
888
  }
889
889
  function eo() {
890
- Xe.value = null;
890
+ Ge.value = null;
891
891
  }
892
- async function Ho({ scale: e = 2 } = {}) {
892
+ async function Vo({ scale: e = 2 } = {}) {
893
893
  if (!K.value) return;
894
894
  const { width: l, height: o } = K.value.getBoundingClientRect(), a = l / o, { imageUri: n, base64: s } = await Ol({
895
895
  domElement: K.value,
@@ -906,10 +906,10 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
906
906
  aspectRatio: a
907
907
  };
908
908
  }
909
- const Fe = w(() => {
909
+ const Fe = $(() => {
910
910
  const e = t.value.table.useDialog && !t.value.table.show, l = X.value.showTable;
911
911
  return {
912
- component: e ? re : b,
912
+ component: e ? re : C,
913
913
  title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
914
914
  props: e ? {
915
915
  backgroundColor: t.value.table.th.backgroundColor,
@@ -944,16 +944,16 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
944
944
  }
945
945
  );
946
946
  function to() {
947
- X.value.showTable = !1, Qe.value && Qe.value.setTableIconState(!1);
947
+ X.value.showTable = !1, et.value && et.value.setTableIconState(!1);
948
948
  }
949
- const Vo = w(() => $e.value.map((e) => ({
949
+ const Ho = $(() => $e.value.map((e) => ({
950
950
  ...e,
951
951
  name: e.display
952
- }))), Eo = w(() => t.value.style.chart.backgroundColor), Uo = w(() => t.value.style.chart.legend), Wo = w(() => t.value.style.chart.title), { exportSvg: Xo, getSvg: Go } = Al({
952
+ }))), Eo = $(() => t.value.style.chart.backgroundColor), Uo = $(() => t.value.style.chart.legend), Wo = $(() => t.value.style.chart.title), { exportSvg: Xo, getSvg: Go } = Al({
953
953
  svg: ye,
954
954
  title: Wo,
955
955
  legend: Uo,
956
- legendItems: Vo,
956
+ legendItems: Ho,
957
957
  backgroundColor: Eo
958
958
  });
959
959
  async function oo({ isCb: e }) {
@@ -977,17 +977,17 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
977
977
  }
978
978
  function Yo(e) {
979
979
  if (e?.stage === "start") {
980
- Be.value = !0;
980
+ Ve.value = !0;
981
981
  return;
982
982
  }
983
983
  if (e?.stage === "end") {
984
- Be.value = !1;
984
+ Ve.value = !1;
985
985
  return;
986
986
  }
987
987
  zt();
988
988
  }
989
- function ht(e) {
990
- const l = it(e), o = Math.max(l * 0.5, 4), a = Math.max(l * 0.5, 4), n = l * 1.1;
989
+ function ft(e) {
990
+ const l = ct(e), o = Math.max(l * 0.5, 4), a = Math.max(l * 0.5, 4), n = l * 1.1;
991
991
  return {
992
992
  fontSize: l,
993
993
  paddingX: o,
@@ -995,8 +995,8 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
995
995
  lineHeight: n
996
996
  };
997
997
  }
998
- function Ge(e) {
999
- const { paddingX: l, paddingTop: o, lineHeight: a } = ht(e), n = e.x0 + l, s = e.y0 + o, r = Math.max(ve(e) - l * 2, 0), k = Math.max(de(e) - o * 2, 0);
998
+ function Ye(e) {
999
+ const { paddingX: l, paddingTop: o, lineHeight: a } = ft(e), n = e.x0 + l, s = e.y0 + o, r = Math.max(ve(e) - l * 2, 0), k = Math.max(de(e) - o * 2, 0);
1000
1000
  return {
1001
1001
  x: n,
1002
1002
  y: s,
@@ -1010,103 +1010,75 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1010
1010
  e.color ?? t.value.style.chart.backgroundColor
1011
1011
  );
1012
1012
  }
1013
- function jo(e) {
1014
- const { fontSize: l, lineHeight: o } = ht(e), a = qo(e), n = Jo(e);
1015
- if (a <= 0 || n <= 0)
1013
+ function jo(e, l) {
1014
+ const { fontSize: o, lineHeight: a } = ft(e), n = Jo(e), s = Qo(e);
1015
+ if (n <= 0 || s <= 0)
1016
1016
  return [];
1017
- const s = Math.max(
1018
- Math.floor(n / Math.max(o, 1)),
1017
+ const r = Math.max(
1018
+ Math.floor(s / Math.max(a, 1)),
1019
1019
  1
1020
- ), r = t.value.style.chart.layout.labels.value.prefix ?? "", k = t.value.style.chart.layout.labels.value.suffix ?? "", S = `${r}${e.value}${k}`, i = Math.ceil(l * 0.2), $ = Math.ceil(l * 1.4), I = Math.max(
1021
- a - $ - i,
1020
+ ), k = qe(
1021
+ t.value.style.chart.layout.labels.formatter,
1022
+ e.value,
1023
+ ze({
1024
+ p: t.value.style.chart.layout.labels.prefix,
1025
+ v: e.value,
1026
+ s: t.value.style.chart.layout.labels.suffix,
1027
+ r: t.value.style.chart.tooltip.roundingValue
1028
+ }),
1029
+ { datapoint: e, seriesIndex: l }
1030
+ ), I = Math.ceil(o * 0.2), i = Math.ceil(o * 1.4), y = Math.max(
1031
+ n - i - I,
1022
1032
  0
1023
1033
  );
1024
- if (I <= 0)
1034
+ if (y <= 0)
1025
1035
  return [];
1026
1036
  if (Array.isArray(e.children) && e.children.length) {
1027
- const L = gt(
1028
- `${e.name} (${S})`,
1029
- I,
1030
- l,
1037
+ const H = yt(
1038
+ `${e.name} (${k})`,
1039
+ y,
1040
+ o,
1031
1041
  500
1032
1042
  );
1033
- return L ? [L] : [];
1043
+ return H ? [H] : [];
1034
1044
  }
1035
- const _ = [], Z = gt(
1045
+ const M = [], L = yt(
1036
1046
  `${e.name}`,
1037
- I,
1038
- l,
1047
+ y,
1048
+ o,
1039
1049
  500
1040
1050
  );
1041
- if (Z && _.push(Z), s >= 2) {
1042
- const L = gt(
1043
- S,
1044
- I,
1045
- l,
1051
+ if (L && M.push(L), r >= 2) {
1052
+ const H = yt(
1053
+ k,
1054
+ y,
1055
+ o,
1046
1056
  400
1047
1057
  );
1048
- L && _.push(L);
1058
+ H && M.push(H);
1049
1059
  }
1050
- return _.slice(0, s);
1051
- }
1052
- let ft;
1053
- function Ko() {
1054
- return ft || (ft = document.createElement("canvas")), ft.getContext("2d");
1055
- }
1056
- function pt(e, l, o = 400) {
1057
- const a = Ko();
1058
- return a ? (a.font = `${o} ${l}px ${t.value.style.fontFamily}`, a.measureText(String(e)).width) : e.length * l * 0.6;
1060
+ return M.slice(0, r);
1059
1061
  }
1060
- function gt(e, l, o, a = 400) {
1061
- const n = String(e ?? "");
1062
- if (!n.length || l <= 0)
1062
+ function Ko({ rect: e, seriesIndex: l, isTitle: o }) {
1063
+ if (!e || !t.value.style.chart.layout.labels.showDefaultLabels || !it(e))
1063
1064
  return "";
1064
- if (pt(n, o, a) <= l)
1065
- return n;
1066
- const s = "…";
1067
- if (pt(
1068
- s,
1069
- o,
1070
- a
1071
- ) > l)
1072
- return "";
1073
- let k = 0, S = n.length, i = "";
1074
- for (; k <= S; ) {
1075
- const $ = Math.floor((k + S) / 2), I = `${n.slice(0, $)}${s}`;
1076
- pt(
1077
- I,
1078
- o,
1079
- a
1080
- ) <= l ? (i = I, k = $ + 1) : S = $ - 1;
1081
- }
1082
- return i || s;
1083
- }
1084
- function qo(e) {
1085
- return Ge(e).width;
1086
- }
1087
- function Jo(e) {
1088
- return Ge(e).height;
1089
- }
1090
- function Qo({ rect: e, seriesIndex: l, isTitle: o }) {
1091
- if (!e || !t.value.style.chart.layout.labels.showDefaultLabels || !ut(e))
1092
- return "";
1093
- const { fontSize: a } = ht(e), n = Zo(e), s = jo(e), r = Ge(e);
1065
+ const { fontSize: a } = ft(e), n = Zo(e), s = jo(e, l), r = Ye(e);
1094
1066
  if (!s.length || r.width <= 0 || r.height <= 0)
1095
1067
  return "";
1096
- const k = `treemap_clip_${W.value}_${e.id}_${e.depth}_${l}`, S = r.x, i = r.y, $ = Math.max(r.width, 0), I = Math.max(r.height, 0), _ = s.map((Z, L) => {
1097
- const mt = r.y + r.lineHeight * L;
1068
+ const k = `treemap_clip_${W.value}_${e.id}_${e.depth}_${l}`, I = r.x, i = r.y, y = Math.max(r.width, 0), M = Math.max(r.height, 0), L = s.map((H, G) => {
1069
+ const bt = r.y + r.lineHeight * G;
1098
1070
  return `
1099
1071
  <text
1100
1072
  x="${r.x}"
1101
- y="${mt}"
1073
+ y="${bt}"
1102
1074
  fill="${n}"
1103
1075
  font-size="${a}"
1104
1076
  font-family="${t.value.style.fontFamily}"
1105
- font-weight="${L === 0 ? 500 : 400}"
1077
+ font-weight="${G === 0 ? 500 : 400}"
1106
1078
  text-anchor="start"
1107
1079
  dominant-baseline="text-before-edge"
1108
1080
  >
1109
- ${bl(Z)}
1081
+ ${bl(H)}
1110
1082
  </text>
1111
1083
  `;
1112
1084
  }).join("");
@@ -1115,25 +1087,63 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1115
1087
  <defs>
1116
1088
  <clipPath id="${k}" clipPathUnits="userSpaceOnUse">
1117
1089
  <rect
1118
- x="${S}"
1090
+ x="${I}"
1119
1091
  y="${i}"
1120
- width="${$}"
1121
- height="${I}"
1092
+ width="${y}"
1093
+ height="${M}"
1122
1094
  />
1123
1095
  </clipPath>
1124
1096
  </defs>
1125
1097
  <g clip-path="url(#${k})">
1126
- ${_}
1098
+ ${L}
1127
1099
  </g>
1128
1100
  </g>
1129
1101
  `;
1130
1102
  }
1103
+ let pt;
1104
+ function qo() {
1105
+ return pt || (pt = document.createElement("canvas")), pt.getContext("2d");
1106
+ }
1107
+ function gt(e, l, o = 400) {
1108
+ const a = qo();
1109
+ return a ? (a.font = `${o} ${l}px ${t.value.style.fontFamily}`, a.measureText(String(e)).width) : e.length * l * 0.6;
1110
+ }
1111
+ function yt(e, l, o, a = 400) {
1112
+ const n = String(e ?? "");
1113
+ if (!n.length || l <= 0)
1114
+ return "";
1115
+ if (gt(n, o, a) <= l)
1116
+ return n;
1117
+ const s = "…";
1118
+ if (gt(
1119
+ s,
1120
+ o,
1121
+ a
1122
+ ) > l)
1123
+ return "";
1124
+ let k = 0, I = n.length, i = "";
1125
+ for (; k <= I; ) {
1126
+ const y = Math.floor((k + I) / 2), M = `${n.slice(0, y)}${s}`;
1127
+ gt(
1128
+ M,
1129
+ o,
1130
+ a
1131
+ ) <= l ? (i = M, k = y + 1) : I = y - 1;
1132
+ }
1133
+ return i || s;
1134
+ }
1135
+ function Jo(e) {
1136
+ return Ye(e).width;
1137
+ }
1138
+ function Qo(e) {
1139
+ return Ye(e).height;
1140
+ }
1131
1141
  function el(e) {
1132
1142
  const l = t.value.style.chart.layout.rects.borderRadius, o = ve(e), a = de(e);
1133
1143
  return Math.min(l, Math.min(o, a) / 6);
1134
1144
  }
1135
1145
  async function lo() {
1136
- if (D("copyAlt", {
1146
+ if (z("copyAlt", {
1137
1147
  config: t.value,
1138
1148
  dataset: O.value
1139
1149
  }), !t.value.userOptions.callbacks.altCopy) {
@@ -1150,32 +1160,32 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1150
1160
  );
1151
1161
  }
1152
1162
  function tl() {
1153
- le.value = null, tt.value = !0;
1163
+ le.value = null, ot.value = !0;
1154
1164
  }
1155
1165
  function ol() {
1156
- le.value = null, Ie.value = "pointer", Ae.value = !1, N.value = null, tt.value = !1;
1166
+ le.value = null, Ie.value = "pointer", Ae.value = !1, F.value = null, ot.value = !1;
1157
1167
  }
1158
1168
  function ll(e) {
1159
- if (!ye.value || Le.value || document.activeElement !== ye.value || !O.value.length || Ee.value) return;
1169
+ if (!ye.value || Le.value || document.activeElement !== ye.value || !O.value.length || Ue.value) return;
1160
1170
  const l = ["ArrowLeft", "ArrowUp"].includes(e.key), o = ["ArrowRight", "ArrowDown"].includes(e.key), a = e.key === "Enter" || e.key === " ", n = e.key === "Escape";
1161
1171
  if (!l && !o && !a && !n)
1162
1172
  return;
1163
1173
  if (e.preventDefault(), e.stopPropagation(), n) {
1164
- le.value = null, Ie.value = "pointer", Ae.value = !1, N.value = null;
1174
+ le.value = null, Ie.value = "pointer", Ae.value = !1, F.value = null;
1165
1175
  return;
1166
1176
  }
1167
1177
  if (a) {
1168
1178
  if (le.value === null) return;
1169
- const $ = O.value[le.value];
1170
- if (!$) return;
1171
- _e($, le.value);
1179
+ const y = O.value[le.value];
1180
+ if (!y) return;
1181
+ _e(y, le.value);
1172
1182
  return;
1173
1183
  }
1174
1184
  let s = le.value;
1175
- const r = N.value ? O.value.findIndex(
1176
- ($) => $.id === N.value.id
1177
- ) : null, k = s !== null && s >= 0 && s < O.value.length, S = r !== null && r >= 0 && r < O.value.length;
1178
- k ? o ? (s += 1, s >= O.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = O.value.length - 1)) : S ? (s = o ? r + 1 : r - 1, s >= O.value.length && (s = 0), s < 0 && (s = O.value.length - 1)) : o ? s = 0 : s = O.value.length - 1;
1185
+ const r = F.value ? O.value.findIndex(
1186
+ (y) => y.id === F.value.id
1187
+ ) : null, k = s !== null && s >= 0 && s < O.value.length, I = r !== null && r >= 0 && r < O.value.length;
1188
+ k ? o ? (s += 1, s >= O.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = O.value.length - 1)) : I ? (s = o ? r + 1 : r - 1, s >= O.value.length && (s = 0), s < 0 && (s = O.value.length - 1)) : o ? s = 0 : s = O.value.length - 1;
1179
1189
  const i = O.value[s];
1180
1190
  i && (al(s), Kt({
1181
1191
  datapoint: i,
@@ -1193,14 +1203,14 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1193
1203
  y: n.top + (a - J.value.startY) / J.value.height * n.height
1194
1204
  };
1195
1205
  }
1196
- const yt = w(() => {
1206
+ const mt = $(() => {
1197
1207
  const e = Te.value?.colNames ?? [], l = Te.value?.body ?? [];
1198
1208
  return { headers: e, rows: l };
1199
1209
  });
1200
1210
  return h({
1201
1211
  getData: Bo,
1202
- getImage: Ho,
1203
- generateCsv: dt,
1212
+ getImage: Vo,
1213
+ generateCsv: vt,
1204
1214
  generateImage: zt,
1205
1215
  generateSvg: oo,
1206
1216
  generatePdf: Rt,
@@ -1208,68 +1218,68 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1208
1218
  showSeries: Ro,
1209
1219
  toggleTable: qt,
1210
1220
  toggleTooltip: Jt,
1211
- toggleAnnotator: vt,
1221
+ toggleAnnotator: ht,
1212
1222
  toggleFullscreen: Yt,
1213
1223
  copyAlt: lo
1214
1224
  }), (e, l) => (c(), A("div", {
1215
1225
  ref_key: "treemapChart",
1216
1226
  ref: K,
1217
- class: bt(`vue-data-ui-component vue-ui-treemap ${pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1227
+ class: Ct(`vue-data-ui-component vue-ui-treemap ${pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1218
1228
  style: he(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
1219
1229
  id: `treemap_${W.value}`,
1220
- onMouseenter: l[2] || (l[2] = () => y(Ft)(!0)),
1221
- onMouseleave: l[3] || (l[3] = () => y(Ft)(!1))
1230
+ onMouseenter: l[2] || (l[2] = () => m(Ft)(!0)),
1231
+ onMouseleave: l[3] || (l[3] = () => m(Ft)(!1))
1222
1232
  }, [
1223
- R("div", {
1233
+ N("div", {
1224
1234
  id: `chart-instructions-${W.value}`,
1225
1235
  class: "sr-only"
1226
1236
  }, [
1227
- R("p", null, Ne(t.value.a11y.translations.keyboardNavigation), 1)
1237
+ N("p", null, Ne(t.value.a11y.translations.keyboardNavigation), 1)
1228
1238
  ], 8, Gl),
1229
- yt.value?.rows?.length ? (c(), Q(Fl, {
1239
+ mt.value?.rows?.length ? (c(), Q(Fl, {
1230
1240
  key: 0,
1231
1241
  uid: W.value,
1232
- head: yt.value.headers,
1233
- body: yt.value.rows,
1242
+ head: mt.value.headers,
1243
+ body: mt.value.rows,
1234
1244
  notice: t.value.a11y.translations.tableAvailable,
1235
1245
  caption: t.value.a11y.translations.tableCaption
1236
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : F("", !0),
1237
- t.value.userOptions.buttons.annotator ? (c(), Q(y(v), {
1246
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : _("", !0),
1247
+ t.value.userOptions.buttons.annotator ? (c(), Q(m(v), {
1238
1248
  key: 1,
1239
- svgRef: y(ye),
1249
+ svgRef: m(ye),
1240
1250
  backgroundColor: t.value.style.chart.backgroundColor,
1241
1251
  color: t.value.style.chart.color,
1242
1252
  active: Le.value,
1243
1253
  isCursorPointer: ie.value,
1244
- onClose: vt
1254
+ onClose: ht
1245
1255
  }, {
1246
1256
  "annotator-action-close": T(() => [
1247
- m(e.$slots, "annotator-action-close", {}, void 0, !0)
1257
+ b(e.$slots, "annotator-action-close", {}, void 0, !0)
1248
1258
  ]),
1249
1259
  "annotator-action-color": T(({ color: o }) => [
1250
- m(e.$slots, "annotator-action-color", B(H({ color: o })), void 0, !0)
1260
+ b(e.$slots, "annotator-action-color", D(B({ color: o })), void 0, !0)
1251
1261
  ]),
1252
1262
  "annotator-action-draw": T(({ mode: o }) => [
1253
- m(e.$slots, "annotator-action-draw", B(H({ mode: o })), void 0, !0)
1263
+ b(e.$slots, "annotator-action-draw", D(B({ mode: o })), void 0, !0)
1254
1264
  ]),
1255
1265
  "annotator-action-undo": T(({ disabled: o }) => [
1256
- m(e.$slots, "annotator-action-undo", B(H({ disabled: o })), void 0, !0)
1266
+ b(e.$slots, "annotator-action-undo", D(B({ disabled: o })), void 0, !0)
1257
1267
  ]),
1258
1268
  "annotator-action-redo": T(({ disabled: o }) => [
1259
- m(e.$slots, "annotator-action-redo", B(H({ disabled: o })), void 0, !0)
1269
+ b(e.$slots, "annotator-action-redo", D(B({ disabled: o })), void 0, !0)
1260
1270
  ]),
1261
1271
  "annotator-action-delete": T(({ disabled: o }) => [
1262
- m(e.$slots, "annotator-action-delete", B(H({ disabled: o })), void 0, !0)
1272
+ b(e.$slots, "annotator-action-delete", D(B({ disabled: o })), void 0, !0)
1263
1273
  ]),
1264
1274
  _: 3
1265
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : F("", !0),
1275
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : _("", !0),
1266
1276
  ko.value ? (c(), A("div", {
1267
1277
  key: 2,
1268
1278
  ref_key: "noTitle",
1269
1279
  ref: Mt,
1270
1280
  class: "vue-data-ui-no-title-space",
1271
1281
  style: "height:36px; width: 100%;background:transparent"
1272
- }, null, 512)) : F("", !0),
1282
+ }, null, 512)) : _("", !0),
1273
1283
  t.value.style.chart.title.text ? (c(), A("div", {
1274
1284
  key: 3,
1275
1285
  ref_key: "chartTitle",
@@ -1289,18 +1299,18 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1289
1299
  }
1290
1300
  }
1291
1301
  }, null, 8, ["config"]))
1292
- ], 4)) : F("", !0),
1293
- R("div", {
1302
+ ], 4)) : _("", !0),
1303
+ N("div", {
1294
1304
  id: `legend-top-${W.value}`
1295
1305
  }, null, 8, Yl),
1296
- t.value.userOptions.show && ue.value && (y(Nt) || y(lt)) ? (c(), Q(y(M), {
1306
+ t.value.userOptions.show && ue.value && (m(Nt) || m(at)) ? (c(), Q(m(S), {
1297
1307
  ref_key: "userOptionsRef",
1298
- ref: Qe,
1308
+ ref: et,
1299
1309
  key: `user_option_${xt.value}`,
1300
1310
  backgroundColor: t.value.style.chart.backgroundColor,
1301
1311
  color: t.value.style.chart.color,
1302
- isPrinting: y(nt),
1303
- isImaging: y(st),
1312
+ isPrinting: m(st),
1313
+ isImaging: m(rt),
1304
1314
  uid: W.value,
1305
1315
  hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
1306
1316
  hasPdf: t.value.userOptions.buttons.pdf,
@@ -1322,95 +1332,95 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1322
1332
  tableDialog: t.value.table.useDialog,
1323
1333
  isCursorPointer: ie.value,
1324
1334
  onToggleFullscreen: Yt,
1325
- onGeneratePdf: y(Rt),
1326
- onGenerateCsv: dt,
1335
+ onGeneratePdf: m(Rt),
1336
+ onGenerateCsv: vt,
1327
1337
  onGenerateImage: Yo,
1328
1338
  onGenerateSvg: oo,
1329
1339
  onToggleTable: qt,
1330
1340
  onToggleTooltip: Jt,
1331
- onToggleAnnotator: vt,
1341
+ onToggleAnnotator: ht,
1332
1342
  onCopyAlt: lo,
1333
1343
  style: he({
1334
- visibility: y(Nt) ? y(lt) ? "visible" : "hidden" : "visible"
1344
+ visibility: m(Nt) ? m(at) ? "visible" : "hidden" : "visible"
1335
1345
  })
1336
1346
  }, no({ _: 2 }, [
1337
1347
  e.$slots.menuIcon ? {
1338
1348
  name: "menuIcon",
1339
1349
  fn: T(({ isOpen: o, color: a }) => [
1340
- m(e.$slots, "menuIcon", B(H({ isOpen: o, color: a })), void 0, !0)
1350
+ b(e.$slots, "menuIcon", D(B({ isOpen: o, color: a })), void 0, !0)
1341
1351
  ]),
1342
1352
  key: "0"
1343
1353
  } : void 0,
1344
1354
  e.$slots.optionTooltip ? {
1345
1355
  name: "optionTooltip",
1346
1356
  fn: T(() => [
1347
- m(e.$slots, "optionTooltip", {}, void 0, !0)
1357
+ b(e.$slots, "optionTooltip", {}, void 0, !0)
1348
1358
  ]),
1349
1359
  key: "1"
1350
1360
  } : void 0,
1351
1361
  e.$slots.optionPdf ? {
1352
1362
  name: "optionPdf",
1353
1363
  fn: T(() => [
1354
- m(e.$slots, "optionPdf", {}, void 0, !0)
1364
+ b(e.$slots, "optionPdf", {}, void 0, !0)
1355
1365
  ]),
1356
1366
  key: "2"
1357
1367
  } : void 0,
1358
1368
  e.$slots.optionCsv ? {
1359
1369
  name: "optionCsv",
1360
1370
  fn: T(() => [
1361
- m(e.$slots, "optionCsv", {}, void 0, !0)
1371
+ b(e.$slots, "optionCsv", {}, void 0, !0)
1362
1372
  ]),
1363
1373
  key: "3"
1364
1374
  } : void 0,
1365
1375
  e.$slots.optionImg ? {
1366
1376
  name: "optionImg",
1367
1377
  fn: T(() => [
1368
- m(e.$slots, "optionImg", {}, void 0, !0)
1378
+ b(e.$slots, "optionImg", {}, void 0, !0)
1369
1379
  ]),
1370
1380
  key: "4"
1371
1381
  } : void 0,
1372
1382
  e.$slots.optionSvg ? {
1373
1383
  name: "optionSvg",
1374
1384
  fn: T(() => [
1375
- m(e.$slots, "optionSvg", {}, void 0, !0)
1385
+ b(e.$slots, "optionSvg", {}, void 0, !0)
1376
1386
  ]),
1377
1387
  key: "5"
1378
1388
  } : void 0,
1379
1389
  e.$slots.optionTable ? {
1380
1390
  name: "optionTable",
1381
1391
  fn: T(() => [
1382
- m(e.$slots, "optionTable", {}, void 0, !0)
1392
+ b(e.$slots, "optionTable", {}, void 0, !0)
1383
1393
  ]),
1384
1394
  key: "6"
1385
1395
  } : void 0,
1386
1396
  e.$slots.optionFullscreen ? {
1387
1397
  name: "optionFullscreen",
1388
1398
  fn: T(({ toggleFullscreen: o, isFullscreen: a }) => [
1389
- m(e.$slots, "optionFullscreen", B(H({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
1399
+ b(e.$slots, "optionFullscreen", D(B({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
1390
1400
  ]),
1391
1401
  key: "7"
1392
1402
  } : void 0,
1393
1403
  e.$slots.optionAnnotator ? {
1394
1404
  name: "optionAnnotator",
1395
1405
  fn: T(({ toggleAnnotator: o, isAnnotator: a }) => [
1396
- m(e.$slots, "optionAnnotator", B(H({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
1406
+ b(e.$slots, "optionAnnotator", D(B({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
1397
1407
  ]),
1398
1408
  key: "8"
1399
1409
  } : void 0,
1400
1410
  e.$slots.optionAltCopy ? {
1401
1411
  name: "optionAltCopy",
1402
1412
  fn: T(({ altCopy: o }) => [
1403
- m(e.$slots, "optionAltCopy", B(H({ altCopy: o })), void 0, !0)
1413
+ b(e.$slots, "optionAltCopy", D(B({ altCopy: o })), void 0, !0)
1404
1414
  ]),
1405
1415
  key: "9"
1406
1416
  } : void 0
1407
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : F("", !0),
1417
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : _("", !0),
1408
1418
  ae.value.length > 1 ? (c(), A("nav", {
1409
1419
  key: 5,
1410
1420
  class: "vue-ui-treemap-breadcrumbs",
1411
1421
  "data-dom-to-png-ignore": "",
1412
1422
  ref_key: "breadcrumbsNav",
1413
- ref: Je
1423
+ ref: Qe
1414
1424
  }, [
1415
1425
  (c(!0), A(xe, null, Re(ae.value, (o, a) => (c(), A("span", {
1416
1426
  role: "button",
@@ -1419,8 +1429,8 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1419
1429
  onClick: (n) => a === ae.value.length - 1 ? () => {
1420
1430
  } : _e(o.node),
1421
1431
  onKeydown: [
1422
- so(Ct((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["enter"]),
1423
- so(Ct((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["space"])
1432
+ so(wt((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["enter"]),
1433
+ so(wt((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["space"])
1424
1434
  ],
1425
1435
  class: "vue-ui-treemap-crumb",
1426
1436
  "data-last-crumb": a === ae.value.length - 1,
@@ -1433,43 +1443,43 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1433
1443
  onFocus: (n) => Qt(a),
1434
1444
  onBlur: eo
1435
1445
  }, [
1436
- R("span", jl, [
1437
- R("span", Kl, [
1438
- m(e.$slots, "breadcrumb-label", wt({ ref_for: !0 }, {
1446
+ N("span", jl, [
1447
+ N("span", Kl, [
1448
+ b(e.$slots, "breadcrumb-label", kt({ ref_for: !0 }, {
1439
1449
  crumb: o,
1440
1450
  isRoot: a === 0,
1441
- isFocus: Xe.value === a
1451
+ isFocus: Ge.value === a
1442
1452
  }), () => [
1443
1453
  a === 0 ? (c(), A("div", ql, [
1444
- Ye(po, {
1445
- name: Xe.value === 0 ? "homeFilled" : "home",
1454
+ Ze(po, {
1455
+ name: Ge.value === 0 ? "homeFilled" : "home",
1446
1456
  stroke: t.value.style.chart.color
1447
1457
  }, null, 8, ["name", "stroke"])
1448
1458
  ])) : (c(), A(xe, { key: 1 }, [
1449
- Ze(Ne(o.label), 1)
1459
+ je(Ne(o.label), 1)
1450
1460
  ], 64))
1451
1461
  ], !0)
1452
1462
  ]),
1453
1463
  a < ae.value.length - 1 ? (c(), A("span", Jl, [
1454
- m(e.$slots, "breadcrumb-arrow", {}, () => [
1455
- l[4] || (l[4] = Ze(" › ", -1))
1464
+ b(e.$slots, "breadcrumb-arrow", {}, () => [
1465
+ l[4] || (l[4] = je(" › ", -1))
1456
1466
  ], !0)
1457
- ])) : F("", !0)
1467
+ ])) : _("", !0)
1458
1468
  ])
1459
1469
  ], 44, Zl))), 128))
1460
- ], 512)) : F("", !0),
1461
- R("div", Ql, [
1470
+ ], 512)) : _("", !0),
1471
+ N("div", Ql, [
1462
1472
  (c(), A("svg", {
1463
1473
  ref_key: "svgRef",
1464
1474
  ref: ye,
1465
- xmlns: y(pl),
1475
+ xmlns: m(pl),
1466
1476
  "aria-describedby": `chart-instructions-${W.value}`,
1467
- class: bt({
1477
+ class: Ct({
1468
1478
  "vue-data-ui-fullscreen--on": pe.value,
1469
1479
  "vue-data-ui-fulscreen--off": !pe.value,
1470
1480
  "vue-data-ui-zoom-plus": !Pe.value,
1471
1481
  "vue-data-ui-zoom-minus": Pe.value,
1472
- loading: y(ge)
1482
+ loading: m(ge)
1473
1483
  }),
1474
1484
  viewBox: `${J.value.startX} ${J.value.startY} ${J.value.width <= 0 ? 10 : J.value.width} ${J.value.height <= 0 ? 10 : J.value.height}`,
1475
1485
  style: he(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
@@ -1478,51 +1488,51 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1478
1488
  onBlur: ol,
1479
1489
  onKeydown: ll
1480
1490
  }, [
1481
- Ye(y(x)),
1491
+ Ze(m(x)),
1482
1492
  (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1483
1493
  key: `tgrad_${o.id}`
1484
1494
  }, [
1485
1495
  t.value.style.chart.layout.rects.gradient.show ? (c(), A("defs", ta, [
1486
- R("radialGradient", {
1496
+ N("radialGradient", {
1487
1497
  id: `tgrad_${o.id}`,
1488
1498
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
1489
1499
  }, [
1490
- R("stop", {
1500
+ N("stop", {
1491
1501
  offset: "18%",
1492
1502
  "stop-color": o.color
1493
1503
  }, null, 8, la),
1494
- R("stop", {
1504
+ N("stop", {
1495
1505
  offset: "100%",
1496
- "stop-color": y(vo)(
1506
+ "stop-color": m(vo)(
1497
1507
  o.color,
1498
1508
  t.value.style.chart.layout.rects.gradient.intensity / 100
1499
1509
  )
1500
1510
  }, null, 8, aa)
1501
1511
  ], 8, oa)
1502
- ])) : F("", !0)
1512
+ ])) : _("", !0)
1503
1513
  ]))), 128)),
1504
- R("g", null, [
1514
+ N("g", null, [
1505
1515
  (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1506
1516
  key: `rect_${o.id}_${o.depth}`
1507
1517
  }, [
1508
- R("rect", {
1518
+ N("rect", {
1509
1519
  x: o.x0,
1510
1520
  y: o.y0,
1511
1521
  height: de(o),
1512
1522
  width: ve(o),
1513
- fill: oe.value ? o.color ?? t.value.style.chart.backgroundColor : t.value.style.chart.layout.rects.gradient.show ? Ee.value ? t.value.style.chart.backgroundColor : `url(#tgrad_${o.id})` : o.color ?? t.value.style.chart.backgroundColor,
1523
+ fill: oe.value ? o.color ?? t.value.style.chart.backgroundColor : t.value.style.chart.layout.rects.gradient.show ? Ue.value ? t.value.style.chart.backgroundColor : `url(#tgrad_${o.id})` : o.color ?? t.value.style.chart.backgroundColor,
1514
1524
  rx: el(o),
1515
- stroke: N.value && N.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1516
- "stroke-width": N.value && N.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1517
- onClick: Ct((n) => _e(o, a), ["stop"]),
1525
+ stroke: F.value && F.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1526
+ "stroke-width": F.value && F.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1527
+ onClick: wt((n) => _e(o, a), ["stop"]),
1518
1528
  onMouseenter: () => Kt({
1519
1529
  datapoint: o,
1520
1530
  seriesIndex: a,
1521
1531
  triggerMode: "pointer"
1522
1532
  }),
1523
1533
  onMouseleave: (n) => Do({ datapoint: o, seriesIndex: a }),
1524
- style: he(`opacity:${N.value ? N.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1525
- class: bt([
1534
+ style: he(`opacity:${F.value ? F.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1535
+ class: Ct([
1526
1536
  "vue-ui-treemap-rect",
1527
1537
  Lo(o) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
1528
1538
  ])
@@ -1531,15 +1541,15 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1531
1541
  (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1532
1542
  key: `label_${o.id}_${o.depth}`
1533
1543
  }, [
1534
- !e.$slots.rect && !y(ge) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value && o.showLabel ? (c(), A("g", {
1544
+ !e.$slots.rect && !m(ge) && t.value.style.chart.layout.labels.showDefaultLabels && !Ue.value && o.showLabel ? (c(), A("g", {
1535
1545
  key: 0,
1536
1546
  style: { "pointer-events": "none" },
1537
- innerHTML: Qo({
1547
+ innerHTML: Ko({
1538
1548
  rect: o,
1539
1549
  seriesIndex: a,
1540
1550
  isTitle: !!(o.children && o.children.length)
1541
1551
  })
1542
- }, null, 8, sa)) : F("", !0)
1552
+ }, null, 8, sa)) : _("", !0)
1543
1553
  ]))), 128)),
1544
1554
  (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1545
1555
  key: `slot_${o.id}_${o.depth}`
@@ -1552,8 +1562,8 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1552
1562
  class: "vue-ui-treemap-cell-foreignObject",
1553
1563
  style: { "pointer-events": "none" }
1554
1564
  }, [
1555
- R("div", ua, [
1556
- y(ge) ? F("", !0) : m(e.$slots, "rect", wt({
1565
+ N("div", ua, [
1566
+ m(ge) ? _("", !0) : b(e.$slots, "rect", kt({
1557
1567
  key: 0,
1558
1568
  ref_for: !0
1559
1569
  }, {
@@ -1561,12 +1571,12 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1561
1571
  ...o,
1562
1572
  height: de(o),
1563
1573
  width: ve(o),
1564
- isSelected: N.value ? N.value.id === o.id : !0
1574
+ isSelected: F.value ? F.value.id === o.id : !0
1565
1575
  },
1566
1576
  shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Pe.value,
1567
- fontSize: it(o),
1577
+ fontSize: ct(o),
1568
1578
  isZoom: Pe.value,
1569
- textColor: y(ho)(
1579
+ textColor: m(ho)(
1570
1580
  o.color
1571
1581
  )
1572
1582
  }), void 0, !0)
@@ -1574,55 +1584,55 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1574
1584
  ], 8, ra))
1575
1585
  ]))), 128))
1576
1586
  ]),
1577
- m(e.$slots, "svg", B(H({
1578
- svg: G.value,
1587
+ b(e.$slots, "svg", D(B({
1588
+ svg: Y.value,
1579
1589
  isZoom: Pe.value,
1580
- rect: N.value,
1590
+ rect: F.value,
1581
1591
  config: t.value,
1582
- isPrintingImg: y(nt) | y(st) | Be.value,
1592
+ isPrintingImg: m(st) | m(rt) | Ve.value,
1583
1593
  isPrintingSvg: He.value
1584
1594
  })), void 0, !0)
1585
1595
  ], 46, ea)),
1586
1596
  e.$slots.hint ? (c(), A("div", ia, [
1587
- m(e.$slots, "hint", B(H({
1597
+ b(e.$slots, "hint", D(B({
1588
1598
  hint: t.value.a11y.translations.keyboardNavigation,
1589
- isVisible: tt.value
1599
+ isVisible: ot.value
1590
1600
  })), void 0, !0)
1591
- ])) : F("", !0)
1601
+ ])) : _("", !0)
1592
1602
  ]),
1593
1603
  e.$slots.watermark ? (c(), A("div", ca, [
1594
- m(e.$slots, "watermark", B(H({
1595
- isPrinting: y(nt) || y(st) || Be.value || He.value
1604
+ b(e.$slots, "watermark", D(B({
1605
+ isPrinting: m(st) || m(rt) || Ve.value || He.value
1596
1606
  })), void 0, !0)
1597
- ])) : F("", !0),
1598
- R("div", {
1607
+ ])) : _("", !0),
1608
+ N("div", {
1599
1609
  id: `legend-bottom-${W.value}`
1600
1610
  }, null, 8, da),
1601
1611
  Pt.value ? (c(), Q(cl, {
1602
1612
  key: 7,
1603
1613
  to: t.value.style.chart.legend.position === "top" ? `#legend-top-${W.value}` : `#legend-bottom-${W.value}`
1604
1614
  }, [
1605
- R("div", {
1615
+ N("div", {
1606
1616
  ref_key: "chartLegend",
1607
1617
  ref: St
1608
1618
  }, [
1609
1619
  t.value.style.chart.legend.show ? (c(), Q(Ll, {
1610
- key: `legend_${De.value}`,
1620
+ key: `legend_${Be.value}`,
1611
1621
  legendSet: $e.value,
1612
1622
  config: Fo.value,
1613
1623
  id: `treemap_legend_${W.value}`,
1614
1624
  isCursorPointer: ie.value,
1615
- onClickMarker: l[0] || (l[0] = ({ legend: o }) => Ue(o))
1625
+ onClickMarker: l[0] || (l[0] = ({ legend: o }) => We(o))
1616
1626
  }, {
1617
1627
  item: T(({ legend: o, index: a }) => [
1618
- y(ge) ? F("", !0) : (c(), A("div", {
1628
+ m(ge) ? _("", !0) : (c(), A("div", {
1619
1629
  key: 0,
1620
- onClick: (n) => Ue(o),
1630
+ onClick: (n) => We(o),
1621
1631
  style: he(`opacity:${P.value.includes(o.id) ? 0.5 : 1}`)
1622
1632
  }, Ne(o.display), 13, va))
1623
1633
  ]),
1624
1634
  legendToggle: T(() => [
1625
- $e.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !y(ge) ? (c(), Q(Nl, {
1635
+ $e.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !m(ge) ? (c(), Q(Nl, {
1626
1636
  key: 0,
1627
1637
  backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
1628
1638
  color: t.value.style.chart.legend.selectAllToggle.color,
@@ -1630,24 +1640,24 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1630
1640
  checked: P.value.length > 0,
1631
1641
  isCursorPointer: ie.value,
1632
1642
  onToggle: No
1633
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : F("", !0)
1643
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : _("", !0)
1634
1644
  ]),
1635
1645
  _: 1
1636
- }, 8, ["legendSet", "config", "id", "isCursorPointer"])) : m(e.$slots, "legend", {
1646
+ }, 8, ["legendSet", "config", "id", "isCursorPointer"])) : b(e.$slots, "legend", {
1637
1647
  key: 1,
1638
1648
  legend: $e.value
1639
1649
  }, void 0, !0)
1640
1650
  ], 512)
1641
- ], 8, ["to"])) : F("", !0),
1651
+ ], 8, ["to"])) : _("", !0),
1642
1652
  e.$slots.source ? (c(), A("div", {
1643
1653
  key: 8,
1644
1654
  ref_key: "source",
1645
1655
  ref: It,
1646
1656
  dir: "auto"
1647
1657
  }, [
1648
- m(e.$slots, "source", {}, void 0, !0)
1649
- ], 512)) : F("", !0),
1650
- Ye(y(p), {
1658
+ b(e.$slots, "source", {}, void 0, !0)
1659
+ ], 512)) : _("", !0),
1660
+ Ze(m(p), {
1651
1661
  teleportTo: t.value.style.chart.tooltip.teleportTo,
1652
1662
  show: X.value.showTooltip && Ae.value,
1653
1663
  backgroundColor: t.value.style.chart.tooltip.backgroundColor,
@@ -1660,9 +1670,9 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1660
1670
  position: t.value.style.chart.tooltip.position,
1661
1671
  offsetY: t.value.style.chart.tooltip.offsetY,
1662
1672
  parent: K.value,
1663
- content: qe.value,
1673
+ content: Je.value,
1664
1674
  isFullscreen: pe.value,
1665
- isCustom: y(fo)(t.value.style.chart.tooltip.customFormat),
1675
+ isCustom: m(fo)(t.value.style.chart.tooltip.customFormat),
1666
1676
  smooth: t.value.style.chart.tooltip.smooth,
1667
1677
  backdropFilter: t.value.style.chart.tooltip.backdropFilter,
1668
1678
  smoothForce: t.value.style.chart.tooltip.smoothForce,
@@ -1671,24 +1681,24 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1671
1681
  a11yPosition: Lt.value
1672
1682
  }, {
1673
1683
  "tooltip-before": T(() => [
1674
- m(e.$slots, "tooltip-before", B(H({ ...We.value })), void 0, !0)
1684
+ b(e.$slots, "tooltip-before", D(B({ ...Xe.value })), void 0, !0)
1675
1685
  ]),
1676
1686
  tooltip: T(() => [
1677
- m(e.$slots, "tooltip", B(H({ ...We.value })), void 0, !0)
1687
+ b(e.$slots, "tooltip", D(B({ ...Xe.value })), void 0, !0)
1678
1688
  ]),
1679
1689
  "tooltip-after": T(() => [
1680
- m(e.$slots, "tooltip-after", B(H({ ...We.value })), void 0, !0)
1690
+ b(e.$slots, "tooltip-after", D(B({ ...Xe.value })), void 0, !0)
1681
1691
  ]),
1682
1692
  _: 3
1683
1693
  }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1684
- ue.value && t.value.userOptions.buttons.table ? (c(), Q(dl(Fe.value.component), wt({ key: 9 }, Fe.value.props, {
1694
+ ue.value && t.value.userOptions.buttons.table ? (c(), Q(dl(Fe.value.component), kt({ key: 9 }, Fe.value.props, {
1685
1695
  ref_key: "tableUnit",
1686
1696
  ref: Se,
1687
1697
  onClose: to
1688
1698
  }), no({
1689
1699
  content: T(() => [
1690
- (c(), Q(y(f), {
1691
- key: `table_${ze.value}`,
1700
+ (c(), Q(m(f), {
1701
+ key: `table_${De.value}`,
1692
1702
  colNames: Te.value.colNames,
1693
1703
  head: Te.value.head,
1694
1704
  body: Te.value.body,
@@ -1699,13 +1709,13 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1699
1709
  onClose: to
1700
1710
  }, {
1701
1711
  th: T(({ th: o }) => [
1702
- R("div", {
1712
+ N("div", {
1703
1713
  innerHTML: o,
1704
1714
  style: { display: "flex", "align-items": "center" }
1705
1715
  }, null, 8, ha)
1706
1716
  ]),
1707
1717
  td: T(({ td: o }) => [
1708
- Ze(Ne(o.name || o), 1)
1718
+ je(Ne(o.name || o), 1)
1709
1719
  ]),
1710
1720
  _: 1
1711
1721
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
@@ -1715,20 +1725,20 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1715
1725
  t.value.table.useDialog ? {
1716
1726
  name: "title",
1717
1727
  fn: T(() => [
1718
- Ze(Ne(Fe.value.title), 1)
1728
+ je(Ne(Fe.value.title), 1)
1719
1729
  ]),
1720
1730
  key: "0"
1721
1731
  } : void 0,
1722
1732
  t.value.table.useDialog ? {
1723
1733
  name: "actions",
1724
1734
  fn: T(() => [
1725
- R("button", {
1735
+ N("button", {
1726
1736
  tabindex: "0",
1727
1737
  class: "vue-ui-user-options-button",
1728
- onClick: l[1] || (l[1] = (o) => dt(t.value.userOptions.callbacks.csv)),
1738
+ onClick: l[1] || (l[1] = (o) => vt(t.value.userOptions.callbacks.csv)),
1729
1739
  style: he({ cursor: ie.value ? "pointer" : "default" })
1730
1740
  }, [
1731
- Ye(po, {
1741
+ Ze(po, {
1732
1742
  name: "fileCsv",
1733
1743
  stroke: Fe.value.props.color
1734
1744
  }, null, 8, ["stroke"])
@@ -1736,13 +1746,13 @@ const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKey
1736
1746
  ]),
1737
1747
  key: "1"
1738
1748
  } : void 0
1739
- ]), 1040)) : F("", !0),
1740
- m(e.$slots, "skeleton", {}, () => [
1741
- y(ge) ? (c(), Q(Tl, { key: 0 })) : F("", !0)
1749
+ ]), 1040)) : _("", !0),
1750
+ b(e.$slots, "skeleton", {}, () => [
1751
+ m(ge) ? (c(), Q(Tl, { key: 0 })) : _("", !0)
1742
1752
  ], !0)
1743
1753
  ], 46, Xl));
1744
1754
  }
1745
- }, Fa = /* @__PURE__ */ Rl(fa, [["__scopeId", "data-v-e5505d72"]]);
1755
+ }, Fa = /* @__PURE__ */ Rl(fa, [["__scopeId", "data-v-ba43cd2e"]]);
1746
1756
  export {
1747
1757
  Fa as default
1748
1758
  };