vue-data-ui 2.4.51 → 2.4.53

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 (179) hide show
  1. package/dist/{Arrow-2a_SwBgz.cjs → Arrow-BGjtcB03.cjs} +1 -1
  2. package/dist/{Arrow-BUz63pb2.js → Arrow-XbzVXHDF.js} +1 -1
  3. package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-CiQzR1fE.js} +1 -1
  4. package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-DGRZS55E.cjs} +1 -1
  5. package/dist/{DataTable-G3ICK-5h.cjs → DataTable-DWQiMziO.cjs} +1 -1
  6. package/dist/{DataTable-DGf6RrOJ.js → DataTable-jvL0XGWl.js} +2 -2
  7. package/dist/{Legend-BiuPlEMg.cjs → Legend-BstxUr4T.cjs} +1 -1
  8. package/dist/{Legend-BLaZxMge.js → Legend-DcIfRSNC.js} +1 -1
  9. package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-CeJ2R9gK.cjs} +1 -1
  10. package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Ve0s76sL.js} +1 -1
  11. package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DQPbe0G_.cjs} +1 -1
  12. package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-IHG7xTmx.js} +3 -3
  13. package/dist/{Shape-yducHWd0.cjs → Shape-Bzx4qKcd.cjs} +1 -1
  14. package/dist/{Shape-DIKzzpFm.js → Shape-Rg6yW7m3.js} +1 -1
  15. package/dist/{Slicer-Cxdl3cDt.js → Slicer-CP2Z31Lc.js} +2 -2
  16. package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-CPp7_WWa.cjs} +1 -1
  17. package/dist/{Title-Bk_55doC.cjs → Title-CSyDhu3S.cjs} +1 -1
  18. package/dist/{Title-aSAft5dl.js → Title-DLo3Zo2_.js} +1 -1
  19. package/dist/{Tooltip-smutPF--.js → Tooltip-CA1QhFeE.js} +1 -1
  20. package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-D88h1zvE.cjs} +1 -1
  21. package/dist/{index-DhDYBLBe.cjs → index-C3wsuQ2C.cjs} +1 -1
  22. package/dist/{index-BbPeL8Gp.js → index-DhxnZ6ZS.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BN8claGG.js → useNestedProp-BcqToEU0.js} +1 -1
  25. package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-CFwQtnNB.cjs} +1 -1
  26. package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-Dglf1bsw.cjs} +1 -1
  27. package/dist/{usePrinter-DaybDVqP.js → usePrinter-mDGfOQZA.js} +1 -1
  28. package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-BM5qFlPf.cjs} +1 -1
  29. package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-C6tJVggL.js} +60 -60
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-BFzCyxbR.js} +30 -30
  33. package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-DiL5x37F.cjs} +2 -2
  34. package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-DDp8hUlk.js} +3 -3
  35. package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kv5FuXqU.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-ORFLMq65.js} +42 -42
  37. package/dist/vue-ui-age-pyramid-xYMc6DPS.cjs +1 -0
  38. package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-CYyuSx8D.js} +1 -1
  39. package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-J_Ssv585.cjs} +1 -1
  40. package/dist/vue-ui-bullet-BbOqOHbK.cjs +34 -0
  41. package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-D8w5qQKc.js} +41 -41
  42. package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-B7jJlgII.js} +61 -61
  43. package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BbKj6Lt5.cjs} +2 -2
  44. package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-3ntrCePt.js} +50 -50
  45. package/dist/vue-ui-carousel-table-Cazhvs3E.cjs +1 -0
  46. package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-DyFTfNZi.cjs} +3 -3
  47. package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-apUInPn_.js} +66 -66
  48. package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CFTO66GQ.js} +2 -2
  49. package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-CsNO0-Tw.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-C-pDSWwi.js} +2 -2
  51. package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-DddJvm7i.cjs} +1 -1
  52. package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-DSqN9pA7.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-DWAbSFx3.js} +2 -2
  54. package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-DSeDfu4H.js} +57 -57
  55. package/dist/vue-ui-donut-DrAes-Cb.cjs +1 -0
  56. package/dist/vue-ui-donut-evolution-CYtTDj7r.cjs +1 -0
  57. package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-D7h33-ti.js} +66 -66
  58. package/dist/vue-ui-dumbbell-DAK7iUrl.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-LF5uy2pG.js} +46 -46
  60. package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-ClPKB4R5.js} +43 -43
  61. package/dist/vue-ui-flow-u3UVnWTH.cjs +1 -0
  62. package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-BIXUXI8z.js} +59 -59
  63. package/dist/vue-ui-funnel-BY7rqfpW.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-CEnGrqn3.js} +54 -54
  65. package/dist/vue-ui-galaxy-DBnbXO8c.cjs +1 -0
  66. package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-C7Qchm0R.js} +70 -70
  67. package/dist/vue-ui-gauge-CJYWRyeq.cjs +1 -0
  68. package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-C9_Ciat_.cjs} +1 -1
  69. package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-CKZRt29V.js} +3 -3
  70. package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-BlbOJnS0.js} +87 -87
  71. package/dist/vue-ui-heatmap-olBNo_Ui.cjs +1 -0
  72. package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CBpL_OyR.js} +75 -75
  73. package/dist/vue-ui-history-plot-Cyd53pxt.cjs +1 -0
  74. package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-C2XDua17.js} +3 -3
  75. package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-CkcQ40VT.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-CpeOqmXd.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-DXF2Zpi6.js} +2 -2
  78. package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-ekgpnwl8.js} +52 -52
  79. package/dist/vue-ui-molecule-qQjh4AkD.cjs +1 -0
  80. package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-CV30YU_f.js} +35 -35
  81. package/dist/vue-ui-mood-radar-KoW8hhxL.cjs +1 -0
  82. package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-AkaYvLCi.cjs} +2 -2
  83. package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-DZ_eS-bB.js} +90 -90
  84. package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-Bl1UUCFU.cjs} +2 -2
  85. package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-YfHn7AeD.js} +52 -52
  86. package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-BEqbS5A6.js} +62 -62
  87. package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-Dv_UD2bi.cjs} +2 -2
  88. package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-BU_pD15l.js} +50 -50
  89. package/dist/vue-ui-quadrant-DO6afeTp.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-ByDBV3lo.cjs} +1 -1
  91. package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-U-1paiOI.js} +9 -9
  92. package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-B5FUXS1e.js} +59 -59
  93. package/dist/vue-ui-radar-DLsIiPBR.cjs +1 -0
  94. package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-D4-ebrWA.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-DcCUrP6L.js} +2 -2
  96. package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-2i7B4Yf-.js} +56 -56
  97. package/dist/vue-ui-relation-circle-jPx6gmw1.cjs +1 -0
  98. package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-6JF72UH8.cjs} +2 -2
  99. package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-DG0DQD21.js} +65 -65
  100. package/dist/vue-ui-scatter-CfbMuDQy.cjs +1 -0
  101. package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-j6SU-TUb.js} +102 -102
  102. package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-B6hhgFz_.js} +1 -1
  103. package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-BKfP266_.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-99lBQ_mF.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-pdtGfiV6.js} +3 -3
  106. package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-8UembS7P.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-fOlIEhGS.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-BkPSkOrh.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-CV5Uq241.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-DUNqm_AP.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-qB9reaJo.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-D0hLQuMH.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-Mmm3mt-c.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-9yQ-E0co.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CuB-M26R.cjs} +1 -1
  116. package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-D_QkkgS-.js} +4 -4
  117. package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-Du8Hm28x.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-BDubVDPN.js} +5 -5
  119. package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-B_I1tmuS.cjs} +1 -1
  120. package/dist/vue-ui-stackbar-DHnilreT.cjs +6 -0
  121. package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-rNiqr7aF.js} +43 -43
  122. package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-DPn3qgdB.js} +78 -78
  123. package/dist/vue-ui-strip-plot-DlRej1u9.cjs +1 -0
  124. package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BrZ__Cd2.js} +1 -1
  125. package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-DLcFdjyM.cjs} +1 -1
  126. package/dist/vue-ui-table-heatmap-DIkXPyqe.cjs +1 -0
  127. package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-DQXI2uPZ.js} +38 -38
  128. package/dist/vue-ui-table-sparkline-BUNsAEVY.js +647 -0
  129. package/dist/vue-ui-table-sparkline-BazGMr3R.cjs +1 -0
  130. package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-DMkD9fS8.js} +74 -74
  131. package/dist/vue-ui-thermometer-_gbnwB1j.cjs +1 -0
  132. package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-BTfgxjIc.cjs} +1 -1
  133. package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-Dv-GSUf1.js} +5 -5
  134. package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-CEMrBJPF.js} +46 -46
  135. package/dist/vue-ui-tiremarks-Ct9y13Sl.cjs +1 -0
  136. package/dist/vue-ui-treemap-D7SBHWJ2.cjs +1 -0
  137. package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-D8AkLDqM.js} +91 -91
  138. package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BnhysoC9.js} +67 -67
  139. package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-_EQI8SXm.cjs} +2 -2
  140. package/dist/vue-ui-waffle-DOhi1BWD.cjs +1 -0
  141. package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-DfRmWfrG.js} +48 -48
  142. package/dist/vue-ui-wheel-BbDtndmW.cjs +1 -0
  143. package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-CU6-VBD1.js} +36 -36
  144. package/dist/vue-ui-word-cloud-CRarnngT.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-CbuHwEkP.js} +66 -66
  146. package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-BRTegbdr.cjs} +1 -1
  147. package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-DsTqLLWp.js} +53 -53
  148. package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-hn3ncIFk.cjs} +2 -2
  149. package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-pSvq591u.js} +14 -14
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
  152. package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
  153. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
  154. package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
  155. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
  156. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
  157. package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
  158. package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
  159. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
  160. package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
  161. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
  162. package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
  163. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
  164. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
  165. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
  166. package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
  167. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
  168. package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
  169. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
  170. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
  171. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
  173. package/dist/vue-ui-table-sparkline-YV8DUOqh.js +0 -600
  174. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
  175. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
  176. package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
  177. package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
  178. package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
  179. package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
