vue-data-ui 2.4.45 → 2.4.47

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 (155) hide show
  1. package/dist/{Arrow-DExBMFtJ.js → Arrow-C-PQX3ZC.js} +1 -1
  2. package/dist/{Arrow-dxEccWUa.cjs → Arrow-C3u-U00V.cjs} +1 -1
  3. package/dist/{BaseIcon-DUokibJ1.cjs → BaseIcon-8y_okNW6.cjs} +1 -1
  4. package/dist/{BaseIcon-DpLJi6ci.js → BaseIcon-BeAMtwQX.js} +1 -1
  5. package/dist/{DataTable-aoauqoko.cjs → DataTable-CfxOc-In.cjs} +1 -1
  6. package/dist/{DataTable-NGi-FgLM.js → DataTable-D7JlgAbC.js} +2 -2
  7. package/dist/{Legend-DRozxv9L.js → Legend-CEhIHRJc.js} +1 -1
  8. package/dist/{Legend-DHE2CFkm.cjs → Legend-DDuxh17p.cjs} +1 -1
  9. package/dist/{PackageVersion-CTMY4zeY.js → PackageVersion-8Ql1gdmo.js} +1 -1
  10. package/dist/{PackageVersion-1JWV5loe.cjs → PackageVersion-Df1iPzMk.cjs} +1 -1
  11. package/dist/{PenAndPaper-C6mnwE-L.cjs → PenAndPaper-CvGft3ku.cjs} +1 -1
  12. package/dist/{PenAndPaper-DJ_d10S-.js → PenAndPaper-b1ZmLra1.js} +3 -3
  13. package/dist/{Shape-C-sY_hlc.js → Shape-CvBLjLSE.js} +1 -1
  14. package/dist/{Shape-rA2az7tR.cjs → Shape-D3F3Ki5y.cjs} +1 -1
  15. package/dist/{Slicer-CJsmloDN.cjs → Slicer-CHKuuOOo.cjs} +1 -1
  16. package/dist/{Slicer-D4SO7odF.js → Slicer-CRXNOGCh.js} +2 -2
  17. package/dist/{Title-DkbnpMvf.cjs → Title-URF9hufV.cjs} +1 -1
  18. package/dist/{Title-Coit3NcT.js → Title-_dfoh5WC.js} +1 -1
  19. package/dist/{Tooltip-B8L4NDsX.cjs → Tooltip-87gbw8Ir.cjs} +1 -1
  20. package/dist/{Tooltip-BBgfUr4a.js → Tooltip-CAkj2Rmy.js} +1 -1
  21. package/dist/{index-Cm2_6s9o.js → index-BUHajhqq.js} +42 -26
  22. package/dist/index-KYU_8xrX.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +9 -0
  25. package/dist/types/vue-data-ui.d.ts +9 -0
  26. package/dist/{useNestedProp-zkJOoemW.cjs → useNestedProp-C-g0SLHN.cjs} +1 -1
  27. package/dist/{useNestedProp-BYPZJNhi.js → useNestedProp-a0uhe7rJ.js} +1 -1
  28. package/dist/{usePrinter-ardO_DNo.cjs → usePrinter-4Zj_RZ5v.cjs} +1 -1
  29. package/dist/{usePrinter-Cx8U1e30.js → usePrinter-DLHRtlhI.js} +1 -1
  30. package/dist/{vue-data-ui-B8Lvjc4V.cjs → vue-data-ui-CPc7dZQe.cjs} +1 -1
  31. package/dist/{vue-data-ui-Blpxr4_M.js → vue-data-ui-zjfs-rk-.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DvitE1K_.js → vue-ui-3d-bar-B60j7yco.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CqmOoIA2.cjs → vue-ui-3d-bar-zI1BF0gA.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-CxrNF8BI.js → vue-ui-accordion-2QOotHrr.js} +3 -3
  37. package/dist/{vue-ui-accordion-JS5d0ZPi.cjs → vue-ui-accordion-C0oMKEv0.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Ti2L5N92.js → vue-ui-age-pyramid-BT7HUZpj.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CRP36JDm.cjs → vue-ui-age-pyramid-hZLKWqN9.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DtL3BbOJ.cjs → vue-ui-annotator-Da8-IgfK.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-HNK_5tWo.js → vue-ui-annotator-ZpGqgGMp.js} +1 -1
  42. package/dist/{vue-ui-bullet-DEUwbTdx.cjs → vue-ui-bullet-BfkujrD0.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-D3WmBrm4.js → vue-ui-bullet-Da56_P30.js} +8 -8
  44. package/dist/{vue-ui-candlestick-B5okP_Jf.js → vue-ui-candlestick-CblCXKhS.js} +11 -11
  45. package/dist/{vue-ui-candlestick-C5bTH9oE.cjs → vue-ui-candlestick-fM3nUsgr.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-BgKL0rnF.js → vue-ui-carousel-table-B1U41lku.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bt2xx2b5.cjs → vue-ui-carousel-table-D3rcSdcC.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DDsFxoUr.js → vue-ui-chestnut-Cnvf2Aav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-D5XfSvCG.cjs → vue-ui-chestnut-CtMm9Hev.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-CSBJgZLu.cjs → vue-ui-cursor-C-7zi0ol.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-B2NOd5i-.js → vue-ui-cursor-TzS0sCy1.js} +2 -2
  52. package/dist/{vue-ui-dashboard-u-Gt08KE.js → vue-ui-dashboard-Ajvddjlt.js} +2 -2
  53. package/dist/{vue-ui-dashboard-C6MJN9kG.cjs → vue-ui-dashboard-DdMkGnE7.cjs} +1 -1
  54. package/dist/{vue-ui-digits-DCXyjW_e.js → vue-ui-digits-CBPttkF2.js} +2 -2
  55. package/dist/{vue-ui-digits-B4fzfTox.cjs → vue-ui-digits-DwB-tHKl.cjs} +1 -1
  56. package/dist/{vue-ui-donut-CaJSY2gj.cjs → vue-ui-donut-Cz6xpVSC.cjs} +1 -1
  57. package/dist/{vue-ui-donut-BvASz63R.js → vue-ui-donut-DidXxdXO.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-DcPk33e8.js → vue-ui-donut-evolution-B0xdulgT.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-DrnLlHPS.cjs → vue-ui-donut-evolution-Dj73srrD.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-8v-xIlsx.cjs → vue-ui-dumbbell-BdwXaRk2.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-D918XYc8.js → vue-ui-dumbbell-Cimude8K.js} +10 -10
  62. package/dist/{vue-ui-flow-DQ5q2b1Y.js → vue-ui-flow-D2ekJwov.js} +9 -9
  63. package/dist/{vue-ui-flow-BBmnTxVE.cjs → vue-ui-flow-DMNNOEJy.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-v5WCHaw6.js → vue-ui-funnel-BsKFz_A9.js} +8 -8
  65. package/dist/{vue-ui-funnel-CmERxe4h.cjs → vue-ui-funnel-DLmzVrrA.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-8xWYo-xy.cjs → vue-ui-galaxy-CnZYKQA2.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-COSx0c89.js → vue-ui-galaxy-WAy90dGq.js} +11 -11
  68. package/dist/vue-ui-gauge-DhqOgkfq.cjs +1 -0
  69. package/dist/vue-ui-gauge-Xvk_SGCc.js +662 -0
  70. package/dist/{vue-ui-gizmo-DUO_TpvK.cjs → vue-ui-gizmo-B6qoNeBK.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-ByuFn-0N.js → vue-ui-gizmo-D-djUfJw.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DiON-CAI.cjs → vue-ui-heatmap-CitZU9av.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-UoKourVZ.js → vue-ui-heatmap-jmKDOYnr.js} +10 -10
  74. package/dist/{vue-ui-history-plot-CkxvdQeV.js → vue-ui-history-plot-BoR791Gc.js} +11 -11
  75. package/dist/{vue-ui-history-plot-CjVySabp.cjs → vue-ui-history-plot-EzFdtBwU.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BRwkUBxs.js → vue-ui-kpi-CB47PO72.js} +3 -3
  77. package/dist/{vue-ui-kpi-DYHGPjrp.cjs → vue-ui-kpi-CMXhw4Ll.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-Cbl4ydLu.js → vue-ui-mini-loader-D4dKItUb.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-oviO8Ueo.cjs → vue-ui-mini-loader-DJx2b1Hs.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-DM_mX72q.js → vue-ui-molecule-C_VM1ZP2.js} +11 -11
  81. package/dist/{vue-ui-molecule-CX1M509E.cjs → vue-ui-molecule-CnERhdxF.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-fuqAjpvg.cjs → vue-ui-mood-radar-BBlokNSE.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-Bzsba8qo.js → vue-ui-mood-radar-BESMMSxA.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-DfHtC4XP.cjs → vue-ui-nested-donuts-C0IAo5oO.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-BG84mskb.js → vue-ui-nested-donuts-r1v-A7E3.js} +11 -11
  86. package/dist/{vue-ui-onion-DpFx1Oy9.js → vue-ui-onion-CZuFxIOX.js} +11 -11
  87. package/dist/{vue-ui-onion-gt77JCbM.cjs → vue-ui-onion-PaHP7qHI.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CQG_anr7.js → vue-ui-parallel-coordinate-plot-BeAArg3p.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-xJTddxji.cjs → vue-ui-parallel-coordinate-plot-Bwu4Q1dB.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-D0YgwhwW.cjs → vue-ui-quadrant-BLpgNZs9.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-Cddob9c3.js → vue-ui-quadrant-D5m9y_Vd.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-CLzNpIFU.cjs → vue-ui-quick-chart-CZ6gBVVk.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-DTEubspa.js → vue-ui-quick-chart-Ci4RKL62.js} +9 -9
  94. package/dist/{vue-ui-radar--uexaa6p.js → vue-ui-radar-03mjX9gn.js} +12 -12
  95. package/dist/{vue-ui-radar-BTh9qZ2p.cjs → vue-ui-radar-Ca1AvJAF.cjs} +1 -1
  96. package/dist/{vue-ui-rating-BQuZA9UU.js → vue-ui-rating-CSSdVGTk.js} +2 -2
  97. package/dist/{vue-ui-rating-Dyjk2dub.cjs → vue-ui-rating-Dilq1rrJ.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-C8NYrTHA.js → vue-ui-relation-circle-B3J9KW9u.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-FtGlV4Ne.cjs → vue-ui-relation-circle-DsckG4af.cjs} +1 -1
  100. package/dist/{vue-ui-rings-ClJRYeFC.cjs → vue-ui-rings-6g022zEh.cjs} +1 -1
  101. package/dist/{vue-ui-rings-FEIPR_dS.js → vue-ui-rings-COAgson6.js} +11 -11
  102. package/dist/{vue-ui-scatter-vYxSs8Gf.cjs → vue-ui-scatter-B3t_Q_4g.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-CzbgC6ep.js → vue-ui-scatter-BrdWaLV6.js} +12 -12
  104. package/dist/{vue-ui-screenshot-IaxgY5qE.js → vue-ui-screenshot-CWMAfSH3.js} +1 -1
  105. package/dist/{vue-ui-screenshot-CVQCw0B1.cjs → vue-ui-screenshot-NpTxyR66.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-BUS6A44x.js → vue-ui-skeleton-BXPvqUO_.js} +3 -3
  107. package/dist/{vue-ui-skeleton-DleyAXe1.cjs → vue-ui-skeleton-D6mdHYxB.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BTTXNPGY.cjs → vue-ui-smiley-BIAA0JuB.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-5CVa-rQU.js → vue-ui-smiley-TNgEIMFs.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-CZAgof3m.cjs → vue-ui-spark-trend-BWb59zfs.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D9ww-Cv5.js → vue-ui-spark-trend-Xtb0H-Ra.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-DKeLvkHa.js → vue-ui-sparkbar-CO0RYq4S.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-BFsdfuNO.cjs → vue-ui-sparkbar-mgvNuWjK.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-B_bIpe_O.cjs → vue-ui-sparkgauge-CfgH_pIo.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-DLpPuJdG.js → vue-ui-sparkgauge-Cn17RyPJ.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-RoW45LV8.cjs → vue-ui-sparkhistogram-BU1jgcm9.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-BA8QV7Cu.js → vue-ui-sparkhistogram-yTF-QJCM.js} +5 -5
  118. package/dist/{vue-ui-sparkline-BggHSfaz.cjs → vue-ui-sparkline-3ym-6DFE.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-BwOtPPij.js → vue-ui-sparkline-D80w9cUt.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-Uv_p8v9c.cjs → vue-ui-sparkstackbar-C1zVZqZh.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DCS6RRgN.js → vue-ui-sparkstackbar-DhQNOgjS.js} +5 -5
  122. package/dist/{vue-ui-stackbar-zcfxba5s.js → vue-ui-stackbar-C_b754Op.js} +12 -12
  123. package/dist/{vue-ui-stackbar-BqKNaGrf.cjs → vue-ui-stackbar-yiVhLavI.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-J5SSJPyl.cjs → vue-ui-strip-plot-CK-U0tNX.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-NykStkP9.js → vue-ui-strip-plot-CqP7E3Fr.js} +11 -11
  126. package/dist/{vue-ui-table-DhRjI7oG.js → vue-ui-table-BLPLqFFd.js} +1 -1
  127. package/dist/{vue-ui-table-heatmap-GvLTOGcB.cjs → vue-ui-table-heatmap-2Qm41w8P.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-CT5nGoW-.js → vue-ui-table-heatmap-jWG59f0S.js} +4 -4
  129. package/dist/{vue-ui-table-sparkline-Ba_Ucvgb.js → vue-ui-table-sparkline-BEeO-aWa.js} +5 -5
  130. package/dist/{vue-ui-table-sparkline-CBFEknMF.cjs → vue-ui-table-sparkline-C0vzS1F3.cjs} +1 -1
  131. package/dist/{vue-ui-table-DWPKVbYC.cjs → vue-ui-table-x2Ylaftx.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-C11VSZfb.js → vue-ui-thermometer-CS4v4vKk.js} +7 -7
  133. package/dist/{vue-ui-thermometer-sqA0TGTi.cjs → vue-ui-thermometer-DVPaZfi5.cjs} +1 -1
  134. package/dist/{vue-ui-timer-CcBNysNG.cjs → vue-ui-timer-Bu17pe7S.cjs} +1 -1
  135. package/dist/{vue-ui-timer-lwjayVn0.js → vue-ui-timer-op_p9xjL.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-FBnh0R_Z.cjs → vue-ui-tiremarks-CoKFLMWh.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Jz80HKpg.js → vue-ui-tiremarks-CzNBUmn2.js} +7 -7
  138. package/dist/{vue-ui-treemap-B_qVGTnP.js → vue-ui-treemap-DLDn1gQ2.js} +11 -11
  139. package/dist/{vue-ui-treemap-7YFJ-Pb9.cjs → vue-ui-treemap-DXU0BagE.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-DGuvFK2h.cjs → vue-ui-vertical-bar-BlG3HwaX.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-5MwcqOTN.js → vue-ui-vertical-bar-BqTIL5Np.js} +11 -11
  142. package/dist/{vue-ui-waffle-C0F8eexl.cjs → vue-ui-waffle-CaTFfTmj.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-B0JbRRUv.js → vue-ui-waffle-DFjArEi_.js} +11 -11
  144. package/dist/{vue-ui-wheel-DP9XwVGM.cjs → vue-ui-wheel-B22xmLY4.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-pQBqSI5z.js → vue-ui-wheel-C95mjUTI.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-CmKH64gk.cjs → vue-ui-word-cloud-05iWIjGT.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-D39_9P7v.js → vue-ui-word-cloud-Byx-M5Jn.js} +10 -10
  148. package/dist/{vue-ui-xy-DRYbR_nu.js → vue-ui-xy-C8YrIKK6.js} +14 -14
  149. package/dist/{vue-ui-xy-canvas-DZib_307.js → vue-ui-xy-canvas-Cg0PIT5i.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-CywB2tWN.cjs → vue-ui-xy-canvas-os8jbTXb.cjs} +1 -1
  151. package/dist/{vue-ui-xy-2m8k1EUB.cjs → vue-ui-xy-lPnzrWt8.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-DuDeHJyK.cjs +0 -9
  154. package/dist/vue-ui-gauge-CWnGYcFD.js +0 -610
  155. package/dist/vue-ui-gauge-CYth7Lci.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DuDeHJyK.cjs"),re=require("./Legend-DHE2CFkm.cjs"),ne=require("./Title-DkbnpMvf.cjs"),se=require("./Tooltip-B8L4NDsX.cjs"),ue=require("./DataTable-aoauqoko.cjs"),U=require("./usePrinter-ardO_DNo.cjs"),ie=require("./vue-ui-skeleton-DleyAXe1.cjs"),ce=require("./vue-ui-accordion-JS5d0ZPi.cjs"),H=require("./useNestedProp-zkJOoemW.cjs"),de=require("./PackageVersion-1JWV5loe.cjs"),ve=require("./PenAndPaper-C6mnwE-L.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),he=["id"],fe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ye={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},ge=["xmlns","viewBox"],me=["id"],be=["stdDeviation"],ke=["d","stroke","stroke-width"],Ce=["d","stroke","stroke-width"],we=["filter"],xe=["d","stroke","stroke-width"],$e=["d","stroke-width","onMouseenter","onClick"],Be={key:5,class:"vue-data-ui-watermark"},Ne=["onClick"],Te={key:0},_e={key:1},Se={key:8,ref:"source",dir:"auto"},Pe=["innerHTML"],Ve={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(X,{expose:j,emit:S}){const i=X,{vue_ui_galaxy:Y}=r.useConfig(),b=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{P()});function P(){r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):i.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()),k=e.ref(null),J=e.ref(null),x=e.ref(!1),$=e.ref(""),c=e.ref(null),V=e.ref(0),E=e.ref(0),L=e.ref(0),F=e.ref(0),t=e.computed({get:()=>O(),set:l=>l});function O(){const l=H.useNestedProp({userConfig:i.config,defaultConfig:Y});return l.theme?{...H.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>i.config,l=>{t.value=O(),P(),E.value+=1,L.value+=1,F.value+=1},{deep:!0});const{isPrinting:A,isImaging:I,generatePdf:z,generateImage:D}=U.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),K=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),B=e.ref({height:180,width:250}),u=e.ref([]);function N(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),S("selectLegend",m.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const h=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||Q.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 Z(){return h.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),ee=e.ref(190),q=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id))),m=e.computed(()=>{const l=[];for(let a=0;a<q.value.length;a+=1){const o=q.value[a];let n=o.value/d.value*ee.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/d.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)=>!u.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),y=e.ref(!1);function te(l){y.value=l,V.value+=1}const T=e.ref(null);function le({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:h.value,config:t.value},x.value=n,c.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:h.value,config:t.value}))?$.value=f({seriesIndex:o,datapoint:l,series:h.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>`),$.value=`<div>${s}</div>`)}const G=e.computed(()=>h.value.map((l,a)=>({...l,proportion:(l.value||0)/i.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:u.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>N(l),isSegregated:u.value.includes(l.id)}))),oe=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":""})),p=e.computed(()=>{const l=m.value.map(o=>({name:o.name,color:o.color})),a=m.value.map(o=>o.value);return{head:l,body:a}});function M(){e.nextTick(()=>{const l=p.value.head.map((n,s)=>[[n.name],[p.value.body[s]],[isNaN(p.value.body[s]/d.value)?"-":p.value.body[s]/d.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 C=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:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=p.value.head.map((s,f)=>{const ae=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.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},ae,isNaN(p.value.body[f]/d.value)?"-":r.dataLabel({v:p.value.body[f]/d.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 W(){v.value.showTable=!v.value.showTable}function R(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function _(){w.value=!w.value}return j({getData:Z,generatePdf:z,generateCsv:M,generateImage:D,toggleTable:W,toggleTooltip:R,toggleAnnotator:_}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:k,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}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ve.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:_},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",fe,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(),e.createBlock(ne._sfc_main,{key:`title_${E.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&&b.value?(e.openBlock(),e.createBlock(U.UserOptions,{ref_key:"details",ref:J,key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(A),isImaging:e.unref(I),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:v.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:te,onGeneratePdf:e.unref(z),onGenerateCsv:M,onGenerateImage:e.unref(D),onToggleTable:W,onToggleTooltip:R,onToggleAnnotator:_},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"])):e.createCommentVNode("",!0),b.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 ${B.value.width} ${B.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(de._sfc_main),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,be)],8,me)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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)*(c.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,ke)):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*(c.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(`${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Ce)):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*(c.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 ${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,xe)],8,we)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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=>le({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{x.value=!1,c.value=null}),onClick:s=>S("selectDatapoint",o)},null,40,$e)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:B.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ie.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(re.Legend,{key:`legend_${F.value}`,legendSet:G.value,config:oe.value,onClickMarker:a[1]||(a[1]=({legend:o})=>N(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>N(o),style:e.normalizeStyle(`opacity:${u.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),u.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",_e," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Te," ("+e.toDisplayString(isNaN(o.value/d.value)?"-":e.unref(r.dataLabel)({v:o.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ne)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:G.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(se._sfc_main,{show:v.value.showTooltip&&x.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,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:k.value,content:$.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({...T.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(ce.default,{key:9,hideDetails:"",config:{open:v.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(ue.DataTable,{key:`table_${L.value}`,colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Pe)]),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)],14,he))}},Ee=pe._export_sfc(Ve,[["__scopeId","data-v-9c1d1614"]]);exports.default=Ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-KYU_8xrX.cjs"),re=require("./Legend-DDuxh17p.cjs"),ne=require("./Title-URF9hufV.cjs"),se=require("./Tooltip-87gbw8Ir.cjs"),ue=require("./DataTable-CfxOc-In.cjs"),U=require("./usePrinter-4Zj_RZ5v.cjs"),ie=require("./vue-ui-skeleton-D6mdHYxB.cjs"),ce=require("./vue-ui-accordion-C0oMKEv0.cjs"),H=require("./useNestedProp-C-g0SLHN.cjs"),de=require("./PackageVersion-Df1iPzMk.cjs"),ve=require("./PenAndPaper-CvGft3ku.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),he=["id"],fe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ye={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},ge=["xmlns","viewBox"],me=["id"],be=["stdDeviation"],ke=["d","stroke","stroke-width"],Ce=["d","stroke","stroke-width"],we=["filter"],xe=["d","stroke","stroke-width"],$e=["d","stroke-width","onMouseenter","onClick"],Be={key:5,class:"vue-data-ui-watermark"},Ne=["onClick"],Te={key:0},_e={key:1},Se={key:8,ref:"source",dir:"auto"},Pe=["innerHTML"],Ve={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(X,{expose:j,emit:S}){const i=X,{vue_ui_galaxy:Y}=r.useConfig(),b=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{P()});function P(){r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):i.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()),k=e.ref(null),J=e.ref(null),x=e.ref(!1),$=e.ref(""),c=e.ref(null),V=e.ref(0),E=e.ref(0),L=e.ref(0),F=e.ref(0),t=e.computed({get:()=>O(),set:l=>l});function O(){const l=H.useNestedProp({userConfig:i.config,defaultConfig:Y});return l.theme?{...H.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>i.config,l=>{t.value=O(),P(),E.value+=1,L.value+=1,F.value+=1},{deep:!0});const{isPrinting:A,isImaging:I,generatePdf:z,generateImage:D}=U.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),K=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),B=e.ref({height:180,width:250}),u=e.ref([]);function N(l){u.value.includes(l.id)?u.value=u.value.filter(a=>a!==l.id):u.value.push(l.id),S("selectLegend",m.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const h=e.computed(()=>i.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||Q.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 Z(){return h.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const d=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),ee=e.ref(190),q=e.computed(()=>h.value.filter(l=>!u.value.includes(l.id))),m=e.computed(()=>{const l=[];for(let a=0;a<q.value.length;a+=1){const o=q.value[a];let n=o.value/d.value*ee.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/d.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)=>!u.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),y=e.ref(!1);function te(l){y.value=l,V.value+=1}const T=e.ref(null);function le({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){T.value={datapoint:l,seriesIndex:o,series:h.value,config:t.value},x.value=n,c.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:h.value,config:t.value}))?$.value=f({seriesIndex:o,datapoint:l,series:h.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>`),$.value=`<div>${s}</div>`)}const G=e.computed(()=>h.value.map((l,a)=>({...l,proportion:(l.value||0)/i.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:u.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>N(l),isSegregated:u.value.includes(l.id)}))),oe=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":""})),p=e.computed(()=>{const l=m.value.map(o=>({name:o.name,color:o.color})),a=m.value.map(o=>o.value);return{head:l,body:a}});function M(){e.nextTick(()=>{const l=p.value.head.map((n,s)=>[[n.name],[p.value.body[s]],[isNaN(p.value.body[s]/d.value)?"-":p.value.body[s]/d.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 C=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:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=p.value.head.map((s,f)=>{const ae=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.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},ae,isNaN(p.value.body[f]/d.value)?"-":r.dataLabel({v:p.value.body[f]/d.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 W(){v.value.showTable=!v.value.showTable}function R(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function _(){w.value=!w.value}return j({getData:Z,generatePdf:z,generateCsv:M,generateImage:D,toggleTable:W,toggleTooltip:R,toggleAnnotator:_}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:k,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}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ve.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:_},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",fe,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(),e.createBlock(ne._sfc_main,{key:`title_${E.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&&b.value?(e.openBlock(),e.createBlock(U.UserOptions,{ref_key:"details",ref:J,key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(A),isImaging:e.unref(I),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:v.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:te,onGeneratePdf:e.unref(z),onGenerateCsv:M,onGenerateImage:e.unref(D),onToggleTable:W,onToggleTooltip:R,onToggleAnnotator:_},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"])):e.createCommentVNode("",!0),b.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 ${B.value.width} ${B.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(de._sfc_main),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,be)],8,me)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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)*(c.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,ke)):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*(c.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(`${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Ce)):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*(c.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 ${c.value&&c.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,xe)],8,we)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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=>le({datapoint:o,relativeIndex:n,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{x.value=!1,c.value=null}),onClick:s=>S("selectDatapoint",o)},null,40,$e)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:B.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ie.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(re.Legend,{key:`legend_${F.value}`,legendSet:G.value,config:oe.value,onClickMarker:a[1]||(a[1]=({legend:o})=>N(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>N(o),style:e.normalizeStyle(`opacity:${u.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),u.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",_e," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Te," ("+e.toDisplayString(isNaN(o.value/d.value)?"-":e.unref(r.dataLabel)({v:o.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ne)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:G.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(se._sfc_main,{show:v.value.showTooltip&&x.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,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:k.value,content:$.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({...T.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...T.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(ce.default,{key:9,hideDetails:"",config:{open:v.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(ue.DataTable,{key:`table_${L.value}`,colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Pe)]),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)],14,he))}},Ee=pe._export_sfc(Ve,[["__scopeId","data-v-9c1d1614"]]);exports.default=Ee;
@@ -1,15 +1,15 @@
1
1
  import { computed as d, onMounted as Se, ref as u, watch as Ne, openBlock as o, createElementBlock as n, normalizeClass as A, normalizeStyle as H, createBlock as $, createCommentVNode as i, unref as p, createSlots as Le, withCtx as c, renderSlot as v, normalizeProps as S, guardReactiveProps as N, createVNode as re, createElementVNode as _, Fragment as ue, renderList as ne, createTextVNode as ie, toDisplayString as E, nextTick as Oe } from "vue";
2
- import { u as Fe, o as Ie, e as ce, g as Ae, c as ve, t as Ee, a as De, p as D, b as Ve, d as Be, J as de, M as Ge, f as k, X as Me, i as he, x as pe, y as ze, q as We, r as He } from "./index-Cm2_6s9o.js";
3
- import { L as Ue } from "./Legend-DRozxv9L.js";
4
- import { _ as Xe } from "./Title-Coit3NcT.js";
5
- import { _ as Re } from "./Tooltip-BBgfUr4a.js";
6
- import { D as Ye } from "./DataTable-NGi-FgLM.js";
7
- import { u as je, U as qe } from "./usePrinter-Cx8U1e30.js";
8
- import Je from "./vue-ui-skeleton-BUS6A44x.js";
9
- import Ke from "./vue-ui-accordion-CxrNF8BI.js";
10
- import { u as ye } from "./useNestedProp-BYPZJNhi.js";
11
- import { _ as Qe } from "./PackageVersion-CTMY4zeY.js";
12
- import { P as Ze } from "./PenAndPaper-DJ_d10S-.js";
2
+ import { u as Fe, o as Ie, e as ce, g as Ae, c as ve, t as Ee, a as De, p as D, b as Ve, d as Be, J as de, M as Ge, f as k, X as Me, i as he, x as pe, y as ze, q as We, r as He } from "./index-BUHajhqq.js";
3
+ import { L as Ue } from "./Legend-CEhIHRJc.js";
4
+ import { _ as Xe } from "./Title-_dfoh5WC.js";
5
+ import { _ as Re } from "./Tooltip-CAkj2Rmy.js";
6
+ import { D as Ye } from "./DataTable-D7JlgAbC.js";
7
+ import { u as je, U as qe } from "./usePrinter-DLHRtlhI.js";
8
+ import Je from "./vue-ui-skeleton-BXPvqUO_.js";
9
+ import Ke from "./vue-ui-accordion-2QOotHrr.js";
10
+ import { u as ye } from "./useNestedProp-a0uhe7rJ.js";
11
+ import { _ as Qe } from "./PackageVersion-8Ql1gdmo.js";
12
+ import { P as Ze } from "./PenAndPaper-b1ZmLra1.js";
13
13
  import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const tt = ["id"], lt = {
15
15
  key: 1,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-KYU_8xrX.cjs"),j=require("./useResponsive-BJ7DTGpm.cjs"),q=require("./usePrinter-4Zj_RZ5v.cjs"),ue=require("./vue-ui-skeleton-D6mdHYxB.cjs"),ie=require("./Title-URF9hufV.cjs"),W=require("./useNestedProp-C-g0SLHN.cjs"),ce=require("./PackageVersion-Df1iPzMk.cjs"),ve=require("./PenAndPaper-CvGft3ku.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),he=["id"],me={key:0},fe=["xmlns","viewBox"],ye=["id"],pe=["stop-color"],ke=["stop-color"],ge=["stop-color"],be=["id"],xe=["stdDeviation"],_e=["d","fill","stroke"],Se=["id","d"],Be=["fill","font-size","font-weight"],we=["href","startOffset"],Ce=["x","y","text-anchor","fill","font-size","font-weight"],Ne=["d","filter"],Fe=["stroke","stroke-width"],ze=["stroke","stroke-width"],Pe=["stroke","stroke-width"],Ee=["stroke","stroke-width"],$e={key:4},Me=["x","y","text-anchor","font-size","font-weight","fill"],Oe=["x","y","font-size","font-weight","fill"],Ve={key:6},Xe=["x1","y1","x2","y2","stroke","stroke-width"],Ye=["x1","y1","x2","y2","stroke","stroke-width"],Ie=["x1","y1","x2","y2","stroke-width","filter"],Ae={key:7},Re=["d","fill","stroke","stroke-width"],Le=["cx","cy","fill","r","stroke-width","stroke"],De=["x","y","font-size","fill"],Ge={key:5,class:"vue-data-ui-watermark"},Te={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:U}){const c=C,{vue_ui_gauge:H}=r.useConfig(),S=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),y=e.ref(r.createUid()),Z=e.ref(null),z=e.ref(0),g=e.ref(null),P=e.ref(null),E=e.ref(null),$=e.ref(null),M=e.ref(null),O=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});e.watch(()=>c.config,l=>{t.value=V(),L(),O.value+=1},{deep:!0});function V(){const l=W.useNestedProp({userConfig:c.config,defaultConfig:H});return l.theme?{...W.useNestedProp({userConfig:r.themes.vue_ui_gauge[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}const{isPrinting:X,isImaging:Y,generatePdf:I,generateImage:A}=q.usePrinter({elementId:`vue-ui-gauge_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),J=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),K=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!S.value||r.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const l=[];(c.dataset.series||[]).forEach(a=>{l.push(a.from||1e-7),l.push(a.to||1e-7)});const s=Math.max(...l);return{...c.dataset,series:(c.dataset.series||[]).map((a,n)=>({...a,color:r.convertColorToHex(a.color)||K.value[n]||r.palette[n],value:((a.to||0)-(a.from||0))/s*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),x=e.ref(0),v=e.ref(t.value.style.chart.animation.use?0:c.dataset.value);e.watch(()=>c.dataset.value,()=>{D(c.dataset.value)});const u=e.computed(()=>{const l=o.value.width/2,s=i.value.base,a=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI;return{x1:l,y1:s,x2:l+i.value.pointerSize*o.value.pointerSize*.9*Math.cos(a),y2:s+i.value.pointerSize*o.value.pointerSize*.9*Math.sin(a)}}),R=e.computed(()=>{const l=o.value.width/2,s=i.value.base,a=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI,n=l+i.value.pointerSize*o.value.pointerSize*.9*Math.cos(a),m=s+i.value.pointerSize*o.value.pointerSize*.9*Math.sin(a),f=o.value.pointerRadius,oe=l+f*Math.cos(a+Math.PI/2),re=s+f*Math.sin(a+Math.PI/2),ne=l+f*Math.cos(a-Math.PI/2),se=s+f*Math.sin(a-Math.PI/2);return isNaN(n)?null:`M ${n},${m} ${oe},${re} ${ne},${se} Z`}),N=e.computed(()=>{for(let l=0;l<p.value.series.length;l+=1){const{color:s,from:a,to:n}=p.value.series[l];if(v.value>=a&&v.value<=n)return s}return"#2D353C"}),B=e.ref(null);function L(){if(r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiGauge",type:"dataset"}):(r.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(l=>{r.error({componentName:"VueUiGauge",type:"datasetAttribute",property:l})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((l,s)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["from","to"]}).forEach(a=>{r.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:a,index:s})})}):r.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),D(c.dataset.value||0),t.value.responsive){const l=j.throttle(()=>{const{width:s,height:a}=j.useResponsive({chart:g.value,title:t.value.style.chart.title.text?P.value:null,legend:E.value,source:$.value,noTitle:M.value});o.value.width=s,o.value.height=a,o.value.centerX=s/2,o.value.centerY=h.value/2/358.4*a,o.value.bottom=a,o.value.labelFontSize=18/h.value*Math.min(a,s)<10?10:18/h.value*Math.min(a,s),o.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(a,s)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(a,s),o.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(a,s),o.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(a,s),o.value.pointerStrokeWidth=r.translateSize({relator:Math.min(s,a),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),o.value.markerOffset=r.translateSize({relator:Math.max(s,a),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),o.value.segmentFontSize=r.translateSize({relator:Math.min(s,a),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});B.value=new ResizeObserver(l),B.value.observe(g.value.parentNode)}}e.onMounted(()=>{L()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});function D(l){const s=[];(p.value.series||[]).forEach(f=>{s.push(f.from||0),s.push(f.to||0)}),b.value=Math.max(...s),x.value=Math.min(...s);let a=t.value.style.chart.animation.speed;const n=Math.abs(l-v.value)/(a*60);function m(){v.value<l?v.value=Math.min(v.value+n,l):v.value>l&&(v.value=Math.max(v.value-n,l)),v.value!==l&&requestAnimationFrame(m)}m()}const i=e.computed(()=>{const l=t.value.responsive?Math.min(o.value.width,o.value.height):o.value.width,s=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:l/s,gradients:l/(s*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(()=>r.makeDonut({series:p.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)),Q=e.computed(()=>r.makeDonut({series:p.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)),k=e.computed(()=>d.value.map(l=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(l.nameOffsetRatio||1))),G=e.computed(()=>{const{x:l,y:s}=r.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:a,y:n}=r.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:l,y1:s,x2:a,y2:n}}),T=e.computed(()=>d.value.map(l=>{const{x:s,y:a}=r.offsetFromCenterPoint({initX:l.separator.x,initY:l.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:n,y:m}=r.offsetFromCenterPoint({initX:l.endX,initY:l.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:s,y1:a,x2:n,y2:m}}));function ee(l){if(l.reduce((m,f)=>m+f,0)>100)throw new Error("Total % must not exceed 100");const a=50;let n=0;return l.map(m=>(n+=m,`${n/100*a-m/4}%`))}const te=e.computed(()=>ee(d.value.map(l=>l.proportion*100))),ae=e.computed(()=>r.makeDonut({series:p.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)),_=e.ref(!1);function le(l){_.value=l,z.value+=1}const w=e.ref(!1);function F(){w.value=!w.value}return U({generatePdf:I,generateImage:A,toggleAnnotator:F}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${_.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${y.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%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ve.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:F},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),J.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:P,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${O.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",me,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&&S.value?(e.openBlock(),e.createBlock(q.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Y),isPrinting:e.unref(X),uid:y.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:le,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(A),onToggleAnnotator:F},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:n})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.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(ce._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${y.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,pe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,ge)],8,ye)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.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,xe)],8,be)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,n)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${n}`,d:a.arcSlice,fill:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,_e))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,n)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${y.value}_${n}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[n]},0 a ${k.value[n]},${k.value[n]} 0 1,1 ${2*k.value[n]},0 a ${k.value[n]},${k.value[n]} 0 1,1 -${2*k.value[n]},0`,fill:"transparent"},null,8,Se))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,n)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.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_${y.value}_${n}`,startOffset:te.value[n]},e.toDisplayString(a.name||""),9,we)],8,Be))),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:1},e.renderList(Q.value,(a,n)=>(e.openBlock(),e.createElementBlock("text",{x:a.center.endX,y:a.center.endY,"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.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(a.name||""),9,Ce))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(ae.value,(a,n)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${n}`,d:a.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${y.value})`},null,8,Ne))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("line",e.mergeProps(G.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Fe),e.createElementVNode("line",e.mergeProps(G.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,ze),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,a=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(a,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Pe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,a=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(a,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ee))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,n)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(r.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:a.center.startX,initY:a.center.startY,offset:o.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:a.center.startX,initY:a.center.startY,offset:o.value.markerOffset}).y,"text-anchor":a.center.startX<u.value.x1-5?"end":a.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(r.applyDataLabel)(t.value.style.chart.layout.markers.formatter,a.from,e.unref(r.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:a.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Me))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:e.unref(r.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(r.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(r.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(r.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,Oe)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Ve,[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,Xe)),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?N.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.7},null,8,Ye)),!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_${y.value})`},null,8,Ie)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Ae,[R.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:R.value,fill:t.value.style.chart.layout.pointer.useRatingColor?N.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,Re)):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,Le),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:8,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?N.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(r.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,De)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],14,fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.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:E},[e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],14,he))}},je=de._export_sfc(Te,[["__scopeId","data-v-cb288169"]]);exports.default=je;