vue-data-ui 2.6.48 → 2.6.49

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 (160) hide show
  1. package/dist/{Arrow-DeHvznlG.js → Arrow-Dv70pgNR.js} +1 -1
  2. package/dist/{Arrow-jh252AWJ.cjs → Arrow-shhEXYsq.cjs} +1 -1
  3. package/dist/{BaseIcon-DWuVl2GU.cjs → BaseIcon-D6QkKJpU.cjs} +1 -1
  4. package/dist/{BaseIcon-CZ5jKnR9.js → BaseIcon-ZZc7VY8d.js} +1 -1
  5. package/dist/{ColorPicker-yVPblb7p.cjs → ColorPicker-CGbS8gKN.cjs} +1 -1
  6. package/dist/{ColorPicker-BRTL96G8.js → ColorPicker-CUJpXuSS.js} +3 -3
  7. package/dist/{DataTable-zudSEeN9.cjs → DataTable-CRuMrwb8.cjs} +1 -1
  8. package/dist/{DataTable-BgfkOnBv.js → DataTable-CmnlvDKM.js} +2 -2
  9. package/dist/{Legend-cMLffIlh.js → Legend-B3rCxiju.js} +2 -2
  10. package/dist/{Legend-B0HXtacF.cjs → Legend-KLm00z8t.cjs} +1 -1
  11. package/dist/{PackageVersion-D4qZn7kl.js → PackageVersion-DavVl5j6.js} +1 -1
  12. package/dist/{PackageVersion-C6rcQig3.cjs → PackageVersion-DwKk69DU.cjs} +1 -1
  13. package/dist/{PenAndPaper-BAQpQDGa.js → PenAndPaper-CGAd_cD9.js} +3 -3
  14. package/dist/{PenAndPaper-DrtaW-dp.cjs → PenAndPaper-hlX2Djxv.cjs} +1 -1
  15. package/dist/{Shape-DllpVFvn.cjs → Shape-BGYZa31d.cjs} +1 -1
  16. package/dist/{Shape-CsDyTgir.js → Shape-CWFBkvfP.js} +1 -1
  17. package/dist/{Slicer-msNNVisO.js → Slicer-BEOWbyKm.js} +2 -2
  18. package/dist/{Slicer-BlR2F0u2.cjs → Slicer-CAyYbVK-.cjs} +1 -1
  19. package/dist/{Title-CzrNFvru.js → Title-Ch602IT9.js} +1 -1
  20. package/dist/{Title-BMptuaY_.cjs → Title-Iy2d-Bd1.cjs} +1 -1
  21. package/dist/{Tooltip-BjCE_Xgz.js → Tooltip-0IaPNa9t.js} +1 -1
  22. package/dist/{Tooltip-3cVqgTfY.cjs → Tooltip-DhV-T1A4.cjs} +1 -1
  23. package/dist/{index-BkXUnRSw.cjs → index-C4TeRZvT.cjs} +2 -2
  24. package/dist/{index-CFFS5fou.js → index-C7spnOfS.js} +5 -2
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-BeNFEsBg.cjs → useNestedProp-BS-4R8zR.cjs} +1 -1
  27. package/dist/{useNestedProp-WmGLMI7a.js → useNestedProp-BXHzK3EV.js} +1 -1
  28. package/dist/usePanZoom-CWL8SzZN.js +79 -0
  29. package/dist/usePanZoom-CppTL3G-.cjs +1 -0
  30. package/dist/{usePrinter-V42TEKtB.js → usePrinter-BDUIRBP4.js} +1 -1
  31. package/dist/{usePrinter-pQdLIFcU.cjs → usePrinter-bFMowLOh.cjs} +1 -1
  32. package/dist/{vue-data-ui-BHqGQu50.js → vue-data-ui-Be5Tgffi.js} +61 -61
  33. package/dist/{vue-data-ui-CSvoco2Z.cjs → vue-data-ui-CAyq9OfR.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-3HSZgDqW.js → vue-ui-3d-bar-CtOPLOD3.js} +9 -9
  37. package/dist/{vue-ui-3d-bar-enGIMYF-.cjs → vue-ui-3d-bar-M3DFCjSK.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-C0Xh8ENO.cjs → vue-ui-accordion-BIbie2vw.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-68aNqLIG.js → vue-ui-accordion-Bk2aYAD-.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-0ARpZkDU.cjs → vue-ui-age-pyramid-CR9x-PgJ.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-DqO9Yf9E.js → vue-ui-age-pyramid-hyVqCFgO.js} +10 -10
  42. package/dist/{vue-ui-annotator-DO9HUbCU.cjs → vue-ui-annotator-BXHTI64K.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-ONpVjIMZ.js → vue-ui-annotator-Qn0uc5GZ.js} +1 -1
  44. package/dist/{vue-ui-bullet-8GyHi1kK.js → vue-ui-bullet-CrWBMd4n.js} +8 -8
  45. package/dist/{vue-ui-bullet-DHH7hqHz.cjs → vue-ui-bullet-DM6lx30F.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-C77dJq5O.js → vue-ui-candlestick-B2jTfGz7.js} +11 -11
  47. package/dist/{vue-ui-candlestick-BumYsF-O.cjs → vue-ui-candlestick-DUZlc7tm.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-BxFiQRr9.cjs → vue-ui-carousel-table-3QViQ5Bi.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-BgdM7pov.js → vue-ui-carousel-table-Cy39XJq8.js} +4 -4
  50. package/dist/{vue-ui-chestnut-CQkrFvJa.cjs → vue-ui-chestnut-CAEZuh12.cjs} +1 -1
  51. package/dist/{vue-ui-chestnut-COPZicvP.js → vue-ui-chestnut-Dr3sUQIO.js} +8 -8
  52. package/dist/{vue-ui-circle-pack-DFr3W9PK.js → vue-ui-circle-pack-C8lFd9HI.js} +9 -9
  53. package/dist/{vue-ui-circle-pack-orK3sDBb.cjs → vue-ui-circle-pack-DNSLbFV_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-Dd01d8dq.cjs → vue-ui-cursor-B4KSNGDd.cjs} +1 -1
  55. package/dist/{vue-ui-cursor-CqT_0xhF.js → vue-ui-cursor-Bim9FO5p.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BIY1p9ii.cjs → vue-ui-dashboard-BlMkdmJG.cjs} +1 -1
  57. package/dist/{vue-ui-dashboard-CwlJ0U8Z.js → vue-ui-dashboard-q2N-lR5R.js} +2 -2
  58. package/dist/{vue-ui-digits-ejZtkmOF.cjs → vue-ui-digits-BxsLTjn3.cjs} +1 -1
  59. package/dist/{vue-ui-digits-DWbFzx6q.js → vue-ui-digits-Cs5S9-t4.js} +2 -2
  60. package/dist/{vue-ui-donut-ZjQOuqdK.cjs → vue-ui-donut-CHAu83aL.cjs} +1 -1
  61. package/dist/{vue-ui-donut-IqhIH5Hs.js → vue-ui-donut-CsK4bhU9.js} +12 -12
  62. package/dist/{vue-ui-donut-evolution-DzBOXBNU.cjs → vue-ui-donut-evolution-DIgg0r1H.cjs} +1 -1
  63. package/dist/{vue-ui-donut-evolution-DK4Ry8OG.js → vue-ui-donut-evolution-DRIjATMj.js} +11 -11
  64. package/dist/{vue-ui-dumbbell-DoERaO7T.cjs → vue-ui-dumbbell-Dnd5xBoE.cjs} +1 -1
  65. package/dist/{vue-ui-dumbbell-CxDinKeH.js → vue-ui-dumbbell-RqWpXNMb.js} +10 -10
  66. package/dist/{vue-ui-flow-BuaBA2J_.cjs → vue-ui-flow-DLkZ_RPK.cjs} +1 -1
  67. package/dist/{vue-ui-flow-BnE9cqZL.js → vue-ui-flow-Wl9BdRET.js} +9 -9
  68. package/dist/{vue-ui-funnel-CYtp-5QK.js → vue-ui-funnel-BtEiPtWV.js} +9 -9
  69. package/dist/{vue-ui-funnel-mn1BtOGd.cjs → vue-ui-funnel-C9kqSvdp.cjs} +1 -1
  70. package/dist/{vue-ui-galaxy-D4bzB7id.cjs → vue-ui-galaxy-DuHBx10N.cjs} +1 -1
  71. package/dist/{vue-ui-galaxy-Cb6K-pE8.js → vue-ui-galaxy-Dy0szrMW.js} +11 -11
  72. package/dist/{vue-ui-gauge-Cs0dyaGc.cjs → vue-ui-gauge-BHTXAsP3.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-CwefloBc.js → vue-ui-gauge-Bl5tGVHq.js} +7 -7
  74. package/dist/{vue-ui-gizmo-Breb8hRA.cjs → vue-ui-gizmo-C4BrHDh4.cjs} +1 -1
  75. package/dist/{vue-ui-gizmo-CRp_vQxS.js → vue-ui-gizmo-DMyPBBMU.js} +3 -3
  76. package/dist/{vue-ui-heatmap-C_64kZde.js → vue-ui-heatmap-TlpTNG5t.js} +10 -10
  77. package/dist/{vue-ui-heatmap-BMn83Iw6.cjs → vue-ui-heatmap-sFIr2K5p.cjs} +1 -1
  78. package/dist/{vue-ui-history-plot-D_0c6-QM.cjs → vue-ui-history-plot-DAjdzGlR.cjs} +1 -1
  79. package/dist/{vue-ui-history-plot-DvIN9tLu.js → vue-ui-history-plot-Dy1j0BxQ.js} +11 -11
  80. package/dist/{vue-ui-kpi-D6w1Z0ut.js → vue-ui-kpi-BcmSRMqx.js} +3 -3
  81. package/dist/{vue-ui-kpi-DFXNg3nw.cjs → vue-ui-kpi-ujEXx77P.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-B7tT5tbh.js → vue-ui-mini-loader-CjnStv_v.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-cO3I00Pq.cjs → vue-ui-mini-loader-DAPA-14x.cjs} +1 -1
  84. package/dist/vue-ui-molecule-DR0XoKl0.cjs +1 -0
  85. package/dist/vue-ui-molecule-JFJY9rsO.js +755 -0
  86. package/dist/{vue-ui-mood-radar-ByDpmuxU.cjs → vue-ui-mood-radar-BaysMegc.cjs} +1 -1
  87. package/dist/{vue-ui-mood-radar-Cx_8YqzF.js → vue-ui-mood-radar-COoBSKNH.js} +11 -11
  88. package/dist/{vue-ui-nested-donuts-DHWlR3jy.js → vue-ui-nested-donuts-CtFedcCD.js} +11 -11
  89. package/dist/{vue-ui-nested-donuts-aI-ze2j2.cjs → vue-ui-nested-donuts-DYBuISa1.cjs} +1 -1
  90. package/dist/{vue-ui-onion-B6zylASt.js → vue-ui-onion-CEUV1mny.js} +11 -11
  91. package/dist/{vue-ui-onion-Dynyp18f.cjs → vue-ui-onion-D6ZwBWQg.cjs} +1 -1
  92. package/dist/{vue-ui-parallel-coordinate-plot-GWh7DX3Y.cjs → vue-ui-parallel-coordinate-plot-BxNT4su_.cjs} +1 -1
  93. package/dist/{vue-ui-parallel-coordinate-plot-CiLB1BKE.js → vue-ui-parallel-coordinate-plot-DYTDHl62.js} +12 -12
  94. package/dist/{vue-ui-quadrant-D7SEY4Nj.js → vue-ui-quadrant-Bgw63sh8.js} +12 -12
  95. package/dist/{vue-ui-quadrant-DxaQZoLd.cjs → vue-ui-quadrant-j31KXFQl.cjs} +1 -1
  96. package/dist/{vue-ui-quick-chart-D1NfrJg3.js → vue-ui-quick-chart-DQQj-yff.js} +9 -9
  97. package/dist/{vue-ui-quick-chart-BxHBJWtp.cjs → vue-ui-quick-chart-oEQhbqjr.cjs} +1 -1
  98. package/dist/{vue-ui-radar-CoZBZklY.cjs → vue-ui-radar-C5pUYB_x.cjs} +1 -1
  99. package/dist/{vue-ui-radar-B9DxtK3T.js → vue-ui-radar-D8z1eA3O.js} +12 -12
  100. package/dist/{vue-ui-rating-DDCXKsJS.js → vue-ui-rating-CEIibBYU.js} +2 -2
  101. package/dist/{vue-ui-rating-k2SeZNIl.cjs → vue-ui-rating-CGh8TQ5M.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-B11wnErY.cjs → vue-ui-relation-circle-Bf6kjYWL.cjs} +1 -1
  103. package/dist/{vue-ui-relation-circle-Be4MpIZt.js → vue-ui-relation-circle-BrIe8bZU.js} +7 -7
  104. package/dist/{vue-ui-rings-B2IabkNN.js → vue-ui-rings-6l5DQ0_9.js} +12 -12
  105. package/dist/{vue-ui-rings-CnhnlHk4.cjs → vue-ui-rings-BmSQzToz.cjs} +1 -1
  106. package/dist/{vue-ui-scatter-uyOOlflr.js → vue-ui-scatter-0geSLTUp.js} +12 -12
  107. package/dist/{vue-ui-scatter-tU7Sls6T.cjs → vue-ui-scatter-g67ClUSv.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-Y8ZFxWOK.js → vue-ui-screenshot-CshpwrmO.js} +1 -1
  109. package/dist/{vue-ui-screenshot-CQUUa4js.cjs → vue-ui-screenshot-r5tJCW0O.cjs} +1 -1
  110. package/dist/{vue-ui-skeleton-CE6Rhdwq.js → vue-ui-skeleton-Bn49rVXa.js} +3 -3
  111. package/dist/{vue-ui-skeleton-BQSnhKj4.cjs → vue-ui-skeleton-D7ijXB6x.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-CwnOcaDD.js → vue-ui-smiley-CzAtJD1G.js} +2 -2
  113. package/dist/{vue-ui-smiley-C9qaB_MO.cjs → vue-ui-smiley-HofydNoz.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-ZMvBWU7T.js → vue-ui-spark-trend-B70DhKVg.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-xU3yJI0s.cjs → vue-ui-spark-trend-CdTdbj6x.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-CyhZr6ox.js → vue-ui-sparkbar-CZ8Nw4fl.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-DMJyaiJL.cjs → vue-ui-sparkbar-cJ7Wu051.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-BAGFZVWH.cjs → vue-ui-sparkgauge-BWNkoMqk.cjs} +1 -1
  119. package/dist/{vue-ui-sparkgauge-C59o5PLo.js → vue-ui-sparkgauge-D-VwonfZ.js} +4 -4
  120. package/dist/{vue-ui-sparkhistogram-Br2lTOWq.js → vue-ui-sparkhistogram-BK58LMOs.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-hR2cA_1P.cjs → vue-ui-sparkhistogram-hBwVKdOS.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-Cj9Shaxo.cjs → vue-ui-sparkline-BD4gkpj_.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-XjVDZSJW.js → vue-ui-sparkline-DORXFea9.js} +4 -4
  124. package/dist/{vue-ui-sparkstackbar-D1k-uOj4.js → vue-ui-sparkstackbar-CNu5TNGE.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-hPuv4RZq.cjs → vue-ui-sparkstackbar-ClcY4WWe.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-DCW5UenP.js → vue-ui-stackbar--aCaS5x2.js} +13 -13
  127. package/dist/{vue-ui-stackbar-B3y0c9T0.cjs → vue-ui-stackbar-CkMwpXvU.cjs} +1 -1
  128. package/dist/{vue-ui-strip-plot-DNrU2G2r.cjs → vue-ui-strip-plot-BiFHgg1S.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-Ctlsvtbq.js → vue-ui-strip-plot-CFVbMS6X.js} +11 -11
  130. package/dist/{vue-ui-table-xBKNheLy.js → vue-ui-table-B_3Ilpbe.js} +1 -1
  131. package/dist/{vue-ui-table-CAK_tKR0.cjs → vue-ui-table-DR255TsX.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-BqXr-8TN.js → vue-ui-table-heatmap-BNxAz0s0.js} +4 -4
  133. package/dist/{vue-ui-table-heatmap-BR07D_Jk.cjs → vue-ui-table-heatmap-GUBFCD5M.cjs} +1 -1
  134. package/dist/{vue-ui-table-sparkline-B7B3c3Kb.cjs → vue-ui-table-sparkline-B4tLXnLP.cjs} +1 -1
  135. package/dist/{vue-ui-table-sparkline-D_URlvKj.js → vue-ui-table-sparkline-DSOduMZf.js} +5 -5
  136. package/dist/{vue-ui-thermometer-BR9SzHOJ.cjs → vue-ui-thermometer-D4xuEt1d.cjs} +1 -1
  137. package/dist/{vue-ui-thermometer-C6PZ9mvq.js → vue-ui-thermometer-DmM-HnTb.js} +7 -7
  138. package/dist/{vue-ui-timer-Qv1fF4Rq.cjs → vue-ui-timer-CRvBgkAk.cjs} +1 -1
  139. package/dist/{vue-ui-timer-Bg-ffBSP.js → vue-ui-timer-Cv3Nx66b.js} +5 -5
  140. package/dist/{vue-ui-tiremarks-CjYT3G69.js → vue-ui-tiremarks-ASWxcVYt.js} +7 -7
  141. package/dist/{vue-ui-tiremarks-BfQsDoMb.cjs → vue-ui-tiremarks-BCm4J3AS.cjs} +1 -1
  142. package/dist/{vue-ui-treemap-DYmCTmlo.js → vue-ui-treemap-DkTT9Fpa.js} +12 -12
  143. package/dist/{vue-ui-treemap-BxdErYLZ.cjs → vue-ui-treemap-K-I2E3e-.cjs} +1 -1
  144. package/dist/{vue-ui-vertical-bar-BbSaoHnx.js → vue-ui-vertical-bar-CKAyFHu9.js} +12 -12
  145. package/dist/{vue-ui-vertical-bar-D6020yMP.cjs → vue-ui-vertical-bar-CYsYkq04.cjs} +1 -1
  146. package/dist/{vue-ui-waffle-BYHvDjBd.js → vue-ui-waffle-DA1_yNZ7.js} +12 -12
  147. package/dist/{vue-ui-waffle-DCa7TbcY.cjs → vue-ui-waffle-WHpYY_yA.cjs} +1 -1
  148. package/dist/{vue-ui-wheel-Dfpw-TGn.cjs → vue-ui-wheel-CWY3hkRC.cjs} +1 -1
  149. package/dist/{vue-ui-wheel-CXcHXSmc.js → vue-ui-wheel-vebQiYtM.js} +7 -7
  150. package/dist/vue-ui-word-cloud-CABqCfl5.js +571 -0
  151. package/dist/vue-ui-word-cloud-H7016Zdi.cjs +1 -0
  152. package/dist/{vue-ui-xy-C_ZIwWl7.js → vue-ui-xy-C2OQ78CJ.js} +14 -14
  153. package/dist/{vue-ui-xy-DOT-R_9J.cjs → vue-ui-xy-CrCJrk6u.cjs} +1 -1
  154. package/dist/{vue-ui-xy-canvas-C_LTt1hr.cjs → vue-ui-xy-canvas-D5iPJqoe.cjs} +1 -1
  155. package/dist/{vue-ui-xy-canvas-CW7oyZMn.js → vue-ui-xy-canvas-DvZgi7HV.js} +12 -12
  156. package/package.json +2 -2
  157. package/dist/vue-ui-molecule-BsrAlvIA.js +0 -830
  158. package/dist/vue-ui-molecule-Cgn3O9Zb.cjs +0 -1
  159. package/dist/vue-ui-word-cloud-BS68DlmA.cjs +0 -1
  160. package/dist/vue-ui-word-cloud-BaXm2uvH.js +0 -646
