@adyen/bento-vue2 1.1.1 → 1.3.0-1

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 (363) hide show
  1. package/README.md +60 -29
  2. package/dist/@types/components.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +15 -11
  4. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +14 -14
  6. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -2
  7. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +4 -4
  8. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +7 -7
  9. package/dist/@types/packages/vue2/src/components/button/index.d.ts +1 -1
  10. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +20 -16
  11. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  12. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +77 -31
  13. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +13 -9
  14. package/dist/@types/packages/vue2/src/components/code-snippet/composables/useLanguage.d.ts +2 -2
  15. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
  16. package/dist/@types/packages/vue2/src/components/country/composables/useCountryCapital/useCountryCapital.d.ts +1 -1
  17. package/dist/@types/packages/vue2/src/components/country/composables/useCountryName/useCountryName.d.ts +1 -1
  18. package/dist/@types/packages/vue2/src/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +10 -9
  20. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +5 -5
  21. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -3
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +4 -4
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +4 -4
  24. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -1
  25. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +1 -1
  26. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +1 -1
  28. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +3 -3
  29. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +7 -5
  30. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.types.d.ts +2 -2
  31. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +21 -11
  32. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +13 -13
  33. package/dist/@types/packages/vue2/src/components/date-range-picker/composables/use-date-range-picker-calendar-text.d.ts +1 -1
  34. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +21 -11
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +2 -2
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -2
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +87 -85
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  42. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +1 -1
  43. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +19 -17
  44. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +3 -3
  45. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +2 -2
  46. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +23 -21
  47. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +2 -2
  48. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +18 -16
  49. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +2 -2
  50. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +18 -16
  51. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  52. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -7
  53. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDropdownSearchFilter.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -2
  56. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +16 -13
  57. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +26 -26
  58. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +7 -7
  59. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +2 -2
  60. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +9 -11
  61. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
  62. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -2
  63. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +2 -2
  64. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +8 -8
  65. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +2 -2
  66. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +2 -2
  67. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +7 -7
  68. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +10 -10
  69. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +2 -2
  70. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
  71. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
  72. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
  73. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
  74. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
  75. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
  76. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
  77. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
  78. package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
  79. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
  80. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
  81. package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
  82. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +5 -5
  83. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +8 -6
  84. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -1
  85. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +25 -16
  86. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +2 -2
  87. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -2
  88. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +2 -2
  89. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +1 -1
  90. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
  91. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +4 -4
  92. package/dist/@types/packages/vue2/src/components/internal/footer-actions/footer-actions.vue.d.ts +1 -1
  93. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +2 -2
  94. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +2 -2
  95. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +2 -2
  96. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +1 -1
  97. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +3 -3
  98. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +4 -4
  99. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +2 -2
  100. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -9
  101. package/dist/@types/packages/vue2/src/components/link/index.d.ts +1 -1
  102. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +3 -3
  103. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -1
  104. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +3 -3
  105. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +5 -5
  106. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +6 -6
  107. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +55 -48
  108. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +5 -5
  109. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +7 -7
  110. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +27 -27
  111. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +2 -2
  112. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +1 -1
  113. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +1 -1
  114. package/dist/@types/packages/vue2/src/components/payment-method/composables/usePaymentIcon.d.ts +1 -1
  115. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +6 -4
  116. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +1 -1
  117. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -1
  118. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +12 -12
  119. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +1 -1
  120. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
  121. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +1 -1
  122. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +53 -7
  123. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +64 -47
  124. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +1 -1
  125. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
  126. package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
  127. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
  128. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
  129. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +43 -0
  130. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +3 -3
  131. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +2 -2
  132. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +38 -30
  133. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +16 -10
  134. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +16 -10
  135. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +16 -10
  136. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +1 -1
  137. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  138. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +1 -1
  139. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +5 -5
  140. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +10 -7
  141. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +20 -20
  142. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +3 -3
  143. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +2 -2
  144. package/dist/@types/packages/vue2/src/components/toggle/toggle.types.d.ts +4 -0
  145. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +9 -9
  146. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +25 -25
  147. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +6 -6
  148. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  149. package/dist/@types/packages/vue2/src/composables/initials.d.ts +1 -1
  150. package/dist/@types/packages/vue2/src/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +2 -2
  151. package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
  152. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +1 -1
  153. package/dist/@types/packages/vue2/src/directives/click-outside/on-click-outside.d.ts +1 -1
  154. package/dist/@types/packages/vue2/src/directives/click-outside/types.d.ts +1 -1
  155. package/dist/@types/packages/vue2/src/directives/click-outside/useEventListener/index.d.ts +1 -1
  156. package/dist/@types/packages/vue2/src/directives/click-outside/utils.d.ts +1 -1
  157. package/dist/@types/packages/vue2/src/directives/tooltip/tooltip.types.d.ts +1 -1
  158. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  159. package/dist/@types/packages/vue2/src/plugins/toastController.d.ts +1 -1
  160. package/dist/@types/packages/vue2/src/types/index.d.ts +0 -1
  161. package/dist/@types/packages/vue2/src/types/listbox.d.ts +1 -1
  162. package/dist/@types/packages/vue2/src/types/utils-events.d.ts +0 -1
  163. package/dist/@types/packages/vue2/src/utils/ts/aria-label.d.ts +1 -1
  164. package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
  165. package/dist/@types/packages/vue2/src/utils/ts/events.d.ts +1 -1
  166. package/dist/@types/packages/vue2/src/utils/ts/focus-trap.utils.d.ts +1 -1
  167. package/dist/accordion.js +1 -1
  168. package/dist/alert.js +34 -32
  169. package/dist/alert.js.map +1 -1
  170. package/dist/assets/arrow-left.css +1 -0
  171. package/dist/assets/base-button.css +1 -1
  172. package/dist/assets/button-actions.css +1 -1
  173. package/dist/assets/button.css +1 -1
  174. package/dist/assets/calendar.css +1 -1
  175. package/dist/assets/checkbox.css +1 -1
  176. package/dist/assets/controls-group.css +1 -1
  177. package/dist/assets/copy.css +1 -1
  178. package/dist/assets/dropdown-default-textbox.css +1 -1
  179. package/dist/assets/dropdown.css +1 -1
  180. package/dist/assets/error-message.css +1 -1
  181. package/dist/assets/footer-actions.css +1 -0
  182. package/dist/assets/grid-layout.css +1 -1
  183. package/dist/assets/index10.css +1 -1
  184. package/dist/assets/index11.css +1 -1
  185. package/dist/assets/index12.css +1 -1
  186. package/dist/assets/index13.css +1 -1
  187. package/dist/assets/index14.css +1 -1
  188. package/dist/assets/index15.css +1 -1
  189. package/dist/assets/index16.css +1 -1
  190. package/dist/assets/index17.css +1 -1
  191. package/dist/assets/index18.css +1 -1
  192. package/dist/assets/index19.css +1 -1
  193. package/dist/assets/index2.css +1 -1
  194. package/dist/assets/index20.css +1 -1
  195. package/dist/assets/index21.css +1 -1
  196. package/dist/assets/index22.css +1 -1
  197. package/dist/assets/index23.css +1 -1
  198. package/dist/assets/index24.css +1 -1
  199. package/dist/assets/index25.css +1 -1
  200. package/dist/assets/index26.css +1 -1
  201. package/dist/assets/index27.css +1 -1
  202. package/dist/assets/index28.css +1 -1
  203. package/dist/assets/index29.css +1 -1
  204. package/dist/assets/index3.css +1 -1
  205. package/dist/assets/index30.css +1 -1
  206. package/dist/assets/index31.css +1 -1
  207. package/dist/assets/index32.css +1 -1
  208. package/dist/assets/index33.css +1 -1
  209. package/dist/assets/index34.css +1 -1
  210. package/dist/assets/index35.css +1 -1
  211. package/dist/assets/index36.css +1 -1
  212. package/dist/assets/index37.css +1 -1
  213. package/dist/assets/index38.css +1 -1
  214. package/dist/assets/index39.css +1 -1
  215. package/dist/assets/index4.css +1 -1
  216. package/dist/assets/index40.css +1 -0
  217. package/dist/assets/index41.css +1 -0
  218. package/dist/assets/index5.css +1 -1
  219. package/dist/assets/index6.css +1 -1
  220. package/dist/assets/index7.css +1 -1
  221. package/dist/assets/index8.css +1 -1
  222. package/dist/assets/index9.css +1 -1
  223. package/dist/assets/listbox-option-tag.css +1 -1
  224. package/dist/assets/listbox.css +1 -1
  225. package/dist/assets/loading-button.css +1 -1
  226. package/dist/assets/tooltip.css +1 -1
  227. package/dist/avatar-image.js +1 -1
  228. package/dist/button.js +3 -3
  229. package/dist/card.js +33 -31
  230. package/dist/card.js.map +1 -1
  231. package/dist/checkbox.js +93 -84
  232. package/dist/checkbox.js.map +1 -1
  233. package/dist/chunks/arrow-left.1d5d08bd.js +26 -0
  234. package/dist/chunks/arrow-left.1d5d08bd.js.map +1 -0
  235. package/dist/chunks/{base-button.16e8bb2c.js → base-button.ebd7c02e.js} +2 -2
  236. package/dist/chunks/{base-button.16e8bb2c.js.map → base-button.ebd7c02e.js.map} +1 -1
  237. package/dist/chunks/{button-actions.bcaea94e.js → button-actions.075932ac.js} +10 -10
  238. package/dist/chunks/{button-actions.bcaea94e.js.map → button-actions.075932ac.js.map} +1 -1
  239. package/dist/chunks/{button.34695c2c.js → button.be42b512.js} +11 -11
  240. package/dist/chunks/button.be42b512.js.map +1 -0
  241. package/dist/chunks/{calendar.a32d5783.js → calendar.2d5aa882.js} +6 -6
  242. package/dist/chunks/calendar.2d5aa882.js.map +1 -0
  243. package/dist/chunks/{checkbox.5d8f5768.js → checkbox.f6548e4f.js} +3 -3
  244. package/dist/chunks/{checkbox.5d8f5768.js.map → checkbox.f6548e4f.js.map} +1 -1
  245. package/dist/chunks/controls-group.62e35aef.js +87 -0
  246. package/dist/chunks/controls-group.62e35aef.js.map +1 -0
  247. package/dist/chunks/{copy.f49481e9.js → copy.6081b6ec.js} +3 -3
  248. package/dist/chunks/{copy.f49481e9.js.map → copy.6081b6ec.js.map} +1 -1
  249. package/dist/chunks/{dropdown-default-textbox.b7a68bb4.js → dropdown-default-textbox.35029df1.js} +32 -30
  250. package/dist/chunks/dropdown-default-textbox.35029df1.js.map +1 -0
  251. package/dist/chunks/{dropdown.0c80d6c1.js → dropdown.9681d483.js} +176 -171
  252. package/dist/chunks/dropdown.9681d483.js.map +1 -0
  253. package/dist/chunks/{error-message.fa27bee9.js → error-message.588e0cf6.js} +2 -2
  254. package/dist/chunks/{error-message.fa27bee9.js.map → error-message.588e0cf6.js.map} +1 -1
  255. package/dist/chunks/footer-actions.63766096.js +98 -0
  256. package/dist/chunks/footer-actions.63766096.js.map +1 -0
  257. package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
  258. package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
  259. package/dist/chunks/{index.ec1c7120.js → index.0a747d58.js} +200 -194
  260. package/dist/chunks/{index.ec1c7120.js.map → index.0a747d58.js.map} +1 -1
  261. package/dist/chunks/{index.875ba379.js → index.4d3472d3.js} +33 -32
  262. package/dist/chunks/{index.875ba379.js.map → index.4d3472d3.js.map} +1 -1
  263. package/dist/chunks/{index.695c11ef.js → index.96e2f563.js} +2 -2
  264. package/dist/chunks/{index.695c11ef.js.map → index.96e2f563.js.map} +1 -1
  265. package/dist/chunks/{index.36bd0bb1.js → index.a374cb78.js} +3 -3
  266. package/dist/chunks/{index.36bd0bb1.js.map → index.a374cb78.js.map} +1 -1
  267. package/dist/chunks/{index.16f60189.js → index.b56bf100.js} +6 -6
  268. package/dist/chunks/{index.16f60189.js.map → index.b56bf100.js.map} +1 -1
  269. package/dist/chunks/{index.2066e16f.js → index.e3c7b9ee.js} +16 -15
  270. package/dist/chunks/index.e3c7b9ee.js.map +1 -0
  271. package/dist/chunks/{listbox-option-tag.ac8eae9a.js → listbox-option-tag.e5a28267.js} +3 -3
  272. package/dist/chunks/{listbox-option-tag.ac8eae9a.js.map → listbox-option-tag.e5a28267.js.map} +1 -1
  273. package/dist/chunks/{listbox.4ea4114c.js → listbox.140e447a.js} +179 -178
  274. package/dist/chunks/listbox.140e447a.js.map +1 -0
  275. package/dist/chunks/{loading-button.3fa1b7a8.js → loading-button.80bba4ca.js} +10 -10
  276. package/dist/chunks/loading-button.80bba4ca.js.map +1 -0
  277. package/dist/chunks/{tooltip.807205c0.js → tooltip.680d6038.js} +2 -2
  278. package/dist/chunks/tooltip.680d6038.js.map +1 -0
  279. package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
  280. package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
  281. package/dist/chunks/useCountryItems.5d7b436e.js.map +1 -1
  282. package/dist/code-snippet.js +132 -130
  283. package/dist/code-snippet.js.map +1 -1
  284. package/dist/country.js +148 -172
  285. package/dist/country.js.map +1 -1
  286. package/dist/currency.js +1 -1
  287. package/dist/currency.js.map +1 -1
  288. package/dist/data-grid.js +495 -512
  289. package/dist/data-grid.js.map +1 -1
  290. package/dist/date-picker.js +81 -75
  291. package/dist/date-picker.js.map +1 -1
  292. package/dist/date-range-picker.js +2 -2
  293. package/dist/date.js +1 -1
  294. package/dist/divider.js +1 -1
  295. package/dist/dropdown.js +72 -67
  296. package/dist/dropdown.js.map +1 -1
  297. package/dist/filter-bar.js +268 -265
  298. package/dist/filter-bar.js.map +1 -1
  299. package/dist/focus-trap.js +1 -1
  300. package/dist/form-layout.js +174 -0
  301. package/dist/form-layout.js.map +1 -0
  302. package/dist/header.js +30 -30
  303. package/dist/header.js.map +1 -1
  304. package/dist/index.js +193 -184
  305. package/dist/index.js.map +1 -1
  306. package/dist/info-icon.js +13 -12
  307. package/dist/info-icon.js.map +1 -1
  308. package/dist/input-field.js +82 -76
  309. package/dist/input-field.js.map +1 -1
  310. package/dist/internal.js +6 -6
  311. package/dist/link.js +12 -12
  312. package/dist/link.js.map +1 -1
  313. package/dist/loading-indicator.js +1 -1
  314. package/dist/menu.js +5 -5
  315. package/dist/menu.js.map +1 -1
  316. package/dist/modal.js +204 -321
  317. package/dist/modal.js.map +1 -1
  318. package/dist/pagination.js +4 -4
  319. package/dist/payment-method.js +12 -11
  320. package/dist/payment-method.js.map +1 -1
  321. package/dist/popover.js +5 -5
  322. package/dist/popover.js.map +1 -1
  323. package/dist/popper-container.js +14 -14
  324. package/dist/popper-container.js.map +1 -1
  325. package/dist/radio-group.js +98 -100
  326. package/dist/radio-group.js.map +1 -1
  327. package/dist/search-bar.js +2 -2
  328. package/dist/segmented-control.js +4 -4
  329. package/dist/sidepanel.js +218 -0
  330. package/dist/sidepanel.js.map +1 -0
  331. package/dist/status.js +9 -9
  332. package/dist/status.js.map +1 -1
  333. package/dist/structured-list.js +1 -1
  334. package/dist/summary-grid.js +101 -88
  335. package/dist/summary-grid.js.map +1 -1
  336. package/dist/tabs.js +3 -3
  337. package/dist/tabs.js.map +1 -1
  338. package/dist/tag.js +13 -13
  339. package/dist/tag.js.map +1 -1
  340. package/dist/textarea.js +86 -80
  341. package/dist/textarea.js.map +1 -1
  342. package/dist/timeline.js +24 -24
  343. package/dist/timeline.js.map +1 -1
  344. package/dist/toast.js +3 -3
  345. package/dist/toggle.js +117 -2
  346. package/dist/toggle.js.map +1 -1
  347. package/dist/typography.js +1 -1
  348. package/dist/web-types.json +512 -130
  349. package/package.json +11 -8
  350. package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
  351. package/dist/@types/packages/vue2/src/types/label-position.d.ts +0 -4
  352. package/dist/chunks/button.34695c2c.js.map +0 -1
  353. package/dist/chunks/calendar.a32d5783.js.map +0 -1
  354. package/dist/chunks/controls-group.e607b021.js +0 -64
  355. package/dist/chunks/controls-group.e607b021.js.map +0 -1
  356. package/dist/chunks/dropdown-default-textbox.b7a68bb4.js.map +0 -1
  357. package/dist/chunks/dropdown.0c80d6c1.js.map +0 -1
  358. package/dist/chunks/index.2066e16f.js.map +0 -1
  359. package/dist/chunks/index.f55a6913.js +0 -121
  360. package/dist/chunks/index.f55a6913.js.map +0 -1
  361. package/dist/chunks/listbox.4ea4114c.js.map +0 -1
  362. package/dist/chunks/loading-button.3fa1b7a8.js.map +0 -1
  363. package/dist/chunks/tooltip.807205c0.js.map +0 -1
