vue-data-ui 2.6.52-beta.3 → 2.6.52-beta.5

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 (159) hide show
  1. package/dist/{Arrow-DiNBdsBR.js → Arrow-B8TY__mr.js} +1 -1
  2. package/dist/{Arrow-DmffZD1f.cjs → Arrow-CCFjwZTr.cjs} +1 -1
  3. package/dist/{BaseIcon-CSsYWiU2.js → BaseIcon-OHZFIigi.js} +1 -1
  4. package/dist/{BaseIcon-Bp-RjM-c.cjs → BaseIcon-wi17eqJD.cjs} +1 -1
  5. package/dist/{ColorPicker-Bcr7mC1K.cjs → ColorPicker-BYpMaN-k.cjs} +1 -1
  6. package/dist/{ColorPicker-BJYBOldY.js → ColorPicker-rxGC7zZJ.js} +3 -3
  7. package/dist/{DataTable-DsumsWPy.js → DataTable-DEhSbfTA.js} +2 -2
  8. package/dist/{DataTable-BmZTs83d.cjs → DataTable-ulYxsv3G.cjs} +1 -1
  9. package/dist/{Legend-By57mmm2.cjs → Legend-B4z-JTwx.cjs} +1 -1
  10. package/dist/{Legend-3Uf--eIS.js → Legend-Gk-NvR9L.js} +2 -2
  11. package/dist/{PackageVersion-D8KZgCw5.cjs → PackageVersion-B9tYNMh3.cjs} +1 -1
  12. package/dist/{PackageVersion-D_MkCShi.js → PackageVersion-BQ3Cn3FN.js} +1 -1
  13. package/dist/{PenAndPaper-BFAN1w_X.js → PenAndPaper-CA54zihy.js} +3 -3
  14. package/dist/{PenAndPaper-Q1L1D-dK.cjs → PenAndPaper-DhCdcCXA.cjs} +1 -1
  15. package/dist/{Shape-z-_tEFYn.cjs → Shape-CDasQsCP.cjs} +1 -1
  16. package/dist/{Shape-CR5LkbGf.js → Shape-DWRJ_Arj.js} +1 -1
  17. package/dist/{Slicer-CGUh4gb0.js → Slicer-B0EiYJb-.js} +2 -2
  18. package/dist/{Slicer-CJAAZNYV.cjs → Slicer-D9aqFtZi.cjs} +1 -1
  19. package/dist/{Title-Cn4fLLU3.js → Title-91XTZBtf.js} +1 -1
  20. package/dist/{Title-C6N1U1c3.cjs → Title-BNqg4yHT.cjs} +1 -1
  21. package/dist/{Tooltip-k96eOhda.cjs → Tooltip-Bdq54smD.cjs} +1 -1
  22. package/dist/{Tooltip-vtobQSf9.js → Tooltip-DMLMfsGJ.js} +1 -1
  23. package/dist/dom-to-png-B0WsorZy.cjs +2 -0
  24. package/dist/dom-to-png-DpH-wv1p.js +153 -0
  25. package/dist/{img-aT6AqktJ.cjs → img-D3wKXQ0X.cjs} +1 -1
  26. package/dist/{img-CQ46zmI3.js → img-y9Ect0to.js} +1 -1
  27. package/dist/{index-DCmAuNVn.js → index-BxtdKYe5.js} +1 -1
  28. package/dist/{index-C9re_4Mx.cjs → index-D5fKdu4P.cjs} +1 -1
  29. package/dist/{pdf-BDz9e2x2.js → pdf-BDhGolfm.js} +1 -1
  30. package/dist/{pdf-ZE7npdXY.cjs → pdf-DBZi33Yl.cjs} +1 -1
  31. package/dist/{useNestedProp-B1Yt4wkE.cjs → useNestedProp-BzP-YAbu.cjs} +1 -1
  32. package/dist/{useNestedProp-dyO4jvX0.js → useNestedProp-CnPzAiCM.js} +1 -1
  33. package/dist/{usePrinter-CLOF9GWZ.cjs → usePrinter-DzQ4aoxR.cjs} +1 -1
  34. package/dist/{usePrinter-DvbGw9Ry.js → usePrinter-Oyqm23V8.js} +3 -3
  35. package/dist/{vue-data-ui-C42Y4feH.js → vue-data-ui-DJ8atgeQ.js} +60 -60
  36. package/dist/{vue-data-ui-XZwPSkyK.cjs → vue-data-ui-DuU_k2Fp.cjs} +1 -1
  37. package/dist/vue-data-ui.cjs +1 -1
  38. package/dist/vue-data-ui.js +1 -1
  39. package/dist/{vue-ui-3d-bar-1Y5cgMOC.cjs → vue-ui-3d-bar-CmQIPPbd.cjs} +1 -1
  40. package/dist/{vue-ui-3d-bar-Qs15FNIt.js → vue-ui-3d-bar-ykNTOF2m.js} +9 -9
  41. package/dist/{vue-ui-accordion-Bps0B_OF.cjs → vue-ui-accordion-BssZ9Mi4.cjs} +1 -1
  42. package/dist/{vue-ui-accordion-CBUCYslb.js → vue-ui-accordion-CuQpkn0t.js} +3 -3
  43. package/dist/{vue-ui-age-pyramid-CirG3UO4.cjs → vue-ui-age-pyramid-C6Y-Oher.cjs} +1 -1
  44. package/dist/{vue-ui-age-pyramid-crlmSQjL.js → vue-ui-age-pyramid-Cphe-E4p.js} +10 -10
  45. package/dist/{vue-ui-annotator-ViJo7osH.js → vue-ui-annotator-BVp8X_7a.js} +2 -2
  46. package/dist/{vue-ui-annotator-s6X8rlvC.cjs → vue-ui-annotator-x2upb1AK.cjs} +1 -1
  47. package/dist/{vue-ui-bullet-C9Y7pknc.js → vue-ui-bullet-Biu4-ee6.js} +8 -8
  48. package/dist/{vue-ui-bullet-C4OVmUeS.cjs → vue-ui-bullet-mLayZ1Sd.cjs} +1 -1
  49. package/dist/{vue-ui-candlestick-iKAe9fYy.cjs → vue-ui-candlestick-BWhWI3J3.cjs} +1 -1
  50. package/dist/{vue-ui-candlestick-9ZlVQUJq.js → vue-ui-candlestick-D8iEqK8f.js} +11 -11
  51. package/dist/{vue-ui-carousel-table-Cou3ZWyA.cjs → vue-ui-carousel-table-C8WUNBZs.cjs} +1 -1
  52. package/dist/{vue-ui-carousel-table-Dydk5R4P.js → vue-ui-carousel-table-CNk7v5IQ.js} +4 -4
  53. package/dist/{vue-ui-chestnut-CVVY79HA.cjs → vue-ui-chestnut-D2EJHszH.cjs} +1 -1
  54. package/dist/{vue-ui-chestnut-D0e6mmXV.js → vue-ui-chestnut-DhTICdKN.js} +8 -8
  55. package/dist/{vue-ui-circle-pack-CfWSsNWH.js → vue-ui-circle-pack-BWugCuZh.js} +9 -9
  56. package/dist/{vue-ui-circle-pack-Do4xfk-9.cjs → vue-ui-circle-pack-Dgwxf-jd.cjs} +1 -1
  57. package/dist/{vue-ui-cursor-3sWD6sWb.cjs → vue-ui-cursor-CAMZYE57.cjs} +1 -1
  58. package/dist/{vue-ui-cursor-xQ174Exh.js → vue-ui-cursor-DMhyascs.js} +2 -2
  59. package/dist/{vue-ui-dashboard-C1uUPCjM.js → vue-ui-dashboard-JVaZYCF3.js} +3 -3
  60. package/dist/{vue-ui-dashboard-BunxEhYt.cjs → vue-ui-dashboard-yjjaT653.cjs} +1 -1
  61. package/dist/{vue-ui-digits-DUZmkmYd.js → vue-ui-digits-B4J1Lk0X.js} +2 -2
  62. package/dist/{vue-ui-digits-N1cnBghF.cjs → vue-ui-digits-wAr997Ag.cjs} +1 -1
  63. package/dist/{vue-ui-donut-Cj03ZYot.cjs → vue-ui-donut-CXiQyXRn.cjs} +1 -1
  64. package/dist/{vue-ui-donut-evolution-cvXK5LQ5.js → vue-ui-donut-evolution--wdAk63p.js} +11 -11
  65. package/dist/{vue-ui-donut-evolution-6Q0nYlTW.cjs → vue-ui-donut-evolution-CF8qeLbv.cjs} +1 -1
  66. package/dist/{vue-ui-donut-ihaNFaYc.js → vue-ui-donut-vwUDlaKK.js} +12 -12
  67. package/dist/{vue-ui-dumbbell-bdqK39uJ.js → vue-ui-dumbbell-BWYOAThm.js} +10 -10
  68. package/dist/{vue-ui-dumbbell-BE4I_toV.cjs → vue-ui-dumbbell-my4f8BAM.cjs} +1 -1
  69. package/dist/{vue-ui-flow-tRxrMO0D.js → vue-ui-flow-BmVwWcM1.js} +9 -9
  70. package/dist/{vue-ui-flow-Vtqld7-0.cjs → vue-ui-flow-Cls5S3ha.cjs} +1 -1
  71. package/dist/{vue-ui-funnel-Dry3d3qO.js → vue-ui-funnel-BdRWwxN8.js} +9 -9
  72. package/dist/{vue-ui-funnel-B9njr1Nz.cjs → vue-ui-funnel-ehfGkf1d.cjs} +1 -1
  73. package/dist/{vue-ui-galaxy-BTi9JvKL.cjs → vue-ui-galaxy-Cif1VwDV.cjs} +1 -1
  74. package/dist/{vue-ui-galaxy-5Vz4zEz-.js → vue-ui-galaxy-z2AMuEAZ.js} +11 -11
  75. package/dist/{vue-ui-gauge-DFKo2qK_.cjs → vue-ui-gauge-D9QOYMez.cjs} +1 -1
  76. package/dist/{vue-ui-gauge-Bj0xQcGC.js → vue-ui-gauge-Z0fgbeHK.js} +7 -7
  77. package/dist/{vue-ui-gizmo-DcMLj8GJ.cjs → vue-ui-gizmo-CfEVJo1b.cjs} +1 -1
  78. package/dist/{vue-ui-gizmo-DkrEfq4T.js → vue-ui-gizmo-Dtq7IdYi.js} +3 -3
  79. package/dist/{vue-ui-heatmap-CV8cOzBd.cjs → vue-ui-heatmap-B1CLU_df.cjs} +1 -1
  80. package/dist/{vue-ui-heatmap-Pq6a_jDP.js → vue-ui-heatmap-BB1n3ZCa.js} +10 -10
  81. package/dist/{vue-ui-history-plot-BiEJuEnw.js → vue-ui-history-plot-Dm8h1kdK.js} +11 -11
  82. package/dist/{vue-ui-history-plot-GmOwowDC.cjs → vue-ui-history-plot-DrizNoKH.cjs} +1 -1
  83. package/dist/{vue-ui-kpi-kHmLWTNw.cjs → vue-ui-kpi-DGDCYKmQ.cjs} +1 -1
  84. package/dist/{vue-ui-kpi-DaPI81Bo.js → vue-ui-kpi-DhdvFpfw.js} +3 -3
  85. package/dist/{vue-ui-mini-loader-R2hOjF82.js → vue-ui-mini-loader-B5rimMGL.js} +2 -2
  86. package/dist/{vue-ui-mini-loader-B5jVqYcv.cjs → vue-ui-mini-loader-B6jMMJBP.cjs} +1 -1
  87. package/dist/{vue-ui-molecule-BDa0HjPC.cjs → vue-ui-molecule-BSgKNNRK.cjs} +1 -1
  88. package/dist/{vue-ui-molecule--fQXkEaj.js → vue-ui-molecule-Bl_rnlLf.js} +11 -11
  89. package/dist/{vue-ui-mood-radar-ZqFerlfg.cjs → vue-ui-mood-radar-DbeVAsTR.cjs} +1 -1
  90. package/dist/{vue-ui-mood-radar-D3Al6Qak.js → vue-ui-mood-radar-DyympfXO.js} +11 -11
  91. package/dist/{vue-ui-nested-donuts-BjsNie1V.js → vue-ui-nested-donuts-C0P6Vlqr.js} +11 -11
  92. package/dist/{vue-ui-nested-donuts-DhPGQnPZ.cjs → vue-ui-nested-donuts-CQl3nJFB.cjs} +1 -1
  93. package/dist/{vue-ui-onion-rYqiON-p.cjs → vue-ui-onion-BvoZuStT.cjs} +1 -1
  94. package/dist/{vue-ui-onion-ANhD1-xT.js → vue-ui-onion-DmiPhWjl.js} +11 -11
  95. package/dist/{vue-ui-parallel-coordinate-plot-Cf6C0BI5.js → vue-ui-parallel-coordinate-plot-DdEFQQyQ.js} +12 -12
  96. package/dist/{vue-ui-parallel-coordinate-plot-DNzVMbn-.cjs → vue-ui-parallel-coordinate-plot-jfNy0UjO.cjs} +1 -1
  97. package/dist/{vue-ui-quadrant-CPDzqrz9.js → vue-ui-quadrant-C2DMP04c.js} +12 -12
  98. package/dist/{vue-ui-quadrant-J5VZ_r-X.cjs → vue-ui-quadrant-DPTiwZuy.cjs} +1 -1
  99. package/dist/{vue-ui-quick-chart-BkWUL5Dw.cjs → vue-ui-quick-chart-BcY1CXEU.cjs} +1 -1
  100. package/dist/{vue-ui-quick-chart-KxRJkti5.js → vue-ui-quick-chart-DD8kCaB2.js} +9 -9
  101. package/dist/{vue-ui-radar-C8qxkHCz.cjs → vue-ui-radar-B25pdHQZ.cjs} +1 -1
  102. package/dist/{vue-ui-radar-uoqEuZvh.js → vue-ui-radar-CfDcZOnn.js} +12 -12
  103. package/dist/{vue-ui-rating-x88MZzrY.cjs → vue-ui-rating-CrsLg0J1.cjs} +1 -1
  104. package/dist/{vue-ui-rating-CiXHDAuv.js → vue-ui-rating-traxyYUw.js} +2 -2
  105. package/dist/{vue-ui-relation-circle-ClYqH2X0.js → vue-ui-relation-circle-CnIJtPPN.js} +7 -7
  106. package/dist/{vue-ui-relation-circle-C1BCtW_d.cjs → vue-ui-relation-circle-pdiic3Fm.cjs} +1 -1
  107. package/dist/{vue-ui-rings-B-6ZYUC8.cjs → vue-ui-rings-CikXnOsg.cjs} +1 -1
  108. package/dist/{vue-ui-rings-B7wtkqJZ.js → vue-ui-rings-DOq7oNsM.js} +12 -12
  109. package/dist/{vue-ui-scatter-Btr4II9d.cjs → vue-ui-scatter-DOyOzgsD.cjs} +1 -1
  110. package/dist/{vue-ui-scatter-DsqXzwI4.js → vue-ui-scatter-oTX2ZmRw.js} +12 -12
  111. package/dist/{vue-ui-skeleton-CnsAwf_n.js → vue-ui-skeleton-BarYY56T.js} +3 -3
  112. package/dist/{vue-ui-skeleton-DYyqgW1y.cjs → vue-ui-skeleton-CpnSZUlg.cjs} +1 -1
  113. package/dist/{vue-ui-smiley-DNrk9tcx.cjs → vue-ui-smiley-CToFy8wS.cjs} +1 -1
  114. package/dist/{vue-ui-smiley-HuwpntLu.js → vue-ui-smiley-DRSUjVEp.js} +2 -2
  115. package/dist/{vue-ui-spark-trend-DVfrIf5F.cjs → vue-ui-spark-trend-Dh7-Qi-2.cjs} +1 -1
  116. package/dist/{vue-ui-spark-trend-Dqv6EGso.js → vue-ui-spark-trend-pWJIbFo8.js} +5 -5
  117. package/dist/{vue-ui-sparkbar-DD4fyARG.js → vue-ui-sparkbar-BAIq89hg.js} +4 -4
  118. package/dist/{vue-ui-sparkbar-D3m2WDSt.cjs → vue-ui-sparkbar-daJ0HwoJ.cjs} +1 -1
  119. package/dist/{vue-ui-sparkgauge-CCE5ckqh.cjs → vue-ui-sparkgauge-F_V-PZFj.cjs} +1 -1
  120. package/dist/{vue-ui-sparkgauge-CxeysWIf.js → vue-ui-sparkgauge-G2UFRxHT.js} +4 -4
  121. package/dist/{vue-ui-sparkhistogram-D666DpIw.cjs → vue-ui-sparkhistogram-CEJVlFh7.cjs} +1 -1
  122. package/dist/{vue-ui-sparkhistogram-DUpS6-1w.js → vue-ui-sparkhistogram-HMYtmBMr.js} +5 -5
  123. package/dist/{vue-ui-sparkline-CWi3no2l.cjs → vue-ui-sparkline-CEaEJniY.cjs} +1 -1
  124. package/dist/{vue-ui-sparkline-BAF8Ef3J.js → vue-ui-sparkline-EnsuPcgZ.js} +4 -4
  125. package/dist/{vue-ui-sparkstackbar--4-0dhr9.js → vue-ui-sparkstackbar-CAja3JPB.js} +5 -5
  126. package/dist/{vue-ui-sparkstackbar-Z3PZWw9J.cjs → vue-ui-sparkstackbar-DYDt9vsR.cjs} +1 -1
  127. package/dist/{vue-ui-stackbar-CBjd8UPy.js → vue-ui-stackbar-DVoF_W8n.js} +13 -13
  128. package/dist/{vue-ui-stackbar-ChuAEHKO.cjs → vue-ui-stackbar-YnSKSnLq.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-CX8FTyYJ.cjs → vue-ui-strip-plot-BGTrxjms.cjs} +1 -1
  130. package/dist/{vue-ui-strip-plot-4wxNeZ93.js → vue-ui-strip-plot-CFhSfYCk.js} +11 -11
  131. package/dist/{vue-ui-table-BcU9UA1y.cjs → vue-ui-table-BVIgf3Bs.cjs} +1 -1
  132. package/dist/{vue-ui-table-GYowfNdb.js → vue-ui-table-CT-g7R2y.js} +1 -1
  133. package/dist/{vue-ui-table-heatmap-Dodh9Ua9.js → vue-ui-table-heatmap-ByT9v-Pw.js} +4 -4
  134. package/dist/{vue-ui-table-heatmap-Bn0HtFJU.cjs → vue-ui-table-heatmap-VfSLaa5E.cjs} +1 -1
  135. package/dist/{vue-ui-table-sparkline-DbxkTQur.cjs → vue-ui-table-sparkline-DhKaCRB8.cjs} +1 -1
  136. package/dist/{vue-ui-table-sparkline-CK_Hi_hX.js → vue-ui-table-sparkline-DqXwxQRl.js} +5 -5
  137. package/dist/{vue-ui-thermometer-C14HJqFg.cjs → vue-ui-thermometer-DD1B_pti.cjs} +1 -1
  138. package/dist/{vue-ui-thermometer-DEJinzBY.js → vue-ui-thermometer-DeV7tqvG.js} +7 -7
  139. package/dist/{vue-ui-timer-C8jPewHS.cjs → vue-ui-timer-Bfh_Wfmk.cjs} +1 -1
  140. package/dist/{vue-ui-timer-Cq--rn4B.js → vue-ui-timer-C-UkRll5.js} +5 -5
  141. package/dist/{vue-ui-tiremarks-Bu0RsRXg.js → vue-ui-tiremarks-BLaIMFfO.js} +7 -7
  142. package/dist/{vue-ui-tiremarks-DT9J2DdG.cjs → vue-ui-tiremarks-BURfGPTa.cjs} +1 -1
  143. package/dist/{vue-ui-treemap-BErj9-_-.cjs → vue-ui-treemap-BEIZtm1v.cjs} +1 -1
  144. package/dist/{vue-ui-treemap-DE9p3eNT.js → vue-ui-treemap-Bh9T2QGR.js} +12 -12
  145. package/dist/{vue-ui-vertical-bar-C4pmy1lf.js → vue-ui-vertical-bar-BDTFAaSi.js} +12 -12
  146. package/dist/{vue-ui-vertical-bar-Dfs23Rre.cjs → vue-ui-vertical-bar-D34jOmBL.cjs} +1 -1
  147. package/dist/{vue-ui-waffle-AVIMsLqB.js → vue-ui-waffle-D_wFHYjx.js} +12 -12
  148. package/dist/{vue-ui-waffle-CTVWizXy.cjs → vue-ui-waffle-YbCXaB8a.cjs} +1 -1
  149. package/dist/{vue-ui-wheel-C2GtGiW1.cjs → vue-ui-wheel-CP1r3DEg.cjs} +1 -1
  150. package/dist/{vue-ui-wheel-t9Jkx5hZ.js → vue-ui-wheel-D5soHQXq.js} +7 -7
  151. package/dist/{vue-ui-word-cloud-bBrWIYZX.js → vue-ui-word-cloud-BMg0Rxu1.js} +10 -10
  152. package/dist/{vue-ui-word-cloud-CE8ANVRG.cjs → vue-ui-word-cloud-Xg52fNIm.cjs} +1 -1
  153. package/dist/{vue-ui-xy-UFr5RWM3.js → vue-ui-xy-CfcADzgG.js} +16 -16
  154. package/dist/{vue-ui-xy-DW7yh_de.cjs → vue-ui-xy-DSuTcLVn.cjs} +2 -2
  155. package/dist/{vue-ui-xy-canvas-CPM4XeV9.cjs → vue-ui-xy-canvas-CVVtbjSN.cjs} +1 -1
  156. package/dist/{vue-ui-xy-canvas-DCpZijXn.js → vue-ui-xy-canvas-CmfEj3_k.js} +12 -12
  157. package/package.json +1 -1
  158. package/dist/dom-to-png-8Zjm_0Ye.cjs +0 -2
  159. package/dist/dom-to-png-CbjeuMOH.js +0 -151
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C9re_4Mx.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-k96eOhda.cjs"),dt=require("./Legend-By57mmm2.cjs"),ht=require("./Title-C6N1U1c3.cjs"),ft=require("./Slicer-CJAAZNYV.cjs"),Ye=require("./usePrinter-CLOF9GWZ.cjs"),yt=require("./vue-ui-accordion-Bps0B_OF.cjs"),pt=require("./DataTable-BmZTs83d.cjs"),gt=require("./vue-ui-skeleton-DYyqgW1y.cjs"),He=require("./useNestedProp-B1Yt4wkE.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-Bp-RjM-c.cjs"),xt=require("./ColorPicker-Bcr7mC1K.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-dom-to-png-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-6e690e62"]]),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-D5fKdu4P.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-Bdq54smD.cjs"),dt=require("./Legend-B4z-JTwx.cjs"),ht=require("./Title-BNqg4yHT.cjs"),ft=require("./Slicer-D9aqFtZi.cjs"),Ye=require("./usePrinter-DzQ4aoxR.cjs"),yt=require("./vue-ui-accordion-BssZ9Mi4.cjs"),pt=require("./DataTable-ulYxsv3G.cjs"),gt=require("./vue-ui-skeleton-CpnSZUlg.cjs"),He=require("./useNestedProp-BzP-YAbu.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-wi17eqJD.cjs"),xt=require("./ColorPicker-BYpMaN-k.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-dom-to-png-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-6e690e62"]]),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-DCmAuNVn.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-BxtdKYe5.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-Cw4oZ8sQ.js";
4
- import { _ as hl } from "./Tooltip-vtobQSf9.js";
5
- import { L as fl } from "./Legend-3Uf--eIS.js";
6
- import { _ as yl } from "./Title-Cn4fLLU3.js";
7
- import { S as gl } from "./Slicer-CGUh4gb0.js";
8
- import { u as pl, U as ml } from "./usePrinter-DvbGw9Ry.js";
9
- import bl from "./vue-ui-accordion-CBUCYslb.js";
10
- import { D as xl } from "./DataTable-DsumsWPy.js";
11
- import kl from "./vue-ui-skeleton-CnsAwf_n.js";
12
- import { u as mt } from "./useNestedProp-dyO4jvX0.js";
4
+ import { _ as hl } from "./Tooltip-DMLMfsGJ.js";
5
+ import { L as fl } from "./Legend-Gk-NvR9L.js";
6
+ import { _ as yl } from "./Title-91XTZBtf.js";
7
+ import { S as gl } from "./Slicer-B0EiYJb-.js";
8
+ import { u as pl, U as ml } from "./usePrinter-Oyqm23V8.js";
9
+ import bl from "./vue-ui-accordion-CuQpkn0t.js";
10
+ import { D as xl } from "./DataTable-DEhSbfTA.js";
11
+ import kl from "./vue-ui-skeleton-BarYY56T.js";
12
+ import { u as mt } from "./useNestedProp-CnPzAiCM.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-CSsYWiU2.js";
16
- import { C as wl } from "./ColorPicker-BJYBOldY.js";
15
+ import Ye from "./BaseIcon-OHZFIigi.js";
16
+ import { C as wl } from "./ColorPicker-rxGC7zZJ.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.52-beta.3",
4
+ "version": "2.6.52-beta.5",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,2 +0,0 @@
1
- "use strict";const x=require("./index-C9re_4Mx.cjs");async function R(e){const i=e.querySelectorAll("img"),n=[];i.forEach(t=>{t.src&&!t.src.startsWith("data:")&&n.push(new Promise(o=>{const a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){try{const s=document.createElement("canvas");s.width=a.naturalWidth,s.height=a.naturalHeight,s.getContext("2d").drawImage(a,0,0),t.src=s.toDataURL()}catch{}o()},a.onerror=function(){o()},a.src=t.src}))}),await Promise.all(n)}function L(e){e.querySelectorAll("[data-dom-to-png-ignore]").forEach(n=>{n.parentNode&&n.parentNode.removeChild(n)})}function C(e,i,n){const t=window.getComputedStyle(i);let o={},a=e.getAttribute("style");typeof a!="string"&&(a=""),a.split(";").forEach(r=>{if(typeof r=="string"&&r.trim()){const[d,y]=r.split(":");d&&y!==void 0&&(o[d.trim()]=y.trim())}});for(let r=0;r<t.length;r+=1){const d=t[r],y=t.getPropertyValue(d);o[d]=y}const s=i.getBoundingClientRect();s.width>0&&(o.width=s.width+"px");const m=Math.max(i.scrollHeight,s.height);m>0&&(o.height=m+"px"),o.display&&o.display.includes("flex")&&(o["flex-wrap"]=t.getPropertyValue("flex-wrap")||"wrap",o["align-items"]=t.getPropertyValue("align-items"),o["justify-content"]=t.getPropertyValue("justify-content"),o.gap=t.getPropertyValue("gap"),o["row-gap"]=t.getPropertyValue("row-gap"),o["column-gap"]=t.getPropertyValue("column-gap")),o.overflow="visible",o["overflow-x"]="visible",o["overflow-y"]="visible",n&&(o["font-family"]=n);let p="";for(const r in o)p+=`${r}:${o[r]};`;e.setAttribute("style",p);const l=e.children||[],u=i.children||[];for(let r=0;r<l.length;r++)l[r].nodeType===1&&u[r]&&C(l[r],u[r],n)}function E(e,i){e.querySelectorAll("text").forEach(t=>{t.setAttribute("font-family",i),t.style.fontFamily=i})}function N(e){const i=new TextEncoder().encode(e);let n="";return i.forEach(t=>n+=String.fromCharCode(t)),btoa(n)}function T(e,i,n){let o=new XMLSerializer().serializeToString(e);o.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(o=o.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const a=window.btoa(unescape(encodeURIComponent(o))),s=new window.Image;return s.src=`data:image/svg+xml;base64,${a}`,new Promise((m,p)=>{s.onload=function(){const l=document.createElement("canvas");l.width=i,l.height=n,l.getContext("2d").drawImage(s,0,0,i,n),m(l.toDataURL("image/png",1))},s.onerror=l=>p(l)})}function b(e){if(e.nodeType!==1)return;const i=window.getComputedStyle(e);let n="";for(let t=0;t<i.length;t++){const o=i[t];n+=`${o}:${i.getPropertyValue(o)};`}e.setAttribute("style",n);for(let t=0;t<e.children.length;t++)b(e.children[t])}function $(){const e=[];for(const i of document.styleSheets)try{const n=i.cssRules;if(!n)continue;for(const t of n)(t.constructor.name==="CSSFontFaceRule"||t.cssText.startsWith("@font-face"))&&e.push(t.cssText)}catch{continue}return e}function q(e){const i=$();if(!i.length)return;const n=document.createElement("style");n.setAttribute("type","text/css"),n.textContent=i.join(`
2
- `);const t=e.querySelector("defs")||document.createElementNS(x.XMLNS,"defs");t.appendChild(n),e.querySelector("defs")||e.insertBefore(t,e.firstChild)}async function I({container:e,scale:i=2}){if(!e)throw new Error("No container provided");await document.fonts.ready;let n=window.getComputedStyle(e).fontFamily||"Helvetica";n.toLowerCase().includes("helvetica")||(n+=", Helvetica");const t=e.cloneNode(!0),o=t.querySelectorAll("canvas"),a=e.querySelectorAll("canvas");for(let h=0;h<a.length;h+=1){const c=a[h],g=o[h];if(c&&g){const f=document.createElement("img");f.src=c.toDataURL("image/png"),f.width=c.width,f.height=c.height,f.style.width=c.style.width||c.width+"px",f.style.height=c.style.height||c.height+"px",g.replaceWith(f)}}const s=e.querySelector("svg[aria-label]");if(s){const h=s.getBoundingClientRect(),c=h.width,g=h.height;b(s),E(s,n);const f=Math.round(c*i),P=Math.round(g*i),M=await T(s,f,P),v=t.querySelector("svg[aria-label]");if(v){const w=document.createElement("img");w.src=M,w.width=c,w.height=g,w.style.width=c+"px",w.style.height=g+"px",v.parentNode.replaceChild(w,v)}}C(t,e,n),L(t),await R(t);const{width:m,height:p}=e.getBoundingClientRect(),l=Math.round(Math.max(t.scrollWidth,m)*i),u=Math.round(Math.max(t.scrollHeight,p)*1.01*i),r=document.createElementNS(x.XMLNS,"svg");r.setAttribute("viewBox",`0 0 ${l} ${u}`),r.setAttribute("width",l),r.setAttribute("height",u),r.setAttribute("style",`font-family:${n};`);const d=document.createElementNS(x.XMLNS,"foreignObject");d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",l),d.setAttribute("height",u),d.setAttribute("style",`font-family:${n};`),t.style.transform=`scale(${i})`,t.style.transformOrigin="top left",t.style.width=m+"px",t.style.height=p+"px",t.style.background=window.getComputedStyle(e).backgroundColor,d.appendChild(t),q(r),r.appendChild(d);const y=new XMLSerializer().serializeToString(r),A=N(y),S=new window.Image;return S.crossOrigin="anonymous",S.src=`data:image/svg+xml;base64,${A}`,new Promise((h,c)=>{S.onload=function(){try{const g=document.createElement("canvas");g.width=l,g.height=u,g.getContext("2d").drawImage(S,0,0,l,u),h(g.toDataURL("image/png",1))}catch(g){c("Failed to draw SVG on canvas: "+g)}},S.onerror=function(){c("Failed to load SVG image for conversion")}})}exports.domToPng=I;
@@ -1,151 +0,0 @@
1
- import { X as S } from "./index-DCmAuNVn.js";
2
- async function E(e) {
3
- const i = e.querySelectorAll("img"), n = [];
4
- i.forEach((t) => {
5
- t.src && !t.src.startsWith("data:") && n.push(
6
- new Promise((o) => {
7
- const a = new window.Image();
8
- a.crossOrigin = "anonymous", a.onload = function() {
9
- try {
10
- const s = document.createElement("canvas");
11
- s.width = a.naturalWidth, s.height = a.naturalHeight, s.getContext("2d").drawImage(a, 0, 0), t.src = s.toDataURL();
12
- } catch {
13
- }
14
- o();
15
- }, a.onerror = function() {
16
- o();
17
- }, a.src = t.src;
18
- })
19
- );
20
- }), await Promise.all(n);
21
- }
22
- function M(e) {
23
- e.querySelectorAll("[data-dom-to-png-ignore]").forEach((n) => {
24
- n.parentNode && n.parentNode.removeChild(n);
25
- });
26
- }
27
- function C(e, i, n) {
28
- const t = window.getComputedStyle(i);
29
- let o = {}, a = e.getAttribute("style");
30
- typeof a != "string" && (a = ""), a.split(";").forEach((r) => {
31
- if (typeof r == "string" && r.trim()) {
32
- const [d, y] = r.split(":");
33
- d && y !== void 0 && (o[d.trim()] = y.trim());
34
- }
35
- });
36
- for (let r = 0; r < t.length; r += 1) {
37
- const d = t[r], y = t.getPropertyValue(d);
38
- o[d] = y;
39
- }
40
- const s = i.getBoundingClientRect();
41
- s.width > 0 && (o.width = s.width + "px");
42
- const m = Math.max(i.scrollHeight, s.height);
43
- m > 0 && (o.height = m + "px"), o.display && o.display.includes("flex") && (o["flex-wrap"] = t.getPropertyValue("flex-wrap") || "wrap", o["align-items"] = t.getPropertyValue("align-items"), o["justify-content"] = t.getPropertyValue("justify-content"), o.gap = t.getPropertyValue("gap"), o["row-gap"] = t.getPropertyValue("row-gap"), o["column-gap"] = t.getPropertyValue("column-gap")), o.overflow = "visible", o["overflow-x"] = "visible", o["overflow-y"] = "visible", n && (o["font-family"] = n);
44
- let p = "";
45
- for (const r in o)
46
- p += `${r}:${o[r]};`;
47
- e.setAttribute("style", p);
48
- const l = e.children || [], u = i.children || [];
49
- for (let r = 0; r < l.length; r++)
50
- l[r].nodeType === 1 && u[r] && C(l[r], u[r], n);
51
- }
52
- function $(e, i) {
53
- e.querySelectorAll("text").forEach((t) => {
54
- t.setAttribute("font-family", i), t.style.fontFamily = i;
55
- });
56
- }
57
- function I(e) {
58
- const i = new TextEncoder().encode(e);
59
- let n = "";
60
- return i.forEach((t) => n += String.fromCharCode(t)), btoa(n);
61
- }
62
- function L(e, i, n) {
63
- let o = new XMLSerializer().serializeToString(e);
64
- o.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (o = o.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"'));
65
- const a = window.btoa(unescape(encodeURIComponent(o))), s = new window.Image();
66
- return s.src = `data:image/svg+xml;base64,${a}`, new Promise((m, p) => {
67
- s.onload = function() {
68
- const l = document.createElement("canvas");
69
- l.width = i, l.height = n, l.getContext("2d").drawImage(s, 0, 0, i, n), m(l.toDataURL("image/png", 1));
70
- }, s.onerror = (l) => p(l);
71
- });
72
- }
73
- function b(e) {
74
- if (e.nodeType !== 1) return;
75
- const i = window.getComputedStyle(e);
76
- let n = "";
77
- for (let t = 0; t < i.length; t++) {
78
- const o = i[t];
79
- n += `${o}:${i.getPropertyValue(o)};`;
80
- }
81
- e.setAttribute("style", n);
82
- for (let t = 0; t < e.children.length; t++)
83
- b(e.children[t]);
84
- }
85
- function T() {
86
- const e = [];
87
- for (const i of document.styleSheets)
88
- try {
89
- const n = i.cssRules;
90
- if (!n) continue;
91
- for (const t of n)
92
- (t.constructor.name === "CSSFontFaceRule" || t.cssText.startsWith("@font-face")) && e.push(t.cssText);
93
- } catch {
94
- continue;
95
- }
96
- return e;
97
- }
98
- function V(e) {
99
- const i = T();
100
- if (!i.length) return;
101
- const n = document.createElement("style");
102
- n.setAttribute("type", "text/css"), n.textContent = i.join(`
103
- `);
104
- const t = e.querySelector("defs") || document.createElementNS(S, "defs");
105
- t.appendChild(n), e.querySelector("defs") || e.insertBefore(t, e.firstChild);
106
- }
107
- async function F({ container: e, scale: i = 2 }) {
108
- if (!e) throw new Error("No container provided");
109
- await document.fonts.ready;
110
- let n = window.getComputedStyle(e).fontFamily || "Helvetica";
111
- n.toLowerCase().includes("helvetica") || (n += ", Helvetica");
112
- const t = e.cloneNode(!0), o = t.querySelectorAll("canvas"), a = e.querySelectorAll("canvas");
113
- for (let h = 0; h < a.length; h += 1) {
114
- const c = a[h], g = o[h];
115
- if (c && g) {
116
- const f = document.createElement("img");
117
- f.src = c.toDataURL("image/png"), f.width = c.width, f.height = c.height, f.style.width = c.style.width || c.width + "px", f.style.height = c.style.height || c.height + "px", g.replaceWith(f);
118
- }
119
- }
120
- const s = e.querySelector("svg[aria-label]");
121
- if (s) {
122
- const h = s.getBoundingClientRect(), c = h.width, g = h.height;
123
- b(s), $(s, n);
124
- const f = Math.round(c * i), P = Math.round(g * i), R = await L(s, f, P), x = t.querySelector("svg[aria-label]");
125
- if (x) {
126
- const w = document.createElement("img");
127
- w.src = R, w.width = c, w.height = g, w.style.width = c + "px", w.style.height = g + "px", x.parentNode.replaceChild(w, x);
128
- }
129
- }
130
- C(t, e, n), M(t), await E(t);
131
- const { width: m, height: p } = e.getBoundingClientRect(), l = Math.round(Math.max(t.scrollWidth, m) * i), u = Math.round(Math.max(t.scrollHeight, p) * 1.01 * i), r = document.createElementNS(S, "svg");
132
- r.setAttribute("viewBox", `0 0 ${l} ${u}`), r.setAttribute("width", l), r.setAttribute("height", u), r.setAttribute("style", `font-family:${n};`);
133
- const d = document.createElementNS(S, "foreignObject");
134
- d.setAttribute("x", 0), d.setAttribute("y", 0), d.setAttribute("width", l), d.setAttribute("height", u), d.setAttribute("style", `font-family:${n};`), t.style.transform = `scale(${i})`, t.style.transformOrigin = "top left", t.style.width = m + "px", t.style.height = p + "px", t.style.background = window.getComputedStyle(e).backgroundColor, d.appendChild(t), V(r), r.appendChild(d);
135
- const y = new XMLSerializer().serializeToString(r), A = I(y), v = new window.Image();
136
- return v.crossOrigin = "anonymous", v.src = `data:image/svg+xml;base64,${A}`, new Promise((h, c) => {
137
- v.onload = function() {
138
- try {
139
- const g = document.createElement("canvas");
140
- g.width = l, g.height = u, g.getContext("2d").drawImage(v, 0, 0, l, u), h(g.toDataURL("image/png", 1));
141
- } catch (g) {
142
- c("Failed to draw SVG on canvas: " + g);
143
- }
144
- }, v.onerror = function() {
145
- c("Failed to load SVG image for conversion");
146
- };
147
- });
148
- }
149
- export {
150
- F as d
151
- };