@adyen/bento-vue2 1.94.0 → 1.95.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 (262) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +296 -126
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/dashed-underline.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/date-time-picker.css +1 -0
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/form-layout-group.css +1 -0
  21. package/dist/assets/form-layout-title.css +1 -1
  22. package/dist/assets/header-meta.css +1 -1
  23. package/dist/assets/input-field.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/link.css +1 -1
  26. package/dist/assets/modal-fullscreen.css +1 -1
  27. package/dist/assets/navigation-menu-group.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
  34. package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
  35. package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
  36. package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
  37. package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
  38. package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
  39. package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
  40. package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
  41. package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
  42. package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
  43. package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
  44. package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
  45. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
  46. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
  47. package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
  48. package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
  49. package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
  50. package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
  51. package/dist/chunks/{calendar.CCUVI1IF.js → calendar.ofn3G6eW.js} +19 -19
  52. package/dist/chunks/{calendar.CCUVI1IF.js.map → calendar.ofn3G6eW.js.map} +1 -1
  53. package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
  54. package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
  56. package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
  57. package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
  58. package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
  59. package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.B3iCsNmb.js} +5 -5
  60. package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.B3iCsNmb.js.map} +1 -1
  61. package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
  62. package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
  63. package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
  64. package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
  65. package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.HFJcf8-_.js} +4 -4
  66. package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.HFJcf8-_.js.map} +1 -1
  67. package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
  68. package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
  69. package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BjfPUEoH.js} +4 -4
  70. package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BjfPUEoH.js.map} +1 -1
  71. package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Cua2Jxvq.js} +212 -212
  72. package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Cua2Jxvq.js.map} +1 -1
  73. package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.CYDTf6De.js} +90 -82
  74. package/dist/chunks/date-picker.CYDTf6De.js.map +1 -0
  75. package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.DGGvwRfn.js} +252 -271
  76. package/dist/chunks/date-range-picker.DGGvwRfn.js.map +1 -0
  77. package/dist/chunks/date-time-picker.CyNb-xDm.js +129 -0
  78. package/dist/chunks/date-time-picker.CyNb-xDm.js.map +1 -0
  79. package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
  80. package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
  81. package/dist/chunks/directive.BBWhsNtO.js +28 -0
  82. package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
  83. package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.CU1L7J87.js} +3 -3
  84. package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.CU1L7J87.js.map} +1 -1
  85. package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
  86. package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
  87. package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.C1qg52L9.js} +3 -3
  88. package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.C1qg52L9.js.map} +1 -1
  89. package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.BEurqT8m.js} +323 -323
  90. package/dist/chunks/dropdown.BEurqT8m.js.map +1 -0
  91. package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
  92. package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
  93. package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
  94. package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
  95. package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
  96. package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
  97. package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.gjMPoK6d.js} +19 -19
  98. package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.gjMPoK6d.js.map} +1 -1
  99. package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
  100. package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
  101. package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
  102. package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
  103. package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
  104. package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
  105. package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
  106. package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
  107. package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
  108. package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
  109. package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
  110. package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.B2Ok5KI1.js} +11 -11
  112. package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.B2Ok5KI1.js.map} +1 -1
  113. package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
  114. package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
  115. package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
  116. package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
  117. package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
  118. package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
  119. package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.viF49CQh.js} +20 -21
  120. package/dist/chunks/{input-field-password.C2ogXvbh.js.map → input-field-password.viF49CQh.js.map} +1 -1
  121. package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DnpTj7q5.js} +13 -14
  122. package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DnpTj7q5.js.map} +1 -1
  123. package/dist/chunks/{input-field.CRsU2NBh.js → input-field.D86PSAiu.js} +77 -74
  124. package/dist/chunks/input-field.D86PSAiu.js.map +1 -0
  125. package/dist/chunks/{input-time.BSrSAN3r.js → input-time.LyKZXnVO.js} +7 -8
  126. package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.LyKZXnVO.js.map} +1 -1
  127. package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
  128. package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
  129. package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
  130. package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
  131. package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
  132. package/dist/chunks/link.BpuCRgok.js.map +1 -0
  133. package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
  134. package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
  137. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
  138. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
  139. package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
  140. package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
  141. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
  142. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
  143. package/dist/chunks/{pagination.Jv60K59y.js → pagination.CJ3d1O_s.js} +3 -3
  144. package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.CJ3d1O_s.js.map} +1 -1
  145. package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
  146. package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
  147. package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
  148. package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
  149. package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
  150. package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
  151. package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
  152. package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
  154. package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
  155. package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.BvHhXdNu.js} +10 -11
  156. package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.BvHhXdNu.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.BLF9iQOV.js → secondary-nav.BvbT8LXa.js} +5 -5
  158. package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.BvbT8LXa.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
  160. package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
  161. package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
  162. package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
  163. package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
  164. package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
  165. package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
  166. package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
  168. package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
  169. package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
  170. package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
  171. package/dist/chunks/{tab.t1v1GxSA.js → tab.YQXssvyU.js} +3 -3
  172. package/dist/chunks/{tab.t1v1GxSA.js.map → tab.YQXssvyU.js.map} +1 -1
  173. package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
  174. package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
  175. package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
  176. package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
  177. package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
  178. package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
  179. package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
  180. package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
  181. package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
  182. package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
  183. package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
  184. package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
  185. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
  186. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
  187. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.txnml8sE.js} +3 -3
  188. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.txnml8sE.js.map} +1 -1
  189. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.D7Ud6Ana.js} +2 -2
  190. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.D7Ud6Ana.js.map} +1 -1
  191. package/dist/code-snippet.js +1 -1
  192. package/dist/dashboard-template.js +1 -1
  193. package/dist/dashed-underline.js +1 -1
  194. package/dist/data-grid-template.js +1 -1
  195. package/dist/data-grid.js +1 -1
  196. package/dist/date-picker.js +2 -2
  197. package/dist/date-range-picker.js +2 -2
  198. package/dist/date-time-picker.js +5 -0
  199. package/dist/date-time-picker.js.map +1 -0
  200. package/dist/draggable.js +1 -1
  201. package/dist/drawer.js +1 -1
  202. package/dist/dropdown.js +3 -3
  203. package/dist/empty-state.js +1 -1
  204. package/dist/file-uploader.js +1 -1
  205. package/dist/filter-bar.js +1 -1
  206. package/dist/focus-trap.js +1 -1
  207. package/dist/form-layout.js +5 -4
  208. package/dist/form-layout.js.map +1 -1
  209. package/dist/header-with-views.js +1 -1
  210. package/dist/header.js +1 -1
  211. package/dist/index.js +273 -268
  212. package/dist/index.js.map +1 -1
  213. package/dist/info-icon.js +1 -1
  214. package/dist/input-field-password.js +1 -1
  215. package/dist/input-field-phone-number.js +1 -1
  216. package/dist/input-field.js +1 -1
  217. package/dist/input-time.js +1 -1
  218. package/dist/inspector.js +1 -1
  219. package/dist/internal.js +12 -12
  220. package/dist/layout.js +1 -1
  221. package/dist/link.js +1 -1
  222. package/dist/list.js +1 -1
  223. package/dist/menu.js +1 -1
  224. package/dist/modal-fullscreen.js +1 -1
  225. package/dist/modal.js +2 -2
  226. package/dist/navigation-menu.js +1 -1
  227. package/dist/pagination.js +1 -1
  228. package/dist/popover.js +2 -2
  229. package/dist/popper-container.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/rich-text-editor.js +1 -1
  233. package/dist/search-bar.js +2 -2
  234. package/dist/secondary-nav.js +1 -1
  235. package/dist/segmented-control.js +1 -1
  236. package/dist/selection-card.js +1 -1
  237. package/dist/sidepanel.js +1 -1
  238. package/dist/structured-list.js +1 -1
  239. package/dist/summary-grid.js +1 -1
  240. package/dist/tabs.js +1 -1
  241. package/dist/tag.js +1 -1
  242. package/dist/textarea.js +1 -1
  243. package/dist/timeline.js +1 -1
  244. package/dist/toast.js +1 -1
  245. package/dist/tutorial.js +1 -1
  246. package/dist/web-types.json +160 -3
  247. package/package.json +7 -7
  248. package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
  249. package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
  250. package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
  251. package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
  252. package/dist/chunks/directive.Bfr4fuOy.js +0 -23
  253. package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
  254. package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
  255. package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
  256. package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
  257. package/dist/chunks/header-meta._l0IV3jf.js +0 -248
  258. package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
  259. package/dist/chunks/link.DB5g6d48.js.map +0 -1
  260. package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
  261. package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
  262. package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
