vue-data-ui 3.23.9 → 3.23.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +40 -40
  2. package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
  13. package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
  95. package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
  96. package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +13 -2
  103. package/dist/types/vue-ui-dag.d.ts +2 -0
  104. package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
  110. package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
  112. package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
  114. package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
  115. package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
  117. package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
  118. package/dist/vue-ui-chord-BuConnPN.js +1345 -0
  119. package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
  120. package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
  121. package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
  122. package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
  123. package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
  124. package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
  125. package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
  126. package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
  128. package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
  129. package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
  130. package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
  131. package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
  132. package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
  133. package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
  134. package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
  135. package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
  136. package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
  138. package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
  141. package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
  142. package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
  143. package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
  145. package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
  147. package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
  148. package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
  150. package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
  151. package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
  152. package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
  153. package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
  154. package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
  159. package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
  161. package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
  162. package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
  163. package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
  164. package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
  167. package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
  168. package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
  170. package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
  171. package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
  172. package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
  174. package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
  175. package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
  176. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  177. package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
  178. package/package.json +1 -1
  179. package/dist/exposedLib-C0DPCgFj.js +0 -28
  180. package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
  181. package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
  182. package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
  183. package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
  184. package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
  185. package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
  186. package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
  187. package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
  188. package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
  189. package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
  191. package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
  192. package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
  193. package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
  194. package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
  195. package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
  196. package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
  197. package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
  198. package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
  199. package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
  200. package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
