vue-data-ui 2.4.90 → 2.5.1

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 (187) hide show
  1. package/README.md +8 -1
  2. package/dist/{Arrow-BSIvdfoj.cjs → Arrow-BYoqvFMN.cjs} +1 -1
  3. package/dist/{Arrow-ZO8Y9-1Q.js → Arrow-CNFYWYKd.js} +1 -1
  4. package/dist/{BaseIcon-BpofIJET.js → BaseIcon-CZ4uFxC7.js} +4 -3
  5. package/dist/{BaseIcon-UR3q41gQ.cjs → BaseIcon-WPy5Rb2H.cjs} +1 -1
  6. package/dist/{DataTable-DSxaFF3x.js → DataTable-BiaAVa_F.js} +2 -2
  7. package/dist/{DataTable-D-hda58J.cjs → DataTable-CdUbJy2R.cjs} +1 -1
  8. package/dist/{Legend-bHoLREZn.cjs → Legend-BnISukey.cjs} +1 -1
  9. package/dist/{Legend-DMkFFdOO.js → Legend-Dw8hyLSd.js} +2 -2
  10. package/dist/{PackageVersion-LxLDMXmr.js → PackageVersion-BFyYSHga.js} +1 -1
  11. package/dist/PackageVersion-DJECkV0A.cjs +1 -0
  12. package/dist/{PenAndPaper-C_SiTAbJ.js → PenAndPaper-1g9CCad-.js} +3 -3
  13. package/dist/{PenAndPaper-BO89xQwu.cjs → PenAndPaper-BLFX9yTF.cjs} +1 -1
  14. package/dist/{Shape-BysfkOzx.js → Shape-BSJQ7DnI.js} +1 -1
  15. package/dist/{Shape-tIX54tZo.cjs → Shape-DEgEDWnK.cjs} +1 -1
  16. package/dist/{Slicer-BxN9wDTW.cjs → Slicer-C0CDSZWe.cjs} +1 -1
  17. package/dist/{Slicer-Cguxp4_C.js → Slicer-CH4QNS2q.js} +2 -2
  18. package/dist/{Title-Dcy3qq8t.js → Title-BzUgxBMs.js} +1 -1
  19. package/dist/{Title-C7FKCxhh.cjs → Title-Cg-pVkpN.cjs} +1 -1
  20. package/dist/{Tooltip-HFiG7-b2.cjs → Tooltip-CFIkSHmH.cjs} +1 -1
  21. package/dist/{Tooltip-CRRn6Gtk.js → Tooltip-O0zo8BID.js} +1 -1
  22. package/dist/documentation/installation.md +2 -1
  23. package/dist/index-D6jkeYks.cjs +9 -0
  24. package/dist/{index-DD55onbf.js → index-DOp04QkH.js} +584 -417
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +1140 -384
  27. package/dist/types/vue-data-ui.d.ts +1140 -384
  28. package/dist/{useNestedProp-Cf4jge53.js → useNestedProp-Bcfi6on_.js} +1 -1
  29. package/dist/{useNestedProp-eByLWGIp.cjs → useNestedProp-rf0W8kVM.cjs} +1 -1
  30. package/dist/{usePrinter-C1cmAKZi.cjs → usePrinter-DX7QbYMt.cjs} +1 -1
  31. package/dist/{usePrinter-DWsOiNiW.js → usePrinter-SqbV_ohU.js} +1 -1
  32. package/dist/vue-data-ui-Ch3scsoz.cjs +9 -0
  33. package/dist/{vue-data-ui-Ckk3cZP3.js → vue-data-ui-DZklL9pZ.js} +68 -66
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +59 -58
  36. package/dist/{vue-ui-3d-bar-CKUz-73_.js → vue-ui-3d-bar-B1W3tnaP.js} +41 -41
  37. package/dist/{vue-ui-3d-bar-vXOpY3Ff.cjs → vue-ui-3d-bar-VEHwaBcd.cjs} +11 -11
  38. package/dist/{vue-ui-accordion-DLLoQbUa.js → vue-ui-accordion-BXv_xEog.js} +3 -3
  39. package/dist/{vue-ui-accordion-Bd4pdW-K.cjs → vue-ui-accordion-CgkYT3Cq.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-Daa6G08e.js → vue-ui-age-pyramid-CBCTPthi.js} +12 -12
  41. package/dist/vue-ui-age-pyramid-D_IUZzvf.cjs +1 -0
  42. package/dist/{vue-ui-annotator-CroOFpE1.js → vue-ui-annotator-C34K5Ew0.js} +1 -1
  43. package/dist/{vue-ui-annotator-p9ayuN1-.cjs → vue-ui-annotator-CLIKuTqr.cjs} +1 -1
  44. package/dist/vue-ui-bullet-CzVEhFRG.cjs +34 -0
  45. package/dist/{vue-ui-bullet-D4_F7DfJ.js → vue-ui-bullet-Xk8xvqSf.js} +42 -42
  46. package/dist/{vue-ui-candlestick-C_CS8yoj.cjs → vue-ui-candlestick-Ba6yXyYj.cjs} +2 -2
  47. package/dist/{vue-ui-candlestick-DH5ZszpO.js → vue-ui-candlestick-CCMbT5ip.js} +13 -13
  48. package/dist/{vue-ui-carousel-table-KRMGBHRP.js → vue-ui-carousel-table-BsDjjayA.js} +26 -26
  49. package/dist/vue-ui-carousel-table-CkTMdwC2.cjs +1 -0
  50. package/dist/{vue-ui-chestnut-DlzGrBKE.js → vue-ui-chestnut-HkoXXqLL.js} +11 -11
  51. package/dist/{vue-ui-chestnut-GIMUpe9V.cjs → vue-ui-chestnut-gNeEA-fs.cjs} +2 -2
  52. package/dist/vue-ui-circle-pack-C7mESU9Q.js +639 -0
  53. package/dist/vue-ui-circle-pack-DDdvmNlI.cjs +1 -0
  54. package/dist/{vue-ui-cursor-Bzpat70I.js → vue-ui-cursor-DB82p9Hm.js} +2 -2
  55. package/dist/{vue-ui-cursor-CP_hLq_F.cjs → vue-ui-cursor-DWcza74W.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-CAxpWqdp.js → vue-ui-dashboard-C0BPKDja.js} +2 -2
  57. package/dist/{vue-ui-dashboard-Bl45zC_-.cjs → vue-ui-dashboard-C61sthvf.cjs} +1 -1
  58. package/dist/{vue-ui-digits-DBsciKvZ.js → vue-ui-digits-CbE1Mix-.js} +2 -2
  59. package/dist/{vue-ui-digits-BUj0U6ah.cjs → vue-ui-digits-CbTCX8mU.cjs} +1 -1
  60. package/dist/vue-ui-donut-C57Wdzm2.cjs +1 -0
  61. package/dist/{vue-ui-donut-BaivqlQ9.js → vue-ui-donut-Cb2buz06.js} +15 -15
  62. package/dist/{vue-ui-donut-evolution-DwMUeGj1.js → vue-ui-donut-evolution-DdFLbXi8.js} +42 -42
  63. package/dist/vue-ui-donut-evolution-zlYc16Ii.cjs +1 -0
  64. package/dist/vue-ui-dumbbell-BFZ3fbJv.cjs +9 -0
  65. package/dist/{vue-ui-dumbbell-BYHA7gmV.js → vue-ui-dumbbell-Chl4VHoW.js} +12 -12
  66. package/dist/vue-ui-flow-CbXKICkI.cjs +1 -0
  67. package/dist/{vue-ui-flow-DNunZt6t.js → vue-ui-flow-DMBCObQV.js} +11 -11
  68. package/dist/vue-ui-funnel-BfjCE1cI.cjs +1 -0
  69. package/dist/{vue-ui-funnel-C3HTyg1p.js → vue-ui-funnel-DgfiF2HU.js} +12 -12
  70. package/dist/{vue-ui-galaxy-DqJhMTWB.js → vue-ui-galaxy-Dn0bfQjf.js} +29 -29
  71. package/dist/vue-ui-galaxy-Dpy6zMBl.cjs +1 -0
  72. package/dist/{vue-ui-gauge-TkdVQL99.js → vue-ui-gauge-BOU_X96H.js} +29 -29
  73. package/dist/vue-ui-gauge-CHnLLES1.cjs +1 -0
  74. package/dist/{vue-ui-gizmo-B8hAT82V.js → vue-ui-gizmo-DnhuJcvj.js} +3 -3
  75. package/dist/{vue-ui-gizmo-DkSmQPnp.cjs → vue-ui-gizmo-wrxzscYI.cjs} +1 -1
  76. package/dist/{vue-ui-heatmap-CyoWZ7ce.js → vue-ui-heatmap-BAjPEZIs.js} +32 -32
  77. package/dist/vue-ui-heatmap-PD47EF73.cjs +1 -0
  78. package/dist/{vue-ui-history-plot-DCSjZE3t.js → vue-ui-history-plot--XkBi7LP.js} +33 -33
  79. package/dist/vue-ui-history-plot-AQOaXiMJ.cjs +1 -0
  80. package/dist/{vue-ui-kpi-DTIZqf1G.cjs → vue-ui-kpi-CFo8XLRM.cjs} +1 -1
  81. package/dist/{vue-ui-kpi-CEybiAoH.js → vue-ui-kpi-Di3Y0kcW.js} +3 -3
  82. package/dist/{vue-ui-mini-loader-DtmpAbXk.js → vue-ui-mini-loader-DZ-19Fy_.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-vuKZGTDh.cjs → vue-ui-mini-loader-dxxljHLh.cjs} +1 -1
  84. package/dist/vue-ui-molecule-BJqx_dc3.cjs +1 -0
  85. package/dist/{vue-ui-molecule-CP3TR3uW.js → vue-ui-molecule-DJBnE_jH.js} +13 -13
  86. package/dist/vue-ui-mood-radar-CpwJ_cB8.cjs +1 -0
  87. package/dist/{vue-ui-mood-radar-Cl0h0D-W.js → vue-ui-mood-radar-DBiJFS62.js} +13 -13
  88. package/dist/{vue-ui-nested-donuts-Dt5rDxew.js → vue-ui-nested-donuts-C42pYQix.js} +14 -14
  89. package/dist/{vue-ui-nested-donuts-C0umA4ML.cjs → vue-ui-nested-donuts-CefKrEVc.cjs} +2 -2
  90. package/dist/{vue-ui-onion-Dd6TzYXX.js → vue-ui-onion-B3phYszo.js} +13 -13
  91. package/dist/{vue-ui-onion-iQwEuELC.cjs → vue-ui-onion-BeDt4Anf.cjs} +2 -2
  92. package/dist/{vue-ui-parallel-coordinate-plot-CDWIGek4.js → vue-ui-parallel-coordinate-plot-MZBn_QTf.js} +35 -35
  93. package/dist/{vue-ui-parallel-coordinate-plot-D3tglRgP.cjs → vue-ui-parallel-coordinate-plot-jXTfaR6Q.cjs} +2 -2
  94. package/dist/{vue-ui-quadrant-HQMcbIkL.js → vue-ui-quadrant-Bq9Uulba.js} +14 -14
  95. package/dist/vue-ui-quadrant-CEXW_YPr.cjs +1 -0
  96. package/dist/{vue-ui-quick-chart-BHN_uJBE.js → vue-ui-quick-chart-C2rS5ZpC.js} +9 -9
  97. package/dist/{vue-ui-quick-chart-Debf-SrU.cjs → vue-ui-quick-chart-CbjQYY94.cjs} +1 -1
  98. package/dist/{vue-ui-radar-2Ck9VBhT.js → vue-ui-radar-DJbTdhLl.js} +14 -14
  99. package/dist/vue-ui-radar-DNt9byAF.cjs +1 -0
  100. package/dist/{vue-ui-rating-l_ou-fwb.js → vue-ui-rating-D7jOrfpr.js} +2 -2
  101. package/dist/{vue-ui-rating-CFUtQBK8.cjs → vue-ui-rating-DwNJCpUJ.cjs} +1 -1
  102. package/dist/vue-ui-relation-circle-DFYrWmK5.cjs +1 -0
  103. package/dist/{vue-ui-relation-circle-Bz9PNnTk.js → vue-ui-relation-circle-WSXW7BVk.js} +37 -37
  104. package/dist/{vue-ui-rings-BHSDf_bS.js → vue-ui-rings-CT-GkKu3.js} +36 -36
  105. package/dist/{vue-ui-rings-B88wRjdq.cjs → vue-ui-rings-CrZBI8PB.cjs} +2 -2
  106. package/dist/vue-ui-scatter-C3W6efmF.cjs +1 -0
  107. package/dist/{vue-ui-scatter-CFf7Shno.js → vue-ui-scatter-Dj_6kLom.js} +14 -14
  108. package/dist/{vue-ui-screenshot-CDenayoD.js → vue-ui-screenshot-Bp2d4iA5.js} +1 -1
  109. package/dist/{vue-ui-screenshot-c_vhJ0-B.cjs → vue-ui-screenshot-DZr2dJ3_.cjs} +1 -1
  110. package/dist/{vue-ui-skeleton-CESQcfWL.js → vue-ui-skeleton-7EpMEisR.js} +457 -377
  111. package/dist/vue-ui-skeleton-D2fiHeQ-.cjs +41 -0
  112. package/dist/{vue-ui-smiley-D-VUvg62.js → vue-ui-smiley-BYMlfZJN.js} +2 -2
  113. package/dist/{vue-ui-smiley-DbELC5Y0.cjs → vue-ui-smiley-bp0yYHVC.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-BdRhlsPm.cjs → vue-ui-spark-trend-BT3hC8YK.cjs} +1 -1
  115. package/dist/{vue-ui-spark-trend-DhPjPyRU.js → vue-ui-spark-trend-DxAKSS2H.js} +5 -5
  116. package/dist/{vue-ui-sparkbar-DNCM5xum.js → vue-ui-sparkbar-B4rPY-wi.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-wgbRG59n.cjs → vue-ui-sparkbar-C5XBU4Se.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-1F6Unq-t.js → vue-ui-sparkgauge-BjWIBcyh.js} +4 -4
  119. package/dist/{vue-ui-sparkgauge-B-cPl2OP.cjs → vue-ui-sparkgauge-CqzU6lZq.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-C69wU065.js → vue-ui-sparkhistogram-122mnka1.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-Bf3Q8coy.cjs → vue-ui-sparkhistogram-w8GowxGd.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-BvxaN2GO.cjs → vue-ui-sparkline-DSVfpk0u.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-CrP5yEbF.js → vue-ui-sparkline-DnXzcZfe.js} +4 -4
  124. package/dist/{vue-ui-sparkstackbar-C-zgACDi.js → vue-ui-sparkstackbar-DgB1H3Qg.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-BlzBOi83.cjs → vue-ui-sparkstackbar-o25sQU3T.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-C96Fxg66.cjs → vue-ui-stackbar-DcXPnNeB.cjs} +2 -2
  127. package/dist/{vue-ui-stackbar-BYmJkNhD.js → vue-ui-stackbar-rTEU1rP4.js} +15 -15
  128. package/dist/vue-ui-strip-plot-DeBGuBRO.cjs +1 -0
  129. package/dist/{vue-ui-strip-plot-BS7quLHn.js → vue-ui-strip-plot-Dsvur-Dh.js} +13 -13
  130. package/dist/{vue-ui-table-D4-lUGYK.js → vue-ui-table-DfD1dIuE.js} +1 -1
  131. package/dist/{vue-ui-table-heatmap-BNmWCrcY.js → vue-ui-table-heatmap-BmMSuXBl.js} +8 -8
  132. package/dist/vue-ui-table-heatmap-UzDfjh7W.cjs +1 -0
  133. package/dist/{vue-ui-table-DwwE3i4I.cjs → vue-ui-table-qCnANsjT.cjs} +1 -1
  134. package/dist/vue-ui-table-sparkline-BvNNMcbM.cjs +1 -0
  135. package/dist/{vue-ui-table-sparkline-CzVT74Bo.js → vue-ui-table-sparkline-KLjn68Pu.js} +8 -8
  136. package/dist/vue-ui-thermometer-DaYllSIU.cjs +1 -0
  137. package/dist/{vue-ui-thermometer-D6B1e-kE.js → vue-ui-thermometer-_OqrkIS5.js} +12 -12
  138. package/dist/{vue-ui-timer-Djy00gLF.js → vue-ui-timer-B3yM3Zsr.js} +5 -5
  139. package/dist/{vue-ui-timer-BVpkq0Eb.cjs → vue-ui-timer-BC7RuVRt.cjs} +1 -1
  140. package/dist/{vue-ui-tiremarks-BnFhNKNK.js → vue-ui-tiremarks-0PA75jsW.js} +9 -9
  141. package/dist/vue-ui-tiremarks-NeSNx9w7.cjs +1 -0
  142. package/dist/{vue-ui-treemap-qtGBTWTl.js → vue-ui-treemap-BX_X-IAg.js} +40 -40
  143. package/dist/vue-ui-treemap-Dwq5MOv6.cjs +1 -0
  144. package/dist/{vue-ui-vertical-bar-Bv6fmPmz.cjs → vue-ui-vertical-bar-BN4p2KaI.cjs} +2 -2
  145. package/dist/{vue-ui-vertical-bar-Djtyca8s.js → vue-ui-vertical-bar-DtVo0EiM.js} +36 -36
  146. package/dist/{vue-ui-waffle--GwDqms-.js → vue-ui-waffle-Cpyxl7iK.js} +40 -40
  147. package/dist/vue-ui-waffle-DyKaHK13.cjs +1 -0
  148. package/dist/vue-ui-wheel-CmhC8bdI.cjs +1 -0
  149. package/dist/{vue-ui-wheel-DuULgJzV.js → vue-ui-wheel-DBca990z.js} +18 -18
  150. package/dist/vue-ui-word-cloud-CiUkioYv.cjs +1 -0
  151. package/dist/{vue-ui-word-cloud-CSMNDZ9Y.js → vue-ui-word-cloud-DPkgBASF.js} +38 -38
  152. package/dist/{vue-ui-xy-C4WZl8Rn.cjs → vue-ui-xy-DKTy_ODO.cjs} +1 -1
  153. package/dist/{vue-ui-xy-Cy5OoDkY.js → vue-ui-xy-VNRWSrW0.js} +14 -14
  154. package/dist/{vue-ui-xy-canvas-D2OMF5vm.js → vue-ui-xy-canvas-ByWv8cWZ.js} +13 -13
  155. package/dist/{vue-ui-xy-canvas-DKyQkG9T.cjs → vue-ui-xy-canvas-CXCzXCTk.cjs} +3 -3
  156. package/package.json +3 -2
  157. package/dist/PackageVersion-C2d9irPH.cjs +0 -1
  158. package/dist/index-oJt6G-1X.cjs +0 -9
  159. package/dist/vue-data-ui-ClVi4qwu.cjs +0 -9
  160. package/dist/vue-ui-age-pyramid-DyOUxoA7.cjs +0 -1
  161. package/dist/vue-ui-bullet-B8ZrosoF.cjs +0 -34
  162. package/dist/vue-ui-carousel-table-BD4n--x5.cjs +0 -1
  163. package/dist/vue-ui-donut-evolution-T0q0AQpw.cjs +0 -1
  164. package/dist/vue-ui-donut-hlEvLIAG.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-DeYS8Jqs.cjs +0 -9
  166. package/dist/vue-ui-flow-g2-DDXHU.cjs +0 -1
  167. package/dist/vue-ui-funnel-Dj7HoggX.cjs +0 -1
  168. package/dist/vue-ui-galaxy-DkKp1Fn6.cjs +0 -1
  169. package/dist/vue-ui-gauge-BzWGRR5d.cjs +0 -1
  170. package/dist/vue-ui-heatmap-BisHe3OP.cjs +0 -1
  171. package/dist/vue-ui-history-plot-BzyhAUsf.cjs +0 -1
  172. package/dist/vue-ui-molecule-BVwf_QS7.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-CBtUbd5w.cjs +0 -1
  174. package/dist/vue-ui-quadrant-CuZcEJGS.cjs +0 -1
  175. package/dist/vue-ui-radar-DxZpBJtG.cjs +0 -1
  176. package/dist/vue-ui-relation-circle-Bo8oWyEB.cjs +0 -1
  177. package/dist/vue-ui-scatter-DwrvTcvG.cjs +0 -1
  178. package/dist/vue-ui-skeleton-Bl1lucUY.cjs +0 -41
  179. package/dist/vue-ui-strip-plot-BpLkljEL.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-CGb9QBzK.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-BtVDfdx6.cjs +0 -1
  182. package/dist/vue-ui-thermometer-C6psexEi.cjs +0 -1
  183. package/dist/vue-ui-tiremarks-DQkEWxQJ.cjs +0 -1
  184. package/dist/vue-ui-treemap-BX6nGwvZ.cjs +0 -1
  185. package/dist/vue-ui-waffle-BWAIIf1i.cjs +0 -1
  186. package/dist/vue-ui-wheel-CabI8YAt.cjs +0 -1
  187. package/dist/vue-ui-word-cloud-BJqrgirH.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D6jkeYks.cjs"),ue=require("./Legend-BnISukey.cjs"),ie=require("./Title-Cg-pVkpN.cjs"),ce=require("./Tooltip-CFIkSHmH.cjs"),de=require("./DataTable-CdUbJy2R.cjs"),X=require("./usePrinter-DX7QbYMt.cjs"),ve=require("./vue-ui-skeleton-D2fiHeQ-.cjs"),he=require("./vue-ui-accordion-CgkYT3Cq.cjs"),Y=require("./useNestedProp-rf0W8kVM.cjs"),pe=require("./PackageVersion-DJECkV0A.cjs"),fe=require("./PenAndPaper-BLFX9yTF.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),me=["id"],be={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ke={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Ce=["xmlns","viewBox"],we=["width","height"],xe=["id"],$e=["stdDeviation"],Be=["d","stroke","stroke-width"],Se=["d","stroke","stroke-width"],Te=["filter"],Ne=["d","stroke","stroke-width"],Pe=["d","stroke-width","onMouseenter","onClick"],_e={key:5,class:"vue-data-ui-watermark"},Ve=["onClick"],Ee={key:0},Le={key:1},Oe={key:8,ref:"source",dir:"auto"},Fe=["innerHTML"],Ae={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(J,{expose:K,emit:_}){const c=J,{vue_ui_galaxy:Q}=r.useConfig(),k=e.computed(()=>!!c.dataset&&c.dataset.length);e.onMounted(()=>{V()});function V(){r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):c.dataset.forEach((l,a)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiGalaxy",type:"datasetSerieAttribute",property:o,index:a})})})}const g=e.ref(r.createUid()),C=e.ref(null),Z=e.ref(null),$=e.ref(!1),B=e.ref(""),d=e.ref(null),E=e.ref(0),L=e.ref(0),O=e.ref(0),F=e.ref(0),t=e.computed({get:()=>I(),set:l=>l}),{userOptionsVisible:S,setUserOptionsVisibility:A,keepUserOptionState:z}=ye.useUserOptionState({config:t.value});function I(){const l=Y.useNestedProp({userConfig:c.config,defaultConfig:Q});return l.theme?{...Y.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>c.config,l=>{t.value=I(),S.value=!t.value.userOptions.showOnChartHover,V(),L.value+=1,O.value+=1,F.value+=1,u.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,u.value.showTable=t.value.table.show,u.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:D,isImaging:q,generatePdf:M,generateImage:U}=X.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),u=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),m=e.ref({height:180,width:250}),i=e.ref([]);function T(l){i.value.includes(l.id)?i.value=i.value.filter(a=>a!==l.id):i.value.push(l.id),_("selectLegend",b.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const p=e.computed(()=>c.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||te.value[a]||r.palette[a]||r.palette[a%r.palette.length],value:l.values?r.sanitizeArray(l.values).reduce((o,n)=>o+n,0):0,absoluteValues:r.sanitizeArray(l.values),id:r.createUid(),seriesIndex:a})).sort((l,a)=>a.value-l.value));function le(){return p.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const v=e.computed(()=>p.value.filter(l=>!i.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),oe=e.ref(190),G=e.computed(()=>p.value.filter(l=>!i.value.includes(l.id))),b=e.computed(()=>{const l=[];for(let a=0;a<G.value.length;a+=1){const o=G.value[a];let n=o.value/v.value*oe.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/v.value,path:r.createSpiralPath({points:n,startX:115+t.value.style.chart.layout.arcs.offsetX,startY:90+t.value.style.chart.layout.arcs.offsetY})})}return l.filter((a,o)=>!i.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),y=e.ref(!1);function ae(l){y.value=l,E.value+=1}const N=e.ref(null);function re({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){N.value={datapoint:l,seriesIndex:o,series:p.value,config:t.value},$.value=n,d.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}))?B.value=f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?s+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:s+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),B.value=`<div>${s}</div>`)}const W=e.computed(()=>p.value.map((l,a)=>({...l,proportion:(l.value||0)/c.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:i.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>T(l),isSegregated:i.value.includes(l.id)}))),ne=e.computed(()=>({cy:"galaxy-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":""})),h=e.computed(()=>{const l=b.value.map(o=>({name:o.name,color:o.color})),a=b.value.map(o=>o.value);return{head:l,body:a}});function H(){e.nextTick(()=>{const l=h.value.head.map((n,s)=>[[n.name],[h.value.body[s]],[isNaN(h.value.body[s]/v.value)?"-":h.value.body[s]/v.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-galaxy"})})}const w=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:v.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=h.value.head.map((s,f)=>{const se=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:h.value.body[f],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},se,isNaN(h.value.body[f]/v.value)?"-":r.dataLabel({v:h.value.body[f]/v.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={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{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:a,config:o}});function R(){u.value.showTable=!u.value.showTable}function j(){u.value.showTooltip=!u.value.showTooltip}const x=e.ref(!1);function P(){x.value=!x.value}return K({getData:le,generatePdf:M,generateCsv:H,generateImage:U,toggleTable:R,toggleTooltip:j,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:C,class:e.normalizeClass(`vue-ui-galaxy ${y.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`galaxy_${g.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(A)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(fe.PenAndPaper,{key:0,parent:C.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",be,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${L.value}`,config:{title:{cy:"galaxy-div-title",...t.value.style.chart.title},subtitle:{cy:"galaxy-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value&&(e.unref(z)||e.unref(S))?(e.openBlock(),e.createBlock(X.UserOptions,{ref_key:"details",ref:Z,key:`user_option_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(q),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:u.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:ae,onGeneratePdf:e.unref(M),onGenerateCsv:H,onGenerateImage:e.unref(U),onToggleTable:R,onToggleTooltip:j,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(z)?e.unref(S)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${m.value.width} ${m.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(pe._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:m.value.width,height:m.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,we)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${g.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.arcs.gradient.intensity},null,8,$e)],8,xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:t.value.style.chart.backgroundColor,"stroke-width":(t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth)*(d.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:o.path,fill:"none",stroke:o.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth*(d.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`${d.value&&d.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Se)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${g.value})`},[e.createElementVNode("path",{d:o.path,fill:"none",stroke:t.value.style.chart.layout.arcs.gradient.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth/2*(d.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`vue-ui-galaxy-gradient ${d.value&&d.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Ne)],8,Te)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:"transparent","stroke-width":t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth,"stroke-linecap":"round",onMouseenter:s=>re({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{$.value=!1,d.value=null}),onClick:s=>_("selectDatapoint",o)},null,40,Pe)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:m.value},void 0,!0)],14,Ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",_e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"galaxy",style:{backgroundColor:t.value.style.chart.backgroundColor,galaxy:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ue.Legend,{key:`legend_${F.value}`,legendSet:W.value,config:ne.value,onClickMarker:a[1]||(a[1]=({legend:o})=>T(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>T(o),style:e.normalizeStyle(`opacity:${i.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),i.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Le," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ee," ("+e.toDisplayString(isNaN(o.value/v.value)?"-":e.unref(r.dataLabel)({v:o.value/v.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ve)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:W.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ce._sfc_main,{show:u.value.showTooltip&&$.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,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:B.value,isFullscreen:y.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),k.value?(e.openBlock(),e.createBlock(he.default,{key:9,hideDetails:"",config:{open:u.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(de.DataTable,{key:`table_${O.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.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]=o=>u.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Fe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,me))}},ze=ge._export_sfc(Ae,[["__scopeId","data-v-b397a028"]]);exports.default=ze;
@@ -1,15 +1,15 @@
1
- import { computed as y, ref as f, watch as me, onMounted as Re, onBeforeUnmount as Ge, openBlock as r, createElementBlock as u, normalizeClass as pe, normalizeStyle as B, unref as i, createBlock as R, createCommentVNode as c, withCtx as X, toDisplayString as M, createSlots as Ee, renderSlot as w, normalizeProps as G, guardReactiveProps as E, createVNode as Ue, createElementVNode as p, Fragment as g, renderList as S, mergeProps as U } from "vue";
2
- import { u as We, c as je, t as Te, a as Le, p as ge, b as De, o as ke, d as Be, e as W, g as be, m as V, I as z, N as Ve, X as qe, s as q, k as He, i as H, f as Z, F as J } from "./index-DD55onbf.js";
1
+ import { computed as y, ref as f, watch as me, onMounted as Re, onBeforeUnmount as Ge, openBlock as r, createElementBlock as u, normalizeClass as pe, normalizeStyle as B, unref as i, createBlock as R, createCommentVNode as c, withCtx as X, toDisplayString as O, createSlots as Ee, renderSlot as w, normalizeProps as G, guardReactiveProps as E, createVNode as Ue, createElementVNode as p, Fragment as g, renderList as S, mergeProps as U } from "vue";
2
+ import { u as We, c as je, t as Te, a as Le, p as ge, b as De, o as ke, d as Be, e as W, g as be, m as V, I as z, N as Ve, X as qe, s as q, k as He, i as H, f as Z, F as J } from "./index-DOp04QkH.js";
3
3
  import { t as Ze, u as Je } from "./useResponsive-CoxXLe23.js";
4
- import { u as Ke, U as Qe } from "./usePrinter-DWsOiNiW.js";
5
- import et from "./vue-ui-skeleton-CESQcfWL.js";
6
- import { _ as tt } from "./Title-Dcy3qq8t.js";
7
- import { u as _e } from "./useNestedProp-Cf4jge53.js";
8
- import { _ as at } from "./PackageVersion-LxLDMXmr.js";
9
- import { P as lt } from "./PenAndPaper-C_SiTAbJ.js";
4
+ import { u as Ke, U as Qe } from "./usePrinter-SqbV_ohU.js";
5
+ import et from "./vue-ui-skeleton-7EpMEisR.js";
6
+ import { _ as tt } from "./Title-BzUgxBMs.js";
7
+ import { u as _e } from "./useNestedProp-Bcfi6on_.js";
8
+ import { _ as at } from "./PackageVersion-BFyYSHga.js";
9
+ import { P as lt } from "./PenAndPaper-1g9CCad-.js";
10
10
  import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], ht = ["stop-color"], dt = ["stop-color"], yt = ["id"], ft = ["stdDeviation"], mt = { key: 1 }, pt = ["d", "fill", "stroke"], gt = ["d", "fill", "stroke"], kt = ["d", "fill"], bt = ["id", "d"], _t = ["fill", "font-size", "font-weight"], xt = ["href", "startOffset"], wt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], St = ["d", "filter"], $t = ["stroke", "stroke-width"], zt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"], Mt = { key: 8 }, Ot = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Pt = ["x", "y", "font-size", "font-weight", "fill"], Nt = { key: 0 }, Xt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], It = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Yt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], At = { key: 1 }, Rt = ["d", "fill", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Et = ["x", "y", "font-size", "fill"], Ut = {
12
+ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], ht = ["stop-color"], dt = ["stop-color"], yt = ["id"], ft = ["stdDeviation"], mt = { key: 1 }, pt = ["d", "fill", "stroke"], gt = ["d", "fill", "stroke"], kt = ["d", "fill"], bt = ["id", "d"], _t = ["fill", "font-size", "font-weight"], xt = ["href", "startOffset"], wt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], St = ["d", "filter"], $t = ["stroke", "stroke-width"], zt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"], Ot = { key: 8 }, Mt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Pt = ["x", "y", "font-size", "font-weight", "fill"], Nt = { key: 0 }, Xt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], It = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Yt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], At = { key: 1 }, Rt = ["d", "fill", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Et = ["x", "y", "font-size", "fill"], Ut = {
13
13
  key: 5,
14
14
  class: "vue-data-ui-watermark"
15
15
  }, Wt = {
@@ -34,7 +34,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
34
34
  set: (t) => t
35
35
  }), { userOptionsVisible: T, setUserOptionsVisibility: re, keepUserOptionState: se } = rt({ config: e.value });
36
36
  me(() => h.config, (t) => {
37
- e.value = oe(), T.value = !e.value.showOnChartHover, he(), le.value += 1;
37
+ e.value = oe(), T.value = !e.value.userOptions.showOnChartHover, he(), le.value += 1;
38
38
  }, { deep: !0 });
39
39
  function oe() {
40
40
  const t = _e({
@@ -91,14 +91,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
91
91
  pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
92
92
  markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
93
93
  segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
94
- }), O = f(0), $ = f(0), m = f(
94
+ }), M = f(0), $ = f(0), m = f(
95
95
  e.value.style.chart.animation.use ? Math.min(...h.dataset.series.map((t) => t.from)) : h.dataset.value
96
96
  );
97
97
  me(() => h.dataset.value, () => {
98
98
  de(h.dataset.value);
99
99
  });
100
100
  const n = y(() => {
101
- const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (O.value - $.value)) + Math.PI;
101
+ const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI;
102
102
  return {
103
103
  x1: t,
104
104
  y1: o,
@@ -106,7 +106,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
106
106
  y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
107
107
  };
108
108
  }), ve = y(() => {
109
- const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (O.value - $.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius, Xe = t + x * Math.cos(a + Math.PI / 2), Ie = o + x * Math.sin(a + Math.PI / 2), Ye = t + x * Math.cos(a - Math.PI / 2), Ae = o + x * Math.sin(a - Math.PI / 2);
109
+ const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius, Xe = t + x * Math.cos(a + Math.PI / 2), Ie = o + x * Math.sin(a + Math.PI / 2), Ye = t + x * Math.cos(a - Math.PI / 2), Ae = o + x * Math.sin(a - Math.PI / 2);
110
110
  return isNaN(s) ? null : `M ${s},${_} ${Xe},${Ie} ${Ye},${Ae} Z`;
111
111
  }), L = y(() => {
112
112
  for (let t = 0; t < F.value.series.length; t += 1) {
@@ -188,7 +188,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
188
188
  const o = [];
189
189
  (F.value.series || []).forEach((x) => {
190
190
  o.push(x.from || 0), o.push(x.to || 0);
191
- }), O.value = Math.max(...o), $.value = Math.min(...o);
191
+ }), M.value = Math.max(...o), $.value = Math.min(...o);
192
192
  let a = e.value.style.chart.animation.speed;
193
193
  const s = Math.abs(t - m.value) / (a * 60);
194
194
  function _() {
@@ -267,7 +267,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
267
267
  let s = 0;
268
268
  return t.map((_) => (s += _, `${s / 100 * a - _ / 4}%`));
269
269
  }
270
- const Me = y(() => Ce(d.value.map((t) => t.proportion * 100))), Oe = y(() => V(
270
+ const Oe = y(() => Ce(d.value.map((t) => t.proportion * 100))), Me = y(() => V(
271
271
  { series: F.value.series },
272
272
  l.value.width / 2,
273
273
  v.value.base,
@@ -286,7 +286,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
286
286
  radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
287
287
  centerX: l.value.width / 2,
288
288
  centerY: v.value.base,
289
- percentage: (m.value + t) / (O.value + t)
289
+ percentage: (m.value + t) / (M.value + t)
290
290
  }
291
291
  );
292
292
  }), N = f(!1);
@@ -345,7 +345,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
345
345
  }
346
346
  }, {
347
347
  default: X(() => [
348
- e.value.translations.base && j.dataset.base ? (r(), u("span", ut, M(e.value.translations.base) + ": " + M(j.dataset.base), 1)) : c("", !0)
348
+ e.value.translations.base && j.dataset.base ? (r(), u("span", ut, O(e.value.translations.base) + ": " + O(j.dataset.base), 1)) : c("", !0)
349
349
  ]),
350
350
  _: 1
351
351
  }, 8, ["config"]))
@@ -501,8 +501,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
501
501
  }, [
502
502
  p("textPath", {
503
503
  href: `#curve_${b.value}_${s}`,
504
- startOffset: Me.value[s]
505
- }, M(a.name || ""), 9, xt)
504
+ startOffset: Oe.value[s]
505
+ }, O(a.name || ""), 9, xt)
506
506
  ], 8, _t))), 256))
507
507
  ], 64)) : c("", !0),