@@ -1,23 +1,23 @@
1
- import { ref as v, computed as o, defineComponent as te, toRef as O, watch as V, nextTick as re } from "vue";
2
- import { g as le, s as L, b as oe, e as ne, f as ie, p as se } from "./calendar.CCUVI1IF.js";
3
- import { h as de } from "./button-actions.CyMKvVwN.js";
4
- import { d as ce, B as ue } from "./typography.C8lPlsbD.js";
5
- import { D as pe } from "./dropdown.Dx0HybJ8.js";
6
- import { B as fe } from "./input-field.CRsU2NBh.js";
7
- import { d as De } from "./use-cached-selected-values.Bnmcr7Ji.js";
8
- import { g as k } from "./generate-uid.NJ8tVoha.js";
9
- import { u as z } from "./index.B6WW_F-J.js";
10
- import { u as me } from "./form-field.D_2g7vaP.js";
11
- import { u as q, a as ve } from "./use-date-input-formatter.BsZ_LLQu.js";
12
- import { u as be } from "./use-form-layout-loading.CWbjZiwP.js";
1
+ import { ref as f, computed as i, defineComponent as re, toRef as B, watch as E, nextTick as le } from "vue";
2
+ import { g as oe, f as z, b as ne, h as ie, i as se, p as de } from "./calendar.ofn3G6eW.js";
3
+ import { h as ce } from "./button-actions.D1jRC1fs.js";
4
+ import { d as ue, B as pe } from "./typography.C8lPlsbD.js";
5
+ import { D as De } from "./dropdown.BEurqT8m.js";
6
+ import { B as me } from "./input-field.D86PSAiu.js";
7
+ import { d as fe } from "./use-cached-selected-values.txnml8sE.js";
8
+ import { g as y } from "./generate-uid.NJ8tVoha.js";
9
+ import { u as q } from "./index.B6WW_F-J.js";
10
+ import { u as ve } from "./form-field.D_2g7vaP.js";
11
+ import { u as W, a as be } from "./use-date-input-formatter.D7Ud6Ana.js";
12
+ import { u as ye } from "./use-form-layout-loading.CWbjZiwP.js";
13
13
  import "./index.Cl4_42j5.js";
