vue-data-ui 3.25.5 → 3.25.7

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-UfoQuPMf.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-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.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-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.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-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.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-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.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
@@ -1,1347 +0,0 @@
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 u, r as ie, t as ae, w as oe } from "./lib-Dql7cqyA.js";
3
- import { n as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-C_mX5pOZ.js";
5
- import { t as le } from "./usePrinter-DISD7q5m.js";
6
- import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as fe } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as me } from "./useChartExport-iwOqiIWX.js";
10
- import { t as he } from "./img-DhGApYG0.js";
11
- import { n as ge } from "./Title-CPHi-evi.js";
12
- import { t as _e } from "./Shape-CIqU-p2F.js";
13
- import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
15
- import { t as xe } from "./A11yDataTable-DdRsVULz.js";
16
- import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
17
- import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
18
- import { t as we } from "./Legend-X4kF4PvW.js";
19
- import { t as Te } from "./vue_ui_chord-DPfS1Umc.js";
20
- import { Fragment as d, Teleport as Ee, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ae, nextTick as je, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Me, onMounted as Ne, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as E, toRefs as Ie, unref as D, useCssVars as Le, watch as Re, withCtx as O, withModifiers as ze } from "vue";
21
- //#region src/components/vue-ui-chord.vue
22
- var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue = ["id"], We = [
23
- "xmlns",
24
- "viewBox",
25
- "aria-describedby"
26
- ], Ge = ["width", "height"], Ke = { key: 1 }, qe = ["id", "d"], Je = { key: 2 }, Ye = ["transform"], Xe = [
27
- "d",
28
- "fill",
29
- "stroke",
30
- "stroke-width",
31
- "onMouseenter",
32
- "onMouseleave",
33
- "onClick"
34
- ], Ze = [
35
- "d",
36
- "fill",
37
- "stroke",
38
- "stroke-width"
39
- ], Qe = ["d", "fill"], $e = [
40
- "d",
41
- "fill",
42
- "stroke",
43
- "stroke-width",
44
- "onMouseenter",
45
- "onClick",
46
- "onMouseleave"
47
- ], et = [
48
- "d",
49
- "fill",
50
- "stroke",
51
- "stroke-width"
52
- ], tt = [
53
- "d",
54
- "fill",
55
- "stroke",
56
- "stroke-width"
57
- ], nt = [
58
- "d",
59
- "fill",
60
- "stroke",
61
- "stroke-width"
62
- ], rt = { key: 0 }, it = [
63
- "x1",
64
- "y1",
65
- "x2",
66
- "y2",
67
- "stroke",
68
- "stroke-width"
69
- ], at = [
70
- "x1",
71
- "y1",
72
- "x2",
73
- "y2",
74
- "stroke",
75
- "stroke-width"
76
- ], ot = [
77
- "cx",
78
- "cy",
79
- "r",
80
- "stroke",
81
- "stroke-width",
82
- "fill"
83
- ], st = [
84
- "transform",
85
- "fill",
86
- "text-anchor",
87
- "font-size",
88
- "font-weight"
89
- ], ct = { key: 1 }, lt = [
90
- "font-size",
91
- "font-weight",
92
- "fill"
93
- ], ut = ["href"], dt = [
94
- "transform",
95
- "text-anchor",
96
- "font-size",
97
- "font-weight",
98
- "fill",
99
- "innerHTML"
100
- ], ft = {
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
- }, pt = {
111
- key: 6,
112
- class: "vue-data-ui-watermark"
113
- }, mt = ["id"], ht = ["onClick"], gt = {
114
- key: 9,
115
- "data-dom-to-png-ignore": "",
116
- class: "reset-wrapper"
117
- }, _t = { style: {
118
- "text-align": "right",
119
- width: "100%"
120
- } }, vt = /*#__PURE__*/ ve({
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: ve, emit: Be }) {
143
- Le((e) => ({ v56e3cb5f: e.slicerColor }));
144
- let vt = _(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), yt = _(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), bt = _(() => import("./DataTable-COIO9gi4.js")), xt = _(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), St = _(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Ct = _(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), wt = _(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = pe(), k = e, Ot = Be, A = C(!!k.dataset && Object.hasOwn(k.dataset, "matrix")), j = C(u()), M = C(null), N = C(null), P = C(null), kt = C(0), F = C(null), At = C(null), jt = C(null), Mt = C(null), Nt = C(null), Pt = C(0), Ft = C(0), It = C(0), Lt = C(!1), I = Fe(null), L = Fe(null), Rt = C(!1), zt = C(null), Bt = C(null), R = C("group"), z = C(null), Vt = C(!1), B = C(Qt());
145
- se({
146
- config: () => B.value,
147
- dataset: () => k.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 V = f(() => B.value.userOptions.useCursorPointer), Ht = f(() => 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: B.value.skeletonConfig ?? {}
178
- })), { loading: Ut, FINAL_DATASET: H, manualLoading: Wt } = ue({
179
- ...Ie(k),
180
- FINAL_CONFIG: B,
181
- prepareConfig: Qt,
182
- callback: () => {
183
- Promise.resolve().then(async () => {
184
- await je(), W.value.showTable = B.value.table.show;
185
- });
186
- },
187
- skeletonDataset: k.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: B.value,
224
- userConfig: Ht.value
225
- })
226
- }), { userOptionsVisible: Gt, setUserOptionsVisibility: Kt, keepUserOptionState: qt } = Se({ config: B.value }), { svgRef: U } = Ce({ config: B.value.style.chart.title }), { isPrinting: Jt, isImaging: Yt, generatePdf: Xt, generateImage: Zt } = le({
227
- elementId: `chord_${j.value}`,
228
- fileName: B.value.style.chart.title.text || "vue-ui-chord",
229
- options: B.value.userOptions.print
230
- }), W = C({ showTable: B.value.table.show });
231
- function Qt() {
232
- let e = fe({
233
- userConfig: k.config,
234
- defaultConfig: Tt
235
- }), t = e.theme;
236
- if (!t) return e;
237
- if (!Et.value(e)) return Dt(e), e;
238
- let n = fe({
239
- userConfig: Te[t] || k.config,
240
- defaultConfig: e
241
- }), r = fe({
242
- userConfig: k.config,
243
- defaultConfig: n
244
- });
245
- return {
246
- ...r,
247
- customPalette: r.customPalette.length ? r.customPalette : c[t] || i
248
- };
249
- }
250
- Re(() => k.config, (e) => {
251
- Ut.value || (B.value = Qt()), Gt.value = !B.value.userOptions.showOnChartHover, en(), Pt.value += 1, Ft.value += 1, It.value += 1, X.value = B.value.initialRotation, W.value.showTable = B.value.table.show;
252
- }, { deep: !0 });
253
- let G = f(() => B.value.debug);
254
- Re(() => k.dataset, () => {
255
- $t(), en(), Pt.value += 1, Ft.value += 1, It.value += 1;
256
- });
257
- function $t() {
258
- if (a(k.dataset)) {
259
- re({
260
- componentName: "VueUiChord",
261
- type: "dataset",
262
- debug: G.value
263
- }), A.value = !1, Wt.value = !0;
264
- return;
265
- }
266
- let e = te({
267
- datasetObject: k.dataset,
268
- requiredAttributes: ["matrix"]
269
- });
270
- if (e.length) {
271
- G.value && e.forEach((e) => {
272
- re({
273
- componentName: "VueUiChord",
274
- type: "datasetAttribute",
275
- property: e
276
- });
277
- }), A.value = !1, Wt.value = !0;
278
- return;
279
- }
280
- let t = k.dataset.matrix;
281
- if (!Array.isArray(t) || t.length < 2) {
282
- G.value && console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1, Wt.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
- G.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"}]`), A.value = !1, Wt.value = !0;
290
- return;
291
- }
292
- A.value = !0, Wt.value = !1;
293
- }
294
- function en() {
295
- if ($t(), B.value.responsive) {
296
- let e = ye(() => {
297
- let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = be({
298
- chart: F.value,
299
- title: B.value.style.chart.title.text ? At.value : null,
300
- legend: B.value.style.chart.legend.show ? jt.value : null,
301
- source: Mt.value,
302
- noTitle: Nt.value
303
- }), o = i + a + r + n;
304
- e < t ? F.value.style.width = "100%" : (F.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
305
- }, 100);
306
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = F.value.parentNode, I.value.observe(L.value), e();
307
- }
308
- nn.value = setTimeout(() => {
309
- Lt.value = !0;
310
- }, 500);
311
- }
312
- function tn() {
313
- if (!H.value || !Object.hasOwn(H.value, "matrix") || H.value.matrix.length < 2) {
314
- G.value && console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1;
315
- return;
316
- }
317
- H.value.matrix.forEach((e, t) => {
318
- e.length !== H.value.matrix.length && (G.value && console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${t} has ${e.length} elements instead of the required ${H.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 (${H.value.matrix.length})`), A.value = !1);
319
- });
320
- }
321
- let nn = C(null);
322
- Ne(() => {
323
- Rt.value = !0, en();
324
- });
325
- let K = C({
326
- height: 600,
327
- width: 600
328
- }), rn = f(() => B.value.userOptions.show && !B.value.style.chart.title.text), an = f(() => oe(B.value.customPalette)), q = f(() => ({
329
- inner: K.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
330
- outer: K.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
331
- })), on = f(() => B.value.style.chart.arcs.padAngle / 100), J = f(() => ({
332
- matrix: H.value.matrix ?? [[0]],
333
- labels: H.value.labels ?? [""],
334
- colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => o(e)) : H.value.matrix.map((e, t) => an.value[t] || i[t] || i[t % i.length])
335
- }));
336
- function sn(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_${j.value}_${e}`,
345
- startAngle: n,
346
- endAngle: r,
347
- name: J.value.labels[e],
348
- id: u(),
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_${j.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: u()
386
- });
387
- }
388
- return {
389
- groups: s,
390
- chords: ee
391
- };
392
- }
393
- let Y = f(() => {
394
- let e = sn(J.value.matrix, on.value);
395
- return tn(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
396
- }), cn = f(() => {
397
- let e = q.value.outer + B.value.style.chart.ribbons.labels.offset + 12, t = B.value.style.chart.ribbons.labels.fontSize * .6, n = [];
398
- if (N.value) {
399
- let r = N.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 P.value && r(P.value), M.value && r(M.value.id), n;
455
- }), ln = f(() => {
456
- let e = cn.value.map((e) => ({ ...e })).sort((e, t) => e.theta - t.theta), t = B.value.style.chart.ribbons.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 un(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, u = +(t - e > Math.PI);
470
- return `M${o},${s} A${n},${n} 0 ${u} 1 ${c},${l} L${ee},${te} A${r},${r} 0 ${u} 0 ${ne},${re} Z`;
471
- }
472
- function dn(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, u = 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},${u}Q0,0 ${s},${c}Z`;
475
- }
476
- let fn = f(() => X.value * Math.PI / 180);
477
- function pn(e) {
478
- return (e.startAngle + e.endAngle) / 2;
479
- }
480
- function mn(e) {
481
- return ((pn(e) + fn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
482
- }
483
- function hn(e) {
484
- let t = e + fn.value;
485
- return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
486
- }
487
- function gn(e) {
488
- let t = e - Math.PI / 2;
489
- return `translate(${Math.cos(t) * (q.value.outer + B.value.style.chart.arcs.labels.offset + 24)},${Math.sin(t) * (q.value.outer + B.value.style.chart.arcs.labels.offset + 24)})`;
490
- }
491
- function _n(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 = C(B.value.initialRotation), vn = C(!1), yn = 0, bn = 0;
496
- function xn(e) {
497
- let t = U.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 Sn(e) {
501
- !B.value.enableRotation || In.value || (e.preventDefault(), vn.value = !0, yn = X.value, bn = xn(e));
502
- }
503
- function Cn(e) {
504
- if (!vn.value) return;
505
- let t = xn(e);
506
- X.value = yn + (t - bn) * 180 / Math.PI;
507
- }
508
- function wn() {
509
- vn.value = !1;
510
- }
511
- function Tn(e) {
512
- return ne(B.value.style.chart.ribbons.labels.formatter, e, s({
513
- p: B.value.style.chart.ribbons.labels.prefix,
514
- v: e,
515
- s: B.value.style.chart.ribbons.labels.suffix,
516
- r: B.value.style.chart.ribbons.labels.rounding
517
- }));
518
- }
519
- Ne(() => {
520
- window.addEventListener("mousemove", Cn), window.addEventListener("mouseup", wn), window.addEventListener("touchmove", Cn, { passive: !1 }), window.addEventListener("touchend", wn);
521
- }), Me(() => {
522
- window.removeEventListener("mousemove", Cn), window.removeEventListener("mouseup", wn), window.removeEventListener("touchmove", Cn), window.removeEventListener("touchend", wn), clearTimeout(nn.value), I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
523
- });
524
- let En = C(!1);
525
- function Dn(e) {
526
- En.value = e, kt.value += 1;
527
- }
528
- function On(e, t) {
529
- B.value.events.datapointEnter && B.value.events.datapointEnter({
530
- datapoint: e,
531
- seriesIndex: t
532
- }), !P.value && (M.value = e);
533
- }
534
- function kn(e, t) {
535
- M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
536
- datapoint: e,
537
- seriesIndex: t
538
- });
539
- }
540
- function An(e, t) {
541
- Ot("selectGroup", e), B.value.events.datapointClick && B.value.events.datapointClick({
542
- datapoint: e,
543
- seriesIndex: t
544
- });
545
- }
546
- function jn(e, t) {
547
- B.value.events.datapointEnter && B.value.events.datapointEnter({
548
- datapoint: e,
549
- seriesIndex: t
550
- }), !P.value && (N.value = e);
551
- }
552
- function Mn(e, t) {
553
- N.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
554
- datapoint: e,
555
- seriesIndex: t
556
- });
557
- }
558
- function Nn(e, t) {
559
- Ot("selectRibbon", e), B.value.events.datapointClick && B.value.events.datapointClick({
560
- datapoint: e,
561
- seriesIndex: t
562
- });
563
- }
564
- function Pn(e) {
565
- return !P.value && !M.value && !N.value ? .8 : (P.value ? P.value === e.source.groupId : M.value ? M.value.id === e.source.groupId : N.value?.id === e.id) ? 1 : .1;
566
- }
567
- function Fn(e) {
568
- return !P.value && !M.value && !N.value || (P.value ? P.value === e.id : M.value ? M.value.id === e.id : [N.value?.source.groupId, N.value?.target.groupId].includes(e.id)) ? 1 : .3;
569
- }
570
- let In = C(!1);
571
- function Ln() {
572
- In.value = !In.value;
573
- }
574
- function Rn() {
575
- W.value.showTable = !W.value.showTable;
576
- }
577
- function zn() {
578
- return Y.value;
579
- }
580
- let Z = C(null);
581
- function Bn() {
582
- let e = B.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
- Me(() => {
590
- Z.value !== null && cancelAnimationFrame(Z.value);
591
- });
592
- function Vn(e) {
593
- e === P.value ? (P.value = null, Ot("selectLegend", null)) : (P.value = e, Ot("selectLegend", Y.value.groups.find((t) => t.id === e)));
594
- }
595
- let Hn = f(() => Y.value.groups.map((e, t) => ({
596
- name: e.name,
597
- color: e.color,
598
- shape: "circle",
599
- patternIndex: t,
600
- pattern: `pattern_${j.value}_${t}`,
601
- id: e.id,
602
- select: () => Vn(e.id),
603
- opacity: P.value ? P.value === e.id ? 1 : .3 : 1
604
- }))), Un = f(() => ({
605
- cy: "chord-div-legend",
606
- backgroundColor: B.value.style.chart.legend.backgroundColor,
607
- color: B.value.style.chart.legend.color,
608
- fontSize: B.value.style.chart.legend.fontSize,
609
- paddingBottom: 12,
610
- fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
611
- })), Q = f(() => ({
612
- head: Y.value.groups.map((e, t) => ({
613
- name: e.name || t,
614
- color: e.color
615
- })),
616
- body: J.value.matrix
617
- })), Wn = f(() => {
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: B.value.table.th.backgroundColor,
629
- color: B.value.table.th.color,
630
- outline: B.value.table.th.outline
631
- },
632
- td: {
633
- backgroundColor: B.value.table.td.backgroundColor,
634
- color: B.value.table.td.color,
635
- outline: B.value.table.td.outline
636
- },
637
- breakpoint: B.value.table.responsiveBreakpoint
638
- }
639
- };
640
- });
641
- function Gn(e = null) {
642
- je(() => {
643
- let r = J.value.matrix.map((e, t) => [[J.value.labels[t] || t], e]), i = [
644
- [B.value.style.chart.title.text],
645
- [B.value.style.chart.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: B.value.style.chart.title.text || "vue-ui-chord"
651
- });
652
- });
653
- }
654
- async function Kn({ scale: e = 2 } = {}) {
655
- if (!F.value) return;
656
- let { width: t, height: n } = F.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
657
- domElement: F.value,
658
- base64: !0,
659
- img: !0,
660
- scale: e
661
- });
662
- return {
663
- imageUri: i,
664
- base64: a,
665
- title: B.value.style.chart.title.text,
666
- width: t,
667
- height: n,
668
- aspectRatio: r
669
- };
670
- }
671
- function qn(e, t) {
672
- return `${J.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? s({
673
- p: " (",
674
- v: isNaN(e.proportion) ? 0 : e.proportion * 100,
675
- s: "%)",
676
- r: B.value.style.chart.arcs.labels.roundingPercentage
677
- }) : ""}`;
678
- }
679
- let Jn = f(() => {
680
- let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
681
- return {
682
- component: e ? wt : vt,
683
- title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
684
- props: e ? {
685
- backgroundColor: B.value.table.th.backgroundColor,
686
- color: B.value.table.th.color,
687
- headerColor: B.value.table.th.color,
688
- headerBg: B.value.table.th.backgroundColor,
689
- isFullscreen: En.value,
690
- fullscreenParent: F.value,
691
- forcedWidth: Math.min(800, window.innerWidth * .8),
692
- isCursorPointer: V.value
693
- } : {
694
- hideDetails: !0,
695
- config: {
696
- open: t,
697
- maxHeight: 1e4,
698
- body: {
699
- backgroundColor: B.value.style.chart.backgroundColor,
700
- color: B.value.style.chart.color
701
- },
702
- head: {
703
- backgroundColor: B.value.style.chart.backgroundColor,
704
- color: B.value.style.chart.color
705
- }
706
- }
707
- }
708
- };
709
- });
710
- Re(() => W.value.showTable, (e) => {
711
- B.value.table.show || (e && B.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
712
- });
713
- function Yn() {
714
- W.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
715
- }
716
- let Xn = f(() => B.value.style.chart.backgroundColor), Zn = f(() => B.value.style.chart.legend), Qn = f(() => B.value.style.chart.title), { isCallbackImaging: $n, isCallbackSvg: er, generateSvg: tr, onGenerateImage: nr } = me({
717
- svg: U,
718
- title: Qn,
719
- legend: Zn,
720
- legendItems: Hn,
721
- backgroundColor: Xn,
722
- getSvgCallback: () => B.value.userOptions.callbacks.svg,
723
- generateImage: Zt
724
- });
725
- async function rr() {
726
- if (Ot("copyAlt", {
727
- config: B.value,
728
- dataset: J.value
729
- }), !B.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(B.value.userOptions.callbacks.altCopy({
734
- config: B.value,
735
- dataset: J.value
736
- }));
737
- }
738
- let ir = f(() => (M.value ? Y.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? Y.value.chords.filter((e) => e.source.groupId === P.value) : Y.value.chords).filter((e) => e.source.value)), $ = f(() => ({
739
- groups: Y.value.groups.map((e, t) => ({
740
- type: "group",
741
- index: t,
742
- item: e
743
- })),
744
- ribbons: ir.value.map((e, t) => ({
745
- type: "ribbon",
746
- index: t,
747
- item: {
748
- ...e,
749
- path: dn(e.source, e.target),
750
- color: J.value.colors[e.source.index]
751
- }
752
- }))
753
- })), ar = f(() => ({
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) => Tn(e))])
756
- }));
757
- function or(e) {
758
- let t = $.value.groups[e];
759
- t && (R.value = "group", z.value = e, N.value = null, M.value = t.item);
760
- }
761
- function sr(e) {
762
- let t = $.value.ribbons[e];
763
- t && (R.value = "ribbon", z.value = e, M.value = null, N.value = t.item);
764
- }
765
- function cr() {
766
- z.value = null, R.value = "group", M.value = null, N.value = null;
767
- }
768
- function lr() {
769
- Vt.value = !0, R.value = "group", z.value = null;
770
- }
771
- function ur() {
772
- Vt.value = !1, cr();
773
- }
774
- function dr(e) {
775
- if (!U.value || In.value || document.activeElement !== U.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
- cr();
780
- return;
781
- }
782
- if (r) {
783
- R.value = "group", $.value.groups.length && or(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
784
- return;
785
- }
786
- if (i) {
787
- if (!$.value.ribbons.length) return;
788
- R.value = "ribbon", sr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
789
- return;
790
- }
791
- if (a) {
792
- if (R.value === "group") {
793
- let e = $.value.groups[z.value];
794
- e && An(e.item, e.index);
795
- } else {
796
- let e = $.value.ribbons[z.value];
797
- e && Nn(e.item, e.index);
798
- }
799
- return;
800
- }
801
- let s = R.value === "group" ? $.value.groups : $.value.ribbons;
802
- if (!s.length) return;
803
- let c = z.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)), R.value === "group" ? or(c) : sr(c);
805
- }
806
- return ve({
807
- getData: zn,
808
- getImage: Kn,
809
- generateCsv: Gn,
810
- generateImage: Zt,
811
- generateSvg: tr,
812
- generatePdf: Xt,
813
- toggleAnnotator: Ln,
814
- toggleTable: Rn,
815
- toggleFullscreen: Dn,
816
- copyAlt: rr
817
- }), (e, t) => (S(), h("div", {
818
- ref_key: "chordChart",
819
- ref: F,
820
- class: y({
821
- "vue-data-ui-component": !0,
822
- "vue-ui-chord": !0,
823
- "vue-data-ui-wrapper-fullscreen": En.value,
824
- "vue-data-ui-responsive": B.value.responsive
825
- }),
826
- style: x(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
827
- id: `chord_${j.value}`,
828
- onMouseenter: t[2] ||= () => D(Kt)(!0),
829
- onMouseleave: t[3] ||= () => D(Kt)(!1)
830
- }, [
831
- g("div", {
832
- id: `chart-instructions-${j.value}`,
833
- class: "sr-only"
834
- }, [g("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
835
- ar.value?.rows?.length ? (S(), p(xe, {
836
- key: 0,
837
- uid: j.value,
838
- head: ar.value.headers,
839
- body: ar.value.rows,
840
- notice: B.value.a11y.translations.tableAvailable,
841
- caption: B.value.a11y.translations.tableCaption
842
- }, null, 8, [
843
- "uid",
844
- "head",
845
- "body",
846
- "notice",
847
- "caption"
848
- ])) : m("", !0),
849
- B.value.userOptions.buttons.annotator && D(U) ? (S(), p(D(St), {
850
- key: 1,
851
- color: B.value.style.chart.color,
852
- backgroundColor: B.value.style.chart.backgroundColor,
853
- active: In.value,
854
- svgRef: D(U),
855
- isCursorPointer: V.value,
856
- palette: B.value.userOptions.annotatorPalette,
857
- onClose: Ln
858
- }, {
859
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
860
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
861
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
862
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
863
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
864
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
865
- _: 3
866
- }, 8, [
867
- "color",
868
- "backgroundColor",
869
- "active",
870
- "svgRef",
871
- "isCursorPointer",
872
- "palette"
873
- ])) : m("", !0),
874
- T(e.$slots, "userConfig", {}, void 0, !0),
875
- rn.value ? (S(), h("div", {
876
- key: 2,
877
- ref_key: "noTitle",
878
- ref: Nt,
879
- class: "vue-data-ui-no-title-space",
880
- style: "height:36px; width: 100%;background:transparent"
881
- }, null, 512)) : m("", !0),
882
- B.value.style.chart.title.text ? (S(), h("div", {
883
- key: 3,
884
- ref_key: "chartTitle",
885
- ref: At,
886
- style: "width:100%;background:transparent;padding-bottom:24px"
887
- }, [(S(), p(ge, {
888
- key: `title_${Pt.value}`,
889
- config: {
890
- title: {
891
- cy: "chord-div-title",
892
- ...B.value.style.chart.title
893
- },
894
- subtitle: {
895
- cy: "chord-div-subtitle",
896
- ...B.value.style.chart.title.subtitle
897
- }
898
- }
899
- }, null, 8, ["config"]))], 512)) : m("", !0),
900
- g("div", { id: `legend-top-${j.value}` }, null, 8, Ue),
901
- B.value.userOptions.show && A.value && (D(qt) || D(Gt)) ? (S(), p(D(Ct), {
902
- ref_key: "userOptionsRef",
903
- ref: Bt,
904
- key: `user_option_${kt.value}`,
905
- backgroundColor: B.value.style.chart.backgroundColor,
906
- color: B.value.style.chart.color,
907
- isPrinting: D(Jt),
908
- isImaging: D(Yt),
909
- uid: j.value,
910
- hasTooltip: !1,
911
- hasPdf: B.value.userOptions.buttons.pdf,
912
- hasImg: B.value.userOptions.buttons.img,
913
- hasSvg: B.value.userOptions.buttons.svg,
914
- hasXls: B.value.userOptions.buttons.csv,
915
- hasTable: B.value.userOptions.buttons.table,
916
- hasLabel: !1,
917
- hasFullscreen: B.value.userOptions.buttons.fullscreen,
918
- hasAltCopy: B.value.userOptions.buttons.altCopy,
919
- isFullscreen: En.value,
920
- chartElement: F.value,
921
- position: B.value.userOptions.position,
922
- titles: { ...B.value.userOptions.buttonTitles },
923
- hasAnnotator: B.value.userOptions.buttons.annotator,
924
- isAnnotation: In.value,
925
- callbacks: B.value.userOptions.callbacks,
926
- printScale: B.value.userOptions.print.scale,
927
- tableDialog: B.value.table.useDialog,
928
- isCursorPointer: V.value,
929
- onToggleFullscreen: Dn,
930
- onGeneratePdf: D(Xt),
931
- onGenerateCsv: Gn,
932
- onGenerateImage: D(nr),
933
- onGenerateSvg: D(tr),
934
- onToggleTable: Rn,
935
- onToggleAnnotator: Ln,
936
- onCopyAlt: rr,
937
- style: x({ visibility: D(qt) ? D(Gt) ? "visible" : "hidden" : "visible" })
938
- }, De({ _: 2 }, [
939
- e.$slots.menuIcon ? {
940
- name: "menuIcon",
941
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
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: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
950
- key: "1"
951
- } : void 0,
952
- e.$slots.optionCsv ? {
953
- name: "optionCsv",
954
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
955
- key: "2"
956
- } : void 0,
957
- e.$slots.optionImg ? {
958
- name: "optionImg",
959
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
960
- key: "3"
961
- } : void 0,
962
- e.$slots.optionSvg ? {
963
- name: "optionSvg",
964
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
965
- key: "4"
966
- } : void 0,
967
- e.$slots.optionTable ? {
968
- name: "optionTable",
969
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
970
- key: "5"
971
- } : void 0,
972
- e.$slots.optionFullscreen ? {
973
- name: "optionFullscreen",
974
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
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: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
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: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
991
- key: "8"
992
- } : void 0,
993
- e.$slots["custom-menu-before"] ? {
994
- name: "custom-menu-before",
995
- fn: O(() => [T(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: O(() => [T(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("."))) : m("", !0),
1004
- (S(), h("svg", {
1005
- xmlns: D(ae),
1006
- ref_key: "svgRef",
1007
- ref: U,
1008
- viewBox: `0 0 ${K.value.width} ${K.value.height}`,
1009
- "aria-describedby": `chart-instructions-${j.value}`,
1010
- tabindex: "0",
1011
- preserveAspectRatio: "xMidYMid meet",
1012
- style: { overflow: "visible" },
1013
- class: y({
1014
- "vue-ui-chord-rotating": vn.value,
1015
- "vue-ui-chord-idle": !vn.value
1016
- }),
1017
- onMousedown: ze(Sn, ["prevent"]),
1018
- onTouchstart: ze(Sn, ["prevent"]),
1019
- onFocus: lr,
1020
- onBlur: ur,
1021
- onKeydown: dr
1022
- }, [
1023
- ke(D(xt)),
1024
- e.$slots["chart-background"] ? (S(), h("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
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
1032
- B.value.style.chart.arcs.labels.curved ? (S(), h("defs", Ke, [(S(!0), h(d, null, w(Y.value.groups, (e, t) => (S(), h("path", {
1033
- key: `labelPath-${t}`,
1034
- id: `labelPath-${t}_${j.value}`,
1035
- d: _n(e.startAngle, e.endAngle, (q.value.inner + q.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
1036
- fill: "none"
1037
- }, null, 8, qe))), 128))])) : m("", !0),
1038
- e.$slots.pattern ? (S(), h("g", Je, [(S(!0), h(d, null, w(Y.value.groups, (t, n) => (S(), h("defs", null, [T(e.$slots, "pattern", Ae({ ref_for: !0 }, {
1039
- seriesIndex: t.index,
1040
- patternId: `pattern_${j.value}_${n}`
1041
- }), void 0, !0)]))), 256))])) : m("", !0),
1042
- g("g", { transform: `translate(${K.value.width / 2}, ${K.value.height / 2}) rotate(${X.value})` }, [
1043
- (S(!0), h(d, null, w(Y.value.groups, (t, n) => (S(), h("g", null, [(S(), h("path", {
1044
- class: y({
1045
- "vue-ui-chord-arc": !0,
1046
- "vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
1047
- }),
1048
- key: `arc-${n}`,
1049
- d: un(t.startAngle, t.endAngle, q.value.outer, q.value.inner),
1050
- fill: J.value.colors[n],
1051
- stroke: B.value.style.chart.arcs.stroke,
1052
- "stroke-width": B.value.style.chart.arcs.strokeWidth,
1053
- "stroke-linecap": "round",
1054
- "stroke-linejoin": "round",
1055
- style: x({ opacity: Fn(t) }),
1056
- onMouseenter: (e) => On(t, n),
1057
- onMouseleave: (e) => kn(t, n),
1058
- onClick: (e) => An(t, n)
1059
- }, null, 46, Xe)), e.$slots.pattern ? (S(), h("path", {
1060
- class: y({
1061
- "vue-ui-chord-arc": !0,
1062
- "vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
1063
- }),
1064
- key: `arc-${n}`,
1065
- d: un(t.startAngle, t.endAngle, q.value.outer, q.value.inner),
1066
- fill: `url(#${t.pattern})`,
1067
- stroke: B.value.style.chart.arcs.stroke,
1068
- "stroke-width": B.value.style.chart.arcs.strokeWidth,
1069
- "stroke-linecap": "round",
1070
- "stroke-linejoin": "round",
1071
- style: x({
1072
- opacity: Fn(t),
1073
- pointerEvents: "none"
1074
- })
1075
- }, null, 14, Ze)) : m("", !0)]))), 256)),
1076
- g("g", null, [
1077
- (S(!0), h(d, null, w(M.value ? Y.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? Y.value.chords.filter((e) => e.source.groupId === P.value) : Y.value.chords, (t, n) => (S(), h(d, { key: `ribbon-${t.id}` }, [
1078
- t.source.value ? (S(), h("path", {
1079
- key: 0,
1080
- class: y({ "vue-ui-chord-ribbon": !0 }),
1081
- d: dn(t.source, t.target),
1082
- fill: B.value.style.chart.backgroundColor,
1083
- style: x({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
1084
- }, null, 12, Qe)) : m("", !0),
1085
- t.source.value ? (S(), h("path", {
1086
- key: 1,
1087
- class: y({ "vue-ui-chord-ribbon": !0 }),
1088
- d: dn(t.source, t.target),
1089
- fill: J.value.colors[t.source.index],
1090
- stroke: B.value.style.chart.ribbons.stroke,
1091
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1092
- "stroke-linecap": "round",
1093
- "stroke-linejoin": "round",
1094
- style: x({ opacity: Pn(t) }),
1095
- onMouseenter: (e) => jn({
1096
- ...t,
1097
- path: dn(t.source, t.target),
1098
- color: J.value.colors[t.source.index]
1099
- }, n),
1100
- onClick: (e) => Nn({
1101
- ...t,
1102
- color: J.value.colors[t.source.index]
1103
- }, n),
1104
- onMouseleave: (e) => Mn({
1105
- ...t,
1106
- color: J.value.colors[t.source.index]
1107
- }, n)
1108
- }, null, 44, $e)) : m("", !0),
1109
- t.source.value && e.$slots.pattern ? (S(), h("path", {
1110
- key: 2,
1111
- class: y({ "vue-ui-chord-ribbon": !0 }),
1112
- d: dn(t.source, t.target),
1113
- fill: `url(#pattern_${j.value}_${t.source.index})`,
1114
- stroke: B.value.style.chart.ribbons.stroke,
1115
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1116
- "stroke-linecap": "round",
1117
- "stroke-linejoin": "round",
1118
- style: x({
1119
- opacity: Pn(t),
1120
- pointerEvents: "none"
1121
- })
1122
- }, null, 12, et)) : m("", !0)
1123
- ], 64))), 128)),
1124
- N.value ? (S(), h("path", {
1125
- key: 0,
1126
- d: N.value.path,
1127
- fill: N.value.color,
1128
- stroke: B.value.style.chart.ribbons.stroke,
1129
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1130
- "stroke-linecap": "round",
1131
- "stroke-linejoin": "round",
1132
- class: y({ "vue-ui-chord-ribbon": !0 }),
1133
- style: { pointerEvents: "none" }
1134
- }, null, 8, tt)) : m("", !0),
1135
- N.value && e.$slots.pattern ? (S(), h("path", {
1136
- key: 1,
1137
- d: N.value.path,
1138
- fill: `url(#${N.value.source.pattern})`,
1139
- stroke: B.value.style.chart.ribbons.stroke,
1140
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1141
- "stroke-linecap": "round",
1142
- "stroke-linejoin": "round",
1143
- class: y({ "vue-ui-chord-ribbon": !0 }),
1144
- style: { pointerEvents: "none" }
1145
- }, null, 8, nt)) : m("", !0)
1146
- ]),
1147
- (M.value || N.value || P.value) && B.value.style.chart.ribbons.labels.show ? (S(), h("g", rt, [(S(!0), h(d, null, w(ln.value, (e) => (S(), h(d, { key: e.id }, [
1148
- g("line", {
1149
- x1: e.midBaseX,
1150
- y1: e.midBaseY,
1151
- x2: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1152
- y2: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1153
- stroke: B.value.style.chart.backgroundColor,
1154
- "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
1155
- "pointer-events": "none"
1156
- }, null, 8, it),
1157
- g("line", {
1158
- x1: e.midBaseX,
1159
- y1: e.midBaseY,
1160
- x2: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1161
- y2: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1162
- stroke: B.value.style.chart.ribbons.labels.connector.stroke,
1163
- "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth,
1164
- "pointer-events": "none"
1165
- }, null, 8, at),
1166
- B.value.style.chart.ribbons.labels.marker.show ? (S(), h("circle", {
1167
- key: 0,
1168
- cx: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1169
- cy: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1170
- r: B.value.style.chart.ribbons.labels.marker.radius,
1171
- stroke: B.value.style.chart.ribbons.labels.marker.stroke,
1172
- "stroke-width": B.value.style.chart.ribbons.labels.marker.strokeWidth,
1173
- fill: e.groupColor,
1174
- "pointer-events": "none"
1175
- }, null, 8, ot)) : m("", !0),
1176
- g("text", {
1177
- transform: `
1178
- translate(
1179
- ${Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 24)},
1180
- ${Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 24)}
1181
- ) rotate(${-X.value})
1182
- `,
1183
- fill: B.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : B.value.style.chart.ribbons.labels.color,
1184
- "text-anchor": hn(e.theta),
1185
- "font-size": B.value.style.chart.ribbons.labels.fontSize,
1186
- "font-weight": B.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
1187
- dy: ".35em",
1188
- "pointer-events": "none"
1189
- }, E(Tn(e.value)), 9, st)
1190
- ], 64))), 128))])) : m("", !0),
1191
- B.value.style.chart.arcs.labels.show ? (S(), h("g", ct, [B.value.style.chart.arcs.labels.curved ? (S(!0), h(d, { key: 0 }, w(Y.value.groups, (e, t) => (S(), h("text", {
1192
- class: "vue-ui-chord-label-curved",
1193
- key: `curved-label-${t}`,
1194
- "font-size": B.value.style.chart.arcs.labels.fontSize,
1195
- "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1196
- fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? D(ie)(J.value.colors[t]) : B.value.style.chart.arcs.labels.color
1197
- }, [g("textPath", {
1198
- href: `#labelPath-${t}_${j.value}`,
1199
- startOffset: "50%",
1200
- "text-anchor": "middle"
1201
- }, E(J.value.labels[t]) + E(B.value.style.chart.arcs.labels.showPercentage ? D(s)({
1202
- p: " (",
1203
- v: isNaN(e.proportion) ? 0 : e.proportion * 100,
1204
- s: "%)",
1205
- r: B.value.style.chart.arcs.labels.roundingPercentage
1206
- }) : ""), 9, ut)], 8, lt))), 128)) : !M.value && !N.value && !P.value ? (S(!0), h(d, { key: 1 }, w(Y.value.groups, (e, t) => (S(), h("text", {
1207
- class: "vue-ui-chord-label-straight",
1208
- key: `label-${t}`,
1209
- transform: `
1210
- ${gn((e.startAngle + e.endAngle) / 2)}
1211
- rotate(${-X.value})
1212
- `,
1213
- dy: ".35em",
1214
- "text-anchor": mn(e) > Math.PI ? "end" : "start",
1215
- "font-size": B.value.style.chart.arcs.labels.fontSize,
1216
- "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1217
- fill: B.value.style.chart.arcs.labels.color,
1218
- innerHTML: D(r)({
1219
- content: D(ee)(qn(e, t)),
1220
- fontSize: B.value.style.chart.arcs.labels.fontSize,
1221
- fill: B.value.style.chart.arcs.labels.color,
1222
- x: 0,
1223
- y: 0
1224
- })
1225
- }, null, 8, dt))), 128)) : m("", !0)])) : m("", !0)
1226
- ], 8, Ye),
1227
- T(e.$slots, "svg", { svg: {
1228
- height: 600,
1229
- width: 600,
1230
- isPrintingImg: D(Jt) || D(Yt) || D($n),
1231
- isPrintingSvg: D(er)
1232
- } }, void 0, !0)
1233
- ], 42, We)),
1234
- e.$slots.hint ? (S(), h("div", ft, [T(e.$slots, "hint", b(v({
1235
- hint: B.value.a11y.translations.keyboardNavigation,
1236
- isVisible: Vt.value
1237
- })), void 0, !0)])) : m("", !0),
1238
- e.$slots.watermark ? (S(), h("div", pt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Jt) || D(Yt) || D($n) || D(er) })), void 0, !0)])) : m("", !0),
1239
- g("div", { id: `legend-bottom-${j.value}` }, null, 8, mt),
1240
- Rt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Ee, {
1241
- key: 7,
1242
- to: B.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1243
- }, [g("div", {
1244
- ref_key: "chartLegend",
1245
- ref: jt
1246
- }, [T(e.$slots, "legend", { legend: Hn.value }, () => [B.value.style.chart.legend.show ? (S(), p(we, {
1247
- key: `legend_${It.value}`,
1248
- legendSet: Hn.value,
1249
- config: Un.value,
1250
- isCursorPointer: V.value,
1251
- onClickMarker: t[0] ||= ({ legend: e }) => Vn(e.id)
1252
- }, De({
1253
- item: O(({ legend: e }) => [g("div", {
1254
- style: x({ opacity: P.value ? P.value === e.id ? 1 : .3 : 1 }),
1255
- onClick: (t) => e.select()
1256
- }, E(e.name), 13, ht)]),
1257
- _: 2
1258
- }, [e.$slots.pattern ? {
1259
- name: "legend-pattern",
1260
- fn: O(({ legend: e, index: t }) => [ke(_e, {
1261
- shape: e.shape,
1262
- radius: 30,
1263
- stroke: "none",
1264
- plot: {
1265
- x: 30,
1266
- y: 30
1267
- },
1268
- fill: `url(#pattern_${j.value}_${t})`
1269
- }, null, 8, ["shape", "fill"])]),
1270
- key: "0"
1271
- } : void 0]), 1032, [
1272
- "legendSet",
1273
- "config",
1274
- "isCursorPointer"
1275
- ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1276
- e.$slots.source ? (S(), h("div", {
1277
- key: 8,
1278
- ref_key: "source",
1279
- ref: Mt,
1280
- dir: "auto"
1281
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1282
- X.value === B.value.initialRotation ? m("", !0) : (S(), h("div", gt, [T(e.$slots, "reset-action", { reset: Bn }, () => [g("button", {
1283
- "data-cy-reset": "",
1284
- tabindex: "0",
1285
- role: "button",
1286
- class: "vue-data-ui-refresh-button",
1287
- style: x({
1288
- background: B.value.style.chart.backgroundColor,
1289
- cursor: V.value ? "pointer" : "default"
1290
- }),
1291
- onClick: Bn
1292
- }, [ke(D(yt), {
1293
- name: "refresh",
1294
- stroke: B.value.style.chart.color
1295
- }, null, 8, ["stroke"])], 4)], !0)])),
1296
- A.value && B.value.userOptions.buttons.table ? (S(), p(Pe(Jn.value.component), Ae({ key: 10 }, Jn.value.props, {
1297
- ref_key: "tableUnit",
1298
- ref: zt,
1299
- onClose: Yn
1300
- }), De({
1301
- content: O(() => [(S(), p(D(bt), {
1302
- key: `table_${Ft.value}`,
1303
- colNames: Wn.value.colNames,
1304
- head: Wn.value.head,
1305
- body: Wn.value.body,
1306
- config: Wn.value.config,
1307
- title: B.value.table.useDialog ? "" : Jn.value.title,
1308
- withCloseButton: !B.value.table.useDialog,
1309
- isCursorPointer: V.value,
1310
- onClose: Yn
1311
- }, {
1312
- th: O(({ th: e }) => [Oe(E(e.name), 1)]),
1313
- td: O(({ td: e }) => [g("div", _t, E(e.name ? e.name : Tn(e)), 1)]),
1314
- _: 1
1315
- }, 8, [
1316
- "colNames",
1317
- "head",
1318
- "body",
1319
- "config",
1320
- "title",
1321
- "withCloseButton",
1322
- "isCursorPointer"
1323
- ]))]),
1324
- _: 2
1325
- }, [B.value.table.useDialog ? {
1326
- name: "title",
1327
- fn: O(() => [Oe(E(Jn.value.title), 1)]),
1328
- key: "0"
1329
- } : void 0, B.value.table.useDialog ? {
1330
- name: "actions",
1331
- fn: O(() => [g("button", {
1332
- tabindex: "0",
1333
- class: "vue-ui-user-options-button",
1334
- onClick: t[1] ||= (e) => Gn(B.value.userOptions.callbacks.csv),
1335
- style: x({ cursor: V.value ? "pointer" : "default" })
1336
- }, [ke(D(yt), {
1337
- name: "fileCsv",
1338
- stroke: Jn.value.props.color
1339
- }, null, 8, ["stroke"])], 4)]),
1340
- key: "1"
1341
- } : void 0]), 1040)) : m("", !0),
1342
- T(e.$slots, "skeleton", {}, () => [D(Ut) ? (S(), p(de, { key: 0 })) : m("", !0)], !0)
1343
- ], 46, Ve));
1344
- }
1345
- }, [["__scopeId", "data-v-fcba0aef"]]);
1346
- //#endregion
1347
- export { Be as n, vt as t };