@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,337 @@
|
|
|
1
|
+
import { defineComponent as d, useSlots as p, onMounted as k, provide as h, toRef as z, toRefs as P, inject as B, ref as D, computed as a } from "vue";
|
|
2
|
+
import { u as m } from "./use-has-slot.C9lQZ6nz.js";
|
|
3
|
+
import { S as M, a as x } from "./summary-grid.keys.Xx-W5a2w.js";
|
|
4
|
+
import { G as R } from "./grid-layout.1aIiz2N_.js";
|
|
5
|
+
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { B as g } from "./typography.hlOAxsEn.js";
|
|
7
|
+
import { u as G } from "./index.B6WW_F-J.js";
|
|
8
|
+
import { B as w } from "./dashed-underline.CMdNukpN.js";
|
|
9
|
+
import { B as L } from "./info-icon.iKLaNff6.js";
|
|
10
|
+
import { B as E } from "./tag.7fp_M9Au.js";
|
|
11
|
+
import { C as N } from "./copy.DauzzgJV.js";
|
|
12
|
+
import "../assets/summary-grid.css";
|
|
13
|
+
const A = {}, F = /* @__PURE__ */ d({
|
|
14
|
+
...A,
|
|
15
|
+
__name: "summary-grid",
|
|
16
|
+
props: {
|
|
17
|
+
columnWidth: { default: null },
|
|
18
|
+
slashedZero: { type: Boolean, default: !1 }
|
|
19
|
+
},
|
|
20
|
+
setup(r) {
|
|
21
|
+
var u, s;
|
|
22
|
+
const e = r, o = p(), t = m(o);
|
|
23
|
+
let n = 1;
|
|
24
|
+
if (o) {
|
|
25
|
+
const _ = (s = (u = Object.keys(o)) == null ? void 0 : u.filter((c) => c.includes("cell-"))) == null ? void 0 : s.map((c) => {
|
|
26
|
+
var l;
|
|
27
|
+
return parseInt((l = c.split("-")) == null ? void 0 : l[1], 10);
|
|
28
|
+
});
|
|
29
|
+
n = Math.max(..._);
|
|
30
|
+
}
|
|
31
|
+
k(() => {
|
|
32
|
+
if (n > 3)
|
|
33
|
+
throw new Error(
|
|
34
|
+
"BentoSummaryGrid must only have a maximum of 3 rows. Read the documentation for more information."
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
const i = () => ({ isSummaryGridLayout: !0 });
|
|
38
|
+
return h(M, i), h(x, z(e, "slashedZero")), { __sfc: !0, props: e, slots: o, hasSlot: t, numberOfRows: n, registerComponentsInSummaryGrid: i, GridLayout: R };
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var U = function() {
|
|
42
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
43
|
+
return o("div", { staticClass: "b-summary-grid" }, e._l(t.numberOfRows, function(n) {
|
|
44
|
+
var i;
|
|
45
|
+
return o(t.GridLayout, { key: `summary-grid-row-${n}`, attrs: { "data-testid": `summary-grid-row-${n}`, "column-width": (i = e.columnWidth) == null ? void 0 : i[`row${n}`] }, scopedSlots: e._u([t.hasSlot(`cell-${n}-1`) ? { key: "col-1", fn: function() {
|
|
46
|
+
return [e._t(`cell-${n}-1`)];
|
|
47
|
+
}, proxy: !0 } : null, t.hasSlot(`cell-${n}-2`) ? { key: "col-2", fn: function() {
|
|
48
|
+
return [e._t(`cell-${n}-2`)];
|
|
49
|
+
}, proxy: !0 } : null, t.hasSlot(`cell-${n}-3`) ? { key: "col-3", fn: function() {
|
|
50
|
+
return [e._t(`cell-${n}-3`)];
|
|
51
|
+
}, proxy: !0 } : null, t.hasSlot(`cell-${n}-4`) ? { key: "col-4", fn: function() {
|
|
52
|
+
return [e._t(`cell-${n}-4`)];
|
|
53
|
+
}, proxy: !0 } : null, t.hasSlot(`cell-${n}-5`) ? { key: "col-5", fn: function() {
|
|
54
|
+
return [e._t(`cell-${n}-5`)];
|
|
55
|
+
}, proxy: !0 } : null, t.hasSlot(`cell-${n}-6`) ? { key: "col-6", fn: function() {
|
|
56
|
+
return [e._t(`cell-${n}-6`)];
|
|
57
|
+
}, proxy: !0 } : null], null, !0) });
|
|
58
|
+
}), 1);
|
|
59
|
+
}, O = [], V = /* @__PURE__ */ f(
|
|
60
|
+
F,
|
|
61
|
+
U,
|
|
62
|
+
O,
|
|
63
|
+
!1,
|
|
64
|
+
null,
|
|
65
|
+
"397e4d9c"
|
|
66
|
+
);
|
|
67
|
+
const Re = V.exports, Y = {}, Z = /* @__PURE__ */ d({
|
|
68
|
+
...Y,
|
|
69
|
+
__name: "summary-grid-item",
|
|
70
|
+
props: {
|
|
71
|
+
copy: { default: void 0 },
|
|
72
|
+
fitContent: { type: Boolean, default: !1 },
|
|
73
|
+
infoIconTooltipText: { default: null },
|
|
74
|
+
size: { default: "small" },
|
|
75
|
+
title: null,
|
|
76
|
+
trend: { default: null },
|
|
77
|
+
trendDirection: { default: "positive" },
|
|
78
|
+
secondaryTrend: { default: null },
|
|
79
|
+
secondaryTrendDirection: { default: "positive" },
|
|
80
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
81
|
+
underlineTooltipText: { default: null },
|
|
82
|
+
itemType: { default: "custom" }
|
|
83
|
+
},
|
|
84
|
+
emits: ["copy-click", "info-icon-mouseenter"],
|
|
85
|
+
setup(r) {
|
|
86
|
+
const e = r, { trendDirection: o, secondaryTrendDirection: t, itemType: n, size: i } = P(e), u = B(x, D(!1)), s = (I) => {
|
|
87
|
+
switch (I) {
|
|
88
|
+
case "positive":
|
|
89
|
+
return "green";
|
|
90
|
+
case "negative":
|
|
91
|
+
return "red";
|
|
92
|
+
default:
|
|
93
|
+
return "blue";
|
|
94
|
+
}
|
|
95
|
+
}, _ = a(() => s(o.value)), c = a(() => s(t.value)), l = a(() => i.value === "small" ? "body" : n.value !== "text" ? "title" : null), S = a(() => ({
|
|
96
|
+
medium: i.value === "large",
|
|
97
|
+
strongest: i.value === "small",
|
|
98
|
+
wide: i.value === "small",
|
|
99
|
+
variant: l.value
|
|
100
|
+
})), $ = a(() => e.fitContent ? { width: "fit-content" } : {}), b = a(() => ({ "b-summary-grid-item--slashed-zero": u.value })), v = p(), T = m(v), C = a(() => e.underlineTooltipText || T("dashed-underline"));
|
|
101
|
+
return { __sfc: !0, props: e, trendDirection: o, secondaryTrendDirection: t, itemType: n, size: i, hasSlashedZero: u, tagVariantColor: s, trendVariant: _, secondaryTrendVariant: c, typographyContentElement: l, typographyProps: S, computedStyles: $, conditionalClasses: b, slots: v, hasSlot: T, withUnderline: C, BentoDashedUnderline: w, BentoInfoIcon: L, BentoTypography: g, BentoTag: E, Copy: N };
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
var j = function() {
|
|
105
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
106
|
+
return o("div", { staticClass: "b-summary-grid-item", class: t.conditionalClasses, style: t.computedStyles }, [o("div", { staticClass: "b-summary-grid-item__header" }, [o(t.BentoTypography, { staticClass: "b-summary-grid-item__title", attrs: { el: "span", variant: "body" } }, [t.withUnderline ? o(t.BentoDashedUnderline, { attrs: { "tooltip-text": e.underlineTooltipText, "popover-size": e.underlinePopoverSize }, scopedSlots: e._u([t.hasSlot("dashed-underline") ? { key: "popover-content", fn: function() {
|
|
107
|
+
return [e._t("dashed-underline")];
|
|
108
|
+
}, proxy: !0 } : null], null, !0) }, [e._v(" " + e._s(e.title) + " ")]) : [e._v(" " + e._s(e.title) + " ")]], 2), o("div", { staticClass: "b-summary-grid-item__title-icons" }, [e.copy ? o(t.Copy, { staticClass: "b-structured-list__icon", attrs: { text: e.copy }, on: { click: function(n) {
|
|
109
|
+
return e.$emit("copy-click", n);
|
|
110
|
+
} } }) : e._e(), e.infoIconTooltipText ? o(t.BentoInfoIcon, { staticClass: "b-summary-grid-item__title-tooltip", attrs: { "tooltip-text": e.infoIconTooltipText, "tooltip-position": "top" }, on: { mouseenter: function(n) {
|
|
111
|
+
return e.$emit("info-icon-mouseenter", n);
|
|
112
|
+
} } }) : e._e()], 1)], 1), o(t.BentoTypography, e._b({ staticClass: "b-summary-grid-item__title", attrs: { "data-testid": "summary-grid-item-content-typography", el: "span" } }, "bento-typography", t.typographyProps, !1), [e._t("default"), e.trend && t.itemType !== "text" ? o(t.BentoTag, { staticClass: "b-summary-grid-item__content-trend", attrs: { variant: t.trendVariant, label: e.trend } }) : e._e()], 2), t.hasSlot("secondary") ? o(t.BentoTypography, { staticClass: "b-summary-grid-item__title", attrs: { "data-testid": "summary-grid-item-secondary-metric-typography", el: "span", variant: "caption", stronger: "" } }, [e._t("secondary"), e.secondaryTrend ? o(t.BentoTag, { staticClass: "b-summary-grid-item__content-trend", attrs: { variant: t.secondaryTrendVariant, label: e.secondaryTrend } }) : e._e()], 2) : e._e()], 1);
|
|
113
|
+
}, H = [], W = /* @__PURE__ */ f(
|
|
114
|
+
Z,
|
|
115
|
+
j,
|
|
116
|
+
H,
|
|
117
|
+
!1,
|
|
118
|
+
null,
|
|
119
|
+
"cc6736c0"
|
|
120
|
+
);
|
|
121
|
+
const y = W.exports, J = {}, K = /* @__PURE__ */ d({
|
|
122
|
+
...J,
|
|
123
|
+
__name: "summary-grid-item-amount",
|
|
124
|
+
props: {
|
|
125
|
+
copy: { default: void 0 },
|
|
126
|
+
fitContent: { type: Boolean, default: !1 },
|
|
127
|
+
infoIconTooltipText: { default: null },
|
|
128
|
+
size: { default: "small" },
|
|
129
|
+
title: null,
|
|
130
|
+
trend: { default: null },
|
|
131
|
+
trendDirection: { default: "positive" },
|
|
132
|
+
secondaryTrend: { default: null },
|
|
133
|
+
secondaryTrendDirection: { default: "positive" },
|
|
134
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
135
|
+
underlineTooltipText: { default: null },
|
|
136
|
+
label: null,
|
|
137
|
+
secondaryLabel: { default: null },
|
|
138
|
+
secondaryMetric: { default: null }
|
|
139
|
+
},
|
|
140
|
+
emits: ["copy-click", "info-icon-mouseenter"],
|
|
141
|
+
setup(r) {
|
|
142
|
+
const e = p(), o = m(e);
|
|
143
|
+
return { __sfc: !0, slots: e, hasSlot: o, BentoTypography: g, SummaryGridItem: y };
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
var q = function() {
|
|
147
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
148
|
+
return o(t.SummaryGridItem, { staticClass: "b-summary-grid-item-amount", attrs: { "item-type": "amount", "info-icon-tooltip-text": e.infoIconTooltipText, title: e.title, copy: e.copy, "fit-content": e.fitContent, size: e.size, trend: e.trend, "trend-direction": e.trendDirection, "secondary-trend": e.secondaryTrend, "secondary-trend-direction": e.secondaryTrendDirection, "underline-popover-size": e.underlinePopoverSize, "underline-tooltip-text": e.underlineTooltipText }, on: { "copy-click": function(n) {
|
|
149
|
+
return e.$emit("copy-click", n);
|
|
150
|
+
}, "info-icon-mouseenter": function(n) {
|
|
151
|
+
return e.$emit("info-icon-mouseenter", n);
|
|
152
|
+
} }, scopedSlots: e._u([t.hasSlot("dashed-underline") ? { key: "dashed-underline", fn: function() {
|
|
153
|
+
return [e._t("dashed-underline")];
|
|
154
|
+
}, proxy: !0 } : null, e.secondaryMetric ? { key: "secondary", fn: function() {
|
|
155
|
+
return [e._v(" " + e._s(e.secondaryMetric) + " ")];
|
|
156
|
+
}, proxy: !0 } : null], null, !0) }, [o("div", { staticClass: "b-summary-grid-item-amount__content" }, [o("div", [e._v(e._s(e.label))]), e.secondaryLabel ? o(t.BentoTypography, { staticClass: "b-summary-grid-item-amount__secondary-label", attrs: { variant: "caption" } }, [e._v(e._s(e.secondaryLabel))]) : e._e()], 1)]);
|
|
157
|
+
}, Q = [], X = /* @__PURE__ */ f(
|
|
158
|
+
K,
|
|
159
|
+
q,
|
|
160
|
+
Q,
|
|
161
|
+
!1,
|
|
162
|
+
null,
|
|
163
|
+
"c060d827"
|
|
164
|
+
);
|
|
165
|
+
const Ge = X.exports, ee = {}, te = /* @__PURE__ */ d({
|
|
166
|
+
...ee,
|
|
167
|
+
__name: "summary-grid-item-numeric",
|
|
168
|
+
props: {
|
|
169
|
+
copy: { default: void 0 },
|
|
170
|
+
fitContent: { type: Boolean, default: !1 },
|
|
171
|
+
infoIconTooltipText: { default: null },
|
|
172
|
+
size: { default: "small" },
|
|
173
|
+
title: null,
|
|
174
|
+
trend: { default: null },
|
|
175
|
+
trendDirection: { default: "positive" },
|
|
176
|
+
secondaryTrend: { default: null },
|
|
177
|
+
secondaryTrendDirection: { default: "positive" },
|
|
178
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
179
|
+
underlineTooltipText: { default: null },
|
|
180
|
+
label: null,
|
|
181
|
+
secondaryMetric: { default: null }
|
|
182
|
+
},
|
|
183
|
+
emits: ["copy-click", "info-icon-mouseenter"],
|
|
184
|
+
setup(r) {
|
|
185
|
+
const e = p(), o = m(e);
|
|
186
|
+
return { __sfc: !0, slots: e, hasSlot: o, SummaryGridItem: y };
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
var ne = function() {
|
|
190
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
191
|
+
return o(t.SummaryGridItem, { staticClass: "b-summary-grid-item-numeric", attrs: { "item-type": "numeric", "info-icon-tooltip-text": e.infoIconTooltipText, title: e.title, copy: e.copy, "fit-content": e.fitContent, size: e.size, trend: e.trend, "trend-direction": e.trendDirection, "secondary-trend": e.secondaryTrend, "secondary-trend-direction": e.secondaryTrendDirection, "underline-popover-size": e.underlinePopoverSize, "underline-tooltip-text": e.underlineTooltipText }, on: { "copy-click": function(n) {
|
|
192
|
+
return e.$emit("copy-click", n);
|
|
193
|
+
}, "info-icon-mouseenter": function(n) {
|
|
194
|
+
return e.$emit("info-icon-mouseenter", n);
|
|
195
|
+
} }, scopedSlots: e._u([t.hasSlot("dashed-underline") ? { key: "dashed-underline", fn: function() {
|
|
196
|
+
return [e._t("dashed-underline")];
|
|
197
|
+
}, proxy: !0 } : null, e.secondaryMetric ? { key: "secondary", fn: function() {
|
|
198
|
+
return [e._v(" " + e._s(e.secondaryMetric) + " ")];
|
|
199
|
+
}, proxy: !0 } : null], null, !0) }, [e._v(" " + e._s(e.label) + " ")]);
|
|
200
|
+
}, oe = [], re = /* @__PURE__ */ f(
|
|
201
|
+
te,
|
|
202
|
+
ne,
|
|
203
|
+
oe,
|
|
204
|
+
!1,
|
|
205
|
+
null,
|
|
206
|
+
null
|
|
207
|
+
);
|
|
208
|
+
const we = re.exports, ie = {
|
|
209
|
+
i18n: {}
|
|
210
|
+
}, le = /* @__PURE__ */ d({
|
|
211
|
+
...ie,
|
|
212
|
+
__name: "summary-grid-item-percentage",
|
|
213
|
+
props: {
|
|
214
|
+
copy: { default: void 0 },
|
|
215
|
+
fitContent: { type: Boolean, default: !1 },
|
|
216
|
+
infoIconTooltipText: { default: null },
|
|
217
|
+
size: { default: "small" },
|
|
218
|
+
title: null,
|
|
219
|
+
trend: { default: null },
|
|
220
|
+
trendDirection: { default: "positive" },
|
|
221
|
+
secondaryTrend: { default: null },
|
|
222
|
+
secondaryTrendDirection: { default: "positive" },
|
|
223
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
224
|
+
underlineTooltipText: { default: null },
|
|
225
|
+
label: null,
|
|
226
|
+
secondaryMetric: { default: null }
|
|
227
|
+
},
|
|
228
|
+
emits: ["copy-click", "info-icon-mouseenter"],
|
|
229
|
+
setup(r) {
|
|
230
|
+
const e = r, { locale: o } = G(), t = p(), n = m(t), i = {
|
|
231
|
+
style: "percent",
|
|
232
|
+
maximumFractionDigits: 2
|
|
233
|
+
}, u = (l) => l != null && l !== "" && !isNaN(Number(l)), s = (l) => l && u(l) ? new Intl.NumberFormat(o.value, i).format(Number(l) / 100) : l, _ = a(() => s(e.label)), c = a(() => s(e.secondaryMetric));
|
|
234
|
+
return { __sfc: !0, locale: o, props: e, slots: t, hasSlot: n, percentageArgs: i, isNumeric: u, convertToPercentIfNumber: s, computedLabelPercentage: _, computedSecondaryMetricPercentage: c, SummaryGridItem: y };
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
var se = function() {
|
|
238
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
239
|
+
return o(t.SummaryGridItem, { staticClass: "b-summary-grid-item-percentage", attrs: { "item-type": "percentage", "info-icon-tooltip-text": e.infoIconTooltipText, title: e.title, copy: e.copy, "fit-content": e.fitContent, size: e.size, trend: e.trend, "trend-direction": e.trendDirection, "secondary-trend": e.secondaryTrend, "secondary-trend-direction": e.secondaryTrendDirection, "underline-popover-size": e.underlinePopoverSize, "underline-tooltip-text": e.underlineTooltipText }, on: { "copy-click": function(n) {
|
|
240
|
+
return e.$emit("copy-click", n);
|
|
241
|
+
}, "info-icon-mouseenter": function(n) {
|
|
242
|
+
return e.$emit("info-icon-mouseenter", n);
|
|
243
|
+
} }, scopedSlots: e._u([t.hasSlot("dashed-underline") ? { key: "dashed-underline", fn: function() {
|
|
244
|
+
return [e._t("dashed-underline")];
|
|
245
|
+
}, proxy: !0 } : null, e.secondaryMetric ? { key: "secondary", fn: function() {
|
|
246
|
+
return [e._v(" " + e._s(t.computedSecondaryMetricPercentage) + " ")];
|
|
247
|
+
}, proxy: !0 } : null], null, !0) }, [e._v(" " + e._s(t.computedLabelPercentage) + " ")]);
|
|
248
|
+
}, ae = [], ue = /* @__PURE__ */ f(
|
|
249
|
+
le,
|
|
250
|
+
se,
|
|
251
|
+
ae,
|
|
252
|
+
!1,
|
|
253
|
+
null,
|
|
254
|
+
null
|
|
255
|
+
);
|
|
256
|
+
const Le = ue.exports, ce = {}, de = /* @__PURE__ */ d({
|
|
257
|
+
...ce,
|
|
258
|
+
__name: "summary-grid-item-text",
|
|
259
|
+
props: {
|
|
260
|
+
copy: { default: void 0 },
|
|
261
|
+
fitContent: { type: Boolean, default: !1 },
|
|
262
|
+
infoIconTooltipText: { default: null },
|
|
263
|
+
label: null,
|
|
264
|
+
title: null,
|
|
265
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
266
|
+
underlineTooltipText: { default: null }
|
|
267
|
+
},
|
|
268
|
+
emits: ["copy-click", "info-icon-mouseenter"],
|
|
269
|
+
setup(r) {
|
|
270
|
+
const e = p(), o = m(e);
|
|
271
|
+
return { __sfc: !0, slots: e, hasSlot: o, SummaryGridItem: y };
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
var pe = function() {
|
|
275
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
276
|
+
return o(t.SummaryGridItem, { staticClass: "b-summary-grid-item-text", attrs: { "item-type": "text", "info-icon-tooltip-text": e.infoIconTooltipText, title: e.title, copy: e.copy, "fit-content": e.fitContent, "underline-popover-size": e.underlinePopoverSize, "underline-tooltip-text": e.underlineTooltipText }, on: { "copy-click": function(n) {
|
|
277
|
+
return e.$emit("copy-click", n);
|
|
278
|
+
}, "info-icon-mouseenter": function(n) {
|
|
279
|
+
return e.$emit("info-icon-mouseenter", n);
|
|
280
|
+
} }, scopedSlots: e._u([t.hasSlot("dashed-underline") ? { key: "dashed-underline", fn: function() {
|
|
281
|
+
return [e._t("dashed-underline")];
|
|
282
|
+
}, proxy: !0 } : null], null, !0) }, [e._v(" " + e._s(e.label) + " ")]);
|
|
283
|
+
}, me = [], fe = /* @__PURE__ */ f(
|
|
284
|
+
de,
|
|
285
|
+
pe,
|
|
286
|
+
me,
|
|
287
|
+
!1,
|
|
288
|
+
null,
|
|
289
|
+
null
|
|
290
|
+
);
|
|
291
|
+
const Ee = fe.exports, _e = {}, ye = /* @__PURE__ */ d({
|
|
292
|
+
..._e,
|
|
293
|
+
__name: "summary-grid-item-custom",
|
|
294
|
+
props: {
|
|
295
|
+
copy: { default: void 0 },
|
|
296
|
+
infoIconTooltipText: { default: null },
|
|
297
|
+
title: null,
|
|
298
|
+
fitContent: { type: Boolean, default: !1 },
|
|
299
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
300
|
+
underlineTooltipText: { default: null }
|
|
301
|
+
},
|
|
302
|
+
emits: ["copy-click", "info-icon-mouseenter"],
|
|
303
|
+
setup(r) {
|
|
304
|
+
const e = p(), o = m(e);
|
|
305
|
+
return { __sfc: !0, slots: e, hasSlot: o, SummaryGridItem: y };
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
var ve = function() {
|
|
309
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
310
|
+
return o(t.SummaryGridItem, { attrs: { title: e.title, "info-icon-tooltip-text": e.infoIconTooltipText, copy: e.copy, "fit-content": e.fitContent, "underline-popover-size": e.underlinePopoverSize, "underline-tooltip-text": e.underlineTooltipText }, on: { "copy-click": function(n) {
|
|
311
|
+
return e.$emit("copy-click", n);
|
|
312
|
+
}, "info-icon-mouseenter": function(n) {
|
|
313
|
+
return e.$emit("info-icon-mouseenter", n);
|
|
314
|
+
} }, scopedSlots: e._u([t.hasSlot("dashed-underline") ? { key: "dashed-underline", fn: function() {
|
|
315
|
+
return [e._t("dashed-underline")];
|
|
316
|
+
}, proxy: !0 } : null], null, !0) }, [e._t("default")], 2);
|
|
317
|
+
}, Te = [], he = /* @__PURE__ */ f(
|
|
318
|
+
ye,
|
|
319
|
+
ve,
|
|
320
|
+
Te,
|
|
321
|
+
!1,
|
|
322
|
+
null,
|
|
323
|
+
null
|
|
324
|
+
);
|
|
325
|
+
const Ne = he.exports;
|
|
326
|
+
var xe = /* @__PURE__ */ ((r) => (r.SMALL = "small", r.MEDIUM = "medium", r.LARGE = "large", r))(xe || {}), ge = /* @__PURE__ */ ((r) => (r.POSITIVE = "positive", r.NEGATIVE = "negative", r.NEUTRAL = "neutral", r))(ge || {});
|
|
327
|
+
export {
|
|
328
|
+
xe as B,
|
|
329
|
+
Ge as a,
|
|
330
|
+
we as b,
|
|
331
|
+
Le as c,
|
|
332
|
+
Ee as d,
|
|
333
|
+
Ne as e,
|
|
334
|
+
ge as f,
|
|
335
|
+
Re as s
|
|
336
|
+
};
|
|
337
|
+
//# sourceMappingURL=summary-grid.types.B0w2S_9r.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary-grid.types.B0w2S_9r.js","sources":["../../src/components/summary-grid/summary-grid.vue","../../src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue","../../src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue","../../src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue","../../src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue","../../src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue","../../src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue","../../src/components/summary-grid/summary-grid.types.ts"],"sourcesContent":["<template>\n <div class=\"b-summary-grid\">\n <grid-layout\n v-for=\"index in numberOfRows\"\n :key=\"`summary-grid-row-${index}`\"\n :data-testid=\"`summary-grid-row-${index}`\"\n :column-width=\"columnWidth?.[`row${index}`]\"\n >\n <template v-if=\"hasSlot(`cell-${index}-1`)\" #col-1>\n <slot :name=\"`cell-${index}-1`\" />\n </template>\n <template v-if=\"hasSlot(`cell-${index}-2`)\" #col-2>\n <slot :name=\"`cell-${index}-2`\" />\n </template>\n <template v-if=\"hasSlot(`cell-${index}-3`)\" #col-3>\n <slot :name=\"`cell-${index}-3`\" />\n </template>\n <template v-if=\"hasSlot(`cell-${index}-4`)\" #col-4>\n <slot :name=\"`cell-${index}-4`\" />\n </template>\n <template v-if=\"hasSlot(`cell-${index}-5`)\" #col-5>\n <slot :name=\"`cell-${index}-5`\" />\n </template>\n <template v-if=\"hasSlot(`cell-${index}-6`)\" #col-6>\n <slot :name=\"`cell-${index}-6`\" />\n </template>\n </grid-layout>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, provide, toRef, useSlots } from 'vue';\n import type { BentoSummaryGridLayout, BentoSummaryGridProps } from './summary-grid.types';\n import { GridLayout } from '@/components/internal';\n import { useHasSlot } from '@/composables';\n import {\n SUMMARY_GRID_LAYOUT_INJECTION_KEY,\n SUMMARY_GRID_SLASHED_ZERO,\n } from '@/components/summary-grid/summary-grid.keys';\n\n const props = defineProps({\n columnWidth: { default: null },\n slashedZero: { type: Boolean, default: false }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n let numberOfRows = 1;\n if (slots) {\n const slotRows = Object.keys(slots)\n ?.filter(slotName => slotName.includes('cell-'))\n ?.map(slotName => parseInt(slotName.split('-')?.[1], 10));\n numberOfRows = Math.max(...slotRows);\n }\n\n onMounted(() => {\n if (numberOfRows > 3) {\n throw new Error(\n 'BentoSummaryGrid must only have a maximum of 3 rows. Read the documentation for more information.'\n );\n }\n });\n\n const registerComponentsInSummaryGrid: BentoSummaryGridLayout = () => {\n const isSummaryGridLayout = true;\n return { isSummaryGridLayout };\n };\n\n provide(SUMMARY_GRID_LAYOUT_INJECTION_KEY, registerComponentsInSummaryGrid);\n provide(SUMMARY_GRID_SLASHED_ZERO, toRef(props, 'slashedZero'));\n</script>\n\n<script lang=\"ts\">\n /**\n * A summary grid component that displays a collection items.\n *\n * @example\n * import { BentoSummaryGrid, BentoSummaryGridItemAmount } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSummaryGrid, BentoSummaryGridItemAmount },\n * template: `\n * <bento-summary-grid>\n * <template #cell-2-2>\n * <bento-summary-grid-item-amount\n * title=\"Text Item\"\n * label=\"14\"\n * info-icon-tooltip-text=\"text for icon\"\n * copy=\"copy this to clipboard\"\n * />\n * </template>\n * </bento-summary-grid>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./summary-grid.scss\" />\n","<template>\n <div class=\"b-summary-grid-item\" :class=\"conditionalClasses\" :style=\"computedStyles\">\n <div class=\"b-summary-grid-item__header\">\n <bento-typography class=\"b-summary-grid-item__title\" el=\"span\" variant=\"body\">\n <bento-dashed-underline\n v-if=\"withUnderline\"\n :tooltip-text=\"underlineTooltipText\"\n :popover-size=\"underlinePopoverSize\"\n >\n {{ title }}\n <template v-if=\"hasSlot('dashed-underline')\" #popover-content>\n <slot name=\"dashed-underline\"></slot>\n </template>\n </bento-dashed-underline>\n <template v-else>\n {{ title }}\n </template>\n </bento-typography>\n <div class=\"b-summary-grid-item__title-icons\">\n <copy v-if=\"copy\" class=\"b-structured-list__icon\" :text=\"copy\" @click=\"$emit('copy-click', $event)\" />\n\n <bento-info-icon\n v-if=\"infoIconTooltipText\"\n :tooltip-text=\"infoIconTooltipText\"\n tooltip-position=\"top\"\n class=\"b-summary-grid-item__title-tooltip\"\n @mouseenter=\"$emit('info-icon-mouseenter', $event)\"\n />\n </div>\n </div>\n <bento-typography\n data-testid=\"summary-grid-item-content-typography\"\n class=\"b-summary-grid-item__title\"\n v-bind=\"typographyProps\"\n el=\"span\"\n >\n <slot />\n <bento-tag\n v-if=\"trend && itemType !== 'text'\"\n :variant=\"trendVariant\"\n :label=\"trend\"\n class=\"b-summary-grid-item__content-trend\"\n />\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('secondary')\"\n class=\"b-summary-grid-item__title\"\n data-testid=\"summary-grid-item-secondary-metric-typography\"\n el=\"span\"\n variant=\"caption\"\n stronger\n >\n <slot name=\"secondary\" />\n <bento-tag\n v-if=\"secondaryTrend\"\n :variant=\"secondaryTrendVariant\"\n :label=\"secondaryTrend\"\n class=\"b-summary-grid-item__content-trend\"\n />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref, toRefs, useSlots } from 'vue';\n\n // Components\n import { BentoDashedUnderline } from '@/components/dashed-underline';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography, type BentoTypographyVariant } from '@/components/typography';\n import { BentoTag, type BentoTagVariant } from '@/components/tag';\n import { Copy } from '@/internal';\n\n // Utils\n import { useHasSlot } from '@/composables';\n\n // Types\n import { SUMMARY_GRID_SLASHED_ZERO } from '@/components/summary-grid/summary-grid.keys';\n import type { BentoSummaryGridItemTrendDirection } from '@/components/summary-grid/summary-grid.types';\n import type { BentoSummaryGridItemProps } from './summary-grid-item.types';\n\n defineEmits([\"copy-click\", \"info-icon-mouseenter\"]);\n\n const props = defineProps({\n copy: { default: undefined },\n fitContent: { type: Boolean, default: false },\n infoIconTooltipText: { default: null },\n size: { default: 'small' },\n title: null,\n trend: { default: null },\n trendDirection: { default: 'positive' },\n secondaryTrend: { default: null },\n secondaryTrendDirection: { default: 'positive' },\n underlinePopoverSize: { default: 'fit-content' },\n underlineTooltipText: { default: null },\n itemType: { default: 'custom' }\n});\n\n const { trendDirection, secondaryTrendDirection, itemType, size } = toRefs(props);\n const hasSlashedZero = inject(SUMMARY_GRID_SLASHED_ZERO, ref(false));\n\n const tagVariantColor = (direction: `${BentoSummaryGridItemTrendDirection}`): `${BentoTagVariant}` => {\n switch (direction) {\n case 'positive':\n return 'green';\n case 'negative':\n return 'red';\n default:\n return 'blue';\n }\n };\n\n // TODO implement plus or minus symbol logic\n const trendVariant = computed(() => tagVariantColor(trendDirection.value));\n const secondaryTrendVariant = computed(() => tagVariantColor(secondaryTrendDirection.value));\n\n const typographyContentElement = computed<`${BentoTypographyVariant}`>(() => {\n if (size.value === 'small') {\n return 'body';\n }\n if (itemType.value !== 'text') {\n return 'title';\n }\n\n return null;\n });\n\n const typographyProps = computed(() => ({\n medium: size.value === 'large',\n strongest: size.value === 'small',\n wide: size.value === 'small',\n variant: typographyContentElement.value,\n }));\n\n const computedStyles = computed(() => (props.fitContent ? { width: 'fit-content' } : {}));\n\n const conditionalClasses = computed(() => ({ 'b-summary-grid-item--slashed-zero': hasSlashedZero.value }));\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const withUnderline = computed(() => props.underlineTooltipText || hasSlot('dashed-underline'));\n</script>\n\n<script lang=\"ts\">\n /**\n * A summary bar item is a piece of information to be displayed in `bento-summary-bar` component\n *\n * @example\n * import { SummaryBarItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { SummaryBarItem },\n * template: `\n * <summary-grid-item :title=\"textVariable\">\n * Content of the item\n * </summary-grid-item>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./summary-grid-item.scss\" />\n","<template>\n <summary-grid-item\n item-type=\"amount\"\n :info-icon-tooltip-text=\"infoIconTooltipText\"\n :title=\"title\"\n :copy=\"copy\"\n :fit-content=\"fitContent\"\n :size=\"size\"\n :trend=\"trend\"\n :trend-direction=\"trendDirection\"\n :secondary-trend=\"secondaryTrend\"\n :secondary-trend-direction=\"secondaryTrendDirection\"\n :underline-popover-size=\"underlinePopoverSize\"\n :underline-tooltip-text=\"underlineTooltipText\"\n class=\"b-summary-grid-item-amount\"\n @copy-click=\"$emit('copy-click', $event)\"\n @info-icon-mouseenter=\"$emit('info-icon-mouseenter', $event)\"\n >\n <template v-if=\"hasSlot('dashed-underline')\" #dashed-underline>\n <slot name=\"dashed-underline\" />\n </template>\n <div class=\"b-summary-grid-item-amount__content\">\n <div>{{ label }}</div>\n <bento-typography\n v-if=\"secondaryLabel\"\n variant=\"caption\"\n class=\"b-summary-grid-item-amount__secondary-label\"\n >{{ secondaryLabel }}</bento-typography\n >\n </div>\n <template v-if=\"secondaryMetric\" #secondary>\n {{ secondaryMetric }}\n </template>\n </summary-grid-item>\n</template>\n\n<script setup lang=\"ts\">\n import { useSlots } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { SummaryGridItem } from '../summary-grid-item';\n import { useHasSlot } from '@/composables';\n import type { BentoSummaryGridItemAmountProps } from './summary-grid-item-amount.types';\n\n defineEmits([\"copy-click\", \"info-icon-mouseenter\"]);\n\n defineProps({\n copy: { default: undefined },\n fitContent: { type: Boolean, default: false },\n infoIconTooltipText: { default: null },\n size: { default: 'small' },\n title: null,\n trend: { default: null },\n trendDirection: { default: 'positive' },\n secondaryTrend: { default: null },\n secondaryTrendDirection: { default: 'positive' },\n underlinePopoverSize: { default: 'fit-content' },\n underlineTooltipText: { default: null },\n label: null,\n secondaryLabel: { default: null },\n secondaryMetric: { default: null }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Summary grid item component used to display financial data, such as currency values and monetary amounts\n *\n * @example\n * import { BentoSummaryGridItemAmount } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSummaryGridItemAmount },\n * template: `\n * <bento-summary-grid-item-amount\n * title=\"Your title\"\n * label=\"200.00 EUR\"\n * secondary-label=\"/ day\"\n * info-icon-tooltip-text=\"Your tooltip text here will be toggled by the info icon\"\n * trend=\"+12%\"\n * trend-direction=\"neutral\"\n * size=\"medium\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./summary-grid-item-amount.scss\" />\n","<template>\n <summary-grid-item\n item-type=\"numeric\"\n :info-icon-tooltip-text=\"infoIconTooltipText\"\n :title=\"title\"\n :copy=\"copy\"\n :fit-content=\"fitContent\"\n :size=\"size\"\n :trend=\"trend\"\n :trend-direction=\"trendDirection\"\n :secondary-trend=\"secondaryTrend\"\n :secondary-trend-direction=\"secondaryTrendDirection\"\n :underline-popover-size=\"underlinePopoverSize\"\n :underline-tooltip-text=\"underlineTooltipText\"\n class=\"b-summary-grid-item-numeric\"\n @copy-click=\"$emit('copy-click', $event)\"\n @info-icon-mouseenter=\"$emit('info-icon-mouseenter', $event)\"\n >\n <template v-if=\"hasSlot('dashed-underline')\" #dashed-underline>\n <slot name=\"dashed-underline\" />\n </template>\n {{ label }}\n <template v-if=\"secondaryMetric\" #secondary>\n {{ secondaryMetric }}\n </template>\n </summary-grid-item>\n</template>\n\n<script setup lang=\"ts\">\n import { useSlots } from 'vue';\n import { SummaryGridItem } from '../summary-grid-item';\n import { useHasSlot } from '@/composables';\n import type { BentoSummaryGridItemNumericProps } from './summary-grid-item-numeric.types';\n\n defineEmits([\"copy-click\", \"info-icon-mouseenter\"]);\n\n defineProps({\n copy: { default: undefined },\n fitContent: { type: Boolean, default: false },\n infoIconTooltipText: { default: null },\n size: { default: 'small' },\n title: null,\n trend: { default: null },\n trendDirection: { default: 'positive' },\n secondaryTrend: { default: null },\n secondaryTrendDirection: { default: 'positive' },\n underlinePopoverSize: { default: 'fit-content' },\n underlineTooltipText: { default: null },\n label: null,\n secondaryMetric: { default: null }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Summary grid item component used to display any numeric information\n *\n * @example\n * import { BentoSummaryGridItemNumeric } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSummaryGridItemNumeric },\n * template: `\n * <bento-summary-grid-item-numeric\n * title=\"Your title\"\n * label=\"123\"\n * info-icon-tooltip-text=\"Your tooltip text here will be toggled by the info icon\"\n * trend=\"+12%\"\n * trend-direction=\"neutral\"\n * size=\"medium\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n","<template>\n <summary-grid-item\n item-type=\"percentage\"\n :info-icon-tooltip-text=\"infoIconTooltipText\"\n :title=\"title\"\n :copy=\"copy\"\n :fit-content=\"fitContent\"\n :size=\"size\"\n :trend=\"trend\"\n :trend-direction=\"trendDirection\"\n :secondary-trend=\"secondaryTrend\"\n :secondary-trend-direction=\"secondaryTrendDirection\"\n :underline-popover-size=\"underlinePopoverSize\"\n :underline-tooltip-text=\"underlineTooltipText\"\n class=\"b-summary-grid-item-percentage\"\n @copy-click=\"$emit('copy-click', $event)\"\n @info-icon-mouseenter=\"$emit('info-icon-mouseenter', $event)\"\n >\n <template v-if=\"hasSlot('dashed-underline')\" #dashed-underline>\n <slot name=\"dashed-underline\" />\n </template>\n {{ computedLabelPercentage }}\n <template v-if=\"secondaryMetric\" #secondary> {{ computedSecondaryMetricPercentage }} </template>\n </summary-grid-item>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { SummaryGridItem } from '../summary-grid-item';\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoSummaryGridItemPercentageProps } from './summary-grid-item-percentage.types';\n import type { NumberFormatOptions } from 'vue-i18n';\n\n const { locale } = useI18n();\n\n defineEmits([\"copy-click\", \"info-icon-mouseenter\"]);\n\n const props = defineProps({\n copy: { default: undefined },\n fitContent: { type: Boolean, default: false },\n infoIconTooltipText: { default: null },\n size: { default: 'small' },\n title: null,\n trend: { default: null },\n trendDirection: { default: 'positive' },\n secondaryTrend: { default: null },\n secondaryTrendDirection: { default: 'positive' },\n underlinePopoverSize: { default: 'fit-content' },\n underlineTooltipText: { default: null },\n label: null,\n secondaryMetric: { default: null }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const percentageArgs: NumberFormatOptions = {\n style: 'percent',\n maximumFractionDigits: 2,\n };\n\n const isNumeric = (value: string | number) => value != null && value !== '' && !isNaN(Number(value));\n const convertToPercentIfNumber = (value: string | number) => {\n if (value && isNumeric(value)) {\n return new Intl.NumberFormat(locale.value, percentageArgs).format(Number(value) / 100);\n }\n return value;\n };\n\n const computedLabelPercentage = computed(() => convertToPercentIfNumber(props.label));\n const computedSecondaryMetricPercentage = computed(() => convertToPercentIfNumber(props.secondaryMetric));\n</script>\n\n<script lang=\"ts\">\n /**\n * Summary grid item component used to display any percentage information\n *\n * @example\n * import { BentoSummaryGridItemPercentage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSummaryGridItemPercentage },\n * template: `\n * <bento-summary-grid-item-percentage\n * title=\"Your title\"\n * label=\"123\"\n * info-icon-tooltip-text=\"Your tooltip text here will be toggled by the info icon\"\n * trend=\"+12%\"\n * trend-direction=\"neutral\"\n * size=\"medium\"\n * />\n * `\n * }\n */\n export default {\n i18n: {},\n };\n</script>\n","<template>\n <summary-grid-item\n item-type=\"text\"\n :info-icon-tooltip-text=\"infoIconTooltipText\"\n :title=\"title\"\n :copy=\"copy\"\n :fit-content=\"fitContent\"\n :underline-popover-size=\"underlinePopoverSize\"\n :underline-tooltip-text=\"underlineTooltipText\"\n class=\"b-summary-grid-item-text\"\n @copy-click=\"$emit('copy-click', $event)\"\n @info-icon-mouseenter=\"$emit('info-icon-mouseenter', $event)\"\n >\n <template v-if=\"hasSlot('dashed-underline')\" #dashed-underline>\n <slot name=\"dashed-underline\" />\n </template>\n {{ label }}\n </summary-grid-item>\n</template>\n\n<script setup lang=\"ts\">\n import { useSlots } from 'vue';\n import { SummaryGridItem } from '../summary-grid-item';\n import { useHasSlot } from '@/composables';\n\n import type { BentoSummaryGridItemTextProps } from './summary-grid-item-text.types';\n\n defineEmits([\"copy-click\", \"info-icon-mouseenter\"]);\n\n defineProps({\n copy: { default: undefined },\n fitContent: { type: Boolean, default: false },\n infoIconTooltipText: { default: null },\n label: null,\n title: null,\n underlinePopoverSize: { default: 'fit-content' },\n underlineTooltipText: { default: null }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Summary grid item component used to display text only. Can be used for references, IDs or any other text data.\n *\n * @example\n * import { BentoSummaryGridItemText } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSummaryGridItemText },\n * template: `\n * <bento-summary-grid-item-text\n * title=\"Your title\"\n * label=\"Your text here\"\n * info-icon-tooltip-text=\"Your tooltip text here will be toggled by the info icon\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n","<template>\n <summary-grid-item\n :title=\"title\"\n :info-icon-tooltip-text=\"infoIconTooltipText\"\n :copy=\"copy\"\n :fit-content=\"fitContent\"\n :underline-popover-size=\"underlinePopoverSize\"\n :underline-tooltip-text=\"underlineTooltipText\"\n @copy-click=\"$emit('copy-click', $event)\"\n @info-icon-mouseenter=\"$emit('info-icon-mouseenter', $event)\"\n >\n <template v-if=\"hasSlot('dashed-underline')\" #dashed-underline>\n <slot name=\"dashed-underline\" />\n </template>\n <slot />\n </summary-grid-item>\n</template>\n\n<script setup lang=\"ts\">\n import { useSlots } from 'vue';\n import { SummaryGridItem } from '../summary-grid-item';\n import { useHasSlot } from '@/composables';\n import type { BentoSummaryGridItemCustomProps } from './summary-grid-item-custom.types';\n\n defineEmits([\"copy-click\", \"info-icon-mouseenter\"]);\n\n defineProps({\n copy: { default: undefined },\n infoIconTooltipText: { default: null },\n title: null,\n fitContent: { type: Boolean, default: false },\n underlinePopoverSize: { default: 'fit-content' },\n underlineTooltipText: { default: null }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * A summary bar item is a piece of information to be displayed in `bento-summary-bar` component\n *\n * @example\n * import { SummaryBarItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { SummaryBarItem },\n * template: `\n * <summary-grid-item :title=\"textVariable\">\n * Content of the item\n * </summary-grid-item>\n * `\n * }\n */\n export default {};\n</script>\n","import { type GridLayoutColumnWidths } from '@/components/internal/grid-layout/grid-layout.types';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoSummaryGridItemSize {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoSummaryGridItemTrendDirection {\n POSITIVE = 'positive',\n NEGATIVE = 'negative',\n NEUTRAL = 'neutral',\n}\n\nexport interface BentoSummaryGridColumnWidth {\n row1: GridLayoutColumnWidths;\n row2?: GridLayoutColumnWidths;\n row3?: GridLayoutColumnWidths;\n}\n\nexport type BentoSummaryGridLayout = () => {\n isSummaryGridLayout: boolean;\n};\n\nexport interface BentoSummaryGridProps {\n /**\n * Sets the responsive columns widths values for 1 of the 3 rows.\n */\n columnWidth?: BentoSummaryGridColumnWidth;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n}\n"],"names":["__default__$6","slots","useSlots","hasSlot","useHasSlot","numberOfRows","slotRows","_b","_a","slotName","onMounted","registerComponentsInSummaryGrid","provide","SUMMARY_GRID_LAYOUT_INJECTION_KEY","SUMMARY_GRID_SLASHED_ZERO","toRef","props","__default__$5","trendDirection","secondaryTrendDirection","itemType","size","toRefs","hasSlashedZero","inject","ref","tagVariantColor","direction","trendVariant","computed","secondaryTrendVariant","typographyContentElement","typographyProps","computedStyles","conditionalClasses","withUnderline","__default__$4","__default__$3","__default__$2","locale","useI18n","percentageArgs","isNumeric","value","convertToPercentIfNumber","computedLabelPercentage","computedSecondaryMetricPercentage","__default__$1","__default__","BentoSummaryGridItemSize","BentoSummaryGridItemSize2","BentoSummaryGridItemTrendDirection","BentoSummaryGridItemTrendDirection2"],"mappings":";;;;;;;;;;;;AAgGI,MAAAA,IAAA,CAAA;;;;;;;;;iBAnDAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;AAEA,QAAAI,IAAA;AACA,QAAAJ,GAAA;AACI,YAAAK,KAAAC,KAAAC,IAAA,OAAA,KAAAP,CAAA,MAAA,gBAAAO,EAAA,OAAA,CAAAC,MAAAA,EAAA,SAAA,OAAA,OAAA,gBAAAF,EAAA,IAAA,CAAAE,MAAA;;AAAA,yBAAAD,IAAAC,EAAA,MAAA,GAAA,MAAA,gBAAAD,EAAA,IAAA,EAAA;AAAA;AAGA,MAAAH,IAAA,KAAA,IAAA,GAAAC,CAAA;AAAA,IAAmC;AAGvC,IAAAI,EAAA,MAAA;AACI,UAAAL,IAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAAA,IAER,CAAA;AAGJ,UAAAM,IAAA,OAEI,EAAA,wBAAA;AAGJ,WAAAC,EAAAC,GAAAF,CAAA,GACAC,EAAAE,GAAAC,EAAAC,GAAA,aAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBCyFAC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;iBA7DA,EAAA,gBAAAC,GAAA,yBAAAC,GAAA,UAAAC,GAAA,MAAAC,EAAA,IAAAC,EAAAN,CAAA,GACAO,IAAAC,EAAAV,GAAAW,EAAA,EAAA,CAAA,GAEAC,IAAA,CAAAC,MAAA;AACI,cAAAA,GAAA;AAAA,QAAmB,KAAA;AAEX,iBAAA;AAAA,QAAO,KAAA;AAEP,iBAAA;AAAA,QAAO;AAEP,iBAAA;AAAA,MAAO;AAAA,IACf,GAIJC,IAAAC,EAAA,MAAAH,EAAAR,EAAA,KAAA,CAAA,GACAY,IAAAD,EAAA,MAAAH,EAAAP,EAAA,KAAA,CAAA,GAEAY,IAAAF,EAAA,MACIR,EAAA,UAAA,UACI,SAEJD,EAAA,UAAA,SACI,UAGJ,IAAO,GAGXY,IAAAH,EAAA,OAAA;AAAA,MAAwC,QAAAR,EAAA,UAAA;AAAA,MACb,WAAAA,EAAA,UAAA;AAAA,MACG,MAAAA,EAAA,UAAA;AAAA,MACL,SAAAU,EAAA;AAAA,IACa,EAAA,GAGtCE,IAAAJ,EAAA,MAAAb,EAAA,aAAA,EAAA,OAAA,cAAA,IAAA,CAAA,CAAA,GAEAkB,IAAAL,EAAA,OAAA,EAAA,qCAAAN,EAAA,MAAA,EAAA,GAEAtB,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACAkC,IAAAN,EAAA,MAAAb,EAAA,wBAAAb,EAAA,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;qBCpDAiC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;AA1BA,UAAAnC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;;;sBCcAoC,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAzBA,UAAApC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;;;uBC0CAqC,KAAA;AAAA,EAAe,MAAA,CAAA;AAEf;;;;;;;;;;;;;;;;;;;;iBA/DA,EAAA,QAAAC,EAAA,IAAAC,EAAA,GAoBAvC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAwC,IAAA;AAAA,MAA4C,OAAA;AAAA,MACjC,uBAAA;AAAA,IACgB,GAG3BC,IAAA,CAAAC,MAAAA,KAAA,QAAAA,MAAA,MAAA,CAAA,MAAA,OAAAA,CAAA,CAAA,GACAC,IAAA,CAAAD,MACIA,KAAAD,EAAAC,CAAA,IACI,IAAA,KAAA,aAAAJ,EAAA,OAAAE,CAAA,EAAA,OAAA,OAAAE,CAAA,IAAA,GAAA,IAEJA,GAGJE,IAAAhB,EAAA,MAAAe,EAAA5B,EAAA,KAAA,CAAA,GACA8B,IAAAjB,EAAA,MAAAe,EAAA5B,EAAA,eAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;uBCVA+B,KAAA,CAAA;;;;;;;;;;;;;;AAtBA,UAAA9C,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;uBCeA+C,KAAA,CAAA;;;;;;;;;;;;;AApBA,UAAA/C,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;;AC/BQ,IAAAgD,KAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SAHQA,IAAAD,MAAA,CAAA,CAAA,GASAE,KAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,UAAA,WAHQA,IAAAD,MAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { defineComponent as A, ref as v, provide as w, watch as g, nextTick as k, computed as f, unref as W, onUnmounted as N, toRefs as X, inject as E } from "vue";
|
|
2
|
+
import { B as Y } from "./typography.hlOAxsEn.js";
|
|
3
|
+
import { g as $ } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
+
import { T as B, a as O, E as j } from "./tabs.keys.B4qGhjp2.js";
|
|
5
|
+
import { F as G } from "./fixed-scroller.CgVOf5VE.js";
|
|
6
|
+
import { n as R } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
+
import "../assets/tab.css";
|
|
8
|
+
const S = (s, t) => {
|
|
9
|
+
const e = s === 0 ? t.length - 1 : s - 1, n = t[e];
|
|
10
|
+
return n.disabled || n.hidden ? S(e, t) : e;
|
|
11
|
+
}, D = (s, t) => {
|
|
12
|
+
const e = s === t.length - 1 ? 0 : s + 1, n = t[e];
|
|
13
|
+
return n.disabled || n.hidden ? D(e, t) : e;
|
|
14
|
+
};
|
|
15
|
+
var C = /* @__PURE__ */ ((s) => (s.ACTIVE_TAB_INDEX = "update:active-tab-index", s))(C || {});
|
|
16
|
+
const J = A({
|
|
17
|
+
components: {
|
|
18
|
+
BentoTypography: Y,
|
|
19
|
+
FixedScroller: G
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
/**
|
|
23
|
+
* Sets the active tab by its index (0 being the first tab item).
|
|
24
|
+
*/
|
|
25
|
+
activeTabIndex: { type: Number, default: 0 },
|
|
26
|
+
/*
|
|
27
|
+
* Renders the tab with a sticky positioning.
|
|
28
|
+
*/
|
|
29
|
+
sticky: { type: Boolean, default: !1 },
|
|
30
|
+
/**
|
|
31
|
+
* Additional configurable options for tabs rendered with a sticky positioning.
|
|
32
|
+
* It must be an object of type {@see BentoStickyTabsOption}
|
|
33
|
+
* @property {Ref<number>} stickyOptions.top - Top position the tabs should take up when rendered as sticky.
|
|
34
|
+
*/
|
|
35
|
+
stickyOptions: { type: Object, default: null }
|
|
36
|
+
},
|
|
37
|
+
emits: [C.ACTIVE_TAB_INDEX],
|
|
38
|
+
setup(s, { emit: t }) {
|
|
39
|
+
const e = v([]), n = v(null), b = v(), l = v(""), i = v(!1);
|
|
40
|
+
let c;
|
|
41
|
+
w(B, l);
|
|
42
|
+
const u = (a) => () => {
|
|
43
|
+
var r;
|
|
44
|
+
e.value = (r = e.value) == null ? void 0 : r.filter(({ id: o }) => o !== a);
|
|
45
|
+
};
|
|
46
|
+
w(O, ({
|
|
47
|
+
title: a,
|
|
48
|
+
disabled: r,
|
|
49
|
+
withNotificationIndicator: o,
|
|
50
|
+
counter: _,
|
|
51
|
+
hidden: I
|
|
52
|
+
}) => {
|
|
53
|
+
const h = $("b-tab");
|
|
54
|
+
return e.value.push({ counter: _, disabled: r, hidden: I, id: h, title: a, withNotificationIndicator: o }), { id: h, unregisterTab: u(h) };
|
|
55
|
+
});
|
|
56
|
+
const y = (a) => {
|
|
57
|
+
if (a.code === "ArrowLeft" || a.code === "ArrowRight") {
|
|
58
|
+
const r = e.value.find((_) => document.activeElement.id === _.id);
|
|
59
|
+
let o = e.value.indexOf(r);
|
|
60
|
+
a.code === "ArrowLeft" ? o = S(o, e.value) : a.code === "ArrowRight" && (o = D(o, e.value)), n.value.children[o].focus();
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
g(
|
|
64
|
+
[() => s.activeTabIndex, e],
|
|
65
|
+
([a, r]) => {
|
|
66
|
+
k(() => {
|
|
67
|
+
var _;
|
|
68
|
+
const o = r[a];
|
|
69
|
+
l.value = o && !o.disabled ? o.id : (_ = e.value.find(({ disabled: I }) => !I)) == null ? void 0 : _.id;
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
{ immediate: !0 }
|
|
73
|
+
);
|
|
74
|
+
const m = (a) => {
|
|
75
|
+
l.value = a;
|
|
76
|
+
const r = e.value.findIndex(({ id: o }) => o === l.value);
|
|
77
|
+
t(C.ACTIVE_TAB_INDEX, r);
|
|
78
|
+
}, T = (a) => a ? "disabled" : !1, p = f(() => {
|
|
79
|
+
var a;
|
|
80
|
+
return (a = s.stickyOptions) != null && a.top ? W(s.stickyOptions.top) : 0;
|
|
81
|
+
}), K = f(() => s.sticky && p.value > 0 ? !0 : i.value), x = () => {
|
|
82
|
+
c && (c.disconnect(), c = null), i.value = !1;
|
|
83
|
+
}, P = (a) => {
|
|
84
|
+
s.sticky && p.value === 0 && (c = new IntersectionObserver(
|
|
85
|
+
([r]) => {
|
|
86
|
+
i.value = r.intersectionRatio < 1;
|
|
87
|
+
},
|
|
88
|
+
{ threshold: [1] }
|
|
89
|
+
), c.observe(a));
|
|
90
|
+
};
|
|
91
|
+
g(
|
|
92
|
+
[() => s.sticky, b, p],
|
|
93
|
+
([a, r]) => {
|
|
94
|
+
x(), a && r && k(() => P(r));
|
|
95
|
+
},
|
|
96
|
+
{ immediate: !0 }
|
|
97
|
+
), N(() => {
|
|
98
|
+
x();
|
|
99
|
+
});
|
|
100
|
+
const F = f(() => ({
|
|
101
|
+
"b-tabs__tab-list-wrapper--sticky": s.sticky,
|
|
102
|
+
"b-tabs__tab-list-wrapper--pinned": K.value
|
|
103
|
+
})), L = f(
|
|
104
|
+
() => {
|
|
105
|
+
var a;
|
|
106
|
+
return (
|
|
107
|
+
// This helps us detect when the tabs are pinned without calculations on the tabs positions because it makes the tabs intersect by 1 pixel with the element on top of it, which is getting aught by the intersection observer.
|
|
108
|
+
// Followed this example: https://css-tricks.com/how-to-detect-when-a-sticky-element-gets-pinned/
|
|
109
|
+
s.sticky ? {
|
|
110
|
+
top: `${(((a = s.stickyOptions) == null ? void 0 : a.top) ?? 0) - 1}px`
|
|
111
|
+
} : {}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
return {
|
|
116
|
+
tabs: e,
|
|
117
|
+
tablist: n,
|
|
118
|
+
tablistwrapper: b,
|
|
119
|
+
activeTabId: l,
|
|
120
|
+
tablistWrapperConditionalClasses: F,
|
|
121
|
+
tablistWrapperStyles: L,
|
|
122
|
+
onKeydownTabsNavigation: y,
|
|
123
|
+
handleTabChange: m,
|
|
124
|
+
isDisabled: T
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
var U = function() {
|
|
129
|
+
var t = this, e = t._self._c;
|
|
130
|
+
return t._self._setupProxy, e("div", { staticClass: "b-tabs" }, [e("div", { ref: "tablistwrapper", staticClass: "b-tabs__tab-list-wrapper", class: t.tablistWrapperConditionalClasses, style: t.tablistWrapperStyles }, [e("fixed-scroller", { attrs: { condensed: "", "extra-padding-top": 2 } }, [e("div", { ref: "tablist", staticClass: "b-tabs__tab-list", attrs: { role: "tablist" }, on: { keydown: t.onKeydownTabsNavigation } }, t._l(t.tabs, function({ counter: n, disabled: b, hidden: l, id: i, title: c, withNotificationIndicator: u }) {
|
|
131
|
+
return e("button", { directives: [{ name: "show", rawName: "v-show", value: !l, expression: "!hidden" }], key: i, staticClass: "b-tabs__tab", class: {
|
|
132
|
+
"b-tabs__tab--active": t.activeTabId === i,
|
|
133
|
+
"b-tabs__tab--disabled": b
|
|
134
|
+
}, attrs: { id: i, role: "tab", type: "button", "aria-controls": `${i}-tabpanel`, "aria-hidden": l ? "true" : "false", "aria-selected": t.activeTabId === i ? "true" : "false", tabindex: t.activeTabId === i && !b.value ? null : -1, disabled: t.isDisabled(b) }, on: { click: function(d) {
|
|
135
|
+
return t.handleTabChange(i);
|
|
136
|
+
}, keydown: function(d) {
|
|
137
|
+
return !d.type.indexOf("key") && t._k(d.keyCode, "enter", 13, d.key, "Enter") && t._k(d.keyCode, "space", 32, d.key, [" ", "Spacebar"]) ? null : t.handleTabChange(i);
|
|
138
|
+
} } }, [e("span", { staticClass: "b-tabs__tab-text" }, [e("bento-typography", { staticClass: "b-tabs__tab-title", attrs: { el: "span", variant: "body", stronger: "" } }, [t._v(" " + t._s(c) + " ")]), n != null ? e("bento-typography", { staticClass: "b-tabs__tab-counter", class: {
|
|
139
|
+
"b-tabs__tab-counter--active": t.activeTabId === i
|
|
140
|
+
}, attrs: { el: "span", variant: "body", stronger: "" } }, [t._v(" " + t._s(n) + " ")]) : t._e(), u ? e("span", { staticClass: "b-tabs__tab-notification-dot", attrs: { "aria-hidden": "true" } }) : t._e()], 1), e("span", { directives: [{ name: "show", rawName: "v-show", value: t.activeTabId === i, expression: "activeTabId === id" }], staticClass: "b-tabs__tab-underline", attrs: { "aria-hidden": "true" } })]);
|
|
141
|
+
}), 0)])], 1), t._t("default")], 2);
|
|
142
|
+
}, z = [], q = /* @__PURE__ */ R(
|
|
143
|
+
J,
|
|
144
|
+
U,
|
|
145
|
+
z,
|
|
146
|
+
!1,
|
|
147
|
+
null,
|
|
148
|
+
"e742a127"
|
|
149
|
+
);
|
|
150
|
+
const rt = q.exports, H = {
|
|
151
|
+
name: "bento-tab"
|
|
152
|
+
}, M = /* @__PURE__ */ A({
|
|
153
|
+
...H,
|
|
154
|
+
props: {
|
|
155
|
+
counter: { default: null },
|
|
156
|
+
disabled: { type: Boolean, default: !1 },
|
|
157
|
+
hidden: { type: Boolean, default: !1 },
|
|
158
|
+
title: null,
|
|
159
|
+
withNotificationIndicator: { type: Boolean, default: !1 }
|
|
160
|
+
},
|
|
161
|
+
setup(s) {
|
|
162
|
+
const t = s, { counter: e, disabled: n, hidden: b, withNotificationIndicator: l } = X(t), i = v(), c = (p) => {
|
|
163
|
+
i.value = p;
|
|
164
|
+
};
|
|
165
|
+
w(j, c);
|
|
166
|
+
const u = f(() => i.value ?? t.title), d = E(O), y = E(B), { id: m, unregisterTab: T } = d({
|
|
167
|
+
counter: e,
|
|
168
|
+
disabled: n,
|
|
169
|
+
hidden: b,
|
|
170
|
+
title: u,
|
|
171
|
+
withNotificationIndicator: l
|
|
172
|
+
});
|
|
173
|
+
return N(() => T()), { __sfc: !0, props: t, counter: e, disabled: n, hidden: b, withNotificationIndicator: l, componentTitle: i, setTitle: c, computedTitle: u, registerTab: d, activeTabId: y, id: m, unregisterTab: T };
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
var Q = function() {
|
|
177
|
+
var t = this, e = t._self._c, n = t._self._setupProxy;
|
|
178
|
+
return e("div", { directives: [{ name: "show", rawName: "v-show", value: n.activeTabId === n.id, expression: "activeTabId === id" }], staticClass: "b-tab", attrs: { id: `${n.id}-tabpanel`, role: "tabpanel", "aria-labelledby": n.id } }, [n.activeTabId === n.id ? [t._t("default")] : t._e()], 2);
|
|
179
|
+
}, V = [], Z = /* @__PURE__ */ R(
|
|
180
|
+
M,
|
|
181
|
+
Q,
|
|
182
|
+
V,
|
|
183
|
+
!1,
|
|
184
|
+
null,
|
|
185
|
+
"2118a644"
|
|
186
|
+
);
|
|
187
|
+
const ot = Z.exports;
|
|
188
|
+
export {
|
|
189
|
+
rt as B,
|
|
190
|
+
ot as a
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=tab.DXE68qVf.js.map
|