@adyen/bento-vue2 1.60.0 → 1.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +201 -0
- package/dist/@types/index.d.ts +17710 -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/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/error-message.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-with-views.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/info-icon-with-popover.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/menu.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/popover.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/tabs.css +1 -0
- package/dist/assets/tag.css +1 -0
- package/dist/assets/teleport.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-button.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 +16 -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/_commonjsHelpers.C6fGbg64.js +7 -0
- package/dist/chunks/_commonjsHelpers.C6fGbg64.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.C4tyRMCt.js +116 -0
- package/dist/chunks/accordion-item.C4tyRMCt.js.map +1 -0
- package/dist/chunks/action-bar.CMqiD6vc.js +161 -0
- package/dist/chunks/action-bar.CMqiD6vc.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/alert.Du9NfW-V.js +103 -0
- package/dist/chunks/alert.Du9NfW-V.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.BgwjpLQO.js +71 -0
- package/dist/chunks/avatar.BgwjpLQO.js.map +1 -0
- package/dist/chunks/base-button.-gx_u8Bd.js +86 -0
- package/dist/chunks/base-button.-gx_u8Bd.js.map +1 -0
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
- package/dist/chunks/base-modal.xA_DhHx9.js +373 -0
- package/dist/chunks/base-modal.xA_DhHx9.js.map +1 -0
- package/dist/chunks/bin.DuebwJYu.js +24 -0
- package/dist/chunks/bin.DuebwJYu.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.S7i4V-8E.js +166 -0
- package/dist/chunks/button-actions-with-menu.S7i4V-8E.js.map +1 -0
- package/dist/chunks/button-actions.BFtzsfNe.js +194 -0
- package/dist/chunks/button-actions.BFtzsfNe.js.map +1 -0
- package/dist/chunks/button.BuD-IsW5.js +99 -0
- package/dist/chunks/button.BuD-IsW5.js.map +1 -0
- package/dist/chunks/calendar.DQiq_EoU.js +1167 -0
- package/dist/chunks/calendar.DQiq_EoU.js.map +1 -0
- package/dist/chunks/card.Bk7Lz1GS.js +123 -0
- package/dist/chunks/card.Bk7Lz1GS.js.map +1 -0
- package/dist/chunks/checkbox-group.CossCRls.js +152 -0
- package/dist/chunks/checkbox-group.CossCRls.js.map +1 -0
- package/dist/chunks/checkbox-input.Dr1GS2BZ.js +137 -0
- package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +1 -0
- package/dist/chunks/checkbox.DkDqMVeb.js +176 -0
- package/dist/chunks/checkbox.DkDqMVeb.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
- package/dist/chunks/checkmark-small.C8T8ISN6.js +24 -0
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
- package/dist/chunks/chevron-left.DOMTgGel.js +43 -0
- package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
- package/dist/chunks/chevron-up.CSVyoaTy.js +43 -0
- package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
- package/dist/chunks/chip.bZEhHfIk.js +63 -0
- package/dist/chunks/chip.bZEhHfIk.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.BlYhf-Dt.js +259 -0
- package/dist/chunks/code-snippet.BlYhf-Dt.js.map +1 -0
- package/dist/chunks/codemirror.Zv80n3Z2.js +14628 -0
- package/dist/chunks/codemirror.Zv80n3Z2.js.map +1 -0
- package/dist/chunks/controls-group.C4CHrb6Y.js +81 -0
- package/dist/chunks/controls-group.C4CHrb6Y.js.map +1 -0
- package/dist/chunks/copy.Bod4H2Dk.js +129 -0
- package/dist/chunks/copy.Bod4H2Dk.js.map +1 -0
- package/dist/chunks/country.Df7erZov.js +94 -0
- package/dist/chunks/country.Df7erZov.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.YhLgeipP.js +24 -0
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
- package/dist/chunks/cross-small.CZqsjZDz.js +24 -0
- package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
- package/dist/chunks/cross.CJ5EEL2c.js +24 -0
- package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
- package/dist/chunks/currency.B1F9YOIx.js +106 -0
- package/dist/chunks/currency.B1F9YOIx.js.map +1 -0
- package/dist/chunks/dashboard-section.Dx6eYon4.js +102 -0
- package/dist/chunks/dashboard-section.Dx6eYon4.js.map +1 -0
- package/dist/chunks/dashed-underline.CY5J4pZp.js +65 -0
- package/dist/chunks/dashed-underline.CY5J4pZp.js.map +1 -0
- package/dist/chunks/data-grid-template.CVl3PU0v.js +109 -0
- package/dist/chunks/data-grid-template.CVl3PU0v.js.map +1 -0
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +5 -0
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +1 -0
- package/dist/chunks/data-grid.BZaXKTLk.js +2782 -0
- package/dist/chunks/data-grid.BZaXKTLk.js.map +1 -0
- package/dist/chunks/date-input.BqBdAO1E.js +17 -0
- package/dist/chunks/date-input.BqBdAO1E.js.map +1 -0
- package/dist/chunks/date-picker.lrT6LXe-.js +235 -0
- package/dist/chunks/date-picker.lrT6LXe-.js.map +1 -0
- package/dist/chunks/date-range-picker.Djt5mYvh.js +977 -0
- package/dist/chunks/date-range-picker.Djt5mYvh.js.map +1 -0
- package/dist/chunks/date.dYFFEunA.js +987 -0
- package/dist/chunks/date.dYFFEunA.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js +10 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
- package/dist/chunks/dialog-page.C5r6tM57.js +131 -0
- package/dist/chunks/dialog-page.C5r6tM57.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.Cc4JFWG_.js +35 -0
- package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
- package/dist/chunks/dot.CnkXzRn3.js +24 -0
- package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
- package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +348 -0
- package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +1 -0
- package/dist/chunks/dropdown-tag.CY3nZ50z.js +215 -0
- package/dist/chunks/dropdown-tag.CY3nZ50z.js.map +1 -0
- package/dist/chunks/dropdown.Cx-3TGBk.js +818 -0
- package/dist/chunks/dropdown.Cx-3TGBk.js.map +1 -0
- package/dist/chunks/empty-state.IvvHHQ35.js +151 -0
- package/dist/chunks/empty-state.IvvHHQ35.js.map +1 -0
- package/dist/chunks/error-message.BAE9B9-N.js +121 -0
- package/dist/chunks/error-message.BAE9B9-N.js.map +1 -0
- package/dist/chunks/es6.n1ewaW31.js +11 -0
- package/dist/chunks/es6.n1ewaW31.js.map +1 -0
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/expand.C263WARj.js +24 -0
- package/dist/chunks/expand.C263WARj.js.map +1 -0
- package/dist/chunks/file-uploader.E18P6eyS.js +1913 -0
- package/dist/chunks/file-uploader.E18P6eyS.js.map +1 -0
- package/dist/chunks/filter-bar.D6IL1UDu.js +2288 -0
- package/dist/chunks/filter-bar.D6IL1UDu.js.map +1 -0
- package/dist/chunks/fixed-scroller.D0a6q8_i.js +106 -0
- package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +1 -0
- package/dist/chunks/focus-trap.C-wIQqpO.js +499 -0
- package/dist/chunks/focus-trap.C-wIQqpO.js.map +1 -0
- package/dist/chunks/footer-actions.BgpSnSSn.js +96 -0
- package/dist/chunks/footer-actions.BgpSnSSn.js.map +1 -0
- package/dist/chunks/form-layout-title.DBCY18f8.js +190 -0
- package/dist/chunks/form-layout-title.DBCY18f8.js.map +1 -0
- package/dist/chunks/form-layout.types.D3EKzbE7.js +5 -0
- package/dist/chunks/form-layout.types.D3EKzbE7.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-date-locale.BN8xEjY0.js +1735 -0
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
- package/dist/chunks/grid-layout.HvTAa4to.js +76 -0
- package/dist/chunks/grid-layout.HvTAa4to.js.map +1 -0
- package/dist/chunks/header-with-views.DAdbhhG9.js +1549 -0
- package/dist/chunks/header-with-views.DAdbhhG9.js.map +1 -0
- package/dist/chunks/header.8SId1U5r.js +187 -0
- package/dist/chunks/header.8SId1U5r.js.map +1 -0
- package/dist/chunks/i18n.BQkEbtPM.js +31 -0
- package/dist/chunks/i18n.BQkEbtPM.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.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BdrLbvtJ.js +529 -0
- package/dist/chunks/index.BdrLbvtJ.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.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/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/info-icon-with-popover.XZqkxPsB.js +71 -0
- package/dist/chunks/info-icon-with-popover.XZqkxPsB.js.map +1 -0
- package/dist/chunks/info-icon.C1xOlhYj.js +41 -0
- package/dist/chunks/info-icon.C1xOlhYj.js.map +1 -0
- package/dist/chunks/info.4d_mJHvT.js +24 -0
- package/dist/chunks/info.4d_mJHvT.js.map +1 -0
- package/dist/chunks/input-field-password.lK0Im1eg.js +251 -0
- package/dist/chunks/input-field-password.lK0Im1eg.js.map +1 -0
- package/dist/chunks/input-field-phone-number.BnjBqUKg.js +3097 -0
- package/dist/chunks/input-field-phone-number.BnjBqUKg.js.map +1 -0
- package/dist/chunks/input-field.B8HxtNIv.js +152 -0
- package/dist/chunks/input-field.B8HxtNIv.js.map +1 -0
- package/dist/chunks/inspector.CegHqvEW.js +117 -0
- package/dist/chunks/inspector.CegHqvEW.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.pB8weElW.js +66 -0
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
- package/dist/chunks/layout-row.C_F2wX6d.js +87 -0
- package/dist/chunks/layout-row.C_F2wX6d.js.map +1 -0
- package/dist/chunks/link.D0P79Toh.js +95 -0
- package/dist/chunks/link.D0P79Toh.js.map +1 -0
- package/dist/chunks/listbox-option-tag.CczGPhWH.js +44 -0
- package/dist/chunks/listbox-option-tag.CczGPhWH.js.map +1 -0
- package/dist/chunks/loading-indicator.z8COalOc.js +48 -0
- package/dist/chunks/loading-indicator.z8COalOc.js.map +1 -0
- package/dist/chunks/menu.CT0SIn4v.js +601 -0
- package/dist/chunks/menu.CT0SIn4v.js.map +1 -0
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
- package/dist/chunks/modal-fullscreen.tofT1h0P.js +202 -0
- package/dist/chunks/modal-fullscreen.tofT1h0P.js.map +1 -0
- package/dist/chunks/modal.CiYtGu6u.js +445 -0
- package/dist/chunks/modal.CiYtGu6u.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.B-EP9Lkq.js +338 -0
- package/dist/chunks/pagination.B-EP9Lkq.js.map +1 -0
- package/dist/chunks/payment-method.Cx4nPDtE.js +76 -0
- package/dist/chunks/payment-method.Cx4nPDtE.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.COaHa4ES.js +295 -0
- package/dist/chunks/popover.COaHa4ES.js.map +1 -0
- package/dist/chunks/popper-container.DIFqmRsp.js +1393 -0
- package/dist/chunks/popper-container.DIFqmRsp.js.map +1 -0
- package/dist/chunks/promo-banner.DJpA7Whg.js +70 -0
- package/dist/chunks/promo-banner.DJpA7Whg.js.map +1 -0
- package/dist/chunks/radio-group.CzsbH4_F.js +229 -0
- package/dist/chunks/radio-group.CzsbH4_F.js.map +1 -0
- package/dist/chunks/radio-input.uJAhxKRs.js +90 -0
- package/dist/chunks/radio-input.uJAhxKRs.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.Bc9FzGjJ.js +24 -0
- package/dist/chunks/refresh.Bc9FzGjJ.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.C4NdjtLA.js +6203 -0
- package/dist/chunks/rich-text-editor.C4NdjtLA.js.map +1 -0
- package/dist/chunks/search-bar.B4u_IgiI.js +97 -0
- package/dist/chunks/search-bar.B4u_IgiI.js.map +1 -0
- package/dist/chunks/search.DLtglc02.js +24 -0
- package/dist/chunks/search.DLtglc02.js.map +1 -0
- package/dist/chunks/secondary-nav.EROJ_sJQ.js +112 -0
- package/dist/chunks/secondary-nav.EROJ_sJQ.js.map +1 -0
- package/dist/chunks/segmented-control.B-uxKqMN.js +112 -0
- package/dist/chunks/segmented-control.B-uxKqMN.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.CnvREAh5.js +299 -0
- package/dist/chunks/selection-card-group.CnvREAh5.js.map +1 -0
- package/dist/chunks/show.e4LEpZKG.js +43 -0
- package/dist/chunks/show.e4LEpZKG.js.map +1 -0
- package/dist/chunks/sidepanel.3EBWM8JV.js +210 -0
- package/dist/chunks/sidepanel.3EBWM8JV.js.map +1 -0
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
- package/dist/chunks/status.types.p_TCvoo0.js +36 -0
- package/dist/chunks/status.types.p_TCvoo0.js.map +1 -0
- package/dist/chunks/step.CuOpi-Ye.js +217 -0
- package/dist/chunks/step.CuOpi-Ye.js.map +1 -0
- package/dist/chunks/structured-list-item.rOTJM0uc.js +87 -0
- package/dist/chunks/structured-list-item.rOTJM0uc.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.CxTf_FOc.js +6 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
- package/dist/chunks/summary-grid.types.Bg1Y7i-F.js +301 -0
- package/dist/chunks/summary-grid.types.Bg1Y7i-F.js.map +1 -0
- package/dist/chunks/tabs.DX_Gq12z.js +205 -0
- package/dist/chunks/tabs.DX_Gq12z.js.map +1 -0
- package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
- package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
- package/dist/chunks/tag.DDjyf2hd.js +44 -0
- package/dist/chunks/tag.DDjyf2hd.js.map +1 -0
- package/dist/chunks/teleport.BV6zrDjA.js +128 -0
- package/dist/chunks/teleport.BV6zrDjA.js.map +1 -0
- package/dist/chunks/textarea.0PapD8Nl.js +200 -0
- package/dist/chunks/textarea.0PapD8Nl.js.map +1 -0
- package/dist/chunks/timeline-item.IFw76Qeh.js +386 -0
- package/dist/chunks/timeline-item.IFw76Qeh.js.map +1 -0
- package/dist/chunks/toast.B2u2W_TQ.js +171 -0
- package/dist/chunks/toast.B2u2W_TQ.js.map +1 -0
- package/dist/chunks/toggle-button.ChDbeBZ8.js +83 -0
- package/dist/chunks/toggle-button.ChDbeBZ8.js.map +1 -0
- package/dist/chunks/toggle.Q52IIKfi.js +121 -0
- package/dist/chunks/toggle.Q52IIKfi.js.map +1 -0
- package/dist/chunks/tooltip.DyZIyMZN.js +189 -0
- package/dist/chunks/tooltip.DyZIyMZN.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.suIRmXta.js +348 -0
- package/dist/chunks/tutorial.suIRmXta.js.map +1 -0
- package/dist/chunks/typography.J1v_SPG3.js +87 -0
- package/dist/chunks/typography.J1v_SPG3.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.Cn_2Eogn.js +52 -0
- package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.9OnD_j5F.js +1177 -0
- package/dist/chunks/use-cached-selected-values.9OnD_j5F.js.map +1 -0
- package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
- package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
- package/dist/chunks/use-country-items.HFnjuDsG.js.map +1 -0
- package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
- package/dist/chunks/use-country-phon-code.DVgE19zT.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.D3lALhtC.js +12 -0
- package/dist/chunks/use-form-layout-loading.D3lALhtC.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.Cd0kVWwa.js +24 -0
- package/dist/chunks/warning-filled.Cd0kVWwa.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 +11 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +8 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date-range-picker.js +8 -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 +8 -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 +372 -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 +5 -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 +43 -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 +6 -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 +2055 -0
- package/dist/styles/bento-light.css +2054 -0
- package/dist/styles/bento.css +2054 -0
- package/dist/styles/legacy.css +2209 -0
- package/dist/styles/styleguide.css +2109 -0
- package/dist/styles/utility.css +987 -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 +15200 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-not-found.DWW6W-PZ.js","sources":["../../src/components/empty-state/assets/large/page-not-found.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M57.3516%20235.644H242.199C249.494%20235.644%20255.403%20229.736%20255.403%20222.441V156.424H44.1482V222.441C44.1482%20229.736%2050.0567%20235.644%2057.3516%20235.644Z'%20fill='%236F7988'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M123.356%20156.424H88.1421V235.644H123.356V156.424Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.1482%20130.017V156.424H255.403V130.017C255.403%20122.722%20249.494%20116.814%20242.199%20116.814H57.3516C50.0567%20116.814%2044.1482%20122.722%2044.1482%20130.017Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M136.56%20116.814H115.619C114.378%20116.814%20113.15%20116.629%20111.981%20116.292V116.754H44.1357C44.1357%20116.754%2044.1357%20116.794%2044.1357%20116.807V156.417H149.763V130.011C149.763%20122.716%20143.854%20116.807%20136.56%20116.807V116.814Z'%20fill='%2385DFA9'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M111.981%20116.292C109.849%20115.678%20107.882%20114.543%20106.284%20112.945L100.818%20107.479C98.3423%20105.003%2094.9821%20103.61%2091.4832%20103.61H57.3392C50.0641%20103.61%2044.1688%20109.493%2044.1357%20116.761H111.981V116.299V116.292Z'%20fill='%2308903F'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M149.775%20235.644H242.199C249.494%20235.644%20255.403%20229.736%20255.403%20222.441V156.424H136.572V222.441C136.572%20229.736%20142.48%20235.644%20149.775%20235.644Z'%20fill='%236F7988'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M228.996%20116.814C236.291%20116.814%20242.199%20122.722%20242.199%20130.017V139.919C242.199%20141.742%20240.72%20143.22%20238.898%20143.22C237.076%20143.22%20235.598%20141.742%20235.598%20139.919V130.017C235.598%20122.722%20229.689%20116.814%20222.394%20116.814H228.996Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M238.899%20143.221C240.722%20143.221%20242.2%20141.743%20242.2%20139.92C242.2%20138.097%20240.722%20136.619%20238.899%20136.619C237.076%20136.619%20235.598%20138.097%20235.598%20139.92C235.598%20141.743%20237.076%20143.221%20238.899%20143.221Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M238.899%20136.619C240.722%20136.619%20242.2%20135.141%20242.2%20133.318C242.2%20131.495%20240.722%20130.017%20238.899%20130.017C237.076%20130.017%20235.598%20131.495%20235.598%20133.318C235.598%20135.141%20237.076%20136.619%20238.899%20136.619Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M123.368%20143.22H149.762'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3ccircle%20cx='103.544'%20cy='182.831'%20r='0.495128'%20fill='%2300112C'/%3e%3cpath%20d='M96.9488%2077.2034C96.9488%2069.9085%2091.0403%2064%2083.7454%2064C82.194%2064%2080.7086%2064.2839%2079.3289%2064.7724C84.4452%2066.5879%2088.1157%2071.4599%2088.1157%2077.2034V90.4068H96.9488V77.2034Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M88.1152%2077.2035C88.1152%2071.46%2084.4447%2066.5945%2079.3284%2064.7725C74.2121%2066.5879%2070.5415%2071.46%2070.5415%2077.2035V90.4069H88.1218V77.2035H88.1152Z'%20fill='%23DFE1E7'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M189.373%2064H83.7452C91.0401%2064%2096.9486%2069.9085%2096.9486%2077.2034V116.814H202.576V77.2034C202.576%2069.9085%20196.667%2064%20189.373%2064Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.1357%20116.814V156.424H123.356V130.017C123.356%20122.722%20117.448%20116.814%20110.153%20116.814H89.2122C85.7133%20116.814%2082.353%20115.421%2079.8774%20112.945L74.4112%20107.479C71.9355%20105.003%2068.5753%20103.61%2065.0764%20103.61H57.3392C50.0443%20103.61%2044.1357%20109.519%2044.1357%20116.814Z'%20fill='%230ABF53'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M57.3392%20235.644H110.153C117.448%20235.644%20123.356%20229.736%20123.356%20222.441V156.424H44.1357V222.441C44.1357%20229.736%2050.0443%20235.644%2057.3392%20235.644Z'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M110.152%20235.644H215.78C208.485%20235.644%20202.576%20229.736%20202.576%20222.441V156.424H96.949V222.441C96.949%20229.736%20102.858%20235.644%20110.152%20235.644Z'%20fill='%23DFE1E7'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M110.152%20156.424V222.441C110.152%20229.736%20116.06%20235.644%20123.355%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M123.356%20156.424V222.441C123.356%20229.736%20129.264%20235.644%20136.559%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M136.559%20156.424V222.441C136.559%20229.736%20142.468%20235.644%20149.763%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M149.762%20156.424V222.441C149.762%20229.736%20155.671%20235.644%20162.966%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M162.966%20156.424V222.441C162.966%20229.736%20168.875%20235.644%20176.169%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M176.17%20156.424V222.441C176.17%20229.736%20182.078%20235.644%20189.373%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M189.373%20156.424V222.441C189.373%20229.736%20195.281%20235.644%20202.576%20235.644'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M162.966%20222.441H149.763C149.763%20229.736%20143.854%20235.644%20136.559%20235.644H149.763C157.058%20235.644%20162.966%20229.736%20162.966%20222.441Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M136.559%20222.441H123.355C123.355%20229.736%20117.447%20235.644%20110.152%20235.644H123.355C130.65%20235.644%20136.559%20229.736%20136.559%20222.441Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M215.779%20222.441C215.779%20229.736%20209.87%20235.644%20202.576%20235.644H215.779C223.074%20235.644%20228.982%20229.736%20228.982%20222.441H215.779Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M202.577%20222.441H189.373C189.373%20229.736%20183.465%20235.644%20176.17%20235.644H189.373C196.668%20235.644%20202.577%20229.736%20202.577%20222.441Z'%20fill='white'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M189.366%2077.2036H110.146V90.407H189.366V77.2036Z'%20fill='%23DFE1E7'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M189.373%20103.61H110.146'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M275.551%20235.644H24'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["pageNotFound"],"mappings":"AAAA,MAAeA,IAAA;"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { defineComponent as v, ref as T, computed as _, useSlots as y, useAttrs as B, toRefs as N } from "vue";
|
|
2
|
+
import { B as d } from "./typography.J1v_SPG3.js";
|
|
3
|
+
import { B as L } from "./dropdown.Cx-3TGBk.js";
|
|
4
|
+
import { g as x } from "./generate-uid.NJ8tVoha.js";
|
|
5
|
+
import { u as f, g as $, a as S } from "./i18n.BQkEbtPM.js";
|
|
6
|
+
import { n as p } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
+
import { B as I } from "./button.BuD-IsW5.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { u as O } from "./aria-label.CaUURpnB.js";
|
|
10
|
+
import { u as R } from "./use-has-slot.C9lQZ6nz.js";
|
|
11
|
+
import "../assets/pagination.css";
|
|
12
|
+
const F = {
|
|
13
|
+
"de-DE": {
|
|
14
|
+
showingItems: "{itemCount} Artikeln",
|
|
15
|
+
showingItemsWithTotal: "{itemCount} von {totalCount} Artikeln"
|
|
16
|
+
},
|
|
17
|
+
"en-US": {
|
|
18
|
+
showingItems: "{itemCount} items",
|
|
19
|
+
showingItemsWithTotal: "{itemCount} of {totalCount} items"
|
|
20
|
+
},
|
|
21
|
+
"es-ES": {
|
|
22
|
+
showingItems: "{itemCount} artículos",
|
|
23
|
+
showingItemsWithTotal: "{itemCount} de {totalCount} artículos"
|
|
24
|
+
},
|
|
25
|
+
"fr-FR": {
|
|
26
|
+
showingItems: "{itemCount} élément(s)",
|
|
27
|
+
showingItemsWithTotal: "{itemCount} élément(s) sur {totalCount}"
|
|
28
|
+
},
|
|
29
|
+
"ja-JP": {
|
|
30
|
+
showingItems: "{itemCount}個のアイテムを表示しています",
|
|
31
|
+
showingItemsWithTotal: "{totalCount}件中{itemCount}件のアイテムを表示"
|
|
32
|
+
},
|
|
33
|
+
"pt-BR": {
|
|
34
|
+
showingItems: "{itemCount} itens",
|
|
35
|
+
showingItemsWithTotal: "{itemCount} de {totalCount} itens"
|
|
36
|
+
}
|
|
37
|
+
}, k = {
|
|
38
|
+
i18n: { messages: F }
|
|
39
|
+
}, A = /* @__PURE__ */ v({
|
|
40
|
+
...k,
|
|
41
|
+
__name: "pagination-results-per-page",
|
|
42
|
+
props: {
|
|
43
|
+
itemsPerPage: { default: 50 },
|
|
44
|
+
totalCount: { default: null }
|
|
45
|
+
},
|
|
46
|
+
emits: ["select"],
|
|
47
|
+
setup(n, { emit: t }) {
|
|
48
|
+
const e = n, a = [
|
|
49
|
+
{ label: "10", value: 10 },
|
|
50
|
+
{ label: "20", value: 20 },
|
|
51
|
+
{ label: "50", value: 50 },
|
|
52
|
+
{ label: "75", value: 75 },
|
|
53
|
+
{ label: "100", value: 100 }
|
|
54
|
+
], { t: o } = f(), i = x("b-pagination-context-number-elements"), u = T(a), l = S(), c = (s) => {
|
|
55
|
+
t("select", s);
|
|
56
|
+
}, r = _(() => e.totalCount ? "showingItemsWithTotal" : "showingItems");
|
|
57
|
+
return { __sfc: !0, PREDEFINED_RESULTS_PER_PAGE_VALUES: a, props: e, emit: t, t: o, dropdownId: i, dropdownOptions: u, i18nComponent: l, onSelectChange: c, translationPathKey: r, BentoTypography: d, BentoDropdown: L, getI18nProps: $ };
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var z = function() {
|
|
61
|
+
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
62
|
+
return e("div", { staticClass: "b-pagination-results-per-page" }, [e(a.BentoTypography, { attrs: { el: "div" } }, [e(a.i18nComponent, t._b({ tag: "component", staticClass: "b-pagination-results-per-page__dropdown-container", attrs: { tag: "div", plural: t.totalCount }, scopedSlots: t._u([{ key: "itemCount", fn: function() {
|
|
63
|
+
return [e(a.BentoDropdown, { staticClass: "b-pagination-results-per-page__dropdown", attrs: { id: a.dropdownId, "aria-label": a.t(a.translationPathKey, { itemCount: t.itemsPerPage, totalCount: t.totalCount }), condensed: "", items: a.dropdownOptions, value: t.itemsPerPage }, on: { input: a.onSelectChange } })];
|
|
64
|
+
}, proxy: !0 }, t.totalCount ? { key: "totalCount", fn: function() {
|
|
65
|
+
return [t._v(t._s(t.totalCount))];
|
|
66
|
+
}, proxy: !0 } : null], null, !0) }, "component", a.getI18nProps(a.translationPathKey), !1))], 1)], 1);
|
|
67
|
+
}, E = [], D = /* @__PURE__ */ p(
|
|
68
|
+
A,
|
|
69
|
+
z,
|
|
70
|
+
E,
|
|
71
|
+
!1,
|
|
72
|
+
null,
|
|
73
|
+
"c28c6859"
|
|
74
|
+
);
|
|
75
|
+
const Z = D.exports, M = {
|
|
76
|
+
"de-DE": {
|
|
77
|
+
pageNumber: "Seite {page}",
|
|
78
|
+
pageOneOfOne: "Seite 1 von 1"
|
|
79
|
+
},
|
|
80
|
+
"en-US": {
|
|
81
|
+
pageNumber: "Page {page}",
|
|
82
|
+
pageOneOfOne: "Page 1 of 1"
|
|
83
|
+
},
|
|
84
|
+
"es-ES": {
|
|
85
|
+
pageNumber: "Página {page}",
|
|
86
|
+
pageOneOfOne: "Página 1 de 1"
|
|
87
|
+
},
|
|
88
|
+
"fr-FR": {
|
|
89
|
+
pageNumber: "Page {page}",
|
|
90
|
+
pageOneOfOne: "Page 1 sur 1"
|
|
91
|
+
},
|
|
92
|
+
"ja-JP": {
|
|
93
|
+
pageNumber: "ページ{page}",
|
|
94
|
+
pageOneOfOne: "ページ1/1"
|
|
95
|
+
},
|
|
96
|
+
"pt-BR": {
|
|
97
|
+
pageNumber: "Página {page}",
|
|
98
|
+
pageOneOfOne: "Página 1 de 1"
|
|
99
|
+
}
|
|
100
|
+
}, W = {
|
|
101
|
+
i18n: { messages: M }
|
|
102
|
+
}, U = /* @__PURE__ */ v({
|
|
103
|
+
...W,
|
|
104
|
+
__name: "pagination-context",
|
|
105
|
+
props: {
|
|
106
|
+
page: { default: 1 },
|
|
107
|
+
totalPages: { default: null },
|
|
108
|
+
virtualScroll: { type: Boolean, default: !1 }
|
|
109
|
+
},
|
|
110
|
+
emits: ["page-selected"],
|
|
111
|
+
setup(n, { emit: t }) {
|
|
112
|
+
const e = n, { t: a } = f(), o = x("bento-pagination-context-current-page"), i = (s) => t("page-selected", s), u = S(), l = (s) => ({
|
|
113
|
+
label: s.toString(),
|
|
114
|
+
value: s
|
|
115
|
+
}), c = (s, m) => m + 1, r = _(
|
|
116
|
+
() => Array.from(new Array(e.totalPages), c).map(l)
|
|
117
|
+
);
|
|
118
|
+
return { __sfc: !0, props: e, emit: t, t: a, dropdownId: o, onPageSelectChange: i, i18nComponent: u, transformIntoOption: l, transformToPageNumber: c, listOfAvailablePages: r, BentoTypography: d, BentoDropdown: L, getI18nProps: $ };
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
var j = function() {
|
|
122
|
+
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
123
|
+
return e("div", { staticClass: "b-pagination-context" }, [t.totalPages > 1 ? e(a.BentoTypography, { attrs: { el: "div" } }, [e(a.i18nComponent, t._b({ tag: "component", attrs: { tag: "div" }, scopedSlots: t._u([{ key: "page", fn: function() {
|
|
124
|
+
return [e(a.BentoDropdown, { staticClass: "b-pagination-context__dropdown", attrs: { id: a.dropdownId, "aria-label": a.t("pageNumber", { page: t.page }), condensed: "", items: a.listOfAvailablePages, value: t.page, "virtual-scroll": t.virtualScroll }, on: { input: a.onPageSelectChange } })];
|
|
125
|
+
}, proxy: !0 }], null, !1, 379172170) }, "component", a.getI18nProps("pageNumber"), !1))], 1) : t.totalPages === 1 ? e(a.BentoTypography, { attrs: { el: "span" } }, [t._v(" " + t._s(a.t("pageOneOfOne")) + " ")]) : e(a.BentoTypography, { attrs: { el: "span" } }, [t._v(" " + t._s(a.t("pageNumber", { page: t.page })) + " ")])], 1);
|
|
126
|
+
}, H = [], J = /* @__PURE__ */ p(
|
|
127
|
+
U,
|
|
128
|
+
j,
|
|
129
|
+
H,
|
|
130
|
+
!1,
|
|
131
|
+
null,
|
|
132
|
+
"18345698"
|
|
133
|
+
);
|
|
134
|
+
const K = J.exports;
|
|
135
|
+
let h = 0;
|
|
136
|
+
const V = {
|
|
137
|
+
beforeCreate() {
|
|
138
|
+
this.uuid = h.toString(), h += 1;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
var G = function() {
|
|
142
|
+
var t = this, e = t._self._c;
|
|
143
|
+
return e("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", d: "M9.06055 8.00011L12.0605 5.00011L10.9999 3.93945L6.93923 8.00011L10.9999 12.0608L12.0605 11.0001L9.06055 8.00011Z" } }), e("path", { attrs: { fill: "#00112C", d: "M4.25 4.25L4.25 11.75H5.75L5.75 4.25L4.25 4.25Z" } })]);
|
|
144
|
+
}, q = [], Q = /* @__PURE__ */ p(
|
|
145
|
+
V,
|
|
146
|
+
G,
|
|
147
|
+
q,
|
|
148
|
+
!1,
|
|
149
|
+
null,
|
|
150
|
+
null
|
|
151
|
+
);
|
|
152
|
+
const X = Q.exports;
|
|
153
|
+
let P = 0;
|
|
154
|
+
const Y = {
|
|
155
|
+
beforeCreate() {
|
|
156
|
+
this.uuid = P.toString(), P += 1;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
var tt = function() {
|
|
160
|
+
var t = this, e = t._self._c;
|
|
161
|
+
return e("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", d: "M6.93945 7.99962L3.93945 10.9996L5.00011 12.0603L9.06077 7.99963L5.00011 3.93896L3.93945 4.99963L6.93945 7.99962Z" } }), e("path", { attrs: { fill: "#00112C", d: "M11.75 11.7497V4.24974L10.25 4.24974V11.7497H11.75Z" } })]);
|
|
162
|
+
}, et = [], at = /* @__PURE__ */ p(
|
|
163
|
+
Y,
|
|
164
|
+
tt,
|
|
165
|
+
et,
|
|
166
|
+
!1,
|
|
167
|
+
null,
|
|
168
|
+
null
|
|
169
|
+
);
|
|
170
|
+
const nt = at.exports;
|
|
171
|
+
let C = 0;
|
|
172
|
+
const st = {
|
|
173
|
+
beforeCreate() {
|
|
174
|
+
this.uuid = C.toString(), C += 1;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var ot = function() {
|
|
178
|
+
var t = this, e = t._self._c;
|
|
179
|
+
return e("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", d: "M10.5608 5.00011L7.56077 8.00011L10.5608 11.0001L9.50011 12.0608L5.43945 8.00011L9.50011 3.93945L10.5608 5.00011Z" } })]);
|
|
180
|
+
}, it = [], rt = /* @__PURE__ */ p(
|
|
181
|
+
st,
|
|
182
|
+
ot,
|
|
183
|
+
it,
|
|
184
|
+
!1,
|
|
185
|
+
null,
|
|
186
|
+
null
|
|
187
|
+
);
|
|
188
|
+
const lt = rt.exports;
|
|
189
|
+
let b = 0;
|
|
190
|
+
const gt = {
|
|
191
|
+
beforeCreate() {
|
|
192
|
+
this.uuid = b.toString(), b += 1;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
var ut = function() {
|
|
196
|
+
var t = this, e = t._self._c;
|
|
197
|
+
return e("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("path", { attrs: { fill: "#00112C", d: "M5.43924 10.9999L8.43924 7.99989L5.43924 4.99989L6.4999 3.93923L10.5606 7.99989L6.4999 12.0605L5.43924 10.9999Z" } })]);
|
|
198
|
+
}, pt = [], ct = /* @__PURE__ */ p(
|
|
199
|
+
gt,
|
|
200
|
+
ut,
|
|
201
|
+
pt,
|
|
202
|
+
!1,
|
|
203
|
+
null,
|
|
204
|
+
null
|
|
205
|
+
);
|
|
206
|
+
const _t = ct.exports, vt = {
|
|
207
|
+
"de-DE": {
|
|
208
|
+
navigateToTheFirstPage: "Zur ersten Seite navigieren",
|
|
209
|
+
navigateToTheLastPage: "Zur letzten Seite navigieren",
|
|
210
|
+
navigateToTheNextPage: "Zur nächsten Seite navigieren",
|
|
211
|
+
navigateToThePreviousPage: "Zur vorherigen Seite navigieren"
|
|
212
|
+
},
|
|
213
|
+
"en-US": {
|
|
214
|
+
navigateToTheFirstPage: "Navigate to the first page",
|
|
215
|
+
navigateToTheLastPage: "Navigate to the last page",
|
|
216
|
+
navigateToTheNextPage: "Navigate to the next page",
|
|
217
|
+
navigateToThePreviousPage: "Navigate to the previous page"
|
|
218
|
+
},
|
|
219
|
+
"es-ES": {
|
|
220
|
+
navigateToTheFirstPage: "Ir a la primera página",
|
|
221
|
+
navigateToTheLastPage: "Ir a la última página",
|
|
222
|
+
navigateToTheNextPage: "Ir a la página siguiente",
|
|
223
|
+
navigateToThePreviousPage: "Ir a la página anterior"
|
|
224
|
+
},
|
|
225
|
+
"fr-FR": {
|
|
226
|
+
navigateToTheFirstPage: "Accéder à la première page",
|
|
227
|
+
navigateToTheLastPage: "Accéder à la dernière page",
|
|
228
|
+
navigateToTheNextPage: "Accéder à la page suivante",
|
|
229
|
+
navigateToThePreviousPage: "Accéder à la page précédente"
|
|
230
|
+
},
|
|
231
|
+
"ja-JP": {
|
|
232
|
+
navigateToTheFirstPage: "最初のページに移動",
|
|
233
|
+
navigateToTheLastPage: "最後のページに移動",
|
|
234
|
+
navigateToTheNextPage: "次のページに移動",
|
|
235
|
+
navigateToThePreviousPage: "前のページに移動"
|
|
236
|
+
},
|
|
237
|
+
"pt-BR": {
|
|
238
|
+
navigateToTheFirstPage: "Ir para a primeira página",
|
|
239
|
+
navigateToTheLastPage: "Ir para a última página",
|
|
240
|
+
navigateToTheNextPage: "Ir para a próxima página",
|
|
241
|
+
navigateToThePreviousPage: "Ir para a página anterior"
|
|
242
|
+
}
|
|
243
|
+
}, dt = {
|
|
244
|
+
i18n: { messages: vt }
|
|
245
|
+
}, ft = /* @__PURE__ */ v({
|
|
246
|
+
...dt,
|
|
247
|
+
__name: "pagination-controls",
|
|
248
|
+
props: {
|
|
249
|
+
hasNext: { type: Boolean, default: null },
|
|
250
|
+
page: null,
|
|
251
|
+
totalPages: { default: null }
|
|
252
|
+
},
|
|
253
|
+
emits: ["navigate"],
|
|
254
|
+
setup(n, { emit: t }) {
|
|
255
|
+
const e = n, { t: a } = f(), o = _(() => e.page === 1), i = _(() => e.page === e.totalPages), u = _(() => !e.hasNext || i.value), l = _(() => {
|
|
256
|
+
const r = !e.hasNext, s = !e.totalPages;
|
|
257
|
+
return r || i.value || s;
|
|
258
|
+
});
|
|
259
|
+
return { __sfc: !0, props: e, emit: t, t: a, isCurrentPageFirst: o, isCurrentPageLast: i, isNextButtonDisabled: u, isLastPageButtonDisabled: l, navigate: (r) => {
|
|
260
|
+
t("navigate", r);
|
|
261
|
+
}, BentoButton: I, SkipLeft: X, SkipRight: nt, ChevronLeft: lt, ChevronRight: _t };
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
var mt = function() {
|
|
265
|
+
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
266
|
+
return e("ul", { staticClass: "b-pagination-controls" }, [e("li", { staticClass: "b-pagination-controls__item" }, [e(a.BentoButton, { attrs: { disabled: a.isCurrentPageFirst, variant: "tertiary", condensed: "" }, on: { click: function(o) {
|
|
267
|
+
return a.navigate(1);
|
|
268
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
269
|
+
return [e(a.SkipLeft, { attrs: { "svg-title": a.t("navigateToTheFirstPage") } })];
|
|
270
|
+
}, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e(a.BentoButton, { attrs: { disabled: a.isCurrentPageFirst, variant: "tertiary", condensed: "" }, on: { click: function(o) {
|
|
271
|
+
return a.navigate(t.page - 1);
|
|
272
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
273
|
+
return [e(a.ChevronLeft, { attrs: { "svg-title": a.t("navigateToThePreviousPage") } })];
|
|
274
|
+
}, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e(a.BentoButton, { attrs: { disabled: a.isNextButtonDisabled, variant: "tertiary", condensed: "" }, on: { click: function(o) {
|
|
275
|
+
return a.navigate(t.page + 1);
|
|
276
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
277
|
+
return [e(a.ChevronRight, { attrs: { "svg-title": a.t("navigateToTheNextPage") } })];
|
|
278
|
+
}, proxy: !0 }]) })], 1), e("li", { staticClass: "b-pagination-controls__item" }, [e(a.BentoButton, { attrs: { disabled: a.isLastPageButtonDisabled, variant: "tertiary", condensed: "" }, on: { click: function(o) {
|
|
279
|
+
return a.navigate(t.totalPages);
|
|
280
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
281
|
+
return [e(a.SkipRight, { attrs: { "svg-title": a.t("navigateToTheLastPage") } })];
|
|
282
|
+
}, proxy: !0 }]) })], 1)]);
|
|
283
|
+
}, ht = [], Pt = /* @__PURE__ */ p(
|
|
284
|
+
ft,
|
|
285
|
+
mt,
|
|
286
|
+
ht,
|
|
287
|
+
!1,
|
|
288
|
+
null,
|
|
289
|
+
"65f213a4"
|
|
290
|
+
);
|
|
291
|
+
const Ct = Pt.exports, bt = {}, Tt = /* @__PURE__ */ v({
|
|
292
|
+
...bt,
|
|
293
|
+
__name: "pagination",
|
|
294
|
+
props: {
|
|
295
|
+
ariaLabel: { default: null },
|
|
296
|
+
hasNext: { type: Boolean, default: null },
|
|
297
|
+
hidePageSize: { type: Boolean, default: !1 },
|
|
298
|
+
page: { default: 1 },
|
|
299
|
+
size: { default: 20 },
|
|
300
|
+
totalCount: { default: null },
|
|
301
|
+
virtualScroll: { type: Boolean, default: !1 }
|
|
302
|
+
},
|
|
303
|
+
emits: ["navigate", "items-page", "update:page", "update:size"],
|
|
304
|
+
setup(n, { emit: t }) {
|
|
305
|
+
const e = n, a = y(), o = R(a), i = B(), u = T(i["aria-label"]), { ariaLabel: l } = N(e), c = O({
|
|
306
|
+
ariaLabel: u.value,
|
|
307
|
+
// TODO: take this line away when the aria-label props is removed
|
|
308
|
+
label: l
|
|
309
|
+
}), r = _(
|
|
310
|
+
() => !e.totalCount || !e.size ? null : Math.ceil(e.totalCount / e.size)
|
|
311
|
+
), s = (g, w) => {
|
|
312
|
+
e.hidePageSize ? t("navigate", g) : t("navigate", g, w ?? (e == null ? void 0 : e.size)), t("update:page", g);
|
|
313
|
+
};
|
|
314
|
+
return { __sfc: !0, props: e, emit: t, slots: a, hasSlot: o, attrs: i, ariaLabelAttribute: u, ariaLabel: l, computedAriaLabel: c, totalPages: r, navigate: s, onPageSelected: (g) => {
|
|
315
|
+
s(g);
|
|
316
|
+
}, onItemsPerPageChange: (g) => {
|
|
317
|
+
t("items-page", g), t("update:size", g), s(1, g);
|
|
318
|
+
}, navigationConditionalClasses: () => ({
|
|
319
|
+
"b-pagination__navigation--only-page-navigator": !o("default") && e.hidePageSize
|
|
320
|
+
}), BentoTypography: d, BentoPaginationResultsPerPage: Z, BentoPaginationContext: K, BentoPaginationControls: Ct };
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
var Lt = function() {
|
|
324
|
+
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
325
|
+
return e("div", { staticClass: "b-pagination" }, [e("nav", { staticClass: "b-pagination__navigation", class: a.navigationConditionalClasses(), attrs: { "aria-label": a.computedAriaLabel } }, [t.hidePageSize ? a.hasSlot("default") ? e(a.BentoTypography, [t._t("default")], 2) : t._e() : e(a.BentoPaginationResultsPerPage, { staticClass: "b-pagination__results-per-page", attrs: { "items-per-page": t.size, "total-count": t.totalCount }, on: { select: a.onItemsPerPageChange } }), e("div", { staticClass: "b-pagination__page-navigator" }, [e(a.BentoPaginationContext, { staticClass: "b-pagination__context", attrs: { "total-pages": a.totalPages, page: t.page, "total-count": t.totalCount, "virtual-scroll": t.virtualScroll }, on: { "page-selected": a.onPageSelected } }), e("div", { staticClass: "b-pagination__divider" }), e(a.BentoPaginationControls, { staticClass: "b-pagination__controls", attrs: { "has-next": t.hasNext, page: t.page, "total-pages": a.totalPages }, on: { navigate: a.navigate } })], 1)], 1)]);
|
|
326
|
+
}, xt = [], $t = /* @__PURE__ */ p(
|
|
327
|
+
Tt,
|
|
328
|
+
Lt,
|
|
329
|
+
xt,
|
|
330
|
+
!1,
|
|
331
|
+
null,
|
|
332
|
+
"b3d5cd4e"
|
|
333
|
+
);
|
|
334
|
+
const Et = $t.exports;
|
|
335
|
+
export {
|
|
336
|
+
Et as B
|
|
337
|
+
};
|
|
338
|
+
//# sourceMappingURL=pagination.B-EP9Lkq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.B-EP9Lkq.js","sources":["../../src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue","../../src/components/pagination/components/pagination-context/pagination-context.vue","../../../ui-assets/icons-16/dist/vue/skip-left.vue","../../../ui-assets/icons-16/dist/vue/skip-right.vue","../../../ui-assets/icons-16/dist/vue/chevron-left-small.vue","../../../ui-assets/icons-16/dist/vue/chevron-right-small.vue","../../src/components/pagination/components/pagination-controls/pagination-controls.vue","../../src/components/pagination/pagination.vue"],"sourcesContent":["<template>\n <div class=\"b-pagination-results-per-page\">\n <bento-typography el=\"div\">\n <component\n :is=\"i18nComponent\"\n v-bind=\"getI18nProps(translationPathKey)\"\n class=\"b-pagination-results-per-page__dropdown-container\"\n tag=\"div\"\n :plural=\"totalCount\"\n >\n <template #itemCount>\n <bento-dropdown\n :id=\"dropdownId\"\n :aria-label=\"t(translationPathKey, { itemCount: itemsPerPage, totalCount })\"\n class=\"b-pagination-results-per-page__dropdown\"\n condensed\n :items=\"dropdownOptions\"\n :value=\"itemsPerPage\"\n @input=\"onSelectChange\"\n />\n </template>\n <template v-if=\"!!totalCount\" #totalCount>{{ totalCount }}</template>\n </component>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoDropdown } from '@/components/dropdown';\n import { generateUid } from '@/core/utils/ts';\n import { getI18nComponent, getI18nProps, useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const PREDEFINED_RESULTS_PER_PAGE_VALUES = [\n { label: '10', value: 10 },\n { label: '20', value: 20 },\n { label: '50', value: 50 },\n { label: '75', value: 75 },\n { label: '100', value: 100 },\n ];\n\n const props = defineProps({\n itemsPerPage: { default: 50 },\n totalCount: { default: null }\n});\n\n const emit = defineEmits([\"select\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const dropdownId = generateUid('b-pagination-context-number-elements');\n const dropdownOptions = ref(PREDEFINED_RESULTS_PER_PAGE_VALUES);\n const i18nComponent = getI18nComponent();\n\n const onSelectChange = (selectedNumberOfResults: number) => {\n emit('select', selectedNumberOfResults);\n };\n\n const translationPathKey = computed(() => (props.totalCount ? 'showingItemsWithTotal' : 'showingItems'));\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination-results-per-page.scss\" />\n","<template>\n <div class=\"b-pagination-context\">\n <bento-typography v-if=\"totalPages > 1\" el=\"div\">\n <component :is=\"i18nComponent\" v-bind=\"getI18nProps('pageNumber')\" tag=\"div\">\n <template #page>\n <bento-dropdown\n :id=\"dropdownId\"\n :aria-label=\"t('pageNumber', { page })\"\n class=\"b-pagination-context__dropdown\"\n condensed\n :items=\"listOfAvailablePages\"\n :value=\"page\"\n :virtual-scroll=\"virtualScroll\"\n @input=\"onPageSelectChange\"\n />\n </template>\n </component>\n </bento-typography>\n <bento-typography v-else-if=\"totalPages === 1\" el=\"span\">\n {{ t('pageOneOfOne') }}\n </bento-typography>\n <bento-typography v-else el=\"span\">\n {{ t('pageNumber', { page }) }}\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoListboxOptionItem } from '@/types';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n import { getI18nComponent, getI18nProps, useI18n } from '@/utils/ts/i18n';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n page: { default: 1 },\n totalPages: { default: null },\n virtualScroll: { type: Boolean, default: false }\n});\n const emit = defineEmits([\"page-selected\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const dropdownId = generateUid('bento-pagination-context-current-page');\n const onPageSelectChange = (selectedPage: string | number) => emit('page-selected', selectedPage);\n const i18nComponent = getI18nComponent();\n\n // Generate a list of pages from 1 to \"totalPages\"\n const transformIntoOption = (value: number): BentoListboxOptionItem => ({\n label: value.toString(),\n value,\n });\n const transformToPageNumber = (_, index) => index + 1;\n const listOfAvailablePages = computed(() =>\n Array.from(new Array(props.totalPages), transformToPageNumber).map(transformIntoOption)\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination-context.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M9.06055 8.00011L12.0605 5.00011L10.9999 3.93945L6.93923 8.00011L10.9999 12.0608L12.0605 11.0001L9.06055 8.00011Z\"/><path fill=\"#00112C\" d=\"M4.25 4.25L4.25 11.75H5.75L5.75 4.25L4.25 4.25Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M6.93945 7.99962L3.93945 10.9996L5.00011 12.0603L9.06077 7.99963L5.00011 3.93896L3.93945 4.99963L6.93945 7.99962Z\"/><path fill=\"#00112C\" d=\"M11.75 11.7497V4.24974L10.25 4.24974V11.7497H11.75Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M10.5608 5.00011L7.56077 8.00011L10.5608 11.0001L9.50011 12.0608L5.43945 8.00011L9.50011 3.93945L10.5608 5.00011Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M5.43924 10.9999L8.43924 7.99989L5.43924 4.99989L6.4999 3.93923L10.5606 7.99989L6.4999 12.0605L5.43924 10.9999Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <ul class=\"b-pagination-controls\">\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the first page -->\n <bento-button :disabled=\"isCurrentPageFirst\" variant=\"tertiary\" condensed @click=\"navigate(1)\">\n <template #iconLeft>\n <skip-left :svg-title=\"t('navigateToTheFirstPage')\" />\n </template>\n </bento-button>\n </li>\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the previous page -->\n <bento-button :disabled=\"isCurrentPageFirst\" variant=\"tertiary\" condensed @click=\"navigate(page - 1)\">\n <template #iconLeft>\n <chevron-left :svg-title=\"t('navigateToThePreviousPage')\" />\n </template>\n </bento-button>\n </li>\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the next page -->\n <bento-button :disabled=\"isNextButtonDisabled\" variant=\"tertiary\" condensed @click=\"navigate(page + 1)\">\n <template #iconLeft>\n <chevron-right :svg-title=\"t('navigateToTheNextPage')\" />\n </template>\n </bento-button>\n </li>\n <li class=\"b-pagination-controls__item\">\n <!-- Navigate to the last page -->\n <bento-button\n :disabled=\"isLastPageButtonDisabled\"\n variant=\"tertiary\"\n condensed\n @click=\"navigate(totalPages)\"\n >\n <template #iconLeft>\n <skip-right :svg-title=\"t('navigateToTheLastPage')\" />\n </template>\n </bento-button>\n </li>\n </ul>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import { BentoButton } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import SkipLeft from '@adyen/ui-assets-icons-16/vue/skip-left';\n import SkipRight from '@adyen/ui-assets-icons-16/vue/skip-right';\n import ChevronLeft from '@adyen/ui-assets-icons-16/vue/chevron-left-small';\n import ChevronRight from '@adyen/ui-assets-icons-16/vue/chevron-right-small';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n hasNext: { type: Boolean, default: null },\n page: null,\n totalPages: { default: null }\n});\n\n const emit = defineEmits([\"navigate\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isCurrentPageFirst = computed(() => props.page === 1);\n const isCurrentPageLast = computed(() => props.page === props.totalPages);\n const isNextButtonDisabled = computed(() => {\n const hasNoNextPage = !props.hasNext;\n return hasNoNextPage || isCurrentPageLast.value;\n });\n const isLastPageButtonDisabled = computed(() => {\n const hasNoNextPage = !props.hasNext;\n const hasNoTotalPagesNumber = !props.totalPages;\n\n return hasNoNextPage || isCurrentPageLast.value || hasNoTotalPagesNumber;\n });\n\n const navigate = (pageArg: number) => {\n emit('navigate', pageArg);\n };\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination-controls.scss\" />\n","<template>\n <div class=\"b-pagination\">\n <nav :aria-label=\"computedAriaLabel\" class=\"b-pagination__navigation\" :class=\"navigationConditionalClasses()\">\n <bento-pagination-results-per-page\n v-if=\"!hidePageSize\"\n class=\"b-pagination__results-per-page\"\n :items-per-page=\"size\"\n :total-count=\"totalCount\"\n @select=\"onItemsPerPageChange\"\n />\n <bento-typography v-else-if=\"hasSlot('default')\"><slot /></bento-typography>\n\n <div class=\"b-pagination__page-navigator\">\n <bento-pagination-context\n class=\"b-pagination__context\"\n :total-pages=\"totalPages\"\n :page=\"page\"\n :total-count=\"totalCount\"\n :virtual-scroll=\"virtualScroll\"\n @page-selected=\"onPageSelected\"\n />\n\n <div class=\"b-pagination__divider\"></div>\n\n <bento-pagination-controls\n class=\"b-pagination__controls\"\n :has-next=\"hasNext\"\n :page=\"page\"\n :total-pages=\"totalPages\"\n @navigate=\"navigate\"\n />\n </div>\n </nav>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, toRefs, useAttrs, useSlots } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import BentoPaginationResultsPerPage from './components/pagination-results-per-page/pagination-results-per-page.vue';\n import BentoPaginationContext from './components/pagination-context/pagination-context.vue';\n import BentoPaginationControls from './components/pagination-controls/pagination-controls.vue';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useHasSlot } from '@/composables';\n import type { BentoPaginationProps } from './pagination.types';\n\n const props = defineProps({\n ariaLabel: { default: null },\n hasNext: { type: Boolean, default: null },\n hidePageSize: { type: Boolean, default: false },\n page: { default: 1 },\n size: { default: 20 },\n totalCount: { default: null },\n virtualScroll: { type: Boolean, default: false }\n});\n\n const emit = defineEmits([\"navigate\", \"items-page\", \"update:page\", \"update:size\"]);\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const attrs = useAttrs();\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n });\n\n const totalPages = computed(() =>\n !props.totalCount || !props.size ? null : Math.ceil(props.totalCount / props.size)\n );\n\n const navigate = (pageArg: number, itemsPerPage?: number) => {\n if (props.hidePageSize) {\n emit('navigate', pageArg);\n } else {\n emit('navigate', pageArg, itemsPerPage ?? props?.size);\n }\n emit('update:page', pageArg);\n };\n\n const onPageSelected = (pageNumber: number) => {\n navigate(pageNumber);\n };\n\n const onItemsPerPageChange = (elements: number) => {\n emit('items-page', elements);\n emit('update:size', elements);\n\n // Always go to first page when the\n // number of items page changes\n navigate(1, elements);\n };\n\n const navigationConditionalClasses = () => ({\n 'b-pagination__navigation--only-page-navigator': !hasSlot('default') && props.hidePageSize,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Paginiation component to help users page through data sets.\n *\n * There are two ways of doing navigation in this component:\n * 1. (Basic) You tell the component if there is a next page (hasNext)\n * 2. (Enhanced) You tell the component:\n * - How many total items exist (totalCount)\n * - The max number of items that you show/fetch per page (size)\n * - In this case you should not set the hasNext props\n *\n * If you have the data available and opt to use the Enhanced way you get extra controls:\n * - Page dropdown selector\n * - Last page button\n * - \"Showing 10 of 200 items\" text\n *\n * @usage\n * import { BentoPagination } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoPagination },\n * template: `\n * <bento-pagination :has-next=\"isNextPage\" />\n * `,\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./pagination.scss\" />\n"],"names":["__default__$3","messages$2","PREDEFINED_RESULTS_PER_PAGE_VALUES","t","useI18n","dropdownId","generateUid","dropdownOptions","ref","i18nComponent","getI18nComponent","onSelectChange","selectedNumberOfResults","emit","translationPathKey","computed","props","__default__$2","messages$1","onPageSelectChange","selectedPage","transformIntoOption","value","transformToPageNumber","_","index","listOfAvailablePages","uuid$3","_sfc_main$5","uuid$2","_sfc_main$4","uuid$1","_sfc_main$3","uuid","_sfc_main$2","__default__$1","messages","isCurrentPageFirst","isCurrentPageLast","isNextButtonDisabled","isLastPageButtonDisabled","hasNoNextPage","hasNoTotalPagesNumber","pageArg","__default__","slots","useSlots","hasSlot","useHasSlot","attrs","useAttrs","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","totalPages","navigate","itemsPerPage","pageNumber","elements"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;iBA9BAC,IAAA;AAAA,MAA2C,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACd,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACA,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACA,EAAA,OAAA,MAAA,OAAA,GAAA;AAAA,MACA,EAAA,OAAA,OAAA,OAAA,IAAA;AAAA,IACE,GAU/B,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,sCAAA,GACAC,IAAAC,EAAAN,CAAA,GACAO,IAAAC,EAAA,GAEAC,IAAA,CAAAC,MAAA;AACI,MAAAC,EAAA,UAAAD,CAAA;AAAA,IAAsC,GAG1CE,IAAAC,EAAA,MAAAC,EAAA,aAAA,0BAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCAAC,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;iBAnBA,EAAA,GAAAf,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,uCAAA,GACAa,IAAA,CAAAC,MAAAP,EAAA,iBAAAO,CAAA,GACAX,IAAAC,EAAA,GAGAW,IAAA,CAAAC,OAAA;AAAA,MAAwE,OAAAA,EAAA,SAAA;AAAA,MAC9C,OAAAA;AAAA,IACtB,IAEJC,IAAA,CAAAC,GAAAC,MAAAA,IAAA,GACAC,IAAAX;AAAA,MAA6B,MAAA,MAAA,KAAA,IAAA,MAAAC,EAAA,UAAA,GAAAO,CAAA,EAAA,IAAAF,CAAA;AAAA,IAC6D;;;;;;;;;;;;;;;;;;AClD9F,IAAAM,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAE,IAAA;AAEA,MAAAC,KAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;ACPA,IAAAE,IAAA;AAEA,MAAAC,KAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCsEIE,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,GAAA;AAEf;;;;;;;;;;iBAvBA,EAAA,GAAAjC,EAAA,IAAAC,EAAA,GAEAiC,IAAAtB,EAAA,MAAAC,EAAA,SAAA,CAAA,GACAsB,IAAAvB,EAAA,MAAAC,EAAA,SAAAA,EAAA,UAAA,GACAuB,IAAAxB,EAAA,MACI,CAAAC,EAAA,WACAsB,EAAA,KAA0C,GAE9CE,IAAAzB,EAAA,MAAA;AACI,YAAA0B,IAAA,CAAAzB,EAAA,SACA0B,IAAA,CAAA1B,EAAA;AAEA,aAAAyB,KAAAH,EAAA,SAAAI;AAAA,IAAmD,CAAA;8JAGvD,CAAAC,MAAA;AACI,MAAA9B,EAAA,YAAA8B,CAAA;AAAA,IAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBCiD5BC,KAAA,CAAA;;;;;;;;;;;;;;iBAtEAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,GACAC,IAAA3C,EAAAyC,EAAA,YAAA,CAAA,GACA,EAAA,WAAAG,EAAA,IAAAC,EAAArC,CAAA,GACAsC,IAAAC,EAAA;AAAA,MAAuC,WAAAJ,EAAA;AAAA;AAAA,MACL,OAAAC;AAAA,IAEvB,CAAA,GAGXI,IAAAzC;AAAA,MAAmB,MAAA,CAAAC,EAAA,cAAA,CAAAA,EAAA,OAAA,OAAA,KAAA,KAAAA,EAAA,aAAAA,EAAA,IAAA;AAAA,IACkE,GAGrFyC,IAAA,CAAAd,GAAAe,MAAA;AACI,MAAA1C,EAAA,eACIH,EAAA,YAAA8B,CAAA,IAEA9B,EAAA,YAAA8B,GAAAe,MAAA1C,KAAA,gBAAAA,EAAA,KAAA,GAEJH,EAAA,eAAA8B,CAAA;AAAA,IAA2B;kLAG/B,CAAAgB,MAAA;AACI,MAAAF,EAAAE,CAAA;AAAA,IAAmB,yBAGvB,CAAAC,MAAA;AACI,MAAA/C,EAAA,cAAA+C,CAAA,GACA/C,EAAA,eAAA+C,CAAA,GAIAH,EAAA,GAAAG,CAAA;AAAA,IAAoB,iCAGxB,OAAA;AAAA,MAA4C,iDAAA,CAAAb,EAAA,SAAA,KAAA/B,EAAA;AAAA,IACsC;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ref as n, watch as i, defineComponent as l, toRef as h, computed as y, inject as v } from "vue";
|
|
2
|
+
import { B as C } from "./typography.J1v_SPG3.js";
|
|
3
|
+
import { S as g } from "./summary-grid.keys.CxTf_FOc.js";
|
|
4
|
+
import { n as c } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
+
import "../assets/payment-method.css";
|
|
6
|
+
const b = (a) => `https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/images/logos/${a}.svg`, I = (a) => {
|
|
7
|
+
const t = n(a), e = n();
|
|
8
|
+
return i(
|
|
9
|
+
t,
|
|
10
|
+
(s) => {
|
|
11
|
+
s == null || s === "Unknowncard" || (e.value = b(s));
|
|
12
|
+
},
|
|
13
|
+
{ immediate: !0 }
|
|
14
|
+
), e;
|
|
15
|
+
};
|
|
16
|
+
let o = 0;
|
|
17
|
+
const w = {
|
|
18
|
+
beforeCreate() {
|
|
19
|
+
this.uuid = o.toString(), o += 1;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var S = function() {
|
|
23
|
+
var t = this, e = t._self._c;
|
|
24
|
+
return e("svg", t._b({ staticClass: "ui-assets-icons-pm", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "40", height: "26", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-pm-unknowncard__a" + t.uuid + ")" } }, [e("path", { attrs: { fill: "#fff", d: "M0 0H40V26H0V0Z" } }), e("path", { attrs: { fill: "#00112C", d: "M32 9V8C32 7.20435 31.6839 6.44129 31.1213 5.87868C30.5587 5.31607 29.7956 5 29 5H11C10.2044 5 9.44129 5.31607 8.87868 5.87868C8.31607 6.44129 8 7.20435 8 8V9H32Z" } }), e("path", { attrs: { fill: "#00112C", d: "M8 12V18C8 18.7956 8.31607 19.5587 8.87868 20.1213C9.44129 20.6839 10.2044 21 11 21H29C29.7956 21 30.5587 20.6839 31.1213 20.1213C31.6839 19.5587 32 18.7956 32 18V12H8Z" } }), e("rect", { attrs: { width: "5", height: "2", x: "24", y: "16", fill: "#fff", rx: ".5" } })]), e("defs", [e("clipPath", { attrs: { id: "uia-ui-assets/icons-pm-unknowncard__a" + t.uuid } }, [e("rect", { attrs: { width: "40", height: "26", fill: "#fff" } })])])]);
|
|
25
|
+
}, M = [], k = /* @__PURE__ */ c(
|
|
26
|
+
w,
|
|
27
|
+
S,
|
|
28
|
+
M,
|
|
29
|
+
!1,
|
|
30
|
+
null,
|
|
31
|
+
null
|
|
32
|
+
);
|
|
33
|
+
const U = k.exports, $ = l({
|
|
34
|
+
name: "bento-payment-method"
|
|
35
|
+
}), x = /* @__PURE__ */ l({
|
|
36
|
+
...$,
|
|
37
|
+
props: {
|
|
38
|
+
label: null,
|
|
39
|
+
small: { type: Boolean, default: !1 },
|
|
40
|
+
type: { default: "Unknowncard" }
|
|
41
|
+
},
|
|
42
|
+
setup(a) {
|
|
43
|
+
const t = a, e = h(t, "type"), s = n(!1), m = I(e), _ = y(() => ({
|
|
44
|
+
"b-payment-method__icon--small": t.small
|
|
45
|
+
})), r = v(
|
|
46
|
+
g,
|
|
47
|
+
() => ({
|
|
48
|
+
isSummaryGridLayout: !1
|
|
49
|
+
})
|
|
50
|
+
), { isSummaryGridLayout: d } = r(), p = () => {
|
|
51
|
+
s.value = !0;
|
|
52
|
+
};
|
|
53
|
+
return i(
|
|
54
|
+
() => e.value,
|
|
55
|
+
(u, f) => {
|
|
56
|
+
u !== f && (s.value = !1);
|
|
57
|
+
}
|
|
58
|
+
), { __sfc: !0, props: t, type: e, hasErroredOnImage: s, paymentMethodIconSrc: m, conditionalIconClasses: _, registerPaymentMethodInSummaryGrid: r, isSummaryGridLayout: d, onSrcError: p, BentoTypography: C, UnknownCardIcon: U };
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var B = function() {
|
|
62
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
63
|
+
return e("div", { staticClass: "b-payment-method" }, [e("div", { staticClass: "b-payment-method__icon-container" }, [s.type !== "Unknowncard" && !s.hasErroredOnImage ? e("img", { staticClass: "b-payment-method__icon", class: s.conditionalIconClasses, attrs: { "aria-hidden": "true", alt: t.label, src: s.paymentMethodIconSrc }, on: { error: s.onSrcError } }) : e(s.UnknownCardIcon, { attrs: { "svg-title": t.label, "aria-hidden": "true" } })], 1), e("div", { staticClass: "b-payment-method__label" }, [s.isSummaryGridLayout ? e("span", [t._v(t._s(t.label))]) : e(s.BentoTypography, { attrs: { el: "span" } }, [t._v(t._s(t.label))])], 1)]);
|
|
64
|
+
}, E = [], H = /* @__PURE__ */ c(
|
|
65
|
+
x,
|
|
66
|
+
B,
|
|
67
|
+
E,
|
|
68
|
+
!1,
|
|
69
|
+
null,
|
|
70
|
+
"f14ac51c"
|
|
71
|
+
);
|
|
72
|
+
const O = H.exports;
|
|
73
|
+
export {
|
|
74
|
+
O as B
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=payment-method.Cx4nPDtE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.Cx4nPDtE.js","sources":["../../src/components/payment-method/composables/use-payment-icon/use-payment-icon.ts","../../../ui-assets/icons-pm/dist/vue/unknowncard.vue","../../src/components/payment-method/payment-method.vue"],"sourcesContent":["import { ref, Ref, watch } from 'vue';\n\n/**\n * Generates the payment icon URl from a payment icons string.\n * @param paymentType - the payment icon you wish to generate a URL for.\n * @returns the payment icon URL to the SVG for a specific payment icon.\n */\nexport const paymentMethodToCdnUrl = (paymentType: string) =>\n `https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/images/logos/${paymentType}.svg`;\n/**\n * Dynamically retrieves the payment method icon SVG from the @adyen/ui-assets-payment-method-icons package.\n *\n * @param type the type of payment method\n * @param useFallback if fallback icon should be used in case of error\n * @returns\n */\nexport const usePaymentIcon = (type: Ref<string>) => {\n const paymentType = ref(type);\n const paymentIconSrc = ref<string>();\n\n watch(\n paymentType,\n newPaymentType => {\n if (newPaymentType == null || newPaymentType === 'Unknowncard') {\n return;\n }\n // TODO: what about when to use checkoutshopper-test? Should we add this to the config of Bento?\n paymentIconSrc.value = paymentMethodToCdnUrl(newPaymentType);\n },\n { immediate: true }\n );\n\n return paymentIconSrc;\n};\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-pm\" xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"26\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-ui-assets/icons-pm-unknowncard__a' + uuid + ')'\"><path fill=\"#fff\" d=\"M0 0H40V26H0V0Z\"/><path fill=\"#00112C\" d=\"M32 9V8C32 7.20435 31.6839 6.44129 31.1213 5.87868C30.5587 5.31607 29.7956 5 29 5H11C10.2044 5 9.44129 5.31607 8.87868 5.87868C8.31607 6.44129 8 7.20435 8 8V9H32Z\"/><path fill=\"#00112C\" d=\"M8 12V18C8 18.7956 8.31607 19.5587 8.87868 20.1213C9.44129 20.6839 10.2044 21 11 21H29C29.7956 21 30.5587 20.6839 31.1213 20.1213C31.6839 19.5587 32 18.7956 32 18V12H8Z\"/><rect width=\"5\" height=\"2\" x=\"24\" y=\"16\" fill=\"#fff\" rx=\".5\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-pm-unknowncard__a' + uuid\"><rect width=\"40\" height=\"26\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-payment-method\">\n <div class=\"b-payment-method__icon-container\">\n <img\n v-if=\"type !== 'Unknowncard' && !hasErroredOnImage\"\n aria-hidden=\"true\"\n class=\"b-payment-method__icon\"\n :class=\"conditionalIconClasses\"\n :alt=\"label\"\n :src=\"paymentMethodIconSrc\"\n @error=\"onSrcError\"\n />\n <unknown-card-icon v-else :svg-title=\"label\" aria-hidden=\"true\" />\n </div>\n <div class=\"b-payment-method__label\">\n <span v-if=\"isSummaryGridLayout\">{{ label }}</span>\n <bento-typography v-else el=\"span\">{{ label }}</bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, ref, toRef, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { SUMMARY_GRID_LAYOUT_INJECTION_KEY } from '@/components/summary-grid/summary-grid.keys';\n import { BentoSummaryGridLayout } from '@/components/summary-grid';\n import { usePaymentIcon } from './composables/use-payment-icon/use-payment-icon';\n import type { BentoPaymentMethodProps } from './payment-method.types';\n import UnknownCardIcon from '@adyen/ui-assets-payment-method-icons/vue/unknowncard';\n\n const props = defineProps({\n label: null,\n small: { type: Boolean, default: false },\n type: { default: 'Unknowncard' }\n});\n const type = toRef(props, 'type');\n const hasErroredOnImage = ref(false);\n const paymentMethodIconSrc = usePaymentIcon(type);\n const conditionalIconClasses = computed(() => ({\n 'b-payment-method__icon--small': props.small,\n }));\n\n /* == Summary-grid styles == */\n const registerPaymentMethodInSummaryGrid: BentoSummaryGridLayout = inject(\n SUMMARY_GRID_LAYOUT_INJECTION_KEY,\n () => ({\n isSummaryGridLayout: false,\n })\n );\n\n const { isSummaryGridLayout } = registerPaymentMethodInSummaryGrid();\n\n /**\n * This funciton is fired if the payment image source is not valid and has thrown an error.\n */\n const onSrcError = () => {\n hasErroredOnImage.value = true;\n };\n\n // Reset the image error to be able to load the new payment type\n watch(\n () => type.value,\n (newType, oldType) => {\n if (newType !== oldType) {\n hasErroredOnImage.value = false;\n }\n }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * A payment method type component to display the type's icon and label.\n *\n * @example\n * import { BentoPaymentMethod} from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoPaymentMethod },\n * template: `\n * <bento-payment-method type=\"ideal\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-payment-method',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./payment-method.scss\" />\n"],"names":["paymentMethodToCdnUrl","paymentType","usePaymentIcon","type","ref","paymentIconSrc","watch","newPaymentType","uuid","_sfc_main$1","__default__","defineComponent","toRef","props","hasErroredOnImage","paymentMethodIconSrc","conditionalIconClasses","computed","registerPaymentMethodInSummaryGrid","inject","SUMMARY_GRID_LAYOUT_INJECTION_KEY","isSummaryGridLayout","onSrcError","newType","oldType"],"mappings":";;;;;AAOO,MAAAA,IAAA,CAAAC,MAAA,2EAAAA,CAAA,QASMC,IAAA,CAAAC,MAAA;AACT,QAAAF,IAAAG,EAAAD,CAAA,GACAE,IAAAD,EAAA;AAEA,SAAAE;AAAA,IAAAL;AAAA,IACI,CAAAM,MAAA;AAEI,MAAAA,KAAA,QAAAA,MAAA,kBAIAF,EAAA,QAAAL,EAAAO,CAAA;AAAA,IAA2D;AAAA,IAC/D,EAAA,WAAA,GAAA;AAAA,EACkB,GAGtBF;AACJ;AC1BA,IAAAG,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;qBCsEIE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;iBAnDAR,IAAAS,EAAAC,GAAA,MAAA,GACAC,IAAAV,EAAA,EAAA,GACAW,IAAAb,EAAAC,CAAA,GACAa,IAAAC,EAAA,OAAA;AAAA,MAA+C,iCAAAJ,EAAA;AAAA,IACJ,EAAA,GAI3CK,IAAAC;AAAA,MAAmEC;AAAA,MAC/D,OAAA;AAAA,QACO,qBAAA;AAAA,MACkB;AAAA,IACzB,GAGJ,EAAA,qBAAAC,EAAA,IAAAH,EAAA,GAKAI,IAAA,MAAA;AACI,MAAAR,EAAA,QAAA;AAAA,IAA0B;AAI9B,WAAAR;AAAA,MAAA,MAAAH,EAAA;AAAA,MACe,CAAAoB,GAAAC,MAAA;AAEP,QAAAD,MAAAC,MACIV,EAAA,QAAA;AAAA,MACJ;AAAA,IACJ;;;;;;;;;;;;;;;"}
|