vue-data-ui 2.6.45 → 2.6.46

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 (158) hide show
  1. package/dist/{Arrow-km8WlE5f.js → Arrow-D4sCAfTr.js} +1 -1
  2. package/dist/{Arrow-Bfwl8OAb.cjs → Arrow-l2Rjf1KV.cjs} +1 -1
  3. package/dist/{BaseIcon-BjlTm9wZ.cjs → BaseIcon-BpdQLb-0.cjs} +1 -1
  4. package/dist/{BaseIcon-DywZoZmD.js → BaseIcon-Dx5FJt-N.js} +4 -3
  5. package/dist/{ColorPicker-gkZLlxzP.js → ColorPicker-Ag9OY75a.js} +3 -3
  6. package/dist/{ColorPicker-COPqu9IV.cjs → ColorPicker-BkUHmkbg.cjs} +1 -1
  7. package/dist/{DataTable-ImmHVJ0i.cjs → DataTable-B8Ui_Pd4.cjs} +1 -1
  8. package/dist/{DataTable-CrhPpuOy.js → DataTable-D9wdDVT6.js} +2 -2
  9. package/dist/{Legend-BVtJaKHS.js → Legend-BCngKEVr.js} +2 -2
  10. package/dist/{Legend-CfimXfYH.cjs → Legend-BFB4DMQS.cjs} +1 -1
  11. package/dist/{PackageVersion-DJu8NH8u.js → PackageVersion-DR6SOSy8.js} +1 -1
  12. package/dist/{PackageVersion-DjHCw2D_.cjs → PackageVersion-Da8iEjju.cjs} +1 -1
  13. package/dist/{PenAndPaper-AZpGBe7x.cjs → PenAndPaper-Dpjaroq-.cjs} +1 -1
  14. package/dist/{PenAndPaper-DC3X33rh.js → PenAndPaper-DxsKkGjV.js} +3 -3
  15. package/dist/{Shape-Bs4vWaC-.js → Shape-CcATSdDH.js} +1 -1
  16. package/dist/{Shape-Dl6kIG9D.cjs → Shape-DomxDqtX.cjs} +1 -1
  17. package/dist/{Slicer-CgnhZJgM.js → Slicer-Bw4VblBK.js} +2 -2
  18. package/dist/{Slicer-OBTv9I2-.cjs → Slicer-DlCXj2P9.cjs} +1 -1
  19. package/dist/{Title-DBgUbEU1.cjs → Title-CFmNnjPN.cjs} +1 -1
  20. package/dist/{Title-6BRNasyb.js → Title-Dr0O3Ohb.js} +1 -1
  21. package/dist/{Tooltip-BUPxcljs.js → Tooltip-C8mLFDBp.js} +1 -1
  22. package/dist/{Tooltip-TGHDsCSU.cjs → Tooltip-UBWsyt1M.cjs} +1 -1
  23. package/dist/{index-jVWdGfFl.js → index-BdV23M_4.js} +1 -1
  24. package/dist/{index-BXhJaCcU.cjs → index-FtxQWcA1.cjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +2 -1
  27. package/dist/types/vue-data-ui.d.ts +2 -1
  28. package/dist/{useNestedProp-DhyCNtMY.cjs → useNestedProp-BIeXIQxH.cjs} +1 -1
  29. package/dist/{useNestedProp-BN5jbfiQ.js → useNestedProp-DyW-iWus.js} +1 -1
  30. package/dist/{usePrinter-DRWBcwQ7.cjs → usePrinter-BUMwWyWM.cjs} +1 -1
  31. package/dist/{usePrinter-BI95cSFJ.js → usePrinter-TFomTfxX.js} +1 -1
  32. package/dist/{vue-data-ui-DFmsvz9E.js → vue-data-ui-Cal0DvqU.js} +61 -61
  33. package/dist/{vue-data-ui-B0eO9goE.cjs → vue-data-ui-DBoVETZN.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-BcdL4c9H.js → vue-ui-3d-bar-DUMfvSbU.js} +9 -9
  37. package/dist/{vue-ui-3d-bar-CwXgNWXb.cjs → vue-ui-3d-bar-GTKfWFni.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-DOBMerZl.js → vue-ui-accordion-2_hSAOvX.js} +3 -3
  39. package/dist/{vue-ui-accordion-DdHwnq9o.cjs → vue-ui-accordion-BIBhKMbJ.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-Dtaikxqn.js → vue-ui-age-pyramid-C0UfrmeD.js} +10 -10
  41. package/dist/{vue-ui-age-pyramid-i52Ub253.cjs → vue-ui-age-pyramid-DotN5JY1.cjs} +1 -1
  42. package/dist/{vue-ui-annotator-BrjeA9CQ.js → vue-ui-annotator-C-9pwUrR.js} +1 -1
  43. package/dist/{vue-ui-annotator-CKUZCHHC.cjs → vue-ui-annotator-C0V4kD4I.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-C1xxCzws.js → vue-ui-bullet-6vftOeqJ.js} +8 -8
  45. package/dist/{vue-ui-bullet-DxUauLaF.cjs → vue-ui-bullet-Ct39TnfH.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-t1BaVylo.cjs → vue-ui-candlestick-Cxpk32bR.cjs} +1 -1
  47. package/dist/{vue-ui-candlestick-CPF7rQqu.js → vue-ui-candlestick-IxSh2gnY.js} +11 -11
  48. package/dist/{vue-ui-carousel-table-BqPfItK8.cjs → vue-ui-carousel-table-BinpEAPd.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-x8RLpKZv.js → vue-ui-carousel-table-DreHo_wE.js} +4 -4
  50. package/dist/{vue-ui-chestnut-SdFREl6l.js → vue-ui-chestnut-3saDHpZ-.js} +8 -8
  51. package/dist/{vue-ui-chestnut-BiX9TQ2v.cjs → vue-ui-chestnut-CpYTb1wd.cjs} +1 -1
  52. package/dist/{vue-ui-circle-pack-DVkRm1KL.js → vue-ui-circle-pack-BechgWzd.js} +9 -9
  53. package/dist/{vue-ui-circle-pack-B28TVLHQ.cjs → vue-ui-circle-pack-BfskRpSw.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-CY5VZS8t.js → vue-ui-cursor-BEuJm8Mb.js} +2 -2
  55. package/dist/{vue-ui-cursor-BkQNdavl.cjs → vue-ui-cursor-CRMGfBFa.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-DQ8lax7M.js → vue-ui-dashboard-DSrb1InR.js} +2 -2
  57. package/dist/{vue-ui-dashboard-BCcNNuM_.cjs → vue-ui-dashboard-TQto_FFI.cjs} +1 -1
  58. package/dist/{vue-ui-digits-D-F0Chxn.cjs → vue-ui-digits-BRPGEv7S.cjs} +1 -1
  59. package/dist/{vue-ui-digits-BkXEbzlS.js → vue-ui-digits-BeoOy04C.js} +2 -2
  60. package/dist/{vue-ui-donut-qRDAQa4n.js → vue-ui-donut-BWQ3vgjP.js} +12 -12
  61. package/dist/{vue-ui-donut-Dxie1WUb.cjs → vue-ui-donut-Dam0YSMu.cjs} +1 -1
  62. package/dist/{vue-ui-donut-evolution-C8ZQum6h.cjs → vue-ui-donut-evolution-DOXHsGwg.cjs} +1 -1
  63. package/dist/{vue-ui-donut-evolution-YKmsjVkR.js → vue-ui-donut-evolution-DQIaWcso.js} +11 -11
  64. package/dist/{vue-ui-dumbbell-bOMg4szX.cjs → vue-ui-dumbbell--mlgQyZ7.cjs} +1 -1
  65. package/dist/{vue-ui-dumbbell-C6OpTSyF.js → vue-ui-dumbbell-BAA0L5kU.js} +10 -10
  66. package/dist/{vue-ui-flow-aIpHJK9l.js → vue-ui-flow-CbIxR8qu.js} +9 -9
  67. package/dist/{vue-ui-flow-Bnj7K0Td.cjs → vue-ui-flow-zigj6Xbo.cjs} +1 -1
  68. package/dist/{vue-ui-funnel-Ckn6d97S.js → vue-ui-funnel-C1CjZHuh.js} +9 -9
  69. package/dist/{vue-ui-funnel-CapST2C3.cjs → vue-ui-funnel-Cs-Kjiev.cjs} +1 -1
  70. package/dist/{vue-ui-galaxy-FIQp4ePf.cjs → vue-ui-galaxy-CWI4H3RW.cjs} +1 -1
  71. package/dist/{vue-ui-galaxy-0p-jvo0s.js → vue-ui-galaxy-G9AFzo0J.js} +11 -11
  72. package/dist/{vue-ui-gauge-C1QU2678.cjs → vue-ui-gauge-CsyLGIqh.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-CtzP0_kK.js → vue-ui-gauge-hDpxwLu6.js} +7 -7
  74. package/dist/{vue-ui-gizmo-D6E03WtQ.cjs → vue-ui-gizmo-BIcmHlyo.cjs} +1 -1
  75. package/dist/{vue-ui-gizmo--TFv_z_f.js → vue-ui-gizmo-Bc-DWND7.js} +3 -3
  76. package/dist/{vue-ui-heatmap-Bx9RCECY.js → vue-ui-heatmap-8p4PejGU.js} +10 -10
  77. package/dist/{vue-ui-heatmap-DQ_4z6a6.cjs → vue-ui-heatmap-DZ9xsMHI.cjs} +1 -1
  78. package/dist/{vue-ui-history-plot-BNybvrYe.cjs → vue-ui-history-plot-DiTEY9hR.cjs} +1 -1
  79. package/dist/{vue-ui-history-plot-OlxcB4fR.js → vue-ui-history-plot-W2UVpzIY.js} +11 -11
  80. package/dist/{vue-ui-kpi-DhsQdhIg.cjs → vue-ui-kpi-BXQ6gSky.cjs} +1 -1
  81. package/dist/{vue-ui-kpi-D-EjjlYh.js → vue-ui-kpi-DFFosWUi.js} +3 -3
  82. package/dist/{vue-ui-mini-loader-CYRJtuw3.js → vue-ui-mini-loader-C2uhjtCz.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-gsh0jMbc.cjs → vue-ui-mini-loader-C8hmEB9w.cjs} +1 -1
  84. package/dist/{vue-ui-molecule-Dke-JabR.js → vue-ui-molecule-B1pxOA3p.js} +10 -10
  85. package/dist/{vue-ui-molecule-K4PM7UqE.cjs → vue-ui-molecule-CXIE8hWW.cjs} +1 -1
  86. package/dist/{vue-ui-mood-radar-sXLyAWIK.js → vue-ui-mood-radar-B-bELxUM.js} +11 -11
  87. package/dist/{vue-ui-mood-radar-CnR7mp7Z.cjs → vue-ui-mood-radar-BuLuDh5y.cjs} +1 -1
  88. package/dist/{vue-ui-nested-donuts-CJ9r-x9P.js → vue-ui-nested-donuts-C4isJwag.js} +11 -11
  89. package/dist/{vue-ui-nested-donuts-DW1Zx5R0.cjs → vue-ui-nested-donuts-C4vK7cf-.cjs} +1 -1
  90. package/dist/{vue-ui-onion-CVRrdFde.js → vue-ui-onion-BNPFlq-G.js} +11 -11
  91. package/dist/{vue-ui-onion-DM-jq72Y.cjs → vue-ui-onion-nbqNRCyk.cjs} +1 -1
  92. package/dist/{vue-ui-parallel-coordinate-plot-DMouPTwE.cjs → vue-ui-parallel-coordinate-plot-C9FIQC4s.cjs} +1 -1
  93. package/dist/{vue-ui-parallel-coordinate-plot-DLVjGpqC.js → vue-ui-parallel-coordinate-plot-DFHwTxhN.js} +12 -12
  94. package/dist/{vue-ui-quadrant-BGuywSpy.js → vue-ui-quadrant-C4NULaSL.js} +12 -12
  95. package/dist/{vue-ui-quadrant-CXFcrSRD.cjs → vue-ui-quadrant-CEyZ6gCX.cjs} +1 -1
  96. package/dist/{vue-ui-quick-chart-9R835dAy.cjs → vue-ui-quick-chart-B7PqLKWn.cjs} +1 -1
  97. package/dist/{vue-ui-quick-chart-D_ZSUMnh.js → vue-ui-quick-chart-m9kWUtKc.js} +9 -9
  98. package/dist/{vue-ui-radar-CrF3XMq8.js → vue-ui-radar-CKb7rcO0.js} +12 -12
  99. package/dist/{vue-ui-radar-CGSB8Q_3.cjs → vue-ui-radar-DHH8CDle.cjs} +1 -1
  100. package/dist/{vue-ui-rating-DCH03Nd-.js → vue-ui-rating-BowDISAW.js} +2 -2
  101. package/dist/{vue-ui-rating-BiwEz-WI.cjs → vue-ui-rating-nYq9NVf8.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-D7sKIx2H.cjs → vue-ui-relation-circle-CXa8v5cY.cjs} +1 -1
  103. package/dist/{vue-ui-relation-circle-CFB3nQrw.js → vue-ui-relation-circle-CtaNRzML.js} +7 -7
  104. package/dist/{vue-ui-rings-CMzJJbL7.cjs → vue-ui-rings-CRgcPBhj.cjs} +1 -1
  105. package/dist/{vue-ui-rings-CDFQgsVL.js → vue-ui-rings-DaydpH_W.js} +12 -12
  106. package/dist/{vue-ui-scatter-CYweE3aN.js → vue-ui-scatter-Bx16gq37.js} +12 -12
  107. package/dist/{vue-ui-scatter-Cpc9LK6H.cjs → vue-ui-scatter-CH8b47_g.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-BA27Irge.cjs → vue-ui-screenshot-BOqEw_Ty.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-BRY1fQOv.js → vue-ui-screenshot-j_ruTkOe.js} +1 -1
  110. package/dist/{vue-ui-skeleton-Dsd0bx0Y.js → vue-ui-skeleton-CVnkLuNk.js} +3 -3
  111. package/dist/{vue-ui-skeleton-CLMRPxZm.cjs → vue-ui-skeleton-CX4m8kLi.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-CeC-WFLx.js → vue-ui-smiley-DGfBC_1p.js} +2 -2
  113. package/dist/{vue-ui-smiley-CNnxNaGC.cjs → vue-ui-smiley-DOcs96EG.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-C8FlaTDz.js → vue-ui-spark-trend-BjNjO7Al.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-liGslvUe.cjs → vue-ui-spark-trend-Cx5_BczW.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-BjCkuYB0.js → vue-ui-sparkbar-Bj9M7Klo.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-DTUuvjOA.cjs → vue-ui-sparkbar-CzRw1-5c.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-BEL_6k7M.cjs → vue-ui-sparkgauge-iMqket_H.cjs} +1 -1
  119. package/dist/{vue-ui-sparkgauge-BBJvgM0r.js → vue-ui-sparkgauge-mx5x8jhB.js} +4 -4
  120. package/dist/{vue-ui-sparkhistogram-DgRpgf4S.js → vue-ui-sparkhistogram-knnJtMmd.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-B12f_DfZ.cjs → vue-ui-sparkhistogram-w4t8R3kU.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-CgNq3TDg.cjs → vue-ui-sparkline-BgGreU8G.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-COtgfnKN.js → vue-ui-sparkline-C4xJULc3.js} +4 -4
  124. package/dist/{vue-ui-sparkstackbar-3qtBnVN-.js → vue-ui-sparkstackbar-DKozbgvk.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-JgTWCear.cjs → vue-ui-sparkstackbar-oCiVPgqg.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-BIQOmKWQ.cjs → vue-ui-stackbar-Bomp_wIS.cjs} +1 -1
  127. package/dist/{vue-ui-stackbar-BzWMNHEl.js → vue-ui-stackbar-avxRfDtE.js} +13 -13
  128. package/dist/{vue-ui-strip-plot-Pr-p3HVe.cjs → vue-ui-strip-plot-7k2wQR85.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-B5yz7F4O.js → vue-ui-strip-plot-CdLa8dCp.js} +11 -11
  130. package/dist/{vue-ui-table-DfzIKXYz.js → vue-ui-table-C0a-SgcX.js} +1 -1
  131. package/dist/{vue-ui-table-Da8yPHbm.cjs → vue-ui-table-CE-PgrMl.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-B42LEDQq.js → vue-ui-table-heatmap-BoI6tise.js} +4 -4
  133. package/dist/{vue-ui-table-heatmap-m9WunlMI.cjs → vue-ui-table-heatmap-ycSv15rY.cjs} +1 -1
  134. package/dist/{vue-ui-table-sparkline-D0NpqAlx.js → vue-ui-table-sparkline-Dxx6025N.js} +5 -5
  135. package/dist/{vue-ui-table-sparkline-D87wVYbh.cjs → vue-ui-table-sparkline-idKvXcFK.cjs} +1 -1
  136. package/dist/{vue-ui-thermometer-CpaWOGHr.cjs → vue-ui-thermometer-Bu1o-YxS.cjs} +1 -1
  137. package/dist/{vue-ui-thermometer-CLrrfpCH.js → vue-ui-thermometer-Cx0BYvoa.js} +7 -7
  138. package/dist/{vue-ui-timer-DJ3N2OIu.cjs → vue-ui-timer-D_UKwqRG.cjs} +1 -1
  139. package/dist/{vue-ui-timer-ruhqlCDV.js → vue-ui-timer-DkGY_7Z9.js} +5 -5
  140. package/dist/{vue-ui-tiremarks-B1PaJvW_.js → vue-ui-tiremarks-CL8yqBs3.js} +7 -7
  141. package/dist/{vue-ui-tiremarks-By-ZwLdD.cjs → vue-ui-tiremarks-DTm_Xj8_.cjs} +1 -1
  142. package/dist/vue-ui-treemap-WcZTaeP0.js +956 -0
  143. package/dist/vue-ui-treemap-rohF9UGD.cjs +1 -0
  144. package/dist/{vue-ui-vertical-bar-Bi_p2HMG.js → vue-ui-vertical-bar-Czmk3lor.js} +12 -12
  145. package/dist/{vue-ui-vertical-bar-D51OT6tD.cjs → vue-ui-vertical-bar-EJofGF6Z.cjs} +1 -1
  146. package/dist/{vue-ui-waffle-BRFWNTTy.cjs → vue-ui-waffle-C7Lq9EWX.cjs} +1 -1
  147. package/dist/{vue-ui-waffle-D_OFNFu_.js → vue-ui-waffle-Ci5lps_0.js} +12 -12
  148. package/dist/{vue-ui-wheel-C_0xODX0.cjs → vue-ui-wheel-DSUUCTFP.cjs} +1 -1
  149. package/dist/{vue-ui-wheel-Dm-sn-fc.js → vue-ui-wheel-DWSgTz2U.js} +7 -7
  150. package/dist/{vue-ui-word-cloud-WO_xGFwd.js → vue-ui-word-cloud-IoOiZMCJ.js} +10 -10
  151. package/dist/{vue-ui-word-cloud-CpbPC0k6.cjs → vue-ui-word-cloud-pp9BsZMx.cjs} +1 -1
  152. package/dist/{vue-ui-xy-DYGsBFzv.js → vue-ui-xy-Bk09XvD1.js} +14 -14
  153. package/dist/{vue-ui-xy-canvas-SpUUvBPW.js → vue-ui-xy-canvas-BEWBX2Os.js} +12 -12
  154. package/dist/{vue-ui-xy-canvas-DCFJnGtu.cjs → vue-ui-xy-canvas-hUlid7hP.cjs} +1 -1
  155. package/dist/{vue-ui-xy-ArWU04zz.cjs → vue-ui-xy-e1xFpXmD.cjs} +1 -1
  156. package/package.json +1 -1
  157. package/dist/vue-ui-treemap-B3_lUi3B.js +0 -939
  158. package/dist/vue-ui-treemap-DX_oIHsl.cjs +0 -1
@@ -1,939 +0,0 @@
1
- import { useSlots as ct, onMounted as Ee, computed as C, ref as g, watch as dt, onBeforeUnmount as vt, createElementBlock as y, openBlock as v, unref as m, normalizeStyle as L, normalizeClass as pe, createBlock as q, createCommentVNode as _, createElementVNode as O, createVNode as ge, createSlots as ht, withCtx as x, renderSlot as $, normalizeProps as X, guardReactiveProps as j, Fragment as ue, renderList as me, mergeProps as Ge, createTextVNode as ie, toDisplayString as Y, withModifiers as ft, nextTick as pt } from "vue";
2
- import { u as gt, c as qe, t as mt, p as S, a as yt, b as bt, o as kt, e as wt, d as ce, i as de, f as le, X as Ct, l as Xe, G as je, x as Ye, q as $t, r as xt, y as Tt } from "./index-jVWdGfFl.js";
3
- import { _ as _t } from "./Title-6BRNasyb.js";
4
- import { u as Ot, U as St } from "./usePrinter-BI95cSFJ.js";
5
- import { _ as It } from "./Tooltip-BUPxcljs.js";
6
- import { L as Nt } from "./Legend-BVtJaKHS.js";
7
- import zt from "./vue-ui-skeleton-Dsd0bx0Y.js";
8
- import { D as At } from "./DataTable-CrhPpuOy.js";
9
- import Pt from "./vue-ui-accordion-DOBMerZl.js";
10
- import { t as Ft, u as Rt } from "./useResponsive-vZgZwV-S.js";
11
- import { u as Ze } from "./useNestedProp-BN5jbfiQ.js";
12
- import { _ as Lt } from "./PackageVersion-DJu8NH8u.js";
13
- import { P as Dt } from "./PenAndPaper-DC3X33rh.js";
14
- import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { u as Vt } from "./useChartAccessibility-BWojgys7.js";
16
- import Bt from "./BaseIcon-DywZoZmD.js";
17
- import { _ as Ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- function Je(n, u) {
19
- const r = n.length;
20
- if (r === 0)
21
- throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
22
- {
23
- let i = 1 / 0, s = -1 / 0, c = 0;
24
- for (let h = 0; h < r; h += 1) {
25
- const f = n[h].normalizedValue;
26
- f < i && (i = f), f > s && (s = f), c += f;
27
- }
28
- return Math.max(
29
- u ** 2 * s / c ** 2,
30
- c ** 2 / (u ** 2 * i)
31
- );
32
- }
33
- }
34
- function Ke(n) {
35
- const { xOffset: u, yOffset: r, width: i, height: s } = n;
36
- return {
37
- x0: u,
38
- y0: r,
39
- x1: u + i,
40
- y1: r + s
41
- };
42
- }
43
- function Ht(n, u, r) {
44
- if (n.length === 0)
45
- return !0;
46
- {
47
- const i = n.concat(u), s = Je(
48
- n,
49
- r
50
- ), c = Je(i, r);
51
- return s >= c;
52
- }
53
- }
54
- function Wt(n) {
55
- const u = [], r = n.length;
56
- for (let i = 0; i < r; i += 1) {
57
- const s = n[i], c = s.length;
58
- for (let d = 0; d < c; d += 1)
59
- u.push(s[d]);
60
- }
61
- return u;
62
- }
63
- function Et(n, u) {
64
- const r = {
65
- ...u,
66
- children: n
67
- };
68
- return et(r);
69
- }
70
- function Gt(n) {
71
- return (n.x1 - n.x0) * (n.y1 - n.y0);
72
- }
73
- function Qe(n, u) {
74
- const { width: r, height: i, xOffset: s, yOffset: c } = ye(u), d = n.length, h = n.map((k) => k.normalizedValue || 0).reduce((k, b) => k + b, 0), f = h / i, z = h / r;
75
- let I = s, A = c;
76
- const w = [];
77
- if (r >= i) {
78
- for (let k = 0; k < d; k += 1) {
79
- const b = n[k], T = A + b.normalizedValue / f, M = {
80
- x0: I,
81
- y0: A,
82
- x1: I + f,
83
- y1: T
84
- }, P = Object.assign({}, b, M);
85
- A = T, w.push(P);
86
- }
87
- return w;
88
- } else {
89
- for (let k = 0; k < d; k += 1) {
90
- const b = n[k], T = I + b.normalizedValue / z, M = {
91
- x0: I,
92
- y0: A,
93
- x1: T,
94
- y1: A + z
95
- }, P = Object.assign({}, b, M);
96
- I = T, w.push(P);
97
- }
98
- return w;
99
- }
100
- }
101
- function qt(n) {
102
- const u = ye(n), r = u.width, i = u.height;
103
- return Math.min(r, i);
104
- }
105
- function Xt(n, u) {
106
- const r = n.length, i = n.map((f) => f.value ?? 0).reduce((f, z) => f + z, 0), s = u / i, c = [];
107
- let d, h;
108
- for (let f = 0; f < r; f += 1)
109
- h = n[f], d = Object.assign({}, h, {
110
- normalizedValue: h.value * (s || 0)
111
- }), c.push(d);
112
- return c;
113
- }
114
- function ye(n) {
115
- const { x0: u, y0: r, x1: i, y1: s } = n;
116
- return {
117
- xOffset: u,
118
- yOffset: r,
119
- width: i - u,
120
- height: s - r
121
- };
122
- }
123
- function jt(n, u, r, i) {
124
- let s = n, c = u, d = r, h = i;
125
- for (; ; ) {
126
- const f = s.length;
127
- if (f === 0) {
128
- const w = Qe(c, d);
129
- return h.concat(w);
130
- }
131
- const z = qt(d), I = s[0], A = s.slice(1, f);
132
- if (Ht(c, I, z)) {
133
- const w = c.concat(I);
134
- s = A, c = w, d = d, h = h;
135
- } else {
136
- const w = c.length;
137
- let k = 0;
138
- for (let P = 0; P < w; P += 1)
139
- k += c[P].normalizedValue;
140
- const b = Yt(d, k), T = Qe(c, d), M = h.concat(T);
141
- s = s, c = [], d = b, h = M;
142
- }
143
- }
144
- }
145
- function et(n) {
146
- if (typeof n.children > "u" || !n.children.length)
147
- return [n];
148
- {
149
- const u = Xt(
150
- n.children,
151
- Gt(n)
152
- ), r = jt(u, [], n, []), i = r.length, s = [];
153
- for (let d = 0; d < i; d += 1)
154
- s.push(et(r[d]));
155
- return Wt(s);
156
- }
157
- }
158
- function Yt(n, u) {
159
- const { width: r, height: i, xOffset: s, yOffset: c } = ye(n);
160
- if (r >= i) {
161
- const d = u / i, h = r - d, f = {
162
- xOffset: s + d,
163
- yOffset: c,
164
- width: h,
165
- height: i
166
- };
167
- return Ke(f);
168
- } else {
169
- const d = u / r, h = i - d, f = {
170
- xOffset: s,
171
- yOffset: c + d,
172
- width: r,
173
- height: h
174
- };
175
- return Ke(f);
176
- }
177
- }
178
- const Zt = ["id"], Jt = {
179
- key: 4,
180
- class: "vue-ui-treemap-breadcrumbs",
181
- "data-html2canvas-ignore": ""
182
- }, Kt = ["onClick", "data-last-crumb"], Qt = { class: "vue-ui-treemap-crumb-unit" }, el = { class: "vue-ui-treemap-crumb-unit-label" }, tl = {
183
- key: 0,
184
- style: { width: "24px", display: "flex", "align-items": "center" }
185
- }, ll = {
186
- key: 0,
187
- class: "vue-ui-treemap-crumb-unit-arrow"
188
- }, ol = ["xmlns", "viewBox"], al = { key: 0 }, nl = ["id"], sl = ["stop-color"], rl = ["stop-color"], ul = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], il = ["x", "y", "height", "width"], cl = {
189
- style: { width: "100%", height: "100%" },
190
- class: "vue-ui-treemap-cell"
191
- }, dl = {
192
- key: 6,
193
- class: "vue-data-ui-watermark"
194
- }, vl = ["onClick"], hl = { key: 0 }, fl = { key: 1 }, pl = ["innerHTML"], gl = {
195
- __name: "vue-ui-treemap",
196
- props: {
197
- config: {
198
- type: Object,
199
- default() {
200
- return {};
201
- }
202
- },
203
- dataset: {
204
- type: Array,
205
- default() {
206
- return [];
207
- }
208
- }
209
- },
210
- emits: ["selectLegend", "selectDatapoint"],
211
- setup(n, { expose: u, emit: r }) {
212
- const { vue_ui_treemap: i } = gt(), s = n, c = r, d = ct();
213
- Ee(() => {
214
- d["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
215
- });
216
- const h = C(() => !!s.dataset && s.dataset.length), f = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), z = g(qe()), I = g(!1), A = g(""), w = g(!1), k = g(0), b = g([]), T = g(null), M = g(null), P = g(null), be = g(null), ke = g(null), we = g(0), Ce = g(0), $e = g(0), e = C({
217
- get: () => Oe(),
218
- set: (t) => t
219
- }), { userOptionsVisible: ve, setUserOptionsVisibility: xe, keepUserOptionState: Te } = Mt({ config: e.value }), { svgRef: _e } = Vt({ config: e.value.style.chart.title });
220
- function Oe() {
221
- const t = Ze({
222
- userConfig: s.config,
223
- defaultConfig: i
224
- });
225
- return t.theme ? {
226
- ...Ze({
227
- userConfig: yt.vue_ui_treemap[t.theme] || s.config,
228
- defaultConfig: t
229
- }),
230
- customPalette: mt[t.theme] || S
231
- } : t;
232
- }
233
- dt(() => s.config, (t) => {
234
- e.value = Oe(), ve.value = !e.value.userOptions.showOnChartHover, we.value += 1, Ce.value += 1, $e.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
235
- }, { deep: !0 });
236
- const { isPrinting: Se, isImaging: Ie, generatePdf: Ne, generateImage: ze } = Ot({
237
- elementId: `treemap_${z.value}`,
238
- fileName: e.value.style.chart.title.text || "vue-ui-treemap",
239
- options: e.value.userOptions.print
240
- }), tt = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = C(() => bt(e.value.customPalette)), F = g({
241
- showTable: e.value.table.show,
242
- showTooltip: e.value.style.chart.tooltip.show
243
- }), V = g({
244
- height: e.value.style.chart.height,
245
- width: e.value.style.chart.width
246
- }), W = C(() => ({
247
- bottom: V.value.height - e.value.style.chart.padding.bottom,
248
- height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
249
- left: e.value.style.chart.padding.left,
250
- right: V.value.width - e.value.style.chart.padding.right,
251
- top: e.value.style.chart.padding.top,
252
- vbHeight: V.value.height,
253
- vbWidth: V.value.width,
254
- width: V.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
255
- }));
256
- function Ae(t) {
257
- t.forEach((o, l) => {
258
- o.id = qe(), o.color = ce(o.color) || oe.value[l] || S[l] || S[l % S.length], o.children && (o.children.forEach((a) => {
259
- a.parentId = o.id, a.color = o.color;
260
- }), Ae(o.children));
261
- });
262
- }
263
- const B = g(s.dataset), ae = g(null);
264
- Ee(() => {
265
- lt();
266
- });
267
- function lt() {
268
- if (kt(s.dataset) && wt({
269
- componentName: "VueUiTreemap",
270
- type: "dataset"
271
- }), Ae(B.value), e.value.responsive) {
272
- const t = Ft(() => {
273
- const { width: o, height: l } = Rt({
274
- chart: T.value,
275
- title: e.value.style.chart.title.text ? M.value : null,
276
- legend: e.value.style.chart.legend.show ? P.value : null,
277
- source: be.value,
278
- noTitle: ke.value
279
- });
280
- requestAnimationFrame(() => {
281
- V.value.width = o, V.value.height = l;
282
- });
283
- });
284
- ae.value = new ResizeObserver(t), ae.value.observe(T.value.parentNode);
285
- }
286
- }
287
- vt(() => {
288
- ae.value && ae.value.disconnect();
289
- });
290
- const Z = g(B.value), Q = C(() => Z.value.map((t, o) => ({
291
- ...t,
292
- color: ce(t.color) || oe.value[o] || S[o] || S[o % S.length]
293
- })).filter((t) => !b.value.includes(t.id))), J = C(() => B.value.filter((t) => !b.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Pe = C({
294
- get() {
295
- let t = [...Q.value];
296
- return e.value.style.chart.layout.sorted && (t = [...Q.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
297
- ...o
298
- }));
299
- },
300
- set(t) {
301
- return t;
302
- }
303
- });
304
- function Fe(t, o) {
305
- return t.value / o;
306
- }
307
- function ot(t, o, l) {
308
- const a = e.value.style.chart.layout.rects.colorRatio - Fe(o, l);
309
- return Xe(t, a < 0 ? 0 : a);
310
- }
311
- function Re(t, o, l, a) {
312
- return t.map((p, H) => {
313
- const re = ot(ce(o) || oe.value[H] || S[H] || S[H % S.length], p, a), it = Fe(p, a);
314
- return {
315
- ...p,
316
- color: re,
317
- proportion: it,
318
- parentName: l,
319
- children: p.children ? Re(p.children, re, p.name, a) : void 0
320
- };
321
- });
322
- }
323
- const ee = C(() => Et(
324
- Pe.value.map((t, o) => {
325
- const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
326
- return {
327
- value: t.value,
328
- id: t.id,
329
- children: t.children ? Re(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
330
- color: t.color,
331
- name: t.name
332
- };
333
- }),
334
- { x0: W.value.left * 2, y0: W.value.top, x1: W.value.width, y1: W.value.height }
335
- ));
336
- function Le({ y0: t, y1: o }) {
337
- return o - t <= 0 ? 1e-4 : o - t;
338
- }
339
- function De({ x0: t, x1: o }) {
340
- return o - t <= 0 ? 1e-4 : o - t;
341
- }
342
- function E(t) {
343
- const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
344
- return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
345
- }
346
- function at(t) {
347
- w.value = t, k.value += 1;
348
- }
349
- const K = C(() => ({
350
- startX: 0,
351
- startY: 0,
352
- width: W.value.vbWidth,
353
- height: W.value.vbHeight
354
- }));
355
- function G(t, o = B.value) {
356
- for (const l of o) {
357
- if (l.id === t)
358
- return l;
359
- if (l.children) {
360
- const a = G(t, l.children);
361
- if (a)
362
- return a;
363
- }
364
- }
365
- return null;
366
- }
367
- const N = g([]), U = C(() => N.value.length > 0);
368
- function Me(t) {
369
- var l;
370
- if (!t) {
371
- Z.value = B.value.slice(), c("selectDatapoint", void 0), N.value = [];
372
- return;
373
- }
374
- const o = G(t.id);
375
- if (o && ((l = o.children) != null && l.length))
376
- N.value.push(o.id), Z.value = o.children.slice(), c("selectDatapoint", t);
377
- else if (t.parentId) {
378
- N.value.push(t.parentId);
379
- const a = G(t.parentId);
380
- Z.value = a.children.slice(), c("selectDatapoint", t);
381
- } else if (N.value.length > 0) {
382
- N.value.pop();
383
- const a = N.value[N.value.length - 1];
384
- if (a) {
385
- const p = G(a);
386
- Z.value = p.children.slice();
387
- } else
388
- Z.value = B.value.slice(), N.value = [], c("selectDatapoint", void 0);
389
- }
390
- }
391
- function nt(t) {
392
- var l;
393
- const o = G(t.id);
394
- return !!((l = o == null ? void 0 : o.children) != null && l.length || t.parentId);
395
- }
396
- const te = C(() => {
397
- const t = [
398
- { id: null, label: "All" }
399
- ];
400
- if (N.value.length > 0) {
401
- let o = G(N.value[N.value.length - 1]);
402
- const l = [];
403
- for (; o; )
404
- l.unshift(o), o = o.parentId ? G(o.parentId) : null;
405
- for (const a of l)
406
- t.push({
407
- id: a.id,
408
- label: a.name,
409
- node: a
410
- });
411
- }
412
- return t;
413
- }), R = g(null), Ve = C(() => B.value.map((t, o) => ({
414
- ...t,
415
- color: ce(t.color) || oe.value[o] || S[o] || S[o % S.length],
416
- shape: "square"
417
- })).sort((t, o) => o.value - t.value).map((t, o) => ({
418
- ...t,
419
- proportion: t.value / B.value.map((l) => l.value).reduce((l, a) => l + a, 0),
420
- opacity: b.value.includes(t.id) ? 0.5 : 1
421
- }))), st = C(() => ({
422
- cy: "treemap-div-legend",
423
- backgroundColor: e.value.style.chart.legend.backgroundColor,
424
- color: e.value.style.chart.legend.color,
425
- fontSize: e.value.style.chart.legend.fontSize,
426
- paddingBottom: 12,
427
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
428
- }));
429
- function Be(t) {
430
- U.value = !1, R.value = null, b.value.includes(t.id) ? b.value = b.value.filter((o) => o !== t.id) : b.value.length < s.dataset.length - 1 && b.value.push(t.id), c("selectLegend", Pe.value);
431
- }
432
- const he = g(null);
433
- function rt({ datapoint: t, seriesIndex: o }) {
434
- R.value = t, he.value = { datapoint: t, seriesIndex: o, config: e.value, series: Q.value };
435
- const l = e.value.style.chart.tooltip.customFormat;
436
- if (Ye(l) && Tt(() => l({
437
- seriesIndex: o,
438
- datapoint: t,
439
- series: Q.value,
440
- config: e.value
441
- })))
442
- A.value = l({
443
- seriesIndex: o,
444
- datapoint: t,
445
- series: Q.value,
446
- config: e.value
447
- });
448
- else {
449
- let a = "";
450
- a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${de(
451
- e.value.style.chart.layout.labels.formatter,
452
- t.value,
453
- le({
454
- p: e.value.style.chart.layout.labels.prefix,
455
- v: t.value,
456
- s: e.value.style.chart.layout.labels.suffix,
457
- r: e.value.style.chart.tooltip.roundingValue
458
- }),
459
- { datapoint: t, seriesIndex: o }
460
- )}</b>`, A.value = `<div>${a}</div>`;
461
- }
462
- I.value = !0;
463
- }
464
- const D = C(() => {
465
- const t = ee.value.map((l) => ({
466
- name: l.name,
467
- color: l.color
468
- })), o = ee.value.map((l) => l.value);
469
- return { head: t, body: o };
470
- });
471
- function Ue() {
472
- pt(() => {
473
- const t = D.value.head.map((a, p) => [[
474
- a.name
475
- ], [D.value.body[p]], [isNaN(D.value.body[p] / J.value) ? "-" : D.value.body[p] / J.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = $t(o);
476
- xt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-treemap" });
477
- });
478
- }
479
- const ne = C(() => {
480
- const t = [
481
- e.value.table.columnNames.series,
482
- e.value.table.columnNames.value,
483
- e.value.table.columnNames.percentage
484
- ], o = D.value.head.map((p, H) => {
485
- const re = de(
486
- e.value.style.chart.layout.labels.formatter,
487
- D.value.body[H],
488
- le({
489
- p: e.value.style.chart.layout.labels.prefix,
490
- v: D.value.body[H],
491
- s: e.value.style.chart.layout.labels.suffix,
492
- r: e.value.table.td.roundingValue
493
- })
494
- );
495
- return [
496
- {
497
- color: p.color,
498
- name: p.name,
499
- shape: "square"
500
- },
501
- re,
502
- isNaN(D.value.body[H] / J.value) ? "-" : le({
503
- v: D.value.body[H] / J.value * 100,
504
- s: "%",
505
- r: e.value.table.td.roundingPercentage
506
- })
507
- ];
508
- }), l = {
509
- th: {
510
- backgroundColor: e.value.table.th.backgroundColor,
511
- color: e.value.table.th.color,
512
- outline: e.value.table.th.outline
513
- },
514
- td: {
515
- backgroundColor: e.value.table.td.backgroundColor,
516
- color: e.value.table.td.color,
517
- outline: e.value.table.td.outline
518
- },
519
- breakpoint: e.value.table.responsiveBreakpoint
520
- };
521
- return {
522
- colNames: [
523
- e.value.table.columnNames.series,
524
- e.value.table.columnNames.value
525
- ],
526
- head: t,
527
- body: o,
528
- config: l
529
- };
530
- });
531
- function ut() {
532
- return ee.value;
533
- }
534
- function He() {
535
- F.value.showTable = !F.value.showTable;
536
- }
537
- function We() {
538
- F.value.showTooltip = !F.value.showTooltip;
539
- }
540
- const se = g(!1);
541
- function fe() {
542
- se.value = !se.value;
543
- }
544
- return u({
545
- getData: ut,
546
- generateCsv: Ue,
547
- generateImage: ze,
548
- generatePdf: Ne,
549
- toggleTable: He,
550
- toggleTooltip: We,
551
- toggleAnnotator: fe
552
- }), (t, o) => (v(), y("div", {
553
- ref_key: "treemapChart",
554
- ref: T,
555
- class: pe(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
556
- style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
557
- id: `treemap_${z.value}`,
558
- onMouseenter: o[3] || (o[3] = () => m(xe)(!0)),
559
- onMouseleave: o[4] || (o[4] = () => m(xe)(!1))
560
- }, [
561
- e.value.userOptions.buttons.annotator ? (v(), q(Dt, {
562
- key: 0,
563
- svgRef: m(_e),
564
- backgroundColor: e.value.style.chart.backgroundColor,
565
- color: e.value.style.chart.color,
566
- active: se.value,
567
- onClose: fe
568
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
569
- tt.value ? (v(), y("div", {
570
- key: 1,
571
- ref_key: "noTitle",
572
- ref: ke,
573
- class: "vue-data-ui-no-title-space",
574
- style: "height:36px; width: 100%;background:transparent"
575
- }, null, 512)) : _("", !0),
576
- e.value.style.chart.title.text ? (v(), y("div", {
577
- key: 2,
578
- ref_key: "chartTitle",
579
- ref: M,
580
- style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
581
- }, [
582
- (v(), q(_t, {
583
- key: `title_${we.value}`,
584
- config: {
585
- title: {
586
- cy: "treemap-div-title",
587
- ...e.value.style.chart.title
588
- },
589
- subtitle: {
590
- cy: "treemap-div-subtitle",
591
- ...e.value.style.chart.title.subtitle
592
- }
593
- }
594
- }, null, 8, ["config"]))
595
- ], 4)) : _("", !0),
596
- e.value.userOptions.show && h.value && (m(Te) || m(ve)) ? (v(), q(St, {
597
- ref: "details",
598
- key: `user_option_${k.value}`,
599
- backgroundColor: e.value.style.chart.backgroundColor,
600
- color: e.value.style.chart.color,
601
- isPrinting: m(Se),
602
- isImaging: m(Ie),
603
- uid: z.value,
604
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
605
- hasPdf: e.value.userOptions.buttons.pdf,
606
- hasXls: e.value.userOptions.buttons.csv,
607
- hasImg: e.value.userOptions.buttons.img,
608
- hasTable: e.value.userOptions.buttons.table,
609
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
610
- isFullscreen: w.value,
611
- isTooltip: F.value.showTooltip,
612
- titles: { ...e.value.userOptions.buttonTitles },
613
- chartElement: T.value,
614
- position: e.value.userOptions.position,
615
- hasAnnotator: e.value.userOptions.buttons.annotator,
616
- isAnnotation: se.value,
617
- onToggleFullscreen: at,
618
- onGeneratePdf: m(Ne),
619
- onGenerateCsv: Ue,
620
- onGenerateImage: m(ze),
621
- onToggleTable: He,
622
- onToggleTooltip: We,
623
- onToggleAnnotator: fe,
624
- style: L({
625
- visibility: m(Te) ? m(ve) ? "visible" : "hidden" : "visible"
626
- })
627
- }, ht({ _: 2 }, [
628
- t.$slots.menuIcon ? {
629
- name: "menuIcon",
630
- fn: x(({ isOpen: l, color: a }) => [
631
- $(t.$slots, "menuIcon", X(j({ isOpen: l, color: a })), void 0, !0)
632
- ]),
633
- key: "0"
634
- } : void 0,
635
- t.$slots.optionTooltip ? {
636
- name: "optionTooltip",
637
- fn: x(() => [
638
- $(t.$slots, "optionTooltip", {}, void 0, !0)
639
- ]),
640
- key: "1"
641
- } : void 0,
642
- t.$slots.optionPdf ? {
643
- name: "optionPdf",
644
- fn: x(() => [
645
- $(t.$slots, "optionPdf", {}, void 0, !0)
646
- ]),
647
- key: "2"
648
- } : void 0,
649
- t.$slots.optionCsv ? {
650
- name: "optionCsv",
651
- fn: x(() => [
652
- $(t.$slots, "optionCsv", {}, void 0, !0)
653
- ]),
654
- key: "3"
655
- } : void 0,
656
- t.$slots.optionImg ? {
657
- name: "optionImg",
658
- fn: x(() => [
659
- $(t.$slots, "optionImg", {}, void 0, !0)
660
- ]),
661
- key: "4"
662
- } : void 0,
663
- t.$slots.optionTable ? {
664
- name: "optionTable",
665
- fn: x(() => [
666
- $(t.$slots, "optionTable", {}, void 0, !0)
667
- ]),
668
- key: "5"
669
- } : void 0,
670
- t.$slots.optionFullscreen ? {
671
- name: "optionFullscreen",
672
- fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
673
- $(t.$slots, "optionFullscreen", X(j({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
674
- ]),
675
- key: "6"
676
- } : void 0,
677
- t.$slots.optionAnnotator ? {
678
- name: "optionAnnotator",
679
- fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
680
- $(t.$slots, "optionAnnotator", X(j({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
681
- ]),
682
- key: "7"
683
- } : void 0
684
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
685
- te.value.length > 1 ? (v(), y("nav", Jt, [
686
- (v(!0), y(ue, null, me(te.value, (l, a) => (v(), y("span", {
687
- key: l.id || "root",
688
- onClick: (p) => a === te.value.length - 1 ? () => {
689
- } : Me(l.node),
690
- class: "vue-ui-treemap-crumb",
691
- "data-last-crumb": a === te.value.length - 1,
692
- style: L({
693
- color: e.value.style.chart.color
694
- })
695
- }, [
696
- O("span", Qt, [
697
- O("span", el, [
698
- $(t.$slots, "breadcrumb-label", Ge({ ref_for: !0 }, { crumb: l, isRoot: a === 0 }), () => [
699
- a === 0 ? (v(), y("div", tl, [
700
- ge(Bt, {
701
- name: "home",
702
- stroke: e.value.style.chart.color
703
- }, null, 8, ["stroke"])
704
- ])) : (v(), y(ue, { key: 1 }, [
705
- ie(Y(l.label), 1)
706
- ], 64))
707
- ], !0)
708
- ]),
709
- a < te.value.length - 1 ? (v(), y("span", ll, [
710
- $(t.$slots, "breadcrumb-arrow", {}, () => [
711
- o[5] || (o[5] = ie(" › "))
712
- ], !0)
713
- ])) : _("", !0)
714
- ])
715
- ], 12, Kt))), 128))
716
- ])) : _("", !0),
717
- h.value ? (v(), y("svg", {
718
- key: 5,
719
- ref_key: "svgRef",
720
- ref: _e,
721
- xmlns: m(Ct),
722
- class: pe({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !U.value, "vue-data-ui-zoom-minus": U.value }),
723
- viewBox: `${K.value.startX} ${K.value.startY} ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`,
724
- style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
725
- }, [
726
- ge(Lt),
727
- (v(!0), y(ue, null, me(ee.value, (l, a) => (v(), y("g", null, [
728
- e.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", al, [
729
- O("radialGradient", {
730
- id: `tgrad_${l.id}`,
731
- gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
732
- }, [
733
- O("stop", {
734
- offset: "18%",
735
- "stop-color": l.color
736
- }, null, 8, sl),
737
- O("stop", {
738
- offset: "100%",
739
- "stop-color": m(Xe)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
740
- }, null, 8, rl)
741
- ], 8, nl)
742
- ])) : _("", !0)
743
- ]))), 256)),
744
- (v(!0), y(ue, null, me(ee.value, (l, a) => (v(), y("g", null, [
745
- O("rect", {
746
- x: l.x0,
747
- y: l.y0,
748
- height: Le(l),
749
- width: De(l),
750
- fill: f.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
751
- rx: e.value.style.chart.layout.rects.borderRadius,
752
- stroke: R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
753
- "stroke-width": R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
754
- onClick: ft((p) => Me(l), ["stop"]),
755
- onMouseenter: () => rt({
756
- datapoint: l,
757
- seriesIndex: a
758
- }),
759
- onMouseleave: o[0] || (o[0] = (p) => {
760
- R.value = null, I.value = !1;
761
- }),
762
- style: L(`opacity:${R.value ? R.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
763
- class: pe([
764
- "vue-ui-treemap-rect",
765
- nt(l) ? "vue-data-ui-zoom-plus" : U.value ? "vue-data-ui-zoom-minus" : ""
766
- ])
767
- }, null, 46, ul),
768
- (v(), y("foreignObject", {
769
- x: l.x0,
770
- y: l.y0,
771
- height: Le(l),
772
- width: De(l),
773
- class: "vue-ui-treemap-cell-foreignObject"
774
- }, [
775
- O("div", cl, [
776
- e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || U.value) ? (v(), y("div", {
777
- key: 0,
778
- class: "vue-ui-treemap-cell-default",
779
- style: L(`width:calc(100% - ${E(l) / 1.5}px);text-align:left;line-height:${E(l) < 14 ? 14 : E(l)}px;padding:${E(l) / 3}px; color:${m(je)(l.color)}`)
780
- }, [
781
- O("span", {
782
- style: L(`width:100%;font-size:${E(l)}px;`)
783
- }, Y(l.name), 5),
784
- o[6] || (o[6] = O("br", null, null, -1)),
785
- O("span", {
786
- style: L(`width:100%;font-size:${E(l)}px;`)
787
- }, Y(m(de)(
788
- e.value.style.chart.layout.labels.formatter,
789
- l.value,
790
- m(le)({
791
- p: e.value.style.chart.layout.labels.prefix,
792
- v: l.value,
793
- s: e.value.style.chart.layout.labels.suffix,
794
- r: e.value.style.chart.layout.labels.rounding
795
- }),
796
- { datapoint: l }
797
- )), 5)
798
- ], 4)) : _("", !0),
799
- $(t.$slots, "rect", Ge({ ref_for: !0 }, {
800
- rect: l,
801
- shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || U.value,
802
- fontSize: E(l),
803
- isZoom: U.value,
804
- textColor: m(je)(l.color)
805
- }), void 0, !0)
806
- ])
807
- ], 8, il))
808
- ]))), 256)),
809
- $(t.$slots, "svg", X(j({ svg: W.value, isZoom: U.value, rect: R.value, config: e.value })), void 0, !0)
810
- ], 14, ol)) : _("", !0),
811
- t.$slots.watermark ? (v(), y("div", dl, [
812
- $(t.$slots, "watermark", X(j({ isPrinting: m(Se) || m(Ie) })), void 0, !0)
813
- ])) : _("", !0),
814
- h.value ? _("", !0) : (v(), q(zt, {
815
- key: 7,
816
- config: {
817
- type: "treemap",
818
- style: {
819
- backgroundColor: e.value.style.chart.backgroundColor,
820
- treemap: {
821
- color: "#CCCCCC"
822
- }
823
- }
824
- }
825
- }, null, 8, ["config"])),
826
- O("div", {
827
- ref_key: "chartLegend",
828
- ref: P
829
- }, [
830
- e.value.style.chart.legend.show ? (v(), q(Nt, {
831
- key: `legend_${$e.value}`,
832
- legendSet: Ve.value,
833
- config: st.value,
834
- id: `treemap_legend_${z.value}`,
835
- onClickMarker: o[1] || (o[1] = ({ legend: l }) => Be(l))
836
- }, {
837
- item: x(({ legend: l, index: a }) => [
838
- O("div", {
839
- onClick: (p) => Be(l),
840
- style: L(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
841
- }, [
842
- ie(Y(l.name) + ": " + Y(m(de)(
843
- e.value.style.chart.layout.labels.formatter,
844
- l.value,
845
- m(le)({
846
- p: e.value.style.chart.layout.labels.prefix,
847
- v: l.value,
848
- s: e.value.style.chart.layout.labels.suffix,
849
- r: e.value.style.chart.legend.roundingValue
850
- }),
851
- { datapoint: l }
852
- )) + " ", 1),
853
- b.value.includes(l.id) ? (v(), y("span", fl, " ( - % ) ")) : (v(), y("span", hl, " (" + Y(isNaN(l.value / J.value) ? "-" : (l.value / J.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
854
- ], 12, vl)
855
- ]),
856
- _: 1
857
- }, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
858
- key: 1,
859
- legend: Ve.value
860
- }, void 0, !0)
861
- ], 512),
862
- t.$slots.source ? (v(), y("div", {
863
- key: 8,
864
- ref_key: "source",
865
- ref: be,
866
- dir: "auto"
867
- }, [
868
- $(t.$slots, "source", {}, void 0, !0)
869
- ], 512)) : _("", !0),
870
- ge(It, {
871
- show: F.value.showTooltip && I.value,
872
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
873
- color: e.value.style.chart.tooltip.color,
874
- fontSize: e.value.style.chart.tooltip.fontSize,
875
- borderRadius: e.value.style.chart.tooltip.borderRadius,
876
- borderColor: e.value.style.chart.tooltip.borderColor,
877
- borderWidth: e.value.style.chart.tooltip.borderWidth,
878
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
879
- position: e.value.style.chart.tooltip.position,
880
- offsetY: e.value.style.chart.tooltip.offsetY,
881
- parent: T.value,
882
- content: A.value,
883
- isFullscreen: w.value,
884
- isCustom: m(Ye)(e.value.style.chart.tooltip.customFormat)
885
- }, {
886
- "tooltip-before": x(() => [
887
- $(t.$slots, "tooltip-before", X(j({ ...he.value })), void 0, !0)
888
- ]),
889
- "tooltip-after": x(() => [
890
- $(t.$slots, "tooltip-after", X(j({ ...he.value })), void 0, !0)
891
- ]),
892
- _: 3
893
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
894
- h.value ? (v(), q(Pt, {
895
- key: 9,
896
- hideDetails: "",
897
- config: {
898
- open: F.value.showTable,
899
- maxHeight: 1e4,
900
- body: {
901
- backgroundColor: e.value.style.chart.backgroundColor,
902
- color: e.value.style.chart.color
903
- },
904
- head: {
905
- backgroundColor: e.value.style.chart.backgroundColor,
906
- color: e.value.style.chart.color
907
- }
908
- }
909
- }, {
910
- content: x(() => [
911
- (v(), q(At, {
912
- key: `table_${Ce.value}`,
913
- colNames: ne.value.colNames,
914
- head: ne.value.head,
915
- body: ne.value.body,
916
- config: ne.value.config,
917
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
918
- onClose: o[2] || (o[2] = (l) => F.value.showTable = !1)
919
- }, {
920
- th: x(({ th: l }) => [
921
- O("div", {
922
- innerHTML: l,
923
- style: { display: "flex", "align-items": "center" }
924
- }, null, 8, pl)
925
- ]),
926
- td: x(({ td: l }) => [
927
- ie(Y(l.name || l), 1)
928
- ]),
929
- _: 1
930
- }, 8, ["colNames", "head", "body", "config", "title"]))
931
- ]),
932
- _: 1
933
- }, 8, ["config"])) : _("", !0)
934
- ], 46, Zt));
935
- }
936
- }, Fl = /* @__PURE__ */ Ut(gl, [["__scopeId", "data-v-5e08c158"]]);
937
- export {
938
- Fl as default
939
- };