vue-data-ui 2.16.5 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,15 +1,16 @@
1
- import { defineAsyncComponent as K, useSlots as Tt, onMounted as nt, computed as b, ref as $, shallowRef as B, watch as Ot, onBeforeUnmount as _t, createElementBlock as y, openBlock as v, unref as d, normalizeStyle as M, normalizeClass as xe, createBlock as Z, createCommentVNode as O, createElementVNode as _, createVNode as Te, createSlots as St, withCtx as T, renderSlot as k, normalizeProps as J, guardReactiveProps as Q, Fragment as ge, renderList as Oe, withKeys as st, withModifiers as _e, mergeProps as ut, createTextVNode as ye, toDisplayString as ee, nextTick as It } from "vue";
2
- import { u as Ft, c as Se, t as Nt, p as S, a as zt, b as At, o as Pt, e as Rt, d as me, i as be, f as ie, X as Lt, l as rt, F as it, x as ct, q as Mt, r as Dt, y as Vt } from "./index-CZNLCg7T.js";
3
- import { t as Bt, u as Ht } from "./useResponsive-DfdjqQps.js";
4
- import { u as dt } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as Ut } from "./usePrinter-ButWuZVm.js";
1
+ import { defineAsyncComponent as Z, useSlots as Ot, onMounted as st, computed as b, ref as $, shallowRef as B, watch as _t, onBeforeUnmount as St, createElementBlock as y, openBlock as v, unref as d, normalizeStyle as M, normalizeClass as xe, createBlock as J, createCommentVNode as O, createElementVNode as _, createVNode as Te, createSlots as It, withCtx as T, renderSlot as k, normalizeProps as Q, guardReactiveProps as ee, Fragment as ge, renderList as Oe, withKeys as ut, withModifiers as _e, mergeProps as rt, createTextVNode as ye, toDisplayString as te, nextTick as Ft } from "vue";
2
+ import { u as Nt, c as Se, t as zt, p as S, a as At, b as Pt, o as Rt, e as Lt, d as me, i as be, f as ie, X as Mt, l as it, F as ct, x as dt, q as Dt, r as Vt, y as Bt } from "./index-pPGk-uhD.js";
3
+ import { t as Ht, u as Ut } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vt } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as Et } from "./usePrinter-DDHcrl0A.js";
6
6
  import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Et } from "./useChartAccessibility-9icAAmYg.js";
