@adyen/bento-vue3 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/assets/accordion-item.css +1 -1
  2. package/dist/assets/action-bar.css +1 -1
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/button-actions.css +1 -1
  5. package/dist/assets/card.css +1 -1
  6. package/dist/assets/data-grid.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/file-uploader.css +1 -1
  9. package/dist/assets/inspector.css +1 -1
  10. package/dist/assets/modal-fullscreen.css +1 -1
  11. package/dist/assets/navigation-menu-group.css +1 -1
  12. package/dist/assets/secondary-nav.css +1 -1
  13. package/dist/assets/sidepanel.css +1 -1
  14. package/dist/checkbox.js +2 -2
  15. package/dist/chunks/{calendar.EuBZ9HoM.js → calendar.CycKx_P3.js} +2 -2
  16. package/dist/chunks/{calendar.EuBZ9HoM.js.map → calendar.CycKx_P3.js.map} +1 -1
  17. package/dist/chunks/{checkbox-group.Deb5pHjj.js → checkbox-group.Bcy98dh8.js} +2 -2
  18. package/dist/chunks/{checkbox-group.Deb5pHjj.js.map → checkbox-group.Bcy98dh8.js.map} +1 -1
  19. package/dist/chunks/{checkbox.YBhv3GCJ.js → checkbox.BN7ttBqd.js} +14 -14
  20. package/dist/chunks/{checkbox.YBhv3GCJ.js.map → checkbox.BN7ttBqd.js.map} +1 -1
  21. package/dist/chunks/{code-snippet.DNDXr7t6.js → code-snippet.3u22Ij2R.js} +2 -2
  22. package/dist/chunks/{code-snippet.DNDXr7t6.js.map → code-snippet.3u22Ij2R.js.map} +1 -1
  23. package/dist/chunks/{data-grid.o5MQdWnJ.js → data-grid.DYNep9mz.js} +6 -6
  24. package/dist/chunks/{data-grid.o5MQdWnJ.js.map → data-grid.DYNep9mz.js.map} +1 -1
  25. package/dist/chunks/{date-picker.DyB8XkiY.js → date-picker.DjLNf7fF.js} +5 -5
  26. package/dist/chunks/{date-picker.DyB8XkiY.js.map → date-picker.DjLNf7fF.js.map} +1 -1
  27. package/dist/chunks/{date-range-picker.BcQUUVcW.js → date-range-picker.CI5hBzgs.js} +6 -6
  28. package/dist/chunks/{date-range-picker.BcQUUVcW.js.map → date-range-picker.CI5hBzgs.js.map} +1 -1
  29. package/dist/chunks/{dropdown-tag.BvXqllkv.js → dropdown-tag.GOcJPx20.js} +2 -2
  30. package/dist/chunks/{dropdown-tag.BvXqllkv.js.map → dropdown-tag.GOcJPx20.js.map} +1 -1
  31. package/dist/chunks/{dropdown.BoSI-Rre.js → dropdown.BvrZG8Za.js} +13 -13
  32. package/dist/chunks/{dropdown.BoSI-Rre.js.map → dropdown.BvrZG8Za.js.map} +1 -1
  33. package/dist/chunks/{filter-bar.6ElVHgFA.js → filter-bar.DrOXGxUc.js} +9 -9
  34. package/dist/chunks/{filter-bar.6ElVHgFA.js.map → filter-bar.DrOXGxUc.js.map} +1 -1
  35. package/dist/chunks/{header-with-views.Dl6bfk_7.js → header-with-views.LJ3oCsMN.js} +4 -4
  36. package/dist/chunks/{header-with-views.Dl6bfk_7.js.map → header-with-views.LJ3oCsMN.js.map} +1 -1
  37. package/dist/chunks/{input-field-password.BXptrVTT.js → input-field-password.CFBPscot.js} +2 -2
  38. package/dist/chunks/{input-field-password.BXptrVTT.js.map → input-field-password.CFBPscot.js.map} +1 -1
  39. package/dist/chunks/{input-field-phone-number.Crxi8Wm7.js → input-field-phone-number.BNAKRBLr.js} +2 -2
  40. package/dist/chunks/{input-field-phone-number.Crxi8Wm7.js.map → input-field-phone-number.BNAKRBLr.js.map} +1 -1
  41. package/dist/chunks/{input-field._keU91LW.js → input-field.BBSr4o-k.js} +2 -2
  42. package/dist/chunks/{input-field._keU91LW.js.map → input-field.BBSr4o-k.js.map} +1 -1
  43. package/dist/chunks/{input-time.D7UW_ww_.js → input-time.Cdz9Jb-1.js} +3 -3
  44. package/dist/chunks/{input-time.D7UW_ww_.js.map → input-time.Cdz9Jb-1.js.map} +1 -1
  45. package/dist/chunks/{pagination.C-kvJ-XK.js → pagination.DbGaudSO.js} +2 -2
  46. package/dist/chunks/{pagination.C-kvJ-XK.js.map → pagination.DbGaudSO.js.map} +1 -1
  47. package/dist/chunks/{rich-text-editor.ClUU1zPM.js → rich-text-editor.CjbYg6ee.js} +2 -2
  48. package/dist/chunks/{rich-text-editor.ClUU1zPM.js.map → rich-text-editor.CjbYg6ee.js.map} +1 -1
  49. package/dist/chunks/{search-bar.D1Jz7hdd.js → search-bar.D8LwiALL.js} +3 -3
  50. package/dist/chunks/{search-bar.D1Jz7hdd.js.map → search-bar.D8LwiALL.js.map} +1 -1
  51. package/dist/chunks/{secondary-nav.D32VFDTi.js → secondary-nav.CWZFULKD.js} +2 -2
  52. package/dist/chunks/{secondary-nav.D32VFDTi.js.map → secondary-nav.CWZFULKD.js.map} +1 -1
  53. package/dist/chunks/{selection-card-group.CQsS8-H9.js → selection-card-group.Covrf9mH.js} +9 -9
  54. package/dist/chunks/{selection-card-group.CQsS8-H9.js.map → selection-card-group.Covrf9mH.js.map} +1 -1
  55. package/dist/chunks/{use-date-input-formatter.BIVkaB1k.js → use-date-input-formatter.deZ3kB0L.js} +2 -2
  56. package/dist/chunks/{use-date-input-formatter.BIVkaB1k.js.map → use-date-input-formatter.deZ3kB0L.js.map} +1 -1
  57. package/dist/code-snippet.js +1 -1
  58. package/dist/data-grid.js +1 -1
  59. package/dist/date-picker.js +2 -2
  60. package/dist/date-range-picker.js +2 -2
  61. package/dist/date-time-picker.js +4 -4
  62. package/dist/dropdown.js +2 -2
  63. package/dist/filter-bar.js +1 -1
  64. package/dist/header-with-views.js +1 -1
  65. package/dist/index.js +20 -20
  66. package/dist/input-field-password.js +1 -1
  67. package/dist/input-field-phone-number.js +1 -1
  68. package/dist/input-field.js +1 -1
  69. package/dist/input-time.js +1 -1
  70. package/dist/internal.js +2 -2
  71. package/dist/pagination.js +1 -1
  72. package/dist/rich-text-editor.js +1 -1
  73. package/dist/search-bar.js +2 -2
  74. package/dist/secondary-nav.js +1 -1
  75. package/dist/selection-card.js +1 -1
  76. package/dist/web-types.json +1 -1
  77. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as P, openBlock as h, createElementBlock as O, normalizeProps as B, guardReactiveProps as M, createVNode as p, mergeProps as L, withCtx as y, unref as i, toRefs as C, createTextVNode as V, toDisplayString as g, ref as A, watch as R, createBlock as U, createElementVNode as T, createCommentVNode as F } from "vue";
