vue-data-ui 2.4.51 → 2.4.52

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 (178) hide show
  1. package/dist/{Arrow-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
  2. package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
  3. package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
  4. package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
  5. package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
  6. package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
  7. package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
  8. package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
  9. package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
  10. package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
  11. package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
  12. package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
  13. package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
  14. package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
  15. package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
  16. package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
  17. package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
  18. package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
  19. package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
  20. package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
  21. package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
  22. package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
  25. package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
  26. package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
  27. package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
  28. package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
  29. package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
  33. package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
  34. package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
  35. package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
  36. package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
  38. package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
  39. package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
  40. package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
  41. package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
  42. package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
  44. package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
  45. package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
  46. package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
  47. package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
  48. package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
  49. package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
  51. package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
  52. package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
  54. package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
  55. package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
  56. package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
  57. package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
  58. package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
  60. package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
  61. package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
  62. package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
  63. package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
  65. package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
  66. package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
  67. package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
  68. package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
  69. package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
  70. package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
  71. package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
  72. package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
  73. package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
  74. package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
  75. package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
  78. package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
  79. package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
  80. package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
  82. package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
  83. package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
  84. package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
  85. package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
  86. package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
  87. package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
  88. package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
  89. package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
  91. package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
  92. package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
  93. package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
  94. package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
  95. package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
  96. package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
  97. package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
  98. package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
  99. package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
  100. package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
  101. package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
  102. package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
  103. package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
  106. package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
  107. package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
  116. package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
  117. package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
  118. package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
  120. package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
  121. package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
  122. package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
  123. package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
  124. package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
  125. package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
  126. package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
  127. package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
  128. package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
  130. package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
  131. package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
  132. package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
  133. package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
  134. package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
  135. package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
  136. package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
  137. package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
  138. package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
  139. package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
  140. package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
  141. package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
  142. package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
  143. package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
  144. package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
  146. package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
  147. package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
  148. package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
  149. package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
  152. package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
  153. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
  154. package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
  155. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
  156. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
  157. package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
  158. package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
  159. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
  160. package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
  161. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
  162. package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
  163. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
  164. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
  165. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
  166. package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
  167. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
  168. package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
  169. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
  170. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
  171. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
  173. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
  174. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
  175. package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
  176. package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
  177. package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
  178. package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { computed as h, ref as f, watch as W, onMounted as ce, openBlock as s, createElementBlock as c, normalizeClass as T, normalizeStyle as U, unref as n, createBlock as I, createCommentVNode as y, createSlots as ve, withCtx as F, renderSlot as b, normalizeProps as G, guardReactiveProps as L, createVNode as he, Fragment as Z, renderList as ee, toDisplayString as de } from "vue";
2
- import { u as te } from "./useNestedProp-BN8claGG.js";
3
- import { u as pe, c as fe, t as ye, v as me, o as ge, e as ke, w as ae, X as be, i as _e, f as Ce } from "./index-BbPeL8Gp.js";
4
- import { _ as $e } from "./Title-aSAft5dl.js";
5
- import { u as we, U as xe } from "./usePrinter-DaybDVqP.js";
6
- import Pe from "./vue-ui-skeleton-Bniq21d9.js";
7
- import { _ as Ae } from "./PackageVersion-CxJghxYD.js";
8
- import { P as Oe } from "./PenAndPaper-ZdZEumki.js";
1
+ import { computed as h, ref as p, watch as W, onMounted as ce, openBlock as s, createElementBlock as c, normalizeClass as U, normalizeStyle as G, unref as n, createBlock as I, createCommentVNode as y, createSlots as ve, withCtx as F, renderSlot as b, normalizeProps as L, guardReactiveProps as j, createVNode as he, Fragment as Z, renderList as ee, toDisplayString as de } from "vue";
2
+ import { u as te } from "./useNestedProp-DifqJZAs.js";
3
+ import { u as fe, c as pe, t as ye, v as me, o as ge, e as ke, w as ae, X as be, i as _e, f as Ce } from "./index-K5uyh1gA.js";
4
+ import { _ as $e } from "./Title-aMb2ETf7.js";
5
+ import { u as we, U as xe } from "./usePrinter-p_ZZlGc9.js";
6
+ import Pe from "./vue-ui-skeleton-BhA2lIT6.js";
7
+ import { _ as Oe } from "./PackageVersion-Dz3KcTL4.js";
8
+ import { P as Ae } from "./PenAndPaper-BycdTwSP.js";
9
9
  import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
10
10
  import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const ze = ["id"], Se = {
@@ -35,10 +35,10 @@ const ze = ["id"], Se = {
35
35
  }
36
36
  },
37
37
  setup(le, { expose: oe }) {
38
- const d = le, { vue_ui_tiremarks: se } = pe(), z = h(() => !!d.dataset && Object.keys(d.dataset).length), S = f(fe()), N = f(null), re = f(null), j = f(0), B = f(0), e = h({
38
+ const d = le, { vue_ui_tiremarks: se } = fe(), z = h(() => !!d.dataset && Object.keys(d.dataset).length), S = p(pe()), N = p(null), re = p(null), B = p(0), E = p(0), e = h({
39
39
  get: () => H(),
40
40
  set: (t) => t
41
- }), { userOptionsVisible: E, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value });
41
+ }), { userOptionsVisible: M, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value });
42
42
  function H() {
43
43
  const t = te({
44
44
  userConfig: d.config,
@@ -52,12 +52,12 @@ const ze = ["id"], Se = {
52
52
  } : t;
53
53
  }
54
54
  W(() => d.config, (t) => {
55
- e.value = H(), K(), B.value += 1;
55
+ e.value = H(), M.value = !e.value.showOnChartHover, K(), E.value += 1;
56
56
  }, { deep: !0 });
57
57
  const { isPrinting: R, isImaging: V, generatePdf: Y, generateImage: q } = we({
58
58
  elementId: S.value,
59
59
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
60
- }), ne = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = f(e.value.style.chart.animation.use ? 0 : me(d.dataset.percentage));
60
+ }), ne = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = p(e.value.style.chart.animation.use ? 0 : me(d.dataset.percentage));
61
61
  W(() => d.dataset, (t) => {
62
62
  e.value.style.chart.animation.use ? J(t.percentage) : u.value = t.percentage || 0;
63
63
  }, { deep: !0 }), ce(() => {
@@ -98,7 +98,7 @@ const ze = ["id"], Se = {
98
98
  }), P = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), l = h(() => ({
99
99
  height: _.value ? 312 : 56,
100
100
  width: _.value ? 56 : 312
101
- })), ue = f(100);
101
+ })), ue = p(100);
102
102
  h(() => d.dataset.percentage / ue.value);
