@adyen/bento-vue2 1.22.0 → 1.23.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.
Files changed (207) hide show
  1. package/dist/@types/index.d.ts +111 -23
  2. package/dist/accordion.js +3 -3
  3. package/dist/action-bar.js +7 -7
  4. package/dist/alert.js +7 -7
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/index10.css +1 -1
  9. package/dist/assets/index11.css +1 -1
  10. package/dist/assets/index12.css +1 -1
  11. package/dist/assets/index13.css +1 -1
  12. package/dist/assets/index14.css +1 -1
  13. package/dist/assets/index15.css +1 -1
  14. package/dist/assets/index16.css +1 -1
  15. package/dist/assets/index17.css +1 -1
  16. package/dist/assets/index18.css +1 -1
  17. package/dist/assets/index19.css +1 -1
  18. package/dist/assets/index2.css +1 -1
  19. package/dist/assets/index20.css +1 -1
  20. package/dist/assets/index21.css +1 -1
  21. package/dist/assets/index22.css +1 -1
  22. package/dist/assets/index23.css +1 -1
  23. package/dist/assets/index24.css +1 -1
  24. package/dist/assets/index25.css +1 -1
  25. package/dist/assets/index26.css +1 -1
  26. package/dist/assets/index27.css +1 -1
  27. package/dist/assets/index28.css +1 -1
  28. package/dist/assets/index29.css +1 -1
  29. package/dist/assets/index3.css +1 -1
  30. package/dist/assets/index30.css +1 -1
  31. package/dist/assets/index31.css +1 -1
  32. package/dist/assets/index32.css +1 -1
  33. package/dist/assets/index33.css +1 -1
  34. package/dist/assets/index34.css +1 -1
  35. package/dist/assets/index35.css +1 -1
  36. package/dist/assets/index36.css +1 -1
  37. package/dist/assets/index37.css +1 -1
  38. package/dist/assets/index38.css +1 -1
  39. package/dist/assets/index39.css +1 -1
  40. package/dist/assets/index4.css +1 -1
  41. package/dist/assets/index40.css +1 -1
  42. package/dist/assets/index41.css +1 -1
  43. package/dist/assets/index42.css +1 -1
  44. package/dist/assets/index43.css +1 -1
  45. package/dist/assets/index44.css +1 -1
  46. package/dist/assets/index45.css +1 -1
  47. package/dist/assets/index46.css +1 -1
  48. package/dist/assets/index47.css +1 -1
  49. package/dist/assets/index48.css +1 -1
  50. package/dist/assets/index5.css +1 -1
  51. package/dist/assets/index6.css +1 -1
  52. package/dist/assets/index7.css +1 -1
  53. package/dist/assets/index8.css +1 -1
  54. package/dist/assets/index9.css +1 -1
  55. package/dist/avatar-image.js +1 -1
  56. package/dist/button.js +5 -5
  57. package/dist/card.js +4 -4
  58. package/dist/checkbox.js +6 -6
  59. package/dist/chunks/{base-button.6bd3ae4d.js → base-button.025269d7.js} +2 -2
  60. package/dist/chunks/{base-button.6bd3ae4d.js.map → base-button.025269d7.js.map} +1 -1
  61. package/dist/chunks/{base-modal.bf917e7d.js → base-modal.c354f456.js} +7 -7
  62. package/dist/chunks/{base-modal.bf917e7d.js.map → base-modal.c354f456.js.map} +1 -1
  63. package/dist/chunks/{button-actions-with-menu.ec7dfc53.js → button-actions-with-menu.15d22fa3.js} +4 -4
  64. package/dist/chunks/{button-actions-with-menu.ec7dfc53.js.map → button-actions-with-menu.15d22fa3.js.map} +1 -1
  65. package/dist/chunks/{button-actions.2bf1d9d1.js → button-actions.3882346f.js} +3 -3
  66. package/dist/chunks/{button-actions.2bf1d9d1.js.map → button-actions.3882346f.js.map} +1 -1
  67. package/dist/chunks/{button.80c3c527.js → button.a823da67.js} +3 -3
  68. package/dist/chunks/{button.80c3c527.js.map → button.a823da67.js.map} +1 -1
  69. package/dist/chunks/{calendar.8cbb911d.js → calendar.4ba3b251.js} +5 -5
  70. package/dist/chunks/{calendar.8cbb911d.js.map → calendar.4ba3b251.js.map} +1 -1
  71. package/dist/chunks/{checkbox-input.17e832f1.js → checkbox-input.1c3cc8ed.js} +2 -2
  72. package/dist/chunks/{checkbox-input.17e832f1.js.map → checkbox-input.1c3cc8ed.js.map} +1 -1
  73. package/dist/chunks/{checkbox.11454247.js → checkbox.1edcc4c0.js} +4 -4
  74. package/dist/chunks/{checkbox.11454247.js.map → checkbox.1edcc4c0.js.map} +1 -1
  75. package/dist/chunks/{checkmark-circle-fill.75b87a2c.js → checkmark-circle-fill.345311d2.js} +2 -2
  76. package/dist/chunks/{checkmark-circle-fill.75b87a2c.js.map → checkmark-circle-fill.345311d2.js.map} +1 -1
  77. package/dist/chunks/{checkmark-small.07adbfcb.js → checkmark-small.520f01b1.js} +2 -2
  78. package/dist/chunks/{checkmark-small.07adbfcb.js.map → checkmark-small.520f01b1.js.map} +1 -1
  79. package/dist/chunks/{checkmark.9979f1c1.js → checkmark.a6ed8f47.js} +2 -2
  80. package/dist/chunks/{checkmark.9979f1c1.js.map → checkmark.a6ed8f47.js.map} +1 -1
  81. package/dist/chunks/{chevron-left.64e168be.js → chevron-left.5edf02ac.js} +2 -2
  82. package/dist/chunks/{chevron-left.64e168be.js.map → chevron-left.5edf02ac.js.map} +1 -1
  83. package/dist/chunks/{chevron-up.628ac446.js → chevron-up.81185563.js} +2 -2
  84. package/dist/chunks/{chevron-up.628ac446.js.map → chevron-up.81185563.js.map} +1 -1
  85. package/dist/chunks/{controls-group.0892d082.js → controls-group.b17e40ad.js} +3 -3
  86. package/dist/chunks/{controls-group.0892d082.js.map → controls-group.b17e40ad.js.map} +1 -1
  87. package/dist/chunks/{copy.2d2c6b85.js → copy.b20b47f9.js} +4 -4
  88. package/dist/chunks/{copy.2d2c6b85.js.map → copy.b20b47f9.js.map} +1 -1
  89. package/dist/chunks/{cross-circle-fill.34e86c56.js → cross-circle-fill.27580c4b.js} +2 -2
  90. package/dist/chunks/{cross-circle-fill.34e86c56.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
  91. package/dist/chunks/{cross-small.e3c016cb.js → cross-small.e851e0de.js} +2 -2
  92. package/dist/chunks/{cross-small.e3c016cb.js.map → cross-small.e851e0de.js.map} +1 -1
  93. package/dist/chunks/{cross.e5433f3b.js → cross.04678d81.js} +2 -2
  94. package/dist/chunks/{cross.e5433f3b.js.map → cross.04678d81.js.map} +1 -1
  95. package/dist/chunks/{dialog-page.21f1eb92.js → dialog-page.3965f89e.js} +3 -3
  96. package/dist/chunks/{dialog-page.21f1eb92.js.map → dialog-page.3965f89e.js.map} +1 -1
  97. package/dist/chunks/{dropdown-default-textbox.9c23c94d.js → dropdown-default-textbox.537c81a2.js} +57 -37
  98. package/dist/chunks/dropdown-default-textbox.537c81a2.js.map +1 -0
  99. package/dist/chunks/{dropdown.dad8cedd.js → dropdown.93a582cc.js} +20 -21
  100. package/dist/chunks/{dropdown.dad8cedd.js.map → dropdown.93a582cc.js.map} +1 -1
  101. package/dist/chunks/{error-message.5fdafd8c.js → error-message.7022fa86.js} +3 -3
  102. package/dist/chunks/{error-message.5fdafd8c.js.map → error-message.7022fa86.js.map} +1 -1
  103. package/dist/chunks/{fixed-scroller.e917ed3f.js → fixed-scroller.077a5709.js} +3 -3
  104. package/dist/chunks/{fixed-scroller.e917ed3f.js.map → fixed-scroller.077a5709.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.599e5a1d.js → footer-actions.1f22f86d.js} +4 -4
  106. package/dist/chunks/{footer-actions.599e5a1d.js.map → footer-actions.1f22f86d.js.map} +1 -1
  107. package/dist/chunks/{index.5af5de46.js → index.0b534dc6.js} +3 -3
  108. package/dist/chunks/{index.5af5de46.js.map → index.0b534dc6.js.map} +1 -1
  109. package/dist/chunks/{index.73634ace.js → index.0be6a210.js} +31 -32
  110. package/dist/chunks/{index.73634ace.js.map → index.0be6a210.js.map} +1 -1
  111. package/dist/chunks/{index.d681cfda.js → index.19675c16.js} +12 -11
  112. package/dist/chunks/index.19675c16.js.map +1 -0
  113. package/dist/chunks/{index.929dda57.js → index.255c82a2.js} +107 -106
  114. package/dist/chunks/index.255c82a2.js.map +1 -0
  115. package/dist/chunks/{index.0c4a8dd9.js → index.59d76d6b.js} +3 -3
  116. package/dist/chunks/{index.0c4a8dd9.js.map → index.59d76d6b.js.map} +1 -1
  117. package/dist/chunks/{index.937a82c2.js → index.787ded40.js} +7 -7
  118. package/dist/chunks/{index.937a82c2.js.map → index.787ded40.js.map} +1 -1
  119. package/dist/chunks/{index.66c8d79f.js → index.7a59b0b8.js} +7 -7
  120. package/dist/chunks/{index.66c8d79f.js.map → index.7a59b0b8.js.map} +1 -1
  121. package/dist/chunks/{index.7d2ea1de.js → index.9d130872.js} +2 -2
  122. package/dist/chunks/{index.7d2ea1de.js.map → index.9d130872.js.map} +1 -1
  123. package/dist/chunks/{index.823243d9.js → index.b231f9ef.js} +2 -2
  124. package/dist/chunks/{index.823243d9.js.map → index.b231f9ef.js.map} +1 -1
  125. package/dist/chunks/{index.0c33067d.js → index.be6917c8.js} +2 -2
  126. package/dist/chunks/{index.0c33067d.js.map → index.be6917c8.js.map} +1 -1
  127. package/dist/chunks/{index.3ddbe834.js → index.f828081b.js} +2 -2
  128. package/dist/chunks/{index.3ddbe834.js.map → index.f828081b.js.map} +1 -1
  129. package/dist/chunks/{info-filled.ee9571d9.js → info-filled.c37e091d.js} +2 -2
  130. package/dist/chunks/{info-filled.ee9571d9.js.map → info-filled.c37e091d.js.map} +1 -1
  131. package/dist/chunks/{info.b11d377e.js → info.8b6328aa.js} +2 -2
  132. package/dist/chunks/{info.b11d377e.js.map → info.8b6328aa.js.map} +1 -1
  133. package/dist/chunks/{listbox-option-tag.52ca5a60.js → listbox-option-tag.e025da67.js} +3 -3
  134. package/dist/chunks/{listbox-option-tag.52ca5a60.js.map → listbox-option-tag.e025da67.js.map} +1 -1
  135. package/dist/chunks/{listbox.6d8bd2ae.js → listbox.f99c2f3e.js} +8 -8
  136. package/dist/chunks/{listbox.6d8bd2ae.js.map → listbox.f99c2f3e.js.map} +1 -1
  137. package/dist/chunks/{loading-button.73c0bd64.js → loading-button.5de13e50.js} +4 -4
  138. package/dist/chunks/{loading-button.73c0bd64.js.map → loading-button.5de13e50.js.map} +1 -1
  139. package/dist/chunks/{payment-method.eeb54552.js → payment-method.bf9e71a2.js} +2 -2
  140. package/dist/chunks/{payment-method.eeb54552.js.map → payment-method.bf9e71a2.js.map} +1 -1
  141. package/dist/chunks/{refresh.f8e1b23c.js → refresh.71a03998.js} +2 -2
  142. package/dist/chunks/{refresh.f8e1b23c.js.map → refresh.71a03998.js.map} +1 -1
  143. package/dist/chunks/{search.4b38a2ef.js → search.471270fe.js} +2 -2
  144. package/dist/chunks/{search.4b38a2ef.js.map → search.471270fe.js.map} +1 -1
  145. package/dist/chunks/{tooltip.a9133b59.js → tooltip.eb1eb37e.js} +3 -3
  146. package/dist/chunks/{tooltip.a9133b59.js.map → tooltip.eb1eb37e.js.map} +1 -1
  147. package/dist/chunks/use-click-outside.941d1600.js +14 -0
  148. package/dist/chunks/use-click-outside.941d1600.js.map +1 -0
  149. package/dist/code-snippet.js +7 -7
  150. package/dist/code-snippet.js.map +1 -1
  151. package/dist/country.js +2 -2
  152. package/dist/currency.js +1 -1
  153. package/dist/data-grid-template.js +1 -1
  154. package/dist/data-grid.js +857 -772
  155. package/dist/data-grid.js.map +1 -1
  156. package/dist/date-picker.js +39 -40
  157. package/dist/date-picker.js.map +1 -1
  158. package/dist/date-range-picker.js +2 -2
  159. package/dist/date.js +1 -1
  160. package/dist/divider.js +1 -1
  161. package/dist/dropdown.js +7 -7
  162. package/dist/empty-state.js +3 -3
  163. package/dist/filter-bar.js +424 -431
  164. package/dist/filter-bar.js.map +1 -1
  165. package/dist/focus-trap.js +1 -1
  166. package/dist/form-layout.js +2 -2
  167. package/dist/header.js +5 -5
  168. package/dist/index.js +20 -20
  169. package/dist/info-icon.js +4 -4
  170. package/dist/input-field.js +4 -4
  171. package/dist/internal.js +8 -8
  172. package/dist/link.js +1 -1
  173. package/dist/loading-indicator.js +1 -1
  174. package/dist/menu.js +1 -1
  175. package/dist/modal-fullscreen.js +7 -7
  176. package/dist/modal.js +6 -6
  177. package/dist/pagination.js +4 -4
  178. package/dist/payment-method.js +1 -1
  179. package/dist/popover.js +1 -1
  180. package/dist/popper-container.js +1 -1
  181. package/dist/radio-group.js +4 -4
  182. package/dist/search-bar.js +4 -4
  183. package/dist/secondary-nav.js +2 -2
  184. package/dist/segmented-control.js +4 -4
  185. package/dist/selection-card.js +5 -5
  186. package/dist/sidepanel.js +7 -7
  187. package/dist/status.js +2 -2
  188. package/dist/stepper.js +144 -133
  189. package/dist/stepper.js.map +1 -1
  190. package/dist/structured-list.js +1 -1
  191. package/dist/summary-grid.js +3 -3
  192. package/dist/tabs.js +3 -3
  193. package/dist/tag.js +3 -3
  194. package/dist/textarea.js +4 -4
  195. package/dist/timeline.js +7 -7
  196. package/dist/toast.js +5 -5
  197. package/dist/toggle.js +3 -3
  198. package/dist/tutorial.js +7 -7
  199. package/dist/typography.js +1 -1
  200. package/dist/web-types.json +41 -1
  201. package/package.json +3 -3
  202. package/dist/chunks/directive.0408e565.js +0 -23
  203. package/dist/chunks/directive.0408e565.js.map +0 -1
  204. package/dist/chunks/dropdown-default-textbox.9c23c94d.js.map +0 -1
  205. package/dist/chunks/index.929dda57.js.map +0 -1
  206. package/dist/chunks/index.d681cfda.js.map +0 -1
  207. /package/dist/assets/{cross-small.css → cross.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-page.21f1eb92.js","sources":["../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/arrow-left.vue","../../src/components/internal/dialog-page/dialog-page.types.ts","../../src/components/internal/dialog-page/dialog-page.keys.ts","../../src/components/internal/dialog-page/dialog-page.vue"],"sourcesContent":["\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=\"M3.80655 7.25434L8.06077 3.00011L7.00011 1.93945L0.939453 8.00011L7.00011 14.0608L8.06077 13.0001L3.81499 8.75433L14.7508 8.74316L14.7492 7.24316L3.80655 7.25434Z\"/></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","import { Ref } from 'vue';\n\nexport enum BentoDialogPageAnimation {\n TRANSITION_LEVEL_DEEPER = 'b-dialog-page__animation--level-deeper',\n TRANSITION_LEVEL_UPPER = 'b-dialog-page__animation--level-upper',\n}\n\nexport interface BentoDialogPageConfigData {\n activePage: Ref<string>;\n animation: Ref<string>;\n isOpen: Ref<boolean>;\n pages: Ref<string[]>;\n previousPages: Ref<string[]>;\n updatePage: (page: string) => void;\n}\n\nexport type BentoDialogPageRegisterPage = (pageId: string) => { unregisterPage: () => void };\n","export const DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY = Symbol('dialog registerPage injection key');\nexport const DIALOG_PAGE_CONFIG_INJECTION_KEY = Symbol('dialog page config data injection key');\n","<template>\n <Transition :name=\"animation\" mode=\"out-in\" @after-leave=\"updateAnimation\">\n <div v-if=\"isOpen && showPage\" class=\"b-dialog-page\">\n <div v-if=\"hasSlot('header')\" class=\"b-dialog-page__header\" :class=\"headerConditionalClasses\">\n <div\n v-if=\"showBackButton\"\n class=\"b-dialog-page__back-button\"\n :style=\"backButtonStyling\"\n data-testid=\"back-button\"\n >\n <bento-button variant=\"tertiary\" @click=\"goToPreviousPage(previousPage)\">\n <arrow-left-icon :svg-title=\"t('goToPreviousPage')\" />\n </bento-button>\n </div>\n <slot name=\"header\"></slot>\n </div>\n <div v-if=\"hasSlot('content')\" ref=\"contentElement\" class=\"b-dialog-page__content\" @scroll=\"onScroll\">\n <slot name=\"content\" />\n </div>\n <div v-if=\"hasSlot('footer')\" class=\"b-dialog-page__footer\" :class=\"footerConditionalClasses\">\n <slot name=\"footer\" />\n </div>\n </div>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onUnmounted, PropType, ref, useSlots, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import ArrowLeftIcon from '@adyen/ui-assets-icons-16/vue/arrow-left';\n\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { useI18n } from '@/utils/ts/i18n';\n import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n } from './dialog-page.types';\n import type { CSSProperties } from 'vue/types/jsx';\n\n import { DIALOG_PAGE_CONFIG_INJECTION_KEY, DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY } from './dialog-page.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Identifier of the page, used with activePage prop to handle navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Show header and actions border\n */\n alwaysShowBorder: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Pass custom styling to the back button to position it correctly with the header slot\n */\n backButtonStyling: { type: Object as PropType<CSSProperties>, default: null },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Fires when the animation ends\n */\n (e: 'animationend'): void;\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n // Refs\n const contentElement = ref<HTMLDivElement>(null);\n const hasScroll = ref(false);\n const isScrollAtTop = ref(true);\n const isScrollAtBottom = ref(false);\n\n // Logic to choose which page is active/shown\n const showPage = computed(() => (activePage.value ? activePage.value === props.pageId : true));\n\n // Scrolling styling logic\n const headerConditionalClasses = computed(() => ({\n 'b-dialog-page__header--with-border': props.alwaysShowBorder || (hasScroll.value && !isScrollAtTop.value),\n }));\n\n const footerConditionalClasses = computed(() => ({\n 'b-dialog-page__footer--with-border': props.alwaysShowBorder || (hasScroll.value && !isScrollAtBottom.value),\n }));\n\n const onScroll = () => {\n if (!contentElement.value) {\n return;\n }\n\n isScrollAtTop.value = contentElement.value.scrollTop === 0;\n isScrollAtBottom.value =\n contentElement.value.scrollHeight - contentElement.value.clientHeight === contentElement.value.scrollTop;\n };\n\n const calculateScroll = async watchedValue => {\n if (!watchedValue) {\n return;\n }\n // Wait for content to be rendered to be able to calculate the height\n await nextTick();\n hasScroll.value = contentElement.value && contentElement.value.scrollHeight > contentElement.value.clientHeight;\n };\n\n const { activePage, animation, isOpen, pages, previousPages, updatePage } = inject<BentoDialogPageConfigData>(\n DIALOG_PAGE_CONFIG_INJECTION_KEY\n );\n\n watch(() => isOpen.value, calculateScroll, { immediate: true });\n watch(() => showPage.value, calculateScroll, { immediate: true });\n\n // Logic to determine whether the back button should be shown on the page\n const showBackButton = computed(() => {\n if (props.previousPage) {\n return true;\n }\n if (props.previousPage === null) {\n return false;\n }\n return hasPreviousPages.value && showPage.value;\n });\n\n // Animation\n const updateAnimation = () => {\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER;\n emit('animationend');\n };\n\n // Previous page logic\n const hasPreviousPages = computed(() => previousPages.value.length > 1);\n const lastPage = computed(() => previousPages.value[previousPages.value.length - 1]);\n const isActivePageValid = computed(() => pages.value.some(page => page === activePage.value));\n\n const goToPreviousPage = async (page: string) => {\n if (page) {\n const index = previousPages.value.indexOf(page);\n if (index !== -1) {\n previousPages.value = previousPages.value.slice(0, index + 1);\n } else {\n previousPages.value = [page];\n }\n } else {\n previousPages.value.pop();\n }\n\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_UPPER;\n await nextTick();\n updatePage(lastPage.value);\n };\n\n // Add new page to the previousPage array to keep track of user navigation\n watch(\n () => activePage.value,\n async () => {\n await nextTick();\n if (!isOpen.value) {\n return;\n }\n\n if (!!activePage.value && !isActivePageValid.value) {\n if (isDevelopmentEnviroment) {\n // eslint-disable-next-line no-console\n console.error(\n `The activePage passed \"${activePage.value}\" does not match the id of any of the pages`\n );\n return;\n }\n }\n\n if (activePage.value !== lastPage.value) {\n previousPages.value.push(activePage.value);\n }\n },\n { immediate: true }\n );\n\n // Register page to parent component and inject data from parent component\n const registerPage = inject<BentoDialogPageRegisterPage>(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY);\n const { unregisterPage } = registerPage(props.pageId);\n\n // Unregister page on unmounting the page\n onUnmounted(() => unregisterPage());\n</script>\n\n<script lang=\"ts\">\n /**\n * DialogPage is an internal component used to render different pages of dialog components (Modal, ModalFullscreen and Sidepanel)\n *\n * @example\n * import { DialogPage } from '@/internal';\n *\n * export default {\n * components: { DialogPage },\n * template: `\n * <dialog-page pageId='step1' always-show-border>\n * <template #header>Header</template>\n * <template #content>Content</template>\n * <template #footer>Footer</template>\n * </dialog-page>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./dialog-page.scss\" />\n"],"names":["uuid","_sfc_main$1","BentoDialogPageAnimation","BentoDialogPageAnimation2","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","DIALOG_PAGE_CONFIG_INJECTION_KEY","__default__","messages","slots","useSlots","hasSlot","useHasSlot","t","useI18n","contentElement","ref","hasScroll","isScrollAtTop","isScrollAtBottom","showPage","computed","activePage","props","headerConditionalClasses","footerConditionalClasses","onScroll","calculateScroll","watchedValue","nextTick","animation","isOpen","pages","previousPages","updatePage","inject","watch","showBackButton","hasPreviousPages","updateAnimation","emit","lastPage","isActivePageValid","page","goToPreviousPage","index","isDevelopmentEnviroment","registerPage","unregisterPage","onUnmounted"],"mappings":";;;;;;;AAKA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;ACVY,IAAAE,IAAA,kBAAAC,OACRA,EAAA,0BAAA,0CACAA,EAAA,yBAAA,yCAFQA,IAAAD,KAAA,CAAA,CAAA;ACFC,MAAAE,IAAA,OAAA,mCAAA,GACAC,IAAA,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/@adyen/ui-assets-icons-16/dist/vue/arrow-left.vue","../../src/components/internal/dialog-page/dialog-page.types.ts","../../src/components/internal/dialog-page/dialog-page.keys.ts","../../src/components/internal/dialog-page/dialog-page.vue"],"sourcesContent":["\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=\"M3.80655 7.25434L8.06077 3.00011L7.00011 1.93945L0.939453 8.00011L7.00011 14.0608L8.06077 13.0001L3.81499 8.75433L14.7508 8.74316L14.7492 7.24316L3.80655 7.25434Z\"/></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","import { Ref } from 'vue';\n\nexport enum BentoDialogPageAnimation {\n TRANSITION_LEVEL_DEEPER = 'b-dialog-page__animation--level-deeper',\n TRANSITION_LEVEL_UPPER = 'b-dialog-page__animation--level-upper',\n}\n\nexport interface BentoDialogPageConfigData {\n activePage: Ref<string>;\n animation: Ref<string>;\n isOpen: Ref<boolean>;\n pages: Ref<string[]>;\n previousPages: Ref<string[]>;\n updatePage: (page: string) => void;\n}\n\nexport type BentoDialogPageRegisterPage = (pageId: string) => { unregisterPage: () => void };\n","export const DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY = Symbol('dialog registerPage injection key');\nexport const DIALOG_PAGE_CONFIG_INJECTION_KEY = Symbol('dialog page config data injection key');\n","<template>\n <Transition :name=\"animation\" mode=\"out-in\" @after-leave=\"updateAnimation\">\n <div v-if=\"isOpen && showPage\" class=\"b-dialog-page\">\n <div v-if=\"hasSlot('header')\" class=\"b-dialog-page__header\" :class=\"headerConditionalClasses\">\n <div\n v-if=\"showBackButton\"\n class=\"b-dialog-page__back-button\"\n :style=\"backButtonStyling\"\n data-testid=\"back-button\"\n >\n <bento-button variant=\"tertiary\" @click=\"goToPreviousPage(previousPage)\">\n <arrow-left-icon :svg-title=\"t('goToPreviousPage')\" />\n </bento-button>\n </div>\n <slot name=\"header\"></slot>\n </div>\n <div v-if=\"hasSlot('content')\" ref=\"contentElement\" class=\"b-dialog-page__content\" @scroll=\"onScroll\">\n <slot name=\"content\" />\n </div>\n <div v-if=\"hasSlot('footer')\" class=\"b-dialog-page__footer\" :class=\"footerConditionalClasses\">\n <slot name=\"footer\" />\n </div>\n </div>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onUnmounted, PropType, ref, useSlots, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import ArrowLeftIcon from '@adyen/ui-assets-icons-16/vue/arrow-left';\n\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { useI18n } from '@/utils/ts/i18n';\n import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n } from './dialog-page.types';\n import type { CSSProperties } from 'vue/types/jsx';\n\n import { DIALOG_PAGE_CONFIG_INJECTION_KEY, DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY } from './dialog-page.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Identifier of the page, used with activePage prop to handle navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * Show header and actions border\n */\n alwaysShowBorder: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Pass custom styling to the back button to position it correctly with the header slot\n */\n backButtonStyling: { type: Object as PropType<CSSProperties>, default: null },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Fires when the animation ends\n */\n (e: 'animationend'): void;\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n // Refs\n const contentElement = ref<HTMLDivElement>(null);\n const hasScroll = ref(false);\n const isScrollAtTop = ref(true);\n const isScrollAtBottom = ref(false);\n\n // Logic to choose which page is active/shown\n const showPage = computed(() => (activePage.value ? activePage.value === props.pageId : true));\n\n // Scrolling styling logic\n const headerConditionalClasses = computed(() => ({\n 'b-dialog-page__header--with-border': props.alwaysShowBorder || (hasScroll.value && !isScrollAtTop.value),\n }));\n\n const footerConditionalClasses = computed(() => ({\n 'b-dialog-page__footer--with-border': props.alwaysShowBorder || (hasScroll.value && !isScrollAtBottom.value),\n }));\n\n const onScroll = () => {\n if (!contentElement.value) {\n return;\n }\n\n isScrollAtTop.value = contentElement.value.scrollTop === 0;\n isScrollAtBottom.value =\n contentElement.value.scrollHeight - contentElement.value.clientHeight === contentElement.value.scrollTop;\n };\n\n const calculateScroll = async watchedValue => {\n if (!watchedValue) {\n return;\n }\n // Wait for content to be rendered to be able to calculate the height\n await nextTick();\n hasScroll.value = contentElement.value && contentElement.value.scrollHeight > contentElement.value.clientHeight;\n };\n\n const { activePage, animation, isOpen, pages, previousPages, updatePage } = inject<BentoDialogPageConfigData>(\n DIALOG_PAGE_CONFIG_INJECTION_KEY\n );\n\n watch(() => isOpen.value, calculateScroll, { immediate: true });\n watch(() => showPage.value, calculateScroll, { immediate: true });\n\n // Logic to determine whether the back button should be shown on the page\n const showBackButton = computed(() => {\n if (props.previousPage) {\n return true;\n }\n if (props.previousPage === null) {\n return false;\n }\n return hasPreviousPages.value && showPage.value;\n });\n\n // Animation\n const updateAnimation = () => {\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER;\n emit('animationend');\n };\n\n // Previous page logic\n const hasPreviousPages = computed(() => previousPages.value.length > 1);\n const lastPage = computed(() => previousPages.value[previousPages.value.length - 1]);\n const isActivePageValid = computed(() => pages.value.some(page => page === activePage.value));\n\n const goToPreviousPage = async (page: string) => {\n if (page) {\n const index = previousPages.value.indexOf(page);\n if (index !== -1) {\n previousPages.value = previousPages.value.slice(0, index + 1);\n } else {\n previousPages.value = [page];\n }\n } else {\n previousPages.value.pop();\n }\n\n animation.value = BentoDialogPageAnimation.TRANSITION_LEVEL_UPPER;\n await nextTick();\n updatePage(lastPage.value);\n };\n\n // Add new page to the previousPage array to keep track of user navigation\n watch(\n () => activePage.value,\n async () => {\n await nextTick();\n if (!isOpen.value) {\n return;\n }\n\n if (!!activePage.value && !isActivePageValid.value) {\n if (isDevelopmentEnviroment) {\n // eslint-disable-next-line no-console\n console.error(\n `The activePage passed \"${activePage.value}\" does not match the id of any of the pages`\n );\n return;\n }\n }\n\n if (activePage.value !== lastPage.value) {\n previousPages.value.push(activePage.value);\n }\n },\n { immediate: true }\n );\n\n // Register page to parent component and inject data from parent component\n const registerPage = inject<BentoDialogPageRegisterPage>(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY);\n const { unregisterPage } = registerPage(props.pageId);\n\n // Unregister page on unmounting the page\n onUnmounted(() => unregisterPage());\n</script>\n\n<script lang=\"ts\">\n /**\n * DialogPage is an internal component used to render different pages of dialog components (Modal, ModalFullscreen and Sidepanel)\n *\n * @example\n * import { DialogPage } from '@/internal';\n *\n * export default {\n * components: { DialogPage },\n * template: `\n * <dialog-page pageId='step1' always-show-border>\n * <template #header>Header</template>\n * <template #content>Content</template>\n * <template #footer>Footer</template>\n * </dialog-page>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./dialog-page.scss\" />\n"],"names":["uuid","_sfc_main$1","BentoDialogPageAnimation","BentoDialogPageAnimation2","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","DIALOG_PAGE_CONFIG_INJECTION_KEY","__default__","messages","slots","useSlots","hasSlot","useHasSlot","t","useI18n","contentElement","ref","hasScroll","isScrollAtTop","isScrollAtBottom","showPage","computed","activePage","props","headerConditionalClasses","footerConditionalClasses","onScroll","calculateScroll","watchedValue","nextTick","animation","isOpen","pages","previousPages","updatePage","inject","watch","showBackButton","hasPreviousPages","updateAnimation","emit","lastPage","isActivePageValid","page","goToPreviousPage","index","isDevelopmentEnviroment","registerPage","unregisterPage","onUnmounted"],"mappings":";;;;;;;AAKA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;ACVY,IAAAE,IAAA,kBAAAC,OACRA,EAAA,0BAAA,0CACAA,EAAA,yBAAA,yCAFQA,IAAAD,KAAA,CAAA,CAAA;ACFC,MAAAE,IAAA,OAAA,mCAAA,GACAC,IAAA,OAAA,uCAAA;;;;GCmOTC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7IAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACA,EAAA,GAAAI,EAAA,IAAAC,EAAA,GAGAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAF,EAAA,EAAA,GACAG,IAAAH,EAAA,EAAA,GAGAI,IAAAC,EAAA,MAAAC,EAAA,QAAAA,EAAA,UAAAC,EAAA,SAAA,EAAA,GAGAC,IAAAH,EAAA,OAAA;AAAA,MAAiD,sCAAAE,EAAA,oBAAAN,EAAA,SAAA,CAAAC,EAAA;AAAA,IACsD,EAAA,GAGvGO,IAAAJ,EAAA,OAAA;AAAA,MAAiD,sCAAAE,EAAA,oBAAAN,EAAA,SAAA,CAAAE,EAAA;AAAA,IACyD,EAAA,GAG1GO,IAAA,MAAA;AACI,MAAAX,EAAA,UAIAG,EAAA,QAAAH,EAAA,MAAA,cAAA,GACAI,EAAA,QAAAJ,EAAA,MAAA,eAAAA,EAAA,MAAA,iBAAAA,EAAA,MAAA;AAAA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EAAAE,EAAA,OAIA;AAAA,cAAAT,EAAA,SAAA,CAAAoB,EAAA,SACII,GAAA;AAEI,oBAAA;AAAA,cAAQ,0BAAAxB,EAAA;AAAA,YACiC;AAEzC;AAAA;AAIR,UAAAA,EAAA,UAAAmB,EAAA,SACIR,EAAA,MAAA,KAAAX,EAAA,KAAA;AAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAAyB,IAAAZ,EAAA9B,CAAA,GACA,EAAA,gBAAA2C,EAAA,IAAAD,EAAAxB,EAAA,MAAA;AAGA,WAAA0B,EAAA,MAAAD,EAAA,CAAA;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,19 +1,38 @@