2
2
  import { B as z } from "./avatar.Bes5Qw12.js";
3
- import { B as m, f as D } from "./dropdown.BoSI-Rre.js";
3
+ import { B as m, f as D } from "./dropdown.BvrZG8Za.js";
4
4
  import { u as _ } from "./form-field.B60VsF8d.js";
5
5
  import { B as j } from "./typography.B6elnWpr.js";
6
6
  import { u as q } from "./use-country-items.CAYJt6XS.js";
@@ -275,4 +275,4 @@ export {
275
275
  ue as c,
276
276
  de as d
277
277
  };
278
- //# sourceMappingURL=dropdown-tag.BvXqllkv.js.map
278
+ //# sourceMappingURL=dropdown-tag.GOcJPx20.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-tag.BvXqllkv.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue"],"sourcesContent":["<template>\n <div v-bind=\"getNonAriaLabelAttributes($attrs)\">\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"{ ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n :items=\"dropdownItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-avatar :username=\"label\" :src=\"data\" />\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { isVue2 } from 'vue-demi';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { type BentoAvatarListboxOptions } from './dropdown-avatar.types';\n import { BentoAvatar } from '@/components/avatar';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the avatar dropdown with.\n * It must be an array of {@see BentoAvatarListboxOptions }\n * @property {string} value.label - Text to be displayed in the option.\n * @property {string | number} value.value - Value of the option.\n * @property {string} value.src - Image source of the avatar image.\n */\n items: {\n type: Array as PropType<BentoAvatarListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const dropdownItems = computed(() => props.items.map(({ value, label, src }) => ({ value, label, data: src })));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Avatar Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownAvatar } from '@adyen/bento-vue2';\n * import type { BentoAvatarListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownAvatar },\n * template: `\n * <bento-dropdown-avatar\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('user-id-1') // Default value\n * const options: BentoAvatarListboxOptions = [\n * { label: 'User 1', value: 'user-id-1' },\n * { label: 'User 2', value: 'user-id-2', src: 'image-source.jpeg' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-avatar',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n","<template>\n <div v-bind=\"getNonAriaLabelAttributes($attrs)\">\n <bento-dropdown\n v-slot=\"{ label }\"\n v-bind=\"{ ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n :items=\"countryItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, toRefs } from 'vue';\n import { isVue2 } from 'vue-demi';\n import { type BentoCountryListboxOptions } from './dropdown-country.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { BentoTypography } from '@/components/typography';\n import { useCountryItems } from './composables/use-country-items';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { BentoCountryVariant } from '@/components/country';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the country dropdown with.\n * It must be an array of {@see BentoCountryListboxOptions }\n * @deprecated Since v3.0.0. Use `BentoDropdown` instead.\n * @property {BentoCountryCode | string} value.value - Country code of the option\n */\n items: {\n type: Array as PropType<BentoCountryListboxOptions>,\n default: () => [],\n },\n\n /**\n * Which label variant to display.\n * @values iso, name, phone_code, capital\n */\n variant: {\n type: String as PropType<BentoCountryVariant | `${BentoCountryVariant}`>,\n default: BentoCountryVariant.NAME,\n validator: (value: BentoCountryVariant) => Object.values(BentoCountryVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const { variant, items } = toRefs(props);\n const countryItems = useCountryItems(variant, items);\n</script>\n\n<script lang=\"ts\">\n /**\n * A Country Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-country\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { value: BentoCountryCode.NL },\n * { value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-country',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n","<template>\n <bento-dropdown\n v-slot=\"slotProps\"\n v-bind=\"{ ...getNonAriaLabelAttributes($attrs), ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n :search=\"search\"\n :items=\"filteredItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, ref, watch } from 'vue';\n import { isVue2 } from 'vue-demi';\n import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '@/internal/listbox/';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the currency dropdown with.\n * It must be an array of {@see BentoCurrencyListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {BentoCurrencyISOCode} value.code - Currency ISO code of the option\n */\n items: {\n type: Array as PropType<BentoCurrencyListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const filteredItems = ref<BentoCurrencyListboxOptions>([]);\n\n watch(\n () => props.items,\n () => (filteredItems.value = props.items),\n { immediate: true }\n );\n\n const search = props.search\n ? props.search\n : {\n debounceTime: 500,\n searchEvent: async (searchTerm: string) => {\n // Combine value and label to be able to search by the currency code\n const searchableItems = props.items.map(item => ({\n ...item,\n label: `${item.value} ${item.label}`,\n }));\n\n const searchResults = useSearchBarFilter(\n ref(searchTerm),\n ref<BentoCurrencyListboxOptions>(searchableItems),\n props?.search?.searchEvent,\n ref(false)\n ).value;\n\n // Restore original labels by removing the prepended value\n const normalizedResults = searchResults?.map(result => ({\n ...result,\n label: result.label.substring(result.value.length + 1),\n }));\n\n filteredItems.value = normalizedResults;\n },\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A Currency Dropdown showing a selectable list of currencies.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-currency\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-currency',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n","<template>\n <div v-bind=\"getNonAriaLabelAttributes($attrs)\">\n <bento-dropdown\n class=\"b-dropdown-payment-method\"\n v-bind=\"{ ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <template #display-value=\"{ label, value }\">\n <bento-payment-method :type=\"value\" :label=\"label\" />\n </template>\n\n <template #default=\"{ value, label, description }\">\n <div class=\"b-dropdown-payment-method__item\">\n <bento-payment-method :type=\"value\" :label=\"description ? undefined : label\" />\n\n <div v-if=\"description\" class=\"b-dropdown-payment-method__text\">\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n <bento-typography el=\"span\" class=\"b-dropdown-payment-method__description\">{{\n description\n }}</bento-typography>\n </div>\n </div>\n </template>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType } from 'vue';\n import { isVue2 } from 'vue-demi';\n import { BentoPaymentMethod } from '@/components/payment-method';\n import { BentoTypography } from '@/components/typography';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { type BentoPaymentMethodListboxOptions } from './dropdown-payment-method.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the payment method dropdown with.\n * It must be an array of {@see BentoPaymentMethodListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string} value.value - Payment type code that translates to a payment icon name {@see https://adyen-ui-assets.netlify.app/?path=/story/packages-ui-assets-payment-method-icons--icons}\n */\n items: {\n type: Array as PropType<BentoPaymentMethodListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n</script>\n\n<script lang=\"ts\">\n /**\n * A Payment method Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownPaymentMethod } from '@adyen/bento-vue2';\n * import type { BentoPaymentMethodListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownPaymentMethod },\n * template: `\n * <bento-dropdown-payment-method\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 'Visa'\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('ideal') // Default value\n * const options: BentoPaymentMethodListboxOptions = [\n * { label: 'Option 1', value: 'ideal' },\n * { label: 'Option 2', value: 'visa' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-payment-method',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-payment-method.scss\" />\n","<template>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"{ ...getNonAriaLabelAttributes($attrs), ...$props, ariaLabel: undefined }\"\n class=\"b-dropdown-tag\"\n :aria-label=\"getAriaLabel($attrs)\"\n :items=\"tagItems\"\n show-slot-content-in-multiple\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"{ value: label, data, label: '' }\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { isVue2 } from 'vue-demi';\n import type { BentoTagListboxOptions } from './dropdown-tag.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '../../../../internal';\n import BentoDropdown from '../../../dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the tag dropdown with.\n * It must be an array of {@see BentoTagListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string | number} value.value - Value of the option\n * @property {string} value.variant - The BentTag variant shown for the option.\n */\n items: {\n type: Array as PropType<BentoTagListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const tagItems = computed(() => props.items?.map(({ label, value, variant }) => ({ label, value, data: variant })));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Tag Dropdown showing a selectable list of tags.\n *\n * @example\n * import { BentoDropdownTag } from '@adyen/bento-vue2';\n * import type { BentoTagListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownTag },\n * template: `\n * <bento-dropdown-tag\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('unique-id-1') // Default value\n * const options: BentoTagListboxOptions = [\n * { label: 'Offline', value: 'unique-id-1', variant: 'red' },\n * { label: 'Online', value: 'unique-id-2', variant: 'green' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-tag',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-tag.scss\" />\n"],"names":["__default__$4","defineComponent","props","__props","emit","__emit","emitValue","useFormFieldEmits","getAriaLabel","attributes","getNonAriaLabelAttributes","key","onUpdateModelValue","selectedValue","dropdownItems","computed","value","label","src","__default__$3","variant","items","toRefs","countryItems","useCountryItems","__default__$2","filteredItems","ref","watch","search","searchTerm","searchableItems","item","normalizedResults","useSearchBarFilter","result","__default__$1","__default__","tagItems"],"mappings":";;;;;;;;;;;AA2GI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAAA,EACQ,OAAA,EAAA,MAAA,cAAA,OAAA,qBAAA;AAElB,CAAA;;;;;;;;;;;;;;;;;;AAtFA,UAAAC,IAAAC,GAoBAC,IAAAC,GAmBA,EAAA,WAAAC,EAAA,IAAAC,EAAAH,CAAA,GAEAI,IAAA,CAAAC,MAAA,OAAA,UAAA,eAAA,KAAAA,GAAA,YAAA,IAAAA,EAAA,YAAA,IAAAA,EAAA,aAAAP,EAAA,WAIAQ,IAAA,CAAAD,MAAA,OAAA,YAAA,OAAA,QAAAA,CAAA,EAAA,OAAA,CAAA,CAAAE,CAAA,MAAAA,MAAA,gBAAAA,MAAA,WAAA,CAAA,GAGAC,IAAA,CAAAC,MAAAP,EAAAO,CAAA,GAEAC,IAAAC,EAAA,MAAAb,EAAA,MAAA,IAAA,CAAA,EAAA,OAAAc,GAAA,OAAAC,GAAA,KAAAC,EAAA,OAAA,EAAA,OAAAF,GAAA,OAAAC,GAAA,MAAAC,EAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;IC4CAC,IAAAlB,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAAA,EACQ,OAAA,EAAA,MAAA,cAAA,OAAA,qBAAA;AAElB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAhGA,UAAAC,IAAAC,GA6BAC,IAAAC,GAmBA,EAAA,WAAAC,EAAA,IAAAC,EAAAH,CAAA,GAEAI,IAAA,CAAAC,MAAA,OAAA,UAAA,eAAA,KAAAA,GAAA,YAAA,IAAAA,EAAA,YAAA,IAAAA,EAAA,aAAAP,EAAA,WAIAQ,IAA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QAAAA,CAAA,EAAA,OAAA,CAAA,CAAAE,CAAA,MAAAA,MAAA,gBAAAA,MAAA,WAAA,CAAA,GAGAC,IAAA,CAAAC,MAAAP,EAAAO,CAAA,GAEAyB,IAAAvB,EAAA,MAAAb,EAAA,OAAA,IAAA,CAAA,EAAA,OAAAe,GAAA,OAAAD,GAAA,SAAAI,EAAA,OAAA,EAAA,OAAAH,GAAA,OAAAD,GAAA,MAAAI,EAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dropdown-tag.GOcJPx20.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue"],"sourcesContent":["<template>\n <div v-bind=\"getNonAriaLabelAttributes($attrs)\">\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"{ ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n :items=\"dropdownItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-avatar :username=\"label\" :src=\"data\" />\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { isVue2 } from 'vue-demi';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { type BentoAvatarListboxOptions } from './dropdown-avatar.types';\n import { BentoAvatar } from '@/components/avatar';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the avatar dropdown with.\n * It must be an array of {@see BentoAvatarListboxOptions }\n * @property {string} value.label - Text to be displayed in the option.\n * @property {string | number} value.value - Value of the option.\n * @property {string} value.src - Image source of the avatar image.\n */\n items: {\n type: Array as PropType<BentoAvatarListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const dropdownItems = computed(() => props.items.map(({ value, label, src }) => ({ value, label, data: src })));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Avatar Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownAvatar } from '@adyen/bento-vue2';\n * import type { BentoAvatarListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownAvatar },\n * template: `\n * <bento-dropdown-avatar\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('user-id-1') // Default value\n * const options: BentoAvatarListboxOptions = [\n * { label: 'User 1', value: 'user-id-1' },\n * { label: 'User 2', value: 'user-id-2', src: 'image-source.jpeg' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-avatar',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n","<template>\n <div v-bind=\"getNonAriaLabelAttributes($attrs)\">\n <bento-dropdown\n v-slot=\"{ label }\"\n v-bind=\"{ ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n :items=\"countryItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, toRefs } from 'vue';\n import { isVue2 } from 'vue-demi';\n import { type BentoCountryListboxOptions } from './dropdown-country.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { BentoTypography } from '@/components/typography';\n import { useCountryItems } from './composables/use-country-items';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { BentoCountryVariant } from '@/components/country';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the country dropdown with.\n * It must be an array of {@see BentoCountryListboxOptions }\n * @deprecated Since v3.0.0. Use `BentoDropdown` instead.\n * @property {BentoCountryCode | string} value.value - Country code of the option\n */\n items: {\n type: Array as PropType<BentoCountryListboxOptions>,\n default: () => [],\n },\n\n /**\n * Which label variant to display.\n * @values iso, name, phone_code, capital\n */\n variant: {\n type: String as PropType<BentoCountryVariant | `${BentoCountryVariant}`>,\n default: BentoCountryVariant.NAME,\n validator: (value: BentoCountryVariant) => Object.values(BentoCountryVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const { variant, items } = toRefs(props);\n const countryItems = useCountryItems(variant, items);\n</script>\n\n<script lang=\"ts\">\n /**\n * A Country Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-country\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { value: BentoCountryCode.NL },\n * { value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-country',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n","<template>\n <bento-dropdown\n v-slot=\"slotProps\"\n v-bind=\"{ ...getNonAriaLabelAttributes($attrs), ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n :search=\"search\"\n :items=\"filteredItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, ref, watch } from 'vue';\n import { isVue2 } from 'vue-demi';\n import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '@/internal/listbox/';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the currency dropdown with.\n * It must be an array of {@see BentoCurrencyListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {BentoCurrencyISOCode} value.code - Currency ISO code of the option\n */\n items: {\n type: Array as PropType<BentoCurrencyListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const filteredItems = ref<BentoCurrencyListboxOptions>([]);\n\n watch(\n () => props.items,\n () => (filteredItems.value = props.items),\n { immediate: true }\n );\n\n const search = props.search\n ? props.search\n : {\n debounceTime: 500,\n searchEvent: async (searchTerm: string) => {\n // Combine value and label to be able to search by the currency code\n const searchableItems = props.items.map(item => ({\n ...item,\n label: `${item.value} ${item.label}`,\n }));\n\n const searchResults = useSearchBarFilter(\n ref(searchTerm),\n ref<BentoCurrencyListboxOptions>(searchableItems),\n props?.search?.searchEvent,\n ref(false)\n ).value;\n\n // Restore original labels by removing the prepended value\n const normalizedResults = searchResults?.map(result => ({\n ...result,\n label: result.label.substring(result.value.length + 1),\n }));\n\n filteredItems.value = normalizedResults;\n },\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A Currency Dropdown showing a selectable list of currencies.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-currency\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-currency',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n","<template>\n <div v-bind=\"getNonAriaLabelAttributes($attrs)\">\n <bento-dropdown\n class=\"b-dropdown-payment-method\"\n v-bind=\"{ ...$props, ariaLabel: undefined }\"\n :aria-label=\"getAriaLabel($attrs)\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <template #display-value=\"{ label, value }\">\n <bento-payment-method :type=\"value\" :label=\"label\" />\n </template>\n\n <template #default=\"{ value, label, description }\">\n <div class=\"b-dropdown-payment-method__item\">\n <bento-payment-method :type=\"value\" :label=\"description ? undefined : label\" />\n\n <div v-if=\"description\" class=\"b-dropdown-payment-method__text\">\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n <bento-typography el=\"span\" class=\"b-dropdown-payment-method__description\">{{\n description\n }}</bento-typography>\n </div>\n </div>\n </template>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType } from 'vue';\n import { isVue2 } from 'vue-demi';\n import { BentoPaymentMethod } from '@/components/payment-method';\n import { BentoTypography } from '@/components/typography';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { type BentoPaymentMethodListboxOptions } from './dropdown-payment-method.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the payment method dropdown with.\n * It must be an array of {@see BentoPaymentMethodListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string} value.value - Payment type code that translates to a payment icon name {@see https://adyen-ui-assets.netlify.app/?path=/story/packages-ui-assets-payment-method-icons--icons}\n */\n items: {\n type: Array as PropType<BentoPaymentMethodListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n</script>\n\n<script lang=\"ts\">\n /**\n * A Payment method Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownPaymentMethod } from '@adyen/bento-vue2';\n * import type { BentoPaymentMethodListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownPaymentMethod },\n * template: `\n * <bento-dropdown-payment-method\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 'Visa'\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('ideal') // Default value\n * const options: BentoPaymentMethodListboxOptions = [\n * { label: 'Option 1', value: 'ideal' },\n * { label: 'Option 2', value: 'visa' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-payment-method',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-payment-method.scss\" />\n","<template>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"{ ...getNonAriaLabelAttributes($attrs), ...$props, ariaLabel: undefined }\"\n class=\"b-dropdown-tag\"\n :aria-label=\"getAriaLabel($attrs)\"\n :items=\"tagItems\"\n show-slot-content-in-multiple\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"{ value: label, data, label: '' }\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { isVue2 } from 'vue-demi';\n import type { BentoTagListboxOptions } from './dropdown-tag.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '../../../../internal';\n import BentoDropdown from '../../../dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * @deprecated Since v3.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ...(isVue2 ? { ariaLabel: { type: String, default: null } } : {}),\n /**\n * The option elements to populate the tag dropdown with.\n * It must be an array of {@see BentoTagListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string | number} value.value - Value of the option\n * @property {string} value.variant - The BentTag variant shown for the option.\n */\n items: {\n type: Array as PropType<BentoTagListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const getAriaLabel = (attributes: Record<string, unknown>) =>\n Object.prototype.hasOwnProperty.call(attributes, 'aria-label')\n ? attributes['aria-label']\n : (attributes.ariaLabel ?? props.ariaLabel);\n const getNonAriaLabelAttributes = (attributes: Record<string, unknown>) =>\n Object.fromEntries(Object.entries(attributes).filter(([key]) => key !== 'aria-label' && key !== 'ariaLabel'));\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const tagItems = computed(() => props.items?.map(({ label, value, variant }) => ({ label, value, data: variant })));\n</script>\n\n<script lang=\"ts\">\n /**\n * A Tag Dropdown showing a selectable list of tags.\n *\n * @example\n * import { BentoDropdownTag } from '@adyen/bento-vue2';\n * import type { BentoTagListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownTag },\n * template: `\n * <bento-dropdown-tag\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('unique-id-1') // Default value\n * const options: BentoTagListboxOptions = [\n * { label: 'Offline', value: 'unique-id-1', variant: 'red' },\n * { label: 'Online', value: 'unique-id-2', variant: 'green' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-tag',\n inheritAttrs: false,\n model: { prop: 'modelValue', event: 'update:model-value' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-tag.scss\" />\n"],"names":["__default__$4","defineComponent","props","__props","emit","__emit","emitValue","useFormFieldEmits","getAriaLabel","attributes","getNonAriaLabelAttributes","key","onUpdateModelValue","selectedValue","dropdownItems","computed","value","label","src","__default__$3","variant","items","toRefs","countryItems","useCountryItems","__default__$2","filteredItems","ref","watch","search","searchTerm","searchableItems","item","normalizedResults","useSearchBarFilter","result","__default__$1","__default__","tagItems"],"mappings":";;;;;;;;;;;AA2GI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAAA,EACQ,OAAA,EAAA,MAAA,cAAA,OAAA,qBAAA;AAElB,CAAA;;;;;;;;;;;;;;;;;;AAtFA,UAAAC,IAAAC,GAoBAC,IAAAC,GAmBA,EA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as le, a as je } from "./keyboard-navigation.DWmhelVv.js";
17
17
  import { B as At } from "./loading-indicator.BPol9I84.js";
