vue-data-ui 3.22.13 → 3.23.0

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