vue-data-ui 2.6.41 → 2.6.43

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 (199) hide show
  1. package/dist/{Arrow-CzwnuhQC.js → Arrow-Bz8n6ycZ.js} +1 -1
  2. package/dist/{Arrow-j4Npojhv.cjs → Arrow-C0LFlY5e.cjs} +1 -1
  3. package/dist/{BaseIcon-lwGFy7CI.cjs → BaseIcon-Bolmn50v.cjs} +1 -1
  4. package/dist/{BaseIcon-DyOT6PYJ.js → BaseIcon-BySu2V3d.js} +1 -1
  5. package/dist/{ColorPicker-BiTtlEx1.cjs → ColorPicker-DUYztfXY.cjs} +1 -1
  6. package/dist/{ColorPicker-DHXRDP2o.js → ColorPicker-DxSpy5e2.js} +3 -3
  7. package/dist/{DataTable-B8Vnlflz.js → DataTable-C5EKEHsp.js} +2 -2
  8. package/dist/{DataTable-CX-Mdafj.cjs → DataTable-DLUrhKkw.cjs} +1 -1
  9. package/dist/{Legend-DgyuPw1G.cjs → Legend-CHEbsxt2.cjs} +1 -1
  10. package/dist/{Legend-Bw9vX_fW.js → Legend-DSzoXS-3.js} +2 -2
  11. package/dist/{PackageVersion-CvpIoiav.cjs → PackageVersion-B6sWtTA0.cjs} +1 -1
  12. package/dist/{PackageVersion-C6hdi5vE.js → PackageVersion-BtrpyUPC.js} +1 -1
  13. package/dist/{PenAndPaper-5L5c2K-j.cjs → PenAndPaper-DO7-xSYx.cjs} +1 -1
  14. package/dist/{PenAndPaper-DBNdemyU.js → PenAndPaper-zjBsZuuq.js} +3 -3
  15. package/dist/{Shape-CcQr04tT.js → Shape-DzIamXsi.js} +1 -1
  16. package/dist/{Shape-my_oX1r-.cjs → Shape-_vXgfvZP.cjs} +1 -1
  17. package/dist/{Slicer-CJT21pOl.js → Slicer-DfOxim5W.js} +2 -2
  18. package/dist/{Slicer-Dpuspld0.cjs → Slicer-oUyDkRff.cjs} +1 -1
  19. package/dist/{Title-Dfjx2pT6.js → Title-BS1zFx79.js} +1 -1
  20. package/dist/{Title-CnyZaLp0.cjs → Title-BuZQSd23.cjs} +1 -1
  21. package/dist/{Tooltip-C3kzKkai.js → Tooltip-BNOd4lK1.js} +1 -1
  22. package/dist/{Tooltip-V6vr6k8X.cjs → Tooltip-BiBcMMP3.cjs} +1 -1
  23. package/dist/{html2canvas.esm-D53btDlk.cjs → html2canvas.esm-BA_v9SIU.cjs} +2 -2
  24. package/dist/{html2canvas.esm-Dr4iCOK6.js → html2canvas.esm-DgdJBc_o.js} +196 -196
  25. package/dist/img-BIeSHu0f.js +15 -0
  26. package/dist/img-D6uvziU0.cjs +1 -0
  27. package/dist/{index-BAPUY6BW.js → index-CzjsUYng.js} +19 -2
  28. package/dist/index-Zf2fUMIO.cjs +9 -0
  29. package/dist/{index.es-RWt7DWPC.js → index.es-BloWY6jv.js} +1285 -1285
  30. package/dist/{index.es-DvaaoatM.cjs → index.es-HygMioe_.cjs} +6 -6
  31. package/dist/{jspdf.es.min-Rw70uifz.cjs → jspdf.es.min-C518mmma.cjs} +57 -57
  32. package/dist/{jspdf.es.min-eTA26cmm.js → jspdf.es.min-t_OLULUR.js} +3038 -3038
  33. package/dist/pdf-BpXLKlRx.cjs +1 -0
  34. package/dist/{pdf-DVWl3Adn.js → pdf-H8Iw_Wax.js} +6 -6
  35. package/dist/style.css +1 -1
  36. package/dist/types/vue-data-ui.d.cts +17 -0
  37. package/dist/types/vue-data-ui.d.ts +17 -0
  38. package/dist/{useNestedProp-Ch_Tbu0f.cjs → useNestedProp-BcSwG6N0.cjs} +1 -1
  39. package/dist/{useNestedProp-X5u-cjpn.js → useNestedProp-RC28MVml.js} +1 -1
  40. package/dist/{usePrinter-BJ8ChcXf.cjs → usePrinter-BGPa8G48.cjs} +1 -1
  41. package/dist/{usePrinter-BsXYrX84.js → usePrinter-CUsjlfpk.js} +125 -122
  42. package/dist/{vue-data-ui-CZG3ODq3.cjs → vue-data-ui-BjDb6Vux.cjs} +1 -1
  43. package/dist/{vue-data-ui-OBrcs0EY.js → vue-data-ui-UWKC8R6X.js} +61 -61
  44. package/dist/vue-data-ui.cjs +1 -1
  45. package/dist/vue-data-ui.js +1 -1
  46. package/dist/{vue-ui-3d-bar-BRhfbpJd.js → vue-ui-3d-bar-5IdXbLb9.js} +55 -54
  47. package/dist/{vue-ui-3d-bar-BOUSglv4.cjs → vue-ui-3d-bar-WS8tL_FC.cjs} +8 -8
  48. package/dist/{vue-ui-accordion-BS_katXk.cjs → vue-ui-accordion-CnGQYWdI.cjs} +1 -1
  49. package/dist/{vue-ui-accordion-Dm7ZlylJ.js → vue-ui-accordion-ConQex-C.js} +3 -3
  50. package/dist/{vue-ui-age-pyramid-CBtPdObD.js → vue-ui-age-pyramid-CP6Fd6zD.js} +13 -12
  51. package/dist/vue-ui-age-pyramid-CehCcwLC.cjs +1 -0
  52. package/dist/{vue-ui-annotator-Rb7-Ig4d.js → vue-ui-annotator-C5NyXYkj.js} +3 -3
  53. package/dist/{vue-ui-annotator-B8HvCy1u.cjs → vue-ui-annotator-CZ1F-VY2.cjs} +1 -1
  54. package/dist/{vue-ui-bullet-C7ftUjYQ.js → vue-ui-bullet-DKqr4Rcd.js} +11 -10
  55. package/dist/vue-ui-bullet-Djg_HER0.cjs +34 -0
  56. package/dist/{vue-ui-candlestick-DY4EKJPX.cjs → vue-ui-candlestick-BU9MfLPt.cjs} +2 -2
  57. package/dist/{vue-ui-candlestick-D_osh2qN.js → vue-ui-candlestick-DtVpSOzB.js} +14 -13
  58. package/dist/{vue-ui-carousel-table-M72bzy85.js → vue-ui-carousel-table-CYcrhcdv.js} +7 -6
  59. package/dist/vue-ui-carousel-table-EhzhIcW2.cjs +1 -0
  60. package/dist/{vue-ui-chestnut-BdHd-Juu.cjs → vue-ui-chestnut-C3UVgMQo.cjs} +2 -2
  61. package/dist/{vue-ui-chestnut-i7EtBpLY.js → vue-ui-chestnut-D5LH5zdq.js} +37 -36
  62. package/dist/{vue-ui-circle-pack-BC1uScHe.js → vue-ui-circle-pack-BL753_Uo.js} +14 -13
  63. package/dist/vue-ui-circle-pack-CJNBxO1N.cjs +1 -0
  64. package/dist/{vue-ui-cursor-B06MWQUK.cjs → vue-ui-cursor-B2MxKYNM.cjs} +1 -1
  65. package/dist/{vue-ui-cursor-eJ2ExkFm.js → vue-ui-cursor-Fe70t9Bl.js} +2 -2
  66. package/dist/{vue-ui-dashboard-m-sB4TXH.cjs → vue-ui-dashboard-C11-dJEl.cjs} +1 -1
  67. package/dist/{vue-ui-dashboard-BAwwet8B.js → vue-ui-dashboard-QOSGNhC9.js} +3 -3
  68. package/dist/{vue-ui-digits-B6ivU7b9.js → vue-ui-digits-C5D_xk6r.js} +2 -2
  69. package/dist/{vue-ui-digits-C5jmpiTL.cjs → vue-ui-digits-H19fVeIu.cjs} +1 -1
  70. package/dist/{vue-ui-donut-DtZ-n8vd.js → vue-ui-donut-Bd1mIoux.js} +15 -14
  71. package/dist/vue-ui-donut-CwJg0emK.cjs +1 -0
  72. package/dist/{vue-ui-donut-evolution-VJpinb_g.js → vue-ui-donut-evolution-CFQ4lMWd.js} +45 -44
  73. package/dist/vue-ui-donut-evolution-DTjfMlNh.cjs +1 -0
  74. package/dist/vue-ui-dumbbell-CBsxNWVV.cjs +9 -0
  75. package/dist/{vue-ui-dumbbell-EoH10k2D.js → vue-ui-dumbbell-KJd6G5qD.js} +43 -42
  76. package/dist/vue-ui-flow-D3gtil-H.cjs +1 -0
  77. package/dist/{vue-ui-flow-B-xWkgVv.js → vue-ui-flow-DAxMQfhu.js} +53 -52
  78. package/dist/vue-ui-funnel-CkCNCQ1F.cjs +1 -0
  79. package/dist/{vue-ui-funnel-hdajl9CD.js → vue-ui-funnel-PvEDGsfj.js} +13 -12
  80. package/dist/{vue-ui-galaxy-CeqCjd4V.js → vue-ui-galaxy-DfAfjTDr.js} +31 -30
  81. package/dist/vue-ui-galaxy-DjeZUCuE.cjs +1 -0
  82. package/dist/vue-ui-gauge-BfDY3XHF.cjs +1 -0
  83. package/dist/{vue-ui-gauge-BSuGWZEY.js → vue-ui-gauge-DBGqwPZs.js} +36 -35
  84. package/dist/{vue-ui-gizmo-VFwChXXf.js → vue-ui-gizmo-BT0DknqD.js} +3 -3
  85. package/dist/{vue-ui-gizmo-D_J2R5JU.cjs → vue-ui-gizmo-yWBMeY1e.cjs} +1 -1
  86. package/dist/vue-ui-heatmap-Bkd2G7uW.cjs +1 -0
  87. package/dist/{vue-ui-heatmap-DAeCu-iM.js → vue-ui-heatmap-D_Tr1Hot.js} +73 -72
  88. package/dist/vue-ui-history-plot-B-VBGxRa.cjs +1 -0
  89. package/dist/{vue-ui-history-plot-Caty-SWt.js → vue-ui-history-plot-BG4nMlp7.js} +33 -32
  90. package/dist/{vue-ui-kpi-Bu24xnG8.cjs → vue-ui-kpi-LMze0lWI.cjs} +1 -1
  91. package/dist/{vue-ui-kpi-B2WcjLWP.js → vue-ui-kpi-WqBG4upX.js} +3 -3
  92. package/dist/{vue-ui-mini-loader-BgW5M00P.cjs → vue-ui-mini-loader-CoVSw6EU.cjs} +1 -1
  93. package/dist/{vue-ui-mini-loader-B8QzxySW.js → vue-ui-mini-loader-eRXubESG.js} +2 -2
  94. package/dist/{vue-ui-molecule-Ds0uou9B.js → vue-ui-molecule-BcpPXHgo.js} +13 -12
  95. package/dist/vue-ui-molecule-Cu6_FpHD.cjs +1 -0
  96. package/dist/{vue-ui-mood-radar-DMrAwNQa.js → vue-ui-mood-radar-CBFN1PfU.js} +14 -13
  97. package/dist/vue-ui-mood-radar-DlTYq1OE.cjs +1 -0
  98. package/dist/{vue-ui-nested-donuts-FSCi4a9f.js → vue-ui-nested-donuts-Cq0PWd1N.js} +14 -13
  99. package/dist/{vue-ui-nested-donuts-3orKF1Fi.cjs → vue-ui-nested-donuts-c6Dc8R-H.cjs} +2 -2
  100. package/dist/{vue-ui-onion-YWVe7eaq.js → vue-ui-onion-BFDD4SN8.js} +14 -13
  101. package/dist/{vue-ui-onion-CiXgGubD.cjs → vue-ui-onion-Bd2D2Vld.cjs} +2 -2
  102. package/dist/{vue-ui-parallel-coordinate-plot-DeZ2tt1O.cjs → vue-ui-parallel-coordinate-plot-BTCld26y.cjs} +2 -2
  103. package/dist/{vue-ui-parallel-coordinate-plot-C8vxLtTa.js → vue-ui-parallel-coordinate-plot-YF_ssmB7.js} +35 -34
  104. package/dist/vue-ui-quadrant-B659Q5iR.cjs +1 -0
  105. package/dist/{vue-ui-quadrant-DmDoysAq.js → vue-ui-quadrant-BeEBWrsG.js} +15 -14
  106. package/dist/{vue-ui-quick-chart-CwJe7rJt.js → vue-ui-quick-chart-Ba6-ZZk9.js} +12 -11
  107. package/dist/{vue-ui-quick-chart-BgSeWNxv.cjs → vue-ui-quick-chart-w0LaPcFd.cjs} +2 -2
  108. package/dist/vue-ui-radar-DAUGZC3X.cjs +1 -0
  109. package/dist/{vue-ui-radar-Bo9SbfBN.js → vue-ui-radar-Dgu656_F.js} +15 -14
  110. package/dist/{vue-ui-rating-DPs6BKf1.js → vue-ui-rating-BIk1Ip7B.js} +2 -2
  111. package/dist/{vue-ui-rating-CqY6A4WX.cjs → vue-ui-rating-BPgLpyoa.cjs} +1 -1
  112. package/dist/{vue-ui-relation-circle-3Al_2yf1.js → vue-ui-relation-circle-CUU2Y66i.js} +13 -12
  113. package/dist/vue-ui-relation-circle-Dz_Du_5e.cjs +1 -0
  114. package/dist/{vue-ui-rings-DOlqslSN.cjs → vue-ui-rings-B7kPmx8M.cjs} +2 -2
  115. package/dist/{vue-ui-rings-D9_ClLdg.js → vue-ui-rings-DnZ3fSvL.js} +15 -14
  116. package/dist/{vue-ui-scatter-DFDHrRyc.js → vue-ui-scatter-Cej6ox0t.js} +15 -14
  117. package/dist/vue-ui-scatter-GfJALpzt.cjs +1 -0
  118. package/dist/{vue-ui-screenshot-R1IzXCqt.js → vue-ui-screenshot-B4HNd362.js} +2 -2
  119. package/dist/{vue-ui-screenshot-BWVTxKN_.cjs → vue-ui-screenshot-DkuLYple.cjs} +1 -1
  120. package/dist/{vue-ui-skeleton-Dn9J8aVW.cjs → vue-ui-skeleton-CiGqKHDK.cjs} +1 -1
  121. package/dist/{vue-ui-skeleton-DBfQG5lC.js → vue-ui-skeleton-XUKIcV-3.js} +3 -3
  122. package/dist/{vue-ui-smiley-CLv8dmnr.js → vue-ui-smiley-BUgxzenz.js} +2 -2
  123. package/dist/{vue-ui-smiley-DQ7I4CcQ.cjs → vue-ui-smiley-Dfo5zjHi.cjs} +1 -1
  124. package/dist/{vue-ui-spark-trend-B0qbQaxj.js → vue-ui-spark-trend-CvsL1wxJ.js} +5 -5
  125. package/dist/{vue-ui-spark-trend-Drp1E7DH.cjs → vue-ui-spark-trend-EK-zZg4U.cjs} +1 -1
  126. package/dist/{vue-ui-sparkbar-DYW_BgkY.cjs → vue-ui-sparkbar-CvWbFKnW.cjs} +1 -1
  127. package/dist/{vue-ui-sparkbar-Bz_QHNKp.js → vue-ui-sparkbar-QL_FFOna.js} +4 -4
  128. package/dist/{vue-ui-sparkgauge-C6tB0nl4.cjs → vue-ui-sparkgauge-CX9L1CCZ.cjs} +1 -1
  129. package/dist/{vue-ui-sparkgauge-5EIHFUiW.js → vue-ui-sparkgauge-g51bSap-.js} +4 -4
  130. package/dist/{vue-ui-sparkhistogram-KIw7nvKd.cjs → vue-ui-sparkhistogram-C_RkgtwV.cjs} +1 -1
  131. package/dist/{vue-ui-sparkhistogram-COdCqBiI.js → vue-ui-sparkhistogram-TwShrJAd.js} +5 -5
  132. package/dist/{vue-ui-sparkline-CXIdKGso.cjs → vue-ui-sparkline-B-1mFAFf.cjs} +1 -1
  133. package/dist/{vue-ui-sparkline-DgUc7CMn.js → vue-ui-sparkline-PoXP19tk.js} +4 -4
  134. package/dist/{vue-ui-sparkstackbar-MrQzEVeh.cjs → vue-ui-sparkstackbar-BtOZ3Xvo.cjs} +1 -1
  135. package/dist/{vue-ui-sparkstackbar-BUqauQMd.js → vue-ui-sparkstackbar-C6K5d1a8.js} +5 -5
  136. package/dist/{vue-ui-stackbar-BUJpFyA3.cjs → vue-ui-stackbar-DP0kLFaZ.cjs} +2 -2
  137. package/dist/{vue-ui-stackbar-C-i36fcc.js → vue-ui-stackbar-DoAp1q1k.js} +16 -15
  138. package/dist/vue-ui-strip-plot-C6r7wmgw.cjs +1 -0
  139. package/dist/{vue-ui-strip-plot-Dc82V8Qo.js → vue-ui-strip-plot-DFyDRMeJ.js} +14 -13
  140. package/dist/{vue-ui-table-0E7zmWIW.cjs → vue-ui-table-BoFUMpxE.cjs} +2 -2
  141. package/dist/{vue-ui-table-DnAzCFyM.js → vue-ui-table-COQQvYVK.js} +1 -1
  142. package/dist/{vue-ui-table-heatmap-CzwyhRmp.js → vue-ui-table-heatmap-D1a4Jbfq.js} +9 -8
  143. package/dist/vue-ui-table-heatmap-DEmDa6Mg.cjs +1 -0
  144. package/dist/{vue-ui-table-sparkline-BU4he5wL.js → vue-ui-table-sparkline-CH1R9R6a.js} +9 -8
  145. package/dist/vue-ui-table-sparkline-bsEJsgny.cjs +1 -0
  146. package/dist/vue-ui-thermometer-1Gl2tpWy.cjs +1 -0
  147. package/dist/{vue-ui-thermometer-uShXro0_.js → vue-ui-thermometer-CZIBISGi.js} +26 -25
  148. package/dist/{vue-ui-timer-D6L29mt9.js → vue-ui-timer-CL0vPqGn.js} +5 -5
  149. package/dist/{vue-ui-timer-C8qXGSrQ.cjs → vue-ui-timer-DXZ_7lOR.cjs} +1 -1
  150. package/dist/vue-ui-tiremarks-D8rdzzQb.cjs +1 -0
  151. package/dist/{vue-ui-tiremarks-BcjGqJn-.js → vue-ui-tiremarks-DdwzlfZg.js} +20 -19
  152. package/dist/{vue-ui-treemap-BpB4ofIX.js → vue-ui-treemap-B3N6hzO2.js} +14 -13
  153. package/dist/vue-ui-treemap-CTcY1Qxh.cjs +1 -0
  154. package/dist/{vue-ui-vertical-bar-CEIg-_SG.js → vue-ui-vertical-bar-BOpex-Xq.js} +16 -15
  155. package/dist/{vue-ui-vertical-bar-Q5ArQTC0.cjs → vue-ui-vertical-bar-pwqVkPXV.cjs} +3 -3
  156. package/dist/vue-ui-waffle-Bd_6bbdt.cjs +1 -0
  157. package/dist/{vue-ui-waffle-h8UbPcuC.js → vue-ui-waffle-CW6THuE8.js} +15 -14
  158. package/dist/{vue-ui-wheel-BhLEyhW_.js → vue-ui-wheel-9xdDEq_q.js} +10 -9
  159. package/dist/vue-ui-wheel-BO3Xqux3.cjs +1 -0
  160. package/dist/vue-ui-word-cloud-CJjvWjsc.cjs +1 -0
  161. package/dist/{vue-ui-word-cloud-oa6Tnt3L.js → vue-ui-word-cloud-DAlBxzeY.js} +39 -38
  162. package/dist/vue-ui-xy-BIBSJN48.cjs +3 -0
  163. package/dist/{vue-ui-xy-CXY00bkP.js → vue-ui-xy-CDGKX79V.js} +21 -19
  164. package/dist/{vue-ui-xy-canvas-Ce4kC0Xz.cjs → vue-ui-xy-canvas-BN7OU1Ak.cjs} +2 -2
  165. package/dist/{vue-ui-xy-canvas-DapzRtyI.js → vue-ui-xy-canvas-C8YlVwjI.js} +111 -110
  166. package/package.json +2 -2
  167. package/dist/img-BPGizWpM.cjs +0 -1
  168. package/dist/img-itj0Vdmx.js +0 -15
  169. package/dist/index-CVZp-EFm.cjs +0 -9
  170. package/dist/pdf-DSkQT5iH.cjs +0 -1
  171. package/dist/vue-ui-age-pyramid-Bt_wuZiO.cjs +0 -1
  172. package/dist/vue-ui-bullet-BlYz0H5Q.cjs +0 -34
  173. package/dist/vue-ui-carousel-table-DHN5NuUS.cjs +0 -1
  174. package/dist/vue-ui-circle-pack-rf-DQQuM.cjs +0 -1
  175. package/dist/vue-ui-donut-GBs-eAbp.cjs +0 -1
  176. package/dist/vue-ui-donut-evolution-DdDVkeuH.cjs +0 -1
  177. package/dist/vue-ui-dumbbell-94nsg3t1.cjs +0 -9
  178. package/dist/vue-ui-flow-Ddn2S7NR.cjs +0 -1
  179. package/dist/vue-ui-funnel-Iawza5lZ.cjs +0 -1
  180. package/dist/vue-ui-galaxy-BoiBmzst.cjs +0 -1
  181. package/dist/vue-ui-gauge-B4aBDTfP.cjs +0 -1
  182. package/dist/vue-ui-heatmap-BNlBRWi1.cjs +0 -1
  183. package/dist/vue-ui-history-plot-BcjI3J96.cjs +0 -1
  184. package/dist/vue-ui-molecule-WPdx8i08.cjs +0 -1
  185. package/dist/vue-ui-mood-radar-D45uj8xo.cjs +0 -1
  186. package/dist/vue-ui-quadrant-LTIGWJiO.cjs +0 -1
  187. package/dist/vue-ui-radar-CblS9X1n.cjs +0 -1
  188. package/dist/vue-ui-relation-circle-COYe9dsQ.cjs +0 -1
  189. package/dist/vue-ui-scatter-DQhoY0TK.cjs +0 -1
  190. package/dist/vue-ui-strip-plot-BLECfP0D.cjs +0 -1
  191. package/dist/vue-ui-table-heatmap-BHSksmMn.cjs +0 -1
  192. package/dist/vue-ui-table-sparkline-BoVrzVok.cjs +0 -1
  193. package/dist/vue-ui-thermometer-DeJpqEix.cjs +0 -1
  194. package/dist/vue-ui-tiremarks-CQ4yESxv.cjs +0 -1
  195. package/dist/vue-ui-treemap-DbTCrAmK.cjs +0 -1
  196. package/dist/vue-ui-waffle-B61yE93N.cjs +0 -1
  197. package/dist/vue-ui-wheel-Chc9pVEu.cjs +0 -1
  198. package/dist/vue-ui-word-cloud-Cq6mmJVo.cjs +0 -1
  199. package/dist/vue-ui-xy-Brt11wmo.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-Zf2fUMIO.cjs"),oe=require("./Title-BuZQSd23.cjs"),Y=require("./usePrinter-BGPa8G48.cjs"),re=require("./vue-ui-skeleton-CiGqKHDK.cjs"),z=require("./useNestedProp-BcSwG6N0.cjs"),le=require("./PackageVersion-B6sWtTA0.cjs"),ae=require("./PenAndPaper-DO7-xSYx.cjs"),se=require("./useUserOptionState-BgepsfED.cjs"),ne=require("./useChartAccessibility-Cm7nkzTG.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=["id"],ce={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},de={key:2,style:"width:100%"},he=["xmlns","viewBox"],ve=["width","height"],me={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},pe=["fill"],ye=["id"],fe=["stop-color"],ge=["stop-color"],ke=["stop-color"],be={"clip-path":"url(#vueUiPill)"},xe=["x","y","height","width"],Ce=["x","y","height","width","fill"],we=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x1","x2","y1","y2","stroke-width","stroke"],Ne=["x1","x2","y1","y2","stroke-width","stroke"],Be=["x1","x2","y1","y2","stroke-width","stroke"],Pe=["x1","x2","y1","y2","stroke-width","stroke"],Ve=["x1","x2","y1","y2","stroke-width","stroke"],Ee=["x1","x2","y1","y2","stroke-width","stroke"],$e=["x1","x2","y1","y2","stroke-width","stroke"],Fe=["x","y","height","width"],Oe=["y","x","fill","font-size","font-weight"],Ie={key:5,class:"vue-data-ui-watermark"},Se={key:6,ref:"source",dir:"auto"},qe={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:L}){e.useCssVars(r=>({"3272b184":X.value,"0885078a":D.value,"09e2f6f7":j.value}));const{vue_ui_thermometer:G}=a.useConfig(),s=m,g=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{B()});function B(){a.objectIsEmpty(s.dataset)?a.error({componentName:"VueUiThermometer",type:"dataset"}):a.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(r=>{a.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:r})})}const d=e.ref(a.createUid()),P=e.ref(null),V=e.ref(0),E=e.ref(0),t=e.computed({get:()=>I(),set:r=>r}),{userOptionsVisible:k,setUserOptionsVisibility:$,keepUserOptionState:F}=se.useUserOptionState({config:t.value}),{svgRef:O}=ne.useChartAccessibility({config:t.value.style.title});function I(){const r=z.useNestedProp({userConfig:s.config,defaultConfig:G});return r.theme?{...z.useNestedProp({userConfig:a.themes.vue_ui_thermometer[r.theme]||s.config,defaultConfig:r}),customPalette:a.themePalettes[r.theme]||a.palette}:r}e.watch(()=>s.config,r=>{t.value=I(),k.value=!t.value.userOptions.showOnChartHover,B(),E.value+=1},{deep:!0});const{isPrinting:S,isImaging:q,generatePdf:A,generateImage:T}=Y.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer",options:t.value.userOptions.print}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),R=e.computed(()=>t.value.style.chart.thermometer.width),c=e.computed(()=>s.dataset.steps||10),i=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function y(r,n,o){const u=[],_=M(r),N=M(n);for(let v=0;v<o;v++){const Q=b(_.red,N.red,v,o),Z=b(_.green,N.green,v,o),ee=b(_.blue,N.blue,v,o),te=`#${x(Q)}${x(Z)}${x(ee)}`;u.push(te)}return u}function M(r){const n=r.slice(1);return{red:parseInt(n.slice(0,2),16),green:parseInt(n.slice(2,4),16),blue:parseInt(n.slice(4,6),16)}}function b(r,n,o,u){return Math.round(r+(n-r)*o/u)}function x(r){return r.toString(16).padStart(2,"0")}const l=e.computed(()=>{const r=R.value+i.value.left+i.value.right,n=t.value.style.chart.height;return{width:r,left:i.value.left,right:r-i.value.right,top:i.value.top,bottom:n-i.value.bottom,height:n}}),W=e.computed(()=>l.value),C=e.computed(()=>{const r=a.checkNaN(s.dataset.from)<0?Math.abs(a.checkNaN(s.dataset.from)):a.checkNaN(s.dataset.from),n=a.checkNaN(s.dataset.to)<0?Math.abs(a.checkNaN(s.dataset.to)):a.checkNaN(s.dataset.to);let o=0;return a.checkNaN(s.dataset.to)>0?o=r+n:r>n?o=r-n:o=n-r,(1-(Math.abs(a.checkNaN(s.dataset.from))+a.checkNaN(s.dataset.value))/o)*(l.value.height-i.value.top-i.value.bottom)}),j=e.computed(()=>`${C.value}px`),D=e.computed(()=>`${l.value.height-t.value.style.chart.padding.bottom-i.value.top}px`),X=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),J=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return y(p.value[0]||a.palette[0],a.convertColorToHex(s.dataset.colors.to),c.value||10);if(!s.dataset.colors.to)return y(a.convertColorToHex(s.dataset.colors.from),p.value[1]||a.palette[1],c.value||10)}else return y(p.value[1]||a.palette[1],p.value[0]||a.palette[0],c.value||10);return y(a.convertColorToHex(s.dataset.colors.from),a.convertColorToHex(s.dataset.colors.to),c.value||10)}),U=e.computed(()=>{const r=[];let n=0;const o=l.value.height-i.value.top-i.value.bottom;for(let u=0;u<o-1;u+=o/c.value)r.push({x:l.value.left,y:l.value.top+u,qYLess:l.value.top+u+o/c.value/4,halfY:l.value.top+u+o/c.value/2,qYMore:l.value.top+u+o/c.value/4*3,color:J.value[n],height:o/c.value}),n+=1;return r}),h=e.ref(!1);function K(r){h.value=r,V.value+=1}const f=e.ref(!1);function w(){f.value=!f.value}return L({generatePdf:A,generateImage:T,toggleAnnotator:w}),(r,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:P,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`,onMouseenter:n[0]||(n[0]=()=>e.unref($)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref($)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ae.PenAndPaper,{key:0,svgRef:e.unref(O),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:w},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",ce,null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(),e.createBlock(oe._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&g.value&&(e.unref(F)||e.unref(k))?(e.openBlock(),e.createBlock(Y.UserOptions,{ref:"details",key:`user_options_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(S),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:P.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:K,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(T),onToggleAnnotator:w,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(k)?"visible":"hidden":"visible"})},e.createSlots({_:2},[r.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:u})=>[e.renderSlot(r.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:u})),void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(r.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"3"}:void 0,r.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(r.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:O,xmlns:e.unref(a.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:"background:transparent"},[e.createVNode(le._sfc_main),r.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width,height:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(r.$slots,"chart-background",{},void 0,!0)],8,ve)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",me,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,pe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(o,u)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${u}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,fe),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,ke)],8,ye))),256))]),e.createElementVNode("g",be,[e.createElementVNode("rect",{x:l.value.left,y:l.value.top,height:l.value.height-i.value.top-i.value.bottom,width:l.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,xe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(o,u)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${u}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:l.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${u}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,Ce),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,we)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,_e)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ne)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:l.value.right,x2:l.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Pe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.value.right,x2:l.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:l.value.right,x2:l.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ee)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:l.value.right,x2:l.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,$e)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:l.value.left,y:l.value.top,height:C.value,width:l.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,Fe)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:C.value+l.value.top+t.value.style.chart.label.fontSize/3,x:l.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(a.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,Oe),e.renderSlot(r.$slots,"svg",{svg:W.value},void 0,!0)],10,he)):e.createCommentVNode("",!0),r.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(r.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),r.$slots.source?(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(r.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re.default,{key:7,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ie))}},Ae=ue._export_sfc(qe,[["__scopeId","data-v-b0579fd1"]]);exports.default=Ae;