508
508
  e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u(g, { key: 5 }, S(Fe.value, (a, s) => (r(), u("text", {
@@ -512,8 +512,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
512
512
  fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
513
513
  "font-size": l.value.segmentFontSize,
514
514
  "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
515
- }, M(a.name || ""), 9, wt))), 256)) : c("", !0),
516
- e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(Oe.value, (a, s) => (r(), u("path", {
515
+ }, O(a.name || ""), 9, wt))), 256)) : c("", !0),
516
+ e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(Me.value, (a, s) => (r(), u("path", {
517
517
  key: `arc_${s}`,
518
518
  d: a.arcSlice,
519
519
  fill: "#FFFFFF",
@@ -543,7 +543,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
543
543
  "stroke-linecap": "round"
544
544
  }), null, 16, Ct))), 256))
545
545
  ], 64)) : c("", !0),
546
- e.value.style.chart.layout.markers.show ? (r(), u("g", Mt, [
546
+ e.value.style.chart.layout.markers.show ? (r(), u("g", Ot, [
547
547
  (r(!0), u(g, null, S(d.value, (a, s) => (r(), u("text", {
548
548
  x: i(z)({
549
549
  centerX: n.value.x1,
@@ -563,7 +563,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
563
563
  "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
564
564
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
565
565
  fill: e.value.style.chart.layout.markers.color
566
- }, M(i(H)(
566
+ }, O(i(H)(
567
567
  e.value.style.chart.layout.markers.formatter,
568
568
  a.from,
569
569
  i(Z)({
@@ -572,7 +572,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
572
572
  s: e.value.style.chart.layout.markers.suffix,
573
573
  r: e.value.style.chart.layout.markers.roundingValue
574
574
  })
575
- )), 9, Ot))), 256))
575
+ )), 9, Mt))), 256))
576
576
  ])) : c("", !0),