@@ -1,17 +1,17 @@
1
- import { computed as p, ref as u, watch as Ye, onMounted as je, onBeforeUnmount as qe, openBlock as r, createElementBlock as n, normalizeClass as z, normalizeStyle as W, unref as c, createBlock as _, createCommentVNode as h, createSlots as He, withCtx as y, renderSlot as m, normalizeProps as M, guardReactiveProps as R, createVNode as Z, createElementVNode as $, Fragment as P, renderList as T, toDisplayString as U, createTextVNode as Te, nextTick as Je } from "vue";
2
- import { u as Ke, c as Qe, t as Ze, a as et, p as x, o as tt, e as F, b as at, g as xe, d as Oe, O as Ae, v as ot, i as Ne, f as V, X as lt, s as ee, w as rt, P as Se, x as st, y as nt, q as ut, r as it } from "./index-BbPeL8Gp.js";
1
+ import { computed as p, ref as u, watch as He, onMounted as Ye, onBeforeUnmount as je, openBlock as r, createElementBlock as n, normalizeClass as z, normalizeStyle as W, unref as c, createBlock as _, createCommentVNode as h, createSlots as qe, withCtx as y, renderSlot as m, normalizeProps as M, guardReactiveProps as R, createVNode as ee, createElementVNode as $, Fragment as P, renderList as T, toDisplayString as U, createTextVNode as Te, nextTick as Je } from "vue";
2
+ import { u as Ke, c as Qe, t as Ze, a as et, p as x, o as tt, e as F, b as at, g as xe, d as Oe, O as Ae, v as ot, i as Ne, f as V, X as lt, s as te, w as rt, P as Se, x as st, y as nt, q as ut, r as it } from "./index-DhxnZ6ZS.js";
3
3
  import { t as ct, u as dt } from "./useResponsive-CoxXLe23.js";
