@adyen/bento-vue3 1.89.1 → 1.90.0

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 (244) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +403 -298
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-time.css +1 -0
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/secondary-nav.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/assets/tooltip.css +1 -1
  23. package/dist/button.js +1 -1
  24. package/dist/card.js +1 -1
  25. package/dist/checkbox.js +2 -2
  26. package/dist/chip.js +1 -1
  27. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  28. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  29. package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
  30. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
  31. package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
  32. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
  33. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  34. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  35. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  36. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  37. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
  38. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
  39. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
  40. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
  41. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
  42. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
  43. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
  44. package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
  45. package/dist/chunks/card.BzCGCCzH.js +223 -0
  46. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
  47. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
  48. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
  49. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
  50. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
  51. package/dist/chunks/chip.DFldnqfz.js +72 -0
  52. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  53. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
  54. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
  55. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
  56. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
  57. package/dist/chunks/copy.CL893i9-.js +114 -0
  58. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  59. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  60. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  61. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  62. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  63. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
  64. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
  65. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
  66. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
  67. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
  68. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
  69. package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
  70. package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
  71. package/dist/chunks/date-picker.DPjCROIP.js +238 -0
  72. package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
  73. package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
  74. package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
  75. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  76. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  77. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
  78. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
  79. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
  80. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
  81. package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
  82. package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
  83. package/dist/chunks/error-message.849uzpkq.js +157 -0
  84. package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
  85. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
  86. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
  87. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
  88. package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
  89. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  90. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  91. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
  92. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
  93. package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
  94. package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
  95. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
  96. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
  97. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
  98. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
  99. package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
  100. package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
  101. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  102. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  103. package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
  104. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
  105. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
  106. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
  107. package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
  108. package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
  109. package/dist/chunks/input-time.DeJ8lDio.js +103 -0
  110. package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
  111. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  112. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  113. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  114. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  115. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  116. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  117. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
  118. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
  119. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
  120. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
  121. package/dist/chunks/pagination.DL-h8OLF.js +413 -0
  122. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
  123. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  124. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  125. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
  126. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
  127. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
  128. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
  129. package/dist/chunks/search-bar.DfNwnjes.js +114 -0
  130. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
  131. package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
  132. package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
  133. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  134. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  135. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
  136. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
  137. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
  138. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
  139. package/dist/chunks/step.AsX2jAeL.js +268 -0
  140. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  141. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  142. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  143. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
  144. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
  145. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  146. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  147. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  148. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  149. package/dist/chunks/textarea.C-sBemuo.js +256 -0
  150. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
  151. package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
  152. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
  153. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  154. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  155. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  156. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
  158. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
  159. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
  160. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
  161. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  162. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  163. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  164. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  165. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
  166. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
  167. package/dist/code-snippet.js +1 -1
  168. package/dist/country.js +3 -3
  169. package/dist/dashboard-template.js +1 -1
  170. package/dist/dashed-underline.js +1 -1
  171. package/dist/data-grid-template.js +1 -1
  172. package/dist/data-grid.js +1 -1
  173. package/dist/date-picker.js +2 -2
  174. package/dist/date-range-picker.js +2 -2
  175. package/dist/draggable-handle.js +51 -44
  176. package/dist/draggable-handle.js.map +1 -1
  177. package/dist/dropdown.js +4 -4
  178. package/dist/file-uploader.js +1 -1
  179. package/dist/filter-bar.js +1 -1
  180. package/dist/form-layout.js +1 -1
  181. package/dist/header-with-views.js +1 -1
  182. package/dist/header.js +1 -1
  183. package/dist/index.js +205 -203
  184. package/dist/index.js.map +1 -1
  185. package/dist/info-icon.js +1 -1
  186. package/dist/input-field-password.js +1 -1
  187. package/dist/input-field-phone-number.js +1 -1
  188. package/dist/input-field.js +1 -1
  189. package/dist/input-time.js +5 -0
  190. package/dist/input-time.js.map +1 -0
  191. package/dist/inspector.js +1 -1
  192. package/dist/internal.js +12 -12
  193. package/dist/list.js +1 -1
  194. package/dist/menu.js +1 -1
  195. package/dist/modal-fullscreen.js +1 -1
  196. package/dist/modal.js +2 -2
  197. package/dist/pagination.js +1 -1
  198. package/dist/popover.js +1 -1
  199. package/dist/promo-banner.js +1 -1
  200. package/dist/radio-group.js +1 -1
  201. package/dist/rich-text-editor.js +1 -1
  202. package/dist/search-bar.js +2 -2
  203. package/dist/secondary-nav.js +1 -1
  204. package/dist/segmented-control.js +1 -1
  205. package/dist/selection-card.js +1 -1
  206. package/dist/sidepanel.js +1 -1
  207. package/dist/stepper.js +1 -1
  208. package/dist/structured-list.js +1 -1
  209. package/dist/summary-grid.js +1 -1
  210. package/dist/tabs.js +1 -1
  211. package/dist/tag.js +1 -1
  212. package/dist/textarea.js +1 -1
  213. package/dist/timeline.js +1 -1
  214. package/dist/toast.js +1 -1
  215. package/dist/tutorial.js +1 -1
  216. package/dist/web-types.json +1 -1
  217. package/package.json +4 -4
  218. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  219. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  220. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  221. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  222. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  223. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  224. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  225. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  226. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  227. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  228. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  229. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  230. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  231. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  232. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  233. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  234. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  235. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  236. package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
  237. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  238. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  239. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  240. package/dist/chunks/step.BlwoLfdw.js +0 -259
  241. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  242. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  243. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  244. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.CHV6Z8nt.js","sources":["../../../vue2/src/components/textarea/textarea.types.ts","../../../vue2/src/components/textarea/textarea.vue"],"sourcesContent":["import type { FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTextareaResizeOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n BOTH = 'both',\n NONE = 'none',\n}\n\nexport enum BentoTextareaStateClass {\n CLEARABLE = 'clearable',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum BentoTextareaEvent {\n BLUR = 'blur',\n CHANGE = 'change',\n CLEAR = 'clear',\n ESCAPE_PRESSED = 'escape-pressed',\n FOCUS = 'focus',\n INPUT = 'input',\n UPDATE_MODEL_VALUE = 'update:model-value',\n KEYDOWN = 'keydown',\n KEYUP = 'keyup',\n}\n\nexport interface BentoTextareaProps extends FormField {\n /**\n * Text that labels the input element\n * @default undefined\n */\n ariaLabel?: string;\n\n /**\n * Text that shows number of characters in textarea\n * @default undefined\n */\n characterLimit?: number;\n\n /**\n * If set to true, shows a button to clear all the text\n * @default false\n */\n clearable?: boolean;\n\n /**\n * Sets the height of the textarea, e.g 200px OR 20vh\n * @default null\n */\n height?: string | null;\n\n /**\n * Indicates the possibility of resize the textarea.\n * Accepts the Enum or the string literal version.\n * @default BentoTextareaResizeOption.BOTH\n */\n resizable?: BentoTextareaResizeOption | `${BentoTextareaResizeOption}`;\n\n /**\n * Text displayed as the value of the textarea\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: string;\n\n /**\n * Text displayed as the value of the textarea\n */\n modelValue?: string;\n}\n","<template>\n <div ref=\"textareaComponent\" class=\"b-textarea\" :class=\"conditionalClasses\">\n <div :style=\"{ width: textareaWrapperWidth }\">\n <div class=\"b-textarea__label-box\" :class=\"conditionalClassesLabelBox\">\n <field-label\n v-if=\"label\"\n :for=\"textareaId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <bento-typography\n v-if=\"characterLimit\"\n el=\"span\"\n class=\"b-textarea__label-item\"\n :class=\"conditionalClassesLabelItem\"\n >\n {{ counter }}\n </bento-typography>\n </div>\n <bento-typography el=\"div\" class=\"b-textarea__input-box\" :aria-disabled=\"disabled\">\n <textarea\n :id=\"textareaId\"\n ref=\"textareaElement\"\n :value=\"textareaValue\"\n class=\"b-textarea__input\"\n :class=\"conditionalClassesInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-invalid=\"invalidInput\"\n :readonly=\"isReadOnly\"\n :required=\"required\"\n :aria-required=\"required\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n :style=\"{ resize: resizable, height: textareaHeight }\"\n @blur=\"onBlur\"\n @change=\"onChange\"\n @focus=\"onFocus\"\n @input=\"onInput\"\n @keydown.esc=\"onPressEscape\"\n @keydown=\"onKeyDown\"\n @keyup=\"onKeyUp\"\n @mousedown=\"onMouseDown\"\n @mouseup=\"onMouseUp\"\n >\n </textarea>\n\n <div v-if=\"showClearButton\" class=\"b-textarea__clear-button\">\n <bento-button\n variant=\"tertiary\"\n :disabled=\"disabled\"\n @click=\"onClear\"\n @keypress.enter=\"onClear\"\n @keyup.space=\"onClear\"\n >\n <template #iconLeft>\n <cross-circle-fill-small-icon :svg-title=\"t('clearText')\" />\n </template>\n </bento-button>\n </div>\n </bento-typography>\n\n <error-message v-if=\"isOverCharacterLimit\" :error-message=\"counterErrorText\" />\n\n <error-message v-if=\"errorMessage\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"description\" class=\"b-textarea__description\" el=\"span\">\n {{ description }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, onUnmounted, ref, toRef, toRefs, useAttrs, watch } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n\n // Utils\n import { generateUid } from '@/core/utils/ts';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n // Composables\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n // Constants\n import { BBorderWidthAttention } from '@adyen/bento-design-tokens/dist/js/bento/es6';\n\n // Types\n import { BentoTextareaEvent, type BentoTextareaProps, BentoTextareaStateClass } from './textarea.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n\n const props = withDefaults(defineProps<BentoTextareaProps>(), {\n ariaLabel: undefined,\n characterLimit: undefined,\n description: '',\n disabled: false,\n clearable: false,\n errorMessage: '',\n height: null,\n label: '',\n optional: false,\n placeholder: '',\n readonly: false,\n resizable: 'both',\n required: false,\n tooltipText: null,\n value: '',\n modelValue: '',\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: BentoTextareaEvent.BLUR): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: BentoTextareaEvent.CHANGE): void;\n\n /**\n * Emitted when the \"Clear\" button was clicked\n */\n (e: BentoTextareaEvent.CLEAR): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: BentoTextareaEvent.ESCAPE_PRESSED): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: BentoTextareaEvent.FOCUS): void;\n\n /**\n * Emitted when the component's model changes\n *\n * @deprecated since version 2.0. Use `v-model` or `update:model-value` instead.\n *\n */\n (e: BentoTextareaEvent.INPUT, value: string): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: BentoTextareaEvent.UPDATE_MODEL_VALUE, value: string): void;\n\n /**\n * Emitted when the text area keydown event is fired\n */\n (e: BentoTextareaEvent.KEYDOWN, event: KeyboardEvent): void;\n\n /**\n * Emitted when the text area keyup event is fired\n */\n (e: BentoTextareaEvent.KEYUP, event: KeyboardEvent): void;\n }>();\n\n const { height } = toRefs(props);\n\n const textareaId = generateUid('textarea');\n const textareaElement = ref<HTMLTextAreaElement>(null);\n const textareaComponent = ref<HTMLDivElement>(null);\n const textareaValue = ref(props.modelValue || props.value);\n const defaultTextareaHeight = 44;\n const textareaHeight = ref(props.height || `${defaultTextareaHeight}px`);\n const userSetHeight = ref<number>(0);\n const textareaWrapperWidth = ref('100%'); // The width set to the wrapper of the label, textarea and description\n const isUserResizing = ref(false);\n let textareaElementObserver: ResizeObserver | null = null;\n let textareaComponentObserver: ResizeObserver | null = null;\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const { emitValue } = useFormFieldEmits<string>(emit);\n\n const counter = computed(() => `${n(textareaValue?.value?.length ?? 0)} / ${n(props.characterLimit)}`);\n const isDynamicHeight = computed(() => !height.value);\n const isOverCharacterLimit = computed(\n () => props.characterLimit && textareaValue.value.length > props.characterLimit\n );\n\n /**\n * Calculates and sets the height of the textarea.\n * The height is determined by the maximum of the following values:\n *\n * 1. The content's scroll height (with a minimum of `defaultTextareaHeight`) + the border width.\n * 2. The height set by the user manually resizing the textarea (`userSetHeight`).\n * 3. The default minimum height (`defaultTextareaHeight`).\n *\n * This ensures the textarea grows with content, shrinks when content is removed,\n * but never goes below the manually set height or the default height.\n */\n const calculateHeight = () => {\n if (textareaElement.value) {\n const newHeight = Math.max(\n textareaElement.value.scrollHeight <= defaultTextareaHeight\n ? defaultTextareaHeight\n : textareaElement.value.scrollHeight + TEXTAREA_BORDER_WIDTH * 2,\n userSetHeight.value,\n defaultTextareaHeight\n );\n textareaHeight.value = `${newHeight}px`;\n }\n };\n\n watch(height, () => {\n if (isDynamicHeight.value) {\n calculateHeight();\n } else {\n textareaHeight.value = height.value;\n }\n });\n\n watch(\n () => [props.value, props.modelValue],\n () => {\n textareaValue.value = props.modelValue || props.value;\n },\n { immediate: true }\n );\n\n watch(\n () => textareaValue.value,\n async () => {\n if (isDynamicHeight.value) {\n // Hack to make the textarea calculate its height properly\n // Set the textarea back to the original value before calculating the height\n textareaHeight.value = `${defaultTextareaHeight}px`;\n if (!textareaValue.value) {\n return;\n }\n\n await nextTick();\n calculateHeight();\n }\n },\n { immediate: true }\n );\n\n const invalidInput = computed(() => !!props.errorMessage || isOverCharacterLimit.value);\n\n const conditionalClasses = computed(() => ({\n [`b-textarea--${BentoTextareaStateClass.DISABLED}`]: props.disabled,\n }));\n\n const conditionalClassesInput = computed(() => ({\n [`b-textarea__input--${BentoTextareaStateClass.CLEARABLE}`]: props.clearable,\n [`b-textarea__input--${BentoTextareaStateClass.READONLY}`]: isReadOnly.value,\n [`b-textarea__input--${BentoTextareaStateClass.ERROR}`]: invalidInput.value,\n [`b-textarea__input--dynamic-height`]: isDynamicHeight.value,\n }));\n\n const conditionalClassesLabelBox = computed(() => ({\n [`b-textarea__label-box--no-label`]: !props.label,\n }));\n\n const conditionalClassesLabelItem = computed(() => ({\n [`b-textarea__label-item--${BentoTextareaStateClass.ERROR}`]: isOverCharacterLimit.value,\n }));\n\n const counterErrorText = computed(() => t('yourTextCanBenAtMost', { characterLimit: props.characterLimit }));\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, label } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: label,\n });\n\n const showClearButton = computed(\n () => props.clearable && textareaValue.value && !props.disabled && !isReadOnly.value\n );\n\n const onClear = () => {\n textareaValue.value = '';\n emit(BentoTextareaEvent.CLEAR);\n emitValue('');\n };\n\n const onInput = (event: InputEvent) => {\n event.stopImmediatePropagation();\n\n if (!props.disabled && !isReadOnly.value) {\n textareaValue.value = (event.target as HTMLInputElement).value;\n /**\n * Triggered when input value is changed\n *\n * @event input\n * @property {String} inputValue - the updated textarea value\n */\n emitValue(textareaValue.value);\n }\n };\n\n const onBlur = () => {\n textareaElement.value.scrollTop = 0;\n emit(BentoTextareaEvent.BLUR);\n };\n\n const onFocus = () => {\n textareaElement.value.focus();\n emit(BentoTextareaEvent.FOCUS);\n };\n\n const onChange = () => {\n emit(BentoTextareaEvent.CHANGE);\n };\n\n const onPressEscape = () => {\n emit(BentoTextareaEvent.ESCAPE_PRESSED);\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n event.stopPropagation();\n emit(BentoTextareaEvent.KEYDOWN, event);\n };\n\n const onKeyUp = (event: KeyboardEvent) => {\n event.stopPropagation();\n emit(BentoTextareaEvent.KEYUP, event);\n };\n\n const onMouseDown = () => {\n isUserResizing.value = true;\n };\n\n const onMouseUp = () => {\n isUserResizing.value = false;\n };\n\n /**\n * Updates the textarea width depending if the container or the user update its size.\n * @param isTextareaElement - sets to true if the element being observed is the textarea HTML element.\n */\n const resizeTextareaWrapper = (isTextareaElement = false) => {\n // Width assigned by the browser whenever the textarea is manually resized. String of the format `<value>px`.\n const textareaStyleWidth = textareaElement.value.style.width;\n\n // Make sure the tracked textareaHeight is always in sync with the height size in case we manually resize the textarea\n if (textareaElement.value.style.height) {\n if (isUserResizing.value) {\n userSetHeight.value = parseInt(textareaElement.value.style.height, 10);\n }\n textareaHeight.value = textareaElement.value.style.height;\n }\n\n // If the textarea element observer is being triggered, but there's no textareaStyleWidth, we want to ignore it, as no manual resize as happened yet\n // The component wrapper will handle the resizing logic instead\n if (isTextareaElement && !textareaStyleWidth) {\n return;\n }\n\n // Width of the whole bento-textarea component\n const textareaComponentWidth = textareaComponent?.value?.offsetWidth;\n\n // If there is no textareaStyleWidth or the textareaStyleWidth is larger than the component container, the wrapper should be 100% of the container\n if (!textareaStyleWidth || parseInt(textareaStyleWidth, 10) > textareaComponentWidth) {\n textareaWrapperWidth.value = '100%';\n } else {\n // Else the wrapper should always be as wide as the textarea element itself\n textareaWrapperWidth.value = textareaStyleWidth;\n }\n };\n\n const focus = () => {\n textareaElement.value.focus();\n };\n\n defineExpose({\n focus,\n });\n\n onMounted(() => {\n textareaElementObserver = observeSizeOfElement(textareaElement.value, () => {\n resizeTextareaWrapper(true);\n });\n\n textareaComponentObserver = observeSizeOfElement(textareaComponent.value, () => {\n resizeTextareaWrapper();\n });\n\n if (isDynamicHeight.value) {\n calculateHeight();\n }\n\n if (props.value) {\n deprecate(\n 'BentoTextarea \"value\" property',\n `The use of \"value\" prop in \"BentoTextarea\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n });\n\n onUnmounted(() => {\n textareaElementObserver?.disconnect();\n textareaComponentObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n const TEXTAREA_BORDER_WIDTH = parseFloat(BBorderWidthAttention);\n\n export default {\n i18n: { messages },\n name: 'bento-textarea',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./textarea.scss\" />\n"],"names":["BentoTextareaStateClass","BentoTextareaStateClass2","BentoTextareaEvent","BentoTextareaEvent2","TEXTAREA_BORDER_WIDTH","BBorderWidthAttention","__default__","messages","attrs","useAttrs","props","__props","emit","__emit","height","toRefs","textareaId","generateUid","textareaElement","ref","textareaComponent","textareaValue","defaultTextareaHeight","textareaHeight","userSetHeight","textareaWrapperWidth","isUserResizing","textareaElementObserver","textareaComponentObserver","t","n","useI18n","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","counter","computed","isDynamicHeight","isOverCharacterLimit","calculateHeight","newHeight","watch","nextTick","invalidInput","conditionalClasses","conditionalClassesInput","conditionalClassesLabelBox","conditionalClassesLabelItem","counterErrorText","ariaLabelAttribute","ariaLabel","label","computedAriaLabel","useAriaLabel","showClearButton","onClear","onInput","event","onBlur","onFocus","onChange","onPressEscape","onKeyDown","onKeyUp","onMouseDown","onMouseUp","resizeTextareaWrapper","isTextareaElement","textareaStyleWidth","textareaComponentWidth","__expose","onMounted","observeSizeOfElement","deprecate","onUnmounted"],"mappings":";;;;;;;;;;;;;;AAYO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOLE,IAAA,kBAAAC,OACHA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SACAA,EAAA,qBAAA,sBACAA,EAAA,UAAA,WACAA,EAAA,QAAA,SATQA,IAAAD,KAAA,CAAA,CAAA;;;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AA;AACI,MAAAzC,EAAA,QAAA;AAAA,IAAuB,GAO3B0C,IAAA,CAAAC,IAAA,OAAA;AAEI,YAAAC,IAAApD,EAAA,MAAA,MAAA;AAYA,UATAA,EAAA,MAAA,MAAA,WACIQ,EAAA,UACIF,EAAA,QAAA,SAAAN,EAAA,MAAA,MAAA,QAAA,EAAA,IAEJK,EAAA,QAAAL,EAAA,MAAA,MAAA,SAKJmD,KAAA,CAAAC;AACI;AAIJ,YAAAC,KAAAnD,GAAA,OAAA;AAGA,MAAA,CAAAkD,KAAA,SAAAA,GAAA,EAAA,IAAAC,KACI9C,EAAA,QAAA,SAGAA,EAAA,QAAA6C;AAAA,IACJ;AAOJ,WAAAE,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAtD,EAAA,MAAA,MAAA;AAAA,MAA4B;AAAA,IAI5B,CAAA,GAGJuD,GAAA,MAAA;AACI,MAAA9C,IAAA+C,EAAAxD,EAAA,OAAA,MAAA;AACI,QAAAkD,EAAA,EAAA;AAAA,MAA0B,CAAA,GAG9BxC,IAAA8C,EAAAtD,EAAA,OAAA,MAAA;AACI,QAAAgD,EAAA;AAAA,MAAsB,CAAA,GAG1B7B,EAAA,SACIE,EAAA,GAGJ/B,EAAA,SACIiE;AAAA,QAAA;AAAA,QACI;AAAA;AAAA,QACA;AAAA,MAEA;AAAA,IAER,CAAA,GAGJC,GAAA,MAAA;AACI,MAAAjD,GAAA,WAAA,GACAC,GAAA,WAAA;AAAA,IAAsC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"textarea.C-sBemuo.js","sources":["../../../vue2/src/components/textarea/textarea.types.ts","../../../vue2/src/components/textarea/textarea.vue"],"sourcesContent":["import type { FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTextareaResizeOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n BOTH = 'both',\n NONE = 'none',\n}\n\nexport enum BentoTextareaStateClass {\n CLEARABLE = 'clearable',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum BentoTextareaEvent {\n BLUR = 'blur',\n CHANGE = 'change',\n CLEAR = 'clear',\n ESCAPE_PRESSED = 'escape-pressed',\n FOCUS = 'focus',\n INPUT = 'input',\n UPDATE_MODEL_VALUE = 'update:model-value',\n KEYDOWN = 'keydown',\n KEYUP = 'keyup',\n}\n\nexport interface BentoTextareaProps extends FormField {\n /**\n * Text that labels the input element\n * @default undefined\n */\n ariaLabel?: string;\n\n /**\n * Text that shows number of characters in textarea\n * @default undefined\n */\n characterLimit?: number;\n\n /**\n * If set to true, shows a button to clear all the text\n * @default false\n */\n clearable?: boolean;\n\n /**\n * Sets the height of the textarea, e.g 200px OR 20vh\n * @default null\n */\n height?: string | null;\n\n /**\n * Indicates the possibility of resize the textarea.\n * Accepts the Enum or the string literal version.\n * @default BentoTextareaResizeOption.BOTH\n */\n resizable?: BentoTextareaResizeOption | `${BentoTextareaResizeOption}`;\n\n /**\n * Text displayed as the value of the textarea\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: string;\n\n /**\n * Text displayed as the value of the textarea\n */\n modelValue?: string;\n}\n","<template>\n <div ref=\"textareaComponent\" class=\"b-textarea\" :class=\"conditionalClasses\">\n <div :style=\"{ width: textareaWrapperWidth }\">\n <div class=\"b-textarea__label-box\" :class=\"conditionalClassesLabelBox\">\n <field-label\n v-if=\"label\"\n :for=\"textareaId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <bento-typography\n v-if=\"characterLimit\"\n el=\"span\"\n class=\"b-textarea__label-item\"\n :class=\"conditionalClassesLabelItem\"\n >\n {{ counter }}\n </bento-typography>\n </div>\n <bento-typography el=\"div\" class=\"b-textarea__input-box\" :aria-disabled=\"disabled\">\n <textarea\n :id=\"textareaId\"\n ref=\"textareaElement\"\n :value=\"textareaValue\"\n class=\"b-textarea__input\"\n :class=\"conditionalClassesInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-invalid=\"invalidInput\"\n :readonly=\"isReadOnly\"\n :required=\"required\"\n :aria-required=\"required\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n :style=\"{ resize: resizable, height: textareaHeight }\"\n @blur=\"onBlur\"\n @change=\"onChange\"\n @focus=\"onFocus\"\n @input=\"onInput\"\n @keydown.esc=\"onPressEscape\"\n @keydown=\"onKeyDown\"\n @keyup=\"onKeyUp\"\n @mousedown=\"onMouseDown\"\n @mouseup=\"onMouseUp\"\n >\n </textarea>\n\n <div v-if=\"showClearButton\" class=\"b-textarea__clear-button\">\n <bento-button\n variant=\"tertiary\"\n :disabled=\"disabled\"\n @click=\"onClear\"\n @keypress.enter=\"onClear\"\n @keyup.space=\"onClear\"\n >\n <template #iconLeft>\n <cross-circle-fill-small-icon :svg-title=\"t('clearText')\" />\n </template>\n </bento-button>\n </div>\n </bento-typography>\n\n <error-message v-if=\"isOverCharacterLimit\" :error-message=\"counterErrorText\" />\n\n <error-message v-if=\"errorMessage\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"description\" class=\"b-textarea__description\" el=\"span\">\n {{ description }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, onUnmounted, ref, toRef, toRefs, useAttrs, watch } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n\n // Utils\n import { generateUid } from '@/core/utils/ts';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n // Composables\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n // Constants\n import { BBorderWidthAttention } from '@adyen/bento-design-tokens/dist/js/bento/es6';\n\n // Types\n import { BentoTextareaEvent, type BentoTextareaProps, BentoTextareaStateClass } from './textarea.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n\n const props = withDefaults(defineProps<BentoTextareaProps>(), {\n ariaLabel: undefined,\n characterLimit: undefined,\n description: '',\n disabled: false,\n clearable: false,\n errorMessage: '',\n height: null,\n label: '',\n optional: false,\n placeholder: '',\n readonly: false,\n resizable: 'both',\n required: false,\n tooltipText: null,\n value: '',\n modelValue: '',\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: BentoTextareaEvent.BLUR): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: BentoTextareaEvent.CHANGE): void;\n\n /**\n * Emitted when the \"Clear\" button was clicked\n */\n (e: BentoTextareaEvent.CLEAR): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: BentoTextareaEvent.ESCAPE_PRESSED): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: BentoTextareaEvent.FOCUS): void;\n\n /**\n * Emitted when the component's model changes\n *\n * @deprecated since version 2.0. Use `v-model` or `update:model-value` instead.\n *\n */\n (e: BentoTextareaEvent.INPUT, value: string): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: BentoTextareaEvent.UPDATE_MODEL_VALUE, value: string): void;\n\n /**\n * Emitted when the text area keydown event is fired\n */\n (e: BentoTextareaEvent.KEYDOWN, event: KeyboardEvent): void;\n\n /**\n * Emitted when the text area keyup event is fired\n */\n (e: BentoTextareaEvent.KEYUP, event: KeyboardEvent): void;\n }>();\n\n const { height } = toRefs(props);\n\n const textareaId = generateUid('textarea');\n const textareaElement = ref<HTMLTextAreaElement>(null);\n const textareaComponent = ref<HTMLDivElement>(null);\n const textareaValue = ref(props.modelValue || props.value);\n const defaultTextareaHeight = 44;\n const textareaHeight = ref(props.height || `${defaultTextareaHeight}px`);\n const userSetHeight = ref<number>(0);\n const textareaWrapperWidth = ref('100%'); // The width set to the wrapper of the label, textarea and description\n const isUserResizing = ref(false);\n let textareaElementObserver: ResizeObserver | null = null;\n let textareaComponentObserver: ResizeObserver | null = null;\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const { emitValue } = useFormFieldEmits<string>(emit);\n\n const counter = computed(() => `${n(textareaValue?.value?.length ?? 0)} / ${n(props.characterLimit)}`);\n const isDynamicHeight = computed(() => !height.value);\n const isOverCharacterLimit = computed(\n () => props.characterLimit && textareaValue.value.length > props.characterLimit\n );\n\n /**\n * Calculates and sets the height of the textarea.\n * The height is determined by the maximum of the following values:\n *\n * 1. The content's scroll height (with a minimum of `defaultTextareaHeight`) + the border width.\n * 2. The height set by the user manually resizing the textarea (`userSetHeight`).\n * 3. The default minimum height (`defaultTextareaHeight`).\n *\n * This ensures the textarea grows with content, shrinks when content is removed,\n * but never goes below the manually set height or the default height.\n */\n const calculateHeight = () => {\n if (textareaElement.value) {\n const newHeight = Math.max(\n textareaElement.value.scrollHeight <= defaultTextareaHeight\n ? defaultTextareaHeight\n : textareaElement.value.scrollHeight + TEXTAREA_BORDER_WIDTH * 2,\n userSetHeight.value,\n defaultTextareaHeight\n );\n textareaHeight.value = `${newHeight}px`;\n }\n };\n\n watch(height, () => {\n if (isDynamicHeight.value) {\n calculateHeight();\n } else {\n textareaHeight.value = height.value;\n }\n });\n\n watch(\n () => [props.value, props.modelValue],\n () => {\n textareaValue.value = props.modelValue || props.value;\n },\n { immediate: true }\n );\n\n watch(\n () => textareaValue.value,\n async () => {\n if (isDynamicHeight.value) {\n // Hack to make the textarea calculate its height properly\n // Set the textarea back to the original value before calculating the height\n textareaHeight.value = `${defaultTextareaHeight}px`;\n if (!textareaValue.value) {\n return;\n }\n\n await nextTick();\n calculateHeight();\n }\n },\n { immediate: true }\n );\n\n const invalidInput = computed(() => !!props.errorMessage || isOverCharacterLimit.value);\n\n const conditionalClasses = computed(() => ({\n [`b-textarea--${BentoTextareaStateClass.DISABLED}`]: props.disabled,\n }));\n\n const conditionalClassesInput = computed(() => ({\n [`b-textarea__input--${BentoTextareaStateClass.CLEARABLE}`]: props.clearable,\n [`b-textarea__input--${BentoTextareaStateClass.READONLY}`]: isReadOnly.value,\n [`b-textarea__input--${BentoTextareaStateClass.ERROR}`]: invalidInput.value,\n [`b-textarea__input--dynamic-height`]: isDynamicHeight.value,\n }));\n\n const conditionalClassesLabelBox = computed(() => ({\n [`b-textarea__label-box--no-label`]: !props.label,\n }));\n\n const conditionalClassesLabelItem = computed(() => ({\n [`b-textarea__label-item--${BentoTextareaStateClass.ERROR}`]: isOverCharacterLimit.value,\n }));\n\n const counterErrorText = computed(() => t('yourTextCanBenAtMost', { characterLimit: props.characterLimit }));\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, label } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: label,\n });\n\n const showClearButton = computed(\n () => props.clearable && textareaValue.value && !props.disabled && !isReadOnly.value\n );\n\n const onClear = () => {\n textareaValue.value = '';\n emit(BentoTextareaEvent.CLEAR);\n emitValue('');\n };\n\n const onInput = (event: InputEvent) => {\n event.stopImmediatePropagation();\n\n if (!props.disabled && !isReadOnly.value) {\n textareaValue.value = (event.target as HTMLInputElement).value;\n /**\n * Triggered when input value is changed\n *\n * @event input\n * @property {String} inputValue - the updated textarea value\n */\n emitValue(textareaValue.value);\n }\n };\n\n const onBlur = () => {\n textareaElement.value.scrollTop = 0;\n emit(BentoTextareaEvent.BLUR);\n };\n\n const onFocus = () => {\n textareaElement.value.focus();\n emit(BentoTextareaEvent.FOCUS);\n };\n\n const onChange = () => {\n emit(BentoTextareaEvent.CHANGE);\n };\n\n const onPressEscape = () => {\n emit(BentoTextareaEvent.ESCAPE_PRESSED);\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n event.stopPropagation();\n emit(BentoTextareaEvent.KEYDOWN, event);\n };\n\n const onKeyUp = (event: KeyboardEvent) => {\n event.stopPropagation();\n emit(BentoTextareaEvent.KEYUP, event);\n };\n\n const onMouseDown = () => {\n isUserResizing.value = true;\n };\n\n const onMouseUp = () => {\n isUserResizing.value = false;\n };\n\n /**\n * Updates the textarea width depending if the container or the user update its size.\n * @param isTextareaElement - sets to true if the element being observed is the textarea HTML element.\n */\n const resizeTextareaWrapper = (isTextareaElement = false) => {\n // Width assigned by the browser whenever the textarea is manually resized. String of the format `<value>px`.\n const textareaStyleWidth = textareaElement.value.style.width;\n\n // Make sure the tracked textareaHeight is always in sync with the height size in case we manually resize the textarea\n if (textareaElement.value.style.height) {\n if (isUserResizing.value) {\n userSetHeight.value = parseInt(textareaElement.value.style.height, 10);\n }\n textareaHeight.value = textareaElement.value.style.height;\n }\n\n // If the textarea element observer is being triggered, but there's no textareaStyleWidth, we want to ignore it, as no manual resize as happened yet\n // The component wrapper will handle the resizing logic instead\n if (isTextareaElement && !textareaStyleWidth) {\n return;\n }\n\n // Width of the whole bento-textarea component\n const textareaComponentWidth = textareaComponent?.value?.offsetWidth;\n\n // If there is no textareaStyleWidth or the textareaStyleWidth is larger than the component container, the wrapper should be 100% of the container\n if (!textareaStyleWidth || parseInt(textareaStyleWidth, 10) > textareaComponentWidth) {\n textareaWrapperWidth.value = '100%';\n } else {\n // Else the wrapper should always be as wide as the textarea element itself\n textareaWrapperWidth.value = textareaStyleWidth;\n }\n };\n\n const focus = () => {\n textareaElement.value.focus();\n };\n\n defineExpose({\n focus,\n });\n\n onMounted(() => {\n textareaElementObserver = observeSizeOfElement(textareaElement.value, () => {\n resizeTextareaWrapper(true);\n });\n\n textareaComponentObserver = observeSizeOfElement(textareaComponent.value, () => {\n resizeTextareaWrapper();\n });\n\n if (isDynamicHeight.value) {\n calculateHeight();\n }\n\n if (props.value) {\n deprecate(\n 'BentoTextarea \"value\" property',\n `The use of \"value\" prop in \"BentoTextarea\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n });\n\n onUnmounted(() => {\n textareaElementObserver?.disconnect();\n textareaComponentObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n const TEXTAREA_BORDER_WIDTH = parseFloat(BBorderWidthAttention);\n\n export default {\n i18n: { messages },\n name: 'bento-textarea',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./textarea.scss\" />\n"],"names":["BentoTextareaStateClass","BentoTextareaStateClass2","BentoTextareaEvent","BentoTextareaEvent2","TEXTAREA_BORDER_WIDTH","BBorderWidthAttention","__default__","messages","attrs","useAttrs","props","__props","emit","__emit","height","toRefs","textareaId","generateUid","textareaElement","ref","textareaComponent","textareaValue","defaultTextareaHeight","textareaHeight","userSetHeight","textareaWrapperWidth","isUserResizing","textareaElementObserver","textareaComponentObserver","t","n","useI18n","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","counter","computed","isDynamicHeight","isOverCharacterLimit","calculateHeight","newHeight","watch","nextTick","invalidInput","conditionalClasses","conditionalClassesInput","conditionalClassesLabelBox","conditionalClassesLabelItem","counterErrorText","ariaLabelAttribute","ariaLabel","label","computedAriaLabel","useAriaLabel","showClearButton","onClear","onInput","event","onBlur","onFocus","onChange","onPressEscape","onKeyDown","onKeyUp","onMouseDown","onMouseUp","resizeTextareaWrapper","isTextareaElement","textareaStyleWidth","textareaComponentWidth","__expose","onMounted","observeSizeOfElement","deprecate","onUnmounted"],"mappings":";;;;;;;;;;;;;;AAYO,IAAA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AAA,WAAA,GACAC,GAAA,WAAA;AAAA,IAAsC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,433 @@