577
577
  e.value.style.chart.layout.markers.show ? (r(), u("text", {
578
578
  key: 9,
@@ -594,12 +594,12 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
594
594
  "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
595
595
  "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
596
596
  fill: e.value.style.chart.layout.markers.color
597
- }, M(i(H)(
597
+ }, O(i(H)(
598
598
  e.value.style.chart.layout.markers.formatter,
599
- O.value,
599
+ M.value,
600
600
  i(Z)({
601
601
  p: e.value.style.chart.layout.markers.prefix,
602
- v: O.value,
602
+ v: M.value,
603
603
  s: e.value.style.chart.layout.markers.suffix,
604
604
  r: e.value.style.chart.layout.markers.roundingValue
605
605
  })
@@ -664,7 +664,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
664
664
  "font-size": l.value.legendFontSize,
665
665
  "font-weight": "bold",
666
666
  fill: e.value.style.chart.legend.useRatingColor ? L.value : e.value.style.chart.legend.color
667
- }, M(i(H)(
667
+ }, O(i(H)(
668
668
  e.value.style.chart.legend.formatter,
669
669
  m.value,
670
670
  i(Z)({
@@ -707,7 +707,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
707
707
  ], 512)) : c("", !0)
708
708
  ], 46, ot));
709
709
  }
710
- }, Qt = /* @__PURE__ */ st(Wt, [["__scopeId", "data-v-6192a87a"]]);
710
+ }, Qt = /* @__PURE__ */ st(Wt, [["__scopeId", "data-v-dbac9b9f"]]);
711
711
  export {
712
712
  Qt as default
713
713
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D6jkeYks.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-DX7QbYMt.cjs"),ve=require("./vue-ui-skeleton-D2fiHeQ-.cjs"),he=require("./Title-Cg-pVkpN.cjs"),Z=require("./useNestedProp-rf0W8kVM.cjs"),me=require("./PackageVersion-DJECkV0A.cjs"),fe=require("./PenAndPaper-BLFX9yTF.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],ge={key:0},be=["xmlns","viewBox"],Be=["width","height"],Se=["id"],_e=["stop-color"],xe=["stop-color"],we=["stop-color"],Ce=["id"],Ne=["stdDeviation"],Fe={key:1},Ee=["d","fill","stroke"],ze=["d","fill","stroke"],$e=["d","fill"],Pe=["id","d"],Oe=["fill","font-size","font-weight"],Me=["href","startOffset"],Ve=["x","y","text-anchor","fill","font-size","font-weight"],Xe=["d","filter"],Ie=["stroke","stroke-width"],Ye=["stroke","stroke-width"],Ae=["stroke","stroke-width"],Re=["stroke","stroke-width"],Le={key:8},De=["x","y","text-anchor","font-size","font-weight","fill"],Ge=["x","y","font-size","font-weight","fill"],qe={key:0},je=["x1","y1","x2","y2","stroke","stroke-width"],Te=["x1","y1","x2","y2","stroke","stroke-width"],Ue=["x1","y1","x2","y2","stroke-width","filter"],We={key:1},He=["d","fill","stroke","stroke-width"],Ze=["cx","cy","fill","r","stroke-width","stroke"],Je=["x","y","font-size","fill"],Ke={key:5,class:"vue-data-ui-watermark"},Qe={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=s.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),m=e.ref(s.createUid()),Q=e.ref(null),z=e.ref(0),B=e.ref(null),$=e.ref(null),P=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>Y(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:I}=ye.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=Y(),N.value=!t.value.userOptions.showOnChartHover,q(),V.value+=1},{deep:!0});function Y(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:s.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),k=e.computed(()=>{if(!_.value||s.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(l=>{a.push(l.from||1e-7),a.push(l.to||1e-7)});const n=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((l,r)=>({...l,color:s.convertColorToHex(l.color)||te.value[r]||s.palette[r],value:((l.to||0)-(l.from||0))/n*100}))}}),h=e.ref(512),o=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),p=e.ref(0),v=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{j(c.dataset.value)});const u=e.computed(()=>{const a=o.value.width/2,n=i.value.base,l=Math.PI*((v.value+0-p.value)/(b.value-p.value))+Math.PI;return{x1:a,y1:n,x2:a+i.value.pointerSize*o.value.pointerSize*.9*Math.cos(l),y2:n+i.value.pointerSize*o.value.pointerSize*.9*Math.sin(l)}}),G=e.computed(()=>{const a=o.value.width/2,n=i.value.base,l=Math.PI*((v.value+0-p.value)/(b.value-p.value))+Math.PI,r=a+i.value.pointerSize*o.value.pointerSize*.9*Math.cos(l),f=n+i.value.pointerSize*o.value.pointerSize*.9*Math.sin(l),y=o.value.pointerRadius,ue=a+y*Math.cos(l+Math.PI/2),ie=n+y*Math.sin(l+Math.PI/2),ce=a+y*Math.cos(l-Math.PI/2),de=n+y*Math.sin(l-Math.PI/2);return isNaN(r)?null:`M ${r},${f} ${ue},${ie} ${ce},${de} Z`}),F=e.computed(()=>{for(let a=0;a<k.value.series.length;a+=1){const{color:n,from:l,to:r}=k.value.series[a];if(v.value>=l&&v.value<=r)return n}return"#2D353C"}),x=e.ref(null);function q(){if(s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiGauge",type:"dataset"}):(s.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{s.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(l=>{s.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:l,index:n})})}):s.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),j(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:n,height:l}=W.useResponsive({chart:B.value,title:t.value.style.chart.title.text?$.value:null,legend:P.value,source:O.value,noTitle:M.value});requestAnimationFrame(()=>{o.value.width=n,o.value.height=l,o.value.centerX=n/2,o.value.centerY=h.value/2/358.4*l,o.value.bottom=l,o.value.labelFontSize=18/h.value*Math.min(l,n)<10?10:18/h.value*Math.min(l,n),o.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(l,n)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(l,n),o.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(l,n),o.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(l,n),o.value.pointerStrokeWidth=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),o.value.markerOffset=s.translateSize({relator:Math.max(n,l),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),o.value.segmentFontSize=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})})});x.value=new ResizeObserver(a),x.value.observe(B.value.parentNode)}}e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function j(a){const n=[];(k.value.series||[]).forEach(y=>{n.push(y.from||0),n.push(y.to||0)}),b.value=Math.max(...n),p.value=Math.min(...n);let l=t.value.style.chart.animation.speed;const r=Math.abs(a-v.value)/(l*60);function f(){v.value<a?v.value=Math.min(v.value+r,a):v.value>a&&(v.value=Math.max(v.value-r,a)),v.value!==a&&requestAnimationFrame(f)}f()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(o.value.width,o.value.height):o.value.width,n=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/n,gradients:a/(n*1.1),base:t.value.responsive?o.value.height/2:o.value.height*.7,ratingBase:t.value.responsive?o.value.height/2+o.value.height/4:o.value.height*.9,pointerSize:t.value.responsive?Math.min(o.value.width,o.value.height)/3:o.value.width/3.2}}),d=e.computed(()=>s.makeDonut({series:k.value.series},o.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*o.value.trackSize)),ae=e.computed(()=>s.makeDonut({series:k.value.series},o.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*o.value.trackSize)),g=e.computed(()=>d.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),T=e.computed(()=>{const{x:a,y:n}=s.offsetFromCenterPoint({initX:d.value[0].firstSeparator.x,initY:d.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:l,y:r}=s.offsetFromCenterPoint({initX:d.value[0].startX,initY:d.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:n,x2:l,y2:r}}),U=e.computed(()=>d.value.map(a=>{const{x:n,y:l}=s.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:r,y:f}=s.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:n,y1:l,x2:r,y2:f}}));function le(a){if(a.reduce((f,y)=>f+y,0)>100)throw new Error("Total % must not exceed 100");const l=50;let r=0;return a.map(f=>(r+=f,`${r/100*l-f/4}%`))}const oe=e.computed(()=>le(d.value.map(a=>a.proportion*100))),re=e.computed(()=>s.makeDonut({series:k.value.series},o.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*o.value.trackSize)),ne=e.computed(()=>{const a=p.value>=0?-p.value:Math.abs(p.value);return s.createHalfCircleArc({radius:t.value.style.chart.layout.indicatorArc.radius*o.value.trackSize,centerX:o.value.width/2,centerY:i.value.base,percentage:(v.value+a)/(b.value+a)})}),S=e.ref(!1);function se(a){S.value=a,z.value+=1}const w=e.ref(!1);function E(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:E}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${S.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:B,id:`vue-ui-gauge_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(X)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(fe.PenAndPaper,{key:0,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,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:$,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(he._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(I)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:m.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:se,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(I)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(me._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:o.value.width<=0?10:o.value.width,height:o.value.height<=0?10:o.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Be)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${m.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,_e),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(s.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,we)],8,Se)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,Ne)],8,Ce)]),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:r,patternId:`pattern_${m.value}_${r}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:l.arcSlice,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ee))),128)),a.$slots.pattern?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:l.arcSlice,fill:`url(#pattern_${m.value}_${r})`,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,ze))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.indicatorArc.show?(e.openBlock(),e.createElementBlock("path",{key:3,d:ne.value,fill:t.value.style.chart.layout.indicatorArc.fill},null,8,$e)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${m.value}_${r}`,d:`M ${u.value.x1},${u.value.y1} m -${g.value[r]},0 a ${g.value[r]},${g.value[r]} 0 1,1 ${2*g.value[r]},0 a ${g.value[r]},${g.value[r]} 0 1,1 -${2*g.value[r]},0`,fill:"transparent"},null,8,Pe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${m.value}_${r}`,startOffset:oe.value[r]},e.toDisplayString(l.name||""),9,Me)],8,Oe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(ae.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.center.endX,y:l.center.endY,"text-anchor":e.unref(s.calcMarkerOffsetX)(l,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(l.name||""),9,Ve))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:6},e.renderList(re.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:l.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${m.value})`},null,8,Xe))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ie),e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ye),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(l,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ae))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(l,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Re))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:l.center.startX,initY:l.center.startY,offset:o.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:l.center.startX,initY:l.center.startY,offset:o.value.markerOffset}).y,"text-anchor":l.center.startX<u.value.x1-5?"end":l.center.startX>u.value.x1+5?"start":"middle","font-size":o.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,l.from,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:l.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,De))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:9,x:e.unref(s.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:o.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:o.value.markerOffset}).y,"text-anchor":"start","font-size":o.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ge)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",qe,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":o.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,je)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.7},null,8,Te)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.3,filter:`url(#blur_${m.value})`},null,8,Ue)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",We,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,He)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:o.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:o.value.pointerRadius<=0?1e-4:o.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Ze)],64)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:11,x:o.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":o.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(s.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Je)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[e.renderSlot(a.$slots,"legend",{legend:k.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,ke))}},et=pe._export_sfc(Qe,[["__scopeId","data-v-dbac9b9f"]]);exports.default=et;
@@ -1,7 +1,7 @@
1
1
  import { ref as b, useSlots as z, onMounted as g, computed as c, watch as G, openBlock as s, createElementBlock as a, normalizeStyle as L, createVNode as N, createElementVNode as t, createCommentVNode as r, Fragment as p, toDisplayString as y, unref as d } from "vue";
