@adyen/bento-vue2 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 +381 -118
- 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 +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
- package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
- package/dist/chunks/action-bar.Dj830k6L.js +334 -0
- package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.js.map} +1 -1
- package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
- package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
- package/dist/chunks/ai-tag.AyG2UWCB.js +110 -0
- package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
- package/dist/chunks/alert.CXRb-Smf.js +160 -0
- package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
- package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.C52VMtnd.js} +104 -67
- package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
- package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
- package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
- package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
- package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
- package/dist/chunks/{calendar.CXKhBF2f.js → calendar.CqsfThnC.js} +438 -346
- package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
- package/dist/chunks/card.8z7UQeVK.js +165 -0
- package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
- package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
- package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
- package/dist/chunks/chip.BFY_-VCz.js +84 -0
- package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
- package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
- package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
- package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
- package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
- package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
- package/dist/chunks/copy.qqGYFbKJ.js +133 -0
- package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
- package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
- package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
- package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
- package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
- package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.DNxNVV44.js} +3 -3
- package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
- package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
- package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
- package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
- package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
- package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
- package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
- package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
- package/dist/chunks/dialog-page.EdejG53a.js +143 -0
- package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
- package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
- package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
- package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
- package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
- package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
- package/dist/chunks/error-message.CyERcfdt.js +72 -0
- package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
- package/dist/chunks/field-label.DjjjkcO6.js +97 -0
- package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
- package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
- package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
- package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
- package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
- package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
- package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CvUaoMzj.js} +3 -3
- package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
- package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
- package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
- package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
- package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
- package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
- package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
- package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
- package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.js.map} +1 -1
- package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
- package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
- package/dist/chunks/input-field-password.BNAtIn_D.js +381 -0
- package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
- package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
- package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
- package/dist/chunks/input-time.BLuMfakv.js +135 -0
- package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
- package/dist/chunks/inspector.BzBPlz-5.js +172 -0
- package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
- package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
- package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
- package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
- package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.DTvg2NLk.js} +63 -36
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
- package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
- package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
- package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
- package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
- package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
- package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.js.map} +1 -1
- package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
- package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
- package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.Bb-L-0io.js} +4 -4
- package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
- package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
- package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
- package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
- package/dist/chunks/secondary-nav.C-nPZR-2.js.map +1 -0
- package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
- package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
- package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.CLJPaknG.js} +3 -3
- package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
- package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
- package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
- package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
- package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
- package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.DUIqCmwg.js} +5 -5
- package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
- package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
- package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
- package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
- package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
- package/dist/chunks/textarea.CJS-1I41.js +219 -0
- package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
- package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
- package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
- package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
- package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
- package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
- package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
- package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.CZt_mcuT.js} +190 -103
- package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
- package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
- package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
- package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.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 +1396 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +11 -12
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +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 +280 -275
- 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/link.js +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 +297 -4
- package/package.json +10 -15
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
- package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
- package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
- package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
- package/dist/chunks/calendar.CXKhBF2f.js.map +0 -1
- package/dist/chunks/card.GjhsXOT0.js +0 -128
- package/dist/chunks/chip.DTpENaGC.js +0 -57
- package/dist/chunks/copy.BVGQcf22.js +0 -86
- package/dist/chunks/country.types.DxKjyd0S.js +0 -20
- package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
- package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
- package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
- package/dist/chunks/date-picker.CnazYcSX.js +0 -155
- package/dist/chunks/date-picker.CnazYcSX.js.map +0 -1
- package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
- package/dist/chunks/date-range-picker.Bf9pRNL7.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.oyG153fC.js +0 -116
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
- package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
- package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
- package/dist/chunks/error-message.RxdStT3S.js +0 -106
- package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
- package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
- package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
- package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
- package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
- package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
- package/dist/chunks/input-field.m1PMwa4C.js +0 -170
- package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
- package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
- package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
- package/dist/chunks/search-bar.DPjYDhja.js +0 -89
- package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
- package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
- package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
- package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
- package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DqX2qsMC.js.map +0 -1
- package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
- package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
- package/dist/draggable-handle.js +0 -149
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { ref as c, onMounted as b, computed as i, defineComponent as S } from "vue";
|
|
2
|
-
import { B as C } from "./button.DxhJNOtr.js";
|
|
3
|
-
import { u as x } from "./index.B6WW_F-J.js";
|
|
4
|
-
import { C as L, a as y } from "./chevron-left.BS24hEFa.js";
|
|
5
|
-
import { o as R } from "./resize.Bqks3WUm.js";
|
|
6
|
-
import { n as W } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
-
import "../assets/fixed-scroller.css";
|
|
8
|
-
const w = 1, B = 40, F = ({
|
|
9
|
-
contentRef: f,
|
|
10
|
-
containerRef: e,
|
|
11
|
-
leftButtonRef: l,
|
|
12
|
-
rightButtonRef: t
|
|
13
|
-
}) => {
|
|
14
|
-
const r = c(0), o = c(0), n = c(0), a = c(0);
|
|
15
|
-
b(() => {
|
|
16
|
-
R(e.value, () => {
|
|
17
|
-
e.value && (a.value = e.value.offsetWidth, o.value = 0, r.value = 0);
|
|
18
|
-
}), R(f.value, () => {
|
|
19
|
-
var s;
|
|
20
|
-
n.value = (s = f.value) == null ? void 0 : s.scrollWidth, n.value < a.value && (o.value = 0, r.value = 0);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
const _ = i(() => {
|
|
24
|
-
var u, h;
|
|
25
|
-
const s = (u = l.value) != null && u.scrollWidth ? l.value.scrollWidth + B : 0, m = (h = t.value) != null && h.scrollWidth ? t.value.scrollWidth + B : 0;
|
|
26
|
-
return s + m;
|
|
27
|
-
}), d = i(() => Math.ceil(n.value / a.value) ?? 0), v = i(() => {
|
|
28
|
-
const s = new Array(d.value).fill(0);
|
|
29
|
-
return s.forEach((m, u) => {
|
|
30
|
-
if (u === 0)
|
|
31
|
-
return;
|
|
32
|
-
if (u === d.value - 1) {
|
|
33
|
-
s[s.length - 1] = -(n.value - a.value + w);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const h = s[u - 1];
|
|
37
|
-
s[u] = -(a.value + Math.abs(h) - _.value);
|
|
38
|
-
}), s;
|
|
39
|
-
}), p = i(() => o.value !== 0), g = i(
|
|
40
|
-
() => r.value >= -(n.value - a.value - 1)
|
|
41
|
-
);
|
|
42
|
-
return {
|
|
43
|
-
offset: r,
|
|
44
|
-
shouldShowLeftButton: p,
|
|
45
|
-
shouldShowRightButton: g,
|
|
46
|
-
// Methods
|
|
47
|
-
scrollLeft: () => {
|
|
48
|
-
o.value !== 0 && (o.value -= 1, r.value = v.value[o.value]);
|
|
49
|
-
},
|
|
50
|
-
scrollRight: () => {
|
|
51
|
-
o.value !== d.value - 1 && (o.value += 1, r.value = v.value[o.value]);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}, I = {
|
|
55
|
-
"en-US": { scrollLeft: "Scroll left", scrollRight: "Scroll right" },
|
|
56
|
-
"ja-JP": { scrollLeft: "左にスクロール", scrollRight: "右にスクロール" },
|
|
57
|
-
"pt-BR": { scrollLeft: "Deslizar para esquerda", scrollRight: "Rolar à direita" }
|
|
58
|
-
}, O = {
|
|
59
|
-
i18n: { messages: I }
|
|
60
|
-
}, k = /* @__PURE__ */ S({
|
|
61
|
-
...O,
|
|
62
|
-
__name: "fixed-scroller",
|
|
63
|
-
props: {
|
|
64
|
-
/**
|
|
65
|
-
* Applies the condensed style to the buttons
|
|
66
|
-
*/
|
|
67
|
-
condensed: { type: Boolean, default: !1 },
|
|
68
|
-
/**
|
|
69
|
-
* Padding to be applied to the top of the scroller container
|
|
70
|
-
*/
|
|
71
|
-
extraPaddingTop: { type: Number, default: 0 },
|
|
72
|
-
/**
|
|
73
|
-
* Padding to be applied to the top of the scroller container
|
|
74
|
-
*/
|
|
75
|
-
centered: { type: Boolean, default: !1 }
|
|
76
|
-
},
|
|
77
|
-
setup(f) {
|
|
78
|
-
const e = f, { t: l } = x(), t = c(null), r = c(null), o = c(null), n = c(null), { offset: a, shouldShowLeftButton: _, shouldShowRightButton: d, scrollLeft: v, scrollRight: p } = F({
|
|
79
|
-
contentRef: t,
|
|
80
|
-
containerRef: r,
|
|
81
|
-
leftButtonRef: o,
|
|
82
|
-
rightButtonRef: n
|
|
83
|
-
}), g = i(() => ({
|
|
84
|
-
"b-fixed-scroller__button--centered": e.centered
|
|
85
|
-
}));
|
|
86
|
-
return { __sfc: !0, t: l, contentRef: t, fixedScrollerRef: r, leftButtonRef: o, rightButtonRef: n, props: e, offset: a, shouldShowLeftButton: _, shouldShowRightButton: d, scrollLeft: v, scrollRight: p, buttonConditionalClasses: g, BentoButton: C, ChevronLeftIcon: y, ChevronRightIcon: L };
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
var E = function() {
|
|
90
|
-
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
91
|
-
return l("div", { ref: "fixedScrollerRef", staticClass: "b-fixed-scroller" }, [l("div", { staticClass: "b-fixed-scroller__container" }, [l("div", { ref: "contentRef", staticClass: "b-fixed-scroller__content", style: {
|
|
92
|
-
transform: `translateX(${t.offset}px)`,
|
|
93
|
-
paddingTop: t.shouldShowLeftButton || t.shouldShowRightButton ? `${e.extraPaddingTop}px` : null
|
|
94
|
-
} }, [e._t("default")], 2)]), t.shouldShowLeftButton ? l("div", { ref: "leftButtonRef", staticClass: "b-fixed-scroller__left b-fixed-scroller__button", class: t.buttonConditionalClasses }, [l(t.BentoButton, { attrs: { variant: "secondary", "aria-label": t.t("scrollLeft"), condensed: e.condensed }, on: { click: t.scrollLeft }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
95
|
-
return [l(t.ChevronLeftIcon, { attrs: { "svg-title": "checked", "aria-hidden": "true" } })];
|
|
96
|
-
}, proxy: !0 }], null, !1, 1728943899) })], 1) : e._e(), t.shouldShowRightButton ? l("div", { ref: "rightButtonRef", staticClass: "b-fixed-scroller__right b-fixed-scroller__button", class: t.buttonConditionalClasses }, [l(t.BentoButton, { attrs: { variant: "secondary", "aria-label": t.t("scrollRight"), condensed: e.condensed }, on: { click: t.scrollRight }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
97
|
-
return [l(t.ChevronRightIcon, { attrs: { "svg-title": "checked", "aria-hidden": "true" } })];
|
|
98
|
-
}, proxy: !0 }], null, !1, 29940896) })], 1) : e._e()]);
|
|
99
|
-
}, T = [], P = /* @__PURE__ */ W(
|
|
100
|
-
k,
|
|
101
|
-
E,
|
|
102
|
-
T,
|
|
103
|
-
!1,
|
|
104
|
-
null,
|
|
105
|
-
"e320ec31"
|
|
106
|
-
);
|
|
107
|
-
const q = P.exports;
|
|
108
|
-
export {
|
|
109
|
-
q as F
|
|
110
|
-
};
|
|
111
|
-
//# sourceMappingURL=fixed-scroller.MerESbd_.js.map
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, useSlots as c, computed as a, provide as m, toRef as y } from "vue";
|
|
2
|
-
import { B as d } from "./alert.QVQ6Zjbm.js";
|
|
3
|
-
import { u as p } from "./use-has-slot.C9lQZ6nz.js";
|
|
4
|
-
import { F as v } from "./form-layout.types.bZW9iR6_.js";
|
|
5
|
-
import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import { B as f, a as g } from "./typography.C8lPlsbD.js";
|
|
7
|
-
import { u as h } from "./index.B6WW_F-J.js";
|
|
8
|
-
import "../assets/form-layout-title.css";
|
|
9
|
-
const b = {}, S = /* @__PURE__ */ n({
|
|
10
|
-
...b,
|
|
11
|
-
__name: "form-layout",
|
|
12
|
-
props: {
|
|
13
|
-
/**
|
|
14
|
-
* Renders the form layout as an HTML `form`
|
|
15
|
-
*/
|
|
16
|
-
form: { type: Boolean, default: !1 },
|
|
17
|
-
/**
|
|
18
|
-
* Sets the state of the form and its fields to
|
|
19
|
-
* a read only status.
|
|
20
|
-
*/
|
|
21
|
-
loading: { type: Boolean, default: !1 }
|
|
22
|
-
},
|
|
23
|
-
emits: ["submit"],
|
|
24
|
-
setup(o, { emit: t }) {
|
|
25
|
-
const s = o, e = c(), r = p(e), i = a(() => s.form ? "form" : "div"), _ = a(() => r("actions-left") || r("actions-right"));
|
|
26
|
-
return m(v, y(s, "loading")), { __sfc: !0, slots: e, hasSlot: r, emit: t, props: s, formLayoutElement: i, hasActions: _, BentoAlert: d };
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
var $ = function() {
|
|
30
|
-
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
31
|
-
return s(e.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" }, on: { submit: function(r) {
|
|
32
|
-
return e.emit("submit", r);
|
|
33
|
-
} } }, [e.hasSlot("error-message") ? s(e.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
34
|
-
return [t._t("error-message")];
|
|
35
|
-
}, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), e.hasActions ? s("div", { staticClass: "b-form-layout__actions-container" }, [s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
|
|
36
|
-
}, C = [], F = /* @__PURE__ */ l(
|
|
37
|
-
S,
|
|
38
|
-
$,
|
|
39
|
-
C,
|
|
40
|
-
!1,
|
|
41
|
-
null,
|
|
42
|
-
"b895dc37"
|
|
43
|
-
);
|
|
44
|
-
const Q = F.exports, B = ["warning", "critical", "highlight", "success"], L = {}, T = /* @__PURE__ */ n({
|
|
45
|
-
...L,
|
|
46
|
-
__name: "form-layout-field-tip",
|
|
47
|
-
props: {
|
|
48
|
-
/**
|
|
49
|
-
* Type of a alert; set a distinctive icon and color. Defaults to highlight.
|
|
50
|
-
* @values highlight, success, critical, warning
|
|
51
|
-
*/
|
|
52
|
-
type: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: "highlight",
|
|
55
|
-
validator: (o) => B.includes(o)
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* Unique identifier to the form field. Used for accessibility.
|
|
59
|
-
*/
|
|
60
|
-
id: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: void 0
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
setup(o) {
|
|
66
|
-
const t = c(), s = p(t);
|
|
67
|
-
return { __sfc: !0, slots: t, hasSlot: s, BentoAlert: d };
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
var x = function() {
|
|
71
|
-
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
72
|
-
return s("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), e.hasSlot("message") ? s(e.BentoAlert, { attrs: { id: t.id, variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
73
|
-
return [t._t("message")];
|
|
74
|
-
}, proxy: !0 }], null, !0) }) : t._e()], 2);
|
|
75
|
-
}, R = [], A = /* @__PURE__ */ l(
|
|
76
|
-
T,
|
|
77
|
-
x,
|
|
78
|
-
R,
|
|
79
|
-
!1,
|
|
80
|
-
null,
|
|
81
|
-
"47d36a49"
|
|
82
|
-
);
|
|
83
|
-
const V = A.exports, u = [
|
|
84
|
-
"100",
|
|
85
|
-
"50",
|
|
86
|
-
"33",
|
|
87
|
-
"25",
|
|
88
|
-
"66-33",
|
|
89
|
-
"33-66",
|
|
90
|
-
"75-25",
|
|
91
|
-
"25-75",
|
|
92
|
-
"50-50",
|
|
93
|
-
"33-33-33"
|
|
94
|
-
], O = {}, q = /* @__PURE__ */ n({
|
|
95
|
-
...O,
|
|
96
|
-
__name: "form-layout-group",
|
|
97
|
-
props: {
|
|
98
|
-
/**
|
|
99
|
-
* The layout of the pair group of components.
|
|
100
|
-
* This will render the components within the width of the proportions.
|
|
101
|
-
* Only two colums are available.
|
|
102
|
-
*
|
|
103
|
-
* If only one value is entered, then it will assume there's only one child in the group.
|
|
104
|
-
* If two values are entered, the first value will be use for the first child and the second
|
|
105
|
-
* value for the second child.
|
|
106
|
-
*
|
|
107
|
-
* If the value entered is not listed in the example
|
|
108
|
-
* list below it will use 100% by default.
|
|
109
|
-
* @example
|
|
110
|
-
* '33-33-33'
|
|
111
|
-
* '50-50'
|
|
112
|
-
* '25-75'
|
|
113
|
-
* '75-25'
|
|
114
|
-
* '33-66'
|
|
115
|
-
* '66-33'
|
|
116
|
-
* '25'
|
|
117
|
-
* '33'
|
|
118
|
-
* '50'
|
|
119
|
-
* '100'
|
|
120
|
-
*/
|
|
121
|
-
layout: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: "100",
|
|
124
|
-
validator: (o) => u.includes(o)
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
setup(o) {
|
|
128
|
-
const t = o, s = 100, e = a(
|
|
129
|
-
() => u.includes(t.layout) ? t.layout : s
|
|
130
|
-
), r = a(() => ({
|
|
131
|
-
// Transform into column if the layout is unsupported
|
|
132
|
-
"b-form-layout-group--column": !u.includes(t.layout),
|
|
133
|
-
// Assings the correct layout class
|
|
134
|
-
[`b-form-layout-group--${e.value}`]: !0
|
|
135
|
-
}));
|
|
136
|
-
return { __sfc: !0, DEFAULT_PROPORTION: s, props: t, computedLayout: e, conditionalClasses: r };
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
var P = function() {
|
|
140
|
-
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
141
|
-
return s("div", { staticClass: "b-form-layout-group", class: e.conditionalClasses }, [t._t("default")], 2);
|
|
142
|
-
}, E = [], I = /* @__PURE__ */ l(
|
|
143
|
-
q,
|
|
144
|
-
P,
|
|
145
|
-
E,
|
|
146
|
-
!1,
|
|
147
|
-
null,
|
|
148
|
-
"18d77022"
|
|
149
|
-
);
|
|
150
|
-
const W = I.exports, N = {
|
|
151
|
-
"en-US": { requiredFields: "All fields are required." }
|
|
152
|
-
}, G = {
|
|
153
|
-
name: "bento-form-layout-title",
|
|
154
|
-
i18n: { messages: N }
|
|
155
|
-
}, U = /* @__PURE__ */ n({
|
|
156
|
-
...G,
|
|
157
|
-
props: {
|
|
158
|
-
/**
|
|
159
|
-
* Defines if the Form Layout title is
|
|
160
|
-
* a "section" or a "subsection".
|
|
161
|
-
* Default is "section" (false). Turn into "true" for "subsection"
|
|
162
|
-
*/
|
|
163
|
-
subsection: {
|
|
164
|
-
type: Boolean,
|
|
165
|
-
default: !1
|
|
166
|
-
},
|
|
167
|
-
/**
|
|
168
|
-
* Sets the HTML DOM element.
|
|
169
|
-
* @values h1, h2, h3, h4, h5, h6, div, p, span
|
|
170
|
-
*/
|
|
171
|
-
el: {
|
|
172
|
-
type: f.props.el.type,
|
|
173
|
-
required: !0,
|
|
174
|
-
validator: (o) => Object.values(g).includes(o)
|
|
175
|
-
},
|
|
176
|
-
/**
|
|
177
|
-
* Defines if the Form Layout title displays
|
|
178
|
-
* a message indicating that all fields are required.
|
|
179
|
-
*/
|
|
180
|
-
allFieldsRequired: {
|
|
181
|
-
type: Boolean,
|
|
182
|
-
default: !1
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
setup(o) {
|
|
186
|
-
const t = o, s = c(), { t: e } = h(), r = a(() => !t.subsection), i = p(s), _ = a(() => ({
|
|
187
|
-
"b-form-layout-title--subsection": t.subsection
|
|
188
|
-
}));
|
|
189
|
-
return { __sfc: !0, slots: s, t: e, props: t, isSection: r, hasSlot: i, conditionalClasses: _, BentoTypography: f };
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
var k = function() {
|
|
193
|
-
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
194
|
-
return s("div", { staticClass: "b-form-layout-title", class: e.conditionalClasses }, [s(e.BentoTypography, { attrs: { el: t.el, variant: "title", medium: e.isSection } }, [t._t("default")], 2), e.hasSlot("description") || t.allFieldsRequired ? s(e.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description"), t.allFieldsRequired ? [t._v(" " + t._s(e.hasSlot("description") ? ` ${e.t("requiredFields")}` : e.t("requiredFields")) + " ")] : t._e()], 2) : t._e()], 1);
|
|
195
|
-
}, w = [], D = /* @__PURE__ */ l(
|
|
196
|
-
U,
|
|
197
|
-
k,
|
|
198
|
-
w,
|
|
199
|
-
!1,
|
|
200
|
-
null,
|
|
201
|
-
"8ee24e3a"
|
|
202
|
-
);
|
|
203
|
-
const X = D.exports;
|
|
204
|
-
export {
|
|
205
|
-
V as a,
|
|
206
|
-
W as b,
|
|
207
|
-
X as c,
|
|
208
|
-
Q as f
|
|
209
|
-
};
|
|
210
|
-
//# sourceMappingURL=form-layout-title.Bw7VgOO5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout-title.Bw7VgOO5.js","sources":["../../src/components/form-layout/form-layout.vue","../../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\" @submit=\"emit('submit', $event)\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits([\"submit\"]);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { type BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" :id=\"id\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { type PropType, useSlots } from 'vue';\n import {\n type BentoFormLayoutFieldTipTypeOption,\n BentoFormLayoutFieldTipTypeOptions,\n } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n /**\n * Unique identifier to the form field. Used for accessibility.\n */\n id: {\n type: String,\n default: undefined,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description') || allFieldsRequired\"\n class=\"b-form-layout-title__description\"\n el=\"span\"\n wide\n >\n <slot name=\"description\" />\n <template v-if=\"allFieldsRequired\">\n {{ hasSlot('description') ? ` ${t('requiredFields')}` : t('requiredFields') }}\n </template>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Defines if the Form Layout title displays\n * a message indicating that all fields are required.\n */\n allFieldsRequired: {\n type: Boolean,\n default: false,\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organize related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {\n name: 'bento-form-layout-title',\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","messages","t","useI18n","isSection"],"mappings":";;;;;;;;AAwFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;iBA5DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAiBAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC9CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GC+DHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;qBC5BGa,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,KAAA,EAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;;;;;;;;;;GCyCtDE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,MAAA,EAAA,UAAAC,EAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBApEAnB,IAAAC,EAAA,GACA,EAAA,GAAAmB,EAAA,IAAAC,EAAA,GAkCAC,IAAAjB,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ue, useAttrs as ce, ref as l, provide as pe, computed as u, watch as P } from "vue";
|
|
2
|
-
import { B as ve } from "./button.DxhJNOtr.js";
|
|
3
|
-
import { B as fe } from "./image.C2D2hKat.js";
|
|
4
|
-
import { B as me } from "./input-field.m1PMwa4C.js";
|
|
5
|
-
import { h as _e } from "./button-actions.BLk114As.js";
|
|
6
|
-
import { d as he, B as be } from "./typography.C8lPlsbD.js";
|
|
7
|
-
import { C as Ce } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
8
|
-
import { D as ge } from "./dot.BW9SneIk.js";
|
|
9
|
-
import { S as ke, H as we } from "./show.B_mKPF6I.js";
|
|
10
|
-
import { e as Le, w as ye } from "./index.CwzYJHw2.js";
|
|
11
|
-
import { u as Re } from "./index.B6WW_F-J.js";
|
|
12
|
-
import { g as Q } from "./generate-uid.NJ8tVoha.js";
|
|
13
|
-
import { u as Ee } from "./form-field.D_2g7vaP.js";
|
|
14
|
-
import { b as Ie } from "./dropdown.Ct7uhPr6.js";
|
|
15
|
-
import { T as Te } from "./tooltip.CbsNGnhw.js";
|
|
16
|
-
import { n as Ve } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
17
|
-
import "../assets/input-field-password.css";
|
|
18
|
-
var g = /* @__PURE__ */ ((o) => (o.TEXT = "text", o.PASSWORD = "password", o))(g || {}), _ = /* @__PURE__ */ ((o) => (o.MIN_LENGTH = "minLength", o.REQUIRE_LOWERCASE = "requireLowercase", o.REQUIRE_NUMERIC = "requireNumeric", o.REQUIRE_SPECIAL_CHARACTER = "requireSpecialCharacter", o.REQUIRE_UPPERCASE = "requireUppercase", o))(_ || {});
|
|
19
|
-
const Pe = "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 k(o) {
|
|
21
|
-
return (o == null ? void 0 : o.toString()) ?? "";
|
|
22
|
-
}
|
|
23
|
-
function Oe(o, t = 12) {
|
|
24
|
-
return k(o).length >= t;
|
|
25
|
-
}
|
|
26
|
-
function Se(o) {
|
|
27
|
-
return /[a-z]/.test(k(o));
|
|
28
|
-
}
|
|
29
|
-
function Ue(o) {
|
|
30
|
-
return /[A-Z]/.test(k(o));
|
|
31
|
-
}
|
|
32
|
-
function Ae(o) {
|
|
33
|
-
return /\d/.test(k(o));
|
|
34
|
-
}
|
|
35
|
-
function Be(o) {
|
|
36
|
-
return /[^a-zA-Z0-9]/.test(k(o));
|
|
37
|
-
}
|
|
38
|
-
const qe = {
|
|
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
|
-
}, Z = 12, z = 500, X = 2e3, G = 2e3, Me = {
|
|
43
|
-
i18n: { messages: qe },
|
|
44
|
-
name: "bento-input-field-password",
|
|
45
|
-
model: { prop: "modelValue" }
|
|
46
|
-
}, Ne = /* @__PURE__ */ ue({
|
|
47
|
-
...Me,
|
|
48
|
-
props: {
|
|
49
|
-
description: { default: null },
|
|
50
|
-
disabled: { type: Boolean, default: !1 },
|
|
51
|
-
errorMessage: { default: null },
|
|
52
|
-
label: { default: null },
|
|
53
|
-
optional: { type: Boolean, default: !1 },
|
|
54
|
-
placeholder: { default: "" },
|
|
55
|
-
readonly: { type: Boolean, default: !1 },
|
|
56
|
-
required: { type: Boolean, default: !1 },
|
|
57
|
-
tooltipText: { default: null },
|
|
58
|
-
condensed: { default: !1 },
|
|
59
|
-
debounceTime: { default: z },
|
|
60
|
-
disableValidation: { type: Boolean, default: !1 },
|
|
61
|
-
value: { default: void 0 },
|
|
62
|
-
modelValue: { default: void 0 },
|
|
63
|
-
validation: { default: void 0 },
|
|
64
|
-
withHint: { type: Boolean, default: !0 }
|
|
65
|
-
},
|
|
66
|
-
emits: ["blur", "focus", "input:valid", "input:error", "input", "update:model-value"],
|
|
67
|
-
setup(o, { emit: t }) {
|
|
68
|
-
const a = o, { t: e, n: d } = Re(), v = ce(), h = l(g.PASSWORD), c = l(a.modelValue ?? a.value), O = l(!1), S = l(!1), w = l([]), y = l({}), p = l(null), f = l(!1), U = l(null), A = l(null), J = l(null), R = l(!1);
|
|
69
|
-
pe(Ie, "bento-input-field-password");
|
|
70
|
-
const { focused: B } = Le(U), { emitValue: q } = Ee(t), K = Q("validationListId"), M = Q("validationPopoverId"), N = u(() => h.value === g.TEXT), Y = u(
|
|
71
|
-
() => w.value.map(
|
|
72
|
-
(i) => i ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
|
|
73
|
-
)
|
|
74
|
-
), $ = u(
|
|
75
|
-
() => p.value ? "b-input-field-password__input-tooltip--timed" : ""
|
|
76
|
-
), j = u(() => ({
|
|
77
|
-
ariaHidden: !1,
|
|
78
|
-
condensed: a.condensed,
|
|
79
|
-
disabled: a.disabled,
|
|
80
|
-
errorMessage: a.errorMessage,
|
|
81
|
-
optional: a.optional,
|
|
82
|
-
placeholder: a.placeholder,
|
|
83
|
-
readonly: a.readonly,
|
|
84
|
-
required: a.required,
|
|
85
|
-
tooltipText: a.tooltipText,
|
|
86
|
-
type: h.value,
|
|
87
|
-
modelValue: c.value,
|
|
88
|
-
"aria-haspopup": I.value ? "dialog" : !1,
|
|
89
|
-
"aria-describedby": I.value ? M : "",
|
|
90
|
-
...v
|
|
91
|
-
})), E = u(() => {
|
|
92
|
-
var m, b, n, C, L, x;
|
|
93
|
-
if (a.validation && !a.validation.extendDefaultValidation)
|
|
94
|
-
return a.validation;
|
|
95
|
-
const i = [
|
|
96
|
-
{
|
|
97
|
-
label: e("validationMinLength", { numberOfCharacters: d(Z) }),
|
|
98
|
-
key: _.MIN_LENGTH,
|
|
99
|
-
validate: Oe
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: e("validationRequireLowercase", { numberOne: d(1) }),
|
|
103
|
-
key: _.REQUIRE_LOWERCASE,
|
|
104
|
-
validate: Se
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: e("validationRequireUppercase", { numberOne: d(1) }),
|
|
108
|
-
key: _.REQUIRE_UPPERCASE,
|
|
109
|
-
validate: Ue
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: e("validationRequireNumeric", { numberOne: d(1) }),
|
|
113
|
-
key: _.REQUIRE_NUMERIC,
|
|
114
|
-
validate: Ae
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: e("validationRequireSpecialCharacter", { numberOne: d(1) }),
|
|
118
|
-
key: _.REQUIRE_SPECIAL_CHARACTER,
|
|
119
|
-
validate: Be
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
let s = i;
|
|
123
|
-
if (a.validation) {
|
|
124
|
-
const le = i.map((r) => r.key), V = (b = (m = a.validation) == null ? void 0 : m.list) == null ? void 0 : b.map((r) => r.key), re = ((C = (n = a.validation) == null ? void 0 : n.list) == null ? void 0 : C.filter((r) => !le.includes(r.key))) ?? [];
|
|
125
|
-
s = [...i.map((r) => {
|
|
126
|
-
var D, W;
|
|
127
|
-
return V != null && V.includes(r.key) ? (W = (D = a.validation) == null ? void 0 : D.list) == null ? void 0 : W.find((de) => de.key === r.key) : r;
|
|
128
|
-
}), ...re];
|
|
129
|
-
}
|
|
130
|
-
return {
|
|
131
|
-
title: ((L = a.validation) == null ? void 0 : L.title) ?? e("validationTitle"),
|
|
132
|
-
suggestion: ((x = a.validation) == null ? void 0 : x.suggestion) ?? e("validationSuggestion"),
|
|
133
|
-
list: s
|
|
134
|
-
};
|
|
135
|
-
}), H = u(() => {
|
|
136
|
-
var i, s;
|
|
137
|
-
return (s = (i = E.value) == null ? void 0 : i.list) == null ? void 0 : s.filter((m) => !m.disabled);
|
|
138
|
-
}), F = u(() => {
|
|
139
|
-
var i;
|
|
140
|
-
return (i = w.value) == null ? void 0 : i.some((s) => !s);
|
|
141
|
-
}), I = u(
|
|
142
|
-
() => {
|
|
143
|
-
var i, s;
|
|
144
|
-
return A.value && ((s = (i = E.value) == null ? void 0 : i.list) == null ? void 0 : s.length) > 0;
|
|
145
|
-
}
|
|
146
|
-
), ee = (i) => {
|
|
147
|
-
typeof i.getModifierState == "function" && (R.value = i.getModifierState("CapsLock"));
|
|
148
|
-
}, ae = () => {
|
|
149
|
-
N.value ? h.value = g.PASSWORD : h.value = g.TEXT;
|
|
150
|
-
}, te = (i) => {
|
|
151
|
-
a.disabled || (c.value = i, q(c.value));
|
|
152
|
-
}, ie = () => {
|
|
153
|
-
t("focus");
|
|
154
|
-
}, oe = () => {
|
|
155
|
-
t("blur");
|
|
156
|
-
}, T = (i) => {
|
|
157
|
-
var b;
|
|
158
|
-
const s = (b = H.value) == null ? void 0 : b.map((n) => ({
|
|
159
|
-
key: n.key,
|
|
160
|
-
label: n.label,
|
|
161
|
-
isValid: n.validate(i, ...n.additionalArgs ?? [])
|
|
162
|
-
}));
|
|
163
|
-
let m = 1;
|
|
164
|
-
w.value = s == null ? void 0 : s.map((n) => n.isValid), y.value = s == null ? void 0 : s.filter((n) => !n.isValid).reduce((n, C) => {
|
|
165
|
-
const L = C.key ?? `custom-rule-${m++}`;
|
|
166
|
-
return {
|
|
167
|
-
...n,
|
|
168
|
-
[L]: C.label
|
|
169
|
-
};
|
|
170
|
-
}, {});
|
|
171
|
-
}, se = () => {
|
|
172
|
-
f.value = !1, p.value = null;
|
|
173
|
-
}, ne = () => {
|
|
174
|
-
f.value = !0;
|
|
175
|
-
};
|
|
176
|
-
return P(
|
|
177
|
-
() => [a.value, a.modelValue],
|
|
178
|
-
() => {
|
|
179
|
-
c.value = a.modelValue ?? a.value;
|
|
180
|
-
}
|
|
181
|
-
), P(B, (i) => {
|
|
182
|
-
i || (S.value = !0), a.disableValidation || (a.withHint && (O.value = i), T(c.value));
|
|
183
|
-
}), P(R, (i) => {
|
|
184
|
-
i ? (f.value = !0, p.value = setTimeout(() => {
|
|
185
|
-
p.value = null, f.value = !1;
|
|
186
|
-
}, G)) : (clearTimeout(p.value), p.value = null, f.value = !1);
|
|
187
|
-
}), ye(
|
|
188
|
-
c,
|
|
189
|
-
(i) => {
|
|
190
|
-
T(i), F.value ? t("input:error", y.value) : t("input:valid");
|
|
191
|
-
},
|
|
192
|
-
// wait for 0.5s before checking validity OR 2s of continuous typing
|
|
193
|
-
{ debounce: a.debounceTime, maxWait: X }
|
|
194
|
-
), a.value && he(
|
|
195
|
-
'BentoInputFieldPassword "value" property',
|
|
196
|
-
`The use of "value" prop in "BentoInputFieldPassword" is no longer supported.
|
|
197
|
-
Use the "v-model" or "model-value" property instead.`,
|
|
198
|
-
"2.0.0"
|
|
199
|
-
), { __sfc: !0, MIN_PASSWORD_LENGTH: Z, DEBOUNCE_DURATION: z, DEBOUNCE_MAX_WAIT: X, TOOLTIP_TIMEOUT: G, t: e, n: d, props: a, emit: t, attrs: v, inputType: h, inputValue: c, isHintDisplayed: O, isTouched: S, passwordValidity: w, errorsList: y, capsLockTooltipTimeoutID: p, isTooltipDisplayed: f, inputFieldPasswordRef: U, inputFieldPasswordInputRef: A, inputFieldPasswordCapsLockIconRef: J, isCapsLockOn: R, focused: B, emitValue: q, validationListId: K, validationPopoverId: M, isPasswordReadable: N, passwordValidityConditionalClass: Y, tooltipConditionalClass: $, inputFieldArgs: j, computedValidations: E, computedValidationList: H, hasErrors: F, hasValidations: I, checkCapsLock: ee, toggleInputType: ae, onUpdateModelValue: te, onFocus: ie, onBlur: oe, checkValidity: T, handleCapsLockMouseLeave: se, handleCapsLockMouseEnter: ne, BentoButton: ve, BentoImage: fe, BentoInputField: me, BentoPopover: _e, BentoTypography: be, Tooltip: Te, CheckmarkCircleFillIcon: Ce, DotIcon: ge, HideIcon: we, ShowIcon: ke, CapsLockIcon: Pe };
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
var He = function() {
|
|
203
|
-
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
204
|
-
return a("div", { ref: "inputFieldPasswordRef" }, [a(e.BentoInputField, t._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { blur: e.onBlur, focus: e.onFocus, "update:model-value": e.onUpdateModelValue, keydown: e.checkCapsLock, keyup: e.checkCapsLock }, scopedSlots: t._u([t.description ? { key: "description", fn: function() {
|
|
205
|
-
return [t._t("description", function() {
|
|
206
|
-
return [t._v(t._s(t.description))];
|
|
207
|
-
})];
|
|
208
|
-
}, proxy: !0 } : null, e.isCapsLockOn ? { key: "iconBefore", fn: function() {
|
|
209
|
-
return [a("div", { staticClass: "b-input-field-password__caps-lock-indicator", on: { mouseenter: e.handleCapsLockMouseEnter, mouseleave: e.handleCapsLockMouseLeave } }, [a(e.BentoImage, { ref: "inputFieldPasswordCapsLockIconRef", attrs: { src: e.CapsLockIcon, alt: e.t("capsLockEnabled") } })], 1), e.inputFieldPasswordCapsLockIconRef ? a(e.Tooltip, { class: e.tooltipConditionalClass, attrs: { content: e.t("capsLockEnabled"), "disabled-focus-trap": !0, "fallback-position": ["top", "bottom"], "is-shown": e.isTooltipDisplayed, "target-element": e.inputFieldPasswordCapsLockIconRef } }) : t._e()];
|
|
210
|
-
}, proxy: !0 } : null, t.disabled ? null : { key: "iconAfter", fn: function() {
|
|
211
|
-
return [a(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: e.toggleInputType }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
212
|
-
return [e.isPasswordReadable ? t._e() : a(e.ShowIcon, { attrs: { "svg-title": e.t("showPassword") } }), e.isPasswordReadable ? a(e.HideIcon, { attrs: { "svg-title": e.t("hidePassword") } }) : t._e()];
|
|
213
|
-
}, proxy: !0 }], null, !1, 956294632) })];
|
|
214
|
-
}, proxy: !0 }], null, !0) }, "bento-input-field", e.inputFieldArgs, !1), [t.label ? [t._v(t._s(t.label))] : [t._t("default")]], 2), e.hasValidations ? a(e.BentoPopover, { attrs: { open: e.isHintDisplayed, "target-element": e.inputFieldPasswordInputRef, "disable-focus-trap": !0, "aria-label": e.computedValidations.title, "aria-describedby": e.validationListId, position: "right-start" } }, [a("div", { attrs: { id: e.validationPopoverId } }, [e.computedValidations.title ? a(e.BentoTypography, { staticClass: "b-input-field-password__validation-title" }, [t._v(" " + t._s(e.computedValidations.title) + " ")]) : t._e(), e.hasErrors ? t._e() : a("p", { staticClass: "b-input-field-password__validation-status--valid", attrs: { role: "alert" } }, [t._v(" " + t._s(e.t("validationValid")) + " ")]), a("ul", { staticClass: "b-input-field-password__validation-list", attrs: { id: e.validationListId } }, t._l(e.computedValidationList, function(d, v) {
|
|
215
|
-
return a("li", { key: v, class: e.passwordValidityConditionalClass[v], attrs: { "aria-live": "polite", "aria-atomic": "true" } }, [a("span", { staticClass: "b-input-field-password__validation-list-icon" }, [e.passwordValidity[v] ? a(e.CheckmarkCircleFillIcon, { attrs: { "svg-title": e.t("validationChecked") } }) : a(e.DotIcon, { attrs: { "svg-title": e.t("validationUnchecked") } })], 1), a(e.BentoTypography, { staticClass: "b-input-field-password__validation-list-text", attrs: { el: "span" } }, [t._v(" " + t._s(d.label) + " ")])], 1);
|
|
216
|
-
}), 0), e.computedValidations.suggestion ? a(e.BentoTypography, { staticClass: "b-input-field-password__validation-suggestion" }, [t._v(" " + t._s(e.computedValidations.suggestion) + " ")]) : t._e()], 1)]) : t._e()], 1);
|
|
217
|
-
}, Fe = [], xe = /* @__PURE__ */ Ve(
|
|
218
|
-
Ne,
|
|
219
|
-
He,
|
|
220
|
-
Fe,
|
|
221
|
-
!1,
|
|
222
|
-
null,
|
|
223
|
-
"57349ba0"
|
|
224
|
-
);
|
|
225
|
-
const na = xe.exports;
|
|
226
|
-
export {
|
|
227
|
-
Ae as a,
|
|
228
|
-
Be as b,
|
|
229
|
-
Ue as c,
|
|
230
|
-
na as i,
|
|
231
|
-
Oe as m,
|
|
232
|
-
Se as r
|
|
233
|
-
};
|
|
234
|
-
//# sourceMappingURL=input-field-password.BKT1mYUw.js.map
|