103
103
  const v = h(() => _.value ? {
104
104
  mark: (l.value.height - P.value) / 100 * 0.5,
@@ -111,23 +111,23 @@ const ze = ["id"], Se = {
111
111
  for (let a = 0; a < 100; a += 1) {
112
112
  const o = e.value.style.chart.layout.ticks.gradient.show ? ae(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
113
113
  if (_.value) {
114
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, m = l.value.width - i.value.right - 4 - $, g = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (m - p) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
114
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - i.value.left - i.value.right) / 100 / 3 : 0, f = i.value.left + 4 + $, m = l.value.width - i.value.right - 4 - $, g = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (m - f) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
115
115
  t.push({
116
- x1: p,
116
+ x1: f,
117
117
  x2: m,
118
118
  y1: g,
119
119
  y2: k,
120
- curve: `M ${p} ${g} C ${p + w} ${g - x}, ${m - w} ${k - x}, ${m} ${k}`,
120
+ curve: `M ${f} ${g} C ${f + w} ${g - x}, ${m - w} ${k - x}, ${m} ${k}`,
121
121
  color: o
122
122
  });
123
123
  } else {
124
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, m = p, g = i.value.top + 4 + $, k = l.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (k - g) / e.value.style.chart.layout.curveAngleX;
124
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, f = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, m = f, g = i.value.top + 4 + $, k = l.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (k - g) / e.value.style.chart.layout.curveAngleX;
125
125
  t.push({
126
- x1: p,
126
+ x1: f,
127
127
  x2: m,
128
128
  y1: g,
129
129
  y2: k,
130
- curve: `M ${p} ${g} C ${p + w} ${g + x}, ${m + w} ${k - x}, ${m} ${k}`,
130
+ curve: `M ${f} ${g} C ${f + w} ${g + x}, ${m + w} ${k - x}, ${m} ${k}`,
131
131
  color: o
132
132
  });
133
133
  }
@@ -144,34 +144,34 @@ const ze = ["id"], Se = {
144
144
  fontSize: e.value.style.chart.percentage.fontSize,
145
145
  fill: e.value.style.chart.percentage.color
146
146
  };
147
- }), A = f(!1);
147
+ }), O = p(!1);
148
148
  function ie(t) {
149
- A.value = t, j.value += 1;
149
+ O.value = t, B.value += 1;
150
150
  }