8
- import qt from "./BaseIcon-DJab5OQD.js";
9
- import Gt from "./Title-BQLtfM0P.js";
10
- import Xt from "./Legend-DoxQwq_u.js";
11
- import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- function vt(n, r) {
7
+ import { u as qt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Gt from "./BaseIcon-naqtCxVi.js";
9
+ import Xt from "./Title-B-2bV0SW.js";
10
+ import jt from "./Legend-Bxlv67uY.js";
11
+ import Yt from "./img-Y_hYz-ZC.js";
12
+ import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ function ht(n, r) {
13
14
  const s = n.length;
14
15
  if (s === 0)
15
16
  throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
@@ -25,7 +26,7 @@ function vt(n, r) {
25
26
  );
26
27
  }
27
28
  }
28
- function ht(n) {
29
+ function pt(n) {
29
30
  const { xOffset: r, yOffset: s, width: i, height: u } = n;
30
31
  return {
31
32
  x0: r,
@@ -34,18 +35,18 @@ function ht(n) {
34
35
  y1: s + u
35
36
  };
36
37
  }
37
- function Yt(n, r, s) {
38
+ function Zt(n, r, s) {
38
39
  if (n.length === 0)
39
40
  return !0;
40
41
  {
41
- const i = n.concat(r), u = vt(
42
+ const i = n.concat(r), u = ht(
42
43
  n,
43
44
  s
44
- ), h = vt(i, s);
45
+ ), h = ht(i, s);
45
46
  return u >= h;
46
47
  }
47
48
  }
48
- function Kt(n) {
49
+ function Jt(n) {
49
50
  const r = [], s = n.length;
50
51
  for (let i = 0; i < s; i += 1) {
51
52
  const u = n[i], h = u.length;
@@ -54,17 +55,17 @@ function Kt(n) {
54
55
  }
55
56
  return r;
56
57
  }
57
- function Zt(n, r) {
58
+ function Qt(n, r) {
58
59
  const s = {
59
60
  ...r,
60
61
  children: n
61
62
  };
62
- return ft(s);
63
+ return gt(s);
63
64
  }
64
- function Jt(n) {
65
+ function el(n) {
65
66
  return (n.x1 - n.x0) * (n.y1 - n.y0);
66
67
  }
67
- function pt(n, r) {
68
+ function ft(n, r) {
68
69
  const { width: s, height: i, xOffset: u, yOffset: h } = Ie(r), c = n.length, g = n.map((m) => m.normalizedValue || 0).reduce((m, x) => m + x, 0), p = g / i, H = g / s;
69
70
  let z = u, w = h;
70
71
  const C = [];
@@ -92,11 +93,11 @@ function pt(n, r) {
92
93
  return C;
93
94
  }
94
95
  }
95
- function Qt(n) {
96
+ function tl(n) {
96
97
  const r = Ie(n), s = r.width, i = r.height;
97
98
  return Math.min(s, i);
98
99
  }
99
- function eo(n, r) {
100
+ function ll(n, r) {
100
101
  const s = n.length, i = n.map((p) => p.value ?? 0).reduce((p, H) => p + H, 0), u = r / i, h = [];
101
102
  let c, g;
102
103
  for (let p = 0; p < s; p += 1)
@@ -114,16 +115,16 @@ function Ie(n) {
114
115
  height: u - s
115
116
  };
116
117
  }
117
- function to(n, r, s, i) {
118
+ function ol(n, r, s, i) {
118
119
  let u = n, h = r, c = s, g = i;
119
120
  for (; ; ) {
120
121
  const p = u.length;
121
122
  if (p === 0) {
122
- const C = pt(h, c);
123
+ const C = ft(h, c);
123
124
  return g.concat(C);
124
125
  }
125
- const H = Qt(c), z = u[0], w = u.slice(1, p);
126
- if (Yt(h, z, H)) {
126
+ const H = tl(c), z = u[0], w = u.slice(1, p);
127
+ if (Zt(h, z, H)) {
127
128
  const C = h.concat(z);
128
129
  u = w, h = C, c = c, g = g;
129
130
  } else {
@@ -131,25 +132,25 @@ function to(n, r, s, i) {
131
132
  let m = 0;
132
133
  for (let N = 0; N < C; N += 1)
133
134
  m += h[N].normalizedValue;
134
- const x = oo(c, m), D = pt(h, c), A = g.concat(D);
135
+ const x = al(c, m), D = ft(h, c), A = g.concat(D);
135
136
  u = u, h = [], c = x, g = A;
136
137
  }
137
138
  }
138
139
  }
139
- function ft(n) {
140
+ function gt(n) {
140
141
  if (typeof n.children > "u" || !n.children.length)
141
142
  return [n];
142
143
  {
143
- const r = eo(
144
+ const r = ll(
144
145
  n.children,
145
- Jt(n)
146
- ), s = to(r, [], n, []), i = s.length, u = [];
146
+ el(n)
147
+ ), s = ol(r, [], n, []), i = s.length, u = [];
147
148
  for (let c = 0; c < i; c += 1)
148
- u.push(ft(s[c]));
149
- return Kt(u);
149
+ u.push(gt(s[c]));
150
+ return Jt(u);
150
151
  }
151
152
  }
152
- function oo(n, r) {
153
+ function al(n, r) {
153
154
  const { width: s, height: i, xOffset: u, yOffset: h } = Ie(n);
154
155
  if (s >= i) {
155
156
  const c = r / i, g = s - c, p = {
@@ -158,7 +159,7 @@ function oo(n, r) {
158
159
  width: g,
159
160
  height: i
160
161
  };
161
- return ht(p);
162
+ return pt(p);
162
163
  } else {
163
164
  const c = r / s, g = i - c, p = {
164
165
  xOffset: u,
@@ -166,26 +167,26 @@ function oo(n, r) {
166
167
  width: s,
167
168
  height: g
168
169
  };
169
- return ht(p);
170
+ return pt(p);
170
171
  }
171
172
  }
172
- const lo = ["id"], ao = {
173
+ const nl = ["id"], sl = {
173
174
  key: 4,
174
175
  class: "vue-ui-treemap-breadcrumbs",
175
176
  "data-dom-to-png-ignore": ""
176
- }, no = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], so = { class: "vue-ui-treemap-crumb-unit" }, uo = { class: "vue-ui-treemap-crumb-unit-label" }, ro = {
177
+ }, ul = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], rl = { class: "vue-ui-treemap-crumb-unit" }, il = { class: "vue-ui-treemap-crumb-unit-label" }, cl = {
177
178
  key: 0,
178
179
  style: { width: "24px", display: "flex", "align-items": "center" }
179
- }, io = {
180
+ }, dl = {
180
181
  key: 0,
181
182
  class: "vue-ui-treemap-crumb-unit-arrow"
182
- }, co = ["xmlns", "viewBox"], vo = { key: 0 }, ho = ["id"], po = ["stop-color"], fo = ["stop-color"], go = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], yo = ["x", "y", "height", "width"], mo = {
183
+ }, vl = ["xmlns", "viewBox"], hl = { key: 0 }, pl = ["id"], fl = ["stop-color"], gl = ["stop-color"], yl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], ml = ["x", "y", "height", "width"], bl = {
183
184
  style: { width: "100%", height: "100%" },
184
185
  class: "vue-ui-treemap-cell"
185
- }, bo = {
186
+ }, kl = {
186
187
  key: 6,
187
188
  class: "vue-data-ui-watermark"
188
- }, ko = ["onClick"], wo = { key: 0 }, Co = { key: 1 }, $o = ["innerHTML"], xo = {
189
+ }, wl = ["onClick"], Cl = { key: 0 }, $l = { key: 1 }, xl = ["innerHTML"], Tl = {
189
190
  __name: "vue-ui-treemap",
190
191
  props: {
191
192
  config: {
@@ -203,41 +204,41 @@ const lo = ["id"], ao = {
203
204
  },
204
205
  emits: ["selectLegend", "selectDatapoint"],
205
206
  setup(n, { expose: r, emit: s }) {
206
- const i = K(() => import("./DataTable-B6MXw9cG.js")), u = K(() => import("./PenAndPaper-BS60tkQN.js")), h = K(() => import("./vue-ui-accordion-CO4hmfuX.js")), c = K(() => import("./vue-ui-skeleton-D9B8DY_k.js")), g = K(() => import("./Tooltip-5JmGL7sR.js")), p = K(() => import("./UserOptions-DMGkAAIO.js")), H = K(() => import("./PackageVersion-DCreTQN4.js")), { vue_ui_treemap: z } = Ft(), w = n, C = s, m = Tt();
207
- nt(() => {
207
+ const i = Z(() => import("./DataTable-D0VYDhfx.js")), u = Z(() => import("./PenAndPaper-D6AqipIO.js")), h = Z(() => import("./vue-ui-accordion-CVnA550V.js")), c = Z(() => import("./vue-ui-skeleton-DJPjyNYn.js")), g = Z(() => import("./Tooltip-CoQnTnr-.js")), p = Z(() => import("./UserOptions-Dd34lEKb.js")), H = Z(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_treemap: z } = Nt(), w = n, C = s, m = Ot();
208
+ st(() => {
208
209
  m["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
209
210
  });
210
- const x = b(() => !!w.dataset && w.dataset.length), D = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = $(Se()), N = $(!1), ke = $(""), te = $(!1), Fe = $(0), P = $([]), se = B(null), Ne = B(null), ze = B(null), Ae = B(null), Pe = B(null), Re = $(0), Le = $(0), Me = $(0), t = b({
211
+ const x = b(() => !!w.dataset && w.dataset.length), D = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = $(Se()), N = $(!1), ke = $(""), le = $(!1), Fe = $(0), P = $([]), G = B(null), Ne = B(null), ze = B(null), Ae = B(null), Pe = B(null), Re = $(0), Le = $(0), Me = $(0), t = b({
211
212
  get: () => He(),
212
213
  set: (e) => e
213
- }), { userOptionsVisible: we, setUserOptionsVisibility: De, keepUserOptionState: Ve } = Wt({ config: t.value }), { svgRef: Be } = Et({ config: t.value.style.chart.title });
214
+ }), { userOptionsVisible: we, setUserOptionsVisibility: De, keepUserOptionState: Ve } = Wt({ config: t.value }), { svgRef: Be } = qt({ config: t.value.style.chart.title });
214
215
  function He() {
215
- const e = dt({
216
+ const e = vt({
216
217
  userConfig: w.config,
217
218
  defaultConfig: z
218
219
  });
219
220
  return e.theme ? {
220
- ...dt({
221
- userConfig: zt.vue_ui_treemap[e.theme] || w.config,
221
+ ...vt({
222
+ userConfig: At.vue_ui_treemap[e.theme] || w.config,
222
223
  defaultConfig: e
223
224
  }),
224
- customPalette: Nt[e.theme] || S
225
+ customPalette: zt[e.theme] || S
225
226
  } : e;
226
227
  }
227
- Ot(() => w.config, (e) => {
228
+ _t(() => w.config, (e) => {
228
229
  t.value = He(), we.value = !t.value.userOptions.showOnChartHover, Re.value += 1, Le.value += 1, Me.value += 1, R.value.showTable = t.value.table.show, R.value.showTooltip = t.value.style.chart.tooltip.show;
229
230
  }, { deep: !0 });
230
- const { isPrinting: Ue, isImaging: We, generatePdf: Ee, generateImage: qe } = Ut({
231
+ const { isPrinting: Ue, isImaging: Ee, generatePdf: We, generateImage: qe } = Et({
231
232
  elementId: `treemap_${A.value}`,
232
233
  fileName: t.value.style.chart.title.text || "vue-ui-treemap",
233
234
  options: t.value.userOptions.print
234
- }), gt = b(() => t.value.userOptions.show && !t.value.style.chart.title.text), ce = b(() => At(t.value.customPalette)), R = $({
235
+ }), yt = b(() => t.value.userOptions.show && !t.value.style.chart.title.text), ce = b(() => Pt(t.value.customPalette)), R = $({
235
236
  showTable: t.value.table.show,
236
237
  showTooltip: t.value.style.chart.tooltip.show
237
238
  }), U = $({
238
239
  height: t.value.style.chart.height,
239
240
  width: t.value.style.chart.width
240
- }), G = b(() => ({
241
+ }), X = b(() => ({
241
242
  bottom: U.value.height - t.value.style.chart.padding.bottom,
242
243
  height: U.value.height - t.value.style.chart.padding.top - t.value.style.chart.padding.bottom,
243
244
  left: t.value.style.chart.padding.left,
@@ -248,152 +249,152 @@ const lo = ["id"], ao = {
248
249
  width: U.value.width - t.value.style.chart.padding.left - t.value.style.chart.padding.right
249
250
  }));
250
251
  function Ge(e) {
251
- e.forEach((l, o) => {
252
- l.id = Se(), l.color = me(l.color) || ce.value[o] || S[o] || S[o % S.length], l.children && (l.children.forEach((a) => {
253
- a.parentId = l.id, a.color = l.color;
254
- }), Ge(l.children));
252
+ e.forEach((o, l) => {
253
+ o.id = Se(), o.color = me(o.color) || ce.value[l] || S[l] || S[l % S.length], o.children && (o.children.forEach((a) => {
254
+ a.parentId = o.id, a.color = o.color;
255
+ }), Ge(o.children));
255
256
  });
256
257
  }
257
- const W = B(w.dataset), E = B(null), oe = B(null);
258
- nt(() => {
259
- yt();
258
+ const E = B(w.dataset), W = B(null), oe = B(null);
259
+ st(() => {
260
+ mt();
260
261
  });
261
- function yt() {
262
- if (Pt(w.dataset) && Rt({
262
+ function mt() {
263
+ if (Rt(w.dataset) && Lt({
263
264
  componentName: "VueUiTreemap",
264
265
  type: "dataset"
265
- }), Ge(W.value), t.value.responsive) {
266
- const e = Bt(() => {
267
- const { width: l, height: o } = Ht({
268
- chart: se.value,
266
+ }), Ge(E.value), t.value.responsive) {
267
+ const e = Ht(() => {
268
+ const { width: o, height: l } = Ut({
269
+ chart: G.value,
269
270
  title: t.value.style.chart.title.text ? Ne.value : null,
270
271
  legend: t.value.style.chart.legend.show ? ze.value : null,
271
272
  source: Ae.value,
272
273
  noTitle: Pe.value
273
274
  });
274
275
  requestAnimationFrame(() => {
275
- U.value.width = l, U.value.height = o;
276
+ U.value.width = o, U.value.height = l;
276
277
  });
277
278
  });
278
- E.value && (oe.value && E.value.unobserve(oe.value), E.value.disconnect()), E.value = new ResizeObserver(e), oe.value = se.value.parentNode, E.value.observe(oe.value);
279
+ W.value && (oe.value && W.value.unobserve(oe.value), W.value.disconnect()), W.value = new ResizeObserver(e), oe.value = G.value.parentNode, W.value.observe(oe.value);
279
280
  }
280
281
  }
281
- _t(() => {
282
- E.value && (oe.value && E.value.unobserve(oe.value), E.value.disconnect());
282
+ St(() => {
283
+ W.value && (oe.value && W.value.unobserve(oe.value), W.value.disconnect());
283
284
  });
284
- const le = $(W.value), ue = b(() => le.value.map((e, l) => ({
285
+ const ae = $(E.value), ue = b(() => ae.value.map((e, o) => ({
285
286
  ...e,
286
- color: me(e.color) || ce.value[l] || S[l] || S[l % S.length]
287
- })).filter((e) => !P.value.includes(e.id))), ae = b(() => W.value.filter((e) => !P.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), Xe = b({
287
+ color: me(e.color) || ce.value[o] || S[o] || S[o % S.length]
288
+ })).filter((e) => !P.value.includes(e.id))), ne = b(() => E.value.filter((e) => !P.value.includes(e.id)).map((e) => e.value || 0).reduce((e, o) => e + o, 0)), Xe = b({
288
289
  get() {
289
290
  let e = [...ue.value];
290
- return t.value.style.chart.layout.sorted && (e = [...ue.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
291
- ...l
291
+ return t.value.style.chart.layout.sorted && (e = [...ue.value].sort((o, l) => l.value - o.value)), e.map((o) => ({
292
+ ...o
292
293
  }));
293
294
  },
294
295
  set(e) {
295
296
  return e;
296
297
  }
297
298
  });
298
- function je(e, l) {
299
- return e.value / l;
299
+ function je(e, o) {
300
+ return e.value / o;
300
301
  }
301
- function mt(e, l, o) {
302
- const a = t.value.style.chart.layout.rects.colorRatio - je(l, o);
303
- return rt(e, a < 0 ? 0 : a);
302
+ function bt(e, o, l) {
303
+ const a = t.value.style.chart.layout.rects.colorRatio - je(o, l);
304
+ return it(e, a < 0 ? 0 : a);
304
305
  }
305
- function Ye(e, l, o, a) {
306
+ function Ye(e, o, l, a) {
306
307
  return e.map((f, F) => {
307
- const fe = mt(me(l) || ce.value[F] || S[F] || S[F % S.length], f, a), xt = je(f, a);
308
+ const fe = bt(me(o) || ce.value[F] || S[F] || S[F % S.length], f, a), Tt = je(f, a);
308
309
  return {
309
310
  ...f,
310
311
  color: fe,
311
- proportion: xt,
312
- parentName: o,
312
+ proportion: Tt,
313
+ parentName: l,
313
314
  children: f.children ? Ye(f.children, fe, f.name, a) : void 0
314
315
  };
315
316
  });
316
317
  }
317
- const re = b(() => Zt(
318
- Xe.value.map((e, l) => {
319
- const o = e.children ? e.children.reduce((a, f) => a + f.value, 0) : e.value;
318
+ const re = b(() => Qt(
319
+ Xe.value.map((e, o) => {
320
+ const l = e.children ? e.children.reduce((a, f) => a + f.value, 0) : e.value;
320
321
  return {
321
322
  value: e.value,
322
323
  id: e.id || Se(),
323
- children: e.children ? Ye(e.children.sort((a, f) => f.value - a.value), e.color, e.name, o) : void 0,
324
+ children: e.children ? Ye(e.children.sort((a, f) => f.value - a.value), e.color, e.name, l) : void 0,
324
325
  color: e.color,
325
326
  name: e.name
326
327
  };
327
328
  }),
328
- { x0: G.value.left * 2, y0: G.value.top, x1: G.value.width, y1: G.value.height }
329
+ { x0: X.value.left * 2, y0: X.value.top, x1: X.value.width, y1: X.value.height }
329
330
  ));
330
- function Ke({ y0: e, y1: l }) {
331
- return l - e <= 0 ? 1e-4 : l - e;
331
+ function Ke({ y0: e, y1: o }) {
332
+ return o - e <= 0 ? 1e-4 : o - e;
332
333
  }
333
- function Ze({ x0: e, x1: l }) {
334
- return l - e <= 0 ? 1e-4 : l - e;
334
+ function Ze({ x0: e, x1: o }) {
335
+ return o - e <= 0 ? 1e-4 : o - e;
335
336
  }
336
- function X(e) {
337
- const l = t.value.style.chart.layout.labels.fontSize * (e.proportion * 2 > 1 ? 1 : e.proportion * 2);
338
- return l < t.value.style.chart.layout.labels.minFontSize ? t.value.style.chart.layout.labels.minFontSize : l;
337
+ function j(e) {
338
+ const o = t.value.style.chart.layout.labels.fontSize * (e.proportion * 2 > 1 ? 1 : e.proportion * 2);
339
+ return o < t.value.style.chart.layout.labels.minFontSize ? t.value.style.chart.layout.labels.minFontSize : o;
339
340
  }
340
- function bt(e) {
341
- te.value = e, Fe.value += 1;
341
+ function Je(e) {
342
+ le.value = e, Fe.value += 1;
342
343
  }
343
- const ne = b(() => ({
344
+ const se = b(() => ({
344
345
  startX: 0,
345
346
  startY: 0,
346
- width: G.value.vbWidth,
347
- height: G.value.vbHeight
347
+ width: X.value.vbWidth,
348
+ height: X.value.vbHeight
348
349
  }));
349
- function j(e, l = W.value) {
350
- for (const o of l) {
351
- if (o.id === e)
352
- return o;
353
- if (o.children) {
354
- const a = j(e, o.children);
350
+ function Y(e, o = E.value) {
351
+ for (const l of o) {
352
+ if (l.id === e)
353
+ return l;
354
+ if (l.children) {
355
+ const a = Y(e, l.children);
355
356
  if (a)
356
357
  return a;
357
358
  }
358
359
  }
359
360
  return null;
360
361
  }
361
- const I = $([]), Y = b(() => I.value.length > 0);
362
+ const I = $([]), K = b(() => I.value.length > 0);
362
363
  function de(e) {
363
364
  if (!e) {
364
- le.value = W.value.slice(), C("selectDatapoint", void 0), I.value = [];
365
+ ae.value = E.value.slice(), C("selectDatapoint", void 0), I.value = [];
365
366
  return;
366
367
  }
367
- const l = j(e.id);
368
- if (l && l.children?.length)
369
- I.value.push(l.id), le.value = l.children.slice(), C("selectDatapoint", e);
368
+ const o = Y(e.id);
369
+ if (o && o.children?.length)
370
+ I.value.push(o.id), ae.value = o.children.slice(), C("selectDatapoint", e);
370
371
  else if (e.parentId) {
371
372
  I.value.push(e.parentId);
372
- const o = j(e.parentId);
373
- le.value = o.children.slice(), C("selectDatapoint", e);
373
+ const l = Y(e.parentId);
374
+ ae.value = l.children.slice(), C("selectDatapoint", e);
374
375
  } else if (I.value.length > 0) {
375
376
  I.value.pop();
376
- const o = I.value[I.value.length - 1];
377
- if (o) {
378
- const a = j(o);
379
- le.value = a.children.slice();
377
+ const l = I.value[I.value.length - 1];
378
+ if (l) {
379
+ const a = Y(l);
380
+ ae.value = a.children.slice();
380
381
  } else
381
- le.value = W.value.slice(), I.value = [], C("selectDatapoint", void 0);
382
+ ae.value = E.value.slice(), I.value = [], C("selectDatapoint", void 0);
382
383
  }
383
384
  }
384
385
  function kt(e) {
385
- return !!(j(e.id)?.children?.length || e.parentId);
386
+ return !!(Y(e.id)?.children?.length || e.parentId);
386
387
  }
387
388
  const q = b(() => {
388
389
  const e = [
389
390
  { id: null, label: "All" }
390
391
  ];
391
392
  if (I.value.length > 0) {
392
- let l = j(I.value[I.value.length - 1]);
393
- const o = [];
394
- for (; l; )
395
- o.unshift(l), l = l.parentId ? j(l.parentId) : null;
396
- for (const a of o)
393
+ let o = Y(I.value[I.value.length - 1]);
394
+ const l = [];
395
+ for (; o; )
396
+ l.unshift(o), o = o.parentId ? Y(o.parentId) : null;
397
+ for (const a of l)
397
398
  e.push({
398
399
  id: a.id,
399
400
  label: a.name,
@@ -401,13 +402,13 @@ const lo = ["id"], ao = {
401
402
  });
402
403
  }
403
404
  return e;
404
- }), L = B(null), Je = b(() => W.value.map((e, l) => ({
405
+ }), L = B(null), Qe = b(() => E.value.map((e, o) => ({
405
406
  ...e,
406
- color: me(e.color) || ce.value[l] || S[l] || S[l % S.length],
407
+ color: me(e.color) || ce.value[o] || S[o] || S[o % S.length],
407
408
  shape: "square"
408
- })).sort((e, l) => l.value - e.value).map((e, l) => ({
409
+ })).sort((e, o) => o.value - e.value).map((e, o) => ({
409
410
  ...e,
410
- proportion: e.value / W.value.map((o) => o.value).reduce((o, a) => o + a, 0),
411
+ proportion: e.value / E.value.map((l) => l.value).reduce((l, a) => l + a, 0),
411
412
  opacity: P.value.includes(e.id) ? 0.5 : 1
412
413
  }))), wt = b(() => ({
413
414
  cy: "treemap-div-legend",
@@ -417,21 +418,21 @@ const lo = ["id"], ao = {
417
418
  paddingBottom: 12,
418
419
  fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
419
420
  }));
420
- function Qe(e) {
421
- L.value = null, P.value.includes(e.id) ? P.value = P.value.filter((l) => l !== e.id) : P.value.length < w.dataset.length - 1 && P.value.push(e.id), C("selectLegend", Xe.value);
421
+ function et(e) {
422
+ L.value = null, P.value.includes(e.id) ? P.value = P.value.filter((o) => o !== e.id) : P.value.length < w.dataset.length - 1 && P.value.push(e.id), C("selectLegend", Xe.value);
422
423
  }
423
424
  const Ce = $(null);
424
- function Ct({ datapoint: e, seriesIndex: l }) {
425
- L.value = e, Ce.value = { datapoint: e, seriesIndex: l, config: t.value, series: ue.value };
426
- const o = t.value.style.chart.tooltip.customFormat;
427
- if (ct(o) && Vt(() => o({
428
- seriesIndex: l,
425
+ function Ct({ datapoint: e, seriesIndex: o }) {
426
+ L.value = e, Ce.value = { datapoint: e, seriesIndex: o, config: t.value, series: ue.value };
427
+ const l = t.value.style.chart.tooltip.customFormat;
428
+ if (dt(l) && Bt(() => l({
429
+ seriesIndex: o,
429
430
  datapoint: e,
430
431
  series: ue.value,
431
432
  config: t.value
432
433
  })))
433
- ke.value = o({
434
- seriesIndex: l,
434
+ ke.value = l({
435
+ seriesIndex: o,
435
436
  datapoint: e,
436
437
  series: ue.value,
437
438
  config: t.value
@@ -447,24 +448,24 @@ const lo = ["id"], ao = {
447
448
  s: t.value.style.chart.layout.labels.suffix,
448
449
  r: t.value.style.chart.tooltip.roundingValue
449
450
  }),
450
- { datapoint: e, seriesIndex: l }
451
+ { datapoint: e, seriesIndex: o }
451
452
  )}</b>`, ke.value = `<div>${a}</div>`;
452
453
  }
453
454
  N.value = !0;
454
455
  }
455
456
  const V = b(() => {
456
- const e = re.value.map((o) => ({
457
- name: o.name,
458
- color: o.color
459
- })), l = re.value.map((o) => o.value);
460
- return { head: e, body: l };
457
+ const e = re.value.map((l) => ({
458
+ name: l.name,
459
+ color: l.color
460
+ })), o = re.value.map((l) => l.value);
461
+ return { head: e, body: o };
461
462
  });
462
- function et(e = null) {
463
- It(() => {
464
- const l = V.value.head.map((f, F) => [[
463
+ function tt(e = null) {
464
+ Ft(() => {
465
+ const o = V.value.head.map((f, F) => [[
465
466
  f.name
466
- ], [V.value.body[F]], [isNaN(V.value.body[F] / ae.value) ? "-" : V.value.body[F] / ae.value * 100]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = Mt(o);
467
- e ? e(a) : Dt({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
467
+ ], [V.value.body[F]], [isNaN(V.value.body[F] / ne.value) ? "-" : V.value.body[F] / ne.value * 100]]), l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Dt(l);
468
+ e ? e(a) : Vt({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
468
469
  });
469
470
  }
470
471
  const ve = b(() => {
@@ -472,7 +473,7 @@ const lo = ["id"], ao = {
472
473
  t.value.table.columnNames.series,
473
474
  t.value.table.columnNames.value,
474
475
  t.value.table.columnNames.percentage
475
- ], l = V.value.head.map((f, F) => {
476
+ ], o = V.value.head.map((f, F) => {
476
477
  const fe = be(
477
478
  t.value.style.chart.layout.labels.formatter,
478
479
  V.value.body[F],
@@ -490,13 +491,13 @@ const lo = ["id"], ao = {
490
491
  shape: "square"
491
492
  },
492
493
  fe,
493
- isNaN(V.value.body[F] / ae.value) ? "-" : ie({
494
- v: V.value.body[F] / ae.value * 100,
494
+ isNaN(V.value.body[F] / ne.value) ? "-" : ie({
495
+ v: V.value.body[F] / ne.value * 100,
495
496
  s: "%",
496
497
  r: t.value.table.td.roundingPercentage
497
498
  })
498
499
  ];
499
- }), o = {
500
+ }), l = {
500
501
  th: {
501
502
  backgroundColor: t.value.table.th.backgroundColor,
502
503
  color: t.value.table.th.color,
@@ -515,14 +516,14 @@ const lo = ["id"], ao = {
515
516
  t.value.table.columnNames.value
516
517
  ],
517
518
  head: e,
518
- body: l,
519
- config: o
519
+ body: o,
520
+ config: l
520
521
  };
521
522
  });
522
523
  function $t() {
523
524
  return re.value;
524
525
  }
525
- function tt() {
526
+ function lt() {
526
527
  R.value.showTable = !R.value.showTable;
527
528
  }
528
529
  function ot() {
@@ -533,30 +534,37 @@ const lo = ["id"], ao = {
533
534
  he.value = !he.value;
534
535
  }
535
536
  const pe = $(null);
536
- function lt(e) {
537
+ function at(e) {
537
538
  pe.value = e;
538
539
  }
539
- function at() {
540
+ function nt() {
540
541
  pe.value = null;
541
542
  }
543
+ async function xt({ scale: e = 2 } = {}) {
544
+ if (!G.value) return;
545
+ const { imageUri: o, base64: l } = await Yt({ domElement: G.value, base64: !0, img: !0, scale: e });
546
+ return { imageUri: o, base64: l };
547
+ }
542
548
  return r({
543
549
  getData: $t,
544
- generateCsv: et,
550
+ getImage: xt,
551
+ generateCsv: tt,
545
552
  generateImage: qe,
546
- generatePdf: Ee,
547
- toggleTable: tt,
553
+ generatePdf: We,
554
+ toggleTable: lt,
548
555
  toggleTooltip: ot,
549
- toggleAnnotator: $e
550
- }), (e, l) => (v(), y("div", {
556
+ toggleAnnotator: $e,
557
+ toggleFullscreen: Je
558
+ }), (e, o) => (v(), y("div", {
551
559
  ref_key: "treemapChart",
552
- ref: se,
553
- class: xe(`vue-ui-treemap ${te.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
560
+ ref: G,
561
+ class: xe(`vue-ui-treemap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
554
562
  style: M(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
555
563
  id: `treemap_${A.value}`,
556
- onMouseenter: l[3] || (l[3] = () => d(De)(!0)),
557
- onMouseleave: l[4] || (l[4] = () => d(De)(!1))
564
+ onMouseenter: o[3] || (o[3] = () => d(De)(!0)),
565
+ onMouseleave: o[4] || (o[4] = () => d(De)(!1))
558
566
  }, [
559
- t.value.userOptions.buttons.annotator ? (v(), Z(d(u), {
567
+ t.value.userOptions.buttons.annotator ? (v(), J(d(u), {
560
568
  key: 0,
561
569
  svgRef: d(Be),
562
570
  backgroundColor: t.value.style.chart.backgroundColor,
@@ -564,7 +572,7 @@ const lo = ["id"], ao = {
564
572
  active: he.value,
565
573
  onClose: $e
566
574
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : O("", !0),
567
- gt.value ? (v(), y("div", {
575
+ yt.value ? (v(), y("div", {
568
576
  key: 1,
569
577
  ref_key: "noTitle",
570
578
  ref: Pe,
@@ -577,7 +585,7 @@ const lo = ["id"], ao = {
577
585
  ref: Ne,
578
586
  style: M(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
579
587
  }, [
580
- (v(), Z(Gt, {
588
+ (v(), J(Xt, {
581
589
  key: `title_${Re.value}`,
582
590
  config: {
583
591
  title: {
@@ -591,13 +599,13 @@ const lo = ["id"], ao = {
591
599
  }
592
600
  }, null, 8, ["config"]))
593
601
  ], 4)) : O("", !0),
594
- t.value.userOptions.show && x.value && (d(Ve) || d(we)) ? (v(), Z(d(p), {
602
+ t.value.userOptions.show && x.value && (d(Ve) || d(we)) ? (v(), J(d(p), {
595
603
  ref: "details",
596
604
  key: `user_option_${Fe.value}`,
597
605
  backgroundColor: t.value.style.chart.backgroundColor,
598
606
  color: t.value.style.chart.color,
599
607
  isPrinting: d(Ue),
600
- isImaging: d(We),
608
+ isImaging: d(Ee),
601
609
  uid: A.value,
602
610
  hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
603
611
  hasPdf: t.value.userOptions.buttons.pdf,
@@ -605,29 +613,30 @@ const lo = ["id"], ao = {
605
613
  hasImg: t.value.userOptions.buttons.img,
606
614
  hasTable: t.value.userOptions.buttons.table,
607
615
  hasFullscreen: t.value.userOptions.buttons.fullscreen,
608
- isFullscreen: te.value,
616
+ isFullscreen: le.value,
609
617
  isTooltip: R.value.showTooltip,
610
618
  titles: { ...t.value.userOptions.buttonTitles },
611
- chartElement: se.value,
619
+ chartElement: G.value,
612
620
  position: t.value.userOptions.position,
613
621
  hasAnnotator: t.value.userOptions.buttons.annotator,
614
622
  isAnnotation: he.value,
615
623
  callbacks: t.value.userOptions.callbacks,
616
- onToggleFullscreen: bt,
617
- onGeneratePdf: d(Ee),
618
- onGenerateCsv: et,
624
+ printScale: t.value.userOptions.print.scale,
625
+ onToggleFullscreen: Je,
626
+ onGeneratePdf: d(We),
627
+ onGenerateCsv: tt,
619
628
  onGenerateImage: d(qe),
620
- onToggleTable: tt,
629
+ onToggleTable: lt,
621
630
  onToggleTooltip: ot,
622
631
  onToggleAnnotator: $e,
623
632
  style: M({
624
633
  visibility: d(Ve) ? d(we) ? "visible" : "hidden" : "visible"
625
634
  })
626
- }, St({ _: 2 }, [
635
+ }, It({ _: 2 }, [
627
636
  e.$slots.menuIcon ? {
628
637
  name: "menuIcon",
629
- fn: T(({ isOpen: o, color: a }) => [
630
- k(e.$slots, "menuIcon", J(Q({ isOpen: o, color: a })), void 0, !0)
638
+ fn: T(({ isOpen: l, color: a }) => [
639
+ k(e.$slots, "menuIcon", Q(ee({ isOpen: l, color: a })), void 0, !0)
631
640
  ]),
632
641
  key: "0"
633
642
  } : void 0,
@@ -668,163 +677,163 @@ const lo = ["id"], ao = {
668
677
  } : void 0,
669
678
  e.$slots.optionFullscreen ? {
670
679
  name: "optionFullscreen",
671
- fn: T(({ toggleFullscreen: o, isFullscreen: a }) => [
672
- k(e.$slots, "optionFullscreen", J(Q({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
680
+ fn: T(({ toggleFullscreen: l, isFullscreen: a }) => [
681
+ k(e.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
673
682
  ]),
674
683
  key: "6"
675
684
  } : void 0,
676
685
  e.$slots.optionAnnotator ? {
677
686
  name: "optionAnnotator",
678
- fn: T(({ toggleAnnotator: o, isAnnotator: a }) => [
679
- k(e.$slots, "optionAnnotator", J(Q({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
687
+ fn: T(({ toggleAnnotator: l, isAnnotator: a }) => [
688
+ k(e.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
680
689
  ]),
681
690
  key: "7"
682
691
  } : void 0
683
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : O("", !0),
684
- q.value.length > 1 ? (v(), y("nav", ao, [
685
- (v(!0), y(ge, null, Oe(q.value, (o, a) => (v(), y("span", {
692
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : O("", !0),
693
+ q.value.length > 1 ? (v(), y("nav", sl, [
694
+ (v(!0), y(ge, null, Oe(q.value, (l, a) => (v(), y("span", {
686
695
  role: "button",
687
696
  tabindex: a < q.value.length - 1 ? 0 : void 0,
688
- key: o.id || "root",
697
+ key: l.id || "root",
689
698
  onClick: (f) => a === q.value.length - 1 ? () => {
690
- } : de(o.node),
699
+ } : de(l.node),
691
700
  onKeydown: [
692
- st(_e((f) => a === q.value.length - 1 ? void 0 : de(o.node), ["prevent"]), ["enter"]),
693
- st(_e((f) => a === q.value.length - 1 ? void 0 : de(o.node), ["prevent"]), ["space"])
701
+ ut(_e((f) => a === q.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["enter"]),
702
+ ut(_e((f) => a === q.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["space"])
694
703
  ],
695
704
  class: "vue-ui-treemap-crumb",
696
705
  "data-last-crumb": a === q.value.length - 1,
697
706
  style: M({
698
707
  color: t.value.style.chart.color
699
708
  }),
700
- onMouseenter: (f) => lt(a),
701
- onMouseleave: at,
702
- onFocus: (f) => lt(a),
703
- onBlur: at
709
+ onMouseenter: (f) => at(a),
710
+ onMouseleave: nt,
711
+ onFocus: (f) => at(a),
712
+ onBlur: nt
704
713
  }, [
705
- _("span", so, [
706
- _("span", uo, [
707
- k(e.$slots, "breadcrumb-label", ut({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: pe.value === a }), () => [
708
- a === 0 ? (v(), y("div", ro, [
709
- Te(qt, {
714
+ _("span", rl, [
715
+ _("span", il, [
716
+ k(e.$slots, "breadcrumb-label", rt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: pe.value === a }), () => [
717
+ a === 0 ? (v(), y("div", cl, [
718
+ Te(Gt, {
710
719
  name: pe.value === 0 ? "homeFilled" : "home",
711
720
  stroke: t.value.style.chart.color
712
721
  }, null, 8, ["name", "stroke"])
713
722
  ])) : (v(), y(ge, { key: 1 }, [
714
- ye(ee(o.label), 1)
723
+ ye(te(l.label), 1)
715
724
  ], 64))
716
725
  ], !0)
717
726
  ]),
718
- a < q.value.length - 1 ? (v(), y("span", io, [
727
+ a < q.value.length - 1 ? (v(), y("span", dl, [
719
728
  k(e.$slots, "breadcrumb-arrow", {}, () => [
720
- l[5] || (l[5] = ye(" › "))
729
+ o[5] || (o[5] = ye(" › "))
721
730
  ], !0)
722
731
  ])) : O("", !0)
723
732
  ])
724
- ], 44, no))), 128))
733
+ ], 44, ul))), 128))
725
734
  ])) : O("", !0),
726
735
  x.value ? (v(), y("svg", {
727
736
  key: 5,
728
737
  ref_key: "svgRef",
729
738
  ref: Be,
730
- xmlns: d(Lt),
731
- class: xe({ "vue-data-ui-fullscreen--on": te.value, "vue-data-ui-fulscreen--off": !te.value, "vue-data-ui-zoom-plus": !Y.value, "vue-data-ui-zoom-minus": Y.value }),
732
- viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
739
+ xmlns: d(Mt),
740
+ class: xe({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !K.value, "vue-data-ui-zoom-minus": K.value }),
741
+ viewBox: `${se.value.startX} ${se.value.startY} ${se.value.width <= 0 ? 10 : se.value.width} ${se.value.height <= 0 ? 10 : se.value.height}`,
733
742
  style: M(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
734
743
  }, [
735
744
  Te(d(H)),
736
- (v(!0), y(ge, null, Oe(re.value, (o, a) => (v(), y("g", {
737
- key: `tgrad_${o.id}`
745
+ (v(!0), y(ge, null, Oe(re.value, (l, a) => (v(), y("g", {
746
+ key: `tgrad_${l.id}`
738
747
  }, [
739
- t.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", vo, [
748
+ t.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", hl, [
740
749
  _("radialGradient", {
741
- id: `tgrad_${o.id}`,
750
+ id: `tgrad_${l.id}`,
742
751
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
743
752
  }, [
744
753
  _("stop", {
745
754
  offset: "18%",
746
- "stop-color": o.color
747
- }, null, 8, po),
755
+ "stop-color": l.color
756
+ }, null, 8, fl),
748
757
  _("stop", {
749
758
  offset: "100%",
750
- "stop-color": d(rt)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
751
- }, null, 8, fo)
752
- ], 8, ho)
759
+ "stop-color": d(it)(l.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
760
+ }, null, 8, gl)
761
+ ], 8, pl)
753
762
  ])) : O("", !0)
754
763
  ]))), 128)),
755
- (v(!0), y(ge, null, Oe(re.value, (o, a) => (v(), y("g", {
756
- key: `k_${o.id}`
764
+ (v(!0), y(ge, null, Oe(re.value, (l, a) => (v(), y("g", {
765
+ key: `k_${l.id}`
757
766
  }, [
758
767
  _("rect", {
759
- x: o.x0,
760
- y: o.y0,
761
- height: Ke(o),
762
- width: Ze(o),
763
- fill: D.value ? o.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
768
+ x: l.x0,
769
+ y: l.y0,
770
+ height: Ke(l),
771
+ width: Ze(l),
772
+ fill: D.value ? l.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
764
773
  rx: t.value.style.chart.layout.rects.borderRadius,
765
- stroke: L.value && L.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
766
- "stroke-width": L.value && L.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
767
- onClick: _e((f) => de(o), ["stop"]),
774
+ stroke: L.value && L.value.id === l.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
775
+ "stroke-width": L.value && L.value.id === l.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
776
+ onClick: _e((f) => de(l), ["stop"]),
768
777
  onMouseenter: () => Ct({
769
- datapoint: o,
778
+ datapoint: l,
770
779
  seriesIndex: a
771
780
  }),
772
- onMouseleave: l[0] || (l[0] = (f) => {
781
+ onMouseleave: o[0] || (o[0] = (f) => {
773
782
  L.value = null, N.value = !1;
774
783
  }),
775
- style: M(`opacity:${L.value ? L.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
784
+ style: M(`opacity:${L.value ? L.value.id === l.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
776
785
  class: xe([
777
786
  "vue-ui-treemap-rect",
778
- kt(o) ? "vue-data-ui-zoom-plus" : Y.value ? "vue-data-ui-zoom-minus" : ""
787
+ kt(l) ? "vue-data-ui-zoom-plus" : K.value ? "vue-data-ui-zoom-minus" : ""
779
788
  ])
780
- }, null, 46, go),
789
+ }, null, 46, yl),
781
790
  (v(), y("foreignObject", {
782
- x: o.x0,
783
- y: o.y0,
784
- height: Ke(o),
785
- width: Ze(o),
791
+ x: l.x0,
792
+ y: l.y0,
793
+ height: Ke(l),
794
+ width: Ze(l),
786
795
  class: "vue-ui-treemap-cell-foreignObject"
787
796
  }, [
788
- _("div", mo, [
789
- t.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Y.value) ? (v(), y("div", {
797
+ _("div", bl, [
798
+ t.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > t.value.style.chart.layout.labels.hideUnderProportion || K.value) ? (v(), y("div", {
790
799
  key: 0,
791
800
  class: "vue-ui-treemap-cell-default",
792
- style: M(`width:calc(100% - ${X(o) / 1.5}px);text-align:left;line-height:${X(o) < 14 ? 14 : X(o)}px;padding:${X(o) / 3}px; color:${d(it)(o.color)}`)
801
+ style: M(`width:calc(100% - ${j(l) / 1.5}px);text-align:left;line-height:${j(l) < 14 ? 14 : j(l)}px;padding:${j(l) / 3}px; color:${d(ct)(l.color)}`)
793
802
  }, [
794
803
  _("span", {
795
- style: M(`width:100%;font-size:${X(o)}px;`)
796
- }, ee(o.name), 5),
797
- l[6] || (l[6] = _("br", null, null, -1)),
804
+ style: M(`width:100%;font-size:${j(l)}px;`)
805
+ }, te(l.name), 5),
806
+ o[6] || (o[6] = _("br", null, null, -1)),
798
807
  _("span", {
799
- style: M(`width:100%;font-size:${X(o)}px;`)
800
- }, ee(d(be)(
808
+ style: M(`width:100%;font-size:${j(l)}px;`)
809
+ }, te(d(be)(
801
810
  t.value.style.chart.layout.labels.formatter,
802
- o.value,
811
+ l.value,
803
812
  d(ie)({
804
813
  p: t.value.style.chart.layout.labels.prefix,
805
- v: o.value,
814
+ v: l.value,
806
815
  s: t.value.style.chart.layout.labels.suffix,
807
816
  r: t.value.style.chart.layout.labels.rounding
808
817
  }),
809
- { datapoint: o }
818
+ { datapoint: l }
810
819
  )), 5)
811
820
  ], 4)) : O("", !0),
812
- k(e.$slots, "rect", ut({ ref_for: !0 }, {
813
- rect: o,
814
- shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Y.value,
815
- fontSize: X(o),
816
- isZoom: Y.value,
817
- textColor: d(it)(o.color)
821
+ k(e.$slots, "rect", rt({ ref_for: !0 }, {
822
+ rect: l,
823
+ shouldShow: l.proportion > t.value.style.chart.layout.labels.hideUnderProportion || K.value,
824
+ fontSize: j(l),
825
+ isZoom: K.value,
826
+ textColor: d(ct)(l.color)
818
827
  }), void 0, !0)
819
828
  ])
820
- ], 8, yo))
829
+ ], 8, ml))
821
830
  ]))), 128)),
822
- k(e.$slots, "svg", J(Q({ svg: G.value, isZoom: Y.value, rect: L.value, config: t.value })), void 0, !0)
823
- ], 14, co)) : O("", !0),
824
- e.$slots.watermark ? (v(), y("div", bo, [
825
- k(e.$slots, "watermark", J(Q({ isPrinting: d(Ue) || d(We) })), void 0, !0)
831
+ k(e.$slots, "svg", Q(ee({ svg: X.value, isZoom: K.value, rect: L.value, config: t.value })), void 0, !0)
832
+ ], 14, vl)) : O("", !0),
833
+ e.$slots.watermark ? (v(), y("div", kl, [
834
+ k(e.$slots, "watermark", Q(ee({ isPrinting: d(Ue) || d(Ee) })), void 0, !0)
826
835
  ])) : O("", !0),
827
- x.value ? O("", !0) : (v(), Z(d(c), {
836
+ x.value ? O("", !0) : (v(), J(d(c), {
828
837
  key: 7,
829
838
  config: {
830
839
  type: "treemap",
@@ -840,36 +849,36 @@ const lo = ["id"], ao = {
840
849
  ref_key: "chartLegend",
841
850
  ref: ze
842
851
  }, [
843
- t.value.style.chart.legend.show ? (v(), Z(Xt, {
852
+ t.value.style.chart.legend.show ? (v(), J(jt, {
844
853
  key: `legend_${Me.value}`,
845
- legendSet: Je.value,
854
+ legendSet: Qe.value,
846
855
  config: wt.value,
847
856
  id: `treemap_legend_${A.value}`,
848
- onClickMarker: l[1] || (l[1] = ({ legend: o }) => Qe(o))
857
+ onClickMarker: o[1] || (o[1] = ({ legend: l }) => et(l))
849
858
  }, {
850
- item: T(({ legend: o, index: a }) => [
859
+ item: T(({ legend: l, index: a }) => [
851
860
  _("div", {
852
- onClick: (f) => Qe(o),
853
- style: M(`opacity:${P.value.includes(o.id) ? 0.5 : 1}`)
861
+ onClick: (f) => et(l),
862
+ style: M(`opacity:${P.value.includes(l.id) ? 0.5 : 1}`)
854
863
  }, [
855
- ye(ee(o.name) + ": " + ee(d(be)(
864
+ ye(te(l.name) + ": " + te(d(be)(
856
865
  t.value.style.chart.layout.labels.formatter,
857
- o.value,
866
+ l.value,
858
867
  d(ie)({
859
868
  p: t.value.style.chart.layout.labels.prefix,
860
- v: o.value,
869
+ v: l.value,
861
870
  s: t.value.style.chart.layout.labels.suffix,
862
871
  r: t.value.style.chart.legend.roundingValue
863
872
  }),
864
- { datapoint: o }
873
+ { datapoint: l }
865
874
  )) + " ", 1),
866
- P.value.includes(o.id) ? (v(), y("span", Co, " ( - % ) ")) : (v(), y("span", wo, " (" + ee(isNaN(o.value / ae.value) ? "-" : (o.value / ae.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
867
- ], 12, ko)
875
+ P.value.includes(l.id) ? (v(), y("span", $l, " ( - % ) ")) : (v(), y("span", Cl, " (" + te(isNaN(l.value / ne.value) ? "-" : (l.value / ne.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
876
+ ], 12, wl)
868
877
  ]),
869
878
  _: 1
870
879
  }, 8, ["legendSet", "config", "id"])) : k(e.$slots, "legend", {
871
880
  key: 1,
872
- legend: Je.value
881
+ legend: Qe.value
873
882
  }, void 0, !0)
874
883
  ], 512),
875
884
  e.$slots.source ? (v(), y("div", {
@@ -891,20 +900,20 @@ const lo = ["id"], ao = {
891
900
  backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
892
901
  position: t.value.style.chart.tooltip.position,
893
902
  offsetY: t.value.style.chart.tooltip.offsetY,
894
- parent: se.value,
903
+ parent: G.value,
895
904
  content: ke.value,
896
- isFullscreen: te.value,
897
- isCustom: d(ct)(t.value.style.chart.tooltip.customFormat)
905
+ isFullscreen: le.value,
906
+ isCustom: d(dt)(t.value.style.chart.tooltip.customFormat)
898
907
  }, {
899
908
  "tooltip-before": T(() => [
900
- k(e.$slots, "tooltip-before", J(Q({ ...Ce.value })), void 0, !0)
909
+ k(e.$slots, "tooltip-before", Q(ee({ ...Ce.value })), void 0, !0)
901
910
  ]),
902
911
  "tooltip-after": T(() => [
903
- k(e.$slots, "tooltip-after", J(Q({ ...Ce.value })), void 0, !0)
912
+ k(e.$slots, "tooltip-after", Q(ee({ ...Ce.value })), void 0, !0)
904
913
  ]),
905
914
  _: 3
906
915
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
907
- x.value ? (v(), Z(d(h), {
916
+ x.value ? (v(), J(d(h), {
908
917
  key: 9,
909
918
  hideDetails: "",
910
919
  config: {
@@ -921,32 +930,32 @@ const lo = ["id"], ao = {
921
930
  }
922
931
  }, {
923
932
  content: T(() => [
924
- (v(), Z(d(i), {
933
+ (v(), J(d(i), {
925
934
  key: `table_${Le.value}`,
926
935
  colNames: ve.value.colNames,
927
936
  head: ve.value.head,
928
937
  body: ve.value.body,
929
938
  config: ve.value.config,
930
939
  title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
931
- onClose: l[2] || (l[2] = (o) => R.value.showTable = !1)
940
+ onClose: o[2] || (o[2] = (l) => R.value.showTable = !1)
932
941
  }, {
933
- th: T(({ th: o }) => [
942
+ th: T(({ th: l }) => [
934
943
  _("div", {
935
- innerHTML: o,
944
+ innerHTML: l,
936
945
  style: { display: "flex", "align-items": "center" }
937
- }, null, 8, $o)
946
+ }, null, 8, xl)
938
947
  ]),
939
- td: T(({ td: o }) => [
940
- ye(ee(o.name || o), 1)
948
+ td: T(({ td: l }) => [
949
+ ye(te(l.name || l), 1)
941
950
  ]),
942
951
  _: 1
943
952
  }, 8, ["colNames", "head", "body", "config", "title"]))
944
953
  ]),
945
954
  _: 1
946
955
  }, 8, ["config"])) : O("", !0)
947
- ], 46, lo));
956
+ ], 46, nl));
948
957
  }
949
- }, Lo = /* @__PURE__ */ jt(xo, [["__scopeId", "data-v-cbd9ec3f"]]);
958
+ }, Dl = /* @__PURE__ */ Kt(Tl, [["__scopeId", "data-v-c04debca"]]);
950
959
  export {
951
- Lo as default
960
+ Dl as default
952
961
  };