@adyen/bento-vue3 1.89.2 → 1.91.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 +4 -0
- package/dist/@types/index.d.ts +767 -522
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.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/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.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.css +1 -1
- package/dist/assets/input-time.css +1 -0
- 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/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/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.BPS3wPde.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
- package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
- package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
- package/dist/chunks/card.BEChcEqg.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- 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.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
- package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
- package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
- package/dist/chunks/date-picker.CidHad1p.js +269 -0
- package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.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/chunks/draggable-handle.CySRx1tb.js +171 -0
- package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
- package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
- package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
- package/dist/chunks/field-label.DZYFjFgr.js +111 -0
- package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
- package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
- package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
- package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
- package/dist/chunks/input-field.DkUFvIWt.js +326 -0
- package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
- package/dist/chunks/input-time.WI_qdwJc.js +122 -0
- package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.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.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
- package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
- package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
- package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.JGXAlpx9.js +257 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
- package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
- package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.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/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- 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 +284 -279
- 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-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +26 -25
- package/dist/internal.js.map +1 -1
- package/dist/list.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/popover.js +1 -1
- package/dist/promo-banner.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/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- 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/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -10
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
- package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
- package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
- package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
- package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
- package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
- package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
- package/dist/draggable-handle.js +0 -155
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { defineComponent as fe, useAttrs as be, ref as n, provide as he, computed as u, watch as B, openBlock as s, createElementBlock as E, createVNode as I, unref as i, mergeProps as ke, createSlots as ge, withCtx as d, Fragment as G, createTextVNode as C, toDisplayString as k, renderSlot as j, createElementVNode as S, createBlock as c, normalizeClass as J, createCommentVNode as v, renderList as _e } from "vue";
|
|
2
|
-
import { B as ye } from "./button.DWF7FSIw.js";
|
|
3
|
-
import { _ as we } from "./image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js";
|
|
4
|
-
import { B as Ee } from "./input-field.CfU0ZKtL.js";
|
|
5
|
-
import { h as Ce } from "./button-actions.cMQWyZne.js";
|
|
6
|
-
import { d as Re, B as H } from "./typography.B3J6_tYk.js";
|
|
7
|
-
import { C as Le } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
8
|
-
import { D as Ve } from "./dot.DBmwmOUN.js";
|
|
9
|
-
import { S as Te, H as Oe } from "./show.BreRPkgL.js";
|
|
10
|
-
import { e as Ie, w as Se } from "./index.DDwcHPb6.js";
|
|
11
|
-
import { u as Ue } from "./index.B875RXHM.js";
|
|
12
|
-
import { g as Y } from "./generate-uid.DBWe4g6T.js";
|
|
13
|
-
import { u as Pe } from "./form-field.D_2g7vaP.js";
|
|
14
|
-
import { b as Ae } from "./dropdown.MhmX1P9o.js";
|
|
15
|
-
import { T as Ne } from "./tooltip.CbADa_4p.js";
|
|
16
|
-
import { _ as qe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
17
|
-
import "../assets/input-field-password.css";
|
|
18
|
-
var R = /* @__PURE__ */ ((t) => (t.TEXT = "text", t.PASSWORD = "password", t))(R || {}), g = /* @__PURE__ */ ((t) => (t.MIN_LENGTH = "minLength", t.REQUIRE_LOWERCASE = "requireLowercase", t.REQUIRE_NUMERIC = "requireNumeric", t.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", t.REQUIRE_UPPERCASE = "requireUppercase", t))(g || {});
|
|
19
|
-
const Me = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
20
|
-
function L(t) {
|
|
21
|
-
return t?.toString() ?? "";
|
|
22
|
-
}
|
|
23
|
-
function Be(t, U = 12) {
|
|
24
|
-
return L(t).length >= U;
|
|
25
|
-
}
|
|
26
|
-
function He(t) {
|
|
27
|
-
return /[a-z]/.test(L(t));
|
|
28
|
-
}
|
|
29
|
-
function Fe(t) {
|
|
30
|
-
return /[A-Z]/.test(L(t));
|
|
31
|
-
}
|
|
32
|
-
function De(t) {
|
|
33
|
-
return /\d/.test(L(t));
|
|
34
|
-
}
|
|
35
|
-
function We(t) {
|
|
36
|
-
return /[^a-zA-Z0-9]/.test(L(t));
|
|
37
|
-
}
|
|
38
|
-
const ee = {
|
|
39
|
-
"en-US": { capsLockEnabled: "Caps lock on", hidePassword: "Hide", showPassword: "Show", validationChecked: "Checked", validationMinLength: "{numberOfCharacters} characters", validationRequireLowercase: "{numberOne} lowercase (a-z)", validationRequireNumeric: "{numberOne} numerical (0-9)", validationRequireSpecialCharacter: "{numberOne} special character", validationRequireUppercase: "{numberOne} uppercase (A-Z)", validationSuggestion: "Avoid using currency symbols or accented letters.", validationTitle: "Password must contain at least:", validationUnchecked: "Unchecked", validationValid: "Input is valid" },
|
|
40
|
-
"ja-JP": { capsLockEnabled: "Caps lockオン", hidePassword: "非表示", showPassword: "表示", validationChecked: "チェック済み", validationMinLength: "{numberOfCharacters}文字", validationRequireLowercase: "{numberOne} 小文字(a-z)", validationRequireNumeric: "{numberOne} 数値 (0-9)", validationRequireSpecialCharacter: "{numberOne} 特殊文字", validationRequireUppercase: "{numberOne} 大文字 (A-Z)", validationSuggestion: "通貨記号やアクセント付き文字は使用しないでください。", validationTitle: "パスワードには少なくとも次のものを含める必要があります :", validationUnchecked: "チェックなし", validationValid: "入力は有効です" },
|
|
41
|
-
"pt-BR": { capsLockEnabled: "Caps Lock ativado", hidePassword: "ocultar", showPassword: "Exibir", validationChecked: "Checado", validationMinLength: "{numberOfCharacters} caracteres", validationRequireLowercase: "{numberOne} minúscula (a-z)", validationRequireNumeric: "{numberOne} numérico (0-9)", validationRequireSpecialCharacter: "{numberOne} caractere especial", validationRequireUppercase: "{numberOne} maiúscula (A-Z)", validationSuggestion: "Evite usar símbolos de moeda e letras com acento.", validationTitle: "A senha deve conter pelo menos:", validationUnchecked: "Não verificado", validationValid: "A entrada é válida" }
|
|
42
|
-
}, xe = ["id"], Qe = {
|
|
43
|
-
key: 1,
|
|
44
|
-
class: "b-input-field-password__validation-status--valid",
|
|
45
|
-
role: "alert"
|
|
46
|
-
}, Ze = ["id"], ze = { class: "b-input-field-password__validation-list-icon" }, Ke = 12, Xe = 500, $e = 2e3, Ge = 2e3, je = {
|
|
47
|
-
i18n: { messages: ee },
|
|
48
|
-
name: "bento-input-field-password",
|
|
49
|
-
model: { prop: "modelValue" }
|
|
50
|
-
}, Je = /* @__PURE__ */ fe({
|
|
51
|
-
...je,
|
|
52
|
-
props: {
|
|
53
|
-
condensed: { type: Boolean, default: !1 },
|
|
54
|
-
debounceTime: { default: Xe },
|
|
55
|
-
disableValidation: { type: Boolean, default: !1 },
|
|
56
|
-
value: { default: void 0 },
|
|
57
|
-
modelValue: { default: void 0 },
|
|
58
|
-
validation: { default: void 0 },
|
|
59
|
-
withHint: { type: Boolean, default: !0 },
|
|
60
|
-
description: { default: null },
|
|
61
|
-
disabled: { type: Boolean, default: !1 },
|
|
62
|
-
errorMessage: { default: null },
|
|
63
|
-
label: { default: null },
|
|
64
|
-
optional: { type: Boolean, default: !1 },
|
|
65
|
-
placeholder: { default: "" },
|
|
66
|
-
readonly: { type: Boolean, default: !1 },
|
|
67
|
-
required: { type: Boolean, default: !1 },
|
|
68
|
-
tooltipText: { default: null }
|
|
69
|
-
},
|
|
70
|
-
emits: ["blur", "focus", "input:valid", "input:error", "input", "update:model-value"],
|
|
71
|
-
setup(t, { emit: U }) {
|
|
72
|
-
const { t: o, n: _ } = Ue({ messages: ee }), a = t, y = U, ae = be(), V = n(R.PASSWORD), m = n(a.modelValue ?? a.value), F = n(!1), te = n(!1), T = n([]), D = n({}), f = n(null), b = n(!1), W = n(null), P = n(null), A = n(null), N = n(!1);
|
|
73
|
-
he(Ae, "bento-input-field-password");
|
|
74
|
-
const { focused: ie } = Ie(W), { emitValue: le } = Pe(y), x = Y("validationListId"), Q = Y("validationPopoverId"), q = u(() => V.value === R.TEXT), oe = u(
|
|
75
|
-
() => T.value.map(
|
|
76
|
-
(e) => e ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
|
|
77
|
-
)
|
|
78
|
-
), se = u(
|
|
79
|
-
() => f.value ? "b-input-field-password__input-tooltip--timed" : ""
|
|
80
|
-
), ne = u(() => ({
|
|
81
|
-
ariaHidden: !1,
|
|
82
|
-
condensed: a.condensed,
|
|
83
|
-
disabled: a.disabled,
|
|
84
|
-
errorMessage: a.errorMessage,
|
|
85
|
-
optional: a.optional,
|
|
86
|
-
placeholder: a.placeholder,
|
|
87
|
-
readonly: a.readonly,
|
|
88
|
-
required: a.required,
|
|
89
|
-
tooltipText: a.tooltipText,
|
|
90
|
-
type: V.value,
|
|
91
|
-
modelValue: m.value,
|
|
92
|
-
"aria-haspopup": M.value ? "dialog" : !1,
|
|
93
|
-
"aria-describedby": M.value ? Q : "",
|
|
94
|
-
...ae
|
|
95
|
-
})), p = u(() => {
|
|
96
|
-
if (a.validation && !a.validation.extendDefaultValidation)
|
|
97
|
-
return a.validation;
|
|
98
|
-
const e = [
|
|
99
|
-
{
|
|
100
|
-
label: o("validationMinLength", { numberOfCharacters: _(Ke) }),
|
|
101
|
-
key: g.MIN_LENGTH,
|
|
102
|
-
validate: Be
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: o("validationRequireLowercase", { numberOne: _(1) }),
|
|
106
|
-
key: g.REQUIRE_LOWERCASE,
|
|
107
|
-
validate: He
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
label: o("validationRequireUppercase", { numberOne: _(1) }),
|
|
111
|
-
key: g.REQUIRE_UPPERCASE,
|
|
112
|
-
validate: Fe
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: o("validationRequireNumeric", { numberOne: _(1) }),
|
|
116
|
-
key: g.REQUIRE_NUMERIC,
|
|
117
|
-
validate: De
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
label: o("validationRequireSpecialCharacter", { numberOne: _(1) }),
|
|
121
|
-
key: g.REQUIRE_SPECIAL_CHARACTER,
|
|
122
|
-
validate: We
|
|
123
|
-
}
|
|
124
|
-
];
|
|
125
|
-
let h = e;
|
|
126
|
-
if (a.validation) {
|
|
127
|
-
const w = e.map((r) => r.key), l = a.validation?.list?.map((r) => r.key), O = a.validation?.list?.filter((r) => !w.includes(r.key)) ?? [];
|
|
128
|
-
h = [...e.map((r) => l?.includes(r.key) ? a.validation?.list?.find((me) => me.key === r.key) : r), ...O];
|
|
129
|
-
}
|
|
130
|
-
return {
|
|
131
|
-
title: a.validation?.title ?? o("validationTitle"),
|
|
132
|
-
suggestion: a.validation?.suggestion ?? o("validationSuggestion"),
|
|
133
|
-
list: h
|
|
134
|
-
};
|
|
135
|
-
}), Z = u(() => p.value?.list?.filter((e) => !e.disabled)), z = u(() => T.value?.some((e) => !e)), M = u(
|
|
136
|
-
() => P.value && p.value?.list?.length > 0
|
|
137
|
-
), K = (e) => {
|
|
138
|
-
typeof e.getModifierState == "function" && (N.value = e.getModifierState("CapsLock"));
|
|
139
|
-
}, re = () => {
|
|
140
|
-
q.value ? V.value = R.PASSWORD : V.value = R.TEXT;
|
|
141
|
-
}, de = (e) => {
|
|
142
|
-
a.disabled || (m.value = e, le(m.value));
|
|
143
|
-
}, ue = () => {
|
|
144
|
-
y("focus");
|
|
145
|
-
}, ce = () => {
|
|
146
|
-
y("blur");
|
|
147
|
-
}, X = (e) => {
|
|
148
|
-
const h = Z.value?.map((l) => ({
|
|
149
|
-
key: l.key,
|
|
150
|
-
label: l.label,
|
|
151
|
-
isValid: l.validate(e, ...l.additionalArgs ?? [])
|
|
152
|
-
}));
|
|
153
|
-
let w = 1;
|
|
154
|
-
T.value = h?.map((l) => l.isValid), D.value = h?.filter((l) => !l.isValid).reduce((l, O) => {
|
|
155
|
-
const $ = O.key ?? `custom-rule-${w++}`;
|
|
156
|
-
return {
|
|
157
|
-
...l,
|
|
158
|
-
[$]: O.label
|
|
159
|
-
};
|
|
160
|
-
}, {});
|
|
161
|
-
}, pe = () => {
|
|
162
|
-
b.value = !1, f.value = null;
|
|
163
|
-
}, ve = () => {
|
|
164
|
-
b.value = !0;
|
|
165
|
-
};
|
|
166
|
-
return B(
|
|
167
|
-
() => [a.value, a.modelValue],
|
|
168
|
-
() => {
|
|
169
|
-
m.value = a.modelValue ?? a.value;
|
|
170
|
-
}
|
|
171
|
-
), B(ie, (e) => {
|
|
172
|
-
e || (te.value = !0), a.disableValidation || (a.withHint && (F.value = e), X(m.value));
|
|
173
|
-
}), B(N, (e) => {
|
|
174
|
-
e ? (b.value = !0, f.value = setTimeout(() => {
|
|
175
|
-
f.value = null, b.value = !1;
|
|
176
|
-
}, Ge)) : (clearTimeout(f.value), f.value = null, b.value = !1);
|
|
177
|
-
}), Se(
|
|
178
|
-
m,
|
|
179
|
-
(e) => {
|
|
180
|
-
X(e), z.value ? y("input:error", D.value) : y("input:valid");
|
|
181
|
-
},
|
|
182
|
-
// wait for 0.5s before checking validity OR 2s of continuous typing
|
|
183
|
-
{ debounce: a.debounceTime, maxWait: $e }
|
|
184
|
-
), a.value && Re(
|
|
185
|
-
'BentoInputFieldPassword "value" property',
|
|
186
|
-
`The use of "value" prop in "BentoInputFieldPassword" is no longer supported.
|
|
187
|
-
Use the "v-model" or "model-value" property instead.`,
|
|
188
|
-
"2.0.0"
|
|
189
|
-
), (e, h) => (s(), E("div", {
|
|
190
|
-
ref_key: "inputFieldPasswordRef",
|
|
191
|
-
ref: W
|
|
192
|
-
}, [
|
|
193
|
-
I(i(Ee), ke({
|
|
194
|
-
ref_key: "inputFieldPasswordInputRef",
|
|
195
|
-
ref: P
|
|
196
|
-
}, ne.value, {
|
|
197
|
-
class: "b-input-field-password__input",
|
|
198
|
-
spellcheck: "false",
|
|
199
|
-
onBlur: ce,
|
|
200
|
-
onFocus: ue,
|
|
201
|
-
"onUpdate:modelValue": de,
|
|
202
|
-
onKeydown: K,
|
|
203
|
-
onKeyup: K
|
|
204
|
-
}), ge({
|
|
205
|
-
default: d(() => [
|
|
206
|
-
e.label ? (s(), E(G, { key: 0 }, [
|
|
207
|
-
C(k(e.label), 1)
|
|
208
|
-
], 64)) : j(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
209
|
-
]),
|
|
210
|
-
_: 2
|
|
211
|
-
}, [
|
|
212
|
-
e.description ? {
|
|
213
|
-
name: "description",
|
|
214
|
-
fn: d(() => [
|
|
215
|
-
j(e.$slots, "description", {}, () => [
|
|
216
|
-
C(k(e.description), 1)
|
|
217
|
-
], !0)
|
|
218
|
-
]),
|
|
219
|
-
key: "0"
|
|
220
|
-
} : void 0,
|
|
221
|
-
N.value ? {
|
|
222
|
-
name: "iconBefore",
|
|
223
|
-
fn: d(() => [
|
|
224
|
-
S("div", {
|
|
225
|
-
class: "b-input-field-password__caps-lock-indicator",
|
|
226
|
-
onMouseenter: ve,
|
|
227
|
-
onMouseleave: pe
|
|
228
|
-
}, [
|
|
229
|
-
I(i(we), {
|
|
230
|
-
ref_key: "inputFieldPasswordCapsLockIconRef",
|
|
231
|
-
ref: A,
|
|
232
|
-
src: i(Me),
|
|
233
|
-
alt: i(o)("capsLockEnabled")
|
|
234
|
-
}, null, 8, ["src", "alt"])
|
|
235
|
-
], 32),
|
|
236
|
-
A.value ? (s(), c(i(Ne), {
|
|
237
|
-
key: 0,
|
|
238
|
-
class: J(se.value),
|
|
239
|
-
content: i(o)("capsLockEnabled"),
|
|
240
|
-
"disabled-focus-trap": !0,
|
|
241
|
-
"fallback-position": ["top", "bottom"],
|
|
242
|
-
"is-shown": b.value,
|
|
243
|
-
"target-element": A.value
|
|
244
|
-
}, null, 8, ["class", "content", "is-shown", "target-element"])) : v("", !0)
|
|
245
|
-
]),
|
|
246
|
-
key: "1"
|
|
247
|
-
} : void 0,
|
|
248
|
-
e.disabled ? void 0 : {
|
|
249
|
-
name: "iconAfter",
|
|
250
|
-
fn: d(() => [
|
|
251
|
-
I(i(ye), {
|
|
252
|
-
variant: "tertiary",
|
|
253
|
-
onClick: re
|
|
254
|
-
}, {
|
|
255
|
-
iconLeft: d(() => [
|
|
256
|
-
q.value ? v("", !0) : (s(), c(i(Te), {
|
|
257
|
-
key: 0,
|
|
258
|
-
"svg-title": i(o)("showPassword")
|
|
259
|
-
}, null, 8, ["svg-title"])),
|
|
260
|
-
q.value ? (s(), c(i(Oe), {
|
|
261
|
-
key: 1,
|
|
262
|
-
"svg-title": i(o)("hidePassword")
|
|
263
|
-
}, null, 8, ["svg-title"])) : v("", !0)
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
})
|
|
267
|
-
]),
|
|
268
|
-
key: "2"
|
|
269
|
-
}
|
|
270
|
-
]), 1040),
|
|
271
|
-
M.value ? (s(), c(i(Ce), {
|
|
272
|
-
key: 0,
|
|
273
|
-
open: F.value,
|
|
274
|
-
"target-element": P.value,
|
|
275
|
-
"disable-focus-trap": !0,
|
|
276
|
-
"aria-label": p.value.title,
|
|
277
|
-
"aria-describedby": i(x),
|
|
278
|
-
position: "right-start"
|
|
279
|
-
}, {
|
|
280
|
-
default: d(() => [
|
|
281
|
-
S("div", { id: i(Q) }, [
|
|
282
|
-
p.value.title ? (s(), c(i(H), {
|
|
283
|
-
key: 0,
|
|
284
|
-
class: "b-input-field-password__validation-title"
|
|
285
|
-
}, {
|
|
286
|
-
default: d(() => [
|
|
287
|
-
C(k(p.value.title), 1)
|
|
288
|
-
]),
|
|
289
|
-
_: 1
|
|
290
|
-
})) : v("", !0),
|
|
291
|
-
z.value ? v("", !0) : (s(), E("p", Qe, k(i(o)("validationValid")), 1)),
|
|
292
|
-
S("ul", {
|
|
293
|
-
id: i(x),
|
|
294
|
-
class: "b-input-field-password__validation-list"
|
|
295
|
-
}, [
|
|
296
|
-
(s(!0), E(G, null, _e(Z.value, (w, l) => (s(), E("li", {
|
|
297
|
-
key: l,
|
|
298
|
-
class: J(oe.value[l]),
|
|
299
|
-
"aria-live": "polite",
|
|
300
|
-
"aria-atomic": "true"
|
|
301
|
-
}, [
|
|
302
|
-
S("span", ze, [
|
|
303
|
-
T.value[l] ? (s(), c(i(Le), {
|
|
304
|
-
key: 0,
|
|
305
|
-
"svg-title": i(o)("validationChecked")
|
|
306
|
-
}, null, 8, ["svg-title"])) : (s(), c(i(Ve), {
|
|
307
|
-
key: 1,
|
|
308
|
-
"svg-title": i(o)("validationUnchecked")
|
|
309
|
-
}, null, 8, ["svg-title"]))
|
|
310
|
-
]),
|
|
311
|
-
I(i(H), {
|
|
312
|
-
class: "b-input-field-password__validation-list-text",
|
|
313
|
-
el: "span"
|
|
314
|
-
}, {
|
|
315
|
-
default: d(() => [
|
|
316
|
-
C(k(w.label), 1)
|
|
317
|
-
]),
|
|
318
|
-
_: 2
|
|
319
|
-
}, 1024)
|
|
320
|
-
], 2))), 128))
|
|
321
|
-
], 8, Ze),
|
|
322
|
-
p.value.suggestion ? (s(), c(i(H), {
|
|
323
|
-
key: 2,
|
|
324
|
-
class: "b-input-field-password__validation-suggestion"
|
|
325
|
-
}, {
|
|
326
|
-
default: d(() => [
|
|
327
|
-
C(k(p.value.suggestion), 1)
|
|
328
|
-
]),
|
|
329
|
-
_: 1
|
|
330
|
-
})) : v("", !0)
|
|
331
|
-
], 8, xe)
|
|
332
|
-
]),
|
|
333
|
-
_: 1
|
|
334
|
-
}, 8, ["open", "target-element", "aria-label", "aria-describedby"])) : v("", !0)
|
|
335
|
-
], 512));
|
|
336
|
-
}
|
|
337
|
-
}), ba = /* @__PURE__ */ qe(Je, [["__scopeId", "data-v-e079f788"]]);
|
|
338
|
-
export {
|
|
339
|
-
De as a,
|
|
340
|
-
We as b,
|
|
341
|
-
Fe as c,
|
|
342
|
-
ba as i,
|
|
343
|
-
Be as m,
|
|
344
|
-
He as r
|
|
345
|
-
};
|
|
346
|
-
//# sourceMappingURL=input-field-password.DZytmp_p.js.map
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _e, useAttrs as ke, useSlots as Te, ref as h, provide as Ne, inject as j, toRef as Ae, computed as d, toRefs as Le, openBlock as l, createBlock as u, unref as t, normalizeClass as ge, withCtx as b, renderSlot as p, createCommentVNode as r, createElementVNode as I, createElementBlock as v, withModifiers as z, mergeProps as P, withKeys as Oe, createTextVNode as X, toDisplayString as Z, createVNode as Se } from "vue";
|
|
2
|
-
import { a as Ie, I as Pe, b as Re, B as G } from "./dropdown.MhmX1P9o.js";
|
|
3
|
-
import { p as R, d as B, B as E } from "./typography.B3J6_tYk.js";
|
|
4
|
-
import { u as Be } from "./form-field.D_2g7vaP.js";
|
|
5
|
-
import { g as _ } from "./generate-uid.DBWe4g6T.js";
|
|
6
|
-
import { g as Q } from "./get-slot-text.8Fbl1GOr.js";
|
|
7
|
-
import { u as Ce } from "./aria-label.CaUURpnB.js";
|
|
8
|
-
import { u as Fe } from "./index.B875RXHM.js";
|
|
9
|
-
import { u as Ve } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
10
|
-
import { u as $e } from "./use-has-slot.CyMiImRQ.js";
|
|
11
|
-
import { F as Me, E as Ue } from "./error-message.DCgo8q20.js";
|
|
12
|
-
import { _ as He } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
13
|
-
import "../assets/input-field.css";
|
|
14
|
-
var m = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.PAYMENT_METHOD = "payment-method", a.STATIC_VALUE = "static-value", a.DROPDOWN = "dropdown", a))(m || {}), c = /* @__PURE__ */ ((a) => (a.START = "start", a.END = "end", a))(c || {}), k = /* @__PURE__ */ ((a) => (a.CONDENSED = "condensed", a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a))(k || {}), C = /* @__PURE__ */ ((a) => (a.SEARCH = "search", a.TEXT = "text", a.NUMBER = "number", a))(C || {}), qe = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.ESCAPE_PRESSED = "escape-pressed", a.UPDATE_DROPDOWN = "update:dropdown", a.DROPDOWN_INPUT = "dropdown-input", a.FOCUS = "focus", a.CHANGE = "change", a.BLUR = "blur", a.KEYDOWN = "keydown", a))(qe || {});
|
|
15
|
-
const x = {
|
|
16
|
-
"en-US": { ariaLabelDropdownFallback: "{inputLabel} Dropdown", ariaLabelFallback: "Input field" },
|
|
17
|
-
"ja-JP": { ariaLabelDropdownFallback: "{inputLabel}ドロップダウン", ariaLabelFallback: "入力フィールド" },
|
|
18
|
-
"pt-BR": { ariaLabelDropdownFallback: "Menu suspenso {inputLabel}", ariaLabelFallback: "Campo de entrada" }
|
|
19
|
-
}, Ye = ["aria-disabled"], Ke = ["aria-hidden"], We = ["aria-hidden"], Je = ["id"], je = { class: "b-input-field__input-container" }, ze = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "required", "aria-required", "type", "value", "disabled", "readonly"], Xe = ["aria-hidden"], Ze = ["id"], Ge = ["id"], Qe = {
|
|
20
|
-
name: "bento-input-field",
|
|
21
|
-
model: { prop: "modelValue" },
|
|
22
|
-
i18n: { messages: x }
|
|
23
|
-
}, xe = /* @__PURE__ */ _e({
|
|
24
|
-
...Qe,
|
|
25
|
-
props: {
|
|
26
|
-
ariaHidden: { type: Boolean, default: !0 },
|
|
27
|
-
ariaLabel: { default: void 0 },
|
|
28
|
-
condensed: { type: Boolean, default: !1 },
|
|
29
|
-
dropdown: { default: void 0 },
|
|
30
|
-
dropdownPosition: { default: c.START },
|
|
31
|
-
error: { type: Boolean, default: !1 },
|
|
32
|
-
modelValue: { default: void 0 },
|
|
33
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
34
|
-
staticValue: { default: "" },
|
|
35
|
-
staticValuePosition: { default: c.START },
|
|
36
|
-
type: { default: C.TEXT },
|
|
37
|
-
value: { default: void 0 },
|
|
38
|
-
variant: { default: m.DEFAULT },
|
|
39
|
-
description: { default: "" },
|
|
40
|
-
disabled: { type: Boolean, default: !1 },
|
|
41
|
-
errorMessage: { default: null },
|
|
42
|
-
label: { default: "" },
|
|
43
|
-
optional: { type: Boolean, default: !1 },
|
|
44
|
-
placeholder: { default: "" },
|
|
45
|
-
readonly: { type: Boolean, default: !1 },
|
|
46
|
-
required: { type: Boolean, default: !1 },
|
|
47
|
-
tooltipText: { default: null }
|
|
48
|
-
},
|
|
49
|
-
emits: ["blur", "click", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input", "update:dropdown", "update:model-value"],
|
|
50
|
-
setup(a, { expose: ee, emit: oe }) {
|
|
51
|
-
const F = ke(), T = Te(), o = a, n = oe, { emitValue: ae } = Be(n), { t: V } = Fe({ messages: x }), s = $e(T), $ = h(null), O = h(null), M = _("input"), y = _("input-dropdown"), N = _("input-static-value"), U = _("input-description"), H = _("input-error"), S = h(!1);
|
|
52
|
-
Ne(Ie, !0);
|
|
53
|
-
const q = j(Pe, h(void 0)), te = () => {
|
|
54
|
-
S.value = !0, n("focus");
|
|
55
|
-
}, de = () => {
|
|
56
|
-
S.value = !1, n("blur");
|
|
57
|
-
}, { isReadOnly: w } = Ve(Ae(o, "readonly")), Y = d(
|
|
58
|
-
() => w.value || o.dropdown?.readonly
|
|
59
|
-
), A = d(
|
|
60
|
-
() => o.variant === m.STATIC_VALUE && !!T.staticValue
|
|
61
|
-
), ie = d(() => o.variant === m.DEFAULT), re = d(() => o.variant === m.PAYMENT_METHOD), le = d(
|
|
62
|
-
() => A.value && o.staticValuePosition === c.START
|
|
63
|
-
), ne = d(
|
|
64
|
-
() => A.value && o.staticValuePosition === c.END
|
|
65
|
-
), L = d(() => o.variant === m.DROPDOWN && !!o.dropdown), se = d(
|
|
66
|
-
() => L.value && o.dropdownPosition === c.START
|
|
67
|
-
), ue = d(
|
|
68
|
-
() => L.value && o.dropdownPosition === c.END
|
|
69
|
-
), g = d(
|
|
70
|
-
() => !o.disabled && !w.value && (!!o.errorMessage || o.error)
|
|
71
|
-
), pe = d(() => Q(T)("default") || o.label), fe = d(() => Q(T)("description") || o.description), ce = d(() => L.value === !0 && A.value === !0 ? `${N} ${y}` : L.value === !0 ? `${y}` : A.value === !0 ? `${N}` : null), be = d(() => V("ariaLabelFallback")), ve = d(
|
|
72
|
-
() => V("ariaLabelDropdownFallback", { inputLabel: K.value })
|
|
73
|
-
), me = h(F["aria-label"]), { ariaLabel: ye } = Le(o), K = Ce({
|
|
74
|
-
ariaLabel: me.value,
|
|
75
|
-
// TODO: take this line away when the aria-label props is removed
|
|
76
|
-
label: ye,
|
|
77
|
-
defaultFallback: pe.value || be
|
|
78
|
-
}), we = d(
|
|
79
|
-
() => `${fe.value ? U : ""} ${g.value && o.errorMessage ? H : ""}`
|
|
80
|
-
), De = d(() => ({
|
|
81
|
-
[`b-input-field--${k.CONDENSED}`]: o.condensed,
|
|
82
|
-
[`b-input-field--${k.DISABLED}`]: o.disabled,
|
|
83
|
-
[`b-input-field--${k.READONLY}`]: w.value,
|
|
84
|
-
[`b-input-field--${k.ERROR}`]: g.value,
|
|
85
|
-
"b-input-field--slashed-zero": o.slashedZero
|
|
86
|
-
})), W = d(() => ({
|
|
87
|
-
"aria-label": ve.value,
|
|
88
|
-
...o.dropdown
|
|
89
|
-
})), he = (e) => {
|
|
90
|
-
const i = e.target.value;
|
|
91
|
-
!o.disabled && !w.value && ae(i);
|
|
92
|
-
}, J = (e) => {
|
|
93
|
-
n("dropdown-input", e), n("update:dropdown", { ...o?.dropdown, value: e });
|
|
94
|
-
}, D = () => {
|
|
95
|
-
$.value.focus();
|
|
96
|
-
};
|
|
97
|
-
ee({
|
|
98
|
-
focusInput: D,
|
|
99
|
-
focus: () => {
|
|
100
|
-
o.variant === "dropdown" ? O.value.focus() : D();
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
const Ee = j(Re, "");
|
|
104
|
-
return !Object.values(C).includes(o.type) && !Ee && (o.type === "tel" ? R(
|
|
105
|
-
`"bento-input-field" dropdown does not support the type '${o.type}', use "bento-input-field-phone-number" instead.`
|
|
106
|
-
) : o.type === "password" ? R(
|
|
107
|
-
`"bento-input-field" dropdown does not support the type '${o.type}', use "bento-input-field-password" instead.`
|
|
108
|
-
) : R(`"bento-input-field" dropdown does not support the type '${o.type}'`)), o.error && B(
|
|
109
|
-
'BentoInputField "error" property',
|
|
110
|
-
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
111
|
-
Having the field as "undefined" will hide/remove the error.
|
|
112
|
-
<bento-dropdown errorMessage="Error message text" />`,
|
|
113
|
-
"2.0.0"
|
|
114
|
-
), s("defaultIconBefore") && B(
|
|
115
|
-
'BentoInputField "defaultIconBefore" slot',
|
|
116
|
-
`Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
|
|
117
|
-
<bento-input-field>
|
|
118
|
-
<template #iconBefore>
|
|
119
|
-
<my-icon-goes-here />
|
|
120
|
-
</template>
|
|
121
|
-
</bento-input-field>`,
|
|
122
|
-
"2.0.0"
|
|
123
|
-
), o.value && B(
|
|
124
|
-
'BentoInputField "value" property',
|
|
125
|
-
`The use of "value" prop in "BentoInputField" is no longer supported.
|
|
126
|
-
Use the "v-model" or "model-value" property instead.`,
|
|
127
|
-
"2.0.0"
|
|
128
|
-
), (e, i) => (l(), u(t(E), {
|
|
129
|
-
class: ge(["b-input-field", De.value]),
|
|
130
|
-
"data-testid": "input-text-container",
|
|
131
|
-
el: "div",
|
|
132
|
-
variant: "body"
|
|
133
|
-
}, {
|
|
134
|
-
default: b(() => [
|
|
135
|
-
t(s)("default") || e.label ? (l(), u(t(Me), {
|
|
136
|
-
key: 0,
|
|
137
|
-
for: t(M),
|
|
138
|
-
"data-testid": "input-field-label",
|
|
139
|
-
"tooltip-text": e.tooltipText,
|
|
140
|
-
optional: e.optional,
|
|
141
|
-
required: e.required,
|
|
142
|
-
label: e.label,
|
|
143
|
-
onClick: D
|
|
144
|
-
}, {
|
|
145
|
-
default: b(() => [
|
|
146
|
-
p(e.$slots, "default", {}, void 0, !0)
|
|
147
|
-
]),
|
|
148
|
-
_: 3
|
|
149
|
-
}, 8, ["for", "tooltip-text", "optional", "required", "label"])) : r("", !0),
|
|
150
|
-
I("div", {
|
|
151
|
-
class: "b-input-field__input-box",
|
|
152
|
-
"data-testid": "input-box",
|
|
153
|
-
"aria-disabled": e.disabled,
|
|
154
|
-
onClick: D
|
|
155
|
-
}, [
|
|
156
|
-
ie.value && (t(s)("defaultIconBefore") || t(s)("iconBefore")) ? (l(), v("span", {
|
|
157
|
-
key: 0,
|
|
158
|
-
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
159
|
-
class: "b-input-field__icon-before"
|
|
160
|
-
}, [
|
|
161
|
-
t(s)("iconBefore") ? p(e.$slots, "iconBefore", { key: 0 }, void 0, !0) : r("", !0),
|
|
162
|
-
t(s)("defaultIconBefore") && !t(s)("iconBefore") ? p(e.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : r("", !0)
|
|
163
|
-
], 8, Ke)) : r("", !0),
|
|
164
|
-
re.value && t(s)("paymentMethod") ? (l(), v("span", {
|
|
165
|
-
key: 1,
|
|
166
|
-
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
167
|
-
class: "b-input-field__payment-method"
|
|
168
|
-
}, [
|
|
169
|
-
p(e.$slots, "paymentMethod", {}, void 0, !0)
|
|
170
|
-
], 8, We)) : r("", !0),
|
|
171
|
-
se.value ? (l(), v("div", {
|
|
172
|
-
key: 2,
|
|
173
|
-
id: t(y),
|
|
174
|
-
class: "b-input-field__dropdown b-input-field__dropdown--start",
|
|
175
|
-
onClick: i[0] || (i[0] = z(() => {
|
|
176
|
-
}, ["stop"]))
|
|
177
|
-
}, [
|
|
178
|
-
e.dropdown ? (l(), u(t(G), P({
|
|
179
|
-
key: 0,
|
|
180
|
-
ref_key: "inputDropdownElement",
|
|
181
|
-
ref: O
|
|
182
|
-
}, W.value, {
|
|
183
|
-
disabled: e.disabled,
|
|
184
|
-
readonly: Y.value,
|
|
185
|
-
"onUpdate:modelValue": J
|
|
186
|
-
}), null, 16, ["disabled", "readonly"])) : r("", !0)
|
|
187
|
-
], 8, Je)) : r("", !0),
|
|
188
|
-
le.value ? (l(), u(t(E), {
|
|
189
|
-
key: 3,
|
|
190
|
-
id: t(N),
|
|
191
|
-
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
192
|
-
el: "span",
|
|
193
|
-
variant: "body"
|
|
194
|
-
}, {
|
|
195
|
-
default: b(() => [
|
|
196
|
-
p(e.$slots, "staticValue", {}, void 0, !0)
|
|
197
|
-
]),
|
|
198
|
-
_: 3
|
|
199
|
-
}, 8, ["id"])) : r("", !0),
|
|
200
|
-
I("div", je, [
|
|
201
|
-
I("input", P({ id: t(M) }, t(F), {
|
|
202
|
-
ref_key: "inputFieldElement",
|
|
203
|
-
ref: $,
|
|
204
|
-
class: "b-input-field__input",
|
|
205
|
-
"aria-label": t(K),
|
|
206
|
-
"aria-describedby": we.value,
|
|
207
|
-
"aria-owns": ce.value,
|
|
208
|
-
"aria-invalid": g.value,
|
|
209
|
-
placeholder: e.placeholder,
|
|
210
|
-
required: e.required,
|
|
211
|
-
"aria-required": e.required,
|
|
212
|
-
type: e.type,
|
|
213
|
-
value: e.modelValue ?? e.value,
|
|
214
|
-
disabled: e.disabled,
|
|
215
|
-
readonly: t(w),
|
|
216
|
-
onInput: he,
|
|
217
|
-
onChange: i[1] || (i[1] = (f) => n("change")),
|
|
218
|
-
onFocus: te,
|
|
219
|
-
onBlur: de,
|
|
220
|
-
onKeydown: [
|
|
221
|
-
i[2] || (i[2] = (f) => n("keydown", f)),
|
|
222
|
-
i[4] || (i[4] = Oe((f) => n("escape-pressed"), ["esc"]))
|
|
223
|
-
],
|
|
224
|
-
onKeyup: i[3] || (i[3] = (f) => n("keyup", f)),
|
|
225
|
-
onClick: i[5] || (i[5] = (f) => n("click", f))
|
|
226
|
-
}), null, 16, ze),
|
|
227
|
-
t(q) && S.value && (e.modelValue || e.value) ? (l(), u(t(E), {
|
|
228
|
-
key: 0,
|
|
229
|
-
el: "span",
|
|
230
|
-
class: "b-input-field__hint"
|
|
231
|
-
}, {
|
|
232
|
-
default: b(() => [
|
|
233
|
-
X(Z(t(q)), 1)
|
|
234
|
-
]),
|
|
235
|
-
_: 1
|
|
236
|
-
})) : r("", !0)
|
|
237
|
-
]),
|
|
238
|
-
t(s)("iconAfter") ? (l(), v("span", {
|
|
239
|
-
key: 4,
|
|
240
|
-
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
241
|
-
class: "b-input-field__icon-after",
|
|
242
|
-
"data-testid": "input-text__icon-after"
|
|
243
|
-
}, [
|
|
244
|
-
p(e.$slots, "iconAfter", {}, void 0, !0)
|
|
245
|
-
], 8, Xe)) : r("", !0),
|
|
246
|
-
ne.value ? (l(), u(t(E), {
|
|
247
|
-
key: 5,
|
|
248
|
-
id: t(N),
|
|
249
|
-
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
250
|
-
el: "span",
|
|
251
|
-
variant: "body"
|
|
252
|
-
}, {
|
|
253
|
-
default: b(() => [
|
|
254
|
-
p(e.$slots, "staticValue", {}, void 0, !0)
|
|
255
|
-
]),
|
|
256
|
-
_: 3
|
|
257
|
-
}, 8, ["id"])) : r("", !0),
|
|
258
|
-
ue.value ? (l(), v("div", {
|
|
259
|
-
key: 6,
|
|
260
|
-
id: t(y),
|
|
261
|
-
"data-testid": "input-field-dropdown-container-end",
|
|
262
|
-
class: "b-input-field__dropdown b-input-field__dropdown--end",
|
|
263
|
-
onClick: i[6] || (i[6] = z(() => {
|
|
264
|
-
}, ["stop"]))
|
|
265
|
-
}, [
|
|
266
|
-
e.dropdown ? (l(), u(t(G), P({
|
|
267
|
-
key: 0,
|
|
268
|
-
id: t(y),
|
|
269
|
-
ref_key: "inputDropdownElement",
|
|
270
|
-
ref: O
|
|
271
|
-
}, W.value, {
|
|
272
|
-
disabled: e.disabled,
|
|
273
|
-
readonly: Y.value,
|
|
274
|
-
"onUpdate:modelValue": J
|
|
275
|
-
}), null, 16, ["id", "disabled", "readonly"])) : r("", !0)
|
|
276
|
-
], 8, Ze)) : r("", !0)
|
|
277
|
-
], 8, Ye),
|
|
278
|
-
g.value && e.errorMessage ? (l(), u(t(Ue), {
|
|
279
|
-
key: 1,
|
|
280
|
-
id: t(H),
|
|
281
|
-
"error-message": e.errorMessage,
|
|
282
|
-
class: "b-input-field__error-message"
|
|
283
|
-
}, null, 8, ["id", "error-message"])) : r("", !0),
|
|
284
|
-
t(s)("description") || e.description ? (l(), v("span", {
|
|
285
|
-
key: 2,
|
|
286
|
-
id: t(U),
|
|
287
|
-
class: "b-input-field__description",
|
|
288
|
-
onClick: D
|
|
289
|
-
}, [
|
|
290
|
-
Se(t(E), {
|
|
291
|
-
el: "span",
|
|
292
|
-
variant: "body"
|
|
293
|
-
}, {
|
|
294
|
-
default: b(() => [
|
|
295
|
-
p(e.$slots, "description", { id: "description" }, () => [
|
|
296
|
-
X(Z(e.description), 1)
|
|
297
|
-
], !0)
|
|
298
|
-
]),
|
|
299
|
-
_: 3
|
|
300
|
-
})
|
|
301
|
-
], 8, Ge)) : r("", !0)
|
|
302
|
-
]),
|
|
303
|
-
_: 3
|
|
304
|
-
}, 8, ["class"]));
|
|
305
|
-
}
|
|
306
|
-
}), bo = /* @__PURE__ */ He(xe, [["__scopeId", "data-v-9e4c1d53"]]);
|
|
307
|
-
export {
|
|
308
|
-
bo as B,
|
|
309
|
-
c as a,
|
|
310
|
-
qe as b,
|
|
311
|
-
k as c,
|
|
312
|
-
C as d,
|
|
313
|
-
m as e
|
|
314
|
-
};
|
|
315
|
-
//# sourceMappingURL=input-field.CfU0ZKtL.js.map
|