1
+ import { defineComponent as V, computed as n, ref as $, toRefs as he, watch as _e, provide as q, openBlock as a, createElementBlock as c, createBlock as E, unref as s, withCtx as h, createTextVNode as N, toDisplayString as _, createCommentVNode as p, createVNode as I, createElementVNode as M, renderSlot as x, nextTick as ge, mergeProps as U, useSlots as be, inject as X, onUnmounted as we, normalizeClass as Z, normalizeProps as Q, Fragment as P, renderList as ye } from "vue";
2
+ import { B as me } from "./button.DWF7FSIw.js";
3
+ import { B as Me } from "./textarea.C-sBemuo.js";
4
+ import { u as de } from "./index.B875RXHM.js";
5
+ import { B as Ee } from "./button-actions.Bh_PZ_fV.js";
6
+ import { _ as W } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
+ import { B as ee } from "./dashed-underline.CwdpUz76.js";
8
+ import { B as te } from "./date.R2Wz6o7J.js";
9
+ import { B as Ne } from "./link.D6D6YGsN.js";
10
+ import { B as Ie } from "./tag.YN2r-Pp3.js";
11
+ import { d as Te, B as R } from "./typography.B3J6_tYk.js";
12
+ import { S as ke, B as Ce, a as Se } from "./structured-list-item.CgJR_ufh.js";
13
+ /* empty css */
14
+ import { g as Le } from "./generate-uid.DBWe4g6T.js";
15
+ import { u as Ae } from "./use-has-slot.CyMiImRQ.js";
16
+ import { j as Re, d as Be, n as De, k as se, o as ae, p as ie, q as ne, g as Oe, r as oe } from "./en-US.CCazFVNP.js";
17
+ import { g as $e } from "./getRoundingMethod.C3eaeGLR.js";
18
+ import "../assets/timeline-item.css";
19
+ function le(e, o, i) {
20
+ const B = Oe(), v = i?.locale ?? B.locale ?? Re, r = Be(e, o);
21
+ if (isNaN(r))
22
+ throw new RangeError("Invalid time value");
23
+ const b = Object.assign({}, i, {
24
+ addSuffix: i?.addSuffix,
25
+ comparison: r
26
+ }), [C, D] = De(
27
+ i?.in,
28
+ ...r > 0 ? [o, e] : [e, o]
29
+ ), w = $e(i?.roundingMethod ?? "round"), T = D.getTime() - C.getTime(), d = T / oe, S = se(D) - se(C), y = (T - S) / oe, u = i?.unit;
30
+ let m;
31
+ if (u ? m = u : d < 1 ? m = "second" : d < 60 ? m = "minute" : d < ae ? m = "hour" : y < ie ? m = "day" : y < ne ? m = "month" : m = "year", m === "second") {
32
+ const l = w(T / 1e3);
33
+ return v.formatDistance("xSeconds", l, b);
34
+ } else if (m === "minute") {
35
+ const l = w(d);
36
+ return v.formatDistance("xMinutes", l, b);
37
+ } else if (m === "hour") {
38
+ const l = w(d / 60);
39
+ return v.formatDistance("xHours", l, b);
40
+ } else if (m === "day") {
41
+ const l = w(y / ae);
42
+ return v.formatDistance("xDays", l, b);
43
+ } else if (m === "month") {
44
+ const l = w(y / ie);
45
+ return l === 12 && u !== "month" ? v.formatDistance("xYears", 1, b) : v.formatDistance("xMonths", l, b);
46
+ } else {
47
+ const l = w(y / ne);
48
+ return v.formatDistance("xYears", l, b);
49
+ }
50
+ }
51
+ var z = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(z || {}), ze = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(ze || {}), G = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(G || {}), Fe = /* @__PURE__ */ ((e) => (e.BLACK = "black", e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(Fe || {});
52
+ const ue = /* @__PURE__ */ Symbol("timeline register entry injection key"), ce = /* @__PURE__ */ Symbol("timeline config obj injection key"), pe = {
53
+ "de-DE": { addNote: "Notiz hinzufügen", cancel: "Abbrechen" },
54
+ "en-GB": { addNote: "Add note", cancel: "Cancel" },
55
+ "en-US": { addNote: "Add note", cancel: "Cancel" },
56
+ "es-ES": { addNote: "Añadir nota", cancel: "Cancelar" },
57
+ "es-MX": { addNote: "Agregar nota", cancel: "Cancelar" },
58
+ "fr-FR": { addNote: "Ajouter une note", cancel: "Annuler" },
59
+ "it-IT": { addNote: "Aggiungi nota", cancel: "Annulla" },
60
+ "ja-JP": { addNote: "メモを追加", cancel: "キャンセル" },
61
+ "pt-BR": { addNote: "Adicionar anotação", cancel: "Cancelar" },
62
+ "zh-CN": { addNote: "添加备注", cancel: "取消" }
63
+ }, Ue = { class: "b-timeline" }, Ye = {
64
+ key: 0,
65
+ class: "b-timeline__add-note-section"
66
+ }, je = { key: 1 }, Ve = { class: "b-timeline__items" }, He = V({
67
+ i18n: { messages: pe },
68
+ name: "bento-timeline"
69
+ }), Je = /* @__PURE__ */ V({
70
+ ...He,
71
+ props: {
72
+ addNote: { type: Boolean, default: !1 },
73
+ showMore: { default: null },
74
+ timegapLimit: { default: null }
75
+ },
76
+ emits: ["add-timeline-note"],
77
+ setup(e, { emit: o }) {
78
+ const i = e, B = o, { t: v } = de({ messages: pe }), r = n(() => v("addNote")), b = n(() => v("cancel")), C = $(), D = (g) => {
79
+ C.value = g;
80
+ }, w = $(null), T = $(null), d = $(!1), S = async () => {
81
+ d.value = !d.value, await ge(), d.value ? w.value.$refs.textareaElement?.focus() : T.value.$el?.focus();
82
+ }, y = () => {
83
+ B("add-timeline-note", {
84
+ description: C.value,
85
+ timestamp: { date: /* @__PURE__ */ new Date() },
86
+ type: "note"
87
+ }), S();
88
+ }, u = $([]), m = n(
89
+ () => i.showMore && u.value.length > i.showMore.limit ? u.value.length - i.showMore.limit : null
90
+ ), l = $(!1), { timegapLimit: F } = he(i), f = n(() => Array.from(u.value.keys())), Y = n(() => i.showMore ? i.showMore.placement === z.BEFORE_LAST ? [
91
+ ...f.value.slice(0, i.showMore.limit - 1),
92
+ f.value[f.value.length - 1]
93
+ ] : i.showMore.placement === z.AFTER_FIRST ? [f.value[0], ...f.value.slice(-(i.showMore.limit - 1))] : f.value.slice(0, i.showMore.limit) : null), H = n(() => {
94
+ if (!i.showMore)
95
+ return null;
96
+ switch (i.showMore.placement) {
97
+ case z.BEFORE_LAST:
98
+ return i.showMore.limit - 2;
99
+ case z.AFTER_FIRST:
100
+ return 0;
101
+ case z.BOTTOM:
102
+ default:
103
+ return i.showMore.limit - 1;
104
+ }
105
+ }), J = () => {
106
+ u.value.sort((g, L) => new Date(L.date).getTime() - new Date(g.date).getTime());
107
+ }, j = (g) => () => {
108
+ const L = u.value.indexOf(g);
109
+ L > -1 && u.value.splice(L, 1);
110
+ }, O = (g) => (u.value.push(g), { timelineEntries: u, unregisterTimelineEntry: j(g) });
111
+ _e(
112
+ () => u.value.length,
113
+ () => J()
114
+ );
115
+ const K = {
116
+ showAll: l,
117
+ showMoreIndex: H,
118
+ hiddenItems: m,
119
+ visibleIndexes: Y,
120
+ timegapLimit: F,
121
+ timelineEntries: u
122
+ };
123
+ return q(ue, O), q(ce, K), (g, L) => (a(), c("div", Ue, [
124
+ g.addNote ? (a(), c("div", Ye, [
125
+ d.value ? p("", !0) : (a(), E(s(me), {
126
+ key: 0,
127
+ ref_key: "addNoteButtonRef",
128
+ ref: T,
129
+ variant: "tertiary",
130
+ onClick: S
131
+ }, {
132
+ default: h(() => [
133
+ N(_(r.value), 1)
134
+ ]),
135
+ _: 1
136
+ }, 512)),
137
+ d.value ? (a(), c("div", je, [
138
+ I(s(Me), {
139
+ ref_key: "addNoteTextareaRef",
140
+ ref: w,
141
+ label: r.value,
142
+ "character-limit": 150,
143
+ resizable: "vertical",
144
+ "onUpdate:modelValue": D
145
+ }, null, 8, ["label"]),
146
+ I(s(Ee), {
147
+ actions: [
148
+ { title: r.value, event: y },
149
+ { title: b.value, event: S }
150
+ ]
151
+ }, null, 8, ["actions"])
152
+ ])) : p("", !0)
153
+ ])) : p("", !0),
154
+ M("ol", Ve, [
155
+ x(g.$slots, "default", {}, void 0, !0)
156
+ ])
157
+ ]));
158
+ }
159
+ }), Tt = /* @__PURE__ */ W(Je, [["__scopeId", "data-v-db82849a"]]);
160
+ let re = 0;
161
+ const Ke = {
162
+ beforeCreate() {
163
+ this.uuid = re.toString(), re += 1;
164
+ }
165
+ }, Pe = { key: 0 };
166
+ function qe(e, o, i, B, v, r) {
167
+ return a(), c("svg", U({ role: "img" }, e.$attrs, {
168
+ class: "ui-assets-icons-16",
169
+ xmlns: "http://www.w3.org/2000/svg",
170
+ width: "16",
171
+ height: "16",
172
+ fill: "none"
173
+ }), [
174
+ e.$attrs["svg-title"] ? (a(), c("title", Pe, _(e.$attrs["svg-title"]), 1)) : p("", !0),
175
+ o[0] || (o[0] = M("path", {
176
+ fill: "#001222",
177
+ d: "M10 3.25C11.5188 3.25 12.75 4.48122 12.75 6V10C12.75 11.5188 11.5188 12.75 10 12.75H6C4.48122 12.75 3.25 11.5188 3.25 10V6C3.25 4.48122 4.48122 3.25 6 3.25H10Z"
178
+ }, null, -1))
179
+ ], 16);
180
+ }
181
+ const xe = /* @__PURE__ */ W(Ke, [["render", qe]]), ve = {
182
+ "de-DE": { showLess: "Weniger anzeigen", showMore: "Mehr {items} anzeigen", timegap: "{timegap} ist zwischen den Ereignissen in der Zeitleiste vergangen." },
183
+ "en-GB": { showLess: "Show less", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
184
+ "en-US": { showLess: "Show less", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
185
+ "es-ES": { showLess: "Mostrar menos", showMore: "Mostrar {items} más", timegap: "{timegap} transcurrido entre los eventos de la línea de tiempo" },
186
+ "es-MX": { showLess: "Mostrar menos", showMore: "Mostrar {items} más", timegap: "{timegap} pasó entre los eventos de la línea de tiempo" },
187
+ "fr-FR": { showLess: "Afficher moins", showMore: "Afficher {items} de plus", timegap: "{timegap} écoulé entre les événements de la chronologie" },
188
+ "it-IT": { showLess: "Mostra meno", showMore: "Mostra altri {items}", timegap: "Tempo trascorso tra gli eventi della linea temporale: {timegap}" },
189
+ "ja-JP": { showLess: "表示内容を減らす", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
190
+ "pt-BR": { showLess: "Mostrar menos", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
191
+ "zh-CN": { showLess: "显示更少", showMore: "显示更多 {items}", timegap: "在时间线事件之间经过了 {timegap}" }
192
+ }, Ge = {
193
+ key: 0,
194
+ class: "b-timeline-item__row"
195
+ }, We = { class: "b-timeline-item__content" }, Xe = { class: "b-timeline-item__row" }, Ze = {
196
+ class: "b-timeline-item__marker",
197
+ "aria-hidden": "true"
198
+ }, Qe = {
199
+ key: 0,
200
+ class: "b-timeline-item__separator",
201
+ "data-testid": "last-timeline-item-separator"
202
+ }, et = { class: "b-timeline-item__content" }, tt = { key: 1 }, st = { key: 1 }, at = { key: 1 }, it = {
203
+ key: 5,
204
+ class: "b-timeline-item__data-list"
205
+ }, nt = {
206
+ key: 1,
207
+ class: "b-timeline-item__row"
208
+ }, ot = { class: "b-timeline-item__content" }, lt = V({
209
+ name: "bento-timeline-item",
210
+ i18n: { messages: ve }
211
+ }), rt = /* @__PURE__ */ V({
212
+ ...lt,
213
+ props: {
214
+ additionalTimestamp: { default: null },
215
+ dataList: { default: null },
216
+ description: { default: null },
217
+ status: { default: "black" },
218
+ tag: { default: void 0 },
219
+ timestamp: {},
220
+ title: { default: null },
221
+ type: { default: "milestone" },
222
+ variant: { default: null }
223
+ },
224
+ setup(e) {
225
+ const o = e, { t: i } = de({ messages: ve }), B = be(), v = Ae(B), r = n(() => o.type === "note"), b = n(() => o.variant === G.CRITICAL ? "red" : o.variant === G.SUCCESS ? "green" : o.status);
226
+ o.variant && Te(
227
+ 'BentoTimelineItem "variant" property',
228
+ `Use the BentoTimelineItem "status" modifier instead to modify the color of the timeline icon.
229
+ <bento-timeline-item status="red" />`,
230
+ "2.0.0"
231
+ );
232
+ const C = n(() => ({
233
+ [`b-timeline-item__icon--${b.value}`]: b.value && !r.value
234
+ })), D = n(() => ({
235
+ "b-timeline-item--note": r.value
236
+ }));
237
+ q(ke, !0);
238
+ const w = {
239
+ title: o.title,
240
+ date: o.timestamp.date
241
+ }, T = X(ue), { timelineEntries: d, unregisterTimelineEntry: S } = T(w);
242
+ we(() => S());
243
+ const { showAll: y, showMoreIndex: u, hiddenItems: m, visibleIndexes: l, timegapLimit: F } = X(ce), f = n(() => d.value.indexOf(w)), Y = n(() => y.value || !l.value), H = n(() => Y.value ? !0 : l.value.includes(f.value)), J = n(() => typeof o.title == "object"), j = n(() => o.title), O = n(() => {
244
+ if (!F.value)
245
+ return null;
246
+ const t = d.value[f.value - 1]?.date, k = Y.value || l.value.includes(f.value - 1);
247
+ if (!t || !k)
248
+ return null;
249
+ const { date: A } = d.value[f.value], fe = parseInt(
250
+ le(t, A, { unit: F.value.unit }),
251
+ 10
252
+ );
253
+ return F.value.amount < fe ? le(t, A, { roundingMethod: "floor" }) : null;
254
+ }), K = n(() => O.value ? i("timegap", { timegap: O.value }) : ""), g = n(() => m.value && u.value === f.value), L = n(() => f.value !== -1 && f.value === d.value.length - 1);
255
+ return (t, k) => H.value ? (a(), c("li", {
256
+ key: 0,
257
+ class: Z(["b-timeline-item", D.value])
258
+ }, [
259
+ O.value ? (a(), c("div", Ge, [
260
+ k[1] || (k[1] = M("div", {
261
+ class: "b-timeline-item__marker",
262
+ "aria-hidden": "true"
263
+ }, [
264
+ M("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
265
+ M("div", { class: "b-timeline-item__separator" })
266
+ ], -1)),
267
+ M("div", We, [
268
+ I(s(R), {
269
+ class: "b-timeline-item__timegap",
270
+ "aria-label": K.value
271
+ }, {
272
+ default: h(() => [
273
+ N(_(O.value), 1)
274
+ ]),
275
+ _: 1
276
+ }, 8, ["aria-label"])
277
+ ])
278
+ ])) : p("", !0),
279
+ M("div", Xe, [
280
+ M("div", Ze, [
281
+ I(s(xe), {
282
+ class: Z(["b-timeline-item__icon", C.value])
283
+ }, null, 8, ["class"]),
284
+ L.value ? p("", !0) : (a(), c("div", Qe))
285
+ ]),
286
+ M("div", et, [
287
+ r.value ? p("", !0) : (a(), E(s(R), {
288
+ key: 0,
289
+ el: "div",
290
+ variant: "body",
291
+ strongest: "",
292
+ class: "b-timeline-item__title",
293
+ role: "heading",
294
+ "aria-level": "2"
295
+ }, {
296
+ default: h(() => [
297
+ J.value ? (a(), E(s(Ne), U({ key: 0 }, j.value, { "disable-typography": "" }), {
298
+ default: h(() => [
299
+ N(_(j.value.title), 1)
300
+ ]),
301
+ _: 1
302
+ }, 16)) : (a(), c("span", tt, _(t.title), 1))
303
+ ]),
304
+ _: 1
305
+ })),
306
+ r.value && (t.description || s(v)("default")) ? (a(), E(s(R), {
307
+ key: 1,
308
+ el: "div",
309
+ variant: "body",
310
+ class: "b-timeline-item__description"
311
+ }, {
312
+ default: h(() => [
313
+ x(t.$slots, "default", {}, () => [
314
+ N(_(t.description), 1)
315
+ ], !0)
316
+ ]),
317
+ _: 3
318
+ })) : p("", !0),
319
+ t.timestamp ? (a(), E(s(R), {
320
+ key: 2,
321
+ class: "b-timeline-item__timestamp",
322
+ el: "div",
323
+ variant: "caption"
324
+ }, {
325
+ default: h(() => [
326
+ I(s(te), {
327
+ date: t.timestamp.date,
328
+ format: t.timestamp.format,
329
+ "disable-typography": ""
330
+ }, null, 8, ["date", "format"]),
331
+ t.timestamp.description ? (a(), E(s(ee), Q(U({ key: 0 }, t.timestamp.description)), {
332
+ default: h(() => [
333
+ N(_(t.timestamp.value), 1)
334
+ ]),
335
+ _: 1
336
+ }, 16)) : (a(), c("span", st, _(t.timestamp.value), 1))
337
+ ]),
338
+ _: 1
339
+ })) : p("", !0),
340
+ !r.value && t.additionalTimestamp ? (a(), E(s(R), {
341
+ key: 3,
342
+ class: "b-timeline-item__timestamp",
343
+ el: "div",
344
+ variant: "caption"
345
+ }, {
346
+ default: h(() => [
347
+ I(s(te), {
348
+ date: t.additionalTimestamp.date,
349
+ format: t.additionalTimestamp.format,
350
+ "disable-typography": ""
351
+ }, null, 8, ["date", "format"]),
352
+ t.additionalTimestamp.description ? (a(), E(s(ee), Q(U({ key: 0 }, t.additionalTimestamp.description)), {
353
+ default: h(() => [
354
+ N(_(t.additionalTimestamp.value), 1)
355
+ ]),
356
+ _: 1
357
+ }, 16)) : (a(), c("span", at, _(t.additionalTimestamp.value), 1))
358
+ ]),
359
+ _: 1
360
+ })) : p("", !0),
361
+ !r.value && (t.description || s(v)("default")) ? (a(), E(s(R), {
362
+ key: 4,
363
+ el: "div",
364
+ variant: "body",
365
+ class: "b-timeline-item__description"
366
+ }, {
367
+ default: h(() => [
368
+ x(t.$slots, "default", {}, () => [
369
+ N(_(t.description), 1)
370
+ ], !0)
371
+ ]),
372
+ _: 3
373
+ })) : p("", !0),
374
+ !r.value && t.dataList ? (a(), c("div", it, [
375
+ I(s(Ce), null, {
376
+ default: h(() => [
377
+ (a(!0), c(P, null, ye(t.dataList, (A) => (a(), E(s(Se), {
378
+ key: s(Le)(A.label),
379
+ label: A.label
380
+ }, {
381
+ default: h(() => [
382
+ I(s(R), { variant: "caption" }, {
383
+ default: h(() => [
384
+ N(_(A.value), 1)
385
+ ]),
386
+ _: 2
387
+ }, 1024)
388
+ ]),
389
+ _: 2
390
+ }, 1032, ["label"]))), 128))
391
+ ]),
392
+ _: 1
393
+ })
394
+ ])) : p("", !0),
395
+ !r.value && t.tag ? (a(), E(s(Ie), U({ key: 6 }, t.tag, { class: "b-timeline-item__tag" }), null, 16)) : p("", !0)
396
+ ])
397
+ ]),
398
+ g.value ? (a(), c("div", nt, [
399
+ k[2] || (k[2] = M("div", {
400
+ class: "b-timeline-item__marker",
401
+ "aria-hidden": "true"
402
+ }, [
403
+ M("div", { class: "b-timeline-item__separator" })
404
+ ], -1)),
405
+ M("div", ot, [
406
+ I(s(me), {
407
+ class: "b-timeline__show-more",
408
+ variant: "tertiary",
409
+ onClick: k[0] || (k[0] = (A) => y.value = !s(y))
410
+ }, {
411
+ default: h(() => [
412
+ s(y) ? (a(), c(P, { key: 1 }, [
413
+ N(_(s(i)("showLess")), 1)
414
+ ], 64)) : (a(), c(P, { key: 0 }, [
415
+ N(_(s(i)("showMore", { items: s(m) })), 1)
416
+ ], 64))
417
+ ]),
418
+ _: 1
419
+ })
420
+ ])
421
+ ])) : p("", !0)
422
+ ], 2)) : p("", !0);
423
+ }
424
+ }), kt = /* @__PURE__ */ W(rt, [["__scopeId", "data-v-190b41d4"]]);
425
+ export {
426
+ ze as B,
427
+ kt as a,
428
+ G as b,
429
+ z as c,
430
+ Fe as d,
431
+ Tt as t
432
+ };
433
+ //# sourceMappingURL=timeline-item.CHk8wXeT.js.map