vue-data-ui 3.20.11 → 3.21.1

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 (195) hide show
  1. package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
  2. package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
  3. package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
  4. package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
  5. package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
  6. package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
  7. package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
  8. package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
  10. package/dist/PackageVersion-C19kRMwz.js +12 -0
  11. package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
  12. package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
  13. package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
  14. package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
  15. package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
  16. package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
  17. package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
  18. package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
  89. package/dist/exposedLib-BJbE_A8E.js +19 -0
  90. package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
  91. package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
  92. package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
  93. package/dist/package-2loQetAS.js +4 -0
  94. package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
  95. package/dist/render-common-ZYTBPta1.js +152 -0
  96. package/dist/ssr/vue-ui-donut.js +2 -0
  97. package/dist/ssr/vue-ui-xy.js +2 -0
  98. package/dist/ssr.js +3 -0
  99. package/dist/types/ssr.d.ts +182 -0
  100. package/dist/types/vue-data-ui.d.ts +135 -1
  101. package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
  102. package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
  103. package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
  104. package/dist/utils.js +8 -8
  105. package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-Pk8ey2Zp.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-VTeR1mZx.js +1757 -0
  108. package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
  109. package/dist/vue-ui-age-pyramid-xEOXbRHP.js +1238 -0
  110. package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
  111. package/dist/vue-ui-bullet-CrZLxzj_.js +710 -0
  112. package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-CTgHWBol.js} +253 -253
  113. package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-BnlUMIhy.js} +276 -276
  114. package/dist/vue-ui-carousel-table-CUCUCXKo.js +455 -0
  115. package/dist/vue-ui-chestnut-duBljSlu.js +2010 -0
  116. package/dist/vue-ui-chord-Bj4slh-a.js +1391 -0
  117. package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-i8NWuWRC.js} +36 -36
  118. package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-gsK2MfeA.js} +3 -3
  119. package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-D1iHafKn.js} +20 -20
  120. package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CHGG2h_R.js} +69 -69
  121. package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-L0CQHwNC.js} +3 -3
  122. package/dist/vue-ui-donut-BvdCujBD.js +973 -0
  123. package/dist/vue-ui-donut-DZI7-m5W.js +2410 -0
  124. package/dist/vue-ui-donut-evolution-6Swt5Bfu.js +1510 -0
  125. package/dist/vue-ui-dumbbell-Du7kYvcj.js +1530 -0
  126. package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-CCuIvxey.js} +57 -57
  127. package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-CjGDyxgn.js} +32 -32
  128. package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-CgfJo8YL.js} +330 -330
  129. package/dist/vue-ui-gauge-CQOlEqFH.js +920 -0
  130. package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-BDmUqZzA.js} +18 -18
  131. package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-C5TF8RsA.js} +62 -62
  132. package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-DNfexjVQ.js} +264 -264
  133. package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-BsRlZ3Ch.js} +74 -74
  134. package/dist/vue-ui-horizontal-bar-B3FVEoEc.js +1681 -0
  135. package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-DvNkTrdr.js} +3 -3
  136. package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
  137. package/dist/vue-ui-molecule-B-SSu23l.js +925 -0
  138. package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-C0uBZS5M.js} +21 -21
  139. package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CvOcH0kV.js} +256 -256
  140. package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-DtQBdJrD.js} +45 -45
  141. package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-Bg2tSMri.js} +39 -39
  142. package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-aMfV7BCQ.js} +355 -355
  143. package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-B9E9JbtT.js} +359 -359
  144. package/dist/vue-ui-radar-C3sVf4Kk.js +1229 -0
  145. package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
  146. package/dist/vue-ui-relation-circle-Bh8gBtow.js +924 -0
  147. package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CvON901U.js} +54 -54
  148. package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-2oM3ddqR.js} +81 -81
  149. package/dist/vue-ui-scatter-DJJ6I8jn.js +2413 -0
  150. package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-CUf4LhWq.js} +41 -41
  151. package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
  152. package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-5EbTK8CN.js} +27 -27
  153. package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-V1Q7yOzO.js} +83 -83
  154. package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-DVFBXPs-.js} +44 -44
  155. package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram--mzKP-M1.js} +110 -110
  156. package/dist/vue-ui-sparkline-IbMn1jAF.js +1507 -0
  157. package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-BehvXszi.js} +155 -155
  158. package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-D--yXf7n.js} +81 -81
  159. package/dist/vue-ui-stackline-DI2_W85f.js +2398 -0
  160. package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-D243ak4S.js} +90 -90
  161. package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-ChiyCBKh.js} +78 -78
  162. package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
  163. package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-BN4D7tBN.js} +22 -22
  164. package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CV4l5Sjx.js} +21 -21
  165. package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-DtvtZpm0.js} +23 -23
  166. package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-Bk3Cy8YN.js} +19 -19
  167. package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-CU7kBoiL.js} +65 -65
  168. package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-CIevmSko.js} +232 -232
  169. package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-CFkx_bUf.js} +36 -36
  170. package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-DJ7e4RZy.js} +35 -35
  171. package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-Cng3zjSW.js} +445 -445
  172. package/dist/vue-ui-xy-B8jNN9dy.js +4744 -0
  173. package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
  174. package/dist/vue-ui-xy-yPqdWpyW.js +1263 -0
  175. package/package.json +5 -1
  176. package/dist/PackageVersion-eS823iMF.js +0 -11
  177. package/dist/exposedLib-CI8ji8G-.js +0 -19
  178. package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
  179. package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
  180. package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
  181. package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
  182. package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
  183. package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
  184. package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
  185. package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
  186. package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
  187. package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
  188. package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
  189. package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
  190. package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
  191. package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
  192. package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
  193. package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
  194. package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
  195. package/dist/vue-ui-xy-omDIF90L.js +0 -4744