@@ -0,0 +1,1345 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, $t as n, D as r, It as i, Jt as a, K as o, Nt as s, S as c, X as l, Xt as u, i as ee, mt as te, nt as ne, q as re, r as ie, t as ae, w as oe } from "./lib-Dqr_-I6Y.js";
3
+ import { n as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-DwdGsXTx.js";
5
+ import { t as le } from "./usePrinter-CEiH1b6R.js";
6
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as fe } from "./useNestedProp-CulPqtou.js";
8
+ import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as me } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as he } from "./img-Bkzj3lDD.js";
11
+ import { n as ge } from "./Title-CaVA8EIw.js";
12
+ import { t as _e } from "./Shape-BAL5bQmA.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-BJtY2RA9.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) => ({ bdd35a12: e.slicerColor }));
144
+ let vt = _(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), yt = _(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), bt = _(() => import("./DataTable-CmyEubtT.js")), xt = _(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), St = _(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Ct = _(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), wt = _(() => import("./BaseDraggableDialog-Dr_Q6Yt5.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(re()), 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(() => u({
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: u({
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 : a[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 (s(k.dataset)) {
259
+ ne({
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
+ ne({
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) => c(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: re(),
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 u = [];
380
+ for (let e of l) {
381
+ let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
382
+ u.push({
383
+ source: e,
384
+ target: t,
385
+ id: re()
386
+ });
387
+ }
388
+ return {
389
+ groups: s,
390
+ chords: u
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, u = Math.cos(a) * r, ee = Math.sin(a) * r, te = Math.cos(i) * r, ne = Math.sin(i) * r, re = +(t - e > Math.PI);
470
+ return `M${o},${s} A${n},${n} 0 ${re} 1 ${c},${l} L${u},${ee} A${r},${r} 0 ${re} 0 ${te},${ne} 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, u = Math.sin(i) * n, ee = Math.cos(a) * n, te = Math.sin(a) * n, ne = Math.cos(o) * n, re = Math.sin(o) * n;
474
+ return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${l},${u}Q0,0 ${ee},${te}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${ne},${re}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 ee(B.value.style.chart.ribbons.labels.formatter, e, l({
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 n = 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(n), a = r(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 ? l({
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
+ onClose: Ln
857
+ }, {
858
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
859
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
860
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
861
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
862
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
863
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
864
+ _: 3
865
+ }, 8, [
866
+ "color",
867
+ "backgroundColor",
868
+ "active",
869
+ "svgRef",
870
+ "isCursorPointer"
871
+ ])) : m("", !0),
872
+ T(e.$slots, "userConfig", {}, void 0, !0),
873
+ rn.value ? (S(), h("div", {
874
+ key: 2,
875
+ ref_key: "noTitle",
876
+ ref: Nt,
877
+ class: "vue-data-ui-no-title-space",
878
+ style: "height:36px; width: 100%;background:transparent"
879
+ }, null, 512)) : m("", !0),
880
+ B.value.style.chart.title.text ? (S(), h("div", {
881
+ key: 3,
882
+ ref_key: "chartTitle",
883
+ ref: At,
884
+ style: "width:100%;background:transparent;padding-bottom:24px"
885
+ }, [(S(), p(ge, {
886
+ key: `title_${Pt.value}`,
887
+ config: {
888
+ title: {
889
+ cy: "chord-div-title",
890
+ ...B.value.style.chart.title
891
+ },
892
+ subtitle: {
893
+ cy: "chord-div-subtitle",
894
+ ...B.value.style.chart.title.subtitle
895
+ }
896
+ }
897
+ }, null, 8, ["config"]))], 512)) : m("", !0),
898
+ g("div", { id: `legend-top-${j.value}` }, null, 8, Ue),
899
+ B.value.userOptions.show && A.value && (D(qt) || D(Gt)) ? (S(), p(D(Ct), {
900
+ ref_key: "userOptionsRef",
901
+ ref: Bt,
902
+ key: `user_option_${kt.value}`,
903
+ backgroundColor: B.value.style.chart.backgroundColor,
904
+ color: B.value.style.chart.color,
905
+ isPrinting: D(Jt),
906
+ isImaging: D(Yt),
907
+ uid: j.value,
908
+ hasTooltip: !1,
909
+ hasPdf: B.value.userOptions.buttons.pdf,
910
+ hasImg: B.value.userOptions.buttons.img,
911
+ hasSvg: B.value.userOptions.buttons.svg,
912
+ hasXls: B.value.userOptions.buttons.csv,
913
+ hasTable: B.value.userOptions.buttons.table,
914
+ hasLabel: !1,
915
+ hasFullscreen: B.value.userOptions.buttons.fullscreen,
916
+ hasAltCopy: B.value.userOptions.buttons.altCopy,
917
+ isFullscreen: En.value,
918
+ chartElement: F.value,
919
+ position: B.value.userOptions.position,
920
+ titles: { ...B.value.userOptions.buttonTitles },
921
+ hasAnnotator: B.value.userOptions.buttons.annotator,
922
+ isAnnotation: In.value,
923
+ callbacks: B.value.userOptions.callbacks,
924
+ printScale: B.value.userOptions.print.scale,
925
+ tableDialog: B.value.table.useDialog,
926
+ isCursorPointer: V.value,
927
+ onToggleFullscreen: Dn,
928
+ onGeneratePdf: D(Xt),
929
+ onGenerateCsv: Gn,
930
+ onGenerateImage: D(nr),
931
+ onGenerateSvg: D(tr),
932
+ onToggleTable: Rn,
933
+ onToggleAnnotator: Ln,
934
+ onCopyAlt: rr,
935
+ style: x({ visibility: D(qt) ? D(Gt) ? "visible" : "hidden" : "visible" })
936
+ }, De({ _: 2 }, [
937
+ e.$slots.menuIcon ? {
938
+ name: "menuIcon",
939
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
940
+ isOpen: t,
941
+ color: n
942
+ })), void 0, !0)]),
943
+ key: "0"
944
+ } : void 0,
945
+ e.$slots.optionPdf ? {
946
+ name: "optionPdf",
947
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
948
+ key: "1"
949
+ } : void 0,
950
+ e.$slots.optionCsv ? {
951
+ name: "optionCsv",
952
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
953
+ key: "2"
954
+ } : void 0,
955
+ e.$slots.optionImg ? {
956
+ name: "optionImg",
957
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
958
+ key: "3"
959
+ } : void 0,
960
+ e.$slots.optionSvg ? {
961
+ name: "optionSvg",
962
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
963
+ key: "4"
964
+ } : void 0,
965
+ e.$slots.optionTable ? {
966
+ name: "optionTable",
967
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
968
+ key: "5"
969
+ } : void 0,
970
+ e.$slots.optionFullscreen ? {
971
+ name: "optionFullscreen",
972
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
973
+ toggleFullscreen: t,
974
+ isFullscreen: n
975
+ })), void 0, !0)]),
976
+ key: "6"
977
+ } : void 0,
978
+ e.$slots.optionAnnotator ? {
979
+ name: "optionAnnotator",
980
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
981
+ toggleAnnotator: t,
982
+ isAnnotator: n
983
+ })), void 0, !0)]),
984
+ key: "7"
985
+ } : void 0,
986
+ e.$slots.optionAltCopy ? {
987
+ name: "optionAltCopy",
988
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
989
+ key: "8"
990
+ } : void 0,
991
+ e.$slots["custom-menu-before"] ? {
992
+ name: "custom-menu-before",
993
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
994
+ key: "9"
995
+ } : void 0,
996
+ e.$slots["custom-menu-after"] ? {
997
+ name: "custom-menu-after",
998
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
999
+ key: "10"
1000
+ } : void 0
1001
+ ]), 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),
1002
+ (S(), h("svg", {
1003
+ xmlns: D(ae),
1004
+ ref_key: "svgRef",
1005
+ ref: U,
1006
+ viewBox: `0 0 ${K.value.width} ${K.value.height}`,
1007
+ "aria-describedby": `chart-instructions-${j.value}`,
1008
+ tabindex: "0",
1009
+ preserveAspectRatio: "xMidYMid meet",
1010
+ style: { overflow: "visible" },
1011
+ class: y({
1012
+ "vue-ui-chord-rotating": vn.value,
1013
+ "vue-ui-chord-idle": !vn.value
1014
+ }),
1015
+ onMousedown: ze(Sn, ["prevent"]),
1016
+ onTouchstart: ze(Sn, ["prevent"]),
1017
+ onFocus: lr,
1018
+ onBlur: ur,
1019
+ onKeydown: dr
1020
+ }, [
1021
+ ke(D(xt)),
1022
+ e.$slots["chart-background"] ? (S(), h("foreignObject", {
1023
+ key: 0,
1024
+ x: 0,
1025
+ y: 0,
1026
+ width: K.value.width <= 0 ? 10 : K.value.width,
1027
+ height: K.value.height <= 0 ? 10 : K.value.height,
1028
+ style: { pointerEvents: "none" }
1029
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
1030
+ 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", {
1031
+ key: `labelPath-${t}`,
1032
+ id: `labelPath-${t}_${j.value}`,
1033
+ d: _n(e.startAngle, e.endAngle, (q.value.inner + q.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
1034
+ fill: "none"
1035
+ }, null, 8, qe))), 128))])) : m("", !0),
1036
+ 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 }, {
1037
+ seriesIndex: t.index,
1038
+ patternId: `pattern_${j.value}_${n}`
1039
+ }), void 0, !0)]))), 256))])) : m("", !0),
1040
+ g("g", { transform: `translate(${K.value.width / 2}, ${K.value.height / 2}) rotate(${X.value})` }, [
1041
+ (S(!0), h(d, null, w(Y.value.groups, (t, n) => (S(), h("g", null, [(S(), h("path", {
1042
+ class: y({
1043
+ "vue-ui-chord-arc": !0,
1044
+ "vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
1045
+ }),
1046
+ key: `arc-${n}`,
1047
+ d: un(t.startAngle, t.endAngle, q.value.outer, q.value.inner),
1048
+ fill: J.value.colors[n],
1049
+ stroke: B.value.style.chart.arcs.stroke,
1050
+ "stroke-width": B.value.style.chart.arcs.strokeWidth,
1051
+ "stroke-linecap": "round",
1052
+ "stroke-linejoin": "round",
1053
+ style: x({ opacity: Fn(t) }),
1054
+ onMouseenter: (e) => On(t, n),
1055
+ onMouseleave: (e) => kn(t, n),
1056
+ onClick: (e) => An(t, n)
1057
+ }, null, 46, Xe)), e.$slots.pattern ? (S(), h("path", {
1058
+ class: y({
1059
+ "vue-ui-chord-arc": !0,
1060
+ "vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
1061
+ }),
1062
+ key: `arc-${n}`,
1063
+ d: un(t.startAngle, t.endAngle, q.value.outer, q.value.inner),
1064
+ fill: `url(#${t.pattern})`,
1065
+ stroke: B.value.style.chart.arcs.stroke,
1066
+ "stroke-width": B.value.style.chart.arcs.strokeWidth,
1067
+ "stroke-linecap": "round",
1068
+ "stroke-linejoin": "round",
1069
+ style: x({
1070
+ opacity: Fn(t),
1071
+ pointerEvents: "none"
1072
+ })
1073
+ }, null, 14, Ze)) : m("", !0)]))), 256)),
1074
+ g("g", null, [
1075
+ (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}` }, [
1076
+ t.source.value ? (S(), h("path", {
1077
+ key: 0,
1078
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1079
+ d: dn(t.source, t.target),
1080
+ fill: B.value.style.chart.backgroundColor,
1081
+ style: x({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
1082
+ }, null, 12, Qe)) : m("", !0),
1083
+ t.source.value ? (S(), h("path", {
1084
+ key: 1,
1085
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1086
+ d: dn(t.source, t.target),
1087
+ fill: J.value.colors[t.source.index],
1088
+ stroke: B.value.style.chart.ribbons.stroke,
1089
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1090
+ "stroke-linecap": "round",
1091
+ "stroke-linejoin": "round",
1092
+ style: x({ opacity: Pn(t) }),
1093
+ onMouseenter: (e) => jn({
1094
+ ...t,
1095
+ path: dn(t.source, t.target),
1096
+ color: J.value.colors[t.source.index]
1097
+ }, n),
1098
+ onClick: (e) => Nn({
1099
+ ...t,
1100
+ color: J.value.colors[t.source.index]
1101
+ }, n),
1102
+ onMouseleave: (e) => Mn({
1103
+ ...t,
1104
+ color: J.value.colors[t.source.index]
1105
+ }, n)
1106
+ }, null, 44, $e)) : m("", !0),
1107
+ t.source.value && e.$slots.pattern ? (S(), h("path", {
1108
+ key: 2,
1109
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1110
+ d: dn(t.source, t.target),
1111
+ fill: `url(#pattern_${j.value}_${t.source.index})`,
1112
+ stroke: B.value.style.chart.ribbons.stroke,
1113
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1114
+ "stroke-linecap": "round",
1115
+ "stroke-linejoin": "round",
1116
+ style: x({
1117
+ opacity: Pn(t),
1118
+ pointerEvents: "none"
1119
+ })
1120
+ }, null, 12, et)) : m("", !0)
1121
+ ], 64))), 128)),
1122
+ N.value ? (S(), h("path", {
1123
+ key: 0,
1124
+ d: N.value.path,
1125
+ fill: N.value.color,
1126
+ stroke: B.value.style.chart.ribbons.stroke,
1127
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1128
+ "stroke-linecap": "round",
1129
+ "stroke-linejoin": "round",
1130
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1131
+ style: { pointerEvents: "none" }
1132
+ }, null, 8, tt)) : m("", !0),
1133
+ N.value && e.$slots.pattern ? (S(), h("path", {
1134
+ key: 1,
1135
+ d: N.value.path,
1136
+ fill: `url(#${N.value.source.pattern})`,
1137
+ stroke: B.value.style.chart.ribbons.stroke,
1138
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1139
+ "stroke-linecap": "round",
1140
+ "stroke-linejoin": "round",
1141
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1142
+ style: { pointerEvents: "none" }
1143
+ }, null, 8, nt)) : m("", !0)
1144
+ ]),
1145
+ (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 }, [
1146
+ g("line", {
1147
+ x1: e.midBaseX,
1148
+ y1: e.midBaseY,
1149
+ x2: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1150
+ y2: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1151
+ stroke: B.value.style.chart.backgroundColor,
1152
+ "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
1153
+ "pointer-events": "none"
1154
+ }, null, 8, it),
1155
+ g("line", {
1156
+ x1: e.midBaseX,
1157
+ y1: e.midBaseY,
1158
+ x2: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1159
+ y2: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1160
+ stroke: B.value.style.chart.ribbons.labels.connector.stroke,
1161
+ "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth,
1162
+ "pointer-events": "none"
1163
+ }, null, 8, at),
1164
+ B.value.style.chart.ribbons.labels.marker.show ? (S(), h("circle", {
1165
+ key: 0,
1166
+ cx: Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1167
+ cy: Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1168
+ r: B.value.style.chart.ribbons.labels.marker.radius,
1169
+ stroke: B.value.style.chart.ribbons.labels.marker.stroke,
1170
+ "stroke-width": B.value.style.chart.ribbons.labels.marker.strokeWidth,
1171
+ fill: e.groupColor,
1172
+ "pointer-events": "none"
1173
+ }, null, 8, ot)) : m("", !0),
1174
+ g("text", {
1175
+ transform: `
1176
+ translate(
1177
+ ${Math.cos(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 24)},
1178
+ ${Math.sin(e.theta - Math.PI / 2) * (q.value.outer + B.value.style.chart.ribbons.labels.offset + 24)}
1179
+ ) rotate(${-X.value})
1180
+ `,
1181
+ fill: B.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : B.value.style.chart.ribbons.labels.color,
1182
+ "text-anchor": hn(e.theta),
1183
+ "font-size": B.value.style.chart.ribbons.labels.fontSize,
1184
+ "font-weight": B.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
1185
+ dy: ".35em",
1186
+ "pointer-events": "none"
1187
+ }, E(Tn(e.value)), 9, st)
1188
+ ], 64))), 128))])) : m("", !0),
1189
+ 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", {
1190
+ class: "vue-ui-chord-label-curved",
1191
+ key: `curved-label-${t}`,
1192
+ "font-size": B.value.style.chart.arcs.labels.fontSize,
1193
+ "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1194
+ fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? D(ie)(J.value.colors[t]) : B.value.style.chart.arcs.labels.color
1195
+ }, [g("textPath", {
1196
+ href: `#labelPath-${t}_${j.value}`,
1197
+ startOffset: "50%",
1198
+ "text-anchor": "middle"
1199
+ }, E(J.value.labels[t]) + E(B.value.style.chart.arcs.labels.showPercentage ? D(l)({
1200
+ p: " (",
1201
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
1202
+ s: "%)",
1203
+ r: B.value.style.chart.arcs.labels.roundingPercentage
1204
+ }) : ""), 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", {
1205
+ class: "vue-ui-chord-label-straight",
1206
+ key: `label-${t}`,
1207
+ transform: `
1208
+ ${gn((e.startAngle + e.endAngle) / 2)}
1209
+ rotate(${-X.value})
1210
+ `,
1211
+ dy: ".35em",
1212
+ "text-anchor": mn(e) > Math.PI ? "end" : "start",
1213
+ "font-size": B.value.style.chart.arcs.labels.fontSize,
1214
+ "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1215
+ fill: B.value.style.chart.arcs.labels.color,
1216
+ innerHTML: D(o)({
1217
+ content: D(n)(qn(e, t)),
1218
+ fontSize: B.value.style.chart.arcs.labels.fontSize,
1219
+ fill: B.value.style.chart.arcs.labels.color,
1220
+ x: 0,
1221
+ y: 0
1222
+ })
1223
+ }, null, 8, dt))), 128)) : m("", !0)])) : m("", !0)
1224
+ ], 8, Ye),
1225
+ T(e.$slots, "svg", { svg: {
1226
+ height: 600,
1227
+ width: 600,
1228
+ isPrintingImg: D(Jt) || D(Yt) || D($n),
1229
+ isPrintingSvg: D(er)
1230
+ } }, void 0, !0)
1231
+ ], 42, We)),
1232
+ e.$slots.hint ? (S(), h("div", ft, [T(e.$slots, "hint", b(v({
1233
+ hint: B.value.a11y.translations.keyboardNavigation,
1234
+ isVisible: Vt.value
1235
+ })), void 0, !0)])) : m("", !0),
1236
+ 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),
1237
+ g("div", { id: `legend-bottom-${j.value}` }, null, 8, mt),
1238
+ Rt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Ee, {
1239
+ key: 7,
1240
+ to: B.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1241
+ }, [g("div", {
1242
+ ref_key: "chartLegend",
1243
+ ref: jt
1244
+ }, [T(e.$slots, "legend", { legend: Hn.value }, () => [B.value.style.chart.legend.show ? (S(), p(we, {
1245
+ key: `legend_${It.value}`,
1246
+ legendSet: Hn.value,
1247
+ config: Un.value,
1248
+ isCursorPointer: V.value,
1249
+ onClickMarker: t[0] ||= ({ legend: e }) => Vn(e.id)
1250
+ }, De({
1251
+ item: O(({ legend: e }) => [g("div", {
1252
+ style: x({ opacity: P.value ? P.value === e.id ? 1 : .3 : 1 }),
1253
+ onClick: (t) => e.select()
1254
+ }, E(e.name), 13, ht)]),
1255
+ _: 2
1256
+ }, [e.$slots.pattern ? {
1257
+ name: "legend-pattern",
1258
+ fn: O(({ legend: e, index: t }) => [ke(_e, {
1259
+ shape: e.shape,
1260
+ radius: 30,
1261
+ stroke: "none",
1262
+ plot: {
1263
+ x: 30,
1264
+ y: 30
1265
+ },
1266
+ fill: `url(#pattern_${j.value}_${t})`
1267
+ }, null, 8, ["shape", "fill"])]),
1268
+ key: "0"
1269
+ } : void 0]), 1032, [
1270
+ "legendSet",
1271
+ "config",
1272
+ "isCursorPointer"
1273
+ ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1274
+ e.$slots.source ? (S(), h("div", {
1275
+ key: 8,
1276
+ ref_key: "source",
1277
+ ref: Mt,
1278
+ dir: "auto"
1279
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1280
+ X.value === B.value.initialRotation ? m("", !0) : (S(), h("div", gt, [T(e.$slots, "reset-action", { reset: Bn }, () => [g("button", {
1281
+ "data-cy-reset": "",
1282
+ tabindex: "0",
1283
+ role: "button",
1284
+ class: "vue-data-ui-refresh-button",
1285
+ style: x({
1286
+ background: B.value.style.chart.backgroundColor,
1287
+ cursor: V.value ? "pointer" : "default"
1288
+ }),
1289
+ onClick: Bn
1290
+ }, [ke(D(yt), {
1291
+ name: "refresh",
1292
+ stroke: B.value.style.chart.color
1293
+ }, null, 8, ["stroke"])], 4)], !0)])),
1294
+ A.value && B.value.userOptions.buttons.table ? (S(), p(Pe(Jn.value.component), Ae({ key: 10 }, Jn.value.props, {
1295
+ ref_key: "tableUnit",
1296
+ ref: zt,
1297
+ onClose: Yn
1298
+ }), De({
1299
+ content: O(() => [(S(), p(D(bt), {
1300
+ key: `table_${Ft.value}`,
1301
+ colNames: Wn.value.colNames,
1302
+ head: Wn.value.head,
1303
+ body: Wn.value.body,
1304
+ config: Wn.value.config,
1305
+ title: B.value.table.useDialog ? "" : Jn.value.title,
1306
+ withCloseButton: !B.value.table.useDialog,
1307
+ isCursorPointer: V.value,
1308
+ onClose: Yn
1309
+ }, {
1310
+ th: O(({ th: e }) => [Oe(E(e.name), 1)]),
1311
+ td: O(({ td: e }) => [g("div", _t, E(e.name ? e.name : Tn(e)), 1)]),
1312
+ _: 1
1313
+ }, 8, [
1314
+ "colNames",
1315
+ "head",
1316
+ "body",
1317
+ "config",
1318
+ "title",
1319
+ "withCloseButton",
1320
+ "isCursorPointer"
1321
+ ]))]),
1322
+ _: 2
1323
+ }, [B.value.table.useDialog ? {
1324
+ name: "title",
1325
+ fn: O(() => [Oe(E(Jn.value.title), 1)]),
1326
+ key: "0"
1327
+ } : void 0, B.value.table.useDialog ? {
1328
+ name: "actions",
1329
+ fn: O(() => [g("button", {
1330
+ tabindex: "0",
1331
+ class: "vue-ui-user-options-button",
1332
+ onClick: t[1] ||= (e) => Gn(B.value.userOptions.callbacks.csv),
1333
+ style: x({ cursor: V.value ? "pointer" : "default" })
1334
+ }, [ke(D(yt), {
1335
+ name: "fileCsv",
1336
+ stroke: Jn.value.props.color
1337
+ }, null, 8, ["stroke"])], 4)]),
1338
+ key: "1"
1339
+ } : void 0]), 1040)) : m("", !0),
1340
+ T(e.$slots, "skeleton", {}, () => [D(Ut) ? (S(), p(de, { key: 0 })) : m("", !0)], !0)
1341
+ ], 46, Ve));
1342
+ }
1343
+ }, [["__scopeId", "data-v-b9aaa15d"]]);
1344
+ //#endregion
1345
+ export { Be as n, vt as t };