@@ -1,11 +1,11 @@
1
- import { useCssVars as ke, computed as d, onMounted as be, ref as m, watch as xe, createElementBlock as u, openBlock as l, unref as h, normalizeStyle as te, normalizeClass as F, createBlock as I, createCommentVNode as i, createSlots as _e, withCtx as x, renderSlot as f, normalizeProps as O, guardReactiveProps as A, createVNode as we, createElementVNode as v, Fragment as M, renderList as se, toDisplayString as Ce } from "vue";
2
- import { u as $e, o as Pe, e as oe, g as Fe, c as Ie, t as Oe, p as _, a as Ae, b as Me, v as g, d as U, X as Ue, s as Ye, i as Ne, f as Se } from "./index-BAPUY6BW.js";
3
- import { _ as Te } from "./Title-Dfjx2pT6.js";
4
- import { u as qe, U as Le } from "./usePrinter-BsXYrX84.js";
5
- import Ve from "./vue-ui-skeleton-DBfQG5lC.js";
6
- import { u as le } from "./useNestedProp-X5u-cjpn.js";
7
- import { _ as Ee } from "./PackageVersion-C6hdi5vE.js";
8
- import { P as Ge } from "./PenAndPaper-DBNdemyU.js";
1
+ import { useCssVars as ke, computed as d, onMounted as be, ref as p, watch as xe, createElementBlock as u, openBlock as l, unref as h, normalizeStyle as te, normalizeClass as F, createBlock as I, createCommentVNode as i, createSlots as _e, withCtx as x, renderSlot as f, normalizeProps as O, guardReactiveProps as A, createVNode as we, createElementVNode as v, Fragment as M, renderList as se, toDisplayString as Ce } from "vue";
2
+ import { u as $e, o as Pe, e as oe, g as Fe, c as Ie, t as Oe, p as _, a as Ae, b as Me, v as g, d as U, X as Ue, s as Ye, i as Ne, f as Se } from "./index-CzjsUYng.js";
3
+ import { _ as Te } from "./Title-BS1zFx79.js";
4
+ import { u as qe, U as Le } from "./usePrinter-CUsjlfpk.js";
5
+ import Ve from "./vue-ui-skeleton-XUKIcV-3.js";
6
+ import { u as le } from "./useNestedProp-RC28MVml.js";
7
+ import { _ as Ee } from "./PackageVersion-BtrpyUPC.js";
8
+ import { P as Ge } from "./PenAndPaper-zjBsZuuq.js";
9
9
  import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
