vue-data-ui 3.26.4 → 3.27.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 (200) hide show
  1. package/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
  95. package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +212 -60
  103. package/dist/types/vue-ui-stackbar.d.ts +10 -0
  104. package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
  105. package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
  128. package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
  129. package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
  139. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
  140. package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
  143. package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
  144. package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
  147. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
  148. package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
  150. package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
  151. package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
  152. package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
  153. package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
  154. package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
  155. package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
  156. package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
  166. package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
  167. package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
  169. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
  170. package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
  171. package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
  181. package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
  182. package/package.json +1 -1
  183. package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
  184. package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
  185. package/dist/vue-ui-funnel-eVH871L3.js +0 -749
  186. package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
  187. package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
  189. package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
  190. package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
  192. package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
  193. package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
  194. package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
  195. package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
  197. package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
  198. package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
  200. package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
@@ -1,905 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, $t as n, Rt as r, Vt as i, X as a, at as o, en as s, i as c, r as ee, t as te, tn as ne, vt as re, w as ie } from "./lib-DTiqmM1G.js";
3
- import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
4
- import { t as se } from "./useConfig-DObkR9Aa.js";
5
- import { t as ce } from "./usePrinter-R2nu9g4B.js";
6
- import { n as le, t as ue } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as de } from "./useNestedProp-D8cRQaVo.js";
8
- import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as pe } from "./useChartExport-iwOqiIWX.js";
10
- import { t as me } from "./img--C0otIB0.js";
11
- import { n as he } from "./Title-B4UpMerH.js";
12
- import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
14
- import { t as ye } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as be } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as Se } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
18
- import { t as Ce } from "./vue_ui_relation_circle-D0p4mXmv.js";
19
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as we, createTextVNode as Te, createVNode as Ee, defineAsyncComponent as De, 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: () => rt }), 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
- }, rt = /*#__PURE__*/ ge({
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: ge, emit: Ie }) {
116
- Pe((e) => ({
117
- v3a041b84: Nt.value,
118
- v0fe94b63: Mt.value,
119
- v471d47f6: Pt.value
120
- }));
121
- let rt = De(() => import("./PenAndPaper-Dv8WPVwA.js").then((e) => e.t)), it = De(() => import("./UserOptions-C92R4ACT.js").then((e) => e.n)), at = De(() => import("./PackageVersion-DEAYvEjl.js").then((e) => e.t)), { vue_ui_relation_circle: ot } = se(), { isThemeValid: st, warnInvalidTheme: ct } = fe(), T = e, lt = Ie, ut = u(() => !!T.dataset && Object.keys(T.dataset).length), E = y(a()), dt = y(0), D = y(null), ft = y(null), pt = y(null), mt = y(null), ht = y(0), O = y(null), k = y(!1), A = y(Ct()), j = u(() => A.value.userOptions), M = u(() => A.value.style.weightLabels), N = u(() => A.value.style);
122
- ae({
123
- config: () => A.value,
124
- dataset: () => T.dataset,
125
- component: "VueUiRelationCircle",
126
- rules: [oe.noHint]
127
- });
128
- let P = u(() => A.value.userOptions.useCursorPointer), gt = u(() => ne({
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: A.value.skeletonConfig ?? {}
144
- })), { loading: _t, FINAL_DATASET: vt, manualLoading: yt } = le({
145
- ...Ne(T),
146
- FINAL_CONFIG: A,
147
- prepareConfig: Ct,
148
- skeletonDataset: T.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: ne({
193
- defaultConfig: A.value,
194
- userConfig: gt.value
195
- })
196
- }), { userOptionsVisible: bt, setUserOptionsVisibility: xt, keepUserOptionState: St } = be({ config: A.value }), { svgRef: F } = xe({ config: N.value.title });
197
- function Ct() {
198
- let e = de({
199
- userConfig: T.config,
200
- defaultConfig: ot
201
- }), t = e.theme;
202
- if (!t) return e;
203
- if (!st.value(e)) return ct(e), e;
204
- let r = de({
205
- userConfig: Ce[t] || T.config,
206
- defaultConfig: e
207
- }), a = de({
208
- userConfig: T.config,
209
- defaultConfig: r
210
- });
211
- return {
212
- ...a,
213
- customPalette: a.customPalette.length ? a.customPalette : n[t] || i
214
- };
215
- }
216
- Fe(() => T.config, (e) => {
217
- A.value = Ct(), bt.value = !A.value.userOptions.showOnChartHover, V.value = N.value.size, H.value = M.value.size, U.value = N.value.plot.radius, W.value = N.value.labels.fontSize, G.value.height = N.value.size, G.value.width = N.value.size, It(), ht.value += 1;
218
- }, { deep: !0 }), Fe(() => T.dataset, (e) => {
219
- Array.isArray(e) && e.length > 0 && (yt.value = !1);
220
- }, { deep: !0 });
221
- let { isPrinting: wt, isImaging: Tt, generatePdf: Et, generateImage: Dt } = ce({
222
- elementId: `relation_circle_${E.value}`,
223
- fileName: N.value.title.text || "vue-ui-relation-circle",
224
- options: A.value.userOptions.print
225
- }), Ot = u(() => A.value.userOptions.show && !N.value.title.text), kt = u(() => ie(A.value.customPalette)), I = y([]), L = y([]), R = y({}), z = y([]), At = y(0), B = u(() => vt.value.slice(0, N.value.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(B, () => {
234
- I.value = [], L.value = [], zt(), Vt();
235
- });
236
- let V = y(N.value.size), H = y(M.value.size), U = y(N.value.plot.radius), W = y(N.value.labels.fontSize), G = y({
237
- height: N.value.size,
238
- width: N.value.size
239
- }), K = u({
240
- get() {
241
- return V.value * N.value.circle.radiusProportion;
242
- },
243
- set(e) {
244
- return e;
245
- }
246
- }), jt = u(() => N.value.links.curved), Mt = u(() => `${N.value.animation.speedMs}ms`), Nt = u(() => K.value * 2), Pt = u(() => K.value * 4), q = Me(null), J = Me(null);
247
- je(() => {
248
- It(), document.getElementById(`relation_circle_${E.value}`).addEventListener("click", Rt);
249
- });
250
- let Ft = u(() => A.value.debug);
251
- function It() {
252
- if (r(T.dataset) ? (o({
253
- componentName: "VueUiRelationCircle",
254
- type: "dataset",
255
- debug: Ft.value
256
- }), yt.value = !0) : Ft.value && T.dataset.forEach((e, t) => {
257
- re({
258
- datasetObject: e,
259
- requiredAttributes: [
260
- "id",
261
- "label",
262
- "relations",
263
- "weights"
264
- ]
265
- }).forEach((e) => {
266
- o({
267
- componentName: "VueUiRelationCircle",
268
- type: "datasetSerieAttribute",
269
- property: e,
270
- index: t
271
- });
272
- });
273
- }), r(T.dataset) || (yt.value = A.value.loading), A.value.responsive) {
274
- let e = _e(() => {
275
- let { width: e, height: t } = ve({
276
- chart: D.value,
277
- title: N.value.title.text ? ft.value : null,
278
- source: pt.value,
279
- noTitle: mt.value
280
- });
281
- requestAnimationFrame(() => {
282
- 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 * N.value.circle.radiusProportion, I.value = [], L.value = [], zt(), Vt(), Lt(), A.value.responsiveProportionalSizing ? (H.value = s({
283
- relator: V.value,
284
- adjuster: N.value.size,
285
- source: M.value.size,
286
- threshold: 6,
287
- fallback: 6
288
- }), U.value = s({
289
- relator: V.value,
290
- adjuster: N.value.size,
291
- source: N.value.plot.radius,
292
- threshold: 1,
293
- fallback: 1
294
- }), W.value = s({
295
- relator: V.value,
296
- adjuster: N.value.size,
297
- source: N.value.labels.fontSize,
298
- threshold: 6,
299
- fallback: 6
300
- })) : (H.value = M.value.size, U.value = N.value.plot.radius, W.value = N.value.labels.fontSize);
301
- });
302
- });
303
- q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = D.value.parentNode, q.value.observe(J.value);
304
- } else I.value = [], L.value = [], zt(), Vt();
305
- Lt();
306
- }
307
- Ae(() => {
308
- document.getElementById(`relation_circle_${E.value}`).removeEventListener("click", Rt), q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
309
- });
310
- let { autoSizeLabels: Lt } = Se({
311
- svgRef: F,
312
- fontSize: N.value.labels.fontSize,
313
- minFontSize: N.value.labels.minFontSize,
314
- sizeRef: W,
315
- labelClass: ".vue-ui-relation-circle-legend"
316
- });
317
- function Rt(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") || (R.value = {}, z.value = []);
320
- }
321
- function zt() {
322
- let e = 6.28319 / B.value.length, t = 360 / B.value.length, n = 0, r = 0;
323
- B.value.forEach((a, o) => {
324
- let s = a.weights.reduce((e, t) => e + t, 0), c = K.value * Math.cos(n) + G.value.width / 2, ee = K.value * Math.sin(n) + G.value.height / 2 + N.value.circle.offsetY;
325
- I.value.push({
326
- x: c,
327
- y: ee,
328
- ...a,
329
- color: a.color ? a.color : kt.value[o] ? kt.value[o] : i[o],
330
- regAngle: r,
331
- totalWeight: s
332
- }), n += e, r += t;
333
- });
334
- }
335
- function Bt(e, t) {
336
- return {
337
- x: (e.x + t.x) / 2,
338
- y: (e.y + t.y) / 2
339
- };
340
- }
341
- function Vt() {
342
- L.value = [], I.value.forEach((e) => {
343
- I.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
344
- let r = t.relations.indexOf(e.id);
345
- L.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: Bt({
355
- x: e.x,
356
- y: e.y
357
- }, {
358
- x: t.x,
359
- y: t.y
360
- }),
361
- midPointBezier: Ht({
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 Ht(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: G.value.width / 2,
384
- y: G.value.height / 2 + N.value.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 Ut = u(() => Math.max(...L.value.map((e) => e.weight)));
392
- function Wt(e) {
393
- return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
394
- }
395
- function Y(e) {
396
- return e.colorSource;
397
- }
398
- function Gt(e) {
399
- 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";
400
- }
401
- function X(e) {
402
- 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;
403
- }
404
- function Kt(e) {
405
- return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
406
- }
407
- function qt(e) {
408
- return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
409
- }
410
- function Jt(e) {
411
- return Object.hasOwn(R.value, "x") ? R.value.id === e.id || z.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
412
- }
413
- function Yt(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 Z = y(null);
417
- function Xt(e, t) {
418
- Z.value = t, O.value = t, A.value.events.datapointEnter && A.value.events.datapointEnter({
419
- datapoint: e,
420
- seriesIndex: t
421
- });
422
- }
423
- function Zt(e, t) {
424
- Z.value = null, k.value || (O.value = null), A.value.events.datapointLeave && A.value.events.datapointLeave({
425
- datapoint: e,
426
- seriesIndex: t
427
- });
428
- }
429
- function Qt(e, t) {
430
- e && (A.value.events.datapointClick && A.value.events.datapointClick({
431
- datapoint: e,
432
- seriesIndex: t
433
- }), At.value = 360 - e.regAngle, R.value.id && e.id === R.value.id ? (R.value = {}, z.value = []) : (R.value = e, z.value = [...e.relations]));
434
- }
435
- function $t(e, t) {
436
- O.value = t, Qt(e, t);
437
- }
438
- function en(e) {
439
- let t = e.weight / Ut.value * N.value.links.maxWidth;
440
- return Math.max(.3, t);
441
- }
442
- let Q = y(!1);
443
- function tn(e) {
444
- Q.value = e, dt.value += 1;
445
- }
446
- let $ = y(!1);
447
- function nn() {
448
- $.value = !$.value;
449
- }
450
- async function rn({ scale: e = 2 } = {}) {
451
- if (!D.value) return;
452
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
453
- domElement: D.value,
454
- base64: !0,
455
- img: !0,
456
- scale: e
457
- });
458
- return {
459
- imageUri: i,
460
- base64: a,
461
- title: N.value.title.text,
462
- width: t,
463
- height: n,
464
- aspectRatio: r
465
- };
466
- }
467
- let an = u(() => N.value.backgroundColor), on = u(() => N.value.title), { isCallbackImaging: sn, isCallbackSvg: cn, generateSvg: ln, onGenerateImage: un } = pe({
468
- svg: F,
469
- title: on,
470
- legend: null,
471
- legendItems: null,
472
- backgroundColor: an,
473
- getSvgCallback: () => A.value.userOptions.callbacks.svg,
474
- generateImage: Dt
475
- });
476
- async function dn() {
477
- if (lt("copyAlt", {
478
- config: A.value,
479
- dataset: B.value
480
- }), !A.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(A.value.userOptions.callbacks.altCopy({
485
- config: A.value,
486
- dataset: B.value
487
- }));
488
- }
489
- function fn() {
490
- k.value = !0, I.value.length && O.value === null && (O.value = 0);
491
- }
492
- function pn() {
493
- k.value = !1, O.value = null;
494
- }
495
- function mn(e) {
496
- if (!F.value || $.value || document.activeElement !== F.value || !I.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
- O.value = null, R.value = {}, z.value = [];
501
- return;
502
- }
503
- if (r) {
504
- if (O.value === null) return;
505
- let e = I.value[O.value];
506
- if (!e) return;
507
- Qt(e, O.value);
508
- return;
509
- }
510
- let a = O.value;
511
- 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)), O.value = a, Z.value = a;
512
- let o = I.value[a];
513
- o && A.value.events.datapointEnter && A.value.events.datapointEnter({
514
- datapoint: o,
515
- seriesIndex: a
516
- });
517
- }
518
- let hn = u(() => ({
519
- headers: [
520
- "ID",
521
- "Label",
522
- "Total weight",
523
- "Relations count",
524
- "Relations"
525
- ],
526
- rows: B.value.map((e) => {
527
- 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);
528
- return [
529
- e.id,
530
- e.label,
531
- n,
532
- e.relations.length,
533
- t
534
- ];
535
- })
536
- }));
537
- return ge({
538
- getImage: rn,
539
- generatePdf: Et,
540
- generateSvg: ln,
541
- generateImage: Dt,
542
- toggleAnnotator: nn,
543
- toggleFullscreen: tn,
544
- copyAlt: dn
545
- }), (e, n) => (v(), p("div", {
546
- ref_key: "relationCircleChart",
547
- ref: D,
548
- class: "vue-data-ui-component vue-ui-relation-circle",
549
- style: _(`width:100%;background:${N.value.backgroundColor};text-align:center;${A.value.responsive ? "height: 100%" : ""}`),
550
- id: `relation_circle_${E.value}`,
551
- onMouseenter: n[0] ||= () => C(xt)(!0),
552
- onMouseleave: n[1] ||= () => C(xt)(!1)
553
- }, [
554
- m("div", {
555
- id: `chart-instructions-${E.value}`,
556
- class: "sr-only"
557
- }, [m("p", null, S(A.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
558
- hn.value?.rows?.length ? (v(), d(ye, {
559
- key: 0,
560
- uid: E.value,
561
- head: hn.value.headers,
562
- body: hn.value.rows,
563
- notice: A.value.a11y.translations.tableAvailable,
564
- caption: A.value.a11y.translations.tableCaption
565
- }, null, 8, [
566
- "uid",
567
- "head",
568
- "body",
569
- "notice",
570
- "caption"
571
- ])) : f("", !0),
572
- j.value.buttons.annotator ? (v(), d(C(rt), {
573
- key: 1,
574
- svgRef: C(F),
575
- backgroundColor: N.value.backgroundColor,
576
- color: N.value.color,
577
- active: $.value,
578
- isCursorPointer: P.value,
579
- palette: j.value.annotatorPalette,
580
- onClose: nn
581
- }, {
582
- "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
583
- "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
584
- "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
585
- "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
586
- "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
587
- "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
588
- _: 3
589
- }, 8, [
590
- "svgRef",
591
- "backgroundColor",
592
- "color",
593
- "active",
594
- "isCursorPointer",
595
- "palette"
596
- ])) : f("", !0),
597
- Ot.value ? (v(), p("div", {
598
- key: 2,
599
- ref_key: "noTitle",
600
- ref: mt,
601
- class: "vue-data-ui-no-title-space",
602
- style: "height:36px; width: 100%;background:transparent"
603
- }, null, 512)) : f("", !0),
604
- N.value.title.text ? (v(), p("div", {
605
- key: 3,
606
- ref_key: "chartTitle",
607
- ref: ft,
608
- style: "width:100%;background:transparent"
609
- }, [(v(), d(he, {
610
- key: `title_${ht.value}`,
611
- config: {
612
- title: {
613
- cy: "relation-div-title",
614
- ...N.value.title
615
- },
616
- subtitle: {
617
- cy: "relation-div-subtitle",
618
- ...N.value.title.subtitle
619
- }
620
- }
621
- }, null, 8, ["config"]))], 512)) : f("", !0),
622
- j.value.show && ut.value && (C(St) || C(bt)) ? (v(), d(C(it), {
623
- ref: "details",
624
- key: `user_options_${dt.value}`,
625
- backgroundColor: N.value.backgroundColor,
626
- color: N.value.color,
627
- isPrinting: C(wt),
628
- isImaging: C(Tt),
629
- uid: E.value,
630
- hasPdf: j.value.buttons.pdf,
631
- hasImg: j.value.buttons.img,
632
- hasSvg: j.value.buttons.svg,
633
- hasFullscreen: j.value.buttons.fullscreen,
634
- hasAltCopy: j.value.buttons.altCopy,
635
- hasXls: !1,
636
- isFullscreen: Q.value,
637
- titles: { ...j.value.buttonTitles },
638
- chartElement: D.value,
639
- position: j.value.position,
640
- hasAnnotator: j.value.buttons.annotator,
641
- isAnnotation: $.value,
642
- callbacks: j.value.callbacks,
643
- printScale: j.value.print.scale,
644
- isCursorPointer: P.value,
645
- onToggleFullscreen: tn,
646
- onGeneratePdf: C(Et),
647
- onGenerateImage: C(un),
648
- onGenerateSvg: C(ln),
649
- onToggleAnnotator: nn,
650
- onCopyAlt: dn,
651
- style: _({ visibility: C(St) ? C(bt) ? "visible" : "hidden" : "visible" })
652
- }, we({ _: 2 }, [
653
- e.$slots.menuIcon ? {
654
- name: "menuIcon",
655
- fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
656
- isOpen: t,
657
- color: n
658
- })), void 0, !0)]),
659
- key: "0"
660
- } : void 0,
661
- e.$slots.optionPdf ? {
662
- name: "optionPdf",
663
- fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
664
- key: "1"
665
- } : void 0,
666
- e.$slots.optionImg ? {
667
- name: "optionImg",
668
- fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
669
- key: "2"
670
- } : void 0,
671
- e.$slots.optionSvg ? {
672
- name: "optionSvg",
673
- fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
674
- key: "3"
675
- } : void 0,
676
- e.$slots.optionFullscreen ? {
677
- name: "optionFullscreen",
678
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
679
- toggleFullscreen: t,
680
- isFullscreen: n
681
- })), void 0, !0)]),
682
- key: "4"
683
- } : void 0,
684
- e.$slots.optionAnnotator ? {
685
- name: "optionAnnotator",
686
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
687
- toggleAnnotator: t,
688
- isAnnotator: n
689
- })), void 0, !0)]),
690
- key: "5"
691
- } : void 0,
692
- e.$slots.optionAltCopy ? {
693
- name: "optionAltCopy",
694
- fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
695
- key: "6"
696
- } : void 0,
697
- e.$slots["custom-menu-before"] ? {
698
- name: "custom-menu-before",
699
- fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
700
- key: "7"
701
- } : void 0,
702
- e.$slots["custom-menu-after"] ? {
703
- name: "custom-menu-after",
704
- fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
705
- key: "8"
706
- } : void 0
707
- ]), 1032, [
708
- "backgroundColor",
709
- "color",
710
- "isPrinting",
711
- "isImaging",
712
- "uid",
713
- "hasPdf",
714
- "hasImg",
715
- "hasSvg",
716
- "hasFullscreen",
717
- "hasAltCopy",
718
- "isFullscreen",
719
- "titles",
720
- "chartElement",
721
- "position",
722
- "hasAnnotator",
723
- "isAnnotation",
724
- "callbacks",
725
- "printScale",
726
- "isCursorPointer",
727
- "onGeneratePdf",
728
- "onGenerateImage",
729
- "onGenerateSvg",
730
- "style"
731
- ])) : f("", !0),
732
- m("div", ze, [(v(), p("svg", {
733
- ref_key: "svgRef",
734
- ref: F,
735
- xmlns: C(te),
736
- class: ke([{
737
- "vue-data-ui-fullscreen--on": Q.value,
738
- "vue-data-ui-fulscreen--off": !Q.value
739
- }, "relation-circle"]),
740
- viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
741
- width: "100%",
742
- style: "user-select:none; background:transparent",
743
- "aria-describedby": `chart-instructions-${E.value}`,
744
- tabindex: "0",
745
- onFocus: fn,
746
- onBlur: pn,
747
- onKeydown: mn
748
- }, [
749
- Ee(C(at)),
750
- e.$slots["chart-background"] ? (v(), p("foreignObject", {
751
- key: 0,
752
- x: 0,
753
- y: 0,
754
- width: G.value.width <= 0 ? 10 : G.value.width,
755
- height: G.value.height <= 0 ? 10 : G.value.height,
756
- style: { pointerEvents: "none" }
757
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : f("", !0),
758
- m("circle", {
759
- cx: (G.value.width <= 0 ? 1e-4 : G.value.width) / 2,
760
- cy: (G.value.height <= 0 ? 1e-4 : G.value.height) / 2 + N.value.circle.offsetY,
761
- r: K.value <= 0 ? 1e-4 : K.value,
762
- stroke: N.value.circle.stroke,
763
- "stroke-width": N.value.circle.strokeWidth,
764
- fill: "transparent",
765
- class: "main-circle"
766
- }, null, 8, He),
767
- jt.value ? (v(), p("g", Ue, [(v(!0), p(l, null, b(L.value, (e, t) => (v(), p("path", {
768
- key: `relation_${t}`,
769
- style: _(Gt(e)),
770
- stroke: Y(e),
771
- class: ke(["relation", { "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }]),
772
- d: `M${e.x1},${e.y1} C${e.x1},${e.y1} ${G.value.width / 2},${G.value.height / 2 + N.value.circle.offsetY} ${e.x2},${e.y2}`,
773
- fill: "none",
774
- "stroke-width": en(e),
775
- "stroke-linecap": "round"
776
- }, null, 14, We))), 128)), (v(!0), p(l, null, b(L.value, (n, r) => (v(), p("g", Ge, [
777
- X(n) ? x(e.$slots, "dataLabel", Oe({ ref_for: !0 }, {
778
- x: n.midPointBezier.x,
779
- y: n.midPointBezier.y,
780
- color: Y(n),
781
- weight: n.weight,
782
- fontSize: H.value
783
- }), void 0, !0, 0) : f("", !0),
784
- X(n) && !e.$slots.dataLabel ? (v(), p("circle", {
785
- key: 1,
786
- cx: n.midPointBezier.x,
787
- cy: n.midPointBezier.y,
788
- fill: Y(n),
789
- r: H.value,
790
- stroke: N.value.backgroundColor,
791
- "stroke-width": "1"
792
- }, null, 8, Ke)) : f("", !0),
793
- X(n) && !e.$slots.dataLabel ? (v(), p("text", {
794
- key: 2,
795
- x: n.midPointBezier.x,
796
- y: n.midPointBezier.y + H.value / 3,
797
- fill: C(ee)(Y(n)),
798
- "text-anchor": "middle",
799
- "font-size": H.value
800
- }, S(C(c)(M.value.formatter, n.weight, C(t)({
801
- p: M.value.prefix,
802
- v: n.weight,
803
- s: M.value.suffix,
804
- r: M.value.rounding
805
- }), { ...n })), 9, qe)) : f("", !0)
806
- ]))), 256))])) : (v(), p("g", Je, [(v(!0), p(l, null, b(L.value, (e, t) => (v(), p("line", {
807
- key: `relation_${t}`,
808
- stroke: Y(e),
809
- "stroke-width": en(e),
810
- style: _(Gt(e)),
811
- x1: e.x1,
812
- x2: e.x2,
813
- y1: e.y1,
814
- y2: e.y2,
815
- class: ke({ "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }),
816
- "stroke-linecap": "round"
817
- }, null, 14, Ye))), 128)), (v(!0), p(l, null, b(L.value, (n, r) => (v(), p("g", Xe, [
818
- X(n) ? x(e.$slots, "dataLabel", Oe({ ref_for: !0 }, {
819
- x: n.midPointLine.x,
820
- y: n.midPointLine.y,
821
- color: Y(n),
822
- weight: n.weight,
823
- fontSize: H.value
824
- }), void 0, !0, 0) : f("", !0),
825
- X(n) && !e.$slots.dataLabel && M.value.show ? (v(), p("circle", {
826
- key: 1,
827
- cx: n.midPointLine.x,
828
- cy: n.midPointLine.y,
829
- fill: Y(n),
830
- r: H.value,
831
- stroke: N.value.backgroundColor,
832
- "stroke-width": "1"
833
- }, null, 8, Ze)) : f("", !0),
834
- X(n) && !e.$slots.dataLabel && M.value.show ? (v(), p("text", {
835
- key: 2,
836
- x: n.midPointLine.x,
837
- y: n.midPointLine.y + H.value / 3,
838
- fill: C(ee)(Y(n)),
839
- "text-anchor": "middle",
840
- "font-size": H.value
841
- }, S(C(c)(M.value.formatter, n.weight, C(t)({
842
- p: M.value.prefix,
843
- v: n.weight,
844
- s: M.value.suffix,
845
- r: M.value.rounding
846
- }), { ...n })), 9, Qe)) : f("", !0)
847
- ]))), 256))])),
848
- (v(!0), p(l, null, b(I.value, (e, n) => (v(), p("text", {
849
- key: `plot_text_${n}`,
850
- "text-anchor": Kt(e),
851
- transform: Yt(e),
852
- x: qt(e),
853
- y: e.y + 5,
854
- class: "vue-ui-relation-circle-legend",
855
- "transform-origin": "start",
856
- "font-weight": R.value.id === e.id ? "900" : "400",
857
- style: _(`font-family:${N.value.fontFamily};${Jt(e)};cursor:${P.value ? "pointer" : "default"}`),
858
- "font-size": W.value,
859
- fill: N.value.labels.color,
860
- "text-decoration": n === Z.value || n === O.value ? "underline" : void 0,
861
- onClick: (t) => $t(e, n),
862
- onMouseenter: (t) => Xt(e, n),
863
- onMouseleave: (t) => Zt(e, n)
864
- }, [C(_t) ? (v(), p(l, { key: 0 }, [Te("--------")], 64)) : (v(), p(l, { key: 1 }, [Te(S(e.label) + " (" + S(C(c)(M.value.formatter, e.totalWeight, C(t)({
865
- p: M.value.prefix,
866
- v: e.totalWeight,
867
- s: M.value.suffix,
868
- r: M.value.rounding
869
- }), { ...e })) + ") ", 1)], 64))], 44, $e))), 128)),
870
- (v(!0), p(l, null, b(I.value, (e, t) => (v(), p("circle", {
871
- cx: e.x,
872
- cy: e.y,
873
- key: `plot_${t}`,
874
- style: _(`${Wt(e)}; transition: r 0.2s ease-in-out; cursor:${P.value ? "pointer" : "default"}`),
875
- class: "vue-ui-relation-circle-plot",
876
- fill: N.value.plot.useSerieColor ? e.color : N.value.plot.color,
877
- stroke: N.value.backgroundColor,
878
- "stroke-width": "1",
879
- r: U.value * (t === Z.value || t === O.value ? 2 : 1),
880
- onClick: (n) => $t(e, t),
881
- onMouseenter: (n) => Xt(e, t),
882
- onMouseleave: (n) => Zt(e, t)
883
- }, null, 44, et))), 128)),
884
- x(e.$slots, "svg", { svg: {
885
- ...G.value,
886
- isPrintingImg: C(wt) || C(Tt) || C(sn),
887
- isPrintingSvg: C(cn)
888
- } }, void 0, !0)
889
- ], 42, Be)), e.$slots.hint ? (v(), p("div", tt, [x(e.$slots, "hint", g(h({
890
- hint: A.value.a11y.translations.keyboardNavigation,
891
- isVisible: k.value
892
- })), void 0, !0)])) : f("", !0)]),
893
- e.$slots.watermark ? (v(), p("div", nt, [x(e.$slots, "watermark", g(h({ isPrinting: C(wt) || C(Tt) || C(sn) || C(cn) })), void 0, !0)])) : f("", !0),
894
- e.$slots.source ? (v(), p("div", {
895
- key: 6,
896
- ref_key: "source",
897
- ref: pt,
898
- dir: "auto"
899
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
900
- x(e.$slots, "skeleton", {}, () => [C(_t) ? (v(), d(ue, { key: 0 })) : f("", !0)], !0)
901
- ], 44, Le));
902
- }
903
- }, [["__scopeId", "data-v-49dbbf69"]]);
904
- //#endregion
905
- export { Ie as n, rt as t };