vue-data-ui 2.3.84 → 2.3.85

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 (172) hide show
  1. package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CLOh6oi7.cjs} +1 -1
  2. package/dist/{Arrow-CQ1ubni5.js → Arrow-JwDgP3de.js} +1 -1
  3. package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
  4. package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-BysUnfCR.js} +1 -1
  5. package/dist/{DataTable-C-iU_7h7.js → DataTable-MkG5Dqrn.js} +2 -2
  6. package/dist/{DataTable-CEtr89Og.cjs → DataTable-pVXaNplZ.cjs} +1 -1
  7. package/dist/{Legend-pU_BwhaW.js → Legend-KW7sTwN3.js} +1 -1
  8. package/dist/{Legend-D2ZBCCXe.cjs → Legend-k2mcTp7z.cjs} +1 -1
  9. package/dist/{Shape-CyM44biU.js → Shape-BFiZBf3X.js} +1 -1
  10. package/dist/{Shape-BO_KyCq8.cjs → Shape-COoEWeGM.cjs} +1 -1
  11. package/dist/{Slicer-CZobytqL.js → Slicer-CALc-Q4W.js} +2 -2
  12. package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-DCyxUSsn.cjs} +1 -1
  13. package/dist/{Title-B1_d29Eh.cjs → Title-BaKZYHEx.cjs} +1 -1
  14. package/dist/{Title-Bk3h09h9.js → Title-ISDbzCH8.js} +1 -1
  15. package/dist/{Tooltip-CdB80DsD.js → Tooltip-BHmMXOej.js} +1 -1
  16. package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
  17. package/dist/{index-DI4DaxVG.js → index-BiuHBtkZ.js} +1 -1
  18. package/dist/{index-Cx-40Fnz.cjs → index-D-vy9N1v.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
  21. package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-Ck5_RzLu.js} +1 -1
  22. package/dist/{usePrinter-D9bNzUQP.js → usePrinter-Do8KiK5h.js} +1 -1
  23. package/dist/{usePrinter-DbhL59iY.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
  24. package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-CAl2KJv9.js} +57 -57
  25. package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
  29. package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
  30. package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
  31. package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
  32. package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
  34. package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
  35. package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
  36. package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
  37. package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
  38. package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
  40. package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
  41. package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
  42. package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-B1xa5yua.js} +2 -2
  43. package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
  46. package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-BUpjWWnD.js} +2 -2
  47. package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
  48. package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
  49. package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
  50. package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
  51. package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
  52. package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
  53. package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
  54. package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
  55. package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
  56. package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
  57. package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
  58. package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-CGh_m922.js} +61 -61
  59. package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
  60. package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
  61. package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
  64. package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-B4zr_geL.js} +3 -3
  65. package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
  67. package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
  68. package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
  69. package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
  70. package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
  71. package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
  72. package/dist/{vue-ui-nested-donuts-C3CMWjgk.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
  74. package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
  75. package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-DQMLPe3M.js} +88 -88
  76. package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
  77. package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
  78. package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
  79. package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
  80. package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
  81. package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
  82. package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-B9TZPujK.js} +42 -42
  83. package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
  84. package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-B0pNsmGB.js} +2 -2
  85. package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
  86. package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
  87. package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
  88. package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-BuvFDBXg.js} +77 -77
  89. package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
  90. package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
  91. package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
  92. package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
  94. package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
  95. package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
  96. package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
  99. package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
  100. package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
  101. package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
  102. package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
  103. package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
  104. package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
  105. package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
  106. package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
  109. package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
  110. package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
  111. package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
  112. package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
  114. package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-328De4vk.cjs} +1 -1
  115. package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-CamkBCdL.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-BnwiB4id.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
  120. package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
  121. package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
  122. package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-BPepr5eV.js} +4 -4
  123. package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
  124. package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
  125. package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
  126. package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-CWu43qLo.js} +12 -12
  128. package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
  129. package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
  130. package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
  131. package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
  132. package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
  133. package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
  134. package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
  135. package/dist/{vue-ui-word-cloud-D5JLdr9g.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
  136. package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
  137. package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-DgEdZz0O.js} +356 -361
  138. package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
  139. package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
  142. package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
  143. package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
  144. package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
  145. package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
  146. package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
  147. package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
  148. package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
  149. package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
  150. package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
  151. package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
  152. package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
  153. package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
  154. package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
  155. package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
  156. package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
  157. package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
  158. package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
  159. package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
  160. package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
  161. package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
  162. package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
  163. package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
  164. package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
  165. package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
  166. package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
  167. package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
  168. package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
  169. package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
  170. package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
  171. package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
  172. package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D-vy9N1v.cjs"),Z=require("./useResponsive-B3TrDDIG.cjs"),ge=require("./Title-BaKZYHEx.cjs"),ee=require("./usePrinter-P4nLcXX-.cjs"),he=require("./Tooltip-okAYzo5Y.cjs"),me=require("./vue-ui-sparkbar-BlwQfhlY.cjs"),fe=require("./Legend-k2mcTp7z.cjs"),ye=require("./DataTable-pVXaNplZ.cjs"),ke=require("./vue-ui-skeleton-DJhwv2oY.cjs"),be=require("./vue-ui-accordion-btKAUUTu.cjs"),te=require("./useNestedProp-B9yDavuy.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Be=["xmlns","viewBox"],_e=["id"],xe=["stop-color"],Pe=["stop-color"],$e={key:0},Ne=["x1","y1","x2","y2","stroke","stroke-width"],Te={key:0},Se=["d","stroke","stroke-width"],Ee=["d","stroke","stroke-width"],Ve={key:1},Fe=["x","y","text-anchor","font-size","fill","onMouseenter"],Le=["points","stroke","stroke-width"],Oe=["points","stroke","stroke-width","fill"],ze={key:2},Ae=["cx","cy","fill","r","stroke"],Ie={key:3,class:"vue-data-ui-watermark"},Re=["onClick"],De={key:0,style:{"max-width":"200px",margin:"0 auto"}},Me={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(oe,{expose:ae,emit:le}){const d=oe,{vue_ui_radar:re}=n.useConfig(),k=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),m=e.ref(n.createUid()),ne=e.ref(null),P=e.ref(!1),$=e.ref(""),F=e.ref(0),b=e.ref(null),L=e.ref(null),O=e.ref(null),z=e.ref(0),A=e.ref(0),I=e.ref(0),t=e.computed({get:()=>R(),set:o=>o});function R(){const o=te.useNestedProp({userConfig:d.config,defaultConfig:re});return o.theme?{...te.useNestedProp({userConfig:n.themes.vue_ui_radar[o.theme]||d.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}e.watch(()=>d.config,o=>{t.value=R(),D(),z.value+=1,A.value+=1,I.value+=1},{deep:!0});const B=e.ref(null);function D(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=Z.throttle(()=>{const{width:a,height:l}=Z.useResponsive({chart:b.value,title:t.value.style.chart.title.text?L.value:null,legend:t.value.style.chart.legend.show?O.value:null});s.value.width=a,s.value.height=l});B.value=new ResizeObserver(o),B.value.observe(b.value.parentNode)}}e.onMounted(()=>{D()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=ee.usePrinter({elementId:`vue-ui-radar_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),W=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),g=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),ue=e.computed(()=>({style:{backgroundColor:t.value.style.chart.tooltip.backgroundColor,animation:{show:t.value.style.chart.tooltip.animation.show,animationFrames:t.value.style.chart.tooltip.animation.animationFrames},labels:{fontSize:t.value.style.chart.tooltip.fontSize,name:{color:t.value.style.chart.tooltip.color}},gutter:{backgroundColor:"#CCCCCC",opacity:30}}})),s=e.ref({height:312,width:512}),i=e.ref([]),C=e.ref(null),f=e.ref(!1);function H(o){f.value=!0,i.value.includes(o)?(C.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{f.value=!1,C.value=null},500)):(i.value.push(o),setTimeout(()=>{f.value=!1},500)),le("selectLegend",y.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function se(){return y.value.map(o=>({name:o.name,color:o.color,proportion:o.totalProportion}))}const v=e.computed(()=>[null,void 0].includes(d.dataset.categories)?(n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"categories ({ name: string; prefix?: string; suffix?: string}[])"}),[]):(d.dataset.categories.length===0?n.error({componentName:"VueUiRadar",type:"datasetAttributeEmpty",property:"categories"}):d.dataset.categories.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:`category.${l} at index ${a}`,index:a})})}),[null,void 0].includes(d.dataset.series)?n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"series ({ name: string; values: number[]; color?: string; target: number}[])"}):d.dataset.series.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values","target"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetSerieAttribute",key:"series",property:l,index:a})})}),d.dataset.categories.map((o,a)=>({name:o.name,categoryId:`radar_category_${m.value}_${a}`,color:n.convertColorToHex(o.color)||W.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),p=e.computed(()=>k.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||W.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${m.value}_${a}`,formatter:o.formatter||null})):[]),X=e.computed(()=>Math.max(...p.value.flatMap(o=>o.values))),j=e.computed(()=>p.value.length),N=e.computed(()=>Math.min(s.value.width,s.value.height)/3),Y=e.computed(()=>n.createPolygonPath({plot:{x:s.value.width/2,y:s.value.height/2},radius:N.value,sides:j.value,rotation:0})),ie=e.computed(()=>{const o=[];for(let a=0;a<N.value;a+=N.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),h=e.computed(()=>Y.value.coordinates.map((o,a)=>{const l=p.value[a].values.map(r=>ce({centerX:s.value.width/2,centerY:s.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(p.value[a].target||X.value)}));return{...o,...p.value[a],plots:l}}));function T({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>s.value.width/2&&(o+=12,l="start"),o<s.value.width/2&&(o-=12,l="end"),a>s.value.height/2&&(a+=20),a<s.value.height/2&&(a-=12),a===s.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ce({centerX:o,centerY:a,apexX:l,apexY:r,proportion:u}){return{x:o+(l-o)*u,y:a+(r-a)*u}}const y=e.computed(()=>{const o=p.value.map((a,l)=>a.values.map(r=>r/(a.target||X.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,u)=>r+u,0)/p.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>H(l),isSegregated:i.value.includes(l)}))}),de=e.computed(()=>({cy:"radar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),_=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...y.value],a=d.dataset.series.map(r=>[r.name,n.applyDataLabel(r.formatter,r.target,n.dataLabel({p:r.prefix,v:r.target,s:r.suffix,r:t.value.table.td.roundingValue})),...r.values.map((u,c)=>`${n.applyDataLabel(r.formatter,u,n.dataLabel({p:v.value[c].prefix,v:u,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(u/r.target)?"":n.dataLabel({v:u/r.target*100,s:"%",r:t.value.table.td.roundingPercentage})})`)]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:o,body:a,config:l,colNames:o}}),x=e.ref(null),S=e.ref([]),E=e.ref(null);function ve(o,a){S.value=[],x.value=a,P.value=!0;let l="";E.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:p.value,radar:h.value},config:t.value};const r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:p.value,radar:h.value},config:t.value})))$.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:p.value,radar:h.value},config:t.value});else{l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`;for(let u=0;u<o.values.length;u+=1)i.value.includes(u)||S.value.push({name:v.value[u].name,value:o.values[u]/o.target*100,color:v.value[u].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[u].prefix??"",v:o.values[u],s:v.value[u].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});$.value=l}}function J(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...y.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,Ue)=>[c.name,c.target,...c.values.flatMap(V=>[V,isNaN(V/c.target)?"":V/c.target*100])]),r=o.concat([a]).concat(l),u=n.createCsvContent(r);n.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const w=e.ref(!1);function pe(o){w.value=o,F.value+=1}function K(){g.value.showTable=!g.value.showTable}function Q(){g.value.showTooltip=!g.value.showTooltip}return ae({getData:se,generatePdf:U,generateCsv:J,generateImage:G,toggleTable:K,toggleTooltip:Q}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${w.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:b,id:`vue-ui-radar_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:L,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(ge._sfc_main,{key:`title_${z.value}`,config:{title:{cy:"radar-div-title",...t.value.style.chart.title},subtitle:{cy:"radar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:ne,key:`user_options_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:m.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:w.value,isTooltip:g.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(G),onToggleTable:K,onToggleTooltip:Q},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":w.value,"vue-data-ui-fulscreen--off":!w.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${m.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.05),t.value.style.chart.layout.dataPolygon.opacity)},null,8,xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Pe)],8,_e))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.width/2,y1:s.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Ne))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:s.value.width/2,y:s.value.height/2},radius:l,sides:j.value,rotation:0}).path,fill:"none",stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Se))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:Y.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ee),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:T(l).x,y:T(l).y,"text-anchor":T(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:u=>ve(l,r),onMouseleave:a[0]||(a[0]=u=>{P.value=!1,x.value=null})},e.toDisplayString(l.name),41,Fe))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("g",null,[t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-radar-path":"",points:e.unref(n.makePath)(h.value.map(u=>u.plots[r]),!1,!0),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth+1,fill:"none",class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":f.value&&C.value===r&&t.value.useCssAnimation})},null,10,Le)):e.createCommentVNode("",!0),t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:1,"data-cy-radar-path":"",points:e.unref(n.makePath)(h.value.map(u=>u.plots[r]),!1,!0),stroke:l.color,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,fill:t.value.style.chart.layout.dataPolygon.transparent?"transparent":t.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${m.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity),class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":f.value&&C.value===r&&t.value.useCssAnimation})},null,10,Oe)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(u,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:x.value!==null&&x.value===r?t.value.style.chart.layout.plots.radius*1.6:t.value.style.chart.layout.plots.radius,stroke:i.value.includes(c)?"transparent":t.value.style.chart.backgroundColor,"stroke-width":.5,class:e.normalizeClass({"animated-out":i.value.includes(c)&&t.value.useCssAnimation,"animated-in":f.value&&C.value===c&&t.value.useCssAnimation})},null,10,Ae))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:s.value},void 0,!0)],14,Be)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:4,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:t.value.style.chart.layout.outerPolygon.stroke},shapes:{color:t.value.style.chart.layout.outerPolygon.stroke}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(fe.Legend,{key:`legend_${I.value}`,legendSet:y.value,config:de.value,onClickMarker:a[1]||(a[1]=({i:l})=>H(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>l.segregate(),style:e.normalizeStyle(`opacity:${i.value.includes(r)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.dataLabel)({v:l.totalProportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})),13,Re)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:y.value},void 0,!0)],512),e.createVNode(he._sfc_main,{show:g.value.showTooltip&&P.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,fontSize:t.value.style.chart.tooltip.fontSize,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:b.value,content:$.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...E.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[["function"].includes(typeof t.value.style.chart.tooltip.customFormat)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(me.default,{dataset:S.value,config:ue.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity},null,8,["dataset","config","backgroundOpacity"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...E.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isCustom"]),k.value?(e.openBlock(),e.createBlock(be.default,{key:5,hideDetails:"",config:{open:g.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ye.DataTable,{key:`table_${A.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>g.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name),1)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,we))}},qe=Ce._export_sfc(Me,[["__scopeId","data-v-6194d3c4"]]);exports.default=qe;
@@ -1,6 +1,6 @@
1
1
  import { ref as f, computed as $, onMounted as O, openBlock as l, createElementBlock as i, normalizeStyle as a, createElementVNode as n, toDisplayString as p, createCommentVNode as d, Fragment as E, renderList as L, unref as m, withKeys as T, createTextVNode as U } from "vue";
2
- import { u as D, c as K, o as H, e as P, X as _, w as N, T as F } from "./index-DI4DaxVG.js";
3
- import { u as W } from "./useNestedProp-COsQo-tX.js";
2
+ import { u as D, c as K, o as H, e as P, X as _, w as N, T as F } from "./index-BiuHBtkZ.js";
3
+ import { u as W } from "./useNestedProp-Ck5_RzLu.js";
4
4
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const J = {
6
6
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-Cx-40Fnz.cjs"),C=require("./useNestedProp-BdsfyHWU.cjs"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},F=["src","height","width"],A=["xmlns","height","width"],D=["id"],R=["stop-color"],X=["stop-color"],j=["points","fill","stroke","stroke-width"],I=["src","alt","height","width","id"],O=["xmlns","viewBox","height","id"],Y=["id"],G=["stop-color"],L=["stop-color"],q=["points","fill","stroke"],T=["xmlns","height"],U=["onClick","onMouseenter","onKeyup"],H=["onMouseenter"],K={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup($,{expose:k,emit:S}){const s=$,{vue_ui_rating:_}=n.useConfig(),d=e.ref(n.createUid()),p=e.ref(!1),r=e.ref(void 0),g=e.ref([]),t=e.computed(()=>C.useNestedProp({userConfig:s.config,defaultConfig:_})),b=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)?z(s.dataset.rating):s.dataset.rating),N=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)),i=e.ref(b.value),f=e.ref(t.value.type==="image"),c=e.ref(t.value.readonly);function z(o){let a=0,l=0;for(const u in o){const E=parseInt(u),h=o[u];a+=E*h,l+=h}if(l===0)return 0;const v=a/l;return Math.min(t.value.to,Math.max(t.value.from,v))}e.onMounted(()=>{n.objectIsEmpty(s.dataset)&&n.error({componentName:"VueUiRating",type:"dataset"});for(let o=t.value.from;o<=t.value.to;o+=1)g.value.push(o)});function y(o,a=!1){return o>r.value||c.value?a?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:a?1:t.value.style.star.useGradient?`url(#star_gradient_under_${d.value})`:t.value.style.star.activeColor}function m(o,a=!1){const l=i.value-o,v=a?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*v;default:return l*v}}function x(o){c.value||(i.value=o,S("rate",o))}function w(){return i.value}function B(o=!0){c.value=o}return k({getData:w,toggleReadonly:B}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:a[2]||(a[2]=l=>p.value=!0),onMouseleave:a[3]||(a[3]=l=>{p.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,v)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[f.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:y(l,!0)}`)},null,12,F)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,R),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,X)],8,D)]),e.createElementVNode("polygon",{points:e.unref(n.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:y(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?y(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,j)],8,A)),f.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${d.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${m(v,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),viewBox:`0 0 ${m(v)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${d.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,L)],8,Y)]),e.createElementVNode("polygon",{points:e.unref(n.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${d.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,q)],8,O)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(n.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:u=>x(l),onMouseenter:u=>r.value=l,onMouseleave:a[0]||(a[0]=u=>r.value=void 0),tabindex:"0",onKeyup:e.withKeys(u=>x(l),["enter"])},null,40,U)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:u=>r.value=l,onMouseleave:a[1]||(a[1]=u=>r.value=void 0)},null,40,H)):e.createCommentVNode("",!0)],12,T)),t.value.style.tooltip.show&&N.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:4,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l),5),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(s.dataset.rating[l]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},P=V._export_sfc(K,[["__scopeId","data-v-86ced882"]]);exports.default=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D-vy9N1v.cjs"),C=require("./useNestedProp-B9yDavuy.cjs"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},F=["src","height","width"],A=["xmlns","height","width"],D=["id"],R=["stop-color"],X=["stop-color"],j=["points","fill","stroke","stroke-width"],I=["src","alt","height","width","id"],O=["xmlns","viewBox","height","id"],Y=["id"],G=["stop-color"],L=["stop-color"],q=["points","fill","stroke"],T=["xmlns","height"],U=["onClick","onMouseenter","onKeyup"],H=["onMouseenter"],K={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup($,{expose:k,emit:S}){const s=$,{vue_ui_rating:_}=n.useConfig(),d=e.ref(n.createUid()),p=e.ref(!1),r=e.ref(void 0),g=e.ref([]),t=e.computed(()=>C.useNestedProp({userConfig:s.config,defaultConfig:_})),b=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)?z(s.dataset.rating):s.dataset.rating),N=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)),i=e.ref(b.value),f=e.ref(t.value.type==="image"),c=e.ref(t.value.readonly);function z(o){let a=0,l=0;for(const u in o){const E=parseInt(u),h=o[u];a+=E*h,l+=h}if(l===0)return 0;const v=a/l;return Math.min(t.value.to,Math.max(t.value.from,v))}e.onMounted(()=>{n.objectIsEmpty(s.dataset)&&n.error({componentName:"VueUiRating",type:"dataset"});for(let o=t.value.from;o<=t.value.to;o+=1)g.value.push(o)});function y(o,a=!1){return o>r.value||c.value?a?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:a?1:t.value.style.star.useGradient?`url(#star_gradient_under_${d.value})`:t.value.style.star.activeColor}function m(o,a=!1){const l=i.value-o,v=a?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*v;default:return l*v}}function x(o){c.value||(i.value=o,S("rate",o))}function w(){return i.value}function B(o=!0){c.value=o}return k({getData:w,toggleReadonly:B}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:a[2]||(a[2]=l=>p.value=!0),onMouseleave:a[3]||(a[3]=l=>{p.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,v)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[f.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:y(l,!0)}`)},null,12,F)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,R),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,X)],8,D)]),e.createElementVNode("polygon",{points:e.unref(n.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:y(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?y(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,j)],8,A)),f.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${d.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${m(v,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),viewBox:`0 0 ${m(v)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${d.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,L)],8,Y)]),e.createElementVNode("polygon",{points:e.unref(n.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${d.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,q)],8,O)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(n.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:u=>x(l),onMouseenter:u=>r.value=l,onMouseleave:a[0]||(a[0]=u=>r.value=void 0),tabindex:"0",onKeyup:e.withKeys(u=>x(l),["enter"])},null,40,U)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:u=>r.value=l,onMouseleave:a[1]||(a[1]=u=>r.value=void 0)},null,40,H)):e.createCommentVNode("",!0)],12,T)),t.value.style.tooltip.show&&N.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:4,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l),5),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(s.dataset.rating[l]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},P=V._export_sfc(K,[["__scopeId","data-v-86ced882"]]);exports.default=P;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-D-vy9N1v.cjs"),V=require("./useResponsive-B3TrDDIG.cjs"),ae=require("./Title-BaKZYHEx.cjs"),j=require("./usePrinter-P4nLcXX-.cjs"),se=require("./vue-ui-skeleton-DJhwv2oY.cjs"),q=require("./useNestedProp-B9yDavuy.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=["id"],ce=["xmlns","viewBox"],de=["cx","cy","r","stroke","stroke-width"],ve={key:0},fe=["stroke","d","stroke-width"],ge={key:1},me=["stroke","x1","x2","y1","y2"],ye=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],he=["cx","cy","fill","onClick","r"],ke={key:3,class:"vue-data-ui-watermark"},pe={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(G,{expose:U}){const u=G;e.useCssVars(t=>({"469eced2":H.value,"1e3da7b1":Y.value,"2d2c73d3":J.value}));const{vue_ui_relation_circle:D}=o.useConfig(),p=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),g=e.ref(o.createUid()),$=e.ref(0),y=e.ref(null),w=e.ref(null),b=e.ref(0),r=e.computed({get:()=>B(),set:t=>t});function B(){const t=q.useNestedProp({userConfig:u.config,defaultConfig:D});return t.theme?{...q.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||u.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>u.config,t=>{r.value=B(),S(),b.value+=1},{deep:!0});const{isPrinting:P,isImaging:O,generatePdf:E,generateImage:A}=j.usePrinter({elementId:`relation_circle_${g.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),I=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),d=e.ref([]),f=e.ref([]),i=e.ref({}),c=e.ref([]),W=e.ref(0),_=e.computed(()=>u.dataset.slice(0,r.value.style.limit)),C=e.ref(r.value.style.size),a=e.ref({height:r.value.style.size,width:r.value.style.size}),v=e.computed({get(){return C.value*r.value.style.circle.radiusProportion},set(t){return t}}),X=e.computed(()=>r.value.style.links.curved),Y=e.computed(()=>`${r.value.style.animation.speedMs}ms`),H=e.computed(()=>v.value*2),J=e.computed(()=>v.value*4),h=e.ref(null);e.onMounted(()=>{S(),document.getElementById(`relation_circle_${g.value}`).addEventListener("click",z)});function S(){if(o.objectIsEmpty(u.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):u.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=V.throttle(()=>{const{width:n,height:l}=V.useResponsive({chart:y.value,title:r.value.style.title.text?w.value:null});C.value=Math.min(n,l),a.value.width=n,a.value.height=l,v.value=C.value*r.value.style.circle.radiusProportion,d.value=[],f.value=[],F(),N()});h.value=new ResizeObserver(t),h.value.observe(y.value.parentNode)}else d.value=[],f.value=[],F(),N()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${g.value}`).removeEventListener("click",z),h.value&&h.value.disconnect()});function z(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(i.value={},c.value=[])}function F(){const t=6.28319/_.value.length,n=360/_.value.length;let l=0,s=0;_.value.forEach((m,x)=>{const ne=v.value*Math.cos(l)+a.value.width/2,ie=v.value*Math.sin(l)+a.value.height/2+r.value.style.circle.offsetY;d.value.push({x:ne,y:ie,...m,color:m.color?m.color:I.value[x]?I.value[x]:o.palette[x],regAngle:s}),l+=t,s+=n})}function N(){d.value.forEach(t=>{d.value.filter(l=>l.relations.includes(t.id)).forEach((l,s)=>{f.value.push({weight:t.weights&&t.weights[s]?t.weights[s]:1,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,...t})})})}const K=e.computed(()=>Math.max(...f.value.map(t=>t.weight)));function Q(t){return Object.hasOwn(i.value,"x")?c.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function L(t){return Object.hasOwn(i.value,"x")?t.colorTarget:t.colorSource}function R(t){return Object.hasOwn(i.value,"x")?c.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`?`opacity:1;stroke-width:${M(t)}`:"opacity: 0":"opacity: 1"}function Z(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function ee(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function te(t){return Object.hasOwn(i.value,"x")?i.value.id===t.id||c.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function le(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function T(t){W.value=360-t.regAngle,i.value.id&&t.id===i.value.id?(i.value={},c.value=[]):(i.value=t,c.value=[...t.relations])}function M(t){return t.weight/K.value*r.value.style.links.maxWidth}const k=e.ref(!1);function re(t){k.value=t,$.value+=1}return U({generatePdf:E,generateImage:A}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:y,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${g.value}`},[r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:w,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${b.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_options_${$.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(P),isImaging:e.unref(O),uid:g.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...r.value.userOptions.buttonTitles},chartElement:y.value,onToggleFullscreen:re,onGeneratePdf:e.unref(E),onGenerateImage:e.unref(A)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value},"relation-circle"]),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createElementVNode("circle",{cx:(a.value.width<=0?1e-4:a.value.width)/2,cy:(a.value.height<=0?1e-4:a.value.height)/2+r.value.style.circle.offsetY,r:v.value<=0?1e-4:v.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,de),X.value?(e.openBlock(),e.createElementBlock("g",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${s}`,style:e.normalizeStyle(R(l)),stroke:L(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&c.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${a.value.width/2},${a.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":M(l),"stroke-linecap":"round"},null,14,fe))),128))])):(e.openBlock(),e.createElementBlock("g",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${s}`,stroke:L(l),style:e.normalizeStyle(R(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&c.value.includes(l.id)}),"stroke-linecap":"round"},null,14,me))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${s}`,"text-anchor":Z(l),transform:le(l),x:ee(l),y:l.y+5,onClick:m=>T(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":i.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${te(l)}`),"font-size":r.value.style.labels.fontSize,fill:r.value.style.labels.color},e.toDisplayString(l.label),13,ye))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${s}`,style:e.normalizeStyle(Q(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.color,onClick:m=>T(l),r:r.value.style.plot.radius},null,12,he))),128)),e.renderSlot(t.$slots,"svg",{svg:a.value},void 0,!0)],10,ce)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ke,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(P)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:4,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ue))}},_e=oe._export_sfc(pe,[["__scopeId","data-v-bfb8dffb"]]);exports.default=_e;
@@ -1,10 +1,10 @@
1
- import { useCssVars as _e, computed as c, ref as u, watch as pe, onMounted as $e, onBeforeUnmount as Ce, openBlock as s, createElementBlock as o, normalizeStyle as h, createBlock as E, createCommentVNode as p, unref as y, createSlots as xe, withCtx as z, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, normalizeClass as L, createElementVNode as we, Fragment as b, renderList as O, toDisplayString as be } from "vue";
2
- import { u as Oe, c as Pe, t as Ae, a as Ie, p as Z, b as Fe, o as Ee, e as ee, g as ze, X as Le } from "./index-DI4DaxVG.js";
1
+ import { useCssVars as pe, computed as c, ref as u, watch as _e, onMounted as $e, onBeforeUnmount as xe, openBlock as s, createElementBlock as o, normalizeStyle as p, createBlock as E, createCommentVNode as _, unref as h, createSlots as Ce, withCtx as z, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, normalizeClass as L, createElementVNode as we, Fragment as b, renderList as O, toDisplayString as be } from "vue";
2
+ import { u as Oe, c as Pe, t as Ae, a as Ie, p as Z, b as Fe, o as Ee, e as ee, g as ze, X as Le } from "./index-BiuHBtkZ.js";
3
3
  import { t as Se, u as Ne } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Re } from "./Title-Bk3h09h9.js";
5
- import { u as Te, U as Me } from "./usePrinter-D9bNzUQP.js";
6
- import je from "./vue-ui-skeleton-DH4t1hrL.js";
7
- import { u as te } from "./useNestedProp-COsQo-tX.js";
4
+ import { _ as Re } from "./Title-ISDbzCH8.js";
5
+ import { u as Te, U as Me } from "./usePrinter-Do8KiK5h.js";
6
+ import je from "./vue-ui-skeleton-Du4zw-c1.js";
7
+ import { u as te } from "./useNestedProp-Ck5_RzLu.js";
8
8
  import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "stroke-width"], Ve = { key: 0 }, We = ["stroke", "d", "stroke-width"], Xe = { key: 1 }, Ye = ["stroke", "x1", "x2", "y1", "y2"], qe = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], He = ["cx", "cy", "fill", "onClick", "r"], Je = {
10
10
  key: 3,
@@ -27,12 +27,12 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
27
27
  },
28
28
  setup(le, { expose: re }) {
29
29
  const d = le;
30
- _e((e) => ({
31
- "7995534c": ue.value,
32
- "31095f2b": ie.value,
33
- "7c93c1cd": oe.value
30
+ pe((e) => ({
31
+ "469eced2": ue.value,
32
+ "1e3da7b1": ie.value,
33
+ "2d2c73d3": oe.value
34
34
  }));
35
- const { vue_ui_relation_circle: se } = Oe(), P = c(() => !!d.dataset && Object.keys(d.dataset).length), k = u(Pe()), S = u(0), C = u(null), N = u(null), R = u(0), l = c({
35
+ const { vue_ui_relation_circle: se } = Oe(), P = c(() => !!d.dataset && Object.keys(d.dataset).length), m = u(Pe()), S = u(0), x = u(null), N = u(null), R = u(0), l = c({
36
36
  get: () => T(),
37
37
  set: (e) => e
38
38
  });
@@ -49,13 +49,13 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
49
49
  customPalette: Ie[e.theme] || Z
50
50
  } : e;
51
51
  }
52
- pe(() => d.config, (e) => {
52
+ _e(() => d.config, (e) => {
53
53
  l.value = T(), D(), R.value += 1;
54
54
  }, { deep: !0 });
55
55
  const { isPrinting: M, isImaging: j, generatePdf: B, generateImage: G } = Te({
56
- elementId: `relation_circle_${k.value}`,
56
+ elementId: `relation_circle_${m.value}`,
57
57
  fileName: l.value.style.title.text || "vue-ui-relation-circle"
58
- }), U = c(() => Fe(l.value.customPalette)), f = u([]), m = u([]), n = u({}), v = u([]), ne = u(0), A = c(() => d.dataset.slice(0, l.value.style.limit)), I = u(l.value.style.size), a = u({
58
+ }), U = c(() => Fe(l.value.customPalette)), f = u([]), y = u([]), n = u({}), v = u([]), ne = u(0), A = c(() => d.dataset.slice(0, l.value.style.limit)), I = u(l.value.style.size), a = u({
59
59
  height: l.value.style.size,
60
60
  width: l.value.style.size
61
61
  }), g = c({
@@ -65,9 +65,9 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
65
65
  set(e) {
66
66
  return e;
67
67
  }
68
- }), ae = c(() => l.value.style.links.curved), ie = c(() => `${l.value.style.animation.speedMs}ms`), ue = c(() => g.value * 2), oe = c(() => g.value * 4), x = u(null);
68
+ }), ae = c(() => l.value.style.links.curved), ie = c(() => `${l.value.style.animation.speedMs}ms`), ue = c(() => g.value * 2), oe = c(() => g.value * 4), C = u(null);
69
69
  $e(() => {
70
- D(), document.getElementById(`relation_circle_${k.value}`).addEventListener("click", V);
70
+ D(), document.getElementById(`relation_circle_${m.value}`).addEventListener("click", V);
71
71
  });
72
72
  function D() {
73
73
  if (Ee(d.dataset) ? ee({
@@ -88,17 +88,17 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
88
88
  }), l.value.responsive) {
89
89
  const e = Se(() => {
90
90
  const { width: r, height: t } = Ne({
91
- chart: C.value,
91
+ chart: x.value,
92
92
  title: l.value.style.title.text ? N.value : null
93
93
  });
94
- I.value = Math.min(r, t), a.value.width = r, a.value.height = t, g.value = I.value * l.value.style.circle.radiusProportion, f.value = [], m.value = [], W(), X();
94
+ I.value = Math.min(r, t), a.value.width = r, a.value.height = t, g.value = I.value * l.value.style.circle.radiusProportion, f.value = [], y.value = [], W(), X();
95
95
  });
96
- x.value = new ResizeObserver(e), x.value.observe(C.value.parentNode);
96
+ C.value = new ResizeObserver(e), C.value.observe(x.value.parentNode);
97
97
  } else
98
- f.value = [], m.value = [], W(), X();
98
+ f.value = [], y.value = [], W(), X();
99
99
  }
100
- Ce(() => {
101
- document.getElementById(`relation_circle_${k.value}`).removeEventListener("click", V), x.value && x.value.disconnect();
100
+ xe(() => {
101
+ document.getElementById(`relation_circle_${m.value}`).removeEventListener("click", V), C.value && C.value.disconnect();
102
102
  });
103
103
  function V(e) {
104
104
  const r = e.target;
@@ -107,15 +107,15 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
107
107
  function W() {
108
108
  const e = 6.28319 / A.value.length, r = 360 / A.value.length;
109
109
  let t = 0, i = 0;
110
- A.value.forEach((_, F) => {
110
+ A.value.forEach((k, F) => {
111
111
  const me = g.value * Math.cos(t) + a.value.width / 2, ke = g.value * Math.sin(t) + a.value.height / 2 + l.value.style.circle.offsetY;
112
- f.value.push({ x: me, y: ke, ..._, color: _.color ? _.color : U.value[F] ? U.value[F] : Z[F], regAngle: i }), t += e, i += r;
112
+ f.value.push({ x: me, y: ke, ...k, color: k.color ? k.color : U.value[F] ? U.value[F] : Z[F], regAngle: i }), t += e, i += r;
113
113
  });
114
114
  }
115
115
  function X() {
116
116
  f.value.forEach((e) => {
117
117
  f.value.filter((t) => t.relations.includes(e.id)).forEach((t, i) => {
118
- m.value.push({
118
+ y.value.push({
119
119
  weight: e.weights && e.weights[i] ? e.weights[i] : 1,
120
120
  relationId: `${e.id}_${t.id}`,
121
121
  x1: e.x,
@@ -129,7 +129,7 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
129
129
  });
130
130
  });
131
131
  }
132
- const ce = c(() => Math.max(...m.value.map((e) => e.weight)));
132
+ const ce = c(() => Math.max(...y.value.map((e) => e.weight)));
133
133
  function de(e) {
134
134
  return Object.hasOwn(n.value, "x") ? v.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
135
135
  }
@@ -166,16 +166,16 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
166
166
  generateImage: G
167
167
  }), (e, r) => (s(), o("div", {
168
168
  ref_key: "relationCircleChart",
169
- ref: C,
169
+ ref: x,
170
170
  class: "vue-ui-relation-circle",
171
- style: h(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
172
- id: `relation_circle_${k.value}`
171
+ style: p(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
172
+ id: `relation_circle_${m.value}`
173
173
  }, [
174
174
  l.value.style.title.text ? (s(), o("div", {
175
175
  key: 0,
176
176
  ref_key: "chartTitle",
177
177
  ref: N,
178
- style: h(`width:100%;background:${l.value.style.backgroundColor}`)
178
+ style: "width:100%;background:transparent"
179
179
  }, [
180
180
  (s(), E(Re, {
181
181
  key: `title_${R.value}`,
@@ -190,26 +190,26 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
190
190
  }
191
191
  }
192
192
  }, null, 8, ["config"]))
193
- ], 4)) : p("", !0),
193
+ ], 512)) : _("", !0),
194
194
  l.value.userOptions.show && P.value ? (s(), E(Me, {
195
195
  ref: "details",
196
196
  key: `user_options_${S.value}`,
197
197
  backgroundColor: l.value.style.backgroundColor,
198
198
  color: l.value.style.color,
199
- isPrinting: y(M),
200
- isImaging: y(j),
201
- uid: k.value,
199
+ isPrinting: h(M),
200
+ isImaging: h(j),
201
+ uid: m.value,
202
202
  hasPdf: l.value.userOptions.buttons.pdf,
203
203
  hasImg: l.value.userOptions.buttons.img,
204
204
  hasFullscreen: l.value.userOptions.buttons.img,
205
205
  hasXls: !1,
206
206
  isFullscreen: w.value,
207
207
  titles: { ...l.value.userOptions.buttonTitles },
208
- chartElement: C.value,
208
+ chartElement: x.value,
209
209
  onToggleFullscreen: ye,
210
- onGeneratePdf: y(B),
211
- onGenerateImage: y(G)
212
- }, xe({ _: 2 }, [
210
+ onGeneratePdf: h(B),
211
+ onGenerateImage: h(G)
212
+ }, Ce({ _: 2 }, [
213
213
  e.$slots.optionPdf ? {
214
214
  name: "optionPdf",
215
215
  fn: z(() => [
@@ -231,14 +231,14 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
231
231
  ]),
232
232
  key: "2"
233
233
  } : void 0
234
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
234
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
235
235
  P.value ? (s(), o("svg", {
236
236
  key: 2,
237
- xmlns: y(Le),
237
+ xmlns: h(Le),
238
238
  class: L([{ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value }, "relation-circle"]),
239
239
  viewBox: `0 0 ${a.value.width <= 0 ? 10 : a.value.width} ${a.value.height <= 0 ? 10 : a.value.height}`,
240
240
  width: "100%",
241
- style: h(`user-select:none; background:${l.value.style.backgroundColor}`)
241
+ style: "user-select:none; background:transparent"
242
242
  }, [
243
243
  we("circle", {
244
244
  cx: (a.value.width <= 0 ? 1e-4 : a.value.width) / 2,
@@ -250,9 +250,9 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
250
250
  class: "main-circle"
251
251
  }, null, 8, De),
252
252
  ae.value ? (s(), o("g", Ve, [
253
- (s(!0), o(b, null, O(m.value, (t, i) => (s(), o("path", {
253
+ (s(!0), o(b, null, O(y.value, (t, i) => (s(), o("path", {
254
254
  key: `relation_${i}`,
255
- style: h(q(t)),
255
+ style: p(q(t)),
256
256
  stroke: Y(t),
257
257
  class: L(["relation", { "vue-ui-relation-circle-selected": n.value.hasOwnProperty("id") && v.value.includes(t.id) }]),
258
258
  d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${a.value.width / 2},${a.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
@@ -261,10 +261,10 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
261
261
  "stroke-linecap": "round"
262
262
  }, null, 14, We))), 128))
263
263
  ])) : (s(), o("g", Xe, [
264
- (s(!0), o(b, null, O(m.value, (t, i) => (s(), o("line", {
264
+ (s(!0), o(b, null, O(y.value, (t, i) => (s(), o("line", {
265
265
  key: `relation_${i}`,
266
266
  stroke: Y(t),
267
- style: h(q(t)),
267
+ style: p(q(t)),
268
268
  x1: t.x1,
269
269
  x2: t.x2,
270
270
  y1: t.y1,
@@ -279,11 +279,11 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
279
279
  transform: he(t),
280
280
  x: fe(t),
281
281
  y: t.y + 5,
282
- onClick: (_) => H(t),
282
+ onClick: (k) => H(t),
283
283
  class: "vue-ui-relation-circle-legend",
284
284
  "transform-origin": "start",
285
285
  "font-weight": n.value.id === t.id ? "900" : "400",
286
- style: h(`font-family:${l.value.style.fontFamily};${ge(t)}`),
286
+ style: p(`font-family:${l.value.style.fontFamily};${ge(t)}`),
287
287
  "font-size": l.value.style.labels.fontSize,
288
288
  fill: l.value.style.labels.color
289
289
  }, be(t.label), 13, qe))), 128)),
@@ -291,18 +291,18 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
291
291
  cx: t.x,
292
292
  cy: t.y,
293
293
  key: `plot_${i}`,
294
- style: h(de(t)),
294
+ style: p(de(t)),
295
295
  class: "vue-ui-relation-circle-plot",
296
296
  fill: l.value.style.plot.color,
297
- onClick: (_) => H(t),
297
+ onClick: (k) => H(t),
298
298
  r: l.value.style.plot.radius
299
299
  }, null, 12, He))), 128)),
300
300
  $(e.$slots, "svg", { svg: a.value }, void 0, !0)
301
- ], 14, Ue)) : p("", !0),
301
+ ], 10, Ue)) : _("", !0),
302
302
  e.$slots.watermark ? (s(), o("div", Je, [
303
- $(e.$slots, "watermark", K(Q({ isPrinting: y(M) || y(j) })), void 0, !0)
304
- ])) : p("", !0),
305
- P.value ? p("", !0) : (s(), E(je, {
303
+ $(e.$slots, "watermark", K(Q({ isPrinting: h(M) || h(j) })), void 0, !0)
304
+ ])) : _("", !0),
305
+ P.value ? _("", !0) : (s(), E(je, {
306
306
  key: 4,
307
307
  config: {
308
308
  type: "relationCircle",
@@ -316,7 +316,7 @@ const Ge = ["id"], Ue = ["xmlns", "viewBox"], De = ["cx", "cy", "r", "stroke", "
316
316
  }, null, 8, ["config"]))
317
317
  ], 12, Ge));
318
318
  }
319
- }, at = /* @__PURE__ */ Be(Ke, [["__scopeId", "data-v-1d0ed086"]]);
319
+ }, at = /* @__PURE__ */ Be(Ke, [["__scopeId", "data-v-bfb8dffb"]]);
320
320
  export {
321
321
  at as default
322
322
  };