2
- import { u as $, c as F, e as B, i as k, f as m } from "./index-DD55onbf.js";
3
- import { u as V } from "./useNestedProp-Cf4jge53.js";
4
- import { _ as P } from "./PackageVersion-LxLDMXmr.js";
2
+ import { u as $, c as F, e as B, i as k, f as m } from "./index-DOp04QkH.js";
3
+ import { u as V } from "./useNestedProp-Bcfi6on_.js";
4
+ import { _ as P } from "./PackageVersion-BFyYSHga.js";
5
5
  const U = ["viewBox", "width"], D = { key: 0 }, I = ["id"], M = ["stop-color"], S = ["stop-color"], E = ["stroke"], O = ["stroke"], A = ["width", "fill"], j = ["fill"], T = { key: 0 }, q = ["id"], H = /* @__PURE__ */ t("feGaussianBlur", {
6
6
  in: "SourceGraphic",
7
7
  stdDeviation: 1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-oJt6G-1X.cjs"),k=require("./useNestedProp-eByLWGIp.cjs"),_=require("./PackageVersion-C2d9irPH.cjs"),p=["viewBox","width"],g={key:0},v=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),L=[b],z=["stroke"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["filter"],P=["stroke","stroke-dasharray","stroke-dashoffset"],$=["fill"],S={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(c){const o=c,{vue_ui_gizmo:f}=r.useConfig(),n=e.ref(r.createUid()),h=e.useSlots();e.onMounted(()=>{i()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});function i(){!o.dataset&&o.dataset!==0&&r.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:a=>a});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,a=>{t.value=d(),i()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,m=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:m}});return(a,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",g,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,y),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,N)],8,v)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,C),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,V),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(c.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,w),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,x)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",B,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},L,8,E)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,z),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,G),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,P)],8,F)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,$)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,p))}};exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D6jkeYks.cjs"),k=require("./useNestedProp-rf0W8kVM.cjs"),_=require("./PackageVersion-DJECkV0A.cjs"),p=["viewBox","width"],g={key:0},v=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),L=[b],z=["stroke"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["filter"],P=["stroke","stroke-dasharray","stroke-dashoffset"],$=["fill"],S={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(c){const o=c,{vue_ui_gizmo:f}=r.useConfig(),n=e.ref(r.createUid()),h=e.useSlots();e.onMounted(()=>{i()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});function i(){!o.dataset&&o.dataset!==0&&r.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:a=>a});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,a=>{t.value=d(),i()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,m=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:m}});return(a,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",g,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,y),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,N)],8,v)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,C),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,V),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(c.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,w),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,x)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",B,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},L,8,E)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,z),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,G),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,P)],8,F)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,$)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,p))}};exports.default=S;
