vue-data-ui 3.19.8 → 3.19.9

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 (130) hide show
  1. package/README.md +1 -1
  2. package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-Dl9W5zJD.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-bump.js +1 -1
  7. package/dist/components/vue-ui-candlestick.js +1 -1
  8. package/dist/components/vue-ui-carousel-table.js +1 -1
  9. package/dist/components/vue-ui-chestnut.js +1 -1
  10. package/dist/components/vue-ui-chord.js +1 -1
  11. package/dist/components/vue-ui-circle-pack.js +1 -1
  12. package/dist/components/vue-ui-cursor.js +1 -1
  13. package/dist/components/vue-ui-dag.js +1 -1
  14. package/dist/components/vue-ui-dashboard.js +1 -1
  15. package/dist/components/vue-ui-digits.js +1 -1
  16. package/dist/components/vue-ui-donut-evolution.js +1 -1
  17. package/dist/components/vue-ui-donut.js +1 -1
  18. package/dist/components/vue-ui-dumbbell.js +1 -1
  19. package/dist/components/vue-ui-flow.js +1 -1
  20. package/dist/components/vue-ui-funnel.js +1 -1
  21. package/dist/components/vue-ui-galaxy.js +1 -1
  22. package/dist/components/vue-ui-gauge.js +1 -1
  23. package/dist/components/vue-ui-geo.js +1 -1
  24. package/dist/components/vue-ui-gizmo.js +1 -1
  25. package/dist/components/vue-ui-heatmap.js +1 -1
  26. package/dist/components/vue-ui-history-plot.js +1 -1
  27. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  28. package/dist/components/vue-ui-kpi.js +1 -1
  29. package/dist/components/vue-ui-molecule.js +1 -1
  30. package/dist/components/vue-ui-mood-radar.js +1 -1
  31. package/dist/components/vue-ui-nested-donuts.js +1 -1
  32. package/dist/components/vue-ui-onion.js +1 -1
  33. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  34. package/dist/components/vue-ui-quadrant.js +1 -1
  35. package/dist/components/vue-ui-quick-chart.js +1 -1
  36. package/dist/components/vue-ui-radar.js +1 -1
  37. package/dist/components/vue-ui-relation-circle.js +1 -1
  38. package/dist/components/vue-ui-ridgeline.js +1 -1
  39. package/dist/components/vue-ui-rings.js +1 -1
  40. package/dist/components/vue-ui-scatter.js +1 -1
  41. package/dist/components/vue-ui-skeleton.js +1 -1
  42. package/dist/components/vue-ui-spark-trend.js +1 -1
  43. package/dist/components/vue-ui-sparkbar.js +1 -1
  44. package/dist/components/vue-ui-sparkgauge.js +1 -1
  45. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  46. package/dist/components/vue-ui-sparkline.js +1 -1
  47. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  48. package/dist/components/vue-ui-stackbar.js +1 -1
  49. package/dist/components/vue-ui-stackline.js +1 -1
  50. package/dist/components/vue-ui-strip-plot.js +1 -1
  51. package/dist/components/vue-ui-table-sparkline.js +1 -1
  52. package/dist/components/vue-ui-table.js +1 -1
  53. package/dist/components/vue-ui-thermometer.js +1 -1
  54. package/dist/components/vue-ui-timer.js +1 -1
  55. package/dist/components/vue-ui-tiremarks.js +1 -1
  56. package/dist/components/vue-ui-treemap.js +1 -1
  57. package/dist/components/vue-ui-vertical-bar.js +1 -1
  58. package/dist/components/vue-ui-waffle.js +1 -1
  59. package/dist/components/vue-ui-wheel.js +1 -1
  60. package/dist/components/vue-ui-word-cloud.js +1 -1
  61. package/dist/components/vue-ui-world.js +1 -1
  62. package/dist/components/vue-ui-xy-canvas.js +1 -1
  63. package/dist/components/vue-ui-xy.js +1 -1
  64. package/dist/style.css +1 -1
  65. package/dist/types/vue-ui-dag.d.ts +2 -0
  66. package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-nsosW-n5.js} +61 -61
  67. package/dist/vue-data-ui.js +61 -61
  68. package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
  69. package/dist/{vue-ui-age-pyramid-Bu3bocZx.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
  70. package/dist/{vue-ui-bullet-COSSZ7RU.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
  71. package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-LQuPTOlm.js} +1 -1
  72. package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
  73. package/dist/{vue-ui-carousel-table-Q2uTIELA.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
  74. package/dist/{vue-ui-chestnut-DdNKhXkN.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
  75. package/dist/{vue-ui-chord-CYzGIRtA.js → vue-ui-chord-YflKRyWK.js} +1 -1
  76. package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
  77. package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-C5_wkWul.js} +1 -1
  78. package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-mH0baWM3.js} +1 -1
  79. package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
  80. package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-BYBtwXy_.js} +1 -1
  81. package/dist/{vue-ui-donut-BSanYbqb.js → vue-ui-donut-B3L7jeHL.js} +434 -432
  82. package/dist/{vue-ui-donut-evolution-BVttNIzH.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
  83. package/dist/{vue-ui-dumbbell-D-KcBLOF.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
  84. package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-BYYyk5KL.js} +1 -1
  85. package/dist/{vue-ui-funnel-COwXzAbB.js → vue-ui-funnel-BfY509t-.js} +1 -1
  86. package/dist/{vue-ui-galaxy-Cg9VStNF.js → vue-ui-galaxy-D061gTYS.js} +260 -257
  87. package/dist/{vue-ui-gauge-DHWCS6jR.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
  88. package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BwOMFUVr.js} +1 -1
  89. package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
  90. package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
  91. package/dist/{vue-ui-history-plot-CgPjudHv.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
  92. package/dist/{vue-ui-horizontal-bar-CpQCmBQD.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
  93. package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
  94. package/dist/{vue-ui-molecule-CvfwMxYY.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
  95. package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
  96. package/dist/{vue-ui-nested-donuts-C-LWBXmg.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
  97. package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-MN-PjNJq.js} +3 -3
  98. package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
  99. package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
  100. package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
  101. package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-D2pVd53z.js} +115 -112
  102. package/dist/{vue-ui-relation-circle-MxYh6hSt.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
  103. package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
  104. package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-DkHS5dwd.js} +105 -102
  105. package/dist/{vue-ui-scatter-DrS1nrwL.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
  106. package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
  107. package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
  108. package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
  109. package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
  110. package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
  111. package/dist/{vue-ui-sparkline-BAWc3ROJ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
  112. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
  113. package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
  114. package/dist/{vue-ui-stackline-DwtlEdOE.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
  115. package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
  116. package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-DuA_CfGn.js} +2 -2
  117. package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
  118. package/dist/{vue-ui-thermometer-Io8LdW1o.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
  119. package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-9LNNDl4q.js} +1 -1
  120. package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
  121. package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-BexKMBhz.js} +373 -373
  122. package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
  123. package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-BETHlWsO.js} +1 -1
  124. package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
  125. package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-CcgbuSp_.js} +1 -1
  126. package/dist/{vue-ui-xy-BCeOqJYR.js → vue-ui-xy-BQ1YONCq.js} +280 -277
  127. package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
  128. package/package.json +1 -1
  129. package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
  130. package/dist/vue-ui-sparkstackbar-BI8zG-DG.js +0 -662
@@ -18,9 +18,9 @@ import { t as xe } from "./useUserOptionState-CjPJPTg2.js";
18
18
  import { t as Se } from "./useChartAccessibility-Do37qcw2.js";
19
19
  import { t as Ce } from "./Legend-Gg5Q4Clb.js";
20
20
  import { t as we } from "./vue_ui_treemap-BQp06q-g.js";
21
- import { Fragment as Te, Teleport as Ee, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as y, guardReactiveProps as b, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Ne, onMounted as Pe, openBlock as C, ref as w, renderList as Fe, renderSlot as T, resolveDynamicComponent as Ie, shallowRef as E, toDisplayString as Le, toRefs as Re, unref as D, useSlots as ze, watch as O, withCtx as k, withKeys as Be, withModifiers as Ve } from "vue";
21
+ import { Fragment as Te, Teleport as Ee, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as y, guardReactiveProps as b, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Ne, onMounted as Pe, openBlock as C, ref as w, renderList as Fe, renderSlot as T, resolveDynamicComponent as Ie, shallowRef as E, toDisplayString as Le, toRefs as Re, unref as D, useSlots as ze, watch as Be, withCtx as O, withKeys as Ve, withModifiers as He } from "vue";
22
22
  //#region src/treemap.js
23
- function He(e, t) {
23
+ function Ue(e, t) {
24
24
  let n = e.length;
25
25
  if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
26
26
  {
@@ -32,7 +32,7 @@ function He(e, t) {
32
32
  return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
33
33
  }
34
34
  }
35
- function Ue(e) {
35
+ function We(e) {
36
36
  let { xOffset: t, yOffset: n, width: r, height: i } = e;
37
37
  return {
38
38
  x0: t,
@@ -41,14 +41,14 @@ function Ue(e) {
41
41
  y1: n + i
42
42
  };
43
43
  }
44
- function We(e, t, n) {
44
+ function Ge(e, t, n) {
45
45
  if (e.length === 0) return !0;
46
46
  {
47
47
  let r = e.concat(t);
48
- return He(e, n) >= He(r, n);
48
+ return Ue(e, n) >= Ue(r, n);
49
49
  }
50
50
  }
51
- function Ge(e) {
51
+ function Ke(e) {
52
52
  let t = [], n = e.length;
53
53
  for (let r = 0; r < n; r += 1) {
54
54
  let n = e[r], i = n.length;
@@ -56,17 +56,17 @@ function Ge(e) {
56
56
  }
57
57
  return t;
58
58
  }
59
- function Ke(e, t) {
60
- return $e({
59
+ function qe(e, t) {
60
+ return et({
61
61
  ...t,
62
62
  children: e
63
63
  });
64
64
  }
65
- function qe(e) {
65
+ function Je(e) {
66
66
  return (e.x1 - e.x0) * (e.y1 - e.y0);
67
67
  }
68
- function Je(e, t) {
69
- let { width: n, height: r, xOffset: i, yOffset: a } = Ze(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
68
+ function Ye(e, t) {
69
+ let { width: n, height: r, xOffset: i, yOffset: a } = Qe(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
70
70
  if (n >= r) {
71
71
  for (let t = 0; t < o; t += 1) {
72
72
  let n = e[t], r = d + n.normalizedValue / c, i = {
@@ -91,16 +91,16 @@ function Je(e, t) {
91
91
  return f;
92
92
  }
93
93
  }
94
- function Ye(e) {
95
- let t = Ze(e), n = t.width, r = t.height;
94
+ function Xe(e) {
95
+ let t = Qe(e), n = t.width, r = t.height;
96
96
  return Math.min(n, r);
97
97
  }
98
- function Xe(e, t) {
98
+ function Ze(e, t) {
99
99
  let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
100
100
  for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
101
101
  return i;
102
102
  }
103
- function Ze(e) {
103
+ function Qe(e) {
104
104
  let { x0: t, y0: n, x1: r, y1: i } = e;
105
105
  return {
106
106
  xOffset: t,
@@ -109,39 +109,39 @@ function Ze(e) {
109
109
  height: i - n
110
110
  };
111
111
  }
112
- function Qe(e, t, n, r) {
112
+ function $e(e, t, n, r) {
113
113
  let i = e, a = t, o = n, s = r;
114
114
  for (;;) {
115
115
  let e = i.length;
116
116
  if (e === 0) {
117
- let e = Je(a, o);
117
+ let e = Ye(a, o);
118
118
  return s.concat(e);
119
119
  }
120
- let t = Ye(o), n = i[0], r = i.slice(1, e);
121
- if (We(a, n, t)) {
120
+ let t = Xe(o), n = i[0], r = i.slice(1, e);
121
+ if (Ge(a, n, t)) {
122
122
  let e = a.concat(n);
123
123
  i = r, a = e, o = o, s = s;
124
124
  } else {
125
125
  let e = a.length, t = 0;
126
126
  for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
127
- let n = A(o, t), r = Je(a, o), c = s.concat(r);
127
+ let n = k(o, t), r = Ye(a, o), c = s.concat(r);
128
128
  i = i, a = [], o = n, s = c;
129
129
  }
130
130
  }
131
131
  }
132
- function $e(e) {
132
+ function et(e) {
133
133
  if (e.children === void 0 || !e.children.length) return [e];
134
134
  {
135
- let t = Qe(Xe(e.children, qe(e)), [], e, []), n = t.length, r = [];
136
- for (let e = 0; e < n; e += 1) r.push($e(t[e]));
137
- return Ge(r);
135
+ let t = $e(Ze(e.children, Je(e)), [], e, []), n = t.length, r = [];
136
+ for (let e = 0; e < n; e += 1) r.push(et(t[e]));
137
+ return Ke(r);
138
138
  }
139
139
  }
140
- function A(e, t) {
141
- let { width: n, height: r, xOffset: i, yOffset: a } = Ze(e);
140
+ function k(e, t) {
141
+ let { width: n, height: r, xOffset: i, yOffset: a } = Qe(e);
142
142
  if (n >= r) {
143
143
  let e = t / r, o = n - e;
144
- return Ue({
144
+ return We({
145
145
  xOffset: i + e,
146
146
  yOffset: a,
147
147
  width: o,
@@ -149,7 +149,7 @@ function A(e, t) {
149
149
  });
150
150
  } else {
151
151
  let e = t / n, o = r - e;
152
- return Ue({
152
+ return We({
153
153
  xOffset: i,
154
154
  yOffset: a + e,
155
155
  width: n,
@@ -159,7 +159,7 @@ function A(e, t) {
159
159
  }
160
160
  //#endregion
161
161
  //#region src/components/vue-ui-treemap.vue
162
- var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt = ["id"], it = [
162
+ var A = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt = ["id"], it = [
163
163
  "tabindex",
164
164
  "onClick",
165
165
  "onKeydown",
@@ -237,15 +237,15 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
237
237
  "selectDatapoint",
238
238
  "copyAlt"
239
239
  ],
240
- setup(e, { expose: he, emit: He }) {
241
- let Ue = y(() => import("./DataTable-DmE8Oo4i.js")), We = y(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Ge = y(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), qe = y(() => import("./Tooltip-CuWEYGr3.js")), Je = y(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Ye = y(() => import("./PackageVersion-zJAUEmyB.js").then((e) => e.t)), Xe = y(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_treemap: Ze } = oe(), { isThemeValid: Qe, warnInvalidTheme: $e } = fe(), A = e, et = He, wt = ze();
240
+ setup(e, { expose: he, emit: Ue }) {
241
+ let We = y(() => import("./DataTable-DmE8Oo4i.js")), Ge = y(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Ke = y(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), Je = y(() => import("./Tooltip-CuWEYGr3.js")), Ye = y(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Xe = y(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Ze = y(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_treemap: Qe } = oe(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), k = e, A = Ue, wt = ze();
242
242
  Pe(() => {
243
243
  wt["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
244
244
  });
245
- let Tt = m(() => !!A.dataset && A.dataset.length), Et = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = w(n()), Dt = w(!1), Ot = w(""), kt = w(!1), At = w(0), M = w([]), N = E(null), jt = E(null), Mt = E(null), Nt = E(null), Pt = E(null), Ft = w(0), It = w(0), Lt = w(0), P = w([]), Rt = w(null), zt = w(!1), Bt = w(null), Vt = w(null), Ht = w(null), Ut = w(/* @__PURE__ */ new Map()), Wt = w(!1), Gt = w(!1), F = w(null), Kt = w({
245
+ let Tt = m(() => !!k.dataset && k.dataset.length), Et = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = w(n()), Dt = w(!1), Ot = w(""), M = w(!1), kt = w(0), N = w([]), P = E(null), At = E(null), jt = E(null), Mt = E(null), Nt = E(null), Pt = w(0), Ft = w(0), It = w(0), F = w([]), Lt = w(null), Rt = w(!1), zt = w(null), Bt = w(null), Vt = w(null), Ht = w(/* @__PURE__ */ new Map()), Ut = w(!1), Wt = w(!1), I = w(null), Gt = w({
246
246
  x: 0,
247
247
  y: 0
248
- }), qt = w("pointer"), Jt = w(!1), I = w(tn()), L = m(() => I.value.userOptions.useCursorPointer), Yt = m(() => ae({
248
+ }), Kt = w("pointer"), qt = w(!1), L = w(en()), R = m(() => L.value.userOptions.useCursorPointer), Jt = m(() => ae({
249
249
  defaultConfig: {
250
250
  userOptions: { show: !1 },
251
251
  style: { chart: {
@@ -257,12 +257,12 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
257
257
  legend: { backgroundColor: "transparent" }
258
258
  } }
259
259
  },
260
- userConfig: I.value.skeletonConfig ?? {}
261
- })), { loading: R, FINAL_DATASET: Xt, manualLoading: Zt } = ce({
262
- ...Re(A),
263
- FINAL_CONFIG: I,
264
- prepareConfig: tn,
265
- skeletonDataset: A.config?.skeletonDataset ?? [{
260
+ userConfig: L.value.skeletonConfig ?? {}
261
+ })), { loading: z, FINAL_DATASET: Yt, manualLoading: Xt } = ce({
262
+ ...Re(k),
263
+ FINAL_CONFIG: L,
264
+ prepareConfig: en,
265
+ skeletonDataset: k.config?.skeletonDataset ?? [{
266
266
  name: "_",
267
267
  value: 53,
268
268
  color: "#CACACA90",
@@ -298,22 +298,22 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
298
298
  ]
299
299
  }],
300
300
  skeletonConfig: ae({
301
- defaultConfig: I.value,
302
- userConfig: Yt.value
301
+ defaultConfig: L.value,
302
+ userConfig: Jt.value
303
303
  })
304
- }), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = xe({ config: I.value }), { svgRef: z } = Se({ config: I.value.style.chart.title });
305
- function tn() {
304
+ }), { userOptionsVisible: Zt, setUserOptionsVisibility: Qt, keepUserOptionState: $t } = xe({ config: L.value }), { svgRef: B } = Se({ config: L.value.style.chart.title });
305
+ function en() {
306
306
  let e = de({
307
- userConfig: A.config,
308
- defaultConfig: Ze
307
+ userConfig: k.config,
308
+ defaultConfig: Qe
309
309
  }), t = e.theme;
310
310
  if (!t) return e;
311
- if (!Qe.value(e)) return $e(e), e;
311
+ if (!$e.value(e)) return et(e), e;
312
312
  let n = de({
313
- userConfig: we[t] || A.config,
313
+ userConfig: we[t] || k.config,
314
314
  defaultConfig: e
315
315
  }), r = de({
316
- userConfig: A.config,
316
+ userConfig: k.config,
317
317
  defaultConfig: n
318
318
  });
319
319
  return {
@@ -321,38 +321,38 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
321
321
  customPalette: r.customPalette.length ? r.customPalette : a[t] || c
322
322
  };
323
323
  }
324
- O(() => A.config, (e) => {
325
- R.value || (I.value = tn()), Qt.value = !I.value.userOptions.showOnChartHover, Ft.value += 1, It.value += 1, Lt.value += 1, B.value.showTable = I.value.table.show, B.value.showTooltip = I.value.style.chart.tooltip.show;
324
+ Be(() => k.config, (e) => {
325
+ z.value || (L.value = en()), Zt.value = !L.value.userOptions.showOnChartHover, Pt.value += 1, Ft.value += 1, It.value += 1, V.value.showTable = L.value.table.show, V.value.showTooltip = L.value.style.chart.tooltip.show;
326
326
  }, { deep: !0 });
327
- let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = se({
327
+ let { isPrinting: tn, isImaging: nn, generatePdf: rn, generateImage: an } = se({
328
328
  elementId: `treemap_${j.value}`,
329
- fileName: I.value.style.chart.title.text || "vue-ui-treemap",
330
- options: I.value.userOptions.print
331
- }), sn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), cn = m(() => re(I.value.customPalette)), B = w({
332
- showTable: I.value.table.show,
333
- showTooltip: I.value.style.chart.tooltip.show
329
+ fileName: L.value.style.chart.title.text || "vue-ui-treemap",
330
+ options: L.value.userOptions.print
331
+ }), on = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), sn = m(() => re(L.value.customPalette)), V = w({
332
+ showTable: L.value.table.show,
333
+ showTooltip: L.value.style.chart.tooltip.show
334
334
  });
335
- O(I, () => {
336
- B.value = {
337
- showTable: I.value.table.show,
338
- showTooltip: I.value.style.chart.tooltip.show
335
+ Be(L, () => {
336
+ V.value = {
337
+ showTable: L.value.table.show,
338
+ showTooltip: L.value.style.chart.tooltip.show
339
339
  };
340
340
  }, { immediate: !0 });
341
- let V = w({
342
- height: I.value.style.chart.height,
343
- width: I.value.style.chart.width
341
+ let cn = w({
342
+ height: L.value.style.chart.height,
343
+ width: L.value.style.chart.width
344
344
  });
345
345
  function ln(e) {
346
- let t = N.value, n = V.value.height;
346
+ let t = P.value, n = cn.value.height;
347
347
  return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
348
348
  }
349
349
  function un() {
350
- if (!Rt.value || Z.value.length <= 1) return 0;
351
- let e = Rt.value, t = getComputedStyle(e);
350
+ if (!Lt.value || Z.value.length <= 1) return 0;
351
+ let e = Lt.value, t = getComputedStyle(e);
352
352
  return ln(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
353
353
  }
354
354
  let H = m(() => {
355
- let e = I.value.style.chart.padding, t = V.value.width, n = V.value.height, r = un(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
355
+ let e = L.value.style.chart.padding, t = cn.value.width, n = cn.value.height, r = un(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
356
356
  return {
357
357
  left: i,
358
358
  top: o,
@@ -364,18 +364,18 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
364
364
  vbHeight: n - r,
365
365
  offsetY: r
366
366
  };
367
- }), U = w(i(Xt.value)), W = w(U.value), dn = E(/* @__PURE__ */ new Map());
368
- O([U, () => I.value], () => {
369
- Ht.value = null, Ut.value = /* @__PURE__ */ new Map();
370
- }, { deep: !0 }), O(() => M.value, () => {
371
- Ht.value = null, Ut.value = /* @__PURE__ */ new Map(), hn(), Lt.value += 1, It.value += 1;
372
- }, { deep: !0 }), O([() => V.value.width, () => V.value.height], () => {
373
- Ut.value = /* @__PURE__ */ new Map();
367
+ }), U = w(i(Yt.value)), W = w(U.value), dn = E(/* @__PURE__ */ new Map());
368
+ Be([U, () => L.value], () => {
369
+ Vt.value = null, Ht.value = /* @__PURE__ */ new Map();
370
+ }, { deep: !0 }), Be(() => N.value, () => {
371
+ Vt.value = null, Ht.value = /* @__PURE__ */ new Map(), hn(), It.value += 1, Ft.value += 1;
372
+ }, { deep: !0 }), Be([() => cn.value.width, () => cn.value.height], () => {
373
+ Ht.value = /* @__PURE__ */ new Map();
374
374
  });
375
375
  function fn(e) {
376
376
  Array.isArray(e) && e.forEach((e, t) => {
377
377
  e.id ||= n(), e.sourceColor === void 0 && (e.sourceColor = p(e.color) || null);
378
- let r = e.sourceColor || dn.value.get(e.id) || cn.value[t] || c[t] || c[t % c.length];
378
+ let r = e.sourceColor || dn.value.get(e.id) || sn.value[t] || c[t] || c[t % c.length];
379
379
  r = p(r), dn.value.set(e.id, r), e.color = r, pn(e, r);
380
380
  });
381
381
  }
@@ -392,25 +392,25 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
392
392
  return t?.id ?? null;
393
393
  }
394
394
  function hn() {
395
- let e = U.value.filter((e) => !M.value.includes(e.id));
396
- if (!P.value.length) {
395
+ let e = U.value.filter((e) => !N.value.includes(e.id));
396
+ if (!F.value.length) {
397
397
  W.value = e;
398
398
  return;
399
399
  }
400
- let t = P.value[P.value.length - 1], n = X(t);
400
+ let t = F.value[F.value.length - 1], n = X(t);
401
401
  if (!n) {
402
- P.value = [], W.value = e;
402
+ F.value = [], W.value = e;
403
403
  return;
404
404
  }
405
405
  let r = mn(n.id);
406
- if (r && M.value.includes(r)) {
407
- P.value = [], W.value = e;
406
+ if (r && N.value.includes(r)) {
407
+ F.value = [], W.value = e;
408
408
  return;
409
409
  }
410
410
  W.value = [n];
411
411
  }
412
- O(() => Xt.value, () => {
413
- U.value = i(Xt.value), fn(U.value), hn(), Lt.value += 1, It.value += 1;
412
+ Be(() => Yt.value, () => {
413
+ U.value = i(Yt.value), fn(U.value), hn(), It.value += 1, Ft.value += 1;
414
414
  }, {
415
415
  deep: !0,
416
416
  immediate: !0,
@@ -418,28 +418,28 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
418
418
  });
419
419
  let G = E(null), gn = E(null);
420
420
  Pe(() => {
421
- zt.value = !0, vn();
421
+ Rt.value = !0, vn();
422
422
  });
423
- let _n = m(() => I.value.debug);
423
+ let _n = m(() => L.value.debug);
424
424
  function vn() {
425
- if (s(A.dataset) && l({
425
+ if (s(k.dataset) && l({
426
426
  componentName: "VueUiTreemap",
427
427
  type: "dataset",
428
428
  debug: _n.value
429
- }), fn(U.value), s(A.dataset) || (Zt.value = I.value.loading), I.value.responsive) {
429
+ }), fn(U.value), s(k.dataset) || (Xt.value = L.value.loading), L.value.responsive) {
430
430
  let e = ge(() => {
431
431
  let { width: e, height: t } = _e({
432
- chart: N.value,
433
- title: I.value.style.chart.title.text ? jt.value : null,
434
- legend: I.value.style.chart.legend.show ? Mt.value : null,
435
- source: Nt.value,
436
- noTitle: Pt.value
432
+ chart: P.value,
433
+ title: L.value.style.chart.title.text ? At.value : null,
434
+ legend: L.value.style.chart.legend.show ? jt.value : null,
435
+ source: Mt.value,
436
+ noTitle: Nt.value
437
437
  });
438
438
  requestAnimationFrame(() => {
439
- V.value.width = e, V.value.height = t - 12;
439
+ cn.value.width = e, cn.value.height = t - 12;
440
440
  });
441
441
  });
442
- G.value && (gn.value && G.value.unobserve(gn.value), G.value.disconnect()), G.value = new ResizeObserver(e), gn.value = N.value.parentNode, G.value.observe(gn.value);
442
+ G.value && (gn.value && G.value.unobserve(gn.value), G.value.disconnect()), G.value = new ResizeObserver(e), gn.value = P.value.parentNode, G.value.observe(gn.value);
443
443
  }
444
444
  }
445
445
  Ne(() => {
@@ -447,11 +447,11 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
447
447
  });
448
448
  let yn = m(() => W.value.map((e, t) => ({
449
449
  ...e,
450
- color: p(e.color) || cn.value[t] || c[t] || c[t % c.length]
451
- })).filter((e) => !M.value.includes(e.id))), bn = m(() => U.value.filter((e) => !M.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), xn = m({
450
+ color: p(e.color) || sn.value[t] || c[t] || c[t % c.length]
451
+ })).filter((e) => !N.value.includes(e.id))), bn = m(() => U.value.filter((e) => !N.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), xn = m({
452
452
  get() {
453
453
  let e = [...yn.value];
454
- return I.value.style.chart.layout.sorted && (e = [...yn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
454
+ return L.value.style.chart.layout.sorted && (e = [...yn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
455
455
  },
456
456
  set(e) {
457
457
  return e;
@@ -461,7 +461,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
461
461
  return e.value / t;
462
462
  }
463
463
  function Cn(e, t, n) {
464
- let r = I.value.style.chart.layout.rects.colorRatio - Sn(t, n);
464
+ let r = L.value.style.chart.layout.rects.colorRatio - Sn(t, n);
465
465
  return ie(e, r < 0 ? 0 : r);
466
466
  }
467
467
  function wn(e) {
@@ -477,7 +477,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
477
477
  }
478
478
  function En(e, t, n, r, i) {
479
479
  return Tn(e).map((e, a) => {
480
- let o = e.sourceColor || p(e.color) || p(t) || cn.value[a] || c[a] || c[a % c.length], s = e.sourceColor ? e.sourceColor : Cn(o, e, r), l = Sn(e, r), u = i ?? e.parentId ?? e.id, d = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
480
+ let o = e.sourceColor || p(e.color) || p(t) || sn.value[a] || c[a] || c[a % c.length], s = e.sourceColor ? e.sourceColor : Cn(o, e, r), l = Sn(e, r), u = i ?? e.parentId ?? e.id, d = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
481
481
  return {
482
482
  ...e,
483
483
  color: s,
@@ -506,7 +506,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
506
506
  let i = e.map((e) => {
507
507
  let { children: t, ...n } = e;
508
508
  return { ...n };
509
- }), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Ke(i, t), c = [];
509
+ }), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = qe(i, t), c = [];
510
510
  for (let e of s) {
511
511
  let t = a.get(e.id) || [], i = o.get(e.id), s = {
512
512
  ...e,
@@ -527,7 +527,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
527
527
  let An = m(() => {
528
528
  let e = W.value.length ? W.value : xn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
529
529
  return kn(e.map((e, r) => {
530
- let i = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...o } = e, s = e.sourceColor || p(e.color) || dn.value.get(e.id) || cn.value[r] || c[r] || c[r % c.length], l = e.sourceColor ? e.sourceColor : Cn(s, e, t);
530
+ let i = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...o } = e, s = e.sourceColor || p(e.color) || dn.value.get(e.id) || sn.value[r] || c[r] || c[r % c.length], l = e.sourceColor ? e.sourceColor : Cn(s, e, t);
531
531
  return {
532
532
  ...o,
533
533
  id: e.id || n(),
@@ -552,13 +552,13 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
552
552
  return t - e <= 0 ? 1e-4 : t - e;
553
553
  }
554
554
  function jn(e) {
555
- let t = I.value.style.chart.layout.labels, n = t.fontSize, r = t.minFontSize, i = t.fontSize * 2, a = .6, o = e.proportion;
555
+ let t = L.value.style.chart.layout.labels, n = t.fontSize, r = t.minFontSize, i = t.fontSize * 2, a = .6, o = e.proportion;
556
556
  typeof o == "number" && isFinite(o) || (o = Math.max(1e-6, J(e) * q(e)) / Math.max(1e-6, H.value.width * H.value.height));
557
557
  let s = Math.min(1, Math.max(0, o)) ** .5, c = a + (1 - a) * s, l = .9 ** Math.max(0, Number(e.depth) || 0), u = n * c * l, d = Math.max(1e-4, Math.min(J(e), q(e)));
558
558
  return u = Math.min(u, d * .9), u = Math.min(u, i), u = Math.max(r, u), u;
559
559
  }
560
560
  function Mn(e) {
561
- kt.value = e, At.value += 1;
561
+ M.value = e, kt.value += 1;
562
562
  }
563
563
  let Y = m(() => ({
564
564
  startX: 0,
@@ -585,18 +585,18 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
585
585
  }
586
586
  return t;
587
587
  }
588
- let Pn = m(() => P.value.length > 0);
588
+ let Pn = m(() => F.value.length > 0);
589
589
  function Fn() {
590
- W.value = U.value.slice(), P.value = [], et("selectDatapoint", void 0);
590
+ W.value = U.value.slice(), F.value = [], A("selectDatapoint", void 0);
591
591
  }
592
592
  function In() {
593
- return P.value[P.value.length - 1] ?? null;
593
+ return F.value[F.value.length - 1] ?? null;
594
594
  }
595
595
  function Ln(e, t, n) {
596
- P.value = [...Nn(e.id), e.id], W.value = [e], I.value.events.datapointClick && I.value.events.datapointClick({
596
+ F.value = [...Nn(e.id), e.id], W.value = [e], L.value.events.datapointClick && L.value.events.datapointClick({
597
597
  datapoint: t ?? e,
598
598
  seriesIndex: n
599
- }), et("selectDatapoint", t ?? e);
599
+ }), A("selectDatapoint", t ?? e);
600
600
  }
601
601
  function Rn(e, t) {
602
602
  let n = In();
@@ -606,7 +606,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
606
606
  }
607
607
  let r = X(n);
608
608
  if (!r?.parentId) {
609
- I.value.events.datapointClick && I.value.events.datapointClick({
609
+ L.value.events.datapointClick && L.value.events.datapointClick({
610
610
  datapoint: e,
611
611
  seriesIndex: t
612
612
  }), Fn();
@@ -617,10 +617,10 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
617
617
  Fn();
618
618
  return;
619
619
  }
620
- P.value = [...Nn(i.id), i.id], W.value = [i], I.value.events.datapointClick && I.value.events.datapointClick({
620
+ F.value = [...Nn(i.id), i.id], W.value = [i], L.value.events.datapointClick && L.value.events.datapointClick({
621
621
  datapoint: e,
622
622
  seriesIndex: t
623
- }), et("selectDatapoint", e);
623
+ }), A("selectDatapoint", e);
624
624
  }
625
625
  function zn(e, t) {
626
626
  if (!e) {
@@ -644,8 +644,8 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
644
644
  id: null,
645
645
  label: "All"
646
646
  }];
647
- if (P.value.length > 0) {
648
- let t = X(P.value[P.value.length - 1]), n = [];
647
+ if (F.value.length > 0) {
648
+ let t = X(F.value[F.value.length - 1]), n = [];
649
649
  for (; t;) n.unshift(t), t = t.parentId ? X(t.parentId) : null;
650
650
  for (let t of n) e.push({
651
651
  id: t.id,
@@ -656,52 +656,52 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
656
656
  return e;
657
657
  }), Q = E(null), Vn = m(() => U.value.map((e, t) => ({
658
658
  ...e,
659
- color: p(e.color) || cn.value[t] || c[t] || c[t % c.length],
659
+ color: p(e.color) || sn.value[t] || c[t] || c[t % c.length],
660
660
  shape: "square"
661
661
  })).sort((e, t) => t.value - e.value).map((e, n) => {
662
662
  let r = e.value / U.value.map((e) => e.value).reduce((e, t) => e + t, 0);
663
663
  return {
664
664
  ...e,
665
665
  proportion: r,
666
- isSegregated: M.value.includes(e.id),
666
+ isSegregated: N.value.includes(e.id),
667
667
  segregate: () => Gn(e),
668
- opacity: M.value.includes(e.id) ? .5 : 1,
669
- display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? d(I.value.style.chart.layout.labels.formatter, e.value, t({
670
- p: I.value.style.chart.layout.labels.prefix,
668
+ opacity: N.value.includes(e.id) ? .5 : 1,
669
+ display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? d(L.value.style.chart.layout.labels.formatter, e.value, t({
670
+ p: L.value.style.chart.layout.labels.prefix,
671
671
  v: e.value,
672
- s: I.value.style.chart.layout.labels.suffix,
673
- r: I.value.style.chart.legend.roundingValue
674
- }), { datapoint: e }) : ""}${I.value.style.chart.legend.showPercentage ? M.value.includes(e.id) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / bn.value) ? "-" : (e.value / bn.value * 100).toFixed(I.value.style.chart.legend.roundingPercentage)}%${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
672
+ s: L.value.style.chart.layout.labels.suffix,
673
+ r: L.value.style.chart.legend.roundingValue
674
+ }), { datapoint: e }) : ""}${L.value.style.chart.legend.showPercentage ? N.value.includes(e.id) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / bn.value) ? "-" : (e.value / bn.value * 100).toFixed(L.value.style.chart.legend.roundingPercentage)}%${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
675
675
  };
676
676
  })), Hn = m(() => ({
677
677
  cy: "treemap-div-legend",
678
- backgroundColor: I.value.style.chart.legend.backgroundColor,
679
- color: I.value.style.chart.legend.color,
680
- fontSize: I.value.style.chart.legend.fontSize,
678
+ backgroundColor: L.value.style.chart.legend.backgroundColor,
679
+ color: L.value.style.chart.legend.color,
680
+ fontSize: L.value.style.chart.legend.fontSize,
681
681
  paddingBottom: 12,
682
- fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
683
- })), Un = m(() => M.value.length === Vn.value.length);
682
+ fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
683
+ })), Un = m(() => N.value.length === Vn.value.length);
684
684
  function Wn() {
685
- M.value.length ? M.value = [] : Vn.value.forEach((e) => {
686
- M.value.push(e.id);
687
- });
685
+ N.value.length ? N.value = [] : Vn.value.forEach((e) => {
686
+ N.value.push(e.id);
687
+ }), A("selectLegend", U.value.filter((e) => !N.value.includes(e.id)));
688
688
  }
689
689
  function Gn(e) {
690
- Q.value = null, M.value.includes(e.id) ? M.value = M.value.filter((t) => t !== e.id) : M.value.length < A.dataset.length - 1 && M.value.push(e.id), et("selectLegend", xn.value);
690
+ Q.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length < k.dataset.length - 1 && N.value.push(e.id), A("selectLegend", U.value.filter((e) => !N.value.includes(e.id)));
691
691
  }
692
692
  function Kn(e) {
693
- return U.value.length ? U.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiTreemap - There are no series to show."), null);
693
+ return U.value.length ? U.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiTreemap - There are no series to show."), null);
694
694
  }
695
695
  function qn(e) {
696
696
  let t = Kn(e);
697
- t !== null && M.value.includes(t.id) && Gn({ id: t.id });
697
+ t !== null && N.value.includes(t.id) && Gn({ id: t.id });
698
698
  }
699
699
  function Jn(e) {
700
700
  let t = Kn(e);
701
- t !== null && (M.value.includes(t.id) || Gn({ id: t.id }));
701
+ t !== null && (N.value.includes(t.id) || Gn({ id: t.id }));
702
702
  }
703
703
  function Yn({ datapoint: e, seriesIndex: t }) {
704
- Q.value = null, Dt.value = !1, F.value = null, qt.value = "pointer", I.value.events.datapointLeave && I.value.events.datapointLeave({
704
+ Q.value = null, Dt.value = !1, I.value = null, Kt.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
705
705
  datapoint: e,
706
706
  seriesIndex: t
707
707
  });
@@ -709,34 +709,34 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
709
709
  let Xn = w(null);
710
710
  function Zn({ datapoint: e, seriesIndex: n, triggerMode: r = "pointer" }) {
711
711
  if (Un.value) return;
712
- I.value.events.datapointEnter && I.value.events.datapointEnter({
712
+ L.value.events.datapointEnter && L.value.events.datapointEnter({
713
713
  datapoint: e,
714
714
  seriesIndex: n
715
- }), F.value = n, qt.value = r, Q.value = e, Xn.value = {
715
+ }), I.value = n, Kt.value = r, Q.value = e, Xn.value = {
716
716
  datapoint: e,
717
717
  seriesIndex: n,
718
- config: I.value,
718
+ config: L.value,
719
719
  series: yn.value
720
720
  };
721
- let i = I.value.style.chart.tooltip.customFormat;
721
+ let i = L.value.style.chart.tooltip.customFormat;
722
722
  if (ee(i) && f(() => i({
723
723
  seriesIndex: n,
724
724
  datapoint: e,
725
725
  series: yn.value,
726
- config: I.value
726
+ config: L.value
727
727
  }))) Ot.value = i({
728
728
  seriesIndex: n,
729
729
  datapoint: e,
730
730
  series: yn.value,
731
- config: I.value
731
+ config: L.value
732
732
  });
733
733
  else {
734
734
  let r = "";
735
- r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<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>`, r += `<b>${d(I.value.style.chart.layout.labels.formatter, e.value, t({
736
- p: I.value.style.chart.layout.labels.prefix,
735
+ r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<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>`, r += `<b>${d(L.value.style.chart.layout.labels.formatter, e.value, t({
736
+ p: L.value.style.chart.layout.labels.prefix,
737
737
  v: e.value,
738
- s: I.value.style.chart.layout.labels.suffix,
739
- r: I.value.style.chart.tooltip.roundingValue
738
+ s: L.value.style.chart.layout.labels.suffix,
739
+ r: L.value.style.chart.tooltip.roundingValue
740
740
  }), {
741
741
  datapoint: e,
742
742
  seriesIndex: n
@@ -758,8 +758,8 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
758
758
  [$.value.body[t]],
759
759
  [isNaN($.value.body[t] / bn.value) ? "-" : $.value.body[t] / bn.value * 100]
760
760
  ]), n = o([
761
- [I.value.style.chart.title.text],
762
- [I.value.style.chart.title.subtitle.text],
761
+ [L.value.style.chart.title.text],
762
+ [L.value.style.chart.title.subtitle.text],
763
763
  [
764
764
  [""],
765
765
  ["val"],
@@ -768,21 +768,21 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
768
768
  ].concat(t));
769
769
  e ? e(n) : r({
770
770
  csvContent: n,
771
- title: I.value.style.chart.title.text || "vue-ui-treemap"
771
+ title: L.value.style.chart.title.text || "vue-ui-treemap"
772
772
  });
773
773
  });
774
774
  }
775
775
  let $n = m(() => {
776
776
  let e = [
777
- I.value.table.columnNames.series,
778
- I.value.table.columnNames.value,
779
- I.value.table.columnNames.percentage
777
+ L.value.table.columnNames.series,
778
+ L.value.table.columnNames.value,
779
+ L.value.table.columnNames.percentage
780
780
  ], n = $.value.head.map((e, n) => {
781
- let r = d(I.value.style.chart.layout.labels.formatter, $.value.body[n], t({
782
- p: I.value.style.chart.layout.labels.prefix,
781
+ let r = d(L.value.style.chart.layout.labels.formatter, $.value.body[n], t({
782
+ p: L.value.style.chart.layout.labels.prefix,
783
783
  v: $.value.body[n],
784
- s: I.value.style.chart.layout.labels.suffix,
785
- r: I.value.table.td.roundingValue
784
+ s: L.value.style.chart.layout.labels.suffix,
785
+ r: L.value.table.td.roundingValue
786
786
  }));
787
787
  return [
788
788
  {
@@ -794,24 +794,24 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
794
794
  isNaN($.value.body[n] / bn.value) ? "-" : t({
795
795
  v: $.value.body[n] / bn.value * 100,
796
796
  s: "%",
797
- r: I.value.table.td.roundingPercentage
797
+ r: L.value.table.td.roundingPercentage
798
798
  })
799
799
  ];
800
800
  }), r = {
801
801
  th: {
802
- backgroundColor: I.value.table.th.backgroundColor,
803
- color: I.value.table.th.color,
804
- outline: I.value.table.th.outline
802
+ backgroundColor: L.value.table.th.backgroundColor,
803
+ color: L.value.table.th.color,
804
+ outline: L.value.table.th.outline
805
805
  },
806
806
  td: {
807
- backgroundColor: I.value.table.td.backgroundColor,
808
- color: I.value.table.td.color,
809
- outline: I.value.table.td.outline
807
+ backgroundColor: L.value.table.td.backgroundColor,
808
+ color: L.value.table.td.color,
809
+ outline: L.value.table.td.outline
810
810
  },
811
- breakpoint: I.value.table.responsiveBreakpoint
811
+ breakpoint: L.value.table.responsiveBreakpoint
812
812
  };
813
813
  return {
814
- colNames: [I.value.table.columnNames.series, I.value.table.columnNames.value],
814
+ colNames: [L.value.table.columnNames.series, L.value.table.columnNames.value],
815
815
  head: e,
816
816
  body: n,
817
817
  config: r
@@ -821,10 +821,10 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
821
821
  return K.value;
822
822
  }
823
823
  function tr() {
824
- B.value.showTable = !B.value.showTable;
824
+ V.value.showTable = !V.value.showTable;
825
825
  }
826
826
  function nr() {
827
- B.value.showTooltip = !B.value.showTooltip;
827
+ V.value.showTooltip = !V.value.showTooltip;
828
828
  }
829
829
  let rr = w(!1);
830
830
  function ir() {
@@ -838,9 +838,9 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
838
838
  ar.value = null;
839
839
  }
840
840
  async function cr({ scale: e = 2 } = {}) {
841
- if (!N.value) return;
842
- let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
843
- domElement: N.value,
841
+ if (!P.value) return;
842
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
843
+ domElement: P.value,
844
844
  base64: !0,
845
845
  img: !0,
846
846
  scale: e
@@ -848,65 +848,65 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
848
848
  return {
849
849
  imageUri: i,
850
850
  base64: a,
851
- title: I.value.style.chart.title.text,
851
+ title: L.value.style.chart.title.text,
852
852
  width: t,
853
853
  height: n,
854
854
  aspectRatio: r
855
855
  };
856
856
  }
857
857
  let lr = m(() => {
858
- let e = I.value.table.useDialog && !I.value.table.show, t = B.value.showTable;
858
+ let e = L.value.table.useDialog && !L.value.table.show, t = V.value.showTable;
859
859
  return {
860
- component: e ? Xe : Ge,
861
- title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
860
+ component: e ? Ze : Ke,
861
+ title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
862
862
  props: e ? {
863
- backgroundColor: I.value.table.th.backgroundColor,
864
- color: I.value.table.th.color,
865
- headerColor: I.value.table.th.color,
866
- headerBg: I.value.table.th.backgroundColor,
867
- isFullscreen: kt.value,
868
- fullscreenParent: N.value,
863
+ backgroundColor: L.value.table.th.backgroundColor,
864
+ color: L.value.table.th.color,
865
+ headerColor: L.value.table.th.color,
866
+ headerBg: L.value.table.th.backgroundColor,
867
+ isFullscreen: M.value,
868
+ fullscreenParent: P.value,
869
869
  forcedWidth: Math.min(800, window.innerWidth * .8),
870
- isCursorPointer: L.value
870
+ isCursorPointer: R.value
871
871
  } : {
872
872
  hideDetails: !0,
873
873
  config: {
874
874
  open: t,
875
875
  maxHeight: 1e4,
876
876
  body: {
877
- backgroundColor: I.value.style.chart.backgroundColor,
878
- color: I.value.style.chart.color
877
+ backgroundColor: L.value.style.chart.backgroundColor,
878
+ color: L.value.style.chart.color
879
879
  },
880
880
  head: {
881
- backgroundColor: I.value.style.chart.backgroundColor,
882
- color: I.value.style.chart.color
881
+ backgroundColor: L.value.style.chart.backgroundColor,
882
+ color: L.value.style.chart.color
883
883
  }
884
884
  }
885
885
  }
886
886
  };
887
887
  });
888
- O(() => B.value.showTable, (e) => {
889
- I.value.table.show || (e && I.value.table.useDialog && Bt.value ? Bt.value.open() : "close" in Bt.value && Bt.value.close());
888
+ Be(() => V.value.showTable, (e) => {
889
+ L.value.table.show || (e && L.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
890
890
  });
891
891
  function ur() {
892
- B.value.showTable = !1, Vt.value && Vt.value.setTableIconState(!1);
892
+ V.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
893
893
  }
894
894
  let dr = m(() => Vn.value.map((e) => ({
895
895
  ...e,
896
896
  name: e.display
897
- }))), fr = m(() => I.value.style.chart.backgroundColor), pr = m(() => I.value.style.chart.legend), { exportSvg: mr, getSvg: hr } = ue({
898
- svg: z,
899
- title: m(() => I.value.style.chart.title),
897
+ }))), fr = m(() => L.value.style.chart.backgroundColor), pr = m(() => L.value.style.chart.legend), { exportSvg: mr, getSvg: hr } = ue({
898
+ svg: B,
899
+ title: m(() => L.value.style.chart.title),
900
900
  legend: pr,
901
901
  legendItems: dr,
902
902
  backgroundColor: fr
903
903
  });
904
904
  async function gr({ isCb: e }) {
905
- Gt.value = !0, await je();
905
+ Wt.value = !0, await je();
906
906
  try {
907
907
  if (e) {
908
908
  let { blob: e, url: t, text: n, dataUrl: r } = await hr();
909
- await Promise.resolve(I.value.userOptions.callbacks.svg({
909
+ await Promise.resolve(L.value.userOptions.callbacks.svg({
910
910
  blob: e,
911
911
  url: t,
912
912
  text: n,
@@ -914,19 +914,19 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
914
914
  }));
915
915
  } else await Promise.resolve(mr());
916
916
  } finally {
917
- Gt.value = !1;
917
+ Wt.value = !1;
918
918
  }
919
919
  }
920
920
  function _r(e) {
921
921
  if (e?.stage === "start") {
922
- Wt.value = !0;
922
+ Ut.value = !0;
923
923
  return;
924
924
  }
925
925
  if (e?.stage === "end") {
926
- Wt.value = !1;
926
+ Ut.value = !1;
927
927
  return;
928
928
  }
929
- on();
929
+ an();
930
930
  }
931
931
  function vr(e) {
932
932
  let t = jn(e);
@@ -948,16 +948,16 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
948
948
  };
949
949
  }
950
950
  function br(e) {
951
- return te(e.color ?? I.value.style.chart.backgroundColor);
951
+ return te(e.color ?? L.value.style.chart.backgroundColor);
952
952
  }
953
953
  function xr(e, n) {
954
954
  let { fontSize: r, lineHeight: i } = vr(e), a = Dr(e), o = Or(e);
955
955
  if (a <= 0 || o <= 0) return [];
956
- let s = Math.max(Math.floor(o / Math.max(i, 1)), 1), c = d(I.value.style.chart.layout.labels.formatter, e.value, t({
957
- p: I.value.style.chart.layout.labels.prefix,
956
+ let s = Math.max(Math.floor(o / Math.max(i, 1)), 1), c = d(L.value.style.chart.layout.labels.formatter, e.value, t({
957
+ p: L.value.style.chart.layout.labels.prefix,
958
958
  v: e.value,
959
- s: I.value.style.chart.layout.labels.suffix,
960
- r: I.value.style.chart.tooltip.roundingValue
959
+ s: L.value.style.chart.layout.labels.suffix,
960
+ r: L.value.style.chart.tooltip.roundingValue
961
961
  }), {
962
962
  datapoint: e,
963
963
  seriesIndex: n
@@ -975,7 +975,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
975
975
  return ee.slice(0, s);
976
976
  }
977
977
  function Sr({ rect: e, seriesIndex: t, isTitle: n }) {
978
- if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !On(e)) return "";
978
+ if (!e || !L.value.style.chart.layout.labels.showDefaultLabels || !On(e)) return "";
979
979
  let { fontSize: r } = vr(e), i = br(e), a = xr(e, t), o = yr(e);
980
980
  if (!a.length || o.width <= 0 || o.height <= 0) return "";
981
981
  let s = `treemap_clip_${j.value}_${e.id}_${e.depth}_${t}`;
@@ -1000,7 +1000,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1000
1000
  y="${n}"
1001
1001
  fill="${i}"
1002
1002
  font-size="${r}"
1003
- font-family="${I.value.style.fontFamily}"
1003
+ font-family="${L.value.style.fontFamily}"
1004
1004
  font-weight="${t === 0 ? 500 : 400}"
1005
1005
  text-anchor="start"
1006
1006
  dominant-baseline="text-before-edge"
@@ -1019,7 +1019,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1019
1019
  }
1020
1020
  function Tr(e, t, n = 400) {
1021
1021
  let r = wr();
1022
- return r ? (r.font = `${n} ${t}px ${I.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
1022
+ return r ? (r.font = `${n} ${t}px ${L.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
1023
1023
  }
1024
1024
  function Er(e, t, n, r = 400) {
1025
1025
  let i = String(e ?? "");
@@ -1040,44 +1040,44 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1040
1040
  return yr(e).height;
1041
1041
  }
1042
1042
  function kr(e) {
1043
- let t = I.value.style.chart.layout.rects.borderRadius, n = J(e), r = q(e);
1043
+ let t = L.value.style.chart.layout.rects.borderRadius, n = J(e), r = q(e);
1044
1044
  return Math.min(t, Math.min(n, r) / 6);
1045
1045
  }
1046
1046
  async function Ar() {
1047
- if (et("copyAlt", {
1048
- config: I.value,
1047
+ if (A("copyAlt", {
1048
+ config: L.value,
1049
1049
  dataset: K.value
1050
- }), !I.value.userOptions.callbacks.altCopy) {
1050
+ }), !L.value.userOptions.callbacks.altCopy) {
1051
1051
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1052
1052
  return;
1053
1053
  }
1054
- await Promise.resolve(I.value.userOptions.callbacks.altCopy({
1055
- config: I.value,
1054
+ await Promise.resolve(L.value.userOptions.callbacks.altCopy({
1055
+ config: L.value,
1056
1056
  dataset: K.value
1057
1057
  }));
1058
1058
  }
1059
1059
  function jr() {
1060
- F.value = null, Jt.value = !0;
1060
+ I.value = null, qt.value = !0;
1061
1061
  }
1062
1062
  function Mr() {
1063
- F.value = null, qt.value = "pointer", Dt.value = !1, Q.value = null, Jt.value = !1;
1063
+ I.value = null, Kt.value = "pointer", Dt.value = !1, Q.value = null, qt.value = !1;
1064
1064
  }
1065
1065
  function Nr(e) {
1066
- if (!z.value || rr.value || document.activeElement !== z.value || !K.value.length || Un.value) return;
1066
+ if (!B.value || rr.value || document.activeElement !== B.value || !K.value.length || Un.value) return;
1067
1067
  let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1068
1068
  if (!t && !n && !r && !i) return;
1069
1069
  if (e.preventDefault(), e.stopPropagation(), i) {
1070
- F.value = null, qt.value = "pointer", Dt.value = !1, Q.value = null;
1070
+ I.value = null, Kt.value = "pointer", Dt.value = !1, Q.value = null;
1071
1071
  return;
1072
1072
  }
1073
1073
  if (r) {
1074
- if (F.value === null) return;
1075
- let e = K.value[F.value];
1074
+ if (I.value === null) return;
1075
+ let e = K.value[I.value];
1076
1076
  if (!e) return;
1077
- zn(e, F.value);
1077
+ zn(e, I.value);
1078
1078
  return;
1079
1079
  }
1080
- let a = F.value, o = Q.value ? K.value.findIndex((e) => e.id === Q.value.id) : null, s = a !== null && a >= 0 && a < K.value.length, c = o !== null && o >= 0 && o < K.value.length;
1080
+ let a = I.value, o = Q.value ? K.value.findIndex((e) => e.id === Q.value.id) : null, s = a !== null && a >= 0 && a < K.value.length, c = o !== null && o >= 0 && o < K.value.length;
1081
1081
  s ? n ? (a += 1, a >= K.value.length && (a = 0)) : t && (--a, a < 0 && (a = K.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= K.value.length && (a = 0), a < 0 && (a = K.value.length - 1)) : a = n ? 0 : K.value.length - 1;
1082
1082
  let l = K.value[a];
1083
1083
  l && (Pr(a), Zn({
@@ -1087,11 +1087,11 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1087
1087
  }));
1088
1088
  }
1089
1089
  function Pr(e) {
1090
- if (!Number.isFinite(e) || !z.value) return;
1090
+ if (!Number.isFinite(e) || !B.value) return;
1091
1091
  let t = K.value[e];
1092
1092
  if (!t) return;
1093
- let n = t.x0 + J(t) / 2, r = t.y0 + q(t) / 2, i = z.value.getBoundingClientRect();
1094
- Kt.value = {
1093
+ let n = t.x0 + J(t) / 2, r = t.y0 + q(t) / 2, i = B.value.getBoundingClientRect();
1094
+ Gt.value = {
1095
1095
  x: i.left + (n - Y.value.startX) / Y.value.width * i.width,
1096
1096
  y: i.top + (r - Y.value.startY) / Y.value.height * i.height
1097
1097
  };
@@ -1104,9 +1104,9 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1104
1104
  getData: er,
1105
1105
  getImage: cr,
1106
1106
  generateCsv: Qn,
1107
- generateImage: on,
1107
+ generateImage: an,
1108
1108
  generateSvg: gr,
1109
- generatePdf: an,
1109
+ generatePdf: rn,
1110
1110
  hideSeries: Jn,
1111
1111
  showSeries: qn,
1112
1112
  toggleTable: tr,
@@ -1116,24 +1116,24 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1116
1116
  copyAlt: Ar
1117
1117
  }), (e, t) => (C(), _("div", {
1118
1118
  ref_key: "treemapChart",
1119
- ref: N,
1120
- class: Me(`vue-data-ui-component vue-ui-treemap ${kt.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1121
- style: S(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
1119
+ ref: P,
1120
+ class: Me(`vue-data-ui-component vue-ui-treemap ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1121
+ style: S(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
1122
1122
  id: `treemap_${j.value}`,
1123
- onMouseenter: t[2] ||= () => D($t)(!0),
1124
- onMouseleave: t[3] ||= () => D($t)(!1)
1123
+ onMouseenter: t[2] ||= () => D(Qt)(!0),
1124
+ onMouseleave: t[3] ||= () => D(Qt)(!1)
1125
1125
  }, [
1126
1126
  v("div", {
1127
1127
  id: `chart-instructions-${j.value}`,
1128
1128
  class: "sr-only"
1129
- }, [v("p", null, Le(I.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
1129
+ }, [v("p", null, Le(L.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
1130
1130
  Fr.value?.rows?.length ? (C(), h(be, {
1131
1131
  key: 0,
1132
1132
  uid: j.value,
1133
1133
  head: Fr.value.headers,
1134
1134
  body: Fr.value.rows,
1135
- notice: I.value.a11y.translations.tableAvailable,
1136
- caption: I.value.a11y.translations.tableCaption
1135
+ notice: L.value.a11y.translations.tableAvailable,
1136
+ caption: L.value.a11y.translations.tableCaption
1137
1137
  }, null, 8, [
1138
1138
  "uid",
1139
1139
  "head",
@@ -1141,21 +1141,21 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1141
1141
  "notice",
1142
1142
  "caption"
1143
1143
  ])) : g("", !0),
1144
- I.value.userOptions.buttons.annotator ? (C(), h(D(We), {
1144
+ L.value.userOptions.buttons.annotator ? (C(), h(D(Ge), {
1145
1145
  key: 1,
1146
- svgRef: D(z),
1147
- backgroundColor: I.value.style.chart.backgroundColor,
1148
- color: I.value.style.chart.color,
1146
+ svgRef: D(B),
1147
+ backgroundColor: L.value.style.chart.backgroundColor,
1148
+ color: L.value.style.chart.color,
1149
1149
  active: rr.value,
1150
- isCursorPointer: L.value,
1150
+ isCursorPointer: R.value,
1151
1151
  onClose: ir
1152
1152
  }, {
1153
- "annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1154
- "annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
1155
- "annotator-action-draw": k(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
1156
- "annotator-action-undo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
1157
- "annotator-action-redo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
1158
- "annotator-action-delete": k(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
1153
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1154
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
1155
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
1156
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
1157
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
1158
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
1159
1159
  _: 3
1160
1160
  }, 8, [
1161
1161
  "svgRef",
@@ -1164,62 +1164,62 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1164
1164
  "active",
1165
1165
  "isCursorPointer"
1166
1166
  ])) : g("", !0),
1167
- sn.value ? (C(), _("div", {
1167
+ on.value ? (C(), _("div", {
1168
1168
  key: 2,
1169
1169
  ref_key: "noTitle",
1170
- ref: Pt,
1170
+ ref: Nt,
1171
1171
  class: "vue-data-ui-no-title-space",
1172
1172
  style: "height:36px; width: 100%;background:transparent"
1173
1173
  }, null, 512)) : g("", !0),
1174
- I.value.style.chart.title.text ? (C(), _("div", {
1174
+ L.value.style.chart.title.text ? (C(), _("div", {
1175
1175
  key: 3,
1176
1176
  ref_key: "chartTitle",
1177
- ref: jt,
1178
- style: S(`width:100%;background:${I.value.style.chart.backgroundColor};padding-bottom:6px`)
1177
+ ref: At,
1178
+ style: S(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
1179
1179
  }, [(C(), h(me, {
1180
- key: `title_${Ft.value}`,
1180
+ key: `title_${Pt.value}`,
1181
1181
  config: {
1182
1182
  title: {
1183
1183
  cy: "treemap-div-title",
1184
- ...I.value.style.chart.title
1184
+ ...L.value.style.chart.title
1185
1185
  },
1186
1186
  subtitle: {
1187
1187
  cy: "treemap-div-subtitle",
1188
- ...I.value.style.chart.title.subtitle
1188
+ ...L.value.style.chart.title.subtitle
1189
1189
  }
1190
1190
  }
1191
1191
  }, null, 8, ["config"]))], 4)) : g("", !0),
1192
1192
  v("div", { id: `legend-top-${j.value}` }, null, 8, rt),
1193
- I.value.userOptions.show && Tt.value && (D(en) || D(Qt)) ? (C(), h(D(Je), {
1193
+ L.value.userOptions.show && Tt.value && (D($t) || D(Zt)) ? (C(), h(D(Ye), {
1194
1194
  ref_key: "userOptionsRef",
1195
- ref: Vt,
1196
- key: `user_option_${At.value}`,
1197
- backgroundColor: I.value.style.chart.backgroundColor,
1198
- color: I.value.style.chart.color,
1199
- isPrinting: D(nn),
1200
- isImaging: D(rn),
1195
+ ref: Bt,
1196
+ key: `user_option_${kt.value}`,
1197
+ backgroundColor: L.value.style.chart.backgroundColor,
1198
+ color: L.value.style.chart.color,
1199
+ isPrinting: D(tn),
1200
+ isImaging: D(nn),
1201
1201
  uid: j.value,
1202
- hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
1203
- hasPdf: I.value.userOptions.buttons.pdf,
1204
- hasXls: I.value.userOptions.buttons.csv,
1205
- hasImg: I.value.userOptions.buttons.img,
1206
- hasSvg: I.value.userOptions.buttons.svg,
1207
- hasTable: I.value.userOptions.buttons.table,
1208
- hasFullscreen: I.value.userOptions.buttons.fullscreen,
1209
- hasAltCopy: I.value.userOptions.buttons.altCopy,
1210
- isFullscreen: kt.value,
1211
- isTooltip: B.value.showTooltip,
1212
- titles: { ...I.value.userOptions.buttonTitles },
1213
- chartElement: N.value,
1214
- position: I.value.userOptions.position,
1215
- hasAnnotator: I.value.userOptions.buttons.annotator,
1202
+ hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
1203
+ hasPdf: L.value.userOptions.buttons.pdf,
1204
+ hasXls: L.value.userOptions.buttons.csv,
1205
+ hasImg: L.value.userOptions.buttons.img,
1206
+ hasSvg: L.value.userOptions.buttons.svg,
1207
+ hasTable: L.value.userOptions.buttons.table,
1208
+ hasFullscreen: L.value.userOptions.buttons.fullscreen,
1209
+ hasAltCopy: L.value.userOptions.buttons.altCopy,
1210
+ isFullscreen: M.value,
1211
+ isTooltip: V.value.showTooltip,
1212
+ titles: { ...L.value.userOptions.buttonTitles },
1213
+ chartElement: P.value,
1214
+ position: L.value.userOptions.position,
1215
+ hasAnnotator: L.value.userOptions.buttons.annotator,
1216
1216
  isAnnotation: rr.value,
1217
- callbacks: I.value.userOptions.callbacks,
1218
- printScale: I.value.userOptions.print.scale,
1219
- tableDialog: I.value.table.useDialog,
1220
- isCursorPointer: L.value,
1217
+ callbacks: L.value.userOptions.callbacks,
1218
+ printScale: L.value.userOptions.print.scale,
1219
+ tableDialog: L.value.table.useDialog,
1220
+ isCursorPointer: R.value,
1221
1221
  onToggleFullscreen: Mn,
1222
- onGeneratePdf: D(an),
1222
+ onGeneratePdf: D(rn),
1223
1223
  onGenerateCsv: Qn,
1224
1224
  onGenerateImage: _r,
1225
1225
  onGenerateSvg: gr,
@@ -1227,11 +1227,11 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1227
1227
  onToggleTooltip: nr,
1228
1228
  onToggleAnnotator: ir,
1229
1229
  onCopyAlt: Ar,
1230
- style: S({ visibility: D(en) ? D(Qt) ? "visible" : "hidden" : "visible" })
1230
+ style: S({ visibility: D($t) ? D(Zt) ? "visible" : "hidden" : "visible" })
1231
1231
  }, De({ _: 2 }, [
1232
1232
  e.$slots.menuIcon ? {
1233
1233
  name: "menuIcon",
1234
- fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
1234
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
1235
1235
  isOpen: t,
1236
1236
  color: n
1237
1237
  })), void 0, !0)]),
@@ -1239,37 +1239,37 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1239
1239
  } : void 0,
1240
1240
  e.$slots.optionTooltip ? {
1241
1241
  name: "optionTooltip",
1242
- fn: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1242
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1243
1243
  key: "1"
1244
1244
  } : void 0,
1245
1245
  e.$slots.optionPdf ? {
1246
1246
  name: "optionPdf",
1247
- fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1247
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1248
1248
  key: "2"
1249
1249
  } : void 0,
1250
1250
  e.$slots.optionCsv ? {
1251
1251
  name: "optionCsv",
1252
- fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1252
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1253
1253
  key: "3"
1254
1254
  } : void 0,
1255
1255
  e.$slots.optionImg ? {
1256
1256
  name: "optionImg",
1257
- fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1257
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1258
1258
  key: "4"
1259
1259
  } : void 0,
1260
1260
  e.$slots.optionSvg ? {
1261
1261
  name: "optionSvg",
1262
- fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1262
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1263
1263
  key: "5"
1264
1264
  } : void 0,
1265
1265
  e.$slots.optionTable ? {
1266
1266
  name: "optionTable",
1267
- fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1267
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1268
1268
  key: "6"
1269
1269
  } : void 0,
1270
1270
  e.$slots.optionFullscreen ? {
1271
1271
  name: "optionFullscreen",
1272
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
1272
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
1273
1273
  toggleFullscreen: t,
1274
1274
  isFullscreen: n
1275
1275
  })), void 0, !0)]),
@@ -1277,7 +1277,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1277
1277
  } : void 0,
1278
1278
  e.$slots.optionAnnotator ? {
1279
1279
  name: "optionAnnotator",
1280
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
1280
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
1281
1281
  toggleAnnotator: t,
1282
1282
  isAnnotator: n
1283
1283
  })), void 0, !0)]),
@@ -1285,17 +1285,17 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1285
1285
  } : void 0,
1286
1286
  e.$slots.optionAltCopy ? {
1287
1287
  name: "optionAltCopy",
1288
- fn: k(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
1288
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
1289
1289
  key: "9"
1290
1290
  } : void 0,
1291
1291
  e.$slots["custom-menu-before"] ? {
1292
1292
  name: "custom-menu-before",
1293
- fn: k(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1293
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1294
1294
  key: "10"
1295
1295
  } : void 0,
1296
1296
  e.$slots["custom-menu-after"] ? {
1297
1297
  name: "custom-menu-after",
1298
- fn: k(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1298
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1299
1299
  key: "11"
1300
1300
  } : void 0
1301
1301
  ]), 1032, /* @__PURE__ */ "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".split("."))) : g("", !0),
@@ -1304,18 +1304,18 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1304
1304
  class: "vue-ui-treemap-breadcrumbs",
1305
1305
  "data-dom-to-png-ignore": "",
1306
1306
  ref_key: "breadcrumbsNav",
1307
- ref: Rt
1307
+ ref: Lt
1308
1308
  }, [(C(!0), _(Te, null, Fe(Z.value, (n, r) => (C(), _("span", {
1309
1309
  role: "button",
1310
1310
  tabindex: r < Z.value.length - 1 ? 0 : void 0,
1311
1311
  key: n.id || "root",
1312
1312
  onClick: (e) => r === Z.value.length - 1 ? () => {} : zn(n.node),
1313
- onKeydown: [Be(Ve((e) => r === Z.value.length - 1 ? void 0 : zn(n.node), ["prevent"]), ["enter"]), Be(Ve((e) => r === Z.value.length - 1 ? void 0 : zn(n.node), ["prevent"]), ["space"])],
1313
+ onKeydown: [Ve(He((e) => r === Z.value.length - 1 ? void 0 : zn(n.node), ["prevent"]), ["enter"]), Ve(He((e) => r === Z.value.length - 1 ? void 0 : zn(n.node), ["prevent"]), ["space"])],
1314
1314
  class: "vue-ui-treemap-crumb",
1315
1315
  "data-last-crumb": r === Z.value.length - 1,
1316
1316
  style: S({
1317
- color: I.value.style.chart.color,
1318
- cursor: L.value ? "pointer" : "default"
1317
+ color: L.value.style.chart.color,
1318
+ cursor: R.value ? "pointer" : "default"
1319
1319
  }),
1320
1320
  onMouseenter: (e) => or(r),
1321
1321
  onMouseleave: sr,
@@ -1327,29 +1327,29 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1327
1327
  isFocus: ar.value === r
1328
1328
  }), () => [r === 0 ? (C(), _("div", st, [ke(ve, {
1329
1329
  name: ar.value === 0 ? "homeFilled" : "home",
1330
- stroke: I.value.style.chart.color
1330
+ stroke: L.value.style.chart.color
1331
1331
  }, null, 8, ["name", "stroke"])])) : (C(), _(Te, { key: 1 }, [Oe(Le(n.label), 1)], 64))], !0)]), r < Z.value.length - 1 ? (C(), _("span", ct, [T(e.$slots, "breadcrumb-arrow", {}, () => [t[4] ||= Oe(" › ", -1)], !0)])) : g("", !0)])], 44, it))), 128))], 512)) : g("", !0),
1332
1332
  v("div", lt, [(C(), _("svg", {
1333
1333
  ref_key: "svgRef",
1334
- ref: z,
1334
+ ref: B,
1335
1335
  xmlns: D(ne),
1336
1336
  "aria-describedby": `chart-instructions-${j.value}`,
1337
1337
  class: Me({
1338
- "vue-data-ui-fullscreen--on": kt.value,
1339
- "vue-data-ui-fulscreen--off": !kt.value,
1338
+ "vue-data-ui-fullscreen--on": M.value,
1339
+ "vue-data-ui-fulscreen--off": !M.value,
1340
1340
  "vue-data-ui-zoom-plus": !Pn.value,
1341
1341
  "vue-data-ui-zoom-minus": Pn.value,
1342
- loading: D(R)
1342
+ loading: D(z)
1343
1343
  }),
1344
1344
  viewBox: `${Y.value.startX} ${Y.value.startY} ${Y.value.width <= 0 ? 10 : Y.value.width} ${Y.value.height <= 0 ? 10 : Y.value.height}`,
1345
- style: S(`max-width:100%; overflow: hidden; background:transparent;color:${I.value.style.chart.color}`),
1345
+ style: S(`max-width:100%; overflow: hidden; background:transparent;color:${L.value.style.chart.color}`),
1346
1346
  tabindex: "0",
1347
1347
  onFocus: jr,
1348
1348
  onBlur: Mr,
1349
1349
  onKeydown: Nr
1350
1350
  }, [
1351
- ke(D(Ye)),
1352
- (C(!0), _(Te, null, Fe(K.value, (e, t) => (C(), _("g", { key: `tgrad_${e.id}` }, [I.value.style.chart.layout.rects.gradient.show ? (C(), _("defs", dt, [v("radialGradient", {
1351
+ ke(D(Xe)),
1352
+ (C(!0), _(Te, null, Fe(K.value, (e, t) => (C(), _("g", { key: `tgrad_${e.id}` }, [L.value.style.chart.layout.rects.gradient.show ? (C(), _("defs", dt, [v("radialGradient", {
1353
1353
  id: `tgrad_${e.id}`,
1354
1354
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
1355
1355
  }, [v("stop", {
@@ -1357,7 +1357,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1357
1357
  "stop-color": e.color
1358
1358
  }, null, 8, pt), v("stop", {
1359
1359
  offset: "100%",
1360
- "stop-color": D(ie)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100)
1360
+ "stop-color": D(ie)(e.color, L.value.style.chart.layout.rects.gradient.intensity / 100)
1361
1361
  }, null, 8, mt)], 8, ft)])) : g("", !0)]))), 128)),
1362
1362
  v("g", null, [
1363
1363
  (C(!0), _(Te, null, Fe(K.value, (e, t) => (C(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
@@ -1365,11 +1365,11 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1365
1365
  y: e.y0,
1366
1366
  height: q(e),
1367
1367
  width: J(e),
1368
- fill: Et.value ? e.color ?? I.value.style.chart.backgroundColor : I.value.style.chart.layout.rects.gradient.show ? Un.value ? I.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? I.value.style.chart.backgroundColor,
1368
+ fill: Et.value ? e.color ?? L.value.style.chart.backgroundColor : L.value.style.chart.layout.rects.gradient.show ? Un.value ? L.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? L.value.style.chart.backgroundColor,
1369
1369
  rx: kr(e),
1370
- stroke: Q.value && Q.value.id === e.id ? I.value.style.chart.layout.rects.selected.stroke : I.value.style.chart.layout.rects.stroke,
1371
- "stroke-width": Q.value && Q.value.id === e.id ? I.value.style.chart.layout.rects.selected.strokeWidth : I.value.style.chart.layout.rects.strokeWidth,
1372
- onClick: Ve((n) => zn(e, t), ["stop"]),
1370
+ stroke: Q.value && Q.value.id === e.id ? L.value.style.chart.layout.rects.selected.stroke : L.value.style.chart.layout.rects.stroke,
1371
+ "stroke-width": Q.value && Q.value.id === e.id ? L.value.style.chart.layout.rects.selected.strokeWidth : L.value.style.chart.layout.rects.strokeWidth,
1372
+ onClick: He((n) => zn(e, t), ["stop"]),
1373
1373
  onMouseenter: () => Zn({
1374
1374
  datapoint: e,
1375
1375
  seriesIndex: t,
@@ -1379,10 +1379,10 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1379
1379
  datapoint: e,
1380
1380
  seriesIndex: t
1381
1381
  }),
1382
- style: S(`opacity:${Q.value ? Q.value.id === e.id ? 1 : I.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1382
+ style: S(`opacity:${Q.value ? Q.value.id === e.id ? 1 : L.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1383
1383
  class: Me(["vue-ui-treemap-rect", Bn(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"])
1384
1384
  }, null, 46, ht)]))), 128)),
1385
- (C(!0), _(Te, null, Fe(K.value, (t, n) => (C(), _("g", { key: `label_${t.id}_${t.depth}` }, [!e.$slots.rect && !D(R) && I.value.style.chart.layout.labels.showDefaultLabels && !Un.value && t.showLabel ? (C(), _("g", {
1385
+ (C(!0), _(Te, null, Fe(K.value, (t, n) => (C(), _("g", { key: `label_${t.id}_${t.depth}` }, [!e.$slots.rect && !D(z) && L.value.style.chart.layout.labels.showDefaultLabels && !Un.value && t.showLabel ? (C(), _("g", {
1386
1386
  key: 0,
1387
1387
  style: { "pointer-events": "none" },
1388
1388
  innerHTML: Sr({
@@ -1398,7 +1398,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1398
1398
  width: J(t),
1399
1399
  class: "vue-ui-treemap-cell-foreignObject",
1400
1400
  style: { "pointer-events": "none" }
1401
- }, [v("div", vt, [D(R) ? g("", !0) : T(e.$slots, "rect", Ae({
1401
+ }, [v("div", vt, [D(z) ? g("", !0) : T(e.$slots, "rect", Ae({
1402
1402
  key: 0,
1403
1403
  ref_for: !0
1404
1404
  }, {
@@ -1408,7 +1408,7 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1408
1408
  width: J(t),
1409
1409
  isSelected: Q.value ? Q.value.id === t.id : !0
1410
1410
  },
1411
- shouldShow: t.proportion > I.value.style.chart.layout.labels.hideUnderProportion || Pn.value,
1411
+ shouldShow: t.proportion > L.value.style.chart.layout.labels.hideUnderProportion || Pn.value,
1412
1412
  fontSize: jn(t),
1413
1413
  isZoom: Pn.value,
1414
1414
  textColor: D(te)(t.color)
@@ -1418,42 +1418,42 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1418
1418
  svg: H.value,
1419
1419
  isZoom: Pn.value,
1420
1420
  rect: Q.value,
1421
- config: I.value,
1422
- isPrintingImg: D(nn) || D(rn) || Wt.value,
1423
- isPrintingSvg: Gt.value
1421
+ config: L.value,
1422
+ isPrintingImg: D(tn) || D(nn) || Ut.value,
1423
+ isPrintingSvg: Wt.value
1424
1424
  })), void 0, !0)
1425
1425
  ], 46, ut)), e.$slots.hint ? (C(), _("div", yt, [T(e.$slots, "hint", x(b({
1426
- hint: I.value.a11y.translations.keyboardNavigation,
1427
- isVisible: Jt.value
1426
+ hint: L.value.a11y.translations.keyboardNavigation,
1427
+ isVisible: qt.value
1428
1428
  })), void 0, !0)])) : g("", !0)]),
1429
- e.$slots.watermark ? (C(), _("div", bt, [T(e.$slots, "watermark", x(b({ isPrinting: D(nn) || D(rn) || Wt.value || Gt.value })), void 0, !0)])) : g("", !0),
1429
+ e.$slots.watermark ? (C(), _("div", bt, [T(e.$slots, "watermark", x(b({ isPrinting: D(tn) || D(nn) || Ut.value || Wt.value })), void 0, !0)])) : g("", !0),
1430
1430
  v("div", { id: `legend-bottom-${j.value}` }, null, 8, xt),
1431
- zt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (C(), h(Ee, {
1431
+ Rt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (C(), h(Ee, {
1432
1432
  key: 7,
1433
- to: I.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1433
+ to: L.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1434
1434
  }, [v("div", {
1435
1435
  ref_key: "chartLegend",
1436
- ref: Mt
1437
- }, [T(e.$slots, "legend", { legend: Vn.value }, () => [I.value.style.chart.legend.show ? (C(), h(Ce, {
1438
- key: `legend_${Lt.value}`,
1436
+ ref: jt
1437
+ }, [T(e.$slots, "legend", { legend: Vn.value }, () => [L.value.style.chart.legend.show ? (C(), h(Ce, {
1438
+ key: `legend_${It.value}`,
1439
1439
  legendSet: Vn.value,
1440
1440
  config: Hn.value,
1441
1441
  id: `treemap_legend_${j.value}`,
1442
- isCursorPointer: L.value,
1442
+ isCursorPointer: R.value,
1443
1443
  onClickMarker: t[0] ||= ({ legend: e }) => Gn(e)
1444
1444
  }, {
1445
- item: k(({ legend: e, index: t }) => [D(R) ? g("", !0) : (C(), _("div", {
1445
+ item: O(({ legend: e, index: t }) => [D(z) ? g("", !0) : (C(), _("div", {
1446
1446
  key: 0,
1447
1447
  onClick: (t) => Gn(e),
1448
- style: S(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
1448
+ style: S(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
1449
1449
  }, Le(e.display), 13, St))]),
1450
- legendToggle: k(() => [Vn.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(R) ? (C(), h(ye, {
1450
+ legendToggle: O(() => [Vn.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !D(z) ? (C(), h(ye, {
1451
1451
  key: 0,
1452
- backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
1453
- color: I.value.style.chart.legend.selectAllToggle.color,
1454
- fontSize: I.value.style.chart.legend.fontSize,
1455
- checked: M.value.length > 0,
1456
- isCursorPointer: L.value,
1452
+ backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
1453
+ color: L.value.style.chart.legend.selectAllToggle.color,
1454
+ fontSize: L.value.style.chart.legend.fontSize,
1455
+ checked: N.value.length > 0,
1456
+ isCursorPointer: R.value,
1457
1457
  onToggle: Wn
1458
1458
  }, null, 8, [
1459
1459
  "backgroundColor",
@@ -1472,36 +1472,36 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1472
1472
  e.$slots.source ? (C(), _("div", {
1473
1473
  key: 8,
1474
1474
  ref_key: "source",
1475
- ref: Nt,
1475
+ ref: Mt,
1476
1476
  dir: "auto"
1477
1477
  }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1478
- ke(D(qe), {
1479
- teleportTo: I.value.style.chart.tooltip.teleportTo,
1480
- show: B.value.showTooltip && Dt.value,
1481
- backgroundColor: I.value.style.chart.tooltip.backgroundColor,
1482
- color: I.value.style.chart.tooltip.color,
1483
- fontSize: I.value.style.chart.tooltip.fontSize,
1484
- borderRadius: I.value.style.chart.tooltip.borderRadius,
1485
- borderColor: I.value.style.chart.tooltip.borderColor,
1486
- borderWidth: I.value.style.chart.tooltip.borderWidth,
1487
- backgroundOpacity: I.value.style.chart.tooltip.backgroundOpacity,
1488
- position: I.value.style.chart.tooltip.position,
1489
- offsetX: I.value.style.chart.tooltip.offsetX,
1490
- offsetY: I.value.style.chart.tooltip.offsetY,
1491
- parent: N.value,
1478
+ ke(D(Je), {
1479
+ teleportTo: L.value.style.chart.tooltip.teleportTo,
1480
+ show: V.value.showTooltip && Dt.value,
1481
+ backgroundColor: L.value.style.chart.tooltip.backgroundColor,
1482
+ color: L.value.style.chart.tooltip.color,
1483
+ fontSize: L.value.style.chart.tooltip.fontSize,
1484
+ borderRadius: L.value.style.chart.tooltip.borderRadius,
1485
+ borderColor: L.value.style.chart.tooltip.borderColor,
1486
+ borderWidth: L.value.style.chart.tooltip.borderWidth,
1487
+ backgroundOpacity: L.value.style.chart.tooltip.backgroundOpacity,
1488
+ position: L.value.style.chart.tooltip.position,
1489
+ offsetX: L.value.style.chart.tooltip.offsetX,
1490
+ offsetY: L.value.style.chart.tooltip.offsetY,
1491
+ parent: P.value,
1492
1492
  content: Ot.value,
1493
- isFullscreen: kt.value,
1494
- isCustom: D(ee)(I.value.style.chart.tooltip.customFormat),
1495
- smooth: I.value.style.chart.tooltip.smooth,
1496
- backdropFilter: I.value.style.chart.tooltip.backdropFilter,
1497
- smoothForce: I.value.style.chart.tooltip.smoothForce,
1498
- smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThreshold,
1499
- isA11yMode: qt.value === "keyboard",
1500
- a11yPosition: Kt.value
1493
+ isFullscreen: M.value,
1494
+ isCustom: D(ee)(L.value.style.chart.tooltip.customFormat),
1495
+ smooth: L.value.style.chart.tooltip.smooth,
1496
+ backdropFilter: L.value.style.chart.tooltip.backdropFilter,
1497
+ smoothForce: L.value.style.chart.tooltip.smoothForce,
1498
+ smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
1499
+ isA11yMode: Kt.value === "keyboard",
1500
+ a11yPosition: Gt.value
1501
1501
  }, {
1502
- "tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(b({ ...Xn.value })), void 0, !0)]),
1503
- tooltip: k(() => [T(e.$slots, "tooltip", x(b({ ...Xn.value })), void 0, !0)]),
1504
- "tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(b({ ...Xn.value })), void 0, !0)]),
1502
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(b({ ...Xn.value })), void 0, !0)]),
1503
+ tooltip: O(() => [T(e.$slots, "tooltip", x(b({ ...Xn.value })), void 0, !0)]),
1504
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(b({ ...Xn.value })), void 0, !0)]),
1505
1505
  _: 3
1506
1506
  }, 8, [
1507
1507
  "teleportTo",
@@ -1527,30 +1527,30 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1527
1527
  "isA11yMode",
1528
1528
  "a11yPosition"
1529
1529
  ]),
1530
- Tt.value && I.value.userOptions.buttons.table ? (C(), h(Ie(lr.value.component), Ae({ key: 9 }, lr.value.props, {
1530
+ Tt.value && L.value.userOptions.buttons.table ? (C(), h(Ie(lr.value.component), Ae({ key: 9 }, lr.value.props, {
1531
1531
  ref_key: "tableUnit",
1532
- ref: Bt,
1532
+ ref: zt,
1533
1533
  onClose: ur
1534
1534
  }), De({
1535
- content: k(() => [(C(), h(D(Ue), {
1536
- key: `table_${It.value}`,
1535
+ content: O(() => [(C(), h(D(We), {
1536
+ key: `table_${Ft.value}`,
1537
1537
  colNames: $n.value.colNames,
1538
1538
  head: $n.value.head,
1539
1539
  body: $n.value.body,
1540
1540
  config: $n.value.config,
1541
- title: I.value.table.useDialog ? "" : lr.value.title,
1542
- withCloseButton: !I.value.table.useDialog,
1543
- isCursorPointer: L.value,
1541
+ title: L.value.table.useDialog ? "" : lr.value.title,
1542
+ withCloseButton: !L.value.table.useDialog,
1543
+ isCursorPointer: R.value,
1544
1544
  onClose: ur
1545
1545
  }, {
1546
- th: k(({ th: e }) => [v("div", {
1546
+ th: O(({ th: e }) => [v("div", {
1547
1547
  innerHTML: e,
1548
1548
  style: {
1549
1549
  display: "flex",
1550
1550
  "align-items": "center"
1551
1551
  }
1552
1552
  }, null, 8, Ct)]),
1553
- td: k(({ td: e }) => [Oe(Le(e.name || e), 1)]),
1553
+ td: O(({ td: e }) => [Oe(Le(e.name || e), 1)]),
1554
1554
  _: 1
1555
1555
  }, 8, [
1556
1556
  "colNames",
@@ -1562,26 +1562,26 @@ var et = /* @__PURE__ */ e({ default: () => wt }), tt = ["id"], nt = ["id"], rt
1562
1562
  "isCursorPointer"
1563
1563
  ]))]),
1564
1564
  _: 2
1565
- }, [I.value.table.useDialog ? {
1565
+ }, [L.value.table.useDialog ? {
1566
1566
  name: "title",
1567
- fn: k(() => [Oe(Le(lr.value.title), 1)]),
1567
+ fn: O(() => [Oe(Le(lr.value.title), 1)]),
1568
1568
  key: "0"
1569
- } : void 0, I.value.table.useDialog ? {
1569
+ } : void 0, L.value.table.useDialog ? {
1570
1570
  name: "actions",
1571
- fn: k(() => [v("button", {
1571
+ fn: O(() => [v("button", {
1572
1572
  tabindex: "0",
1573
1573
  class: "vue-ui-user-options-button",
1574
- onClick: t[1] ||= (e) => Qn(I.value.userOptions.callbacks.csv),
1575
- style: S({ cursor: L.value ? "pointer" : "default" })
1574
+ onClick: t[1] ||= (e) => Qn(L.value.userOptions.callbacks.csv),
1575
+ style: S({ cursor: R.value ? "pointer" : "default" })
1576
1576
  }, [ke(ve, {
1577
1577
  name: "fileCsv",
1578
1578
  stroke: lr.value.props.color
1579
1579
  }, null, 8, ["stroke"])], 4)]),
1580
1580
  key: "1"
1581
1581
  } : void 0]), 1040)) : g("", !0),
1582
- T(e.$slots, "skeleton", {}, () => [D(R) ? (C(), h(le, { key: 0 })) : g("", !0)], !0)
1582
+ T(e.$slots, "skeleton", {}, () => [D(z) ? (C(), h(le, { key: 0 })) : g("", !0)], !0)
1583
1583
  ], 46, tt));
1584
1584
  }
1585
- }, [["__scopeId", "data-v-97f53ff5"]]);
1585
+ }, [["__scopeId", "data-v-d3d40b0c"]]);
1586
1586
  //#endregion
1587
- export { et as n, wt as t };
1587
+ export { A as n, wt as t };