vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,22 +1,23 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, E as r, G as i, Gt as a, K as o, Nt as s, Q as c, Xt as ee, Y as l, et as te, ft as ne, i as re, qt as ie, r as ae, t as oe, x as se } from "./lib-CFm_J26b.js";
3
- import { t as ce } from "./useConfig-C0V0eG7L.js";
4
- import { t as le } from "./usePrinter-BH-xle1O.js";
2
+ import { $ as t, D as n, Jt as r, K as i, Kt as a, Pt as o, S as s, X as c, Zt as l, i as ee, jt as te, pt as ne, q as u, r as re, t as ie, tt as ae, w as oe } from "./lib-BuMGJ_a0.js";
3
+ import { n as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-BilxnBNr.js";
5
+ import { t as le } from "./usePrinter-BFvi4jVy.js";
5
6
  import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
6
7
  import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as pe } from "./useNestedProp-BY6DNN3i.js";
8
+ import { t as pe } from "./useNestedProp--NSEmhOH.js";
8
9
  import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as he } from "./img-Bikk1dGb.js";
10
- import { n as ge } from "./Title-BuPs74IB.js";
11
- import { t as _e } from "./Shape-BfnXr1nJ.js";
10
+ import { t as he } from "./img-DIQG5q8T.js";
11
+ import { n as ge } from "./Title-BODtwViI.js";
12
+ import { t as _e } from "./Shape-BPMV94Ij.js";
12
13
  import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
14
  import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
14
15
  import { t as xe } from "./A11yDataTable-DdRsVULz.js";
15
16
  import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
16
17
  import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as we } from "./Legend-C0xAnJdO.js";
18
+ import { t as we } from "./Legend-CQTRlzK-.js";
18
19
  import { t as Te } from "./vue_ui_chord-DPfS1Umc.js";
19
- 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";
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";
20
21
  //#region src/components/vue-ui-chord.vue
21
22
  var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue = ["id"], We = [
22
23
  "xmlns",
@@ -139,8 +140,22 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
139
140
  "copyAlt"
140
141
  ],
