vue-data-ui 3.4.9 → 3.5.1

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