14
- import { u as ye } from "./use-touch-device.DTqFAbXh.js";
15
- import { B as ke } from "./directive.Bfr4fuOy.js";
16
- import { F as Ie } from "./field-label.Cq01oVR-.js";
17
- import { E as ge } from "./error-message.CyERcfdt.js";
18
- import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
14
+ import { u as ke } from "./use-touch-device.DTqFAbXh.js";
15
+ import { B as Ie } from "./directive.BBWhsNtO.js";
16
+ import { F as ge } from "./field-label.CdVbAfK-.js";
17
+ import { E as Ae } from "./error-message.CyERcfdt.js";
18
+ import { n as _e } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
19
19
  import "../assets/date-picker.css";
20
- const _e = {
20
+ const he = {
21
21
  "de-DE": {
22
22
  datePicker: "Datumsauswahl",
23
23
  provideDateInAFormat: "Geben Sie das Datum im Format YYYY-MM-DD an",
@@ -89,42 +89,42 @@ const _e = {
89
89
  selectedDateIsNotAvailable: "所选日期不可用"
90
90
  }
91
91
  }, Se = ({
92
- datePickerValue: f,
93
- isDateIncorrect: a,
92
+ datePickerValue: p,
93
+ dateError: a,
94
94
  isMonthVariant: t,
95
95
  placeholder: e
96
96
  }) => {
97
- var I;
98
- const { locale: n, t: D } = z(), { formatDate: b } = q(), l = v((I = f.value) == null ? void 0 : I.toDateString());
97
+ var k;
98
+ const { locale: d, t: D } = q(), { formatDate: v } = W(), l = f((k = p.value) == null ? void 0 : k.toDateString());
99
99
  return {
100
100
  // Values
101
- dateDisplayValue: o(() => {
101
+ dateDisplayValue: i(() => {
102
102
  if (a.value)
103
103
  return l.value;
104
- if (!f.value)
104
+ if (!p.value)
105
105
  return (e == null ? void 0 : e.value) || D("selectDate");
106
- const s = t != null && t.value ? { month: "long", year: "numeric" } : { day: "numeric", month: "short", year: "numeric" };
107
- return le(n.value, s).format(f.value);
106
+ const c = t != null && t.value ? { month: "long", year: "numeric" } : { day: "numeric", month: "short", year: "numeric" };
107
+ return oe(d.value, c).format(p.value);
108
108
  }),
109
109
  textInputValue: l,
110
110
  // Methods
111
- formatTextInputDisplayValue: (s = f.value) => {
111
+ formatTextInputDisplayValue: (c = p.value) => {
112
112
  if (a.value)
113
113
  return;
114
- if (!s) {
114
+ if (!c) {
115
115
  l.value = "";
116
116
  return;
117
117
  }
118
- const g = t != null && t.value ? L(s) : s;
119
- l.value = b(g);
118
+ const I = t != null && t.value ? z(c) : c;
119
+ l.value = v(I);
120
120
  }
121
121
  };
122
- }, he = {
123
- i18n: { messages: _e },
122
+ }, Pe = {
123
+ i18n: { messages: he },
124
124
  name: "bento-date-picker",
125
125
  model: { prop: "modelValue" }
126
- }, Pe = /* @__PURE__ */ te({
127
- ...he,
126
+ }, Ce = /* @__PURE__ */ re({
127
+ ...Pe,
128
128
  props: {
129
129
  description: { default: void 0 },
130
130
  disabled: { type: Boolean, default: !1 },
@@ -145,93 +145,101 @@ const _e = {
145
145
  variant: { default: void 0 }
146
146
  },
147
147
  emits: ["update:model-value", "input"],
148
- setup(f, { emit: a }) {
149
- const t = f, e = 1e3, { t: n } = z(), D = k("bento-date-picker-container"), b = k("bento-date-picker-label"), l = k("bento-date-picker-description"), S = k("bento-date-picker-error"), h = k("bento-date-picker-date-error"), I = o(() => t.label || n("datePicker", { name: D })), s = v(null), g = v(null), d = v(!1), c = v(!1), P = v(void 0), m = v(t.modelValue), { isReadOnly: W } = be(O(t, "readonly")), { emitValue: i } = me(a), { resolvedFirstDayOfWeek: G } = ve(O(t, "firstDayOfWeek")), { isFormatValid: C, parseDate: y, onKeyDown: B, autoFormat: E } = q(), { isTouchDevice: R } = ye(), U = o(() => ({
148
+ setup(p, { emit: a }) {
149
+ const t = p, e = 1e3, { t: d } = q(), D = y("bento-date-picker-container"), v = y("bento-date-picker-label"), l = y("bento-date-picker-description"), h = y("bento-date-picker-error"), S = y("bento-date-picker-date-error"), k = i(() => t.label || d("datePicker", { name: D })), c = f(null), I = f(null), n = f(null), u = f(!1), P = f(void 0), m = f(t.modelValue), { isReadOnly: G } = ye(B(t, "readonly")), { emitValue: s } = ve(a), { resolvedFirstDayOfWeek: K } = be(B(t, "firstDayOfWeek")), { isFormatValid: C, parseDate: g, onKeyDown: R, autoFormat: T } = W(), { isTouchDevice: N } = ke(), U = i(() => ({
150
150
  initialFocus: P.value,
151
- additionalContainers: [g.value.$el]
151
+ additionalContainers: [I.value.$el]
152
152
  }));
153
- V(
153
+ E(
154
154
  () => t.disabled,
155
155
  (r) => {
156
- r && c.value && (c.value = !1);
156
+ r && u.value && (u.value = !1);
157
157
  }
158
- ), V(
158
+ ), E(
159
159
  [() => t.value, () => t.modelValue],
160
- ([r, p]) => {
161
- r && ce(
160
+ ([r, o]) => {
161
+ r && ue(
162
162
  'BentoDatePicker "value" property',
163
163
  'The use of "value" prop in "BentoDatePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
164
164
  "2.0.0"
165
- ), m.value = p ?? r;
165
+ ), m.value = o ?? r;
166
166
  },
167
167
  { immediate: !0 }
168
168
  );
169
- const A = o(() => t.variant === "month"), { dateDisplayValue: J, textInputValue: u, formatTextInputDisplayValue: M } = Se({
169
+ const A = i(() => t.variant === "month"), { dateDisplayValue: J, textInputValue: b, formatTextInputDisplayValue: M } = Se({
170
170
  datePickerValue: m,
171
- isDateIncorrect: d,
171
+ dateError: n,
172
172
  isMonthVariant: A,
173
- placeholder: O(t, "placeholder")
174
- }), _ = (r) => r ? A.value ? ne(r) : ie(r) : "", K = o(() => _(m.value)), $ = (r) => {
173
+ placeholder: B(t, "placeholder")
174
+ }), _ = (r) => r ? A.value ? ie(r) : se(r) : "", $ = i(() => _(m.value)), j = (r) => {
175
175
  if (!r) {
176
- i(null);
176
+ s(null);
177
177
  return;
178
178
  }
179
179
  if (A.value) {
180
- i(se(r));
180
+ s(de(r));
181
181
  return;
182
182
  }
183
- const p = y(r);
184
- p && i(p);
185
- }, x = o(() => t.isDateDisabled && u.value && C(u.value) && t.isDateDisabled(y(u.value)) && !c.value ? n("selectedDateIsNotAvailable") : d.value ? n("provideDateInAFormat") : null), j = o(() => ({
183
+ const o = g(r);
184
+ o && s(o);
185
+ }, X = i(() => _(t.min)), H = i(() => _(t.max)), F = (r) => !r || t.min && r <= t.min || t.max && r >= t.max ? "provideDateInAFormat" : t.isDateDisabled && t.isDateDisabled(r) ? "selectedDateIsNotAvailable" : null, x = i(() => n.value ? d(n.value) : null);
186
+ E(
187
+ [u, b, () => t.isDateDisabled, () => t.min, () => t.max],
188
+ ([r, o]) => {
189
+ !r && o && C(o) && (n.value = F(g(o)));
190
+ }
191
+ );
192
+ const Q = i(() => ({
186
193
  "b-date-picker__description--error": t.errorMessage || x.value
187
- })), X = o(
188
- () => `${t.description ? l : ""} ${t.errorMessage ? S : ""} ${x.value ? h : ""}`.trim() || null
189
- ), H = o(() => _(t.min)), Q = o(() => _(t.max)), T = (r) => t.min && r <= t.min || t.max && r >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(r) : !0, N = () => {
190
- c.value = !1;
191
- }, Y = () => {
192
- c.value = !0, M();
193
- }, Z = (r) => {
194
- d.value = !1, N(), i(r);
195
- }, ee = async () => {
196
- d.value && (d.value = !1, u.value = null), i(null);
197
- }, ae = (r) => {
198
- B(r);
199
- }, F = (r) => {
194
+ })), Z = i(
195
+ () => `${t.description ? l : ""} ${t.errorMessage ? h : ""} ${x.value ? S : ""}`.trim() || null
196
+ ), Y = () => {
197
+ u.value = !1;
198
+ }, w = () => {
199
+ u.value = !0, M();
200
+ }, ee = (r) => {
201
+ n.value = null, Y(), s(r);
202
+ }, ae = async () => {
203
+ n.value && (n.value = null, b.value = null), s(null);
204
+ }, te = (r) => {
205
+ R(r);
206
+ }, O = (r) => {
200
207
  if (r.length < 10)
201
208
  return;
202
- C(r) && T(y(r)) ? (d.value = !1, i(y(r))) : r && (d.value = !0, i(null));
203
- }, w = De(F, e);
204
- return { __sfc: !0, DEBOUNCE_TIME: e, props: t, emit: a, t: n, datePickerContainerId: D, labelId: b, descriptionId: l, errorId: S, dateErrorId: h, popoverAriaLabel: I, calendarContainerRef: s, inputContainerRef: g, isDateIncorrect: d, isDatePickerOpen: c, initialFocusOnDatePickerOpen: P, internalModelValue: m, isReadOnly: W, emitValue: i, resolvedFirstDayOfWeek: G, isFormatValid: C, parseDate: y, onKeyDown: B, autoFormat: E, isTouchDevice: R, computedTrapAllOptions: U, isMonthVariant: A, dateDisplayValue: J, textInputValue: u, formatTextInputDisplayValue: M, formatNativeDate: _, nativeValue: K, onNativeDateInput: $, dateErrorText: x, descriptionConditionalClasses: j, ariaDescribedBy: X, formattedMin: H, formattedMax: Q, isDateEnabled: T, closeDatePicker: N, openDatePicker: Y, onDateSelected: Z, clearDatePickerValue: ee, onDateKeyDown: ae, validateDate: F, validateDateDebounced: w, onDateInputChange: (r) => {
205
- u.value = E(r), c.value || R.value ? F(u.value) : w(u.value);
209
+ const o = C(r) ? g(r) : null, V = F(o);
210
+ !V && o ? (n.value = null, s(o)) : r && (n.value = V || "provideDateInAFormat", s(null));
211
+ }, L = fe(O, e);
212
+ return { __sfc: !0, DEBOUNCE_TIME: e, props: t, emit: a, t: d, datePickerContainerId: D, labelId: v, descriptionId: l, errorId: h, dateErrorId: S, popoverAriaLabel: k, calendarContainerRef: c, inputContainerRef: I, dateError: n, isDatePickerOpen: u, initialFocusOnDatePickerOpen: P, internalModelValue: m, isReadOnly: G, emitValue: s, resolvedFirstDayOfWeek: K, isFormatValid: C, parseDate: g, onKeyDown: R, autoFormat: T, isTouchDevice: N, computedTrapAllOptions: U, isMonthVariant: A, dateDisplayValue: J, textInputValue: b, formatTextInputDisplayValue: M, formatNativeDate: _, nativeValue: $, onNativeDateInput: j, formattedMin: X, formattedMax: H, getDateErrorReason: F, dateErrorText: x, descriptionConditionalClasses: Q, ariaDescribedBy: Z, closeDatePicker: Y, openDatePicker: w, onDateSelected: ee, clearDatePickerValue: ae, onDateKeyDown: te, validateDate: O, validateDateDebounced: L, onDateInputChange: (r) => {
213
+ b.value = T(r), u.value || N.value ? O(b.value) : L(b.value);
206
214
  }, onSpaceBarOrEnter: async (r) => {
207
- var p;
208
- c.value || (r.preventDefault(), Y(), await re(), m.value || (M(/* @__PURE__ */ new Date()), i(/* @__PURE__ */ new Date())), P.value = ((p = s.value) == null ? void 0 : p.$refs.calendarRef[0].focusOnDate(
209
- t.variant === "month" ? L(m.value) : m.value,
215
+ var o;
216
+ u.value || (r.preventDefault(), w(), await le(), m.value || (M(/* @__PURE__ */ new Date()), s(/* @__PURE__ */ new Date())), P.value = ((o = c.value) == null ? void 0 : o.$refs.calendarRef[0].focusOnDate(
217
+ t.variant === "month" ? z(m.value) : m.value,
210
218
  !0
211
219
  )) ?? void 0);
212
- }, BentoPopover: de, BentoTypography: ue, Calendar: oe, ErrorMessage: ge, FieldLabel: Ie, DropdownInputDefault: pe, BentoInputField: fe, vBentoClickOutsideDirective: ke };
220
+ }, BentoPopover: ce, BentoTypography: pe, Calendar: ne, ErrorMessage: Ae, FieldLabel: ge, DropdownInputDefault: De, BentoInputField: me, vBentoClickOutsideDirective: Ie };
213
221
  }
214
222
  });
215
- var Ce = function() {
216
- var n, D, b;
223
+ var Me = function() {
224
+ var d, D, v;
217
225
  var a = this, t = a._self._c, e = a._self._setupProxy;
218
226
  return t("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDatePicker, expression: "closeDatePicker" }], staticClass: "b-date-picker", on: { "!keydown": [function(l) {
219
227
  return !l.type.indexOf("key") && a._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onSpaceBarOrEnter.apply(null, arguments);
220
228
  }, function(l) {
221
229
  return !l.type.indexOf("key") && a._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onSpaceBarOrEnter.apply(null, arguments);
222
- }] } }, [a.label ? t(e.FieldLabel, { attrs: { id: e.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), t("div", [e.isTouchDevice ? t(e.BentoInputField, { ref: "inputContainerRef", attrs: { type: e.isMonthVariant ? "month" : "date", "aria-labelledby": a.label ? e.labelId : (n = a.$attrs) == null ? void 0 : n["aria-labelledby"], "aria-label": a.label || (D = a.$attrs) != null && D["aria-labelledby"] ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, error: !!a.errorMessage || !!e.dateErrorText, "model-value": e.nativeValue, readonly: e.isReadOnly, min: e.formattedMin, max: e.formattedMax }, on: { "update:model-value": e.onNativeDateInput } }) : t(e.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": a.label ? e.labelId : (b = a.$attrs) == null ? void 0 : b["aria-labelledby"], "aria-label": a.label ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "dynamic-filtering": "", "is-invalid": !!a.errorMessage || !!e.dateErrorText, open: e.isDatePickerOpen, value: e.textInputValue, "display-value": e.dateDisplayValue, "debounce-time": 0, readonly: e.isReadOnly }, on: { input: e.onDateInputChange, open: e.openDatePicker, keydown: e.onDateKeyDown, clear: e.clearDatePickerValue, close: e.closeDatePicker } })], 1), e.dateErrorText ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : a._e(), a.errorMessage ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? t(e.BentoTypography, { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), e.inputContainerRef && !e.isTouchDevice ? t(e.BentoPopover, { staticClass: "b-date-picker__container", attrs: { id: e.datePickerContainerId, role: "dialog", open: e.isDatePickerOpen, "target-element": e.inputContainerRef, "aria-label": e.popoverAriaLabel, "aria-modal": !0, position: "bottom-start", "fit-content": "", "trap-all": "", "trap-all-options": e.computedTrapAllOptions }, nativeOn: { keydown: function(l) {
230
+ }] } }, [a.label ? t(e.FieldLabel, { attrs: { id: e.labelId, label: a.label, "tooltip-text": a.tooltipText, optional: a.optional, required: a.required } }) : a._e(), t("div", [e.isTouchDevice ? t(e.BentoInputField, { ref: "inputContainerRef", attrs: { type: e.isMonthVariant ? "month" : "date", "aria-labelledby": a.label ? e.labelId : (d = a.$attrs) == null ? void 0 : d["aria-labelledby"], "aria-label": a.label || (D = a.$attrs) != null && D["aria-labelledby"] ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, error: !!a.errorMessage || !!e.dateErrorText, "model-value": e.nativeValue, readonly: e.isReadOnly, min: e.formattedMin, max: e.formattedMax }, on: { "update:model-value": e.onNativeDateInput } }) : t(e.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": a.label ? e.labelId : (v = a.$attrs) == null ? void 0 : v["aria-labelledby"], "aria-label": a.label ? null : e.popoverAriaLabel, "aria-describedby": e.ariaDescribedBy, "aria-required": a.required, disabled: a.disabled, "dynamic-filtering": "", "is-invalid": !!a.errorMessage || !!e.dateErrorText, open: e.isDatePickerOpen, value: e.textInputValue, "display-value": e.dateDisplayValue, "debounce-time": 0, readonly: e.isReadOnly }, on: { input: e.onDateInputChange, open: e.openDatePicker, keydown: e.onDateKeyDown, clear: e.clearDatePickerValue, close: e.closeDatePicker } })], 1), e.dateErrorText ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : a._e(), a.errorMessage ? t(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": a.errorMessage } }) : a._e(), a.description ? t(e.BentoTypography, { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), e.inputContainerRef && !e.isTouchDevice ? t(e.BentoPopover, { staticClass: "b-date-picker__container", attrs: { id: e.datePickerContainerId, role: "dialog", open: e.isDatePickerOpen, "target-element": e.inputContainerRef, "aria-label": e.popoverAriaLabel, "aria-modal": !0, position: "bottom-start", "fit-content": "", "trap-all": "", "trap-all-options": e.computedTrapAllOptions }, nativeOn: { keydown: function(l) {
223
231
  return !l.type.indexOf("key") && a._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closeDatePicker.apply(null, arguments);
224
232
  } } }, [t(e.Calendar, { ref: "calendarContainerRef", attrs: { "default-display-month": a.defaultDisplayMonth, "first-day-of-week": e.resolvedFirstDayOfWeek, "is-date-disabled": a.isDateDisabled, "number-of-months": 1, value: e.internalModelValue, min: a.min, max: a.max, variant: a.variant }, on: { input: e.onDateSelected } })], 1) : a._e()], 1);
225
- }, Me = [], xe = /* @__PURE__ */ Ae(
226
- Pe,
233
+ }, Fe = [], xe = /* @__PURE__ */ _e(
227
234
  Ce,
228
235
  Me,
236
+ Fe,
229
237
  !1,
230
238
  null,
231
- "a47c0f0f"
239
+ "1d7c5ad5"
232
240
  );
233
- const Xe = xe.exports;
241
+ const He = xe.exports;
234
242
  export {
235
- Xe as B
243
+ He as B
236
244
  };
237
- //# sourceMappingURL=date-picker.B5dusL9n.js.map
245
+ //# sourceMappingURL=date-picker.CYDTf6De.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.CYDTf6De.js","sources":["../../src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../../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.dateError The i18n message key for the current error, or null if valid\n * @param option.isMonthVariant Indicates if the date picker has variant \"month\"\n */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({\n datePickerValue,\n dateError,\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 (dateError.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 (dateError.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 <bento-input-field\n v-if=\"isTouchDevice\"\n ref=\"inputContainerRef\"\n :type=\"isMonthVariant ? 'month' : 'date'\"\n :aria-labelledby=\"label ? labelId : $attrs?.['aria-labelledby']\"\n :aria-label=\"label || $attrs?.['aria-labelledby'] ? null : popoverAriaLabel\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-required=\"required\"\n :disabled=\"disabled\"\n :error=\"!!errorMessage || !!dateErrorText\"\n :model-value=\"nativeValue\"\n :readonly=\"isReadOnly\"\n :min=\"formattedMin\"\n :max=\"formattedMax\"\n @update:model-value=\"onNativeDateInput\"\n />\n <dropdown-input-default\n v-else\n ref=\"inputContainerRef\"\n always-combobox-is-input\n :ariaControls=\"datePickerContainerId\"\n :ariaExpanded=\"isDatePickerOpen\"\n :aria-labelledby=\"label ? labelId : $attrs?.['aria-labelledby']\"\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 && !isTouchDevice\"\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 import { BentoInputField } from '@/components/input-field';\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 { dateToNativeDateString, dateToNativeMonthString, parseNativeMonthString } from '@/utils/ts/format-date';\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, useTouchDevice } 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 = defineProps({\n description: { default: undefined },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: { default: undefined },\n optional: { type: Boolean, default: false },\n placeholder: { default: null },\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n defaultDisplayMonth: { default: null },\n firstDayOfWeek: { default: undefined },\n isDateDisabled: { default: undefined },\n min: { default: null },\n max: { default: null },\n modelValue: { default: null },\n value: { default: null },\n variant: { default: undefined }\n});\n\n const emit = defineEmits([\"update:model-value\", \"input\"]);\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 dateError = ref<keyof MessageSchema | null>(null);\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 const { isTouchDevice } = useTouchDevice();\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 dateError,\n isMonthVariant,\n placeholder: toRef(props, 'placeholder'),\n });\n\n const formatNativeDate = (date: Date): string => {\n if (!date) {\n return '';\n }\n return isMonthVariant.value ? dateToNativeMonthString(date) : dateToNativeDateString(date);\n };\n\n const nativeValue = computed(() => formatNativeDate(internalModelValue.value));\n\n const onNativeDateInput = (value: string) => {\n if (!value) {\n emitValue(null);\n return;\n }\n\n if (isMonthVariant.value) {\n emitValue(parseNativeMonthString(value));\n return;\n }\n\n const date = parseDate(value);\n if (date) {\n emitValue(date);\n }\n };\n\n const formattedMin = computed(() => formatNativeDate(props.min));\n const formattedMax = computed(() => formatNativeDate(props.max));\n\n const getDateErrorReason = (date: Date | null): keyof MessageSchema | null => {\n if (!date) {\n return 'provideDateInAFormat';\n }\n\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 'provideDateInAFormat';\n }\n\n // Check if function is set, otherwise all dates are enabled\n if (props.isDateDisabled && props.isDateDisabled(date)) {\n return 'selectedDateIsNotAvailable';\n }\n\n return null;\n };\n\n const dateErrorText = computed(() => (dateError.value ? t(dateError.value) : null));\n\n watch(\n [isDatePickerOpen, textInputValue, () => props.isDateDisabled, () => props.min, () => props.max],\n ([isOpen, textValue]) => {\n // Re-validate the current input when the picker closes, validation props change or text input change\n if (!isOpen && textValue && isFormatValid(textValue)) {\n dateError.value = getDateErrorReason(parseDate(textValue));\n }\n }\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 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 dateError.value = null;\n\n closeDatePicker();\n emitValue(selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (dateError.value) {\n dateError.value = null;\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 parsedDate = isFormatValid(stringDate) ? parseDate(stringDate) : null;\n const errorKey = getDateErrorReason(parsedDate);\n\n if (!errorKey && parsedDate) {\n dateError.value = null;\n emitValue(parsedDate);\n } else if (stringDate) {\n dateError.value = errorKey || 'provideDateInAFormat';\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 // On touch devices with native input, we also want immediate feedback.\n if (isDatePickerOpen.value || isTouchDevice.value) {\n validateDate(textInputValue.value);\n } else {\n validateDateDebounced(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","dateError","isMonthVariant","placeholder","locale","t","useI18n","formatDate","useDateInputFormatter","textInputValue","ref","_a","computed","dateFormatOptions","getDateTimeFormatter","dateToFormat","date","startOfMonth","__default__","messages","DEBOUNCE_TIME","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","props","calendarContainerRef","inputContainerRef","isDatePickerOpen","initialFocusOnDatePickerOpen","internalModelValue","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","emit","resolvedFirstDayOfWeek","useFirstDayOfWeek","isFormatValid","parseDate","onKeyDown","autoFormat","isTouchDevice","useTouchDevice","computedTrapAllOptions","watch","disabled","newValue","newModelValue","deprecate","dateDisplayValue","formatTextInputDisplayValue","formatNativeDate","dateToNativeMonthString","dateToNativeDateString","nativeValue","onNativeDateInput","value","parseNativeMonthString","formattedMin","formattedMax","getDateErrorReason","dateErrorText","isOpen","textValue","descriptionConditionalClasses","ariaDescribedBy","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDate","stringDate","parsedDate","errorKey","validateDateDebounced","debounce","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBOA,KAAA,CAAA;AAAA,EAAmE,iBAAAC;AAAA,EACtE,WAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAEJ,MAAA;;AACI,QAAA,EAAA,QAAAC,GAAA,GAAAC,EAAA,IAAAC,EAAA,GACA,EAAA,YAAAC,EAAA,IAAAC,EAAA,GAEAC,IAAAC,GAAAC,IAAAX,EAAA,UAAA,gBAAAW,EAAA,cAAA;AAyCA,SAAA;AAAA;AAAA,IAAO,kBAvCPC,EAAA,MAAA;AAEI,UAAAX,EAAA;AACI,eAAAQ,EAAA;AAIJ,UAAA,CAAAT,EAAA;AACI,gBAAAG,KAAA,gBAAAA,EAAA,UAAAE,EAA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