vue-data-ui 3.25.4 → 3.25.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -1,1345 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, K as r, Lt as i, Pt as a, S as o, X as s, Yt as c, Zt as l, en as ee, ht as te, i as ne, nt as re, q as u, r as ie, t as ae, w as oe } from "./lib-Dql7cqyA.js";
3
- import { n as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-CyCVHo81.js";
5
- import { t as le } from "./usePrinter-DISD7q5m.js";
6
- import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as fe } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as me } from "./useChartExport-iwOqiIWX.js";
10
- import { t as he } from "./img-DhGApYG0.js";
11
- import { n as ge } from "./Title-CPHi-evi.js";
12
- import { t as _e } from "./Shape-CIqU-p2F.js";
13
- import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
15
- import { t as xe } from "./A11yDataTable-DdRsVULz.js";
16
- import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
17
- import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
18
- import { t as we } from "./Legend-X4kF4PvW.js";
19
- import { t as Te } from "./vue_ui_chord-DPfS1Umc.js";
20
- import { Fragment as d, Teleport as Ee, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ae, nextTick as je, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Me, onMounted as Ne, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as E, toRefs as Ie, unref as D, useCssVars as Le, watch as Re, withCtx as O, withModifiers as ze } from "vue";
21
- //#region src/components/vue-ui-chord.vue
22
- var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue = ["id"], We = [
23
- "xmlns",
24
- "viewBox",
25
- "aria-describedby"
26
- ], Ge = ["width", "height"], Ke = { key: 1 }, qe = ["id", "d"], Je = { key: 2 }, Ye = ["transform"], Xe = [
27
- "d",
28
- "fill",
29
- "stroke",
30
- "stroke-width",
31
- "onMouseenter",
32
- "onMouseleave",
33
- "onClick"
34
- ], Ze = [
35
- "d",
36
- "fill",
37
- "stroke",
38
- "stroke-width"
39
- ], Qe = ["d", "fill"], $e = [
40
- "d",
41
- "fill",
42
- "stroke",
43
- "stroke-width",
44
- "onMouseenter",
45
- "onClick",
46
- "onMouseleave"
47
- ], et = [
48
- "d",
49
- "fill",
50
- "stroke",
51
- "stroke-width"
52
- ], tt = [
53
- "d",
54
- "fill",
55
- "stroke",
56
- "stroke-width"
57
- ], nt = [
58
- "d",
59
- "fill",
60
- "stroke",
61
- "stroke-width"
62
- ], rt = { key: 0 }, it = [
63
- "x1",
64
- "y1",
65
- "x2",
66
- "y2",
67
- "stroke",
68
- "stroke-width"
69
- ], at = [
70
- "x1",
71
- "y1",
72
- "x2",
73
- "y2",
74
- "stroke",
75
- "stroke-width"
76
- ], ot = [
77
- "cx",
78
- "cy",
79
- "r",
80
- "stroke",
81
- "stroke-width",
82
- "fill"
83
- ], st = [
84
- "transform",
85
- "fill",
86
- "text-anchor",
87
- "font-size",
88
- "font-weight"
89
- ], ct = { key: 1 }, lt = [
90
- "font-size",
91
- "font-weight",
92
- "fill"
93
- ], ut = ["href"], dt = [
94
- "transform",
95
- "text-anchor",
96
- "font-size",
97
- "font-weight",
98
- "fill",
99
- "innerHTML"
100
- ], ft = {
101
- key: 5,
102
- style: {
103
- position: "absolute",
104
- top: "100%",
105
- left: "0",
106
- width: "100%"
107
- },
108
- "data-dom-to-png-ignore": "",
109
- "aria-hidden": "true"
110
- }, pt = {
111
- key: 6,
112
- class: "vue-data-ui-watermark"
113
- }, mt = ["id"], ht = ["onClick"], gt = {
114
- key: 9,
115
- "data-dom-to-png-ignore": "",
116
- class: "reset-wrapper"
117
- }, _t = { style: {
118
- "text-align": "right",
119
- width: "100%"
120
- } }, vt = /*#__PURE__*/ ve({
121
- __name: "vue-ui-chord",
122
- props: {
123
- dataset: {
124
- type: Object,
125
- default() {
126
- return {};
127
- }
128
- },
129
- config: {
130
- type: Object,
131
- default() {
132
- return {};
133
- }
134
- }
135
- },
136
- emits: [
137
- "selectLegend",
138
- "selectGroup",
139
- "selectRibbon",
140
- "copyAlt"
141
- ],
142
- setup(e, { expose: ve, emit: Be }) {
143
- Le((e) => ({ bdd35a12: e.slicerColor }));
144
- let vt = _(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), yt = _(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), bt = _(() => import("./DataTable-COIO9gi4.js")), xt = _(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), St = _(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Ct = _(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), wt = _(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = pe(), k = e, Ot = Be, A = C(!!k.dataset && Object.hasOwn(k.dataset, "matrix")), j = C(u()), M = C(null), N = C(null), P = C(null), kt = C(0), F = C(null), At = C(null), jt = C(null), Mt = C(null), Nt = C(null), Pt = C(0), Ft = C(0), It = C(0), Lt = C(!1), I = Fe(null), L = Fe(null), Rt = C(!1), zt = C(null), Bt = C(null), R = C("group"), z = C(null), Vt = C(!1), B = C(Qt());
145
- se({
146
- config: () => B.value,
147
- dataset: () => k.dataset,
148
- component: "VueUiChord",
149
- rules: [{
150
- test: (e) => e.matrix && e.matrix.length > 12,
151
- message: [
152
- "👀 The number of groups > 12, the chart might become hard to read. Consider:",
153
- "",
154
- "▶️ Using broader groups to reduce their number."
155
- ]
156
- }]
157
- });
158
- let V = f(() => B.value.userOptions.useCursorPointer), Ht = f(() => l({
159
- defaultConfig: {
160
- useCssAnimation: !1,
161
- userOptions: { show: !1 },
162
- table: { show: !1 },
163
- style: { chart: {
164
- backgroundColor: "#99999930",
165
- legend: { backgroundColor: "transparent" },
166
- arcs: {
167
- stroke: "#6A6A6A",
168
- labels: { show: !1 }
169
- },
170
- ribbons: {
171
- stroke: "#6A6A6A",
172
- underlayerOpacity: 0,
173
- labels: { show: !1 }
174
- }
175
- } }
176
- },
177
- userConfig: B.value.skeletonConfig ?? {}
178
- })), { loading: Ut, FINAL_DATASET: H, manualLoading: Wt } = ue({
179
- ...Ie(k),
180
- FINAL_CONFIG: B,
181
- prepareConfig: Qt,
182
- callback: () => {
183
- Promise.resolve().then(async () => {
184
- await je(), W.value.showTable = B.value.table.show;
185
- });
186
- },
187
- skeletonDataset: k.config?.skeletonDataset ?? {
188
- matrix: [
189
- [
190
- 12e3,
191
- 6e3,
192
- 9e3,
193
- 3e3
194
- ],
195
- [
196
- 2e3,
197
- 1e4,
198
- 2e3,
199
- 6001
200
- ],
201
- [
202
- 8e3,
203
- 1600,
204
- 8e3,
205
- 8001
206
- ],
207
- [
208
- 1e3,
209
- 1e3,
210
- 1e3,
211
- 7001
212
- ]
213
- ],
214
- labels: [],
215
- colors: [
216
- "#DBDBDB",
217
- "#C4C4C4",
218
- "#ADADAD",
219
- "#969696"
220
- ]
221
- },
222
- skeletonConfig: l({
223
- defaultConfig: B.value,
224
- userConfig: Ht.value
225
- })
226
- }), { userOptionsVisible: Gt, setUserOptionsVisibility: Kt, keepUserOptionState: qt } = Se({ config: B.value }), { svgRef: U } = Ce({ config: B.value.style.chart.title }), { isPrinting: Jt, isImaging: Yt, generatePdf: Xt, generateImage: Zt } = le({
227
- elementId: `chord_${j.value}`,
228
- fileName: B.value.style.chart.title.text || "vue-ui-chord",
229
- options: B.value.userOptions.print
230
- }), W = C({ showTable: B.value.table.show });
231
- function Qt() {
232
- let e = fe({
233
- userConfig: k.config,
234
- defaultConfig: Tt
235
- }), t = e.theme;
236
- if (!t) return e;
237
- if (!Et.value(e)) return Dt(e), e;
238
- let n = fe({
239
- userConfig: Te[t] || k.config,
240
- defaultConfig: e
241
- }), r = fe({
242
- userConfig: k.config,
243
- defaultConfig: n
244
- });
245
- return {
246
- ...r,
247
- customPalette: r.customPalette.length ? r.customPalette : c[t] || i
248
- };
249
- }
250
- Re(() => k.config, (e) => {
251
- Ut.value || (B.value = Qt()), Gt.value = !B.value.userOptions.showOnChartHover, en(), Pt.value += 1, Ft.value += 1, It.value += 1, X.value = B.value.initialRotation, W.value.showTable = B.value.table.show;
252
- }, { deep: !0 });
253
- let G = f(() => B.value.debug);
254
- Re(() => k.dataset, () => {
255
- $t(), en(), Pt.value += 1, Ft.value += 1, It.value += 1;
256
- });
257
- function $t() {
258
- if (a(k.dataset)) {
259
- re({
260
- componentName: "VueUiChord",
261
- type: "dataset",
262
- debug: G.value
263
- }), A.value = !1, Wt.value = !0;
264
- return;
265
- }
266
- let e = te({
267
- datasetObject: k.dataset,
268
- requiredAttributes: ["matrix"]
269
- });
270
- if (e.length) {
271
- G.value && e.forEach((e) => {
272
- re({
273
- componentName: "VueUiChord",
274
- type: "datasetAttribute",
275
- property: e
276
- });
277
- }), A.value = !1, Wt.value = !0;
278
- return;
279
- }
280
- let t = k.dataset.matrix;
281
- if (!Array.isArray(t) || t.length < 2) {
282
- G.value && console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1, Wt.value = !0;
283
- return;
284
- }
285
- let n = t.length, r = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
286
- if (r !== -1) {
287
- G.value && console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${r} has ${Array.isArray(t[r]) ? t[r].length : "NaN"} elements instead of the required ${n}
288
-
289
- dataset.matrix[${r}] = [${Array.isArray(t[r]) ? t[r].toString() : "invalid"}]`), A.value = !1, Wt.value = !0;
290
- return;
291
- }
292
- A.value = !0, Wt.value = !1;
293
- }
294
- function en() {
295
- if ($t(), B.value.responsive) {
296
- let e = ye(() => {
297
- let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = be({
298
- chart: F.value,
299
- title: B.value.style.chart.title.text ? At.value : null,
300
- legend: B.value.style.chart.legend.show ? jt.value : null,
301
- source: Mt.value,
302
- noTitle: Nt.value
303
- }), o = i + a + r + n;
304
- e < t ? F.value.style.width = "100%" : (F.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
305
- }, 100);
306
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = F.value.parentNode, I.value.observe(L.value), e();
307
- }
308
- nn.value = setTimeout(() => {
309
- Lt.value = !0;
310
- }, 500);
311
- }
312
- function tn() {
313
- if (!H.value || !Object.hasOwn(H.value, "matrix") || H.value.matrix.length < 2) {
314
- G.value && console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1;
315
- return;
316
- }
317
- H.value.matrix.forEach((e, t) => {
318
- e.length !== H.value.matrix.length && (G.value && console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${t} has ${e.length} elements instead of the required ${H.value.matrix.length}\n\ndataset.matrix[${t}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${H.value.matrix.length})`), A.value = !1);
319
- });
320
- }
321
- let nn = C(null);
322
- Ne(() => {
323
- Rt.value = !0, en();
324
- });
325
- let K = C({
326
- height: 600,
327
- width: 600
328
- }), rn = f(() => B.value.userOptions.show && !B.value.style.chart.title.text), an = f(() => oe(B.value.customPalette)), q = f(() => ({
329
- inner: K.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
330
- outer: K.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
331
- })), on = f(() => B.value.style.chart.arcs.padAngle / 100), J = f(() => ({
332
- matrix: H.value.matrix ?? [[0]],
333
- labels: H.value.labels ?? [""],
334
- colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => o(e)) : H.value.matrix.map((e, t) => an.value[t] || i[t] || i[t % i.length])
335
- }));
336
- function sn(e, t) {
337
- let n = e.length, r = q.value.inner, i = Array(n).fill(0), a = 0;
338
- for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1) i[t] += e[t][r], a += e[t][r];
339
- let o = (2 * Math.PI - t * n) / a, s = [], c = 0;
340
- for (let e = 0; e < n; e += 1) {
341
- let n = c, r = n + i[e] * o;
342
- s.push({
343
- index: e,
344
- pattern: `pattern_${j.value}_${e}`,
345
- startAngle: n,
346
- endAngle: r,
347
- name: J.value.labels[e],
348
- id: u(),
349
- color: J.value.colors[e],
350
- proportion: i[e] / a
351
- }), c = r + t;
352
- }
353
- let l = [];
354
- for (let t = 0; t < n; t += 1) {
355
- let n = e[t].map((e, t) => ({
356
- j: t,
357
- v: e
358
- }));
359
- n.sort((e, t) => t.v - e.v);
360
- let i = s[t].startAngle;
361
- for (let { j: e, v: a } of n) {
362
- let n = i, c = n + a * o;
363
- l.push({
364
- index: t,
365
- subIndex: e,
366
- pattern: `pattern_${j.value}_${t}`,
367
- startAngle: n,
368
- endAngle: c,
369
- value: a,
370
- groupName: J.value.labels[t],
371
- groupId: s[t].id,
372
- groupColor: J.value.colors[t],
373
- midAngle: (n + c) / 2,
374
- midBaseX: Math.cos((n + c) / 2 - Math.PI / 2) * r,
375
- midBaseY: Math.sin((n + c) / 2 - Math.PI / 2) * r
376
- }), i = c;
377
- }
378
- }
379
- let ee = [];
380
- for (let e of l) {
381
- let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
382
- ee.push({
383
- source: e,
384
- target: t,
385
- id: u()
386
- });
387
- }
388
- return {
389
- groups: s,
390
- chords: ee
391
- };
392
- }
393
- let Y = f(() => {
394
- let e = sn(J.value.matrix, on.value);
395
- return tn(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
396
- }), cn = f(() => {
397
- let e = q.value.outer + B.value.style.chart.ribbons.labels.offset + 12, t = B.value.style.chart.ribbons.labels.fontSize * .6, n = [];
398
- if (N.value) {
399
- let r = N.value;
400
- if (r.source.value) {
401
- let i = String(r.source.value);
402
- n.push({
403
- id: r.id + "-src",
404
- theta: r.source.midAngle,
405
- w: i.length * t / e,
406
- midBaseX: r.source.midBaseX,
407
- midBaseY: r.source.midBaseY,
408
- groupColor: r.source.groupColor,
409
- value: r.source.value
410
- });
411
- }
412
- if (r.target && r.target.value && r.target.value !== r.source.value) {
413
- let i = String(r.target.value);
414
- n.push({
415
- id: r.id + "-tgt",
416
- theta: r.target.midAngle,
417
- w: i.length * t / e,
418
- midBaseX: r.target.midBaseX,
419
- midBaseY: r.target.midBaseY,
420
- groupColor: r.target.groupColor,
421
- value: r.target.value
422
- });
423
- }
424
- return n;
425
- }
426
- function r(r) {
427
- Y.value.chords.filter((e) => e.source.groupId === r && e.source.value).forEach((r) => {
428
- {
429
- let i = String(r.source.value);
430
- n.push({
431
- id: r.id + "-src",
432
- theta: r.source.midAngle,
433
- w: i.length * t / e,
434
- midBaseX: r.source.midBaseX,
435
- midBaseY: r.source.midBaseY,
436
- groupColor: r.source.groupColor,
437
- value: r.source.value
438
- });
439
- }
440
- if (r.target && r.target.value && r.target.value !== r.source.value) {
441
- let i = String(r.target.value);
442
- n.push({
443
- id: r.id + "-tgt",
444
- theta: r.target.midAngle,
445
- w: i.length * t / e,
446
- midBaseX: r.target.midBaseX,
447
- midBaseY: r.target.midBaseY,
448
- groupColor: r.target.groupColor,
449
- value: r.target.value
450
- });
451
- }
452
- });
453
- }
454
- return P.value && r(P.value), M.value && r(M.value.id), n;
455
- }), ln = f(() => {
456
- let e = cn.value.map((e) => ({ ...e })).sort((e, t) => e.theta - t.theta), t = B.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180, n = !0, r = 0;
457
- for (; n && r++ < 10;) {
458
- n = !1;
459
- for (let r = 1; r < e.length; r += 1) {
460
- let i = e[r - 1], a = e[r], o = i.theta + i.w + t;
461
- a.theta < o && (a.theta = o, n = !0);
462
- }
463
- let r = e[0], i = e[e.length - 1], a = i.theta + i.w + t - 2 * Math.PI;
464
- r.theta < a && (r.theta = a, n = !0);
465
- }
466
- return e;
467
- });
468
- function un(e, t, n, r) {
469
- let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n, l = Math.sin(a) * n, ee = Math.cos(a) * r, te = Math.sin(a) * r, ne = Math.cos(i) * r, re = Math.sin(i) * r, u = +(t - e > Math.PI);
470
- return `M${o},${s} A${n},${n} 0 ${u} 1 ${c},${l} L${ee},${te} A${r},${r} 0 ${u} 0 ${ne},${re} Z`;
471
- }
472
- function dn(e, t) {
473
- let n = q.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n, l = Math.cos(i) * n, ee = Math.sin(i) * n, te = Math.cos(a) * n, ne = Math.sin(a) * n, re = Math.cos(o) * n, u = Math.sin(o) * n;
474
- return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${l},${ee}Q0,0 ${te},${ne}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${re},${u}Q0,0 ${s},${c}Z`;
475
- }
476
- let fn = f(() => X.value * Math.PI / 180);
477
- function pn(e) {
478
- return (e.startAngle + e.endAngle) / 2;
479
- }
480
- function mn(e) {
481
- return ((pn(e) + fn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
482
- }
483
- function hn(e) {
484
- let t = e + fn.value;
485
- return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
486
- }
487
- function gn(e) {
488
- let t = e - Math.PI / 2;
489
- return `translate(${Math.cos(t) * (q.value.outer + B.value.style.chart.arcs.labels.offset + 24)},${Math.sin(t) * (q.value.outer + B.value.style.chart.arcs.labels.offset + 24)})`;
490
- }
491
- function _n(e, t, n) {
492
- let r = e - Math.PI / 2, i = t - Math.PI / 2, a = Math.cos(r) * n, o = Math.sin(r) * n, s = Math.cos(i) * n, c = Math.sin(i) * n;
493
- return `M${a},${o} A${n},${n} 0 ${+(t - e > Math.PI)} 1 ${s},${c}`;
494
- }
495
- let X = C(B.value.initialRotation), vn = C(!1), yn = 0, bn = 0;
496
- function xn(e) {
497
- let t = U.value.getBoundingClientRect(), n = t.left + t.width / 2, r = t.top + t.height / 2, i = e.clientX ?? e.touches[0].clientX, a = e.clientY ?? e.touches[0].clientY;
498
- return Math.atan2(a - r, i - n);
499
- }
500
- function Sn(e) {
501
- !B.value.enableRotation || In.value || (e.preventDefault(), vn.value = !0, yn = X.value, bn = xn(e));
502
- }
503
- function Cn(e) {
504
- if (!vn.value) return;
505
- let t = xn(e);
506
- X.value = yn + (t - bn) * 180 / Math.PI;
507
- }
508
- function wn() {
509
- vn.value = !1;
510
- }
511
- function Tn(e) {
512
- return ne(B.value.style.chart.ribbons.labels.formatter, e, s({
513
- p: B.value.style.chart.ribbons.labels.prefix,
514
- v: e,
515
- s: B.value.style.chart.ribbons.labels.suffix,
516
- r: B.value.style.chart.ribbons.labels.rounding
517
- }));
518
- }
519
- Ne(() => {
520
- window.addEventListener("mousemove", Cn), window.addEventListener("mouseup", wn), window.addEventListener("touchmove", Cn, { passive: !1 }), window.addEventListener("touchend", wn);
521
- }), Me(() => {
522
- window.removeEventListener("mousemove", Cn), window.removeEventListener("mouseup", wn), window.removeEventListener("touchmove", Cn), window.removeEventListener("touchend", wn), clearTimeout(nn.value), I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
523
- });
524
- let En = C(!1);
525
- function Dn(e) {
526
- En.value = e, kt.value += 1;
527
- }
528
- function On(e, t) {
529
- B.value.events.datapointEnter && B.value.events.datapointEnter({
530
- datapoint: e,
531
- seriesIndex: t
532
- }), !P.value && (M.value = e);
533
- }
534
- function kn(e, t) {
535
- M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
536
- datapoint: e,
537
- seriesIndex: t
538
- });
539
- }
540
- function An(e, t) {
541
- Ot("selectGroup", e), B.value.events.datapointClick && B.value.events.datapointClick({
542
- datapoint: e,
543
- seriesIndex: t
544
- });
545
- }
546
- function jn(e, t) {
547
- B.value.events.datapointEnter && B.value.events.datapointEnter({
548
- datapoint: e,
549
- seriesIndex: t
550
- }), !P.value && (N.value = e);
551
- }
552
- function Mn(e, t) {
553
- N.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
554
- datapoint: e,
555
- seriesIndex: t
556
- });
557
- }
558
- function Nn(e, t) {
559
- Ot("selectRibbon", e), B.value.events.datapointClick && B.value.events.datapointClick({
560
- datapoint: e,
561
- seriesIndex: t
562
- });
563
- }
564
- function Pn(e) {
565
- return !P.value && !M.value && !N.value ? .8 : (P.value ? P.value === e.source.groupId : M.value ? M.value.id === e.source.groupId : N.value?.id === e.id) ? 1 : .1;
566
- }
567
- function Fn(e) {
568
- return !P.value && !M.value && !N.value || (P.value ? P.value === e.id : M.value ? M.value.id === e.id : [N.value?.source.groupId, N.value?.target.groupId].includes(e.id)) ? 1 : .3;
569
- }
570
- let In = C(!1);
571
- function Ln() {
572
- In.value = !In.value;
573
- }
574
- function Rn() {
575
- W.value.showTable = !W.value.showTable;
576
- }
577
- function zn() {
578
- return Y.value;
579
- }
580
- let Z = C(null);
581
- function Bn() {
582
- let e = B.value.initialRotation;
583
- Z.value !== null && cancelAnimationFrame(Z.value);
584
- let t = () => {
585
- X.value += (e - X.value) * .05, Math.abs(X.value - e) < .1 ? (X.value = e, Z.value = null) : Z.value = requestAnimationFrame(t);
586
- };
587
- Z.value = requestAnimationFrame(t);
588
- }
589
- Me(() => {
590
- Z.value !== null && cancelAnimationFrame(Z.value);
591
- });
592
- function Vn(e) {
593
- e === P.value ? (P.value = null, Ot("selectLegend", null)) : (P.value = e, Ot("selectLegend", Y.value.groups.find((t) => t.id === e)));
594
- }
595
- let Hn = f(() => Y.value.groups.map((e, t) => ({
596
- name: e.name,
597
- color: e.color,
598
- shape: "circle",
599
- patternIndex: t,
600
- pattern: `pattern_${j.value}_${t}`,
601
- id: e.id,
602
- select: () => Vn(e.id),
603
- opacity: P.value ? P.value === e.id ? 1 : .3 : 1
604
- }))), Un = f(() => ({
605
- cy: "chord-div-legend",
606
- backgroundColor: B.value.style.chart.legend.backgroundColor,
607
- color: B.value.style.chart.legend.color,
608
- fontSize: B.value.style.chart.legend.fontSize,
609
- paddingBottom: 12,
610
- fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
611
- })), Q = f(() => ({
612
- head: Y.value.groups.map((e, t) => ({
613
- name: e.name || t,
614
- color: e.color
615
- })),
616
- body: J.value.matrix
617
- })), Wn = f(() => {
618
- let e = [{
619
- name: "",
620
- color: null
621
- }, ...Q.value.head];
622
- return {
623
- colNames: e,
624
- head: e,
625
- body: Q.value.body.map((e, t) => [Q.value.head[t], ...Q.value.body[t]]),
626
- config: {
627
- th: {
628
- backgroundColor: B.value.table.th.backgroundColor,
629
- color: B.value.table.th.color,
630
- outline: B.value.table.th.outline
631
- },
632
- td: {
633
- backgroundColor: B.value.table.td.backgroundColor,
634
- color: B.value.table.td.color,
635
- outline: B.value.table.td.outline
636
- },
637
- breakpoint: B.value.table.responsiveBreakpoint
638
- }
639
- };
640
- });
641
- function Gn(e = null) {
642
- je(() => {
643
- let r = J.value.matrix.map((e, t) => [[J.value.labels[t] || t], e]), i = [
644
- [B.value.style.chart.title.text],
645
- [B.value.style.chart.title.subtitle.text],
646
- [[""], ...J.value.labels.map((e, t) => [e || t])]
647
- ].concat(r), a = n(i);
648
- e ? e(a) : t({
649
- csvContent: a,
650
- title: B.value.style.chart.title.text || "vue-ui-chord"
651
- });
652
- });
653
- }
654
- async function Kn({ scale: e = 2 } = {}) {
655
- if (!F.value) return;
656
- let { width: t, height: n } = F.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
657
- domElement: F.value,
658
- base64: !0,
659
- img: !0,
660
- scale: e
661
- });
662
- return {
663
- imageUri: i,
664
- base64: a,
665
- title: B.value.style.chart.title.text,
666
- width: t,
667
- height: n,
668
- aspectRatio: r
669
- };
670
- }
671
- function qn(e, t) {
672
- return `${J.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? s({
673
- p: " (",
674
- v: isNaN(e.proportion) ? 0 : e.proportion * 100,
675
- s: "%)",
676
- r: B.value.style.chart.arcs.labels.roundingPercentage
677
- }) : ""}`;
678
- }
679
- let Jn = f(() => {
680
- let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
681
- return {
682
- component: e ? wt : vt,
683
- title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
684
- props: e ? {
685
- backgroundColor: B.value.table.th.backgroundColor,
686
- color: B.value.table.th.color,
687
- headerColor: B.value.table.th.color,
688
- headerBg: B.value.table.th.backgroundColor,
689
- isFullscreen: En.value,
690
- fullscreenParent: F.value,
691
- forcedWidth: Math.min(800, window.innerWidth * .8),
692
- isCursorPointer: V.value
693
- } : {
694
- hideDetails: !0,
695
- config: {
696
- open: t,
697
- maxHeight: 1e4,
698
- body: {
699
- backgroundColor: B.value.style.chart.backgroundColor,
700
- color: B.value.style.chart.color
701
- },
702
- head: {
703
- backgroundColor: B.value.style.chart.backgroundColor,
704
- color: B.value.style.chart.color
705
- }
706
- }
707
- }
708
- };
709
- });
710
- Re(() => W.value.showTable, (e) => {
711
- B.value.table.show || (e && B.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
712
- });
713
- function Yn() {
714
- W.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
715
- }
716
- let Xn = f(() => B.value.style.chart.backgroundColor), Zn = f(() => B.value.style.chart.legend), Qn = f(() => B.value.style.chart.title), { isCallbackImaging: $n, isCallbackSvg: er, generateSvg: tr, onGenerateImage: nr } = me({
717
- svg: U,
718
- title: Qn,
719
- legend: Zn,
720
- legendItems: Hn,
721
- backgroundColor: Xn,
722
- getSvgCallback: () => B.value.userOptions.callbacks.svg,
723
- generateImage: Zt
724
- });
725
- async function rr() {
726
- if (Ot("copyAlt", {
727
- config: B.value,
728
- dataset: J.value
729
- }), !B.value.userOptions.callbacks.altCopy) {
730
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
731
- return;
732
- }
733
- await Promise.resolve(B.value.userOptions.callbacks.altCopy({
734
- config: B.value,
735
- dataset: J.value
736
- }));
737
- }
738
- let ir = f(() => (M.value ? Y.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? Y.value.chords.filter((e) => e.source.groupId === P.value) : Y.value.chords).filter((e) => e.source.value)), $ = f(() => ({
739
- groups: Y.value.groups.map((e, t) => ({
740
- type: "group",
741
- index: t,
742
- item: e
743
- })),
744
- ribbons: ir.value.map((e, t) => ({
745
- type: "ribbon",
746
- index: t,
747
- item: {
748
- ...e,
749
- path: dn(e.source, e.target),
750
- color: J.value.colors[e.source.index]
751
- }
752
- }))
753
- })), ar = f(() => ({
754
- headers: ["", ...Q.value.head.map((e) => e.name)],
755
- rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => Tn(e))])
756
- }));
757
- function or(e) {
758
- let t = $.value.groups[e];
759
- t && (R.value = "group", z.value = e, N.value = null, M.value = t.item);
760
- }
761
- function sr(e) {
762
- let t = $.value.ribbons[e];
763
- t && (R.value = "ribbon", z.value = e, M.value = null, N.value = t.item);
764
- }
765
- function cr() {
766
- z.value = null, R.value = "group", M.value = null, N.value = null;
767
- }
768
- function lr() {
769
- Vt.value = !0, R.value = "group", z.value = null;
770
- }
771
- function ur() {
772
- Vt.value = !1, cr();
773
- }
774
- function dr(e) {
775
- if (!U.value || In.value || document.activeElement !== U.value) return;
776
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
777
- if (!t && !n && !r && !i && !a && !o) return;
778
- if (e.preventDefault(), e.stopPropagation(), o) {
779
- cr();
780
- return;
781
- }
782
- if (r) {
783
- R.value = "group", $.value.groups.length && or(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
784
- return;
785
- }
786
- if (i) {
787
- if (!$.value.ribbons.length) return;
788
- R.value = "ribbon", sr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
789
- return;
790
- }
791
- if (a) {
792
- if (R.value === "group") {
793
- let e = $.value.groups[z.value];
794
- e && An(e.item, e.index);
795
- } else {
796
- let e = $.value.ribbons[z.value];
797
- e && Nn(e.item, e.index);
798
- }
799
- return;
800
- }
801
- let s = R.value === "group" ? $.value.groups : $.value.ribbons;
802
- if (!s.length) return;
803
- let c = z.value;
804
- c === null || c < 0 || c >= s.length ? c = n ? 0 : s.length - 1 : n ? (c += 1, c >= s.length && (c = 0)) : t && (--c, c < 0 && (c = s.length - 1)), R.value === "group" ? or(c) : sr(c);
805
- }
806
- return ve({
807
- getData: zn,
808
- getImage: Kn,
809
- generateCsv: Gn,
810
- generateImage: Zt,
811
- generateSvg: tr,
812
- generatePdf: Xt,
813
- toggleAnnotator: Ln,
814
- toggleTable: Rn,
815
- toggleFullscreen: Dn,
816
- copyAlt: rr
817
- }), (e, t) => (S(), h("div", {
818
- ref_key: "chordChart",
819
- ref: F,
820
- class: y({
821
- "vue-data-ui-component": !0,
822
- "vue-ui-chord": !0,
823
- "vue-data-ui-wrapper-fullscreen": En.value,
824
- "vue-data-ui-responsive": B.value.responsive
825
- }),
826
- style: x(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
827
- id: `chord_${j.value}`,
828
- onMouseenter: t[2] ||= () => D(Kt)(!0),
829
- onMouseleave: t[3] ||= () => D(Kt)(!1)
830
- }, [
831
- g("div", {
832
- id: `chart-instructions-${j.value}`,
833
- class: "sr-only"
834
- }, [g("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
835
- ar.value?.rows?.length ? (S(), p(xe, {
836
- key: 0,
837
- uid: j.value,
838
- head: ar.value.headers,
839
- body: ar.value.rows,
840
- notice: B.value.a11y.translations.tableAvailable,
841
- caption: B.value.a11y.translations.tableCaption
842
- }, null, 8, [
843
- "uid",
844
- "head",
845
- "body",
846
- "notice",
847
- "caption"
848
- ])) : m("", !0),
849
- B.value.userOptions.buttons.annotator && D(U) ? (S(), p(D(St), {
850
- key: 1,
851
- color: B.value.style.chart.color,
852
- backgroundColor: B.value.style.chart.backgroundColor,
853
- active: In.value,
854
- svgRef: D(U),
855
- isCursorPointer: V.value,
856
- 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(s)({
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(r)({
1217
- content: D(ee)(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 };