10
10
  import { u as je } from "./useChartAccessibility-BWojgys7.js";
11
11
  import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -27,7 +27,7 @@ const Be = ["id"], Re = {
27
27
  key: 6,
28
28
  ref: "source",
29
29
  dir: "auto"
30
- }, mt = {
30
+ }, pt = {
31
31
  __name: "vue-ui-thermometer",
32
32
  props: {
33
33
  dataset: {
@@ -45,9 +45,9 @@ const Be = ["id"], Re = {
45
45
  },
46
46
  setup(w, { expose: ae }) {
47
47
  ke((s) => ({
48
- "81f57fe8": de.value,
49
- "0e444a02": ce.value,
50
- "6100776f": he.value
48
+ "3272b184": de.value,
49
+ "0885078a": ce.value,
50
+ "09e2f6f7": he.value
51
51
  }));
52
52
  const { vue_ui_thermometer: re } = $e(), a = w, Y = d(() => !!a.dataset && Object.keys(a.dataset).length);
53
53
  be(() => {
@@ -68,7 +68,7 @@ const Be = ["id"], Re = {
68
68
  });
69
69
  });
70
70
  }
71
- const p = m(Ie()), W = m(null), j = m(0), z = m(0), e = d({
71
+ const m = p(Ie()), W = p(null), j = p(0), z = p(0), e = d({
72
72
  get: () => H(),
73
73
  set: (s) => s
74
74
  }), { userOptionsVisible: N, setUserOptionsVisibility: B, keepUserOptionState: R } = We({ config: e.value }), { svgRef: D } = je({ config: e.value.style.title });
@@ -89,9 +89,10 @@ const Be = ["id"], Re = {
89
89
  e.value = H(), N.value = !e.value.userOptions.showOnChartHover, G(), z.value += 1;
90
90
  }, { deep: !0 });
91
91
  const { isPrinting: X, isImaging: J, generatePdf: K, generateImage: Q } = qe({
92
- elementId: `thermometer__${p.value}`,
93
- fileName: e.value.style.title.text || "vue-ui-thermometer"
94
- }), ne = d(() => e.value.userOptions.show && !e.value.style.title.text), C = d(() => Me(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), c = m({
92
+ elementId: `thermometer__${m.value}`,
93
+ fileName: e.value.style.title.text || "vue-ui-thermometer",
94
+ options: e.value.userOptions.print
95
+ }), ne = d(() => e.value.userOptions.show && !e.value.style.title.text), C = d(() => Me(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), c = p({
95
96
  top: e.value.style.chart.padding.top,
96
97
  left: e.value.style.chart.padding.left,
97
98
  right: e.value.style.chart.padding.right,
@@ -100,8 +101,8 @@ const Be = ["id"], Re = {
100
101
  function $(s, r, t) {
101
102
  const n = [], V = Z(s), E = Z(r);
102
103
  for (let b = 0; b < t; b++) {
103
- const fe = S(V.red, E.red, b, t), ge = S(V.green, E.green, b, t), me = S(V.blue, E.blue, b, t), pe = `#${T(fe)}${T(ge)}${T(me)}`;
104
- n.push(pe);
104
+ const fe = S(V.red, E.red, b, t), ge = S(V.green, E.green, b, t), pe = S(V.blue, E.blue, b, t), me = `#${T(fe)}${T(ge)}${T(pe)}`;
105
+ n.push(me);
105
106
  }
106
107
  return n;
107
108
  }
@@ -157,11 +158,11 @@ const Be = ["id"], Re = {
157
158
  height: t / y.value
158
159
  }), r += 1;
159
160
  return s;
160
- }), k = m(!1);
161
+ }), k = p(!1);
161
162
  function ye(s) {
162
163
  k.value = s, j.value += 1;
163
164
  }
164
- const P = m(!1);
165
+ const P = p(!1);
165
166
  function L() {
166
167
  P.value = !P.value;
167
168
  }
@@ -174,7 +175,7 @@ const Be = ["id"], Re = {
174
175
  ref: W,
175
176
  class: F(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
176
177
  style: te(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
177
- id: `thermometer__${p.value}`,
178
+ id: `thermometer__${m.value}`,
178
179
  onMouseenter: r[0] || (r[0] = () => h(B)(!0)),
179
180
  onMouseleave: r[1] || (r[1] = () => h(B)(!1))
180
181
  }, [
@@ -209,7 +210,7 @@ const Be = ["id"], Re = {
209
210
  color: e.value.style.chart.color,
210
211
  isImaging: h(J),
211
212
  isPrinting: h(X),
212
- uid: p.value,
213
+ uid: m.value,
213
214
  hasPdf: e.value.userOptions.buttons.pdf,
214
215
  hasImg: e.value.userOptions.buttons.img,
215
216
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
@@ -300,7 +301,7 @@ const Be = ["id"], Re = {
300
301
  }, null, 8, Ke)
301
302
  ]),
302
303
  (l(!0), u(M, null, se(ee.value, (t, n) => (l(), u("linearGradient", {
303
- id: `vueUiThermometerGradient_${n}_${p.value}`,
304
+ id: `vueUiThermometerGradient_${n}_${m.value}`,
304
305
  x1: "0%",
305
306
  y1: "0%",
306
307
  x2: "100%",
@@ -336,7 +337,7 @@ const Be = ["id"], Re = {
336
337
  y: t.y,
337
338
  height: t.height,
338
339
  width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
339
- fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${p.value})` : t.color,
340
+ fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
340
341
  "shape-rendering": "crispEdges"
341
342
  }, null, 8, lt),
342
343
  e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
@@ -474,7 +475,7 @@ const Be = ["id"], Re = {
474
475
  }, null, 8, ["config"]))
475
476
  ], 46, Be));
476
477
  }
477
- }, Ot = /* @__PURE__ */ ze(mt, [["__scopeId", "data-v-b9d565e0"]]);
478
+ }, Ot = /* @__PURE__ */ ze(pt, [["__scopeId", "data-v-b0579fd1"]]);
478
479
  export {
479
480
  Ot as default
480
481
  };
@@ -1,10 +1,10 @@
1
1
  import { ref as i, onMounted as Z, computed as z, onBeforeUnmount as ee, watch as te, createElementBlock as o, openBlock as l, normalizeStyle as p, createCommentVNode as d, createElementVNode as _, createBlock as ae, unref as se, createVNode as C, renderSlot as H, mergeProps as q, normalizeProps as W, guardReactiveProps as G, toDisplayString as le } from "vue";
2
- import { u as oe } from "./useNestedProp-X5u-cjpn.js";
3
- import { u as re, c as ue, X as ie, F as V } from "./index-BAPUY6BW.js";
2
+ import { u as oe } from "./useNestedProp-RC28MVml.js";
3
+ import { u as re, c as ue, X as ie, F as V } from "./index-CzjsUYng.js";
4
4
  import { t as ne, u as ce } from "./useResponsive-vZgZwV-S.js";
5
- import R from "./BaseIcon-DyOT6PYJ.js";
6
- import { _ as de } from "./Title-Dfjx2pT6.js";
7
- import { _ as he } from "./PackageVersion-C6hdi5vE.js";
5
+ import R from "./BaseIcon-BySu2V3d.js";
6
+ import { _ as de } from "./Title-BS1zFx79.js";
7
+ import { _ as he } from "./PackageVersion-BtrpyUPC.js";
8
8
  import { u as ve } from "./useChartAccessibility-BWojgys7.js";
9
9
  import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  class fe {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./useNestedProp-Ch_Tbu0f.cjs"),w=require("./index-CVZp-EFm.cjs"),D=require("./useResponsive-N8jl0-aC.cjs"),B=require("./BaseIcon-lwGFy7CI.cjs"),O=require("./Title-CnyZaLp0.cjs"),U=require("./PackageVersion-CvpIoiav.cjs"),W=require("./useChartAccessibility-Cm7nkzTG.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class X{constructor(T,V,S,M=!0,h=!0){this.interval=V,this.elapsed=0,this.isPaused=!1;const g=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./useNestedProp-BcSwG6N0.cjs"),w=require("./index-Zf2fUMIO.cjs"),D=require("./useResponsive-N8jl0-aC.cjs"),B=require("./BaseIcon-Bolmn50v.cjs"),O=require("./Title-BuZQSd23.cjs"),U=require("./PackageVersion-B6sWtTA0.cjs"),W=require("./useChartAccessibility-Cm7nkzTG.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class X{constructor(T,V,S,M=!0,h=!0){this.interval=V,this.elapsed=0,this.isPaused=!1;const g=`
2
2
  let interval;
3
3
  let elapsed = 0;
4
4
  let paused = false;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-BcSwG6N0.cjs"),c=require("./index-Zf2fUMIO.cjs"),K=require("./Title-BuZQSd23.cjs"),j=require("./usePrinter-BGPa8G48.cjs"),Q=require("./vue-ui-skeleton-CiGqKHDK.cjs"),W=require("./PackageVersion-B6sWtTA0.cjs"),Z=require("./PenAndPaper-DO7-xSYx.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./useChartAccessibility-Cm7nkzTG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:2,style:"width:100%;background:transparent;padding-bottom:12px"},re=["xmlns","viewBox"],ne=["width","height"],se={key:1},ue=["d","stroke-width","stroke"],ie={key:2},ce=["x1","y1","x2","y2","stroke-width","stroke"],ve=["x","y","font-size","fill","font-weight","text-anchor"],de={key:5,class:"vue-data-ui-watermark"},he={key:6,ref:"source",dir:"auto"},pe={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(G,{expose:H}){const{vue_ui_tiremarks:D}=c.useConfig(),v=G,$=e.computed(()=>!!v.dataset&&Object.keys(v.dataset).length),P=e.ref(c.createUid()),O=e.ref(null),X=e.ref(null),S=e.ref(0),A=e.ref(0),t=e.computed({get:()=>E(),set:o=>o}),{userOptionsVisible:B,setUserOptionsVisibility:z,keepUserOptionState:N}=ee.useUserOptionState({config:t.value}),{svgRef:I}=te.useChartAccessibility({config:t.value.style.chart.title});function E(){const o=L.useNestedProp({userConfig:v.config,defaultConfig:D});return o.theme?{...L.useNestedProp({userConfig:c.themes.vue_ui_tiremarks[o.theme]||v.config,defaultConfig:o})}:o}e.watch(()=>v.config,o=>{t.value=E(),B.value=!t.value.userOptions.showOnChartHover,U(),A.value+=1},{deep:!0});const{isPrinting:F,isImaging:V,generatePdf:q,generateImage:T}=j.usePrinter({elementId:P.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks",options:t.value.userOptions.print}),Y=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),s=e.ref(t.value.style.chart.animation.use?0:c.checkNaN(v.dataset.percentage));e.watch(()=>v.dataset,o=>{t.value.style.chart.animation.use?M(o.percentage):s.value=o.percentage||0},{deep:!0}),e.onMounted(()=>{U()});function M(o){let n=t.value.style.chart.animation.speed;const a=Math.abs(o-s.value)/(n*120);function r(){s.value<o?s.value=Math.min(s.value+a,o):s.value>o&&(s.value=Math.max(s.value-a,o)),s.value!==o&&requestAnimationFrame(r)}r()}function U(){c.objectIsEmpty(v.dataset)&&c.error({componentName:"VueUiTiremarks",type:"dataset"}),M(v.dataset.percentage||0)}const m=e.computed(()=>t.value.style.chart.layout.display==="vertical"),u=e.computed(()=>{const o={top:48,left:64,right:64,bottom:48};return m.value?{top:t.value.style.chart.percentage.verticalPosition==="top"?o.top:3,left:3,right:3,bottom:t.value.style.chart.percentage.verticalPosition==="bottom"?o.bottom:3}:{top:0,bottom:0,left:t.value.style.chart.percentage.horizontalPosition==="left"?o.left:3,right:t.value.style.chart.percentage.horizontalPosition==="right"?o.right:10}}),C=e.computed(()=>Object.values(u.value).reduce((o,n)=>o+n,0)),l=e.computed(()=>({height:m.value?312:56,width:m.value?56:312})),i=e.computed(()=>m.value?{mark:(l.value.height-C.value)/100*.5,space:(l.value.height-C.value)/100*.5}:{mark:(l.value.width-C.value)/100*.5,space:(l.value.width-C.value)/100*.5}),R=e.computed(()=>{const o=[];for(let a=0;a<100;a+=1){const r=t.value.style.chart.layout.ticks.gradient.show?c.shiftHue(t.value.style.chart.layout.activeColor,a/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.activeColor;if(m.value){const y=t.value.style.chart.layout.crescendo?(100-a)*(l.value.width-u.value.left-u.value.right)/100/3:0,d=u.value.left+4+y,h=l.value.width-u.value.right-4-y,p=l.value.height-u.value.bottom-a*i.value.mark-a*i.value.space-i.value.mark,f=l.value.height-u.value.bottom-a*i.value.mark-a*i.value.space-i.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,b=t.value.style.chart.layout.curveAngleY*((1+a)/100);o.push({x1:d,x2:h,y1:p,y2:f,curve:`M ${d} ${p} C ${d+k} ${p-b}, ${h-k} ${f-b}, ${h} ${f}`,color:r})}else{const y=t.value.style.chart.layout.crescendo?(100-a)*(l.value.height-u.value.top-u.value.bottom)/100/3:0,d=u.value.left+a*i.value.mark+a*i.value.space-i.value.mark,h=d,p=u.value.top+4+y,f=l.value.height-u.value.bottom-4-y,k=t.value.style.chart.layout.curveAngleY*((1+a)/100),b=(f-p)/t.value.style.chart.layout.curveAngleX;o.push({x1:d,x2:h,y1:p,y2:f,curve:`M ${d} ${p} C ${d+k} ${p+b}, ${h+k} ${f-b}, ${h} ${f}`,color:r})}}return o}),g=e.computed(()=>{let o,n,a;const r=t.value.style.chart.percentage.fontSize/3;return m.value?t.value.style.chart.percentage.verticalPosition==="top"?(o=l.value.width/2,n=u.value.top/2,a="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(o=l.value.width/2,n=l.value.height-u.value.bottom/2+r,a="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(o=4,n=l.value.height/2+r,a="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(o=l.value.width-u.value.right+8,n=l.value.height/2+r,a="start"),{x:o,y:n,textAnchor:a,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),_=e.ref(!1);function J(o){_.value=o,S.value+=1}const w=e.ref(!1);function x(){w.value=!w.value}return H({generatePdf:q,generateImage:T,toggleAnnotator:x}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:O,class:e.normalizeClass(`vue-ui-tiremarks ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:P.value,onMouseenter:n[0]||(n[0]=()=>e.unref(z)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(z)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Z.PenAndPaper,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:x},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Y.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:X,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",le,[(e.openBlock(),e.createBlock(K._sfc_main,{key:`title_${A.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(N)||e.unref(B))?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_options_${S.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(F),isImaging:e.unref(V),uid:P.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:O.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:J,onGeneratePdf:e.unref(q),onGenerateImage:e.unref(T),onToggleAnnotator:x,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(B)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(c.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(W._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width,height:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,ne)):e.createCommentVNode("",!0),t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(a,r)=>(e.openBlock(),e.createElementBlock("path",{d:a.curve,"stroke-width":i.value.mark,stroke:s.value>=r?a.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&r<=s.value})},null,10,ue))),256))])):(e.openBlock(),e.createElementBlock("g",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,"stroke-width":i.value.mark,stroke:s.value>=r?a.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,ce))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:g.value.x,y:g.value.y,"font-size":g.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(c.shiftHue)(t.value.style.chart.layout.activeColor,s.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":g.value.bold?"bold":"normal","text-anchor":g.value.textAnchor},e.toDisplayString(e.unref(c.applyDataLabel)(t.value.style.chart.percentage.formatter,s.value,e.unref(c.dataLabel)({v:s.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,ve)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:l.value},void 0,!0)],14,re)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(F)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Q.default,{key:7,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ae))}},fe=oe._export_sfc(pe,[["__scopeId","data-v-fac4c918"]]);exports.default=fe;
@@ -1,11 +1,11 @@
1
1
  import { computed as h, ref as b, watch as Z, onMounted as ce, createElementBlock as c, openBlock as s, unref as r, normalizeStyle as G, normalizeClass as L, createBlock as F, createCommentVNode as d, createSlots as ve, withCtx as x, renderSlot as y, normalizeProps as z, guardReactiveProps as S, createVNode as he, Fragment as ee, renderList as te, toDisplayString as de } from "vue";
2
- import { u as ae } from "./useNestedProp-X5u-cjpn.js";
3
- import { u as fe, c as ge, a as ye, v as me, o as pe, e as ke, w as oe, X as be, i as _e, f as Ce } from "./index-BAPUY6BW.js";
4
- import { _ as $e } from "./Title-Dfjx2pT6.js";
5
- import { u as we, U as Pe } from "./usePrinter-BsXYrX84.js";
6
- import xe from "./vue-ui-skeleton-DBfQG5lC.js";
7
- import { _ as Oe } from "./PackageVersion-C6hdi5vE.js";
8
- import { P as Ae } from "./PenAndPaper-DBNdemyU.js";
2
+ import { u as ae } from "./useNestedProp-RC28MVml.js";
3
+ import { u as fe, c as ge, a as ye, v as pe, o as me, e as ke, w as oe, X as be, i as _e, f as Ce } from "./index-CzjsUYng.js";
4
+ import { _ as $e } from "./Title-BS1zFx79.js";
5
+ import { u as we, U as Pe } from "./usePrinter-CUsjlfpk.js";
6
+ import xe from "./vue-ui-skeleton-XUKIcV-3.js";
7
+ import { _ as Oe } from "./PackageVersion-BtrpyUPC.js";
8
+ import { P as Ae } from "./PenAndPaper-zjBsZuuq.js";
9
9
  import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
10
10
  import { u as Fe } from "./useChartAccessibility-BWojgys7.js";
11
11
  import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -57,8 +57,9 @@ const Se = ["id"], Ne = {
57
57
  }, { deep: !0 });
58
58
  const { isPrinting: V, isImaging: Y, generatePdf: q, generateImage: J } = we({
59
59
  elementId: M.value,
60
- fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
61
- }), ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : me(f.dataset.percentage));
60
+ fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
61
+ options: e.value.userOptions.print
62
+ }), ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : pe(f.dataset.percentage));
62
63
  Z(() => f.dataset, (t) => {
63
64
  e.value.style.chart.animation.use ? K(t.percentage) : u.value = t.percentage || 0;
64
65
  }, { deep: !0 }), ce(() => {
@@ -73,7 +74,7 @@ const Se = ["id"], Ne = {
73
74
  l();
74
75
  }
75
76
  function Q() {
76
- pe(f.dataset) && ke({
77
+ me(f.dataset) && ke({
77
78
  componentName: "VueUiTiremarks",
78
79
  type: "dataset"
79
80
  }), K(f.dataset.percentage || 0);
@@ -110,23 +111,23 @@ const Se = ["id"], Ne = {
110
111
  for (let a = 0; a < 100; a += 1) {
111
112
  const l = e.value.style.chart.layout.ticks.gradient.show ? oe(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
112
113
  if (_.value) {
113
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, g = i.value.left + 4 + $, m = o.value.width - i.value.right - 4 - $, p = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (m - g) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
114
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, g = i.value.left + 4 + $, p = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (p - g) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
114
115
  t.push({
115
116
  x1: g,
116
- x2: m,
117
- y1: p,
117
+ x2: p,
118
+ y1: m,
118
119
  y2: k,
119
- curve: `M ${g} ${p} C ${g + w} ${p - P}, ${m - w} ${k - P}, ${m} ${k}`,
120
+ curve: `M ${g} ${m} C ${g + w} ${m - P}, ${p - w} ${k - P}, ${p} ${k}`,
120
121
  color: l
121
122
  });
122
123
  } else {
123
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, g = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, m = g, p = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - p) / e.value.style.chart.layout.curveAngleX;
124
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, g = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, p = g, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
124
125
  t.push({
125
126
  x1: g,
126
- x2: m,
127
- y1: p,
127
+ x2: p,
128
+ y1: m,
128
129
  y2: k,
129
- curve: `M ${g} ${p} C ${g + w} ${p + P}, ${m + w} ${k - P}, ${m} ${k}`,
130
+ curve: `M ${g} ${m} C ${g + w} ${m + P}, ${p + w} ${k - P}, ${p} ${k}`,
130
131
  color: l
131
132
  });
132
133
  }
@@ -337,7 +338,7 @@ const Se = ["id"], Ne = {
337
338
  }, null, 8, ["config"]))
338
339
  ], 46, Se));
339
340
  }
340
- }, tt = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-0911c677"]]);
341
+ }, tt = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-fac4c918"]]);
341
342
  export {
342
343
  tt as default
343
344
  };
@@ -1,16 +1,16 @@
1
1
  import { useSlots as st, onMounted as Le, computed as k, ref as f, watch as rt, onBeforeUnmount as ut, createElementBlock as C, openBlock as p, unref as g, normalizeStyle as D, normalizeClass as De, createBlock as E, createCommentVNode as P, createElementVNode as z, createVNode as Me, createSlots as it, withCtx as x, renderSlot as $, normalizeProps as G, guardReactiveProps as q, Fragment as Ve, renderList as Ue, toDisplayString as Y, mergeProps as ct, createTextVNode as Be, nextTick as dt } from "vue";
2
- import { u as vt, c as He, t as ht, p as O, a as ft, b as pt, o as gt, e as yt, d as ae, i as ne, f as K, X as mt, l as We, G as Ee, x as Ge, q as bt, r as wt, y as kt } from "./index-BAPUY6BW.js";
3
- import { _ as Ct } from "./Title-Dfjx2pT6.js";
4
- import { u as $t, U as xt } from "./usePrinter-BsXYrX84.js";
5
- import { _ as Tt } from "./Tooltip-C3kzKkai.js";
6
- import { L as Ot } from "./Legend-Bw9vX_fW.js";
7
- import _t from "./vue-ui-skeleton-DBfQG5lC.js";
8
- import { D as St } from "./DataTable-B8Vnlflz.js";
9
- import Nt from "./vue-ui-accordion-Dm7ZlylJ.js";
2
+ import { u as vt, c as He, t as ht, p as O, a as ft, b as pt, o as gt, e as yt, d as ae, i as ne, f as K, X as mt, l as We, G as Ee, x as Ge, q as bt, r as wt, y as kt } from "./index-CzjsUYng.js";
3
+ import { _ as Ct } from "./Title-BS1zFx79.js";
4
+ import { u as $t, U as xt } from "./usePrinter-CUsjlfpk.js";
5
+ import { _ as Tt } from "./Tooltip-BNOd4lK1.js";
6
+ import { L as Ot } from "./Legend-DSzoXS-3.js";
7
+ import _t from "./vue-ui-skeleton-XUKIcV-3.js";
8
+ import { D as St } from "./DataTable-C5EKEHsp.js";
9
+ import Nt from "./vue-ui-accordion-ConQex-C.js";
10
10
  import { t as Pt, u as zt } from "./useResponsive-vZgZwV-S.js";
11
- import { u as qe } from "./useNestedProp-X5u-cjpn.js";
12
- import { _ as At } from "./PackageVersion-C6hdi5vE.js";
13
- import { P as Ft } from "./PenAndPaper-DBNdemyU.js";
11
+ import { u as qe } from "./useNestedProp-RC28MVml.js";
12
+ import { _ as At } from "./PackageVersion-BtrpyUPC.js";
13
+ import { P as Ft } from "./PenAndPaper-zjBsZuuq.js";
14
14
  import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { u as Rt } from "./useChartAccessibility-BWojgys7.js";
16
16
  import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -224,7 +224,8 @@ const Gt = ["id"], qt = ["xmlns", "viewBox"], Xt = { key: 0 }, jt = ["id"], Yt =
224
224
  }, { deep: !0 });
225
225
  const { isPrinting: ke, isImaging: Ce, generatePdf: $e, generateImage: xe } = $t({
226
226
  elementId: `treemap_${S.value}`,
227
- fileName: e.value.style.chart.title.text || "vue-ui-treemap"
227
+ fileName: e.value.style.chart.title.text || "vue-ui-treemap",
228
+ options: e.value.userOptions.print
228
229
  }), Je = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Q = k(() => pt(e.value.customPalette)), F = f({
229
230
  showTable: e.value.table.show,
230
231
  showTooltip: e.value.style.chart.tooltip.show
@@ -850,7 +851,7 @@ const Gt = ["id"], qt = ["xmlns", "viewBox"], Xt = { key: 0 }, jt = ["id"], Yt =
850
851
  }, 8, ["config"])) : P("", !0)
851
852
  ], 46, Gt));
