vue-data-ui 2.6.40 → 2.6.41

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 (159) hide show
  1. package/dist/{Arrow-CKYmYJHq.js → Arrow-CzwnuhQC.js} +1 -1
  2. package/dist/{Arrow-DczKng-K.cjs → Arrow-j4Npojhv.cjs} +1 -1
  3. package/dist/{BaseIcon-rw8rKNKS.js → BaseIcon-DyOT6PYJ.js} +1 -1
  4. package/dist/{BaseIcon-Db1HIrAt.cjs → BaseIcon-lwGFy7CI.cjs} +1 -1
  5. package/dist/{ColorPicker-oA_W-jVk.cjs → ColorPicker-BiTtlEx1.cjs} +1 -1
  6. package/dist/{ColorPicker-DyZK3Mhl.js → ColorPicker-DHXRDP2o.js} +3 -3
  7. package/dist/{DataTable-DvwmNjb-.js → DataTable-B8Vnlflz.js} +2 -2
  8. package/dist/{DataTable-Be-eTBzq.cjs → DataTable-CX-Mdafj.cjs} +1 -1
  9. package/dist/{Legend-Be8mrJpb.js → Legend-Bw9vX_fW.js} +2 -2
  10. package/dist/{Legend-j3YoAtEf.cjs → Legend-DgyuPw1G.cjs} +1 -1
  11. package/dist/{PackageVersion-D9Lm1C1X.js → PackageVersion-C6hdi5vE.js} +1 -1
  12. package/dist/{PackageVersion-D_gJvbGU.cjs → PackageVersion-CvpIoiav.cjs} +1 -1
  13. package/dist/{PenAndPaper-DWG9pfri.cjs → PenAndPaper-5L5c2K-j.cjs} +1 -1
  14. package/dist/{PenAndPaper-DR58HO_U.js → PenAndPaper-DBNdemyU.js} +3 -3
  15. package/dist/{Shape-BuwIrUMv.js → Shape-CcQr04tT.js} +1 -1
  16. package/dist/{Shape-BF6K6die.cjs → Shape-my_oX1r-.cjs} +1 -1
  17. package/dist/{Slicer-CUm2ijlc.js → Slicer-CJT21pOl.js} +2 -2
  18. package/dist/{Slicer-bY7XVDi5.cjs → Slicer-Dpuspld0.cjs} +1 -1
  19. package/dist/{Title-BP4K_GLE.cjs → Title-CnyZaLp0.cjs} +1 -1
  20. package/dist/{Title-D_MGglyN.js → Title-Dfjx2pT6.js} +1 -1
  21. package/dist/{Tooltip-HRgkF8HD.js → Tooltip-C3kzKkai.js} +1 -1
  22. package/dist/{Tooltip-KXn1rQhr.cjs → Tooltip-V6vr6k8X.cjs} +1 -1
  23. package/dist/{index-BaaDnc4F.js → index-BAPUY6BW.js} +409 -382
  24. package/dist/index-CVZp-EFm.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +1 -0
  27. package/dist/types/vue-data-ui.d.ts +1 -0
  28. package/dist/{useNestedProp-0jJvFRhK.cjs → useNestedProp-Ch_Tbu0f.cjs} +1 -1
  29. package/dist/{useNestedProp-D8vQcOps.js → useNestedProp-X5u-cjpn.js} +1 -1
  30. package/dist/{usePrinter-C1Rlqzcj.cjs → usePrinter-BJ8ChcXf.cjs} +1 -1
  31. package/dist/{usePrinter-y4-4tCWT.js → usePrinter-BsXYrX84.js} +1 -1
  32. package/dist/{vue-data-ui-CF4CU0e2.cjs → vue-data-ui-CZG3ODq3.cjs} +1 -1
  33. package/dist/{vue-data-ui-XwZHx4pB.js → vue-data-ui-OBrcs0EY.js} +61 -61
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +8 -8
  36. package/dist/{vue-ui-3d-bar-BOMvMoht.cjs → vue-ui-3d-bar-BOUSglv4.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-BYV4-yM3.js → vue-ui-3d-bar-BRhfbpJd.js} +9 -9
  38. package/dist/{vue-ui-accordion-C5C3XQ8f.cjs → vue-ui-accordion-BS_katXk.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-CF9kQTXq.js → vue-ui-accordion-Dm7ZlylJ.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-Cm10v1iS.cjs → vue-ui-age-pyramid-Bt_wuZiO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-8KtaPkny.js → vue-ui-age-pyramid-CBtPdObD.js} +10 -10
  42. package/dist/{vue-ui-annotator-Dq1h3MZY.cjs → vue-ui-annotator-B8HvCy1u.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-KiLEzFIU.js → vue-ui-annotator-Rb7-Ig4d.js} +1 -1
  44. package/dist/{vue-ui-bullet-yeUQYuwe.cjs → vue-ui-bullet-BlYz0H5Q.cjs} +1 -1
  45. package/dist/{vue-ui-bullet-DBEuIuyH.js → vue-ui-bullet-C7ftUjYQ.js} +8 -8
  46. package/dist/{vue-ui-candlestick-VazI0lag.cjs → vue-ui-candlestick-DY4EKJPX.cjs} +1 -1
  47. package/dist/{vue-ui-candlestick-C13zgiOI.js → vue-ui-candlestick-D_osh2qN.js} +11 -11
  48. package/dist/{vue-ui-carousel-table-Dkqumt0q.cjs → vue-ui-carousel-table-DHN5NuUS.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-CoA9OyeC.js → vue-ui-carousel-table-M72bzy85.js} +4 -4
  50. package/dist/{vue-ui-chestnut-V0eah1wF.cjs → vue-ui-chestnut-BdHd-Juu.cjs} +1 -1
  51. package/dist/{vue-ui-chestnut-kAdb7Jpi.js → vue-ui-chestnut-i7EtBpLY.js} +8 -8
  52. package/dist/{vue-ui-circle-pack-B0CreTV1.js → vue-ui-circle-pack-BC1uScHe.js} +9 -9
  53. package/dist/{vue-ui-circle-pack-CnYgigzx.cjs → vue-ui-circle-pack-rf-DQQuM.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-oLpASwAy.cjs → vue-ui-cursor-B06MWQUK.cjs} +1 -1
  55. package/dist/{vue-ui-cursor-sHfZ-rR3.js → vue-ui-cursor-eJ2ExkFm.js} +2 -2
  56. package/dist/{vue-ui-dashboard-D2ZQBDuk.js → vue-ui-dashboard-BAwwet8B.js} +2 -2
  57. package/dist/{vue-ui-dashboard-CB7KJEOi.cjs → vue-ui-dashboard-m-sB4TXH.cjs} +1 -1
  58. package/dist/{vue-ui-digits-CiV3V0ry.js → vue-ui-digits-B6ivU7b9.js} +2 -2
  59. package/dist/{vue-ui-digits-e7EBKTDv.cjs → vue-ui-digits-C5jmpiTL.cjs} +1 -1
  60. package/dist/{vue-ui-donut-CrjqZ1ji.js → vue-ui-donut-DtZ-n8vd.js} +12 -12
  61. package/dist/{vue-ui-donut-DL51Fl9m.cjs → vue-ui-donut-GBs-eAbp.cjs} +1 -1
  62. package/dist/{vue-ui-donut-evolution-mCx3HfHW.cjs → vue-ui-donut-evolution-DdDVkeuH.cjs} +1 -1
  63. package/dist/{vue-ui-donut-evolution-D_F3H8Oa.js → vue-ui-donut-evolution-VJpinb_g.js} +11 -11
  64. package/dist/{vue-ui-dumbbell-BIDzrdGX.cjs → vue-ui-dumbbell-94nsg3t1.cjs} +1 -1
  65. package/dist/{vue-ui-dumbbell-POvEBmaZ.js → vue-ui-dumbbell-EoH10k2D.js} +10 -10
  66. package/dist/{vue-ui-flow-BIfoibps.js → vue-ui-flow-B-xWkgVv.js} +9 -9
  67. package/dist/{vue-ui-flow-D8CWkD2E.cjs → vue-ui-flow-Ddn2S7NR.cjs} +1 -1
  68. package/dist/{vue-ui-funnel-DNQKb-CW.cjs → vue-ui-funnel-Iawza5lZ.cjs} +1 -1
  69. package/dist/{vue-ui-funnel-DfF9uQGX.js → vue-ui-funnel-hdajl9CD.js} +9 -9
  70. package/dist/{vue-ui-galaxy-CXAhWSW2.cjs → vue-ui-galaxy-BoiBmzst.cjs} +1 -1
  71. package/dist/{vue-ui-galaxy-D6sV6X5K.js → vue-ui-galaxy-CeqCjd4V.js} +11 -11
  72. package/dist/{vue-ui-gauge-CODDDBdK.cjs → vue-ui-gauge-B4aBDTfP.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-CvbPkLM2.js → vue-ui-gauge-BSuGWZEY.js} +7 -7
  74. package/dist/{vue-ui-gizmo-DMsTB4ES.cjs → vue-ui-gizmo-D_J2R5JU.cjs} +1 -1
  75. package/dist/{vue-ui-gizmo-DUi7lRRe.js → vue-ui-gizmo-VFwChXXf.js} +3 -3
  76. package/dist/{vue-ui-heatmap-DDo0YoPA.cjs → vue-ui-heatmap-BNlBRWi1.cjs} +1 -1
  77. package/dist/{vue-ui-heatmap-Dg8XejgT.js → vue-ui-heatmap-DAeCu-iM.js} +10 -10
  78. package/dist/{vue-ui-history-plot-Wb0vm3oN.cjs → vue-ui-history-plot-BcjI3J96.cjs} +1 -1
  79. package/dist/{vue-ui-history-plot-BSd5bL15.js → vue-ui-history-plot-Caty-SWt.js} +11 -11
  80. package/dist/{vue-ui-kpi-BAMbt0nE.js → vue-ui-kpi-B2WcjLWP.js} +3 -3
  81. package/dist/{vue-ui-kpi-m4GUxnZu.cjs → vue-ui-kpi-Bu24xnG8.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-DiBQaEPy.js → vue-ui-mini-loader-B8QzxySW.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-BqVkQxqo.cjs → vue-ui-mini-loader-BgW5M00P.cjs} +1 -1
  84. package/dist/vue-ui-molecule-Ds0uou9B.js +829 -0
  85. package/dist/vue-ui-molecule-WPdx8i08.cjs +1 -0
  86. package/dist/{vue-ui-mood-radar-p2yhGTuV.cjs → vue-ui-mood-radar-D45uj8xo.cjs} +1 -1
  87. package/dist/{vue-ui-mood-radar-INGk_0vz.js → vue-ui-mood-radar-DMrAwNQa.js} +11 -11
  88. package/dist/{vue-ui-nested-donuts-COy2x2EF.cjs → vue-ui-nested-donuts-3orKF1Fi.cjs} +1 -1
  89. package/dist/{vue-ui-nested-donuts-BABAXqTX.js → vue-ui-nested-donuts-FSCi4a9f.js} +11 -11
  90. package/dist/{vue-ui-onion-B1NZLFqG.cjs → vue-ui-onion-CiXgGubD.cjs} +1 -1
  91. package/dist/{vue-ui-onion-CJkmj1Nh.js → vue-ui-onion-YWVe7eaq.js} +11 -11
  92. package/dist/{vue-ui-parallel-coordinate-plot-DTUIv9ah.js → vue-ui-parallel-coordinate-plot-C8vxLtTa.js} +12 -12
  93. package/dist/{vue-ui-parallel-coordinate-plot-CtpGIUKU.cjs → vue-ui-parallel-coordinate-plot-DeZ2tt1O.cjs} +1 -1
  94. package/dist/{vue-ui-quadrant-CxNnHjD9.js → vue-ui-quadrant-DmDoysAq.js} +40 -40
  95. package/dist/{vue-ui-quadrant-ZmF2s1_3.cjs → vue-ui-quadrant-LTIGWJiO.cjs} +1 -1
  96. package/dist/{vue-ui-quick-chart-BaHq9DyU.cjs → vue-ui-quick-chart-BgSeWNxv.cjs} +1 -1
  97. package/dist/{vue-ui-quick-chart-CJnwyWdJ.js → vue-ui-quick-chart-CwJe7rJt.js} +9 -9
  98. package/dist/{vue-ui-radar-CsvmcspN.js → vue-ui-radar-Bo9SbfBN.js} +12 -12
  99. package/dist/{vue-ui-radar-BgeUqzpX.cjs → vue-ui-radar-CblS9X1n.cjs} +1 -1
  100. package/dist/{vue-ui-rating-C-ef3ayK.cjs → vue-ui-rating-CqY6A4WX.cjs} +1 -1
  101. package/dist/{vue-ui-rating-D7kDYc6s.js → vue-ui-rating-DPs6BKf1.js} +10 -10
  102. package/dist/{vue-ui-relation-circle-CY8ZIPpL.js → vue-ui-relation-circle-3Al_2yf1.js} +7 -7
  103. package/dist/{vue-ui-relation-circle-DRkjUqb1.cjs → vue-ui-relation-circle-COYe9dsQ.cjs} +1 -1
  104. package/dist/{vue-ui-rings-Cxf9NoYT.js → vue-ui-rings-D9_ClLdg.js} +12 -12
  105. package/dist/{vue-ui-rings-DEuJ9t0h.cjs → vue-ui-rings-DOlqslSN.cjs} +1 -1
  106. package/dist/{vue-ui-scatter-CiO-B7Jh.js → vue-ui-scatter-DFDHrRyc.js} +42 -42
  107. package/dist/{vue-ui-scatter-BlBNhmJ4.cjs → vue-ui-scatter-DQhoY0TK.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot--OYVY1cw.cjs → vue-ui-screenshot-BWVTxKN_.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-BMuBV3BB.js → vue-ui-screenshot-R1IzXCqt.js} +1 -1
  110. package/dist/{vue-ui-skeleton-6RiQNJSb.js → vue-ui-skeleton-DBfQG5lC.js} +57 -57
  111. package/dist/{vue-ui-skeleton-CM4wEsYA.cjs → vue-ui-skeleton-Dn9J8aVW.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-CUDVroKW.js → vue-ui-smiley-CLv8dmnr.js} +2 -2
  113. package/dist/{vue-ui-smiley-DMzfsrun.cjs → vue-ui-smiley-DQ7I4CcQ.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-fnRrg8Jj.js → vue-ui-spark-trend-B0qbQaxj.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-CTI98gTQ.cjs → vue-ui-spark-trend-Drp1E7DH.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-msGI6wfO.js → vue-ui-sparkbar-Bz_QHNKp.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-HhcSqSxf.cjs → vue-ui-sparkbar-DYW_BgkY.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-C3obUsLf.js → vue-ui-sparkgauge-5EIHFUiW.js} +4 -4
  119. package/dist/{vue-ui-sparkgauge-DRpIVDwy.cjs → vue-ui-sparkgauge-C6tB0nl4.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-DOVSl-l-.js → vue-ui-sparkhistogram-COdCqBiI.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-OtRll6_F.cjs → vue-ui-sparkhistogram-KIw7nvKd.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-Dyd6TPTP.cjs → vue-ui-sparkline-CXIdKGso.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-DkX9L35W.js → vue-ui-sparkline-DgUc7CMn.js} +15 -15
  124. package/dist/{vue-ui-sparkstackbar-Cq7MW3Jk.js → vue-ui-sparkstackbar-BUqauQMd.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-Cfn7LKpJ.cjs → vue-ui-sparkstackbar-MrQzEVeh.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-DDbZ-_sO.cjs → vue-ui-stackbar-BUJpFyA3.cjs} +1 -1
  127. package/dist/{vue-ui-stackbar-BNy2XBmJ.js → vue-ui-stackbar-C-i36fcc.js} +13 -13
  128. package/dist/{vue-ui-strip-plot-t6_CVzQF.cjs → vue-ui-strip-plot-BLECfP0D.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-Cq9CqXxr.js → vue-ui-strip-plot-Dc82V8Qo.js} +11 -11
  130. package/dist/{vue-ui-table-js0Gdfqi.cjs → vue-ui-table-0E7zmWIW.cjs} +1 -1
  131. package/dist/{vue-ui-table-BowZcUb5.js → vue-ui-table-DnAzCFyM.js} +1 -1
  132. package/dist/{vue-ui-table-heatmap-BAczw65J.cjs → vue-ui-table-heatmap-BHSksmMn.cjs} +1 -1
  133. package/dist/{vue-ui-table-heatmap-BmObY7ZK.js → vue-ui-table-heatmap-CzwyhRmp.js} +4 -4
  134. package/dist/{vue-ui-table-sparkline-BKDgWukC.js → vue-ui-table-sparkline-BU4he5wL.js} +5 -5
  135. package/dist/{vue-ui-table-sparkline-HE8HXlhe.cjs → vue-ui-table-sparkline-BoVrzVok.cjs} +1 -1
  136. package/dist/{vue-ui-thermometer-2RqSKVQ8.cjs → vue-ui-thermometer-DeJpqEix.cjs} +1 -1
  137. package/dist/{vue-ui-thermometer-BOF4YYvE.js → vue-ui-thermometer-uShXro0_.js} +7 -7
  138. package/dist/{vue-ui-timer-BVoMdC97.cjs → vue-ui-timer-C8qXGSrQ.cjs} +1 -1
  139. package/dist/{vue-ui-timer-D6WS06mW.js → vue-ui-timer-D6L29mt9.js} +5 -5
  140. package/dist/{vue-ui-tiremarks-BD81LT9b.js → vue-ui-tiremarks-BcjGqJn-.js} +7 -7
  141. package/dist/{vue-ui-tiremarks-CiZUYcuP.cjs → vue-ui-tiremarks-CQ4yESxv.cjs} +1 -1
  142. package/dist/{vue-ui-treemap-CKETyAhh.js → vue-ui-treemap-BpB4ofIX.js} +11 -11
  143. package/dist/{vue-ui-treemap-BQeFDdrJ.cjs → vue-ui-treemap-DbTCrAmK.cjs} +1 -1
  144. package/dist/{vue-ui-vertical-bar-D4RH4OTK.js → vue-ui-vertical-bar-CEIg-_SG.js} +12 -12
  145. package/dist/{vue-ui-vertical-bar-nq74gMNu.cjs → vue-ui-vertical-bar-Q5ArQTC0.cjs} +1 -1
  146. package/dist/{vue-ui-waffle-atvdP-Pb.cjs → vue-ui-waffle-B61yE93N.cjs} +1 -1
  147. package/dist/{vue-ui-waffle-BHP27c7Q.js → vue-ui-waffle-h8UbPcuC.js} +12 -12
  148. package/dist/{vue-ui-wheel-BpEPqKp-.js → vue-ui-wheel-BhLEyhW_.js} +7 -7
  149. package/dist/{vue-ui-wheel-Diad5HyF.cjs → vue-ui-wheel-Chc9pVEu.cjs} +1 -1
  150. package/dist/{vue-ui-word-cloud-B_ykSDTr.cjs → vue-ui-word-cloud-Cq6mmJVo.cjs} +1 -1
  151. package/dist/{vue-ui-word-cloud-JH_eHxVf.js → vue-ui-word-cloud-oa6Tnt3L.js} +10 -10
  152. package/dist/{vue-ui-xy-Csz1n4M-.cjs → vue-ui-xy-Brt11wmo.cjs} +1 -1
  153. package/dist/{vue-ui-xy-BGOtOn8w.js → vue-ui-xy-CXY00bkP.js} +46 -46
  154. package/dist/{vue-ui-xy-canvas-DLZANhlq.cjs → vue-ui-xy-canvas-Ce4kC0Xz.cjs} +1 -1
  155. package/dist/{vue-ui-xy-canvas-DVzzeUmj.js → vue-ui-xy-canvas-DapzRtyI.js} +40 -40
  156. package/package.json +1 -1
  157. package/dist/index-CBRI5uwl.cjs +0 -9
  158. package/dist/vue-ui-molecule-SgHDaN5w.cjs +0 -1
  159. package/dist/vue-ui-molecule-kryFDlxX.js +0 -826