@@ -0,0 +1,1391 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, G as n, Gt as r, H as i, Ht as a, J as o, Ot as s, S as c, Tt as ee, V as l, X as te, ct as ne, i as re, r as ie, t as ae, x as oe, y as se } from "./lib-AJRHFE5U.js";
3
+ import { t as ce } from "./useConfig-DnH7Pf_2.js";
4
+ import { t as le } from "./usePrinter-6n2MzVyV.js";
5
+ import { n as ue, t as de } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as fe } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as pe } from "./useNestedProp-DtcXIg7n.js";
8
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as he } from "./img-C_RNNswI.js";
10
+ import { n as ge } from "./Title-DH6G8_cZ.js";
11
+ import { t as _e } from "./Shape-BxFtoF1z.js";
12
+ import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as ye } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as be } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as xe } from "./A11yDataTable-BCbtxMU6.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-BLhREbj7.js";
19
+ import { t as Te } from "./vue_ui_chord-DPfS1Umc.js";
20
+ import { Fragment as u, Teleport as Ee, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ae, nextTick as je, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Me, onMounted as Ne, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as T, toRefs as Ie, unref as E, useCssVars as Le, watch as Re, withCtx as D, 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) => ({ v73ba9455: e.slicerColor }));
144
+ let vt = g(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), yt = g(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), bt = g(() => import("./DataTable-DweDyHc1.js")), xt = g(() => import("./PackageVersion-C19kRMwz.js").then((e) => e.t)), St = g(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Ct = g(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), wt = g(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = me(), O = e, Ot = Be, k = S(!!O.dataset && Object.hasOwn(O.dataset, "matrix")), A = S(i()), j = S(null), M = S(null), N = S(null), kt = S(0), P = S(null), At = S(null), jt = S(null), Mt = S(null), Nt = S(null), Pt = S(0), Ft = S(0), It = S(0), F = S(!1), I = Fe(null), L = Fe(null), Lt = S(!1), Rt = S(null), zt = S(null), Bt = S(!1), Vt = S(!1), R = S("group"), z = S(null), Ht = S(!1), B = S($t()), V = d(() => B.value.userOptions.useCursorPointer), Ut = d(() => a({
145
+ defaultConfig: {
146
+ useCssAnimation: !1,
147
+ userOptions: { show: !1 },
148
+ table: { show: !1 },
149
+ style: { chart: {
150
+ backgroundColor: "#99999930",
151
+ legend: { backgroundColor: "transparent" },
152
+ arcs: {
153
+ stroke: "#6A6A6A",
154
+ labels: { show: !1 }
155
+ },
156
+ ribbons: {
157
+ stroke: "#6A6A6A",
158
+ underlayerOpacity: 0,
159
+ labels: { show: !1 }
160
+ }
161
+ } }
162
+ },
163
+ userConfig: B.value.skeletonConfig ?? {}
164
+ })), { loading: Wt, FINAL_DATASET: H, manualLoading: Gt } = ue({
165
+ ...Ie(O),
166
+ FINAL_CONFIG: B,
167
+ prepareConfig: $t,
168
+ callback: () => {
169
+ Promise.resolve().then(async () => {
170
+ await je(), W.value.showTable = B.value.table.show;
171
+ });
172
+ },
173
+ skeletonDataset: O.config?.skeletonDataset ?? {
174
+ matrix: [
175
+ [
176
+ 12e3,
177
+ 6e3,
178
+ 9e3,
179
+ 3e3
180
+ ],
181
+ [
182
+ 2e3,
183
+ 1e4,
184
+ 2e3,
185
+ 6001
186
+ ],
187
+ [
188
+ 8e3,
189
+ 1600,
190
+ 8e3,
191
+ 8001
192
+ ],
193
+ [
194
+ 1e3,
195
+ 1e3,
196
+ 1e3,
197
+ 7001
198
+ ]
199
+ ],
200
+ labels: [],
201
+ colors: [
202
+ "#DBDBDB",
203
+ "#C4C4C4",
204
+ "#ADADAD",
205
+ "#969696"
206
+ ]
207
+ },
208
+ skeletonConfig: a({
209
+ defaultConfig: B.value,
210
+ userConfig: Ut.value
211
+ })
212
+ }), { userOptionsVisible: Kt, setUserOptionsVisibility: qt, keepUserOptionState: Jt } = Se({ config: B.value }), { svgRef: U } = Ce({ config: B.value.style.chart.title }), { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = le({
213
+ elementId: `chord_${A.value}`,
214
+ fileName: B.value.style.chart.title.text || "vue-ui-chord",
215
+ options: B.value.userOptions.print
216
+ }), W = S({ showTable: B.value.table.show });
217
+ function $t() {
218
+ let e = pe({
219
+ userConfig: O.config,
220
+ defaultConfig: Tt
221
+ }), n = e.theme;
222
+ if (!n) return e;
223
+ if (!Et.value(e)) return Dt(e), e;
224
+ let r = pe({
225
+ userConfig: Te[n] || O.config,
226
+ defaultConfig: e
227
+ }), i = pe({
228
+ userConfig: O.config,
229
+ defaultConfig: r
230
+ });
231
+ return {
232
+ ...i,
233
+ customPalette: i.customPalette.length ? i.customPalette : t[n] || s
234
+ };
235
+ }
236
+ Re(() => O.config, (e) => {
237
+ Wt.value || (B.value = $t()), Kt.value = !B.value.userOptions.showOnChartHover, nn(), Pt.value += 1, Ft.value += 1, It.value += 1, Y.value = B.value.initialRotation, W.value.showTable = B.value.table.show;
238
+ }, { deep: !0 });
239
+ let en = d(() => B.value.debug);
240
+ Re(() => O.dataset, () => {
241
+ tn(), nn(), Pt.value += 1, Ft.value += 1, It.value += 1;
242
+ });
243
+ function tn() {
244
+ if (ee(O.dataset)) {
245
+ te({
246
+ componentName: "VueUiChord",
247
+ type: "dataset",
248
+ debug: en.value
249
+ }), k.value = !1, Gt.value = !0;
250
+ return;
251
+ }
252
+ let e = ne({
253
+ datasetObject: O.dataset,
254
+ requiredAttributes: ["matrix"]
255
+ });
256
+ if (e.length) {
257
+ e.forEach((e) => {
258
+ te({
259
+ componentName: "VueUiChord",
260
+ type: "datasetAttribute",
261
+ property: e,
262
+ debug: en.value
263
+ });
264
+ }), k.value = !1, Gt.value = !0;
265
+ return;
266
+ }
267
+ let t = O.dataset.matrix;
268
+ if (!Array.isArray(t) || t.length < 2) {
269
+ console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1, Gt.value = !0;
270
+ return;
271
+ }
272
+ let n = t.length, r = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
273
+ if (r !== -1) {
274
+ 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}
275
+
276
+ dataset.matrix[${r}] = [${Array.isArray(t[r]) ? t[r].toString() : "invalid"}]`), k.value = !1, Gt.value = !0;
277
+ return;
278
+ }
279
+ k.value = !0, Gt.value = !1;
280
+ }
281
+ function nn() {
282
+ if (tn(), B.value.responsive) {
283
+ let e = ye(() => {
284
+ let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = be({
285
+ chart: P.value,
286
+ title: B.value.style.chart.title.text ? At.value : null,
287
+ legend: B.value.style.chart.legend.show ? jt.value : null,
288
+ source: Mt.value,
289
+ noTitle: Nt.value
290
+ }), o = i + a + r + n;
291
+ e < t ? P.value.style.width = "100%" : (P.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
292
+ }, 100);
293
+ I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = P.value.parentNode, I.value.observe(L.value), e();
294
+ }
295
+ an.value = setTimeout(() => {
296
+ F.value = !0;
297
+ }, 500);
298
+ }
299
+ function rn() {
300
+ if (!H.value || !Object.hasOwn(H.value, "matrix") || H.value.matrix.length < 2) {
301
+ console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1;
302
+ return;
303
+ }
304
+ H.value.matrix.forEach((e, t) => {
305
+ e.length !== H.value.matrix.length && (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})`), k.value = !1);
306
+ });
307
+ }
308
+ let an = S(null);
309
+ Ne(() => {
310
+ Lt.value = !0, nn();
311
+ });
312
+ let G = S({
313
+ height: 600,
314
+ width: 600
315
+ }), on = d(() => B.value.userOptions.show && !B.value.style.chart.title.text), sn = d(() => oe(B.value.customPalette)), K = d(() => ({
316
+ inner: G.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
317
+ outer: G.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
318
+ })), cn = d(() => B.value.style.chart.arcs.padAngle / 100), q = d(() => ({
319
+ matrix: H.value.matrix ?? [[0]],
320
+ labels: H.value.labels ?? [""],
321
+ colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => se(e)) : H.value.matrix.map((e, t) => sn.value[t] || s[t] || s[t % s.length])
322
+ }));
323
+ function ln(e, t) {
324
+ let n = e.length, r = K.value.inner, a = Array(n).fill(0), o = 0;
325
+ for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1) a[t] += e[t][r], o += e[t][r];
326
+ let s = (2 * Math.PI - t * n) / o, c = [], ee = 0;
327
+ for (let e = 0; e < n; e += 1) {
328
+ let n = ee, r = n + a[e] * s;
329
+ c.push({
330
+ index: e,
331
+ pattern: `pattern_${A.value}_${e}`,
332
+ startAngle: n,
333
+ endAngle: r,
334
+ name: q.value.labels[e],
335
+ id: i(),
336
+ color: q.value.colors[e],
337
+ proportion: a[e] / o
338
+ }), ee = r + t;
339
+ }
340
+ let l = [];
341
+ for (let t = 0; t < n; t += 1) {
342
+ let n = e[t].map((e, t) => ({
343
+ j: t,
344
+ v: e
345
+ }));
346
+ n.sort((e, t) => t.v - e.v);
347
+ let i = c[t].startAngle;
348
+ for (let { j: e, v: a } of n) {
349
+ let n = i, o = n + a * s;
350
+ l.push({
351
+ index: t,
352
+ subIndex: e,
353
+ pattern: `pattern_${A.value}_${t}`,
354
+ startAngle: n,
355
+ endAngle: o,
356
+ value: a,
357
+ groupName: q.value.labels[t],
358
+ groupId: c[t].id,
359
+ groupColor: q.value.colors[t],
360
+ midAngle: (n + o) / 2,
361
+ midBaseX: Math.cos((n + o) / 2 - Math.PI / 2) * r,
362
+ midBaseY: Math.sin((n + o) / 2 - Math.PI / 2) * r
363
+ }), i = o;
364
+ }
365
+ }
366
+ let te = [];
367
+ for (let e of l) {
368
+ let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
369
+ te.push({
370
+ source: e,
371
+ target: t,
372
+ id: i()
373
+ });
374
+ }
375
+ return {
376
+ groups: c,
377
+ chords: te
378
+ };
379
+ }
380
+ let J = d(() => {
381
+ let e = ln(q.value.matrix, cn.value);
382
+ return rn(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
383
+ }), un = d(() => {
384
+ let e = K.value.outer + B.value.style.chart.ribbons.labels.offset + 12, t = B.value.style.chart.ribbons.labels.fontSize * .6, n = [];
385
+ if (M.value) {
386
+ let r = M.value;
387
+ if (r.source.value) {
388
+ let i = String(r.source.value);
389
+ n.push({
390
+ id: r.id + "-src",
391
+ theta: r.source.midAngle,
392
+ w: i.length * t / e,
393
+ midBaseX: r.source.midBaseX,
394
+ midBaseY: r.source.midBaseY,
395
+ groupColor: r.source.groupColor,
396
+ value: r.source.value
397
+ });
398
+ }
399
+ if (r.target && r.target.value && r.target.value !== r.source.value) {
400
+ let i = String(r.target.value);
401
+ n.push({
402
+ id: r.id + "-tgt",
403
+ theta: r.target.midAngle,
404
+ w: i.length * t / e,
405
+ midBaseX: r.target.midBaseX,
406
+ midBaseY: r.target.midBaseY,
407
+ groupColor: r.target.groupColor,
408
+ value: r.target.value
409
+ });
410
+ }
411
+ return n;
412
+ }
413
+ function r(r) {
414
+ J.value.chords.filter((e) => e.source.groupId === r && e.source.value).forEach((r) => {
415
+ {
416
+ let i = String(r.source.value);
417
+ n.push({
418
+ id: r.id + "-src",
419
+ theta: r.source.midAngle,
420
+ w: i.length * t / e,
421
+ midBaseX: r.source.midBaseX,
422
+ midBaseY: r.source.midBaseY,
423
+ groupColor: r.source.groupColor,
424
+ value: r.source.value
425
+ });
426
+ }
427
+ if (r.target && r.target.value && r.target.value !== r.source.value) {
428
+ let i = String(r.target.value);
429
+ n.push({
430
+ id: r.id + "-tgt",
431
+ theta: r.target.midAngle,
432
+ w: i.length * t / e,
433
+ midBaseX: r.target.midBaseX,
434
+ midBaseY: r.target.midBaseY,
435
+ groupColor: r.target.groupColor,
436
+ value: r.target.value
437
+ });
438
+ }
439
+ });
440
+ }
441
+ return N.value && r(N.value), j.value && r(j.value.id), n;
442
+ }), dn = d(() => {
443
+ let e = un.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;
444
+ for (; n && r++ < 10;) {
445
+ n = !1;
446
+ for (let r = 1; r < e.length; r += 1) {
447
+ let i = e[r - 1], a = e[r], o = i.theta + i.w + t;
448
+ a.theta < o && (a.theta = o, n = !0);
449
+ }
450
+ let r = e[0], i = e[e.length - 1], a = i.theta + i.w + t - 2 * Math.PI;
451
+ r.theta < a && (r.theta = a, n = !0);
452
+ }
453
+ return e;
454
+ });
455
+ function fn(e, t, n, r) {
456
+ 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, ee = Math.sin(a) * n, l = Math.cos(a) * r, te = Math.sin(a) * r, ne = Math.cos(i) * r, re = Math.sin(i) * r, ie = +(t - e > Math.PI);
457
+ return `M${o},${s} A${n},${n} 0 ${ie} 1 ${c},${ee} L${l},${te} A${r},${r} 0 ${ie} 0 ${ne},${re} Z`;
458
+ }
459
+ function pn(e, t) {
460
+ let n = K.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, ee = Math.cos(i) * n, l = Math.sin(i) * n, te = Math.cos(a) * n, ne = Math.sin(a) * n, re = Math.cos(o) * n, ie = Math.sin(o) * n;
461
+ return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${ee},${l}Q0,0 ${te},${ne}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${re},${ie}Q0,0 ${s},${c}Z`;
462
+ }
463
+ let mn = d(() => Y.value * Math.PI / 180);
464
+ function hn(e) {
465
+ return (e.startAngle + e.endAngle) / 2;
466
+ }
467
+ function gn(e) {
468
+ return ((hn(e) + mn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
469
+ }
470
+ function _n(e) {
471
+ let t = e + mn.value;
472
+ return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
473
+ }
474
+ function vn(e) {
475
+ let t = e - Math.PI / 2;
476
+ return `translate(${Math.cos(t) * (K.value.outer + B.value.style.chart.arcs.labels.offset + 24)},${Math.sin(t) * (K.value.outer + B.value.style.chart.arcs.labels.offset + 24)})`;
477
+ }
478
+ function yn(e, t, n) {
479
+ 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;
480
+ return `M${a},${o} A${n},${n} 0 ${+(t - e > Math.PI)} 1 ${s},${c}`;
481
+ }
482
+ let Y = S(B.value.initialRotation), bn = S(!1), xn = 0, Sn = 0;
483
+ function Cn(e) {
484
+ 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;
485
+ return Math.atan2(a - r, i - n);
486
+ }
487
+ function wn(e) {
488
+ !B.value.enableRotation || X.value || (e.preventDefault(), bn.value = !0, xn = Y.value, Sn = Cn(e));
489
+ }
490
+ function Tn(e) {
491
+ if (!bn.value) return;
492
+ let t = Cn(e);
493
+ Y.value = xn + (t - Sn) * 180 / Math.PI;
494
+ }
495
+ function En() {
496
+ bn.value = !1;
497
+ }
498
+ function Dn(e) {
499
+ return re(B.value.style.chart.ribbons.labels.formatter, e, n({
500
+ p: B.value.style.chart.ribbons.labels.prefix,
501
+ v: e,
502
+ s: B.value.style.chart.ribbons.labels.suffix,
503
+ r: B.value.style.chart.ribbons.labels.rounding
504
+ }));
505
+ }
506
+ Ne(() => {
507
+ window.addEventListener("mousemove", Tn), window.addEventListener("mouseup", En), window.addEventListener("touchmove", Tn, { passive: !1 }), window.addEventListener("touchend", En);
508
+ }), Me(() => {
509
+ window.removeEventListener("mousemove", Tn), window.removeEventListener("mouseup", En), window.removeEventListener("touchmove", Tn), window.removeEventListener("touchend", En), clearTimeout(an.value), I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
510
+ });
511
+ let On = S(!1);
512
+ function kn(e) {
513
+ On.value = e, kt.value += 1;
514
+ }
515
+ function An(e, t) {
516
+ B.value.events.datapointEnter && B.value.events.datapointEnter({
517
+ datapoint: e,
518
+ seriesIndex: t
519
+ }), !N.value && (j.value = e);
520
+ }
521
+ function jn(e, t) {
522
+ j.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
523
+ datapoint: e,
524
+ seriesIndex: t
525
+ });
526
+ }
527
+ function Mn(e, t) {
528
+ Ot("selectGroup", e), B.value.events.datapointClick && B.value.events.datapointClick({
529
+ datapoint: e,
530
+ seriesIndex: t
531
+ });
532
+ }
533
+ function Nn(e, t) {
534
+ B.value.events.datapointEnter && B.value.events.datapointEnter({
535
+ datapoint: e,
536
+ seriesIndex: t
537
+ }), !N.value && (M.value = e);
538
+ }
539
+ function Pn(e, t) {
540
+ M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
541
+ datapoint: e,
542
+ seriesIndex: t
543
+ });
544
+ }
545
+ function Fn(e, t) {
546
+ Ot("selectRibbon", e), B.value.events.datapointClick && B.value.events.datapointClick({
547
+ datapoint: e,
548
+ seriesIndex: t
549
+ });
550
+ }
551
+ function In(e) {
552
+ return !N.value && !j.value && !M.value ? .8 : (N.value ? N.value === e.source.groupId : j.value ? j.value.id === e.source.groupId : M.value?.id === e.id) ? 1 : .1;
553
+ }
554
+ function Ln(e) {
555
+ return !N.value && !j.value && !M.value || (N.value ? N.value === e.id : j.value ? j.value.id === e.id : [M.value?.source.groupId, M.value?.target.groupId].includes(e.id)) ? 1 : .3;
556
+ }
557
+ let X = S(!1);
558
+ function Rn() {
559
+ X.value = !X.value;
560
+ }
561
+ function zn() {
562
+ W.value.showTable = !W.value.showTable;
563
+ }
564
+ function Bn() {
565
+ return J.value;
566
+ }
567
+ let Z = S(null);
568
+ function Vn() {
569
+ let e = B.value.initialRotation;
570
+ Z.value !== null && cancelAnimationFrame(Z.value);
571
+ let t = () => {
572
+ Y.value += (e - Y.value) * .05, Math.abs(Y.value - e) < .1 ? (Y.value = e, Z.value = null) : Z.value = requestAnimationFrame(t);
573
+ };
574
+ Z.value = requestAnimationFrame(t);
575
+ }
576
+ Me(() => {
577
+ Z.value !== null && cancelAnimationFrame(Z.value);
578
+ });
579
+ function Hn(e) {
580
+ e === N.value ? (N.value = null, Ot("selectLegend", null)) : (N.value = e, Ot("selectLegend", J.value.groups.find((t) => t.id === e)));
581
+ }
582
+ let Un = d(() => J.value.groups.map((e, t) => ({
583
+ name: e.name,
584
+ color: e.color,
585
+ shape: "circle",
586
+ patternIndex: t,
587
+ pattern: `pattern_${A.value}_${t}`,
588
+ id: e.id,
589
+ select: () => Hn(e.id),
590
+ opacity: N.value ? N.value === e.id ? 1 : .3 : 1
591
+ }))), Wn = d(() => ({
592
+ cy: "chord-div-legend",
593
+ backgroundColor: B.value.style.chart.legend.backgroundColor,
594
+ color: B.value.style.chart.legend.color,
595
+ fontSize: B.value.style.chart.legend.fontSize,
596
+ paddingBottom: 12,
597
+ fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
598
+ })), Q = d(() => ({
599
+ head: J.value.groups.map((e, t) => ({
600
+ name: e.name || t,
601
+ color: e.color
602
+ })),
603
+ body: q.value.matrix
604
+ })), Gn = d(() => {
605
+ let e = [{
606
+ name: "",
607
+ color: null
608
+ }, ...Q.value.head];
609
+ return {
610
+ colNames: e,
611
+ head: e,
612
+ body: Q.value.body.map((e, t) => [Q.value.head[t], ...Q.value.body[t]]),
613
+ config: {
614
+ th: {
615
+ backgroundColor: B.value.table.th.backgroundColor,
616
+ color: B.value.table.th.color,
617
+ outline: B.value.table.th.outline
618
+ },
619
+ td: {
620
+ backgroundColor: B.value.table.td.backgroundColor,
621
+ color: B.value.table.td.color,
622
+ outline: B.value.table.td.outline
623
+ },
624
+ breakpoint: B.value.table.responsiveBreakpoint
625
+ }
626
+ };
627
+ });
628
+ function Kn(e = null) {
629
+ je(() => {
630
+ let t = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), n = c([
631
+ [B.value.style.chart.title.text],
632
+ [B.value.style.chart.title.subtitle.text],
633
+ [[""], ...q.value.labels.map((e, t) => [e || t])]
634
+ ].concat(t));
635
+ e ? e(n) : o({
636
+ csvContent: n,
637
+ title: B.value.style.chart.title.text || "vue-ui-chord"
638
+ });
639
+ });
640
+ }
641
+ async function qn({ scale: e = 2 } = {}) {
642
+ if (!P.value) return;
643
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
644
+ domElement: P.value,
645
+ base64: !0,
646
+ img: !0,
647
+ scale: e
648
+ });
649
+ return {
650
+ imageUri: i,
651
+ base64: a,
652
+ title: B.value.style.chart.title.text,
653
+ width: t,
654
+ height: n,
655
+ aspectRatio: r
656
+ };
657
+ }
658
+ function Jn(e, t) {
659
+ return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? n({
660
+ p: " (",
661
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
662
+ s: "%)",
663
+ r: B.value.style.chart.arcs.labels.roundingPercentage
664
+ }) : ""}`;
665
+ }
666
+ let Yn = d(() => {
667
+ let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
668
+ return {
669
+ component: e ? wt : vt,
670
+ title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
671
+ props: e ? {
672
+ backgroundColor: B.value.table.th.backgroundColor,
673
+ color: B.value.table.th.color,
674
+ headerColor: B.value.table.th.color,
675
+ headerBg: B.value.table.th.backgroundColor,
676
+ isFullscreen: On.value,
677
+ fullscreenParent: P.value,
678
+ forcedWidth: Math.min(800, window.innerWidth * .8),
679
+ isCursorPointer: V.value
680
+ } : {
681
+ hideDetails: !0,
682
+ config: {
683
+ open: t,
684
+ maxHeight: 1e4,
685
+ body: {
686
+ backgroundColor: B.value.style.chart.backgroundColor,
687
+ color: B.value.style.chart.color
688
+ },
689
+ head: {
690
+ backgroundColor: B.value.style.chart.backgroundColor,
691
+ color: B.value.style.chart.color
692
+ }
693
+ }
694
+ }
695
+ };
696
+ });
697
+ Re(() => W.value.showTable, (e) => {
698
+ B.value.table.show || (e && B.value.table.useDialog && Rt.value ? Rt.value.open() : "close" in Rt.value && Rt.value.close());
699
+ });
700
+ function Xn() {
701
+ W.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
702
+ }
703
+ let Zn = d(() => B.value.style.chart.backgroundColor), Qn = d(() => B.value.style.chart.legend), { exportSvg: $n, getSvg: er } = fe({
704
+ svg: U,
705
+ title: d(() => B.value.style.chart.title),
706
+ legend: Qn,
707
+ legendItems: Un,
708
+ backgroundColor: Zn
709
+ });
710
+ async function tr({ isCb: e }) {
711
+ Vt.value = !0, await je();
712
+ try {
713
+ if (e) {
714
+ let { blob: e, url: t, text: n, dataUrl: r } = await er();
715
+ await Promise.resolve(B.value.userOptions.callbacks.svg({
716
+ blob: e,
717
+ url: t,
718
+ text: n,
719
+ dataUrl: r
720
+ }));
721
+ } else await Promise.resolve($n());
722
+ } finally {
723
+ Vt.value = !1;
724
+ }
725
+ }
726
+ function nr(e) {
727
+ if (e?.stage === "start") {
728
+ Bt.value = !0;
729
+ return;
730
+ }
731
+ if (e?.stage === "end") {
732
+ Bt.value = !1;
733
+ return;
734
+ }
735
+ Qt();
736
+ }
737
+ async function rr() {
738
+ if (Ot("copyAlt", {
739
+ config: B.value,
740
+ dataset: q.value
741
+ }), !B.value.userOptions.callbacks.altCopy) {
742
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
743
+ return;
744
+ }
745
+ await Promise.resolve(B.value.userOptions.callbacks.altCopy({
746
+ config: B.value,
747
+ dataset: q.value
748
+ }));
749
+ }
750
+ let ir = d(() => (j.value ? J.value.chords.filter((e) => e.source.groupId === j.value.id) : N.value ? J.value.chords.filter((e) => e.source.groupId === N.value) : J.value.chords).filter((e) => e.source.value)), $ = d(() => ({
751
+ groups: J.value.groups.map((e, t) => ({
752
+ type: "group",
753
+ index: t,
754
+ item: e
755
+ })),
756
+ ribbons: ir.value.map((e, t) => ({
757
+ type: "ribbon",
758
+ index: t,
759
+ item: {
760
+ ...e,
761
+ path: pn(e.source, e.target),
762
+ color: q.value.colors[e.source.index]
763
+ }
764
+ }))
765
+ })), ar = d(() => ({
766
+ headers: ["", ...Q.value.head.map((e) => e.name)],
767
+ rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => Dn(e))])
768
+ }));
769
+ function or(e) {
770
+ let t = $.value.groups[e];
771
+ t && (R.value = "group", z.value = e, M.value = null, j.value = t.item);
772
+ }
773
+ function sr(e) {
774
+ let t = $.value.ribbons[e];
775
+ t && (R.value = "ribbon", z.value = e, j.value = null, M.value = t.item);
776
+ }
777
+ function cr() {
778
+ z.value = null, R.value = "group", j.value = null, M.value = null;
779
+ }
780
+ function lr() {
781
+ Ht.value = !0, R.value = "group", z.value = null;
782
+ }
783
+ function ur() {
784
+ Ht.value = !1, cr();
785
+ }
786
+ function dr(e) {
787
+ if (!U.value || X.value || document.activeElement !== U.value) return;
788
+ 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";
789
+ if (!t && !n && !r && !i && !a && !o) return;
790
+ if (e.preventDefault(), e.stopPropagation(), o) {
791
+ cr();
792
+ return;
793
+ }
794
+ if (r) {
795
+ R.value = "group", $.value.groups.length && or(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
796
+ return;
797
+ }
798
+ if (i) {
799
+ if (!$.value.ribbons.length) return;
800
+ R.value = "ribbon", sr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
801
+ return;
802
+ }
803
+ if (a) {
804
+ if (R.value === "group") {
805
+ let e = $.value.groups[z.value];
806
+ e && Mn(e.item, e.index);
807
+ } else {
808
+ let e = $.value.ribbons[z.value];
809
+ e && Fn(e.item, e.index);
810
+ }
811
+ return;
812
+ }
813
+ let s = R.value === "group" ? $.value.groups : $.value.ribbons;
814
+ if (!s.length) return;
815
+ let c = z.value;
816
+ 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);
817
+ }
818
+ return ve({
819
+ getData: Bn,
820
+ getImage: qn,
821
+ generateCsv: Kn,
822
+ generateImage: Qt,
823
+ generateSvg: tr,
824
+ generatePdf: Zt,
825
+ toggleAnnotator: Rn,
826
+ toggleTable: zn,
827
+ toggleFullscreen: kn,
828
+ copyAlt: rr
829
+ }), (e, t) => (x(), m("div", {
830
+ ref_key: "chordChart",
831
+ ref: P,
832
+ class: v({
833
+ "vue-data-ui-component": !0,
834
+ "vue-ui-chord": !0,
835
+ "vue-data-ui-wrapper-fullscreen": On.value,
836
+ "vue-data-ui-responsive": B.value.responsive
837
+ }),
838
+ style: b(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
839
+ id: `chord_${A.value}`,
840
+ onMouseenter: t[2] ||= () => E(qt)(!0),
841
+ onMouseleave: t[3] ||= () => E(qt)(!1)
842
+ }, [
843
+ h("div", {
844
+ id: `chart-instructions-${A.value}`,
845
+ class: "sr-only"
846
+ }, [h("p", null, T(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
847
+ ar.value?.rows?.length ? (x(), f(xe, {
848
+ key: 0,
849
+ uid: A.value,
850
+ head: ar.value.headers,
851
+ body: ar.value.rows,
852
+ notice: B.value.a11y.translations.tableAvailable,
853
+ caption: B.value.a11y.translations.tableCaption
854
+ }, null, 8, [
855
+ "uid",
856
+ "head",
857
+ "body",
858
+ "notice",
859
+ "caption"
860
+ ])) : p("", !0),
861
+ B.value.userOptions.buttons.annotator && E(U) ? (x(), f(E(St), {
862
+ key: 1,
863
+ color: B.value.style.chart.color,
864
+ backgroundColor: B.value.style.chart.backgroundColor,
865
+ active: X.value,
866
+ svgRef: E(U),
867
+ isCursorPointer: V.value,
868
+ onClose: Rn
869
+ }, {
870
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
871
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
872
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
873
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
874
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
875
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
876
+ _: 3
877
+ }, 8, [
878
+ "color",
879
+ "backgroundColor",
880
+ "active",
881
+ "svgRef",
882
+ "isCursorPointer"
883
+ ])) : p("", !0),
884
+ w(e.$slots, "userConfig", {}, void 0, !0),
885
+ on.value ? (x(), m("div", {
886
+ key: 2,
887
+ ref_key: "noTitle",
888
+ ref: Nt,
889
+ class: "vue-data-ui-no-title-space",
890
+ style: "height:36px; width: 100%;background:transparent"
891
+ }, null, 512)) : p("", !0),
892
+ B.value.style.chart.title.text ? (x(), m("div", {
893
+ key: 3,
894
+ ref_key: "chartTitle",
895
+ ref: At,
896
+ style: "width:100%;background:transparent;padding-bottom:24px"
897
+ }, [(x(), f(ge, {
898
+ key: `title_${Pt.value}`,
899
+ config: {
900
+ title: {
901
+ cy: "chord-div-title",
902
+ ...B.value.style.chart.title
903
+ },
904
+ subtitle: {
905
+ cy: "chord-div-subtitle",
906
+ ...B.value.style.chart.title.subtitle
907
+ }
908
+ }
909
+ }, null, 8, ["config"]))], 512)) : p("", !0),
910
+ h("div", { id: `legend-top-${A.value}` }, null, 8, Ue),
911
+ B.value.userOptions.show && k.value && (E(Jt) || E(Kt)) ? (x(), f(E(Ct), {
912
+ ref_key: "userOptionsRef",
913
+ ref: zt,
914
+ key: `user_option_${kt.value}`,
915
+ backgroundColor: B.value.style.chart.backgroundColor,
916
+ color: B.value.style.chart.color,
917
+ isPrinting: E(Yt),
918
+ isImaging: E(Xt),
919
+ uid: A.value,
920
+ hasTooltip: !1,
921
+ hasPdf: B.value.userOptions.buttons.pdf,
922
+ hasImg: B.value.userOptions.buttons.img,
923
+ hasSvg: B.value.userOptions.buttons.svg,
924
+ hasXls: B.value.userOptions.buttons.csv,
925
+ hasTable: B.value.userOptions.buttons.table,
926
+ hasLabel: !1,
927
+ hasFullscreen: B.value.userOptions.buttons.fullscreen,
928
+ hasAltCopy: B.value.userOptions.buttons.altCopy,
929
+ isFullscreen: On.value,
930
+ chartElement: P.value,
931
+ position: B.value.userOptions.position,
932
+ titles: { ...B.value.userOptions.buttonTitles },
933
+ hasAnnotator: B.value.userOptions.buttons.annotator,
934
+ isAnnotation: X.value,
935
+ callbacks: B.value.userOptions.callbacks,
936
+ printScale: B.value.userOptions.print.scale,
937
+ tableDialog: B.value.table.useDialog,
938
+ isCursorPointer: V.value,
939
+ onToggleFullscreen: kn,
940
+ onGeneratePdf: E(Zt),
941
+ onGenerateCsv: Kn,
942
+ onGenerateImage: nr,
943
+ onGenerateSvg: tr,
944
+ onToggleTable: zn,
945
+ onToggleAnnotator: Rn,
946
+ onCopyAlt: rr,
947
+ style: b({ visibility: E(Jt) ? E(Kt) ? "visible" : "hidden" : "visible" })
948
+ }, De({ _: 2 }, [
949
+ e.$slots.menuIcon ? {
950
+ name: "menuIcon",
951
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
952
+ isOpen: t,
953
+ color: n
954
+ })), void 0, !0)]),
955
+ key: "0"
956
+ } : void 0,
957
+ e.$slots.optionPdf ? {
958
+ name: "optionPdf",
959
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
960
+ key: "1"
961
+ } : void 0,
962
+ e.$slots.optionCsv ? {
963
+ name: "optionCsv",
964
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
965
+ key: "2"
966
+ } : void 0,
967
+ e.$slots.optionImg ? {
968
+ name: "optionImg",
969
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
970
+ key: "3"
971
+ } : void 0,
972
+ e.$slots.optionSvg ? {
973
+ name: "optionSvg",
974
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
975
+ key: "4"
976
+ } : void 0,
977
+ e.$slots.optionTable ? {
978
+ name: "optionTable",
979
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
980
+ key: "5"
981
+ } : void 0,
982
+ e.$slots.optionFullscreen ? {
983
+ name: "optionFullscreen",
984
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
985
+ toggleFullscreen: t,
986
+ isFullscreen: n
987
+ })), void 0, !0)]),
988
+ key: "6"
989
+ } : void 0,
990
+ e.$slots.optionAnnotator ? {
991
+ name: "optionAnnotator",
992
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
993
+ toggleAnnotator: t,
994
+ isAnnotator: n
995
+ })), void 0, !0)]),
996
+ key: "7"
997
+ } : void 0,
998
+ e.$slots.optionAltCopy ? {
999
+ name: "optionAltCopy",
1000
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1001
+ key: "8"
1002
+ } : void 0,
1003
+ e.$slots["custom-menu-before"] ? {
1004
+ name: "custom-menu-before",
1005
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1006
+ key: "9"
1007
+ } : void 0,
1008
+ e.$slots["custom-menu-after"] ? {
1009
+ name: "custom-menu-after",
1010
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1011
+ key: "10"
1012
+ } : void 0
1013
+ ]), 1032, [
1014
+ "backgroundColor",
1015
+ "color",
1016
+ "isPrinting",
1017
+ "isImaging",
1018
+ "uid",
1019
+ "hasPdf",
1020
+ "hasImg",
1021
+ "hasSvg",
1022
+ "hasXls",
1023
+ "hasTable",
1024
+ "hasFullscreen",
1025
+ "hasAltCopy",
1026
+ "isFullscreen",
1027
+ "chartElement",
1028
+ "position",
1029
+ "titles",
1030
+ "hasAnnotator",
1031
+ "isAnnotation",
1032
+ "callbacks",
1033
+ "printScale",
1034
+ "tableDialog",
1035
+ "isCursorPointer",
1036
+ "onGeneratePdf",
1037
+ "style"
1038
+ ])) : p("", !0),
1039
+ (x(), m("svg", {
1040
+ xmlns: E(ae),
1041
+ ref_key: "svgRef",
1042
+ ref: U,
1043
+ viewBox: `0 0 ${G.value.width} ${G.value.height}`,
1044
+ "aria-describedby": `chart-instructions-${A.value}`,
1045
+ tabindex: "0",
1046
+ preserveAspectRatio: "xMidYMid meet",
1047
+ style: { overflow: "visible" },
1048
+ class: v({
1049
+ "vue-ui-chord-rotating": bn.value,
1050
+ "vue-ui-chord-idle": !bn.value
1051
+ }),
1052
+ onMousedown: ze(wn, ["prevent"]),
1053
+ onTouchstart: ze(wn, ["prevent"]),
1054
+ onFocus: lr,
1055
+ onBlur: ur,
1056
+ onKeydown: dr
1057
+ }, [
1058
+ ke(E(xt)),
1059
+ e.$slots["chart-background"] ? (x(), m("foreignObject", {
1060
+ key: 0,
1061
+ x: 0,
1062
+ y: 0,
1063
+ width: G.value.width <= 0 ? 10 : G.value.width,
1064
+ height: G.value.height <= 0 ? 10 : G.value.height,
1065
+ style: { pointerEvents: "none" }
1066
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
1067
+ B.value.style.chart.arcs.labels.curved ? (x(), m("defs", Ke, [(x(!0), m(u, null, C(J.value.groups, (e, t) => (x(), m("path", {
1068
+ key: `labelPath-${t}`,
1069
+ id: `labelPath-${t}_${A.value}`,
1070
+ d: yn(e.startAngle, e.endAngle, (K.value.inner + K.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
1071
+ fill: "none"
1072
+ }, null, 8, qe))), 128))])) : p("", !0),
1073
+ e.$slots.pattern ? (x(), m("g", Je, [(x(!0), m(u, null, C(J.value.groups, (t, n) => (x(), m("defs", null, [w(e.$slots, "pattern", Ae({ ref_for: !0 }, {
1074
+ seriesIndex: t.index,
1075
+ patternId: `pattern_${A.value}_${n}`
1076
+ }), void 0, !0)]))), 256))])) : p("", !0),
1077
+ h("g", { transform: `translate(${G.value.width / 2}, ${G.value.height / 2}) rotate(${Y.value})` }, [
1078
+ (x(!0), m(u, null, C(J.value.groups, (t, n) => (x(), m("g", null, [(x(), m("path", {
1079
+ class: v({
1080
+ "vue-ui-chord-arc": !0,
1081
+ "vue-ui-chord-arc-animated": B.value.useCssAnimation && !F.value
1082
+ }),
1083
+ key: `arc-${n}`,
1084
+ d: fn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1085
+ fill: q.value.colors[n],
1086
+ stroke: B.value.style.chart.arcs.stroke,
1087
+ "stroke-width": B.value.style.chart.arcs.strokeWidth,
1088
+ "stroke-linecap": "round",
1089
+ "stroke-linejoin": "round",
1090
+ style: b({ opacity: Ln(t) }),
1091
+ onMouseenter: (e) => An(t, n),
1092
+ onMouseleave: (e) => jn(t, n),
1093
+ onClick: (e) => Mn(t, n)
1094
+ }, null, 46, Xe)), e.$slots.pattern ? (x(), m("path", {
1095
+ class: v({
1096
+ "vue-ui-chord-arc": !0,
1097
+ "vue-ui-chord-arc-animated": B.value.useCssAnimation && !F.value
1098
+ }),
1099
+ key: `arc-${n}`,
1100
+ d: fn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1101
+ fill: `url(#${t.pattern})`,
1102
+ stroke: B.value.style.chart.arcs.stroke,
1103
+ "stroke-width": B.value.style.chart.arcs.strokeWidth,
1104
+ "stroke-linecap": "round",
1105
+ "stroke-linejoin": "round",
1106
+ style: b({
1107
+ opacity: Ln(t),
1108
+ pointerEvents: "none"
1109
+ })
1110
+ }, null, 14, Ze)) : p("", !0)]))), 256)),
1111
+ h("g", null, [
1112
+ (x(!0), m(u, null, C(j.value ? J.value.chords.filter((e) => e.source.groupId === j.value.id) : N.value ? J.value.chords.filter((e) => e.source.groupId === N.value) : J.value.chords, (t, n) => (x(), m(u, { key: `ribbon-${t.id}` }, [
1113
+ t.source.value ? (x(), m("path", {
1114
+ key: 0,
1115
+ class: v({
1116
+ "vue-ui-chord-ribbon": !0,
1117
+ "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1118
+ }),
1119
+ d: pn(t.source, t.target),
1120
+ fill: B.value.style.chart.backgroundColor,
1121
+ style: b({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
1122
+ }, null, 14, Qe)) : p("", !0),
1123
+ t.source.value ? (x(), m("path", {
1124
+ key: 1,
1125
+ class: v({
1126
+ "vue-ui-chord-ribbon": !0,
1127
+ "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1128
+ }),
1129
+ d: pn(t.source, t.target),
1130
+ fill: q.value.colors[t.source.index],
1131
+ stroke: B.value.style.chart.ribbons.stroke,
1132
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1133
+ "stroke-linecap": "round",
1134
+ "stroke-linejoin": "round",
1135
+ style: b({ opacity: In(t) }),
1136
+ onMouseenter: (e) => Nn({
1137
+ ...t,
1138
+ path: pn(t.source, t.target),
1139
+ color: q.value.colors[t.source.index]
1140
+ }, n),
1141
+ onClick: (e) => Fn({
1142
+ ...t,
1143
+ color: q.value.colors[t.source.index]
1144
+ }, n),
1145
+ onMouseleave: (e) => Pn({
1146
+ ...t,
1147
+ color: q.value.colors[t.source.index]
1148
+ }, n)
1149
+ }, null, 46, $e)) : p("", !0),
1150
+ t.source.value && e.$slots.pattern ? (x(), m("path", {
1151
+ key: 2,
1152
+ class: v({
1153
+ "vue-ui-chord-ribbon": !0,
1154
+ "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1155
+ }),
1156
+ d: pn(t.source, t.target),
1157
+ fill: `url(#pattern_${A.value}_${t.source.index})`,
1158
+ stroke: B.value.style.chart.ribbons.stroke,
1159
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1160
+ "stroke-linecap": "round",
1161
+ "stroke-linejoin": "round",
1162
+ style: b({
1163
+ opacity: In(t),
1164
+ pointerEvents: "none"
1165
+ })
1166
+ }, null, 14, et)) : p("", !0)
1167
+ ], 64))), 128)),
1168
+ M.value ? (x(), m("path", {
1169
+ key: 0,
1170
+ d: M.value.path,
1171
+ fill: M.value.color,
1172
+ stroke: B.value.style.chart.ribbons.stroke,
1173
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1174
+ "stroke-linecap": "round",
1175
+ "stroke-linejoin": "round",
1176
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1177
+ style: { pointerEvents: "none" }
1178
+ }, null, 8, tt)) : p("", !0),
1179
+ M.value && e.$slots.pattern ? (x(), m("path", {
1180
+ key: 1,
1181
+ d: M.value.path,
1182
+ fill: `url(#${M.value.source.pattern})`,
1183
+ stroke: B.value.style.chart.ribbons.stroke,
1184
+ "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1185
+ "stroke-linecap": "round",
1186
+ "stroke-linejoin": "round",
1187
+ class: v({ "vue-ui-chord-ribbon": !0 }),
1188
+ style: { pointerEvents: "none" }
1189
+ }, null, 8, nt)) : p("", !0)
1190
+ ]),
1191
+ (j.value || M.value || N.value) && B.value.style.chart.ribbons.labels.show ? (x(), m("g", rt, [(x(!0), m(u, null, C(dn.value, (e) => (x(), m(u, { key: e.id }, [
1192
+ h("line", {
1193
+ x1: e.midBaseX,
1194
+ y1: e.midBaseY,
1195
+ x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1196
+ y2: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1197
+ stroke: B.value.style.chart.backgroundColor,
1198
+ "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
1199
+ "pointer-events": "none"
1200
+ }, null, 8, it),
1201
+ h("line", {
1202
+ x1: e.midBaseX,
1203
+ y1: e.midBaseY,
1204
+ x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1205
+ y2: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1206
+ stroke: B.value.style.chart.ribbons.labels.connector.stroke,
1207
+ "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth,
1208
+ "pointer-events": "none"
1209
+ }, null, 8, at),
1210
+ B.value.style.chart.ribbons.labels.marker.show ? (x(), m("circle", {
1211
+ key: 0,
1212
+ cx: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1213
+ cy: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1214
+ r: B.value.style.chart.ribbons.labels.marker.radius,
1215
+ stroke: B.value.style.chart.ribbons.labels.marker.stroke,
1216
+ "stroke-width": B.value.style.chart.ribbons.labels.marker.strokeWidth,
1217
+ fill: e.groupColor,
1218
+ "pointer-events": "none"
1219
+ }, null, 8, ot)) : p("", !0),
1220
+ h("text", {
1221
+ transform: `
1222
+ translate(
1223
+ ${Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 24)},
1224
+ ${Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 24)}
1225
+ ) rotate(${-Y.value})
1226
+ `,
1227
+ fill: B.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : B.value.style.chart.ribbons.labels.color,
1228
+ "text-anchor": _n(e.theta),
1229
+ "font-size": B.value.style.chart.ribbons.labels.fontSize,
1230
+ "font-weight": B.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
1231
+ dy: ".35em",
1232
+ "pointer-events": "none"
1233
+ }, T(Dn(e.value)), 9, st)
1234
+ ], 64))), 128))])) : p("", !0),
1235
+ B.value.style.chart.arcs.labels.show ? (x(), m("g", ct, [B.value.style.chart.arcs.labels.curved ? (x(!0), m(u, { key: 0 }, C(J.value.groups, (e, t) => (x(), m("text", {
1236
+ class: "vue-ui-chord-label-curved",
1237
+ key: `curved-label-${t}`,
1238
+ "font-size": B.value.style.chart.arcs.labels.fontSize,
1239
+ "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1240
+ fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? E(ie)(q.value.colors[t]) : B.value.style.chart.arcs.labels.color
1241
+ }, [h("textPath", {
1242
+ href: `#labelPath-${t}_${A.value}`,
1243
+ startOffset: "50%",
1244
+ "text-anchor": "middle"
1245
+ }, T(q.value.labels[t]) + T(B.value.style.chart.arcs.labels.showPercentage ? E(n)({
1246
+ p: " (",
1247
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
1248
+ s: "%)",
1249
+ r: B.value.style.chart.arcs.labels.roundingPercentage
1250
+ }) : ""), 9, ut)], 8, lt))), 128)) : !j.value && !M.value && !N.value ? (x(!0), m(u, { key: 1 }, C(J.value.groups, (e, t) => (x(), m("text", {
1251
+ class: "vue-ui-chord-label-straight",
1252
+ key: `label-${t}`,
1253
+ transform: `
1254
+ ${vn((e.startAngle + e.endAngle) / 2)}
1255
+ rotate(${-Y.value})
1256
+ `,
1257
+ dy: ".35em",
1258
+ "text-anchor": gn(e) > Math.PI ? "end" : "start",
1259
+ "font-size": B.value.style.chart.arcs.labels.fontSize,
1260
+ "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1261
+ fill: B.value.style.chart.arcs.labels.color,
1262
+ innerHTML: E(l)({
1263
+ content: E(r)(Jn(e, t)),
1264
+ fontSize: B.value.style.chart.arcs.labels.fontSize,
1265
+ fill: B.value.style.chart.arcs.labels.color,
1266
+ x: 0,
1267
+ y: 0
1268
+ })
1269
+ }, null, 8, dt))), 128)) : p("", !0)])) : p("", !0)
1270
+ ], 8, Ye),
1271
+ w(e.$slots, "svg", { svg: {
1272
+ height: 600,
1273
+ width: 600,
1274
+ isPrintingImg: E(Yt) || E(Xt) || Bt.value,
1275
+ isPrintingSvg: Vt.value
1276
+ } }, void 0, !0)
1277
+ ], 42, We)),
1278
+ e.$slots.hint ? (x(), m("div", ft, [w(e.$slots, "hint", y(_({
1279
+ hint: B.value.a11y.translations.keyboardNavigation,
1280
+ isVisible: Ht.value
1281
+ })), void 0, !0)])) : p("", !0),
1282
+ e.$slots.watermark ? (x(), m("div", pt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Yt) || E(Xt) || Bt.value || Vt.value })), void 0, !0)])) : p("", !0),
1283
+ h("div", { id: `legend-bottom-${A.value}` }, null, 8, mt),
1284
+ Lt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ee, {
1285
+ key: 7,
1286
+ to: B.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1287
+ }, [h("div", {
1288
+ ref_key: "chartLegend",
1289
+ ref: jt
1290
+ }, [w(e.$slots, "legend", { legend: Un.value }, () => [B.value.style.chart.legend.show ? (x(), f(we, {
1291
+ key: `legend_${It.value}`,
1292
+ legendSet: Un.value,
1293
+ config: Wn.value,
1294
+ isCursorPointer: V.value,
1295
+ onClickMarker: t[0] ||= ({ legend: e }) => Hn(e.id)
1296
+ }, De({
1297
+ item: D(({ legend: e }) => [h("div", {
1298
+ style: b({ opacity: N.value ? N.value === e.id ? 1 : .3 : 1 }),
1299
+ onClick: (t) => e.select()
1300
+ }, T(e.name), 13, ht)]),
1301
+ _: 2
1302
+ }, [e.$slots.pattern ? {
1303
+ name: "legend-pattern",
1304
+ fn: D(({ legend: e, index: t }) => [ke(_e, {
1305
+ shape: e.shape,
1306
+ radius: 30,
1307
+ stroke: "none",
1308
+ plot: {
1309
+ x: 30,
1310
+ y: 30
1311
+ },
1312
+ fill: `url(#pattern_${A.value}_${t})`
1313
+ }, null, 8, ["shape", "fill"])]),
1314
+ key: "0"
1315
+ } : void 0]), 1032, [
1316
+ "legendSet",
1317
+ "config",
1318
+ "isCursorPointer"
1319
+ ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1320
+ e.$slots.source ? (x(), m("div", {
1321
+ key: 8,
1322
+ ref_key: "source",
1323
+ ref: Mt,
1324
+ dir: "auto"
1325
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1326
+ Y.value === B.value.initialRotation ? p("", !0) : (x(), m("div", gt, [w(e.$slots, "reset-action", { reset: Vn }, () => [h("button", {
1327
+ "data-cy-reset": "",
1328
+ tabindex: "0",
1329
+ role: "button",
1330
+ class: "vue-data-ui-refresh-button",
1331
+ style: b({
1332
+ background: B.value.style.chart.backgroundColor,
1333
+ cursor: V.value ? "pointer" : "default"
1334
+ }),
1335
+ onClick: Vn
1336
+ }, [ke(E(yt), {
1337
+ name: "refresh",
1338
+ stroke: B.value.style.chart.color
1339
+ }, null, 8, ["stroke"])], 4)], !0)])),
1340
+ k.value && B.value.userOptions.buttons.table ? (x(), f(Pe(Yn.value.component), Ae({ key: 10 }, Yn.value.props, {
1341
+ ref_key: "tableUnit",
1342
+ ref: Rt,
1343
+ onClose: Xn
1344
+ }), De({
1345
+ content: D(() => [(x(), f(E(bt), {
1346
+ key: `table_${Ft.value}`,
1347
+ colNames: Gn.value.colNames,
1348
+ head: Gn.value.head,
1349
+ body: Gn.value.body,
1350
+ config: Gn.value.config,
1351
+ title: B.value.table.useDialog ? "" : Yn.value.title,
1352
+ withCloseButton: !B.value.table.useDialog,
1353
+ isCursorPointer: V.value,
1354
+ onClose: Xn
1355
+ }, {
1356
+ th: D(({ th: e }) => [Oe(T(e.name), 1)]),
1357
+ td: D(({ td: e }) => [h("div", _t, T(e.name ? e.name : Dn(e)), 1)]),
1358
+ _: 1
1359
+ }, 8, [
1360
+ "colNames",
1361
+ "head",
1362
+ "body",
1363
+ "config",
1364
+ "title",
1365
+ "withCloseButton",
1366
+ "isCursorPointer"
1367
+ ]))]),
1368
+ _: 2
1369
+ }, [B.value.table.useDialog ? {
1370
+ name: "title",
1371
+ fn: D(() => [Oe(T(Yn.value.title), 1)]),
1372
+ key: "0"
1373
+ } : void 0, B.value.table.useDialog ? {
1374
+ name: "actions",
1375
+ fn: D(() => [h("button", {
1376
+ tabindex: "0",
1377
+ class: "vue-ui-user-options-button",
1378
+ onClick: t[1] ||= (e) => Kn(B.value.userOptions.callbacks.csv),
1379
+ style: b({ cursor: V.value ? "pointer" : "default" })
1380
+ }, [ke(E(yt), {
1381
+ name: "fileCsv",
1382
+ stroke: Yn.value.props.color
1383
+ }, null, 8, ["stroke"])], 4)]),
1384
+ key: "1"
1385
+ } : void 0]), 1040)) : p("", !0),
1386
+ w(e.$slots, "skeleton", {}, () => [E(Wt) ? (x(), f(de, { key: 0 })) : p("", !0)], !0)
1387
+ ], 46, Ve));
1388
+ }
1389
+ }, [["__scopeId", "data-v-2716f6ca"]]);
1390
+ //#endregion
1391
+ export { Be as n, vt as t };