141
142
  setup(e, { expose: ve, emit: Be }) {
142
- Le((e) => ({ v73ba9455: e.slicerColor }));
143
- let vt = g(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), yt = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), bt = g(() => import("./DataTable-DzPEVvSo.js")), xt = g(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), St = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ct = g(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), wt = g(() => import("./BaseDraggableDialog-3n8udWmh.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(o()), 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(() => ie({
143
+ Le((e) => ({ v34dc8e9b: e.slicerColor }));
144
+ let vt = _(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), yt = _(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), bt = _(() => import("./DataTable-D4tM9s5Y.js")), xt = _(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), St = _(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Ct = _(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), wt = _(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = me(), 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), Vt = C(!1), Ht = C(!1), R = C("group"), z = C(null), Ut = C(!1), B = C(en());
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), Wt = f(() => r({
144
159
  defaultConfig: {
145
160
  useCssAnimation: !1,
146
161
  userOptions: { show: !1 },
@@ -160,16 +175,16 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
160
175
  } }
161
176
  },
162
177
  userConfig: B.value.skeletonConfig ?? {}
163
- })), { loading: Wt, FINAL_DATASET: H, manualLoading: Gt } = ue({
164
- ...Ie(O),
178
+ })), { loading: Gt, FINAL_DATASET: H, manualLoading: Kt } = ue({
179
+ ...Ie(k),
165
180
  FINAL_CONFIG: B,
166
- prepareConfig: $t,
181
+ prepareConfig: en,
167
182
  callback: () => {
168
183
  Promise.resolve().then(async () => {
169
184
  await je(), W.value.showTable = B.value.table.show;
170
185
  });
171
186
  },
172
- skeletonDataset: O.config?.skeletonDataset ?? {
187
+ skeletonDataset: k.config?.skeletonDataset ?? {
173
188
  matrix: [
174
189
  [
175
190
  12e3,
@@ -204,137 +219,137 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
204
219
  "#969696"
205
220
  ]
206
221
  },
207
- skeletonConfig: ie({
222
+ skeletonConfig: r({
208
223
  defaultConfig: B.value,
209
- userConfig: Ut.value
224
+ userConfig: Wt.value
210
225
  })
211
- }), { 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({
212
- elementId: `chord_${A.value}`,
226
+ }), { userOptionsVisible: qt, setUserOptionsVisibility: Jt, keepUserOptionState: Yt } = Se({ config: B.value }), { svgRef: U } = Ce({ config: B.value.style.chart.title }), { isPrinting: Xt, isImaging: Zt, generatePdf: Qt, generateImage: $t } = le({
227
+ elementId: `chord_${j.value}`,
213
228
  fileName: B.value.style.chart.title.text || "vue-ui-chord",
214
229
  options: B.value.userOptions.print
215
- }), W = S({ showTable: B.value.table.show });
216
- function $t() {
230
+ }), W = C({ showTable: B.value.table.show });
231
+ function en() {
217
232
  let e = pe({
218
- userConfig: O.config,
233
+ userConfig: k.config,
219
234
  defaultConfig: Tt
220
235
  }), t = e.theme;
221
236
  if (!t) return e;
222
237
  if (!Et.value(e)) return Dt(e), e;
223
238
  let n = pe({
224
- userConfig: Te[t] || O.config,
239
+ userConfig: Te[t] || k.config,
225
240
  defaultConfig: e
226
241
  }), r = pe({
227
- userConfig: O.config,
242
+ userConfig: k.config,
228
243
  defaultConfig: n
229
244
  });
230
245
  return {
231
246
  ...r,
232
- customPalette: r.customPalette.length ? r.customPalette : a[t] || s
247
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || o
233
248
  };
234
249
  }
235
- Re(() => O.config, (e) => {
236
- 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;
250
+ Re(() => k.config, (e) => {
251
+ Gt.value || (B.value = en()), qt.value = !B.value.userOptions.showOnChartHover, rn(), Pt.value += 1, Ft.value += 1, It.value += 1, Y.value = B.value.initialRotation, W.value.showTable = B.value.table.show;
237
252
  }, { deep: !0 });
238
- let en = d(() => B.value.debug);
239
- Re(() => O.dataset, () => {
240
- tn(), nn(), Pt.value += 1, Ft.value += 1, It.value += 1;
253
+ let tn = f(() => B.value.debug);
254
+ Re(() => k.dataset, () => {
255
+ nn(), rn(), Pt.value += 1, Ft.value += 1, It.value += 1;
241
256
  });
242
- function tn() {
243
- if (t(O.dataset)) {
244
- te({
257
+ function nn() {
258
+ if (te(k.dataset)) {
259
+ ae({
245
260
  componentName: "VueUiChord",
246
261
  type: "dataset",
247
- debug: en.value
248
- }), k.value = !1, Gt.value = !0;
262
+ debug: tn.value
263
+ }), A.value = !1, Kt.value = !0;
249
264
  return;
250
265
  }
251
266
  let e = ne({
252
- datasetObject: O.dataset,
267
+ datasetObject: k.dataset,
253
268
  requiredAttributes: ["matrix"]
254
269
  });
255
270
  if (e.length) {
256
271
  e.forEach((e) => {
257
- te({
272
+ ae({
258
273
  componentName: "VueUiChord",
259
274
  type: "datasetAttribute",
260
275
  property: e,
261
- debug: en.value
276
+ debug: tn.value
262
277
  });
263
- }), k.value = !1, Gt.value = !0;
278
+ }), A.value = !1, Kt.value = !0;
264
279
  return;
265
280
  }
266
- let n = O.dataset.matrix;
267
- if (!Array.isArray(n) || n.length < 2) {
268
- 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;
281
+ let t = k.dataset.matrix;
282
+ if (!Array.isArray(t) || t.length < 2) {
283
+ 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, Kt.value = !0;
269
284
  return;
270
285
  }
271
- let r = n.length, i = n.findIndex((e) => !Array.isArray(e) || e.length !== r);
272
- if (i !== -1) {
273
- console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${i} has ${Array.isArray(n[i]) ? n[i].length : "NaN"} elements instead of the required ${r}
286
+ let n = t.length, r = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
287
+ if (r !== -1) {
288
+ 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}
274
289
 
275
- dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`), k.value = !1, Gt.value = !0;
290
+ dataset.matrix[${r}] = [${Array.isArray(t[r]) ? t[r].toString() : "invalid"}]`), A.value = !1, Kt.value = !0;
276
291
  return;
277
292
  }
278
- k.value = !0, Gt.value = !1;
293
+ A.value = !0, Kt.value = !1;
279
294
  }
280
- function nn() {
281
- if (tn(), B.value.responsive) {
295
+ function rn() {
296
+ if (nn(), B.value.responsive) {
282
297
  let e = ye(() => {
283
298
  let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = be({
284
- chart: P.value,
299
+ chart: F.value,
285
300
  title: B.value.style.chart.title.text ? At.value : null,
286
301
  legend: B.value.style.chart.legend.show ? jt.value : null,
287
302
  source: Mt.value,
288
303
  noTitle: Nt.value
289
304
  }), o = i + a + r + n;
290
- e < t ? P.value.style.width = "100%" : (P.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
305
+ e < t ? F.value.style.width = "100%" : (F.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
291
306
  }, 100);
292
- 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();
307
+ 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();
293
308
  }
294
- an.value = setTimeout(() => {
295
- F.value = !0;
309
+ on.value = setTimeout(() => {
310
+ Lt.value = !0;
296
311
  }, 500);
297
312
  }
298
- function rn() {
313
+ function an() {
299
314
  if (!H.value || !Object.hasOwn(H.value, "matrix") || H.value.matrix.length < 2) {
300
- console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1;
315
+ 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;
301
316
  return;
302
317
  }
303
318
  H.value.matrix.forEach((e, t) => {
304
- 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);
319
+ 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})`), A.value = !1);
305
320
  });
306
321
  }
307
- let an = S(null);
322
+ let on = C(null);
308
323
  Ne(() => {
309
- Lt.value = !0, nn();
324
+ Rt.value = !0, rn();
310
325
  });
311
- let G = S({
326
+ let G = C({
312
327
  height: 600,
313
328
  width: 600
314
- }), on = d(() => B.value.userOptions.show && !B.value.style.chart.title.text), sn = d(() => n(B.value.customPalette)), K = d(() => ({
329
+ }), sn = f(() => B.value.userOptions.show && !B.value.style.chart.title.text), cn = f(() => oe(B.value.customPalette)), K = f(() => ({
315
330
  inner: G.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
316
331
  outer: G.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
317
- })), cn = d(() => B.value.style.chart.arcs.padAngle / 100), q = d(() => ({
332
+ })), ln = f(() => B.value.style.chart.arcs.padAngle / 100), q = f(() => ({
318
333
  matrix: H.value.matrix ?? [[0]],
319
334
  labels: H.value.labels ?? [""],
320
- 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])
335
+ colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => s(e)) : H.value.matrix.map((e, t) => cn.value[t] || o[t] || o[t % o.length])
321
336
  }));
322
- function ln(e, t) {
337
+ function un(e, t) {
323
338
  let n = e.length, r = K.value.inner, i = Array(n).fill(0), a = 0;
324
339
  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];
325
- let s = (2 * Math.PI - t * n) / a, c = [], ee = 0;
340
+ let o = (2 * Math.PI - t * n) / a, s = [], c = 0;
326
341
  for (let e = 0; e < n; e += 1) {
327
- let n = ee, r = n + i[e] * s;
328
- c.push({
342
+ let n = c, r = n + i[e] * o;
343
+ s.push({
329
344
  index: e,
330
- pattern: `pattern_${A.value}_${e}`,
345
+ pattern: `pattern_${j.value}_${e}`,
331
346
  startAngle: n,
332
347
  endAngle: r,
333
348
  name: q.value.labels[e],
334
- id: o(),
349
+ id: u(),
335
350
  color: q.value.colors[e],
336
351
  proportion: i[e] / a
337
- }), ee = r + t;
352
+ }), c = r + t;
338
353
  }
339
354
  let l = [];
340
355
  for (let t = 0; t < n; t += 1) {
@@ -343,46 +358,46 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
343
358
  v: e
344
359
  }));
345
360
  n.sort((e, t) => t.v - e.v);
346
- let i = c[t].startAngle;
361
+ let i = s[t].startAngle;
347
362
  for (let { j: e, v: a } of n) {
348
- let n = i, o = n + a * s;
363
+ let n = i, c = n + a * o;
349
364
  l.push({
350
365
  index: t,
351
366
  subIndex: e,
352
- pattern: `pattern_${A.value}_${t}`,
367
+ pattern: `pattern_${j.value}_${t}`,
353
368
  startAngle: n,
354
- endAngle: o,
369
+ endAngle: c,
355
370
  value: a,
356
371
  groupName: q.value.labels[t],
357
- groupId: c[t].id,
372
+ groupId: s[t].id,
358
373
  groupColor: q.value.colors[t],
359
- midAngle: (n + o) / 2,
360
- midBaseX: Math.cos((n + o) / 2 - Math.PI / 2) * r,
361
- midBaseY: Math.sin((n + o) / 2 - Math.PI / 2) * r
362
- }), i = o;
374
+ midAngle: (n + c) / 2,
375
+ midBaseX: Math.cos((n + c) / 2 - Math.PI / 2) * r,
376
+ midBaseY: Math.sin((n + c) / 2 - Math.PI / 2) * r
377
+ }), i = c;
363
378
  }
364
379
  }
365
- let te = [];
380
+ let ee = [];
366
381
  for (let e of l) {
367
382
  let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
368
- te.push({
383
+ ee.push({
369
384
  source: e,
370
385
  target: t,
371
- id: o()
386
+ id: u()
372
387
  });
373
388
  }
374
389
  return {
375
- groups: c,
376
- chords: te
390
+ groups: s,
391
+ chords: ee
377
392
  };
378
393
  }
379
- let J = d(() => {
380
- let e = ln(q.value.matrix, cn.value);
381
- return rn(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
382
- }), un = d(() => {
394
+ let J = f(() => {
395
+ let e = un(q.value.matrix, ln.value);
396
+ return an(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
397
+ }), dn = f(() => {
383
398
  let e = K.value.outer + B.value.style.chart.ribbons.labels.offset + 12, t = B.value.style.chart.ribbons.labels.fontSize * .6, n = [];
384
- if (M.value) {
385
- let r = M.value;
399
+ if (N.value) {
400
+ let r = N.value;
386
401
  if (r.source.value) {
387
402
  let i = String(r.source.value);
388
403
  n.push({
@@ -437,9 +452,9 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
437
452
  }
438
453
  });
439
454
  }
440
- return N.value && r(N.value), j.value && r(j.value.id), n;
441
- }), dn = d(() => {
442
- 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;
455
+ return P.value && r(P.value), M.value && r(M.value.id), n;
456
+ }), fn = f(() => {
457
+ let e = dn.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;
443
458
  for (; n && r++ < 10;) {
444
459
  n = !1;
445
460
  for (let r = 1; r < e.length; r += 1) {
@@ -451,51 +466,51 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
451
466
  }
452
467
  return e;
453
468
  });
454
- function fn(e, t, n, r) {
455
- 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);
456
- return `M${o},${s} A${n},${n} 0 ${ie} 1 ${c},${ee} L${l},${te} A${r},${r} 0 ${ie} 0 ${ne},${re} Z`;
469
+ function pn(e, t, n, r) {
470
+ 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, u = Math.sin(i) * r, re = +(t - e > Math.PI);
471
+ return `M${o},${s} A${n},${n} 0 ${re} 1 ${c},${l} L${ee},${te} A${r},${r} 0 ${re} 0 ${ne},${u} Z`;
457
472
  }
458
- function pn(e, t) {
459
- 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;
460
- 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`;
461
- }
462
- let mn = d(() => Y.value * Math.PI / 180);
463
- function hn(e) {
464
- return (e.startAngle + e.endAngle) / 2;
473
+ function mn(e, t) {
474
+ 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, l = Math.cos(i) * n, ee = Math.sin(i) * n, te = Math.cos(a) * n, ne = Math.sin(a) * n, u = Math.cos(o) * n, re = Math.sin(o) * n;
475
+ 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 ${u},${re}Q0,0 ${s},${c}Z`;
465
476
  }
477
+ let hn = f(() => Y.value * Math.PI / 180);
466
478
  function gn(e) {
467
- return ((hn(e) + mn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
479
+ return (e.startAngle + e.endAngle) / 2;
468
480
  }
469
481
  function _n(e) {
470
- let t = e + mn.value;
471
- return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
482
+ return ((gn(e) + hn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
472
483
  }
473
484
  function vn(e) {
485
+ let t = e + hn.value;
486
+ return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
487
+ }
488
+ function yn(e) {
474
489
  let t = e - Math.PI / 2;
475
490
  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)})`;
476
491
  }
477
- function yn(e, t, n) {
492
+ function bn(e, t, n) {
478
493
  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;
479
494
  return `M${a},${o} A${n},${n} 0 ${+(t - e > Math.PI)} 1 ${s},${c}`;
480
495
  }
481
- let Y = S(B.value.initialRotation), bn = S(!1), xn = 0, Sn = 0;
482
- function Cn(e) {
496
+ let Y = C(B.value.initialRotation), xn = C(!1), Sn = 0, Cn = 0;
497
+ function wn(e) {
483
498
  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;
484
499
  return Math.atan2(a - r, i - n);
485
500
  }
486
- function wn(e) {
487
- !B.value.enableRotation || X.value || (e.preventDefault(), bn.value = !0, xn = Y.value, Sn = Cn(e));
488
- }
489
501
  function Tn(e) {
490
- if (!bn.value) return;
491
- let t = Cn(e);
492
- Y.value = xn + (t - Sn) * 180 / Math.PI;
502
+ !B.value.enableRotation || X.value || (e.preventDefault(), xn.value = !0, Sn = Y.value, Cn = wn(e));
503
+ }
504
+ function En(e) {
505
+ if (!xn.value) return;
506
+ let t = wn(e);
507
+ Y.value = Sn + (t - Cn) * 180 / Math.PI;
493
508
  }
494
- function En() {
495
- bn.value = !1;
509
+ function Dn() {
510
+ xn.value = !1;
496
511
  }
497
- function Dn(e) {
498
- return re(B.value.style.chart.ribbons.labels.formatter, e, l({
512
+ function On(e) {
513
+ return ee(B.value.style.chart.ribbons.labels.formatter, e, c({
499
514
  p: B.value.style.chart.ribbons.labels.prefix,
500
515
  v: e,
501
516
  s: B.value.style.chart.ribbons.labels.suffix,
@@ -503,68 +518,68 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
503
518
  }));
504
519
  }
505
520
  Ne(() => {
506
- window.addEventListener("mousemove", Tn), window.addEventListener("mouseup", En), window.addEventListener("touchmove", Tn, { passive: !1 }), window.addEventListener("touchend", En);
521
+ window.addEventListener("mousemove", En), window.addEventListener("mouseup", Dn), window.addEventListener("touchmove", En, { passive: !1 }), window.addEventListener("touchend", Dn);
507
522
  }), Me(() => {
508
- 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());
523
+ window.removeEventListener("mousemove", En), window.removeEventListener("mouseup", Dn), window.removeEventListener("touchmove", En), window.removeEventListener("touchend", Dn), clearTimeout(on.value), I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
509
524
  });
510
- let On = S(!1);
511
- function kn(e) {
512
- On.value = e, kt.value += 1;
525
+ let kn = C(!1);
526
+ function An(e) {
527
+ kn.value = e, kt.value += 1;
513
528
  }
514
- function An(e, t) {
529
+ function jn(e, t) {
515
530
  B.value.events.datapointEnter && B.value.events.datapointEnter({
516
531
  datapoint: e,
517
532
  seriesIndex: t
518
- }), !N.value && (j.value = e);
533
+ }), !P.value && (M.value = e);
519
534
  }
520
- function jn(e, t) {
521
- j.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
535
+ function Mn(e, t) {
536
+ M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
522
537
  datapoint: e,
523
538
  seriesIndex: t
524
539
  });
525
540
  }
526
- function Mn(e, t) {
541
+ function Nn(e, t) {
527
542
  Ot("selectGroup", e), B.value.events.datapointClick && B.value.events.datapointClick({
528
543
  datapoint: e,
529
544
  seriesIndex: t
530
545
  });
531
546
  }
532
- function Nn(e, t) {
547
+ function Pn(e, t) {
533
548
  B.value.events.datapointEnter && B.value.events.datapointEnter({
534
549
  datapoint: e,
535
550
  seriesIndex: t
536
- }), !N.value && (M.value = e);
551
+ }), !P.value && (N.value = e);
537
552
  }
538
- function Pn(e, t) {
539
- M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
553
+ function Fn(e, t) {
554
+ N.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
540
555
  datapoint: e,
541
556
  seriesIndex: t
542
557
  });
543
558
  }
544
- function Fn(e, t) {
559
+ function In(e, t) {
545
560
  Ot("selectRibbon", e), B.value.events.datapointClick && B.value.events.datapointClick({
546
561
  datapoint: e,
547
562
  seriesIndex: t
548
563
  });
549
564
  }
550
- function In(e) {
551
- 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;
552
- }
553
565
  function Ln(e) {
554
- 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;
566
+ 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;
555
567
  }
556
- let X = S(!1);
557
- function Rn() {
558
- X.value = !X.value;
568
+ function Rn(e) {
569
+ 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;
559
570
  }
571
+ let X = C(!1);
560
572
  function zn() {
561
- W.value.showTable = !W.value.showTable;
573
+ X.value = !X.value;
562
574
  }
563
575
  function Bn() {
564
- return J.value;
576
+ W.value.showTable = !W.value.showTable;
565
577
  }
566
- let Z = S(null);
567
578
  function Vn() {
579
+ return J.value;
580
+ }
581
+ let Z = C(null);
582
+ function Hn() {
568
583
  let e = B.value.initialRotation;
569
584
  Z.value !== null && cancelAnimationFrame(Z.value);
570
585
  let t = () => {
@@ -575,32 +590,32 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
575
590
  Me(() => {
576
591
  Z.value !== null && cancelAnimationFrame(Z.value);
577
592
  });
578
- function Hn(e) {
579
- e === N.value ? (N.value = null, Ot("selectLegend", null)) : (N.value = e, Ot("selectLegend", J.value.groups.find((t) => t.id === e)));
593
+ function Un(e) {
594
+ e === P.value ? (P.value = null, Ot("selectLegend", null)) : (P.value = e, Ot("selectLegend", J.value.groups.find((t) => t.id === e)));
580
595
  }
581
- let Un = d(() => J.value.groups.map((e, t) => ({
596
+ let Wn = f(() => J.value.groups.map((e, t) => ({
582
597
  name: e.name,
583
598
  color: e.color,
584
599
  shape: "circle",
585
600
  patternIndex: t,
586
- pattern: `pattern_${A.value}_${t}`,
601
+ pattern: `pattern_${j.value}_${t}`,
587
602
  id: e.id,
588
- select: () => Hn(e.id),
589
- opacity: N.value ? N.value === e.id ? 1 : .3 : 1
590
- }))), Wn = d(() => ({
603
+ select: () => Un(e.id),
604
+ opacity: P.value ? P.value === e.id ? 1 : .3 : 1
605
+ }))), Gn = f(() => ({
591
606
  cy: "chord-div-legend",
592
607
  backgroundColor: B.value.style.chart.legend.backgroundColor,
593
608
  color: B.value.style.chart.legend.color,
594
609
  fontSize: B.value.style.chart.legend.fontSize,
595
610
  paddingBottom: 12,
596
611
  fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
597
- })), Q = d(() => ({
612
+ })), Q = f(() => ({
598
613
  head: J.value.groups.map((e, t) => ({
599
614
  name: e.name || t,
600
615
  color: e.color
601
616
  })),
602
617
  body: q.value.matrix
603
- })), Gn = d(() => {
618
+ })), Kn = f(() => {
604
619
  let e = [{
605
620
  name: "",
606
621
  color: null
@@ -624,23 +639,23 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
624
639
  }
625
640
  };
626
641
  });
627
- function Kn(e = null) {
642
+ function qn(e = null) {
628
643
  je(() => {
629
- let t = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), n = r([
644
+ let r = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), i = n([
630
645
  [B.value.style.chart.title.text],
631
646
  [B.value.style.chart.title.subtitle.text],
632
647
  [[""], ...q.value.labels.map((e, t) => [e || t])]
633
- ].concat(t));
634
- e ? e(n) : c({
635
- csvContent: n,
648
+ ].concat(r));
649
+ e ? e(i) : t({
650
+ csvContent: i,
636
651
  title: B.value.style.chart.title.text || "vue-ui-chord"
637
652
  });
638
653
  });
639
654
  }
640
- async function qn({ scale: e = 2 } = {}) {
641
- if (!P.value) return;
642
- let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
643
- domElement: P.value,
655
+ async function Jn({ scale: e = 2 } = {}) {
656
+ if (!F.value) return;
657
+ let { width: t, height: n } = F.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
658
+ domElement: F.value,
644
659
  base64: !0,
645
660
  img: !0,
646
661
  scale: e
@@ -654,15 +669,15 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
654
669
  aspectRatio: r
655
670
  };
656
671
  }
657
- function Jn(e, t) {
658
- return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? l({
672
+ function Yn(e, t) {
673
+ return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? c({
659
674
  p: " (",
660
675
  v: isNaN(e.proportion) ? 0 : e.proportion * 100,
661
676
  s: "%)",
662
677
  r: B.value.style.chart.arcs.labels.roundingPercentage
663
678
  }) : ""}`;
664
679
  }
665
- let Yn = d(() => {
680
+ let Xn = f(() => {
666
681
  let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
667
682
  return {
668
683
  component: e ? wt : vt,
@@ -672,8 +687,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
672
687
  color: B.value.table.th.color,
673
688
  headerColor: B.value.table.th.color,
674
689
  headerBg: B.value.table.th.backgroundColor,
675
- isFullscreen: On.value,
676
- fullscreenParent: P.value,
690
+ isFullscreen: kn.value,
691
+ fullscreenParent: F.value,
677
692
  forcedWidth: Math.min(800, window.innerWidth * .8),
678
693
  isCursorPointer: V.value
679
694
  } : {
@@ -694,46 +709,46 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
694
709
  };
695
710
  });
696
711
  Re(() => W.value.showTable, (e) => {
697
- B.value.table.show || (e && B.value.table.useDialog && Rt.value ? Rt.value.open() : "close" in Rt.value && Rt.value.close());
712
+ B.value.table.show || (e && B.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
698
713
  });
699
- function Xn() {
700
- W.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
714
+ function Zn() {
715
+ W.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
701
716
  }
702
- let Zn = d(() => B.value.style.chart.backgroundColor), Qn = d(() => B.value.style.chart.legend), { exportSvg: $n, getSvg: er } = fe({
717
+ let Qn = f(() => B.value.style.chart.backgroundColor), $n = f(() => B.value.style.chart.legend), { exportSvg: er, getSvg: tr } = fe({
703
718
  svg: U,
704
- title: d(() => B.value.style.chart.title),
705
- legend: Qn,
706
- legendItems: Un,
707
- backgroundColor: Zn
719
+ title: f(() => B.value.style.chart.title),
720
+ legend: $n,
721
+ legendItems: Wn,
722
+ backgroundColor: Qn
708
723
  });
709
- async function tr({ isCb: e }) {
710
- Vt.value = !0, await je();
724
+ async function nr({ isCb: e }) {
725
+ Ht.value = !0, await je();
711
726
  try {
712
727
  if (e) {
713
- let { blob: e, url: t, text: n, dataUrl: r } = await er();
728
+ let { blob: e, url: t, text: n, dataUrl: r } = await tr();
714
729
  await Promise.resolve(B.value.userOptions.callbacks.svg({
715
730
  blob: e,
716
731
  url: t,
717
732
  text: n,
718
733
  dataUrl: r
719
734
  }));
720
- } else await Promise.resolve($n());
735
+ } else await Promise.resolve(er());
721
736
  } finally {
722
- Vt.value = !1;
737
+ Ht.value = !1;
723
738
  }
724
739
  }
725
- function nr(e) {
740
+ function rr(e) {
726
741
  if (e?.stage === "start") {
727
- Bt.value = !0;
742
+ Vt.value = !0;
728
743
  return;
729
744
  }
730
745
  if (e?.stage === "end") {
731
- Bt.value = !1;
746
+ Vt.value = !1;
732
747
  return;
733
748
  }
734
- Qt();
749
+ $t();
735
750
  }
736
- async function rr() {
751
+ async function ir() {
737
752
  if (Ot("copyAlt", {
738
753
  config: B.value,
739
754
  dataset: q.value
@@ -746,108 +761,108 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
746
761
  dataset: q.value
747
762
  }));
748
763
  }
749
- 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(() => ({
764
+ let ar = f(() => (M.value ? J.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? J.value.chords.filter((e) => e.source.groupId === P.value) : J.value.chords).filter((e) => e.source.value)), $ = f(() => ({
750
765
  groups: J.value.groups.map((e, t) => ({
751
766
  type: "group",
752
767
  index: t,
753
768
  item: e
754
769
  })),
755
- ribbons: ir.value.map((e, t) => ({
770
+ ribbons: ar.value.map((e, t) => ({
756
771
  type: "ribbon",
757
772
  index: t,
758
773
  item: {
759
774
  ...e,
760
- path: pn(e.source, e.target),
775
+ path: mn(e.source, e.target),
761
776
  color: q.value.colors[e.source.index]
762
777
  }
763
778
  }))
764
- })), ar = d(() => ({
779
+ })), or = f(() => ({
765
780
  headers: ["", ...Q.value.head.map((e) => e.name)],
766
- rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => Dn(e))])
781
+ rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => On(e))])
767
782
  }));
768
- function or(e) {
783
+ function sr(e) {
769
784
  let t = $.value.groups[e];
770
- t && (R.value = "group", z.value = e, M.value = null, j.value = t.item);
785
+ t && (R.value = "group", z.value = e, N.value = null, M.value = t.item);
771
786
  }
772
- function sr(e) {
787
+ function cr(e) {
773
788
  let t = $.value.ribbons[e];
774
- t && (R.value = "ribbon", z.value = e, j.value = null, M.value = t.item);
775
- }
776
- function cr() {
777
- z.value = null, R.value = "group", j.value = null, M.value = null;
789
+ t && (R.value = "ribbon", z.value = e, M.value = null, N.value = t.item);
778
790
  }
779
791
  function lr() {
780
- Ht.value = !0, R.value = "group", z.value = null;
792
+ z.value = null, R.value = "group", M.value = null, N.value = null;
781
793
  }
782
794
  function ur() {
783
- Ht.value = !1, cr();
795
+ Ut.value = !0, R.value = "group", z.value = null;
796
+ }
797
+ function dr() {
798
+ Ut.value = !1, lr();
784
799
  }
785
- function dr(e) {
800
+ function fr(e) {
786
801
  if (!U.value || X.value || document.activeElement !== U.value) return;
787
802
  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";
788
803
  if (!t && !n && !r && !i && !a && !o) return;
789
804
  if (e.preventDefault(), e.stopPropagation(), o) {
790
- cr();
805
+ lr();
791
806
  return;
792
807
  }
793
808
  if (r) {
794
- R.value = "group", $.value.groups.length && or(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
809
+ R.value = "group", $.value.groups.length && sr(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
795
810
  return;
796
811
  }
797
812
  if (i) {
798
813
  if (!$.value.ribbons.length) return;
799
- R.value = "ribbon", sr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
814
+ R.value = "ribbon", cr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
800
815
  return;
801
816
  }
802
817
  if (a) {
803
818
  if (R.value === "group") {
804
819
  let e = $.value.groups[z.value];
805
- e && Mn(e.item, e.index);
820
+ e && Nn(e.item, e.index);
806
821
  } else {
807
822
  let e = $.value.ribbons[z.value];
808
- e && Fn(e.item, e.index);
823
+ e && In(e.item, e.index);
809
824
  }
810
825
  return;
811
826
  }
812
827
  let s = R.value === "group" ? $.value.groups : $.value.ribbons;
813
828
  if (!s.length) return;
814
829
  let c = z.value;
815
- 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);
830
+ 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" ? sr(c) : cr(c);
816
831
  }
817
832
  return ve({
818
- getData: Bn,
819
- getImage: qn,
820
- generateCsv: Kn,
821
- generateImage: Qt,
822
- generateSvg: tr,
823
- generatePdf: Zt,
824
- toggleAnnotator: Rn,
825
- toggleTable: zn,
826
- toggleFullscreen: kn,
827
- copyAlt: rr
828
- }), (e, t) => (x(), m("div", {
833
+ getData: Vn,
834
+ getImage: Jn,
835
+ generateCsv: qn,
836
+ generateImage: $t,
837
+ generateSvg: nr,
838
+ generatePdf: Qt,
839
+ toggleAnnotator: zn,
840
+ toggleTable: Bn,
841
+ toggleFullscreen: An,
842
+ copyAlt: ir
843
+ }), (e, t) => (S(), h("div", {
829
844
  ref_key: "chordChart",
830
- ref: P,
831
- class: v({
845
+ ref: F,
846
+ class: y({
832
847
  "vue-data-ui-component": !0,
833
848
  "vue-ui-chord": !0,
834
- "vue-data-ui-wrapper-fullscreen": On.value,
849
+ "vue-data-ui-wrapper-fullscreen": kn.value,
835
850
  "vue-data-ui-responsive": B.value.responsive
836
851
  }),
837
- style: b(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
838
- id: `chord_${A.value}`,
839
- onMouseenter: t[2] ||= () => E(qt)(!0),
840
- onMouseleave: t[3] ||= () => E(qt)(!1)
852
+ style: x(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
853
+ id: `chord_${j.value}`,
854
+ onMouseenter: t[2] ||= () => D(Jt)(!0),
855
+ onMouseleave: t[3] ||= () => D(Jt)(!1)
841
856
  }, [
842
- h("div", {
843
- id: `chart-instructions-${A.value}`,
857
+ g("div", {
858
+ id: `chart-instructions-${j.value}`,
844
859
  class: "sr-only"
845
- }, [h("p", null, T(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
846
- ar.value?.rows?.length ? (x(), f(xe, {
860
+ }, [g("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
861
+ or.value?.rows?.length ? (S(), p(xe, {
847
862
  key: 0,
848
- uid: A.value,
849
- head: ar.value.headers,
850
- body: ar.value.rows,
863
+ uid: j.value,
864
+ head: or.value.headers,
865
+ body: or.value.rows,
851
866
  notice: B.value.a11y.translations.tableAvailable,
852
867
  caption: B.value.a11y.translations.tableCaption
853
868
  }, null, 8, [
@@ -856,22 +871,22 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
856
871
  "body",
857
872
  "notice",
858
873
  "caption"
859
- ])) : p("", !0),
860
- B.value.userOptions.buttons.annotator && E(U) ? (x(), f(E(St), {
874
+ ])) : m("", !0),
875
+ B.value.userOptions.buttons.annotator && D(U) ? (S(), p(D(St), {
861
876
  key: 1,
862
877
  color: B.value.style.chart.color,
863
878
  backgroundColor: B.value.style.chart.backgroundColor,
864
879
  active: X.value,
865
- svgRef: E(U),
880
+ svgRef: D(U),
866
881
  isCursorPointer: V.value,
867
- onClose: Rn
882
+ onClose: zn
868
883
  }, {
869
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
870
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
871
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
872
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
873
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
874
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
884
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
885
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
886
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
887
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
888
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
889
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
875
890
  _: 3
876
891
  }, 8, [
877
892
  "color",
@@ -879,21 +894,21 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
879
894
  "active",
880
895
  "svgRef",
881
896
  "isCursorPointer"
882
- ])) : p("", !0),
883
- w(e.$slots, "userConfig", {}, void 0, !0),
884
- on.value ? (x(), m("div", {
897
+ ])) : m("", !0),
898
+ T(e.$slots, "userConfig", {}, void 0, !0),
899
+ sn.value ? (S(), h("div", {
885
900
  key: 2,
886
901
  ref_key: "noTitle",
887
902
  ref: Nt,
888
903
  class: "vue-data-ui-no-title-space",
889
904
  style: "height:36px; width: 100%;background:transparent"
890
- }, null, 512)) : p("", !0),
891
- B.value.style.chart.title.text ? (x(), m("div", {
905
+ }, null, 512)) : m("", !0),
906
+ B.value.style.chart.title.text ? (S(), h("div", {
892
907
  key: 3,
893
908
  ref_key: "chartTitle",
894
909
  ref: At,
895
910
  style: "width:100%;background:transparent;padding-bottom:24px"
896
- }, [(x(), f(ge, {
911
+ }, [(S(), p(ge, {
897
912
  key: `title_${Pt.value}`,
898
913
  config: {
899
914
  title: {
@@ -905,17 +920,17 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
905
920
  ...B.value.style.chart.title.subtitle
906
921
  }
907
922
  }
908
- }, null, 8, ["config"]))], 512)) : p("", !0),
909
- h("div", { id: `legend-top-${A.value}` }, null, 8, Ue),
910
- B.value.userOptions.show && k.value && (E(Jt) || E(Kt)) ? (x(), f(E(Ct), {
923
+ }, null, 8, ["config"]))], 512)) : m("", !0),
924
+ g("div", { id: `legend-top-${j.value}` }, null, 8, Ue),
925
+ B.value.userOptions.show && A.value && (D(Yt) || D(qt)) ? (S(), p(D(Ct), {
911
926
  ref_key: "userOptionsRef",
912
- ref: zt,
927
+ ref: Bt,
913
928
  key: `user_option_${kt.value}`,
914
929
  backgroundColor: B.value.style.chart.backgroundColor,
915
930
  color: B.value.style.chart.color,
916
- isPrinting: E(Yt),
917
- isImaging: E(Xt),
918
- uid: A.value,
931
+ isPrinting: D(Xt),
932
+ isImaging: D(Zt),
933
+ uid: j.value,
919
934
  hasTooltip: !1,
920
935
  hasPdf: B.value.userOptions.buttons.pdf,
921
936
  hasImg: B.value.userOptions.buttons.img,
@@ -925,8 +940,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
925
940
  hasLabel: !1,
926
941
  hasFullscreen: B.value.userOptions.buttons.fullscreen,
927
942
  hasAltCopy: B.value.userOptions.buttons.altCopy,
928
- isFullscreen: On.value,
929
- chartElement: P.value,
943
+ isFullscreen: kn.value,
944
+ chartElement: F.value,
930
945
  position: B.value.userOptions.position,
931
946
  titles: { ...B.value.userOptions.buttonTitles },
932
947
  hasAnnotator: B.value.userOptions.buttons.annotator,
@@ -935,19 +950,19 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
935
950
  printScale: B.value.userOptions.print.scale,
936
951
  tableDialog: B.value.table.useDialog,
937
952
  isCursorPointer: V.value,
938
- onToggleFullscreen: kn,
939
- onGeneratePdf: E(Zt),
940
- onGenerateCsv: Kn,
941
- onGenerateImage: nr,
942
- onGenerateSvg: tr,
943
- onToggleTable: zn,
944
- onToggleAnnotator: Rn,
945
- onCopyAlt: rr,
946
- style: b({ visibility: E(Jt) ? E(Kt) ? "visible" : "hidden" : "visible" })
953
+ onToggleFullscreen: An,
954
+ onGeneratePdf: D(Qt),
955
+ onGenerateCsv: qn,
956
+ onGenerateImage: rr,
957
+ onGenerateSvg: nr,
958
+ onToggleTable: Bn,
959
+ onToggleAnnotator: zn,
960
+ onCopyAlt: ir,
961
+ style: x({ visibility: D(Yt) ? D(qt) ? "visible" : "hidden" : "visible" })
947
962
  }, De({ _: 2 }, [
948
963
  e.$slots.menuIcon ? {
949
964
  name: "menuIcon",
950
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
965
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
951
966
  isOpen: t,
952
967
  color: n
953
968
  })), void 0, !0)]),
@@ -955,32 +970,32 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
955
970
  } : void 0,
956
971
  e.$slots.optionPdf ? {
957
972
  name: "optionPdf",
958
- fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
973
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
959
974
  key: "1"
960
975
  } : void 0,
961
976
  e.$slots.optionCsv ? {
962
977
  name: "optionCsv",
963
- fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
978
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
964
979
  key: "2"
965
980
  } : void 0,
966
981
  e.$slots.optionImg ? {
967
982
  name: "optionImg",
968
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
983
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
969
984
  key: "3"
970
985
  } : void 0,
971
986
  e.$slots.optionSvg ? {
972
987
  name: "optionSvg",
973
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
988
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
974
989
  key: "4"
975
990
  } : void 0,
976
991
  e.$slots.optionTable ? {
977
992
  name: "optionTable",
978
- fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
993
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
979
994
  key: "5"
980
995
  } : void 0,
981
996
  e.$slots.optionFullscreen ? {
982
997
  name: "optionFullscreen",
983
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
998
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
984
999
  toggleFullscreen: t,
985
1000
  isFullscreen: n
986
1001
  })), void 0, !0)]),
@@ -988,7 +1003,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
988
1003
  } : void 0,
989
1004
  e.$slots.optionAnnotator ? {
990
1005
  name: "optionAnnotator",
991
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1006
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
992
1007
  toggleAnnotator: t,
993
1008
  isAnnotator: n
994
1009
  })), void 0, !0)]),
@@ -996,17 +1011,17 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
996
1011
  } : void 0,
997
1012
  e.$slots.optionAltCopy ? {
998
1013
  name: "optionAltCopy",
999
- fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1014
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1000
1015
  key: "8"
1001
1016
  } : void 0,
1002
1017
  e.$slots["custom-menu-before"] ? {
1003
1018
  name: "custom-menu-before",
1004
- fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1019
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1005
1020
  key: "9"
1006
1021
  } : void 0,
1007
1022
  e.$slots["custom-menu-after"] ? {
1008
1023
  name: "custom-menu-after",
1009
- fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1024
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1010
1025
  key: "10"
1011
1026
  } : void 0
1012
1027
  ]), 1032, [
@@ -1034,161 +1049,152 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1034
1049
  "isCursorPointer",
1035
1050
  "onGeneratePdf",
1036
1051
  "style"
1037
- ])) : p("", !0),
1038
- (x(), m("svg", {
1039
- xmlns: E(oe),
1052
+ ])) : m("", !0),
1053
+ (S(), h("svg", {
1054
+ xmlns: D(ie),
1040
1055
  ref_key: "svgRef",
1041
1056
  ref: U,
1042
1057
  viewBox: `0 0 ${G.value.width} ${G.value.height}`,
1043
- "aria-describedby": `chart-instructions-${A.value}`,
1058
+ "aria-describedby": `chart-instructions-${j.value}`,
1044
1059
  tabindex: "0",
1045
1060
  preserveAspectRatio: "xMidYMid meet",
1046
1061
  style: { overflow: "visible" },
1047
- class: v({
1048
- "vue-ui-chord-rotating": bn.value,
1049
- "vue-ui-chord-idle": !bn.value
1062
+ class: y({
1063
+ "vue-ui-chord-rotating": xn.value,
1064
+ "vue-ui-chord-idle": !xn.value
1050
1065
  }),
1051
- onMousedown: ze(wn, ["prevent"]),
1052
- onTouchstart: ze(wn, ["prevent"]),
1053
- onFocus: lr,
1054
- onBlur: ur,
1055
- onKeydown: dr
1066
+ onMousedown: ze(Tn, ["prevent"]),
1067
+ onTouchstart: ze(Tn, ["prevent"]),
1068
+ onFocus: ur,
1069
+ onBlur: dr,
1070
+ onKeydown: fr
1056
1071
  }, [
1057
- ke(E(xt)),
1058
- e.$slots["chart-background"] ? (x(), m("foreignObject", {
1072
+ ke(D(xt)),
1073
+ e.$slots["chart-background"] ? (S(), h("foreignObject", {
1059
1074
  key: 0,
1060
1075
  x: 0,
1061
1076
  y: 0,
1062
1077
  width: G.value.width <= 0 ? 10 : G.value.width,
1063
1078
  height: G.value.height <= 0 ? 10 : G.value.height,
1064
1079
  style: { pointerEvents: "none" }
1065
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
1066
- 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", {
1080
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
1081
+ B.value.style.chart.arcs.labels.curved ? (S(), h("defs", Ke, [(S(!0), h(d, null, w(J.value.groups, (e, t) => (S(), h("path", {
1067
1082
  key: `labelPath-${t}`,
1068
- id: `labelPath-${t}_${A.value}`,
1069
- d: yn(e.startAngle, e.endAngle, (K.value.inner + K.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
1083
+ id: `labelPath-${t}_${j.value}`,
1084
+ d: bn(e.startAngle, e.endAngle, (K.value.inner + K.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
1070
1085
  fill: "none"
1071
- }, null, 8, qe))), 128))])) : p("", !0),
1072
- 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 }, {
1086
+ }, null, 8, qe))), 128))])) : m("", !0),
1087
+ e.$slots.pattern ? (S(), h("g", Je, [(S(!0), h(d, null, w(J.value.groups, (t, n) => (S(), h("defs", null, [T(e.$slots, "pattern", Ae({ ref_for: !0 }, {
1073
1088
  seriesIndex: t.index,
1074
- patternId: `pattern_${A.value}_${n}`
1075
- }), void 0, !0)]))), 256))])) : p("", !0),
1076
- h("g", { transform: `translate(${G.value.width / 2}, ${G.value.height / 2}) rotate(${Y.value})` }, [
1077
- (x(!0), m(u, null, C(J.value.groups, (t, n) => (x(), m("g", null, [(x(), m("path", {
1078
- class: v({
1089
+ patternId: `pattern_${j.value}_${n}`
1090
+ }), void 0, !0)]))), 256))])) : m("", !0),
1091
+ g("g", { transform: `translate(${G.value.width / 2}, ${G.value.height / 2}) rotate(${Y.value})` }, [
1092
+ (S(!0), h(d, null, w(J.value.groups, (t, n) => (S(), h("g", null, [(S(), h("path", {
1093
+ class: y({
1079
1094
  "vue-ui-chord-arc": !0,
1080
- "vue-ui-chord-arc-animated": B.value.useCssAnimation && !F.value
1095
+ "vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
1081
1096
  }),
1082
1097
  key: `arc-${n}`,
1083
- d: fn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1098
+ d: pn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1084
1099
  fill: q.value.colors[n],
1085
1100
  stroke: B.value.style.chart.arcs.stroke,
1086
1101
  "stroke-width": B.value.style.chart.arcs.strokeWidth,
1087
1102
  "stroke-linecap": "round",
1088
1103
  "stroke-linejoin": "round",
1089
- style: b({ opacity: Ln(t) }),
1090
- onMouseenter: (e) => An(t, n),
1091
- onMouseleave: (e) => jn(t, n),
1092
- onClick: (e) => Mn(t, n)
1093
- }, null, 46, Xe)), e.$slots.pattern ? (x(), m("path", {
1094
- class: v({
1104
+ style: x({ opacity: Rn(t) }),
1105
+ onMouseenter: (e) => jn(t, n),
1106
+ onMouseleave: (e) => Mn(t, n),
1107
+ onClick: (e) => Nn(t, n)
1108
+ }, null, 46, Xe)), e.$slots.pattern ? (S(), h("path", {
1109
+ class: y({
1095
1110
  "vue-ui-chord-arc": !0,
1096
- "vue-ui-chord-arc-animated": B.value.useCssAnimation && !F.value
1111
+ "vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
1097
1112
  }),
1098
1113
  key: `arc-${n}`,
1099
- d: fn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1114
+ d: pn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1100
1115
  fill: `url(#${t.pattern})`,
1101
1116
  stroke: B.value.style.chart.arcs.stroke,
1102
1117
  "stroke-width": B.value.style.chart.arcs.strokeWidth,
1103
1118
  "stroke-linecap": "round",
1104
1119
  "stroke-linejoin": "round",
1105
- style: b({
1106
- opacity: Ln(t),
1120
+ style: x({
1121
+ opacity: Rn(t),
1107
1122
  pointerEvents: "none"
1108
1123
  })
1109
- }, null, 14, Ze)) : p("", !0)]))), 256)),
1110
- h("g", null, [
1111
- (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}` }, [
1112
- t.source.value ? (x(), m("path", {
1124
+ }, null, 14, Ze)) : m("", !0)]))), 256)),
1125
+ g("g", null, [
1126
+ (S(!0), h(d, null, w(M.value ? J.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? J.value.chords.filter((e) => e.source.groupId === P.value) : J.value.chords, (t, n) => (S(), h(d, { key: `ribbon-${t.id}` }, [
1127
+ t.source.value ? (S(), h("path", {
1113
1128
  key: 0,
1114
- class: v({
1115
- "vue-ui-chord-ribbon": !0,
1116
- "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1117
- }),
1118
- d: pn(t.source, t.target),
1129
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1130
+ d: mn(t.source, t.target),
1119
1131
  fill: B.value.style.chart.backgroundColor,
1120
- style: b({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
1121
- }, null, 14, Qe)) : p("", !0),
1122
- t.source.value ? (x(), m("path", {
1132
+ style: x({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
1133
+ }, null, 12, Qe)) : m("", !0),
1134
+ t.source.value ? (S(), h("path", {
1123
1135
  key: 1,
1124
- class: v({
1125
- "vue-ui-chord-ribbon": !0,
1126
- "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1127
- }),
1128
- d: pn(t.source, t.target),
1136
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1137
+ d: mn(t.source, t.target),
1129
1138
  fill: q.value.colors[t.source.index],
1130
1139
  stroke: B.value.style.chart.ribbons.stroke,
1131
1140
  "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1132
1141
  "stroke-linecap": "round",
1133
1142
  "stroke-linejoin": "round",
1134
- style: b({ opacity: In(t) }),
1135
- onMouseenter: (e) => Nn({
1143
+ style: x({ opacity: Ln(t) }),
1144
+ onMouseenter: (e) => Pn({
1136
1145
  ...t,
1137
- path: pn(t.source, t.target),
1146
+ path: mn(t.source, t.target),
1138
1147
  color: q.value.colors[t.source.index]
1139
1148
  }, n),
1140
- onClick: (e) => Fn({
1149
+ onClick: (e) => In({
1141
1150
  ...t,
1142
1151
  color: q.value.colors[t.source.index]
1143
1152
  }, n),
1144
- onMouseleave: (e) => Pn({
1153
+ onMouseleave: (e) => Fn({
1145
1154
  ...t,
1146
1155
  color: q.value.colors[t.source.index]
1147
1156
  }, n)
1148
- }, null, 46, $e)) : p("", !0),
1149
- t.source.value && e.$slots.pattern ? (x(), m("path", {
1157
+ }, null, 44, $e)) : m("", !0),
1158
+ t.source.value && e.$slots.pattern ? (S(), h("path", {
1150
1159
  key: 2,
1151
- class: v({
1152
- "vue-ui-chord-ribbon": !0,
1153
- "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1154
- }),
1155
- d: pn(t.source, t.target),
1156
- fill: `url(#pattern_${A.value}_${t.source.index})`,
1160
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1161
+ d: mn(t.source, t.target),
1162
+ fill: `url(#pattern_${j.value}_${t.source.index})`,
1157
1163
  stroke: B.value.style.chart.ribbons.stroke,
1158
1164
  "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1159
1165
  "stroke-linecap": "round",
1160
1166
  "stroke-linejoin": "round",
1161
- style: b({
1162
- opacity: In(t),
1167
+ style: x({
1168
+ opacity: Ln(t),
1163
1169
  pointerEvents: "none"
1164
1170
  })
1165
- }, null, 14, et)) : p("", !0)
1171
+ }, null, 12, et)) : m("", !0)
1166
1172
  ], 64))), 128)),
1167
- M.value ? (x(), m("path", {
1173
+ N.value ? (S(), h("path", {
1168
1174
  key: 0,
1169
- d: M.value.path,
1170
- fill: M.value.color,
1175
+ d: N.value.path,
1176
+ fill: N.value.color,
1171
1177
  stroke: B.value.style.chart.ribbons.stroke,
1172
1178
  "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1173
1179
  "stroke-linecap": "round",
1174
1180
  "stroke-linejoin": "round",
1175
- class: v({ "vue-ui-chord-ribbon": !0 }),
1181
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1176
1182
  style: { pointerEvents: "none" }
1177
- }, null, 8, tt)) : p("", !0),
1178
- M.value && e.$slots.pattern ? (x(), m("path", {
1183
+ }, null, 8, tt)) : m("", !0),
1184
+ N.value && e.$slots.pattern ? (S(), h("path", {
1179
1185
  key: 1,
1180
- d: M.value.path,
1181
- fill: `url(#${M.value.source.pattern})`,
1186
+ d: N.value.path,
1187
+ fill: `url(#${N.value.source.pattern})`,
1182
1188
  stroke: B.value.style.chart.ribbons.stroke,
1183
1189
  "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1184
1190
  "stroke-linecap": "round",
1185
1191
  "stroke-linejoin": "round",
1186
- class: v({ "vue-ui-chord-ribbon": !0 }),
1192
+ class: y({ "vue-ui-chord-ribbon": !0 }),
1187
1193
  style: { pointerEvents: "none" }
1188
- }, null, 8, nt)) : p("", !0)
1194
+ }, null, 8, nt)) : m("", !0)
1189
1195
  ]),
1190
- (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 }, [
1191
- h("line", {
1196
+ (M.value || N.value || P.value) && B.value.style.chart.ribbons.labels.show ? (S(), h("g", rt, [(S(!0), h(d, null, w(fn.value, (e) => (S(), h(d, { key: e.id }, [
1197
+ g("line", {
1192
1198
  x1: e.midBaseX,
1193
1199
  y1: e.midBaseY,
1194
1200
  x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
@@ -1197,7 +1203,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1197
1203
  "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
1198
1204
  "pointer-events": "none"
1199
1205
  }, null, 8, it),
1200
- h("line", {
1206
+ g("line", {
1201
1207
  x1: e.midBaseX,
1202
1208
  y1: e.midBaseY,
1203
1209
  x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
@@ -1206,7 +1212,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1206
1212
  "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth,
1207
1213
  "pointer-events": "none"
1208
1214
  }, null, 8, at),
1209
- B.value.style.chart.ribbons.labels.marker.show ? (x(), m("circle", {
1215
+ B.value.style.chart.ribbons.labels.marker.show ? (S(), h("circle", {
1210
1216
  key: 0,
1211
1217
  cx: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1212
1218
  cy: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
@@ -1215,8 +1221,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1215
1221
  "stroke-width": B.value.style.chart.ribbons.labels.marker.strokeWidth,
1216
1222
  fill: e.groupColor,
1217
1223
  "pointer-events": "none"
1218
- }, null, 8, ot)) : p("", !0),
1219
- h("text", {
1224
+ }, null, 8, ot)) : m("", !0),
1225
+ g("text", {
1220
1226
  transform: `
1221
1227
  translate(
1222
1228
  ${Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 24)},
@@ -1224,83 +1230,83 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1224
1230
  ) rotate(${-Y.value})
1225
1231
  `,
1226
1232
  fill: B.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : B.value.style.chart.ribbons.labels.color,
1227
- "text-anchor": _n(e.theta),
1233
+ "text-anchor": vn(e.theta),
1228
1234
  "font-size": B.value.style.chart.ribbons.labels.fontSize,
1229
1235
  "font-weight": B.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
1230
1236
  dy: ".35em",
1231
1237
  "pointer-events": "none"
1232
- }, T(Dn(e.value)), 9, st)
1233
- ], 64))), 128))])) : p("", !0),
1234
- 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", {
1238
+ }, E(On(e.value)), 9, st)
1239
+ ], 64))), 128))])) : m("", !0),
1240
+ 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(J.value.groups, (e, t) => (S(), h("text", {
1235
1241
  class: "vue-ui-chord-label-curved",
1236
1242
  key: `curved-label-${t}`,
1237
1243
  "font-size": B.value.style.chart.arcs.labels.fontSize,
1238
1244
  "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1239
- fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? E(ae)(q.value.colors[t]) : B.value.style.chart.arcs.labels.color
1240
- }, [h("textPath", {
1241
- href: `#labelPath-${t}_${A.value}`,
1245
+ fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? D(re)(q.value.colors[t]) : B.value.style.chart.arcs.labels.color
1246
+ }, [g("textPath", {
1247
+ href: `#labelPath-${t}_${j.value}`,
1242
1248
  startOffset: "50%",
1243
1249
  "text-anchor": "middle"
1244
- }, T(q.value.labels[t]) + T(B.value.style.chart.arcs.labels.showPercentage ? E(l)({
1250
+ }, E(q.value.labels[t]) + E(B.value.style.chart.arcs.labels.showPercentage ? D(c)({
1245
1251
  p: " (",
1246
1252
  v: isNaN(e.proportion) ? 0 : e.proportion * 100,
1247
1253
  s: "%)",
1248
1254
  r: B.value.style.chart.arcs.labels.roundingPercentage
1249
- }) : ""), 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", {
1255
+ }) : ""), 9, ut)], 8, lt))), 128)) : !M.value && !N.value && !P.value ? (S(!0), h(d, { key: 1 }, w(J.value.groups, (e, t) => (S(), h("text", {
1250
1256
  class: "vue-ui-chord-label-straight",
1251
1257
  key: `label-${t}`,
1252
1258
  transform: `
1253
- ${vn((e.startAngle + e.endAngle) / 2)}
1259
+ ${yn((e.startAngle + e.endAngle) / 2)}
1254
1260
  rotate(${-Y.value})
1255
1261
  `,
1256
1262
  dy: ".35em",
1257
- "text-anchor": gn(e) > Math.PI ? "end" : "start",
1263
+ "text-anchor": _n(e) > Math.PI ? "end" : "start",
1258
1264
  "font-size": B.value.style.chart.arcs.labels.fontSize,
1259
1265
  "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1260
1266
  fill: B.value.style.chart.arcs.labels.color,
1261
- innerHTML: E(i)({
1262
- content: E(ee)(Jn(e, t)),
1267
+ innerHTML: D(i)({
1268
+ content: D(l)(Yn(e, t)),
1263
1269
  fontSize: B.value.style.chart.arcs.labels.fontSize,
1264
1270
  fill: B.value.style.chart.arcs.labels.color,
1265
1271
  x: 0,
1266
1272
  y: 0
1267
1273
  })
1268
- }, null, 8, dt))), 128)) : p("", !0)])) : p("", !0)
1274
+ }, null, 8, dt))), 128)) : m("", !0)])) : m("", !0)
1269
1275
  ], 8, Ye),