1
- import { defineComponent as y, useAttrs as O, useSlots as g, ref as N, computed as d, watch as B, nextTick as A } from "vue";
2
- import { g as L } from "./unique-id.a2a2b458.js";
3
- import { u as P } from "./use-has-slot.fbeb19ec.js";
4
- import { B as V } from "./index.0c33067d.js";
5
- import { d as F } from "./debounce.b5ef6acf.js";
6
- import { C as R } from "./cross-circle-fill.34e86c56.js";
7
- import { n as S } from "./_plugin-vue2_normalizer.71e2aa87.js";
1
+ import { o as S } from "./on-click-outside.3e0c3e2a.js";
2
+ import { defineComponent as y, useAttrs as A, useSlots as h, ref as L, computed as d, watch as P, nextTick as V } from "vue";
3
+ import { g as F } from "./unique-id.a2a2b458.js";
4
+ import { u as R } from "./use-has-slot.fbeb19ec.js";
5
+ import { B as T } from "./index.be6917c8.js";
6
+ import { d as M } from "./debounce.b5ef6acf.js";
7
+ import { C as U } from "./cross-circle-fill.27580c4b.js";
8
+ import { n as k } from "./_plugin-vue2_normalizer.71e2aa87.js";
8
9
  import { s as w } from "./events.58c00e6d.js";
