@adyen/bento-vue2 1.84.2 → 1.86.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 +6 -0
- package/dist/@types/index.d.ts +480 -268
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +5 -0
- package/dist/ai-tag.js.map +1 -0
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +5 -0
- package/dist/anchor-scroller.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-tag.css +1 -0
- package/dist/assets/anchor-scroller.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.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 -0
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-group.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/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chip.js +1 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
- package/dist/chunks/{accordion-item.DeV8s0oW.js → accordion-item.Cv6kG2N3.js} +2 -2
- package/dist/chunks/{accordion-item.DeV8s0oW.js.map → accordion-item.Cv6kG2N3.js.map} +1 -1
- package/dist/chunks/action-bar.Dnkt4yn7.js +163 -0
- package/dist/chunks/action-bar.Dnkt4yn7.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
- package/dist/chunks/ai-button.BTi18ipD.js +50 -0
- package/dist/chunks/ai-button.BTi18ipD.js.map +1 -0
- package/dist/chunks/ai-tag.s8TECgn_.js +82 -0
- package/dist/chunks/ai-tag.s8TECgn_.js.map +1 -0
- package/dist/chunks/{alert.B3Pdp02a.js → alert.BESCd8iS.js} +5 -5
- package/dist/chunks/{alert.B3Pdp02a.js.map → alert.BESCd8iS.js.map} +1 -1
- package/dist/chunks/anchor-scroller.3_idPubO.js +178 -0
- package/dist/chunks/anchor-scroller.3_idPubO.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/arrow-left.CRREfabP.js +24 -0
- package/dist/chunks/arrow-left.CRREfabP.js.map +1 -0
- package/dist/chunks/arrow-right.Dn3AYpUP.js +24 -0
- package/dist/chunks/arrow-right.Dn3AYpUP.js.map +1 -0
- package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js +24 -0
- package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js.map +1 -0
- package/dist/chunks/{avatar.CUCH3CTc.js → avatar.rwWPYJnt.js} +2 -2
- package/dist/chunks/{avatar.CUCH3CTc.js.map → avatar.rwWPYJnt.js.map} +1 -1
- package/dist/chunks/{base-button.IN4bpcds.js → base-button.BPRPrO0p.js} +2 -2
- package/dist/chunks/{base-button.IN4bpcds.js.map → base-button.BPRPrO0p.js.map} +1 -1
- package/dist/chunks/{base-modal.KYkLKswF.js → base-modal.09nAcnF_.js} +41 -41
- package/dist/chunks/{base-modal.KYkLKswF.js.map → base-modal.09nAcnF_.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js → button-actions-with-menu.C8tSTxrm.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js.map → button-actions-with-menu.C8tSTxrm.js.map} +1 -1
- package/dist/chunks/{button-actions.D9n7MxWe.js → button-actions.VSc47LLH.js} +8 -8
- package/dist/chunks/{button-actions.D9n7MxWe.js.map → button-actions.VSc47LLH.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.DIU6m9wD.js → button.Ctj3rkxw.js} +5 -5
- package/dist/chunks/{button.DIU6m9wD.js.map → button.Ctj3rkxw.js.map} +1 -1
- package/dist/chunks/{calendar.C8DpZ4Sr.js → calendar.DiXkjQDP.js} +100 -94
- package/dist/chunks/{calendar.C8DpZ4Sr.js.map → calendar.DiXkjQDP.js.map} +1 -1
- package/dist/chunks/{card.CLX0RGG6.js → card.BdjdBN36.js} +3 -3
- package/dist/chunks/{card.CLX0RGG6.js.map → card.BdjdBN36.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BCnhjQie.js → checkbox-group.d6VQvZL7.js} +5 -5
- package/dist/chunks/{checkbox-group.BCnhjQie.js.map → checkbox-group.d6VQvZL7.js.map} +1 -1
- package/dist/chunks/{checkbox.CU5ierOq.js → checkbox.ClFNfhNh.js} +4 -4
- package/dist/chunks/{checkbox.CU5ierOq.js.map → checkbox.ClFNfhNh.js.map} +1 -1
- package/dist/chunks/{chip.C6DRfdJ8.js → chip.D_XQ8ReC.js} +3 -3
- package/dist/chunks/{chip.C6DRfdJ8.js.map → chip.D_XQ8ReC.js.map} +1 -1
- package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
- package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
- package/dist/chunks/{code-snippet.9MwDHp50.js → code-snippet.DBNJgt1j.js} +11 -11
- package/dist/chunks/{code-snippet.9MwDHp50.js.map → code-snippet.DBNJgt1j.js.map} +1 -1
- package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
- package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
- package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
- package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
- package/dist/chunks/{controls-group.D4eW9DtP.js → controls-group.HUWlAOhG.js} +3 -3
- package/dist/chunks/{controls-group.D4eW9DtP.js.map → controls-group.HUWlAOhG.js.map} +1 -1
- package/dist/chunks/{copy.C0q7xgXs.js → copy.BXykYfg0.js} +7 -7
- package/dist/chunks/{copy.C0q7xgXs.js.map → copy.BXykYfg0.js.map} +1 -1
- package/dist/chunks/{country.DyrDj95W.js → country.BywHth0L.js} +3 -3
- package/dist/chunks/{country.DyrDj95W.js.map → country.BywHth0L.js.map} +1 -1
- package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
- package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
- package/dist/chunks/{currency.DYZr_RDk.js → currency.Ciyxfmg1.js} +2 -2
- package/dist/chunks/{currency.DYZr_RDk.js.map → currency.Ciyxfmg1.js.map} +1 -1
- package/dist/chunks/{dashboard-section.B83FdC0Z.js → dashboard-section.Cw2Ima3U.js} +6 -6
- package/dist/chunks/{dashboard-section.B83FdC0Z.js.map → dashboard-section.Cw2Ima3U.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DQGVy5T2.js → dashed-underline.Dfw7cJ-9.js} +9 -9
- package/dist/chunks/{dashed-underline.DQGVy5T2.js.map → dashed-underline.Dfw7cJ-9.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BTEFoEwf.js → data-grid-template.6LR2Jqka.js} +4 -4
- package/dist/chunks/{data-grid-template.BTEFoEwf.js.map → data-grid-template.6LR2Jqka.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.Bk7_6Z0F.js → data-grid.B_uZEPDW.js} +449 -442
- package/dist/chunks/data-grid.B_uZEPDW.js.map +1 -0
- package/dist/chunks/date-input.etw_pFpA.js +20 -0
- package/dist/chunks/date-input.etw_pFpA.js.map +1 -0
- package/dist/chunks/{date-picker.CnsC_UMG.js → date-picker.CITeN8WH.js} +56 -56
- package/dist/chunks/date-picker.CITeN8WH.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.DxVjXxap.js +897 -0
- package/dist/chunks/date-range-picker.DxVjXxap.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date.DBWzp0So.js → date.B0m0sFP6.js} +2 -2
- package/dist/chunks/{date.DBWzp0So.js.map → date.B0m0sFP6.js.map} +1 -1
- package/dist/chunks/de.DvtL0g75.js.map +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
- package/dist/chunks/dialog-page.DA6E6qma.js +122 -0
- package/dist/chunks/dialog-page.DA6E6qma.js.map +1 -0
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
- package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
- package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
- package/dist/chunks/divider.DX5gwN7p.js.map +1 -1
- package/dist/chunks/{dropdown-default-textbox.Cq68tN9F.js → dropdown-default-textbox.5WjhJWdh.js} +71 -80
- package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +1 -0
- package/dist/chunks/{dropdown-tag.HBM0wrEV.js → dropdown-tag.BnMuMIDk.js} +8 -8
- package/dist/chunks/{dropdown-tag.HBM0wrEV.js.map → dropdown-tag.BnMuMIDk.js.map} +1 -1
- package/dist/chunks/{dropdown.C2pXf8Li.js → dropdown.DDPfKc74.js} +227 -225
- package/dist/chunks/dropdown.DDPfKc74.js.map +1 -0
- package/dist/chunks/{empty-state.DpBnqAxu.js → empty-state.IiG1LXa2.js} +6 -6
- package/dist/chunks/{empty-state.DpBnqAxu.js.map → empty-state.IiG1LXa2.js.map} +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
- package/dist/chunks/{field-label.CEkJnsiL.js → error-message.VenUl2OK.js} +54 -54
- package/dist/chunks/error-message.VenUl2OK.js.map +1 -0
- package/dist/chunks/es.bz0mzkMq.js.map +1 -1
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
- package/dist/chunks/events.BQOQSSb7.js.map +1 -1
- package/dist/chunks/{file-uploader.CnOqfuI-.js → file-uploader.BU1V40qK.js} +10 -10
- package/dist/chunks/file-uploader.BU1V40qK.js.map +1 -0
- package/dist/chunks/filter-bar.UdXQf_RN.js +3321 -0
- package/dist/chunks/filter-bar.UdXQf_RN.js.map +1 -0
- package/dist/chunks/fixed-scroller.BueAsyGk.js +120 -0
- package/dist/chunks/{fixed-scroller.Bp4-iO80.js.map → fixed-scroller.BueAsyGk.js.map} +1 -1
- package/dist/chunks/{focus-trap.CNIU5jOz.js → focus-trap.DMc1wL3A.js} +312 -295
- package/dist/chunks/focus-trap.DMc1wL3A.js.map +1 -0
- package/dist/chunks/{footer-actions.BOiN47Xd.js → footer-actions.z-api8J_.js} +4 -4
- package/dist/chunks/{footer-actions.BOiN47Xd.js.map → footer-actions.z-api8J_.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.CdC1T4gs.js → form-layout-title.Bbq05nMT.js} +6 -6
- package/dist/chunks/{form-layout-title.CdC1T4gs.js.map → form-layout-title.Bbq05nMT.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
- package/dist/chunks/grab.BxiVZ1RZ.js +24 -0
- package/dist/chunks/grab.BxiVZ1RZ.js.map +1 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -1
- package/dist/chunks/{header-meta.D_oAu2S9.js → header-meta.CuMQSsOm.js} +11 -11
- package/dist/chunks/{header-meta.D_oAu2S9.js.map → header-meta.CuMQSsOm.js.map} +1 -1
- package/dist/chunks/{header-with-views.Dc9LUYNY.js → header-with-views.DX8EXLMJ.js} +383 -400
- package/dist/chunks/header-with-views.DX8EXLMJ.js.map +1 -0
- package/dist/chunks/{header.BmtlQmPs.js → header.YECm2GAh.js} +4 -4
- package/dist/chunks/{header.BmtlQmPs.js.map → header.YECm2GAh.js.map} +1 -1
- package/dist/chunks/image.C2D2hKat.js.map +1 -1
- package/dist/chunks/index.B6WW_F-J.js.map +1 -1
- package/dist/chunks/index.BkJqgYF1.js +692 -0
- package/dist/chunks/{index.BDK4hwK_.js.map → index.BkJqgYF1.js.map} +1 -1
- package/dist/chunks/{info-icon.BEyxQgD6.js → info-icon.DS9ax8ZD.js} +3 -3
- package/dist/chunks/{info-icon.BEyxQgD6.js.map → info-icon.DS9ax8ZD.js.map} +1 -1
- package/dist/chunks/{input-field-password.D23H_RvO.js → input-field-password.DrI6eF5u.js} +11 -11
- package/dist/chunks/{input-field-password.D23H_RvO.js.map → input-field-password.DrI6eF5u.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js → input-field-phone-number.Buh4x3pJ.js} +4 -4
- package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js.map → input-field-phone-number.Buh4x3pJ.js.map} +1 -1
- package/dist/chunks/{input-field.hf0_ALq0.js → input-field.NEKXqT4R.js} +7 -7
- package/dist/chunks/{input-field.hf0_ALq0.js.map → input-field.NEKXqT4R.js.map} +1 -1
- package/dist/chunks/{inspector.C0iAxxoz.js → inspector.BomNgVb-.js} +5 -5
- package/dist/chunks/{inspector.C0iAxxoz.js.map → inspector.BomNgVb-.js.map} +1 -1
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
- package/dist/chunks/isSameWeek.DjeUtLwI.js +14 -0
- package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
- package/dist/chunks/{it.Oaj6BklL.js → it.DIafuXtH.js} +2 -2
- package/dist/chunks/{it.Oaj6BklL.js.map → it.DIafuXtH.js.map} +1 -1
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
- package/dist/chunks/{layout-row.BPX00mio.js → layout-row.BxuMJU4E.js} +4 -4
- package/dist/chunks/layout-row.BxuMJU4E.js.map +1 -0
- package/dist/chunks/{link.PsTSQjK3.js → link.DKimL08z.js} +2 -2
- package/dist/chunks/{link.PsTSQjK3.js.map → link.DKimL08z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BlDz7oXK.js → listbox-option-tag.Cv3y0TvQ.js} +3 -3
- package/dist/chunks/{listbox-option-tag.BlDz7oXK.js.map → listbox-option-tag.Cv3y0TvQ.js.map} +1 -1
- package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -1
- package/dist/chunks/match.CMBZxEs9.js.map +1 -1
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.B1gltlxA.js → modal-fullscreen.6bAjPENL.js} +73 -69
- package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +1 -0
- package/dist/chunks/{modal.e3EQ6Kex.js → modal.DOR8c0gy.js} +6 -6
- package/dist/chunks/{modal.e3EQ6Kex.js.map → modal.DOR8c0gy.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
- package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
- package/dist/chunks/{pagination.BcFt2FqK.js → pagination.wuEIlDcq.js} +4 -4
- package/dist/chunks/{pagination.BcFt2FqK.js.map → pagination.wuEIlDcq.js.map} +1 -1
- package/dist/chunks/{payment-method.BKXLPDC9.js → payment-method.B3CkgsAY.js} +2 -2
- package/dist/chunks/{payment-method.BKXLPDC9.js.map → payment-method.B3CkgsAY.js.map} +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
- package/dist/chunks/popover.types.DkiRUQ4Z.js +6 -0
- package/dist/chunks/{popover.types.WDh5ggr3.js.map → popover.types.DkiRUQ4Z.js.map} +1 -1
- package/dist/chunks/popper-container.D4dworD4.js +1423 -0
- package/dist/chunks/popper-container.D4dworD4.js.map +1 -0
- package/dist/chunks/{promo-banner.yfBorKj7.js → promo-banner.bjMDm76T.js} +4 -4
- package/dist/chunks/{promo-banner.yfBorKj7.js.map → promo-banner.bjMDm76T.js.map} +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
- package/dist/chunks/{radio-group.CtTnfkYg.js → radio-group.DKRxfGtE.js} +8 -8
- package/dist/chunks/{radio-group.CtTnfkYg.js.map → radio-group.DKRxfGtE.js.map} +1 -1
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -1
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Dq2CFGOu.js → rich-text-editor.DiuS9alD.js} +9 -13
- package/dist/chunks/rich-text-editor.DiuS9alD.js.map +1 -0
- package/dist/chunks/{search-bar.B0SdQBnY.js → search-bar.UVSaoX0h.js} +5 -5
- package/dist/chunks/{search-bar.B0SdQBnY.js.map → search-bar.UVSaoX0h.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BPGpxd0p.js → secondary-nav.C6ldQMZ2.js} +18 -18
- package/dist/chunks/secondary-nav.C6ldQMZ2.js.map +1 -0
- package/dist/chunks/{segmented-control.BtWFda0P.js → segmented-control.BLnuxgnJ.js} +3 -3
- package/dist/chunks/{segmented-control.BtWFda0P.js.map → segmented-control.BLnuxgnJ.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.BryV14qP.js → selection-card-group.CqGYskmS.js} +5 -5
- package/dist/chunks/{selection-card-group.BryV14qP.js.map → selection-card-group.CqGYskmS.js.map} +1 -1
- package/dist/chunks/{sidepanel.NFyZGE57.js → sidepanel.BKE87Uef.js} +71 -67
- package/dist/chunks/sidepanel.BKE87Uef.js.map +1 -0
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.D8Yh4c0G.js} +3 -3
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
- package/dist/chunks/{status.types.Cv5XN4zL.js → status.types.BTsaLHQ6.js} +2 -2
- package/dist/chunks/{status.types.Cv5XN4zL.js.map → status.types.BTsaLHQ6.js.map} +1 -1
- package/dist/chunks/{step.BLFXvHL6.js → step.BEbWkprZ.js} +5 -5
- package/dist/chunks/{step.BLFXvHL6.js.map → step.BEbWkprZ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CptOCpHP.js → structured-list-item.DRFRap_S.js} +6 -6
- package/dist/chunks/{structured-list-item.CptOCpHP.js.map → structured-list-item.DRFRap_S.js.map} +1 -1
- package/dist/chunks/success.DhioLvPD.js.map +1 -1
- package/dist/chunks/success.nNwxJRBS.js.map +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
- package/dist/chunks/{summary-grid.types.B1T8_k1m.js → summary-grid.types.OldkhD7S.js} +10 -10
- package/dist/chunks/{summary-grid.types.B1T8_k1m.js.map → summary-grid.types.OldkhD7S.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
- package/dist/chunks/{tab.FUMpPsBP.js → tab.BqSNoefU.js} +5 -5
- package/dist/chunks/{tab.FUMpPsBP.js.map → tab.BqSNoefU.js.map} +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/{tag.B1Ywhgvc.js → tag.Cy3XkSDQ.js} +3 -3
- package/dist/chunks/{tag.B1Ywhgvc.js.map → tag.Cy3XkSDQ.js.map} +1 -1
- package/dist/chunks/{textarea.riUt0BiI.js → textarea.Bm9MZb_W.js} +4 -4
- package/dist/chunks/{textarea.riUt0BiI.js.map → textarea.Bm9MZb_W.js.map} +1 -1
- package/dist/chunks/{timeline-item.CFfW1DoD.js → timeline-item.Cpbm8IUw.js} +15 -15
- package/dist/chunks/{timeline-item.CFfW1DoD.js.map → timeline-item.Cpbm8IUw.js.map} +1 -1
- package/dist/chunks/{toast.Csv6tMyT.js → toast.Wuy6VuOT.js} +4 -4
- package/dist/chunks/{toast.Csv6tMyT.js.map → toast.Wuy6VuOT.js.map} +1 -1
- package/dist/chunks/{toggle.227XgEc7.js → toggle.B1z1YPe_.js} +4 -4
- package/dist/chunks/{toggle.227XgEc7.js.map → toggle.B1z1YPe_.js.map} +1 -1
- package/dist/chunks/{tooltip.C6YCavPw.js → tooltip.DF11J3k3.js} +50 -50
- package/dist/chunks/{tooltip.C6YCavPw.js.map → tooltip.DF11J3k3.js.map} +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.D18LwXVy.js → tutorial.D5xtZ1Pt.js} +8 -8
- package/dist/chunks/{tutorial.D18LwXVy.js.map → tutorial.D5xtZ1Pt.js.map} +1 -1
- package/dist/chunks/{typography.Bq-EGj9y.js → typography.C8lPlsbD.js} +3 -3
- package/dist/chunks/{typography.Bq-EGj9y.js.map → typography.C8lPlsbD.js.map} +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
- package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js → use-bento-toast-controller.CB6Qbf3R.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js.map → use-bento-toast-controller.CB6Qbf3R.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.gDWGi5Nk.js → use-cached-selected-values.wn2xnwYG.js} +23 -23
- package/dist/chunks/use-cached-selected-values.wn2xnwYG.js.map +1 -0
- package/dist/chunks/{use-country-items.ClS_So5N.js → use-country-items.CQnldpqM.js} +11 -11
- package/dist/chunks/{use-country-items.ClS_So5N.js.map → use-country-items.CQnldpqM.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
- package/dist/chunks/utils.BzUwtTXc.js +21 -0
- package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
- package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.Bw_6j9Cd.js} +2 -2
- package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +6 -5
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/draggable-handle.js +173 -0
- package/dist/draggable-handle.js.map +1 -0
- package/dist/dropdown.js +11 -11
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +341 -335
- 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/inspector.js +1 -1
- package/dist/internal.js +42 -42
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.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/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +5 -0
- package/dist/styles/bento-light.css +5 -0
- package/dist/styles/bento.css +5 -0
- package/dist/styles/legacy.css +5 -0
- package/dist/styles/styleguide.css +5 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/use-form-v4.js +756 -7787
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +339 -35
- package/package.json +9 -9
- package/dist/assets/field-label.css +0 -1
- package/dist/chunks/action-bar.y4tcdk7R.js +0 -162
- package/dist/chunks/action-bar.y4tcdk7R.js.map +0 -1
- package/dist/chunks/ai-button.BEy4Gly-.js +0 -67
- package/dist/chunks/ai-button.BEy4Gly-.js.map +0 -1
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
- package/dist/chunks/constructNow.DuaJst0D.js +0 -8
- package/dist/chunks/data-grid.Bk7_6Z0F.js.map +0 -1
- package/dist/chunks/date-input.BbZqj10S.js +0 -15
- package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
- package/dist/chunks/date-picker.CnsC_UMG.js.map +0 -1
- package/dist/chunks/date-range-picker.B6GSRjjK.js +0 -1693
- package/dist/chunks/date-range-picker.B6GSRjjK.js.map +0 -1
- package/dist/chunks/dialog-page.QpRiNPyx.js +0 -137
- package/dist/chunks/dialog-page.QpRiNPyx.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +0 -1
- package/dist/chunks/dropdown.C2pXf8Li.js.map +0 -1
- package/dist/chunks/field-label.CEkJnsiL.js.map +0 -1
- package/dist/chunks/file-uploader.CnOqfuI-.js.map +0 -1
- package/dist/chunks/filter-bar.CnJAxz9B.js +0 -2559
- package/dist/chunks/filter-bar.CnJAxz9B.js.map +0 -1
- package/dist/chunks/fixed-scroller.Bp4-iO80.js +0 -114
- package/dist/chunks/focus-trap.CNIU5jOz.js.map +0 -1
- package/dist/chunks/header-with-views.Dc9LUYNY.js.map +0 -1
- package/dist/chunks/index.BDK4hwK_.js +0 -593
- package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
- package/dist/chunks/layout-row.BPX00mio.js.map +0 -1
- package/dist/chunks/modal-fullscreen.B1gltlxA.js.map +0 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
- package/dist/chunks/popover.types.WDh5ggr3.js +0 -6
- package/dist/chunks/popper-container.Cdokz_NE.js +0 -1404
- package/dist/chunks/popper-container.Cdokz_NE.js.map +0 -1
- package/dist/chunks/rich-text-editor.Dq2CFGOu.js.map +0 -1
- package/dist/chunks/secondary-nav.BPGpxd0p.js.map +0 -1
- package/dist/chunks/sidepanel.NFyZGE57.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.gDWGi5Nk.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
1
|
+
import { ref as $, onUnmounted as De, isRef as nt, watch as Re, computed as K, onMounted as at, onBeforeUnmount as it, defineComponent as ot, useSlots as ut, toRef as ct } from "vue";
|
|
2
|
+
import { u as st } from "./use-has-slot.C9lQZ6nz.js";
|
|
3
|
+
import { k as lt, l as ft, m as dt } from "./index.BkJqgYF1.js";
|
|
4
|
+
import { n as vt } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
5
|
import "../assets/focus-trap.css";
|
|
6
|
-
const
|
|
7
|
-
const e =
|
|
6
|
+
const bt = (t) => {
|
|
7
|
+
const e = $(null), { stop: r } = lt(
|
|
8
8
|
t,
|
|
9
9
|
(i) => {
|
|
10
10
|
let u = !1;
|
|
@@ -36,59 +36,61 @@ const vt = (t) => {
|
|
|
36
36
|
for (const l of i.composedPath()) {
|
|
37
37
|
if (!(l instanceof HTMLElement))
|
|
38
38
|
return;
|
|
39
|
-
const d = l,
|
|
40
|
-
if (
|
|
39
|
+
const d = l, b = d.tagName, v = d.getAttribute("role"), m = b === "DIALOG", w = u.includes(v), g = a.includes(v), F = s.includes(b), S = nt(t) ? t.value === d : t === d;
|
|
40
|
+
if (m || S)
|
|
41
41
|
return;
|
|
42
|
-
if (g && e.value || (w || F) || !
|
|
42
|
+
if (g && e.value || (w || F) || !m && v === "dialog") {
|
|
43
43
|
i.stopPropagation(), i.preventDefault();
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
return
|
|
48
|
+
return De(() => {
|
|
49
49
|
r();
|
|
50
50
|
}), { handleKeydownEscape: n };
|
|
51
51
|
};
|
|
52
52
|
/*!
|
|
53
|
-
* tabbable 6.
|
|
53
|
+
* tabbable 6.4.0
|
|
54
54
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
57
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, G = !
|
|
56
|
+
var _e = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], W = /* @__PURE__ */ _e.join(","), Le = typeof Element > "u", P = Le ? function() {
|
|
57
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, G = !Le && Element.prototype.getRootNode ? function(t) {
|
|
58
58
|
var e;
|
|
59
59
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
60
60
|
} : function(t) {
|
|
61
61
|
return t == null ? void 0 : t.ownerDocument;
|
|
62
|
-
}, H = function
|
|
62
|
+
}, H = function(e, r) {
|
|
63
63
|
var n;
|
|
64
64
|
r === void 0 && (r = !0);
|
|
65
|
-
var i = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "inert"), u = i === "" || i === "true", a = u || r && e &&
|
|
65
|
+
var i = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "inert"), u = i === "" || i === "true", a = u || r && e && // closest does not exist on shadow roots, so we fall back to a manual
|
|
66
|
+
// lookup upward, in case it is not defined.
|
|
67
|
+
(typeof e.closest == "function" ? e.closest("[inert]") : H(e.parentNode));
|
|
66
68
|
return a;
|
|
67
|
-
},
|
|
69
|
+
}, pt = function(e) {
|
|
68
70
|
var r, n = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "contenteditable");
|
|
69
71
|
return n === "" || n === "true";
|
|
70
|
-
},
|
|
72
|
+
}, Be = function(e, r, n) {
|
|
71
73
|
if (H(e))
|
|
72
74
|
return [];
|
|
73
|
-
var i = Array.prototype.slice.apply(e.querySelectorAll(
|
|
74
|
-
return r && P.call(e,
|
|
75
|
-
},
|
|
75
|
+
var i = Array.prototype.slice.apply(e.querySelectorAll(W));
|
|
76
|
+
return r && P.call(e, W) && i.unshift(e), i = i.filter(n), i;
|
|
77
|
+
}, q = function(e, r, n) {
|
|
76
78
|
for (var i = [], u = Array.from(e); u.length; ) {
|
|
77
79
|
var a = u.shift();
|
|
78
80
|
if (!H(a, !1))
|
|
79
81
|
if (a.tagName === "SLOT") {
|
|
80
|
-
var s = a.assignedElements(), l = s.length ? s : a.children, d =
|
|
82
|
+
var s = a.assignedElements(), l = s.length ? s : a.children, d = q(l, !0, n);
|
|
81
83
|
n.flatten ? i.push.apply(i, d) : i.push({
|
|
82
84
|
scopeParent: a,
|
|
83
85
|
candidates: d
|
|
84
86
|
});
|
|
85
87
|
} else {
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
+
var b = P.call(a, W);
|
|
89
|
+
b && n.filter(a) && (r || !e.includes(a)) && i.push(a);
|
|
88
90
|
var v = a.shadowRoot || // check for an undisclosed shadow
|
|
89
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(a),
|
|
90
|
-
if (v &&
|
|
91
|
-
var w =
|
|
91
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(a), m = !H(v, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
|
|
92
|
+
if (v && m) {
|
|
93
|
+
var w = q(v === !0 ? a.children : v.children, !0, n);
|
|
92
94
|
n.flatten ? i.push.apply(i, w) : i.push({
|
|
93
95
|
scopeParent: a,
|
|
94
96
|
candidates: w
|
|
@@ -103,26 +105,26 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
103
105
|
}, C = function(e) {
|
|
104
106
|
if (!e)
|
|
105
107
|
throw new Error("No node provided");
|
|
106
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
107
|
-
},
|
|
108
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || pt(e)) && !Me(e) ? 0 : e.tabIndex;
|
|
109
|
+
}, mt = function(e, r) {
|
|
108
110
|
var n = C(e);
|
|
109
111
|
return n < 0 && r && !Me(e) ? 0 : n;
|
|
110
|
-
},
|
|
112
|
+
}, ht = function(e, r) {
|
|
111
113
|
return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
|
|
112
114
|
}, Ke = function(e) {
|
|
113
115
|
return e.tagName === "INPUT";
|
|
114
|
-
}, ht = function(e) {
|
|
115
|
-
return Ke(e) && e.type === "hidden";
|
|
116
116
|
}, yt = function(e) {
|
|
117
|
+
return Ke(e) && e.type === "hidden";
|
|
118
|
+
}, gt = function(e) {
|
|
117
119
|
var r = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(n) {
|
|
118
120
|
return n.tagName === "SUMMARY";
|
|
119
121
|
});
|
|
120
122
|
return r;
|
|
121
|
-
},
|
|
123
|
+
}, wt = function(e, r) {
|
|
122
124
|
for (var n = 0; n < e.length; n++)
|
|
123
125
|
if (e[n].checked && e[n].form === r)
|
|
124
126
|
return e[n];
|
|
125
|
-
},
|
|
127
|
+
}, Et = function(e) {
|
|
126
128
|
if (!e.name)
|
|
127
129
|
return !0;
|
|
128
130
|
var r = e.form || G(e), n = function(s) {
|
|
@@ -136,50 +138,68 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
136
138
|
} catch (a) {
|
|
137
139
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1;
|
|
138
140
|
}
|
|
139
|
-
var u =
|
|
141
|
+
var u = wt(i, e.form);
|
|
140
142
|
return !u || u === e;
|
|
141
|
-
}, Et = function(e) {
|
|
142
|
-
return Ke(e) && e.type === "radio";
|
|
143
143
|
}, Nt = function(e) {
|
|
144
|
-
return
|
|
144
|
+
return Ke(e) && e.type === "radio";
|
|
145
145
|
}, Tt = function(e) {
|
|
146
|
+
return Nt(e) && !Et(e);
|
|
147
|
+
}, Ot = function(e) {
|
|
146
148
|
var r, n = e && G(e), i = (r = n) === null || r === void 0 ? void 0 : r.host, u = !1;
|
|
147
149
|
if (n && n !== e) {
|
|
148
150
|
var a, s, l;
|
|
149
151
|
for (u = !!((a = i) !== null && a !== void 0 && (s = a.ownerDocument) !== null && s !== void 0 && s.contains(i) || e != null && (l = e.ownerDocument) !== null && l !== void 0 && l.contains(e)); !u && i; ) {
|
|
150
|
-
var d,
|
|
151
|
-
n = G(i), i = (d = n) === null || d === void 0 ? void 0 : d.host, u = !!((
|
|
152
|
+
var d, b, v;
|
|
153
|
+
n = G(i), i = (d = n) === null || d === void 0 ? void 0 : d.host, u = !!((b = i) !== null && b !== void 0 && (v = b.ownerDocument) !== null && v !== void 0 && v.contains(i));
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
return u;
|
|
155
|
-
},
|
|
157
|
+
}, Te = function(e) {
|
|
156
158
|
var r = e.getBoundingClientRect(), n = r.width, i = r.height;
|
|
157
159
|
return n === 0 && i === 0;
|
|
158
|
-
},
|
|
160
|
+
}, Ft = function(e, r) {
|
|
159
161
|
var n = r.displayCheck, i = r.getShadowRoot;
|
|
162
|
+
if (n === "full-native" && "checkVisibility" in e) {
|
|
163
|
+
var u = e.checkVisibility({
|
|
164
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
165
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
166
|
+
checkOpacity: !1,
|
|
167
|
+
opacityProperty: !1,
|
|
168
|
+
contentVisibilityAuto: !0,
|
|
169
|
+
visibilityProperty: !0,
|
|
170
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
171
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
172
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
173
|
+
// we include it anyway.
|
|
174
|
+
checkVisibilityCSS: !0
|
|
175
|
+
});
|
|
176
|
+
return !u;
|
|
177
|
+
}
|
|
160
178
|
if (getComputedStyle(e).visibility === "hidden")
|
|
161
179
|
return !0;
|
|
162
|
-
var
|
|
163
|
-
if (P.call(
|
|
180
|
+
var a = P.call(e, "details>summary:first-of-type"), s = a ? e.parentElement : e;
|
|
181
|
+
if (P.call(s, "details:not([open]) *"))
|
|
164
182
|
return !0;
|
|
165
|
-
if (!n || n === "full" ||
|
|
183
|
+
if (!n || n === "full" || // full-native can run this branch when it falls through in case
|
|
184
|
+
// Element#checkVisibility is unsupported
|
|
185
|
+
n === "full-native" || n === "legacy-full") {
|
|
166
186
|
if (typeof i == "function") {
|
|
167
|
-
for (var
|
|
168
|
-
var
|
|
169
|
-
if (
|
|
170
|
-
return
|
|
171
|
-
e.assignedSlot ? e = e.assignedSlot : !
|
|
187
|
+
for (var l = e; e; ) {
|
|
188
|
+
var d = e.parentElement, b = G(e);
|
|
189
|
+
if (d && !d.shadowRoot && i(d) === !0)
|
|
190
|
+
return Te(e);
|
|
191
|
+
e.assignedSlot ? e = e.assignedSlot : !d && b !== e.ownerDocument ? e = b.host : e = d;
|
|
172
192
|
}
|
|
173
|
-
e =
|
|
193
|
+
e = l;
|
|
174
194
|
}
|
|
175
|
-
if (
|
|
195
|
+
if (Ot(e))
|
|
176
196
|
return !e.getClientRects().length;
|
|
177
197
|
if (n !== "legacy-full")
|
|
178
198
|
return !0;
|
|
179
199
|
} else if (n === "non-zero-area")
|
|
180
|
-
return
|
|
200
|
+
return Te(e);
|
|
181
201
|
return !1;
|
|
182
|
-
},
|
|
202
|
+
}, At = function(e) {
|
|
183
203
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
184
204
|
for (var r = e.parentElement; r; ) {
|
|
185
205
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -193,21 +213,18 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
193
213
|
r = r.parentElement;
|
|
194
214
|
}
|
|
195
215
|
return !1;
|
|
196
|
-
},
|
|
197
|
-
return !(r.disabled ||
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}, ne = function(e, r) {
|
|
203
|
-
return !(Nt(r) || C(r) < 0 || !q(e, r));
|
|
204
|
-
}, At = function(e) {
|
|
216
|
+
}, Y = function(e, r) {
|
|
217
|
+
return !(r.disabled || yt(r) || Ft(r, e) || // For a details element with a summary, the summary element gets the focus
|
|
218
|
+
gt(r) || At(r));
|
|
219
|
+
}, ae = function(e, r) {
|
|
220
|
+
return !(Tt(r) || C(r) < 0 || !Y(e, r));
|
|
221
|
+
}, St = function(e) {
|
|
205
222
|
var r = parseInt(e.getAttribute("tabindex"), 10);
|
|
206
223
|
return !!(isNaN(r) || r >= 0);
|
|
207
|
-
},
|
|
224
|
+
}, Ue = function(e) {
|
|
208
225
|
var r = [], n = [];
|
|
209
226
|
return e.forEach(function(i, u) {
|
|
210
|
-
var a = !!i.scopeParent, s = a ? i.scopeParent : i, l =
|
|
227
|
+
var a = !!i.scopeParent, s = a ? i.scopeParent : i, l = mt(s, a), d = a ? Ue(i.candidates) : s;
|
|
211
228
|
l === 0 ? a ? r.push.apply(r, d) : r.push(s) : n.push({
|
|
212
229
|
documentOrder: u,
|
|
213
230
|
tabIndex: l,
|
|
@@ -215,46 +232,46 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
215
232
|
isScope: a,
|
|
216
233
|
content: d
|
|
217
234
|
});
|
|
218
|
-
}), n.sort(
|
|
235
|
+
}), n.sort(ht).reduce(function(i, u) {
|
|
219
236
|
return u.isScope ? i.push.apply(i, u.content) : i.push(u.content), i;
|
|
220
237
|
}, []).concat(r);
|
|
221
238
|
}, It = function(e, r) {
|
|
222
239
|
r = r || {};
|
|
223
240
|
var n;
|
|
224
|
-
return r.getShadowRoot ? n =
|
|
225
|
-
filter:
|
|
241
|
+
return r.getShadowRoot ? n = q([e], r.includeContainer, {
|
|
242
|
+
filter: ae.bind(null, r),
|
|
226
243
|
flatten: !1,
|
|
227
244
|
getShadowRoot: r.getShadowRoot,
|
|
228
|
-
shadowRootFilter:
|
|
229
|
-
}) : n =
|
|
245
|
+
shadowRootFilter: St
|
|
246
|
+
}) : n = Be(e, r.includeContainer, ae.bind(null, r)), Ue(n);
|
|
230
247
|
}, xt = function(e, r) {
|
|
231
248
|
r = r || {};
|
|
232
249
|
var n;
|
|
233
|
-
return r.getShadowRoot ? n =
|
|
234
|
-
filter:
|
|
250
|
+
return r.getShadowRoot ? n = q([e], r.includeContainer, {
|
|
251
|
+
filter: Y.bind(null, r),
|
|
235
252
|
flatten: !0,
|
|
236
253
|
getShadowRoot: r.getShadowRoot
|
|
237
|
-
}) : n =
|
|
254
|
+
}) : n = Be(e, r.includeContainer, Y.bind(null, r)), n;
|
|
238
255
|
}, R = function(e, r) {
|
|
239
256
|
if (r = r || {}, !e)
|
|
240
257
|
throw new Error("No node provided");
|
|
241
|
-
return P.call(e,
|
|
242
|
-
}, kt = /* @__PURE__ */
|
|
258
|
+
return P.call(e, W) === !1 ? !1 : ae(r, e);
|
|
259
|
+
}, kt = /* @__PURE__ */ _e.concat("iframe:not([inert]):not([inert] *)").join(","), ee = function(e, r) {
|
|
243
260
|
if (r = r || {}, !e)
|
|
244
261
|
throw new Error("No node provided");
|
|
245
|
-
return P.call(e, kt) === !1 ? !1 :
|
|
262
|
+
return P.call(e, kt) === !1 ? !1 : Y(r, e);
|
|
246
263
|
};
|
|
247
264
|
/*!
|
|
248
265
|
* focus-trap 7.6.4
|
|
249
266
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
250
267
|
*/
|
|
251
|
-
function
|
|
268
|
+
function ie(t, e) {
|
|
252
269
|
(e == null || e > t.length) && (e = t.length);
|
|
253
270
|
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
|
|
254
271
|
return n;
|
|
255
272
|
}
|
|
256
273
|
function Ct(t) {
|
|
257
|
-
if (Array.isArray(t)) return
|
|
274
|
+
if (Array.isArray(t)) return ie(t);
|
|
258
275
|
}
|
|
259
276
|
function Pt(t, e, r) {
|
|
260
277
|
return (e = Bt(e)) in t ? Object.defineProperty(t, e, {
|
|
@@ -271,7 +288,7 @@ function Rt() {
|
|
|
271
288
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
272
289
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
273
290
|
}
|
|
274
|
-
function
|
|
291
|
+
function Oe(t, e) {
|
|
275
292
|
var r = Object.keys(t);
|
|
276
293
|
if (Object.getOwnPropertySymbols) {
|
|
277
294
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -281,12 +298,12 @@ function Te(t, e) {
|
|
|
281
298
|
}
|
|
282
299
|
return r;
|
|
283
300
|
}
|
|
284
|
-
function
|
|
301
|
+
function Fe(t) {
|
|
285
302
|
for (var e = 1; e < arguments.length; e++) {
|
|
286
303
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
287
|
-
e % 2 ?
|
|
304
|
+
e % 2 ? Oe(Object(r), !0).forEach(function(n) {
|
|
288
305
|
Pt(t, n, r[n]);
|
|
289
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
306
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Oe(Object(r)).forEach(function(n) {
|
|
290
307
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
291
308
|
});
|
|
292
309
|
}
|
|
@@ -311,12 +328,12 @@ function Bt(t) {
|
|
|
311
328
|
}
|
|
312
329
|
function Mt(t, e) {
|
|
313
330
|
if (t) {
|
|
314
|
-
if (typeof t == "string") return
|
|
331
|
+
if (typeof t == "string") return ie(t, e);
|
|
315
332
|
var r = {}.toString.call(t).slice(8, -1);
|
|
316
|
-
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
333
|
+
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ie(t, e) : void 0;
|
|
317
334
|
}
|
|
318
335
|
}
|
|
319
|
-
var
|
|
336
|
+
var Ae = {
|
|
320
337
|
activateTrap: function(e, r) {
|
|
321
338
|
if (e.length > 0) {
|
|
322
339
|
var n = e[e.length - 1];
|
|
@@ -337,23 +354,23 @@ var Fe = {
|
|
|
337
354
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
338
355
|
}, jt = function(e) {
|
|
339
356
|
return U(e) && !e.shiftKey;
|
|
340
|
-
},
|
|
357
|
+
}, Vt = function(e) {
|
|
341
358
|
return U(e) && e.shiftKey;
|
|
342
|
-
},
|
|
359
|
+
}, Se = function(e) {
|
|
343
360
|
return setTimeout(e, 0);
|
|
344
361
|
}, M = function(e) {
|
|
345
362
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
346
363
|
n[i - 1] = arguments[i];
|
|
347
364
|
return typeof e == "function" ? e.apply(void 0, n) : e;
|
|
348
|
-
},
|
|
365
|
+
}, V = function(e) {
|
|
349
366
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
350
|
-
},
|
|
351
|
-
var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) ||
|
|
367
|
+
}, Wt = [], Gt = function(e, r) {
|
|
368
|
+
var n = (r == null ? void 0 : r.document) || document, i = (r == null ? void 0 : r.trapStack) || Wt, u = Fe({
|
|
352
369
|
returnFocusOnDeactivate: !0,
|
|
353
370
|
escapeDeactivates: !0,
|
|
354
371
|
delayInitialFocus: !0,
|
|
355
372
|
isKeyForward: jt,
|
|
356
|
-
isKeyBackward:
|
|
373
|
+
isKeyBackward: Vt
|
|
357
374
|
}, r), a = {
|
|
358
375
|
// containers given to createFocusTrap()
|
|
359
376
|
// @type {Array<HTMLElement>}
|
|
@@ -395,56 +412,56 @@ var Fe = {
|
|
|
395
412
|
return o && o[c] !== void 0 ? o[c] : u[f || c];
|
|
396
413
|
}, d = function(o, c) {
|
|
397
414
|
var f = typeof (c == null ? void 0 : c.composedPath) == "function" ? c.composedPath() : void 0;
|
|
398
|
-
return a.containerGroups.findIndex(function(
|
|
399
|
-
var y =
|
|
415
|
+
return a.containerGroups.findIndex(function(h) {
|
|
416
|
+
var y = h.container, N = h.tabbableNodes;
|
|
400
417
|
return y.contains(o) || // fall back to explicit tabbable search which will take into consideration any
|
|
401
418
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
402
419
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
403
420
|
// look inside web components even if open)
|
|
404
|
-
(f == null ? void 0 : f.includes(y)) || N.find(function(
|
|
405
|
-
return
|
|
421
|
+
(f == null ? void 0 : f.includes(y)) || N.find(function(p) {
|
|
422
|
+
return p === o;
|
|
406
423
|
});
|
|
407
424
|
});
|
|
408
|
-
},
|
|
409
|
-
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback,
|
|
410
|
-
if (typeof
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
425
|
+
}, b = function(o) {
|
|
426
|
+
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback, h = f === void 0 ? !1 : f, y = c.params, N = y === void 0 ? [] : y, p = u[o];
|
|
427
|
+
if (typeof p == "function" && (p = p.apply(void 0, _t(N))), p === !0 && (p = void 0), !p) {
|
|
428
|
+
if (p === void 0 || p === !1)
|
|
429
|
+
return p;
|
|
413
430
|
throw new Error("`".concat(o, "` was specified but was not a node, or did not return a node"));
|
|
414
431
|
}
|
|
415
|
-
var T =
|
|
416
|
-
if (typeof
|
|
432
|
+
var T = p;
|
|
433
|
+
if (typeof p == "string") {
|
|
417
434
|
try {
|
|
418
|
-
T = n.querySelector(
|
|
435
|
+
T = n.querySelector(p);
|
|
419
436
|
} catch (O) {
|
|
420
437
|
throw new Error("`".concat(o, '` appears to be an invalid selector; error="').concat(O.message, '"'));
|
|
421
438
|
}
|
|
422
|
-
if (!T && !
|
|
439
|
+
if (!T && !h)
|
|
423
440
|
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
424
441
|
}
|
|
425
442
|
return T;
|
|
426
443
|
}, v = function() {
|
|
427
|
-
var o =
|
|
444
|
+
var o = b("initialFocus", {
|
|
428
445
|
hasFallback: !0
|
|
429
446
|
});
|
|
430
447
|
if (o === !1)
|
|
431
448
|
return !1;
|
|
432
|
-
if (o === void 0 || o && !
|
|
449
|
+
if (o === void 0 || o && !ee(o, u.tabbableOptions))
|
|
433
450
|
if (d(n.activeElement) >= 0)
|
|
434
451
|
o = n.activeElement;
|
|
435
452
|
else {
|
|
436
453
|
var c = a.tabbableGroups[0], f = c && c.firstTabbableNode;
|
|
437
|
-
o = f ||
|
|
454
|
+
o = f || b("fallbackFocus");
|
|
438
455
|
}
|
|
439
|
-
else o === null && (o =
|
|
456
|
+
else o === null && (o = b("fallbackFocus"));
|
|
440
457
|
if (!o)
|
|
441
458
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
442
459
|
return o;
|
|
443
|
-
},
|
|
460
|
+
}, m = function() {
|
|
444
461
|
if (a.containerGroups = a.containers.map(function(o) {
|
|
445
|
-
var c = It(o, u.tabbableOptions), f = xt(o, u.tabbableOptions),
|
|
462
|
+
var c = It(o, u.tabbableOptions), f = xt(o, u.tabbableOptions), h = c.length > 0 ? c[0] : void 0, y = c.length > 0 ? c[c.length - 1] : void 0, N = f.find(function(O) {
|
|
446
463
|
return R(O);
|
|
447
|
-
}),
|
|
464
|
+
}), p = f.slice().reverse().find(function(O) {
|
|
448
465
|
return R(O);
|
|
449
466
|
}), T = !!c.find(function(O) {
|
|
450
467
|
return C(O) > 0;
|
|
@@ -456,7 +473,7 @@ var Fe = {
|
|
|
456
473
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
457
474
|
posTabIndexesFound: T,
|
|
458
475
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
459
|
-
firstTabbableNode:
|
|
476
|
+
firstTabbableNode: h,
|
|
460
477
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
461
478
|
lastTabbableNode: y,
|
|
462
479
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -469,7 +486,7 @@ var Fe = {
|
|
|
469
486
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
470
487
|
firstDomTabbableNode: N,
|
|
471
488
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
472
|
-
lastDomTabbableNode:
|
|
489
|
+
lastDomTabbableNode: p,
|
|
473
490
|
/**
|
|
474
491
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
475
492
|
* in this container, if any.
|
|
@@ -489,7 +506,7 @@ var Fe = {
|
|
|
489
506
|
};
|
|
490
507
|
}), a.tabbableGroups = a.containerGroups.filter(function(o) {
|
|
491
508
|
return o.tabbableNodes.length > 0;
|
|
492
|
-
}), a.tabbableGroups.length <= 0 && !
|
|
509
|
+
}), a.tabbableGroups.length <= 0 && !b("fallbackFocus"))
|
|
493
510
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
494
511
|
if (a.containerGroups.find(function(o) {
|
|
495
512
|
return o.posTabIndexesFound;
|
|
@@ -510,42 +527,42 @@ var Fe = {
|
|
|
510
527
|
}), a.mostRecentlyFocusedNode = o, Kt(o) && o.select();
|
|
511
528
|
}
|
|
512
529
|
}, F = function(o) {
|
|
513
|
-
var c =
|
|
530
|
+
var c = b("setReturnFocus", {
|
|
514
531
|
params: [o]
|
|
515
532
|
});
|
|
516
533
|
return c || (c === !1 ? !1 : o);
|
|
517
534
|
}, S = function(o) {
|
|
518
|
-
var c = o.target, f = o.event,
|
|
519
|
-
c = c ||
|
|
535
|
+
var c = o.target, f = o.event, h = o.isBackward, y = h === void 0 ? !1 : h;
|
|
536
|
+
c = c || V(f), m();
|
|
520
537
|
var N = null;
|
|
521
538
|
if (a.tabbableGroups.length > 0) {
|
|
522
|
-
var
|
|
523
|
-
if (
|
|
539
|
+
var p = d(c, f), T = p >= 0 ? a.containerGroups[p] : void 0;
|
|
540
|
+
if (p < 0)
|
|
524
541
|
y ? N = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : N = a.tabbableGroups[0].firstTabbableNode;
|
|
525
542
|
else if (y) {
|
|
526
|
-
var O = a.tabbableGroups.findIndex(function(
|
|
527
|
-
var
|
|
528
|
-
return c ===
|
|
543
|
+
var O = a.tabbableGroups.findIndex(function(J) {
|
|
544
|
+
var Q = J.firstTabbableNode;
|
|
545
|
+
return c === Q;
|
|
529
546
|
});
|
|
530
|
-
if (O < 0 && (T.container === c ||
|
|
547
|
+
if (O < 0 && (T.container === c || ee(c, u.tabbableOptions) && !R(c, u.tabbableOptions) && !T.nextTabbableNode(c, !1)) && (O = p), O >= 0) {
|
|
531
548
|
var k = O === 0 ? a.tabbableGroups.length - 1 : O - 1, L = a.tabbableGroups[k];
|
|
532
549
|
N = C(c) >= 0 ? L.lastTabbableNode : L.lastDomTabbableNode;
|
|
533
550
|
} else U(f) || (N = T.nextTabbableNode(c, !1));
|
|
534
551
|
} else {
|
|
535
|
-
var x = a.tabbableGroups.findIndex(function(
|
|
536
|
-
var
|
|
537
|
-
return c ===
|
|
552
|
+
var x = a.tabbableGroups.findIndex(function(J) {
|
|
553
|
+
var Q = J.lastTabbableNode;
|
|
554
|
+
return c === Q;
|
|
538
555
|
});
|
|
539
|
-
if (x < 0 && (T.container === c ||
|
|
540
|
-
var B = x === a.tabbableGroups.length - 1 ? 0 : x + 1,
|
|
541
|
-
N = C(c) >= 0 ?
|
|
556
|
+
if (x < 0 && (T.container === c || ee(c, u.tabbableOptions) && !R(c, u.tabbableOptions) && !T.nextTabbableNode(c)) && (x = p), x >= 0) {
|
|
557
|
+
var B = x === a.tabbableGroups.length - 1 ? 0 : x + 1, Ne = a.tabbableGroups[B];
|
|
558
|
+
N = C(c) >= 0 ? Ne.firstTabbableNode : Ne.firstDomTabbableNode;
|
|
542
559
|
} else U(f) || (N = T.nextTabbableNode(c));
|
|
543
560
|
}
|
|
544
561
|
} else
|
|
545
|
-
N =
|
|
562
|
+
N = b("fallbackFocus");
|
|
546
563
|
return N;
|
|
547
564
|
}, I = function(o) {
|
|
548
|
-
var c =
|
|
565
|
+
var c = V(o);
|
|
549
566
|
if (!(d(c, o) >= 0)) {
|
|
550
567
|
if (M(u.clickOutsideDeactivates, o)) {
|
|
551
568
|
s.deactivate({
|
|
@@ -562,20 +579,20 @@ var Fe = {
|
|
|
562
579
|
M(u.allowOutsideClick, o) || o.preventDefault();
|
|
563
580
|
}
|
|
564
581
|
}, D = function(o) {
|
|
565
|
-
var c =
|
|
582
|
+
var c = V(o), f = d(c, o) >= 0;
|
|
566
583
|
if (f || c instanceof Document)
|
|
567
584
|
f && (a.mostRecentlyFocusedNode = c);
|
|
568
585
|
else {
|
|
569
586
|
o.stopImmediatePropagation();
|
|
570
|
-
var
|
|
587
|
+
var h, y = !0;
|
|
571
588
|
if (a.mostRecentlyFocusedNode)
|
|
572
589
|
if (C(a.mostRecentlyFocusedNode) > 0) {
|
|
573
|
-
var N = d(a.mostRecentlyFocusedNode),
|
|
574
|
-
if (
|
|
575
|
-
var T =
|
|
590
|
+
var N = d(a.mostRecentlyFocusedNode), p = a.containerGroups[N].tabbableNodes;
|
|
591
|
+
if (p.length > 0) {
|
|
592
|
+
var T = p.findIndex(function(O) {
|
|
576
593
|
return O === a.mostRecentlyFocusedNode;
|
|
577
594
|
});
|
|
578
|
-
T >= 0 && (u.isKeyForward(a.recentNavEvent) ? T + 1 <
|
|
595
|
+
T >= 0 && (u.isKeyForward(a.recentNavEvent) ? T + 1 < p.length && (h = p[T + 1], y = !1) : T - 1 >= 0 && (h = p[T - 1], y = !1));
|
|
579
596
|
}
|
|
580
597
|
} else
|
|
581
598
|
a.containerGroups.some(function(O) {
|
|
@@ -585,15 +602,15 @@ var Fe = {
|
|
|
585
602
|
}) || (y = !1);
|
|
586
603
|
else
|
|
587
604
|
y = !1;
|
|
588
|
-
y && (
|
|
605
|
+
y && (h = S({
|
|
589
606
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
590
607
|
// outside the trap causing the focus escape we're trying to fix)
|
|
591
608
|
target: a.mostRecentlyFocusedNode,
|
|
592
609
|
isBackward: u.isKeyBackward(a.recentNavEvent)
|
|
593
|
-
})), g(
|
|
610
|
+
})), g(h || a.mostRecentlyFocusedNode || v());
|
|
594
611
|
}
|
|
595
612
|
a.recentNavEvent = void 0;
|
|
596
|
-
},
|
|
613
|
+
}, me = function(o) {
|
|
597
614
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
598
615
|
a.recentNavEvent = o;
|
|
599
616
|
var f = S({
|
|
@@ -601,16 +618,16 @@ var Fe = {
|
|
|
601
618
|
isBackward: c
|
|
602
619
|
});
|
|
603
620
|
f && (U(o) && o.preventDefault(), g(f));
|
|
604
|
-
}, me = function(o) {
|
|
605
|
-
(u.isKeyForward(o) || u.isKeyBackward(o)) && pe(o, u.isKeyBackward(o));
|
|
606
621
|
}, he = function(o) {
|
|
607
|
-
|
|
622
|
+
(u.isKeyForward(o) || u.isKeyBackward(o)) && me(o, u.isKeyBackward(o));
|
|
608
623
|
}, ye = function(o) {
|
|
609
|
-
|
|
624
|
+
Ut(o) && M(u.escapeDeactivates, o) !== !1 && (o.preventDefault(), s.deactivate());
|
|
625
|
+
}, ge = function(o) {
|
|
626
|
+
var c = V(o);
|
|
610
627
|
d(c, o) >= 0 || M(u.clickOutsideDeactivates, o) || M(u.allowOutsideClick, o) || (o.preventDefault(), o.stopImmediatePropagation());
|
|
611
|
-
},
|
|
628
|
+
}, we = function() {
|
|
612
629
|
if (a.active)
|
|
613
|
-
return
|
|
630
|
+
return Ae.activateTrap(i, s), a.delayInitialFocusTimer = u.delayInitialFocus ? Se(function() {
|
|
614
631
|
g(v());
|
|
615
632
|
}) : g(v()), n.addEventListener("focusin", D, !0), n.addEventListener("mousedown", I, {
|
|
616
633
|
capture: !0,
|
|
@@ -618,27 +635,27 @@ var Fe = {
|
|
|
618
635
|
}), n.addEventListener("touchstart", I, {
|
|
619
636
|
capture: !0,
|
|
620
637
|
passive: !1
|
|
621
|
-
}), n.addEventListener("click",
|
|
638
|
+
}), n.addEventListener("click", ge, {
|
|
622
639
|
capture: !0,
|
|
623
640
|
passive: !1
|
|
624
|
-
}), n.addEventListener("keydown",
|
|
641
|
+
}), n.addEventListener("keydown", he, {
|
|
625
642
|
capture: !0,
|
|
626
643
|
passive: !1
|
|
627
|
-
}), n.addEventListener("keydown",
|
|
628
|
-
},
|
|
644
|
+
}), n.addEventListener("keydown", ye), s;
|
|
645
|
+
}, Ee = function() {
|
|
629
646
|
if (a.active)
|
|
630
|
-
return n.removeEventListener("focusin", D, !0), n.removeEventListener("mousedown", I, !0), n.removeEventListener("touchstart", I, !0), n.removeEventListener("click",
|
|
631
|
-
},
|
|
647
|
+
return n.removeEventListener("focusin", D, !0), n.removeEventListener("mousedown", I, !0), n.removeEventListener("touchstart", I, !0), n.removeEventListener("click", ge, !0), n.removeEventListener("keydown", he, !0), n.removeEventListener("keydown", ye), s;
|
|
648
|
+
}, rt = function(o) {
|
|
632
649
|
var c = o.some(function(f) {
|
|
633
|
-
var
|
|
634
|
-
return
|
|
650
|
+
var h = Array.from(f.removedNodes);
|
|
651
|
+
return h.some(function(y) {
|
|
635
652
|
return y === a.mostRecentlyFocusedNode;
|
|
636
653
|
});
|
|
637
654
|
});
|
|
638
655
|
c && g(v());
|
|
639
|
-
},
|
|
640
|
-
|
|
641
|
-
|
|
656
|
+
}, X = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(rt) : void 0, _ = function() {
|
|
657
|
+
X && (X.disconnect(), a.active && !a.paused && a.containers.map(function(o) {
|
|
658
|
+
X.observe(o, {
|
|
642
659
|
subtree: !0,
|
|
643
660
|
childList: !0
|
|
644
661
|
});
|
|
@@ -654,30 +671,30 @@ var Fe = {
|
|
|
654
671
|
activate: function(o) {
|
|
655
672
|
if (a.active)
|
|
656
673
|
return this;
|
|
657
|
-
var c = l(o, "onActivate"), f = l(o, "onPostActivate"),
|
|
658
|
-
|
|
674
|
+
var c = l(o, "onActivate"), f = l(o, "onPostActivate"), h = l(o, "checkCanFocusTrap");
|
|
675
|
+
h || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = n.activeElement, c == null || c();
|
|
659
676
|
var y = function() {
|
|
660
|
-
|
|
677
|
+
h && m(), we(), _(), f == null || f();
|
|
661
678
|
};
|
|
662
|
-
return
|
|
679
|
+
return h ? (h(a.containers.concat()).then(y, y), this) : (y(), this);
|
|
663
680
|
},
|
|
664
681
|
deactivate: function(o) {
|
|
665
682
|
if (!a.active)
|
|
666
683
|
return this;
|
|
667
|
-
var c =
|
|
684
|
+
var c = Fe({
|
|
668
685
|
onDeactivate: u.onDeactivate,
|
|
669
686
|
onPostDeactivate: u.onPostDeactivate,
|
|
670
687
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
671
688
|
}, o);
|
|
672
|
-
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0,
|
|
673
|
-
var f = l(c, "onDeactivate"),
|
|
689
|
+
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, Ee(), a.active = !1, a.paused = !1, _(), Ae.deactivateTrap(i, s);
|
|
690
|
+
var f = l(c, "onDeactivate"), h = l(c, "onPostDeactivate"), y = l(c, "checkCanReturnFocus"), N = l(c, "returnFocus", "returnFocusOnDeactivate");
|
|
674
691
|
f == null || f();
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
N && g(F(a.nodeFocusedBeforeActivation)),
|
|
692
|
+
var p = function() {
|
|
693
|
+
Se(function() {
|
|
694
|
+
N && g(F(a.nodeFocusedBeforeActivation)), h == null || h();
|
|
678
695
|
});
|
|
679
696
|
};
|
|
680
|
-
return N && y ? (y(F(a.nodeFocusedBeforeActivation)).then(
|
|
697
|
+
return N && y ? (y(F(a.nodeFocusedBeforeActivation)).then(p, p), this) : (p(), this);
|
|
681
698
|
},
|
|
682
699
|
pause: function(o) {
|
|
683
700
|
return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, o)) : this;
|
|
@@ -689,7 +706,7 @@ var Fe = {
|
|
|
689
706
|
var c = [].concat(o).filter(Boolean);
|
|
690
707
|
return a.containers = c.map(function(f) {
|
|
691
708
|
return typeof f == "string" ? n.querySelector(f) : f;
|
|
692
|
-
}), a.active &&
|
|
709
|
+
}), a.active && m(), _(), this;
|
|
693
710
|
}
|
|
694
711
|
}, Object.defineProperties(s, {
|
|
695
712
|
_isManuallyPaused: {
|
|
@@ -702,11 +719,11 @@ var Fe = {
|
|
|
702
719
|
if (a.paused === o)
|
|
703
720
|
return this;
|
|
704
721
|
if (a.paused = o, o) {
|
|
705
|
-
var f = l(c, "onPause"),
|
|
706
|
-
f == null || f(),
|
|
722
|
+
var f = l(c, "onPause"), h = l(c, "onPostPause");
|
|
723
|
+
f == null || f(), Ee(), _(), h == null || h();
|
|
707
724
|
} else {
|
|
708
725
|
var y = l(c, "onUnpause"), N = l(c, "onPostUnpause");
|
|
709
|
-
y == null || y(),
|
|
726
|
+
y == null || y(), m(), we(), _(), N == null || N();
|
|
710
727
|
}
|
|
711
728
|
return this;
|
|
712
729
|
}
|
|
@@ -714,45 +731,45 @@ var Fe = {
|
|
|
714
731
|
}), s.updateContainerElements(e), s;
|
|
715
732
|
};
|
|
716
733
|
const Ht = (t, e, r) => {
|
|
717
|
-
const n =
|
|
718
|
-
|
|
719
|
-
[() =>
|
|
734
|
+
const n = $(null), i = ft(t);
|
|
735
|
+
Re(
|
|
736
|
+
[() => dt(t), () => e.value, i, r],
|
|
720
737
|
([u, a, s, l]) => {
|
|
721
738
|
if (!u || !a || !s)
|
|
722
739
|
return;
|
|
723
|
-
const { additionalContainers: d, ...
|
|
740
|
+
const { additionalContainers: d, ...b } = l ?? {}, v = [u, ...d ?? []];
|
|
724
741
|
n.value ? (n.value.updateContainerElements(v), n.value.active || n.value.activate()) : (n.value = Gt(v, {
|
|
725
742
|
delayInitialFocus: !1,
|
|
726
743
|
fallbackFocus: u,
|
|
727
|
-
...
|
|
744
|
+
...b
|
|
728
745
|
}), n.value.activate());
|
|
729
746
|
},
|
|
730
747
|
{ flush: "post" }
|
|
731
|
-
),
|
|
748
|
+
), De(() => {
|
|
732
749
|
var u;
|
|
733
750
|
e.value && ((u = n.value) == null || u.deactivate());
|
|
734
751
|
});
|
|
735
752
|
};
|
|
736
|
-
var
|
|
753
|
+
var Ie = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus-lock", Zt = "data-autofocus-inside", zt = "data-no-autofocus", A = function(t) {
|
|
737
754
|
for (var e = Array(t.length), r = 0; r < t.length; ++r)
|
|
738
755
|
e[r] = t[r];
|
|
739
756
|
return e;
|
|
740
|
-
},
|
|
757
|
+
}, oe = function(t) {
|
|
741
758
|
return Array.isArray(t) ? t : [t];
|
|
742
759
|
}, $t = function(t) {
|
|
743
760
|
if (t.nodeType !== Node.ELEMENT_NODE)
|
|
744
761
|
return !1;
|
|
745
762
|
var e = window.getComputedStyle(t, null);
|
|
746
763
|
return !e || !e.getPropertyValue ? !1 : e.getPropertyValue("display") === "none" || e.getPropertyValue("visibility") === "hidden";
|
|
747
|
-
},
|
|
764
|
+
}, je = function(t) {
|
|
748
765
|
return t.parentNode && t.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
|
|
749
766
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
750
767
|
t.parentNode.host
|
|
751
768
|
) : t.parentNode;
|
|
752
|
-
},
|
|
769
|
+
}, Ve = function(t) {
|
|
753
770
|
return t === document || t && t.nodeType === Node.DOCUMENT_NODE;
|
|
754
771
|
}, Xt = function(t, e) {
|
|
755
|
-
return !t ||
|
|
772
|
+
return !t || Ve(t) || !$t(t) && e(je(t));
|
|
756
773
|
}, We = function(t, e) {
|
|
757
774
|
var r = t.get(e);
|
|
758
775
|
if (r !== void 0)
|
|
@@ -760,31 +777,31 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
760
777
|
var n = Xt(e, We.bind(void 0, t));
|
|
761
778
|
return t.set(e, n), n;
|
|
762
779
|
}, Jt = function(t, e) {
|
|
763
|
-
return t && !
|
|
764
|
-
},
|
|
780
|
+
return t && !Ve(t) ? tr(t) ? e(je(t)) : !1 : !0;
|
|
781
|
+
}, Ge = function(t, e) {
|
|
765
782
|
var r = t.get(e);
|
|
766
783
|
if (r !== void 0)
|
|
767
784
|
return r;
|
|
768
|
-
var n = Jt(e,
|
|
785
|
+
var n = Jt(e, Ge.bind(void 0, t));
|
|
769
786
|
return t.set(e, n), n;
|
|
770
|
-
},
|
|
787
|
+
}, He = function(t) {
|
|
771
788
|
return t.dataset;
|
|
772
789
|
}, Qt = function(t) {
|
|
773
790
|
return t.tagName === "BUTTON";
|
|
774
|
-
}, He = function(t) {
|
|
775
|
-
return t.tagName === "INPUT";
|
|
776
791
|
}, qe = function(t) {
|
|
777
|
-
return
|
|
792
|
+
return t.tagName === "INPUT";
|
|
793
|
+
}, Ye = function(t) {
|
|
794
|
+
return qe(t) && t.type === "radio";
|
|
778
795
|
}, er = function(t) {
|
|
779
|
-
return !((
|
|
796
|
+
return !((qe(t) || Qt(t)) && (t.type === "hidden" || t.disabled));
|
|
780
797
|
}, tr = function(t) {
|
|
781
798
|
var e = t.getAttribute(zt);
|
|
782
799
|
return ![!0, "true", ""].includes(e);
|
|
783
|
-
},
|
|
800
|
+
}, se = function(t) {
|
|
784
801
|
var e;
|
|
785
|
-
return !!(t && (!((e =
|
|
786
|
-
},
|
|
787
|
-
return !
|
|
802
|
+
return !!(t && (!((e = He(t)) === null || e === void 0) && e.focusGuard));
|
|
803
|
+
}, Z = function(t) {
|
|
804
|
+
return !se(t);
|
|
788
805
|
}, rr = function(t) {
|
|
789
806
|
return !!t;
|
|
790
807
|
}, nr = function(t, e) {
|
|
@@ -796,7 +813,7 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
796
813
|
return -1;
|
|
797
814
|
}
|
|
798
815
|
return r || n;
|
|
799
|
-
},
|
|
816
|
+
}, Ze = function(t, e, r) {
|
|
800
817
|
return A(t).map(function(n, i) {
|
|
801
818
|
return {
|
|
802
819
|
node: n,
|
|
@@ -824,18 +841,18 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
824
841
|
"[tabindex]",
|
|
825
842
|
"[contenteditable]",
|
|
826
843
|
"[autofocus]"
|
|
827
|
-
],
|
|
844
|
+
], le = ar.join(","), ir = "".concat(le, ", [data-focus-guard]"), ze = function(t, e) {
|
|
828
845
|
var r;
|
|
829
846
|
return A(((r = t.shadowRoot) === null || r === void 0 ? void 0 : r.children) || t.children).reduce(function(n, i) {
|
|
830
|
-
return n.concat(i.matches(e ? ir :
|
|
847
|
+
return n.concat(i.matches(e ? ir : le) ? [i] : [], ze(i));
|
|
831
848
|
}, []);
|
|
832
|
-
},
|
|
849
|
+
}, fe = function(t, e) {
|
|
833
850
|
return t.reduce(function(r, n) {
|
|
834
851
|
return r.concat(
|
|
835
852
|
// add all tabbables inside and within shadow DOMs in DOM order
|
|
836
|
-
|
|
853
|
+
ze(n, e),
|
|
837
854
|
// add if node is tabbable itself
|
|
838
|
-
n.parentNode ? A(n.parentNode.querySelectorAll(
|
|
855
|
+
n.parentNode ? A(n.parentNode.querySelectorAll(le)).filter(function(i) {
|
|
839
856
|
return i === n;
|
|
840
857
|
}) : []
|
|
841
858
|
);
|
|
@@ -843,26 +860,26 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
843
860
|
}, or = function(t) {
|
|
844
861
|
var e = t.querySelectorAll("[".concat(Zt, "]"));
|
|
845
862
|
return A(e).map(function(r) {
|
|
846
|
-
return
|
|
863
|
+
return fe([r]);
|
|
847
864
|
}).reduce(function(r, n) {
|
|
848
865
|
return r.concat(n);
|
|
849
866
|
}, []);
|
|
850
|
-
},
|
|
867
|
+
}, de = function(t, e) {
|
|
851
868
|
return A(t).filter(function(r) {
|
|
852
869
|
return We(e, r);
|
|
853
870
|
}).filter(function(r) {
|
|
854
871
|
return er(r);
|
|
855
872
|
});
|
|
856
|
-
},
|
|
873
|
+
}, xe = function(t, e) {
|
|
857
874
|
return e === void 0 && (e = /* @__PURE__ */ new Map()), A(t).filter(function(r) {
|
|
858
|
-
return
|
|
875
|
+
return Ge(e, r);
|
|
859
876
|
});
|
|
860
|
-
},
|
|
861
|
-
return
|
|
862
|
-
},
|
|
863
|
-
return
|
|
877
|
+
}, ue = function(t, e, r) {
|
|
878
|
+
return Ze(de(fe(t, r), e), !0, r);
|
|
879
|
+
}, ke = function(t, e) {
|
|
880
|
+
return Ze(de(fe(t), e), !1);
|
|
864
881
|
}, ur = function(t, e) {
|
|
865
|
-
return
|
|
882
|
+
return de(or(t), e);
|
|
866
883
|
}, j = function(t, e) {
|
|
867
884
|
return (t.shadowRoot ? j(t.shadowRoot, e) : t.contains(e)) || Array.from(t.children).some(function(r) {
|
|
868
885
|
return j(r, e);
|
|
@@ -876,18 +893,18 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
876
893
|
return t.filter(function(a, s) {
|
|
877
894
|
return !e.has(s);
|
|
878
895
|
});
|
|
879
|
-
},
|
|
880
|
-
return t.parentNode ?
|
|
881
|
-
},
|
|
882
|
-
var e =
|
|
896
|
+
}, $e = function(t) {
|
|
897
|
+
return t.parentNode ? $e(t.parentNode) : t;
|
|
898
|
+
}, ve = function(t) {
|
|
899
|
+
var e = oe(t);
|
|
883
900
|
return e.filter(Boolean).reduce(function(r, n) {
|
|
884
|
-
var i = n.getAttribute(
|
|
885
|
-
return r.push.apply(r, i ? cr(A(
|
|
901
|
+
var i = n.getAttribute(Ie);
|
|
902
|
+
return r.push.apply(r, i ? cr(A($e(n).querySelectorAll("[".concat(Ie, '="').concat(i, '"]:not([').concat(qt, '="disabled"])')))) : [n]), r;
|
|
886
903
|
}, []);
|
|
887
|
-
},
|
|
888
|
-
return t.activeElement ? t.activeElement.shadowRoot ?
|
|
889
|
-
},
|
|
890
|
-
return document.activeElement ? document.activeElement.shadowRoot ?
|
|
904
|
+
}, Xe = function(t) {
|
|
905
|
+
return t.activeElement ? t.activeElement.shadowRoot ? Xe(t.activeElement.shadowRoot) : t.activeElement : void 0;
|
|
906
|
+
}, be = function() {
|
|
907
|
+
return document.activeElement ? document.activeElement.shadowRoot ? Xe(document.activeElement.shadowRoot) : document.activeElement : void 0;
|
|
891
908
|
}, sr = function(t) {
|
|
892
909
|
return t === document.activeElement;
|
|
893
910
|
}, lr = function(t) {
|
|
@@ -895,70 +912,70 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
895
912
|
return sr(e);
|
|
896
913
|
});
|
|
897
914
|
}, fr = function(t) {
|
|
898
|
-
var e = document &&
|
|
899
|
-
return !e || e.dataset && e.dataset.focusGuard ? !1 :
|
|
915
|
+
var e = document && be();
|
|
916
|
+
return !e || e.dataset && e.dataset.focusGuard ? !1 : ve(t).some(function(r) {
|
|
900
917
|
return j(r, e) || lr(r);
|
|
901
918
|
});
|
|
902
919
|
}, dr = function() {
|
|
903
|
-
var t = document &&
|
|
920
|
+
var t = document && be();
|
|
904
921
|
return t ? A(document.querySelectorAll("[".concat(Yt, "]"))).some(function(e) {
|
|
905
922
|
return j(e, t);
|
|
906
923
|
}) : !1;
|
|
907
924
|
}, vr = function(t, e) {
|
|
908
|
-
return e.filter(
|
|
925
|
+
return e.filter(Ye).filter(function(r) {
|
|
909
926
|
return r.name === t.name;
|
|
910
927
|
}).filter(function(r) {
|
|
911
928
|
return r.checked;
|
|
912
929
|
})[0] || t;
|
|
913
|
-
},
|
|
914
|
-
return
|
|
930
|
+
}, pe = function(t, e) {
|
|
931
|
+
return Ye(t) && t.name ? vr(t, e) : t;
|
|
915
932
|
}, br = function(t) {
|
|
916
933
|
var e = /* @__PURE__ */ new Set();
|
|
917
934
|
return t.forEach(function(r) {
|
|
918
|
-
return e.add(
|
|
935
|
+
return e.add(pe(r, t));
|
|
919
936
|
}), t.filter(function(r) {
|
|
920
937
|
return e.has(r);
|
|
921
938
|
});
|
|
922
|
-
},
|
|
923
|
-
return t[0] && t.length > 1 ?
|
|
924
|
-
},
|
|
925
|
-
return t.length > 1 ? t.indexOf(
|
|
926
|
-
},
|
|
927
|
-
var i = t.length, u = t[0], a = t[i - 1], s =
|
|
939
|
+
}, Ce = function(t) {
|
|
940
|
+
return t[0] && t.length > 1 ? pe(t[0], t) : t[0];
|
|
941
|
+
}, Pe = function(t, e) {
|
|
942
|
+
return t.length > 1 ? t.indexOf(pe(t[e], t)) : e;
|
|
943
|
+
}, Je = "NEW_FOCUS", pr = function(t, e, r, n) {
|
|
944
|
+
var i = t.length, u = t[0], a = t[i - 1], s = se(r);
|
|
928
945
|
if (!(r && t.indexOf(r) >= 0)) {
|
|
929
|
-
var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l,
|
|
930
|
-
if (l === -1 ||
|
|
931
|
-
return
|
|
932
|
-
if (!v &&
|
|
933
|
-
return
|
|
934
|
-
if (l <=
|
|
946
|
+
var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l, b = n ? t.indexOf(n) : -1, v = l - d, m = e.indexOf(u), w = e.indexOf(a), g = br(e), F = r !== void 0 ? g.indexOf(r) : -1, S = F - (n ? g.indexOf(n) : l), I = Pe(t, 0), D = Pe(t, i - 1);
|
|
947
|
+
if (l === -1 || b === -1)
|
|
948
|
+
return Je;
|
|
949
|
+
if (!v && b >= 0)
|
|
950
|
+
return b;
|
|
951
|
+
if (l <= m && s && Math.abs(v) > 1)
|
|
935
952
|
return D;
|
|
936
953
|
if (l >= w && s && Math.abs(v) > 1)
|
|
937
954
|
return I;
|
|
938
955
|
if (v && Math.abs(S) > 1)
|
|
939
|
-
return
|
|
940
|
-
if (l <=
|
|
956
|
+
return b;
|
|
957
|
+
if (l <= m)
|
|
941
958
|
return D;
|
|
942
959
|
if (l > w)
|
|
943
960
|
return I;
|
|
944
961
|
if (v)
|
|
945
|
-
return Math.abs(v) > 1 ?
|
|
962
|
+
return Math.abs(v) > 1 ? b : (i + b + v) % i;
|
|
946
963
|
}
|
|
947
|
-
},
|
|
948
|
-
return e === void 0 && (e = []), e.push(t), t.parentNode &&
|
|
949
|
-
},
|
|
950
|
-
for (var r =
|
|
964
|
+
}, ce = function(t, e) {
|
|
965
|
+
return e === void 0 && (e = []), e.push(t), t.parentNode && ce(t.parentNode.host || t.parentNode, e), e;
|
|
966
|
+
}, te = function(t, e) {
|
|
967
|
+
for (var r = ce(t), n = ce(e), i = 0; i < r.length; i += 1) {
|
|
951
968
|
var u = r[i];
|
|
952
969
|
if (n.indexOf(u) >= 0)
|
|
953
970
|
return u;
|
|
954
971
|
}
|
|
955
972
|
return !1;
|
|
956
|
-
},
|
|
957
|
-
var n =
|
|
973
|
+
}, Qe = function(t, e, r) {
|
|
974
|
+
var n = oe(t), i = oe(e), u = n[0], a = !1;
|
|
958
975
|
return i.filter(Boolean).forEach(function(s) {
|
|
959
|
-
a =
|
|
960
|
-
var d =
|
|
961
|
-
d && (!a || j(d, a) ? a = d : a =
|
|
976
|
+
a = te(a || s, s) || a, r.filter(Boolean).forEach(function(l) {
|
|
977
|
+
var d = te(u, l);
|
|
978
|
+
d && (!a || j(d, a) ? a = d : a = te(d, a));
|
|
962
979
|
});
|
|
963
980
|
}), a;
|
|
964
981
|
}, mr = function(t, e) {
|
|
@@ -968,7 +985,7 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
968
985
|
}, hr = function(t) {
|
|
969
986
|
return function(e) {
|
|
970
987
|
var r;
|
|
971
|
-
return e.autofocus || !!(!((r =
|
|
988
|
+
return e.autofocus || !!(!((r = He(e)) === null || r === void 0) && r.autofocus) || t.indexOf(e) >= 0;
|
|
972
989
|
};
|
|
973
990
|
}, yr = function(t, e) {
|
|
974
991
|
var r = /* @__PURE__ */ new Map();
|
|
@@ -978,33 +995,33 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
978
995
|
return r.get(n);
|
|
979
996
|
}).filter(rr);
|
|
980
997
|
}, gr = function(t, e) {
|
|
981
|
-
var r = document &&
|
|
998
|
+
var r = document && be(), n = ve(t).filter(Z), i = Qe(r || t, t, n), u = /* @__PURE__ */ new Map(), a = ke(n, u), s = ue(n, u).filter(function(w) {
|
|
982
999
|
var g = w.node;
|
|
983
|
-
return
|
|
1000
|
+
return Z(g);
|
|
984
1001
|
});
|
|
985
1002
|
if (!(!s[0] && (s = a, !s[0]))) {
|
|
986
|
-
var l =
|
|
1003
|
+
var l = ke([i], u).map(function(w) {
|
|
987
1004
|
var g = w.node;
|
|
988
1005
|
return g;
|
|
989
|
-
}), d = yr(l, s),
|
|
1006
|
+
}), d = yr(l, s), b = d.map(function(w) {
|
|
990
1007
|
var g = w.node;
|
|
991
1008
|
return g;
|
|
992
|
-
}), v = pr(
|
|
993
|
-
if (v ===
|
|
994
|
-
var
|
|
1009
|
+
}), v = pr(b, l, r, e);
|
|
1010
|
+
if (v === Je) {
|
|
1011
|
+
var m = xe(a.map(function(w) {
|
|
995
1012
|
var g = w.node;
|
|
996
1013
|
return g;
|
|
997
1014
|
})).filter(hr(mr(n, u)));
|
|
998
1015
|
return {
|
|
999
|
-
node:
|
|
1016
|
+
node: m && m.length ? Ce(m) : Ce(xe(b))
|
|
1000
1017
|
};
|
|
1001
1018
|
}
|
|
1002
1019
|
return v === void 0 ? v : d[v];
|
|
1003
1020
|
}
|
|
1004
1021
|
}, wr = function(t) {
|
|
1005
|
-
var e =
|
|
1022
|
+
var e = ve(t).filter(Z), r = Qe(t, t, e), n = /* @__PURE__ */ new Map(), i = ue([r], n, !0), u = ue(e, n).filter(function(a) {
|
|
1006
1023
|
var s = a.node;
|
|
1007
|
-
return
|
|
1024
|
+
return Z(s);
|
|
1008
1025
|
}).map(function(a) {
|
|
1009
1026
|
var s = a.node;
|
|
1010
1027
|
return s;
|
|
@@ -1015,22 +1032,22 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
1015
1032
|
node: s,
|
|
1016
1033
|
index: l,
|
|
1017
1034
|
lockItem: u.indexOf(s) >= 0,
|
|
1018
|
-
guard:
|
|
1035
|
+
guard: se(s)
|
|
1019
1036
|
};
|
|
1020
1037
|
});
|
|
1021
1038
|
}, Er = wr, Nr = function(t, e) {
|
|
1022
1039
|
"focus" in t && t.focus(e), "contentWindow" in t && t.contentWindow && t.contentWindow.focus();
|
|
1023
|
-
},
|
|
1040
|
+
}, re = 0, ne = !1, Tr = function(t, e, r) {
|
|
1024
1041
|
r === void 0 && (r = {});
|
|
1025
1042
|
var n = gr(t, e);
|
|
1026
|
-
if (!
|
|
1027
|
-
if (
|
|
1028
|
-
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),
|
|
1029
|
-
|
|
1043
|
+
if (!ne && n) {
|
|
1044
|
+
if (re > 2) {
|
|
1045
|
+
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), ne = !0, setTimeout(function() {
|
|
1046
|
+
ne = !1;
|
|
1030
1047
|
}, 1);
|
|
1031
1048
|
return;
|
|
1032
1049
|
}
|
|
1033
|
-
|
|
1050
|
+
re++, Nr(n.node, r.focusOptions), re--;
|
|
1034
1051
|
}
|
|
1035
1052
|
};
|
|
1036
1053
|
const Or = (t) => requestAnimationFrame(t), Fr = (t, e) => {
|
|
@@ -1051,35 +1068,35 @@ const Or = (t) => requestAnimationFrame(t), Fr = (t, e) => {
|
|
|
1051
1068
|
block: "center",
|
|
1052
1069
|
inline: "center"
|
|
1053
1070
|
};
|
|
1054
|
-
var
|
|
1071
|
+
var z = /* @__PURE__ */ ((t) => (t.VERTICAL = "vertical", t.HORIZONTAL = "horizontal", t))(z || {}), et = /* @__PURE__ */ ((t) => (t.ARROW_UP = "arrowup", t.ARROW_DOWN = "arrowdown", t))(et || {}), tt = /* @__PURE__ */ ((t) => (t.ARROW_LEFT = "arrowleft", t.ARROW_RIGHT = "arrowright", t))(tt || {});
|
|
1055
1072
|
const xr = (t, e, r) => {
|
|
1056
|
-
const n =
|
|
1057
|
-
() => r ===
|
|
1073
|
+
const n = $(null), i = K(
|
|
1074
|
+
() => r === z.HORIZONTAL
|
|
1058
1075
|
), u = K(
|
|
1059
|
-
() => r ===
|
|
1076
|
+
() => r === z.VERTICAL
|
|
1060
1077
|
), a = K(
|
|
1061
|
-
() => u.value ? Object.values(
|
|
1078
|
+
() => u.value ? Object.values(et) : Object.values(tt)
|
|
1062
1079
|
), s = () => {
|
|
1063
1080
|
(document.activeElement === document.body || dr() || !n.value) && (t.value && !fr(t.value) && Tr(t.value, n.value, {
|
|
1064
1081
|
focusOptions: { preventScroll: !0 }
|
|
1065
1082
|
}), n.value = document.activeElement);
|
|
1066
1083
|
}, l = () => {
|
|
1067
1084
|
var w;
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1085
|
+
const m = n.value || ((w = t.value) == null ? void 0 : w.parentNode) || document.body;
|
|
1086
|
+
m && m.focus();
|
|
1070
1087
|
}, d = () => {
|
|
1071
1088
|
e.value && Or(s);
|
|
1072
|
-
},
|
|
1089
|
+
}, b = () => {
|
|
1073
1090
|
var g;
|
|
1074
1091
|
if (!u.value && !i.value)
|
|
1075
1092
|
return !1;
|
|
1076
|
-
const
|
|
1077
|
-
return
|
|
1078
|
-
}, v = (
|
|
1079
|
-
if (!e.value || document.activeElement.isContentEditable ||
|
|
1093
|
+
const m = (g = document.activeElement) == null ? void 0 : g.tagName.toLowerCase(), w = u.value ? ["textarea", "select"] : ["input", "textarea"];
|
|
1094
|
+
return m ? w.includes(m) : !1;
|
|
1095
|
+
}, v = (m) => {
|
|
1096
|
+
if (!e.value || document.activeElement.isContentEditable || b())
|
|
1080
1097
|
return;
|
|
1081
|
-
const { isArrowNext: w, isArrowPrev: g } = Sr(
|
|
1082
|
-
if ((g || w) && (
|
|
1098
|
+
const { isArrowNext: w, isArrowPrev: g } = Sr(m, a.value);
|
|
1099
|
+
if ((g || w) && (m.preventDefault(), m.stopPropagation(), t.value)) {
|
|
1083
1100
|
const F = Ar(g ? 1 : -1, t.value);
|
|
1084
1101
|
if (F.focus(), "scrollIntoView" in F) {
|
|
1085
1102
|
const S = "scrollBehavior" in document.documentElement.style ? Ir : !1;
|
|
@@ -1087,14 +1104,14 @@ const xr = (t, e, r) => {
|
|
|
1087
1104
|
}
|
|
1088
1105
|
}
|
|
1089
1106
|
};
|
|
1090
|
-
return
|
|
1107
|
+
return Re(
|
|
1091
1108
|
() => e.value,
|
|
1092
|
-
(
|
|
1093
|
-
|
|
1109
|
+
(m) => {
|
|
1110
|
+
m ? s() : l();
|
|
1094
1111
|
}
|
|
1095
|
-
),
|
|
1112
|
+
), at(() => {
|
|
1096
1113
|
e.value && s();
|
|
1097
|
-
}),
|
|
1114
|
+
}), it(() => {
|
|
1098
1115
|
e.value && l();
|
|
1099
1116
|
}), {
|
|
1100
1117
|
onKeyDown: v,
|
|
@@ -1102,7 +1119,7 @@ const xr = (t, e, r) => {
|
|
|
1102
1119
|
};
|
|
1103
1120
|
}, kr = {
|
|
1104
1121
|
name: "bento-focus-trap"
|
|
1105
|
-
}, Cr = /* @__PURE__ */
|
|
1122
|
+
}, Cr = /* @__PURE__ */ ot({
|
|
1106
1123
|
...kr,
|
|
1107
1124
|
props: {
|
|
1108
1125
|
/**
|
|
@@ -1112,7 +1129,7 @@ const xr = (t, e, r) => {
|
|
|
1112
1129
|
arrowNavigation: {
|
|
1113
1130
|
type: String,
|
|
1114
1131
|
default: void 0,
|
|
1115
|
-
validator: (t) => Object.values(
|
|
1132
|
+
validator: (t) => Object.values(z).includes(t)
|
|
1116
1133
|
},
|
|
1117
1134
|
/**
|
|
1118
1135
|
* Enables / disables the focus trap.
|
|
@@ -1137,9 +1154,9 @@ const xr = (t, e, r) => {
|
|
|
1137
1154
|
}
|
|
1138
1155
|
},
|
|
1139
1156
|
setup(t) {
|
|
1140
|
-
const e = t, r =
|
|
1141
|
-
Ht(r, u,
|
|
1142
|
-
const { handleKeydownEscape: s } =
|
|
1157
|
+
const e = t, r = $(null), n = ut(), i = st(n), u = K(() => e.trapAll && !e.disabled && !e.arrowNavigation), a = K(() => !e.disabled && !e.trapAll);
|
|
1158
|
+
Ht(r, u, ct(e, "trapAllOptions"));
|
|
1159
|
+
const { handleKeydownEscape: s } = bt(r), { onKeyDown: l, onBlur: d } = xr(r, a, e.arrowNavigation);
|
|
1143
1160
|
return { __sfc: !0, props: e, root: r, slots: n, hasSlot: i, activateTrapAll: u, activateTrapArrowKeysOnly: a, handleKeydownEscape: s, onKeyDown: l, onBlur: d };
|
|
1144
1161
|
}
|
|
1145
1162
|
});
|
|
@@ -1148,7 +1165,7 @@ var Pr = function() {
|
|
|
1148
1165
|
return n.hasSlot("default") ? r("div", e._g({ ref: "root", staticClass: "b-focus-trap", attrs: { "data-testid": "focus-trap", tabindex: "-1" }, on: { focusout: n.onBlur, keydown: function(i) {
|
|
1149
1166
|
return !i.type.indexOf("key") && e._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : n.handleKeydownEscape.apply(null, arguments);
|
|
1150
1167
|
} } }, e.arrowNavigation ? { keydown: n.onKeyDown } : {}), [e._t("default")], 2) : e._e();
|
|
1151
|
-
}, Dr = [], Rr = /* @__PURE__ */
|
|
1168
|
+
}, Dr = [], Rr = /* @__PURE__ */ vt(
|
|
1152
1169
|
Cr,
|
|
1153
1170
|
Pr,
|
|
1154
1171
|
Dr,
|
|
@@ -1159,10 +1176,10 @@ var Pr = function() {
|
|
|
1159
1176
|
const Kr = Rr.exports;
|
|
1160
1177
|
export {
|
|
1161
1178
|
Kr as B,
|
|
1162
|
-
|
|
1179
|
+
be as a,
|
|
1163
1180
|
Er as b,
|
|
1164
1181
|
fr as f,
|
|
1165
1182
|
Ar as g,
|
|
1166
1183
|
Tr as s
|
|
1167
1184
|
};
|
|
1168
|
-
//# sourceMappingURL=focus-trap.
|
|
1185
|
+
//# sourceMappingURL=focus-trap.DMc1wL3A.js.map
|