@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,170 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ie, useAttrs as de, useSlots as se, ref as f, provide as le, inject as x, toRef as ue, computed as n, toRefs as pe } from "vue";
|
|
2
|
-
import { a as ce, I as fe, b as be, B as _e } from "./dropdown.Ct7uhPr6.js";
|
|
3
|
-
import { p as E, d as T, B as me } from "./typography.C8lPlsbD.js";
|
|
4
|
-
import { u as ye } from "./form-field.D_2g7vaP.js";
|
|
5
|
-
import { g as b } from "./generate-uid.NJ8tVoha.js";
|
|
6
|
-
import { g as $ } from "./get-slot-text.Bjb9dTSV.js";
|
|
7
|
-
import { u as ve } from "./aria-label.CaUURpnB.js";
|
|
8
|
-
import { u as he } from "./index.B6WW_F-J.js";
|
|
9
|
-
import { u as we } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
10
|
-
import { u as De } from "./use-has-slot.C9lQZ6nz.js";
|
|
11
|
-
import { F as Ee, E as Te } from "./error-message.RxdStT3S.js";
|
|
12
|
-
import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
13
|
-
import "../assets/input-field.css";
|
|
14
|
-
var s = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.PAYMENT_METHOD = "payment-method", o.STATIC_VALUE = "static-value", o.DROPDOWN = "dropdown", o))(s || {}), d = /* @__PURE__ */ ((o) => (o.START = "start", o.END = "end", o))(d || {}), _ = /* @__PURE__ */ ((o) => (o.CONDENSED = "condensed", o.DISABLED = "disabled", o.READONLY = "readonly", o.ERROR = "error", o))(_ || {}), A = /* @__PURE__ */ ((o) => (o.SEARCH = "search", o.TEXT = "text", o.NUMBER = "number", o))(A || {}), Ie = /* @__PURE__ */ ((o) => (o.INPUT = "input", o.ESCAPE_PRESSED = "escape-pressed", o.UPDATE_DROPDOWN = "update:dropdown", o.DROPDOWN_INPUT = "dropdown-input", o.FOCUS = "focus", o.CHANGE = "change", o.BLUR = "blur", o.KEYDOWN = "keydown", o))(Ie || {});
|
|
15
|
-
const Se = {
|
|
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
|
-
}, Le = {
|
|
20
|
-
name: "bento-input-field",
|
|
21
|
-
model: { prop: "modelValue" },
|
|
22
|
-
i18n: { messages: Se }
|
|
23
|
-
}, ge = /* @__PURE__ */ ie({
|
|
24
|
-
...Le,
|
|
25
|
-
props: {
|
|
26
|
-
description: { default: "" },
|
|
27
|
-
disabled: { type: Boolean, default: !1 },
|
|
28
|
-
errorMessage: { default: null },
|
|
29
|
-
label: { default: "" },
|
|
30
|
-
optional: { type: Boolean, default: !1 },
|
|
31
|
-
placeholder: { default: "" },
|
|
32
|
-
readonly: { type: Boolean, default: !1 },
|
|
33
|
-
required: { type: Boolean, default: !1 },
|
|
34
|
-
tooltipText: { default: null },
|
|
35
|
-
ariaHidden: { type: Boolean, default: !0 },
|
|
36
|
-
ariaLabel: { default: void 0 },
|
|
37
|
-
condensed: { type: Boolean, default: !1 },
|
|
38
|
-
dropdown: { default: void 0 },
|
|
39
|
-
dropdownPosition: { default: d.START },
|
|
40
|
-
error: { type: Boolean, default: !1 },
|
|
41
|
-
modelValue: { default: void 0 },
|
|
42
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
43
|
-
staticValue: { default: "" },
|
|
44
|
-
staticValuePosition: { default: d.START },
|
|
45
|
-
type: { default: A.TEXT },
|
|
46
|
-
value: { default: void 0 },
|
|
47
|
-
variant: { default: s.DEFAULT }
|
|
48
|
-
},
|
|
49
|
-
emits: ["blur", "click", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input", "update:dropdown", "update:model-value"],
|
|
50
|
-
setup(o, { expose: t, emit: a }) {
|
|
51
|
-
const e = o, r = de(), l = se(), { emitValue: I } = ye(a), { t: m } = he(), S = De(l), L = f(null), g = f(null), H = b("input"), y = b("input-dropdown"), v = b("input-static-value"), N = b("input-description"), O = b("input-error"), h = f(!1);
|
|
52
|
-
le(ce, !0);
|
|
53
|
-
const Y = x(fe, f(void 0)), q = () => {
|
|
54
|
-
h.value = !0, a("focus");
|
|
55
|
-
}, W = () => {
|
|
56
|
-
h.value = !1, a("blur");
|
|
57
|
-
}, { isReadOnly: u } = we(ue(e, "readonly")), J = n(
|
|
58
|
-
() => {
|
|
59
|
-
var i;
|
|
60
|
-
return u.value || ((i = e.dropdown) == null ? void 0 : i.readonly);
|
|
61
|
-
}
|
|
62
|
-
), p = n(
|
|
63
|
-
() => e.variant === s.STATIC_VALUE && !!l.staticValue
|
|
64
|
-
), K = n(() => e.variant === s.DEFAULT), j = n(() => e.variant === s.PAYMENT_METHOD), z = n(
|
|
65
|
-
() => p.value && e.staticValuePosition === d.START
|
|
66
|
-
), X = n(
|
|
67
|
-
() => p.value && e.staticValuePosition === d.END
|
|
68
|
-
), c = n(() => e.variant === s.DROPDOWN && !!e.dropdown), Z = n(
|
|
69
|
-
() => c.value && e.dropdownPosition === d.START
|
|
70
|
-
), G = n(
|
|
71
|
-
() => c.value && e.dropdownPosition === d.END
|
|
72
|
-
), w = n(
|
|
73
|
-
() => !e.disabled && !u.value && (!!e.errorMessage || e.error)
|
|
74
|
-
), C = n(() => $(l)("default") || e.label), P = n(() => $(l)("description") || e.description), Q = n(() => c.value === !0 && p.value === !0 ? `${v} ${y}` : c.value === !0 ? `${y}` : p.value === !0 ? `${v}` : null), F = n(() => m("ariaLabelFallback")), B = n(
|
|
75
|
-
() => m("ariaLabelDropdownFallback", { inputLabel: V.value })
|
|
76
|
-
), R = f(r["aria-label"]), { ariaLabel: k } = pe(e), V = ve({
|
|
77
|
-
ariaLabel: R.value,
|
|
78
|
-
// TODO: take this line away when the aria-label props is removed
|
|
79
|
-
label: k,
|
|
80
|
-
defaultFallback: C.value || F
|
|
81
|
-
}), ee = n(
|
|
82
|
-
() => `${P.value ? N : ""} ${w.value && e.errorMessage ? O : ""}`
|
|
83
|
-
), te = n(() => ({
|
|
84
|
-
[`b-input-field--${_.CONDENSED}`]: e.condensed,
|
|
85
|
-
[`b-input-field--${_.DISABLED}`]: e.disabled,
|
|
86
|
-
[`b-input-field--${_.READONLY}`]: u.value,
|
|
87
|
-
[`b-input-field--${_.ERROR}`]: w.value,
|
|
88
|
-
"b-input-field--slashed-zero": e.slashedZero
|
|
89
|
-
})), oe = n(() => ({
|
|
90
|
-
"aria-label": B.value,
|
|
91
|
-
...e.dropdown
|
|
92
|
-
})), ae = (i) => {
|
|
93
|
-
const re = i.target.value;
|
|
94
|
-
!e.disabled && !u.value && I(re);
|
|
95
|
-
}, ne = (i) => {
|
|
96
|
-
a("dropdown-input", i), a("update:dropdown", { ...e == null ? void 0 : e.dropdown, value: i });
|
|
97
|
-
}, D = () => {
|
|
98
|
-
L.value.focus();
|
|
99
|
-
}, M = () => {
|
|
100
|
-
e.variant === "dropdown" ? g.value.focus() : D();
|
|
101
|
-
};
|
|
102
|
-
t({
|
|
103
|
-
focusInput: D,
|
|
104
|
-
focus: M
|
|
105
|
-
});
|
|
106
|
-
const U = x(be, "");
|
|
107
|
-
return !Object.values(A).includes(e.type) && !U && (e.type === "tel" ? E(
|
|
108
|
-
`"bento-input-field" dropdown does not support the type '${e.type}', use "bento-input-field-phone-number" instead.`
|
|
109
|
-
) : e.type === "password" ? E(
|
|
110
|
-
`"bento-input-field" dropdown does not support the type '${e.type}', use "bento-input-field-password" instead.`
|
|
111
|
-
) : E(`"bento-input-field" dropdown does not support the type '${e.type}'`)), e.error && T(
|
|
112
|
-
'BentoInputField "error" property',
|
|
113
|
-
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
114
|
-
Having the field as "undefined" will hide/remove the error.
|
|
115
|
-
<bento-dropdown errorMessage="Error message text" />`,
|
|
116
|
-
"2.0.0"
|
|
117
|
-
), S("defaultIconBefore") && T(
|
|
118
|
-
'BentoInputField "defaultIconBefore" slot',
|
|
119
|
-
`Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
|
|
120
|
-
<bento-input-field>
|
|
121
|
-
<template #iconBefore>
|
|
122
|
-
<my-icon-goes-here />
|
|
123
|
-
</template>
|
|
124
|
-
</bento-input-field>`,
|
|
125
|
-
"2.0.0"
|
|
126
|
-
), e.value && T(
|
|
127
|
-
'BentoInputField "value" property',
|
|
128
|
-
`The use of "value" prop in "BentoInputField" is no longer supported.
|
|
129
|
-
Use the "v-model" or "model-value" property instead.`,
|
|
130
|
-
"2.0.0"
|
|
131
|
-
), { __sfc: !0, attrs: r, slots: l, props: e, emit: a, emitValue: I, t: m, hasSlot: S, inputFieldElement: L, inputDropdownElement: g, inputFieldId: H, dropdownId: y, staticValueId: v, descriptionId: N, errorId: O, isFocused: h, hint: Y, onFocus: q, onBlur: W, isReadOnly: u, isDropdownReadOnly: J, shouldShowStaticValue: p, isDefaultVariant: K, isPaymentMethodVariant: j, shouldDisplayStaticValueAtStart: z, shouldDisplayStaticValueAtEnd: X, shouldShowDropdown: c, shouldDisplayDropdownAtStart: Z, shouldDisplayDropdownAtEnd: G, shouldShowError: w, computedLabel: C, computedDescription: P, computedAriaOwns: Q, computedAriaLabelFallbackMessage: F, computedAriaLabelDropdowFallback: B, ariaLabelAttribute: R, ariaLabel: k, computedAriaLabel: V, computedAriaDescribedBy: ee, inputFieldConditionalClasses: te, inputFieldDropdownProps: oe, onInput: ae, onDropdownInput: ne, focusInput: D, focus: M, inputFieldParentComponent: U, BentoDropdown: _e, BentoTypography: me, ErrorMessage: Te, FieldLabel: Ee };
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
var Ne = function() {
|
|
135
|
-
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
136
|
-
return a(e.BentoTypography, { staticClass: "b-input-field", class: e.inputFieldConditionalClasses, attrs: { "data-testid": "input-text-container", el: "div", variant: "body" } }, [e.hasSlot("default") || t.label ? a(e.FieldLabel, { attrs: { for: e.inputFieldId, "data-testid": "input-field-label", "tooltip-text": t.tooltipText, optional: t.optional, required: t.required, label: t.label }, on: { click: e.focusInput } }, [t._t("default")], 2) : t._e(), a("div", { staticClass: "b-input-field__input-box", attrs: { "data-testid": "input-box", "aria-disabled": t.disabled }, on: { click: e.focusInput } }, [e.isDefaultVariant && (e.hasSlot("defaultIconBefore") || e.hasSlot("iconBefore")) ? a("span", { staticClass: "b-input-field__icon-before", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [e.hasSlot("iconBefore") ? t._t("iconBefore") : t._e(), e.hasSlot("defaultIconBefore") && !e.hasSlot("iconBefore") ? t._t("defaultIconBefore") : t._e()], 2) : t._e(), e.isPaymentMethodVariant && e.hasSlot("paymentMethod") ? a("span", { staticClass: "b-input-field__payment-method", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [t._t("paymentMethod")], 2) : t._e(), e.shouldDisplayDropdownAtStart ? a("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--start", attrs: { id: e.dropdownId }, on: { click: function(r) {
|
|
137
|
-
r.stopPropagation();
|
|
138
|
-
} } }, [t.dropdown ? a(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { disabled: t.disabled, readonly: e.isDropdownReadOnly }, on: { "update:model-value": e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e(), e.shouldDisplayStaticValueAtStart ? a(e.BentoTypography, { staticClass: "b-input-field__static-value b-input-field__static-value--start", attrs: { id: e.staticValueId, el: "span", variant: "body" } }, [t._t("staticValue")], 2) : t._e(), a("div", { staticClass: "b-input-field__input-container" }, [a("input", t._b({ ref: "inputFieldElement", staticClass: "b-input-field__input", attrs: { id: e.inputFieldId, "aria-label": e.computedAriaLabel, "aria-describedby": e.computedAriaDescribedBy, "aria-owns": e.computedAriaOwns, "aria-invalid": e.shouldShowError, placeholder: t.placeholder, required: t.required, "aria-required": t.required, type: t.type, disabled: t.disabled, readonly: e.isReadOnly }, domProps: { value: t.modelValue ?? t.value }, on: { input: e.onInput, change: function(r) {
|
|
139
|
-
return e.emit("change");
|
|
140
|
-
}, focus: e.onFocus, blur: e.onBlur, keydown: [function(r) {
|
|
141
|
-
return e.emit("keydown", r);
|
|
142
|
-
}, function(r) {
|
|
143
|
-
return !r.type.indexOf("key") && t._k(r.keyCode, "esc", 27, r.key, ["Esc", "Escape"]) ? null : e.emit("escape-pressed");
|
|
144
|
-
}], keyup: function(r) {
|
|
145
|
-
return e.emit("keyup", r);
|
|
146
|
-
}, click: function(r) {
|
|
147
|
-
return e.emit("click", r);
|
|
148
|
-
} } }, "input", e.attrs, !1)), e.hint && e.isFocused && (t.modelValue || t.value) ? a(e.BentoTypography, { staticClass: "b-input-field__hint", attrs: { el: "span" } }, [t._v(" " + t._s(e.hint) + " ")]) : t._e()], 1), e.hasSlot("iconAfter") ? a("span", { staticClass: "b-input-field__icon-after", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0, "data-testid": "input-text__icon-after" } }, [t._t("iconAfter")], 2) : t._e(), e.shouldDisplayStaticValueAtEnd ? a(e.BentoTypography, { staticClass: "b-input-field__static-value b-input-field__static-value--end", attrs: { id: e.staticValueId, el: "span", variant: "body" } }, [t._t("staticValue")], 2) : t._e(), e.shouldDisplayDropdownAtEnd ? a("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--end", attrs: { id: e.dropdownId, "data-testid": "input-field-dropdown-container-end" }, on: { click: function(r) {
|
|
149
|
-
r.stopPropagation();
|
|
150
|
-
} } }, [t.dropdown ? a(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { id: e.dropdownId, disabled: t.disabled, readonly: e.isDropdownReadOnly }, on: { "update:model-value": e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e()], 1), e.shouldShowError && t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-input-field__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), e.hasSlot("description") || t.description ? a("span", { staticClass: "b-input-field__description", attrs: { id: e.descriptionId }, on: { click: e.focusInput } }, [a(e.BentoTypography, { attrs: { el: "span", variant: "body" } }, [t._t("description", function() {
|
|
151
|
-
return [t._v(" " + t._s(t.description) + " ")];
|
|
152
|
-
}, { id: "description" })], 2)], 1) : t._e()], 1);
|
|
153
|
-
}, Oe = [], Ce = /* @__PURE__ */ Ae(
|
|
154
|
-
ge,
|
|
155
|
-
Ne,
|
|
156
|
-
Oe,
|
|
157
|
-
!1,
|
|
158
|
-
null,
|
|
159
|
-
"4ddfa1f9"
|
|
160
|
-
);
|
|
161
|
-
const qe = Ce.exports;
|
|
162
|
-
export {
|
|
163
|
-
qe as B,
|
|
164
|
-
d as a,
|
|
165
|
-
Ie as b,
|
|
166
|
-
_ as c,
|
|
167
|
-
A as d,
|
|
168
|
-
s as e
|
|
169
|
-
};
|
|
170
|
-
//# sourceMappingURL=input-field.m1PMwa4C.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-field.m1PMwa4C.js","sources":["../../src/components/input-field/input-field.types.ts","../../src/components/input-field/input-field.vue"],"sourcesContent":["import { type BentoDropdownProps } from '../dropdown/dropdown.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = BentoDropdownProps;\nexport interface BentoInputDropdownProps {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n /**\n * List of available items\n */\n items: DropdownProps['items'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: DropdownProps['readonly'];\n /**\n * Selected value of the dropdown\n * @deprecated Use `model-value` instead.\n */\n value?: DropdownProps['value'];\n /**\n * Selected value of the dropdown\n */\n modelValue?: DropdownProps['modelValue'];\n}\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps extends FormField {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `aria-label`: Text that labels the dropdown element\n * - `dynamicFiltering`: Enables dynamic filtering\n * - `items`: List of available items\n * - `readonly`: Sets the dropdown in read-only mode\n * - `value`: Selected value of the dropdown\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldValue;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default') || label\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n :label=\"label\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :required=\"required\"\n :aria-required=\"required\"\n :type=\"type\"\n :value=\"modelValue ?? value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n @click=\"emit('click', $event)\"\n />\n\n <!-- Hint at the end -->\n <bento-typography\n v-if=\"hint && isFocused && (modelValue || value)\"\n el=\"span\"\n class=\"b-input-field__hint\"\n >\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span\n v-if=\"hasSlot('description') || description\"\n :id=\"descriptionId\"\n class=\"b-input-field__description\"\n @click=\"focusInput\"\n >\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, type Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n type BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n type BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n type BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n description: { default: '' },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: { default: '' },\n optional: { type: Boolean, default: false },\n placeholder: { default: '' },\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n ariaHidden: { type: Boolean, default: true },\n ariaLabel: { default: undefined },\n condensed: { type: Boolean, default: false },\n dropdown: { default: undefined },\n dropdownPosition: { default: BentoInputFieldElementPosition.START },\n error: { type: Boolean, default: false },\n modelValue: { default: undefined },\n slashedZero: { type: Boolean, default: false },\n staticValue: { default: '' },\n staticValuePosition: { default: BentoInputFieldElementPosition.START },\n type: { default: BentoInputFieldType.TEXT },\n value: { default: undefined },\n variant: { default: BentoInputFieldVariant.DEFAULT }\n});\n\n const emit = defineEmits([\"blur\", \"click\", \"change\", \"dropdown-input\", \"escape-pressed\", \"focus\", \"keydown\", \"keyup\", \"input\", \"update:dropdown\", \"update:model-value\"]);\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldValue>(emit);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const isDropdownReadOnly = computed<BentoInputDropdownProps['readonly']>(\n () => isReadOnly.value || props.dropdown?.readonly\n );\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedLabel = computed(() => (getSlotText(slots)('default') as string) || props.label);\n const computedDescription = computed(() => (getSlotText(slots)('description') as string) || props.description);\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: computedLabel.value || computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${computedDescription.value ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emitValue(inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n\n if (props.value) {\n deprecate(\n 'BentoInputField \"value\" property',\n `The use of \"value\" prop in \"BentoInputField\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :model-value=\"inputValue\"\n * :@update:model-value=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n name: 'bento-input-field',\n model: { prop: 'modelValue' },\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","emitValue","useFormFieldEmits","emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","props","isDropdownReadOnly","computed","_a","shouldShowStaticValue","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedLabel","getSlotText","computedDescription","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","focus","expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":";;;;;;;;;;;;;AAMO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,iBAAA,kBACAA,EAAA,eAAA,gBACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAKLE,IAAA,kBAAAC,OACHA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA,GA0CLE,KAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,kBAAA,mBACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,UAAA,WARQA,IAAAD,MAAA,CAAA,CAAA;;;;;GC0XRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAAA,EACsB,MAAA,EAAA,UAAAC,GAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvPAC,IAAAC,GAAA,GACAC,IAAAC,GAAA,GA6BA,EAAA,WAAAC,EAAA,IAAAC,GAAAC,CAAA,GAEA,EAAA,GAAAC,EAAA,IAAAC,GAAA,GACAC,IAAAC,GAAAR,CAAA,GACAS,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE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105 +0,0 @@
|
|
|
1
|
-
import { ref as p, watch as T, defineComponent as F, computed as v, nextTick as L } from "vue";
|
|
2
|
-
import { d as x, B as M } from "./typography.C8lPlsbD.js";
|
|
3
|
-
import { B as k } from "./button.DxhJNOtr.js";
|
|
4
|
-
import { B as A } from "./loading-indicator.PxbRzshH.js";
|
|
5
|
-
import { B as I, s as O, g as H, a as w, f as D } from "./focus-trap.DRqjHzt6.js";
|
|
6
|
-
import { E as P } from "./expand.Bbielaja.js";
|
|
7
|
-
import { C as R } from "./cross.CC_B-vG-.js";
|
|
8
|
-
import { g as z } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
-
import { u as N } from "./index.B6WW_F-J.js";
|
|
10
|
-
import { a as V, b as $ } from "./index.CwzYJHw2.js";
|
|
11
|
-
import { n as G } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
12
|
-
import "../assets/inspector.css";
|
|
13
|
-
function K(r) {
|
|
14
|
-
const t = p([]), e = V();
|
|
15
|
-
return T(e, (a) => {
|
|
16
|
-
!r.value || !a || !r.value.contains(a) || (t.value.unshift(a), t.value.length > 3 && t.value.pop());
|
|
17
|
-
}), {
|
|
18
|
-
findValidFocusFallback: () => {
|
|
19
|
-
for (const a of t.value)
|
|
20
|
-
if (a && document.body.contains(a))
|
|
21
|
-
return a;
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const Y = {
|
|
27
|
-
"en-US": { close: "Close", expand: "Expand", inspector: "Inspector", returnToMainContent: "Return to main content (Ctrl+Shift+S)", returnToMainContentDescription: "You can use Ctrl + Shift + S to navigate between the inspector and page sections." },
|
|
28
|
-
"ja-JP": { close: "閉じる", expand: "展開", inspector: "インスペクター", returnToMainContent: "メインコンテンツに戻る(Ctrl+Shift+S)", returnToMainContentDescription: "Ctrl + Shift + S を使用して、インスペクターとページセクション間を移動できます。" },
|
|
29
|
-
"pt-BR": { close: "Fechar", expand: "Expandir", inspector: "Inspetor", returnToMainContent: "Voltar ao conteúdo principal (Ctrl+Shift+S)", returnToMainContentDescription: "Você pode usar Ctrl + Shift + S para navegar entre as seções do inspetor e da página." }
|
|
30
|
-
}, U = { i18n: { messages: Y } }, X = /* @__PURE__ */ F({
|
|
31
|
-
...U,
|
|
32
|
-
__name: "inspector",
|
|
33
|
-
props: {
|
|
34
|
-
activePage: { default: "" },
|
|
35
|
-
expandable: { type: Boolean, default: !1 },
|
|
36
|
-
isOpen: { type: Boolean, default: !1 },
|
|
37
|
-
loading: { type: Boolean, default: !1 },
|
|
38
|
-
size: { default: "small" },
|
|
39
|
-
title: null,
|
|
40
|
-
relativeLayout: { default: "push-content" },
|
|
41
|
-
pageFocusAnchor: { default: null }
|
|
42
|
-
},
|
|
43
|
-
emits: ["update:is-open", "update:active-page", "expand"],
|
|
44
|
-
setup(r, { emit: n }) {
|
|
45
|
-
const t = r, { t: e } = N(), s = z("returnToMainContentDescription"), a = p(null), l = p(null), g = p(null), u = p(null), { width: m } = $(a), d = v(() => {
|
|
46
|
-
const C = t.size === "small" ? 740 : 915;
|
|
47
|
-
return m.value > 0 && m.value < C;
|
|
48
|
-
}), c = v(() => t.pageFocusAnchor), y = v(() => ({
|
|
49
|
-
[`b-inspector--${t.size}`]: !0,
|
|
50
|
-
[`b-inspector--${t.relativeLayout}`]: !0,
|
|
51
|
-
"b-inspector--is-compact": d.value
|
|
52
|
-
})), S = v(() => `${e("inspector")}, ${t.title}`), { findValidFocusFallback: f } = K(g), b = async () => {
|
|
53
|
-
t.isOpen ? (await L(), O(l.value, c.value)) : i(c.value ?? f());
|
|
54
|
-
}, B = (o) => {
|
|
55
|
-
if (d.value)
|
|
56
|
-
return;
|
|
57
|
-
const _ = o.shiftKey ? -1 : 1, C = H(_, l.value);
|
|
58
|
-
w() === C && (o.preventDefault(), u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0));
|
|
59
|
-
}, E = (o) => {
|
|
60
|
-
const _ = o.shiftKey && o.ctrlKey && o.key === "S";
|
|
61
|
-
t.isOpen && !d.value && _ && h();
|
|
62
|
-
}, h = () => {
|
|
63
|
-
D(l.value) ? (u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0)) : i(u.value);
|
|
64
|
-
}, i = (o) => {
|
|
65
|
-
o && (o == null || o.focus(), document.activeElement !== o && i(o.parentElement));
|
|
66
|
-
};
|
|
67
|
-
return T(
|
|
68
|
-
() => t.activePage,
|
|
69
|
-
() => {
|
|
70
|
-
t.activePage && b();
|
|
71
|
-
}
|
|
72
|
-
), t.activePage || x(
|
|
73
|
-
'BentoInspector "active-page" as optional',
|
|
74
|
-
`Make sure to set the "active-page" prop and keep it in sync with "update:active-page".
|
|
75
|
-
"active-page" prop will be required in the next version`,
|
|
76
|
-
"2.0.0"
|
|
77
|
-
), { __sfc: !0, props: t, emit: n, t: e, returnToMainContentDescriptionId: s, wrapper: a, inspector: l, page: g, inspectorLastFocusedElement: u, wrapperWidth: m, isCompact: d, computedPageLastFocusedElement: c, conditionalClass: y, inspectorAriaLabel: S, findValidFocusFallback: f, setFocus: b, handleTabNavigation: B, handleSectionFocus: E, moveFocusBetweenSections: h, focusElement: i, BentoTypography: M, BentoButton: k, BentoLoadingIndicator: A, BentoFocusTrap: I, ExpandIcon: P, CrossIcon: R };
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
var j = function() {
|
|
81
|
-
var n = this, t = n._self._c, e = n._self._setupProxy;
|
|
82
|
-
return t("div", { ref: "wrapper", staticClass: "b-inspector", class: e.conditionalClass, on: { keydown: e.handleSectionFocus } }, [t("div", { ref: "page", staticClass: "b-inspector__page-wrapper" }, [t("div", { staticClass: "b-inspector__page" }, [n._t("page")], 2)]), t("Transition", { attrs: { name: "b-inspector__animation", mode: "out-in" }, on: { "before-enter": e.setFocus, "after-leave": e.setFocus } }, [n.isOpen ? t("aside", { ref: "inspector", staticClass: "b-inspector__container-wrapper", attrs: { "aria-label": e.inspectorAriaLabel }, on: { keydown: function(s) {
|
|
83
|
-
return !s.type.indexOf("key") && n._k(s.keyCode, "tab", 9, s.key, "Tab") ? null : e.handleTabNavigation.apply(null, arguments);
|
|
84
|
-
} } }, [t(e.BentoFocusTrap, { attrs: { disabled: !e.isCompact } }, [t("div", { staticClass: "b-inspector__container" }, [t("div", { staticClass: "b-inspector__header" }, [e.isCompact ? n._e() : [t(e.BentoButton, { staticClass: "b-inspector__return-content", attrs: { variant: "secondary", condensed: "", "aria-describedby": e.returnToMainContentDescriptionId }, on: { click: e.moveFocusBetweenSections } }, [n._v(" " + n._s(e.t("returnToMainContent")) + " ")]), t("span", { staticClass: "b-inspector__return-content-description", attrs: { id: e.returnToMainContentDescriptionId } }, [n._v(n._s(e.t("returnToMainContentDescription")))])], t(e.BentoTypography, { staticClass: "b-inspector__title", attrs: { el: "h2", variant: "title" } }, [n._v(" " + n._s(n.title) + " ")]), t("div", { staticClass: "b-inspector__icons" }, [n.expandable ? t(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(s) {
|
|
85
|
-
return e.emit("expand");
|
|
86
|
-
} }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
|
|
87
|
-
return [t(e.ExpandIcon, { attrs: { "svg-title": e.t("expand") } })];
|
|
88
|
-
}, proxy: !0 }], null, !1, 1210869445) }) : n._e(), t(e.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(s) {
|
|
89
|
-
return e.emit("update:is-open", !1);
|
|
90
|
-
} }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
|
|
91
|
-
return [t(e.CrossIcon, { attrs: { "svg-title": e.t("close") } })];
|
|
92
|
-
}, proxy: !0 }], null, !1, 858730413) })], 1)], 2), t("div", { staticClass: "b-inspector__content" }, [n.loading ? t(e.BentoLoadingIndicator, { staticClass: "b-inspector__loading-indicator", attrs: { large: "" } }) : n._t("content")], 2)])])], 1) : n._e()])], 1);
|
|
93
|
-
}, q = [], J = /* @__PURE__ */ G(
|
|
94
|
-
X,
|
|
95
|
-
j,
|
|
96
|
-
q,
|
|
97
|
-
!1,
|
|
98
|
-
null,
|
|
99
|
-
"62a28c4d"
|
|
100
|
-
);
|
|
101
|
-
const ct = J.exports;
|
|
102
|
-
export {
|
|
103
|
-
ct as B
|
|
104
|
-
};
|
|
105
|
-
//# sourceMappingURL=inspector.Bnm0hl_D.js.map
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { watch as P } from "vue";
|
|
2
|
-
import { n as A, u as a, r as k, d as w, i as v } from "./utils.BzUwtTXc.js";
|
|
3
|
-
const I = (o) => typeof o == "string";
|
|
4
|
-
function h(...o) {
|
|
5
|
-
let c, n, r, l;
|
|
6
|
-
if (I(o[0]) || Array.isArray(o[0]) ? ([n, r, l] = o, c = w) : [c, n, r, l] = o, !c)
|
|
7
|
-
return A;
|
|
8
|
-
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
9
|
-
const f = [], m = () => {
|
|
10
|
-
f.forEach((s) => s()), f.length = 0;
|
|
11
|
-
}, i = (s, p, t, e) => (s.addEventListener(p, t, e), () => s.removeEventListener(p, t, e)), d = P(
|
|
12
|
-
() => [a(c), k(l)],
|
|
13
|
-
([s, p]) => {
|
|
14
|
-
m(), s && f.push(
|
|
15
|
-
...n.flatMap(
|
|
16
|
-
(t) => r.map(
|
|
17
|
-
(e) => i(
|
|
18
|
-
s,
|
|
19
|
-
t,
|
|
20
|
-
e,
|
|
21
|
-
p
|
|
22
|
-
)
|
|
23
|
-
)
|
|
24
|
-
)
|
|
25
|
-
);
|
|
26
|
-
},
|
|
27
|
-
{ immediate: !0, flush: "post" }
|
|
28
|
-
);
|
|
29
|
-
return () => {
|
|
30
|
-
d(), m();
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
let E = !1;
|
|
34
|
-
function W(o, c, n = {}) {
|
|
35
|
-
const { window: r = w, ignore: l = [], capture: f = !0, detectIframe: m = !1 } = n;
|
|
36
|
-
if (!r)
|
|
37
|
-
return;
|
|
38
|
-
v && !E && (E = !0, Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", A)));
|
|
39
|
-
let i = !0;
|
|
40
|
-
const d = (t) => (
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
42
|
-
l.some((e) => {
|
|
43
|
-
if (typeof e == "string")
|
|
44
|
-
return Array.from(r.document.querySelectorAll(e)).some(
|
|
45
|
-
(y) => y === t.target || t.composedPath().includes(y)
|
|
46
|
-
);
|
|
47
|
-
const u = a(e);
|
|
48
|
-
return u && (t.target === u || t.composedPath().includes(u));
|
|
49
|
-
})
|
|
50
|
-
), s = [
|
|
51
|
-
h(r, "click", (t) => {
|
|
52
|
-
const e = a(o);
|
|
53
|
-
if (!(!e || e === t.target || t.composedPath().includes(e))) {
|
|
54
|
-
if (t.detail === 0 && (i = !d(t)), !i) {
|
|
55
|
-
i = !0;
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
c(t);
|
|
59
|
-
}
|
|
60
|
-
}, { passive: !0, capture: f }),
|
|
61
|
-
h(
|
|
62
|
-
r,
|
|
63
|
-
"pointerdown",
|
|
64
|
-
(t) => {
|
|
65
|
-
const e = a(o);
|
|
66
|
-
e && (i = !t.composedPath().includes(e) && !d(t));
|
|
67
|
-
},
|
|
68
|
-
{ passive: !0 }
|
|
69
|
-
),
|
|
70
|
-
h(
|
|
71
|
-
r,
|
|
72
|
-
"pointerup",
|
|
73
|
-
(t) => {
|
|
74
|
-
const e = a(o);
|
|
75
|
-
e && (i = i && !t.composedPath().includes(e) && !d(t));
|
|
76
|
-
},
|
|
77
|
-
{ passive: !0 }
|
|
78
|
-
),
|
|
79
|
-
m && h(r, "blur", (t) => {
|
|
80
|
-
var u;
|
|
81
|
-
const e = a(o);
|
|
82
|
-
((u = r.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(e != null && e.contains(r.document.activeElement)) && c(t);
|
|
83
|
-
})
|
|
84
|
-
].filter(Boolean);
|
|
85
|
-
return () => s.forEach((t) => t());
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
W as o,
|
|
89
|
-
h as u
|
|
90
|
-
};
|
|
91
|
-
//# sourceMappingURL=on-click-outside.BW4rkhzG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"on-click-outside.BW4rkhzG.js","sources":["../../src/directives/click-outside/useEventListener/index.ts","../../src/directives/click-outside/on-click-outside.ts"],"sourcesContent":["import type { Fn } from '@/types/functions';\nimport type { MaybeComputedRef } from '@/types/refs';\nimport type { Arrayable, GeneralEventListener } from './types';\nimport { watch } from 'vue';\nimport { defaultWindow, noop, resolveUnref, unrefElement } from '../utils';\n\n/**\n * Verify type of input value\n * @param val Value to be evaluated as string\n * @returns {boolean} true if the value is a \"string\", false if it's something else\n */\nconst isString = (val: unknown): val is string => typeof val === 'string';\n\n/**\n * Register using addEventListener on mounted, and removeEventListener automatically on unmounted.\n *\n * Overload 1: Omitted Window target\n *\n * @see https://vueuse.org/useEventListener\n * @param event\n * @param listener\n * @param options\n */\nexport function useEventListener<E extends keyof WindowEventMap>(\n event: Arrayable<E>,\n listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>,\n options?: MaybeComputedRef<boolean | AddEventListenerOptions>\n): Fn;\n\n/**\n * Register using addEventListener on mounted, and removeEventListener automatically on unmounted.\n *\n * Overload 2: Explicitly Window target\n *\n * @see https://vueuse.org/useEventListener\n * @param target\n * @param event\n * @param listener\n * @param options\n */\nexport function useEventListener<E extends keyof WindowEventMap>(\n target: Window,\n event: Arrayable<E>,\n listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>,\n options?: MaybeComputedRef<boolean | AddEventListenerOptions>\n): Fn;\n\n/**\n * Register using addEventListener on mounted, and removeEventListener automatically on unmounted.\n *\n * Overload 3: Explicitly Document target\n *\n * @see https://vueuse.org/useEventListener\n * @param target\n * @param event\n * @param listener\n * @param options\n */\nexport function useEventListener<E extends keyof DocumentEventMap>(\n target: DocumentOrShadowRoot,\n event: Arrayable<E>,\n listener: Arrayable<(this: Document, ev: DocumentEventMap[E]) => unknown>,\n options?: MaybeComputedRef<boolean | AddEventListenerOptions>\n): Fn;\n\n/**\n * Register using addEventListener on mounted, and removeEventListener automatically on unmounted.\n *\n * Overload 4: Custom event target with event type infer\n *\n * @see https://vueuse.org/useEventListener\n * @param target\n * @param event\n * @param listener\n * @param options\n */\nexport function useEventListener<Names extends string, EventType = Event>(\n target: EventTarget,\n event: Arrayable<Names>,\n listener: Arrayable<GeneralEventListener<EventType>>,\n options?: MaybeComputedRef<boolean | AddEventListenerOptions>\n): Fn;\n\n/**\n * Register using addEventListener on mounted, and removeEventListener automatically on unmounted.\n *\n * Overload 5: Custom event target fallback\n *\n * @see https://vueuse.org/useEventListener\n * @param target\n * @param event\n * @param listener\n * @param options\n */\nexport function useEventListener<EventType = Event>(\n target: MaybeComputedRef<EventTarget | null | undefined>,\n event: Arrayable<string>,\n listener: Arrayable<GeneralEventListener<EventType>>,\n options?: MaybeComputedRef<boolean | AddEventListenerOptions>\n): Fn;\n\nexport function useEventListener(...args) {\n let target: MaybeComputedRef<EventTarget> | undefined;\n let events: Arrayable<string>;\n let listeners: Arrayable<EventListenerOrEventListenerObject>;\n let options: MaybeComputedRef<boolean | AddEventListenerOptions> | undefined;\n\n if (isString(args[0]) || Array.isArray(args[0])) {\n [events, listeners, options] = args;\n target = defaultWindow;\n } else {\n [target, events, listeners, options] = args;\n }\n\n if (!target) {\n return noop;\n }\n\n if (!Array.isArray(events)) {\n events = [events];\n }\n\n if (!Array.isArray(listeners)) {\n listeners = [listeners];\n }\n\n const cleanups: Array<() => void> = [];\n const cleanup = () => {\n cleanups.forEach(fn => fn());\n cleanups.length = 0;\n };\n\n const register = (\n el: EventTarget,\n event: string,\n listener: EventListenerOrEventListenerObject,\n registerOptions: boolean | AddEventListenerOptions\n ) => {\n // eslint-disable-next-line scanjs-rules/call_addEventListener\n el.addEventListener(event, listener, registerOptions);\n return () => el.removeEventListener(event, listener, registerOptions);\n };\n\n const stopWatch = watch(\n () => [unrefElement(target as any), resolveUnref(options)],\n ([el, stopWatchOptions]) => {\n cleanup();\n\n if (!el) {\n return;\n }\n\n cleanups.push(\n ...(events as Array<string>).flatMap(event =>\n (listeners as Array<EventListenerOrEventListenerObject>).map(listener =>\n register(\n el as EventTarget,\n event,\n listener as EventListenerOrEventListenerObject,\n stopWatchOptions as boolean | AddEventListenerOptions\n )\n )\n )\n );\n },\n { immediate: true, flush: 'post' }\n );\n\n const stop = () => {\n stopWatch();\n cleanup();\n };\n\n return stop;\n}\n","import type { Fn } from '@/types/functions';\nimport type { MaybeElementRef } from '@/types/elements';\nimport type { OnClickOutsideHandler, OnClickOutsideOptions } from './types';\nimport { useEventListener } from './useEventListener';\nimport { defaultWindow, isIOS, noop, unrefElement } from './utils';\n\n// eslint-disable-next-line no-underscore-dangle\nlet _iOSWorkaround = false;\n\n/**\n * Listen for clicks outside of an element.\n *\n * @see https://vueuse.org/onClickOutside\n * @param target\n * @param handler\n * @param options\n */\nexport function onClickOutside<T extends OnClickOutsideOptions>(\n target: MaybeElementRef,\n handler: OnClickOutsideHandler,\n options: T = {} as T\n) {\n const { window = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;\n\n if (!window) {\n return;\n }\n\n // Fixes \"onClickOutside not working on Safari iOS\": https://github.com/vueuse/vueuse/issues/1520\n // How it works: https://stackoverflow.com/a/39712411\n if (isIOS && !_iOSWorkaround) {\n _iOSWorkaround = true;\n // eslint-disable-next-line scanjs-rules/call_addEventListener\n Array.from(window.document.body.children).forEach((el: Element) => el.addEventListener('click', noop));\n }\n\n let shouldListen = true;\n\n const shouldIgnore = (event: PointerEvent) =>\n // eslint-disable-next-line @typescript-eslint/no-shadow\n ignore.some(target => {\n if (typeof target === 'string') {\n return Array.from(window.document.querySelectorAll(target)).some(\n (el: Element) => el === event.target || event.composedPath().includes(el)\n );\n }\n\n const el = unrefElement(target as any) as EventTarget;\n return el && (event.target === el || event.composedPath().includes(el));\n });\n\n const listener = (event: PointerEvent) => {\n const el = unrefElement(target as any) as EventTarget;\n\n if (!el || el === event.target || event.composedPath().includes(el)) {\n return;\n }\n\n if (event.detail === 0) {\n shouldListen = !shouldIgnore(event);\n }\n\n if (!shouldListen) {\n shouldListen = true;\n return;\n }\n\n handler(event);\n };\n\n const cleanup = [\n useEventListener(window, 'click', listener, { passive: true, capture }),\n useEventListener(\n window,\n 'pointerdown',\n e => {\n const el = unrefElement(target as any) as EventTarget;\n if (el) {\n shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);\n }\n },\n { passive: true }\n ),\n useEventListener(\n window,\n 'pointerup',\n e => {\n const el = unrefElement(target as any) as EventTarget;\n if (el) {\n shouldListen = shouldListen && !e.composedPath().includes(el) && !shouldIgnore(e);\n }\n },\n { passive: true }\n ),\n detectIframe &&\n useEventListener(window, 'blur', event => {\n const el: Element = unrefElement(target as any);\n if (\n window.document.activeElement?.tagName === 'IFRAME' &&\n !el?.contains(window.document.activeElement)\n ) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n handler(event as any);\n }\n }),\n ].filter(Boolean) as Array<Fn>;\n\n const stop = () => cleanup.forEach(fn => fn());\n\n // eslint-disable-next-line consistent-return\n return stop;\n}\n"],"names":["isString","val","useEventListener","args","target","events","listeners","options","defaultWindow","noop","cleanups","cleanup","fn","register","el","event","listener","registerOptions","stopWatch","watch","unrefElement","resolveUnref","stopWatchOptions","_iOSWorkaround","onClickOutside","handler","window","ignore","capture","detectIframe","isIOS","shouldListen","shouldIgnore","e","_a"],"mappings":";;AAWA,MAAMA,IAAW,CAACC,MAAgC,OAAOA,KAAQ;AA0F1D,SAASC,KAAoBC,GAAM;AACtC,MAAIC,GACAC,GACAC,GACAC;AASJ,MAPIP,EAASG,EAAK,CAAC,CAAC,KAAK,MAAM,QAAQA,EAAK,CAAC,CAAC,KAC1C,CAACE,GAAQC,GAAWC,CAAO,IAAIJ,GAC/BC,IAASI,KAET,CAACJ,GAAQC,GAAQC,GAAWC,CAAO,IAAIJ,GAGvC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AAE,SAAS,GAAA;AAAA,IAAK;AAAA,IAEpBJ,KACI3B,EAAiBwB,GAAQ,QAAQ,CAAAX,MAAS;;AACtC,YAAMD,IAAcM,EAAahB,CAAa;AAC9C,QACI8B,IAAAR,EAAO,SAAS,kBAAhB,gBAAAQ,EAA+B,aAAY,YAC3C,EAACpB,KAAA,QAAAA,EAAI,SAASY,EAAO,SAAS,mBAG9BD,EAAQV,CAAY;AAAA,IAE5B,CAAC;AAAA,EAAA,EACP,OAAO,OAAO;AAKhB,SAHa,MAAMJ,EAAQ,QAAQ,CAAAC,MAAMA,GAAI;AAIjD;"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, ref as B, computed as o } from "vue";
|
|
2
|
-
import { b as y } from "./index.CwzYJHw2.js";
|
|
3
|
-
import { B as R } from "./button.DxhJNOtr.js";
|
|
4
|
-
import { a as c, b as I, B as b } from "./image.C2D2hKat.js";
|
|
5
|
-
import { B as T } from "./typography.C8lPlsbD.js";
|
|
6
|
-
import { u as C } from "./index.B6WW_F-J.js";
|
|
7
|
-
import { g as O } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
-
import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
-
import "../assets/promo-banner.css";
|
|
10
|
-
var u = /* @__PURE__ */ ((s) => (s.BLUE = "blue", s.GREY = "grey", s.GREEN = "green", s))(u || {}), l = /* @__PURE__ */ ((s) => (s.HORIZONTAL = "horizontal", s.VERTICAL = "vertical", s))(l || {});
|
|
11
|
-
const L = {
|
|
12
|
-
"en-US": { dismiss: "Dismiss" },
|
|
13
|
-
"ja-JP": { dismiss: "却下" },
|
|
14
|
-
"pt-BR": { dismiss: "Descartar" }
|
|
15
|
-
}, x = {
|
|
16
|
-
i18n: { messages: L },
|
|
17
|
-
name: "bento-promo-banner"
|
|
18
|
-
}, k = /* @__PURE__ */ v({
|
|
19
|
-
...x,
|
|
20
|
-
props: {
|
|
21
|
-
actions: { default: null },
|
|
22
|
-
color: { default: u.GREY },
|
|
23
|
-
isDismissible: { type: Boolean, default: !0 },
|
|
24
|
-
dismissButtonText: { default: null },
|
|
25
|
-
image: null,
|
|
26
|
-
layout: { default: l.HORIZONTAL },
|
|
27
|
-
title: null
|
|
28
|
-
},
|
|
29
|
-
emits: ["dismiss"],
|
|
30
|
-
setup(s, { emit: e }) {
|
|
31
|
-
const n = s, { t: i } = C(), t = B(null), a = y(t), _ = O("promoBannerTitle"), m = o(() => n.image.aspectRatio === c.P16_9 ? 800 : n.image.aspectRatio === c.P2_1 ? 850 : n.image.aspectRatio === c.P1_1 ? 623 : 0), p = o(() => n.layout === l.HORIZONTAL && a.width.value <= m.value ? l.VERTICAL : n.layout), f = o(
|
|
32
|
-
() => [`b-promo-banner--${p.value}`, `b-promo-banner--${n.color}`].join(" ")
|
|
33
|
-
), d = (r) => r.iconOnly && (r.iconLeft || r.iconRight || r.icon), g = o(() => n.dismissButtonText || i("dismiss"));
|
|
34
|
-
return { __sfc: !0, t: i, props: n, emit: e, promoBannerRef: t, promoBannerSize: a, promoBannerTitleId: _, horizontalLayoutBreakpoint: m, bannerLayoutClass: p, bannerConditionalClass: f, isIconOnly: d, computedDismissButtonText: g, BentoButton: R, BentoImage: b, BentoImageObjectFit: I, BentoTypography: T };
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
var E = function() {
|
|
38
|
-
var e = this, n = e._self._c, i = e._self._setupProxy;
|
|
39
|
-
return n("section", { ref: "promoBannerRef", staticClass: "b-promo-banner", class: i.bannerConditionalClass, attrs: { "aria-labelledby": i.promoBannerTitleId } }, [n("div", { staticClass: "b-promo-banner__content" }, [n("div", { staticClass: "b-promo-banner__content-header" }, [n(i.BentoTypography, { attrs: { id: i.promoBannerTitleId, variant: "title", large: "" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("description")], 2), n("div", { staticClass: "b-promo-banner__content-actions" }, [e.actions ? e._l(e.actions, function(t, a) {
|
|
40
|
-
return n(i.BentoButton, { key: a, attrs: { variant: t.variant, critical: t.critical, disabled: t.disabled, inverse: t.inverse, "icon-only": t.iconOnly, link: t.link }, on: { click: t.event }, scopedSlots: e._u([t.icon || t.iconLeft ? { key: "iconLeft", fn: function() {
|
|
41
|
-
return [n(t.icon || t.iconLeft, { tag: "component", attrs: { "svg-title": t.title } })];
|
|
42
|
-
}, proxy: !0 } : null, i.isIconOnly(t) ? null : { key: "default", fn: function() {
|
|
43
|
-
return [e._v(" " + e._s(t.title) + " ")];
|
|
44
|
-
}, proxy: !0 }, t.iconRight ? { key: "iconRight", fn: function() {
|
|
45
|
-
return [n(t.iconRight, { tag: "component", attrs: { "svg-title": t.title } })];
|
|
46
|
-
}, proxy: !0 } : null], null, !0) });
|
|
47
|
-
}) : e._e(), e.isDismissible ? n(i.BentoButton, { attrs: { variant: "secondary" }, on: { click: function(t) {
|
|
48
|
-
return i.emit("dismiss");
|
|
49
|
-
} } }, [e._v(" " + e._s(i.computedDismissButtonText) + " ")]) : e._e()], 2)]), n("div", { staticClass: "b-promo-banner__image" }, [n(i.BentoImage, { staticClass: "b-promo-banner__image-item", attrs: { src: e.image.src, alt: e.image.alt ?? "", "aspect-ratio": e.image.aspectRatio, "object-fit": i.BentoImageObjectFit.CONTAIN } })], 1)]);
|
|
50
|
-
}, A = [], D = /* @__PURE__ */ h(
|
|
51
|
-
k,
|
|
52
|
-
E,
|
|
53
|
-
A,
|
|
54
|
-
!1,
|
|
55
|
-
null,
|
|
56
|
-
"bb0ef392"
|
|
57
|
-
);
|
|
58
|
-
const Z = D.exports;
|
|
59
|
-
export {
|
|
60
|
-
u as B,
|
|
61
|
-
l as a,
|
|
62
|
-
Z as p
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=promo-banner.Db2kh2qK.js.map
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, provide as _, toRef as b, useAttrs as v, ref as u, watch as C } from "vue";
|
|
2
|
-
import { d as y } from "./debounce.DUTu11PS.js";
|
|
3
|
-
import { u as I } from "./index.B6WW_F-J.js";
|
|
4
|
-
import { I as S } from "./dropdown.Ct7uhPr6.js";
|
|
5
|
-
import { B as k } from "./input-field.m1PMwa4C.js";
|
|
6
|
-
import { S as T } from "./search.D53Ia3rC.js";
|
|
7
|
-
import { C as E } from "./cross-circle-fill.DTDtgLMf.js";
|
|
8
|
-
import { n as A } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
-
import "../assets/search-bar.css";
|
|
10
|
-
var i = /* @__PURE__ */ ((r) => (r.CLEAR = "clear", r.ESCAPE = "escape-pressed", r.INPUT = "input", r.UPDATE = "update:search-term", r))(i || {}), F = /* @__PURE__ */ ((r) => (r.CLEAR = "search-clear", r.INPUT = "search-input", r.UPDATE = "update:search-term", r))(F || {});
|
|
11
|
-
const P = {
|
|
12
|
-
"en-US": { clearSearch: "Clear search", search: "Search" },
|
|
13
|
-
"ja-JP": { clearSearch: "検索をクリア", search: "検索" },
|
|
14
|
-
"pt-BR": { clearSearch: "Limpar busca", search: "Buscar" }
|
|
15
|
-
}, x = {
|
|
16
|
-
i18n: { messages: P }
|
|
17
|
-
}, L = /* @__PURE__ */ h({
|
|
18
|
-
...x,
|
|
19
|
-
__name: "search-bar",
|
|
20
|
-
props: {
|
|
21
|
-
inputFieldAriaLabel: null,
|
|
22
|
-
condensed: { type: Boolean, default: !1 },
|
|
23
|
-
debounceTime: { default: 300 },
|
|
24
|
-
disabled: { type: Boolean, default: !1 },
|
|
25
|
-
hint: { default: "" },
|
|
26
|
-
placeholder: { default: "" },
|
|
27
|
-
value: { default: void 0 }
|
|
28
|
-
},
|
|
29
|
-
emits: ["input", "clear", "escape-pressed", "blur", "focus"],
|
|
30
|
-
setup(r, { expose: a, emit: n }) {
|
|
31
|
-
const e = r, { t } = I();
|
|
32
|
-
_(S, b(e, "hint"));
|
|
33
|
-
const p = v(), s = u(e.value), c = u();
|
|
34
|
-
C(
|
|
35
|
-
() => e.value,
|
|
36
|
-
() => {
|
|
37
|
-
s.value = e.value;
|
|
38
|
-
},
|
|
39
|
-
{ immediate: !0 }
|
|
40
|
-
);
|
|
41
|
-
const d = () => {
|
|
42
|
-
s.value = "", n("clear"), n("input", "");
|
|
43
|
-
}, o = y(() => {
|
|
44
|
-
n("input", s.value);
|
|
45
|
-
}, e.debounceTime), f = (m) => {
|
|
46
|
-
s.value = m, o();
|
|
47
|
-
}, l = () => {
|
|
48
|
-
c.value.focusInput();
|
|
49
|
-
};
|
|
50
|
-
return a({
|
|
51
|
-
/**
|
|
52
|
-
* Focus on the input field when called.
|
|
53
|
-
*/
|
|
54
|
-
focus: l
|
|
55
|
-
}), { __sfc: !0, t, props: e, emit: n, attrs: p, searchTerm: s, bentoInputField: c, onClearSearch: d, debouncedEmit: o, onInputEvent: f, focus: l, BentoSearchBarInternalEvent: i, BentoInputField: k, SearchIcon: T, CrossCircleFillIcon: E };
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
var N = function() {
|
|
59
|
-
var a = this, n = a._self._c, e = a._self._setupProxy;
|
|
60
|
-
return n("div", { staticClass: "b-search-bar" }, [n(e.BentoInputField, a._b({ ref: "bentoInputField", attrs: { "model-value": e.searchTerm, type: "search", condensed: a.condensed, "aria-label": a.inputFieldAriaLabel, "aria-hidden": !1, disabled: a.disabled, placeholder: a.placeholder }, on: { "update:model-value": e.onInputEvent, focus: function(t) {
|
|
61
|
-
return e.emit("focus");
|
|
62
|
-
}, blur: function(t) {
|
|
63
|
-
return e.emit("blur");
|
|
64
|
-
}, "escape-pressed": function(t) {
|
|
65
|
-
return e.emit(e.BentoSearchBarInternalEvent.ESCAPE);
|
|
66
|
-
} }, scopedSlots: a._u([{ key: "iconBefore", fn: function() {
|
|
67
|
-
return [n(e.SearchIcon, { attrs: { "svg-title": e.t("search"), "aria-hidden": "true" } })];
|
|
68
|
-
}, proxy: !0 }, e.searchTerm ? { key: "iconAfter", fn: function() {
|
|
69
|
-
return [n("div", { staticClass: "b-search-bar__clear-search", attrs: { tabindex: "0", "data-testid": "b-search-bar-clear-search-button" }, on: { click: e.onClearSearch, keypress: function(t) {
|
|
70
|
-
return !t.type.indexOf("key") && a._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onClearSearch.apply(null, arguments);
|
|
71
|
-
}, keyup: function(t) {
|
|
72
|
-
return !t.type.indexOf("key") && a._k(t.keyCode, "space", 32, t.key, [" ", "Spacebar"]) ? null : e.onClearSearch.apply(null, arguments);
|
|
73
|
-
} } }, [n(e.CrossCircleFillIcon, { attrs: { "svg-title": e.t("clearSearch") } })], 1)];
|
|
74
|
-
}, proxy: !0 } : null], null, !0) }, "bento-input-field", e.attrs, !1))], 1);
|
|
75
|
-
}, U = [], g = /* @__PURE__ */ A(
|
|
76
|
-
L,
|
|
77
|
-
N,
|
|
78
|
-
U,
|
|
79
|
-
!1,
|
|
80
|
-
null,
|
|
81
|
-
"e7a2bf17"
|
|
82
|
-
);
|
|
83
|
-
const H = g.exports;
|
|
84
|
-
export {
|
|
85
|
-
H as B,
|
|
86
|
-
F as a,
|
|
87
|
-
i as b
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=search-bar.DPjYDhja.js.map
|