18
18
  import { B as wt } from "./empty-state.BuK12EGe.js";
19
- import { B as tt, _ as Qt } from "./minus-small.DBR64xRS.js";
20
- import { _ as el } from "./checkmark-small.DJcd8Sd7.js";
21
- import { B as tl } from "./chip.D4OozULC.js";
22
- import { b as lt, a as ll, h as al, e as ol } from "./button-actions.DvuGEQxM.js";
23
- import { o as sl } from "./resize.Bqks3WUm.js";
19
+ import { o as Qt } from "./resize.Bqks3WUm.js";
20
+ import { B as tt, _ as el } from "./minus-small.DBR64xRS.js";
21
+ import { _ as tl } from "./checkmark-small.DJcd8Sd7.js";
22
+ import { B as ll } from "./chip.D4OozULC.js";
23
+ import { b as lt, a as al, h as ol, e as sl } from "./button-actions.DvuGEQxM.js";
24
24
  import { F as nl } from "./field-label.vrUwhoOg.js";
25
25
  import { P as ht } from "./popper-container.Rfj8UdMD.js";
26
26
  import { E as il } from "./error-message.DJ5l0EUH.js";
@@ -81,7 +81,7 @@ function rl(e, { disabled: a, itemHeight: o, overscan: l = 5, prefixHeight: i })
81
81
  h();
