@adyen/bento-vue2 1.83.1 → 1.84.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 (323) hide show
  1. package/README.md +5 -5
  2. package/dist/@types/index.d.ts +56 -5
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.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/ai-button.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/calendar.css +1 -1
  15. package/dist/assets/card.css +1 -1
  16. package/dist/assets/checkbox-group.css +1 -1
  17. package/dist/assets/checkbox-input.css +1 -1
  18. package/dist/assets/checkbox.css +1 -1
  19. package/dist/assets/chip.css +1 -1
  20. package/dist/assets/code-snippet.css +1 -1
  21. package/dist/assets/controls-group.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashboard-section.css +1 -1
  25. package/dist/assets/dashed-underline.css +1 -1
  26. package/dist/assets/data-grid-template.css +1 -1
  27. package/dist/assets/data-grid.css +1 -1
  28. package/dist/assets/date-picker.css +1 -1
  29. package/dist/assets/date-range-picker.css +1 -1
  30. package/dist/assets/date.css +1 -1
  31. package/dist/assets/dialog-page.css +1 -1
  32. package/dist/assets/divider.css +1 -1
  33. package/dist/assets/dropdown-default-textbox.css +1 -1
  34. package/dist/assets/dropdown-tag.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/empty-state.css +1 -1
  37. package/dist/assets/field-label.css +1 -1
  38. package/dist/assets/file-uploader.css +1 -1
  39. package/dist/assets/filter-bar.css +1 -1
  40. package/dist/assets/fixed-scroller.css +1 -1
  41. package/dist/assets/footer-actions.css +1 -1
  42. package/dist/assets/form-layout-title.css +1 -1
  43. package/dist/assets/grid-layout.css +1 -1
  44. package/dist/assets/header-meta.css +1 -1
  45. package/dist/assets/header-with-views.css +1 -1
  46. package/dist/assets/header.css +1 -1
  47. package/dist/assets/index.css +1 -1
  48. package/dist/assets/info-icon.css +1 -1
  49. package/dist/assets/input-field-password.css +1 -1
  50. package/dist/assets/input-field.css +1 -1
  51. package/dist/assets/inspector.css +1 -1
  52. package/dist/assets/layout-row.css +1 -1
  53. package/dist/assets/link.css +1 -1
  54. package/dist/assets/listbox-option-tag.css +1 -1
  55. package/dist/assets/loading-indicator.css +1 -1
  56. package/dist/assets/modal-fullscreen.css +1 -1
  57. package/dist/assets/pagination.css +1 -1
  58. package/dist/assets/payment-method.css +1 -1
  59. package/dist/assets/popper-container.css +1 -1
  60. package/dist/assets/promo-banner.css +1 -1
  61. package/dist/assets/radio-group.css +1 -1
  62. package/dist/assets/radio-input.css +1 -1
  63. package/dist/assets/rich-text-editor.css +1 -1
  64. package/dist/assets/secondary-nav.css +1 -1
  65. package/dist/assets/segmented-control.css +1 -1
  66. package/dist/assets/selection-card-group.css +1 -1
  67. package/dist/assets/sidepanel.css +1 -1
  68. package/dist/assets/status.css +1 -1
  69. package/dist/assets/step.css +1 -1
  70. package/dist/assets/structured-list-item.css +1 -1
  71. package/dist/assets/summary-grid.css +1 -1
  72. package/dist/assets/tab.css +1 -1
  73. package/dist/assets/tag.css +1 -1
  74. package/dist/assets/textarea.css +1 -1
  75. package/dist/assets/timeline-item.css +1 -1
  76. package/dist/assets/toast.css +1 -1
  77. package/dist/assets/toggle.css +1 -1
  78. package/dist/assets/tooltip.css +1 -1
  79. package/dist/assets/tutorial.css +1 -1
  80. package/dist/assets/use-cached-selected-values.css +1 -1
  81. package/dist/button.js +3 -3
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chunks/{action-bar.C2GnRugW.js → action-bar.y4tcdk7R.js} +8 -6
  85. package/dist/chunks/{action-bar.C2GnRugW.js.map → action-bar.y4tcdk7R.js.map} +1 -1
  86. package/dist/chunks/{ai-button.C9Uc6vBY.js → ai-button.BEy4Gly-.js} +2 -2
  87. package/dist/chunks/{ai-button.C9Uc6vBY.js.map → ai-button.BEy4Gly-.js.map} +1 -1
  88. package/dist/chunks/{alert.BlJBrD8c.js → alert.B3Pdp02a.js} +29 -21
  89. package/dist/chunks/{alert.BlJBrD8c.js.map → alert.B3Pdp02a.js.map} +1 -1
  90. package/dist/chunks/{base-modal.L39wmqVD.js → base-modal.KYkLKswF.js} +20 -18
  91. package/dist/chunks/{base-modal.L39wmqVD.js.map → base-modal.KYkLKswF.js.map} +1 -1
  92. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js → button-actions-with-menu.B5mKwc-F.js} +2 -2
  93. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js.map → button-actions-with-menu.B5mKwc-F.js.map} +1 -1
  94. package/dist/chunks/{button-actions.BWVq6OZQ.js → button-actions.D9n7MxWe.js} +270 -239
  95. package/dist/chunks/{button-actions.BWVq6OZQ.js.map → button-actions.D9n7MxWe.js.map} +1 -1
  96. package/dist/chunks/{button.C5GvPqe5.js → button.DIU6m9wD.js} +2 -2
  97. package/dist/chunks/{button.C5GvPqe5.js.map → button.DIU6m9wD.js.map} +1 -1
  98. package/dist/chunks/calendar.C8DpZ4Sr.js +1101 -0
  99. package/dist/chunks/calendar.C8DpZ4Sr.js.map +1 -0
  100. package/dist/chunks/{card.CktheSva.js → card.CLX0RGG6.js} +2 -2
  101. package/dist/chunks/{card.CktheSva.js.map → card.CLX0RGG6.js.map} +1 -1
  102. package/dist/chunks/{checkbox-group.BUXnMhO8.js → checkbox-group.BCnhjQie.js} +4 -4
  103. package/dist/chunks/{checkbox-group.BUXnMhO8.js.map → checkbox-group.BCnhjQie.js.map} +1 -1
  104. package/dist/chunks/{checkbox-input.B0NsfSNR.js → checkbox-input.08E9BNeF.js} +45 -40
  105. package/dist/chunks/checkbox-input.08E9BNeF.js.map +1 -0
  106. package/dist/chunks/{checkbox.DgPVHJnT.js → checkbox.CU5ierOq.js} +9 -9
  107. package/dist/chunks/{checkbox.DgPVHJnT.js.map → checkbox.CU5ierOq.js.map} +1 -1
  108. package/dist/chunks/{code-snippet.1_edHDaZ.js → code-snippet.9MwDHp50.js} +62 -60
  109. package/dist/chunks/code-snippet.9MwDHp50.js.map +1 -0
  110. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  111. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  112. package/dist/chunks/{controls-group.BqPxnEl3.js → controls-group.D4eW9DtP.js} +2 -2
  113. package/dist/chunks/{controls-group.BqPxnEl3.js.map → controls-group.D4eW9DtP.js.map} +1 -1
  114. package/dist/chunks/{copy.I2GvwCvt.js → copy.C0q7xgXs.js} +19 -17
  115. package/dist/chunks/{copy.I2GvwCvt.js.map → copy.C0q7xgXs.js.map} +1 -1
  116. package/dist/chunks/{country.BPrh4fXO.js → country.DyrDj95W.js} +2 -2
  117. package/dist/chunks/{country.BPrh4fXO.js.map → country.DyrDj95W.js.map} +1 -1
  118. package/dist/chunks/country.types.DaVCMxk-.js +773 -0
  119. package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
  120. package/dist/chunks/{dashboard-section.B4bHrFIl.js → dashboard-section.B83FdC0Z.js} +3 -3
  121. package/dist/chunks/{dashboard-section.B4bHrFIl.js.map → dashboard-section.B83FdC0Z.js.map} +1 -1
  122. package/dist/chunks/{dashed-underline.ByK3QxFJ.js → dashed-underline.DQGVy5T2.js} +2 -2
  123. package/dist/chunks/{dashed-underline.ByK3QxFJ.js.map → dashed-underline.DQGVy5T2.js.map} +1 -1
  124. package/dist/chunks/{data-grid-template.CvZbOkih.js → data-grid-template.BTEFoEwf.js} +4 -4
  125. package/dist/chunks/{data-grid-template.CvZbOkih.js.map → data-grid-template.BTEFoEwf.js.map} +1 -1
  126. package/dist/chunks/{data-grid.CsVqTwy0.js → data-grid.BPG1GPIl.js} +482 -398
  127. package/dist/chunks/{data-grid.CsVqTwy0.js.map → data-grid.BPG1GPIl.js.map} +1 -1
  128. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  129. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  130. package/dist/chunks/{date-picker.-a_TXwjx.js → date-picker.CnsC_UMG.js} +78 -74
  131. package/dist/chunks/date-picker.CnsC_UMG.js.map +1 -0
  132. package/dist/chunks/date-range-picker.B6GSRjjK.js +1693 -0
  133. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +1 -0
  134. package/dist/chunks/de.DvtL0g75.js +478 -0
  135. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  136. package/dist/chunks/{dialog-page.Dn-WbcxU.js → dialog-page.QpRiNPyx.js} +29 -23
  137. package/dist/chunks/{dialog-page.Dn-WbcxU.js.map → dialog-page.QpRiNPyx.js.map} +1 -1
  138. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  139. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  140. package/dist/chunks/{dropdown-tag.AYIB0ec5.js → dropdown-tag.HBM0wrEV.js} +4 -4
  141. package/dist/chunks/{dropdown-tag.AYIB0ec5.js.map → dropdown-tag.HBM0wrEV.js.map} +1 -1
  142. package/dist/chunks/{dropdown.Dt0_ZUBn.js → dropdown.C2pXf8Li.js} +85 -81
  143. package/dist/chunks/{dropdown.Dt0_ZUBn.js.map → dropdown.C2pXf8Li.js.map} +1 -1
  144. package/dist/chunks/{empty-state.jVTWhJW7.js → empty-state.DpBnqAxu.js} +2 -2
  145. package/dist/chunks/{empty-state.jVTWhJW7.js.map → empty-state.DpBnqAxu.js.map} +1 -1
  146. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  147. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  148. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  149. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  150. package/dist/chunks/es.bz0mzkMq.js +374 -0
  151. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  152. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  153. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  154. package/dist/chunks/{field-label.BpeaR4Qc.js → field-label.CEkJnsiL.js} +5 -5
  155. package/dist/chunks/{field-label.BpeaR4Qc.js.map → field-label.CEkJnsiL.js.map} +1 -1
  156. package/dist/chunks/{file-uploader.G6mr6RuA.js → file-uploader.CnOqfuI-.js} +299 -253
  157. package/dist/chunks/{file-uploader.G6mr6RuA.js.map → file-uploader.CnOqfuI-.js.map} +1 -1
  158. package/dist/chunks/filter-bar.CnJAxz9B.js +2559 -0
  159. package/dist/chunks/filter-bar.CnJAxz9B.js.map +1 -0
  160. package/dist/chunks/fixed-scroller.Bp4-iO80.js +114 -0
  161. package/dist/chunks/{fixed-scroller.Ca1ujamx.js.map → fixed-scroller.Bp4-iO80.js.map} +1 -1
  162. package/dist/chunks/{footer-actions.3JdT8b0p.js → footer-actions.BOiN47Xd.js} +3 -3
  163. package/dist/chunks/{footer-actions.3JdT8b0p.js.map → footer-actions.BOiN47Xd.js.map} +1 -1
  164. package/dist/chunks/{form-layout-title.D9GJQfF9.js → form-layout-title.CdC1T4gs.js} +2 -2
  165. package/dist/chunks/{form-layout-title.D9GJQfF9.js.map → form-layout-title.CdC1T4gs.js.map} +1 -1
  166. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  167. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  168. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  169. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  170. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  171. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  172. package/dist/chunks/header-meta.D_oAu2S9.js +212 -0
  173. package/dist/chunks/header-meta.D_oAu2S9.js.map +1 -0
  174. package/dist/chunks/{header-with-views.lzT3kGpo.js → header-with-views.Dc9LUYNY.js} +379 -315
  175. package/dist/chunks/{header-with-views.lzT3kGpo.js.map → header-with-views.Dc9LUYNY.js.map} +1 -1
  176. package/dist/chunks/{header.D76MKCdS.js → header.BmtlQmPs.js} +3 -3
  177. package/dist/chunks/{header.D76MKCdS.js.map → header.BmtlQmPs.js.map} +1 -1
  178. package/dist/chunks/{input-field-password.C7zjyp7f.js → input-field-password.D23H_RvO.js} +48 -42
  179. package/dist/chunks/{input-field-password.C7zjyp7f.js.map → input-field-password.D23H_RvO.js.map} +1 -1
  180. package/dist/chunks/{input-field-phone-number.DwuTziSU.js → input-field-phone-number.Bvk2Pvec.js} +9 -3
  181. package/dist/chunks/{input-field-phone-number.DwuTziSU.js.map → input-field-phone-number.Bvk2Pvec.js.map} +1 -1
  182. package/dist/chunks/{input-field.DsT4AWXC.js → input-field.hf0_ALq0.js} +37 -29
  183. package/dist/chunks/{input-field.DsT4AWXC.js.map → input-field.hf0_ALq0.js.map} +1 -1
  184. package/dist/chunks/{inspector.2A5vWUou.js → inspector.C0iAxxoz.js} +40 -34
  185. package/dist/chunks/{inspector.2A5vWUou.js.map → inspector.C0iAxxoz.js.map} +1 -1
  186. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  187. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  188. package/dist/chunks/it.Oaj6BklL.js +392 -0
  189. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  190. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  191. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  192. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  193. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  194. package/dist/chunks/{link.BoDUCYmM.js → link.PsTSQjK3.js} +27 -21
  195. package/dist/chunks/{link.BoDUCYmM.js.map → link.PsTSQjK3.js.map} +1 -1
  196. package/dist/chunks/match.CMBZxEs9.js +302 -0
  197. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  198. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js → modal-fullscreen.B1gltlxA.js} +5 -5
  199. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js.map → modal-fullscreen.B1gltlxA.js.map} +1 -1
  200. package/dist/chunks/{modal.6hFEbnZM.js → modal.e3EQ6Kex.js} +5 -5
  201. package/dist/chunks/{modal.6hFEbnZM.js.map → modal.e3EQ6Kex.js.map} +1 -1
  202. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  203. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  204. package/dist/chunks/{pagination.BSyshRGH.js → pagination.BcFt2FqK.js} +6 -6
  205. package/dist/chunks/{pagination.BSyshRGH.js.map → pagination.BcFt2FqK.js.map} +1 -1
  206. package/dist/chunks/{promo-banner.D3aG5wnp.js → promo-banner.yfBorKj7.js} +2 -2
  207. package/dist/chunks/{promo-banner.D3aG5wnp.js.map → promo-banner.yfBorKj7.js.map} +1 -1
  208. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  209. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  210. package/dist/chunks/{radio-group.DTZwsfwW.js → radio-group.CtTnfkYg.js} +3 -3
  211. package/dist/chunks/{radio-group.DTZwsfwW.js.map → radio-group.CtTnfkYg.js.map} +1 -1
  212. package/dist/chunks/{rich-text-editor.B0ivi3UG.js → rich-text-editor.Dq2CFGOu.js} +5 -5
  213. package/dist/chunks/{rich-text-editor.B0ivi3UG.js.map → rich-text-editor.Dq2CFGOu.js.map} +1 -1
  214. package/dist/chunks/{search-bar.Bpk-PuYT.js → search-bar.B0SdQBnY.js} +3 -3
  215. package/dist/chunks/{search-bar.Bpk-PuYT.js.map → search-bar.B0SdQBnY.js.map} +1 -1
  216. package/dist/chunks/{secondary-nav.BGOYJrsB.js → secondary-nav.BPGpxd0p.js} +35 -29
  217. package/dist/chunks/{secondary-nav.BGOYJrsB.js.map → secondary-nav.BPGpxd0p.js.map} +1 -1
  218. package/dist/chunks/{selection-card-group.CLqWoLSN.js → selection-card-group.BryV14qP.js} +5 -5
  219. package/dist/chunks/{selection-card-group.CLqWoLSN.js.map → selection-card-group.BryV14qP.js.map} +1 -1
  220. package/dist/chunks/{sidepanel.C5SvJNMR.js → sidepanel.NFyZGE57.js} +5 -5
  221. package/dist/chunks/{sidepanel.C5SvJNMR.js.map → sidepanel.NFyZGE57.js.map} +1 -1
  222. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  223. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  224. package/dist/chunks/step.BLFXvHL6.js +223 -0
  225. package/dist/chunks/step.BLFXvHL6.js.map +1 -0
  226. package/dist/chunks/{structured-list-item.CbXDKwsF.js → structured-list-item.CptOCpHP.js} +3 -3
  227. package/dist/chunks/{structured-list-item.CbXDKwsF.js.map → structured-list-item.CptOCpHP.js.map} +1 -1
  228. package/dist/chunks/{summary-grid.types.haWi7oaf.js → summary-grid.types.B1T8_k1m.js} +3 -3
  229. package/dist/chunks/{summary-grid.types.haWi7oaf.js.map → summary-grid.types.B1T8_k1m.js.map} +1 -1
  230. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  231. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  232. package/dist/chunks/{tab.ZQfGp_FP.js → tab.FUMpPsBP.js} +2 -2
  233. package/dist/chunks/{tab.ZQfGp_FP.js.map → tab.FUMpPsBP.js.map} +1 -1
  234. package/dist/chunks/{textarea.DfR2o1lz.js → textarea.riUt0BiI.js} +31 -31
  235. package/dist/chunks/textarea.riUt0BiI.js.map +1 -0
  236. package/dist/chunks/{timeline-item.rLqeBsyz.js → timeline-item.CFfW1DoD.js} +16 -15
  237. package/dist/chunks/{timeline-item.rLqeBsyz.js.map → timeline-item.CFfW1DoD.js.map} +1 -1
  238. package/dist/chunks/{toast.C7lu_NsX.js → toast.Csv6tMyT.js} +2 -2
  239. package/dist/chunks/{toast.C7lu_NsX.js.map → toast.Csv6tMyT.js.map} +1 -1
  240. package/dist/chunks/{tutorial.DA775wec.js → tutorial.D18LwXVy.js} +2 -2
  241. package/dist/chunks/{tutorial.DA775wec.js.map → tutorial.D18LwXVy.js.map} +1 -1
  242. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js → use-cached-selected-values.gDWGi5Nk.js} +240 -231
  243. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js.map → use-cached-selected-values.gDWGi5Nk.js.map} +1 -1
  244. package/dist/chunks/{use-country-items.B3Cd3Tdo.js → use-country-items.ClS_So5N.js} +2 -2
  245. package/dist/chunks/{use-country-items.B3Cd3Tdo.js.map → use-country-items.ClS_So5N.js.map} +1 -1
  246. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  247. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  248. package/dist/code-snippet.js +1 -1
  249. package/dist/country.js +2 -2
  250. package/dist/dashboard-template.js +1 -1
  251. package/dist/dashed-underline.js +1 -1
  252. package/dist/data-grid-template.js +1 -1
  253. package/dist/data-grid.js +1 -1
  254. package/dist/date-picker.js +2 -2
  255. package/dist/date-range-picker.js +2 -2
  256. package/dist/dropdown.js +3 -3
  257. package/dist/empty-state.js +1 -1
  258. package/dist/file-uploader.js +1 -1
  259. package/dist/filter-bar.js +1 -1
  260. package/dist/form-layout.js +1 -1
  261. package/dist/header-with-views.js +1 -1
  262. package/dist/header.js +1 -1
  263. package/dist/index.js +250 -251
  264. package/dist/index.js.map +1 -1
  265. package/dist/input-field-password.js +1 -1
  266. package/dist/input-field-phone-number.js +1 -1
  267. package/dist/input-field.js +1 -1
  268. package/dist/inspector.js +1 -1
  269. package/dist/internal.js +10 -10
  270. package/dist/link.js +1 -1
  271. package/dist/menu.js +1 -1
  272. package/dist/modal-fullscreen.js +1 -1
  273. package/dist/modal.js +2 -2
  274. package/dist/pagination.js +1 -1
  275. package/dist/popover.js +1 -1
  276. package/dist/promo-banner.js +1 -1
  277. package/dist/radio-group.js +1 -1
  278. package/dist/rich-text-editor.js +1 -1
  279. package/dist/search-bar.js +2 -2
  280. package/dist/secondary-nav.js +1 -1
  281. package/dist/selection-card.js +1 -1
  282. package/dist/sidepanel.js +1 -1
  283. package/dist/stepper.js +1 -1
  284. package/dist/structured-list.js +1 -1
  285. package/dist/styles/bento-dark.css +0 -1829
  286. package/dist/styles/bento-light.css +0 -1829
  287. package/dist/styles/bento.css +0 -1829
  288. package/dist/styles/legacy.css +0 -1829
  289. package/dist/styles/styleguide.css +0 -1829
  290. package/dist/summary-grid.js +1 -1
  291. package/dist/tabs.js +1 -1
  292. package/dist/textarea.js +1 -1
  293. package/dist/timeline.js +1 -1
  294. package/dist/toast.js +1 -1
  295. package/dist/tutorial.js +1 -1
  296. package/package.json +14 -25
  297. package/dist/@types/components.d.ts +0 -196
  298. package/dist/@types/use-form-v4.d.ts +0 -86
  299. package/dist/chunks/calendar.DCLyThOl.js +0 -1832
  300. package/dist/chunks/calendar.DCLyThOl.js.map +0 -1
  301. package/dist/chunks/checkbox-input.B0NsfSNR.js.map +0 -1
  302. package/dist/chunks/code-snippet.1_edHDaZ.js.map +0 -1
  303. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  304. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  305. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  306. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  307. package/dist/chunks/date-picker.-a_TXwjx.js.map +0 -1
  308. package/dist/chunks/date-range-picker.Bw1yPTu-.js +0 -906
  309. package/dist/chunks/date-range-picker.Bw1yPTu-.js.map +0 -1
  310. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  311. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  312. package/dist/chunks/es6.MoTTyETW.js +0 -12
  313. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  314. package/dist/chunks/filter-bar.DNA9QblV.js +0 -2472
  315. package/dist/chunks/filter-bar.DNA9QblV.js.map +0 -1
  316. package/dist/chunks/fixed-scroller.Ca1ujamx.js +0 -106
  317. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  318. package/dist/chunks/header-meta.C8_W0j_p.js +0 -170
  319. package/dist/chunks/header-meta.C8_W0j_p.js.map +0 -1
  320. package/dist/chunks/step.mqn8E6dm.js +0 -217
  321. package/dist/chunks/step.mqn8E6dm.js.map +0 -1
  322. package/dist/chunks/textarea.DfR2o1lz.js.map +0 -1
  323. package/dist/web-types.json +0 -17280
