vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -0,0 +1,925 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Jt as t, Kt as n, Pt as r, X as i, i as a, jt as o, pt as ee, q as te, qt as s, r as ne, t as re, tt as ie, w as ae } from "./lib-BuMGJ_a0.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-BilxnBNr.js";
5
+ import { t as le } from "./usePrinter-BFvi4jVy.js";
6
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
8
+ import { t as pe } from "./useNestedProp--NSEmhOH.js";
9
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as he } from "./img-DIQG5q8T.js";
11
+ import { n as ge } from "./Title-BODtwViI.js";
12
+ import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as be } from "./A11yDataTable-DdRsVULz.js";
15
+ import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as Ce } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
18
+ import { t as we } from "./vue_ui_relation_circle-D0p4mXmv.js";
19
+ import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as Oe, guardReactiveProps as m, mergeProps as ke, nextTick as Ae, normalizeClass as je, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as Me, onMounted as Ne, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as Pe, toDisplayString as x, toRefs as Fe, unref as S, useCssVars as Ie, watch as Le, withCtx as C } from "vue";
20
+ //#region src/components/vue-ui-relation-circle.vue
21
+ var Re = /* @__PURE__ */ e({ default: () => at }), ze = ["id"], Be = ["id"], Ve = { style: { position: "relative" } }, He = [
22
+ "xmlns",
23
+ "viewBox",
24
+ "aria-describedby"
25
+ ], Ue = ["width", "height"], We = [
26
+ "cx",
27
+ "cy",
28
+ "r",
29
+ "stroke",
30
+ "stroke-width"
31
+ ], Ge = { key: 1 }, Ke = [
32
+ "stroke",
33
+ "d",
34
+ "stroke-width"
35
+ ], qe = { style: { "pointer-events": "none" } }, Je = [
36
+ "cx",
37
+ "cy",
38
+ "fill",
39
+ "r",
40
+ "stroke"
41
+ ], Ye = [
42
+ "x",
43
+ "y",
44
+ "fill",
45
+ "font-size"
46
+ ], Xe = { key: 2 }, Ze = [
47
+ "stroke",
48
+ "stroke-width",
49
+ "x1",
50
+ "x2",
51
+ "y1",
52
+ "y2"
53
+ ], Qe = { style: { "pointer-events": "none" } }, $e = [
54
+ "cx",
55
+ "cy",
56
+ "fill",
57
+ "r",
58
+ "stroke"
59
+ ], et = [
60
+ "x",
61
+ "y",
62
+ "fill",
63
+ "font-size"
64
+ ], tt = [
65
+ "text-anchor",
66
+ "transform",
67
+ "x",
68
+ "y",
69
+ "font-weight",
70
+ "font-size",
71
+ "fill",
72
+ "text-decoration",
73
+ "onClick",
74
+ "onMouseenter",
75
+ "onMouseleave"
76
+ ], nt = [
77
+ "cx",
78
+ "cy",
79
+ "fill",
80
+ "stroke",
81
+ "r",
82
+ "onClick",
83
+ "onMouseenter",
84
+ "onMouseleave"
85
+ ], rt = {
86
+ key: 0,
87
+ style: {
88
+ position: "absolute",
89
+ top: "100%",
90
+ left: "0",
91
+ width: "100%"
92
+ },
93
+ "data-dom-to-png-ignore": "",
94
+ "aria-hidden": "true"
95
+ }, it = {
96
+ key: 5,
97
+ class: "vue-data-ui-watermark"
98
+ }, at = /*#__PURE__*/ _e({
99
+ __name: "vue-ui-relation-circle",
100
+ props: {
101
+ dataset: {
102
+ type: Array,
103
+ default() {
104
+ return [];
105
+ }
106
+ },
107
+ config: {
108
+ type: Object,
109
+ default() {
110
+ return {};
111
+ }
112
+ }
113
+ },
114
+ emits: ["copyAlt"],
115
+ setup(e, { expose: _e, emit: Re }) {
116
+ Ie((e) => ({
117
+ v6c3b5fda: Nt.value,
118
+ v119a74b9: Mt.value,
119
+ v5de8e2db: Pt.value
120
+ }));
121
+ let at = Oe(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), ot = Oe(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), st = Oe(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_relation_circle: ct } = ce(), { isThemeValid: lt, warnInvalidTheme: ut } = me(), w = e, dt = Re, ft = l(() => !!w.dataset && Object.keys(w.dataset).length), T = v(te()), pt = v(0), E = v(null), mt = v(null), ht = v(null), gt = v(null), _t = v(0), D = v(!1), O = v(!1), k = v(null), A = v(!1), j = v(Ct());
122
+ oe({
123
+ config: () => j.value,
124
+ dataset: () => w.dataset,
125
+ component: "VueUiRelationCircle",
126
+ rules: [se.noHint]
127
+ });
128
+ let M = l(() => j.value.userOptions.useCursorPointer), vt = l(() => t({
129
+ defaultConfig: {
130
+ userOptions: { show: !1 },
131
+ customPalette: Array(7).fill("#CACACA"),
132
+ style: {
133
+ backgroundColor: "#99999930",
134
+ labels: { color: "#6A6A6A" },
135
+ circle: { stroke: "#6A6A6A" },
136
+ plot: {
137
+ color: "#6A6A6A",
138
+ useSerieColor: !0
139
+ },
140
+ links: { maxWidth: 2 }
141
+ }
142
+ },
143
+ userConfig: j.value.skeletonConfig ?? {}
144
+ })), { loading: yt, FINAL_DATASET: bt, manualLoading: N } = ue({
145
+ ...Fe(w),
146
+ FINAL_CONFIG: j,
147
+ prepareConfig: Ct,
148
+ skeletonDataset: w.config?.skeletonDataset ?? [
149
+ {
150
+ id: "A",
151
+ label: "_",
152
+ relations: [
153
+ "B",
154
+ "C",
155
+ "D",
156
+ "E",
157
+ "F",
158
+ "G"
159
+ ]
160
+ },
161
+ {
162
+ id: "B",
163
+ label: "_",
164
+ relations: ["A"]
165
+ },
166
+ {
167
+ id: "C",
168
+ label: "_",
169
+ relations: ["A"]
170
+ },
171
+ {
172
+ id: "D",
173
+ label: "_",
174
+ relations: ["A"]
175
+ },
176
+ {
177
+ id: "E",
178
+ label: "_",
179
+ relations: ["A"]
180
+ },
181
+ {
182
+ id: "F",
183
+ label: "_",
184
+ relations: ["A"]
185
+ },
186
+ {
187
+ id: "G",
188
+ label: "_",
189
+ relations: ["A"]
190
+ }
191
+ ],
192
+ skeletonConfig: t({
193
+ defaultConfig: j.value,
194
+ userConfig: vt.value
195
+ })
196
+ }), { userOptionsVisible: P, setUserOptionsVisibility: xt, keepUserOptionState: St } = xe({ config: j.value }), { svgRef: F } = Se({ config: j.value.style.title });
197
+ function Ct() {
198
+ let e = pe({
199
+ userConfig: w.config,
200
+ defaultConfig: ct
201
+ }), t = e.theme;
202
+ if (!t) return e;
203
+ if (!lt.value(e)) return ut(e), e;
204
+ let i = pe({
205
+ userConfig: we[t] || w.config,
206
+ defaultConfig: e
207
+ }), a = pe({
208
+ userConfig: w.config,
209
+ defaultConfig: i
210
+ });
211
+ return {
212
+ ...a,
213
+ customPalette: a.customPalette.length ? a.customPalette : n[t] || r
214
+ };
215
+ }
216
+ Le(() => w.config, (e) => {
217
+ j.value = Ct(), P.value = !j.value.userOptions.showOnChartHover, V.value = j.value.style.size, H.value = j.value.style.weightLabels.size, U.value = j.value.style.plot.radius, W.value = j.value.style.labels.fontSize, G.value.height = j.value.style.size, G.value.width = j.value.style.size, It(), _t.value += 1;
218
+ }, { deep: !0 }), Le(() => w.dataset, (e) => {
219
+ Array.isArray(e) && e.length > 0 && (N.value = !1);
220
+ }, { deep: !0 });
221
+ let { isPrinting: wt, isImaging: Tt, generatePdf: Et, generateImage: Dt } = le({
222
+ elementId: `relation_circle_${T.value}`,
223
+ fileName: j.value.style.title.text || "vue-ui-relation-circle",
224
+ options: j.value.userOptions.print
225
+ }), Ot = l(() => j.value.userOptions.show && !j.value.style.title.text), kt = l(() => ae(j.value.customPalette)), I = v([]), L = v([]), R = v({}), z = v([]), At = v(0), B = l(() => bt.value.slice(0, j.value.style.limit).map((e) => {
226
+ let t = Array.isArray(e.relations) ? e.relations : [];
227
+ return {
228
+ ...e,
229
+ weights: Array.isArray(e.weights) ? e.weights : Array(t.length).fill(1),
230
+ relations: t
231
+ };
232
+ }));
233
+ Le(B, () => {
234
+ I.value = [], L.value = [], zt(), Vt();
235
+ });
236
+ let V = v(j.value.style.size), H = v(j.value.style.weightLabels.size), U = v(j.value.style.plot.radius), W = v(j.value.style.labels.fontSize), G = v({
237
+ height: j.value.style.size,
238
+ width: j.value.style.size
239
+ }), K = l({
240
+ get() {
241
+ return V.value * j.value.style.circle.radiusProportion;
242
+ },
243
+ set(e) {
244
+ return e;
245
+ }
246
+ }), jt = l(() => j.value.style.links.curved), Mt = l(() => `${j.value.style.animation.speedMs}ms`), Nt = l(() => K.value * 2), Pt = l(() => K.value * 4), q = Pe(null), J = Pe(null);
247
+ Ne(() => {
248
+ It(), document.getElementById(`relation_circle_${T.value}`).addEventListener("click", Rt);
249
+ });
250
+ let Ft = l(() => j.value.debug);
251
+ function It() {
252
+ if (o(w.dataset) ? (ie({
253
+ componentName: "VueUiRelationCircle",
254
+ type: "dataset",
255
+ debug: Ft.value
256
+ }), N.value = !0) : w.dataset.forEach((e, t) => {
257
+ ee({
258
+ datasetObject: e,
259
+ requiredAttributes: [
260
+ "id",
261
+ "label",
262
+ "relations",
263
+ "weights"
264
+ ]
265
+ }).forEach((e) => {
266
+ ie({
267
+ componentName: "VueUiRelationCircle",
268
+ type: "datasetSerieAttribute",
269
+ property: e,
270
+ index: t,
271
+ debug: Ft.value
272
+ });
273
+ });
274
+ }), o(w.dataset) || (N.value = j.value.loading), j.value.responsive) {
275
+ let e = ve(() => {
276
+ let { width: e, height: t } = ye({
277
+ chart: E.value,
278
+ title: j.value.style.title.text ? mt.value : null,
279
+ source: ht.value,
280
+ noTitle: gt.value
281
+ });
282
+ requestAnimationFrame(() => {
283
+ V.value = Math.min(e, t), G.value.width = Math.max(.1, e), G.value.height = Math.max(.1, t - 12), K.value = V.value * j.value.style.circle.radiusProportion, I.value = [], L.value = [], zt(), Vt(), Lt(), j.value.responsiveProportionalSizing ? (H.value = s({
284
+ relator: V.value,
285
+ adjuster: j.value.style.size,
286
+ source: j.value.style.weightLabels.size,
287
+ threshold: 6,
288
+ fallback: 6
289
+ }), U.value = s({
290
+ relator: V.value,
291
+ adjuster: j.value.style.size,
292
+ source: j.value.style.plot.radius,
293
+ threshold: 1,
294
+ fallback: 1
295
+ }), W.value = s({
296
+ relator: V.value,
297
+ adjuster: j.value.style.size,
298
+ source: j.value.style.labels.fontSize,
299
+ threshold: 6,
300
+ fallback: 6
301
+ })) : (H.value = j.value.style.weightLabels.size, U.value = j.value.style.plot.radius, W.value = j.value.style.labels.fontSize);
302
+ });
303
+ });
304
+ q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = E.value.parentNode, q.value.observe(J.value);
305
+ } else I.value = [], L.value = [], zt(), Vt();
306
+ Lt();
307
+ }
308
+ Me(() => {
309
+ document.getElementById(`relation_circle_${T.value}`).removeEventListener("click", Rt), q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
310
+ });
311
+ let { autoSizeLabels: Lt } = Ce({
312
+ svgRef: F,
313
+ fontSize: j.value.style.labels.fontSize,
314
+ minFontSize: j.value.style.labels.minFontSize,
315
+ sizeRef: W,
316
+ labelClass: ".vue-ui-relation-circle-legend"
317
+ });
318
+ function Rt(e) {
319
+ let t = e.target;
320
+ t && Array.from(t.classList).includes("vue-ui-user-options") || t && Array.from(t.classList).includes("vue-ui-user-options-summary") || t && Array.from(t.classList).includes("vue-data-ui-button") || t && Array.from(t.classList).includes("vue-ui-relation-circle-legend") || (R.value = {}, z.value = []);
321
+ }
322
+ function zt() {
323
+ let e = 6.28319 / B.value.length, t = 360 / B.value.length, n = 0, i = 0;
324
+ B.value.forEach((a, o) => {
325
+ let ee = a.weights.reduce((e, t) => e + t, 0), te = K.value * Math.cos(n) + G.value.width / 2, s = K.value * Math.sin(n) + G.value.height / 2 + j.value.style.circle.offsetY;
326
+ I.value.push({
327
+ x: te,
328
+ y: s,
329
+ ...a,
330
+ color: a.color ? a.color : kt.value[o] ? kt.value[o] : r[o],
331
+ regAngle: i,
332
+ totalWeight: ee
333
+ }), n += e, i += t;
334
+ });
335
+ }
336
+ function Bt(e, t) {
337
+ return {
338
+ x: (e.x + t.x) / 2,
339
+ y: (e.y + t.y) / 2
340
+ };
341
+ }
342
+ function Vt() {
343
+ L.value = [], I.value.forEach((e) => {
344
+ I.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
345
+ let r = t.relations.indexOf(e.id);
346
+ L.value.push({
347
+ weight: t.weights[r] ? t.weights[r] : 0,
348
+ relationId: `${e.id}_${t.id}`,
349
+ x1: e.x,
350
+ y1: e.y,
351
+ x2: t.x,
352
+ y2: t.y,
353
+ colorSource: e.color,
354
+ colorTarget: t.color,
355
+ midPointLine: Bt({
356
+ x: e.x,
357
+ y: e.y
358
+ }, {
359
+ x: t.x,
360
+ y: t.y
361
+ }),
362
+ midPointBezier: Ht({
363
+ x1: e.x,
364
+ x2: t.x,
365
+ y1: e.y,
366
+ y2: t.y
367
+ }),
368
+ ...e
369
+ });
370
+ });
371
+ });
372
+ }
373
+ function Ht(e) {
374
+ let t = {
375
+ x: e.x1,
376
+ y: e.y1
377
+ }, n = {
378
+ x: e.x2,
379
+ y: e.y2
380
+ }, r = {
381
+ x: e.x1,
382
+ y: e.y1
383
+ }, i = {
384
+ x: G.value.width / 2,
385
+ y: G.value.height / 2 + j.value.style.circle.offsetY
386
+ }, a = .5;
387
+ return {
388
+ x: (1 - a) ** 3 * t.x + 3 * (1 - a) ** 2 * a * r.x + 3 * (1 - a) * a ** 2 * i.x + a ** 3 * n.x,
389
+ y: (1 - a) ** 3 * t.y + 3 * (1 - a) ** 2 * a * r.y + 3 * (1 - a) * a ** 2 * i.y + a ** 3 * n.y
390
+ };
391
+ }
392
+ let Ut = l(() => Math.max(...L.value.map((e) => e.weight)));
393
+ function Wt(e) {
394
+ return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
395
+ }
396
+ function Y(e) {
397
+ return e.colorSource;
398
+ }
399
+ function Gt(e) {
400
+ return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) && e.relationId === `${e.id}_${R.value.id}` || e.relationId === `${R.value.id}_${e.id}` ? `opacity:1;stroke-width:${en(e)}` : "opacity: 0" : "opacity: 1";
401
+ }
402
+ function X(e) {
403
+ return Object.hasOwn(R.value, "x") ? !!(z.value.includes(e.id) && e.relationId === `${e.id}_${R.value.id}` || e.relationId === `${R.value.id}_${e.id}`) : !1;
404
+ }
405
+ function Kt(e) {
406
+ return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
407
+ }
408
+ function qt(e) {
409
+ return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
410
+ }
411
+ function Jt(e) {
412
+ return Object.hasOwn(R.value, "x") ? R.value.id === e.id || z.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
413
+ }
414
+ function Yt(e) {
415
+ return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
416
+ }
417
+ let Z = v(null);
418
+ function Xt(e, t) {
419
+ Z.value = t, k.value = t, j.value.events.datapointEnter && j.value.events.datapointEnter({
420
+ datapoint: e,
421
+ seriesIndex: t
422
+ });
423
+ }
424
+ function Zt(e, t) {
425
+ Z.value = null, A.value || (k.value = null), j.value.events.datapointLeave && j.value.events.datapointLeave({
426
+ datapoint: e,
427
+ seriesIndex: t
428
+ });
429
+ }
430
+ function Qt(e, t) {
431
+ e && (j.value.events.datapointClick && j.value.events.datapointClick({
432
+ datapoint: e,
433
+ seriesIndex: t
434
+ }), At.value = 360 - e.regAngle, R.value.id && e.id === R.value.id ? (R.value = {}, z.value = []) : (R.value = e, z.value = [...e.relations]));
435
+ }
436
+ function $t(e, t) {
437
+ k.value = t, Qt(e, t);
438
+ }
439
+ function en(e) {
440
+ let t = e.weight / Ut.value * j.value.style.links.maxWidth;
441
+ return Math.max(.3, t);
442
+ }
443
+ let Q = v(!1);
444
+ function tn(e) {
445
+ Q.value = e, pt.value += 1;
446
+ }
447
+ let $ = v(!1);
448
+ function nn() {
449
+ $.value = !$.value;
450
+ }
451
+ async function rn({ scale: e = 2 } = {}) {
452
+ if (!E.value) return;
453
+ let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
454
+ domElement: E.value,
455
+ base64: !0,
456
+ img: !0,
457
+ scale: e
458
+ });
459
+ return {
460
+ imageUri: i,
461
+ base64: a,
462
+ title: j.value.style.title.text,
463
+ width: t,
464
+ height: n,
465
+ aspectRatio: r
466
+ };
467
+ }
468
+ let an = l(() => j.value.style.backgroundColor), { exportSvg: on, getSvg: sn } = fe({
469
+ svg: F,
470
+ title: l(() => j.value.style.title),
471
+ backgroundColor: an
472
+ });
473
+ async function cn({ isCb: e }) {
474
+ O.value = !0, await Ae();
475
+ try {
476
+ if (e) {
477
+ let { blob: e, url: t, text: n, dataUrl: r } = await sn();
478
+ await Promise.resolve(j.value.userOptions.callbacks.svg({
479
+ blob: e,
480
+ url: t,
481
+ text: n,
482
+ dataUrl: r
483
+ }));
484
+ } else await Promise.resolve(on());
485
+ } finally {
486
+ O.value = !1;
487
+ }
488
+ }
489
+ function ln(e) {
490
+ if (e?.stage === "start") {
491
+ D.value = !0;
492
+ return;
493
+ }
494
+ if (e?.stage === "end") {
495
+ D.value = !1;
496
+ return;
497
+ }
498
+ Dt();
499
+ }
500
+ async function un() {
501
+ if (dt("copyAlt", {
502
+ config: j.value,
503
+ dataset: B.value
504
+ }), !j.value.userOptions.callbacks.altCopy) {
505
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
506
+ return;
507
+ }
508
+ await Promise.resolve(j.value.userOptions.callbacks.altCopy({
509
+ config: j.value,
510
+ dataset: B.value
511
+ }));
512
+ }
513
+ function dn() {
514
+ A.value = !0, I.value.length && k.value === null && (k.value = 0);
515
+ }
516
+ function fn() {
517
+ A.value = !1, k.value = null;
518
+ }
519
+ function pn(e) {
520
+ if (!F.value || $.value || document.activeElement !== F.value || !I.value.length) return;
521
+ let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
522
+ if (!t && !n && !r && !i) return;
523
+ if (e.preventDefault(), e.stopPropagation(), i) {
524
+ k.value = null, R.value = {}, z.value = [];
525
+ return;
526
+ }
527
+ if (r) {
528
+ if (k.value === null) return;
529
+ let e = I.value[k.value];
530
+ if (!e) return;
531
+ Qt(e, k.value);
532
+ return;
533
+ }
534
+ let a = k.value;
535
+ a === null || a < 0 || a >= I.value.length ? a = n ? 0 : I.value.length - 1 : n ? (a += 1, a >= I.value.length && (a = 0)) : t && (--a, a < 0 && (a = I.value.length - 1)), k.value = a, Z.value = a;
536
+ let o = I.value[a];
537
+ o && j.value.events.datapointEnter && j.value.events.datapointEnter({
538
+ datapoint: o,
539
+ seriesIndex: a
540
+ });
541
+ }
542
+ let mn = l(() => ({
543
+ headers: [
544
+ "ID",
545
+ "Label",
546
+ "Total weight",
547
+ "Relations count",
548
+ "Relations"
549
+ ],
550
+ rows: B.value.map((e) => {
551
+ let t = e.relations.map((e) => B.value.find((t) => t.id === e)?.label || e).join(", "), n = (e.weights || []).reduce((e, t) => e + Number(t || 0), 0);
552
+ return [
553
+ e.id,
554
+ e.label,
555
+ n,
556
+ e.relations.length,
557
+ t
558
+ ];
559
+ })
560
+ }));
561
+ return _e({
562
+ getImage: rn,
563
+ generatePdf: Et,
564
+ generateSvg: cn,
565
+ generateImage: Dt,
566
+ toggleAnnotator: nn,
567
+ toggleFullscreen: tn,
568
+ copyAlt: un
569
+ }), (e, t) => (_(), f("div", {
570
+ ref_key: "relationCircleChart",
571
+ ref: E,
572
+ class: "vue-data-ui-component vue-ui-relation-circle",
573
+ style: g(`width:100%;background:${j.value.style.backgroundColor};text-align:center;${j.value.responsive ? "height: 100%" : ""}`),
574
+ id: `relation_circle_${T.value}`,
575
+ onMouseenter: t[0] ||= () => S(xt)(!0),
576
+ onMouseleave: t[1] ||= () => S(xt)(!1)
577
+ }, [
578
+ p("div", {
579
+ id: `chart-instructions-${T.value}`,
580
+ class: "sr-only"
581
+ }, [p("p", null, x(j.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
582
+ mn.value?.rows?.length ? (_(), u(be, {
583
+ key: 0,
584
+ uid: T.value,
585
+ head: mn.value.headers,
586
+ body: mn.value.rows,
587
+ notice: j.value.a11y.translations.tableAvailable,
588
+ caption: j.value.a11y.translations.tableCaption
589
+ }, null, 8, [
590
+ "uid",
591
+ "head",
592
+ "body",
593
+ "notice",
594
+ "caption"
595
+ ])) : d("", !0),
596
+ j.value.userOptions.buttons.annotator ? (_(), u(S(at), {
597
+ key: 1,
598
+ svgRef: S(F),
599
+ backgroundColor: j.value.style.backgroundColor,
600
+ color: j.value.style.color,
601
+ active: $.value,
602
+ isCursorPointer: M.value,
603
+ onClose: nn
604
+ }, {
605
+ "annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
606
+ "annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", h(m({ color: t })), void 0, !0)]),
607
+ "annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", h(m({ mode: t })), void 0, !0)]),
608
+ "annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", h(m({ disabled: t })), void 0, !0)]),
609
+ "annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", h(m({ disabled: t })), void 0, !0)]),
610
+ "annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", h(m({ disabled: t })), void 0, !0)]),
611
+ _: 3
612
+ }, 8, [
613
+ "svgRef",
614
+ "backgroundColor",
615
+ "color",
616
+ "active",
617
+ "isCursorPointer"
618
+ ])) : d("", !0),
619
+ Ot.value ? (_(), f("div", {
620
+ key: 2,
621
+ ref_key: "noTitle",
622
+ ref: gt,
623
+ class: "vue-data-ui-no-title-space",
624
+ style: "height:36px; width: 100%;background:transparent"
625
+ }, null, 512)) : d("", !0),
626
+ j.value.style.title.text ? (_(), f("div", {
627
+ key: 3,
628
+ ref_key: "chartTitle",
629
+ ref: mt,
630
+ style: "width:100%;background:transparent"
631
+ }, [(_(), u(ge, {
632
+ key: `title_${_t.value}`,
633
+ config: {
634
+ title: {
635
+ cy: "relation-div-title",
636
+ ...j.value.style.title
637
+ },
638
+ subtitle: {
639
+ cy: "relation-div-subtitle",
640
+ ...j.value.style.title.subtitle
641
+ }
642
+ }
643
+ }, null, 8, ["config"]))], 512)) : d("", !0),
644
+ j.value.userOptions.show && ft.value && (S(St) || S(P)) ? (_(), u(S(ot), {
645
+ ref: "details",
646
+ key: `user_options_${pt.value}`,
647
+ backgroundColor: j.value.style.backgroundColor,
648
+ color: j.value.style.color,
649
+ isPrinting: S(wt),
650
+ isImaging: S(Tt),
651
+ uid: T.value,
652
+ hasPdf: j.value.userOptions.buttons.pdf,
653
+ hasImg: j.value.userOptions.buttons.img,
654
+ hasSvg: j.value.userOptions.buttons.svg,
655
+ hasFullscreen: j.value.userOptions.buttons.fullscreen,
656
+ hasAltCopy: j.value.userOptions.buttons.altCopy,
657
+ hasXls: !1,
658
+ isFullscreen: Q.value,
659
+ titles: { ...j.value.userOptions.buttonTitles },
660
+ chartElement: E.value,
661
+ position: j.value.userOptions.position,
662
+ hasAnnotator: j.value.userOptions.buttons.annotator,
663
+ isAnnotation: $.value,
664
+ callbacks: j.value.userOptions.callbacks,
665
+ printScale: j.value.userOptions.print.scale,
666
+ isCursorPointer: M.value,
667
+ onToggleFullscreen: tn,
668
+ onGeneratePdf: S(Et),
669
+ onGenerateImage: ln,
670
+ onGenerateSvg: cn,
671
+ onToggleAnnotator: nn,
672
+ onCopyAlt: un,
673
+ style: g({ visibility: S(St) ? S(P) ? "visible" : "hidden" : "visible" })
674
+ }, Te({ _: 2 }, [
675
+ e.$slots.menuIcon ? {
676
+ name: "menuIcon",
677
+ fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", h(m({
678
+ isOpen: t,
679
+ color: n
680
+ })), void 0, !0)]),
681
+ key: "0"
682
+ } : void 0,
683
+ e.$slots.optionPdf ? {
684
+ name: "optionPdf",
685
+ fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
686
+ key: "1"
687
+ } : void 0,
688
+ e.$slots.optionImg ? {
689
+ name: "optionImg",
690
+ fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
691
+ key: "2"
692
+ } : void 0,
693
+ e.$slots.optionSvg ? {
694
+ name: "optionSvg",
695
+ fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
696
+ key: "3"
697
+ } : void 0,
698
+ e.$slots.optionFullscreen ? {
699
+ name: "optionFullscreen",
700
+ fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", h(m({
701
+ toggleFullscreen: t,
702
+ isFullscreen: n
703
+ })), void 0, !0)]),
704
+ key: "4"
705
+ } : void 0,
706
+ e.$slots.optionAnnotator ? {
707
+ name: "optionAnnotator",
708
+ fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", h(m({
709
+ toggleAnnotator: t,
710
+ isAnnotator: n
711
+ })), void 0, !0)]),
712
+ key: "5"
713
+ } : void 0,
714
+ e.$slots.optionAltCopy ? {
715
+ name: "optionAltCopy",
716
+ fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", h(m({ altCopy: t })), void 0, !0)]),
717
+ key: "6"
718
+ } : void 0,
719
+ e.$slots["custom-menu-before"] ? {
720
+ name: "custom-menu-before",
721
+ fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
722
+ key: "7"
723
+ } : void 0,
724
+ e.$slots["custom-menu-after"] ? {
725
+ name: "custom-menu-after",
726
+ fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
727
+ key: "8"
728
+ } : void 0
729
+ ]), 1032, [
730
+ "backgroundColor",
731
+ "color",
732
+ "isPrinting",
733
+ "isImaging",
734
+ "uid",
735
+ "hasPdf",
736
+ "hasImg",
737
+ "hasSvg",
738
+ "hasFullscreen",
739
+ "hasAltCopy",
740
+ "isFullscreen",
741
+ "titles",
742
+ "chartElement",
743
+ "position",
744
+ "hasAnnotator",
745
+ "isAnnotation",
746
+ "callbacks",
747
+ "printScale",
748
+ "isCursorPointer",
749
+ "onGeneratePdf",
750
+ "style"
751
+ ])) : d("", !0),
752
+ p("div", Ve, [(_(), f("svg", {
753
+ ref_key: "svgRef",
754
+ ref: F,
755
+ xmlns: S(re),
756
+ class: je([{
757
+ "vue-data-ui-fullscreen--on": Q.value,
758
+ "vue-data-ui-fulscreen--off": !Q.value
759
+ }, "relation-circle"]),
760
+ viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
761
+ width: "100%",
762
+ style: "user-select:none; background:transparent",
763
+ "aria-describedby": `chart-instructions-${T.value}`,
764
+ tabindex: "0",
765
+ onFocus: dn,
766
+ onBlur: fn,
767
+ onKeydown: pn
768
+ }, [
769
+ De(S(st)),
770
+ e.$slots["chart-background"] ? (_(), f("foreignObject", {
771
+ key: 0,
772
+ x: 0,
773
+ y: 0,
774
+ width: G.value.width <= 0 ? 10 : G.value.width,
775
+ height: G.value.height <= 0 ? 10 : G.value.height,
776
+ style: { pointerEvents: "none" }
777
+ }, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : d("", !0),
778
+ p("circle", {
779
+ cx: (G.value.width <= 0 ? 1e-4 : G.value.width) / 2,
780
+ cy: (G.value.height <= 0 ? 1e-4 : G.value.height) / 2 + j.value.style.circle.offsetY,
781
+ r: K.value <= 0 ? 1e-4 : K.value,
782
+ stroke: j.value.style.circle.stroke,
783
+ "stroke-width": j.value.style.circle.strokeWidth,
784
+ fill: "transparent",
785
+ class: "main-circle"
786
+ }, null, 8, We),
787
+ jt.value ? (_(), f("g", Ge, [(_(!0), f(c, null, y(L.value, (e, t) => (_(), f("path", {
788
+ key: `relation_${t}`,
789
+ style: g(Gt(e)),
790
+ stroke: Y(e),
791
+ class: je(["relation", { "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }]),
792
+ d: `M${e.x1},${e.y1} C${e.x1},${e.y1} ${G.value.width / 2},${G.value.height / 2 + j.value.style.circle.offsetY} ${e.x2},${e.y2}`,
793
+ fill: "none",
794
+ "stroke-width": en(e),
795
+ "stroke-linecap": "round"
796
+ }, null, 14, Ke))), 128)), (_(!0), f(c, null, y(L.value, (t, n) => (_(), f("g", qe, [
797
+ X(t) ? b(e.$slots, "dataLabel", ke({ ref_for: !0 }, {
798
+ x: t.midPointBezier.x,
799
+ y: t.midPointBezier.y,
800
+ color: Y(t),
801
+ weight: t.weight,
802
+ fontSize: H.value
803
+ }), void 0, !0, 0) : d("", !0),
804
+ X(t) && !e.$slots.dataLabel ? (_(), f("circle", {
805
+ key: 1,
806
+ cx: t.midPointBezier.x,
807
+ cy: t.midPointBezier.y,
808
+ fill: Y(t),
809
+ r: H.value,
810
+ stroke: j.value.style.backgroundColor,
811
+ "stroke-width": "1"
812
+ }, null, 8, Je)) : d("", !0),
813
+ X(t) && !e.$slots.dataLabel ? (_(), f("text", {
814
+ key: 2,
815
+ x: t.midPointBezier.x,
816
+ y: t.midPointBezier.y + H.value / 3,
817
+ fill: S(ne)(Y(t)),
818
+ "text-anchor": "middle",
819
+ "font-size": H.value
820
+ }, x(S(a)(j.value.style.weightLabels.formatter, t.weight, S(i)({
821
+ p: j.value.style.weightLabels.prefix,
822
+ v: t.weight,
823
+ s: j.value.style.weightLabels.suffix,
824
+ r: j.value.style.weightLabels.rounding
825
+ }), { ...t })), 9, Ye)) : d("", !0)
826
+ ]))), 256))])) : (_(), f("g", Xe, [(_(!0), f(c, null, y(L.value, (e, t) => (_(), f("line", {
827
+ key: `relation_${t}`,
828
+ stroke: Y(e),
829
+ "stroke-width": en(e),
830
+ style: g(Gt(e)),
831
+ x1: e.x1,
832
+ x2: e.x2,
833
+ y1: e.y1,
834
+ y2: e.y2,
835
+ class: je({ "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }),
836
+ "stroke-linecap": "round"
837
+ }, null, 14, Ze))), 128)), (_(!0), f(c, null, y(L.value, (t, n) => (_(), f("g", Qe, [
838
+ X(t) ? b(e.$slots, "dataLabel", ke({ ref_for: !0 }, {
839
+ x: t.midPointLine.x,
840
+ y: t.midPointLine.y,
841
+ color: Y(t),
842
+ weight: t.weight,
843
+ fontSize: H.value
844
+ }), void 0, !0, 0) : d("", !0),
845
+ X(t) && !e.$slots.dataLabel && j.value.style.weightLabels.show ? (_(), f("circle", {
846
+ key: 1,
847
+ cx: t.midPointLine.x,
848
+ cy: t.midPointLine.y,
849
+ fill: Y(t),
850
+ r: H.value,
851
+ stroke: j.value.style.backgroundColor,
852
+ "stroke-width": "1"
853
+ }, null, 8, $e)) : d("", !0),
854
+ X(t) && !e.$slots.dataLabel && j.value.style.weightLabels.show ? (_(), f("text", {
855
+ key: 2,
856
+ x: t.midPointLine.x,
857
+ y: t.midPointLine.y + H.value / 3,
858
+ fill: S(ne)(Y(t)),
859
+ "text-anchor": "middle",
860
+ "font-size": H.value
861
+ }, x(S(a)(j.value.style.weightLabels.formatter, t.weight, S(i)({
862
+ p: j.value.style.weightLabels.prefix,
863
+ v: t.weight,
864
+ s: j.value.style.weightLabels.suffix,
865
+ r: j.value.style.weightLabels.rounding
866
+ }), { ...t })), 9, et)) : d("", !0)
867
+ ]))), 256))])),
868
+ (_(!0), f(c, null, y(I.value, (e, t) => (_(), f("text", {
869
+ key: `plot_text_${t}`,
870
+ "text-anchor": Kt(e),
871
+ transform: Yt(e),
872
+ x: qt(e),
873
+ y: e.y + 5,
874
+ class: "vue-ui-relation-circle-legend",
875
+ "transform-origin": "start",
876
+ "font-weight": R.value.id === e.id ? "900" : "400",
877
+ style: g(`font-family:${j.value.style.fontFamily};${Jt(e)};cursor:${M.value ? "pointer" : "default"}`),
878
+ "font-size": W.value,
879
+ fill: j.value.style.labels.color,
880
+ "text-decoration": t === Z.value || t === k.value ? "underline" : void 0,
881
+ onClick: (n) => $t(e, t),
882
+ onMouseenter: (n) => Xt(e, t),
883
+ onMouseleave: (n) => Zt(e, t)
884
+ }, [S(yt) ? (_(), f(c, { key: 0 }, [Ee("--------")], 64)) : (_(), f(c, { key: 1 }, [Ee(x(e.label) + " (" + x(S(a)(j.value.style.weightLabels.formatter, e.totalWeight, S(i)({
885
+ p: j.value.style.weightLabels.prefix,
886
+ v: e.totalWeight,
887
+ s: j.value.style.weightLabels.suffix,
888
+ r: j.value.style.weightLabels.rounding
889
+ }), { ...e })) + ") ", 1)], 64))], 44, tt))), 128)),
890
+ (_(!0), f(c, null, y(I.value, (e, t) => (_(), f("circle", {
891
+ cx: e.x,
892
+ cy: e.y,
893
+ key: `plot_${t}`,
894
+ style: g(`${Wt(e)}; transition: r 0.2s ease-in-out; cursor:${M.value ? "pointer" : "default"}`),
895
+ class: "vue-ui-relation-circle-plot",
896
+ fill: j.value.style.plot.useSerieColor ? e.color : j.value.style.plot.color,
897
+ stroke: j.value.style.backgroundColor,
898
+ "stroke-width": "1",
899
+ r: U.value * (t === Z.value || t === k.value ? 2 : 1),
900
+ onClick: (n) => $t(e, t),
901
+ onMouseenter: (n) => Xt(e, t),
902
+ onMouseleave: (n) => Zt(e, t)
903
+ }, null, 44, nt))), 128)),
904
+ b(e.$slots, "svg", { svg: {
905
+ ...G.value,
906
+ isPrintingImg: S(wt) || S(Tt) || D.value,
907
+ isPrintingSvg: O.value
908
+ } }, void 0, !0)
909
+ ], 42, He)), e.$slots.hint ? (_(), f("div", rt, [b(e.$slots, "hint", h(m({
910
+ hint: j.value.a11y.translations.keyboardNavigation,
911
+ isVisible: A.value
912
+ })), void 0, !0)])) : d("", !0)]),
913
+ e.$slots.watermark ? (_(), f("div", it, [b(e.$slots, "watermark", h(m({ isPrinting: S(wt) || S(Tt) || D.value || O.value })), void 0, !0)])) : d("", !0),
914
+ e.$slots.source ? (_(), f("div", {
915
+ key: 6,
916
+ ref_key: "source",
917
+ ref: ht,
918
+ dir: "auto"
919
+ }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
920
+ b(e.$slots, "skeleton", {}, () => [S(yt) ? (_(), u(de, { key: 0 })) : d("", !0)], !0)
921
+ ], 44, ze));
922
+ }
923
+ }, [["__scopeId", "data-v-7f386d86"]]);
924
+ //#endregion
925
+ export { Re as n, at as t };