vue-data-ui 2.3.84 → 2.3.86

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 (180) hide show
  1. package/dist/{Arrow-CQ1ubni5.js → Arrow-CJ7hmWgf.js} +1 -1
  2. package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CebZn6E4.cjs} +1 -1
  3. package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-B9istAKo.js} +1 -1
  4. package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
  5. package/dist/{DataTable-CEtr89Og.cjs → DataTable-BA_BCbHC.cjs} +1 -1
  6. package/dist/{DataTable-C-iU_7h7.js → DataTable-tSDSY14n.js} +2 -2
  7. package/dist/{Legend-D2ZBCCXe.cjs → Legend-BOY57qwA.cjs} +1 -1
  8. package/dist/{Legend-pU_BwhaW.js → Legend-D3hovFqM.js} +1 -1
  9. package/dist/{Shape-BO_KyCq8.cjs → Shape-D6jrLLku.cjs} +1 -1
  10. package/dist/{Shape-CyM44biU.js → Shape-XiTBfhJM.js} +1 -1
  11. package/dist/{Slicer-CZobytqL.js → Slicer-BMvzmCKt.js} +2 -2
  12. package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-sZ-DArc4.cjs} +1 -1
  13. package/dist/{Title-B1_d29Eh.cjs → Title-Ahj4TYHa.cjs} +1 -1
  14. package/dist/{Title-Bk3h09h9.js → Title-DJ2FNrSN.js} +1 -1
  15. package/dist/{Tooltip-CdB80DsD.js → Tooltip-CQpXRqRC.js} +1 -1
  16. package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-XhevgJmm.cjs} +1 -1
  17. package/dist/index-CVgBMJU6.cjs +4 -0
  18. package/dist/{index-DI4DaxVG.js → index-D2epy0rJ.js} +4 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +3 -0
  21. package/dist/types/vue-data-ui.d.ts +3 -0
  22. package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
  23. package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-C_ZrJBd9.js} +1 -1
  24. package/dist/usePrinter-B6qtXaHk.js +527 -0
  25. package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
  26. package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
  27. package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-vegY0BJm.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-CqRRjlUU.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-D-0SSMOt.js} +165 -164
  32. package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
  34. package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
  35. package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-_eo2DGen.js} +68 -67
  36. package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
  37. package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
  38. package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CsF7OSvJ.js} +83 -82
  39. package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
  41. package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
  43. package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-CVftKftk.js} +11 -10
  44. package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-wujy8n_T.js} +2 -2
  46. package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
  48. package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
  49. package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-J-WrKKHg.js} +2 -2
  50. package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-BOhWcHY_.js} +91 -90
  51. package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
  52. package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-CSSYuoti.js} +83 -82
  53. package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
  54. package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-Cm0Rp_6W.js} +23 -22
  55. package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
  56. package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-0m7a1NP7.js} +54 -53
  57. package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
  58. package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-DCHEdZAl.js} +87 -86
  60. package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-HcM2JJpg.js} +78 -77
  61. package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
  64. package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-CxIHmv0t.js} +170 -169
  65. package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
  66. package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-DibULfkp.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
  70. package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-4cIGPnWg.js} +282 -278
  71. package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-BTe21WKk.js} +144 -143
  73. package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-BVzabOga.js} +65 -64
  75. package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
  76. package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-C3TAKqro.js} +90 -89
  77. package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
  78. package/dist/vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +40 -39
  80. package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
  81. package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-CKnyfJoi.js} +51 -50
  82. package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-DZDYYnsI.js} +63 -62
  84. package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
  85. package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-v9yayJxu.js} +44 -43
  86. package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
  87. package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
  88. package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-Clqo4kkb.js} +74 -73
  89. package/dist/vue-ui-relation-circle-DcpIVbI6.cjs +1 -0
  90. package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-D27xNq9q.js} +78 -77
  91. package/dist/vue-ui-rings-DTn3t8Ku.cjs +2 -0
  92. package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-C07Mon-6.js} +53 -52
  93. package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
  94. package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
  95. package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
  97. package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
  99. package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
  100. package/dist/vue-ui-spark-trend-CnUz6s1m.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-GY2CfYRt.js} +29 -29
  102. package/dist/vue-ui-sparkbar-DaFwUA6Z.cjs +1 -0
  103. package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-tdgek1gv.js} +27 -27
  104. package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-1zu5KmTA.js} +22 -22
  105. package/dist/vue-ui-sparkgauge-D8P01Hem.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-b68QStxA.js} +52 -52
  107. package/dist/vue-ui-sparkhistogram-mg6yuwLH.cjs +1 -0
  108. package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +6 -6
  111. package/dist/vue-ui-sparkstackbar-DOrquZvw.cjs +1 -0
  112. package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
  113. package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-DeQkP1dj.js} +64 -63
  114. package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
  115. package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-vqOCzdFV.js} +73 -72
  116. package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
  117. package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-DDdVqdHt.js} +1 -1
  118. package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
  119. package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
  120. package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
  121. package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
  122. package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-CajBbbYc.js} +60 -59
  123. package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
  124. package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-D3VRVK-8.js} +4 -4
  125. package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-BT0k_3xi.js} +93 -92
  127. package/dist/vue-ui-tiremarks-Bc8bBBAw.cjs +1 -0
  128. package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-DMhe3zCm.js} +14 -13
  130. package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
  131. package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-hH9R9V-K.js} +180 -179
  132. package/dist/vue-ui-waffle-BvYE9hAY.cjs +1 -0
  133. package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-DnNd6Iba.js} +85 -84
  134. package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Bx9_m-7W.js} +72 -71
  135. package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
  136. package/dist/vue-ui-word-cloud-3R-mYkIW.cjs +1 -0
  137. package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-DUk0Xt8q.js} +109 -108
  138. package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-FtaqoNK8.js} +401 -405
  139. package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
  140. package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
  141. package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
  142. package/package.json +1 -1
  143. package/dist/index-Cx-40Fnz.cjs +0 -4
  144. package/dist/usePrinter-D9bNzUQP.js +0 -513
  145. package/dist/usePrinter-DbhL59iY.cjs +0 -1
  146. package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
  147. package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
  148. package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
  149. package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
  150. package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
  151. package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
  152. package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
  153. package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
  154. package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
  155. package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-C3CMWjgk.cjs +0 -17
  158. package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
  160. package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
  162. package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
  164. package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
  165. package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
  166. package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
  170. package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
  171. package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
  172. package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
  173. package/dist/vue-ui-table-heatmap-BnwiB4id.cjs +0 -1
  174. package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
  175. package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
  177. package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
  178. package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
  179. package/dist/vue-ui-word-cloud-D5JLdr9g.cjs +0 -1
  180. package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CVgBMJU6.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),_e=require("./Title-Ahj4TYHa.cjs"),ce=require("./usePrinter-DN-6Hoh5.cjs"),Se=require("./Tooltip-XhevgJmm.cjs"),Ne=require("./DataTable-BA_BCbHC.cjs"),Le=require("./Legend-BOY57qwA.cjs"),$e=require("./vue-ui-skeleton-Br1K3exH.cjs"),Te=require("./vue-ui-accordion-BaV9R6cy.cjs"),ve=require("./useNestedProp-B-NmF2LO.cjs"),Pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=S=>(e.pushScopeId("data-v-a80f56d0"),S=S(),e.popScopeId(),S),Ie=["id"],Ve=["xmlns","viewBox"],Ee=["id"],ze=["stop-color"],Fe=["stop-color"],De=["id"],Oe=de(()=>e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2},null,-1)),Ae=de(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Me=[Oe,Ae],qe=["x","y","height","width"],Re=["height","width"],Ue=["rx","x","y","height","width","stroke","stroke-width","filter"],je=["rx","x","y","height","width","fill","stroke","stroke-width","filter"],Ge=["x","y","height","width","filter"],We={key:0},He={key:1},Ye={key:2},Xe={key:3},Je=["onMouseover","x","y","height","width"],Ke={key:3,class:"vue-data-ui-watermark"},Qe=["onClick"],Ze={key:0},et={key:1},tt=["innerHTML"],lt={__name:"vue-ui-waffle",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(S,{expose:pe,emit:he}){const p=S,{vue_ui_waffle:fe}=n.useConfig(),I=e.computed(()=>!!p.dataset&&p.dataset.length),b=e.ref(n.createUid()),ye=e.ref(null),F=e.ref(!1),D=e.ref(""),B=e.ref(null),q=e.ref(0),N=e.ref(null),R=e.ref(null),U=e.ref(null),j=e.ref(0),G=e.ref(0),W=e.ref(0),t=e.computed({get:()=>H(),set:l=>l});function H(){const l=ve.useNestedProp({userConfig:p.config,defaultConfig:fe});return l.theme?{...ve.useNestedProp({userConfig:n.themes.vue_ui_waffle[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=H(),Y(),j.value+=1,G.value+=1,W.value+=1},{deep:!0});const V=e.ref(null);function Y(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiWaffle",type:"dataset"}):p.dataset.forEach((l,r)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:a,index:r})})}),t.value.responsive){const l=ie.throttle(()=>{const{width:r,height:a}=ie.useResponsive({chart:N.value,title:t.value.style.chart.title.text?R.value:null,legend:t.value.style.chart.legend.show?U.value:null});k.value.width=r,k.value.height=a,f.value.width=r,f.value.height=a});V.value=new ResizeObserver(l),V.value.observe(N.value.parentNode)}}e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()});const{isPrinting:X,isImaging:J,generatePdf:K,generateImage:Q}=ce.usePrinter({elementId:`vue-ui-waffle_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-waffle"}),Z=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),m=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),k=e.ref({height:512,width:512}),f=e.ref({top:0,left:0,height:512,width:512}),w=e.computed(()=>(f.value.width-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),x=e.computed(()=>(f.value.height-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),L=e.computed(()=>f.value.width/t.value.style.chart.layout.grid.size),E=e.computed(()=>f.value.height/t.value.style.chart.layout.grid.size);function ee(l){const r=t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.size,a=l.reduce((h,M)=>h+M,0),o=l.map(h=>h/a*r),u=o.map(Math.floor),i=o.map(h=>h%1);let d=r-u.reduce((h,M)=>h+M,0);for(;d>0;){let h=i.indexOf(Math.max(...i));u[h]+=1,i[h]=0,d-=1}return u}function te(){return p.dataset.map((l,r)=>({...l,color:n.convertColorToHex(l.color)||Z.value[r]||n.palette[r]||n.palette[r%n.palette.length],uid:`serie_${r}`,absoluteIndex:r}))}const le=e.computed(()=>te()),c=e.ref(le.value);e.watch(()=>p.dataset,l=>{c.value=te()},{deep:!0});const ge=e.computed(()=>{const l=c.value.filter((r,a)=>!v.value.includes(r.uid)).map((r,a)=>(r.values||[]).reduce((o,u)=>o+u,0));return ee(l)}),me=e.computed(()=>{const l=c.value.map((r,a)=>(r.values||[]).reduce((o,u)=>o+u));return ee(l)}),$=e.computed(()=>(p.dataset.forEach((l,r)=>{[null,void 0].includes(l.values)&&n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:"values (number[])",index:r})}),c.value.filter((l,r)=>!v.value.includes(l.uid)).map((l,r)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,o)=>a+o,0),absoluteValues:l.values||[],proportion:ge.value[r]})))),be=e.computed(()=>c.value.map((l,r)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,o)=>a+o,0),absoluteValues:l.values||[],proportion:me.value[r]})));function ke(){return be.value.map(l=>({name:l.name,color:l.color,value:l.value,proportion:l.proportion}))}const we=e.computed(()=>{let l=0;return $.value.map((r,a)=>{const o=l,u=o+r.proportion,i=[];for(let d=Math.floor(o);d<Math.floor(u);d+=1)i.push(d);return l=u,{...r,start:o,rects:i}})}),s=e.computed(()=>we.value.flatMap((l,r)=>l.rects.map((a,o)=>({isFirst:o===0,isLongEnough:a.length>2,name:l.name,color:l.color,value:l.value,serieIndex:r,absoluteStartIndex:o<3,serieId:l.uid,...l}))).map((l,r)=>({...l,isAbsoluteFirst:r%t.value.style.chart.layout.grid.size===0}))),T=e.computed(()=>{const l=[];for(let r=0;r<t.value.style.chart.layout.grid.size;r+=1)for(let a=0;a<t.value.style.chart.layout.grid.size;a+=1)l.push({isStartOfLine:a===0,position:t.value.style.chart.layout.grid.vertical?r:a,x:(t.value.style.chart.layout.grid.vertical?r:a)*(w.value+t.value.style.chart.layout.grid.spaceBetween),y:(t.value.style.chart.layout.grid.vertical?a:r)*(x.value+t.value.style.chart.layout.grid.spaceBetween)+f.value.top});return l}),v=e.ref([]),C=e.ref(!1),ae=e.ref(null),oe=e.ref(null);function re(l){if(!t.value.useAnimation){v.value.includes(l)?v.value=v.value.filter(u=>u!==l):v.value.length<_.value.length-1&&_.value.length>1&&v.value.push(l);return}const r=le.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);let o=c.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);if(v.value.includes(l)){let i=function(){o>u?(cancelAnimationFrame(ae.value),c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[u]}:d),C.value=!1):(C.value=!0,o+=u*.025,c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[o]}:d),ae.value=requestAnimationFrame(i))};v.value=v.value.filter(d=>d!==l);const u=r;i()}else if(v.value.length<_.value.length-1&&_.value.length>1){let u=function(){o<.1?(cancelAnimationFrame(oe.value),v.value.push(l),c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[0]}:i),C.value=!1):(C.value=!0,o/=1.5,c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[o]}:i),oe.value=requestAnimationFrame(u))};u()}he("selectLegend",$.value.map(u=>({name:u.name,color:u.color,value:u.value,proportion:u.proportion/Math.pow(t.value.style.chart.layout.grid.size,2)})))}const _=e.computed(()=>c.value.map((l,r)=>({name:l.name,color:l.color||Z[r]||n.palette[r]||n.palette[r%n.palette.length],value:(l.values||[]).reduce((a,o)=>a+o,0),uid:l.uid,shape:"square"})).map((l,r)=>({...l,proportion:l.value/c.value.map(a=>(a.values||[]).reduce((o,u)=>o+u,0)).reduce((a,o)=>a+o,0),opacity:v.value.includes(l.uid)?.5:1,segregate:()=>re(l.uid),isSegregated:v.value.includes(l.uid)}))),xe=e.computed(()=>({cy:"waffle-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>$.value.map(l=>l.value).reduce((l,r)=>l+r,0)),O=e.ref(null);function Ce(l){if(v.value.length===p.dataset.length)return;const r=s.value[l];O.value={datapoint:r,seriesIndex:r.absoluteIndex,series:c.value,config:t.value},F.value=!0,B.value=s.value[l].serieIndex;const a=t.value.style.chart.tooltip.customFormat;if(n.isFunction(a)&&n.functionReturnsString(()=>a({seriesIndex:s.value[l].absoluteIndex,datapoint:r,series:c.value,config:t.value})))D.value=a({seriesIndex:s.value[l].absoluteIndex,datapoint:r,series:c.value,config:t.value});else{let o="";if(o+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.name}</div>`,o+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${r.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(o+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,r.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:r.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:r,seriesIndex:s.value[l].absoluteIndex,series:c.value})}</b>`),t.value.style.chart.tooltip.showPercentage){const u=n.dataLabel({v:r.value/y.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage});t.value.style.chart.tooltip.showValue?o+=`<span>(${u})</span></div>`:o+=`<b>${u}%</b></div>`}D.value=o}}const g=e.computed(()=>{const l=$.value.map(a=>({name:a.name,color:a.color})),r=$.value.map(a=>a.value);return{head:l,body:r}});function A(l){return t.value.useBlurOnHover&&![null,void 0].includes(B.value)&&B.value!==l?`url(#blur_${b.value})`:""}function ue(){e.nextTick(()=>{const l=g.value.head.map((o,u)=>[[o.name],[g.value.body[u]],[isNaN(g.value.body[u]/y.value)?"-":g.value.body[u]/y.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),a=n.createCsvContent(r);n.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-waffle"})})}const z=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,y.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),"100%"],r=g.value.head.map((u,i)=>[{color:u.color,name:u.name},n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,g.value.body[i],n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),isNaN(g.value.body[i]/y.value)?"-":n.dataLabel({v:g.value.body[i]/y.value*100,s:"%",r:t.value.table.td.roundingPercentage})]),a={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},shape:"square",breakpoint:t.value.table.responsiveBreakpoint},o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:r,config:a,colNames:o}}),P=e.ref(!1);function Be(l){P.value=l,q.value+=1}function ne(){m.value.showTable=!m.value.showTable}function se(){m.value.showTooltip=!m.value.showTooltip}return pe({getData:ke,generatePdf:K,generateCsv:ue,generateImage:Q,toggleTable:ne,toggleTooltip:se}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-waffle ${P.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"waffleChart",ref:N,id:`vue-ui-waffle_${b.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:R,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(_e._sfc_main,{key:`title_${j.value}`,config:{title:{cy:"waffle-title",...t.value.style.chart.title},subtitle:{cy:"waffle-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&I.value?(e.openBlock(),e.createBlock(ce.UserOptions,{ref_key:"details",ref:ye,key:`user_options_${q.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(X),isImaging:e.unref(J),uid:b.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:P.value,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:N.value,position:t.value.userOptions.position,onToggleFullscreen:Be,onGeneratePdf:e.unref(K),onGenerateCsv:ue,onGenerateImage:e.unref(Q),onToggleTable:ne,onToggleTooltip:se},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),I.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":P.value,"vue-data-ui-fulscreen--off":!P.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,o)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${b.value}_${o}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(a.color,.05),100-t.value.style.chart.layout.rect.gradientIntensity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Fe)],8,Ee))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${b.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},Me,8,De)]),t.value.useCustomCells&&s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(T.value,(a,o)=>(e.openBlock(),e.createElementBlock("foreignObject",{x:a.x,y:a.y,height:x.value<=0?1e-4:x.value,width:w.value<=0?1e-4:w.value,class:"vue-ui-waffle-custom-cell-foreignObject"},[e.renderSlot(l.$slots,"cell",e.normalizeProps(e.guardReactiveProps({cell:{...a,color:s.value[o].color,...s.value[o]},isSelected:[null,void 0].includes(B.value)?!0:s.value[o].serieIndex===B.value})),void 0,!0)],8,qe))),256)):e.createCommentVNode("",!0),!s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock("rect",{key:1,x:12,y:12,height:f.value.height-24,width:f.value.width-24,rx:3,fill:"none",stroke:"black"},null,8,Re)):s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(a,o)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:x.value<=0?1e-4:x.value,width:w.value<=0?1e-4:w.value,fill:"white",stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:A(s.value[o].serieIndex)},null,8,Ue))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(a,o)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:x.value<=0?1e-4:x.value,width:w.value<=0?1e-4:w.value,fill:t.value.style.chart.layout.rect.useGradient&&t.value.style.chart.layout.rect.gradientIntensity>0?`url(#gradient_${b.value}_${o})`:s.value[o].color,stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:A(s.value[o].serieIndex)},null,8,je))),256))],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value.length&&!C.value&&!t.value.style.chart.layout.grid.vertical&&t.value.style.chart.layout.labels.captions.show&&(s.value[o].isFirst&&a.position<t.value.style.chart.layout.grid.size-2||s.value[o].isAbsoluteFirst&&o%t.value.style.chart.layout.grid.size===0&&s.value[o].absoluteStartIndex)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.x+t.value.style.chart.layout.labels.captions.offsetX+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.labels.captions.offsetY+t.value.style.chart.layout.grid.spaceBetween/2,height:E.value<=0?1e-4:E.value,width:L.value*t.value.style.chart.layout.grid.size<=0?1e-4:L.value*t.value.style.chart.layout.grid.size,filter:A(s.value[o].serieIndex)},[e.createElementVNode("div",{class:"vue-ui-waffle-caption",style:e.normalizeStyle(`height: 100%; width: 100%; font-size:${t.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${L.value/12}px;color:${e.unref(n.adaptColorToBackground)(s.value[o].color)};gap:2px`)},[t.value.style.chart.layout.labels.captions.showSerieName?(e.openBlock(),e.createElementBlock("span",We,e.toDisplayString(t.value.style.chart.layout.labels.captions.serieNameAbbreviation?e.unref(n.abbreviate)({source:s.value[o].name,length:t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize}):s.value[o].name)+": ",1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage?(e.openBlock(),e.createElementBlock("span",He,e.toDisplayString(e.unref(n.dataLabel)({v:s.value[o].proportion,s:"%",r:t.value.style.chart.layout.labels.captions.roundingPercentage})),1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",Ye," ("+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[o].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[o].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[o],position:a}))+") ",1)):e.createCommentVNode("",!0),!t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",Xe,e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[o].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[o].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[o],position:a})),1)):e.createCommentVNode("",!0)],4)],8,Ge)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(a,o)=>(e.openBlock(),e.createElementBlock("rect",{onMouseover:u=>Ce(o),onMouseleave:r[0]||(r[0]=u=>{F.value=!1,B.value=null}),x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:E.value<=0?1e-4:E.value,width:L.value<=0?1e-4:L.value,fill:"transparent",stroke:"none"},null,40,Je))),256)),e.renderSlot(l.$slots,"svg",{svg:k.value},void 0,!0)],14,Ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:4,config:{type:"waffle",style:{backgroundColor:t.value.style.chart.backgroundColor,waffle:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:U},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Le.Legend,{key:`legend_${W.value}`,legendSet:_.value,config:xe.value,onClickMarker:r[1]||(r[1]=({legend:a})=>re(a.uid))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:o=>a.segregate(),style:e.normalizeStyle(`opacity:${v.value.includes(a.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue,isAnimating:C.value}),{datapoint:a}))+" ",1),v.value.includes(a.uid)?(e.openBlock(),e.createElementBlock("span",et," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ze," ("+e.toDisplayString(isNaN(a.value/y.value)?"-":e.unref(n.dataLabel)({v:a.value/y.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage,isAnimating:C.value}))+") ",1))],12,Qe)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:_.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:m.value.showTooltip&&F.value&&v.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:N.value,content:D.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function",fontSize:t.value.style.chart.tooltip.fontSize},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","fontSize"]),I.value?(e.openBlock(),e.createBlock(Te.default,{key:5,hideDetails:"",config:{open:m.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(Ne.DataTable,{key:`table_${G.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:r[2]||(r[2]=a=>m.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,tt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ie))}},at=Pe._export_sfc(lt,[["__scopeId","data-v-a80f56d0"]]);exports.default=at;
@@ -1,16 +1,16 @@
1
- import { computed as d, ref as c, watch as Te, onMounted as Ee, onBeforeUnmount as We, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as q, createBlock as V, createCommentVNode as p, unref as h, createSlots as qe, withCtx as b, renderSlot as w, normalizeProps as H, guardReactiveProps as X, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Le, createVNode as He, nextTick as Xe, pushScopeId as Ye, popScopeId as Je } from "vue";
2
- import { u as Ke, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, s as ut, w as st, F as rt, I as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-DI4DaxVG.js";
3
- import { t as yt, u as ft } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as pt } from "./Title-Bk3h09h9.js";
5
- import { u as gt, U as mt } from "./usePrinter-D9bNzUQP.js";
6
- import { _ as bt } from "./Tooltip-CdB80DsD.js";
7
- import { D as wt } from "./DataTable-C-iU_7h7.js";
8
- import { L as kt } from "./Legend-pU_BwhaW.js";
9
- import xt from "./vue-ui-skeleton-DH4t1hrL.js";
10
- import Ct from "./vue-ui-accordion-DsN9lxvc.js";
11
- import { u as Pe } from "./useNestedProp-COsQo-tX.js";
1
+ import { computed as d, ref as c, watch as Te, onMounted as Ee, onBeforeUnmount as We, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as Q, createBlock as V, createCommentVNode as f, unref as h, createSlots as qe, withCtx as b, renderSlot as w, normalizeProps as q, guardReactiveProps as H, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Le, createVNode as He, nextTick as Xe, pushScopeId as Ye, popScopeId as Je } from "vue";
2
+ import { u as Ke, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, s as ut, w as st, F as rt, I as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-D2epy0rJ.js";
3
+ import { t as pt, u as yt } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as ft } from "./Title-DJ2FNrSN.js";
5
+ import { u as gt, U as mt } from "./usePrinter-B6qtXaHk.js";
6
+ import { _ as bt } from "./Tooltip-CQpXRqRC.js";
7
+ import { D as wt } from "./DataTable-tSDSY14n.js";
8
+ import { L as kt } from "./Legend-D3hovFqM.js";
9
+ import xt from "./vue-ui-skeleton-BLiYyX95.js";
10
+ import Ct from "./vue-ui-accordion-DzTB2FL0.js";
11
+ import { u as Pe } from "./useNestedProp-C_ZrJBd9.js";
12
12
  import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = ["xmlns", "viewBox"], Tt = ["id"], St = ["stop-color"], Lt = ["stop-color"], Pt = ["id"], zt = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feGaussianBlur", {
13
+ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = ["xmlns", "viewBox"], Tt = ["id"], St = ["stop-color"], Lt = ["stop-color"], Pt = ["id"], zt = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feGaussianBlur", {
14
14
  in: "SourceGraphic",
15
15
  stdDeviation: 2
16
16
  }, null, -1)), Ft = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feColorMatrix", {
@@ -40,7 +40,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
40
40
  },
41
41
  emits: ["selectLegend"],
42
42
  setup(G, { expose: Fe, emit: Ne }) {
43
- const g = G, { vue_ui_waffle: Be } = Ke(), Y = d(() => !!g.dataset && g.dataset.length), L = c(Qe()), Oe = c(null), Z = c(!1), ee = c(""), O = c(null), ue = c(0), R = c(null), se = c(null), re = c(null), ne = c(0), ie = c(0), ce = c(0), e = d({
43
+ const g = G, { vue_ui_waffle: Be } = Ke(), X = d(() => !!g.dataset && g.dataset.length), L = c(Qe()), Oe = c(null), Z = c(!1), ee = c(""), O = c(null), ue = c(0), R = c(null), se = c(null), re = c(null), ne = c(0), ie = c(0), ce = c(0), e = d({
44
44
  get: () => ve(),
45
45
  set: (t) => t
46
46
  });
@@ -60,7 +60,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
60
60
  Te(() => g.config, (t) => {
61
61
  e.value = ve(), de(), ne.value += 1, ie.value += 1, ce.value += 1;
62
62
  }, { deep: !0 });
63
- const J = c(null);
63
+ const Y = c(null);
64
64
  function de() {
65
65
  if (tt(g.dataset) ? oe({
66
66
  componentName: "VueUiWaffle",
@@ -78,23 +78,23 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
78
78
  });
79
79
  });
80
80
  }), e.value.responsive) {
81
- const t = yt(() => {
82
- const { width: o, height: l } = ft({
81
+ const t = pt(() => {
82
+ const { width: o, height: l } = yt({
83
83
  chart: R.value,
84
84
  title: e.value.style.chart.title.text ? se.value : null,
85
85
  legend: e.value.style.chart.legend.show ? re.value : null
86
86
  });
87
87
  P.value.width = o, P.value.height = l, C.value.width = o, C.value.height = l;
88
88
  });
89
- J.value = new ResizeObserver(t), J.value.observe(R.value.parentNode);
89
+ Y.value = new ResizeObserver(t), Y.value.observe(R.value.parentNode);
90
90
  }
91
91
  }
92
92
  Ee(() => {
93
93
  de();
94
94
  }), We(() => {
95
- J.value && J.value.disconnect();
95
+ Y.value && Y.value.disconnect();
96
96
  });
97
- const { isPrinting: he, isImaging: ye, generatePdf: fe, generateImage: pe } = gt({
97
+ const { isPrinting: he, isImaging: pe, generatePdf: ye, generateImage: fe } = gt({
98
98
  elementId: `vue-ui-waffle_${L.value}`,
99
99
  fileName: e.value.style.chart.title.text || "vue-ui-waffle"
100
100
  }), ge = d(() => at(e.value.customPalette)), I = c({
@@ -108,13 +108,13 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
108
108
  left: 0,
109
109
  height: 512,
110
110
  width: 512
111
- }), z = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), U = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
111
+ }), z = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), U = d(() => C.value.width / e.value.style.chart.layout.grid.size), J = d(() => C.value.height / e.value.style.chart.layout.grid.size);
112
112
  function me(t) {
113
113
  const o = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((m, ae) => m + ae, 0), a = t.map((m) => m / l * o), u = a.map(Math.floor), n = a.map((m) => m % 1);
114
- let f = o - u.reduce((m, ae) => m + ae, 0);
115
- for (; f > 0; ) {
114
+ let y = o - u.reduce((m, ae) => m + ae, 0);
115
+ for (; y > 0; ) {
116
116
  let m = n.indexOf(Math.max(...n));
117
- u[m] += 1, n[m] = 0, f -= 1;
117
+ u[m] += 1, n[m] = 0, y -= 1;
118
118
  }
119
119
  return u;
120
120
  }
@@ -131,7 +131,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
131
131
  v.value = be();
132
132
  }, { deep: !0 });
133
133
  const Ae = d(() => {
134
- const t = v.value.filter((o, l) => !y.value.includes(o.uid)).map((o, l) => (o.values || []).reduce((a, u) => a + u, 0));
134
+ const t = v.value.filter((o, l) => !p.value.includes(o.uid)).map((o, l) => (o.values || []).reduce((a, u) => a + u, 0));
135
135
  return me(t);
136
136
  }), Ve = d(() => {
137
137
  const t = v.value.map((o, l) => (o.values || []).reduce((a, u) => a + u));
@@ -143,7 +143,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
143
143
  property: "values (number[])",
144
144
  index: o
145
145
  });
146
- }), v.value.filter((t, o) => !y.value.includes(t.uid)).map((t, o) => ({
146
+ }), v.value.filter((t, o) => !p.value.includes(t.uid)).map((t, o) => ({
147
147
  absoluteIndex: t.absoluteIndex,
148
148
  uid: t.uid,
149
149
  name: t.name,
@@ -172,8 +172,8 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
172
172
  let t = 0;
173
173
  return j.value.map((o, l) => {
174
174
  const a = t, u = a + o.proportion, n = [];
175
- for (let f = Math.floor(a); f < Math.floor(u); f += 1)
176
- n.push(f);
175
+ for (let y = Math.floor(a); y < Math.floor(u); y += 1)
176
+ n.push(y);
177
177
  return t = u, {
178
178
  ...o,
179
179
  start: a,
@@ -204,33 +204,33 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
204
204
  y: (e.value.style.chart.layout.grid.vertical ? l : o) * (F.value + e.value.style.chart.layout.grid.spaceBetween) + C.value.top
205
205
  });
206
206
  return t;
207
- }), y = c([]), N = c(!1), ke = c(null), xe = c(null);
207
+ }), p = c([]), N = c(!1), ke = c(null), xe = c(null);
208
208
  function Ce(t) {
209
209
  if (!e.value.useAnimation) {
210
- y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < A.value.length - 1 && A.value.length > 1 && y.value.push(t);
210
+ p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < A.value.length - 1 && A.value.length > 1 && p.value.push(t);
211
211
  return;
212
212
  }
213
213
  const o = we.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
214
214
  let a = v.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
215
- if (y.value.includes(t)) {
215
+ if (p.value.includes(t)) {
216
216
  let n = function() {
217
- a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((f, m) => f.uid === t ? {
218
- ...f,
217
+ a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((y, m) => y.uid === t ? {
218
+ ...y,
219
219
  values: [u]
220
- } : f), N.value = !1) : (N.value = !0, a += u * 0.025, v.value = v.value.map((f, m) => f.uid === t ? {
221
- ...f,
220
+ } : y), N.value = !1) : (N.value = !0, a += u * 0.025, v.value = v.value.map((y, m) => y.uid === t ? {
221
+ ...y,
222
222
  values: [a]
223
- } : f), ke.value = requestAnimationFrame(n));
223
+ } : y), ke.value = requestAnimationFrame(n));
224
224
  };
225
- y.value = y.value.filter((f) => f !== t);
225
+ p.value = p.value.filter((y) => y !== t);
226
226
  const u = o;
227
227
  n();
228
- } else if (y.value.length < A.value.length - 1 && A.value.length > 1) {
228
+ } else if (p.value.length < A.value.length - 1 && A.value.length > 1) {
229
229
  let u = function() {
230
- a < 0.1 ? (cancelAnimationFrame(xe.value), y.value.push(t), v.value = v.value.map((n, f) => n.uid === t ? {
230
+ a < 0.1 ? (cancelAnimationFrame(xe.value), p.value.push(t), v.value = v.value.map((n, y) => n.uid === t ? {
231
231
  ...n,
232
232
  values: [0]
233
- } : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n, f) => n.uid === t ? {
233
+ } : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n, y) => n.uid === t ? {
234
234
  ...n,
235
235
  values: [a]
236
236
  } : n), xe.value = requestAnimationFrame(u));
@@ -253,9 +253,9 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
253
253
  })).map((t, o) => ({
254
254
  ...t,
255
255
  proportion: t.value / v.value.map((l) => (l.values || []).reduce((a, u) => a + u, 0)).reduce((l, a) => l + a, 0),
256
- opacity: y.value.includes(t.uid) ? 0.5 : 1,
256
+ opacity: p.value.includes(t.uid) ? 0.5 : 1,
257
257
  segregate: () => Ce(t.uid),
258
- isSegregated: y.value.includes(t.uid)
258
+ isSegregated: p.value.includes(t.uid)
259
259
  }))), Re = d(() => ({
260
260
  cy: "waffle-div-legend",
261
261
  backgroundColor: e.value.style.chart.legend.backgroundColor,
@@ -265,7 +265,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
265
265
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
266
266
  })), _ = d(() => j.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = c(null);
267
267
  function Ue(t) {
268
- if (y.value.length === g.dataset.length) return;
268
+ if (p.value.length === g.dataset.length) return;
269
269
  const o = r.value[t];
270
270
  te.value = {
271
271
  datapoint: o,
@@ -331,7 +331,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
331
331
  ht({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
332
332
  });
333
333
  }
334
- const Q = d(() => {
334
+ const K = d(() => {
335
335
  const t = [
336
336
  ' <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>',
337
337
  D(
@@ -401,9 +401,9 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
401
401
  }
402
402
  return Fe({
403
403
  getData: De,
404
- generatePdf: fe,
404
+ generatePdf: ye,
405
405
  generateCsv: _e,
406
- generateImage: pe,
406
+ generateImage: fe,
407
407
  toggleTable: $e,
408
408
  toggleTooltip: Ie
409
409
  }), (t, o) => (s(), i("div", {
@@ -411,15 +411,15 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
411
411
  ref_key: "waffleChart",
412
412
  ref: R,
413
413
  id: `vue-ui-waffle_${L.value}`,
414
- style: q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
414
+ style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
415
415
  }, [
416
416
  e.value.style.chart.title.text ? (s(), i("div", {
417
417
  key: 0,
418
418
  ref_key: "chartTitle",
419
419
  ref: se,
420
- style: q(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
420
+ style: "width:100%;background:transparent;padding-bottom:12px"
421
421
  }, [
422
- (s(), V(pt, {
422
+ (s(), V(ft, {
423
423
  key: `title_${ne.value}`,
424
424
  config: {
425
425
  title: {
@@ -432,15 +432,15 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
432
432
  }
433
433
  }
434
434
  }, null, 8, ["config"]))
435
- ], 4)) : p("", !0),
436
- e.value.userOptions.show && Y.value ? (s(), V(mt, {
435
+ ], 512)) : f("", !0),
436
+ e.value.userOptions.show && X.value ? (s(), V(mt, {
437
437
  ref_key: "details",
438
438
  ref: Oe,
439
439
  key: `user_options_${ue.value}`,
440
440
  backgroundColor: e.value.style.chart.backgroundColor,
441
441
  color: e.value.style.chart.color,
442
442
  isPrinting: h(he),
443
- isImaging: h(ye),
443
+ isImaging: h(pe),
444
444
  uid: L.value,
445
445
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
446
446
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -452,10 +452,11 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
452
452
  isTooltip: I.value.showTooltip,
453
453
  titles: { ...e.value.userOptions.buttonTitles },
454
454
  chartElement: R.value,
455
+ position: e.value.userOptions.position,
455
456
  onToggleFullscreen: je,
456
- onGeneratePdf: h(fe),
457
+ onGeneratePdf: h(ye),
457
458
  onGenerateCsv: _e,
458
- onGenerateImage: h(pe),
459
+ onGenerateImage: h(fe),
459
460
  onToggleTable: $e,
460
461
  onToggleTooltip: Ie
461
462
  }, qe({ _: 2 }, [
@@ -497,17 +498,17 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
497
498
  t.$slots.optionFullscreen ? {
498
499
  name: "optionFullscreen",
499
500
  fn: b(({ toggleFullscreen: l, isFullscreen: a }) => [
500
- w(t.$slots, "optionFullscreen", H(X({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
501
+ w(t.$slots, "optionFullscreen", q(H({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
501
502
  ]),
502
503
  key: "5"
503
504
  } : void 0
504
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
505
- Y.value ? (s(), i("svg", {
505
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
506
+ X.value ? (s(), i("svg", {
506
507
  key: 2,
507
508
  xmlns: h(ot),
508
509
  class: Se({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
509
510
  viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
510
- style: q(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
511
+ style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
511
512
  }, [
512
513
  k("defs", null, [
513
514
  (s(!0), i(T, null, M(r.value, (l, a) => (s(), i("radialGradient", {
@@ -544,8 +545,8 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
544
545
  width: z.value <= 0 ? 1e-4 : z.value,
545
546
  class: "vue-ui-waffle-custom-cell-foreignObject"
546
547
  }, [
547
- w(t.$slots, "cell", H(X({ cell: { ...l, color: r.value[a].color, ...r.value[a] }, isSelected: [null, void 0].includes(O.value) ? !0 : r.value[a].serieIndex === O.value })), void 0, !0)
548
- ], 8, Bt))), 256)) : p("", !0),
548
+ w(t.$slots, "cell", q(H({ cell: { ...l, color: r.value[a].color, ...r.value[a] }, isSelected: [null, void 0].includes(O.value) ? !0 : r.value[a].serieIndex === O.value })), void 0, !0)
549
+ ], 8, Bt))), 256)) : f("", !0),
549
550
  !r.value.length && !e.value.useCustomCells ? (s(), i("rect", {
550
551
  key: 1,
551
552
  x: 12,
@@ -578,22 +579,22 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
578
579
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
579
580
  filter: le(r.value[a].serieIndex)
580
581
  }, null, 8, Vt))), 256))
581
- ], 64)) : p("", !0),
582
+ ], 64)) : f("", !0),
582
583
  (s(!0), i(T, null, M(E.value, (l, a) => (s(), i(T, null, [
583
584
  r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (r.value[a].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[a].isAbsoluteFirst && a % e.value.style.chart.layout.grid.size === 0 && r.value[a].absoluteStartIndex) ? (s(), i("foreignObject", {
584
585
  key: 0,
585
586
  x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
586
587
  y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
587
- height: K.value <= 0 ? 1e-4 : K.value,
588
+ height: J.value <= 0 ? 1e-4 : J.value,
588
589
  width: U.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : U.value * e.value.style.chart.layout.grid.size,
589
590
  filter: le(r.value[a].serieIndex)
590
591
  }, [
591
592
  k("div", {
592
593
  class: "vue-ui-waffle-caption",
593
- style: q(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${U.value / 12}px;color:${h(rt)(r.value[a].color)};gap:2px`)
594
+ style: Q(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${U.value / 12}px;color:${h(rt)(r.value[a].color)};gap:2px`)
594
595
  }, [
595
- e.value.style.chart.layout.labels.captions.showSerieName ? (s(), i("span", Dt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(nt)({ source: r.value[a].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[a].name) + ": ", 1)) : p("", !0),
596
- e.value.style.chart.layout.labels.captions.showPercentage ? (s(), i("span", Gt, S(h(x)({ v: r.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : p("", !0),
596
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), i("span", Dt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(nt)({ source: r.value[a].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[a].name) + ": ", 1)) : f("", !0),
597
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), i("span", Gt, S(h(x)({ v: r.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
597
598
  e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Rt, " (" + S(h(D)(
598
599
  e.value.style.chart.layout.labels.dataLabels.formatter,
599
600
  r.value[a].value,
@@ -604,7 +605,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
604
605
  r: e.value.style.chart.layout.labels.captions.roundingValue
605
606
  }),
606
607
  { datapoint: r.value[a], position: l }
607
- )) + ") ", 1)) : p("", !0),
608
+ )) + ") ", 1)) : f("", !0),
608
609
  !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Ut, S(h(D)(
609
610
  e.value.style.chart.layout.labels.dataLabels.formatter,
610
611
  r.value[a].value,
@@ -615,9 +616,9 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
615
616
  r: e.value.style.chart.layout.labels.captions.roundingValue
616
617
  }),
617
618
  { datapoint: r.value[a], position: l }
618
- )), 1)) : p("", !0)
619
+ )), 1)) : f("", !0)
619
620
  ], 4)
620
- ], 8, Mt)) : p("", !0)
621
+ ], 8, Mt)) : f("", !0)
621
622
  ], 64))), 256)),
622
623
  (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
623
624
  onMouseover: (u) => Ue(a),
@@ -626,17 +627,17 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
626
627
  }),
627
628
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
628
629
  y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
629
- height: K.value <= 0 ? 1e-4 : K.value,
630
+ height: J.value <= 0 ? 1e-4 : J.value,
630
631
  width: U.value <= 0 ? 1e-4 : U.value,
631
632
  fill: "transparent",
632
633
  stroke: "none"
633
634
  }, null, 40, jt))), 256)),
634
635
  w(t.$slots, "svg", { svg: P.value }, void 0, !0)
635
- ], 14, It)) : p("", !0),
636
+ ], 14, It)) : f("", !0),
636
637
  t.$slots.watermark ? (s(), i("div", Et, [
637
- w(t.$slots, "watermark", H(X({ isPrinting: h(he) || h(ye) })), void 0, !0)
638
- ])) : p("", !0),
639
- Y.value ? p("", !0) : (s(), V(xt, {
638
+ w(t.$slots, "watermark", q(H({ isPrinting: h(he) || h(pe) })), void 0, !0)
639
+ ])) : f("", !0),
640
+ X.value ? f("", !0) : (s(), V(xt, {
640
641
  key: 4,
641
642
  config: {
642
643
  type: "waffle",
@@ -661,7 +662,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
661
662
  item: b(({ legend: l }) => [
662
663
  k("div", {
663
664
  onClick: (a) => l.segregate(),
664
- style: q(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
665
+ style: Q(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
665
666
  }, [
666
667
  Le(S(l.name) + ": " + S(h(D)(
667
668
  e.value.style.chart.layout.labels.dataLabels.formatter,
@@ -675,7 +676,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
675
676
  }),
676
677
  { datapoint: l }
677
678
  )) + " ", 1),
678
- y.value.includes(l.uid) ? (s(), i("span", Ht, " ( - % ) ")) : (s(), i("span", qt, " (" + S(isNaN(l.value / _.value) ? "-" : h(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
679
+ p.value.includes(l.uid) ? (s(), i("span", Ht, " ( - % ) ")) : (s(), i("span", qt, " (" + S(isNaN(l.value / _.value) ? "-" : h(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
679
680
  ], 12, Wt)
680
681
  ]),
681
682
  _: 1
@@ -685,7 +686,7 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
685
686
  }, void 0, !0)
686
687
  ], 512),
687
688
  He(bt, {
688
- show: I.value.showTooltip && Z.value && y.value.length < g.dataset.length,
689
+ show: I.value.showTooltip && Z.value && p.value.length < g.dataset.length,
689
690
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
690
691
  color: e.value.style.chart.tooltip.color,
691
692
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -700,14 +701,14 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
700
701
  fontSize: e.value.style.chart.tooltip.fontSize
701
702
  }, {
702
703
  "tooltip-before": b(() => [
703
- w(t.$slots, "tooltip-before", H(X({ ...te.value })), void 0, !0)
704
+ w(t.$slots, "tooltip-before", q(H({ ...te.value })), void 0, !0)
704
705
  ]),
705
706
  "tooltip-after": b(() => [
706
- w(t.$slots, "tooltip-after", H(X({ ...te.value })), void 0, !0)
707
+ w(t.$slots, "tooltip-after", q(H({ ...te.value })), void 0, !0)
707
708
  ]),
708
709
  _: 3
709
710
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize"]),
710
- Y.value ? (s(), V(Ct, {
711
+ X.value ? (s(), V(Ct, {
711
712
  key: 5,
712
713
  hideDetails: "",
713
714
  config: {
@@ -726,10 +727,10 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
726
727
  content: b(() => [
727
728
  (s(), V(wt, {
728
729
  key: `table_${ie.value}`,
729
- colNames: Q.value.colNames,
730
- head: Q.value.head,
731
- body: Q.value.body,
732
- config: Q.value.config,
730
+ colNames: K.value.colNames,
731
+ head: K.value.head,
732
+ body: K.value.body,
733
+ config: K.value.config,
733
734
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
734
735
  onClose: o[2] || (o[2] = (l) => I.value.showTable = !1)
735
736
  }, {
@@ -746,10 +747,10 @@ const ze = (G) => (Ye("data-v-85fefa19"), G = G(), Je(), G), $t = ["id"], It = [
746
747
  }, 8, ["colNames", "head", "body", "config", "title"]))
747
748
  ]),
748
749
  _: 1
749
- }, 8, ["config"])) : p("", !0)
750
+ }, 8, ["config"])) : f("", !0)
750
751
  ], 14, $t));
751
752
  }
752
- }, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-85fefa19"]]);
753
+ }, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-a80f56d0"]]);
753
754
  export {
754
755
  nl as default
755
756
  };