@adyen/bento-vue3 1.45.0 → 1.46.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/index.d.ts +4 -2
- package/dist/accordion.js +1 -1
- package/dist/action-bar.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/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{accordion-item.DfOb4Pyx.js → accordion-item.BOftQTUm.js} +8 -8
- package/dist/chunks/{accordion-item.DfOb4Pyx.js.map → accordion-item.BOftQTUm.js.map} +1 -1
- package/dist/chunks/{action-bar.CmDQZkM2.js → action-bar.DHa6nS5J.js} +10 -10
- package/dist/chunks/{action-bar.CmDQZkM2.js.map → action-bar.DHa6nS5J.js.map} +1 -1
- package/dist/chunks/{alert.D1Ax6AnI.js → alert.BffQNg4e.js} +9 -9
- package/dist/chunks/{alert.D1Ax6AnI.js.map → alert.BffQNg4e.js.map} +1 -1
- package/dist/chunks/{avatar.B0-9jC6H.js → avatar.DqdDHXay.js} +3 -3
- package/dist/chunks/{avatar.B0-9jC6H.js.map → avatar.DqdDHXay.js.map} +1 -1
- package/dist/chunks/{base-button.DdNFlbgH.js → base-button.DgHMejMF.js} +9 -9
- package/dist/chunks/{base-button.DdNFlbgH.js.map → base-button.DgHMejMF.js.map} +1 -1
- package/dist/chunks/{base-modal.DbJYaHyG.js → base-modal.BP7bUB84.js} +13 -13
- package/dist/chunks/{base-modal.DbJYaHyG.js.map → base-modal.BP7bUB84.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BUyecZNi.js → button-actions-with-menu.DzQQlXXK.js} +8 -8
- package/dist/chunks/{button-actions-with-menu.BUyecZNi.js.map → button-actions-with-menu.DzQQlXXK.js.map} +1 -1
- package/dist/chunks/{button-actions.CShVMUOC.js → button-actions.C8CJcXxS.js} +8 -8
- package/dist/chunks/{button-actions.CShVMUOC.js.map → button-actions.C8CJcXxS.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.DSnv5X7y.js} +10 -10
- package/dist/chunks/{button.Cneb6rPP.js.map → button.DSnv5X7y.js.map} +1 -1
- package/dist/chunks/{calendar.1qqtC8ba.js → calendar.DlvMzTO4.js} +10 -10
- package/dist/chunks/{calendar.1qqtC8ba.js.map → calendar.DlvMzTO4.js.map} +1 -1
- package/dist/chunks/{card.rkMUtirc.js → card.9fQrkeSH.js} +11 -11
- package/dist/chunks/{card.rkMUtirc.js.map → card.9fQrkeSH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.PTNxE0kL.js → checkbox-group.Dq57AigF.js} +13 -13
- package/dist/chunks/{checkbox-group.PTNxE0kL.js.map → checkbox-group.Dq57AigF.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.D8ZUqd4m.js} +3 -3
- package/dist/chunks/{checkbox-input.CAYgiRHG.js.map → checkbox-input.D8ZUqd4m.js.map} +1 -1
- package/dist/chunks/{checkbox.D9FJcICR.js → checkbox.BphbrpUx.js} +32 -32
- package/dist/chunks/{checkbox.D9FJcICR.js.map → checkbox.BphbrpUx.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.ClIf1E3H.js} +4 -4
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js.map → checkmark-circle-fill.ClIf1E3H.js.map} +1 -1
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.DEc2T64_.js} +5 -5
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js.map → checkmark-small.DEc2T64_.js.map} +1 -1
- package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.NvV5m76j.js} +8 -8
- package/dist/chunks/{chevron-left.CYEK2UTr.js.map → chevron-left.NvV5m76j.js.map} +1 -1
- package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.DQZG_BP3.js} +8 -8
- package/dist/chunks/{chevron-up.Cu9qXgBY.js.map → chevron-up.DQZG_BP3.js.map} +1 -1
- package/dist/chunks/code-snippet.BXMQTve4.js +422 -0
- package/dist/chunks/code-snippet.BXMQTve4.js.map +1 -0
- package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.OjJ-3ixa.js} +5180 -4862
- package/dist/chunks/codemirror.OjJ-3ixa.js.map +1 -0
- package/dist/chunks/{controls-group.BHxcGQ2A.js → controls-group.J99mAGhx.js} +11 -11
- package/dist/chunks/{controls-group.BHxcGQ2A.js.map → controls-group.J99mAGhx.js.map} +1 -1
- package/dist/chunks/{copy.DAMq-zRP.js → copy.CT8wuwho.js} +5 -5
- package/dist/chunks/{copy.DAMq-zRP.js.map → copy.CT8wuwho.js.map} +1 -1
- package/dist/chunks/{country.Cv_8NTmw.js → country.CcTaTBE0.js} +5 -5
- package/dist/chunks/{country.Cv_8NTmw.js.map → country.CcTaTBE0.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.BXO78Wde.js} +5 -5
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js.map → cross-circle-fill-small.BXO78Wde.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.BzSjakuO.js → cross-circle-fill.DN5b3_eL.js} +4 -4
- package/dist/chunks/{cross-circle-fill.BzSjakuO.js.map → cross-circle-fill.DN5b3_eL.js.map} +1 -1
- package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CXWTuKA_.js} +5 -5
- package/dist/chunks/{cross-small.Z5EKYRm0.js.map → cross-small.CXWTuKA_.js.map} +1 -1
- package/dist/chunks/{cross.BZYw4R3N.js → cross.OvPfvoqX.js} +5 -5
- package/dist/chunks/{cross.BZYw4R3N.js.map → cross.OvPfvoqX.js.map} +1 -1
- package/dist/chunks/{currency.DGX-aejv.js → currency.Dz2x17_Q.js} +3 -3
- package/dist/chunks/{currency.DGX-aejv.js.map → currency.Dz2x17_Q.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Buh9mb22.js → dashboard-section.C90L1bhS.js} +6 -6
- package/dist/chunks/{dashboard-section.Buh9mb22.js.map → dashboard-section.C90L1bhS.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DYVSwQtH.js → dashed-underline.BewlZNvL.js} +8 -8
- package/dist/chunks/{dashed-underline.DYVSwQtH.js.map → dashed-underline.BewlZNvL.js.map} +1 -1
- package/dist/chunks/{data-grid-template.B6xmEgaM.js → data-grid-template.DeAeq2Ij.js} +7 -7
- package/dist/chunks/{data-grid-template.B6xmEgaM.js.map → data-grid-template.DeAeq2Ij.js.map} +1 -1
- package/dist/chunks/{data-grid.DVc9qzLU.js → data-grid.DSPcFy6O.js} +31 -31
- package/dist/chunks/{data-grid.DVc9qzLU.js.map → data-grid.DSPcFy6O.js.map} +1 -1
- package/dist/chunks/{date-picker.Bt4fyPQ4.js → date-picker.wNOf4DoV.js} +24 -24
- package/dist/chunks/{date-picker.Bt4fyPQ4.js.map → date-picker.wNOf4DoV.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Bna_2pBL.js → date-range-picker.C4l0Xe9R.js} +275 -275
- package/dist/chunks/{date-range-picker.Bna_2pBL.js.map → date-range-picker.C4l0Xe9R.js.map} +1 -1
- package/dist/chunks/{date.DeaBl297.js → date.DVGj7WKQ.js} +16 -14
- package/dist/chunks/{date.DeaBl297.js.map → date.DVGj7WKQ.js.map} +1 -1
- package/dist/chunks/{dialog-page.CJBSluwk.js → dialog-page.DNwtSB1o.js} +28 -29
- package/dist/chunks/{dialog-page.CJBSluwk.js.map → dialog-page.DNwtSB1o.js.map} +1 -1
- package/dist/chunks/{divider.DwBC4bpr.js → divider.ugNXYI-T.js} +3 -3
- package/dist/chunks/{divider.DwBC4bpr.js.map → divider.ugNXYI-T.js.map} +1 -1
- package/dist/chunks/{dot.cpdFEk6G.js → dot.pQfhaKda.js} +5 -5
- package/dist/chunks/{dot.cpdFEk6G.js.map → dot.pQfhaKda.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js → dropdown-default-textbox.3HzBUxC3.js} +14 -14
- package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js.map → dropdown-default-textbox.3HzBUxC3.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DLyxItIS.js → dropdown-tag.BRNZ7KIi.js} +8 -8
- package/dist/chunks/{dropdown-tag.DLyxItIS.js.map → dropdown-tag.BRNZ7KIi.js.map} +1 -1
- package/dist/chunks/{dropdown.CZDXXpKe.js → dropdown.DhvCTlVl.js} +270 -263
- package/dist/chunks/dropdown.DhvCTlVl.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DYfl7gnt.js} +12 -12
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DYfl7gnt.js.map} +1 -1
- package/dist/chunks/{error-message.BVE3JdTq.js → error-message.C6QpZ9ux.js} +16 -16
- package/dist/chunks/{error-message.BVE3JdTq.js.map → error-message.C6QpZ9ux.js.map} +1 -1
- package/dist/chunks/{es6.jIyAPBgt.js → es6.D11bE5vq.js} +6 -6
- package/dist/chunks/{es6.jIyAPBgt.js.map → es6.D11bE5vq.js.map} +1 -1
- package/dist/chunks/{expand.CJ162RaJ.js → expand.CgwNEbbz.js} +4 -4
- package/dist/chunks/{expand.CJ162RaJ.js.map → expand.CgwNEbbz.js.map} +1 -1
- package/dist/chunks/file-uploader.DiqPKVVt.js +2226 -0
- package/dist/chunks/file-uploader.DiqPKVVt.js.map +1 -0
- package/dist/chunks/{filter-bar.oihCCt5N.js → filter-bar.ChU2rr8r.js} +52 -52
- package/dist/chunks/{filter-bar.oihCCt5N.js.map → filter-bar.ChU2rr8r.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.XaGPUsUO.js → fixed-scroller.C4zzWgje.js} +12 -12
- package/dist/chunks/{fixed-scroller.XaGPUsUO.js.map → fixed-scroller.C4zzWgje.js.map} +1 -1
- package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DOiVbmpZ.js} +8 -8
- package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DOiVbmpZ.js.map} +1 -1
- package/dist/chunks/{footer-actions.n0JIXO4Q.js → footer-actions.Cl2aupkj.js} +8 -8
- package/dist/chunks/{footer-actions.n0JIXO4Q.js.map → footer-actions.Cl2aupkj.js.map} +1 -1
- package/dist/chunks/{form-layout-title.srkVLEUW.js → form-layout-title.Du4aY15F.js} +4 -4
- package/dist/chunks/{form-layout-title.srkVLEUW.js.map → form-layout-title.Du4aY15F.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.D-HFI38h.js} +2 -2
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.D-HFI38h.js.map} +1 -1
- package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.CqLbbEzI.js} +21 -21
- package/dist/chunks/{grid-layout.BTLE3rac.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
- package/dist/chunks/{header.CAHXObTT.js → header.CUyEq2ER.js} +65 -65
- package/dist/chunks/{header.CAHXObTT.js.map → header.CUyEq2ER.js.map} +1 -1
- package/dist/chunks/{i18n.WMYWtwxB.js → i18n.CPGoe9tN.js} +540 -540
- package/dist/chunks/{i18n.WMYWtwxB.js.map → i18n.CPGoe9tN.js.map} +1 -1
- package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js} +3 -3
- package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map} +1 -1
- package/dist/chunks/{index.BMkVmbZj.js → index.BHiMheJx.js} +5 -5
- package/dist/chunks/{index.BMkVmbZj.js.map → index.BHiMheJx.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js → info-icon-with-popover._ZiXaIcp.js} +11 -11
- package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js.map → info-icon-with-popover._ZiXaIcp.js.map} +1 -1
- package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.B6QPdxPi.js} +5 -5
- package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.B6QPdxPi.js.map} +1 -1
- package/dist/chunks/{info.DYNe2WnZ.js → info.CIFBUqf-.js} +4 -4
- package/dist/chunks/{info.DYNe2WnZ.js.map → info.CIFBUqf-.js.map} +1 -1
- package/dist/chunks/{input-field-password.DedPkZxg.js → input-field-password.LVaJy8_K.js} +30 -30
- package/dist/chunks/{input-field-password.DedPkZxg.js.map → input-field-password.LVaJy8_K.js.map} +1 -1
- package/dist/chunks/{input-field.3PUv6XC3.js → input-field.BVewQng_.js} +124 -115
- package/dist/chunks/input-field.BVewQng_.js.map +1 -0
- package/dist/chunks/{inspector.types.Dr0D250X.js → inspector.types.DKL2_Mku.js} +14 -14
- package/dist/chunks/{inspector.types.Dr0D250X.js.map → inspector.types.DKL2_Mku.js.map} +1 -1
- package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.CwYDJeG_.js} +4 -4
- package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.CwYDJeG_.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.DHXLGTkn.js} +11 -11
- package/dist/chunks/{link.ClFi8uSm.js.map → link.DHXLGTkn.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.zYn_kSFz.js → listbox-option-tag.DsI3DdjJ.js} +9 -9
- package/dist/chunks/{listbox-option-tag.zYn_kSFz.js.map → listbox-option-tag.DsI3DdjJ.js.map} +1 -1
- package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.N_WV9Gwz.js} +3 -3
- package/dist/chunks/{loading-indicator.DEepb9Wl.js.map → loading-indicator.N_WV9Gwz.js.map} +1 -1
- package/dist/chunks/{menu.Dmzh3Uat.js → menu.C5Y5nSvX.js} +13 -13
- package/dist/chunks/{menu.Dmzh3Uat.js.map → menu.C5Y5nSvX.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BazQAAU1.js → modal-fullscreen.Bw0CzdjS.js} +12 -12
- package/dist/chunks/{modal-fullscreen.BazQAAU1.js.map → modal-fullscreen.Bw0CzdjS.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js → modal.vue_vue_type_script_setup_true_lang.B-_oGtsE.js} +13 -13
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js.map → modal.vue_vue_type_script_setup_true_lang.B-_oGtsE.js.map} +1 -1
- package/dist/chunks/{pagination.BCC3GZV5.js → pagination.OzqU46-J.js} +11 -11
- package/dist/chunks/{pagination.BCC3GZV5.js.map → pagination.OzqU46-J.js.map} +1 -1
- package/dist/chunks/{payment-method.2IeC7f4x.js → payment-method.Lwl-3chY.js} +3 -3
- package/dist/chunks/{payment-method.2IeC7f4x.js.map → payment-method.Lwl-3chY.js.map} +1 -1
- package/dist/chunks/{popover.3KG1IoYE.js → popover.BFZU1OKv.js} +7 -7
- package/dist/chunks/{popover.3KG1IoYE.js.map → popover.BFZU1OKv.js.map} +1 -1
- package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.CQblHdJf.js} +4 -4
- package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.CQblHdJf.js.map} +1 -1
- package/dist/chunks/{promo-banner.BjLfDhBq.js → promo-banner.DB6C9Tgr.js} +12 -12
- package/dist/chunks/{promo-banner.BjLfDhBq.js.map → promo-banner.DB6C9Tgr.js.map} +1 -1
- package/dist/chunks/{radio-group.CeiSaH6M.js → radio-group.DVPnBI92.js} +8 -8
- package/dist/chunks/{radio-group.CeiSaH6M.js.map → radio-group.DVPnBI92.js.map} +1 -1
- package/dist/chunks/{radio-input.0TPahhZT.js → radio-input.ButaAWTD.js} +5 -5
- package/dist/chunks/{radio-input.0TPahhZT.js.map → radio-input.ButaAWTD.js.map} +1 -1
- package/dist/chunks/{refresh.SzRxQ44W.js → refresh.DvQeGwUF.js} +5 -5
- package/dist/chunks/{refresh.SzRxQ44W.js.map → refresh.DvQeGwUF.js.map} +1 -1
- package/dist/chunks/{search-bar.BZDJJtWB.js → search-bar.CPOGuVqp.js} +8 -8
- package/dist/chunks/{search-bar.BZDJJtWB.js.map → search-bar.CPOGuVqp.js.map} +1 -1
- package/dist/chunks/{search.KgjmJMHa.js → search.EnLryD8V.js} +4 -4
- package/dist/chunks/{search.KgjmJMHa.js.map → search.EnLryD8V.js.map} +1 -1
- package/dist/chunks/{secondary-nav.qm-rh-r6.js → secondary-nav.B1zTf8Ls.js} +11 -11
- package/dist/chunks/{secondary-nav.qm-rh-r6.js.map → secondary-nav.B1zTf8Ls.js.map} +1 -1
- package/dist/chunks/{segmented-control.BIwBQ8i3.js → segmented-control.DV9mJM7g.js} +9 -9
- package/dist/chunks/{segmented-control.BIwBQ8i3.js.map → segmented-control.DV9mJM7g.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DPGh4nwl.js → selection-card-group.z0SNFpjN.js} +17 -17
- package/dist/chunks/{selection-card-group.DPGh4nwl.js.map → selection-card-group.z0SNFpjN.js.map} +1 -1
- package/dist/chunks/{show.J9zXGWlK.js → show.ChPQTrAT.js} +6 -6
- package/dist/chunks/{show.J9zXGWlK.js.map → show.ChPQTrAT.js.map} +1 -1
- package/dist/chunks/{sidepanel.DxSdFwm1.js → sidepanel.B-YKxXQA.js} +12 -12
- package/dist/chunks/{sidepanel.DxSdFwm1.js.map → sidepanel.B-YKxXQA.js.map} +1 -1
- package/dist/chunks/{status.types.Dil95sGx.js → status.types.Bh_mGknA.js} +6 -6
- package/dist/chunks/{status.types.Dil95sGx.js.map → status.types.Bh_mGknA.js.map} +1 -1
- package/dist/chunks/{step.DAB8h_4u.js → step.CGHc2hFZ.js} +7 -7
- package/dist/chunks/{step.DAB8h_4u.js.map → step.CGHc2hFZ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DpI6jzfM.js → structured-list-item.DNP6fkCb.js} +9 -9
- package/dist/chunks/{structured-list-item.DpI6jzfM.js.map → structured-list-item.DNP6fkCb.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js → summary-grid-item-custom.Dm2rULoZ.js} +7 -7
- package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js.map → summary-grid-item-custom.Dm2rULoZ.js.map} +1 -1
- package/dist/chunks/{tabs.B5-PZCxc.js → tabs.BXuDJsCU.js} +5 -5
- package/dist/chunks/{tabs.B5-PZCxc.js.map → tabs.BXuDJsCU.js.map} +1 -1
- package/dist/chunks/{tag.BuUbvgok.js → tag.bo9YuJ9f.js} +5 -5
- package/dist/chunks/{tag.BuUbvgok.js.map → tag.bo9YuJ9f.js.map} +1 -1
- package/dist/chunks/{teleport.B1NhF5-O.js → teleport.B255JhsV.js} +4 -4
- package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.B255JhsV.js.map} +1 -1
- package/dist/chunks/{textarea.CCr8inwI.js → textarea.FlyFaC5n.js} +8 -8
- package/dist/chunks/{textarea.CCr8inwI.js.map → textarea.FlyFaC5n.js.map} +1 -1
- package/dist/chunks/{timeline-item.DG9YaOiC.js → timeline-item.DYgnYAx0.js} +38 -38
- package/dist/chunks/{timeline-item.DG9YaOiC.js.map → timeline-item.DYgnYAx0.js.map} +1 -1
- package/dist/chunks/{toast.CVy2sf_5.js → toast.Cp-osZLV.js} +22 -22
- package/dist/chunks/{toast.CVy2sf_5.js.map → toast.Cp-osZLV.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.BABftVnA.js} +4 -4
- package/dist/chunks/{toggle-button.CCgvi7TQ.js.map → toggle-button.BABftVnA.js.map} +1 -1
- package/dist/chunks/{toggle.Dl82VpiQ.js → toggle.Bme9eaeR.js} +5 -5
- package/dist/chunks/{toggle.Dl82VpiQ.js.map → toggle.Bme9eaeR.js.map} +1 -1
- package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.Ch4_ew27.js} +9 -9
- package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.Ch4_ew27.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js → tutorial.vue_vue_type_script_setup_true_lang.hNv57lCE.js} +33 -33
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js.map → tutorial.vue_vue_type_script_setup_true_lang.hNv57lCE.js.map} +1 -1
- package/dist/chunks/{typography.DN5eC5ch.js → typography.DNzU41ah.js} +3 -4
- package/dist/chunks/{typography.DN5eC5ch.js.map → typography.DNzU41ah.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.C2wUDcoc.js} +3 -3
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.C2wUDcoc.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js → use-cached-selected-values.CvdhdRHz.js} +15 -15
- package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js.map → use-cached-selected-values.CvdhdRHz.js.map} +1 -1
- package/dist/chunks/{use-country-items.DnPo3yxj.js → use-country-items.D4T1eUtC.js} +2 -2
- package/dist/chunks/{use-country-items.DnPo3yxj.js.map → use-country-items.D4T1eUtC.js.map} +1 -1
- package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.OUOUbA6k.js} +5 -5
- package/dist/chunks/{warning-filled.tTkVob0l.js.map → warning-filled.OUOUbA6k.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.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/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/image.js +1 -1
- package/dist/index.js +170 -170
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +14 -14
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +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/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +6 -5
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -4
- package/dist/chunks/code-snippet.volJxGqR.js +0 -392
- package/dist/chunks/code-snippet.volJxGqR.js.map +0 -1
- package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
- package/dist/chunks/dropdown.CZDXXpKe.js.map +0 -1
- package/dist/chunks/file-uploader.BXHt0PWz.js +0 -1077
- package/dist/chunks/file-uploader.BXHt0PWz.js.map +0 -1
- package/dist/chunks/input-field.3PUv6XC3.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as Se, I as Te, B as
|
|
3
|
-
import { p as
|
|
4
|
-
import { g
|
|
1
|
+
import { defineComponent as ce, useAttrs as fe, useSlots as be, ref as h, provide as ve, inject as ye, toRef as me, computed as o, toRefs as we, openBlock as r, createBlock as p, unref as t, normalizeClass as De, withCtx as v, renderSlot as c, createCommentVNode as i, createElementVNode as R, createElementBlock as y, withModifiers as j, mergeProps as I, withKeys as he, createTextVNode as Ee, toDisplayString as ge, createVNode as ke } from "vue";
|
|
2
|
+
import { a as Se, I as Te, B as K } from "./dropdown.DhvCTlVl.js";
|
|
3
|
+
import { p as _e, d as W, B as E } from "./typography.DNzU41ah.js";
|
|
4
|
+
import { g } from "./generate-uid.D-HFI38h.js";
|
|
5
5
|
import { g as Ae } from "./get-slot-text.D5WBGjic.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { F as
|
|
11
|
-
import { _ as
|
|
6
|
+
import { u as Ne } from "./aria-label.CaUURpnB.js";
|
|
7
|
+
import { u as Le } from "./i18n.CPGoe9tN.js";
|
|
8
|
+
import { u as Oe } from "./use-form-layout-loading.D3lALhtC.js";
|
|
9
|
+
import { u as Re } from "./use-has-slot.B7eQSabc.js";
|
|
10
|
+
import { F as Ie, E as Pe } from "./error-message.C6QpZ9ux.js";
|
|
11
|
+
import { _ as Be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
12
12
|
import "../assets/input-field.css";
|
|
13
|
-
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), u = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(u || {}),
|
|
14
|
-
const
|
|
13
|
+
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), u = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(u || {}), k = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(k || {}), P = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(P || {}), $e = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))($e || {});
|
|
14
|
+
const q = {
|
|
15
15
|
"en-US": {
|
|
16
16
|
ariaLabelFallback: "Input field",
|
|
17
17
|
ariaLabelDropdownFallback: "{inputLabel} Dropdown"
|
|
18
18
|
}
|
|
19
|
-
},
|
|
20
|
-
i18n: { messages:
|
|
21
|
-
},
|
|
22
|
-
...
|
|
19
|
+
}, Ce = ["aria-disabled"], Me = ["aria-hidden"], Ue = ["aria-hidden"], Ve = ["id"], Fe = { class: "b-input-field__input-container" }, He = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], xe = ["aria-hidden"], Ye = ["id"], je = ["id"], Ke = {
|
|
20
|
+
i18n: { messages: q }
|
|
21
|
+
}, We = /* @__PURE__ */ ce({
|
|
22
|
+
...Ke,
|
|
23
23
|
__name: "input-field",
|
|
24
24
|
props: {
|
|
25
25
|
/**
|
|
@@ -113,7 +113,7 @@ const W = {
|
|
|
113
113
|
*/
|
|
114
114
|
type: {
|
|
115
115
|
type: String,
|
|
116
|
-
default:
|
|
116
|
+
default: P.TEXT
|
|
117
117
|
},
|
|
118
118
|
/**
|
|
119
119
|
* Text displayed as the value of the input-field
|
|
@@ -129,59 +129,62 @@ const W = {
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input"],
|
|
132
|
-
setup(e, { expose:
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
}, { isReadOnly: b } =
|
|
132
|
+
setup(e, { expose: J, emit: X }) {
|
|
133
|
+
const B = fe(), N = be(), a = e, s = X, { t: $ } = Le({ messages: q }), l = Re(N), C = h(null), L = h(null), M = g("input"), m = g("input-dropdown"), S = g("input-static-value"), U = g("input-description"), V = g("input-error"), O = h(!1);
|
|
134
|
+
ve(Se, !0);
|
|
135
|
+
const F = ye(Te, h(void 0)), z = () => {
|
|
136
|
+
O.value = !0, s("focus");
|
|
137
|
+
}, G = () => {
|
|
138
|
+
O.value = !1, s("blur");
|
|
139
|
+
}, { isReadOnly: b } = Oe(me(a, "readonly")), T = o(
|
|
140
140
|
() => a.variant === f.STATIC_VALUE && !!N.staticValue
|
|
141
|
-
),
|
|
142
|
-
() =>
|
|
143
|
-
),
|
|
144
|
-
() =>
|
|
145
|
-
),
|
|
146
|
-
() =>
|
|
147
|
-
),
|
|
148
|
-
() =>
|
|
149
|
-
),
|
|
141
|
+
), Q = o(() => a.variant === f.DEFAULT), Z = o(() => a.variant === f.PAYMENT_METHOD), ee = o(
|
|
142
|
+
() => T.value && a.staticValuePosition === u.START
|
|
143
|
+
), te = o(
|
|
144
|
+
() => T.value && a.staticValuePosition === u.END
|
|
145
|
+
), _ = o(() => a.variant === f.DROPDOWN && !!a.dropdown), ae = o(
|
|
146
|
+
() => _.value && a.dropdownPosition === u.START
|
|
147
|
+
), oe = o(
|
|
148
|
+
() => _.value && a.dropdownPosition === u.END
|
|
149
|
+
), A = o(
|
|
150
150
|
() => !a.disabled && !b.value && (!!a.errorMessage || a.error)
|
|
151
|
-
),
|
|
152
|
-
() =>
|
|
153
|
-
),
|
|
154
|
-
ariaLabel:
|
|
151
|
+
), ie = o(() => _.value === !0 && T.value === !0 ? `${S} ${m}` : _.value === !0 ? `${m}` : T.value === !0 ? `${S}` : null), de = o(() => $("ariaLabelFallback")), re = o(
|
|
152
|
+
() => $("ariaLabelDropdownFallback", { inputLabel: H.value })
|
|
153
|
+
), ne = h(B["aria-label"]), { ariaLabel: le } = we(a), H = Ne({
|
|
154
|
+
ariaLabel: ne.value,
|
|
155
155
|
// TODO: take this line away when the aria-label props is removed
|
|
156
|
-
label:
|
|
157
|
-
defaultFallback: l("default") ? Ae(N)("default") :
|
|
158
|
-
}),
|
|
159
|
-
() => `${l("description") ?
|
|
160
|
-
),
|
|
161
|
-
[`b-input-field--${
|
|
162
|
-
[`b-input-field--${
|
|
163
|
-
[`b-input-field--${
|
|
164
|
-
[`b-input-field--${
|
|
165
|
-
})),
|
|
166
|
-
"aria-label":
|
|
156
|
+
label: le,
|
|
157
|
+
defaultFallback: l("default") ? Ae(N)("default") : de
|
|
158
|
+
}), se = o(
|
|
159
|
+
() => `${l("description") ? U : ""} ${A.value && a.errorMessage ? V : ""}`
|
|
160
|
+
), ue = o(() => ({
|
|
161
|
+
[`b-input-field--${k.CONDENSED}`]: a.condensed,
|
|
162
|
+
[`b-input-field--${k.DISABLED}`]: a.disabled,
|
|
163
|
+
[`b-input-field--${k.READONLY}`]: b.value,
|
|
164
|
+
[`b-input-field--${k.ERROR}`]: A.value
|
|
165
|
+
})), x = o(() => ({
|
|
166
|
+
"aria-label": re.value,
|
|
167
167
|
...a.dropdown
|
|
168
|
-
})),
|
|
168
|
+
})), pe = (n) => {
|
|
169
169
|
const d = n.target.value;
|
|
170
170
|
!a.disabled && !b.value && s("input", d);
|
|
171
|
-
},
|
|
171
|
+
}, Y = (n) => {
|
|
172
172
|
s("dropdown-input", n), s("update:dropdown", { ...a == null ? void 0 : a.dropdown, value: n });
|
|
173
|
-
},
|
|
174
|
-
|
|
173
|
+
}, w = () => {
|
|
174
|
+
C.value.focus();
|
|
175
175
|
};
|
|
176
|
-
return
|
|
177
|
-
focusInput:
|
|
178
|
-
|
|
176
|
+
return J({
|
|
177
|
+
focusInput: w,
|
|
178
|
+
focus: () => {
|
|
179
|
+
a.variant === "dropdown" ? L.value.focus() : w();
|
|
180
|
+
}
|
|
181
|
+
}), Object.values(P).includes(a.type) || _e(`"bento-input-field" dropdown does not support the type ${a.type}`), a.error && W(
|
|
179
182
|
'BentoInputField "error" property',
|
|
180
183
|
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
181
184
|
Having the field as "undefined" will hide/remove the error.
|
|
182
185
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
183
186
|
"2.0.0"
|
|
184
|
-
), l("defaultIconBefore") &&
|
|
187
|
+
), l("defaultIconBefore") && W(
|
|
185
188
|
'BentoInputField "defaultIconBefore" slot',
|
|
186
189
|
`Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
|
|
187
190
|
<bento-input-field>
|
|
@@ -190,64 +193,68 @@ const W = {
|
|
|
190
193
|
</template>
|
|
191
194
|
</bento-input-field>`,
|
|
192
195
|
"2.0.0"
|
|
193
|
-
), (n, d) => (r(), p(t(
|
|
194
|
-
class:
|
|
196
|
+
), (n, d) => (r(), p(t(E), {
|
|
197
|
+
class: De(["b-input-field", ue.value]),
|
|
195
198
|
"data-testid": "input-text-container",
|
|
196
199
|
el: "div",
|
|
197
200
|
variant: "body"
|
|
198
201
|
}, {
|
|
199
202
|
default: v(() => [
|
|
200
|
-
t(l)("default") ? (r(), p(t(
|
|
203
|
+
t(l)("default") ? (r(), p(t(Ie), {
|
|
201
204
|
key: 0,
|
|
202
|
-
for: t(
|
|
205
|
+
for: t(M),
|
|
203
206
|
"data-testid": "input-field-label",
|
|
204
207
|
"tooltip-text": e.tooltipText,
|
|
205
208
|
optional: e.optional,
|
|
206
209
|
required: e.required,
|
|
207
|
-
onClick:
|
|
210
|
+
onClick: w
|
|
208
211
|
}, {
|
|
209
212
|
default: v(() => [
|
|
210
213
|
c(n.$slots, "default", {}, void 0, !0)
|
|
211
214
|
]),
|
|
212
215
|
_: 3
|
|
213
216
|
}, 8, ["for", "tooltip-text", "optional", "required"])) : i("", !0),
|
|
214
|
-
|
|
217
|
+
R("div", {
|
|
215
218
|
class: "b-input-field__input-box",
|
|
216
219
|
"data-testid": "input-box",
|
|
217
220
|
"aria-disabled": e.disabled,
|
|
218
|
-
onClick:
|
|
221
|
+
onClick: w
|
|
219
222
|
}, [
|
|
220
|
-
|
|
223
|
+
Q.value && (t(l)("defaultIconBefore") || t(l)("iconBefore")) ? (r(), y("span", {
|
|
221
224
|
key: 0,
|
|
222
225
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
223
226
|
class: "b-input-field__icon-before"
|
|
224
227
|
}, [
|
|
225
228
|
t(l)("iconBefore") ? c(n.$slots, "iconBefore", { key: 0 }, void 0, !0) : i("", !0),
|
|
226
229
|
t(l)("defaultIconBefore") && !t(l)("iconBefore") ? c(n.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : i("", !0)
|
|
227
|
-
], 8,
|
|
228
|
-
|
|
230
|
+
], 8, Me)) : i("", !0),
|
|
231
|
+
Z.value && t(l)("paymentMethod") ? (r(), y("span", {
|
|
229
232
|
key: 1,
|
|
230
233
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
231
234
|
class: "b-input-field__payment-method"
|
|
232
235
|
}, [
|
|
233
236
|
c(n.$slots, "paymentMethod", {}, void 0, !0)
|
|
234
|
-
], 8,
|
|
235
|
-
|
|
237
|
+
], 8, Ue)) : i("", !0),
|
|
238
|
+
ae.value ? (r(), y("div", {
|
|
236
239
|
key: 2,
|
|
237
240
|
id: t(m),
|
|
238
241
|
class: "b-input-field__dropdown b-input-field__dropdown--start",
|
|
239
|
-
onClick: d[0] || (d[0] =
|
|
242
|
+
onClick: d[0] || (d[0] = j(() => {
|
|
240
243
|
}, ["stop"]))
|
|
241
244
|
}, [
|
|
242
|
-
e.dropdown ? (r(), p(t(
|
|
245
|
+
e.dropdown ? (r(), p(t(K), I({
|
|
246
|
+
key: 0,
|
|
247
|
+
ref_key: "inputDropdownElement",
|
|
248
|
+
ref: L
|
|
249
|
+
}, x.value, {
|
|
243
250
|
disabled: e.disabled,
|
|
244
251
|
readonly: t(b),
|
|
245
|
-
onInput:
|
|
252
|
+
onInput: Y
|
|
246
253
|
}), null, 16, ["disabled", "readonly"])) : i("", !0)
|
|
247
|
-
], 8,
|
|
248
|
-
|
|
254
|
+
], 8, Ve)) : i("", !0),
|
|
255
|
+
ee.value ? (r(), p(t(E), {
|
|
249
256
|
key: 3,
|
|
250
|
-
id: t(
|
|
257
|
+
id: t(S),
|
|
251
258
|
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
252
259
|
el: "span",
|
|
253
260
|
variant: "body"
|
|
@@ -257,37 +264,37 @@ const W = {
|
|
|
257
264
|
]),
|
|
258
265
|
_: 3
|
|
259
266
|
}, 8, ["id"])) : i("", !0),
|
|
260
|
-
|
|
261
|
-
|
|
267
|
+
R("div", Fe, [
|
|
268
|
+
R("input", I({ id: t(M) }, t(B), {
|
|
262
269
|
ref_key: "inputFieldElement",
|
|
263
|
-
ref:
|
|
270
|
+
ref: C,
|
|
264
271
|
class: "b-input-field__input",
|
|
265
|
-
"aria-label": t(
|
|
266
|
-
"aria-describedby":
|
|
267
|
-
"aria-owns":
|
|
268
|
-
"aria-invalid":
|
|
272
|
+
"aria-label": t(H),
|
|
273
|
+
"aria-describedby": se.value,
|
|
274
|
+
"aria-owns": ie.value,
|
|
275
|
+
"aria-invalid": A.value,
|
|
269
276
|
placeholder: e.placeholder,
|
|
270
277
|
type: e.type,
|
|
271
278
|
value: e.value,
|
|
272
279
|
disabled: e.disabled,
|
|
273
280
|
readonly: t(b),
|
|
274
|
-
onInput:
|
|
275
|
-
onChange: d[1] || (d[1] = (
|
|
276
|
-
onFocus:
|
|
277
|
-
onBlur:
|
|
281
|
+
onInput: pe,
|
|
282
|
+
onChange: d[1] || (d[1] = (D) => s("change")),
|
|
283
|
+
onFocus: z,
|
|
284
|
+
onBlur: G,
|
|
278
285
|
onKeydown: [
|
|
279
|
-
d[2] || (d[2] = (
|
|
280
|
-
d[4] || (d[4] =
|
|
286
|
+
d[2] || (d[2] = (D) => s("keydown", D)),
|
|
287
|
+
d[4] || (d[4] = he((D) => s("escape-pressed"), ["esc"]))
|
|
281
288
|
],
|
|
282
|
-
onKeyup: d[3] || (d[3] = (
|
|
283
|
-
}), null, 16,
|
|
284
|
-
t(
|
|
289
|
+
onKeyup: d[3] || (d[3] = (D) => s("keyup", D))
|
|
290
|
+
}), null, 16, He),
|
|
291
|
+
t(F) && O.value && e.value ? (r(), p(t(E), {
|
|
285
292
|
key: 0,
|
|
286
293
|
el: "span",
|
|
287
294
|
class: "b-input-field__hint"
|
|
288
295
|
}, {
|
|
289
296
|
default: v(() => [
|
|
290
|
-
|
|
297
|
+
Ee(ge(t(F)), 1)
|
|
291
298
|
]),
|
|
292
299
|
_: 1
|
|
293
300
|
})) : i("", !0)
|
|
@@ -299,10 +306,10 @@ const W = {
|
|
|
299
306
|
"data-testid": "input-text__icon-after"
|
|
300
307
|
}, [
|
|
301
308
|
c(n.$slots, "iconAfter", {}, void 0, !0)
|
|
302
|
-
], 8,
|
|
303
|
-
|
|
309
|
+
], 8, xe)) : i("", !0),
|
|
310
|
+
te.value ? (r(), p(t(E), {
|
|
304
311
|
key: 5,
|
|
305
|
-
id: t(
|
|
312
|
+
id: t(S),
|
|
306
313
|
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
307
314
|
el: "span",
|
|
308
315
|
variant: "body"
|
|
@@ -312,37 +319,39 @@ const W = {
|
|
|
312
319
|
]),
|
|
313
320
|
_: 3
|
|
314
321
|
}, 8, ["id"])) : i("", !0),
|
|
315
|
-
|
|
322
|
+
oe.value ? (r(), y("div", {
|
|
316
323
|
key: 6,
|
|
317
324
|
id: t(m),
|
|
318
325
|
"data-testid": "input-field-dropdown-container-end",
|
|
319
326
|
class: "b-input-field__dropdown b-input-field__dropdown--end",
|
|
320
|
-
onClick: d[5] || (d[5] =
|
|
327
|
+
onClick: d[5] || (d[5] = j(() => {
|
|
321
328
|
}, ["stop"]))
|
|
322
329
|
}, [
|
|
323
|
-
e.dropdown ? (r(), p(t(
|
|
330
|
+
e.dropdown ? (r(), p(t(K), I({
|
|
324
331
|
key: 0,
|
|
325
|
-
id: t(m)
|
|
326
|
-
|
|
332
|
+
id: t(m),
|
|
333
|
+
ref_key: "inputDropdownElement",
|
|
334
|
+
ref: L
|
|
335
|
+
}, x.value, {
|
|
327
336
|
disabled: e.disabled,
|
|
328
337
|
readonly: t(b),
|
|
329
|
-
onInput:
|
|
338
|
+
onInput: Y
|
|
330
339
|
}), null, 16, ["id", "disabled", "readonly"])) : i("", !0)
|
|
331
|
-
], 8,
|
|
332
|
-
], 8,
|
|
333
|
-
|
|
340
|
+
], 8, Ye)) : i("", !0)
|
|
341
|
+
], 8, Ce),
|
|
342
|
+
A.value && e.errorMessage ? (r(), p(t(Pe), {
|
|
334
343
|
key: 1,
|
|
335
|
-
id: t(
|
|
344
|
+
id: t(V),
|
|
336
345
|
"error-message": e.errorMessage,
|
|
337
346
|
class: "b-input-field__error-message"
|
|
338
347
|
}, null, 8, ["id", "error-message"])) : i("", !0),
|
|
339
348
|
t(l)("description") ? (r(), y("span", {
|
|
340
349
|
key: 2,
|
|
341
|
-
id: t(
|
|
350
|
+
id: t(U),
|
|
342
351
|
class: "b-input-field__description",
|
|
343
|
-
onClick:
|
|
352
|
+
onClick: w
|
|
344
353
|
}, [
|
|
345
|
-
|
|
354
|
+
ke(t(E), {
|
|
346
355
|
el: "span",
|
|
347
356
|
variant: "body"
|
|
348
357
|
}, {
|
|
@@ -351,18 +360,18 @@ const W = {
|
|
|
351
360
|
]),
|
|
352
361
|
_: 3
|
|
353
362
|
})
|
|
354
|
-
], 8,
|
|
363
|
+
], 8, je)) : i("", !0)
|
|
355
364
|
]),
|
|
356
365
|
_: 3
|
|
357
366
|
}, 8, ["class"]));
|
|
358
367
|
}
|
|
359
|
-
}),
|
|
368
|
+
}), dt = /* @__PURE__ */ Be(We, [["__scopeId", "data-v-5733da28"]]);
|
|
360
369
|
export {
|
|
361
|
-
|
|
370
|
+
dt as B,
|
|
362
371
|
f as a,
|
|
363
372
|
u as b,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
373
|
+
k as c,
|
|
374
|
+
P as d,
|
|
375
|
+
$e as e
|
|
367
376
|
};
|
|
368
|
-
//# sourceMappingURL=input-field.
|
|
377
|
+
//# sourceMappingURL=input-field.BVewQng_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-field.BVewQng_.js","sources":["../../../vue2/src/components/input-field/input-field.types.ts","../../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value: DropdownProps['value'];\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n 'aria-label'?: string;\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n\n <!-- Hint at the end -->\n <bento-typography v-if=\"hint && isFocused && value\" el=\"span\" class=\"b-input-field__hint\">\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, provide, Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden: { type: Boolean, default: true },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Reduces height of the input\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n * - `aria-label`: Text that labels the dropdown element\n *\n */\n dropdown: {\n type: Object as PropType<BentoInputDropdownProps>,\n default: undefined,\n },\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error: { type: Boolean, default: false },\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue: { type: String, default: '' },\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\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: {\n type: String as PropType<BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type']>,\n default: BentoInputFieldType.TEXT,\n },\n\n /**\n * Text displayed as the value of the input-field\n */\n value: { type: [String, Number] as PropType<BentoInputFieldValue>, default: undefined },\n\n /**\n * Describes the different variants for the input element\n */\n variant: {\n type: String as PropType<BentoInputFieldVariant | `${BentoInputFieldVariant}`>,\n default: BentoInputFieldVariant.DEFAULT,\n validator: (value: BentoInputFieldVariant) => Object.values(BentoInputFieldVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\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 element has lost focus\n */\n (e: 'blur'): void;\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 */\n (e: 'input', inputValue: string): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emit('input', inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType)) {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type ${props.type}`);\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","props","__props","emit","__emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","__expose","printDevelopmentWarning","deprecate"],"mappings":"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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as k, ref as E, computed as h,
|
|
2
|
-
import { B as F } from "./typography.
|
|
3
|
-
import { B } from "./button.
|
|
4
|
-
import { B as L } from "./focus-trap.
|
|
5
|
-
import { B as N } from "./loading-indicator.
|
|
6
|
-
import { E as O } from "./expand.
|
|
7
|
-
import { C as S } from "./cross.
|
|
8
|
-
import { g as V } from "./generate-uid.
|
|
9
|
-
import { u as w } from "./i18n.
|
|
1
|
+
import { defineComponent as k, ref as E, computed as h, openBlock as i, createElementBlock as _, normalizeClass as I, createElementVNode as s, renderSlot as u, createVNode as o, Transition as T, withCtx as n, unref as e, createTextVNode as $, toDisplayString as z, createBlock as f, createCommentVNode as v } from "vue";
|
|
2
|
+
import { B as F } from "./typography.DNzU41ah.js";
|
|
3
|
+
import { B } from "./button.DSnv5X7y.js";
|
|
4
|
+
import { B as L } from "./focus-trap.DOiVbmpZ.js";
|
|
5
|
+
import { B as N } from "./loading-indicator.N_WV9Gwz.js";
|
|
6
|
+
import { E as O } from "./expand.CgwNEbbz.js";
|
|
7
|
+
import { C as S } from "./cross.OvPfvoqX.js";
|
|
8
|
+
import { g as V } from "./generate-uid.D-HFI38h.js";
|
|
9
|
+
import { u as w } from "./i18n.CPGoe9tN.js";
|
|
10
10
|
import { _ as U } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
11
11
|
import "../assets/inspector.css";
|
|
12
12
|
const b = {
|
|
@@ -75,7 +75,7 @@ const b = {
|
|
|
75
75
|
_: 1
|
|
76
76
|
}, 8, ["id"]),
|
|
77
77
|
s("div", P, [
|
|
78
|
-
t.expandable ? (i(),
|
|
78
|
+
t.expandable ? (i(), f(e(B), {
|
|
79
79
|
key: 0,
|
|
80
80
|
variant: "tertiary",
|
|
81
81
|
onClick: a[0] || (a[0] = (C) => l("expand"))
|
|
@@ -86,7 +86,7 @@ const b = {
|
|
|
86
86
|
}, null, 8, ["svg-title"])
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
|
-
})) :
|
|
89
|
+
})) : v("", !0),
|
|
90
90
|
o(e(B), {
|
|
91
91
|
variant: "tertiary",
|
|
92
92
|
onClick: a[1] || (a[1] = (C) => l("update:is-open", !1))
|
|
@@ -101,7 +101,7 @@ const b = {
|
|
|
101
101
|
])
|
|
102
102
|
]),
|
|
103
103
|
s("div", R, [
|
|
104
|
-
t.loading ? (i(),
|
|
104
|
+
t.loading ? (i(), f(e(N), {
|
|
105
105
|
key: 0,
|
|
106
106
|
large: "",
|
|
107
107
|
class: "b-inspector__loading-indicator"
|
|
@@ -110,7 +110,7 @@ const b = {
|
|
|
110
110
|
]),
|
|
111
111
|
_: 3
|
|
112
112
|
})
|
|
113
|
-
], 8, D)) :
|
|
113
|
+
], 8, D)) : v("", !0)
|
|
114
114
|
]),
|
|
115
115
|
_: 3
|
|
116
116
|
})
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
se as B,
|
|
122
122
|
oe as i
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=inspector.types.
|
|
124
|
+
//# sourceMappingURL=inspector.types.DKL2_Mku.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.types.
|
|
1
|
+
{"version":3,"file":"inspector.types.DKL2_Mku.js","sources":["../../../vue2/src/components/inspector/inspector.vue","../../../vue2/src/components/inspector/inspector.types.ts"],"sourcesContent":["<template>\n <div class=\"b-inspector\" :class=\"conditionalClass\">\n <div class=\"b-inspector__page-wrapper\">\n <div class=\"b-inspector__page\">\n <slot name=\"page\" />\n </div>\n </div>\n <Transition name=\"b-inspector__animation\" mode=\"out-in\" @before-enter=\"setFocus\" @after-leave=\"setFocus\">\n <aside v-if=\"isOpen\" class=\"b-inspector__container-wrapper\" :aria-labelledby=\"titleId\">\n <bento-focus-trap class=\"b-inspector__container\">\n <div class=\"b-inspector__header\">\n <bento-typography :id=\"titleId\" el=\"h2\" variant=\"title\" class=\"b-inspector__title\">\n {{ title }}\n </bento-typography>\n <div class=\"b-inspector__icons\">\n <bento-button v-if=\"expandable\" variant=\"tertiary\" @click=\"emit('expand')\">\n <template #iconLeft><expand-icon :svg-title=\"t('expand')\"></expand-icon></template>\n </bento-button>\n <bento-button variant=\"tertiary\" @click=\"emit('update:is-open', false)\">\n <template #iconLeft><cross-icon :svg-title=\"t('close')\"></cross-icon></template>\n </bento-button>\n </div>\n </div>\n <div class=\"b-inspector__content\">\n <bento-loading-indicator v-if=\"loading\" large class=\"b-inspector__loading-indicator\" />\n <slot v-else name=\"content\" />\n </div>\n </bento-focus-trap>\n </aside>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import ExpandIcon from '@adyen/ui-assets-icons-16/vue/expand';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoInspectorSize } from './inspector.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(\n defineProps<{\n /**\n * Shows the Expand icon in the inspector\n */\n expandable?: boolean;\n /**\n * Opens and closes the inspector\n */\n isOpen?: boolean;\n\n /**\n * Shows loading indicator for the content\n */\n loading?: boolean;\n\n /**\n * Determines the size of the inspector\n */\n size?: BentoInspectorSize;\n\n /**\n * The title of the component\n */\n title: string;\n }>(),\n {\n expandable: false,\n isOpen: false,\n loading: false,\n size: 'small',\n }\n );\n\n const emit = defineEmits<{\n /**\n * Emits update to keep isOpen prop in sync\n */\n (e: 'update:is-open', value: boolean): void;\n /**\n * Emits event when user click expand button\n */\n (e: 'expand'): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const titleId = generateUid('inspectorTitle');\n const lastFocusedElement = ref<HTMLElement>(null);\n\n const conditionalClass = computed(() => ({\n [`b-inspector--${props.size}`]: true,\n }));\n\n const setFocus = () => {\n if (props.isOpen) {\n lastFocusedElement.value = document.activeElement as HTMLElement;\n } else {\n // This doesn't work with data grid cell actions, as the button gets destroyed once is not being hovered.\n // To be reviewed after LevelAccess revision\n lastFocusedElement.value?.focus();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Inspector allows users to access additional information or details of an object/item. The inspector opens adjacent to the main content, pushing it aside to maintain visibility and accessibility to both the main content and inspector.\n *\n * @example\n * import { BentoInspector } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInspector },\n * template: `\n * <bento-inspector\n * title=\"Inspector\"\n * size=\"large\"\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * >\n * <template #page>Content of the page</template>\n * <template #content>Content of the inspector</template>\n * </bento-inspector>\n * `\n * }\n */\n export default { i18n: { messages } };\n</script>\n\n<style lang=\"scss\" scoped src=\"./inspector.scss\" />\n","export const BentoInspectorSizeOptions = ['small', 'large'] as const;\n\nexport type BentoInspectorSize = (typeof BentoInspectorSizeOptions)[number];\n"],"names":["__default__","messages","props","__props","emit","__emit","t","useI18n","titleId","generateUid","lastFocusedElement","ref","conditionalClass","computed","setFocus","_a","BentoInspectorSizeOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;8NAsIIA,IAAA,EAAA,MAAA,EAAA,UAAAC,EAAA,EAAA;;;;;;;;;;;;AAtFA,UAAAC,IAAAC,GAkCAC,IAAAC,GAWA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAN,EAAA,CAAA,GACAO,IAAAC,EAAA,gBAAA,GACAC,IAAAC,EAAA,IAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAAyC,CAAA,gBAAAX,EAAA,IAAA,EAAA,GAAA;AAAA,IACL,EAAA,GAGpCY,IAAA,MAAA;;AACI,MAAAZ,EAAA,SACIQ,EAAA,QAAA,SAAA,iBAIAK,IAAAL,EAAA,UAAA,QAAAK,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEC5GKC,KAAA,CAAA,SAAA,OAAA;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as $, provide as T, toRef as g, computed as l,
|
|
1
|
+
import { defineComponent as $, provide as T, toRef as g, computed as l, openBlock as d, createBlock as E, resolveDynamicComponent as N, unref as u, normalizeClass as c, withCtx as z, renderSlot as m, useSlots as O, inject as x, ref as i, watch as M, nextTick as V, onMounted as j, createElementBlock as k, createElementVNode as L, createCommentVNode as P } from "vue";
|
|
2
2
|
import { _ as B } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
-
import { B as W } from "./typography.
|
|
3
|
+
import { B as W } from "./typography.DNzU41ah.js";
|
|
4
4
|
import { u as Y } from "./use-has-slot.B7eQSabc.js";
|
|
5
|
-
import { d as A } from "./index.
|
|
5
|
+
import { d as A } from "./index.BHiMheJx.js";
|
|
6
6
|
import "../assets/layout-row.css";
|
|
7
7
|
const I = Symbol("Layout size inject key"), D = {}, F = /* @__PURE__ */ $({
|
|
8
8
|
...D,
|
|
@@ -97,4 +97,4 @@ export {
|
|
|
97
97
|
eo as a,
|
|
98
98
|
oo as l
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=layout-row.
|
|
100
|
+
//# sourceMappingURL=layout-row.CwYDJeG_.js.map
|