@@ -0,0 +1,15 @@
1
+ const l = /[\d]/, r = /[A-Za-z]{2,}/, d = /^\d{4}$/, g = /^\d{4}-\d{2}$/, y = (e) => {
2
+ const { selectionStart: t } = e.target, a = l.test(e.key) || r.test(e.key), s = e.key === "-" && (t === 4 || t === 7), { ctrlKey: i, shiftKey: n, altKey: o, metaKey: c } = e;
3
+ !i && !n && !o && !c && !a && !s && e.preventDefault();
4
+ }, f = (e) => {
5
+ if (!e)
6
+ return e;
7
+ let t = e;
8
+ const [a, s] = t.slice(-2), i = t.length === 6, n = t.length === 9;
9
+ return (i && parseInt(s, 10) > 1 && a === "-" || n && parseInt(s, 10) > 3 && a === "-") && (t = `${t.slice(0, t.length - 1)}0${s}`), (d.test(t) || g.test(t)) && (t += "-"), t;
10
+ };
11
+ export {
12
+ f,
13
+ y as v
14
+ };
15
+ //# sourceMappingURL=date-input.BbZqj10S.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-input.BbZqj10S.js","sources":["../../src/utils/ts/date-input.ts"],"sourcesContent":["const validDigitRegex = /[\\d]/;\nconst validWordRegex = /[A-Za-z]{2,}/;\n\nconst yearRegex = /^\\d{4}$/;\nconst monthRegex = /^\\d{4}-\\d{2}$/;\n\nexport const validateDateInput = (event: KeyboardEvent) => {\n // Get cursor position\n const { selectionStart } = event.target as HTMLInputElement;\n\n // Valid if `0-9` or word e.g. `Backspace`\n const isValidKey = validDigitRegex.test(event.key) || validWordRegex.test(event.key);\n\n // Valid `-` if after year (4) or month (7)\n const isValidDash = event.key === '-' && (selectionStart === 4 || selectionStart === 7);\n\n // Allow commands\n const { ctrlKey, shiftKey, altKey, metaKey } = event;\n\n if (!ctrlKey && !shiftKey && !altKey && !metaKey && !isValidKey && !isValidDash) {\n // Prevent input of invalid characters\n event.preventDefault();\n }\n};\n\nexport const formatDateInputValue = (value: string) => {\n if (!value) {\n return value;\n }\n\n let formattedValue = value;\n\n const [secondToLastDigit, lastDigit] = formattedValue.slice(-2);\n // Add `0` before month/day (e.g. 4 -> 04)\n const isMonth = formattedValue.length === 6;\n const isDay = formattedValue.length === 9;\n if (\n (isMonth && parseInt(lastDigit, 10) > 1 && secondToLastDigit === '-') ||\n (isDay && parseInt(lastDigit, 10) > 3 && secondToLastDigit === '-')\n ) {\n formattedValue = `${formattedValue.slice(0, formattedValue.length - 1)}0${lastDigit}`;\n }\n\n // Add `-` after year/month\n if (yearRegex.test(formattedValue) || monthRegex.test(formattedValue)) {\n formattedValue += '-';\n }\n\n return formattedValue;\n};\n"],"names":["validDigitRegex","validWordRegex","yearRegex","monthRegex","validateDateInput","event","selectionStart","isValidKey","isValidDash","ctrlKey","shiftKey","altKey","metaKey","formatDateInputValue","value","formattedValue","secondToLastDigit","lastDigit","isMonth","isDay"],"mappings":"AAAA,MAAMA,IAAkB,QAClBC,IAAiB,gBAEjBC,IAAY,WACZC,IAAa,iBAENC,IAAoB,CAACC,MAAyB;AAEjD,QAAA,EAAE,gBAAAC,MAAmBD,EAAM,QAG3BE,IAAaP,EAAgB,KAAKK,EAAM,GAAG,KAAKJ,EAAe,KAAKI,EAAM,GAAG,GAG7EG,IAAcH,EAAM,QAAQ,QAAQC,MAAmB,KAAKA,MAAmB,IAG/E,EAAE,SAAAG,GAAS,UAAAC,GAAU,QAAAC,GAAQ,SAAAC,EAAY,IAAAP;AAE3C,EAAA,CAACI,KAAW,CAACC,KAAY,CAACC,KAAU,CAACC,KAAW,CAACL,KAAc,CAACC,KAEhEH,EAAM,eAAe;AAE7B,GAEaQ,IAAuB,CAACC,MAAkB;AACnD,MAAI,CAACA;AACM,WAAAA;AAGX,MAAIC,IAAiBD;AAErB,QAAM,CAACE,GAAmBC,CAAS,IAAIF,EAAe,MAAM,EAAE,GAExDG,IAAUH,EAAe,WAAW,GACpCI,IAAQJ,EAAe,WAAW;AACxC,UACKG,KAAW,SAASD,GAAW,EAAE,IAAI,KAAKD,MAAsB,OAChEG,KAAS,SAASF,GAAW,EAAE,IAAI,KAAKD,MAAsB,SAE9CD,IAAA,GAAGA,EAAe,MAAM,GAAGA,EAAe,SAAS,CAAC,CAAC,IAAIE,CAAS,MAInFf,EAAU,KAAKa,CAAc,KAAKZ,EAAW,KAAKY,CAAc,OAC9CA,KAAA,MAGfA;AACX;"}
@@ -1,21 +1,20 @@
1
- import { ref as d, computed as c, defineComponent as z, toRef as F, watch as A, nextTick as G } from "vue";
2
- import { f as M, s as V, b as H } from "./calendar.DCLyThOl.js";
3
- import { h as J } from "./button-actions.BWVq6OZQ.js";
1
+ import { ref as u, computed as c, defineComponent as W, toRef as T, watch as w, nextTick as j } from "vue";
2
+ import { g as z, s as F, e as J, b as G } from "./calendar.C8DpZ4Sr.js";
3
+ import { h as H } from "./button-actions.D9n7MxWe.js";
4
4
  import { d as Q, B as X } from "./typography.Bq-EGj9y.js";
