vue-data-ui 3.22.3 → 3.22.4

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 (202) hide show
  1. package/dist/{Arrow-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
  11. package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.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-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
  93. package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
  94. package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +59 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
  111. package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
  113. package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
  115. package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
  116. package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
  118. package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
  119. package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
  121. package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
  122. package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
  123. package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
  124. package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
  125. package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
  126. package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
  129. package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
  130. package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
  131. package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
  132. package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
  133. package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
  134. package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
  135. package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
  136. package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
  137. package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
  138. package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
  143. package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
  145. package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
  147. package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
  148. package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
  150. package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
  151. package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
  152. package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
  153. package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
  154. package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
  159. package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
  161. package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
  162. package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
  163. package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
  164. package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
  167. package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
  168. package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
  170. package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
  171. package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
  172. package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
  174. package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
  175. package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
  176. package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
  177. package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend--t7Mbp9Z.js +0 -115
  181. package/dist/Slicer-CpBaahpI.js +0 -1144
  182. package/dist/exposedLib-BkRxoSB9.js +0 -19
  183. package/dist/img-CyjhDDaM.js +0 -74
  184. package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
  185. package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
  186. package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
  187. package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
  188. package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
  189. package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
  190. package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
  191. package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
  192. package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
  194. package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
  195. package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
  196. package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
  197. package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
  199. package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
  200. package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
  201. package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
  202. package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
@@ -1,924 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Et as t, G as n, H as r, Ht as i, Ut as a, Vt as o, X as ee, ct as te, i as ne, kt as re, r as ie, t as ae, x as oe } from "./lib-NmjQazSn.js";
3
- import { t as se } from "./useConfig-Bf_EBbe3.js";
4
- import { t as ce } from "./usePrinter-DRYgV-XS.js";
5
- import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as de } from "./useSvgExport-SVIsDot8.js";
7
- import { t as s } from "./useNestedProp-C9viY7oU.js";
8
- import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as pe } from "./img-CyjhDDaM.js";
10
- import { n as me } from "./Title-Cxgd_JyY.js";
11
- import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { c as ge } from "./canvas-lib-BOP_HS11.js";
13
- import { t as _e } from "./useResponsive-BfnK0KxU.js";
14
- import { t as ve } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as be } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as xe } from "./useAutoSizeLabelsInsideViewbox-DBv7sw1h.js";
18
- import { t as Se } from "./vue_ui_relation_circle-D0p4mXmv.js";
19
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as Ee, guardReactiveProps as m, mergeProps as De, nextTick as Oe, normalizeClass as ke, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as Ae, onMounted as je, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as Me, toDisplayString as x, toRefs as Ne, unref as S, useCssVars as Pe, watch as Fe, withCtx as C } 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__*/ he({
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: he, emit: Ie }) {
116
- Pe((e) => ({
117
- ab5e8c6c: jt.value,
118
- v309156a9: At.value,
119
- v6c0f80cb: Mt.value
120
- }));
121
- let rt = Ee(() => import("./PenAndPaper-DkZYRnrW.js").then((e) => e.t)), it = Ee(() => import("./UserOptions-WIxTs7Xf.js").then((e) => e.n)), at = Ee(() => import("./PackageVersion-D-_GVhxY.js").then((e) => e.t)), { vue_ui_relation_circle: ot } = se(), { isThemeValid: st, warnInvalidTheme: ct } = fe(), w = e, lt = Ie, ut = l(() => !!w.dataset && Object.keys(w.dataset).length), T = v(r()), dt = v(0), E = v(null), ft = v(null), pt = v(null), mt = v(null), ht = v(0), D = v(!1), O = v(!1), k = v(null), A = v(!1), j = v(xt()), M = l(() => j.value.userOptions.useCursorPointer), gt = l(() => a({
122
- defaultConfig: {
123
- userOptions: { show: !1 },
124
- customPalette: Array(7).fill("#CACACA"),
125
- style: {
126
- backgroundColor: "#99999930",
127
- labels: { color: "#6A6A6A" },
128
- circle: { stroke: "#6A6A6A" },
129
- plot: {
130
- color: "#6A6A6A",
131
- useSerieColor: !0
132
- },
133
- links: { maxWidth: 2 }
134
- }
135
- },
136
- userConfig: j.value.skeletonConfig ?? {}
137
- })), { loading: _t, FINAL_DATASET: vt, manualLoading: N } = le({
138
- ...Ne(w),
139
- FINAL_CONFIG: j,
140
- prepareConfig: xt,
141
- skeletonDataset: w.config?.skeletonDataset ?? [
142
- {
143
- id: "A",
144
- label: "_",
145
- relations: [
146
- "B",
147
- "C",
148
- "D",
149
- "E",
150
- "F",
151
- "G"
152
- ]
153
- },
154
- {
155
- id: "B",
156
- label: "_",
157
- relations: ["A"]
158
- },
159
- {
160
- id: "C",
161
- label: "_",
162
- relations: ["A"]
163
- },
164
- {
165
- id: "D",
166
- label: "_",
167
- relations: ["A"]
168
- },
169
- {
170
- id: "E",
171
- label: "_",
172
- relations: ["A"]
173
- },
174
- {
175
- id: "F",
176
- label: "_",
177
- relations: ["A"]
178
- },
179
- {
180
- id: "G",
181
- label: "_",
182
- relations: ["A"]
183
- }
184
- ],
185
- skeletonConfig: a({
186
- defaultConfig: j.value,
187
- userConfig: gt.value
188
- })
189
- }), { userOptionsVisible: P, setUserOptionsVisibility: yt, keepUserOptionState: bt } = ye({ config: j.value }), { svgRef: F } = be({ config: j.value.style.title });
190
- function xt() {
191
- let e = s({
192
- userConfig: w.config,
193
- defaultConfig: ot
194
- }), t = e.theme;
195
- if (!t) return e;
196
- if (!st.value(e)) return ct(e), e;
197
- let n = s({
198
- userConfig: Se[t] || w.config,
199
- defaultConfig: e
200
- }), r = s({
201
- userConfig: w.config,
202
- defaultConfig: n
203
- });
204
- return {
205
- ...r,
206
- customPalette: r.customPalette.length ? r.customPalette : o[t] || re
207
- };
208
- }
209
- Fe(() => w.config, (e) => {
210
- j.value = xt(), P.value = !j.value.userOptions.showOnChartHover, V.value = j.value.style.size, H.value = j.value.style.weightLabels.size, U.value = j.value.style.plot.radius, W.value = j.value.style.labels.fontSize, G.value.height = j.value.style.size, G.value.width = j.value.style.size, Pt(), ht.value += 1;
211
- }, { deep: !0 }), Fe(() => w.dataset, (e) => {
212
- Array.isArray(e) && e.length > 0 && (N.value = !1);
213
- }, { deep: !0 });
214
- let { isPrinting: St, isImaging: Ct, generatePdf: wt, generateImage: Tt } = ce({
215
- elementId: `relation_circle_${T.value}`,
216
- fileName: j.value.style.title.text || "vue-ui-relation-circle",
217
- options: j.value.userOptions.print
218
- }), Et = l(() => j.value.userOptions.show && !j.value.style.title.text), Dt = l(() => oe(j.value.customPalette)), I = v([]), L = v([]), R = v({}), z = v([]), Ot = v(0), B = l(() => vt.value.slice(0, j.value.style.limit).map((e) => {
219
- let t = Array.isArray(e.relations) ? e.relations : [];
220
- return {
221
- ...e,
222
- weights: Array.isArray(e.weights) ? e.weights : Array(t.length).fill(1),
223
- relations: t
224
- };
225
- }));
226
- Fe(B, () => {
227
- I.value = [], L.value = [], Lt(), zt();
228
- });
229
- let V = v(j.value.style.size), H = v(j.value.style.weightLabels.size), U = v(j.value.style.plot.radius), W = v(j.value.style.labels.fontSize), G = v({
230
- height: j.value.style.size,
231
- width: j.value.style.size
232
- }), K = l({
233
- get() {
234
- return V.value * j.value.style.circle.radiusProportion;
235
- },
236
- set(e) {
237
- return e;
238
- }
239
- }), kt = l(() => j.value.style.links.curved), At = l(() => `${j.value.style.animation.speedMs}ms`), jt = l(() => K.value * 2), Mt = l(() => K.value * 4), q = Me(null), J = Me(null);
240
- je(() => {
241
- Pt(), document.getElementById(`relation_circle_${T.value}`).addEventListener("click", It);
242
- });
243
- let Nt = l(() => j.value.debug);
244
- function Pt() {
245
- if (t(w.dataset) ? (ee({
246
- componentName: "VueUiRelationCircle",
247
- type: "dataset",
248
- debug: Nt.value
249
- }), N.value = !0) : w.dataset.forEach((e, t) => {
250
- te({
251
- datasetObject: e,
252
- requiredAttributes: [
253
- "id",
254
- "label",
255
- "relations",
256
- "weights"
257
- ]
258
- }).forEach((e) => {
259
- ee({
260
- componentName: "VueUiRelationCircle",
261
- type: "datasetSerieAttribute",
262
- property: e,
263
- index: t,
264
- debug: Nt.value
265
- });
266
- });
267
- }), t(w.dataset) || (N.value = j.value.loading), j.value.responsive) {
268
- let e = ge(() => {
269
- let { width: e, height: t } = _e({
270
- chart: E.value,
271
- title: j.value.style.title.text ? ft.value : null,
272
- source: pt.value,
273
- noTitle: mt.value
274
- });
275
- requestAnimationFrame(() => {
276
- V.value = Math.min(e, t), G.value.width = Math.max(.1, e), G.value.height = Math.max(.1, t - 12), K.value = V.value * j.value.style.circle.radiusProportion, I.value = [], L.value = [], Lt(), zt(), Ft(), j.value.responsiveProportionalSizing ? (H.value = i({
277
- relator: V.value,
278
- adjuster: j.value.style.size,
279
- source: j.value.style.weightLabels.size,
280
- threshold: 6,
281
- fallback: 6
282
- }), U.value = i({
283
- relator: V.value,
284
- adjuster: j.value.style.size,
285
- source: j.value.style.plot.radius,
286
- threshold: 1,
287
- fallback: 1
288
- }), W.value = i({
289
- relator: V.value,
290
- adjuster: j.value.style.size,
291
- source: j.value.style.labels.fontSize,
292
- threshold: 6,
293
- fallback: 6
294
- })) : (H.value = j.value.style.weightLabels.size, U.value = j.value.style.plot.radius, W.value = j.value.style.labels.fontSize);
295
- });
296
- });
297
- q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = E.value.parentNode, q.value.observe(J.value);
298
- } else I.value = [], L.value = [], Lt(), zt();
299
- Ft();
300
- }
301
- Ae(() => {
302
- document.getElementById(`relation_circle_${T.value}`).removeEventListener("click", It), q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
303
- });
304
- let { autoSizeLabels: Ft } = xe({
305
- svgRef: F,
306
- fontSize: j.value.style.labels.fontSize,
307
- minFontSize: j.value.style.labels.minFontSize,
308
- sizeRef: W,
309
- labelClass: ".vue-ui-relation-circle-legend"
310
- });
311
- function It(e) {
312
- let t = e.target;
313
- 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 = []);
314
- }
315
- function Lt() {
316
- let e = 6.28319 / B.value.length, t = 360 / B.value.length, n = 0, r = 0;
317
- B.value.forEach((i, a) => {
318
- let o = i.weights.reduce((e, t) => e + t, 0), ee = K.value * Math.cos(n) + G.value.width / 2, te = K.value * Math.sin(n) + G.value.height / 2 + j.value.style.circle.offsetY;
319
- I.value.push({
320
- x: ee,
321
- y: te,
322
- ...i,
323
- color: i.color ? i.color : Dt.value[a] ? Dt.value[a] : re[a],
324
- regAngle: r,
325
- totalWeight: o
326
- }), n += e, r += t;
327
- });
328
- }
329
- function Rt(e, t) {
330
- return {
331
- x: (e.x + t.x) / 2,
332
- y: (e.y + t.y) / 2
333
- };
334
- }
335
- function zt() {
336
- L.value = [], I.value.forEach((e) => {
337
- I.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
338
- let r = t.relations.indexOf(e.id);
339
- L.value.push({
340
- weight: t.weights[r] ? t.weights[r] : 0,
341
- relationId: `${e.id}_${t.id}`,
342
- x1: e.x,
343
- y1: e.y,
344
- x2: t.x,
345
- y2: t.y,
346
- colorSource: e.color,
347
- colorTarget: t.color,
348
- midPointLine: Rt({
349
- x: e.x,
350
- y: e.y
351
- }, {
352
- x: t.x,
353
- y: t.y
354
- }),
355
- midPointBezier: Bt({
356
- x1: e.x,
357
- x2: t.x,
358
- y1: e.y,
359
- y2: t.y
360
- }),
361
- ...e
362
- });
363
- });
364
- });
365
- }
366
- function Bt(e) {
367
- let t = {
368
- x: e.x1,
369
- y: e.y1
370
- }, n = {
371
- x: e.x2,
372
- y: e.y2
373
- }, r = {
374
- x: e.x1,
375
- y: e.y1
376
- }, i = {
377
- x: G.value.width / 2,
378
- y: G.value.height / 2 + j.value.style.circle.offsetY
379
- }, a = .5;
380
- return {
381
- x: (1 - a) ** 3 * t.x + 3 * (1 - a) ** 2 * a * r.x + 3 * (1 - a) * a ** 2 * i.x + a ** 3 * n.x,
382
- y: (1 - a) ** 3 * t.y + 3 * (1 - a) ** 2 * a * r.y + 3 * (1 - a) * a ** 2 * i.y + a ** 3 * n.y
383
- };
384
- }
385
- let Vt = l(() => Math.max(...L.value.map((e) => e.weight)));
386
- function Ht(e) {
387
- return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
388
- }
389
- function Y(e) {
390
- return e.colorSource;
391
- }
392
- function Ut(e) {
393
- 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:${Qt(e)}` : "opacity: 0" : "opacity: 1";
394
- }
395
- function X(e) {
396
- 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;
397
- }
398
- function Wt(e) {
399
- return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
400
- }
401
- function Gt(e) {
402
- return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
403
- }
404
- function Kt(e) {
405
- return Object.hasOwn(R.value, "x") ? R.value.id === e.id || z.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
406
- }
407
- function qt(e) {
408
- return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
409
- }
410
- let Z = v(null);
411
- function Jt(e, t) {
412
- Z.value = t, k.value = t, j.value.events.datapointEnter && j.value.events.datapointEnter({
413
- datapoint: e,
414
- seriesIndex: t
415
- });
416
- }
417
- function Yt(e, t) {
418
- Z.value = null, A.value || (k.value = null), j.value.events.datapointLeave && j.value.events.datapointLeave({
419
- datapoint: e,
420
- seriesIndex: t
421
- });
422
- }
423
- function Xt(e, t) {
424
- e && (j.value.events.datapointClick && j.value.events.datapointClick({
425
- datapoint: e,
426
- seriesIndex: t
427
- }), Ot.value = 360 - e.regAngle, R.value.id && e.id === R.value.id ? (R.value = {}, z.value = []) : (R.value = e, z.value = [...e.relations]));
428
- }
429
- function Zt(e, t) {
430
- k.value = t, Xt(e, t);
431
- }
432
- function Qt(e) {
433
- let t = e.weight / Vt.value * j.value.style.links.maxWidth;
434
- return Math.max(.3, t);
435
- }
436
- let Q = v(!1);
437
- function $t(e) {
438
- Q.value = e, dt.value += 1;
439
- }
440
- let $ = v(!1);
441
- function en() {
442
- $.value = !$.value;
443
- }
444
- async function tn({ scale: e = 2 } = {}) {
445
- if (!E.value) return;
446
- let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
447
- domElement: E.value,
448
- base64: !0,
449
- img: !0,
450
- scale: e
451
- });
452
- return {
453
- imageUri: i,
454
- base64: a,
455
- title: j.value.style.title.text,
456
- width: t,
457
- height: n,
458
- aspectRatio: r
459
- };
460
- }
461
- let nn = l(() => j.value.style.backgroundColor), { exportSvg: rn, getSvg: an } = de({
462
- svg: F,
463
- title: l(() => j.value.style.title),
464
- backgroundColor: nn
465
- });
466
- async function on({ isCb: e }) {
467
- O.value = !0, await Oe();
468
- try {
469
- if (e) {
470
- let { blob: e, url: t, text: n, dataUrl: r } = await an();
471
- await Promise.resolve(j.value.userOptions.callbacks.svg({
472
- blob: e,
473
- url: t,
474
- text: n,
475
- dataUrl: r
476
- }));
477
- } else await Promise.resolve(rn());
478
- } finally {
479
- O.value = !1;
480
- }
481
- }
482
- function sn(e) {
483
- if (e?.stage === "start") {
484
- D.value = !0;
485
- return;
486
- }
487
- if (e?.stage === "end") {
488
- D.value = !1;
489
- return;
490
- }
491
- Tt();
492
- }
493
- async function cn() {
494
- if (lt("copyAlt", {
495
- config: j.value,
496
- dataset: B.value
497
- }), !j.value.userOptions.callbacks.altCopy) {
498
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
499
- return;
500
- }
501
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
502
- config: j.value,
503
- dataset: B.value
504
- }));
505
- }
506
- function ln() {
507
- A.value = !0, I.value.length && k.value === null && (k.value = 0);
508
- }
509
- function un() {
510
- A.value = !1, k.value = null;
511
- }
512
- function dn(e) {
513
- if (!F.value || $.value || document.activeElement !== F.value || !I.value.length) return;
514
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
515
- if (!t && !n && !r && !i) return;
516
- if (e.preventDefault(), e.stopPropagation(), i) {
517
- k.value = null, R.value = {}, z.value = [];
518
- return;
519
- }
520
- if (r) {
521
- if (k.value === null) return;
522
- let e = I.value[k.value];
523
- if (!e) return;
524
- Xt(e, k.value);
525
- return;
526
- }
527
- let a = k.value;
528
- a === null || a < 0 || a >= I.value.length ? a = n ? 0 : I.value.length - 1 : n ? (a += 1, a >= I.value.length && (a = 0)) : t && (--a, a < 0 && (a = I.value.length - 1)), k.value = a, Z.value = a;
529
- let o = I.value[a];
530
- o && j.value.events.datapointEnter && j.value.events.datapointEnter({
531
- datapoint: o,
532
- seriesIndex: a
533
- });
534
- }
535
- let fn = l(() => ({
536
- headers: [
537
- "ID",
538
- "Label",
539
- "Total weight",
540
- "Relations count",
541
- "Relations"
542
- ],
543
- rows: B.value.map((e) => {
544
- 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);
545
- return [
546
- e.id,
547
- e.label,
548
- n,
549
- e.relations.length,
550
- t
551
- ];
552
- })
553
- }));
554
- return he({
555
- getImage: tn,
556
- generatePdf: wt,
557
- generateSvg: on,
558
- generateImage: Tt,
559
- toggleAnnotator: en,
560
- toggleFullscreen: $t,
561
- copyAlt: cn
562
- }), (e, t) => (_(), f("div", {
563
- ref_key: "relationCircleChart",
564
- ref: E,
565
- class: "vue-data-ui-component vue-ui-relation-circle",
566
- style: g(`width:100%;background:${j.value.style.backgroundColor};text-align:center;${j.value.responsive ? "height: 100%" : ""}`),
567
- id: `relation_circle_${T.value}`,
568
- onMouseenter: t[0] ||= () => S(yt)(!0),
569
- onMouseleave: t[1] ||= () => S(yt)(!1)
570
- }, [
571
- p("div", {
572
- id: `chart-instructions-${T.value}`,
573
- class: "sr-only"
574
- }, [p("p", null, x(j.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
575
- fn.value?.rows?.length ? (_(), u(ve, {
576
- key: 0,
577
- uid: T.value,
578
- head: fn.value.headers,
579
- body: fn.value.rows,
580
- notice: j.value.a11y.translations.tableAvailable,
581
- caption: j.value.a11y.translations.tableCaption
582
- }, null, 8, [
583
- "uid",
584
- "head",
585
- "body",
586
- "notice",
587
- "caption"
588
- ])) : d("", !0),
589
- j.value.userOptions.buttons.annotator ? (_(), u(S(rt), {
590
- key: 1,
591
- svgRef: S(F),
592
- backgroundColor: j.value.style.backgroundColor,
593
- color: j.value.style.color,
594
- active: $.value,
595
- isCursorPointer: M.value,
596
- onClose: en
597
- }, {
598
- "annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
599
- "annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", h(m({ color: t })), void 0, !0)]),
600
- "annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", h(m({ mode: t })), void 0, !0)]),
601
- "annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", h(m({ disabled: t })), void 0, !0)]),
602
- "annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", h(m({ disabled: t })), void 0, !0)]),
603
- "annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", h(m({ disabled: t })), void 0, !0)]),
604
- _: 3
605
- }, 8, [
606
- "svgRef",
607
- "backgroundColor",
608
- "color",
609
- "active",
610
- "isCursorPointer"
611
- ])) : d("", !0),
612
- Et.value ? (_(), f("div", {
613
- key: 2,
614
- ref_key: "noTitle",
615
- ref: mt,
616
- class: "vue-data-ui-no-title-space",
617
- style: "height:36px; width: 100%;background:transparent"
618
- }, null, 512)) : d("", !0),
619
- j.value.style.title.text ? (_(), f("div", {
620
- key: 3,
621
- ref_key: "chartTitle",
622
- ref: ft,
623
- style: "width:100%;background:transparent"
624
- }, [(_(), u(me, {
625
- key: `title_${ht.value}`,
626
- config: {
627
- title: {
628
- cy: "relation-div-title",
629
- ...j.value.style.title
630
- },
631
- subtitle: {
632
- cy: "relation-div-subtitle",
633
- ...j.value.style.title.subtitle
634
- }
635
- }
636
- }, null, 8, ["config"]))], 512)) : d("", !0),
637
- j.value.userOptions.show && ut.value && (S(bt) || S(P)) ? (_(), u(S(it), {
638
- ref: "details",
639
- key: `user_options_${dt.value}`,
640
- backgroundColor: j.value.style.backgroundColor,
641
- color: j.value.style.color,
642
- isPrinting: S(St),
643
- isImaging: S(Ct),
644
- uid: T.value,
645
- hasPdf: j.value.userOptions.buttons.pdf,
646
- hasImg: j.value.userOptions.buttons.img,
647
- hasSvg: j.value.userOptions.buttons.svg,
648
- hasFullscreen: j.value.userOptions.buttons.fullscreen,
649
- hasAltCopy: j.value.userOptions.buttons.altCopy,
650
- hasXls: !1,
651
- isFullscreen: Q.value,
652
- titles: { ...j.value.userOptions.buttonTitles },
653
- chartElement: E.value,
654
- position: j.value.userOptions.position,
655
- hasAnnotator: j.value.userOptions.buttons.annotator,
656
- isAnnotation: $.value,
657
- callbacks: j.value.userOptions.callbacks,
658
- printScale: j.value.userOptions.print.scale,
659
- isCursorPointer: M.value,
660
- onToggleFullscreen: $t,
661
- onGeneratePdf: S(wt),
662
- onGenerateImage: sn,
663
- onGenerateSvg: on,
664
- onToggleAnnotator: en,
665
- onCopyAlt: cn,
666
- style: g({ visibility: S(bt) ? S(P) ? "visible" : "hidden" : "visible" })
667
- }, Ce({ _: 2 }, [
668
- e.$slots.menuIcon ? {
669
- name: "menuIcon",
670
- fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", h(m({
671
- isOpen: t,
672
- color: n
673
- })), void 0, !0)]),
674
- key: "0"
675
- } : void 0,
676
- e.$slots.optionPdf ? {
677
- name: "optionPdf",
678
- fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
679
- key: "1"
680
- } : void 0,
681
- e.$slots.optionImg ? {
682
- name: "optionImg",
683
- fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
684
- key: "2"
685
- } : void 0,
686
- e.$slots.optionSvg ? {
687
- name: "optionSvg",
688
- fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
689
- key: "3"
690
- } : void 0,
691
- e.$slots.optionFullscreen ? {
692
- name: "optionFullscreen",
693
- fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", h(m({
694
- toggleFullscreen: t,
695
- isFullscreen: n
696
- })), void 0, !0)]),
697
- key: "4"
698
- } : void 0,
699
- e.$slots.optionAnnotator ? {
700
- name: "optionAnnotator",
701
- fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", h(m({
702
- toggleAnnotator: t,
703
- isAnnotator: n
704
- })), void 0, !0)]),
705
- key: "5"
706
- } : void 0,
707
- e.$slots.optionAltCopy ? {
708
- name: "optionAltCopy",
709
- fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", h(m({ altCopy: t })), void 0, !0)]),
710
- key: "6"
711
- } : void 0,
712
- e.$slots["custom-menu-before"] ? {
713
- name: "custom-menu-before",
714
- fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
715
- key: "7"
716
- } : void 0,
717
- e.$slots["custom-menu-after"] ? {
718
- name: "custom-menu-after",
719
- fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
720
- key: "8"
721
- } : void 0
722
- ]), 1032, [
723
- "backgroundColor",
724
- "color",
725
- "isPrinting",
726
- "isImaging",
727
- "uid",
728
- "hasPdf",
729
- "hasImg",
730
- "hasSvg",
731
- "hasFullscreen",
732
- "hasAltCopy",
733
- "isFullscreen",
734
- "titles",
735
- "chartElement",
736
- "position",
737
- "hasAnnotator",
738
- "isAnnotation",
739
- "callbacks",
740
- "printScale",
741
- "isCursorPointer",
742
- "onGeneratePdf",
743
- "style"
744
- ])) : d("", !0),
745
- p("div", ze, [(_(), f("svg", {
746
- ref_key: "svgRef",
747
- ref: F,
748
- xmlns: S(ae),
749
- class: ke([{
750
- "vue-data-ui-fullscreen--on": Q.value,
751
- "vue-data-ui-fulscreen--off": !Q.value
752
- }, "relation-circle"]),
753
- viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
754
- width: "100%",
755
- style: "user-select:none; background:transparent",
756
- "aria-describedby": `chart-instructions-${T.value}`,
757
- tabindex: "0",
758
- onFocus: ln,
759
- onBlur: un,
760
- onKeydown: dn
761
- }, [
762
- Te(S(at)),
763
- e.$slots["chart-background"] ? (_(), f("foreignObject", {
764
- key: 0,
765
- x: 0,
766
- y: 0,
767
- width: G.value.width <= 0 ? 10 : G.value.width,
768
- height: G.value.height <= 0 ? 10 : G.value.height,
769
- style: { pointerEvents: "none" }
770
- }, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : d("", !0),
771
- p("circle", {
772
- cx: (G.value.width <= 0 ? 1e-4 : G.value.width) / 2,
773
- cy: (G.value.height <= 0 ? 1e-4 : G.value.height) / 2 + j.value.style.circle.offsetY,
774
- r: K.value <= 0 ? 1e-4 : K.value,
775
- stroke: j.value.style.circle.stroke,
776
- "stroke-width": j.value.style.circle.strokeWidth,
777
- fill: "transparent",
778
- class: "main-circle"
779
- }, null, 8, He),
780
- kt.value ? (_(), f("g", Ue, [(_(!0), f(c, null, y(L.value, (e, t) => (_(), f("path", {
781
- key: `relation_${t}`,
782
- style: g(Ut(e)),
783
- stroke: Y(e),
784
- class: ke(["relation", { "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }]),
785
- d: `M${e.x1},${e.y1} C${e.x1},${e.y1} ${G.value.width / 2},${G.value.height / 2 + j.value.style.circle.offsetY} ${e.x2},${e.y2}`,
786
- fill: "none",
787
- "stroke-width": Qt(e),
788
- "stroke-linecap": "round"
789
- }, null, 14, We))), 128)), (_(!0), f(c, null, y(L.value, (t, r) => (_(), f("g", Ge, [
790
- X(t) ? b(e.$slots, "dataLabel", De({
791
- key: 0,
792
- ref_for: !0
793
- }, {
794
- x: t.midPointBezier.x,
795
- y: t.midPointBezier.y,
796
- color: Y(t),
797
- weight: t.weight,
798
- fontSize: H.value
799
- }), void 0, !0) : d("", !0),
800
- X(t) && !e.$slots.dataLabel ? (_(), f("circle", {
801
- key: 1,
802
- cx: t.midPointBezier.x,
803
- cy: t.midPointBezier.y,
804
- fill: Y(t),
805
- r: H.value,
806
- stroke: j.value.style.backgroundColor,
807
- "stroke-width": "1"
808
- }, null, 8, Ke)) : d("", !0),
809
- X(t) && !e.$slots.dataLabel ? (_(), f("text", {
810
- key: 2,
811
- x: t.midPointBezier.x,
812
- y: t.midPointBezier.y + H.value / 3,
813
- fill: S(ie)(Y(t)),
814
- "text-anchor": "middle",
815
- "font-size": H.value
816
- }, x(S(ne)(j.value.style.weightLabels.formatter, t.weight, S(n)({
817
- p: j.value.style.weightLabels.prefix,
818
- v: t.weight,
819
- s: j.value.style.weightLabels.suffix,
820
- r: j.value.style.weightLabels.rounding
821
- }), { ...t })), 9, qe)) : d("", !0)
822
- ]))), 256))])) : (_(), f("g", Je, [(_(!0), f(c, null, y(L.value, (e, t) => (_(), f("line", {
823
- key: `relation_${t}`,
824
- stroke: Y(e),
825
- "stroke-width": Qt(e),
826
- style: g(Ut(e)),
827
- x1: e.x1,
828
- x2: e.x2,
829
- y1: e.y1,
830
- y2: e.y2,
831
- class: ke({ "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }),
832
- "stroke-linecap": "round"
833
- }, null, 14, Ye))), 128)), (_(!0), f(c, null, y(L.value, (t, r) => (_(), f("g", Xe, [
834
- X(t) ? b(e.$slots, "dataLabel", De({
835
- key: 0,
836
- ref_for: !0
837
- }, {
838
- x: t.midPointLine.x,
839
- y: t.midPointLine.y,
840
- color: Y(t),
841
- weight: t.weight,
842
- fontSize: H.value
843
- }), void 0, !0) : d("", !0),
844
- X(t) && !e.$slots.dataLabel && j.value.style.weightLabels.show ? (_(), f("circle", {
845
- key: 1,
846
- cx: t.midPointLine.x,
847
- cy: t.midPointLine.y,
848
- fill: Y(t),
849
- r: H.value,
850
- stroke: j.value.style.backgroundColor,
851
- "stroke-width": "1"
852
- }, null, 8, Ze)) : d("", !0),
853
- X(t) && !e.$slots.dataLabel && j.value.style.weightLabels.show ? (_(), f("text", {
854
- key: 2,
855
- x: t.midPointLine.x,
856
- y: t.midPointLine.y + H.value / 3,
857
- fill: S(ie)(Y(t)),
858
- "text-anchor": "middle",
859
- "font-size": H.value
860
- }, x(S(ne)(j.value.style.weightLabels.formatter, t.weight, S(n)({
861
- p: j.value.style.weightLabels.prefix,
862
- v: t.weight,
863
- s: j.value.style.weightLabels.suffix,
864
- r: j.value.style.weightLabels.rounding
865
- }), { ...t })), 9, Qe)) : d("", !0)
866
- ]))), 256))])),
867
- (_(!0), f(c, null, y(I.value, (e, t) => (_(), f("text", {
868
- key: `plot_text_${t}`,
869
- "text-anchor": Wt(e),
870
- transform: qt(e),
871
- x: Gt(e),
872
- y: e.y + 5,
873
- class: "vue-ui-relation-circle-legend",
874
- "transform-origin": "start",
875
- "font-weight": R.value.id === e.id ? "900" : "400",
876
- style: g(`font-family:${j.value.style.fontFamily};${Kt(e)};cursor:${M.value ? "pointer" : "default"}`),
877
- "font-size": W.value,
878
- fill: j.value.style.labels.color,
879
- "text-decoration": t === Z.value || t === k.value ? "underline" : void 0,
880
- onClick: (n) => Zt(e, t),
881
- onMouseenter: (n) => Jt(e, t),
882
- onMouseleave: (n) => Yt(e, t)
883
- }, [S(_t) ? (_(), f(c, { key: 0 }, [we("--------")], 64)) : (_(), f(c, { key: 1 }, [we(x(e.label) + " (" + x(S(ne)(j.value.style.weightLabels.formatter, e.totalWeight, S(n)({
884
- p: j.value.style.weightLabels.prefix,
885
- v: e.totalWeight,
886
- s: j.value.style.weightLabels.suffix,
887
- r: j.value.style.weightLabels.rounding
888
- }), { ...e })) + ") ", 1)], 64))], 44, $e))), 128)),
889
- (_(!0), f(c, null, y(I.value, (e, t) => (_(), f("circle", {
890
- cx: e.x,
891
- cy: e.y,
892
- key: `plot_${t}`,
893
- style: g(`${Ht(e)}; transition: r 0.2s ease-in-out; cursor:${M.value ? "pointer" : "default"}`),
894
- class: "vue-ui-relation-circle-plot",
895
- fill: j.value.style.plot.useSerieColor ? e.color : j.value.style.plot.color,
896
- stroke: j.value.style.backgroundColor,
897
- "stroke-width": "1",
898
- r: U.value * (t === Z.value || t === k.value ? 2 : 1),
899
- onClick: (n) => Zt(e, t),
900
- onMouseenter: (n) => Jt(e, t),
901
- onMouseleave: (n) => Yt(e, t)
902
- }, null, 44, et))), 128)),
903
- b(e.$slots, "svg", { svg: {
904
- ...G.value,
905
- isPrintingImg: S(St) || S(Ct) || D.value,
906
- isPrintingSvg: O.value
907
- } }, void 0, !0)
908
- ], 42, Be)), e.$slots.hint ? (_(), f("div", tt, [b(e.$slots, "hint", h(m({
909
- hint: j.value.a11y.translations.keyboardNavigation,
910
- isVisible: A.value
911
- })), void 0, !0)])) : d("", !0)]),
912
- e.$slots.watermark ? (_(), f("div", nt, [b(e.$slots, "watermark", h(m({ isPrinting: S(St) || S(Ct) || D.value || O.value })), void 0, !0)])) : d("", !0),
913
- e.$slots.source ? (_(), f("div", {
914
- key: 6,
915
- ref_key: "source",
916
- ref: pt,
917
- dir: "auto"
918
- }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
919
- b(e.$slots, "skeleton", {}, () => [S(_t) ? (_(), u(ue, { key: 0 })) : d("", !0)], !0)
920
- ], 44, Le));
921
- }
922
- }, [["__scopeId", "data-v-dc8435a4"]]);
923
- //#endregion
924
- export { Ie as n, rt as t };