@adyen/bento-vue3 1.84.2 → 1.85.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 (357) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +244 -130
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +5 -0
  5. package/dist/ai-tag.js.map +1 -0
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/ai-tag.css +1 -0
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/draggable-handle.css +1 -0
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/form-layout-title.css +1 -1
  20. package/dist/assets/inspector.css +1 -1
  21. package/dist/assets/layout-row.css +1 -1
  22. package/dist/assets/modal-fullscreen.css +1 -1
  23. package/dist/assets/radio-group.css +1 -1
  24. package/dist/assets/sidepanel.css +1 -1
  25. package/dist/assets/use-cached-selected-values.css +1 -1
  26. package/dist/button.js +2 -2
  27. package/dist/card.js +1 -1
  28. package/dist/checkbox.js +2 -2
  29. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  30. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  31. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  32. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  33. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  34. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  35. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  36. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  37. package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
  38. package/dist/chunks/action-bar.BlhZoFfL.js +209 -0
  39. package/dist/chunks/action-bar.BlhZoFfL.js.map +1 -0
  40. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  41. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  42. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  43. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  44. package/dist/chunks/ai-button.PAbhTT01.js +57 -0
  45. package/dist/chunks/ai-button.PAbhTT01.js.map +1 -0
  46. package/dist/chunks/ai-tag.CqMBHSfn.js +131 -0
  47. package/dist/chunks/ai-tag.CqMBHSfn.js.map +1 -0
  48. package/dist/chunks/alert.BYcw-u3b.js.map +1 -1
  49. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  50. package/dist/chunks/arrow-left.DoP6zFsY.js +29 -0
  51. package/dist/chunks/arrow-left.DoP6zFsY.js.map +1 -0
  52. package/dist/chunks/arrow-right.BVd1Dgd8.js +29 -0
  53. package/dist/chunks/arrow-right.BVd1Dgd8.js.map +1 -0
  54. package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js +44 -0
  55. package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js.map +1 -0
  56. package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
  57. package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
  58. package/dist/chunks/{base-modal.D3GyeCFT.js → base-modal.CNETR72d.js} +5 -5
  59. package/dist/chunks/{base-modal.D3GyeCFT.js.map → base-modal.CNETR72d.js.map} +1 -1
  60. package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
  61. package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js → button-actions-with-menu.DY0pTtk-.js} +3 -3
  62. package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js.map → button-actions-with-menu.DY0pTtk-.js.map} +1 -1
  63. package/dist/chunks/{button-actions.Crj4QFAd.js → button-actions.Dk8xU2cz.js} +2 -2
  64. package/dist/chunks/{button-actions.Crj4QFAd.js.map → button-actions.Dk8xU2cz.js.map} +1 -1
  65. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  66. package/dist/chunks/button.CSp48LJt.js.map +1 -1
  67. package/dist/chunks/{calendar.DKPx_cQU.js → calendar.Dbc0yjyg.js} +106 -100
  68. package/dist/chunks/{calendar.DKPx_cQU.js.map → calendar.Dbc0yjyg.js.map} +1 -1
  69. package/dist/chunks/{card.C_03IYJe.js → card.C7LbwK7Q.js} +2 -2
  70. package/dist/chunks/{card.C_03IYJe.js.map → card.C7LbwK7Q.js.map} +1 -1
  71. package/dist/chunks/{checkbox-group.DZrhxIHp.js → checkbox-group.CCpe-S-E.js} +4 -4
  72. package/dist/chunks/{checkbox-group.DZrhxIHp.js.map → checkbox-group.CCpe-S-E.js.map} +1 -1
  73. package/dist/chunks/{checkbox.BWgWtiLJ.js → checkbox.A35e7MsN.js} +3 -3
  74. package/dist/chunks/{checkbox.BWgWtiLJ.js.map → checkbox.A35e7MsN.js.map} +1 -1
  75. package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
  76. package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
  77. package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
  78. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
  79. package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
  80. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
  81. package/dist/chunks/{code-snippet.BX3Yeo0x.js → code-snippet.DKkTjYdC.js} +4 -4
  82. package/dist/chunks/{code-snippet.BX3Yeo0x.js.map → code-snippet.DKkTjYdC.js.map} +1 -1
  83. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
  84. package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
  85. package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
  86. package/dist/chunks/{controls-group.DpFv8c4E.js → controls-group.BHOKajou.js} +2 -2
  87. package/dist/chunks/{controls-group.DpFv8c4E.js.map → controls-group.BHOKajou.js.map} +1 -1
  88. package/dist/chunks/{copy.xg9ElNxd.js → copy.CgITv6wr.js} +3 -3
  89. package/dist/chunks/{copy.xg9ElNxd.js.map → copy.CgITv6wr.js.map} +1 -1
  90. package/dist/chunks/country.types.DaVCMxk-.js.map +1 -1
  91. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
  92. package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
  93. package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
  94. package/dist/chunks/cross.B92GxFTY.js.map +1 -1
  95. package/dist/chunks/currency.DijmAkAB.js.map +1 -1
  96. package/dist/chunks/{dashboard-section.D_k3_Z2T.js → dashboard-section.CrXdP_MQ.js} +3 -3
  97. package/dist/chunks/{dashboard-section.D_k3_Z2T.js.map → dashboard-section.CrXdP_MQ.js.map} +1 -1
  98. package/dist/chunks/{dashed-underline.B0z2ZZh7.js → dashed-underline.BzppJBtk.js} +3 -3
  99. package/dist/chunks/{dashed-underline.B0z2ZZh7.js.map → dashed-underline.BzppJBtk.js.map} +1 -1
  100. package/dist/chunks/{data-grid-template.DdIrvOXp.js → data-grid-template.DFjdgxwb.js} +3 -3
  101. package/dist/chunks/{data-grid-template.DdIrvOXp.js.map → data-grid-template.DFjdgxwb.js.map} +1 -1
  102. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  103. package/dist/chunks/{data-grid.CqtJp9rE.js → data-grid.KkCt0Bgm.js} +1064 -1065
  104. package/dist/chunks/data-grid.KkCt0Bgm.js.map +1 -0
  105. package/dist/chunks/date-input.BbZqj10S.js.map +1 -1
  106. package/dist/chunks/{date-picker.DGIwFh6T.js → date-picker.dQuj_OF_.js} +16 -16
  107. package/dist/chunks/{date-picker.DGIwFh6T.js.map → date-picker.dQuj_OF_.js.map} +1 -1
  108. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  109. package/dist/chunks/date-range-picker.BAKR_gDf.js +1100 -0
  110. package/dist/chunks/date-range-picker.BAKR_gDf.js.map +1 -0
  111. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  112. package/dist/chunks/date.CL55prL0.js.map +1 -1
  113. package/dist/chunks/de.DvtL0g75.js.map +1 -1
  114. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  115. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  116. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  117. package/dist/chunks/dialog-page.CF10AQQ3.js +158 -0
  118. package/dist/chunks/dialog-page.CF10AQQ3.js.map +1 -0
  119. package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
  120. package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
  121. package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
  122. package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
  123. package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
  124. package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
  125. package/dist/chunks/{dropdown-tag.Bf6TiNZw.js → dropdown-tag.CBgns9Y3.js} +3 -3
  126. package/dist/chunks/{dropdown-tag.Bf6TiNZw.js.map → dropdown-tag.CBgns9Y3.js.map} +1 -1
  127. package/dist/chunks/{dropdown.Dct8gr_q.js → dropdown.DmzMGz30.js} +22 -22
  128. package/dist/chunks/{dropdown.Dct8gr_q.js.map → dropdown.DmzMGz30.js.map} +1 -1
  129. package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
  130. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
  131. package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
  132. package/dist/chunks/es.bz0mzkMq.js.map +1 -1
  133. package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
  134. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  135. package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
  136. package/dist/chunks/{field-label.D7vU2Icm.js → field-label.OurHuGZS.js} +2 -2
  137. package/dist/chunks/{field-label.D7vU2Icm.js.map → field-label.OurHuGZS.js.map} +1 -1
  138. package/dist/chunks/{file-uploader.BmBKLzIx.js → file-uploader.CQgu9YIY.js} +4 -4
  139. package/dist/chunks/file-uploader.CQgu9YIY.js.map +1 -0
  140. package/dist/chunks/filter-bar.BJmaoSr2.js +4117 -0
  141. package/dist/chunks/filter-bar.BJmaoSr2.js.map +1 -0
  142. package/dist/chunks/{focus-trap.BaHvK7aT.js → focus-trap.DH57j-Ov.js} +2 -2
  143. package/dist/chunks/{focus-trap.BaHvK7aT.js.map → focus-trap.DH57j-Ov.js.map} +1 -1
  144. package/dist/chunks/{footer-actions.BqNvwVk7.js → footer-actions.BMggOsip.js} +2 -2
  145. package/dist/chunks/{footer-actions.BqNvwVk7.js.map → footer-actions.BMggOsip.js.map} +1 -1
  146. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  147. package/dist/chunks/{form-layout-title.CPsEzRzS.js → form-layout-title.wnvpIbOe.js} +2 -2
  148. package/dist/chunks/{form-layout-title.CPsEzRzS.js.map → form-layout-title.wnvpIbOe.js.map} +1 -1
  149. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  150. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
  151. package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
  152. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  153. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  154. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
  155. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
  156. package/dist/chunks/grab.B63hmf-_.js +26 -0
  157. package/dist/chunks/grab.B63hmf-_.js.map +1 -0
  158. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
  159. package/dist/chunks/{header-meta.PysBmkSU.js → header-meta.CkLmuprc.js} +8 -8
  160. package/dist/chunks/{header-meta.PysBmkSU.js.map → header-meta.CkLmuprc.js.map} +1 -1
  161. package/dist/chunks/{header-with-views.XzJCg2Ln.js → header-with-views.BXZmqtnz.js} +612 -630
  162. package/dist/chunks/header-with-views.BXZmqtnz.js.map +1 -0
  163. package/dist/chunks/{header.yMTOq8MR.js → header.RiaBKasj.js} +3 -3
  164. package/dist/chunks/{header.yMTOq8MR.js.map → header.RiaBKasj.js.map} +1 -1
  165. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  166. package/dist/chunks/{index.E60QniEu.js → index.CL07S4Wa.js} +3 -3
  167. package/dist/chunks/{index.E60QniEu.js.map → index.CL07S4Wa.js.map} +1 -1
  168. package/dist/chunks/index.pdBj0KQU.js.map +1 -1
  169. package/dist/chunks/{info-icon.BQDGteil.js → info-icon.B6wfo65e.js} +3 -3
  170. package/dist/chunks/{info-icon.BQDGteil.js.map → info-icon.B6wfo65e.js.map} +1 -1
  171. package/dist/chunks/info.BKwey1HA.js.map +1 -1
  172. package/dist/chunks/{input-field-password.Drp3Gn3x.js → input-field-password.ClyJRN6h.js} +6 -6
  173. package/dist/chunks/{input-field-password.Drp3Gn3x.js.map → input-field-password.ClyJRN6h.js.map} +1 -1
  174. package/dist/chunks/{input-field-phone-number.CcCrGAZb.js → input-field-phone-number.CUdzwXz0.js} +3 -3
  175. package/dist/chunks/{input-field-phone-number.CcCrGAZb.js.map → input-field-phone-number.CUdzwXz0.js.map} +1 -1
  176. package/dist/chunks/{input-field.CBegTqdQ.js → input-field.CFNofr-W.js} +3 -3
  177. package/dist/chunks/{input-field.CBegTqdQ.js.map → input-field.CFNofr-W.js.map} +1 -1
  178. package/dist/chunks/{inspector.Dox76eqN.js → inspector.I4-8J_fd.js} +3 -3
  179. package/dist/chunks/{inspector.Dox76eqN.js.map → inspector.I4-8J_fd.js.map} +1 -1
  180. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  181. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  182. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  183. package/dist/chunks/isSameWeek.5sjhTHiU.js +14 -0
  184. package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.5sjhTHiU.js.map} +1 -1
  185. package/dist/chunks/{it.Oaj6BklL.js → it.DEniTaO2.js} +2 -2
  186. package/dist/chunks/{it.Oaj6BklL.js.map → it.DEniTaO2.js.map} +1 -1
  187. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
  188. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  189. package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
  190. package/dist/chunks/{layout-row.CX8kV_w0.js → layout-row.Ccw24NzW.js} +3 -3
  191. package/dist/chunks/layout-row.Ccw24NzW.js.map +1 -0
  192. package/dist/chunks/link.BLCQlEZU.js.map +1 -1
  193. package/dist/chunks/{listbox-option-tag.BQZJF00q.js → listbox-option-tag.BHQiD5oC.js} +2 -2
  194. package/dist/chunks/{listbox-option-tag.BQZJF00q.js.map → listbox-option-tag.BHQiD5oC.js.map} +1 -1
  195. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
  196. package/dist/chunks/match.CMBZxEs9.js.map +1 -1
  197. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  198. package/dist/chunks/{modal-fullscreen.BXjxVsAq.js → modal-fullscreen.f445bZ94.js} +4 -4
  199. package/dist/chunks/{modal-fullscreen.BXjxVsAq.js.map → modal-fullscreen.f445bZ94.js.map} +1 -1
  200. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js} +4 -4
  201. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map} +1 -1
  202. package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
  203. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  204. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  205. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  206. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  207. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  208. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  209. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  210. package/dist/chunks/{pagination.BofKoYTB.js → pagination.DuRU9Xg_.js} +2 -2
  211. package/dist/chunks/{pagination.BofKoYTB.js.map → pagination.DuRU9Xg_.js.map} +1 -1
  212. package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
  213. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  214. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  215. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  216. package/dist/chunks/popover.types.BbYumG-N.js +6 -0
  217. package/dist/chunks/{popover.types.DgfeurkF.js.map → popover.types.BbYumG-N.js.map} +1 -1
  218. package/dist/chunks/{popper-container.I9gzp1NR.js → popper-container.DdG_YvVF.js} +2 -2
  219. package/dist/chunks/{popper-container.I9gzp1NR.js.map → popper-container.DdG_YvVF.js.map} +1 -1
  220. package/dist/chunks/{promo-banner.BIRH5sVX.js → promo-banner.DzIYjBfG.js} +2 -2
  221. package/dist/chunks/{promo-banner.BIRH5sVX.js.map → promo-banner.DzIYjBfG.js.map} +1 -1
  222. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
  223. package/dist/chunks/{radio-group.BqsQRDjs.js → radio-group.EqsvAKt2.js} +4 -4
  224. package/dist/chunks/{radio-group.BqsQRDjs.js.map → radio-group.EqsvAKt2.js.map} +1 -1
  225. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
  226. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  227. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  228. package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
  229. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  230. package/dist/chunks/{rich-text-editor.Bafyvjc3.js → rich-text-editor.-JS_rIjs.js} +4 -4
  231. package/dist/chunks/{rich-text-editor.Bafyvjc3.js.map → rich-text-editor.-JS_rIjs.js.map} +1 -1
  232. package/dist/chunks/{search-bar.DrkPxPDP.js → search-bar.DPc0omnd.js} +3 -3
  233. package/dist/chunks/{search-bar.DrkPxPDP.js.map → search-bar.DPc0omnd.js.map} +1 -1
  234. package/dist/chunks/search.PczW-onY.js.map +1 -1
  235. package/dist/chunks/{secondary-nav.C0_VfFa9.js → secondary-nav.BGKR8l0u.js} +3 -3
  236. package/dist/chunks/{secondary-nav.C0_VfFa9.js.map → secondary-nav.BGKR8l0u.js.map} +1 -1
  237. package/dist/chunks/{segmented-control.CFlHfj3N.js → segmented-control.CFPAl4HD.js} +2 -2
  238. package/dist/chunks/{segmented-control.CFlHfj3N.js.map → segmented-control.CFPAl4HD.js.map} +1 -1
  239. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  240. package/dist/chunks/{selection-card-group.DNPlEqEq.js → selection-card-group.BL0LTYhI.js} +4 -4
  241. package/dist/chunks/{selection-card-group.DNPlEqEq.js.map → selection-card-group.BL0LTYhI.js.map} +1 -1
  242. package/dist/chunks/show.CT4Augxb.js.map +1 -1
  243. package/dist/chunks/{sidepanel.RJihFo_R.js → sidepanel.sWMdYcUC.js} +5 -5
  244. package/dist/chunks/{sidepanel.RJihFo_R.js.map → sidepanel.sWMdYcUC.js.map} +1 -1
  245. package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.CM1KIrNi.js} +2 -2
  246. package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.CM1KIrNi.js.map} +1 -1
  247. package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
  248. package/dist/chunks/step.DpgnDx29.js.map +1 -1
  249. package/dist/chunks/{structured-list-item.B-hdp7rW.js → structured-list-item.Uky_MJPp.js} +4 -4
  250. package/dist/chunks/{structured-list-item.B-hdp7rW.js.map → structured-list-item.Uky_MJPp.js.map} +1 -1
  251. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  252. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  253. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  254. package/dist/chunks/{summary-grid.types.BVLRSBAF.js → summary-grid.types.R-TEtkgx.js} +5 -5
  255. package/dist/chunks/{summary-grid.types.BVLRSBAF.js.map → summary-grid.types.R-TEtkgx.js.map} +1 -1
  256. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
  257. package/dist/chunks/tab.JPngc9oS.js.map +1 -1
  258. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  259. package/dist/chunks/{tag.DFJIvNLs.js → tag.CNN_D55j.js} +2 -2
  260. package/dist/chunks/{tag.DFJIvNLs.js.map → tag.CNN_D55j.js.map} +1 -1
  261. package/dist/chunks/{textarea.CEDkF8BB.js → textarea.BGcYYD8C.js} +2 -2
  262. package/dist/chunks/{textarea.CEDkF8BB.js.map → textarea.BGcYYD8C.js.map} +1 -1
  263. package/dist/chunks/{timeline-item.BxGaSGLf.js → timeline-item.Cbd_rb9J.js} +6 -6
  264. package/dist/chunks/{timeline-item.BxGaSGLf.js.map → timeline-item.Cbd_rb9J.js.map} +1 -1
  265. package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
  266. package/dist/chunks/{tooltip.Nn3o8_vO.js → tooltip.CqV3Okcs.js} +2 -2
  267. package/dist/chunks/{tooltip.Nn3o8_vO.js.map → tooltip.CqV3Okcs.js.map} +1 -1
  268. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  269. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js} +28 -28
  270. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map} +1 -1
  271. package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
  272. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  273. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  274. package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
  275. package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js → use-cached-selected-values.iGHt7ROs.js} +15 -15
  276. package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js.map → use-cached-selected-values.iGHt7ROs.js.map} +1 -1
  277. package/dist/chunks/use-country-items.JZCYNoW7.js.map +1 -1
  278. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  279. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  280. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  281. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  282. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  283. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
  284. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  285. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  286. package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.CgIooHto.js} +2 -2
  287. package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.CgIooHto.js.map} +1 -1
  288. package/dist/code-snippet.js +1 -1
  289. package/dist/dashboard-template.js +1 -1
  290. package/dist/dashed-underline.js +1 -1
  291. package/dist/data-grid-template.js +1 -1
  292. package/dist/data-grid.js +6 -5
  293. package/dist/date-picker.js +2 -2
  294. package/dist/date-range-picker.js +2 -2
  295. package/dist/draggable-handle.js +163 -0
  296. package/dist/draggable-handle.js.map +1 -0
  297. package/dist/dropdown.js +3 -3
  298. package/dist/file-uploader.js +1 -1
  299. package/dist/filter-bar.js +1 -1
  300. package/dist/focus-trap.js +1 -1
  301. package/dist/form-layout.js +1 -1
  302. package/dist/header-with-views.js +1 -1
  303. package/dist/header.js +1 -1
  304. package/dist/index.js +319 -315
  305. package/dist/index.js.map +1 -1
  306. package/dist/info-icon.js +1 -1
  307. package/dist/input-field-password.js +1 -1
  308. package/dist/input-field-phone-number.js +1 -1
  309. package/dist/input-field.js +1 -1
  310. package/dist/inspector.js +1 -1
  311. package/dist/internal.js +11 -11
  312. package/dist/layout.js +1 -1
  313. package/dist/menu.js +1 -1
  314. package/dist/modal-fullscreen.js +1 -1
  315. package/dist/modal.js +2 -2
  316. package/dist/pagination.js +1 -1
  317. package/dist/popover.js +2 -2
  318. package/dist/popper-container.js +1 -1
  319. package/dist/promo-banner.js +1 -1
  320. package/dist/radio-group.js +1 -1
  321. package/dist/rich-text-editor.js +1 -1
  322. package/dist/search-bar.js +2 -2
  323. package/dist/secondary-nav.js +1 -1
  324. package/dist/segmented-control.js +1 -1
  325. package/dist/selection-card.js +1 -1
  326. package/dist/sidepanel.js +1 -1
  327. package/dist/structured-list.js +1 -1
  328. package/dist/styles/bento-dark.css +5 -0
  329. package/dist/styles/bento-light.css +5 -0
  330. package/dist/styles/bento.css +5 -0
  331. package/dist/styles/legacy.css +5 -0
  332. package/dist/styles/styleguide.css +5 -0
  333. package/dist/summary-grid.js +1 -1
  334. package/dist/tag.js +1 -1
  335. package/dist/textarea.js +1 -1
  336. package/dist/timeline.js +1 -1
  337. package/dist/tutorial.js +1 -1
  338. package/dist/use-form-v4.js.map +1 -1
  339. package/dist/web-types.json +1 -1
  340. package/package.json +6 -7
  341. package/dist/chunks/action-bar.CriH15oF.js +0 -204
  342. package/dist/chunks/action-bar.CriH15oF.js.map +0 -1
  343. package/dist/chunks/ai-button.CDRPf7IY.js +0 -93
  344. package/dist/chunks/ai-button.CDRPf7IY.js.map +0 -1
  345. package/dist/chunks/constructNow.DuaJst0D.js +0 -8
  346. package/dist/chunks/data-grid.CqtJp9rE.js.map +0 -1
  347. package/dist/chunks/date-range-picker.Df9XyFMH.js +0 -1896
  348. package/dist/chunks/date-range-picker.Df9XyFMH.js.map +0 -1
  349. package/dist/chunks/dialog-page.DaZSlMzY.js +0 -181
  350. package/dist/chunks/dialog-page.DaZSlMzY.js.map +0 -1
  351. package/dist/chunks/file-uploader.BmBKLzIx.js.map +0 -1
  352. package/dist/chunks/filter-bar.DHRuvmx9.js +0 -3363
  353. package/dist/chunks/filter-bar.DHRuvmx9.js.map +0 -1
  354. package/dist/chunks/header-with-views.XzJCg2Ln.js.map +0 -1
  355. package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
  356. package/dist/chunks/layout-row.CX8kV_w0.js.map +0 -1
  357. package/dist/chunks/popover.types.DgfeurkF.js +0 -6
@@ -0,0 +1,158 @@
1
+ import { defineComponent as M, useSlots as Q, ref as T, computed as o, inject as k, watch as E, nextTick as h, onUnmounted as W, createBlock as X, openBlock as r, Transition as Z, unref as n, withCtx as w, createElementBlock as c, createCommentVNode as v, normalizeClass as A, renderSlot as b, normalizeStyle as ee, createVNode as B } from "vue";
2
+ import { B as ae } from "./button.CSp48LJt.js";
3
+ import { A as te } from "./arrow-left.DoP6zFsY.js";
4
+ import { u as oe } from "./use-has-slot.B7eQSabc.js";
5
+ import { u as ne } from "./index.pdBj0KQU.js";
6
+ import { i as le } from "./typography.6Oo5TOMP.js";
7
+ import { c as ie } from "./index.CL07S4Wa.js";
8
+ import { _ as se } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import "../assets/dialog-page.css";
10
+ var y = /* @__PURE__ */ ((l) => (l.TRANSITION_LEVEL_DEEPER = "b-dialog-page__animation--level-deeper", l.TRANSITION_LEVEL_UPPER = "b-dialog-page__animation--level-upper", l))(y || {});
11
+ const re = /* @__PURE__ */ Symbol("dialog registerPage injection key"), ue = /* @__PURE__ */ Symbol("dialog page config data injection key"), N = {
12
+ "en-US": {
13
+ goToPreviousPage: "Go to previous page"
14
+ },
15
+ "ja-JP": {
16
+ goToPreviousPage: "前のページに移動"
17
+ },
18
+ "pt-BR": {
19
+ goToPreviousPage: "Ir para a página anterior"
20
+ }
21
+ }, ce = {
22
+ key: 0,
23
+ class: "b-dialog-page"
24
+ }, ve = ["tabindex"], de = {
25
+ i18n: { messages: N }
26
+ }, ge = /* @__PURE__ */ M({
27
+ ...de,
28
+ __name: "dialog-page",
29
+ props: {
30
+ /**
31
+ * Identifier of the page, used with activePage prop to handle navigation
32
+ */
33
+ pageId: {
34
+ type: String,
35
+ default: void 0
36
+ },
37
+ /**
38
+ * Show header and actions border
39
+ */
40
+ alwaysShowBorder: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ /**
45
+ * Pass custom styling to the back button to position it correctly with the header slot
46
+ */
47
+ backButtonStyling: { type: Object, default: null },
48
+ /**
49
+ * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
50
+ * Used when the back button should not take the user to the natural previous page
51
+ * Set to `null` to hide back button in the page
52
+ */
53
+ previousPage: {
54
+ type: String,
55
+ default: void 0
56
+ }
57
+ },
58
+ emits: ["animationend"],
59
+ setup(l, { emit: L }) {
60
+ const i = l, C = L, O = Q(), m = oe(O), { t: R } = ne({ messages: N }), s = T(null), p = T(!1), { arrivedState: d } = ie(s), f = o(() => t.value ? t.value === i.pageId : !0), G = o(() => ({
61
+ "b-dialog-page__header--with-border": i.alwaysShowBorder || p.value && !d.top
62
+ })), V = o(() => ({
63
+ "b-dialog-page__footer--with-border": i.alwaysShowBorder || p.value && !d.bottom
64
+ })), x = o(() => !(d.bottom && d.top)), D = () => {
65
+ s.value;
66
+ }, S = async (e) => {
67
+ e && (await h(), p.value = s.value && s.value.scrollHeight > s.value.clientHeight);
68
+ }, { activePage: t, animation: _, isAnimationActive: g, isOpen: P, pages: j, previousPages: a, updatePage: $ } = k(ue);
69
+ E(() => P.value, S, { immediate: !0 }), E(() => f.value, S, { immediate: !0 });
70
+ const U = o(() => i.previousPage ? !0 : i.previousPage === null ? !1 : z.value && f.value), H = () => {
71
+ _.value = y.TRANSITION_LEVEL_DEEPER, g && (g.value = !1), C("animationend");
72
+ }, J = () => {
73
+ g && (g.value = !0);
74
+ }, z = o(() => a.value.length > 1), I = o(() => a.value[a.value.length - 1]), K = o(() => j.value.some((e) => e === t.value)), Y = async (e) => {
75
+ if (e) {
76
+ const u = a.value.indexOf(e);
77
+ u !== -1 ? a.value = a.value.slice(0, u + 1) : a.value = [e];
78
+ } else
79
+ a.value.pop();
80
+ _.value = y.TRANSITION_LEVEL_UPPER, await h(), $(I.value);
81
+ };
82
+ E(
83
+ () => t.value,
84
+ async () => {
85
+ if (await h(), !!P.value) {
86
+ if (t.value && !K.value && le) {
87
+ console.error(
88
+ `The activePage passed "${t.value}" does not match the id of any of the pages`
89
+ );
90
+ return;
91
+ }
92
+ t.value !== I.value && a.value.push(t.value);
93
+ }
94
+ },
95
+ { immediate: !0 }
96
+ );
97
+ const F = k(re), { unregisterPage: q } = F(i.pageId);
98
+ return W(() => q()), (e, u) => (r(), X(Z, {
99
+ name: n(_),
100
+ mode: "out-in",
101
+ onAfterLeave: H,
102
+ onLeave: J
103
+ }, {
104
+ default: w(() => [
105
+ n(P) && f.value ? (r(), c("div", ce, [
106
+ n(m)("header") ? (r(), c("div", {
107
+ key: 0,
108
+ class: A(["b-dialog-page__header", G.value])
109
+ }, [
110
+ U.value ? (r(), c("div", {
111
+ key: 0,
112
+ class: "b-dialog-page__back-button",
113
+ style: ee(l.backButtonStyling),
114
+ "data-testid": "back-button"
115
+ }, [
116
+ B(n(ae), {
117
+ variant: "tertiary",
118
+ onClick: u[0] || (u[0] = (me) => Y(l.previousPage))
119
+ }, {
120
+ default: w(() => [
121
+ B(n(te), {
122
+ "svg-title": n(R)("goToPreviousPage")
123
+ }, null, 8, ["svg-title"])
124
+ ]),
125
+ _: 1
126
+ })
127
+ ], 4)) : v("", !0),
128
+ b(e.$slots, "header", {}, void 0, !0)
129
+ ], 2)) : v("", !0),
130
+ n(m)("content") ? (r(), c("div", {
131
+ key: 1,
132
+ ref_key: "contentElement",
133
+ ref: s,
134
+ class: "b-dialog-page__content",
135
+ tabindex: x.value ? 0 : null,
136
+ onScroll: D
137
+ }, [
138
+ b(e.$slots, "content", {}, void 0, !0)
139
+ ], 40, ve)) : v("", !0),
140
+ n(m)("footer") ? (r(), c("div", {
141
+ key: 2,
142
+ class: A(["b-dialog-page__footer", V.value])
143
+ }, [
144
+ b(e.$slots, "footer", {}, void 0, !0)
145
+ ], 2)) : v("", !0)
146
+ ])) : v("", !0)
147
+ ]),
148
+ _: 3
149
+ }, 8, ["name"]));
150
+ }
151
+ }), Se = /* @__PURE__ */ se(ge, [["__scopeId", "data-v-a214f468"]]);
152
+ export {
153
+ y as B,
154
+ Se as D,
155
+ re as a,
156
+ ue as b
157
+ };
158
+ //# sourceMappingURL=dialog-page.CF10AQQ3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-page.CF10AQQ3.js","sources":["../../../vue2/src/components/internal/dialog-page/dialog-page.types.ts","../../../vue2/src/components/internal/dialog-page/dialog-page.keys.ts","../../../vue2/src/components/internal/dialog-page/dialog-page.vue"],"sourcesContent":["import { type Ref } from 'vue';\n\nexport enum BentoDialogPageAnimation {\n TRANSITION_LEVEL_DEEPER = 'b-dialog-page__animation--level-deeper',\n TRANSITION_LEVEL_UPPER = 'b-dialog-page__animation--level-upper',\n}\n\nexport interface BentoDialogPageConfigData {\n activePage: Ref<string>;\n animation: Ref<string>;\n isAnimationActive?: Ref<boolean>;\n isOpen: Ref<boolean>;\n pages: Ref<Array<string>>;\n previousPages: Ref<Array<string>>;\n updatePage: (page: string) => void;\n}\n\nexport type BentoDialogPageRegisterPage = (pageId: string) => { unregisterPage: () => void };\n","export const DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY = Symbol('dialog registerPage injection key');\nexport const DIALOG_PAGE_CONFIG_INJECTION_KEY = Symbol('dialog page config data injection key');\n","<template>\n <Transition :name=\"animation\" mode=\"out-in\" @after-leave=\"updateAnimation\" @leave=\"startAnimation\">\n <div v-if=\"isOpen && showPage\" class=\"b-dialog-page\">\n <div v-if=\"hasSlot('header')\" class=\"b-dialog-page__header\" :class=\"headerConditionalClasses\">\n <div\n v-if=\"showBackButton\"\n class=\"b-dialog-page__back-button\"\n :style=\"backButtonStyling\"\n data-testid=\"back-button\"\n >\n <bento-button variant=\"tertiary\" @click=\"goToPreviousPage(previousPage)\">\n <arrow-left-icon :svg-title=\"t('goToPreviousPage')\" />\n </bento-button>\n </div>\n <slot name=\"header\"></slot>\n </div>\n <div\n v-if=\"hasSlot('content')\"\n ref=\"contentElement\"\n class=\"b-dialog-page__content\"\n :tabindex=\"isScrollable ? 0 : null\"\n @scroll=\"onScroll\"\n >\n <slot name=\"content\" />\n </div>\n <div v-if=\"hasSlot('footer')\" class=\"b-dialog-page__footer\" :class=\"footerConditionalClasses\">\n <slot name=\"footer\" />\n </div>\n </div>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onUnmounted, type PropType, ref, useSlots, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import ArrowLeftIcon from '@adyen/ui-assets-icons-16/vue/arrow-left';\n\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { useI18n } from '@/utils/ts/i18n';\n import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n import {\n BentoDialogPageAnimation,\n type BentoDialogPageConfigData,\n type BentoDialogPageRegisterPage,\n } from './dialog-page.types';\n import type { CSSProperties } from 'vue/types/jsx.d.ts';\n\n import { DIALOG_PAGE_CONFIG_INJECTION_KEY, DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY } from './dialog-page.keys';\n\n import messages from './messages.json';\n import { useScroll } from '@vueuse/core';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Identifier of the page, used with activePage prop to handle navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Show header and actions border\n */\n alwaysShowBorder: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Pass custom styling to the back button to position it correctly with the header slot\n */\n backButtonStyling: { type: Object as PropType<CSSProperties>, default: null },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Fires when the animation ends\n */\n (e: 'animationend'): void;\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n // Refs\n const contentElement = ref<HTMLDivElement>(null);\n const hasScroll = ref(false);\n\n const { arrivedState } = useScroll(contentElement);\n\n // Logic to choose which page is active/shown\n const showPage = computed(() => (activePage.value ? activePage.value === props.pageId : true));\n\n // Scrolling styling logic\n const headerConditionalClasses = computed(() => ({\n 'b-dialog-page__header--with-border': props.alwaysShowBorder || (hasScroll.value && !arrivedState.top),\n }));\n\n const footerConditionalClasses = computed(() => ({\n 'b-dialog-page__footer--with-border': props.alwaysShowBorder || (hasScroll.value && !arrivedState.bottom),\n }));\n\n const isScrollable = computed(() => !(arrivedState.bottom && arrivedState.top));\n\n const onScroll = () => {\n if (!contentElement.value) {\n return;\n }\n };\n\n const calculateScroll = async watchedValue => {\n if (!watchedValue) {\n return;\n }\n // Wait for content to be rendered to be able to calculate the height\n await nextTick();\n hasScroll.value = contentElement.value && contentElement.value.scrollHeight > contentElement.value.clientHeight;\n };\n\n const { activePage, animation, isAnimationActive, isOpen, pages, previousPages, updatePage } =\n inject<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY);\n\n watch(() => isOpen.value, calculateScroll, { immediate: true });\n watch(() => showPage.value, calculateScroll, { immediate: true });\n\n // Logic to determine whether the back button should be shown on the page\n const showBackButton = computed(() => {\n if (props.previousPage) {\n return true;\n }\n if (props.previousPage === null) {\n return false;\n }\n return hasPreviousPages.value && showPage.value;\n });\n\n // Animation\n const updateAnimation = () => {\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER;\n if (isAnimationActive) {\n isAnimationActive.value = false;\n }\n\n emit('animationend');\n };\n\n const startAnimation = () => {\n if (isAnimationActive) {\n isAnimationActive.value = true;\n }\n };\n\n // Previous page logic\n const hasPreviousPages = computed(() => previousPages.value.length > 1);\n const lastPage = computed(() => previousPages.value[previousPages.value.length - 1]);\n const isActivePageValid = computed(() => pages.value.some(page => page === activePage.value));\n\n const goToPreviousPage = async (page: string) => {\n if (page) {\n const index = previousPages.value.indexOf(page);\n if (index !== -1) {\n previousPages.value = previousPages.value.slice(0, index + 1);\n } else {\n previousPages.value = [page];\n }\n } else {\n previousPages.value.pop();\n }\n\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_UPPER;\n await nextTick();\n updatePage(lastPage.value);\n };\n\n // Add new page to the previousPage array to keep track of user navigation\n watch(\n () => activePage.value,\n async () => {\n await nextTick();\n if (!isOpen.value) {\n return;\n }\n\n if (!!activePage.value && !isActivePageValid.value) {\n if (isDevelopmentEnviroment) {\n // eslint-disable-next-line no-console\n console.error(\n `The activePage passed \"${activePage.value}\" does not match the id of any of the pages`\n );\n return;\n }\n }\n\n if (activePage.value !== lastPage.value) {\n previousPages.value.push(activePage.value);\n }\n },\n { immediate: true }\n );\n\n // Register page to parent component and inject data from parent component\n const registerPage = inject<BentoDialogPageRegisterPage>(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY);\n const { unregisterPage } = registerPage(props.pageId);\n\n // Unregister page on unmounting the page\n onUnmounted(() => unregisterPage());\n</script>\n\n<script lang=\"ts\">\n /**\n * DialogPage is an internal component used to render different pages of dialog components (Modal, ModalFullscreen and Sidepanel)\n *\n * @example\n * import { DialogPage } from '@/internal';\n *\n * export default {\n * components: { DialogPage },\n * template: `\n * <dialog-page pageId='step1' always-show-border>\n * <template #header>Header</template>\n * <template #content>Content</template>\n * <template #footer>Footer</template>\n * </dialog-page>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./dialog-page.scss\" />\n"],"names":["BentoDialogPageAnimation","BentoDialogPageAnimation2","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","DIALOG_PAGE_CONFIG_INJECTION_KEY","__default__","messages","props","__props","emit","__emit","slots","useSlots","hasSlot","useHasSlot","t","useI18n","contentElement","ref","hasScroll","arrivedState","useScroll","showPage","computed","activePage","headerConditionalClasses","footerConditionalClasses","isScrollable","onScroll","calculateScroll","watchedValue","nextTick","animation","isAnimationActive","isOpen","pages","previousPages","updatePage","inject","watch","showBackButton","hasPreviousPages","updateAnimation","startAnimation","lastPage","isActivePageValid","page","goToPreviousPage","index","isDevelopmentEnviroment","registerPage","unregisterPage","onUnmounted"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { n as M, t as s, a as l } from "./getTimezoneOffsetInMilliseconds.C-aIpRfB.js";
1
+ import { n as M, t as s, a as l } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
2
2
  function g(r, t, e) {
3
3
  const [n, a] = M(
4
4
  e == null ? void 0 : e.in,
@@ -40,4 +40,4 @@ export {
40
40
  i as d,
41
41
  d as e
42
42
  };
43
- //# sourceMappingURL=differenceInMonths.DcFDl4eH.js.map
43
+ //# sourceMappingURL=differenceInMonths.BR4Z2HIa.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"differenceInMonths.DcFDl4eH.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLastDayOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMonths.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link differenceInCalendarMonths} function options.\n */\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n\n return yearsDiff * 12 + monthsDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfDay} function options.\n */\n\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a day\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport function endOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfDay;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n","import { endOfDay } from \"./endOfDay.js\";\nimport { endOfMonth } from \"./endOfMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date is the last day of a month\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nexport function isLastDayOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n return +endOfDay(_date, options) === +endOfMonth(_date, options);\n}\n\n// Fallback for modularized imports:\nexport default isLastDayOfMonth;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { differenceInCalendarMonths } from \"./differenceInCalendarMonths.js\";\nimport { isLastDayOfMonth } from \"./isLastDayOfMonth.js\";\n\n/**\n * The {@link differenceInMonths} function options.\n */\n\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of full months\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nexport function differenceInMonths(laterDate, earlierDate, options) {\n const [laterDate_, workingLaterDate, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n laterDate,\n earlierDate,\n );\n\n const sign = compareAsc(workingLaterDate, earlierDate_);\n const difference = Math.abs(\n differenceInCalendarMonths(workingLaterDate, earlierDate_),\n );\n\n if (difference < 1) return 0;\n\n if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27)\n workingLaterDate.setDate(30);\n\n workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference);\n\n let isLastMonthNotFull = compareAsc(workingLaterDate, earlierDate_) === -sign;\n\n if (\n isLastDayOfMonth(laterDate_) &&\n difference === 1 &&\n compareAsc(laterDate_, earlierDate_) === 1\n ) {\n isLastMonthNotFull = false;\n }\n\n const result = sign * (difference - +isLastMonthNotFull);\n return result === 0 ? 0 : result;\n}\n\n// Fallback for modularized imports:\nexport default differenceInMonths;\n"],"names":["differenceInCalendarMonths","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","yearsDiff","monthsDiff","endOfDay","date","_date","toDate","endOfMonth","month","isLastDayOfMonth","differenceInMonths","workingLaterDate","sign","compareAsc","difference","isLastMonthNotFull","result"],"mappings":";AA4BO,SAASA,EAA2BC,GAAWC,GAAaC,GAAS;AAC1E,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACD,GAEKK,IAAYH,EAAW,YAAW,IAAKC,EAAa,YAAa,GACjEG,IAAaJ,EAAW,SAAQ,IAAKC,EAAa,SAAU;AAElE,SAAOE,IAAY,KAAKC;AAC1B;ACXO,SAASC,EAASC,GAAMP,GAAS;AACtC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAAQ,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACJO,SAASE,EAAWH,GAAMP,GAAS;AACxC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE,GAChCW,IAAQH,EAAM,SAAU;AAC9B,SAAAA,EAAM,YAAYA,EAAM,YAAa,GAAEG,IAAQ,GAAG,CAAC,GACnDH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACZO,SAASI,EAAiBL,GAAMP,GAAS;AAC9C,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAO,CAACM,EAASE,GAAOR,CAAO,KAAM,CAACU,EAAWF,GAAOR,CAAO;AACjE;ACAO,SAASa,EAAmBf,GAAWC,GAAaC,GAAS;AAClE,QAAM,CAACC,GAAYa,GAAkBZ,CAAY,IAAIC;AAAA,IACnDH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAA;AAAA,IACAC;AAAA,EACD,GAEKgB,IAAOC,EAAWF,GAAkBZ,CAAY,GAChDe,IAAa,KAAK;AAAA,IACtBpB,EAA2BiB,GAAkBZ,CAAY;AAAA,EAC1D;AAED,MAAIe,IAAa,EAAG,QAAO;AAE3B,EAAIH,EAAiB,SAAU,MAAK,KAAKA,EAAiB,QAAO,IAAK,MACpEA,EAAiB,QAAQ,EAAE,GAE7BA,EAAiB,SAASA,EAAiB,SAAQ,IAAKC,IAAOE,CAAU;AAEzE,MAAIC,IAAqBF,EAAWF,GAAkBZ,CAAY,MAAM,CAACa;AAEzE,EACEH,EAAiBX,CAAU,KAC3BgB,MAAe,KACfD,EAAWf,GAAYC,CAAY,MAAM,MAEzCgB,IAAqB;AAGvB,QAAMC,IAASJ,KAAQE,IAAa,CAACC;AACrC,SAAOC,MAAW,IAAI,IAAIA;AAC5B;","x_google_ignoreList":[0,1,2,3,4]}
1
+ {"version":3,"file":"differenceInMonths.BR4Z2HIa.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDay.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLastDayOfMonth.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMonths.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link differenceInCalendarMonths} function options.\n */\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n\n return yearsDiff * 12 + monthsDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfDay} function options.\n */\n\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a day\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport function endOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfDay;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n","import { endOfDay } from \"./endOfDay.js\";\nimport { endOfMonth } from \"./endOfMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param date - The date to check\n * @param options - An object with options\n *\n * @returns The date is the last day of a month\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nexport function isLastDayOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n return +endOfDay(_date, options) === +endOfMonth(_date, options);\n}\n\n// Fallback for modularized imports:\nexport default isLastDayOfMonth;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { differenceInCalendarMonths } from \"./differenceInCalendarMonths.js\";\nimport { isLastDayOfMonth } from \"./isLastDayOfMonth.js\";\n\n/**\n * The {@link differenceInMonths} function options.\n */\n\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of full months\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nexport function differenceInMonths(laterDate, earlierDate, options) {\n const [laterDate_, workingLaterDate, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n laterDate,\n earlierDate,\n );\n\n const sign = compareAsc(workingLaterDate, earlierDate_);\n const difference = Math.abs(\n differenceInCalendarMonths(workingLaterDate, earlierDate_),\n );\n\n if (difference < 1) return 0;\n\n if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27)\n workingLaterDate.setDate(30);\n\n workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference);\n\n let isLastMonthNotFull = compareAsc(workingLaterDate, earlierDate_) === -sign;\n\n if (\n isLastDayOfMonth(laterDate_) &&\n difference === 1 &&\n compareAsc(laterDate_, earlierDate_) === 1\n ) {\n isLastMonthNotFull = false;\n }\n\n const result = sign * (difference - +isLastMonthNotFull);\n return result === 0 ? 0 : result;\n}\n\n// Fallback for modularized imports:\nexport default differenceInMonths;\n"],"names":["differenceInCalendarMonths","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","yearsDiff","monthsDiff","endOfDay","date","_date","toDate","endOfMonth","month","isLastDayOfMonth","differenceInMonths","workingLaterDate","sign","compareAsc","difference","isLastMonthNotFull","result"],"mappings":";AA4BO,SAASA,EAA2BC,GAAWC,GAAaC,GAAS;AAC1E,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ,GAEQK,IAAYH,EAAW,YAAW,IAAKC,EAAa,YAAW,GAC/DG,IAAaJ,EAAW,SAAQ,IAAKC,EAAa,SAAQ;AAEhE,SAAOE,IAAY,KAAKC;AAC1B;ACXO,SAASC,EAASC,GAAMP,GAAS;AACtC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAAQ,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACJO,SAASE,EAAWH,GAAMP,GAAS;AACxC,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE,GAChCW,IAAQH,EAAM,SAAQ;AAC5B,SAAAA,EAAM,YAAYA,EAAM,YAAW,GAAIG,IAAQ,GAAG,CAAC,GACnDH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;ACZO,SAASI,EAAiBL,GAAMP,GAAS;AAC9C,QAAMQ,IAAQC,EAAOF,GAAMP,KAAA,gBAAAA,EAAS,EAAE;AACtC,SAAO,CAACM,EAASE,GAAOR,CAAO,KAAM,CAACU,EAAWF,GAAOR,CAAO;AACjE;ACAO,SAASa,EAAmBf,GAAWC,GAAaC,GAAS;AAClE,QAAM,CAACC,GAAYa,GAAkBZ,CAAY,IAAIC;AAAA,IACnDH,KAAA,gBAAAA,EAAS;AAAA,IACTF;AAAA,IACAA;AAAA,IACAC;AAAA,EACJ,GAEQgB,IAAOC,EAAWF,GAAkBZ,CAAY,GAChDe,IAAa,KAAK;AAAA,IACtBpB,EAA2BiB,GAAkBZ,CAAY;AAAA,EAC7D;AAEE,MAAIe,IAAa,EAAG,QAAO;AAE3B,EAAIH,EAAiB,SAAQ,MAAO,KAAKA,EAAiB,QAAO,IAAK,MACpEA,EAAiB,QAAQ,EAAE,GAE7BA,EAAiB,SAASA,EAAiB,SAAQ,IAAKC,IAAOE,CAAU;AAEzE,MAAIC,IAAqBF,EAAWF,GAAkBZ,CAAY,MAAM,CAACa;AAEzE,EACEH,EAAiBX,CAAU,KAC3BgB,MAAe,KACfD,EAAWf,GAAYC,CAAY,MAAM,MAEzCgB,IAAqB;AAGvB,QAAMC,IAASJ,KAAQE,IAAa,CAACC;AACrC,SAAOC,MAAW,IAAI,IAAIA;AAC5B;","x_google_ignoreList":[0,1,2,3,4]}
@@ -1 +1 @@
1
- {"version":3,"file":"directive.Cbdox5VL.js","sources":["../../../vue2/src/directives/click-outside/directive.ts"],"sourcesContent":["import { onClickOutside } from './on-click-outside';\nimport type { DirectiveHook } from 'vue';\n\ntype Element = HTMLElement & { __onClickOutside_stop?: () => void };\n\n/**\n * Attaches the click outside listener to target element to register clicks outside the element.\n * @param targetElement Element to attach listener to.\n * @param binding\n */\nconst bindDirective: DirectiveHook<Element> = (targetElement, binding) => {\n const capture = !binding.modifiers.bubble;\n if (typeof binding.value === 'function') {\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, binding.value, { capture });\n } else {\n const [handler, options] = binding.value;\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, handler, { capture, ...options });\n }\n};\n\n/**\n * Removes click outside listener from the target element.\n * @param targetElement Element to detach listener from.\n */\nconst unbindDirective: DirectiveHook<Element> = targetElement => {\n // eslint-disable-next-line no-underscore-dangle\n targetElement.__onClickOutside_stop();\n};\n\nexport const BentoClickOutsideDirective = {\n // Vue 2 Directive hooks\n inserted: bindDirective,\n unbind: unbindDirective,\n\n // Vue 3 Directive hooks\n beforeMount: bindDirective,\n unmounted: unbindDirective,\n};\n"],"names":["bindDirective","targetElement","binding","capture","onClickOutside","handler","options","unbindDirective","BentoClickOutsideDirective"],"mappings":";AAUA,MAAMA,IAAwC,CAACC,GAAeC,MAAY;AAChE,QAAAC,IAAU,CAACD,EAAQ,UAAU;AAC/B,MAAA,OAAOA,EAAQ,SAAU;AAEzB,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeC,EAAQ,OAAO,EAAE,SAAAC,GAAS;AAAA,OAC3F;AACH,UAAM,CAACE,GAASC,CAAO,IAAIJ,EAAQ;AAErB,IAAAD,EAAA,wBAAwBG,EAAeH,GAAeI,GAAS,EAAE,SAAAF,GAAS,GAAGG,GAAS;AAAA,EAAA;AAE5G,GAMMC,IAA0C,CAAiBN,MAAA;AAE7D,EAAAA,EAAc,sBAAsB;AACxC,GAEaO,IAA6B;AAAA;AAAA,EAEtC,UAAUR;AAAA,EACV,QAAQO;AAAA;AAAA,EAGR,aAAaP;AAAA,EACb,WAAWO;AACf;"}
1
+ {"version":3,"file":"directive.Cbdox5VL.js","sources":["../../../vue2/src/directives/click-outside/directive.ts"],"sourcesContent":["import { onClickOutside } from './on-click-outside';\nimport type { DirectiveHook } from 'vue';\n\ntype Element = HTMLElement & { __onClickOutside_stop?: () => void };\n\n/**\n * Attaches the click outside listener to target element to register clicks outside the element.\n * @param targetElement Element to attach listener to.\n * @param binding\n */\nconst bindDirective: DirectiveHook<Element> = (targetElement, binding) => {\n const capture = !binding.modifiers.bubble;\n if (typeof binding.value === 'function') {\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, binding.value, { capture });\n } else {\n const [handler, options] = binding.value;\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, handler, { capture, ...options });\n }\n};\n\n/**\n * Removes click outside listener from the target element.\n * @param targetElement Element to detach listener from.\n */\nconst unbindDirective: DirectiveHook<Element> = targetElement => {\n // eslint-disable-next-line no-underscore-dangle\n targetElement.__onClickOutside_stop();\n};\n\nexport const BentoClickOutsideDirective = {\n // Vue 2 Directive hooks\n inserted: bindDirective,\n unbind: unbindDirective,\n\n // Vue 3 Directive hooks\n beforeMount: bindDirective,\n unmounted: unbindDirective,\n};\n"],"names":["bindDirective","targetElement","binding","capture","onClickOutside","handler","options","unbindDirective","BentoClickOutsideDirective"],"mappings":";AAUA,MAAMA,IAAwC,CAACC,GAAeC,MAAY;AACtE,QAAMC,IAAU,CAACD,EAAQ,UAAU;AACnC,MAAI,OAAOA,EAAQ,SAAU;AAEzB,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeC,EAAQ,OAAO,EAAE,SAAAC,GAAS;AAAA,OAC3F;AACH,UAAM,CAACE,GAASC,CAAO,IAAIJ,EAAQ;AAEnC,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeI,GAAS,EAAE,SAAAF,GAAS,GAAGG,GAAS;AAAA,EACxG;AACJ,GAMMC,IAA0C,CAAAN,MAAiB;AAE7D,EAAAA,EAAc,sBAAA;AAClB,GAEaO,IAA6B;AAAA;AAAA,EAEtC,UAAUR;AAAA,EACV,QAAQO;AAAA;AAAA,EAGR,aAAaP;AAAA,EACb,WAAWO;AACf;"}
@@ -1 +1 @@
1
- {"version":3,"file":"divider.Dho4_hQ7.js","sources":["../../../vue2/src/components/divider/divider.keys.ts","../../../vue2/src/components/divider/divider.types.ts","../../../vue2/src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","/**\n * Private types\n */\nexport enum BentoDividerVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\n/**\n * Public types\n */\nexport interface BentoDividerProps {\n /**\n * Renders the divider in a horizontal or vertical variant\n */\n variant?: `${BentoDividerVariant}`;\n}\n","<template>\n <div class=\"b-divider\">\n <div\n v-if=\"isVerticalVariant\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n class=\"b-divider__rule b-divider__rule--vertical\"\n :class=\"conditionalClasses\"\n ></div>\n <hr v-else class=\"b-divider__rule b-divider__rule--horizontal\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n import { type BentoDividerProps, BentoDividerVariant } from './divider.types';\n\n const props = withDefaults(defineProps<BentoDividerProps>(), {\n variant: BentoDividerVariant.HORIZONTAL,\n });\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const isVerticalVariant = computed(() => props.variant === BentoDividerVariant.VERTICAL);\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","BentoDividerVariant","BentoDividerVariant2","__default__","props","__props","isInverseColorSet","inject","ref","isVerticalVariant","computed","conditionalClasses"],"mappings":";;;AAAa,MAAAA,IAAA,uBAAA,qCAAA;ACGD,IAAAC,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;kCCyCRE,IAAA,CAAA;;;;;;;AA1BA,UAAAC,IAAAC,GAIAC,IAAAC,EAAAP,GAAAQ,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,MAAAN,EAAA,YAAAH,EAAA,QAAA,GAEAU,IAAAD,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"divider.Dho4_hQ7.js","sources":["../../../vue2/src/components/divider/divider.keys.ts","../../../vue2/src/components/divider/divider.types.ts","../../../vue2/src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","/**\n * Private types\n */\nexport enum BentoDividerVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\n/**\n * Public types\n */\nexport interface BentoDividerProps {\n /**\n * Renders the divider in a horizontal or vertical variant\n */\n variant?: `${BentoDividerVariant}`;\n}\n","<template>\n <div class=\"b-divider\">\n <div\n v-if=\"isVerticalVariant\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n class=\"b-divider__rule b-divider__rule--vertical\"\n :class=\"conditionalClasses\"\n ></div>\n <hr v-else class=\"b-divider__rule b-divider__rule--horizontal\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n import { type BentoDividerProps, BentoDividerVariant } from './divider.types';\n\n const props = withDefaults(defineProps<BentoDividerProps>(), {\n variant: BentoDividerVariant.HORIZONTAL,\n });\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const isVerticalVariant = computed(() => props.variant === BentoDividerVariant.VERTICAL);\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","BentoDividerVariant","BentoDividerVariant2","__default__","props","__props","isInverseColorSet","inject","ref","isVerticalVariant","computed","conditionalClasses"],"mappings":";;;AAAO,MAAAA,IAAA,uBAAA,qCAAA;ACGA,IAAAC,IAAA,kBAAAC,OACHA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;kCCyCRE,IAAA,CAAA;;;;;;;AA1BA,UAAAC,IAAAC,GAIAC,IAAAC,EAAAP,GAAAQ,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,MAAAN,EAAA,YAAAH,EAAA,QAAA,GAEAU,IAAAD,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"dot.ob6N-5Um.js","sources":["../../../ui-assets/icons-16/dist/vue/dot.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_createElementVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAU,GAC3BA,KAAQ;AAAA,EACX;AACJ,SAdL,KAAA,EAAA;;AAEI,SAAAE,EAAA,GAAAC,EAAuX,OAAvXC,EAAuX,EAAlX,MAAK,MAAK,GAASC,EAAM,QAAA;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAM,OAAA,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAM,OAAA,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,oBAEwMC,EAA6K,QAAA;AAAA,MAAvK,MAAK;AAAA,MAAU,GAAE;AAAA;;;;"}
1
+ {"version":3,"file":"dot.ob6N-5Um.js","sources":["../../../ui-assets/icons-16/dist/vue/dot.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_createElementVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAQ,GACzBA,KAAQ;AAAA,EACZ;SAbR,KAAA,EAAA;;AAEI,SAAAE,EAAA,GAAAC,EAAuX,OAAvXC,EAAuX,EAAlX,MAAK,MAAK,GAASC,EAAA,QAAM;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAA,OAAM,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAA,OAAM,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,oBAEwMC,EAA6K,QAAA;AAAA,MAAvK,MAAK;AAAA,MAAU,GAAE;AAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-default-textbox.DFtFMu5G.js","sources":["../../../vue2/src/components/dropdown/dropdown.types.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue","../../../vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue"],"sourcesContent":["import type {\n BentoListboxEmptyStateProps as BentoDropdownEmptyStateProps,\n BentoListboxSearchOptions as BentoDropdownSearchOptions,\n BentoListboxVirtulisationOptions as BentoDropdownVirtulisationOptions,\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSelectedValue,\n} from '../../types/listbox';\nimport { type FormField } from '../../types/form-field';\nexport type { BentoDropdownSearchOptions, BentoDropdownEmptyStateProps, BentoDropdownVirtulisationOptions };\nexport interface BentoDropdownProps extends FormField {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n * Defines a string value that labels an interactive element.\n */\n ariaLabel?: string;\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed?: boolean;\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState?: BentoDropdownEmptyStateProps;\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering?: boolean;\n /**\n * Highlights the dropdown in an erroneous state.\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems?: boolean;\n /**\n * Function that dertermines which options are disabled from interaction.\n * @type {BentoListboxIsOptionDisabled}\n * @param {BentoListboxOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoListboxOptionItem }\n * @property value.label - Text to be displayed in the option\n * @property value.value - Value of the option\n */\n items?: BentoListboxOptions;\n /**\n * Indicates if new options are lazy loading.\n */\n loading?: boolean;\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading?: boolean;\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType?: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple?: boolean;\n /**\n * Dropdown search options and events.\n * @see BentoDropdownSearchOptions\n */\n search?: BentoDropdownSearchOptions;\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple?: boolean;\n /**\n * @deprecated Do not use. Only 'default' size should be used.\n */\n size?: BentoDropdownSize | `${BentoDropdownSize}`;\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories?: boolean;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoListboxSelectedValue;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n */\n modelValue?: BentoListboxSelectedValue;\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll?: BentoDropdownVirtulisationOptions;\n /**\n * Enables value/label value handling. When `true`, the component expects and emits value/label\n * pair objects instead of primitive values.\n *\n * This affects both the `value` prop and the `input` event payload.\n *\n * - **Input (`value` prop):** Expects a `{ value: string | number, label: string }` object (or an array of them for multi-select).\n * - **Output (`input` event):** Emits a `{ value: string | number, label: string }` object (or an array of them) upon selection.\n *\n * This is particularly useful when a selected item's label is not available in the `items` prop,\n * allowing the component to display the correct label for values loaded from external sources.\n * @default false\n */\n enableValueLabelPair?: boolean;\n}\n\n/**\n * @deprecated Do not use. Only 'default' size should be used.\n */\nexport enum BentoDropdownSize {\n DEFAULT = 'DropdownInputDefault',\n SMALL = 'DropdownInputSmall',\n}\n\nexport {\n /**\n * @deprecated since version 2.0. Use the string literal instead.\n */\n BentoListboxLazyLoadType as BentoDropdownLazyLoadType,\n BentoListboxEvent as BentoDropdownEvent,\n} from '@/types/listbox';\n","import { type PropType } from 'vue';\nimport { type Booleanish } from '@/types/prop-types';\n\n// TODO: Change this to script setup + Typescript interface\nexport const DropdownBaseTextboxProps = {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n};\n\nexport enum DropdownBaseTextboxState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n HAS_ITEMS = 'has-items',\n OPENED = 'opened',\n ERROR = 'error',\n}\n\nexport enum DropdownBaseTextboxEvent {\n OPEN = 'dropdown-base-open',\n KEYDOWN = 'dropdown-base-keydown',\n CLOSE = 'dropdown-base-close',\n INPUT = 'dropdown-base-input',\n CLEAR = 'dropdown-base-clear',\n}\n\nexport default DropdownBaseTextboxProps;\n","<template>\n <div\n :class=\"$attrs.class\"\n data-testid=\"textbox-wrapper\"\n @click=\"onToggleDropdown\"\n @keydown.escape=\"onCloseDropdown\"\n >\n <bento-typography\n class=\"b-dropdown-base-textbox\"\n :class=\"conditionalClasses\"\n el=\"div\"\n data-testid=\"base-textbox\"\n >\n <input\n v-if=\"shouldShowInput\"\n v-bind=\"ariaAttributes\"\n :id=\"textboxId\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n role=\"combobox\"\n type=\"text\"\n aria-autocomplete=\"list\"\n size=\"1\"\n :value=\"open ? value : displayValue\"\n :disabled=\"disabled ? true : null\"\n :readonly=\"readonly\"\n :required=\"isRequired\"\n @keydown=\"$emit(DropdownBaseTextboxEvent.KEYDOWN, $event)\"\n @keydown.enter=\"onToggleDropdown\"\n @input=\"onInputEvent\"\n />\n <div\n v-else\n :id=\"textboxId\"\n v-bind=\"ariaAttributes\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n :class=\"comboboxConditionalClasses\"\n :aria-readonly=\"readonly ? 'true' : null\"\n role=\"combobox\"\n :tabindex=\"disabled ? -1 : 0\"\n >\n <template v-if=\"shouldShowSingleSelectSlot\">\n <slot v-if=\"hasSlot('display-value')\" v-bind=\"selectedValueItem\" name=\"display-value\"></slot>\n <slot v-else v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n </template>\n <template v-else-if=\"shouldShowMultipleSlot\">\n <div class=\"b-dropdown-base-textbox__input-multiple-selected\">\n <div v-for=\"singleItem of selectedValueItems\" :key=\"singleItem.value\">\n <div class=\"b-dropdown-base-textbox__input-selected-element\">\n <slot v-bind=\"singleItem\">\n {{ displayValue }}\n </slot>\n </div>\n </div>\n </div>\n </template>\n <template v-else>{{ displayValue }}</template>\n </div>\n <span v-if=\"additionalItemsSelected\" class=\"b-dropdown-base-textbox__additional-items\">\n {{ additionalItemsSelected }}\n </span>\n <span v-if=\"hasSlot('icon') && !isFiltering\" class=\"b-dropdown-base-textbox__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"></slot>\n </span>\n <span\n v-if=\"isFiltering\"\n class=\"b-dropdown-base-textbox__clear-search\"\n :tabindex=\"disabled ? -1 : 0\"\n data-testid=\"clear-search-button\"\n @click.stop=\"onClearSearch\"\n @keydown.enter.stop=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-small-icon v-if=\"size === BentoDropdownSize.SMALL\" :svg-title=\"t('clearSearch')\" />\n <cross-circle-fill-icon v-else :svg-title=\"t('clearSearch')\" />\n </span>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, type PropType, ref, useAttrs, useSlots, watch } from 'vue';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { BentoTypography } from '@/components/typography';\n import { debounce } from '@/utils/ts/debounce';\n import { type Booleanish } from '@/types/prop-types';\n import { type BentoListboxOptionItem } from '@/types/listbox';\n import type { HTMLAttributes } from 'vue/types/jsx.d.ts';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * If the combobox DOM element should be an `input` element.\n */\n alwaysComboboxIsInput: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time for the user type event.\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | Array<BentoListboxOptionItem>>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * Dropdown size\n */\n size: {\n type: String as PropType<BentoDropdownSize | `${BentoDropdownSize}`>,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the \"clear\" button is clicked\n */\n (e: DropdownBaseTextboxEvent.CLEAR);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: DropdownBaseTextboxEvent.CLOSE);\n\n /**\n * Emitted when `dynamicFiltering` is enabled and a search input is entered\n */\n (e: DropdownBaseTextboxEvent.INPUT, searchValue: string);\n\n /**\n * Emitted when any key is pressed and the focus is on the input field\n */\n (e: DropdownBaseTextboxEvent.KEYDOWN, event: KeyboardEvent);\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: DropdownBaseTextboxEvent.OPEN);\n }>();\n\n const textbox = ref(null);\n const textboxId = generateUid('textbox');\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.HAS_ITEMS}`]: !!props.additionalItemsSelected,\n }));\n\n const isRequired = computed(() => attrs['required'] as Booleanish);\n\n const comboboxConditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox__input--dynamic-filtering`]: props.dynamicFiltering,\n }));\n\n const isFiltering = computed(() => props.dynamicFiltering && !!props.value && props.open);\n\n const ariaAttributes = computed(\n () =>\n ({\n 'aria-haspopup': 'listbox',\n 'aria-controls': props.ariaControls,\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n 'aria-expanded': props.ariaExpanded ? 'true' : 'false',\n 'aria-labelledby': props.ariaLabelledby,\n 'aria-label': props.ariaLabelledby ? null : props.ariaLabel,\n 'aria-invalid': props.isInvalid,\n 'aria-disabled': props.disabled ? true : null,\n 'aria-required': shouldShowInput.value ? null : isRequired.value,\n }) as HTMLAttributes\n );\n // Cast selectedValueItem if it is an array of selected items\n const selectedValueItems = computed(() =>\n props.multiple ? (props.selectedValueItem as Array<BentoListboxOptionItem>) : []\n );\n\n const shouldShowInput = computed(() => props.dynamicFiltering && (props.open || props.alwaysComboboxIsInput));\n const shouldShowSingleSelectSlot = computed(() => props.selectedValueItem && !props.multiple);\n const shouldShowMultipleSlot = computed(\n () =>\n props.multiple &&\n props.selectedValueItem &&\n selectedValueItems.value.length > 0 &&\n props.showSlotContentInMultiple\n );\n\n watch(\n () => shouldShowInput.value,\n () => {\n if (shouldShowInput.value && !props.alwaysComboboxIsInput) {\n nextTick(() => {\n textbox.value.focus();\n });\n }\n }\n );\n\n const onOpenDropdown = async () => {\n if (!props.disabled && !props.readonly) {\n emit(DropdownBaseTextboxEvent.OPEN);\n // wait for popover to open before setting focus\n await nextTick();\n textbox.value.focus();\n }\n };\n\n const onCloseDropdown = () => {\n if (props.open) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.CLOSE);\n }\n };\n\n const onToggleDropdown = (event: Event) => {\n const isDynamicFilteringInputClickEvent = props.open && (event.target as HTMLDivElement).tagName === 'INPUT';\n if (isDynamicFilteringInputClickEvent) {\n /**\n * When there's a click even on the input during filtering\n * and the popover is open, do not toggle the popover.\n * Allow for click events inside the input field\n */\n return null;\n }\n\n return props.open ? onCloseDropdown() : onOpenDropdown();\n };\n\n const onClearSearch = () => {\n emit(DropdownBaseTextboxEvent.CLEAR);\n emit(DropdownBaseTextboxEvent.INPUT, '');\n textbox.value.focus();\n };\n const onInputEvent = debounce<(event: Event) => void>((event: Event) => {\n if (!props.readonly && !props.disabled) {\n emit(DropdownBaseTextboxEvent.INPUT, (event.target as HTMLInputElement).value);\n } else {\n event.preventDefault();\n event.stopPropagation();\n }\n }, props.debounceTime);\n\n const focus = () => {\n textbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Only for internal use, implements the logic of the textbox element to be implemented in the combobox.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'dropdown-base-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-base-textbox.scss\" />\n","<template>\n <div class=\"b-dropdown-default-textbox\" :class=\"conditionalClasses\" data-testid=\"default-textbox\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-default-textbox__textbox\"\n :value=\"value\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope ?? {}\" />\n </template>\n <template #icon>\n <div class=\"b-dropdown-default-textbox__chevron\">\n <chevron-up-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, defineComponent, type PropType, ref, useSlots } from 'vue';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import { type Booleanish } from '@/types/prop-types';\n import { type BentoListboxOptionItem } from '@/types/listbox';\n import { stopEventPropagation } from '@/utils/ts/events';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '../dropdown-base-textbox/dropdown-base-textbox.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | Array<BentoListboxOptionItem>>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n });\n\n const baseTextbox = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.ERROR}`]:\n !props.disabled && !props.readonly && props.isInvalid,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-default-textbox--condensed': props.condensed,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n"],"names":["BentoDropdownSize","BentoDropdownSize2","DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","__default__$1","defineComponent","messages","t","useI18n","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","props","__props","emit","__emit","textbox","ref","textboxId","generateUid","conditionalClasses","computed","isRequired","comboboxConditionalClasses","isFiltering","ariaAttributes","_a","shouldShowInput","selectedValueItems","shouldShowSingleSelectSlot","shouldShowMultipleSlot","watch","nextTick","onOpenDropdown","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","debounce","__expose","__default__","baseTextbox","isDropdownOpen","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","listeners"],"mappings":"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"}
1
+ {"version":3,"file":"dropdown-default-textbox.DFtFMu5G.js","sources":["../../../vue2/src/components/dropdown/dropdown.types.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue","../../../vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue"],"sourcesContent":["import type {\n BentoListboxEmptyStateProps as BentoDropdownEmptyStateProps,\n BentoListboxSearchOptions as BentoDropdownSearchOptions,\n BentoListboxVirtulisationOptions as BentoDropdownVirtulisationOptions,\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSelectedValue,\n} from '../../types/listbox';\nimport { type FormField } from '../../types/form-field';\nexport type { BentoDropdownSearchOptions, BentoDropdownEmptyStateProps, BentoDropdownVirtulisationOptions };\nexport interface BentoDropdownProps extends FormField {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n * Defines a string value that labels an interactive element.\n */\n ariaLabel?: string;\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed?: boolean;\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState?: BentoDropdownEmptyStateProps;\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering?: boolean;\n /**\n * Highlights the dropdown in an erroneous state.\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems?: boolean;\n /**\n * Function that dertermines which options are disabled from interaction.\n * @type {BentoListboxIsOptionDisabled}\n * @param {BentoListboxOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoListboxOptionItem }\n * @property value.label - Text to be displayed in the option\n * @property value.value - Value of the option\n */\n items?: BentoListboxOptions;\n /**\n * Indicates if new options are lazy loading.\n */\n loading?: boolean;\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading?: boolean;\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType?: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple?: boolean;\n /**\n * Dropdown search options and events.\n * @see BentoDropdownSearchOptions\n */\n search?: BentoDropdownSearchOptions;\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple?: boolean;\n /**\n * @deprecated Do not use. Only 'default' size should be used.\n */\n size?: BentoDropdownSize | `${BentoDropdownSize}`;\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories?: boolean;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoListboxSelectedValue;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n */\n modelValue?: BentoListboxSelectedValue;\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll?: BentoDropdownVirtulisationOptions;\n /**\n * Enables value/label value handling. When `true`, the component expects and emits value/label\n * pair objects instead of primitive values.\n *\n * This affects both the `value` prop and the `input` event payload.\n *\n * - **Input (`value` prop):** Expects a `{ value: string | number, label: string }` object (or an array of them for multi-select).\n * - **Output (`input` event):** Emits a `{ value: string | number, label: string }` object (or an array of them) upon selection.\n *\n * This is particularly useful when a selected item's label is not available in the `items` prop,\n * allowing the component to display the correct label for values loaded from external sources.\n * @default false\n */\n enableValueLabelPair?: boolean;\n}\n\n/**\n * @deprecated Do not use. Only 'default' size should be used.\n */\nexport enum BentoDropdownSize {\n DEFAULT = 'DropdownInputDefault',\n SMALL = 'DropdownInputSmall',\n}\n\nexport {\n /**\n * @deprecated since version 2.0. Use the string literal instead.\n */\n BentoListboxLazyLoadType as BentoDropdownLazyLoadType,\n BentoListboxEvent as BentoDropdownEvent,\n} from '@/types/listbox';\n","import { type PropType } from 'vue';\nimport { type Booleanish } from '@/types/prop-types';\n\n// TODO: Change this to script setup + Typescript interface\nexport const DropdownBaseTextboxProps = {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n};\n\nexport enum DropdownBaseTextboxState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n HAS_ITEMS = 'has-items',\n OPENED = 'opened',\n ERROR = 'error',\n}\n\nexport enum DropdownBaseTextboxEvent {\n OPEN = 'dropdown-base-open',\n KEYDOWN = 'dropdown-base-keydown',\n CLOSE = 'dropdown-base-close',\n INPUT = 'dropdown-base-input',\n CLEAR = 'dropdown-base-clear',\n}\n\nexport default DropdownBaseTextboxProps;\n","<template>\n <div\n :class=\"$attrs.class\"\n data-testid=\"textbox-wrapper\"\n @click=\"onToggleDropdown\"\n @keydown.escape=\"onCloseDropdown\"\n >\n <bento-typography\n class=\"b-dropdown-base-textbox\"\n :class=\"conditionalClasses\"\n el=\"div\"\n data-testid=\"base-textbox\"\n >\n <input\n v-if=\"shouldShowInput\"\n v-bind=\"ariaAttributes\"\n :id=\"textboxId\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n role=\"combobox\"\n type=\"text\"\n aria-autocomplete=\"list\"\n size=\"1\"\n :value=\"open ? value : displayValue\"\n :disabled=\"disabled ? true : null\"\n :readonly=\"readonly\"\n :required=\"isRequired\"\n @keydown=\"$emit(DropdownBaseTextboxEvent.KEYDOWN, $event)\"\n @keydown.enter=\"onToggleDropdown\"\n @input=\"onInputEvent\"\n />\n <div\n v-else\n :id=\"textboxId\"\n v-bind=\"ariaAttributes\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n :class=\"comboboxConditionalClasses\"\n :aria-readonly=\"readonly ? 'true' : null\"\n role=\"combobox\"\n :tabindex=\"disabled ? -1 : 0\"\n >\n <template v-if=\"shouldShowSingleSelectSlot\">\n <slot v-if=\"hasSlot('display-value')\" v-bind=\"selectedValueItem\" name=\"display-value\"></slot>\n <slot v-else v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n </template>\n <template v-else-if=\"shouldShowMultipleSlot\">\n <div class=\"b-dropdown-base-textbox__input-multiple-selected\">\n <div v-for=\"singleItem of selectedValueItems\" :key=\"singleItem.value\">\n <div class=\"b-dropdown-base-textbox__input-selected-element\">\n <slot v-bind=\"singleItem\">\n {{ displayValue }}\n </slot>\n </div>\n </div>\n </div>\n </template>\n <template v-else>{{ displayValue }}</template>\n </div>\n <span v-if=\"additionalItemsSelected\" class=\"b-dropdown-base-textbox__additional-items\">\n {{ additionalItemsSelected }}\n </span>\n <span v-if=\"hasSlot('icon') && !isFiltering\" class=\"b-dropdown-base-textbox__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"></slot>\n </span>\n <span\n v-if=\"isFiltering\"\n class=\"b-dropdown-base-textbox__clear-search\"\n :tabindex=\"disabled ? -1 : 0\"\n data-testid=\"clear-search-button\"\n @click.stop=\"onClearSearch\"\n @keydown.enter.stop=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-small-icon v-if=\"size === BentoDropdownSize.SMALL\" :svg-title=\"t('clearSearch')\" />\n <cross-circle-fill-icon v-else :svg-title=\"t('clearSearch')\" />\n </span>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, type PropType, ref, useAttrs, useSlots, watch } from 'vue';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { BentoTypography } from '@/components/typography';\n import { debounce } from '@/utils/ts/debounce';\n import { type Booleanish } from '@/types/prop-types';\n import { type BentoListboxOptionItem } from '@/types/listbox';\n import type { HTMLAttributes } from 'vue/types/jsx.d.ts';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * If the combobox DOM element should be an `input` element.\n */\n alwaysComboboxIsInput: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time for the user type event.\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | Array<BentoListboxOptionItem>>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * Dropdown size\n */\n size: {\n type: String as PropType<BentoDropdownSize | `${BentoDropdownSize}`>,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the \"clear\" button is clicked\n */\n (e: DropdownBaseTextboxEvent.CLEAR);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: DropdownBaseTextboxEvent.CLOSE);\n\n /**\n * Emitted when `dynamicFiltering` is enabled and a search input is entered\n */\n (e: DropdownBaseTextboxEvent.INPUT, searchValue: string);\n\n /**\n * Emitted when any key is pressed and the focus is on the input field\n */\n (e: DropdownBaseTextboxEvent.KEYDOWN, event: KeyboardEvent);\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: DropdownBaseTextboxEvent.OPEN);\n }>();\n\n const textbox = ref(null);\n const textboxId = generateUid('textbox');\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.HAS_ITEMS}`]: !!props.additionalItemsSelected,\n }));\n\n const isRequired = computed(() => attrs['required'] as Booleanish);\n\n const comboboxConditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox__input--dynamic-filtering`]: props.dynamicFiltering,\n }));\n\n const isFiltering = computed(() => props.dynamicFiltering && !!props.value && props.open);\n\n const ariaAttributes = computed(\n () =>\n ({\n 'aria-haspopup': 'listbox',\n 'aria-controls': props.ariaControls,\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n 'aria-expanded': props.ariaExpanded ? 'true' : 'false',\n 'aria-labelledby': props.ariaLabelledby,\n 'aria-label': props.ariaLabelledby ? null : props.ariaLabel,\n 'aria-invalid': props.isInvalid,\n 'aria-disabled': props.disabled ? true : null,\n 'aria-required': shouldShowInput.value ? null : isRequired.value,\n }) as HTMLAttributes\n );\n // Cast selectedValueItem if it is an array of selected items\n const selectedValueItems = computed(() =>\n props.multiple ? (props.selectedValueItem as Array<BentoListboxOptionItem>) : []\n );\n\n const shouldShowInput = computed(() => props.dynamicFiltering && (props.open || props.alwaysComboboxIsInput));\n const shouldShowSingleSelectSlot = computed(() => props.selectedValueItem && !props.multiple);\n const shouldShowMultipleSlot = computed(\n () =>\n props.multiple &&\n props.selectedValueItem &&\n selectedValueItems.value.length > 0 &&\n props.showSlotContentInMultiple\n );\n\n watch(\n () => shouldShowInput.value,\n () => {\n if (shouldShowInput.value && !props.alwaysComboboxIsInput) {\n nextTick(() => {\n textbox.value.focus();\n });\n }\n }\n );\n\n const onOpenDropdown = async () => {\n if (!props.disabled && !props.readonly) {\n emit(DropdownBaseTextboxEvent.OPEN);\n // wait for popover to open before setting focus\n await nextTick();\n textbox.value.focus();\n }\n };\n\n const onCloseDropdown = () => {\n if (props.open) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.CLOSE);\n }\n };\n\n const onToggleDropdown = (event: Event) => {\n const isDynamicFilteringInputClickEvent = props.open && (event.target as HTMLDivElement).tagName === 'INPUT';\n if (isDynamicFilteringInputClickEvent) {\n /**\n * When there's a click even on the input during filtering\n * and the popover is open, do not toggle the popover.\n * Allow for click events inside the input field\n */\n return null;\n }\n\n return props.open ? onCloseDropdown() : onOpenDropdown();\n };\n\n const onClearSearch = () => {\n emit(DropdownBaseTextboxEvent.CLEAR);\n emit(DropdownBaseTextboxEvent.INPUT, '');\n textbox.value.focus();\n };\n const onInputEvent = debounce<(event: Event) => void>((event: Event) => {\n if (!props.readonly && !props.disabled) {\n emit(DropdownBaseTextboxEvent.INPUT, (event.target as HTMLInputElement).value);\n } else {\n event.preventDefault();\n event.stopPropagation();\n }\n }, props.debounceTime);\n\n const focus = () => {\n textbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Only for internal use, implements the logic of the textbox element to be implemented in the combobox.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'dropdown-base-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-base-textbox.scss\" />\n","<template>\n <div class=\"b-dropdown-default-textbox\" :class=\"conditionalClasses\" data-testid=\"default-textbox\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-default-textbox__textbox\"\n :value=\"value\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope ?? {}\" />\n </template>\n <template #icon>\n <div class=\"b-dropdown-default-textbox__chevron\">\n <chevron-up-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, defineComponent, type PropType, ref, useSlots } from 'vue';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import { type Booleanish } from '@/types/prop-types';\n import { type BentoListboxOptionItem } from '@/types/listbox';\n import { stopEventPropagation } from '@/utils/ts/events';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '../dropdown-base-textbox/dropdown-base-textbox.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | Array<BentoListboxOptionItem>>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n });\n\n const baseTextbox = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.ERROR}`]:\n !props.disabled && !props.readonly && props.isInvalid,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-default-textbox--condensed': props.condensed,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n"],"names":["BentoDropdownSize","BentoDropdownSize2","DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","__default__$1","defineComponent","messages","t","useI18n","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","props","__props","emit","__emit","textbox","ref","textboxId","generateUid","conditionalClasses","computed","isRequired","comboboxConditionalClasses","isFiltering","ariaAttributes","_a","shouldShowInput","selectedValueItems","shouldShowSingleSelectSlot","shouldShowMultipleSlot","watch","nextTick","onOpenDropdown","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","debounce","__expose","__default__","baseTextbox","isDropdownOpen","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","listeners"],"mappings":"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"}
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as u, computed as O, createElementBlock as $, openBlock as w, createVNode as l, mergeProps as B, withCtx as f, unref as d, toRefs as x, createTextVNode as g, toDisplayString as U, ref as V, watch as k, createBlock as S, createElementVNode as E, createCommentVNode as P } from "vue";
2
2
  import { B as N } from "./avatar.CNGMjwg3.js";
3
- import { B as m, u as F } from "./dropdown.Dct8gr_q.js";
3
+ import { B as m, u as F } from "./dropdown.DmzMGz30.js";
4
4
  import { u as b } from "./form-field.D_2g7vaP.js";
5
5
  import { d as _, B as D } from "./typography.6Oo5TOMP.js";
6
6
  import { u as L } from "./use-country-items.JZCYNoW7.js";
7
7
  import { B as T } from "./country.types.DaVCMxk-.js";
8
- import { L as A } from "./listbox-option-tag.BQZJF00q.js";
8
+ import { L as A } from "./listbox-option-tag.BHQiD5oC.js";
9
9
  import { B as C } from "./payment-method.BGEBaa4w.js";
10
10
  import { _ as I } from "./_plugin-vue_export-helper.CHgC5LLL.js";
11
11
  import "../assets/dropdown-tag.css";
@@ -298,4 +298,4 @@ export {
298
298
  me as c,
299
299
  de as d
300
300
  };
301
- //# sourceMappingURL=dropdown-tag.Bf6TiNZw.js.map
301
+ //# sourceMappingURL=dropdown-tag.CBgns9Y3.js.map