@adyen/bento-vue2 1.81.0 → 1.82.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/README.md +1 -1
- package/dist/@types/components.d.ts +196 -0
- package/dist/@types/index.d.ts +17585 -0
- package/dist/@types/use-form-v4.d.ts +86 -0
- package/dist/accordion.js +6 -0
- package/dist/accordion.js.map +1 -0
- package/dist/action-bar.js +5 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +8 -0
- package/dist/alert.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -0
- package/dist/assets/action-bar.css +1 -0
- package/dist/assets/ai-button.css +1 -0
- package/dist/assets/alert.css +1 -0
- package/dist/assets/avatar.css +1 -0
- package/dist/assets/base-button.css +1 -0
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/calendar.css +1 -0
- package/dist/assets/card.css +1 -0
- package/dist/assets/checkbox-group.css +1 -0
- package/dist/assets/checkbox-input.css +1 -0
- package/dist/assets/checkbox.css +1 -0
- package/dist/assets/chip.css +1 -0
- package/dist/assets/code-snippet.css +1 -0
- package/dist/assets/controls-group.css +1 -0
- package/dist/assets/copy.css +1 -0
- package/dist/assets/country.css +1 -0
- package/dist/assets/currency.css +1 -0
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/date-picker.css +1 -0
- package/dist/assets/date-range-picker.css +1 -0
- package/dist/assets/date.css +1 -0
- package/dist/assets/dialog-page.css +1 -0
- package/dist/assets/divider.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -0
- package/dist/assets/dropdown-tag.css +1 -0
- package/dist/assets/dropdown.css +1 -0
- package/dist/assets/empty-state.css +1 -0
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/fixed-scroller.css +1 -0
- package/dist/assets/focus-trap.css +1 -0
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/form-layout-title.css +1 -0
- package/dist/assets/grid-layout.css +1 -0
- package/dist/assets/header-meta.css +1 -0
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/info-icon.css +1 -0
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field-phone-number.css +1 -0
- package/dist/assets/input-field.css +1 -0
- package/dist/assets/inspector.css +1 -0
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/link.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -0
- package/dist/assets/loading-indicator.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -0
- package/dist/assets/pagination.css +1 -0
- package/dist/assets/payment-method.css +1 -0
- package/dist/assets/popper-container.css +1 -0
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/radio-group.css +1 -0
- package/dist/assets/radio-input.css +1 -0
- package/dist/assets/rich-text-editor.css +1 -0
- package/dist/assets/search-bar.css +1 -0
- package/dist/assets/secondary-nav.css +1 -0
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/sidepanel.css +1 -0
- package/dist/assets/status.css +1 -0
- package/dist/assets/step.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tab.css +1 -0
- package/dist/assets/tag.css +1 -0
- package/dist/assets/textarea.css +1 -0
- package/dist/assets/timeline-item.css +1 -0
- package/dist/assets/toast.css +1 -0
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tooltip.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/typography.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -0
- package/dist/avatar.js +5 -0
- package/dist/avatar.js.map +1 -0
- package/dist/button.js +18 -0
- package/dist/button.js.map +1 -0
- package/dist/card.js +7 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.js +11 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chip.js +5 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
- package/dist/chunks/accordion-item.G1q4zgBG.js +117 -0
- package/dist/chunks/accordion-item.G1q4zgBG.js.map +1 -0
- package/dist/chunks/action-bar.Dhl3T4j-.js +160 -0
- package/dist/chunks/action-bar.Dhl3T4j-.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/ai-button.DBwtNkyS.js +67 -0
- package/dist/chunks/ai-button.DBwtNkyS.js.map +1 -0
- package/dist/chunks/alert.SZPP58tl.js +103 -0
- package/dist/chunks/alert.SZPP58tl.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js +13 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
- package/dist/chunks/avatar.CeDqq2Z-.js +71 -0
- package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
- package/dist/chunks/base-button.BdST9XT3.js +86 -0
- package/dist/chunks/base-button.BdST9XT3.js.map +1 -0
- package/dist/chunks/base-modal.C-UqIAY8.js +310 -0
- package/dist/chunks/base-modal.C-UqIAY8.js.map +1 -0
- package/dist/chunks/bin.Ddb69cr1.js +24 -0
- package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.KKq9Cuk1.js +85 -0
- package/dist/chunks/button-actions-with-menu.KKq9Cuk1.js.map +1 -0
- package/dist/chunks/button-actions.N3D-Bb_x.js +1035 -0
- package/dist/chunks/button-actions.N3D-Bb_x.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/button.CS_kdxYh.js +110 -0
- package/dist/chunks/button.CS_kdxYh.js.map +1 -0
- package/dist/chunks/calendar.Bhj58zR3.js +1832 -0
- package/dist/chunks/calendar.Bhj58zR3.js.map +1 -0
- package/dist/chunks/card.BYWF_Zvo.js +137 -0
- package/dist/chunks/card.BYWF_Zvo.js.map +1 -0
- package/dist/chunks/checkbox-group.CIIa-cYP.js +142 -0
- package/dist/chunks/checkbox-group.CIIa-cYP.js.map +1 -0
- package/dist/chunks/checkbox-input.B0NsfSNR.js +117 -0
- package/dist/chunks/checkbox-input.B0NsfSNR.js.map +1 -0
- package/dist/chunks/checkbox.CiWvdg8S.js +178 -0
- package/dist/chunks/checkbox.CiWvdg8S.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.BttTCjrM.js +24 -0
- package/dist/chunks/checkmark-circle-fill.BttTCjrM.js.map +1 -0
- package/dist/chunks/checkmark-small.DVDtD4HQ.js +24 -0
- package/dist/chunks/checkmark-small.DVDtD4HQ.js.map +1 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js +24 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js.map +1 -0
- package/dist/chunks/chevron-left.BS24hEFa.js +43 -0
- package/dist/chunks/chevron-left.BS24hEFa.js.map +1 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js +24 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js.map +1 -0
- package/dist/chunks/chip.B0DRDvaa.js +63 -0
- package/dist/chunks/chip.B0DRDvaa.js.map +1 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
- package/dist/chunks/code-snippet.BMzhRl4c.js +268 -0
- package/dist/chunks/code-snippet.BMzhRl4c.js.map +1 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js +14628 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -0
- package/dist/chunks/constructNow.BhymNmy5.js +8 -0
- package/dist/chunks/constructNow.BhymNmy5.js.map +1 -0
- package/dist/chunks/controls-group.GchVWe7h.js +84 -0
- package/dist/chunks/controls-group.GchVWe7h.js.map +1 -0
- package/dist/chunks/copy.DauzzgJV.js +96 -0
- package/dist/chunks/copy.DauzzgJV.js.map +1 -0
- package/dist/chunks/country.B3z3-QRY.js +69 -0
- package/dist/chunks/country.B3z3-QRY.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
- package/dist/chunks/cross-circle-fill-small.DfxDedRr.js +24 -0
- package/dist/chunks/cross-circle-fill-small.DfxDedRr.js.map +1 -0
- package/dist/chunks/cross-circle-fill.DTDtgLMf.js +24 -0
- package/dist/chunks/cross-circle-fill.DTDtgLMf.js.map +1 -0
- package/dist/chunks/cross-small.CoQUe8SS.js +24 -0
- package/dist/chunks/cross-small.CoQUe8SS.js.map +1 -0
- package/dist/chunks/cross.CC_B-vG-.js +24 -0
- package/dist/chunks/cross.CC_B-vG-.js.map +1 -0
- package/dist/chunks/currency.Cwhzzxw2.js +114 -0
- package/dist/chunks/currency.Cwhzzxw2.js.map +1 -0
- package/dist/chunks/dashboard-section.CgAfEay4.js +102 -0
- package/dist/chunks/dashboard-section.CgAfEay4.js.map +1 -0
- package/dist/chunks/dashed-underline.CMdNukpN.js +77 -0
- package/dist/chunks/dashed-underline.CMdNukpN.js.map +1 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -0
- package/dist/chunks/data-grid-template.m4hsFMe2.js +111 -0
- package/dist/chunks/data-grid-template.m4hsFMe2.js.map +1 -0
- package/dist/chunks/data-grid.rAVOFiTv.js +3294 -0
- package/dist/chunks/data-grid.rAVOFiTv.js.map +1 -0
- package/dist/chunks/date-format.B8RU7D42.js +17 -0
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.nLuHJgOC.js +169 -0
- package/dist/chunks/date-picker.nLuHJgOC.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date-range-picker.D2MKhVMf.js +906 -0
- package/dist/chunks/date-range-picker.D2MKhVMf.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date.C1z2TXzM.js +160 -0
- package/dist/chunks/date.C1z2TXzM.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js +10 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
- package/dist/chunks/delight.CDBAFnwC.js +5 -0
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
- package/dist/chunks/delight.xKDCvvaS.js +5 -0
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
- package/dist/chunks/dialog-page.krM2wQpm.js +131 -0
- package/dist/chunks/dialog-page.krM2wQpm.js.map +1 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +1590 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +1 -0
- package/dist/chunks/directive.Cbdox5VL.js +23 -0
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
- package/dist/chunks/divider.DX5gwN7p.js +35 -0
- package/dist/chunks/divider.DX5gwN7p.js.map +1 -0
- package/dist/chunks/dot.BW9SneIk.js +24 -0
- package/dist/chunks/dot.BW9SneIk.js.map +1 -0
- package/dist/chunks/dropdown-default-textbox.uWZMxeI7.js +350 -0
- package/dist/chunks/dropdown-default-textbox.uWZMxeI7.js.map +1 -0
- package/dist/chunks/dropdown-tag.BnqOBdMp.js +294 -0
- package/dist/chunks/dropdown-tag.BnqOBdMp.js.map +1 -0
- package/dist/chunks/dropdown.BijF56Y7.js +714 -0
- package/dist/chunks/dropdown.BijF56Y7.js.map +1 -0
- package/dist/chunks/empty-state.BsdRxzS2.js +106 -0
- package/dist/chunks/empty-state.BsdRxzS2.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.BQOQSSb7.js +44 -0
- package/dist/chunks/events.BQOQSSb7.js.map +1 -0
- package/dist/chunks/expand.Bbielaja.js +24 -0
- package/dist/chunks/expand.Bbielaja.js.map +1 -0
- package/dist/chunks/field-label.DHGAa4cq.js +121 -0
- package/dist/chunks/field-label.DHGAa4cq.js.map +1 -0
- package/dist/chunks/file-uploader.D2s5qccE.js +1917 -0
- package/dist/chunks/file-uploader.D2s5qccE.js.map +1 -0
- package/dist/chunks/filter-bar.DISI1jAU.js +2472 -0
- package/dist/chunks/filter-bar.DISI1jAU.js.map +1 -0
- package/dist/chunks/fixed-scroller.CgVOf5VE.js +106 -0
- package/dist/chunks/fixed-scroller.CgVOf5VE.js.map +1 -0
- package/dist/chunks/focus-trap.CNIU5jOz.js +1168 -0
- package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -0
- package/dist/chunks/footer-actions.CFZwikg0.js +96 -0
- package/dist/chunks/footer-actions.CFZwikg0.js.map +1 -0
- package/dist/chunks/form-field.D_2g7vaP.js +10 -0
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -0
- package/dist/chunks/form-layout-title.B_oVSX5b.js +197 -0
- package/dist/chunks/form-layout-title.B_oVSX5b.js.map +1 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js +12 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js +484 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js +76 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -0
- package/dist/chunks/header-meta.D0UdrdVf.js +170 -0
- package/dist/chunks/header-meta.D0UdrdVf.js.map +1 -0
- package/dist/chunks/header-with-views.BjZkBSI0.js +1591 -0
- package/dist/chunks/header-with-views.BjZkBSI0.js.map +1 -0
- package/dist/chunks/header.QYvN86kI.js +103 -0
- package/dist/chunks/header.QYvN86kI.js.map +1 -0
- package/dist/chunks/image.C2D2hKat.js +56 -0
- package/dist/chunks/image.C2D2hKat.js.map +1 -0
- package/dist/chunks/index.B6WW_F-J.js +31 -0
- package/dist/chunks/index.B6WW_F-J.js.map +1 -0
- package/dist/chunks/index.BDK4hwK_.js +593 -0
- package/dist/chunks/index.BDK4hwK_.js.map +1 -0
- package/dist/chunks/index.Cl4_42j5.js +8 -0
- package/dist/chunks/index.Cl4_42j5.js.map +1 -0
- package/dist/chunks/info-icon.iKLaNff6.js +37 -0
- package/dist/chunks/info-icon.iKLaNff6.js.map +1 -0
- package/dist/chunks/info.CcMZ4aGg.js +24 -0
- package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
- package/dist/chunks/input-field-password.BeRjHhu6.js +270 -0
- package/dist/chunks/input-field-password.BeRjHhu6.js.map +1 -0
- package/dist/chunks/input-field-phone-number.DLOUy8_E.js +3324 -0
- package/dist/chunks/input-field-phone-number.DLOUy8_E.js.map +1 -0
- package/dist/chunks/input-field.B1Q1-zLo.js +171 -0
- package/dist/chunks/input-field.B1Q1-zLo.js.map +1 -0
- package/dist/chunks/inspector.C6bbjQC0.js +117 -0
- package/dist/chunks/inspector.C6bbjQC0.js.map +1 -0
- package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js +66 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -0
- package/dist/chunks/layout-row.DwdZbpVG.js +87 -0
- package/dist/chunks/layout-row.DwdZbpVG.js.map +1 -0
- package/dist/chunks/link.D8qpqg3W.js +95 -0
- package/dist/chunks/link.D8qpqg3W.js.map +1 -0
- package/dist/chunks/listbox-option-tag.CK628fjn.js +44 -0
- package/dist/chunks/listbox-option-tag.CK628fjn.js.map +1 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js +42 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -0
- package/dist/chunks/minus-small.DJacLGTw.js +27 -0
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -0
- package/dist/chunks/modal-fullscreen.UqZgbaDw.js +221 -0
- package/dist/chunks/modal-fullscreen.UqZgbaDw.js.map +1 -0
- package/dist/chunks/modal.DCgB0pA2.js +445 -0
- package/dist/chunks/modal.DCgB0pA2.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.CylAnOyc.js +338 -0
- package/dist/chunks/pagination.CylAnOyc.js.map +1 -0
- package/dist/chunks/payment-method.C8Ie97qE.js +76 -0
- package/dist/chunks/payment-method.C8Ie97qE.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/popover.types.WDh5ggr3.js +6 -0
- package/dist/chunks/popover.types.WDh5ggr3.js.map +1 -0
- package/dist/chunks/popper-container.Cdokz_NE.js +1404 -0
- package/dist/chunks/popper-container.Cdokz_NE.js.map +1 -0
- package/dist/chunks/promo-banner.DikQcQU2.js +70 -0
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
- package/dist/chunks/radio-group.Cr7UcYij.js +178 -0
- package/dist/chunks/radio-group.Cr7UcYij.js.map +1 -0
- package/dist/chunks/radio-input.kzb4gxLW.js +90 -0
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/refresh.arF7jP-l.js +24 -0
- package/dist/chunks/refresh.arF7jP-l.js.map +1 -0
- package/dist/chunks/resize.Bqks3WUm.js +15 -0
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
- package/dist/chunks/rich-text-editor.NKPFP8Ss.js +6203 -0
- package/dist/chunks/rich-text-editor.NKPFP8Ss.js.map +1 -0
- package/dist/chunks/search-bar.VctrP6lp.js +98 -0
- package/dist/chunks/search-bar.VctrP6lp.js.map +1 -0
- package/dist/chunks/search.D53Ia3rC.js +24 -0
- package/dist/chunks/search.D53Ia3rC.js.map +1 -0
- package/dist/chunks/secondary-nav.jpMeWSZj.js +112 -0
- package/dist/chunks/secondary-nav.jpMeWSZj.js.map +1 -0
- package/dist/chunks/segmented-control._CuB62pG.js +113 -0
- package/dist/chunks/segmented-control._CuB62pG.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.jykyd9iE.js +240 -0
- package/dist/chunks/selection-card-group.jykyd9iE.js.map +1 -0
- package/dist/chunks/show.B_mKPF6I.js +43 -0
- package/dist/chunks/show.B_mKPF6I.js.map +1 -0
- package/dist/chunks/sidepanel.CP-b8Zcg.js +210 -0
- package/dist/chunks/sidepanel.CP-b8Zcg.js.map +1 -0
- package/dist/chunks/status.types.BpMK-6IT.js +36 -0
- package/dist/chunks/status.types.BpMK-6IT.js.map +1 -0
- package/dist/chunks/step.4hMAy8v_.js +217 -0
- package/dist/chunks/step.4hMAy8v_.js.map +1 -0
- package/dist/chunks/structured-list-item.BLJabJwA.js +90 -0
- package/dist/chunks/structured-list-item.BLJabJwA.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -0
- package/dist/chunks/summary-grid.types.B0w2S_9r.js +337 -0
- package/dist/chunks/summary-grid.types.B0w2S_9r.js.map +1 -0
- package/dist/chunks/tab.DXE68qVf.js +192 -0
- package/dist/chunks/tab.DXE68qVf.js.map +1 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -0
- package/dist/chunks/tag.7fp_M9Au.js +44 -0
- package/dist/chunks/tag.7fp_M9Au.js.map +1 -0
- package/dist/chunks/textarea.Ci9sKDFy.js +173 -0
- package/dist/chunks/textarea.Ci9sKDFy.js.map +1 -0
- package/dist/chunks/timeline-item.DcIQ-Q1T.js +255 -0
- package/dist/chunks/timeline-item.DcIQ-Q1T.js.map +1 -0
- package/dist/chunks/toast.DGvNp4ZM.js +171 -0
- package/dist/chunks/toast.DGvNp4ZM.js.map +1 -0
- package/dist/chunks/toggle.D2wmNu7m.js +108 -0
- package/dist/chunks/toggle.D2wmNu7m.js.map +1 -0
- package/dist/chunks/tooltip.BcQ24pKP.js +189 -0
- package/dist/chunks/tooltip.BcQ24pKP.js.map +1 -0
- package/dist/chunks/truncate.BfIl_-71.js +8 -0
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
- package/dist/chunks/tutorial.Co2F7l0B.js +347 -0
- package/dist/chunks/tutorial.Co2F7l0B.js.map +1 -0
- package/dist/chunks/typography.hlOAxsEn.js +87 -0
- package/dist/chunks/typography.hlOAxsEn.js.map +1 -0
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/use-bento-toast-controller.BhtohoS1.js +52 -0
- package/dist/chunks/use-bento-toast-controller.BhtohoS1.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.BYiLNRRi.js +1343 -0
- package/dist/chunks/use-cached-selected-values.BYiLNRRi.js.map +1 -0
- package/dist/chunks/use-country-items.B3Cd3Tdo.js +30 -0
- package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +5621 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +13 -0
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js +12 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -0
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js +24 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +5 -0
- package/dist/click-outside.js.map +1 -0
- package/dist/code-snippet.js +8 -0
- package/dist/code-snippet.js.map +1 -0
- package/dist/country.js +12 -0
- package/dist/country.js.map +1 -0
- package/dist/currency.js +6 -0
- package/dist/currency.js.map +1 -0
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +5 -0
- package/dist/data-grid-template.js.map +1 -0
- package/dist/data-grid.js +13 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +10 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date-range-picker.js +10 -0
- package/dist/date-range-picker.js.map +1 -0
- package/dist/date.js +6 -0
- package/dist/date.js.map +1 -0
- package/dist/divider.js +5 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown.js +16 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/empty-state.js +8 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/file-uploader.js +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +9 -0
- package/dist/filter-bar.js.map +1 -0
- package/dist/focus-trap.js +5 -0
- package/dist/focus-trap.js.map +1 -0
- package/dist/fonts/fonts.css +2 -0
- package/dist/form-layout.js +8 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +5 -0
- package/dist/header.js.map +1 -0
- package/dist/image.js +7 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +442 -0
- package/dist/index.js.map +1 -0
- package/dist/info-icon.js +5 -0
- package/dist/info-icon.js.map +1 -0
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field-phone-number.js +6 -0
- package/dist/input-field-phone-number.js.map +1 -0
- package/dist/input-field.js +10 -0
- package/dist/input-field.js.map +1 -0
- package/dist/inspector.js +7 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +45 -0
- package/dist/internal.js.map +1 -0
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/link.js +6 -0
- package/dist/link.js.map +1 -0
- package/dist/loading-indicator.js +6 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/menu.js +6 -0
- package/dist/menu.js.map +1 -0
- package/dist/modal-fullscreen.js +6 -0
- package/dist/modal-fullscreen.js.map +1 -0
- package/dist/modal.js +14 -0
- package/dist/modal.js.map +1 -0
- package/dist/pagination.js +5 -0
- package/dist/pagination.js.map +1 -0
- package/dist/payment-method.js +7 -0
- package/dist/payment-method.js.map +1 -0
- package/dist/popover.js +7 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-container.js +9 -0
- package/dist/popper-container.js.map +1 -0
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/radio-group.js +9 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/rich-text-editor.js +5 -0
- package/dist/rich-text-editor.js.map +1 -0
- package/dist/search-bar.js +9 -0
- package/dist/search-bar.js.map +1 -0
- package/dist/secondary-nav.js +5 -0
- package/dist/secondary-nav.js.map +1 -0
- package/dist/segmented-control.js +7 -0
- package/dist/segmented-control.js.map +1 -0
- package/dist/selection-card.js +7 -0
- package/dist/selection-card.js.map +1 -0
- package/dist/sidepanel.js +7 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +6 -0
- package/dist/status.js.map +1 -0
- package/dist/stepper.js +8 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +6 -0
- package/dist/structured-list.js.map +1 -0
- package/dist/styles/bento-dark.css +2133 -0
- package/dist/styles/bento-light.css +2132 -0
- package/dist/styles/bento.css +2132 -0
- package/dist/styles/legacy.css +2132 -0
- package/dist/styles/styleguide.css +2187 -0
- package/dist/styles/utility.css +1002 -0
- package/dist/summary-grid.js +12 -0
- package/dist/summary-grid.js.map +1 -0
- package/dist/tabs.js +6 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.js +6 -0
- package/dist/tag.js.map +1 -0
- package/dist/textarea.js +5 -0
- package/dist/textarea.js.map +1 -0
- package/dist/timeline.js +10 -0
- package/dist/timeline.js.map +1 -0
- package/dist/toast.js +5 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle.js +7 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tutorial.js +5 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +8 -0
- package/dist/typography.js.map +1 -0
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +17262 -0
- package/package.json +27 -24
|
@@ -0,0 +1,1035 @@
|
|
|
1
|
+
import { defineComponent as g, useSlots as w, computed as p, onMounted as T, onUnmounted as G, useAttrs as Q, inject as x, ref as d, toRefs as ee, watch as j, nextTick as P, provide as te, toRef as ne } from "vue";
|
|
2
|
+
import { B as b } from "./button.CS_kdxYh.js";
|
|
3
|
+
import { B as se } from "./loading-indicator.PxbRzshH.js";
|
|
4
|
+
import { C as oe } from "./cross-circle-fill.DTDtgLMf.js";
|
|
5
|
+
import { C as ae } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
6
|
+
import { u as D } from "./use-has-slot.C9lQZ6nz.js";
|
|
7
|
+
import { u as H } from "./index.B6WW_F-J.js";
|
|
8
|
+
import { n as C } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
+
import { i as Y } from "./index.Cl4_42j5.js";
|
|
10
|
+
import { B as J, D as ie } from "./divider.DX5gwN7p.js";
|
|
11
|
+
import { C as re } from "./cross.CC_B-vG-.js";
|
|
12
|
+
import { B as q, a as F, p as le } from "./typography.hlOAxsEn.js";
|
|
13
|
+
import { c as ue, P as ce, d as de } from "./popper-container.Cdokz_NE.js";
|
|
14
|
+
import { u as fe } from "./aria-label.CaUURpnB.js";
|
|
15
|
+
import { o as pe } from "./on-click-outside.D9aY9g8G.js";
|
|
16
|
+
import { g as _e } from "./generate-uid.NJ8tVoha.js";
|
|
17
|
+
import { C as me } from "./chevron-down.eYtgv5ly.js";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { C as ve, a as W } from "./chevron-left.BS24hEFa.js";
|
|
20
|
+
import { a as U, B as ye } from "./base-button.BdST9XT3.js";
|
|
21
|
+
import { t as he } from "./truncate.BfIl_-71.js";
|
|
22
|
+
import { o as be } from "./resize.Bqks3WUm.js";
|
|
23
|
+
import { g as ge } from "./es6.MoTTyETW.js";
|
|
24
|
+
import "../assets/button-actions.css";
|
|
25
|
+
var I = /* @__PURE__ */ ((o) => (o.START = "start", o.LOADING = "loading", o.SUCCESS = "success", o.FAIL = "fail", o))(I || {});
|
|
26
|
+
const Ce = {
|
|
27
|
+
"en-US": {
|
|
28
|
+
failed: "Failed",
|
|
29
|
+
succeded: "Succeded"
|
|
30
|
+
},
|
|
31
|
+
"ja-JP": {
|
|
32
|
+
failed: "失敗しました"
|
|
33
|
+
},
|
|
34
|
+
"pt-BR": {
|
|
35
|
+
failed: "Falha"
|
|
36
|
+
}
|
|
37
|
+
}, ke = {
|
|
38
|
+
i18n: { messages: Ce }
|
|
39
|
+
}, Ie = /* @__PURE__ */ g({
|
|
40
|
+
...ke,
|
|
41
|
+
__name: "loading-button",
|
|
42
|
+
props: {
|
|
43
|
+
/**
|
|
44
|
+
* Reduces sizing of button
|
|
45
|
+
*/
|
|
46
|
+
condensed: {
|
|
47
|
+
type: b.props.condensed.type,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Displays loading-button as critical
|
|
52
|
+
*/
|
|
53
|
+
critical: {
|
|
54
|
+
type: b.props.critical.type,
|
|
55
|
+
default: !1
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* Disables button functonality
|
|
59
|
+
*/
|
|
60
|
+
disabled: {
|
|
61
|
+
type: b.props.disabled.type,
|
|
62
|
+
default: !1
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Sets color set to inverse
|
|
66
|
+
*/
|
|
67
|
+
inverse: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: !1
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* State of the button.
|
|
73
|
+
* @values start, loading, success, fail
|
|
74
|
+
*/
|
|
75
|
+
state: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: I.START,
|
|
78
|
+
validator: (o) => Object.values(I).includes(o)
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Types of flavour of Button
|
|
82
|
+
*/
|
|
83
|
+
variant: {
|
|
84
|
+
type: b.props.variant.type,
|
|
85
|
+
default: "primary",
|
|
86
|
+
validator: b.props.variant.validator
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
emits: ["click"],
|
|
90
|
+
setup(o, { emit: e }) {
|
|
91
|
+
const n = o, t = w(), s = D(t), { t: i } = H(), c = p(() => ({
|
|
92
|
+
[`b-loading-button--${n.variant}-${I.LOADING}`]: n.state === I.LOADING && !n.disabled,
|
|
93
|
+
"b-loading-button--loading": n.state === I.LOADING && !n.disabled,
|
|
94
|
+
[`b-loading-button--${n.variant}-${I.SUCCESS}`]: n.state === I.SUCCESS,
|
|
95
|
+
"b-loading-button--inverse": n.inverse
|
|
96
|
+
})), l = p(
|
|
97
|
+
() => n.variant === "primary" && !n.inverse || n.variant !== "primary" && n.inverse
|
|
98
|
+
), u = p(
|
|
99
|
+
() => n.critical && n.state === I.START || n.state === I.FAIL
|
|
100
|
+
);
|
|
101
|
+
return { __sfc: !0, props: n, emit: e, slots: t, hasSlot: s, t: i, conditionalClasses: c, isInverseLoadingIndicator: l, isCritical: u, onClick: (r) => {
|
|
102
|
+
r.stopPropagation(), n.state !== I.LOADING && e("click", r);
|
|
103
|
+
}, BentoLoadingIndicator: se, BentoButton: b, Cross: oe, Checkmark: ae };
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var Be = function() {
|
|
107
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
108
|
+
return n(t.BentoButton, { staticClass: "b-loading-button", class: t.conditionalClasses, attrs: { critical: t.isCritical, variant: e.variant, condensed: e.condensed, disabled: e.disabled, inverse: e.inverse }, on: { "!click": function(s) {
|
|
109
|
+
return s.stopPropagation(), t.onClick.apply(null, arguments);
|
|
110
|
+
} }, scopedSlots: e._u([e.state === "start" && t.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
|
|
111
|
+
return [e._t("iconLeft")];
|
|
112
|
+
}, proxy: !0 } : e.state !== "start" ? { key: "iconLeft", fn: function() {
|
|
113
|
+
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
|
+
}, proxy: !0 } : null], null, !0) }, [e._t("default")], 2);
|
|
115
|
+
}, Oe = [], xe = /* @__PURE__ */ C(
|
|
116
|
+
Ie,
|
|
117
|
+
Be,
|
|
118
|
+
Oe,
|
|
119
|
+
!1,
|
|
120
|
+
null,
|
|
121
|
+
"bc74b2f7"
|
|
122
|
+
);
|
|
123
|
+
const Se = xe.exports, Ee = {}, Le = /* @__PURE__ */ g({
|
|
124
|
+
...Ee,
|
|
125
|
+
__name: "toggle-button",
|
|
126
|
+
props: {
|
|
127
|
+
/**
|
|
128
|
+
* Reduces sizing of button
|
|
129
|
+
*/
|
|
130
|
+
condensed: {
|
|
131
|
+
type: b.props.condensed.type,
|
|
132
|
+
default: !1
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* Disables button functonality
|
|
136
|
+
*/
|
|
137
|
+
disabled: {
|
|
138
|
+
type: b.props.disabled.type,
|
|
139
|
+
default: !1
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
* Sets color set to inverse
|
|
143
|
+
*/
|
|
144
|
+
inverse: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: !1
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* Types of flavour of Button
|
|
150
|
+
* @values primary, secondary, tertiary
|
|
151
|
+
*/
|
|
152
|
+
variant: {
|
|
153
|
+
type: b.props.variant.type,
|
|
154
|
+
default: "primary",
|
|
155
|
+
validator: b.props.variant.validator
|
|
156
|
+
},
|
|
157
|
+
/**
|
|
158
|
+
* The state of the button whether it is toggled or not.
|
|
159
|
+
*/
|
|
160
|
+
toggled: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: !1
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
emits: ["click", "update:toggled"],
|
|
166
|
+
setup(o, { emit: e }) {
|
|
167
|
+
const n = o, t = p(
|
|
168
|
+
() => n.variant === "tertiary" ? "tertiary-with-background" : n.variant
|
|
169
|
+
), s = p(() => ({
|
|
170
|
+
"b-toggle-button--condensed": n == null ? void 0 : n.condensed,
|
|
171
|
+
[`b-toggle-button--${t.value}-toggled`]: n.toggled,
|
|
172
|
+
"b-toggle-button--inverse": n.inverse
|
|
173
|
+
})), i = (u) => {
|
|
174
|
+
u.stopPropagation(), n != null && n.disabled || (e("click", u), e("update:toggled", !n.toggled));
|
|
175
|
+
}, c = w();
|
|
176
|
+
return { __sfc: !0, props: n, emit: e, computedVariant: t, conditionalClasses: s, onClick: i, slots: c, getSlotKeyIfVue3: (u) => ({}), BentoButton: b };
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
var we = function() {
|
|
180
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
181
|
+
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
|
+
return s.stopPropagation(), t.onClick.apply(null, arguments);
|
|
183
|
+
} }, scopedSlots: e._u([e._l(t.slots, function(s, i) {
|
|
184
|
+
return { key: i, fn: function() {
|
|
185
|
+
return [e._t(i, null, null, t.getSlotKeyIfVue3(i))];
|
|
186
|
+
}, proxy: !0 };
|
|
187
|
+
})], null, !0) }, "bento-button", e.$attrs, !1));
|
|
188
|
+
}, Te = [], Me = /* @__PURE__ */ C(
|
|
189
|
+
Le,
|
|
190
|
+
we,
|
|
191
|
+
Te,
|
|
192
|
+
!1,
|
|
193
|
+
null,
|
|
194
|
+
"0bc368c9"
|
|
195
|
+
);
|
|
196
|
+
const Re = Me.exports, Ae = g({
|
|
197
|
+
name: "bento-popover-dismiss-button",
|
|
198
|
+
components: { BentoButton: b, CrossIcon: re },
|
|
199
|
+
props: {
|
|
200
|
+
onImage: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: !1
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
setup(o) {
|
|
206
|
+
return {
|
|
207
|
+
// Values
|
|
208
|
+
conditionalClass: p(() => ({ "b-popover-dismiss-button--on-image": o.onImage }))
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
var Ne = function() {
|
|
213
|
+
var e = this, n = e._self._c;
|
|
214
|
+
return e._self._setupProxy, n("bento-button", { class: e.conditionalClass, attrs: { variant: "tertiary" }, on: { click: function(t) {
|
|
215
|
+
return e.$emit("click");
|
|
216
|
+
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
217
|
+
return [n("cross-icon", { attrs: { "svg-title": "dismiss" } })];
|
|
218
|
+
}, proxy: !0 }]) });
|
|
219
|
+
}, Pe = [], De = /* @__PURE__ */ C(
|
|
220
|
+
Ae,
|
|
221
|
+
Ne,
|
|
222
|
+
Pe,
|
|
223
|
+
!1,
|
|
224
|
+
null,
|
|
225
|
+
"4c18828f"
|
|
226
|
+
);
|
|
227
|
+
const $e = De.exports, Fe = g({
|
|
228
|
+
components: { BentoTypography: q },
|
|
229
|
+
props: {
|
|
230
|
+
/**
|
|
231
|
+
* Indicates if the popover contains an image.
|
|
232
|
+
*/
|
|
233
|
+
isImageTitle: { type: Boolean, default: !1 },
|
|
234
|
+
/**
|
|
235
|
+
* Indicates the title you want to give the popover.
|
|
236
|
+
*/
|
|
237
|
+
title: { type: String, default: null }
|
|
238
|
+
},
|
|
239
|
+
setup(o) {
|
|
240
|
+
const e = p(() => !o.isImageTitle), n = p(
|
|
241
|
+
() => o.isImageTitle ? F.SUBTITLE : F.BODY
|
|
242
|
+
);
|
|
243
|
+
return {
|
|
244
|
+
// Values
|
|
245
|
+
isStrongest: e,
|
|
246
|
+
titleVariant: n
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
var We = function() {
|
|
251
|
+
var e = this, n = e._self._c;
|
|
252
|
+
return e._self._setupProxy, n("bento-typography", { attrs: { strongest: e.isStrongest, variant: e.titleVariant, el: "span" } }, [e._v(" " + e._s(e.title) + " ")]);
|
|
253
|
+
}, Ue = [], Ve = /* @__PURE__ */ C(
|
|
254
|
+
Fe,
|
|
255
|
+
We,
|
|
256
|
+
Ue,
|
|
257
|
+
!1,
|
|
258
|
+
null,
|
|
259
|
+
null
|
|
260
|
+
);
|
|
261
|
+
const Ke = Ve.exports, Ge = (o, e, n = {}) => {
|
|
262
|
+
let t;
|
|
263
|
+
T(() => {
|
|
264
|
+
t = pe(o, e, n);
|
|
265
|
+
}), G(() => {
|
|
266
|
+
t && (t(), t = null);
|
|
267
|
+
});
|
|
268
|
+
}, je = /* @__PURE__ */ Symbol("input field popover injection key"), He = /* @__PURE__ */ Symbol("input field popover injection key"), Ye = /* @__PURE__ */ Symbol("popover offset injection key"), Je = {}, qe = /* @__PURE__ */ g({
|
|
269
|
+
...Je,
|
|
270
|
+
__name: "popover",
|
|
271
|
+
props: {
|
|
272
|
+
actions: { default: void 0 },
|
|
273
|
+
actionsLayout: { default: "buttons-end" },
|
|
274
|
+
ariaLabel: { default: void 0 },
|
|
275
|
+
divider: { type: Boolean, default: !1 },
|
|
276
|
+
disableFocusTrap: { type: Boolean, default: !1 },
|
|
277
|
+
dismissible: { type: Boolean, default: !1 },
|
|
278
|
+
fallbackPosition: { default: () => ["bottom-start", "right-start", "top-start", "left-start"] },
|
|
279
|
+
fitContent: { type: Boolean, default: !1 },
|
|
280
|
+
fixedPositioning: { type: Boolean, default: !1 },
|
|
281
|
+
open: { type: Boolean, default: !1 },
|
|
282
|
+
large: { type: Boolean, default: !1 },
|
|
283
|
+
modifiers: { default: void 0 },
|
|
284
|
+
position: { default: "bottom-start" },
|
|
285
|
+
small: { type: Boolean, default: !1 },
|
|
286
|
+
title: { default: void 0 },
|
|
287
|
+
targetElement: null,
|
|
288
|
+
trapAll: { type: Boolean, default: !1 },
|
|
289
|
+
trapAllOptions: { default: void 0 },
|
|
290
|
+
withoutSpace: { type: Boolean, default: !1 },
|
|
291
|
+
overflowVisible: { type: Boolean, default: !1 }
|
|
292
|
+
},
|
|
293
|
+
emits: ["dismiss", "placement"],
|
|
294
|
+
setup(o, { emit: e }) {
|
|
295
|
+
const n = o, t = 2, s = w(), i = Q(), c = p(() => {
|
|
296
|
+
var B;
|
|
297
|
+
return {
|
|
298
|
+
id: (B = i.id) == null ? void 0 : B.toString(),
|
|
299
|
+
role: (i == null ? void 0 : i.role) === null ? void 0 : ue.POPOVER
|
|
300
|
+
};
|
|
301
|
+
}), l = x(Ye, t), u = d(i["aria-label"]), { ariaLabel: a, title: r } = ee(n), f = fe({
|
|
302
|
+
ariaLabel: u.value,
|
|
303
|
+
// TODO: take this line away when the aria-label props is removed
|
|
304
|
+
label: a,
|
|
305
|
+
defaultFallback: r
|
|
306
|
+
}), m = x(He, !1) || x(je, !1), _ = p(() => ({
|
|
307
|
+
"b-popover--small": n.small && !n.large,
|
|
308
|
+
"b-popover--with-divider": !!n.divider,
|
|
309
|
+
"b-popover--large": n.large && !n.small,
|
|
310
|
+
"b-popover--fit-content": n.fitContent,
|
|
311
|
+
"b-popover--without-space": n.withoutSpace,
|
|
312
|
+
"b-popover--overflow-visible": n.overflowVisible || m
|
|
313
|
+
})), y = p(() => ({
|
|
314
|
+
"b-popover__content--with-title": !!n.title
|
|
315
|
+
})), k = () => e("dismiss"), E = D(s);
|
|
316
|
+
return { __sfc: !0, DEFAULT_OFFSET: t, props: n, emit: e, slots: s, attrs: i, computedAttributes: c, offset: l, ariaLabelAttribute: u, ariaLabel: a, title: r, computedAriaLabel: f, isOverflowVisible: m, conditionalClasses: _, contentConditionalClasses: y, dismissPopover: k, hasSlot: E, BentoPopoverDismissButton: $e, BentoPopoverTitle: Ke, BentoButtonActions: Xt, PopperContainer: ce };
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
var Xe = function() {
|
|
320
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
321
|
+
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
|
+
return e.$emit("placement", s);
|
|
323
|
+
} } }, [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
|
+
}, ze = [], Ze = /* @__PURE__ */ C(
|
|
325
|
+
qe,
|
|
326
|
+
Xe,
|
|
327
|
+
ze,
|
|
328
|
+
!1,
|
|
329
|
+
null,
|
|
330
|
+
"2de66a7e"
|
|
331
|
+
);
|
|
332
|
+
const Qe = Ze.exports, et = /* @__PURE__ */ Symbol("modal injection key"), tt = /* @__PURE__ */ Symbol("sidepanel children element injection key"), nt = /* @__PURE__ */ Symbol("modal fullscreen children element injection key"), st = g({
|
|
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 = x(et, "") || x(nt, "") || x(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;
|
|
449
|
+
let V = 0;
|
|
450
|
+
const ut = {
|
|
451
|
+
beforeCreate() {
|
|
452
|
+
this.uuid = V.toString(), V += 1;
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
var ct = function() {
|
|
456
|
+
var e = this, n = e._self._c;
|
|
457
|
+
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
|
+
}, dt = [], ft = /* @__PURE__ */ C(
|
|
459
|
+
ut,
|
|
460
|
+
ct,
|
|
461
|
+
dt,
|
|
462
|
+
!1,
|
|
463
|
+
null,
|
|
464
|
+
null
|
|
465
|
+
);
|
|
466
|
+
const pt = ft.exports, _t = g({
|
|
467
|
+
name: "menu-item",
|
|
468
|
+
components: { BaseButton: ye, BentoTypography: q, ChevronRightIcon: ve },
|
|
469
|
+
props: {
|
|
470
|
+
/**
|
|
471
|
+
* menu-item text that gets displayed as the main label
|
|
472
|
+
*/
|
|
473
|
+
text: {
|
|
474
|
+
type: String,
|
|
475
|
+
required: !0
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* menu-item action that gets executed when the MeniItem is clicked
|
|
479
|
+
*/
|
|
480
|
+
handler: {
|
|
481
|
+
type: Function,
|
|
482
|
+
required: !0
|
|
483
|
+
},
|
|
484
|
+
/**
|
|
485
|
+
* menu-item text that gets displayed as the secondary label
|
|
486
|
+
*/
|
|
487
|
+
secondaryText: {
|
|
488
|
+
type: String,
|
|
489
|
+
default: null
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
* Optional chevron icon displayed to the right of the menu-item
|
|
493
|
+
*/
|
|
494
|
+
chevron: {
|
|
495
|
+
type: Boolean,
|
|
496
|
+
default: !1
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
* Optional icon displayed to the left of the menu-item
|
|
500
|
+
*/
|
|
501
|
+
icon: {
|
|
502
|
+
// Types for Vue2 (Object) and Vue3 (Function)
|
|
503
|
+
// TODO: Remove Object when fully migrated to Vue3
|
|
504
|
+
type: [Object, Function],
|
|
505
|
+
default: null
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
* Disables menu-item button functionality
|
|
509
|
+
*/
|
|
510
|
+
disabled: {
|
|
511
|
+
type: Boolean,
|
|
512
|
+
default: !1
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
* Displays an indent variant od the menu-item
|
|
516
|
+
*/
|
|
517
|
+
indent: {
|
|
518
|
+
type: Boolean,
|
|
519
|
+
default: !1
|
|
520
|
+
},
|
|
521
|
+
/**
|
|
522
|
+
* Displays menu-item button as critical
|
|
523
|
+
*/
|
|
524
|
+
critical: {
|
|
525
|
+
type: Boolean,
|
|
526
|
+
default: !1
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
* Renders the text in a bold variant
|
|
530
|
+
*/
|
|
531
|
+
isTitle: {
|
|
532
|
+
type: Boolean,
|
|
533
|
+
default: !1
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
emits: [U.CLICK],
|
|
537
|
+
setup(o, { emit: e }) {
|
|
538
|
+
const t = p(() => ({
|
|
539
|
+
"b-menu-item--critical": o.critical,
|
|
540
|
+
"b-menu-item--indent": o.indent
|
|
541
|
+
})), s = p(() => he(o.secondaryText, 10));
|
|
542
|
+
return {
|
|
543
|
+
// Values
|
|
544
|
+
conditionalClasses: t,
|
|
545
|
+
computedSecondaryText: s,
|
|
546
|
+
// Methods
|
|
547
|
+
onClick: (c) => {
|
|
548
|
+
c.stopPropagation(), o.handler(), e(U.CLICK);
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
var mt = function() {
|
|
554
|
+
var e = this, n = e._self._c;
|
|
555
|
+
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
|
+
return [n(e.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
|
|
557
|
+
}, proxy: !0 } : null, { key: "default", fn: function() {
|
|
558
|
+
return [n("bento-typography", { staticClass: "b-menu-item__primary-text", attrs: { el: "span", variant: "body", stronger: e.isTitle } }, [e._v(" " + e._s(e.text) + " ")]), e.computedSecondaryText ? n("bento-typography", { staticClass: "b-menu-item__secondary-text", attrs: { el: "span", variant: "body" } }, [e._v(" " + e._s(e.computedSecondaryText) + " ")]) : e._e()];
|
|
559
|
+
}, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
|
|
560
|
+
return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
|
|
561
|
+
}, proxy: !0 } : null], null, !0) });
|
|
562
|
+
}, vt = [], yt = /* @__PURE__ */ C(
|
|
563
|
+
_t,
|
|
564
|
+
mt,
|
|
565
|
+
vt,
|
|
566
|
+
!1,
|
|
567
|
+
null,
|
|
568
|
+
"a173cbf5"
|
|
569
|
+
);
|
|
570
|
+
const X = yt.exports;
|
|
571
|
+
({ ...de });
|
|
572
|
+
var O = /* @__PURE__ */ ((o) => (o.BACK = "back", o.CLOSE = "close", o.OPEN = "open", o))(O || {});
|
|
573
|
+
const ht = /* @__PURE__ */ Symbol("menu registering injection key"), bt = {
|
|
574
|
+
name: "bento-menu-list-container"
|
|
575
|
+
}, gt = /* @__PURE__ */ g({
|
|
576
|
+
...bt,
|
|
577
|
+
setup(o) {
|
|
578
|
+
const e = d(), n = d({}), t = x(ht, !1);
|
|
579
|
+
if (t) {
|
|
580
|
+
const { registerMenuContainerElement: s } = t;
|
|
581
|
+
s(e), n.value = {
|
|
582
|
+
mouseleave: t == null ? void 0 : t.menuMouseLeave
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
return { __sfc: !0, menuListContainerRef: e, menuListContainerEvents: n, registeringAndMousingOut: t };
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
var Ct = function() {
|
|
589
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
590
|
+
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
|
+
}, kt = [], It = /* @__PURE__ */ C(
|
|
592
|
+
gt,
|
|
593
|
+
Ct,
|
|
594
|
+
kt,
|
|
595
|
+
!1,
|
|
596
|
+
null,
|
|
597
|
+
"1669d56a"
|
|
598
|
+
);
|
|
599
|
+
const z = It.exports, Z = {
|
|
600
|
+
"en-US": {
|
|
601
|
+
backButton: "Go back",
|
|
602
|
+
menuButton: "Open menu"
|
|
603
|
+
}
|
|
604
|
+
}, Bt = g({
|
|
605
|
+
i18n: { messages: Z },
|
|
606
|
+
name: "sub-menu-item-list",
|
|
607
|
+
components: { BentoDivider: J, MenuItem: X, MenuListContainer: z },
|
|
608
|
+
props: {
|
|
609
|
+
items: {
|
|
610
|
+
type: Array,
|
|
611
|
+
required: !0
|
|
612
|
+
},
|
|
613
|
+
title: {
|
|
614
|
+
type: String,
|
|
615
|
+
required: !0
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
emits: [O.CLOSE, O.BACK],
|
|
619
|
+
setup(o, { emit: e }) {
|
|
620
|
+
const n = d(null), t = d(0), s = d(o.items.length), i = () => e(O.CLOSE), c = () => e(O.BACK), l = p(() => {
|
|
621
|
+
var m;
|
|
622
|
+
const f = (m = o.items) == null ? void 0 : m.map((_) => ({
|
|
623
|
+
..._,
|
|
624
|
+
indent: !_.icon,
|
|
625
|
+
isTitle: !1,
|
|
626
|
+
clickHandler: i
|
|
627
|
+
}));
|
|
628
|
+
return [
|
|
629
|
+
{
|
|
630
|
+
text: o.title,
|
|
631
|
+
secondaryText: null,
|
|
632
|
+
critical: !1,
|
|
633
|
+
icon: W,
|
|
634
|
+
isTitle: !0,
|
|
635
|
+
disabled: !1,
|
|
636
|
+
indent: !1,
|
|
637
|
+
handler: c,
|
|
638
|
+
clickHandler: c,
|
|
639
|
+
addDivider: !0
|
|
640
|
+
},
|
|
641
|
+
...f
|
|
642
|
+
];
|
|
643
|
+
}), u = async () => {
|
|
644
|
+
var f, m, _, y, k;
|
|
645
|
+
(k = (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 || k.focus();
|
|
646
|
+
};
|
|
647
|
+
T(async () => {
|
|
648
|
+
setTimeout(() => u(), 150);
|
|
649
|
+
});
|
|
650
|
+
const a = () => {
|
|
651
|
+
t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && a()) : t.value = s.value, u();
|
|
652
|
+
}, r = () => {
|
|
653
|
+
t.value < s.value ? (t.value += 1, l.value[t.value].disabled && r()) : t.value = 0, u();
|
|
654
|
+
};
|
|
655
|
+
return {
|
|
656
|
+
// Enums
|
|
657
|
+
BentoMenuEvent: O,
|
|
658
|
+
// Values
|
|
659
|
+
subMenuItemListRefLocal: n,
|
|
660
|
+
subMenuFocusedIndex: t,
|
|
661
|
+
ChevronLeftIcon: W,
|
|
662
|
+
computedItems: l,
|
|
663
|
+
// Methods
|
|
664
|
+
closeMenu: i,
|
|
665
|
+
onBackButton: c,
|
|
666
|
+
focusPrevious: a,
|
|
667
|
+
focusNext: r
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
var Ot = function() {
|
|
672
|
+
var e = this, n = e._self._c;
|
|
673
|
+
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
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
|
|
675
|
+
}, function(t) {
|
|
676
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : (t.stopPropagation(), e.focusPrevious.apply(null, arguments));
|
|
677
|
+
}, function(t) {
|
|
678
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(), e.onBackButton.apply(null, arguments));
|
|
679
|
+
}] } }, e._l(e.computedItems, function(t, s) {
|
|
680
|
+
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
|
+
}), 0)])], 1);
|
|
682
|
+
}, xt = [], St = /* @__PURE__ */ C(
|
|
683
|
+
Bt,
|
|
684
|
+
Ot,
|
|
685
|
+
xt,
|
|
686
|
+
!1,
|
|
687
|
+
null,
|
|
688
|
+
"93387117"
|
|
689
|
+
);
|
|
690
|
+
const Et = St.exports;
|
|
691
|
+
function Lt(o, e, n) {
|
|
692
|
+
const i = d(0), c = d(0), l = (a) => {
|
|
693
|
+
if (!a || !a.parentElement)
|
|
694
|
+
return;
|
|
695
|
+
const r = a.parentElement, f = a.cloneNode(!0);
|
|
696
|
+
f.style.position = "absolute", f.style.visibility = "hidden", r.appendChild(f), f.style.width = "max-content";
|
|
697
|
+
const m = f.offsetWidth, _ = Math.max(150, Math.min(m, 350));
|
|
698
|
+
i.value = _, f.style.width = `${_}px`;
|
|
699
|
+
const y = f.offsetHeight;
|
|
700
|
+
c.value = y, r.removeChild(f), c.value = y;
|
|
701
|
+
};
|
|
702
|
+
return j([e, n], async ([a]) => {
|
|
703
|
+
var r, f;
|
|
704
|
+
if (a !== null) {
|
|
705
|
+
await P();
|
|
706
|
+
const m = (f = (r = o.value) == null ? void 0 : r[0]) == null ? void 0 : f.$el;
|
|
707
|
+
m && l(m);
|
|
708
|
+
} else
|
|
709
|
+
i.value = 0, c.value = 0;
|
|
710
|
+
}), { computedStyle: p(() => {
|
|
711
|
+
const a = { width: "max-content" };
|
|
712
|
+
return n.value && (c.value > 0 && (a.height = `${c.value}px`), i.value > 0 && (a.width = `${i.value}px`)), a;
|
|
713
|
+
}) };
|
|
714
|
+
}
|
|
715
|
+
const wt = g({
|
|
716
|
+
name: "menu-item-list",
|
|
717
|
+
components: { BentoDivider: J, MenuItem: X, MenuListContainer: z, SubMenuItemList: Et },
|
|
718
|
+
props: {
|
|
719
|
+
/**
|
|
720
|
+
* The data to be displayed in the list
|
|
721
|
+
*/
|
|
722
|
+
data: {
|
|
723
|
+
type: Array,
|
|
724
|
+
required: !0
|
|
725
|
+
},
|
|
726
|
+
/**
|
|
727
|
+
* Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
|
|
728
|
+
*/
|
|
729
|
+
indentItems: {
|
|
730
|
+
type: Boolean,
|
|
731
|
+
default: !1
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
* If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.
|
|
735
|
+
*/
|
|
736
|
+
focusLastElement: {
|
|
737
|
+
type: Boolean,
|
|
738
|
+
default: !1
|
|
739
|
+
},
|
|
740
|
+
/**
|
|
741
|
+
* If set to true, closes the menu when an item is clicked.
|
|
742
|
+
*/
|
|
743
|
+
closeMenuOnItemSelect: {
|
|
744
|
+
type: Boolean,
|
|
745
|
+
default: !0
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
emits: [O.CLOSE, "menu-item-click"],
|
|
749
|
+
setup(o, { emit: e, expose: n }) {
|
|
750
|
+
const t = d(null), s = d(null), i = d(null), c = d(null), l = d(!1), u = d(null), a = d(o.focusLastElement ? o.data.length - 1 : 0), r = d(0), f = d(o.data.length - 1), m = p(() => o.data.some((h) => h.icon)), _ = p(() => o.indentItems || m.value ? o.data.map((h) => {
|
|
751
|
+
let v = !1;
|
|
752
|
+
return h.icon || (v = !0), {
|
|
753
|
+
...h,
|
|
754
|
+
indent: v
|
|
755
|
+
};
|
|
756
|
+
}) : o.data), y = async () => {
|
|
757
|
+
var h, v, S;
|
|
758
|
+
(S = (v = (h = s.value) == null ? void 0 : h.children[a.value]) == null ? void 0 : v.children[0]) == null || S.focus();
|
|
759
|
+
}, k = () => e(O.CLOSE), E = (h, v) => {
|
|
760
|
+
if (h.items) {
|
|
761
|
+
u.value = v, l.value = !0;
|
|
762
|
+
return;
|
|
763
|
+
}
|
|
764
|
+
u.value = v, l.value = !1, !h.skipClose && o.closeMenuOnItemSelect !== !1 && k(), e("menu-item-click");
|
|
765
|
+
}, B = () => {
|
|
766
|
+
a.value > 0 ? (a.value -= 1, _.value[a.value].disabled && B()) : a.value = f.value, y();
|
|
767
|
+
}, L = () => {
|
|
768
|
+
a.value < f.value ? (a.value += 1, _.value[a.value].disabled && L()) : a.value = 0, y();
|
|
769
|
+
}, M = (h, v) => {
|
|
770
|
+
var S;
|
|
771
|
+
(S = h == null ? void 0 : h.items) != null && S.length && (u.value = v, l.value = !0);
|
|
772
|
+
}, R = () => {
|
|
773
|
+
u.value && l.value && (u.value = null, l.value = !1);
|
|
774
|
+
}, A = () => {
|
|
775
|
+
l.value = !1, u.value = null, y();
|
|
776
|
+
};
|
|
777
|
+
n({
|
|
778
|
+
focusItem: y
|
|
779
|
+
});
|
|
780
|
+
const { computedStyle: N } = Lt(c, u, l);
|
|
781
|
+
return {
|
|
782
|
+
// Values
|
|
783
|
+
menuItemListRef: s,
|
|
784
|
+
menuItemListWrapperRef: i,
|
|
785
|
+
subMenuItemListRef: c,
|
|
786
|
+
menuItemRef: t,
|
|
787
|
+
computedData: _,
|
|
788
|
+
computedStyle: N,
|
|
789
|
+
focusedIndex: a,
|
|
790
|
+
subMenuFocusedIndex: r,
|
|
791
|
+
showSubMenu: l,
|
|
792
|
+
visibleSubMenuIndex: u,
|
|
793
|
+
// Methods
|
|
794
|
+
menuItemClick: E,
|
|
795
|
+
closeMenu: k,
|
|
796
|
+
focusPrevious: B,
|
|
797
|
+
focusNext: L,
|
|
798
|
+
focusRight: M,
|
|
799
|
+
focusLeft: R,
|
|
800
|
+
onBackButton: A
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
var Tt = function() {
|
|
805
|
+
var e = this, n = e._self._c;
|
|
806
|
+
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
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
|
|
808
|
+
}, function(t) {
|
|
809
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : e.focusPrevious.apply(null, arguments);
|
|
810
|
+
}, function(t) {
|
|
811
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu.apply(null, arguments);
|
|
812
|
+
}, function(t) {
|
|
813
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
|
|
814
|
+
}] } }, e._l(e.computedData, function(t, s) {
|
|
815
|
+
var i, c, l, u;
|
|
816
|
+
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
|
+
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
|
+
}, function(a) {
|
|
819
|
+
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": !!((l = t.items) != null && l.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === s }, on: { click: function(a) {
|
|
821
|
+
return e.menuItemClick(t, s);
|
|
822
|
+
} } }), 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
|
+
}), 0)]);
|
|
824
|
+
}, Mt = [], Rt = /* @__PURE__ */ C(
|
|
825
|
+
wt,
|
|
826
|
+
Tt,
|
|
827
|
+
Mt,
|
|
828
|
+
!1,
|
|
829
|
+
null,
|
|
830
|
+
"b402ef99"
|
|
831
|
+
);
|
|
832
|
+
const At = Rt.exports, Nt = /* @__PURE__ */ Symbol("menu inverse style injection key"), Pt = {
|
|
833
|
+
i18n: { messages: Z },
|
|
834
|
+
name: "bento-menu"
|
|
835
|
+
}, Dt = /* @__PURE__ */ g({
|
|
836
|
+
...Pt,
|
|
837
|
+
props: {
|
|
838
|
+
button: { default: () => ({
|
|
839
|
+
variant: "secondary"
|
|
840
|
+
}) },
|
|
841
|
+
closeMenuOnItemSelect: { type: Boolean, default: !0 },
|
|
842
|
+
data: null,
|
|
843
|
+
disableArrowDownOpeningMenu: { type: Boolean, default: !1 },
|
|
844
|
+
menuPosition: { default: "bottom-start" },
|
|
845
|
+
menuFixedPositioning: { type: Boolean, default: !1 },
|
|
846
|
+
menuWidth: { default: null },
|
|
847
|
+
revertFocusToButton: { type: Boolean, default: !0 },
|
|
848
|
+
teleport: { type: Boolean, default: !1 },
|
|
849
|
+
closeOnClickOutsideOptions: { default: void 0 }
|
|
850
|
+
},
|
|
851
|
+
emits: ["menu-item-click", "click-outside"],
|
|
852
|
+
setup(o, { expose: e, emit: n }) {
|
|
853
|
+
var h;
|
|
854
|
+
const t = o, s = w(), i = D(s), { t: c } = H(), l = d(null), u = d(null), a = d(!1), r = d(!1), f = d(null), m = _e("menu"), _ = x(Nt, d(!1));
|
|
855
|
+
te(ie, _);
|
|
856
|
+
const y = p(() => ({
|
|
857
|
+
"b-menu--inverse": _.value
|
|
858
|
+
})), k = p(() => t.menuWidth ? { width: `${t.menuWidth}px` } : null), E = p(() => {
|
|
859
|
+
if (t != null && t.button)
|
|
860
|
+
return {
|
|
861
|
+
variant: "secondary",
|
|
862
|
+
...t.button
|
|
863
|
+
};
|
|
864
|
+
}), B = () => {
|
|
865
|
+
a.value = !0, n(O.OPEN);
|
|
866
|
+
}, L = async (v = t.revertFocusToButton) => {
|
|
867
|
+
var S, $;
|
|
868
|
+
a.value && (a.value = !1, v && (await P(), ($ = (S = l.value) == null ? void 0 : S.$el) == null || $.focus()), n(O.CLOSE));
|
|
869
|
+
}, M = (v) => {
|
|
870
|
+
v.stopPropagation(), a.value ? L() : B();
|
|
871
|
+
}, R = (v) => {
|
|
872
|
+
v.preventDefault(), r.value = !1, t.disableArrowDownOpeningMenu || B();
|
|
873
|
+
}, A = (v) => {
|
|
874
|
+
v.preventDefault(), r.value = !0, B();
|
|
875
|
+
}, N = () => {
|
|
876
|
+
n("menu-item-click");
|
|
877
|
+
};
|
|
878
|
+
return Ge(
|
|
879
|
+
f,
|
|
880
|
+
() => {
|
|
881
|
+
L(), n("click-outside");
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
...t.closeOnClickOutsideOptions,
|
|
885
|
+
ignore: [l, ...((h = t.closeOnClickOutsideOptions) == null ? void 0 : h.ignore) ?? []]
|
|
886
|
+
}
|
|
887
|
+
), e({
|
|
888
|
+
/**
|
|
889
|
+
* Control to enable programmatic closing of the menu
|
|
890
|
+
*/
|
|
891
|
+
closeMenu: L
|
|
892
|
+
}), T(() => {
|
|
893
|
+
i("iconRight") && le(
|
|
894
|
+
'"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
|
|
895
|
+
);
|
|
896
|
+
}), { __sfc: !0, props: t, emit: n, slots: s, hasSlot: i, t: c, menuButtonRef: l, menuItemListRef: u, showMenu: a, isLastElementFocused: r, popoverRef: f, menuId: m, isInverseColorSet: _, computedClasses: y, computedMenuWidth: k, computedButtonPropsWithDefaults: E, openMenu: B, closeMenu: L, toggleShowMenu: M, onKeyDown: R, onKeyUp: A, menuItemClick: N, BentoToggleButton: Re, BentoPopover: Qe, BentoTeleport: lt, ChevronDownIcon: me, OptionsVerticalIcon: pt, MenuItemList: At };
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
var $t = function() {
|
|
900
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
901
|
+
return n("div", { staticClass: "b-menu", class: t.computedClasses, attrs: { "data-testid": "menu" }, on: { keydown: [function(s) {
|
|
902
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "down", 40, s.key, ["Down", "ArrowDown"]) ? null : t.onKeyDown.apply(null, arguments);
|
|
903
|
+
}, function(s) {
|
|
904
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "up", 38, s.key, ["Up", "ArrowUp"]) ? null : t.onKeyUp.apply(null, arguments);
|
|
905
|
+
}, function(s) {
|
|
906
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : t.closeMenu();
|
|
907
|
+
}] } }, [n(t.BentoToggleButton, e._b({ ref: "menuButtonRef", staticClass: "b-menu__toggle-button", attrs: { "aria-haspopup": "true", "aria-controls": t.showMenu ? t.menuId : null, toggled: t.showMenu, inverse: t.isInverseColorSet }, on: { click: t.toggleShowMenu }, scopedSlots: e._u([!t.hasSlot("default") || t.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
|
|
908
|
+
return [e._t("iconLeft", function() {
|
|
909
|
+
return [n(t.OptionsVerticalIcon, { attrs: { title: t.t("menuButton") } })];
|
|
910
|
+
})];
|
|
911
|
+
}, proxy: !0 } : null, t.hasSlot("default") ? { key: "default", fn: function() {
|
|
912
|
+
return [e._t("default")];
|
|
913
|
+
}, proxy: !0 } : null, t.hasSlot("default") ? { key: "iconRight", fn: function() {
|
|
914
|
+
return [n(t.ChevronDownIcon)];
|
|
915
|
+
}, proxy: !0 } : null], null, !0) }, "bento-toggle-button", t.computedButtonPropsWithDefaults, !1)), t.menuButtonRef ? n(t.BentoTeleport, { attrs: { disabled: !e.teleport } }, [t.menuButtonRef ? n(t.BentoPopover, { ref: "popoverRef", staticClass: "b-menu__popover", style: t.computedMenuWidth, attrs: { id: t.menuId, role: null, open: t.showMenu, "target-element": t.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "fallback-position": [
|
|
916
|
+
"bottom-start",
|
|
917
|
+
"bottom-end",
|
|
918
|
+
"top-start",
|
|
919
|
+
"top-end",
|
|
920
|
+
"right-start",
|
|
921
|
+
"right-end",
|
|
922
|
+
"left-start",
|
|
923
|
+
"left-end"
|
|
924
|
+
], 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
|
+
}, Ft = [], Wt = /* @__PURE__ */ C(
|
|
926
|
+
Dt,
|
|
927
|
+
$t,
|
|
928
|
+
Ft,
|
|
929
|
+
!1,
|
|
930
|
+
null,
|
|
931
|
+
"fbe7541f"
|
|
932
|
+
);
|
|
933
|
+
const Ut = Wt.exports, Vt = /* @__PURE__ */ Symbol(
|
|
934
|
+
"button actions with menu container injection key"
|
|
935
|
+
), Kt = 242, K = parseInt(ge, 10), Gt = (o, e, n) => {
|
|
936
|
+
const t = d(0);
|
|
937
|
+
let s = null;
|
|
938
|
+
const { buttonActionsWithMenu: i, menu: c, stackButtons: l } = x(Vt, {
|
|
939
|
+
buttonActionsWithMenu: d(null),
|
|
940
|
+
menu: d(null),
|
|
941
|
+
stackButtons: d(!1)
|
|
942
|
+
}), u = p(() => i.value ?? o.value), a = p(() => c.value ? [...e.value, c.value.$el] : e.value), r = (f) => {
|
|
943
|
+
var y;
|
|
944
|
+
const m = (y = a.value) == null ? void 0 : y.reduce(
|
|
945
|
+
(k, E) => k + E.clientWidth + K,
|
|
946
|
+
-K - 1
|
|
947
|
+
), _ = u.value.clientWidth;
|
|
948
|
+
return f && (t.value = _ >= Kt && !l.value ? m : 0), t.value > _;
|
|
949
|
+
};
|
|
950
|
+
return j(
|
|
951
|
+
() => n.value,
|
|
952
|
+
() => {
|
|
953
|
+
P(() => {
|
|
954
|
+
l.value = r(!0);
|
|
955
|
+
});
|
|
956
|
+
},
|
|
957
|
+
{ deep: !0 }
|
|
958
|
+
), T(() => {
|
|
959
|
+
s = be(u.value, () => {
|
|
960
|
+
l.value = r(t.value === 0);
|
|
961
|
+
});
|
|
962
|
+
}), G(() => {
|
|
963
|
+
s == null || s.disconnect();
|
|
964
|
+
}), l;
|
|
965
|
+
}, jt = {}, Ht = /* @__PURE__ */ g({
|
|
966
|
+
...jt,
|
|
967
|
+
__name: "button-actions",
|
|
968
|
+
props: {
|
|
969
|
+
actions: null,
|
|
970
|
+
inverse: { type: Boolean, default: !1 },
|
|
971
|
+
layout: { default: "buttons-end" }
|
|
972
|
+
},
|
|
973
|
+
setup(o) {
|
|
974
|
+
const e = o, n = d(null), t = d(null), s = Gt(n, t, ne(e, "actions")), i = p(() => e.actions.slice().reverse()), c = (r) => {
|
|
975
|
+
const f = e.actions.length - 1;
|
|
976
|
+
return r === f ? "primary" : "secondary";
|
|
977
|
+
}, l = p(() => ({
|
|
978
|
+
[`b-button-actions--${e.layout}`]: !0,
|
|
979
|
+
"b-button-actions--stacked-buttons": s.value
|
|
980
|
+
}));
|
|
981
|
+
return { __sfc: !0, props: e, buttonActions: n, buttons: t, stackButtons: s, reversedActionsList: i, generateButtonVariantByIndex: c, conditionalClasses: l, generateButtonEvents: (r) => (r == null ? void 0 : r.event) !== void 0 ? {
|
|
982
|
+
click: r.event
|
|
983
|
+
} : {}, isIconOnly: (r) => r.iconOnly && (r.iconLeft || r.iconRight || r.icon), BentoButton: b, BentoLoadingButton: Se, BentoMenu: Ut };
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
var Yt = function() {
|
|
987
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
988
|
+
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
|
+
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() {
|
|
990
|
+
return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
991
|
+
}, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
|
|
992
|
+
return [e._v(" " + e._s(s.title) + " ")];
|
|
993
|
+
}, proxy: !0 }], null, !0) })] : [s.state ? n(t.BentoLoadingButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, state: s.state, variant: s.variant || t.generateButtonVariantByIndex(i) }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
|
|
994
|
+
return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
995
|
+
}, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
|
|
996
|
+
return [e._v(" " + e._s(s.title) + " ")];
|
|
997
|
+
}, proxy: !0 }], null, !0) }, t.generateButtonEvents(s))) : n(t.BentoButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, link: s.link, variant: s.variant || t.generateButtonVariantByIndex(i) }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
|
|
998
|
+
return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
999
|
+
}, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
|
|
1000
|
+
return [e._v(" " + e._s(s.title) + " ")];
|
|
1001
|
+
}, proxy: !0 }, s.iconRight ? { key: "iconRight", fn: function() {
|
|
1002
|
+
return [n(s.iconRight, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
1003
|
+
}, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(s)))]], 2);
|
|
1004
|
+
}), 0)]);
|
|
1005
|
+
}, Jt = [], qt = /* @__PURE__ */ C(
|
|
1006
|
+
Ht,
|
|
1007
|
+
Yt,
|
|
1008
|
+
Jt,
|
|
1009
|
+
!1,
|
|
1010
|
+
null,
|
|
1011
|
+
"82f686dc"
|
|
1012
|
+
);
|
|
1013
|
+
const Xt = qt.exports;
|
|
1014
|
+
export {
|
|
1015
|
+
Xt as B,
|
|
1016
|
+
ht as D,
|
|
1017
|
+
je as I,
|
|
1018
|
+
Nt as M,
|
|
1019
|
+
pt as O,
|
|
1020
|
+
Ye as P,
|
|
1021
|
+
tt as S,
|
|
1022
|
+
Se as a,
|
|
1023
|
+
I as b,
|
|
1024
|
+
Re as c,
|
|
1025
|
+
lt as d,
|
|
1026
|
+
Vt as e,
|
|
1027
|
+
Ut as f,
|
|
1028
|
+
O as g,
|
|
1029
|
+
Qe as h,
|
|
1030
|
+
nt as i,
|
|
1031
|
+
et as j,
|
|
1032
|
+
He as k,
|
|
1033
|
+
Ge as u
|
|
1034
|
+
};
|
|
1035
|
+
//# sourceMappingURL=button-actions.N3D-Bb_x.js.map
|