vue-data-ui 3.6.0 → 3.7.1

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -0,0 +1,671 @@
1
+ import { useCssVars as wt, computed as y, defineAsyncComponent as Z, ref as u, toRefs as Ct, watch as ee, shallowRef as ze, onMounted as At, onBeforeUnmount as xt, createElementBlock as n, openBlock as a, unref as i, normalizeStyle as I, createBlock as U, createCommentVNode as g, withCtx as h, renderSlot as v, normalizeProps as w, guardReactiveProps as C, createSlots as $t, normalizeClass as te, createVNode as _t, createElementVNode as Lt, Fragment as _, renderList as M, mergeProps as Oe, toDisplayString as V, createTextVNode as Se } from "vue";
2
+ import { c as Pt, t as zt, i as Ot, p as Ie, j as St, o as Me, g as Be, k as It, X as Mt, w as Ee, a as le, d as se, Y as oe } from "./lib-C5BH09_g.js";
3
+ import { t as Bt, u as Et } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ft, a as ae } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as Tt, B as Dt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Rt } from "./usePrinter-DCJzEiS8.js";
7
+ import { u as jt } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Nt } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
11
+ import { u as Gt } from "./useAutoSizeLabelsInsideViewbox-DOALwU4q.js";
12
+ import Wt from "./img-DUzJeMlr.js";
13
+ import Yt from "./Title-DfFUb9hd.js";
14
+ import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Fe = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", labels: { color: "#CCCCCC" }, circle: { stroke: "#5A5A5A" }, plot: { color: "#1A1A1A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, Te = { style: { backgroundColor: "#FFF8E1", color: "#424242", labels: { color: "#424242" }, circle: { stroke: "#5D403780" }, plot: { color: "#5D4037" }, title: { color: "#424242", subtitle: { color: "#757575" } } } }, De = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", labels: { color: "#BDBDBD" }, circle: { stroke: "#5D403780" }, plot: { color: "#5D4037" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } }, Re = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", labels: { color: "#AACCAA" }, circle: { stroke: "#333333" }, plot: { color: "#66CC66" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, je = { style: { backgroundColor: "#fbfafa", color: "#8A9892", labels: { color: "#A0AC94" }, circle: { stroke: "transparent" }, plot: { color: "#C09E85" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, Ne = { style: { backgroundColor: "#f6f6fb", color: "#50606C", labels: { color: "#61747E" }, circle: { stroke: "#D2D7E0" }, plot: { color: "#97ACB7" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, Ue = {
16
+ default: {},
17
+ dark: Fe,
18
+ celebration: Te,
19
+ celebrationNight: De,
20
+ hack: Re,
21
+ zen: je,
22
+ concrete: Ne
23
+ }, Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
+ __proto__: null,
25
+ celebration: Te,
26
+ celebrationNight: De,
27
+ concrete: Ne,
28
+ dark: Fe,
29
+ default: Ue,
30
+ hack: Re,
31
+ zen: je
32
+ }, Symbol.toStringTag, { value: "Module" })), qt = ["id"], Ht = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["cx", "cy", "r", "stroke", "stroke-width"], Qt = { key: 1 }, Zt = ["stroke", "d", "stroke-width"], el = { style: { "pointer-events": "none" } }, tl = ["cx", "cy", "fill", "r", "stroke"], ll = ["x", "y", "fill", "font-size"], sl = { key: 2 }, ol = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], al = { style: { "pointer-events": "none" } }, nl = ["cx", "cy", "fill", "r", "stroke"], il = ["x", "y", "fill", "font-size"], rl = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], ul = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], cl = {
33
+ key: 4,
34
+ class: "vue-data-ui-watermark"
35
+ }, dl = {
36
+ __name: "vue-ui-relation-circle",
37
+ props: {
38
+ dataset: {
39
+ type: Array,
40
+ default() {
41
+ return [];
42
+ }
43
+ },
44
+ config: {
45
+ type: Object,
46
+ default() {
47
+ return {};
48
+ }
49
+ }
50
+ },
51
+ setup(Ve, { expose: Ge }) {
52
+ wt((e) => ({
53
+ v0ccf0e06: st.value,
54
+ v0ab0445c: lt.value,
55
+ v08643f3e: ot.value
56
+ }));
57
+ const We = Z(() => import("./PenAndPaper-HCZQTkqi.js")), Ye = Z(() => import("./UserOptions-B3I-s3Lw.js")), Xe = Z(() => import("./PackageVersion-C82JCJOX.js")), { vue_ui_relation_circle: qe } = Ft(), { isThemeValid: He, warnInvalidTheme: Je } = Nt(), m = Ve, Ke = y(() => !!m.dataset && Object.keys(m.dataset).length), B = u(Pt()), ne = u(0), L = u(null), ie = u(null), re = u(null), ue = u(null), ce = u(0), l = u(Y()), { loading: de, FINAL_DATASET: Qe, manualLoading: G } = Tt({
58
+ ...Ct(m),
59
+ FINAL_CONFIG: l,
60
+ prepareConfig: Y,
61
+ skeletonDataset: [
62
+ { id: "A", label: "_", relations: ["B", "C", "D", "E", "F", "G"] },
63
+ { id: "B", label: "_", relations: ["A"] },
64
+ { id: "C", label: "_", relations: ["A"] },
65
+ { id: "D", label: "_", relations: ["A"] },
66
+ { id: "E", label: "_", relations: ["A"] },
67
+ { id: "F", label: "_", relations: ["A"] },
68
+ { id: "G", label: "_", relations: ["A"] }
69
+ ],
70
+ skeletonConfig: zt({
71
+ defaultConfig: l.value,
72
+ userConfig: {
73
+ userOptions: { show: !1 },
74
+ customPalette: new Array(7).fill("#CACACA"),
75
+ style: {
76
+ backgroundColor: "#99999930",
77
+ labels: { color: "#6A6A6A" },
78
+ circle: { stroke: "#6A6A6A" },
79
+ plot: { color: "#6A6A6A", useSerieColor: !0 },
80
+ links: { maxWidth: 2 }
81
+ }
82
+ }
83
+ })
84
+ }), { userOptionsVisible: W, setUserOptionsVisibility: ve, keepUserOptionState: fe } = Ut({ config: l.value }), { svgRef: F } = Vt({ config: l.value.style.title });
85
+ function Y() {
86
+ const e = ae({
87
+ userConfig: m.config,
88
+ defaultConfig: qe
89
+ }), s = e.theme;
90
+ if (!s) return e;
91
+ if (!He.value(e))
92
+ return Je(e), e;
93
+ const t = ae({
94
+ userConfig: Ue[s] || m.config,
95
+ defaultConfig: e
96
+ }), o = ae({
97
+ userConfig: m.config,
98
+ defaultConfig: t
99
+ });
100
+ return {
101
+ ...o,
102
+ customPalette: o.customPalette.length ? o.customPalette : Ot[s] || Ie
103
+ };
104
+ }
105
+ ee(() => m.config, (e) => {
106
+ l.value = Y(), W.value = !l.value.userOptions.showOnChartHover, P.value = l.value.style.size, b.value = l.value.style.weightLabels.size, D.value = l.value.style.plot.radius, E.value = l.value.style.labels.fontSize, r.value.height = l.value.style.size, r.value.width = l.value.style.size, ke(), ce.value += 1;
107
+ }, { deep: !0 }), ee(() => m.dataset, (e) => {
108
+ Array.isArray(e) && e.length > 0 && (G.value = !1);
109
+ }, { deep: !0 });
110
+ const { isPrinting: ge, isImaging: ye, generatePdf: he, generateImage: me } = Rt({
111
+ elementId: `relation_circle_${B.value}`,
112
+ fileName: l.value.style.title.text || "vue-ui-relation-circle",
113
+ options: l.value.userOptions.print
114
+ }), Ze = y(() => l.value.userOptions.show && !l.value.style.title.text), be = y(() => St(l.value.customPalette)), A = u([]), p = u([]), f = u({}), k = u([]), et = u(0), T = y(() => Qe.value.slice(0, l.value.style.limit).map((e) => {
115
+ const s = Array.isArray(e.relations) ? e.relations : [];
116
+ return {
117
+ ...e,
118
+ weights: Array.isArray(e.weights) ? e.weights : new Array(s.length).fill(1),
119
+ relations: s
120
+ };
121
+ }));
122
+ ee(T, () => {
123
+ A.value = [], p.value = [], X(), q();
124
+ });
125
+ const P = u(l.value.style.size), b = u(l.value.style.weightLabels.size), D = u(l.value.style.plot.radius), E = u(l.value.style.labels.fontSize), r = u({
126
+ height: l.value.style.size,
127
+ width: l.value.style.size
128
+ }), z = y({
129
+ get() {
130
+ return P.value * l.value.style.circle.radiusProportion;
131
+ },
132
+ set(e) {
133
+ return e;
134
+ }
135
+ }), tt = y(() => l.value.style.links.curved), lt = y(() => `${l.value.style.animation.speedMs}ms`), st = y(() => z.value * 2), ot = y(() => z.value * 4), x = ze(null), O = ze(null);
136
+ At(() => {
137
+ ke(), document.getElementById(`relation_circle_${B.value}`).addEventListener("click", Ce);
138
+ });
139
+ const pe = y(() => l.value.debug);
140
+ function ke() {
141
+ if (Me(m.dataset) ? (Be({
142
+ componentName: "VueUiRelationCircle",
143
+ type: "dataset",
144
+ debug: pe.value
145
+ }), G.value = !0) : m.dataset.forEach((e, s) => {
146
+ It({
147
+ datasetObject: e,
148
+ requiredAttributes: ["id", "label", "relations", "weights"]
149
+ }).forEach((t) => {
150
+ Be({
151
+ componentName: "VueUiRelationCircle",
152
+ type: "datasetSerieAttribute",
153
+ property: t,
154
+ index: s,
155
+ debug: pe.value
156
+ });
157
+ });
158
+ }), Me(m.dataset) || (G.value = l.value.loading), l.value.responsive) {
159
+ const e = Bt(() => {
160
+ const { width: s, height: t } = Et({
161
+ chart: L.value,
162
+ title: l.value.style.title.text ? ie.value : null,
163
+ source: re.value,
164
+ noTitle: ue.value
165
+ });
166
+ requestAnimationFrame(() => {
167
+ P.value = Math.min(s, t), r.value.width = Math.max(0.1, s), r.value.height = Math.max(0.1, t - 12), z.value = P.value * l.value.style.circle.radiusProportion, A.value = [], p.value = [], X(), q(), we(), l.value.responsiveProportionalSizing ? (b.value = oe({
168
+ relator: P.value,
169
+ adjuster: l.value.style.size,
170
+ source: l.value.style.weightLabels.size,
171
+ threshold: 6,
172
+ fallback: 6
173
+ }), D.value = oe({
174
+ relator: P.value,
175
+ adjuster: l.value.style.size,
176
+ source: l.value.style.plot.radius,
177
+ threshold: 1,
178
+ fallback: 1
179
+ }), E.value = oe({
180
+ relator: P.value,
181
+ adjuster: l.value.style.size,
182
+ source: l.value.style.labels.fontSize,
183
+ threshold: 6,
184
+ fallback: 6
185
+ })) : (b.value = l.value.style.weightLabels.size, D.value = l.value.style.plot.radius, E.value = l.value.style.labels.fontSize);
186
+ });
187
+ });
188
+ x.value && (O.value && x.value.unobserve(O.value), x.value.disconnect()), x.value = new ResizeObserver(e), O.value = L.value.parentNode, x.value.observe(O.value);
189
+ } else
190
+ A.value = [], p.value = [], X(), q();
191
+ we();
192
+ }
193
+ xt(() => {
194
+ document.getElementById(`relation_circle_${B.value}`).removeEventListener("click", Ce), x.value && (O.value && x.value.unobserve(O.value), x.value.disconnect());
195
+ });
196
+ const { autoSizeLabels: we } = Gt({
197
+ svgRef: F,
198
+ fontSize: l.value.style.labels.fontSize,
199
+ minFontSize: l.value.style.labels.minFontSize,
200
+ sizeRef: E,
201
+ labelClass: ".vue-ui-relation-circle-legend"
202
+ });
203
+ function Ce(e) {
204
+ const s = e.target;
205
+ s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (f.value = {}, k.value = []);
206
+ }
207
+ function X() {
208
+ const e = 6.28319 / T.value.length, s = 360 / T.value.length;
209
+ let t = 0, o = 0;
210
+ T.value.forEach((c, d) => {
211
+ const K = c.weights.reduce((pt, kt) => pt + kt, 0), Q = z.value * Math.cos(t) + r.value.width / 2, bt = z.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
212
+ A.value.push({ x: Q, y: bt, ...c, color: c.color ? c.color : be.value[d] ? be.value[d] : Ie[d], regAngle: o, totalWeight: K }), t += e, o += s;
213
+ });
214
+ }
215
+ function at(e, s) {
216
+ const t = (e.x + s.x) / 2, o = (e.y + s.y) / 2;
217
+ return { x: t, y: o };
218
+ }
219
+ function q() {
220
+ p.value = [], A.value.forEach((e) => {
221
+ A.value.filter((t) => t.relations.includes(e.id)).forEach((t, o) => {
222
+ const c = t.relations.indexOf(e.id);
223
+ p.value.push({
224
+ weight: t.weights[c] ? t.weights[c] : 0,
225
+ relationId: `${e.id}_${t.id}`,
226
+ x1: e.x,
227
+ y1: e.y,
228
+ x2: t.x,
229
+ y2: t.y,
230
+ colorSource: e.color,
231
+ colorTarget: t.color,
232
+ midPointLine: at({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
233
+ midPointBezier: nt({
234
+ x1: e.x,
235
+ x2: t.x,
236
+ y1: e.y,
237
+ y2: t.y
238
+ }),
239
+ ...e
240
+ });
241
+ });
242
+ });
243
+ }
244
+ function nt(e) {
245
+ const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, o = { x: e.x1, y: e.y1 }, c = {
246
+ x: r.value.width / 2,
247
+ y: r.value.height / 2 + l.value.style.circle.offsetY
248
+ }, d = 0.5, K = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * o.x + 3 * (1 - d) * Math.pow(d, 2) * c.x + Math.pow(d, 3) * t.x, Q = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * o.y + 3 * (1 - d) * Math.pow(d, 2) * c.y + Math.pow(d, 3) * t.y;
249
+ return { x: K, y: Q };
250
+ }
251
+ const it = y(() => Math.max(...p.value.map((e) => e.weight)));
252
+ function rt(e) {
253
+ return Object.hasOwn(f.value, "x") ? k.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
254
+ }
255
+ function $(e) {
256
+ return e.colorSource;
257
+ }
258
+ function Ae(e) {
259
+ return Object.hasOwn(f.value, "x") ? k.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}` ? `opacity:1;stroke-width:${H(e)}` : "opacity: 0" : "opacity: 1";
260
+ }
261
+ function S(e) {
262
+ return Object.hasOwn(f.value, "x") ? !!(k.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}`) : !1;
263
+ }
264
+ function ut(e) {
265
+ return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
266
+ }
267
+ function ct(e) {
268
+ return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
269
+ }
270
+ function dt(e) {
271
+ return Object.hasOwn(f.value, "x") ? f.value.id === e.id || k.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
272
+ }
273
+ function vt(e) {
274
+ return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
275
+ }
276
+ const R = u(null);
277
+ function xe(e, s) {
278
+ R.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
279
+ }
280
+ function $e(e, s) {
281
+ R.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
282
+ }
283
+ function _e(e, s) {
284
+ l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), et.value = 360 - e.regAngle, f.value.id && e.id === f.value.id ? (f.value = {}, k.value = []) : (f.value = e, k.value = [...e.relations]);
285
+ }
286
+ function H(e) {
287
+ const s = e.weight / it.value * l.value.style.links.maxWidth;
288
+ return Math.max(0.3, s);
289
+ }
290
+ const j = u(!1);
291
+ function Le(e) {
292
+ j.value = e, ne.value += 1;
293
+ }
294
+ const N = u(!1);
295
+ function J() {
296
+ N.value = !N.value;
297
+ }
298
+ async function ft({ scale: e = 2 } = {}) {
299
+ if (!L.value) return;
300
+ const { width: s, height: t } = L.value.getBoundingClientRect(), o = s / t, { imageUri: c, base64: d } = await Wt({ domElement: L.value, base64: !0, img: !0, scale: e });
301
+ return {
302
+ imageUri: c,
303
+ base64: d,
304
+ title: l.value.style.title.text,
305
+ width: s,
306
+ height: t,
307
+ aspectRatio: o
308
+ };
309
+ }
310
+ const gt = y(() => l.value.style.backgroundColor), yt = y(() => l.value.style.title), { exportSvg: ht, getSvg: mt } = jt({
311
+ svg: F,
312
+ title: yt,
313
+ backgroundColor: gt
314
+ });
315
+ async function Pe({ isCb: e }) {
316
+ if (e) {
317
+ const { blob: s, url: t, text: o, dataUrl: c } = await mt();
318
+ l.value.userOptions.callbacks.svg({ blob: s, url: t, text: o, dataUrl: c });
319
+ } else
320
+ ht();
321
+ }
322
+ return Ge({
323
+ getImage: ft,
324
+ generatePdf: he,
325
+ generateSvg: Pe,
326
+ generateImage: me,
327
+ toggleAnnotator: J,
328
+ toggleFullscreen: Le
329
+ }), (e, s) => (a(), n("div", {
330
+ ref_key: "relationCircleChart",
331
+ ref: L,
332
+ class: "vue-data-ui-component vue-ui-relation-circle",
333
+ style: I(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
334
+ id: `relation_circle_${B.value}`,
335
+ onMouseenter: s[0] || (s[0] = () => i(ve)(!0)),
336
+ onMouseleave: s[1] || (s[1] = () => i(ve)(!1))
337
+ }, [
338
+ l.value.userOptions.buttons.annotator ? (a(), U(i(We), {
339
+ key: 0,
340
+ svgRef: i(F),
341
+ backgroundColor: l.value.style.backgroundColor,
342
+ color: l.value.style.color,
343
+ active: N.value,
344
+ onClose: J
345
+ }, {
346
+ "annotator-action-close": h(() => [
347
+ v(e.$slots, "annotator-action-close", {}, void 0, !0)
348
+ ]),
349
+ "annotator-action-color": h(({ color: t }) => [
350
+ v(e.$slots, "annotator-action-color", w(C({ color: t })), void 0, !0)
351
+ ]),
352
+ "annotator-action-draw": h(({ mode: t }) => [
353
+ v(e.$slots, "annotator-action-draw", w(C({ mode: t })), void 0, !0)
354
+ ]),
355
+ "annotator-action-undo": h(({ disabled: t }) => [
356
+ v(e.$slots, "annotator-action-undo", w(C({ disabled: t })), void 0, !0)
357
+ ]),
358
+ "annotator-action-redo": h(({ disabled: t }) => [
359
+ v(e.$slots, "annotator-action-redo", w(C({ disabled: t })), void 0, !0)
360
+ ]),
361
+ "annotator-action-delete": h(({ disabled: t }) => [
362
+ v(e.$slots, "annotator-action-delete", w(C({ disabled: t })), void 0, !0)
363
+ ]),
364
+ _: 3
365
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
366
+ Ze.value ? (a(), n("div", {
367
+ key: 1,
368
+ ref_key: "noTitle",
369
+ ref: ue,
370
+ class: "vue-data-ui-no-title-space",
371
+ style: "height:36px; width: 100%;background:transparent"
372
+ }, null, 512)) : g("", !0),
373
+ l.value.style.title.text ? (a(), n("div", {
374
+ key: 2,
375
+ ref_key: "chartTitle",
376
+ ref: ie,
377
+ style: "width:100%;background:transparent"
378
+ }, [
379
+ (a(), U(Yt, {
380
+ key: `title_${ce.value}`,
381
+ config: {
382
+ title: {
383
+ cy: "relation-div-title",
384
+ ...l.value.style.title
385
+ },
386
+ subtitle: {
387
+ cy: "relation-div-subtitle",
388
+ ...l.value.style.title.subtitle
389
+ }
390
+ }
391
+ }, null, 8, ["config"]))
392
+ ], 512)) : g("", !0),
393
+ l.value.userOptions.show && Ke.value && (i(fe) || i(W)) ? (a(), U(i(Ye), {
394
+ ref: "details",
395
+ key: `user_options_${ne.value}`,
396
+ backgroundColor: l.value.style.backgroundColor,
397
+ color: l.value.style.color,
398
+ isPrinting: i(ge),
399
+ isImaging: i(ye),
400
+ uid: B.value,
401
+ hasPdf: l.value.userOptions.buttons.pdf,
402
+ hasImg: l.value.userOptions.buttons.img,
403
+ hasSvg: l.value.userOptions.buttons.svg,
404
+ hasFullscreen: l.value.userOptions.buttons.img,
405
+ hasXls: !1,
406
+ isFullscreen: j.value,
407
+ titles: { ...l.value.userOptions.buttonTitles },
408
+ chartElement: L.value,
409
+ position: l.value.userOptions.position,
410
+ hasAnnotator: l.value.userOptions.buttons.annotator,
411
+ isAnnotation: N.value,
412
+ callbacks: l.value.userOptions.callbacks,
413
+ printScale: l.value.userOptions.print.scale,
414
+ onToggleFullscreen: Le,
415
+ onGeneratePdf: i(he),
416
+ onGenerateImage: i(me),
417
+ onGenerateSvg: Pe,
418
+ onToggleAnnotator: J,
419
+ style: I({
420
+ visibility: i(fe) ? i(W) ? "visible" : "hidden" : "visible"
421
+ })
422
+ }, $t({ _: 2 }, [
423
+ e.$slots.menuIcon ? {
424
+ name: "menuIcon",
425
+ fn: h(({ isOpen: t, color: o }) => [
426
+ v(e.$slots, "menuIcon", w(C({ isOpen: t, color: o })), void 0, !0)
427
+ ]),
428
+ key: "0"
429
+ } : void 0,
430
+ e.$slots.optionPdf ? {
431
+ name: "optionPdf",
432
+ fn: h(() => [
433
+ v(e.$slots, "optionPdf", {}, void 0, !0)
434
+ ]),
435
+ key: "1"
436
+ } : void 0,
437
+ e.$slots.optionImg ? {
438
+ name: "optionImg",
439
+ fn: h(() => [
440
+ v(e.$slots, "optionImg", {}, void 0, !0)
441
+ ]),
442
+ key: "2"
443
+ } : void 0,
444
+ e.$slots.optionSvg ? {
445
+ name: "optionSvg",
446
+ fn: h(() => [
447
+ v(e.$slots, "optionSvg", {}, void 0, !0)
448
+ ]),
449
+ key: "3"
450
+ } : void 0,
451
+ e.$slots.optionFullscreen ? {
452
+ name: "optionFullscreen",
453
+ fn: h(({ toggleFullscreen: t, isFullscreen: o }) => [
454
+ v(e.$slots, "optionFullscreen", w(C({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
455
+ ]),
456
+ key: "4"
457
+ } : void 0,
458
+ e.$slots.optionAnnotator ? {
459
+ name: "optionAnnotator",
460
+ fn: h(({ toggleAnnotator: t, isAnnotator: o }) => [
461
+ v(e.$slots, "optionAnnotator", w(C({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
462
+ ]),
463
+ key: "5"
464
+ } : void 0
465
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
466
+ (a(), n("svg", {
467
+ ref_key: "svgRef",
468
+ ref: F,
469
+ xmlns: i(Mt),
470
+ class: te([{ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }, "relation-circle"]),
471
+ viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
472
+ width: "100%",
473
+ style: "user-select:none; background:transparent"
474
+ }, [
475
+ _t(i(Xe)),
476
+ e.$slots["chart-background"] ? (a(), n("foreignObject", {
477
+ key: 0,
478
+ x: 0,
479
+ y: 0,
480
+ width: r.value.width <= 0 ? 10 : r.value.width,
481
+ height: r.value.height <= 0 ? 10 : r.value.height,
482
+ style: {
483
+ pointerEvents: "none"
484
+ }
485
+ }, [
486
+ v(e.$slots, "chart-background", {}, void 0, !0)
487
+ ], 8, Jt)) : g("", !0),
488
+ Lt("circle", {
489
+ cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
490
+ cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
491
+ r: z.value <= 0 ? 1e-4 : z.value,
492
+ stroke: l.value.style.circle.stroke,
493
+ "stroke-width": l.value.style.circle.strokeWidth,
494
+ fill: "transparent",
495
+ class: "main-circle"
496
+ }, null, 8, Kt),
497
+ tt.value ? (a(), n("g", Qt, [
498
+ (a(!0), n(_, null, M(p.value, (t, o) => (a(), n("path", {
499
+ key: `relation_${o}`,
500
+ style: I(Ae(t)),
501
+ stroke: $(t),
502
+ class: te(["relation", { "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && k.value.includes(t.id) }]),
503
+ d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${r.value.width / 2},${r.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
504
+ fill: "none",
505
+ "stroke-width": H(t),
506
+ "stroke-linecap": "round"
507
+ }, null, 14, Zt))), 128)),
508
+ (a(!0), n(_, null, M(p.value, (t, o) => (a(), n("g", el, [
509
+ S(t) ? v(e.$slots, "dataLabel", Oe({
510
+ key: 0,
511
+ ref_for: !0
512
+ }, {
513
+ x: t.midPointBezier.x,
514
+ y: t.midPointBezier.y,
515
+ color: $(t),
516
+ weight: t.weight,
517
+ fontSize: b.value
518
+ }), void 0, !0) : g("", !0),
519
+ S(t) && !e.$slots.dataLabel ? (a(), n("circle", {
520
+ key: 1,
521
+ cx: t.midPointBezier.x,
522
+ cy: t.midPointBezier.y,
523
+ fill: $(t),
524
+ r: b.value,
525
+ stroke: l.value.style.backgroundColor,
526
+ "stroke-width": "1"
527
+ }, null, 8, tl)) : g("", !0),
528
+ S(t) && !e.$slots.dataLabel ? (a(), n("text", {
529
+ key: 2,
530
+ x: t.midPointBezier.x,
531
+ y: t.midPointBezier.y + b.value / 3,
532
+ fill: i(Ee)($(t)),
533
+ "text-anchor": "middle",
534
+ "font-size": b.value
535
+ }, V(i(le)(
536
+ l.value.style.weightLabels.formatter,
537
+ t.weight,
538
+ i(se)({
539
+ p: l.value.style.weightLabels.prefix,
540
+ v: t.weight,
541
+ s: l.value.style.weightLabels.suffix,
542
+ r: l.value.style.weightLabels.rounding
543
+ }),
544
+ { ...t }
545
+ )), 9, ll)) : g("", !0)
546
+ ]))), 256))
547
+ ])) : (a(), n("g", sl, [
548
+ (a(!0), n(_, null, M(p.value, (t, o) => (a(), n("line", {
549
+ key: `relation_${o}`,
550
+ stroke: $(t),
551
+ "stroke-width": H(t),
552
+ style: I(Ae(t)),
553
+ x1: t.x1,
554
+ x2: t.x2,
555
+ y1: t.y1,
556
+ y2: t.y2,
557
+ class: te({ "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && k.value.includes(t.id) }),
558
+ "stroke-linecap": "round"
559
+ }, null, 14, ol))), 128)),
560
+ (a(!0), n(_, null, M(p.value, (t, o) => (a(), n("g", al, [
561
+ S(t) ? v(e.$slots, "dataLabel", Oe({
562
+ key: 0,
563
+ ref_for: !0
564
+ }, {
565
+ x: t.midPointLine.x,
566
+ y: t.midPointLine.y,
567
+ color: $(t),
568
+ weight: t.weight,
569
+ fontSize: b.value
570
+ }), void 0, !0) : g("", !0),
571
+ S(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (a(), n("circle", {
572
+ key: 1,
573
+ cx: t.midPointLine.x,
574
+ cy: t.midPointLine.y,
575
+ fill: $(t),
576
+ r: b.value,
577
+ stroke: l.value.style.backgroundColor,
578
+ "stroke-width": "1"
579
+ }, null, 8, nl)) : g("", !0),
580
+ S(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (a(), n("text", {
581
+ key: 2,
582
+ x: t.midPointLine.x,
583
+ y: t.midPointLine.y + b.value / 3,
584
+ fill: i(Ee)($(t)),
585
+ "text-anchor": "middle",
586
+ "font-size": b.value
587
+ }, V(i(le)(
588
+ l.value.style.weightLabels.formatter,
589
+ t.weight,
590
+ i(se)({
591
+ p: l.value.style.weightLabels.prefix,
592
+ v: t.weight,
593
+ s: l.value.style.weightLabels.suffix,
594
+ r: l.value.style.weightLabels.rounding
595
+ }),
596
+ { ...t }
597
+ )), 9, il)) : g("", !0)
598
+ ]))), 256))
599
+ ])),
600
+ (a(!0), n(_, null, M(A.value, (t, o) => (a(), n("text", {
601
+ key: `plot_text_${o}`,
602
+ "text-anchor": ut(t),
603
+ transform: vt(t),
604
+ x: ct(t),
605
+ y: t.y + 5,
606
+ class: "vue-ui-relation-circle-legend",
607
+ "transform-origin": "start",
608
+ "font-weight": f.value.id === t.id ? "900" : "400",
609
+ style: I(`font-family:${l.value.style.fontFamily};${dt(t)}`),
610
+ "font-size": E.value,
611
+ fill: l.value.style.labels.color,
612
+ "text-decoration": o === R.value ? "underline" : void 0,
613
+ onClick: (c) => _e(t, o),
614
+ onMouseenter: (c) => xe(t, o),
615
+ onMouseleave: (c) => $e(t, o)
616
+ }, [
617
+ i(de) ? (a(), n(_, { key: 0 }, [
618
+ Se(" -------- ")
619
+ ], 64)) : (a(), n(_, { key: 1 }, [
620
+ Se(V(t.label) + " (" + V(i(le)(
621
+ l.value.style.weightLabels.formatter,
622
+ t.totalWeight,
623
+ i(se)({
624
+ p: l.value.style.weightLabels.prefix,
625
+ v: t.totalWeight,
626
+ s: l.value.style.weightLabels.suffix,
627
+ r: l.value.style.weightLabels.rounding
628
+ }),
629
+ { ...t }
630
+ )) + ") ", 1)
631
+ ], 64))
632
+ ], 44, rl))), 128)),
633
+ (a(!0), n(_, null, M(A.value, (t, o) => (a(), n("circle", {
634
+ cx: t.x,
635
+ cy: t.y,
636
+ key: `plot_${o}`,
637
+ style: I(`${rt(t)}; transition: r 0.2s ease-in-out;`),
638
+ class: "vue-ui-relation-circle-plot",
639
+ fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
640
+ stroke: l.value.style.backgroundColor,
641
+ "stroke-width": "1",
642
+ r: D.value * (o === R.value ? 2 : 1),
643
+ onClick: (c) => _e(t, o),
644
+ onMouseenter: (c) => xe(t, o),
645
+ onMouseleave: (c) => $e(t, o)
646
+ }, null, 44, ul))), 128)),
647
+ v(e.$slots, "svg", { svg: r.value }, void 0, !0)
648
+ ], 10, Ht)),
649
+ e.$slots.watermark ? (a(), n("div", cl, [
650
+ v(e.$slots, "watermark", w(C({ isPrinting: i(ge) || i(ye) })), void 0, !0)
651
+ ])) : g("", !0),
652
+ e.$slots.source ? (a(), n("div", {
653
+ key: 5,
654
+ ref_key: "source",
655
+ ref: re,
656
+ dir: "auto"
657
+ }, [
658
+ v(e.$slots, "source", {}, void 0, !0)
659
+ ], 512)) : g("", !0),
660
+ i(de) ? (a(), U(Dt, { key: 6 })) : g("", !0)
661
+ ], 44, qt));
662
+ }
663
+ }, vl = /* @__PURE__ */ Xt(dl, [["__scopeId", "data-v-f336b6ba"]]), Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
664
+ __proto__: null,
665
+ default: vl
666
+ }, Symbol.toStringTag, { value: "Module" }));
667
+ export {
668
+ Ll as a,
669
+ Pl as b,
670
+ vl as v
671
+ };