852
853
  }
853
- }, $o = /* @__PURE__ */ Lt(no, [["__scopeId", "data-v-4d059d9f"]]);
854
+ }, $o = /* @__PURE__ */ Lt(no, [["__scopeId", "data-v-57b31c44"]]);
854
855
  export {
855
856
  $o as default
856
857
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Zf2fUMIO.cjs"),Ae=require("./Title-BuZQSd23.cjs"),ke=require("./usePrinter-BGPa8G48.cjs"),Le=require("./Tooltip-BiBcMMP3.cjs"),Fe=require("./Legend-CHEbsxt2.cjs"),Ie=require("./vue-ui-skeleton-CiGqKHDK.cjs"),De=require("./DataTable-DLUrhKkw.cjs"),qe=require("./vue-ui-accordion-CnGQYWdI.cjs"),Ce=require("./useResponsive-N8jl0-aC.cjs"),we=require("./useNestedProp-BcSwG6N0.cjs"),Me=require("./PackageVersion-B6sWtTA0.cjs"),He=require("./PenAndPaper-DO7-xSYx.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),We=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function xe(n,c){const i=n.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let d=1/0,s=-1/0,h=0;for(let p=0;p<i;p+=1){const f=n[p].normalizedValue;f<d&&(d=f),f>s&&(s=f),h+=f}return Math.max(c**2*s/h**2,h**2/(c**2*d))}}function Te(n){const{xOffset:c,yOffset:i,width:d,height:s}=n;return{x0:c,y0:i,x1:c+d,y1:i+s}}function je(n,c,i){if(n.length===0)return!0;{const d=n.concat(c),s=xe(n,i),h=xe(d,i);return s>=h}}function Xe(n){const c=[],i=n.length;for(let d=0;d<i;d+=1){const s=n[d],h=s.length;for(let v=0;v<h;v+=1)c.push(s[v])}return c}function Ye(n,c){const i={...c,children:n};return Se(i)}function Ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function $e(n,c){const{width:i,height:d,xOffset:s,yOffset:h}=Y(c),v=n.length,p=n.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,w=p/i;let C=s,x=h;const b=[];if(i>=d){for(let y=0;y<v;y+=1){const g=n[y],k=x+g.normalizedValue/f,O={x0:C,y0:x,x1:C+f,y1:k},T=Object.assign({},g,O);x=k,b.push(T)}return b}else{for(let y=0;y<v;y+=1){const g=n[y],k=C+g.normalizedValue/w,O={x0:C,y0:x,x1:k,y1:x+w},T=Object.assign({},g,O);C=k,b.push(T)}return b}}function Je(n){const c=Y(n),i=c.width,d=c.height;return Math.min(i,d)}function Ke(n,c){const i=n.length,d=n.map(f=>f.value??0).reduce((f,w)=>f+w,0),s=c/d,h=[];let v,p;for(let f=0;f<i;f+=1)p=n[f],v=Object.assign({},p,{normalizedValue:p.value*(s||0)}),h.push(v);return h}function Y(n){const{x0:c,y0:i,x1:d,y1:s}=n;return{xOffset:c,yOffset:i,width:d-c,height:s-i}}function Qe(n,c,i,d){let s=n,h=c,v=i,p=d;for(;;){const f=s.length;if(f===0){const b=$e(h,v);return p.concat(b)}const w=Je(v),C=s[0],x=s.slice(1,f);if(je(h,C,w)){const b=h.concat(C);s=x,h=b,v=v,p=p}else{const b=h.length;let y=0;for(let T=0;T<b;T+=1)y+=h[T].normalizedValue;const g=et(v,y),k=$e(h,v),O=p.concat(k);s=s,h=[],v=g,p=O}}}function Se(n){if(typeof n.children>"u"||!n.children.length)return[n];{const c=Ke(n.children,Ze(n)),i=Qe(c,[],n,[]),d=i.length,s=[];for(let v=0;v<d;v+=1)s.push(Se(i[v]));return Xe(s)}}function et(n,c){const{width:i,height:d,xOffset:s,yOffset:h}=Y(n);if(i>=d){const v=c/d,p=i-v,f={xOffset:s+v,yOffset:h,width:p,height:d};return Te(f)}else{const v=c/i,p=d-v,f={xOffset:s,yOffset:h+v,width:i,height:p};return Te(f)}}const tt=["id"],ot=["xmlns","viewBox"],lt={key:0},at=["id"],nt=["stop-color"],rt=["stop-color"],st=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],ut=["x","y","height","width"],it={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},ct={key:5,class:"vue-data-ui-watermark"},dt=["onClick"],vt={key:0},ht={key:1},pt=["innerHTML"],ft={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:c,emit:i}){const{vue_ui_treemap:d}=r.useConfig(),s=n,h=i,v=e.useSlots();e.onMounted(()=>{v["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!s.dataset&&s.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),w=e.ref(r.createUid()),C=e.ref(!1),x=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),T=e.ref(null),Z=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),ee=e.ref(0),t=e.computed({get:()=>ae(),set:o=>o}),{userOptionsVisible:U,setUserOptionsVisibility:te,keepUserOptionState:oe}=Ue.useUserOptionState({config:t.value}),{svgRef:le}=We.useChartAccessibility({config:t.value.style.chart.title});function ae(){const o=we.useNestedProp({userConfig:s.config,defaultConfig:d});return o.theme?{...we.useNestedProp({userConfig:r.themes.vue_ui_treemap[o.theme]||s.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>s.config,o=>{t.value=ae(),U.value=!t.value.userOptions.showOnChartHover,K.value+=1,Q.value+=1,ee.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:ne,isImaging:re,generatePdf:se,generateImage:ue}=ke.usePrinter({elementId:`treemap_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),Ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),I=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),P=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),V=e.computed(()=>({bottom:P.value.height-t.value.style.chart.padding.bottom,height:P.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:P.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:P.value.height,vbWidth:P.value.width,width:P.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function ie(o){o.forEach((a,l)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||I.value[l]||r.palette[l]||r.palette[l%r.palette.length],a.children&&(a.children.forEach(u=>{u.parentId=a.id,u.color=a.color}),ie(a.children))})}const _=e.ref(s.dataset),D=e.ref(null);e.onMounted(()=>{Be()});function Be(){if(r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),ie(_.value),t.value.responsive){const o=Ce.throttle(()=>{const{width:a,height:l}=Ce.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?T.value:null,source:Z.value,noTitle:J.value});requestAnimationFrame(()=>{P.value.width=a,P.value.height=l})});D.value=new ResizeObserver(o),D.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const W=e.ref(_.value),L=e.computed(()=>W.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(o=>!g.value.includes(o.id))),R=e.computed(()=>_.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ce=e.computed({get(){let o=[...L.value];return t.value.style.chart.layout.sorted&&(o=[...L.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function de(o,a){return o.value/a}function Oe(o,a,l){const u=t.value.style.chart.layout.rects.colorRatio-de(a,l);return r.lightenHexColor(o,u<0?0:u)}function ve(o,a,l,u){return o.map((m,z)=>{const H=Oe(r.convertColorToHex(a)||I.value[z]||r.palette[z]||r.palette[z%r.palette.length],m,u),Re=de(m,u);return{...m,color:H,proportion:Re,parentName:l,children:m.children?ve(m.children,H,m.name,u):void 0}})}const F=e.computed(()=>Ye(ce.value.map((o,a)=>{const l=o.children?o.children.reduce((u,m)=>u+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?ve(o.children.sort((u,m)=>m.value-u.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:V.value.left*2,y0:V.value.top,x1:V.value.width,y1:V.value.height}));function he({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function pe({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 Pe(o){b.value=o,y.value+=1}const A=e.computed(()=>({startX:0,startY:0,width:V.value.vbWidth,height:V.value.vbHeight})),S=e.ref(!1);function G(o,a=_.value){for(const l of a){if(l.id===o)return l;if(l.children){const u=G(o,l.children);if(u)return u}}return null}function ze(o){if(S.value)h("selectDatapoint",void 0),W.value=_.value;else{if(h("selectDatapoint",o),!G(o.parentId))return;W.value=[G(o.parentId)]}S.value=!S.value}const N=e.ref(null),fe=e.computed(()=>_.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/_.value.map(l=>l.value).reduce((l,u)=>l+u,0),opacity:g.value.includes(o.id)?.5:1}))),Ve=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 ge(o){S.value=!1,N.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<s.dataset.length-1&&g.value.push(o.id),h("selectLegend",ce.value)}const j=e.ref(null);function _e({datapoint:o,seriesIndex:a}){N.value=o,j.value={datapoint:o,seriesIndex:a,config:t.value,series:L.value};const l=t.value.style.chart.tooltip.customFormat;if(r.isFunction(l)&&r.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:L.value,config:t.value})))x.value=l({seriesIndex:a,datapoint:o,series:L.value,config:t.value});else{let u="";u+=`<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>`,u+=`<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>`,u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,r.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>`,x.value=`<div>${u}</div>`}C.value=!0}const B=e.computed(()=>{const o=F.value.map(l=>({name:l.name,color:l.color})),a=F.value.map(l=>l.value);return{head:o,body:a}});function me(){e.nextTick(()=>{const o=B.value.head.map((u,m)=>[[u.name],[B.value.body[m]],[isNaN(B.value.body[m]/R.value)?"-":B.value.body[m]/R.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=B.value.head.map((m,z)=>{const H=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,B.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:B.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},H,isNaN(B.value.body[z]/R.value)?"-":r.dataLabel({v:B.value.body[z]/R.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 Ee(){return F.value}function ye(){$.value.showTable=!$.value.showTable}function be(){$.value.showTooltip=!$.value.showTooltip}const M=e.ref(!1);function X(){M.value=!M.value}return c({getData:Ee,generateCsv:me,generateImage:ue,generatePdf:se,toggleTable:ye,toggleTooltip:be,toggleAnnotator:X}),(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_${w.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(te)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(te)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(He.PenAndPaper,{key:0,svgRef:e.unref(le),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:X},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:J,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(Ae._sfc_main,{key:`title_${K.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(oe)||e.unref(U))?(e.openBlock(),e.createBlock(ke.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ne),isImaging:e.unref(re),uid:w.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:M.value,onToggleFullscreen:Pe,onGeneratePdf:e.unref(se),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ye,onToggleTooltip:be,onToggleAnnotator:X,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(U)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:u})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:u})),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:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),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),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:le,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!S.value,"vue-data-ui-zoom-minus":S.value}),viewBox:`${A.value.startX} ${A.value.startY} ${A.value.width<=0?10:A.value.width} ${A.value.height<=0?10:A.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",lt,[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,nt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,rt)],8,at)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:he(l),width:pe(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:N.value&&N.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":N.value&&N.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:m=>ze(l),onMouseenter:()=>_e({datapoint:l,seriesIndex:u}),onMouseleave:a[0]||(a[0]=m=>{N.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${N.value?N.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,st),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:he(l),width:pe(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",it,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.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(r.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),a[5]||(a[5]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.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||S.value,fontSize:E(l),isZoom:S.value,textColor:e.unref(r.adaptColorToBackground)(l.color)}),void 0,!0)])],8,ut))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:V.value,isZoom:S.value,rect:N.value,config:t.value})),void 0,!0)],14,ot)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ne)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:T},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Fe.Legend,{key:`legend_${ee.value}`,legendSet:fe.value,config:Ve.value,id:`treemap_legend_${w.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>ge(l))},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:m=>ge(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.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",ht," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",vt," ("+e.toDisplayString(isNaN(l.value/R.value)?"-":(l.value/R.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,dt)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:fe.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Z,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Le._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:x.value,isFullscreen:b.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.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(qe.default,{key:8,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(De.DataTable,{key:`table_${Q.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.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,pt)]),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,tt))}},gt=Ge._export_sfc(ft,[["__scopeId","data-v-57b31c44"]]);exports.default=gt;
@@ -1,18 +1,18 @@
1
1
  import { useCssVars as ct, useSlots as ht, computed as m, ref as i, watch as Ue, onMounted as Xe, onBeforeUnmount as pt, createElementBlock as r, openBlock as u, unref as d, normalizeStyle as c, normalizeClass as A, createBlock as B, createCommentVNode as p, renderSlot as b, createVNode as Y, createSlots as ce, withCtx as k, normalizeProps as X, guardReactiveProps as E, createElementVNode as n, toDisplayString as h, Fragment as H, renderList as W, mergeProps as yt, withKeys as gt, createTextVNode as ft } from "vue";
