@adyen/bento-vue3 1.94.0 → 1.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +6 -9
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/anchor-scroller.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/dashed-underline.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-picker.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/date-time-picker.css +1 -0
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/dropdown.css +1 -1
  18. package/dist/assets/file-uploader.css +1 -1
  19. package/dist/assets/form-layout-group.css +1 -0
  20. package/dist/assets/form-layout-title.css +1 -1
  21. package/dist/assets/header-meta.css +1 -1
  22. package/dist/assets/input-field.css +1 -1
  23. package/dist/assets/inspector.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/navigation-menu-group.css +1 -1
  26. package/dist/assets/secondary-nav.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/card.js +1 -1
  30. package/dist/checkbox.js +2 -2
  31. package/dist/chunks/{action-bar.jhGXgcQl.js → action-bar.CIVprT2U.js} +4 -4
  32. package/dist/chunks/{action-bar.jhGXgcQl.js.map → action-bar.CIVprT2U.js.map} +1 -1
  33. package/dist/chunks/{ai-tag.DIdhvkaT.js → ai-tag.DkTlRY__.js} +2 -2
  34. package/dist/chunks/{ai-tag.DIdhvkaT.js.map → ai-tag.DkTlRY__.js.map} +1 -1
  35. package/dist/chunks/{anchor-scroller.BhppCt1n.js → anchor-scroller.J2mkf0uu.js} +5 -5
  36. package/dist/chunks/{anchor-scroller.BhppCt1n.js.map → anchor-scroller.J2mkf0uu.js.map} +1 -1
  37. package/dist/chunks/{base-modal.DxjZyGlG.js → base-modal.BKtpH-qh.js} +6 -6
  38. package/dist/chunks/{base-modal.DxjZyGlG.js.map → base-modal.BKtpH-qh.js.map} +1 -1
  39. package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js → button-actions-with-menu.cMAAF47d.js} +3 -3
  40. package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js.map → button-actions-with-menu.cMAAF47d.js.map} +1 -1
  41. package/dist/chunks/{button-actions.uco5ptf5.js → button-actions.CxTxPprd.js} +2 -2
  42. package/dist/chunks/{button-actions.uco5ptf5.js.map → button-actions.CxTxPprd.js.map} +1 -1
  43. package/dist/chunks/{calendar.D8CM3XkW.js → calendar.74nP7Nu6.js} +18 -18
  44. package/dist/chunks/{calendar.D8CM3XkW.js.map → calendar.74nP7Nu6.js.map} +1 -1
  45. package/dist/chunks/{card.CWzJewQv.js → card.CQlyqa5-.js} +2 -2
  46. package/dist/chunks/{card.CWzJewQv.js.map → card.CQlyqa5-.js.map} +1 -1
  47. package/dist/chunks/{checkbox-group.Bq6PsVI_.js → checkbox-group.BWx4wn0F.js} +3 -3
  48. package/dist/chunks/{checkbox-group.Bq6PsVI_.js.map → checkbox-group.BWx4wn0F.js.map} +1 -1
  49. package/dist/chunks/{checkbox.DreTXMg0.js → checkbox.DwfrmbwI.js} +18 -18
  50. package/dist/chunks/{checkbox.DreTXMg0.js.map → checkbox.DwfrmbwI.js.map} +1 -1
  51. package/dist/chunks/{code-snippet.CGOmdPc-.js → code-snippet.B9QFjFXf.js} +4 -4
  52. package/dist/chunks/{code-snippet.CGOmdPc-.js.map → code-snippet.B9QFjFXf.js.map} +1 -1
  53. package/dist/chunks/{controls-group.D4MEP6GO.js → controls-group.B-wIl-I7.js} +2 -2
  54. package/dist/chunks/{controls-group.D4MEP6GO.js.map → controls-group.B-wIl-I7.js.map} +1 -1
  55. package/dist/chunks/{copy.Dxqx884r.js → copy.XM_7RiIR.js} +3 -3
  56. package/dist/chunks/{copy.Dxqx884r.js.map → copy.XM_7RiIR.js.map} +1 -1
  57. package/dist/chunks/{dashboard-section.NWMwtxVX.js → dashboard-section.C4plNql-.js} +4 -4
  58. package/dist/chunks/{dashboard-section.NWMwtxVX.js.map → dashboard-section.C4plNql-.js.map} +1 -1
  59. package/dist/chunks/dashed-underline.DJmMXcdt.js +85 -0
  60. package/dist/chunks/dashed-underline.DJmMXcdt.js.map +1 -0
  61. package/dist/chunks/{data-grid-template.Bf-VZS0u.js → data-grid-template.Bwxo0AII.js} +4 -4
  62. package/dist/chunks/{data-grid-template.Bf-VZS0u.js.map → data-grid-template.Bwxo0AII.js.map} +1 -1
  63. package/dist/chunks/{data-grid.D_TrebJz.js → data-grid.Bx3Xy1tb.js} +884 -881
  64. package/dist/chunks/{data-grid.D_TrebJz.js.map → data-grid.Bx3Xy1tb.js.map} +1 -1
  65. package/dist/chunks/date-picker.89J8PGKn.js +277 -0
  66. package/dist/chunks/date-picker.89J8PGKn.js.map +1 -0
  67. package/dist/chunks/{date-range-picker.C5CSReZ5.js → date-range-picker.iaXigXuW.js} +428 -447
  68. package/dist/chunks/date-range-picker.iaXigXuW.js.map +1 -0
  69. package/dist/chunks/{dialog-page.CZN5-Ohm.js → dialog-page.BOwnhJze.js} +2 -2
  70. package/dist/chunks/{dialog-page.CZN5-Ohm.js.map → dialog-page.BOwnhJze.js.map} +1 -1
  71. package/dist/chunks/directive.D1-d-C2K.js +28 -0
  72. package/dist/chunks/directive.D1-d-C2K.js.map +1 -0
  73. package/dist/chunks/{draggable-handle.B_E-T3BS.js → draggable-handle.CKuHzAzS.js} +3 -3
  74. package/dist/chunks/{draggable-handle.B_E-T3BS.js.map → draggable-handle.CKuHzAzS.js.map} +1 -1
  75. package/dist/chunks/drawer.BQoyUVOW.js +64 -0
  76. package/dist/chunks/{drawer.GXqb2HPx.js.map → drawer.BQoyUVOW.js.map} +1 -1
  77. package/dist/chunks/{dropdown-tag.DUDW-Be6.js → dropdown-tag.DNWUbf7x.js} +3 -3
  78. package/dist/chunks/{dropdown-tag.DUDW-Be6.js.map → dropdown-tag.DNWUbf7x.js.map} +1 -1
  79. package/dist/chunks/{dropdown.Bsic3Nll.js → dropdown.CK8cdMyV.js} +458 -457
  80. package/dist/chunks/dropdown.CK8cdMyV.js.map +1 -0
  81. package/dist/chunks/{field-label.DFtyMriH.js → field-label.CLV3nSzz.js} +2 -2
  82. package/dist/chunks/{field-label.DFtyMriH.js.map → field-label.CLV3nSzz.js.map} +1 -1
  83. package/dist/chunks/{file-uploader.CKo27YzT.js → file-uploader.C9YOBRQg.js} +39 -38
  84. package/dist/chunks/{file-uploader.CKo27YzT.js.map → file-uploader.C9YOBRQg.js.map} +1 -1
  85. package/dist/chunks/{filter-bar.Dhghqmhb.js → filter-bar.CqbdRCQD.js} +21 -21
  86. package/dist/chunks/{filter-bar.Dhghqmhb.js.map → filter-bar.CqbdRCQD.js.map} +1 -1
  87. package/dist/chunks/{focus-trap.DcxrXRKl.js → focus-trap.Dl_rHbwH.js} +2 -2
  88. package/dist/chunks/{focus-trap.DcxrXRKl.js.map → focus-trap.Dl_rHbwH.js.map} +1 -1
  89. package/dist/chunks/{footer-actions.Dyi8PTyI.js → footer-actions.zlKq74F1.js} +2 -2
  90. package/dist/chunks/{footer-actions.Dyi8PTyI.js.map → footer-actions.zlKq74F1.js.map} +1 -1
  91. package/dist/chunks/form-layout-group.08QuvVmC.js +81 -0
  92. package/dist/chunks/form-layout-group.08QuvVmC.js.map +1 -0
  93. package/dist/chunks/form-layout-title.Kwve4xv2.js +179 -0
  94. package/dist/chunks/form-layout-title.Kwve4xv2.js.map +1 -0
  95. package/dist/chunks/header-meta.NFZo1ACP.js +243 -0
  96. package/dist/chunks/{header-meta.I2Tztkls.js.map → header-meta.NFZo1ACP.js.map} +1 -1
  97. package/dist/chunks/{header-with-views.MPJPxTzT.js → header-with-views.CB8M1Udi.js} +10 -10
  98. package/dist/chunks/{header-with-views.MPJPxTzT.js.map → header-with-views.CB8M1Udi.js.map} +1 -1
  99. package/dist/chunks/{header.CBzF5Ap9.js → header.Ds0sFKBB.js} +3 -3
  100. package/dist/chunks/{header.CBzF5Ap9.js.map → header.Ds0sFKBB.js.map} +1 -1
  101. package/dist/chunks/{index.Cqv1XuTj.js → index.oOAkh64h.js} +248 -225
  102. package/dist/chunks/{index.Cqv1XuTj.js.map → index.oOAkh64h.js.map} +1 -1
  103. package/dist/chunks/{info-icon.C_ZkQb1d.js → info-icon.1FtkyuYH.js} +3 -3
  104. package/dist/chunks/{info-icon.C_ZkQb1d.js.map → info-icon.1FtkyuYH.js.map} +1 -1
  105. package/dist/chunks/{input-field-password.CA16O5Gv.js → input-field-password.DJKloBB3.js} +24 -25
  106. package/dist/chunks/{input-field-password.CA16O5Gv.js.map → input-field-password.DJKloBB3.js.map} +1 -1
  107. package/dist/chunks/{input-field-phone-number.CTeDyk0e.js → input-field-phone-number.C3fQypln.js} +13 -14
  108. package/dist/chunks/{input-field-phone-number.CTeDyk0e.js.map → input-field-phone-number.C3fQypln.js.map} +1 -1
  109. package/dist/chunks/{input-field.DlEEFday.js → input-field.HgrRdDec.js} +104 -101
  110. package/dist/chunks/input-field.HgrRdDec.js.map +1 -0
  111. package/dist/chunks/{input-time.CIdcQBgS.js → input-time.DxCYIHSf.js} +7 -8
  112. package/dist/chunks/{input-time.CIdcQBgS.js.map → input-time.DxCYIHSf.js.map} +1 -1
  113. package/dist/chunks/{inspector.BdPLtQ1t.js → inspector.BvBC1ABK.js} +3 -3
  114. package/dist/chunks/{inspector.BdPLtQ1t.js.map → inspector.BvBC1ABK.js.map} +1 -1
  115. package/dist/chunks/{layout-row.PGFh3qzc.js → layout-row.BsGdHl3d.js} +8 -8
  116. package/dist/chunks/{layout-row.PGFh3qzc.js.map → layout-row.BsGdHl3d.js.map} +1 -1
  117. package/dist/chunks/{list-item.D34osEIh.js → list-item.E1o7yuEB.js} +2 -2
  118. package/dist/chunks/{list-item.D34osEIh.js.map → list-item.E1o7yuEB.js.map} +1 -1
  119. package/dist/chunks/{listbox-option-tag.12duL_ZH.js → listbox-option-tag.yF6p9iQw.js} +2 -2
  120. package/dist/chunks/{listbox-option-tag.12duL_ZH.js.map → listbox-option-tag.yF6p9iQw.js.map} +1 -1
  121. package/dist/chunks/{modal-fullscreen.BGpyGUGB.js → modal-fullscreen.DmruiE3n.js} +4 -4
  122. package/dist/chunks/{modal-fullscreen.BGpyGUGB.js.map → modal-fullscreen.DmruiE3n.js.map} +1 -1
  123. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js} +4 -4
  124. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js.map → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js.map} +1 -1
  125. package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js +336 -0
  126. package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js.map +1 -0
  127. package/dist/chunks/{pagination.CbGLdXSQ.js → pagination.vqSlDmeK.js} +2 -2
  128. package/dist/chunks/{pagination.CbGLdXSQ.js.map → pagination.vqSlDmeK.js.map} +1 -1
  129. package/dist/chunks/popover.types.DATOPtuh.js +6 -0
  130. package/dist/chunks/{popover.types.63w2RF7Y.js.map → popover.types.DATOPtuh.js.map} +1 -1
  131. package/dist/chunks/{popper-container.WR8Hb24e.js → popper-container.BH4WxeUj.js} +2 -2
  132. package/dist/chunks/{popper-container.WR8Hb24e.js.map → popper-container.BH4WxeUj.js.map} +1 -1
  133. package/dist/chunks/{promo-banner.DS8jlFES.js → promo-banner.DvV9eXs4.js} +2 -2
  134. package/dist/chunks/{promo-banner.DS8jlFES.js.map → promo-banner.DvV9eXs4.js.map} +1 -1
  135. package/dist/chunks/{radio-group.DpLQ_Wnj.js → radio-group.Cg67ZU0c.js} +3 -3
  136. package/dist/chunks/{radio-group.DpLQ_Wnj.js.map → radio-group.Cg67ZU0c.js.map} +1 -1
  137. package/dist/chunks/{rich-text-editor.CRa59ETT.js → rich-text-editor.u_fKHVgZ.js} +4 -4
  138. package/dist/chunks/{rich-text-editor.CRa59ETT.js.map → rich-text-editor.u_fKHVgZ.js.map} +1 -1
  139. package/dist/chunks/{search-bar.tmX9JctT.js → search-bar.CgSUD89l.js} +5 -6
  140. package/dist/chunks/{search-bar.tmX9JctT.js.map → search-bar.CgSUD89l.js.map} +1 -1
  141. package/dist/chunks/{secondary-nav.KIu9A7pb.js → secondary-nav.BqqNrHZE.js} +20 -20
  142. package/dist/chunks/{secondary-nav.KIu9A7pb.js.map → secondary-nav.BqqNrHZE.js.map} +1 -1
  143. package/dist/chunks/{segmented-control.Dxfpt98K.js → segmented-control.D6Yvxxpc.js} +2 -2
  144. package/dist/chunks/{segmented-control.Dxfpt98K.js.map → segmented-control.D6Yvxxpc.js.map} +1 -1
  145. package/dist/chunks/{selection-card-group.BVxESHZH.js → selection-card-group.C2Av3uyz.js} +11 -11
  146. package/dist/chunks/{selection-card-group.BVxESHZH.js.map → selection-card-group.C2Av3uyz.js.map} +1 -1
  147. package/dist/chunks/set-time-in-date.9-8WOiMT.js +27 -0
  148. package/dist/chunks/set-time-in-date.9-8WOiMT.js.map +1 -0
  149. package/dist/chunks/{sidepanel.BwesEWP_.js → sidepanel.BVQt6Tac.js} +6 -6
  150. package/dist/chunks/{sidepanel.BwesEWP_.js.map → sidepanel.BVQt6Tac.js.map} +1 -1
  151. package/dist/chunks/{structured-list-item.DUWQ4ggz.js → structured-list-item.BhYtSw2f.js} +4 -4
  152. package/dist/chunks/{structured-list-item.DUWQ4ggz.js.map → structured-list-item.BhYtSw2f.js.map} +1 -1
  153. package/dist/chunks/{summary-grid.types.BvZUfgwA.js → summary-grid.types.9sUs0LS0.js} +5 -5
  154. package/dist/chunks/{summary-grid.types.BvZUfgwA.js.map → summary-grid.types.9sUs0LS0.js.map} +1 -1
  155. package/dist/chunks/{tab.DKVHFvuI.js → tab.DWoYKpTv.js} +2 -2
  156. package/dist/chunks/{tab.DKVHFvuI.js.map → tab.DWoYKpTv.js.map} +1 -1
  157. package/dist/chunks/{tag.DyNHhsGt.js → tag.Uu-6AQys.js} +2 -2
  158. package/dist/chunks/{tag.DyNHhsGt.js.map → tag.Uu-6AQys.js.map} +1 -1
  159. package/dist/chunks/{textarea.DNeZr2IZ.js → textarea.QgSLPL7S.js} +2 -2
  160. package/dist/chunks/{textarea.DNeZr2IZ.js.map → textarea.QgSLPL7S.js.map} +1 -1
  161. package/dist/chunks/{timeline-item.CfA1E0zq.js → timeline-item.DfwOm5do.js} +6 -6
  162. package/dist/chunks/{timeline-item.CfA1E0zq.js.map → timeline-item.DfwOm5do.js.map} +1 -1
  163. package/dist/chunks/{tooltip.CuwiX213.js → tooltip.Djn54E1O.js} +3 -3
  164. package/dist/chunks/{tooltip.CuwiX213.js.map → tooltip.Djn54E1O.js.map} +1 -1
  165. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js} +4 -4
  166. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js.map} +1 -1
  167. package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js +30 -0
  168. package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js.map +1 -0
  169. package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js → use-cached-selected-values.CtWNiy-e.js} +2 -2
  170. package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js.map → use-cached-selected-values.CtWNiy-e.js.map} +1 -1
  171. package/dist/chunks/{use-date-input-formatter.DaBZd09a.js → use-date-input-formatter.BshboCF9.js} +2 -2
  172. package/dist/chunks/{use-date-input-formatter.DaBZd09a.js.map → use-date-input-formatter.BshboCF9.js.map} +1 -1
  173. package/dist/code-snippet.js +1 -1
  174. package/dist/dashboard-template.js +1 -1
  175. package/dist/dashed-underline.js +1 -1
  176. package/dist/data-grid-template.js +1 -1
  177. package/dist/data-grid.js +1 -1
  178. package/dist/date-picker.js +2 -2
  179. package/dist/date-range-picker.js +2 -2
  180. package/dist/date-time-picker.js +123 -0
  181. package/dist/date-time-picker.js.map +1 -0
  182. package/dist/draggable.js +1 -1
  183. package/dist/drawer.js +1 -1
  184. package/dist/dropdown.js +3 -3
  185. package/dist/file-uploader.js +1 -1
  186. package/dist/filter-bar.js +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +5 -4
  189. package/dist/form-layout.js.map +1 -1
  190. package/dist/header-with-views.js +1 -1
  191. package/dist/header.js +1 -1
  192. package/dist/index.js +217 -216
  193. package/dist/index.js.map +1 -1
  194. package/dist/info-icon.js +1 -1
  195. package/dist/input-field-password.js +1 -1
  196. package/dist/input-field-phone-number.js +1 -1
  197. package/dist/input-field.js +1 -1
  198. package/dist/input-time.js +1 -1
  199. package/dist/inspector.js +1 -1
  200. package/dist/internal.js +11 -11
  201. package/dist/layout.js +1 -1
  202. package/dist/list.js +1 -1
  203. package/dist/menu.js +1 -1
  204. package/dist/modal-fullscreen.js +1 -1
  205. package/dist/modal.js +2 -2
  206. package/dist/navigation-menu.js +1 -1
  207. package/dist/pagination.js +1 -1
  208. package/dist/popover.js +2 -2
  209. package/dist/popper-container.js +1 -1
  210. package/dist/promo-banner.js +1 -1
  211. package/dist/radio-group.js +1 -1
  212. package/dist/rich-text-editor.js +1 -1
  213. package/dist/search-bar.js +2 -2
  214. package/dist/secondary-nav.js +1 -1
  215. package/dist/segmented-control.js +1 -1
  216. package/dist/selection-card.js +1 -1
  217. package/dist/sidepanel.js +1 -1
  218. package/dist/structured-list.js +1 -1
  219. package/dist/summary-grid.js +1 -1
  220. package/dist/tabs.js +1 -1
  221. package/dist/tag.js +1 -1
  222. package/dist/textarea.js +1 -1
  223. package/dist/timeline.js +1 -1
  224. package/dist/tutorial.js +1 -1
  225. package/dist/web-types.json +1 -1
  226. package/package.json +6 -6
  227. package/dist/chunks/dashed-underline.DojqhvAa.js +0 -108
  228. package/dist/chunks/dashed-underline.DojqhvAa.js.map +0 -1
  229. package/dist/chunks/date-picker.DUUGSbot.js +0 -269
  230. package/dist/chunks/date-picker.DUUGSbot.js.map +0 -1
  231. package/dist/chunks/date-range-picker.C5CSReZ5.js.map +0 -1
  232. package/dist/chunks/directive.C8kY-ZW-.js +0 -23
  233. package/dist/chunks/directive.C8kY-ZW-.js.map +0 -1
  234. package/dist/chunks/drawer.GXqb2HPx.js +0 -55
  235. package/dist/chunks/dropdown.Bsic3Nll.js.map +0 -1
  236. package/dist/chunks/form-layout-title.B712PesH.js +0 -253
  237. package/dist/chunks/form-layout-title.B712PesH.js.map +0 -1
  238. package/dist/chunks/header-meta.I2Tztkls.js +0 -259
  239. package/dist/chunks/input-field.DlEEFday.js.map +0 -1
  240. package/dist/chunks/navigation-menu-group.D5HMMAuh.js +0 -320
  241. package/dist/chunks/navigation-menu-group.D5HMMAuh.js.map +0 -1
  242. package/dist/chunks/popover.types.63w2RF7Y.js +0 -6
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-layout-title.B712PesH.js","sources":["../../../vue2/src/components/form-layout/form-layout.vue","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\" @submit=\"emit('submit', $event)\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emits the submit event from the form\n */\n (e: 'submit', event: SubmitEvent): void;\n }>();\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { type BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" :id=\"id\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { type PropType, useSlots } from 'vue';\n import {\n type BentoFormLayoutFieldTipTypeOption,\n BentoFormLayoutFieldTipTypeOptions,\n } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n /**\n * Unique identifier to the form field. Used for accessibility.\n */\n id: {\n type: String,\n default: undefined,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n <error-message v-if=\"!!errorMessage\" :error-message=\"errorMessage\" class=\"b-form-layout-group__error-message\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType } from 'vue';\n import { ErrorMessage } from '@/internal';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two columns are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n\n /**\n * The error message to be displayed for the whole group.\n *\n * If set, individual error messages for all components within this group will be hidden.\n * This is particularly useful for field pairs where a single group error is displayed.\n */\n errorMessage: { type: String, default: null },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n 'b-form-layout-group--group-error-messages': !!props.errorMessage,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description') || allFieldsRequired\"\n class=\"b-form-layout-title__description\"\n el=\"span\"\n wide\n >\n <slot name=\"description\" />\n <template v-if=\"allFieldsRequired\">\n {{ hasSlot('description') ? ` ${t('requiredFields')}` : t('requiredFields') }}\n </template>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Defines if the Form Layout title displays\n * a message indicating that all fields are required.\n */\n allFieldsRequired: {\n type: Boolean,\n default: false,\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organize related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {\n name: 'bento-form-layout-title',\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","messages","t","useI18n","isSection"],"mappings":";;;;;;;;;;;;qFA6FIA,IAAA,CAAA;;;;;;;;;;;;;;;;AAjEA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GAaAC,IAAAC,EAAA,MAAAH,EAAA,OAAA,SAAA,KAAA,GACAI,IAAAD,EAAA,MAAAP,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAS,EAAAC,GAAAC,EAAAP,GAAA,SAAA,CAAA;;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unref as c, createBlock as O, withCtx as _, renderSlot as E, toDisplayString as M, createCommentVNode as h, computed as j, useSlots as F, createTextVNode as B } from "vue";
2
- import { h as $, a as A } from "./button-actions.uco5ptf5.js";
3
- import { B as Y } from "./popover.types.63w2RF7Y.js";
4
- import { p as G, B as T } from "./typography.B3J6_tYk.js";
5
- import { g as H } from "./generate-uid.DBWe4g6T.js";
6
- import { u as X } from "./index.B875RXHM.js";
7
- import { I as V } from "./info.6Z6NxUst.js";
8
- import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { u as W } from "./use-has-slot.CyMiImRQ.js";
10
- import { c as J } from "./constructNow.DyOJDyZZ.js";
11
- import { t as P, d as q, n as K, k, j as Q, o as R, p as g, g as Z } from "./en-US.BR6y7foR.js";
12
- import { d as ee } from "./differenceInMonths.yz4Dfe-b.js";
13
- import { g as te } from "./getRoundingMethod.C3eaeGLR.js";
14
- import { R as oe } from "./refresh.C31KClfx.js";
15
- import "../assets/header-meta.css";
16
- const D = /* @__PURE__ */ Object.assign({
17
- "../../../node_modules/date-fns/locale/de.js": () => import("./de.ctR_lBqr.js"),
18
- "../../../node_modules/date-fns/locale/en-GB.js": () => import("./en-GB.BsQNm5GT.js"),
19
- "../../../node_modules/date-fns/locale/en-US.js": () => import("./en-US.BR6y7foR.js").then((o) => o.x),
20
- "../../../node_modules/date-fns/locale/es.js": () => import("./es.DxqH-QhP.js"),
21
- "../../../node_modules/date-fns/locale/fr.js": () => import("./fr.DJtn8ron.js"),
22
- "../../../node_modules/date-fns/locale/it.js": () => import("./it.keS7oN5l.js"),
23
- "../../../node_modules/date-fns/locale/ja.js": () => import("./ja.cLwacUE6.js"),
24
- "../../../node_modules/date-fns/locale/pt-BR.js": () => import("./pt-BR.ChPOra5s.js"),
25
- "../../../node_modules/date-fns/locale/zh-CN.js": () => import("./zh-CN.ZG6obniO.js")
26
- });
27
- function ae(o) {
28
- const n = L(void 0);
29
- return C(
30
- o,
31
- async (s) => {
32
- if (!s) {
33
- n.value = void 0;
34
- return;
35
- }
36
- const r = (l) => `../../../node_modules/date-fns/locale/${l}.js`;
37
- let e = r(s);
38
- if (D[e] || (e = r(s.substring(0, 2))), D[e] || (e = r("en-US")), D[e])
39
- try {
40
- const l = await D[e]();
41
- n.value = l.default;
42
- } catch (l) {
43
- G(`Failed to load date-fns locale: ${s}`, l);
44
- }
45
- },
46
- { immediate: !0 }
47
- ), n;
48
- }
49
- function ne(o, n) {
50
- return +P(o) - +P(n);
51
- }
52
- function se(o, n, s) {
53
- const r = ne(o, n) / 1e3;
54
- return te(s?.roundingMethod)(r);
55
- }
56
- function re(o, n, s) {
57
- const r = Z(), e = s?.locale ?? r.locale ?? Q, l = 2520, d = q(o, n);
58
- if (isNaN(d)) throw new RangeError("Invalid time value");
59
- const t = Object.assign({}, s, {
60
- addSuffix: s?.addSuffix,
61
- comparison: d
62
- }), [f, i] = K(
63
- s?.in,
64
- ...d > 0 ? [n, o] : [o, n]
65
- ), u = se(i, f), U = (k(i) - k(f)) / 1e3, a = Math.round((u - U) / 60);
66
- let p;
67
- if (a < 2)
68
- return s?.includeSeconds ? u < 5 ? e.formatDistance("lessThanXSeconds", 5, t) : u < 10 ? e.formatDistance("lessThanXSeconds", 10, t) : u < 20 ? e.formatDistance("lessThanXSeconds", 20, t) : u < 40 ? e.formatDistance("halfAMinute", 0, t) : u < 60 ? e.formatDistance("lessThanXMinutes", 1, t) : e.formatDistance("xMinutes", 1, t) : a === 0 ? e.formatDistance("lessThanXMinutes", 1, t) : e.formatDistance("xMinutes", a, t);
69
- if (a < 45)
70
- return e.formatDistance("xMinutes", a, t);
71
- if (a < 90)
72
- return e.formatDistance("aboutXHours", 1, t);
73
- if (a < R) {
74
- const m = Math.round(a / 60);
75
- return e.formatDistance("aboutXHours", m, t);
76
- } else {
77
- if (a < l)
78
- return e.formatDistance("xDays", 1, t);
79
- if (a < g) {
80
- const m = Math.round(a / R);
81
- return e.formatDistance("xDays", m, t);
82
- } else if (a < g * 2)
83
- return p = Math.round(a / g), e.formatDistance("aboutXMonths", p, t);
84
- }
85
- if (p = ee(i, f), p < 12) {
86
- const m = Math.round(a / g);
87
- return e.formatDistance("xMonths", m, t);
88
- } else {
89
- const m = p % 12, b = Math.trunc(p / 12);
90
- return m < 3 ? e.formatDistance("aboutXYears", b, t) : m < 9 ? e.formatDistance("overXYears", b, t) : e.formatDistance("almostXYears", b + 1, t);
91
- }
92
- }
93
- function ie(o, n) {
94
- return re(o, J(o), n);
95
- }
96
- const w = {
97
- "de-DE": { moreInformation: "Weitere Informationen" },
98
- "en-GB": { moreInformation: "More information" },
99
- "en-US": { moreInformation: "More information" },
100
- "es-ES": { moreInformation: "Más información" },
101
- "es-MX": { moreInformation: "Más información" },
102
- "fr-FR": { moreInformation: "Plus d'informations" },
103
- "it-IT": { moreInformation: "Ulteriori informazioni" },
104
- "ja-JP": { moreInformation: "詳細情報" },
105
- "pt-BR": { moreInformation: "Mais informações" },
106
- "zh-CN": { moreInformation: "更多信息" }
107
- }, le = { key: 0 }, de = {
108
- i18n: { messages: w }
109
- }, ce = /* @__PURE__ */ x({
110
- ...de,
111
- __name: "info-icon-with-popover",
112
- props: {
113
- /**
114
- * Text showed in the popover on hover
115
- */
116
- popoverText: { type: String, default: null },
117
- /**
118
- * Position the popover should take if space is available
119
- */
120
- popoverPosition: {
121
- type: String,
122
- default: "bottom-start",
123
- validator: (o) => Object.values(Y).includes(o)
124
- }
125
- },
126
- setup(o) {
127
- const { t: s } = X({ messages: w }), r = I(), e = I(null), l = H("bento-info-icon-with-popover"), d = I(), t = I(), f = () => {
128
- d.value = !0, t.value && clearTimeout(t.value);
129
- }, i = () => {
130
- const a = setTimeout(() => {
131
- d.value = !1;
132
- }, 200);
133
- t.value = a;
134
- }, u = () => {
135
- f();
136
- }, U = (a) => {
137
- (!r.value || !(a?.relatedTarget instanceof Element) || !r.value.contains(a.relatedTarget)) && i();
138
- };
139
- return (a, p) => (v(), S("div", {
140
- ref_key: "infoIconRef",
141
- ref: r,
142
- class: "b-info-icon-with-popover",
143
- tabindex: "0",
144
- "data-testid": "info-icon-with-popover",
145
- onMouseenter: f,
146
- onMouseleave: i,
147
- onFocus: u,
148
- onFocusout: U
149
- }, [
150
- y(c(V), {
151
- ref_key: "targetElement",
152
- ref: e,
153
- class: "b-info-icon-with-popover__svg",
154
- "aria-expanded": d.value,
155
- "aria-describedby": c(l),
156
- "svg-title": c(s)("moreInformation")
157
- }, null, 8, ["aria-expanded", "aria-describedby", "svg-title"]),
158
- e.value ? (v(), O(c($), {
159
- key: 0,
160
- open: d.value,
161
- "target-element": e.value,
162
- position: o.popoverPosition,
163
- role: "tooltip",
164
- "fit-content": "",
165
- "disable-focus-trap": ""
166
- }, {
167
- default: _(() => [
168
- y(c(T), null, {
169
- default: _(() => [
170
- E(a.$slots, "default", {}, () => [
171
- o.popoverText ? (v(), S("div", le, M(o.popoverText), 1)) : h("", !0)
172
- ], !0)
173
- ]),
174
- _: 3
175
- })
176
- ]),
177
- _: 3
178
- }, 8, ["open", "target-element", "position"])) : h("", !0)
179
- ], 544));
180
- }
181
- }), je = /* @__PURE__ */ N(ce, [["__scopeId", "data-v-7949c381"]]), z = {
182
- "de-DE": { lastUpdated: "Letzte Aktualisierung: {date}" },
183
- "en-GB": { lastUpdated: "Last updated: {date}" },
184
- "en-US": { lastUpdated: "Last updated: {date}" },
185
- "es-ES": { lastUpdated: "Última actualización: {date}" },
186
- "es-MX": { lastUpdated: "Última actualización: {date}" },
187
- "fr-FR": { lastUpdated: "Dernière mise à jour : le {date}" },
188
- "it-IT": { lastUpdated: "Ultimo aggiornamento: {date}" },
189
- "ja-JP": { lastUpdated: "最終更新日: {date}" },
190
- "pt-BR": { lastUpdated: "Última atualização: {date}" },
191
- "zh-CN": { lastUpdated: "最后更新时间:{date}" }
192
- }, ue = { class: "b-header-meta__container" }, fe = {
193
- key: 1,
194
- class: "b-header-meta__timestamp-section"
195
- }, me = {
196
- i18n: { messages: z }
197
- }, pe = /* @__PURE__ */ x({
198
- ...me,
199
- __name: "header-meta",
200
- props: {
201
- description: { default: null },
202
- lastUpdated: { default: null },
203
- reloadButton: { default: null }
204
- },
205
- setup(o) {
206
- const { t: n, locale: s } = X({ messages: z }), r = o, e = j(() => r.lastUpdated ? s.value : ""), l = ae(e), d = j(
207
- () => r.lastUpdated ? n("lastUpdated", {
208
- date: ie(r.lastUpdated, {
209
- locale: l.value,
210
- addSuffix: !0
211
- })
212
- }) : null
213
- ), t = F(), f = W(t);
214
- return (i, u) => (v(), S("div", ue, [
215
- i.description || c(f)("description") ? (v(), O(c(T), {
216
- key: 0,
217
- class: "b-header-meta__description",
218
- el: "div"
219
- }, {
220
- default: _(() => [
221
- E(i.$slots, "description", {}, () => [
222
- B(M(i.description), 1)
223
- ], !0)
224
- ]),
225
- _: 3
226
- })) : h("", !0),
227
- i.lastUpdated ? (v(), S("div", fe, [
228
- y(c(T), {
229
- class: "b-header-meta__timestamp",
230
- el: "div"
231
- }, {
232
- default: _(() => [
233
- B(M(d.value), 1)
234
- ]),
235
- _: 1
236
- }),
237
- i.reloadButton ? (v(), O(c(A), {
238
- key: 0,
239
- variant: "tertiary",
240
- state: i.reloadButton.state,
241
- onClick: i.reloadButton.event
242
- }, {
243
- iconLeft: _(() => [
244
- y(c(oe), { "aria-hidden": "true" })
245
- ]),
246
- default: _(() => [
247
- B(M(i.reloadButton.title), 1)
248
- ]),
249
- _: 1
250
- }, 8, ["state", "onClick"])) : h("", !0)
251
- ])) : h("", !0)
252
- ]));
253
- }
254
- }), Pe = /* @__PURE__ */ N(pe, [["__scopeId", "data-v-7ffeebd4"]]);
255
- export {
256
- Pe as H,
257
- je as I
258
- };
259
- //# sourceMappingURL=header-meta.I2Tztkls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-field.DlEEFday.js","sources":["../../../vue2/src/components/input-field/input-field.types.ts","../../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { type BentoDropdownProps } from '../dropdown/dropdown.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * @deprecated Since v2.0.0. Use 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 Since v2.0.0. Use 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 Since v2.0.0. Use string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\nexport interface BentoInputDropdownProps {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Indicates that dropdown items are loading (shows a loading skeleton)\n */\n componentLoading?: BentoDropdownProps['componentLoading'];\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: BentoDropdownProps['dynamicFiltering'];\n /**\n * Empty state displayed when no search results are found\n */\n emptyState?: BentoDropdownProps['emptyState'];\n /**\n * Enables value/label pair handling for selected values\n */\n enableValueLabelPair?: BentoDropdownProps['enableValueLabelPair'];\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems?: BentoDropdownProps['hasMoreItems'];\n /**\n * Function that determines which options are disabled from interaction\n */\n isOptionDisabled?: BentoDropdownProps['isOptionDisabled'];\n /**\n * List of available items\n */\n items: BentoDropdownProps['items'];\n /**\n * The type of lazy load: \"automatic\" for infinite scrolling, \"button\" for a show-more button\n */\n lazyLoadType?: BentoDropdownProps['lazyLoadType'];\n /**\n * Indicates if new options are lazy loading\n */\n loading?: BentoDropdownProps['loading'];\n /**\n * Selected value of the dropdown\n */\n modelValue?: BentoDropdownProps['modelValue'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: BentoDropdownProps['readonly'];\n /**\n * Dropdown search options including debounce time and placeholder\n */\n search?: BentoDropdownProps['search'];\n /**\n * Displays non-selectable, static categories in the dropdown\n */\n staticCategories?: BentoDropdownProps['staticCategories'];\n /**\n * Selected value of the dropdown\n * @deprecated Since v2.0.0. Use `model-value` instead.\n */\n value?: BentoDropdownProps['value'];\n /**\n * Enables virtual scrolling for large lists of items\n */\n virtualScroll?: BentoDropdownProps['virtualScroll'];\n}\n\n/**\n * @deprecated Since v2.0.0. Use `@<emit name>` instead.\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 extends FormField {\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 Since v2.0.0. Use `aria-label` instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Dropdown props for the single-select dropdown menu embedded in the input field.\n * Only a subset of `BentoDropdownProps` is supported (multi-select is not available).\n *\n * @see {@link BentoInputDropdownProps}\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 Since v2.0.0. Use `errorMessage` instead.\n */\n error?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldValue;\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 * 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 * @deprecated Since v2.0.0. Use `v-model` or `model-value` instead.\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 v-bind=\"getRootAttributes($attrs)\"\n :data-testid=\"getDataTestId($attrs)\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default') || label\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n :label=\"label\"\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=\"isDropdownReadOnly\"\n @update:model-value=\"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 :required=\"required\"\n :aria-required=\"required\"\n :type=\"type\"\n :value=\"modelValue ?? 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 @click=\"emit('click', $event)\"\n />\n\n <!-- Hint at the end -->\n <bento-typography\n v-if=\"hint && isFocused && (modelValue || value)\"\n el=\"span\"\n class=\"b-input-field__hint\"\n >\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=\"isDropdownReadOnly\"\n @update:model-value=\"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\n v-if=\"hasSlot('description') || description\"\n :id=\"descriptionId\"\n class=\"b-input-field__description\"\n @click=\"focusInput\"\n >\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, type 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 { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\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 INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n type BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n type BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n type BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.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 = withDefaults(defineProps<BentoInputFieldProps>(), {\n ariaHidden: true,\n ariaLabel: undefined,\n condensed: false,\n description: '',\n disabled: false,\n dropdown: undefined,\n dropdownPosition: BentoInputFieldElementPosition.START,\n error: false,\n errorMessage: null,\n label: '',\n modelValue: undefined,\n optional: false,\n placeholder: '',\n required: false,\n readonly: false,\n slashedZero: false,\n staticValue: '',\n staticValuePosition: BentoInputFieldElementPosition.START,\n tooltipText: null,\n type: BentoInputFieldType.TEXT,\n value: undefined,\n variant: BentoInputFieldVariant.DEFAULT,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the input is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: 'change'): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value\n */\n (e: 'dropdown-input', selectedValue: BentoListboxSelectedValue): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emitted when a key is pressed down\n */\n (e: 'keydown', event: KeyboardEvent): void;\n\n /**\n * Emitted when a key is pressed and lifted up\n */\n (e: 'keyup', event: KeyboardEvent): void;\n\n /**\n * Emitted when the component's model changes\n * @deprecated Since v2.0.0. Use `v-model` or `update:model-value` instead.\n */\n (e: 'input', inputValue: string): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value. Contains every dropdown prop passed with the updated selected value as 'value'\n */\n (e: 'update:dropdown', updatedDropdownProps: BentoInputDropdownProps): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: 'update:model-value', inputValue: BentoInputFieldValue): void;\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldValue>(emit);\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 /**\n * Gets the overriden or the default data-testid attribute\n * @param attributes - the live attributes object\n */\n function getDataTestId(attributes: Record<string, unknown>) {\n return (attributes['data-testid'] as string) ?? 'input-text-container';\n }\n /**\n * Filters out all aria attributes for the root element.\n * @param attributes - the live attributes object\n */\n function getRootAttributes(attributes: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(attributes).filter(([key]) => !key.startsWith('aria-') && key !== 'data-testid')\n );\n }\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 const isDropdownReadOnly = computed<BentoInputDropdownProps['readonly']>(\n () => isReadOnly.value || props.dropdown?.readonly\n );\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 computedLabel = computed(() => (getSlotText(slots)('default') as string) || props.label);\n const computedDescription = computed(() => (getSlotText(slots)('description') as string) || props.description);\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(() =>\n attrs?.['aria-labelledby'] ? undefined : t('ariaLabelFallback')\n );\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: computedLabel.value || computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${computedDescription.value ? 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 emitValue(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 const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\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\n if (props.value) {\n deprecate(\n 'BentoInputField \"value\" property',\n `The use of \"value\" prop in \"BentoInputField\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\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 * :model-value=\"inputValue\"\n * :@update:model-value=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n name: 'bento-input-field',\n inheritAttrs: false,\n model: { prop: 'modelValue' },\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","props","__props","emit","__emit","emitValue","useFormFieldEmits","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","getDataTestId","attributes","getRootAttributes","key","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","isDropdownReadOnly","computed","shouldShowStaticValue","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedLabel","getSlotText","computedDescription","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","__expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":";;;;;;;;;;;;;;AAMO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,iBAAA,kBACAA,EAAA,eAAA,gBACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAKLE,IAAA,kBAAAC,OACHA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA,GA+ELE,KAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,kBAAA,mBACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,UAAA,WARQA,IAAAD,MAAA,CAAA,CAAA;;;;;;;;;;;;uVCgaRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAAA,EACQ,OAAA,EAAA,MAAA,aAA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