9
- import { C as T, a as U } from "./chevron-up.628ac446.js";
10
+ import { C as $, a as Y } from "./chevron-up.81185563.js";
10
11
  import "../assets/dropdown-default-textbox.css";
12
+ const I = (n, t) => {
13
+ const e = !t.modifiers.bubble;
14
+ if (typeof t.value == "function")
15
+ n.__onClickOutside_stop = S(n, t.value, { capture: e });
16
+ else {
17
+ const [o, a] = t.value;
18
+ n.__onClickOutside_stop = S(n, o, { capture: e, ...a });
19
+ }
20
+ }, g = (n) => {
21
+ n.__onClickOutside_stop();
22
+ }, pe = {
23
+ // Vue 2 Directive hooks
24
+ inserted: I,
25
+ unbind: g,
26
+ // Vue 3 Directive hooks
27
+ beforeMount: I,
28
+ unmounted: g
29
+ };
11
30
  var u = /* @__PURE__ */ ((n) => (n.DISABLED = "disabled", n.READONLY = "readonly", n.HAS_ITEMS = "has-items", n.OPENED = "opened", n.ERROR = "error", n))(u || {}), s = /* @__PURE__ */ ((n) => (n.OPEN = "dropdown-base-open", n.KEYDOWN = "dropdown-base-keydown", n.CLOSE = "dropdown-base-close", n.INPUT = "dropdown-base-input", n.CLEAR = "dropdown-base-clear", n))(s || {});
