vue-data-ui 3.2.8 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
  84. package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
  90. package/dist/useSvgExport-DrjCWun4.js +750 -0
  91. package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
  106. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
  107. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
  109. package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
  119. package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
  146. package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,30 +1,31 @@
1
- import { defineAsyncComponent as te, useSlots as Wt, onMounted as yt, computed as b, ref as m, shallowRef as U, toRefs as Gt, watch as ke, onBeforeUnmount as Xt, createElementBlock as y, openBlock as d, unref as c, normalizeStyle as M, normalizeClass as Le, createBlock as Z, createCommentVNode as _, createElementVNode as O, createVNode as we, createSlots as bt, withCtx as T, renderSlot as C, normalizeProps as le, guardReactiveProps as oe, Fragment as Ce, renderList as Me, withKeys as kt, withModifiers as Be, mergeProps as Ve, createTextVNode as $e, toDisplayString as H, Teleport as qt, resolveDynamicComponent as Yt, nextTick as jt } from "vue";
2
- import { c as Te, t as Zt, b as Kt, p as F, e as Jt, o as wt, f as Qt, h as de, a as xe, d as he, X as el, m as Ct, E as $t, z as Tt, x as tl, y as ll, A as ol } from "./lib-BEpWEyMm.js";
3
- import { t as al, u as nl } from "./useResponsive-DfdjqQps.js";
4
- import { u as sl, a as xt } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as ul, B as rl } from "./BaseScanner-BgWxam9d.js";
6
- import { u as il } from "./usePrinter-w23K-ezx.js";
7
- import { u as cl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as vl } from "./useChartAccessibility-9icAAmYg.js";
9
- import dl from "./img-DjWwQXVS.js";
10
- import hl from "./Title-DG2nloSB.js";
11
- import { t as pl } from "./themes-Dw-dDudK.js";
12
- import fl from "./Legend-BpoFJ8fc.js";
13
- import _t from "./BaseIcon-Bz-1GQhu.js";
14
- import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- function Ot(n, r) {
1
+ import { defineAsyncComponent as ee, useSlots as Kt, onMounted as bt, computed as m, ref as y, shallowRef as U, toRefs as Jt, watch as ke, onBeforeUnmount as Qt, createElementBlock as b, openBlock as h, unref as d, normalizeStyle as L, normalizeClass as Me, createBlock as Z, createCommentVNode as O, createElementVNode as _, createVNode as we, createSlots as kt, withCtx as T, renderSlot as C, normalizeProps as te, guardReactiveProps as le, Fragment as Ce, renderList as Ve, withKeys as wt, withModifiers as Ee, mergeProps as Ue, createTextVNode as $e, toDisplayString as se, Teleport as el, resolveDynamicComponent as tl, nextTick as ll } from "vue";
2
+ import { c as Te, t as ol, b as al, p as I, e as nl, o as Ct, f as sl, h as de, a as xe, d as he, X as ul, m as $t, E as Tt, z as xt, x as rl, y as il, A as cl } from "./lib-CEjkWSLj.js";
3
+ import { t as vl, u as dl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as hl, a as Ot } from "./useNestedProp-Ce3PwN8T.js";
5
+ import { u as pl, B as fl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as gl } from "./usePrinter-DJ1iH-F_.js";
7
+ import { u as ml } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as yl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import bl from "./img-J2dLIr8Y.js";
10
+ import kl from "./Title-Camz1Lce.js";
11
+ import { t as wl } from "./themes-Dw-dDudK.js";
12
+ import Cl from "./Legend-By4rru90.js";
13
+ import _t from "./BaseIcon-eZbszQrv.js";
14
+ import { u as $l } from "./useSvgExport-DrjCWun4.js";
15
+ import { _ as Tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ function St(n, r) {
16
17
  const s = n.length;
17
18
  if (s === 0)
18
19
  throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
19
20
  {
20
- let i = 1 / 0, u = -1 / 0, h = 0;
21
+ let i = 1 / 0, u = -1 / 0, p = 0;
21
22
  for (let g = 0; g < s; g += 1) {
22
23
  const f = n[g].normalizedValue;
23
- f < i && (i = f), f > u && (u = f), h += f;
24
+ f < i && (i = f), f > u && (u = f), p += f;
24
25
  }
25
26
  return Math.max(
26
- r ** 2 * u / h ** 2,
27
- h ** 2 / (r ** 2 * i)
27
+ r ** 2 * u / p ** 2,
28
+ p ** 2 / (r ** 2 * i)
28
29
  );
29
30
  }
30
31
  }
@@ -37,78 +38,78 @@ function At(n) {
37
38
  y1: s + u
38
39
  };
39
40
  }
40
- function ml(n, r, s) {
41
+ function xl(n, r, s) {
41
42
  if (n.length === 0)
42
43
  return !0;
43
44
  {
44
- const i = n.concat(r), u = Ot(
45
+ const i = n.concat(r), u = St(
45
46
  n,
46
47
  s
47
- ), h = Ot(i, s);
48
- return u >= h;
48
+ ), p = St(i, s);
49
+ return u >= p;
49
50
  }
50
51
  }
51
- function yl(n) {
52
+ function Ol(n) {
52
53
  const r = [], s = n.length;
53
54
  for (let i = 0; i < s; i += 1) {
54
- const u = n[i], h = u.length;
55
- for (let v = 0; v < h; v += 1)
55
+ const u = n[i], p = u.length;
56
+ for (let v = 0; v < p; v += 1)
56
57
  r.push(u[v]);
57
58
  }
58
59
  return r;
59
60
  }
60
- function bl(n, r) {
61
+ function _l(n, r) {
61
62
  const s = {
62
63
  ...r,
63
64
  children: n
64
65
  };
65
66
  return Ft(s);
66
67
  }
67
- function kl(n) {
68
+ function Sl(n) {
68
69
  return (n.x1 - n.x0) * (n.y1 - n.y0);
69
70
  }
70
- function St(n, r) {
71
- const { width: s, height: i, xOffset: u, yOffset: h } = Ee(r), v = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, I) => w + I, 0), f = g / i, W = g / s;
72
- let P = u, k = h;
71
+ function It(n, r) {
72
+ const { width: s, height: i, xOffset: u, yOffset: p } = He(r), v = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, F) => w + F, 0), f = g / i, H = g / s;
73
+ let P = u, k = p;
73
74
  const $ = [];
74
75
  if (s >= i) {
75
76
  for (let w = 0; w < v; w += 1) {
76
- const I = n[w], B = k + I.normalizedValue / f, A = {
77
+ const F = n[w], M = k + F.normalizedValue / f, S = {
77
78
  x0: P,
78
79
  y0: k,
79
80
  x1: P + f,
80
- y1: B
81
- }, N = Object.assign({}, I, A);
82
- k = B, $.push(N);
81
+ y1: M
82
+ }, N = Object.assign({}, F, S);
83
+ k = M, $.push(N);
83
84
  }
84
85
  return $;
85
86
  } else {
86
87
  for (let w = 0; w < v; w += 1) {
87
- const I = n[w], B = P + I.normalizedValue / W, A = {
88
+ const F = n[w], M = P + F.normalizedValue / H, S = {
88
89
  x0: P,
89
90
  y0: k,
90
- x1: B,
91
- y1: k + W
92
- }, N = Object.assign({}, I, A);
93
- P = B, $.push(N);
91
+ x1: M,
92
+ y1: k + H
93
+ }, N = Object.assign({}, F, S);
94
+ P = M, $.push(N);
94
95
  }
95
96
  return $;
96
97
  }
97
98
  }
98
- function wl(n) {
99
- const r = Ee(n), s = r.width, i = r.height;
99
+ function Al(n) {
100
+ const r = He(n), s = r.width, i = r.height;
100
101
  return Math.min(s, i);
101
102
  }
102
- function Cl(n, r) {
103
- const s = n.length, i = n.map((f) => f.value ?? 0).reduce((f, W) => f + W, 0), u = r / i, h = [];
103
+ function Il(n, r) {
104
+ const s = n.length, i = n.map((f) => f.value ?? 0).reduce((f, H) => f + H, 0), u = r / i, p = [];
104
105
  let v, g;
105
106
  for (let f = 0; f < s; f += 1)
106
107
  g = n[f], v = Object.assign({}, g, {
107
108
  normalizedValue: g.value * (u || 0)
108
- }), h.push(v);
109
- return h;
109
+ }), p.push(v);
110
+ return p;
110
111
  }
111
- function Ee(n) {
112
+ function He(n) {
112
113
  const { x0: r, y0: s, x1: i, y1: u } = n;
113
114
  return {
114
115
  xOffset: r,
@@ -117,25 +118,25 @@ function Ee(n) {
117
118
  height: u - s
118
119
  };
119
120
  }
120
- function $l(n, r, s, i) {
121
- let u = n, h = r, v = s, g = i;
121
+ function Fl(n, r, s, i) {
122
+ let u = n, p = r, v = s, g = i;
122
123
  for (; ; ) {
123
124
  const f = u.length;
124
125
  if (f === 0) {
125
- const $ = St(h, v);
126
+ const $ = It(p, v);
126
127
  return g.concat($);
127
128
  }
128
- const W = wl(v), P = u[0], k = u.slice(1, f);
129
- if (ml(h, P, W)) {
130
- const $ = h.concat(P);
131
- u = k, h = $, v = v, g = g;
129
+ const H = Al(v), P = u[0], k = u.slice(1, f);
130
+ if (xl(p, P, H)) {
131
+ const $ = p.concat(P);
132
+ u = k, p = $, v = v, g = g;
132
133
  } else {
133
- const $ = h.length;
134
+ const $ = p.length;
134
135
  let w = 0;
135
136
  for (let N = 0; N < $; N += 1)
136
- w += h[N].normalizedValue;
137
- const I = Tl(v, w), B = St(h, v), A = g.concat(B);
138
- u = u, h = [], v = I, g = A;
137
+ w += p[N].normalizedValue;
138
+ const F = Dl(v, w), M = It(p, v), S = g.concat(M);
139
+ u = u, p = [], v = F, g = S;
139
140
  }
140
141
  }
141
142
  }
@@ -143,21 +144,21 @@ function Ft(n) {
143
144
  if (typeof n.children > "u" || !n.children.length)
144
145
  return [n];
145
146
  {
146
- const r = Cl(
147
+ const r = Il(
147
148
  n.children,
148
- kl(n)
149
- ), s = $l(r, [], n, []), i = s.length, u = [];
149
+ Sl(n)
150
+ ), s = Fl(r, [], n, []), i = s.length, u = [];
150
151
  for (let v = 0; v < i; v += 1)
151
152
  u.push(Ft(s[v]));
152
- return yl(u);
153
+ return Ol(u);
153
154
  }
154
155
  }
155
- function Tl(n, r) {
156
- const { width: s, height: i, xOffset: u, yOffset: h } = Ee(n);
156
+ function Dl(n, r) {
157
+ const { width: s, height: i, xOffset: u, yOffset: p } = He(n);
157
158
  if (s >= i) {
158
159
  const v = r / i, g = s - v, f = {
159
160
  xOffset: u + v,
160
- yOffset: h,
161
+ yOffset: p,
161
162
  width: g,
162
163
  height: i
163
164
  };
@@ -165,26 +166,23 @@ function Tl(n, r) {
165
166
  } else {
166
167
  const v = r / s, g = i - v, f = {
167
168
  xOffset: u,
168
- yOffset: h + v,
169
+ yOffset: p + v,
169
170
  width: s,
170
171
  height: g
171
172
  };
172
173
  return At(f);
173
174
  }
174
175
  }
175
- const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Al = { class: "vue-ui-treemap-crumb-unit" }, Sl = { class: "vue-ui-treemap-crumb-unit-label" }, Fl = {
176
+ const Nl = ["id"], Rl = ["id"], Ll = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Pl = { class: "vue-ui-treemap-crumb-unit" }, zl = { class: "vue-ui-treemap-crumb-unit-label" }, Bl = {
176
177
  key: 0,
177
178
  style: { width: "24px", display: "flex", "align-items": "center" }
178
- }, Il = {
179
+ }, Ml = {
179
180
  key: 0,
180
181
  class: "vue-ui-treemap-crumb-unit-arrow"
181
- }, Dl = ["xmlns", "viewBox"], Nl = { key: 0 }, Rl = ["id"], Pl = ["stop-color"], zl = ["stop-color"], Ll = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Ml = ["x", "y", "height", "width"], Bl = {
182
- style: { width: "100%", height: "100%" },
183
- class: "vue-ui-treemap-cell"
184
- }, Vl = {
182
+ }, Vl = ["xmlns", "viewBox"], El = { key: 0 }, Ul = ["id"], Hl = ["stop-color"], Wl = ["stop-color"], Gl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Xl = ["x", "y", "height", "width"], ql = {
185
183
  key: 5,
186
184
  class: "vue-data-ui-watermark"
187
- }, El = ["id"], Ul = ["onClick"], Hl = ["innerHTML"], Wl = {
185
+ }, Yl = ["id"], jl = ["onClick"], Zl = ["innerHTML"], Kl = {
188
186
  __name: "vue-ui-treemap",
189
187
  props: {
190
188
  config: {
@@ -202,14 +200,14 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
202
200
  },
203
201
  emits: ["selectLegend", "selectDatapoint"],
204
202
  setup(n, { expose: r, emit: s }) {
205
- const i = te(() => import("./DataTable-BvjacRbw.js")), u = te(() => import("./PenAndPaper-CR8q353D.js")), h = te(() => import("./vue-ui-accordion-CDIzGCG1.js")), v = te(() => import("./Tooltip-BOXz8skU.js")), g = te(() => import("./UserOptions-DsTgvAok.js")), f = te(() => import("./PackageVersion-C40g0Rfc.js")), W = te(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_treemap: P } = sl(), k = n, $ = s, w = Wt();
206
- yt(() => {
203
+ const i = ee(() => import("./DataTable-yAMEyP6y.js")), u = ee(() => import("./PenAndPaper-Bo-lMUik.js")), p = ee(() => import("./vue-ui-accordion-VTP418mC.js")), v = ee(() => import("./Tooltip-VOcQEHa4.js")), g = ee(() => import("./UserOptions-CSja1SGU.js")), f = ee(() => import("./PackageVersion-BfykJm_B.js")), H = ee(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_treemap: P } = hl(), k = n, $ = s, w = Kt();
204
+ bt(() => {
207
205
  w["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
208
206
  });
209
- const I = b(() => !!k.dataset && k.dataset.length), B = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = m(Te()), N = m(!1), _e = m(""), K = m(!1), Ue = m(0), z = m([]), V = U(null), He = U(null), We = U(null), Ge = U(null), Xe = U(null), qe = m(0), Oe = m(0), Ae = m(0), x = m([]), Se = m(null), Ye = m(!1), ue = m(null), Fe = m(null), e = m(Ne()), { loading: re, FINAL_DATASET: Ie, manualLoading: It } = ul({
210
- ...Gt(k),
207
+ const F = m(() => !!k.dataset && k.dataset.length), M = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), S = y(Te()), N = y(!1), Oe = y(""), K = y(!1), We = y(0), z = y([]), V = U(null), Ge = U(null), Xe = U(null), qe = U(null), Ye = U(null), je = y(0), _e = y(0), Se = y(0), x = y([]), Ae = y(null), Ze = y(!1), ue = y(null), Ie = y(null), e = y(Re()), { loading: re, FINAL_DATASET: Fe, manualLoading: Dt } = pl({
208
+ ...Jt(k),
211
209
  FINAL_CONFIG: e,
212
- prepareConfig: Ne,
210
+ prepareConfig: Re,
213
211
  skeletonDataset: [
214
212
  {
215
213
  name: "_",
@@ -226,7 +224,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
226
224
  ]
227
225
  }
228
226
  ],
229
- skeletonConfig: Zt({
227
+ skeletonConfig: ol({
230
228
  defaultConfig: e.value,
231
229
  userConfig: {
232
230
  userOptions: { show: !1 },
@@ -248,28 +246,28 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
248
246
  }
249
247
  }
250
248
  })
251
- }), { userOptionsVisible: De, setUserOptionsVisibility: je, keepUserOptionState: Ze } = cl({ config: e.value }), { svgRef: Ke } = vl({ config: e.value.style.chart.title });
252
- function Ne() {
253
- const t = xt({
249
+ }), { userOptionsVisible: De, setUserOptionsVisibility: Ke, keepUserOptionState: Je } = ml({ config: e.value }), { svgRef: Ne } = yl({ config: e.value.style.chart.title });
250
+ function Re() {
251
+ const t = Ot({
254
252
  userConfig: k.config,
255
253
  defaultConfig: P
256
254
  });
257
255
  return t.theme ? {
258
- ...xt({
259
- userConfig: pl.vue_ui_treemap[t.theme] || k.config,
256
+ ...Ot({
257
+ userConfig: wl.vue_ui_treemap[t.theme] || k.config,
260
258
  defaultConfig: t
261
259
  }),
262
- customPalette: Kt[t.theme] || F
260
+ customPalette: al[t.theme] || I
263
261
  } : t;
264
262
  }
265
263
  ke(() => k.config, (t) => {
266
- re.value || (e.value = Ne()), De.value = !e.value.userOptions.showOnChartHover, qe.value += 1, Oe.value += 1, Ae.value += 1, D.value.showTable = e.value.table.show, D.value.showTooltip = e.value.style.chart.tooltip.show;
264
+ re.value || (e.value = Re()), De.value = !e.value.userOptions.showOnChartHover, je.value += 1, _e.value += 1, Se.value += 1, D.value.showTable = e.value.table.show, D.value.showTooltip = e.value.style.chart.tooltip.show;
267
265
  }, { deep: !0 });
268
- const { isPrinting: Je, isImaging: Qe, generatePdf: et, generateImage: tt } = il({
269
- elementId: `treemap_${A.value}`,
266
+ const { isPrinting: Qe, isImaging: et, generatePdf: tt, generateImage: lt } = gl({
267
+ elementId: `treemap_${S.value}`,
270
268
  fileName: e.value.style.chart.title.text || "vue-ui-treemap",
271
269
  options: e.value.userOptions.print
272
- }), Dt = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), pe = b(() => Jt(e.value.customPalette)), D = m({
270
+ }), Nt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), pe = m(() => nl(e.value.customPalette)), D = y({
273
271
  showTable: e.value.table.show,
274
272
  showTooltip: e.value.style.chart.tooltip.show
275
273
  });
@@ -279,79 +277,79 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
279
277
  showTooltip: e.value.style.chart.tooltip.show
280
278
  };
281
279
  }, { immediate: !0 });
282
- const G = m({
280
+ const W = y({
283
281
  height: e.value.style.chart.height,
284
282
  width: e.value.style.chart.width
285
- }), J = b(() => ({
286
- bottom: G.value.height - e.value.style.chart.padding.bottom,
287
- height: G.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
283
+ }), J = m(() => ({
284
+ bottom: W.value.height - e.value.style.chart.padding.bottom,
285
+ height: W.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
288
286
  left: e.value.style.chart.padding.left,
289
- right: G.value.width - e.value.style.chart.padding.right,
287
+ right: W.value.width - e.value.style.chart.padding.right,
290
288
  top: e.value.style.chart.padding.top,
291
- vbHeight: G.value.height,
292
- vbWidth: G.value.width,
293
- width: G.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
294
- })), R = m(Ie.value), X = m(R.value), lt = U(/* @__PURE__ */ new Map());
295
- function ot(t) {
289
+ vbHeight: W.value.height,
290
+ vbWidth: W.value.width,
291
+ width: W.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
292
+ })), R = y(Fe.value), G = y(R.value), ot = U(/* @__PURE__ */ new Map());
293
+ function at(t) {
296
294
  Array.isArray(t) && t.forEach((o, l) => {
297
295
  o.id || (o.id = Te());
298
- let a = de(o.color) || lt.value.get(o.id) || pe.value[l] || F[l] || F[l % F.length];
299
- a = de(a), lt.value.set(o.id, a), o.color = a, at(o, a);
296
+ let a = de(o.color) || ot.value.get(o.id) || pe.value[l] || I[l] || I[l % I.length];
297
+ a = de(a), ot.value.set(o.id, a), o.color = a, nt(o, a);
300
298
  });
301
299
  }
302
- function at(t, o) {
300
+ function nt(t, o) {
303
301
  Array.isArray(t.children) && t.children.forEach((l) => {
304
- l.id || (l.id = Te()), l.parentId = t.id, l.color = o, at(l, o);
302
+ l.id || (l.id = Te()), l.parentId = t.id, l.color = o, nt(l, o);
305
303
  });
306
304
  }
307
- function Nt() {
305
+ function Rt() {
308
306
  if (!x.value.length)
309
- X.value = R.value.slice();
307
+ G.value = R.value.slice();
310
308
  else {
311
309
  const t = x.value[x.value.length - 1], o = Y(t);
312
- X.value = o?.children?.slice() || [];
310
+ G.value = o?.children?.slice() || [];
313
311
  }
314
312
  }
315
313
  ke(
316
- () => Ie.value,
314
+ () => Fe.value,
317
315
  () => {
318
- R.value = Ie.value, ot(R.value), Nt(), Ae.value += 1, Oe.value += 1;
316
+ R.value = Fe.value, at(R.value), Rt(), Se.value += 1, _e.value += 1;
319
317
  },
320
318
  { deep: !0, immediate: !0, flush: "post" }
321
319
  );
322
- const q = U(null), ae = U(null);
323
- yt(() => {
324
- Ye.value = !0, Pt();
320
+ const X = U(null), oe = U(null);
321
+ bt(() => {
322
+ Ze.value = !0, Pt();
325
323
  });
326
- const Rt = b(() => e.value.debug);
324
+ const Lt = m(() => e.value.debug);
327
325
  function Pt() {
328
- if (wt(k.dataset) && Qt({
326
+ if (Ct(k.dataset) && sl({
329
327
  componentName: "VueUiTreemap",
330
328
  type: "dataset",
331
- debug: Rt.value
332
- }), ot(R.value), wt(k.dataset) || (It.value = e.value.loading), e.value.responsive) {
333
- const t = al(() => {
334
- const { width: o, height: l } = nl({
329
+ debug: Lt.value
330
+ }), at(R.value), Ct(k.dataset) || (Dt.value = e.value.loading), e.value.responsive) {
331
+ const t = vl(() => {
332
+ const { width: o, height: l } = dl({
335
333
  chart: V.value,
336
- title: e.value.style.chart.title.text ? He.value : null,
337
- legend: e.value.style.chart.legend.show ? We.value : null,
338
- source: Ge.value,
339
- noTitle: Xe.value
334
+ title: e.value.style.chart.title.text ? Ge.value : null,
335
+ legend: e.value.style.chart.legend.show ? Xe.value : null,
336
+ source: qe.value,
337
+ noTitle: Ye.value
340
338
  });
341
339
  requestAnimationFrame(() => {
342
- G.value.width = o, G.value.height = l - 12;
340
+ W.value.width = o, W.value.height = l - 12;
343
341
  });
344
342
  });
345
- q.value && (ae.value && q.value.unobserve(ae.value), q.value.disconnect()), q.value = new ResizeObserver(t), ae.value = V.value.parentNode, q.value.observe(ae.value);
343
+ X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect()), X.value = new ResizeObserver(t), oe.value = V.value.parentNode, X.value.observe(oe.value);
346
344
  }
347
345
  }
348
- Xt(() => {
349
- q.value && (ae.value && q.value.unobserve(ae.value), q.value.disconnect());
346
+ Qt(() => {
347
+ X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect());
350
348
  });
351
- const ie = b(() => X.value.map((t, o) => ({
349
+ const ie = m(() => G.value.map((t, o) => ({
352
350
  ...t,
353
- color: de(t.color) || pe.value[o] || F[o] || F[o % F.length]
354
- })).filter((t) => !z.value.includes(t.id))), ne = b(() => R.value.filter((t) => !z.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), nt = b({
351
+ color: de(t.color) || pe.value[o] || I[o] || I[o % I.length]
352
+ })).filter((t) => !z.value.includes(t.id))), ae = m(() => R.value.filter((t) => !z.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), st = m({
355
353
  get() {
356
354
  let t = [...ie.value];
357
355
  return e.value.style.chart.layout.sorted && (t = [...ie.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
@@ -362,54 +360,54 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
362
360
  return t;
363
361
  }
364
362
  });
365
- function st(t, o) {
363
+ function ut(t, o) {
366
364
  return t.value / o;
367
365
  }
368
366
  function zt(t, o, l) {
369
- const a = e.value.style.chart.layout.rects.colorRatio - st(o, l);
370
- return Ct(t, a < 0 ? 0 : a);
367
+ const a = e.value.style.chart.layout.rects.colorRatio - ut(o, l);
368
+ return $t(t, a < 0 ? 0 : a);
371
369
  }
372
- function ut(t, o, l, a) {
373
- return t.map((p, S) => {
374
- const be = zt(de(o) || pe.value[S] || F[S] || F[S % F.length], p, a), Ht = st(p, a);
370
+ function rt(t, o, l, a) {
371
+ return t.map((c, A) => {
372
+ const be = zt(de(o) || pe.value[A] || I[A] || I[A % I.length], c, a), Zt = ut(c, a);
375
373
  return {
376
- ...p,
374
+ ...c,
377
375
  color: be,
378
- proportion: Ht,
376
+ proportion: Zt,
379
377
  parentName: l,
380
- children: p.children ? ut(p.children, be, p.name, a) : void 0
378
+ children: c.children ? rt(c.children, be, c.name, a) : void 0
381
379
  };
382
380
  });
383
381
  }
384
- const ce = b(() => bl(
385
- nt.value.map((t, o) => {
386
- const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
382
+ const ce = m(() => _l(
383
+ st.value.map((t, o) => {
384
+ const l = t.children ? t.children.reduce((a, c) => a + c.value, 0) : t.value;
387
385
  return {
388
386
  value: t.value,
389
387
  id: t.id || Te(),
390
- children: t.children ? ut(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
388
+ children: t.children ? rt(t.children.sort((a, c) => c.value - a.value), t.color, t.name, l) : void 0,
391
389
  color: t.color,
392
390
  name: t.name
393
391
  };
394
392
  }),
395
393
  { x0: J.value.left * 2, y0: J.value.top, x1: J.value.width, y1: J.value.height }
396
394
  ));
397
- function rt({ y0: t, y1: o }) {
395
+ function it({ y0: t, y1: o }) {
398
396
  return o - t <= 0 ? 1e-4 : o - t;
399
397
  }
400
- function it({ x0: t, x1: o }) {
398
+ function ct({ x0: t, x1: o }) {
401
399
  return o - t <= 0 ? 1e-4 : o - t;
402
400
  }
403
- function Q(t) {
401
+ function q(t) {
404
402
  const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
405
403
  return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
406
404
  }
407
- function ct(t) {
408
- K.value = t, Ue.value += 1;
405
+ function vt(t) {
406
+ K.value = t, We.value += 1;
409
407
  }
410
- const se = b(() => {
408
+ const ne = m(() => {
411
409
  let t = 0;
412
- return Se.value && (t = Se.value.getBoundingClientRect().height), {
410
+ return Ae.value && (t = Ae.value.getBoundingClientRect().height), {
413
411
  startX: 0,
414
412
  startY: 0,
415
413
  width: J.value.vbWidth,
@@ -428,34 +426,34 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
428
426
  }
429
427
  return null;
430
428
  }
431
- const ee = b(() => x.value.length > 0);
429
+ const Q = m(() => x.value.length > 0);
432
430
  function fe(t, o) {
433
431
  if (!t) {
434
- X.value = R.value.slice(), $("selectDatapoint", void 0), x.value = [];
432
+ G.value = R.value.slice(), $("selectDatapoint", void 0), x.value = [];
435
433
  return;
436
434
  }
437
435
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
438
436
  const l = Y(t.id);
439
437
  if (l && l.children?.length)
440
- x.value.push(l.id), X.value = l.children.slice(), $("selectDatapoint", t);
438
+ x.value.push(l.id), G.value = l.children.slice(), $("selectDatapoint", t);
441
439
  else if (t.parentId) {
442
440
  x.value.push(t.parentId);
443
441
  const a = Y(t.parentId);
444
- X.value = a.children.slice(), $("selectDatapoint", t);
442
+ G.value = a.children.slice(), $("selectDatapoint", t);
445
443
  } else if (x.value.length > 0) {
446
444
  x.value.pop();
447
445
  const a = x.value[x.value.length - 1];
448
446
  if (a) {
449
- const p = Y(a);
450
- X.value = p.children.slice();
447
+ const c = Y(a);
448
+ G.value = c.children.slice();
451
449
  } else
452
- X.value = R.value.slice(), x.value = [], $("selectDatapoint", void 0);
450
+ G.value = R.value.slice(), x.value = [], $("selectDatapoint", void 0);
453
451
  }
454
452
  }
455
- function Lt(t) {
453
+ function Bt(t) {
456
454
  return !!(Y(t.id)?.children?.length || t.parentId);
457
455
  }
458
- const j = b(() => {
456
+ const j = m(() => {
459
457
  const t = [
460
458
  { id: null, label: "All" }
461
459
  ];
@@ -472,15 +470,29 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
472
470
  });
473
471
  }
474
472
  return t;
475
- }), L = U(null), vt = b(() => R.value.map((t, o) => ({
473
+ }), B = U(null), Le = m(() => R.value.map((t, o) => ({
476
474
  ...t,
477
- color: de(t.color) || pe.value[o] || F[o] || F[o % F.length],
475
+ color: de(t.color) || pe.value[o] || I[o] || I[o % I.length],
478
476
  shape: "square"
479
- })).sort((t, o) => o.value - t.value).map((t, o) => ({
480
- ...t,
481
- proportion: t.value / R.value.map((l) => l.value).reduce((l, a) => l + a, 0),
482
- opacity: z.value.includes(t.id) ? 0.5 : 1
483
- }))), Mt = b(() => ({
477
+ })).sort((t, o) => o.value - t.value).map((t, o) => {
478
+ const l = t.value / R.value.map((a) => a.value).reduce((a, c) => a + c, 0);
479
+ return {
480
+ ...t,
481
+ proportion: l,
482
+ opacity: z.value.includes(t.id) ? 0.5 : 1,
483
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? xe(
484
+ e.value.style.chart.layout.labels.formatter,
485
+ t.value,
486
+ he({
487
+ p: e.value.style.chart.layout.labels.prefix,
488
+ v: t.value,
489
+ s: e.value.style.chart.layout.labels.suffix,
490
+ r: e.value.style.chart.legend.roundingValue
491
+ }),
492
+ { datapoint: t }
493
+ ) : ""}${e.value.style.chart.legend.showPercentage ? z.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ae.value) ? "-" : (t.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
494
+ };
495
+ })), Mt = m(() => ({
484
496
  cy: "treemap-div-legend",
485
497
  backgroundColor: e.value.style.chart.legend.backgroundColor,
486
498
  color: e.value.style.chart.legend.color,
@@ -489,22 +501,22 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
489
501
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
490
502
  }));
491
503
  function dt(t) {
492
- L.value = null, z.value.includes(t.id) ? z.value = z.value.filter((o) => o !== t.id) : z.value.length < k.dataset.length - 1 && z.value.push(t.id), $("selectLegend", nt.value);
493
- }
494
- function Bt({ datapoint: t, seriesIndex: o }) {
495
- L.value = null, N.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
504
+ B.value = null, z.value.includes(t.id) ? z.value = z.value.filter((o) => o !== t.id) : z.value.length < k.dataset.length - 1 && z.value.push(t.id), $("selectLegend", st.value);
496
505
  }
497
- const Re = m(null);
498
506
  function Vt({ datapoint: t, seriesIndex: o }) {
499
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), L.value = t, Re.value = { datapoint: t, seriesIndex: o, config: e.value, series: ie.value };
507
+ B.value = null, N.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
508
+ }
509
+ const Pe = y(null);
510
+ function Et({ datapoint: t, seriesIndex: o }) {
511
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), B.value = t, Pe.value = { datapoint: t, seriesIndex: o, config: e.value, series: ie.value };
500
512
  const l = e.value.style.chart.tooltip.customFormat;
501
- if (Tt(l) && ol(() => l({
513
+ if (xt(l) && cl(() => l({
502
514
  seriesIndex: o,
503
515
  datapoint: t,
504
516
  series: ie.value,
505
517
  config: e.value
506
518
  })))
507
- _e.value = l({
519
+ Oe.value = l({
508
520
  seriesIndex: o,
509
521
  datapoint: t,
510
522
  series: ie.value,
@@ -522,50 +534,50 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
522
534
  r: e.value.style.chart.tooltip.roundingValue
523
535
  }),
524
536
  { datapoint: t, seriesIndex: o }
525
- )}</b>`, _e.value = `<div>${a}</div>`;
537
+ )}</b>`, Oe.value = `<div>${a}</div>`;
526
538
  }
527
539
  N.value = !0;
528
540
  }
529
- const E = b(() => {
541
+ const E = m(() => {
530
542
  const t = ce.value.map((l) => ({
531
543
  name: l.name,
532
544
  color: l.color
533
545
  })), o = ce.value.map((l) => l.value);
534
546
  return { head: t, body: o };
535
547
  });
536
- function Pe(t = null) {
537
- jt(() => {
538
- const o = E.value.head.map((p, S) => [[
539
- p.name
540
- ], [E.value.body[S]], [isNaN(E.value.body[S] / ne.value) ? "-" : E.value.body[S] / ne.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = tl(l);
541
- t ? t(a) : ll({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
548
+ function ze(t = null) {
549
+ ll(() => {
550
+ const o = E.value.head.map((c, A) => [[
551
+ c.name
552
+ ], [E.value.body[A]], [isNaN(E.value.body[A] / ae.value) ? "-" : E.value.body[A] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = rl(l);
553
+ t ? t(a) : il({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
542
554
  });
543
555
  }
544
- const ge = b(() => {
556
+ const ge = m(() => {
545
557
  const t = [
546
558
  e.value.table.columnNames.series,
547
559
  e.value.table.columnNames.value,
548
560
  e.value.table.columnNames.percentage
549
- ], o = E.value.head.map((p, S) => {
561
+ ], o = E.value.head.map((c, A) => {
550
562
  const be = xe(
551
563
  e.value.style.chart.layout.labels.formatter,
552
- E.value.body[S],
564
+ E.value.body[A],
553
565
  he({
554
566
  p: e.value.style.chart.layout.labels.prefix,
555
- v: E.value.body[S],
567
+ v: E.value.body[A],
556
568
  s: e.value.style.chart.layout.labels.suffix,
557
569
  r: e.value.table.td.roundingValue
558
570
  })
559
571
  );
560
572
  return [
561
573
  {
562
- color: p.color,
563
- name: p.name,
574
+ color: c.color,
575
+ name: c.name,
564
576
  shape: "square"
565
577
  },
566
578
  be,
567
- isNaN(E.value.body[S] / ne.value) ? "-" : he({
568
- v: E.value.body[S] / ne.value * 100,
579
+ isNaN(E.value.body[A] / ae.value) ? "-" : he({
580
+ v: E.value.body[A] / ae.value * 100,
569
581
  s: "%",
570
582
  r: e.value.table.td.roundingPercentage
571
583
  })
@@ -593,7 +605,7 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
593
605
  config: l
594
606
  };
595
607
  });
596
- function Et() {
608
+ function Ut() {
597
609
  return ce.value;
598
610
  }
599
611
  function ht() {
@@ -602,33 +614,33 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
602
614
  function pt() {
603
615
  D.value.showTooltip = !D.value.showTooltip;
604
616
  }
605
- const me = m(!1);
606
- function ze() {
617
+ const me = y(!1);
618
+ function Be() {
607
619
  me.value = !me.value;
608
620
  }
609
- const ye = m(null);
621
+ const ye = y(null);
610
622
  function ft(t) {
611
623
  ye.value = t;
612
624
  }
613
625
  function gt() {
614
626
  ye.value = null;
615
627
  }
616
- async function Ut({ scale: t = 2 } = {}) {
628
+ async function Ht({ scale: t = 2 } = {}) {
617
629
  if (!V.value) return;
618
- const { width: o, height: l } = V.value.getBoundingClientRect(), a = o / l, { imageUri: p, base64: S } = await dl({ domElement: V.value, base64: !0, img: !0, scale: t });
630
+ const { width: o, height: l } = V.value.getBoundingClientRect(), a = o / l, { imageUri: c, base64: A } = await bl({ domElement: V.value, base64: !0, img: !0, scale: t });
619
631
  return {
620
- imageUri: p,
621
- base64: S,
632
+ imageUri: c,
633
+ base64: A,
622
634
  title: e.value.style.chart.title.text,
623
635
  width: o,
624
636
  height: l,
625
637
  aspectRatio: a
626
638
  };
627
639
  }
628
- const ve = b(() => {
640
+ const ve = m(() => {
629
641
  const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
630
642
  return {
631
- component: t ? W : h,
643
+ component: t ? H : p,
632
644
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
633
645
  props: t ? {
634
646
  backgroundColor: e.value.table.th.backgroundColor,
@@ -659,50 +671,68 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
659
671
  e.value.table.show || (t && e.value.table.useDialog && ue.value ? ue.value.open() : "close" in ue.value && ue.value.close());
660
672
  });
661
673
  function mt() {
662
- D.value.showTable = !1, Fe.value && Fe.value.setTableIconState(!1);
674
+ D.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
675
+ }
676
+ const Wt = m(() => Le.value.map((t) => ({
677
+ ...t,
678
+ name: t.display
679
+ }))), Gt = m(() => e.value.style.chart.backgroundColor), Xt = m(() => e.value.style.chart.legend), qt = m(() => e.value.style.chart.title), { exportSvg: Yt, getSvg: jt } = $l({
680
+ svg: Ne,
681
+ title: qt,
682
+ legend: Xt,
683
+ legendItems: Wt,
684
+ backgroundColor: Gt
685
+ });
686
+ async function yt({ isCb: t }) {
687
+ if (t) {
688
+ const { blob: o, url: l, text: a, dataUrl: c } = await jt();
689
+ e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: c });
690
+ } else
691
+ Yt();
663
692
  }
664
693
  return r({
665
- getData: Et,
666
- getImage: Ut,
667
- generateCsv: Pe,
668
- generateImage: tt,
669
- generatePdf: et,
694
+ getData: Ut,
695
+ getImage: Ht,
696
+ generateCsv: ze,
697
+ generateImage: lt,
698
+ generateSvg: yt,
699
+ generatePdf: tt,
670
700
  toggleTable: ht,
671
701
  toggleTooltip: pt,
672
- toggleAnnotator: ze,
673
- toggleFullscreen: ct
674
- }), (t, o) => (d(), y("div", {
702
+ toggleAnnotator: Be,
703
+ toggleFullscreen: vt
704
+ }), (t, o) => (h(), b("div", {
675
705
  ref_key: "treemapChart",
676
706
  ref: V,
677
- class: Le(`vue-data-ui-component vue-ui-treemap ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
678
- style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
679
- id: `treemap_${A.value}`,
680
- onMouseenter: o[2] || (o[2] = () => c(je)(!0)),
681
- onMouseleave: o[3] || (o[3] = () => c(je)(!1))
707
+ class: Me(`vue-data-ui-component vue-ui-treemap ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
708
+ style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
709
+ id: `treemap_${S.value}`,
710
+ onMouseenter: o[2] || (o[2] = () => d(Ke)(!0)),
711
+ onMouseleave: o[3] || (o[3] = () => d(Ke)(!1))
682
712
  }, [
683
- e.value.userOptions.buttons.annotator ? (d(), Z(c(u), {
713
+ e.value.userOptions.buttons.annotator ? (h(), Z(d(u), {
684
714
  key: 0,
685
- svgRef: c(Ke),
715
+ svgRef: d(Ne),
686
716
  backgroundColor: e.value.style.chart.backgroundColor,
687
717
  color: e.value.style.chart.color,
688
718
  active: me.value,
689
- onClose: ze
690
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
691
- Dt.value ? (d(), y("div", {
719
+ onClose: Be
720
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : O("", !0),
721
+ Nt.value ? (h(), b("div", {
692
722
  key: 1,
693
723
  ref_key: "noTitle",
694
- ref: Xe,
724
+ ref: Ye,
695
725
  class: "vue-data-ui-no-title-space",
696
726
  style: "height:36px; width: 100%;background:transparent"
697
- }, null, 512)) : _("", !0),
698
- e.value.style.chart.title.text ? (d(), y("div", {
727
+ }, null, 512)) : O("", !0),
728
+ e.value.style.chart.title.text ? (h(), b("div", {
699
729
  key: 2,
700
730
  ref_key: "chartTitle",
701
- ref: He,
702
- style: M(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
731
+ ref: Ge,
732
+ style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
703
733
  }, [
704
- (d(), Z(hl, {
705
- key: `title_${qe.value}`,
734
+ (h(), Z(kl, {
735
+ key: `title_${je.value}`,
706
736
  config: {
707
737
  title: {
708
738
  cy: "treemap-div-title",
@@ -714,23 +744,24 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
714
744
  }
715
745
  }
716
746
  }, null, 8, ["config"]))
717
- ], 4)) : _("", !0),
718
- O("div", {
719
- id: `legend-top-${A.value}`
720
- }, null, 8, _l),
721
- e.value.userOptions.show && I.value && (c(Ze) || c(De)) ? (d(), Z(c(g), {
747
+ ], 4)) : O("", !0),
748
+ _("div", {
749
+ id: `legend-top-${S.value}`
750
+ }, null, 8, Rl),
751
+ e.value.userOptions.show && F.value && (d(Je) || d(De)) ? (h(), Z(d(g), {
722
752
  ref_key: "userOptionsRef",
723
- ref: Fe,
724
- key: `user_option_${Ue.value}`,
753
+ ref: Ie,
754
+ key: `user_option_${We.value}`,
725
755
  backgroundColor: e.value.style.chart.backgroundColor,
726
756
  color: e.value.style.chart.color,
727
- isPrinting: c(Je),
728
- isImaging: c(Qe),
729
- uid: A.value,
757
+ isPrinting: d(Qe),
758
+ isImaging: d(et),
759
+ uid: S.value,
730
760
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
731
761
  hasPdf: e.value.userOptions.buttons.pdf,
732
762
  hasXls: e.value.userOptions.buttons.csv,
733
763
  hasImg: e.value.userOptions.buttons.img,
764
+ hasSvg: e.value.userOptions.buttons.svg,
734
765
  hasTable: e.value.userOptions.buttons.table,
735
766
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
736
767
  isFullscreen: K.value,
@@ -743,21 +774,22 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
743
774
  callbacks: e.value.userOptions.callbacks,
744
775
  printScale: e.value.userOptions.print.scale,
745
776
  tableDialog: e.value.table.useDialog,
746
- onToggleFullscreen: ct,
747
- onGeneratePdf: c(et),
748
- onGenerateCsv: Pe,
749
- onGenerateImage: c(tt),
777
+ onToggleFullscreen: vt,
778
+ onGeneratePdf: d(tt),
779
+ onGenerateCsv: ze,
780
+ onGenerateImage: d(lt),
781
+ onGenerateSvg: yt,
750
782
  onToggleTable: ht,
751
783
  onToggleTooltip: pt,
752
- onToggleAnnotator: ze,
753
- style: M({
754
- visibility: c(Ze) ? c(De) ? "visible" : "hidden" : "visible"
784
+ onToggleAnnotator: Be,
785
+ style: L({
786
+ visibility: d(Je) ? d(De) ? "visible" : "hidden" : "visible"
755
787
  })
756
- }, bt({ _: 2 }, [
788
+ }, kt({ _: 2 }, [
757
789
  t.$slots.menuIcon ? {
758
790
  name: "menuIcon",
759
791
  fn: T(({ isOpen: l, color: a }) => [
760
- C(t.$slots, "menuIcon", le(oe({ isOpen: l, color: a })), void 0, !0)
792
+ C(t.$slots, "menuIcon", te(le({ isOpen: l, color: a })), void 0, !0)
761
793
  ]),
762
794
  key: "0"
763
795
  } : void 0,
@@ -799,141 +831,149 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
799
831
  t.$slots.optionFullscreen ? {
800
832
  name: "optionFullscreen",
801
833
  fn: T(({ toggleFullscreen: l, isFullscreen: a }) => [
802
- C(t.$slots, "optionFullscreen", le(oe({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
834
+ C(t.$slots, "optionFullscreen", te(le({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
803
835
  ]),
804
836
  key: "6"
805
837
  } : void 0,
806
838
  t.$slots.optionAnnotator ? {
807
839
  name: "optionAnnotator",
808
840
  fn: T(({ toggleAnnotator: l, isAnnotator: a }) => [
809
- C(t.$slots, "optionAnnotator", le(oe({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
841
+ C(t.$slots, "optionAnnotator", te(le({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
810
842
  ]),
811
843
  key: "7"
812
844
  } : void 0
813
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
814
- j.value.length > 1 ? (d(), y("nav", {
845
+ ]), 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"])) : O("", !0),
846
+ j.value.length > 1 ? (h(), b("nav", {
815
847
  key: 4,
816
848
  class: "vue-ui-treemap-breadcrumbs",
817
849
  "data-dom-to-png-ignore": "",
818
850
  ref_key: "breadcrumbsNav",
819
- ref: Se
851
+ ref: Ae
820
852
  }, [
821
- (d(!0), y(Ce, null, Me(j.value, (l, a) => (d(), y("span", {
853
+ (h(!0), b(Ce, null, Ve(j.value, (l, a) => (h(), b("span", {
822
854
  role: "button",
823
855
  tabindex: a < j.value.length - 1 ? 0 : void 0,
824
856
  key: l.id || "root",
825
- onClick: (p) => a === j.value.length - 1 ? () => {
857
+ onClick: (c) => a === j.value.length - 1 ? () => {
826
858
  } : fe(l.node),
827
859
  onKeydown: [
828
- kt(Be((p) => a === j.value.length - 1 ? void 0 : fe(l.node), ["prevent"]), ["enter"]),
829
- kt(Be((p) => a === j.value.length - 1 ? void 0 : fe(l.node), ["prevent"]), ["space"])
860
+ wt(Ee((c) => a === j.value.length - 1 ? void 0 : fe(l.node), ["prevent"]), ["enter"]),
861
+ wt(Ee((c) => a === j.value.length - 1 ? void 0 : fe(l.node), ["prevent"]), ["space"])
830
862
  ],
831
863
  class: "vue-ui-treemap-crumb",
832
864
  "data-last-crumb": a === j.value.length - 1,
833
- style: M({
865
+ style: L({
834
866
  color: e.value.style.chart.color
835
867
  }),
836
- onMouseenter: (p) => ft(a),
868
+ onMouseenter: (c) => ft(a),
837
869
  onMouseleave: gt,
838
- onFocus: (p) => ft(a),
870
+ onFocus: (c) => ft(a),
839
871
  onBlur: gt
840
872
  }, [
841
- O("span", Al, [
842
- O("span", Sl, [
843
- C(t.$slots, "breadcrumb-label", Ve({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ye.value === a }), () => [
844
- a === 0 ? (d(), y("div", Fl, [
873
+ _("span", Pl, [
874
+ _("span", zl, [
875
+ C(t.$slots, "breadcrumb-label", Ue({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ye.value === a }), () => [
876
+ a === 0 ? (h(), b("div", Bl, [
845
877
  we(_t, {
846
878
  name: ye.value === 0 ? "homeFilled" : "home",
847
879
  stroke: e.value.style.chart.color
848
880
  }, null, 8, ["name", "stroke"])
849
- ])) : (d(), y(Ce, { key: 1 }, [
850
- $e(H(l.label), 1)
881
+ ])) : (h(), b(Ce, { key: 1 }, [
882
+ $e(se(l.label), 1)
851
883
  ], 64))
852
884
  ], !0)
853
885
  ]),
854
- a < j.value.length - 1 ? (d(), y("span", Il, [
886
+ a < j.value.length - 1 ? (h(), b("span", Ml, [
855
887
  C(t.$slots, "breadcrumb-arrow", {}, () => [
856
888
  o[4] || (o[4] = $e(" › ", -1))
857
889
  ], !0)
858
- ])) : _("", !0)
890
+ ])) : O("", !0)
859
891
  ])
860
- ], 44, Ol))), 128))
861
- ], 512)) : _("", !0),
862
- (d(), y("svg", {
892
+ ], 44, Ll))), 128))
893
+ ], 512)) : O("", !0),
894
+ (h(), b("svg", {
863
895
  ref_key: "svgRef",
864
- ref: Ke,
865
- xmlns: c(el),
866
- class: Le({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value, "vue-data-ui-zoom-plus": !ee.value, "vue-data-ui-zoom-minus": ee.value, loading: c(re) }),
867
- viewBox: `${se.value.startX} ${se.value.startY} ${se.value.width <= 0 ? 10 : se.value.width} ${se.value.height <= 0 ? 10 : se.value.height}`,
868
- style: M(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
896
+ ref: Ne,
897
+ xmlns: d(ul),
898
+ class: Me({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value, "vue-data-ui-zoom-plus": !Q.value, "vue-data-ui-zoom-minus": Q.value, loading: d(re) }),
899
+ viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
900
+ style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
869
901
  }, [
870
- we(c(f)),
871
- (d(!0), y(Ce, null, Me(ce.value, (l, a) => (d(), y("g", {
902
+ we(d(f)),
903
+ (h(!0), b(Ce, null, Ve(ce.value, (l, a) => (h(), b("g", {
872
904
  key: `tgrad_${l.id}`
873
905
  }, [
874
- e.value.style.chart.layout.rects.gradient.show ? (d(), y("defs", Nl, [
875
- O("radialGradient", {
906
+ e.value.style.chart.layout.rects.gradient.show ? (h(), b("defs", El, [
907
+ _("radialGradient", {
876
908
  id: `tgrad_${l.id}`,
877
909
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
878
910
  }, [
879
- O("stop", {
911
+ _("stop", {
880
912
  offset: "18%",
881
913
  "stop-color": l.color
882
- }, null, 8, Pl),
883
- O("stop", {
914
+ }, null, 8, Hl),
915
+ _("stop", {
884
916
  offset: "100%",
885
- "stop-color": c(Ct)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
886
- }, null, 8, zl)
887
- ], 8, Rl)
888
- ])) : _("", !0)
917
+ "stop-color": d($t)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
918
+ }, null, 8, Wl)
919
+ ], 8, Ul)
920
+ ])) : O("", !0)
889
921
  ]))), 128)),
890
- (d(!0), y(Ce, null, Me(ce.value, (l, a) => (d(), y("g", {
922
+ (h(!0), b(Ce, null, Ve(ce.value, (l, a) => (h(), b("g", {
891
923
  key: `k_${l.id}`
892
924
  }, [
893
- O("rect", {
925
+ _("rect", {
894
926
  x: l.x0,
895
927
  y: l.y0,
896
- height: rt(l),
897
- width: it(l),
898
- fill: B.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
928
+ height: it(l),
929
+ width: ct(l),
930
+ fill: M.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
899
931
  rx: e.value.style.chart.layout.rects.borderRadius,
900
- stroke: L.value && L.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
901
- "stroke-width": L.value && L.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
902
- onClick: Be((p) => fe(l, a), ["stop"]),
903
- onMouseenter: () => Vt({
932
+ stroke: B.value && B.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
933
+ "stroke-width": B.value && B.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
934
+ onClick: Ee((c) => fe(l, a), ["stop"]),
935
+ onMouseenter: () => Et({
904
936
  datapoint: l,
905
937
  seriesIndex: a
906
938
  }),
907
- onMouseleave: (p) => Bt({ datapoint: l, seriesIndex: a }),
908
- style: M(`opacity:${L.value ? L.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
909
- class: Le([
939
+ onMouseleave: (c) => Vt({ datapoint: l, seriesIndex: a }),
940
+ style: L(`opacity:${B.value ? B.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
941
+ class: Me([
910
942
  "vue-ui-treemap-rect",
911
- Lt(l) ? "vue-data-ui-zoom-plus" : ee.value ? "vue-data-ui-zoom-minus" : ""
943
+ Bt(l) ? "vue-data-ui-zoom-plus" : Q.value ? "vue-data-ui-zoom-minus" : ""
912
944
  ])
913
- }, null, 46, Ll),
914
- (d(), y("foreignObject", {
945
+ }, null, 46, Gl),
946
+ (h(), b("foreignObject", {
915
947
  x: l.x0,
916
948
  y: l.y0,
917
- height: rt(l),
918
- width: it(l),
949
+ height: it(l),
950
+ width: ct(l),
919
951
  class: "vue-ui-treemap-cell-foreignObject"
920
952
  }, [
921
- O("div", Bl, [
922
- e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || ee.value) ? (d(), y("div", {
953
+ _("div", {
954
+ style: L({
955
+ width: `calc(100% - ${q(l) / 1.5}px)`,
956
+ height: `calc(100% - ${q(l) / 1.5}px)`,
957
+ padding: `${q(l) / 3}px`,
958
+ lineHeight: `${q(l)}px`
959
+ }),
960
+ class: "vue-ui-treemap-cell"
961
+ }, [
962
+ e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value) ? (h(), b("div", {
923
963
  key: 0,
924
964
  class: "vue-ui-treemap-cell-default",
925
- style: M(`width:calc(100% - ${Q(l) / 1.5}px);text-align:left;line-height:${Q(l) < 14 ? 14 : Q(l)}px;padding:${Q(l) / 3}px; color:${c($t)(l.color)}`)
965
+ style: L(`width:calc(100% - ${q(l) / 1.5}px);text-align:left; color:${d(Tt)(l.color)}`)
926
966
  }, [
927
- O("span", {
928
- style: M(`width:100%;font-size:${Q(l)}px;`)
929
- }, H(l.name), 5),
930
- o[5] || (o[5] = O("br", null, null, -1)),
931
- O("span", {
932
- style: M(`width:100%;font-size:${Q(l)}px;`)
933
- }, H(c(xe)(
967
+ _("span", {
968
+ style: L(`width:100%;font-size:${q(l)}px;`)
969
+ }, se(l.name), 5),
970
+ o[5] || (o[5] = _("br", null, null, -1)),
971
+ _("span", {
972
+ style: L(`width:100%;font-size:${q(l)}px;`)
973
+ }, se(d(xe)(
934
974
  e.value.style.chart.layout.labels.formatter,
935
975
  l.value,
936
- c(he)({
976
+ d(he)({
937
977
  p: e.value.style.chart.layout.labels.prefix,
938
978
  v: l.value,
939
979
  s: e.value.style.chart.layout.labels.suffix,
@@ -941,76 +981,66 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
941
981
  }),
942
982
  { datapoint: l }
943
983
  )), 5)
944
- ], 4)) : _("", !0),
945
- c(re) ? _("", !0) : C(t.$slots, "rect", Ve({
984
+ ], 4)) : O("", !0),
985
+ d(re) ? O("", !0) : C(t.$slots, "rect", Ue({
946
986
  key: 1,
947
987
  ref_for: !0
948
988
  }, {
949
989
  rect: l,
950
- shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || ee.value,
951
- fontSize: Q(l),
952
- isZoom: ee.value,
953
- textColor: c($t)(l.color)
990
+ shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value,
991
+ fontSize: q(l),
992
+ isZoom: Q.value,
993
+ textColor: d(Tt)(l.color)
954
994
  }), void 0, !0)
955
- ])
956
- ], 8, Ml))
995
+ ], 4)
996
+ ], 8, Xl))
957
997
  ]))), 128)),
958
- C(t.$slots, "svg", le(oe({ svg: J.value, isZoom: ee.value, rect: L.value, config: e.value })), void 0, !0)
959
- ], 14, Dl)),
960
- t.$slots.watermark ? (d(), y("div", Vl, [
961
- C(t.$slots, "watermark", le(oe({ isPrinting: c(Je) || c(Qe) })), void 0, !0)
962
- ])) : _("", !0),
963
- O("div", {
964
- id: `legend-bottom-${A.value}`
965
- }, null, 8, El),
966
- Ye.value ? (d(), Z(qt, {
998
+ C(t.$slots, "svg", te(le({ svg: J.value, isZoom: Q.value, rect: B.value, config: e.value })), void 0, !0)
999
+ ], 14, Vl)),
1000
+ t.$slots.watermark ? (h(), b("div", ql, [
1001
+ C(t.$slots, "watermark", te(le({ isPrinting: d(Qe) || d(et) })), void 0, !0)
1002
+ ])) : O("", !0),
1003
+ _("div", {
1004
+ id: `legend-bottom-${S.value}`
1005
+ }, null, 8, Yl),
1006
+ Ze.value ? (h(), Z(el, {
967
1007
  key: 6,
968
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1008
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${S.value}` : `#legend-bottom-${S.value}`
969
1009
  }, [
970
- O("div", {
1010
+ _("div", {
971
1011
  ref_key: "chartLegend",
972
- ref: We
1012
+ ref: Xe
973
1013
  }, [
974
- e.value.style.chart.legend.show ? (d(), Z(fl, {
975
- key: `legend_${Ae.value}`,
976
- legendSet: vt.value,
1014
+ e.value.style.chart.legend.show ? (h(), Z(Cl, {
1015
+ key: `legend_${Se.value}`,
1016
+ legendSet: Le.value,
977
1017
  config: Mt.value,
978
- id: `treemap_legend_${A.value}`,
1018
+ id: `treemap_legend_${S.value}`,
979
1019
  onClickMarker: o[0] || (o[0] = ({ legend: l }) => dt(l))
980
1020
  }, {
981
1021
  item: T(({ legend: l, index: a }) => [
982
- c(re) ? _("", !0) : (d(), y("div", {
1022
+ d(re) ? O("", !0) : (h(), b("div", {
983
1023
  key: 0,
984
- onClick: (p) => dt(l),
985
- style: M(`opacity:${z.value.includes(l.id) ? 0.5 : 1}`)
986
- }, H(l.name) + H(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + H(e.value.style.chart.legend.showValue ? c(xe)(
987
- e.value.style.chart.layout.labels.formatter,
988
- l.value,
989
- c(he)({
990
- p: e.value.style.chart.layout.labels.prefix,
991
- v: l.value,
992
- s: e.value.style.chart.layout.labels.suffix,
993
- r: e.value.style.chart.legend.roundingValue
994
- }),
995
- { datapoint: l }
996
- ) : "") + " " + H(e.value.style.chart.legend.showPercentage ? z.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ne.value) ? "-" : (l.value / ne.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ul))
1024
+ onClick: (c) => dt(l),
1025
+ style: L(`opacity:${z.value.includes(l.id) ? 0.5 : 1}`)
1026
+ }, se(l.display), 13, jl))
997
1027
  ]),
998
1028
  _: 1
999
1029
  }, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
1000
1030
  key: 1,
1001
- legend: vt.value
1031
+ legend: Le.value
1002
1032
  }, void 0, !0)
1003
1033
  ], 512)
1004
- ], 8, ["to"])) : _("", !0),
1005
- t.$slots.source ? (d(), y("div", {
1034
+ ], 8, ["to"])) : O("", !0),
1035
+ t.$slots.source ? (h(), b("div", {
1006
1036
  key: 7,
1007
1037
  ref_key: "source",
1008
- ref: Ge,
1038
+ ref: qe,
1009
1039
  dir: "auto"
1010
1040
  }, [
1011
1041
  C(t.$slots, "source", {}, void 0, !0)
1012
- ], 512)) : _("", !0),
1013
- we(c(v), {
1042
+ ], 512)) : O("", !0),
1043
+ we(d(v), {
1014
1044
  show: D.value.showTooltip && N.value,
1015
1045
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1016
1046
  color: e.value.style.chart.tooltip.color,
@@ -1022,30 +1052,30 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
1022
1052
  position: e.value.style.chart.tooltip.position,
1023
1053
  offsetY: e.value.style.chart.tooltip.offsetY,
1024
1054
  parent: V.value,
1025
- content: _e.value,
1055
+ content: Oe.value,
1026
1056
  isFullscreen: K.value,
1027
- isCustom: c(Tt)(e.value.style.chart.tooltip.customFormat),
1057
+ isCustom: d(xt)(e.value.style.chart.tooltip.customFormat),
1028
1058
  smooth: e.value.style.chart.tooltip.smooth,
1029
1059
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1030
1060
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1031
1061
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1032
1062
  }, {
1033
1063
  "tooltip-before": T(() => [
1034
- C(t.$slots, "tooltip-before", le(oe({ ...Re.value })), void 0, !0)
1064
+ C(t.$slots, "tooltip-before", te(le({ ...Pe.value })), void 0, !0)
1035
1065
  ]),
1036
1066
  "tooltip-after": T(() => [
1037
- C(t.$slots, "tooltip-after", le(oe({ ...Re.value })), void 0, !0)
1067
+ C(t.$slots, "tooltip-after", te(le({ ...Pe.value })), void 0, !0)
1038
1068
  ]),
1039
1069
  _: 3
1040
1070
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1041
- I.value && e.value.userOptions.buttons.table ? (d(), Z(Yt(ve.value.component), Ve({ key: 8 }, ve.value.props, {
1071
+ F.value && e.value.userOptions.buttons.table ? (h(), Z(tl(ve.value.component), Ue({ key: 8 }, ve.value.props, {
1042
1072
  ref_key: "tableUnit",
1043
1073
  ref: ue,
1044
1074
  onClose: mt
1045
- }), bt({
1075
+ }), kt({
1046
1076
  content: T(() => [
1047
- (d(), Z(c(i), {
1048
- key: `table_${Oe.value}`,
1077
+ (h(), Z(d(i), {
1078
+ key: `table_${_e.value}`,
1049
1079
  colNames: ge.value.colNames,
1050
1080
  head: ge.value.head,
1051
1081
  body: ge.value.body,
@@ -1055,13 +1085,13 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
1055
1085
  onClose: mt
1056
1086
  }, {
1057
1087
  th: T(({ th: l }) => [
1058
- O("div", {
1088
+ _("div", {
1059
1089
  innerHTML: l,
1060
1090
  style: { display: "flex", "align-items": "center" }
1061
- }, null, 8, Hl)
1091
+ }, null, 8, Zl)
1062
1092
  ]),
1063
1093
  td: T(({ td: l }) => [
1064
- $e(H(l.name || l), 1)
1094
+ $e(se(l.name || l), 1)
1065
1095
  ]),
1066
1096
  _: 1
1067
1097
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1071,17 +1101,17 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
1071
1101
  e.value.table.useDialog ? {
1072
1102
  name: "title",
1073
1103
  fn: T(() => [
1074
- $e(H(ve.value.title), 1)
1104
+ $e(se(ve.value.title), 1)
1075
1105
  ]),
1076
1106
  key: "0"
1077
1107
  } : void 0,
1078
1108
  e.value.table.useDialog ? {
1079
1109
  name: "actions",
1080
1110
  fn: T(() => [
1081
- O("button", {
1111
+ _("button", {
1082
1112
  tabindex: "0",
1083
1113
  class: "vue-ui-user-options-button",
1084
- onClick: o[1] || (o[1] = (l) => Pe(e.value.userOptions.callbacks.csv))
1114
+ onClick: o[1] || (o[1] = (l) => ze(e.value.userOptions.callbacks.csv))
1085
1115
  }, [
1086
1116
  we(_t, {
1087
1117
  name: "excel",
@@ -1091,11 +1121,11 @@ const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-
1091
1121
  ]),
1092
1122
  key: "1"
1093
1123
  } : void 0
1094
- ]), 1040)) : _("", !0),
1095
- c(re) ? (d(), Z(rl, { key: 9 })) : _("", !0)
1096
- ], 46, xl));
1124
+ ]), 1040)) : O("", !0),
1125
+ d(re) ? (h(), Z(fl, { key: 9 })) : O("", !0)
1126
+ ], 46, Nl));
1097
1127
  }
1098
- }, no = /* @__PURE__ */ gl(Wl, [["__scopeId", "data-v-89ca1b27"]]);
1128
+ }, po = /* @__PURE__ */ Tl(Kl, [["__scopeId", "data-v-a92570b3"]]);
1099
1129
  export {
1100
- no as default
1130
+ po as default
1101
1131
  };