vue-data-ui 3.5.0 → 3.5.1

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 (144) hide show
  1. package/README.md +26 -0
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
  89. package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
  90. package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
  94. package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
  103. package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
  104. package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
  105. package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
  106. package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
  111. package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
  112. package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
  113. package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
  130. package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
  131. package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
  136. package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
  140. package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
  141. package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
  142. package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
  143. package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
  144. package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
@@ -1,26 +1,26 @@
1
- import { defineAsyncComponent as ge, useSlots as Ul, onMounted as el, computed as y, ref as b, shallowRef as J, toRefs as Gl, watch as Ge, onBeforeUnmount as Xl, createElementBlock as w, openBlock as h, unref as p, normalizeStyle as ue, normalizeClass as bt, createBlock as re, createCommentVNode as M, createElementVNode as V, createVNode as Xe, createSlots as tl, withCtx as O, renderSlot as $, normalizeProps as me, guardReactiveProps as ye, Fragment as qe, renderList as wt, withKeys as ll, withModifiers as kt, mergeProps as Ct, createTextVNode as Ye, toDisplayString as je, Teleport as ql, resolveDynamicComponent as Yl, nextTick as jl } from "vue";
2
- import { c as Ze, t as Zl, b as Kl, p as D, e as Jl, o as ol, f as Ql, h as Le, a as Ke, d as De, X as $t, S as al, J as nl, G as sl, P as eo, Q as to, H as lo, ap as xt, aq as Je } from "./lib-C_mNZmhD.js";
3
- import { t as oo, u as ao } from "./useResponsive-DfdjqQps.js";
4
- import { u as no, a as ul } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as so, B as uo } from "./BaseScanner-BgWxam9d.js";
6
- import { u as ro } from "./usePrinter-DTzqpYKF.js";
7
- import { u as io } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as co } from "./useChartAccessibility-9icAAmYg.js";
9
- import vo from "./img-BecE5qXd.js";
10
- import ho from "./Title-l36lOBMx.js";
11
- import { t as fo } from "./themes-AUNCOb2G.js";
12
- import po from "./Legend-G6GMcdAc.js";
13
- import rl from "./BaseIcon-BmMbm4d0.js";
14
- import { u as go } from "./useSvgExport-DrjCWun4.js";
15
- import { _ as mo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- function il(n, i) {
1
+ import { defineAsyncComponent as ye, useSlots as Go, onMounted as eo, computed as w, ref as k, shallowRef as ee, toRefs as Xo, watch as Ge, onBeforeUnmount as qo, createElementBlock as C, openBlock as h, unref as p, normalizeStyle as ie, normalizeClass as bt, createBlock as ce, createCommentVNode as M, createElementVNode as V, createVNode as Xe, withCtx as y, renderSlot as m, normalizeProps as B, guardReactiveProps as H, createSlots as to, Fragment as qe, renderList as wt, withKeys as oo, withModifiers as kt, mergeProps as Ct, createTextVNode as Ye, toDisplayString as je, Teleport as Yo, resolveDynamicComponent as jo, nextTick as Zo } from "vue";
2
+ import { c as Ze, t as Ko, b as Jo, p as D, e as Qo, o as lo, f as el, h as Le, a as Ke, d as De, X as $t, S as ao, J as no, G as so, P as tl, Q as ol, H as ll, ap as Tt, aq as Je } from "./lib-C_mNZmhD.js";
3
+ import { t as al, u as nl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as sl, a as uo } from "./useNestedProp-DjGXw6S9.js";
5
+ import { u as ul, B as rl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as il } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as cl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import vl from "./img-BecE5qXd.js";
10
+ import hl from "./Title-isbiM8i8.js";
11
+ import { t as fl } from "./themes-AUNCOb2G.js";
12
+ import pl from "./Legend-G6GMcdAc.js";
13
+ import ro from "./BaseIcon-BmMbm4d0.js";
14
+ import { u as gl } from "./useSvgExport-DrjCWun4.js";
15
+ import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ function io(n, i) {
17
17
  const u = n.length;
18
18
  if (u === 0)
19
19
  throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
20
20
  {
21
21
  let c = 1 / 0, r = -1 / 0, f = 0;
22
- for (let m = 0; m < u; m += 1) {
23
- const g = n[m].normalizedValue;
22
+ for (let b = 0; b < u; b += 1) {
23
+ const g = n[b].normalizedValue;
24
24
  g < c && (c = g), g > r && (r = g), f += g;
25
25
  }
26
26
  return Math.max(
@@ -29,7 +29,7 @@ function il(n, i) {
29
29
  );
30
30
  }
31
31
  }
32
- function cl(n) {
32
+ function co(n) {
33
33
  const { xOffset: i, yOffset: u, width: c, height: r } = n;
34
34
  return {
35
35
  x0: i,
@@ -38,78 +38,78 @@ function cl(n) {
38
38
  y1: u + r
39
39
  };
40
40
  }
41
- function yo(n, i, u) {
41
+ function yl(n, i, u) {
42
42
  if (n.length === 0)
43
43
  return !0;
44
44
  {
45
- const c = n.concat(i), r = il(
45
+ const c = n.concat(i), r = io(
46
46
  n,
47
47
  u
48
- ), f = il(c, u);
48
+ ), f = io(c, u);
49
49
  return r >= f;
50
50
  }
51
51
  }
52
- function bo(n) {
52
+ function bl(n) {
53
53
  const i = [], u = n.length;
54
54
  for (let c = 0; c < u; c += 1) {
55
55
  const r = n[c], f = r.length;
56
- for (let d = 0; d < f; d += 1)
57
- i.push(r[d]);
56
+ for (let v = 0; v < f; v += 1)
57
+ i.push(r[v]);
58
58
  }
59
59
  return i;
60
60
  }
61
- function wo(n, i) {
61
+ function wl(n, i) {
62
62
  const u = {
63
63
  ...i,
64
64
  children: n
65
65
  };
66
- return dl(u);
66
+ return ho(u);
67
67
  }
68
- function ko(n) {
68
+ function kl(n) {
69
69
  return (n.x1 - n.x0) * (n.y1 - n.y0);
70
70
  }
71
- function vl(n, i) {
72
- const { width: u, height: c, xOffset: r, yOffset: f } = Tt(i), d = n.length, m = n.map((T) => T.normalizedValue || 0).reduce((T, z) => T + z, 0), g = m / c, Q = m / u;
73
- let W = r, x = f;
71
+ function vo(n, i) {
72
+ const { width: u, height: c, xOffset: r, yOffset: f } = xt(i), v = n.length, b = n.map((S) => S.normalizedValue || 0).reduce((S, z) => S + z, 0), g = b / c, te = b / u;
73
+ let G = r, x = f;
74
74
  const _ = [];
75
75
  if (u >= c) {
76
- for (let T = 0; T < d; T += 1) {
77
- const z = n[T], q = x + z.normalizedValue / g, I = {
78
- x0: W,
76
+ for (let S = 0; S < v; S += 1) {
77
+ const z = n[S], j = x + z.normalizedValue / g, I = {
78
+ x0: G,
79
79
  y0: x,
80
- x1: W + g,
81
- y1: q
82
- }, B = Object.assign({}, z, I);
83
- x = q, _.push(B);
80
+ x1: G + g,
81
+ y1: j
82
+ }, E = Object.assign({}, z, I);
83
+ x = j, _.push(E);
84
84
  }
85
85
  return _;
86
86
  } else {
87
- for (let T = 0; T < d; T += 1) {
88
- const z = n[T], q = W + z.normalizedValue / Q, I = {
89
- x0: W,
87
+ for (let S = 0; S < v; S += 1) {
88
+ const z = n[S], j = G + z.normalizedValue / te, I = {
89
+ x0: G,
90
90
  y0: x,
91
- x1: q,
92
- y1: x + Q
93
- }, B = Object.assign({}, z, I);
94
- W = q, _.push(B);
91
+ x1: j,
92
+ y1: x + te
93
+ }, E = Object.assign({}, z, I);
94
+ G = j, _.push(E);
95
95
  }
96
96
  return _;
97
97
  }
98
98
  }
99
- function Co(n) {
100
- const i = Tt(n), u = i.width, c = i.height;
99
+ function Cl(n) {
100
+ const i = xt(n), u = i.width, c = i.height;
101
101
  return Math.min(u, c);
102
102
  }
103
- function $o(n, i) {
104
- const u = n.length, c = n.map((g) => g.value ?? 0).reduce((g, Q) => g + Q, 0), r = i / c, f = [];
105
- let d, m;
103
+ function $l(n, i) {
104
+ const u = n.length, c = n.map((g) => g.value ?? 0).reduce((g, te) => g + te, 0), r = i / c, f = [];
105
+ let v, b;
106
106
  for (let g = 0; g < u; g += 1)
107
- m = n[g], d = Object.assign({}, m, {
108
- normalizedValue: m.value * (r || 0)
109
- }), f.push(d);
107
+ b = n[g], v = Object.assign({}, b, {
108
+ normalizedValue: b.value * (r || 0)
109
+ }), f.push(v);
110
110
  return f;
111
111
  }
112
- function Tt(n) {
112
+ function xt(n) {
113
113
  const { x0: i, y0: u, x1: c, y1: r } = n;
114
114
  return {
115
115
  xOffset: i,
@@ -118,71 +118,71 @@ function Tt(n) {
118
118
  height: r - u
119
119
  };
120
120
  }
121
- function xo(n, i, u, c) {
122
- let r = n, f = i, d = u, m = c;
121
+ function Tl(n, i, u, c) {
122
+ let r = n, f = i, v = u, b = c;
123
123
  for (; ; ) {
124
124
  const g = r.length;
125
125
  if (g === 0) {
126
- const _ = vl(f, d);
127
- return m.concat(_);
126
+ const _ = vo(f, v);
127
+ return b.concat(_);
128
128
  }
129
- const Q = Co(d), W = r[0], x = r.slice(1, g);
130
- if (yo(f, W, Q)) {
131
- const _ = f.concat(W);
132
- r = x, f = _, d = d, m = m;
129
+ const te = Cl(v), G = r[0], x = r.slice(1, g);
130
+ if (yl(f, G, te)) {
131
+ const _ = f.concat(G);
132
+ r = x, f = _, v = v, b = b;
133
133
  } else {
134
134
  const _ = f.length;
135
- let T = 0;
136
- for (let B = 0; B < _; B += 1)
137
- T += f[B].normalizedValue;
138
- const z = To(d, T), q = vl(f, d), I = m.concat(q);
139
- r = r, f = [], d = z, m = I;
135
+ let S = 0;
136
+ for (let E = 0; E < _; E += 1)
137
+ S += f[E].normalizedValue;
138
+ const z = xl(v, S), j = vo(f, v), I = b.concat(j);
139
+ r = r, f = [], v = z, b = I;
140
140
  }
141
141
  }
142
142
  }
143
- function dl(n) {
143
+ function ho(n) {
144
144
  if (typeof n.children > "u" || !n.children.length)
145
145
  return [n];
146
146
  {
147
- const i = $o(
147
+ const i = $l(
148
148
  n.children,
149
- ko(n)
150
- ), u = xo(i, [], n, []), c = u.length, r = [];
151
- for (let d = 0; d < c; d += 1)
152
- r.push(dl(u[d]));
153
- return bo(r);
149
+ kl(n)
150
+ ), u = Tl(i, [], n, []), c = u.length, r = [];
151
+ for (let v = 0; v < c; v += 1)
152
+ r.push(ho(u[v]));
153
+ return bl(r);
154
154
  }
155
155
  }
156
- function To(n, i) {
157
- const { width: u, height: c, xOffset: r, yOffset: f } = Tt(n);
156
+ function xl(n, i) {
157
+ const { width: u, height: c, xOffset: r, yOffset: f } = xt(n);
158
158
  if (u >= c) {
159
- const d = i / c, m = u - d, g = {
160
- xOffset: r + d,
159
+ const v = i / c, b = u - v, g = {
160
+ xOffset: r + v,
161
161
  yOffset: f,
162
- width: m,
162
+ width: b,
163
163
  height: c
164
164
  };
165
- return cl(g);
165
+ return co(g);
166
166
  } else {
167
- const d = i / u, m = c - d, g = {
167
+ const v = i / u, b = c - v, g = {
168
168
  xOffset: r,
169
- yOffset: f + d,
169
+ yOffset: f + v,
170
170
  width: u,
171
- height: m
171
+ height: b
172
172
  };
173
- return cl(g);
173
+ return co(g);
174
174
  }
175
175
  }
176
- const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Ao = { class: "vue-ui-treemap-crumb-unit" }, Fo = { class: "vue-ui-treemap-crumb-unit-label" }, Mo = {
176
+ const Sl = ["id"], Ol = ["id"], _l = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Al = { class: "vue-ui-treemap-crumb-unit" }, Fl = { class: "vue-ui-treemap-crumb-unit-label" }, Ml = {
177
177
  key: 0,
178
178
  style: { width: "24px", display: "flex", "align-items": "center" }
179
- }, Io = {
179
+ }, Il = {
180
180
  key: 0,
181
181
  class: "vue-ui-treemap-crumb-unit-arrow"
182
- }, No = ["xmlns", "viewBox"], Lo = { key: 0 }, Do = ["id"], zo = ["stop-color"], Ro = ["stop-color"], Po = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Vo = ["innerHTML"], Bo = ["x", "y", "height", "width"], Ho = {
182
+ }, Nl = ["xmlns", "viewBox"], Ll = { key: 0 }, Dl = ["id"], zl = ["stop-color"], Rl = ["stop-color"], Pl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Vl = ["innerHTML"], Bl = ["x", "y", "height", "width"], Hl = {
183
183
  key: 5,
184
184
  class: "vue-data-ui-watermark"
185
- }, Eo = ["id"], Wo = ["onClick"], Uo = ["innerHTML"], Go = {
185
+ }, El = ["id"], Wl = ["onClick"], Ul = ["innerHTML"], Gl = {
186
186
  __name: "vue-ui-treemap",
187
187
  props: {
188
188
  config: {
@@ -200,12 +200,12 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
200
200
  },
201
201
  emits: ["selectLegend", "selectDatapoint"],
202
202
  setup(n, { expose: i, emit: u }) {
203
- const c = ge(() => import("./DataTable-BT7VF2ua.js")), r = ge(() => import("./PenAndPaper-DSvu9dwa.js")), f = ge(() => import("./vue-ui-accordion-CZ0thhxa.js")), d = ge(() => import("./Tooltip-oWCO1HKy.js")), m = ge(() => import("./UserOptions-CGnQt6Fd.js")), g = ge(() => import("./PackageVersion-Cyx_s25h.js")), Q = ge(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_treemap: W } = no(), x = n, _ = u, T = Ul();
204
- el(() => {
205
- T["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
203
+ const c = ye(() => import("./DataTable-BT7VF2ua.js")), r = ye(() => import("./PenAndPaper-SZQIAgkg.js")), f = ye(() => import("./vue-ui-accordion-CqhVCfc2.js")), v = ye(() => import("./Tooltip-oWCO1HKy.js")), b = ye(() => import("./UserOptions-CGnQt6Fd.js")), g = ye(() => import("./PackageVersion-DQvyATVa.js")), te = ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_treemap: G } = sl(), x = n, _ = u, S = Go();
204
+ eo(() => {
205
+ S["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
206
206
  });
207
- const z = y(() => !!x.dataset && x.dataset.length), q = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), I = b(Ze()), B = b(!1), Qe = b(""), ie = b(!1), St = b(0), R = b([]), U = J(null), Ot = J(null), _t = J(null), At = J(null), Ft = J(null), Mt = b(0), et = b(0), tt = b(0), F = b([]), lt = b(null), It = b(!1), Ae = b(null), ot = b(null), t = b(ut()), { loading: be, FINAL_DATASET: at, manualLoading: hl } = so({
208
- ...Gl(x),
207
+ const z = w(() => !!x.dataset && x.dataset.length), j = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), I = k(Ze()), E = k(!1), Qe = k(""), de = k(!1), St = k(0), R = k([]), X = ee(null), Ot = ee(null), _t = ee(null), At = ee(null), Ft = ee(null), Mt = k(0), et = k(0), tt = k(0), F = k([]), ot = k(null), It = k(!1), Ae = k(null), lt = k(null), t = k(ut()), { loading: be, FINAL_DATASET: at, manualLoading: fo } = ul({
208
+ ...Xo(x),
209
209
  FINAL_CONFIG: t,
210
210
  prepareConfig: ut,
211
211
  skeletonDataset: [
@@ -224,7 +224,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
224
224
  ]
225
225
  }
226
226
  ],
227
- skeletonConfig: Zl({
227
+ skeletonConfig: Ko({
228
228
  defaultConfig: t.value,
229
229
  userConfig: {
230
230
  userOptions: { show: !1 },
@@ -246,28 +246,28 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
246
246
  }
247
247
  }
248
248
  })
249
- }), { userOptionsVisible: nt, setUserOptionsVisibility: Nt, keepUserOptionState: Lt } = io({ config: t.value }), { svgRef: st } = co({ config: t.value.style.chart.title });
249
+ }), { userOptionsVisible: nt, setUserOptionsVisibility: Nt, keepUserOptionState: Lt } = cl({ config: t.value }), { svgRef: st } = dl({ config: t.value.style.chart.title });
250
250
  function ut() {
251
- const e = ul({
251
+ const e = uo({
252
252
  userConfig: x.config,
253
- defaultConfig: W
253
+ defaultConfig: G
254
254
  });
255
255
  return e.theme ? {
256
- ...ul({
257
- userConfig: fo.vue_ui_treemap[e.theme] || x.config,
256
+ ...uo({
257
+ userConfig: fl.vue_ui_treemap[e.theme] || x.config,
258
258
  defaultConfig: e
259
259
  }),
260
- customPalette: Kl[e.theme] || D
260
+ customPalette: Jo[e.theme] || D
261
261
  } : e;
262
262
  }
263
263
  Ge(() => x.config, (e) => {
264
264
  be.value || (t.value = ut()), nt.value = !t.value.userOptions.showOnChartHover, Mt.value += 1, et.value += 1, tt.value += 1, P.value.showTable = t.value.table.show, P.value.showTooltip = t.value.style.chart.tooltip.show;
265
265
  }, { deep: !0 });
266
- const { isPrinting: Dt, isImaging: zt, generatePdf: Rt, generateImage: Pt } = ro({
266
+ const { isPrinting: Dt, isImaging: zt, generatePdf: Rt, generateImage: Pt } = il({
267
267
  elementId: `treemap_${I.value}`,
268
268
  fileName: t.value.style.chart.title.text || "vue-ui-treemap",
269
269
  options: t.value.userOptions.print
270
- }), fl = y(() => t.value.userOptions.show && !t.value.style.chart.title.text), ze = y(() => Jl(t.value.customPalette)), P = b({
270
+ }), po = w(() => t.value.userOptions.show && !t.value.style.chart.title.text), ze = w(() => Qo(t.value.customPalette)), P = k({
271
271
  showTable: t.value.table.show,
272
272
  showTooltip: t.value.style.chart.tooltip.show
273
273
  });
@@ -277,35 +277,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
277
277
  showTooltip: t.value.style.chart.tooltip.show
278
278
  };
279
279
  }, { immediate: !0 });
280
- const Fe = b({
280
+ const Fe = k({
281
281
  height: t.value.style.chart.height,
282
282
  width: t.value.style.chart.width
283
283
  });
284
- function pl(e) {
285
- const l = U.value, o = Fe.value.height;
284
+ function go(e) {
285
+ const l = X.value, o = Fe.value.height;
286
286
  if (!l || !o) return e;
287
287
  const a = l.getBoundingClientRect();
288
288
  return e * (o / a.height);
289
289
  }
290
- function gl() {
291
- if (!lt.value || Y.value.length <= 1) return 0;
292
- const e = lt.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
293
- return pl(o);
290
+ function mo() {
291
+ if (!ot.value || Z.value.length <= 1) return 0;
292
+ const e = ot.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
293
+ return go(o);
294
294
  }
295
- const H = y(() => {
296
- const e = t.value.style.chart.padding, l = Fe.value.width, o = Fe.value.height, a = gl(), s = e.left, v = l - e.right, k = e.top, L = o - e.bottom - a;
295
+ const W = w(() => {
296
+ const e = t.value.style.chart.padding, l = Fe.value.width, o = Fe.value.height, a = mo(), s = e.left, d = l - e.right, $ = e.top, L = o - e.bottom - a;
297
297
  return {
298
298
  left: s,
299
- top: k,
300
- right: v,
299
+ top: $,
300
+ right: d,
301
301
  bottom: L,
302
- width: v - s,
303
- height: Math.max(0, L - k),
302
+ width: d - s,
303
+ height: Math.max(0, L - $),
304
304
  vbWidth: l,
305
305
  vbHeight: o - a,
306
306
  offsetY: a
307
307
  };
308
- }), N = b(at.value), ee = b(N.value), Vt = J(/* @__PURE__ */ new Map());
308
+ }), N = k(at.value), oe = k(N.value), Vt = ee(/* @__PURE__ */ new Map());
309
309
  function Bt(e) {
310
310
  Array.isArray(e) && e.forEach((l, o) => {
311
311
  l.id || (l.id = Ze());
@@ -318,35 +318,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
318
318
  o.id || (o.id = Ze()), o.parentId = e.id, o.color = l, Ht(o, l);
319
319
  });
320
320
  }
321
- function ml() {
321
+ function yo() {
322
322
  if (!F.value.length)
323
- ee.value = N.value.slice();
323
+ oe.value = N.value.slice();
324
324
  else {
325
- const e = F.value[F.value.length - 1], l = le(e);
326
- ee.value = l?.children?.slice() || [];
325
+ const e = F.value[F.value.length - 1], l = ae(e);
326
+ oe.value = l?.children?.slice() || [];
327
327
  }
328
328
  }
329
329
  Ge(
330
330
  () => at.value,
331
331
  () => {
332
- N.value = at.value, Bt(N.value), ml(), tt.value += 1, et.value += 1;
332
+ N.value = at.value, Bt(N.value), yo(), tt.value += 1, et.value += 1;
333
333
  },
334
334
  { deep: !0, immediate: !0, flush: "post" }
335
335
  );
336
- const te = J(null), we = J(null);
337
- el(() => {
338
- It.value = !0, bl();
336
+ const le = ee(null), we = ee(null);
337
+ eo(() => {
338
+ It.value = !0, wo();
339
339
  });
340
- const yl = y(() => t.value.debug);
341
- function bl() {
342
- if (ol(x.dataset) && Ql({
340
+ const bo = w(() => t.value.debug);
341
+ function wo() {
342
+ if (lo(x.dataset) && el({
343
343
  componentName: "VueUiTreemap",
344
344
  type: "dataset",
345
- debug: yl.value
346
- }), Bt(N.value), ol(x.dataset) || (hl.value = t.value.loading), t.value.responsive) {
347
- const e = oo(() => {
348
- const { width: l, height: o } = ao({
349
- chart: U.value,
345
+ debug: bo.value
346
+ }), Bt(N.value), lo(x.dataset) || (fo.value = t.value.loading), t.value.responsive) {
347
+ const e = al(() => {
348
+ const { width: l, height: o } = nl({
349
+ chart: X.value,
350
350
  title: t.value.style.chart.title.text ? Ot.value : null,
351
351
  legend: t.value.style.chart.legend.show ? _t.value : null,
352
352
  source: At.value,
@@ -356,16 +356,16 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
356
356
  Fe.value.width = l, Fe.value.height = o - 12;
357
357
  });
358
358
  });
359
- te.value && (we.value && te.value.unobserve(we.value), te.value.disconnect()), te.value = new ResizeObserver(e), we.value = U.value.parentNode, te.value.observe(we.value);
359
+ le.value && (we.value && le.value.unobserve(we.value), le.value.disconnect()), le.value = new ResizeObserver(e), we.value = X.value.parentNode, le.value.observe(we.value);
360
360
  }
361
361
  }
362
- Xl(() => {
363
- te.value && (we.value && te.value.unobserve(we.value), te.value.disconnect());
362
+ qo(() => {
363
+ le.value && (we.value && le.value.unobserve(we.value), le.value.disconnect());
364
364
  });
365
- const Me = y(() => ee.value.map((e, l) => ({
365
+ const Me = w(() => oe.value.map((e, l) => ({
366
366
  ...e,
367
367
  color: Le(e.color) || ze.value[l] || D[l] || D[l % D.length]
368
- })).filter((e) => !R.value.includes(e.id))), ke = y(() => N.value.filter((e) => !R.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), rt = y({
368
+ })).filter((e) => !R.value.includes(e.id))), ke = w(() => N.value.filter((e) => !R.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), rt = w({
369
369
  get() {
370
370
  let e = [...Me.value];
371
371
  return t.value.style.chart.layout.sorted && (e = [...Me.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
@@ -379,25 +379,25 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
379
379
  function Et(e, l) {
380
380
  return e.value / l;
381
381
  }
382
- function wl(e, l, o) {
382
+ function ko(e, l, o) {
383
383
  const a = t.value.style.chart.layout.rects.colorRatio - Et(l, o);
384
- return al(e, a < 0 ? 0 : a);
384
+ return ao(e, a < 0 ? 0 : a);
385
385
  }
386
386
  function Wt(e, l, o, a) {
387
- return e.map((s, v) => {
388
- const k = wl(Le(l) || ze.value[v] || D[v] || D[v % D.length], s, a), L = Et(s, a);
387
+ return e.map((s, d) => {
388
+ const $ = ko(Le(l) || ze.value[d] || D[d] || D[d % D.length], s, a), L = Et(s, a);
389
389
  return {
390
390
  ...s,
391
- color: k,
391
+ color: $,
392
392
  proportion: L,
393
393
  parentName: o,
394
- children: s.children ? Wt(s.children, k, s.name, a) : void 0
394
+ children: s.children ? Wt(s.children, $, s.name, a) : void 0
395
395
  };
396
396
  });
397
397
  }
398
- const Ie = y(() => {
398
+ const Ie = w(() => {
399
399
  const e = rt.value.map((l) => Number(l.value) || 0).reduce((l, o) => l + o, 0) || 1;
400
- return wo(
400
+ return wl(
401
401
  rt.value.map((l) => {
402
402
  const o = l.children ? l.children.reduce((a, s) => a + (Number(s.value) || 0), 0) : l.value;
403
403
  return {
@@ -415,10 +415,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
415
415
  };
416
416
  }),
417
417
  {
418
- x0: H.value.left,
419
- y0: H.value.top,
420
- x1: H.value.left + H.value.width,
421
- y1: H.value.top + H.value.height
418
+ x0: W.value.left,
419
+ y0: W.value.top,
420
+ x1: W.value.left + W.value.width,
421
+ y1: W.value.top + W.value.height
422
422
  }
423
423
  );
424
424
  });
@@ -428,75 +428,75 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
428
428
  function $e({ x0: e, x1: l }) {
429
429
  return l - e <= 0 ? 1e-4 : l - e;
430
430
  }
431
- function xe(e) {
432
- const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, s = l.fontSize * 2, v = 0.5, k = 0.6, L = 1, ce = 0.9;
433
- let oe = e.proportion;
434
- if (!(typeof oe == "number" && isFinite(oe))) {
435
- const We = Math.max(1e-6, $e(e) * Ce(e)), ve = Math.max(1e-6, H.value.width * H.value.height);
436
- oe = We / ve;
431
+ function Te(e) {
432
+ const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, s = l.fontSize * 2, d = 0.5, $ = 0.6, L = 1, ve = 0.9;
433
+ let ne = e.proportion;
434
+ if (!(typeof ne == "number" && isFinite(ne))) {
435
+ const We = Math.max(1e-6, $e(e) * Ce(e)), he = Math.max(1e-6, W.value.width * W.value.height);
436
+ ne = We / he;
437
437
  }
438
- const Ee = Math.pow(Math.min(1, Math.max(0, oe)), v), ae = k + (L - k) * Ee;
439
- let ne = o * ae;
438
+ const Ee = Math.pow(Math.min(1, Math.max(0, ne)), d), se = $ + (L - $) * Ee;
439
+ let ue = o * se;
440
440
  const ht = Math.max(1e-4, Math.min($e(e), Ce(e)));
441
- return ne = Math.min(ne, ht * ce), ne = Math.max(a, Math.min(s, ne)), ne;
441
+ return ue = Math.min(ue, ht * ve), ue = Math.max(a, Math.min(s, ue)), ue;
442
442
  }
443
443
  function Ut(e) {
444
- ie.value = e, St.value += 1;
444
+ de.value = e, St.value += 1;
445
445
  }
446
- const Te = y(() => ({
446
+ const xe = w(() => ({
447
447
  startX: 0,
448
448
  startY: 0,
449
- width: H.value.vbWidth,
450
- height: H.value.vbHeight
449
+ width: W.value.vbWidth,
450
+ height: W.value.vbHeight
451
451
  }));
452
- function le(e, l = N.value) {
452
+ function ae(e, l = N.value) {
453
453
  for (const o of l) {
454
454
  if (o.id === e)
455
455
  return o;
456
456
  if (o.children) {
457
- const a = le(e, o.children);
457
+ const a = ae(e, o.children);
458
458
  if (a)
459
459
  return a;
460
460
  }
461
461
  }
462
462
  return null;
463
463
  }
464
- const Se = y(() => F.value.length > 0);
464
+ const Se = w(() => F.value.length > 0);
465
465
  function Re(e, l) {
466
466
  if (!e) {
467
- ee.value = N.value.slice(), _("selectDatapoint", void 0), F.value = [];
467
+ oe.value = N.value.slice(), _("selectDatapoint", void 0), F.value = [];
468
468
  return;
469
469
  }
470
470
  t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: l });
471
- const o = le(e.id);
471
+ const o = ae(e.id);
472
472
  if (o && o.children?.length)
473
- F.value.push(o.id), ee.value = o.children.slice(), _("selectDatapoint", e);
473
+ F.value.push(o.id), oe.value = o.children.slice(), _("selectDatapoint", e);
474
474
  else if (e.parentId) {
475
475
  F.value.push(e.parentId);
476
- const a = le(e.parentId);
477
- ee.value = a.children.slice(), _("selectDatapoint", e);
476
+ const a = ae(e.parentId);
477
+ oe.value = a.children.slice(), _("selectDatapoint", e);
478
478
  } else if (F.value.length > 0) {
479
479
  F.value.pop();
480
480
  const a = F.value[F.value.length - 1];
481
481
  if (a) {
482
- const s = le(a);
483
- ee.value = s.children.slice();
482
+ const s = ae(a);
483
+ oe.value = s.children.slice();
484
484
  } else
485
- ee.value = N.value.slice(), F.value = [], _("selectDatapoint", void 0);
485
+ oe.value = N.value.slice(), F.value = [], _("selectDatapoint", void 0);
486
486
  }
487
487
  }
488
- function kl(e) {
489
- return !!(le(e.id)?.children?.length || e.parentId);
488
+ function Co(e) {
489
+ return !!(ae(e.id)?.children?.length || e.parentId);
490
490
  }
491
- const Y = y(() => {
491
+ const Z = w(() => {
492
492
  const e = [
493
493
  { id: null, label: "All" }
494
494
  ];
495
495
  if (F.value.length > 0) {
496
- let l = le(F.value[F.value.length - 1]);
496
+ let l = ae(F.value[F.value.length - 1]);
497
497
  const o = [];
498
498
  for (; l; )
499
- o.unshift(l), l = l.parentId ? le(l.parentId) : null;
499
+ o.unshift(l), l = l.parentId ? ae(l.parentId) : null;
500
500
  for (const a of o)
501
501
  e.push({
502
502
  id: a.id,
@@ -505,7 +505,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
505
505
  });
506
506
  }
507
507
  return e;
508
- }), G = J(null), it = y(() => N.value.map((e, l) => ({
508
+ }), q = ee(null), it = w(() => N.value.map((e, l) => ({
509
509
  ...e,
510
510
  color: Le(e.color) || ze.value[l] || D[l] || D[l % D.length],
511
511
  shape: "square"
@@ -527,7 +527,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
527
527
  { datapoint: e }
528
528
  ) : ""}${t.value.style.chart.legend.showPercentage ? R.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 ? ")" : ""}` : ""}`
529
529
  };
530
- })), Cl = y(() => ({
530
+ })), $o = w(() => ({
531
531
  cy: "treemap-div-legend",
532
532
  backgroundColor: t.value.style.chart.legend.backgroundColor,
533
533
  color: t.value.style.chart.legend.color,
@@ -536,7 +536,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
536
536
  fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
537
537
  }));
538
538
  function Pe(e) {
539
- G.value = null, R.value.includes(e.id) ? R.value = R.value.filter((l) => l !== e.id) : R.value.length < x.dataset.length - 1 && R.value.push(e.id), _("selectLegend", rt.value);
539
+ q.value = null, R.value.includes(e.id) ? R.value = R.value.filter((l) => l !== e.id) : R.value.length < x.dataset.length - 1 && R.value.push(e.id), _("selectLegend", rt.value);
540
540
  }
541
541
  function Gt(e) {
542
542
  if (!N.value.length)
@@ -544,22 +544,22 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
544
544
  const l = N.value.find((o) => o.name === e);
545
545
  return l || (t.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null);
546
546
  }
547
- function $l(e) {
547
+ function To(e) {
548
548
  const l = Gt(e);
549
549
  l !== null && R.value.includes(l.id) && Pe({ id: l.id });
550
550
  }
551
- function xl(e) {
551
+ function xo(e) {
552
552
  const l = Gt(e);
553
553
  l !== null && (R.value.includes(l.id) || Pe({ id: l.id }));
554
554
  }
555
- function Tl({ datapoint: e, seriesIndex: l }) {
556
- G.value = null, B.value = !1, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
555
+ function So({ datapoint: e, seriesIndex: l }) {
556
+ q.value = null, E.value = !1, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
557
557
  }
558
- const ct = b(null);
559
- function Sl({ datapoint: e, seriesIndex: l }) {
560
- t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), G.value = e, ct.value = { datapoint: e, seriesIndex: l, config: t.value, series: Me.value };
558
+ const ct = k(null);
559
+ function Oo({ datapoint: e, seriesIndex: l }) {
560
+ t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), q.value = e, ct.value = { datapoint: e, seriesIndex: l, config: t.value, series: Me.value };
561
561
  const o = t.value.style.chart.tooltip.customFormat;
562
- if (sl(o) && lo(() => o({
562
+ if (so(o) && ll(() => o({
563
563
  seriesIndex: l,
564
564
  datapoint: e,
565
565
  series: Me.value,
@@ -585,35 +585,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
585
585
  { datapoint: e, seriesIndex: l }
586
586
  )}</b>`, Qe.value = `<div>${a}</div>`;
587
587
  }
588
- B.value = !0;
588
+ E.value = !0;
589
589
  }
590
- const j = y(() => {
590
+ const K = w(() => {
591
591
  const e = Ie.value.map((o) => ({
592
592
  name: o.name,
593
593
  color: o.color
594
594
  })), l = Ie.value.map((o) => o.value);
595
595
  return { head: e, body: l };
596
596
  });
597
- function vt(e = null) {
598
- jl(() => {
599
- const l = j.value.head.map((s, v) => [[
597
+ function dt(e = null) {
598
+ Zo(() => {
599
+ const l = K.value.head.map((s, d) => [[
600
600
  s.name
601
- ], [j.value.body[v]], [isNaN(j.value.body[v] / ke.value) ? "-" : j.value.body[v] / ke.value * 100]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = eo(o);
602
- e ? e(a) : to({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
601
+ ], [K.value.body[d]], [isNaN(K.value.body[d] / ke.value) ? "-" : K.value.body[d] / ke.value * 100]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = tl(o);
602
+ e ? e(a) : ol({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
603
603
  });
604
604
  }
605
- const Ve = y(() => {
605
+ const Ve = w(() => {
606
606
  const e = [
607
607
  t.value.table.columnNames.series,
608
608
  t.value.table.columnNames.value,
609
609
  t.value.table.columnNames.percentage
610
- ], l = j.value.head.map((s, v) => {
611
- const k = Ke(
610
+ ], l = K.value.head.map((s, d) => {
611
+ const $ = Ke(
612
612
  t.value.style.chart.layout.labels.formatter,
613
- j.value.body[v],
613
+ K.value.body[d],
614
614
  De({
615
615
  p: t.value.style.chart.layout.labels.prefix,
616
- v: j.value.body[v],
616
+ v: K.value.body[d],
617
617
  s: t.value.style.chart.layout.labels.suffix,
618
618
  r: t.value.table.td.roundingValue
619
619
  })
@@ -624,9 +624,9 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
624
624
  name: s.name,
625
625
  shape: "square"
626
626
  },
627
- k,
628
- isNaN(j.value.body[v] / ke.value) ? "-" : De({
629
- v: j.value.body[v] / ke.value * 100,
627
+ $,
628
+ isNaN(K.value.body[d] / ke.value) ? "-" : De({
629
+ v: K.value.body[d] / ke.value * 100,
630
630
  s: "%",
631
631
  r: t.value.table.td.roundingPercentage
632
632
  })
@@ -654,7 +654,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
654
654
  config: o
655
655
  };
656
656
  });
657
- function Ol() {
657
+ function _o() {
658
658
  return Ie.value;
659
659
  }
660
660
  function Xt() {
@@ -663,41 +663,41 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
663
663
  function qt() {
664
664
  P.value.showTooltip = !P.value.showTooltip;
665
665
  }
666
- const Be = b(!1);
667
- function dt() {
666
+ const Be = k(!1);
667
+ function vt() {
668
668
  Be.value = !Be.value;
669
669
  }
670
- const He = b(null);
670
+ const He = k(null);
671
671
  function Yt(e) {
672
672
  He.value = e;
673
673
  }
674
674
  function jt() {
675
675
  He.value = null;
676
676
  }
677
- async function _l({ scale: e = 2 } = {}) {
678
- if (!U.value) return;
679
- const { width: l, height: o } = U.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: v } = await vo({ domElement: U.value, base64: !0, img: !0, scale: e });
677
+ async function Ao({ scale: e = 2 } = {}) {
678
+ if (!X.value) return;
679
+ const { width: l, height: o } = X.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: d } = await vl({ domElement: X.value, base64: !0, img: !0, scale: e });
680
680
  return {
681
681
  imageUri: s,
682
- base64: v,
682
+ base64: d,
683
683
  title: t.value.style.chart.title.text,
684
684
  width: l,
685
685
  height: o,
686
686
  aspectRatio: a
687
687
  };
688
688
  }
689
- const Ne = y(() => {
689
+ const Ne = w(() => {
690
690
  const e = t.value.table.useDialog && !t.value.table.show, l = P.value.showTable;
691
691
  return {
692
- component: e ? Q : f,
692
+ component: e ? te : f,
693
693
  title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
694
694
  props: e ? {
695
695
  backgroundColor: t.value.table.th.backgroundColor,
696
696
  color: t.value.table.th.color,
697
697
  headerColor: t.value.table.th.color,
698
698
  headerBg: t.value.table.th.backgroundColor,
699
- isFullscreen: ie.value,
700
- fullscreenParent: U.value,
699
+ isFullscreen: de.value,
700
+ fullscreenParent: X.value,
701
701
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
702
702
  } : {
703
703
  hideDetails: !0,
@@ -720,31 +720,31 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
720
720
  t.value.table.show || (e && t.value.table.useDialog && Ae.value ? Ae.value.open() : "close" in Ae.value && Ae.value.close());
721
721
  });
722
722
  function Zt() {
723
- P.value.showTable = !1, ot.value && ot.value.setTableIconState(!1);
723
+ P.value.showTable = !1, lt.value && lt.value.setTableIconState(!1);
724
724
  }
725
- const Al = y(() => it.value.map((e) => ({
725
+ const Fo = w(() => it.value.map((e) => ({
726
726
  ...e,
727
727
  name: e.display
728
- }))), Fl = y(() => t.value.style.chart.backgroundColor), Ml = y(() => t.value.style.chart.legend), Il = y(() => t.value.style.chart.title), { exportSvg: Nl, getSvg: Ll } = go({
728
+ }))), Mo = w(() => t.value.style.chart.backgroundColor), Io = w(() => t.value.style.chart.legend), No = w(() => t.value.style.chart.title), { exportSvg: Lo, getSvg: Do } = gl({
729
729
  svg: st,
730
- title: Il,
731
- legend: Ml,
732
- legendItems: Al,
733
- backgroundColor: Fl
730
+ title: No,
731
+ legend: Io,
732
+ legendItems: Fo,
733
+ backgroundColor: Mo
734
734
  });
735
735
  async function Kt({ isCb: e }) {
736
736
  if (e) {
737
- const { blob: l, url: o, text: a, dataUrl: s } = await Ll();
737
+ const { blob: l, url: o, text: a, dataUrl: s } = await Do();
738
738
  t.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: s });
739
739
  } else
740
- Nl();
740
+ Lo();
741
741
  }
742
- function Dl({ rect: e, seriesIndex: l }) {
742
+ function zo({ rect: e, seriesIndex: l }) {
743
743
  const o = t.value.style.chart.layout.labels.name.show, a = t.value.style.chart.layout.labels.value.show;
744
744
  if (!o && !a) return "";
745
- const s = Math.max(2, xe(e) / 3), v = Math.max(8, xe(e)), k = v * 1.2, L = Math.max(0, $e(e) - s * 2), ce = Math.max(0, Ce(e) - s * 2);
746
- if (L <= 2 || ce <= v * 0.8) return "";
747
- const oe = t.value.style.fontFamily, Ee = t.value.style.chart.layout.labels.name.bold ? "600" : "400", ae = t.value.style.chart.layout.labels.value.bold ? "600" : "400", ne = nl(e.color), ht = o ? String(e.name ?? "") : "", We = a ? Ke(
745
+ const s = Math.max(2, Te(e) / 3), d = Math.max(8, Te(e)), $ = d * 1.2, L = Math.max(0, $e(e) - s * 2), ve = Math.max(0, Ce(e) - s * 2);
746
+ if (L <= 2 || ve <= d * 0.8) return "";
747
+ const ne = t.value.style.fontFamily, Ee = t.value.style.chart.layout.labels.name.bold ? "600" : "400", se = t.value.style.chart.layout.labels.value.bold ? "600" : "400", ue = no(e.color), ht = o ? String(e.name ?? "") : "", We = a ? Ke(
748
748
  t.value.style.chart.layout.labels.formatter,
749
749
  e.value,
750
750
  De({
@@ -755,118 +755,118 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
755
755
  }),
756
756
  { datapoint: e, seriesIndex: l }
757
757
  ) : "";
758
- function ve(he, fe = v, _e = "400") {
759
- const E = document.createElementNS($t, "svg");
760
- E.setAttribute("width", "0"), E.setAttribute("height", "0"), E.style.position = "absolute", E.style.visibility = "hidden", E.style.pointerEvents = "none";
761
- const X = document.createElementNS($t, "text");
762
- X.setAttribute("font-size", String(fe)), X.setAttribute("font-family", oe), X.setAttribute("font-weight", String(_e)), X.textContent = he || "", E.appendChild(X), document.body.appendChild(E);
763
- const Qt = X.getComputedTextLength();
764
- return document.body.removeChild(E), Qt;
758
+ function he(pe, ge = d, _e = "400") {
759
+ const U = document.createElementNS($t, "svg");
760
+ U.setAttribute("width", "0"), U.setAttribute("height", "0"), U.style.position = "absolute", U.style.visibility = "hidden", U.style.pointerEvents = "none";
761
+ const Y = document.createElementNS($t, "text");
762
+ Y.setAttribute("font-size", String(ge)), Y.setAttribute("font-family", ne), Y.setAttribute("font-weight", String(_e)), Y.textContent = pe || "", U.appendChild(Y), document.body.appendChild(U);
763
+ const Qt = Y.getComputedTextLength();
764
+ return document.body.removeChild(U), Qt;
765
765
  }
766
- function Rl(he, fe, _e, E, X, Qt) {
767
- const Bl = String(he).split(/\s+/).filter(Boolean), A = [];
768
- let se = "";
769
- function pe(S) {
770
- return ve(S, _e, E) <= fe;
766
+ function Po(pe, ge, _e, U, Y, Qt) {
767
+ const Ho = String(pe).split(/\s+/).filter(Boolean), A = [];
768
+ let re = "";
769
+ function me(O) {
770
+ return he(O, _e, U) <= ge;
771
771
  }
772
- function Hl(S) {
773
- if (pe(S)) return [S];
774
- const K = [];
775
- let C = 0;
776
- for (; C < S.length; ) {
777
- let gt = 1, mt = S.length - C, yt = 1;
772
+ function Eo(O) {
773
+ if (me(O)) return [O];
774
+ const Q = [];
775
+ let T = 0;
776
+ for (; T < O.length; ) {
777
+ let gt = 1, mt = O.length - T, yt = 1;
778
778
  for (; gt <= mt; ) {
779
- const Ue = gt + mt >> 1, Wl = S.slice(C, C + Ue);
780
- pe(Wl) ? (yt = Ue, gt = Ue + 1) : mt = Ue - 1;
779
+ const Ue = gt + mt >> 1, Uo = O.slice(T, T + Ue);
780
+ me(Uo) ? (yt = Ue, gt = Ue + 1) : mt = Ue - 1;
781
781
  }
782
- K.push(S.slice(C, C + yt)), C += yt;
782
+ Q.push(O.slice(T, T + yt)), T += yt;
783
783
  }
784
- return K;
784
+ return Q;
785
785
  }
786
- const El = Bl.flatMap((S) => Hl(S));
787
- for (const S of El) {
788
- const K = se ? se + " " + S : S;
789
- if (pe(K))
790
- se = K;
791
- else if (se && A.push(se), se = S, A.length === X - 1) break;
786
+ const Wo = Ho.flatMap((O) => Eo(O));
787
+ for (const O of Wo) {
788
+ const Q = re ? re + " " + O : O;
789
+ if (me(Q))
790
+ re = Q;
791
+ else if (re && A.push(re), re = O, A.length === Y - 1) break;
792
792
  }
793
- if (se && A.length < X && A.push(se), A.length === X) {
794
- const S = A[A.length - 1];
795
- if (!pe(S)) {
796
- let C = S;
797
- for (; C.length && !pe(C); ) C = C.slice(0, -1);
798
- A[A.length - 1] = C;
793
+ if (re && A.length < Y && A.push(re), A.length === Y) {
794
+ const O = A[A.length - 1];
795
+ if (!me(O)) {
796
+ let T = O;
797
+ for (; T.length && !me(T); ) T = T.slice(0, -1);
798
+ A[A.length - 1] = T;
799
799
  }
800
- let K = A[A.length - 1] + "…";
801
- if (!pe(K)) {
802
- let C = A[A.length - 1];
803
- for (; C.length && !pe(C + "…"); ) C = C.slice(0, -1);
804
- K = C + "…";
800
+ let Q = A[A.length - 1] + "…";
801
+ if (!me(Q)) {
802
+ let T = A[A.length - 1];
803
+ for (; T.length && !me(T + "…"); ) T = T.slice(0, -1);
804
+ Q = T + "…";
805
805
  }
806
- A[A.length - 1] = K;
806
+ A[A.length - 1] = Q;
807
807
  }
808
808
  return A;
809
809
  }
810
- const Pl = a ? 1 : 0, Jt = Math.max(0, Math.floor(ce / k) - Pl);
810
+ const Vo = a ? 1 : 0, Jt = Math.max(0, Math.floor(ve / $) - Vo);
811
811
  if (Jt <= 0) {
812
812
  if (!a) return "";
813
- const he = e.x0 + s, fe = e.y0 + s + v, _e = xt(We);
814
- return ve(_e, v, ae) <= L ? `
813
+ const pe = e.x0 + s, ge = e.y0 + s + d, _e = Tt(We);
814
+ return he(_e, d, se) <= L ? `
815
815
  <text
816
- x="${he}"
817
- y="${fe}"
818
- font-size="${v}"
819
- font-family="${Je(oe)}"
820
- font-weight="${ae}"
821
- fill="${Je(ne)}"
816
+ x="${pe}"
817
+ y="${ge}"
818
+ font-size="${d}"
819
+ font-family="${Je(ne)}"
820
+ font-weight="${se}"
821
+ fill="${Je(ue)}"
822
822
  >
823
823
  ${_e}
824
824
  </text>` : "";
825
825
  }
826
- const de = o ? Rl(ht, L, v, Ee, Jt) : [];
827
- let Oe = v, Z = String(We);
826
+ const fe = o ? Po(ht, L, d, Ee, Jt) : [];
827
+ let Oe = d, J = String(We);
828
828
  if (a) {
829
- for (; ve(Z, Oe, ae) > L && Oe > Math.max(8, v * 0.75); )
829
+ for (; he(J, Oe, se) > L && Oe > Math.max(8, d * 0.75); )
830
830
  Oe -= 1;
831
- if (ve(Z, Oe, ae) > L) {
832
- for (; Z.length && ve(Z + "…", Oe, ae) > L; )
833
- Z = Z.slice(0, -1);
834
- if (Z += "…", !Z.length) return "";
831
+ if (he(J, Oe, se) > L) {
832
+ for (; J.length && he(J + "…", Oe, se) > L; )
833
+ J = J.slice(0, -1);
834
+ if (J += "…", !J.length) return "";
835
835
  }
836
836
  }
837
- if (de.length * k + (a ? k : 0) > ce) {
838
- for (; de.length && de.length * k + (a ? k : 0) > ce; )
839
- de.pop();
840
- if (!de.length && (!a || k > ce)) return "";
837
+ if (fe.length * $ + (a ? $ : 0) > ve) {
838
+ for (; fe.length && fe.length * $ + (a ? $ : 0) > ve; )
839
+ fe.pop();
840
+ if (!fe.length && (!a || $ > ve)) return "";
841
841
  }
842
- const ft = e.x0 + s, Vl = e.y0 + s + v, pt = [];
843
- return o && de.forEach((he, fe) => {
842
+ const ft = e.x0 + s, Bo = e.y0 + s + d, pt = [];
843
+ return o && fe.forEach((pe, ge) => {
844
844
  pt.push(
845
845
  `
846
846
  <tspan
847
847
  x="${ft}"
848
- dy="${fe === 0 ? 0 : k}"
848
+ dy="${ge === 0 ? 0 : $}"
849
849
  font-weight="${Ee}"
850
850
  >
851
- ${xt(he)}
851
+ ${Tt(pe)}
852
852
  </tspan>`
853
853
  );
854
854
  }), a && pt.push(
855
855
  `
856
856
  <tspan
857
857
  x="${ft}"
858
- dy="${de.length ? k : 0}"
859
- font-weight="${ae}"
858
+ dy="${fe.length ? $ : 0}"
859
+ font-weight="${se}"
860
860
  font-size="${Oe}"
861
861
  >
862
- ${xt(Z)}
862
+ ${Tt(J)}
863
863
  </tspan>`
864
864
  ), `<text
865
865
  x="${ft}"
866
- y="${Vl}"
867
- font-size="${v}"
868
- font-family="${Je(oe)}"
869
- fill="${Je(ne)}"
866
+ y="${Bo}"
867
+ font-size="${d}"
868
+ font-family="${Je(ne)}"
869
+ fill="${Je(ue)}"
870
870
  paint-order="stroke"
871
871
  stroke="transparent"
872
872
  stroke-width="0"
@@ -875,54 +875,74 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
875
875
  ${pt.join("")}
876
876
  </text>`;
877
877
  }
878
- function zl(e) {
878
+ function Ro(e) {
879
879
  const l = t.value.style.chart.layout.rects.borderRadius, o = $e(e), a = Ce(e);
880
880
  return Math.min(l, Math.min(o, a) / 6);
881
881
  }
882
882
  return i({
883
- getData: Ol,
884
- getImage: _l,
885
- generateCsv: vt,
883
+ getData: _o,
884
+ getImage: Ao,
885
+ generateCsv: dt,
886
886
  generateImage: Pt,
887
887
  generateSvg: Kt,
888
888
  generatePdf: Rt,
889
- hideSeries: xl,
890
- showSeries: $l,
889
+ hideSeries: xo,
890
+ showSeries: To,
891
891
  toggleTable: Xt,
892
892
  toggleTooltip: qt,
893
- toggleAnnotator: dt,
893
+ toggleAnnotator: vt,
894
894
  toggleFullscreen: Ut
895
- }), (e, l) => (h(), w("div", {
895
+ }), (e, l) => (h(), C("div", {
896
896
  ref_key: "treemapChart",
897
- ref: U,
898
- class: bt(`vue-data-ui-component vue-ui-treemap ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
899
- style: ue(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
897
+ ref: X,
898
+ class: bt(`vue-data-ui-component vue-ui-treemap ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
899
+ style: ie(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
900
900
  id: `treemap_${I.value}`,
901
901
  onMouseenter: l[2] || (l[2] = () => p(Nt)(!0)),
902
902
  onMouseleave: l[3] || (l[3] = () => p(Nt)(!1))
903
903
  }, [
904
- t.value.userOptions.buttons.annotator ? (h(), re(p(r), {
904
+ t.value.userOptions.buttons.annotator ? (h(), ce(p(r), {
905
905
  key: 0,
906
906
  svgRef: p(st),
907
907
  backgroundColor: t.value.style.chart.backgroundColor,
908
908
  color: t.value.style.chart.color,
909
909
  active: Be.value,
910
- onClose: dt
911
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : M("", !0),
912
- fl.value ? (h(), w("div", {
910
+ onClose: vt
911
+ }, {
912
+ "annotator-action-close": y(() => [
913
+ m(e.$slots, "annotator-action-close", {}, void 0, !0)
914
+ ]),
915
+ "annotator-action-color": y(({ color: o }) => [
916
+ m(e.$slots, "annotator-action-color", B(H({ color: o })), void 0, !0)
917
+ ]),
918
+ "annotator-action-draw": y(({ mode: o }) => [
919
+ m(e.$slots, "annotator-action-draw", B(H({ mode: o })), void 0, !0)
920
+ ]),
921
+ "annotator-action-undo": y(({ disabled: o }) => [
922
+ m(e.$slots, "annotator-action-undo", B(H({ disabled: o })), void 0, !0)
923
+ ]),
924
+ "annotator-action-redo": y(({ disabled: o }) => [
925
+ m(e.$slots, "annotator-action-redo", B(H({ disabled: o })), void 0, !0)
926
+ ]),
927
+ "annotator-action-delete": y(({ disabled: o }) => [
928
+ m(e.$slots, "annotator-action-delete", B(H({ disabled: o })), void 0, !0)
929
+ ]),
930
+ _: 3
931
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : M("", !0),
932
+ po.value ? (h(), C("div", {
913
933
  key: 1,
914
934
  ref_key: "noTitle",
915
935
  ref: Ft,
916
936
  class: "vue-data-ui-no-title-space",
917
937
  style: "height:36px; width: 100%;background:transparent"
918
938
  }, null, 512)) : M("", !0),
919
- t.value.style.chart.title.text ? (h(), w("div", {
939
+ t.value.style.chart.title.text ? (h(), C("div", {
920
940
  key: 2,
921
941
  ref_key: "chartTitle",
922
942
  ref: Ot,
923
- style: ue(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
943
+ style: ie(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
924
944
  }, [
925
- (h(), re(ho, {
945
+ (h(), ce(hl, {
926
946
  key: `title_${Mt.value}`,
927
947
  config: {
928
948
  title: {
@@ -938,10 +958,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
938
958
  ], 4)) : M("", !0),
939
959
  V("div", {
940
960
  id: `legend-top-${I.value}`
941
- }, null, 8, Oo),
942
- t.value.userOptions.show && z.value && (p(Lt) || p(nt)) ? (h(), re(p(m), {
961
+ }, null, 8, Ol),
962
+ t.value.userOptions.show && z.value && (p(Lt) || p(nt)) ? (h(), ce(p(b), {
943
963
  ref_key: "userOptionsRef",
944
- ref: ot,
964
+ ref: lt,
945
965
  key: `user_option_${St.value}`,
946
966
  backgroundColor: t.value.style.chart.backgroundColor,
947
967
  color: t.value.style.chart.color,
@@ -955,10 +975,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
955
975
  hasSvg: t.value.userOptions.buttons.svg,
956
976
  hasTable: t.value.userOptions.buttons.table,
957
977
  hasFullscreen: t.value.userOptions.buttons.fullscreen,
958
- isFullscreen: ie.value,
978
+ isFullscreen: de.value,
959
979
  isTooltip: P.value.showTooltip,
960
980
  titles: { ...t.value.userOptions.buttonTitles },
961
- chartElement: U.value,
981
+ chartElement: X.value,
962
982
  position: t.value.userOptions.position,
963
983
  hasAnnotator: t.value.userOptions.buttons.annotator,
964
984
  isAnnotation: Be.value,
@@ -967,100 +987,100 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
967
987
  tableDialog: t.value.table.useDialog,
968
988
  onToggleFullscreen: Ut,
969
989
  onGeneratePdf: p(Rt),
970
- onGenerateCsv: vt,
990
+ onGenerateCsv: dt,
971
991
  onGenerateImage: p(Pt),
972
992
  onGenerateSvg: Kt,
973
993
  onToggleTable: Xt,
974
994
  onToggleTooltip: qt,
975
- onToggleAnnotator: dt,
976
- style: ue({
995
+ onToggleAnnotator: vt,
996
+ style: ie({
977
997
  visibility: p(Lt) ? p(nt) ? "visible" : "hidden" : "visible"
978
998
  })
979
- }, tl({ _: 2 }, [
999
+ }, to({ _: 2 }, [
980
1000
  e.$slots.menuIcon ? {
981
1001
  name: "menuIcon",
982
- fn: O(({ isOpen: o, color: a }) => [
983
- $(e.$slots, "menuIcon", me(ye({ isOpen: o, color: a })), void 0, !0)
1002
+ fn: y(({ isOpen: o, color: a }) => [
1003
+ m(e.$slots, "menuIcon", B(H({ isOpen: o, color: a })), void 0, !0)
984
1004
  ]),
985
1005
  key: "0"
986
1006
  } : void 0,
987
1007
  e.$slots.optionTooltip ? {
988
1008
  name: "optionTooltip",
989
- fn: O(() => [
990
- $(e.$slots, "optionTooltip", {}, void 0, !0)
1009
+ fn: y(() => [
1010
+ m(e.$slots, "optionTooltip", {}, void 0, !0)
991
1011
  ]),
992
1012
  key: "1"
993
1013
  } : void 0,
994
1014
  e.$slots.optionPdf ? {
995
1015
  name: "optionPdf",
996
- fn: O(() => [
997
- $(e.$slots, "optionPdf", {}, void 0, !0)
1016
+ fn: y(() => [
1017
+ m(e.$slots, "optionPdf", {}, void 0, !0)
998
1018
  ]),
999
1019
  key: "2"
1000
1020
  } : void 0,
1001
1021
  e.$slots.optionCsv ? {
1002
1022
  name: "optionCsv",
1003
- fn: O(() => [
1004
- $(e.$slots, "optionCsv", {}, void 0, !0)
1023
+ fn: y(() => [
1024
+ m(e.$slots, "optionCsv", {}, void 0, !0)
1005
1025
  ]),
1006
1026
  key: "3"
1007
1027
  } : void 0,
1008
1028
  e.$slots.optionImg ? {
1009
1029
  name: "optionImg",
1010
- fn: O(() => [
1011
- $(e.$slots, "optionImg", {}, void 0, !0)
1030
+ fn: y(() => [
1031
+ m(e.$slots, "optionImg", {}, void 0, !0)
1012
1032
  ]),
1013
1033
  key: "4"
1014
1034
  } : void 0,
1015
1035
  e.$slots.optionSvg ? {
1016
1036
  name: "optionSvg",
1017
- fn: O(() => [
1018
- $(e.$slots, "optionSvg", {}, void 0, !0)
1037
+ fn: y(() => [
1038
+ m(e.$slots, "optionSvg", {}, void 0, !0)
1019
1039
  ]),
1020
1040
  key: "5"
1021
1041
  } : void 0,
1022
1042
  e.$slots.optionTable ? {
1023
1043
  name: "optionTable",
1024
- fn: O(() => [
1025
- $(e.$slots, "optionTable", {}, void 0, !0)
1044
+ fn: y(() => [
1045
+ m(e.$slots, "optionTable", {}, void 0, !0)
1026
1046
  ]),
1027
1047
  key: "6"
1028
1048
  } : void 0,
1029
1049
  e.$slots.optionFullscreen ? {
1030
1050
  name: "optionFullscreen",
1031
- fn: O(({ toggleFullscreen: o, isFullscreen: a }) => [
1032
- $(e.$slots, "optionFullscreen", me(ye({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
1051
+ fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
1052
+ m(e.$slots, "optionFullscreen", B(H({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
1033
1053
  ]),
1034
1054
  key: "7"
1035
1055
  } : void 0,
1036
1056
  e.$slots.optionAnnotator ? {
1037
1057
  name: "optionAnnotator",
1038
- fn: O(({ toggleAnnotator: o, isAnnotator: a }) => [
1039
- $(e.$slots, "optionAnnotator", me(ye({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
1058
+ fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
1059
+ m(e.$slots, "optionAnnotator", B(H({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
1040
1060
  ]),
1041
1061
  key: "8"
1042
1062
  } : void 0
1043
1063
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : M("", !0),
1044
- Y.value.length > 1 ? (h(), w("nav", {
1064
+ Z.value.length > 1 ? (h(), C("nav", {
1045
1065
  key: 4,
1046
1066
  class: "vue-ui-treemap-breadcrumbs",
1047
1067
  "data-dom-to-png-ignore": "",
1048
1068
  ref_key: "breadcrumbsNav",
1049
- ref: lt
1069
+ ref: ot
1050
1070
  }, [
1051
- (h(!0), w(qe, null, wt(Y.value, (o, a) => (h(), w("span", {
1071
+ (h(!0), C(qe, null, wt(Z.value, (o, a) => (h(), C("span", {
1052
1072
  role: "button",
1053
- tabindex: a < Y.value.length - 1 ? 0 : void 0,
1073
+ tabindex: a < Z.value.length - 1 ? 0 : void 0,
1054
1074
  key: o.id || "root",
1055
- onClick: (s) => a === Y.value.length - 1 ? () => {
1075
+ onClick: (s) => a === Z.value.length - 1 ? () => {
1056
1076
  } : Re(o.node),
1057
1077
  onKeydown: [
1058
- ll(kt((s) => a === Y.value.length - 1 ? void 0 : Re(o.node), ["prevent"]), ["enter"]),
1059
- ll(kt((s) => a === Y.value.length - 1 ? void 0 : Re(o.node), ["prevent"]), ["space"])
1078
+ oo(kt((s) => a === Z.value.length - 1 ? void 0 : Re(o.node), ["prevent"]), ["enter"]),
1079
+ oo(kt((s) => a === Z.value.length - 1 ? void 0 : Re(o.node), ["prevent"]), ["space"])
1060
1080
  ],
1061
1081
  class: "vue-ui-treemap-crumb",
1062
- "data-last-crumb": a === Y.value.length - 1,
1063
- style: ue({
1082
+ "data-last-crumb": a === Z.value.length - 1,
1083
+ style: ie({
1064
1084
  color: t.value.style.chart.color
1065
1085
  }),
1066
1086
  onMouseenter: (s) => Yt(a),
@@ -1068,40 +1088,40 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1068
1088
  onFocus: (s) => Yt(a),
1069
1089
  onBlur: jt
1070
1090
  }, [
1071
- V("span", Ao, [
1072
- V("span", Fo, [
1073
- $(e.$slots, "breadcrumb-label", Ct({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: He.value === a }), () => [
1074
- a === 0 ? (h(), w("div", Mo, [
1075
- Xe(rl, {
1091
+ V("span", Al, [
1092
+ V("span", Fl, [
1093
+ m(e.$slots, "breadcrumb-label", Ct({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: He.value === a }), () => [
1094
+ a === 0 ? (h(), C("div", Ml, [
1095
+ Xe(ro, {
1076
1096
  name: He.value === 0 ? "homeFilled" : "home",
1077
1097
  stroke: t.value.style.chart.color
1078
1098
  }, null, 8, ["name", "stroke"])
1079
- ])) : (h(), w(qe, { key: 1 }, [
1099
+ ])) : (h(), C(qe, { key: 1 }, [
1080
1100
  Ye(je(o.label), 1)
1081
1101
  ], 64))
1082
1102
  ], !0)
1083
1103
  ]),
1084
- a < Y.value.length - 1 ? (h(), w("span", Io, [
1085
- $(e.$slots, "breadcrumb-arrow", {}, () => [
1104
+ a < Z.value.length - 1 ? (h(), C("span", Il, [
1105
+ m(e.$slots, "breadcrumb-arrow", {}, () => [
1086
1106
  l[4] || (l[4] = Ye(" › ", -1))
1087
1107
  ], !0)
1088
1108
  ])) : M("", !0)
1089
1109
  ])
1090
- ], 44, _o))), 128))
1110
+ ], 44, _l))), 128))
1091
1111
  ], 512)) : M("", !0),
1092
- (h(), w("svg", {
1112
+ (h(), C("svg", {
1093
1113
  ref_key: "svgRef",
1094
1114
  ref: st,
1095
1115
  xmlns: p($t),
1096
- class: bt({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value, "vue-data-ui-zoom-plus": !Se.value, "vue-data-ui-zoom-minus": Se.value, loading: p(be) }),
1097
- viewBox: `${Te.value.startX} ${Te.value.startY} ${Te.value.width <= 0 ? 10 : Te.value.width} ${Te.value.height <= 0 ? 10 : Te.value.height}`,
1098
- style: ue(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
1116
+ class: bt({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value, "vue-data-ui-zoom-plus": !Se.value, "vue-data-ui-zoom-minus": Se.value, loading: p(be) }),
1117
+ viewBox: `${xe.value.startX} ${xe.value.startY} ${xe.value.width <= 0 ? 10 : xe.value.width} ${xe.value.height <= 0 ? 10 : xe.value.height}`,
1118
+ style: ie(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
1099
1119
  }, [
1100
1120
  Xe(p(g)),
1101
- (h(!0), w(qe, null, wt(Ie.value, (o, a) => (h(), w("g", {
1121
+ (h(!0), C(qe, null, wt(Ie.value, (o, a) => (h(), C("g", {
1102
1122
  key: `tgrad_${o.id}`
1103
1123
  }, [
1104
- t.value.style.chart.layout.rects.gradient.show ? (h(), w("defs", Lo, [
1124
+ t.value.style.chart.layout.rects.gradient.show ? (h(), C("defs", Ll, [
1105
1125
  V("radialGradient", {
1106
1126
  id: `tgrad_${o.id}`,
1107
1127
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
@@ -1109,15 +1129,15 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1109
1129
  V("stop", {
1110
1130
  offset: "18%",
1111
1131
  "stop-color": o.color
1112
- }, null, 8, zo),
1132
+ }, null, 8, zl),
1113
1133
  V("stop", {
1114
1134
  offset: "100%",
1115
- "stop-color": p(al)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
1116
- }, null, 8, Ro)
1117
- ], 8, Do)
1135
+ "stop-color": p(ao)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
1136
+ }, null, 8, Rl)
1137
+ ], 8, Dl)
1118
1138
  ])) : M("", !0)
1119
1139
  ]))), 128)),
1120
- (h(!0), w(qe, null, wt(Ie.value, (o, a) => (h(), w("g", {
1140
+ (h(!0), C(qe, null, wt(Ie.value, (o, a) => (h(), C("g", {
1121
1141
  key: `k_${o.id}`
1122
1142
  }, [
1123
1143
  V("rect", {
@@ -1125,28 +1145,28 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1125
1145
  y: o.y0,
1126
1146
  height: Ce(o),
1127
1147
  width: $e(o),
1128
- fill: q.value ? o.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
1129
- rx: zl(o),
1130
- stroke: G.value && G.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1131
- "stroke-width": G.value && G.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1148
+ fill: j.value ? o.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
1149
+ rx: Ro(o),
1150
+ stroke: q.value && q.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1151
+ "stroke-width": q.value && q.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1132
1152
  onClick: kt((s) => Re(o, a), ["stop"]),
1133
- onMouseenter: () => Sl({
1153
+ onMouseenter: () => Oo({
1134
1154
  datapoint: o,
1135
1155
  seriesIndex: a
1136
1156
  }),
1137
- onMouseleave: (s) => Tl({ datapoint: o, seriesIndex: a }),
1138
- style: ue(`opacity:${G.value ? G.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1157
+ onMouseleave: (s) => So({ datapoint: o, seriesIndex: a }),
1158
+ style: ie(`opacity:${q.value ? q.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1139
1159
  class: bt([
1140
1160
  "vue-ui-treemap-rect",
1141
- kl(o) ? "vue-data-ui-zoom-plus" : Se.value ? "vue-data-ui-zoom-minus" : ""
1161
+ Co(o) ? "vue-data-ui-zoom-plus" : Se.value ? "vue-data-ui-zoom-minus" : ""
1142
1162
  ])
1143
- }, null, 46, Po),
1144
- !e.$slots.rect && !p(be) && t.value.style.chart.layout.labels.showDefaultLabels ? (h(), w("g", {
1163
+ }, null, 46, Pl),
1164
+ !e.$slots.rect && !p(be) && t.value.style.chart.layout.labels.showDefaultLabels ? (h(), C("g", {
1145
1165
  key: 0,
1146
1166
  style: { "pointer-events": "none" },
1147
- innerHTML: Dl({ rect: o, seriesIndex: a })
1148
- }, null, 8, Vo)) : M("", !0),
1149
- (h(), w("foreignObject", {
1167
+ innerHTML: zo({ rect: o, seriesIndex: a })
1168
+ }, null, 8, Vl)) : M("", !0),
1169
+ (h(), C("foreignObject", {
1150
1170
  x: o.x0,
1151
1171
  y: o.y0,
1152
1172
  height: Ce(o),
@@ -1154,35 +1174,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1154
1174
  class: "vue-ui-treemap-cell-foreignObject"
1155
1175
  }, [
1156
1176
  V("div", {
1157
- style: ue({
1158
- width: `calc(100% - ${xe(o) / 1.5}px)`,
1159
- height: `calc(100% - ${xe(o) / 1.5}px)`,
1160
- padding: `${xe(o) / 3}px`
1177
+ style: ie({
1178
+ width: `calc(100% - ${Te(o) / 1.5}px)`,
1179
+ height: `calc(100% - ${Te(o) / 1.5}px)`,
1180
+ padding: `${Te(o) / 3}px`
1161
1181
  }),
1162
1182
  class: "vue-ui-treemap-cell"
1163
1183
  }, [
1164
- p(be) ? M("", !0) : $(e.$slots, "rect", Ct({
1184
+ p(be) ? M("", !0) : m(e.$slots, "rect", Ct({
1165
1185
  key: 0,
1166
1186
  ref_for: !0
1167
1187
  }, {
1168
1188
  rect: o,
1169
1189
  shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Se.value,
1170
- fontSize: xe(o),
1190
+ fontSize: Te(o),
1171
1191
  isZoom: Se.value,
1172
- textColor: p(nl)(o.color)
1192
+ textColor: p(no)(o.color)
1173
1193
  }), void 0, !0)
1174
1194
  ], 4)
1175
- ], 8, Bo))
1195
+ ], 8, Bl))
1176
1196
  ]))), 128)),
1177
- $(e.$slots, "svg", me(ye({ svg: H.value, isZoom: Se.value, rect: G.value, config: t.value })), void 0, !0)
1178
- ], 14, No)),
1179
- e.$slots.watermark ? (h(), w("div", Ho, [
1180
- $(e.$slots, "watermark", me(ye({ isPrinting: p(Dt) || p(zt) })), void 0, !0)
1197
+ m(e.$slots, "svg", B(H({ svg: W.value, isZoom: Se.value, rect: q.value, config: t.value })), void 0, !0)
1198
+ ], 14, Nl)),
1199
+ e.$slots.watermark ? (h(), C("div", Hl, [
1200
+ m(e.$slots, "watermark", B(H({ isPrinting: p(Dt) || p(zt) })), void 0, !0)
1181
1201
  ])) : M("", !0),
1182
1202
  V("div", {
1183
1203
  id: `legend-bottom-${I.value}`
1184
- }, null, 8, Eo),
1185
- It.value ? (h(), re(ql, {
1204
+ }, null, 8, El),
1205
+ It.value ? (h(), ce(Yo, {
1186
1206
  key: 6,
1187
1207
  to: t.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
1188
1208
  }, [
@@ -1190,37 +1210,37 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1190
1210
  ref_key: "chartLegend",
1191
1211
  ref: _t
1192
1212
  }, [
1193
- t.value.style.chart.legend.show ? (h(), re(po, {
1213
+ t.value.style.chart.legend.show ? (h(), ce(pl, {
1194
1214
  key: `legend_${tt.value}`,
1195
1215
  legendSet: it.value,
1196
- config: Cl.value,
1216
+ config: $o.value,
1197
1217
  id: `treemap_legend_${I.value}`,
1198
1218
  onClickMarker: l[0] || (l[0] = ({ legend: o }) => Pe(o))
1199
1219
  }, {
1200
- item: O(({ legend: o, index: a }) => [
1201
- p(be) ? M("", !0) : (h(), w("div", {
1220
+ item: y(({ legend: o, index: a }) => [
1221
+ p(be) ? M("", !0) : (h(), C("div", {
1202
1222
  key: 0,
1203
1223
  onClick: (s) => Pe(o),
1204
- style: ue(`opacity:${R.value.includes(o.id) ? 0.5 : 1}`)
1205
- }, je(o.display), 13, Wo))
1224
+ style: ie(`opacity:${R.value.includes(o.id) ? 0.5 : 1}`)
1225
+ }, je(o.display), 13, Wl))
1206
1226
  ]),
1207
1227
  _: 1
1208
- }, 8, ["legendSet", "config", "id"])) : $(e.$slots, "legend", {
1228
+ }, 8, ["legendSet", "config", "id"])) : m(e.$slots, "legend", {
1209
1229
  key: 1,
1210
1230
  legend: it.value
1211
1231
  }, void 0, !0)
1212
1232
  ], 512)
1213
1233
  ], 8, ["to"])) : M("", !0),
1214
- e.$slots.source ? (h(), w("div", {
1234
+ e.$slots.source ? (h(), C("div", {
1215
1235
  key: 7,
1216
1236
  ref_key: "source",
1217
1237
  ref: At,
1218
1238
  dir: "auto"
1219
1239
  }, [
1220
- $(e.$slots, "source", {}, void 0, !0)
1240
+ m(e.$slots, "source", {}, void 0, !0)
1221
1241
  ], 512)) : M("", !0),
1222
- Xe(p(d), {
1223
- show: P.value.showTooltip && B.value,
1242
+ Xe(p(v), {
1243
+ show: P.value.showTooltip && E.value,
1224
1244
  backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1225
1245
  color: t.value.style.chart.tooltip.color,
1226
1246
  fontSize: t.value.style.chart.tooltip.fontSize,
@@ -1230,30 +1250,30 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1230
1250
  backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1231
1251
  position: t.value.style.chart.tooltip.position,
1232
1252
  offsetY: t.value.style.chart.tooltip.offsetY,
1233
- parent: U.value,
1253
+ parent: X.value,
1234
1254
  content: Qe.value,
1235
- isFullscreen: ie.value,
1236
- isCustom: p(sl)(t.value.style.chart.tooltip.customFormat),
1255
+ isFullscreen: de.value,
1256
+ isCustom: p(so)(t.value.style.chart.tooltip.customFormat),
1237
1257
  smooth: t.value.style.chart.tooltip.smooth,
1238
1258
  backdropFilter: t.value.style.chart.tooltip.backdropFilter,
1239
1259
  smoothForce: t.value.style.chart.tooltip.smoothForce,
1240
1260
  smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold
1241
1261
  }, {
1242
- "tooltip-before": O(() => [
1243
- $(e.$slots, "tooltip-before", me(ye({ ...ct.value })), void 0, !0)
1262
+ "tooltip-before": y(() => [
1263
+ m(e.$slots, "tooltip-before", B(H({ ...ct.value })), void 0, !0)
1244
1264
  ]),
1245
- "tooltip-after": O(() => [
1246
- $(e.$slots, "tooltip-after", me(ye({ ...ct.value })), void 0, !0)
1265
+ "tooltip-after": y(() => [
1266
+ m(e.$slots, "tooltip-after", B(H({ ...ct.value })), void 0, !0)
1247
1267
  ]),
1248
1268
  _: 3
1249
1269
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1250
- z.value && t.value.userOptions.buttons.table ? (h(), re(Yl(Ne.value.component), Ct({ key: 8 }, Ne.value.props, {
1270
+ z.value && t.value.userOptions.buttons.table ? (h(), ce(jo(Ne.value.component), Ct({ key: 8 }, Ne.value.props, {
1251
1271
  ref_key: "tableUnit",
1252
1272
  ref: Ae,
1253
1273
  onClose: Zt
1254
- }), tl({
1255
- content: O(() => [
1256
- (h(), re(p(c), {
1274
+ }), to({
1275
+ content: y(() => [
1276
+ (h(), ce(p(c), {
1257
1277
  key: `table_${et.value}`,
1258
1278
  colNames: Ve.value.colNames,
1259
1279
  head: Ve.value.head,
@@ -1263,13 +1283,13 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1263
1283
  withCloseButton: !t.value.table.useDialog,
1264
1284
  onClose: Zt
1265
1285
  }, {
1266
- th: O(({ th: o }) => [
1286
+ th: y(({ th: o }) => [
1267
1287
  V("div", {
1268
1288
  innerHTML: o,
1269
1289
  style: { display: "flex", "align-items": "center" }
1270
- }, null, 8, Uo)
1290
+ }, null, 8, Ul)
1271
1291
  ]),
1272
- td: O(({ td: o }) => [
1292
+ td: y(({ td: o }) => [
1273
1293
  Ye(je(o.name || o), 1)
1274
1294
  ]),
1275
1295
  _: 1
@@ -1279,20 +1299,20 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1279
1299
  }, [
1280
1300
  t.value.table.useDialog ? {
1281
1301
  name: "title",
1282
- fn: O(() => [
1302
+ fn: y(() => [
1283
1303
  Ye(je(Ne.value.title), 1)
1284
1304
  ]),
1285
1305
  key: "0"
1286
1306
  } : void 0,
1287
1307
  t.value.table.useDialog ? {
1288
1308
  name: "actions",
1289
- fn: O(() => [
1309
+ fn: y(() => [
1290
1310
  V("button", {
1291
1311
  tabindex: "0",
1292
1312
  class: "vue-ui-user-options-button",
1293
- onClick: l[1] || (l[1] = (o) => vt(t.value.userOptions.callbacks.csv))
1313
+ onClick: l[1] || (l[1] = (o) => dt(t.value.userOptions.callbacks.csv))
1294
1314
  }, [
1295
- Xe(rl, {
1315
+ Xe(ro, {
1296
1316
  name: "excel",
1297
1317
  stroke: Ne.value.props.color
1298
1318
  }, null, 8, ["stroke"])
@@ -1301,10 +1321,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
1301
1321
  key: "1"
1302
1322
  } : void 0
1303
1323
  ]), 1040)) : M("", !0),
1304
- p(be) ? (h(), re(uo, { key: 9 })) : M("", !0)
1305
- ], 46, So));
1324
+ p(be) ? (h(), ce(rl, { key: 9 })) : M("", !0)
1325
+ ], 46, Sl));
1306
1326
  }
1307
- }, ra = /* @__PURE__ */ mo(Go, [["__scopeId", "data-v-2a889e26"]]);
1327
+ }, ra = /* @__PURE__ */ ml(Gl, [["__scopeId", "data-v-58a68fb8"]]);
1308
1328
  export {
1309
1329
  ra as default
1310
1330
  };