5
- import { d as Z } from "./debounce.DUTu11PS.js";
6
- import { D as O, v as $, f as ee } from "./date-format.B8RU7D42.js";
7
- import { g as b } from "./generate-uid.NJ8tVoha.js";
8
- import { u as L } from "./index.B6WW_F-J.js";
9
- import { u as ae } from "./form-field.D_2g7vaP.js";
10
- import { g as te } from "./differenceInMonths.Cab3nOsb.js";
5
+ import { D as Z } from "./dropdown-default-textbox.Cq68tN9F.js";
6
+ import { d as $ } from "./debounce.DUTu11PS.js";
7
+ import { v as ee, f as ae } from "./date-input.BbZqj10S.js";
8
+ import { g as y } from "./generate-uid.NJ8tVoha.js";
9
+ import { u as M } from "./index.B6WW_F-J.js";
10
+ import { u as te } from "./form-field.D_2g7vaP.js";
11
11
  import { u as re } from "./use-form-layout-loading.CWbjZiwP.js";
12
12
  import "./index.Cl4_42j5.js";
13
- import { D as le } from "./dropdown-default-textbox.Cq68tN9F.js";
14
- import { B as oe } from "./directive.Cbdox5VL.js";
15
- import { F as ne, E as ie } from "./field-label.BpeaR4Qc.js";
16
- import { n as se } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
+ import { B as le } from "./directive.Cbdox5VL.js";
14
+ import { F as oe, E as ne } from "./field-label.CEkJnsiL.js";
15
+ import { n as ie } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
17
16
  import "../assets/date-picker.css";
