vue-data-ui 3.4.3 → 3.4.5

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 (156) hide show
  1. package/dist/{Arrow-CRe_nKB4.js → Arrow-BGVin3AS.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CbuLbfrc.js → BaseDraggableDialog-ymf2sfB8.js} +2 -2
  3. package/dist/{BaseIcon-B5KaGWWC.js → BaseIcon-BmMbm4d0.js} +1 -1
  4. package/dist/{ColorPicker-BMztHpBp.js → ColorPicker-J5wOPCeB.js} +2 -2
  5. package/dist/{DataTable-DOx3zgih.js → DataTable-BT7VF2ua.js} +2 -2
  6. package/dist/{Legend-C8u37J42.js → Legend-G6GMcdAc.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BcxfJ-r2.js → NonSvgPenAndPaper-C7TRn0_3.js} +3 -3
  8. package/dist/{PackageVersion-Df-8U2yE.js → PackageVersion-C-wnwkC4.js} +1 -1
  9. package/dist/{PenAndPaper-Dj2diYr0.js → PenAndPaper-DSvu9dwa.js} +3 -3
  10. package/dist/{Shape-BhNvlGIN.js → Shape-CNXKB8O0.js} +1 -1
  11. package/dist/{Slicer-BHgEsIBU.js → Slicer-D2wm0coO.js} +2 -2
  12. package/dist/{SlicerPreview-Cobmb_1S.js → SlicerPreview-ij72TAs6.js} +2 -2
  13. package/dist/{SparkTooltip-CL3cNRQ_.js → SparkTooltip-BEewz-_Q.js} +1 -1
  14. package/dist/{Title-D7_5ICX_.js → Title-BWp-37K_.js} +1 -1
  15. package/dist/{Tooltip-Cs4v8OnI.js → Tooltip-68Yi_FFl.js} +1 -1
  16. package/dist/{UserOptions-C0YT60JN.js → UserOptions-1OZ3jcm6.js} +2 -2
  17. package/dist/components/arrow.js +1 -1
  18. package/dist/components/vue-ui-3d-bar.js +1 -1
  19. package/dist/components/vue-ui-accordion.js +1 -1
  20. package/dist/components/vue-ui-age-pyramid.js +1 -1
  21. package/dist/components/vue-ui-annotator.js +1 -1
  22. package/dist/components/vue-ui-bullet.js +1 -1
  23. package/dist/components/vue-ui-candlestick.js +1 -1
  24. package/dist/components/vue-ui-carousel-table.js +1 -1
  25. package/dist/components/vue-ui-chestnut.js +1 -1
  26. package/dist/components/vue-ui-chord.js +1 -1
  27. package/dist/components/vue-ui-circle-pack.js +1 -1
  28. package/dist/components/vue-ui-cursor.js +1 -1
  29. package/dist/components/vue-ui-dashboard.js +1 -1
  30. package/dist/components/vue-ui-digits.js +1 -1
  31. package/dist/components/vue-ui-donut-evolution.js +1 -1
  32. package/dist/components/vue-ui-donut.js +1 -1
  33. package/dist/components/vue-ui-dumbbell.js +1 -1
  34. package/dist/components/vue-ui-flow.js +1 -1
  35. package/dist/components/vue-ui-funnel.js +1 -1
  36. package/dist/components/vue-ui-galaxy.js +1 -1
  37. package/dist/components/vue-ui-gauge.js +1 -1
  38. package/dist/components/vue-ui-gizmo.js +1 -1
  39. package/dist/components/vue-ui-heatmap.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-strip-plot.js +1 -1
  68. package/dist/components/vue-ui-table-heatmap.js +1 -1
  69. package/dist/components/vue-ui-table-sparkline.js +1 -1
  70. package/dist/components/vue-ui-table.js +1 -1
  71. package/dist/components/vue-ui-thermometer.js +1 -1
  72. package/dist/components/vue-ui-timer.js +1 -1
  73. package/dist/components/vue-ui-tiremarks.js +1 -1
  74. package/dist/components/vue-ui-treemap.js +1 -1
  75. package/dist/components/vue-ui-vertical-bar.js +1 -1
  76. package/dist/components/vue-ui-waffle.js +1 -1
  77. package/dist/components/vue-ui-wheel.js +1 -1
  78. package/dist/components/vue-ui-word-cloud.js +1 -1
  79. package/dist/components/vue-ui-world.js +1 -1
  80. package/dist/components/vue-ui-xy-canvas.js +1 -1
  81. package/dist/components/vue-ui-xy.js +1 -1
  82. package/dist/{dom-to-png-xQ7LXrxp.js → dom-to-png--BNgrTZV.js} +1 -1
  83. package/dist/{img-CFY3JivG.js → img-BecE5qXd.js} +1 -1
  84. package/dist/{lib-BcBZIm6u.js → lib-C_mNZmhD.js} +311 -303
  85. package/dist/{pdf-O34i6EQX.js → pdf-DuG5j3Wv.js} +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/types/vue-data-ui.d.ts +8 -0
  88. package/dist/{useAutoSizeLabelsInsideViewbox-BHq4FD8x.js → useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js} +1 -1
  89. package/dist/{useNestedProp-CtheCta-.js → useNestedProp-dJX_8vvZ.js} +10 -2
  90. package/dist/{usePrinter-C1GiglOH.js → usePrinter-DTzqpYKF.js} +2 -2
  91. package/dist/{vue-data-ui-OfJx8jSP.js → vue-data-ui-BMm1cH_7.js} +64 -64
  92. package/dist/vue-data-ui.js +72 -72
  93. package/dist/{vue-ui-3d-bar-Bp-sqsyU.js → vue-ui-3d-bar-KbXMgsD4.js} +6 -6
  94. package/dist/{vue-ui-accordion-DXdd_qAk.js → vue-ui-accordion-UpZ765hd.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-CUVtajBe.js → vue-ui-age-pyramid-CAnvJqVu.js} +6 -6
  96. package/dist/{vue-ui-annotator-D5GKadj6.js → vue-ui-annotator--8upDtTs.js} +7 -7
  97. package/dist/{vue-ui-bullet-rQoLiK2b.js → vue-ui-bullet-vEsqg-Wk.js} +7 -7
  98. package/dist/{vue-ui-candlestick-D7eCxbQ8.js → vue-ui-candlestick-C2q8lhDv.js} +7 -7
  99. package/dist/{vue-ui-carousel-table-Bu8HSJRc.js → vue-ui-carousel-table-7ZDbJPdA.js} +4 -4
  100. package/dist/{vue-ui-chestnut-BqyduBAg.js → vue-ui-chestnut-jHiG8RhC.js} +5 -5
  101. package/dist/{vue-ui-chord-VTRyVBx4.js → vue-ui-chord-Br7aGEQ3.js} +8 -8
  102. package/dist/{vue-ui-circle-pack-DIXUixuK.js → vue-ui-circle-pack-CkDTsG3R.js} +6 -6
  103. package/dist/{vue-ui-cursor-TFVxgVEa.js → vue-ui-cursor-BqWDtj2I.js} +2 -2
  104. package/dist/{vue-ui-dashboard-DeFPygcZ.js → vue-ui-dashboard-r8kE5hha.js} +67 -67
  105. package/dist/{vue-ui-digits-B6cIiy1Z.js → vue-ui-digits-Cdn6EcYe.js} +2 -2
  106. package/dist/{vue-ui-donut-B3kaTm1I.js → vue-ui-donut-SyV7u3Fk.js} +8 -8
  107. package/dist/{vue-ui-donut-evolution-CGxyHap0.js → vue-ui-donut-evolution-DiUVj1kD.js} +8 -8
  108. package/dist/{vue-ui-dumbbell-BpHU2gPm.js → vue-ui-dumbbell-Dy0L7H8E.js} +7 -7
  109. package/dist/{vue-ui-flow-B1jwV-to.js → vue-ui-flow-_6RQ-gmk.js} +7 -7
  110. package/dist/{vue-ui-funnel-C07ghZCo.js → vue-ui-funnel-CI6hxhV_.js} +6 -6
  111. package/dist/{vue-ui-galaxy-C2aCa9u0.js → vue-ui-galaxy-EzuozsBr.js} +7 -7
  112. package/dist/{vue-ui-gauge-BymG1mO4.js → vue-ui-gauge-fB0yh37Y.js} +7 -7
  113. package/dist/{vue-ui-gizmo-BjPbDZKf.js → vue-ui-gizmo-Bdgj1nqN.js} +3 -3
  114. package/dist/{vue-ui-heatmap-D2udHyOO.js → vue-ui-heatmap-BmVWhxg-.js} +7 -7
  115. package/dist/{vue-ui-history-plot-C1v5py9J.js → vue-ui-history-plot-C2glM-Ch.js} +7 -7
  116. package/dist/{vue-ui-kpi-4fToBGEE.js → vue-ui-kpi-CVpJH51G.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-o6xsgflK.js → vue-ui-mini-loader-b4D0tPsD.js} +2 -2
  118. package/dist/{vue-ui-molecule-QJY9Jg--.js → vue-ui-molecule-D4SUfwjo.js} +5 -5
  119. package/dist/{vue-ui-mood-radar-CYz7t7cO.js → vue-ui-mood-radar-CJt19tCD.js} +7 -7
  120. package/dist/{vue-ui-nested-donuts-Cs_KVggH.js → vue-ui-nested-donuts-vpUAKVVs.js} +7 -7
  121. package/dist/{vue-ui-onion-DI__t0Yo.js → vue-ui-onion-DhgSgY5m.js} +8 -8
  122. package/dist/{vue-ui-parallel-coordinate-plot-BUFBIY0H.js → vue-ui-parallel-coordinate-plot-B6SLr7sn.js} +8 -8
  123. package/dist/{vue-ui-quadrant-q27Crjhv.js → vue-ui-quadrant-Ctik4Ah_.js} +8 -8
  124. package/dist/{vue-ui-quick-chart-vA-5-zU_.js → vue-ui-quick-chart-BM5eEuC7.js} +6 -6
  125. package/dist/{vue-ui-radar-v6sFZlta.js → vue-ui-radar-D8SgJ4tK.js} +8 -8
  126. package/dist/{vue-ui-rating-B1TGv80Y.js → vue-ui-rating-CvJlfRvs.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-C_7j_HC1.js → vue-ui-relation-circle-s1sWs_WI.js} +7 -7
  128. package/dist/{vue-ui-ridgeline-BaDr8YsQ.js → vue-ui-ridgeline-DjAxHRqR.js} +8 -8
  129. package/dist/{vue-ui-rings-BcsyGpD-.js → vue-ui-rings-vO1AGupU.js} +8 -8
  130. package/dist/{vue-ui-scatter-DsvtDcRf.js → vue-ui-scatter-DN_7iGgB.js} +8 -8
  131. package/dist/{vue-ui-skeleton-DJka_Bjy.js → vue-ui-skeleton-DGSWEtd8.js} +3 -3
  132. package/dist/{vue-ui-smiley-D-W7GeoN.js → vue-ui-smiley-D3k4b6h1.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-ufRxrEgv.js → vue-ui-spark-trend-D9ZTHsa9.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-C0hU8raA.js → vue-ui-sparkbar-DZpkkEtB.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-1bi-EEqb.js → vue-ui-sparkgauge-DGtUfL_p.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-H1BSDVyx.js → vue-ui-sparkhistogram-BFTP4gTI.js} +4 -4
  137. package/dist/{vue-ui-sparkline-DElVjWGk.js → vue-ui-sparkline-CU8Va2AD.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-DE3D2xTJ.js → vue-ui-sparkstackbar-UVkUOUYB.js} +3 -3
  139. package/dist/{vue-ui-stackbar-DVTV6JcM.js → vue-ui-stackbar-ksABSPMl.js} +9 -9
  140. package/dist/{vue-ui-strip-plot-0RudVLPB.js → vue-ui-strip-plot-CtnEtJKi.js} +7 -7
  141. package/dist/{vue-ui-table-jbkT9pG2.js → vue-ui-table-D_r5Yi-t.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-BQgeM3lZ.js → vue-ui-table-heatmap-zbRs5HKh.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Elk05A1j.js → vue-ui-table-sparkline-g3zovGbg.js} +4 -4
  144. package/dist/{vue-ui-thermometer-6QNHvlxi.js → vue-ui-thermometer-ChGRvASK.js} +7 -7
  145. package/dist/{vue-ui-timer-BvHuXOu1.js → vue-ui-timer-ClBUDPDN.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-CCfLSw7X.js → vue-ui-tiremarks-Drrj3Zrx.js} +6 -6
  147. package/dist/vue-ui-treemap-B9iT80T5.js +1287 -0
  148. package/dist/{vue-ui-vertical-bar-C8UcI92_.js → vue-ui-vertical-bar-DtNL4lAc.js} +9 -9
  149. package/dist/{vue-ui-waffle-CMO0x41z.js → vue-ui-waffle-DtotUBJA.js} +8 -8
  150. package/dist/{vue-ui-wheel-CB2KRY13.js → vue-ui-wheel-D6F9i5SF.js} +6 -6
  151. package/dist/{vue-ui-word-cloud-BDP2WP1p.js → vue-ui-word-cloud-B0T-B3Oa.js} +6 -6
  152. package/dist/{vue-ui-world-CobFs5Vm.js → vue-ui-world-Bwvp67h5.js} +6 -6
  153. package/dist/{vue-ui-xy-DmWHarZg.js → vue-ui-xy-BDCmrr2a.js} +9 -9
  154. package/dist/{vue-ui-xy-canvas-BwhZD5_d.js → vue-ui-xy-canvas-Dm-LZ-LP.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-ui-treemap-DNimXWh4.js +0 -1131
@@ -0,0 +1,1287 @@
1
+ import { defineAsyncComponent as ge, useSlots as Hl, onMounted as Qt, computed as y, ref as b, shallowRef as J, toRefs as El, watch as Ue, onBeforeUnmount as Wl, createElementBlock as w, openBlock as h, unref as p, normalizeStyle as ue, normalizeClass as yt, createBlock as re, createCommentVNode as M, createElementVNode as R, createVNode as Ge, createSlots as el, withCtx as A, renderSlot as S, normalizeProps as me, guardReactiveProps as ye, Fragment as Xe, renderList as bt, withKeys as tl, withModifiers as wt, mergeProps as kt, createTextVNode as qe, toDisplayString as Ye, Teleport as Ul, resolveDynamicComponent as Gl, nextTick as Xl } from "vue";
2
+ import { c as je, t as ql, b as Yl, p as L, e as jl, o as ll, f as Zl, h as Le, a as Ze, d as De, X as Ct, S as ol, J as al, G as nl, P as Kl, Q as Jl, H as Ql, ap as $t, aq as Ke } from "./lib-C_mNZmhD.js";
3
+ import { t as eo, u as to } from "./useResponsive-DfdjqQps.js";
4
+ import { u as lo, a as sl } from "./useNestedProp-dJX_8vvZ.js";
5
+ import { u as oo, B as ao } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as no } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as so } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as uo } from "./useChartAccessibility-9icAAmYg.js";
9
+ import ro from "./img-BecE5qXd.js";
10
+ import io from "./Title-BWp-37K_.js";
11
+ import { t as co } from "./themes-AUNCOb2G.js";
12
+ import vo from "./Legend-G6GMcdAc.js";
13
+ import ul from "./BaseIcon-BmMbm4d0.js";
14
+ import { u as ho } from "./useSvgExport-DrjCWun4.js";
15
+ import { _ as fo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ function rl(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 m = 0; m < u; m += 1) {
23
+ const g = n[m].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 il(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 po(n, i, u) {
42
+ if (n.length === 0)
43
+ return !0;
44
+ {
45
+ const c = n.concat(i), r = rl(
46
+ n,
47
+ u
48
+ ), f = rl(c, u);
49
+ return r >= f;
50
+ }
51
+ }
52
+ function go(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 d = 0; d < f; d += 1)
57
+ i.push(r[d]);
58
+ }
59
+ return i;
60
+ }
61
+ function mo(n, i) {
62
+ const u = {
63
+ ...i,
64
+ children: n
65
+ };
66
+ return vl(u);
67
+ }
68
+ function yo(n) {
69
+ return (n.x1 - n.x0) * (n.y1 - n.y0);
70
+ }
71
+ function cl(n, i) {
72
+ const { width: u, height: c, xOffset: r, yOffset: f } = xt(i), d = n.length, m = n.map((x) => x.normalizedValue || 0).reduce((x, D) => x + D, 0), g = m / c, Q = m / u;
73
+ let E = r, $ = f;
74
+ const _ = [];
75
+ if (u >= c) {
76
+ for (let x = 0; x < d; x += 1) {
77
+ const D = n[x], q = $ + D.normalizedValue / g, I = {
78
+ x0: E,
79
+ y0: $,
80
+ x1: E + g,
81
+ y1: q
82
+ }, P = Object.assign({}, D, I);
83
+ $ = q, _.push(P);
84
+ }
85
+ return _;
86
+ } else {
87
+ for (let x = 0; x < d; x += 1) {
88
+ const D = n[x], q = E + D.normalizedValue / Q, I = {
89
+ x0: E,
90
+ y0: $,
91
+ x1: q,
92
+ y1: $ + Q
93
+ }, P = Object.assign({}, D, I);
94
+ E = q, _.push(P);
95
+ }
96
+ return _;
97
+ }
98
+ }
99
+ function bo(n) {
100
+ const i = xt(n), u = i.width, c = i.height;
101
+ return Math.min(u, c);
102
+ }
103
+ function wo(n, i) {
104
+ const u = n.length, c = n.map((g) => g.value ?? 0).reduce((g, Q) => g + Q, 0), r = i / c, f = [];
105
+ let d, m;
106
+ for (let g = 0; g < u; g += 1)
107
+ m = n[g], d = Object.assign({}, m, {
108
+ normalizedValue: m.value * (r || 0)
109
+ }), f.push(d);
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 ko(n, i, u, c) {
122
+ let r = n, f = i, d = u, m = c;
123
+ for (; ; ) {
124
+ const g = r.length;
125
+ if (g === 0) {
126
+ const _ = cl(f, d);
127
+ return m.concat(_);
128
+ }
129
+ const Q = bo(d), E = r[0], $ = r.slice(1, g);
130
+ if (po(f, E, Q)) {
131
+ const _ = f.concat(E);
132
+ r = $, f = _, d = d, m = m;
133
+ } else {
134
+ const _ = f.length;
135
+ let x = 0;
136
+ for (let P = 0; P < _; P += 1)
137
+ x += f[P].normalizedValue;
138
+ const D = Co(d, x), q = cl(f, d), I = m.concat(q);
139
+ r = r, f = [], d = D, m = I;
140
+ }
141
+ }
142
+ }
143
+ function vl(n) {
144
+ if (typeof n.children > "u" || !n.children.length)
145
+ return [n];
146
+ {
147
+ const i = wo(
148
+ n.children,
149
+ yo(n)
150
+ ), u = ko(i, [], n, []), c = u.length, r = [];
151
+ for (let d = 0; d < c; d += 1)
152
+ r.push(vl(u[d]));
153
+ return go(r);
154
+ }
155
+ }
156
+ function Co(n, i) {
157
+ const { width: u, height: c, xOffset: r, yOffset: f } = xt(n);
158
+ if (u >= c) {
159
+ const d = i / c, m = u - d, g = {
160
+ xOffset: r + d,
161
+ yOffset: f,
162
+ width: m,
163
+ height: c
164
+ };
165
+ return il(g);
166
+ } else {
167
+ const d = i / u, m = c - d, g = {
168
+ xOffset: r,
169
+ yOffset: f + d,
170
+ width: u,
171
+ height: m
172
+ };
173
+ return il(g);
174
+ }
175
+ }
176
+ const $o = ["id"], xo = ["id"], To = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], So = { class: "vue-ui-treemap-crumb-unit" }, _o = { class: "vue-ui-treemap-crumb-unit-label" }, Oo = {
177
+ key: 0,
178
+ style: { width: "24px", display: "flex", "align-items": "center" }
179
+ }, Ao = {
180
+ key: 0,
181
+ class: "vue-ui-treemap-crumb-unit-arrow"
182
+ }, Fo = ["xmlns", "viewBox"], Mo = { key: 0 }, Io = ["id"], No = ["stop-color"], Lo = ["stop-color"], Do = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], zo = ["innerHTML"], Ro = ["x", "y", "height", "width"], Po = {
183
+ key: 5,
184
+ class: "vue-data-ui-watermark"
185
+ }, Bo = ["id"], Vo = ["onClick"], Ho = ["innerHTML"], Eo = {
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 = ge(() => import("./DataTable-BT7VF2ua.js")), r = ge(() => import("./PenAndPaper-DSvu9dwa.js")), f = ge(() => import("./vue-ui-accordion-UpZ765hd.js")), d = ge(() => import("./Tooltip-68Yi_FFl.js")), m = ge(() => import("./UserOptions-1OZ3jcm6.js")), g = ge(() => import("./PackageVersion-C-wnwkC4.js")), Q = ge(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_treemap: E } = lo(), $ = n, _ = u, x = Hl();
204
+ Qt(() => {
205
+ x["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
206
+ });
207
+ const D = y(() => !!$.dataset && $.dataset.length), q = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), I = b(je()), P = b(!1), Je = b(""), ie = b(!1), Tt = b(0), W = b([]), U = J(null), St = J(null), _t = J(null), Ot = J(null), At = J(null), Ft = b(0), Qe = b(0), et = b(0), F = b([]), tt = b(null), Mt = b(!1), Ae = b(null), lt = b(null), t = b(st()), { loading: be, FINAL_DATASET: ot, manualLoading: dl } = oo({
208
+ ...El($),
209
+ FINAL_CONFIG: t,
210
+ prepareConfig: st,
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: ql({
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: at, setUserOptionsVisibility: It, keepUserOptionState: Nt } = so({ config: t.value }), { svgRef: nt } = uo({ config: t.value.style.chart.title });
250
+ function st() {
251
+ const e = sl({
252
+ userConfig: $.config,
253
+ defaultConfig: E
254
+ });
255
+ return e.theme ? {
256
+ ...sl({
257
+ userConfig: co.vue_ui_treemap[e.theme] || $.config,
258
+ defaultConfig: e
259
+ }),
260
+ customPalette: Yl[e.theme] || L
261
+ } : e;
262
+ }
263
+ Ue(() => $.config, (e) => {
264
+ be.value || (t.value = st()), at.value = !t.value.userOptions.showOnChartHover, Ft.value += 1, Qe.value += 1, et.value += 1, z.value.showTable = t.value.table.show, z.value.showTooltip = t.value.style.chart.tooltip.show;
265
+ }, { deep: !0 });
266
+ const { isPrinting: Lt, isImaging: Dt, generatePdf: zt, generateImage: Rt } = no({
267
+ elementId: `treemap_${I.value}`,
268
+ fileName: t.value.style.chart.title.text || "vue-ui-treemap",
269
+ options: t.value.userOptions.print
270
+ }), hl = y(() => t.value.userOptions.show && !t.value.style.chart.title.text), ze = y(() => jl(t.value.customPalette)), z = b({
271
+ showTable: t.value.table.show,
272
+ showTooltip: t.value.style.chart.tooltip.show
273
+ });
274
+ Ue(t, () => {
275
+ z.value = {
276
+ showTable: t.value.table.show,
277
+ showTooltip: t.value.style.chart.tooltip.show
278
+ };
279
+ }, { immediate: !0 });
280
+ const Fe = b({
281
+ height: t.value.style.chart.height,
282
+ width: t.value.style.chart.width
283
+ });
284
+ function fl(e) {
285
+ const o = U.value, l = Fe.value.height;
286
+ if (!o || !l) return e;
287
+ const a = o.getBoundingClientRect();
288
+ return e * (l / a.height);
289
+ }
290
+ function pl() {
291
+ if (!tt.value || Y.value.length <= 1) return 0;
292
+ const e = tt.value, o = getComputedStyle(e), l = e.offsetHeight + parseFloat(o.marginTop || "0") + parseFloat(o.marginBottom || "0") + parseFloat(o.paddingTop || "0") + parseFloat(o.paddingBottom || "0");
293
+ return fl(l);
294
+ }
295
+ const B = y(() => {
296
+ const e = t.value.style.chart.padding, o = Fe.value.width, l = Fe.value.height, a = pl(), s = e.left, v = o - e.right, k = e.top, N = l - e.bottom - a;
297
+ return {
298
+ left: s,
299
+ top: k,
300
+ right: v,
301
+ bottom: N,
302
+ width: v - s,
303
+ height: Math.max(0, N - k),
304
+ vbWidth: o,
305
+ vbHeight: l - a,
306
+ offsetY: a
307
+ };
308
+ }), V = b(ot.value), ee = b(V.value), Pt = J(/* @__PURE__ */ new Map());
309
+ function Bt(e) {
310
+ Array.isArray(e) && e.forEach((o, l) => {
311
+ o.id || (o.id = je());
312
+ let a = Le(o.color) || Pt.value.get(o.id) || ze.value[l] || L[l] || L[l % L.length];
313
+ a = Le(a), Pt.value.set(o.id, a), o.color = a, Vt(o, a);
314
+ });
315
+ }
316
+ function Vt(e, o) {
317
+ Array.isArray(e.children) && e.children.forEach((l) => {
318
+ l.id || (l.id = je()), l.parentId = e.id, l.color = o, Vt(l, o);
319
+ });
320
+ }
321
+ function gl() {
322
+ if (!F.value.length)
323
+ ee.value = V.value.slice();
324
+ else {
325
+ const e = F.value[F.value.length - 1], o = le(e);
326
+ ee.value = o?.children?.slice() || [];
327
+ }
328
+ }
329
+ Ue(
330
+ () => ot.value,
331
+ () => {
332
+ V.value = ot.value, Bt(V.value), gl(), et.value += 1, Qe.value += 1;
333
+ },
334
+ { deep: !0, immediate: !0, flush: "post" }
335
+ );
336
+ const te = J(null), we = J(null);
337
+ Qt(() => {
338
+ Mt.value = !0, yl();
339
+ });
340
+ const ml = y(() => t.value.debug);
341
+ function yl() {
342
+ if (ll($.dataset) && Zl({
343
+ componentName: "VueUiTreemap",
344
+ type: "dataset",
345
+ debug: ml.value
346
+ }), Bt(V.value), ll($.dataset) || (dl.value = t.value.loading), t.value.responsive) {
347
+ const e = eo(() => {
348
+ const { width: o, height: l } = to({
349
+ chart: U.value,
350
+ title: t.value.style.chart.title.text ? St.value : null,
351
+ legend: t.value.style.chart.legend.show ? _t.value : null,
352
+ source: Ot.value,
353
+ noTitle: At.value
354
+ });
355
+ requestAnimationFrame(() => {
356
+ Fe.value.width = o, Fe.value.height = l - 12;
357
+ });
358
+ });
359
+ te.value && (we.value && te.value.unobserve(we.value), te.value.disconnect()), te.value = new ResizeObserver(e), we.value = U.value.parentNode, te.value.observe(we.value);
360
+ }
361
+ }
362
+ Wl(() => {
363
+ te.value && (we.value && te.value.unobserve(we.value), te.value.disconnect());
364
+ });
365
+ const Me = y(() => ee.value.map((e, o) => ({
366
+ ...e,
367
+ color: Le(e.color) || ze.value[o] || L[o] || L[o % L.length]
368
+ })).filter((e) => !W.value.includes(e.id))), ke = y(() => V.value.filter((e) => !W.value.includes(e.id)).map((e) => e.value || 0).reduce((e, o) => e + o, 0)), ut = y({
369
+ get() {
370
+ let e = [...Me.value];
371
+ return t.value.style.chart.layout.sorted && (e = [...Me.value].sort((o, l) => l.value - o.value)), e.map((o) => ({
372
+ ...o
373
+ }));
374
+ },
375
+ set(e) {
376
+ return e;
377
+ }
378
+ });
379
+ function Ht(e, o) {
380
+ return e.value / o;
381
+ }
382
+ function bl(e, o, l) {
383
+ const a = t.value.style.chart.layout.rects.colorRatio - Ht(o, l);
384
+ return ol(e, a < 0 ? 0 : a);
385
+ }
386
+ function Et(e, o, l, a) {
387
+ return e.map((s, v) => {
388
+ const k = bl(Le(o) || ze.value[v] || L[v] || L[v % L.length], s, a), N = Ht(s, a);
389
+ return {
390
+ ...s,
391
+ color: k,
392
+ proportion: N,
393
+ parentName: l,
394
+ children: s.children ? Et(s.children, k, s.name, a) : void 0
395
+ };
396
+ });
397
+ }
398
+ const Ie = y(() => {
399
+ const e = ut.value.map((o) => Number(o.value) || 0).reduce((o, l) => o + l, 0) || 1;
400
+ return mo(
401
+ ut.value.map((o) => {
402
+ const l = o.children ? o.children.reduce((a, s) => a + (Number(s.value) || 0), 0) : o.value;
403
+ return {
404
+ value: o.value,
405
+ id: o.id || je(),
406
+ proportion: (Number(o.value) || 0) / e,
407
+ children: o.children ? Et(
408
+ o.children.sort((a, s) => (s.value || 0) - (a.value || 0)),
409
+ o.color,
410
+ o.name,
411
+ l || 1
412
+ ) : void 0,
413
+ color: o.color,
414
+ name: o.name
415
+ };
416
+ }),
417
+ {
418
+ x0: B.value.left,
419
+ y0: B.value.top,
420
+ x1: B.value.left + B.value.width,
421
+ y1: B.value.top + B.value.height
422
+ }
423
+ );
424
+ });
425
+ function Ce({ y0: e, y1: o }) {
426
+ return o - e <= 0 ? 1e-4 : o - e;
427
+ }
428
+ function $e({ x0: e, x1: o }) {
429
+ return o - e <= 0 ? 1e-4 : o - e;
430
+ }
431
+ function xe(e) {
432
+ const o = t.value.style.chart.layout.labels, l = o.fontSize, a = o.minFontSize, s = o.fontSize * 2, v = 0.5, k = 0.6, N = 1, ce = 0.9;
433
+ let oe = e.proportion;
434
+ if (!(typeof oe == "number" && isFinite(oe))) {
435
+ const Ee = Math.max(1e-6, $e(e) * Ce(e)), ve = Math.max(1e-6, B.value.width * B.value.height);
436
+ oe = Ee / ve;
437
+ }
438
+ const He = Math.pow(Math.min(1, Math.max(0, oe)), v), ae = k + (N - k) * He;
439
+ let ne = l * ae;
440
+ const dt = Math.max(1e-4, Math.min($e(e), Ce(e)));
441
+ return ne = Math.min(ne, dt * ce), ne = Math.max(a, Math.min(s, ne)), ne;
442
+ }
443
+ function Wt(e) {
444
+ ie.value = e, Tt.value += 1;
445
+ }
446
+ const Te = y(() => ({
447
+ startX: 0,
448
+ startY: 0,
449
+ width: B.value.vbWidth,
450
+ height: B.value.vbHeight
451
+ }));
452
+ function le(e, o = V.value) {
453
+ for (const l of o) {
454
+ if (l.id === e)
455
+ return l;
456
+ if (l.children) {
457
+ const a = le(e, l.children);
458
+ if (a)
459
+ return a;
460
+ }
461
+ }
462
+ return null;
463
+ }
464
+ const Se = y(() => F.value.length > 0);
465
+ function Re(e, o) {
466
+ if (!e) {
467
+ ee.value = V.value.slice(), _("selectDatapoint", void 0), F.value = [];
468
+ return;
469
+ }
470
+ t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: o });
471
+ const l = le(e.id);
472
+ if (l && l.children?.length)
473
+ F.value.push(l.id), ee.value = l.children.slice(), _("selectDatapoint", e);
474
+ else if (e.parentId) {
475
+ F.value.push(e.parentId);
476
+ const a = le(e.parentId);
477
+ ee.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 = le(a);
483
+ ee.value = s.children.slice();
484
+ } else
485
+ ee.value = V.value.slice(), F.value = [], _("selectDatapoint", void 0);
486
+ }
487
+ }
488
+ function wl(e) {
489
+ return !!(le(e.id)?.children?.length || e.parentId);
490
+ }
491
+ const Y = y(() => {
492
+ const e = [
493
+ { id: null, label: "All" }
494
+ ];
495
+ if (F.value.length > 0) {
496
+ let o = le(F.value[F.value.length - 1]);
497
+ const l = [];
498
+ for (; o; )
499
+ l.unshift(o), o = o.parentId ? le(o.parentId) : null;
500
+ for (const a of l)
501
+ e.push({
502
+ id: a.id,
503
+ label: a.name,
504
+ node: a
505
+ });
506
+ }
507
+ return e;
508
+ }), G = J(null), rt = y(() => V.value.map((e, o) => ({
509
+ ...e,
510
+ color: Le(e.color) || ze.value[o] || L[o] || L[o % L.length],
511
+ shape: "square"
512
+ })).sort((e, o) => o.value - e.value).map((e, o) => {
513
+ const l = e.value / V.value.map((a) => a.value).reduce((a, s) => a + s, 0);
514
+ return {
515
+ ...e,
516
+ proportion: l,
517
+ opacity: W.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 ? Ze(
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 ? W.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
+ })), kl = y(() => ({
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 Ut(e) {
539
+ G.value = null, W.value.includes(e.id) ? W.value = W.value.filter((o) => o !== e.id) : W.value.length < $.dataset.length - 1 && W.value.push(e.id), _("selectLegend", ut.value);
540
+ }
541
+ function Cl({ datapoint: e, seriesIndex: o }) {
542
+ G.value = null, P.value = !1, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: o });
543
+ }
544
+ const it = b(null);
545
+ function $l({ datapoint: e, seriesIndex: o }) {
546
+ t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: o }), G.value = e, it.value = { datapoint: e, seriesIndex: o, config: t.value, series: Me.value };
547
+ const l = t.value.style.chart.tooltip.customFormat;
548
+ if (nl(l) && Ql(() => l({
549
+ seriesIndex: o,
550
+ datapoint: e,
551
+ series: Me.value,
552
+ config: t.value
553
+ })))
554
+ Je.value = l({
555
+ seriesIndex: o,
556
+ datapoint: e,
557
+ series: Me.value,
558
+ config: t.value
559
+ });
560
+ else {
561
+ let a = "";
562
+ 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>${Ze(
563
+ t.value.style.chart.layout.labels.formatter,
564
+ e.value,
565
+ De({
566
+ p: t.value.style.chart.layout.labels.prefix,
567
+ v: e.value,
568
+ s: t.value.style.chart.layout.labels.suffix,
569
+ r: t.value.style.chart.tooltip.roundingValue
570
+ }),
571
+ { datapoint: e, seriesIndex: o }
572
+ )}</b>`, Je.value = `<div>${a}</div>`;
573
+ }
574
+ P.value = !0;
575
+ }
576
+ const j = y(() => {
577
+ const e = Ie.value.map((l) => ({
578
+ name: l.name,
579
+ color: l.color
580
+ })), o = Ie.value.map((l) => l.value);
581
+ return { head: e, body: o };
582
+ });
583
+ function ct(e = null) {
584
+ Xl(() => {
585
+ const o = j.value.head.map((s, v) => [[
586
+ s.name
587
+ ], [j.value.body[v]], [isNaN(j.value.body[v] / ke.value) ? "-" : j.value.body[v] / ke.value * 100]]), l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Kl(l);
588
+ e ? e(a) : Jl({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
589
+ });
590
+ }
591
+ const Pe = y(() => {
592
+ const e = [
593
+ t.value.table.columnNames.series,
594
+ t.value.table.columnNames.value,
595
+ t.value.table.columnNames.percentage
596
+ ], o = j.value.head.map((s, v) => {
597
+ const k = Ze(
598
+ t.value.style.chart.layout.labels.formatter,
599
+ j.value.body[v],
600
+ De({
601
+ p: t.value.style.chart.layout.labels.prefix,
602
+ v: j.value.body[v],
603
+ s: t.value.style.chart.layout.labels.suffix,
604
+ r: t.value.table.td.roundingValue
605
+ })
606
+ );
607
+ return [
608
+ {
609
+ color: s.color,
610
+ name: s.name,
611
+ shape: "square"
612
+ },
613
+ k,
614
+ isNaN(j.value.body[v] / ke.value) ? "-" : De({
615
+ v: j.value.body[v] / ke.value * 100,
616
+ s: "%",
617
+ r: t.value.table.td.roundingPercentage
618
+ })
619
+ ];
620
+ }), l = {
621
+ th: {
622
+ backgroundColor: t.value.table.th.backgroundColor,
623
+ color: t.value.table.th.color,
624
+ outline: t.value.table.th.outline
625
+ },
626
+ td: {
627
+ backgroundColor: t.value.table.td.backgroundColor,
628
+ color: t.value.table.td.color,
629
+ outline: t.value.table.td.outline
630
+ },
631
+ breakpoint: t.value.table.responsiveBreakpoint
632
+ };
633
+ return {
634
+ colNames: [
635
+ t.value.table.columnNames.series,
636
+ t.value.table.columnNames.value
637
+ ],
638
+ head: e,
639
+ body: o,
640
+ config: l
641
+ };
642
+ });
643
+ function xl() {
644
+ return Ie.value;
645
+ }
646
+ function Gt() {
647
+ z.value.showTable = !z.value.showTable;
648
+ }
649
+ function Xt() {
650
+ z.value.showTooltip = !z.value.showTooltip;
651
+ }
652
+ const Be = b(!1);
653
+ function vt() {
654
+ Be.value = !Be.value;
655
+ }
656
+ const Ve = b(null);
657
+ function qt(e) {
658
+ Ve.value = e;
659
+ }
660
+ function Yt() {
661
+ Ve.value = null;
662
+ }
663
+ async function Tl({ scale: e = 2 } = {}) {
664
+ if (!U.value) return;
665
+ const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: s, base64: v } = await ro({ domElement: U.value, base64: !0, img: !0, scale: e });
666
+ return {
667
+ imageUri: s,
668
+ base64: v,
669
+ title: t.value.style.chart.title.text,
670
+ width: o,
671
+ height: l,
672
+ aspectRatio: a
673
+ };
674
+ }
675
+ const Ne = y(() => {
676
+ const e = t.value.table.useDialog && !t.value.table.show, o = z.value.showTable;
677
+ return {
678
+ component: e ? Q : f,
679
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
680
+ props: e ? {
681
+ backgroundColor: t.value.table.th.backgroundColor,
682
+ color: t.value.table.th.color,
683
+ headerColor: t.value.table.th.color,
684
+ headerBg: t.value.table.th.backgroundColor,
685
+ isFullscreen: ie.value,
686
+ fullscreenParent: U.value,
687
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
688
+ } : {
689
+ hideDetails: !0,
690
+ config: {
691
+ open: o,
692
+ maxHeight: 1e4,
693
+ body: {
694
+ backgroundColor: t.value.style.chart.backgroundColor,
695
+ color: t.value.style.chart.color
696
+ },
697
+ head: {
698
+ backgroundColor: t.value.style.chart.backgroundColor,
699
+ color: t.value.style.chart.color
700
+ }
701
+ }
702
+ }
703
+ };
704
+ });
705
+ Ue(() => z.value.showTable, (e) => {
706
+ t.value.table.show || (e && t.value.table.useDialog && Ae.value ? Ae.value.open() : "close" in Ae.value && Ae.value.close());
707
+ });
708
+ function jt() {
709
+ z.value.showTable = !1, lt.value && lt.value.setTableIconState(!1);
710
+ }
711
+ const Sl = y(() => rt.value.map((e) => ({
712
+ ...e,
713
+ name: e.display
714
+ }))), _l = y(() => t.value.style.chart.backgroundColor), Ol = y(() => t.value.style.chart.legend), Al = y(() => t.value.style.chart.title), { exportSvg: Fl, getSvg: Ml } = ho({
715
+ svg: nt,
716
+ title: Al,
717
+ legend: Ol,
718
+ legendItems: Sl,
719
+ backgroundColor: _l
720
+ });
721
+ async function Zt({ isCb: e }) {
722
+ if (e) {
723
+ const { blob: o, url: l, text: a, dataUrl: s } = await Ml();
724
+ t.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: s });
725
+ } else
726
+ Fl();
727
+ }
728
+ function Il({ rect: e, seriesIndex: o }) {
729
+ const l = t.value.style.chart.layout.labels.name.show, a = t.value.style.chart.layout.labels.value.show;
730
+ if (!l && !a) return "";
731
+ const s = Math.max(2, xe(e) / 3), v = Math.max(8, xe(e)), k = v * 1.2, N = Math.max(0, $e(e) - s * 2), ce = Math.max(0, Ce(e) - s * 2);
732
+ if (N <= 2 || ce <= v * 0.8) return "";
733
+ const oe = t.value.style.fontFamily, He = t.value.style.chart.layout.labels.name.bold ? "600" : "400", ae = t.value.style.chart.layout.labels.value.bold ? "600" : "400", ne = al(e.color), dt = l ? String(e.name ?? "") : "", Ee = a ? Ze(
734
+ t.value.style.chart.layout.labels.formatter,
735
+ e.value,
736
+ De({
737
+ p: t.value.style.chart.layout.labels.prefix,
738
+ v: e.value,
739
+ s: t.value.style.chart.layout.labels.suffix,
740
+ r: t.value.style.chart.layout.labels.rounding
741
+ }),
742
+ { datapoint: e, seriesIndex: o }
743
+ ) : "";
744
+ function ve(he, fe = v, Oe = "400") {
745
+ const H = document.createElementNS(Ct, "svg");
746
+ H.setAttribute("width", "0"), H.setAttribute("height", "0"), H.style.position = "absolute", H.style.visibility = "hidden", H.style.pointerEvents = "none";
747
+ const X = document.createElementNS(Ct, "text");
748
+ X.setAttribute("font-size", String(fe)), X.setAttribute("font-family", oe), X.setAttribute("font-weight", String(Oe)), X.textContent = he || "", H.appendChild(X), document.body.appendChild(H);
749
+ const Jt = X.getComputedTextLength();
750
+ return document.body.removeChild(H), Jt;
751
+ }
752
+ function Ll(he, fe, Oe, H, X, Jt) {
753
+ const Rl = String(he).split(/\s+/).filter(Boolean), O = [];
754
+ let se = "";
755
+ function pe(T) {
756
+ return ve(T, Oe, H) <= fe;
757
+ }
758
+ function Pl(T) {
759
+ if (pe(T)) return [T];
760
+ const K = [];
761
+ let C = 0;
762
+ for (; C < T.length; ) {
763
+ let pt = 1, gt = T.length - C, mt = 1;
764
+ for (; pt <= gt; ) {
765
+ const We = pt + gt >> 1, Vl = T.slice(C, C + We);
766
+ pe(Vl) ? (mt = We, pt = We + 1) : gt = We - 1;
767
+ }
768
+ K.push(T.slice(C, C + mt)), C += mt;
769
+ }
770
+ return K;
771
+ }
772
+ const Bl = Rl.flatMap((T) => Pl(T));
773
+ for (const T of Bl) {
774
+ const K = se ? se + " " + T : T;
775
+ if (pe(K))
776
+ se = K;
777
+ else if (se && O.push(se), se = T, O.length === X - 1) break;
778
+ }
779
+ if (se && O.length < X && O.push(se), O.length === X) {
780
+ const T = O[O.length - 1];
781
+ if (!pe(T)) {
782
+ let C = T;
783
+ for (; C.length && !pe(C); ) C = C.slice(0, -1);
784
+ O[O.length - 1] = C;
785
+ }
786
+ let K = O[O.length - 1] + "…";
787
+ if (!pe(K)) {
788
+ let C = O[O.length - 1];
789
+ for (; C.length && !pe(C + "…"); ) C = C.slice(0, -1);
790
+ K = C + "…";
791
+ }
792
+ O[O.length - 1] = K;
793
+ }
794
+ return O;
795
+ }
796
+ const Dl = a ? 1 : 0, Kt = Math.max(0, Math.floor(ce / k) - Dl);
797
+ if (Kt <= 0) {
798
+ if (!a) return "";
799
+ const he = e.x0 + s, fe = e.y0 + s + v, Oe = $t(Ee);
800
+ return ve(Oe, v, ae) <= N ? `
801
+ <text
802
+ x="${he}"
803
+ y="${fe}"
804
+ font-size="${v}"
805
+ font-family="${Ke(oe)}"
806
+ font-weight="${ae}"
807
+ fill="${Ke(ne)}"
808
+ >
809
+ ${Oe}
810
+ </text>` : "";
811
+ }
812
+ const de = l ? Ll(dt, N, v, He, Kt) : [];
813
+ let _e = v, Z = String(Ee);
814
+ if (a) {
815
+ for (; ve(Z, _e, ae) > N && _e > Math.max(8, v * 0.75); )
816
+ _e -= 1;
817
+ if (ve(Z, _e, ae) > N) {
818
+ for (; Z.length && ve(Z + "…", _e, ae) > N; )
819
+ Z = Z.slice(0, -1);
820
+ if (Z += "…", !Z.length) return "";
821
+ }
822
+ }
823
+ if (de.length * k + (a ? k : 0) > ce) {
824
+ for (; de.length && de.length * k + (a ? k : 0) > ce; )
825
+ de.pop();
826
+ if (!de.length && (!a || k > ce)) return "";
827
+ }
828
+ const ht = e.x0 + s, zl = e.y0 + s + v, ft = [];
829
+ return l && de.forEach((he, fe) => {
830
+ ft.push(
831
+ `
832
+ <tspan
833
+ x="${ht}"
834
+ dy="${fe === 0 ? 0 : k}"
835
+ font-weight="${He}"
836
+ >
837
+ ${$t(he)}
838
+ </tspan>`
839
+ );
840
+ }), a && ft.push(
841
+ `
842
+ <tspan
843
+ x="${ht}"
844
+ dy="${de.length ? k : 0}"
845
+ font-weight="${ae}"
846
+ font-size="${_e}"
847
+ >
848
+ ${$t(Z)}
849
+ </tspan>`
850
+ ), `<text
851
+ x="${ht}"
852
+ y="${zl}"
853
+ font-size="${v}"
854
+ font-family="${Ke(oe)}"
855
+ fill="${Ke(ne)}"
856
+ paint-order="stroke"
857
+ stroke="transparent"
858
+ stroke-width="0"
859
+ style="transition: all 0.2s ease-in-out;"
860
+ >
861
+ ${ft.join("")}
862
+ </text>`;
863
+ }
864
+ function Nl(e) {
865
+ const o = t.value.style.chart.layout.rects.borderRadius, l = $e(e), a = Ce(e);
866
+ return Math.min(o, Math.min(l, a) / 6);
867
+ }
868
+ return i({
869
+ getData: xl,
870
+ getImage: Tl,
871
+ generateCsv: ct,
872
+ generateImage: Rt,
873
+ generateSvg: Zt,
874
+ generatePdf: zt,
875
+ toggleTable: Gt,
876
+ toggleTooltip: Xt,
877
+ toggleAnnotator: vt,
878
+ toggleFullscreen: Wt
879
+ }), (e, o) => (h(), w("div", {
880
+ ref_key: "treemapChart",
881
+ ref: U,
882
+ class: yt(`vue-data-ui-component vue-ui-treemap ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
883
+ style: ue(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
884
+ id: `treemap_${I.value}`,
885
+ onMouseenter: o[2] || (o[2] = () => p(It)(!0)),
886
+ onMouseleave: o[3] || (o[3] = () => p(It)(!1))
887
+ }, [
888
+ t.value.userOptions.buttons.annotator ? (h(), re(p(r), {
889
+ key: 0,
890
+ svgRef: p(nt),
891
+ backgroundColor: t.value.style.chart.backgroundColor,
892
+ color: t.value.style.chart.color,
893
+ active: Be.value,
894
+ onClose: vt
895
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : M("", !0),
896
+ hl.value ? (h(), w("div", {
897
+ key: 1,
898
+ ref_key: "noTitle",
899
+ ref: At,
900
+ class: "vue-data-ui-no-title-space",
901
+ style: "height:36px; width: 100%;background:transparent"
902
+ }, null, 512)) : M("", !0),
903
+ t.value.style.chart.title.text ? (h(), w("div", {
904
+ key: 2,
905
+ ref_key: "chartTitle",
906
+ ref: St,
907
+ style: ue(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
908
+ }, [
909
+ (h(), re(io, {
910
+ key: `title_${Ft.value}`,
911
+ config: {
912
+ title: {
913
+ cy: "treemap-div-title",
914
+ ...t.value.style.chart.title
915
+ },
916
+ subtitle: {
917
+ cy: "treemap-div-subtitle",
918
+ ...t.value.style.chart.title.subtitle
919
+ }
920
+ }
921
+ }, null, 8, ["config"]))
922
+ ], 4)) : M("", !0),
923
+ R("div", {
924
+ id: `legend-top-${I.value}`
925
+ }, null, 8, xo),
926
+ t.value.userOptions.show && D.value && (p(Nt) || p(at)) ? (h(), re(p(m), {
927
+ ref_key: "userOptionsRef",
928
+ ref: lt,
929
+ key: `user_option_${Tt.value}`,
930
+ backgroundColor: t.value.style.chart.backgroundColor,
931
+ color: t.value.style.chart.color,
932
+ isPrinting: p(Lt),
933
+ isImaging: p(Dt),
934
+ uid: I.value,
935
+ hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
936
+ hasPdf: t.value.userOptions.buttons.pdf,
937
+ hasXls: t.value.userOptions.buttons.csv,
938
+ hasImg: t.value.userOptions.buttons.img,
939
+ hasSvg: t.value.userOptions.buttons.svg,
940
+ hasTable: t.value.userOptions.buttons.table,
941
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
942
+ isFullscreen: ie.value,
943
+ isTooltip: z.value.showTooltip,
944
+ titles: { ...t.value.userOptions.buttonTitles },
945
+ chartElement: U.value,
946
+ position: t.value.userOptions.position,
947
+ hasAnnotator: t.value.userOptions.buttons.annotator,
948
+ isAnnotation: Be.value,
949
+ callbacks: t.value.userOptions.callbacks,
950
+ printScale: t.value.userOptions.print.scale,
951
+ tableDialog: t.value.table.useDialog,
952
+ onToggleFullscreen: Wt,
953
+ onGeneratePdf: p(zt),
954
+ onGenerateCsv: ct,
955
+ onGenerateImage: p(Rt),
956
+ onGenerateSvg: Zt,
957
+ onToggleTable: Gt,
958
+ onToggleTooltip: Xt,
959
+ onToggleAnnotator: vt,
960
+ style: ue({
961
+ visibility: p(Nt) ? p(at) ? "visible" : "hidden" : "visible"
962
+ })
963
+ }, el({ _: 2 }, [
964
+ e.$slots.menuIcon ? {
965
+ name: "menuIcon",
966
+ fn: A(({ isOpen: l, color: a }) => [
967
+ S(e.$slots, "menuIcon", me(ye({ isOpen: l, color: a })), void 0, !0)
968
+ ]),
969
+ key: "0"
970
+ } : void 0,
971
+ e.$slots.optionTooltip ? {
972
+ name: "optionTooltip",
973
+ fn: A(() => [
974
+ S(e.$slots, "optionTooltip", {}, void 0, !0)
975
+ ]),
976
+ key: "1"
977
+ } : void 0,
978
+ e.$slots.optionPdf ? {
979
+ name: "optionPdf",
980
+ fn: A(() => [
981
+ S(e.$slots, "optionPdf", {}, void 0, !0)
982
+ ]),
983
+ key: "2"
984
+ } : void 0,
985
+ e.$slots.optionCsv ? {
986
+ name: "optionCsv",
987
+ fn: A(() => [
988
+ S(e.$slots, "optionCsv", {}, void 0, !0)
989
+ ]),
990
+ key: "3"
991
+ } : void 0,
992
+ e.$slots.optionImg ? {
993
+ name: "optionImg",
994
+ fn: A(() => [
995
+ S(e.$slots, "optionImg", {}, void 0, !0)
996
+ ]),
997
+ key: "4"
998
+ } : void 0,
999
+ e.$slots.optionTable ? {
1000
+ name: "optionTable",
1001
+ fn: A(() => [
1002
+ S(e.$slots, "optionTable", {}, void 0, !0)
1003
+ ]),
1004
+ key: "5"
1005
+ } : void 0,
1006
+ e.$slots.optionFullscreen ? {
1007
+ name: "optionFullscreen",
1008
+ fn: A(({ toggleFullscreen: l, isFullscreen: a }) => [
1009
+ S(e.$slots, "optionFullscreen", me(ye({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
1010
+ ]),
1011
+ key: "6"
1012
+ } : void 0,
1013
+ e.$slots.optionAnnotator ? {
1014
+ name: "optionAnnotator",
1015
+ fn: A(({ toggleAnnotator: l, isAnnotator: a }) => [
1016
+ S(e.$slots, "optionAnnotator", me(ye({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
1017
+ ]),
1018
+ key: "7"
1019
+ } : void 0
1020
+ ]), 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),
1021
+ Y.value.length > 1 ? (h(), w("nav", {
1022
+ key: 4,
1023
+ class: "vue-ui-treemap-breadcrumbs",
1024
+ "data-dom-to-png-ignore": "",
1025
+ ref_key: "breadcrumbsNav",
1026
+ ref: tt
1027
+ }, [
1028
+ (h(!0), w(Xe, null, bt(Y.value, (l, a) => (h(), w("span", {
1029
+ role: "button",
1030
+ tabindex: a < Y.value.length - 1 ? 0 : void 0,
1031
+ key: l.id || "root",
1032
+ onClick: (s) => a === Y.value.length - 1 ? () => {
1033
+ } : Re(l.node),
1034
+ onKeydown: [
1035
+ tl(wt((s) => a === Y.value.length - 1 ? void 0 : Re(l.node), ["prevent"]), ["enter"]),
1036
+ tl(wt((s) => a === Y.value.length - 1 ? void 0 : Re(l.node), ["prevent"]), ["space"])
1037
+ ],
1038
+ class: "vue-ui-treemap-crumb",
1039
+ "data-last-crumb": a === Y.value.length - 1,
1040
+ style: ue({
1041
+ color: t.value.style.chart.color
1042
+ }),
1043
+ onMouseenter: (s) => qt(a),
1044
+ onMouseleave: Yt,
1045
+ onFocus: (s) => qt(a),
1046
+ onBlur: Yt
1047
+ }, [
1048
+ R("span", So, [
1049
+ R("span", _o, [
1050
+ S(e.$slots, "breadcrumb-label", kt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: Ve.value === a }), () => [
1051
+ a === 0 ? (h(), w("div", Oo, [
1052
+ Ge(ul, {
1053
+ name: Ve.value === 0 ? "homeFilled" : "home",
1054
+ stroke: t.value.style.chart.color
1055
+ }, null, 8, ["name", "stroke"])
1056
+ ])) : (h(), w(Xe, { key: 1 }, [
1057
+ qe(Ye(l.label), 1)
1058
+ ], 64))
1059
+ ], !0)
1060
+ ]),
1061
+ a < Y.value.length - 1 ? (h(), w("span", Ao, [
1062
+ S(e.$slots, "breadcrumb-arrow", {}, () => [
1063
+ o[4] || (o[4] = qe(" › ", -1))
1064
+ ], !0)
1065
+ ])) : M("", !0)
1066
+ ])
1067
+ ], 44, To))), 128))
1068
+ ], 512)) : M("", !0),
1069
+ (h(), w("svg", {
1070
+ ref_key: "svgRef",
1071
+ ref: nt,
1072
+ xmlns: p(Ct),
1073
+ class: yt({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value, "vue-data-ui-zoom-plus": !Se.value, "vue-data-ui-zoom-minus": Se.value, loading: p(be) }),
1074
+ viewBox: `${Te.value.startX} ${Te.value.startY} ${Te.value.width <= 0 ? 10 : Te.value.width} ${Te.value.height <= 0 ? 10 : Te.value.height}`,
1075
+ style: ue(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
1076
+ }, [
1077
+ Ge(p(g)),
1078
+ (h(!0), w(Xe, null, bt(Ie.value, (l, a) => (h(), w("g", {
1079
+ key: `tgrad_${l.id}`
1080
+ }, [
1081
+ t.value.style.chart.layout.rects.gradient.show ? (h(), w("defs", Mo, [
1082
+ R("radialGradient", {
1083
+ id: `tgrad_${l.id}`,
1084
+ gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
1085
+ }, [
1086
+ R("stop", {
1087
+ offset: "18%",
1088
+ "stop-color": l.color
1089
+ }, null, 8, No),
1090
+ R("stop", {
1091
+ offset: "100%",
1092
+ "stop-color": p(ol)(l.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
1093
+ }, null, 8, Lo)
1094
+ ], 8, Io)
1095
+ ])) : M("", !0)
1096
+ ]))), 128)),
1097
+ (h(!0), w(Xe, null, bt(Ie.value, (l, a) => (h(), w("g", {
1098
+ key: `k_${l.id}`
1099
+ }, [
1100
+ R("rect", {
1101
+ x: l.x0,
1102
+ y: l.y0,
1103
+ height: Ce(l),
1104
+ width: $e(l),
1105
+ fill: q.value ? l.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
1106
+ rx: Nl(l),
1107
+ stroke: G.value && G.value.id === l.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1108
+ "stroke-width": G.value && G.value.id === l.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1109
+ onClick: wt((s) => Re(l, a), ["stop"]),
1110
+ onMouseenter: () => $l({
1111
+ datapoint: l,
1112
+ seriesIndex: a
1113
+ }),
1114
+ onMouseleave: (s) => Cl({ datapoint: l, seriesIndex: a }),
1115
+ style: ue(`opacity:${G.value ? G.value.id === l.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1116
+ class: yt([
1117
+ "vue-ui-treemap-rect",
1118
+ wl(l) ? "vue-data-ui-zoom-plus" : Se.value ? "vue-data-ui-zoom-minus" : ""
1119
+ ])
1120
+ }, null, 46, Do),
1121
+ !e.$slots.rect && !p(be) && t.value.style.chart.layout.labels.showDefaultLabels ? (h(), w("g", {
1122
+ key: 0,
1123
+ style: { "pointer-events": "none" },
1124
+ innerHTML: Il({ rect: l, seriesIndex: a })
1125
+ }, null, 8, zo)) : M("", !0),
1126
+ (h(), w("foreignObject", {
1127
+ x: l.x0,
1128
+ y: l.y0,
1129
+ height: Ce(l),
1130
+ width: $e(l),
1131
+ class: "vue-ui-treemap-cell-foreignObject"
1132
+ }, [
1133
+ R("div", {
1134
+ style: ue({
1135
+ width: `calc(100% - ${xe(l) / 1.5}px)`,
1136
+ height: `calc(100% - ${xe(l) / 1.5}px)`,
1137
+ padding: `${xe(l) / 3}px`
1138
+ }),
1139
+ class: "vue-ui-treemap-cell"
1140
+ }, [
1141
+ p(be) ? M("", !0) : S(e.$slots, "rect", kt({
1142
+ key: 0,
1143
+ ref_for: !0
1144
+ }, {
1145
+ rect: l,
1146
+ shouldShow: l.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Se.value,
1147
+ fontSize: xe(l),
1148
+ isZoom: Se.value,
1149
+ textColor: p(al)(l.color)
1150
+ }), void 0, !0)
1151
+ ], 4)
1152
+ ], 8, Ro))
1153
+ ]))), 128)),
1154
+ S(e.$slots, "svg", me(ye({ svg: B.value, isZoom: Se.value, rect: G.value, config: t.value })), void 0, !0)
1155
+ ], 14, Fo)),
1156
+ e.$slots.watermark ? (h(), w("div", Po, [
1157
+ S(e.$slots, "watermark", me(ye({ isPrinting: p(Lt) || p(Dt) })), void 0, !0)
1158
+ ])) : M("", !0),
1159
+ R("div", {
1160
+ id: `legend-bottom-${I.value}`
1161
+ }, null, 8, Bo),
1162
+ Mt.value ? (h(), re(Ul, {
1163
+ key: 6,
1164
+ to: t.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
1165
+ }, [
1166
+ R("div", {
1167
+ ref_key: "chartLegend",
1168
+ ref: _t
1169
+ }, [
1170
+ t.value.style.chart.legend.show ? (h(), re(vo, {
1171
+ key: `legend_${et.value}`,
1172
+ legendSet: rt.value,
1173
+ config: kl.value,
1174
+ id: `treemap_legend_${I.value}`,
1175
+ onClickMarker: o[0] || (o[0] = ({ legend: l }) => Ut(l))
1176
+ }, {
1177
+ item: A(({ legend: l, index: a }) => [
1178
+ p(be) ? M("", !0) : (h(), w("div", {
1179
+ key: 0,
1180
+ onClick: (s) => Ut(l),
1181
+ style: ue(`opacity:${W.value.includes(l.id) ? 0.5 : 1}`)
1182
+ }, Ye(l.display), 13, Vo))
1183
+ ]),
1184
+ _: 1
1185
+ }, 8, ["legendSet", "config", "id"])) : S(e.$slots, "legend", {
1186
+ key: 1,
1187
+ legend: rt.value
1188
+ }, void 0, !0)
1189
+ ], 512)
1190
+ ], 8, ["to"])) : M("", !0),
1191
+ e.$slots.source ? (h(), w("div", {
1192
+ key: 7,
1193
+ ref_key: "source",
1194
+ ref: Ot,
1195
+ dir: "auto"
1196
+ }, [
1197
+ S(e.$slots, "source", {}, void 0, !0)
1198
+ ], 512)) : M("", !0),
1199
+ Ge(p(d), {
1200
+ show: z.value.showTooltip && P.value,
1201
+ backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1202
+ color: t.value.style.chart.tooltip.color,
1203
+ fontSize: t.value.style.chart.tooltip.fontSize,
1204
+ borderRadius: t.value.style.chart.tooltip.borderRadius,
1205
+ borderColor: t.value.style.chart.tooltip.borderColor,
1206
+ borderWidth: t.value.style.chart.tooltip.borderWidth,
1207
+ backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1208
+ position: t.value.style.chart.tooltip.position,
1209
+ offsetY: t.value.style.chart.tooltip.offsetY,
1210
+ parent: U.value,
1211
+ content: Je.value,
1212
+ isFullscreen: ie.value,
1213
+ isCustom: p(nl)(t.value.style.chart.tooltip.customFormat),
1214
+ smooth: t.value.style.chart.tooltip.smooth,
1215
+ backdropFilter: t.value.style.chart.tooltip.backdropFilter,
1216
+ smoothForce: t.value.style.chart.tooltip.smoothForce,
1217
+ smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold
1218
+ }, {
1219
+ "tooltip-before": A(() => [
1220
+ S(e.$slots, "tooltip-before", me(ye({ ...it.value })), void 0, !0)
1221
+ ]),
1222
+ "tooltip-after": A(() => [
1223
+ S(e.$slots, "tooltip-after", me(ye({ ...it.value })), void 0, !0)
1224
+ ]),
1225
+ _: 3
1226
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1227
+ D.value && t.value.userOptions.buttons.table ? (h(), re(Gl(Ne.value.component), kt({ key: 8 }, Ne.value.props, {
1228
+ ref_key: "tableUnit",
1229
+ ref: Ae,
1230
+ onClose: jt
1231
+ }), el({
1232
+ content: A(() => [
1233
+ (h(), re(p(c), {
1234
+ key: `table_${Qe.value}`,
1235
+ colNames: Pe.value.colNames,
1236
+ head: Pe.value.head,
1237
+ body: Pe.value.body,
1238
+ config: Pe.value.config,
1239
+ title: t.value.table.useDialog ? "" : Ne.value.title,
1240
+ withCloseButton: !t.value.table.useDialog,
1241
+ onClose: jt
1242
+ }, {
1243
+ th: A(({ th: l }) => [
1244
+ R("div", {
1245
+ innerHTML: l,
1246
+ style: { display: "flex", "align-items": "center" }
1247
+ }, null, 8, Ho)
1248
+ ]),
1249
+ td: A(({ td: l }) => [
1250
+ qe(Ye(l.name || l), 1)
1251
+ ]),
1252
+ _: 1
1253
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1254
+ ]),
1255
+ _: 2
1256
+ }, [
1257
+ t.value.table.useDialog ? {
1258
+ name: "title",
1259
+ fn: A(() => [
1260
+ qe(Ye(Ne.value.title), 1)
1261
+ ]),
1262
+ key: "0"
1263
+ } : void 0,
1264
+ t.value.table.useDialog ? {
1265
+ name: "actions",
1266
+ fn: A(() => [
1267
+ R("button", {
1268
+ tabindex: "0",
1269
+ class: "vue-ui-user-options-button",
1270
+ onClick: o[1] || (o[1] = (l) => ct(t.value.userOptions.callbacks.csv))
1271
+ }, [
1272
+ Ge(ul, {
1273
+ name: "excel",
1274
+ stroke: Ne.value.props.color
1275
+ }, null, 8, ["stroke"])
1276
+ ])
1277
+ ]),
1278
+ key: "1"
1279
+ } : void 0
1280
+ ]), 1040)) : M("", !0),
1281
+ p(be) ? (h(), re(ao, { key: 9 })) : M("", !0)
1282
+ ], 46, $o));
1283
+ }
1284
+ }, na = /* @__PURE__ */ fo(Eo, [["__scopeId", "data-v-c8fc400c"]]);
1285
+ export {
1286
+ na as default
1287
+ };