vue-data-ui 2.6.44 → 2.6.45

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 (156) hide show
  1. package/dist/{Arrow-DGay3Mq4.cjs → Arrow-Bfwl8OAb.cjs} +1 -1
  2. package/dist/{Arrow-BIsMVdtn.js → Arrow-km8WlE5f.js} +1 -1
  3. package/dist/{BaseIcon-CNr0ynIA.cjs → BaseIcon-BjlTm9wZ.cjs} +1 -1
  4. package/dist/{BaseIcon-BkG8oy7S.js → BaseIcon-DywZoZmD.js} +1 -1
  5. package/dist/{ColorPicker-Dk1k_q80.cjs → ColorPicker-COPqu9IV.cjs} +1 -1
  6. package/dist/{ColorPicker-BolaeJP4.js → ColorPicker-gkZLlxzP.js} +3 -3
  7. package/dist/{DataTable-CMtUsL3k.js → DataTable-CrhPpuOy.js} +2 -2
  8. package/dist/{DataTable-ChXRV1c1.cjs → DataTable-ImmHVJ0i.cjs} +1 -1
  9. package/dist/{Legend-CNvH8CO_.js → Legend-BVtJaKHS.js} +2 -2
  10. package/dist/{Legend-DpeobB-J.cjs → Legend-CfimXfYH.cjs} +1 -1
  11. package/dist/{PackageVersion-DpTw0H2K.js → PackageVersion-DJu8NH8u.js} +3 -3
  12. package/dist/PackageVersion-DjHCw2D_.cjs +1 -0
  13. package/dist/{PenAndPaper-B3u1FDG_.cjs → PenAndPaper-AZpGBe7x.cjs} +1 -1
  14. package/dist/{PenAndPaper-CdyjU7Bn.js → PenAndPaper-DC3X33rh.js} +3 -3
  15. package/dist/{Shape--0X0ca4a.js → Shape-Bs4vWaC-.js} +1 -1
  16. package/dist/{Shape-gapU-fux.cjs → Shape-Dl6kIG9D.cjs} +1 -1
  17. package/dist/{Slicer-CZQhXgqN.js → Slicer-CgnhZJgM.js} +2 -2
  18. package/dist/{Slicer-hryDvXmh.cjs → Slicer-OBTv9I2-.cjs} +1 -1
  19. package/dist/{Title-CUTRN3ig.js → Title-6BRNasyb.js} +1 -1
  20. package/dist/{Title-DRo5NxnS.cjs → Title-DBgUbEU1.cjs} +1 -1
  21. package/dist/{Tooltip-BvEZcxbc.js → Tooltip-BUPxcljs.js} +1 -1
  22. package/dist/{Tooltip-Cbjcw6Jz.cjs → Tooltip-TGHDsCSU.cjs} +1 -1
  23. package/dist/{index-hcakVXU6.cjs → index-BXhJaCcU.cjs} +1 -1
  24. package/dist/{index-DQCJDAtd.js → index-jVWdGfFl.js} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-WD6Qn-jr.js → useNestedProp-BN5jbfiQ.js} +1 -1
  27. package/dist/{useNestedProp-DCfCPrTU.cjs → useNestedProp-DhyCNtMY.cjs} +1 -1
  28. package/dist/{usePrinter-FM1PheWO.js → usePrinter-BI95cSFJ.js} +1 -1
  29. package/dist/{usePrinter-Dv0RMCX1.cjs → usePrinter-DRWBcwQ7.cjs} +1 -1
  30. package/dist/{vue-data-ui-CDVMMv3d.cjs → vue-data-ui-B0eO9goE.cjs} +1 -1
  31. package/dist/{vue-data-ui-Byi8FBJM.js → vue-data-ui-DFmsvz9E.js} +61 -61
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-CZJ6Zo23.js → vue-ui-3d-bar-BcdL4c9H.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-DJUNcjtc.cjs → vue-ui-3d-bar-CwXgNWXb.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-BckkmphN.js → vue-ui-accordion-DOBMerZl.js} +3 -3
  37. package/dist/{vue-ui-accordion-BfFg-sVJ.cjs → vue-ui-accordion-DdHwnq9o.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-DgGMb_Xp.js → vue-ui-age-pyramid-Dtaikxqn.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-DunUSOpu.cjs → vue-ui-age-pyramid-i52Ub253.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-B_MQz1AA.js → vue-ui-annotator-BrjeA9CQ.js} +1 -1
  41. package/dist/{vue-ui-annotator-B3G-FQLy.cjs → vue-ui-annotator-CKUZCHHC.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-DYpgP9uL.js → vue-ui-bullet-C1xxCzws.js} +8 -8
  43. package/dist/{vue-ui-bullet-8Kk3qeH_.cjs → vue-ui-bullet-DxUauLaF.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DnY1Z5sA.js → vue-ui-candlestick-CPF7rQqu.js} +11 -11
  45. package/dist/{vue-ui-candlestick-BSB_x1u_.cjs → vue-ui-candlestick-t1BaVylo.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-DNnBKojP.cjs → vue-ui-carousel-table-BqPfItK8.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-Cd_2r90R.js → vue-ui-carousel-table-x8RLpKZv.js} +4 -4
  48. package/dist/{vue-ui-chestnut-WcoV2zl6.cjs → vue-ui-chestnut-BiX9TQ2v.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-B1NWviH6.js → vue-ui-chestnut-SdFREl6l.js} +8 -8
  50. package/dist/{vue-ui-circle-pack-D32Zo62g.cjs → vue-ui-circle-pack-B28TVLHQ.cjs} +1 -1
  51. package/dist/{vue-ui-circle-pack-CxxPZDLO.js → vue-ui-circle-pack-DVkRm1KL.js} +9 -9
  52. package/dist/{vue-ui-cursor-BNdKosWF.cjs → vue-ui-cursor-BkQNdavl.cjs} +1 -1
  53. package/dist/{vue-ui-cursor-Df3A3tId.js → vue-ui-cursor-CY5VZS8t.js} +2 -2
  54. package/dist/{vue-ui-dashboard-SRIs3xRd.cjs → vue-ui-dashboard-BCcNNuM_.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-BD3v2yB2.js → vue-ui-dashboard-DQ8lax7M.js} +2 -2
  56. package/dist/{vue-ui-digits-6ixh72pY.js → vue-ui-digits-BkXEbzlS.js} +2 -2
  57. package/dist/{vue-ui-digits-DiwdDWIi.cjs → vue-ui-digits-D-F0Chxn.cjs} +1 -1
  58. package/dist/{vue-ui-donut-O_bMKpp0.cjs → vue-ui-donut-Dxie1WUb.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-COqxvgDm.cjs → vue-ui-donut-evolution-C8ZQum6h.cjs} +1 -1
  60. package/dist/{vue-ui-donut-evolution-DFeCoFLD.js → vue-ui-donut-evolution-YKmsjVkR.js} +11 -11
  61. package/dist/{vue-ui-donut-BLrLvjYC.js → vue-ui-donut-qRDAQa4n.js} +12 -12
  62. package/dist/{vue-ui-dumbbell-BdpORbsw.js → vue-ui-dumbbell-C6OpTSyF.js} +10 -10
  63. package/dist/{vue-ui-dumbbell-CnvbgjAc.cjs → vue-ui-dumbbell-bOMg4szX.cjs} +1 -1
  64. package/dist/{vue-ui-flow-DZW6HtMG.cjs → vue-ui-flow-Bnj7K0Td.cjs} +1 -1
  65. package/dist/{vue-ui-flow-Bq5TNf0q.js → vue-ui-flow-aIpHJK9l.js} +9 -9
  66. package/dist/{vue-ui-funnel-BTs69xlm.cjs → vue-ui-funnel-CapST2C3.cjs} +1 -1
  67. package/dist/{vue-ui-funnel-CdTmW2Dv.js → vue-ui-funnel-Ckn6d97S.js} +9 -9
  68. package/dist/{vue-ui-galaxy-Dc38cJm-.js → vue-ui-galaxy-0p-jvo0s.js} +11 -11
  69. package/dist/{vue-ui-galaxy-Bks-C0T9.cjs → vue-ui-galaxy-FIQp4ePf.cjs} +1 -1
  70. package/dist/{vue-ui-gauge-BTCMT6kZ.cjs → vue-ui-gauge-C1QU2678.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-BPe-Wpxa.js → vue-ui-gauge-CtzP0_kK.js} +7 -7
  72. package/dist/{vue-ui-gizmo-DBnHMb9H.js → vue-ui-gizmo--TFv_z_f.js} +3 -3
  73. package/dist/{vue-ui-gizmo-CUKcPiKM.cjs → vue-ui-gizmo-D6E03WtQ.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-C1YhyvNx.js → vue-ui-heatmap-Bx9RCECY.js} +10 -10
  75. package/dist/{vue-ui-heatmap-BufOxGx7.cjs → vue-ui-heatmap-DQ_4z6a6.cjs} +1 -1
  76. package/dist/{vue-ui-history-plot-DWAkb7b_.cjs → vue-ui-history-plot-BNybvrYe.cjs} +1 -1
  77. package/dist/{vue-ui-history-plot-oMjKnlp3.js → vue-ui-history-plot-OlxcB4fR.js} +11 -11
  78. package/dist/{vue-ui-kpi-BLHpMBxd.js → vue-ui-kpi-D-EjjlYh.js} +3 -3
  79. package/dist/{vue-ui-kpi-ufMTcMPT.cjs → vue-ui-kpi-DhsQdhIg.cjs} +1 -1
  80. package/dist/{vue-ui-mini-loader-BLsy0k_A.js → vue-ui-mini-loader-CYRJtuw3.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-T1GcVUKb.cjs → vue-ui-mini-loader-gsh0jMbc.cjs} +1 -1
  82. package/dist/{vue-ui-molecule-BnCvFuus.js → vue-ui-molecule-Dke-JabR.js} +10 -10
  83. package/dist/{vue-ui-molecule-B3GExfFV.cjs → vue-ui-molecule-K4PM7UqE.cjs} +1 -1
  84. package/dist/{vue-ui-mood-radar-Cxt_fhUy.cjs → vue-ui-mood-radar-CnR7mp7Z.cjs} +1 -1
  85. package/dist/{vue-ui-mood-radar-Yso-s4of.js → vue-ui-mood-radar-sXLyAWIK.js} +11 -11
  86. package/dist/{vue-ui-nested-donuts-BfRWRgkw.js → vue-ui-nested-donuts-CJ9r-x9P.js} +11 -11
  87. package/dist/{vue-ui-nested-donuts-BBzhXq6P.cjs → vue-ui-nested-donuts-DW1Zx5R0.cjs} +1 -1
  88. package/dist/{vue-ui-onion-Dt4TWe6t.js → vue-ui-onion-CVRrdFde.js} +11 -11
  89. package/dist/{vue-ui-onion-OEnDmiOB.cjs → vue-ui-onion-DM-jq72Y.cjs} +1 -1
  90. package/dist/{vue-ui-parallel-coordinate-plot-DGLh0ael.js → vue-ui-parallel-coordinate-plot-DLVjGpqC.js} +12 -12
  91. package/dist/{vue-ui-parallel-coordinate-plot-BnAAzLae.cjs → vue-ui-parallel-coordinate-plot-DMouPTwE.cjs} +1 -1
  92. package/dist/{vue-ui-quadrant-nHh7YqG6.js → vue-ui-quadrant-BGuywSpy.js} +12 -12
  93. package/dist/{vue-ui-quadrant-B6E6v1xG.cjs → vue-ui-quadrant-CXFcrSRD.cjs} +1 -1
  94. package/dist/{vue-ui-quick-chart-Dr20RPOf.cjs → vue-ui-quick-chart-9R835dAy.cjs} +1 -1
  95. package/dist/{vue-ui-quick-chart-SGvhac9d.js → vue-ui-quick-chart-D_ZSUMnh.js} +9 -9
  96. package/dist/{vue-ui-radar-BRtf9Ps5.cjs → vue-ui-radar-CGSB8Q_3.cjs} +1 -1
  97. package/dist/{vue-ui-radar-CcdphM-O.js → vue-ui-radar-CrF3XMq8.js} +12 -12
  98. package/dist/{vue-ui-rating-DgwurE4x.cjs → vue-ui-rating-BiwEz-WI.cjs} +1 -1
  99. package/dist/{vue-ui-rating-DRlCBElN.js → vue-ui-rating-DCH03Nd-.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-g1JlL2f2.js → vue-ui-relation-circle-CFB3nQrw.js} +7 -7
  101. package/dist/{vue-ui-relation-circle-B4TErNPT.cjs → vue-ui-relation-circle-D7sKIx2H.cjs} +1 -1
  102. package/dist/{vue-ui-rings-BM9uYCUU.js → vue-ui-rings-CDFQgsVL.js} +12 -12
  103. package/dist/{vue-ui-rings-CBeL3HIa.cjs → vue-ui-rings-CMzJJbL7.cjs} +1 -1
  104. package/dist/{vue-ui-scatter-DT_QBIeo.js → vue-ui-scatter-CYweE3aN.js} +12 -12
  105. package/dist/{vue-ui-scatter-gkSm6cYR.cjs → vue-ui-scatter-Cpc9LK6H.cjs} +1 -1
  106. package/dist/{vue-ui-screenshot-2leQxim8.cjs → vue-ui-screenshot-BA27Irge.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-DGbuK-RT.js → vue-ui-screenshot-BRY1fQOv.js} +1 -1
  108. package/dist/{vue-ui-skeleton-FXF7pMM8.cjs → vue-ui-skeleton-CLMRPxZm.cjs} +1 -1
  109. package/dist/{vue-ui-skeleton-BTfzoolB.js → vue-ui-skeleton-Dsd0bx0Y.js} +3 -3
  110. package/dist/{vue-ui-smiley-Dijs1HRf.cjs → vue-ui-smiley-CNnxNaGC.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-rwgYU3A2.js → vue-ui-smiley-CeC-WFLx.js} +2 -2
  112. package/dist/{vue-ui-spark-trend-Cj0B6A_8.js → vue-ui-spark-trend-C8FlaTDz.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-D62Z0XyP.cjs → vue-ui-spark-trend-liGslvUe.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-B3R7uA_h.js → vue-ui-sparkbar-BjCkuYB0.js} +4 -4
  115. package/dist/{vue-ui-sparkbar-BB_OXsVx.cjs → vue-ui-sparkbar-DTUuvjOA.cjs} +1 -1
  116. package/dist/{vue-ui-sparkgauge-20iVOcBv.js → vue-ui-sparkgauge-BBJvgM0r.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-CV3MRct2.cjs → vue-ui-sparkgauge-BEL_6k7M.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-ASA1Izuq.cjs → vue-ui-sparkhistogram-B12f_DfZ.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-C8WGWsjQ.js → vue-ui-sparkhistogram-DgRpgf4S.js} +5 -5
  120. package/dist/{vue-ui-sparkline-C4MRWUBA.js → vue-ui-sparkline-COtgfnKN.js} +4 -4
  121. package/dist/{vue-ui-sparkline-jX03CtPG.cjs → vue-ui-sparkline-CgNq3TDg.cjs} +1 -1
  122. package/dist/{vue-ui-sparkstackbar-C6jgtbtu.js → vue-ui-sparkstackbar-3qtBnVN-.js} +5 -5
  123. package/dist/{vue-ui-sparkstackbar-BcCB8Id3.cjs → vue-ui-sparkstackbar-JgTWCear.cjs} +1 -1
  124. package/dist/{vue-ui-stackbar-CVS_1WMe.cjs → vue-ui-stackbar-BIQOmKWQ.cjs} +1 -1
  125. package/dist/{vue-ui-stackbar-CkEnBXay.js → vue-ui-stackbar-BzWMNHEl.js} +13 -13
  126. package/dist/{vue-ui-strip-plot-ES7BwMoF.js → vue-ui-strip-plot-B5yz7F4O.js} +11 -11
  127. package/dist/{vue-ui-strip-plot-DBabY03i.cjs → vue-ui-strip-plot-Pr-p3HVe.cjs} +1 -1
  128. package/dist/{vue-ui-table-Cf1g82vY.cjs → vue-ui-table-Da8yPHbm.cjs} +1 -1
  129. package/dist/{vue-ui-table-CCwzUTnA.js → vue-ui-table-DfzIKXYz.js} +1 -1
  130. package/dist/{vue-ui-table-heatmap-DtzKVrpK.js → vue-ui-table-heatmap-B42LEDQq.js} +4 -4
  131. package/dist/{vue-ui-table-heatmap-CyHzz9rv.cjs → vue-ui-table-heatmap-m9WunlMI.cjs} +1 -1
  132. package/dist/{vue-ui-table-sparkline-95pS3pBt.js → vue-ui-table-sparkline-D0NpqAlx.js} +5 -5
  133. package/dist/{vue-ui-table-sparkline-CLAybURJ.cjs → vue-ui-table-sparkline-D87wVYbh.cjs} +1 -1
  134. package/dist/{vue-ui-thermometer-BQTWXeqU.js → vue-ui-thermometer-CLrrfpCH.js} +7 -7
  135. package/dist/{vue-ui-thermometer-Cm_KBNVZ.cjs → vue-ui-thermometer-CpaWOGHr.cjs} +1 -1
  136. package/dist/{vue-ui-timer-B0D_sZmm.cjs → vue-ui-timer-DJ3N2OIu.cjs} +1 -1
  137. package/dist/{vue-ui-timer-tLNMbgLM.js → vue-ui-timer-ruhqlCDV.js} +5 -5
  138. package/dist/{vue-ui-tiremarks-nIj267dw.js → vue-ui-tiremarks-B1PaJvW_.js} +7 -7
  139. package/dist/{vue-ui-tiremarks-CWIZflLH.cjs → vue-ui-tiremarks-By-ZwLdD.cjs} +1 -1
  140. package/dist/{vue-ui-treemap-Js5dG3BL.js → vue-ui-treemap-B3_lUi3B.js} +276 -268
  141. package/dist/vue-ui-treemap-DX_oIHsl.cjs +1 -0
  142. package/dist/{vue-ui-vertical-bar-NCB7yZQF.js → vue-ui-vertical-bar-Bi_p2HMG.js} +12 -12
  143. package/dist/{vue-ui-vertical-bar-fh2mIy4s.cjs → vue-ui-vertical-bar-D51OT6tD.cjs} +1 -1
  144. package/dist/{vue-ui-waffle-BTz72Vui.cjs → vue-ui-waffle-BRFWNTTy.cjs} +1 -1
  145. package/dist/{vue-ui-waffle-C70QQeU2.js → vue-ui-waffle-D_OFNFu_.js} +12 -12
  146. package/dist/{vue-ui-wheel-C9DYeu9D.cjs → vue-ui-wheel-C_0xODX0.cjs} +1 -1
  147. package/dist/{vue-ui-wheel-BKAEI3lz.js → vue-ui-wheel-Dm-sn-fc.js} +7 -7
  148. package/dist/{vue-ui-word-cloud-BgxihpLV.cjs → vue-ui-word-cloud-CpbPC0k6.cjs} +1 -1
  149. package/dist/{vue-ui-word-cloud-ChIuYeMe.js → vue-ui-word-cloud-WO_xGFwd.js} +10 -10
  150. package/dist/{vue-ui-xy-BSKwWGbp.cjs → vue-ui-xy-ArWU04zz.cjs} +1 -1
  151. package/dist/{vue-ui-xy-DHgnF-1N.js → vue-ui-xy-DYGsBFzv.js} +14 -14
  152. package/dist/{vue-ui-xy-canvas-BstJgVjY.cjs → vue-ui-xy-canvas-DCFJnGtu.cjs} +1 -1
  153. package/dist/{vue-ui-xy-canvas-xQvriWI0.js → vue-ui-xy-canvas-SpUUvBPW.js} +12 -12
  154. package/package.json +1 -1
  155. package/dist/PackageVersion-C9u9Pwxk.cjs +0 -1
  156. package/dist/vue-ui-treemap-DRDVV_Da.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-hcakVXU6.cjs"),p=require("./useResponsive-N8jl0-aC.cjs"),vt=require("./Tooltip-Cbjcw6Jz.cjs"),dt=require("./Legend-DpeobB-J.cjs"),ht=require("./Title-DRo5NxnS.cjs"),ft=require("./Slicer-hryDvXmh.cjs"),Ye=require("./usePrinter-Dv0RMCX1.cjs"),yt=require("./vue-ui-accordion-BfFg-sVJ.cjs"),pt=require("./DataTable-ChXRV1c1.cjs"),gt=require("./vue-ui-skeleton-FXF7pMM8.cjs"),He=require("./useNestedProp-DCfCPrTU.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-CNr0ynIA.cjs"),xt=require("./ColorPicker-Dk1k_q80.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-1ffe1d80"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BXhJaCcU.cjs"),p=require("./useResponsive-N8jl0-aC.cjs"),vt=require("./Tooltip-TGHDsCSU.cjs"),dt=require("./Legend-CfimXfYH.cjs"),ht=require("./Title-DBgUbEU1.cjs"),ft=require("./Slicer-OBTv9I2-.cjs"),Ye=require("./usePrinter-DRWBcwQ7.cjs"),yt=require("./vue-ui-accordion-DdHwnq9o.cjs"),pt=require("./DataTable-ImmHVJ0i.cjs"),gt=require("./vue-ui-skeleton-CLMRPxZm.cjs"),He=require("./useNestedProp-DhyCNtMY.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-BjlTm9wZ.cjs"),xt=require("./ColorPicker-COPqu9IV.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-1ffe1d80"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
2
2
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
3
  <svg viewBox="0 0 10 10" height="12" width="12">
4
4
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
@@ -1,19 +1,19 @@
1
1
  import { ref as i, computed as T, onMounted as Ge, nextTick as Ie, onBeforeUnmount as bt, watch as te, createElementBlock as X, openBlock as C, Fragment as We, createCommentVNode as le, normalizeClass as fe, createElementVNode as U, withDirectives as Ut, normalizeStyle as W, createVNode as ke, vModelText as Wt, withModifiers as dt, unref as D, renderList as Vt, useSlots as Zt, createBlock as ue, createSlots as Gt, withCtx as z, renderSlot as M, normalizeProps as ve, guardReactiveProps as de, toDisplayString as ht, createTextVNode as _t } from "vue";
2
- import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, $ as tl, J as ll, ac as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-DQCJDAtd.js";
2
+ import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, $ as tl, J as ll, ac as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-jVWdGfFl.js";
3
3
  import { d as il, t as cl, u as vl, c as dl, a as gt, l as I, r as Ze, b as ee, p as pt } from "./useResponsive-vZgZwV-S.js";
4
- import { _ as hl } from "./Tooltip-BvEZcxbc.js";
5
- import { L as fl } from "./Legend-CNvH8CO_.js";
6
- import { _ as yl } from "./Title-CUTRN3ig.js";
7
- import { S as gl } from "./Slicer-CZQhXgqN.js";
8
- import { u as pl, U as ml } from "./usePrinter-FM1PheWO.js";
9
- import bl from "./vue-ui-accordion-BckkmphN.js";
10
- import { D as xl } from "./DataTable-CMtUsL3k.js";
11
- import kl from "./vue-ui-skeleton-BTfzoolB.js";
12
- import { u as mt } from "./useNestedProp-WD6Qn-jr.js";
4
+ import { _ as hl } from "./Tooltip-BUPxcljs.js";
5
+ import { L as fl } from "./Legend-BVtJaKHS.js";
6
+ import { _ as yl } from "./Title-6BRNasyb.js";
7
+ import { S as gl } from "./Slicer-CgnhZJgM.js";
8
+ import { u as pl, U as ml } from "./usePrinter-BI95cSFJ.js";
9
+ import bl from "./vue-ui-accordion-DOBMerZl.js";
10
+ import { D as xl } from "./DataTable-CrhPpuOy.js";
11
+ import kl from "./vue-ui-skeleton-Dsd0bx0Y.js";
12
+ import { u as mt } from "./useNestedProp-BN5jbfiQ.js";
13
13
  import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { u as Cl } from "./useChartAccessibility-BWojgys7.js";
15
- import Ye from "./BaseIcon-BkG8oy7S.js";
16
- import { C as wl } from "./ColorPicker-BolaeJP4.js";
15
+ import Ye from "./BaseIcon-DywZoZmD.js";
16
+ import { C as wl } from "./ColorPicker-gkZLlxzP.js";
17
17
  import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const $l = {
19
19
  class: /* @__PURE__ */ fe({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.6.44",
4
+ "version": "2.6.45",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),t="2.6.44-beta.0",n={"aria-hidden":"true"},s={__name:"PackageVersion",setup(c){return(r,o)=>(e.openBlock(),e.createElementBlock("desc",n,"Composed with Vue Data UI "+e.toDisplayString(e.unref(t)),1))}};exports._sfc_main=s;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-hcakVXU6.cjs"),Fe=require("./Title-DRo5NxnS.cjs"),xe=require("./usePrinter-Dv0RMCX1.cjs"),Ie=require("./Tooltip-Cbjcw6Jz.cjs"),De=require("./Legend-DpeobB-J.cjs"),qe=require("./vue-ui-skeleton-FXF7pMM8.cjs"),Me=require("./DataTable-ChXRV1c1.cjs"),He=require("./vue-ui-accordion-BfFg-sVJ.cjs"),Te=require("./useResponsive-N8jl0-aC.cjs"),Se=require("./useNestedProp-DCfCPrTU.cjs"),Ue=require("./PackageVersion-C9u9Pwxk.cjs"),We=require("./PenAndPaper-B3u1FDG_.cjs"),Ge=require("./useUserOptionState-BgepsfED.cjs"),je=require("./useChartAccessibility-Cm7nkzTG.cjs"),Xe=require("./BaseIcon-CNr0ynIA.cjs"),Ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function $e(r,c){const i=r.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);{let d=1/0,u=-1/0,v=0;for(let p=0;p<i;p+=1){const f=r[p].normalizedValue;f<d&&(d=f),f>u&&(u=f),v+=f}return Math.max(c**2*u/v**2,v**2/(c**2*d))}}function Be(r){const{xOffset:c,yOffset:i,width:d,height:u}=r;return{x0:c,y0:i,x1:c+d,y1:i+u}}function Ze(r,c,i){if(r.length===0)return!0;{const d=r.concat(c),u=$e(r,i),v=$e(d,i);return u>=v}}function Je(r){const c=[],i=r.length;for(let d=0;d<i;d+=1){const u=r[d],v=u.length;for(let h=0;h<v;h+=1)c.push(u[h])}return c}function Ke(r,c){const i={...c,children:r};return Oe(i)}function Qe(r){return(r.x1-r.x0)*(r.y1-r.y0)}function Ne(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(c),h=r.length,p=r.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,x=p/i;let C=u,T=v;const b=[];if(i>=d){for(let y=0;y<h;y+=1){const g=r[y],k=T+g.normalizedValue/f,O={x0:C,y0:T,x1:C+f,y1:k},S=Object.assign({},g,O);T=k,b.push(S)}return b}else{for(let y=0;y<h;y+=1){const g=r[y],k=C+g.normalizedValue/x,O={x0:C,y0:T,x1:k,y1:T+x},S=Object.assign({},g,O);C=k,b.push(S)}return b}}function et(r){const c=J(r),i=c.width,d=c.height;return Math.min(i,d)}function tt(r,c){const i=r.length,d=r.map(f=>f.value??0).reduce((f,x)=>f+x,0),u=c/d,v=[];let h,p;for(let f=0;f<i;f+=1)p=r[f],h=Object.assign({},p,{normalizedValue:p.value*(u||0)}),v.push(h);return v}function J(r){const{x0:c,y0:i,x1:d,y1:u}=r;return{xOffset:c,yOffset:i,width:d-c,height:u-i}}function ot(r,c,i,d){let u=r,v=c,h=i,p=d;for(;;){const f=u.length;if(f===0){const b=Ne(v,h);return p.concat(b)}const x=et(h),C=u[0],T=u.slice(1,f);if(Ze(v,C,x)){const b=v.concat(C);u=T,v=b,h=h,p=p}else{const b=v.length;let y=0;for(let S=0;S<b;S+=1)y+=v[S].normalizedValue;const g=lt(h,y),k=Ne(v,h),O=p.concat(k);u=u,v=[],h=g,p=O}}}function Oe(r){if(typeof r.children>"u"||!r.children.length)return[r];{const c=tt(r.children,Qe(r)),i=ot(c,[],r,[]),d=i.length,u=[];for(let h=0;h<d;h+=1)u.push(Oe(i[h]));return Je(u)}}function lt(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(r);if(i>=d){const h=c/d,p=i-h,f={xOffset:u+h,yOffset:v,width:p,height:d};return Be(f)}else{const h=c/i,p=d-h,f={xOffset:u,yOffset:v+h,width:i,height:p};return Be(f)}}const at=["id"],nt={key:4,class:"vue-ui-treemap-breadcrumbs","data-html2canvas-ignore":""},rt=["onClick","data-last-crumb"],st={class:"vue-ui-treemap-crumb-unit"},ut={class:"vue-ui-treemap-crumb-unit-label"},it={key:0,style:{width:"24px",display:"flex","align-items":"center"}},ct={key:0,class:"vue-ui-treemap-crumb-unit-arrow"},dt=["xmlns","viewBox"],vt={key:0},ht=["id"],pt=["stop-color"],ft=["stop-color"],mt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],gt=["x","y","height","width"],yt={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},bt={key:6,class:"vue-data-ui-watermark"},kt=["onClick"],Ct={key:0},wt={key:1},xt=["innerHTML"],Tt={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(r,{expose:c,emit:i}){const{vue_ui_treemap:d}=s.useConfig(),u=r,v=i,h=e.useSlots();e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!u.dataset&&u.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),x=e.ref(s.createUid()),C=e.ref(!1),T=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),S=e.ref(null),K=e.ref(null),Q=e.ref(null),ee=e.ref(0),te=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>re(),set:o=>o}),{userOptionsVisible:X,setUserOptionsVisibility:le,keepUserOptionState:ae}=Ge.useUserOptionState({config:t.value}),{svgRef:ne}=je.useChartAccessibility({config:t.value.style.chart.title});function re(){const o=Se.useNestedProp({userConfig:u.config,defaultConfig:d});return o.theme?{...Se.useNestedProp({userConfig:s.themes.vue_ui_treemap[o.theme]||u.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>u.config,o=>{t.value=re(),X.value=!t.value.userOptions.showOnChartHover,ee.value+=1,te.value+=1,oe.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:se,isImaging:ue,generatePdf:ie,generateImage:ce}=xe.usePrinter({elementId:`treemap_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),_e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),H=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),z=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function de(o){o.forEach((a,l)=>{a.id=s.createUid(),a.color=s.convertColorToHex(a.color)||H.value[l]||s.palette[l]||s.palette[l%s.palette.length],a.children&&(a.children.forEach(n=>{n.parentId=a.id,n.color=a.color}),de(a.children))})}const P=e.ref(u.dataset),U=e.ref(null);e.onMounted(()=>{Pe()});function Pe(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiTreemap",type:"dataset"}),de(P.value),t.value.responsive){const o=Te.throttle(()=>{const{width:a,height:l}=Te.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?S.value:null,source:K.value,noTitle:Q.value});requestAnimationFrame(()=>{_.value.width=a,_.value.height=l})});U.value=new ResizeObserver(o),U.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{U.value&&U.value.disconnect()});const A=e.ref(P.value),D=e.computed(()=>A.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length]})).filter(o=>!g.value.includes(o.id))),L=e.computed(()=>P.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ve=e.computed({get(){let o=[...D.value];return t.value.style.chart.layout.sorted&&(o=[...D.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function he(o,a){return o.value/a}function Ve(o,a,l){const n=t.value.style.chart.layout.rects.colorRatio-he(a,l);return s.lightenHexColor(o,n<0?0:n)}function pe(o,a,l,n){return o.map((m,V)=>{const j=Ve(s.convertColorToHex(a)||H.value[V]||s.palette[V]||s.palette[V%s.palette.length],m,n),Le=he(m,n);return{...m,color:j,proportion:Le,parentName:l,children:m.children?pe(m.children,j,m.name,n):void 0}})}const q=e.computed(()=>Ke(ve.value.map((o,a)=>{const l=o.children?o.children.reduce((n,m)=>n+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?pe(o.children.sort((n,m)=>m.value-n.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:z.value.left*2,y0:z.value.top,x1:z.value.width,y1:z.value.height}));function fe({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function me({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function E(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function ze(o){b.value=o,y.value+=1}const F=e.computed(()=>({startX:0,startY:0,width:z.value.vbWidth,height:z.value.vbHeight}));function I(o,a=P.value){for(const l of a){if(l.id===o)return l;if(l.children){const n=I(o,l.children);if(n)return n}}return null}const w=e.ref([]),R=e.computed(()=>w.value.length>0);function ge(o){var l;if(!o){A.value=P.value.slice(),v("selectDatapoint",void 0),w.value=[];return}const a=I(o.id);if(a&&((l=a.children)!=null&&l.length))w.value.push(a.id),A.value=a.children.slice(),v("selectDatapoint",o);else if(o.parentId){w.value.push(o.parentId);const n=I(o.parentId);A.value=n.children.slice(),v("selectDatapoint",o)}else if(w.value.length>0){w.value.pop();const n=w.value[w.value.length-1];if(n){const m=I(n);A.value=m.children.slice()}else A.value=P.value.slice(),w.value=[],v("selectDatapoint",void 0)}}const M=e.computed(()=>{const o=[{id:null,label:"All"}];if(w.value.length>0){let a=I(w.value[w.value.length-1]);const l=[];for(;a;)l.unshift(a),a=a.parentId?I(a.parentId):null;for(const n of l)o.push({id:n.id,label:n.name,node:n})}return o}),B=e.ref(null),ye=e.computed(()=>P.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/P.value.map(l=>l.value).reduce((l,n)=>l+n,0),opacity:g.value.includes(o.id)?.5:1}))),Ee=e.computed(()=>({cy:"treemap-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function be(o){R.value=!1,B.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<u.dataset.length-1&&g.value.push(o.id),v("selectLegend",ve.value)}const Y=e.ref(null);function Re({datapoint:o,seriesIndex:a}){B.value=o,Y.value={datapoint:o,seriesIndex:a,config:t.value,series:D.value};const l=t.value.style.chart.tooltip.customFormat;if(s.isFunction(l)&&s.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:D.value,config:t.value})))T.value=l({seriesIndex:a,datapoint:o,series:D.value,config:t.value});else{let n="";n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${o.color}"/></svg>`,n+=`<b>${s.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,T.value=`<div>${n}</div>`}C.value=!0}const N=e.computed(()=>{const o=q.value.map(l=>({name:l.name,color:l.color})),a=q.value.map(l=>l.value);return{head:o,body:a}});function ke(){e.nextTick(()=>{const o=N.value.head.map((n,m)=>[[n.name],[N.value.body[m]],[isNaN(N.value.body[m]/L.value)?"-":N.value.body[m]/L.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const W=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((m,V)=>{const j=s.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[V],s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[V],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},j,isNaN(N.value.body[V]/L.value)?"-":s.dataLabel({v:N.value.body[V]/L.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}});function Ae(){return q.value}function Ce(){$.value.showTable=!$.value.showTable}function we(){$.value.showTooltip=!$.value.showTooltip}const G=e.ref(!1);function Z(){G.value=!G.value}return c({getData:Ae,generateCsv:ke,generateImage:ce,generatePdf:ie,toggleTable:Ce,toggleTooltip:we,toggleAnnotator:Z}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${x.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(le)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(We.PenAndPaper,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:G.value,onClose:Z},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),_e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Fe._sfc_main,{key:`title_${ee.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(ae)||e.unref(X))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(se),isImaging:e.unref(ue),uid:x.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:$.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:G.value,onToggleFullscreen:ze,onGeneratePdf:e.unref(ie),onGenerateCsv:ke,onGenerateImage:e.unref(ce),onToggleTable:Ce,onToggleTooltip:we,onToggleAnnotator:Z,style:e.normalizeStyle({visibility:e.unref(ae)?e.unref(X)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value.length>1?(e.openBlock(),e.createElementBlock("nav",nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(l,n)=>(e.openBlock(),e.createElementBlock("span",{key:l.id||"root",onClick:m=>n===M.value.length-1?()=>{}:ge(l.node),class:"vue-ui-treemap-crumb","data-last-crumb":n===M.value.length-1,style:e.normalizeStyle({color:t.value.style.chart.color})},[e.createElementVNode("span",st,[e.createElementVNode("span",ut,[e.renderSlot(o.$slots,"breadcrumb-label",e.mergeProps({ref_for:!0},{crumb:l,isRoot:n===0}),()=>[n===0?(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(Xe.default,{name:"home",stroke:t.value.style.chart.color},null,8,["stroke"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.label),1)],64))],!0)]),n<M.value.length-1?(e.openBlock(),e.createElementBlock("span",ct,[e.renderSlot(o.$slots,"breadcrumb-arrow",{},()=>[a[5]||(a[5]=e.createTextVNode(" › "))],!0)])):e.createCommentVNode("",!0)])],12,rt))),128))])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:5,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!R.value,"vue-data-ui-zoom-minus":R.value}),viewBox:`${F.value.startX} ${F.value.startY} ${F.value.width<=0?10:F.value.width} ${F.value.height<=0?10:F.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ue._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",vt,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,pt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,ft)],8,ht)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:fe(l),width:me(l),fill:f.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:e.withModifiers(m=>ge(l),["stop"]),onMouseenter:()=>Re({datapoint:l,seriesIndex:n}),onMouseleave:a[0]||(a[0]=m=>{B.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${B.value?B.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,mt),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:fe(l),width:me(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",yt,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||R.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${E(l)/1.5}px);text-align:left;line-height:${E(l)<14?14:E(l)}px;padding:${E(l)/3}px; color:${e.unref(s.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||R.value,fontSize:E(l),isZoom:R.value,textColor:e.unref(s.adaptColorToBackground)(l.color)}),void 0,!0)])],8,gt))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:z.value,isZoom:R.value,rect:B.value,config:t.value})),void 0,!0)],14,dt)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",bt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(se)||e.unref(ue)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qe.default,{key:7,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:S},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:ye.value,config:Ee.value,id:`treemap_legend_${x.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>be(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:m=>be(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",wt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ct," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,kt)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:ye.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:K,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ie._sfc_main,{show:$.value.showTooltip&&C.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:T.value,isFullscreen:b.value,isCustom:e.unref(s.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(He.default,{key:9,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Me.DataTable,{key:`table_${te.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,xt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,at))}},St=Ye._export_sfc(Tt,[["__scopeId","data-v-a6058301"]]);exports.default=St;