vue-data-ui 2.3.61 → 2.3.62

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 (162) hide show
  1. package/dist/{Arrow-B5nYwPUt.js → Arrow-Dho8ylDy.js} +1 -1
  2. package/dist/{Arrow-Dv_tprAO.cjs → Arrow-ov-EIAPu.cjs} +1 -1
  3. package/dist/{BaseIcon-aPcCSO_Z.cjs → BaseIcon-B6v-Txn-.cjs} +1 -1
  4. package/dist/{BaseIcon-DUPLRuLO.js → BaseIcon-BNStcP8c.js} +1 -1
  5. package/dist/{DataTable-NUzEZXWt.js → DataTable-luIjNnne.js} +2 -2
  6. package/dist/{DataTable-B6xCb-DR.cjs → DataTable-yf_eyv8c.cjs} +1 -1
  7. package/dist/{Legend-ePmJ_YIA.cjs → Legend-6JY5pUsT.cjs} +1 -1
  8. package/dist/{Legend-C3tseguI.js → Legend-B9dawQa7.js} +1 -1
  9. package/dist/{Shape-DAe5uqIA.cjs → Shape-BoXM3HKY.cjs} +1 -1
  10. package/dist/{Shape-BPcWPP9D.js → Shape-BsAETTif.js} +1 -1
  11. package/dist/{Slicer-BJs52Jle.cjs → Slicer-DoMAeSUY.cjs} +1 -1
  12. package/dist/{Slicer-CmHwU6if.js → Slicer-iGmqxtRQ.js} +9 -9
  13. package/dist/{Title-B_p983os.cjs → Title-CBcoQe02.cjs} +1 -1
  14. package/dist/{Title-BAQrVaNA.js → Title-fb3BzoXj.js} +1 -1
  15. package/dist/{Tooltip-C2dhDgoh.cjs → Tooltip-BhuD1Kc5.cjs} +1 -1
  16. package/dist/{Tooltip-B73tTE2v.js → Tooltip-CBugtvWB.js} +5 -5
  17. package/dist/{index-CwG--L4Z.js → index-BshV7sX1.js} +538 -515
  18. package/dist/{index-nPEJmXmf.cjs → index-D2ZScauW.cjs} +4 -4
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-BqwYEJGM.js → useNestedProp-B235bkr5.js} +1 -1
  21. package/dist/{useNestedProp-TbnnNrH2.cjs → useNestedProp-BU7yyXFA.cjs} +1 -1
  22. package/dist/{usePrinter-Do9tGYem.js → usePrinter-Culo-aKo.js} +1 -1
  23. package/dist/{usePrinter-D012Olnq.cjs → usePrinter-eqT4IYET.cjs} +1 -1
  24. package/dist/{vue-data-ui-DQAJDvpX.cjs → vue-data-ui-B7ebF4_E.cjs} +1 -1
  25. package/dist/{vue-data-ui-ORLyt-v3.js → vue-data-ui-aJ6K70wA.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +7 -7
  28. package/dist/{vue-ui-3d-bar--ztApFzW.js → vue-ui-3d-bar-BYgxIW27.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-BRbooRg3.cjs → vue-ui-3d-bar-DFv8qpsI.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-Be_wWB1T.js → vue-ui-accordion-B6AxEnAr.js} +3 -3
  31. package/dist/{vue-ui-accordion-CHL4xuW4.cjs → vue-ui-accordion-BhCJcWDd.cjs} +1 -1
  32. package/dist/vue-ui-age-pyramid-BBRjCRtS.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-DLIladXC.js → vue-ui-age-pyramid-yZrvdnPP.js} +226 -226
  34. package/dist/{vue-ui-annotator-CS2d8F8x.cjs → vue-ui-annotator-CEVmAufb.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-Bxrjl1nz.js → vue-ui-annotator-ZKUlOqUq.js} +1 -1
  36. package/dist/{vue-ui-candlestick-tumv-lhv.cjs → vue-ui-candlestick-CUNLZRIM.cjs} +2 -2
  37. package/dist/{vue-ui-candlestick-BppLVU6c.js → vue-ui-candlestick-De4WgpPk.js} +158 -158
  38. package/dist/{vue-ui-carousel-table-BsFNypM6.cjs → vue-ui-carousel-table-C968uL6J.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BnOsmGVc.js → vue-ui-carousel-table-DJ0AWPea.js} +4 -4
  40. package/dist/{vue-ui-chestnut-DFb7M_SC.js → vue-ui-chestnut-Cl0UKWsI.js} +65 -64
  41. package/dist/{vue-ui-chestnut-tK8ebPQM.cjs → vue-ui-chestnut-DmjmL02K.cjs} +3 -3
  42. package/dist/{vue-ui-cursor-CYk61ZVK.js → vue-ui-cursor-BWyE3tgm.js} +2 -2
  43. package/dist/{vue-ui-cursor-D-eRMlWI.cjs → vue-ui-cursor-D5XEblLW.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-Cbk74q7K.cjs → vue-ui-dashboard-BJLi81kg.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BomFWtsP.js → vue-ui-dashboard-D9dQIIti.js} +2 -2
  46. package/dist/{vue-ui-digits-Ch9quA4D.js → vue-ui-digits-DkYpomD9.js} +2 -2
  47. package/dist/{vue-ui-digits-DWJOvgi2.cjs → vue-ui-digits-IIiSTczs.cjs} +1 -1
  48. package/dist/{vue-ui-donut-BIMgi_Qw.cjs → vue-ui-donut-Bq66xmG0.cjs} +1 -1
  49. package/dist/{vue-ui-donut-evolution-ClNciLi2.js → vue-ui-donut-evolution-Bto1ZaWx.js} +95 -95
  50. package/dist/vue-ui-donut-evolution-CNVUtEEk.cjs +1 -0
  51. package/dist/{vue-ui-donut-Ctzc7e6_.js → vue-ui-donut-uujhj36t.js} +42 -42
  52. package/dist/vue-ui-dumbbell-CLNVYG0j.cjs +9 -0
  53. package/dist/{vue-ui-dumbbell-IBrAHdlc.js → vue-ui-dumbbell-D6Xyfvff.js} +72 -72
  54. package/dist/vue-ui-flow-BwrqexSU.cjs +1 -0
  55. package/dist/vue-ui-flow-Cg4oKZz8.js +469 -0
  56. package/dist/{vue-ui-galaxy-BBKU6WqV.js → vue-ui-galaxy-D_s9dfYN.js} +91 -91
  57. package/dist/vue-ui-galaxy-DixlciaO.cjs +1 -0
  58. package/dist/{vue-ui-gauge-CDpN6D_X.js → vue-ui-gauge-DGQVW6UO.js} +84 -84
  59. package/dist/vue-ui-gauge-Jse5ZYyj.cjs +1 -0
  60. package/dist/{vue-ui-gizmo-BS-olrbu.js → vue-ui-gizmo-DDTaLaSI.js} +2 -2
  61. package/dist/{vue-ui-gizmo-Dyi4DWSA.cjs → vue-ui-gizmo-sgq75uBG.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-4-gnNgQ_.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-Bonl3GBj.js → vue-ui-heatmap-Dvd5ZGVw.js} +257 -239
  64. package/dist/{vue-ui-kpi-ChD3Gh4P.cjs → vue-ui-kpi-Co1WqN3k.cjs} +1 -1
  65. package/dist/{vue-ui-kpi-MeC195T8.js → vue-ui-kpi-aLwUkIjv.js} +3 -3
  66. package/dist/{vue-ui-mini-loader-l2G4D7lJ.js → vue-ui-mini-loader-Bm2xpTIh.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-NiTij5XQ.cjs → vue-ui-mini-loader-D98KCpoT.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-pXZ3aWlr.cjs → vue-ui-molecule-C3-9ojnv.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-C1dO-Ony.js → vue-ui-molecule-Dv4hYPVd.js} +20 -20
  70. package/dist/{vue-ui-mood-radar-C3Gv4iYr.cjs → vue-ui-mood-radar-Dh3Q2NiI.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-BVpJ3O4m.js → vue-ui-mood-radar-DsIPsXTh.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-Cwk0M7SE.cjs → vue-ui-nested-donuts-CFC8tyGY.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-Dmeqsml8.js → vue-ui-nested-donuts-CZ9vcclX.js} +120 -120
  74. package/dist/{vue-ui-onion-BmJO696O.cjs → vue-ui-onion-BLV33CBr.cjs} +1 -1
  75. package/dist/{vue-ui-onion-Ogj_rMlX.js → vue-ui-onion-CI9ARfRM.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-Cqm7uMBs.cjs → vue-ui-parallel-coordinate-plot-CIhpHeCI.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-BBBuJdGN.js → vue-ui-parallel-coordinate-plot-CxzFJuza.js} +69 -69
  78. package/dist/{vue-ui-quadrant-DcqQwIsD.cjs → vue-ui-quadrant-CS3LAiCu.cjs} +1 -1
  79. package/dist/{vue-ui-quadrant-BJtgJ_lu.js → vue-ui-quadrant-DenUcNcS.js} +36 -36
  80. package/dist/{vue-ui-quick-chart-D7dCfDSL.js → vue-ui-quick-chart-BdpKv0ES.js} +549 -515
  81. package/dist/vue-ui-quick-chart-UxaO0jzI.cjs +15 -0
  82. package/dist/vue-ui-radar-CQ-LymAS.cjs +1 -0
  83. package/dist/{vue-ui-radar-BMxzhMFJ.js → vue-ui-radar-Dd24aGwh.js} +59 -59
  84. package/dist/{vue-ui-rating-DSgHml7s.js → vue-ui-rating-CQWK2lk1.js} +9 -9
  85. package/dist/{vue-ui-rating-buop0ul0.cjs → vue-ui-rating-DTuDjrt8.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-CdHbZK0u.js → vue-ui-relation-circle-BcOzK8Iz.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-BACMnvv8.cjs → vue-ui-relation-circle-DMhNCwpg.cjs} +1 -1
  88. package/dist/vue-ui-rings--pu1fIcl.cjs +2 -0
  89. package/dist/{vue-ui-rings-BBnzxfo2.js → vue-ui-rings-yyFx2W1b.js} +188 -185
  90. package/dist/{vue-ui-scatter-DYXhTzch.js → vue-ui-scatter-BV4sXNqz.js} +378 -375
  91. package/dist/{vue-ui-scatter-sF3c5eqM.cjs → vue-ui-scatter-CrmsJjjl.cjs} +1 -1
  92. package/dist/{vue-ui-screenshot-B4WOalT6.js → vue-ui-screenshot-C6wYv3cc.js} +6 -6
  93. package/dist/{vue-ui-screenshot-D-6YvKkW.cjs → vue-ui-screenshot-eoAWixSo.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-ClzVF3vm.js → vue-ui-skeleton-7qakoAGH.js} +23 -23
  95. package/dist/{vue-ui-skeleton-D6wHGzmu.cjs → vue-ui-skeleton-BLhbQje-.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-B1cqwAN5.js → vue-ui-smiley-DG3_ORXA.js} +2 -2
  97. package/dist/{vue-ui-smiley-CoVnFdkD.cjs → vue-ui-smiley-sS92V85O.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-C9Ii4Ue5.cjs +1 -0
  99. package/dist/vue-ui-spark-trend-D8_rEspZ.js +251 -0
  100. package/dist/{vue-ui-sparkbar-CpIfPtyd.cjs → vue-ui-sparkbar-CQz9GWxh.cjs} +1 -1
  101. package/dist/{vue-ui-sparkbar-BOzSGZak.js → vue-ui-sparkbar-DuNNnbs9.js} +3 -3
  102. package/dist/{vue-ui-sparkgauge-4hk6ZJwJ.js → vue-ui-sparkgauge-Buo2ms6b.js} +64 -64
  103. package/dist/vue-ui-sparkgauge-Dxsnkehz.cjs +1 -0
  104. package/dist/{vue-ui-sparkhistogram-VCAQZfgG.cjs → vue-ui-sparkhistogram-Cw-w_Rhv.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-8degKlMU.js → vue-ui-sparkhistogram-edeeQ1HN.js} +4 -4
  106. package/dist/{vue-ui-sparkline-DsUwWV4z.cjs → vue-ui-sparkline-Cyddej9t.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-uBkd9kR2.js → vue-ui-sparkline-DGIqGoR2.js} +25 -25
  108. package/dist/{vue-ui-sparkstackbar-DyNfMGkM.cjs → vue-ui-sparkstackbar-DN0XiDpQ.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-Cpq2lHcl.js → vue-ui-sparkstackbar-G7Ojd39B.js} +3 -3
  110. package/dist/{vue-ui-stackbar-lr_qudpY.js → vue-ui-stackbar-CfK9lv_E.js} +35 -35
  111. package/dist/{vue-ui-stackbar-jQe7BneA.cjs → vue-ui-stackbar-kiZ9J1eh.cjs} +1 -1
  112. package/dist/vue-ui-strip-plot-Bd4NwUia.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-DwvlcnHB.js → vue-ui-strip-plot-d-bNHZDG.js} +64 -64
  114. package/dist/{vue-ui-table-D5ybohqp.cjs → vue-ui-table-ChORiy2h.cjs} +1 -1
  115. package/dist/{vue-ui-table-heatmap-CChLZdxj.cjs → vue-ui-table-heatmap-BcA1TmV1.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-BY65DeiH.js → vue-ui-table-heatmap-BcPqaYXz.js} +26 -26
  117. package/dist/{vue-ui-table-Dhj4_z9d.js → vue-ui-table-ipCsGZPx.js} +1 -1
  118. package/dist/{vue-ui-table-sparkline-CvMETVJ1.js → vue-ui-table-sparkline-BwwiWOX_.js} +13 -13
  119. package/dist/{vue-ui-table-sparkline-Cmy6PcPI.cjs → vue-ui-table-sparkline-dXyBTv6X.cjs} +1 -1
  120. package/dist/vue-ui-thermometer-DpWtOskJ.cjs +1 -0
  121. package/dist/{vue-ui-thermometer-BIN2ofrh.js → vue-ui-thermometer-U5IIot6j.js} +116 -116
  122. package/dist/{vue-ui-timer-DBcOT10h.cjs → vue-ui-timer-DqVQjRdU.cjs} +1 -1
  123. package/dist/{vue-ui-timer-DoSqphvk.js → vue-ui-timer-cCfNkOpe.js} +4 -4
  124. package/dist/{vue-ui-tiremarks-DRTLsMWt.js → vue-ui-tiremarks-BcXrnO0N.js} +71 -71
  125. package/dist/vue-ui-tiremarks-C8pNPR_E.cjs +1 -0
  126. package/dist/vue-ui-treemap-24TuOX-H.cjs +1 -0
  127. package/dist/{vue-ui-treemap-D8-D_wfq.js → vue-ui-treemap-CVCaxcwW.js} +89 -82
  128. package/dist/{vue-ui-vertical-bar-zUaXmUpB.js → vue-ui-vertical-bar-Cuz2Qxi6.js} +246 -242
  129. package/dist/vue-ui-vertical-bar-kZxc3vG5.cjs +4 -0
  130. package/dist/{vue-ui-waffle-CztGir7e.js → vue-ui-waffle-BVFZf7mm.js} +44 -44
  131. package/dist/{vue-ui-waffle-RCqpPcSF.cjs → vue-ui-waffle-X-mNfs6F.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-CBqL8FKG.cjs → vue-ui-wheel-CWOh-9CT.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-BQ2a-ZyV.js → vue-ui-wheel-SUtbKs4l.js} +5 -5
  134. package/dist/vue-ui-word-cloud-BE_jkp2h.cjs +1 -0
  135. package/dist/{vue-ui-word-cloud-CKUGIGnW.js → vue-ui-word-cloud-DAa0far7.js} +68 -65
  136. package/dist/vue-ui-xy-BTocPMsA.cjs +3 -0
  137. package/dist/{vue-ui-xy-Dsa2tfKS.js → vue-ui-xy-B_dmMYPU.js} +82 -82
  138. package/dist/vue-ui-xy-canvas-BtuD8xjy.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-JeNqaB_p.js → vue-ui-xy-canvas-jq1j84oA.js} +122 -121
  140. package/package.json +1 -1
  141. package/dist/vue-ui-age-pyramid-BILMRRi1.cjs +0 -1
  142. package/dist/vue-ui-donut-evolution-K7LUkN6q.cjs +0 -1
  143. package/dist/vue-ui-dumbbell-HVpK20XO.cjs +0 -9
  144. package/dist/vue-ui-flow-CiXnGdNb.js +0 -465
  145. package/dist/vue-ui-flow-ClV2yd8Y.cjs +0 -1
  146. package/dist/vue-ui-galaxy-CMCXCWDA.cjs +0 -1
  147. package/dist/vue-ui-gauge-DwCGaX1h.cjs +0 -1
  148. package/dist/vue-ui-heatmap-WFNo-GFX.cjs +0 -1
  149. package/dist/vue-ui-quick-chart-D9zFHA0L.cjs +0 -15
  150. package/dist/vue-ui-radar-D8ik0Fqr.cjs +0 -1
  151. package/dist/vue-ui-rings-Dn5opKNy.cjs +0 -2
  152. package/dist/vue-ui-spark-trend-DnO4DW0n.cjs +0 -1
  153. package/dist/vue-ui-spark-trend-HioE2zeC.js +0 -251
  154. package/dist/vue-ui-sparkgauge-C2_I0tyO.cjs +0 -1
  155. package/dist/vue-ui-strip-plot-BMKaWqD4.cjs +0 -1
  156. package/dist/vue-ui-thermometer-Bfp-FwRE.cjs +0 -1
  157. package/dist/vue-ui-tiremarks-BeBJHz2R.cjs +0 -1
  158. package/dist/vue-ui-treemap-DqBukSj6.cjs +0 -1
  159. package/dist/vue-ui-vertical-bar-BM3aaSuB.cjs +0 -4
  160. package/dist/vue-ui-word-cloud-BbnU0d3E.cjs +0 -1
  161. package/dist/vue-ui-xy-BU0fCkSk.cjs +0 -3
  162. package/dist/vue-ui-xy-canvas-IaIARWWS.cjs +0 -9
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-nPEJmXmf.cjs"),te=require("./useNestedProp-TbnnNrH2.cjs"),D=require("./usePrinter-D012Olnq.cjs"),oe=require("./vue-ui-skeleton-D6wHGzmu.cjs"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],le=["height"],re=["data-cell","height"],ie={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(c,{expose:G}){const l=c,{vue_ui_carousel_table:j}=u.useConfig(),A=e.ref(u.createUid()),z=e.ref(!1),m=e.ref(!!l.dataset);e.onMounted(()=>{u.objectIsEmpty(l.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!l.dataset.head||u.objectIsEmpty(l.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),m.value=!1),(!l.dataset.body||u.objectIsEmpty(l.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),m.value=!1))});const t=e.computed(()=>te.useNestedProp({userConfig:l.config,defaultConfig:j})),{isPrinting:I,isImaging:P,generatePdf:X,generateImage:F}=D.usePrinter({elementId:`carousel-table_${A.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),s=e.ref({showAnimation:t.value.animation.use}),i=e.ref(null),N=e.ref(null),h=e.ref(null),g=e.ref(null),b=e.ref(0),B=e.ref(0),$=e.ref(!1),y=e.ref(null),v=e.ref(null),k=e.ref(0);function R(){y.value&&(v.value={elements:y.value.getElementsByTagName("tr"),heights:Array.from(y.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(R);const J=e.computed(()=>!v.value||!v.value.heights.length?0:Math.max(...v.value.heights)+b.value+B.value),K=e.computed(()=>l.dataset.body?t.value.tbody.tr.visible<=l.dataset.body.length?t.value.tbody.tr.visible:l.dataset.body.length:0),Q=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*K.value+b.value+B.value),w=e.ref(0),C=e.ref(null),T=e.ref(0),p=e.ref(!1),O=e.ref(0);e.onMounted(()=>{h.value&&(b.value=h.value.getBoundingClientRect().height),g.value&&(B.value=g.value.getBoundingClientRect().height),s.value.showAnimation&&v.value&&V()}),e.onMounted(()=>{if(i.value){let a=function(){const r=o.getBoundingClientRect().bottom;n.forEach(d=>{d.getBoundingClientRect().top<r?d.style.visibility="hidden":d.style.visibility="visible"})};const o=i.value.querySelector("thead"),n=Array.from(y.value.querySelectorAll("tr"));i.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{i.value.removeEventListener("scroll",a)})}});function W(o){z.value=o,O.value+=1}function V(){!C.value&&!p.value&&(C.value=requestAnimationFrame(L))}function Y(){if(!i.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=i.value;return o+a>=n}function L(o){if(p.value)return;T.value||(T.value=o),o-T.value>=t.value.animation.speedMs&&(w.value+=v.value.heights[k.value],(Y()||k.value>=v.value.heights.length)&&(w.value=0,k.value=-1),k.value+=1,i.value&&i.value.scrollTo({top:w.value,behavior:"smooth"}),T.value=o),C.value=requestAnimationFrame(L)}function f(){p.value=!0,cancelAnimationFrame(C.value),C.value=null}e.onBeforeUnmount(f);function x(){!p.value||!s.value.showAnimation||(p.value=!1,T.value=0,V())}function Z(){t.value.animation.pauseOnHover&&f()}const S=e.ref(null);function _(){f(),clearTimeout(S.value)}function M(){clearTimeout(S.value),S.value=setTimeout(x,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(s.value.showAnimation=!0,x()):(s.value.showAnimation=!1,f())});const ee=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{$.value=a.contentRect.width<ee.value}),b.value=h.value?h.value.getBoundingClientRect().height:0,B.value=g.value?g.value.getBoundingClientRect().height:0,k.value=0,R()});i.value&&o.observe(i.value)});function q(){X()}function H(){s.value.showAnimation=!s.value.showAnimation,s.value.showAnimation?x():f()}function U(){e.nextTick(()=>{const o=l.dataset.head.map((r,d)=>[[l.dataset.body[d]]]),n=[[t.value.caption.text],[l.dataset.head.map(r=>[r])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return G({pauseAnimation:f,resumeAnimation:x,toggleAnimation:H,generateCsv:U,generatePdf:q,generateImage:F}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:N},[e.createElementVNode("div",{ref_key:"tableContainer",ref:i,id:`carousel-table_${A.value}`,style:e.normalizeStyle({height:e.unref(I)||e.unref(P)?"auto":`${Math.max(Q.value,J.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":$.value,"is-playing":!p.value}),onMouseenter:n[0]||(n[0]=a=>Z()),onMouseleave:n[1]||(n[1]=a=>x()),onTouchstart:n[2]||(n[2]=a=>_()),onTouchend:n[3]||(n[3]=a=>M()),onTouchcancel:n[4]||(n[4]=a=>M())},[m.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse"})},[e.createElementVNode("caption",{ref_key:"caption",ref:h,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:$.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${b.value}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:g,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:$.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.dataset.head,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${r}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":a)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:a,colIndex:r})),void 0,!0)],4))),128))],12,le)],4),c.dataset.body&&c.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:y,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.dataset.body,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(d,E)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":c.dataset.head[E]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:t.value.tbody.tr.td.style.backgroundColor+e.unref(u.opacity)[r%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100],paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":d)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:d,rowIndex:r,colIndex:E})),void 0,!0)],12,re))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,ne),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(D.UserOptions,{ref:"details",key:`user_option_${O.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(I),isImaging:e.unref(P),uid:A.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!s.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:z.value,chartElement:N.value,titles:{...t.value.userOptions.buttonTitles},zIndex:3,noOffset:"",onGeneratePdf:q,onGenerateCsv:U,onGenerateImage:e.unref(F),onToggleAnimation:H,onToggleFullscreen:W},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","titles","onGenerateImage"])):e.createCommentVNode("",!0)],512))}},ue=ae._export_sfc(ie,[["__scopeId","data-v-f722c10b"]]);exports.default=ue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D2ZScauW.cjs"),te=require("./useNestedProp-BU7yyXFA.cjs"),D=require("./usePrinter-eqT4IYET.cjs"),oe=require("./vue-ui-skeleton-BLhbQje-.cjs"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],le=["height"],re=["data-cell","height"],ie={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(c,{expose:G}){const l=c,{vue_ui_carousel_table:j}=u.useConfig(),A=e.ref(u.createUid()),z=e.ref(!1),m=e.ref(!!l.dataset);e.onMounted(()=>{u.objectIsEmpty(l.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!l.dataset.head||u.objectIsEmpty(l.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),m.value=!1),(!l.dataset.body||u.objectIsEmpty(l.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),m.value=!1))});const t=e.computed(()=>te.useNestedProp({userConfig:l.config,defaultConfig:j})),{isPrinting:I,isImaging:P,generatePdf:X,generateImage:F}=D.usePrinter({elementId:`carousel-table_${A.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),s=e.ref({showAnimation:t.value.animation.use}),i=e.ref(null),N=e.ref(null),h=e.ref(null),g=e.ref(null),b=e.ref(0),B=e.ref(0),$=e.ref(!1),y=e.ref(null),v=e.ref(null),k=e.ref(0);function R(){y.value&&(v.value={elements:y.value.getElementsByTagName("tr"),heights:Array.from(y.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(R);const J=e.computed(()=>!v.value||!v.value.heights.length?0:Math.max(...v.value.heights)+b.value+B.value),K=e.computed(()=>l.dataset.body?t.value.tbody.tr.visible<=l.dataset.body.length?t.value.tbody.tr.visible:l.dataset.body.length:0),Q=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*K.value+b.value+B.value),w=e.ref(0),C=e.ref(null),T=e.ref(0),p=e.ref(!1),O=e.ref(0);e.onMounted(()=>{h.value&&(b.value=h.value.getBoundingClientRect().height),g.value&&(B.value=g.value.getBoundingClientRect().height),s.value.showAnimation&&v.value&&V()}),e.onMounted(()=>{if(i.value){let a=function(){const r=o.getBoundingClientRect().bottom;n.forEach(d=>{d.getBoundingClientRect().top<r?d.style.visibility="hidden":d.style.visibility="visible"})};const o=i.value.querySelector("thead"),n=Array.from(y.value.querySelectorAll("tr"));i.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{i.value.removeEventListener("scroll",a)})}});function W(o){z.value=o,O.value+=1}function V(){!C.value&&!p.value&&(C.value=requestAnimationFrame(L))}function Y(){if(!i.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=i.value;return o+a>=n}function L(o){if(p.value)return;T.value||(T.value=o),o-T.value>=t.value.animation.speedMs&&(w.value+=v.value.heights[k.value],(Y()||k.value>=v.value.heights.length)&&(w.value=0,k.value=-1),k.value+=1,i.value&&i.value.scrollTo({top:w.value,behavior:"smooth"}),T.value=o),C.value=requestAnimationFrame(L)}function f(){p.value=!0,cancelAnimationFrame(C.value),C.value=null}e.onBeforeUnmount(f);function x(){!p.value||!s.value.showAnimation||(p.value=!1,T.value=0,V())}function Z(){t.value.animation.pauseOnHover&&f()}const S=e.ref(null);function _(){f(),clearTimeout(S.value)}function M(){clearTimeout(S.value),S.value=setTimeout(x,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(s.value.showAnimation=!0,x()):(s.value.showAnimation=!1,f())});const ee=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{$.value=a.contentRect.width<ee.value}),b.value=h.value?h.value.getBoundingClientRect().height:0,B.value=g.value?g.value.getBoundingClientRect().height:0,k.value=0,R()});i.value&&o.observe(i.value)});function q(){X()}function H(){s.value.showAnimation=!s.value.showAnimation,s.value.showAnimation?x():f()}function U(){e.nextTick(()=>{const o=l.dataset.head.map((r,d)=>[[l.dataset.body[d]]]),n=[[t.value.caption.text],[l.dataset.head.map(r=>[r])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return G({pauseAnimation:f,resumeAnimation:x,toggleAnimation:H,generateCsv:U,generatePdf:q,generateImage:F}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:N},[e.createElementVNode("div",{ref_key:"tableContainer",ref:i,id:`carousel-table_${A.value}`,style:e.normalizeStyle({height:e.unref(I)||e.unref(P)?"auto":`${Math.max(Q.value,J.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":$.value,"is-playing":!p.value}),onMouseenter:n[0]||(n[0]=a=>Z()),onMouseleave:n[1]||(n[1]=a=>x()),onTouchstart:n[2]||(n[2]=a=>_()),onTouchend:n[3]||(n[3]=a=>M()),onTouchcancel:n[4]||(n[4]=a=>M())},[m.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse"})},[e.createElementVNode("caption",{ref_key:"caption",ref:h,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:$.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${b.value}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:g,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:$.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.dataset.head,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${r}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":a)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:a,colIndex:r})),void 0,!0)],4))),128))],12,le)],4),c.dataset.body&&c.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:y,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.dataset.body,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(d,E)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":c.dataset.head[E]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:t.value.tbody.tr.td.style.backgroundColor+e.unref(u.opacity)[r%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100],paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":d)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:d,rowIndex:r,colIndex:E})),void 0,!0)],12,re))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,ne),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(D.UserOptions,{ref:"details",key:`user_option_${O.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(I),isImaging:e.unref(P),uid:A.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!s.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:z.value,chartElement:N.value,titles:{...t.value.userOptions.buttonTitles},zIndex:3,noOffset:"",onGeneratePdf:q,onGenerateCsv:U,onGenerateImage:e.unref(F),onToggleAnimation:H,onToggleFullscreen:W},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","titles","onGenerateImage"])):e.createCommentVNode("",!0)],512))}},ue=ae._export_sfc(ie,[["__scopeId","data-v-f722c10b"]]);exports.default=ue;
@@ -1,8 +1,8 @@
1
1
  import { ref as o, onMounted as F, computed as B, onBeforeUnmount as ie, watch as ye, openBlock as u, createElementBlock as r, createElementVNode as z, normalizeStyle as d, unref as b, normalizeClass as Ce, createTextVNode as U, toDisplayString as V, renderSlot as p, Fragment as G, renderList as M, normalizeProps as q, guardReactiveProps as D, createCommentVNode as E, createBlock as se, createSlots as $e, withCtx as O, nextTick as Te } from "vue";
2
- import { u as Ae, c as xe, o as X, e as j, v as ke, q as we, r as Ie } from "./index-CwG--L4Z.js";
3
- import { u as Fe } from "./useNestedProp-BqwYEJGM.js";
4
- import { u as Be, U as Oe } from "./usePrinter-Do9tGYem.js";
5
- import Pe from "./vue-ui-skeleton-ClzVF3vm.js";
2
+ import { u as Ae, c as xe, o as X, e as j, w as ke, q as we, r as Ie } from "./index-BshV7sX1.js";
3
+ import { u as Fe } from "./useNestedProp-B235bkr5.js";
4
+ import { u as Be, U as Oe } from "./usePrinter-Culo-aKo.js";
5
+ import Pe from "./vue-ui-skeleton-7qakoAGH.js";
6
6
  import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const ze = ["id"], Ee = ["height"], Ne = ["data-cell", "height"], Se = {
8
8
  __name: "vue-ui-carousel-table",
@@ -1,12 +1,12 @@
1
- import { useCssVars as Me, computed as $, ref as z, onMounted as je, openBlock as a, createElementBlock as o, normalizeClass as m, normalizeStyle as h, createBlock as ee, unref as n, createSlots as Xe, withCtx as U, renderSlot as j, normalizeProps as be, guardReactiveProps as pe, createCommentVNode as b, toDisplayString as c, createElementVNode as s, Fragment as p, renderList as g, createTextVNode as W, withKeys as Oe, createVNode as Ge, nextTick as ge } from "vue";
2
- import { u as Ee, c as Ae, t as Ue, a as De, p as I, b as Ye, g as te, e as K, d as le, o as qe, X as He, s as _e, v as S, i as G, f as T, D as xe, m as me, j as We, k as P, n as H, q as Ke, r as Je } from "./index-CwG--L4Z.js";
3
- import { u as Qe, U as Ze } from "./usePrinter-Do9tGYem.js";
4
- import et from "./vue-ui-skeleton-ClzVF3vm.js";
5
- import tt from "./BaseIcon-DUPLRuLO.js";
6
- import lt from "./vue-ui-accordion-Be_wWB1T.js";
7
- import { u as ke } from "./useNestedProp-BqwYEJGM.js";
1
+ import { useCssVars as Me, computed as $, ref as z, onMounted as je, openBlock as a, createElementBlock as o, normalizeClass as m, normalizeStyle as h, createBlock as te, unref as n, createSlots as Xe, withCtx as U, renderSlot as j, normalizeProps as be, guardReactiveProps as pe, createCommentVNode as b, toDisplayString as c, createElementVNode as s, Fragment as p, renderList as g, createTextVNode as W, withKeys as Oe, createVNode as Ee, nextTick as ge } from "vue";
2
+ import { u as Ge, c as Ae, t as Ue, a as De, p as I, b as Ye, g as le, e as K, d as ae, o as qe, X as He, v as _e, w as S, i as E, f as T, E as xe, m as me, j as We, k as P, n as H, q as Ke, r as Je } from "./index-BshV7sX1.js";
3
+ import { u as Qe, U as Ze } from "./usePrinter-Culo-aKo.js";
4
+ import et from "./vue-ui-skeleton-7qakoAGH.js";
5
+ import tt from "./BaseIcon-BNStcP8c.js";
6
+ import lt from "./vue-ui-accordion-B6AxEnAr.js";
7
+ import { u as ke } from "./useNestedProp-B235bkr5.js";
8
8
  import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "font-weight", "font-size", "x", "y"], rt = ["fill", "font-weight", "font-size", "x", "y"], it = ["id"], ct = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ft = ["id"], bt = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], _t = ["id"], xt = ["stop-color"], mt = ["stop-color"], kt = ["stop-color"], wt = ["id"], $t = ["stop-color"], Ct = ["stop-color"], zt = ["stop-color"], Tt = { key: 1 }, Nt = ["x", "y", "font-size", "font-weight", "fill"], St = ["x", "y", "font-size", "font-weight", "fill"], Ft = ["d", "stroke"], Lt = ["cx", "cy", "r", "fill"], It = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Pt = { key: 2 }, Vt = ["x", "y", "font-size", "fill", "onClick"], Rt = { key: 0 }, Bt = ["x", "y", "fill", "font-size", "font-weight"], Mt = ["x", "y", "height", "width", "fill", "rx", "onClick"], jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Xt = { key: 3 }, Ot = ["x", "y", "fill", "font-size", "onClick"], Gt = ["d", "stroke"], Et = ["cx", "cy", "fill", "onClick"], At = ["fill", "cx", "cy", "r", "onClick"], Ut = { key: 4 }, Dt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["y", "height", "width"], Ht = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Wt = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Kt = {
9
+ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "font-weight", "font-size", "x", "y"], rt = ["fill", "font-weight", "font-size", "x", "y"], it = ["id"], ct = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ft = ["id"], bt = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], _t = ["id"], xt = ["stop-color"], mt = ["stop-color"], kt = ["stop-color"], wt = ["id"], $t = ["stop-color"], Ct = ["stop-color"], zt = ["stop-color"], Tt = { key: 1 }, Nt = ["x", "y", "font-size", "font-weight", "fill"], St = ["x", "y", "font-size", "font-weight", "fill"], Ft = ["d", "stroke"], Lt = ["cx", "cy", "r", "fill"], It = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Pt = { key: 2 }, Vt = ["x", "y", "font-size", "fill", "onClick"], Rt = { key: 0 }, Bt = ["x", "y", "fill", "font-size", "font-weight"], Mt = ["x", "y", "height", "width", "fill", "rx", "onClick"], jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Xt = { key: 3 }, Ot = ["x", "y", "fill", "font-size", "onClick"], Et = ["d", "stroke"], Gt = ["cx", "cy", "fill", "onClick"], At = ["fill", "cx", "cy", "r", "onClick"], Ut = { key: 4 }, Dt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["y", "height", "width"], Ht = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Wt = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Kt = {
10
10
  viewBox: "0 0 20 20",
11
11
  height: "16",
12
12
  width: "16"
@@ -17,7 +17,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
17
17
  }, al = ["fill"], ol = ["d", "stroke"], sl = ["cx", "cy", "fill"], ul = ["cx", "cy", "fill"], nl = ["d", "stroke"], rl = ["cx", "cy", "fill"], il = ["cx", "cy", "fill"], cl = ["x", "y", "fill", "font-size", "font-weight"], dl = ["x", "y", "fill", "font-size", "font-weight"], vl = ["x", "text-anchor", "y", "fill", "font-size"], yl = ["x", "text-anchor", "y", "fill", "font-size"], hl = ["x", "text-anchor", "y", "fill", "font-size"], fl = ["x", "text-anchor", "y", "fill", "font-size"], bl = ["x", "text-anchor", "y", "fill", "font-size"], pl = ["x", "y", "font-size", "fill"], gl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill"], xl = {
18
18
  key: 2,
19
19
  class: "vue-data-ui-watermark"
20
- }, ml = { style: { "padding-top": "36px", position: "relative" } }, kl = { class: "vue-ui-data-table" }, wl = { key: 0 }, $l = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, zl = { key: 0 }, Tl = { key: 1 }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fl = { key: 0 }, Ll = { key: 1 }, Il = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Vl = { key: 0 }, Rl = { key: 1 }, Bl = ["data-cell"], Ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = { key: 0 }, Xl = { key: 1 }, Ol = ["data-cell"], Gl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, El = { key: 0 }, Al = { key: 1 }, Ul = ["data-cell"], Dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yl = { key: 0 }, ql = { key: 1 }, Hl = ["data-cell"], Wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kl = { key: 0 }, Jl = { key: 1 }, Ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = ["data-cell"], aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oa = ["data-cell"], sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ua = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = {
20
+ }, ml = { style: { "padding-top": "36px", position: "relative" } }, kl = { class: "vue-ui-data-table" }, wl = { key: 0 }, $l = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, zl = { key: 0 }, Tl = { key: 1 }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fl = { key: 0 }, Ll = { key: 1 }, Il = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Vl = { key: 0 }, Rl = { key: 1 }, Bl = ["data-cell"], Ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = { key: 0 }, Xl = { key: 1 }, Ol = ["data-cell"], El = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Gl = { key: 0 }, Al = { key: 1 }, Ul = ["data-cell"], Dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yl = { key: 0 }, ql = { key: 1 }, Hl = ["data-cell"], Wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kl = { key: 0 }, Jl = { key: 1 }, Ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = ["data-cell"], aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oa = ["data-cell"], sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ua = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = {
21
21
  __name: "vue-ui-chestnut",
22
22
  props: {
23
23
  config: {
@@ -34,12 +34,12 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
34
34
  }
35
35
  },
36
36
  emits: ["selectRoot", "selectBranch", "selectNut"],
37
- setup(we, { expose: $e, emit: E }) {
37
+ setup(we, { expose: $e, emit: G }) {
38
38
  const R = we;
39
39
  Me((l) => ({
40
- "545cdfba": l.tdo
40
+ "5c2f10c9": l.tdo
41
41
  }));
42
- const { vue_ui_chestnut: Ce } = Ee(), D = $(() => !!R.dataset && R.dataset.length), k = z(Ae()), ae = z(null), ze = z(null), oe = z(0), e = $(() => {
42
+ const { vue_ui_chestnut: Ce } = Ge(), D = $(() => !!R.dataset && R.dataset.length), k = z(Ae()), oe = z(null), ze = z(null), se = z(0), e = $(() => {
43
43
  const l = ke({
44
44
  userConfig: R.config,
45
45
  defaultConfig: Ce
@@ -51,12 +51,12 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
51
51
  }),
52
52
  customPalette: De[l.theme] || I
53
53
  } : l;
54
- }), { isPrinting: se, isImaging: ue, generatePdf: ne, generateImage: re } = Qe({
54
+ }), { isPrinting: ue, isImaging: ne, generatePdf: re, generateImage: ie } = Qe({
55
55
  elementId: `vue-ui-chestnut_${k.value}`,
56
56
  fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
57
57
  }), J = $(() => Ye(e.value.customPalette)), Y = z({
58
58
  showTable: e.value.table.show
59
- }), ie = z(null), ce = z(!1), Te = $(() => e.value.table.responsiveBreakpoint), r = z({
59
+ }), Q = z(null), ce = z(!1), Te = $(() => e.value.table.responsiveBreakpoint), r = z({
60
60
  gap: 6,
61
61
  padding: {
62
62
  top: 102,
@@ -76,8 +76,8 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
76
76
  width: r.value.width - (r.value.padding.left + r.value.padding.right),
77
77
  height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
78
78
  seedX: r.value.padding.left + 64
79
- })), V = $(() => D.value ? R.dataset.flatMap((l) => l.branches.map((i) => i.value)).reduce((l, i) => l + i) : 0), N = $(() => (R.dataset.forEach((l, i) => {
80
- te({
79
+ })), V = $(() => D.value ? R.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = $(() => (R.dataset.forEach((l, i) => {
80
+ le({
81
81
  datasetObject: l,
82
82
  requiredAttributes: ["name", "branches"]
83
83
  }).forEach((t) => {
@@ -88,7 +88,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
88
88
  index: i
89
89
  });
90
90
  }), l.branches && l.branches.forEach((t, u) => {
91
- te({
91
+ le({
92
92
  datasetObject: t,
93
93
  requiredAttributes: ["name", "value"]
94
94
  }).forEach((f) => {
@@ -99,7 +99,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
99
99
  index: `${i} - ${u}`
100
100
  });
101
101
  }), t.breakdown && t.breakdown.forEach((f, y) => {
102
- te({
102
+ le({
103
103
  datasetObject: f,
104
104
  requiredAttributes: ["name", "value"]
105
105
  }).forEach((_) => {
@@ -113,24 +113,24 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
113
113
  });
114
114
  });
115
115
  }), R.dataset.map((l, i) => {
116
- const t = l.branches.map((u) => u.value).reduce((u, f) => u + f);
116
+ const t = (l.branches || []).map((u) => u.value || 0).reduce((u, f) => u + f, 0);
117
117
  return {
118
118
  ...l,
119
- color: le(l.color) || J.value[i] || I[i] || I[i % I.length],
119
+ color: ae(l.color) || J.value[i] || I[i] || I[i % I.length],
120
120
  id: l.id || `root_${i}_${k.value}`,
121
121
  type: "root",
122
122
  total: t,
123
123
  rootIndex: i,
124
- branches: l.branches.map((u, f) => ({
124
+ branches: (l.branches || []).map((u, f) => ({
125
125
  ...u,
126
126
  rootName: l.name,
127
127
  rootIndex: i,
128
- color: le(l.color) || J.value[i] || I[i] || I[i % I.length],
128
+ color: ae(l.color) || J.value[i] || I[i] || I[i % I.length],
129
129
  value: u.value >= 0 ? u.value : 0,
130
130
  id: u.id || `branch_${i}_${f}_${k.value}`,
131
131
  proportionToRoot: u.value / t,
132
132
  type: "branch",
133
- breakdown: u.breakdown.map((y, _) => ({
133
+ breakdown: (u.breakdown || []).map((y, _) => ({
134
134
  table: {
135
135
  rootName: l.name,
136
136
  rootValue: t,
@@ -155,7 +155,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
155
155
  proportionToTree: y.value / V.value,
156
156
  rootIndex: i,
157
157
  id: y.id || `nut_${i}_${f}_${_}_${k.value}`,
158
- color: le(y.color) || J.value[_] || I[_] || I[_ % I.length],
158
+ color: ae(y.color) || J.value[_] || I[_] || I[_ % I.length],
159
159
  value: y.value >= 0 ? y.value : 0
160
160
  }))
161
161
  }))
@@ -179,7 +179,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
179
179
  x1: de.value,
180
180
  x2: 384 * l.value / Le.value * Ie.value + de.value
181
181
  })));
182
- function Q(l) {
182
+ function Z(l) {
183
183
  const i = X.value.find((t) => t.rootIndex === l.rootIndex);
184
184
  return { x: i.x, y: i.y, r: i.r };
185
185
  }
@@ -198,17 +198,17 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
198
198
  l.y1 + r.value.branchSize / 2,
199
199
  80,
200
200
  80
201
- ), E("selectNut", l.breakdown);
201
+ ), G("selectNut", l.breakdown);
202
202
  });
203
203
  }
204
204
  function O() {
205
- v.value = null, M.value = null, E("selectNut", null);
205
+ v.value = null, M.value = null, G("selectNut", null);
206
206
  }
207
- function Z(l) {
208
- x.value && x.value.id === l.id ? (x.value = null, w(), E("selectBranch", null)) : (w(), x.value = l, E("selectBranch", l));
207
+ function ee(l) {
208
+ x.value && x.value.id === l.id ? (x.value = null, w(), G("selectBranch", null)) : (w(), x.value = l, G("selectBranch", l));
209
209
  }
210
210
  function ye(l) {
211
- F.value && F.value.id === l.id ? (w(), E("selectRoot", null)) : (w(), F.value = l, E("selectRoot", l));
211
+ F.value && F.value.id === l.id ? (w(), G("selectRoot", null)) : (w(), F.value = l, G("selectRoot", l));
212
212
  }
213
213
  function Ve() {
214
214
  return C.value.bottom - (v.value.y1 + 180) < 0 ? 0 : C.value.bottom;
@@ -217,11 +217,12 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
217
217
  return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
218
218
  }
219
219
  function Re() {
220
- new ResizeObserver((i) => {
220
+ const l = new ResizeObserver((i) => {
221
221
  i.forEach((t) => {
222
222
  ce.value = t.contentRect.width < Te.value;
223
223
  });
224
- }).observe(ie.value);
224
+ });
225
+ Q.value && l.observe(Q.value);
225
226
  }
226
227
  je(() => {
227
228
  qe(R.dataset) && K({
@@ -269,32 +270,32 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
269
270
  }
270
271
  const q = z(!1);
271
272
  function Be(l) {
272
- q.value = l, oe.value += 1;
273
+ q.value = l, se.value += 1;
273
274
  }
274
275
  function fe() {
275
276
  Y.value.showTable = !Y.value.showTable;
276
277
  }
277
278
  return $e({
278
279
  getData: Ne,
279
- generatePdf: ne,
280
+ generatePdf: re,
280
281
  generateCsv: he,
281
- generateImage: re,
282
+ generateImage: ie,
282
283
  toggleTable: fe
283
284
  }), (l, i) => (a(), o("div", {
284
285
  class: m(`vue-ui-chestnut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
285
286
  ref_key: "chestnutChart",
286
- ref: ae,
287
+ ref: oe,
287
288
  id: `vue-ui-chestnut_${k.value}`,
288
289
  style: h(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;padding-top:36px;background:${e.value.style.chart.backgroundColor}`)
289
290
  }, [
290
- e.value.userOptions.show && D.value ? (a(), ee(Ze, {
291
+ e.value.userOptions.show && D.value ? (a(), te(Ze, {
291
292
  ref_key: "details",
292
293
  ref: ze,
293
- key: `user_options_${oe.value}`,
294
+ key: `user_options_${se.value}`,
294
295
  backgroundColor: e.value.style.chart.backgroundColor,
295
296
  color: e.value.style.chart.color,
296
- isImaging: n(ue),
297
- isPrinting: n(se),
297
+ isImaging: n(ne),
298
+ isPrinting: n(ue),
298
299
  uid: k.value,
299
300
  hasPdf: e.value.userOptions.buttons.pdf,
300
301
  hasImg: e.value.userOptions.buttons.img,
@@ -303,11 +304,11 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
303
304
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
304
305
  isFullscreen: q.value,
305
306
  titles: { ...e.value.userOptions.buttonTitles },
306
- chartElement: ae.value,
307
+ chartElement: oe.value,
307
308
  onToggleFullscreen: Be,
308
- onGeneratePdf: n(ne),
309
+ onGeneratePdf: n(re),
309
310
  onGenerateCsv: he,
310
- onGenerateImage: n(re),
311
+ onGenerateImage: n(ie),
311
312
  onToggleTable: fe
312
313
  }, Xe({ _: 2 }, [
313
314
  l.$slots.optionPdf ? {
@@ -491,7 +492,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
491
492
  fill: e.value.style.chart.layout.grandTotal.color,
492
493
  "text-anchor": "middle",
493
494
  onClick: w
494
- }, c(n(G)(
495
+ }, c(n(E)(
495
496
  e.value.style.chart.layout.grandTotal.formatter,
496
497
  V.value,
497
498
  n(T)({
@@ -508,7 +509,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
508
509
  ${t.x1},${t.y1 + f}
509
510
  C${t.x1 - 20},${t.y1 + f}
510
511
  ${t.x1 - 80},${t.y1 + f}
511
- ${Q(t).x + Q(t).r / 2}, ${Q(t).y}
512
+ ${Z(t).x + Z(t).r / 2}, ${Z(t).y}
512
513
  `,
513
514
  stroke: `${t.color}${n(S)[e.value.style.chart.layout.links.opacity]}`,
514
515
  fill: "none",
@@ -546,7 +547,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
546
547
  "font-weight": "bold",
547
548
  style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
548
549
  onClick: (f) => ye(t)
549
- }, c(n(G)(
550
+ }, c(n(E)(
550
551
  e.value.style.chart.layout.roots.labels.formatter,
551
552
  t.total,
552
553
  n(T)({
@@ -580,7 +581,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
580
581
  rx: e.value.style.chart.layout.branches.borderRadius,
581
582
  stroke: "none",
582
583
  style: h(`opacity:${L(t) ? 1 : 0.05}`),
583
- onClick: (u) => Z(t)
584
+ onClick: (u) => ee(t)
584
585
  }, null, 12, Mt))), 256)),
585
586
  (a(!0), o(p, null, g(B.value, (t, u) => (a(), o("rect", {
586
587
  x: t.x1,
@@ -592,7 +593,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
592
593
  stroke: e.value.style.chart.layout.branches.stroke,
593
594
  "stroke-width": e.value.style.chart.layout.branches.strokeWidth,
594
595
  style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
595
- onClick: (f) => Z(t)
596
+ onClick: (f) => ee(t)
596
597
  }, null, 12, jt))), 256)),
597
598
  e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", Xt, [
598
599
  (a(!0), o(p, null, g(B.value, (t) => (a(), o("g", null, [
@@ -605,8 +606,8 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
605
606
  "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
606
607
  "font-weight": "bold",
607
608
  style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
608
- onClick: (u) => Z(t)
609
- }, c(n(G)(
609
+ onClick: (u) => ee(t)
610
+ }, c(n(E)(
610
611
  e.value.style.chart.layout.branches.labels.dataLabels.formatter,
611
612
  t.value,
612
613
  n(T)({
@@ -632,7 +633,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
632
633
  "stroke-width": 10,
633
634
  fill: "none",
634
635
  style: h(`opacity:${L(t) ? 1 : 0.1}`)
635
- }, null, 12, Gt))), 256)),
636
+ }, null, 12, Et))), 256)),
636
637
  (a(!0), o(p, null, g(B.value, (f) => (a(), o("circle", {
637
638
  cx: f.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
638
639
  cy: f.y1 + r.value.branchSize / 2,
@@ -640,7 +641,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
640
641
  fill: e.value.style.chart.backgroundColor,
641
642
  onClick: (y) => ve(f),
642
643
  style: { cursor: "pointer" }
643
- }, null, 8, Et))), 256)),
644
+ }, null, 8, Gt))), 256)),
644
645
  s("circle", {
645
646
  fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${k.value})` : "transparent",
646
647
  cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
@@ -693,7 +694,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
693
694
  }, null, 8, Jt)
694
695
  ])),
695
696
  s("span", null, c(t.name) + ":", 1),
696
- s("b", null, c(n(G)(
697
+ s("b", null, c(n(E)(
697
698
  e.value.style.chart.layout.roots.labels.formatter,
698
699
  t.total,
699
700
  n(T)({
@@ -817,7 +818,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
817
818
  "text-anchor": "middle",
818
819
  onClick: O,
819
820
  class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
820
- }, c(n(G)(
821
+ }, c(n(E)(
821
822
  e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
822
823
  v.value.value,
823
824
  n(T)({
@@ -864,7 +865,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
864
865
  v: v.value.breakdown[u].value / v.value.value * 100,
865
866
  s: "%",
866
867
  r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
867
- })) + " " + c(e.value.translations.of) + " " + c(v.value.breakdown[u].branchName) + " " + c(n(G)(
868
+ })) + " " + c(e.value.translations.of) + " " + c(v.value.breakdown[u].branchName) + " " + c(n(E)(
868
869
  e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
869
870
  v.value.breakdown[u].value,
870
871
  n(T)({
@@ -915,7 +916,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
915
916
  "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
916
917
  fill: e.value.style.chart.layout.branches.labels.color,
917
918
  onClick: w
918
- }, c(t.name) + ": " + c(n(G)(
919
+ }, c(t.name) + ": " + c(n(E)(
919
920
  e.value.style.chart.layout.branches.labels.dataLabels.formatter,
920
921
  t.value,
921
922
  n(T)({
@@ -956,9 +957,9 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
956
957
  j(l.$slots, "svg", { svg: r.value }, void 0, !0)
957
958
  ], 14, st)) : b("", !0),
958
959
  l.$slots.watermark ? (a(), o("div", xl, [
959
- j(l.$slots, "watermark", be(pe({ isPrinting: n(se) || n(ue) })), void 0, !0)
960
+ j(l.$slots, "watermark", be(pe({ isPrinting: n(ue) || n(ne) })), void 0, !0)
960
961
  ])) : b("", !0),
961
- D.value ? b("", !0) : (a(), ee(et, {
962
+ D.value ? b("", !0) : (a(), te(et, {
962
963
  key: 3,
963
964
  config: {
964
965
  type: "chestnut",
@@ -971,7 +972,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
971
972
  }
972
973
  }, null, 8, ["config"])),
973
974
  j(l.$slots, "legend", { legend: N.value }, void 0, !0),
974
- D.value ? (a(), ee(lt, {
975
+ D.value ? (a(), te(lt, {
975
976
  key: 4,
976
977
  hideDetails: "",
977
978
  config: {
@@ -990,7 +991,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
990
991
  content: U(() => [
991
992
  s("div", {
992
993
  ref_key: "tableContainer",
993
- ref: ie,
994
+ ref: Q,
994
995
  class: "vue-ui-chestnut-table"
995
996
  }, [
996
997
  s("div", ml, [
@@ -1001,7 +1002,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
1001
1002
  onClick: i[0] || (i[0] = (t) => Y.value.showTable = !1),
1002
1003
  onKeypress: i[1] || (i[1] = Oe((t) => Y.value.showTable = !1, ["enter"]))
1003
1004
  }, [
1004
- Ge(tt, {
1005
+ Ee(tt, {
1005
1006
  name: "close",
1006
1007
  stroke: e.value.table.th.color,
1007
1008
  "stroke-width": 2
@@ -1075,8 +1076,8 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
1075
1076
  style: h(`outline:${e.value.table.td.outline}`),
1076
1077
  "data-cell": d.value.head[4]
1077
1078
  }, [
1078
- s("div", Gl, [
1079
- d.value.body[u - 1] && d.value.body[u - 1].branchName === t.branchName ? (a(), o("span", El)) : (a(), o("span", Al, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
1079
+ s("div", El, [
1080
+ d.value.body[u - 1] && d.value.body[u - 1].branchName === t.branchName ? (a(), o("span", Gl)) : (a(), o("span", Al, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
1080
1081
  ])
1081
1082
  ], 12, Ol),
1082
1083
  s("td", {
@@ -1143,7 +1144,7 @@ const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "fo
1143
1144
  }, 8, ["config"])) : b("", !0)
1144
1145
  ], 14, ot));
1145
1146
  }
1146
- }, ga = /* @__PURE__ */ at(ra, [["__scopeId", "data-v-bdbb359d"]]);
1147
+ }, ga = /* @__PURE__ */ at(ra, [["__scopeId", "data-v-3571ba27"]]);
1147
1148
  export {
1148
1149
  ga as default
1149
1150
  };