@@ -1,830 +0,0 @@
1
- import { toRef as he, resolveComponent as fe, createElementBlock as d, openBlock as s, Fragment as k, renderList as M, createCommentVNode as m, createBlock as R, createElementVNode as W, withModifiers as Ge, renderSlot as w, mergeProps as xe, withCtx as P, toDisplayString as Se, ref as p, onMounted as Ae, onUnmounted as Ve, watchEffect as We, computed as _, watch as Xe, unref as b, normalizeStyle as ve, normalizeClass as Pe, createVNode as ae, createSlots as je, normalizeProps as G, guardReactiveProps as V, createTextVNode as Ye, nextTick as Ze } from "vue";
2
- import { u as qe, o as Qe, e as Je, c as Te, t as Ke, p as Fe, a as et, b as tt, P as ot, X as lt, l as st, Q as nt, d as Le, q as at, r as rt, x as it, y as ut } from "./index-CFFS5fou.js";
3
- import { _ as ct } from "./Title-CzrNFvru.js";
4
- import { u as dt, U as vt } from "./usePrinter-V42TEKtB.js";
5
- import { D as ht } from "./DataTable-BgfkOnBv.js";
6
- import { _ as ft } from "./Tooltip-BjCE_Xgz.js";
7
- import yt from "./vue-ui-skeleton-CE6Rhdwq.js";
8
- import pt from "./vue-ui-accordion-68aNqLIG.js";
9
- import { u as Ee } from "./useNestedProp-WmGLMI7a.js";
10
- import { _ as mt } from "./PackageVersion-D4qZn7kl.js";
11
- import { P as gt } from "./PenAndPaper-BAQpQDGa.js";
12
- import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
13
- import { u as kt } from "./useChartAccessibility-BWojgys7.js";
14
- import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], wt = ["x", "y", "height", "width", "onClick", "onMouseover"], xt = {
16
- __name: "RecursiveCircles",
17
- props: {
18
- color: {
19
- type: String,
20
- default: "#000000"
21
- },
22
- dataset: {
23
- type: Array,
24
- default: () => []
25
- },
26
- hoveredUid: {
27
- type: String,
28
- default: null
29
- },
30
- linkColor: {
31
- type: String,
32
- default: "#CCCCCC"
33
- },
34
- stroke: {
35
- type: String,
36
- default: "#FFFFFF"
37
- },
38
- strokeHovered: {
39
- type: String,
40
- default: "#000000"
41
- }
42
- },
43
- emits: ["click", "hover"],
44
- setup(r, { emit: z }) {
45
- const H = r, E = z;
46
- function a(n) {
47
- E("click", n);
48
- }
49
- function C(n) {
50
- E("hover", n);
51
- }
52
- return he(H, "dataset").value.forEach((n) => {
53
- n.nodes && n.nodes.length > 0 && n.nodes.forEach((f) => {
54
- f.ancestor = n;
55
- });
56
- }), (n, f) => {
57
- const B = fe("RecursiveCircles", !0);
58
- return s(!0), d(k, null, M(r.dataset, (i) => (s(), d(k, null, [
59
- i.polygonPath && i.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
60
- (s(!0), d(k, null, M(i.polygonPath.coordinates, (x, U) => (s(), d(k, null, [
61
- W("circle", {
62
- cx: x.x,
63
- cy: x.y,
64
- r: i.circleRadius,
65
- fill: `url(#gradient_${i.color})`,
66
- stroke: r.hoveredUid && r.hoveredUid === i.uid ? r.strokeHovered : r.stroke,
67
- "stroke-width": r.hoveredUid && r.hoveredUid === i.uid ? i.circleRadius / 6 : i.circleRadius / 12,
68
- style: { cursor: "pointer" },
69
- onClick: (S) => a(i),
70
- onMouseover: (S) => C(i),
71
- onMouseleave: f[0] || (f[0] = (S) => C(null))
72
- }, null, 40, $t),
73
- n.$slots.node ? (s(), d("foreignObject", {
74
- key: 0,
75
- x: x.x - i.circleRadius,
76
- y: x.y - i.circleRadius,
77
- height: i.circleRadius * 2,
78
- width: i.circleRadius * 2,
79
- style: { overflow: "visible" },
80
- onClick: Ge((S) => a(i), ["stop"]),
81
- onMouseover: (S) => C(i),
82
- onMouseleave: f[1] || (f[1] = (S) => C(null))
83
- }, [
84
- w(n.$slots, "node", xe({ ref_for: !0 }, { node: i }))
85
- ], 40, wt)) : m("", !0)
86
- ], 64))), 256)),
87
- i.nodes && i.nodes.length > 0 ? (s(), R(B, {
88
- key: 0,
89
- dataset: i.nodes,
90
- color: r.color,
91
- stroke: r.stroke,
92
- strokeHovered: r.strokeHovered,
93
- hoveredUid: r.hoveredUid,
94
- onClick: a,
95
- onHover: C
96
- }, {
97
- node: P(({ node: x }) => [
98
- w(n.$slots, "node", xe({ ref_for: !0 }, { node: x }))
99
- ]),
100
- _: 2
101
- }, 1032, ["dataset", "color", "stroke", "strokeHovered", "hoveredUid"])) : m("", !0)
102
- ], 64)) : m("", !0)
103
- ], 64))), 256);
104
- };
105
- }
106
- }, Pt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Tt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ft = {
107
- __name: "RecursiveLinks",
108
- props: {
109
- dataset: {
110
- type: Array,
111
- default: () => []
112
- },
113
- color: {
114
- type: String,
115
- default: "#DDDDDD"
116
- },
117
- backgroundColor: {
118
- type: String,
119
- default: "#FFFFFF"
120
- }
121
- },
122
- setup(r) {
123
- return he(r, "dataset").value.forEach((E) => {
124
- E.nodes && E.nodes.length > 0 && E.nodes.forEach((a) => {
125
- a.ancestor = E;
126
- });
127
- }), (E, a) => {
128
- const C = fe("RecursiveLinks", !0);
129
- return s(), d(k, null, [
130
- (s(!0), d(k, null, M(r.dataset, (u) => (s(), d(k, null, [
131
- u.polygonPath && u.polygonPath.coordinates ? (s(!0), d(k, { key: 0 }, M(u.polygonPath.coordinates, (n, f) => (s(), d(k, null, [
132
- u.ancestor && u.ancestor.polygonPath ? (s(), d(k, { key: 0 }, [
133
- W("line", {
134
- x1: n.x,
135
- y1: n.y,
136
- x2: u.ancestor.polygonPath.coordinates[0].x,
137
- y2: u.ancestor.polygonPath.coordinates[0].y,
138
- stroke: r.backgroundColor,
139
- "stroke-width": u.circleRadius / 1.5
140
- }, null, 8, Pt),
141
- W("line", {
142
- x1: n.x,
143
- y1: n.y,
144
- x2: u.ancestor.polygonPath.coordinates[0].x,
145
- y2: u.ancestor.polygonPath.coordinates[0].y,
146
- stroke: r.color,
147
- "stroke-width": u.circleRadius / 2
148
- }, null, 8, Tt)
149
- ], 64)) : m("", !0)
150
- ], 64))), 256)) : m("", !0)
151
- ], 64))), 256)),
152
- (s(!0), d(k, null, M(r.dataset, (u) => (s(), d(k, null, [
153
- u.polygonPath && u.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
154
- u.nodes && u.nodes.length > 0 ? (s(), R(C, {
155
- key: 0,
156
- dataset: u.nodes,
157
- color: r.color,
158
- backgroundColor: r.backgroundColor
159
- }, null, 8, ["dataset", "color", "backgroundColor"])) : m("", !0)
160
- ], 64)) : m("", !0)
161
- ], 64))), 256))
162
- ], 64);
163
- };
164
- }
165
- }, Lt = ["x", "y", "fill", "font-size"], Et = {
166
- __name: "RecursiveLabels",
167
- props: {
168
- color: {
169
- type: String,
170
- default: "#000000"
171
- },
172
- dataset: {
173
- type: Array,
174
- default: () => []
175
- },
176
- hoveredUid: {
177
- type: String,
178
- default: null
179
- }
180
- },
181
- emits: ["zoom", "hover"],
182
- setup(r, { emit: z }) {
183
- return he(r, "dataset").value.forEach((a) => {
184
- a.nodes && a.nodes.length > 0 && a.nodes.forEach((C) => {
185
- C.ancestor = a;
186
- });
187
- }), (a, C) => {
188
- const u = fe("RecursiveLabels", !0);
189
- return s(!0), d(k, null, M(r.dataset, (n) => (s(), d(k, null, [
190
- n.polygonPath && n.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
191
- (s(!0), d(k, null, M(n.polygonPath.coordinates, (f) => (s(), d("text", {
192
- x: f.x,
193
- y: f.y + n.circleRadius * 2,
194
- fill: r.color,
195
- "font-size": n.circleRadius,
196
- "text-anchor": "middle",
197
- style: { opacity: "0.8", "pointer-events": "none" }
198
- }, Se(n.name), 9, Lt))), 256)),
199
- n.nodes && n.nodes.length > 0 ? (s(), R(u, {
200
- key: 0,
201
- dataset: n.nodes,
202
- color: r.color,
203
- hoveredUid: r.hoveredUid
204
- }, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0)
205
- ], 64)) : m("", !0)
206
- ], 64))), 256);
207
- };
208
- }
209
- };
210
- function St(r, z = { x: 0, y: 0, width: 100, height: 100 }, H = 1, E) {
211
- const a = p({ ...z }), C = p(1), u = p(!1), n = p({ x: 0, y: 0 });
212
- let f = { x: 0, y: 0 }, B = null, i = null;
213
- function x(o) {
214
- var D;
215
- const v = r.value;
216
- if (!v) return { x: 0, y: 0 };
217
- const g = v.createSVGPoint();
218
- g.x = o.clientX, g.y = o.clientY;
219
- const T = (D = v.getScreenCTM()) == null ? void 0 : D.inverse();
220
- return T ? g.matrixTransform(T) : { x: 0, y: 0 };
221
- }
222
- function U(o) {
223
- u.value = !0;
224
- const v = x(o.touches ? o.touches[0] : o);
225
- n.value = { x: v.x, y: v.y }, f = { x: 0, y: 0 };
226
- }
227
- function S(o) {
228
- if (!u.value) return;
229
- const v = x(o.touches ? o.touches[0] : o);
230
- let g = v.x - n.value.x, T = v.y - n.value.y;
231
- Math.abs(g) < 0.3 && Math.abs(T) < 0.3 || (f.x = g * 0.8 + f.x * 0.2, f.y = T * 0.8 + f.y * 0.2, n.value = v, B || (B = requestAnimationFrame(oe)));
232
- }
233
- function oe() {
234
- a.value.x -= f.x, a.value.y -= f.y, B = null;
235
- }
236
- function I() {
237
- u.value = !1;
238
- }
239
- function e(o) {
240
- o.preventDefault();
241
- const v = o.deltaY > 0 ? 0.9 : 1.1;
242
- j(v, x(o));
243
- }
244
- function X(o) {
245
- o.preventDefault();
246
- const v = x(o), g = 1.02 * (1 + H / 100);
247
- le(g, v);
248
- }
249
- function le(o, v) {
250
- i && cancelAnimationFrame(i);
251
- let g = C.value, T = g * o, D = 0;
252
- const $ = () => {
253
- D += 0.02;
254
- let Z = g + (T - g) * se(D);
255
- if (D >= 1) {
256
- C.value = T, i = null;
257
- return;
258
- }
259
- j(Z / g, v), i = requestAnimationFrame($);
260
- };
261
- $();
262
- }
263
- const se = (o) => o < 0.5 ? 2 * o * o : -1 + (4 - 2 * o) * o;
264
- function j(o, v) {
265
- const g = C.value * o, T = g / C.value, D = a.value.width / T, $ = a.value.height / T, Z = (v.x - a.value.x) * (1 - 1 / T), re = (v.y - a.value.y) * (1 - 1 / T);
266
- a.value.x += Z, a.value.y += re, a.value.width = D, a.value.height = $, C.value = g;
267
- }
268
- Ae(J), Ve(Y);
269
- function J() {
270
- const o = r.value;
271
- o && (o.addEventListener("mousedown", U), o.addEventListener("mousemove", S), o.addEventListener("mouseup", I), o.addEventListener("mouseleave", I), o.addEventListener("wheel", e, { passive: !1 }), o.addEventListener("dblclick", X), o.addEventListener("touchstart", (v) => {
272
- v.preventDefault(), U(v);
273
- }, { passive: !1 }), o.addEventListener("touchmove", (v) => {
274
- v.preventDefault(), S(v);
275
- }, { passive: !1 }), o.addEventListener("touchend", I));
276
- }
277
- function Y() {
278
- const o = r.value;
279
- o && (o.removeEventListener("mousedown", U), o.removeEventListener("mousemove", S), o.removeEventListener("mouseup", I), o.removeEventListener("mouseleave", I), o.removeEventListener("wheel", e), o.removeEventListener("dblclick", X), o.removeEventListener("touchstart", U), o.removeEventListener("touchmove", S), o.removeEventListener("touchend", I));
280
- }
281
- return We(() => (E.value ? J() : Y(), () => {
282
- Y();
283
- })), { viewBox: a };
284
- }
285
- const At = ["id"], Ot = {
286
- key: 1,
287
- ref: "noTitle",
288
- class: "vue-data-ui-no-title-space",
289
- style: "height:36px; width: 100%;background:transparent"
290
- }, Dt = {
291
- key: 2,
292
- style: "width:100%;background:transparent;"
293
- }, Rt = ["xmlns", "viewBox"], Ut = ["width", "height"], It = ["id"], Nt = ["stop-color"], _t = ["stop-color"], Mt = {
294
- key: 5,
295
- class: "vue-data-ui-watermark"
296
- }, zt = {
297
- key: 7,
298
- ref: "source",
299
- dir: "auto"
300
- }, Ht = ["innerHTML"], Bt = {
301
- __name: "vue-ui-molecule",
302
- props: {
303
- config: {
304
- type: Object,
305
- default() {
306
- return {};
307
- }
308
- },
309
- dataset: {
310
- type: Array,
311
- default() {
312
- return [];
313
- }
314
- }
315
- },
316
- emits: ["selectNode"],
317
- setup(r, { expose: z, emit: H }) {
318
- const { vue_ui_molecule: E } = qe(), a = r, C = H, u = _(() => !!a.dataset && a.dataset.length);
319
- Ae(() => {
320
- n();
321
- });
322
- function n() {
323
- Qe(a.dataset) && Je({
324
- componentName: "VueUiMolecule",
325
- type: "dataset"
326
- });
327
- }
328
- const f = p(Te()), B = p(null), i = p(!1), x = p(""), U = p(null), S = p(0), oe = p(0), I = p(0), e = _({
329
- get: () => J(),
330
- set: (t) => t
331
- }), { userOptionsVisible: X, setUserOptionsVisibility: le, keepUserOptionState: se } = bt({ config: e.value }), { svgRef: j } = kt({ config: e.value.style.chart.title });
332
- function J() {
333
- const t = Ee({
334
- userConfig: a.config,
335
- defaultConfig: E
336
- });
337
- return t.theme ? {
338
- ...Ee({
339
- userConfig: et.vue_ui_molecule[t.theme] || a.config,
340
- defaultConfig: t
341
- }),
342
- customPalette: Ke[t.theme] || Fe
343
- } : t;
344
- }
345
- Xe(() => a.config, (t) => {
346
- e.value = J(), X.value = !e.value.userOptions.showOnChartHover, n(), oe.value += 1, I.value += 1, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
347
- }, { deep: !0 });
348
- const { isPrinting: Y, isImaging: o, generatePdf: v, generateImage: g } = dt({
349
- elementId: `cluster_${f.value}`,
350
- fileName: e.value.style.chart.title.text || "vue-ui-molecule",
351
- options: e.value.userOptions.print
352
- }), T = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = _(() => tt(e.value.customPalette)), $ = p({
353
- showTable: e.value.table.show,
354
- showDataLabels: !0,
355
- showTooltip: e.value.style.chart.tooltip.show
356
- });
357
- function Z(t, c = 0) {
358
- return Array.isArray(t) && t.length > 0 && t[0].nodes ? Z(t[0].nodes, c + 1) : c;
359
- }
360
- function re() {
361
- const t = Z(a.dataset);
362
- let c = 100, l = c;
363
- for (let y = 0; y < t; y += 1)
364
- c /= 1, l += c;
365
- return {
366
- height: l,
367
- width: l
368
- };
369
- }
370
- const L = p(re());
371
- p(`0 0 ${L.value.width} ${L.value.height}`);
372
- function ye(t, c = { x: -L.value.width / 2.43, y: L.value.height / 2 }, l = L.value.width / 1.1, y = 24, h = 0, F = 0, A = "#BBBBBB", ce = 0) {
373
- if (!Array.isArray(t) || t.length === 0) return t;
374
- const Be = nt({
375
- plot: c,
376
- radius: l,
377
- sides: t.length,
378
- rotation: h
379
- });
380
- return t.forEach((O, Ce) => {
381
- const $e = Be.coordinates[Ce], we = O.color ? (() => {
382
- let de = Le(O.color);
383
- return de.startsWith("#") ? de : `#${de}`;
384
- })() : null;
385
- let Q;
386
- we ? Q = we : ce === 0 ? Q = A : ce === 1 ? (Q = D.value[F] || Fe[F] || A, F += 1) : Q = A, O.polygonPath = { coordinates: [$e] }, O.circleRadius = y, O.color = Q, O.uid = Te(), Array.isArray(O.nodes) && O.nodes.length && (O.nodes = ye(
387
- O.nodes,
388
- $e,
389
- l / 2.9,
390
- y / 2.2,
391
- h + Math.PI * Ce / O.nodes.length,
392
- F,
393
- Q,
394
- ce + 1
395
- ));
396
- }), t;
397
- }
398
- function Oe(t) {
399
- const c = /* @__PURE__ */ new Set();
400
- function l(h) {
401
- h.forEach((F) => {
402
- if (!F.color) return;
403
- let A = F.color;
404
- /^#?[0-9A-F]{6}$/i.test(A) || (A = Le(A)), A.startsWith("#") || (A = `#${A}`), c.add(A), Array.isArray(F.nodes) && F.nodes.length && l(F.nodes);
405
- });
406
- }
407
- l(t);
408
- const y = {};
409
- return Array.from(c).forEach((h) => {
410
- const F = h.slice(1);
411
- y[h] = `gradient_${F}`;
412
- }), y;
413
- }
414
- const De = _(() => Oe(N.value)), N = _(() => {
415
- const t = ot(a.dataset);
416
- return ye(t);
417
- }), ie = p(null);
418
- function Re(t) {
419
- ie.value = {
420
- datapoint: t,
421
- seriesIndex: -1,
422
- series: N.value,
423
- config: e.value
424
- };
425
- const c = e.value.style.chart.tooltip.customFormat;
426
- if (it(c) && ut(() => c({
427
- seriesIndex: -1,
428
- datapoint: t,
429
- series: N.value,
430
- config: e.value
431
- })))
432
- x.value = c({
433
- seriesIndex: -1,
434
- // well, ok
435
- datapoint: t,
436
- series: N.value,
437
- config: e.value
438
- });
439
- else {
440
- let l = "";
441
- l += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (l += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), x.value = `<div style="font-family:inherit">${l}</div>`;
442
- }
443
- }
444
- const pe = p(null), K = p(null);
445
- function Ue(t) {
446
- pe.value = t, t ? (i.value = !0, Re(t), K.value = t.uid) : (i.value = !1, x.value = "", K.value = null);
447
- }
448
- function Ie(t) {
449
- const c = [];
450
- function l(y) {
451
- y.forEach((h) => {
452
- const F = {
453
- name: h.name,
454
- details: h.details || "-",
455
- ancestor: h.ancestor && h.ancestor.name || "-",
456
- color: h.color || ""
457
- };
458
- c.push(F), h.nodes && h.nodes.length > 0 && l(h.nodes, h.name);
459
- });
460
- }
461
- return l(t), c;
462
- }
463
- const Ne = _(() => Ie(N.value)), q = _(() => {
464
- const t = [
465
- e.value.table.translations.nodeName,
466
- e.value.table.translations.details,
467
- e.value.table.translations.ancestor
468
- ], c = Ne.value.map((h, F) => [
469
- {
470
- color: h.color,
471
- name: h.name
472
- },
473
- h.details,
474
- h.ancestor || ""
475
- ]), l = {
476
- th: {
477
- backgroundColor: e.value.table.th.backgroundColor,
478
- color: e.value.table.th.color,
479
- outline: e.value.table.th.outline
480
- },
481
- td: {
482
- backgroundColor: e.value.table.td.backgroundColor,
483
- color: e.value.table.td.color,
484
- outline: e.value.table.td.outline
485
- },
486
- breakpoint: e.value.table.responsiveBreakpoint
487
- }, y = [
488
- e.value.table.translations.nodeName,
489
- e.value.table.translations.details,
490
- e.value.table.translations.ancestor
491
- ];
492
- return {
493
- head: t,
494
- body: c,
495
- config: l,
496
- colNames: y
497
- };
498
- });
499
- function me() {
500
- Ze(() => {
501
- const t = q.value.body.map((y, h) => [[y[0].name], [y[1]], [y[2]]]), c = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...q.value.head]]].concat(t), l = at(c);
502
- rt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-molecule" });
503
- });
504
- }
505
- function _e() {
506
- return N.value;
507
- }
508
- const ee = p(!1);
509
- function Me(t) {
510
- ee.value = t, S.value += 1;
511
- }
512
- function ge() {
513
- $.value.showTable = !$.value.showTable;
514
- }
515
- function be() {
516
- $.value.showDataLabels = !$.value.showDataLabels;
517
- }
518
- function ke() {
519
- $.value.showTooltip = !$.value.showTooltip;
520
- }
521
- const te = p(!1);
522
- function ue() {
523
- te.value = !te.value;
524
- }
525
- const ze = _(() => !te.value), { viewBox: ne } = St(j, {
526
- x: 0,
527
- y: 0,
528
- width: L.value.width <= 0 ? 10 : L.value.width,
529
- height: L.value.height <= 0 ? 10 : L.value.height
530
- }, e.value.style.chart.zoom.speed, ze);
531
- function He(t) {
532
- C("selectNode", t);
533
- }
534
- return z({
535
- getData: _e,
536
- generatePdf: v,
537
- generateCsv: me,
538
- generateImage: g,
539
- toggleTable: ge,
540
- toggleLabels: be,
541
- toggleTooltip: ke,
542
- toggleAnnotator: ue
543
- }), (t, c) => (s(), d("div", {
544
- ref_key: "moleculeChart",
545
- ref: U,
546
- class: Pe(`vue-ui-molecule ${ee.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
547
- style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
548
- id: `cluster_${f.value}`,
549
- onMouseleave: c[1] || (c[1] = (l) => {
550
- pe.value = null, K.value = null, b(le)(!1);
551
- }),
552
- onMouseenter: c[2] || (c[2] = () => b(le)(!0))
553
- }, [
554
- e.value.userOptions.buttons.annotator ? (s(), R(gt, {
555
- key: 0,
556
- svgRef: b(j),
557
- backgroundColor: e.value.style.chart.backgroundColor,
558
- color: e.value.style.chart.color,
559
- active: te.value,
560
- onClose: ue
561
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
562
- T.value ? (s(), d("div", Ot, null, 512)) : m("", !0),
563
- e.value.style.chart.title.text ? (s(), d("div", Dt, [
564
- (s(), R(ct, {
565
- key: `title_${oe.value}`,
566
- config: {
567
- title: {
568
- cy: "molecule-div-title",
569
- ...e.value.style.chart.title
570
- },
571
- subtitle: {
572
- cy: "molecule-div-subtitle",
573
- ...e.value.style.chart.title.subtitle
574
- }
575
- }
576
- }, null, 8, ["config"]))
577
- ])) : m("", !0),
578
- e.value.userOptions.show && u.value && (b(se) || b(X)) ? (s(), R(vt, {
579
- ref_key: "details",
580
- ref: B,
581
- key: `user_options_${S.value}`,
582
- backgroundColor: e.value.style.chart.backgroundColor,
583
- color: e.value.style.chart.color,
584
- isPrinting: b(Y),
585
- isImaging: b(o),
586
- uid: f.value,
587
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
588
- hasPdf: e.value.userOptions.buttons.pdf,
589
- hasXls: e.value.userOptions.buttons.csv,
590
- hasImg: e.value.userOptions.buttons.img,
591
- hasTable: e.value.userOptions.buttons.table,
592
- hasLabel: e.value.userOptions.buttons.labels,
593
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
594
- isTooltip: $.value.showTooltip,
595
- titles: { ...e.value.userOptions.buttonTitles },
596
- chartElement: U.value,
597
- position: e.value.userOptions.position,
598
- hasAnnotator: e.value.userOptions.buttons.annotator,
599
- isAnnotation: te.value,
600
- onToggleFullscreen: Me,
601
- onGeneratePdf: b(v),
602
- onGenerateCsv: me,
603
- onGenerateImage: b(g),
604
- onToggleTable: ge,
605
- onToggleLabels: be,
606
- onToggleTooltip: ke,
607
- onToggleAnnotator: ue,
608
- style: ve({
609
- visibility: b(se) ? b(X) ? "visible" : "hidden" : "visible"
610
- })
611
- }, je({ _: 2 }, [
612
- t.$slots.menuIcon ? {
613
- name: "menuIcon",
614
- fn: P(({ isOpen: l, color: y }) => [
615
- w(t.$slots, "menuIcon", G(V({ isOpen: l, color: y })), void 0, !0)
616
- ]),
617
- key: "0"
618
- } : void 0,
619
- t.$slots.optionTooltip ? {
620
- name: "optionTooltip",
621
- fn: P(() => [
622
- w(t.$slots, "optionTooltip", {}, void 0, !0)
623
- ]),
624
- key: "1"
625
- } : void 0,
626
- t.$slots.optionPdf ? {
627
- name: "optionPdf",
628
- fn: P(() => [
629
- w(t.$slots, "optionPdf", {}, void 0, !0)
630
- ]),
631
- key: "2"
632
- } : void 0,
633
- t.$slots.optionCsv ? {
634
- name: "optionCsv",
635
- fn: P(() => [
636
- w(t.$slots, "optionCsv", {}, void 0, !0)
637
- ]),
638
- key: "3"
639
- } : void 0,
640
- t.$slots.optionImg ? {
641
- name: "optionImg",
642
- fn: P(() => [
643
- w(t.$slots, "optionImg", {}, void 0, !0)
644
- ]),
645
- key: "4"
646
- } : void 0,
647
- t.$slots.optionTable ? {
648
- name: "optionTable",
649
- fn: P(() => [
650
- w(t.$slots, "optionTable", {}, void 0, !0)
651
- ]),
652
- key: "5"
653
- } : void 0,
654
- t.$slots.optionLabels ? {
655
- name: "optionLabels",
656
- fn: P(() => [
657
- w(t.$slots, "optionLabels", {}, void 0, !0)
658
- ]),
659
- key: "6"
660
- } : void 0,
661
- t.$slots.optionFullscreen ? {
662
- name: "optionFullscreen",
663
- fn: P(({ toggleFullscreen: l, isFullscreen: y }) => [
664
- w(t.$slots, "optionFullscreen", G(V({ toggleFullscreen: l, isFullscreen: y })), void 0, !0)
665
- ]),
666
- key: "7"
667
- } : void 0,
668
- t.$slots.optionAnnotator ? {
669
- name: "optionAnnotator",
670
- fn: P(({ toggleAnnotator: l, isAnnotator: y }) => [
671
- w(t.$slots, "optionAnnotator", G(V({ toggleAnnotator: l, isAnnotator: y })), void 0, !0)
672
- ]),
673
- key: "8"
674
- } : void 0
675
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
676
- u.value ? (s(), d("svg", {
677
- key: 4,
678
- ref_key: "svgRef",
679
- ref: j,
680
- xmlns: b(lt),
681
- viewBox: `${b(ne).x} ${b(ne).y} ${b(ne).width} ${b(ne).height}`,
682
- class: Pe({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value }),
683
- style: ve(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
684
- }, [
685
- ae(mt),
686
- t.$slots["chart-background"] ? (s(), d("foreignObject", {
687
- key: 0,
688
- x: 0,
689
- y: 0,
690
- width: L.value.width <= 0 ? 10 : L.value.width,
691
- height: L.value.height <= 0 ? 10 : L.value.height,
692
- style: {
693
- pointerEvents: "none"
694
- }
695
- }, [
696
- w(t.$slots, "chart-background", {}, void 0, !0)
697
- ], 8, Ut)) : m("", !0),
698
- W("defs", null, [
699
- (s(!0), d(k, null, M(Object.keys(De.value), (l) => (s(), d("radialGradient", {
700
- id: `gradient_${l}`,
701
- cx: "50%",
702
- cy: "30%",
703
- r: "50%",
704
- fx: "50%",
705
- fy: "50%"
706
- }, [
707
- W("stop", {
708
- offset: "0%",
709
- "stop-color": b(st)(l, 0.5)
710
- }, null, 8, Nt),
711
- W("stop", {
712
- offset: "100%",
713
- "stop-color": l
714
- }, null, 8, _t)
715
- ], 8, It))), 256))
716
- ]),
717
- ae(Ft, {
718
- dataset: N.value,
719
- color: e.value.style.chart.links.stroke,
720
- backgroundColor: e.value.style.chart.backgroundColor
721
- }, null, 8, ["dataset", "color", "backgroundColor"]),
722
- ae(xt, {
723
- dataset: N.value,
724
- hoveredUid: K.value,
725
- stroke: e.value.style.chart.nodes.stroke,
726
- strokeHovered: e.value.style.chart.nodes.strokeHovered,
727
- onClick: He,
728
- onHover: Ue
729
- }, {
730
- node: P(({ node: l }) => [
731
- w(t.$slots, "node", G(V({ node: l })), void 0, !0)
732
- ]),
733
- _: 3
734
- }, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
735
- $.value.showDataLabels ? (s(), R(Et, {
736
- key: 1,
737
- dataset: N.value,
738
- color: e.value.style.chart.color,
739
- hoveredUid: K.value
740
- }, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0),
741
- w(t.$slots, "svg", { svg: L.value }, void 0, !0)
742
- ], 14, Rt)) : m("", !0),
743
- t.$slots.watermark ? (s(), d("div", Mt, [
744
- w(t.$slots, "watermark", G(V({ isPrinting: b(Y) || b(o) })), void 0, !0)
745
- ])) : m("", !0),
746
- u.value ? m("", !0) : (s(), R(yt, {
747
- key: 6,
748
- config: {
749
- type: "molecule",
750
- style: {
751
- backgroundColor: e.value.style.chart.backgroundColor,
752
- molecule: {
753
- color: "#CCCCCC"
754
- }
755
- }
756
- }
757
- }, null, 8, ["config"])),
758
- t.$slots.source ? (s(), d("div", zt, [
759
- w(t.$slots, "source", {}, void 0, !0)
760
- ], 512)) : m("", !0),
761
- ae(ft, {
762
- show: $.value.showTooltip && i.value,
763
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
764
- color: e.value.style.chart.tooltip.color,
765
- borderRadius: e.value.style.chart.tooltip.borderRadius,
766
- borderColor: e.value.style.chart.tooltip.borderColor,
767
- borderWidth: e.value.style.chart.tooltip.borderWidth,
768
- fontSize: e.value.style.chart.tooltip.fontSize,
769
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
770
- position: e.value.style.chart.tooltip.position,
771
- offsetY: e.value.style.chart.tooltip.offsetY,
772
- parent: U.value,
773
- content: x.value,
774
- isFullscreen: ee.value,
775
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
776
- }, {
777
- "tooltip-before": P(() => [
778
- w(t.$slots, "tooltip-before", G(V({ ...ie.value })), void 0, !0)
779
- ]),
780
- "tooltip-after": P(() => [
781
- w(t.$slots, "tooltip-after", G(V({ ...ie.value })), void 0, !0)
782
- ]),
783
- _: 3
784
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
785
- u.value ? (s(), R(pt, {
786
- key: 8,
787
- hideDetails: "",
788
- config: {
789
- open: $.value.showTable,
790
- maxHeight: 1e4,
791
- body: {
792
- backgroundColor: e.value.style.chart.backgroundColor,
793
- color: e.value.style.chart.color
794
- },
795
- head: {
796
- backgroundColor: e.value.style.chart.backgroundColor,
797
- color: e.value.style.chart.color
798
- }
799
- }
800
- }, {
801
- content: P(() => [
802
- (s(), R(ht, {
803
- key: `table_${I.value}`,
804
- colNames: q.value.colNames,
805
- head: q.value.head,
806
- body: q.value.body,
807
- config: q.value.config,
808
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
809
- onClose: c[0] || (c[0] = (l) => $.value.showTable = !1)
810
- }, {
811
- th: P(({ th: l }) => [
812
- W("div", {
813
- innerHTML: l,
814
- style: { display: "flex", "align-items": "center" }
815
- }, null, 8, Ht)
816
- ]),
817
- td: P(({ td: l }) => [
818
- Ye(Se(l.name || l), 1)
819
- ]),
820
- _: 1
821
- }, 8, ["colNames", "head", "body", "config", "title"]))
822
- ]),
823
- _: 1
824
- }, 8, ["config"])) : m("", !0)
825
- ], 46, At));
826
- }
827
- }, lo = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-d296dc0b"]]);
828
- export {
829
- lo as default
830
- };