vue-data-ui 2.3.90 → 2.3.91

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 (182) hide show
  1. package/dist/{Arrow-C_Fnn6al.js → Arrow-CHTslrAF.js} +1 -1
  2. package/dist/{Arrow-D1pymKl6.cjs → Arrow-DpuaFuue.cjs} +1 -1
  3. package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-DfaCNBgc.js} +1 -1
  4. package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
  5. package/dist/{DataTable-Cmbf3abv.js → DataTable-BKc3r3k3.js} +2 -2
  6. package/dist/{DataTable-cOEA6Z37.cjs → DataTable-CnkdsvIo.cjs} +1 -1
  7. package/dist/{Legend-XqP6-7Ac.cjs → Legend-BQJV6Xk4.cjs} +1 -1
  8. package/dist/{Legend-CCq0mNRg.js → Legend-WNL92WSx.js} +1 -1
  9. package/dist/PackageVersion-D9PU8glB.js +10 -0
  10. package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
  11. package/dist/{Shape-B51JGReT.cjs → Shape-CgW0V2Og.cjs} +1 -1
  12. package/dist/{Shape-BNocET8E.js → Shape-DPvoEBm9.js} +1 -1
  13. package/dist/{Slicer-BKszZXjM.js → Slicer-DE9nFM_c.js} +2 -2
  14. package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-Dma3nlzi.cjs} +1 -1
  15. package/dist/{Title-BaR4XyXa.cjs → Title-Bg_BK11V.cjs} +1 -1
  16. package/dist/{Title-DlBwa3-X.js → Title-CECK1w9L.js} +1 -1
  17. package/dist/{Tooltip-w32n-8sY.js → Tooltip-Ci3AprCm.js} +1 -1
  18. package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
  19. package/dist/{index-B8EMsnjU.cjs → index-BhH89oF0.cjs} +1 -1
  20. package/dist/{index-DQl1TFXa.js → index-mBy4elhB.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-BrIRtQj1.js} +1 -1
  23. package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
  24. package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
  25. package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Ck-yukK2.js} +1 -1
  26. package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
  27. package/dist/{vue-data-ui-Byrb_Y3k.js → vue-data-ui-BuL-2aYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-CM_usP2U.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
  32. package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-dyF20BlD.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
  35. package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
  36. package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
  38. package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
  39. package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
  43. package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
  44. package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
  45. package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
  48. package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
  49. package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-DZJI0YuX.js} +2 -2
  50. package/dist/{vue-ui-donut-B3yDJvZI.js → vue-ui-donut-CBG9ECp8.js} +118 -116
  51. package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
  52. package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-CzBvVRKG.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
  54. package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
  55. package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
  56. package/dist/{vue-ui-flow-DAOKURA6.js → vue-ui-flow-CXqGztWj.js} +65 -63
  57. package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
  58. package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-B86BK1JM.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
  60. package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BEludqYn.js} +56 -54
  61. package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-CFIBlG4V.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
  63. package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
  64. package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-ZkmD9EAg.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
  66. package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-zr721ux9.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
  71. package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-J_dI9m_i.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
  73. package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts-CtqU4xxu.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
  75. package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
  76. package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
  77. package/dist/{vue-ui-onion-BMo0Ye54.js → vue-ui-onion-CmUXelhy.js} +82 -80
  78. package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
  80. package/dist/{vue-ui-quadrant-BrRasVaj.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
  81. package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
  82. package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-uH33UIjX.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
  84. package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
  85. package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
  86. package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
  87. package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-DuRLpMwk.js} +2 -2
  88. package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
  90. package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
  91. package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
  92. package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
  93. package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
  94. package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
  96. package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
  97. package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
  98. package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-2EoxEmXW.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
  100. package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-DjNPMOkN.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
  102. package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
  103. package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
  104. package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
  105. package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-DVXxA6ji.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
  107. package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
  108. package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
  109. package/dist/{vue-ui-sparkline-CH89kcaa.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
  110. package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-BS9I8en7.js} +46 -44
  111. package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
  113. package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
  114. package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
  115. package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
  116. package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
  117. package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-Dtfv71zG.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
  122. package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
  124. package/dist/{vue-ui-timer-B8jW8M60.js → vue-ui-timer-2PRDq1w6.js} +62 -60
  125. package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
  126. package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-riEfve5q.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
  128. package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
  129. package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
  130. package/dist/{vue-ui-vertical-bar-CxRBvHZy.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
  131. package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
  132. package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
  133. package/dist/{vue-ui-waffle-B8G4i5WH.js → vue-ui-waffle-wikAjwZY.js} +72 -70
  134. package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
  135. package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
  136. package/dist/{vue-ui-word-cloud-dMBTVGVk.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
  137. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
  138. package/dist/{vue-ui-xy-iUQyB_PL.js → vue-ui-xy-CUjllUSv.js} +507 -504
  139. package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
  140. package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
  145. package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
  146. package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
  147. package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
  148. package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
  149. package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
  150. package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
  151. package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
  152. package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
  153. package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
  154. package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
  155. package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
  158. package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
  160. package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
  162. package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
  164. package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
  165. package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
  166. package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
  170. package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
  171. package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
  172. package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
  173. package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
  174. package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
  175. package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
  176. package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
  177. package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
  178. package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
  179. package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
  180. package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
  181. package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
  182. package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
@@ -1,17 +1,18 @@
1
- import { computed as h, ref as p, watch as H, onMounted as le, openBlock as n, createElementBlock as c, normalizeClass as O, normalizeStyle as R, createBlock as S, createCommentVNode as _, unref as d, createSlots as oe, withCtx as A, renderSlot as x, normalizeProps as Y, guardReactiveProps as q, Fragment as J, renderList as K, toDisplayString as se } from "vue";
2
- import { u as Q } from "./useNestedProp-lmeFt-ev.js";
3
- import { u as re, c as ne, t as ue, v as ie, o as ce, e as ve, w as W, X as he, i as de, f as me } from "./index-DQl1TFXa.js";
4
- import { _ as fe } from "./Title-DlBwa3-X.js";
5
- import { u as ge, U as ye } from "./usePrinter-DgKGVvJC.js";
6
- import pe from "./vue-ui-skeleton-BVJGmYjj.js";
7
- import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const _e = ["id"], be = {
1
+ import { computed as h, ref as p, watch as H, onMounted as le, openBlock as n, createElementBlock as c, normalizeClass as O, normalizeStyle as R, createBlock as S, createCommentVNode as _, unref as d, createSlots as oe, withCtx as A, renderSlot as x, normalizeProps as Y, guardReactiveProps as q, createVNode as re, Fragment as J, renderList as K, toDisplayString as se } from "vue";
2
+ import { u as Q } from "./useNestedProp-BrIRtQj1.js";
3
+ import { u as ne, c as ue, t as ie, v as ce, o as ve, e as he, w as V, X as de, i as me, f as fe } from "./index-mBy4elhB.js";
4
+ import { _ as ge } from "./Title-CECK1w9L.js";
5
+ import { u as ye, U as pe } from "./usePrinter-Ck-yukK2.js";
6
+ import ke from "./vue-ui-skeleton-DDhwPZd_.js";
7
+ import { _ as _e } from "./PackageVersion-D9PU8glB.js";
8
+ import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const Ce = ["id"], $e = {
9
10
  key: 0,
10
11
  style: "width:100%;background:transparent;padding-bottom:12px"
11
- }, Ce = ["xmlns", "viewBox"], $e = { key: 0 }, we = ["d", "stroke-width", "stroke"], xe = { key: 1 }, Pe = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Ie = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Fe = {
12
+ }, we = ["xmlns", "viewBox"], xe = { key: 0 }, Pe = ["d", "stroke-width", "stroke"], Ie = { key: 1 }, Fe = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], ze = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Oe = {
12
13
  key: 3,
13
14
  class: "vue-data-ui-watermark"
14
- }, ze = {
15
+ }, Se = {
15
16
  __name: "vue-ui-tiremarks",
16
17
  props: {
17
18
  config: {
@@ -27,8 +28,8 @@ const _e = ["id"], be = {
27
28
  }
28
29
  }
29
30
  },
30
- setup(Z, { expose: V }) {
31
- const v = Z, { vue_ui_tiremarks: ee } = re(), F = h(() => !!v.dataset && Object.keys(v.dataset).length), z = p(ne()), N = p(null), G = p(0), L = p(0), e = h({
31
+ setup(W, { expose: Z }) {
32
+ const v = W, { vue_ui_tiremarks: ee } = ne(), F = h(() => !!v.dataset && Object.keys(v.dataset).length), z = p(ue()), N = p(null), G = p(0), L = p(0), e = h({
32
33
  get: () => M(),
33
34
  set: (t) => t
34
35
  });
@@ -39,7 +40,7 @@ const _e = ["id"], be = {
39
40
  });
40
41
  return t.theme ? {
41
42
  ...Q({
42
- userConfig: ue.vue_ui_tiremarks[t.theme] || v.config,
43
+ userConfig: ie.vue_ui_tiremarks[t.theme] || v.config,
43
44
  defaultConfig: t
44
45
  })
45
46
  } : t;
@@ -47,30 +48,30 @@ const _e = ["id"], be = {
47
48
  H(() => v.config, (t) => {
48
49
  e.value = M(), X(), L.value += 1;
49
50
  }, { deep: !0 });
50
- const { isPrinting: U, isImaging: j, generatePdf: B, generateImage: E } = ge({
51
+ const { isPrinting: U, isImaging: j, generatePdf: B, generateImage: E } = ye({
51
52
  elementId: z.value,
52
53
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
53
- }), s = p(e.value.style.chart.animation.use ? 0 : ie(v.dataset.percentage));
54
+ }), r = p(e.value.style.chart.animation.use ? 0 : ce(v.dataset.percentage));
54
55
  H(() => v.dataset, (t) => {
55
- e.value.style.chart.animation.use ? T(t.percentage) : s.value = t.percentage || 0;
56
+ e.value.style.chart.animation.use ? T(t.percentage) : r.value = t.percentage || 0;
56
57
  }, { deep: !0 }), le(() => {
57
58
  X();
58
59
  });
59
60
  function T(t) {
60
61
  let u = e.value.style.chart.animation.speed;
61
- const a = Math.abs(t - s.value) / (u * 120);
62
+ const a = Math.abs(t - r.value) / (u * 120);
62
63
  function o() {
63
- s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(o);
64
+ r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(o);
64
65
  }
65
66
  o();
66
67
  }
67
68
  function X() {
68
- ce(v.dataset) && ve({
69
+ ve(v.dataset) && he({
69
70
  componentName: "VueUiTiremarks",
70
71
  type: "dataset"
71
72
  }), T(v.dataset.percentage || 0);
72
73
  }
73
- const k = h(() => e.value.style.chart.layout.display === "vertical"), r = h(() => {
74
+ const k = h(() => e.value.style.chart.layout.display === "vertical"), s = h(() => {
74
75
  const t = {
75
76
  top: 48,
76
77
  left: 64,
@@ -88,7 +89,7 @@ const _e = ["id"], be = {
88
89
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
89
90
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
90
91
  };
91
- }), P = h(() => Object.values(r.value).reduce((t, u) => t + u, 0)), l = h(() => ({
92
+ }), P = h(() => Object.values(s.value).reduce((t, u) => t + u, 0)), l = h(() => ({
92
93
  height: k.value ? 312 : 56,
93
94
  width: k.value ? 56 : 312
94
95
  })), te = p(100);
@@ -102,9 +103,9 @@ const _e = ["id"], be = {
102
103
  }), D = h(() => {
103
104
  const t = [];
104
105
  for (let a = 0; a < 100; a += 1) {
105
- const o = e.value.style.chart.layout.ticks.gradient.show ? W(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
106
+ const o = e.value.style.chart.layout.ticks.gradient.show ? V(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
106
107
  if (k.value) {
107
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - r.value.left - r.value.right) / 100 / 3 : 0, m = r.value.left + 4 + C, f = l.value.width - r.value.right - 4 - C, g = l.value.height - r.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, y = l.value.height - r.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, $ = (f - m) / e.value.style.chart.layout.curveAngleX, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
108
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - s.value.left - s.value.right) / 100 / 3 : 0, m = s.value.left + 4 + C, f = l.value.width - s.value.right - 4 - C, g = l.value.height - s.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, y = l.value.height - s.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, $ = (f - m) / e.value.style.chart.layout.curveAngleX, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
108
109
  t.push({
109
110
  x1: m,
110
111
  x2: f,
@@ -114,7 +115,7 @@ const _e = ["id"], be = {
114
115
  color: o
115
116
  });
116
117
  } else {
117
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - r.value.top - r.value.bottom) / 100 / 3 : 0, m = r.value.left + a * i.value.mark + a * i.value.space - i.value.mark, f = m, g = r.value.top + 4 + C, y = l.value.height - r.value.bottom - 4 - C, $ = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), w = (y - g) / e.value.style.chart.layout.curveAngleX;
118
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - s.value.top - s.value.bottom) / 100 / 3 : 0, m = s.value.left + a * i.value.mark + a * i.value.space - i.value.mark, f = m, g = s.value.top + 4 + C, y = l.value.height - s.value.bottom - 4 - C, $ = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), w = (y - g) / e.value.style.chart.layout.curveAngleX;
118
119
  t.push({
119
120
  x1: m,
120
121
  x2: f,
@@ -129,7 +130,7 @@ const _e = ["id"], be = {
129
130
  }), b = h(() => {
130
131
  let t, u, a;
131
132
  const o = e.value.style.chart.percentage.fontSize / 3;
132
- return k.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, u = r.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, u = l.value.height - r.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, u = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - r.value.right + 8, u = l.value.height / 2 + o, a = "start"), {
133
+ return k.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, u = s.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, u = l.value.height - s.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, u = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - s.value.right + 8, u = l.value.height / 2 + o, a = "start"), {
133
134
  x: t,
134
135
  y: u,
135
136
  textAnchor: a,
@@ -141,7 +142,7 @@ const _e = ["id"], be = {
141
142
  function ae(t) {
142
143
  I.value = t, G.value += 1;
143
144
  }
144
- return V({
145
+ return Z({
145
146
  generatePdf: B,
146
147
  generateImage: E
147
148
  }), (t, u) => (n(), c("div", {
@@ -151,8 +152,8 @@ const _e = ["id"], be = {
151
152
  style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
152
153
  id: z.value
153
154
  }, [
154
- e.value.style.chart.title.text ? (n(), c("div", be, [
155
- (n(), S(fe, {
155
+ e.value.style.chart.title.text ? (n(), c("div", $e, [
156
+ (n(), S(ge, {
156
157
  key: `title_${L.value}`,
157
158
  config: {
158
159
  title: {
@@ -166,7 +167,7 @@ const _e = ["id"], be = {
166
167
  }
167
168
  }, null, 8, ["config"]))
168
169
  ])) : _("", !0),
169
- e.value.userOptions.show && F.value ? (n(), S(ye, {
170
+ e.value.userOptions.show && F.value ? (n(), S(pe, {
170
171
  ref: "details",
171
172
  key: `user_options_${G.value}`,
172
173
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -210,54 +211,55 @@ const _e = ["id"], be = {
210
211
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
211
212
  F.value ? (n(), c("svg", {
212
213
  key: 2,
213
- xmlns: d(he),
214
+ xmlns: d(de),
214
215
  class: O({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
215
216
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
216
217
  style: R(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
217
218
  }, [
218
- e.value.style.chart.layout.curved ? (n(), c("g", $e, [
219
+ re(_e),
220
+ e.value.style.chart.layout.curved ? (n(), c("g", xe, [
219
221
  (n(!0), c(J, null, K(D.value, (a, o) => (n(), c("path", {
220
222
  d: a.curve,
221
223
  "stroke-width": i.value.mark,
222
- stroke: s.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
224
+ stroke: r.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
223
225
  "stroke-linecap": "round",
224
226
  fill: "none",
225
- class: O({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= s.value })
226
- }, null, 10, we))), 256))
227
- ])) : (n(), c("g", xe, [
227
+ class: O({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= r.value })
228
+ }, null, 10, Pe))), 256))
229
+ ])) : (n(), c("g", Ie, [
228
230
  (n(!0), c(J, null, K(D.value, (a, o) => (n(), c("line", {
229
231
  x1: a.x1,
230
232
  y1: a.y1,
231
233
  x2: a.x2,
232
234
  y2: a.y2,
233
235
  "stroke-width": i.value.mark,
234
- stroke: s.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
236
+ stroke: r.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
235
237
  "stroke-linecap": "round"
236
- }, null, 8, Pe))), 256))
238
+ }, null, 8, Fe))), 256))
237
239
  ])),
238
240
  e.value.style.chart.percentage.show ? (n(), c("text", {
239
241
  key: 2,
240
242
  x: b.value.x,
241
243
  y: b.value.y,
242
244
  "font-size": b.value.fontSize,
243
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? d(W)(e.value.style.chart.layout.activeColor, s.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
245
+ fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? d(V)(e.value.style.chart.layout.activeColor, r.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
244
246
  "font-weight": b.value.bold ? "bold" : "normal",
245
247
  "text-anchor": b.value.textAnchor
246
- }, se(d(de)(
248
+ }, se(d(me)(
247
249
  e.value.style.chart.percentage.formatter,
248
- s.value,
249
- d(me)({
250
- v: s.value,
250
+ r.value,
251
+ d(fe)({
252
+ v: r.value,
251
253
  s: "%",
252
254
  r: e.value.style.chart.percentage.rounding
253
255
  })
254
- )), 9, Ie)) : _("", !0),
256
+ )), 9, ze)) : _("", !0),
255
257
  x(t.$slots, "svg", { svg: l.value }, void 0, !0)
256
- ], 14, Ce)) : _("", !0),
257
- t.$slots.watermark ? (n(), c("div", Fe, [
258
+ ], 14, we)) : _("", !0),
259
+ t.$slots.watermark ? (n(), c("div", Oe, [
258
260
  x(t.$slots, "watermark", Y(q({ isPrinting: d(U) || d(j) })), void 0, !0)
259
261
  ])) : _("", !0),
260
- F.value ? _("", !0) : (n(), S(pe, {
262
+ F.value ? _("", !0) : (n(), S(ke, {
261
263
  key: 4,
262
264
  config: {
263
265
  type: "tiremarks",
@@ -269,9 +271,9 @@ const _e = ["id"], be = {
269
271
  }
270
272
  }
271
273
  }, null, 8, ["config"]))
272
- ], 14, _e));
274
+ ], 14, Ce));
273
275
  }
274
- }, Ue = /* @__PURE__ */ ke(ze, [["__scopeId", "data-v-5286f666"]]);
276
+ }, Ee = /* @__PURE__ */ be(Se, [["__scopeId", "data-v-9130298e"]]);
275
277
  export {
276
- Ue as default
278
+ Ee as default
277
279
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BhH89oF0.cjs"),$e=require("./Title-Bg_BK11V.cjs"),ce=require("./usePrinter-B8jr_V3b.cjs"),Se=require("./Tooltip-lM1Jzkza.cjs"),Ne=require("./Legend-BQJV6Xk4.cjs"),_e=require("./vue-ui-skeleton-Cf89QIhl.cjs"),Be=require("./DataTable-CnkdsvIo.cjs"),ze=require("./vue-ui-accordion-Bzq1iTL2.cjs"),de=require("./useResponsive-B3TrDDIG.cjs"),ve=require("./useNestedProp-m8IH8hWW.cjs"),Pe=require("./PackageVersion-LdLhc8hQ.cjs"),Oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function he(n,d){const s=n.length;if(s===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let u=1/0,i=-1/0,v=0;for(let f=0;f<s;f+=1){const p=n[f].normalizedValue;p<u&&(u=p),p>i&&(i=p),v+=p}return Math.max(d**2*i/v**2,v**2/(d**2*u))}}function pe(n){const{xOffset:d,yOffset:s,width:u,height:i}=n;return{x0:d,y0:s,x1:d+u,y1:s+i}}function Ve(n,d,s){if(n.length===0)return!0;{const u=n.concat(d),i=he(n,s),v=he(u,s);return i>=v}}function Ee(n){const d=[],s=n.length;for(let u=0;u<s;u+=1){const i=n[u],v=i.length;for(let h=0;h<v;h+=1)d.push(i[h])}return d}function Le(n,d){const s={...d,children:n};return ge(s)}function Re(n){return(n.x1-n.x0)*(n.y1-n.y0)}function fe(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=G(d),h=n.length,f=n.map(m=>m.normalizedValue||0).reduce((m,k)=>m+k,0),p=f/u,C=f/s;let b=i,w=v;const g=[];if(s>=u){for(let m=0;m<h;m+=1){const k=n[m],x=w+k.normalizedValue/p,_={x0:b,y0:w,x1:b+p,y1:x},T=Object.assign({},k,_);w=x,g.push(T)}return g}else{for(let m=0;m<h;m+=1){const k=n[m],x=b+k.normalizedValue/C,_={x0:b,y0:w,x1:x,y1:w+C},T=Object.assign({},k,_);b=x,g.push(T)}return g}}function Fe(n){const d=G(n),s=d.width,u=d.height;return Math.min(s,u)}function Ie(n,d){const s=n.length,u=n.map(p=>p.value??0).reduce((p,C)=>p+C,0),i=d/u,v=[];let h,f;for(let p=0;p<s;p+=1)f=n[p],h=Object.assign({},f,{normalizedValue:f.value*(i||0)}),v.push(h);return v}function G(n){const{x0:d,y0:s,x1:u,y1:i}=n;return{xOffset:d,yOffset:s,width:u-d,height:i-s}}function De(n,d,s,u){let i=n,v=d,h=s,f=u;for(;;){const p=i.length;if(p===0){const g=fe(v,h);return f.concat(g)}const C=Fe(h),b=i[0],w=i.slice(1,p);if(Ve(v,b,C)){const g=v.concat(b);i=w,v=g,h=h,f=f}else{const g=v.length;let m=0;for(let T=0;T<g;T+=1)m+=v[T].normalizedValue;const k=qe(h,m),x=fe(v,h),_=f.concat(x);i=i,v=[],h=k,f=_}}}function ge(n){if(typeof n.children>"u"||!n.children.length)return[n];{const d=Ie(n.children,Re(n)),s=De(d,[],n,[]),u=s.length,i=[];for(let h=0;h<u;h+=1)i.push(ge(s[h]));return Ee(i)}}function qe(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=G(n);if(s>=u){const h=d/u,f=s-h,p={xOffset:i+h,yOffset:v,width:f,height:u};return pe(p)}else{const h=d/s,f=u-h,p={xOffset:i,yOffset:v+h,width:s,height:f};return pe(p)}}const Ae=n=>(e.pushScopeId("data-v-f7f2df00"),n=n(),e.popScopeId(),n),He=["id"],Me=["xmlns","viewBox"],We={key:0},Ue=["id"],Ge=["stop-color"],je=["stop-color"],Xe=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],Ye=["x","y","height","width"],Ze={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},Je=Ae(()=>e.createElementVNode("br",null,null,-1)),Ke={key:3,class:"vue-data-ui-watermark"},Qe=["onClick"],et={key:0},tt={key:1},lt=["innerHTML"],ot={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:d,emit:s}){const u=n,{vue_ui_treemap:i}=r.useConfig(),v=e.computed(()=>!!u.dataset&&u.dataset.length),h=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),f=e.ref(r.createUid()),p=e.ref(!1),C=e.ref(""),b=e.ref(!1),w=e.ref(0),g=e.ref([]),m=e.ref(null),k=e.ref(null),x=e.ref(null),_=e.ref(0),T=e.ref(0),j=e.ref(0),t=e.computed({get:()=>X(),set:l=>l});function X(){const l=ve.useNestedProp({userConfig:u.config,defaultConfig:i});return l.theme?{...ve.useNestedProp({userConfig:r.themes.vue_ui_treemap[l.theme]||u.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>u.config,l=>{t.value=X(),_.value+=1,T.value+=1,j.value+=1},{deep:!0});const{isPrinting:Y,isImaging:Z,generatePdf:J,generateImage:K}=ce.usePrinter({elementId:`treemap_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),D=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),z=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),O=e.computed(()=>({bottom:z.value.height-t.value.style.chart.padding.bottom,height:z.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:z.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:z.value.height,vbWidth:z.value.width,width:z.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function Q(l){l.forEach((a,o)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||D.value[o]||r.palette[o]||r.palette[o%r.palette.length],a.children&&(a.children.forEach(c=>{c.parentId=a.id,c.color=a.color}),Q(a.children))})}const V=e.ref(u.dataset),q=e.ref(null);e.onMounted(()=>{me()});function me(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),Q(V.value),t.value.responsive){const l=de.throttle(()=>{const{width:a,height:o}=de.useResponsive({chart:m.value,title:t.value.style.chart.title.text?k.value:null,legend:t.value.style.chart.legend.show?x.value:null});z.value.width=a,z.value.height=o});q.value=new ResizeObserver(l),q.value.observe(m.value.parentNode)}}e.onBeforeUnmount(()=>{q.value&&q.value.disconnect()});const M=e.ref(V.value),F=e.computed(()=>M.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(l=>!g.value.includes(l.id))),L=e.computed(()=>V.value.filter(l=>!g.value.includes(l.id)).map(l=>l.value||0).reduce((l,a)=>l+a,0)),ee=e.computed({get(){let l=[...F.value];return t.value.style.chart.layout.sorted&&(l=[...F.value].sort((a,o)=>o.value-a.value)),l.map(a=>({...a}))},set(l){return l}});function te(l,a){return l.value/a}function ye(l,a,o){const c=t.value.style.chart.layout.rects.colorRatio-te(a,o);return r.lightenHexColor(l,c<0?0:c)}function le(l,a,o,c){return l.map((y,P)=>{const H=ye(r.convertColorToHex(a)||D.value[P]||r.palette[P]||r.palette[P%r.palette.length],y,c),Te=te(y,c);return{...y,color:H,proportion:Te,parentName:o,children:y.children?le(y.children,H,y.name,c):void 0}})}const I=e.computed(()=>Le(ee.value.map((l,a)=>{const o=l.children?l.children.reduce((c,y)=>c+y.value,0):l.value;return{value:l.value,id:l.id,children:l.children?le(l.children.sort((c,y)=>y.value-c.value),l.color,l.name,o):void 0,color:l.color,name:l.name}}),{x0:O.value.left*2,y0:O.value.top,x1:O.value.width,y1:O.value.height}));function oe({y0:l,y1:a}){return a-l<=0?1e-4:a-l}function ae({x0:l,x1:a}){return a-l<=0?1e-4:a-l}function E(l){const a=t.value.style.chart.layout.labels.fontSize*(l.proportion*2>1?1:l.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function be(l){b.value=l,w.value+=1}const R=e.computed(()=>({startX:0,startY:0,width:O.value.vbWidth,height:O.value.vbHeight})),$=e.ref(!1);function W(l,a=V.value){for(const o of a){if(o.id===l)return o;if(o.children){const c=W(l,o.children);if(c)return c}}return null}function ke(l){if($.value)s("selectDatapoint",void 0),M.value=V.value;else{if(s("selectDatapoint",l),!W(l.parentId))return;M.value=[W(l.parentId)]}$.value=!$.value}const S=e.ref(null),ne=e.computed(()=>V.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((l,a)=>a.value-l.value).map((l,a)=>({...l,proportion:l.value/V.value.map(o=>o.value).reduce((o,c)=>o+c,0),opacity:g.value.includes(l.id)?.5:1}))),Ce=e.computed(()=>({cy:"treemap-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function re(l){$.value=!1,S.value=null,g.value.includes(l.id)?g.value=g.value.filter(a=>a!==l.id):g.value.length<u.dataset.length-1&&g.value.push(l.id),s("selectLegend",ee.value)}const U=e.ref(null);function we({datapoint:l,seriesIndex:a}){S.value=l,U.value={datapoint:l,seriesIndex:a,config:t.value,series:F.value};const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:a,datapoint:l,series:F.value,config:t.value})))C.value=o({seriesIndex:a,datapoint:l,series:F.value,config:t.value});else{let c="";c+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,c+=`<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="${l.color}"/></svg>`,c+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:a})}</b>`,C.value=`<div>${c}</div>`}p.value=!0}const N=e.computed(()=>{const l=I.value.map(o=>({name:o.name,color:o.color})),a=I.value.map(o=>o.value);return{head:l,body:a}});function ue(){e.nextTick(()=>{const l=N.value.head.map((c,y)=>[[c.name],[N.value.body[y]],[isNaN(N.value.body[y]/L.value)?"-":N.value.body[y]/L.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const A=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((y,P)=>{const H=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[P],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[P],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:y.color,name:y.name,shape:"square"},H,isNaN(N.value.body[P]/L.value)?"-":r.dataLabel({v:N.value.body[P]/L.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:a,config:o}});function xe(){return I.value}function se(){B.value.showTable=!B.value.showTable}function ie(){B.value.showTooltip=!B.value.showTooltip}return d({getData:xe,generateCsv:ue,generateImage:K,generatePdf:J,toggleTable:se,toggleTooltip:ie}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:m,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`treemap_${f.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock($e._sfc_main,{key:`title_${_.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&v.value?(e.openBlock(),e.createBlock(ce.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(Z),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:B.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,position:t.value.userOptions.position,onToggleFullscreen:be,onGeneratePdf:e.unref(J),onGenerateCsv:ue,onGenerateImage:e.unref(K),onToggleTable:se,onToggleTooltip:ie},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!$.value,"vue-data-ui-zoom-minus":$.value}),viewBox:`${R.value.startX} ${R.value.startY} ${R.value.width<=0?10:R.value.width} ${R.value.height<=0?10:R.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",We,[e.createElementVNode("radialGradient",{id:`tgrad_${o.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":o.color},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,je)],8,Ue)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.x0,y:o.y0,height:oe(o),width:ae(o),fill:h.value?o.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${o.id})`:o.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:y=>ke(o),onMouseenter:()=>we({datapoint:o,seriesIndex:c}),onMouseleave:a[0]||(a[0]=y=>{S.value=null,p.value=!1}),style:e.normalizeStyle(`opacity:${S.value?S.value.id===o.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,Xe),(e.openBlock(),e.createElementBlock("foreignObject",{x:o.x0,y:o.y0,height:oe(o),width:ae(o),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",Ze,[t.value.style.chart.layout.labels.showDefaultLabels&&(o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${E(o)/1.5}px);text-align:left;line-height:${E(o)<14?14:E(o)}px;padding:${E(o)/3}px; color:${e.unref(r.adaptColorToBackground)(o.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(o)}px;`)},e.toDisplayString(o.name),5),Je,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(o)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:o})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:o,shouldShow:o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value,fontSize:E(o),isZoom:$.value,textColor:e.unref(r.adaptColorToBackground)(o.color)})),void 0,!0)])],8,Ye))]))),256)),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:O.value,isZoom:$.value,rect:S.value,config:t.value})),void 0,!0)],14,Me)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_e.default,{key:4,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:x},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ne.Legend,{key:`legend_${j.value}`,legendSet:ne.value,config:Ce.value,id:`treemap_legend_${f.value}`,onClickMarker:a[1]||(a[1]=({legend:o})=>re(o))},{item:e.withCtx(({legend:o,index:c})=>[e.createElementVNode("div",{onClick:y=>re(o),style:e.normalizeStyle(`opacity:${g.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o}))+" ",1),g.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",tt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",et," ("+e.toDisplayString(isNaN(o.value/L.value)?"-":(o.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,Qe)]),_:1},8,["legendSet","config","id"])):e.renderSlot(l.$slots,"legend",{key:1,legend:ne.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:B.value.showTooltip&&p.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:C.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),v.value?(e.openBlock(),e.createBlock(ze.default,{key:5,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Be.DataTable,{key:`table_${T.value}`,colNames:A.value.colNames,head:A.value.head,body:A.value.body,config:A.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>B.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,lt)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,He))}},at=Oe._export_sfc(ot,[["__scopeId","data-v-f7f2df00"]]);exports.default=at;