vue-data-ui 3.25.5 → 3.25.6

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,1347 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, K as r, Lt as i, Pt as a, S as o, X as s, Yt as c, Zt as l, en as ee, ht as te, i as ne, nt as re, q as ie, r as ae, t as oe, w as se } from "./lib-Dql7cqyA.js";
3
+ import { n as ce } from "./useHints-Dq_w2E8B.js";
4
+ import { t as le } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as ue } from "./usePrinter-DISD7q5m.js";
6
+ import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as pe } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as he } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as ge } from "./img-DhGApYG0.js";
11
+ import { n as _e } from "./Title-CPHi-evi.js";
12
+ import { t as ve } from "./Shape-CIqU-p2F.js";
13
+ import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as be, t as xe } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as Se } from "./A11yDataTable-DdRsVULz.js";
16
+ import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
17
+ import { t as we } from "./useChartAccessibility-DYqac8yF.js";
18
+ import { t as Te } from "./Legend-X4kF4PvW.js";
19
+ import { t as Ee } from "./vue_ui_chord-DPfS1Umc.js";
20
+ import { Fragment as u, Teleport as De, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as je, nextTick as Me, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ne, onMounted as Pe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as T, toRefs as Le, unref as E, useCssVars as Re, watch as ze, withCtx as D, withModifiers as Be } from "vue";
21
+ //#region src/components/vue-ui-chord.vue
22
+ var Ve = /* @__PURE__ */ e({ default: () => yt }), He = ["id"], Ue = ["id"], We = ["id"], Ge = [
23
+ "xmlns",
24
+ "viewBox",
25
+ "aria-describedby"
26
+ ], Ke = ["width", "height"], qe = { key: 1 }, Je = ["id", "d"], Ye = { key: 2 }, Xe = ["transform"], Ze = [
27
+ "d",
28
+ "fill",
29
+ "stroke",
30
+ "stroke-width",
31
+ "onMouseenter",
32
+ "onMouseleave",
33
+ "onClick"
34
+ ], Qe = [
35
+ "d",
36
+ "fill",
37
+ "stroke",
38
+ "stroke-width"
39
+ ], $e = ["d", "fill"], et = [
40
+ "d",
41
+ "fill",
42
+ "stroke",
43
+ "stroke-width",
44
+ "onMouseenter",
45
+ "onClick",
46
+ "onMouseleave"
47
+ ], tt = [
48
+ "d",
49
+ "fill",
50
+ "stroke",
51
+ "stroke-width"
52
+ ], nt = [
53
+ "d",
54
+ "fill",
55
+ "stroke",
56
+ "stroke-width"
57
+ ], rt = [
58
+ "d",
59
+ "fill",
60
+ "stroke",
61
+ "stroke-width"
62
+ ], it = { key: 0 }, at = [
63
+ "x1",
64
+ "y1",
65
+ "x2",
66
+ "y2",
67
+ "stroke",
68
+ "stroke-width"
69
+ ], ot = [
70
+ "x1",
71
+ "y1",
72
+ "x2",
73
+ "y2",
74
+ "stroke",
75
+ "stroke-width"
76
+ ], st = [
77
+ "cx",
78
+ "cy",
79
+ "r",
80
+ "stroke",
81
+ "stroke-width",
82
+ "fill"
83
+ ], ct = [
84
+ "transform",
85
+ "fill",
86
+ "text-anchor",
87
+ "font-size",
88
+ "font-weight"
89
+ ], lt = { key: 1 }, ut = [
90
+ "font-size",
91
+ "font-weight",
92
+ "fill"
93
+ ], dt = ["href"], ft = [
94
+ "transform",
95
+ "text-anchor",
96
+ "font-size",
97
+ "font-weight",
98
+ "fill",
99
+ "innerHTML"
100
+ ], pt = {
101
+ key: 5,
102
+ style: {
103
+ position: "absolute",
104
+ top: "100%",
105
+ left: "0",
106
+ width: "100%"
107
+ },
108
+ "data-dom-to-png-ignore": "",
109
+ "aria-hidden": "true"
110
+ }, mt = {
111
+ key: 6,
112
+ class: "vue-data-ui-watermark"
113
+ }, ht = ["id"], gt = ["onClick"], _t = {
114
+ key: 9,
115
+ "data-dom-to-png-ignore": "",
116
+ class: "reset-wrapper"
117
+ }, vt = { style: {
118
+ "text-align": "right",
119
+ width: "100%"
120
+ } }, yt = /*#__PURE__*/ ye({
121
+ __name: "vue-ui-chord",
122
+ props: {
123
+ dataset: {
124
+ type: Object,
125
+ default() {
126
+ return {};
127
+ }
128
+ },
129
+ config: {
130
+ type: Object,
131
+ default() {
132
+ return {};
133
+ }
134
+ }
135
+ },
136
+ emits: [
137
+ "selectLegend",
138
+ "selectGroup",
139
+ "selectRibbon",
140
+ "copyAlt"
141
+ ],
142
+ setup(e, { expose: ye, emit: Ve }) {
143
+ Re((e) => ({ v7e4b29de: e.slicerColor }));
144
+ let yt = g(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), bt = g(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), xt = g(() => import("./DataTable-oiM9uWrQ.js")), St = g(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), Ct = g(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), wt = g(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Tt = g(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_chord: Et } = le(), { isThemeValid: Dt, warnInvalidTheme: Ot } = me(), O = e, kt = Ve, k = S(!!O.dataset && Object.hasOwn(O.dataset, "matrix")), A = S(ie()), j = S(null), M = S(null), N = S(null), At = S(0), P = S(null), jt = S(null), Mt = S(null), Nt = S(null), Pt = S(null), Ft = S(0), It = S(0), Lt = S(0), Rt = S(!1), F = Ie(null), zt = Ie(null), Bt = S(!1), Vt = S(null), Ht = S(null), I = S("group"), L = S(null), Ut = S(!1), R = S(en()), z = d(() => R.value.style.chart.arcs), B = d(() => R.value.style.chart.ribbons), V = d(() => R.value.style.chart);
145
+ ce({
146
+ config: () => R.value,
147
+ dataset: () => O.dataset,
148
+ component: "VueUiChord",
149
+ rules: [{
150
+ test: (e) => e.matrix && e.matrix.length > 12,
151
+ message: [
152
+ "👀 The number of groups > 12, the chart might become hard to read. Consider:",
153
+ "",
154
+ "▶️ Using broader groups to reduce their number."
155
+ ]
156
+ }]
157
+ });
158
+ let H = d(() => R.value.userOptions.useCursorPointer), Wt = d(() => l({
159
+ defaultConfig: {
160
+ useCssAnimation: !1,
161
+ userOptions: { show: !1 },
162
+ table: { show: !1 },
163
+ style: { chart: {
164
+ backgroundColor: "#99999930",
165
+ legend: { backgroundColor: "transparent" },
166
+ arcs: {
167
+ stroke: "#6A6A6A",
168
+ labels: { show: !1 }
169
+ },
170
+ ribbons: {
171
+ stroke: "#6A6A6A",
172
+ underlayerOpacity: 0,
173
+ labels: { show: !1 }
174
+ }
175
+ } }
176
+ },
177
+ userConfig: R.value.skeletonConfig ?? {}
178
+ })), { loading: Gt, FINAL_DATASET: U, manualLoading: Kt } = de({
179
+ ...Le(O),
180
+ FINAL_CONFIG: R,
181
+ prepareConfig: en,
182
+ callback: () => {
183
+ Promise.resolve().then(async () => {
184
+ await Me(), G.value.showTable = R.value.table.show;
185
+ });
186
+ },
187
+ skeletonDataset: O.config?.skeletonDataset ?? {
188
+ matrix: [
189
+ [
190
+ 12e3,
191
+ 6e3,
192
+ 9e3,
193
+ 3e3
194
+ ],
195
+ [
196
+ 2e3,
197
+ 1e4,
198
+ 2e3,
199
+ 6001
200
+ ],
201
+ [
202
+ 8e3,
203
+ 1600,
204
+ 8e3,
205
+ 8001
206
+ ],
207
+ [
208
+ 1e3,
209
+ 1e3,
210
+ 1e3,
211
+ 7001
212
+ ]
213
+ ],
214
+ labels: [],
215
+ colors: [
216
+ "#DBDBDB",
217
+ "#C4C4C4",
218
+ "#ADADAD",
219
+ "#969696"
220
+ ]
221
+ },
222
+ skeletonConfig: l({
223
+ defaultConfig: R.value,
224
+ userConfig: Wt.value
225
+ })
226
+ }), { userOptionsVisible: qt, setUserOptionsVisibility: Jt, keepUserOptionState: Yt } = Ce({ config: R.value }), { svgRef: W } = we({ config: V.value.title }), { isPrinting: Xt, isImaging: Zt, generatePdf: Qt, generateImage: $t } = ue({
227
+ elementId: `chord_${A.value}`,
228
+ fileName: V.value.title.text || "vue-ui-chord",
229
+ options: R.value.userOptions.print
230
+ }), G = S({ showTable: R.value.table.show });
231
+ function en() {
232
+ let e = pe({
233
+ userConfig: O.config,
234
+ defaultConfig: Et
235
+ }), t = e.theme;
236
+ if (!t) return e;
237
+ if (!Dt.value(e)) return Ot(e), e;
238
+ let n = pe({
239
+ userConfig: Ee[t] || O.config,
240
+ defaultConfig: e
241
+ }), r = pe({
242
+ userConfig: O.config,
243
+ defaultConfig: n
244
+ });
245
+ return {
246
+ ...r,
247
+ customPalette: r.customPalette.length ? r.customPalette : c[t] || i
248
+ };
249
+ }
250
+ ze(() => O.config, (e) => {
251
+ Gt.value || (R.value = en()), qt.value = !R.value.userOptions.showOnChartHover, rn(), Ft.value += 1, It.value += 1, Lt.value += 1, X.value = R.value.initialRotation, G.value.showTable = R.value.table.show;
252
+ }, { deep: !0 });
253
+ let tn = d(() => R.value.debug);
254
+ ze(() => O.dataset, () => {
255
+ nn(), rn(), Ft.value += 1, It.value += 1, Lt.value += 1;
256
+ });
257
+ function nn() {
258
+ if (a(O.dataset)) {
259
+ re({
260
+ componentName: "VueUiChord",
261
+ type: "dataset",
262
+ debug: tn.value
263
+ }), k.value = !1, Kt.value = !0;
264
+ return;
265
+ }
266
+ let e = te({
267
+ datasetObject: O.dataset,
268
+ requiredAttributes: ["matrix"]
269
+ });
270
+ if (e.length) {
271
+ tn.value && e.forEach((e) => {
272
+ re({
273
+ componentName: "VueUiChord",
274
+ type: "datasetAttribute",
275
+ property: e
276
+ });
277
+ }), k.value = !1, Kt.value = !0;
278
+ return;
279
+ }
280
+ let t = O.dataset.matrix;
281
+ if (!Array.isArray(t) || t.length < 2) {
282
+ tn.value && console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1, Kt.value = !0;
283
+ return;
284
+ }
285
+ let n = t.length, r = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
286
+ if (r !== -1) {
287
+ tn.value && console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${r} has ${Array.isArray(t[r]) ? t[r].length : "NaN"} elements instead of the required ${n}
288
+
289
+ dataset.matrix[${r}] = [${Array.isArray(t[r]) ? t[r].toString() : "invalid"}]`), k.value = !1, Kt.value = !0;
290
+ return;
291
+ }
292
+ k.value = !0, Kt.value = !1;
293
+ }
294
+ function rn() {
295
+ if (nn(), R.value.responsive) {
296
+ let e = be(() => {
297
+ let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = xe({
298
+ chart: P.value,
299
+ title: V.value.title.text ? jt.value : null,
300
+ legend: V.value.legend.show ? Mt.value : null,
301
+ source: Nt.value,
302
+ noTitle: Pt.value
303
+ }), o = i + a + r + n;
304
+ e < t ? P.value.style.width = "100%" : (P.value.style.height = "100%", W.value.style.height = `calc(100% - ${o}px)`);
305
+ }, 100);
306
+ F.value && (zt.value && F.value.unobserve(zt.value), F.value.disconnect()), F.value = new ResizeObserver(e), zt.value = P.value.parentNode, F.value.observe(zt.value), e();
307
+ }
308
+ on.value = setTimeout(() => {
309
+ Rt.value = !0;
310
+ }, 500);
311
+ }
312
+ function an() {
313
+ if (!U.value || !Object.hasOwn(U.value, "matrix") || U.value.matrix.length < 2) {
314
+ tn.value && console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1;
315
+ return;
316
+ }
317
+ U.value.matrix.forEach((e, t) => {
318
+ e.length !== U.value.matrix.length && (tn.value && console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${t} has ${e.length} elements instead of the required ${U.value.matrix.length}\n\ndataset.matrix[${t}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${U.value.matrix.length})`), k.value = !1);
319
+ });
320
+ }
321
+ let on = S(null);
322
+ Pe(() => {
323
+ Bt.value = !0, rn();
324
+ });
325
+ let K = S({
326
+ height: 600,
327
+ width: 600
328
+ }), sn = d(() => R.value.userOptions.show && !V.value.title.text), cn = d(() => se(R.value.customPalette)), q = d(() => ({
329
+ inner: K.value.width * .3 * z.value.innerRadiusRatio,
330
+ outer: K.value.width * .34 * z.value.outerRadiusRatio
331
+ })), ln = d(() => z.value.padAngle / 100), J = d(() => ({
332
+ matrix: U.value.matrix ?? [[0]],
333
+ labels: U.value.labels ?? [""],
334
+ colors: U.value.colors && Array.isArray(U.value.colors) && U.value.colors.length ? U.value.colors.map((e) => o(e)) : U.value.matrix.map((e, t) => cn.value[t] || i[t] || i[t % i.length])
335
+ }));
336
+ function un(e, t) {
337
+ let n = e.length, r = q.value.inner, i = Array(n).fill(0), a = 0;
338
+ for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1) i[t] += e[t][r], a += e[t][r];
339
+ let o = (2 * Math.PI - t * n) / a, s = [], c = 0;
340
+ for (let e = 0; e < n; e += 1) {
341
+ let n = c, r = n + i[e] * o;
342
+ s.push({
343
+ index: e,
344
+ pattern: `pattern_${A.value}_${e}`,
345
+ startAngle: n,
346
+ endAngle: r,
347
+ name: J.value.labels[e],
348
+ id: ie(),
349
+ color: J.value.colors[e],
350
+ proportion: i[e] / a
351
+ }), c = r + t;
352
+ }
353
+ let l = [];
354
+ for (let t = 0; t < n; t += 1) {
355
+ let n = e[t].map((e, t) => ({
356
+ j: t,
357
+ v: e
358
+ }));
359
+ n.sort((e, t) => t.v - e.v);
360
+ let i = s[t].startAngle;
361
+ for (let { j: e, v: a } of n) {
362
+ let n = i, c = n + a * o;
363
+ l.push({
364
+ index: t,
365
+ subIndex: e,
366
+ pattern: `pattern_${A.value}_${t}`,
367
+ startAngle: n,
368
+ endAngle: c,
369
+ value: a,
370
+ groupName: J.value.labels[t],
371
+ groupId: s[t].id,
372
+ groupColor: J.value.colors[t],
373
+ midAngle: (n + c) / 2,
374
+ midBaseX: Math.cos((n + c) / 2 - Math.PI / 2) * r,
375
+ midBaseY: Math.sin((n + c) / 2 - Math.PI / 2) * r
376
+ }), i = c;
377
+ }
378
+ }
379
+ let ee = [];
380
+ for (let e of l) {
381
+ let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
382
+ ee.push({
383
+ source: e,
384
+ target: t,
385
+ id: ie()
386
+ });
387
+ }
388
+ return {
389
+ groups: s,
390
+ chords: ee
391
+ };
392
+ }
393
+ let Y = d(() => {
394
+ let e = un(J.value.matrix, ln.value);
395
+ return an(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
396
+ }), dn = d(() => {
397
+ let e = q.value.outer + B.value.labels.offset + 12, t = B.value.labels.fontSize * .6, n = [];
398
+ if (M.value) {
399
+ let r = M.value;
400
+ if (r.source.value) {
401
+ let i = String(r.source.value);
402
+ n.push({
403
+ id: r.id + "-src",
404
+ theta: r.source.midAngle,
405
+ w: i.length * t / e,
406
+ midBaseX: r.source.midBaseX,
407
+ midBaseY: r.source.midBaseY,
408
+ groupColor: r.source.groupColor,
409
+ value: r.source.value
410
+ });
411
+ }
412
+ if (r.target && r.target.value && r.target.value !== r.source.value) {
413
+ let i = String(r.target.value);
414
+ n.push({
415
+ id: r.id + "-tgt",
416
+ theta: r.target.midAngle,
417
+ w: i.length * t / e,
418
+ midBaseX: r.target.midBaseX,
419
+ midBaseY: r.target.midBaseY,
420
+ groupColor: r.target.groupColor,
421
+ value: r.target.value
422
+ });
423
+ }
424
+ return n;
425
+ }
426
+ function r(r) {
427
+ Y.value.chords.filter((e) => e.source.groupId === r && e.source.value).forEach((r) => {
428
+ {
429
+ let i = String(r.source.value);
430
+ n.push({
431
+ id: r.id + "-src",
432
+ theta: r.source.midAngle,
433
+ w: i.length * t / e,
434
+ midBaseX: r.source.midBaseX,
435
+ midBaseY: r.source.midBaseY,
436
+ groupColor: r.source.groupColor,
437
+ value: r.source.value
438
+ });
439
+ }
440
+ if (r.target && r.target.value && r.target.value !== r.source.value) {
441
+ let i = String(r.target.value);
442
+ n.push({
443
+ id: r.id + "-tgt",
444
+ theta: r.target.midAngle,
445
+ w: i.length * t / e,
446
+ midBaseX: r.target.midBaseX,
447
+ midBaseY: r.target.midBaseY,
448
+ groupColor: r.target.groupColor,
449
+ value: r.target.value
450
+ });
451
+ }
452
+ });
453
+ }
454
+ return N.value && r(N.value), j.value && r(j.value.id), n;
455
+ }), fn = d(() => {
456
+ let e = dn.value.map((e) => ({ ...e })).sort((e, t) => e.theta - t.theta), t = B.value.labels.minSeparationDeg * Math.PI / 180, n = !0, r = 0;
457
+ for (; n && r++ < 10;) {
458
+ n = !1;
459
+ for (let r = 1; r < e.length; r += 1) {
460
+ let i = e[r - 1], a = e[r], o = i.theta + i.w + t;
461
+ a.theta < o && (a.theta = o, n = !0);
462
+ }
463
+ let r = e[0], i = e[e.length - 1], a = i.theta + i.w + t - 2 * Math.PI;
464
+ r.theta < a && (r.theta = a, n = !0);
465
+ }
466
+ return e;
467
+ });
468
+ function pn(e, t, n, r) {
469
+ let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n, l = Math.sin(a) * n, ee = Math.cos(a) * r, te = Math.sin(a) * r, ne = Math.cos(i) * r, re = Math.sin(i) * r, ie = +(t - e > Math.PI);
470
+ return `M${o},${s} A${n},${n} 0 ${ie} 1 ${c},${l} L${ee},${te} A${r},${r} 0 ${ie} 0 ${ne},${re} Z`;
471
+ }
472
+ function mn(e, t) {
473
+ let n = q.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n, l = Math.cos(i) * n, ee = Math.sin(i) * n, te = Math.cos(a) * n, ne = Math.sin(a) * n, re = Math.cos(o) * n, ie = Math.sin(o) * n;
474
+ return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${l},${ee}Q0,0 ${te},${ne}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${re},${ie}Q0,0 ${s},${c}Z`;
475
+ }
476
+ let hn = d(() => X.value * Math.PI / 180);
477
+ function gn(e) {
478
+ return (e.startAngle + e.endAngle) / 2;
479
+ }
480
+ function _n(e) {
481
+ return ((gn(e) + hn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
482
+ }
483
+ function vn(e) {
484
+ let t = e + hn.value;
485
+ return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
486
+ }
487
+ function yn(e) {
488
+ let t = e - Math.PI / 2;
489
+ return `translate(${Math.cos(t) * (q.value.outer + z.value.labels.offset + 24)},${Math.sin(t) * (q.value.outer + z.value.labels.offset + 24)})`;
490
+ }
491
+ function bn(e, t, n) {
492
+ let r = e - Math.PI / 2, i = t - Math.PI / 2, a = Math.cos(r) * n, o = Math.sin(r) * n, s = Math.cos(i) * n, c = Math.sin(i) * n;
493
+ return `M${a},${o} A${n},${n} 0 ${+(t - e > Math.PI)} 1 ${s},${c}`;
494
+ }
495
+ let X = S(R.value.initialRotation), xn = S(!1), Sn = 0, Cn = 0;
496
+ function wn(e) {
497
+ let t = W.value.getBoundingClientRect(), n = t.left + t.width / 2, r = t.top + t.height / 2, i = e.clientX ?? e.touches[0].clientX, a = e.clientY ?? e.touches[0].clientY;
498
+ return Math.atan2(a - r, i - n);
499
+ }
500
+ function Tn(e) {
501
+ !R.value.enableRotation || zn.value || (e.preventDefault(), xn.value = !0, Sn = X.value, Cn = wn(e));
502
+ }
503
+ function En(e) {
504
+ if (!xn.value) return;
505
+ let t = wn(e);
506
+ X.value = Sn + (t - Cn) * 180 / Math.PI;
507
+ }
508
+ function Dn() {
509
+ xn.value = !1;
510
+ }
511
+ function On(e) {
512
+ return ne(B.value.labels.formatter, e, s({
513
+ p: B.value.labels.prefix,
514
+ v: e,
515
+ s: B.value.labels.suffix,
516
+ r: B.value.labels.rounding
517
+ }));
518
+ }
519
+ Pe(() => {
520
+ window.addEventListener("mousemove", En), window.addEventListener("mouseup", Dn), window.addEventListener("touchmove", En, { passive: !1 }), window.addEventListener("touchend", Dn);
521
+ }), Ne(() => {
522
+ window.removeEventListener("mousemove", En), window.removeEventListener("mouseup", Dn), window.removeEventListener("touchmove", En), window.removeEventListener("touchend", Dn), clearTimeout(on.value), F.value && (zt.value && F.value.unobserve(zt.value), F.value.disconnect());
523
+ });
524
+ let kn = S(!1);
525
+ function An(e) {
526
+ kn.value = e, At.value += 1;
527
+ }
528
+ function jn(e, t) {
529
+ R.value.events.datapointEnter && R.value.events.datapointEnter({
530
+ datapoint: e,
531
+ seriesIndex: t
532
+ }), !N.value && (j.value = e);
533
+ }
534
+ function Mn(e, t) {
535
+ j.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
536
+ datapoint: e,
537
+ seriesIndex: t
538
+ });
539
+ }
540
+ function Nn(e, t) {
541
+ kt("selectGroup", e), R.value.events.datapointClick && R.value.events.datapointClick({
542
+ datapoint: e,
543
+ seriesIndex: t
544
+ });
545
+ }
546
+ function Pn(e, t) {
547
+ R.value.events.datapointEnter && R.value.events.datapointEnter({
548
+ datapoint: e,
549
+ seriesIndex: t
550
+ }), !N.value && (M.value = e);
551
+ }
552
+ function Fn(e, t) {
553
+ M.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
554
+ datapoint: e,
555
+ seriesIndex: t
556
+ });
557
+ }
558
+ function In(e, t) {
559
+ kt("selectRibbon", e), R.value.events.datapointClick && R.value.events.datapointClick({
560
+ datapoint: e,
561
+ seriesIndex: t
562
+ });
563
+ }
564
+ function Ln(e) {
565
+ return !N.value && !j.value && !M.value ? .8 : (N.value ? N.value === e.source.groupId : j.value ? j.value.id === e.source.groupId : M.value?.id === e.id) ? 1 : .1;
566
+ }
567
+ function Rn(e) {
568
+ return !N.value && !j.value && !M.value || (N.value ? N.value === e.id : j.value ? j.value.id === e.id : [M.value?.source.groupId, M.value?.target.groupId].includes(e.id)) ? 1 : .3;
569
+ }
570
+ let zn = S(!1);
571
+ function Bn() {
572
+ zn.value = !zn.value;
573
+ }
574
+ function Vn() {
575
+ G.value.showTable = !G.value.showTable;
576
+ }
577
+ function Hn() {
578
+ return Y.value;
579
+ }
580
+ let Z = S(null);
581
+ function Un() {
582
+ let e = R.value.initialRotation;
583
+ Z.value !== null && cancelAnimationFrame(Z.value);
584
+ let t = () => {
585
+ X.value += (e - X.value) * .05, Math.abs(X.value - e) < .1 ? (X.value = e, Z.value = null) : Z.value = requestAnimationFrame(t);
586
+ };
587
+ Z.value = requestAnimationFrame(t);
588
+ }
589
+ Ne(() => {
590
+ Z.value !== null && cancelAnimationFrame(Z.value);
591
+ });
592
+ function Wn(e) {
593
+ e === N.value ? (N.value = null, kt("selectLegend", null)) : (N.value = e, kt("selectLegend", Y.value.groups.find((t) => t.id === e)));
594
+ }
595
+ let Gn = d(() => Y.value.groups.map((e, t) => ({
596
+ name: e.name,
597
+ color: e.color,
598
+ shape: "circle",
599
+ patternIndex: t,
600
+ pattern: `pattern_${A.value}_${t}`,
601
+ id: e.id,
602
+ select: () => Wn(e.id),
603
+ opacity: N.value ? N.value === e.id ? 1 : .3 : 1
604
+ }))), Kn = d(() => ({
605
+ cy: "chord-div-legend",
606
+ backgroundColor: V.value.legend.backgroundColor,
607
+ color: V.value.legend.color,
608
+ fontSize: V.value.legend.fontSize,
609
+ paddingBottom: 12,
610
+ fontWeight: V.value.legend.bold ? "bold" : ""
611
+ })), Q = d(() => ({
612
+ head: Y.value.groups.map((e, t) => ({
613
+ name: e.name || t,
614
+ color: e.color
615
+ })),
616
+ body: J.value.matrix
617
+ })), qn = d(() => {
618
+ let e = [{
619
+ name: "",
620
+ color: null
621
+ }, ...Q.value.head];
622
+ return {
623
+ colNames: e,
624
+ head: e,
625
+ body: Q.value.body.map((e, t) => [Q.value.head[t], ...Q.value.body[t]]),
626
+ config: {
627
+ th: {
628
+ backgroundColor: R.value.table.th.backgroundColor,
629
+ color: R.value.table.th.color,
630
+ outline: R.value.table.th.outline
631
+ },
632
+ td: {
633
+ backgroundColor: R.value.table.td.backgroundColor,
634
+ color: R.value.table.td.color,
635
+ outline: R.value.table.td.outline
636
+ },
637
+ breakpoint: R.value.table.responsiveBreakpoint
638
+ }
639
+ };
640
+ });
641
+ function Jn(e = null) {
642
+ Me(() => {
643
+ let r = J.value.matrix.map((e, t) => [[J.value.labels[t] || t], e]), i = [
644
+ [V.value.title.text],
645
+ [V.value.title.subtitle.text],
646
+ [[""], ...J.value.labels.map((e, t) => [e || t])]
647
+ ].concat(r), a = n(i);
648
+ e ? e(a) : t({
649
+ csvContent: a,
650
+ title: V.value.title.text || "vue-ui-chord"
651
+ });
652
+ });
653
+ }
654
+ async function Yn({ scale: e = 2 } = {}) {
655
+ if (!P.value) return;
656
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
657
+ domElement: P.value,
658
+ base64: !0,
659
+ img: !0,
660
+ scale: e
661
+ });
662
+ return {
663
+ imageUri: i,
664
+ base64: a,
665
+ title: V.value.title.text,
666
+ width: t,
667
+ height: n,
668
+ aspectRatio: r
669
+ };
670
+ }
671
+ function Xn(e, t) {
672
+ return `${J.value.labels[t]}${z.value.labels.showPercentage ? s({
673
+ p: " (",
674
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
675
+ s: "%)",
676
+ r: z.value.labels.roundingPercentage
677
+ }) : ""}`;
678
+ }
679
+ let Zn = d(() => {
680
+ let e = R.value.table.useDialog && !R.value.table.show, t = G.value.showTable;
681
+ return {
682
+ component: e ? Tt : yt,
683
+ title: `${V.value.title.text}${V.value.title.subtitle.text ? `: ${V.value.title.subtitle.text}` : ""}`,
684
+ props: e ? {
685
+ backgroundColor: R.value.table.th.backgroundColor,
686
+ color: R.value.table.th.color,
687
+ headerColor: R.value.table.th.color,
688
+ headerBg: R.value.table.th.backgroundColor,
689
+ isFullscreen: kn.value,
690
+ fullscreenParent: P.value,
691
+ forcedWidth: Math.min(800, window.innerWidth * .8),
692
+ isCursorPointer: H.value
693
+ } : {
694
+ hideDetails: !0,
695
+ config: {
696
+ open: t,
697
+ maxHeight: 1e4,
698
+ body: {
699
+ backgroundColor: V.value.backgroundColor,
700
+ color: V.value.color
701
+ },
702
+ head: {
703
+ backgroundColor: V.value.backgroundColor,
704
+ color: V.value.color
705
+ }
706
+ }
707
+ }
708
+ };
709
+ });
710
+ ze(() => G.value.showTable, (e) => {
711
+ R.value.table.show || (e && R.value.table.useDialog && Vt.value ? Vt.value.open() : "close" in Vt.value && Vt.value.close());
712
+ });
713
+ function Qn() {
714
+ G.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
715
+ }
716
+ let $n = d(() => V.value.backgroundColor), er = d(() => V.value.legend), tr = d(() => V.value.title), { isCallbackImaging: nr, isCallbackSvg: rr, generateSvg: ir, onGenerateImage: ar } = he({
717
+ svg: W,
718
+ title: tr,
719
+ legend: er,
720
+ legendItems: Gn,
721
+ backgroundColor: $n,
722
+ getSvgCallback: () => R.value.userOptions.callbacks.svg,
723
+ generateImage: $t
724
+ });
725
+ async function or() {
726
+ if (kt("copyAlt", {
727
+ config: R.value,
728
+ dataset: J.value
729
+ }), !R.value.userOptions.callbacks.altCopy) {
730
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
731
+ return;
732
+ }
733
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
734
+ config: R.value,
735
+ dataset: J.value
736
+ }));
737
+ }
738
+ let sr = d(() => (j.value ? Y.value.chords.filter((e) => e.source.groupId === j.value.id) : N.value ? Y.value.chords.filter((e) => e.source.groupId === N.value) : Y.value.chords).filter((e) => e.source.value)), $ = d(() => ({
739
+ groups: Y.value.groups.map((e, t) => ({
740
+ type: "group",
741
+ index: t,
742
+ item: e
743
+ })),
744
+ ribbons: sr.value.map((e, t) => ({
745
+ type: "ribbon",
746
+ index: t,
747
+ item: {
748
+ ...e,
749
+ path: mn(e.source, e.target),
750
+ color: J.value.colors[e.source.index]
751
+ }
752
+ }))
753
+ })), cr = d(() => ({
754
+ headers: ["", ...Q.value.head.map((e) => e.name)],
755
+ rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => On(e))])
756
+ }));
757
+ function lr(e) {
758
+ let t = $.value.groups[e];
759
+ t && (I.value = "group", L.value = e, M.value = null, j.value = t.item);
760
+ }
761
+ function ur(e) {
762
+ let t = $.value.ribbons[e];
763
+ t && (I.value = "ribbon", L.value = e, j.value = null, M.value = t.item);
764
+ }
765
+ function dr() {
766
+ L.value = null, I.value = "group", j.value = null, M.value = null;
767
+ }
768
+ function fr() {
769
+ Ut.value = !0, I.value = "group", L.value = null;
770
+ }
771
+ function pr() {
772
+ Ut.value = !1, dr();
773
+ }
774
+ function mr(e) {
775
+ if (!W.value || zn.value || document.activeElement !== W.value) return;
776
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
777
+ if (!t && !n && !r && !i && !a && !o) return;
778
+ if (e.preventDefault(), e.stopPropagation(), o) {
779
+ dr();
780
+ return;
781
+ }
782
+ if (r) {
783
+ I.value = "group", $.value.groups.length && lr(L.value === null ? 0 : Math.min(L.value, $.value.groups.length - 1));
784
+ return;
785
+ }
786
+ if (i) {
787
+ if (!$.value.ribbons.length) return;
788
+ I.value = "ribbon", ur(L.value === null ? 0 : Math.min(L.value, $.value.ribbons.length - 1));
789
+ return;
790
+ }
791
+ if (a) {
792
+ if (I.value === "group") {
793
+ let e = $.value.groups[L.value];
794
+ e && Nn(e.item, e.index);
795
+ } else {
796
+ let e = $.value.ribbons[L.value];
797
+ e && In(e.item, e.index);
798
+ }
799
+ return;
800
+ }
801
+ let s = I.value === "group" ? $.value.groups : $.value.ribbons;
802
+ if (!s.length) return;
803
+ let c = L.value;
804
+ c === null || c < 0 || c >= s.length ? c = n ? 0 : s.length - 1 : n ? (c += 1, c >= s.length && (c = 0)) : t && (--c, c < 0 && (c = s.length - 1)), I.value === "group" ? lr(c) : ur(c);
805
+ }
806
+ return ye({
807
+ getData: Hn,
808
+ getImage: Yn,
809
+ generateCsv: Jn,
810
+ generateImage: $t,
811
+ generateSvg: ir,
812
+ generatePdf: Qt,
813
+ toggleAnnotator: Bn,
814
+ toggleTable: Vn,
815
+ toggleFullscreen: An,
816
+ copyAlt: or
817
+ }), (e, t) => (x(), m("div", {
818
+ ref_key: "chordChart",
819
+ ref: P,
820
+ class: v({
821
+ "vue-data-ui-component": !0,
822
+ "vue-ui-chord": !0,
823
+ "vue-data-ui-wrapper-fullscreen": kn.value,
824
+ "vue-data-ui-responsive": R.value.responsive
825
+ }),
826
+ style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${V.value.backgroundColor}`),
827
+ id: `chord_${A.value}`,
828
+ onMouseenter: t[2] ||= () => E(Jt)(!0),
829
+ onMouseleave: t[3] ||= () => E(Jt)(!1)
830
+ }, [
831
+ h("div", {
832
+ id: `chart-instructions-${A.value}`,
833
+ class: "sr-only"
834
+ }, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
835
+ cr.value?.rows?.length ? (x(), f(Se, {
836
+ key: 0,
837
+ uid: A.value,
838
+ head: cr.value.headers,
839
+ body: cr.value.rows,
840
+ notice: R.value.a11y.translations.tableAvailable,
841
+ caption: R.value.a11y.translations.tableCaption
842
+ }, null, 8, [
843
+ "uid",
844
+ "head",
845
+ "body",
846
+ "notice",
847
+ "caption"
848
+ ])) : p("", !0),
849
+ R.value.userOptions.buttons.annotator && E(W) ? (x(), f(E(Ct), {
850
+ key: 1,
851
+ color: V.value.color,
852
+ backgroundColor: V.value.backgroundColor,
853
+ active: zn.value,
854
+ svgRef: E(W),
855
+ isCursorPointer: H.value,
856
+ palette: R.value.userOptions.annotatorPalette,
857
+ onClose: Bn
858
+ }, {
859
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
860
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
861
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
862
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
863
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
864
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
865
+ _: 3
866
+ }, 8, [
867
+ "color",
868
+ "backgroundColor",
869
+ "active",
870
+ "svgRef",
871
+ "isCursorPointer",
872
+ "palette"
873
+ ])) : p("", !0),
874
+ w(e.$slots, "userConfig", {}, void 0, !0),
875
+ sn.value ? (x(), m("div", {
876
+ key: 2,
877
+ ref_key: "noTitle",
878
+ ref: Pt,
879
+ class: "vue-data-ui-no-title-space",
880
+ style: "height:36px; width: 100%;background:transparent"
881
+ }, null, 512)) : p("", !0),
882
+ V.value.title.text ? (x(), m("div", {
883
+ key: 3,
884
+ ref_key: "chartTitle",
885
+ ref: jt,
886
+ style: "width:100%;background:transparent;padding-bottom:24px"
887
+ }, [(x(), f(_e, {
888
+ key: `title_${Ft.value}`,
889
+ config: {
890
+ title: {
891
+ cy: "chord-div-title",
892
+ ...V.value.title
893
+ },
894
+ subtitle: {
895
+ cy: "chord-div-subtitle",
896
+ ...V.value.title.subtitle
897
+ }
898
+ }
899
+ }, null, 8, ["config"]))], 512)) : p("", !0),
900
+ h("div", { id: `legend-top-${A.value}` }, null, 8, We),
901
+ R.value.userOptions.show && k.value && (E(Yt) || E(qt)) ? (x(), f(E(wt), {
902
+ ref_key: "userOptionsRef",
903
+ ref: Ht,
904
+ key: `user_option_${At.value}`,
905
+ backgroundColor: V.value.backgroundColor,
906
+ color: V.value.color,
907
+ isPrinting: E(Xt),
908
+ isImaging: E(Zt),
909
+ uid: A.value,
910
+ hasTooltip: !1,
911
+ hasPdf: R.value.userOptions.buttons.pdf,
912
+ hasImg: R.value.userOptions.buttons.img,
913
+ hasSvg: R.value.userOptions.buttons.svg,
914
+ hasXls: R.value.userOptions.buttons.csv,
915
+ hasTable: R.value.userOptions.buttons.table,
916
+ hasLabel: !1,
917
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
918
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
919
+ isFullscreen: kn.value,
920
+ chartElement: P.value,
921
+ position: R.value.userOptions.position,
922
+ titles: { ...R.value.userOptions.buttonTitles },
923
+ hasAnnotator: R.value.userOptions.buttons.annotator,
924
+ isAnnotation: zn.value,
925
+ callbacks: R.value.userOptions.callbacks,
926
+ printScale: R.value.userOptions.print.scale,
927
+ tableDialog: R.value.table.useDialog,
928
+ isCursorPointer: H.value,
929
+ onToggleFullscreen: An,
930
+ onGeneratePdf: E(Qt),
931
+ onGenerateCsv: Jn,
932
+ onGenerateImage: E(ar),
933
+ onGenerateSvg: E(ir),
934
+ onToggleTable: Vn,
935
+ onToggleAnnotator: Bn,
936
+ onCopyAlt: or,
937
+ style: b({ visibility: E(Yt) ? E(qt) ? "visible" : "hidden" : "visible" })
938
+ }, Oe({ _: 2 }, [
939
+ e.$slots.menuIcon ? {
940
+ name: "menuIcon",
941
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
942
+ isOpen: t,
943
+ color: n
944
+ })), void 0, !0)]),
945
+ key: "0"
946
+ } : void 0,
947
+ e.$slots.optionPdf ? {
948
+ name: "optionPdf",
949
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
950
+ key: "1"
951
+ } : void 0,
952
+ e.$slots.optionCsv ? {
953
+ name: "optionCsv",
954
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
955
+ key: "2"
956
+ } : void 0,
957
+ e.$slots.optionImg ? {
958
+ name: "optionImg",
959
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
960
+ key: "3"
961
+ } : void 0,
962
+ e.$slots.optionSvg ? {
963
+ name: "optionSvg",
964
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
965
+ key: "4"
966
+ } : void 0,
967
+ e.$slots.optionTable ? {
968
+ name: "optionTable",
969
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
970
+ key: "5"
971
+ } : void 0,
972
+ e.$slots.optionFullscreen ? {
973
+ name: "optionFullscreen",
974
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
975
+ toggleFullscreen: t,
976
+ isFullscreen: n
977
+ })), void 0, !0)]),
978
+ key: "6"
979
+ } : void 0,
980
+ e.$slots.optionAnnotator ? {
981
+ name: "optionAnnotator",
982
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
983
+ toggleAnnotator: t,
984
+ isAnnotator: n
985
+ })), void 0, !0)]),
986
+ key: "7"
987
+ } : void 0,
988
+ e.$slots.optionAltCopy ? {
989
+ name: "optionAltCopy",
990
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
991
+ key: "8"
992
+ } : void 0,
993
+ e.$slots["custom-menu-before"] ? {
994
+ name: "custom-menu-before",
995
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
996
+ key: "9"
997
+ } : void 0,
998
+ e.$slots["custom-menu-after"] ? {
999
+ name: "custom-menu-after",
1000
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1001
+ key: "10"
1002
+ } : void 0
1003
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
1004
+ (x(), m("svg", {
1005
+ xmlns: E(oe),
1006
+ ref_key: "svgRef",
1007
+ ref: W,
1008
+ viewBox: `0 0 ${K.value.width} ${K.value.height}`,
1009
+ "aria-describedby": `chart-instructions-${A.value}`,
1010
+ tabindex: "0",
1011
+ preserveAspectRatio: "xMidYMid meet",
1012
+ style: { overflow: "visible" },
1013
+ class: v({
1014
+ "vue-ui-chord-rotating": xn.value,
1015
+ "vue-ui-chord-idle": !xn.value
1016
+ }),
1017
+ onMousedown: Be(Tn, ["prevent"]),
1018
+ onTouchstart: Be(Tn, ["prevent"]),
1019
+ onFocus: fr,
1020
+ onBlur: pr,
1021
+ onKeydown: mr
1022
+ }, [
1023
+ Ae(E(St)),
1024
+ e.$slots["chart-background"] ? (x(), m("foreignObject", {
1025
+ key: 0,
1026
+ x: 0,
1027
+ y: 0,
1028
+ width: K.value.width <= 0 ? 10 : K.value.width,
1029
+ height: K.value.height <= 0 ? 10 : K.value.height,
1030
+ style: { pointerEvents: "none" }
1031
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : p("", !0),
1032
+ z.value.labels.curved ? (x(), m("defs", qe, [(x(!0), m(u, null, C(Y.value.groups, (e, t) => (x(), m("path", {
1033
+ key: `labelPath-${t}`,
1034
+ id: `labelPath-${t}_${A.value}`,
1035
+ d: bn(e.startAngle, e.endAngle, (q.value.inner + q.value.outer) / 2 + z.value.labels.offset),
1036
+ fill: "none"
1037
+ }, null, 8, Je))), 128))])) : p("", !0),
1038
+ e.$slots.pattern ? (x(), m("g", Ye, [(x(!0), m(u, null, C(Y.value.groups, (t, n) => (x(), m("defs", null, [w(e.$slots, "pattern", je({ ref_for: !0 }, {
1039
+ seriesIndex: t.index,
1040
+ patternId: `pattern_${A.value}_${n}`
1041
+ }), void 0, !0)]))), 256))])) : p("", !0),
1042
+ h("g", { transform: `translate(${K.value.width / 2}, ${K.value.height / 2}) rotate(${X.value})` }, [
1043
+ (x(!0), m(u, null, C(Y.value.groups, (t, n) => (x(), m("g", null, [(x(), m("path", {
1044
+ class: v({
1045
+ "vue-ui-chord-arc": !0,
1046
+ "vue-ui-chord-arc-animated": R.value.useCssAnimation && !Rt.value
1047
+ }),
1048
+ key: `arc-${n}`,
1049
+ d: pn(t.startAngle, t.endAngle, q.value.outer, q.value.inner),
1050
+ fill: J.value.colors[n],
1051
+ stroke: z.value.stroke,
1052
+ "stroke-width": z.value.strokeWidth,
1053
+ "stroke-linecap": "round",
1054
+ "stroke-linejoin": "round",
1055
+ style: b({ opacity: Rn(t) }),
1056
+ onMouseenter: (e) => jn(t, n),
1057
+ onMouseleave: (e) => Mn(t, n),
1058
+ onClick: (e) => Nn(t, n)
1059
+ }, null, 46, Ze)), e.$slots.pattern ? (x(), m("path", {
1060
+ class: v({
1061
+ "vue-ui-chord-arc": !0,
1062
+ "vue-ui-chord-arc-animated": R.value.useCssAnimation && !Rt.value
1063
+ }),
1064
+ key: `arc-${n}`,
1065
+ d: pn(t.startAngle, t.endAngle, q.value.outer, q.value.inner),
1066
+ fill: `url(#${t.pattern})`,
1067
+ stroke: z.value.stroke,
1068
+ "stroke-width": z.value.strokeWidth,
1069
+ "stroke-linecap": "round",
1070
+ "stroke-linejoin": "round",
1071
+ style: b({
1072
+ opacity: Rn(t),
1073
+ pointerEvents: "none"
1074
+ })
1075
+ }, null, 14, Qe)) : p("", !0)]))), 256)),
1076
+ h("g", null, [
1077
+ (x(!0), m(u, null, C(j.value ? Y.value.chords.filter((e) => e.source.groupId === j.value.id) : N.value ? Y.value.chords.filter((e) => e.source.groupId === N.value) : Y.value.chords, (t, n) => (x(), m(u, { key: `ribbon-${t.id}` }, [
1078
+ t.source.value ? (x(), m("path", {
1079
+ key: 0,
1080
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1081
+ d: mn(t.source, t.target),
1082
+ fill: V.value.backgroundColor,
1083
+ style: b({ opacity: B.value.underlayerOpacity })
1084
+ }, null, 12, $e)) : p("", !0),
1085
+ t.source.value ? (x(), m("path", {
1086
+ key: 1,
1087
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1088
+ d: mn(t.source, t.target),
1089
+ fill: J.value.colors[t.source.index],
1090
+ stroke: B.value.stroke,
1091
+ "stroke-width": B.value.strokeWidth,
1092
+ "stroke-linecap": "round",
1093
+ "stroke-linejoin": "round",
1094
+ style: b({ opacity: Ln(t) }),
1095
+ onMouseenter: (e) => Pn({
1096
+ ...t,
1097
+ path: mn(t.source, t.target),
1098
+ color: J.value.colors[t.source.index]
1099
+ }, n),
1100
+ onClick: (e) => In({
1101
+ ...t,
1102
+ color: J.value.colors[t.source.index]
1103
+ }, n),
1104
+ onMouseleave: (e) => Fn({
1105
+ ...t,
1106
+ color: J.value.colors[t.source.index]
1107
+ }, n)
1108
+ }, null, 44, et)) : p("", !0),
1109
+ t.source.value && e.$slots.pattern ? (x(), m("path", {
1110
+ key: 2,
1111
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1112
+ d: mn(t.source, t.target),
1113
+ fill: `url(#pattern_${A.value}_${t.source.index})`,
1114
+ stroke: B.value.stroke,
1115
+ "stroke-width": B.value.strokeWidth,
1116
+ "stroke-linecap": "round",
1117
+ "stroke-linejoin": "round",
1118
+ style: b({
1119
+ opacity: Ln(t),
1120
+ pointerEvents: "none"
1121
+ })
1122
+ }, null, 12, tt)) : p("", !0)
1123
+ ], 64))), 128)),
1124
+ M.value ? (x(), m("path", {
1125
+ key: 0,
1126
+ d: M.value.path,
1127
+ fill: M.value.color,
1128
+ stroke: B.value.stroke,
1129
+ "stroke-width": B.value.strokeWidth,
1130
+ "stroke-linecap": "round",
1131
+ "stroke-linejoin": "round",
1132
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1133
+ style: { pointerEvents: "none" }
1134
+ }, null, 8, nt)) : p("", !0),
1135
+ M.value && e.$slots.pattern ? (x(), m("path", {
1136
+ key: 1,
1137
+ d: M.value.path,
1138
+ fill: `url(#${M.value.source.pattern})`,
1139
+ stroke: B.value.stroke,
1140
+ "stroke-width": B.value.strokeWidth,
1141
+ "stroke-linecap": "round",
1142
+ "stroke-linejoin": "round",
1143
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1144
+ style: { pointerEvents: "none" }
1145
+ }, null, 8, rt)) : p("", !0)
1146
+ ]),
1147
+ (j.value || M.value || N.value) && B.value.labels.show ? (x(), m("g", it, [(x(!0), m(u, null, C(fn.value, (e) => (x(), m(u, { key: e.id }, [
1148
+ h("line", {
1149
+ x1: e.midBaseX,
1150
+ y1: e.midBaseY,
1151
+ x2: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 12),
1152
+ y2: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 12),
1153
+ stroke: V.value.backgroundColor,
1154
+ "stroke-width": B.value.labels.connector.strokeWidth * 3,
1155
+ "pointer-events": "none"
1156
+ }, null, 8, at),
1157
+ h("line", {
1158
+ x1: e.midBaseX,
1159
+ y1: e.midBaseY,
1160
+ x2: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 12),
1161
+ y2: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 12),
1162
+ stroke: B.value.labels.connector.stroke,
1163
+ "stroke-width": B.value.labels.connector.strokeWidth,
1164
+ "pointer-events": "none"
1165
+ }, null, 8, ot),
1166
+ B.value.labels.marker.show ? (x(), m("circle", {
1167
+ key: 0,
1168
+ cx: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 12),
1169
+ cy: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 12),
1170
+ r: B.value.labels.marker.radius,
1171
+ stroke: B.value.labels.marker.stroke,
1172
+ "stroke-width": B.value.labels.marker.strokeWidth,
1173
+ fill: e.groupColor,
1174
+ "pointer-events": "none"
1175
+ }, null, 8, st)) : p("", !0),
1176
+ h("text", {
1177
+ transform: `
1178
+ translate(
1179
+ ${Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 24)},
1180
+ ${Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.labels.offset + 24)}
1181
+ ) rotate(${-X.value})
1182
+ `,
1183
+ fill: B.value.labels.useSerieColor ? e.groupColor : B.value.labels.color,
1184
+ "text-anchor": vn(e.theta),
1185
+ "font-size": B.value.labels.fontSize,
1186
+ "font-weight": B.value.labels.bold ? "bold" : "normal",
1187
+ dy: ".35em",
1188
+ "pointer-events": "none"
1189
+ }, T(On(e.value)), 9, ct)
1190
+ ], 64))), 128))])) : p("", !0),
1191
+ z.value.labels.show ? (x(), m("g", lt, [z.value.labels.curved ? (x(!0), m(u, { key: 0 }, C(Y.value.groups, (e, t) => (x(), m("text", {
1192
+ class: "vue-ui-chord-label-curved",
1193
+ key: `curved-label-${t}`,
1194
+ "font-size": z.value.labels.fontSize,
1195
+ "font-weight": z.value.labels.bold ? "bold" : "normal",
1196
+ fill: z.value.labels.adaptColorToBackground ? E(ae)(J.value.colors[t]) : z.value.labels.color
1197
+ }, [h("textPath", {
1198
+ href: `#labelPath-${t}_${A.value}`,
1199
+ startOffset: "50%",
1200
+ "text-anchor": "middle"
1201
+ }, T(J.value.labels[t]) + T(z.value.labels.showPercentage ? E(s)({
1202
+ p: " (",
1203
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
1204
+ s: "%)",
1205
+ r: z.value.labels.roundingPercentage
1206
+ }) : ""), 9, dt)], 8, ut))), 128)) : !j.value && !M.value && !N.value ? (x(!0), m(u, { key: 1 }, C(Y.value.groups, (e, t) => (x(), m("text", {
1207
+ class: "vue-ui-chord-label-straight",
1208
+ key: `label-${t}`,
1209
+ transform: `
1210
+ ${yn((e.startAngle + e.endAngle) / 2)}
1211
+ rotate(${-X.value})
1212
+ `,
1213
+ dy: ".35em",
1214
+ "text-anchor": _n(e) > Math.PI ? "end" : "start",
1215
+ "font-size": z.value.labels.fontSize,
1216
+ "font-weight": z.value.labels.bold ? "bold" : "normal",
1217
+ fill: z.value.labels.color,
1218
+ innerHTML: E(r)({
1219
+ content: E(ee)(Xn(e, t)),
1220
+ fontSize: z.value.labels.fontSize,
1221
+ fill: z.value.labels.color,
1222
+ x: 0,
1223
+ y: 0
1224
+ })
1225
+ }, null, 8, ft))), 128)) : p("", !0)])) : p("", !0)
1226
+ ], 8, Xe),
1227
+ w(e.$slots, "svg", { svg: {
1228
+ height: 600,
1229
+ width: 600,
1230
+ isPrintingImg: E(Xt) || E(Zt) || E(nr),
1231
+ isPrintingSvg: E(rr)
1232
+ } }, void 0, !0)
1233
+ ], 42, Ge)),
1234
+ e.$slots.hint ? (x(), m("div", pt, [w(e.$slots, "hint", y(_({
1235
+ hint: R.value.a11y.translations.keyboardNavigation,
1236
+ isVisible: Ut.value
1237
+ })), void 0, !0)])) : p("", !0),
1238
+ e.$slots.watermark ? (x(), m("div", mt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Xt) || E(Zt) || E(nr) || E(rr) })), void 0, !0)])) : p("", !0),
1239
+ h("div", { id: `legend-bottom-${A.value}` }, null, 8, ht),
1240
+ Bt.value && (V.value.legend.show || e.$slots.legend) ? (x(), f(De, {
1241
+ key: 7,
1242
+ to: V.value.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1243
+ }, [h("div", {
1244
+ ref_key: "chartLegend",
1245
+ ref: Mt
1246
+ }, [w(e.$slots, "legend", { legend: Gn.value }, () => [V.value.legend.show ? (x(), f(Te, {
1247
+ key: `legend_${Lt.value}`,
1248
+ legendSet: Gn.value,
1249
+ config: Kn.value,
1250
+ isCursorPointer: H.value,
1251
+ onClickMarker: t[0] ||= ({ legend: e }) => Wn(e.id)
1252
+ }, Oe({
1253
+ item: D(({ legend: e }) => [h("div", {
1254
+ style: b({ opacity: N.value ? N.value === e.id ? 1 : .3 : 1 }),
1255
+ onClick: (t) => e.select()
1256
+ }, T(e.name), 13, gt)]),
1257
+ _: 2
1258
+ }, [e.$slots.pattern ? {
1259
+ name: "legend-pattern",
1260
+ fn: D(({ legend: e, index: t }) => [Ae(ve, {
1261
+ shape: e.shape,
1262
+ radius: 30,
1263
+ stroke: "none",
1264
+ plot: {
1265
+ x: 30,
1266
+ y: 30
1267
+ },
1268
+ fill: `url(#pattern_${A.value}_${t})`
1269
+ }, null, 8, ["shape", "fill"])]),
1270
+ key: "0"
1271
+ } : void 0]), 1032, [
1272
+ "legendSet",
1273
+ "config",
1274
+ "isCursorPointer"
1275
+ ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1276
+ e.$slots.source ? (x(), m("div", {
1277
+ key: 8,
1278
+ ref_key: "source",
1279
+ ref: Nt,
1280
+ dir: "auto"
1281
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1282
+ X.value === R.value.initialRotation ? p("", !0) : (x(), m("div", _t, [w(e.$slots, "reset-action", { reset: Un }, () => [h("button", {
1283
+ "data-cy-reset": "",
1284
+ tabindex: "0",
1285
+ role: "button",
1286
+ class: "vue-data-ui-refresh-button",
1287
+ style: b({
1288
+ background: V.value.backgroundColor,
1289
+ cursor: H.value ? "pointer" : "default"
1290
+ }),
1291
+ onClick: Un
1292
+ }, [Ae(E(bt), {
1293
+ name: "refresh",
1294
+ stroke: V.value.color
1295
+ }, null, 8, ["stroke"])], 4)], !0)])),
1296
+ k.value && R.value.userOptions.buttons.table ? (x(), f(Fe(Zn.value.component), je({ key: 10 }, Zn.value.props, {
1297
+ ref_key: "tableUnit",
1298
+ ref: Vt,
1299
+ onClose: Qn
1300
+ }), Oe({
1301
+ content: D(() => [(x(), f(E(xt), {
1302
+ key: `table_${It.value}`,
1303
+ colNames: qn.value.colNames,
1304
+ head: qn.value.head,
1305
+ body: qn.value.body,
1306
+ config: qn.value.config,
1307
+ title: R.value.table.useDialog ? "" : Zn.value.title,
1308
+ withCloseButton: !R.value.table.useDialog,
1309
+ isCursorPointer: H.value,
1310
+ onClose: Qn
1311
+ }, {
1312
+ th: D(({ th: e }) => [ke(T(e.name), 1)]),
1313
+ td: D(({ td: e }) => [h("div", vt, T(e.name ? e.name : On(e)), 1)]),
1314
+ _: 1
1315
+ }, 8, [
1316
+ "colNames",
1317
+ "head",
1318
+ "body",
1319
+ "config",
1320
+ "title",
1321
+ "withCloseButton",
1322
+ "isCursorPointer"
1323
+ ]))]),
1324
+ _: 2
1325
+ }, [R.value.table.useDialog ? {
1326
+ name: "title",
1327
+ fn: D(() => [ke(T(Zn.value.title), 1)]),
1328
+ key: "0"
1329
+ } : void 0, R.value.table.useDialog ? {
1330
+ name: "actions",
1331
+ fn: D(() => [h("button", {
1332
+ tabindex: "0",
1333
+ class: "vue-ui-user-options-button",
1334
+ onClick: t[1] ||= (e) => Jn(R.value.userOptions.callbacks.csv),
1335
+ style: b({ cursor: H.value ? "pointer" : "default" })
1336
+ }, [Ae(E(bt), {
1337
+ name: "fileCsv",
1338
+ stroke: Zn.value.props.color
1339
+ }, null, 8, ["stroke"])], 4)]),
1340
+ key: "1"
1341
+ } : void 0]), 1040)) : p("", !0),
1342
+ w(e.$slots, "skeleton", {}, () => [E(Gt) ? (x(), f(fe, { key: 0 })) : p("", !0)], !0)
1343
+ ], 46, He));
1344
+ }
1345
+ }, [["__scopeId", "data-v-0f098698"]]);
1346
+ //#endregion
1347
+ export { Ve as n, yt as t };