@adyen/bento-vue3 1.86.0 → 1.87.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 (277) hide show
  1. package/dist/@types/index.d.ts +12337 -12402
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/anchor-scroller.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/anchor-scroller.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-group.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/controls-group.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-picker.css +1 -1
  16. package/dist/assets/date-range-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown-default-textbox.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/error-message.css +1 -1
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field-phone-number.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/pagination.css +1 -1
  29. package/dist/assets/radio-group.css +1 -1
  30. package/dist/assets/rich-text-editor.css +1 -1
  31. package/dist/assets/selection-card-group.css +1 -1
  32. package/dist/assets/sidepanel.css +1 -1
  33. package/dist/assets/textarea.css +1 -1
  34. package/dist/button.js +1 -1
  35. package/dist/card.js +1 -1
  36. package/dist/checkbox.js +2 -2
  37. package/dist/chunks/{action-bar.g7rM3wUc.js → action-bar.Ho_fXeXK.js} +4 -4
  38. package/dist/chunks/{action-bar.g7rM3wUc.js.map → action-bar.Ho_fXeXK.js.map} +1 -1
  39. package/dist/chunks/{ai-tag.UlRkq54l.js → ai-tag.DVCW-_vD.js} +2 -2
  40. package/dist/chunks/{ai-tag.UlRkq54l.js.map → ai-tag.DVCW-_vD.js.map} +1 -1
  41. package/dist/chunks/anchor-scroller.BctgW0se.js +214 -0
  42. package/dist/chunks/anchor-scroller.BctgW0se.js.map +1 -0
  43. package/dist/chunks/{base-modal.D5HrjwL1.js → base-modal.gZAtk-xP.js} +17 -17
  44. package/dist/chunks/{base-modal.D5HrjwL1.js.map → base-modal.gZAtk-xP.js.map} +1 -1
  45. package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js → button-actions-with-menu.Tba1ME79.js} +3 -3
  46. package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js.map → button-actions-with-menu.Tba1ME79.js.map} +1 -1
  47. package/dist/chunks/{button-actions.BH-J7dux.js → button-actions.BYBpjNqy.js} +182 -180
  48. package/dist/chunks/button-actions.BYBpjNqy.js.map +1 -0
  49. package/dist/chunks/{calendar.DzeJoNc2.js → calendar.vM3abC8y.js} +401 -410
  50. package/dist/chunks/calendar.vM3abC8y.js.map +1 -0
  51. package/dist/chunks/{card.DcXXdxWL.js → card.Cw63i7Ul.js} +2 -2
  52. package/dist/chunks/{card.DcXXdxWL.js.map → card.Cw63i7Ul.js.map} +1 -1
  53. package/dist/chunks/{checkbox-group.Bh_aqKoA.js → checkbox-group.ODQy-ICn.js} +42 -41
  54. package/dist/chunks/checkbox-group.ODQy-ICn.js.map +1 -0
  55. package/dist/chunks/{checkbox.7kpOXm-b.js → checkbox.C3Ewfygy.js} +79 -81
  56. package/dist/chunks/checkbox.C3Ewfygy.js.map +1 -0
  57. package/dist/chunks/{code-snippet.UIqVTv4U.js → code-snippet.Dl1MEedz.js} +4 -4
  58. package/dist/chunks/{code-snippet.UIqVTv4U.js.map → code-snippet.Dl1MEedz.js.map} +1 -1
  59. package/dist/chunks/constructNow.CIc7d13I.js +8 -0
  60. package/dist/chunks/{constructNow.B8T1ljs6.js.map → constructNow.CIc7d13I.js.map} +1 -1
  61. package/dist/chunks/{controls-group.Dip3WAKV.js → controls-group.Bu5lNTyH.js} +22 -28
  62. package/dist/chunks/controls-group.Bu5lNTyH.js.map +1 -0
  63. package/dist/chunks/{copy.ByyQlckP.js → copy.C_BCNHYQ.js} +3 -3
  64. package/dist/chunks/{copy.ByyQlckP.js.map → copy.C_BCNHYQ.js.map} +1 -1
  65. package/dist/chunks/{dashboard-section.CIHtXoeW.js → dashboard-section.CgoLquLP.js} +3 -3
  66. package/dist/chunks/{dashboard-section.CIHtXoeW.js.map → dashboard-section.CgoLquLP.js.map} +1 -1
  67. package/dist/chunks/{dashed-underline.CLwPU-C2.js → dashed-underline.wbRHATeE.js} +3 -3
  68. package/dist/chunks/{dashed-underline.CLwPU-C2.js.map → dashed-underline.wbRHATeE.js.map} +1 -1
  69. package/dist/chunks/{data-grid-template.BTpSfkQt.js → data-grid-template.D40V1cmi.js} +3 -3
  70. package/dist/chunks/{data-grid-template.BTpSfkQt.js.map → data-grid-template.D40V1cmi.js.map} +1 -1
  71. package/dist/chunks/{data-grid.CXDdiHz8.js → data-grid.KudN-TcY.js} +870 -867
  72. package/dist/chunks/{data-grid.CXDdiHz8.js.map → data-grid.KudN-TcY.js.map} +1 -1
  73. package/dist/chunks/date-picker.D5B_SECc.js +251 -0
  74. package/dist/chunks/date-picker.D5B_SECc.js.map +1 -0
  75. package/dist/chunks/date-range-picker.CDDw_xl_.js +1104 -0
  76. package/dist/chunks/date-range-picker.CDDw_xl_.js.map +1 -0
  77. package/dist/chunks/{de.DvtL0g75.js → de.BJvo6njq.js} +2 -2
  78. package/dist/chunks/{de.DvtL0g75.js.map → de.BJvo6njq.js.map} +1 -1
  79. package/dist/chunks/{dialog-page.B3ptLXXP.js → dialog-page.C1KUI51V.js} +2 -2
  80. package/dist/chunks/{dialog-page.B3ptLXXP.js.map → dialog-page.C1KUI51V.js.map} +1 -1
  81. package/dist/chunks/{differenceInMonths.BR4Z2HIa.js → differenceInMonths.CIYECBxK.js} +7 -7
  82. package/dist/chunks/{differenceInMonths.BR4Z2HIa.js.map → differenceInMonths.CIYECBxK.js.map} +1 -1
  83. package/dist/chunks/{dropdown-default-textbox.B-_dTUVX.js → dropdown-default-textbox.CskseEho.js} +62 -60
  84. package/dist/chunks/dropdown-default-textbox.CskseEho.js.map +1 -0
  85. package/dist/chunks/{dropdown-tag.DDNOZhEG.js → dropdown-tag.CwSzUwa7.js} +3 -3
  86. package/dist/chunks/{dropdown-tag.DDNOZhEG.js.map → dropdown-tag.CwSzUwa7.js.map} +1 -1
  87. package/dist/chunks/{dropdown.CU6nfq3V.js → dropdown.Bdw2B-Cw.js} +9 -9
  88. package/dist/chunks/{dropdown.CU6nfq3V.js.map → dropdown.Bdw2B-Cw.js.map} +1 -1
  89. package/dist/chunks/{en-GB.DCGuCmAv.js → en-GB.C3-QUpva.js} +2 -2
  90. package/dist/chunks/{en-GB.DCGuCmAv.js.map → en-GB.C3-QUpva.js.map} +1 -1
  91. package/dist/chunks/{en-US.BZii9jNW.js → en-US.YeSsZuOc.js} +150 -100
  92. package/dist/chunks/en-US.YeSsZuOc.js.map +1 -0
  93. package/dist/chunks/error-message.oGiefI2-.js +155 -0
  94. package/dist/chunks/error-message.oGiefI2-.js.map +1 -0
  95. package/dist/chunks/{es.bz0mzkMq.js → es.DyUjjSL8.js} +2 -2
  96. package/dist/chunks/{es.bz0mzkMq.js.map → es.DyUjjSL8.js.map} +1 -1
  97. package/dist/chunks/{file-uploader.Q2ufNRTY.js → file-uploader.BnmNI1O7.js} +573 -548
  98. package/dist/chunks/file-uploader.BnmNI1O7.js.map +1 -0
  99. package/dist/chunks/{filter-bar.BVj9YVv-.js → filter-bar.xwfVuZw4.js} +1973 -2062
  100. package/dist/chunks/filter-bar.xwfVuZw4.js.map +1 -0
  101. package/dist/chunks/{focus-trap.CBvh2H_m.js → focus-trap.BxCwzLqN.js} +2 -2
  102. package/dist/chunks/{focus-trap.CBvh2H_m.js.map → focus-trap.BxCwzLqN.js.map} +1 -1
  103. package/dist/chunks/{footer-actions.DLzMOB7j.js → footer-actions.Ck6UztD8.js} +2 -2
  104. package/dist/chunks/{footer-actions.DLzMOB7j.js.map → footer-actions.Ck6UztD8.js.map} +1 -1
  105. package/dist/chunks/form-layout-title.CQfeGyVw.js +232 -0
  106. package/dist/chunks/{form-layout-title.DYmTc6M7.js.map → form-layout-title.CQfeGyVw.js.map} +1 -1
  107. package/dist/chunks/{match.CMBZxEs9.js → fr.JD_4GwS8.js} +98 -61
  108. package/dist/chunks/fr.JD_4GwS8.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bw8ZGwJW.js → header-meta.lGt3HsyH.js} +108 -114
  110. package/dist/chunks/header-meta.lGt3HsyH.js.map +1 -0
  111. package/dist/chunks/{header-with-views.CJDoE4hw.js → header-with-views.BT6lbAby.js} +9 -9
  112. package/dist/chunks/{header-with-views.CJDoE4hw.js.map → header-with-views.BT6lbAby.js.map} +1 -1
  113. package/dist/chunks/{header.BeH8KH_l.js → header.oXqwf2xN.js} +3 -3
  114. package/dist/chunks/{header.BeH8KH_l.js.map → header.oXqwf2xN.js.map} +1 -1
  115. package/dist/chunks/{index.CbxHJr39.js → index.Dppy4qHk.js} +204 -197
  116. package/dist/chunks/{index.CbxHJr39.js.map → index.Dppy4qHk.js.map} +1 -1
  117. package/dist/chunks/{info-icon.BLtyJvY4.js → info-icon.DyPOv7Pi.js} +3 -3
  118. package/dist/chunks/{info-icon.BLtyJvY4.js.map → info-icon.DyPOv7Pi.js.map} +1 -1
  119. package/dist/chunks/{input-field-password.KeKQPIZv.js → input-field-password.CKhqGBVB.js} +6 -6
  120. package/dist/chunks/{input-field-password.KeKQPIZv.js.map → input-field-password.CKhqGBVB.js.map} +1 -1
  121. package/dist/chunks/{input-field-phone-number.eaU9p15A.js → input-field-phone-number.Cailj_71.js} +49 -49
  122. package/dist/chunks/{input-field-phone-number.eaU9p15A.js.map → input-field-phone-number.Cailj_71.js.map} +1 -1
  123. package/dist/chunks/{input-field.CNdqlGw6.js → input-field.DqXVoKpy.js} +15 -14
  124. package/dist/chunks/input-field.DqXVoKpy.js.map +1 -0
  125. package/dist/chunks/{inspector.Bnf0g7QE.js → inspector.BjLhY3bE.js} +3 -3
  126. package/dist/chunks/{inspector.Bnf0g7QE.js.map → inspector.BjLhY3bE.js.map} +1 -1
  127. package/dist/chunks/isSameWeek.CzBCmu7d.js +14 -0
  128. package/dist/chunks/{isSameWeek.DjeUtLwI.js.map → isSameWeek.CzBCmu7d.js.map} +1 -1
  129. package/dist/chunks/{it.DIafuXtH.js → it.BlUnV-yA.js} +3 -3
  130. package/dist/chunks/{it.DIafuXtH.js.map → it.BlUnV-yA.js.map} +1 -1
  131. package/dist/chunks/{ja.Cm9tJMi2.js → ja.nUwDmVf2.js} +8 -8
  132. package/dist/chunks/{ja.Cm9tJMi2.js.map → ja.nUwDmVf2.js.map} +1 -1
  133. package/dist/chunks/{layout-row.Bz-mRqAq.js → layout-row.Da8nkm9z.js} +2 -2
  134. package/dist/chunks/{layout-row.Bz-mRqAq.js.map → layout-row.Da8nkm9z.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.C3ihNg6_.js → listbox-option-tag.CoBUYwFG.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.C3ihNg6_.js.map → listbox-option-tag.CoBUYwFG.js.map} +1 -1
  137. package/dist/chunks/modal-fullscreen.9ZDR_S29.js +301 -0
  138. package/dist/chunks/modal-fullscreen.9ZDR_S29.js.map +1 -0
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js} +4 -4
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map} +1 -1
  141. package/dist/chunks/pagination.CqCd5JCe.js +488 -0
  142. package/dist/chunks/pagination.CqCd5JCe.js.map +1 -0
  143. package/dist/chunks/popover.types.DhALnOLQ.js +6 -0
  144. package/dist/chunks/{popover.types.C_Z2JeVK.js.map → popover.types.DhALnOLQ.js.map} +1 -1
  145. package/dist/chunks/{popper-container.BefZxTzP.js → popper-container.DAK7c9uS.js} +2 -2
  146. package/dist/chunks/{popper-container.BefZxTzP.js.map → popper-container.DAK7c9uS.js.map} +1 -1
  147. package/dist/chunks/{promo-banner.BLie64oS.js → promo-banner.aNwH6uQx.js} +2 -2
  148. package/dist/chunks/{promo-banner.BLie64oS.js.map → promo-banner.aNwH6uQx.js.map} +1 -1
  149. package/dist/chunks/{pt-BR.CiGdfP45.js → pt-BR.BCU2Hj36.js} +2 -2
  150. package/dist/chunks/{pt-BR.CiGdfP45.js.map → pt-BR.BCU2Hj36.js.map} +1 -1
  151. package/dist/chunks/{radio-group.C6nQRQDB.js → radio-group.v8mDVZ-o.js} +24 -23
  152. package/dist/chunks/{radio-group.C6nQRQDB.js.map → radio-group.v8mDVZ-o.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.C39NKgl0.js → rich-text-editor.DH1d5Zcp.js} +7 -6
  154. package/dist/chunks/{rich-text-editor.C39NKgl0.js.map → rich-text-editor.DH1d5Zcp.js.map} +1 -1
  155. package/dist/chunks/{search-bar.CbTrg2Sk.js → search-bar.DGpLNVng.js} +3 -3
  156. package/dist/chunks/{search-bar.CbTrg2Sk.js.map → search-bar.DGpLNVng.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.DTOZQewf.js → secondary-nav.l_60nnXA.js} +3 -3
  158. package/dist/chunks/{secondary-nav.DTOZQewf.js.map → secondary-nav.l_60nnXA.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.D9rHBysM.js → segmented-control.Aqquod8g.js} +2 -2
  160. package/dist/chunks/{segmented-control.D9rHBysM.js.map → segmented-control.Aqquod8g.js.map} +1 -1
  161. package/dist/chunks/{selection-card-group.KEsG0D5V.js → selection-card-group.KBl4fVSH.js} +107 -106
  162. package/dist/chunks/selection-card-group.KBl4fVSH.js.map +1 -0
  163. package/dist/chunks/{sidepanel.DJCagqzl.js → sidepanel.DaXPcTHm.js} +5 -5
  164. package/dist/chunks/{sidepanel.DJCagqzl.js.map → sidepanel.DaXPcTHm.js.map} +1 -1
  165. package/dist/chunks/{startOfWeek.D8Yh4c0G.js → startOfWeek.CXhhX-R7.js} +2 -2
  166. package/dist/chunks/{startOfWeek.D8Yh4c0G.js.map → startOfWeek.CXhhX-R7.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.f1tmHSEN.js → structured-list-item.DAIaUMCY.js} +4 -4
  168. package/dist/chunks/{structured-list-item.f1tmHSEN.js.map → structured-list-item.DAIaUMCY.js.map} +1 -1
  169. package/dist/chunks/{summary-grid.types.COcV-sOB.js → summary-grid.types.BZcZS_dW.js} +5 -5
  170. package/dist/chunks/{summary-grid.types.COcV-sOB.js.map → summary-grid.types.BZcZS_dW.js.map} +1 -1
  171. package/dist/chunks/{tag.Dr7MKe9q.js → tag.CqWg6C3H.js} +2 -2
  172. package/dist/chunks/{tag.Dr7MKe9q.js.map → tag.CqWg6C3H.js.map} +1 -1
  173. package/dist/chunks/{textarea.CtgbUCjH.js → textarea.CvI2InIB.js} +18 -17
  174. package/dist/chunks/textarea.CvI2InIB.js.map +1 -0
  175. package/dist/chunks/{timeline-item.D9nmCe6u.js → timeline-item.BooD99hL.js} +93 -95
  176. package/dist/chunks/timeline-item.BooD99hL.js.map +1 -0
  177. package/dist/chunks/{tooltip.DYpJZ-99.js → tooltip.Lwtlhv3u.js} +2 -2
  178. package/dist/chunks/{tooltip.DYpJZ-99.js.map → tooltip.Lwtlhv3u.js.map} +1 -1
  179. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js} +4 -4
  180. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map} +1 -1
  181. package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js → use-cached-selected-values.C4_X3vVj.js} +2 -2
  182. package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js.map → use-cached-selected-values.C4_X3vVj.js.map} +1 -1
  183. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +1732 -0
  184. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js.map +1 -0
  185. package/dist/chunks/{zh-CN.Bw_6j9Cd.js → zh-CN.ChYkuQAR.js} +3 -3
  186. package/dist/chunks/{zh-CN.Bw_6j9Cd.js.map → zh-CN.ChYkuQAR.js.map} +1 -1
  187. package/dist/code-snippet.js +1 -1
  188. package/dist/dashboard-template.js +1 -1
  189. package/dist/dashed-underline.js +1 -1
  190. package/dist/data-grid-template.js +1 -1
  191. package/dist/data-grid.js +1 -1
  192. package/dist/date-picker.js +2 -2
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/draggable-handle.js +1 -1
  195. package/dist/dropdown.js +4 -4
  196. package/dist/file-uploader.js +1 -1
  197. package/dist/filter-bar.js +1 -1
  198. package/dist/focus-trap.js +1 -1
  199. package/dist/form-layout.js +1 -1
  200. package/dist/header-with-views.js +1 -1
  201. package/dist/header.js +1 -1
  202. package/dist/index.js +50 -50
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +1 -1
  205. package/dist/input-field-password.js +1 -1
  206. package/dist/input-field-phone-number.js +1 -1
  207. package/dist/input-field.js +1 -1
  208. package/dist/inspector.js +1 -1
  209. package/dist/internal.js +11 -11
  210. package/dist/layout.js +1 -1
  211. package/dist/menu.js +1 -1
  212. package/dist/modal-fullscreen.js +1 -1
  213. package/dist/modal.js +2 -2
  214. package/dist/pagination.js +1 -1
  215. package/dist/popover.js +2 -2
  216. package/dist/popper-container.js +1 -1
  217. package/dist/promo-banner.js +1 -1
  218. package/dist/radio-group.js +1 -1
  219. package/dist/rich-text-editor.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/segmented-control.js +1 -1
  223. package/dist/selection-card.js +1 -1
  224. package/dist/sidepanel.js +1 -1
  225. package/dist/structured-list.js +1 -1
  226. package/dist/summary-grid.js +1 -1
  227. package/dist/tag.js +1 -1
  228. package/dist/textarea.js +1 -1
  229. package/dist/timeline.js +1 -1
  230. package/dist/tutorial.js +1 -1
  231. package/dist/web-types.json +1 -1
  232. package/package.json +11 -16
  233. package/dist/chunks/anchor-scroller.CKIQu3NK.js +0 -215
  234. package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +0 -1
  235. package/dist/chunks/button-actions.BH-J7dux.js.map +0 -1
  236. package/dist/chunks/calendar.DzeJoNc2.js.map +0 -1
  237. package/dist/chunks/checkbox-group.Bh_aqKoA.js.map +0 -1
  238. package/dist/chunks/checkbox.7kpOXm-b.js.map +0 -1
  239. package/dist/chunks/constructNow.B8T1ljs6.js +0 -8
  240. package/dist/chunks/controls-group.Dip3WAKV.js.map +0 -1
  241. package/dist/chunks/date-input.XSJuuCHe.js +0 -20
  242. package/dist/chunks/date-input.XSJuuCHe.js.map +0 -1
  243. package/dist/chunks/date-picker.CvTSZhMI.js +0 -250
  244. package/dist/chunks/date-picker.CvTSZhMI.js.map +0 -1
  245. package/dist/chunks/date-range-picker.BPCt7cwj.js +0 -1100
  246. package/dist/chunks/date-range-picker.BPCt7cwj.js.map +0 -1
  247. package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +0 -1
  248. package/dist/chunks/en-US.BZii9jNW.js.map +0 -1
  249. package/dist/chunks/error-message.BYA2_fPV.js +0 -158
  250. package/dist/chunks/error-message.BYA2_fPV.js.map +0 -1
  251. package/dist/chunks/file-uploader.Q2ufNRTY.js.map +0 -1
  252. package/dist/chunks/filter-bar.BVj9YVv-.js.map +0 -1
  253. package/dist/chunks/form-layout-title.DYmTc6M7.js +0 -214
  254. package/dist/chunks/fr-CA.B1aPU8fp.js +0 -48
  255. package/dist/chunks/fr-CA.B1aPU8fp.js.map +0 -1
  256. package/dist/chunks/fr.Dj7wEToe.js +0 -47
  257. package/dist/chunks/fr.Dj7wEToe.js.map +0 -1
  258. package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js +0 -51
  259. package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map +0 -1
  260. package/dist/chunks/header-meta.Bw8ZGwJW.js.map +0 -1
  261. package/dist/chunks/input-field.CNdqlGw6.js.map +0 -1
  262. package/dist/chunks/isSameWeek.DjeUtLwI.js +0 -14
  263. package/dist/chunks/ko.Ceaof6EP.js +0 -348
  264. package/dist/chunks/ko.Ceaof6EP.js.map +0 -1
  265. package/dist/chunks/match.CMBZxEs9.js.map +0 -1
  266. package/dist/chunks/modal-fullscreen.B3AGUJgl.js +0 -289
  267. package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +0 -1
  268. package/dist/chunks/nl.B6vCf2B9.js +0 -327
  269. package/dist/chunks/nl.B6vCf2B9.js.map +0 -1
  270. package/dist/chunks/pagination.lu9nx8j8.js +0 -461
  271. package/dist/chunks/pagination.lu9nx8j8.js.map +0 -1
  272. package/dist/chunks/popover.types.C_Z2JeVK.js +0 -6
  273. package/dist/chunks/selection-card-group.KEsG0D5V.js.map +0 -1
  274. package/dist/chunks/sv.f8EfZjMZ.js +0 -377
  275. package/dist/chunks/sv.f8EfZjMZ.js.map +0 -1
  276. package/dist/chunks/textarea.CtgbUCjH.js.map +0 -1
  277. package/dist/chunks/timeline-item.D9nmCe6u.js.map +0 -1