2
- import { u as bt, c as mt, t as kt, p as R, a as _t, b as $t, o as Ee, e as K, v as N, d as he, i as le, f as D, X as wt, s as pe, w as xt, q as Ct, r as Tt, x as Lt, y as Nt } from "./index-BAPUY6BW.js";
2
+ import { u as bt, c as mt, t as kt, p as R, a as _t, b as $t, o as Ee, e as K, v as N, d as he, i as le, f as D, X as wt, s as pe, w as xt, q as Ct, r as Tt, x as Lt, y as Nt } from "./index-CzjsUYng.js";
3
3
  import { t as Pt, u as St } from "./useResponsive-vZgZwV-S.js";
4
- import { _ as Vt } from "./Title-Dfjx2pT6.js";
5
- import { u as It, U as Ot } from "./usePrinter-BsXYrX84.js";
6
- import { _ as Ft } from "./Tooltip-C3kzKkai.js";
7
- import { L as He } from "./Legend-Bw9vX_fW.js";
8
- import Mt from "./vue-ui-skeleton-DBfQG5lC.js";
9
- import zt from "./BaseIcon-DyOT6PYJ.js";
10
- import At from "./vue-ui-accordion-Dm7ZlylJ.js";
11
- import { u as We } from "./useNestedProp-X5u-cjpn.js";
12
- import { _ as Bt } from "./PackageVersion-C6hdi5vE.js";
13
- import { P as Rt } from "./PenAndPaper-DBNdemyU.js";
4
+ import { _ as Vt } from "./Title-BS1zFx79.js";
5
+ import { u as It, U as Ot } from "./usePrinter-CUsjlfpk.js";
6
+ import { _ as Ft } from "./Tooltip-BNOd4lK1.js";
7
+ import { L as He } from "./Legend-DSzoXS-3.js";
8
+ import Mt from "./vue-ui-skeleton-XUKIcV-3.js";
9
+ import zt from "./BaseIcon-BySu2V3d.js";
10
+ import At from "./vue-ui-accordion-ConQex-C.js";
11
+ import { u as We } from "./useNestedProp-RC28MVml.js";
12
+ import { _ as Bt } from "./PackageVersion-BtrpyUPC.js";
13
+ import { P as Rt } from "./PenAndPaper-zjBsZuuq.js";
14
14
  import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Ge } from "./Shape-CcQr04tT.js";
