@adyen/bento-vue3 1.49.0 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +441 -657
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.Cf184uiI.js → accordion-item.DLyCF015.js} +2 -2
- package/dist/chunks/{accordion-item.Cf184uiI.js.map → accordion-item.DLyCF015.js.map} +1 -1
- package/dist/chunks/{action-bar.r_Vt4XIu.js → action-bar.BW9db7ja.js} +6 -6
- package/dist/chunks/{action-bar.r_Vt4XIu.js.map → action-bar.BW9db7ja.js.map} +1 -1
- package/dist/chunks/{alert.Dd2DYCZ1.js → alert.eqWeCHyL.js} +25 -24
- package/dist/chunks/alert.eqWeCHyL.js.map +1 -0
- package/dist/chunks/{base-modal.Bis0B1AC.js → base-modal.BRYHc9Ez.js} +5 -5
- package/dist/chunks/{base-modal.Bis0B1AC.js.map → base-modal.BRYHc9Ez.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C5LguXWO.js → button-actions-with-menu.Hl8tUKa4.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C5LguXWO.js.map → button-actions-with-menu.Hl8tUKa4.js.map} +1 -1
- package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BPnsl_QP.js} +4 -4
- package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BPnsl_QP.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.6HMG0xEY.js} +2 -2
- package/dist/chunks/{button.Cneb6rPP.js.map → button.6HMG0xEY.js.map} +1 -1
- package/dist/chunks/{calendar.BdLQOioy.js → calendar.DfN1__E_.js} +3 -3
- package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DfN1__E_.js.map} +1 -1
- package/dist/chunks/{card.BAg7yMMT.js → card.BwC4MSjn.js} +3 -3
- package/dist/chunks/{card.BAg7yMMT.js.map → card.BwC4MSjn.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CxWYSBy1.js → checkbox-group.Bzd-qpJ-.js} +4 -4
- package/dist/chunks/{checkbox-group.CxWYSBy1.js.map → checkbox-group.Bzd-qpJ-.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.XtCjXis9.js} +12 -11
- package/dist/chunks/checkbox-input.XtCjXis9.js.map +1 -0
- package/dist/chunks/{checkbox.bXN3Yann.js → checkbox.DJRe4ync.js} +17 -17
- package/dist/chunks/{checkbox.bXN3Yann.js.map → checkbox.DJRe4ync.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.D9gNCN0T.js} +4 -4
- package/dist/chunks/checkmark-circle-fill.D9gNCN0T.js.map +1 -0
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.D7l69yBf.js} +4 -4
- package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
- package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.BF63HtOH.js} +6 -6
- package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
- package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.-0oLlHmh.js} +6 -6
- package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
- package/dist/chunks/chip.3T0x6FuI.js +74 -0
- package/dist/chunks/chip.3T0x6FuI.js.map +1 -0
- package/dist/chunks/{code-snippet.baKzBaM6.js → code-snippet.0HhLVaJR.js} +7 -7
- package/dist/chunks/{code-snippet.baKzBaM6.js.map → code-snippet.0HhLVaJR.js.map} +1 -1
- package/dist/chunks/{controls-group.BnbQO34k.js → controls-group.DnX2B502.js} +2 -2
- package/dist/chunks/{controls-group.BnbQO34k.js.map → controls-group.DnX2B502.js.map} +1 -1
- package/dist/chunks/{copy.CXCdp5ly.js → copy.BzeHBtEF.js} +10 -9
- package/dist/chunks/copy.BzeHBtEF.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.mY6ihJcA.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.BzSjakuO.js → cross-circle-fill.DLWo6wBR.js} +4 -4
- package/dist/chunks/cross-circle-fill.DLWo6wBR.js.map +1 -0
- package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CFrBIeYK.js} +4 -4
- package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
- package/dist/chunks/{cross.BZYw4R3N.js → cross.CbLEjiVy.js} +4 -4
- package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
- package/dist/chunks/{dashboard-section.B87x4XsH.js → dashboard-section.CySxZmlx.js} +3 -3
- package/dist/chunks/{dashboard-section.B87x4XsH.js.map → dashboard-section.CySxZmlx.js.map} +1 -1
- package/dist/chunks/{dashed-underline.dWsHmwUp.js → dashed-underline.CCKLdMc7.js} +3 -3
- package/dist/chunks/{dashed-underline.dWsHmwUp.js.map → dashed-underline.CCKLdMc7.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CZrGeSxR.js → data-grid-template.iM84gKjt.js} +3 -3
- package/dist/chunks/{data-grid-template.CZrGeSxR.js.map → data-grid-template.iM84gKjt.js.map} +1 -1
- package/dist/chunks/{data-grid.Duvh6mRu.js → data-grid.B2L_4qN7.js} +903 -923
- package/dist/chunks/data-grid.B2L_4qN7.js.map +1 -0
- package/dist/chunks/{date-picker.DXrMLxD0.js → date-picker.CMi0Kuy3.js} +5 -5
- package/dist/chunks/{date-picker.DXrMLxD0.js.map → date-picker.CMi0Kuy3.js.map} +1 -1
- package/dist/chunks/{date-range-picker.D7BDFoqM.js → date-range-picker.-KwSzmW_.js} +194 -193
- package/dist/chunks/date-range-picker.-KwSzmW_.js.map +1 -0
- package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.CXQafL9G.js} +5 -4
- package/dist/chunks/dialog-page.CXQafL9G.js.map +1 -0
- package/dist/chunks/{dot.cpdFEk6G.js → dot.BW-xtyjC.js} +4 -4
- package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js → dropdown-default-textbox.Filez078.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js.map → dropdown-default-textbox.Filez078.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DrBFdX2o.js → dropdown-tag.B4-3z8xz.js} +4 -4
- package/dist/chunks/{dropdown-tag.DrBFdX2o.js.map → dropdown-tag.B4-3z8xz.js.map} +1 -1
- package/dist/chunks/{dropdown.CWq-VlFX.js → dropdown.CRLx2Juh.js} +333 -325
- package/dist/chunks/dropdown.CRLx2Juh.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.BffIZp3a.js} +2 -2
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.BffIZp3a.js.map} +1 -1
- package/dist/chunks/{error-message.B3z5WkLF.js → error-message.68kVjf_N.js} +3 -3
- package/dist/chunks/{error-message.B3z5WkLF.js.map → error-message.68kVjf_N.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{expand.CJ162RaJ.js → expand.DusW7F7p.js} +4 -4
- package/dist/chunks/expand.DusW7F7p.js.map +1 -0
- package/dist/chunks/{file-uploader.NbsEgoj1.js → file-uploader.Cz89e0Ci.js} +275 -278
- package/dist/chunks/file-uploader.Cz89e0Ci.js.map +1 -0
- package/dist/chunks/{filter-bar.DP4SHAQj.js → filter-bar.bfUnCTPj.js} +981 -1039
- package/dist/chunks/filter-bar.bfUnCTPj.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.Bfk75Nei.js} +3 -3
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.Bfk75Nei.js.map} +1 -1
- package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.DtbsjfSM.js} +3 -3
- package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.DtbsjfSM.js.map} +1 -1
- package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.B7phPY2m.js} +2 -2
- package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.B7phPY2m.js.map} +1 -1
- package/dist/chunks/{header.BBIJHMkv.js → header.ITEMuMAU.js} +21 -21
- package/dist/chunks/{header.BBIJHMkv.js.map → header.ITEMuMAU.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js → info-icon-with-popover.pHwJeQxm.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js.map → info-icon-with-popover.pHwJeQxm.js.map} +1 -1
- package/dist/chunks/{info-icon.DQn8-VSp.js → info-icon.DUUa2W2z.js} +3 -3
- package/dist/chunks/{info-icon.DQn8-VSp.js.map → info-icon.DUUa2W2z.js.map} +1 -1
- package/dist/chunks/{info.DYNe2WnZ.js → info.CpPLBOVg.js} +4 -4
- package/dist/chunks/info.CpPLBOVg.js.map +1 -0
- package/dist/chunks/{input-field-password.SSiNunUz.js → input-field-password.zIUeIG8i.js} +37 -37
- package/dist/chunks/input-field-password.zIUeIG8i.js.map +1 -0
- package/dist/chunks/{input-field-phone-number._PCiyrci.js → input-field-phone-number.BGS23WKe.js} +2 -2
- package/dist/chunks/{input-field-phone-number._PCiyrci.js.map → input-field-phone-number.BGS23WKe.js.map} +1 -1
- package/dist/chunks/input-field.y006Hyc1.js +292 -0
- package/dist/chunks/input-field.y006Hyc1.js.map +1 -0
- package/dist/chunks/{inspector.types.6P_ZowVx.js → inspector.types.9S8hNOjR.js} +4 -4
- package/dist/chunks/{inspector.types.6P_ZowVx.js.map → inspector.types.9S8hNOjR.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.D3Fq5tt_.js} +19 -17
- package/dist/chunks/link.D3Fq5tt_.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.DIk4F59J.js → listbox-option-tag.D557okR8.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DIk4F59J.js.map → listbox-option-tag.D557okR8.js.map} +1 -1
- package/dist/chunks/menu.ZE0cTcKL.js +735 -0
- package/dist/chunks/menu.ZE0cTcKL.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.C9FhKsf9.js → modal-fullscreen.CjZh3U8e.js} +5 -5
- package/dist/chunks/{modal-fullscreen.C9FhKsf9.js.map → modal-fullscreen.CjZh3U8e.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js → modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js.map → modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js.map} +1 -1
- package/dist/chunks/{pagination.DdTcv8B6.js → pagination.BSp5RwM0.js} +37 -36
- package/dist/chunks/pagination.BSp5RwM0.js.map +1 -0
- package/dist/chunks/payment-method.BACjrzKP.js +125 -0
- package/dist/chunks/payment-method.BACjrzKP.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.BHGbUyMF.js → popover.DLyVEjCd.js} +106 -98
- package/dist/chunks/popover.DLyVEjCd.js.map +1 -0
- package/dist/chunks/{popper-container.BvGYgqiE.js → popper-container.Bx3CBGg6.js} +448 -444
- package/dist/chunks/popper-container.Bx3CBGg6.js.map +1 -0
- package/dist/chunks/{promo-banner.CKnonHmq.js → promo-banner.Clae7YGL.js} +2 -2
- package/dist/chunks/{promo-banner.CKnonHmq.js.map → promo-banner.Clae7YGL.js.map} +1 -1
- package/dist/chunks/{radio-group.CivaJaaQ.js → radio-group.Bdy7_UIu.js} +4 -4
- package/dist/chunks/{radio-group.CivaJaaQ.js.map → radio-group.Bdy7_UIu.js.map} +1 -1
- package/dist/chunks/{refresh.SzRxQ44W.js → refresh.C20ROVDS.js} +4 -4
- package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
- package/dist/chunks/search-bar.uUWWZpqL.js +114 -0
- package/dist/chunks/search-bar.uUWWZpqL.js.map +1 -0
- package/dist/chunks/{search.KgjmJMHa.js → search.BwQq1yRg.js} +4 -4
- package/dist/chunks/search.BwQq1yRg.js.map +1 -0
- package/dist/chunks/{secondary-nav.DG8xB2Mj.js → secondary-nav.DJudnYiY.js} +2 -2
- package/dist/chunks/{secondary-nav.DG8xB2Mj.js.map → secondary-nav.DJudnYiY.js.map} +1 -1
- package/dist/chunks/{segmented-control.DKWpxDho.js → segmented-control.BqJXrEmp.js} +2 -2
- package/dist/chunks/{segmented-control.DKWpxDho.js.map → segmented-control.BqJXrEmp.js.map} +1 -1
- package/dist/chunks/{selection-card-group.B9nOBntu.js → selection-card-group.COMI4GGI.js} +11 -11
- package/dist/chunks/{selection-card-group.B9nOBntu.js.map → selection-card-group.COMI4GGI.js.map} +1 -1
- package/dist/chunks/{show.J9zXGWlK.js → show.ByWWaogc.js} +6 -6
- package/dist/chunks/show.ByWWaogc.js.map +1 -0
- package/dist/chunks/{sidepanel.dFspFFRG.js → sidepanel.VwZpyqJr.js} +5 -5
- package/dist/chunks/{sidepanel.dFspFFRG.js.map → sidepanel.VwZpyqJr.js.map} +1 -1
- package/dist/chunks/{step.DsfmsUU6.js → step.BGFaHGFO.js} +3 -3
- package/dist/chunks/{step.DsfmsUU6.js.map → step.BGFaHGFO.js.map} +1 -1
- package/dist/chunks/{structured-list-item.C9vL7KwG.js → structured-list-item.BZJQzyt_.js} +6 -6
- package/dist/chunks/{structured-list-item.C9vL7KwG.js.map → structured-list-item.BZJQzyt_.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js → summary-grid-item-custom.rBC-2kKM.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js.map → summary-grid-item-custom.rBC-2kKM.js.map} +1 -1
- package/dist/chunks/{tabs.CR2tWuz3.js → tabs.hp52NnXH.js} +2 -2
- package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.hp52NnXH.js.map} +1 -1
- package/dist/chunks/{tag.Bmw9RaOG.js → tag.CXADLCgG.js} +2 -2
- package/dist/chunks/{tag.Bmw9RaOG.js.map → tag.CXADLCgG.js.map} +1 -1
- package/dist/chunks/{textarea.CrQk0SR0.js → textarea.4s69xpG3.js} +4 -4
- package/dist/chunks/{textarea.CrQk0SR0.js.map → textarea.4s69xpG3.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cs8JBNAA.js → timeline-item.DOoLkIox.js} +12 -11
- package/dist/chunks/timeline-item.DOoLkIox.js.map +1 -0
- package/dist/chunks/{toast.A5f1_NqV.js → toast.7D23cICy.js} +3 -3
- package/dist/chunks/{toast.A5f1_NqV.js.map → toast.7D23cICy.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.7iAfO6Xx.js} +23 -22
- package/dist/chunks/toggle-button.7iAfO6Xx.js.map +1 -0
- package/dist/chunks/{toggle.BmwlaQon.js → toggle.hoD_i2Ey.js} +2 -2
- package/dist/chunks/{toggle.BmwlaQon.js.map → toggle.hoD_i2Ey.js.map} +1 -1
- package/dist/chunks/{tooltip.DS1ok8gh.js → tooltip.BtfIbhGU.js} +2 -2
- package/dist/chunks/{tooltip.DS1ok8gh.js.map → tooltip.BtfIbhGU.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js → tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js} +9 -8
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.9xqNZAmj.js +1446 -0
- package/dist/chunks/use-cached-selected-values.9xqNZAmj.js.map +1 -0
- package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.DmHh0nYG.js} +4 -4
- package/dist/chunks/warning-filled.DmHh0nYG.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +59 -59
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +5 -5
- package/dist/styles/bento-light.css +5 -5
- package/dist/styles/bento.css +5 -5
- package/dist/styles/legacy.css +6 -4
- package/dist/styles/styleguide.css +5 -5
- package/dist/styles/utility.css +2 -2
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -6
- package/dist/chunks/alert.Dd2DYCZ1.js.map +0 -1
- package/dist/chunks/checkbox-input.CAYgiRHG.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.g_tcBhFJ.js.map +0 -1
- package/dist/chunks/checkmark-small.BDqUF-Ni.js.map +0 -1
- package/dist/chunks/chevron-left.CYEK2UTr.js.map +0 -1
- package/dist/chunks/chevron-up.Cu9qXgBY.js.map +0 -1
- package/dist/chunks/chip.sG_6gh3Z.js +0 -71
- package/dist/chunks/chip.sG_6gh3Z.js.map +0 -1
- package/dist/chunks/copy.CXCdp5ly.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.CJyARMSZ.js.map +0 -1
- package/dist/chunks/cross-circle-fill.BzSjakuO.js.map +0 -1
- package/dist/chunks/cross-small.Z5EKYRm0.js.map +0 -1
- package/dist/chunks/cross.BZYw4R3N.js.map +0 -1
- package/dist/chunks/data-grid.Duvh6mRu.js.map +0 -1
- package/dist/chunks/date-range-picker.D7BDFoqM.js.map +0 -1
- package/dist/chunks/dialog-page.D_r_CbyD.js.map +0 -1
- package/dist/chunks/dot.cpdFEk6G.js.map +0 -1
- package/dist/chunks/dropdown.CWq-VlFX.js.map +0 -1
- package/dist/chunks/expand.CJ162RaJ.js.map +0 -1
- package/dist/chunks/file-uploader.NbsEgoj1.js.map +0 -1
- package/dist/chunks/filter-bar.DP4SHAQj.js.map +0 -1
- package/dist/chunks/info.DYNe2WnZ.js.map +0 -1
- package/dist/chunks/input-field-password.SSiNunUz.js.map +0 -1
- package/dist/chunks/input-field.DhDfq9Er.js +0 -382
- package/dist/chunks/input-field.DhDfq9Er.js.map +0 -1
- package/dist/chunks/link.ClFi8uSm.js.map +0 -1
- package/dist/chunks/menu.DKCUuV6a.js +0 -698
- package/dist/chunks/menu.DKCUuV6a.js.map +0 -1
- package/dist/chunks/pagination.DdTcv8B6.js.map +0 -1
- package/dist/chunks/payment-method.NguqkTwG.js +0 -103
- package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
- package/dist/chunks/popover.BHGbUyMF.js.map +0 -1
- package/dist/chunks/popper-container.BvGYgqiE.js.map +0 -1
- package/dist/chunks/refresh.SzRxQ44W.js.map +0 -1
- package/dist/chunks/search-bar.BixBEf58.js +0 -132
- package/dist/chunks/search-bar.BixBEf58.js.map +0 -1
- package/dist/chunks/search.KgjmJMHa.js.map +0 -1
- package/dist/chunks/show.J9zXGWlK.js.map +0 -1
- package/dist/chunks/timeline-item.Cs8JBNAA.js.map +0 -1
- package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.D82-YBdB.js +0 -1591
- package/dist/chunks/use-cached-selected-values.D82-YBdB.js.map +0 -1
- package/dist/chunks/warning-filled.tTkVob0l.js.map +0 -1
- /package/dist/assets/{cross.css → main.css} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as y, ref as R, computed as C, createElementBlock as v, openBlock as i, createVNode as
|
|
1
|
+
import { defineComponent as y, ref as R, computed as C, createElementBlock as v, openBlock as i, createVNode as u, unref as t, withCtx as d, createBlock as $, resolveDynamicComponent as F, mergeProps as L, createSlots as J, createTextVNode as O, toDisplayString as P, createCommentVNode as S, createElementVNode as c, useSlots as G, useAttrs as K, toRefs as q, normalizeClass as Q, renderSlot as X } from "vue";
|
|
2
2
|
import { B as w } from "./typography.DN5eC5ch.js";
|
|
3
|
-
import { B as Z } from "./dropdown.
|
|
3
|
+
import { B as Z } from "./dropdown.CRLx2Juh.js";
|
|
4
4
|
import { g as M } from "./generate-uid.NJ8tVoha.js";
|
|
5
5
|
import { u as B, g as D, a as V } from "./i18n.D9azDLPe.js";
|
|
6
6
|
import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
-
import { B as I } from "./button.
|
|
7
|
+
import { B as I } from "./button.6HMG0xEY.js";
|
|
8
|
+
/* empty css */
|
|
8
9
|
import { u as Y } from "./aria-label.CaUURpnB.js";
|
|
9
10
|
import { u as ee } from "./use-has-slot.B7eQSabc.js";
|
|
10
11
|
import "../assets/pagination.css";
|
|
@@ -50,11 +51,11 @@ const W = {
|
|
|
50
51
|
{ label: "50", value: 50 },
|
|
51
52
|
{ label: "75", value: 75 },
|
|
52
53
|
{ label: "100", value: 100 }
|
|
53
|
-
], r = n, l = o, { t:
|
|
54
|
+
], r = n, l = o, { t: p } = B({ messages: W }), h = M("b-pagination-context-number-elements"), T = R(a), b = D(), m = (e) => {
|
|
54
55
|
l("select", e);
|
|
55
56
|
}, g = C(() => r.totalCount ? "showingItemsWithTotal" : "showingItems");
|
|
56
57
|
return (e, f) => (i(), v("div", te, [
|
|
57
|
-
|
|
58
|
+
u(t(w), { el: "div" }, {
|
|
58
59
|
default: d(() => [
|
|
59
60
|
(i(), $(F(t(b)), L(t(V)(g.value), {
|
|
60
61
|
class: "b-pagination-results-per-page__dropdown-container",
|
|
@@ -62,9 +63,9 @@ const W = {
|
|
|
62
63
|
plural: e.totalCount
|
|
63
64
|
}), J({
|
|
64
65
|
itemCount: d(() => [
|
|
65
|
-
|
|
66
|
+
u(t(Z), {
|
|
66
67
|
id: t(h),
|
|
67
|
-
"aria-label": t(
|
|
68
|
+
"aria-label": t(p)(g.value, { itemCount: e.itemsPerPage, totalCount: e.totalCount }),
|
|
68
69
|
class: "b-pagination-results-per-page__dropdown",
|
|
69
70
|
condensed: "",
|
|
70
71
|
items: T.value,
|
|
@@ -130,7 +131,7 @@ const W = {
|
|
|
130
131
|
},
|
|
131
132
|
emits: ["page-selected"],
|
|
132
133
|
setup(n, { emit: o }) {
|
|
133
|
-
const a = n, r = o, { t: l } = B({ messages: U }),
|
|
134
|
+
const a = n, r = o, { t: l } = B({ messages: U }), p = M("bento-pagination-context-current-page"), h = (e) => r("page-selected", e), T = D(), b = (e) => ({
|
|
134
135
|
label: e.toString(),
|
|
135
136
|
value: e
|
|
136
137
|
}), m = (e, f) => f + 1, g = C(
|
|
@@ -144,8 +145,8 @@ const W = {
|
|
|
144
145
|
default: d(() => [
|
|
145
146
|
(i(), $(F(t(T)), L(t(V)("pageOfTotalPages"), { tag: "div" }), {
|
|
146
147
|
page: d(() => [
|
|
147
|
-
|
|
148
|
-
id: t(
|
|
148
|
+
u(t(Z), {
|
|
149
|
+
id: t(p),
|
|
149
150
|
"aria-label": t(l)("pageOfTotalPages", { page: e.page, totalPages: e.totalPages }),
|
|
150
151
|
class: "b-pagination-context__dropdown",
|
|
151
152
|
condensed: "",
|
|
@@ -187,8 +188,8 @@ const re = {
|
|
|
187
188
|
beforeCreate() {
|
|
188
189
|
this.uuid = k.toString(), k += 1;
|
|
189
190
|
}
|
|
190
|
-
},
|
|
191
|
-
function
|
|
191
|
+
}, pe = { key: 0 };
|
|
192
|
+
function ue(n, o, a, r, l, p) {
|
|
192
193
|
return i(), v("svg", L({ role: "img" }, n.$attrs, {
|
|
193
194
|
class: "ui-assets-icons-16",
|
|
194
195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -196,7 +197,7 @@ function pe(n, o, a, r, l, u) {
|
|
|
196
197
|
height: "16",
|
|
197
198
|
fill: "none"
|
|
198
199
|
}), [
|
|
199
|
-
n.$attrs["svg-title"] ? (i(), v("title",
|
|
200
|
+
n.$attrs["svg-title"] ? (i(), v("title", pe, P(n.$attrs["svg-title"]), 1)) : S("", !0),
|
|
200
201
|
o[0] || (o[0] = c("path", {
|
|
201
202
|
fill: "#00112C",
|
|
202
203
|
d: "M9.06055 8.00011L12.0605 5.00011L10.9999 3.93945L6.93923 8.00011L10.9999 12.0608L12.0605 11.0001L9.06055 8.00011Z"
|
|
@@ -207,14 +208,14 @@ function pe(n, o, a, r, l, u) {
|
|
|
207
208
|
}, null, -1))
|
|
208
209
|
], 16);
|
|
209
210
|
}
|
|
210
|
-
const de = /* @__PURE__ */ _(re, [["render",
|
|
211
|
+
const de = /* @__PURE__ */ _(re, [["render", ue]]);
|
|
211
212
|
let A = 0;
|
|
212
213
|
const ce = {
|
|
213
214
|
beforeCreate() {
|
|
214
215
|
this.uuid = A.toString(), A += 1;
|
|
215
216
|
}
|
|
216
217
|
}, ve = { key: 0 };
|
|
217
|
-
function me(n, o, a, r, l,
|
|
218
|
+
function me(n, o, a, r, l, p) {
|
|
218
219
|
return i(), v("svg", L({ role: "img" }, n.$attrs, {
|
|
219
220
|
class: "ui-assets-icons-16",
|
|
220
221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -240,7 +241,7 @@ const he = {
|
|
|
240
241
|
this.uuid = E.toString(), E += 1;
|
|
241
242
|
}
|
|
242
243
|
}, Pe = { key: 0 };
|
|
243
|
-
function _e(n, o, a, r, l,
|
|
244
|
+
function _e(n, o, a, r, l, p) {
|
|
244
245
|
return i(), v("svg", L({ role: "img" }, n.$attrs, {
|
|
245
246
|
class: "ui-assets-icons-16",
|
|
246
247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -262,7 +263,7 @@ const be = {
|
|
|
262
263
|
this.uuid = z.toString(), z += 1;
|
|
263
264
|
}
|
|
264
265
|
}, Ce = { key: 0 };
|
|
265
|
-
function $e(n, o, a, r, l,
|
|
266
|
+
function $e(n, o, a, r, l, p) {
|
|
266
267
|
return i(), v("svg", L({ role: "img" }, n.$attrs, {
|
|
267
268
|
class: "ui-assets-icons-16",
|
|
268
269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -326,7 +327,7 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
326
327
|
},
|
|
327
328
|
emits: ["navigate"],
|
|
328
329
|
setup(n, { emit: o }) {
|
|
329
|
-
const a = n, r = o, { t: l } = B({ messages: x }),
|
|
330
|
+
const a = n, r = o, { t: l } = B({ messages: x }), p = C(() => a.page === 1), h = C(() => a.page === a.totalPages), T = C(() => !a.hasNext || h.value), b = C(() => {
|
|
330
331
|
const g = !a.hasNext, e = !a.totalPages;
|
|
331
332
|
return g || h.value || e;
|
|
332
333
|
}), m = (g) => {
|
|
@@ -334,14 +335,14 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
334
335
|
};
|
|
335
336
|
return (g, e) => (i(), v("ul", we, [
|
|
336
337
|
c("li", Se, [
|
|
337
|
-
|
|
338
|
-
disabled:
|
|
338
|
+
u(t(I), {
|
|
339
|
+
disabled: p.value,
|
|
339
340
|
variant: "tertiary",
|
|
340
341
|
condensed: "",
|
|
341
342
|
onClick: e[0] || (e[0] = (f) => m(1))
|
|
342
343
|
}, {
|
|
343
344
|
iconLeft: d(() => [
|
|
344
|
-
|
|
345
|
+
u(t(de), {
|
|
345
346
|
"svg-title": t(l)("navigateToTheFirstPage")
|
|
346
347
|
}, null, 8, ["svg-title"])
|
|
347
348
|
]),
|
|
@@ -349,14 +350,14 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
349
350
|
}, 8, ["disabled"])
|
|
350
351
|
]),
|
|
351
352
|
c("li", Ne, [
|
|
352
|
-
|
|
353
|
-
disabled:
|
|
353
|
+
u(t(I), {
|
|
354
|
+
disabled: p.value,
|
|
354
355
|
variant: "tertiary",
|
|
355
356
|
condensed: "",
|
|
356
357
|
onClick: e[1] || (e[1] = (f) => m(g.page - 1))
|
|
357
358
|
}, {
|
|
358
359
|
iconLeft: d(() => [
|
|
359
|
-
|
|
360
|
+
u(t(Te), {
|
|
360
361
|
"svg-title": t(l)("navigateToThePreviousPage")
|
|
361
362
|
}, null, 8, ["svg-title"])
|
|
362
363
|
]),
|
|
@@ -364,14 +365,14 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
364
365
|
}, 8, ["disabled"])
|
|
365
366
|
]),
|
|
366
367
|
c("li", Ie, [
|
|
367
|
-
|
|
368
|
+
u(t(I), {
|
|
368
369
|
disabled: T.value,
|
|
369
370
|
variant: "tertiary",
|
|
370
371
|
condensed: "",
|
|
371
372
|
onClick: e[2] || (e[2] = (f) => m(g.page + 1))
|
|
372
373
|
}, {
|
|
373
374
|
iconLeft: d(() => [
|
|
374
|
-
|
|
375
|
+
u(t(Le), {
|
|
375
376
|
"svg-title": t(l)("navigateToTheNextPage")
|
|
376
377
|
}, null, 8, ["svg-title"])
|
|
377
378
|
]),
|
|
@@ -379,14 +380,14 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
379
380
|
}, 8, ["disabled"])
|
|
380
381
|
]),
|
|
381
382
|
c("li", Oe, [
|
|
382
|
-
|
|
383
|
+
u(t(I), {
|
|
383
384
|
disabled: b.value,
|
|
384
385
|
variant: "tertiary",
|
|
385
386
|
condensed: "",
|
|
386
387
|
onClick: e[3] || (e[3] = (f) => m(g.totalPages))
|
|
387
388
|
}, {
|
|
388
389
|
iconLeft: d(() => [
|
|
389
|
-
|
|
390
|
+
u(t(fe), {
|
|
390
391
|
"svg-title": t(l)("navigateToTheLastPage")
|
|
391
392
|
}, null, 8, ["svg-title"])
|
|
392
393
|
]),
|
|
@@ -409,7 +410,7 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
409
410
|
},
|
|
410
411
|
emits: ["navigate", "items-page", "update:page", "update:size"],
|
|
411
412
|
setup(n, { emit: o }) {
|
|
412
|
-
const a = n, r = o, l = G(),
|
|
413
|
+
const a = n, r = o, l = G(), p = ee(l), h = K(), T = R(h["aria-label"]), { ariaLabel: b } = q(a), m = Y({
|
|
413
414
|
ariaLabel: T.value,
|
|
414
415
|
// TODO: take this line away when the aria-label props is removed
|
|
415
416
|
label: b
|
|
@@ -422,14 +423,14 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
422
423
|
}, j = (s) => {
|
|
423
424
|
r("items-page", s), r("update:size", s), e(1, s);
|
|
424
425
|
}, H = () => ({
|
|
425
|
-
"b-pagination__navigation--only-page-navigator": !
|
|
426
|
+
"b-pagination__navigation--only-page-navigator": !p("default") && a.hidePageSize
|
|
426
427
|
});
|
|
427
428
|
return (s, N) => (i(), v("div", Ae, [
|
|
428
429
|
c("nav", {
|
|
429
430
|
"aria-label": t(m),
|
|
430
431
|
class: Q(["b-pagination__navigation", H()])
|
|
431
432
|
}, [
|
|
432
|
-
s.hidePageSize ? t(
|
|
433
|
+
s.hidePageSize ? t(p)("default") ? (i(), $(t(w), { key: 1 }, {
|
|
433
434
|
default: d(() => [
|
|
434
435
|
X(s.$slots, "default", {}, void 0, !0)
|
|
435
436
|
]),
|
|
@@ -442,7 +443,7 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
442
443
|
onSelect: j
|
|
443
444
|
}, null, 8, ["items-per-page", "total-count"])),
|
|
444
445
|
c("div", ze, [
|
|
445
|
-
|
|
446
|
+
u(ge, {
|
|
446
447
|
class: "b-pagination__context",
|
|
447
448
|
"total-pages": g.value,
|
|
448
449
|
page: s.page,
|
|
@@ -451,7 +452,7 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
451
452
|
onPageSelected: f
|
|
452
453
|
}, null, 8, ["total-pages", "page", "total-count", "virtual-scroll"]),
|
|
453
454
|
N[0] || (N[0] = c("div", { class: "b-pagination__divider" }, null, -1)),
|
|
454
|
-
|
|
455
|
+
u(ke, {
|
|
455
456
|
class: "b-pagination__controls",
|
|
456
457
|
"has-next": s.hasNext,
|
|
457
458
|
page: s.page,
|
|
@@ -462,8 +463,8 @@ const Le = /* @__PURE__ */ _(be, [["render", $e]]), x = {
|
|
|
462
463
|
], 10, Ee)
|
|
463
464
|
]));
|
|
464
465
|
}
|
|
465
|
-
}),
|
|
466
|
+
}), Ge = /* @__PURE__ */ _(Fe, [["__scopeId", "data-v-3231fd98"]]);
|
|
466
467
|
export {
|
|
467
|
-
|
|
468
|
+
Ge as B
|
|
468
469
|
};
|
|
469
|
-
//# sourceMappingURL=pagination.
|
|
470
|
+
//# sourceMappingURL=pagination.BSp5RwM0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.BSp5RwM0.js","sources":["../../../vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue","../../../vue2/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","../../../vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue","../../../vue2/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 = withDefaults(\n defineProps<{\n /**\n * The amount of items the pager is paging through.\n */\n itemsPerPage?: number;\n /**\n * The total number of items the pager is paging through.\n */\n totalCount?: number;\n }>(),\n {\n itemsPerPage: 50,\n totalCount: null,\n }\n );\n\n const emit = defineEmits<{\n (e: 'select', value: number);\n }>();\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('pageOfTotalPages')\" tag=\"div\">\n <template #page>\n <bento-dropdown\n :id=\"dropdownId\"\n :aria-label=\"t('pageOfTotalPages', { page, totalPages })\"\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 <template #totalPages>{{ totalPages }}</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 = withDefaults(\n defineProps<{\n /**\n * The current page number of the pager.\n */\n page?: number;\n\n /**\n * The total number of items the pager is paging through.\n */\n totalPages?: number;\n\n /**\n * Enables virtual scrolling on all dropdowns if set to true.\n */\n virtualScroll?: boolean;\n }>(),\n {\n page: 1,\n totalPages: null,\n virtualScroll: false,\n }\n );\n const emit = defineEmits<{\n (e: 'page-selected', value: string | number);\n }>();\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 = withDefaults(\n defineProps<{\n /**\n * Use to determine if the pager has a \"next page\".\n */\n hasNext?: boolean;\n\n /**\n * The current page number of the pager.\n */\n page: number;\n\n /**\n * The current page number of the pager.\n */\n totalPages?: number;\n }>(),\n {\n hasNext: null,\n totalPages: null,\n }\n );\n\n const emit = defineEmits<{\n (e: 'navigate', value: number);\n }>();\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\n const props = withDefaults(\n defineProps<{\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * A brief description of the purpose of the navigation (for a11y).\n * Omit the term \"navigation\", as the screen reader will read both the role and the contents of the label.\n */\n ariaLabel?: string;\n\n /**\n * Use to determine if the pager has a \"next page\".\n */\n hasNext?: boolean;\n\n /**\n * Toggles the visibility of the \"results per page\" part of the pagination component.\n */\n hidePageSize?: boolean;\n\n /**\n * The current page number of the pager.\n */\n page?: number;\n\n /**\n * The size of the items the pager is paging through.\n */\n size?: number;\n\n /**\n * The total number of items the pager is paging through.\n */\n totalCount?: number;\n\n /**\n * Enables virtual scrolling on all dropdowns if set to true.\n */\n virtualScroll?: boolean;\n }>(),\n {\n ariaLabel: null,\n hasNext: null,\n hidePageSize: false,\n page: 1,\n size: 20,\n totalCount: null,\n virtualScroll: false,\n }\n );\n\n const emit = defineEmits<{\n /**\n * Triggered when the navigation controls are clicked or the items per page is changed (i.e. when the arrow buttons to the\n * rightmost of the screen or either dropdown is updated). It indicates to which page it should go next and also the page size.\n */\n (e: 'navigate', page: number, items?: number): void;\n\n /**\n * Triggered when the number of items per page is changed from the left hand dropdown.\n * It indicates the new number of items that will be displayed.\n */\n (e: 'items-page', size: number): void;\n\n /**\n * Triggered when the navigation controls are clicked, whether the arrow buttons to the\n * right most of the screen or the dropdown on the right hand is updated.\n * It indicates to which page it should go next\n * (easily achieved using the [sync modifier](https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier))\n * e.g. `:page.sync=\"currentPage\"`\n */\n (e: 'update:page', page: number): void;\n\n /**\n * Triggered when the number of items per page is changed from the left hand dropdown.\n * It indicates the new number of items that will be displayed.\n * (easily achieved using the [sync modifier](https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier))\n * e.g. `:size.sync=\"itemsPerPage\"`\n */\n (e: 'update:size', size: number): void;\n }>();\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","props","__props","emit","__emit","t","useI18n","dropdownId","generateUid","dropdownOptions","ref","i18nComponent","getI18nComponent","onSelectChange","selectedNumberOfResults","translationPathKey","computed","__default__$2","messages$1","onPageSelectChange","selectedPage","transformIntoOption","value","transformToPageNumber","_","index","listOfAvailablePages","uuid$3","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","uuid$2","uuid$1","uuid","__default__$1","messages","isCurrentPageFirst","isCurrentPageLast","isNextButtonDisabled","isLastPageButtonDisabled","hasNoNextPage","hasNoTotalPagesNumber","navigate","pageArg","__default__","slots","useSlots","hasSlot","useHasSlot","attrs","useAttrs","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","totalPages","itemsPerPage","onPageSelected","pageNumber","onItemsPerPageChange","elements","navigationConditionalClasses"],"mappings":"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"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ref as c, watch as _, createElementBlock as r, openBlock as a, mergeProps as b, createCommentVNode as w, createElementVNode as e, toDisplayString as d, defineComponent as y, toRef as $, computed as I, inject as S, createBlock as h, unref as i, normalizeClass as M, withCtx as V, createTextVNode as B } from "vue";
|
|
2
|
+
import { B as E } from "./typography.DN5eC5ch.js";
|
|
3
|
+
import { S as U } from "./summary-grid.keys.CxTf_FOc.js";
|
|
4
|
+
import { _ as g } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import "../assets/payment-method.css";
|
|
6
|
+
const H = (t) => `https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/images/logos/${t.toLowerCase()}.svg`, N = (t) => {
|
|
7
|
+
const o = c(t), s = c();
|
|
8
|
+
return _(
|
|
9
|
+
o,
|
|
10
|
+
(n) => {
|
|
11
|
+
n == null || n === "Unknowncard" || (s.value = H(n));
|
|
12
|
+
},
|
|
13
|
+
{ immediate: !0 }
|
|
14
|
+
), s;
|
|
15
|
+
};
|
|
16
|
+
let f = 0;
|
|
17
|
+
const G = {
|
|
18
|
+
beforeCreate() {
|
|
19
|
+
this.uuid = f.toString(), f += 1;
|
|
20
|
+
}
|
|
21
|
+
}, L = { key: 0 }, T = ["clip-path"], O = ["id"];
|
|
22
|
+
function P(t, o, s, n, m, u) {
|
|
23
|
+
return a(), r("svg", b({ role: "img" }, t.$attrs, {
|
|
24
|
+
class: "ui-assets-icons-pm",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
width: "40",
|
|
27
|
+
height: "26",
|
|
28
|
+
fill: "none"
|
|
29
|
+
}), [
|
|
30
|
+
t.$attrs["svg-title"] ? (a(), r("title", L, d(t.$attrs["svg-title"]), 1)) : w("", !0),
|
|
31
|
+
e("g", {
|
|
32
|
+
"clip-path": "url(#uia-pm-icons-unknowncard__a" + t.uuid + ")"
|
|
33
|
+
}, o[0] || (o[0] = [
|
|
34
|
+
e("path", {
|
|
35
|
+
fill: "#fff",
|
|
36
|
+
d: "M0 0H40V26H0V0Z"
|
|
37
|
+
}, null, -1),
|
|
38
|
+
e("path", {
|
|
39
|
+
fill: "#00112C",
|
|
40
|
+
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"
|
|
41
|
+
}, null, -1),
|
|
42
|
+
e("path", {
|
|
43
|
+
fill: "#00112C",
|
|
44
|
+
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"
|
|
45
|
+
}, null, -1),
|
|
46
|
+
e("rect", {
|
|
47
|
+
width: "5",
|
|
48
|
+
height: "2",
|
|
49
|
+
x: "24",
|
|
50
|
+
y: "16",
|
|
51
|
+
fill: "#fff",
|
|
52
|
+
rx: ".5"
|
|
53
|
+
}, null, -1)
|
|
54
|
+
]), 8, T),
|
|
55
|
+
e("defs", null, [
|
|
56
|
+
e("clipPath", {
|
|
57
|
+
id: "uia-pm-icons-unknowncard__a" + t.uuid
|
|
58
|
+
}, o[1] || (o[1] = [
|
|
59
|
+
e("rect", {
|
|
60
|
+
width: "40",
|
|
61
|
+
height: "26",
|
|
62
|
+
fill: "#fff"
|
|
63
|
+
}, null, -1)
|
|
64
|
+
]), 8, O)
|
|
65
|
+
])
|
|
66
|
+
], 16);
|
|
67
|
+
}
|
|
68
|
+
const R = /* @__PURE__ */ g(G, [["render", P]]), Y = { class: "b-payment-method" }, Z = { class: "b-payment-method__icon-container" }, A = ["alt", "src"], D = { class: "b-payment-method__label" }, j = { key: 0 }, z = y({
|
|
69
|
+
name: "bento-payment-method"
|
|
70
|
+
}), J = /* @__PURE__ */ y({
|
|
71
|
+
...z,
|
|
72
|
+
props: {
|
|
73
|
+
label: {},
|
|
74
|
+
small: { type: Boolean, default: !1 },
|
|
75
|
+
type: { default: "Unknowncard" }
|
|
76
|
+
},
|
|
77
|
+
setup(t) {
|
|
78
|
+
const o = t, s = $(o, "type"), n = c(!1), m = N(s), u = I(() => ({
|
|
79
|
+
"b-payment-method__icon--small": o.small
|
|
80
|
+
})), C = S(
|
|
81
|
+
U,
|
|
82
|
+
() => ({
|
|
83
|
+
isSummaryGridLayout: !1
|
|
84
|
+
})
|
|
85
|
+
), { isSummaryGridLayout: v } = C(), k = () => {
|
|
86
|
+
n.value = !0;
|
|
87
|
+
};
|
|
88
|
+
return _(
|
|
89
|
+
() => s.value,
|
|
90
|
+
(l, p) => {
|
|
91
|
+
l !== p && (n.value = !1);
|
|
92
|
+
}
|
|
93
|
+
), (l, p) => (a(), r("div", Y, [
|
|
94
|
+
e("div", Z, [
|
|
95
|
+
s.value !== "Unknowncard" && !n.value ? (a(), r("img", {
|
|
96
|
+
key: 0,
|
|
97
|
+
"aria-hidden": "true",
|
|
98
|
+
class: M(["b-payment-method__icon", u.value]),
|
|
99
|
+
alt: l.label,
|
|
100
|
+
src: i(m),
|
|
101
|
+
onError: k
|
|
102
|
+
}, null, 42, A)) : (a(), h(i(R), {
|
|
103
|
+
key: 1,
|
|
104
|
+
"svg-title": l.label,
|
|
105
|
+
"aria-hidden": "true"
|
|
106
|
+
}, null, 8, ["svg-title"]))
|
|
107
|
+
]),
|
|
108
|
+
e("div", D, [
|
|
109
|
+
i(v) ? (a(), r("span", j, d(l.label), 1)) : (a(), h(i(E), {
|
|
110
|
+
key: 1,
|
|
111
|
+
el: "span"
|
|
112
|
+
}, {
|
|
113
|
+
default: V(() => [
|
|
114
|
+
B(d(l.label), 1)
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}))
|
|
118
|
+
])
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
}), Q = /* @__PURE__ */ g(J, [["__scopeId", "data-v-a8742dcb"]]);
|
|
122
|
+
export {
|
|
123
|
+
Q as B
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=payment-method.BACjrzKP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.BACjrzKP.js","sources":["../../../vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.ts","../../../ui-assets/icons-pm/dist/vue/unknowncard.vue","../../../vue2/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.toLowerCase()}.svg`;\n\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-pm-icons-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-pm-icons-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 = withDefaults(defineProps<BentoPaymentMethodProps>(), {\n type: 'Unknowncard',\n small: false,\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","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__","defineComponent","props","__props","toRef","hasErroredOnImage","paymentMethodIconSrc","conditionalIconClasses","computed","registerPaymentMethodInSummaryGrid","inject","SUMMARY_GRID_LAYOUT_INJECTION_KEY","isSummaryGridLayout","onSrcError","newType","oldType"],"mappings":";;;;;AAOO,MAAAA,IAAA,CAAAC,MAAA,2EAAAA,EAAA,YAAA,CAAA,QAUMC,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;AC3BI,IAAAG,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;mBAZZC,IAAA,CAAA,WAAA,GAAAC,IAAA,CAAA,IAAA;;AAEI,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;gFAFzHC,EAAA,IAAA,EAAA;AAAA;MAE4M,aAAA,qCAAAD,EAAA,OAAA;AAAA;;QAAkE,MAAA;AAAA,QAAY,GAAA;AAAA;;QAA2B,MAAA;AAAA,QAAe,GAAA;AAAA;;QAA8K,MAAA;AAAA,QAAe,GAAA;AAAA;;QAAoL,OAAA;AAAA,QAAU,QAAA;AAAA,QAAW,GAAA;AAAA,QAAO,GAAA;AAAA,QAAO,MAAA;AAAA,QAAY,IAAA;AAAA;IAFpuB,IAAA,GAAAL,CAAA;AAAA;;QAEkwB,IAAA,gCAAAK,EAAA;AAAA;;UAAgD,OAAA;AAAA,UAAW,QAAA;AAAA,UAAY,MAAA;AAAA;MAFz0B,IAAA,GAAAJ,CAAA;AAAA;;;qNCmFIM,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAE/B,CAAA;;;;;;;;AAvDA,UAAAC,IAAAC,GAIAhB,IAAAiB,EAAAF,GAAA,MAAA,GACAG,IAAAjB,EAAA,EAAA,GACAkB,IAAApB,EAAAC,CAAA,GACAoB,IAAAC,EAAA,OAAA;AAAA,MAA+C,iCAAAN,EAAA;AAAA,IACJ,EAAA,GAI3CO,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,WAAAf;AAAA,MAAA,MAAAH,EAAA;AAAA,MACe,CAAA2B,GAAAC,MAAA;AAEP,QAAAD,MAAAC,MACIV,EAAA,QAAA;AAAA,MACJ;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|