18
- const ue = {
17
+ const se = {
19
18
  "en-US": {
20
19
  datePicker: "Date picker",
21
20
  provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
@@ -25,50 +24,55 @@ const ue = {
25
24
  },
26
25
  "ja-JP": {
27
26
  datePicker: "日付ピッカー",
28
- selectDate: "日付を選択"
27
+ provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
28
+ selectDate: "日付を選択",
29
+ selectDateRange: "日付範囲を選択",
30
+ selectedDateIsNotAvailable: "選択した日付は利用できません"
29
31
  },
30
32
  "pt-BR": {
31
33
  datePicker: "Seletor de datas",
32
- selectDate: "Selecione uma data"
34
+ provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD",
35
+ selectDate: "Selecione uma data",
36
+ selectDateRange: "Selecione um intervalo de datas",
37
+ selectedDateIsNotAvailable: "A data selecionada não está disponível"
33
38
  }
34
39
  }, de = ({
35
- datePickerValue: s,
40
+ datePickerValue: i,
36
41
  isDateIncorrect: t,
37
42
  isMonthVariant: a,
38
43
  placeholder: e
39
44
  }) => {
40
- var y;
41
- const { locale: l, t: k } = L(), p = te(), f = d((y = s.value) == null ? void 0 : y.toDateString());
45
+ var v;
46
+ const { locale: l, t: b } = M(), p = u((v = i.value) == null ? void 0 : v.toDateString());
42
47
  return {
43
48
  // Values
44
49
  dateDisplayValue: c(() => {
45
- var n;
46
- return t.value ? f.value : s.value ? M(
47
- s.value,
48
- a != null && a.value ? O.LONG_MONTH_YEAR : O.FULL_DATE,
49
- {
50
- locale: p[(n = l.value) == null ? void 0 : n.substring(0, 2)] || p.enUS
51
- }
52
- ) : (e == null ? void 0 : e.value) || k("selectDate");
50
+ if (t.value)
51
+ return p.value;
52
+ if (!i.value)
53
+ return (e == null ? void 0 : e.value) || b("selectDate");
54
+ const s = a != null && a.value ? { month: "long", year: "numeric" } : { day: "numeric", month: "short", year: "numeric" };
55
+ return z(l.value, s).format(i.value);
53
56
  }),
54
- textInputValue: f,
57
+ textInputValue: p,
55
58
  // Methods
56
- formatTextInputDisplayValue: (n = s.value) => {
57
- var o;
59
+ formatTextInputDisplayValue: (s = i.value) => {
58
60
  if (t.value)
59
61
  return;
60
- const _ = a != null && a.value ? V(n) : n;
61
- f.value = n ? M(_, O.NUMERIC_DATE_YEAR_FIRST, {
62
- locale: p[(o = l.value) == null ? void 0 : o.substring(0, 2)] || p.enUS
63
- }) : null;
62
+ if (!s) {
63
+ p.value = "";
64
+ return;
65
+ }
66
+ const k = a != null && a.value ? F(s) : s;
67
+ p.value = J(k);
64
68
  }
65
69
  };
66
- }, ce = {
67
- i18n: { messages: ue },
70
+ }, ue = {
71
+ i18n: { messages: se },
68
72
  name: "bento-date-picker",
69
73
  model: { prop: "modelValue" }
70
- }, pe = /* @__PURE__ */ z({
71
- ...ce,
74
+ }, ce = /* @__PURE__ */ W({
75
+ ...ue,
72
76
  props: {
73
77
  description: { default: void 0 },
74
78
  disabled: { type: Boolean, default: !1 },
@@ -89,63 +93,63 @@ const ue = {
89
93
  variant: { default: void 0 }
90
94
  },
91
95
  emits: ["update:model-value", "input"],
92
- setup(s, { emit: t }) {
93
- const a = s, e = 1e3, { t: l } = L(), k = b("bento-date-picker-container"), p = b("bento-date-picker-label"), f = b("bento-date-picker-description"), g = b("bento-date-picker-error"), C = b("bento-date-picker-date-error"), y = c(() => a.label || l("datePicker", { name: k })), n = d(null), _ = d(null), o = d(!1), i = d(!1), I = d(void 0), m = d(a.modelValue), { isReadOnly: h } = re(F(a, "readonly")), { emitValue: v } = ae(t), U = c(() => ({
96
+ setup(i, { emit: t }) {
97
+ const a = i, e = 1e3, { t: l } = M(), b = y("bento-date-picker-container"), p = y("bento-date-picker-label"), _ = y("bento-date-picker-description"), g = y("bento-date-picker-error"), v = y("bento-date-picker-date-error"), s = c(() => a.label || l("datePicker", { name: b })), k = u(null), O = u(null), o = u(!1), n = u(!1), I = u(void 0), f = u(a.modelValue), { isReadOnly: h } = re(T(a, "readonly")), { emitValue: m } = te(t), V = c(() => ({
94
98
  initialFocus: I.value,
95
- additionalContainers: [_.value.$el]
99
+ additionalContainers: [O.value.$el]
96
100
  }));
97
- A(
101
+ w(
98
102
  () => a.disabled,
99
103
  (r) => {
100
- r && i.value && (i.value = !1);
104
+ r && n.value && (n.value = !1);
101
105
  }
102
- ), A(
106
+ ), w(
103
107
  [() => a.value, () => a.modelValue],
104
108
  ([r, D]) => {
105
109
  r && Q(
106
110
  'BentoDatePicker "value" property',
107
111
  'The use of "value" prop in "BentoDatePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
108
112
  "2.0.0"
109
- ), m.value = D ?? r;
113
+ ), f.value = D ?? r;
110
114
  },
111
115
  { immediate: !0 }
112
116
  );
113
- const B = c(() => a.variant === "month"), { dateDisplayValue: N, textInputValue: u, formatTextInputDisplayValue: x } = de({
114
- datePickerValue: m,
117
+ const B = c(() => a.variant === "month"), { dateDisplayValue: Y, textInputValue: d, formatTextInputDisplayValue: C } = de({
118
+ datePickerValue: f,
115
119
  isDateIncorrect: o,
116
120
  isMonthVariant: B,
117
- placeholder: F(a, "placeholder")
118
- }), E = c(() => a.isDateDisabled && u.value && a.isDateDisabled(new Date(u.value)) && !i.value ? l("selectedDateIsNotAvailable") : o.value ? l("provideDateInAFormat") : null), Y = c(() => ({
119
- "b-date-picker__description--error": a.errorMessage || E.value
120
- })), q = c(
121
- () => `${a.description ? f : ""} ${a.errorMessage ? g : ""} ${E.value ? C : ""}`.trim() || null
122
- ), R = (r) => a.min && r <= a.min || a.max && r >= a.max ? !1 : a.isDateDisabled ? !a.isDateDisabled(r) : !0, T = () => {
123
- i.value = !1;
124
- }, S = () => {
125
- i.value = !0, x();
121
+ placeholder: T(a, "placeholder")
122
+ }), x = c(() => a.isDateDisabled && d.value && a.isDateDisabled(new Date(d.value)) && !n.value ? l("selectedDateIsNotAvailable") : o.value ? l("provideDateInAFormat") : null), L = c(() => ({
123
+ "b-date-picker__description--error": a.errorMessage || x.value
124
+ })), N = c(
125
+ () => `${a.description ? _ : ""} ${a.errorMessage ? g : ""} ${x.value ? v : ""}`.trim() || null
126
+ ), E = (r) => a.min && r <= a.min || a.max && r >= a.max ? !1 : a.isDateDisabled ? !a.isDateDisabled(r) : !0, A = () => {
127
+ n.value = !1;
128
+ }, R = () => {
129
+ n.value = !0, C();
130
+ }, U = (r) => {
131
+ o.value = !1, A(), m(r);
132
+ }, q = async () => {
133
+ o.value && (o.value = !1, d.value = null), m(null);
126
134
  }, K = (r) => {
127
- o.value = !1, T(), v(r);
128
- }, W = async () => {
129
- o.value && (o.value = !1, u.value = null), v(null);
130
- }, j = (r) => {
131
- $(r);
135
+ ee(r);
132
136
  }, P = (r) => {
133
137
  if (r.length < 10)
134
138
  return;
135
- /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(r) && R(new Date(r)) ? (o.value = !1, v(new Date(r))) : r && (o.value = !0, v(null));
136
- }, w = Z(P, e);
137
- return { __sfc: !0, DEBOUNCE_TIME: e, props: a, emit: t, t: l, datePickerContainerId: k, labelId: p, descriptionId: f, errorId: g, dateErrorId: C, popoverAriaLabel: y, calendarContainerRef: n, inputContainerRef: _, isDateIncorrect: o, isDatePickerOpen: i, initialFocusOnDatePickerOpen: I, internalModelValue: m, isReadOnly: h, emitValue: v, computedTrapAllOptions: U, isMonthVariant: B, dateDisplayValue: N, textInputValue: u, formatTextInputDisplayValue: x, dateErrorText: E, descriptionConditionalClasses: Y, ariaDescribedBy: q, isDateEnabled: R, closeDatePicker: T, openDatePicker: S, onDateSelected: K, clearDatePickerValue: W, onDateKeyDown: j, validateDate: P, validateDateDebounced: w, onDateInputChange: (r) => {
138
- u.value = ee(r), i.value ? w(u.value) : P(u.value);
139
+ /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(r) && E(new Date(r)) ? (o.value = !1, m(new Date(r))) : r && (o.value = !0, m(null));
140
+ }, S = $(P, e);
141
+ return { __sfc: !0, DEBOUNCE_TIME: e, props: a, emit: t, t: l, datePickerContainerId: b, labelId: p, descriptionId: _, errorId: g, dateErrorId: v, popoverAriaLabel: s, calendarContainerRef: k, inputContainerRef: O, isDateIncorrect: o, isDatePickerOpen: n, initialFocusOnDatePickerOpen: I, internalModelValue: f, isReadOnly: h, emitValue: m, computedTrapAllOptions: V, isMonthVariant: B, dateDisplayValue: Y, textInputValue: d, formatTextInputDisplayValue: C, dateErrorText: x, descriptionConditionalClasses: L, ariaDescribedBy: N, isDateEnabled: E, closeDatePicker: A, openDatePicker: R, onDateSelected: U, clearDatePickerValue: q, onDateKeyDown: K, validateDate: P, validateDateDebounced: S, onDateInputChange: (r) => {
142
+ d.value = ae(r), n.value ? S(d.value) : P(d.value);
139
143
  }, onSpaceBarOrEnter: async (r) => {
140
144
  var D;
141
- i.value || (r.preventDefault(), S(), await G(), m.value || (x(/* @__PURE__ */ new Date()), v(/* @__PURE__ */ new Date())), I.value = ((D = n.value) == null ? void 0 : D.$refs.calendarRef[0].focusOnDate(
142
- a.variant === "month" ? V(m.value) : m.value,
145
+ n.value || (r.preventDefault(), R(), await j(), f.value || (C(/* @__PURE__ */ new Date()), m(/* @__PURE__ */ new Date())), I.value = ((D = k.value) == null ? void 0 : D.$refs.calendarRef[0].focusOnDate(
146
+ a.variant === "month" ? F(f.value) : f.value,
143
147
  !0
144
148
  )) ?? void 0);
145
- }, BentoPopover: J, BentoTypography: X, Calendar: H, ErrorMessage: ie, FieldLabel: ne, DropdownInputDefault: le, vBentoClickOutsideDirective: oe };
149
+ }, BentoPopover: H, BentoTypography: X, Calendar: G, ErrorMessage: ne, FieldLabel: oe, DropdownInputDefault: Z, vBentoClickOutsideDirective: le };
146
150
  }
147
151
  });
148
- var fe = function() {
152
+ var pe = function() {
149
153
  var t = this, a = t._self._c, e = t._self._setupProxy;
150
154
  return a("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) {
151
155
  return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onSpaceBarOrEnter.apply(null, arguments);
@@ -154,16 +158,16 @@ var fe = function() {
154
158
  }] } }, [t.label ? a(e.FieldLabel, { attrs: { id: e.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), a("div", [a(e.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": t.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: t.disabled, "dynamic-filtering": "", "is-invalid": !!t.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 ? a(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : t._e(), t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? a(e.BentoTypography, { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), e.inputContainerRef ? a(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) {
155
159
  return !l.type.indexOf("key") && t._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.closeDatePicker.apply(null, arguments);
156
160
  } } }, [a(e.Calendar, { ref: "calendarContainerRef", attrs: { "default-display-month": t.defaultDisplayMonth, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "number-of-months": 1, value: e.internalModelValue, min: t.min, max: t.max, variant: t.variant }, on: { input: e.onDateSelected } })], 1) : t._e()], 1);
157
- }, me = [], ve = /* @__PURE__ */ se(
161
+ }, fe = [], me = /* @__PURE__ */ ie(
162
+ ce,
158
163
  pe,
159
164
  fe,
160
- me,
161
165
  !1,
162
166
  null,
163
167
  "01f20425"
164
168
  );
165
- const Me = ve.exports;
169
+ const we = me.exports;
166
170
  export {
167
- Me as B
171
+ we as B
168
172
  };
169
- //# sourceMappingURL=date-picker.-a_TXwjx.js.map
173
+ //# sourceMappingURL=date-picker.CnsC_UMG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.CnsC_UMG.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 { dateToInputDateString, getDateTimeFormatter } from '@/utils/ts/format-date';\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 {Ref<Date>} option.datePickerValue Ref to the datePickerValue set in the DatePicker component\n * @param {Ref<boolean>} option.isDateIncorrect Indicates if the date is correct or not\n * @param {?Ref<boolean>} 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\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 yyyy-MM-dd format and sets it as \"formatTextInputDisplayValue\" value\n * @param {Date} 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 = dateToInputDateString(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-describedby=\"ariaDescribedBy\"\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=\"firstDayOfWeek\"\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 { formatDateInputValue, validateDateInput } from '@/utils/ts/date-input';\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 { 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 = 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: 1 },\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 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\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 props.isDateDisabled(new Date(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 validateDateInput(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 // Checks for YYYY-MM-DD format\n const dateRegex = /^\\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/;\n const isValidDate = dateRegex.test(stringDate) && isDateEnabled(new Date(stringDate));\n if (isValidDate) {\n isDateIncorrect.value = false;\n emitValue(new Date(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 = formatDateInputValue(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","textInputValue","ref","_a","computed","dateFormatOptions","getDateTimeFormatter","dateToFormat","date","startOfMonth","dateToInputDateString","__default__","messages","DEBOUNCE_TIME","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","props","calendarContainerRef","inputContainerRef","isDatePickerOpen","initialFocusOnDatePickerOpen","internalModelValue","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","emit","computedTrapAllOptions","watch","disabled","newValue","newModelValue","deprecate","dateDisplayValue","formatTextInputDisplayValue","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDateInput","validateDate","stringDate","validateDateDebounced","debounce","formatDateInputValue","nextTick"],"mappings":"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"}