12
- const M = y({
31
+ const q = y({
13
32
  name: "dropdown-base-textbox",
14
33
  inheritAttrs: !1
15
- }), $ = /* @__PURE__ */ y({
16
- ...M,
34
+ }), K = /* @__PURE__ */ y({
35
+ ...q,
17
36
  props: {
18
37
  /**
19
38
  * The number of additional items that have been selected in the dropdown.
@@ -95,7 +114,7 @@ const M = y({
95
114
  showSlotContentInMultiple: { type: Boolean, default: !1 }
96
115
  },
97
116
  setup(n, { emit: t }) {
98
- const e = n, o = O(), a = g(), p = P(a), r = N(null), c = L("textbox"), b = d(() => ({
117
+ const e = n, o = A(), a = h(), p = R(a), r = L(null), c = F("textbox"), b = d(() => ({
99
118
  [`b-dropdown-base-textbox--${u.DISABLED}`]: e.disabled,
100
119
  [`b-dropdown-base-textbox--${u.READONLY}`]: e.readonly,
101
120
  [`b-dropdown-base-textbox--${u.HAS_ITEMS}`]: !!e.additionalItemsSelected
@@ -117,13 +136,13 @@ const M = y({
117
136
  }
118
137
  ), l = d(
119
138
  () => e.multiple ? e.selectedValueItem : []
120
- ), m = d(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), I = d(() => e.selectedValueItem && !e.multiple), h = d(
139
+ ), m = d(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), D = d(() => e.selectedValueItem && !e.multiple), O = d(
121
140
  () => e.multiple && e.selectedValueItem && l.value.length > 0 && e.showSlotContentInMultiple
122
141
  );
123
- B(
142
+ P(
124
143
  () => m.value,
125
144
  () => {
126
- m.value && !e.alwaysComboboxIsInput && A(() => {
145
+ m.value && !e.alwaysComboboxIsInput && V(() => {
127
146
  r.value.focus();
128
147
  });
129
148
  }
@@ -132,15 +151,15 @@ const M = y({
132
151
  !e.disabled && !e.readonly && (r.value.focus(), t(s.OPEN));
133
152
  }, C = () => {
134
153
  e.open && (r.value.focus(), t(s.CLOSE));
135
- }, E = (i) => e.open && i.target.tagName === "INPUT" ? null : e.open ? C() : v(), D = () => {
154
+ }, E = (i) => e.open && i.target.tagName === "INPUT" ? null : e.open ? C() : v(), N = () => {
136
155
  t(s.CLEAR), t(s.INPUT, ""), r.value.focus();
137
- }, k = F((i) => {
156
+ }, B = M((i) => {
138
157
  !e.readonly && !e.disabled ? t(s.INPUT, i.target.value) : (i.preventDefault(), i.stopPropagation());
139
158
  }, e.debounceTime);
140
- return { __sfc: !0, attrs: o, slots: a, hasSlot: p, props: e, emit: t, textbox: r, textboxId: c, conditionalClasses: b, comboboxConditionalClasses: f, isFiltering: _, ariaAttributes: x, selectedValueItems: l, shouldShowInput: m, shouldShowSingleSelectSlot: I, shouldShowMultipleSlot: h, onOpenDropdown: v, onCloseDropdown: C, onToggleDropdown: E, onClearSearch: D, onInputEvent: k, BentoTypography: V, DropdownBaseTextboxEvent: s, CrossCircleFillIcon: R };
159
+ return { __sfc: !0, attrs: o, slots: a, hasSlot: p, props: e, emit: t, textbox: r, textboxId: c, conditionalClasses: b, comboboxConditionalClasses: f, isFiltering: _, ariaAttributes: x, selectedValueItems: l, shouldShowInput: m, shouldShowSingleSelectSlot: D, shouldShowMultipleSlot: O, onOpenDropdown: v, onCloseDropdown: C, onToggleDropdown: E, onClearSearch: N, onInputEvent: B, BentoTypography: T, DropdownBaseTextboxEvent: s, CrossCircleFillIcon: U };
141
160
  }
142
161
  });
143
- var Y = function() {
162
+ var H = function() {
144
163
  var t = this, e = t._self._c, o = t._self._setupProxy;
145
164
  return e("div", { class: t.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: o.onToggleDropdown, keydown: function(a) {
146
165
  return !a.type.indexOf("key") && t._k(a.keyCode, "escape", void 0, a.key, void 0) ? null : o.onCloseDropdown.apply(null, arguments);
@@ -161,21 +180,21 @@ var Y = function() {
161
180
  }, keyup: function(a) {
162
181
  return !a.type.indexOf("key") && t._k(a.keyCode, "space", 32, a.key, [" ", "Spacebar"]) ? null : o.onClearSearch.apply(null, arguments);
163
182
  } } }, [e(o.CrossCircleFillIcon, { attrs: { "svg-title": "clearSearch" } })], 1) : t._e()])], 1);
164
- }, q = [], K = /* @__PURE__ */ S(
165
- $,
166
- Y,
167
- q,
183
+ }, W = [], j = /* @__PURE__ */ k(
184
+ K,
185
+ H,
186
+ W,
168
187
  !1,
169
188
  null,
170
189
  "a711d268",
171
190
  null,
172
191
  null
173
192
  );
174
- const H = K.exports, W = y({
193
+ const z = j.exports, G = y({
175
194
  name: "dropdown-default-textbox",
176
195
  inheritAttrs: !1
177
- }), j = /* @__PURE__ */ y({
178
- ...W,
196
+ }), J = /* @__PURE__ */ y({
197
+ ...G,
179
198
  props: {
180
199
  /**
181
200
  * The number of additional items that have been selected in the dropdown.
@@ -267,7 +286,7 @@ const H = K.exports, W = y({
267
286
  },
268
287
  emits: ["clear", "close", "input", "keydown", "open"],
269
288
  setup(n, { emit: t }) {
270
- const e = n, o = g(), a = d(() => ({
289
+ const e = n, o = h(), a = d(() => ({
271
290
  [`b-dropdown-default-textbox--${u.ERROR}`]: !e.disabled && !e.readonly && e.isInvalid,
272
291
  [`b-dropdown-default-textbox--${u.DISABLED}`]: e.disabled,
273
292
  [`b-dropdown-default-textbox--${u.READONLY}`]: e.readonly,
@@ -290,10 +309,10 @@ const H = K.exports, W = y({
290
309
  [s.CLEAR]: _,
291
310
  [s.KEYDOWN]: c
292
311
  };
293
- return { __sfc: !0, emit: t, slots: o, props: e, conditionalClasses: a, isDropdownOpen: p, onInput: r, onKeyDown: c, openDropdown: b, closeDropdown: f, clearValue: _, listeners: x, DropdownBaseTextbox: H, ChevronDownIcon: T, ChevronUpIcon: U };
312
+ return { __sfc: !0, emit: t, slots: o, props: e, conditionalClasses: a, isDropdownOpen: p, onInput: r, onKeyDown: c, openDropdown: b, closeDropdown: f, clearValue: _, listeners: x, DropdownBaseTextbox: z, ChevronDownIcon: $, ChevronUpIcon: Y };
294
313
  }
295
314
  });
296
- var z = function() {
315
+ var Q = function() {
297
316
  var t = this, e = t._self._c, o = t._self._setupProxy;
298
317
  return e("div", { staticClass: "b-dropdown-default-textbox", class: o.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [e(o.DropdownBaseTextbox, t._g(t._b({ staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: t.value }, scopedSlots: t._u([t._l(o.slots, function(a, p) {
299
318
  return { key: p, fn: function(r) {
@@ -302,21 +321,22 @@ var z = function() {
302
321
  }), { key: "icon", fn: function() {
303
322
  return [e("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [e(o.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: o.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), e(o.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !o.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
304
323
  }, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), o.listeners))], 1);
305
- }, G = [], J = /* @__PURE__ */ S(
306
- j,
307
- z,
308
- G,
324
+ }, X = [], Z = /* @__PURE__ */ k(
325
+ J,
326
+ Q,
327
+ X,
309
328
  !1,
310
329
  null,
311
330
  "f2d8d922",
312
331
  null,
313
332
  null
314
333
  );
315
- const re = J.exports;
334
+ const ce = Z.exports;
316
335
  export {
336
+ pe as B,
317
337
  u as D,
318
338
  s as a,
319
- H as b,
320
- re as c
339
+ z as b,
340
+ ce as c
321
341
  };
322
- //# sourceMappingURL=dropdown-default-textbox.9c23c94d.js.map
342
+ //# sourceMappingURL=dropdown-default-textbox.537c81a2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-default-textbox.537c81a2.js","sources":["../../src/directives/click-outside/directive.ts","../../src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.ts","../../src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue","../../src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue"],"sourcesContent":["import { onClickOutside } from './on-click-outside';\nimport type { DirectiveHook } from 'vue';\n\ntype Element = HTMLElement & { __onClickOutside_stop?: () => void };\n\n/**\n * Attaches the click outside listener to target element to register clicks outside the element.\n * @param targetElement Element to attach listener to.\n * @param binding\n */\nconst bindDirective: DirectiveHook<Element> = (targetElement, binding) => {\n const capture = !binding.modifiers.bubble;\n if (typeof binding.value === 'function') {\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, binding.value, { capture });\n } else {\n const [handler, options] = binding.value;\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, handler, { capture, ...options });\n }\n};\n\n/**\n * Removes click outside listener from the target element.\n * @param targetElement Element to detach listener from.\n */\nconst unbindDirective: DirectiveHook<Element> = targetElement => {\n // eslint-disable-next-line no-underscore-dangle\n targetElement.__onClickOutside_stop();\n};\n\nexport const BentoClickOutsideDirective = {\n // Vue 2 Directive hooks\n inserted: bindDirective,\n unbind: unbindDirective,\n\n // Vue 3 Directive hooks\n beforeMount: bindDirective,\n unmounted: unbindDirective,\n};\n","import { PropType } from 'vue';\nimport { Booleanish } from '@/types';\n\n// TODO: Change this to script setup + Typescript interface\nexport const DropdownBaseTextboxProps = {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n};\n\nexport enum DropdownBaseTextboxState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n HAS_ITEMS = 'has-items',\n OPENED = 'opened',\n ERROR = 'error',\n}\n\nexport enum DropdownBaseTextboxEvent {\n OPEN = 'dropdown-base-open',\n KEYDOWN = 'dropdown-base-keydown',\n CLOSE = 'dropdown-base-close',\n INPUT = 'dropdown-base-input',\n CLEAR = 'dropdown-base-clear',\n}\n\nexport default DropdownBaseTextboxProps;\n","<template>\n <div\n :class=\"$attrs.class\"\n data-testid=\"textbox-wrapper\"\n @click=\"onToggleDropdown\"\n @keydown.escape=\"onCloseDropdown\"\n >\n <bento-typography\n class=\"b-dropdown-base-textbox\"\n :class=\"conditionalClasses\"\n el=\"div\"\n data-testid=\"base-textbox\"\n >\n <input\n v-if=\"shouldShowInput\"\n v-bind=\"ariaAttributes\"\n :id=\"textboxId\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n role=\"combobox\"\n type=\"text\"\n aria-autocomplete=\"list\"\n :value=\"open ? value : displayValue\"\n :disabled=\"disabled ? true : null\"\n :readonly=\"readonly\"\n @keydown=\"$emit(DropdownBaseTextboxEvent.KEYDOWN, $event)\"\n @keydown.enter=\"onToggleDropdown\"\n @input=\"onInputEvent\"\n />\n <div\n v-else\n :id=\"textboxId\"\n v-bind=\"ariaAttributes\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n :class=\"comboboxConditionalClasses\"\n role=\"combobox\"\n :tabindex=\"0\"\n >\n <slot v-if=\"shouldShowSingleSelectSlot\" v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n <template v-else-if=\"shouldShowMultipleSlot\">\n <div class=\"b-dropdown-base-textbox__input-multiple-selected\">\n <div v-for=\"singleItem of selectedValueItems\" :key=\"singleItem.value\">\n <div class=\"b-dropdown-base-textbox__input-selected-element\">\n <slot v-bind=\"singleItem\">\n {{ displayValue }}\n </slot>\n </div>\n </div>\n </div>\n </template>\n <template v-else>{{ displayValue }}</template>\n </div>\n <span v-if=\"additionalItemsSelected\" class=\"b-dropdown-base-textbox__additional-items\">\n {{ additionalItemsSelected }}\n </span>\n <span v-if=\"hasSlot('icon') && !isFiltering\" class=\"b-dropdown-base-textbox__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"></slot>\n </span>\n <span\n v-if=\"isFiltering\"\n class=\"b-dropdown-base-textbox__clear-search\"\n tabindex=\"0\"\n data-testid=\"clear-search-button\"\n @click.stop=\"onClearSearch\"\n @keydown.enter.stop=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"'clearSearch'\" />\n </span>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, ref, useAttrs, useSlots, watch } from 'vue';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useHasSlot } from '@/composables';\n import { BentoTypography } from '@/components/typography';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoListboxOptionItem, Booleanish } from '@/types';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * If the combobox DOM element should be an `input` element.\n */\n alwaysComboboxIsInput: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time for the user type event.\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the \"clear\" button is clicked\n */\n (e: DropdownBaseTextboxEvent.CLEAR);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: DropdownBaseTextboxEvent.CLOSE);\n\n /**\n * Emitted when `dynamicFiltering` is enabled and a search input is entered\n */\n (e: DropdownBaseTextboxEvent.INPUT, searchValue: string);\n\n /**\n * Emitted when any key is pressed and the focus is on the input field\n */\n (e: DropdownBaseTextboxEvent.KEYDOWN, event: KeyboardEvent);\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: DropdownBaseTextboxEvent.OPEN);\n }>();\n\n const textbox = ref(null);\n const textboxId = generateUid('textbox');\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.HAS_ITEMS}`]: !!props.additionalItemsSelected,\n }));\n\n const comboboxConditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox__input--dynamic-filtering`]: props.dynamicFiltering,\n }));\n\n const isFiltering = computed(() => props.dynamicFiltering && !!props.value && props.open);\n\n const ariaAttributes = computed(\n () =>\n ({\n 'aria-haspopup': 'listbox',\n 'aria-controls': props.ariaControls,\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n 'aria-expanded': props.ariaExpanded ? 'true' : 'false',\n 'aria-labelledby': props.ariaLabelledby,\n 'aria-label': props.ariaLabelledby ? null : props.ariaLabel,\n 'aria-invalid': props.isInvalid,\n 'aria-disabled': props.disabled ? true : null,\n } as HTMLAttributes)\n );\n // Cast selectedValueItem if it is an array of selected items\n const selectedValueItems = computed(() =>\n props.multiple ? (props.selectedValueItem as BentoListboxOptionItem[]) : []\n );\n\n const shouldShowInput = computed(() => props.dynamicFiltering && (props.open || props.alwaysComboboxIsInput));\n const shouldShowSingleSelectSlot = computed(() => props.selectedValueItem && !props.multiple);\n const shouldShowMultipleSlot = computed(\n () =>\n props.multiple &&\n props.selectedValueItem &&\n selectedValueItems.value.length > 0 &&\n props.showSlotContentInMultiple\n );\n\n watch(\n () => shouldShowInput.value,\n () => {\n if (shouldShowInput.value && !props.alwaysComboboxIsInput) {\n nextTick(() => {\n textbox.value.focus();\n });\n }\n }\n );\n\n const onOpenDropdown = () => {\n if (!props.disabled && !props.readonly) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.OPEN);\n }\n };\n\n const onCloseDropdown = () => {\n if (props.open) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.CLOSE);\n }\n };\n\n const onToggleDropdown = (event: Event) => {\n const isDynamicFilteringInputClickEvent = props.open && (event.target as HTMLDivElement).tagName === 'INPUT';\n if (isDynamicFilteringInputClickEvent) {\n /**\n * When there's a click even on the input during filtering\n * and the popover is open, do not toggle the popover.\n * Allow for click events inside the input field\n */\n return null;\n }\n\n return props.open ? onCloseDropdown() : onOpenDropdown();\n };\n\n const onClearSearch = () => {\n emit(DropdownBaseTextboxEvent.CLEAR);\n emit(DropdownBaseTextboxEvent.INPUT, '');\n textbox.value.focus();\n };\n const onInputEvent = debounce<(event: Event) => void>((event: Event) => {\n if (!props.readonly && !props.disabled) {\n emit(DropdownBaseTextboxEvent.INPUT, (event.target as HTMLInputElement).value);\n } else {\n event.preventDefault();\n event.stopPropagation();\n }\n }, props.debounceTime);\n</script>\n\n<script lang=\"ts\">\n /**\n * Only for internal use, implements the logic of the textbox element to be implemented in the combobox.\n */\n export default defineComponent({\n name: 'dropdown-base-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-base-textbox.scss\" />\n","<template>\n <div class=\"b-dropdown-default-textbox\" :class=\"conditionalClasses\" data-testid=\"default-textbox\">\n <dropdown-base-textbox\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-default-textbox__textbox\"\n :value=\"value\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n <template #icon>\n <div class=\"b-dropdown-default-textbox__chevron\">\n <chevron-up-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, defineComponent, PropType, useSlots } from 'vue';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import { BentoListboxOptionItem, Booleanish } from '@/types';\n import { stopEventPropagation } from '@/utils/ts/events';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '../dropdown-base-textbox/dropdown-base-textbox.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n });\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.ERROR}`]:\n !props.disabled && !props.readonly && props.isInvalid,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-default-textbox--condensed': props.condensed,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n"],"names":["bindDirective","targetElement","binding","capture","onClickOutside","handler","options","unbindDirective","BentoClickOutsideDirective","DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","__default__$1","defineComponent","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","textbox","ref","textboxId","generateUid","conditionalClasses","computed","props","comboboxConditionalClasses","isFiltering","ariaAttributes","_a","selectedValueItems","shouldShowInput","shouldShowSingleSelectSlot","shouldShowMultipleSlot","watch","nextTick","onOpenDropdown","emit","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","debounce","__default__","isDropdownOpen","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","listeners"],"mappings":";;;;;;;;;;;AAUA,MAAAA,IAAA,CAAAC,GAAAC,MAAA;AACI,QAAAC,IAAA,CAAAD,EAAA,UAAA;AACA,MAAA,OAAAA,EAAA,SAAA;AAEI,IAAAD,EAAA,wBAAAG,EAAAH,GAAAC,EAAA,OAAA,EAAA,SAAAC,EAAA,CAAA;AAAA,OAA8F;AAE9F,UAAA,CAAAE,GAAAC,CAAA,IAAAJ,EAAA;AAEA,IAAAD,EAAA,wBAAAG,EAAAH,GAAAI,GAAA,EAAA,SAAAF,GAAA,GAAAG,EAAA,CAAA;AAAA;AAER,GAMAC,IAAA,CAAAN,MAAA;AAEI,EAAAA,EAAA,sBAAA;AACJ,GAEOO,KAAA;AAAA;AAAA,EAAmC,UAAAR;AAAA,EAE5B,QAAAO;AAAA;AAAA,EACF,aAAAP;AAAA,EAGK,WAAAO;AAEjB;ACmCY,IAAAE,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,sBACAA,EAAA,UAAA,yBACAA,EAAA,QAAA,uBACAA,EAAA,QAAA,uBACAA,EAAA,QAAA,uBALQA,IAAAD,KAAA,CAAA,CAAA;ACyOR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvOAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GA6HAI,IAAAC,EAAA,IAAA,GACAC,IAAAC,EAAA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AA,EAAA;AAAA,IAC3B,EAAA,GAGnDoB,IAAArB,EAAA,MAAAC,EAAA,QAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA,QAAA,GAEAqB,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,SAAAU,CAAA;AAAA,IAAsB,GAE1BC,IAAA,CAAAC,MAAA;AACI,MAAAZ,EAAA,WAAAY,CAAA;AAAA,IAAiB,GAErBC,IAAA,CAAAD,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAZ,EAAA,MAAA;AAAA,IAAW,GAEfe,IAAA,CAAAH,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAZ,EAAA,OAAA;AAAA,IAAY,GAEhBgB,IAAA,CAAAJ,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAZ,EAAA,OAAA;AAAA,IAAY,GAGhBiB,IAAA;AAAA,MAAkB,CAAA7C,EAAA,KAAA,GAAAqC;AAAA,MACoB,CAAArC,EAAA,IAAA,GAAAyC;AAAA,MACD,CAAAzC,EAAA,KAAA,GAAA2C;AAAA,MACC,CAAA3C,EAAA,KAAA,GAAA4C;AAAA,MACA,CAAA5C,EAAA,OAAA,GAAAuC;AAAA,IACE;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,18 +1,17 @@
1
1
  import { ref as y, watch as ne, computed as c, defineComponent as I, useSlots as le, toRefs as se, nextTick as E, useAttrs as be, toRef as O, inject as ye } from "vue";
2
- import { d as X, B as ge } from "./index.0c33067d.js";
2
+ import { d as X, B as ge } from "./index.be6917c8.js";
3
+ import { D as P, a as V, b as xe, c as we, B as he } from "./dropdown-default-textbox.537c81a2.js";
4
+ import { n as A } from "./_plugin-vue2_normalizer.71e2aa87.js";
3
5
  import { g as T } from "./unique-id.a2a2b458.js";
4
- import { u as xe } from "./aria-label.ac9651a5.js";
6
+ import { u as Se } from "./aria-label.ac9651a5.js";
5
7
  import { u as W } from "./i18n.eb5b985b.js";
6
- import { u as we } from "./use-form-layout-loading.d03e5d48.js";
7
- import { u as he } from "./use-has-slot.fbeb19ec.js";
8
- import { D as P, a as V, b as Se, c as Le } from "./dropdown-default-textbox.9c23c94d.js";
9
- import { n as A } from "./_plugin-vue2_normalizer.71e2aa87.js";
10
- import { b as u, a as K, B as z, u as Ce } from "./listbox.6d8bd2ae.js";
11
- import { B as $, a as Oe } from "./keyboard-navigation.ca47dfa8.js";
12
- import { a as ee } from "./index.0c4a8dd9.js";
13
- import { a as $e } from "./index.937a82c2.js";
14
- import { E as Ee, F as De } from "./error-message.5fdafd8c.js";
15
- import { B as Ie } from "./directive.0408e565.js";
8
+ import { u as Le } from "./use-form-layout-loading.d03e5d48.js";
9
+ import { u as Ce } from "./use-has-slot.fbeb19ec.js";
10
+ import { b as u, a as K, B as z, u as Oe } from "./listbox.f99c2f3e.js";
11
+ import { B as $, a as $e } from "./keyboard-navigation.ca47dfa8.js";
12
+ import { a as ee } from "./index.59d76d6b.js";
13
+ import { a as Ee } from "./index.787ded40.js";
14
+ import { E as De, F as Ie } from "./error-message.7022fa86.js";
16
15
  import "../assets/dropdown.css";
17
16
  var L = /* @__PURE__ */ ((n) => (n.DEFAULT = "DropdownInputDefault", n.SMALL = "DropdownInputSmall", n))(L || {});
18
17
  const Be = {
@@ -195,7 +194,7 @@ const Be = {
195
194
  })), C = c(() => ({
196
195
  "b-dropdown-options-container__listbox--small": t.inputSize === L.SMALL,
197
196
  "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
198
- })), { actions: g, internalSelectedValue: w, listeners: x, onEscapeKey: h, onOutsideDropdownClick: S } = Re(s, a, f, o), r = c(() => t != null && t.multiple ? $e : ee), p = c(() => {
197
+ })), { actions: g, internalSelectedValue: w, listeners: x, onEscapeKey: h, onOutsideDropdownClick: S } = Re(s, a, f, o), r = c(() => t != null && t.multiple ? Ee : ee), p = c(() => {
199
198
  var M;
200
199
  const _ = {
201
200
  "min-width": `${(M = t == null ? void 0 : t.targetElement) == null ? void 0 : M.clientWidth}px`,
@@ -366,7 +365,7 @@ const Ye = Je.exports, Ze = I({
366
365
  [V.OPEN]: s,
367
366
  [V.CLOSE]: a
368
367
  };
369
- return { __sfc: !0, emit: e, props: o, conditionalClasses: t, isDropdownOpen: l, openDropdown: s, closeDropdown: a, listeners: i, DropdownBaseTextbox: Se, ChevronDownSmallIcon: Ue, ChevronUpSmallIcon: Ye };
368
+ return { __sfc: !0, emit: e, props: o, conditionalClasses: t, isDropdownOpen: l, openDropdown: s, closeDropdown: a, listeners: i, DropdownBaseTextbox: xe, ChevronDownSmallIcon: Ue, ChevronUpSmallIcon: Ye };
370
369
  }
371
370
  });
372
371
  var Qe = function() {
@@ -514,7 +513,7 @@ const rt = {
514
513
  i18n: { messages: rt },
515
514
  name: "b-dropdown",
516
515
  components: {
517
- DropdownInputDefault: Le,
516
+ DropdownInputDefault: we,
518
517
  DropdownInputSmall: et
519
518
  }
520
519
  }), ct = /* @__PURE__ */ I({
@@ -677,7 +676,7 @@ const rt = {
677
676
  emits: ["input", "show-more"],
678
677
  setup(n, { emit: e }) {
679
678
  var Q;
680
- const o = n, t = be(), l = le(), s = he(l), { t: a } = W(), i = y(null), d = y(null), f = y(null), v = y(!1), b = T("bento-dropdown-options-container"), C = T("dropdown-label"), g = T("dropdown-description"), w = T("dropdown-error"), { isReadOnly: x } = we(O(o, "readonly")), h = y(t["aria-label"]), { ariaLabel: S } = se(o), r = xe({
679
+ const o = n, t = be(), l = le(), s = Ce(l), { t: a } = W(), i = y(null), d = y(null), f = y(null), v = y(!1), b = T("bento-dropdown-options-container"), C = T("dropdown-label"), g = T("dropdown-description"), w = T("dropdown-error"), { isReadOnly: x } = Le(O(o, "readonly")), h = y(t["aria-label"]), { ariaLabel: S } = se(o), r = Se({
681
680
  ariaLabel: h.value,
682
681
  // TODO: take this line away when the aria-label props is removed
683
682
  label: S,
@@ -707,7 +706,7 @@ const rt = {
707
706
  }), U = c(() => {
708
707
  const m = o.items.findIndex(({ value: R }) => o.value === R);
709
708
  return m > 0 ? m : 0;
710
- }), { isMultiLevelSelect: j, flattenedItemsList: q } = Ce(B), ce = c(() => {
709
+ }), { isMultiLevelSelect: j, flattenedItemsList: q } = Oe(B), ce = c(() => {
711
710
  var m;
712
711
  if (o.multiple) {
713
712
  const R = (m = o == null ? void 0 : o.value) == null ? void 0 : m.length;
@@ -759,7 +758,7 @@ const rt = {
759
758
  Having the field as "undefined" will hide/remove the error.
760
759
  <bento-dropdown errorMessage="Error message text" />`,
761
760
  "2.0.0"
762
- ), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: t, slots: l, hasSlot: s, props: o, emit: e, t: a, inputContainerRef: i, inputContainerRefWrapper: d, optionsContainerRef: f, isDropdownOpen: v, dropdownOptionsContainerId: b, labelId: C, descriptionId: g, errorId: w, isReadOnly: x, ariaLabelAttribute: h, ariaLabel: S, computedAriaLabel: r, isInputComponent: p, size: _, conditionalClasses: M, descriptionConditionalClasses: ie, searchTerm: D, items: B, filteredItems: re, isSearching: F, displayValue: de, selectedValueItem: ue, selectedValueIndex: U, isMultiLevelSelect: j, flattenedItemsList: q, additionalItemsSelected: ce, ariaDescribedBy: pe, openDropdown: H, closeDropdown: N, toggleDropdown: J, clickOutsideDropdown: fe, onOptionSelected: Y, emitShowMoreEvent: Z, textboxKeyboardNavigationListeners: ve, listboxKeyboardNavigationListeners: G, listboxListeners: me, BentoDropdownOptionsContainer: Fe, BentoTypography: ge, ErrorMessage: Ee, FieldLabel: De, vBentoClickOutsideDirective: Ie, vBentoKeyboardNavigationDirective: Oe };
761
+ ), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: t, slots: l, hasSlot: s, props: o, emit: e, t: a, inputContainerRef: i, inputContainerRefWrapper: d, optionsContainerRef: f, isDropdownOpen: v, dropdownOptionsContainerId: b, labelId: C, descriptionId: g, errorId: w, isReadOnly: x, ariaLabelAttribute: h, ariaLabel: S, computedAriaLabel: r, isInputComponent: p, size: _, conditionalClasses: M, descriptionConditionalClasses: ie, searchTerm: D, items: B, filteredItems: re, isSearching: F, displayValue: de, selectedValueItem: ue, selectedValueIndex: U, isMultiLevelSelect: j, flattenedItemsList: q, additionalItemsSelected: ce, ariaDescribedBy: pe, openDropdown: H, closeDropdown: N, toggleDropdown: J, clickOutsideDropdown: fe, onOptionSelected: Y, emitShowMoreEvent: Z, textboxKeyboardNavigationListeners: ve, listboxKeyboardNavigationListeners: G, listboxListeners: me, BentoDropdownOptionsContainer: Fe, BentoTypography: ge, ErrorMessage: De, FieldLabel: Ie, vBentoClickOutsideDirective: he, vBentoKeyboardNavigationDirective: $e };
763
762
  }
764
763
  });
765
764
  var pt = function() {
@@ -788,11 +787,11 @@ var pt = function() {
788
787
  null,
789
788
  null
790
789
  );
791
- const It = vt.exports;
790
+ const Dt = vt.exports;
792
791
  export {
793
- It as B,
792
+ Dt as B,
794
793
  dt as I,
795
794
  L as a,
796
795
  it as u
797
796
  };
798
- //# sourceMappingURL=dropdown.dad8cedd.js.map
797
+ //# sourceMappingURL=dropdown.93a582cc.js.map