@@ -1,826 +0,0 @@
1
- import { toRef as de, resolveComponent as ve, createElementBlock as d, openBlock as s, Fragment as k, renderList as _, createCommentVNode as m, createBlock as R, createElementVNode as V, withModifiers as ze, renderSlot as $, mergeProps as Ce, withCtx as T, toDisplayString as Te, ref as p, onMounted as Le, onUnmounted as He, watchEffect as Be, computed as N, watch as Ge, unref as b, normalizeStyle as ce, normalizeClass as we, createVNode as ae, createSlots as Ve, normalizeProps as B, guardReactiveProps as G, createTextVNode as Xe, nextTick as je } from "vue";
2
- import { u as qe, o as Ye, e as We, c as $e, t as Ze, p as xe, a as Qe, b as Je, X as Ke, l as et, P as tt, q as ot, r as lt, x as st, y as at } from "./index-BaaDnc4F.js";
3
- import { _ as nt } from "./Title-D_MGglyN.js";
4
- import { u as rt, U as it } from "./usePrinter-y4-4tCWT.js";
5
- import { D as ut } from "./DataTable-DvwmNjb-.js";
6
- import { _ as ct } from "./Tooltip-HRgkF8HD.js";
7
- import dt from "./vue-ui-skeleton-6RiQNJSb.js";
8
- import vt from "./vue-ui-accordion-CF9kQTXq.js";
9
- import { u as Pe } from "./useNestedProp-D8vQcOps.js";
10
- import { _ as ht } from "./PackageVersion-D9Lm1C1X.js";
11
- import { P as ft } from "./PenAndPaper-DR58HO_U.js";
12
- import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
13
- import { u as pt } from "./useChartAccessibility-BWojgys7.js";
14
- import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], bt = ["x", "y", "height", "width", "onClick", "onMouseover"], kt = {
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: M }) {
45
- const z = r, S = M;
46
- function n(a) {
47
- S("click", a);
48
- }
49
- function C(a) {
50
- S("hover", a);
51
- }
52
- return de(z, "dataset").value.forEach((a) => {
53
- a.nodes && a.nodes.length > 0 && a.nodes.forEach((h) => {
54
- h.ancestor = a;
55
- });
56
- }), (a, h) => {
57
- const H = ve("RecursiveCircles", !0);
58
- return s(!0), d(k, null, _(r.dataset, (i) => (s(), d(k, null, [
59
- i.polygonPath && i.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
60
- (s(!0), d(k, null, _(i.polygonPath.coordinates, (x, U) => (s(), d(k, null, [
61
- V("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: (O) => n(i),
70
- onMouseover: (O) => C(i),
71
- onMouseleave: h[0] || (h[0] = (O) => C(null))
72
- }, null, 40, gt),
73
- a.$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: ze((O) => n(i), ["stop"]),
81
- onMouseover: (O) => C(i),
82
- onMouseleave: h[1] || (h[1] = (O) => C(null))
83
- }, [
84
- $(a.$slots, "node", Ce({ ref_for: !0 }, { node: i }))
85
- ], 40, bt)) : m("", !0)
86
- ], 64))), 256)),
87
- i.nodes && i.nodes.length > 0 ? (s(), R(H, {
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: n,
95
- onHover: C
96
- }, {
97
- node: T(({ node: x }) => [
98
- $(a.$slots, "node", Ce({ 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
- }, Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], $t = {
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 de(r, "dataset").value.forEach((S) => {
124
- S.nodes && S.nodes.length > 0 && S.nodes.forEach((n) => {
125
- n.ancestor = S;
126
- });
127
- }), (S, n) => {
128
- const C = ve("RecursiveLinks", !0);
129
- return s(), d(k, null, [
130
- (s(!0), d(k, null, _(r.dataset, (c) => (s(), d(k, null, [
131
- c.polygonPath && c.polygonPath.coordinates ? (s(!0), d(k, { key: 0 }, _(c.polygonPath.coordinates, (a, h) => (s(), d(k, null, [
132
- c.ancestor && c.ancestor.polygonPath ? (s(), d(k, { key: 0 }, [
133
- V("line", {
134
- x1: a.x,
135
- y1: a.y,
136
- x2: c.ancestor.polygonPath.coordinates[0].x,
137
- y2: c.ancestor.polygonPath.coordinates[0].y,
138
- stroke: r.backgroundColor,
139
- "stroke-width": c.circleRadius / 1.5
140
- }, null, 8, Ct),
141
- V("line", {
142
- x1: a.x,
143
- y1: a.y,
144
- x2: c.ancestor.polygonPath.coordinates[0].x,
145
- y2: c.ancestor.polygonPath.coordinates[0].y,
146
- stroke: r.color,
147
- "stroke-width": c.circleRadius / 2
148
- }, null, 8, wt)
149
- ], 64)) : m("", !0)
150
- ], 64))), 256)) : m("", !0)
151
- ], 64))), 256)),
152
- (s(!0), d(k, null, _(r.dataset, (c) => (s(), d(k, null, [
153
- c.polygonPath && c.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
154
- c.nodes && c.nodes.length > 0 ? (s(), R(C, {
155
- key: 0,
156
- dataset: c.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
- }, xt = ["x", "y", "fill", "font-size"], Pt = {
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: M }) {
183
- return de(r, "dataset").value.forEach((n) => {
184
- n.nodes && n.nodes.length > 0 && n.nodes.forEach((C) => {
185
- C.ancestor = n;
186
- });
187
- }), (n, C) => {
188
- const c = ve("RecursiveLabels", !0);
189
- return s(!0), d(k, null, _(r.dataset, (a) => (s(), d(k, null, [
190
- a.polygonPath && a.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
191
- (s(!0), d(k, null, _(a.polygonPath.coordinates, (h) => (s(), d("text", {
192
- x: h.x,
193
- y: h.y + a.circleRadius * 2,
194
- fill: r.color,
195
- "font-size": a.circleRadius,
196
- "text-anchor": "middle",
197
- style: { opacity: "0.8", "pointer-events": "none" }
198
- }, Te(a.name), 9, xt))), 256)),
199
- a.nodes && a.nodes.length > 0 ? (s(), R(c, {
200
- key: 0,
201
- dataset: a.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 Tt(r, M = { x: 0, y: 0, width: 100, height: 100 }, z = 1, S) {
211
- const n = p({ ...M }), C = p(1), c = p(!1), a = p({ x: 0, y: 0 });
212
- let h = { x: 0, y: 0 }, H = 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 L = (D = v.getScreenCTM()) == null ? void 0 : D.inverse();
220
- return L ? g.matrixTransform(L) : { x: 0, y: 0 };
221
- }
222
- function U(o) {
223
- c.value = !0;
224
- const v = x(o.touches ? o.touches[0] : o);
225
- a.value = { x: v.x, y: v.y }, h = { x: 0, y: 0 };
226
- }
227
- function O(o) {
228
- if (!c.value) return;
229
- const v = x(o.touches ? o.touches[0] : o);
230
- let g = v.x - a.value.x, L = v.y - a.value.y;
231
- Math.abs(g) < 0.3 && Math.abs(L) < 0.3 || (h.x = g * 0.8 + h.x * 0.2, h.y = L * 0.8 + h.y * 0.2, a.value = v, H || (H = requestAnimationFrame(te)));
232
- }
233
- function te() {
234
- n.value.x -= h.x, n.value.y -= h.y, H = null;
235
- }
236
- function A() {
237
- c.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 + z / 100);
247
- oe(g, v);
248
- }
249
- function oe(o, v) {
250
- i && cancelAnimationFrame(i);
251
- let g = C.value, L = g * o, D = 0;
252
- const w = () => {
253
- D += 0.02;
254
- let Y = g + (L - g) * le(D);
255
- if (D >= 1) {
256
- C.value = L, i = null;
257
- return;
258
- }
259
- j(Y / g, v), i = requestAnimationFrame(w);
260
- };
261
- w();
262
- }
263
- const le = (o) => o < 0.5 ? 2 * o * o : -1 + (4 - 2 * o) * o;
264
- function j(o, v) {
265
- const g = C.value * o, L = g / C.value, D = n.value.width / L, w = n.value.height / L, Y = (v.x - n.value.x) * (1 - 1 / L), ne = (v.y - n.value.y) * (1 - 1 / L);
266
- n.value.x += Y, n.value.y += ne, n.value.width = D, n.value.height = w, C.value = g;
267
- }
268
- Le(Z), He(q);
269
- function Z() {
270
- const o = r.value;
271
- o && (o.addEventListener("mousedown", U), o.addEventListener("mousemove", O), o.addEventListener("mouseup", A), o.addEventListener("mouseleave", A), 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(), O(v);
275
- }, { passive: !1 }), o.addEventListener("touchend", A));
276
- }
277
- function q() {
278
- const o = r.value;
279
- o && (o.removeEventListener("mousedown", U), o.removeEventListener("mousemove", O), o.removeEventListener("mouseup", A), o.removeEventListener("mouseleave", A), o.removeEventListener("wheel", e), o.removeEventListener("dblclick", X), o.removeEventListener("touchstart", U), o.removeEventListener("touchmove", O), o.removeEventListener("touchend", A));
280
- }
281
- return Be(() => (S.value ? Z() : q(), () => {
282
- q();
283
- })), { viewBox: n };
284
- }
285
- const Lt = ["id"], Ft = {
286
- key: 1,
287
- ref: "noTitle",
288
- class: "vue-data-ui-no-title-space",
289
- style: "height:36px; width: 100%;background:transparent"
290
- }, Et = {
291
- key: 2,
292
- style: "width:100%;background:transparent;"
293
- }, St = ["xmlns", "viewBox"], Ot = ["width", "height"], Dt = ["id"], Rt = ["stop-color"], Ut = ["stop-color"], At = {
294
- key: 5,
295
- class: "vue-data-ui-watermark"
296
- }, It = {
297
- key: 7,
298
- ref: "source",
299
- dir: "auto"
300
- }, Nt = ["innerHTML"], _t = {
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: M, emit: z }) {
318
- const { vue_ui_molecule: S } = qe(), n = r, C = z, c = N(() => !!n.dataset && n.dataset.length);
319
- Le(() => {
320
- a();
321
- });
322
- function a() {
323
- Ye(n.dataset) && We({
324
- componentName: "VueUiMolecule",
325
- type: "dataset"
326
- });
327
- }
328
- const h = p($e()), H = p(null), i = p(!1), x = p(""), U = p(null), O = p(0), te = p(0), A = p(0), e = N({
329
- get: () => Z(),
330
- set: (t) => t
331
- }), { userOptionsVisible: X, setUserOptionsVisibility: oe, keepUserOptionState: le } = yt({ config: e.value }), { svgRef: j } = pt({ config: e.value.style.chart.title });
332
- function Z() {
333
- const t = Pe({
334
- userConfig: n.config,
335
- defaultConfig: S
336
- });
337
- return t.theme ? {
338
- ...Pe({
339
- userConfig: Qe.vue_ui_molecule[t.theme] || n.config,
340
- defaultConfig: t
341
- }),
342
- customPalette: Ze[t.theme] || xe
343
- } : t;
344
- }
345
- Ge(() => n.config, (t) => {
346
- e.value = Z(), X.value = !e.value.userOptions.showOnChartHover, a(), te.value += 1, A.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
347
- }, { deep: !0 });
348
- const { isPrinting: q, isImaging: o, generatePdf: v, generateImage: g } = rt({
349
- elementId: `cluster_${h.value}`,
350
- fileName: e.value.style.chart.title.text || "vue-ui-molecule"
351
- }), L = N(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = N(() => Je(e.value.customPalette)), w = p({
352
- showTable: e.value.table.show,
353
- showDataLabels: !0,
354
- showTooltip: e.value.style.chart.tooltip.show
355
- });
356
- function Y(t, u = 0) {
357
- return Array.isArray(t) && t.length > 0 && t[0].nodes ? Y(t[0].nodes, u + 1) : u;
358
- }
359
- function ne() {
360
- const t = Y(n.dataset);
361
- let u = 100, l = u;
362
- for (let f = 0; f < t; f += 1)
363
- u /= 1, l += u;
364
- return {
365
- height: l,
366
- width: l
367
- };
368
- }
369
- const F = p(ne());
370
- p(`0 0 ${F.value.width} ${F.value.height}`);
371
- function he(t, u = { x: -F.value.width / 2.43, y: F.value.height / 2 }, l = F.value.width / 1.1, f = 24, y = 0, P = 0, ue = "#BBBBBB") {
372
- if (t && t.length > 0) {
373
- const _e = tt({
374
- plot: u,
375
- radius: l,
376
- sides: t.length,
377
- rotation: y
378
- });
379
- t.forEach((E, be) => {
380
- const ke = _e.coordinates[be];
381
- let ee;
382
- if (E.ancestor ? E.ancestor.ancestor ? ee = E.ancestor.color || ue : (ee = D.value[P] || xe[P] || ue, P += 1) : ee = ue, E.polygonPath = {
383
- coordinates: [ke]
384
- }, E.circleRadius = f, E.color = ee, E.uid = $e(), E.nodes && E.nodes.length > 0) {
385
- const Me = !E.ancestor || !E.ancestor.ancestor ? P : 0;
386
- E.nodes = he(
387
- E.nodes,
388
- ke,
389
- l / 2.9,
390
- f / 2.2,
391
- y + Math.PI * be / E.nodes.length,
392
- Me,
393
- ee
394
- );
395
- }
396
- });
397
- }
398
- return t;
399
- }
400
- function Fe(t) {
401
- const u = /* @__PURE__ */ new Set();
402
- function l(y) {
403
- y.forEach((P) => {
404
- P.color && !u.has(P.color) && u.add(P.color), P.nodes && P.nodes.length > 0 && l(P.nodes);
405
- });
406
- }
407
- l(t);
408
- const f = {};
409
- return Array.from(u).forEach((y, P) => {
410
- f[y] = `gradient_${P}`;
411
- }), f;
412
- }
413
- const Ee = N(() => Fe(I.value)), I = N(() => he(n.dataset)), re = p(null);
414
- function Se(t) {
415
- re.value = {
416
- datapoint: t,
417
- seriesIndex: -1,
418
- series: I.value,
419
- config: e.value
420
- };
421
- const u = e.value.style.chart.tooltip.customFormat;
422
- if (st(u) && at(() => u({
423
- seriesIndex: -1,
424
- datapoint: t,
425
- series: I.value,
426
- config: e.value
427
- })))
428
- x.value = u({
429
- seriesIndex: -1,
430
- // well, ok
431
- datapoint: t,
432
- series: I.value,
433
- config: e.value
434
- });
435
- else {
436
- let l = "";
437
- 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>`;
438
- }
439
- }
440
- const fe = p(null), Q = p(null);
441
- function Oe(t) {
442
- fe.value = t, t ? (i.value = !0, Se(t), Q.value = t.uid) : (i.value = !1, x.value = "", Q.value = null);
443
- }
444
- function De(t) {
445
- const u = [];
446
- function l(f) {
447
- f.forEach((y) => {
448
- const P = {
449
- name: y.name,
450
- details: y.details || "-",
451
- ancestor: y.ancestor && y.ancestor.name || "-",
452
- color: y.color || ""
453
- };
454
- u.push(P), y.nodes && y.nodes.length > 0 && l(y.nodes, y.name);
455
- });
456
- }
457
- return l(t), u;
458
- }
459
- const Re = N(() => De(I.value)), W = N(() => {
460
- const t = [
461
- e.value.table.translations.nodeName,
462
- e.value.table.translations.details,
463
- e.value.table.translations.ancestor
464
- ], u = Re.value.map((y, P) => [
465
- {
466
- color: y.color,
467
- name: y.name
468
- },
469
- y.details,
470
- y.ancestor || ""
471
- ]), l = {
472
- th: {
473
- backgroundColor: e.value.table.th.backgroundColor,
474
- color: e.value.table.th.color,
475
- outline: e.value.table.th.outline
476
- },
477
- td: {
478
- backgroundColor: e.value.table.td.backgroundColor,
479
- color: e.value.table.td.color,
480
- outline: e.value.table.td.outline
481
- },
482
- breakpoint: e.value.table.responsiveBreakpoint
483
- }, f = [
484
- e.value.table.translations.nodeName,
485
- e.value.table.translations.details,
486
- e.value.table.translations.ancestor
487
- ];
488
- return {
489
- head: t,
490
- body: u,
491
- config: l,
492
- colNames: f
493
- };
494
- });
495
- function ye() {
496
- je(() => {
497
- const t = W.value.body.map((f, y) => [[f[0].name], [f[1]], [f[2]]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...W.value.head]]].concat(t), l = ot(u);
498
- lt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-molecule" });
499
- });
500
- }
501
- function Ue() {
502
- return I.value;
503
- }
504
- const J = p(!1);
505
- function Ae(t) {
506
- J.value = t, O.value += 1;
507
- }
508
- function pe() {
509
- w.value.showTable = !w.value.showTable;
510
- }
511
- function me() {
512
- w.value.showDataLabels = !w.value.showDataLabels;
513
- }
514
- function ge() {
515
- w.value.showTooltip = !w.value.showTooltip;
516
- }
517
- const K = p(!1);
518
- function ie() {
519
- K.value = !K.value;
520
- }
521
- const Ie = N(() => !K.value), { viewBox: se } = Tt(j, {
522
- x: 0,
523
- y: 0,
524
- width: F.value.width <= 0 ? 10 : F.value.width,
525
- height: F.value.height <= 0 ? 10 : F.value.height
526
- }, e.value.style.chart.zoom.speed, Ie);
527
- function Ne(t) {
528
- C("selectNode", t);
529
- }
530
- return M({
531
- getData: Ue,
532
- generatePdf: v,
533
- generateCsv: ye,
534
- generateImage: g,
535
- toggleTable: pe,
536
- toggleLabels: me,
537
- toggleTooltip: ge,
538
- toggleAnnotator: ie
539
- }), (t, u) => (s(), d("div", {
540
- ref_key: "moleculeChart",
541
- ref: U,
542
- class: we(`vue-ui-molecule ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
543
- style: ce(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
544
- id: `cluster_${h.value}`,
545
- onMouseleave: u[1] || (u[1] = (l) => {
546
- fe.value = null, Q.value = null, b(oe)(!1);
547
- }),
548
- onMouseenter: u[2] || (u[2] = () => b(oe)(!0))
549
- }, [
550
- e.value.userOptions.buttons.annotator ? (s(), R(ft, {
551
- key: 0,
552
- svgRef: b(j),
553
- backgroundColor: e.value.style.chart.backgroundColor,
554
- color: e.value.style.chart.color,
555
- active: K.value,
556
- onClose: ie
557
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
558
- L.value ? (s(), d("div", Ft, null, 512)) : m("", !0),
559
- e.value.style.chart.title.text ? (s(), d("div", Et, [
560
- (s(), R(nt, {
561
- key: `title_${te.value}`,
562
- config: {
563
- title: {
564
- cy: "molecule-div-title",
565
- ...e.value.style.chart.title
566
- },
567
- subtitle: {
568
- cy: "molecule-div-subtitle",
569
- ...e.value.style.chart.title.subtitle
570
- }
571
- }
572
- }, null, 8, ["config"]))
573
- ])) : m("", !0),
574
- e.value.userOptions.show && c.value && (b(le) || b(X)) ? (s(), R(it, {
575
- ref_key: "details",
576
- ref: H,
577
- key: `user_options_${O.value}`,
578
- backgroundColor: e.value.style.chart.backgroundColor,
579
- color: e.value.style.chart.color,
580
- isPrinting: b(q),
581
- isImaging: b(o),
582
- uid: h.value,
583
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
584
- hasPdf: e.value.userOptions.buttons.pdf,
585
- hasXls: e.value.userOptions.buttons.csv,
586
- hasImg: e.value.userOptions.buttons.img,
587
- hasTable: e.value.userOptions.buttons.table,
588
- hasLabel: e.value.userOptions.buttons.labels,
589
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
590
- isTooltip: w.value.showTooltip,
591
- titles: { ...e.value.userOptions.buttonTitles },
592
- chartElement: U.value,
593
- position: e.value.userOptions.position,
594
- hasAnnotator: e.value.userOptions.buttons.annotator,
595
- isAnnotation: K.value,
596
- onToggleFullscreen: Ae,
597
- onGeneratePdf: b(v),
598
- onGenerateCsv: ye,
599
- onGenerateImage: b(g),
600
- onToggleTable: pe,
601
- onToggleLabels: me,
602
- onToggleTooltip: ge,
603
- onToggleAnnotator: ie,
604
- style: ce({
605
- visibility: b(le) ? b(X) ? "visible" : "hidden" : "visible"
606
- })
607
- }, Ve({ _: 2 }, [
608
- t.$slots.menuIcon ? {
609
- name: "menuIcon",
610
- fn: T(({ isOpen: l, color: f }) => [
611
- $(t.$slots, "menuIcon", B(G({ isOpen: l, color: f })), void 0, !0)
612
- ]),
613
- key: "0"
614
- } : void 0,
615
- t.$slots.optionTooltip ? {
616
- name: "optionTooltip",
617
- fn: T(() => [
618
- $(t.$slots, "optionTooltip", {}, void 0, !0)
619
- ]),
620
- key: "1"
621
- } : void 0,
622
- t.$slots.optionPdf ? {
623
- name: "optionPdf",
624
- fn: T(() => [
625
- $(t.$slots, "optionPdf", {}, void 0, !0)
626
- ]),
627
- key: "2"
628
- } : void 0,
629
- t.$slots.optionCsv ? {
630
- name: "optionCsv",
631
- fn: T(() => [
632
- $(t.$slots, "optionCsv", {}, void 0, !0)
633
- ]),
634
- key: "3"
635
- } : void 0,
636
- t.$slots.optionImg ? {
637
- name: "optionImg",
638
- fn: T(() => [
639
- $(t.$slots, "optionImg", {}, void 0, !0)
640
- ]),
641
- key: "4"
642
- } : void 0,
643
- t.$slots.optionTable ? {
644
- name: "optionTable",
645
- fn: T(() => [
646
- $(t.$slots, "optionTable", {}, void 0, !0)
647
- ]),
648
- key: "5"
649
- } : void 0,
650
- t.$slots.optionLabels ? {
651
- name: "optionLabels",
652
- fn: T(() => [
653
- $(t.$slots, "optionLabels", {}, void 0, !0)
654
- ]),
655
- key: "6"
656
- } : void 0,
657
- t.$slots.optionFullscreen ? {
658
- name: "optionFullscreen",
659
- fn: T(({ toggleFullscreen: l, isFullscreen: f }) => [
660
- $(t.$slots, "optionFullscreen", B(G({ toggleFullscreen: l, isFullscreen: f })), void 0, !0)
661
- ]),
662
- key: "7"
663
- } : void 0,
664
- t.$slots.optionAnnotator ? {
665
- name: "optionAnnotator",
666
- fn: T(({ toggleAnnotator: l, isAnnotator: f }) => [
667
- $(t.$slots, "optionAnnotator", B(G({ toggleAnnotator: l, isAnnotator: f })), void 0, !0)
668
- ]),
669
- key: "8"
670
- } : void 0
671
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
672
- c.value ? (s(), d("svg", {
673
- key: 4,
674
- ref_key: "svgRef",
675
- ref: j,
676
- xmlns: b(Ke),
677
- viewBox: `${b(se).x} ${b(se).y} ${b(se).width} ${b(se).height}`,
678
- class: we({ "vue-data-ui-fullscreen--on": J.value, "vue-data-ui-fulscreen--off": !J.value }),
679
- style: ce(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
680
- }, [
681
- ae(ht),
682
- t.$slots["chart-background"] ? (s(), d("foreignObject", {
683
- key: 0,
684
- x: 0,
685
- y: 0,
686
- width: F.value.width <= 0 ? 10 : F.value.width,
687
- height: F.value.height <= 0 ? 10 : F.value.height,
688
- style: {
689
- pointerEvents: "none"
690
- }
691
- }, [
692
- $(t.$slots, "chart-background", {}, void 0, !0)
693
- ], 8, Ot)) : m("", !0),
694
- V("defs", null, [
695
- (s(!0), d(k, null, _(Object.keys(Ee.value), (l) => (s(), d("radialGradient", {
696
- id: `gradient_${l}`,
697
- cx: "50%",
698
- cy: "30%",
699
- r: "50%",
700
- fx: "50%",
701
- fy: "50%"
702
- }, [
703
- V("stop", {
704
- offset: "0%",
705
- "stop-color": b(et)(l, 0.5)
706
- }, null, 8, Rt),
707
- V("stop", {
708
- offset: "100%",
709
- "stop-color": l
710
- }, null, 8, Ut)
711
- ], 8, Dt))), 256))
712
- ]),
713
- ae($t, {
714
- dataset: I.value,
715
- color: e.value.style.chart.links.stroke,
716
- backgroundColor: e.value.style.chart.backgroundColor
717
- }, null, 8, ["dataset", "color", "backgroundColor"]),
718
- ae(kt, {
719
- dataset: I.value,
720
- hoveredUid: Q.value,
721
- stroke: e.value.style.chart.nodes.stroke,
722
- strokeHovered: e.value.style.chart.nodes.strokeHovered,
723
- onClick: Ne,
724
- onHover: Oe
725
- }, {
726
- node: T(({ node: l }) => [
727
- $(t.$slots, "node", B(G({ node: l })), void 0, !0)
728
- ]),
729
- _: 3
730
- }, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
731
- w.value.showDataLabels ? (s(), R(Pt, {
732
- key: 1,
733
- dataset: I.value,
734
- color: e.value.style.chart.color,
735
- hoveredUid: Q.value
736
- }, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0),
737
- $(t.$slots, "svg", { svg: F.value }, void 0, !0)
738
- ], 14, St)) : m("", !0),
739
- t.$slots.watermark ? (s(), d("div", At, [
740
- $(t.$slots, "watermark", B(G({ isPrinting: b(q) || b(o) })), void 0, !0)
741
- ])) : m("", !0),
742
- c.value ? m("", !0) : (s(), R(dt, {
743
- key: 6,
744
- config: {
745
- type: "molecule",
746
- style: {
747
- backgroundColor: e.value.style.chart.backgroundColor,
748
- molecule: {
749
- color: "#CCCCCC"
750
- }
751
- }
752
- }
753
- }, null, 8, ["config"])),
754
- t.$slots.source ? (s(), d("div", It, [
755
- $(t.$slots, "source", {}, void 0, !0)
756
- ], 512)) : m("", !0),
757
- ae(ct, {
758
- show: w.value.showTooltip && i.value,
759
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
760
- color: e.value.style.chart.tooltip.color,
761
- borderRadius: e.value.style.chart.tooltip.borderRadius,
762
- borderColor: e.value.style.chart.tooltip.borderColor,
763
- borderWidth: e.value.style.chart.tooltip.borderWidth,
764
- fontSize: e.value.style.chart.tooltip.fontSize,
765
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
766
- position: e.value.style.chart.tooltip.position,
767
- offsetY: e.value.style.chart.tooltip.offsetY,
768
- parent: U.value,
769
- content: x.value,
770
- isFullscreen: J.value,
771
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
772
- }, {
773
- "tooltip-before": T(() => [
774
- $(t.$slots, "tooltip-before", B(G({ ...re.value })), void 0, !0)
775
- ]),
776
- "tooltip-after": T(() => [
777
- $(t.$slots, "tooltip-after", B(G({ ...re.value })), void 0, !0)
778
- ]),
779
- _: 3
780
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
781
- c.value ? (s(), R(vt, {
782
- key: 8,
783
- hideDetails: "",
784
- config: {
785
- open: w.value.showTable,
786
- maxHeight: 1e4,
787
- body: {
788
- backgroundColor: e.value.style.chart.backgroundColor,
789
- color: e.value.style.chart.color
790
- },
791
- head: {
792
- backgroundColor: e.value.style.chart.backgroundColor,
793
- color: e.value.style.chart.color
794
- }
795
- }
796
- }, {
797
- content: T(() => [
798
- (s(), R(ut, {
799
- key: `table_${A.value}`,
800
- colNames: W.value.colNames,
801
- head: W.value.head,
802
- body: W.value.body,
803
- config: W.value.config,
804
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
805
- onClose: u[0] || (u[0] = (l) => w.value.showTable = !1)
806
- }, {
807
- th: T(({ th: l }) => [
808
- V("div", {
809
- innerHTML: l,
810
- style: { display: "flex", "align-items": "center" }
811
- }, null, 8, Nt)
812
- ]),
813
- td: T(({ td: l }) => [
814
- Xe(Te(l.name || l), 1)
815
- ]),
816
- _: 1
817
- }, 8, ["colNames", "head", "body", "config", "title"]))
818
- ]),
819
- _: 1
820
- }, 8, ["config"])) : m("", !0)
821
- ], 46, Lt));
822
- }
823
- }, Kt = /* @__PURE__ */ mt(_t, [["__scopeId", "data-v-c4dc9cf3"]]);
824
- export {
825
- Kt as default
826
- };