@@ -1,36 +1,37 @@
1
- import { ref as u, computed as p, defineComponent as M, watch as q, toRef as F, nextTick as T } from "vue";
2
- import { BentoPopover as Y, BentoPopoverPositions as L } from "./popover.js";
3
- import { g as d } from "./chunks/unique-id.a2a2b458.js";
4
- import { B as W, a as $, b as K } from "./chunks/index.2066e16f.js";
5
- import { u as x } from "./chunks/i18n.155748d6.js";
6
- import { f as E } from "./chunks/index.875ba379.js";
7
- import { e as _, d as j, f as z } from "./chunks/index.f55fdc32.js";
8
- import { D as B, v as G, f as H } from "./chunks/date-input.9186a0bf.js";
9
- import { d as J } from "./chunks/debounce.f8d92e44.js";
10
- import { C as k } from "./chunks/calendar.a32d5783.js";
11
- import { b as Se } from "./chunks/calendar.a32d5783.js";
12
- import { c as Q } from "./chunks/dropdown-default-textbox.b7a68bb4.js";
13
- import { E as X } from "./chunks/error-message.fa27bee9.js";
14
- import { B as Z } from "./chunks/directive.0408e565.js";
15
- import { n as ee } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
16
- import "./assets/index6.css";
17
- var i = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(i || {});
18
- const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
19
- const { locale: t, t: n } = x(), f = { de: j, enUS: _, fr: z }, l = u(null);
1
+ import { ref as u, computed as p, defineComponent as q, toRef as T, watch as L, nextTick as B } from "vue";
2
+ import { c as Y } from "./chunks/dropdown-default-textbox.35029df1.js";
3
+ import { BentoPopover as W, BentoPopoverPositions as $ } from "./popover.js";
4
+ import { g as c } from "./chunks/unique-id.a2a2b458.js";
5
+ import { B as K, a as j, b as z } from "./chunks/index.e3c7b9ee.js";
6
+ import { u as O } from "./chunks/i18n.155748d6.js";
7
+ import { f as E } from "./chunks/index.4d3472d3.js";
8
+ import { e as _, d as G, f as H } from "./chunks/index.f55fdc32.js";
9
+ import { D as x, v as J, f as Q } from "./chunks/date-input.9186a0bf.js";
10
+ import { d as X } from "./chunks/debounce.f8d92e44.js";
11
+ import { u as Z } from "./chunks/use-form-layout-loading.d03e5d48.js";
12
+ import { C as k } from "./chunks/calendar.2d5aa882.js";
13
+ import { b as Re } from "./chunks/calendar.2d5aa882.js";
14
+ import { E as ee } from "./chunks/error-message.588e0cf6.js";
15
+ import { B as ae } from "./chunks/directive.0408e565.js";
16
+ import { n as te } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
17
+ import "./assets/index10.css";
18
+ var l = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(l || {});
19
+ const re = ({ datePickerValue: a, isDateIncorrect: e }) => {
20
+ const { locale: t, t: n } = O(), f = { de: G, enUS: _, fr: H }, i = u(null);
20
21
  return {
21
22
  // Values
22
- dateDisplayValue: p(() => e.value ? l.value : a.value ? E(a.value, B.FULL_DATE, {
23
+ dateDisplayValue: p(() => e.value ? i.value : a.value ? E(a.value, x.FULL_DATE, {
23
24
  locale: f[t.value.substring(0, 2)] || _
24
25
  }) : n("selectDate")),
25
- textInputValue: l,
26
+ textInputValue: i,
26
27
  // Methods
27
28
  formatTextInputDisplayValue: (D = a.value) => {
28
- e.value || (l.value = D ? E(D, B.NUMERIC_DATE_YEAR_FIRST, {
29
+ e.value || (i.value = D ? E(D, x.NUMERIC_DATE_YEAR_FIRST, {
29
30
  locale: f[t.value.substring(0, 2)] || _
30
31
  }) : null);
31
32
  }
32
33
  };
33
- }, te = {
34
+ }, ne = {
34
35
  "en-US": {
35
36
  optional: "optional",
36
37
  required: "required",
@@ -40,17 +41,17 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
40
41
  selectedDateIsNotAvailable: "Selected date is not available",
41
42
  datePicker: "Date picker"
42
43
  }
43
- }, re = 1e3, ne = M({
44
- i18n: { messages: te },
44
+ }, oe = 1e3, le = q({
45
+ i18n: { messages: ne },
45
46
  name: "bento-date-picker",
46
47
  components: {
47
- BentoTypography: W,
48
- BentoPopover: Y,
48
+ BentoTypography: K,
49
+ BentoPopover: W,
49
50
  Calendar: k,
50
- ErrorMessage: X,
51
- DropdownInputDefault: Q
51
+ ErrorMessage: ee,
52
+ DropdownInputDefault: Y
52
53
  },
53
- directives: { BentoClickOutsideDirective: Z },
54
+ directives: { BentoClickOutsideDirective: ae },
54
55
  props: {
55
56
  /**
56
57
  * Descriptive supporting text visbile underneath the dropdown.
@@ -80,6 +81,10 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
80
81
  * Highlights the dropdown is optional.
81
82
  */
82
83
  optional: { type: Boolean, default: !1 },
84
+ /**
85
+ * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date picker.
86
+ */
87
+ readonly: { type: Boolean, default: !1 },
83
88
  /**
84
89
  * Highlights the dropdown is required.
85
90
  */
@@ -89,97 +94,98 @@ const ae = ({ datePickerValue: a, isDateIncorrect: e }) => {
89
94
  */
90
95
  value: { type: [Date, Object], default: null }
91
96
  },
92
- emits: [i.INPUT],
97
+ emits: [l.INPUT],
93
98
  setup(a, { emit: e }) {
94
- const { t } = x(), n = d("bento-date-picker-container"), f = d("bento-date-picker-label"), l = d("bento-date-picker-description"), b = d("bento-date-picker-error"), v = d("bento-date-picker-date-error"), D = p(() => a.label || t("datePicker", { name: n })), g = u(null), S = u(null), o = u(!1), s = u(!1);
95
- q(
99
+ const { t } = O(), n = c("bento-date-picker-container"), f = c("bento-date-picker-label"), i = c("bento-date-picker-description"), m = c("bento-date-picker-error"), y = c("bento-date-picker-date-error"), D = p(() => a.label || t("datePicker", { name: n })), g = u(null), S = u(null), o = u(!1), s = u(!1), { isReadOnly: h } = Z(T(a, "readonly"));
100
+ L(
96
101
  () => a.disabled,
97
102
  (r) => {
98
103
  r && s.value && (s.value = !1);
99
104
  }
100
105
  );
101
- const { dateDisplayValue: O, textInputValue: c, formatTextInputDisplayValue: I } = ae({
102
- datePickerValue: F(a, "value"),
106
+ const { dateDisplayValue: R, textInputValue: d, formatTextInputDisplayValue: I } = re({
107
+ datePickerValue: T(a, "value"),
103
108
  isDateIncorrect: o
104
- }), m = p(() => a.isDateDisabled && a.isDateDisabled(new Date(c.value)) ? t("selectedDateIsNotAvailable") : o.value ? t("provideDateInAFormat") : null), h = p(() => ({
105
- "b-date-picker__description--error": a.errorMessage || m.value
106
- })), w = p(
107
- () => `${a.description ? l : ""} ${a.errorMessage ? b : ""} ${m.value ? v : ""}`.trim() || null
108
- ), N = (r) => a.isDateDisabled ? !a.isDateDisabled(r) : !0, P = () => {
109
+ }), v = p(() => a.isDateDisabled && a.isDateDisabled(new Date(d.value)) ? t("selectedDateIsNotAvailable") : o.value ? t("provideDateInAFormat") : null), w = p(() => ({
110
+ "b-date-picker__description--error": a.errorMessage || v.value
111
+ })), N = p(
112
+ () => `${a.description ? i : ""} ${a.errorMessage ? m : ""} ${v.value ? y : ""}`.trim() || null
113
+ ), V = (r) => a.isDateDisabled ? !a.isDateDisabled(r) : !0, P = () => {
109
114
  s.value = !1;
110
115
  }, C = () => {
111
116
  s.value = !0, I();
112
- }, R = (r) => {
113
- o.value = !1, P(), e(i.INPUT, r);
114
- }, V = async () => {
115
- o.value && (o.value = !1, c.value = null), e(i.INPUT, null);
116
117
  }, A = (r) => {
117
- G(r);
118
- }, U = J((r) => {
118
+ o.value = !1, P(), e(l.INPUT, r);
119
+ }, U = async () => {
120
+ o.value && (o.value = !1, d.value = null), e(l.INPUT, null);
121
+ }, M = (r) => {
122
+ J(r);
123
+ }, F = X((r) => {
119
124
  if (r.length < 10)
120
125
  return;
121
- /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(r) && N(new Date(r)) ? (o.value = !1, e(i.INPUT, new Date(r))) : r && (o.value = !0, e(i.INPUT, null));
122
- }, re);
126
+ /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(r) && V(new Date(r)) ? (o.value = !1, e(l.INPUT, new Date(r))) : r && (o.value = !0, e(l.INPUT, null));
127
+ }, oe);
123
128
  return {
124
129
  // Refs
125
130
  inputContainerRef: S,
126
131
  calendarContainerRef: g,
127
132
  // Values,
128
- dateDisplayValue: O,
133
+ dateDisplayValue: R,
129
134
  datePickerContainerId: n,
130
- descriptionConditionalClasses: h,
135
+ descriptionConditionalClasses: w,
131
136
  isDateIncorrect: o,
132
137
  isDatePickerOpen: s,
133
- dateErrorText: m,
138
+ isReadOnly: h,
139
+ dateErrorText: v,
134
140
  labelId: f,
135
- descriptionId: l,
136
- errorId: b,
137
- dateErrorId: v,
141
+ descriptionId: i,
142
+ errorId: m,
143
+ dateErrorId: y,
138
144
  popoverAriaLabel: D,
139
- ariaDescribedBy: w,
140
- textInputValue: c,
145
+ ariaDescribedBy: N,
146
+ textInputValue: d,
141
147
  // Enums
142
- BentoTypographyElement: $,
143
- BentoTypographyVariant: K,
144
- BentoPopoverPositions: L,
148
+ BentoTypographyElement: j,
149
+ BentoTypographyVariant: z,
150
+ BentoPopoverPositions: $,
145
151
  // Events
146
152
  closeDatePicker: P,
147
- clearDatePickerValue: V,
148
- onDateSelected: R,
153
+ clearDatePickerValue: U,
154
+ onDateSelected: A,
149
155
  openDatePicker: C,
150
- onDateKeyDown: A,
156
+ onDateKeyDown: M,
151
157
  onDateInputChange: (r) => {
152
- c.value = H(r), U(c.value);
158
+ d.value = Q(r), F(d.value);
153
159
  },
154
160
  // Keyboard navigation
155
161
  onSpaceBarOrEnter: async (r) => {
156
- var y;
157
- s.value || (r.preventDefault(), C(), await T(), a.value || (I(/* @__PURE__ */ new Date()), e(i.INPUT, /* @__PURE__ */ new Date()), await T()), (y = g.value) == null || y.$refs.calendarRef[0].focusOnDate(a.value));
162
+ var b;
163
+ s.value || (r.preventDefault(), C(), await B(), a.value || (I(/* @__PURE__ */ new Date()), e(l.INPUT, /* @__PURE__ */ new Date()), await B()), (b = g.value) == null || b.$refs.calendarRef[0].focusOnDate(a.value));
158
164
  }
159
165
  };
160
166
  }
161
167
  });
162
- var oe = function() {
168
+ var ie = function() {
163
169
  var e = this, t = e._self._c;
164
170
  return e._self._setupProxy, 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(n) {
165
171
  return !n.type.indexOf("key") && e._k(n.keyCode, "space", 32, n.key, [" ", "Spacebar"]) ? null : e.onSpaceBarOrEnter.apply(null, arguments);
166
172
  }, function(n) {
167
173
  return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.onSpaceBarOrEnter.apply(null, arguments);
168
- }] } }, [e.label ? t("div", { staticClass: "b-date-picker__label", attrs: { id: e.labelId } }, [t("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? t("bento-typography", { staticClass: "b-date-picker__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? t("bento-typography", { staticClass: "b-date-picker__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), t("div", [t("dropdown-input-default", { ref: "inputContainerRef", attrs: { ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "dynamic-filtering": "", "is-invalid": !!e.errorMessage || !!e.dateErrorText, open: e.isDatePickerOpen, value: e.textInputValue, "display-value": e.dateDisplayValue, "debounce-time": 0 }, on: { input: e.onDateInputChange, open: e.openDatePicker, keydown: e.onDateKeyDown, clear: e.clearDatePickerValue, close: e.closeDatePicker } })], 1), e.dateErrorText ? t("error-message", { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : e._e(), e.errorMessage ? t("error-message", { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? t("bento-typography", { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? t("bento-popover", { staticClass: "b-date-picker__container", attrs: { id: e.datePickerContainerId, role: "dialog", open: e.isDatePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, "aria-modal": !0, position: e.BentoPopoverPositions.BOTTOM_START, "fit-content": "" } }, [t("calendar", { ref: "calendarContainerRef", attrs: { "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "number-of-months": 1, value: e.value }, on: { input: e.onDateSelected } })], 1) : e._e()], 1);
169
- }, ie = [], le = /* @__PURE__ */ ee(
170
- ne,
171
- oe,
174
+ }] } }, [e.label ? t("div", { staticClass: "b-date-picker__label", attrs: { id: e.labelId } }, [t("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? t("bento-typography", { staticClass: "b-date-picker__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? t("bento-typography", { staticClass: "b-date-picker__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), t("div", [t("dropdown-input-default", { ref: "inputContainerRef", attrs: { ariaControls: e.datePickerContainerId, ariaExpanded: e.isDatePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "dynamic-filtering": "", "is-invalid": !!e.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("error-message", { staticClass: "b-date-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.dateErrorText } }) : e._e(), e.errorMessage ? t("error-message", { staticClass: "b-date-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? t("bento-typography", { staticClass: "b-date-picker__description", class: e.descriptionConditionalClasses, attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? t("bento-popover", { staticClass: "b-date-picker__container", attrs: { id: e.datePickerContainerId, role: "dialog", open: e.isDatePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, "aria-modal": !0, position: e.BentoPopoverPositions.BOTTOM_START, "fit-content": "" } }, [t("calendar", { ref: "calendarContainerRef", attrs: { "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "number-of-months": 1, value: e.value }, on: { input: e.onDateSelected } })], 1) : e._e()], 1);
175
+ }, se = [], de = /* @__PURE__ */ te(
176
+ le,
172
177
  ie,
178
+ se,
173
179
  !1,
174
180
  null,
175
- "b198028b",
181
+ "a6d9e3d8",
176
182
  null,
177
183
  null
178
184
  );
