vue-data-ui 2.4.39 → 2.4.41

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 (158) hide show
  1. package/dist/{Arrow-gn_WiuJU.js → Arrow-6z0ZQva_.js} +1 -1
  2. package/dist/{Arrow-BH3TXY5i.cjs → Arrow-Cht76m69.cjs} +1 -1
  3. package/dist/{BaseIcon-C9eU1XEJ.cjs → BaseIcon-D-JUZiGA.cjs} +1 -1
  4. package/dist/{BaseIcon-PEMG4fz_.js → BaseIcon-DCE3wRiG.js} +1 -1
  5. package/dist/{DataTable-D7EHk98Z.js → DataTable-B5DiCrf_.js} +2 -2
  6. package/dist/{DataTable-Dk61oGV_.cjs → DataTable-Cr3Xkxe4.cjs} +1 -1
  7. package/dist/{Legend-6jFPkL1P.cjs → Legend-BXG_XPom.cjs} +1 -1
  8. package/dist/{Legend-C8xQE9Da.js → Legend-DzxQIjDO.js} +1 -1
  9. package/dist/{PackageVersion-C7okNmPF.cjs → PackageVersion-CMtZxTqq.cjs} +1 -1
  10. package/dist/{PackageVersion-CiIsJuZg.js → PackageVersion-S7OD_s5u.js} +1 -1
  11. package/dist/{PenAndPaper-BBXIRAdA.js → PenAndPaper-BxJZd7k9.js} +3 -3
  12. package/dist/{PenAndPaper-BUjMRWG0.cjs → PenAndPaper-DWYhyZye.cjs} +1 -1
  13. package/dist/{Shape-C37gcsR4.js → Shape-C3ywBhkW.js} +1 -1
  14. package/dist/{Shape-f0l9bT7U.cjs → Shape-CvL90fNe.cjs} +1 -1
  15. package/dist/{Slicer-A-l0DLQY.cjs → Slicer-B2aHb4bj.cjs} +1 -1
  16. package/dist/{Slicer-DHzuJMcK.js → Slicer-D9ASV60L.js} +2 -2
  17. package/dist/{Title-DU9SuVY-.js → Title-BB0O0yol.js} +1 -1
  18. package/dist/{Title-BeCsXJhg.cjs → Title-D9gPXVTT.cjs} +1 -1
  19. package/dist/{Tooltip-Chiu53IG.js → Tooltip-GvLaModr.js} +1 -1
  20. package/dist/{Tooltip-DCwHEKeM.cjs → Tooltip-ypQtmi99.cjs} +1 -1
  21. package/dist/index-B5Ugkauv.cjs +9 -0
  22. package/dist/{index-hQvps1ng.js → index-B6Q1Fyk0.js} +12 -3
  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-CxQ2hIfU.js → useNestedProp-DQpuJSz3.js} +1 -1
  27. package/dist/{useNestedProp-DzZoHbI7.cjs → useNestedProp-bZitLnbb.cjs} +1 -1
  28. package/dist/{usePrinter-c5Pf5Hrk.js → usePrinter-D8dIU7aG.js} +1 -1
  29. package/dist/{usePrinter-C-C264ik.cjs → usePrinter-DtpFEgOX.cjs} +1 -1
  30. package/dist/{vue-data-ui-DhR5T2GB.cjs → vue-data-ui-DBN7iJHU.cjs} +1 -1
  31. package/dist/{vue-data-ui-DD3uGHqs.js → vue-data-ui-H24TWcBx.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-BNOB6IJY.js → vue-ui-3d-bar-BA2CQYGW.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CBVoa_Wd.cjs → vue-ui-3d-bar-BaNI_M3v.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-CbATWtZa.js → vue-ui-accordion-BOHicozd.js} +3 -3
  37. package/dist/{vue-ui-accordion-CTxFHMF7.cjs → vue-ui-accordion-u4xDSvRn.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-ahMSlg4_.cjs → vue-ui-age-pyramid-DN25tjv-.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-Ddn0vH-R.js → vue-ui-age-pyramid-vKWko9vn.js} +10 -10
  40. package/dist/{vue-ui-annotator-DUul7luS.cjs → vue-ui-annotator-BcxUQ5tM.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DgPWj2k4.js → vue-ui-annotator-D4KNucw5.js} +1 -1
  42. package/dist/{vue-ui-bullet-BvFWfcoX.cjs → vue-ui-bullet-C3DKTZbg.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-C6JmUhDP.js → vue-ui-bullet-DZgtd_qb.js} +8 -8
  44. package/dist/{vue-ui-candlestick-BUATE5UN.js → vue-ui-candlestick-C8yBMu8-.js} +11 -11
  45. package/dist/{vue-ui-candlestick-hi4L9XWB.cjs → vue-ui-candlestick-DVEofXBZ.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-Bi9tYRH3.js → vue-ui-carousel-table-Bpsrlbx9.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-DvotxYl6.cjs → vue-ui-carousel-table-C62szGjt.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-CRICzF5h.js → vue-ui-chestnut-DhPSNM96.js} +8 -8
  49. package/dist/{vue-ui-chestnut-Bv2eLqjB.cjs → vue-ui-chestnut-VWwSZnUX.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-DfwrrtWf.js → vue-ui-cursor-BM2OiZnZ.js} +2 -2
  51. package/dist/{vue-ui-cursor-qFWZfG95.cjs → vue-ui-cursor-BwnZYB4D.cjs} +1 -1
  52. package/dist/vue-ui-dashboard-BcnW7vDs.js +248 -0
  53. package/dist/vue-ui-dashboard-D8FU1GbE.cjs +1 -0
  54. package/dist/{vue-ui-digits-C3X-8Guv.cjs → vue-ui-digits-BmQBwho3.cjs} +1 -1
  55. package/dist/{vue-ui-digits-DUCY8rWv.js → vue-ui-digits-M4Pvrg0n.js} +2 -2
  56. package/dist/{vue-ui-donut-BiUKzDWv.js → vue-ui-donut-BgsQjURe.js} +11 -11
  57. package/dist/{vue-ui-donut-Bv2GZaYZ.cjs → vue-ui-donut-CZZfvbPk.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-Cup3zFPj.js → vue-ui-donut-evolution-BO2-ARBX.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-j8JKVqXN.cjs → vue-ui-donut-evolution-DP14ctdf.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CANVwmSA.cjs → vue-ui-dumbbell-CsMqgiGr.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-DJE8-e3A.js → vue-ui-dumbbell-zv7yiPPM.js} +10 -10
  62. package/dist/{vue-ui-flow-Crq3AVFe.js → vue-ui-flow-BqtIWBkz.js} +9 -9
  63. package/dist/{vue-ui-flow-Dvz0sa0O.cjs → vue-ui-flow-E5MkZ3Yb.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-M8uzLylj.js → vue-ui-funnel-CmVLAttG.js} +8 -8
  65. package/dist/{vue-ui-funnel-BVujl3GY.cjs → vue-ui-funnel-QU0_JscL.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-BfQkC9br.cjs → vue-ui-galaxy-BPDH-9KW.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-B77VCJR3.js → vue-ui-galaxy-sy8zvgcg.js} +11 -11
  68. package/dist/{vue-ui-gauge-8xiT5BUm.js → vue-ui-gauge--hARSvgz.js} +7 -7
  69. package/dist/{vue-ui-gauge-DwMexCwq.cjs → vue-ui-gauge-D_yokJMS.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-C9pEyZr1.cjs → vue-ui-gizmo-AUJq3EQL.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-CI96cnOM.js → vue-ui-gizmo-CvTeq5j0.js} +3 -3
  72. package/dist/{vue-ui-heatmap-lXe9Bxsb.cjs → vue-ui-heatmap-D-xNLuqW.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-DE6AgqvQ.js → vue-ui-heatmap-lI8oO-nh.js} +10 -10
  74. package/dist/{vue-ui-history-plot-B2p5Da7E.cjs → vue-ui-history-plot-BC0Rvo-r.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-CO2ZBnhb.js → vue-ui-history-plot-D3CwJpll.js} +11 -11
  76. package/dist/{vue-ui-kpi-D_URPS6w.cjs → vue-ui-kpi-B4FQKZ_r.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-Cc7Yytho.js → vue-ui-kpi-C0agq-Os.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-DHXKDtYR.cjs → vue-ui-mini-loader-BJ70GAEv.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DYbYoCQH.js → vue-ui-mini-loader-CkjJ5pRO.js} +2 -2
  80. package/dist/{vue-ui-molecule-CYs_u6Wz.cjs → vue-ui-molecule-CsQfkIEE.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-CYlh7983.js → vue-ui-molecule-V9UFJHeV.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-BjcUi2lA.cjs → vue-ui-mood-radar-CdU2vusL.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-B3nvz_EX.js → vue-ui-mood-radar-Cj_wOEbY.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-BDPVh9VT.js → vue-ui-nested-donuts-DFVQwbHg.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-sf-rnAYN.cjs → vue-ui-nested-donuts-DevV-xZr.cjs} +1 -1
  86. package/dist/{vue-ui-onion-BddrBSxm.js → vue-ui-onion-BJ-PjA7d.js} +11 -11
  87. package/dist/{vue-ui-onion-DYhBNiT8.cjs → vue-ui-onion-DGWktnME.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-JyWFCBD3.js → vue-ui-parallel-coordinate-plot-33naX1Ss.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-m-ZgXf3c.cjs → vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-C0XCJA1s.cjs → vue-ui-quadrant-DqZqBb2L.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-woZI-oSE.js → vue-ui-quadrant-xJaZzXgo.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-DT37a1KG.js → vue-ui-quick-chart-BwN9eLye.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-GAy1Kq_9.cjs → vue-ui-quick-chart-BzpXJYR_.cjs} +1 -1
  94. package/dist/{vue-ui-radar-BWLte3c3.js → vue-ui-radar-B4EXwJDY.js} +12 -12
  95. package/dist/{vue-ui-radar-C31U_Z53.cjs → vue-ui-radar-CQ66YUG5.cjs} +1 -1
  96. package/dist/{vue-ui-rating-B4LMCbX7.cjs → vue-ui-rating-D334I4ju.cjs} +1 -1
  97. package/dist/{vue-ui-rating-0HTRr8sI.js → vue-ui-rating-DNkygw1i.js} +2 -2
  98. package/dist/vue-ui-relation-circle-BKeSh28h.js +492 -0
  99. package/dist/vue-ui-relation-circle-CP2Z6IWV.cjs +1 -0
  100. package/dist/{vue-ui-rings-CptiG61Q.cjs → vue-ui-rings-2oDSTctd.cjs} +1 -1
  101. package/dist/{vue-ui-rings-Cd_dJ3co.js → vue-ui-rings-D6M3UNSE.js} +11 -11
  102. package/dist/{vue-ui-scatter-BK5xv5mP.cjs → vue-ui-scatter-C9ZoWV1q.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-Do7eIAvo.js → vue-ui-scatter-JUPbbsO7.js} +12 -12
  104. package/dist/{vue-ui-screenshot-DJjluZur.js → vue-ui-screenshot-DmLDHfF9.js} +1 -1
  105. package/dist/{vue-ui-screenshot-hW8cPfaI.cjs → vue-ui-screenshot-JMBX_AWn.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-Dmee5Xfg.js → vue-ui-skeleton-D7rg5vFC.js} +3 -3
  107. package/dist/{vue-ui-skeleton-Ckb3hRcQ.cjs → vue-ui-skeleton-E9_X0-sa.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-B3MEz94h.js → vue-ui-smiley-BAlHZm8H.js} +2 -2
  109. package/dist/{vue-ui-smiley-CfQTx9Kb.cjs → vue-ui-smiley-aRTznf8z.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-B-sO8emp.cjs → vue-ui-spark-trend-DZR6Fqu5.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-BnziIPLw.js → vue-ui-spark-trend-J9swikF_.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-D3W-HMC0.js → vue-ui-sparkbar-B0tCpwZ9.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-DWHagP1f.cjs → vue-ui-sparkbar-Bjmi8pMf.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-Bp20yElv.js → vue-ui-sparkgauge-DVX2pIC3.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-Cx_dMzxw.cjs → vue-ui-sparkgauge-Dhzbkn67.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-BdovbgiO.js → vue-ui-sparkhistogram-Wd6q0mqj.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram--Ulh-M8t.cjs → vue-ui-sparkhistogram-gIaXDrFh.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DJGZzF_8.cjs → vue-ui-sparkline-B5ySeM9y.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-B2cKF2Oq.js → vue-ui-sparkline-DYT-gts9.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-ywMpLSpx.js → vue-ui-sparkstackbar-BMGA05VR.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-BmFppjoc.cjs → vue-ui-sparkstackbar-ilvB3RBv.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-NjNO1R4N.cjs → vue-ui-stackbar-BZKwsAjO.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-s7gETyOu.js → vue-ui-stackbar-BZbOagnf.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-CKI7Tk26.js → vue-ui-strip-plot-B-r4luYX.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-BieHYfvX.cjs → vue-ui-strip-plot-DPo7osh_.cjs} +1 -1
  126. package/dist/{vue-ui-table-mo4xqDVF.cjs → vue-ui-table-C6z56ODT.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-BI_IFUMP.cjs → vue-ui-table-heatmap-B05GifSw.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-BMmVk6UI.js → vue-ui-table-heatmap-CM-c7n0F.js} +4 -4
  129. package/dist/{vue-ui-table-sparkline-DOx85BsZ.js → vue-ui-table-sparkline-DHaEHFG_.js} +5 -5
  130. package/dist/{vue-ui-table-sparkline-nouXTHiN.cjs → vue-ui-table-sparkline-Dx-ePVqW.cjs} +1 -1
  131. package/dist/{vue-ui-table-CGNRHPdF.js → vue-ui-table-wlXHwJVW.js} +1 -1
  132. package/dist/{vue-ui-thermometer-Cbqv6RYW.js → vue-ui-thermometer-BU_ckSdu.js} +7 -7
  133. package/dist/{vue-ui-thermometer-CpbU3pkq.cjs → vue-ui-thermometer-HCpOZBHv.cjs} +1 -1
  134. package/dist/{vue-ui-timer-BrAZQClf.cjs → vue-ui-timer-CUChwyzF.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BgueE1dl.js → vue-ui-timer-DiRZ849L.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-HNlJDrP8.js → vue-ui-tiremarks-BHMNb_tq.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-DAqAEaPM.cjs → vue-ui-tiremarks-yoQtfbj7.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-Cqej3ef5.cjs → vue-ui-treemap-BInwLSes.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-BNNW0aIB.js → vue-ui-treemap-BpD6OdL3.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-DjoaIjRt.js → vue-ui-vertical-bar-CBNWMmCg.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-BCx0SE0Z.cjs → vue-ui-vertical-bar-hS4gzdKs.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-CrCgrl2o.js → vue-ui-waffle-BE8iTrGF.js} +11 -11
  143. package/dist/{vue-ui-waffle-CspQJ4_E.cjs → vue-ui-waffle-Cmq6zhD8.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DvpCjvs8.cjs → vue-ui-wheel-BT0mLxln.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-Wq6OVQ5Z.js → vue-ui-wheel-BXSIBRLM.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-AXCM7hi3.js → vue-ui-word-cloud-3wvSYRbp.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-CaW8SZ9y.cjs → vue-ui-word-cloud-BXHlm41O.cjs} +1 -1
  148. package/dist/vue-ui-xy-CfduqTWA.cjs +3 -0
  149. package/dist/{vue-ui-xy-BhdOWsqW.js → vue-ui-xy-D8XvOgW6.js} +16 -16
  150. package/dist/{vue-ui-xy-canvas-o7kCbz5j.cjs → vue-ui-xy-canvas-BTR-cL02.cjs} +1 -1
  151. package/dist/{vue-ui-xy-canvas-sAVL0y81.js → vue-ui-xy-canvas-Cx7vPyfT.js} +11 -11
  152. package/package.json +1 -1
  153. package/dist/index-DCccP2Kt.cjs +0 -9
  154. package/dist/vue-ui-dashboard-CxGCT46n.cjs +0 -1
  155. package/dist/vue-ui-dashboard-yX9EkLTf.js +0 -232
  156. package/dist/vue-ui-relation-circle-Ds3zzFbl.js +0 -366
  157. package/dist/vue-ui-relation-circle-K0EZ_Nkb.cjs +0 -1
  158. package/dist/vue-ui-xy-Dkl5bPI-.cjs +0 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DCccP2Kt.cjs"),H=require("./Title-BeCsXJhg.cjs"),z=require("./usePrinter-C-C264ik.cjs"),O=require("./useResponsive-BJ7DTGpm.cjs"),D=require("./vue-ui-skeleton-Ckb3hRcQ.cjs"),F=require("./useNestedProp-DzZoHbI7.cjs"),Y=require("./PackageVersion-C7okNmPF.cjs"),W=require("./PenAndPaper-BUjMRWG0.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Q=["xmlns","viewBox"],Z=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ee=["cx","cy","r","stroke","stroke-width"],te=["x","y","font-size","fill","font-weight"],le={key:5,class:"vue-data-ui-watermark"},oe={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(E,{expose:M}){const i=E,{vue_ui_wheel:T}=r.useConfig(),p=e.computed(()=>!!i.dataset&&Object.keys(i.dataset).length),y=e.ref(r.createUid()),q=e.ref(null),k=e.ref(0),v=e.ref(null),w=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(0),t=e.computed({get:()=>P(),set:l=>l});function P(){const l=F.useNestedProp({userConfig:i.config,defaultConfig:T});return l.theme?{...F.useNestedProp({userConfig:r.themes.vue_ui_wheel[l.theme]||i.config,defaultConfig:l})}:l}e.watch(()=>i.config,l=>{t.value=P(),I(),B.value+=1},{deep:!0});const{isPrinting:_,isImaging:x,generatePdf:N,generateImage:S}=z.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),V=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),s=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function A(l,c=1){return{x:s.value.centerX+s.value.radius*Math.cos(29.85+l*Math.PI/180)*c,y:s.value.centerY+s.value.radius*Math.sin(29.85+l*Math.PI/180)*c}}const a=e.ref(t.value.style.chart.animation.use?0:i.dataset.percentage||0);e.watch(()=>i.dataset,l=>{t.value.style.chart.animation.use?$(l.percentage):a.value=l.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{I()});function I(){if(r.objectIsEmpty(i.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),$(i.dataset.percentage||0),t.value.responsive){const l=O.throttle(()=>{const{width:c,height:o}=O.useResponsive({chart:v.value,title:t.value.style.chart.title.text?w.value:null,source:C.value,noTitle:b.value});n.value.width=c,n.value.height=o,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(c,o)});d.value=new ResizeObserver(l),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function $(l){let c=t.value.style.chart.animation.speed;const o=Math.abs(l-a.value)/(c*120);function u(){a.value<l?a.value=Math.min(a.value+o,l):a.value>l&&(a.value=Math.max(a.value-o,l)),a.value!==l&&requestAnimationFrame(u)}u()}const R=e.computed(()=>{const l=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:U,y:G}=A(n.value.size/100*o),{x:X,y:j}=A(n.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:U,y1:G,x2:X,y2:j,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return l}),h=e.ref(!1);function L(l){h.value=l,k.value+=1}const f=e.ref(!1);function g(){f.value=!f.value}return M({generatePdf:N,generateImage:S,toggleAnnotator:g}),(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id: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(W.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:g},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:b,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:w,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(H._sfc_main,{key:`title_${B.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(z.UserOptions,{ref_key:"details",ref:q,key:`user_options_${k.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(_),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:L,onGeneratePdf:e.unref(N),onGenerateImage:e.unref(S),onToggleAnnotator:g},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:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Y._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&u<=a.value})},null,10,Z))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:s.value.centerX,cy:s.value.centerY,r:s.value.radius*.8<=0?1e-4:s.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ee)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.value.centerX,y:s.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(r.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(r.checkNaN)(a.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,te)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,Q)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(_)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:C,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,K))}},ne=J._export_sfc(oe,[["__scopeId","data-v-bc4a7284"]]);exports.default=ne;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-B5Ugkauv.cjs"),H=require("./Title-D9gPXVTT.cjs"),z=require("./usePrinter-DtpFEgOX.cjs"),O=require("./useResponsive-BJ7DTGpm.cjs"),D=require("./vue-ui-skeleton-E9_X0-sa.cjs"),F=require("./useNestedProp-bZitLnbb.cjs"),Y=require("./PackageVersion-CMtZxTqq.cjs"),W=require("./PenAndPaper-DWYhyZye.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Q=["xmlns","viewBox"],Z=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ee=["cx","cy","r","stroke","stroke-width"],te=["x","y","font-size","fill","font-weight"],le={key:5,class:"vue-data-ui-watermark"},oe={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(E,{expose:M}){const i=E,{vue_ui_wheel:T}=r.useConfig(),p=e.computed(()=>!!i.dataset&&Object.keys(i.dataset).length),y=e.ref(r.createUid()),q=e.ref(null),k=e.ref(0),v=e.ref(null),w=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(0),t=e.computed({get:()=>P(),set:l=>l});function P(){const l=F.useNestedProp({userConfig:i.config,defaultConfig:T});return l.theme?{...F.useNestedProp({userConfig:r.themes.vue_ui_wheel[l.theme]||i.config,defaultConfig:l})}:l}e.watch(()=>i.config,l=>{t.value=P(),I(),B.value+=1},{deep:!0});const{isPrinting:_,isImaging:x,generatePdf:N,generateImage:S}=z.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),V=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),s=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function A(l,c=1){return{x:s.value.centerX+s.value.radius*Math.cos(29.85+l*Math.PI/180)*c,y:s.value.centerY+s.value.radius*Math.sin(29.85+l*Math.PI/180)*c}}const a=e.ref(t.value.style.chart.animation.use?0:i.dataset.percentage||0);e.watch(()=>i.dataset,l=>{t.value.style.chart.animation.use?$(l.percentage):a.value=l.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{I()});function I(){if(r.objectIsEmpty(i.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),$(i.dataset.percentage||0),t.value.responsive){const l=O.throttle(()=>{const{width:c,height:o}=O.useResponsive({chart:v.value,title:t.value.style.chart.title.text?w.value:null,source:C.value,noTitle:b.value});n.value.width=c,n.value.height=o,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(c,o)});d.value=new ResizeObserver(l),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function $(l){let c=t.value.style.chart.animation.speed;const o=Math.abs(l-a.value)/(c*120);function u(){a.value<l?a.value=Math.min(a.value+o,l):a.value>l&&(a.value=Math.max(a.value-o,l)),a.value!==l&&requestAnimationFrame(u)}u()}const R=e.computed(()=>{const l=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:U,y:G}=A(n.value.size/100*o),{x:X,y:j}=A(n.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:U,y1:G,x2:X,y2:j,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return l}),h=e.ref(!1);function L(l){h.value=l,k.value+=1}const f=e.ref(!1);function g(){f.value=!f.value}return M({generatePdf:N,generateImage:S,toggleAnnotator:g}),(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id: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(W.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:g},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:b,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:w,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(H._sfc_main,{key:`title_${B.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(z.UserOptions,{ref_key:"details",ref:q,key:`user_options_${k.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(_),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:L,onGeneratePdf:e.unref(N),onGenerateImage:e.unref(S),onToggleAnnotator:g},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:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Y._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&u<=a.value})},null,10,Z))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:s.value.centerX,cy:s.value.centerY,r:s.value.radius*.8<=0?1e-4:s.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ee)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.value.centerX,y:s.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(r.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(r.checkNaN)(a.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,te)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,Q)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(_)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:C,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,K))}},ne=J._export_sfc(oe,[["__scopeId","data-v-bc4a7284"]]);exports.default=ne;