4
- import { _ as vt } from "./Title-aSAft5dl.js";
5
- import { u as pt, U as ht } from "./usePrinter-DaybDVqP.js";
6
- import { _ as gt } from "./Tooltip-smutPF--.js";
7
- import ft from "./vue-ui-sparkbar-q0G4GvFm.js";
8
- import { L as yt } from "./Legend-BLaZxMge.js";
9
- import { D as mt } from "./DataTable-DGf6RrOJ.js";
10
- import bt from "./vue-ui-skeleton-Bniq21d9.js";
11
- import kt from "./vue-ui-accordion-5d5iVpr7.js";
12
- import { u as Fe } from "./useNestedProp-BN8claGG.js";
13
- import { _ as Ct } from "./PackageVersion-CxJghxYD.js";
14
- import { P as wt } from "./PenAndPaper-ZdZEumki.js";
4
+ import { _ as vt } from "./Title-DLo3Zo2_.js";
5
+ import { u as pt, U as ht } from "./usePrinter-mDGfOQZA.js";
6
+ import { _ as gt } from "./Tooltip-CA1QhFeE.js";
7
+ import ft from "./vue-ui-sparkbar-qB9reaJo.js";
8
+ import { L as yt } from "./Legend-DcIfRSNC.js";
9
+ import { D as mt } from "./DataTable-jvL0XGWl.js";
10
+ import bt from "./vue-ui-skeleton-pdtGfiV6.js";
11
+ import kt from "./vue-ui-accordion-DDp8hUlk.js";
12
+ import { u as Fe } from "./useNestedProp-BcqToEU0.js";
13
+ import { _ as Ct } from "./PackageVersion-Ve0s76sL.js";
14
+ import { P as wt } from "./PenAndPaper-IHG7xTmx.js";
15
15
  import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"], At = ["stop-color"], Nt = { key: 0 }, St = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ft = { key: 0 }, It = ["d", "stroke", "stroke-width"], Lt = ["d", "stroke", "stroke-width"], zt = { key: 1 }, Mt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Rt = ["points", "stroke", "stroke-width"], Ut = ["points", "stroke", "stroke-width", "fill"], Vt = { key: 2 }, Et = ["cx", "cy", "fill", "r", "stroke"], Bt = {
@@ -38,10 +38,10 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
38
38
  },
39
39
  emits: ["selectLegend"],