15
+ import { _ as Ge } from "./Shape-DzIamXsi.js";
16
16
  import { u as Ut } from "./useChartAccessibility-BWojgys7.js";
17
17
  import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "height"], jt = ["id"], qt = ["stop-color"], Yt = ["stop-color"], Kt = { key: 1 }, Jt = ["x", "y", "width", "height", "fill", "rx"], Qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Zt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ea = ["x2", "y1", "y2", "stroke", "stroke-width"], ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], aa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], la = ["x", "y", "font-size", "fill", "font-weight"], oa = ["x", "y", "font-size", "fill", "font-weight"], na = ["x", "y", "font-size", "fill", "font-weight"], ua = ["y", "width", "height", "fill", "onMouseenter"], sa = {
@@ -37,7 +37,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
37
37
  emits: ["selectLegend"],
38
38
  setup(je, { expose: qe, emit: Ye }) {
39
39
  ct((a) => ({
40
- e38fbd6e: a.tdo
40
+ a6ba6a4e: a.tdo
41
41
  }));
42
42
  const { vue_ui_vertical_bar: Ke } = bt(), Je = ht(), T = je, J = m(() => !!T.dataset && T.dataset.length), C = i(mt()), Qe = i(null), oe = i(!1), ne = i(""), Q = i(0), Ze = i(null), ye = i(0), G = i(null), ge = i(null), ue = i(null), fe = i(null), be = i(null), me = i(0), se = i(0), et = Ye, e = m({
43
43
  get: () => we(),
@@ -61,7 +61,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
61
61
  }, { deep: !0 }), Ue(() => T.dataset, ee, { deep: !0 });
62
62
  const { isPrinting: xe, isImaging: Ce, generatePdf: Te, generateImage: Le } = It({
63
63
  elementId: `vue-ui-vertical-bar_${C.value}`,
64
- fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
64
+ fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
65
+ options: e.value.userOptions.print
65
66
  }), tt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = m(() => $t(e.value.customPalette)), Pe = i(null), Se = i(!1), at = m(() => e.value.table.responsiveBreakpoint), Z = i(null);
66
67
  Xe(() => {
67
68
  Ve();
@@ -955,7 +956,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
955
956
  }, 8, ["config"])) : p("", !0)
956
957
  ], 46, Et));
957
958
  }
958
- }, Wa = /* @__PURE__ */ Xt(La, [["__scopeId", "data-v-743d59c1"]]);
959
+ }, Wa = /* @__PURE__ */ Xt(La, [["__scopeId", "data-v-3535bb6b"]]);
959
960
  export {
960
961
  Wa as default
961
962
  };