@@ -1,20 +1,20 @@
1
- import { useCssVars as Ie, computed as h, ref as p, watch as $e, onMounted as Be, openBlock as o, createElementBlock as n, normalizeClass as K, normalizeStyle as k, unref as u, createBlock as G, createCommentVNode as c, createSlots as Re, withCtx as _, renderSlot as f, normalizeProps as U, guardReactiveProps as H, createVNode as se, Fragment as A, renderList as O, createElementVNode as i, toDisplayString as b, withKeys as Ee, createTextVNode as Ge, nextTick as Ue } from "vue";
2
- import { u as He, o as Xe, e as Ce, c as ue, t as De, C as je, g as We, O as ne, X as Ye, G as ie, i as V, f as S, v as T, x as qe, y as Ke, q as Je, r as Qe } from "./index-DD55onbf.js";
3
- import { _ as Ze } from "./Title-Dcy3qq8t.js";
4
- import { u as et, U as tt } from "./usePrinter-DWsOiNiW.js";
5
- import { _ as lt } from "./Tooltip-CRRn6Gtk.js";
6
- import at from "./vue-ui-skeleton-CESQcfWL.js";
7
- import ot from "./BaseIcon-BpofIJET.js";
8
- import st from "./vue-ui-accordion-DLLoQbUa.js";
9
- import { u as Le } from "./useNestedProp-Cf4jge53.js";
10
- import { _ as ut } from "./PackageVersion-LxLDMXmr.js";
11
- import { P as nt } from "./PenAndPaper-C_SiTAbJ.js";
1
+ import { useCssVars as Ie, computed as h, ref as p, watch as $e, onMounted as Be, openBlock as o, createElementBlock as n, normalizeClass as K, normalizeStyle as k, unref as u, createBlock as G, createCommentVNode as c, createSlots as Re, withCtx as _, renderSlot as f, normalizeProps as U, guardReactiveProps as H, createVNode as se, Fragment as A, renderList as M, createElementVNode as i, toDisplayString as b, withKeys as Ee, createTextVNode as Ge, nextTick as Ue } from "vue";
2
+ import { u as He, o as Xe, e as Ce, c as ue, t as De, C as je, g as We, O as ne, X as Ye, G as ie, i as V, f as S, v as T, x as qe, y as Ke, q as Je, r as Qe } from "./index-DOp04QkH.js";
3
+ import { _ as Ze } from "./Title-BzUgxBMs.js";
4
+ import { u as et, U as tt } from "./usePrinter-SqbV_ohU.js";
5
+ import { _ as lt } from "./Tooltip-O0zo8BID.js";
6
+ import at from "./vue-ui-skeleton-7EpMEisR.js";
7
+ import ot from "./BaseIcon-CZ4uFxC7.js";
8
+ import st from "./vue-ui-accordion-BXv_xEog.js";
9
+ import { u as Le } from "./useNestedProp-Bcfi6on_.js";
10
+ import { _ as ut } from "./PackageVersion-BFyYSHga.js";
11
+ import { P as nt } from "./PenAndPaper-1g9CCad-.js";
12
12
  import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
