vue-data-ui 2.3.69 → 2.3.71

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 (143) hide show
  1. package/dist/{Arrow-Bs2WRJSk.js → Arrow-KrMJ-mLA.js} +1 -1
  2. package/dist/{Arrow-CDLqeekX.cjs → Arrow-Oo-m4d4_.cjs} +1 -1
  3. package/dist/{BaseIcon-D93rtrSm.js → BaseIcon-Dn--aRqh.js} +1 -1
  4. package/dist/{BaseIcon-HycAYj53.cjs → BaseIcon-r6sTvN4e.cjs} +1 -1
  5. package/dist/{DataTable-Bwco5wF0.js → DataTable-BwSXMffc.js} +2 -2
  6. package/dist/{DataTable-DkoeHXI5.cjs → DataTable-jPEnygiD.cjs} +1 -1
  7. package/dist/{Legend-Cpk8DCWi.js → Legend-BdmTE8wl.js} +1 -1
  8. package/dist/{Legend-CTlJpdAi.cjs → Legend-DYpbZAKy.cjs} +1 -1
  9. package/dist/{Shape-CbiBbFNX.cjs → Shape-DwABde7t.cjs} +1 -1
  10. package/dist/{Shape-Bfeh9GpX.js → Shape-ttH7p_HL.js} +1 -1
  11. package/dist/{Slicer-DA9QuPiC.cjs → Slicer-C2YiwjYs.cjs} +1 -1
  12. package/dist/{Slicer-DpuUwHC7.js → Slicer-jPgByZe4.js} +2 -2
  13. package/dist/{Title-CzxknLI3.js → Title-CJpYIMsB.js} +1 -1
  14. package/dist/{Title-B6PVw0aK.cjs → Title-NxuZWg-H.cjs} +1 -1
  15. package/dist/{Tooltip-DYVjAqo-.js → Tooltip-CPnJc4M4.js} +1 -1
  16. package/dist/{Tooltip-Ci47DnuY.cjs → Tooltip-D5XlXHnd.cjs} +1 -1
  17. package/dist/{index-DDwHKEGb.cjs → index-DC98WFA9.cjs} +1 -1
  18. package/dist/{index-b22AFna7.js → index-tBV7ojX4.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-6FL791Qt.js → useNestedProp-DLR5FOhw.js} +1 -1
  21. package/dist/{useNestedProp-BbpR9SM4.cjs → useNestedProp-DLm4WQqO.cjs} +1 -1
  22. package/dist/{usePrinter-C_wOlUXy.js → usePrinter-BiDlcasQ.js} +1 -1
  23. package/dist/{usePrinter-CRKoRqbE.cjs → usePrinter-DOwo3slV.cjs} +1 -1
  24. package/dist/{vue-data-ui-B4ldblBa.cjs → vue-data-ui-CO5NlA8S.cjs} +1 -1
  25. package/dist/{vue-data-ui-XthQYdCU.js → vue-data-ui-YqFsylnG.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DbYTVw48.js → vue-ui-3d-bar-B7UPDxaJ.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-ojEQSNLk.cjs → vue-ui-3d-bar-C6QkJ9TS.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-H9MtAuZL.js → vue-ui-accordion-3GMC-9lb.js} +3 -3
  31. package/dist/{vue-ui-accordion-BBDPcl3d.cjs → vue-ui-accordion-Bw-stCgX.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-DQ3QiyQZ.js → vue-ui-age-pyramid-EI3_8UiR.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-M1J2GKpa.cjs → vue-ui-age-pyramid-d6zQr_wc.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-D5DX94Dw.js → vue-ui-annotator-BrDoAda_.js} +1 -1
  35. package/dist/{vue-ui-annotator-m8EO_6mf.cjs → vue-ui-annotator-D5woo_-l.cjs} +1 -1
  36. package/dist/{vue-ui-candlestick-B48E6EaX.js → vue-ui-candlestick-DF6Jhe1t.js} +9 -9
  37. package/dist/{vue-ui-candlestick-CocQAT0K.cjs → vue-ui-candlestick-DXTTu6k1.cjs} +1 -1
  38. package/dist/{vue-ui-carousel-table-CBF5ycha.cjs → vue-ui-carousel-table-CMTquEa-.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BlVhpRo3.js → vue-ui-carousel-table-DNiD6oCm.js} +4 -4
  40. package/dist/{vue-ui-chestnut-TU1mnoNH.cjs → vue-ui-chestnut-CiYsTJB1.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-BikqvSP7.js → vue-ui-chestnut-DF9jomRx.js} +6 -6
  42. package/dist/{vue-ui-cursor-3jMf_DA8.js → vue-ui-cursor-BH1rYbdI.js} +2 -2
  43. package/dist/{vue-ui-cursor-36hWYcLz.cjs → vue-ui-cursor-BghIGRgY.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-r8hBDI5a.cjs → vue-ui-dashboard-BD6fnLMr.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BnmrvYTu.js → vue-ui-dashboard-PDxIaYy1.js} +2 -2
  46. package/dist/{vue-ui-digits-Dudhgq6k.cjs → vue-ui-digits-BLChn-JX.cjs} +1 -1
  47. package/dist/{vue-ui-digits-DLWnySuv.js → vue-ui-digits-PP7pTKNs.js} +2 -2
  48. package/dist/{vue-ui-donut-BSMPuZag.cjs → vue-ui-donut-BR1c-VMi.cjs} +1 -1
  49. package/dist/{vue-ui-donut-BIQqKYci.js → vue-ui-donut-Cfbb9d7V.js} +9 -9
  50. package/dist/{vue-ui-donut-evolution-Cpmro_CO.js → vue-ui-donut-evolution-BnuxOElp.js} +9 -9
  51. package/dist/{vue-ui-donut-evolution-BEkQBKpm.cjs → vue-ui-donut-evolution-fmJj_9qP.cjs} +1 -1
  52. package/dist/{vue-ui-dumbbell-CbxwKTTZ.cjs → vue-ui-dumbbell-B5zjcvBX.cjs} +1 -1
  53. package/dist/{vue-ui-dumbbell-By0EEP7S.js → vue-ui-dumbbell-Bt41GKHc.js} +8 -8
  54. package/dist/{vue-ui-flow-DWrZQCzR.cjs → vue-ui-flow-BhXEWkDg.cjs} +1 -1
  55. package/dist/{vue-ui-flow-BIxbPfDE.js → vue-ui-flow-DFJwsU9T.js} +7 -7
  56. package/dist/{vue-ui-galaxy-DIim6oZe.js → vue-ui-galaxy-Ckhh5tv9.js} +9 -9
  57. package/dist/{vue-ui-galaxy-DsphaNAI.cjs → vue-ui-galaxy-Cv4hGLlH.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-CxID7_UB.cjs → vue-ui-gauge-B8Db6IYI.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-DkB4_mbS.js → vue-ui-gauge-L06i_lqx.js} +5 -5
  60. package/dist/{vue-ui-gizmo-B4TAO8bP.cjs → vue-ui-gizmo-Dax5RGrp.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-C_O9g3YG.js → vue-ui-gizmo-nkBDlE7k.js} +2 -2
  62. package/dist/{vue-ui-heatmap-CbY84wiS.cjs → vue-ui-heatmap-Del_S9Ig.cjs} +1 -1
  63. package/dist/{vue-ui-heatmap-Bs2fOp6v.js → vue-ui-heatmap-dwBcSf2r.js} +8 -8
  64. package/dist/{vue-ui-kpi-DhYlfD4Q.cjs → vue-ui-kpi-CCVBFFTs.cjs} +1 -1
  65. package/dist/{vue-ui-kpi-BTQ4X1Rg.js → vue-ui-kpi-F5q_gEuh.js} +3 -3
  66. package/dist/{vue-ui-mini-loader-BnS890Lx.js → vue-ui-mini-loader-11ecJZC0.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-DRzlFN5q.cjs → vue-ui-mini-loader-DAG8Gufj.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-N4XGePxD.cjs → vue-ui-molecule-BTLP20Mz.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-CAPwPpHO.js → vue-ui-molecule-DkCIlJU8.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-CrvDHJHs.cjs → vue-ui-mood-radar-CF_kZ6bH.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-B8bsvKcJ.js → vue-ui-mood-radar-ghquf2Zg.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-DQtQroDc.cjs → vue-ui-nested-donuts-B-7xB4wI.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-xWRdqX_G.js → vue-ui-nested-donuts-CRdtJZWs.js} +9 -9
  74. package/dist/{vue-ui-onion-DX96edRH.cjs → vue-ui-onion-BoYq6jVn.cjs} +1 -1
  75. package/dist/{vue-ui-onion-CIp-ZmAw.js → vue-ui-onion-CUYgS0n0.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-DLbub2s5.cjs → vue-ui-parallel-coordinate-plot-BGvSRauT.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-m3xZjFsy.js → vue-ui-parallel-coordinate-plot-CDRIN2Aj.js} +10 -10
  78. package/dist/{vue-ui-quadrant-CHYKm_gp.js → vue-ui-quadrant-CndKtGze.js} +10 -10
  79. package/dist/{vue-ui-quadrant-BlKcOAJ5.cjs → vue-ui-quadrant-DXbOfhjV.cjs} +1 -1
  80. package/dist/{vue-ui-quick-chart-BuQXXXPZ.cjs → vue-ui-quick-chart-CqaLgRB6.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-Bx33h_v_.js → vue-ui-quick-chart-p7cKzBJk.js} +7 -7
  82. package/dist/{vue-ui-radar-DL21Oxie.cjs → vue-ui-radar-B9fCmqTj.cjs} +1 -1
  83. package/dist/{vue-ui-radar-E5QES6yN.js → vue-ui-radar-BB5qmv_O.js} +10 -10
  84. package/dist/{vue-ui-rating-DoqRRsvo.js → vue-ui-rating-CrVheC-i.js} +2 -2
  85. package/dist/{vue-ui-rating-DMmskFOg.cjs → vue-ui-rating-DAjzsg87.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-D0TOckKJ.js → vue-ui-relation-circle-BPiudHHA.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-DQxPcVUO.cjs → vue-ui-relation-circle-DTS27L71.cjs} +1 -1
  88. package/dist/{vue-ui-rings-BHvZBASf.js → vue-ui-rings-BfXc8iuJ.js} +9 -9
  89. package/dist/{vue-ui-rings-J4xq1-8a.cjs → vue-ui-rings-DjjBsl87.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-BDFTTZvz.js → vue-ui-scatter-DWxuW3q1.js} +10 -10
  91. package/dist/{vue-ui-scatter-D5chTu9W.cjs → vue-ui-scatter-DoBFZghX.cjs} +1 -1
  92. package/dist/{vue-ui-screenshot-CfG_-SQf.cjs → vue-ui-screenshot-BT1WVBvi.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-D9FGz4Mq.js → vue-ui-screenshot-RRWLPlkg.js} +1 -1
  94. package/dist/{vue-ui-skeleton-c0TzbjC0.js → vue-ui-skeleton-XKmaSsvx.js} +2 -2
  95. package/dist/{vue-ui-skeleton-BeqLQi6X.cjs → vue-ui-skeleton-gtTH6DCC.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-9HsQ_68t.js → vue-ui-smiley-B1vjfemq.js} +2 -2
  97. package/dist/{vue-ui-smiley-CQiyYo-p.cjs → vue-ui-smiley-D7i2I9tM.cjs} +1 -1
  98. package/dist/{vue-ui-spark-trend-SlHRQmbT.cjs → vue-ui-spark-trend-CtM9OeDS.cjs} +1 -1
  99. package/dist/{vue-ui-spark-trend-DtYPEtR4.js → vue-ui-spark-trend-sUDUdqWE.js} +4 -4
  100. package/dist/{vue-ui-sparkbar-CrlzIgxZ.js → vue-ui-sparkbar-C-1_gl5N.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-DiZ-nGpc.cjs → vue-ui-sparkbar-D3s8g7yn.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-BdmdpNtb.js → vue-ui-sparkgauge--pRWYVlV.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-oYNntKkm.cjs → vue-ui-sparkgauge-Cp0q0GBQ.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-C3fHOiml.cjs → vue-ui-sparkhistogram-BQoZSojK.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-GmY7s2MV.js → vue-ui-sparkhistogram-Cj4l6Yjl.js} +4 -4
  106. package/dist/{vue-ui-sparkline-B904fIIV.cjs → vue-ui-sparkline-B8PjCxHf.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-BMkTUeZx.js → vue-ui-sparkline-DF15b4Xf.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-uS7i9oTT.js → vue-ui-sparkstackbar-BTb70s92.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-BMvx-rKU.cjs → vue-ui-sparkstackbar-C9XuPPoc.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-BhAHa1Dn.cjs → vue-ui-stackbar-BVI0SEu4.cjs} +1 -1
  111. package/dist/{vue-ui-stackbar-D4OAp2cH.js → vue-ui-stackbar-x-l6aDiU.js} +10 -10
  112. package/dist/{vue-ui-strip-plot-BCKuRBtF.js → vue-ui-strip-plot-CoKwhwfl.js} +9 -9
  113. package/dist/{vue-ui-strip-plot-CryNz9qI.cjs → vue-ui-strip-plot-DRjnZEYt.cjs} +1 -1
  114. package/dist/{vue-ui-table-7C8sLROG.cjs → vue-ui-table-CW_ZEFkz.cjs} +1 -1
  115. package/dist/{vue-ui-table-heatmap-CaXDSUa1.js → vue-ui-table-heatmap-D3cF_M_O.js} +4 -4
  116. package/dist/{vue-ui-table-heatmap-DWp3QF6Q.cjs → vue-ui-table-heatmap-DDS3tKIQ.cjs} +1 -1
  117. package/dist/{vue-ui-table-sparkline-CMVyXbpe.js → vue-ui-table-sparkline-B_UKul0q.js} +5 -5
  118. package/dist/{vue-ui-table-sparkline-BdQUpJPd.cjs → vue-ui-table-sparkline-DP9_axVg.cjs} +1 -1
  119. package/dist/{vue-ui-table-E36ZrFlN.js → vue-ui-table-u_43joWk.js} +1 -1
  120. package/dist/{vue-ui-thermometer-Li9bmiH0.js → vue-ui-thermometer-BazPTNdQ.js} +5 -5
  121. package/dist/{vue-ui-thermometer-DkDtdSmc.cjs → vue-ui-thermometer-LN3eKoob.cjs} +1 -1
  122. package/dist/{vue-ui-timer-C_4lJH9K.js → vue-ui-timer-DEv_fTNE.js} +4 -4
  123. package/dist/{vue-ui-timer-TsyW89JN.cjs → vue-ui-timer-P0Gep-MP.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-Cf51w2b-.js → vue-ui-tiremarks-B4zO1f7e.js} +94 -93
  125. package/dist/vue-ui-tiremarks-DEr3ryms.cjs +1 -0
  126. package/dist/{vue-ui-treemap-Bos2w-op.cjs → vue-ui-treemap-CWuA7766.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-BcFsPd4Y.js → vue-ui-treemap-iRa3YIot.js} +9 -9
  128. package/dist/{vue-ui-vertical-bar-D7X05s8-.js → vue-ui-vertical-bar-ByKc0QdH.js} +9 -9
  129. package/dist/{vue-ui-vertical-bar-aKU9mtnf.cjs → vue-ui-vertical-bar-CoUXP9x3.cjs} +1 -1
  130. package/dist/{vue-ui-waffle-CFyFmjBl.cjs → vue-ui-waffle-DGy82Mae.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-DFtpaZsl.js → vue-ui-waffle-qWPaEfOg.js} +9 -9
  132. package/dist/vue-ui-wheel-D77Z5zB1.cjs +1 -0
  133. package/dist/{vue-ui-wheel-C3nur9i_.js → vue-ui-wheel-SXnsdXa_.js} +85 -84
  134. package/dist/{vue-ui-word-cloud-BaP5JJKa.cjs → vue-ui-word-cloud-BEiSiNk_.cjs} +1 -1
  135. package/dist/{vue-ui-word-cloud-DPNwIdFC.js → vue-ui-word-cloud-BfLh5qUJ.js} +7 -7
  136. package/dist/vue-ui-xy-CXlGidia.cjs +3 -0
  137. package/dist/{vue-ui-xy-uoeb5Otk.js → vue-ui-xy-JHEKn-fb.js} +172 -172
  138. package/dist/{vue-ui-xy-canvas-OQHq27Ks.js → vue-ui-xy-canvas-B4H-9OtC.js} +10 -10
  139. package/dist/{vue-ui-xy-canvas-BaaFmIpg.cjs → vue-ui-xy-canvas-CkAFPHse.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-tiremarks-CCG1Ys1M.cjs +0 -1
  142. package/dist/vue-ui-wheel-BrEgOljm.cjs +0 -1
  143. package/dist/vue-ui-xy-KNbn-bUg.cjs +0 -3
@@ -1,4 +1,4 @@
1
- import { z as o, A as n } from "./index-b22AFna7.js";
1
+ import { z as o, A as n } from "./index-tBV7ojX4.js";
2
2
  function c({ defaultConfig: e, userConfig: r }) {
3
3
  if (!Object.keys(r || {}).length)
4
4
  return e;
@@ -1 +1 @@
1
- "use strict";const r=require("./index-DDwHKEGb.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
1
+ "use strict";const r=require("./index-DC98WFA9.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
@@ -1,5 +1,5 @@
1
1
  import { ref as k, onMounted as q, onBeforeUnmount as H, withDirectives as R, openBlock as t, createElementBlock as s, normalizeStyle as d, createElementVNode as w, withModifiers as x, withKeys as G, createVNode as J, normalizeClass as c, renderSlot as m, Fragment as M, createBlock as f, toDisplayString as $, createCommentVNode as u, normalizeProps as h, mergeProps as z, unref as Q } from "vue";
2
- import v from "./BaseIcon-D93rtrSm.js";
2
+ import v from "./BaseIcon-Dn--aRqh.js";
3
3
  import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { p as Z } from "./pdf-97UbtKC2.js";
5
5
  import _ from "./html2canvas.esm-d2sM-0Wm.js";
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),i=require("./BaseIcon-HycAYj53.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./pdf-Cz3729tZ.cjs"),O=require("./html2canvas.esm-BA_v9SIU.cjs"),w={beforeMount(t,u){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||u.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},D=["title","onClick","onKeypress"],h=["data-open"],q={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const s=t;function v(){u("generatePdf")}function f(){u("generateCsv")}function d(){u("generateImage")}const c=e.ref(!1);function z(){c.value=!c.value,u("toggleTable")}const m=e.ref(!1),V=e.ref(!0);function C(){r.value=window.innerWidth>600,m.value=!m.value,m.value&&(V.value=!1)}function N(){s.isPrinting||s.isImaging||(m.value=!1)}function T(){m.value&&N()}const y=e.ref(s.isLabelActive);function I(){y.value=!y.value,u("toggleLabels")}const g=e.ref(s.isAnimation);function p(){g.value=!g.value,u("toggleAnimation")}function M(){u("toggleSort")}const b=e.ref(s.isStacked);function F(){b.value=!b.value,u("toggleStack")}const B=e.ref(s.isTooltip);function P(){B.value=!B.value,u("toggleTooltip")}const k=e.ref(!1);function $(l){s.chartElement&&(l==="in"?(k.value=!0,s.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(k.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function S(l){document.fullscreenElement?k.value=!0:k.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",S)});const r=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${k.value?"fixed":"absolute"}; top: 0; right:${k.value?"12px":"0"}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:m.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right: ${t.noOffset?0:4}px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${t.backgroundColor}`),onClick:e.withModifiers(C,["stop"]),onKeypress:e.withKeys(C,["enter"])},[e.createVNode(i.default,{name:m.value?"close":"menu",stroke:"#CCCCCC","stroke-width":2},null,8,["name"])],44,D),e.createElementVNode("div",{"data-open":m.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; right:${t.noOffset?0:4}px`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[0]||(o[0]=a=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=a=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[2]||(o[2]=a=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=a=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:f,onMouseenter:o[4]||(o[4]=a=>n.value.csv=!0),onMouseout:o[5]||(o[5]=a=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[6]||(o[6]=a=>n.value.img=!0),onMouseout:o[7]||(o[7]=a=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:z,onMouseenter:o[8]||(o[8]=a=>n.value.table=!0),onMouseout:o[9]||(o[9]=a=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:c.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=a=>n.value.labels=!0),onMouseout:o[11]||(o[11]=a=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[12]||(o[12]=a=>n.value.sort=!0),onMouseout:o[13]||(o[13]=a=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[14]||(o[14]=a=>n.value.stack=!0),onMouseout:o[15]||(o[15]=a=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=a=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=a=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=a=>$(k.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:$,isFullscreen:k.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=a=>n.value.animation=!0),onMouseout:o[20]||(o[20]=a=>n.value.animation=!1),onClick:p},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:p,isAnimated:g.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,h)],4)),[[e.unref(w),T]])}},U=L._export_sfc(q,[["__scopeId","data-v-d4402778"]]);function E({domElement:t,fileName:u,format:s="png"}){if(t)return new Promise((v,f)=>{const d=document.createElement("a");O.default(t,{scale:2}).then(c=>{d.href=c.toDataURL(`image/${s}`),d.download=`${u}.${s}`,d.click(),d&&d.remove(),v()}).catch(c=>{console.error("Error generating image:",c),f(c)})})}function K({elementId:t,fileName:u}){const s=e.ref(!1),v=e.ref(!1),f=e.ref(null);function d(){s.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{A.pdf({domElement:document.getElementById(t),fileName:u}).finally(()=>{s.value=!1})},100)}function c(){v.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{E({domElement:document.getElementById(t),fileName:u,format:"png"}).finally(()=>{v.value=!1},100)})}return{generatePdf:d,generateImage:c,isPrinting:s,isImaging:v}}exports.UserOptions=U;exports.saveAsImage=E;exports.usePrinter=K;
1
+ "use strict";const e=require("vue"),i=require("./BaseIcon-r6sTvN4e.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./pdf-Cz3729tZ.cjs"),O=require("./html2canvas.esm-BA_v9SIU.cjs"),w={beforeMount(t,u){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||u.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},D=["title","onClick","onKeypress"],h=["data-open"],q={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const s=t;function v(){u("generatePdf")}function f(){u("generateCsv")}function d(){u("generateImage")}const c=e.ref(!1);function z(){c.value=!c.value,u("toggleTable")}const m=e.ref(!1),V=e.ref(!0);function C(){r.value=window.innerWidth>600,m.value=!m.value,m.value&&(V.value=!1)}function N(){s.isPrinting||s.isImaging||(m.value=!1)}function T(){m.value&&N()}const y=e.ref(s.isLabelActive);function I(){y.value=!y.value,u("toggleLabels")}const g=e.ref(s.isAnimation);function p(){g.value=!g.value,u("toggleAnimation")}function M(){u("toggleSort")}const b=e.ref(s.isStacked);function F(){b.value=!b.value,u("toggleStack")}const B=e.ref(s.isTooltip);function P(){B.value=!B.value,u("toggleTooltip")}const k=e.ref(!1);function $(l){s.chartElement&&(l==="in"?(k.value=!0,s.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(k.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function S(l){document.fullscreenElement?k.value=!0:k.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",S)});const r=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${k.value?"fixed":"absolute"}; top: 0; right:${k.value?"12px":"0"}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:m.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right: ${t.noOffset?0:4}px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${t.backgroundColor}`),onClick:e.withModifiers(C,["stop"]),onKeypress:e.withKeys(C,["enter"])},[e.createVNode(i.default,{name:m.value?"close":"menu",stroke:"#CCCCCC","stroke-width":2},null,8,["name"])],44,D),e.createElementVNode("div",{"data-open":m.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; right:${t.noOffset?0:4}px`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[0]||(o[0]=a=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=a=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[2]||(o[2]=a=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=a=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:f,onMouseenter:o[4]||(o[4]=a=>n.value.csv=!0),onMouseout:o[5]||(o[5]=a=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[6]||(o[6]=a=>n.value.img=!0),onMouseout:o[7]||(o[7]=a=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:z,onMouseenter:o[8]||(o[8]=a=>n.value.table=!0),onMouseout:o[9]||(o[9]=a=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:c.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=a=>n.value.labels=!0),onMouseout:o[11]||(o[11]=a=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[12]||(o[12]=a=>n.value.sort=!0),onMouseout:o[13]||(o[13]=a=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[14]||(o[14]=a=>n.value.stack=!0),onMouseout:o[15]||(o[15]=a=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=a=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=a=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=a=>$(k.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:$,isFullscreen:k.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=a=>n.value.animation=!0),onMouseout:o[20]||(o[20]=a=>n.value.animation=!1),onClick:p},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:p,isAnimated:g.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,h)],4)),[[e.unref(w),T]])}},U=L._export_sfc(q,[["__scopeId","data-v-d4402778"]]);function E({domElement:t,fileName:u,format:s="png"}){if(t)return new Promise((v,f)=>{const d=document.createElement("a");O.default(t,{scale:2}).then(c=>{d.href=c.toDataURL(`image/${s}`),d.download=`${u}.${s}`,d.click(),d&&d.remove(),v()}).catch(c=>{console.error("Error generating image:",c),f(c)})})}function K({elementId:t,fileName:u}){const s=e.ref(!1),v=e.ref(!1),f=e.ref(null);function d(){s.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{A.pdf({domElement:document.getElementById(t),fileName:u}).finally(()=>{s.value=!1})},100)}function c(){v.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{E({domElement:document.getElementById(t),fileName:u,format:"png"}).finally(()=>{v.value=!1},100)})}return{generatePdf:d,generateImage:c,isPrinting:s,isImaging:v}}exports.UserOptions=U;exports.saveAsImage=E;exports.usePrinter=K;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./BaseIcon-HycAYj53.cjs"),Q={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},$={style:{width:"36px"}},z={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap"],setup(I,{expose:B,emit:E}){const i=I,{component:H,dataset:O,config:N}=e.toRefs(i),a={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-ojEQSNLk.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-M1J2GKpa.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-m8EO_6mf.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-CocQAT0K.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-TU1mnoNH.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-r8hBDI5a.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-Dudhgq6k.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-BSMPuZag.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BEkQBKpm.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-DsphaNAI.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-CxID7_UB.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-CbY84wiS.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-DhYlfD4Q.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DRzlFN5q.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-N4XGePxD.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-CrvDHJHs.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-DQtQroDc.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-DX96edRH.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-BlKcOAJ5.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-DL21Oxie.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-DMmskFOg.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-DQxPcVUO.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-J4xq1-8a.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-D5chTu9W.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-CfG_-SQf.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-BeqLQi6X.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-CQiyYo-p.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-DiZ-nGpc.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-oYNntKkm.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-C3fHOiml.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-B904fIIV.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-BMvx-rKU.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-7C8sLROG.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-BdQUpJPd.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-DkDtdSmc.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-CCG1Ys1M.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-Bos2w-op.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-aKU9mtnf.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-CFyFmjBl.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BrEgOljm.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-KNbn-bUg.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-DWp3QF6Q.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-BBDPcl3d.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BuQXXXPZ.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-36hWYcLz.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-SlHRQmbT.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-CryNz9qI.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-CbxwKTTZ.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-BaP5JJKa.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-BaaFmIpg.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-DWrZQCzR.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-DLbub2s5.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-TsyW89JN.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-CBF5ycha.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-B4TAO8bP.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-BhAHa1Dn.cjs")))},M={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"]},u=e.computed(()=>!a[i.component]),F=e.computed(()=>a[i.component]||null),t=e.ref(null),G=e.computed(()=>{const o=M[i.component]||[],n={};return o.includes("config")&&(n.config=N.value),o.includes("dataset")&&(n.dataset=O.value),n}),c=e.ref(()=>null),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),S=e.ref(()=>null),k=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),L=e.ref(()=>null),_=e.ref(()=>null),x=e.ref(()=>null);e.onMounted(()=>{if(u.value)throw new Error(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./BaseIcon-r6sTvN4e.cjs"),Q={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},$={style:{width:"36px"}},z={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap"],setup(I,{expose:B,emit:E}){const i=I,{component:H,dataset:O,config:N}=e.toRefs(i),a={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-C6QkJ9TS.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-d6zQr_wc.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-D5woo_-l.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-DXTTu6k1.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CiYsTJB1.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BD6fnLMr.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-BLChn-JX.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-BR1c-VMi.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-fmJj_9qP.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-Cv4hGLlH.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-B8Db6IYI.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-Del_S9Ig.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-CCVBFFTs.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DAG8Gufj.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-BTLP20Mz.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-CF_kZ6bH.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-B-7xB4wI.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-BoYq6jVn.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DXbOfhjV.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-B9fCmqTj.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-DAjzsg87.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-DTS27L71.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-DjjBsl87.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-DoBFZghX.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-BT1WVBvi.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-gtTH6DCC.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-D7i2I9tM.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-D3s8g7yn.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-Cp0q0GBQ.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-BQoZSojK.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-B8PjCxHf.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-C9XuPPoc.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-CW_ZEFkz.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-DP9_axVg.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-LN3eKoob.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-DEr3ryms.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-CWuA7766.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-CoUXP9x3.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-DGy82Mae.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-D77Z5zB1.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-CXlGidia.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-DDS3tKIQ.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-Bw-stCgX.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-CqaLgRB6.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-BghIGRgY.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-CtM9OeDS.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-DRjnZEYt.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-B5zjcvBX.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-BEiSiNk_.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-CkAFPHse.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-BhXEWkDg.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BGvSRauT.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-P0Gep-MP.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-CMTquEa-.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-Dax5RGrp.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-BVI0SEu4.cjs")))},M={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"]},u=e.computed(()=>!a[i.component]),F=e.computed(()=>a[i.component]||null),t=e.ref(null),G=e.computed(()=>{const o=M[i.component]||[],n={};return o.includes("config")&&(n.config=N.value),o.includes("dataset")&&(n.dataset=O.value),n}),c=e.ref(()=>null),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),S=e.ref(()=>null),k=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),L=e.ref(()=>null),_=e.ref(()=>null),x=e.ref(()=>null);e.onMounted(()=>{if(u.value)throw new Error(`
2
2
 
3
3
  Vue Data UI exception:
4
4
  The provided component "${i.component}" does not exist. Check the spelling.
@@ -1,5 +1,5 @@
1
1
  import { toRefs as q, defineAsyncComponent as t, computed as c, ref as o, onMounted as J, watch as B, shallowReactive as Y, openBlock as O, createElementBlock as Z, createElementVNode as R, createVNode as w, createTextVNode as ee, toDisplayString as te, unref as oe, createBlock as ie, resolveDynamicComponent as ae, mergeProps as ne, toHandlers as re, createSlots as le, renderList as se, withCtx as ue, renderSlot as ce, normalizeProps as ge, guardReactiveProps as pe } from "vue";
2
- import me from "./BaseIcon-D93rtrSm.js";
2
+ import me from "./BaseIcon-Dn--aRqh.js";
3
3
  const de = {
4
4
  key: 0,
5
5
  style: { width: "100%", display: "flex", gap: "6px", "align-items": "center", color: "#FF0000" }
@@ -36,62 +36,62 @@ const de = {
36
36
  ],
37
37
  setup(N, { expose: F, emit: G }) {
38
38
  const n = N, { component: M, dataset: W, config: X } = q(n), s = {
39
- VueUi3dBar: t(() => import("./vue-ui-3d-bar-DbYTVw48.js")),
40
- VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-DQ3QiyQZ.js")),
41
- VueUiAnnotator: t(() => import("./vue-ui-annotator-D5DX94Dw.js")),
42
- VueUiCandlestick: t(() => import("./vue-ui-candlestick-B48E6EaX.js")),
43
- VueUiChestnut: t(() => import("./vue-ui-chestnut-BikqvSP7.js")),
44
- VueUiDashboard: t(() => import("./vue-ui-dashboard-BnmrvYTu.js")),
45
- VueUiDigits: t(() => import("./vue-ui-digits-DLWnySuv.js")),
46
- VueUiDonut: t(() => import("./vue-ui-donut-BIQqKYci.js")),
47
- VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-Cpmro_CO.js")),
48
- VueUiGalaxy: t(() => import("./vue-ui-galaxy-DIim6oZe.js")),
49
- VueUiGauge: t(() => import("./vue-ui-gauge-DkB4_mbS.js")),
50
- VueUiHeatmap: t(() => import("./vue-ui-heatmap-Bs2fOp6v.js")),
51
- VueUiKpi: t(() => import("./vue-ui-kpi-BTQ4X1Rg.js")),
52
- VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-BnS890Lx.js")),
53
- VueUiMolecule: t(() => import("./vue-ui-molecule-CAPwPpHO.js")),
54
- VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-B8bsvKcJ.js")),
55
- VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-xWRdqX_G.js")),
56
- VueUiOnion: t(() => import("./vue-ui-onion-CIp-ZmAw.js")),
57
- VueUiQuadrant: t(() => import("./vue-ui-quadrant-CHYKm_gp.js")),
58
- VueUiRadar: t(() => import("./vue-ui-radar-E5QES6yN.js")),
59
- VueUiRating: t(() => import("./vue-ui-rating-DoqRRsvo.js")),
60
- VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-D0TOckKJ.js")),
61
- VueUiRings: t(() => import("./vue-ui-rings-BHvZBASf.js")),
62
- VueUiScatter: t(() => import("./vue-ui-scatter-BDFTTZvz.js")),
63
- VueUiScreenshot: t(() => import("./vue-ui-screenshot-D9FGz4Mq.js")),
64
- VueUiSkeleton: t(() => import("./vue-ui-skeleton-c0TzbjC0.js")),
65
- VueUiSmiley: t(() => import("./vue-ui-smiley-9HsQ_68t.js")),
66
- VueUiSparkbar: t(() => import("./vue-ui-sparkbar-CrlzIgxZ.js")),
67
- VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-BdmdpNtb.js")),
68
- VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-GmY7s2MV.js")),
69
- VueUiSparkline: t(() => import("./vue-ui-sparkline-BMkTUeZx.js")),
70
- VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-uS7i9oTT.js")),
71
- VueUiTable: t(() => import("./vue-ui-table-E36ZrFlN.js")),
72
- VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-CMVyXbpe.js")),
73
- VueUiThermometer: t(() => import("./vue-ui-thermometer-Li9bmiH0.js")),
74
- VueUiTiremarks: t(() => import("./vue-ui-tiremarks-Cf51w2b-.js")),
75
- VueUiTreemap: t(() => import("./vue-ui-treemap-BcFsPd4Y.js")),
76
- VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-D7X05s8-.js")),
77
- VueUiWaffle: t(() => import("./vue-ui-waffle-DFtpaZsl.js")),
78
- VueUiWheel: t(() => import("./vue-ui-wheel-C3nur9i_.js")),
79
- VueUiXy: t(() => import("./vue-ui-xy-uoeb5Otk.js")),
80
- VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-CaXDSUa1.js")),
81
- VueUiAccordion: t(() => import("./vue-ui-accordion-H9MtAuZL.js")),
82
- VueUiQuickChart: t(() => import("./vue-ui-quick-chart-Bx33h_v_.js")),
83
- VueUiCursor: t(() => import("./vue-ui-cursor-3jMf_DA8.js")),
84
- VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-DtYPEtR4.js")),
85
- VueUiStripPlot: t(() => import("./vue-ui-strip-plot-BCKuRBtF.js")),
86
- VueUiDumbbell: t(() => import("./vue-ui-dumbbell-By0EEP7S.js")),
87
- VueUiWordCloud: t(() => import("./vue-ui-word-cloud-DPNwIdFC.js")),
88
- VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-OQHq27Ks.js")),
89
- VueUiFlow: t(() => import("./vue-ui-flow-BIxbPfDE.js")),
90
- VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-m3xZjFsy.js")),
91
- VueUiTimer: t(() => import("./vue-ui-timer-C_4lJH9K.js")),
92
- VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-BlVhpRo3.js")),
93
- VueUiGizmo: t(() => import("./vue-ui-gizmo-C_O9g3YG.js")),
94
- VueUiStackbar: t(() => import("./vue-ui-stackbar-D4OAp2cH.js"))
39
+ VueUi3dBar: t(() => import("./vue-ui-3d-bar-B7UPDxaJ.js")),
40
+ VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-EI3_8UiR.js")),
41
+ VueUiAnnotator: t(() => import("./vue-ui-annotator-BrDoAda_.js")),
42
+ VueUiCandlestick: t(() => import("./vue-ui-candlestick-DF6Jhe1t.js")),
43
+ VueUiChestnut: t(() => import("./vue-ui-chestnut-DF9jomRx.js")),
44
+ VueUiDashboard: t(() => import("./vue-ui-dashboard-PDxIaYy1.js")),
45
+ VueUiDigits: t(() => import("./vue-ui-digits-PP7pTKNs.js")),
46
+ VueUiDonut: t(() => import("./vue-ui-donut-Cfbb9d7V.js")),
47
+ VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-BnuxOElp.js")),
48
+ VueUiGalaxy: t(() => import("./vue-ui-galaxy-Ckhh5tv9.js")),
49
+ VueUiGauge: t(() => import("./vue-ui-gauge-L06i_lqx.js")),
50
+ VueUiHeatmap: t(() => import("./vue-ui-heatmap-dwBcSf2r.js")),
51
+ VueUiKpi: t(() => import("./vue-ui-kpi-F5q_gEuh.js")),
52
+ VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-11ecJZC0.js")),
53
+ VueUiMolecule: t(() => import("./vue-ui-molecule-DkCIlJU8.js")),
54
+ VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-ghquf2Zg.js")),
55
+ VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-CRdtJZWs.js")),
56
+ VueUiOnion: t(() => import("./vue-ui-onion-CUYgS0n0.js")),
57
+ VueUiQuadrant: t(() => import("./vue-ui-quadrant-CndKtGze.js")),
58
+ VueUiRadar: t(() => import("./vue-ui-radar-BB5qmv_O.js")),
59
+ VueUiRating: t(() => import("./vue-ui-rating-CrVheC-i.js")),
60
+ VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-BPiudHHA.js")),
61
+ VueUiRings: t(() => import("./vue-ui-rings-BfXc8iuJ.js")),
62
+ VueUiScatter: t(() => import("./vue-ui-scatter-DWxuW3q1.js")),
63
+ VueUiScreenshot: t(() => import("./vue-ui-screenshot-RRWLPlkg.js")),
64
+ VueUiSkeleton: t(() => import("./vue-ui-skeleton-XKmaSsvx.js")),
65
+ VueUiSmiley: t(() => import("./vue-ui-smiley-B1vjfemq.js")),
66
+ VueUiSparkbar: t(() => import("./vue-ui-sparkbar-C-1_gl5N.js")),
67
+ VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge--pRWYVlV.js")),
68
+ VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-Cj4l6Yjl.js")),
69
+ VueUiSparkline: t(() => import("./vue-ui-sparkline-DF15b4Xf.js")),
70
+ VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-BTb70s92.js")),
71
+ VueUiTable: t(() => import("./vue-ui-table-u_43joWk.js")),
72
+ VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-B_UKul0q.js")),
73
+ VueUiThermometer: t(() => import("./vue-ui-thermometer-BazPTNdQ.js")),
74
+ VueUiTiremarks: t(() => import("./vue-ui-tiremarks-B4zO1f7e.js")),
75
+ VueUiTreemap: t(() => import("./vue-ui-treemap-iRa3YIot.js")),
76
+ VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-ByKc0QdH.js")),
77
+ VueUiWaffle: t(() => import("./vue-ui-waffle-qWPaEfOg.js")),
78
+ VueUiWheel: t(() => import("./vue-ui-wheel-SXnsdXa_.js")),
79
+ VueUiXy: t(() => import("./vue-ui-xy-JHEKn-fb.js")),
80
+ VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-D3cF_M_O.js")),
81
+ VueUiAccordion: t(() => import("./vue-ui-accordion-3GMC-9lb.js")),
82
+ VueUiQuickChart: t(() => import("./vue-ui-quick-chart-p7cKzBJk.js")),
83
+ VueUiCursor: t(() => import("./vue-ui-cursor-BH1rYbdI.js")),
84
+ VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-sUDUdqWE.js")),
85
+ VueUiStripPlot: t(() => import("./vue-ui-strip-plot-CoKwhwfl.js")),
86
+ VueUiDumbbell: t(() => import("./vue-ui-dumbbell-Bt41GKHc.js")),
87
+ VueUiWordCloud: t(() => import("./vue-ui-word-cloud-BfLh5qUJ.js")),
88
+ VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-B4H-9OtC.js")),
89
+ VueUiFlow: t(() => import("./vue-ui-flow-DFJwsU9T.js")),
90
+ VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-CDRIN2Aj.js")),
91
+ VueUiTimer: t(() => import("./vue-ui-timer-DEv_fTNE.js")),
92
+ VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-DNiD6oCm.js")),
93
+ VueUiGizmo: t(() => import("./vue-ui-gizmo-nkBDlE7k.js")),
94
+ VueUiStackbar: t(() => import("./vue-ui-stackbar-x-l6aDiU.js"))
95
95
  }, Q = {
96
96
  VueUi3dBar: ["config", "dataset"],
97
97
  VueUiAgePyramid: ["config", "dataset"],
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-DDwHKEGb.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiScreenshot=e.VueUiScreenshot;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-DC98WFA9.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiScreenshot=e.VueUiScreenshot;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { a2 as s, a3 as u, a4 as V, a5 as U, a6 as r, a7 as t, a8 as o, aW as l, a9 as n, aa as d, ab as m, ac as p, ad as S, ae as c, af as g, ag as k, ah as C, ai as T, aX as b, aj as D, ak as h, al as P, am as f, an as y, ao as R, ap as W, aq as A, ar as x, as as G, at as H, au as M, av as v, aw as w, ax as B, ay as F, az as Q, aA as X, aB as z, aC as E, aD as I, aE as K, aF as L, aG as N, aH as O, aY as j, aI as q, aJ as J, aK as Y, aL as Z, aM as _, aN as $, aO as aa, aP as ea, aQ as ia, aR as sa, aS as ua, aT as Va, aU as Ua, aV as ra, W as ta, aZ as oa, a_ as la, a$ as na } from "./index-b22AFna7.js";
2
+ import { a2 as s, a3 as u, a4 as V, a5 as U, a6 as r, a7 as t, a8 as o, aW as l, a9 as n, aa as d, ab as m, ac as p, ad as S, ae as c, af as g, ag as k, ah as C, ai as T, aX as b, aj as D, ak as h, al as P, am as f, an as y, ao as R, ap as W, aq as A, ar as x, as as G, at as H, au as M, av as v, aw as w, ax as B, ay as F, az as Q, aA as X, aB as z, aC as E, aD as I, aE as K, aF as L, aG as N, aH as O, aY as j, aI as q, aJ as J, aK as Y, aL as Z, aM as _, aN as $, aO as aa, aP as ea, aQ as ia, aR as sa, aS as ua, aT as Va, aU as Ua, aV as ra, W as ta, aZ as oa, a_ as la, a$ as na } from "./index-tBV7ojX4.js";
3
3
  export {
4
4
  s as Arrow,
5
5
  u as VueDataUi,
@@ -1,11 +1,11 @@
1
1
  import { computed as P, ref as B, onMounted as Be, openBlock as n, createElementBlock as i, normalizeClass as ge, normalizeStyle as j, createVNode as _e, createCommentVNode as k, createBlock as ae, unref as h, createSlots as Ie, withCtx as I, renderSlot as S, normalizeProps as R, guardReactiveProps as Y, createElementVNode as r, Fragment as $, renderList as g, toDisplayString as M, createTextVNode as Le, nextTick as Oe, pushScopeId as We, popScopeId as Ge } from "vue";
2
- import { u as Ve, c as me, t as Ae, a as Ue, p as J, b as Ee, d as T, o as He, e as K, g as ne, l as A, m as xe, f as D, X as Ze, h as Q, i as ee, j as be, k as L, n as te, q as qe, r as Xe } from "./index-b22AFna7.js";
3
- import { _ as Re } from "./Title-CzxknLI3.js";
4
- import { u as Ye, U as Je } from "./usePrinter-C_wOlUXy.js";
5
- import Ke from "./vue-ui-skeleton-c0TzbjC0.js";
6
- import { D as Qe } from "./DataTable-Bwco5wF0.js";
7
- import et from "./vue-ui-accordion-H9MtAuZL.js";
8
- import { u as we } from "./useNestedProp-6FL791Qt.js";
2
+ import { u as Ve, c as me, t as Ae, a as Ue, p as J, b as Ee, d as T, o as He, e as K, g as ne, l as A, m as xe, f as D, X as Ze, h as Q, i as ee, j as be, k as L, n as te, q as qe, r as Xe } from "./index-tBV7ojX4.js";
3
+ import { _ as Re } from "./Title-CJpYIMsB.js";
4
+ import { u as Ye, U as Je } from "./usePrinter-BiDlcasQ.js";
5
+ import Ke from "./vue-ui-skeleton-XKmaSsvx.js";
6
+ import { D as Qe } from "./DataTable-BwSXMffc.js";
7
+ import et from "./vue-ui-accordion-3GMC-9lb.js";
8
+ import { u as we } from "./useNestedProp-DLR5FOhw.js";
9
9
  import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const le = (U) => (We("data-v-06e93dd9"), U = U(), Ge(), U), lt = ["id"], ot = ["xmlns", "viewBox"], st = ["id"], at = ["stop-color"], nt = ["stop-color"], rt = ["id"], ut = ["stop-color"], it = ["stop-color"], dt = ["id"], ct = ["stop-color"], ht = ["stop-color"], vt = ["id"], ft = ["stop-color"], pt = ["stop-color"], yt = ["stop-color"], kt = { key: 0 }, $t = ["id"], gt = ["stop-color"], _t = ["stop-color"], mt = ["id"], xt = ["stop-color"], bt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], Ft = ["stop-color"], Mt = ["id"], Pt = /* @__PURE__ */ le(() => /* @__PURE__ */ r("stop", {
11
11
  offset: "0%",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DDwHKEGb.cjs"),se=require("./Title-B6PVw0aK.cjs"),Z=require("./usePrinter-CRKoRqbE.cjs"),ue=require("./vue-ui-skeleton-BeqLQi6X.cjs"),ie=require("./DataTable-DkoeHXI5.cjs"),ce=require("./vue-ui-accordion-BBDPcl3d.cjs"),Y=require("./useNestedProp-BbpR9SM4.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P=N=>(e.pushScopeId("data-v-06e93dd9"),N=N(),e.popScopeId(),N),he=["id"],ve=["xmlns","viewBox"],pe=["id"],fe=["stop-color"],ke=["stop-color"],me=["id"],ye=["stop-color"],ge=["stop-color"],$e=["id"],_e=["stop-color"],xe=["stop-color"],Be=["id"],be=["stop-color"],Ce=["stop-color"],Ee=["stop-color"],we={key:0},Ne=["id"],Ve=["stop-color"],Fe=["stop-color"],Me=["id"],Se=["stop-color"],De=["stop-color"],Pe=["id"],Le=["stop-color"],Te=["stop-color"],ze=["id"],je=P(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),Oe=P(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),He=[je,Oe],Ie=["x","y","font-size","font-weight","fill"],We=["x","y"],Ge=["d","stroke"],Ae=["d","stroke"],qe={key:3},Ue={key:0},Xe=["stroke-dasharray","d","stroke","stroke-width"],Re=["stroke-dasharray","d","stroke","stroke-width"],Ze=["stroke-dasharray","d","stroke","stroke-width"],Ye=["stroke-dasharray","d","stroke","stroke-width"],Je={key:1},Ke=["d","stroke","stroke-width","fill"],Qe=["d","stroke","stroke-width","fill"],et=["d","stroke","stroke-width","fill"],tt={key:2},lt=["d","fill","onMouseenter","onClick"],ot=["d","fill","onMouseenter","onClick"],rt=["d","fill","onMouseenter","onClick"],nt=["d","onMouseenter","onClick"],at=["d"],st=["d","stroke"],ut=["onClick"],it=["stroke","d"],ct=["cx","cy","fill","stroke"],dt=["x","y","width","height"],ht={key:1},vt=["d","stroke"],pt=["d","fill","stroke"],ft=["id"],kt=["stop-color"],mt=P(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),yt=["stop-color"],gt=["cx","cy","fill"],$t=["cx","cy","fill"],_t={key:0},xt=["text-anchor","x","y","fill","font-size"],Bt=["text-anchor","x","y","fill","font-size"],bt={key:2},Ct=["d","fill","stroke"],Et={key:4},wt={key:0},Nt=["stroke-dasharray","d","stroke","stroke-width"],Vt=["stroke-dasharray","d","stroke","stroke-width"],Ft=["stroke-dasharray","d","stroke","stroke-width"],Mt=["stroke-dasharray","d","stroke","stroke-width"],St=["d","stroke","stroke-width","fill"],Dt=["d","stroke","stroke-width","fill"],Pt={key:1},Lt=["onClick"],Tt=["id"],zt=["stop-color"],jt=["stop-color"],Ot=["id"],Ht=["stop-color"],It=["stop-color"],Wt=["stop-color"],Gt=["stop-color"],At=["stop-color"],qt=["onMouseenter","onClick","d","fill"],Ut=["onMouseenter","onClick","d"],Xt=["onMouseenter","onClick","d","fill"],Rt=["onClick"],Zt=["stroke","d"],Yt=["cx","cy","fill","stroke"],Jt=["x","y","width","height"],Kt={key:1},Qt=["d","stroke"],el=["d","fill","stroke"],tl=["id"],ll=["stop-color"],ol=P(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),rl=["stop-color"],nl=["cx","cy","fill"],al=["cx","cy","fill"],sl={key:0},ul=["text-anchor","x","y","fill","font-size"],il=["text-anchor","x","y","fill","font-size"],cl={key:2},dl=["d","fill","stroke"],hl={key:3,class:"vue-data-ui-watermark"},vl=["innerHTML"],pl={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:J,emit:F}){const f=N,{vue_ui_3d_bar:K}=u.useConfig(),M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),m=e.ref(u.createUid()),Q=e.ref(null),z=e.ref(null),b=e.ref(!1),l=e.computed(()=>{const i=Y.useNestedProp({userConfig:f.config,defaultConfig:K});return i.theme?{...Y.useNestedProp({userConfig:u.themes.vue_ui_3d_bar[i.theme]||f.config,defaultConfig:i}),customPalette:u.themePalettes[i.theme]||u.palette}:i}),{isPrinting:j,isImaging:O,generatePdf:H,generateImage:I}=Z.usePrinter({elementId:`3d_bar_${m.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),ee=e.computed(()=>u.convertCustomPalette(l.value.customPalette)),S=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),r=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const i=f.dataset.series.map(o=>o.value||0).reduce((o,a)=>o+a,0),n=f.dataset.series.map((o,a)=>({...o,id:u.createUid(),proportion:(o.value||0)/i,color:u.convertColorToHex(o.color)||ee.value[a]||u.palette[a]||u.palette[a%u.palette.length],breakdown:o.breakdown?o.breakdown.sort((s,p)=>p.value-s.value):null})).sort((o,a)=>a.value-o.value),t=[];let c=0;for(let o=0;o<n.length;o+=1)t.push({...n[o],fill:te(c,n[o].proportion,n[o].breakdown,n[o].color)}),c+=n[o].proportion;return t}return null}),x=e.computed(()=>({right:`M${r.value.width/2},${r.value.top} ${r.value.width-r.value.right}, ${r.value.top+r.value.perspective} ${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective} ${r.value.width/2},${r.value.height-r.value.bottom}`,left:`M${r.value.width/2},${r.value.top} ${r.value.left},${r.value.top+r.value.perspective} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective} ${r.value.width/2},${r.value.height-r.value.bottom}`,side:`M${r.value.width/2},${r.value.height-r.value.bottom} ${r.value.width/2},${r.value.top+r.value.perspective*2}`,topSides:`M${r.value.left},${r.value.top+r.value.perspective} ${r.value.width/2},${r.value.top+r.value.perspective*2} ${r.value.width-r.value.right},${r.value.top+r.value.perspective}`,tubeTop:`M${r.value.left},${r.value.top+r.value.perspective} C ${r.value.left},${r.value.top-r.value.perspective/3} ${r.value.width-r.value.right},${r.value.top-r.value.perspective/3} ${r.value.width-r.value.right},${r.value.top+r.value.perspective} C ${r.value.width-r.value.right},${r.value.top+r.value.perspective*2.3} ${r.value.left},${r.value.top+r.value.perspective*2.3} ${r.value.left},${r.value.top+r.value.perspective}`,tubeLeft:`M${r.value.left},${r.value.top+r.value.perspective} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective}`,tubeRight:`M${r.value.width-r.value.right},${r.value.top+r.value.perspective} ${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective}`,tubeBottom:`M${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective} C ${r.value.width-r.value.right},${r.value.height} ${r.value.left},${r.value.height} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{u.objectIsEmpty(f.dataset)?u.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(s=>{u.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:s,index:a})}),o.breakdown&&o.breakdown.forEach((s,p)=>{u.getMissingDatasetAttributes({datasetObject:s,requiredAttributes:["name","value"]}).forEach(k=>{u.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:k,index:`${a} - ${p}`})})})}):u.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(o=>{u.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:o})});let i=0,n=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=n+i,i+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function te(i,n,t,c){const o=r.value.height-r.value.bottom-r.value.top-r.value.perspective*2,{width:a,height:s,bottom:p,right:k,left:h,perspective:v}=r.value,d=p+o*i,T=s-d-v-o*n/2,re=T>r.value.height/2?"top":"bottom",q=64,ne=!!t;let U=null,X=null;return ne&&(t=t.map((R,ae)=>({...R,value:R.value||0,color:u.lightenHexColor(c,ae/t.length)})),U=u.makeDonut({series:t},a+r.value.absoluteWidth/4-14,re==="top"?T-q:T+q,28,28,1.99999,2,1,360,105.25,14),X=u.makeDonut({series:t},a-k+20,s-d-v-o*n/2,6,6,1.99999,2,1,360,105.25,6)),{donut:U,miniDonut:X,sidePointer:{x:a-k,y:s-d-v-o*n/2,topY:s-d-v-o*n,height:o*n},apexBottom:{y:s-d,x:a/2},apexTop:{y:s-d-o*n,x:a/2},right:`M${a/2},${s-d} ${a/2},${s-d-o*n} ${a-k},${s-d-v-o*n} ${a-k},${s-d-v}Z`,left:`M${a/2},${s-d} ${a/2},${s-d-o*n} ${h}, ${s-d-v-o*n} ${h},${s-d-v}Z`,liningTop:`M${h},${s-d-v-o*n} ${a/2},${s-d-o*n} ${a-k},${s-d-v-o*n}`,liningTopShade:`M${h},${s-d-v-o*n-.5} ${a/2},${s-d-o*n-.5} ${a-k},${s-d-v-o*n-.5}`,top:`M${a/2},${s-d-o*n} ${h},${s-d-v-o*n} ${a/2},${s-d-v*2-o*n} ${a-k},${s-d-v-o*n} Z`,tubeTop:`M${h},${s-d-o*n-v} C ${h},${s-d-o*n-v*2.5} ${a-k},${s-d-o*n-v*2.5} ${a-k},${s-d-o*n-v} C ${a-k},${s-d-o*n+v/2} ${h},${s-d-o*n+v/2} ${h},${s-d-o*n-v}`,bottomTubeTop:`M ${a-k-.5},${s-d-v} C ${a-k-.5},${s-d+v/2} ${h},${s-d+v/2} ${h+.5},${s-d-v}`,tubeBody:`M
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DC98WFA9.cjs"),se=require("./Title-NxuZWg-H.cjs"),Z=require("./usePrinter-DOwo3slV.cjs"),ue=require("./vue-ui-skeleton-gtTH6DCC.cjs"),ie=require("./DataTable-jPEnygiD.cjs"),ce=require("./vue-ui-accordion-Bw-stCgX.cjs"),Y=require("./useNestedProp-DLm4WQqO.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P=N=>(e.pushScopeId("data-v-06e93dd9"),N=N(),e.popScopeId(),N),he=["id"],ve=["xmlns","viewBox"],pe=["id"],fe=["stop-color"],ke=["stop-color"],me=["id"],ye=["stop-color"],ge=["stop-color"],$e=["id"],_e=["stop-color"],xe=["stop-color"],Be=["id"],be=["stop-color"],Ce=["stop-color"],Ee=["stop-color"],we={key:0},Ne=["id"],Ve=["stop-color"],Fe=["stop-color"],Me=["id"],Se=["stop-color"],De=["stop-color"],Pe=["id"],Le=["stop-color"],Te=["stop-color"],ze=["id"],je=P(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),Oe=P(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),He=[je,Oe],Ie=["x","y","font-size","font-weight","fill"],We=["x","y"],Ge=["d","stroke"],Ae=["d","stroke"],qe={key:3},Ue={key:0},Xe=["stroke-dasharray","d","stroke","stroke-width"],Re=["stroke-dasharray","d","stroke","stroke-width"],Ze=["stroke-dasharray","d","stroke","stroke-width"],Ye=["stroke-dasharray","d","stroke","stroke-width"],Je={key:1},Ke=["d","stroke","stroke-width","fill"],Qe=["d","stroke","stroke-width","fill"],et=["d","stroke","stroke-width","fill"],tt={key:2},lt=["d","fill","onMouseenter","onClick"],ot=["d","fill","onMouseenter","onClick"],rt=["d","fill","onMouseenter","onClick"],nt=["d","onMouseenter","onClick"],at=["d"],st=["d","stroke"],ut=["onClick"],it=["stroke","d"],ct=["cx","cy","fill","stroke"],dt=["x","y","width","height"],ht={key:1},vt=["d","stroke"],pt=["d","fill","stroke"],ft=["id"],kt=["stop-color"],mt=P(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),yt=["stop-color"],gt=["cx","cy","fill"],$t=["cx","cy","fill"],_t={key:0},xt=["text-anchor","x","y","fill","font-size"],Bt=["text-anchor","x","y","fill","font-size"],bt={key:2},Ct=["d","fill","stroke"],Et={key:4},wt={key:0},Nt=["stroke-dasharray","d","stroke","stroke-width"],Vt=["stroke-dasharray","d","stroke","stroke-width"],Ft=["stroke-dasharray","d","stroke","stroke-width"],Mt=["stroke-dasharray","d","stroke","stroke-width"],St=["d","stroke","stroke-width","fill"],Dt=["d","stroke","stroke-width","fill"],Pt={key:1},Lt=["onClick"],Tt=["id"],zt=["stop-color"],jt=["stop-color"],Ot=["id"],Ht=["stop-color"],It=["stop-color"],Wt=["stop-color"],Gt=["stop-color"],At=["stop-color"],qt=["onMouseenter","onClick","d","fill"],Ut=["onMouseenter","onClick","d"],Xt=["onMouseenter","onClick","d","fill"],Rt=["onClick"],Zt=["stroke","d"],Yt=["cx","cy","fill","stroke"],Jt=["x","y","width","height"],Kt={key:1},Qt=["d","stroke"],el=["d","fill","stroke"],tl=["id"],ll=["stop-color"],ol=P(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),rl=["stop-color"],nl=["cx","cy","fill"],al=["cx","cy","fill"],sl={key:0},ul=["text-anchor","x","y","fill","font-size"],il=["text-anchor","x","y","fill","font-size"],cl={key:2},dl=["d","fill","stroke"],hl={key:3,class:"vue-data-ui-watermark"},vl=["innerHTML"],pl={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:J,emit:F}){const f=N,{vue_ui_3d_bar:K}=u.useConfig(),M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),m=e.ref(u.createUid()),Q=e.ref(null),z=e.ref(null),b=e.ref(!1),l=e.computed(()=>{const i=Y.useNestedProp({userConfig:f.config,defaultConfig:K});return i.theme?{...Y.useNestedProp({userConfig:u.themes.vue_ui_3d_bar[i.theme]||f.config,defaultConfig:i}),customPalette:u.themePalettes[i.theme]||u.palette}:i}),{isPrinting:j,isImaging:O,generatePdf:H,generateImage:I}=Z.usePrinter({elementId:`3d_bar_${m.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),ee=e.computed(()=>u.convertCustomPalette(l.value.customPalette)),S=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),r=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const i=f.dataset.series.map(o=>o.value||0).reduce((o,a)=>o+a,0),n=f.dataset.series.map((o,a)=>({...o,id:u.createUid(),proportion:(o.value||0)/i,color:u.convertColorToHex(o.color)||ee.value[a]||u.palette[a]||u.palette[a%u.palette.length],breakdown:o.breakdown?o.breakdown.sort((s,p)=>p.value-s.value):null})).sort((o,a)=>a.value-o.value),t=[];let c=0;for(let o=0;o<n.length;o+=1)t.push({...n[o],fill:te(c,n[o].proportion,n[o].breakdown,n[o].color)}),c+=n[o].proportion;return t}return null}),x=e.computed(()=>({right:`M${r.value.width/2},${r.value.top} ${r.value.width-r.value.right}, ${r.value.top+r.value.perspective} ${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective} ${r.value.width/2},${r.value.height-r.value.bottom}`,left:`M${r.value.width/2},${r.value.top} ${r.value.left},${r.value.top+r.value.perspective} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective} ${r.value.width/2},${r.value.height-r.value.bottom}`,side:`M${r.value.width/2},${r.value.height-r.value.bottom} ${r.value.width/2},${r.value.top+r.value.perspective*2}`,topSides:`M${r.value.left},${r.value.top+r.value.perspective} ${r.value.width/2},${r.value.top+r.value.perspective*2} ${r.value.width-r.value.right},${r.value.top+r.value.perspective}`,tubeTop:`M${r.value.left},${r.value.top+r.value.perspective} C ${r.value.left},${r.value.top-r.value.perspective/3} ${r.value.width-r.value.right},${r.value.top-r.value.perspective/3} ${r.value.width-r.value.right},${r.value.top+r.value.perspective} C ${r.value.width-r.value.right},${r.value.top+r.value.perspective*2.3} ${r.value.left},${r.value.top+r.value.perspective*2.3} ${r.value.left},${r.value.top+r.value.perspective}`,tubeLeft:`M${r.value.left},${r.value.top+r.value.perspective} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective}`,tubeRight:`M${r.value.width-r.value.right},${r.value.top+r.value.perspective} ${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective}`,tubeBottom:`M${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective} C ${r.value.width-r.value.right},${r.value.height} ${r.value.left},${r.value.height} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{u.objectIsEmpty(f.dataset)?u.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(s=>{u.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:s,index:a})}),o.breakdown&&o.breakdown.forEach((s,p)=>{u.getMissingDatasetAttributes({datasetObject:s,requiredAttributes:["name","value"]}).forEach(k=>{u.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:k,index:`${a} - ${p}`})})})}):u.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(o=>{u.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:o})});let i=0,n=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=n+i,i+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function te(i,n,t,c){const o=r.value.height-r.value.bottom-r.value.top-r.value.perspective*2,{width:a,height:s,bottom:p,right:k,left:h,perspective:v}=r.value,d=p+o*i,T=s-d-v-o*n/2,re=T>r.value.height/2?"top":"bottom",q=64,ne=!!t;let U=null,X=null;return ne&&(t=t.map((R,ae)=>({...R,value:R.value||0,color:u.lightenHexColor(c,ae/t.length)})),U=u.makeDonut({series:t},a+r.value.absoluteWidth/4-14,re==="top"?T-q:T+q,28,28,1.99999,2,1,360,105.25,14),X=u.makeDonut({series:t},a-k+20,s-d-v-o*n/2,6,6,1.99999,2,1,360,105.25,6)),{donut:U,miniDonut:X,sidePointer:{x:a-k,y:s-d-v-o*n/2,topY:s-d-v-o*n,height:o*n},apexBottom:{y:s-d,x:a/2},apexTop:{y:s-d-o*n,x:a/2},right:`M${a/2},${s-d} ${a/2},${s-d-o*n} ${a-k},${s-d-v-o*n} ${a-k},${s-d-v}Z`,left:`M${a/2},${s-d} ${a/2},${s-d-o*n} ${h}, ${s-d-v-o*n} ${h},${s-d-v}Z`,liningTop:`M${h},${s-d-v-o*n} ${a/2},${s-d-o*n} ${a-k},${s-d-v-o*n}`,liningTopShade:`M${h},${s-d-v-o*n-.5} ${a/2},${s-d-o*n-.5} ${a-k},${s-d-v-o*n-.5}`,top:`M${a/2},${s-d-o*n} ${h},${s-d-v-o*n} ${a/2},${s-d-v*2-o*n} ${a-k},${s-d-v-o*n} Z`,tubeTop:`M${h},${s-d-o*n-v} C ${h},${s-d-o*n-v*2.5} ${a-k},${s-d-o*n-v*2.5} ${a-k},${s-d-o*n-v} C ${a-k},${s-d-o*n+v/2} ${h},${s-d-o*n+v/2} ${h},${s-d-o*n-v}`,bottomTubeTop:`M ${a-k-.5},${s-d-v} C ${a-k-.5},${s-d+v/2} ${h},${s-d+v/2} ${h+.5},${s-d-v}`,tubeBody:`M
2
2
  ${h},${s-d-o*n-v}
3
3
  C ${h},${s-d-o*n+v/2}
4
4
  ${a-k},${s-d-o*n+v/2}
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, openBlock as u, createElementBlock as v, createElementVNode as n, normalizeClass as $, normalizeStyle as p, renderSlot as c, normalizeProps as i, mergeProps as O, createBlock as D, createCommentVNode as N, guardReactiveProps as m } from "vue";
2
- import w from "./BaseIcon-D93rtrSm.js";
3
- import { u as x } from "./useNestedProp-6FL791Qt.js";
4
- import { u as B, c as I } from "./index-b22AFna7.js";
2
+ import w from "./BaseIcon-Dn--aRqh.js";
3
+ import { u as x } from "./useNestedProp-DLR5FOhw.js";
4
+ import { u as B, c as I } from "./index-tBV7ojX4.js";
5
5
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const F = ["id"], P = {
7
7
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-HycAYj53.cjs"),g=require("./useNestedProp-BbpR9SM4.cjs"),u=require("./index-DDwHKEGb.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-r6sTvN4e.cjs"),g=require("./useNestedProp-DLm4WQqO.cjs"),u=require("./index-DC98WFA9.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
@@ -1,13 +1,13 @@
1
1
  import { computed as b, ref as y, onMounted as fe, openBlock as i, createElementBlock as r, normalizeClass as le, normalizeStyle as B, createVNode as E, createCommentVNode as h, createBlock as W, unref as d, createSlots as ce, withCtx as g, renderSlot as p, normalizeProps as P, guardReactiveProps as N, createElementVNode as n, Fragment as L, renderList as I, toDisplayString as w, createTextVNode as ae, nextTick as ge } from "vue";
2
- import { u as pe, c as be, t as xe, o as me, e as we, s as v, X as ke, v as oe, w as X, i as k, f as _, x as _e, y as $e, q as Ce, r as Te } from "./index-b22AFna7.js";
2
+ import { u as pe, c as be, t as xe, o as me, e as we, s as v, X as ke, v as oe, w as X, i as k, f as _, x as _e, y as $e, q as Ce, r as Te } from "./index-tBV7ojX4.js";
3
3
  import { t as Le, u as Ae } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Se } from "./Title-CzxknLI3.js";
5
- import { u as ze, U as Ie } from "./usePrinter-C_wOlUXy.js";
6
- import { _ as Fe } from "./Tooltip-DYVjAqo-.js";
7
- import { D as Me } from "./DataTable-Bwco5wF0.js";
8
- import Oe from "./vue-ui-skeleton-c0TzbjC0.js";
9
- import Pe from "./vue-ui-accordion-H9MtAuZL.js";
10
- import { u as se } from "./useNestedProp-6FL791Qt.js";
4
+ import { _ as Se } from "./Title-CJpYIMsB.js";
5
+ import { u as ze, U as Ie } from "./usePrinter-BiDlcasQ.js";
6
+ import { _ as Fe } from "./Tooltip-CPnJc4M4.js";
7
+ import { D as Me } from "./DataTable-BwSXMffc.js";
8
+ import Oe from "./vue-ui-skeleton-XKmaSsvx.js";
9
+ import Pe from "./vue-ui-accordion-3GMC-9lb.js";
10
+ import { u as se } from "./useNestedProp-DLR5FOhw.js";
11
11
  import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Re = ["id"], De = ["xmlns", "viewBox"], Ge = ["id"], Be = ["stop-color"], Ee = ["stop-color"], We = ["id"], Xe = ["stop-color"], Ue = ["stop-color"], Ve = ["x", "y", "width", "height", "fill", "rx"], Ye = ["x", "y", "width", "height", "fill", "rx"], je = ["x", "y", "width", "height", "fill", "rx"], He = ["x", "y", "width", "height", "fill", "rx"], qe = { key: 0 }, Je = ["x", "y", "fill", "font-size", "font-weight"], Ke = ["x", "y", "fill", "font-size", "font-weight"], Qe = { key: 1 }, Ze = ["x", "y", "font-size", "fill", "font-weight"], et = { key: 2 }, tt = { key: 0 }, lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], at = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], st = ["x", "y", "font-size", "fill", "font-weight"], it = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ut = ["x", "y", "font-size", "fill", "font-weight"], rt = ["x", "y", "font-size", "fill", "font-weight"], nt = ["x", "y", "width", "height", "fill", "onMouseover"], dt = {
13
13
  key: 3,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-DDwHKEGb.cjs"),F=require("./useResponsive-B3TrDDIG.cjs"),j=require("./Title-B6PVw0aK.cjs"),D=require("./usePrinter-CRKoRqbE.cjs"),Y=require("./Tooltip-Ci47DnuY.cjs"),J=require("./DataTable-DkoeHXI5.cjs"),K=require("./vue-ui-skeleton-BeqLQi6X.cjs"),Q=require("./vue-ui-accordion-BBDPcl3d.cjs"),M=require("./useNestedProp-BbpR9SM4.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te=["xmlns","viewBox"],le=["id"],ae=["stop-color"],oe=["stop-color"],se=["id"],ie=["stop-color"],re=["stop-color"],ue=["x","y","width","height","fill","rx"],ne=["x","y","width","height","fill","rx"],de=["x","y","width","height","fill","rx"],ve=["x","y","width","height","fill","rx"],ce={key:0},ye=["x","y","fill","font-size","font-weight"],he=["x","y","fill","font-size","font-weight"],fe={key:1},ge=["x","y","font-size","fill","font-weight"],pe={key:2},be={key:0},xe=["x1","x2","y1","y2","stroke","stroke-width"],me=["x1","x2","y1","y2","stroke","stroke-width"],ke=["x1","x2","y1","y2","stroke","stroke-width"],we=["x","y","font-size","fill","font-weight"],Ce=["x1","x2","y1","y2","stroke","stroke-width"],_e=["x","y","font-size","fill","font-weight"],Ne=["x","y","font-size","fill","font-weight"],Le=["x","y","width","height","fill","onMouseover"],Se={key:3,class:"vue-data-ui-watermark"},Te={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(N,{expose:O}){const d=N,{vue_ui_age_pyramid:R}=s.useConfig(),x=t.computed(()=>!!d.dataset&&d.dataset.length),v=t.ref(s.createUid()),q=t.ref(null),w=t.ref(!1),C=t.ref(""),m=t.ref(null),L=t.ref(0),g=t.ref(null),S=t.ref(null),e=t.computed(()=>{const l=M.useNestedProp({userConfig:d.config,defaultConfig:R});return l.theme?{...M.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||d.config,defaultConfig:l})}:l}),T=t.ref(null);t.onMounted(()=>{if(s.objectIsEmpty(d.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),e.value.responsive){const l=F.throttle(()=>{const{width:r,height:a}=F.useResponsive({chart:g.value,title:e.value.style.title.text?S.value:null});n.value.width=r,n.value.height=a});T.value=new ResizeObserver(l),T.value.observe(g.value.parentNode)}});const{isPrinting:$,isImaging:B,generatePdf:A,generateImage:E}=D.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:e.value.style.title.text||"vue-ui-age-pyramid"}),c=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),n=t.ref({height:e.value.style.height,width:e.value.style.width}),i=t.computed(()=>{const l=n.value.width-e.value.style.layout.padding.right-e.value.style.layout.padding.left,r=e.value.style.layout.padding.left,a=n.value.width-e.value.style.layout.padding.right;return{top:e.value.style.layout.padding.top,left:r,right:a,bottom:n.value.height-e.value.style.layout.padding.bottom,width:l,height:n.value.height-e.value.style.layout.padding.top-e.value.style.layout.padding.bottom,centerX:e.value.style.layout.padding.left+l/2,leftChart:{width:l/2-e.value.style.layout.centerSlit.width,right:r+l/2-e.value.style.layout.centerSlit.width},rightChart:{width:l/2-e.value.style.layout.centerSlit.width,left:r+l/2+e.value.style.layout.centerSlit.width}}}),G=t.computed(()=>d.dataset.map(l=>e.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=t.computed(()=>{const l=U(p.value/5),r=[],a=[];for(let o=0;o<=5;o+=1){const u=l*o,I=l*(o-5);r.push({value:u,x:i.value.left+i.value.width/2+e.value.style.layout.centerSlit.width+u/p.value*i.value.leftChart.width}),a.push({value:Math.abs(I),x:i.value.left+i.value.width/2+I/p.value*i.value.leftChart.width-e.value.style.layout.centerSlit.width})}return{right:r,left:a}});function U(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const p=t.computed(()=>Math.max(...d.dataset.flatMap(l=>l.slice(-2).map(r=>s.checkNaN(r))))),h=t.computed(()=>d.dataset.length),W=t.computed(()=>d.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/p.value},right:{value:l[3],proportionToMax:l[3]/p.value}}))),f=t.computed(()=>W.value.map((l,r)=>{const a=i.value.top+i.value.height/h.value*r,o=i.value.height/h.value-e.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:e.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*i.value.leftChart.width),height:o},right:{...l.right,y:a,color:e.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*i.value.rightChart.width),height:o}}})),_=t.ref(null);function H(l,r){m.value=l,_.value={datapoint:r,seriesIndex:l,series:f.value,config:e.value};const a=e.value.style.tooltip.customFormat;if(s.isFunction(a)&&s.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value})))C.value=a({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value});else{let o="";const u=f.value[l];o+=`<div><b>${u.segment}</b></div>`,o+=`<div>${e.value.translations.age}: ${s.applyDataLabel(e.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(u.age),s.dataLabel({v:s.checkNaN(u.age)}),{datapoint:r,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${s.applyDataLabel(e.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${s.applyDataLabel(e.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value),s.dataLabel({v:s.checkNaN(u.right.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${s.applyDataLabel(e.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value)+s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.right.value)+s.checkNaN(u.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+="</div>",C.value=`<div>${o}</div>`}w.value=!0}function z(){t.nextTick(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(u=>[u[0],u[1],u[2],u[3],u[2]+u[3]]),a=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),o=s.createCsvContent(a);s.downloadCsv({csvContent:o,title:e.value.style.title.text||"vue-ui-heatmap"})})}const k=t.computed(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint};return{head:l,body:r,config:a,colNames:l}}),b=t.ref(!1);function X(l){b.value=l,L.value+=1}function V(){c.value.showTable=!c.value.showTable}function P(){c.value.showTooltip=!c.value.showTooltip}return O({generatePdf:A,generateCsv:z,generateImage:E,toggleTable:V,toggleTooltip:P}),(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.value}`,style:t.normalizeStyle(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive?"height:100%":""}`)},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:S,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(j._sfc_main,{config:{title:{cy:"pyramid-div-title",...e.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&x.value?(t.openBlock(),t.createBlock(D.UserOptions,{ref_key:"details",ref:q,key:`user_options_${L.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(B),isPrinting:t.unref($),uid:v.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasXls:e.value.userOptions.buttons.csv,hasImg:e.value.userOptions.buttons.img,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:c.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:t.unref(A),onGenerateCsv:z,onGenerateImage:t.unref(E),onToggleTable:V,onToggleTooltip:P},t.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),x.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(s.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.bars.left.color},null,8,ae),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(s.shiftHue)(e.value.style.layout.bars.left.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(s.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,oe)],8,le),t.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${t.unref(s.shiftHue)(e.value.style.layout.bars.right.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(s.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,ie),t.createElementVNode("stop",{offset:"100%","stop-color":e.value.style.layout.bars.right.color},null,8,re)],8,se)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:t.unref(s.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,ue),t.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:a.left.color,rx:e.value.style.layout.bars.borderRadius},null,8,ne),t.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,de),t.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:a.right.color,rx:e.value.style.layout.bars.borderRadius},null,8,ve)]))),256)),t.createElementVNode("g",null,[e.value.style.layout.dataLabels.sideTitles.show?(t.openBlock(),t.createElementBlock("g",ce,[t.createElementVNode("text",{x:i.value.left,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.left.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.female),9,ye),t.createElementVNode("text",{x:i.value.right,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.right.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.male),9,he)])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.yAxis.show?(t.openBlock(),t.createElementBlock("g",fe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o%e.value.style.layout.dataLabels.yAxis.showEvery===0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/h.value*o+e.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":e.value.style.layout.dataLabels.yAxis.fontSize,fill:e.value.style.layout.dataLabels.yAxis.color,"font-weight":e.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},t.toDisplayString(t.unref(s.applyDataLabel)(e.value.style.layout.dataLabels.yAxis.formatter,a,t.unref(s.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,ge)):t.createCommentVNode("",!0)],64))),256))])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.xAxis.show?(t.openBlock(),t.createElementBlock("g",pe,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",be,[t.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xe),t.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,me)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.right,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ke)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:a.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(t.unref(s.applyDataLabel)(e.value.style.layout.dataLabels.xAxis.formatter,a.value/e.value.style.layout.dataLabels.xAxis.scale,t.unref(s.dataLabel)({v:a.value/e.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,we)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.left,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ce)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:a.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(t.unref(s.applyDataLabel)(e.value.style.layout.dataLabels.xAxis.formatter,a.value/e.value.style.layout.dataLabels.xAxis.scale,t.unref(s.dataLabel)({v:a.value/e.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,_e)]))),256)),t.createElementVNode("text",{x:i.value.right,y:n.value.height,"text-anchor":"end","font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.dataLabels.xAxis.translation),9,Ne)])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.dataset,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/h.value*o-e.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/h.value<=0?1e-4:i.value.height/h.value,fill:m.value!==null&&m.value===o?`${e.value.style.highlighter.color}${t.unref(s.opacity)[e.value.style.highlighter.opacity]}`:"transparent",onMouseover:u=>H(o,a),onMouseleave:r[0]||(r[0]=u=>{m.value=null,w.value=!1})},null,40,Le)]))),256)),t.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,te)):t.createCommentVNode("",!0),l.$slots.watermark?(t.openBlock(),t.createElementBlock("div",Se,[t.renderSlot(l.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:t.unref($)||t.unref(B)})),void 0,!0)])):t.createCommentVNode("",!0),x.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(K.default,{key:4,config:{type:"pyramid",style:{backgroundColor:e.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),t.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),t.createVNode(Y._sfc_main,{show:c.value.showTooltip&&w.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,position:e.value.style.tooltip.position,offsetY:e.value.style.tooltip.offsetY,parent:g.value,content:C.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(t.openBlock(),t.createBlock(Q.default,{key:5,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(J.DataTable,{colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=a=>c.value.showTable=!1)},{th:t.withCtx(({th:a})=>[t.createTextVNode(t.toDisplayString(a),1)]),td:t.withCtx(({td:a})=>[t.createTextVNode(t.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ee))}},$e=Z._export_sfc(Te,[["__scopeId","data-v-4660f4e6"]]);exports.default=$e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-DC98WFA9.cjs"),F=require("./useResponsive-B3TrDDIG.cjs"),j=require("./Title-NxuZWg-H.cjs"),D=require("./usePrinter-DOwo3slV.cjs"),Y=require("./Tooltip-D5XlXHnd.cjs"),J=require("./DataTable-jPEnygiD.cjs"),K=require("./vue-ui-skeleton-gtTH6DCC.cjs"),Q=require("./vue-ui-accordion-Bw-stCgX.cjs"),M=require("./useNestedProp-DLm4WQqO.cjs"),Z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=["id"],te=["xmlns","viewBox"],le=["id"],ae=["stop-color"],oe=["stop-color"],se=["id"],ie=["stop-color"],re=["stop-color"],ue=["x","y","width","height","fill","rx"],ne=["x","y","width","height","fill","rx"],de=["x","y","width","height","fill","rx"],ve=["x","y","width","height","fill","rx"],ce={key:0},ye=["x","y","fill","font-size","font-weight"],he=["x","y","fill","font-size","font-weight"],fe={key:1},ge=["x","y","font-size","fill","font-weight"],pe={key:2},be={key:0},xe=["x1","x2","y1","y2","stroke","stroke-width"],me=["x1","x2","y1","y2","stroke","stroke-width"],ke=["x1","x2","y1","y2","stroke","stroke-width"],we=["x","y","font-size","fill","font-weight"],Ce=["x1","x2","y1","y2","stroke","stroke-width"],_e=["x","y","font-size","fill","font-weight"],Ne=["x","y","font-size","fill","font-weight"],Le=["x","y","width","height","fill","onMouseover"],Se={key:3,class:"vue-data-ui-watermark"},Te={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(N,{expose:O}){const d=N,{vue_ui_age_pyramid:R}=s.useConfig(),x=t.computed(()=>!!d.dataset&&d.dataset.length),v=t.ref(s.createUid()),q=t.ref(null),w=t.ref(!1),C=t.ref(""),m=t.ref(null),L=t.ref(0),g=t.ref(null),S=t.ref(null),e=t.computed(()=>{const l=M.useNestedProp({userConfig:d.config,defaultConfig:R});return l.theme?{...M.useNestedProp({userConfig:s.themes.vue_ui_age_pyramid[l.theme]||d.config,defaultConfig:l})}:l}),T=t.ref(null);t.onMounted(()=>{if(s.objectIsEmpty(d.dataset)&&s.error({componentName:"VueUiAgePyramid",type:"dataset"}),e.value.responsive){const l=F.throttle(()=>{const{width:r,height:a}=F.useResponsive({chart:g.value,title:e.value.style.title.text?S.value:null});n.value.width=r,n.value.height=a});T.value=new ResizeObserver(l),T.value.observe(g.value.parentNode)}});const{isPrinting:$,isImaging:B,generatePdf:A,generateImage:E}=D.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:e.value.style.title.text||"vue-ui-age-pyramid"}),c=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),n=t.ref({height:e.value.style.height,width:e.value.style.width}),i=t.computed(()=>{const l=n.value.width-e.value.style.layout.padding.right-e.value.style.layout.padding.left,r=e.value.style.layout.padding.left,a=n.value.width-e.value.style.layout.padding.right;return{top:e.value.style.layout.padding.top,left:r,right:a,bottom:n.value.height-e.value.style.layout.padding.bottom,width:l,height:n.value.height-e.value.style.layout.padding.top-e.value.style.layout.padding.bottom,centerX:e.value.style.layout.padding.left+l/2,leftChart:{width:l/2-e.value.style.layout.centerSlit.width,right:r+l/2-e.value.style.layout.centerSlit.width},rightChart:{width:l/2-e.value.style.layout.centerSlit.width,left:r+l/2+e.value.style.layout.centerSlit.width}}}),G=t.computed(()=>d.dataset.map(l=>e.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),y=t.computed(()=>{const l=U(p.value/5),r=[],a=[];for(let o=0;o<=5;o+=1){const u=l*o,I=l*(o-5);r.push({value:u,x:i.value.left+i.value.width/2+e.value.style.layout.centerSlit.width+u/p.value*i.value.leftChart.width}),a.push({value:Math.abs(I),x:i.value.left+i.value.width/2+I/p.value*i.value.leftChart.width-e.value.style.layout.centerSlit.width})}return{right:r,left:a}});function U(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const p=t.computed(()=>Math.max(...d.dataset.flatMap(l=>l.slice(-2).map(r=>s.checkNaN(r))))),h=t.computed(()=>d.dataset.length),W=t.computed(()=>d.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/p.value},right:{value:l[3],proportionToMax:l[3]/p.value}}))),f=t.computed(()=>W.value.map((l,r)=>{const a=i.value.top+i.value.height/h.value*r,o=i.value.height/h.value-e.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:e.value.style.layout.bars.left.color,x:i.value.leftChart.right-l.left.proportionToMax*i.value.leftChart.width,width:s.checkNaN(l.left.proportionToMax*i.value.leftChart.width),height:o},right:{...l.right,y:a,color:e.value.style.layout.bars.right.color,x:i.value.rightChart.left,width:s.checkNaN(l.right.proportionToMax*i.value.rightChart.width),height:o}}})),_=t.ref(null);function H(l,r){m.value=l,_.value={datapoint:r,seriesIndex:l,series:f.value,config:e.value};const a=e.value.style.tooltip.customFormat;if(s.isFunction(a)&&s.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value})))C.value=a({seriesIndex:l,datapoint:{segment:r[0],index:r[1],left:r[2],right:r[3]},series:f.value,config:e.value});else{let o="";const u=f.value[l];o+=`<div><b>${u.segment}</b></div>`,o+=`<div>${e.value.translations.age}: ${s.applyDataLabel(e.value.style.layout.dataLabels.yAxis.formatter,s.checkNaN(u.age),s.dataLabel({v:s.checkNaN(u.age)}),{datapoint:r,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${s.applyDataLabel(e.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${s.applyDataLabel(e.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value),s.dataLabel({v:s.checkNaN(u.right.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${s.applyDataLabel(e.value.style.layout.dataLabels.xAxis.formatter,s.checkNaN(u.right.value)+s.checkNaN(u.left.value),s.dataLabel({v:s.checkNaN(u.right.value)+s.checkNaN(u.left.value)}),{datapoint:r,seriesIndex:l})}</b></div></div>`,o+="</div>",C.value=`<div>${o}</div>`}w.value=!0}function z(){t.nextTick(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(u=>[u[0],u[1],u[2],u[3],u[2]+u[3]]),a=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(r),o=s.createCsvContent(a);s.downloadCsv({csvContent:o,title:e.value.style.title.text||"vue-ui-heatmap"})})}const k=t.computed(()=>{const l=[e.value.translations.year,e.value.translations.age,e.value.translations.female,e.value.translations.male,e.value.translations.total],r=d.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint};return{head:l,body:r,config:a,colNames:l}}),b=t.ref(!1);function X(l){b.value=l,L.value+=1}function V(){c.value.showTable=!c.value.showTable}function P(){c.value.showTooltip=!c.value.showTooltip}return O({generatePdf:A,generateCsv:z,generateImage:E,toggleTable:V,toggleTooltip:P}),(l,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:g,id:`vue-ui-age-pyramid_${v.value}`,style:t.normalizeStyle(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive?"height:100%":""}`)},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:S,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(j._sfc_main,{config:{title:{cy:"pyramid-div-title",...e.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&x.value?(t.openBlock(),t.createBlock(D.UserOptions,{ref_key:"details",ref:q,key:`user_options_${L.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(B),isPrinting:t.unref($),uid:v.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasXls:e.value.userOptions.buttons.csv,hasImg:e.value.userOptions.buttons.img,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:c.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:t.unref(A),onGenerateCsv:z,onGenerateImage:t.unref(E),onToggleTable:V,onToggleTooltip:P},t.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),x.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(s.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.bars.left.color},null,8,ae),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(s.shiftHue)(e.value.style.layout.bars.left.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(s.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,oe)],8,le),t.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${t.unref(s.shiftHue)(e.value.style.layout.bars.right.color,e.value.style.layout.bars.gradient.shiftHue)}${t.unref(s.opacity)[100-e.value.style.layout.bars.gradient.intensity]}`},null,8,ie),t.createElementVNode("stop",{offset:"100%","stop-color":e.value.style.layout.bars.right.color},null,8,re)],8,se)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:t.unref(s.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,ue),t.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:a.left.color,rx:e.value.style.layout.bars.borderRadius},null,8,ne),t.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:e.value.style.layout.bars.gradient.underlayer,rx:e.value.style.layout.bars.borderRadius},null,8,de),t.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:e.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:a.right.color,rx:e.value.style.layout.bars.borderRadius},null,8,ve)]))),256)),t.createElementVNode("g",null,[e.value.style.layout.dataLabels.sideTitles.show?(t.openBlock(),t.createElementBlock("g",ce,[t.createElementVNode("text",{x:i.value.left,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.left.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.female),9,ye),t.createElementVNode("text",{x:i.value.right,y:i.value.top+e.value.style.layout.dataLabels.sideTitles.offsetY,fill:e.value.style.layout.dataLabels.sideTitles.useSideColor?e.value.style.layout.bars.right.color:e.value.style.layout.dataLabels.sideTitles.color,"font-size":e.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":e.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},t.toDisplayString(e.value.translations.male),9,he)])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.yAxis.show?(t.openBlock(),t.createElementBlock("g",fe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o%e.value.style.layout.dataLabels.yAxis.showEvery===0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.value.centerX,y:i.value.top+i.value.height/h.value*o+e.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":e.value.style.layout.dataLabels.yAxis.fontSize,fill:e.value.style.layout.dataLabels.yAxis.color,"font-weight":e.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},t.toDisplayString(t.unref(s.applyDataLabel)(e.value.style.layout.dataLabels.yAxis.formatter,a,t.unref(s.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,ge)):t.createCommentVNode("",!0)],64))),256))])):t.createCommentVNode("",!0),e.value.style.layout.dataLabels.xAxis.show?(t.openBlock(),t.createElementBlock("g",pe,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",be,[t.createElementVNode("line",{x1:y.value.right[0].x,x2:y.value.right.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,xe),t.createElementVNode("line",{x1:y.value.left[0].x,x2:y.value.left.at(-1).x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,me)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.right,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ke)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:a.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(t.unref(s.applyDataLabel)(e.value.style.layout.dataLabels.xAxis.formatter,a.value/e.value.style.layout.dataLabels.xAxis.scale,t.unref(s.dataLabel)({v:a.value/e.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,we)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.left,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/2,y2:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ce)):t.createCommentVNode("",!0),t.createElementVNode("text",{x:a.x,y:i.value.bottom+e.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(t.unref(s.applyDataLabel)(e.value.style.layout.dataLabels.xAxis.formatter,a.value/e.value.style.layout.dataLabels.xAxis.scale,t.unref(s.dataLabel)({v:a.value/e.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,_e)]))),256)),t.createElementVNode("text",{x:i.value.right,y:n.value.height,"text-anchor":"end","font-size":e.value.style.layout.dataLabels.xAxis.fontSize,fill:e.value.style.layout.dataLabels.xAxis.color,"font-weight":e.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.dataLabels.xAxis.translation),9,Ne)])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.dataset,(a,o)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{x:i.value.left,y:i.value.top+i.value.height/h.value*o-e.value.style.layout.bars.gap/2,width:i.value.width<=0?1e-4:i.value.width,height:i.value.height/h.value<=0?1e-4:i.value.height/h.value,fill:m.value!==null&&m.value===o?`${e.value.style.highlighter.color}${t.unref(s.opacity)[e.value.style.highlighter.opacity]}`:"transparent",onMouseover:u=>H(o,a),onMouseleave:r[0]||(r[0]=u=>{m.value=null,w.value=!1})},null,40,Le)]))),256)),t.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,te)):t.createCommentVNode("",!0),l.$slots.watermark?(t.openBlock(),t.createElementBlock("div",Se,[t.renderSlot(l.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:t.unref($)||t.unref(B)})),void 0,!0)])):t.createCommentVNode("",!0),x.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(K.default,{key:4,config:{type:"pyramid",style:{backgroundColor:e.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),t.renderSlot(l.$slots,"legend",{legend:f.value},void 0,!0),t.createVNode(Y._sfc_main,{show:c.value.showTooltip&&w.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,position:e.value.style.tooltip.position,offsetY:e.value.style.tooltip.offsetY,parent:g.value,content:C.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(t.openBlock(),t.createBlock(Q.default,{key:5,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(J.DataTable,{colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=a=>c.value.showTable=!1)},{th:t.withCtx(({th:a})=>[t.createTextVNode(t.toDisplayString(a),1)]),td:t.withCtx(({td:a})=>[t.createTextVNode(t.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ee))}},$e=Z._export_sfc(Te,[["__scopeId","data-v-4660f4e6"]]);exports.default=$e;