vue-data-ui 3.23.0 → 3.23.2

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