13
13
  import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const vt = ["id"], dt = {
15
15
  key: 2,
16
16
  style: "width:100%;background:transparent"
17
- }, yt = ["xmlns", "viewBox"], ct = ["width", "height"], ht = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], pt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], gt = ["font-size", "font-weight", "fill", "x", "y"], ft = ["x", "y", "width", "height", "onMouseover"], bt = { key: 0 }, mt = ["font-size", "fill", "x", "y", "font-weight"], xt = { key: 1 }, wt = ["text-anchor", "font-size", "fill", "font-weight", "transform"], kt = { key: 2 }, _t = ["x", "y", "width", "height", "stroke", "stroke-width"], $t = { key: 3 }, Ct = ["id"], Lt = ["stop-color"], At = ["stop-color"], Tt = ["x", "y", "font-size", "fill"], zt = ["x", "y", "height", "rx", "fill"], Mt = ["x", "y", "font-size", "fill"], Ot = ["stroke", "x1", "x2", "y1", "y2"], St = ["fill", "d"], Nt = { key: 4 }, Ft = {
17
+ }, yt = ["xmlns", "viewBox"], ct = ["width", "height"], ht = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], pt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], gt = ["font-size", "font-weight", "fill", "x", "y"], ft = ["x", "y", "width", "height", "onMouseover"], bt = { key: 0 }, mt = ["font-size", "fill", "x", "y", "font-weight"], xt = { key: 1 }, wt = ["text-anchor", "font-size", "fill", "font-weight", "transform"], kt = { key: 2 }, _t = ["x", "y", "width", "height", "stroke", "stroke-width"], $t = { key: 3 }, Ct = ["id"], Lt = ["stop-color"], At = ["stop-color"], Tt = ["x", "y", "font-size", "fill"], zt = ["x", "y", "height", "rx", "fill"], Ot = ["x", "y", "font-size", "fill"], Mt = ["stroke", "x1", "x2", "y1", "y2"], St = ["fill", "d"], Nt = { key: 4 }, Ft = {
18
18
  id: "colorScaleHorizontal",
19
19
  x1: "0%",
20
20
  x2: "100%",
@@ -46,14 +46,14 @@ const vt = ["id"], dt = {
46
46
  setup(X, { expose: Ae }) {
47
47
  const r = X;
48
48
  Ie((t) => ({
49
- "2479ec5e": t.tdo
49
+ "519eaa79": t.tdo
50
50
  }));
51
51
  const { vue_ui_heatmap: Te } = He(), D = h(() => !!r.dataset && r.dataset.length);
52
52
  Xe(r.dataset) && Ce({
53
53
  componentName: "VueUiHeatmap",
54
54
  type: "dataset"
55
55
  });
56
- const P = p(ue()), j = p(null), ze = p(null), J = p(!1), Q = p(""), re = p(void 0), I = p(null), ve = p(0), de = p(null), Me = p(null), ye = p(!1), ce = p(0), e = h({
56
+ const P = p(ue()), j = p(null), ze = p(null), J = p(!1), Q = p(""), re = p(void 0), I = p(null), ve = p(0), de = p(null), Oe = p(null), ye = p(!1), ce = p(0), e = h({
57
57
  get: () => ge(),
58
58
  set: (t) => t
59
59
  }), { userOptionsVisible: Z, setUserOptionsVisibility: he, keepUserOptionState: pe } = it({ config: e.value });
@@ -71,14 +71,14 @@ const vt = ["id"], dt = {
71
71
  } : l = t, r.config && je(r.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? l.style.layout.dataLabels.xAxis.showOnlyAtModulo = r.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : l.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, l;
72
72
  }
73
73
  $e(() => r.config, (t) => {
74
- e.value = ge(), Z.value = !e.value.showOnChartHover, ee(), ce.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
74
+ e.value = ge(), Z.value = !e.value.userOptions.showOnChartHover, ee(), ce.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
75
75
  }, { deep: !0 }), $e(() => r.dataset, () => {
76
76
  ee();
77
77
  }, { deep: !0 });
78
78
  const { isPrinting: fe, isImaging: be, generatePdf: me, generateImage: xe } = et({
79
79
  elementId: `heatmap__${P.value}`,
80
80
  fileName: e.value.style.title.text || "vue-ui-heatmap"
81
- }), Oe = h(() => e.value.userOptions.show && !e.value.style.title.text), m = p({
81
+ }), Me = h(() => e.value.userOptions.show && !e.value.style.title.text), m = p({
82
82
  showTable: e.value.table.show,
83
83
  showTooltip: e.value.style.tooltip.show
84
84
  }), Se = h(() => e.value.table.responsiveBreakpoint);
@@ -107,7 +107,7 @@ const vt = ["id"], dt = {
107
107
  bottom: x.value.height - e.value.style.layout.padding.bottom,
108
108
  height: x.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
109
109
  width: x.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (W.value === "right" && e.value.style.legend.show ? 92 : 0)
110
- })), te = h(() => d.value.height * r.dataset.length), w = h(() => Math.max(...r.dataset.flatMap((t) => t.values))), z = h(() => Math.min(...r.dataset.flatMap((t) => t.values))), M = h(() => {
110
+ })), te = h(() => d.value.height * r.dataset.length), w = h(() => Math.max(...r.dataset.flatMap((t) => t.values))), z = h(() => Math.min(...r.dataset.flatMap((t) => t.values))), O = h(() => {
111
111
  const t = r.dataset.flatMap((s) => s.values);
112
112
  return t.reduce((s, v) => s + v, 0) / t.length;
113
113
  }), d = h(() => ({
@@ -133,17 +133,17 @@ const vt = ["id"], dt = {
133
133
  });
134
134
  }), r.dataset.map((t) => ({
135
135
  ...t,
136
- temperatures: (t.values || []).map((l, s) => l >= M.value ? {
136
+ temperatures: (t.values || []).map((l, s) => l >= O.value ? {
137
137
  side: "up",
138
138
  color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, l),
139
- ratio: Math.abs(Math.abs(l - M.value) / Math.abs(w.value - M.value)) > 1 ? 1 : Math.abs(Math.abs(l - M.value) / Math.abs(w.value - M.value)),
139
+ ratio: Math.abs(Math.abs(l - O.value) / Math.abs(w.value - O.value)) > 1 ? 1 : Math.abs(Math.abs(l - O.value) / Math.abs(w.value - O.value)),
140
140
  value: l,
141
141
  yAxisName: t.name,
142
142
  xAxisName: $.value.xLabels[s],
143
143
  id: `vue-data-ui-heatmap-cell-${ue()}`
144
144
  } : {
145
145
  side: "down",
146
- ratio: Math.abs(1 - Math.abs(l) / Math.abs(M.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(M.value)),
146
+ ratio: Math.abs(1 - Math.abs(l) / Math.abs(O.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(O.value)),
147
147
  color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, l),
148
148
  value: l,
149
149
  yAxisName: t.name,
@@ -242,10 +242,10 @@ const vt = ["id"], dt = {
242
242
  active: q.value,
243
243
  onClose: le
244
244
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
245
- Oe.value ? (o(), n("div", {
245
+ Me.value ? (o(), n("div", {
246
246
  key: 1,
247
247
  ref_key: "noTitle",
248
- ref: Me,
248
+ ref: Oe,
249
249
  class: "vue-data-ui-no-title-space",
250
250
  style: "height:36px; width: 100%;background:transparent"
251
251
  }, null, 512)) : c("", !0),
@@ -367,8 +367,8 @@ const vt = ["id"], dt = {
367
367
  }, [
368
368
  f(t.$slots, "chart-background", {}, void 0, !0)
369
369
  ], 8, ct)) : c("", !0),
370
- (o(!0), n(A, null, O(Y.value, (s, v) => (o(), n("g", null, [
371
- (o(!0), n(A, null, O(s.temperatures, (y, g) => (o(), n("g", null, [
370
+ (o(!0), n(A, null, M(Y.value, (s, v) => (o(), n("g", null, [
371
+ (o(!0), n(A, null, M(s.temperatures, (y, g) => (o(), n("g", null, [
372
372
  i("rect", {
373
373
  x: a.value.left + d.value.width * g + e.value.style.layout.cells.spacing / 2,
374
374
  y: a.value.top + d.value.height * v + e.value.style.layout.cells.spacing / 2,
@@ -407,7 +407,7 @@ const vt = ["id"], dt = {
407
407
  { datapoint: y }
408
408
  )), 9, gt)) : c("", !0)
409
409
  ]))), 256)),
410
- (o(!0), n(A, null, O(s.temperatures, (y, g) => (o(), n("g", null, [
410
+ (o(!0), n(A, null, M(s.temperatures, (y, g) => (o(), n("g", null, [
411
411
  i("rect", {
412
412
  x: a.value.left + d.value.width * g,
413
413
  y: a.value.top + d.value.height * v,
@@ -433,7 +433,7 @@ const vt = ["id"], dt = {
433
433
  ])) : c("", !0)
434
434
  ]))), 256)),
435
435
  e.value.style.layout.dataLabels.xAxis.show ? (o(), n("g", xt, [
436
- (o(!0), n(A, null, O($.value.xLabels, (s, v) => (o(), n(A, null, [
436
+ (o(!0), n(A, null, M($.value.xLabels, (s, v) => (o(), n(A, null, [
437
437
  !e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && v % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (o(), n("text", {
438
438
  key: 0,
439
439
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
@@ -513,7 +513,7 @@ const vt = ["id"], dt = {
513
513
  s: e.value.style.layout.dataLabels.suffix,
514
514
  r: e.value.style.legend.roundingValue
515
515
  })
516
- )), 9, Mt),
516
+ )), 9, Ot),
517
517
  C.value !== null ? (o(), n("line", {
518
518
  key: 0,
519
519
  stroke: u(ie)(B.value.datapoint.color),
@@ -522,7 +522,7 @@ const vt = ["id"], dt = {
522
522
  x2: a.value.right + 72,
523
523
  y1: R.value,
524
524
  y2: R.value
525
- }, null, 8, Ot)) : c("", !0),
525
+ }, null, 8, Mt)) : c("", !0),
526
526
  C.value !== null ? (o(), n("path", {
527
527
  key: 1,
528
528
  fill: e.value.style.color,
@@ -697,14 +697,14 @@ const vt = ["id"], dt = {
697
697
  i("th", {
698
698
  style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
699
699
  }, null, 4),
700
- (o(!0), n(A, null, O(X.dataset, (s, v) => (o(), n("th", {
700
+ (o(!0), n(A, null, M(X.dataset, (s, v) => (o(), n("th", {
701
701
  align: "right",
702
702
  style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
703
703
  }, b(s.name), 5))), 256))
704
704
  ], 4)
705
705
  ]),
706
706
  i("tbody", null, [
707
- (o(!0), n(A, null, O($.value.xLabels, (s, v) => (o(), n("tr", {
707
+ (o(!0), n(A, null, M($.value.xLabels, (s, v) => (o(), n("tr", {
708
708
  role: "row",
709
709
  class: K({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": v % 2 === 0, "vue-ui-data-table__tbody__row-odd": v % 2 !== 0 }),
710
710
  style: k(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
@@ -716,7 +716,7 @@ const vt = ["id"], dt = {
716
716
  }, [
717
717
  i("div", Wt, b(s), 1)
718
718
  ], 12, jt),
719
- (o(!0), n(A, null, O(X.dataset, (y, g) => (o(), n("td", {
719
+ (o(!0), n(A, null, M(X.dataset, (y, g) => (o(), n("td", {
720
720
  class: "vue-ui-data-table__tbody__td",
721
721
  "data-cell": X.dataset[g].name,
722
722
  style: k(`outline:${e.value.table.td.outline}`)
@@ -733,7 +733,7 @@ const vt = ["id"], dt = {
733
733
  }, 8, ["config"])) : c("", !0)
734
734
  ], 46, vt));
735
735
  }
736
- }, vl = /* @__PURE__ */ rt(Kt, [["__scopeId", "data-v-6a9876b1"]]);
736
+ }, vl = /* @__PURE__ */ rt(Kt, [["__scopeId", "data-v-bc6eca02"]]);
737
737
  export {
738
738
  vl as default
739
739
  };