40
40
  setup(Ie, { expose: Le, emit: ze }) {
41
- const g = Ie, { vue_ui_radar: Me } = Ke(), I = p(() => !!g.dataset && Object.keys(g.dataset).length), w = u(Qe()), Re = u(null), X = u(!1), Y = u(""), te = u(0), O = u(null), ae = u(null), oe = u(null), le = u(null), re = u(null), se = u(0), ne = u(0), ue = u(0), e = p({
41
+ const g = Ie, { vue_ui_radar: Me } = Ke(), I = p(() => !!g.dataset && Object.keys(g.dataset).length), w = u(Qe()), Re = u(null), X = u(!1), H = u(""), ae = u(0), O = u(null), oe = u(null), le = u(null), re = u(null), se = u(null), ne = u(0), ue = u(0), ie = u(0), e = p({
42
42
  get: () => ve(),
43
43
  set: (t) => t
44
- }), { userOptionsVisible: ie, setUserOptionsVisibility: ce, keepUserOptionState: de } = _t({ config: e.value });
44
+ }), { userOptionsVisible: Y, setUserOptionsVisibility: ce, keepUserOptionState: de } = _t({ config: e.value });
45
45
  function ve() {
46
46
  const t = Fe({
47
47
  userConfig: g.config,
@@ -55,8 +55,8 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
55
55
  customPalette: et[t.theme] || x
56
56
  } : t;
57
57
  }
58
- Ye(() => g.config, (t) => {
59
- e.value = ve(), pe(), se.value += 1, ne.value += 1, ue.value += 1;
58
+ He(() => g.config, (t) => {
59
+ e.value = ve(), Y.value = !e.value.showOnChartHover, pe(), ne.value += 1, ue.value += 1, ie.value += 1;
60
60
  }, { deep: !0 });
61
61
  const E = u(null);
62
62
  function pe() {
@@ -67,19 +67,19 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
67
67
  const t = ct(() => {
68
68
  const { width: a, height: o } = dt({
69
69
  chart: O.value,
70
- title: e.value.style.chart.title.text ? ae.value : null,
71
- legend: e.value.style.chart.legend.show ? oe.value : null,
72
- source: le.value,
73
- noTitle: re.value
70
+ title: e.value.style.chart.title.text ? oe.value : null,
71
+ legend: e.value.style.chart.legend.show ? le.value : null,
72
+ source: re.value,
73
+ noTitle: se.value
74
74
  });
75
75
  i.value.width = a, i.value.height = o;
76
76
  });
77
77
  E.value = new ResizeObserver(t), E.value.observe(O.value.parentNode);
78
78
  }
79
79
  }
80
- je(() => {
80
+ Ye(() => {
81
81
  pe();
82
- }), qe(() => {
82
+ }), je(() => {
83
83
  E.value && E.value.disconnect();
84
84
  });
85
85
  const { isPrinting: he, isImaging: ge, generatePdf: fe, generateImage: ye } = pt({
@@ -270,11 +270,11 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
270
270
  breakpoint: e.value.table.responsiveBreakpoint
271
271
  };
272
272
  return { head: t, body: a, config: o, colNames: t };
273
- }), D = u(null), H = u([]), J = u(null);
273
+ }), D = u(null), J = u([]), K = u(null);
274
274
  function We(t, a) {
275
- H.value = [], D.value = a, X.value = !0;
275
+ J.value = [], D.value = a, X.value = !0;
276
276
  let o = "";
277
- J.value = {
277
+ K.value = {
278
278
  datapoint: t,
279
279
  seriesIndex: a,
280
280
  series: {
@@ -291,7 +291,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
291
291
  series: { categories: f.value, datapoints: b.value, radar: C.value },
292
292
  config: e.value
293
293
  })))
294
- Y.value = l({
294
+ H.value = l({
295
295
  seriesIndex: a,
296
296
  datapoint: t,
297
297
  series: { categories: f.value, datapoints: b.value, radar: C.value },
@@ -300,7 +300,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
300
300
  else {
301
301
  o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
302
302
  for (let s = 0; s < t.values.length; s += 1)
303
- d.value.includes(s) || H.value.push({
303
+ d.value.includes(s) || J.value.push({
304
304
  name: f.value[s].name,
305
305
  value: t.values[s] / t.target * 100,
306
306
  color: f.value[s].color,
@@ -309,21 +309,21 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
309
309
  rounding: e.value.style.chart.tooltip.roundingPercentage,
310
310
  formatter: t.formatter
311
311
  });
312
- Y.value = o;
312
+ H.value = o;
313
313
  }
314
314
  }
315
315
  function _e() {
316
316
  Je(() => {
317
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...N.value.flatMap((v) => [[v.name], ["%"]])], o = g.dataset.series.map((v, Xt) => [v.name, v.target, ...v.values.flatMap((Q) => [
318
- Q,
319
- isNaN(Q / v.target) ? "" : Q / v.target * 100
317
+ const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...N.value.flatMap((v) => [[v.name], ["%"]])], o = g.dataset.series.map((v, Xt) => [v.name, v.target, ...v.values.flatMap((Z) => [
318
+ Z,
319
+ isNaN(Z / v.target) ? "" : Z / v.target * 100
320
320
  ])]), l = t.concat([a]).concat(o), s = ut(l);
321
321
  it({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-radar" });
322
322
  });
323
323
  }
324
324
  const S = u(!1);
325
325
  function Xe(t) {
326
- S.value = t, te.value += 1;
326
+ S.value = t, ae.value += 1;
327
327
  }
328
328
  function $e() {
329
329
  k.value.showTable = !k.value.showTable;
@@ -332,7 +332,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
332
332
  k.value.showTooltip = !k.value.showTooltip;
333
333
  }
334
334
  const G = u(!1);
335
- function K() {
335
+ function Q() {
336
336
  G.value = !G.value;
337
337
  }
338
338
  return Le({
@@ -342,7 +342,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
342
342
  generateImage: ye,
343
343
  toggleTable: $e,
344
344
  toggleTooltip: Pe,
345
- toggleAnnotator: K
345
+ toggleAnnotator: Q
346
346
  }), (t, a) => (r(), n("div", {
347
347
  class: z(`vue-ui-radar ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
348
348
  ref_key: "radarChart",
@@ -358,23 +358,23 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
358
358
  backgroundColor: e.value.style.chart.backgroundColor,
359
359
  color: e.value.style.chart.color,
360
360
  active: G.value,
361
- onClose: K
361
+ onClose: Q
362
362
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
363
363
  Ue.value ? (r(), n("div", {
364
364
  key: 1,
365
365
  ref_key: "noTitle",
366
- ref: re,
366
+ ref: se,
367
367
  class: "vue-data-ui-no-title-space",
368
368
  style: "height:36px; width: 100%;background:transparent"
369
369
  }, null, 512)) : h("", !0),
370
370
  e.value.style.chart.title.text ? (r(), n("div", {
371
371
  key: 2,
372
372
  ref_key: "chartTitle",
373
- ref: ae,
373
+ ref: oe,
374
374
  style: "width:100%;background:transparent;padding-bottom:12px"
375
375
  }, [
376
376
  (r(), _(vt, {
377
- key: `title_${se.value}`,
377
+ key: `title_${ne.value}`,
378
378
  config: {
379
379
  title: {
380
380
  cy: "radar-div-title",
@@ -387,10 +387,10 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
387
387
  }
388
388
  }, null, 8, ["config"]))
389
389
  ], 512)) : h("", !0),
390
- e.value.userOptions.show && I.value && (c(de) || c(ie)) ? (r(), _(ht, {
390
+ e.value.userOptions.show && I.value && (c(de) || c(Y)) ? (r(), _(ht, {
391
391
  ref_key: "details",
392
392
  ref: Re,
393
- key: `user_options_${te.value}`,
393
+ key: `user_options_${ae.value}`,
394
394
  backgroundColor: e.value.style.chart.backgroundColor,
395
395
  color: e.value.style.chart.color,
396
396
  isImaging: c(ge),
@@ -415,11 +415,11 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
415
415
  onGenerateImage: c(ye),
416
416
  onToggleTable: $e,
417
417
  onToggleTooltip: Pe,
418
- onToggleAnnotator: K,
418
+ onToggleAnnotator: Q,
419
419
  style: W({
420
- visibility: c(de) ? c(ie) ? "visible" : "hidden" : "visible"
420
+ visibility: c(de) ? c(Y) ? "visible" : "hidden" : "visible"
421
421
  })
422
- }, He({ _: 2 }, [
422
+ }, qe({ _: 2 }, [
423
423
  t.$slots.optionTooltip ? {
424
424
  name: "optionTooltip",
425
425
  fn: y(() => [
@@ -477,7 +477,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
477
477
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
478
478
  style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
479
479
  }, [
480
- Z(Ct),
480
+ ee(Ct),
481
481
  $("defs", null, [
482
482
  (r(!0), n(P, null, T(f.value, (o, l) => (r(), n("radialGradient", {
483
483
  cx: "50%",
@@ -489,11 +489,11 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
489
489
  }, [
490
490
  $("stop", {
491
491
  offset: "0%",
492
- "stop-color": c(ee)(c(rt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
492
+ "stop-color": c(te)(c(rt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
493
493
  }, null, 8, Ot),
494
494
  $("stop", {
495
495
  offset: "100%",
496
- "stop-color": c(ee)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
496
+ "stop-color": c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
497
497
  }, null, 8, At)
498
498
  ], 8, xt))), 256))
499
499
  ]),
@@ -558,7 +558,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
558
558
  points: c(Se)(C.value.map((s) => s.plots[l]), !1, !0),
559
559
  stroke: o.color,
560
560
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
561
- fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${w.value}_${l})` : c(ee)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
561
+ fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${w.value}_${l})` : c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
562
562
  class: z({ "animated-out": d.value.includes(l) && e.value.useCssAnimation, "animated-in": A.value && L.value === l && e.value.useCssAnimation })
563
563
  }, null, 10, Ut)) : h("", !0)
564
564
  ])
@@ -600,10 +600,10 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
600
600
  }, null, 8, ["config"])),
601
601
  $("div", {
602
602
  ref_key: "chartLegend",
603
- ref: oe
603
+ ref: le
604
604
  }, [
605
605
  e.value.style.chart.legend.show ? (r(), _(yt, {
606
- key: `legend_${ue.value}`,
606
+ key: `legend_${ie.value}`,
607
607
  legendSet: N.value,
608
608
  config: Ge.value,
609
609
  onClickMarker: a[1] || (a[1] = ({ i: o }) => be(o))
@@ -628,12 +628,12 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
628
628
  t.$slots.source ? (r(), n("div", {
629
629
  key: 7,
630
630
  ref_key: "source",
631
- ref: le,
631
+ ref: re,
632
632
  dir: "auto"
633
633
  }, [
634
634
  m(t.$slots, "source", {}, void 0, !0)
635
635
  ], 512)) : h("", !0),
636
- Z(gt, {
636
+ ee(gt, {
637
637
  show: k.value.showTooltip && X.value,
638
638
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
639
639
  color: e.value.style.chart.tooltip.color,
@@ -645,22 +645,22 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
645
645
  position: e.value.style.chart.tooltip.position,
646
646
  offsetY: e.value.style.chart.tooltip.offsetY,
647
647
  parent: O.value,
648
- content: Y.value,
648
+ content: H.value,
649
649
  isFullscreen: S.value,
650
650
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
651
651
  }, {
652
652
  "tooltip-before": y(() => [
653
- m(t.$slots, "tooltip-before", M(R({ ...J.value })), void 0, !0)
653
+ m(t.$slots, "tooltip-before", M(R({ ...K.value })), void 0, !0)
654
654
  ]),
655
655
  "tooltip-after": y(() => [
656
656
  ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? h("", !0) : (r(), n("div", Gt, [
657
- Z(ft, {
658
- dataset: H.value,
657
+ ee(ft, {
658
+ dataset: J.value,
659
659
  config: Ve.value,
660
660
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity
661
661
  }, null, 8, ["dataset", "config", "backgroundOpacity"])
662
662
  ])),
663
- m(t.$slots, "tooltip-after", M(R({ ...J.value })), void 0, !0)
663
+ m(t.$slots, "tooltip-after", M(R({ ...K.value })), void 0, !0)
664
664
  ]),
665
665
  _: 3
666
666
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -682,7 +682,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
682
682
  }, {
683
683
  content: y(() => [
684
684
  (r(), _(mt, {
685
- key: `table_${ne.value}`,
685
+ key: `table_${ue.value}`,
686
686
  colNames: B.value.colNames,
687
687
  head: B.value.head,
688
688
  body: B.value.body,
@@ -703,7 +703,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["id"], Ot = ["stop-color"],
703
703
  }, 8, ["config"])) : h("", !0)
704
704
  ], 46, Pt));
705
705
  }
706
- }, ua = /* @__PURE__ */ $t(Wt, [["__scopeId", "data-v-a0338c02"]]);
706
+ }, ua = /* @__PURE__ */ $t(Wt, [["__scopeId", "data-v-921087d8"]]);
707
707
  export {
708
708
  ua as default
709
709
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-C3wsuQ2C.cjs"),ne=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./Title-CSyDhu3S.cjs"),se=require("./usePrinter-Dglf1bsw.cjs"),Be=require("./Tooltip-D88h1zvE.cjs"),Pe=require("./vue-ui-sparkbar-DUNqm_AP.cjs"),_e=require("./Legend-BstxUr4T.cjs"),$e=require("./DataTable-DWQiMziO.cjs"),xe=require("./vue-ui-skeleton-99lBQ_mF.cjs"),Ne=require("./vue-ui-accordion-kv5FuXqU.cjs"),ue=require("./useNestedProp-CFwQtnNB.cjs"),Te=require("./PackageVersion-CeJ2R9gK.cjs"),Se=require("./PenAndPaper-DQPbe0G_.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Oe=["id"],Ae=["xmlns","viewBox"],Fe=["id"],Le=["stop-color"],ze=["stop-color"],Ie={key:0},Re=["x1","y1","x2","y2","stroke","stroke-width"],qe={key:0},Me=["d","stroke","stroke-width"],Ue=["d","stroke","stroke-width"],De={key:1},Ge=["x","y","text-anchor","font-size","fill","onMouseenter"],We=["points","stroke","stroke-width"],He=["points","stroke","stroke-width","fill"],Xe={key:2},je=["cx","cy","fill","r","stroke"],Ye={key:5,class:"vue-data-ui-watermark"},Je=["onClick"],Ke={key:0,style:{"max-width":"200px",margin:"0 auto"}},Qe={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ie,{expose:ce,emit:de}){const d=ie,{vue_ui_radar:ve}=n.useConfig(),C=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),f=e.ref(n.createUid()),pe=e.ref(null),x=e.ref(!1),N=e.ref(""),L=e.ref(0),m=e.ref(null),z=e.ref(null),I=e.ref(null),R=e.ref(null),q=e.ref(null),M=e.ref(0),U=e.ref(0),D=e.ref(0),t=e.computed({get:()=>H(),set:o=>o}),{userOptionsVisible:T,setUserOptionsVisibility:G,keepUserOptionState:W}=Ee.useUserOptionState({config:t.value});function H(){const o=ue.useNestedProp({userConfig:d.config,defaultConfig:ve});return o.theme?{...ue.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=H(),T.value=!t.value.showOnChartHover,X(),M.value+=1,U.value+=1,D.value+=1},{deep:!0});const B=e.ref(null);function X(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=ne.throttle(()=>{const{width:a,height:l}=ne.useResponsive({chart:m.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:R.value,noTitle:q.value});u.value.width=a,u.value.height=l});B.value=new ResizeObserver(o),B.value.observe(m.value.parentNode)}}e.onMounted(()=>{X()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:j,isImaging:Y,generatePdf:J,generateImage:K}=se.usePrinter({elementId:`vue-ui-radar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),ge=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=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}),he=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}}})),u=e.ref({height:312,width:512}),i=e.ref([]),w=e.ref(null),y=e.ref(!1);function Z(o){y.value=!0,i.value.includes(o)?(w.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{y.value=!1,w.value=null},500)):(i.value.push(o),setTimeout(()=>{y.value=!1},500)),de("selectLegend",k.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function fe(){return k.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_${f.value}_${a}`,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),p=e.computed(()=>C.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${f.value}_${a}`,formatter:o.formatter||null})):[]),ee=e.computed(()=>Math.max(...p.value.flatMap(o=>o.values))),te=e.computed(()=>p.value.length),S=e.computed(()=>Math.min(u.value.width,u.value.height)/3),oe=e.computed(()=>n.createPolygonPath({plot:{x:u.value.width/2,y:u.value.height/2},radius:S.value,sides:te.value,rotation:0})),me=e.computed(()=>{const o=[];for(let a=0;a<S.value;a+=S.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),h=e.computed(()=>oe.value.coordinates.map((o,a)=>{const l=p.value[a].values.map(r=>ye({centerX:u.value.width/2,centerY:u.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(p.value[a].target||ee.value)}));return{...o,...p.value[a],plots:l}}));function E({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>u.value.width/2&&(o+=12,l="start"),o<u.value.width/2&&(o-=12,l="end"),a>u.value.height/2&&(a+=20),a<u.value.height/2&&(a-=12),a===u.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ye({centerX:o,centerY:a,apexX:l,apexY:r,proportion:s}){return{x:o+(l-o)*s,y:a+(r-a)*s}}const k=e.computed(()=>{const o=p.value.map((a,l)=>a.values.map(r=>r/(a.target||ee.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,s)=>r+s,0)/p.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>Z(l),isSegregated:i.value.includes(l)}))}),ke=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":""})),P=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...k.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((s,c)=>`${n.applyDataLabel(r.formatter,s,n.dataLabel({p:v.value[c].prefix,v:s,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(s/r.target)?"":n.dataLabel({v:s/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}}),_=e.ref(null),V=e.ref([]),O=e.ref(null);function be(o,a){V.value=[],_.value=a,x.value=!0;let l="";O.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})))N.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 s=0;s<o.values.length;s+=1)i.value.includes(s)||V.value.push({name:v.value[s].name,value:o.values[s]/o.target*100,color:v.value[s].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[s].prefix??"",v:o.values[s],s:v.value[s].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});N.value=l}}function ae(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...k.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,et)=>[c.name,c.target,...c.values.flatMap(F=>[F,isNaN(F/c.target)?"":F/c.target*100])]),r=o.concat([a]).concat(l),s=n.createCsvContent(r);n.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const b=e.ref(!1);function Ce(o){b.value=o,L.value+=1}function le(){g.value.showTable=!g.value.showTable}function re(){g.value.showTooltip=!g.value.showTooltip}const $=e.ref(!1);function A(){$.value=!$.value}return ce({getData:fe,generatePdf:J,generateCsv:ae,generateImage:K,toggleTable:le,toggleTooltip:re,toggleAnnotator:A}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:m,id:`vue-ui-radar_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[3]||(a[3]=()=>e.unref(G)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Se.PenAndPaper,{key:0,parent:m.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:A},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ge.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${M.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&&C.value&&(e.unref(W)||e.unref(T))?(e.openBlock(),e.createBlock(se.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Y),isPrinting:e.unref(j),uid:f.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:b.value,isTooltip:g.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(J),onGenerateCsv:ae,onGenerateImage:e.unref(K),onToggleTable:le,onToggleTooltip:re,onToggleAnnotator:A,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(T)?"visible":"hidden":"visible"})},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,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Te._sfc_main),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_${f.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,Le),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,ze)],8,Fe))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.width/2,y1:u.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,Re))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:u.value.width/2,y:u.value.height/2},radius:l,sides:te.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,Me))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:oe.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,Ue),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:E(l).x,y:E(l).y,"text-anchor":E(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:s=>be(l,r),onMouseleave:a[0]||(a[0]=s=>{x.value=!1,_.value=null})},e.toDisplayString(l.name),41,Ge))),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(s=>s.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":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,We)):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(s=>s.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_${f.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":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,He)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Xe,[(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,(s,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:_.value!==null&&_.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":y.value&&w.value===c&&t.value.useCssAnimation})},null,10,je))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,Ae)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:6,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:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${D.value}`,legendSet:k.value,config:ke.value,onClickMarker:a[1]||(a[1]=({i:l})=>Z(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>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,Je)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:R,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:g.value.showTooltip&&x.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:m.value,content:N.value,isFullscreen:b.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({...O.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",Ke,[e.createVNode(Pe.default,{dataset:V.value,config:he.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity},null,8,["dataset","config","backgroundOpacity"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isFullscreen","isCustom"]),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:8,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($e.DataTable,{key:`table_${U.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.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)],46,Oe))}},Ze=Ve._export_sfc(Qe,[["__scopeId","data-v-921087d8"]]);exports.default=Ze;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DhDYBLBe.cjs"),L=require("./useNestedProp-BphUExEh.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},A=["src","height","width"],R=["xmlns","height","width"],X=["id"],j=["stop-color"],F=["stop-color"],I=["points","fill","stroke","stroke-width"],O=["src","alt","height","width","id"],Y=["xmlns","viewBox","height","id"],G=["id"],q=["stop-color"],U=["stop-color"],H=["points","fill","stroke"],K=["xmlns","height"],P=["onClick","onMouseenter","onKeyup"],T=["onMouseenter"],W={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(k,{expose:_,emit:S}){const i=k,{vue_ui_rating:z}=a.useConfig(),d=e.ref(a.createUid()),f=e.ref(!1),s=e.ref(void 0),y=e.ref([]),t=e.computed({get:()=>g(),set:o=>o});function g(){return L.useNestedProp({userConfig:i.config,defaultConfig:z})}e.watch(()=>i.config,o=>{t.value=g(),h()},{deep:!0});const w=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)?N(i.dataset.rating):i.dataset.rating),B=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)),r=e.ref(w.value),m=e.computed(()=>t.value.type==="image"),c=e.computed(()=>t.value.readonly);function N(o){let n=0,l=0;for(const u in o){const V=parseInt(u),b=o[u];n+=V*b,l+=b}if(l===0)return 0;const v=n/l;return Math.min(t.value.to,Math.max(t.value.from,v))}e.onMounted(()=>{h()});function h(){a.objectIsEmpty(i.dataset)&&a.error({componentName:"VueUiRating",type:"dataset"}),y.value=[];for(let o=t.value.from;o<=t.value.to;o+=1)y.value.push(o)}function p(o,n=!1){return o>s.value||c.value?n?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:n?1:t.value.style.star.useGradient?`url(#star_gradient_under_${d.value})`:t.value.style.star.activeColor}function x(o,n=!1){const l=r.value-o,v=n?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*v;default:return l*v}}function $(o){c.value||(r.value=o,S("rate",o))}function C(){return r.value}function E(o=!0){c.value=o}return _({getData:C,toggleReadonly:E}),(o,n)=>(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:n[2]||(n[2]=l=>f.value=!0),onMouseleave:n[3]||(n[3]=l=>{f.value=!1,s.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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.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`)},[m.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(s.value)?t.value.style.image.inactiveOpacity:p(l,!0)}`)},null,12,A)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.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(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,j),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,F)],8,X)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(s.value)?t.value.style.star.inactiveColor:p(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:s.value?p(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,I)],8,R)),m.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,${x(v,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,O)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${x(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(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,q),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,U)],8,G)]),e.createElementVNode("polygon",{points:e.unref(a.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,H)],8,Y)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(a.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=>$(l),onMouseenter:u=>s.value=l,onMouseleave:n[0]||(n[0]=u=>s.value=void 0),tabindex:"0",onKeyup:e.withKeys(u=>$(l),["enter"])},null,40,P)),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=>s.value=l,onMouseleave:n[1]||(n[1]=u=>s.value=void 0)},null,40,T)):e.createCommentVNode("",!0)],12,K)),t.value.style.tooltip.show&&B.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:${s.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.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.tooltip.formatter,i.dataset.rating[l],e.unref(a.dataLabel)({v:i.dataset.rating[l],r:t.value.style.tooltip.roundingValue}),t.value)),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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},J=D._export_sfc(W,[["__scopeId","data-v-d90e158f"]]);exports.default=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-C3wsuQ2C.cjs"),L=require("./useNestedProp-CFwQtnNB.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},A=["src","height","width"],R=["xmlns","height","width"],X=["id"],j=["stop-color"],F=["stop-color"],I=["points","fill","stroke","stroke-width"],O=["src","alt","height","width","id"],Y=["xmlns","viewBox","height","id"],G=["id"],q=["stop-color"],U=["stop-color"],H=["points","fill","stroke"],K=["xmlns","height"],P=["onClick","onMouseenter","onKeyup"],T=["onMouseenter"],W={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(k,{expose:_,emit:S}){const i=k,{vue_ui_rating:z}=a.useConfig(),d=e.ref(a.createUid()),f=e.ref(!1),s=e.ref(void 0),y=e.ref([]),t=e.computed({get:()=>g(),set:o=>o});function g(){return L.useNestedProp({userConfig:i.config,defaultConfig:z})}e.watch(()=>i.config,o=>{t.value=g(),h()},{deep:!0});const w=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)?N(i.dataset.rating):i.dataset.rating),B=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)),r=e.ref(w.value),m=e.computed(()=>t.value.type==="image"),c=e.computed(()=>t.value.readonly);function N(o){let n=0,l=0;for(const u in o){const V=parseInt(u),b=o[u];n+=V*b,l+=b}if(l===0)return 0;const v=n/l;return Math.min(t.value.to,Math.max(t.value.from,v))}e.onMounted(()=>{h()});function h(){a.objectIsEmpty(i.dataset)&&a.error({componentName:"VueUiRating",type:"dataset"}),y.value=[];for(let o=t.value.from;o<=t.value.to;o+=1)y.value.push(o)}function p(o,n=!1){return o>s.value||c.value?n?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:n?1:t.value.style.star.useGradient?`url(#star_gradient_under_${d.value})`:t.value.style.star.activeColor}function x(o,n=!1){const l=r.value-o,v=n?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*v;default:return l*v}}function $(o){c.value||(r.value=o,S("rate",o))}function C(){return r.value}function E(o=!0){c.value=o}return _({getData:C,toggleReadonly:E}),(o,n)=>(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:n[2]||(n[2]=l=>f.value=!0),onMouseleave:n[3]||(n[3]=l=>{f.value=!1,s.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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.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`)},[m.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(s.value)?t.value.style.image.inactiveOpacity:p(l,!0)}`)},null,12,A)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.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(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,j),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,F)],8,X)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(s.value)?t.value.style.star.inactiveColor:p(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:s.value?p(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,I)],8,R)),m.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,${x(v,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,O)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${x(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(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,q),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,U)],8,G)]),e.createElementVNode("polygon",{points:e.unref(a.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,H)],8,Y)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(a.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=>$(l),onMouseenter:u=>s.value=l,onMouseleave:n[0]||(n[0]=u=>s.value=void 0),tabindex:"0",onKeyup:e.withKeys(u=>$(l),["enter"])},null,40,P)),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=>s.value=l,onMouseleave:n[1]||(n[1]=u=>s.value=void 0)},null,40,T)):e.createCommentVNode("",!0)],12,K)),t.value.style.tooltip.show&&B.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:${s.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.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.tooltip.formatter,i.dataset.rating[l],e.unref(a.dataLabel)({v:i.dataset.rating[l],r:t.value.style.tooltip.roundingValue}),t.value)),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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),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(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,r.value,e.unref(a.dataLabel)({v:r.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},J=D._export_sfc(W,[["__scopeId","data-v-d90e158f"]]);exports.default=J;
@@ -1,6 +1,6 @@
1
1
  import { ref as h, computed as x, watch as U, onMounted as K, openBlock as a, createElementBlock as i, normalizeStyle as o, createElementVNode as r, toDisplayString as g, createCommentVNode as d, unref as s, Fragment as T, renderList as H, withKeys as P } from "vue";
2
- import { u as W, c as q, o as J, e as Q, i as $, f as _, X as k, w as R, V as F } from "./index-BbPeL8Gp.js";
3
- import { u as Z } from "./useNestedProp-BN8claGG.js";
2
+ import { u as W, c as q, o as J, e as Q, i as $, f as _, X as k, w as R, V as F } from "./index-DhxnZ6ZS.js";
3
+ import { u as Z } from "./useNestedProp-BcqToEU0.js";
4
4
  import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const et = {
6
6
  key: 0,