@@ -0,0 +1,251 @@
1
+ import { ref as u, computed as d, defineComponent as se, toRef as h, watch as x, withDirectives as ue, openBlock as v, createElementBlock as de, withKeys as T, createBlock as g, unref as t, createCommentVNode as I, createElementVNode as ce, createVNode as K, normalizeClass as pe, withCtx as U, createTextVNode as me, toDisplayString as ve, nextTick as fe } from "vue";
2
+ import { g as De, s as L, b as be } from "./calendar.vM3abC8y.js";
3
+ import { h as ye } from "./button-actions.BYBpjNqy.js";
4
+ import { d as ke, B as ge } from "./typography.B3J6_tYk.js";
5
+ import { D as Ie } from "./dropdown-default-textbox.CskseEho.js";
6
+ import { d as Ce } from "./debounce.DUTu11PS.js";
7
+ import { g as C } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as W } from "./index.B875RXHM.js";
9
+ import { u as Be } from "./form-field.D_2g7vaP.js";
10
+ import { u as j, a as Fe } from "./use-date-input-formatter.dtbK-CEy.js";
11
+ import { u as Ee } from "./use-form-layout-loading.CWbjZiwP.js";
12
+ import { B as Oe } from "./directive.rXUeDb8p.js";
13
+ import { F as we, E as $ } from "./error-message.oGiefI2-.js";
14
+ import { _ as Ae } from "./_plugin-vue_export-helper.CHgC5LLL.js";
15
+ import "../assets/date-picker.css";
16
+ const S = {
17
+ "en-US": {
18
+ datePicker: "Date picker",
19
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
20
+ selectDate: "Select a date",
21
+ selectDateRange: "Select a date range",
22
+ selectedDateIsNotAvailable: "Selected date is not available"
23
+ },
24
+ "ja-JP": {
25
+ datePicker: "日付ピッカー",
26
+ provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
27
+ selectDate: "日付を選択",
28
+ selectDateRange: "日付範囲を選択",
29
+ selectedDateIsNotAvailable: "選択した日付は利用できません"
30
+ },
31
+ "pt-BR": {
32
+ datePicker: "Seletor de datas",
33
+ provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD",
34
+ selectDate: "Selecione uma data",
35
+ selectDateRange: "Selecione um intervalo de datas",
36
+ selectedDateIsNotAvailable: "A data selecionada não está disponível"
37
+ }
38
+ }, Pe = ({
39
+ datePickerValue: c,
40
+ isDateIncorrect: B,
41
+ isMonthVariant: n,
42
+ placeholder: a
43
+ }) => {
44
+ var b;
45
+ const { locale: w, t: f } = W({ messages: S }), { formatDate: D } = j(), i = u((b = c.value) == null ? void 0 : b.toDateString());
46
+ return {
47
+ // Values
48
+ dateDisplayValue: d(() => {
49
+ if (B.value)
50
+ return i.value;
51
+ if (!c.value)
52
+ return (a == null ? void 0 : a.value) || f("selectDate");
53
+ const o = n != null && n.value ? { month: "long", year: "numeric" } : { day: "numeric", month: "short", year: "numeric" };
54
+ return De(w.value, o).format(c.value);
55
+ }),
56
+ textInputValue: i,
57
+ // Methods
58
+ formatTextInputDisplayValue: (o = c.value) => {
59
+ if (B.value)
60
+ return;
61
+ if (!o) {
62
+ i.value = "";
63
+ return;
64
+ }
65
+ const F = n != null && n.value ? L(o) : o;
66
+ i.value = D(F);
67
+ }
68
+ };
69
+ }, he = {
70
+ i18n: { messages: S },
71
+ name: "bento-date-picker",
72
+ model: { prop: "modelValue" }
73
+ }, Te = /* @__PURE__ */ se({
74
+ ...he,
75
+ props: {
76
+ defaultDisplayMonth: { default: null },
77
+ firstDayOfWeek: { default: void 0 },
78
+ isDateDisabled: { default: void 0 },
79
+ min: { default: null },
80
+ max: { default: null },
81
+ modelValue: { default: null },
82
+ value: { default: null },
83
+ variant: { default: void 0 },
84
+ description: { default: void 0 },
85
+ disabled: { type: Boolean, default: !1 },
86
+ errorMessage: { default: null },
87
+ label: { default: void 0 },
88
+ optional: { type: Boolean, default: !1 },
89
+ placeholder: { default: null },
90
+ readonly: { type: Boolean, default: !1 },
91
+ required: { type: Boolean, default: !1 },
92
+ tooltipText: { default: null }
93
+ },
94
+ emits: ["update:model-value", "input"],
95
+ setup(c, { emit: B }) {
96
+ const a = c, w = B, { t: f } = W({ messages: S }), D = C("bento-date-picker-container"), i = C("bento-date-picker-label"), M = C("bento-date-picker-description"), A = C("bento-date-picker-error"), b = C("bento-date-picker-date-error"), o = d(() => a.label || f("datePicker", { name: D })), F = u(null), E = u(null), s = u(!1), l = u(!1), R = u(void 0), p = u(a.modelValue), { isReadOnly: z } = Ee(h(a, "readonly")), { emitValue: y } = Be(w), { resolvedFirstDayOfWeek: J } = Fe(h(a, "firstDayOfWeek")), { isFormatValid: V, parseDate: P, onKeyDown: G, autoFormat: H } = j(), Q = d(() => ({
97
+ initialFocus: R.value,
98
+ additionalContainers: [E.value.$el]
99
+ }));
100
+ x(
101
+ () => a.disabled,
102
+ (e) => {
103
+ e && l.value && (l.value = !1);
104
+ }
105
+ ), x(
106
+ [() => a.value, () => a.modelValue],
107
+ ([e, m]) => {
108
+ e && ke(
109
+ 'BentoDatePicker "value" property',
110
+ 'The use of "value" prop in "BentoDatePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
111
+ "2.0.0"
112
+ ), p.value = m ?? e;
113
+ },
114
+ { immediate: !0 }
115
+ );
116
+ const X = d(() => a.variant === "month"), { dateDisplayValue: Z, textInputValue: r, formatTextInputDisplayValue: N } = Pe({
117
+ datePickerValue: p,
118
+ isDateIncorrect: s,
119
+ isMonthVariant: X,
120
+ placeholder: h(a, "placeholder")
121
+ }), k = d(() => a.isDateDisabled && r.value && V(r.value) && a.isDateDisabled(P(r.value)) && !l.value ? f("selectedDateIsNotAvailable") : s.value ? f("provideDateInAFormat") : null), ee = d(() => ({
122
+ "b-date-picker__description--error": a.errorMessage || k.value
123
+ })), ae = d(
124
+ () => `${a.description ? M : ""} ${a.errorMessage ? A : ""} ${k.value ? b : ""}`.trim() || null
125
+ ), te = (e) => a.min && e <= a.min || a.max && e >= a.max ? !1 : a.isDateDisabled ? !a.isDateDisabled(e) : !0, O = () => {
126
+ l.value = !1;
127
+ }, _ = () => {
128
+ l.value = !0, N();
129
+ }, le = (e) => {
130
+ s.value = !1, O(), y(e);
131
+ }, oe = async () => {
132
+ s.value && (s.value = !1, r.value = null), y(null);
133
+ }, re = (e) => {
134
+ G(e);
135
+ }, Y = (e) => {
136
+ if (e.length < 10)
137
+ return;
138
+ V(e) && te(P(e)) ? (s.value = !1, y(P(e))) : e && (s.value = !0, y(null));
139
+ }, ne = Ce(Y, 1e3), ie = (e) => {
140
+ r.value = H(e), l.value ? ne(r.value) : Y(r.value);
141
+ }, q = async (e) => {
142
+ var m;
143
+ l.value || (e.preventDefault(), _(), await fe(), p.value || (N(/* @__PURE__ */ new Date()), y(/* @__PURE__ */ new Date())), R.value = ((m = F.value) == null ? void 0 : m.$refs.calendarRef[0].focusOnDate(
144
+ a.variant === "month" ? L(p.value) : p.value,
145
+ !0
146
+ )) ?? void 0);
147
+ };
148
+ return (e, m) => ue((v(), de("div", {
149
+ class: "b-date-picker",
150
+ onKeydownCapture: [
151
+ T(q, ["space"]),
152
+ T(q, ["enter"])
153
+ ]
154
+ }, [
155
+ e.label ? (v(), g(t(we), {
156
+ key: 0,
157
+ id: t(i),
158
+ label: e.label,
159
+ "tooltip-text": e.tooltipText,
160
+ optional: e.optional,
161
+ required: e.required
162
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : I("", !0),
163
+ ce("div", null, [
164
+ K(t(Ie), {
165
+ ref_key: "inputContainerRef",
166
+ ref: E,
167
+ "always-combobox-is-input": "",
168
+ ariaControls: t(D),
169
+ ariaExpanded: l.value,
170
+ "aria-labelledby": e.label ? t(i) : null,
171
+ "aria-label": e.label ? null : o.value,
172
+ "aria-describedby": ae.value,
173
+ "aria-required": e.required,
174
+ disabled: e.disabled,
175
+ "dynamic-filtering": "",
176
+ "is-invalid": !!e.errorMessage || !!k.value,
177
+ open: l.value,
178
+ value: t(r),
179
+ "display-value": t(Z),
180
+ "debounce-time": 0,
181
+ readonly: t(z),
182
+ onInput: ie,
183
+ onOpen: _,
184
+ onKeydown: re,
185
+ onClear: oe,
186
+ onClose: O
187
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-label", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "value", "display-value", "readonly"])
188
+ ]),
189
+ k.value ? (v(), g(t($), {
190
+ key: 1,
191
+ id: t(b),
192
+ "error-message": k.value,
193
+ class: "b-date-picker__error-message"
194
+ }, null, 8, ["id", "error-message"])) : I("", !0),
195
+ e.errorMessage ? (v(), g(t($), {
196
+ key: 2,
197
+ id: t(A),
198
+ "error-message": e.errorMessage,
199
+ class: "b-date-picker__error-message"
200
+ }, null, 8, ["id", "error-message"])) : I("", !0),
201
+ e.description ? (v(), g(t(ge), {
202
+ key: 3,
203
+ class: pe(["b-date-picker__description", ee.value]),
204
+ el: "span"
205
+ }, {
206
+ default: U(() => [
207
+ me(ve(e.description), 1)
208
+ ]),
209
+ _: 1
210
+ }, 8, ["class"])) : I("", !0),
211
+ E.value ? (v(), g(t(ye), {
212
+ key: 4,
213
+ id: t(D),
214
+ class: "b-date-picker__container",
215
+ role: "dialog",
216
+ open: l.value,
217
+ "target-element": E.value,
218
+ "aria-label": o.value,
219
+ "aria-modal": !0,
220
+ position: "bottom-start",
221
+ "fit-content": "",
222
+ "trap-all": "",
223
+ "trap-all-options": Q.value,
224
+ onKeydown: T(O, ["esc", "native"])
225
+ }, {
226
+ default: U(() => [
227
+ K(t(be), {
228
+ ref_key: "calendarContainerRef",
229
+ ref: F,
230
+ "default-display-month": e.defaultDisplayMonth,
231
+ "first-day-of-week": t(J),
232
+ "is-date-disabled": e.isDateDisabled,
233
+ "number-of-months": 1,
234
+ value: p.value,
235
+ min: e.min,
236
+ max: e.max,
237
+ variant: e.variant,
238
+ onInput: le
239
+ }, null, 8, ["default-display-month", "first-day-of-week", "is-date-disabled", "value", "min", "max", "variant"])
240
+ ]),
241
+ _: 1
242
+ }, 8, ["id", "open", "target-element", "aria-label", "trap-all-options"])) : I("", !0)
243
+ ], 32)), [
244
+ [t(Oe), O]
245
+ ]);
246
+ }
247
+ }), je = /* @__PURE__ */ Ae(Te, [["__scopeId", "data-v-2e9461af"]]);
248
+ export {
249
+ je as B
250
+ };
251
+ //# sourceMappingURL=date-picker.D5B_SECc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.D5B_SECc.js","sources":["../../../vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../../../vue2/src/components/date-picker/date-picker.vue"],"sourcesContent":["import { computed, ref } from 'vue';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { type UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { startOfMonth } from 'date-fns/startOfMonth';\nimport { getDateTimeFormatter } from '@/utils/ts/format-date/format-date';\nimport { useDateInputFormatter } from '@/composables/use-date-input-formatter/use-date-input-formatter';\nimport messages from '../messages.json';\n\ntype MessageSchema = (typeof messages)['en-US'];\n\n/**\n * Composable that sets and formats the date to be displayed in the input box of a Single Date Picker\n * @param option.datePickerValue Ref to the datePickerValue set in the DatePicker component\n * @param option.isDateIncorrect Indicates if the date is correct or not\n * @param option.isMonthVariant Indicates if the date picker has variant \"month\"\n */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({\n datePickerValue,\n isDateIncorrect,\n isMonthVariant,\n placeholder,\n}) => {\n const { locale, t } = useI18n<{ message: MessageSchema }>({ messages });\n const { formatDate } = useDateInputFormatter();\n\n const textInputValue = ref(datePickerValue.value?.toDateString());\n\n const dateDisplayValue = computed(() => {\n // Display incorrect date when there's an error with the input\n if (isDateIncorrect.value) {\n return textInputValue.value;\n }\n\n // Display \"Select a date\" when there's no date selected or input\n if (!datePickerValue.value) {\n return placeholder?.value || (t('selectDate') as string);\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" or \"MMMM yyyy (June 2023)\"\n // if there's a valid date selected\n const dateFormatOptions: Intl.DateTimeFormatOptions = isMonthVariant?.value\n ? { month: 'long', year: 'numeric' }\n : { day: 'numeric', month: 'short', year: 'numeric' };\n\n return getDateTimeFormatter(locale.value, dateFormatOptions).format(datePickerValue.value);\n });\n\n /**\n * Formats the \"dateToFormat\" date value with the current format and sets it as \"formatTextInputDisplayValue\" value\n * @param dateToFormat - Date to be assigned and formatted\n */\n const formatTextInputDisplayValue = (dateToFormat: Date = datePickerValue.value) => {\n // If date is incorrect, leave the textInputValue intact\n if (isDateIncorrect.value) {\n return;\n }\n\n if (!dateToFormat) {\n textInputValue.value = '';\n return;\n }\n\n const date = isMonthVariant?.value ? startOfMonth(dateToFormat) : dateToFormat;\n textInputValue.value = formatDate(date);\n };\n\n return {\n // Values\n dateDisplayValue,\n textInputValue,\n\n // Methods\n formatTextInputDisplayValue,\n };\n};\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div\n v-bento-click-outside-directive=\"closeDatePicker\"\n class=\"b-date-picker\"\n @keydown.space.capture=\"onSpaceBarOrEnter\"\n @keydown.enter.capture=\"onSpaceBarOrEnter\"\n >\n <!-- Label -->\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n\n <!-- Input -->\n <div>\n <dropdown-input-default\n ref=\"inputContainerRef\"\n always-combobox-is-input\n :ariaControls=\"datePickerContainerId\"\n :ariaExpanded=\"isDatePickerOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-label=\"label ? null : popoverAriaLabel\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-required=\"required\"\n :disabled=\"disabled\"\n dynamic-filtering\n :is-invalid=\"!!errorMessage || !!dateErrorText\"\n :open=\"isDatePickerOpen\"\n :value=\"textInputValue\"\n :display-value=\"dateDisplayValue\"\n :debounce-time=\"0\"\n :readonly=\"isReadOnly\"\n @input=\"onDateInputChange\"\n @open=\"openDatePicker\"\n @keydown=\"onDateKeyDown\"\n @clear=\"clearDatePickerValue\"\n @close=\"closeDatePicker\"\n />\n </div>\n\n <!-- Error Messages -->\n <error-message\n v-if=\"dateErrorText\"\n :id=\"dateErrorId\"\n :error-message=\"dateErrorText\"\n class=\"b-date-picker__error-message\"\n />\n <error-message\n v-if=\"errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-date-picker__error-message\"\n />\n\n <!-- Description -->\n <bento-typography\n v-if=\"description\"\n class=\"b-date-picker__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n {{ description }}\n </bento-typography>\n\n <!-- Calendar container -->\n <bento-popover\n v-if=\"inputContainerRef\"\n :id=\"datePickerContainerId\"\n class=\"b-date-picker__container\"\n role=\"dialog\"\n :open=\"isDatePickerOpen\"\n :target-element=\"inputContainerRef\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n position=\"bottom-start\"\n fit-content\n trap-all\n :trap-all-options=\"computedTrapAllOptions\"\n @keydown.esc.native=\"closeDatePicker\"\n >\n <calendar\n ref=\"calendarContainerRef\"\n :default-display-month=\"defaultDisplayMonth\"\n :first-day-of-week=\"resolvedFirstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"internalModelValue\"\n :min=\"min\"\n :max=\"max\"\n :variant=\"variant\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, ref, toRef, watch } from 'vue';\n import { startOfMonth } from 'date-fns/startOfMonth';\n\n // Components\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '../typography';\n import { Calendar, type CalendarSingleDateValue, ErrorMessage, FieldLabel } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n\n // Utils\n import { debounce } from '@/utils/ts/debounce';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n // Composables\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { useDateInputFormatter, useFirstDayOfWeek, useFormLayoutFieldLoading } from '@/composables';\n\n // Directive\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives';\n\n // Types\n import { type BentoDatePickerEmits, type BentoDatePickerProps } from './date-picker.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const DEBOUNCE_TIME = 1000;\n\n const props = withDefaults(defineProps<BentoDatePickerProps>(), {\n defaultDisplayMonth: null,\n description: undefined,\n disabled: false,\n errorMessage: null,\n firstDayOfWeek: undefined,\n isDateDisabled: undefined,\n label: undefined,\n max: null,\n min: null,\n modelValue: null,\n optional: false,\n placeholder: null,\n readonly: false,\n required: false,\n tooltipText: null,\n value: null,\n variant: undefined, // Default will be set by @/internal/calendar\n });\n\n const emit = defineEmits<BentoDatePickerEmits>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const datePickerContainerId = generateUid('bento-date-picker-container');\n const labelId = generateUid('bento-date-picker-label');\n const descriptionId = generateUid('bento-date-picker-description');\n const errorId = generateUid('bento-date-picker-error');\n const dateErrorId = generateUid('bento-date-picker-date-error');\n const popoverAriaLabel = computed(() => props.label || t('datePicker', { name: datePickerContainerId }));\n\n // Refs\n const calendarContainerRef = ref(null);\n const inputContainerRef = ref(null);\n\n // Values\n const isDateIncorrect = ref(false);\n const isDatePickerOpen = ref(false);\n const initialFocusOnDatePickerOpen = ref(undefined);\n const internalModelValue = ref<CalendarSingleDateValue | null>(props.modelValue); // to be removed when `props.value` is removed\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const { emitValue } = useFormFieldEmits<CalendarSingleDateValue>(emit);\n const { resolvedFirstDayOfWeek } = useFirstDayOfWeek(toRef(props, 'firstDayOfWeek'));\n const { isFormatValid, parseDate, onKeyDown, autoFormat } = useDateInputFormatter();\n\n const computedTrapAllOptions = computed(() => ({\n initialFocus: initialFocusOnDatePickerOpen.value,\n additionalContainers: [inputContainerRef.value.$el],\n }));\n\n watch(\n () => props.disabled,\n disabled => {\n // Close date picker popover if it's opened when it's disabled\n if (disabled && isDatePickerOpen.value) {\n isDatePickerOpen.value = false;\n }\n }\n );\n\n watch(\n [() => props.value, () => props.modelValue],\n ([newValue, newModelValue]) => {\n if (newValue) {\n deprecate(\n 'BentoDatePicker \"value\" property',\n `The use of \"value\" prop in \"BentoDatePicker\" is no longer supported. Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n\n internalModelValue.value = newModelValue ?? newValue;\n },\n { immediate: true }\n );\n\n const isMonthVariant = computed(() => props.variant === 'month');\n\n const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: internalModelValue,\n isDateIncorrect,\n isMonthVariant,\n placeholder: toRef(props, 'placeholder'),\n });\n\n const dateErrorText = computed(() => {\n if (\n props.isDateDisabled &&\n textInputValue.value &&\n isFormatValid(textInputValue.value) &&\n props.isDateDisabled(parseDate(textInputValue.value)) &&\n !isDatePickerOpen.value\n ) {\n return t('selectedDateIsNotAvailable');\n }\n\n return isDateIncorrect.value ? t('provideDateInAFormat') : null;\n });\n\n const descriptionConditionalClasses = computed(() => ({\n 'b-date-picker__description--error': props.errorMessage || dateErrorText.value,\n }));\n\n const ariaDescribedBy = computed(\n () =>\n `${props.description ? descriptionId : ''} ${props.errorMessage ? errorId : ''} ${\n dateErrorText.value ? dateErrorId : ''\n }`.trim() || null\n );\n\n const isDateEnabled = (date: Date) => {\n // Check if date is between min/max bounds, if there are any\n if ((props.min && date <= props.min) || (props.max && date >= props.max)) {\n return false;\n }\n\n // Check if function is set, otherwise all dates are enabled\n if (props.isDateDisabled) {\n return !props.isDateDisabled(date);\n }\n\n return true;\n };\n\n const closeDatePicker = () => {\n isDatePickerOpen.value = false;\n };\n\n const openDatePicker = () => {\n isDatePickerOpen.value = true;\n\n formatTextInputDisplayValue();\n };\n\n const onDateSelected = (selectedDate: Date) => {\n // Reset the error state when a valid date is selected\n isDateIncorrect.value = false;\n\n closeDatePicker();\n emitValue(selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (isDateIncorrect.value) {\n isDateIncorrect.value = false;\n textInputValue.value = null;\n }\n emitValue(null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n onKeyDown(event);\n };\n\n const validateDate = (stringDate: string) => {\n // Validate only if the date is complete\n if (stringDate.length < 10) {\n return;\n }\n\n const isValidDate = isFormatValid(stringDate) && isDateEnabled(parseDate(stringDate));\n if (isValidDate) {\n isDateIncorrect.value = false;\n emitValue(parseDate(stringDate));\n } else if (stringDate) {\n // Only set to true if the value exists (not null/undefined)\n isDateIncorrect.value = true;\n emitValue(null);\n }\n };\n\n const validateDateDebounced = debounce(validateDate, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = autoFormat(stringDate);\n // If we are closing the date picker, we should validate (and emit date inputs) immediately so the user doesn't have to wait for the debounce time.\n if (isDatePickerOpen.value) {\n validateDateDebounced(textInputValue.value);\n } else {\n validateDate(textInputValue.value);\n }\n };\n\n /**\n * Space bar and Enter keyDown event handler.\n *\n * * Opens the date picker dialog on the first keydown.\n * * Move focus to selected date, i.e., the date displayed in the date input text field. If no date has been selected, places focus on the current date.\n * @param {KeyboardEvent} event Event being triggered\n */\n const onSpaceBarOrEnter = async (event: KeyboardEvent) => {\n if (isDatePickerOpen.value) {\n return;\n }\n event.preventDefault();\n\n openDatePicker();\n\n // Wait for the date picker dialog to open\n await nextTick();\n\n // Set current date (today) if no date is selected\n if (!internalModelValue.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emitValue(new Date());\n }\n\n // Set initial focus\n initialFocusOnDatePickerOpen.value =\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(\n props.variant === 'month' ? startOfMonth(internalModelValue.value) : internalModelValue.value,\n true\n ) ?? undefined;\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Date picker selector.\n *\n * @example\n * import { BentoDatePicker } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDatePicker },\n * template: `\n * <bento-date-picker\n * label=\"Label\"\n * description=\"Supporting text\"\n * required\n * optional\n * disabled\n * @input=\"onDateChanged\"\n * v-model=\"selectedDate\"\n * />\n * `,\n * setup() {\n * const selectedDate = ref(new Date()); // reactive({ startDate: new Date(), endDate: new Date() })\n * return {\n * selectedDate,\n * }\n * }\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-date-picker',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["useDatePickerSingleCalendarText","datePickerValue","isDateIncorrect","isMonthVariant","placeholder","locale","t","useI18n","messages","formatDate","useDateInputFormatter","textInputValue","ref","_a","computed","dateFormatOptions","getDateTimeFormatter","dateToFormat","date","startOfMonth","__default__","props","__props","emit","__emit","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","calendarContainerRef","inputContainerRef","isDatePickerOpen","initialFocusOnDatePickerOpen","internalModelValue","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","resolvedFirstDayOfWeek","useFirstDayOfWeek","isFormatValid","parseDate","onKeyDown","autoFormat","computedTrapAllOptions","watch","disabled","newValue","newModelValue","deprecate","dateDisplayValue","formatTextInputDisplayValue","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDate","stringDate","validateDateDebounced","debounce","onDateInputChange","onSpaceBarOrEnter","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBOA,KAAA,CAAA;AAAA,EAAmE,iBAAAC;AAAA,EACtE,iBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAEJ,MAAA;;AACI,QAAA,EAAA,QAAAC,GAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAC,EAAA,CAAA,GACA,EAAA,YAAAC,EAAA,IAAAC,EAAA,GAEAC,IAAAC,GAAAC,IAAAZ,EAAA,UAAA,gBAAAY,EAAA,cAAA;AAyCA,SAAA;AAAA;AAAA,IAAO,kBAvCPC,EAAA,MAAA;AAEI,UAAAZ,EAAA;AACI,eAAAS,EAAA;AAIJ,UAAA,CAAAV,EAAA;AACI,gBAAAG,KAAA,gBAAAA,EAAA,UAAAE,EAAA,YAAA;AAKJ,YAAAS,IAAAZ,KAAA,QAAAA,EAAA,QAAA,EAA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