@adyen/bento-vue3 1.90.0 → 1.92.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.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +728 -597
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.Pe_hvtja.js → action-bar.BxyRAZn1.js} +3 -3
- package/dist/chunks/{action-bar.Pe_hvtja.js.map → action-bar.BxyRAZn1.js.map} +1 -1
- package/dist/chunks/{ai-tag.BSlc78DU.js → ai-tag.CpeZm2Yf.js} +2 -2
- package/dist/chunks/{ai-tag.BSlc78DU.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
- package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
- package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
- package/dist/chunks/{base-modal.BjjDrx0z.js → base-modal.C8Rsc2oO.js} +4 -4
- package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.DvkS16ur.js → button-actions-with-menu.KaWdHibo.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.DvkS16ur.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
- package/dist/chunks/{button-actions.Bh_PZ_fV.js → button-actions.7Oi2Ra4p.js} +88 -94
- package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.DWF7FSIw.js.map +1 -1
- package/dist/chunks/{calendar.CH-1Vgeb.js → calendar.DfMwuOIR.js} +503 -425
- package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
- package/dist/chunks/{card.BzCGCCzH.js → card.7q8tTfjG.js} +2 -2
- package/dist/chunks/card.7q8tTfjG.js.map +1 -0
- package/dist/chunks/{checkbox-group.D_fN6Glu.js → checkbox-group.DawPC5Go.js} +6 -6
- package/dist/chunks/checkbox-group.DawPC5Go.js.map +1 -0
- package/dist/chunks/{checkbox.BlAhQl9N.js → checkbox.CDjMTuJk.js} +4 -6
- package/dist/chunks/checkbox.CDjMTuJk.js.map +1 -0
- package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
- package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
- package/dist/chunks/{code-snippet.BePxxR3q.js → code-snippet.Dtb7CDv9.js} +3 -3
- package/dist/chunks/code-snippet.Dtb7CDv9.js.map +1 -0
- package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
- package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
- package/dist/chunks/{controls-group.Cxk-0fCy.js → controls-group.DqRpF9bh.js} +2 -2
- package/dist/chunks/{controls-group.Cxk-0fCy.js.map → controls-group.DqRpF9bh.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
- package/dist/chunks/{dashboard-section.CiNDItU2.js → dashboard-section.kwKlujP-.js} +2 -2
- package/dist/chunks/{dashboard-section.CiNDItU2.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CwdpUz76.js → dashed-underline.ADDEdamG.js} +2 -2
- package/dist/chunks/{dashed-underline.CwdpUz76.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
- package/dist/chunks/{data-grid-template.nXn1dLCw.js → data-grid-template.C69yN3ZR.js} +2 -2
- package/dist/chunks/{data-grid-template.nXn1dLCw.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
- package/dist/chunks/{data-grid.CXWaoqzi.js → data-grid._kCZlpR4.js} +745 -741
- package/dist/chunks/data-grid._kCZlpR4.js.map +1 -0
- package/dist/chunks/date-picker.D08qIp2A.js +269 -0
- package/dist/chunks/date-picker.D08qIp2A.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.BXzTT4AF.js +1038 -0
- package/dist/chunks/date-range-picker.BXzTT4AF.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
- package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
- package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
- package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
- package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
- package/dist/{draggable-handle.js → chunks/draggable-handle.BWHOlabB.js} +56 -47
- package/dist/chunks/draggable-handle.BWHOlabB.js.map +1 -0
- package/dist/chunks/{dropdown-tag.B7OA_Yv9.js → dropdown-tag.Sk2n9gbl.js} +6 -6
- package/dist/chunks/dropdown-tag.Sk2n9gbl.js.map +1 -0
- package/dist/chunks/dropdown.CuIBYLdy.js +1218 -0
- package/dist/chunks/dropdown.CuIBYLdy.js.map +1 -0
- package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
- package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
- package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
- package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
- package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
- package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
- package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
- package/dist/chunks/field-label.DZYFjFgr.js +111 -0
- package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
- package/dist/chunks/{file-uploader.BUvDU_cn.js → file-uploader.B5_l2uQO.js} +5 -5
- package/dist/chunks/{file-uploader.BUvDU_cn.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
- package/dist/chunks/{filter-bar.fowl40RS.js → filter-bar.gwDFNkp5.js} +1472 -1454
- package/dist/chunks/filter-bar.gwDFNkp5.js.map +1 -0
- package/dist/chunks/{footer-actions.uoNbOGAQ.js → footer-actions.4Qj_I3cd.js} +2 -2
- package/dist/chunks/{footer-actions.uoNbOGAQ.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Cr3wdpK_.js → form-layout-title.B712PesH.js} +79 -65
- package/dist/chunks/form-layout-title.B712PesH.js.map +1 -0
- package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
- package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
- package/dist/chunks/{header-meta.CmH6SnjE.js → header-meta.BJjFOcxY.js} +14 -14
- package/dist/chunks/{header-meta.CmH6SnjE.js.map → header-meta.BJjFOcxY.js.map} +1 -1
- package/dist/chunks/{header-with-views.B2pPBcTf.js → header-with-views.CMO5q6g5.js} +10 -10
- package/dist/chunks/{header-with-views.B2pPBcTf.js.map → header-with-views.CMO5q6g5.js.map} +1 -1
- package/dist/chunks/{header.BVM8Usdi.js → header.5RQulwlL.js} +3 -3
- package/dist/chunks/header.5RQulwlL.js.map +1 -0
- package/dist/chunks/{input-field-password.CHb2Ros_.js → input-field-password.DWR0liBW.js} +5 -5
- package/dist/chunks/input-field-password.DWR0liBW.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js → input-field-phone-number.ByjukCrO.js} +4 -4
- package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js.map → input-field-phone-number.ByjukCrO.js.map} +1 -1
- package/dist/chunks/{input-field.DnYjM6yy.js → input-field.FkzBZDWS.js} +150 -135
- package/dist/chunks/input-field.FkzBZDWS.js.map +1 -0
- package/dist/chunks/input-time.DlvANG4O.js +122 -0
- package/dist/chunks/input-time.DlvANG4O.js.map +1 -0
- package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
- package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
- package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
- package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
- package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
- package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
- package/dist/chunks/link.D6D6YGsN.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.9CSTqFQc.js → modal-fullscreen.CepaWyoi.js} +2 -2
- package/dist/chunks/{modal-fullscreen.9CSTqFQc.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
- package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
- package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
- package/dist/chunks/{pagination.DL-h8OLF.js → pagination.Ch_Occwt.js} +100 -100
- package/dist/chunks/{pagination.DL-h8OLF.js.map → pagination.Ch_Occwt.js.map} +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
- package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
- package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
- package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
- package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
- package/dist/chunks/{radio-group.DzhQgXv9.js → radio-group.CfMr1fmW.js} +3 -3
- package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -0
- package/dist/chunks/{rich-text-editor.Ij2t4pyI.js → rich-text-editor.mxbLaG6q.js} +7 -6
- package/dist/chunks/{rich-text-editor.Ij2t4pyI.js.map → rich-text-editor.mxbLaG6q.js.map} +1 -1
- package/dist/chunks/{search-bar.DfNwnjes.js → search-bar.JDkxJGjF.js} +4 -4
- package/dist/chunks/{search-bar.DfNwnjes.js.map → search-bar.JDkxJGjF.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CvipTDRh.js → secondary-nav.CROQNbYk.js} +2 -2
- package/dist/chunks/{secondary-nav.CvipTDRh.js.map → secondary-nav.CROQNbYk.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.CcOWQAUC.js → selection-card-group.DJ6FFvsA.js} +3 -3
- package/dist/chunks/{selection-card-group.CcOWQAUC.js.map → selection-card-group.DJ6FFvsA.js.map} +1 -1
- package/dist/chunks/{sidepanel.BObSv8UU.js → sidepanel.S037xghX.js} +4 -4
- package/dist/chunks/{sidepanel.BObSv8UU.js.map → sidepanel.S037xghX.js.map} +1 -1
- package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
- package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
- package/dist/chunks/{summary-grid.types.DKPhtHw3.js → summary-grid.types.D1JQ_jtv.js} +2 -2
- package/dist/chunks/{summary-grid.types.DKPhtHw3.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
- package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
- package/dist/chunks/{textarea.C-sBemuo.js → textarea.-6FHesSp.js} +19 -18
- package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
- package/dist/chunks/{timeline-item.CHk8wXeT.js → timeline-item.BJaFr2_Y.js} +5 -5
- package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
- package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
- package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
- package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
- package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
- package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
- package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
- package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable.js +1383 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +10 -11
- package/dist/dropdown.js.map +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +278 -275
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/internal.js +24 -23
- package/dist/internal.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -11
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
- package/dist/chunks/base-modal.BjjDrx0z.js.map +0 -1
- package/dist/chunks/button-actions.Bh_PZ_fV.js.map +0 -1
- package/dist/chunks/calendar.CH-1Vgeb.js.map +0 -1
- package/dist/chunks/card.BzCGCCzH.js.map +0 -1
- package/dist/chunks/checkbox-group.D_fN6Glu.js.map +0 -1
- package/dist/chunks/checkbox.BlAhQl9N.js.map +0 -1
- package/dist/chunks/code-snippet.BePxxR3q.js.map +0 -1
- package/dist/chunks/constructNow.D9uRk678.js +0 -8
- package/dist/chunks/data-grid.CXWaoqzi.js.map +0 -1
- package/dist/chunks/date-picker.DPjCROIP.js +0 -238
- package/dist/chunks/date-picker.DPjCROIP.js.map +0 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +0 -998
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js +0 -415
- package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js.map +0 -1
- package/dist/chunks/dropdown-tag.B7OA_Yv9.js.map +0 -1
- package/dist/chunks/dropdown.Do-mZiI6.js +0 -813
- package/dist/chunks/dropdown.Do-mZiI6.js.map +0 -1
- package/dist/chunks/error-message.849uzpkq.js +0 -157
- package/dist/chunks/error-message.849uzpkq.js.map +0 -1
- package/dist/chunks/filter-bar.fowl40RS.js.map +0 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js.map +0 -1
- package/dist/chunks/header.BVM8Usdi.js.map +0 -1
- package/dist/chunks/input-field-password.CHb2Ros_.js.map +0 -1
- package/dist/chunks/input-field.DnYjM6yy.js.map +0 -1
- package/dist/chunks/input-time.DeJ8lDio.js +0 -103
- package/dist/chunks/input-time.DeJ8lDio.js.map +0 -1
- package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
- package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
- package/dist/chunks/radio-group.DzhQgXv9.js.map +0 -1
- package/dist/chunks/textarea.C-sBemuo.js.map +0 -1
- package/dist/chunks/timeline-item.CHk8wXeT.js.map +0 -1
- package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DIbfa5F1.js +0 -1652
- package/dist/chunks/use-cached-selected-values.DIbfa5F1.js.map +0 -1
- package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
- package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { p as
|
|
4
|
-
import { u as
|
|
1
|
+
import { defineComponent as Te, useAttrs as Ae, useSlots as Ne, ref as k, provide as Fe, inject as J, toRef as ge, computed as l, toRefs as Oe, openBlock as d, createBlock as u, unref as o, mergeProps as g, withCtx as c, renderSlot as p, createCommentVNode as r, createElementVNode as C, createElementBlock as v, withModifiers as X, withKeys as Ie, createTextVNode as z, toDisplayString as G, createVNode as Ce } from "vue";
|
|
2
|
+
import { b as Re, I as Se, c as Pe, B as Z } from "./dropdown.CuIBYLdy.js";
|
|
3
|
+
import { p as R, d as S, B as L } from "./typography.B3J6_tYk.js";
|
|
4
|
+
import { u as Be } from "./form-field.D_2g7vaP.js";
|
|
5
5
|
import { g as h } from "./generate-uid.DBWe4g6T.js";
|
|
6
6
|
import { g as Q } from "./get-slot-text.8Fbl1GOr.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { F as
|
|
12
|
-
import {
|
|
7
|
+
import { u as $e } from "./aria-label.CaUURpnB.js";
|
|
8
|
+
import { u as Me } from "./index.B875RXHM.js";
|
|
9
|
+
import { u as Ve } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
10
|
+
import { u as Ue } from "./use-has-slot.CyMiImRQ.js";
|
|
11
|
+
import { F as He } from "./field-label.DZYFjFgr.js";
|
|
12
|
+
import { E as qe } from "./error-message.Dyvrw6ZB.js";
|
|
13
|
+
import { _ as Ye } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
13
14
|
import "../assets/input-field.css";
|
|
14
|
-
var m = /* @__PURE__ */ ((
|
|
15
|
+
var m = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.PAYMENT_METHOD = "payment-method", t.STATIC_VALUE = "static-value", t.DROPDOWN = "dropdown", t))(m || {}), b = /* @__PURE__ */ ((t) => (t.START = "start", t.END = "end", t))(b || {}), E = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DISABLED = "disabled", t.READONLY = "readonly", t.ERROR = "error", t))(E || {}), P = /* @__PURE__ */ ((t) => (t.SEARCH = "search", t.TEXT = "text", t.NUMBER = "number", t))(P || {}), je = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.ESCAPE_PRESSED = "escape-pressed", t.UPDATE_DROPDOWN = "update:dropdown", t.DROPDOWN_INPUT = "dropdown-input", t.FOCUS = "focus", t.CHANGE = "change", t.BLUR = "blur", t.KEYDOWN = "keydown", t))(je || {});
|
|
15
16
|
const x = {
|
|
16
17
|
"de-DE": { ariaLabelDropdownFallback: "{inputLabel} Dropdown", ariaLabelFallback: "Eingabefeld" },
|
|
17
18
|
"en-GB": { ariaLabelDropdownFallback: "{inputLabel} Drop-down", ariaLabelFallback: "Input field" },
|
|
@@ -23,23 +24,24 @@ const x = {
|
|
|
23
24
|
"ja-JP": { ariaLabelDropdownFallback: "{inputLabel}ドロップダウン", ariaLabelFallback: "入力フィールド" },
|
|
24
25
|
"pt-BR": { ariaLabelDropdownFallback: "Menu suspenso {inputLabel}", ariaLabelFallback: "Campo de entrada" },
|
|
25
26
|
"zh-CN": { ariaLabelDropdownFallback: "{inputLabel} 下拉菜单", ariaLabelFallback: "输入字段" }
|
|
26
|
-
},
|
|
27
|
+
}, Ke = ["aria-disabled"], We = ["aria-hidden"], Je = ["aria-hidden"], Xe = ["id"], ze = { class: "b-input-field__input-container" }, Ge = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "required", "aria-required", "type", "value", "disabled", "readonly"], Ze = ["aria-hidden"], Qe = ["id"], xe = ["id"], ea = {
|
|
27
28
|
name: "bento-input-field",
|
|
29
|
+
inheritAttrs: !1,
|
|
28
30
|
model: { prop: "modelValue" },
|
|
29
31
|
i18n: { messages: x }
|
|
30
|
-
},
|
|
31
|
-
...
|
|
32
|
+
}, aa = /* @__PURE__ */ Te({
|
|
33
|
+
...ea,
|
|
32
34
|
props: {
|
|
33
35
|
ariaHidden: { type: Boolean, default: !0 },
|
|
34
36
|
ariaLabel: { default: void 0 },
|
|
35
37
|
condensed: { type: Boolean, default: !1 },
|
|
36
38
|
dropdown: { default: void 0 },
|
|
37
|
-
dropdownPosition: { default:
|
|
39
|
+
dropdownPosition: { default: b.START },
|
|
38
40
|
error: { type: Boolean, default: !1 },
|
|
39
41
|
modelValue: { default: void 0 },
|
|
40
42
|
slashedZero: { type: Boolean, default: !1 },
|
|
41
43
|
staticValue: { default: "" },
|
|
42
|
-
staticValuePosition: { default:
|
|
44
|
+
staticValuePosition: { default: b.START },
|
|
43
45
|
type: { default: P.TEXT },
|
|
44
46
|
value: { default: void 0 },
|
|
45
47
|
variant: { default: m.DEFAULT },
|
|
@@ -54,71 +56,84 @@ const x = {
|
|
|
54
56
|
tooltipText: { default: null }
|
|
55
57
|
},
|
|
56
58
|
emits: ["blur", "click", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input", "update:dropdown", "update:model-value"],
|
|
57
|
-
setup(
|
|
58
|
-
const B =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
setup(t, { expose: ee, emit: ae }) {
|
|
60
|
+
const B = Ae(), _ = Ne(), a = t, n = ae, { emitValue: te } = Be(n), { t: $ } = Me({ messages: x }), s = Ue(_), M = k(null), O = k(null), V = h("input"), y = h("input-dropdown"), T = h("input-static-value"), U = h("input-description"), H = h("input-error"), I = k(!1);
|
|
61
|
+
function oe(e) {
|
|
62
|
+
return e["data-testid"] ?? "input-text-container";
|
|
63
|
+
}
|
|
64
|
+
function ie(e) {
|
|
65
|
+
return Object.fromEntries(
|
|
66
|
+
Object.entries(e).filter(([i]) => !i.startsWith("aria-") && i !== "data-testid")
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function le(e) {
|
|
70
|
+
return Object.fromEntries(Object.entries(e).filter(([i]) => i !== "data-testid"));
|
|
71
|
+
}
|
|
72
|
+
Fe(Re, !0);
|
|
73
|
+
const q = J(Se, k(void 0)), re = () => {
|
|
74
|
+
I.value = !0, n("focus");
|
|
75
|
+
}, de = () => {
|
|
76
|
+
I.value = !1, n("blur");
|
|
77
|
+
}, { isReadOnly: w } = Ve(ge(a, "readonly")), Y = l(
|
|
65
78
|
() => w.value || a.dropdown?.readonly
|
|
66
|
-
), N = l(
|
|
67
|
-
() => a.variant === m.STATIC_VALUE && !!_.staticValue
|
|
68
|
-
), ie = l(() => a.variant === m.DEFAULT), de = l(() => a.variant === m.PAYMENT_METHOD), re = l(
|
|
69
|
-
() => N.value && a.staticValuePosition === c.START
|
|
70
|
-
), ne = l(
|
|
71
|
-
() => N.value && a.staticValuePosition === c.END
|
|
72
|
-
), F = l(() => a.variant === m.DROPDOWN && !!a.dropdown), se = l(
|
|
73
|
-
() => F.value && a.dropdownPosition === c.START
|
|
74
|
-
), ue = l(
|
|
75
|
-
() => F.value && a.dropdownPosition === c.END
|
|
76
79
|
), A = l(
|
|
80
|
+
() => a.variant === m.STATIC_VALUE && !!_.staticValue
|
|
81
|
+
), ne = l(() => a.variant === m.DEFAULT), se = l(() => a.variant === m.PAYMENT_METHOD), ue = l(
|
|
82
|
+
() => A.value && a.staticValuePosition === b.START
|
|
83
|
+
), pe = l(
|
|
84
|
+
() => A.value && a.staticValuePosition === b.END
|
|
85
|
+
), N = l(() => a.variant === m.DROPDOWN && !!a.dropdown), fe = l(
|
|
86
|
+
() => N.value && a.dropdownPosition === b.START
|
|
87
|
+
), be = l(
|
|
88
|
+
() => N.value && a.dropdownPosition === b.END
|
|
89
|
+
), F = l(
|
|
77
90
|
() => !a.disabled && !w.value && (!!a.errorMessage || a.error)
|
|
78
|
-
),
|
|
79
|
-
() =>
|
|
80
|
-
),
|
|
81
|
-
|
|
91
|
+
), ce = l(() => Q(_)("default") || a.label), ve = l(() => Q(_)("description") || a.description), me = l(() => N.value === !0 && A.value === !0 ? `${T} ${y}` : N.value === !0 ? `${y}` : A.value === !0 ? `${T}` : null), ye = l(
|
|
92
|
+
() => B?.["aria-labelledby"] ? void 0 : $("ariaLabelFallback")
|
|
93
|
+
), we = l(
|
|
94
|
+
() => $("ariaLabelDropdownFallback", { inputLabel: j.value })
|
|
95
|
+
), De = k(B["aria-label"]), { ariaLabel: ke } = Oe(a), j = $e({
|
|
96
|
+
ariaLabel: De.value,
|
|
82
97
|
// TODO: take this line away when the aria-label props is removed
|
|
83
|
-
label:
|
|
84
|
-
defaultFallback:
|
|
85
|
-
}),
|
|
86
|
-
() => `${
|
|
87
|
-
),
|
|
98
|
+
label: ke,
|
|
99
|
+
defaultFallback: ce.value || ye
|
|
100
|
+
}), Le = l(
|
|
101
|
+
() => `${ve.value ? U : ""} ${F.value && a.errorMessage ? H : ""}`
|
|
102
|
+
), he = l(() => ({
|
|
88
103
|
[`b-input-field--${E.CONDENSED}`]: a.condensed,
|
|
89
104
|
[`b-input-field--${E.DISABLED}`]: a.disabled,
|
|
90
105
|
[`b-input-field--${E.READONLY}`]: w.value,
|
|
91
|
-
[`b-input-field--${E.ERROR}`]:
|
|
106
|
+
[`b-input-field--${E.ERROR}`]: F.value,
|
|
92
107
|
"b-input-field--slashed-zero": a.slashedZero
|
|
93
|
-
})),
|
|
94
|
-
"aria-label":
|
|
108
|
+
})), K = l(() => ({
|
|
109
|
+
"aria-label": we.value,
|
|
95
110
|
...a.dropdown
|
|
96
|
-
})),
|
|
111
|
+
})), Ee = (e) => {
|
|
97
112
|
const i = e.target.value;
|
|
98
|
-
!a.disabled && !w.value &&
|
|
99
|
-
},
|
|
113
|
+
!a.disabled && !w.value && te(i);
|
|
114
|
+
}, W = (e) => {
|
|
100
115
|
n("dropdown-input", e), n("update:dropdown", { ...a?.dropdown, value: e });
|
|
101
116
|
}, D = () => {
|
|
102
|
-
|
|
117
|
+
M.value.focus();
|
|
103
118
|
};
|
|
104
119
|
ee({
|
|
105
120
|
focusInput: D,
|
|
106
121
|
focus: () => {
|
|
107
|
-
a.variant === "dropdown" ?
|
|
122
|
+
a.variant === "dropdown" ? O.value.focus() : D();
|
|
108
123
|
}
|
|
109
124
|
});
|
|
110
|
-
const
|
|
111
|
-
return !Object.values(P).includes(a.type) && !
|
|
125
|
+
const _e = J(Pe, "");
|
|
126
|
+
return !Object.values(P).includes(a.type) && !_e && (a.type === "tel" ? R(
|
|
112
127
|
`"bento-input-field" dropdown does not support the type '${a.type}', use "bento-input-field-phone-number" instead.`
|
|
113
|
-
) : a.type === "password" ?
|
|
128
|
+
) : a.type === "password" ? R(
|
|
114
129
|
`"bento-input-field" dropdown does not support the type '${a.type}', use "bento-input-field-password" instead.`
|
|
115
|
-
) :
|
|
130
|
+
) : R(`"bento-input-field" dropdown does not support the type '${a.type}'`)), a.error && S(
|
|
116
131
|
'BentoInputField "error" property',
|
|
117
132
|
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
118
133
|
Having the field as "undefined" will hide/remove the error.
|
|
119
134
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
120
135
|
"2.0.0"
|
|
121
|
-
), s("defaultIconBefore") &&
|
|
136
|
+
), s("defaultIconBefore") && S(
|
|
122
137
|
'BentoInputField "defaultIconBefore" slot',
|
|
123
138
|
`Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
|
|
124
139
|
<bento-input-field>
|
|
@@ -127,21 +142,21 @@ const x = {
|
|
|
127
142
|
</template>
|
|
128
143
|
</bento-input-field>`,
|
|
129
144
|
"2.0.0"
|
|
130
|
-
), a.value &&
|
|
145
|
+
), a.value && S(
|
|
131
146
|
'BentoInputField "value" property',
|
|
132
147
|
`The use of "value" prop in "BentoInputField" is no longer supported.
|
|
133
148
|
Use the "v-model" or "model-value" property instead.`,
|
|
134
149
|
"2.0.0"
|
|
135
|
-
), (e, i) => (
|
|
136
|
-
|
|
137
|
-
|
|
150
|
+
), (e, i) => (d(), u(o(L), g({ class: "b-input-field" }, ie(e.$attrs), {
|
|
151
|
+
"data-testid": oe(e.$attrs),
|
|
152
|
+
class: he.value,
|
|
138
153
|
el: "div",
|
|
139
154
|
variant: "body"
|
|
140
|
-
}, {
|
|
141
|
-
default:
|
|
142
|
-
|
|
155
|
+
}), {
|
|
156
|
+
default: c(() => [
|
|
157
|
+
o(s)("default") || e.label ? (d(), u(o(He), {
|
|
143
158
|
key: 0,
|
|
144
|
-
for:
|
|
159
|
+
for: o(V),
|
|
145
160
|
"data-testid": "input-field-label",
|
|
146
161
|
"tooltip-text": e.tooltipText,
|
|
147
162
|
optional: e.optional,
|
|
@@ -149,174 +164,174 @@ const x = {
|
|
|
149
164
|
label: e.label,
|
|
150
165
|
onClick: D
|
|
151
166
|
}, {
|
|
152
|
-
default:
|
|
167
|
+
default: c(() => [
|
|
153
168
|
p(e.$slots, "default", {}, void 0, !0)
|
|
154
169
|
]),
|
|
155
170
|
_: 3
|
|
156
|
-
}, 8, ["for", "tooltip-text", "optional", "required", "label"])) :
|
|
157
|
-
|
|
171
|
+
}, 8, ["for", "tooltip-text", "optional", "required", "label"])) : r("", !0),
|
|
172
|
+
C("div", {
|
|
158
173
|
class: "b-input-field__input-box",
|
|
159
174
|
"data-testid": "input-box",
|
|
160
175
|
"aria-disabled": e.disabled,
|
|
161
176
|
onClick: D
|
|
162
177
|
}, [
|
|
163
|
-
|
|
178
|
+
ne.value && (o(s)("defaultIconBefore") || o(s)("iconBefore")) ? (d(), v("span", {
|
|
164
179
|
key: 0,
|
|
165
180
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
166
181
|
class: "b-input-field__icon-before"
|
|
167
182
|
}, [
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
], 8,
|
|
171
|
-
|
|
183
|
+
o(s)("iconBefore") ? p(e.$slots, "iconBefore", { key: 0 }, void 0, !0) : r("", !0),
|
|
184
|
+
o(s)("defaultIconBefore") && !o(s)("iconBefore") ? p(e.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : r("", !0)
|
|
185
|
+
], 8, We)) : r("", !0),
|
|
186
|
+
se.value && o(s)("paymentMethod") ? (d(), v("span", {
|
|
172
187
|
key: 1,
|
|
173
188
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
174
189
|
class: "b-input-field__payment-method"
|
|
175
190
|
}, [
|
|
176
191
|
p(e.$slots, "paymentMethod", {}, void 0, !0)
|
|
177
|
-
], 8,
|
|
178
|
-
|
|
192
|
+
], 8, Je)) : r("", !0),
|
|
193
|
+
fe.value ? (d(), v("div", {
|
|
179
194
|
key: 2,
|
|
180
|
-
id:
|
|
195
|
+
id: o(y),
|
|
181
196
|
class: "b-input-field__dropdown b-input-field__dropdown--start",
|
|
182
|
-
onClick: i[0] || (i[0] =
|
|
197
|
+
onClick: i[0] || (i[0] = X(() => {
|
|
183
198
|
}, ["stop"]))
|
|
184
199
|
}, [
|
|
185
|
-
e.dropdown ? (
|
|
200
|
+
e.dropdown ? (d(), u(o(Z), g({
|
|
186
201
|
key: 0,
|
|
187
202
|
ref_key: "inputDropdownElement",
|
|
188
|
-
ref:
|
|
189
|
-
},
|
|
203
|
+
ref: O
|
|
204
|
+
}, K.value, {
|
|
190
205
|
disabled: e.disabled,
|
|
191
206
|
readonly: Y.value,
|
|
192
|
-
"onUpdate:modelValue":
|
|
193
|
-
}), null, 16, ["disabled", "readonly"])) :
|
|
194
|
-
], 8,
|
|
195
|
-
|
|
207
|
+
"onUpdate:modelValue": W
|
|
208
|
+
}), null, 16, ["disabled", "readonly"])) : r("", !0)
|
|
209
|
+
], 8, Xe)) : r("", !0),
|
|
210
|
+
ue.value ? (d(), u(o(L), {
|
|
196
211
|
key: 3,
|
|
197
|
-
id:
|
|
212
|
+
id: o(T),
|
|
198
213
|
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
199
214
|
el: "span",
|
|
200
215
|
variant: "body"
|
|
201
216
|
}, {
|
|
202
|
-
default:
|
|
217
|
+
default: c(() => [
|
|
203
218
|
p(e.$slots, "staticValue", {}, void 0, !0)
|
|
204
219
|
]),
|
|
205
220
|
_: 3
|
|
206
|
-
}, 8, ["id"])) :
|
|
207
|
-
|
|
208
|
-
|
|
221
|
+
}, 8, ["id"])) : r("", !0),
|
|
222
|
+
C("div", ze, [
|
|
223
|
+
C("input", g({ id: o(V) }, le(e.$attrs), {
|
|
209
224
|
ref_key: "inputFieldElement",
|
|
210
|
-
ref:
|
|
225
|
+
ref: M,
|
|
211
226
|
class: "b-input-field__input",
|
|
212
|
-
"aria-label":
|
|
213
|
-
"aria-describedby":
|
|
214
|
-
"aria-owns":
|
|
215
|
-
"aria-invalid":
|
|
227
|
+
"aria-label": o(j),
|
|
228
|
+
"aria-describedby": Le.value,
|
|
229
|
+
"aria-owns": me.value,
|
|
230
|
+
"aria-invalid": F.value,
|
|
216
231
|
placeholder: e.placeholder,
|
|
217
232
|
required: e.required,
|
|
218
233
|
"aria-required": e.required,
|
|
219
234
|
type: e.type,
|
|
220
235
|
value: e.modelValue ?? e.value,
|
|
221
236
|
disabled: e.disabled,
|
|
222
|
-
readonly:
|
|
223
|
-
onInput:
|
|
237
|
+
readonly: o(w),
|
|
238
|
+
onInput: Ee,
|
|
224
239
|
onChange: i[1] || (i[1] = (f) => n("change")),
|
|
225
|
-
onFocus:
|
|
226
|
-
onBlur:
|
|
240
|
+
onFocus: re,
|
|
241
|
+
onBlur: de,
|
|
227
242
|
onKeydown: [
|
|
228
243
|
i[2] || (i[2] = (f) => n("keydown", f)),
|
|
229
|
-
i[4] || (i[4] =
|
|
244
|
+
i[4] || (i[4] = Ie((f) => n("escape-pressed"), ["esc"]))
|
|
230
245
|
],
|
|
231
246
|
onKeyup: i[3] || (i[3] = (f) => n("keyup", f)),
|
|
232
247
|
onClick: i[5] || (i[5] = (f) => n("click", f))
|
|
233
|
-
}), null, 16,
|
|
234
|
-
|
|
248
|
+
}), null, 16, Ge),
|
|
249
|
+
o(q) && I.value && (e.modelValue || e.value) ? (d(), u(o(L), {
|
|
235
250
|
key: 0,
|
|
236
251
|
el: "span",
|
|
237
252
|
class: "b-input-field__hint"
|
|
238
253
|
}, {
|
|
239
|
-
default:
|
|
240
|
-
|
|
254
|
+
default: c(() => [
|
|
255
|
+
z(G(o(q)), 1)
|
|
241
256
|
]),
|
|
242
257
|
_: 1
|
|
243
|
-
})) :
|
|
258
|
+
})) : r("", !0)
|
|
244
259
|
]),
|
|
245
|
-
|
|
260
|
+
o(s)("iconAfter") ? (d(), v("span", {
|
|
246
261
|
key: 4,
|
|
247
262
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
248
263
|
class: "b-input-field__icon-after",
|
|
249
264
|
"data-testid": "input-text__icon-after"
|
|
250
265
|
}, [
|
|
251
266
|
p(e.$slots, "iconAfter", {}, void 0, !0)
|
|
252
|
-
], 8,
|
|
253
|
-
|
|
267
|
+
], 8, Ze)) : r("", !0),
|
|
268
|
+
pe.value ? (d(), u(o(L), {
|
|
254
269
|
key: 5,
|
|
255
|
-
id:
|
|
270
|
+
id: o(T),
|
|
256
271
|
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
257
272
|
el: "span",
|
|
258
273
|
variant: "body"
|
|
259
274
|
}, {
|
|
260
|
-
default:
|
|
275
|
+
default: c(() => [
|
|
261
276
|
p(e.$slots, "staticValue", {}, void 0, !0)
|
|
262
277
|
]),
|
|
263
278
|
_: 3
|
|
264
|
-
}, 8, ["id"])) :
|
|
265
|
-
|
|
279
|
+
}, 8, ["id"])) : r("", !0),
|
|
280
|
+
be.value ? (d(), v("div", {
|
|
266
281
|
key: 6,
|
|
267
|
-
id:
|
|
282
|
+
id: o(y),
|
|
268
283
|
"data-testid": "input-field-dropdown-container-end",
|
|
269
284
|
class: "b-input-field__dropdown b-input-field__dropdown--end",
|
|
270
|
-
onClick: i[6] || (i[6] =
|
|
285
|
+
onClick: i[6] || (i[6] = X(() => {
|
|
271
286
|
}, ["stop"]))
|
|
272
287
|
}, [
|
|
273
|
-
e.dropdown ? (
|
|
288
|
+
e.dropdown ? (d(), u(o(Z), g({
|
|
274
289
|
key: 0,
|
|
275
|
-
id:
|
|
290
|
+
id: o(y),
|
|
276
291
|
ref_key: "inputDropdownElement",
|
|
277
|
-
ref:
|
|
278
|
-
},
|
|
292
|
+
ref: O
|
|
293
|
+
}, K.value, {
|
|
279
294
|
disabled: e.disabled,
|
|
280
295
|
readonly: Y.value,
|
|
281
|
-
"onUpdate:modelValue":
|
|
282
|
-
}), null, 16, ["id", "disabled", "readonly"])) :
|
|
283
|
-
], 8,
|
|
284
|
-
], 8,
|
|
285
|
-
|
|
296
|
+
"onUpdate:modelValue": W
|
|
297
|
+
}), null, 16, ["id", "disabled", "readonly"])) : r("", !0)
|
|
298
|
+
], 8, Qe)) : r("", !0)
|
|
299
|
+
], 8, Ke),
|
|
300
|
+
F.value && e.errorMessage ? (d(), u(o(qe), {
|
|
286
301
|
key: 1,
|
|
287
|
-
id:
|
|
302
|
+
id: o(H),
|
|
288
303
|
"error-message": e.errorMessage,
|
|
289
304
|
class: "b-input-field__error-message"
|
|
290
|
-
}, null, 8, ["id", "error-message"])) :
|
|
291
|
-
|
|
305
|
+
}, null, 8, ["id", "error-message"])) : r("", !0),
|
|
306
|
+
o(s)("description") || e.description ? (d(), v("span", {
|
|
292
307
|
key: 2,
|
|
293
|
-
id:
|
|
308
|
+
id: o(U),
|
|
294
309
|
class: "b-input-field__description",
|
|
295
310
|
onClick: D
|
|
296
311
|
}, [
|
|
297
|
-
Ce(
|
|
312
|
+
Ce(o(L), {
|
|
298
313
|
el: "span",
|
|
299
314
|
variant: "body"
|
|
300
315
|
}, {
|
|
301
|
-
default:
|
|
316
|
+
default: c(() => [
|
|
302
317
|
p(e.$slots, "description", { id: "description" }, () => [
|
|
303
|
-
|
|
318
|
+
z(G(e.description), 1)
|
|
304
319
|
], !0)
|
|
305
320
|
]),
|
|
306
321
|
_: 3
|
|
307
322
|
})
|
|
308
|
-
], 8,
|
|
323
|
+
], 8, xe)) : r("", !0)
|
|
309
324
|
]),
|
|
310
325
|
_: 3
|
|
311
|
-
},
|
|
326
|
+
}, 16, ["data-testid", "class"]));
|
|
312
327
|
}
|
|
313
|
-
}),
|
|
328
|
+
}), ma = /* @__PURE__ */ Ye(aa, [["__scopeId", "data-v-706f806b"]]);
|
|
314
329
|
export {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
330
|
+
ma as B,
|
|
331
|
+
b as a,
|
|
332
|
+
je as b,
|
|
318
333
|
E as c,
|
|
319
334
|
P as d,
|
|
320
335
|
m as e
|
|
321
336
|
};
|
|
322
|
-
//# sourceMappingURL=input-field.
|
|
337
|
+
//# sourceMappingURL=input-field.FkzBZDWS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-field.FkzBZDWS.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\ntype DropdownProps = BentoDropdownProps;\nexport interface BentoInputDropdownProps {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n /**\n * List of available items\n */\n items: DropdownProps['items'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: DropdownProps['readonly'];\n /**\n * Selected value of the dropdown\n * @deprecated Since v2.0.0. Use `model-value` instead.\n */\n value?: DropdownProps['value'];\n /**\n * Selected value of the dropdown\n */\n modelValue?: DropdownProps['modelValue'];\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 small selectable dropdown menu.\n * Properties supported:\n *\n * - `aria-label`: Text that labels the dropdown element\n * - `dynamicFiltering`: Enables dynamic filtering\n * - `items`: List of available items\n * - `readonly`: Sets the dropdown in read-only mode\n * - `value`: Selected value of the dropdown\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=\"getInputAttributes($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 * Filters out the data-testid attribute for the input element.\n * @param attributes - the live attributes object\n */\n function getInputAttributes(attributes: Record<string, unknown>) {\n return Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'data-testid'));\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","getInputAttributes","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":"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"}
|