@adyen/bento-vue3 1.48.0 → 1.50.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 +107 -944
- 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/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.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/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/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.DWekSxPr.js → action-bar.DkGjsKiy.js} +6 -6
- package/dist/chunks/{action-bar.DWekSxPr.js.map → action-bar.DkGjsKiy.js.map} +1 -1
- package/dist/chunks/{alert.Dd2DYCZ1.js → alert.DGewBB2a.js} +2 -2
- package/dist/chunks/{alert.Dd2DYCZ1.js.map → alert.DGewBB2a.js.map} +1 -1
- package/dist/chunks/{base-modal.DOrcARK1.js → base-modal.gW2mkOwf.js} +5 -5
- package/dist/chunks/{base-modal.DOrcARK1.js.map → base-modal.gW2mkOwf.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js → button-actions-with-menu.BXRKkFiw.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js.map → button-actions-with-menu.BXRKkFiw.js.map} +1 -1
- package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BZEKcCbe.js} +2 -2
- package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BZEKcCbe.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.BXVKUuum.js} +2 -2
- package/dist/chunks/{button.Cneb6rPP.js.map → button.BXVKUuum.js.map} +1 -1
- package/dist/chunks/{calendar.BdLQOioy.js → calendar.DNQlLbkK.js} +2 -2
- package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DNQlLbkK.js.map} +1 -1
- package/dist/chunks/{card.BAg7yMMT.js → card.Ec-SR2qG.js} +2 -2
- package/dist/chunks/{card.BAg7yMMT.js.map → card.Ec-SR2qG.js.map} +1 -1
- package/dist/chunks/{checkbox-group.C-EmVp5t.js → checkbox-group.KeIRO8lx.js} +4 -4
- package/dist/chunks/{checkbox-group.C-EmVp5t.js.map → checkbox-group.KeIRO8lx.js.map} +1 -1
- package/dist/chunks/{checkbox.BOtqaTUl.js → checkbox.BllRk82F.js} +17 -17
- package/dist/chunks/{checkbox.BOtqaTUl.js.map → checkbox.BllRk82F.js.map} +1 -1
- package/dist/chunks/{code-snippet.C9fCiM5V.js → code-snippet.DfTfz3vU.js} +6 -6
- package/dist/chunks/{code-snippet.C9fCiM5V.js.map → code-snippet.DfTfz3vU.js.map} +1 -1
- package/dist/chunks/{controls-group.BeK9igGT.js → controls-group.BnbQO34k.js} +2 -2
- package/dist/chunks/{controls-group.BeK9igGT.js.map → controls-group.BnbQO34k.js.map} +1 -1
- package/dist/chunks/{copy.HpUjy6OL.js → copy.DAu8GrR9.js} +3 -3
- package/dist/chunks/{copy.HpUjy6OL.js.map → copy.DAu8GrR9.js.map} +1 -1
- package/dist/chunks/currency.DagWnTry.js.map +1 -1
- package/dist/chunks/{dashboard-section.DoGuJKz_.js → dashboard-section.pyg05_v_.js} +4 -4
- package/dist/chunks/{dashboard-section.DoGuJKz_.js.map → dashboard-section.pyg05_v_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DZuyR-N7.js → dashed-underline.DTZGLrPu.js} +3 -3
- package/dist/chunks/{dashed-underline.DZuyR-N7.js.map → dashed-underline.DTZGLrPu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BpJbblNT.js → data-grid-template.sUNqCvbt.js} +3 -3
- package/dist/chunks/{data-grid-template.BpJbblNT.js.map → data-grid-template.sUNqCvbt.js.map} +1 -1
- package/dist/chunks/{data-grid.CdTcZ3DP.js → data-grid.BNXoMZf9.js} +1028 -1022
- package/dist/chunks/data-grid.BNXoMZf9.js.map +1 -0
- package/dist/chunks/{date-picker.CjbhJWGH.js → date-picker.DgpHNnu_.js} +17 -17
- package/dist/chunks/{date-picker.CjbhJWGH.js.map → date-picker.DgpHNnu_.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CoonfpYT.js → date-range-picker.CUIOfxjB.js} +26 -26
- package/dist/chunks/{date-range-picker.CoonfpYT.js.map → date-range-picker.CUIOfxjB.js.map} +1 -1
- package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.DK2UKGH8.js} +2 -2
- package/dist/chunks/{dialog-page.D_r_CbyD.js.map → dialog-page.DK2UKGH8.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B5QFkTl_.js → dropdown-tag.DqfoOcUU.js} +4 -4
- package/dist/chunks/{dropdown-tag.B5QFkTl_.js.map → dropdown-tag.DqfoOcUU.js.map} +1 -1
- package/dist/chunks/{dropdown.BN6DALZa.js → dropdown.a8OeeVAZ.js} +344 -344
- package/dist/chunks/dropdown.a8OeeVAZ.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DkYtiTHG.js} +2 -2
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DkYtiTHG.js.map} +1 -1
- package/dist/chunks/{error-message.X-gxnQcx.js → error-message.B3z5WkLF.js} +2 -2
- package/dist/chunks/{error-message.X-gxnQcx.js.map → error-message.B3z5WkLF.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.CLZ1rPz0.js → file-uploader.DV4I5Lvf.js} +475 -470
- package/dist/chunks/file-uploader.DV4I5Lvf.js.map +1 -0
- package/dist/chunks/{filter-bar.zvHeHs9B.js → filter-bar.BZkXUVLH.js} +20 -19
- package/dist/chunks/{filter-bar.zvHeHs9B.js.map → filter-bar.BZkXUVLH.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.B4Eag_Sd.js} +2 -2
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.B4Eag_Sd.js.map} +1 -1
- package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DPJj05sV.js} +6 -3
- package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DPJj05sV.js.map} +1 -1
- package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.WvWwFKM8.js} +3 -3
- package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.WvWwFKM8.js.map} +1 -1
- package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.BHL_MDqT.js} +2 -2
- package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.BHL_MDqT.js.map} +1 -1
- package/dist/chunks/{header.CUhyy9NL.js → header.CRC9X7v2.js} +20 -20
- package/dist/chunks/{header.CUhyy9NL.js.map → header.CRC9X7v2.js.map} +1 -1
- package/dist/chunks/{index.BMkVmbZj.js → index.BS3BeXQJ.js} +8 -7
- package/dist/chunks/{index.BMkVmbZj.js.map → index.BS3BeXQJ.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.NzQciGvf.js → info-icon-with-popover.BM0esxKN.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.NzQciGvf.js.map → info-icon-with-popover.BM0esxKN.js.map} +1 -1
- package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.DQn8-VSp.js} +2 -2
- package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.DQn8-VSp.js.map} +1 -1
- package/dist/chunks/{input-field-password.B4HgGilX.js → input-field-password.Bo7FiAOq.js} +6 -6
- package/dist/chunks/{input-field-password.B4HgGilX.js.map → input-field-password.Bo7FiAOq.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CpY2BLfO.js → input-field-phone-number.DO2uU2XW.js} +2 -2
- package/dist/chunks/{input-field-phone-number.CpY2BLfO.js.map → input-field-phone-number.DO2uU2XW.js.map} +1 -1
- package/dist/chunks/{input-field.DQKiMtZo.js → input-field.rgA0t2sp.js} +3 -3
- package/dist/chunks/{input-field.DQKiMtZo.js.map → input-field.rgA0t2sp.js.map} +1 -1
- package/dist/chunks/inspector.types.Io6ONte7.js +184 -0
- package/dist/chunks/inspector.types.Io6ONte7.js.map +1 -0
- package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.BAz7JrXo.js} +2 -2
- package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.BAz7JrXo.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.CyGCtpse.js} +9 -9
- package/dist/chunks/link.CyGCtpse.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.CFNRfAtf.js → listbox-option-tag.DIk4F59J.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CFNRfAtf.js.map → listbox-option-tag.DIk4F59J.js.map} +1 -1
- package/dist/chunks/{menu.DIKy_Pyt.js → menu.DKluB_Dn.js} +45 -44
- package/dist/chunks/menu.DKluB_Dn.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js → modal-fullscreen.D1gvJFag.js} +5 -5
- package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js.map → modal-fullscreen.D1gvJFag.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js.map → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map} +1 -1
- package/dist/chunks/{pagination.DogGVwa2.js → pagination.CGS6fGUm.js} +3 -3
- package/dist/chunks/{pagination.DogGVwa2.js.map → pagination.CGS6fGUm.js.map} +1 -1
- package/dist/chunks/payment-method.CGNHCiy1.js +73 -0
- package/dist/chunks/payment-method.CGNHCiy1.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.NEP6wuPa.js → popover.BNOfWuSb.js} +94 -93
- package/dist/chunks/popover.BNOfWuSb.js.map +1 -0
- package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.BvGYgqiE.js} +2 -2
- package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.BvGYgqiE.js.map} +1 -1
- package/dist/chunks/{promo-banner.DTH4CZ_2.js → promo-banner.BUtq-2iR.js} +3 -3
- package/dist/chunks/{promo-banner.DTH4CZ_2.js.map → promo-banner.BUtq-2iR.js.map} +1 -1
- package/dist/chunks/{radio-group.BLHcC22p.js → radio-group.CivaJaaQ.js} +4 -4
- package/dist/chunks/{radio-group.BLHcC22p.js.map → radio-group.CivaJaaQ.js.map} +1 -1
- package/dist/chunks/{search-bar.CatznIEM.js → search-bar.Zdai5UhB.js} +3 -3
- package/dist/chunks/{search-bar.CatznIEM.js.map → search-bar.Zdai5UhB.js.map} +1 -1
- package/dist/chunks/{secondary-nav.LIzkbQY1.js → secondary-nav.C6D6dcs6.js} +3 -3
- package/dist/chunks/{secondary-nav.LIzkbQY1.js.map → secondary-nav.C6D6dcs6.js.map} +1 -1
- package/dist/chunks/{segmented-control.DOxyrdMz.js → segmented-control.DKWpxDho.js} +2 -2
- package/dist/chunks/{segmented-control.DOxyrdMz.js.map → segmented-control.DKWpxDho.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BKatprYB.js → selection-card-group.DzwIeKQC.js} +12 -12
- package/dist/chunks/{selection-card-group.BKatprYB.js.map → selection-card-group.DzwIeKQC.js.map} +1 -1
- package/dist/chunks/{sidepanel.Be3uyOVd.js → sidepanel.DzF1iCZM.js} +5 -5
- package/dist/chunks/{sidepanel.Be3uyOVd.js.map → sidepanel.DzF1iCZM.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BwgEJywb.js → structured-list-item.DQHvIbQo.js} +5 -5
- package/dist/chunks/{structured-list-item.BwgEJywb.js.map → structured-list-item.DQHvIbQo.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js → summary-grid-item-custom.D6s8sw36.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js.map → summary-grid-item-custom.D6s8sw36.js.map} +1 -1
- package/dist/chunks/{tabs.CR2tWuz3.js → tabs.CiTn85aw.js} +2 -2
- package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.CiTn85aw.js.map} +1 -1
- package/dist/chunks/{tag.Chr4TP7d.js → tag.Bmw9RaOG.js} +2 -2
- package/dist/chunks/{tag.Chr4TP7d.js.map → tag.Bmw9RaOG.js.map} +1 -1
- package/dist/chunks/{textarea.BLhKC_iw.js → textarea.CzuRg2pM.js} +3 -3
- package/dist/chunks/{textarea.BLhKC_iw.js.map → textarea.CzuRg2pM.js.map} +1 -1
- package/dist/chunks/{timeline-item.BVm2YscV.js → timeline-item.CjltBKy0.js} +7 -7
- package/dist/chunks/{timeline-item.BVm2YscV.js.map → timeline-item.CjltBKy0.js.map} +1 -1
- package/dist/chunks/{toast.A5f1_NqV.js → toast.BWxPbCOy.js} +2 -2
- package/dist/chunks/{toast.A5f1_NqV.js.map → toast.BWxPbCOy.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.B9LWddx9.js} +23 -22
- package/dist/chunks/toggle-button.B9LWddx9.js.map +1 -0
- package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.DS1ok8gh.js} +2 -2
- package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.DS1ok8gh.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CoelUIEy.js → use-cached-selected-values.CxAhnNa6.js} +483 -479
- package/dist/chunks/use-cached-selected-values.CxAhnNa6.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 +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +54 -54
- 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/layout.js +1 -1
- 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/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +2 -1
- package/dist/styles/bento-light.css +2 -1
- package/dist/styles/bento.css +2 -1
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +2 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/data-grid.CdTcZ3DP.js.map +0 -1
- package/dist/chunks/dropdown.BN6DALZa.js.map +0 -1
- package/dist/chunks/file-uploader.CLZ1rPz0.js.map +0 -1
- package/dist/chunks/inspector.types.C-Qos3dV.js +0 -124
- package/dist/chunks/inspector.types.C-Qos3dV.js.map +0 -1
- package/dist/chunks/link.ClFi8uSm.js.map +0 -1
- package/dist/chunks/menu.DIKy_Pyt.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.NEP6wuPa.js.map +0 -1
- package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CoelUIEy.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.types.C-Qos3dV.js","sources":["../../../vue2/src/components/inspector/inspector.vue","../../../vue2/src/components/inspector/inspector.types.ts"],"sourcesContent":["<template>\n <div class=\"b-inspector\" :class=\"conditionalClass\">\n <div class=\"b-inspector__page-wrapper\">\n <div class=\"b-inspector__page\">\n <slot name=\"page\" />\n </div>\n </div>\n <Transition name=\"b-inspector__animation\" mode=\"out-in\" @before-enter=\"setFocus\" @after-leave=\"setFocus\">\n <aside v-if=\"isOpen\" class=\"b-inspector__container-wrapper\" :aria-labelledby=\"titleId\">\n <bento-focus-trap class=\"b-inspector__container\">\n <div class=\"b-inspector__header\">\n <bento-typography :id=\"titleId\" el=\"h2\" variant=\"title\" class=\"b-inspector__title\">\n {{ title }}\n </bento-typography>\n <div class=\"b-inspector__icons\">\n <bento-button v-if=\"expandable\" variant=\"tertiary\" @click=\"emit('expand')\">\n <template #iconLeft><expand-icon :svg-title=\"t('expand')\"></expand-icon></template>\n </bento-button>\n <bento-button variant=\"tertiary\" @click=\"emit('update:is-open', false)\">\n <template #iconLeft><cross-icon :svg-title=\"t('close')\"></cross-icon></template>\n </bento-button>\n </div>\n </div>\n <div class=\"b-inspector__content\">\n <bento-loading-indicator v-if=\"loading\" large class=\"b-inspector__loading-indicator\" />\n <slot v-else name=\"content\" />\n </div>\n </bento-focus-trap>\n </aside>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import ExpandIcon from '@adyen/ui-assets-icons-16/vue/expand';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoInspectorSize } from './inspector.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(\n defineProps<{\n /**\n * Shows the Expand icon in the inspector\n */\n expandable?: boolean;\n /**\n * Opens and closes the inspector\n */\n isOpen?: boolean;\n\n /**\n * Shows loading indicator for the content\n */\n loading?: boolean;\n\n /**\n * Determines the size of the inspector\n */\n size?: BentoInspectorSize;\n\n /**\n * The title of the component\n */\n title: string;\n }>(),\n {\n expandable: false,\n isOpen: false,\n loading: false,\n size: 'small',\n }\n );\n\n const emit = defineEmits<{\n /**\n * Emits update to keep isOpen prop in sync\n */\n (e: 'update:is-open', value: boolean): void;\n /**\n * Emits event when user click expand button\n */\n (e: 'expand'): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const titleId = generateUid('inspectorTitle');\n const lastFocusedElement = ref<HTMLElement>(null);\n\n const conditionalClass = computed(() => ({\n [`b-inspector--${props.size}`]: true,\n }));\n\n const setFocus = () => {\n if (props.isOpen) {\n lastFocusedElement.value = document.activeElement as HTMLElement;\n } else {\n // This doesn't work with data grid cell actions, as the button gets destroyed once is not being hovered.\n // To be reviewed after LevelAccess revision\n lastFocusedElement.value?.focus();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Inspector allows users to access additional information or details of an object/item. The inspector opens adjacent to the main content, pushing it aside to maintain visibility and accessibility to both the main content and inspector.\n *\n * @example\n * import { BentoInspector } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInspector },\n * template: `\n * <bento-inspector\n * title=\"Inspector\"\n * size=\"large\"\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * >\n * <template #page>Content of the page</template>\n * <template #content>Content of the inspector</template>\n * </bento-inspector>\n * `\n * }\n */\n export default { i18n: { messages } };\n</script>\n\n<style lang=\"scss\" scoped src=\"./inspector.scss\" />\n","export const BentoInspectorSizeOptions = ['small', 'large'] as const;\n\nexport type BentoInspectorSize = (typeof BentoInspectorSizeOptions)[number];\n"],"names":["__default__","messages","props","__props","emit","__emit","t","useI18n","titleId","generateUid","lastFocusedElement","ref","conditionalClass","computed","setFocus","_a","BentoInspectorSizeOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;8NAsIIA,IAAA,EAAA,MAAA,EAAA,UAAAC,EAAA,EAAA;;;;;;;;;;;;AAtFA,UAAAC,IAAAC,GAkCAC,IAAAC,GAWA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAN,EAAA,CAAA,GACAO,IAAAC,EAAA,gBAAA,GACAC,IAAAC,EAAA,IAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAAyC,CAAA,gBAAAX,EAAA,IAAA,EAAA,GAAA;AAAA,IACL,EAAA,GAGpCY,IAAA,MAAA;;AACI,MAAAZ,EAAA,SACIQ,EAAA,QAAA,SAAA,iBAIAK,IAAAL,EAAA,UAAA,QAAAK,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEC5GKC,KAAA,CAAA,SAAA,OAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.ClFi8uSm.js","sources":["../../../core/src/components/link/link.types.ts","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@3.5.13_typescript@5.6.3_/node_modules/@adyen/ui-assets-icons-16/dist/vue/external-link.vue","../../src/components/link/link.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoLinkVariant {\n DEFAULT = 'default',\n QUIET = 'quiet',\n}\n\nexport interface LinkProps {\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link and renders an external link icon.\n */\n external?: boolean;\n\n /**\n * Set to true if used inside a `BentoButton` component.\n */\n isButton?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n isNotRouting?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n /**\n * Set to true to truncate link. Doesn't work with disableTypography.\n */\n truncate?: boolean;\n\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant?: BentoLinkVariant | `${BentoLinkVariant}`;\n}\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=\"M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <a\n v-if=\"external || isNotRouting\"\n v-bind=\"$attrs\"\n :href=\"to?.toString()\"\n :target=\"computedTarget\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n <span v-if=\"showExternalLinkIcon\" class=\"b-link__external-link-icon\">\n <external-link-icon />\n </span>\n </a>\n <router-link\n v-else\n v-bind=\"{ ...props, ...$attrs }\"\n :to=\"props.to\"\n :class=\"conditionalClasses\"\n :target=\"target\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import { BentoTypography } from '@/components/typography';\n import { computed } from 'vue';\n import { RouterLink } from 'vue-router';\n import type { BentoLinkProps } from './link.types';\n\n import ExternalLinkIcon from '@adyen/ui-assets-icons-16/vue/external-link';\n\n const props = withDefaults(defineProps<BentoLinkProps>(), {\n target: null,\n variant: BentoLinkVariant.DEFAULT,\n });\n\n const emit = defineEmits(['click']);\n const conditionalClasses = computed(() => ({\n 'b-link': !props.isButton,\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n [`b-link--truncate`]: props.truncate,\n }));\n const computedTarget = computed(() => (props.external ? props.target ?? '_blank' : props.target));\n const showExternalLinkIcon = computed(() => !(props.isButton || props.isNotRouting));\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const onClick = (e: MouseEvent, navigateCallback?: any) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["BentoLinkVariant","BentoLinkVariant2","uuid","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","props","__props","emit","__emit","conditionalClasses","computed","computedTarget","showExternalLinkIcon","onClick","e","navigateCallback"],"mappings":";;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACER,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;;AARR,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;MAE8M,MAAA;AAAA,MAAe,GAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;ACuCzN,UAAAC,IAAAC,GAKAC,IAAAC,GACAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,UAAA,CAAAL,EAAA;AAAA,MACtB,CAAA,WAAAR,EAAA,KAAA,EAAA,GAAAQ,EAAA,YAAAR,EAAA;AAAA,MACyD,oBAAAQ,EAAA;AAAA,IAC9C,EAAA,GAEhCM,IAAAD,EAAA,MAAAL,EAAA,WAAAA,EAAA,UAAA,WAAAA,EAAA,MAAA,GACAO,IAAAF,EAAA,MAAA,EAAAL,EAAA,YAAAA,EAAA,aAAA,GAGAQ,IAAA,CAAAC,GAAAC,MAAA;AACI,MAAAR,EAAA,SAAAO,CAAA,GACAC,KACIA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.DIKy_Pyt.js","sources":["../../../vue2/src/components/menu/components/menu-item/menu-item.vue","../../../vue2/src/components/menu/menu.types.ts","../../../vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.ts","../../../vue2/src/components/menu/components/menu-list-container/menu-list-container.vue","../../../vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue","../../../vue2/src/components/menu/components/menu-item-list/menu-item-list.vue","../../../vue2/src/components/menu/menu.keys.ts","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/options-vertical.vue","../../../vue2/src/components/menu/menu.vue"],"sourcesContent":["<template>\n <base-button\n class=\"b-menu-item\"\n role=\"menuitem\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n tabindex=\"-1\"\n @click=\"onClick\"\n >\n <template v-if=\"icon\" #iconLeft>\n <component :is=\"icon\" class=\"b-menu-item__icon-left\" aria-hidden=\"true\" />\n </template>\n <template #default>\n <bento-typography el=\"span\" variant=\"body\" :stronger=\"isTitle\" class=\"b-menu-item__primary-text\">\n {{ text }}\n </bento-typography>\n <bento-typography v-if=\"secondaryText\" el=\"span\" variant=\"body\" class=\"b-menu-item__secondary-text\">\n {{ secondaryText }}\n </bento-typography>\n </template>\n <template v-if=\"chevron\" #iconRight><chevron-right-icon aria-hidden=\"true\" /></template>\n </base-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import { BentoMenuItem } from './menu-item.types';\n\n /**\n * Menu item component to render items in a menu. For internal use only.\n */\n export default defineComponent({\n name: 'menu-item',\n components: { BaseButton, BentoTypography, ChevronRightIcon },\n props: {\n /**\n * menu-item text that gets displayed as the main label\n */\n text: {\n type: String,\n required: true,\n },\n /**\n * menu-item action that gets executed when the MeniItem is clicked\n */\n handler: {\n type: Function as PropType<BentoMenuItem['handler']>,\n required: true,\n },\n /**\n * menu-item text that gets displayed as the secondary label\n */\n secondaryText: {\n type: String,\n default: null,\n },\n /**\n * Optional chevron icon displayed to the right of the menu-item\n */\n chevron: {\n type: Boolean,\n default: false,\n },\n /**\n * Optional icon displayed to the left of the menu-item\n */\n icon: {\n // Types for Vue2 (Object) and Vue3 (Function)\n // TODO: Remove Object when fully migrated to Vue3\n type: [Object, Function] as PropType<BentoMenuItem['icon']>,\n default: null,\n },\n /**\n * Disables menu-item button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays an indent variant od the menu-item\n */\n indent: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays menu-item button as critical\n */\n critical: {\n type: Boolean,\n default: false,\n },\n /**\n * Renders the text in a bold variant\n */\n isTitle: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoBaseButtonEvent.CLICK],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n 'b-menu-item--critical': props.critical,\n 'b-menu-item--indent': props.indent,\n }));\n\n const onClick = (e: MouseEvent) => {\n e.stopPropagation();\n props.handler();\n emit(BentoBaseButtonEvent.CLICK);\n };\n\n return {\n // Values\n conditionalClasses,\n\n // Methods\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-item.scss\" />\n","import { BentoButton } from '../button';\n\nexport * from './components/menu-item/menu-item.types';\n\nexport enum BentoMenuEvent {\n BACK = 'back',\n CLOSE = 'close',\n OPEN = 'open',\n}\n\ntype ButtonProps = InstanceType<typeof BentoButton>['$props'];\n\nexport type BentoMenuButtonProps = {\n variant?: ButtonProps['variant'];\n condensed?: ButtonProps['condensed'];\n disabled?: ButtonProps['disabled'];\n};\n","export const DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY = Symbol('menu registering injection key');\n","<template>\n <div\n ref=\"menuListContainerRef\"\n class=\"b-menu-list-container\"\n data-testid=\"menu-list-container\"\n v-on=\"menuListContainerEvents\"\n ><slot></slot\n ></div>\n</template>\n\n<script setup lang=\"ts\">\n import { DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY } from '@/components/data-grid/components/data-grid-cell/data-grid-cell.keys';\n import { inject, ref } from 'vue';\n import type { DataGridCellRegisterMenu } from '@/components/data-grid/components/data-grid-cell/data-grid-cell.types';\n\n const menuListContainerRef = ref<HTMLDivElement>();\n const menuListContainerEvents = ref({});\n const registeringAndMousingOut = inject<DataGridCellRegisterMenu | false>(\n DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY,\n false\n );\n\n // This is needed by the DataGridCell component in order to keep track of if a teleported menu\n // is being hovered over in the DataGridCellActions.\n if (registeringAndMousingOut) {\n const { registerMenuContainerElement } = registeringAndMousingOut;\n registerMenuContainerElement(menuListContainerRef);\n menuListContainerEvents.value = {\n mouseleave: registeringAndMousingOut?.menuMouseLeave,\n };\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Menu list container component to set the correct styling in a menu list. For internal use only.\n */\n export default {\n name: 'bento-menu-list-container',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-list-container.scss\" />\n","<template>\n <transition name=\"b-sub-menu-item-list__transition\" appear>\n <menu-list-container class=\"b-sub-menu-item-list\">\n <ul\n ref=\"subMenuItemListRefLocal\"\n role=\"menu\"\n class=\"b-sub-menu-item-list__list\"\n @keydown.down.stop=\"focusNext\"\n @keydown.up.stop=\"focusPrevious\"\n @keydown.esc.stop=\"onBackButton\"\n >\n <li v-for=\"(item, index) in computedItems\" :key=\"`sub-menu-item-list-item-${index}`\" role=\"none\">\n <menu-item\n :text=\"item.text\"\n :handler=\"item.handler\"\n :secondary-text=\"item.secondaryText\"\n :icon=\"item.icon\"\n :is-title=\"item.isTitle\"\n :disabled=\"item.disabled\"\n :critical=\"item.critical\"\n :indent=\"item.indent\"\n :tabindex=\"index === subMenuFocusedIndex ? '0' : '-1'\"\n @click=\"item.clickHandler\"\n />\n <bento-divider v-if=\"item.addDivider\" class=\"b-sub-menu-item-list__divider\" />\n </li>\n </ul>\n </menu-list-container>\n </transition>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, ref } from 'vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import { BentoMenuEvent } from '../../menu.types';\n import messages from '../../messages.json';\n\n /**\n * SubMenuItemList component to render a submenu with the sliding transition. For internal use only.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'sub-menu-item-list',\n components: { BentoDivider, MenuItem, MenuListContainer },\n props: {\n items: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n },\n emits: [BentoMenuEvent.CLOSE, BentoMenuEvent.BACK],\n setup(props, { emit }) {\n const subMenuItemListRefLocal = ref(null);\n const subMenuFocusedIndex = ref(0);\n const numberOfItems = ref(props.items.length);\n\n const closeMenu = () => emit(BentoMenuEvent.CLOSE);\n\n const onBackButton = () => emit(BentoMenuEvent.BACK);\n\n const computedItems = computed(() => {\n const items = props.items?.map(el => ({\n ...el,\n indent: !el.icon,\n isTitle: false,\n clickHandler: closeMenu,\n }));\n return [\n {\n text: props.title,\n secondaryText: null,\n critical: false,\n icon: ChevronLeftIcon,\n isTitle: true,\n disabled: false,\n indent: false,\n handler: onBackButton,\n clickHandler: onBackButton,\n addDivider: true,\n },\n ...items,\n ];\n });\n\n const focusItem = async () => {\n subMenuItemListRefLocal.value?.children?.[subMenuFocusedIndex.value]?.children?.[0]?.focus();\n };\n\n onMounted(async () => {\n // Using setTimeout otherwise the sliding animation doesn't work anymore. The timeout imer is the same as the transition time (0.15s)\n setTimeout(() => focusItem(), 150);\n });\n\n const focusPrevious = () => {\n if (subMenuFocusedIndex.value > 0) {\n subMenuFocusedIndex.value -= 1;\n if (computedItems.value[subMenuFocusedIndex.value].disabled) {\n focusPrevious();\n }\n } else {\n subMenuFocusedIndex.value = numberOfItems.value;\n }\n focusItem();\n };\n\n const focusNext = () => {\n if (subMenuFocusedIndex.value < numberOfItems.value) {\n subMenuFocusedIndex.value += 1;\n if (computedItems.value[subMenuFocusedIndex.value].disabled) {\n focusNext();\n }\n } else {\n subMenuFocusedIndex.value = 0;\n }\n focusItem();\n };\n\n return {\n // Enums\n BentoMenuEvent,\n\n // Values\n subMenuItemListRefLocal,\n subMenuFocusedIndex,\n ChevronLeftIcon,\n computedItems,\n\n // Methods\n closeMenu,\n onBackButton,\n focusPrevious,\n focusNext,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./sub-menu-item-list.scss\" />\n","<template>\n <menu-list-container ref=\"menuItemListWrapperRef\" :style=\"{ height: computedHeight }\">\n <ul\n ref=\"menuItemListRef\"\n class=\"b-menu-item-list\"\n role=\"menu\"\n @keydown.down=\"focusNext\"\n @keydown.up=\"focusPrevious\"\n @keydown.esc=\"closeMenu\"\n @keydown.tab=\"closeMenu\"\n >\n <li\n v-for=\"(item, index) in computedData\"\n :key=\"`menu-item-${index}`\"\n class=\"b-menu-item-list__item\"\n role=\"none\"\n @keydown.right=\"focusRight(item, index)\"\n @keydown.left=\"focusLeft()\"\n >\n <menu-item\n :text=\"item.text\"\n :handler=\"!item.items?.length ? item.handler : () => null\"\n :secondary-text=\"item.secondaryText\"\n :icon=\"item.icon\"\n :chevron=\"!!item.items?.length\"\n :disabled=\"item.disabled\"\n :critical=\"item.critical\"\n :indent=\"item.indent\"\n :tabindex=\"index === subMenuFocusedIndex ? '0' : '-1'\"\n :aria-haspopup=\"!!item.items?.length\"\n :aria-expanded=\"showSubMenu && visibleSubMenuIndex === index\"\n @click=\"menuItemClick(item, index)\"\n />\n <bento-divider v-if=\"item.addDivider\" class=\"b-menu-item-list__divider\" />\n <sub-menu-item-list\n v-if=\"item.items?.length && showSubMenu && visibleSubMenuIndex === index\"\n ref=\"subMenuItemListRef\"\n :items=\"item.items\"\n :title=\"item.text\"\n @back=\"onBackButton\"\n @close=\"closeMenu\"\n />\n </li>\n </ul>\n </menu-list-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import { BentoMenuEvent } from '../../menu.types';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\n import SubMenuItemList from '../sub-menu-item-list/sub-menu-item-list.vue';\n\n /**\n * MenuItem list to be used in the Menu component. For internal use only.\n */\n export default defineComponent({\n name: 'menu-item-list',\n components: { BentoDivider, MenuItem, MenuListContainer, SubMenuItemList },\n props: {\n /**\n * The data to be displayed in the list\n */\n data: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n /**\n * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.\n */\n indentItems: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.\n */\n focusLastElement: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, closes the menu when an item is clicked.\n */\n closeMenuOnItemSelect: {\n type: Boolean,\n default: true,\n },\n },\n emits: [BentoMenuEvent.CLOSE, 'menu-item-click'],\n setup(props, { emit }) {\n const menuItemListRef = ref(null);\n const menuItemListWrapperRef = ref(null);\n const subMenuItemListRef = ref(null);\n const showSubMenu = ref(false);\n const visibleSubMenuIndex = ref(null);\n const focusedIndex = ref(props.focusLastElement ? props.data.length - 1 : 0);\n const subMenuFocusedIndex = ref(0);\n const numberOfItems = ref(props.data.length - 1);\n const hasMenuItemsWithIcon = computed(() => props.data.some(el => el.icon));\n\n const computedData = computed(() => {\n if (props.indentItems || hasMenuItemsWithIcon.value) {\n return props.data.map(el => {\n let indent = false;\n if (!el.icon) {\n indent = true;\n }\n return {\n ...el,\n // eslint-disable-next-line no-param-reassign\n indent,\n };\n });\n }\n return props.data;\n });\n\n const focusItem = () => menuItemListRef.value?.children[focusedIndex.value]?.children[0]?.focus();\n\n const closeMenu = () => emit(BentoMenuEvent.CLOSE);\n\n const menuItemClick = (item: BentoMenuItem, index: number) => {\n if (item.items) {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = true;\n\n return;\n }\n\n visibleSubMenuIndex.value = index;\n showSubMenu.value = false;\n\n if (props.closeMenuOnItemSelect) {\n closeMenu();\n }\n\n emit('menu-item-click');\n };\n\n const focusPrevious = () => {\n if (focusedIndex.value > 0) {\n focusedIndex.value -= 1;\n if (computedData.value[focusedIndex.value].disabled) {\n focusPrevious();\n }\n } else {\n focusedIndex.value = numberOfItems.value;\n }\n focusItem();\n };\n\n const focusNext = () => {\n if (focusedIndex.value < numberOfItems.value) {\n focusedIndex.value += 1;\n if (computedData.value[focusedIndex.value].disabled) {\n focusNext();\n }\n } else {\n focusedIndex.value = 0;\n }\n focusItem();\n };\n\n const focusRight = (item, index) => {\n if (item?.items?.length) {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = true;\n }\n };\n\n const focusLeft = () => {\n if (visibleSubMenuIndex.value && showSubMenu.value) {\n visibleSubMenuIndex.value = null;\n showSubMenu.value = false;\n }\n };\n\n const onBackButton = () => {\n showSubMenu.value = false;\n visibleSubMenuIndex.value = null;\n // Focus the right element\n focusItem();\n };\n\n const subMenuHeight = computed(() => subMenuItemListRef.value?.[0]?.$el?.offsetHeight);\n\n // When we show the sub menu we need to set the height of the container because of the way the submenus are handled,\n // but the main menu doesn't need a height, as the popover will generate it with the right height\n const computedHeight = computed(() => (showSubMenu.value ? `${subMenuHeight.value}px` : ''));\n\n return {\n // Values\n menuItemListRef,\n menuItemListWrapperRef,\n subMenuItemListRef,\n\n computedData,\n computedHeight,\n\n focusedIndex,\n subMenuFocusedIndex,\n\n showSubMenu,\n visibleSubMenuIndex,\n\n // Methods\n menuItemClick,\n closeMenu,\n focusPrevious,\n focusNext,\n focusRight,\n focusLeft,\n onBackButton,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-item-list.scss\" />\n","export const MENU_INVERSE_INJECTION_KEY = Symbol('menu inverse style injection key');\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=\"M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z\"/><path fill=\"#00112C\" d=\"M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z\"/><path fill=\"#00112C\" d=\"M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div\n :class=\"computedClasses\"\n class=\"b-menu\"\n @keydown.down=\"onKeyDown\"\n @keydown.up=\"onKeyUp\"\n @keydown.esc=\"closeMenu\"\n >\n <bento-toggle-button\n ref=\"menuButtonRef\"\n aria-haspopup=\"true\"\n v-bind=\"computedButtonPropsWithDefaults\"\n :aria-controls=\"showMenu ? menuId : null\"\n :toggled=\"showMenu\"\n :inverse=\"isInverseColorSet\"\n @click=\"toggleShowMenu\"\n >\n <template v-if=\"!hasSlot('default') || hasSlot('iconLeft')\" #iconLeft>\n <slot name=\"iconLeft\">\n <options-vertical-icon :title=\"t('menuButton')\" />\n </slot>\n </template>\n <template v-if=\"hasSlot('default')\" #default>\n <slot />\n </template>\n <template v-if=\"hasSlot('iconRight')\" #iconRight>\n <slot name=\"iconRight\" />\n </template>\n </bento-toggle-button>\n\n <bento-teleport v-if=\"menuButtonRef\" :disabled=\"!teleport\">\n <bento-popover\n v-if=\"menuButtonRef\"\n :id=\"menuId\"\n ref=\"popoverRef\"\n :open=\"showMenu\"\n class=\"b-menu__popover\"\n :style=\"computedMenuWidth\"\n :target-element=\"menuButtonRef\"\n :position=\"menuPosition\"\n :fixed-positioning=\"menuFixedPositioning\"\n :fallback-position=\"[\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n 'right-start',\n 'right-end',\n 'left-start',\n 'left-end',\n ]\"\n :teleport=\"teleport\"\n without-space\n >\n <menu-item-list\n :close-menu-on-item-select=\"closeMenuOnItemSelect\"\n :data=\"data\"\n :focus-last-element=\"isLastElementFocused\"\n @close=\"closeMenu\"\n @menu-item-click=\"menuItemClick\"\n />\n </bento-popover>\n </bento-teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType, provide, ref } from 'vue';\n import { generateUid } from '@/core/utils/ts';\n import { BentoToggleButton } from '@/components/button';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoMenuItem, MenuItemList } from './components';\n import { BentoMenuButtonProps, BentoMenuEvent } from './menu.types';\n import { DIVIDER_INVERSE_INJECTION_KEY } from '@/components/divider/divider.keys';\n import { MENU_INVERSE_INJECTION_KEY } from './menu.keys';\n import { BentoTeleport } from '@/internal';\n import { useClickOutside, useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import OptionsVerticalIcon from '@adyen/ui-assets-icons-16/vue/options-vertical';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Menu component to render a series of buttons. Csan render nested submenus.\n *\n * @example\n * import { BentoMenu } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoMenu },\n * template: `\n * <bento-menu\n * :data=[\n * { text: 'Menu item text', handler: () => { some code here } },\n * { text: 'Another menu item text', handler: () => { some other code here }, critical: true }\n * ]\n * />\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-menu',\n components: { BentoToggleButton, BentoPopover, BentoTeleport, MenuItemList, OptionsVerticalIcon },\n props: {\n /**\n * Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.\n */\n button: {\n type: Object as PropType<BentoMenuButtonProps>,\n default: () =>\n ({\n variant: 'secondary',\n } as BentoMenuButtonProps),\n },\n\n /**\n * Controls if the menu should close when an item is clicked.\n * Defaults to `true`.\n */\n closeMenuOnItemSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * The data to be displayed in the list\n */\n data: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n\n /**\n * The position of where the menu should open.\n */\n menuPosition: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Instructs the menu popover to be visible outside of the containing container.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n menuFixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets a custom width for the menu popover.\n */\n menuWidth: {\n type: Number,\n default: null,\n },\n\n /**\n * Returns focus to the menu button after popover is closed.\n * Disable if focus management is delegated to the parent component.\n * Defaults to `true`.\n */\n revertFocusToButton: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node\n * (or `dialog` if popover is inside a dialog).\n */\n teleport: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoMenuEvent.CLOSE, BentoMenuEvent.OPEN, 'menu-item-click'],\n setup(props, { emit, slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const menuButtonRef = ref(null);\n const showMenu = ref(false);\n const isLastElementFocused = ref(false);\n const popoverRef = ref<HTMLElement>(null);\n const menuId = generateUid('menu');\n const popoverId = generateUid('menu-popover');\n\n const isInverseColorSet = inject(MENU_INVERSE_INJECTION_KEY, ref(false));\n provide(DIVIDER_INVERSE_INJECTION_KEY, isInverseColorSet);\n\n const computedClasses = computed(() => ({\n 'b-menu--inverse': isInverseColorSet.value,\n }));\n\n const computedMenuWidth = computed(() => (props.menuWidth ? { width: `${props.menuWidth}px` } : null));\n const computedButtonPropsWithDefaults = computed<BentoMenuButtonProps>(() => {\n if (!props?.button) {\n return undefined;\n }\n return {\n variant: 'secondary',\n ...props.button,\n };\n });\n\n const openMenu = () => {\n showMenu.value = true;\n emit(BentoMenuEvent.OPEN);\n };\n\n const closeMenu = () => {\n if (!showMenu.value) {\n return;\n }\n\n showMenu.value = false;\n\n if (props.revertFocusToButton) {\n menuButtonRef.value.$el.focus();\n }\n\n emit(BentoMenuEvent.CLOSE);\n };\n\n const toggleShowMenu = (e: MouseEvent) => {\n e.stopPropagation();\n if (!showMenu.value) {\n openMenu();\n } else {\n closeMenu();\n }\n };\n\n const onKeyDown = () => {\n isLastElementFocused.value = false;\n openMenu();\n };\n\n const onKeyUp = () => {\n isLastElementFocused.value = true;\n openMenu();\n };\n\n const menuItemClick = () => {\n emit('menu-item-click');\n };\n\n // Ignore the events inside the Button and the Popover\n useClickOutside(popoverRef, closeMenu, { ignore: [menuButtonRef] });\n\n return {\n // Refs\n popoverRef,\n menuButtonRef,\n\n // Values\n menuId,\n popoverId,\n showMenu,\n computedButtonPropsWithDefaults,\n computedMenuWidth,\n isLastElementFocused,\n\n // Classes\n computedClasses,\n isInverseColorSet,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onKeyDown,\n onKeyUp,\n closeMenu,\n menuItemClick,\n toggleShowMenu,\n\n // Translations\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu.scss\" />\n"],"names":["_sfc_main$5","defineComponent","BaseButton","BentoTypography","ChevronRightIcon","BentoBaseButtonEvent","props","emit","computed","e","normalizeClass","_ctx","onClick","createSlots","withCtx","createVNode","_component_bento_typography","createTextVNode","toDisplayString","secondaryText","createCommentVNode","icon","openBlock","createBlock","resolveDynamicComponent","_component_chevron_right_icon","BentoMenuEvent","BentoMenuEvent2","DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY","__default__","menuListContainerRef","ref","menuListContainerEvents","registeringAndMousingOut","inject","registerMenuContainerElement","_sfc_main$3","messages","BentoDivider","MenuItem","MenuListContainer","subMenuItemListRefLocal","subMenuFocusedIndex","numberOfItems","closeMenu","onBackButton","computedItems","items","_a","el","ChevronLeftIcon","focusItem","_e","_d","_c","_b","onMounted","focusPrevious","focusNext","_component_menu_list_container","resolveComponent","Transition","createElementVNode","_cache","withKeys","withModifiers","args","createElementBlock","Fragment","renderList","item","index","_component_bento_divider","_sfc_main$2","SubMenuItemList","menuItemListRef","menuItemListWrapperRef","subMenuItemListRef","showSubMenu","visibleSubMenuIndex","focusedIndex","hasMenuItemsWithIcon","computedData","indent","menuItemClick","focusRight","focusLeft","subMenuHeight","computedHeight","$event","_component_sub_menu_item_list","MENU_INVERSE_INJECTION_KEY","uuid","mergeProps","_sfc_main","BentoToggleButton","BentoPopover","BentoTeleport","MenuItemList","OptionsVerticalIcon","BentoPopoverPositions","value","slots","t","useI18n","menuButtonRef","showMenu","isLastElementFocused","popoverRef","menuId","generateUid","popoverId","isInverseColorSet","provide","DIVIDER_INVERSE_INJECTION_KEY","computedClasses","computedMenuWidth","computedButtonPropsWithDefaults","openMenu","toggleShowMenu","onKeyDown","onKeyUp","useClickOutside","useHasSlot","renderSlot","_component_options_vertical_icon","_component_bento_teleport","_component_bento_popover","normalizeStyle","menuFixedPositioning","_component_menu_item_list"],"mappings":";;;;;;;;;;;;;AAkCI,MAAAA,KAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,YAAAC,IAAA,iBAAAC,IAAA,kBAAAC,GAAA;AAAA,EACsD,OAAA;AAAA;AAAA;AAAA;AAAA,IACrD,MAAA;AAAA,MAIG,MAAA;AAAA,MACI,UAAA;AAAA,IACI;AAAA;AAAA;AAAA;AAAA,IACd,SAAA;AAAA,MAIS,MAAA;AAAA,MACC,UAAA;AAAA,IACI;AAAA;AAAA;AAAA;AAAA,IACd,eAAA;AAAA,MAIe,MAAA;AAAA,MACL,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,SAAA;AAAA,MAIS,MAAA;AAAA,MACC,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,MAAA;AAAA;AAAA;AAAA,MAIM,MAAA,CAAA,QAAA,QAAA;AAAA,MAGqB,SAAA;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,QAAA;AAAA,MAIQ,MAAA;AAAA,MACE,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,SAAA;AAAA,MAIS,MAAA;AAAA,MACC,SAAA;AAAA,IACG;AAAA,E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g, computed as k, inject as S, resolveComponent as p, createElementBlock as l, openBlock as r, createElementVNode as y, createBlock as u, normalizeClass as I, toDisplayString as h, withCtx as v, createTextVNode as C } from "vue";
|
|
2
|
-
import { B as E } from "./typography.DN5eC5ch.js";
|
|
3
|
-
import { S as B } from "./summary-grid.keys.CxTf_FOc.js";
|
|
4
|
-
import w from "@adyen/ui-assets-payment-method-icons/vue/unknowncard";
|
|
5
|
-
import { _ as M } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import "../assets/payment-method.css";
|
|
7
|
-
const U = (e) => `https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/images/logos/${e.toLowerCase()}.svg`, G = (e) => {
|
|
8
|
-
const o = m(e), n = m();
|
|
9
|
-
return _(
|
|
10
|
-
o,
|
|
11
|
-
(t) => {
|
|
12
|
-
t == null || t === "Unknowncard" || (n.value = U(t));
|
|
13
|
-
},
|
|
14
|
-
{ immediate: !0 }
|
|
15
|
-
), n;
|
|
16
|
-
}, L = b({
|
|
17
|
-
name: "bento-payment-method",
|
|
18
|
-
components: { BentoTypography: E, UnknownCardIcon: w },
|
|
19
|
-
props: {
|
|
20
|
-
/**
|
|
21
|
-
* The type of payment method to display.
|
|
22
|
-
*/
|
|
23
|
-
type: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "Unknowncard"
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* The label describing to the payment method icon.
|
|
29
|
-
*/
|
|
30
|
-
label: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: !0
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* Render payment method icon in a smaller size
|
|
36
|
-
*/
|
|
37
|
-
small: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
setup(e) {
|
|
43
|
-
const o = g(e, "type"), n = m(!1), t = G(o), i = k(() => ({
|
|
44
|
-
"b-payment-method__icon--small": e.small
|
|
45
|
-
})), d = S(
|
|
46
|
-
B,
|
|
47
|
-
() => ({
|
|
48
|
-
isSummaryGridLayout: !1
|
|
49
|
-
})
|
|
50
|
-
), { isSummaryGridLayout: a } = d(), s = () => {
|
|
51
|
-
n.value = !0;
|
|
52
|
-
};
|
|
53
|
-
return _(
|
|
54
|
-
() => o.value,
|
|
55
|
-
(c, f) => {
|
|
56
|
-
c !== f && (n.value = !1);
|
|
57
|
-
}
|
|
58
|
-
), {
|
|
59
|
-
// Values
|
|
60
|
-
conditionalIconClasses: i,
|
|
61
|
-
hasErroredOnImage: n,
|
|
62
|
-
isSummaryGridLayout: a,
|
|
63
|
-
paymentMethodIconSrc: t,
|
|
64
|
-
// Methods
|
|
65
|
-
onSrcError: s
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}), $ = { class: "b-payment-method" }, N = { class: "b-payment-method__icon-container" }, O = ["alt", "src"], T = { class: "b-payment-method__label" }, R = { key: 0 };
|
|
69
|
-
function Y(e, o, n, t, i, d) {
|
|
70
|
-
const a = p("unknown-card-icon"), s = p("bento-typography");
|
|
71
|
-
return r(), l("div", $, [
|
|
72
|
-
y("div", N, [
|
|
73
|
-
e.type !== "Unknowncard" && !e.hasErroredOnImage ? (r(), l("img", {
|
|
74
|
-
key: 0,
|
|
75
|
-
"aria-hidden": "true",
|
|
76
|
-
class: I(["b-payment-method__icon", e.conditionalIconClasses]),
|
|
77
|
-
alt: e.label,
|
|
78
|
-
src: e.paymentMethodIconSrc,
|
|
79
|
-
onError: o[0] || (o[0] = (...c) => e.onSrcError && e.onSrcError(...c))
|
|
80
|
-
}, null, 42, O)) : (r(), u(a, {
|
|
81
|
-
key: 1,
|
|
82
|
-
"svg-title": e.label,
|
|
83
|
-
"aria-hidden": "true"
|
|
84
|
-
}, null, 8, ["svg-title"]))
|
|
85
|
-
]),
|
|
86
|
-
y("div", T, [
|
|
87
|
-
e.isSummaryGridLayout ? (r(), l("span", R, h(e.label), 1)) : (r(), u(s, {
|
|
88
|
-
key: 1,
|
|
89
|
-
el: "span"
|
|
90
|
-
}, {
|
|
91
|
-
default: v(() => [
|
|
92
|
-
C(h(e.label), 1)
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}))
|
|
96
|
-
])
|
|
97
|
-
]);
|
|
98
|
-
}
|
|
99
|
-
const z = /* @__PURE__ */ M(L, [["render", Y], ["__scopeId", "data-v-7ceb550e"]]);
|
|
100
|
-
export {
|
|
101
|
-
z as B
|
|
102
|
-
};
|
|
103
|
-
//# sourceMappingURL=payment-method.NguqkTwG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method.NguqkTwG.js","sources":["../../../vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.ts","../../../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","<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 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 UnknownCardIcon from '@adyen/ui-assets-payment-method-icons/vue/unknowncard';\n\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 components: { BentoTypography, UnknownCardIcon },\n props: {\n /**\n * The type of payment method to display.\n */\n type: {\n type: String,\n default: 'Unknowncard',\n },\n\n /**\n * The label describing to the payment method icon.\n */\n label: {\n type: String,\n required: true,\n },\n\n /**\n * Render payment method icon in a smaller size\n */\n small: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\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\n return {\n // Values\n conditionalIconClasses,\n hasErroredOnImage,\n isSummaryGridLayout,\n paymentMethodIconSrc,\n\n // Methods\n onSrcError,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./payment-method.scss\" />\n"],"names":["paymentMethodToCdnUrl","paymentType","usePaymentIcon","type","ref","paymentIconSrc","watch","newPaymentType","_sfc_main","defineComponent","BentoTypography","UnknownCardIcon","props","toRef","hasErroredOnImage","paymentMethodIconSrc","conditionalIconClasses","computed","registerPaymentMethodInSummaryGrid","inject","SUMMARY_GRID_LAYOUT_INJECTION_KEY","isSummaryGridLayout","onSrcError","newType","oldType","_hoisted_1","_hoisted_2","_hoisted_3","createElementVNode","_ctx","openBlock","createElementBlock","normalizeClass","createBlock","_component_unknown_card_icon","_hoisted_4","_hoisted_5","toDisplayString","_component_bento_typography","createTextVNode"],"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,GCQIG,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,iBAAAC,GAAA,iBAAAC,EAAA;AAAA,EACyC,OAAA;AAAA;AAAA;AAAA;AAAA,IACxC,MAAA;AAAA,MAIG,MAAA;AAAA,MACI,SAAA;AAAA,IAC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pB,KAAAA,EAAA;AAAA;MAEwD,GAAA,MAAA,IAAAF,CAAA,MAAAG,EAAA,GAAAG,EAAAC,GAAA;AAAA,QAAvB,KAAA;AAAA,QAAE,aAAAL,EAAA;AAAA;MAEjD,GAAA,MAAA,GAAA,CAAA,WAAA,CAAA;AAAA,IAAA,CAAA;AAAA,IACID,EAAA,OAAAO,GAAA;AAAA,MAAAN,EAAA,uBAAAC,EAAA,GAAAC,EAAA,QAAAK,GAAAC,EAAAR,EAAA,KAAA,GAAA,CAAA,MAAAC,EAAA,GAAAG,EAAAK,GAAA;AAAA,QACkC,KAAA;AAAA,QAhB9C,IAAA;AAAA,MAAA,GAAA;AAAA;UAAAC,EAAAF,EAAAR,EAAA,KAAA,GAAA,CAAA;AAAA,QAAA,CAAA;AAAA;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.NEP6wuPa.js","sources":["../../../vue2/src/components/popover/components/popover-title/popover-title.vue","../../../vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue","../../../vue2/src/components/popover/popover.types.ts","../../../vue2/src/components/popover/popover.keys.ts","../../../vue2/src/components/filter-bar/components/input-filter/input-filter.keys.ts","../../../vue2/src/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.keys.ts","../../../vue2/src/components/popover/popover.vue"],"sourcesContent":["<template>\n <bento-typography :strongest=\"isStrongest\" :variant=\"titleVariant\" el=\"span\">\n {{ title }}\n </bento-typography>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n\n export default defineComponent({\n components: { BentoTypography },\n props: {\n /**\n * Indicates if the popover contains an image.\n */\n isImageTitle: { type: Boolean, default: false },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: { type: String, default: null },\n },\n setup(props) {\n // Use strongest only when it has no image\n const isStrongest = computed(() => !props.isImageTitle);\n\n // If an image is present, change the variant from BODY to SUBTITLE and remove the \"strongest\" property of the title\n const titleVariant = computed(() =>\n props.isImageTitle ? BentoTypographyVariant.SUBTITLE : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n isStrongest,\n titleVariant,\n };\n },\n });\n</script>\n","<template>\n <bento-button :class=\"conditionalClass\" variant=\"tertiary\" @click=\"$emit('click')\">\n <template #iconLeft>\n <cross-icon svg-title=\"dismiss\" />\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoButton } from '@/components/button';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n export default defineComponent({\n name: 'bento-popover-dismiss-button',\n components: { BentoButton, CrossIcon },\n props: {\n onImage: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const conditionalClass = computed(() => ({ 'b-popover-dismiss-button--on-image': props.onImage }));\n\n return {\n // Values\n conditionalClass,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover-dismiss-button.scss\" />\n","import { PopperContainerPosition } from '../popper-container';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoPopoverPositions = { ...PopperContainerPosition };\nexport type BentoPopoverPositions = PopperContainerPosition;\n","export const POPOVER_OFFSET_INJECTION_KEY = Symbol('popover offset injection key');\n","/**\n * @deprecated from version 2.0.0. Use BentoFilterItemType.INPUT_DROPDOWN and INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY instead.\n */\nexport const INPUT_FILTER_POPOVER_INJECTION_KEY = Symbol('input field popover injection key');\n","export const INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY = Symbol('input field popover injection key');\n","<template>\n <Transition name=\"b-popover__animation\">\n <popper-container\n v-if=\"open\"\n :id=\"computedAttributes['id']\"\n :aria-role=\"PopperContainerAriaRole.POPOVER\"\n :aria-label=\"computedAriaLabel\"\n :arrow=\"{ classes: ['b-popover__arrow'] }\"\n :disabled-focus-trap=\"disableFocusTrap\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :fixed-positioning=\"fixedPositioning\"\n :offset=\"[0, offset]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n class=\"b-popover\"\n @placement=\"$emit('placement', $event)\"\n >\n <div v-if=\"hasSlot('image')\" class=\"b-popover__image\">\n <div v-if=\"dismissible\" class=\"b-popover__image-dismiss-button\">\n <bento-popover-dismiss-button on-image @click=\"dismissPopover\" />\n </div>\n <slot name=\"image\"></slot>\n </div>\n <div v-if=\"title\" class=\"b-popover__header\">\n <div class=\"b-popover__header-title\">\n <slot v-if=\"hasSlot('headerIcon')\" name=\"headerIcon\"></slot>\n <bento-popover-title :title=\"title\" :is-image-title=\"!!hasSlot('image')\" />\n </div>\n <div v-if=\"dismissible && !hasSlot('image')\">\n <bento-popover-dismiss-button @click=\"dismissPopover\" />\n </div>\n </div>\n\n <div v-if=\"hasSlot('default')\" class=\"b-popover__content\" :class=\"contentConditionalClasses\">\n <slot></slot>\n </div>\n\n <div v-if=\"actions\" class=\"b-popover__footer\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </popper-container>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, ref, toRefs, useAttrs, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import BentoPopoverTitle from './components/popover-title/popover-title.vue';\n import BentoPopoverDismissButton from './components/popover-dismiss-button/popover-dismiss-button.vue';\n\n import { BentoPopoverPositions } from './popover.types';\n import { Placement } from '@floating-ui/vue';\n\n import { useHasSlot } from '@/composables';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n import { POPOVER_OFFSET_INJECTION_KEY } from './popover.keys';\n import { INPUT_FILTER_POPOVER_INJECTION_KEY } from '@/components/filter-bar/components/input-filter/input-filter.keys';\n import { INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY } from '@/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.keys';\n\n const DEFAULT_OFFSET = 2;\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout | `${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Defines a string value that provides an accessible name for the popover.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the \"default\" slot.\n */\n divider: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.\n * */\n disableFocusTrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds a \"dismiss\" icon that triggers the \"dismiss\" event. Requires the `title` prop to be set.\n */\n dismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * https://floating-ui.com/docs/flip#fallbackplacements\n */\n fallbackPosition: {\n type: Array as PropType<Placement[]>,\n default: () => ['bottom-start', 'right-start', 'top-start', 'left-start'],\n },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: { type: Boolean, default: false },\n\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n fixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Toggles the popover open and closed\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displays the popover in a large size.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * @deprecated\n * NOTE: This property no longer functions since moving to the floating-ui framework.\n */\n modifiers: { type: Array, default: null },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Displays the popover in a small size.\n */\n small: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: {\n type: String,\n default: null,\n },\n\n /**\n * Popover's target element.\n * The popover will position itself relatively to target element, in specified position.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n /**\n * Displays the popover without padding.\n */\n withoutSpace: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Triggered when the `dismiss` button is clicked\n */\n (e: 'dismiss'): void;\n /**\n * Triggered when the popover `placement` changes\n */\n (e: 'placement', placement: Placement): void;\n }>();\n\n const slots = useSlots();\n const attrs = useAttrs();\n\n const computedAttributes = computed(() => ({\n id: attrs.id?.toString() as string,\n }));\n\n const offset = inject<number>(POPOVER_OFFSET_INJECTION_KEY, DEFAULT_OFFSET);\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, title } = 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 defaultFallback: title,\n });\n\n const isOverflowVisible =\n inject(INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY, false) ||\n inject(INPUT_FILTER_POPOVER_INJECTION_KEY, false);\n\n const conditionalClasses = computed(() => ({\n 'b-popover--small': props.small && !props.large,\n 'b-popover--with-divider': !!props.divider,\n 'b-popover--large': props.large && !props.small,\n 'b-popover--fit-content': props.fitContent,\n 'b-popover--without-space': props.withoutSpace,\n 'b-popover--overflow-visible': isOverflowVisible,\n }));\n\n const contentConditionalClasses = computed(() => ({\n 'b-popover__content--with-title': !!props.title,\n }));\n\n const dismissPopover = () => emit('dismiss');\n\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoPopover } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoPopover },\n * template: `\n * <bento-popover id=\"your-popover-id\">\n * ...Example code of the component\n * </bento-popover>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover.scss\" />\n"],"names":["_sfc_main$2","defineComponent","BentoTypography","props","isStrongest","computed","titleVariant","BentoTypographyVariant","_component_bento_typography","resolveComponent","openBlock","createBlock","_ctx","createTextVNode","toDisplayString","_sfc_main$1","BentoButton","CrossIcon","_component_bento_button","normalizeClass","_cache","$event","createVNode","_component_cross_icon","BentoPopoverPositions","PopperContainerPosition","POPOVER_OFFSET_INJECTION_KEY","INPUT_FILTER_POPOVER_INJECTION_KEY","INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY","__default__","__props","emit","__emit","slots","useSlots","attrs","useAttrs","computedAttributes","_a","offset","inject","ariaLabelAttribute","ref","ariaLabel","title","toRefs","computedAriaLabel","useAriaLabel","isOverflowVisible","conditionalClasses","contentConditionalClasses","dismissPopover","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;AAUI,MAAAA,KAAAC,EAAA;AAAA,EAA+B,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACG,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,cAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAI2C,OAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA,EAKT;AAAA,EACzC,MAAAC,GAAA;AAGI,UAAAC,IAAAC,EAAA,MAAA,CAAAF,EAAA,YAAA,GAGAG,IAAAD;AAAA,MAAqB,MAAAF,EAAA,eAAAI,EAAA,WAAAA,EAAA;AAAA,IAC6D;AAGlF,WAAA;AAAA;AAAA,MAAO,aAAAH;AAAA,MAEH,cAAAE;AAAA,IACA;AAAA,EACJ;AAER,CAAA;;AAnCmB,QAAAE,IAAAC,EAAA,kBAAA;AAFyB,SAAAC,EAAA,GAAAC,EAAAH,GAAA;AAAA,IAAqB,WAAAI,EAAA;AAAA,IAAW,SAAAA,EAAA;AAAA,IADhF,IAAA;AAAA,EAAA,GAAA;AAAA;MAAAC,EAAAC,EAAAF,EAAA,KAAA,GAAA,CAAA;AAAA,IAAA,CAAA;AAAA;;;oDCaIG,KAAAd,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,aAAAe,GAAA,WAAAC,EAAA;AAAA,EAC+B,OAAA;AAAA,IAC9B,SAAA;AAAA,MACM,MAAA;AAAA,MACC,SAAA;AAAA,IACG;AAAA,EACb;AAAA,EACJ,MAAAd,GAAA;AAII,WAAA;AAAA;AAAA,MAAO,kBAFPE,EAAA,OAAA,EAAA,sCAAAF,EAAA,QAAA,EAAA;AAAA,IAII;AAAA,EACJ;AAER,CAAA;;;AA7B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AAAA,EAAA;AAAA,MACP,oBAAAA,EAAA,SAAA,CAAAA,EAAA;AAAA,MACO,0BAAAA,EAAA;AAAA,MACV,4BAAAA,EAAA;AAAA,MACE,+BAAA6C;AAAA,IACH,EAAA,GAGnCE,IAAA7C,EAAA,OAAA;AAAA,MAAkD,kCAAA,CAAA,CAAAF,EAAA;AAAA,IACJ,EAAA,GAG9CgD,IAAA,MAAApB,EAAA,SAAA,GAEAqB,IAAAC,GAAApB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.CCgvi7TQ.js","sources":["../../../vue2/src/components/button/components/toggle-button/toggle-button.vue"],"sourcesContent":["<template>\n <bento-button\n class=\"b-toggle-button\"\n v-bind=\"$attrs\"\n :aria-expanded=\"`${toggled}`\"\n :condensed=\"condensed\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :inverse=\"inverse\"\n :variant=\"computedVariant\"\n @click.capture.stop=\"onClick\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]>\n <slot :name=\"innerSlot\" v-bind=\"getSlotKeyIfVue3(innerSlot)\" />\n </template>\n </bento-button>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import BentoButton from '@/components/button/button.vue';\n import { BentoButtonVariant } from '@/core/components/button/button.types';\n import { isVue3 } from 'vue-demi';\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: {\n type: BentoButton.props.condensed.type,\n default: false,\n },\n\n /**\n * Disables button functonality\n */\n disabled: {\n type: BentoButton.props.disabled.type,\n default: false,\n },\n\n /**\n * Sets color set to inverse\n */\n inverse: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: BentoButton.props.variant.type,\n default: 'primary',\n validator: BentoButton.props.variant.validator,\n },\n\n /**\n * The state of the button whether it is toggled or not.\n */\n toggled: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Click event handler\n */\n (e: 'click', event: MouseEvent): void;\n\n /**\n * Update the toggle state when the button has been clicked.\n */\n (e: 'update:toggled', newToggleState: boolean): void;\n }>();\n\n const computedVariant = computed(\n () => (props.variant === 'tertiary' ? 'tertiary-with-background' : props.variant) as BentoButtonVariant\n );\n\n const conditionalClasses = computed(() => ({\n [`b-toggle-button--condensed`]: props?.condensed,\n [`b-toggle-button--${computedVariant.value}-toggled`]: props.toggled,\n [`b-toggle-button--inverse`]: props.inverse,\n }));\n\n const onClick = (e: MouseEvent) => {\n // Prevent Vue3 from triggering event twice\n e.stopPropagation();\n if (!props?.disabled) {\n emit('click', e);\n emit('update:toggled', !props.toggled);\n }\n };\n\n const slots = useSlots();\n // If we don't provide a key to `slot` in vue 3, we will get type errors\n const getSlotKeyIfVue3 = (slotName: string | number) => (isVue3 ? { key: slotName } : {});\n</script>\n\n<script lang=\"ts\">\n /**\n * Toggle button is used to switch between two states (example: menu shown, menu hidden).\n * It functions as a regular button but retains its state to indicate whether the associated menu or element is active or inactive.\n *\n * @example\n * import { BentoToggleButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoToggleButton },\n * template: `\n * <bento-toggle-button state=\"toggled\" variant=\"secondary\">\n * Button that can be toggled\n * </bento-toggle-button>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./toggle-button.scss\" />\n"],"names":["__default__","props","__props","emit","__emit","computedVariant","computed","conditionalClasses","onClick","e","slots","useSlots","getSlotKeyIfVue3","slotName"],"mappings":";;;;AAyHI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjGA,UAAAC,IAAAC,GA4CAC,IAAAC,GAYAC,IAAAC;AAAA,MAAwB,MAAAL,EAAA,YAAA,aAAA,6BAAAA,EAAA;AAAA,IACqD,GAG7EM,IAAAD,EAAA,OAAA;AAAA,MAA2C,8BAAAL,KAAA,gBAAAA,EAAA;AAAA,MACA,CAAA,oBAAAI,EAAA,KAAA,UAAA,GAAAJ,EAAA;AAAA,MACsB,4BAAAA,EAAA;AAAA,IACzB,EAAA,GAGxCO,IAAA,CAAAC,MAAA;AAEI,MAAAA,EAAA,gBAAA,GACAR,KAAA,QAAAA,EAAA,aACIE,EAAA,SAAAM,CAAA,GACAN,EAAA,kBAAA,CAAAF,EAAA,OAAA;AAAA,IACJ,GAGJS,IAAAC,EAAA,GAEAC,IAAA,CAAAC,OAAA,EAAA,KAAAA,EAAA;;;;;;;;;;;;;;;;;;;"}
|