vue-data-ui 2.10.10 → 2.10.12-beta.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 (176) hide show
  1. package/README.md +7 -1
  2. package/dist/{Arrow-CjydbHaJ.cjs → Arrow-Cc7VWI72.cjs} +1 -1
  3. package/dist/{Arrow-CkVAj2ex.js → Arrow-DM3oKxpx.js} +1 -1
  4. package/dist/{BaseIcon-DvVvIgek.cjs → BaseIcon-CPELbcJd.cjs} +1 -1
  5. package/dist/{BaseIcon-CeAuvfV6.js → BaseIcon-Cxzy5vMD.js} +4 -3
  6. package/dist/{ColorPicker-Bc4l4E7Z.cjs → ColorPicker-6PJH4EYd.cjs} +1 -1
  7. package/dist/{ColorPicker-DcVKrz_V.js → ColorPicker-BB6VBARq.js} +3 -3
  8. package/dist/{DataTable-Dz3uePkM.js → DataTable-C0D_esqj.js} +55 -53
  9. package/dist/DataTable-DhENH-yp.cjs +1 -0
  10. package/dist/{Legend-DRjI7VTS.js → Legend-0b4003Zt.js} +2 -2
  11. package/dist/{Legend-BVXdf95S.cjs → Legend-QzF5KY2J.cjs} +1 -1
  12. package/dist/{PackageVersion-BNm7stW7.js → PackageVersion-C-ytTlJe.js} +3 -3
  13. package/dist/PackageVersion-C4g94Tsx.cjs +1 -0
  14. package/dist/{PenAndPaper-dU138eET.cjs → PenAndPaper-CHjiY-tS.cjs} +1 -1
  15. package/dist/{PenAndPaper-Ba1SBNDw.js → PenAndPaper-__UJ-k8q.js} +3 -3
  16. package/dist/{Shape-DqWzVzjZ.js → Shape-C0Zlk88G.js} +1 -1
  17. package/dist/{Shape-CwHZ-sW6.cjs → Shape-DT8Iisqv.cjs} +1 -1
  18. package/dist/{Slicer-9CXQSz7y.js → Slicer-CWCYtaVJ.js} +3 -3
  19. package/dist/{Slicer-DLFjRDKI.cjs → Slicer-DwATmGwL.cjs} +1 -1
  20. package/dist/{Title-CcJuov8a.cjs → Title-BgrPj3Ra.cjs} +1 -1
  21. package/dist/{Title-CiymPFBZ.js → Title-C9AEelQ1.js} +1 -1
  22. package/dist/{Tooltip-BXojuEca.js → Tooltip-5snNLRyR.js} +1 -1
  23. package/dist/{Tooltip-DolT-Egr.cjs → Tooltip-Bc608PZp.cjs} +1 -1
  24. package/dist/documentation/installation.md +1 -0
  25. package/dist/{dom-to-png-BbzDwc8c.js → dom-to-png-2k-zSMSO.js} +1 -1
  26. package/dist/{dom-to-png-BACUnvWN.cjs → dom-to-png-D3dfvprm.cjs} +1 -1
  27. package/dist/{img-O1YZMZE1.js → img-Bh2yECQj.js} +1 -1
  28. package/dist/{img-BCxvOZEr.cjs → img-_T4QDD3Z.cjs} +1 -1
  29. package/dist/index-D6Vsy8lL.cjs +9 -0
  30. package/dist/{index-DvXHhwi7.js → index-lwwgkcGL.js} +7013 -6929
  31. package/dist/{pdf-CG4EnFNu.js → pdf-Ccv6h6_6.js} +1 -1
  32. package/dist/{pdf-Bq_WJR-q.cjs → pdf-CutCfuk-.cjs} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +92 -5
  35. package/dist/types/vue-data-ui.d.ts +92 -5
  36. package/dist/{useNestedProp-dCmM2zfv.cjs → useNestedProp-BtWmF1jm.cjs} +1 -1
  37. package/dist/{useNestedProp-Bw2_FZ80.js → useNestedProp-TXT2IHSL.js} +1 -1
  38. package/dist/{usePrinter-Cr-rXufG.cjs → usePrinter-AHpiDJH-.cjs} +1 -1
  39. package/dist/{usePrinter-D0Njbrwg.js → usePrinter-BCTMiyK9.js} +3 -3
  40. package/dist/{useResponsive-DQmBAoBf.cjs → useResponsive-BBkmXXaa.cjs} +1 -1
  41. package/dist/{useResponsive-Cw4oZ8sQ.js → useResponsive-JZ9xq-JV.js} +4 -1
  42. package/dist/vue-data-ui-CX2ucaPo.cjs +9 -0
  43. package/dist/{vue-data-ui-ukeuQLYG.js → vue-data-ui-CfrRJcx_.js} +115 -107
  44. package/dist/vue-data-ui.cjs +1 -1
  45. package/dist/vue-data-ui.js +60 -59
  46. package/dist/{vue-ui-3d-bar-CaoKpu9l.js → vue-ui-3d-bar-Bw5eaxc9.js} +9 -9
  47. package/dist/{vue-ui-3d-bar-C3-VA6Iq.cjs → vue-ui-3d-bar-SITXGX1M.cjs} +1 -1
  48. package/dist/{vue-ui-accordion-rd6DBLB5.js → vue-ui-accordion-CJnR6fHi.js} +3 -3
  49. package/dist/{vue-ui-accordion-BvbhG2QO.cjs → vue-ui-accordion-xPf1pXPZ.cjs} +1 -1
  50. package/dist/{vue-ui-age-pyramid-Cjr5nyxr.js → vue-ui-age-pyramid-D0gBQw8X.js} +11 -11
  51. package/dist/{vue-ui-age-pyramid-Cle-IO4l.cjs → vue-ui-age-pyramid-DD7razIH.cjs} +1 -1
  52. package/dist/{vue-ui-annotator-DxegikPh.js → vue-ui-annotator-DlcWoI3N.js} +2 -2
  53. package/dist/{vue-ui-annotator-Rvcr7Sf7.cjs → vue-ui-annotator-fCtNR00Z.cjs} +1 -1
  54. package/dist/{vue-ui-bullet-CmuRRP70.js → vue-ui-bullet-C6FMBrAT.js} +8 -8
  55. package/dist/{vue-ui-bullet-BLYaTFAz.cjs → vue-ui-bullet-CJ0zuIH3.cjs} +1 -1
  56. package/dist/{vue-ui-candlestick-DmA7Uqy4.js → vue-ui-candlestick-85YmMYyP.js} +12 -12
  57. package/dist/{vue-ui-candlestick-BieBlp2c.cjs → vue-ui-candlestick-BVkM9KBy.cjs} +1 -1
  58. package/dist/{vue-ui-carousel-table-9SZvnl9Q.cjs → vue-ui-carousel-table-CY9-s7Gp.cjs} +1 -1
  59. package/dist/{vue-ui-carousel-table-CP0CJfcG.js → vue-ui-carousel-table-DbY5LTHJ.js} +4 -4
  60. package/dist/{vue-ui-chestnut-rna7-x5E.js → vue-ui-chestnut-B87se5P9.js} +8 -8
  61. package/dist/{vue-ui-chestnut-CPF5eohd.cjs → vue-ui-chestnut-DuUQ_4V9.cjs} +1 -1
  62. package/dist/vue-ui-chord-Cs5PAaYt.cjs +16 -0
  63. package/dist/vue-ui-chord-mQl3OTYa.js +924 -0
  64. package/dist/{vue-ui-circle-pack-COHe6gAY.js → vue-ui-circle-pack-Cd20ryi8.js} +10 -10
  65. package/dist/{vue-ui-circle-pack-CwtKnUdV.cjs → vue-ui-circle-pack-DPD_uT2D.cjs} +1 -1
  66. package/dist/{vue-ui-cursor-Bnz6m5UN.js → vue-ui-cursor-3XMz_kBQ.js} +2 -2
  67. package/dist/{vue-ui-cursor-B0CTU0OJ.cjs → vue-ui-cursor-DEjvP2po.cjs} +1 -1
  68. package/dist/{vue-ui-dashboard-DZUi9h4u.cjs → vue-ui-dashboard-CpFZiasA.cjs} +1 -1
  69. package/dist/{vue-ui-dashboard-DumW8xZp.js → vue-ui-dashboard-koc4m8YD.js} +62 -62
  70. package/dist/{vue-ui-digits-C9Lc2vf6.cjs → vue-ui-digits-Xf7nHAu_.cjs} +1 -1
  71. package/dist/{vue-ui-digits-AvU7LQwA.js → vue-ui-digits-a85ERBus.js} +2 -2
  72. package/dist/{vue-ui-donut-CFadUVCm.cjs → vue-ui-donut-Cbc429Lz.cjs} +1 -1
  73. package/dist/{vue-ui-donut-CF8KPH2H.js → vue-ui-donut-Dgq-t23H.js} +13 -13
  74. package/dist/{vue-ui-donut-evolution-CF3yvm9u.cjs → vue-ui-donut-evolution-BN23CyWC.cjs} +1 -1
  75. package/dist/{vue-ui-donut-evolution-D_eA5afL.js → vue-ui-donut-evolution-BplxUn27.js} +11 -11
  76. package/dist/{vue-ui-dumbbell-CwvokBZU.js → vue-ui-dumbbell-2ipG57aA.js} +11 -11
  77. package/dist/{vue-ui-dumbbell-CWZNqHum.cjs → vue-ui-dumbbell-CQcVm8Cp.cjs} +1 -1
  78. package/dist/vue-ui-flow-CwH1q46r.cjs +3 -0
  79. package/dist/{vue-ui-flow-DH4I9526.js → vue-ui-flow-DFlHSj8M.js} +208 -219
  80. package/dist/{vue-ui-funnel-BYQyM9Qy.js → vue-ui-funnel-Bk0Fg5Fd.js} +10 -10
  81. package/dist/{vue-ui-funnel-Cj0ZTNhc.cjs → vue-ui-funnel-Dy6OxxYr.cjs} +1 -1
  82. package/dist/{vue-ui-galaxy-CKXBzmN1.js → vue-ui-galaxy-CEnVeZAi.js} +11 -11
  83. package/dist/{vue-ui-galaxy-BviAjFrA.cjs → vue-ui-galaxy-PhEQ-ses.cjs} +1 -1
  84. package/dist/{vue-ui-gauge-DG6gMQYv.js → vue-ui-gauge-C7b6k24U.js} +8 -8
  85. package/dist/{vue-ui-gauge-Cy31bXmf.cjs → vue-ui-gauge-Cebe-UaX.cjs} +1 -1
  86. package/dist/{vue-ui-gizmo-17lmQTkY.cjs → vue-ui-gizmo-Bz2sqw_e.cjs} +1 -1
  87. package/dist/{vue-ui-gizmo-DFndi5tZ.js → vue-ui-gizmo-eJFYYvWM.js} +3 -3
  88. package/dist/{vue-ui-heatmap-D0qsMawE.js → vue-ui-heatmap-BLoaEofW.js} +10 -10
  89. package/dist/{vue-ui-heatmap-BqjWfqcB.cjs → vue-ui-heatmap-CjXVuG6t.cjs} +1 -1
  90. package/dist/{vue-ui-history-plot-Dgfl_nqu.cjs → vue-ui-history-plot-DzIjEASo.cjs} +1 -1
  91. package/dist/{vue-ui-history-plot-Cekgkdnm.js → vue-ui-history-plot-QjiUbA7Y.js} +12 -12
  92. package/dist/{vue-ui-kpi-D_1edGUC.cjs → vue-ui-kpi-BFtRYfbe.cjs} +1 -1
  93. package/dist/{vue-ui-kpi-DVJmaGJs.js → vue-ui-kpi-D4pZ3CJ2.js} +3 -3
  94. package/dist/{vue-ui-mini-loader-DeZTsVLO.js → vue-ui-mini-loader-D2QcTAa8.js} +2 -2
  95. package/dist/{vue-ui-mini-loader-Ba-YuHH3.cjs → vue-ui-mini-loader-DrflipQf.cjs} +1 -1
  96. package/dist/{vue-ui-molecule-Bl3QO6ap.js → vue-ui-molecule-BYVCvz1r.js} +11 -11
  97. package/dist/{vue-ui-molecule-OfRmGbBu.cjs → vue-ui-molecule-DJUWNXPe.cjs} +1 -1
  98. package/dist/{vue-ui-mood-radar-DMAnLGTo.js → vue-ui-mood-radar-B9zgFFlO.js} +11 -11
  99. package/dist/{vue-ui-mood-radar-C5m5P61q.cjs → vue-ui-mood-radar-Cj0AoE9r.cjs} +1 -1
  100. package/dist/{vue-ui-nested-donuts-DfECvthA.cjs → vue-ui-nested-donuts-Ca-C56Sp.cjs} +1 -1
  101. package/dist/{vue-ui-nested-donuts-pcIPwSEN.js → vue-ui-nested-donuts-n6rFlsNU.js} +12 -12
  102. package/dist/{vue-ui-onion-BJQrXERJ.js → vue-ui-onion-B9fUzbb6.js} +12 -12
  103. package/dist/{vue-ui-onion-BERoTmw5.cjs → vue-ui-onion-BA_RYM1D.cjs} +1 -1
  104. package/dist/{vue-ui-parallel-coordinate-plot-CcxszfT5.cjs → vue-ui-parallel-coordinate-plot-KOV1W4KH.cjs} +1 -1
  105. package/dist/{vue-ui-parallel-coordinate-plot-V5yjq2qt.js → vue-ui-parallel-coordinate-plot-QokZ1gwW.js} +13 -13
  106. package/dist/{vue-ui-quadrant-DmBXoM1K.js → vue-ui-quadrant-DwdrLzcC.js} +13 -13
  107. package/dist/{vue-ui-quadrant-BjTSploz.cjs → vue-ui-quadrant-kdXTrqPf.cjs} +1 -1
  108. package/dist/{vue-ui-quick-chart-Vg51F_fv.cjs → vue-ui-quick-chart-CPeGSnBN.cjs} +1 -1
  109. package/dist/{vue-ui-quick-chart-8JQHu8_6.js → vue-ui-quick-chart-Dad-wlg0.js} +10 -10
  110. package/dist/{vue-ui-radar-B59hKBs9.js → vue-ui-radar-B1OXJn1d.js} +13 -13
  111. package/dist/{vue-ui-radar-DM6Sp8pR.cjs → vue-ui-radar-ClWdu2fy.cjs} +1 -1
  112. package/dist/{vue-ui-rating-BOpo_dKd.js → vue-ui-rating-_WB5qAQ6.js} +2 -2
  113. package/dist/{vue-ui-rating-DoWnn_wH.cjs → vue-ui-rating-i0mHMe0E.cjs} +1 -1
  114. package/dist/{vue-ui-relation-circle-Dw3E2cQS.cjs → vue-ui-relation-circle-C631GMOX.cjs} +1 -1
  115. package/dist/{vue-ui-relation-circle-BNSUjYth.js → vue-ui-relation-circle-CW73Nbxq.js} +8 -8
  116. package/dist/{vue-ui-ridgeline-CfgyyLHT.cjs → vue-ui-ridgeline-DJO42BY7.cjs} +1 -1
  117. package/dist/{vue-ui-ridgeline-DNLWxIOo.js → vue-ui-ridgeline-DW_YX94e.js} +13 -13
  118. package/dist/{vue-ui-rings-Dz1eSPrm.js → vue-ui-rings-B8rqh0-_.js} +13 -13
  119. package/dist/{vue-ui-rings-waaeEddc.cjs → vue-ui-rings-BgWpuick.cjs} +1 -1
  120. package/dist/{vue-ui-scatter-CBfydDzi.js → vue-ui-scatter-01DXyF2q.js} +13 -13
  121. package/dist/{vue-ui-scatter-D66nsMM5.cjs → vue-ui-scatter-Bu2QFsk4.cjs} +1 -1
  122. package/dist/vue-ui-skeleton-2QZvx0f3.cjs +41 -0
  123. package/dist/{vue-ui-skeleton-CJ9j8gHc.js → vue-ui-skeleton-BufuSja5.js} +503 -467
  124. package/dist/{vue-ui-smiley-B62ZaIXL.js → vue-ui-smiley-DfLMSjyl.js} +2 -2
  125. package/dist/{vue-ui-smiley-CKgBpYEI.cjs → vue-ui-smiley-crIxjQdS.cjs} +1 -1
  126. package/dist/{vue-ui-spark-trend-CcHJtofv.cjs → vue-ui-spark-trend-HBiBZbwX.cjs} +1 -1
  127. package/dist/{vue-ui-spark-trend-DS6c__u7.js → vue-ui-spark-trend-d0lcXznw.js} +5 -5
  128. package/dist/{vue-ui-sparkbar-oQceGXzy.js → vue-ui-sparkbar-CSJkcisH.js} +4 -4
  129. package/dist/{vue-ui-sparkbar-ZAyG8tz6.cjs → vue-ui-sparkbar-gr-jpXO8.cjs} +1 -1
  130. package/dist/{vue-ui-sparkgauge-Nqea8uqi.js → vue-ui-sparkgauge-CV7lhSGE.js} +4 -4
  131. package/dist/{vue-ui-sparkgauge-DK08SKBD.cjs → vue-ui-sparkgauge-CzeccsGw.cjs} +1 -1
  132. package/dist/{vue-ui-sparkhistogram-D53Fp0iI.js → vue-ui-sparkhistogram-ClDu95-3.js} +5 -5
  133. package/dist/{vue-ui-sparkhistogram-CRXHUkEG.cjs → vue-ui-sparkhistogram-O_r9cvon.cjs} +1 -1
  134. package/dist/{vue-ui-sparkline-CcN5BzJC.cjs → vue-ui-sparkline-B6ho6TD2.cjs} +1 -1
  135. package/dist/{vue-ui-sparkline-BGytINYe.js → vue-ui-sparkline-DT7wW1fR.js} +5 -5
  136. package/dist/{vue-ui-sparkstackbar-BzN70G0w.cjs → vue-ui-sparkstackbar-C9QU7IZI.cjs} +1 -1
  137. package/dist/{vue-ui-sparkstackbar-j7zxJEwR.js → vue-ui-sparkstackbar-YVKlhkKi.js} +5 -5
  138. package/dist/{vue-ui-stackbar-DG1zFQ6I.js → vue-ui-stackbar-CRjmJOju.js} +14 -14
  139. package/dist/{vue-ui-stackbar-_Rbe0zcH.cjs → vue-ui-stackbar-SSP_x5Ku.cjs} +1 -1
  140. package/dist/{vue-ui-strip-plot-BXBF0O7V.js → vue-ui-strip-plot-BiYJlrH3.js} +12 -12
  141. package/dist/{vue-ui-strip-plot-DfLu7xBj.cjs → vue-ui-strip-plot-Bko-Rape.cjs} +1 -1
  142. package/dist/{vue-ui-table-jufn4CSz.cjs → vue-ui-table-C__UHZB8.cjs} +1 -1
  143. package/dist/{vue-ui-table-CQkGKA38.js → vue-ui-table-DHaMznpt.js} +3 -3
  144. package/dist/{vue-ui-table-heatmap-D6q9ISlX.cjs → vue-ui-table-heatmap-C1HUdO8f.cjs} +1 -1
  145. package/dist/{vue-ui-table-heatmap-Be3sBs1v.js → vue-ui-table-heatmap-Ci2H0bXz.js} +4 -4
  146. package/dist/{vue-ui-table-sparkline-BGA_BtKK.js → vue-ui-table-sparkline-BFgLj1Ik.js} +5 -5
  147. package/dist/{vue-ui-table-sparkline-DXn5vFtK.cjs → vue-ui-table-sparkline-D-zsMLQt.cjs} +1 -1
  148. package/dist/{vue-ui-thermometer-C2QTnZLg.cjs → vue-ui-thermometer-BXF4zDfZ.cjs} +1 -1
  149. package/dist/{vue-ui-thermometer-D0ajQG3p.js → vue-ui-thermometer-pUxYKQhF.js} +7 -7
  150. package/dist/{vue-ui-timer-BUgMA6gQ.cjs → vue-ui-timer-CMw9W2ql.cjs} +1 -1
  151. package/dist/{vue-ui-timer-D8pO4CRs.js → vue-ui-timer-DfQM6a6k.js} +6 -6
  152. package/dist/{vue-ui-tiremarks-Cz1hC6e6.cjs → vue-ui-tiremarks-CWgfo0wD.cjs} +1 -1
  153. package/dist/{vue-ui-tiremarks-BBeVDMLy.js → vue-ui-tiremarks-DdNVrSbT.js} +7 -7
  154. package/dist/{vue-ui-treemap-DUoEwGF0.js → vue-ui-treemap-BDpXhqzI.js} +13 -13
  155. package/dist/{vue-ui-treemap-BNuJbnXL.cjs → vue-ui-treemap-Dw6ymGLS.cjs} +1 -1
  156. package/dist/{vue-ui-vertical-bar-j-ZfufVH.js → vue-ui-vertical-bar-ByJLpT85.js} +13 -13
  157. package/dist/{vue-ui-vertical-bar-ASDnRvkD.cjs → vue-ui-vertical-bar-jaQJuWqm.cjs} +1 -1
  158. package/dist/{vue-ui-waffle-CHV-QmJq.cjs → vue-ui-waffle-CFgSCKkV.cjs} +1 -1
  159. package/dist/{vue-ui-waffle-Dev3qUVT.js → vue-ui-waffle-Dp3DOosi.js} +13 -13
  160. package/dist/{vue-ui-wheel-JMze39OW.js → vue-ui-wheel-DBz7onD-.js} +8 -8
  161. package/dist/{vue-ui-wheel-Drcpu-bo.cjs → vue-ui-wheel-soTpsEi4.cjs} +1 -1
  162. package/dist/{vue-ui-word-cloud-Bywulitd.js → vue-ui-word-cloud-CG84NZet.js} +11 -11
  163. package/dist/{vue-ui-word-cloud-B_8TgWf5.cjs → vue-ui-word-cloud-D_ErqoV2.cjs} +1 -1
  164. package/dist/{vue-ui-world-BPpDQcP7.cjs → vue-ui-world-C4yMp_Gj.cjs} +1 -1
  165. package/dist/{vue-ui-world-BSDboMw1.js → vue-ui-world-Dc8U0Mmg.js} +11 -11
  166. package/dist/{vue-ui-xy-_RG7ZoSc.js → vue-ui-xy-CFm5IDQP.js} +16 -16
  167. package/dist/{vue-ui-xy-canvas-Cs3pXcFe.js → vue-ui-xy-canvas-BVeP6Xmm.js} +13 -13
  168. package/dist/{vue-ui-xy-canvas-BHznnIA0.cjs → vue-ui-xy-canvas-CXQ_ZMp1.cjs} +1 -1
  169. package/dist/{vue-ui-xy-Do294mp4.cjs → vue-ui-xy-nXoPTCxs.cjs} +2 -2
  170. package/package.json +1 -1
  171. package/dist/DataTable-CJVWuZQ7.cjs +0 -1
  172. package/dist/PackageVersion-NIHFWeLx.cjs +0 -1
  173. package/dist/index-CFHk7XOI.cjs +0 -9
  174. package/dist/vue-data-ui-BXsbflWH.cjs +0 -9
  175. package/dist/vue-ui-flow-D8XUyGoY.cjs +0 -3
  176. package/dist/vue-ui-skeleton-DcQQl9nv.cjs +0 -41
