vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -0,0 +1,805 @@
1
+ import { toRef as ue, resolveComponent as ce, openBlock as a, createElementBlock as r, Fragment as m, renderList as z, withModifiers as M, createBlock as T, createCommentVNode as y, createElementVNode as x, toDisplayString as Ae, normalizeStyle as ie, createVNode as S, computed as B, onMounted as Ke, ref as f, watch as Qe, normalizeClass as Fe, unref as N, createSlots as _e, withCtx as k, renderSlot as C, normalizeProps as W, guardReactiveProps as q, createTextVNode as et, nextTick as Re } from "vue";
2
+ import { u as tt, o as ot, e as lt, c as Se, t as at, a as nt, p as Le, b as st, X as rt, l as it, O as ut, q as ct, r as dt, x as vt, y as ft } from "./index-Bya_q1J-.js";
3
+ import { _ as pt } from "./Title-C5pIfQAz.js";
4
+ import { u as ht, U as gt } from "./usePrinter-CiHd1FwD.js";
5
+ import { D as yt } from "./DataTable-DYqC2pqu.js";
6
+ import { _ as mt } from "./Tooltip-Cz24YLfw.js";
7
+ import Z from "./BaseIcon-BbvG1AlW.js";
8
+ import bt from "./vue-ui-skeleton-BYssP0K4.js";
9
+ import kt from "./vue-ui-accordion-DfUfL2dI.js";
10
+ import { u as De } from "./useNestedProp-B33hazbH.js";
11
+ import { _ as Ct } from "./PackageVersion-VkaUzgmt.js";
12
+ import { P as $t } from "./PenAndPaper-DAZYA8Ew.js";
13
+ import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const wt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], Pt = {
15
+ __name: "RecursiveCircles",
16
+ props: {
17
+ color: {
18
+ type: String,
19
+ default: "#000000"
20
+ },
21
+ dataset: {
22
+ type: Array,
23
+ default: () => []
24
+ },
25
+ hoveredUid: {
26
+ type: String,
27
+ default: null
28
+ },
29
+ linkColor: {
30
+ type: String,
31
+ default: "#CCCCCC"
32
+ },
33
+ stroke: {
34
+ type: String,
35
+ default: "#FFFFFF"
36
+ },
37
+ strokeHovered: {
38
+ type: String,
39
+ default: "#000000"
40
+ }
41
+ },
42
+ emits: ["zoom", "hover"],
43
+ setup(n, { emit: $ }) {
44
+ const b = n;
45
+ function c(s) {
46
+ $("zoom", s);
47
+ }
48
+ function d(s) {
49
+ $("hover", s);
50
+ }
51
+ return ue(b, "dataset").value.forEach((s) => {
52
+ s.nodes && s.nodes.length > 0 && s.nodes.forEach((v) => {
53
+ v.ancestor = s;
54
+ });
55
+ }), (s, v) => {
56
+ const R = ce("RecursiveCircles", !0);
57
+ return a(!0), r(m, null, z(n.dataset, (p) => (a(), r(m, null, [
58
+ p.polygonPath && p.polygonPath.coordinates ? (a(), r(m, { key: 0 }, [
59
+ (a(!0), r(m, null, z(p.polygonPath.coordinates, (D, J) => (a(), r("circle", {
60
+ cx: D.x,
61
+ cy: D.y,
62
+ r: p.circleRadius,
63
+ fill: `url(#gradient_${p.color})`,
64
+ stroke: n.hoveredUid && n.hoveredUid === p.uid ? n.strokeHovered : n.stroke,
65
+ "stroke-width": n.hoveredUid && n.hoveredUid === p.uid ? p.circleRadius / 6 : p.circleRadius / 12,
66
+ style: { cursor: "pointer" },
67
+ onClick: M((A) => c(p), ["stop"]),
68
+ onMouseover: (A) => d(p),
69
+ onMouseleave: v[0] || (v[0] = (A) => d(null))
70
+ }, null, 40, wt))), 256)),
71
+ p.nodes && p.nodes.length > 0 ? (a(), T(R, {
72
+ key: 0,
73
+ dataset: p.nodes,
74
+ color: n.color,
75
+ stroke: n.stroke,
76
+ strokeHovered: n.strokeHovered,
77
+ hoveredUid: n.hoveredUid,
78
+ onZoom: c,
79
+ onHover: d
80
+ }, null, 8, ["dataset", "color", "stroke", "strokeHovered", "hoveredUid"])) : y("", !0)
81
+ ], 64)) : y("", !0)
82
+ ], 64))), 256);
83
+ };
84
+ }
85
+ }, Tt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Rt = {
86
+ __name: "RecursiveLinks",
87
+ props: {
88
+ dataset: {
89
+ type: Array,
90
+ default: () => []
91
+ },
92
+ color: {
93
+ type: String,
94
+ default: "#DDDDDD"
95
+ },
96
+ backgroundColor: {
97
+ type: String,
98
+ default: "#FFFFFF"
99
+ }
100
+ },
101
+ setup(n) {
102
+ return ue(n, "dataset").value.forEach((c) => {
103
+ c.nodes && c.nodes.length > 0 && c.nodes.forEach((d) => {
104
+ d.ancestor = c;
105
+ });
106
+ }), (c, d) => {
107
+ const L = ce("RecursiveLinks", !0);
108
+ return a(), r(m, null, [
109
+ (a(!0), r(m, null, z(n.dataset, (s) => (a(), r(m, null, [
110
+ s.polygonPath && s.polygonPath.coordinates ? (a(!0), r(m, { key: 0 }, z(s.polygonPath.coordinates, (v, R) => (a(), r(m, null, [
111
+ s.ancestor && s.ancestor.polygonPath ? (a(), r(m, { key: 0 }, [
112
+ x("line", {
113
+ x1: v.x,
114
+ y1: v.y,
115
+ x2: s.ancestor.polygonPath.coordinates[0].x,
116
+ y2: s.ancestor.polygonPath.coordinates[0].y,
117
+ stroke: n.backgroundColor,
118
+ "stroke-width": s.circleRadius / 1.5
119
+ }, null, 8, Tt),
120
+ x("line", {
121
+ x1: v.x,
122
+ y1: v.y,
123
+ x2: s.ancestor.polygonPath.coordinates[0].x,
124
+ y2: s.ancestor.polygonPath.coordinates[0].y,
125
+ stroke: n.color,
126
+ "stroke-width": s.circleRadius / 2
127
+ }, null, 8, Ft)
128
+ ], 64)) : y("", !0)
129
+ ], 64))), 256)) : y("", !0)
130
+ ], 64))), 256)),
131
+ (a(!0), r(m, null, z(n.dataset, (s) => (a(), r(m, null, [
132
+ s.polygonPath && s.polygonPath.coordinates ? (a(), r(m, { key: 0 }, [
133
+ s.nodes && s.nodes.length > 0 ? (a(), T(L, {
134
+ key: 0,
135
+ dataset: s.nodes,
136
+ color: n.color,
137
+ backgroundColor: n.backgroundColor
138
+ }, null, 8, ["dataset", "color", "backgroundColor"])) : y("", !0)
139
+ ], 64)) : y("", !0)
140
+ ], 64))), 256))
141
+ ], 64);
142
+ };
143
+ }
144
+ }, St = ["x", "y", "fill", "font-size"], Lt = {
145
+ __name: "RecursiveLabels",
146
+ props: {
147
+ color: {
148
+ type: String,
149
+ default: "#000000"
150
+ },
151
+ dataset: {
152
+ type: Array,
153
+ default: () => []
154
+ },
155
+ hoveredUid: {
156
+ type: String,
157
+ default: null
158
+ }
159
+ },
160
+ emits: ["zoom", "hover"],
161
+ setup(n, { emit: $ }) {
162
+ return ue(n, "dataset").value.forEach((d) => {
163
+ d.nodes && d.nodes.length > 0 && d.nodes.forEach((L) => {
164
+ L.ancestor = d;
165
+ });
166
+ }), (d, L) => {
167
+ const s = ce("RecursiveLabels", !0);
168
+ return a(!0), r(m, null, z(n.dataset, (v) => (a(), r(m, null, [
169
+ v.polygonPath && v.polygonPath.coordinates ? (a(), r(m, { key: 0 }, [
170
+ (a(!0), r(m, null, z(v.polygonPath.coordinates, (R) => (a(), r("text", {
171
+ x: R.x,
172
+ y: R.y + v.circleRadius * 2,
173
+ fill: n.color,
174
+ "font-size": v.circleRadius,
175
+ "text-anchor": "middle",
176
+ style: { opacity: "0.8", "pointer-events": "none" }
177
+ }, Ae(v.name), 9, St))), 256)),
178
+ v.nodes && v.nodes.length > 0 ? (a(), T(s, {
179
+ key: 0,
180
+ dataset: v.nodes,
181
+ color: n.color,
182
+ hoveredUid: n.hoveredUid
183
+ }, null, 8, ["dataset", "color", "hoveredUid"])) : y("", !0)
184
+ ], 64)) : y("", !0)
185
+ ], 64))), 256);
186
+ };
187
+ }
188
+ }, Dt = { style: { position: "relative", height: "100%", width: "100%" } }, At = {
189
+ __name: "BaseDirectionPad",
190
+ props: {
191
+ color: {
192
+ type: String,
193
+ default: "#FF0000"
194
+ },
195
+ isFullscreen: {
196
+ type: Boolean,
197
+ default: !1
198
+ }
199
+ },
200
+ emits: ["moveLeft", "moveTop", "moveRight", "moveBottom", "reset"],
201
+ setup(n, { emit: $ }) {
202
+ return (b, c) => (a(), r("div", {
203
+ style: ie(`position: ${n.isFullscreen ? "fixed" : "absolute"};bottom:0;right:${n.isFullscreen ? "12px" : "0"};width:80px;height:80px`),
204
+ "data-html2canvas-ignore": ""
205
+ }, [
206
+ x("div", Dt, [
207
+ x("button", {
208
+ onClick: c[0] || (c[0] = M((d) => $("moveLeft"), ["stop"])),
209
+ style: { position: "absolute", left: "0", top: "50%", transform: "translateY(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
210
+ }, [
211
+ S(Z, {
212
+ stroke: n.color,
213
+ name: "arrowLeft",
214
+ style: { cursor: "pointer" }
215
+ }, null, 8, ["stroke"])
216
+ ]),
217
+ x("button", {
218
+ onClick: c[1] || (c[1] = M((d) => $("moveTop"), ["stop"])),
219
+ style: { position: "absolute", top: "0", left: "50%", transform: "translateX(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
220
+ }, [
221
+ S(Z, {
222
+ stroke: n.color,
223
+ name: "arrowTop",
224
+ style: { cursor: "pointer" }
225
+ }, null, 8, ["stroke"])
226
+ ]),
227
+ x("button", {
228
+ onClick: c[2] || (c[2] = M((d) => $("moveRight"), ["stop"])),
229
+ style: { position: "absolute", right: "0", top: "50%", transform: "translateY(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
230
+ }, [
231
+ S(Z, {
232
+ stroke: n.color,
233
+ name: "arrowRight",
234
+ style: { cursor: "pointer" }
235
+ }, null, 8, ["stroke"])
236
+ ]),
237
+ x("button", {
238
+ onClick: c[3] || (c[3] = M((d) => $("moveBottom"), ["stop"])),
239
+ style: { position: "absolute", bottom: "0", left: "50%", transform: "translateX(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
240
+ }, [
241
+ S(Z, {
242
+ stroke: n.color,
243
+ name: "arrowBottom",
244
+ style: { cursor: "pointer" }
245
+ }, null, 8, ["stroke"])
246
+ ]),
247
+ x("button", {
248
+ onClick: c[4] || (c[4] = M((d) => $("reset"), ["stop"])),
249
+ style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
250
+ }, [
251
+ S(Z, {
252
+ stroke: n.color,
253
+ name: "close",
254
+ style: { cursor: "pointer" },
255
+ strokeWidth: 2
256
+ }, null, 8, ["stroke"])
257
+ ])
258
+ ])
259
+ ], 4));
260
+ }
261
+ }, It = ["id"], Ut = {
262
+ key: 1,
263
+ style: "width:100%;background:transparent;"
264
+ }, Nt = ["xmlns", "viewBox"], zt = ["id"], Ot = ["stop-color"], Bt = ["stop-color"], Mt = {
265
+ key: 5,
266
+ class: "vue-data-ui-watermark"
267
+ }, Ht = {
268
+ key: 7,
269
+ ref: "source",
270
+ dir: "auto"
271
+ }, Et = ["innerHTML"], Xt = {
272
+ __name: "vue-ui-molecule",
273
+ props: {
274
+ config: {
275
+ type: Object,
276
+ default() {
277
+ return {};
278
+ }
279
+ },
280
+ dataset: {
281
+ type: Array,
282
+ default() {
283
+ return [];
284
+ }
285
+ }
286
+ },
287
+ setup(n, { expose: $ }) {
288
+ const b = n, { vue_ui_molecule: c } = tt(), d = B(() => !!b.dataset && b.dataset.length);
289
+ Ke(() => {
290
+ L();
291
+ });
292
+ function L() {
293
+ ot(b.dataset) && lt({
294
+ componentName: "VueUiMolecule",
295
+ type: "dataset"
296
+ });
297
+ }
298
+ const s = f(Se()), v = f(null), R = f(!1), p = f(""), D = f(null), J = f(null), A = f(!1), w = f(null), de = f(null), _ = f(0), ve = f(0), fe = f(0), t = B({
299
+ get: () => pe(),
300
+ set: (e) => e
301
+ });
302
+ function pe() {
303
+ const e = De({
304
+ userConfig: b.config,
305
+ defaultConfig: c
306
+ });
307
+ return e.theme ? {
308
+ ...De({
309
+ userConfig: at.vue_ui_molecule[e.theme] || b.config,
310
+ defaultConfig: e
311
+ }),
312
+ customPalette: nt[e.theme] || Le
313
+ } : e;
314
+ }
315
+ Qe(() => b.config, (e) => {
316
+ t.value = pe(), L(), ve.value += 1, fe.value += 1;
317
+ }, { deep: !0 });
318
+ const { isPrinting: he, isImaging: ge, generatePdf: ye, generateImage: me } = ht({
319
+ elementId: `cluster_${s.value}`,
320
+ fileName: t.value.style.chart.title.text || "vue-ui-molecule"
321
+ }), Ie = B(() => st(t.value.customPalette)), P = f({
322
+ showTable: t.value.table.show,
323
+ showDataLabels: !0,
324
+ showTooltip: t.value.style.chart.tooltip.show
325
+ });
326
+ function be(e, l = 0) {
327
+ return Array.isArray(e) && e.length > 0 && e[0].nodes ? be(e[0].nodes, l + 1) : l;
328
+ }
329
+ function Ue() {
330
+ const e = be(b.dataset);
331
+ let l = 100, o = l;
332
+ for (let u = 0; u < e; u += 1)
333
+ l /= 1, o += l;
334
+ return {
335
+ height: o,
336
+ width: o
337
+ };
338
+ }
339
+ const I = f(Ue()), ee = f(`0 0 ${I.value.width} ${I.value.height}`);
340
+ function ke(e, l = { x: -I.value.width / 2.43, y: I.value.height / 2 }, o = I.value.width / 1.1, u = 24, i = 0, h = 0, j = "#BBBBBB") {
341
+ if (e && e.length > 0) {
342
+ const se = ut({
343
+ plot: l,
344
+ radius: o,
345
+ sides: e.length,
346
+ rotation: i
347
+ });
348
+ e.forEach((g, O) => {
349
+ const V = se.coordinates[O];
350
+ let U;
351
+ if (g.ancestor ? g.ancestor.ancestor ? U = g.ancestor.color || j : (U = Ie.value[h] || Le[h] || j, h += 1) : U = j, g.polygonPath = {
352
+ coordinates: [V]
353
+ }, g.circleRadius = u, g.color = U, g.uid = Se(), g.nodes && g.nodes.length > 0) {
354
+ const re = !g.ancestor || !g.ancestor.ancestor ? h : 0;
355
+ g.nodes = ke(
356
+ g.nodes,
357
+ V,
358
+ o / 2.9,
359
+ u / 2.2,
360
+ i + Math.PI * O / g.nodes.length,
361
+ re,
362
+ U
363
+ );
364
+ }
365
+ });
366
+ }
367
+ return e;
368
+ }
369
+ function Ne(e) {
370
+ const l = /* @__PURE__ */ new Set();
371
+ function o(i) {
372
+ i.forEach((h) => {
373
+ h.color && !l.has(h.color) && l.add(h.color), h.nodes && h.nodes.length > 0 && o(h.nodes);
374
+ });
375
+ }
376
+ o(e);
377
+ const u = {};
378
+ return Array.from(l).forEach((i, h) => {
379
+ u[i] = `gradient_${h}`;
380
+ }), u;
381
+ }
382
+ const ze = B(() => Ne(F.value)), F = B(() => ke(b.dataset));
383
+ function te() {
384
+ A.value = !1, J.value = null, de.value = null, w.value = null, le({
385
+ polygonPath: {
386
+ coordinates: [{ x: I.value.width / 2, y: I.value.height / 2 }]
387
+ },
388
+ circleRadius: 24
389
+ });
390
+ }
391
+ const oe = f(null);
392
+ function le(e) {
393
+ D.value.focus(), Re(() => {
394
+ oe.value && cancelAnimationFrame(oe.value);
395
+ const l = ee.value.split(" "), o = parseFloat(l[0]), u = parseFloat(l[1]), i = parseFloat(l[2]), h = parseFloat(l[3]), { x: j, y: se } = e.polygonPath.coordinates[0], { circleRadius: g } = e, O = 8.34, V = j - g * O, U = se - g * O, re = g * O * 2, Ve = g * O * 2, Ye = Math.sqrt((V - o) ** 2 + (U - u) ** 2), Y = Math.min(1200, Math.max(20, Math.floor(Ye / 10))), We = (V - o) / Y, qe = (U - u) / Y, Ze = (re - i) / Y, Je = (Ve - h) / Y;
396
+ let E = 0;
397
+ function Te() {
398
+ ee.value = `${o + We * E} ${u + qe * E} ${i + Ze * E} ${h + Je * E}`, E += t.value.style.chart.zoom.speed, E <= Y && (oe.value = requestAnimationFrame(Te));
399
+ }
400
+ Te();
401
+ });
402
+ }
403
+ function Oe(e) {
404
+ J.value === e.uid ? te() : (J.value = e.uid, de.value = e, w.value = {
405
+ circleRadius: e.circleRadius,
406
+ polygonPath: {
407
+ coordinates: [{ x: e.polygonPath.coordinates[0].x, y: e.polygonPath.coordinates[0].y }]
408
+ }
409
+ }, le(e), A.value = e.uid !== F.value[0].uid);
410
+ }
411
+ function Be(e) {
412
+ if (e.target.nodeName !== "circle")
413
+ te(), A.value = !1;
414
+ else
415
+ return;
416
+ }
417
+ const ae = f(null);
418
+ function Me(e) {
419
+ ae.value = {
420
+ datapoint: e,
421
+ seriesIndex: -1,
422
+ series: F.value,
423
+ config: t.value
424
+ };
425
+ const l = t.value.style.chart.tooltip.customFormat;
426
+ if (vt(l) && ft(() => l({
427
+ seriesIndex: -1,
428
+ datapoint: e,
429
+ series: F.value,
430
+ config: t.value
431
+ })))
432
+ p.value = l({
433
+ seriesIndex: -1,
434
+ // well, ok
435
+ datapoint: e,
436
+ series: F.value,
437
+ config: t.value
438
+ });
439
+ else {
440
+ let o = "";
441
+ o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (o += `<div style="width:100%;border-top:1px solid ${t.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), p.value = `<div style="font-family:inherit">${o}</div>`;
442
+ }
443
+ }
444
+ const Ce = f(null), X = f(null);
445
+ function He(e) {
446
+ Ce.value = e, e ? (R.value = !0, Me(e), X.value = e.uid) : (R.value = !1, p.value = "", X.value = null);
447
+ }
448
+ function K(e) {
449
+ e === "right" && (w.value.polygonPath.coordinates[0].x += w.value.circleRadius), e === "left" && (w.value.polygonPath.coordinates[0].x -= w.value.circleRadius), e === "top" && (w.value.polygonPath.coordinates[0].y -= w.value.circleRadius), e === "bottom" && (w.value.polygonPath.coordinates[0].y += w.value.circleRadius), le(w.value);
450
+ }
451
+ function Ee(e) {
452
+ const l = [];
453
+ function o(u) {
454
+ u.forEach((i) => {
455
+ const h = {
456
+ name: i.name,
457
+ details: i.details || "-",
458
+ ancestor: i.ancestor && i.ancestor.name || "-",
459
+ color: i.color || ""
460
+ };
461
+ l.push(h), i.nodes && i.nodes.length > 0 && o(i.nodes, i.name);
462
+ });
463
+ }
464
+ return o(e), l;
465
+ }
466
+ const Xe = B(() => Ee(F.value)), H = B(() => {
467
+ const e = [
468
+ t.value.table.translations.nodeName,
469
+ t.value.table.translations.details,
470
+ t.value.table.translations.ancestor
471
+ ], l = Xe.value.map((i, h) => [
472
+ {
473
+ color: i.color,
474
+ name: i.name
475
+ },
476
+ i.details,
477
+ i.ancestor || ""
478
+ ]), o = {
479
+ th: {
480
+ backgroundColor: t.value.table.th.backgroundColor,
481
+ color: t.value.table.th.color,
482
+ outline: t.value.table.th.outline
483
+ },
484
+ td: {
485
+ backgroundColor: t.value.table.td.backgroundColor,
486
+ color: t.value.table.td.color,
487
+ outline: t.value.table.td.outline
488
+ },
489
+ breakpoint: t.value.table.responsiveBreakpoint
490
+ }, u = [
491
+ t.value.table.translations.nodeName,
492
+ t.value.table.translations.details,
493
+ t.value.table.translations.ancestor
494
+ ];
495
+ return {
496
+ head: e,
497
+ body: l,
498
+ config: o,
499
+ colNames: u
500
+ };
501
+ });
502
+ function $e() {
503
+ Re(() => {
504
+ const e = H.value.body.map((u, i) => [[u[0].name], [u[1]], [u[2]]]), l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[...H.value.head]]].concat(e), o = ct(l);
505
+ dt({ csvContent: o, title: t.value.style.chart.title.text || "vue-ui-molecule" });
506
+ });
507
+ }
508
+ function Ge() {
509
+ return F.value;
510
+ }
511
+ const G = f(!1);
512
+ function je(e) {
513
+ G.value = e, _.value += 1;
514
+ }
515
+ function xe() {
516
+ P.value.showTable = !P.value.showTable;
517
+ }
518
+ function we() {
519
+ P.value.showDataLabels = !P.value.showDataLabels;
520
+ }
521
+ function Pe() {
522
+ P.value.showTooltip = !P.value.showTooltip;
523
+ }
524
+ const Q = f(!1);
525
+ function ne() {
526
+ Q.value = !Q.value;
527
+ }
528
+ return $({
529
+ getData: Ge,
530
+ generatePdf: ye,
531
+ generateCsv: $e,
532
+ generateImage: me,
533
+ toggleTable: xe,
534
+ toggleLabels: we,
535
+ toggleTooltip: Pe,
536
+ toggleAnnotator: ne
537
+ }), (e, l) => (a(), r("div", {
538
+ onMouseleave: l[7] || (l[7] = (o) => {
539
+ Ce.value = null, X.value = null;
540
+ }),
541
+ ref_key: "moleculeChart",
542
+ ref: D,
543
+ class: Fe(`vue-ui-molecule ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
544
+ style: ie(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
545
+ id: `cluster_${s.value}`
546
+ }, [
547
+ t.value.userOptions.buttons.annotator ? (a(), T($t, {
548
+ key: 0,
549
+ parent: D.value,
550
+ backgroundColor: t.value.style.chart.backgroundColor,
551
+ color: t.value.style.chart.color,
552
+ active: Q.value,
553
+ onClose: ne
554
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
555
+ t.value.style.chart.title.text ? (a(), r("div", Ut, [
556
+ (a(), T(pt, {
557
+ key: `title_${ve.value}`,
558
+ config: {
559
+ title: {
560
+ cy: "molecule-div-title",
561
+ ...t.value.style.chart.title
562
+ },
563
+ subtitle: {
564
+ cy: "molecule-div-subtitle",
565
+ ...t.value.style.chart.title.subtitle
566
+ }
567
+ }
568
+ }, null, 8, ["config"]))
569
+ ])) : y("", !0),
570
+ t.value.userOptions.show && d.value ? (a(), T(gt, {
571
+ ref_key: "details",
572
+ ref: v,
573
+ key: `user_options_${_.value}`,
574
+ backgroundColor: t.value.style.chart.backgroundColor,
575
+ color: t.value.style.chart.color,
576
+ isPrinting: N(he),
577
+ isImaging: N(ge),
578
+ uid: s.value,
579
+ hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
580
+ hasPdf: t.value.userOptions.buttons.pdf,
581
+ hasXls: t.value.userOptions.buttons.csv,
582
+ hasImg: t.value.userOptions.buttons.img,
583
+ hasTable: t.value.userOptions.buttons.table,
584
+ hasLabel: t.value.userOptions.buttons.labels,
585
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
586
+ isTooltip: P.value.showTooltip,
587
+ titles: { ...t.value.userOptions.buttonTitles },
588
+ chartElement: D.value,
589
+ position: t.value.userOptions.position,
590
+ hasAnnotator: t.value.userOptions.buttons.annotator,
591
+ isAnnotation: Q.value,
592
+ onToggleFullscreen: je,
593
+ onGeneratePdf: N(ye),
594
+ onGenerateCsv: $e,
595
+ onGenerateImage: N(me),
596
+ onToggleTable: xe,
597
+ onToggleLabels: we,
598
+ onToggleTooltip: Pe,
599
+ onToggleAnnotator: ne
600
+ }, _e({ _: 2 }, [
601
+ e.$slots.optionTooltip ? {
602
+ name: "optionTooltip",
603
+ fn: k(() => [
604
+ C(e.$slots, "optionTooltip", {}, void 0, !0)
605
+ ]),
606
+ key: "0"
607
+ } : void 0,
608
+ e.$slots.optionPdf ? {
609
+ name: "optionPdf",
610
+ fn: k(() => [
611
+ C(e.$slots, "optionPdf", {}, void 0, !0)
612
+ ]),
613
+ key: "1"
614
+ } : void 0,
615
+ e.$slots.optionCsv ? {
616
+ name: "optionCsv",
617
+ fn: k(() => [
618
+ C(e.$slots, "optionCsv", {}, void 0, !0)
619
+ ]),
620
+ key: "2"
621
+ } : void 0,
622
+ e.$slots.optionImg ? {
623
+ name: "optionImg",
624
+ fn: k(() => [
625
+ C(e.$slots, "optionImg", {}, void 0, !0)
626
+ ]),
627
+ key: "3"
628
+ } : void 0,
629
+ e.$slots.optionTable ? {
630
+ name: "optionTable",
631
+ fn: k(() => [
632
+ C(e.$slots, "optionTable", {}, void 0, !0)
633
+ ]),
634
+ key: "4"
635
+ } : void 0,
636
+ e.$slots.optionLabels ? {
637
+ name: "optionLabels",
638
+ fn: k(() => [
639
+ C(e.$slots, "optionLabels", {}, void 0, !0)
640
+ ]),
641
+ key: "5"
642
+ } : void 0,
643
+ e.$slots.optionFullscreen ? {
644
+ name: "optionFullscreen",
645
+ fn: k(({ toggleFullscreen: o, isFullscreen: u }) => [
646
+ C(e.$slots, "optionFullscreen", W(q({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
647
+ ]),
648
+ key: "6"
649
+ } : void 0,
650
+ e.$slots.optionAnnotator ? {
651
+ name: "optionAnnotator",
652
+ fn: k(({ toggleAnnotator: o, isAnnotator: u }) => [
653
+ C(e.$slots, "optionAnnotator", W(q({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
654
+ ]),
655
+ key: "7"
656
+ } : void 0
657
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
658
+ d.value ? (a(), r("svg", {
659
+ key: 3,
660
+ xmlns: N(rt),
661
+ viewBox: ee.value,
662
+ class: Fe({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
663
+ style: ie(`overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
664
+ onClick: l[0] || (l[0] = M((o) => Be(o), ["stop"]))
665
+ }, [
666
+ S(Ct),
667
+ x("defs", null, [
668
+ (a(!0), r(m, null, z(Object.keys(ze.value), (o) => (a(), r("radialGradient", {
669
+ id: `gradient_${o}`,
670
+ cx: "50%",
671
+ cy: "30%",
672
+ r: "50%",
673
+ fx: "50%",
674
+ fy: "50%"
675
+ }, [
676
+ x("stop", {
677
+ offset: "0%",
678
+ "stop-color": N(it)(o, 0.5)
679
+ }, null, 8, Ot),
680
+ x("stop", {
681
+ offset: "100%",
682
+ "stop-color": o
683
+ }, null, 8, Bt)
684
+ ], 8, zt))), 256))
685
+ ]),
686
+ S(Rt, {
687
+ dataset: F.value,
688
+ color: t.value.style.chart.links.stroke,
689
+ backgroundColor: t.value.style.chart.backgroundColor
690
+ }, null, 8, ["dataset", "color", "backgroundColor"]),
691
+ S(Pt, {
692
+ dataset: F.value,
693
+ hoveredUid: X.value,
694
+ stroke: t.value.style.chart.nodes.stroke,
695
+ strokeHovered: t.value.style.chart.nodes.strokeHovered,
696
+ onZoom: Oe,
697
+ onHover: He
698
+ }, null, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
699
+ P.value.showDataLabels ? (a(), T(Lt, {
700
+ key: 0,
701
+ dataset: F.value,
702
+ color: t.value.style.chart.color,
703
+ hoveredUid: X.value
704
+ }, null, 8, ["dataset", "color", "hoveredUid"])) : y("", !0),
705
+ C(e.$slots, "svg", { svg: I.value }, void 0, !0)
706
+ ], 14, Nt)) : y("", !0),
707
+ A.value ? (a(), T(At, {
708
+ key: `direction_pad_${_.value}`,
709
+ color: t.value.style.chart.color,
710
+ isFullscreen: G.value,
711
+ onMoveLeft: l[1] || (l[1] = (o) => K("left")),
712
+ onMoveRight: l[2] || (l[2] = (o) => K("right")),
713
+ onMoveTop: l[3] || (l[3] = (o) => K("top")),
714
+ onMoveBottom: l[4] || (l[4] = (o) => K("bottom")),
715
+ onReset: l[5] || (l[5] = (o) => {
716
+ te(), A.value = !1;
717
+ })
718
+ }, null, 8, ["color", "isFullscreen"])) : y("", !0),
719
+ e.$slots.watermark ? (a(), r("div", Mt, [
720
+ C(e.$slots, "watermark", W(q({ isPrinting: N(he) || N(ge) })), void 0, !0)
721
+ ])) : y("", !0),
722
+ d.value ? y("", !0) : (a(), T(bt, {
723
+ key: 6,
724
+ config: {
725
+ type: "molecule",
726
+ style: {
727
+ backgroundColor: t.value.style.chart.backgroundColor,
728
+ molecule: {
729
+ color: "#CCCCCC"
730
+ }
731
+ }
732
+ }
733
+ }, null, 8, ["config"])),
734
+ e.$slots.source ? (a(), r("div", Ht, [
735
+ C(e.$slots, "source", {}, void 0, !0)
736
+ ], 512)) : y("", !0),
737
+ S(mt, {
738
+ show: P.value.showTooltip && R.value,
739
+ backgroundColor: t.value.style.chart.tooltip.backgroundColor,
740
+ color: t.value.style.chart.tooltip.color,
741
+ borderRadius: t.value.style.chart.tooltip.borderRadius,
742
+ borderColor: t.value.style.chart.tooltip.borderColor,
743
+ borderWidth: t.value.style.chart.tooltip.borderWidth,
744
+ fontSize: t.value.style.chart.tooltip.fontSize,
745
+ backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
746
+ position: t.value.style.chart.tooltip.position,
747
+ offsetY: t.value.style.chart.tooltip.offsetY,
748
+ parent: D.value,
749
+ content: p.value,
750
+ isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
751
+ }, {
752
+ "tooltip-before": k(() => [
753
+ C(e.$slots, "tooltip-before", W(q({ ...ae.value })), void 0, !0)
754
+ ]),
755
+ "tooltip-after": k(() => [
756
+ C(e.$slots, "tooltip-after", W(q({ ...ae.value })), void 0, !0)
757
+ ]),
758
+ _: 3
759
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
760
+ d.value ? (a(), T(kt, {
761
+ key: 8,
762
+ hideDetails: "",
763
+ config: {
764
+ open: P.value.showTable,
765
+ maxHeight: 1e4,
766
+ body: {
767
+ backgroundColor: t.value.style.chart.backgroundColor,
768
+ color: t.value.style.chart.color
769
+ },
770
+ head: {
771
+ backgroundColor: t.value.style.chart.backgroundColor,
772
+ color: t.value.style.chart.color
773
+ }
774
+ }
775
+ }, {
776
+ content: k(() => [
777
+ (a(), T(yt, {
778
+ key: `table_${fe.value}`,
779
+ colNames: H.value.colNames,
780
+ head: H.value.head,
781
+ body: H.value.body,
782
+ config: H.value.config,
783
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
784
+ onClose: l[6] || (l[6] = (o) => P.value.showTable = !1)
785
+ }, {
786
+ th: k(({ th: o }) => [
787
+ x("div", {
788
+ innerHTML: o,
789
+ style: { display: "flex", "align-items": "center" }
790
+ }, null, 8, Et)
791
+ ]),
792
+ td: k(({ td: o }) => [
793
+ et(Ae(o.name || o), 1)
794
+ ]),
795
+ _: 1
796
+ }, 8, ["colNames", "head", "body", "config", "title"]))
797
+ ]),
798
+ _: 1
799
+ }, 8, ["config"])) : y("", !0)
800
+ ], 46, It));
801
+ }
802
+ }, oo = /* @__PURE__ */ xt(Xt, [["__scopeId", "data-v-1cc509ce"]]);
803
+ export {
804
+ oo as default
805
+ };