vue-data-ui 3.6.0 → 3.7.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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  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 +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -0,0 +1,1182 @@
1
+ import { useCssVars as io, defineAsyncComponent as H, ref as d, shallowRef as it, toRefs as co, watch as xe, computed as y, onMounted as ct, onBeforeUnmount as dt, createElementBlock as i, openBlock as s, unref as v, normalizeStyle as N, normalizeClass as R, createBlock as G, createCommentVNode as h, renderSlot as b, createElementVNode as I, withCtx as p, normalizeProps as z, guardReactiveProps as j, createSlots as Ie, withModifiers as vt, createVNode as fe, Fragment as U, renderList as Q, mergeProps as ht, toDisplayString as Z, Teleport as vo, resolveDynamicComponent as ho, createTextVNode as ft, nextTick as bt } from "vue";
2
+ import { c as _e, t as fo, i as bo, p as be, o as go, g as gt, k as po, j as mo, l as yo, X as ko, w as Co, d as Pe, a3 as Ao, ao as $o, u as wo, q as Mo, a as xo } from "./lib-C5BH09_g.js";
3
+ import { t as Io, u as _o } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Po, a as Be } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as Bo, B as So } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as To } from "./usePrinter-DCJzEiS8.js";
7
+ import { u as Eo } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Do } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as Fo } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as Oo } from "./useChartAccessibility-9icAAmYg.js";
11
+ import Lo from "./img-DUzJeMlr.js";
12
+ import { _ as No } from "./Shape-DE6X_t31.js";
13
+ import Ro from "./Title-DfFUb9hd.js";
14
+ import zo from "./Legend-Web3GjlR.js";
15
+ import { _ as jo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const pt = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, arcs: { stroke: "#1A1A1A", labels: { color: "#CCCCCC" } }, ribbons: { stroke: "#1A1A1A", labels: { color: "#CCCCCC", connector: { stroke: "#CCCCCC" }, marker: { stroke: "#1A1A1A" } } } } } }, mt = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, arcs: { stroke: "#FFF8E1", labels: { color: "#424242" } }, ribbons: { stroke: "#FFF8E1", labels: { color: "#424242", connector: { stroke: "#424242" }, marker: { stroke: "#FFF8E1" } } } } } }, yt = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, arcs: { stroke: "#1E1E1E", labels: { color: "#BDBDBD" } }, ribbons: { stroke: "#1E1E1E", labels: { color: "#BDBDBD", connector: { stroke: "#BDBDBD" }, marker: { stroke: "#1E1E1E" } } } } } }, kt = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, arcs: { stroke: "#1A1A1A", labels: { color: "#99AA99" } }, ribbons: { stroke: "#1A1A1A", labels: { color: "#99AA99", connector: { stroke: "#99AA99" }, marker: { stroke: "#1A1A1A" } } } } } }, Ct = { table: { th: { backgroundColor: "#fbfafa", color: "#8A9892" }, td: { backgroundColor: "#fbfafa", color: "#8A9892" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#fbfafa", color: "#8A9892" }, arcs: { stroke: "#fbfafa", labels: { color: "#8A9892" } }, ribbons: { stroke: "#fbfafa", labels: { color: "#8A9892", connector: { stroke: "#8A9892" }, marker: { stroke: "#fbfafa" } } } } } }, At = { table: { th: { backgroundColor: "#fbfafa", color: "#8A9892" }, td: { backgroundColor: "#fbfafa", color: "#8A9892" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, legend: { backgroundColor: "#f6f6fb", color: "#50606C" }, arcs: { stroke: "#f6f6fb", labels: { color: "#50606C" } }, ribbons: { stroke: "#f6f6fb", labels: { color: "#50606C", connector: { stroke: "#50606C" }, marker: { stroke: "#f6f6fb" } } } } } }, $t = {
17
+ default: {},
18
+ dark: pt,
19
+ celebration: mt,
20
+ celebrationNight: yt,
21
+ hack: kt,
22
+ zen: Ct,
23
+ concrete: At
24
+ }, Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
+ __proto__: null,
26
+ celebration: mt,
27
+ celebrationNight: yt,
28
+ concrete: At,
29
+ dark: pt,
30
+ default: $t,
31
+ hack: kt,
32
+ zen: Ct
33
+ }, Symbol.toStringTag, { value: "Module" })), Uo = ["id"], Xo = ["id"], Vo = ["xmlns", "viewBox"], Go = ["width", "height"], Yo = { key: 1 }, Wo = ["id", "d"], qo = { key: 2 }, Ho = ["transform"], Qo = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Zo = ["d", "fill", "stroke", "stroke-width"], Jo = ["d", "fill"], Ko = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], ea = ["d", "fill", "stroke", "stroke-width"], ta = ["d", "fill", "stroke", "stroke-width"], oa = ["d", "fill", "stroke", "stroke-width"], aa = { key: 0 }, la = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], sa = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ua = { key: 1 }, ia = ["font-size", "font-weight", "fill"], ca = ["href"], da = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], va = {
34
+ key: 4,
35
+ class: "vue-data-ui-watermark"
36
+ }, ha = ["id"], fa = ["onClick"], ba = {
37
+ key: 7,
38
+ "data-dom-to-png-ignore": "",
39
+ class: "reset-wrapper"
40
+ }, ga = { style: { "text-align": "right", width: "100%" } }, pa = {
41
+ __name: "vue-ui-chord",
42
+ props: {
43
+ dataset: {
44
+ type: Object,
45
+ default() {
46
+ return {};
47
+ }
48
+ },
49
+ config: {
50
+ type: Object,
51
+ default() {
52
+ return {};
53
+ }
54
+ }
55
+ },
56
+ emits: ["selectLegend", "selectGroup", "selectRibbon"],
57
+ setup(wt, { expose: Mt, emit: xt }) {
58
+ io((e) => ({
59
+ v0e648af8: e.slicerColor
60
+ }));
61
+ const It = H(() => import("./vue-ui-accordion-DSdZUn2C.js")), Se = H(() => import("./BaseIcon-CofSxalQ.js")), _t = H(() => import("./DataTable-CHaOCmsE.js")), Pt = H(() => import("./PackageVersion-Bq_mtsqr.js")), Bt = H(() => import("./PenAndPaper-HCZQTkqi.js")), St = H(() => import("./UserOptions-B3I-s3Lw.js")), Tt = H(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_chord: Et } = Po(), { isThemeValid: Dt, warnInvalidTheme: Ft } = Do(), T = wt, se = xt, O = d(!!T.dataset && Object.hasOwn(T.dataset, "matrix")), $ = d(_e()), w = d(null), k = d(null), g = d(null), Te = d(0), E = d(null), Ee = d(null), De = d(null), Fe = d(null), Oe = d(null), ge = d(0), pe = d(0), me = d(0), J = d(!1), X = it(null), K = it(null), Le = d(!1), te = d(null), ye = d(null), t = d(Ce()), { loading: Ne, FINAL_DATASET: M, manualLoading: oe } = Bo({
62
+ ...co(T),
63
+ FINAL_CONFIG: t,
64
+ prepareConfig: Ce,
65
+ callback: () => {
66
+ Promise.resolve().then(async () => {
67
+ await bt(), Y.value.showTable = t.value.table.show;
68
+ });
69
+ },
70
+ skeletonDataset: {
71
+ matrix: [
72
+ [12e3, 6e3, 9e3, 3e3],
73
+ [2e3, 1e4, 2e3, 6001],
74
+ [8e3, 1600, 8e3, 8001],
75
+ [1e3, 1e3, 1e3, 7001]
76
+ ],
77
+ labels: [],
78
+ colors: ["#DBDBDB", "#C4C4C4", "#ADADAD", "#969696"]
79
+ },
80
+ skeletonConfig: fo({
81
+ defaultConfig: t.value,
82
+ userConfig: {
83
+ useCssAnimation: !1,
84
+ userOptions: { show: !1 },
85
+ table: { show: !1 },
86
+ style: {
87
+ chart: {
88
+ backgroundColor: "#99999930",
89
+ legend: {
90
+ backgroundColor: "transparent"
91
+ },
92
+ arcs: {
93
+ stroke: "#6A6A6A",
94
+ labels: {
95
+ show: !1
96
+ }
97
+ },
98
+ ribbons: {
99
+ stroke: "#6A6A6A",
100
+ underlayerOpacity: 0,
101
+ labels: {
102
+ show: !1
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ })
109
+ }), { userOptionsVisible: ke, setUserOptionsVisibility: Re, keepUserOptionState: ze } = Fo({ config: t.value }), { svgRef: ee } = Oo({ config: t.value.style.chart.title }), { isPrinting: je, isImaging: Ue, generatePdf: Xe, generateImage: Ve } = To({
110
+ elementId: `chord_${$.value}`,
111
+ fileName: t.value.style.chart.title.text || "vue-ui-chord",
112
+ options: t.value.userOptions.print
113
+ }), Y = d({
114
+ showTable: t.value.table.show
115
+ });
116
+ function Ce() {
117
+ const e = Be({
118
+ userConfig: T.config,
119
+ defaultConfig: Et
120
+ }), a = e.theme;
121
+ if (!a) return e;
122
+ if (!Dt.value(e))
123
+ return Ft(e), e;
124
+ const o = Be({
125
+ userConfig: $t[a] || T.config,
126
+ defaultConfig: e
127
+ }), l = Be({
128
+ userConfig: T.config,
129
+ defaultConfig: o
130
+ });
131
+ return {
132
+ ...l,
133
+ customPalette: l.customPalette.length ? l.customPalette : bo[a] || be
134
+ };
135
+ }
136
+ xe(() => T.config, (e) => {
137
+ Ne.value || (t.value = Ce()), ke.value = !t.value.userOptions.showOnChartHover, Ae(), ge.value += 1, pe.value += 1, me.value += 1, _.value = t.value.initialRotation, Y.value.showTable = t.value.table.show;
138
+ }, { deep: !0 });
139
+ const Ge = y(() => t.value.debug);
140
+ xe(() => T.dataset, () => {
141
+ Ye(), Ae(), ge.value += 1, pe.value += 1, me.value += 1;
142
+ });
143
+ function Ye() {
144
+ if (go(T.dataset)) {
145
+ gt({
146
+ componentName: "VueUiChord",
147
+ type: "dataset",
148
+ debug: Ge.value
149
+ }), O.value = !1, oe.value = !0;
150
+ return;
151
+ }
152
+ const e = po({
153
+ datasetObject: T.dataset,
154
+ requiredAttributes: ["matrix"]
155
+ });
156
+ if (e.length) {
157
+ e.forEach((r) => {
158
+ gt({
159
+ componentName: "VueUiChord",
160
+ type: "datasetAttribute",
161
+ property: r,
162
+ debug: Ge.value
163
+ });
164
+ }), O.value = !1, oe.value = !0;
165
+ return;
166
+ }
167
+ const a = T.dataset.matrix;
168
+ if (!Array.isArray(a) || a.length < 2) {
169
+ console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
170
+
171
+ matrix:[
172
+ [1, 1],
173
+ [1, 1]
174
+ ]`), O.value = !1, oe.value = !0;
175
+ return;
176
+ }
177
+ const o = a.length, l = a.findIndex((r) => !Array.isArray(r) || r.length !== o);
178
+ if (l !== -1) {
179
+ console.warn(
180
+ `VueUiChord - Invalid matrix: dataset.matrix at index ${l} has ${Array.isArray(a[l]) ? a[l].length : "NaN"} elements instead of the required ${o}
181
+
182
+ dataset.matrix[${l}] = [${Array.isArray(a[l]) ? a[l].toString() : "invalid"}]`
183
+ ), O.value = !1, oe.value = !0;
184
+ return;
185
+ }
186
+ O.value = !0, oe.value = !1;
187
+ }
188
+ function Ae() {
189
+ if (Ye(), t.value.responsive) {
190
+ const e = Io(() => {
191
+ const { width: a, height: o, heightNoTitle: l, heightSource: r, heightTitle: n, heightLegend: u } = _o({
192
+ chart: E.value,
193
+ title: t.value.style.chart.title.text ? Ee.value : null,
194
+ legend: t.value.style.chart.legend.show ? De.value : null,
195
+ source: Fe.value,
196
+ noTitle: Oe.value
197
+ }), f = n + u + r + l;
198
+ a < o ? E.value.style.width = "100%" : (E.value.style.height = "100%", ee.value.style.height = `calc(100% - ${f}px)`);
199
+ }, 100);
200
+ X.value && (K.value && X.value.unobserve(K.value), X.value.disconnect()), X.value = new ResizeObserver(e), K.value = E.value.parentNode, X.value.observe(K.value), e();
201
+ }
202
+ We.value = setTimeout(() => {
203
+ J.value = !0;
204
+ }, 500);
205
+ }
206
+ function Ot() {
207
+ if (!M.value || !Object.hasOwn(M.value, "matrix") || M.value.matrix.length < 2) {
208
+ console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
209
+
210
+ matrix:[
211
+ [1, 1],
212
+ [1, 1]
213
+ ]`), O.value = !1;
214
+ return;
215
+ }
216
+ M.value.matrix.forEach((e, a) => {
217
+ e.length !== M.value.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${a} has ${e.length} elements instead of the required ${M.value.matrix.length}
218
+
219
+ dataset.matrix[${a}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${M.value.matrix.length})`), O.value = !1);
220
+ });
221
+ }
222
+ const We = d(null);
223
+ ct(() => {
224
+ Le.value = !0, Ae();
225
+ });
226
+ const D = d({
227
+ height: 600,
228
+ width: 600
229
+ }), Lt = y(() => t.value.userOptions.show && !t.value.style.chart.title.text), Nt = y(() => mo(t.value.customPalette)), m = y(() => ({
230
+ inner: D.value.width * 0.3 * t.value.style.chart.arcs.innerRadiusRatio,
231
+ outer: D.value.width * 0.34 * t.value.style.chart.arcs.outerRadiusRatio
232
+ })), Rt = y(() => t.value.style.chart.arcs.padAngle / 100), C = y(() => ({
233
+ matrix: M.value.matrix ?? [[0]],
234
+ labels: M.value.labels ?? [""],
235
+ colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((e) => yo(e)) : M.value.matrix.map((e, a) => Nt.value[a] || be[a] || be[a % be.length])
236
+ }));
237
+ function zt(e, a) {
238
+ const o = e.length, l = m.value.inner, r = new Array(o).fill(0);
239
+ let n = 0;
240
+ for (let c = 0; c < o; c += 1)
241
+ for (let A = 0; A < o; A += 1)
242
+ r[c] += e[c][A], n += e[c][A];
243
+ const u = (2 * Math.PI - a * o) / n, f = [];
244
+ let P = 0;
245
+ for (let c = 0; c < o; c += 1) {
246
+ const A = P, S = A + r[c] * u;
247
+ f.push({
248
+ index: c,
249
+ pattern: `pattern_${$.value}_${c}`,
250
+ startAngle: A,
251
+ endAngle: S,
252
+ name: C.value.labels[c],
253
+ id: _e(),
254
+ color: C.value.colors[c],
255
+ proportion: r[c] / n
256
+ }), P = S + a;
257
+ }
258
+ const B = [];
259
+ for (let c = 0; c < o; c += 1) {
260
+ const A = e[c].map((F, V) => ({ j: V, v: F }));
261
+ A.sort((F, V) => V.v - F.v);
262
+ let S = f[c].startAngle;
263
+ for (const { j: F, v: V } of A) {
264
+ const q = S, re = q + V * u;
265
+ B.push({
266
+ index: c,
267
+ subIndex: F,
268
+ pattern: `pattern_${$.value}_${c}`,
269
+ startAngle: q,
270
+ endAngle: re,
271
+ value: V,
272
+ groupName: C.value.labels[c],
273
+ groupId: f[c].id,
274
+ groupColor: C.value.colors[c],
275
+ midAngle: (q + re) / 2,
276
+ midBaseX: Math.cos((q + re) / 2 - Math.PI / 2) * l,
277
+ midBaseY: Math.sin((q + re) / 2 - Math.PI / 2) * l
278
+ }), S = re;
279
+ }
280
+ }
281
+ const L = [];
282
+ for (const c of B) {
283
+ const A = B.find(
284
+ (S) => S.index === c.subIndex && S.subIndex === c.index
285
+ );
286
+ L.push({ source: c, target: A, id: _e() });
287
+ }
288
+ return { groups: f, chords: L };
289
+ }
290
+ const x = y(() => {
291
+ const e = zt(C.value.matrix, Rt.value);
292
+ return Ot(), e.chords.sort(
293
+ (a, o) => Math.max(o.source.value, o.target.value) - Math.max(a.source.value, a.target.value)
294
+ ), e;
295
+ }), jt = y(() => {
296
+ const e = m.value.outer + t.value.style.chart.ribbons.labels.offset + 12, o = t.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
297
+ if (k.value) {
298
+ const n = k.value;
299
+ if (n.source.value) {
300
+ const u = String(n.source.value);
301
+ l.push({
302
+ id: n.id + "-src",
303
+ theta: n.source.midAngle,
304
+ w: u.length * o / e,
305
+ midBaseX: n.source.midBaseX,
306
+ midBaseY: n.source.midBaseY,
307
+ groupColor: n.source.groupColor,
308
+ value: n.source.value
309
+ });
310
+ }
311
+ if (n.target && n.target.value && n.target.value !== n.source.value) {
312
+ const u = String(n.target.value);
313
+ l.push({
314
+ id: n.id + "-tgt",
315
+ theta: n.target.midAngle,
316
+ w: u.length * o / e,
317
+ midBaseX: n.target.midBaseX,
318
+ midBaseY: n.target.midBaseY,
319
+ groupColor: n.target.groupColor,
320
+ value: n.target.value
321
+ });
322
+ }
323
+ return l;
324
+ }
325
+ function r(n) {
326
+ x.value.chords.filter((u) => u.source.groupId === n && u.source.value).forEach((u) => {
327
+ {
328
+ const f = String(u.source.value);
329
+ l.push({
330
+ id: u.id + "-src",
331
+ theta: u.source.midAngle,
332
+ w: f.length * o / e,
333
+ midBaseX: u.source.midBaseX,
334
+ midBaseY: u.source.midBaseY,
335
+ groupColor: u.source.groupColor,
336
+ value: u.source.value
337
+ });
338
+ }
339
+ if (u.target && u.target.value && u.target.value !== u.source.value) {
340
+ const f = String(u.target.value);
341
+ l.push({
342
+ id: u.id + "-tgt",
343
+ theta: u.target.midAngle,
344
+ w: f.length * o / e,
345
+ midBaseX: u.target.midBaseX,
346
+ midBaseY: u.target.midBaseY,
347
+ groupColor: u.target.groupColor,
348
+ value: u.target.value
349
+ });
350
+ }
351
+ });
352
+ }
353
+ return g.value && r(g.value), w.value && r(w.value.id), l;
354
+ }), Ut = y(() => {
355
+ const e = jt.value.map((r) => ({ ...r })).sort((r, n) => r.theta - n.theta), a = t.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
356
+ let o = !0, l = 0;
357
+ for (; o && l++ < 10; ) {
358
+ o = !1;
359
+ for (let f = 1; f < e.length; f += 1) {
360
+ const P = e[f - 1], B = e[f], L = P.theta + P.w + a;
361
+ B.theta < L && (B.theta = L, o = !0);
362
+ }
363
+ const r = e[0], n = e[e.length - 1], u = n.theta + n.w + a - 2 * Math.PI;
364
+ r.theta < u && (r.theta = u, o = !0);
365
+ }
366
+ return e;
367
+ });
368
+ function qe(e, a, o, l) {
369
+ const r = e - Math.PI / 2, n = a - Math.PI / 2, u = Math.cos(r) * o, f = Math.sin(r) * o, P = Math.cos(n) * o, B = Math.sin(n) * o, L = Math.cos(n) * l, c = Math.sin(n) * l, A = Math.cos(r) * l, S = Math.sin(r) * l, F = a - e > Math.PI ? 1 : 0;
370
+ return `M${u},${f} A${o},${o} 0 ${F} 1 ${P},${B} L${L},${c} A${l},${l} 0 ${F} 0 ${A},${S} Z`;
371
+ }
372
+ function ue(e, a) {
373
+ const o = m.value.inner, l = e.startAngle - Math.PI / 2, r = e.endAngle - Math.PI / 2, n = a.startAngle - Math.PI / 2, u = a.endAngle - Math.PI / 2, f = Math.cos(l) * o, P = Math.sin(l) * o, B = Math.cos(r) * o, L = Math.sin(r) * o, c = Math.cos(n) * o, A = Math.sin(n) * o, S = Math.cos(u) * o, F = Math.sin(u) * o, V = e.endAngle - e.startAngle > Math.PI ? 1 : 0, q = a.endAngle - a.startAngle > Math.PI ? 1 : 0;
374
+ return `M${f},${P}A${o},${o} 0 ${V} 1 ${B},${L}Q0,0 ${c},${A}A${o},${o} 0 ${q} 1 ${S},${F}Q0,0 ${f},${P}Z`;
375
+ }
376
+ const He = y(() => _.value * Math.PI / 180);
377
+ function Xt(e) {
378
+ return (e.startAngle + e.endAngle) / 2;
379
+ }
380
+ function Vt(e) {
381
+ return ((Xt(e) + He.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
382
+ }
383
+ function Gt(e) {
384
+ let a = e + He.value;
385
+ return a = (a % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), a > Math.PI ? "end" : "start";
386
+ }
387
+ function Yt(e) {
388
+ const a = e - Math.PI / 2, o = Math.cos(a) * (m.value.outer + t.value.style.chart.arcs.labels.offset + 24), l = Math.sin(a) * (m.value.outer + t.value.style.chart.arcs.labels.offset + 24);
389
+ return `translate(${o},${l})`;
390
+ }
391
+ function Wt(e, a, o) {
392
+ const l = e - Math.PI / 2, r = a - Math.PI / 2, n = Math.cos(l) * o, u = Math.sin(l) * o, f = Math.cos(r) * o, P = Math.sin(r) * o, B = a - e > Math.PI ? 1 : 0;
393
+ return `M${n},${u} A${o},${o} 0 ${B} 1 ${f},${P}`;
394
+ }
395
+ const _ = d(t.value.initialRotation), ae = d(!1);
396
+ let Qe = 0, Ze = 0;
397
+ function Je(e) {
398
+ const a = ee.value.getBoundingClientRect(), o = a.left + a.width / 2, l = a.top + a.height / 2, r = e.clientX ?? e.touches[0].clientX, n = e.clientY ?? e.touches[0].clientY;
399
+ return Math.atan2(n - l, r - o);
400
+ }
401
+ function Ke(e) {
402
+ !t.value.enableRotation || le.value || (e.preventDefault(), ae.value = !0, Qe = _.value, Ze = Je(e));
403
+ }
404
+ function ie(e) {
405
+ if (!ae.value) return;
406
+ const a = Je(e);
407
+ _.value = Qe + (a - Ze) * 180 / Math.PI;
408
+ }
409
+ function ce() {
410
+ ae.value = !1;
411
+ }
412
+ function et(e) {
413
+ return xo(
414
+ t.value.style.chart.ribbons.labels.formatter,
415
+ e,
416
+ Pe({
417
+ p: t.value.style.chart.ribbons.labels.prefix,
418
+ v: e,
419
+ s: t.value.style.chart.ribbons.labels.suffix,
420
+ r: t.value.style.chart.ribbons.labels.rounding
421
+ })
422
+ );
423
+ }
424
+ ct(() => {
425
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ce), window.addEventListener("touchmove", ie, { passive: !1 }), window.addEventListener("touchend", ce);
426
+ }), dt(() => {
427
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ce), window.removeEventListener("touchmove", ie), window.removeEventListener("touchend", ce), clearTimeout(We.value), X.value && (K.value && X.value.unobserve(K.value), X.value.disconnect());
428
+ });
429
+ const de = d(!1);
430
+ function tt(e) {
431
+ de.value = e, Te.value += 1;
432
+ }
433
+ function qt(e, a) {
434
+ t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: a }), !g.value && (w.value = e);
435
+ }
436
+ function Ht(e, a) {
437
+ w.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: a });
438
+ }
439
+ function Qt(e, a) {
440
+ se("selectGroup", e), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: a });
441
+ }
442
+ function Zt(e, a) {
443
+ t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: a }), !g.value && (k.value = e);
444
+ }
445
+ function Jt(e, a) {
446
+ k.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: a });
447
+ }
448
+ function Kt(e, a) {
449
+ se("selectRibbon", e), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: a });
450
+ }
451
+ function ot(e) {
452
+ return !g.value && !w.value && !k.value ? 0.8 : (g.value ? g.value === e.source.groupId : w.value ? w.value.id === e.source.groupId : k.value?.id === e.id) ? 1 : 0.1;
453
+ }
454
+ function at(e) {
455
+ return !g.value && !w.value && !k.value || (g.value ? g.value === e.id : w.value ? w.value.id === e.id : [k.value?.source.groupId, k.value?.target.groupId].includes(e.id)) ? 1 : 0.3;
456
+ }
457
+ const le = d(!1);
458
+ function $e() {
459
+ le.value = !le.value;
460
+ }
461
+ function lt() {
462
+ Y.value.showTable = !Y.value.showTable;
463
+ }
464
+ function eo() {
465
+ return x.value;
466
+ }
467
+ const W = d(null);
468
+ function nt() {
469
+ const e = t.value.initialRotation;
470
+ W.value !== null && cancelAnimationFrame(W.value);
471
+ const a = () => {
472
+ _.value += (e - _.value) * 0.05, Math.abs(_.value - e) < 0.1 ? (_.value = e, W.value = null) : W.value = requestAnimationFrame(a);
473
+ };
474
+ W.value = requestAnimationFrame(a);
475
+ }
476
+ dt(() => {
477
+ W.value !== null && cancelAnimationFrame(W.value);
478
+ });
479
+ function rt(e) {
480
+ e === g.value ? (g.value = null, se("selectLegend", null)) : (g.value = e, se("selectLegend", x.value.groups.find((a) => a.id === e)));
481
+ }
482
+ const we = y(() => x.value.groups.map((e, a) => ({
483
+ name: e.name,
484
+ color: e.color,
485
+ shape: "circle",
486
+ patternIndex: a,
487
+ pattern: `pattern_${$.value}_${a}`,
488
+ id: e.id,
489
+ select: () => rt(e.id),
490
+ opacity: g.value ? g.value === e.id ? 1 : 0.3 : 1
491
+ }))), to = y(() => ({
492
+ cy: "chord-div-legend",
493
+ backgroundColor: t.value.style.chart.legend.backgroundColor,
494
+ color: t.value.style.chart.legend.color,
495
+ fontSize: t.value.style.chart.legend.fontSize,
496
+ paddingBottom: 12,
497
+ fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
498
+ })), ve = y(() => {
499
+ const e = x.value.groups.map((o, l) => ({
500
+ name: o.name || l,
501
+ color: o.color
502
+ })), a = C.value.matrix;
503
+ return { head: e, body: a };
504
+ }), he = y(() => {
505
+ const e = [{ name: "", color: null }, ...ve.value.head], a = ve.value.body.map((r, n) => [
506
+ ve.value.head[n],
507
+ ...ve.value.body[n]
508
+ ]), o = {
509
+ th: {
510
+ backgroundColor: t.value.table.th.backgroundColor,
511
+ color: t.value.table.th.color,
512
+ outline: t.value.table.th.outline
513
+ },
514
+ td: {
515
+ backgroundColor: t.value.table.td.backgroundColor,
516
+ color: t.value.table.td.color,
517
+ outline: t.value.table.td.outline
518
+ },
519
+ breakpoint: t.value.table.responsiveBreakpoint
520
+ };
521
+ return {
522
+ colNames: e,
523
+ head: e,
524
+ body: a,
525
+ config: o
526
+ };
527
+ });
528
+ function Me(e = null) {
529
+ bt(() => {
530
+ const a = C.value.matrix.map((r, n) => [
531
+ [C.value.labels[n] || n],
532
+ r
533
+ ]), o = [
534
+ [t.value.style.chart.title.text],
535
+ [t.value.style.chart.title.subtitle.text],
536
+ [
537
+ [""],
538
+ ...C.value.labels.map((r, n) => [r || n])
539
+ ]
540
+ ].concat(a), l = wo(o);
541
+ e ? e(l) : Mo({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-chord" });
542
+ });
543
+ }
544
+ async function oo({ scale: e = 2 } = {}) {
545
+ if (!E.value) return;
546
+ const { width: a, height: o } = E.value.getBoundingClientRect(), l = a / o, { imageUri: r, base64: n } = await Lo({ domElement: E.value, base64: !0, img: !0, scale: e });
547
+ return {
548
+ imageUri: r,
549
+ base64: n,
550
+ title: t.value.style.chart.title.text,
551
+ width: a,
552
+ height: o,
553
+ aspectRatio: l
554
+ };
555
+ }
556
+ function ao(e, a) {
557
+ return `${C.value.labels[a]}${t.value.style.chart.arcs.labels.showPercentage ? Pe({
558
+ p: " (",
559
+ v: isNaN(e.proportion) ? 0 : e.proportion * 100,
560
+ s: "%)",
561
+ r: t.value.style.chart.arcs.labels.roundingPercentage
562
+ }) : ""}`;
563
+ }
564
+ const ne = y(() => {
565
+ const e = t.value.table.useDialog && !t.value.table.show, a = Y.value.showTable;
566
+ return {
567
+ component: e ? Tt : It,
568
+ title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
569
+ props: e ? {
570
+ backgroundColor: t.value.table.th.backgroundColor,
571
+ color: t.value.table.th.color,
572
+ headerColor: t.value.table.th.color,
573
+ headerBg: t.value.table.th.backgroundColor,
574
+ isFullscreen: de.value,
575
+ fullscreenParent: E.value,
576
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
577
+ } : {
578
+ hideDetails: !0,
579
+ config: {
580
+ open: a,
581
+ maxHeight: 1e4,
582
+ body: {
583
+ backgroundColor: t.value.style.chart.backgroundColor,
584
+ color: t.value.style.chart.color
585
+ },
586
+ head: {
587
+ backgroundColor: t.value.style.chart.backgroundColor,
588
+ color: t.value.style.chart.color
589
+ }
590
+ }
591
+ }
592
+ };
593
+ });
594
+ xe(() => Y.value.showTable, (e) => {
595
+ t.value.table.show || (e && t.value.table.useDialog && te.value ? te.value.open() : "close" in te.value && te.value.close());
596
+ });
597
+ function st() {
598
+ Y.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
599
+ }
600
+ const lo = y(() => t.value.style.chart.backgroundColor), no = y(() => t.value.style.chart.legend), ro = y(() => t.value.style.chart.title), { exportSvg: so, getSvg: uo } = Eo({
601
+ svg: ee,
602
+ title: ro,
603
+ legend: no,
604
+ legendItems: we,
605
+ backgroundColor: lo
606
+ });
607
+ async function ut({ isCb: e }) {
608
+ if (e) {
609
+ const { blob: a, url: o, text: l, dataUrl: r } = await uo();
610
+ t.value.userOptions.callbacks.svg({ blob: a, url: o, text: l, dataUrl: r });
611
+ } else
612
+ so();
613
+ }
614
+ return Mt({
615
+ getData: eo,
616
+ getImage: oo,
617
+ generateCsv: Me,
618
+ generateImage: Ve,
619
+ generateSvg: ut,
620
+ generatePdf: Xe,
621
+ toggleAnnotator: $e,
622
+ toggleTable: lt,
623
+ toggleFullscreen: tt
624
+ }), (e, a) => (s(), i("div", {
625
+ ref_key: "chordChart",
626
+ ref: E,
627
+ class: R({
628
+ "vue-data-ui-component": !0,
629
+ "vue-ui-chord": !0,
630
+ "vue-data-ui-wrapper-fullscreen": de.value,
631
+ "vue-data-ui-responsive": t.value.responsive
632
+ }),
633
+ style: N(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
634
+ id: `chord_${$.value}`,
635
+ onMouseenter: a[2] || (a[2] = () => v(Re)(!0)),
636
+ onMouseleave: a[3] || (a[3] = () => v(Re)(!1))
637
+ }, [
638
+ t.value.userOptions.buttons.annotator && v(ee) ? (s(), G(v(Bt), {
639
+ key: 0,
640
+ color: t.value.style.chart.color,
641
+ backgroundColor: t.value.style.chart.backgroundColor,
642
+ active: le.value,
643
+ svgRef: v(ee),
644
+ onClose: $e
645
+ }, {
646
+ "annotator-action-close": p(() => [
647
+ b(e.$slots, "annotator-action-close", {}, void 0, !0)
648
+ ]),
649
+ "annotator-action-color": p(({ color: o }) => [
650
+ b(e.$slots, "annotator-action-color", z(j({ color: o })), void 0, !0)
651
+ ]),
652
+ "annotator-action-draw": p(({ mode: o }) => [
653
+ b(e.$slots, "annotator-action-draw", z(j({ mode: o })), void 0, !0)
654
+ ]),
655
+ "annotator-action-undo": p(({ disabled: o }) => [
656
+ b(e.$slots, "annotator-action-undo", z(j({ disabled: o })), void 0, !0)
657
+ ]),
658
+ "annotator-action-redo": p(({ disabled: o }) => [
659
+ b(e.$slots, "annotator-action-redo", z(j({ disabled: o })), void 0, !0)
660
+ ]),
661
+ "annotator-action-delete": p(({ disabled: o }) => [
662
+ b(e.$slots, "annotator-action-delete", z(j({ disabled: o })), void 0, !0)
663
+ ]),
664
+ _: 3
665
+ }, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
666
+ b(e.$slots, "userConfig", {}, void 0, !0),
667
+ Lt.value ? (s(), i("div", {
668
+ key: 1,
669
+ ref_key: "noTitle",
670
+ ref: Oe,
671
+ class: "vue-data-ui-no-title-space",
672
+ style: "height:36px; width: 100%;background:transparent"
673
+ }, null, 512)) : h("", !0),
674
+ t.value.style.chart.title.text ? (s(), i("div", {
675
+ key: 2,
676
+ ref_key: "chartTitle",
677
+ ref: Ee,
678
+ style: "width:100%;background:transparent;padding-bottom:24px"
679
+ }, [
680
+ (s(), G(Ro, {
681
+ key: `title_${ge.value}`,
682
+ config: {
683
+ title: {
684
+ cy: "chord-div-title",
685
+ ...t.value.style.chart.title
686
+ },
687
+ subtitle: {
688
+ cy: "chord-div-subtitle",
689
+ ...t.value.style.chart.title.subtitle
690
+ }
691
+ }
692
+ }, null, 8, ["config"]))
693
+ ], 512)) : h("", !0),
694
+ I("div", {
695
+ id: `legend-top-${$.value}`
696
+ }, null, 8, Xo),
697
+ t.value.userOptions.show && O.value && (v(ze) || v(ke)) ? (s(), G(v(St), {
698
+ ref_key: "userOptionsRef",
699
+ ref: ye,
700
+ key: `user_option_${Te.value}`,
701
+ backgroundColor: t.value.style.chart.backgroundColor,
702
+ color: t.value.style.chart.color,
703
+ isPrinting: v(je),
704
+ isImaging: v(Ue),
705
+ uid: $.value,
706
+ hasTooltip: !1,
707
+ hasPdf: t.value.userOptions.buttons.pdf,
708
+ hasImg: t.value.userOptions.buttons.img,
709
+ hasSvg: t.value.userOptions.buttons.svg,
710
+ hasXls: t.value.userOptions.buttons.csv,
711
+ hasTable: t.value.userOptions.buttons.table,
712
+ hasLabel: !1,
713
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
714
+ isFullscreen: de.value,
715
+ chartElement: E.value,
716
+ position: t.value.userOptions.position,
717
+ titles: { ...t.value.userOptions.buttonTitles },
718
+ hasAnnotator: t.value.userOptions.buttons.annotator,
719
+ isAnnotation: le.value,
720
+ callbacks: t.value.userOptions.callbacks,
721
+ printScale: t.value.userOptions.print.scale,
722
+ tableDialog: t.value.table.useDialog,
723
+ onToggleFullscreen: tt,
724
+ onGeneratePdf: v(Xe),
725
+ onGenerateCsv: Me,
726
+ onGenerateImage: v(Ve),
727
+ onGenerateSvg: ut,
728
+ onToggleTable: lt,
729
+ onToggleAnnotator: $e,
730
+ style: N({
731
+ visibility: v(ze) ? v(ke) ? "visible" : "hidden" : "visible"
732
+ })
733
+ }, Ie({ _: 2 }, [
734
+ e.$slots.menuIcon ? {
735
+ name: "menuIcon",
736
+ fn: p(({ isOpen: o, color: l }) => [
737
+ b(e.$slots, "menuIcon", z(j({ isOpen: o, color: l })), void 0, !0)
738
+ ]),
739
+ key: "0"
740
+ } : void 0,
741
+ e.$slots.optionPdf ? {
742
+ name: "optionPdf",
743
+ fn: p(() => [
744
+ b(e.$slots, "optionPdf", {}, void 0, !0)
745
+ ]),
746
+ key: "1"
747
+ } : void 0,
748
+ e.$slots.optionCsv ? {
749
+ name: "optionCsv",
750
+ fn: p(() => [
751
+ b(e.$slots, "optionCsv", {}, void 0, !0)
752
+ ]),
753
+ key: "2"
754
+ } : void 0,
755
+ e.$slots.optionImg ? {
756
+ name: "optionImg",
757
+ fn: p(() => [
758
+ b(e.$slots, "optionImg", {}, void 0, !0)
759
+ ]),
760
+ key: "3"
761
+ } : void 0,
762
+ e.$slots.optionSvg ? {
763
+ name: "optionSvg",
764
+ fn: p(() => [
765
+ b(e.$slots, "optionSvg", {}, void 0, !0)
766
+ ]),
767
+ key: "4"
768
+ } : void 0,
769
+ e.$slots.optionTable ? {
770
+ name: "optionTable",
771
+ fn: p(() => [
772
+ b(e.$slots, "optionTable", {}, void 0, !0)
773
+ ]),
774
+ key: "5"
775
+ } : void 0,
776
+ e.$slots.optionFullscreen ? {
777
+ name: "optionFullscreen",
778
+ fn: p(({ toggleFullscreen: o, isFullscreen: l }) => [
779
+ b(e.$slots, "optionFullscreen", z(j({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
780
+ ]),
781
+ key: "6"
782
+ } : void 0,
783
+ e.$slots.optionAnnotator ? {
784
+ name: "optionAnnotator",
785
+ fn: p(({ toggleAnnotator: o, isAnnotator: l }) => [
786
+ b(e.$slots, "optionAnnotator", z(j({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
787
+ ]),
788
+ key: "7"
789
+ } : void 0
790
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
791
+ (s(), i("svg", {
792
+ xmlns: v(ko),
793
+ ref_key: "svgRef",
794
+ ref: ee,
795
+ viewBox: `0 0 ${D.value.width} ${D.value.height}`,
796
+ preserveAspectRatio: "xMidYMid meet",
797
+ style: {
798
+ overflow: "visible"
799
+ },
800
+ class: R({ "vue-ui-chord-rotating": ae.value, "vue-ui-chord-idle": !ae.value }),
801
+ onMousedown: vt(Ke, ["prevent"]),
802
+ onTouchstart: vt(Ke, ["prevent"])
803
+ }, [
804
+ fe(v(Pt)),
805
+ e.$slots["chart-background"] ? (s(), i("foreignObject", {
806
+ key: 0,
807
+ x: 0,
808
+ y: 0,
809
+ width: D.value.width <= 0 ? 10 : D.value.width,
810
+ height: D.value.height <= 0 ? 10 : D.value.height,
811
+ style: {
812
+ pointerEvents: "none"
813
+ }
814
+ }, [
815
+ b(e.$slots, "chart-background", {}, void 0, !0)
816
+ ], 8, Go)) : h("", !0),
817
+ t.value.style.chart.arcs.labels.curved ? (s(), i("defs", Yo, [
818
+ (s(!0), i(U, null, Q(x.value.groups, (o, l) => (s(), i("path", {
819
+ key: `labelPath-${l}`,
820
+ id: `labelPath-${l}_${$.value}`,
821
+ d: Wt(
822
+ o.startAngle,
823
+ o.endAngle,
824
+ (m.value.inner + m.value.outer) / 2 + t.value.style.chart.arcs.labels.offset
825
+ ),
826
+ fill: "none"
827
+ }, null, 8, Wo))), 128))
828
+ ])) : h("", !0),
829
+ e.$slots.pattern ? (s(), i("g", qo, [
830
+ (s(!0), i(U, null, Q(x.value.groups, (o, l) => (s(), i("defs", null, [
831
+ b(e.$slots, "pattern", ht({ ref_for: !0 }, { seriesIndex: o.index, patternId: `pattern_${$.value}_${l}` }), void 0, !0)
832
+ ]))), 256))
833
+ ])) : h("", !0),
834
+ I("g", {
835
+ transform: `translate(${D.value.width / 2}, ${D.value.height / 2}) rotate(${_.value})`
836
+ }, [
837
+ (s(!0), i(U, null, Q(x.value.groups, (o, l) => (s(), i("g", null, [
838
+ (s(), i("path", {
839
+ class: R({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": t.value.useCssAnimation && !J.value }),
840
+ key: `arc-${l}`,
841
+ d: qe(
842
+ o.startAngle,
843
+ o.endAngle,
844
+ m.value.outer,
845
+ m.value.inner
846
+ ),
847
+ fill: C.value.colors[l],
848
+ stroke: t.value.style.chart.arcs.stroke,
849
+ "stroke-width": t.value.style.chart.arcs.strokeWidth,
850
+ "stroke-linecap": "round",
851
+ "stroke-linejoin": "round",
852
+ style: N({
853
+ opacity: at(o)
854
+ }),
855
+ onMouseenter: (r) => qt(o, l),
856
+ onMouseleave: (r) => Ht(o, l),
857
+ onClick: (r) => Qt(o, l)
858
+ }, null, 46, Qo)),
859
+ e.$slots.pattern ? (s(), i("path", {
860
+ class: R({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": t.value.useCssAnimation && !J.value }),
861
+ key: `arc-${l}`,
862
+ d: qe(
863
+ o.startAngle,
864
+ o.endAngle,
865
+ m.value.outer,
866
+ m.value.inner
867
+ ),
868
+ fill: `url(#${o.pattern})`,
869
+ stroke: t.value.style.chart.arcs.stroke,
870
+ "stroke-width": t.value.style.chart.arcs.strokeWidth,
871
+ "stroke-linecap": "round",
872
+ "stroke-linejoin": "round",
873
+ style: N({
874
+ opacity: at(o),
875
+ pointerEvents: "none"
876
+ })
877
+ }, null, 14, Zo)) : h("", !0)
878
+ ]))), 256)),
879
+ I("g", null, [
880
+ (s(!0), i(U, null, Q(w.value ? x.value.chords.filter((o) => o.source.groupId === w.value.id) : g.value ? x.value.chords.filter((o) => o.source.groupId === g.value) : x.value.chords, (o, l) => (s(), i(U, {
881
+ key: `ribbon-${o.id}`
882
+ }, [
883
+ o.source.value ? (s(), i("path", {
884
+ key: 0,
885
+ class: R({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": t.value.useCssAnimation && !J.value }),
886
+ d: ue(o.source, o.target),
887
+ fill: t.value.style.chart.backgroundColor,
888
+ style: N({ opacity: t.value.style.chart.ribbons.underlayerOpacity })
889
+ }, null, 14, Jo)) : h("", !0),
890
+ o.source.value ? (s(), i("path", {
891
+ key: 1,
892
+ class: R({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": t.value.useCssAnimation && !J.value }),
893
+ d: ue(o.source, o.target),
894
+ fill: C.value.colors[o.source.index],
895
+ stroke: t.value.style.chart.ribbons.stroke,
896
+ "stroke-width": t.value.style.chart.ribbons.strokeWidth,
897
+ "stroke-linecap": "round",
898
+ "stroke-linejoin": "round",
899
+ style: N({ opacity: ot(o) }),
900
+ onMouseenter: (r) => Zt({
901
+ ...o,
902
+ path: ue(o.source, o.target),
903
+ color: C.value.colors[o.source.index]
904
+ }, l),
905
+ onClick: (r) => Kt({
906
+ ...o,
907
+ color: C.value.colors[o.source.index]
908
+ }, l),
909
+ onMouseleave: (r) => Jt({
910
+ ...o,
911
+ color: C.value.colors[o.source.index]
912
+ }, l)
913
+ }, null, 46, Ko)) : h("", !0),
914
+ o.source.value && e.$slots.pattern ? (s(), i("path", {
915
+ key: 2,
916
+ class: R({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": t.value.useCssAnimation && !J.value }),
917
+ d: ue(o.source, o.target),
918
+ fill: `url(#pattern_${$.value}_${o.source.index})`,
919
+ stroke: t.value.style.chart.ribbons.stroke,
920
+ "stroke-width": t.value.style.chart.ribbons.strokeWidth,
921
+ "stroke-linecap": "round",
922
+ "stroke-linejoin": "round",
923
+ style: N({
924
+ opacity: ot(o),
925
+ pointerEvents: "none"
926
+ })
927
+ }, null, 14, ea)) : h("", !0)
928
+ ], 64))), 128)),
929
+ k.value ? (s(), i("path", {
930
+ key: 0,
931
+ d: k.value.path,
932
+ fill: k.value.color,
933
+ stroke: t.value.style.chart.ribbons.stroke,
934
+ "stroke-width": t.value.style.chart.ribbons.strokeWidth,
935
+ "stroke-linecap": "round",
936
+ "stroke-linejoin": "round",
937
+ class: R({ "vue-ui-chord-ribbon": !0 }),
938
+ style: {
939
+ pointerEvents: "none"
940
+ }
941
+ }, null, 8, ta)) : h("", !0),
942
+ k.value && e.$slots.pattern ? (s(), i("path", {
943
+ key: 1,
944
+ d: k.value.path,
945
+ fill: `url(#${k.value.source.pattern})`,
946
+ stroke: t.value.style.chart.ribbons.stroke,
947
+ "stroke-width": t.value.style.chart.ribbons.strokeWidth,
948
+ "stroke-linecap": "round",
949
+ "stroke-linejoin": "round",
950
+ class: R({ "vue-ui-chord-ribbon": !0 }),
951
+ style: {
952
+ pointerEvents: "none"
953
+ }
954
+ }, null, 8, oa)) : h("", !0)
955
+ ]),
956
+ (w.value || k.value || g.value) && t.value.style.chart.ribbons.labels.show ? (s(), i("g", aa, [
957
+ (s(!0), i(U, null, Q(Ut.value, (o) => (s(), i(U, {
958
+ key: o.id
959
+ }, [
960
+ I("line", {
961
+ x1: o.midBaseX,
962
+ y1: o.midBaseY,
963
+ x2: Math.cos(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 12),
964
+ y2: Math.sin(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 12),
965
+ stroke: t.value.style.chart.backgroundColor,
966
+ "stroke-width": t.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
967
+ "pointer-events": "none"
968
+ }, null, 8, la),
969
+ I("line", {
970
+ x1: o.midBaseX,
971
+ y1: o.midBaseY,
972
+ x2: Math.cos(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 12),
973
+ y2: Math.sin(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 12),
974
+ stroke: t.value.style.chart.ribbons.labels.connector.stroke,
975
+ "stroke-width": t.value.style.chart.ribbons.labels.connector.strokeWidth,
976
+ "pointer-events": "none"
977
+ }, null, 8, na),
978
+ t.value.style.chart.ribbons.labels.marker.show ? (s(), i("circle", {
979
+ key: 0,
980
+ cx: Math.cos(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 12),
981
+ cy: Math.sin(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 12),
982
+ r: t.value.style.chart.ribbons.labels.marker.radius,
983
+ stroke: t.value.style.chart.ribbons.labels.marker.stroke,
984
+ "stroke-width": t.value.style.chart.ribbons.labels.marker.strokeWidth,
985
+ fill: o.groupColor,
986
+ "pointer-events": "none"
987
+ }, null, 8, ra)) : h("", !0),
988
+ I("text", {
989
+ transform: `
990
+ translate(
991
+ ${Math.cos(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 24)},
992
+ ${Math.sin(o.theta - Math.PI / 2) * (m.value.outer + t.value.style.chart.ribbons.labels.offset + 24)}
993
+ ) rotate(${-_.value})
994
+ `,
995
+ fill: t.value.style.chart.ribbons.labels.useSerieColor ? o.groupColor : t.value.style.chart.ribbons.labels.color,
996
+ "text-anchor": Gt(o.theta),
997
+ "font-size": t.value.style.chart.ribbons.labels.fontSize,
998
+ "font-weight": t.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
999
+ dy: ".35em",
1000
+ "pointer-events": "none"
1001
+ }, Z(et(o.value)), 9, sa)
1002
+ ], 64))), 128))
1003
+ ])) : h("", !0),
1004
+ t.value.style.chart.arcs.labels.show ? (s(), i("g", ua, [
1005
+ t.value.style.chart.arcs.labels.curved ? (s(!0), i(U, { key: 0 }, Q(x.value.groups, (o, l) => (s(), i("text", {
1006
+ class: "vue-ui-chord-label-curved",
1007
+ key: `curved-label-${l}`,
1008
+ "font-size": t.value.style.chart.arcs.labels.fontSize,
1009
+ "font-weight": t.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1010
+ fill: t.value.style.chart.arcs.labels.adaptColorToBackground ? v(Co)(C.value.colors[l]) : t.value.style.chart.arcs.labels.color
1011
+ }, [
1012
+ I("textPath", {
1013
+ href: `#labelPath-${l}_${$.value}`,
1014
+ startOffset: "50%",
1015
+ "text-anchor": "middle"
1016
+ }, Z(C.value.labels[l]) + Z(t.value.style.chart.arcs.labels.showPercentage ? v(Pe)({
1017
+ p: " (",
1018
+ v: isNaN(o.proportion) ? 0 : o.proportion * 100,
1019
+ s: "%)",
1020
+ r: t.value.style.chart.arcs.labels.roundingPercentage
1021
+ }) : ""), 9, ca)
1022
+ ], 8, ia))), 128)) : !w.value && !k.value && !g.value ? (s(!0), i(U, { key: 1 }, Q(x.value.groups, (o, l) => (s(), i("text", {
1023
+ class: "vue-ui-chord-label-straight",
1024
+ key: `label-${l}`,
1025
+ transform: `
1026
+ ${Yt((o.startAngle + o.endAngle) / 2)}
1027
+ rotate(${-_.value})
1028
+ `,
1029
+ dy: ".35em",
1030
+ "text-anchor": Vt(o) > Math.PI ? "end" : "start",
1031
+ "font-size": t.value.style.chart.arcs.labels.fontSize,
1032
+ "font-weight": t.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1033
+ fill: t.value.style.chart.arcs.labels.color,
1034
+ innerHTML: v(Ao)({
1035
+ content: v($o)(ao(o, l)),
1036
+ fontSize: t.value.style.chart.arcs.labels.fontSize,
1037
+ fill: t.value.style.chart.arcs.labels.color,
1038
+ x: 0,
1039
+ y: 0
1040
+ })
1041
+ }, null, 8, da))), 128)) : h("", !0)
1042
+ ])) : h("", !0)
1043
+ ], 8, Ho),
1044
+ b(e.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
1045
+ ], 42, Vo)),
1046
+ e.$slots.watermark ? (s(), i("div", va, [
1047
+ b(e.$slots, "watermark", z(j({ isPrinting: v(je) || v(Ue) })), void 0, !0)
1048
+ ])) : h("", !0),
1049
+ I("div", {
1050
+ id: `legend-bottom-${$.value}`
1051
+ }, null, 8, ha),
1052
+ Le.value ? (s(), G(vo, {
1053
+ key: 5,
1054
+ to: t.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
1055
+ }, [
1056
+ I("div", {
1057
+ ref_key: "chartLegend",
1058
+ ref: De
1059
+ }, [
1060
+ t.value.style.chart.legend.show ? (s(), G(zo, {
1061
+ key: `legend_${me.value}`,
1062
+ legendSet: we.value,
1063
+ config: to.value,
1064
+ onClickMarker: a[0] || (a[0] = ({ legend: o }) => rt(o.id))
1065
+ }, Ie({
1066
+ item: p(({ legend: o }) => [
1067
+ I("div", {
1068
+ style: N({
1069
+ opacity: g.value ? g.value === o.id ? 1 : 0.3 : 1
1070
+ }),
1071
+ onClick: (l) => o.select()
1072
+ }, Z(o.name), 13, fa)
1073
+ ]),
1074
+ _: 2
1075
+ }, [
1076
+ e.$slots.pattern ? {
1077
+ name: "legend-pattern",
1078
+ fn: p(({ legend: o, index: l }) => [
1079
+ fe(No, {
1080
+ shape: o.shape,
1081
+ radius: 30,
1082
+ stroke: "none",
1083
+ plot: { x: 30, y: 30 },
1084
+ fill: `url(#pattern_${$.value}_${l})`
1085
+ }, null, 8, ["shape", "fill"])
1086
+ ]),
1087
+ key: "0"
1088
+ } : void 0
1089
+ ]), 1032, ["legendSet", "config"])) : h("", !0),
1090
+ b(e.$slots, "legend", { legend: we.value }, void 0, !0)
1091
+ ], 512)
1092
+ ], 8, ["to"])) : h("", !0),
1093
+ e.$slots.source ? (s(), i("div", {
1094
+ key: 6,
1095
+ ref_key: "source",
1096
+ ref: Fe,
1097
+ dir: "auto"
1098
+ }, [
1099
+ b(e.$slots, "source", {}, void 0, !0)
1100
+ ], 512)) : h("", !0),
1101
+ _.value !== t.value.initialRotation ? (s(), i("div", ba, [
1102
+ b(e.$slots, "reset-action", { reset: nt }, () => [
1103
+ I("button", {
1104
+ "data-cy-reset": "",
1105
+ tabindex: "0",
1106
+ role: "button",
1107
+ class: "vue-data-ui-refresh-button",
1108
+ style: N({
1109
+ background: t.value.style.chart.backgroundColor
1110
+ }),
1111
+ onClick: nt
1112
+ }, [
1113
+ fe(v(Se), {
1114
+ name: "refresh",
1115
+ stroke: t.value.style.chart.color
1116
+ }, null, 8, ["stroke"])
1117
+ ], 4)
1118
+ ], !0)
1119
+ ])) : h("", !0),
1120
+ O.value && t.value.userOptions.buttons.table ? (s(), G(ho(ne.value.component), ht({ key: 8 }, ne.value.props, {
1121
+ ref_key: "tableUnit",
1122
+ ref: te,
1123
+ onClose: st
1124
+ }), Ie({
1125
+ content: p(() => [
1126
+ (s(), G(v(_t), {
1127
+ key: `table_${pe.value}`,
1128
+ colNames: he.value.colNames,
1129
+ head: he.value.head,
1130
+ body: he.value.body,
1131
+ config: he.value.config,
1132
+ title: t.value.table.useDialog ? "" : ne.value.title,
1133
+ withCloseButton: !t.value.table.useDialog,
1134
+ onClose: st
1135
+ }, {
1136
+ th: p(({ th: o }) => [
1137
+ ft(Z(o.name), 1)
1138
+ ]),
1139
+ td: p(({ td: o }) => [
1140
+ I("div", ga, Z(o.name ? o.name : et(o)), 1)
1141
+ ]),
1142
+ _: 1
1143
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1144
+ ]),
1145
+ _: 2
1146
+ }, [
1147
+ t.value.table.useDialog ? {
1148
+ name: "title",
1149
+ fn: p(() => [
1150
+ ft(Z(ne.value.title), 1)
1151
+ ]),
1152
+ key: "0"
1153
+ } : void 0,
1154
+ t.value.table.useDialog ? {
1155
+ name: "actions",
1156
+ fn: p(() => [
1157
+ I("button", {
1158
+ tabindex: "0",
1159
+ class: "vue-ui-user-options-button",
1160
+ onClick: a[1] || (a[1] = (o) => Me(t.value.userOptions.callbacks.csv))
1161
+ }, [
1162
+ fe(v(Se), {
1163
+ name: "excel",
1164
+ stroke: ne.value.props.color
1165
+ }, null, 8, ["stroke"])
1166
+ ])
1167
+ ]),
1168
+ key: "1"
1169
+ } : void 0
1170
+ ]), 1040)) : h("", !0),
1171
+ v(Ne) ? (s(), G(So, { key: 9 })) : h("", !0)
1172
+ ], 46, Uo));
1173
+ }
1174
+ }, ma = /* @__PURE__ */ jo(pa, [["__scopeId", "data-v-8b52dff2"]]), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1175
+ __proto__: null,
1176
+ default: ma
1177
+ }, Symbol.toStringTag, { value: "Module" }));
1178
+ export {
1179
+ Da as a,
1180
+ Fa as b,
1181
+ ma as v
1182
+ };