vue-data-ui 2.3.90 → 2.3.92

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 (188) hide show
  1. package/README.md +3 -2
  2. package/dist/{Arrow-C_Fnn6al.js → Arrow-16rQhq4i.js} +1 -1
  3. package/dist/{Arrow-D1pymKl6.cjs → Arrow-CdJD01md.cjs} +1 -1
  4. package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-CAmYNoaf.js} +1 -1
  5. package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-dYWMubrH.cjs} +1 -1
  6. package/dist/{DataTable-Cmbf3abv.js → DataTable-BXnbua0J.js} +2 -2
  7. package/dist/{DataTable-cOEA6Z37.cjs → DataTable-oa0Srfuc.cjs} +1 -1
  8. package/dist/{Legend-CCq0mNRg.js → Legend-Cr1hulgT.js} +1 -1
  9. package/dist/{Legend-XqP6-7Ac.cjs → Legend-Dhm9_peB.cjs} +1 -1
  10. package/dist/PackageVersion-BVZfgDqm.js +10 -0
  11. package/dist/PackageVersion-BkgJVmj1.cjs +1 -0
  12. package/dist/{Shape-BNocET8E.js → Shape-D75m5xWM.js} +1 -1
  13. package/dist/{Shape-B51JGReT.cjs → Shape-hGbEoQOv.cjs} +1 -1
  14. package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-B7ya0m2Q.cjs} +1 -1
  15. package/dist/{Slicer-BKszZXjM.js → Slicer-Bx8AozB8.js} +2 -2
  16. package/dist/{Title-DlBwa3-X.js → Title-1Sw6EmHy.js} +1 -1
  17. package/dist/{Title-BaR4XyXa.cjs → Title-Bjrh7khe.cjs} +1 -1
  18. package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-CPATjuur.cjs} +1 -1
  19. package/dist/{Tooltip-w32n-8sY.js → Tooltip-EJf3VBPR.js} +1 -1
  20. package/dist/documentation/installation.md +1 -1
  21. package/dist/index-D09qCApg.cjs +4 -0
  22. package/dist/{index-DQl1TFXa.js → index-DhJby8wL.js} +8 -3
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +16 -0
  25. package/dist/types/vue-data-ui.d.ts +16 -0
  26. package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-Bwd7mK1Z.cjs} +1 -1
  27. package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-CrHvyupb.js} +1 -1
  28. package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Bwm8J3RQ.js} +1 -1
  29. package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-DdsPm5a4.cjs} +1 -1
  30. package/dist/{vue-data-ui-Byrb_Y3k.js → vue-data-ui-CLxne31S.js} +57 -57
  31. package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-ZitCqVgG.cjs} +1 -1
  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-DAv5cYGJ.cjs +19 -0
  35. package/dist/{vue-ui-3d-bar-CM_usP2U.js → vue-ui-3d-bar-Dg87_AAm.js} +148 -146
  36. package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-BAHX7KzB.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-Cn5Jbplg.js} +3 -3
  38. package/dist/vue-ui-age-pyramid-GzHwQzsH.cjs +1 -0
  39. package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-PlamQWqC.js} +83 -81
  40. package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-DGgQwl-K.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-Dd5KF_cy.js} +1 -1
  42. package/dist/vue-ui-candlestick-BIEB2J1w.cjs +2 -0
  43. package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-DTzwPhV5.js} +113 -111
  44. package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-HNTf5AYY.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-YEfvPESA.js} +4 -4
  46. package/dist/vue-ui-chestnut-DzjdAYsT.cjs +6 -0
  47. package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-PzMOM7mp.js} +161 -159
  48. package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-C5rsiCdn.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-DWea2yXV.js} +2 -2
  50. package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-BqXhoS8m.cjs} +1 -1
  51. package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CVespiTo.js} +2 -2
  52. package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-gNKgZqYU.js} +2 -2
  53. package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-wmDN7Vkf.cjs} +1 -1
  54. package/dist/{vue-ui-donut-evolution-CzBvVRKG.js → vue-ui-donut-evolution-Ch6HH0ja.js} +102 -100
  55. package/dist/vue-ui-donut-evolution-DhDxLZ1J.cjs +1 -0
  56. package/dist/vue-ui-donut-n37BZPxr.cjs +1 -0
  57. package/dist/{vue-ui-donut-B3yDJvZI.js → vue-ui-donut-sQunZI1L.js} +118 -116
  58. package/dist/vue-ui-dumbbell-B9Z_pjnG.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-lFlZX8Yi.js} +88 -86
  60. package/dist/vue-ui-flow-BaFpUJg-.cjs +1 -0
  61. package/dist/{vue-ui-flow-DAOKURA6.js → vue-ui-flow-CSIOC-JR.js} +65 -63
  62. package/dist/vue-ui-galaxy-BIR5GxIc.cjs +1 -0
  63. package/dist/{vue-ui-galaxy-B86BK1JM.js → vue-ui-galaxy-DL2mnel_.js} +82 -80
  64. package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BMq7KT3t.js} +56 -54
  65. package/dist/vue-ui-gauge-r_qvpwE7.cjs +1 -0
  66. package/dist/vue-ui-gizmo-DBas_Sw_.cjs +1 -0
  67. package/dist/{vue-ui-gizmo-CFIBlG4V.js → vue-ui-gizmo-Dj7zvNI1.js} +32 -30
  68. package/dist/{vue-ui-heatmap-ZkmD9EAg.js → vue-ui-heatmap-pqBYIrxm.js} +99 -97
  69. package/dist/vue-ui-heatmap-qPgEhAzc.cjs +1 -0
  70. package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-Cmo9J7wp.cjs} +1 -1
  71. package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-ZPBinMiF.js} +3 -3
  72. package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-Ce-jbgMT.cjs} +1 -1
  73. package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-DOTWhLi9.js} +2 -2
  74. package/dist/vue-ui-molecule-D429iwPP.cjs +1 -0
  75. package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-RDpgNrHQ.js} +77 -75
  76. package/dist/{vue-ui-mood-radar-J_dI9m_i.js → vue-ui-mood-radar-CD5L8WCU.js} +76 -74
  77. package/dist/vue-ui-mood-radar-CdLJxrkT.cjs +1 -0
  78. package/dist/{vue-ui-nested-donuts-CtqU4xxu.js → vue-ui-nested-donuts-A-tid5cQ.js} +112 -110
  79. package/dist/vue-ui-nested-donuts-DyM3uc7x.cjs +17 -0
  80. package/dist/vue-ui-onion-BKql8oal.cjs +5 -0
  81. package/dist/{vue-ui-onion-BMo0Ye54.js → vue-ui-onion-Cap01Ehu.js} +82 -80
  82. package/dist/vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs +8 -0
  83. package/dist/{vue-ui-parallel-coordinate-plot-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-CcDKe4L0.js} +91 -89
  84. package/dist/{vue-ui-quadrant-BrRasVaj.js → vue-ui-quadrant-BDEfAeyJ.js} +141 -139
  85. package/dist/vue-ui-quadrant-CZzdpeQ2.cjs +1 -0
  86. package/dist/{vue-ui-quick-chart-uH33UIjX.js → vue-ui-quick-chart-DlAUYg5u.js} +166 -164
  87. package/dist/vue-ui-quick-chart-DpGYUyhq.cjs +15 -0
  88. package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CbTln7gs.js} +89 -87
  89. package/dist/vue-ui-radar-oBeaHlpT.cjs +1 -0
  90. package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-BU7-F3_e.cjs} +1 -1
  91. package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-BkDncqow.js} +2 -2
  92. package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-C5B6UNGd.js} +54 -52
  93. package/dist/vue-ui-relation-circle-IWiJWgcB.cjs +1 -0
  94. package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-BujVUJ90.js} +97 -93
  95. package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-Df2cRgD8.cjs} +2 -2
  96. package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-D6yqZJ7s.js} +132 -130
  97. package/dist/vue-ui-scatter-jFTeM2hW.cjs +1 -0
  98. package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-CHAySwpv.js} +1 -1
  99. package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-CVu8IM33.cjs} +1 -1
  100. package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-ASX40MGk.js} +423 -388
  101. package/dist/vue-ui-skeleton-CAlTn_Cg.cjs +41 -0
  102. package/dist/{vue-ui-smiley-2EoxEmXW.js → vue-ui-smiley-DGVzhza2.js} +2 -2
  103. package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-dwCqhB0r.cjs} +1 -1
  104. package/dist/vue-ui-spark-trend-A1EHFK_r.cjs +1 -0
  105. package/dist/{vue-ui-spark-trend-DjNPMOkN.js → vue-ui-spark-trend-B7XhDvTj.js} +42 -40
  106. package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-BuNcvi66.js} +53 -51
  107. package/dist/vue-ui-sparkbar-CwNjHOjD.cjs +1 -0
  108. package/dist/vue-ui-sparkgauge-ISu154lS.cjs +1 -0
  109. package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-JY2kB9WX.js} +31 -29
  110. package/dist/vue-ui-sparkhistogram-C8zyC-ii.cjs +1 -0
  111. package/dist/{vue-ui-sparkhistogram-DVXxA6ji.js → vue-ui-sparkhistogram-DyEPWxkP.js} +69 -67
  112. package/dist/vue-ui-sparkline-DL3Thtc4.cjs +1 -0
  113. package/dist/{vue-ui-sparkline-CH89kcaa.js → vue-ui-sparkline-DYC3sdvQ.js} +65 -63
  114. package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-7TmtP3WR.js} +46 -44
  115. package/dist/vue-ui-sparkstackbar-ChIM9bn2.cjs +1 -0
  116. package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-CP5C6Gb_.js} +128 -126
  117. package/dist/vue-ui-stackbar-DrtiSaNc.cjs +6 -0
  118. package/dist/vue-ui-strip-plot-BMYMIHGu.cjs +1 -0
  119. package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-DJQCq_KE.js} +78 -76
  120. package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-D6hvgMif.cjs} +1 -1
  121. package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-IJi0xaVg.js} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-BZNKXZNs.cjs} +1 -1
  123. package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-Ls8_xq0D.js} +4 -4
  124. package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BQFK30H1.cjs} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeuvdssX.js} +5 -5
  126. package/dist/vue-ui-thermometer-DKm8SXlE.cjs +1 -0
  127. package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-DPWIvG92.js} +80 -78
  128. package/dist/{vue-ui-timer-B8jW8M60.js → vue-ui-timer-CEzDvZf7.js} +62 -60
  129. package/dist/vue-ui-timer-n6lv7oTx.cjs +64 -0
  130. package/dist/vue-ui-tiremarks-B33mHXZN.cjs +1 -0
  131. package/dist/{vue-ui-tiremarks-riEfve5q.js → vue-ui-tiremarks-BUGoY22W.js} +51 -49
  132. package/dist/vue-ui-treemap-DPxBZUUr.cjs +1 -0
  133. package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-DmOYjJ_F.js} +93 -91
  134. package/dist/vue-ui-vertical-bar-BJMYX8t4.cjs +4 -0
  135. package/dist/{vue-ui-vertical-bar-CxRBvHZy.js → vue-ui-vertical-bar-BpVKdSY5.js} +110 -108
  136. package/dist/vue-ui-waffle-DGcueccy.cjs +1 -0
  137. package/dist/{vue-ui-waffle-B8G4i5WH.js → vue-ui-waffle-ULg6SwPx.js} +72 -70
  138. package/dist/vue-ui-wheel-CWKq-CFW.cjs +1 -0
  139. package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-DlmgZd-_.js} +43 -41
  140. package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +1 -0
  141. package/dist/vue-ui-word-cloud-DWyboczt.js +574 -0
  142. package/dist/vue-ui-xy-Cz81fw_E.cjs +3 -0
  143. package/dist/{vue-ui-xy-iUQyB_PL.js → vue-ui-xy-V13Ns1gv.js} +507 -504
  144. package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-B9cRe5gT.js} +10 -10
  145. package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-GiuHOyj5.cjs} +1 -1
  146. package/package.json +1 -1
  147. package/dist/index-B8EMsnjU.cjs +0 -4
  148. package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
  149. package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
  150. package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
  151. package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
  152. package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
  153. package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
  154. package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
  155. package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
  156. package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
  157. package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
  158. package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
  159. package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
  160. package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
  161. package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
  162. package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
  163. package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
  164. package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
  165. package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
  166. package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
  167. package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
  168. package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
  169. package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
  170. package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
  171. package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
  172. package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
  173. package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
  174. package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
  175. package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
  176. package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
  177. package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
  178. package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
  179. package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
  180. package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
  181. package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
  182. package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
  183. package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
  184. package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
  185. package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
  186. package/dist/vue-ui-word-cloud-dMBTVGVk.js +0 -513
  187. package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
  188. package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D09qCApg.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),_e=require("./Title-Bjrh7khe.cjs"),ce=require("./usePrinter-DdsPm5a4.cjs"),Se=require("./Tooltip-CPATjuur.cjs"),Ne=require("./DataTable-oa0Srfuc.cjs"),Le=require("./Legend-Dhm9_peB.cjs"),$e=require("./vue-ui-skeleton-CAlTn_Cg.cjs"),Te=require("./vue-ui-accordion-BAHX7KzB.cjs"),ve=require("./useNestedProp-Bwd7mK1Z.cjs"),Pe=require("./PackageVersion-BkgJVmj1.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=S=>(e.pushScopeId("data-v-a0574c0d"),S=S(),e.popScopeId(),S),Ie=["id"],Ee=["xmlns","viewBox"],ze=["id"],Fe=["stop-color"],De=["stop-color"],Oe=["id"],Ae=de(()=>e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2},null,-1)),qe=de(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Me=[Ae,qe],Re=["x","y","height","width"],Ue=["height","width"],je=["rx","x","y","height","width","stroke","stroke-width","filter"],Ge=["rx","x","y","height","width","fill","stroke","stroke-width","filter"],We=["x","y","height","width","filter"],He={key:0},Ye={key:1},Xe={key:2},Je={key:3},Ke=["onMouseover","x","y","height","width"],Qe={key:3,class:"vue-data-ui-watermark"},Ze=["onClick"],et={key:0},tt={key:1},lt=["innerHTML"],at={__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(),V=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),M=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 I=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});I.value=new ResizeObserver(l),I.value.observe(N.value.parentNode)}}e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{I.value&&I.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,q)=>h+q,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,q)=>h+q,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,M.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&&V.value?(e.openBlock(),e.createBlock(ce.UserOptions,{ref_key:"details",ref:ye,key:`user_options_${M.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),V.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.createVNode(Pe._sfc_main),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,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,De)],8,ze))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${b.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},Me,8,Oe)]),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,Re))),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,Ue)):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,je))),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,Ge))),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",He,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",Ye,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",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),!t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",Je,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,We)):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,Ke))),256)),e.renderSlot(l.$slots,"svg",{svg:k.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Qe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),V.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",tt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",et," ("+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,Ze)]),_: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"]),V.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,lt)]),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))}},ot=Ve._export_sfc(at,[["__scopeId","data-v-a0574c0d"]]);exports.default=ot;
