vue-data-ui 2.16.6 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,31 +1,32 @@
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-DvIXJm6t.js";
3
- import { t as Bt, u as Ht } from "./useResponsive-DfdjqQps.js";
4
- import { u as dt } from "./useNestedProp-DrYHm61t.js";
5
- import { u as Ut } from "./usePrinter-CWnXbGMb.js";
1
+ import { defineAsyncComponent as J, 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 h, unref as d, normalizeStyle as L, normalizeClass as $e, createBlock as Q, createCommentVNode as _, createElementVNode as S, createVNode as xe, createSlots as It, withCtx as O, renderSlot as w, normalizeProps as ee, guardReactiveProps as te, Fragment as ge, renderList as Te, withKeys as ut, withModifiers as Oe, mergeProps as rt, createTextVNode as _e, toDisplayString as X, nextTick as Ft } from "vue";
2
+ import { u as Nt, c as Se, t as Pt, p as I, a as zt, b as At, o as Rt, e as Vt, d as ye, i as me, f as ie, X as Lt, l as it, F as ct, x as dt, q as Mt, r as Dt, y as Bt } from "./index-CobsZUkv.js";
3
+ import { t as Ht, u as Ut } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vt } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as Et } from "./usePrinter-DPh6U_Qk.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-Bn996RXm.js";
9
- import Gt from "./Title-Gi81VwUM.js";
10
- import Xt from "./Legend-nBXoxXJH.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-D9Tz8ARD.js";
9
+ import Xt from "./Title-DpERl1yr.js";
10
+ import jt from "./Legend-3LNqqLDg.js";
11
+ import Yt from "./img-utitT2Gd.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`);
16
17
  {
17
- let i = 1 / 0, u = -1 / 0, h = 0;
18
+ let i = 1 / 0, u = -1 / 0, v = 0;
18
19
  for (let g = 0; g < s; g += 1) {
19
20
  const p = n[g].normalizedValue;
20
- p < i && (i = p), p > u && (u = p), h += p;
21
+ p < i && (i = p), p > u && (u = p), v += p;
21
22
  }
22
23
  return Math.max(
23
- r ** 2 * u / h ** 2,
24
- h ** 2 / (r ** 2 * i)
24
+ r ** 2 * u / v ** 2,
25
+ v ** 2 / (r ** 2 * i)
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,76 +35,76 @@ 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
- return u >= h;
45
+ ), v = ht(i, s);
46
+ return u >= v;
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
- const u = n[i], h = u.length;
52
- for (let c = 0; c < h; c += 1)
52
+ const u = n[i], v = u.length;
53
+ for (let c = 0; c < v; c += 1)
53
54
  r.push(u[c]);
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
- 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
- let z = u, w = h;
68
+ function ft(n, r) {
69
+ const { width: s, height: i, xOffset: u, yOffset: v } = Ie(r), c = n.length, g = n.map((m) => m.normalizedValue || 0).reduce((m, x) => m + x, 0), p = g / i, H = g / s;
70
+ let P = u, k = v;
70
71
  const C = [];
71
72
  if (s >= i) {
72
73
  for (let m = 0; m < c; m += 1) {
73
- const x = n[m], D = w + x.normalizedValue / p, A = {
74
- x0: z,
75
- y0: w,
76
- x1: z + p,
77
- y1: D
78
- }, N = Object.assign({}, x, A);
79
- w = D, C.push(N);
74
+ const x = n[m], M = k + x.normalizedValue / p, z = {
75
+ x0: P,
76
+ y0: k,
77
+ x1: P + p,
78
+ y1: M
79
+ }, N = Object.assign({}, x, z);
80
+ k = M, C.push(N);
80
81
  }
81
82
  return C;
82
83
  } else {
83
84
  for (let m = 0; m < c; m += 1) {
84
- const x = n[m], D = z + x.normalizedValue / H, A = {
85
- x0: z,
86
- y0: w,
87
- x1: D,
88
- y1: w + H
89
- }, N = Object.assign({}, x, A);
90
- z = D, C.push(N);
85
+ const x = n[m], M = P + x.normalizedValue / H, z = {
86
+ x0: P,
87
+ y0: k,
88
+ x1: M,
89
+ y1: k + H
90
+ }, N = Object.assign({}, x, z);
91
+ P = M, C.push(N);
91
92
  }
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 el(n, r) {
100
- const s = n.length, i = n.map((p) => p.value ?? 0).reduce((p, H) => p + H, 0), u = r / i, h = [];
100
+ function ll(n, r) {
101
+ const s = n.length, i = n.map((p) => p.value ?? 0).reduce((p, H) => p + H, 0), u = r / i, v = [];
101
102
  let c, g;
102
103
  for (let p = 0; p < s; p += 1)
103
104
  g = n[p], c = Object.assign({}, g, {
104
105
  normalizedValue: g.value * (u || 0)
105
- }), h.push(c);
106
- return h;
106
+ }), v.push(c);
107
+ return v;
107
108
  }
108
109
  function Ie(n) {
109
110
  const { x0: r, y0: s, x1: i, y1: u } = n;
@@ -114,78 +115,78 @@ function Ie(n) {
114
115
  height: u - s
115
116
  };
116
117
  }
117
- function tl(n, r, s, i) {
118
- let u = n, h = r, c = s, g = i;
118
+ function ol(n, r, s, i) {
119
+ let u = n, v = 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(v, 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)) {
127
- const C = h.concat(z);
128
- u = w, h = C, c = c, g = g;
126
+ const H = tl(c), P = u[0], k = u.slice(1, p);
127
+ if (Zt(v, P, H)) {
128
+ const C = v.concat(P);
129
+ u = k, v = C, c = c, g = g;
129
130
  } else {
130
- const C = h.length;
131
+ const C = v.length;
131
132
  let m = 0;
132
133
  for (let N = 0; N < C; N += 1)
133
- m += h[N].normalizedValue;
134
- const x = ll(c, m), D = pt(h, c), A = g.concat(D);
135
- u = u, h = [], c = x, g = A;
134
+ m += v[N].normalizedValue;
135
+ const x = al(c, m), M = ft(v, c), z = g.concat(M);
136
+ u = u, v = [], c = x, g = z;
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 = el(
144
+ const r = ll(
144
145
  n.children,
145
- Jt(n)
146
- ), s = tl(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 ll(n, r) {
153
- const { width: s, height: i, xOffset: u, yOffset: h } = Ie(n);
153
+ function al(n, r) {
154
+ const { width: s, height: i, xOffset: u, yOffset: v } = Ie(n);
154
155
  if (s >= i) {
155
156
  const c = r / i, g = s - c, p = {
156
157
  xOffset: u + c,
157
- yOffset: h,
158
+ yOffset: v,
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,
165
- yOffset: h + c,
166
+ yOffset: v + c,
166
167
  width: s,
167
168
  height: g
168
169
  };
169
- return ht(p);
170
+ return pt(p);
170
171
  }
171
172
  }
172
- const ol = ["id"], al = {
173
+ const nl = ["id"], sl = {
173
174
  key: 4,
174
175
  class: "vue-ui-treemap-breadcrumbs",
175
176
  "data-dom-to-png-ignore": ""
176
- }, nl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], sl = { class: "vue-ui-treemap-crumb-unit" }, ul = { class: "vue-ui-treemap-crumb-unit-label" }, rl = {
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
- }, il = {
180
+ }, dl = {
180
181
  key: 0,
181
182
  class: "vue-ui-treemap-crumb-unit-arrow"
182
- }, cl = ["xmlns", "viewBox"], dl = { key: 0 }, vl = ["id"], hl = ["stop-color"], pl = ["stop-color"], fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], gl = ["x", "y", "height", "width"], yl = {
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
- }, ml = {
186
+ }, wl = {
186
187
  key: 6,
187
188
  class: "vue-data-ui-watermark"
188
- }, bl = ["onClick"], kl = { key: 0 }, wl = { key: 1 }, Cl = ["innerHTML"], $l = {
189
+ }, kl = ["onClick"], Cl = ["innerHTML"], $l = {
189
190
  __name: "vue-ui-treemap",
190
191
  props: {
191
192
  config: {
@@ -203,88 +204,88 @@ const ol = ["id"], al = {
203
204
  },
204
205
  emits: ["selectLegend", "selectDatapoint"],
205
206
  setup(n, { expose: r, emit: s }) {
206
- const i = K(() => import("./DataTable-CHBLjKtZ.js")), u = K(() => import("./PenAndPaper-BPTpbnay.js")), h = K(() => import("./vue-ui-accordion-D55kCO5G.js")), c = K(() => import("./vue-ui-skeleton-BAOt2neL.js")), g = K(() => import("./Tooltip-CJxVw7-T.js")), p = K(() => import("./UserOptions-CBEK6_jo.js")), H = K(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_treemap: z } = Ft(), w = n, C = s, m = Tt();
207
- nt(() => {
207
+ const i = J(() => import("./DataTable-Dt-TIOyY.js")), u = J(() => import("./PenAndPaper-Cde-wJ3N.js")), v = J(() => import("./vue-ui-accordion-UewqY6OI.js")), c = J(() => import("./vue-ui-skeleton-8s4xts8z.js")), g = J(() => import("./Tooltip-DA0bYKFG.js")), p = J(() => import("./UserOptions-DTEJ3UM_.js")), H = J(() => import("./PackageVersion-C-4Ee8BQ.js")), { vue_ui_treemap: P } = Nt(), k = 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), e = b({
211
+ const x = b(() => !!k.dataset && k.dataset.length), M = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), z = $(Se()), N = $(!1), be = $(""), le = $(!1), Fe = $(0), A = $([]), U = B(null), Ne = B(null), Pe = B(null), ze = B(null), Ae = B(null), Re = $(0), Ve = $(0), Le = $(0), e = b({
211
212
  get: () => He(),
212
213
  set: (t) => t
213
- }), { userOptionsVisible: we, setUserOptionsVisibility: De, keepUserOptionState: Ve } = Wt({ config: e.value }), { svgRef: Be } = Et({ config: e.value.style.chart.title });
214
+ }), { userOptionsVisible: we, setUserOptionsVisibility: Me, keepUserOptionState: De } = Wt({ config: e.value }), { svgRef: Be } = qt({ config: e.value.style.chart.title });
214
215
  function He() {
215
- const t = dt({
216
- userConfig: w.config,
217
- defaultConfig: z
216
+ const t = vt({
217
+ userConfig: k.config,
218
+ defaultConfig: P
218
219
  });
219
220
  return t.theme ? {
220
- ...dt({
221
- userConfig: zt.vue_ui_treemap[t.theme] || w.config,
221
+ ...vt({
222
+ userConfig: zt.vue_ui_treemap[t.theme] || k.config,
222
223
  defaultConfig: t
223
224
  }),
224
- customPalette: Nt[t.theme] || S
225
+ customPalette: Pt[t.theme] || I
225
226
  } : t;
226
227
  }
227
- Ot(() => w.config, (t) => {
228
- e.value = He(), we.value = !e.value.userOptions.showOnChartHover, Re.value += 1, Le.value += 1, Me.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.chart.tooltip.show;
228
+ _t(() => k.config, (t) => {
229
+ e.value = He(), we.value = !e.value.userOptions.showOnChartHover, Re.value += 1, Ve.value += 1, Le.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.chart.tooltip.show;
229
230
  }, { deep: !0 });
230
- const { isPrinting: Ue, isImaging: We, generatePdf: Ee, generateImage: qe } = Ut({
231
- elementId: `treemap_${A.value}`,
231
+ const { isPrinting: Ue, isImaging: Ee, generatePdf: We, generateImage: qe } = Et({
232
+ elementId: `treemap_${z.value}`,
232
233
  fileName: e.value.style.chart.title.text || "vue-ui-treemap",
233
234
  options: e.value.userOptions.print
234
- }), gt = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), ce = b(() => At(e.value.customPalette)), R = $({
235
+ }), yt = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), ce = b(() => At(e.value.customPalette)), R = $({
235
236
  showTable: e.value.table.show,
236
237
  showTooltip: e.value.style.chart.tooltip.show
237
- }), U = $({
238
+ }), E = $({
238
239
  height: e.value.style.chart.height,
239
240
  width: e.value.style.chart.width
240
- }), G = b(() => ({
241
- bottom: U.value.height - e.value.style.chart.padding.bottom,
242
- height: U.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
241
+ }), j = b(() => ({
242
+ bottom: E.value.height - e.value.style.chart.padding.bottom,
243
+ height: E.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
243
244
  left: e.value.style.chart.padding.left,
244
- right: U.value.width - e.value.style.chart.padding.right,
245
+ right: E.value.width - e.value.style.chart.padding.right,
245
246
  top: e.value.style.chart.padding.top,
246
- vbHeight: U.value.height,
247
- vbWidth: U.value.width,
248
- width: U.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
247
+ vbHeight: E.value.height,
248
+ vbWidth: E.value.width,
249
+ width: E.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
249
250
  }));
250
251
  function Ge(t) {
251
252
  t.forEach((o, l) => {
252
- o.id = Se(), o.color = me(o.color) || ce.value[l] || S[l] || S[l % S.length], o.children && (o.children.forEach((a) => {
253
+ o.id = Se(), o.color = ye(o.color) || ce.value[l] || I[l] || I[l % I.length], o.children && (o.children.forEach((a) => {
253
254
  a.parentId = o.id, a.color = o.color;
254
255
  }), Ge(o.children));
255
256
  });
256
257
  }
257
- const W = B(w.dataset), E = B(null), le = B(null);
258
- nt(() => {
259
- yt();
258
+ const W = B(k.dataset), q = 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(k.dataset) && Vt({
263
264
  componentName: "VueUiTreemap",
264
265
  type: "dataset"
265
266
  }), Ge(W.value), e.value.responsive) {
266
- const t = Bt(() => {
267
- const { width: o, height: l } = Ht({
268
- chart: se.value,
267
+ const t = Ht(() => {
268
+ const { width: o, height: l } = Ut({
269
+ chart: U.value,
269
270
  title: e.value.style.chart.title.text ? Ne.value : null,
270
- legend: e.value.style.chart.legend.show ? ze.value : null,
271
- source: Ae.value,
272
- noTitle: Pe.value
271
+ legend: e.value.style.chart.legend.show ? Pe.value : null,
272
+ source: ze.value,
273
+ noTitle: Ae.value
273
274
  });
274
275
  requestAnimationFrame(() => {
275
- U.value.width = o, U.value.height = l;
276
+ E.value.width = o, E.value.height = l;
276
277
  });
277
278
  });
278
- E.value && (le.value && E.value.unobserve(le.value), E.value.disconnect()), E.value = new ResizeObserver(t), le.value = se.value.parentNode, E.value.observe(le.value);
279
+ q.value && (oe.value && q.value.unobserve(oe.value), q.value.disconnect()), q.value = new ResizeObserver(t), oe.value = U.value.parentNode, q.value.observe(oe.value);
279
280
  }
280
281
  }
281
- _t(() => {
282
- E.value && (le.value && E.value.unobserve(le.value), E.value.disconnect());
282
+ St(() => {
283
+ q.value && (oe.value && q.value.unobserve(oe.value), q.value.disconnect());
283
284
  });
284
- const oe = $(W.value), ue = b(() => oe.value.map((t, o) => ({
285
+ const ae = $(W.value), ue = b(() => ae.value.map((t, o) => ({
285
286
  ...t,
286
- color: me(t.color) || ce.value[o] || S[o] || S[o % S.length]
287
- })).filter((t) => !P.value.includes(t.id))), ae = b(() => W.value.filter((t) => !P.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Xe = b({
287
+ color: ye(t.color) || ce.value[o] || I[o] || I[o % I.length]
288
+ })).filter((t) => !A.value.includes(t.id))), ne = b(() => W.value.filter((t) => !A.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Xe = b({
288
289
  get() {
289
290
  let t = [...ue.value];
290
291
  return e.value.style.chart.layout.sorted && (t = [...ue.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
@@ -298,23 +299,23 @@ const ol = ["id"], al = {
298
299
  function je(t, o) {
299
300
  return t.value / o;
300
301
  }
301
- function mt(t, o, l) {
302
+ function bt(t, o, l) {
302
303
  const a = e.value.style.chart.layout.rects.colorRatio - je(o, l);
303
- return rt(t, a < 0 ? 0 : a);
304
+ return it(t, a < 0 ? 0 : a);
304
305
  }
305
306
  function Ye(t, o, l, a) {
306
- return t.map((f, F) => {
307
- const fe = mt(me(o) || ce.value[F] || S[F] || S[F % S.length], f, a), xt = je(f, a);
307
+ return t.map((f, T) => {
308
+ const fe = bt(ye(o) || ce.value[T] || I[T] || I[T % I.length], f, a), Tt = je(f, a);
308
309
  return {
309
310
  ...f,
310
311
  color: fe,
311
- proportion: xt,
312
+ proportion: Tt,
312
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
+ const re = b(() => Qt(
318
319
  Xe.value.map((t, o) => {
319
320
  const l = t.children ? t.children.reduce((a, f) => a + f.value, 0) : t.value;
320
321
  return {
@@ -325,7 +326,7 @@ const ol = ["id"], al = {
325
326
  name: t.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: j.value.left * 2, y0: j.value.top, x1: j.value.width, y1: j.value.height }
329
330
  ));
330
331
  function Ke({ y0: t, y1: o }) {
331
332
  return o - t <= 0 ? 1e-4 : o - t;
@@ -333,66 +334,66 @@ const ol = ["id"], al = {
333
334
  function Ze({ x0: t, x1: o }) {
334
335
  return o - t <= 0 ? 1e-4 : o - t;
335
336
  }
336
- function X(t) {
337
+ function Y(t) {
337
338
  const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
338
339
  return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
339
340
  }
340
- function bt(t) {
341
- te.value = t, Fe.value += 1;
341
+ function Je(t) {
342
+ le.value = t, 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: j.value.vbWidth,
348
+ height: j.value.vbHeight
348
349
  }));
349
- function j(t, o = W.value) {
350
+ function K(t, o = W.value) {
350
351
  for (const l of o) {
351
352
  if (l.id === t)
352
353
  return l;
353
354
  if (l.children) {
354
- const a = j(t, l.children);
355
+ const a = K(t, 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 F = $([]), Z = b(() => F.value.length > 0);
362
363
  function de(t) {
363
364
  if (!t) {
364
- oe.value = W.value.slice(), C("selectDatapoint", void 0), I.value = [];
365
+ ae.value = W.value.slice(), C("selectDatapoint", void 0), F.value = [];
365
366
  return;
366
367
  }
367
- const o = j(t.id);
368
+ const o = K(t.id);
368
369
  if (o && o.children?.length)
369
- I.value.push(o.id), oe.value = o.children.slice(), C("selectDatapoint", t);
370
+ F.value.push(o.id), ae.value = o.children.slice(), C("selectDatapoint", t);
370
371
  else if (t.parentId) {
371
- I.value.push(t.parentId);
372
- const l = j(t.parentId);
373
- oe.value = l.children.slice(), C("selectDatapoint", t);
374
- } else if (I.value.length > 0) {
375
- I.value.pop();
376
- const l = I.value[I.value.length - 1];
372
+ F.value.push(t.parentId);
373
+ const l = K(t.parentId);
374
+ ae.value = l.children.slice(), C("selectDatapoint", t);
375
+ } else if (F.value.length > 0) {
376
+ F.value.pop();
377
+ const l = F.value[F.value.length - 1];
377
378
  if (l) {
378
- const a = j(l);
379
- oe.value = a.children.slice();
379
+ const a = K(l);
380
+ ae.value = a.children.slice();
380
381
  } else
381
- oe.value = W.value.slice(), I.value = [], C("selectDatapoint", void 0);
382
+ ae.value = W.value.slice(), F.value = [], C("selectDatapoint", void 0);
382
383
  }
383
384
  }
384
- function kt(t) {
385
- return !!(j(t.id)?.children?.length || t.parentId);
385
+ function wt(t) {
386
+ return !!(K(t.id)?.children?.length || t.parentId);
386
387
  }
387
- const q = b(() => {
388
+ const G = b(() => {
388
389
  const t = [
389
390
  { id: null, label: "All" }
390
391
  ];
391
- if (I.value.length > 0) {
392
- let o = j(I.value[I.value.length - 1]);
392
+ if (F.value.length > 0) {
393
+ let o = K(F.value[F.value.length - 1]);
393
394
  const l = [];
394
395
  for (; o; )
395
- l.unshift(o), o = o.parentId ? j(o.parentId) : null;
396
+ l.unshift(o), o = o.parentId ? K(o.parentId) : null;
396
397
  for (const a of l)
397
398
  t.push({
398
399
  id: a.id,
@@ -401,15 +402,15 @@ const ol = ["id"], al = {
401
402
  });
402
403
  }
403
404
  return t;
404
- }), L = B(null), Je = b(() => W.value.map((t, o) => ({
405
+ }), V = B(null), Qe = b(() => W.value.map((t, o) => ({
405
406
  ...t,
406
- color: me(t.color) || ce.value[o] || S[o] || S[o % S.length],
407
+ color: ye(t.color) || ce.value[o] || I[o] || I[o % I.length],
407
408
  shape: "square"
408
409
  })).sort((t, o) => o.value - t.value).map((t, o) => ({
409
410
  ...t,
410
411
  proportion: t.value / W.value.map((l) => l.value).reduce((l, a) => l + a, 0),
411
- opacity: P.value.includes(t.id) ? 0.5 : 1
412
- }))), wt = b(() => ({
412
+ opacity: A.value.includes(t.id) ? 0.5 : 1
413
+ }))), kt = b(() => ({
413
414
  cy: "treemap-div-legend",
414
415
  backgroundColor: e.value.style.chart.legend.backgroundColor,
415
416
  color: e.value.style.chart.legend.color,
@@ -417,20 +418,20 @@ const ol = ["id"], al = {
417
418
  paddingBottom: 12,
418
419
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
419
420
  }));
420
- function Qe(t) {
421
- L.value = null, P.value.includes(t.id) ? P.value = P.value.filter((o) => o !== t.id) : P.value.length < w.dataset.length - 1 && P.value.push(t.id), C("selectLegend", Xe.value);
421
+ function et(t) {
422
+ V.value = null, A.value.includes(t.id) ? A.value = A.value.filter((o) => o !== t.id) : A.value.length < k.dataset.length - 1 && A.value.push(t.id), C("selectLegend", Xe.value);
422
423
  }
423
- const Ce = $(null);
424
+ const ke = $(null);
424
425
  function Ct({ datapoint: t, seriesIndex: o }) {
425
- L.value = t, Ce.value = { datapoint: t, seriesIndex: o, config: e.value, series: ue.value };
426
+ V.value = t, ke.value = { datapoint: t, seriesIndex: o, config: e.value, series: ue.value };
426
427
  const l = e.value.style.chart.tooltip.customFormat;
427
- if (ct(l) && Vt(() => l({
428
+ if (dt(l) && Bt(() => l({
428
429
  seriesIndex: o,
429
430
  datapoint: t,
430
431
  series: ue.value,
431
432
  config: e.value
432
433
  })))
433
- ke.value = l({
434
+ be.value = l({
434
435
  seriesIndex: o,
435
436
  datapoint: t,
436
437
  series: ue.value,
@@ -438,7 +439,7 @@ const ol = ["id"], al = {
438
439
  });
439
440
  else {
440
441
  let a = "";
441
- a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${be(
442
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${me(
442
443
  e.value.style.chart.layout.labels.formatter,
443
444
  t.value,
444
445
  ie({
@@ -448,22 +449,22 @@ const ol = ["id"], al = {
448
449
  r: e.value.style.chart.tooltip.roundingValue
449
450
  }),
450
451
  { datapoint: t, seriesIndex: o }
451
- )}</b>`, ke.value = `<div>${a}</div>`;
452
+ )}</b>`, be.value = `<div>${a}</div>`;
452
453
  }
453
454
  N.value = !0;
454
455
  }
455
- const V = b(() => {
456
+ const D = b(() => {
456
457
  const t = re.value.map((l) => ({
457
458
  name: l.name,
458
459
  color: l.color
459
460
  })), o = re.value.map((l) => l.value);
460
461
  return { head: t, body: o };
461
462
  });
462
- function et(t = null) {
463
- It(() => {
464
- const o = V.value.head.map((f, F) => [[
463
+ function tt(t = null) {
464
+ Ft(() => {
465
+ const o = D.value.head.map((f, T) => [[
465
466
  f.name
466
- ], [V.value.body[F]], [isNaN(V.value.body[F] / ae.value) ? "-" : V.value.body[F] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Mt(l);
467
+ ], [D.value.body[T]], [isNaN(D.value.body[T] / ne.value) ? "-" : D.value.body[T] / ne.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Mt(l);
467
468
  t ? t(a) : Dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
468
469
  });
469
470
  }
@@ -472,13 +473,13 @@ const ol = ["id"], al = {
472
473
  e.value.table.columnNames.series,
473
474
  e.value.table.columnNames.value,
474
475
  e.value.table.columnNames.percentage
475
- ], o = V.value.head.map((f, F) => {
476
- const fe = be(
476
+ ], o = D.value.head.map((f, T) => {
477
+ const fe = me(
477
478
  e.value.style.chart.layout.labels.formatter,
478
- V.value.body[F],
479
+ D.value.body[T],
479
480
  ie({
480
481
  p: e.value.style.chart.layout.labels.prefix,
481
- v: V.value.body[F],
482
+ v: D.value.body[T],
482
483
  s: e.value.style.chart.layout.labels.suffix,
483
484
  r: e.value.table.td.roundingValue
484
485
  })
@@ -490,8 +491,8 @@ const ol = ["id"], al = {
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(D.value.body[T] / ne.value) ? "-" : ie({
495
+ v: D.value.body[T] / ne.value * 100,
495
496
  s: "%",
496
497
  r: e.value.table.td.roundingPercentage
497
498
  })
@@ -522,62 +523,76 @@ const ol = ["id"], al = {
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
- function lt() {
529
+ function ot() {
529
530
  R.value.showTooltip = !R.value.showTooltip;
530
531
  }
531
532
  const he = $(!1);
532
- function $e() {
533
+ function Ce() {
533
534
  he.value = !he.value;
534
535
  }
535
536
  const pe = $(null);
536
- function ot(t) {
537
+ function at(t) {
537
538
  pe.value = t;
538
539
  }
539
- function at() {
540
+ function nt() {
540
541
  pe.value = null;
541
542
  }
543
+ async function xt({ scale: t = 2 } = {}) {
544
+ if (!U.value) return;
545
+ const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: f, base64: T } = await Yt({ domElement: U.value, base64: !0, img: !0, scale: t });
546
+ return {
547
+ imageUri: f,
548
+ base64: T,
549
+ title: e.value.style.chart.title.text,
550
+ width: o,
551
+ height: l,
552
+ aspectRatio: a
553
+ };
554
+ }
542
555
  return r({
543
556
  getData: $t,
544
- generateCsv: et,
557
+ getImage: xt,
558
+ generateCsv: tt,
545
559
  generateImage: qe,
546
- generatePdf: Ee,
547
- toggleTable: tt,
548
- toggleTooltip: lt,
549
- toggleAnnotator: $e
550
- }), (t, o) => (v(), y("div", {
560
+ generatePdf: We,
561
+ toggleTable: lt,
562
+ toggleTooltip: ot,
563
+ toggleAnnotator: Ce,
564
+ toggleFullscreen: Je
565
+ }), (t, o) => (h(), y("div", {
551
566
  ref_key: "treemapChart",
552
- ref: se,
553
- class: xe(`vue-ui-treemap ${te.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
554
- style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
555
- id: `treemap_${A.value}`,
556
- onMouseenter: o[3] || (o[3] = () => d(De)(!0)),
557
- onMouseleave: o[4] || (o[4] = () => d(De)(!1))
567
+ ref: U,
568
+ class: $e(`vue-ui-treemap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
569
+ style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
570
+ id: `treemap_${z.value}`,
571
+ onMouseenter: o[3] || (o[3] = () => d(Me)(!0)),
572
+ onMouseleave: o[4] || (o[4] = () => d(Me)(!1))
558
573
  }, [
559
- e.value.userOptions.buttons.annotator ? (v(), Z(d(u), {
574
+ e.value.userOptions.buttons.annotator ? (h(), Q(d(u), {
560
575
  key: 0,
561
576
  svgRef: d(Be),
562
577
  backgroundColor: e.value.style.chart.backgroundColor,
563
578
  color: e.value.style.chart.color,
564
579
  active: he.value,
565
- onClose: $e
566
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : O("", !0),
567
- gt.value ? (v(), y("div", {
580
+ onClose: Ce
581
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
582
+ yt.value ? (h(), y("div", {
568
583
  key: 1,
569
584
  ref_key: "noTitle",
570
- ref: Pe,
585
+ ref: Ae,
571
586
  class: "vue-data-ui-no-title-space",
572
587
  style: "height:36px; width: 100%;background:transparent"
573
- }, null, 512)) : O("", !0),
574
- e.value.style.chart.title.text ? (v(), y("div", {
588
+ }, null, 512)) : _("", !0),
589
+ e.value.style.chart.title.text ? (h(), y("div", {
575
590
  key: 2,
576
591
  ref_key: "chartTitle",
577
592
  ref: Ne,
578
- style: M(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
593
+ style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
579
594
  }, [
580
- (v(), Z(Gt, {
595
+ (h(), Q(Xt, {
581
596
  key: `title_${Re.value}`,
582
597
  config: {
583
598
  title: {
@@ -590,215 +605,215 @@ const ol = ["id"], al = {
590
605
  }
591
606
  }
592
607
  }, null, 8, ["config"]))
593
- ], 4)) : O("", !0),
594
- e.value.userOptions.show && x.value && (d(Ve) || d(we)) ? (v(), Z(d(p), {
608
+ ], 4)) : _("", !0),
609
+ e.value.userOptions.show && x.value && (d(De) || d(we)) ? (h(), Q(d(p), {
595
610
  ref: "details",
596
611
  key: `user_option_${Fe.value}`,
597
612
  backgroundColor: e.value.style.chart.backgroundColor,
598
613
  color: e.value.style.chart.color,
599
614
  isPrinting: d(Ue),
600
- isImaging: d(We),
601
- uid: A.value,
615
+ isImaging: d(Ee),
616
+ uid: z.value,
602
617
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
603
618
  hasPdf: e.value.userOptions.buttons.pdf,
604
619
  hasXls: e.value.userOptions.buttons.csv,
605
620
  hasImg: e.value.userOptions.buttons.img,
606
621
  hasTable: e.value.userOptions.buttons.table,
607
622
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
608
- isFullscreen: te.value,
623
+ isFullscreen: le.value,
609
624
  isTooltip: R.value.showTooltip,
610
625
  titles: { ...e.value.userOptions.buttonTitles },
611
- chartElement: se.value,
626
+ chartElement: U.value,
612
627
  position: e.value.userOptions.position,
613
628
  hasAnnotator: e.value.userOptions.buttons.annotator,
614
629
  isAnnotation: he.value,
615
630
  callbacks: e.value.userOptions.callbacks,
616
631
  printScale: e.value.userOptions.print.scale,
617
- onToggleFullscreen: bt,
618
- onGeneratePdf: d(Ee),
619
- onGenerateCsv: et,
632
+ onToggleFullscreen: Je,
633
+ onGeneratePdf: d(We),
634
+ onGenerateCsv: tt,
620
635
  onGenerateImage: d(qe),
621
- onToggleTable: tt,
622
- onToggleTooltip: lt,
623
- onToggleAnnotator: $e,
624
- style: M({
625
- visibility: d(Ve) ? d(we) ? "visible" : "hidden" : "visible"
636
+ onToggleTable: lt,
637
+ onToggleTooltip: ot,
638
+ onToggleAnnotator: Ce,
639
+ style: L({
640
+ visibility: d(De) ? d(we) ? "visible" : "hidden" : "visible"
626
641
  })
627
- }, St({ _: 2 }, [
642
+ }, It({ _: 2 }, [
628
643
  t.$slots.menuIcon ? {
629
644
  name: "menuIcon",
630
- fn: T(({ isOpen: l, color: a }) => [
631
- k(t.$slots, "menuIcon", J(Q({ isOpen: l, color: a })), void 0, !0)
645
+ fn: O(({ isOpen: l, color: a }) => [
646
+ w(t.$slots, "menuIcon", ee(te({ isOpen: l, color: a })), void 0, !0)
632
647
  ]),
633
648
  key: "0"
634
649
  } : void 0,
635
650
  t.$slots.optionTooltip ? {
636
651
  name: "optionTooltip",
637
- fn: T(() => [
638
- k(t.$slots, "optionTooltip", {}, void 0, !0)
652
+ fn: O(() => [
653
+ w(t.$slots, "optionTooltip", {}, void 0, !0)
639
654
  ]),
640
655
  key: "1"
641
656
  } : void 0,
642
657
  t.$slots.optionPdf ? {
643
658
  name: "optionPdf",
644
- fn: T(() => [
645
- k(t.$slots, "optionPdf", {}, void 0, !0)
659
+ fn: O(() => [
660
+ w(t.$slots, "optionPdf", {}, void 0, !0)
646
661
  ]),
647
662
  key: "2"
648
663
  } : void 0,
649
664
  t.$slots.optionCsv ? {
650
665
  name: "optionCsv",
651
- fn: T(() => [
652
- k(t.$slots, "optionCsv", {}, void 0, !0)
666
+ fn: O(() => [
667
+ w(t.$slots, "optionCsv", {}, void 0, !0)
653
668
  ]),
654
669
  key: "3"
655
670
  } : void 0,
656
671
  t.$slots.optionImg ? {
657
672
  name: "optionImg",
658
- fn: T(() => [
659
- k(t.$slots, "optionImg", {}, void 0, !0)
673
+ fn: O(() => [
674
+ w(t.$slots, "optionImg", {}, void 0, !0)
660
675
  ]),
661
676
  key: "4"
662
677
  } : void 0,
663
678
  t.$slots.optionTable ? {
664
679
  name: "optionTable",
665
- fn: T(() => [
666
- k(t.$slots, "optionTable", {}, void 0, !0)
680
+ fn: O(() => [
681
+ w(t.$slots, "optionTable", {}, void 0, !0)
667
682
  ]),
668
683
  key: "5"
669
684
  } : void 0,
670
685
  t.$slots.optionFullscreen ? {
671
686
  name: "optionFullscreen",
672
- fn: T(({ toggleFullscreen: l, isFullscreen: a }) => [
673
- k(t.$slots, "optionFullscreen", J(Q({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
687
+ fn: O(({ toggleFullscreen: l, isFullscreen: a }) => [
688
+ w(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
674
689
  ]),
675
690
  key: "6"
676
691
  } : void 0,
677
692
  t.$slots.optionAnnotator ? {
678
693
  name: "optionAnnotator",
679
- fn: T(({ toggleAnnotator: l, isAnnotator: a }) => [
680
- k(t.$slots, "optionAnnotator", J(Q({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
694
+ fn: O(({ toggleAnnotator: l, isAnnotator: a }) => [
695
+ w(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
681
696
  ]),
682
697
  key: "7"
683
698
  } : void 0
684
- ]), 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),
685
- q.value.length > 1 ? (v(), y("nav", al, [
686
- (v(!0), y(ge, null, Oe(q.value, (l, a) => (v(), y("span", {
699
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
700
+ G.value.length > 1 ? (h(), y("nav", sl, [
701
+ (h(!0), y(ge, null, Te(G.value, (l, a) => (h(), y("span", {
687
702
  role: "button",
688
- tabindex: a < q.value.length - 1 ? 0 : void 0,
703
+ tabindex: a < G.value.length - 1 ? 0 : void 0,
689
704
  key: l.id || "root",
690
- onClick: (f) => a === q.value.length - 1 ? () => {
705
+ onClick: (f) => a === G.value.length - 1 ? () => {
691
706
  } : de(l.node),
692
707
  onKeydown: [
693
- st(_e((f) => a === q.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["enter"]),
694
- st(_e((f) => a === q.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["space"])
708
+ ut(Oe((f) => a === G.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["enter"]),
709
+ ut(Oe((f) => a === G.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["space"])
695
710
  ],
696
711
  class: "vue-ui-treemap-crumb",
697
- "data-last-crumb": a === q.value.length - 1,
698
- style: M({
712
+ "data-last-crumb": a === G.value.length - 1,
713
+ style: L({
699
714
  color: e.value.style.chart.color
700
715
  }),
701
- onMouseenter: (f) => ot(a),
702
- onMouseleave: at,
703
- onFocus: (f) => ot(a),
704
- onBlur: at
716
+ onMouseenter: (f) => at(a),
717
+ onMouseleave: nt,
718
+ onFocus: (f) => at(a),
719
+ onBlur: nt
705
720
  }, [
706
- _("span", sl, [
707
- _("span", ul, [
708
- k(t.$slots, "breadcrumb-label", ut({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: pe.value === a }), () => [
709
- a === 0 ? (v(), y("div", rl, [
710
- Te(qt, {
721
+ S("span", rl, [
722
+ S("span", il, [
723
+ w(t.$slots, "breadcrumb-label", rt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: pe.value === a }), () => [
724
+ a === 0 ? (h(), y("div", cl, [
725
+ xe(Gt, {
711
726
  name: pe.value === 0 ? "homeFilled" : "home",
712
727
  stroke: e.value.style.chart.color
713
728
  }, null, 8, ["name", "stroke"])
714
- ])) : (v(), y(ge, { key: 1 }, [
715
- ye(ee(l.label), 1)
729
+ ])) : (h(), y(ge, { key: 1 }, [
730
+ _e(X(l.label), 1)
716
731
  ], 64))
717
732
  ], !0)
718
733
  ]),
719
- a < q.value.length - 1 ? (v(), y("span", il, [
720
- k(t.$slots, "breadcrumb-arrow", {}, () => [
721
- o[5] || (o[5] = ye(" › "))
734
+ a < G.value.length - 1 ? (h(), y("span", dl, [
735
+ w(t.$slots, "breadcrumb-arrow", {}, () => [
736
+ o[5] || (o[5] = _e(" › "))
722
737
  ], !0)
723
- ])) : O("", !0)
738
+ ])) : _("", !0)
724
739
  ])
725
- ], 44, nl))), 128))
726
- ])) : O("", !0),
727
- x.value ? (v(), y("svg", {
740
+ ], 44, ul))), 128))
741
+ ])) : _("", !0),
742
+ x.value ? (h(), y("svg", {
728
743
  key: 5,
729
744
  ref_key: "svgRef",
730
745
  ref: Be,
731
746
  xmlns: d(Lt),
732
- 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 }),
733
- viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
734
- style: M(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
747
+ class: $e({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !Z.value, "vue-data-ui-zoom-minus": Z.value }),
748
+ viewBox: `${se.value.startX} ${se.value.startY} ${se.value.width <= 0 ? 10 : se.value.width} ${se.value.height <= 0 ? 10 : se.value.height}`,
749
+ style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
735
750
  }, [
736
- Te(d(H)),
737
- (v(!0), y(ge, null, Oe(re.value, (l, a) => (v(), y("g", {
751
+ xe(d(H)),
752
+ (h(!0), y(ge, null, Te(re.value, (l, a) => (h(), y("g", {
738
753
  key: `tgrad_${l.id}`
739
754
  }, [
740
- e.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", dl, [
741
- _("radialGradient", {
755
+ e.value.style.chart.layout.rects.gradient.show ? (h(), y("defs", hl, [
756
+ S("radialGradient", {
742
757
  id: `tgrad_${l.id}`,
743
758
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
744
759
  }, [
745
- _("stop", {
760
+ S("stop", {
746
761
  offset: "18%",
747
762
  "stop-color": l.color
748
- }, null, 8, hl),
749
- _("stop", {
763
+ }, null, 8, fl),
764
+ S("stop", {
750
765
  offset: "100%",
751
- "stop-color": d(rt)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
752
- }, null, 8, pl)
753
- ], 8, vl)
754
- ])) : O("", !0)
766
+ "stop-color": d(it)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
767
+ }, null, 8, gl)
768
+ ], 8, pl)
769
+ ])) : _("", !0)
755
770
  ]))), 128)),
756
- (v(!0), y(ge, null, Oe(re.value, (l, a) => (v(), y("g", {
771
+ (h(!0), y(ge, null, Te(re.value, (l, a) => (h(), y("g", {
757
772
  key: `k_${l.id}`
758
773
  }, [
759
- _("rect", {
774
+ S("rect", {
760
775
  x: l.x0,
761
776
  y: l.y0,
762
777
  height: Ke(l),
763
778
  width: Ze(l),
764
- fill: D.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
779
+ fill: M.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
765
780
  rx: e.value.style.chart.layout.rects.borderRadius,
766
- stroke: L.value && L.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
767
- "stroke-width": L.value && L.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
768
- onClick: _e((f) => de(l), ["stop"]),
781
+ stroke: V.value && V.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
782
+ "stroke-width": V.value && V.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
783
+ onClick: Oe((f) => de(l), ["stop"]),
769
784
  onMouseenter: () => Ct({
770
785
  datapoint: l,
771
786
  seriesIndex: a
772
787
  }),
773
788
  onMouseleave: o[0] || (o[0] = (f) => {
774
- L.value = null, N.value = !1;
789
+ V.value = null, N.value = !1;
775
790
  }),
776
- style: M(`opacity:${L.value ? L.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
777
- class: xe([
791
+ style: L(`opacity:${V.value ? V.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
792
+ class: $e([
778
793
  "vue-ui-treemap-rect",
779
- kt(l) ? "vue-data-ui-zoom-plus" : Y.value ? "vue-data-ui-zoom-minus" : ""
794
+ wt(l) ? "vue-data-ui-zoom-plus" : Z.value ? "vue-data-ui-zoom-minus" : ""
780
795
  ])
781
- }, null, 46, fl),
782
- (v(), y("foreignObject", {
796
+ }, null, 46, yl),
797
+ (h(), y("foreignObject", {
783
798
  x: l.x0,
784
799
  y: l.y0,
785
800
  height: Ke(l),
786
801
  width: Ze(l),
787
802
  class: "vue-ui-treemap-cell-foreignObject"
788
803
  }, [
789
- _("div", yl, [
790
- e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Y.value) ? (v(), y("div", {
804
+ S("div", bl, [
805
+ e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Z.value) ? (h(), y("div", {
791
806
  key: 0,
792
807
  class: "vue-ui-treemap-cell-default",
793
- style: M(`width:calc(100% - ${X(l) / 1.5}px);text-align:left;line-height:${X(l) < 14 ? 14 : X(l)}px;padding:${X(l) / 3}px; color:${d(it)(l.color)}`)
808
+ style: L(`width:calc(100% - ${Y(l) / 1.5}px);text-align:left;line-height:${Y(l) < 14 ? 14 : Y(l)}px;padding:${Y(l) / 3}px; color:${d(ct)(l.color)}`)
794
809
  }, [
795
- _("span", {
796
- style: M(`width:100%;font-size:${X(l)}px;`)
797
- }, ee(l.name), 5),
798
- o[6] || (o[6] = _("br", null, null, -1)),
799
- _("span", {
800
- style: M(`width:100%;font-size:${X(l)}px;`)
801
- }, ee(d(be)(
810
+ S("span", {
811
+ style: L(`width:100%;font-size:${Y(l)}px;`)
812
+ }, X(l.name), 5),
813
+ o[6] || (o[6] = S("br", null, null, -1)),
814
+ S("span", {
815
+ style: L(`width:100%;font-size:${Y(l)}px;`)
816
+ }, X(d(me)(
802
817
  e.value.style.chart.layout.labels.formatter,
803
818
  l.value,
804
819
  d(ie)({
@@ -809,23 +824,23 @@ const ol = ["id"], al = {
809
824
  }),
810
825
  { datapoint: l }
811
826
  )), 5)
812
- ], 4)) : O("", !0),
813
- k(t.$slots, "rect", ut({ ref_for: !0 }, {
827
+ ], 4)) : _("", !0),
828
+ w(t.$slots, "rect", rt({ ref_for: !0 }, {
814
829
  rect: l,
815
- shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Y.value,
816
- fontSize: X(l),
817
- isZoom: Y.value,
818
- textColor: d(it)(l.color)
830
+ shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Z.value,
831
+ fontSize: Y(l),
832
+ isZoom: Z.value,
833
+ textColor: d(ct)(l.color)
819
834
  }), void 0, !0)
820
835
  ])
821
- ], 8, gl))
836
+ ], 8, ml))
822
837
  ]))), 128)),
823
- k(t.$slots, "svg", J(Q({ svg: G.value, isZoom: Y.value, rect: L.value, config: e.value })), void 0, !0)
824
- ], 14, cl)) : O("", !0),
825
- t.$slots.watermark ? (v(), y("div", ml, [
826
- k(t.$slots, "watermark", J(Q({ isPrinting: d(Ue) || d(We) })), void 0, !0)
827
- ])) : O("", !0),
828
- x.value ? O("", !0) : (v(), Z(d(c), {
838
+ w(t.$slots, "svg", ee(te({ svg: j.value, isZoom: Z.value, rect: V.value, config: e.value })), void 0, !0)
839
+ ], 14, vl)) : _("", !0),
840
+ t.$slots.watermark ? (h(), y("div", wl, [
841
+ w(t.$slots, "watermark", ee(te({ isPrinting: d(Ue) || d(Ee) })), void 0, !0)
842
+ ])) : _("", !0),
843
+ x.value ? _("", !0) : (h(), Q(d(c), {
829
844
  key: 7,
830
845
  config: {
831
846
  type: "treemap",
@@ -837,51 +852,48 @@ const ol = ["id"], al = {
837
852
  }
838
853
  }
839
854
  }, null, 8, ["config"])),
840
- _("div", {
855
+ S("div", {
841
856
  ref_key: "chartLegend",
842
- ref: ze
857
+ ref: Pe
843
858
  }, [
844
- e.value.style.chart.legend.show ? (v(), Z(Xt, {
845
- key: `legend_${Me.value}`,
846
- legendSet: Je.value,
847
- config: wt.value,
848
- id: `treemap_legend_${A.value}`,
849
- onClickMarker: o[1] || (o[1] = ({ legend: l }) => Qe(l))
859
+ e.value.style.chart.legend.show ? (h(), Q(jt, {
860
+ key: `legend_${Le.value}`,
861
+ legendSet: Qe.value,
862
+ config: kt.value,
863
+ id: `treemap_legend_${z.value}`,
864
+ onClickMarker: o[1] || (o[1] = ({ legend: l }) => et(l))
850
865
  }, {
851
- item: T(({ legend: l, index: a }) => [
852
- _("div", {
853
- onClick: (f) => Qe(l),
854
- style: M(`opacity:${P.value.includes(l.id) ? 0.5 : 1}`)
855
- }, [
856
- ye(ee(l.name) + ": " + ee(d(be)(
857
- e.value.style.chart.layout.labels.formatter,
858
- l.value,
859
- d(ie)({
860
- p: e.value.style.chart.layout.labels.prefix,
861
- v: l.value,
862
- s: e.value.style.chart.layout.labels.suffix,
863
- r: e.value.style.chart.legend.roundingValue
864
- }),
865
- { datapoint: l }
866
- )) + " ", 1),
867
- P.value.includes(l.id) ? (v(), y("span", wl, " ( - % ) ")) : (v(), y("span", kl, " (" + ee(isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
868
- ], 12, bl)
866
+ item: O(({ legend: l, index: a }) => [
867
+ S("div", {
868
+ onClick: (f) => et(l),
869
+ style: L(`opacity:${A.value.includes(l.id) ? 0.5 : 1}`)
870
+ }, X(l.name) + X(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + X(e.value.style.chart.legend.showValue ? d(me)(
871
+ e.value.style.chart.layout.labels.formatter,
872
+ l.value,
873
+ d(ie)({
874
+ p: e.value.style.chart.layout.labels.prefix,
875
+ v: l.value,
876
+ s: e.value.style.chart.layout.labels.suffix,
877
+ r: e.value.style.chart.legend.roundingValue
878
+ }),
879
+ { datapoint: l }
880
+ ) : "") + " " + X(e.value.style.chart.legend.showPercentage ? A.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ne.value) ? "-" : (l.value / ne.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, kl)
869
881
  ]),
870
882
  _: 1
871
- }, 8, ["legendSet", "config", "id"])) : k(t.$slots, "legend", {
883
+ }, 8, ["legendSet", "config", "id"])) : w(t.$slots, "legend", {
872
884
  key: 1,
873
- legend: Je.value
885
+ legend: Qe.value
874
886
  }, void 0, !0)
875
887
  ], 512),
876
- t.$slots.source ? (v(), y("div", {
888
+ t.$slots.source ? (h(), y("div", {
877
889
  key: 8,
878
890
  ref_key: "source",
879
- ref: Ae,
891
+ ref: ze,
880
892
  dir: "auto"
881
893
  }, [
882
- k(t.$slots, "source", {}, void 0, !0)
883
- ], 512)) : O("", !0),
884
- Te(d(g), {
894
+ w(t.$slots, "source", {}, void 0, !0)
895
+ ], 512)) : _("", !0),
896
+ xe(d(g), {
885
897
  show: R.value.showTooltip && N.value,
886
898
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
887
899
  color: e.value.style.chart.tooltip.color,
@@ -892,20 +904,20 @@ const ol = ["id"], al = {
892
904
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
893
905
  position: e.value.style.chart.tooltip.position,
894
906
  offsetY: e.value.style.chart.tooltip.offsetY,
895
- parent: se.value,
896
- content: ke.value,
897
- isFullscreen: te.value,
898
- isCustom: d(ct)(e.value.style.chart.tooltip.customFormat)
907
+ parent: U.value,
908
+ content: be.value,
909
+ isFullscreen: le.value,
910
+ isCustom: d(dt)(e.value.style.chart.tooltip.customFormat)
899
911
  }, {
900
- "tooltip-before": T(() => [
901
- k(t.$slots, "tooltip-before", J(Q({ ...Ce.value })), void 0, !0)
912
+ "tooltip-before": O(() => [
913
+ w(t.$slots, "tooltip-before", ee(te({ ...ke.value })), void 0, !0)
902
914
  ]),
903
- "tooltip-after": T(() => [
904
- k(t.$slots, "tooltip-after", J(Q({ ...Ce.value })), void 0, !0)
915
+ "tooltip-after": O(() => [
916
+ w(t.$slots, "tooltip-after", ee(te({ ...ke.value })), void 0, !0)
905
917
  ]),
906
918
  _: 3
907
919
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
908
- x.value ? (v(), Z(d(h), {
920
+ x.value ? (h(), Q(d(v), {
909
921
  key: 9,
910
922
  hideDetails: "",
911
923
  config: {
@@ -921,9 +933,9 @@ const ol = ["id"], al = {
921
933
  }
922
934
  }
923
935
  }, {
924
- content: T(() => [
925
- (v(), Z(d(i), {
926
- key: `table_${Le.value}`,
936
+ content: O(() => [
937
+ (h(), Q(d(i), {
938
+ key: `table_${Ve.value}`,
927
939
  colNames: ve.value.colNames,
928
940
  head: ve.value.head,
929
941
  body: ve.value.body,
@@ -931,23 +943,23 @@ const ol = ["id"], al = {
931
943
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
932
944
  onClose: o[2] || (o[2] = (l) => R.value.showTable = !1)
933
945
  }, {
934
- th: T(({ th: l }) => [
935
- _("div", {
946
+ th: O(({ th: l }) => [
947
+ S("div", {
936
948
  innerHTML: l,
937
949
  style: { display: "flex", "align-items": "center" }
938
950
  }, null, 8, Cl)
939
951
  ]),
940
- td: T(({ td: l }) => [
941
- ye(ee(l.name || l), 1)
952
+ td: O(({ td: l }) => [
953
+ _e(X(l.name || l), 1)
942
954
  ]),
943
955
  _: 1
944
956
  }, 8, ["colNames", "head", "body", "config", "title"]))
945
957
  ]),
946
958
  _: 1
947
- }, 8, ["config"])) : O("", !0)
948
- ], 46, ol));
959
+ }, 8, ["config"])) : _("", !0)
960
+ ], 46, nl));
949
961
  }
950
- }, Rl = /* @__PURE__ */ jt($l, [["__scopeId", "data-v-3d2858c1"]]);
962
+ }, Vl = /* @__PURE__ */ Kt($l, [["__scopeId", "data-v-bcbded69"]]);
951
963
  export {
952
- Rl as default
964
+ Vl as default
953
965
  };