@@ -1,12 +1,12 @@
1
1
  import { computed as p, ref as n, watch as E, onMounted as oe, onBeforeUnmount as ne, openBlock as s, createElementBlock as c, normalizeStyle as R, createBlock as w, createCommentVNode as v, unref as r, createSlots as se, withCtx as b, renderSlot as f, normalizeProps as A, guardReactiveProps as I, normalizeClass as j, createVNode as re, Fragment as ue, renderList as ie, toDisplayString as ce } from "vue";
2
- import { u as ve, c as he, t as de, o as fe, e as ye, w as D, X as pe, i as ge, v as Y, f as me } from "./index-hQvps1ng.js";
3
- import { _ as ke } from "./Title-DU9SuVY-.js";
4
- import { u as we, U as be } from "./usePrinter-c5Pf5Hrk.js";
2
+ import { u as ve, c as he, t as de, o as fe, e as ye, w as D, X as pe, i as ge, v as Y, f as me } from "./index-B6Q1Fyk0.js";
3
+ import { _ as ke } from "./Title-BB0O0yol.js";
4
+ import { u as we, U as be } from "./usePrinter-D8dIU7aG.js";
5
5
  import { t as Ce, u as _e } from "./useResponsive-CoxXLe23.js";
6
- import $e from "./vue-ui-skeleton-Dmee5Xfg.js";
7
- import { u as H } from "./useNestedProp-CxQ2hIfU.js";
8
- import { _ as xe } from "./PackageVersion-CiIsJuZg.js";
9
- import { P as Ae } from "./PenAndPaper-BBXIRAdA.js";
6
+ import $e from "./vue-ui-skeleton-D7rg5vFC.js";
7
+ import { u as H } from "./useNestedProp-DQpuJSz3.js";
8
+ import { _ as xe } from "./PackageVersion-S7OD_s5u.js";
9
+ import { P as Ae } from "./PenAndPaper-BxJZd7k9.js";
10
10
  import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const Pe = ["id"], Fe = ["xmlns", "viewBox"], Oe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ze = ["cx", "cy", "r", "stroke", "stroke-width"], Se = ["x", "y", "font-size", "fill", "font-weight"], Ne = {
12
12
  key: 5,
@@ -1,16 +1,16 @@
1
1
  import { useCssVars as Be, computed as p, openBlock as r, createElementBlock as h, createVNode as oe, renderSlot as d, createElementVNode as x, normalizeStyle as ae, pushScopeId as De, popScopeId as Ve, ref as n, watch as te, onMounted as Ee, onBeforeUnmount as Ue, createBlock as z, createCommentVNode as C, unref as $, createSlots as Ge, withCtx as v, normalizeProps as A, guardReactiveProps as I, normalizeClass as ge, Fragment as Le, renderList as Xe, toDisplayString as ye, createTextVNode as je, nextTick as be } from "vue";
2
- import { u as Ye, a1 as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-hQvps1ng.js";
3
- import { _ as nt } from "./Title-DU9SuVY-.js";
4
- import { u as st, U as rt } from "./usePrinter-c5Pf5Hrk.js";
2
+ import { u as Ye, a1 as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-B6Q1Fyk0.js";
3
+ import { _ as nt } from "./Title-BB0O0yol.js";
4
+ import { u as st, U as rt } from "./usePrinter-D8dIU7aG.js";
5
5
  import { d as ut, t as it, u as ct } from "./useResponsive-CoxXLe23.js";
6
- import dt from "./vue-ui-accordion-CbATWtZa.js";
7
- import { D as vt } from "./DataTable-D7EHk98Z.js";
8
- import ht from "./BaseIcon-PEMG4fz_.js";
6
+ import dt from "./vue-ui-accordion-BOHicozd.js";
7
+ import { D as vt } from "./DataTable-B5DiCrf_.js";
8
+ import ht from "./BaseIcon-DCE3wRiG.js";
9
9
  import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as we } from "./useNestedProp-CxQ2hIfU.js";
11
- import { _ as mt } from "./PackageVersion-CiIsJuZg.js";
12
- import { _ as ft } from "./Tooltip-Chiu53IG.js";
13
- import { P as pt } from "./PenAndPaper-BBXIRAdA.js";
10
+ import { u as we } from "./useNestedProp-DQpuJSz3.js";
11
+ import { _ as mt } from "./PackageVersion-S7OD_s5u.js";
12
+ import { _ as ft } from "./Tooltip-GvLaModr.js";
13
+ import { P as pt } from "./PenAndPaper-BxJZd7k9.js";
14
14
  const gt = (c) => (De("data-v-3fd7d274"), c = c(), Ve(), c), yt = { "data-html2canvas-ignore": "" }, bt = {
15
15
  key: 0,
16
16
  class: "reset-wrapper"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DCccP2Kt.cjs"),ke=require("./Title-BeCsXJhg.cjs"),ae=require("./usePrinter-C-C264ik.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-CTxFHMF7.cjs"),xe=require("./DataTable-Dk61oGV_.cjs"),Se=require("./BaseIcon-C9eU1XEJ.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-DzZoHbI7.cjs"),$e=require("./PackageVersion-C7okNmPF.cjs"),Te=require("./Tooltip-DCwHEKeM.cjs"),Ne=require("./PenAndPaper-BUjMRWG0.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=e.ref(null),C=e.ref(0),u=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ie(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ce(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=ie(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(q.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;q.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),uid:S.value,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,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode($e._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:d.value.showTooltip&&I.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:O},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,hideDetails:"",config:{open:d.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(xe.DataTable,{key:`table_${L.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,De)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B5Ugkauv.cjs"),ke=require("./Title-D9gPXVTT.cjs"),ae=require("./usePrinter-DtpFEgOX.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-u4xDSvRn.cjs"),xe=require("./DataTable-Cr3Xkxe4.cjs"),Se=require("./BaseIcon-D-JUZiGA.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-bZitLnbb.cjs"),$e=require("./PackageVersion-CMtZxTqq.cjs"),Te=require("./Tooltip-ypQtmi99.cjs"),Ne=require("./PenAndPaper-DWYhyZye.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=e.ref(null),C=e.ref(0),u=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ie(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ce(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=ie(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(q.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;q.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),uid:S.value,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,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode($e._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:d.value.showTooltip&&I.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:O},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,hideDetails:"",config:{open:d.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(xe.DataTable,{key:`table_${L.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,De)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-B5Ugkauv.cjs"),B=require("./DataTable-Cr3Xkxe4.cjs"),E=require("./Title-D9gPXVTT.cjs"),v=require("./Tooltip-ypQtmi99.cjs"),z=require("./usePrinter-DtpFEgOX.cjs"),V=require("./Shape-CvL90fNe.cjs"),P=require("./BaseIcon-D-JUZiGA.cjs"),M=require("./vue-ui-table-sparkline-Dx-ePVqW.cjs"),T=require("./vue-ui-skeleton-E9_X0-sa.cjs"),D=require("./Slicer-B2aHb4bj.cjs"),R=require("./vue-ui-accordion-u4xDSvRn.cjs"),G=require("./useNestedProp-bZitLnbb.cjs"),H=require("./PackageVersion-CMtZxTqq.cjs"),W=require("./PenAndPaper-DWYhyZye.cjs"),e=require("vue"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=d.createUid(),X={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:V._sfc_main,Title:E._sfc_main,Tooltip:v._sfc_main,UserOptions:z.UserOptions,BaseIcon:P.default,TableSparkline:M.default,Skeleton:T.default,Slicer:D.Slicer,Accordion:R.default,PackageVersion:H._sfc_main,PenAndPaper:W.PenAndPaper},data(){this.dataset.forEach((u,l)=>{[null,void 0].includes(u.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:l})});const r=this.config.downsample&&this.config.downsample.threshold?this.config.downsample.threshold:500,i=Math.max(...this.dataset.map(u=>this.largestTriangleThreeBucketsArray({data:u.series,threshold:r}).length)),n={start:0,end:i};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isAnnotator:!1,isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,tableStep:0,titleStep:0,slicer:n,__to__:null,maxX:i,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(r,i){this.maxX=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(r,i){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{hasOptionsNoTitle(){return this.FINAL_CONFIG.chart.userOptions.show&&(!this.FINAL_CONFIG.chart.title.show||!this.FINAL_CONFIG.chart.title.text)},minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const r=this.datasetWithIds.filter(l=>!this.segregatedSeries.includes(l.id)),i=Math.max(...r.map(l=>l.series.length)),n=[];for(let l=0;l<i;l+=1)n.push(r.map(t=>t.series[l]||0).reduce((t,g)=>(t||0)+(g||0),0));const u=Math.min(...n);return n.map(l=>l+(u<0?Math.abs(u):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const r=this.lineSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height,autoScaleYLabels:l.autoScaleYLabels})),i=this.barSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height})),n=this.plotSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height})),u=[...r,...i,...n].flatMap(l=>l).length;return[...r,...i,...n].flatMap((l,t)=>({id:l.id,scaleLabel:l.scaleLabel,name:l.name,color:l.color,scale:l.scale,yOffset:l.yOffset,individualHeight:l.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/u*(t+1),yLabels:l.scaleYLabels||l.scale.ticks.map(g=>({y:g>=0?l.zero-l.individualHeight*(g/l.max):l.zero+l.individualHeight*Math.abs(g)/l.max,value:g}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const r=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(r,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(r){return r}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(r=>r.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(i=>({...i,span:i.from===i.to?1:i.to<i.from?0:i.to-i.from+1}));const r=this.FINAL_CONFIG.chart.highlightArea;return[{...r,span:r.from===r.to?1:r.to<r.from?0:r.to-r.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((r,i)=>({...r,series:this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold}),id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((r,i)=>{const n=this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold});return{...r,series:n.map(u=>this.isSafeValue(u)?u:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`}}):this.dataset},relativeDataset(){return this.safeDataset.map((r,i)=>({...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const i=r.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:r.id,name:r.name,color:r.color,values:this.fillArray(this.maxSeries,i)}})},tableSparklineConfig(){return{responsiveBreakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint,roundingValues:this.FINAL_CONFIG.table.rounding,showAverage:!1,showMedian:!1,showTotal:!1,fontFamily:this.FINAL_CONFIG.chart.fontFamily,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((r,i)=>({absoluteIndex:i,...r,series:r.series.map(n=>n+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,i)=>{this.checkAutoScaleError(r);const n=Math.min(...r.absoluteValues.filter(h=>![null,void 0].includes(h))),u=Math.max(...r.absoluteValues.filter(h=>![null,void 0].includes(h))),t={ratios:r.absoluteValues.filter(h=>![null,void 0].includes(h)).map(h=>(h-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(h=>![void 0,null].includes(h)))>0?0:Math.min(...r.absoluteValues.filter(h=>![null,void 0].includes(h)))},k=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*F:g.max,k),N=this.calculateNiceScaleWithExactExtremes(t.valueMin,t.valueMax===t.valueMin?t.valueMax*F:t.valueMax,k),L=m.min>=0?0:Math.abs(m.min),C=0,A=m.max+L,y=N.max+Math.abs(C),I=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,S=this.drawingArea.bottom-I-b*L/A,a=this.drawingArea.bottom-I-b*C/y,o=this.absoluteDataset.filter(h=>h.type==="bar").filter(h=>!this.segregatedSeries.includes(h.id)).length,s=r.series.map((h,f)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[f]+L)/A:this.ratioToMax(h),p=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*f:this.drawingArea.left+this.slot.bar*i+this.slot.bar*f*o-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(I),individualHeight:this.checkNaN(b),x:this.checkNaN(p),y:this.drawingArea.bottom-I-b*O,value:r.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),c=r.absoluteValues.map(h=>N.min>=0?(h-Math.abs(N.min))/(N.max-Math.abs(N.min)):(h+Math.abs(N.min))/(N.max+Math.abs(N.min))),w=r.series.map((h,f)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*f:this.drawingArea.left-this.slot.bar/2+this.slot.bar*i+this.slot.bar*f*this.absoluteDataset.filter(p=>p.type==="bar").filter(p=>!this.segregatedSeries.includes(p.id)).length;return{yOffset:this.checkNaN(I),individualHeight:this.checkNaN(b),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(I)-(this.checkNaN(b)*c[f]||0)),value:r.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),x=m.ticks.map(h=>({y:h>=0?S-b*(h/A):S+b*Math.abs(h)/A,value:h,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),_=N.ticks.map(h=>{const f=(h-N.min)/(N.max-N.min);return{y:h>=0?a-b*f:a+b*f,value:h,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:I,autoScaleYLabels:_,individualHeight:b,scaleYLabels:r.autoScaling?_:x,individualScale:r.autoScaling?N:m,individualMax:r.autoScaling?y:A,zeroPosition:r.autoScaling?a:S,plots:r.autoScaling?w:s}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(r=>!this.segregatedSeries.includes(r.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="line").map(r=>{this.checkAutoScaleError(r);const i=Math.min(...r.absoluteValues.filter(h=>![void 0,null].includes(h))),n=Math.max(...r.absoluteValues.filter(h=>![void 0,null].includes(h)))||1,l={ratios:r.absoluteValues.filter(h=>![null,void 0].includes(h)).map(h=>(h-i)/(n-i)),valueMin:i,valueMax:n},t={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||(Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues))},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*k:t.max,g),m=this.calculateNiceScaleWithExactExtremes(l.valueMin,l.valueMax===l.valueMin?l.valueMax*k:l.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+Math.abs(N),A=m.max+Math.abs(L),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,I=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-y-I*N/C,S=this.drawingArea.bottom-y-I*L/A,a=r.series.map((h,f)=>{const O=this.mutableConfig.useIndividualScale?(r.absoluteValues[f]+Math.abs(N))/C:this.ratioToMax(h);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-y-I*O),value:r.absoluteValues[f],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),o=r.absoluteValues.map(h=>m.min>=0?(h-Math.abs(m.min))/(m.max-Math.abs(m.min)):(h+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=r.series.map((h,f)=>[void 0,null].includes(r.absoluteValues[f])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:b,value:r.absoluteValues[f],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[f]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-y-(I*o[f]||0)),value:r.absoluteValues[f],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[f]||""}),c=this.createSmoothPath(a),w=this.createSmoothPath(s),x=F.ticks.map(h=>({y:h>=0?b-I*(h/C):b+I*Math.abs(h)/C,value:h,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),_=m.ticks.map(h=>{const f=(h-m.min)/(m.max-m.min);return{y:h>=0?S-I*f:S+I*f,value:h,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:y,autoScaleYLabels:_,individualHeight:I,scaleYLabels:r.autoScaling?_:x,individualScale:r.autoScaling?m:F,individualMax:r.autoScaling?A:C,zeroPosition:r.autoScaling?S:b,curve:r.autoScaling?w:c,plots:r.autoScaling?s:a,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?s:a,r.autoScaling?S:b):this.createArea(a):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const i=Math.min(...r.absoluteValues.filter(x=>![null,void 0].includes(x))),n=Math.max(...r.absoluteValues.filter(x=>![null,void 0].includes(x)))||1,l={ratios:r.absoluteValues.filter(x=>![null,void 0].includes(x)).map(x=>(x-i)/(n-i)),valueMin:i,valueMax:n},t={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues)},g=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*k:t.max,g),m=this.calculateNiceScaleWithExactExtremes(l.valueMin,l.valueMax===l.valueMin?l.valueMax*k:l.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+N,A=m.max+Math.abs(L),y=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,I=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-y-I*N/C,S=this.drawingArea.bottom-y-I*L/A,a=r.series.map((x,_)=>{const h=this.mutableConfig.useIndividualScale?(r.absoluteValues[_]+Math.abs(N))/C:this.ratioToMax(x);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-I*h),value:r.absoluteValues[_],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[_]||""}}),o=r.absoluteValues.map(x=>m.min>=0?(x-Math.abs(m.min))/(m.max-Math.abs(m.min)):(x+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=r.series.map((x,_)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*_),y:this.checkNaN(this.drawingArea.bottom-y-(I*o[_]||0)),value:r.absoluteValues[_],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[_]||""})),c=F.ticks.map(x=>({y:x>=0?b-I*(x/C):b+I*Math.abs(x)/C,value:x,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),w=m.ticks.map(x=>{const _=(x-m.min)/(m.max-m.min);return{y:x>=0?S-I*_:S+I*_,value:x,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:y,autoScaleYLabels:w,individualHeight:I,scaleYLabels:r.autoScaling?w:c,individualScale:r.autoScaling?m:F,individualMax:r.autoScaling?A:C,zeroPosition:r.autoScaling?S:b,plots:r.autoScaling?s:a}})},drawingArea(){const r=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(i=>!this.segregatedSeries.includes(i.id)).length*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+r,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+r)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const r=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return r>0?0:r},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),i=[];return this.timeLabels.forEach((n,u)=>{const l=[n];this.relativeDataset.forEach(t=>{l.push(this.canShowValue(t.absoluteValues[u])?Number(t.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),i.push(l)}),{head:r,body:i}},dataTable(){const r=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(t=>t.name));r&&(i=i.concat(' <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>'));let n=[];for(let t=0;t<this.maxSeries;t+=1){const g=this.relativeDataset.map(k=>k.absoluteValues[t]??0).reduce((k,F)=>k+F,0);n.push([this.timeLabels[t]??"-"].concat(this.relativeDataset.map(k=>this.applyDataLabel(k.type==="line"?this.FINAL_CONFIG.line.labels.formatter:k.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,k.absoluteValues[t]??0,this.dataLabel({p:k.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:k.absoluteValues[t]??0,s:k.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(r?(g??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const u={th:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},td:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},breakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint},l=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(t=>t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:i,body:n,config:u,colNames:l}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(r=>({shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((i,n)=>n===this.selectedSerieIndex),comments:r.comments||[],prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let r="",i=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,t)=>Math.abs(l)+Math.abs(t),0);const n=this.timeLabels[this.selectedSerieIndex],u=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(u)&&this.functionReturnsString(()=>u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let t="",g="";switch(this.icons[l.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${l.color}" /></svg>`;break;case"line":!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" />`:l.shape==="triangle"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:l.shape==="square"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:l.shape==="diamond"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:l.shape==="pentagon"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:l.shape==="hexagon"?g=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:l.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${l.color}" />${g}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){t=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}r+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${t}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(l.type==="line"?this.FINAL_CONFIG.line.labels.formatter:l.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,l.value,this.dataLabel({p:l.prefix,v:l.value,s:l.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:l}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${d.dataLabel({v:this.checkNaN(Math.abs(l.value)/i*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&l.comments.length&&l.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(r+=`<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(r=>({y:r>=0?this.zero-this.drawingArea.height*this.ratioToMax(r):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)),value:r,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.prepareChart(),document.addEventListener("mousemove",r=>{this.clientPosition={x:r.clientX,y:r.clientY}})},methods:{abbreviate:d.abbreviate,adaptColorToBackground:d.adaptColorToBackground,applyDataLabel:d.applyDataLabel,assignStackRatios:d.assignStackRatios,calcLinearProgression:d.calcLinearProgression,calculateNiceScaleWithExactExtremes:d.calculateNiceScaleWithExactExtremes,checkNaN:d.checkNaN,closestDecimal:d.closestDecimal,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,createCsvContent:d.createCsvContent,createSmoothPath:d.createSmoothPath,createTSpans:d.createTSpans,dataLabel:d.dataLabel,downloadCsv:d.downloadCsv,error:d.error,functionReturnsString:d.functionReturnsString,hasDeepProperty:d.hasDeepProperty,isFunction:d.isFunction,isSafeValue:d.isSafeValue,largestTriangleThreeBucketsArray:d.largestTriangleThreeBucketsArray,objectIsEmpty:d.objectIsEmpty,setOpacity:d.setOpacity,shiftHue:d.shiftHue,translateSize:d.translateSize,treeShake:d.treeShake,useMouse:v.useMouse,useNestedProp:G.useNestedProp,toggleAnnotator(){this.isAnnotator=!this.isAnnotator},getHighlightAreaPosition(r){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(r.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:n}},prepareConfig(){const r=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const i=this.useNestedProp({userConfig:this.config,defaultConfig:r});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?i.chart.highlightArea=this.config.chart.highlightArea:i.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?i.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:i.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?i.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:i.chart.grid.labels.yAxis.scaleMax=null,i.theme?{...G.useNestedProp({userConfig:this.themes.vue_ui_xy[i.theme]||this.config,defaultConfig:i}),customPalette:this.themePalettes[i.theme]||this.palette}:i},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((r,i)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((i,n)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
2
+ -----> The serie '${r.name}' contains the value '${i}' at index ${n}.
3
+ '${i}' was converted to null to allow the chart to display.`)})}),this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},this.FINAL_CONFIG.responsive){const i=this.$refs.chart.parentNode,{height:n,width:u}=i.getBoundingClientRect();let l=null,t=0;this.FINAL_CONFIG.chart.title.show&&(l=this.$refs.chartTitle,t=l.getBoundingClientRect().height);let g=null,k=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,k=g.getBoundingClientRect().height);let F=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(F=this.$refs.chartLegend,m=F.getBoundingClientRect().height);let N=0;this.$refs.source&&(N=this.$refs.source.getBoundingClientRect().height);let L=0;this.$refs.noTitle&&(L=this.$refs.noTitle.getBoundingClientRect().height),this.height=n-t-m-k-N-L,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(A=>{for(const y of A)this.$refs.chartTitle&&(t=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(k=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.$refs.source&&(N=this.$refs.source.getBoundingClientRect().height),this.height=y.contentBoxSize[0].blockSize-t-m-k-N-24,this.width=y.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()}).observe(i)}else this.height=this.FINAL_CONFIG.chart.height,this.width=this.FINAL_CONFIG.chart.width,this.viewBox=`0 0 ${this.width} ${this.height}`,this.fontSizes.dataLabels=this.FINAL_CONFIG.chart.grid.labels.fontSize,this.fontSizes.yAxis=this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,this.fontSizes.xAxis=this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,this.fontSizes.plotLabels=this.FINAL_CONFIG.chart.labels.fontSize,this.plotRadii.plot=this.FINAL_CONFIG.plot.radius,this.plotRadii.line=this.FINAL_CONFIG.line.radius},selectMinimapIndex(r){this.selectedMinimapIndex=r},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(r){r.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(r){if(!r[0])return[-10,-10,"",-10,-10];const i={x:r[0].x,y:this.zero},n={x:r.at(-1).x,y:this.zero},u=[];return r.forEach(l=>{u.push(`${l.x},${l.y} `)}),[i.x,i.y,...u,n.x,n.y].toString()},createIndividualArea(r,i){if(!r[0])return[-10,-10,"",-10,-10];const n={x:r[0]?r[0].x:Math.min(...r.filter(t=>!!t).map(t=>t.x)),y:i},u={x:r.at(-1)?r.at(-1).x:Math.min(...r.filter(t=>!!t).map(t=>t.x)),y:i},l=[];return r.filter(t=>!!t).forEach(t=>{l.push(`${t.x},${t.y} `)}),[n.x,n.y,...l,u.x,u.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(r,i){let n=Array(r).fill(0);for(let u=0;u<i.length&&u<r;u+=1)n[u]=i[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(r=>this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length))},this.slicerStep+=1},calcRectHeight(r){return r.value>=0?this.checkNaN(this.zero-r.y<=0?1e-5:this.zero-r.y):this.checkNaN(r.y-this.zero<=0?1e-5:r.y-this.zero)},calcIndividualHeight(r){return r.value>=0?this.checkNaN(r.zeroPosition-r.y<=0?1e-5:r.zeroPosition-r.y):this.checkNaN(r.y-r.zeroPosition<=0?1e-5:r.zeroPosition-r.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(r){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?r.x+this.drawingArea.width/this.maxSeries*.05:r.x+this.slot.bar/2},calcRectY(r){return r.value>=0?r.y:this.zero},calcIndividualRectY(r){return r.value>=0?r.y:[null,void 0,NaN,1/0,-1/0].includes(r.zeroPosition)?0:r.zeroPosition},canShowValue(r){return![null,void 0,NaN,1/0,-1/0].includes(r)},findClosestValue(r,i){let n=i[0],u=Math.abs(r-i[0]);for(let l=1;l<i.length;l+=1){const t=Math.abs(r-i[l]);t<u&&i[l]<r&&(n=i[l],u=t)}return n},ratioToMax(r){return r/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(r){this.$emit("selectX",{dataset:this.relativeDataset.map(i=>({name:i.name,value:[null,void 0,NaN].includes(i.absoluteValues[r])?null:i.absoluteValues[r],color:i.color,type:i.type})),index:r,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]})},getData(){return this.absoluteDataset.map(r=>({values:r.absoluteValues,color:r.color,name:r.name,type:r.type}))},segregate(r){if(this.segregatedSeries.includes(r.id))this.segregatedSeries=this.segregatedSeries.filter(i=>i!==r.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(r.id)}this.$emit("selectLegend",this.relativeDataset.map(i=>({name:i.name,values:i.absoluteValues,color:i.color,type:i.type}))),this.segregateStep+=1},toggleTooltipVisibility(r,i=null){this.isTooltip=r,r?this.selectedSerieIndex=i:this.selectedSerieIndex=null},toggleFullscreen(r){this.isFullscreen=r,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:r}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await r({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})}catch(r){console.error("Error generating PDF:",r)}finally{this.isPrinting=!1}},100)},generateCsv(){const r=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],i=["",...this.table.head.map(t=>t.label)],n=this.table.body,u=r.concat([i]).concat(n),l=this.createCsvContent(u);this.downloadCsv({csvContent:l,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},async generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.isImaging=!0,this.__to__=setTimeout(async()=>{try{const{default:r}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await r({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"})}catch(r){console.error("Error generating image:",r)}finally{this.isImaging=!1}},100)}}},U=["id"],Z={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%; background:transparent"},J=["viewBox"],K={key:0},Q={class:"vue-ui-xy-grid"},j=["stroke","x1","x2","y1","y2"],$=["stroke","x1","x2","y1","y2"],ee={key:1},te=["x1","x2","y1","y2","stroke"],le=["x1","x2","y1","y2","stroke"],re=["x1","x2","y1","y2","stroke"],ae={key:3},ie=["x1","x2","y1","y2","stroke"],se=["id"],oe=["stop-color"],ne=["stop-color"],ce=["stop-color"],he=["id"],de=["stop-color"],ue=["stop-color"],me=["stop-color"],ge=["id"],Ne=["stop-color"],fe=["stop-color"],Ie=["id"],ke=["stop-color"],xe=["stop-color"],be=["id"],Fe=["stop-color"],ye=["stop-color"],_e=["x","y","height","width","fill"],Ce=["x","y","width"],Ae=["x","y","height","width","fill"],Se=["x","y","height","width","rx","fill","stroke","stroke-width"],Le=["width","x","y"],we={key:0},Oe=["id"],pe=["fill"],ve=["x1","x2","y1","y2","stroke","marker-end"],Ge=["x","y","font-size","fill"],Be=["stroke","x1","x2","y1","y2"],Ee={key:2},ze=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ve=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],Pe={key:4},Me=["x1","x2","y1","y2","stroke","stroke-width"],Te=["fill","font-size","transform"],De=["x1","x2","y1","y2","stroke"],Re=["x","y","font-size","fill"],He=["x1","x2","y1","y2","stroke"],We=["x","y","font-size","fill"],qe=["width","x","y"],Ye={style:{width:"100%"}},Xe={key:0},Ue=["id"],Ze=["fill"],Je=["x1","x2","y1","y2","stroke","marker-end"],Ke=["x","y","font-size","fill"],Qe=["d","stroke","stroke-width","stroke-dasharray"],je={key:1},$e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],et={key:0},tt=["d","fill"],lt=["d","fill"],rt=["d","stroke","stroke-width","stroke-dasharray"],at={key:2},it=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],st=["width","x","y"],ot={style:{width:"100%"}},nt={key:3},ct=["id"],ht=["fill"],dt=["x1","x2","y1","y2","stroke","marker-end"],ut=["x","y","font-size","fill"],mt={key:5},gt=["x","y","font-size","fill"],Nt=["x","y","font-size","fill","font-weight"],ft={key:6},It=["x","y","font-size","fill"],kt=["x","y"],xt=["x","y"],bt={key:7},Ft=["x","y","font-size","fill"],yt=["x","y"],_t=["x","y"],Ct=["x","y","font-size","fill","innerHTML"],At=["x","y","font-size","fill","innerHTML"],St=["x","y","font-size","fill","innerHTML"],Lt=["x","y","font-size","fill","innerHTML"],wt=["x","y","width","height","fill","onMouseenter"],Ot=["font-size","fill","transform"],pt=["x","y","font-size","fill"],vt={key:9},Gt=["text-anchor","font-size","fill","transform"],Bt=["x","y","height","width","onMouseenter","onClick"],Et={key:10},zt=["x","y"],Vt=["cx","cy","r","fill"],Pt={key:5,class:"vue-data-ui-watermark"},Mt=["onClick"],Tt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Dt=["fill"],Rt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Ht=["fill"],Wt={key:9,ref:"chartLegend"},qt={key:10,ref:"source",dir:"auto"},Yt={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Xt=["innerHTML"];function Ut(r,i,n,u,l,t){const g=e.resolveComponent("PenAndPaper"),k=e.resolveComponent("Title"),F=e.resolveComponent("UserOptions"),m=e.resolveComponent("PackageVersion"),N=e.resolveComponent("Shape"),L=e.resolveComponent("Skeleton"),C=e.resolveComponent("Slicer"),A=e.resolveComponent("Tooltip"),y=e.resolveComponent("BaseIcon"),I=e.resolveComponent("TableSparkline"),b=e.resolveComponent("DataTable"),S=e.resolveComponent("Accordion");return e.openBlock(),e.createElementBlock("div",{id:`vue-ui-xy_${l.uniqueId}`,class:e.normalizeClass(`vue-ui-xy ${l.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${t.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color};width:100%;font-family:${t.FINAL_CONFIG.chart.fontFamily};${t.FINAL_CONFIG.responsive?"height: 100%":""}`)},[t.FINAL_CONFIG.chart.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(g,{key:0,parent:r.$refs.chart,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,active:l.isAnnotator,onClose:t.toggleAnnotator},null,8,["parent","backgroundColor","color","active","onClose"])):e.createCommentVNode("",!0),t.hasOptionsNoTitle?(e.openBlock(),e.createElementBlock("div",Z,null,512)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.title.show?(e.openBlock(),e.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[(e.openBlock(),e.createBlock(k,{key:`title_${l.titleStep}`,config:{title:{cy:"xy-div-title",...t.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...t.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.userOptions.show&&t.isDataset?(e.openBlock(),e.createBlock(F,{ref:"defails",key:`user_options_${l.step}`,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,isPrinting:l.isPrinting,isImaging:l.isImaging,uid:l.uniqueId,hasTooltip:t.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&t.FINAL_CONFIG.chart.tooltip.show,hasPdf:t.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:t.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:t.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:t.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:t.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&t.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:t.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:l.mutableConfig.isStacked,isFullscreen:l.isFullscreen,chartElement:r.$refs.chart,position:t.FINAL_CONFIG.chart.userOptions.position,isTooltip:l.mutableConfig.showTooltip,titles:{...t.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:t.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:l.isAnnotator,onToggleFullscreen:t.toggleFullscreen,onGeneratePdf:t.generatePdf,onGenerateCsv:t.generateCsv,onGenerateImage:t.generateImage,onToggleTable:t.toggleTable,onToggleLabels:t.toggleLabels,onToggleStack:t.toggleStack,onToggleTooltip:t.toggleTooltip,onToggleAnnotator:t.toggleAnnotator},e.createSlots({_:2},[r.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,r.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,r.$slots.optionStack?{name:"optionStack",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(r.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0,r.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(r.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip","onToggleAnnotator"])):e.createCommentVNode("",!0),t.isDataset?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([{"vue-data-ui-fullscreen--on":l.isFullscreen,"vue-data-ui-fulscreen--off":!l.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:l.viewBox,style:e.normalizeStyle(`background: transparent; color:${t.FINAL_CONFIG.chart.color}; font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[e.createVNode(m),t.maxSeries>0?(e.openBlock(),e.createElementBlock("g",K,[e.createElementVNode("g",Q,[t.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.drawingArea.bottom,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,j)):e.createCommentVNode("",!0),l.mutableConfig.useIndividualScale?t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[a.id===l.selectedScale&&a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.yLabels,o=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,le))),256)):a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.yLabels,o=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,re))),256)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.left+t.xPadding,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,$)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(),e.createElementBlock("g",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.yLabels,a=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(a.y),y2:t.checkNaN(a.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,te))),256))])):e.createCommentVNode("",!0)],64)),t.FINAL_CONFIG.chart.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries+(t.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,o)=>(e.openBlock(),e.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:t.drawingArea.width/t.maxSeries*o+t.drawingArea.left+t.xPadding,x2:t.drawingArea.width/t.maxSeries*o+t.drawingArea.left+t.xPadding,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-width":"0.5",stroke:t.FINAL_CONFIG.chart.grid.stroke},null,8,ie))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_rect_${o}`},[e.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${l.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,oe),e.createElementVNode("stop",{offset:"62%","stop-color":`${t.shiftHue(a.color,.02)}`},null,8,ne),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,ce)],8,se),e.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${l.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,de),e.createElementVNode("stop",{offset:"38%","stop-color":`${t.shiftHue(a.color,.02)}`},null,8,ue),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,me)],8,he)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_plot_${o}`},[e.createElementVNode("radialGradient",{id:`plotGradient_${o}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,fe)],8,ge)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_line_${o}`},[e.createElementVNode("radialGradient",{id:`lineGradient_${o}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xe)],8,Ie),e.createElementVNode("linearGradient",{id:`areaGradient_${o}_${l.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.setOpacity(t.shiftHue(a.color,.03),t.FINAL_CONFIG.line.area.opacity)}`},null,8,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)}`},null,8,ye)],8,be)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.highlightAreas,a=>(e.openBlock(),e.createElementBlock("g",null,[a.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.span,(o,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{style:e.normalizeStyle({transition:"none",opacity:a.from+s>=l.slicer.start&&a.from+s<=l.slicer.end-1?1:0}),x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(a.from+s-l.slicer.start),y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:t.setOpacity(a.color,a.opacity)},null,12,_e),a.caption.text&&s===0?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(a.from+s-l.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-t.drawingArea.width/t.maxSeries*a.span/2),y:t.drawingArea.top+a.caption.offsetY,style:e.normalizeStyle({overflow:"visible",opacity:a.to>=l.slicer.start&&a.from<l.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?t.drawingArea.width/t.maxSeries*a.span:a.caption.width},[e.createElementVNode("div",{style:e.normalizeStyle(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold?"bold":"normal"}`)},e.toDisplayString(a.caption.text),5)],12,Ce)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_highlighter_${o}`},[e.createElementVNode("rect",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*o,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:[l.selectedMinimapIndex,l.selectedSerieIndex,l.selectedRowIndex].includes(o)?t.setOpacity(t.FINAL_CONFIG.chart.highlighter.color,t.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,Ae)]))),128))]),t.barSet.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_bar_${o}`,class:e.normalizeClass(`serie_bar_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`bar_plot_${o}_${c}`},[t.canShowValue(s.value)?(e.openBlock(),e.createElementBlock("rect",{key:0,x:t.calcRectX(s),y:l.mutableConfig.useIndividualScale?t.calcIndividualRectY(s):t.calcRectY(s),height:l.mutableConfig.useIndividualScale?Math.abs(t.calcIndividualHeight(s)):Math.abs(t.calcRectHeight(s)),width:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap),rx:t.FINAL_CONFIG.bar.borderRadius,fill:t.FINAL_CONFIG.bar.useGradient?s.value>=0?`url(#rectGradient_pos_${o}_${l.uniqueId})`:`url(#rectGradient_neg_${o}_${l.uniqueId})`:a.color,stroke:t.FINAL_CONFIG.bar.border.useSerieColor?a.color:t.FINAL_CONFIG.bar.border.stroke,"stroke-width":t.FINAL_CONFIG.bar.border.strokeWidth},null,8,Se)):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)/2)+t.FINAL_CONFIG.chart.comments.width,x:t.calcRectX(s)-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:t.checkNaN(s.y)+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)],8,Le)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",we,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,pe)],8,Oe)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,ve)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ge)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)):e.createCommentVNode("",!0),!l.mutableConfig.useIndividualScale&&t.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(e.openBlock(),e.createElementBlock("line",{key:1,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(t.zero),y2:t.checkNaN(t.zero),"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(l.selectedSerieIndex)||![null,void 0].includes(l.selectedMinimapIndex))?(e.openBlock(),e.createElementBlock("g",Ee,[e.createElementVNode("line",{x1:t.drawingArea.left+t.drawingArea.width/t.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+t.drawingArea.width/t.maxSeries/2,x2:t.drawingArea.left+t.drawingArea.width/t.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+t.drawingArea.width/t.maxSeries/2,y1:t.drawingArea.top,y2:t.drawingArea.bottom,stroke:t.FINAL_CONFIG.chart.highlighter.color,"stroke-width":t.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":t.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,ze)])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.frame.show?(e.openBlock(),e.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:t.drawingArea.left+t.xPadding<0?0:t.drawingArea.left+t.xPadding,y:t.drawingArea.top,width:t.drawingArea.width-(t.FINAL_CONFIG.chart.grid.position==="middle"?0:t.drawingArea.width/t.maxSeries)<0?0:t.drawingArea.width-(t.FINAL_CONFIG.chart.grid.position==="middle"?0:t.drawingArea.width/t.maxSeries),height:t.drawingArea.height<0?0:t.drawingArea.height,fill:"transparent",stroke:t.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":t.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":t.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":t.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":t.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Ve)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.show?(e.openBlock(),e.createElementBlock("g",Pe,[l.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:a.x+t.xPadding,x2:a.x+t.xPadding,y1:l.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-a.yOffset-a.individualHeight):t.checkNaN(t.drawingArea.top),y2:l.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-a.yOffset):t.checkNaN(t.drawingArea.bottom),stroke:a.color,"stroke-width":t.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,Me)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[e.createElementVNode("text",{fill:a.color,"font-size":l.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset-a.individualHeight/2:t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`},e.toDisplayString(a.name)+" "+e.toDisplayString(a.scaleLabel?`- ${a.scaleLabel}`:""),9,Te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x-3+t.xPadding,x2:a.x+t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,De))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.x-5+t.xPadding,y:t.checkNaN(o.y)+l.fontSizes.dataLabels/3,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},e.toDisplayString(t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,t.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:s})),9,Re))),256))],4))),256))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.yLabels,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`yLabel_${o}`},[t.canShowValue(a)&&a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.left-5+t.xPadding,y1:t.checkNaN(a.y),y2:t.checkNaN(a.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,He)):e.createCommentVNode("",!0),a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.drawingArea.left-7+t.xPadding,y:t.checkNaN(a.y+l.fontSizes.dataLabels/3),"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.canShowValue(a.value)?t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,t.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,We)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_plot_${o}`,class:e.normalizeClass(`serie_plot_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_plot_${o}_${c}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(N,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${l.uniqueId})`:t.FINAL_CONFIG.plot.dot.useSerieColor?a.color:t.FINAL_CONFIG.plot.dot.fill,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(l.plotRadii.plot||6)*1.5:l.plotRadii.plot||6,stroke:t.FINAL_CONFIG.plot.dot.useSerieColor?t.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:t.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:s.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:s.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",Ye,[e.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)])],8,qe)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",Xe,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ze)],8,Ue)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Je)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ke)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Qe)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${c}`},[s&&c<a.plots.length-1&&a.plots[c+1]&&t.canShowValue(s.value)&&t.canShowValue(a.plots[c+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[c+1].x,y1:s.y,y2:a.plots[c+1].y,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,$e)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(e.openBlock(),e.createElementBlock("g",et,[a.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:t.drawingArea.left+t.slot.line*o+t.slot.line/2},${l.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${l.uniqueId})`:t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)},null,8,tt)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.area}Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${l.uniqueId})`:t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)},null,8,lt))])):e.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,rt)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${c}`},[s&&c<a.plots.length-1&&a.plots[c+1]&&t.canShowValue(s.value)&&t.canShowValue(a.plots[c+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[c+1].x,y1:s.y,y2:a.plots[c+1].y,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,it)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_line_${o}_${c}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(N,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${l.uniqueId})`:t.FINAL_CONFIG.line.dot.useSerieColor?a.color:t.FINAL_CONFIG.line.dot.fill,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(l.plotRadii.line||6)*1.5:l.plotRadii.line||6,stroke:t.FINAL_CONFIG.line.dot.useSerieColor?t.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:t.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:s.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:s.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",ot,[e.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)])],8,st)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,ht)],8,ct)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,dt)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,ut)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(t.FINAL_CONFIG.bar.labels.show||t.FINAL_CONFIG.bar.serieName.show)&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}`,class:e.normalizeClass(`xLabel_bar_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}_${c}`},[s&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c)&&t.FINAL_CONFIG.bar.labels.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?s.x+t.slot.line/2:t.calcRectX(s)+t.calcRectWidth()/2-t.barPeriodGap/2,y:t.checkNaN(s.y)+(s.value>=0?t.FINAL_CONFIG.bar.labels.offsetY:-t.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.bar.labels.formatter,s.value,t.dataLabel({p:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.bar.labels.rounding}),{datapoint:s,serie:a}):""),9,gt)):e.createCommentVNode("",!0),s&&t.FINAL_CONFIG.bar.serieName.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?s.x+t.slot.line/2:s.x+t.calcRectWidth()*1.1,y:s.y+(s.value>0?t.FINAL_CONFIG.bar.serieName.offsetY:-t.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:t.FINAL_CONFIG.bar.serieName.color,"font-weight":t.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},e.toDisplayString(t.FINAL_CONFIG.bar.serieName.useAbbreviation?t.abbreviate({source:a.name,length:t.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),9,Nt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.plot.labels.show&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${c}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x,y:s.y+t.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.plot.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.plot.labels.formatter,s.value,t.dataLabel({p:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.plot.labels.rounding}),{datapoint:s,serie:a}):""),9,It)):e.createCommentVNode("",!0),s&&c===0&&a.useTag&&a.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,kt)):e.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(l.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,xt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.line.labels.show&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${c}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===c||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===c?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x,y:s.y+(s.value>=0?t.FINAL_CONFIG.line.labels.offsetY:-t.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.line.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.line.labels.formatter,s.value,t.dataLabel({p:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.line.labels.rounding}),{datapoint:s,serie:a}):""),9,Ft)):e.createCommentVNode("",!0),s&&c===0&&a.useTag&&a.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,yt)):e.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(l.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,_t)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${c}`},[s&&c===0&&a.showSerieName&&a.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x-l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x-l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Ct)):e.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.x+l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x+l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,At)):e.createCommentVNode("",!0)]))),128))],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,c)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${c}`},[s&&c===0&&a.showSerieName&&a.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x-l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x-l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,St)):e.createCommentVNode("",!0),s&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.x+l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x+l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Lt)):e.createCommentVNode("",!0)]))),128))],6))),128)),l.mutableConfig.useIndividualScale&&!l.mutableConfig.isStacked?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:8},e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:l.selectedScale===a.id?t.setOpacity(a.color,20):"transparent",onMouseenter:o=>l.selectedScale=a.id,onMouseleave:i[0]||(i[0]=o=>l.selectedScale=null)},null,40,wt))),256)):e.createCommentVNode("",!0),e.createElementVNode("g",null,[t.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!l.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":l.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${l.fontSizes.yAxis+t.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Ot)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:l.width/2,y:t.drawingArea.bottom+l.fontSizes.yAxis+l.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":l.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,pt)):e.createCommentVNode("",!0)]),t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeLabels,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`time_label_${o}`},[a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===t.timeLabels.length-1)&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===o&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":l.fontSizes.xAxis,fill:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${t.drawingArea.left+t.drawingArea.width/t.maxSeries*o+t.drawingArea.width/t.maxSeries/2}, ${t.drawingArea.bottom+l.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},e.toDisplayString(a||""),9,Gt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${o}`},[e.createElementVNode("rect",{"data-cy-trap":"",x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*o,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:"transparent",onMouseenter:s=>t.toggleTooltipVisibility(!0,o),onMouseleave:i[1]||(i[1]=s=>t.toggleTooltipVisibility(!1)),onClick:s=>t.selectX(o)},null,40,Bt)]))),128))]),t.FINAL_CONFIG.chart.timeTag.show&&(![null,void 0].includes(l.selectedSerieIndex)||![null,void 0].includes(l.selectedMinimapIndex))?(e.openBlock(),e.createElementBlock("g",Et,[(e.openBlock(),e.createElementBlock("foreignObject",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))-100+t.drawingArea.width/t.maxSeries/2,y:t.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[e.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:e.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${t.FINAL_CONFIG.chart.timeTag.color};font-size:${t.FINAL_CONFIG.chart.timeTag.fontSize}px`)},e.toDisplayString(t.timeLabels[(l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0)]||(l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0)),5)],8,zt)),e.createElementVNode("circle",{cx:t.drawingArea.left+t.drawingArea.width/t.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+t.drawingArea.width/t.maxSeries/2,cy:t.drawingArea.bottom,r:t.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:t.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Vt)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"svg",{svg:t.svg},void 0,!0)],14,J)):e.createCommentVNode("",!0),r.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(r.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:l.isPrinting||l.isImaging})),void 0,!0)])):e.createCommentVNode("",!0),t.isDataset?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L,{key:6,config:{type:"line",style:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:t.FINAL_CONFIG.chart.grid.stroke},path:{color:t.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),t.FINAL_CONFIG.chart.zoom.show&&l.maxX>6&&t.isDataset?(e.openBlock(),e.createBlock(C,{ref:"chartSlicer",key:`slicer_${l.slicerStep}`,background:t.FINAL_CONFIG.chart.zoom.color,fontSize:t.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:t.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.start],labelRight:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.end-1],textColor:t.FINAL_CONFIG.chart.color,inputColor:t.FINAL_CONFIG.chart.zoom.color,selectColor:t.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:t.FINAL_CONFIG.chart.backgroundColor,minimap:t.minimap,smoothMinimap:t.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:t.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:t.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:t.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:t.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:l.selectedSerieIndex,minimapIndicatorColor:t.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,max:l.maxX,min:0,valueStart:l.slicer.start,valueEnd:l.slicer.end,start:l.slicer.start,"onUpdate:start":i[2]||(i[2]=a=>l.slicer.start=a),end:l.slicer.end,"onUpdate:end":i[3]||(i[3]=a=>l.slicer.end=a),onReset:t.refreshSlicer,onTrapMouse:t.selectMinimapIndex},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(r.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","max","valueStart","valueEnd","start","end","onReset","onTrapMouse"])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:8,ref:"chartLegend",class:"vue-ui-xy-legend",style:e.normalizeStyle(`font-size:${t.FINAL_CONFIG.chart.legend.fontSize}px`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.absoluteDataset,(a,o)=>(e.openBlock(),e.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:s=>t.segregate(a),class:e.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":l.segregatedSeries.includes(a.id)})},[l.icons[a.type]==="line"?(e.openBlock(),e.createElementBlock("svg",Tt,[e.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:a.color},null,8,Dt),e.createVNode(N,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(e.openBlock(),e.createElementBlock("svg",Rt,[l.icons[a.type]==="bar"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:a.color},null,8,Ht)):(e.openBlock(),e.createBlock(N,{key:1,plot:{x:6,y:6},radius:5,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle"},null,8,["color","shape"]))])),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.FINAL_CONFIG.chart.legend.color}`)},e.toDisplayString(a.name),5)],10,Mt))),128))],4)):(e.openBlock(),e.createElementBlock("div",Wt,[e.renderSlot(r.$slots,"legend",{legend:t.absoluteDataset},void 0,!0)],512)),r.$slots.source?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(r.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(A,{show:l.mutableConfig.showTooltip&&l.isTooltip,backgroundColor:t.FINAL_CONFIG.chart.tooltip.backgroundColor,color:t.FINAL_CONFIG.chart.tooltip.color,fontSize:t.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:t.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:t.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:t.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:t.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:t.FINAL_CONFIG.chart.tooltip.position,offsetY:t.FINAL_CONFIG.chart.tooltip.offsetY,parent:r.$refs.chart,content:t.tooltipContent,isCustom:t.FINAL_CONFIG.chart.tooltip.customFormat&&typeof t.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(r.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(r.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.isDataset?(e.openBlock(),e.createBlock(S,{key:11,hideDetails:"",config:{open:l.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color},head:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(`${l.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[e.createElementVNode("div",Yt,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=a=>l.showSparklineTable=a)},null,512),[[e.vModelCheckbox,l.showSparklineTable]]),e.createElementVNode("div",{onClick:i[5]||(i[5]=a=>l.showSparklineTable=!l.showSparklineTable),style:{cursor:"pointer"}},[e.createVNode(y,{name:"chartLine",size:20,stroke:t.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),l.showSparklineTable?(e.openBlock(),e.createBlock(I,{key:`sparkline_${l.segregateStep}`,dataset:t.tableSparklineDataset,config:t.tableSparklineConfig},null,8,["dataset","config"])):(e.openBlock(),e.createBlock(b,{key:`table_${l.tableStep}`,colNames:t.dataTable.colNames,head:t.dataTable.head,body:t.dataTable.body,config:t.dataTable.config,title:`${t.FINAL_CONFIG.chart.title.text}${t.FINAL_CONFIG.chart.title.subtitle.text?` : ${t.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:i[6]||(i[6]=a=>l.mutableConfig.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,Xt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:a,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,U)}const Zt=q._export_sfc(X,[["render",Ut],["__scopeId","data-v-7fd18270"]]);exports.default=Zt;
@@ -1,17 +1,17 @@
1
- import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, K as ee, F as te, i as ie, a2 as ae, a0 as re, a3 as le, v as se, a4 as ne, d as oe, B as ce, b as he, q as de, R as ue, a5 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a6 as be, Y as Fe, o as _e, s as ye, w as Ae, E as Ce, A as Le, u as Se } from "./index-hQvps1ng.js";
2
- import { D as ke } from "./DataTable-D7EHk98Z.js";
3
- import { _ as we } from "./Title-DU9SuVY-.js";
4
- import { _ as Oe, u as Ge } from "./Tooltip-Chiu53IG.js";
5
- import { U as ve } from "./usePrinter-c5Pf5Hrk.js";
6
- import { _ as pe } from "./Shape-C37gcsR4.js";
7
- import Me from "./BaseIcon-PEMG4fz_.js";
8
- import ze from "./vue-ui-table-sparkline-DOx85BsZ.js";
9
- import Te from "./vue-ui-skeleton-Dmee5Xfg.js";
10
- import { S as Pe } from "./Slicer-DHzuJMcK.js";
11
- import Ve from "./vue-ui-accordion-CbATWtZa.js";
12
- import { u as Z } from "./useNestedProp-CxQ2hIfU.js";
13
- import { _ as Re } from "./PackageVersion-CiIsJuZg.js";
14
- import { P as De } from "./PenAndPaper-BBXIRAdA.js";
1
+ import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, K as ee, F as te, i as ie, a2 as ae, a0 as re, a3 as le, v as se, a4 as ne, d as oe, B as ce, b as he, q as de, R as ue, a5 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a6 as be, Y as Fe, o as _e, s as ye, w as Ae, E as Ce, A as Le, u as Se } from "./index-B6Q1Fyk0.js";
2
+ import { D as ke } from "./DataTable-B5DiCrf_.js";
3
+ import { _ as we } from "./Title-BB0O0yol.js";
4
+ import { _ as Oe, u as Ge } from "./Tooltip-GvLaModr.js";
5
+ import { U as ve } from "./usePrinter-D8dIU7aG.js";
6
+ import { _ as pe } from "./Shape-C3ywBhkW.js";
7
+ import Me from "./BaseIcon-DCE3wRiG.js";
8
+ import ze from "./vue-ui-table-sparkline-DHaEHFG_.js";
9
+ import Te from "./vue-ui-skeleton-D7rg5vFC.js";
10
+ import { S as Pe } from "./Slicer-D9ASV60L.js";
11
+ import Ve from "./vue-ui-accordion-BOHicozd.js";
12
+ import { u as Z } from "./useNestedProp-DQpuJSz3.js";
13
+ import { _ as Re } from "./PackageVersion-S7OD_s5u.js";
14
+ import { P as De } from "./PenAndPaper-BxJZd7k9.js";
15
15
  import { resolveComponent as P, openBlock as r, createElementBlock as l, normalizeClass as V, normalizeStyle as C, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as z, renderSlot as O, normalizeProps as H, guardReactiveProps as W, createVNode as X, createElementVNode as g, Fragment as N, renderList as I, toDisplayString as S, withDirectives as He, vModelCheckbox as We, createTextVNode as Ee } from "vue";
16
16
  import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const Xe = J(), qe = {
@@ -827,7 +827,7 @@ const Xe = J(), qe = {
827
827
  let b = 0;
828
828
  this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
829
829
  let T = 0;
830
- this.$refs.noTitle && (T = this.$refs.source.getBoundingClientRect().height), this.height = h - e - m - y - b - T, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
830
+ this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = h - e - m - y - b - T, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
831
831
  for (const w of p)
832
832
  this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (y = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (m = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = w.contentBoxSize[0].blockSize - e - m - y - b - 24, this.width = w.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
833
833
  }).observe(s);
@@ -2347,7 +2347,7 @@ function Ui(i, s, h, f, t, e) {
2347
2347
  }, 8, ["config"])) : c("", !0)
2348
2348
  ], 14, Ue);
2349
2349
  }
2350
- const ha = /* @__PURE__ */ Ye(qe, [["render", Ui], ["__scopeId", "data-v-3b05da9c"]]);
2350
+ const ha = /* @__PURE__ */ Ye(qe, [["render", Ui], ["__scopeId", "data-v-7fd18270"]]);
2351
2351
  export {
2352
2352
  ha as default
2353
2353
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),n=require("./index-DCccP2Kt.cjs"),c=require("./useResponsive-BJ7DTGpm.cjs"),Je=require("./Tooltip-DCwHEKeM.cjs"),Ke=require("./Legend-6jFPkL1P.cjs"),Qe=require("./Title-BeCsXJhg.cjs"),et=require("./Slicer-A-l0DLQY.cjs"),Me=require("./usePrinter-C-C264ik.cjs"),tt=require("./vue-ui-accordion-CTxFHMF7.cjs"),lt=require("./DataTable-Dk61oGV_.cjs"),at=require("./vue-ui-skeleton-Ckb3hRcQ.cjs"),Pe=require("./useNestedProp-DzZoHbI7.cjs"),ot=require("./PenAndPaper-BUjMRWG0.cjs"),rt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=["id"],nt=["onClick"],st={key:2,class:"vue-data-ui-watermark"},it=["innerHTML"],ct={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ae,{expose:Re,emit:Oe}){const x=ae,{vue_ui_xy_canvas:Ne}=n.useConfig(),X=l.ref(n.createUid()),B=l.ref(null),w=l.ref(null),I=l.ref(null),i=l.ref(null),g=l.ref(1),$=l.ref(1),A=l.ref(!1),f=l.ref(null),_=l.ref(""),oe=l.ref(null),C=l.ref([]),O=l.ref(1),R=l.ref(!0),S=l.ref(!0),Y=l.ref(null),re=l.ref(0),ue=l.ref(0),Z=l.ref(!1),ne=l.ref(null),se=l.ref(null),ie=l.ref(null),ce=l.ref(null),G=l.ref(0),j=l.ref(0),J=l.ref(0),K=l.computed(()=>!!x.dataset&&x.dataset.length),t=l.computed({get:()=>ve(),set:e=>e});function ve(){const e=Pe.useNestedProp({userConfig:x.config,defaultConfig:Ne});let o={};return e.theme?o={...Pe.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:o=e,x.config&&n.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&n.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,o}l.watch(()=>x.config,e=>{t.value=ve(),ee(),G.value+=1,j.value+=1,J.value+=1},{deep:!0}),l.watch(()=>x.dataset,()=>{ee(),G.value+=1,j.value+=1,J.value+=1},{deep:!0});const de=l.ref(t.value.style.chart.aspectRatio),{isPrinting:he,isImaging:fe,generatePdf:ye,generateImage:ge}=Me.usePrinter({elementId:`xy_canvas_${X.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Be(e){Z.value=e,ue.value+=1}const pe=l.computed(()=>n.convertCustomPalette(t.value.customPalette)),T=l.computed(()=>N.value?Math.max(...N.value.filter((e,o)=>!C.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:$.value,left:g.value*t.value.style.chart.paddingProportions.left,top:$.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:$.value-$.value*t.value.style.chart.paddingProportions.bottom,width:e,height:$.value-$.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function me(e,o){return e/o}function Ie({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((k,le)=>{const z=h.min<0?Math.abs(h.min):0,M=me(k+z,z+h.max);let P,E;e&&(P=Math.abs(h.min),E=me(k+P,h.max+P));let F=0;return m===null?F=a.value.bottom-a.value.height*(e?E:M):F=a.value.bottom-p-v*(e?E:M),{x:a.value.left+a.value.slot*le+a.value.slot/2,y:F,value:k}})}const b=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...N.value.filter((v,m)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...N.value.filter((v,m)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=a.value.bottom-a.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:a.value.bottom-a.value.height*((v+d)/(r.max+d)),x:a.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),Ee=l.computed(()=>y.value.map(e=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),n=require("./index-B5Ugkauv.cjs"),c=require("./useResponsive-BJ7DTGpm.cjs"),Je=require("./Tooltip-ypQtmi99.cjs"),Ke=require("./Legend-BXG_XPom.cjs"),Qe=require("./Title-D9gPXVTT.cjs"),et=require("./Slicer-B2aHb4bj.cjs"),Me=require("./usePrinter-DtpFEgOX.cjs"),tt=require("./vue-ui-accordion-u4xDSvRn.cjs"),lt=require("./DataTable-Cr3Xkxe4.cjs"),at=require("./vue-ui-skeleton-E9_X0-sa.cjs"),Pe=require("./useNestedProp-bZitLnbb.cjs"),ot=require("./PenAndPaper-DWYhyZye.cjs"),rt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=["id"],nt=["onClick"],st={key:2,class:"vue-data-ui-watermark"},it=["innerHTML"],ct={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ae,{expose:Re,emit:Oe}){const x=ae,{vue_ui_xy_canvas:Ne}=n.useConfig(),X=l.ref(n.createUid()),B=l.ref(null),w=l.ref(null),I=l.ref(null),i=l.ref(null),g=l.ref(1),$=l.ref(1),A=l.ref(!1),f=l.ref(null),_=l.ref(""),oe=l.ref(null),C=l.ref([]),O=l.ref(1),R=l.ref(!0),S=l.ref(!0),Y=l.ref(null),re=l.ref(0),ue=l.ref(0),Z=l.ref(!1),ne=l.ref(null),se=l.ref(null),ie=l.ref(null),ce=l.ref(null),G=l.ref(0),j=l.ref(0),J=l.ref(0),K=l.computed(()=>!!x.dataset&&x.dataset.length),t=l.computed({get:()=>ve(),set:e=>e});function ve(){const e=Pe.useNestedProp({userConfig:x.config,defaultConfig:Ne});let o={};return e.theme?o={...Pe.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:o=e,x.config&&n.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&n.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,o}l.watch(()=>x.config,e=>{t.value=ve(),ee(),G.value+=1,j.value+=1,J.value+=1},{deep:!0}),l.watch(()=>x.dataset,()=>{ee(),G.value+=1,j.value+=1,J.value+=1},{deep:!0});const de=l.ref(t.value.style.chart.aspectRatio),{isPrinting:he,isImaging:fe,generatePdf:ye,generateImage:ge}=Me.usePrinter({elementId:`xy_canvas_${X.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Be(e){Z.value=e,ue.value+=1}const pe=l.computed(()=>n.convertCustomPalette(t.value.customPalette)),T=l.computed(()=>N.value?Math.max(...N.value.filter((e,o)=>!C.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:$.value,left:g.value*t.value.style.chart.paddingProportions.left,top:$.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:$.value-$.value*t.value.style.chart.paddingProportions.bottom,width:e,height:$.value-$.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function me(e,o){return e/o}function Ie({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((k,le)=>{const z=h.min<0?Math.abs(h.min):0,M=me(k+z,z+h.max);let P,E;e&&(P=Math.abs(h.min),E=me(k+P,h.max+P));let F=0;return m===null?F=a.value.bottom-a.value.height*(e?E:M):F=a.value.bottom-p-v*(e?E:M),{x:a.value.left+a.value.slot*le+a.value.slot/2,y:F,value:k}})}const b=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...N.value.filter((v,m)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...N.value.filter((v,m)=>!C.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=a.value.bottom-a.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:a.value.bottom-a.value.height*((v+d)/(r.max+d)),x:a.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),Ee=l.computed(()=>y.value.map(e=>`
2
2
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
3
  <svg viewBox="0 0 10 10" height="12" width="12">
4
4
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
@@ -1,16 +1,16 @@
1
1
  import { ref as v, computed as b, watch as A, onMounted as La, onBeforeUnmount as ka, openBlock as S, createElementBlock as q, normalizeStyle as J, normalizeClass as Ca, createBlock as F, createCommentVNode as _, unref as D, createSlots as wa, withCtx as m, renderSlot as x, normalizeProps as Y, guardReactiveProps as B, createElementVNode as K, createVNode as Sa, toDisplayString as Ve, createTextVNode as $a } from "vue";
2
- import { u as za, c as Ma, t as Ta, a as Ra, p as H, M as je, b as Oa, C as xe, i as Q, f as ee, Y as Ia, I as Pa, d as qe, a2 as Fa, o as Ea, e as Na, x as Je, y as Aa, q as _a, r as Da, s as ae, l as Ha } from "./index-hQvps1ng.js";
2
+ import { u as za, c as Ma, t as Ta, a as Ra, p as H, M as je, b as Oa, C as xe, i as Q, f as ee, Y as Ia, I as Pa, d as qe, a2 as Fa, o as Ea, e as Na, x as Je, y as Aa, q as _a, r as Da, s as ae, l as Ha } from "./index-B6Q1Fyk0.js";
3
3
  import { d as Wa, c as Xa, a as Ke, t as Ya, l as L, r as Le, b as E, p as Qe, u as Ba } from "./useResponsive-CoxXLe23.js";
4
- import { _ as Ua } from "./Tooltip-Chiu53IG.js";
5
- import { L as Za } from "./Legend-C8xQE9Da.js";
6
- import { _ as Ga } from "./Title-DU9SuVY-.js";
7
- import { S as Va } from "./Slicer-DHzuJMcK.js";
8
- import { u as ja, U as qa } from "./usePrinter-c5Pf5Hrk.js";
9
- import Ja from "./vue-ui-accordion-CbATWtZa.js";
10
- import { D as Ka } from "./DataTable-D7EHk98Z.js";
11
- import Qa from "./vue-ui-skeleton-Dmee5Xfg.js";
12
- import { u as ea } from "./useNestedProp-CxQ2hIfU.js";
13
- import { P as el } from "./PenAndPaper-BBXIRAdA.js";
4
+ import { _ as Ua } from "./Tooltip-GvLaModr.js";
5
+ import { L as Za } from "./Legend-DzxQIjDO.js";
6
+ import { _ as Ga } from "./Title-BB0O0yol.js";
7
+ import { S as Va } from "./Slicer-D9ASV60L.js";
8
+ import { u as ja, U as qa } from "./usePrinter-D8dIU7aG.js";
9
+ import Ja from "./vue-ui-accordion-BOHicozd.js";
10
+ import { D as Ka } from "./DataTable-B5DiCrf_.js";
11
+ import Qa from "./vue-ui-skeleton-D7rg5vFC.js";
12
+ import { u as ea } from "./useNestedProp-DQpuJSz3.js";
13
+ import { P as el } from "./PenAndPaper-BxJZd7k9.js";
14
14
  import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const ll = ["id"], tl = ["onClick"], ol = {
16
16
  key: 2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.4.39",
4
+ "version": "2.4.41",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [