@adyen/bento-vue2 1.51.0 → 1.53.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 (283) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +583 -79
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions-with-menu.css +1 -1
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-input.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/dashed-underline.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-picker.css +1 -1
  16. package/dist/assets/date-range-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/form-layout-title.css +1 -1
  22. package/dist/assets/header-with-views.css +1 -0
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field-phone-number.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/menu.css +1 -1
  28. package/dist/assets/modal-fullscreen.css +1 -1
  29. package/dist/assets/popover.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/summary-grid-item-custom.css +1 -1
  32. package/dist/assets/use-cached-selected-values.css +1 -1
  33. package/dist/button.js +1 -1
  34. package/dist/card.js +1 -1
  35. package/dist/checkbox.js +3 -3
  36. package/dist/chunks/{action-bar.DGhojWpe.js → action-bar.Cuktzrp5.js} +5 -5
  37. package/dist/chunks/{action-bar.DGhojWpe.js.map → action-bar.Cuktzrp5.js.map} +1 -1
  38. package/dist/chunks/{alert.BSBLkXkM.js → alert.BkMKX9wD.js} +9 -9
  39. package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
  40. package/dist/chunks/{base-modal.Dan5WQin.js → base-modal.DnaWOvaM.js} +4 -4
  41. package/dist/chunks/{base-modal.Dan5WQin.js.map → base-modal.DnaWOvaM.js.map} +1 -1
  42. package/dist/chunks/bin.DuebwJYu.js +24 -0
  43. package/dist/chunks/bin.DuebwJYu.js.map +1 -0
  44. package/dist/chunks/button-actions-with-menu.twMFsb82.js +166 -0
  45. package/dist/chunks/button-actions-with-menu.twMFsb82.js.map +1 -0
  46. package/dist/chunks/{button-actions.GhdYBSwt.js → button-actions.DAvSJtOB.js} +3 -3
  47. package/dist/chunks/{button-actions.GhdYBSwt.js.map → button-actions.DAvSJtOB.js.map} +1 -1
  48. package/dist/chunks/calendar.CJToU_uI.js +1130 -0
  49. package/dist/chunks/calendar.CJToU_uI.js.map +1 -0
  50. package/dist/chunks/{card.Csazj5Qz.js → card.AQO_BjGb.js} +2 -2
  51. package/dist/chunks/{card.Csazj5Qz.js.map → card.AQO_BjGb.js.map} +1 -1
  52. package/dist/chunks/{checkbox-group.DcJ31aLq.js → checkbox-group.DkM6n3JR.js} +4 -4
  53. package/dist/chunks/{checkbox-group.DcJ31aLq.js.map → checkbox-group.DkM6n3JR.js.map} +1 -1
  54. package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
  55. package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
  56. package/dist/chunks/checkbox.l7h6GYew.js +176 -0
  57. package/dist/chunks/checkbox.l7h6GYew.js.map +1 -0
  58. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  59. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  60. package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
  61. package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
  62. package/dist/chunks/{code-snippet.z_G2UXVT.js → code-snippet.BsEe6nml.js} +5 -5
  63. package/dist/chunks/{code-snippet.z_G2UXVT.js.map → code-snippet.BsEe6nml.js.map} +1 -1
  64. package/dist/chunks/{controls-group.ghJ7a8PY.js → controls-group.vFyThDMU.js} +2 -2
  65. package/dist/chunks/{controls-group.ghJ7a8PY.js.map → controls-group.vFyThDMU.js.map} +1 -1
  66. package/dist/chunks/{copy.BNOiinIt.js → copy.DD_Yfyn_.js} +3 -3
  67. package/dist/chunks/{copy.BNOiinIt.js.map → copy.DD_Yfyn_.js.map} +1 -1
  68. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  69. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  70. package/dist/chunks/{dashboard-section.Db_E382r.js → dashboard-section.z-Rnv5E-.js} +3 -3
  71. package/dist/chunks/{dashboard-section.Db_E382r.js.map → dashboard-section.z-Rnv5E-.js.map} +1 -1
  72. package/dist/chunks/{dashed-underline.CAhDrAG_.js → dashed-underline.CfQuYKV9.js} +8 -8
  73. package/dist/chunks/{dashed-underline.CAhDrAG_.js.map → dashed-underline.CfQuYKV9.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.DG5IWdLG.js → data-grid-template.73mazFER.js} +2 -2
  75. package/dist/chunks/{data-grid-template.DG5IWdLG.js.map → data-grid-template.73mazFER.js.map} +1 -1
  76. package/dist/chunks/{data-grid.CHV-FvBB.js → data-grid.C_Xoz-GC.js} +38 -28
  77. package/dist/chunks/data-grid.C_Xoz-GC.js.map +1 -0
  78. package/dist/chunks/date-picker.bgk9aymW.js +235 -0
  79. package/dist/chunks/date-picker.bgk9aymW.js.map +1 -0
  80. package/dist/chunks/date-range-picker.-s05jOQA.js +903 -0
  81. package/dist/chunks/date-range-picker.-s05jOQA.js.map +1 -0
  82. package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
  83. package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
  84. package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
  85. package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
  86. package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js → dropdown-default-textbox.CDTdHfTv.js} +2 -2
  87. package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
  88. package/dist/chunks/{dropdown-tag.K4idCLeu.js → dropdown-tag.8qh8J-NE.js} +4 -4
  89. package/dist/chunks/{dropdown-tag.K4idCLeu.js.map → dropdown-tag.8qh8J-NE.js.map} +1 -1
  90. package/dist/chunks/{dropdown.DFEGHxjw.js → dropdown.DzWXcJyF.js} +141 -132
  91. package/dist/chunks/dropdown.DzWXcJyF.js.map +1 -0
  92. package/dist/chunks/{error-message.B3oWB_HM.js → error-message.CzQf7YOD.js} +3 -3
  93. package/dist/chunks/{error-message.B3oWB_HM.js.map → error-message.CzQf7YOD.js.map} +1 -1
  94. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  95. package/dist/chunks/{file-uploader.DaBMZSsB.js → file-uploader.CcZPr-jD.js} +329 -328
  96. package/dist/chunks/file-uploader.CcZPr-jD.js.map +1 -0
  97. package/dist/chunks/{filter-bar.DClIG9aP.js → filter-bar.BdGtQC7p.js} +619 -668
  98. package/dist/chunks/filter-bar.BdGtQC7p.js.map +1 -0
  99. package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CIUzScHc.js} +2 -2
  100. package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CIUzScHc.js.map} +1 -1
  101. package/dist/chunks/{footer-actions.D0SuJroc.js → footer-actions.BkHpWa7A.js} +2 -2
  102. package/dist/chunks/{footer-actions.D0SuJroc.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
  103. package/dist/chunks/{form-layout-title.C1n2S73_.js → form-layout-title.DK1-01RH.js} +50 -47
  104. package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
  105. package/dist/chunks/header-with-views.ChEgH2tn.js +1536 -0
  106. package/dist/chunks/header-with-views.ChEgH2tn.js.map +1 -0
  107. package/dist/chunks/header.0hX8OYwM.js +183 -0
  108. package/dist/chunks/header.0hX8OYwM.js.map +1 -0
  109. package/dist/chunks/index.BCUiAdb6.js +387 -0
  110. package/dist/chunks/{index.CU8GKq4C.js.map → index.BCUiAdb6.js.map} +1 -1
  111. package/dist/chunks/index.BDuTpjD8.js +40 -0
  112. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  113. package/dist/chunks/index.BxBB1rsx.js +15 -0
  114. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  115. package/dist/chunks/index.DD7TppDb.js +10 -0
  116. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  117. package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js → info-icon-with-popover.w6MpKOWh.js} +3 -3
  118. package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js.map → info-icon-with-popover.w6MpKOWh.js.map} +1 -1
  119. package/dist/chunks/{info-icon.bXR5eo6I.js → info-icon.C1ReXurF.js} +4 -4
  120. package/dist/chunks/{info-icon.bXR5eo6I.js.map → info-icon.C1ReXurF.js.map} +1 -1
  121. package/dist/chunks/info.4d_mJHvT.js +24 -0
  122. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  123. package/dist/chunks/input-field-password.CZn4kW8v.js +198 -0
  124. package/dist/chunks/input-field-password.CZn4kW8v.js.map +1 -0
  125. package/dist/chunks/{input-field-phone-number.Bmugk7fI.js → input-field-phone-number.C8WTJ1W-.js} +324 -321
  126. package/dist/chunks/{input-field-phone-number.Bmugk7fI.js.map → input-field-phone-number.C8WTJ1W-.js.map} +1 -1
  127. package/dist/chunks/input-field.tP3Eupoo.js +152 -0
  128. package/dist/chunks/input-field.tP3Eupoo.js.map +1 -0
  129. package/dist/chunks/{inspector.types.C9Oc8FgA.js → inspector.types.A0b4jNO3.js} +3 -3
  130. package/dist/chunks/{inspector.types.C9Oc8FgA.js.map → inspector.types.A0b4jNO3.js.map} +1 -1
  131. package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.BgBazwnM.js} +2 -2
  132. package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.BgBazwnM.js.map} +1 -1
  133. package/dist/chunks/{listbox-option-tag.bPRcATJK.js → listbox-option-tag.T9cfTst7.js} +2 -2
  134. package/dist/chunks/{listbox-option-tag.bPRcATJK.js.map → listbox-option-tag.T9cfTst7.js.map} +1 -1
  135. package/dist/chunks/{menu.CzbkunwY.js → menu.CY7ceslP.js} +88 -87
  136. package/dist/chunks/menu.CY7ceslP.js.map +1 -0
  137. package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js → modal-fullscreen.Dz5w250z.js} +3 -3
  138. package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js.map → modal-fullscreen.Dz5w250z.js.map} +1 -1
  139. package/dist/chunks/{modal.DgCmKjQC.js → modal.CnmRkXZM.js} +4 -4
  140. package/dist/chunks/{modal.DgCmKjQC.js.map → modal.CnmRkXZM.js.map} +1 -1
  141. package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
  142. package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
  143. package/dist/chunks/{pagination.CdOxfZW2.js → pagination.CvGOUwd8.js} +2 -2
  144. package/dist/chunks/{pagination.CdOxfZW2.js.map → pagination.CvGOUwd8.js.map} +1 -1
  145. package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
  146. package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
  147. package/dist/chunks/{popover.3sHql3nd.js → popover.BvsqsZQ1.js} +3 -3
  148. package/dist/chunks/{popover.3sHql3nd.js.map → popover.BvsqsZQ1.js.map} +1 -1
  149. package/dist/chunks/{popper-container.Bqy3oVj6.js → popper-container.LRQgzjRf.js} +2 -2
  150. package/dist/chunks/{popper-container.Bqy3oVj6.js.map → popper-container.LRQgzjRf.js.map} +1 -1
  151. package/dist/chunks/{promo-banner.BIICM7FC.js → promo-banner.DDnJwMDC.js} +2 -2
  152. package/dist/chunks/{promo-banner.BIICM7FC.js.map → promo-banner.DDnJwMDC.js.map} +1 -1
  153. package/dist/chunks/{radio-group.L-XokgwC.js → radio-group.BvswbJa8.js} +4 -4
  154. package/dist/chunks/{radio-group.L-XokgwC.js.map → radio-group.BvswbJa8.js.map} +1 -1
  155. package/dist/chunks/{search-bar.CDTWPjG1.js → search-bar.kKLreEXo.js} +5 -5
  156. package/dist/chunks/{search-bar.CDTWPjG1.js.map → search-bar.kKLreEXo.js.map} +1 -1
  157. package/dist/chunks/search.DLtglc02.js +24 -0
  158. package/dist/chunks/search.DLtglc02.js.map +1 -0
  159. package/dist/chunks/{secondary-nav.BwmBTvl5.js → secondary-nav.C6bfsK2p.js} +3 -3
  160. package/dist/chunks/{secondary-nav.BwmBTvl5.js.map → secondary-nav.C6bfsK2p.js.map} +1 -1
  161. package/dist/chunks/{segmented-control.CW6v1rDg.js → segmented-control.BywW3ont.js} +2 -2
  162. package/dist/chunks/{segmented-control.CW6v1rDg.js.map → segmented-control.BywW3ont.js.map} +1 -1
  163. package/dist/chunks/{selection-card-group.CURxGbd9.js → selection-card-group.Ca4G00h5.js} +5 -5
  164. package/dist/chunks/{selection-card-group.CURxGbd9.js.map → selection-card-group.Ca4G00h5.js.map} +1 -1
  165. package/dist/chunks/{sidepanel.MBArfd4a.js → sidepanel.D4H3Vu0m.js} +4 -4
  166. package/dist/chunks/{sidepanel.MBArfd4a.js.map → sidepanel.D4H3Vu0m.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.CYYZ1Fil.js → structured-list-item.Bv8reTz2.js} +5 -5
  168. package/dist/chunks/{structured-list-item.CYYZ1Fil.js.map → structured-list-item.Bv8reTz2.js.map} +1 -1
  169. package/dist/chunks/{summary-grid-item-custom.CVEhwKNM.js → summary-grid-item-custom.Bbdie4EL.js} +188 -135
  170. package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +1 -0
  171. package/dist/chunks/{tag.BxmageRW.js → tag.IyMxowGc.js} +2 -2
  172. package/dist/chunks/{tag.BxmageRW.js.map → tag.IyMxowGc.js.map} +1 -1
  173. package/dist/chunks/{teleport.B5fwsT5y.js → teleport.BHfrns33.js} +2 -2
  174. package/dist/chunks/{teleport.B5fwsT5y.js.map → teleport.BHfrns33.js.map} +1 -1
  175. package/dist/chunks/{textarea.DmjhRupr.js → textarea.B9HjT5LH.js} +2 -2
  176. package/dist/chunks/{textarea.DmjhRupr.js.map → textarea.B9HjT5LH.js.map} +1 -1
  177. package/dist/chunks/{timeline-item.CLbS-cEf.js → timeline-item.BIwk0vqM.js} +12 -11
  178. package/dist/chunks/{timeline-item.CLbS-cEf.js.map → timeline-item.BIwk0vqM.js.map} +1 -1
  179. package/dist/chunks/{tooltip.Vgoc41cI.js → tooltip.DShIiBiY.js} +2 -2
  180. package/dist/chunks/{tooltip.Vgoc41cI.js.map → tooltip.DShIiBiY.js.map} +1 -1
  181. package/dist/chunks/{tutorial.CmLMgXDK.js → tutorial.DDlXTjAO.js} +42 -42
  182. package/dist/chunks/tutorial.DDlXTjAO.js.map +1 -0
  183. package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js → use-cached-selected-values.LVldNial.js} +13 -9
  184. package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js.map → use-cached-selected-values.LVldNial.js.map} +1 -1
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/dashboard-template.js +1 -1
  188. package/dist/dashed-underline.js +2 -2
  189. package/dist/data-grid-template.js +1 -1
  190. package/dist/data-grid.js +1 -1
  191. package/dist/date-picker.js +2 -2
  192. package/dist/date-range-picker.js +2 -2
  193. package/dist/date.js +1 -1
  194. package/dist/dropdown.js +4 -4
  195. package/dist/file-uploader.js +1 -1
  196. package/dist/filter-bar.js +1 -1
  197. package/dist/focus-trap.js +1 -1
  198. package/dist/form-layout.js +1 -1
  199. package/dist/header-with-views.js +5 -0
  200. package/dist/header-with-views.js.map +1 -0
  201. package/dist/header.js +1 -1
  202. package/dist/index.js +200 -198
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +1 -1
  205. package/dist/input-field-password.js +1 -1
  206. package/dist/input-field-phone-number.js +1 -1
  207. package/dist/input-field.js +1 -1
  208. package/dist/inspector.js +1 -1
  209. package/dist/internal.js +35 -33
  210. package/dist/layout.js +1 -1
  211. package/dist/menu.js +1 -1
  212. package/dist/modal-fullscreen.js +1 -1
  213. package/dist/modal.js +2 -2
  214. package/dist/pagination.js +1 -1
  215. package/dist/payment-method.js +1 -1
  216. package/dist/popover.js +1 -1
  217. package/dist/popper-container.js +1 -1
  218. package/dist/promo-banner.js +1 -1
  219. package/dist/radio-group.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/segmented-control.js +1 -1
  223. package/dist/selection-card.js +1 -1
  224. package/dist/sidepanel.js +1 -1
  225. package/dist/structured-list.js +1 -1
  226. package/dist/styles/bento-dark.css +73 -1
  227. package/dist/styles/bento-light.css +73 -1
  228. package/dist/styles/bento.css +73 -1
  229. package/dist/styles/legacy.css +75 -3
  230. package/dist/styles/styleguide.css +73 -1
  231. package/dist/summary-grid.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/tutorial.js +1 -1
  236. package/dist/use-form-v4.js +8300 -0
  237. package/dist/use-form-v4.js.map +1 -0
  238. package/dist/web-types.json +1005 -206
  239. package/package.json +9 -8
  240. package/dist/chunks/alert.BSBLkXkM.js.map +0 -1
  241. package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js +0 -112
  242. package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js.map +0 -1
  243. package/dist/chunks/calendar.YJTNpmzh.js +0 -888
  244. package/dist/chunks/calendar.YJTNpmzh.js.map +0 -1
  245. package/dist/chunks/checkbox-input.B4A_gL2b.js +0 -128
  246. package/dist/chunks/checkbox-input.B4A_gL2b.js.map +0 -1
  247. package/dist/chunks/checkbox.BpF0HY7C.js +0 -162
  248. package/dist/chunks/checkbox.BpF0HY7C.js.map +0 -1
  249. package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js +0 -24
  250. package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +0 -1
  251. package/dist/chunks/cross-circle-fill.BawVYNw7.js +0 -24
  252. package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +0 -1
  253. package/dist/chunks/data-grid.CHV-FvBB.js.map +0 -1
  254. package/dist/chunks/date-picker.CMj5-RQl.js +0 -213
  255. package/dist/chunks/date-picker.CMj5-RQl.js.map +0 -1
  256. package/dist/chunks/date-range-picker.Jysfo6h3.js +0 -885
  257. package/dist/chunks/date-range-picker.Jysfo6h3.js.map +0 -1
  258. package/dist/chunks/dropdown.DFEGHxjw.js.map +0 -1
  259. package/dist/chunks/file-uploader.DaBMZSsB.js.map +0 -1
  260. package/dist/chunks/filter-bar.DClIG9aP.js.map +0 -1
  261. package/dist/chunks/form-layout-title.C1n2S73_.js.map +0 -1
  262. package/dist/chunks/header.CRlxEGHb.js +0 -205
  263. package/dist/chunks/header.CRlxEGHb.js.map +0 -1
  264. package/dist/chunks/index.CU8GKq4C.js +0 -369
  265. package/dist/chunks/index.CrhTVr5J.js +0 -10
  266. package/dist/chunks/index.CrhTVr5J.js.map +0 -1
  267. package/dist/chunks/index.DDnf1O9p.js +0 -22
  268. package/dist/chunks/index.DDnf1O9p.js.map +0 -1
  269. package/dist/chunks/index.DPafeRJa.js +0 -10
  270. package/dist/chunks/index.DPafeRJa.js.map +0 -1
  271. package/dist/chunks/info.D4SG-AIm.js +0 -24
  272. package/dist/chunks/info.D4SG-AIm.js.map +0 -1
  273. package/dist/chunks/input-field-password.DsIpkc_9.js +0 -191
  274. package/dist/chunks/input-field-password.DsIpkc_9.js.map +0 -1
  275. package/dist/chunks/input-field.Dl2lXZda.js +0 -146
  276. package/dist/chunks/input-field.Dl2lXZda.js.map +0 -1
  277. package/dist/chunks/menu.CzbkunwY.js.map +0 -1
  278. package/dist/chunks/payment-method.BudFG3aC.js +0 -76
  279. package/dist/chunks/payment-method.BudFG3aC.js.map +0 -1
  280. package/dist/chunks/search.pVu-JVAN.js +0 -24
  281. package/dist/chunks/search.pVu-JVAN.js.map +0 -1
  282. package/dist/chunks/summary-grid-item-custom.CVEhwKNM.js.map +0 -1
  283. package/dist/chunks/tutorial.CmLMgXDK.js.map +0 -1