151
- const O = f(!1);
152
- function M() {
153
- O.value = !O.value;
151
+ const A = p(!1);
152
+ function T() {
153
+ A.value = !A.value;
154
154
  }
155
155
  return oe({
156
156
  generatePdf: Y,
157
157
  generateImage: q,
158
- toggleAnnotator: M
158
+ toggleAnnotator: T
159
159
  }), (t, r) => (s(), c("div", {
160
160
  ref_key: "tiremarksChart",
161
161
  ref: N,
162
- class: T(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
163
- style: U(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
162
+ class: U(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
163
+ style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
164
164
  id: S.value,
165
165
  onMouseenter: r[0] || (r[0] = () => n(X)(!0)),
166
166
  onMouseleave: r[1] || (r[1] = () => n(X)(!1))
167
167
  }, [
168
- e.value.userOptions.buttons.annotator ? (s(), I(Oe, {
168
+ e.value.userOptions.buttons.annotator ? (s(), I(Ae, {
169
169
  key: 0,
170
170
  parent: N.value,
171
171
  backgroundColor: e.value.style.chart.backgroundColor,
172
172
  color: e.value.style.chart.color,
173
- active: O.value,
174
- onClose: M
173
+ active: A.value,
174
+ onClose: T
175
175
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
176
176
  ne.value ? (s(), c("div", {
177
177
  key: 1,
@@ -182,7 +182,7 @@ const ze = ["id"], Se = {
182
182
  }, null, 512)) : y("", !0),
183
183
  e.value.style.chart.title.text ? (s(), c("div", Se, [
184
184
  (s(), I($e, {
185
- key: `title_${B.value}`,
185
+ key: `title_${E.value}`,
186
186
  config: {
187
187
  title: {
188
188
  cy: "wheel-title",
@@ -195,9 +195,9 @@ const ze = ["id"], Se = {
195
195
  }
196
196
  }, null, 8, ["config"]))
197
197
  ])) : y("", !0),
198
- e.value.userOptions.show && z.value && (n(D) || n(E)) ? (s(), I(xe, {
198
+ e.value.userOptions.show && z.value && (n(D) || n(M)) ? (s(), I(xe, {
199
199
  ref: "details",
200
- key: `user_options_${j.value}`,
200
+ key: `user_options_${B.value}`,
201
201
  backgroundColor: e.value.style.chart.backgroundColor,
202
202
  color: e.value.style.chart.color,
203
203
  isPrinting: n(R),
@@ -207,18 +207,18 @@ const ze = ["id"], Se = {
207
207
  hasImg: e.value.userOptions.buttons.img,
208
208
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
209
209
  hasXls: !1,
210
- isFullscreen: A.value,
210
+ isFullscreen: O.value,
211
211
  titles: { ...e.value.userOptions.buttonTitles },
212
212
  chartElement: N.value,
213
213
  position: e.value.userOptions.position,
214
214
  hasAnnotator: e.value.userOptions.buttons.annotator,
215
- isAnnotation: O.value,
215
+ isAnnotation: A.value,
216
216
  onToggleFullscreen: ie,
217
217
  onGeneratePdf: n(Y),
218
218
  onGenerateImage: n(q),
219
- onToggleAnnotator: M,
220
- style: U({
221
- visibility: n(D) ? n(E) ? "visible" : "hidden" : "visible"
219
+ onToggleAnnotator: T,
220
+ style: G({
221
+ visibility: n(D) ? n(M) ? "visible" : "hidden" : "visible"
222
222
  })
223
223
  }, ve({ _: 2 }, [
224
224
  t.$slots.optionPdf ? {
@@ -238,14 +238,14 @@ const ze = ["id"], Se = {
238
238
  t.$slots.optionFullscreen ? {
239
239
  name: "optionFullscreen",
240
240
  fn: F(({ toggleFullscreen: a, isFullscreen: o }) => [
241
- b(t.$slots, "optionFullscreen", G(L({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
241
+ b(t.$slots, "optionFullscreen", L(j({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
242
242
  ]),
243
243
  key: "2"
244
244
  } : void 0,
245
245
  t.$slots.optionAnnotator ? {
246
246
  name: "optionAnnotator",
247
247
  fn: F(({ toggleAnnotator: a, isAnnotator: o }) => [
248
- b(t.$slots, "optionAnnotator", G(L({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
248
+ b(t.$slots, "optionAnnotator", L(j({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
249
249
  ]),
250
250
  key: "3"
251
251
  } : void 0
@@ -253,11 +253,11 @@ const ze = ["id"], Se = {
253
253
  z.value ? (s(), c("svg", {
254
254
  key: 4,
255
255
  xmlns: n(be),
256
- class: T({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
256
+ class: U({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
257
257
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
258
- style: U(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
258
+ style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
259
259
  }, [
260
- he(Ae),
260
+ he(Oe),
261
261
  e.value.style.chart.layout.curved ? (s(), c("g", Me, [
262
262
  (s(!0), c(Z, null, ee(Q.value, (a, o) => (s(), c("path", {
263
263
  d: a.curve,
@@ -265,7 +265,7 @@ const ze = ["id"], Se = {
265
265
  stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
266
266
  "stroke-linecap": "round",
267
267
  fill: "none",
268
- class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= u.value })
268
+ class: U({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= u.value })
269
269
  }, null, 10, Te))), 256))
270
270
  ])) : (s(), c("g", Ue, [
271
271
  (s(!0), c(Z, null, ee(Q.value, (a, o) => (s(), c("line", {
@@ -298,7 +298,7 @@ const ze = ["id"], Se = {
298
298
  b(t.$slots, "svg", { svg: l.value }, void 0, !0)
299
299
  ], 14, Ne)) : y("", !0),
300
300
  t.$slots.watermark ? (s(), c("div", je, [
301
- b(t.$slots, "watermark", G(L({ isPrinting: n(R) || n(V) })), void 0, !0)
301
+ b(t.$slots, "watermark", L(j({ isPrinting: n(R) || n(V) })), void 0, !0)
302
302
  ])) : y("", !0),
303
303
  t.$slots.source ? (s(), c("div", Be, [
304
304
  b(t.$slots, "source", {}, void 0, !0)
@@ -317,7 +317,7 @@ const ze = ["id"], Se = {
317
317
  }, null, 8, ["config"]))
318
318
  ], 46, ze));
319
319
  }
320
- }, We = /* @__PURE__ */ Fe(Ee, [["__scopeId", "data-v-d5780415"]]);
320
+ }, We = /* @__PURE__ */ Fe(Ee, [["__scopeId", "data-v-abf7fd42"]]);
321
321
  export {
322
322
  We as default
323
323
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-C6IvqE-r.cjs"),c=require("./index-BkXYJDpD.cjs"),K=require("./Title-B7ruS8yl.cjs"),G=require("./usePrinter-DHv-BwME.cjs"),Q=require("./vue-ui-skeleton-BTN1PKkz.cjs"),W=require("./PackageVersion-C1F3QLoY.cjs"),Z=require("./PenAndPaper-DDheVRNG.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],oe={key:2,style:"width:100%;background:transparent;padding-bottom:12px"},le=["xmlns","viewBox"],re={key:0},ne=["d","stroke-width","stroke"],se={key:1},ue=["x1","y1","x2","y2","stroke-width","stroke"],ie=["x","y","font-size","fill","font-weight","text-anchor"],ce={key:5,class:"vue-data-ui-watermark"},ve={key:6,ref:"source",dir:"auto"},de={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(j,{expose:H}){const v=j,{vue_ui_tiremarks:D}=c.useConfig(),P=e.computed(()=>!!v.dataset&&Object.keys(v.dataset).length),$=e.ref(c.createUid()),B=e.ref(null),R=e.ref(null),O=e.ref(0),A=e.ref(0),t=e.computed({get:()=>I(),set:a=>a}),{userOptionsVisible:x,setUserOptionsVisibility:z,keepUserOptionState:N}=ee.useUserOptionState({config:t.value});function I(){const a=L.useNestedProp({userConfig:v.config,defaultConfig:D});return a.theme?{...L.useNestedProp({userConfig:c.themes.vue_ui_tiremarks[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=I(),x.value=!t.value.showOnChartHover,M(),A.value+=1},{deep:!0});const{isPrinting:F,isImaging:E,generatePdf:V,generateImage:q}=G.usePrinter({elementId:$.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks"}),X=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),s=e.ref(t.value.style.chart.animation.use?0:c.checkNaN(v.dataset.percentage));e.watch(()=>v.dataset,a=>{t.value.style.chart.animation.use?T(a.percentage):s.value=a.percentage||0},{deep:!0}),e.onMounted(()=>{M()});function T(a){let n=t.value.style.chart.animation.speed;const o=Math.abs(a-s.value)/(n*120);function r(){s.value<a?s.value=Math.min(s.value+o,a):s.value>a&&(s.value=Math.max(s.value-o,a)),s.value!==a&&requestAnimationFrame(r)}r()}function M(){c.objectIsEmpty(v.dataset)&&c.error({componentName:"VueUiTiremarks",type:"dataset"}),T(v.dataset.percentage||0)}const f=e.computed(()=>t.value.style.chart.layout.display==="vertical"),u=e.computed(()=>{const a={top:48,left:64,right:64,bottom:48};return f.value?{top:t.value.style.chart.percentage.verticalPosition==="top"?a.top:3,left:3,right:3,bottom:t.value.style.chart.percentage.verticalPosition==="bottom"?a.bottom:3}:{top:0,bottom:0,left:t.value.style.chart.percentage.horizontalPosition==="left"?a.left:3,right:t.value.style.chart.percentage.horizontalPosition==="right"?a.right:10}}),C=e.computed(()=>Object.values(u.value).reduce((a,n)=>a+n,0)),l=e.computed(()=>({height:f.value?312:56,width:f.value?56:312})),Y=e.ref(100);e.computed(()=>v.dataset.percentage/Y.value);const i=e.computed(()=>f.value?{mark:(l.value.height-C.value)/100*.5,space:(l.value.height-C.value)/100*.5}:{mark:(l.value.width-C.value)/100*.5,space:(l.value.width-C.value)/100*.5}),U=e.computed(()=>{const a=[];for(let o=0;o<100;o+=1){const r=t.value.style.chart.layout.ticks.gradient.show?c.shiftHue(t.value.style.chart.layout.activeColor,o/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.activeColor;if(f.value){const y=t.value.style.chart.layout.crescendo?(100-o)*(l.value.width-u.value.left-u.value.right)/100/3:0,d=u.value.left+4+y,h=l.value.width-u.value.right-4-y,p=l.value.height-u.value.bottom-o*i.value.mark-o*i.value.space-i.value.mark,m=l.value.height-u.value.bottom-o*i.value.mark-o*i.value.space-i.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,b=t.value.style.chart.layout.curveAngleY*((1+o)/100);a.push({x1:d,x2:h,y1:p,y2:m,curve:`M ${d} ${p} C ${d+k} ${p-b}, ${h-k} ${m-b}, ${h} ${m}`,color:r})}else{const y=t.value.style.chart.layout.crescendo?(100-o)*(l.value.height-u.value.top-u.value.bottom)/100/3:0,d=u.value.left+o*i.value.mark+o*i.value.space-i.value.mark,h=d,p=u.value.top+4+y,m=l.value.height-u.value.bottom-4-y,k=t.value.style.chart.layout.curveAngleY*((1+o)/100),b=(m-p)/t.value.style.chart.layout.curveAngleX;a.push({x1:d,x2:h,y1:p,y2:m,curve:`M ${d} ${p} C ${d+k} ${p+b}, ${h+k} ${m-b}, ${h} ${m}`,color:r})}}return a}),g=e.computed(()=>{let a,n,o;const r=t.value.style.chart.percentage.fontSize/3;return f.value?t.value.style.chart.percentage.verticalPosition==="top"?(a=l.value.width/2,n=u.value.top/2,o="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(a=l.value.width/2,n=l.value.height-u.value.bottom/2+r,o="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(a=4,n=l.value.height/2+r,o="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(a=l.value.width-u.value.right+8,n=l.value.height/2+r,o="start"),{x:a,y:n,textAnchor:o,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),_=e.ref(!1);function J(a){_.value=a,O.value+=1}const w=e.ref(!1);function S(){w.value=!w.value}return H({generatePdf:V,generateImage:q,toggleAnnotator:S}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:B,class:e.normalizeClass(`vue-ui-tiremarks ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:$.value,onMouseenter:n[0]||(n[0]=()=>e.unref(z)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(z)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Z.PenAndPaper,{key:0,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:S},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),X.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:R,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",oe,[(e.openBlock(),e.createBlock(K._sfc_main,{key:`title_${A.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(N)||e.unref(x))?(e.openBlock(),e.createBlock(G.UserOptions,{ref:"details",key:`user_options_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(F),isImaging:e.unref(E),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:J,onGeneratePdf:e.unref(V),onGenerateImage:e.unref(q),onToggleAnnotator:S,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(x)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(c.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(W._sfc_main),t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{d:o.curve,"stroke-width":i.value.mark,stroke:s.value>=r?o.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&r<=s.value})},null,10,ne))),256))])):(e.openBlock(),e.createElementBlock("g",se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(o,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2,"stroke-width":i.value.mark,stroke:s.value>=r?o.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,ue))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:g.value.x,y:g.value.y,"font-size":g.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(c.shiftHue)(t.value.style.chart.layout.activeColor,s.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":g.value.bold?"bold":"normal","text-anchor":g.value.textAnchor},e.toDisplayString(e.unref(c.applyDataLabel)(t.value.style.chart.percentage.formatter,s.value,e.unref(c.dataLabel)({v:s.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,ie)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,le)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ce,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(F)||e.unref(E)})),void 0,!0)])):e.createCommentVNode("",!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Q.default,{key:7,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ae))}},he=te._export_sfc(de,[["__scopeId","data-v-abf7fd42"]]);exports.default=he;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BkXYJDpD.cjs"),Ve=require("./Title-B7ruS8yl.cjs"),me=require("./usePrinter-DHv-BwME.cjs"),Ee=require("./Tooltip-BqSN71SL.cjs"),Le=require("./Legend-CR9ydX8N.cjs"),Re=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Ae=require("./DataTable-CwAdpLng.cjs"),Fe=require("./vue-ui-accordion-kr18wKfc.cjs"),ye=require("./useResponsive-BJ7DTGpm.cjs"),be=require("./useNestedProp-C6IvqE-r.cjs"),Ie=require("./PackageVersion-C1F3QLoY.cjs"),De=require("./PenAndPaper-DDheVRNG.cjs"),qe=require("./useUserOptionState-BgepsfED.cjs"),He=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ke(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,c=-1/0,v=0;for(let f=0;f<s;f+=1){const p=n[f].normalizedValue;p<u&&(u=p),p>c&&(c=p),v+=p}return Math.max(d**2*c/v**2,v**2/(d**2*u))}}function Ce(n){const{xOffset:d,yOffset:s,width:u,height:c}=n;return{x0:d,y0:s,x1:d+u,y1:s+c}}function Me(n,d,s){if(n.length===0)return!0;{const u=n.concat(d),c=ke(n,s),v=ke(u,s);return c>=v}}function Ue(n){const d=[],s=n.length;for(let u=0;u<s;u+=1){const c=n[u],v=c.length;for(let h=0;h<v;h+=1)d.push(c[h])}return d}function We(n,d){const s={...d,children:n};return xe(s)}function Ge(n){return(n.x1-n.x0)*(n.y1-n.y0)}function we(n,d){const{width:s,height:u,xOffset:c,yOffset:v}=Y(d),h=n.length,f=n.map(g=>g.normalizedValue||0).reduce((g,k)=>g+k,0),p=f/u,C=f/s;let b=c,w=v;const m=[];if(s>=u){for(let g=0;g<h;g+=1){const k=n[g],x=w+k.normalizedValue/p,B={x0:b,y0:w,x1:b+p,y1:x},T=Object.assign({},k,B);w=x,m.push(T)}return m}else{for(let g=0;g<h;g+=1){const k=n[g],x=b+k.normalizedValue/C,B={x0:b,y0:w,x1:x,y1:w+C},T=Object.assign({},k,B);b=x,m.push(T)}return m}}function je(n){const d=Y(n),s=d.width,u=d.height;return Math.min(s,u)}function Xe(n,d){const s=n.length,u=n.map(p=>p.value??0).reduce((p,C)=>p+C,0),c=d/u,v=[];let h,f;for(let p=0;p<s;p+=1)f=n[p],h=Object.assign({},f,{normalizedValue:f.value*(c||0)}),v.push(h);return v}function Y(n){const{x0:d,y0:s,x1:u,y1:c}=n;return{xOffset:d,yOffset:s,width:u-d,height:c-s}}function Ye(n,d,s,u){let c=n,v=d,h=s,f=u;for(;;){const p=c.length;if(p===0){const m=we(v,h);return f.concat(m)}const C=je(h),b=c[0],w=c.slice(1,p);if(Me(v,b,C)){const m=v.concat(b);c=w,v=m,h=h,f=f}else{const m=v.length;let g=0;for(let T=0;T<m;T+=1)g+=v[T].normalizedValue;const k=Ze(h,g),x=we(v,h),B=f.concat(x);c=c,v=[],h=k,f=B}}}function xe(n){if(typeof n.children>"u"||!n.children.length)return[n];{const d=Xe(n.children,Ge(n)),s=Ye(d,[],n,[]),u=s.length,c=[];for(let h=0;h<u;h+=1)c.push(xe(s[h]));return Ue(c)}}function Ze(n,d){const{width:s,height:u,xOffset:c,yOffset:v}=Y(n);if(s>=u){const h=d/u,f=s-h,p={xOffset:c+h,yOffset:v,width:f,height:u};return Ce(p)}else{const h=d/s,f=u-h,p={xOffset:c,yOffset:v+h,width:s,height:f};return Ce(p)}}const Je=n=>(e.pushScopeId("data-v-9a178263"),n=n(),e.popScopeId(),n),Ke=["id"],Qe=["xmlns","viewBox"],et={key:0},tt=["id"],ot=["stop-color"],lt=["stop-color"],at=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],nt=["x","y","height","width"],rt={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},ut=Je(()=>e.createElementVNode("br",null,null,-1)),st={key:5,class:"vue-data-ui-watermark"},it=["onClick"],ct={key:0},dt={key:1},vt=["innerHTML"],ht={__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:c}=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),m=e.ref([]),g=e.ref(null),k=e.ref(null),x=e.ref(null),B=e.ref(null),T=e.ref(null),Z=e.ref(0),J=e.ref(0),K=e.ref(0),t=e.computed({get:()=>te(),set:o=>o}),{userOptionsVisible:U,setUserOptionsVisibility:Q,keepUserOptionState:ee}=qe.useUserOptionState({config:t.value});function te(){const o=be.useNestedProp({userConfig:u.config,defaultConfig:c});return o.theme?{...be.useNestedProp({userConfig:r.themes.vue_ui_treemap[o.theme]||u.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>u.config,o=>{t.value=te(),U.value=!t.value.showOnChartHover,Z.value+=1,J.value+=1,K.value+=1},{deep:!0});const{isPrinting:oe,isImaging:le,generatePdf:ae,generateImage:ne}=me.usePrinter({elementId:`treemap_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),Te=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),I=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),O=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),P=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),z=e.computed(()=>({bottom:P.value.height-t.value.style.chart.padding.bottom,height:P.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:P.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:P.value.height,vbWidth:P.value.width,width:P.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function re(o){o.forEach((a,l)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||I.value[l]||r.palette[l]||r.palette[l%r.palette.length],a.children&&(a.children.forEach(i=>{i.parentId=a.id,i.color=a.color}),re(a.children))})}const V=e.ref(u.dataset),D=e.ref(null);e.onMounted(()=>{Se()});function Se(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),re(V.value),t.value.responsive){const o=ye.throttle(()=>{const{width:a,height:l}=ye.useResponsive({chart:g.value,title:t.value.style.chart.title.text?k.value:null,legend:t.value.style.chart.legend.show?x.value:null,source:B.value,noTitle:T.value});P.value.width=a,P.value.height=l});D.value=new ResizeObserver(o),D.value.observe(g.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const W=e.ref(V.value),A=e.computed(()=>W.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(o=>!m.value.includes(o.id))),L=e.computed(()=>V.value.filter(o=>!m.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ue=e.computed({get(){let o=[...A.value];return t.value.style.chart.layout.sorted&&(o=[...A.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function se(o,a){return o.value/a}function $e(o,a,l){const i=t.value.style.chart.layout.rects.colorRatio-se(a,l);return r.lightenHexColor(o,i<0?0:i)}function ie(o,a,l,i){return o.map((y,_)=>{const M=$e(r.convertColorToHex(a)||I.value[_]||r.palette[_]||r.palette[_%r.palette.length],y,i),ze=se(y,i);return{...y,color:M,proportion:ze,parentName:l,children:y.children?ie(y.children,M,y.name,i):void 0}})}const F=e.computed(()=>We(ue.value.map((o,a)=>{const l=o.children?o.children.reduce((i,y)=>i+y.value,0):o.value;return{value:o.value,id:o.id,children:o.children?ie(o.children.sort((i,y)=>y.value-i.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:z.value.left*2,y0:z.value.top,x1:z.value.width,y1:z.value.height}));function ce({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function de({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function E(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function Ne(o){b.value=o,w.value+=1}const R=e.computed(()=>({startX:0,startY:0,width:z.value.vbWidth,height:z.value.vbHeight})),S=e.ref(!1);function G(o,a=V.value){for(const l of a){if(l.id===o)return l;if(l.children){const i=G(o,l.children);if(i)return i}}return null}function Be(o){if(S.value)s("selectDatapoint",void 0),W.value=V.value;else{if(s("selectDatapoint",o),!G(o.parentId))return;W.value=[G(o.parentId)]}S.value=!S.value}const $=e.ref(null),ve=e.computed(()=>V.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/V.value.map(l=>l.value).reduce((l,i)=>l+i,0),opacity:m.value.includes(o.id)?.5:1}))),Oe=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 he(o){S.value=!1,$.value=null,m.value.includes(o.id)?m.value=m.value.filter(a=>a!==o.id):m.value.length<u.dataset.length-1&&m.value.push(o.id),s("selectLegend",ue.value)}const j=e.ref(null);function Pe({datapoint:o,seriesIndex:a}){$.value=o,j.value={datapoint:o,seriesIndex:a,config:t.value,series:A.value};const l=t.value.style.chart.tooltip.customFormat;if(r.isFunction(l)&&r.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:A.value,config:t.value})))C.value=l({seriesIndex:a,datapoint:o,series:A.value,config:t.value});else{let i="";i+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,i+=`<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="${o.color}"/></svg>`,i+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,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.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,C.value=`<div>${i}</div>`}p.value=!0}const N=e.computed(()=>{const o=F.value.map(l=>({name:l.name,color:l.color})),a=F.value.map(l=>l.value);return{head:o,body:a}});function pe(){e.nextTick(()=>{const o=N.value.head.map((i,y)=>[[i.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(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((y,_)=>{const M=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[_],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[_],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:y.color,name:y.name,shape:"square"},M,isNaN(N.value.body[_]/L.value)?"-":r.dataLabel({v:N.value.body[_]/L.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={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:o,body:a,config:l}});function _e(){return F.value}function fe(){O.value.showTable=!O.value.showTable}function ge(){O.value.showTooltip=!O.value.showTooltip}const H=e.ref(!1);function X(){H.value=!H.value}return d({getData:_e,generateCsv:pe,generateImage:ne,generatePdf:ae,toggleTable:fe,toggleTooltip:ge,toggleAnnotator:X}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:g,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;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${f.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(Q)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(Q)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(De.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:H.value,onClose:X},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:T,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Ve._sfc_main,{key:`title_${Z.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.unref(ee)||e.unref(U))?(e.openBlock(),e.createBlock(me.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(oe),isImaging:e.unref(le),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:O.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:H.value,onToggleFullscreen:Ne,onGeneratePdf:e.unref(ae),onGenerateCsv:pe,onGenerateImage:e.unref(ne),onToggleTable:fe,onToggleTooltip:ge,onToggleAnnotator:X,style:e.normalizeStyle({visibility:e.unref(ee)?e.unref(U)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("svg",{key:4,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":!S.value,"vue-data-ui-zoom-minus":S.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(Ie._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",et,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,ot),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,lt)],8,tt)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:ce(l),width:de(l),fill:h.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:$.value&&$.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":$.value&&$.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:y=>Be(l),onMouseenter:()=>Pe({datapoint:l,seriesIndex:i}),onMouseleave:a[0]||(a[0]=y=>{$.value=null,p.value=!1}),style:e.normalizeStyle(`opacity:${$.value?$.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,at),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:ce(l),width:de(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",rt,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`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:${e.unref(r.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),ut,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(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.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value,fontSize:E(l),isZoom:S.value,textColor:e.unref(r.adaptColorToBackground)(l.color)})),void 0,!0)])],8,nt))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:z.value,isZoom:S.value,rect:$.value,config:t.value})),void 0,!0)],14,Qe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(oe)||e.unref(le)})),void 0,!0)])):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Re.default,{key:6,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(Le.Legend,{key:`legend_${K.value}`,legendSet:ve.value,config:Oe.value,id:`treemap_legend_${f.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>he(l))},{item:e.withCtx(({legend:l,index:i})=>[e.createElementVNode("div",{onClick:y=>he(l),style:e.normalizeStyle(`opacity:${m.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(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.legend.roundingValue}),{datapoint:l}))+" ",1),m.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",dt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",ct," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,it)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:ve.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:B,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ee._sfc_main,{show:O.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:g.value,content:C.value,isFullscreen:b.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),v.value?(e.openBlock(),e.createBlock(Fe.default,{key:8,hideDetails:"",config:{open:O.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(Ae.DataTable,{key:`table_${J.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.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]=l=>O.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,vt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ke))}},pt=He._export_sfc(ht,[["__scopeId","data-v-9a178263"]]);exports.default=pt;