@@ -1,28 +1,29 @@
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-DQl1TFXa.js";
1
+ import { computed as d, ref as c, watch as Te, onMounted as We, onBeforeUnmount as qe, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as Q, createBlock as V, createCommentVNode as f, unref as h, createSlots as He, withCtx as b, renderSlot as w, normalizeProps as q, guardReactiveProps as H, createVNode as Le, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Pe, 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-DhJby8wL.js";
3
3
  import { t as pt, u as yt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as ft } from "./Title-DlBwa3-X.js";
5
- import { u as gt, U as mt } from "./usePrinter-DgKGVvJC.js";
6
- import { _ as bt } from "./Tooltip-w32n-8sY.js";
7
- import { D as wt } from "./DataTable-Cmbf3abv.js";
8
- import { L as kt } from "./Legend-CCq0mNRg.js";
9
- import xt from "./vue-ui-skeleton-BVJGmYjj.js";
10
- import Ct from "./vue-ui-accordion-CroZrm7T.js";
11
- import { u as Pe } from "./useNestedProp-lmeFt-ev.js";
12
- import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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", {
4
+ import { _ as ft } from "./Title-1Sw6EmHy.js";
5
+ import { u as gt, U as mt } from "./usePrinter-Bwm8J3RQ.js";
6
+ import { _ as bt } from "./Tooltip-EJf3VBPR.js";
7
+ import { D as wt } from "./DataTable-BXnbua0J.js";
8
+ import { L as kt } from "./Legend-Cr1hulgT.js";
9
+ import xt from "./vue-ui-skeleton-ASX40MGk.js";
10
+ import Ct from "./vue-ui-accordion-Cn5Jbplg.js";
11
+ import { u as ze } from "./useNestedProp-CrHvyupb.js";
12
+ import { _ as _t } from "./PackageVersion-BVZfgDqm.js";
13
+ import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Fe = (G) => (Ye("data-v-a0574c0d"), G = G(), Je(), G), It = ["id"], Tt = ["xmlns", "viewBox"], St = ["id"], Lt = ["stop-color"], Pt = ["stop-color"], zt = ["id"], Ft = /* @__PURE__ */ Fe(() => /* @__PURE__ */ k("feGaussianBlur", {
14
15
  in: "SourceGraphic",
15
16
  stdDeviation: 2
16
- }, null, -1)), Ft = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feColorMatrix", {
17
+ }, null, -1)), Nt = /* @__PURE__ */ Fe(() => /* @__PURE__ */ k("feColorMatrix", {
17
18
  type: "saturate",
18
19
  values: "0"
19
- }, null, -1)), Nt = [
20
- zt,
21
- Ft
22
- ], Bt = ["x", "y", "height", "width"], Ot = ["height", "width"], At = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Vt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Mt = ["x", "y", "height", "width", "filter"], Dt = { key: 0 }, Gt = { key: 1 }, Rt = { key: 2 }, Ut = { key: 3 }, jt = ["onMouseover", "x", "y", "height", "width"], Et = {
20
+ }, null, -1)), Bt = [
21
+ Ft,
22
+ Nt
23
+ ], Ot = ["x", "y", "height", "width"], At = ["height", "width"], Vt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Mt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Dt = ["x", "y", "height", "width", "filter"], Gt = { key: 0 }, Rt = { key: 1 }, Ut = { key: 2 }, jt = { key: 3 }, Et = ["onMouseover", "x", "y", "height", "width"], Wt = {
23
24
  key: 3,
24
25
  class: "vue-data-ui-watermark"
25
- }, Wt = ["onClick"], qt = { key: 0 }, Ht = { key: 1 }, Xt = ["innerHTML"], Yt = {
26
+ }, qt = ["onClick"], Ht = { key: 0 }, Xt = { key: 1 }, Yt = ["innerHTML"], Jt = {
26
27
  __name: "vue-ui-waffle",
27
28
  props: {
28
29
  config: {
@@ -39,18 +40,18 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
39
40
  }
40
41
  },
41
42
  emits: ["selectLegend"],
42
- setup(G, { expose: Fe, emit: Ne }) {
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({
43
+ setup(G, { expose: Ne, emit: Be }) {
44
+ const g = G, { vue_ui_waffle: Oe } = Ke(), X = d(() => !!g.dataset && g.dataset.length), L = c(Qe()), Ae = 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
45
  get: () => ve(),
45
46
  set: (t) => t
46
47
  });
47
48
  function ve() {
48
- const t = Pe({
49
+ const t = ze({
49
50
  userConfig: g.config,
50
- defaultConfig: Be
51
+ defaultConfig: Oe
51
52
  });
52
53
  return t.theme ? {
53
- ...Pe({
54
+ ...ze({
54
55
  userConfig: Ze.vue_ui_waffle[t.theme] || g.config,
55
56
  defaultConfig: t
56
57
  }),
@@ -89,9 +90,9 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
89
90
  Y.value = new ResizeObserver(t), Y.value.observe(R.value.parentNode);
90
91
  }
91
92
  }
92
- Ee(() => {
93
+ We(() => {
93
94
  de();
94
- }), We(() => {
95
+ }), qe(() => {
95
96
  Y.value && Y.value.disconnect();
96
97
  });
97
98
  const { isPrinting: he, isImaging: pe, generatePdf: ye, generateImage: fe } = gt({
@@ -130,10 +131,10 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
130
131
  Te(() => g.dataset, (t) => {
131
132
  v.value = be();
132
133
  }, { deep: !0 });
133
- const Ae = d(() => {
134
+ const Ve = d(() => {
134
135
  const t = v.value.filter((o, l) => !p.value.includes(o.uid)).map((o, l) => (o.values || []).reduce((a, u) => a + u, 0));
135
136
  return me(t);
136
- }), Ve = d(() => {
137
+ }), Me = d(() => {
137
138
  const t = v.value.map((o, l) => (o.values || []).reduce((a, u) => a + u));
138
139
  return me(t);
139
140
  }), j = d(() => (g.dataset.forEach((t, o) => {
@@ -150,25 +151,25 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
150
151
  color: t.color,
151
152
  value: (t.values || []).reduce((l, a) => l + a, 0),
152
153
  absoluteValues: t.values || [],
153
- proportion: Ae.value[o]
154
- })))), Me = d(() => v.value.map((t, o) => ({
154
+ proportion: Ve.value[o]
155
+ })))), De = d(() => v.value.map((t, o) => ({
155
156
  absoluteIndex: t.absoluteIndex,
156
157
  uid: t.uid,
157
158
  name: t.name,
158
159
  color: t.color,
159
160
  value: (t.values || []).reduce((l, a) => l + a, 0),
160
161
  absoluteValues: t.values || [],
161
- proportion: Ve.value[o]
162
+ proportion: Me.value[o]
162
163
  })));
163
- function De() {
164
- return Me.value.map((t) => ({
164
+ function Ge() {
165
+ return De.value.map((t) => ({
165
166
  name: t.name,
166
167
  color: t.color,
167
168
  value: t.value,
168
169
  proportion: t.proportion
169
170
  }));
170
171
  }
171
- const Ge = d(() => {
172
+ const Re = d(() => {
172
173
  let t = 0;
173
174
  return j.value.map((o, l) => {
174
175
  const a = t, u = a + o.proportion, n = [];
@@ -180,7 +181,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
180
181
  rects: n
181
182
  };
182
183
  });
183
- }), r = d(() => Ge.value.flatMap((t, o) => t.rects.map((l, a) => ({
184
+ }), r = d(() => Re.value.flatMap((t, o) => t.rects.map((l, a) => ({
184
185
  isFirst: a === 0,
185
186
  isLongEnough: l.length > 2,
186
187
  name: t.name,
@@ -237,7 +238,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
237
238
  };
238
239
  u();
239
240
  }
240
- Ne("selectLegend", j.value.map((u) => ({
241
+ Be("selectLegend", j.value.map((u) => ({
241
242
  name: u.name,
242
243
  color: u.color,
243
244
  value: u.value,
@@ -256,7 +257,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
256
257
  opacity: p.value.includes(t.uid) ? 0.5 : 1,
257
258
  segregate: () => Ce(t.uid),
258
259
  isSegregated: p.value.includes(t.uid)
259
- }))), Re = d(() => ({
260
+ }))), Ue = d(() => ({
260
261
  cy: "waffle-div-legend",
261
262
  backgroundColor: e.value.style.chart.legend.backgroundColor,
262
263
  color: e.value.style.chart.legend.color,
@@ -264,7 +265,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
264
265
  paddingBottom: 12,
265
266
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
266
267
  })), _ = d(() => j.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = c(null);
267
- function Ue(t) {
268
+ function je(t) {
268
269
  if (p.value.length === g.dataset.length) return;
269
270
  const o = r.value[t];
270
271
  te.value = {
@@ -390,7 +391,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
390
391
  colNames: a
391
392
  };
392
393
  }), W = c(!1);
393
- function je(t) {
394
+ function Ee(t) {
394
395
  W.value = t, ue.value += 1;
395
396
  }
396
397
  function $e() {
@@ -399,8 +400,8 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
399
400
  function Ie() {
400
401
  I.value.showTooltip = !I.value.showTooltip;
401
402
  }
402
- return Fe({
403
- getData: De,
403
+ return Ne({
404
+ getData: Ge,
404
405
  generatePdf: ye,
405
406
  generateCsv: _e,
406
407
  generateImage: fe,
@@ -435,7 +436,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
435
436
  ], 512)) : f("", !0),
436
437
  e.value.userOptions.show && X.value ? (s(), V(mt, {
437
438
  ref_key: "details",
438
- ref: Oe,
439
+ ref: Ae,
439
440
  key: `user_options_${ue.value}`,
440
441
  backgroundColor: e.value.style.chart.backgroundColor,
441
442
  color: e.value.style.chart.color,
@@ -453,13 +454,13 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
453
454
  titles: { ...e.value.userOptions.buttonTitles },
454
455
  chartElement: R.value,
455
456
  position: e.value.userOptions.position,
456
- onToggleFullscreen: je,
457
+ onToggleFullscreen: Ee,
457
458
  onGeneratePdf: h(ye),
458
459
  onGenerateCsv: _e,
459
460
  onGenerateImage: h(fe),
460
461
  onToggleTable: $e,
461
462
  onToggleTooltip: Ie
462
- }, qe({ _: 2 }, [
463
+ }, He({ _: 2 }, [
463
464
  t.$slots.optionTooltip ? {
464
465
  name: "optionTooltip",
465
466
  fn: b(() => [
@@ -510,6 +511,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
510
511
  viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
511
512
  style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
512
513
  }, [
514
+ Le(_t),
513
515
  k("defs", null, [
514
516
  (s(!0), i(T, null, M(r.value, (l, a) => (s(), i("radialGradient", {
515
517
  cx: "50%",
@@ -522,12 +524,12 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
522
524
  k("stop", {
523
525
  offset: "0%",
524
526
  "stop-color": h(ut)(h(st)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
525
- }, null, 8, St),
527
+ }, null, 8, Lt),
526
528
  k("stop", {
527
529
  offset: "100%",
528
530
  "stop-color": l.color
529
- }, null, 8, Lt)
530
- ], 8, Tt))), 256))
531
+ }, null, 8, Pt)
532
+ ], 8, St))), 256))
531
533
  ]),
532
534
  k("defs", null, [
533
535
  k("filter", {
@@ -536,7 +538,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
536
538
  y: "-50%",
537
539
  width: "200%",
538
540
  height: "200%"
539
- }, Nt, 8, Pt)
541
+ }, Bt, 8, zt)
540
542
  ]),
541
543
  e.value.useCustomCells && r.value.length ? (s(!0), i(T, { key: 0 }, M(E.value, (l, a) => (s(), i("foreignObject", {
542
544
  x: l.x,
@@ -546,7 +548,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
546
548
  class: "vue-ui-waffle-custom-cell-foreignObject"
547
549
  }, [
548
550
  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),
551
+ ], 8, Ot))), 256)) : f("", !0),
550
552
  !r.value.length && !e.value.useCustomCells ? (s(), i("rect", {
551
553
  key: 1,
552
554
  x: 12,
@@ -556,7 +558,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
556
558
  rx: 3,
557
559
  fill: "none",
558
560
  stroke: "black"
559
- }, null, 8, Ot)) : r.value.length && !e.value.useCustomCells ? (s(), i(T, { key: 2 }, [
561
+ }, null, 8, At)) : r.value.length && !e.value.useCustomCells ? (s(), i(T, { key: 2 }, [
560
562
  (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
561
563
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
562
564
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -567,7 +569,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
567
569
  stroke: e.value.style.chart.layout.rect.stroke,
568
570
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
569
571
  filter: le(r.value[a].serieIndex)
570
- }, null, 8, At))), 256)),
572
+ }, null, 8, Vt))), 256)),
571
573
  (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
572
574
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
573
575
  x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -578,7 +580,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
578
580
  stroke: e.value.style.chart.layout.rect.stroke,
579
581
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
580
582
  filter: le(r.value[a].serieIndex)
581
- }, null, 8, Vt))), 256))
583
+ }, null, 8, Mt))), 256))
582
584
  ], 64)) : f("", !0),
583
585
  (s(!0), i(T, null, M(E.value, (l, a) => (s(), i(T, null, [
584
586
  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", {
@@ -593,9 +595,9 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
593
595
  class: "vue-ui-waffle-caption",
594
596
  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`)
595
597
  }, [
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),
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
+ e.value.style.chart.layout.labels.captions.showSerieName ? (s(), i("span", Gt, 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),
599
+ e.value.style.chart.layout.labels.captions.showPercentage ? (s(), i("span", Rt, S(h(x)({ v: r.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
600
+ e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Ut, " (" + S(h(D)(
599
601
  e.value.style.chart.layout.labels.dataLabels.formatter,
600
602
  r.value[a].value,
601
603
  h(x)({
@@ -606,7 +608,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
606
608
  }),
607
609
  { datapoint: r.value[a], position: l }
608
610
  )) + ") ", 1)) : f("", !0),
609
- !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Ut, S(h(D)(
611
+ !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", jt, S(h(D)(
610
612
  e.value.style.chart.layout.labels.dataLabels.formatter,
611
613
  r.value[a].value,
612
614
  h(x)({
@@ -618,10 +620,10 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
618
620
  { datapoint: r.value[a], position: l }
619
621
  )), 1)) : f("", !0)
620
622
  ], 4)
621
- ], 8, Mt)) : f("", !0)
623
+ ], 8, Dt)) : f("", !0)
622
624
  ], 64))), 256)),
623
625
  (s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
624
- onMouseover: (u) => Ue(a),
626
+ onMouseover: (u) => je(a),
625
627
  onMouseleave: o[0] || (o[0] = (u) => {
626
628
  Z.value = !1, O.value = null;
627
629
  }),
@@ -631,10 +633,10 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
631
633
  width: U.value <= 0 ? 1e-4 : U.value,
632
634
  fill: "transparent",
633
635
  stroke: "none"
634
- }, null, 40, jt))), 256)),
636
+ }, null, 40, Et))), 256)),
635
637
  w(t.$slots, "svg", { svg: P.value }, void 0, !0)
636
- ], 14, It)) : f("", !0),
637
- t.$slots.watermark ? (s(), i("div", Et, [
638
+ ], 14, Tt)) : f("", !0),
639
+ t.$slots.watermark ? (s(), i("div", Wt, [
638
640
  w(t.$slots, "watermark", q(H({ isPrinting: h(he) || h(pe) })), void 0, !0)
639
641
  ])) : f("", !0),
640
642
  X.value ? f("", !0) : (s(), V(xt, {
@@ -656,7 +658,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
656
658
  e.value.style.chart.legend.show ? (s(), V(kt, {
657
659
  key: `legend_${ce.value}`,
658
660
  legendSet: A.value,
659
- config: Re.value,
661
+ config: Ue.value,
660
662
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => Ce(l.uid))
661
663
  }, {
662
664
  item: b(({ legend: l }) => [
@@ -664,7 +666,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
664
666
  onClick: (a) => l.segregate(),
665
667
  style: Q(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
666
668
  }, [
667
- Le(S(l.name) + ": " + S(h(D)(
669
+ Pe(S(l.name) + ": " + S(h(D)(
668
670
  e.value.style.chart.layout.labels.dataLabels.formatter,
669
671
  l.value,
670
672
  h(x)({
@@ -676,8 +678,8 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
676
678
  }),
677
679
  { datapoint: l }
678
680
  )) + " ", 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))
680
- ], 12, Wt)
681
+ p.value.includes(l.uid) ? (s(), i("span", Xt, " ( - % ) ")) : (s(), i("span", Ht, " (" + S(isNaN(l.value / _.value) ? "-" : h(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
682
+ ], 12, qt)
681
683
  ]),
682
684
  _: 1
683
685
  }, 8, ["legendSet", "config"])) : w(t.$slots, "legend", {
@@ -685,7 +687,7 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
685
687
  legend: A.value
686
688
  }, void 0, !0)
687
689
  ], 512),
688
- He(bt, {
690
+ Le(bt, {
689
691
  show: I.value.showTooltip && Z.value && p.value.length < g.dataset.length,
690
692
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
691
693
  color: e.value.style.chart.tooltip.color,
@@ -738,19 +740,19 @@ const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = [
738
740
  k("div", {
739
741
  innerHTML: l,
740
742
  style: { display: "flex", "align-items": "center" }
741
- }, null, 8, Xt)
743
+ }, null, 8, Yt)
742
744
  ]),
743
745
  td: b(({ td: l }) => [
744
- Le(S(l.name || l), 1)
746
+ Pe(S(l.name || l), 1)
745
747
  ]),
746
748
  _: 1
747
749
  }, 8, ["colNames", "head", "body", "config", "title"]))
748
750
  ]),
749
751
  _: 1
750
752
  }, 8, ["config"])) : f("", !0)
751
- ], 14, $t));
753
+ ], 14, It));
752
754
  }
753
- }, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-a80f56d0"]]);
755
+ }, cl = /* @__PURE__ */ $t(Jt, [["__scopeId", "data-v-a0574c0d"]]);
754
756
  export {
755
- nl as default
757
+ cl as default
756
758
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D09qCApg.cjs"),U=require("./Title-Bjrh7khe.cjs"),I=require("./usePrinter-DdsPm5a4.cjs"),S=require("./useResponsive-B3TrDDIG.cjs"),V=require("./vue-ui-skeleton-CAlTn_Cg.cjs"),z=require("./useNestedProp-Bwd7mK1Z.cjs"),G=require("./PackageVersion-BkgJVmj1.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],H=["xmlns","viewBox"],D=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],Y=["cx","cy","r","stroke","stroke-width"],W=["x","y","font-size","fill","font-weight"],J={key:3,class:"vue-data-ui-watermark"},K={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(F,{expose:$}){const u=F,{vue_ui_wheel:O}=r.useConfig(),f=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),y=e.ref(r.createUid()),M=e.ref(null),p=e.ref(0),h=e.ref(null),g=e.ref(null),k=e.ref(0),t=e.computed({get:()=>w(),set:l=>l});function w(){const l=z.useNestedProp({userConfig:u.config,defaultConfig:O});return l.theme?{...z.useNestedProp({userConfig:r.themes.vue_ui_wheel[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=w(),P(),k.value+=1},{deep:!0});const{isPrinting:C,isImaging:b,generatePdf:_,generateImage:x}=I.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),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 B(l,i=1){return{x:s.value.centerX+s.value.radius*Math.cos(29.85+l*Math.PI/180)*i,y:s.value.centerY+s.value.radius*Math.sin(29.85+l*Math.PI/180)*i}}const o=e.ref(t.value.style.chart.animation.use?0:u.dataset.percentage||0);e.watch(()=>u.dataset,l=>{t.value.style.chart.animation.use?N(l.percentage):o.value=l.percentage||0},{deep:!0});const v=e.ref(null);e.onMounted(()=>{P()});function P(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),N(u.dataset.percentage||0),t.value.responsive){const l=S.throttle(()=>{const{width:i,height:a}=S.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null});n.value.width=i,n.value.height=a,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(i,a)});v.value=new ResizeObserver(l),v.value.observe(h.value.parentNode)}}e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});function N(l){let i=t.value.style.chart.animation.speed;const a=Math.abs(l-o.value)/(i*120);function c(){o.value<l?o.value=Math.min(o.value+a,l):o.value>l&&(o.value=Math.max(o.value-a,l)),o.value!==l&&requestAnimationFrame(c)}c()}const E=e.computed(()=>{const l=[];for(let a=0;a<100;a+=1){const c=o.value>a?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:A,y:T}=B(n.value.size/100*a),{x:L,y:R}=B(n.value.size/100*a,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:A,y1:T,x2:L,y2:R,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(c,a/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c})}return l}),d=e.ref(!1);function q(l){d.value=l,p.value+=1}return $({generatePdf:_,generateImage:x}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,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.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(U._sfc_main,{key:`title_${k.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&&f.value?(e.openBlock(),e.createBlock(I.UserOptions,{ref_key:"details",ref:M,key:`user_options_${p.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(C),isImaging:e.unref(b),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:d.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:q,onGeneratePdf:e.unref(_),onGenerateImage:e.unref(x)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:c})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":d.value,"vue-data-ui-fulscreen--off":!d.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(G._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(a,c)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.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&&c<=o.value})},null,10,D))),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,Y)):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,o.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)(o.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(o.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,W)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,H)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",J,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(C)||e.unref(b)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:4,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,j))}},Q=X._export_sfc(K,[["__scopeId","data-v-b8e98e43"]]);exports.default=Q;