@@ -1,22 +0,0 @@
1
- import { r as o, t } from "./get-date-locale.BN8xEjY0.js";
2
- function f(e, r) {
3
- o(2, arguments);
4
- var n = t(e), i = t(r), a = n.getTime() - i.getTime();
5
- return a < 0 ? -1 : a > 0 ? 1 : a;
6
- }
7
- function s(e, r) {
8
- if (e == null)
9
- throw new TypeError("assign requires that input parameter not be null or undefined");
10
- r = r || {};
11
- for (var n in r)
12
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
13
- return e;
14
- }
15
- function l(e) {
16
- return s({}, e);
17
- }
18
- export {
19
- l as a,
20
- f as c
21
- };
22
- //# sourceMappingURL=index.DDnf1O9p.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.DDnf1O9p.js","sources":["../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/compareAsc/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/assign/index.js","../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/cloneObject/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\n\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1; // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}","export default function assign(target, dirtyObject) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n\n dirtyObject = dirtyObject || {};\n\n for (var property in dirtyObject) {\n if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {\n target[property] = dirtyObject[property];\n }\n }\n\n return target;\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(dirtyObject) {\n return assign({}, dirtyObject);\n}"],"names":["compareAsc","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","diff","assign","target","dirtyObject","property","cloneObject"],"mappings":";AAuCe,SAASA,EAAWC,GAAeC,GAAgB;AAChE,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAWC,EAAOJ,CAAa,GAC/BK,IAAYD,EAAOH,CAAc,GACjCK,IAAOH,EAAS,QAAO,IAAKE,EAAU,QAAS;AAEnD,SAAIC,IAAO,IACF,KACEA,IAAO,IACT,IAEAA;AAEX;ACpDe,SAASC,EAAOC,GAAQC,GAAa;AAClD,MAAID,KAAU;AACZ,UAAM,IAAI,UAAU,+DAA+D;AAGrF,EAAAC,IAAcA,KAAe,CAAE;AAE/B,WAASC,KAAYD;AACnB,IAAI,OAAO,UAAU,eAAe,KAAKA,GAAaC,CAAQ,MAC5DF,EAAOE,CAAQ,IAAID,EAAYC,CAAQ;AAI3C,SAAOF;AACT;ACbe,SAASG,EAAYF,GAAa;AAC/C,SAAOF,EAAO,CAAE,GAAEE,CAAW;AAC/B;","x_google_ignoreList":[0,1,2]}
@@ -1,10 +0,0 @@
1
- import { r as t, t as a } from "./get-date-locale.BN8xEjY0.js";
2
- function o(e) {
3
- t(1, arguments);
4
- var r = a(e);
5
- return r.setHours(23, 59, 59, 999), r;
6
- }
7
- export {
8
- o as e
9
- };
10
- //# sourceMappingURL=index.DPafeRJa.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.DPafeRJa.js","sources":["../../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/endOfDay/index.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\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 * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a day\n * @throws {TypeError} 1 argument required\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 */\n\nexport default function endOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(23, 59, 59, 999);\n return date;\n}"],"names":["endOfDay","dirtyDate","requiredArgs","date","toDate"],"mappings":";AAyBe,SAASA,EAASC,GAAW;AAC1C,EAAAC,EAAa,GAAG,SAAS;AACzB,MAAIC,IAAOC,EAAOH,CAAS;AAC3B,SAAAE,EAAK,SAAS,IAAI,IAAI,IAAI,GAAG,GACtBA;AACT;","x_google_ignoreList":[0]}
@@ -1,24 +0,0 @@
1
- /* empty css */
2
- import { n as a } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
3
- let i = 0;
4
- const r = {
5
- beforeCreate() {
6
- this.uuid = i.toString(), i += 1;
7
- }
8
- };
9
- var C = function() {
10
- var t = this, s = t._self._c;
11
- return s("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? s("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), s("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-info__a" + t.uuid + ")" } }, [s("path", { attrs: { d: "M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z" } }), s("path", { attrs: { d: "M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z" } }), s("path", { attrs: { d: "M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z" } })]), s("defs", [s("clipPath", { attrs: { id: "uia-icons-16-info__a" + t.uuid } }, [s("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
12
- }, e = [], n = /* @__PURE__ */ a(
13
- r,
14
- C,
15
- e,
16
- !1,
17
- null,
18
- null
19
- );
20
- const f = n.exports;
21
- export {
22
- f as I
23
- };
24
- //# sourceMappingURL=info.D4SG-AIm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.D4SG-AIm.js","sources":["../../../ui-assets/icons-16/dist/vue/info.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><g fill=\"#00112C\" :clip-path=\"'url(#uia-icons-16-info__a' + uuid + ')'\"><path d=\"M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z\"/><path d=\"M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z\"/><path d=\"M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z\"/></g><defs><clipPath :id=\"'uia-icons-16-info__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></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"],"mappings":";;AAOA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;"}
@@ -1,191 +0,0 @@
1
- import { defineComponent as X, useAttrs as j, ref as o, computed as n, watch as M } from "vue";
2
- import { B as J } from "./button.D-3uUhuG.js";
3
- import { B as G } from "./image.C2D2hKat.js";
4
- import { B as K } from "./input-field.Dl2lXZda.js";
5
- import { B as Q } from "./popover.3sHql3nd.js";
6
- import { B as Y } from "./typography.J1v_SPG3.js";
7
- import { C as $ } from "./checkmark-circle-fill.C46dV1Rf.js";
8
- import { D as ee } from "./dot.CnkXzRn3.js";
9
- import { S as ae, H as te } from "./show.e4LEpZKG.js";
10
- import { d as ie, w as se } from "./index.CU8GKq4C.js";
11
- import { u as oe } from "./i18n.BQkEbtPM.js";
12
- import { g as A } from "./generate-uid.NJ8tVoha.js";
13
- import { T as le } from "./tooltip.Vgoc41cI.js";
14
- import { n as ne } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
15
- import "../assets/input-field-password.css";
16
- var f = /* @__PURE__ */ ((i) => (i.TEXT = "text", i.PASSWORD = "password", i))(f || {});
17
- const re = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
18
- function m(i) {
19
- return (i == null ? void 0 : i.toString()) ?? "";
20
- }
21
- function de(i, a = 8) {
22
- return m(i).length >= a;
23
- }
24
- function ce(i) {
25
- return /[a-z]/.test(m(i));
26
- }
27
- function ue(i) {
28
- return /[A-Z]/.test(m(i));
29
- }
30
- function pe(i) {
31
- return /\d/.test(m(i));
32
- }
33
- function ve(i) {
34
- return /[^a-zA-Z0-9]/.test(m(i));
35
- }
36
- const fe = {
37
- "en-US": {
38
- capsLockEnabled: "Caps lock on",
39
- hidePassword: "Hide",
40
- showPassword: "Show",
41
- validationChecked: "Checked",
42
- validationMinLength: "8 characters",
43
- validationRequireLowercase: "1 lowercase (a-z)",
44
- validationRequireNumeric: "1 numerical (0-9)",
45
- validationRequireSpecialCharacter: "1 special character",
46
- validationRequireUppercase: "1 uppercase (A-Z)",
47
- validationSuggestion: "Avoid using currency symbols or accented letters.",
48
- validationTitle: "Password must contain at least:",
49
- validationUnchecked: "Unchecked",
50
- validationValid: "Input is valid"
51
- },
52
- "ja-JP": {
53
- capsLockEnabled: "Caps lockオン",
54
- hidePassword: "非表示",
55
- showPassword: "表示",
56
- validationMinLength: "8字",
57
- validationRequireLowercase: "小文字1字 (a-z)",
58
- validationRequireNumeric: "数字1字 (0-9)",
59
- validationRequireSpecialCharacter: "特殊文字1字",
60
- validationRequireUppercase: "大文字1字 (A-Z)",
61
- validationSuggestion: "通貨記号やアクセント付き文字は避けてください。",
62
- validationTitle: "パスワードには少なくとも次のものを含める必要があります :"
63
- },
64
- "pt-BR": {
65
- capsLockEnabled: "Caps lock ativado",
66
- hidePassword: "Ocultar",
67
- showPassword: "Exibir",
68
- validationMinLength: "8 caracteres",
69
- validationRequireLowercase: "1 minúscula (a-z)",
70
- validationRequireNumeric: "1 numérico (0-9)",
71
- validationRequireSpecialCharacter: "1 caractere especial",
72
- validationRequireUppercase: "1 maiúscula (A-Z)",
73
- validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
74
- validationTitle: "A senha deve conter pelo menos:"
75
- }
76
- }, me = {
77
- i18n: { messages: fe },
78
- name: "bento-input-field-password"
79
- }, he = /* @__PURE__ */ X({
80
- ...me,
81
- props: {
82
- condensed: { default: !1 },
83
- disabled: { default: !1 },
84
- errorMessage: { default: null },
85
- placeholder: { default: "" },
86
- readonly: { default: !1 },
87
- value: { default: void 0 },
88
- label: { default: null },
89
- validation: { default: void 0 },
90
- withHint: { type: Boolean, default: !0 }
91
- },
92
- emits: ["input:valid", "input"],
93
- setup(i, { emit: a }) {
94
- const t = i, e = 500, h = 2e3, d = 2e3, { t: l } = oe(), y = j(), p = o(f.PASSWORD), c = o(t.value), I = o(!1), g = o(!1), _ = o([]), r = o(null), u = o(!1), R = o(null), P = o(null), F = o(null), w = o(!1), { focused: T } = ie(R), H = A("validationListId"), V = A("validationPopoverId"), S = n(() => p.value === f.TEXT), B = n(() => g.value && k.value ? t.errorMessage : ""), D = n(
95
- () => _.value.map(
96
- (s) => s ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
97
- )
98
- ), U = n(
99
- () => r.value ? "b-input-field-password__input-tooltip--timed" : ""
100
- ), x = n(() => ({
101
- ariaHidden: !1,
102
- condensed: t.condensed,
103
- disabled: t.disabled,
104
- errorMessage: B.value,
105
- placeholder: t.placeholder,
106
- readonly: t.readonly,
107
- type: p.value,
108
- value: c.value,
109
- "aria-haspopup": b.value ? "dialog" : !1,
110
- "aria-describedby": b.value ? V : "",
111
- ...y
112
- })), C = n(
113
- () => t.validation === void 0 ? {
114
- title: l("validationTitle"),
115
- suggestion: l("validationSuggestion"),
116
- list: [
117
- { label: l("validationMinLength"), validate: de },
118
- { label: l("validationRequireLowercase"), validate: ce },
119
- { label: l("validationRequireUppercase"), validate: ue },
120
- { label: l("validationRequireNumeric"), validate: pe },
121
- { label: l("validationRequireSpecialCharacter"), validate: ve }
122
- ]
123
- } : t.validation
124
- ), k = n(() => _.value.some((s) => !s)), b = n(
125
- () => {
126
- var s, v;
127
- return P.value && ((v = (s = C.value) == null ? void 0 : s.list) == null ? void 0 : v.length) > 0;
128
- }
129
- ), O = (s) => {
130
- typeof s.getModifierState == "function" && (w.value = s.getModifierState("CapsLock"));
131
- }, N = () => {
132
- S.value ? p.value = f.PASSWORD : p.value = f.TEXT;
133
- }, Z = (s) => {
134
- t.disabled || (c.value = s, a("input", c.value));
135
- }, L = (s) => {
136
- var v, q;
137
- _.value = ((q = (v = C.value) == null ? void 0 : v.list) == null ? void 0 : q.map(
138
- (E) => E.validate(s, E.additionalArgs)
139
- )) ?? [];
140
- }, z = () => {
141
- u.value = !1, r.value = null;
142
- }, W = () => {
143
- u.value = !0;
144
- };
145
- return M(T, (s) => {
146
- t.withHint && (I.value = s, s ? L(c.value) : g.value = !0);
147
- }), M(w, (s) => {
148
- s ? (u.value = !0, r.value = setTimeout(() => {
149
- r.value = null, u.value = !1;
150
- }, d)) : (clearTimeout(r.value), r.value = null, u.value = !1);
151
- }), se(
152
- c,
153
- (s) => {
154
- L(s), k.value || a("input:valid");
155
- },
156
- // wait for 0.5s before checking validity OR 2s of continuous typing
157
- { debounce: e, maxWait: h }
158
- ), { __sfc: !0, DEBOUNCE_DURATION: e, DEBOUNCE_MAX_WAIT: h, TOOLTIP_TIMEOUT: d, t: l, props: t, emit: a, attrs: y, inputType: p, inputValue: c, isHintDisplayed: I, isTouched: g, passwordValidity: _, capsLockTooltipTimeoutID: r, isTooltipDisplayed: u, inputFieldPasswordRef: R, inputFieldPasswordInputRef: P, inputFieldPasswordCapsLockIconRef: F, isCapsLockOn: w, focused: T, validationListId: H, validationPopoverId: V, isPasswordReadable: S, computedErrorMessage: B, passwordValidityConditionalClass: D, tooltipConditionalClass: U, inputFieldArgs: x, computedValidations: C, hasErrors: k, hasValidations: b, checkCapsLock: O, toggleInputType: N, onInput: Z, checkValidity: L, handleCapsLockMouseLeave: z, handleCapsLockMouseEnter: W, BentoButton: J, BentoImage: G, BentoInputField: K, BentoPopover: Q, BentoTypography: Y, Tooltip: le, CheckmarkCircleFillIcon: $, DotIcon: ee, HideIcon: te, ShowIcon: ae, CapsLockIcon: re };
159
- }
160
- });
161
- var _e = function() {
162
- var a = this, t = a._self._c, e = a._self._setupProxy;
163
- return t("div", { ref: "inputFieldPasswordRef" }, [t(e.BentoInputField, a._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { input: e.onInput, keydown: e.checkCapsLock, keyup: e.checkCapsLock }, scopedSlots: a._u([{ key: "default", fn: function() {
164
- return [a._v(a._s(a.label))];
165
- }, proxy: !0 }, e.isCapsLockOn ? { key: "iconBefore", fn: function() {
166
- return [t("div", { staticClass: "b-input-field-password__caps-lock-indicator", on: { mouseenter: e.handleCapsLockMouseEnter, mouseleave: e.handleCapsLockMouseLeave } }, [t(e.BentoImage, { ref: "inputFieldPasswordCapsLockIconRef", attrs: { src: e.CapsLockIcon, alt: e.t("capsLockEnabled") } })], 1), e.inputFieldPasswordCapsLockIconRef ? t(e.Tooltip, { class: e.tooltipConditionalClass, attrs: { content: e.t("capsLockEnabled"), "disabled-focus-trap": !0, "fallback-position": ["top", "bottom"], "is-shown": e.isTooltipDisplayed, "target-element": e.inputFieldPasswordCapsLockIconRef } }) : a._e()];
167
- }, proxy: !0 } : null, a.disabled ? null : { key: "iconAfter", fn: function() {
168
- return [t(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: e.toggleInputType }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
169
- return [e.isPasswordReadable ? a._e() : t(e.ShowIcon, { attrs: { "svg-title": e.t("showPassword") } }), e.isPasswordReadable ? t(e.HideIcon, { attrs: { "svg-title": e.t("hidePassword") } }) : a._e()];
170
- }, proxy: !0 }], null, !1, 956294632) })];
171
- }, proxy: !0 }], null, !0) }, "bento-input-field", e.inputFieldArgs, !1)), e.hasValidations ? t(e.BentoPopover, { attrs: { open: e.isHintDisplayed, "target-element": e.inputFieldPasswordInputRef, "disable-focus-trap": !0, "aria-label": e.computedValidations.title, "aria-describedby": e.validationListId, position: "right-start" } }, [t("div", { attrs: { id: e.validationPopoverId } }, [e.computedValidations.title ? t(e.BentoTypography, { staticClass: "b-input-field-password__validation-title" }, [a._v(" " + a._s(e.computedValidations.title) + " ")]) : a._e(), e.hasErrors ? a._e() : t("p", { staticClass: "b-input-field-password__validation-status--valid", attrs: { role: "alert" } }, [a._v(" " + a._s(e.t("validationValid")) + " ")]), t("ul", { staticClass: "b-input-field-password__validation-list", attrs: { id: e.validationListId } }, a._l(e.computedValidations.list, function(h, d) {
172
- return t("li", { key: d, class: e.passwordValidityConditionalClass[d], attrs: { "aria-live": "polite", "aria-atomic": "true" } }, [t("span", { staticClass: "b-input-field-password__validation-list-icon" }, [e.passwordValidity[d] ? t(e.CheckmarkCircleFillIcon, { attrs: { "svg-title": e.t("validationChecked") } }) : t(e.DotIcon, { attrs: { "svg-title": e.t("validationUnchecked") } })], 1), t(e.BentoTypography, { staticClass: "b-input-field-password__validation-list-text", attrs: { el: "span" } }, [a._v(" " + a._s(h.label) + " ")])], 1);
173
- }), 0), e.computedValidations.suggestion ? t(e.BentoTypography, { staticClass: "b-input-field-password__validation-suggestion" }, [a._v(" " + a._s(e.computedValidations.suggestion) + " ")]) : a._e()], 1)]) : a._e()], 1);
174
- }, ge = [], we = /* @__PURE__ */ ne(
175
- he,
176
- _e,
177
- ge,
178
- !1,
179
- null,
180
- "c9e14959"
181
- );
182
- const Me = we.exports;
183
- export {
184
- ue as a,
185
- pe as b,
186
- ve as c,
187
- Me as i,
188
- de as m,
189
- ce as r
190
- };
191
- //# sourceMappingURL=input-field-password.DsIpkc_9.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-field-password.DsIpkc_9.js","sources":["../../src/components/input-field-password/input-field-password.types.ts","../../src/components/input-field-password/assets/capslock.svg","../../src/components/input-field-password/utilities/input-field-password.validation.ts","../../src/components/input-field-password/input-field-password.vue"],"sourcesContent":["import type { BentoInputFieldProps, BentoInputFieldValue } from '@/components/input-field/input-field.types';\n\n/**\n * Public\n */\n\nexport interface BentoInputFieldPasswordValidationListItem {\n label: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n validate: (value: BentoInputFieldValue, ...args: any[]) => boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalArgs?: any[];\n}\n\nexport interface BentoInputFieldPasswordValidation {\n title?: string;\n suggestion?: string;\n list: BentoInputFieldPasswordValidationListItem[];\n}\n\nexport interface BentoInputFieldPasswordProps {\n /**\n * Reduces height of the input\n */\n condensed?: BentoInputFieldProps['condensed'];\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled?: BentoInputFieldProps['disabled'];\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage?: BentoInputFieldProps['errorMessage'];\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: BentoInputFieldProps['placeholder'];\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly?: BentoInputFieldProps['readonly'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldProps['value'];\n\n /**\n * Label to be shown with the input field\n */\n label?: string;\n\n /**\n * Configuration object for password field validation.\n *\n * This object defines the validation criteria and associated messages for a password field.\n * It includes the following properties:\n *\n * - `title`: The title displayed at the top of the validation hint.\n * - `suggestion`: The message displayed at the bottom of the validation hint, providing additional guidance.\n * - `list`: An array of callback functions to be executed on the value after each user input, validating the password against the specified rules.\n *\n * By default, the validation checks that:\n *\n * - The value has a minimum length of 8 characters.\n * - The value contains at least one lowercase letter.\n * - The value contains at least one uppercase letter.\n * - The value contains at least one numeric digit.\n * - The value contains at least one special character.\n *\n *\n */\n validation?: BentoInputFieldPasswordValidation;\n\n /**\n * Whether the password validation hint is displayed when the input field is activated via focus or input\n */\n withHint?: boolean;\n}\n\n/**\n * Private\n */\n\nexport enum BentoInputFieldPasswordType {\n TEXT = 'text',\n PASSWORD = 'password',\n}\n","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e\"","import { BentoInputFieldValue } from '@/components/input-field';\n\nfunction stringifyValue(value: BentoInputFieldValue): string {\n return value?.toString() ?? '';\n}\n\n/**\n * Validates if the length of the provided value is greater than or equal to the specified length.\n *\n * @param value - The input value to check.\n * @param length - The minimum required length of the value. Defaults to 8.\n * @returns `true` if the length of the value is greater than or equal to the specified length, `false` otherwise.\n */\nexport function minLength(value: BentoInputFieldValue, length = 8): boolean {\n return stringifyValue(value).length >= length;\n}\n\n/**\n * Validates if the provided value contains at least one lowercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one lowercase letter, `false` otherwise.\n */\nexport function requireLowercase(value: BentoInputFieldValue): boolean {\n return /[a-z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one uppercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one uppercase letter, `false` otherwise.\n */\nexport function requireUppercase(value: BentoInputFieldValue): boolean {\n return /[A-Z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one numerical digit.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one numerical digit, `false` otherwise.\n */\nexport function requireNumeric(value: BentoInputFieldValue): boolean {\n return /\\d/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one special character (non-alphanumeric).\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one special character, `false` otherwise.\n */\nexport function requireSpecialCharacter(value: BentoInputFieldValue): boolean {\n return /[^a-zA-Z0-9]/.test(stringifyValue(value));\n}\n","<template>\n <div ref=\"inputFieldPasswordRef\">\n <bento-input-field\n ref=\"inputFieldPasswordInputRef\"\n v-bind=\"inputFieldArgs\"\n class=\"b-input-field-password__input\"\n spellcheck=\"false\"\n @input=\"onInput\"\n @keydown=\"checkCapsLock\"\n @keyup=\"checkCapsLock\"\n >\n <template #default>{{ label }}</template>\n\n <template v-if=\"isCapsLockOn\" #iconBefore>\n <div\n class=\"b-input-field-password__caps-lock-indicator\"\n @mouseenter=\"handleCapsLockMouseEnter\"\n @mouseleave=\"handleCapsLockMouseLeave\"\n >\n <bento-image\n ref=\"inputFieldPasswordCapsLockIconRef\"\n :src=\"CapsLockIcon\"\n :alt=\"t('capsLockEnabled')\"\n ></bento-image>\n </div>\n\n <tooltip\n v-if=\"inputFieldPasswordCapsLockIconRef\"\n :class=\"tooltipConditionalClass\"\n :content=\"t('capsLockEnabled')\"\n :disabled-focus-trap=\"true\"\n :fallback-position=\"['top', 'bottom']\"\n :is-shown=\"isTooltipDisplayed\"\n :target-element=\"inputFieldPasswordCapsLockIconRef\"\n ></tooltip>\n </template>\n\n <template v-if=\"!disabled\" #iconAfter>\n <bento-button variant=\"tertiary\" @click=\"toggleInputType\">\n <template #iconLeft>\n <show-icon v-if=\"!isPasswordReadable\" :svg-title=\"t('showPassword')\" />\n\n <hide-icon v-if=\"isPasswordReadable\" :svg-title=\"t('hidePassword')\" />\n </template>\n </bento-button>\n </template>\n </bento-input-field>\n\n <bento-popover\n v-if=\"hasValidations\"\n :open=\"isHintDisplayed\"\n :target-element=\"inputFieldPasswordInputRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"computedValidations.title\"\n :aria-describedby=\"validationListId\"\n position=\"right-start\"\n >\n <div :id=\"validationPopoverId\">\n <bento-typography v-if=\"computedValidations.title\" class=\"b-input-field-password__validation-title\">\n {{ computedValidations.title }}\n </bento-typography>\n\n <p v-if=\"!hasErrors\" class=\"b-input-field-password__validation-status--valid\" role=\"alert\">\n {{ t('validationValid') }}\n </p>\n\n <ul :id=\"validationListId\" class=\"b-input-field-password__validation-list\">\n <li\n v-for=\"(validation, index) in computedValidations.list\"\n :key=\"index\"\n :class=\"passwordValidityConditionalClass[index]\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n <span class=\"b-input-field-password__validation-list-icon\">\n <checkmark-circle-fill-icon\n v-if=\"passwordValidity[index]\"\n :svg-title=\"t('validationChecked')\"\n />\n\n <dot-icon v-else :svg-title=\"t('validationUnchecked')\" />\n </span>\n\n <bento-typography class=\"b-input-field-password__validation-list-text\" el=\"span\">\n {{ validation.label }}\n </bento-typography>\n </li>\n </ul>\n\n <bento-typography\n v-if=\"computedValidations.suggestion\"\n class=\"b-input-field-password__validation-suggestion\"\n >\n {{ computedValidations.suggestion }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButton } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { BentoInputField } from '@/components/input-field';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { Tooltip } from '@/internal';\n import type { BentoInputFieldProps } from '@/components/input-field/input-field.types';\n import { type BentoInputFieldPasswordProps, BentoInputFieldPasswordType } from './input-field-password.types';\n import CheckmarkCircleFillIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n import HideIcon from '@adyen/ui-assets-icons-16/vue/hide';\n import ShowIcon from '@adyen/ui-assets-icons-16/vue/show';\n import CapsLockIcon from './assets/capslock.svg';\n\n import { useFocusWithin, watchDebounced } from '@vueuse/core';\n import { computed, ref, SetupContext, useAttrs, watch } from 'vue';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import {\n minLength,\n requireLowercase,\n requireNumeric,\n requireSpecialCharacter,\n requireUppercase,\n } from '@/components/input-field-password/utilities/input-field-password.validation';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEBOUNCE_DURATION = 500;\n const DEBOUNCE_MAX_WAIT = 2000;\n const TOOLTIP_TIMEOUT = 2000;\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n condensed: { default: false },\n disabled: { default: false },\n errorMessage: { default: null },\n placeholder: { default: '' },\n readonly: { default: false },\n value: { default: undefined },\n label: { default: null },\n validation: { default: undefined },\n withHint: { type: Boolean, default: true }\n});\n\n const emit = defineEmits([\"input:valid\", \"input\"]);\n\n const attrs = useAttrs();\n\n const inputType = ref(BentoInputFieldPasswordType.PASSWORD);\n const inputValue = ref(props.value);\n const isHintDisplayed = ref(false);\n const isTouched = ref(false);\n const passwordValidity = ref<boolean[]>([]);\n const capsLockTooltipTimeoutID = ref<ReturnType<typeof setTimeout>>(null);\n const isTooltipDisplayed = ref(false);\n const inputFieldPasswordRef = ref(null);\n const inputFieldPasswordInputRef = ref(null);\n const inputFieldPasswordCapsLockIconRef = ref(null);\n const isCapsLockOn = ref(false);\n\n const { focused } = useFocusWithin(inputFieldPasswordRef);\n\n const validationListId = generateUid('validationListId');\n const validationPopoverId = generateUid('validationPopoverId');\n\n const isPasswordReadable = computed(() => inputType.value === BentoInputFieldPasswordType.TEXT);\n const computedErrorMessage = computed(() => (isTouched.value && hasErrors.value ? props.errorMessage : ''));\n\n const passwordValidityConditionalClass = computed(() =>\n passwordValidity.value.map(validity =>\n validity\n ? 'b-input-field-password__validation-list--valid'\n : 'b-input-field-password__validation-list--invalid'\n )\n );\n\n const tooltipConditionalClass = computed(() =>\n capsLockTooltipTimeoutID.value ? 'b-input-field-password__input-tooltip--timed' : ''\n );\n\n const inputFieldArgs = computed<BentoInputFieldProps & SetupContext['attrs']>(() => ({\n ariaHidden: false,\n condensed: props.condensed,\n disabled: props.disabled,\n errorMessage: computedErrorMessage.value,\n placeholder: props.placeholder,\n readonly: props.readonly,\n type: inputType.value,\n value: inputValue.value,\n\n 'aria-haspopup': hasValidations.value ? 'dialog' : false,\n 'aria-describedby': hasValidations.value ? validationPopoverId : '',\n\n ...attrs,\n }));\n\n const computedValidations = computed(() =>\n props.validation === undefined\n ? {\n title: t('validationTitle'),\n suggestion: t('validationSuggestion'),\n list: [\n { label: t('validationMinLength'), validate: minLength },\n { label: t('validationRequireLowercase'), validate: requireLowercase },\n { label: t('validationRequireUppercase'), validate: requireUppercase },\n { label: t('validationRequireNumeric'), validate: requireNumeric },\n { label: t('validationRequireSpecialCharacter'), validate: requireSpecialCharacter },\n ],\n }\n : props.validation\n );\n\n const hasErrors = computed(() => passwordValidity.value.some(validation => !validation));\n const hasValidations = computed(\n () => inputFieldPasswordInputRef.value && computedValidations.value?.list?.length > 0\n );\n\n const checkCapsLock = (e: KeyboardEvent) => {\n // Check if getModifierState exists and is a function in case the user's browser is autofilling\n if (typeof e.getModifierState === 'function') {\n isCapsLockOn.value = e.getModifierState('CapsLock');\n }\n };\n\n const toggleInputType = () => {\n if (isPasswordReadable.value) {\n inputType.value = BentoInputFieldPasswordType.PASSWORD;\n } else {\n inputType.value = BentoInputFieldPasswordType.TEXT;\n }\n };\n\n const onInput = (value: string) => {\n if (props.disabled) {\n return;\n }\n\n inputValue.value = value;\n\n emit('input', inputValue.value);\n };\n\n const checkValidity = (value: BentoInputFieldPasswordProps['value']) => {\n passwordValidity.value =\n computedValidations.value?.list?.map(validationItem =>\n validationItem.validate(value, validationItem.additionalArgs)\n ) ?? [];\n };\n\n const handleCapsLockMouseLeave = () => {\n isTooltipDisplayed.value = false;\n capsLockTooltipTimeoutID.value = null;\n };\n\n const handleCapsLockMouseEnter = () => {\n isTooltipDisplayed.value = true;\n };\n\n watch(focused, focused => {\n if (!props.withHint) {\n return;\n }\n\n isHintDisplayed.value = focused;\n\n if (!focused) {\n isTouched.value = true;\n } else {\n checkValidity(inputValue.value);\n }\n });\n\n watch(isCapsLockOn, isCapsLockOn => {\n if (!isCapsLockOn) {\n clearTimeout(capsLockTooltipTimeoutID.value);\n\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n } else {\n isTooltipDisplayed.value = true;\n\n capsLockTooltipTimeoutID.value = setTimeout(() => {\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n }, TOOLTIP_TIMEOUT);\n }\n });\n\n watchDebounced(\n inputValue,\n inputValue => {\n checkValidity(inputValue);\n\n if (!hasErrors.value) {\n emit('input:valid');\n }\n },\n // wait for 0.5s before checking validity OR 2s of continuous typing\n { debounce: DEBOUNCE_DURATION, maxWait: DEBOUNCE_MAX_WAIT }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The input field password is a component designed to support users' preference for entering values securely.\n * This is an extension of the `bento-input-field` component.\n *\n * @example\n * import { BentoInputFieldPassword } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInputFieldPassword },\n * template: `\n * <bento-input-field-password\n * label=\"Label\"\n * error-message=\"Error\"\n * :validation=\"{\n * title: 'Password must contain at least:',\n * suggestion: 'Avoid using currency symbols or accented letters.',\n * list: [\n * { label: '8 characters', validate: minLength, additionalArgs: [8] },\n * { label: '1 lowercase (a-z)', validate: requireLowercase },\n * { label: '1 uppercase (A-Z)', validate: requireUppercase },\n * { label: '1 numerical (0-9)', validate: requireNumeric },\n * { label: '1 special character', validate: requireSpecialCharacter },\n * {\n * label: 'Always true',\n * validate: () => {\n * const example = 'Example';\n *\n * return () => example.length > 1;\n * },\n * },\n * ],\n * }\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-input-field-password',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field-password.scss\" />\n"],"names":["BentoInputFieldPasswordType","BentoInputFieldPasswordType2","CapsLockIcon","stringifyValue","value","minLength","length","requireLowercase","requireUppercase","requireNumeric","requireSpecialCharacter","__default__","messages","DEBOUNCE_DURATION","DEBOUNCE_MAX_WAIT","TOOLTIP_TIMEOUT","t","useI18n","attrs","useAttrs","inputType","ref","inputValue","props","isHintDisplayed","isTouched","passwordValidity","capsLockTooltipTimeoutID","isTooltipDisplayed","inputFieldPasswordRef","inputFieldPasswordInputRef","inputFieldPasswordCapsLockIconRef","isCapsLockOn","focused","useFocusWithin","validationListId","generateUid","validationPopoverId","isPasswordReadable","computed","computedErrorMessage","hasErrors","passwordValidityConditionalClass","validity","tooltipConditionalClass","inputFieldArgs","hasValidations","computedValidations","validation","_b","_a","checkCapsLock","e","toggleInputType","onInput","emit","checkValidity","validationItem","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","focused2","isCapsLockOn2","watchDebounced","inputValue2"],"mappings":"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"}
@@ -1,146 +0,0 @@
1
- import { defineComponent as G, useAttrs as Q, useSlots as ee, ref as u, provide as te, inject as ae, toRef as oe, computed as r, toRefs as ne } from "vue";
2
- import { a as re, I as ie, B as se } from "./dropdown.DFEGHxjw.js";
3
- import { p as de, d as R, B as le } from "./typography.J1v_SPG3.js";
4
- import { g as p } from "./generate-uid.NJ8tVoha.js";
5
- import { g as ue } from "./get-slot-text.BQS5Olxm.js";
6
- import { u as pe } from "./aria-label.CaUURpnB.js";
7
- import { u as ce } from "./i18n.BQkEbtPM.js";
8
- import { u as fe } from "./use-form-layout-loading.D3lALhtC.js";
9
- import { u as _e } from "./use-has-slot.C9lQZ6nz.js";
10
- import { F as be, E as ye } from "./error-message.B3oWB_HM.js";
11
- import { n as he } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
12
- import "../assets/input-field.css";
13
- var s = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.PAYMENT_METHOD = "payment-method", a.STATIC_VALUE = "static-value", a.DROPDOWN = "dropdown", a))(s || {}), i = /* @__PURE__ */ ((a) => (a.START = "start", a.END = "end", a))(i || {}), c = /* @__PURE__ */ ((a) => (a.CONDENSED = "condensed", a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a))(c || {}), A = /* @__PURE__ */ ((a) => (a.SEARCH = "search", a.TEXT = "text", a.NUMBER = "number", a))(A || {}), we = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.ESCAPE_PRESSED = "escape-pressed", a.UPDATE_DROPDOWN = "update:dropdown", a.DROPDOWN_INPUT = "dropdown-input", a.FOCUS = "focus", a.CHANGE = "change", a.BLUR = "blur", a.KEYDOWN = "keydown", a))(we || {});
14
- const De = {
15
- "en-US": {
16
- ariaLabelDropdownFallback: "{inputLabel} Dropdown",
17
- ariaLabelFallback: "Input field"
18
- }
19
- }, me = {
20
- i18n: { messages: De }
21
- }, ve = /* @__PURE__ */ G({
22
- ...me,
23
- __name: "input-field",
24
- props: {
25
- ariaHidden: { type: Boolean, default: !0 },
26
- ariaLabel: { default: void 0 },
27
- condensed: { type: Boolean, default: !1 },
28
- disabled: { type: Boolean, default: !1 },
29
- dropdown: { default: void 0 },
30
- dropdownPosition: { default: i.START },
31
- error: { type: Boolean, default: !1 },
32
- errorMessage: { default: null },
33
- optional: { type: Boolean, default: !1 },
34
- placeholder: { default: "" },
35
- required: { type: Boolean, default: !1 },
36
- readonly: { type: Boolean, default: !1 },
37
- slashedZero: { type: Boolean, default: !1 },
38
- staticValue: { default: "" },
39
- staticValuePosition: { default: i.START },
40
- tooltipText: { default: null },
41
- type: { default: A.TEXT },
42
- value: { default: void 0 },
43
- variant: { default: s.DEFAULT }
44
- },
45
- emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input"],
46
- setup(a, { expose: t, emit: o }) {
47
- const e = a, n = Q(), f = ee(), { t: h } = ce(), _ = _e(f), S = u(null), T = u(null), k = p("input"), w = p("input-dropdown"), D = p("input-static-value"), g = p("input-description"), I = p("input-error"), m = u(!1);
48
- te(re, !0);
49
- const F = ae(ie, u(void 0)), M = () => {
50
- m.value = !0, o("focus");
51
- }, V = () => {
52
- m.value = !1, o("blur");
53
- }, { isReadOnly: b } = fe(oe(e, "readonly")), d = r(
54
- () => e.variant === s.STATIC_VALUE && !!f.staticValue
55
- ), U = r(() => e.variant === s.DEFAULT), x = r(() => e.variant === s.PAYMENT_METHOD), H = r(
56
- () => d.value && e.staticValuePosition === i.START
57
- ), $ = r(
58
- () => d.value && e.staticValuePosition === i.END
59
- ), l = r(() => e.variant === s.DROPDOWN && !!e.dropdown), Y = r(
60
- () => l.value && e.dropdownPosition === i.START
61
- ), W = r(
62
- () => l.value && e.dropdownPosition === i.END
63
- ), v = r(
64
- () => !e.disabled && !b.value && (!!e.errorMessage || e.error)
65
- ), q = r(() => l.value === !0 && d.value === !0 ? `${D} ${w}` : l.value === !0 ? `${w}` : d.value === !0 ? `${D}` : null), L = r(() => h("ariaLabelFallback")), O = r(
66
- () => h("ariaLabelDropdownFallback", { inputLabel: B.value })
67
- ), C = u(n["aria-label"]), { ariaLabel: N } = ne(e), B = pe({
68
- ariaLabel: C.value,
69
- // TODO: take this line away when the aria-label props is removed
70
- label: N,
71
- defaultFallback: _("default") ? ue(f)("default") : L
72
- }), K = r(
73
- () => `${_("description") ? g : ""} ${v.value && e.errorMessage ? I : ""}`
74
- ), j = r(() => ({
75
- [`b-input-field--${c.CONDENSED}`]: e.condensed,
76
- [`b-input-field--${c.DISABLED}`]: e.disabled,
77
- [`b-input-field--${c.READONLY}`]: b.value,
78
- [`b-input-field--${c.ERROR}`]: v.value,
79
- "b-input-field--slashed-zero": e.slashedZero
80
- })), z = r(() => ({
81
- "aria-label": O.value,
82
- ...e.dropdown
83
- })), J = (y) => {
84
- const Z = y.target.value;
85
- !e.disabled && !b.value && o("input", Z);
86
- }, X = (y) => {
87
- o("dropdown-input", y), o("update:dropdown", { ...e == null ? void 0 : e.dropdown, value: y });
88
- }, E = () => {
89
- S.value.focus();
90
- }, P = () => {
91
- e.variant === "dropdown" ? T.value.focus() : E();
92
- };
93
- return t({
94
- focusInput: E,
95
- focus: P
96
- }), Object.values(A).includes(e.type) || de(`"bento-input-field" dropdown does not support the type ${e.type}`), e.error && R(
97
- 'BentoInputField "error" property',
98
- `Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
99
- Having the field as "undefined" will hide/remove the error.
100
- <bento-dropdown errorMessage="Error message text" />`,
101
- "2.0.0"
102
- ), _("defaultIconBefore") && R(
103
- 'BentoInputField "defaultIconBefore" slot',
104
- `Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
105
- <bento-input-field>
106
- <template #iconBefore>
107
- <my-icon-goes-here />
108
- </template>
109
- </bento-input-field>`,
110
- "2.0.0"
111
- ), { __sfc: !0, attrs: n, slots: f, props: e, emit: o, t: h, hasSlot: _, inputFieldElement: S, inputDropdownElement: T, inputFieldId: k, dropdownId: w, staticValueId: D, descriptionId: g, errorId: I, isFocused: m, hint: F, onFocus: M, onBlur: V, isReadOnly: b, shouldShowStaticValue: d, isDefaultVariant: U, isPaymentMethodVariant: x, shouldDisplayStaticValueAtStart: H, shouldDisplayStaticValueAtEnd: $, shouldShowDropdown: l, shouldDisplayDropdownAtStart: Y, shouldDisplayDropdownAtEnd: W, shouldShowError: v, computedAriaOwns: q, computedAriaLabelFallbackMessage: L, computedAriaLabelDropdowFallback: O, ariaLabelAttribute: C, ariaLabel: N, computedAriaLabel: B, computedAriaDescribedBy: K, inputFieldConditionalClasses: j, inputFieldDropdownProps: z, onInput: J, onDropdownInput: X, focusInput: E, focus: P, BentoDropdown: se, BentoTypography: le, ErrorMessage: ye, FieldLabel: be };
112
- }
113
- });
114
- var Ee = function() {
115
- var t = this, o = t._self._c, e = t._self._setupProxy;
116
- return o(e.BentoTypography, { staticClass: "b-input-field", class: e.inputFieldConditionalClasses, attrs: { "data-testid": "input-text-container", el: "div", variant: "body" } }, [e.hasSlot("default") ? o(e.FieldLabel, { attrs: { for: e.inputFieldId, "data-testid": "input-field-label", "tooltip-text": t.tooltipText, optional: t.optional, required: t.required }, on: { click: e.focusInput } }, [t._t("default")], 2) : t._e(), o("div", { staticClass: "b-input-field__input-box", attrs: { "data-testid": "input-box", "aria-disabled": t.disabled }, on: { click: e.focusInput } }, [e.isDefaultVariant && (e.hasSlot("defaultIconBefore") || e.hasSlot("iconBefore")) ? o("span", { staticClass: "b-input-field__icon-before", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [e.hasSlot("iconBefore") ? t._t("iconBefore") : t._e(), e.hasSlot("defaultIconBefore") && !e.hasSlot("iconBefore") ? t._t("defaultIconBefore") : t._e()], 2) : t._e(), e.isPaymentMethodVariant && e.hasSlot("paymentMethod") ? o("span", { staticClass: "b-input-field__payment-method", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [t._t("paymentMethod")], 2) : t._e(), e.shouldDisplayDropdownAtStart ? o("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--start", attrs: { id: e.dropdownId }, on: { click: function(n) {
117
- n.stopPropagation();
118
- } } }, [t.dropdown ? o(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { disabled: t.disabled, readonly: e.isReadOnly }, on: { input: e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e(), e.shouldDisplayStaticValueAtStart ? o(e.BentoTypography, { staticClass: "b-input-field__static-value b-input-field__static-value--start", attrs: { id: e.staticValueId, el: "span", variant: "body" } }, [t._t("staticValue")], 2) : t._e(), o("div", { staticClass: "b-input-field__input-container" }, [o("input", t._b({ ref: "inputFieldElement", staticClass: "b-input-field__input", attrs: { id: e.inputFieldId, "aria-label": e.computedAriaLabel, "aria-describedby": e.computedAriaDescribedBy, "aria-owns": e.computedAriaOwns, "aria-invalid": e.shouldShowError, placeholder: t.placeholder, type: t.type, disabled: t.disabled, readonly: e.isReadOnly }, domProps: { value: t.value }, on: { input: e.onInput, change: function(n) {
119
- return e.emit("change");
120
- }, focus: e.onFocus, blur: e.onBlur, keydown: [function(n) {
121
- return e.emit("keydown", n);
122
- }, function(n) {
123
- return !n.type.indexOf("key") && t._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.emit("escape-pressed");
124
- }], keyup: function(n) {
125
- return e.emit("keyup", n);
126
- } } }, "input", e.attrs, !1)), e.hint && e.isFocused && t.value ? o(e.BentoTypography, { staticClass: "b-input-field__hint", attrs: { el: "span" } }, [t._v(" " + t._s(e.hint) + " ")]) : t._e()], 1), e.hasSlot("iconAfter") ? o("span", { staticClass: "b-input-field__icon-after", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0, "data-testid": "input-text__icon-after" } }, [t._t("iconAfter")], 2) : t._e(), e.shouldDisplayStaticValueAtEnd ? o(e.BentoTypography, { staticClass: "b-input-field__static-value b-input-field__static-value--end", attrs: { id: e.staticValueId, el: "span", variant: "body" } }, [t._t("staticValue")], 2) : t._e(), e.shouldDisplayDropdownAtEnd ? o("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--end", attrs: { id: e.dropdownId, "data-testid": "input-field-dropdown-container-end" }, on: { click: function(n) {
127
- n.stopPropagation();
128
- } } }, [t.dropdown ? o(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { id: e.dropdownId, disabled: t.disabled, readonly: e.isReadOnly }, on: { input: e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e()], 1), e.shouldShowError && t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-input-field__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), e.hasSlot("description") ? o("span", { staticClass: "b-input-field__description", attrs: { id: e.descriptionId }, on: { click: e.focusInput } }, [o(e.BentoTypography, { attrs: { el: "span", variant: "body" } }, [t._t("description", null, { id: "description" })], 2)], 1) : t._e()], 1);
129
- }, Ae = [], Se = /* @__PURE__ */ he(
130
- ve,
131
- Ee,
132
- Ae,
133
- !1,
134
- null,
135
- "eee5bc84"
136
- );
137
- const Fe = Se.exports;
138
- export {
139
- Fe as B,
140
- s as a,
141
- i as b,
142
- c,
143
- A as d,
144
- we as e
145
- };
146
- //# sourceMappingURL=input-field.Dl2lXZda.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-field.Dl2lXZda.js","sources":["../../src/components/input-field/input-field.types.ts","../../src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value: DropdownProps['value'];\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n 'aria-label'?: string;\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled?: boolean;\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n * - `aria-label`: Text that labels the dropdown element\n *\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage?: string;\n\n /**\n * Highlights the dropdown is optional.\n */\n optional?: boolean;\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: string;\n\n /**\n * Highlights the dropdown is required.\n */\n required?: boolean;\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly?: boolean;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText?: string;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n\n <!-- Hint at the end -->\n <bento-typography v-if=\"hint && isFocused && value\" el=\"span\" class=\"b-input-field__hint\">\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n ariaHidden: { type: Boolean, default: true },\n ariaLabel: { default: undefined },\n condensed: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n dropdown: { default: undefined },\n dropdownPosition: { default: BentoInputFieldElementPosition.START },\n error: { type: Boolean, default: false },\n errorMessage: { default: null },\n optional: { type: Boolean, default: false },\n placeholder: { default: '' },\n required: { type: Boolean, default: false },\n readonly: { type: Boolean, default: false },\n slashedZero: { type: Boolean, default: false },\n staticValue: { default: '' },\n staticValuePosition: { default: BentoInputFieldElementPosition.START },\n tooltipText: { default: null },\n type: { default: BentoInputFieldType.TEXT },\n value: { default: undefined },\n variant: { default: BentoInputFieldVariant.DEFAULT }\n});\n\n const emit = defineEmits([\"update:dropdown\", \"blur\", \"change\", \"dropdown-input\", \"escape-pressed\", \"focus\", \"keydown\", \"keyup\", \"input\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emit('input', inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType)) {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type ${props.type}`);\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","emit","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","props","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","focus","expose","printDevelopmentWarning","deprecate"],"mappings":"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"}