1270
- w(e.$slots, "svg", { svg: {
1276
+ T(e.$slots, "svg", { svg: {
1271
1277
  height: 600,
1272
1278
  width: 600,
1273
- isPrintingImg: E(Yt) || E(Xt) || Bt.value,
1274
- isPrintingSvg: Vt.value
1279
+ isPrintingImg: D(Xt) || D(Zt) || Vt.value,
1280
+ isPrintingSvg: Ht.value
1275
1281
  } }, void 0, !0)
1276
1282
  ], 42, We)),
1277
- e.$slots.hint ? (x(), m("div", ft, [w(e.$slots, "hint", y(_({
1283
+ e.$slots.hint ? (S(), h("div", ft, [T(e.$slots, "hint", b(v({
1278
1284
  hint: B.value.a11y.translations.keyboardNavigation,
1279
- isVisible: Ht.value
1280
- })), void 0, !0)])) : p("", !0),
1281
- 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),
1282
- h("div", { id: `legend-bottom-${A.value}` }, null, 8, mt),
1283
- Lt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ee, {
1285
+ isVisible: Ut.value
1286
+ })), void 0, !0)])) : m("", !0),
1287
+ e.$slots.watermark ? (S(), h("div", pt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Xt) || D(Zt) || Vt.value || Ht.value })), void 0, !0)])) : m("", !0),
1288
+ g("div", { id: `legend-bottom-${j.value}` }, null, 8, mt),
1289
+ Rt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Ee, {
1284
1290
  key: 7,
1285
- to: B.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1286
- }, [h("div", {
1291
+ to: B.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1292
+ }, [g("div", {
1287
1293
  ref_key: "chartLegend",
1288
1294
  ref: jt
1289
- }, [w(e.$slots, "legend", { legend: Un.value }, () => [B.value.style.chart.legend.show ? (x(), f(we, {
1295
+ }, [T(e.$slots, "legend", { legend: Wn.value }, () => [B.value.style.chart.legend.show ? (S(), p(we, {
1290
1296
  key: `legend_${It.value}`,
1291
- legendSet: Un.value,
1292
- config: Wn.value,
1297
+ legendSet: Wn.value,
1298
+ config: Gn.value,
1293
1299
  isCursorPointer: V.value,
1294
- onClickMarker: t[0] ||= ({ legend: e }) => Hn(e.id)
1300
+ onClickMarker: t[0] ||= ({ legend: e }) => Un(e.id)
1295
1301
  }, De({
1296
- item: D(({ legend: e }) => [h("div", {
1297
- style: b({ opacity: N.value ? N.value === e.id ? 1 : .3 : 1 }),
1302
+ item: O(({ legend: e }) => [g("div", {
1303
+ style: x({ opacity: P.value ? P.value === e.id ? 1 : .3 : 1 }),
1298
1304
  onClick: (t) => e.select()
1299
- }, T(e.name), 13, ht)]),
1305
+ }, E(e.name), 13, ht)]),
1300
1306
  _: 2
1301
1307
  }, [e.$slots.pattern ? {
1302
1308
  name: "legend-pattern",
1303
- fn: D(({ legend: e, index: t }) => [ke(_e, {
1309
+ fn: O(({ legend: e, index: t }) => [ke(_e, {
1304
1310
  shape: e.shape,
1305
1311
  radius: 30,
1306
1312
  stroke: "none",
@@ -1308,52 +1314,52 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1308
1314
  x: 30,
1309
1315
  y: 30
1310
1316
  },
1311
- fill: `url(#pattern_${A.value}_${t})`
1317
+ fill: `url(#pattern_${j.value}_${t})`
1312
1318
  }, null, 8, ["shape", "fill"])]),
1313
1319
  key: "0"
1314
1320
  } : void 0]), 1032, [
1315
1321
  "legendSet",
1316
1322
  "config",
1317
1323
  "isCursorPointer"
1318
- ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1319
- e.$slots.source ? (x(), m("div", {
1324
+ ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1325
+ e.$slots.source ? (S(), h("div", {
1320
1326
  key: 8,
1321
1327
  ref_key: "source",
1322
1328
  ref: Mt,
1323
1329
  dir: "auto"
1324
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1325
- Y.value === B.value.initialRotation ? p("", !0) : (x(), m("div", gt, [w(e.$slots, "reset-action", { reset: Vn }, () => [h("button", {
1330
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1331
+ Y.value === B.value.initialRotation ? m("", !0) : (S(), h("div", gt, [T(e.$slots, "reset-action", { reset: Hn }, () => [g("button", {
1326
1332
  "data-cy-reset": "",
1327
1333
  tabindex: "0",
1328
1334
  role: "button",
1329
1335
  class: "vue-data-ui-refresh-button",
1330
- style: b({
1336
+ style: x({
1331
1337
  background: B.value.style.chart.backgroundColor,
1332
1338
  cursor: V.value ? "pointer" : "default"
1333
1339
  }),
1334
- onClick: Vn
1335
- }, [ke(E(yt), {
1340
+ onClick: Hn
1341
+ }, [ke(D(yt), {
1336
1342
  name: "refresh",
1337
1343
  stroke: B.value.style.chart.color
1338
1344
  }, null, 8, ["stroke"])], 4)], !0)])),
1339
- k.value && B.value.userOptions.buttons.table ? (x(), f(Pe(Yn.value.component), Ae({ key: 10 }, Yn.value.props, {
1345
+ A.value && B.value.userOptions.buttons.table ? (S(), p(Pe(Xn.value.component), Ae({ key: 10 }, Xn.value.props, {
1340
1346
  ref_key: "tableUnit",
1341
- ref: Rt,
1342
- onClose: Xn
1347
+ ref: zt,
1348
+ onClose: Zn
1343
1349
  }), De({
1344
- content: D(() => [(x(), f(E(bt), {
1350
+ content: O(() => [(S(), p(D(bt), {
1345
1351
  key: `table_${Ft.value}`,
1346
- colNames: Gn.value.colNames,
1347
- head: Gn.value.head,
1348
- body: Gn.value.body,
1349
- config: Gn.value.config,
1350
- title: B.value.table.useDialog ? "" : Yn.value.title,
1352
+ colNames: Kn.value.colNames,
1353
+ head: Kn.value.head,
1354
+ body: Kn.value.body,
1355
+ config: Kn.value.config,
1356
+ title: B.value.table.useDialog ? "" : Xn.value.title,
1351
1357
  withCloseButton: !B.value.table.useDialog,
1352
1358
  isCursorPointer: V.value,
1353
- onClose: Xn
1359
+ onClose: Zn
1354
1360
  }, {
1355
- th: D(({ th: e }) => [Oe(T(e.name), 1)]),
1356
- td: D(({ td: e }) => [h("div", _t, T(e.name ? e.name : Dn(e)), 1)]),
1361
+ th: O(({ th: e }) => [Oe(E(e.name), 1)]),
1362
+ td: O(({ td: e }) => [g("div", _t, E(e.name ? e.name : On(e)), 1)]),
1357
1363
  _: 1
1358
1364
  }, 8, [
1359
1365
  "colNames",
@@ -1367,24 +1373,24 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
1367
1373
  _: 2
1368
1374
  }, [B.value.table.useDialog ? {
1369
1375
  name: "title",
1370
- fn: D(() => [Oe(T(Yn.value.title), 1)]),
1376
+ fn: O(() => [Oe(E(Xn.value.title), 1)]),
1371
1377
  key: "0"
1372
1378
  } : void 0, B.value.table.useDialog ? {
1373
1379
  name: "actions",
1374
- fn: D(() => [h("button", {
1380
+ fn: O(() => [g("button", {
1375
1381
  tabindex: "0",
1376
1382
  class: "vue-ui-user-options-button",
1377
- onClick: t[1] ||= (e) => Kn(B.value.userOptions.callbacks.csv),
1378
- style: b({ cursor: V.value ? "pointer" : "default" })
1379
- }, [ke(E(yt), {
1383
+ onClick: t[1] ||= (e) => qn(B.value.userOptions.callbacks.csv),
1384
+ style: x({ cursor: V.value ? "pointer" : "default" })
1385
+ }, [ke(D(yt), {
1380
1386
  name: "fileCsv",
1381
- stroke: Yn.value.props.color
1387
+ stroke: Xn.value.props.color
1382
1388
  }, null, 8, ["stroke"])], 4)]),
1383
1389
  key: "1"
1384
- } : void 0]), 1040)) : p("", !0),
1385
- w(e.$slots, "skeleton", {}, () => [E(Wt) ? (x(), f(de, { key: 0 })) : p("", !0)], !0)
1390
+ } : void 0]), 1040)) : m("", !0),
1391
+ T(e.$slots, "skeleton", {}, () => [D(Gt) ? (S(), p(de, { key: 0 })) : m("", !0)], !0)
1386
1392
  ], 46, Ve));
1387
1393
  }
1388
- }, [["__scopeId", "data-v-2716f6ca"]]);
1394
+ }, [["__scopeId", "data-v-268ddfaa"]]);
1389
1395
  //#endregion
1390
1396
  export { Be as n, vt as t };