@@ -0,0 +1,924 @@
1
+ import { useCssVars as pt, ref as d, computed as x, watch as mt, onMounted as Ge, onBeforeUnmount as Ve, createElementBlock as i, openBlock as n, unref as k, normalizeStyle as N, normalizeClass as X, createBlock as j, createCommentVNode as v, renderSlot as $, createElementVNode as O, createSlots as We, withCtx as P, normalizeProps as oe, guardReactiveProps as le, withModifiers as qe, createVNode as de, Fragment as z, renderList as U, mergeProps as yt, toDisplayString as V, createTextVNode as kt, nextTick as $t } from "vue";
2
+ import { u as wt, c as ve, t as Ct, p as se, a as Mt, o as xt, e as He, g as _t, b as It, d as At, X as Pt, G as Tt, q as St, r as Bt, i as Ot, f as Lt } from "./index-lwwgkcGL.js";
3
+ import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
4
+ import { u as Qe } from "./useNestedProp-TXT2IHSL.js";
5
+ import { u as Nt } from "./useChartAccessibility-BWojgys7.js";
6
+ import { _ as zt } from "./Title-C9AEelQ1.js";
7
+ import { _ as Ft } from "./PackageVersion-C-ytTlJe.js";
8
+ import { _ as Xt } from "./PenAndPaper-__UJ-k8q.js";
9
+ import Rt from "./BaseIcon-Cxzy5vMD.js";
10
+ import { u as Dt, U as jt } from "./usePrinter-BCTMiyK9.js";
11
+ import { L as Ut } from "./Legend-0b4003Zt.js";
12
+ import { _ as Yt } from "./Shape-C0Zlk88G.js";
13
+ import { D as Gt } from "./DataTable-C0D_esqj.js";
14
+ import Vt from "./vue-ui-accordion-CJnR6fHi.js";
15
+ import Wt from "./vue-ui-skeleton-BufuSja5.js";
16
+ import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
17
+ import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill", "stroke", "stroke-width"], ca = ["d", "fill", "stroke", "stroke-width"], da = { key: 0 }, va = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ga = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ba = { key: 1 }, pa = ["font-size", "font-weight", "fill"], ma = ["href"], ya = ["transform", "text-anchor", "font-size", "font-weight", "fill"], ka = {
19
+ key: 5,
20
+ class: "vue-data-ui-watermark"
21
+ }, $a = ["onClick"], wa = {
22
+ key: 8,
23
+ "data-dom-to-png-ignore": "",
24
+ class: "reset-wrapper"
25
+ }, Ca = { style: { "text-align": "right", width: "100%" } }, Ma = {
26
+ __name: "vue-ui-chord",
27
+ props: {
28
+ dataset: {
29
+ type: Object,
30
+ default() {
31
+ return {};
32
+ }
33
+ },
34
+ config: {
35
+ type: Object,
36
+ default() {
37
+ return {};
38
+ }
39
+ }
40
+ },
41
+ emits: ["selectLegend", "selectGroup", "selectRibbon"],
42
+ setup(Ze, { expose: Je, emit: Ke }) {
43
+ pt((t) => ({
44
+ "7187d07a": t.slicerColor
45
+ }));
46
+ const { vue_ui_chord: et } = wt(), g = Ze, Z = Ke, L = d(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = d(ve()), w = d(null), p = d(null), f = d(null), he = d(0), Y = d(null), fe = d(null), ge = d(null), be = d(null), pe = d(null), me = d(0), ye = d(0), ke = d(0), G = d(!1), ne = d(null), a = x({
47
+ get: () => Ie(),
48
+ set: (t) => t
49
+ }), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: a.value }), { svgRef: W } = Nt({ config: a.value.style.chart.title }), { isPrinting: Ce, isImaging: Me, generatePdf: xe, generateImage: _e } = Dt({
50
+ elementId: `chord_${T.value}`,
51
+ fileName: a.value.style.chart.title.text || "vue-ui-chord",
52
+ options: a.value.userOptions.print
53
+ }), q = d({
54
+ showTable: a.value.table.show
55
+ });
56
+ function Ie() {
57
+ const t = Qe({
58
+ userConfig: g.config,
59
+ defaultConfig: et
60
+ });
61
+ return t.theme ? {
62
+ ...Qe({
63
+ userConfig: Mt.vue_ui_chord[t.theme] || g.config,
64
+ defaultConfig: t
65
+ }),
66
+ customPalette: Ct[t.theme] || se
67
+ } : t;
68
+ }
69
+ mt(() => g.config, (t) => {
70
+ a.value = Ie(), re.value = !a.value.userOptions.showOnChartHover, Ae(), me.value += 1, ye.value += 1, ke.value += 1, I.value = a.value.initialRotation, q.value.showTable = a.value.table.show;
71
+ }, { deep: !0 });
72
+ function Ae() {
73
+ if (xt(g.dataset) ? He({
74
+ componentName: "VueUiChord",
75
+ type: "dataset"
76
+ }) : _t({
77
+ datasetObject: g.dataset,
78
+ requiredAttributes: ["matrix"]
79
+ }).forEach((t) => {
80
+ L.value = !1, He({
81
+ componentName: "VueUiChord",
82
+ type: "datasetAttribute",
83
+ property: t
84
+ });
85
+ }), L.value && Pe(), a.value.responsive) {
86
+ const t = Y.value.parentNode, o = qt(() => {
87
+ const { width: l, height: u, heightNoTitle: s, heightSource: r, heightTitle: h, heightLegend: C } = Ht({
88
+ chart: Y.value,
89
+ title: a.value.style.chart.title.text ? fe.value : null,
90
+ legend: a.value.style.chart.legend.show ? ge.value : null,
91
+ source: be.value,
92
+ noTitle: pe.value
93
+ }), M = h + C + r + s;
94
+ l < u ? Y.value.style.width = "100%" : (Y.value.style.height = "100%", W.value.style.height = `calc(100% - ${M}px)`);
95
+ }, 100), e = new ResizeObserver(o);
96
+ e.observe(t), ne.value = e, o();
97
+ }
98
+ Te.value = setTimeout(() => {
99
+ G.value = !0;
100
+ }, 500);
101
+ }
102
+ function Pe() {
103
+ g.dataset.matrix.length < 2 && (console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
104
+
105
+ matrix:[
106
+ [1, 1],
107
+ [1, 1]
108
+ ]`), L.value = !1), g.dataset.matrix.forEach((t, o) => {
109
+ t.length !== g.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${g.dataset.matrix.length}
110
+
111
+ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${g.dataset.matrix.length})`), L.value = !1);
112
+ });
113
+ }
114
+ const Te = d(null);
115
+ Ge(() => {
116
+ Ae();
117
+ });
118
+ const S = d({
119
+ height: 600,
120
+ width: 600
121
+ }), tt = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), at = x(() => It(a.value.customPalette)), b = x(() => ({
122
+ inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
123
+ outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
124
+ })), ot = x(() => a.value.style.chart.arcs.padAngle / 100), m = x(() => L.value ? {
125
+ matrix: g.dataset.matrix ?? [[0]],
126
+ labels: g.dataset.labels ?? [""],
127
+ colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => At(t)) : g.dataset.matrix.map((t, o) => at.value[o] || se[o] || se[o % se.length])
128
+ } : {
129
+ matrix: [],
130
+ labels: [],
131
+ colors: []
132
+ });
133
+ function lt(t, o) {
134
+ const e = t.length, l = b.value.inner, u = new Array(e).fill(0);
135
+ let s = 0;
136
+ for (let c = 0; c < e; c += 1)
137
+ for (let y = 0; y < e; y += 1)
138
+ u[c] += t[c][y], s += t[c][y];
139
+ const r = (2 * Math.PI - o * e) / s, h = [];
140
+ let C = 0;
141
+ for (let c = 0; c < e; c += 1) {
142
+ const y = C, A = y + u[c] * r;
143
+ h.push({
144
+ index: c,
145
+ pattern: `pattern_${T.value}_${c}`,
146
+ startAngle: y,
147
+ endAngle: A,
148
+ name: m.value.labels[c],
149
+ id: ve(),
150
+ color: m.value.colors[c]
151
+ }), C = A + o;
152
+ }
153
+ const M = [];
154
+ for (let c = 0; c < e; c += 1) {
155
+ const y = t[c].map((B, F) => ({ j: F, v: B }));
156
+ y.sort((B, F) => F.v - B.v);
157
+ let A = h[c].startAngle;
158
+ for (const { j: B, v: F } of y) {
159
+ const D = A, Q = D + F * r;
160
+ M.push({
161
+ index: c,
162
+ subIndex: B,
163
+ pattern: `pattern_${T.value}_${c}`,
164
+ startAngle: D,
165
+ endAngle: Q,
166
+ value: F,
167
+ groupName: m.value.labels[c],
168
+ groupId: h[c].id,
169
+ groupColor: m.value.colors[c],
170
+ midAngle: (D + Q) / 2,
171
+ midBaseX: Math.cos((D + Q) / 2 - Math.PI / 2) * l,
172
+ midBaseY: Math.sin((D + Q) / 2 - Math.PI / 2) * l
173
+ }), A = Q;
174
+ }
175
+ }
176
+ const E = [];
177
+ for (const c of M) {
178
+ const y = M.find(
179
+ (A) => A.index === c.subIndex && A.subIndex === c.index
180
+ );
181
+ E.push({ source: c, target: y, id: ve() });
182
+ }
183
+ return { groups: h, chords: E };
184
+ }
185
+ const _ = x(() => {
186
+ const t = lt(m.value.matrix, ot.value);
187
+ return Pe(), t.chords.sort(
188
+ (o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
189
+ ), t;
190
+ }), st = x(() => {
191
+ const t = b.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
192
+ if (p.value) {
193
+ const s = p.value;
194
+ if (s.source.value) {
195
+ const r = String(s.source.value);
196
+ l.push({
197
+ id: s.id + "-src",
198
+ theta: s.source.midAngle,
199
+ w: r.length * e / t,
200
+ midBaseX: s.source.midBaseX,
201
+ midBaseY: s.source.midBaseY,
202
+ groupColor: s.source.groupColor,
203
+ value: s.source.value
204
+ });
205
+ }
206
+ if (s.target && s.target.value && s.target.value !== s.source.value) {
207
+ const r = String(s.target.value);
208
+ l.push({
209
+ id: s.id + "-tgt",
210
+ theta: s.target.midAngle,
211
+ w: r.length * e / t,
212
+ midBaseX: s.target.midBaseX,
213
+ midBaseY: s.target.midBaseY,
214
+ groupColor: s.target.groupColor,
215
+ value: s.target.value
216
+ });
217
+ }
218
+ return l;
219
+ }
220
+ function u(s) {
221
+ _.value.chords.filter((r) => r.source.groupId === s && r.source.value).forEach((r) => {
222
+ {
223
+ const h = String(r.source.value);
224
+ l.push({
225
+ id: r.id + "-src",
226
+ theta: r.source.midAngle,
227
+ w: h.length * e / t,
228
+ midBaseX: r.source.midBaseX,
229
+ midBaseY: r.source.midBaseY,
230
+ groupColor: r.source.groupColor,
231
+ value: r.source.value
232
+ });
233
+ }
234
+ if (r.target && r.target.value && r.target.value !== r.source.value) {
235
+ const h = String(r.target.value);
236
+ l.push({
237
+ id: r.id + "-tgt",
238
+ theta: r.target.midAngle,
239
+ w: h.length * e / t,
240
+ midBaseX: r.target.midBaseX,
241
+ midBaseY: r.target.midBaseY,
242
+ groupColor: r.target.groupColor,
243
+ value: r.target.value
244
+ });
245
+ }
246
+ });
247
+ }
248
+ return f.value && u(f.value), w.value && u(w.value.id), l;
249
+ }), nt = x(() => {
250
+ const t = st.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
251
+ let e = !0, l = 0;
252
+ for (; e && l++ < 10; ) {
253
+ e = !1;
254
+ for (let h = 1; h < t.length; h += 1) {
255
+ const C = t[h - 1], M = t[h], E = C.theta + C.w + o;
256
+ M.theta < E && (M.theta = E, e = !0);
257
+ }
258
+ const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
259
+ u.theta < r && (u.theta = r, e = !0);
260
+ }
261
+ return t;
262
+ });
263
+ function Se(t, o, e, l) {
264
+ const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, E = Math.cos(s) * l, c = Math.sin(s) * l, y = Math.cos(u) * l, A = Math.sin(u) * l, B = o - t > Math.PI ? 1 : 0;
265
+ return `M${r},${h} A${e},${e} 0 ${B} 1 ${C},${M} L${E},${c} A${l},${l} 0 ${B} 0 ${y},${A} Z`;
266
+ }
267
+ function J(t, o) {
268
+ const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, E = Math.sin(u) * e, c = Math.cos(s) * e, y = Math.sin(s) * e, A = Math.cos(r) * e, B = Math.sin(r) * e, F = t.endAngle - t.startAngle > Math.PI ? 1 : 0, D = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
269
+ return `M${h},${C}A${e},${e} 0 ${F} 1 ${M},${E}Q0,0 ${c},${y}A${e},${e} 0 ${D} 1 ${A},${B}Q0,0 ${h},${C}Z`;
270
+ }
271
+ const Be = x(() => I.value * Math.PI / 180);
272
+ function rt(t) {
273
+ return (t.startAngle + t.endAngle) / 2;
274
+ }
275
+ function ut(t) {
276
+ return ((rt(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
277
+ }
278
+ function it(t) {
279
+ let o = t + Be.value;
280
+ return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
281
+ }
282
+ function ct(t) {
283
+ const o = t - Math.PI / 2, e = Math.cos(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24);
284
+ return `translate(${e},${l})`;
285
+ }
286
+ function dt(t, o, e) {
287
+ const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, h = Math.cos(u) * e, C = Math.sin(u) * e, M = o - t > Math.PI ? 1 : 0;
288
+ return `M${s},${r} A${e},${e} 0 ${M} 1 ${h},${C}`;
289
+ }
290
+ const I = d(a.value.initialRotation), ue = d(!1);
291
+ let Oe = 0, Le = 0;
292
+ function Ee(t) {
293
+ const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, u = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
294
+ return Math.atan2(s - l, u - e);
295
+ }
296
+ function Ne(t) {
297
+ !a.value.enableRotation || H.value || (t.preventDefault(), ue.value = !0, Oe = I.value, Le = Ee(t));
298
+ }
299
+ function K(t) {
300
+ if (!ue.value) return;
301
+ const o = Ee(t);
302
+ I.value = Oe + (o - Le) * 180 / Math.PI;
303
+ }
304
+ function ee() {
305
+ ue.value = !1;
306
+ }
307
+ function ze(t) {
308
+ return Ot(
309
+ a.value.style.chart.ribbons.labels.formatter,
310
+ t,
311
+ Lt({
312
+ p: a.value.style.chart.ribbons.labels.prefix,
313
+ v: t,
314
+ s: a.value.style.chart.ribbons.labels.suffix,
315
+ r: a.value.style.chart.ribbons.labels.rounding
316
+ })
317
+ );
318
+ }
319
+ Ge(() => {
320
+ window.addEventListener("mousemove", K), window.addEventListener("mouseup", ee), window.addEventListener("touchmove", K, { passive: !1 }), window.addEventListener("touchend", ee);
321
+ }), Ve(() => {
322
+ window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", ee), window.removeEventListener("touchmove", K), window.removeEventListener("touchend", ee), clearTimeout(Te.value), ne.value && ne.value.disconnect();
323
+ });
324
+ const ie = d(!1);
325
+ function vt(t) {
326
+ ie.value = t, he.value += 1;
327
+ }
328
+ function ht(t) {
329
+ f.value || (w.value = t);
330
+ }
331
+ function ft(t) {
332
+ f.value || (p.value = t);
333
+ }
334
+ function Fe(t) {
335
+ var l;
336
+ return !f.value && !w.value && !p.value ? 0.8 : (f.value ? f.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = p.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
337
+ }
338
+ function Xe(t) {
339
+ var l, u;
340
+ return !f.value && !w.value && !p.value || (f.value ? f.value === t.id : w.value ? w.value.id === t.id : [(l = p.value) == null ? void 0 : l.source.groupId, (u = p.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
341
+ }
342
+ const H = d(!1);
343
+ function ce() {
344
+ H.value = !H.value;
345
+ }
346
+ function Re() {
347
+ q.value.showTable = !q.value.showTable;
348
+ }
349
+ function gt() {
350
+ return _.value;
351
+ }
352
+ const R = d(null);
353
+ function De() {
354
+ const t = a.value.initialRotation;
355
+ R.value !== null && cancelAnimationFrame(R.value);
356
+ const o = () => {
357
+ I.value += (t - I.value) * 0.05, Math.abs(I.value - t) < 0.1 ? (I.value = t, R.value = null) : R.value = requestAnimationFrame(o);
358
+ };
359
+ R.value = requestAnimationFrame(o);
360
+ }
361
+ Ve(() => {
362
+ R.value !== null && cancelAnimationFrame(R.value);
363
+ });
364
+ function je(t) {
365
+ t === f.value ? (f.value = null, Z("selectLegend", null)) : (f.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
366
+ }
367
+ const Ue = x(() => _.value.groups.map((t, o) => ({
368
+ name: t.name,
369
+ color: t.color,
370
+ shape: "circle",
371
+ patternIndex: o,
372
+ pattern: `pattern_${T.value}_${o}`,
373
+ id: t.id,
374
+ select: () => je(t.id),
375
+ opacity: f.value ? f.value === t.id ? 1 : 0.3 : 1
376
+ }))), bt = x(() => ({
377
+ cy: "chord-div-legend",
378
+ backgroundColor: a.value.style.chart.legend.backgroundColor,
379
+ color: a.value.style.chart.legend.color,
380
+ fontSize: a.value.style.chart.legend.fontSize,
381
+ paddingBottom: 12,
382
+ fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
383
+ })), te = x(() => {
384
+ const t = _.value.groups.map((e, l) => ({
385
+ name: e.name || l,
386
+ color: e.color
387
+ })), o = m.value.matrix;
388
+ return { head: t, body: o };
389
+ }), ae = x(() => {
390
+ const t = [{ name: "", color: null }, ...te.value.head], o = te.value.body.map((u, s) => [
391
+ te.value.head[s],
392
+ ...te.value.body[s]
393
+ ]), e = {
394
+ th: {
395
+ backgroundColor: a.value.table.th.backgroundColor,
396
+ color: a.value.table.th.color,
397
+ outline: a.value.table.th.outline
398
+ },
399
+ td: {
400
+ backgroundColor: a.value.table.td.backgroundColor,
401
+ color: a.value.table.td.color,
402
+ outline: a.value.table.td.outline
403
+ },
404
+ breakpoint: a.value.table.responsiveBreakpoint
405
+ };
406
+ return {
407
+ colNames: t,
408
+ head: t,
409
+ body: o,
410
+ config: e
411
+ };
412
+ });
413
+ function Ye() {
414
+ $t(() => {
415
+ const t = m.value.matrix.map((l, u) => [
416
+ [m.value.labels[u] || u],
417
+ l
418
+ ]), o = [
419
+ [a.value.style.chart.title.text],
420
+ [a.value.style.chart.title.subtitle.text],
421
+ [
422
+ [""],
423
+ ...m.value.labels.map((l, u) => [l || u])
424
+ ]
425
+ ].concat(t), e = St(o);
426
+ Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
427
+ });
428
+ }
429
+ return Je({
430
+ getData: gt,
431
+ generateCsv: Ye,
432
+ generateImage: _e,
433
+ generatePdf: xe,
434
+ toggleAnnotator: ce,
435
+ toggleTable: Re
436
+ }), (t, o) => (n(), i("div", {
437
+ ref_key: "chordChart",
438
+ ref: Y,
439
+ class: X({
440
+ "vue-ui-chord": !0,
441
+ "vue-data-ui-wrapper-fullscreen": ie.value,
442
+ "vue-data-ui-responsive": a.value.responsive
443
+ }),
444
+ style: N(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
445
+ id: `chord_${T.value}`,
446
+ onMouseenter: o[4] || (o[4] = () => k($e)(!0)),
447
+ onMouseleave: o[5] || (o[5] = () => k($e)(!1))
448
+ }, [
449
+ a.value.userOptions.buttons.annotator && k(W) ? (n(), j(Xt, {
450
+ key: 0,
451
+ color: a.value.style.chart.color,
452
+ backgroundColor: a.value.style.chart.backgroundColor,
453
+ active: H.value,
454
+ svgRef: k(W),
455
+ onClose: ce
456
+ }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
457
+ $(t.$slots, "userConfig", {}, void 0, !0),
458
+ tt.value ? (n(), i("div", {
459
+ key: 1,
460
+ ref_key: "noTitle",
461
+ ref: pe,
462
+ class: "vue-data-ui-no-title-space",
463
+ style: "height:36px; width: 100%;background:transparent"
464
+ }, null, 512)) : v("", !0),
465
+ a.value.style.chart.title.text ? (n(), i("div", {
466
+ key: 2,
467
+ ref_key: "chartTitle",
468
+ ref: fe,
469
+ style: "width:100%;background:transparent;padding-bottom:24px"
470
+ }, [
471
+ (n(), j(zt, {
472
+ key: `title_${me.value}`,
473
+ config: {
474
+ title: {
475
+ cy: "chord-div-title",
476
+ ...a.value.style.chart.title
477
+ },
478
+ subtitle: {
479
+ cy: "chord-div-subtitle",
480
+ ...a.value.style.chart.title.subtitle
481
+ }
482
+ }
483
+ }, null, 8, ["config"]))
484
+ ], 512)) : v("", !0),
485
+ a.value.userOptions.show && L.value && (k(we) || k(re)) ? (n(), j(jt, {
486
+ ref: "details",
487
+ key: `user_option_${he.value}`,
488
+ backgroundColor: a.value.style.chart.backgroundColor,
489
+ color: a.value.style.chart.color,
490
+ isPrinting: k(Ce),
491
+ isImaging: k(Me),
492
+ uid: T.value,
493
+ hasTooltip: !1,
494
+ hasPdf: a.value.userOptions.buttons.pdf,
495
+ hasImg: a.value.userOptions.buttons.img,
496
+ hasXls: a.value.userOptions.buttons.csv,
497
+ hasTable: a.value.userOptions.buttons.table,
498
+ hasLabel: !1,
499
+ hasFullscreen: a.value.userOptions.buttons.fullscreen,
500
+ isFullscreen: ie.value,
501
+ chartElement: Y.value,
502
+ position: a.value.userOptions.position,
503
+ titles: { ...a.value.userOptions.buttonTitles },
504
+ hasAnnotator: a.value.userOptions.buttons.annotator,
505
+ isAnnotation: H.value,
506
+ onToggleFullscreen: vt,
507
+ onGeneratePdf: k(xe),
508
+ onGenerateCsv: Ye,
509
+ onGenerateImage: k(_e),
510
+ onToggleTable: Re,
511
+ onToggleAnnotator: ce,
512
+ style: N({
513
+ visibility: k(we) ? k(re) ? "visible" : "hidden" : "visible"
514
+ })
515
+ }, We({ _: 2 }, [
516
+ t.$slots.menuIcon ? {
517
+ name: "menuIcon",
518
+ fn: P(({ isOpen: e, color: l }) => [
519
+ $(t.$slots, "menuIcon", oe(le({ isOpen: e, color: l })), void 0, !0)
520
+ ]),
521
+ key: "0"
522
+ } : void 0,
523
+ t.$slots.optionPdf ? {
524
+ name: "optionPdf",
525
+ fn: P(() => [
526
+ $(t.$slots, "optionPdf", {}, void 0, !0)
527
+ ]),
528
+ key: "1"
529
+ } : void 0,
530
+ t.$slots.optionCsv ? {
531
+ name: "optionCsv",
532
+ fn: P(() => [
533
+ $(t.$slots, "optionCsv", {}, void 0, !0)
534
+ ]),
535
+ key: "2"
536
+ } : void 0,
537
+ t.$slots.optionImg ? {
538
+ name: "optionImg",
539
+ fn: P(() => [
540
+ $(t.$slots, "optionImg", {}, void 0, !0)
541
+ ]),
542
+ key: "3"
543
+ } : void 0,
544
+ t.$slots.optionTable ? {
545
+ name: "optionTable",
546
+ fn: P(() => [
547
+ $(t.$slots, "optionTable", {}, void 0, !0)
548
+ ]),
549
+ key: "4"
550
+ } : void 0,
551
+ t.$slots.optionFullscreen ? {
552
+ name: "optionFullscreen",
553
+ fn: P(({ toggleFullscreen: e, isFullscreen: l }) => [
554
+ $(t.$slots, "optionFullscreen", oe(le({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
555
+ ]),
556
+ key: "5"
557
+ } : void 0,
558
+ t.$slots.optionAnnotator ? {
559
+ name: "optionAnnotator",
560
+ fn: P(({ toggleAnnotator: e, isAnnotator: l }) => [
561
+ $(t.$slots, "optionAnnotator", oe(le({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
562
+ ]),
563
+ key: "6"
564
+ } : void 0
565
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
566
+ L.value ? (n(), i("svg", {
567
+ key: 4,
568
+ xmlns: k(Pt),
569
+ ref_key: "svgRef",
570
+ ref: W,
571
+ viewBox: `0 0 ${S.value.width} ${S.value.height}`,
572
+ preserveAspectRatio: "xMidYMid meet",
573
+ style: {
574
+ overflow: "visible"
575
+ },
576
+ onMousedown: qe(Ne, ["prevent"]),
577
+ onTouchstart: qe(Ne, ["prevent"])
578
+ }, [
579
+ de(Ft),
580
+ t.$slots["chart-background"] ? (n(), i("foreignObject", {
581
+ key: 0,
582
+ x: 0,
583
+ y: 0,
584
+ width: S.value.width <= 0 ? 10 : S.value.width,
585
+ height: S.value.height <= 0 ? 10 : S.value.height,
586
+ style: {
587
+ pointerEvents: "none"
588
+ }
589
+ }, [
590
+ $(t.$slots, "chart-background", {}, void 0, !0)
591
+ ], 8, Kt)) : v("", !0),
592
+ a.value.style.chart.arcs.labels.curved ? (n(), i("defs", ea, [
593
+ (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("path", {
594
+ key: `labelPath-${l}`,
595
+ id: `labelPath-${l}_${T.value}`,
596
+ d: dt(
597
+ e.startAngle,
598
+ e.endAngle,
599
+ (b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
600
+ ),
601
+ fill: "none"
602
+ }, null, 8, ta))), 128))
603
+ ])) : v("", !0),
604
+ t.$slots.pattern ? (n(), i("g", aa, [
605
+ (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("defs", null, [
606
+ $(t.$slots, "pattern", yt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
607
+ ]))), 256))
608
+ ])) : v("", !0),
609
+ O("g", {
610
+ transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
611
+ }, [
612
+ (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("g", null, [
613
+ (n(), i("path", {
614
+ class: X({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !G.value }),
615
+ key: `arc-${l}`,
616
+ d: Se(
617
+ e.startAngle,
618
+ e.endAngle,
619
+ b.value.outer,
620
+ b.value.inner
621
+ ),
622
+ fill: m.value.colors[l],
623
+ stroke: a.value.style.chart.arcs.stroke,
624
+ "stroke-width": a.value.style.chart.arcs.strokeWidth,
625
+ "stroke-linecap": "round",
626
+ "stroke-linejoin": "round",
627
+ style: N({
628
+ opacity: Xe(e)
629
+ }),
630
+ onMouseenter: () => ht(e),
631
+ onMouseleave: o[0] || (o[0] = (u) => w.value = null),
632
+ onClick: (u) => Z("selectGroup", e)
633
+ }, null, 46, la)),
634
+ t.$slots.pattern ? (n(), i("path", {
635
+ class: X({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !G.value }),
636
+ key: `arc-${l}`,
637
+ d: Se(
638
+ e.startAngle,
639
+ e.endAngle,
640
+ b.value.outer,
641
+ b.value.inner
642
+ ),
643
+ fill: `url(#${e.pattern})`,
644
+ stroke: a.value.style.chart.arcs.stroke,
645
+ "stroke-width": a.value.style.chart.arcs.strokeWidth,
646
+ "stroke-linecap": "round",
647
+ "stroke-linejoin": "round",
648
+ style: N({
649
+ opacity: Xe(e),
650
+ pointerEvents: "none"
651
+ })
652
+ }, null, 14, sa)) : v("", !0)
653
+ ]))), 256)),
654
+ O("g", null, [
655
+ (n(!0), i(z, null, U(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : f.value ? _.value.chords.filter((e) => e.source.groupId === f.value) : _.value.chords, (e) => (n(), i(z, {
656
+ key: `ribbon-${e.id}`
657
+ }, [
658
+ e.source.value ? (n(), i("path", {
659
+ key: 0,
660
+ class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
661
+ d: J(e.source, e.target),
662
+ fill: a.value.style.chart.backgroundColor,
663
+ style: N({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
664
+ }, null, 14, na)) : v("", !0),
665
+ e.source.value ? (n(), i("path", {
666
+ key: 1,
667
+ class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
668
+ d: J(e.source, e.target),
669
+ fill: m.value.colors[e.source.index],
670
+ stroke: a.value.style.chart.ribbons.stroke,
671
+ "stroke-width": a.value.style.chart.ribbons.strokeWidth,
672
+ "stroke-linecap": "round",
673
+ "stroke-linejoin": "round",
674
+ style: N({ opacity: Fe(e) }),
675
+ onMouseenter: () => ft({
676
+ ...e,
677
+ path: J(e.source, e.target),
678
+ color: m.value.colors[e.source.index]
679
+ }),
680
+ onClick: (l) => Z("selectRibbon", {
681
+ ...e,
682
+ color: m.value.colors[e.source.index]
683
+ }),
684
+ onMouseleave: o[1] || (o[1] = (l) => p.value = null)
685
+ }, null, 46, ra)) : v("", !0),
686
+ e.source.value && t.$slots.pattern ? (n(), i("path", {
687
+ key: 2,
688
+ class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
689
+ d: J(e.source, e.target),
690
+ fill: `url(#pattern_${T.value}_${e.source.index})`,
691
+ stroke: a.value.style.chart.ribbons.stroke,
692
+ "stroke-width": a.value.style.chart.ribbons.strokeWidth,
693
+ "stroke-linecap": "round",
694
+ "stroke-linejoin": "round",
695
+ style: N({
696
+ opacity: Fe(e),
697
+ pointerEvents: "none"
698
+ })
699
+ }, null, 14, ua)) : v("", !0)
700
+ ], 64))), 128)),
701
+ p.value ? (n(), i("path", {
702
+ key: 0,
703
+ d: p.value.path,
704
+ fill: p.value.color,
705
+ stroke: a.value.style.chart.ribbons.stroke,
706
+ "stroke-width": a.value.style.chart.ribbons.strokeWidth,
707
+ "stroke-linecap": "round",
708
+ "stroke-linejoin": "round",
709
+ class: X({ "vue-ui-chord-ribbon": !0 }),
710
+ style: {
711
+ pointerEvents: "none"
712
+ }
713
+ }, null, 8, ia)) : v("", !0),
714
+ p.value && t.$slots.pattern ? (n(), i("path", {
715
+ key: 1,
716
+ d: p.value.path,
717
+ fill: `url(#${p.value.source.pattern})`,
718
+ stroke: a.value.style.chart.ribbons.stroke,
719
+ "stroke-width": a.value.style.chart.ribbons.strokeWidth,
720
+ "stroke-linecap": "round",
721
+ "stroke-linejoin": "round",
722
+ class: X({ "vue-ui-chord-ribbon": !0 }),
723
+ style: {
724
+ pointerEvents: "none"
725
+ }
726
+ }, null, 8, ca)) : v("", !0)
727
+ ]),
728
+ (w.value || p.value || f.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", da, [
729
+ (n(!0), i(z, null, U(nt.value, (e) => (n(), i(z, {
730
+ key: e.id
731
+ }, [
732
+ O("line", {
733
+ x1: e.midBaseX,
734
+ y1: e.midBaseY,
735
+ x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
736
+ y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
737
+ stroke: a.value.style.chart.backgroundColor,
738
+ "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
739
+ "pointer-events": "none"
740
+ }, null, 8, va),
741
+ O("line", {
742
+ x1: e.midBaseX,
743
+ y1: e.midBaseY,
744
+ x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
745
+ y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
746
+ stroke: a.value.style.chart.ribbons.labels.connector.stroke,
747
+ "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
748
+ "pointer-events": "none"
749
+ }, null, 8, ha),
750
+ a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
751
+ key: 0,
752
+ cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
753
+ cy: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
754
+ r: a.value.style.chart.ribbons.labels.marker.radius,
755
+ stroke: a.value.style.chart.ribbons.labels.marker.stroke,
756
+ "stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
757
+ fill: e.groupColor,
758
+ "pointer-events": "none"
759
+ }, null, 8, fa)) : v("", !0),
760
+ O("text", {
761
+ transform: `
762
+ translate(
763
+ ${Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
764
+ ${Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
765
+ ) rotate(${-I.value})
766
+ `,
767
+ fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
768
+ "text-anchor": it(e.theta),
769
+ "font-size": a.value.style.chart.ribbons.labels.fontSize,
770
+ "font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
771
+ dy: ".35em",
772
+ "pointer-events": "none"
773
+ }, V(ze(e.value)), 9, ga)
774
+ ], 64))), 128))
775
+ ])) : v("", !0),
776
+ a.value.style.chart.arcs.labels.show ? (n(), i("g", ba, [
777
+ a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 }, U(_.value.groups, (e, l) => (n(), i("text", {
778
+ key: `curved-label-${l}`,
779
+ "font-size": a.value.style.chart.arcs.labels.fontSize,
780
+ "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
781
+ fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? k(Tt)(m.value.colors[l]) : a.value.style.chart.arcs.labels.color
782
+ }, [
783
+ O("textPath", {
784
+ href: `#labelPath-${l}_${T.value}`,
785
+ startOffset: "50%",
786
+ "text-anchor": "middle"
787
+ }, V(m.value.labels[l]), 9, ma)
788
+ ], 8, pa))), 128)) : !w.value && !p.value && !f.value ? (n(!0), i(z, { key: 1 }, U(_.value.groups, (e, l) => (n(), i("text", {
789
+ key: `label-${l}`,
790
+ transform: `
791
+ ${ct((e.startAngle + e.endAngle) / 2)}
792
+ rotate(${-I.value})
793
+ `,
794
+ dy: ".35em",
795
+ "text-anchor": ut(e) > Math.PI ? "end" : "start",
796
+ "font-size": a.value.style.chart.arcs.labels.fontSize,
797
+ "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
798
+ fill: a.value.style.chart.arcs.labels.color
799
+ }, V(m.value.labels[l]), 9, ya))), 128)) : v("", !0)
800
+ ])) : v("", !0)
801
+ ], 8, oa),
802
+ $(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
803
+ ], 40, Jt)) : v("", !0),
804
+ t.$slots.watermark ? (n(), i("div", ka, [
805
+ $(t.$slots, "watermark", oe(le({ isPrinting: k(Ce) || k(Me) })), void 0, !0)
806
+ ])) : v("", !0),
807
+ L.value ? v("", !0) : (n(), j(Wt, {
808
+ key: 6,
809
+ config: {
810
+ type: "chord",
811
+ style: {
812
+ backgroundColor: a.value.style.chart.backgroundColor,
813
+ chord: {
814
+ color: "#CCCCCC"
815
+ }
816
+ }
817
+ }
818
+ }, null, 8, ["config"])),
819
+ O("div", {
820
+ ref_key: "chartLegend",
821
+ ref: ge
822
+ }, [
823
+ a.value.style.chart.legend.show ? (n(), j(Ut, {
824
+ key: `legend_${ke.value}`,
825
+ legendSet: Ue.value,
826
+ config: bt.value,
827
+ onClickMarker: o[2] || (o[2] = ({ legend: e }) => je(e.id))
828
+ }, We({
829
+ item: P(({ legend: e, index: l }) => [
830
+ O("div", {
831
+ style: N({
832
+ opacity: f.value ? f.value === e.id ? 1 : 0.3 : 1
833
+ }),
834
+ onClick: (u) => e.select()
835
+ }, V(e.name), 13, $a)
836
+ ]),
837
+ _: 2
838
+ }, [
839
+ t.$slots.pattern ? {
840
+ name: "legend-pattern",
841
+ fn: P(({ legend: e, index: l }) => [
842
+ de(Yt, {
843
+ shape: e.shape,
844
+ radius: 30,
845
+ stroke: "none",
846
+ plot: { x: 30, y: 30 },
847
+ fill: `url(#pattern_${T.value}_${l})`
848
+ }, null, 8, ["shape", "fill"])
849
+ ]),
850
+ key: "0"
851
+ } : void 0
852
+ ]), 1032, ["legendSet", "config"])) : v("", !0),
853
+ $(t.$slots, "legend", { legend: Ue.value }, void 0, !0)
854
+ ], 512),
855
+ t.$slots.source ? (n(), i("div", {
856
+ key: 7,
857
+ ref_key: "source",
858
+ ref: be,
859
+ dir: "auto"
860
+ }, [
861
+ $(t.$slots, "source", {}, void 0, !0)
862
+ ], 512)) : v("", !0),
863
+ I.value !== a.value.initialRotation ? (n(), i("div", wa, [
864
+ $(t.$slots, "reset-action", { reset: De }, () => [
865
+ O("button", {
866
+ "data-cy-reset": "",
867
+ tabindex: "0",
868
+ role: "button",
869
+ class: "vue-data-ui-refresh-button",
870
+ style: N({
871
+ background: a.value.style.chart.backgroundColor
872
+ }),
873
+ onClick: De
874
+ }, [
875
+ de(Rt, {
876
+ name: "refresh",
877
+ stroke: a.value.style.chart.color
878
+ }, null, 8, ["stroke"])
879
+ ], 4)
880
+ ], !0)
881
+ ])) : v("", !0),
882
+ L.value ? (n(), j(Vt, {
883
+ key: 9,
884
+ hideDetails: "",
885
+ config: {
886
+ open: q.value.showTable,
887
+ maxHeight: 1e4,
888
+ body: {
889
+ backgroundColor: a.value.style.chart.backgroundColor,
890
+ color: a.value.style.chart.color
891
+ },
892
+ head: {
893
+ backgroundColor: a.value.style.chart.backgroundColor,
894
+ color: a.value.style.chart.color
895
+ }
896
+ }
897
+ }, {
898
+ content: P(() => [
899
+ (n(), j(Gt, {
900
+ key: `table_${ye.value}`,
901
+ colNames: ae.value.colNames,
902
+ head: ae.value.head,
903
+ body: ae.value.body,
904
+ config: ae.value.config,
905
+ title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
906
+ onClose: o[3] || (o[3] = (e) => q.value.showTable = !1)
907
+ }, {
908
+ th: P(({ th: e }) => [
909
+ kt(V(e.name), 1)
910
+ ]),
911
+ td: P(({ td: e }) => [
912
+ O("div", Ca, V(e.name ? e.name : ze(e)), 1)
913
+ ]),
914
+ _: 1
915
+ }, 8, ["colNames", "head", "body", "config", "title"]))
916
+ ]),
917
+ _: 1
918
+ }, 8, ["config"])) : v("", !0)
919
+ ], 46, Zt));
920
+ }
921
+ }, ja = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-5f1eebd5"]]);
922
+ export {
923
+ ja as default
924
+ };