vue-data-ui 2.4.44 → 2.4.45

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-DabU4Tq7.js → Arrow-DExBMFtJ.js} +1 -1
  2. package/dist/{Arrow-D7FfpPjv.cjs → Arrow-dxEccWUa.cjs} +1 -1
  3. package/dist/{BaseIcon-vmPfwVXS.cjs → BaseIcon-DUokibJ1.cjs} +1 -1
  4. package/dist/{BaseIcon-DgOZGFA6.js → BaseIcon-DpLJi6ci.js} +1 -1
  5. package/dist/{DataTable-ByILXTgq.js → DataTable-NGi-FgLM.js} +2 -2
  6. package/dist/{DataTable-WzoXT7XP.cjs → DataTable-aoauqoko.cjs} +1 -1
  7. package/dist/{Legend-eRHr8IFu.cjs → Legend-DHE2CFkm.cjs} +1 -1
  8. package/dist/{Legend-CJAbBncx.js → Legend-DRozxv9L.js} +1 -1
  9. package/dist/{PackageVersion-DylCZJMA.cjs → PackageVersion-1JWV5loe.cjs} +1 -1
  10. package/dist/{PackageVersion-2fR7Awu1.js → PackageVersion-CTMY4zeY.js} +1 -1
  11. package/dist/{PenAndPaper-2aIJsXNH.cjs → PenAndPaper-C6mnwE-L.cjs} +1 -1
  12. package/dist/{PenAndPaper-wVL9QD9U.js → PenAndPaper-DJ_d10S-.js} +3 -3
  13. package/dist/{Shape-JMJZs7By.js → Shape-C-sY_hlc.js} +1 -1
  14. package/dist/{Shape-nGoGILeB.cjs → Shape-rA2az7tR.cjs} +1 -1
  15. package/dist/{Slicer-BLuFaL8r.cjs → Slicer-CJsmloDN.cjs} +1 -1
  16. package/dist/{Slicer-Ce0VzdTY.js → Slicer-D4SO7odF.js} +2 -2
  17. package/dist/{Title-Dj5wajqV.js → Title-Coit3NcT.js} +1 -1
  18. package/dist/{Title-CtfsoH8U.cjs → Title-DkbnpMvf.cjs} +1 -1
  19. package/dist/{Tooltip-6D9aABEX.cjs → Tooltip-B8L4NDsX.cjs} +1 -1
  20. package/dist/{Tooltip-Zrcwpy3T.js → Tooltip-BBgfUr4a.js} +1 -1
  21. package/dist/{index-D3_dyp9t.js → index-Cm2_6s9o.js} +119 -109
  22. package/dist/index-DuDeHJyK.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +10 -0
  25. package/dist/types/vue-data-ui.d.ts +10 -0
  26. package/dist/{useNestedProp-qwG6HgrL.js → useNestedProp-BYPZJNhi.js} +1 -1
  27. package/dist/{useNestedProp-C8Y0yWDq.cjs → useNestedProp-zkJOoemW.cjs} +1 -1
  28. package/dist/{usePrinter-41NUZdgl.js → usePrinter-Cx8U1e30.js} +1 -1
  29. package/dist/{usePrinter-Cw4E_LYe.cjs → usePrinter-ardO_DNo.cjs} +1 -1
  30. package/dist/{vue-data-ui-DPujYnT2.cjs → vue-data-ui-B8Lvjc4V.cjs} +1 -1
  31. package/dist/{vue-data-ui-CKlgRX2w.js → vue-data-ui-Blpxr4_M.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-CURLeBAg.cjs → vue-ui-3d-bar-CqmOoIA2.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-DFqYSjKF.js → vue-ui-3d-bar-DvitE1K_.js} +9 -9
  36. package/dist/{vue-ui-accordion-DbKFz7vP.js → vue-ui-accordion-CxrNF8BI.js} +3 -3
  37. package/dist/{vue-ui-accordion-zOz2K8wY.cjs → vue-ui-accordion-JS5d0ZPi.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BzwQxubx.cjs → vue-ui-age-pyramid-CRP36JDm.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DVjZHG-c.js → vue-ui-age-pyramid-Ti2L5N92.js} +10 -10
  40. package/dist/{vue-ui-annotator-CU8bDkP0.cjs → vue-ui-annotator-DtL3BbOJ.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-ZDqHg-kV.js → vue-ui-annotator-HNK_5tWo.js} +1 -1
  42. package/dist/{vue-ui-bullet-BaQJ3acV.js → vue-ui-bullet-D3WmBrm4.js} +8 -8
  43. package/dist/{vue-ui-bullet-Dt0Ki37L.cjs → vue-ui-bullet-DEUwbTdx.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-C5Pzu7U1.js → vue-ui-candlestick-B5okP_Jf.js} +11 -11
  45. package/dist/{vue-ui-candlestick-CMubhqre.cjs → vue-ui-candlestick-C5bTH9oE.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-CPE1nggj.js → vue-ui-carousel-table-BgKL0rnF.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-CL6njZH4.cjs → vue-ui-carousel-table-Bt2xx2b5.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DHF2jlte.cjs → vue-ui-chestnut-D5XfSvCG.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-B7zSDFfA.js → vue-ui-chestnut-DDsFxoUr.js} +8 -8
  50. package/dist/{vue-ui-cursor-GKguDqwJ.js → vue-ui-cursor-B2NOd5i-.js} +2 -2
  51. package/dist/{vue-ui-cursor-PG2njvGA.cjs → vue-ui-cursor-CSBJgZLu.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-D2w_aK31.cjs → vue-ui-dashboard-C6MJN9kG.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-u_haUFHY.js → vue-ui-dashboard-u-Gt08KE.js} +2 -2
  54. package/dist/{vue-ui-digits-DQetGFnZ.cjs → vue-ui-digits-B4fzfTox.cjs} +1 -1
  55. package/dist/{vue-ui-digits-DjMZxTuZ.js → vue-ui-digits-DCXyjW_e.js} +2 -2
  56. package/dist/{vue-ui-donut-CmRH-JB2.js → vue-ui-donut-BvASz63R.js} +11 -11
  57. package/dist/{vue-ui-donut-DQcISN6U.cjs → vue-ui-donut-CaJSY2gj.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-YntzBUIL.js → vue-ui-donut-evolution-DcPk33e8.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-XrPuyr-U.cjs → vue-ui-donut-evolution-DrnLlHPS.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CCwYiUwP.cjs → vue-ui-dumbbell-8v-xIlsx.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-DmgUkc9m.js → vue-ui-dumbbell-D918XYc8.js} +10 -10
  62. package/dist/{vue-ui-flow-Ca2cA45D.cjs → vue-ui-flow-BBmnTxVE.cjs} +1 -1
  63. package/dist/{vue-ui-flow-CZkXzt4D.js → vue-ui-flow-DQ5q2b1Y.js} +9 -9
  64. package/dist/{vue-ui-funnel-CJAT8_1R.cjs → vue-ui-funnel-CmERxe4h.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-z2OgL3Q1.js → vue-ui-funnel-v5WCHaw6.js} +8 -8
  66. package/dist/{vue-ui-galaxy-bgA3s7VZ.cjs → vue-ui-galaxy-8xWYo-xy.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-CGhDJ3tA.js → vue-ui-galaxy-COSx0c89.js} +11 -11
  68. package/dist/vue-ui-gauge-CWnGYcFD.js +610 -0
  69. package/dist/vue-ui-gauge-CYth7Lci.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-Bq56LDKo.js → vue-ui-gizmo-ByuFn-0N.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DBIefin8.cjs → vue-ui-gizmo-DUO_TpvK.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-C0NUwPN7.cjs → vue-ui-heatmap-DiON-CAI.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-Dbrlismo.js → vue-ui-heatmap-UoKourVZ.js} +10 -10
  74. package/dist/{vue-ui-history-plot-Cd0Qgkox.cjs → vue-ui-history-plot-CjVySabp.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-CMAu0w0K.js → vue-ui-history-plot-CkxvdQeV.js} +11 -11
  76. package/dist/{vue-ui-kpi-CkRUVNcg.js → vue-ui-kpi-BRwkUBxs.js} +3 -3
  77. package/dist/{vue-ui-kpi-C1a3ONse.cjs → vue-ui-kpi-DYHGPjrp.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-BVvBbruK.js → vue-ui-mini-loader-Cbl4ydLu.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DZ1q-GO6.cjs → vue-ui-mini-loader-oviO8Ueo.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-C-tmrnHA.cjs → vue-ui-molecule-CX1M509E.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-DlXNe42L.js → vue-ui-molecule-DM_mX72q.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-DzHvFqno.js → vue-ui-mood-radar-Bzsba8qo.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-DYXE1dDD.cjs → vue-ui-mood-radar-fuqAjpvg.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-DDpYr89I.js → vue-ui-nested-donuts-BG84mskb.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BpcKwKFO.cjs → vue-ui-nested-donuts-DfHtC4XP.cjs} +1 -1
  86. package/dist/{vue-ui-onion-B9CAGc1E.js → vue-ui-onion-DpFx1Oy9.js} +11 -11
  87. package/dist/{vue-ui-onion-_WXwSygI.cjs → vue-ui-onion-gt77JCbM.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CdvYxx2S.js → vue-ui-parallel-coordinate-plot-CQG_anr7.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs → vue-ui-parallel-coordinate-plot-xJTddxji.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-CILC-e-o.js → vue-ui-quadrant-Cddob9c3.js} +12 -12
  91. package/dist/{vue-ui-quadrant-ivKVYVXn.cjs → vue-ui-quadrant-D0YgwhwW.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DW3XlvkG.cjs → vue-ui-quick-chart-CLzNpIFU.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-NIE0zUjt.js → vue-ui-quick-chart-DTEubspa.js} +9 -9
  94. package/dist/{vue-ui-radar-BonXp2ML.js → vue-ui-radar--uexaa6p.js} +12 -12
  95. package/dist/{vue-ui-radar-D9WtkmKW.cjs → vue-ui-radar-BTh9qZ2p.cjs} +1 -1
  96. package/dist/{vue-ui-rating-DblWs0Ay.js → vue-ui-rating-BQuZA9UU.js} +2 -2
  97. package/dist/{vue-ui-rating-3akEkZ0G.cjs → vue-ui-rating-Dyjk2dub.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-BaPqJcbF.js → vue-ui-relation-circle-C8NYrTHA.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-Bv5QA1FA.cjs → vue-ui-relation-circle-FtGlV4Ne.cjs} +1 -1
  100. package/dist/{vue-ui-rings-KRi0yCa1.cjs → vue-ui-rings-ClJRYeFC.cjs} +1 -1
  101. package/dist/{vue-ui-rings-DHa-dc3s.js → vue-ui-rings-FEIPR_dS.js} +11 -11
  102. package/dist/{vue-ui-scatter-CKnKyeDJ.js → vue-ui-scatter-CzbgC6ep.js} +12 -12
  103. package/dist/{vue-ui-scatter-C-0G6tO_.cjs → vue-ui-scatter-vYxSs8Gf.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-BIvS3Dva.cjs → vue-ui-screenshot-CVQCw0B1.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-BnQlv1n0.js → vue-ui-screenshot-IaxgY5qE.js} +1 -1
  106. package/dist/{vue-ui-skeleton-CaV7JuCg.js → vue-ui-skeleton-BUS6A44x.js} +3 -3
  107. package/dist/{vue-ui-skeleton-urNi7er0.cjs → vue-ui-skeleton-DleyAXe1.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BkKHZRcE.js → vue-ui-smiley-5CVa-rQU.js} +2 -2
  109. package/dist/{vue-ui-smiley-BDJWFNUb.cjs → vue-ui-smiley-BTTXNPGY.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-Jrg-tgH_.cjs → vue-ui-spark-trend-CZAgof3m.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-C6B6URVX.js → vue-ui-spark-trend-D9ww-Cv5.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-CcPXRX01.cjs → vue-ui-sparkbar-BFsdfuNO.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-D7A9EKVi.js → vue-ui-sparkbar-DKeLvkHa.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-ZQOdaaF1.cjs → vue-ui-sparkgauge-B_bIpe_O.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-C1kcwrm9.js → vue-ui-sparkgauge-DLpPuJdG.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-DkMaK9FC.js → vue-ui-sparkhistogram-BA8QV7Cu.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CZQzNQHQ.cjs → vue-ui-sparkhistogram-RoW45LV8.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DuJlR_56.cjs → vue-ui-sparkline-BggHSfaz.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-JNv27Q7M.js → vue-ui-sparkline-BwOtPPij.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-4YKk6S2y.js → vue-ui-sparkstackbar-DCS6RRgN.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-BStYMSiJ.cjs → vue-ui-sparkstackbar-Uv_p8v9c.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-BKhScZJ4.cjs → vue-ui-stackbar-BqKNaGrf.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-BrBToOgd.js → vue-ui-stackbar-zcfxba5s.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-BSbIVJLB.cjs → vue-ui-strip-plot-J5SSJPyl.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-BB9AjuXc.js → vue-ui-strip-plot-NykStkP9.js} +11 -11
  126. package/dist/{vue-ui-table-CTwEo09l.cjs → vue-ui-table-DWPKVbYC.cjs} +1 -1
  127. package/dist/{vue-ui-table-BkfBNufP.js → vue-ui-table-DhRjI7oG.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-t6NXIulS.js → vue-ui-table-heatmap-CT5nGoW-.js} +4 -4
  129. package/dist/{vue-ui-table-heatmap-BRa-idSR.cjs → vue-ui-table-heatmap-GvLTOGcB.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CtVdHOeS.js → vue-ui-table-sparkline-Ba_Ucvgb.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-LRvAe8DG.cjs → vue-ui-table-sparkline-CBFEknMF.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-Dqy_A9Ka.js → vue-ui-thermometer-C11VSZfb.js} +7 -7
  133. package/dist/{vue-ui-thermometer-Bkj9olK0.cjs → vue-ui-thermometer-sqA0TGTi.cjs} +1 -1
  134. package/dist/{vue-ui-timer-C2WYUfS1.cjs → vue-ui-timer-CcBNysNG.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BkWR-FS3.js → vue-ui-timer-lwjayVn0.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-BXumbUyZ.cjs → vue-ui-tiremarks-FBnh0R_Z.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Dl881FpL.js → vue-ui-tiremarks-Jz80HKpg.js} +7 -7
  138. package/dist/{vue-ui-treemap-CvNWsOoE.cjs → vue-ui-treemap-7YFJ-Pb9.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-Vl47y-4n.js → vue-ui-treemap-B_qVGTnP.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-BzkqxE45.js → vue-ui-vertical-bar-5MwcqOTN.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-D1EoKlII.cjs → vue-ui-vertical-bar-DGuvFK2h.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-Bd4Wn4LE.js → vue-ui-waffle-B0JbRRUv.js} +11 -11
  143. package/dist/{vue-ui-waffle-C6cN0uw8.cjs → vue-ui-waffle-C0F8eexl.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-OGoTipOg.cjs → vue-ui-wheel-DP9XwVGM.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-D1SsLAru.js → vue-ui-wheel-pQBqSI5z.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-Da4dHp_U.cjs → vue-ui-word-cloud-CmKH64gk.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-C6vq-XKZ.js → vue-ui-word-cloud-D39_9P7v.js} +10 -10
  148. package/dist/{vue-ui-xy-DXLSyett.cjs → vue-ui-xy-2m8k1EUB.cjs} +1 -1
  149. package/dist/{vue-ui-xy-Bbih4XkZ.js → vue-ui-xy-DRYbR_nu.js} +14 -14
  150. package/dist/{vue-ui-xy-canvas-GffgFKCU.cjs → vue-ui-xy-canvas-CywB2tWN.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-Dtv9a_jF.js → vue-ui-xy-canvas-DZib_307.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-ZAR4YEAn.cjs +0 -9
  154. package/dist/vue-ui-gauge-F-bvIFfG.cjs +0 -1
  155. package/dist/vue-ui-gauge-NtnSEvX5.js +0 -557
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-ZAR4YEAn.cjs"),re=require("./Legend-eRHr8IFu.cjs"),ne=require("./Title-CtfsoH8U.cjs"),se=require("./Tooltip-6D9aABEX.cjs"),ue=require("./DataTable-WzoXT7XP.cjs"),U=require("./usePrinter-Cw4E_LYe.cjs"),ie=require("./vue-ui-skeleton-urNi7er0.cjs"),ce=require("./vue-ui-accordion-zOz2K8wY.cjs"),H=require("./useNestedProp-C8Y0yWDq.cjs"),de=require("./PackageVersion-DylCZJMA.cjs"),ve=require("./PenAndPaper-2aIJsXNH.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-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,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-D3_dyp9t.js";
3
- import { L as Ue } from "./Legend-CJAbBncx.js";
4
- import { _ as Xe } from "./Title-Dj5wajqV.js";
5
- import { _ as Re } from "./Tooltip-Zrcwpy3T.js";
6
- import { D as Ye } from "./DataTable-ByILXTgq.js";
7
- import { u as je, U as qe } from "./usePrinter-41NUZdgl.js";
8
- import Je from "./vue-ui-skeleton-CaV7JuCg.js";
9
- import Ke from "./vue-ui-accordion-DbKFz7vP.js";
10
- import { u as ye } from "./useNestedProp-qwG6HgrL.js";
11
- import { _ as Qe } from "./PackageVersion-2fR7Awu1.js";
12
- import { P as Ze } from "./PenAndPaper-wVL9QD9U.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-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";
13
13
  import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const tt = ["id"], lt = {
15
15
  key: 1,