@adyen/bento-vue2 1.78.2 → 1.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +77 -28
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- 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/header-with-views.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.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/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/teleport.css +1 -0
- package/dist/assets/toast.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.nQhXD2tV.js → accordion-item.G1q4zgBG.js} +2 -2
- package/dist/chunks/{accordion-item.nQhXD2tV.js.map → accordion-item.G1q4zgBG.js.map} +1 -1
- package/dist/chunks/{action-bar.MXZTIUNk.js → action-bar.DOaFj-A2.js} +3 -3
- package/dist/chunks/{action-bar.MXZTIUNk.js.map → action-bar.DOaFj-A2.js.map} +1 -1
- package/dist/chunks/{base-modal.BMdlCSd0.js → base-modal.BJ6315kP.js} +13 -13
- package/dist/chunks/{base-modal.BMdlCSd0.js.map → base-modal.BJ6315kP.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BFRkPi6g.js → button-actions-with-menu.DPKvfKJY.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BFRkPi6g.js.map → button-actions-with-menu.DPKvfKJY.js.map} +1 -1
- package/dist/chunks/{button-actions.B81vY51z.js → button-actions.C3cP-anb.js} +228 -347
- package/dist/chunks/button-actions.C3cP-anb.js.map +1 -0
- package/dist/chunks/{calendar.Fm_dfQC5.js → calendar.Bhj58zR3.js} +4 -43
- package/dist/chunks/{calendar.Fm_dfQC5.js.map → calendar.Bhj58zR3.js.map} +1 -1
- package/dist/chunks/{card.VOCKI7Ad.js → card.XfRuWGfC.js} +2 -2
- package/dist/chunks/{card.VOCKI7Ad.js.map → card.XfRuWGfC.js.map} +1 -1
- package/dist/chunks/{checkbox-group.tm9zLXkK.js → checkbox-group.CGxWh-no.js} +35 -34
- package/dist/chunks/checkbox-group.CGxWh-no.js.map +1 -0
- package/dist/chunks/{checkbox.itbBlXev.js → checkbox.C6NSiW_I.js} +18 -18
- package/dist/chunks/{checkbox.itbBlXev.js.map → checkbox.C6NSiW_I.js.map} +1 -1
- package/dist/chunks/{code-snippet.trioWquF.js → code-snippet.bzFOFUj4.js} +5 -5
- package/dist/chunks/{code-snippet.trioWquF.js.map → code-snippet.bzFOFUj4.js.map} +1 -1
- package/dist/chunks/{codemirror.Zv80n3Z2.js → codemirror.Cy7iSLbd.js} +12 -12
- package/dist/chunks/{codemirror.Zv80n3Z2.js.map → codemirror.Cy7iSLbd.js.map} +1 -1
- package/dist/chunks/constructNow.BhymNmy5.js +8 -0
- package/dist/chunks/{constructNow.CHWWeLPc.js.map → constructNow.BhymNmy5.js.map} +1 -1
- package/dist/chunks/{controls-group.82mB_GDw.js → controls-group.D62vSDSk.js} +2 -2
- package/dist/chunks/{controls-group.82mB_GDw.js.map → controls-group.D62vSDSk.js.map} +1 -1
- package/dist/chunks/{copy.WQDLcs_T.js → copy.Hu3DFJwv.js} +2 -2
- package/dist/chunks/{copy.WQDLcs_T.js.map → copy.Hu3DFJwv.js.map} +1 -1
- package/dist/chunks/{country.CGn5WjFx.js → country.B3z3-QRY.js} +2 -2
- package/dist/chunks/{country.CGn5WjFx.js.map → country.B3z3-QRY.js.map} +1 -1
- package/dist/chunks/{dashboard-section.D1l7wDX3.js → dashboard-section.BvGMr9Vl.js} +4 -4
- package/dist/chunks/{dashboard-section.D1l7wDX3.js.map → dashboard-section.BvGMr9Vl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.K-l-7bDq.js → dashed-underline.D107w00E.js} +13 -12
- package/dist/chunks/{dashed-underline.K-l-7bDq.js.map → dashed-underline.D107w00E.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DGUDqzjj.js → data-grid-template.DShJunDa.js} +4 -4
- package/dist/chunks/{data-grid-template.DGUDqzjj.js.map → data-grid-template.DShJunDa.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
- package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js.map → data-grid-template.keys.VezYtHtM.js.map} +1 -1
- package/dist/chunks/{data-grid.CS7Q8EWs.js → data-grid.BzHb4GUA.js} +18 -18
- package/dist/chunks/{data-grid.CS7Q8EWs.js.map → data-grid.BzHb4GUA.js.map} +1 -1
- package/dist/chunks/{date-picker.DK-ndVN9.js → date-picker.Dvx50znw.js} +7 -7
- package/dist/chunks/{date-picker.DK-ndVN9.js.map → date-picker.Dvx50znw.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BkZBhOfu.js → date-range-picker.DYYyE_e2.js} +313 -305
- package/dist/chunks/date-range-picker.DYYyE_e2.js.map +1 -0
- package/dist/chunks/{dialog-page.D23qNwKW.js → dialog-page.krM2wQpm.js} +2 -2
- package/dist/chunks/{dialog-page.D23qNwKW.js.map → dialog-page.krM2wQpm.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.C8FyCrav.js → differenceInMonths.Cab3nOsb.js} +2 -2
- package/dist/chunks/{differenceInMonths.C8FyCrav.js.map → differenceInMonths.Cab3nOsb.js.map} +1 -1
- package/dist/chunks/{divider.CFbtmKeQ.js → divider.DX5gwN7p.js} +2 -2
- package/dist/chunks/{divider.CFbtmKeQ.js.map → divider.DX5gwN7p.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.BCOVaw-a.js → dropdown-default-textbox.uWZMxeI7.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.BCOVaw-a.js.map → dropdown-default-textbox.uWZMxeI7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DUP4wYAW.js → dropdown-tag.Ctn5KMFU.js} +4 -4
- package/dist/chunks/{dropdown-tag.DUP4wYAW.js.map → dropdown-tag.Ctn5KMFU.js.map} +1 -1
- package/dist/chunks/{dropdown.BiA1YOYJ.js → dropdown.BpT6ct8O.js} +28 -28
- package/dist/chunks/{dropdown.BiA1YOYJ.js.map → dropdown.BpT6ct8O.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{events.CMzGybJJ.js → events.BQOQSSb7.js} +2 -5
- package/dist/chunks/{events.CMzGybJJ.js.map → events.BQOQSSb7.js.map} +1 -1
- package/dist/chunks/{field-label.Auq-Pzho.js → field-label.C3h8Q8Xd.js} +2 -2
- package/dist/chunks/{field-label.Auq-Pzho.js.map → field-label.C3h8Q8Xd.js.map} +1 -1
- package/dist/chunks/{file-uploader.DsvADlNb.js → file-uploader.CK6dhx8T.js} +109 -106
- package/dist/chunks/file-uploader.CK6dhx8T.js.map +1 -0
- package/dist/chunks/{filter-bar.F5drAPol.js → filter-bar.DpjD5bZe.js} +111 -115
- package/dist/chunks/filter-bar.DpjD5bZe.js.map +1 -0
- package/dist/chunks/{footer-actions.CLq_kBwY.js → footer-actions.DPjWGWhJ.js} +2 -2
- package/dist/chunks/{footer-actions.CLq_kBwY.js.map → footer-actions.DPjWGWhJ.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DoF6ovPB.js → form-layout-title.B_oVSX5b.js} +2 -2
- package/dist/chunks/{form-layout-title.DoF6ovPB.js.map → form-layout-title.B_oVSX5b.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
- package/dist/chunks/{form-layout.types.D3EKzbE7.js.map → form-layout.types.bZW9iR6_.js.map} +1 -1
- package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -1
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.BW7U6PxE.js → getTimezoneOffsetInMilliseconds.B7sxiukN.js} +2 -2
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map → getTimezoneOffsetInMilliseconds.B7sxiukN.js.map} +1 -1
- package/dist/chunks/{header-meta.D-6dL1Vg.js → header-meta.qT3_T35I.js} +5 -5
- package/dist/chunks/{header-meta.D-6dL1Vg.js.map → header-meta.qT3_T35I.js.map} +1 -1
- package/dist/chunks/{header-with-views.CG5FKoC1.js → header-with-views.BSYbvDyP.js} +13 -13
- package/dist/chunks/{header-with-views.CG5FKoC1.js.map → header-with-views.BSYbvDyP.js.map} +1 -1
- package/dist/chunks/{header.DoWKsA15.js → header.CLDtv3Ir.js} +3 -3
- package/dist/chunks/{header.DoWKsA15.js.map → header.CLDtv3Ir.js.map} +1 -1
- package/dist/chunks/{info-icon.Bhka3oGh.js → info-icon.DGrrXpIY.js} +2 -2
- package/dist/chunks/{info-icon.Bhka3oGh.js.map → info-icon.DGrrXpIY.js.map} +1 -1
- package/dist/chunks/{input-field-password.FvLueqmb.js → input-field-password.uhQuUzyj.js} +103 -95
- package/dist/chunks/input-field-password.uhQuUzyj.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.B-dlJc27.js → input-field-phone-number.BdbaTJwH.js} +1170 -1168
- package/dist/chunks/{input-field-phone-number.B-dlJc27.js.map → input-field-phone-number.BdbaTJwH.js.map} +1 -1
- package/dist/chunks/{input-field.B1MHu987.js → input-field.C4XJ53Cn.js} +87 -79
- package/dist/chunks/input-field.C4XJ53Cn.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.pB8weElW.js → keyboard-navigation.DWmhelVv.js} +2 -2
- package/dist/chunks/{keyboard-navigation.pB8weElW.js.map → keyboard-navigation.DWmhelVv.js.map} +1 -1
- package/dist/chunks/{layout-row.BP3lZAOh.js → layout-row.DwdZbpVG.js} +2 -2
- package/dist/chunks/{layout-row.BP3lZAOh.js.map → layout-row.DwdZbpVG.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DkPz3wPc.js → listbox-option-tag.B94BtpSU.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DkPz3wPc.js.map → listbox-option-tag.B94BtpSU.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BSKm6yn_.js → modal-fullscreen.B3Xx-Hoc.js} +33 -32
- package/dist/chunks/modal-fullscreen.B3Xx-Hoc.js.map +1 -0
- package/dist/chunks/{modal.Bp5twyjz.js → modal.D3OSxMF6.js} +4 -4
- package/dist/chunks/{modal.Bp5twyjz.js.map → modal.D3OSxMF6.js.map} +1 -1
- package/dist/chunks/{pagination.D1C0cURM.js → pagination.Bvhpu21H.js} +2 -2
- package/dist/chunks/{pagination.D1C0cURM.js.map → pagination.Bvhpu21H.js.map} +1 -1
- package/dist/chunks/{payment-method.CcASYR3B.js → payment-method.C8Ie97qE.js} +2 -2
- package/dist/chunks/{payment-method.CcASYR3B.js.map → payment-method.C8Ie97qE.js.map} +1 -1
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -1
- package/dist/chunks/{radio-group.DmKiTjS8.js → radio-group.BTu23ZgN.js} +5 -5
- package/dist/chunks/{radio-group.DmKiTjS8.js.map → radio-group.BTu23ZgN.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DzH-Z5oi.js → rich-text-editor.BtcSjFpF.js} +12 -12
- package/dist/chunks/{rich-text-editor.DzH-Z5oi.js.map → rich-text-editor.BtcSjFpF.js.map} +1 -1
- package/dist/chunks/{search-bar.Cvw_nY5M.js → search-bar.BcHoTrjP.js} +11 -11
- package/dist/chunks/search-bar.BcHoTrjP.js.map +1 -0
- package/dist/chunks/{secondary-nav.CUF6QWjI.js → secondary-nav.DEThy9WH.js} +3 -3
- package/dist/chunks/{secondary-nav.CUF6QWjI.js.map → secondary-nav.DEThy9WH.js.map} +1 -1
- package/dist/chunks/{segmented-control.Cma_nu0G.js → segmented-control.Dj_ZKhmU.js} +2 -2
- package/dist/chunks/{segmented-control.Cma_nu0G.js.map → segmented-control.Dj_ZKhmU.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Ddli4Llk.js → selection-card-group.Rz_rTBRp.js} +11 -11
- package/dist/chunks/{selection-card-group.Ddli4Llk.js.map → selection-card-group.Rz_rTBRp.js.map} +1 -1
- package/dist/chunks/{sidepanel.A9yG4FP_.js → sidepanel.ClG3dhHf.js} +4 -4
- package/dist/chunks/{sidepanel.A9yG4FP_.js.map → sidepanel.ClG3dhHf.js.map} +1 -1
- package/dist/chunks/{step.TzzZSA9f.js → step.Cnqr8i4V.js} +3 -3
- package/dist/chunks/{step.TzzZSA9f.js.map → step.Cnqr8i4V.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CMsVwwA6.js → structured-list-item.zoY-ATTu.js} +5 -5
- package/dist/chunks/{structured-list-item.CMsVwwA6.js.map → structured-list-item.zoY-ATTu.js.map} +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
- package/dist/chunks/{summary-grid.keys.CxTf_FOc.js.map → summary-grid.keys.Xx-W5a2w.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CaYrtyVO.js → summary-grid.types.BA0XCVKK.js} +21 -21
- package/dist/chunks/summary-grid.types.BA0XCVKK.js.map +1 -0
- package/dist/chunks/{tab.CTui3j3e.js → tab.DXE68qVf.js} +2 -2
- package/dist/chunks/{tab.CTui3j3e.js.map → tab.DXE68qVf.js.map} +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
- package/dist/chunks/{tabs.keys.Cb4Vw5Jh.js.map → tabs.keys.B4qGhjp2.js.map} +1 -1
- package/dist/chunks/{tag.BltIbSh3.js → tag.BdCP2CN_.js} +2 -2
- package/dist/chunks/{tag.BltIbSh3.js.map → tag.BdCP2CN_.js.map} +1 -1
- package/dist/chunks/teleport.dQFcCuAw.js +128 -0
- package/dist/chunks/teleport.dQFcCuAw.js.map +1 -0
- package/dist/chunks/{textarea.CLWZRnAt.js → textarea.DaNiOOJ7.js} +3 -3
- package/dist/chunks/{textarea.CLWZRnAt.js.map → textarea.DaNiOOJ7.js.map} +1 -1
- package/dist/chunks/{timeline-item.HbtUj1j_.js → timeline-item.D2HsuNh-.js} +7 -7
- package/dist/chunks/{timeline-item.HbtUj1j_.js.map → timeline-item.D2HsuNh-.js.map} +1 -1
- package/dist/chunks/toast.CA5H8vr9.js +174 -0
- package/dist/chunks/toast.CA5H8vr9.js.map +1 -0
- package/dist/chunks/{tooltip.D3SDcRef.js → tooltip.Dt87KVh2.js} +2 -2
- package/dist/chunks/{tooltip.D3SDcRef.js.map → tooltip.Dt87KVh2.js.map} +1 -1
- package/dist/chunks/{tutorial.B32GMtIj.js → tutorial.C-q4mxUb.js} +4 -4
- package/dist/chunks/{tutorial.B32GMtIj.js.map → tutorial.C-q4mxUb.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BKHU1qBv.js → use-bento-toast-controller.BhtohoS1.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BKHU1qBv.js.map → use-bento-toast-controller.BhtohoS1.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BZd3CTeP.js → use-cached-selected-values.FoXcm49J.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.BZd3CTeP.js.map → use-cached-selected-values.FoXcm49J.js.map} +1 -1
- package/dist/chunks/{use-form-layout-loading.D3lALhtC.js → use-form-layout-loading.CWbjZiwP.js} +2 -2
- package/dist/chunks/{use-form-layout-loading.D3lALhtC.js.map → use-form-layout-loading.CWbjZiwP.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- 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 +289 -288
- 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/internal.js +27 -26
- package/dist/internal.js.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/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/styles/bento-dark.css +4 -1
- package/dist/styles/bento-light.css +4 -1
- package/dist/styles/bento.css +4 -1
- package/dist/styles/legacy.css +4 -1
- package/dist/styles/styleguide.css +4 -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/use-form-v4.js +8 -8
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +105 -5
- package/package.json +8 -7
- package/dist/chunks/button-actions.B81vY51z.js.map +0 -1
- package/dist/chunks/checkbox-group.tm9zLXkK.js.map +0 -1
- package/dist/chunks/constructNow.CHWWeLPc.js +0 -8
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
- package/dist/chunks/date-range-picker.BkZBhOfu.js.map +0 -1
- package/dist/chunks/file-uploader.DsvADlNb.js.map +0 -1
- package/dist/chunks/filter-bar.F5drAPol.js.map +0 -1
- package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
- package/dist/chunks/input-field-password.FvLueqmb.js.map +0 -1
- package/dist/chunks/input-field.B1MHu987.js.map +0 -1
- package/dist/chunks/modal-fullscreen.BSKm6yn_.js.map +0 -1
- package/dist/chunks/search-bar.Cvw_nY5M.js.map +0 -1
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
- package/dist/chunks/summary-grid.types.CaYrtyVO.js.map +0 -1
- package/dist/chunks/tabs.keys.Cb4Vw5Jh.js +0 -7
- package/dist/chunks/toast.B4J4V6n-.js +0 -171
- package/dist/chunks/toast.B4J4V6n-.js.map +0 -1
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as I, useSlots as T, computed as p, onMounted as R, onUnmounted as H, useAttrs as Z, inject as E, ref as d, toRefs as Q, watch as G, nextTick as N, provide as ee, toRef as te } from "vue";
|
|
2
2
|
import { B as b } from "./button.CS_kdxYh.js";
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
3
|
+
import { B as ne } from "./loading-indicator.PxbRzshH.js";
|
|
4
|
+
import { C as se } from "./cross-circle-fill.DTDtgLMf.js";
|
|
5
|
+
import { C as oe } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
6
6
|
import { u as D } from "./use-has-slot.C9lQZ6nz.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as Y } from "./index.B6WW_F-J.js";
|
|
8
8
|
import { n as C } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
-
import
|
|
10
|
-
import { B as
|
|
11
|
-
import { C as
|
|
12
|
-
import { B as
|
|
13
|
-
import { c as
|
|
14
|
-
import { u as
|
|
15
|
-
import { o as
|
|
16
|
-
import { g as
|
|
17
|
-
import { C as
|
|
9
|
+
import "./index.Cl4_42j5.js";
|
|
10
|
+
import { B as j, D as ae } from "./divider.DX5gwN7p.js";
|
|
11
|
+
import { C as ie } from "./cross.CC_B-vG-.js";
|
|
12
|
+
import { B as J, a as $, p as le } from "./typography.hlOAxsEn.js";
|
|
13
|
+
import { c as re, P as ue, d as ce } from "./popper-container.agLYtGwv.js";
|
|
14
|
+
import { u as de } from "./aria-label.CaUURpnB.js";
|
|
15
|
+
import { o as fe } from "./on-click-outside.D9aY9g8G.js";
|
|
16
|
+
import { g as pe } from "./generate-uid.NJ8tVoha.js";
|
|
17
|
+
import { C as _e } from "./chevron-down.eYtgv5ly.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { C as
|
|
20
|
-
import { a as U, B as
|
|
21
|
-
import { t as
|
|
19
|
+
import { C as me, a as W } from "./chevron-left.BS24hEFa.js";
|
|
20
|
+
import { a as U, B as ve } from "./base-button.Cv-1788W.js";
|
|
21
|
+
import { t as ye } from "./truncate.BfIl_-71.js";
|
|
22
|
+
import { B as ge } from "./teleport.dQFcCuAw.js";
|
|
22
23
|
import { o as be } from "./resize.Bqks3WUm.js";
|
|
23
|
-
import { g as
|
|
24
|
+
import { g as Ce } from "./es6.MoTTyETW.js";
|
|
24
25
|
import "../assets/button-actions.css";
|
|
25
|
-
var
|
|
26
|
-
const
|
|
26
|
+
var k = /* @__PURE__ */ ((o) => (o.START = "start", o.LOADING = "loading", o.SUCCESS = "success", o.FAIL = "fail", o))(k || {});
|
|
27
|
+
const he = {
|
|
27
28
|
"en-US": {
|
|
28
29
|
failed: "Failed",
|
|
29
30
|
succeded: "Succeded"
|
|
@@ -35,8 +36,8 @@ const Ce = {
|
|
|
35
36
|
failed: "Falha"
|
|
36
37
|
}
|
|
37
38
|
}, ke = {
|
|
38
|
-
i18n: { messages:
|
|
39
|
-
}, Ie = /* @__PURE__ */
|
|
39
|
+
i18n: { messages: he }
|
|
40
|
+
}, Ie = /* @__PURE__ */ I({
|
|
40
41
|
...ke,
|
|
41
42
|
__name: "loading-button",
|
|
42
43
|
props: {
|
|
@@ -74,8 +75,8 @@ const Ce = {
|
|
|
74
75
|
*/
|
|
75
76
|
state: {
|
|
76
77
|
type: String,
|
|
77
|
-
default:
|
|
78
|
-
validator: (o) => Object.values(
|
|
78
|
+
default: k.START,
|
|
79
|
+
validator: (o) => Object.values(k).includes(o)
|
|
79
80
|
},
|
|
80
81
|
/**
|
|
81
82
|
* Types of flavour of Button
|
|
@@ -88,19 +89,19 @@ const Ce = {
|
|
|
88
89
|
},
|
|
89
90
|
emits: ["click"],
|
|
90
91
|
setup(o, { emit: e }) {
|
|
91
|
-
const n = o, t =
|
|
92
|
-
[`b-loading-button--${n.variant}-${
|
|
93
|
-
"b-loading-button--loading": n.state ===
|
|
94
|
-
[`b-loading-button--${n.variant}-${
|
|
92
|
+
const n = o, t = T(), s = D(t), { t: i } = Y(), c = p(() => ({
|
|
93
|
+
[`b-loading-button--${n.variant}-${k.LOADING}`]: n.state === k.LOADING && !n.disabled,
|
|
94
|
+
"b-loading-button--loading": n.state === k.LOADING && !n.disabled,
|
|
95
|
+
[`b-loading-button--${n.variant}-${k.SUCCESS}`]: n.state === k.SUCCESS,
|
|
95
96
|
"b-loading-button--inverse": n.inverse
|
|
96
|
-
})),
|
|
97
|
+
})), r = p(
|
|
97
98
|
() => n.variant === "primary" && !n.inverse || n.variant !== "primary" && n.inverse
|
|
98
99
|
), u = p(
|
|
99
|
-
() => n.critical && n.state ===
|
|
100
|
+
() => n.critical && n.state === k.START || n.state === k.FAIL
|
|
100
101
|
);
|
|
101
|
-
return { __sfc: !0, props: n, emit: e, slots: t, hasSlot: s, t: i, conditionalClasses: c, isInverseLoadingIndicator:
|
|
102
|
-
|
|
103
|
-
}, BentoLoadingIndicator:
|
|
102
|
+
return { __sfc: !0, props: n, emit: e, slots: t, hasSlot: s, t: i, conditionalClasses: c, isInverseLoadingIndicator: r, isCritical: u, onClick: (l) => {
|
|
103
|
+
l.stopPropagation(), n.state !== k.LOADING && e("click", l);
|
|
104
|
+
}, BentoLoadingIndicator: ne, BentoButton: b, Cross: se, Checkmark: oe };
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
107
|
var Be = function() {
|
|
@@ -112,16 +113,16 @@ var Be = function() {
|
|
|
112
113
|
}, proxy: !0 } : e.state !== "start" ? { key: "iconLeft", fn: function() {
|
|
113
114
|
return [n("span", { staticClass: "b-loading-button__icon", attrs: { "data-testid": "loading-button-rotating-icon" } }, [e.state === "fail" ? n(t.Cross, { attrs: { "svg-title": t.t("failed") } }) : e.state === "success" ? n(t.Checkmark, { attrs: { "svg-title": t.t("succeded") } }) : e.state === "loading" ? n(t.BentoLoadingIndicator, { attrs: { small: "", inverse: t.isInverseLoadingIndicator } }) : e._e()], 1)];
|
|
114
115
|
}, proxy: !0 } : null], null, !0) }, [e._t("default")], 2);
|
|
115
|
-
},
|
|
116
|
+
}, xe = [], Se = /* @__PURE__ */ C(
|
|
116
117
|
Ie,
|
|
117
118
|
Be,
|
|
118
|
-
|
|
119
|
+
xe,
|
|
119
120
|
!1,
|
|
120
121
|
null,
|
|
121
122
|
"bc74b2f7"
|
|
122
123
|
);
|
|
123
|
-
const
|
|
124
|
-
...
|
|
124
|
+
const Oe = Se.exports, Le = {}, Ee = /* @__PURE__ */ I({
|
|
125
|
+
...Le,
|
|
125
126
|
__name: "toggle-button",
|
|
126
127
|
props: {
|
|
127
128
|
/**
|
|
@@ -172,11 +173,11 @@ const xe = Se.exports, Ee = {}, Le = /* @__PURE__ */ g({
|
|
|
172
173
|
"b-toggle-button--inverse": n.inverse
|
|
173
174
|
})), i = (u) => {
|
|
174
175
|
u.stopPropagation(), n != null && n.disabled || (e("click", u), e("update:toggled", !n.toggled));
|
|
175
|
-
}, c =
|
|
176
|
+
}, c = T();
|
|
176
177
|
return { __sfc: !0, props: n, emit: e, computedVariant: t, conditionalClasses: s, onClick: i, slots: c, getSlotKeyIfVue3: (u) => ({}), BentoButton: b };
|
|
177
178
|
}
|
|
178
179
|
});
|
|
179
|
-
var
|
|
180
|
+
var Te = function() {
|
|
180
181
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
181
182
|
return n(t.BentoButton, e._b({ staticClass: "b-toggle-button", class: t.conditionalClasses, attrs: { "aria-expanded": `${e.toggled}`, "aria-pressed": `${e.toggled}`, condensed: e.condensed, disabled: e.disabled, inverse: e.inverse, variant: t.computedVariant }, on: { "!click": function(s) {
|
|
182
183
|
return s.stopPropagation(), t.onClick.apply(null, arguments);
|
|
@@ -185,17 +186,17 @@ var we = function() {
|
|
|
185
186
|
return [e._t(i, null, null, t.getSlotKeyIfVue3(i))];
|
|
186
187
|
}, proxy: !0 };
|
|
187
188
|
})], null, !0) }, "bento-button", e.$attrs, !1));
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
we,
|
|
189
|
+
}, Re = [], we = /* @__PURE__ */ C(
|
|
190
|
+
Ee,
|
|
191
191
|
Te,
|
|
192
|
+
Re,
|
|
192
193
|
!1,
|
|
193
194
|
null,
|
|
194
195
|
"0bc368c9"
|
|
195
196
|
);
|
|
196
|
-
const
|
|
197
|
+
const Me = we.exports, Pe = I({
|
|
197
198
|
name: "bento-popover-dismiss-button",
|
|
198
|
-
components: { BentoButton: b, CrossIcon:
|
|
199
|
+
components: { BentoButton: b, CrossIcon: ie },
|
|
199
200
|
props: {
|
|
200
201
|
onImage: {
|
|
201
202
|
type: Boolean,
|
|
@@ -209,23 +210,23 @@ const Re = Me.exports, Ae = g({
|
|
|
209
210
|
};
|
|
210
211
|
}
|
|
211
212
|
});
|
|
212
|
-
var
|
|
213
|
+
var Ae = function() {
|
|
213
214
|
var e = this, n = e._self._c;
|
|
214
215
|
return e._self._setupProxy, n("bento-button", { class: e.conditionalClass, attrs: { variant: "tertiary" }, on: { click: function(t) {
|
|
215
216
|
return e.$emit("click");
|
|
216
217
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
217
218
|
return [n("cross-icon", { attrs: { "svg-title": "dismiss" } })];
|
|
218
219
|
}, proxy: !0 }]) });
|
|
219
|
-
},
|
|
220
|
+
}, Ne = [], De = /* @__PURE__ */ C(
|
|
221
|
+
Pe,
|
|
220
222
|
Ae,
|
|
221
223
|
Ne,
|
|
222
|
-
Pe,
|
|
223
224
|
!1,
|
|
224
225
|
null,
|
|
225
226
|
"4c18828f"
|
|
226
227
|
);
|
|
227
|
-
const
|
|
228
|
-
components: { BentoTypography:
|
|
228
|
+
const Fe = De.exports, $e = I({
|
|
229
|
+
components: { BentoTypography: J },
|
|
229
230
|
props: {
|
|
230
231
|
/**
|
|
231
232
|
* Indicates if the popover contains an image.
|
|
@@ -238,7 +239,7 @@ const $e = De.exports, Fe = g({
|
|
|
238
239
|
},
|
|
239
240
|
setup(o) {
|
|
240
241
|
const e = p(() => !o.isImageTitle), n = p(
|
|
241
|
-
() => o.isImageTitle ?
|
|
242
|
+
() => o.isImageTitle ? $.SUBTITLE : $.BODY
|
|
242
243
|
);
|
|
243
244
|
return {
|
|
244
245
|
// Values
|
|
@@ -251,21 +252,21 @@ var We = function() {
|
|
|
251
252
|
var e = this, n = e._self._c;
|
|
252
253
|
return e._self._setupProxy, n("bento-typography", { attrs: { strongest: e.isStrongest, variant: e.titleVariant, el: "span" } }, [e._v(" " + e._s(e.title) + " ")]);
|
|
253
254
|
}, Ue = [], Ve = /* @__PURE__ */ C(
|
|
254
|
-
|
|
255
|
+
$e,
|
|
255
256
|
We,
|
|
256
257
|
Ue,
|
|
257
258
|
!1,
|
|
258
259
|
null,
|
|
259
260
|
null
|
|
260
261
|
);
|
|
261
|
-
const Ke = Ve.exports,
|
|
262
|
+
const Ke = Ve.exports, He = (o, e, n = {}) => {
|
|
262
263
|
let t;
|
|
263
|
-
|
|
264
|
-
t =
|
|
265
|
-
}),
|
|
264
|
+
R(() => {
|
|
265
|
+
t = fe(o, e, n);
|
|
266
|
+
}), H(() => {
|
|
266
267
|
t && (t(), t = null);
|
|
267
268
|
});
|
|
268
|
-
},
|
|
269
|
+
}, Ge = /* @__PURE__ */ Symbol("input field popover injection key"), Ye = /* @__PURE__ */ Symbol("input field popover injection key"), je = /* @__PURE__ */ Symbol("popover offset injection key"), Je = {}, Xe = /* @__PURE__ */ I({
|
|
269
270
|
...Je,
|
|
270
271
|
__name: "popover",
|
|
271
272
|
props: {
|
|
@@ -292,18 +293,18 @@ const Ke = Ve.exports, Ge = (o, e, n = {}) => {
|
|
|
292
293
|
},
|
|
293
294
|
emits: ["dismiss", "placement"],
|
|
294
295
|
setup(o, { emit: e }) {
|
|
295
|
-
const n = o, t = 2, s =
|
|
296
|
+
const n = o, t = 2, s = T(), i = Z(), c = p(() => {
|
|
296
297
|
var B;
|
|
297
298
|
return {
|
|
298
299
|
id: (B = i.id) == null ? void 0 : B.toString(),
|
|
299
|
-
role: (i == null ? void 0 : i.role) === null ? void 0 :
|
|
300
|
+
role: (i == null ? void 0 : i.role) === null ? void 0 : re.POPOVER
|
|
300
301
|
};
|
|
301
|
-
}),
|
|
302
|
+
}), r = E(je, t), u = d(i["aria-label"]), { ariaLabel: a, title: l } = Q(n), f = de({
|
|
302
303
|
ariaLabel: u.value,
|
|
303
304
|
// TODO: take this line away when the aria-label props is removed
|
|
304
305
|
label: a,
|
|
305
|
-
defaultFallback:
|
|
306
|
-
}), m =
|
|
306
|
+
defaultFallback: l
|
|
307
|
+
}), m = E(Ye, !1) || E(Ge, !1), _ = p(() => ({
|
|
307
308
|
"b-popover--small": n.small && !n.large,
|
|
308
309
|
"b-popover--with-divider": !!n.divider,
|
|
309
310
|
"b-popover--large": n.large && !n.small,
|
|
@@ -312,160 +313,44 @@ const Ke = Ve.exports, Ge = (o, e, n = {}) => {
|
|
|
312
313
|
"b-popover--overflow-visible": n.overflowVisible || m
|
|
313
314
|
})), y = p(() => ({
|
|
314
315
|
"b-popover__content--with-title": !!n.title
|
|
315
|
-
})),
|
|
316
|
-
return { __sfc: !0, DEFAULT_OFFSET: t, props: n, emit: e, slots: s, attrs: i, computedAttributes: c, offset:
|
|
316
|
+
})), h = () => e("dismiss"), O = D(s);
|
|
317
|
+
return { __sfc: !0, DEFAULT_OFFSET: t, props: n, emit: e, slots: s, attrs: i, computedAttributes: c, offset: r, ariaLabelAttribute: u, ariaLabel: a, title: l, computedAriaLabel: f, isOverflowVisible: m, conditionalClasses: _, contentConditionalClasses: y, dismissPopover: h, hasSlot: O, BentoPopoverDismissButton: Fe, BentoPopoverTitle: Ke, BentoButtonActions: Ut, PopperContainer: ue };
|
|
317
318
|
}
|
|
318
319
|
});
|
|
319
|
-
var
|
|
320
|
+
var qe = function() {
|
|
320
321
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
321
322
|
return n("Transition", { attrs: { name: "b-popover__animation" } }, [e.open ? n(t.PopperContainer, { staticClass: "b-popover", class: t.conditionalClasses, attrs: { id: t.computedAttributes.id, "aria-role": t.computedAttributes.role, "aria-label": t.computedAriaLabel, arrow: { classes: ["b-popover__arrow"] }, "disabled-focus-trap": e.disableFocusTrap, "trap-all": e.trapAll, "trap-all-options": e.trapAllOptions, "fallback-position": e.fallbackPosition, "fixed-positioning": e.fixedPositioning, offset: [0, t.offset], position: e.position, "target-element": e.targetElement }, on: { placement: function(s) {
|
|
322
323
|
return e.$emit("placement", s);
|
|
323
324
|
} } }, [t.hasSlot("image") ? n("div", { staticClass: "b-popover__image" }, [e.dismissible ? n("div", { staticClass: "b-popover__image-dismiss-button" }, [n(t.BentoPopoverDismissButton, { attrs: { "on-image": "" }, on: { click: t.dismissPopover } })], 1) : e._e(), e._t("image")], 2) : e._e(), t.title ? n("div", { staticClass: "b-popover__header" }, [n("div", { staticClass: "b-popover__header-title" }, [t.hasSlot("headerIcon") ? e._t("headerIcon") : e._e(), n(t.BentoPopoverTitle, { attrs: { title: t.title, "is-image-title": !!t.hasSlot("image") } })], 2), e.dismissible && !t.hasSlot("image") ? n("div", [n(t.BentoPopoverDismissButton, { on: { click: t.dismissPopover } })], 1) : e._e()]) : e._e(), t.hasSlot("default") ? n("div", { staticClass: "b-popover__content", class: t.contentConditionalClasses }, [e._t("default")], 2) : e._e(), e.actions ? n("div", { staticClass: "b-popover__footer" }, [n(t.BentoButtonActions, { attrs: { actions: e.actions, layout: e.actionsLayout } })], 1) : e._e()]) : e._e()], 1);
|
|
324
325
|
}, ze = [], Ze = /* @__PURE__ */ C(
|
|
325
|
-
qe,
|
|
326
326
|
Xe,
|
|
327
|
+
qe,
|
|
327
328
|
ze,
|
|
328
329
|
!1,
|
|
329
330
|
null,
|
|
330
331
|
"2de66a7e"
|
|
331
332
|
);
|
|
332
|
-
const Qe = Ze.exports
|
|
333
|
-
name: "teleport",
|
|
334
|
-
props: {
|
|
335
|
-
to: {
|
|
336
|
-
type: String,
|
|
337
|
-
default: ""
|
|
338
|
-
},
|
|
339
|
-
where: {
|
|
340
|
-
type: String,
|
|
341
|
-
default: "after"
|
|
342
|
-
},
|
|
343
|
-
disabled: Boolean
|
|
344
|
-
},
|
|
345
|
-
data: () => ({
|
|
346
|
-
childObserver: null,
|
|
347
|
-
nodes: [],
|
|
348
|
-
waiting: !1,
|
|
349
|
-
observer: null,
|
|
350
|
-
parent: null,
|
|
351
|
-
isVue2: Y
|
|
352
|
-
}),
|
|
353
|
-
computed: {
|
|
354
|
-
classes() {
|
|
355
|
-
return this.disabled ? ["b-teleport"] : ["b-teleport", "b-teleport--hidden"];
|
|
356
|
-
},
|
|
357
|
-
defaultTo() {
|
|
358
|
-
if (this.to)
|
|
359
|
-
return this.to;
|
|
360
|
-
const o = S(et, "") || S(nt, "") || S(tt, "");
|
|
361
|
-
return o ? `#${o}` : "body";
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
watch: {
|
|
365
|
-
to: "maybeMove",
|
|
366
|
-
where: "maybeMove",
|
|
367
|
-
disabled(o) {
|
|
368
|
-
o ? (this.disable(), this.$nextTick(() => {
|
|
369
|
-
this.teardownObserver();
|
|
370
|
-
})) : (this.bootObserver(), this.move());
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
mounted() {
|
|
374
|
-
this.nodes = Array.from(this.$el.childNodes), this.disabled || this.bootObserver(), this.maybeMove();
|
|
375
|
-
},
|
|
376
|
-
beforeDestroy() {
|
|
377
|
-
this.nodes = this.getComponentChildrenNode(), this.disable(), this.teardownObserver();
|
|
378
|
-
},
|
|
379
|
-
methods: {
|
|
380
|
-
// Using a fragment is faster because it'll trigger only a single reflow
|
|
381
|
-
// See https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment
|
|
382
|
-
getFragment() {
|
|
383
|
-
const o = document.createDocumentFragment();
|
|
384
|
-
return this.nodes.forEach((e) => o.appendChild(e)), o;
|
|
385
|
-
},
|
|
386
|
-
disable() {
|
|
387
|
-
this.$el.appendChild(this.getFragment()), this.parent = null;
|
|
388
|
-
},
|
|
389
|
-
move() {
|
|
390
|
-
if (this.waiting = !1, this.parent = document.querySelector(this.defaultTo), !this.parent) {
|
|
391
|
-
this.disable(), this.waiting = !0;
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
this.where === "before" ? this.parent.prepend(this.getFragment()) : this.parent.appendChild(this.getFragment());
|
|
395
|
-
},
|
|
396
|
-
maybeMove() {
|
|
397
|
-
this.disabled || this.move();
|
|
398
|
-
},
|
|
399
|
-
onMutations(o) {
|
|
400
|
-
let e = !1;
|
|
401
|
-
for (let n = 0; n < o.length; n++) {
|
|
402
|
-
const t = o[n], s = Array.from(t.addedNodes).filter(
|
|
403
|
-
(i) => !this.nodes.includes(i)
|
|
404
|
-
);
|
|
405
|
-
Array.from(t.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && s.length > 0 && (e = !0);
|
|
406
|
-
}
|
|
407
|
-
e && this.move();
|
|
408
|
-
},
|
|
409
|
-
bootObserver() {
|
|
410
|
-
this.observer || (this.observer = new MutationObserver((o) => this.onMutations(o)), this.observer.observe(document.body, {
|
|
411
|
-
childList: !0,
|
|
412
|
-
subtree: !0,
|
|
413
|
-
attributes: !1,
|
|
414
|
-
characterData: !1
|
|
415
|
-
}), !this.childObserver && (this.childObserver = new MutationObserver((o) => {
|
|
416
|
-
o.find((n) => n.target === this.$el) && (this.nodes.forEach((n) => n.parentNode && n.parentNode.removeChild(n)), this.nodes = this.getComponentChildrenNode(), this.maybeMove());
|
|
417
|
-
}), this.childObserver.observe(this.$el, {
|
|
418
|
-
childList: !0,
|
|
419
|
-
subtree: !1,
|
|
420
|
-
attributes: !1,
|
|
421
|
-
characterData: !1
|
|
422
|
-
})));
|
|
423
|
-
},
|
|
424
|
-
teardownObserver() {
|
|
425
|
-
this.observer && (this.observer.disconnect(), this.observer = null), this.childObserver && (this.childObserver.disconnect(), this.childObserver = null);
|
|
426
|
-
},
|
|
427
|
-
getComponentChildrenNode() {
|
|
428
|
-
return this.$vnode.componentOptions.children.map((o) => o.elm).filter((o) => o);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}), ot = /* @__PURE__ */ g({
|
|
432
|
-
...st,
|
|
433
|
-
setup(o) {
|
|
434
|
-
return { __sfc: !0, isVue2: Y };
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
var at = function() {
|
|
438
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
439
|
-
return t.isVue2 ? n("div", { class: e.classes }, [e._t("default")], 2) : n("Teleport", { class: e.classes, attrs: { to: e.defaultTo, where: e.where, disabled: e.disabled } }, [e._t("default")], 2);
|
|
440
|
-
}, it = [], rt = /* @__PURE__ */ C(
|
|
441
|
-
ot,
|
|
442
|
-
at,
|
|
443
|
-
it,
|
|
444
|
-
!1,
|
|
445
|
-
null,
|
|
446
|
-
"fda08514"
|
|
447
|
-
);
|
|
448
|
-
const lt = rt.exports;
|
|
333
|
+
const Qe = Ze.exports;
|
|
449
334
|
let V = 0;
|
|
450
|
-
const
|
|
335
|
+
const et = {
|
|
451
336
|
beforeCreate() {
|
|
452
337
|
this.uuid = V.toString(), V += 1;
|
|
453
338
|
}
|
|
454
339
|
};
|
|
455
|
-
var
|
|
340
|
+
var tt = function() {
|
|
456
341
|
var e = this, n = e._self._c;
|
|
457
342
|
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z" } }), n("path", { attrs: { fill: "#001222", d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z" } }), n("path", { attrs: { fill: "#001222", d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z" } })]);
|
|
458
|
-
},
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
343
|
+
}, nt = [], st = /* @__PURE__ */ C(
|
|
344
|
+
et,
|
|
345
|
+
tt,
|
|
346
|
+
nt,
|
|
462
347
|
!1,
|
|
463
348
|
null,
|
|
464
349
|
null
|
|
465
350
|
);
|
|
466
|
-
const
|
|
351
|
+
const ot = st.exports, at = I({
|
|
467
352
|
name: "menu-item",
|
|
468
|
-
components: { BaseButton:
|
|
353
|
+
components: { BaseButton: ve, BentoTypography: J, ChevronRightIcon: me },
|
|
469
354
|
props: {
|
|
470
355
|
/**
|
|
471
356
|
* menu-item text that gets displayed as the main label
|
|
@@ -538,7 +423,7 @@ const pt = ft.exports, _t = g({
|
|
|
538
423
|
const t = p(() => ({
|
|
539
424
|
"b-menu-item--critical": o.critical,
|
|
540
425
|
"b-menu-item--indent": o.indent
|
|
541
|
-
})), s = p(() =>
|
|
426
|
+
})), s = p(() => ye(o.secondaryText, 10));
|
|
542
427
|
return {
|
|
543
428
|
// Values
|
|
544
429
|
conditionalClasses: t,
|
|
@@ -550,7 +435,7 @@ const pt = ft.exports, _t = g({
|
|
|
550
435
|
};
|
|
551
436
|
}
|
|
552
437
|
});
|
|
553
|
-
var
|
|
438
|
+
var it = function() {
|
|
554
439
|
var e = this, n = e._self._c;
|
|
555
440
|
return e._self._setupProxy, n("base-button", { staticClass: "b-menu-item", class: e.conditionalClasses, attrs: { role: "menuitem", disabled: e.disabled, tabindex: "-1" }, on: { click: e.onClick }, scopedSlots: e._u([e.icon ? { key: "iconLeft", fn: function() {
|
|
556
441
|
return [n(e.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
|
|
@@ -559,23 +444,23 @@ var mt = function() {
|
|
|
559
444
|
}, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
|
|
560
445
|
return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
|
|
561
446
|
}, proxy: !0 } : null], null, !0) });
|
|
562
|
-
},
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
447
|
+
}, lt = [], rt = /* @__PURE__ */ C(
|
|
448
|
+
at,
|
|
449
|
+
it,
|
|
450
|
+
lt,
|
|
566
451
|
!1,
|
|
567
452
|
null,
|
|
568
453
|
"a173cbf5"
|
|
569
454
|
);
|
|
570
|
-
const X =
|
|
571
|
-
({ ...
|
|
572
|
-
var
|
|
573
|
-
const
|
|
455
|
+
const X = rt.exports;
|
|
456
|
+
({ ...ce });
|
|
457
|
+
var x = /* @__PURE__ */ ((o) => (o.BACK = "back", o.CLOSE = "close", o.OPEN = "open", o))(x || {});
|
|
458
|
+
const ut = /* @__PURE__ */ Symbol("menu registering injection key"), ct = {
|
|
574
459
|
name: "bento-menu-list-container"
|
|
575
|
-
},
|
|
576
|
-
...
|
|
460
|
+
}, dt = /* @__PURE__ */ I({
|
|
461
|
+
...ct,
|
|
577
462
|
setup(o) {
|
|
578
|
-
const e = d(), n = d({}), t =
|
|
463
|
+
const e = d(), n = d({}), t = E(ut, !1);
|
|
579
464
|
if (t) {
|
|
580
465
|
const { registerMenuContainerElement: s } = t;
|
|
581
466
|
s(e), n.value = {
|
|
@@ -585,26 +470,26 @@ const ht = Symbol("menu registering injection key"), bt = {
|
|
|
585
470
|
return { __sfc: !0, menuListContainerRef: e, menuListContainerEvents: n, registeringAndMousingOut: t };
|
|
586
471
|
}
|
|
587
472
|
});
|
|
588
|
-
var
|
|
473
|
+
var ft = function() {
|
|
589
474
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
590
475
|
return n("div", e._g({ ref: "menuListContainerRef", staticClass: "b-menu-list-container", attrs: { "data-testid": "menu-list-container" } }, t.menuListContainerEvents), [e._t("default")], 2);
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
476
|
+
}, pt = [], _t = /* @__PURE__ */ C(
|
|
477
|
+
dt,
|
|
478
|
+
ft,
|
|
479
|
+
pt,
|
|
595
480
|
!1,
|
|
596
481
|
null,
|
|
597
482
|
"1669d56a"
|
|
598
483
|
);
|
|
599
|
-
const
|
|
484
|
+
const q = _t.exports, z = {
|
|
600
485
|
"en-US": {
|
|
601
486
|
backButton: "Go back",
|
|
602
487
|
menuButton: "Open menu"
|
|
603
488
|
}
|
|
604
|
-
},
|
|
605
|
-
i18n: { messages:
|
|
489
|
+
}, mt = I({
|
|
490
|
+
i18n: { messages: z },
|
|
606
491
|
name: "sub-menu-item-list",
|
|
607
|
-
components: { BentoDivider:
|
|
492
|
+
components: { BentoDivider: j, MenuItem: X, MenuListContainer: q },
|
|
608
493
|
props: {
|
|
609
494
|
items: {
|
|
610
495
|
type: Array,
|
|
@@ -615,9 +500,9 @@ const z = It.exports, Z = {
|
|
|
615
500
|
required: !0
|
|
616
501
|
}
|
|
617
502
|
},
|
|
618
|
-
emits: [
|
|
503
|
+
emits: [x.CLOSE, x.BACK],
|
|
619
504
|
setup(o, { emit: e }) {
|
|
620
|
-
const n = d(null), t = d(0), s = d(o.items.length), i = () => e(
|
|
505
|
+
const n = d(null), t = d(0), s = d(o.items.length), i = () => e(x.CLOSE), c = () => e(x.BACK), r = p(() => {
|
|
621
506
|
var m;
|
|
622
507
|
const f = (m = o.items) == null ? void 0 : m.map((_) => ({
|
|
623
508
|
..._,
|
|
@@ -641,34 +526,34 @@ const z = It.exports, Z = {
|
|
|
641
526
|
...f
|
|
642
527
|
];
|
|
643
528
|
}), u = async () => {
|
|
644
|
-
var f, m, _, y,
|
|
645
|
-
(
|
|
529
|
+
var f, m, _, y, h;
|
|
530
|
+
(h = (y = (_ = (m = (f = n.value) == null ? void 0 : f.children) == null ? void 0 : m[t.value]) == null ? void 0 : _.children) == null ? void 0 : y[0]) == null || h.focus();
|
|
646
531
|
};
|
|
647
|
-
|
|
532
|
+
R(async () => {
|
|
648
533
|
setTimeout(() => u(), 150);
|
|
649
534
|
});
|
|
650
535
|
const a = () => {
|
|
651
|
-
t.value > 0 ? (t.value -= 1,
|
|
652
|
-
},
|
|
653
|
-
t.value < s.value ? (t.value += 1,
|
|
536
|
+
t.value > 0 ? (t.value -= 1, r.value[t.value].disabled && a()) : t.value = s.value, u();
|
|
537
|
+
}, l = () => {
|
|
538
|
+
t.value < s.value ? (t.value += 1, r.value[t.value].disabled && l()) : t.value = 0, u();
|
|
654
539
|
};
|
|
655
540
|
return {
|
|
656
541
|
// Enums
|
|
657
|
-
BentoMenuEvent:
|
|
542
|
+
BentoMenuEvent: x,
|
|
658
543
|
// Values
|
|
659
544
|
subMenuItemListRefLocal: n,
|
|
660
545
|
subMenuFocusedIndex: t,
|
|
661
546
|
ChevronLeftIcon: W,
|
|
662
|
-
computedItems:
|
|
547
|
+
computedItems: r,
|
|
663
548
|
// Methods
|
|
664
549
|
closeMenu: i,
|
|
665
550
|
onBackButton: c,
|
|
666
551
|
focusPrevious: a,
|
|
667
|
-
focusNext:
|
|
552
|
+
focusNext: l
|
|
668
553
|
};
|
|
669
554
|
}
|
|
670
555
|
});
|
|
671
|
-
var
|
|
556
|
+
var vt = function() {
|
|
672
557
|
var e = this, n = e._self._c;
|
|
673
558
|
return e._self._setupProxy, n("transition", { attrs: { name: "b-sub-menu-item-list__transition", appear: "" } }, [n("menu-list-container", { staticClass: "b-sub-menu-item-list" }, [n("ul", { ref: "subMenuItemListRefLocal", staticClass: "b-sub-menu-item-list__list", attrs: { role: "menu" }, on: { keydown: [function(t) {
|
|
674
559
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
|
|
@@ -679,32 +564,32 @@ var Ot = function() {
|
|
|
679
564
|
}] } }, e._l(e.computedItems, function(t, s) {
|
|
680
565
|
return n("li", { key: `sub-menu-item-list-item-${s}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: t.text, handler: t.handler, "secondary-text": t.secondaryText, icon: t.icon, "is-title": t.isTitle, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1" }, on: { click: t.clickHandler } }), t.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : e._e()], 1);
|
|
681
566
|
}), 0)])], 1);
|
|
682
|
-
},
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
567
|
+
}, yt = [], gt = /* @__PURE__ */ C(
|
|
568
|
+
mt,
|
|
569
|
+
vt,
|
|
570
|
+
yt,
|
|
686
571
|
!1,
|
|
687
572
|
null,
|
|
688
573
|
"93387117"
|
|
689
574
|
);
|
|
690
|
-
const
|
|
691
|
-
function
|
|
692
|
-
const i = d(0), c = d(0),
|
|
575
|
+
const bt = gt.exports;
|
|
576
|
+
function Ct(o, e, n) {
|
|
577
|
+
const i = d(0), c = d(0), r = (a) => {
|
|
693
578
|
if (!a || !a.parentElement)
|
|
694
579
|
return;
|
|
695
|
-
const
|
|
696
|
-
f.style.position = "absolute", f.style.visibility = "hidden",
|
|
580
|
+
const l = a.parentElement, f = a.cloneNode(!0);
|
|
581
|
+
f.style.position = "absolute", f.style.visibility = "hidden", l.appendChild(f), f.style.width = "max-content";
|
|
697
582
|
const m = f.offsetWidth, _ = Math.max(150, Math.min(m, 350));
|
|
698
583
|
i.value = _, f.style.width = `${_}px`;
|
|
699
584
|
const y = f.offsetHeight;
|
|
700
|
-
c.value = y,
|
|
585
|
+
c.value = y, l.removeChild(f), c.value = y;
|
|
701
586
|
};
|
|
702
|
-
return
|
|
703
|
-
var
|
|
587
|
+
return G([e, n], async ([a]) => {
|
|
588
|
+
var l, f;
|
|
704
589
|
if (a !== null) {
|
|
705
|
-
await
|
|
706
|
-
const m = (f = (
|
|
707
|
-
m &&
|
|
590
|
+
await N();
|
|
591
|
+
const m = (f = (l = o.value) == null ? void 0 : l[0]) == null ? void 0 : f.$el;
|
|
592
|
+
m && r(m);
|
|
708
593
|
} else
|
|
709
594
|
i.value = 0, c.value = 0;
|
|
710
595
|
}), { computedStyle: p(() => {
|
|
@@ -712,9 +597,9 @@ function Lt(o, e, n) {
|
|
|
712
597
|
return n.value && (c.value > 0 && (a.height = `${c.value}px`), i.value > 0 && (a.width = `${i.value}px`)), a;
|
|
713
598
|
}) };
|
|
714
599
|
}
|
|
715
|
-
const
|
|
600
|
+
const ht = I({
|
|
716
601
|
name: "menu-item-list",
|
|
717
|
-
components: { BentoDivider:
|
|
602
|
+
components: { BentoDivider: j, MenuItem: X, MenuListContainer: q, SubMenuItemList: bt },
|
|
718
603
|
props: {
|
|
719
604
|
/**
|
|
720
605
|
* The data to be displayed in the list
|
|
@@ -745,39 +630,39 @@ const wt = g({
|
|
|
745
630
|
default: !0
|
|
746
631
|
}
|
|
747
632
|
},
|
|
748
|
-
emits: [
|
|
633
|
+
emits: [x.CLOSE, "menu-item-click"],
|
|
749
634
|
setup(o, { emit: e, expose: n }) {
|
|
750
|
-
const t = d(null), s = d(null), i = d(null), c = d(null),
|
|
635
|
+
const t = d(null), s = d(null), i = d(null), c = d(null), r = d(!1), u = d(null), a = d(o.focusLastElement ? o.data.length - 1 : 0), l = d(0), f = d(o.data.length - 1), m = p(() => o.data.some((g) => g.icon)), _ = p(() => o.indentItems || m.value ? o.data.map((g) => {
|
|
751
636
|
let v = !1;
|
|
752
|
-
return
|
|
753
|
-
...
|
|
637
|
+
return g.icon || (v = !0), {
|
|
638
|
+
...g,
|
|
754
639
|
indent: v
|
|
755
640
|
};
|
|
756
641
|
}) : o.data), y = async () => {
|
|
757
|
-
var
|
|
758
|
-
(
|
|
759
|
-
},
|
|
760
|
-
if (
|
|
761
|
-
u.value = v,
|
|
642
|
+
var g, v, S;
|
|
643
|
+
(S = (v = (g = s.value) == null ? void 0 : g.children[a.value]) == null ? void 0 : v.children[0]) == null || S.focus();
|
|
644
|
+
}, h = () => e(x.CLOSE), O = (g, v) => {
|
|
645
|
+
if (g.items) {
|
|
646
|
+
u.value = v, r.value = !0;
|
|
762
647
|
return;
|
|
763
648
|
}
|
|
764
|
-
u.value = v,
|
|
649
|
+
u.value = v, r.value = !1, !g.skipClose && o.closeMenuOnItemSelect !== !1 && h(), e("menu-item-click");
|
|
765
650
|
}, B = () => {
|
|
766
651
|
a.value > 0 ? (a.value -= 1, _.value[a.value].disabled && B()) : a.value = f.value, y();
|
|
767
652
|
}, L = () => {
|
|
768
653
|
a.value < f.value ? (a.value += 1, _.value[a.value].disabled && L()) : a.value = 0, y();
|
|
769
|
-
},
|
|
770
|
-
var
|
|
771
|
-
(
|
|
772
|
-
},
|
|
773
|
-
u.value &&
|
|
774
|
-
},
|
|
775
|
-
|
|
654
|
+
}, w = (g, v) => {
|
|
655
|
+
var S;
|
|
656
|
+
(S = g == null ? void 0 : g.items) != null && S.length && (u.value = v, r.value = !0);
|
|
657
|
+
}, M = () => {
|
|
658
|
+
u.value && r.value && (u.value = null, r.value = !1);
|
|
659
|
+
}, P = () => {
|
|
660
|
+
r.value = !1, u.value = null, y();
|
|
776
661
|
};
|
|
777
662
|
n({
|
|
778
663
|
focusItem: y
|
|
779
664
|
});
|
|
780
|
-
const { computedStyle:
|
|
665
|
+
const { computedStyle: A } = Ct(c, u, r);
|
|
781
666
|
return {
|
|
782
667
|
// Values
|
|
783
668
|
menuItemListRef: s,
|
|
@@ -785,23 +670,23 @@ const wt = g({
|
|
|
785
670
|
subMenuItemListRef: c,
|
|
786
671
|
menuItemRef: t,
|
|
787
672
|
computedData: _,
|
|
788
|
-
computedStyle:
|
|
673
|
+
computedStyle: A,
|
|
789
674
|
focusedIndex: a,
|
|
790
|
-
subMenuFocusedIndex:
|
|
791
|
-
showSubMenu:
|
|
675
|
+
subMenuFocusedIndex: l,
|
|
676
|
+
showSubMenu: r,
|
|
792
677
|
visibleSubMenuIndex: u,
|
|
793
678
|
// Methods
|
|
794
|
-
menuItemClick:
|
|
795
|
-
closeMenu:
|
|
679
|
+
menuItemClick: O,
|
|
680
|
+
closeMenu: h,
|
|
796
681
|
focusPrevious: B,
|
|
797
682
|
focusNext: L,
|
|
798
|
-
focusRight:
|
|
799
|
-
focusLeft:
|
|
800
|
-
onBackButton:
|
|
683
|
+
focusRight: w,
|
|
684
|
+
focusLeft: M,
|
|
685
|
+
onBackButton: P
|
|
801
686
|
};
|
|
802
687
|
}
|
|
803
688
|
});
|
|
804
|
-
var
|
|
689
|
+
var kt = function() {
|
|
805
690
|
var e = this, n = e._self._c;
|
|
806
691
|
return e._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: e.computedStyle }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { role: "menu" }, on: { keydown: [function(t) {
|
|
807
692
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
|
|
@@ -812,28 +697,28 @@ var Tt = function() {
|
|
|
812
697
|
}, function(t) {
|
|
813
698
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
|
|
814
699
|
}] } }, e._l(e.computedData, function(t, s) {
|
|
815
|
-
var i, c,
|
|
700
|
+
var i, c, r, u;
|
|
816
701
|
return n("li", { key: `menu-item-${s}`, ref: "menuItemRef", refInFor: !0, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(a) {
|
|
817
702
|
return !a.type.indexOf("key") && e._k(a.keyCode, "right", 39, a.key, ["Right", "ArrowRight"]) || "button" in a && a.button !== 2 ? null : e.focusRight(t, s);
|
|
818
703
|
}, function(a) {
|
|
819
704
|
return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.focusLeft();
|
|
820
|
-
}] } }, [n("menu-item", { attrs: { text: t.text, handler: (i = t.items) != null && i.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((c = t.items) != null && c.length), disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((
|
|
705
|
+
}] } }, [n("menu-item", { attrs: { text: t.text, handler: (i = t.items) != null && i.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((c = t.items) != null && c.length), disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((r = t.items) != null && r.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === s }, on: { click: function(a) {
|
|
821
706
|
return e.menuItemClick(t, s);
|
|
822
707
|
} } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), (u = t.items) != null && u.length && e.showSubMenu && e.visibleSubMenuIndex === s ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: t.items, title: t.text }, on: { back: e.onBackButton, close: e.closeMenu } }) : e._e()], 1);
|
|
823
708
|
}), 0)]);
|
|
824
|
-
},
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
709
|
+
}, It = [], Bt = /* @__PURE__ */ C(
|
|
710
|
+
ht,
|
|
711
|
+
kt,
|
|
712
|
+
It,
|
|
828
713
|
!1,
|
|
829
714
|
null,
|
|
830
715
|
"b402ef99"
|
|
831
716
|
);
|
|
832
|
-
const
|
|
833
|
-
i18n: { messages:
|
|
717
|
+
const xt = Bt.exports, St = /* @__PURE__ */ Symbol("menu inverse style injection key"), Ot = {
|
|
718
|
+
i18n: { messages: z },
|
|
834
719
|
name: "bento-menu"
|
|
835
|
-
},
|
|
836
|
-
...
|
|
720
|
+
}, Lt = /* @__PURE__ */ I({
|
|
721
|
+
...Ot,
|
|
837
722
|
props: {
|
|
838
723
|
button: { default: () => ({
|
|
839
724
|
variant: "secondary"
|
|
@@ -850,53 +735,53 @@ const At = Rt.exports, Nt = Symbol("menu inverse style injection key"), Pt = {
|
|
|
850
735
|
},
|
|
851
736
|
emits: ["menu-item-click", "click-outside"],
|
|
852
737
|
setup(o, { expose: e, emit: n }) {
|
|
853
|
-
var
|
|
854
|
-
const t = o, s =
|
|
855
|
-
|
|
738
|
+
var g;
|
|
739
|
+
const t = o, s = T(), i = D(s), { t: c } = Y(), r = d(null), u = d(null), a = d(!1), l = d(!1), f = d(null), m = pe("menu"), _ = E(St, d(!1));
|
|
740
|
+
ee(ae, _);
|
|
856
741
|
const y = p(() => ({
|
|
857
742
|
"b-menu--inverse": _.value
|
|
858
|
-
})),
|
|
743
|
+
})), h = p(() => t.menuWidth ? { width: `${t.menuWidth}px` } : null), O = p(() => {
|
|
859
744
|
if (t != null && t.button)
|
|
860
745
|
return {
|
|
861
746
|
variant: "secondary",
|
|
862
747
|
...t.button
|
|
863
748
|
};
|
|
864
749
|
}), B = () => {
|
|
865
|
-
a.value = !0, n(
|
|
750
|
+
a.value = !0, n(x.OPEN);
|
|
866
751
|
}, L = async (v = t.revertFocusToButton) => {
|
|
867
|
-
var
|
|
868
|
-
a.value && (a.value = !1, v && (await
|
|
869
|
-
},
|
|
752
|
+
var S, F;
|
|
753
|
+
a.value && (a.value = !1, v && (await N(), (F = (S = r.value) == null ? void 0 : S.$el) == null || F.focus()), n(x.CLOSE));
|
|
754
|
+
}, w = (v) => {
|
|
870
755
|
v.stopPropagation(), a.value ? L() : B();
|
|
871
|
-
},
|
|
872
|
-
v.preventDefault(),
|
|
873
|
-
},
|
|
874
|
-
v.preventDefault(),
|
|
875
|
-
},
|
|
756
|
+
}, M = (v) => {
|
|
757
|
+
v.preventDefault(), l.value = !1, t.disableArrowDownOpeningMenu || B();
|
|
758
|
+
}, P = (v) => {
|
|
759
|
+
v.preventDefault(), l.value = !0, B();
|
|
760
|
+
}, A = () => {
|
|
876
761
|
n("menu-item-click");
|
|
877
762
|
};
|
|
878
|
-
return
|
|
763
|
+
return He(
|
|
879
764
|
f,
|
|
880
765
|
() => {
|
|
881
766
|
L(), n("click-outside");
|
|
882
767
|
},
|
|
883
768
|
{
|
|
884
769
|
...t.closeOnClickOutsideOptions,
|
|
885
|
-
ignore: [
|
|
770
|
+
ignore: [r, ...((g = t.closeOnClickOutsideOptions) == null ? void 0 : g.ignore) ?? []]
|
|
886
771
|
}
|
|
887
772
|
), e({
|
|
888
773
|
/**
|
|
889
774
|
* Control to enable programmatic closing of the menu
|
|
890
775
|
*/
|
|
891
776
|
closeMenu: L
|
|
892
|
-
}),
|
|
777
|
+
}), R(() => {
|
|
893
778
|
i("iconRight") && le(
|
|
894
779
|
'"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
|
|
895
780
|
);
|
|
896
|
-
}), { __sfc: !0, props: t, emit: n, slots: s, hasSlot: i, t: c, menuButtonRef:
|
|
781
|
+
}), { __sfc: !0, props: t, emit: n, slots: s, hasSlot: i, t: c, menuButtonRef: r, menuItemListRef: u, showMenu: a, isLastElementFocused: l, popoverRef: f, menuId: m, isInverseColorSet: _, computedClasses: y, computedMenuWidth: h, computedButtonPropsWithDefaults: O, openMenu: B, closeMenu: L, toggleShowMenu: w, onKeyDown: M, onKeyUp: P, menuItemClick: A, BentoToggleButton: Me, BentoPopover: Qe, BentoTeleport: ge, ChevronDownIcon: _e, OptionsVerticalIcon: ot, MenuItemList: xt };
|
|
897
782
|
}
|
|
898
783
|
});
|
|
899
|
-
var
|
|
784
|
+
var Et = function() {
|
|
900
785
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
901
786
|
return n("div", { staticClass: "b-menu", class: t.computedClasses, attrs: { "data-testid": "menu" }, on: { keydown: [function(s) {
|
|
902
787
|
return !s.type.indexOf("key") && e._k(s.keyCode, "down", 40, s.key, ["Down", "ArrowDown"]) ? null : t.onKeyDown.apply(null, arguments);
|
|
@@ -922,48 +807,48 @@ var $t = function() {
|
|
|
922
807
|
"left-start",
|
|
923
808
|
"left-end"
|
|
924
809
|
], teleport: e.teleport, "without-space": "" } }, [n(t.MenuItemList, { ref: "menuItemListRef", attrs: { "close-menu-on-item-select": e.closeMenuOnItemSelect, data: e.data, "focus-last-element": t.isLastElementFocused }, on: { close: t.closeMenu, "menu-item-click": t.menuItemClick } })], 1) : e._e()], 1) : e._e()], 1);
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
810
|
+
}, Tt = [], Rt = /* @__PURE__ */ C(
|
|
811
|
+
Lt,
|
|
812
|
+
Et,
|
|
813
|
+
Tt,
|
|
929
814
|
!1,
|
|
930
815
|
null,
|
|
931
816
|
"fbe7541f"
|
|
932
817
|
);
|
|
933
|
-
const
|
|
818
|
+
const wt = Rt.exports, Mt = /* @__PURE__ */ Symbol(
|
|
934
819
|
"button actions with menu container injection key"
|
|
935
|
-
),
|
|
820
|
+
), Pt = 242, K = parseInt(Ce, 10), At = (o, e, n) => {
|
|
936
821
|
const t = d(0);
|
|
937
822
|
let s = null;
|
|
938
|
-
const { buttonActionsWithMenu: i, menu: c, stackButtons:
|
|
823
|
+
const { buttonActionsWithMenu: i, menu: c, stackButtons: r } = E(Mt, {
|
|
939
824
|
buttonActionsWithMenu: d(null),
|
|
940
825
|
menu: d(null),
|
|
941
826
|
stackButtons: d(!1)
|
|
942
|
-
}), u = p(() => i.value ?? o.value), a = p(() => c.value ? [...e.value, c.value.$el] : e.value),
|
|
827
|
+
}), u = p(() => i.value ?? o.value), a = p(() => c.value ? [...e.value, c.value.$el] : e.value), l = (f) => {
|
|
943
828
|
var y;
|
|
944
829
|
const m = (y = a.value) == null ? void 0 : y.reduce(
|
|
945
|
-
(
|
|
830
|
+
(h, O) => h + O.clientWidth + K,
|
|
946
831
|
-K - 1
|
|
947
832
|
), _ = u.value.clientWidth;
|
|
948
|
-
return f && (t.value = _ >=
|
|
833
|
+
return f && (t.value = _ >= Pt && !r.value ? m : 0), t.value > _;
|
|
949
834
|
};
|
|
950
|
-
return
|
|
835
|
+
return G(
|
|
951
836
|
() => n.value,
|
|
952
837
|
() => {
|
|
953
|
-
|
|
954
|
-
|
|
838
|
+
N(() => {
|
|
839
|
+
r.value = l(!0);
|
|
955
840
|
});
|
|
956
841
|
},
|
|
957
842
|
{ deep: !0 }
|
|
958
|
-
),
|
|
843
|
+
), R(() => {
|
|
959
844
|
s = be(u.value, () => {
|
|
960
|
-
|
|
845
|
+
r.value = l(t.value === 0);
|
|
961
846
|
});
|
|
962
|
-
}),
|
|
847
|
+
}), H(() => {
|
|
963
848
|
s == null || s.disconnect();
|
|
964
|
-
}),
|
|
965
|
-
},
|
|
966
|
-
...
|
|
849
|
+
}), r;
|
|
850
|
+
}, Nt = {}, Dt = /* @__PURE__ */ I({
|
|
851
|
+
...Nt,
|
|
967
852
|
__name: "button-actions",
|
|
968
853
|
props: {
|
|
969
854
|
actions: null,
|
|
@@ -971,19 +856,19 @@ const Ut = Wt.exports, Vt = Symbol(
|
|
|
971
856
|
layout: { default: "buttons-end" }
|
|
972
857
|
},
|
|
973
858
|
setup(o) {
|
|
974
|
-
const e = o, n = d(null), t = d(null), s =
|
|
859
|
+
const e = o, n = d(null), t = d(null), s = At(n, t, te(e, "actions")), i = p(() => e.actions.slice().reverse()), c = (l) => {
|
|
975
860
|
const f = e.actions.length - 1;
|
|
976
|
-
return
|
|
977
|
-
},
|
|
861
|
+
return l === f ? "primary" : "secondary";
|
|
862
|
+
}, r = p(() => ({
|
|
978
863
|
[`b-button-actions--${e.layout}`]: !0,
|
|
979
864
|
"b-button-actions--stacked-buttons": s.value
|
|
980
865
|
}));
|
|
981
|
-
return { __sfc: !0, props: e, buttonActions: n, buttons: t, stackButtons: s, reversedActionsList: i, generateButtonVariantByIndex: c, conditionalClasses:
|
|
982
|
-
click:
|
|
983
|
-
} : {}, isIconOnly: (
|
|
866
|
+
return { __sfc: !0, props: e, buttonActions: n, buttons: t, stackButtons: s, reversedActionsList: i, generateButtonVariantByIndex: c, conditionalClasses: r, generateButtonEvents: (l) => (l == null ? void 0 : l.event) !== void 0 ? {
|
|
867
|
+
click: l.event
|
|
868
|
+
} : {}, isIconOnly: (l) => l.iconOnly && (l.iconLeft || l.iconRight || l.icon), BentoButton: b, BentoLoadingButton: Oe, BentoMenu: wt };
|
|
984
869
|
}
|
|
985
870
|
});
|
|
986
|
-
var
|
|
871
|
+
var Ft = function() {
|
|
987
872
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
988
873
|
return n("div", { ref: "buttonActions", staticClass: "b-button-actions" }, [n("div", { staticClass: "b-button-actions__container-wrapper", class: t.conditionalClasses, attrs: { role: "group" } }, e._l(t.reversedActionsList, function(s, i) {
|
|
989
874
|
return n("div", { key: i, ref: "buttons", refInFor: !0, staticClass: "b-button-actions__button-wrapper" }, [s.data ? [n(t.BentoMenu, { ref: s.elementRef, refInFor: !0, attrs: { data: s.data, "close-menu-on-item-select": s.closeMenuOnItemSelect, "close-on-click-outside-options": s.closeOnClickOutsideOptions, "disable-arrow-down-opening-menu": s.disableArrowDownOpeningMenu, "menu-position": s.menuPosition, "menu-fixed-positioning": s.menuFixedPositioning, "menu-width": s.menuWidth, "revert-focus-to-button": s.revertFocusToButton, teleport: s.teleport }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
|
|
@@ -998,34 +883,30 @@ var Yt = function() {
|
|
|
998
883
|
return [n(s.iconRight, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
999
884
|
}, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(s)))]], 2);
|
|
1000
885
|
}), 0)]);
|
|
1001
|
-
},
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
886
|
+
}, $t = [], Wt = /* @__PURE__ */ C(
|
|
887
|
+
Dt,
|
|
888
|
+
Ft,
|
|
889
|
+
$t,
|
|
1005
890
|
!1,
|
|
1006
891
|
null,
|
|
1007
892
|
"16635fa7"
|
|
1008
893
|
);
|
|
1009
|
-
const
|
|
894
|
+
const Ut = Wt.exports;
|
|
1010
895
|
export {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
nt as i,
|
|
1027
|
-
et as j,
|
|
1028
|
-
He as k,
|
|
1029
|
-
Ge as u
|
|
896
|
+
Ut as B,
|
|
897
|
+
ut as D,
|
|
898
|
+
Ge as I,
|
|
899
|
+
St as M,
|
|
900
|
+
ot as O,
|
|
901
|
+
je as P,
|
|
902
|
+
Oe as a,
|
|
903
|
+
k as b,
|
|
904
|
+
Me as c,
|
|
905
|
+
Mt as d,
|
|
906
|
+
wt as e,
|
|
907
|
+
x as f,
|
|
908
|
+
Qe as g,
|
|
909
|
+
Ye as h,
|
|
910
|
+
He as u
|
|
1030
911
|
};
|
|
1031
|
-
//# sourceMappingURL=button-actions.
|
|
912
|
+
//# sourceMappingURL=button-actions.C3cP-anb.js.map
|