82
82
  };
83
83
  a || (Wt(() => {
84
- s.value && (u.value = s.value.clientHeight, c = sl(s.value, ({ clientHeight: T }) => {
84
+ s.value && (u.value = s.value.clientHeight, c = Qt(s.value, ({ clientHeight: T }) => {
85
85
  u.value = T, h();
86
86
  }), h());
87
87
  }), qt(() => {
@@ -680,7 +680,7 @@ const El = /* @__PURE__ */ ue(Ll, [["render", Il]]), Ol = { key: 0 }, Tl = {
680
680
  class: we(["b-checkbox-input", o.value]),
681
681
  role: "presentation"
682
682
  }, [
683
- i.indeterminate ? (p(), F(v(Qt), {
683
+ i.indeterminate ? (p(), F(v(el), {
684
684
  key: 0,
685
685
  class: "b-checkbox-input__icon",
686
686
  "svg-title": "",
@@ -691,7 +691,7 @@ const El = /* @__PURE__ */ ue(Ll, [["render", Il]]), Ol = { key: 0 }, Tl = {
691
691
  "svg-title": "",
692
692
  "aria-hidden": "true",
693
693
  "data-testid": "decorative-checkbox-double-checkmark-icon"
694
- })) : i.checked ? (p(), F(v(el), {
694
+ })) : i.checked ? (p(), F(v(tl), {
695
695
  key: 2,
696
696
  class: "b-checkbox-input__icon",
697
697
  "svg-title": "",
@@ -739,7 +739,7 @@ const Dt = {
739
739
  () => o.loading ? lt.LOADING : lt.START
740
740
  ), s = r(() => o.loading ? a("loading") : a("showMore"));
741
741
  return (n, t) => l.value || n.loading ? (p(), I("div", _l, [
742
- l.value ? (p(), F(v(ll), {
742
+ l.value ? (p(), F(v(al), {
743
743
  key: 0,
744
744
  state: i.value,
745
745
  tabindex: n.tabindex,
@@ -1490,7 +1490,7 @@ const Yl = /* @__PURE__ */ ue(Kl, [["render", ql], ["__scopeId", "data-v-dba55b0
1490
1490
  (p(!0), I(Ce, null, re(Te.value, (E) => (p(), I("li", {
1491
1491
  key: E.value
1492
1492
  }, [
1493
- q(v(tl), {
1493
+ q(v(ll), {
1494
1494
  ref_for: !0,
1495
1495
  ref_key: "selectedListboxItemsRef",
1496
1496
  ref: b,
@@ -2108,7 +2108,7 @@ const gt = {
2108
2108
  "b-dropdown-options-container--single": !s?.multiple
2109
2109
  })), S = r(() => ({
2110
2110
  "b-dropdown-options-container__listbox--single": !s?.multiple
2111
- })), { actions: h, internalSelectedValue: N, listeners: w, onEscapeKey: $, onOutsideDropdownClick: T } = ia(n, t, c, i), M = r(() => s?.multiple ? al : ht), _ = r(() => {
2111
+ })), { actions: h, internalSelectedValue: N, listeners: w, onEscapeKey: $, onOutsideDropdownClick: T } = ia(n, t, c, i), M = r(() => s?.multiple ? ol : ht), _ = r(() => {
2112
2112
  const L = {
2113
2113
  "min-width": `${s?.targetElement?.clientWidth}px`,
2114
2114
  "max-width": "min(500px, 95%)"
@@ -3176,7 +3176,7 @@ const Kt = {
3176
3176
  ], 16)), [
3177
3177
  [v(je)]
3178
3178
  ]),
3179
- d.value ? (p(), F(v(ol), {
3179
+ d.value ? (p(), F(v(sl), {
3180
3180
  key: 1,
3181
3181
  disabled: m.teleport?.disabled,
3182
3182
  to: m.teleport?.to
@@ -3254,4 +3254,4 @@ export {
3254
3254
  yt as j,
3255
3255
  na as u
3256
3256
  };
3257
- //# sourceMappingURL=dropdown.BoSI-Rre.js.map
3257
+ //# sourceMappingURL=dropdown.BvrZG8Za.js.map