179
- const Te = le.exports;
185
+ const xe = de.exports;
180
186
  export {
181
- Te as BentoDatePicker,
182
- i as BentoDatePickerEvent,
183
- Se as BentoDatePickerFirstDayOfWeek
187
+ xe as BentoDatePicker,
188
+ l as BentoDatePickerEvent,
189
+ Re as BentoDatePickerFirstDayOfWeek
184
190
  };
185
191
  //# sourceMappingURL=date-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.js","sources":["../src/components/date-picker/date-picker.types.ts","../src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../src/components/date-picker/date-picker.vue"],"sourcesContent":["export { CalendarFirstDayOfWeek as BentoDatePickerFirstDayOfWeek } from '@/internal';\nexport type {\n CalendarIsDateDisabled as BentoDatePickerIsDateDisabled,\n CalendarSingleDateValue as BentoDatePickerValue,\n} from '@/internal';\n\nexport enum BentoDatePickerEvent {\n INPUT = 'input',\n}\n","import { computed, ref } from 'vue';\nimport { de, enUS, fr } from 'date-fns/locale';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { DateFormat } from '@/types';\nimport format from 'date-fns/format';\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 */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({ datePickerValue, isDateIncorrect }) => {\n const { locale, t } = useI18n();\n const locales = { de, enUS, fr };\n\n const textInputValue = ref(null);\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 t('selectDate') as string;\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" if there's a valid date selected\n return format(datePickerValue.value as Date, DateFormat.FULL_DATE, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\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 textInputValue.value = dateToFormat\n ? format(dateToFormat, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : null;\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 <div v-if=\"label\" :id=\"labelId\" class=\"b-date-picker__label\">\n <bento-typography :el=\"BentoTypographyElement.SPAN\" stronger>{{ label }}</bento-typography>\n <bento-typography\n v-if=\"optional\"\n class=\"b-date-picker__label-requirement\"\n :el=\"BentoTypographyElement.SPAN\"\n >\n ({{ $t('optional') }})\n </bento-typography>\n <bento-typography\n v-if=\"required\"\n class=\"b-date-picker__label-requirement\"\n :el=\"BentoTypographyElement.SPAN\"\n >\n ({{ $t('required') }})\n </bento-typography>\n </div>\n\n <!-- Input -->\n <div>\n <dropdown-input-default\n ref=\"inputContainerRef\"\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 @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=\"BentoTypographyElement.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 :disable-focus-trap=\"true\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n :position=\"BentoPopoverPositions.BOTTOM_START\"\n fit-content\n >\n <calendar\n ref=\"calendarContainerRef\"\n :first-day-of-week=\"firstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"value\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, Ref, ref, toRef, watch } from 'vue';\n import { BentoClickOutsideDirective } from '@/directives';\n import { BentoDatePickerEvent, BentoDatePickerValue } from './date-picker.types';\n import { Calendar, ErrorMessage } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '../typography';\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { formatDateInputValue, validateDateInput } from '@/utils/ts/date-input';\n import { useI18n } from '@/utils/ts/i18n';\n import { debounce } from '@/utils/ts/debounce';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const DEBOUNCE_TIME = 1000;\n\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 defineComponent({\n i18n: { messages },\n name: 'bento-date-picker',\n components: {\n BentoTypography,\n BentoPopover,\n Calendar,\n ErrorMessage,\n DropdownInputDefault,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Descriptive supporting text visbile underneath the dropdown.\n */\n description: { type: String, default: undefined },\n\n /**\n * Disables dropdown functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Displays component in an error state with an error message\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n */\n firstDayOfWeek: Calendar.props.firstDayOfWeek,\n\n /**\n * Indicate if a date should be disabled or not\n */\n isDateDisabled: Calendar.props.isDateDisabled,\n\n /**\n * Text that is displayed as a label above the element.\n */\n label: { type: String, default: undefined },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Selected date\n */\n value: { type: [Date, Object] as PropType<BentoDatePickerValue>, default: null },\n },\n emits: [BentoDatePickerEvent.INPUT],\n setup(props, { emit }) {\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\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 const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: toRef(props, 'value') as Ref<Date>,\n isDateIncorrect,\n });\n\n const dateErrorText = computed(() => {\n if (props.isDateDisabled && props.isDateDisabled(new Date(textInputValue.value))) {\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 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 emit(BentoDatePickerEvent.INPUT, selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (isDateIncorrect.value) {\n isDateIncorrect.value = false;\n textInputValue.value = null;\n }\n emit(BentoDatePickerEvent.INPUT, null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n validateDateInput(event);\n };\n\n const validateDate = debounce((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 emit(BentoDatePickerEvent.INPUT, new Date(stringDate));\n } else if (stringDate) {\n // Only set to true if the value exists (not null/undefined)\n isDateIncorrect.value = true;\n emit(BentoDatePickerEvent.INPUT, null);\n }\n }, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = formatDateInputValue(stringDate);\n validateDate(textInputValue.value);\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 (!props.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emit(BentoDatePickerEvent.INPUT, new Date());\n\n // Wait for new value to be set with the emit\n await nextTick();\n }\n\n // Focus on date\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(props.value);\n };\n\n return {\n // Refs\n inputContainerRef,\n calendarContainerRef,\n\n // Values,\n dateDisplayValue,\n datePickerContainerId,\n descriptionConditionalClasses,\n isDateIncorrect,\n isDatePickerOpen,\n dateErrorText,\n labelId,\n descriptionId,\n errorId,\n dateErrorId,\n popoverAriaLabel,\n ariaDescribedBy,\n textInputValue,\n\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n BentoPopoverPositions,\n\n // Events\n closeDatePicker,\n clearDatePickerValue,\n onDateSelected,\n openDatePicker,\n onDateKeyDown,\n onDateInputChange,\n\n // Keyboard navigation\n onSpaceBarOrEnter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["BentoDatePickerEvent","BentoDatePickerEvent2","useDatePickerSingleCalendarText","datePickerValue","isDateIncorrect","locale","t","useI18n","locales","de","enUS","fr","textInputValue","ref","computed","format","DateFormat","dateToFormat","DEBOUNCE_TIME","_sfc_main","defineComponent","messages","BentoTypography","BentoPopover","Calendar","ErrorMessage","DropdownInputDefault","BentoClickOutsideDirective","props","emit","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","calendarContainerRef","inputContainerRef","isDatePickerOpen","watch","disabled","dateDisplayValue","formatTextInputDisplayValue","toRef","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","date","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDateInput","validateDate","debounce","stringDate","BentoTypographyElement","BentoTypographyVariant","BentoPopoverPositions","formatDateInputValue","nextTick","_a"],"mappings":";;;;;;;;;;;;;;;;AAMY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SADQA,IAAAD,KAAA,CAAA,CAAA;ACML,MAAAE,KAAA,CAAA,EAAA,iBAAAC,GAAA,iBAAAC,EAAA,MAAA;AACH,QAAA,EAAA,QAAAC,GAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAA,EAAA,IAAAC,GAAA,MAAAC,GAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAA,IAAA;AAoCA,SAAA;AAAA;AAAA,IAAO,kBAlCPC,EAAA,MAEIV,EAAA,QACIQ,EAAA,QAIJT,EAAA,QAKAY,EAAAZ,EAAA,OAAAa,EAAA,WAAA;AAAA,MAAmE,QAAAR,EAAAH,EAAA,MAAA,UAAA,GAAA,CAAA,CAAA,KAAAK;AAAA,IACd,CA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AA;AAAA,MAkEA,mBAxDA,OAAA4C,MAAA;;AACA,QAAAjB,EAAA,UAGAiB,EAAA,eAAA,GAEAL,EAAA,GAGA,MAAAc,EAAA,GAGArC,EAAA,UAEAe,EAAA,oBAAA,KAAA,CAAA,GACAd,EAAA7B,EAAA,OAAA,oBAAA,KAAA,CAAA,GAGA,MAAAiE,EAAA,KAIAC,IAAA7B,EAAA,UAAA,QAAA6B,EAAA,MAAA,YAAA,GAAA,YAAAtC,EAAA;AAAA,MAAA;AAAA,IAqCA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"date-picker.js","sources":["../src/components/date-picker/date-picker.types.ts","../src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../src/components/date-picker/date-picker.vue"],"sourcesContent":["export { CalendarFirstDayOfWeek as BentoDatePickerFirstDayOfWeek } from '@/internal';\nexport type {\n CalendarIsDateDisabled as BentoDatePickerIsDateDisabled,\n CalendarSingleDateValue as BentoDatePickerValue,\n} from '@/internal';\n\nexport enum BentoDatePickerEvent {\n INPUT = 'input',\n}\n","import { computed, ref } from 'vue';\nimport { de, enUS, fr } from 'date-fns/locale';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { DateFormat } from '@/types';\nimport format from 'date-fns/format';\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 */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({ datePickerValue, isDateIncorrect }) => {\n const { locale, t } = useI18n();\n const locales = { de, enUS, fr };\n\n const textInputValue = ref(null);\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 t('selectDate') as string;\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" if there's a valid date selected\n return format(datePickerValue.value as Date, DateFormat.FULL_DATE, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\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 textInputValue.value = dateToFormat\n ? format(dateToFormat, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : null;\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 <div v-if=\"label\" :id=\"labelId\" class=\"b-date-picker__label\">\n <bento-typography :el=\"BentoTypographyElement.SPAN\" stronger>{{ label }}</bento-typography>\n <bento-typography\n v-if=\"optional\"\n class=\"b-date-picker__label-requirement\"\n :el=\"BentoTypographyElement.SPAN\"\n >\n ({{ $t('optional') }})\n </bento-typography>\n <bento-typography\n v-if=\"required\"\n class=\"b-date-picker__label-requirement\"\n :el=\"BentoTypographyElement.SPAN\"\n >\n ({{ $t('required') }})\n </bento-typography>\n </div>\n\n <!-- Input -->\n <div>\n <dropdown-input-default\n ref=\"inputContainerRef\"\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=\"BentoTypographyElement.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 :disable-focus-trap=\"true\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n :position=\"BentoPopoverPositions.BOTTOM_START\"\n fit-content\n >\n <calendar\n ref=\"calendarContainerRef\"\n :first-day-of-week=\"firstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"value\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, Ref, ref, toRef, watch } from 'vue';\n import { BentoClickOutsideDirective } from '@/directives';\n import { BentoDatePickerEvent, BentoDatePickerValue } from './date-picker.types';\n import { Calendar, ErrorMessage } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '../typography';\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { formatDateInputValue, validateDateInput } from '@/utils/ts/date-input';\n import { useI18n } from '@/utils/ts/i18n';\n import { debounce } from '@/utils/ts/debounce';\n import { useFormLayoutFieldLoading } from '@/composables';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const DEBOUNCE_TIME = 1000;\n\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 defineComponent({\n i18n: { messages },\n name: 'bento-date-picker',\n components: {\n BentoTypography,\n BentoPopover,\n Calendar,\n ErrorMessage,\n DropdownInputDefault,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Descriptive supporting text visbile underneath the dropdown.\n */\n description: { type: String, default: undefined },\n\n /**\n * Disables dropdown functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Displays component in an error state with an error message\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n */\n firstDayOfWeek: Calendar.props.firstDayOfWeek,\n\n /**\n * Indicate if a date should be disabled or not\n */\n isDateDisabled: Calendar.props.isDateDisabled,\n\n /**\n * Text that is displayed as a label above the element.\n */\n label: { type: String, default: undefined },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date picker.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Selected date\n */\n value: { type: [Date, Object] as PropType<BentoDatePickerValue>, default: null },\n },\n emits: [BentoDatePickerEvent.INPUT],\n setup(props, { emit }) {\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 { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\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 const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: toRef(props, 'value') as Ref<Date>,\n isDateIncorrect,\n });\n\n const dateErrorText = computed(() => {\n if (props.isDateDisabled && props.isDateDisabled(new Date(textInputValue.value))) {\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 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 emit(BentoDatePickerEvent.INPUT, selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (isDateIncorrect.value) {\n isDateIncorrect.value = false;\n textInputValue.value = null;\n }\n emit(BentoDatePickerEvent.INPUT, null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n validateDateInput(event);\n };\n\n const validateDate = debounce((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 emit(BentoDatePickerEvent.INPUT, new Date(stringDate));\n } else if (stringDate) {\n // Only set to true if the value exists (not null/undefined)\n isDateIncorrect.value = true;\n emit(BentoDatePickerEvent.INPUT, null);\n }\n }, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = formatDateInputValue(stringDate);\n validateDate(textInputValue.value);\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 (!props.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emit(BentoDatePickerEvent.INPUT, new Date());\n\n // Wait for new value to be set with the emit\n await nextTick();\n }\n\n // Focus on date\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(props.value);\n };\n\n return {\n // Refs\n inputContainerRef,\n calendarContainerRef,\n\n // Values,\n dateDisplayValue,\n datePickerContainerId,\n descriptionConditionalClasses,\n isDateIncorrect,\n isDatePickerOpen,\n isReadOnly,\n dateErrorText,\n labelId,\n descriptionId,\n errorId,\n dateErrorId,\n popoverAriaLabel,\n ariaDescribedBy,\n textInputValue,\n\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n BentoPopoverPositions,\n\n // Events\n closeDatePicker,\n clearDatePickerValue,\n onDateSelected,\n openDatePicker,\n onDateKeyDown,\n onDateInputChange,\n\n // Keyboard navigation\n onSpaceBarOrEnter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["BentoDatePickerEvent","BentoDatePickerEvent2","useDatePickerSingleCalendarText","datePickerValue","isDateIncorrect","locale","t","useI18n","locales","de","enUS","fr","textInputValue","ref","computed","format","DateFormat","dateToFormat","DEBOUNCE_TIME","_sfc_main","defineComponent","messages","BentoTypography","BentoPopover","Calendar","ErrorMessage","DropdownInputDefault","BentoClickOutsideDirective","props","emit","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","calendarContainerRef","inputContainerRef","isDatePickerOpen","isReadOnly","useFormLayoutFieldLoading","toRef","watch","disabled","dateDisplayValue","formatTextInputDisplayValue","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","date","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDateInput","validateDate","debounce","stringDate","BentoTypographyElement","BentoTypographyVariant","BentoPopoverPositions","formatDateInputValue","nextTick","_a"],"mappings":";;;;;;;;;;;;;;;;;AAMY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SADQA,IAAAD,KAAA,CAAA,CAAA;ACML,MAAAE,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;AAAA,MACA,kBAAAQ;AAAA,MAGA,uBAAAf;AAAA,MACA,+BAAAkB;AAAA,MACA,iBAAA5C;AAAA,MACA,kBAAAmC;AAAA,MACA,YAAAC;AAAA,MACA,eAAAO;AAAA,MACA,SAAAf;AAAA,MACA,eAAAC;AAAA,MACA,SAAAC;AAAA,MACA,aAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,iBAAAa;AAAA,MACA,gBAAArC;AAAA;AAAA,MACA,wBAAAmD;AAAA,MAGA,wBAAAC;AAAA,MACA,uBAAAC;AAAA;AAAA,MACA,iBAAAb;AAAA,MAGA,sBAAAI;AAAA,MACA,gBAAAF;AAAA,MACA,gBAAAD;AAAA,MACA,eAAAI;AAAA,MACA,mBApEA,CAAAK,MAAA;AACA,QAAAlD,EAAA,QAAAsD,EAAAJ,CAAA,GACAF,EAAAhD,EAAA,KAAA;AAAA,MAAA;AAAA;AAAA,MAmEA,mBAzDA,OAAA8C,MAAA;;AACA,QAAAnB,EAAA,UAGAmB,EAAA,eAAA,GAEAL,EAAA,GAGA,MAAAc,EAAA,GAGAvC,EAAA,UAEAkB,EAAA,oBAAA,KAAA,CAAA,GACAjB,EAAA7B,EAAA,OAAA,oBAAA,KAAA,CAAA,GAGA,MAAAmE,EAAA,KAIAC,IAAA/B,EAAA,UAAA,QAAA+B,EAAA,MAAA,YAAA,GAAA,YAAAxC,EAAA;AAAA,MAAA;AAAA,IAsCA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
- import { B as t, a as r } from "./chunks/index.ec1c7120.js";
2
- import { b as o } from "./chunks/calendar.a32d5783.js";
1
+ import { B as t, a as r } from "./chunks/index.0a747d58.js";
2
+ import { b as o } from "./chunks/calendar.2d5aa882.js";
3
3
  export {
4
4
  t as BentoDateRangePicker,
5
5
  r as BentoDateRangePickerEvent,
package/dist/date.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, a as o } from "./chunks/index.875ba379.js";
1
+ import { B as e, a as o } from "./chunks/index.4d3472d3.js";
2
2
  export {
3
3
  e as BentoDate,
4
4
  o as BentoDateFormat
package/dist/divider.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, computed as n } from "vue";
2
2
  import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
- import "./assets/index29.css";
3
+ import "./assets/index12.css";
4
4
  const _ = i({
5
5
  name: "bento-divider",
6
6
  setup(a, { attrs: e }) {