@adyen/bento-vue2 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +43 -0
- package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +290 -281
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +53 -70
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +45 -27
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +24 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +234 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +94 -8
- package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -3
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +226 -0
- package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
- package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
- package/dist/accordion.js +41 -32
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +191 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/checkmark.css +1 -0
- package/dist/assets/chevron-left.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/refresh.css +1 -0
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +21 -14
- package/dist/button.js.map +1 -1
- package/dist/card.js +54 -54
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.d1ba66cd.js → base-button.7886a7e6.js} +2 -2
- package/dist/chunks/{base-button.d1ba66cd.js.map → base-button.7886a7e6.js.map} +1 -1
- package/dist/chunks/{base-modal.ec74044e.js → base-modal.88e7b9d4.js} +4 -4
- package/dist/chunks/{base-modal.ec74044e.js.map → base-modal.88e7b9d4.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.a5413243.js +105 -0
- package/dist/chunks/button-actions-with-menu.a5413243.js.map +1 -0
- package/dist/chunks/button.e09d5980.js +125 -0
- package/dist/chunks/button.e09d5980.js.map +1 -0
- package/dist/chunks/{calendar.b74f8a0f.js → calendar.24d0ac04.js} +294 -272
- package/dist/chunks/calendar.24d0ac04.js.map +1 -0
- package/dist/chunks/{checkbox.96ee3f71.js → checkbox.5343e28e.js} +7 -7
- package/dist/chunks/{checkbox.96ee3f71.js.map → checkbox.5343e28e.js.map} +1 -1
- package/dist/chunks/checkmark.78f3ed9c.js +26 -0
- package/dist/chunks/checkmark.78f3ed9c.js.map +1 -0
- package/dist/chunks/{chevron-right.3b826337.js → chevron-left.c10778d3.js} +8 -8
- package/dist/chunks/chevron-left.c10778d3.js.map +1 -0
- package/dist/chunks/{controls-group.e9537e45.js → controls-group.2a21bd83.js} +2 -2
- package/dist/chunks/{controls-group.e9537e45.js.map → controls-group.2a21bd83.js.map} +1 -1
- package/dist/chunks/{copy.2ff56819.js → copy.346eadb1.js} +4 -4
- package/dist/chunks/{copy.2ff56819.js.map → copy.346eadb1.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.3df0bf23.js → dropdown-default-textbox.25134789.js} +4 -4
- package/dist/chunks/dropdown-default-textbox.25134789.js.map +1 -0
- package/dist/chunks/{dropdown.3f198167.js → dropdown.f1253a54.js} +111 -81
- package/dist/chunks/dropdown.f1253a54.js.map +1 -0
- package/dist/chunks/{error-message.f5454f19.js → error-message.8302a46c.js} +2 -2
- package/dist/chunks/{error-message.f5454f19.js.map → error-message.8302a46c.js.map} +1 -1
- package/dist/chunks/fixed-scroller.8994e30a.js +108 -0
- package/dist/chunks/fixed-scroller.8994e30a.js.map +1 -0
- package/dist/chunks/{footer-actions.00d20947.js → footer-actions.c9b2cb74.js} +3 -3
- package/dist/chunks/{footer-actions.00d20947.js.map → footer-actions.c9b2cb74.js.map} +1 -1
- package/dist/chunks/{index.c39c64c9.js → index.2625175a.js} +2 -2
- package/dist/chunks/{index.c39c64c9.js.map → index.2625175a.js.map} +1 -1
- package/dist/chunks/index.37283390.js +475 -0
- package/dist/chunks/index.37283390.js.map +1 -0
- package/dist/chunks/index.8ac70774.js +1328 -0
- package/dist/chunks/index.8ac70774.js.map +1 -0
- package/dist/chunks/{index.2fce7703.js → index.965ac1af.js} +2 -2
- package/dist/chunks/{index.2fce7703.js.map → index.965ac1af.js.map} +1 -1
- package/dist/chunks/{index.eb52e785.js → index.a201f750.js} +6 -5
- package/dist/chunks/{index.eb52e785.js.map → index.a201f750.js.map} +1 -1
- package/dist/chunks/{index.a709a6b0.js → index.b83f8b7e.js} +2 -2
- package/dist/chunks/{index.a709a6b0.js.map → index.b83f8b7e.js.map} +1 -1
- package/dist/chunks/{index.298f5eed.js → index.d6b5f5e1.js} +6 -6
- package/dist/chunks/{index.298f5eed.js.map → index.d6b5f5e1.js.map} +1 -1
- package/dist/chunks/{index.31949c1a.js → index.e566354f.js} +91 -74
- package/dist/chunks/index.e566354f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.1362a2d7.js → listbox-option-tag.6a09e8e2.js} +8 -7
- package/dist/chunks/{listbox-option-tag.1362a2d7.js.map → listbox-option-tag.6a09e8e2.js.map} +1 -1
- package/dist/chunks/{listbox.e7bf46e4.js → listbox.73c38f38.js} +479 -385
- package/dist/chunks/listbox.73c38f38.js.map +1 -0
- package/dist/chunks/{loading-button.0ad06c99.js → loading-button.c65682d6.js} +2 -2
- package/dist/chunks/{loading-button.0ad06c99.js.map → loading-button.c65682d6.js.map} +1 -1
- package/dist/chunks/refresh.eb485c6f.js +26 -0
- package/dist/chunks/refresh.eb485c6f.js.map +1 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
- package/dist/chunks/{tooltip.68e81e9c.js → tooltip.104e5fac.js} +39 -36
- package/dist/chunks/{tooltip.68e81e9c.js.map → tooltip.104e5fac.js.map} +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +537 -528
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +10 -10
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +99 -89
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +8 -7
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +500 -486
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +104 -183
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -3
- package/dist/index.js +171 -169
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +7 -7
- package/dist/internal.js +20 -106
- package/dist/internal.js.map +1 -1
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +3 -466
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +3 -3
- package/dist/pagination.js +40 -26
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +33 -26
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +6 -1270
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +97 -81
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +100 -70
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +53 -51
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +109 -119
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +81 -71
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +170 -162
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +6 -6
- package/dist/tutorial.js +307 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/web-types.json +828 -122
- package/package.json +7 -4
- package/dist/assets/chevron-right.css +0 -1
- package/dist/chunks/button.eb60d460.js +0 -117
- package/dist/chunks/button.eb60d460.js.map +0 -1
- package/dist/chunks/calendar.b74f8a0f.js.map +0 -1
- package/dist/chunks/chevron-right.3b826337.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.3df0bf23.js.map +0 -1
- package/dist/chunks/dropdown.3f198167.js.map +0 -1
- package/dist/chunks/index.31949c1a.js.map +0 -1
- package/dist/chunks/listbox.e7bf46e4.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.
|
|
1
|
+
{"version":3,"file":"copy.346eadb1.js","sources":["../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/copy.vue","../../src/components/internal/copy/copy.types.ts","../../src/components/internal/copy/copy.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" 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\" fill-rule=\"evenodd\" d=\"M3.5 1.25C2.25736 1.25 1.25 2.25736 1.25 3.5V8.5C1.25 9.74264 2.25736 10.75 3.5 10.75H5.25V12.5C5.25 13.7426 6.25736 14.75 7.5 14.75H12.5C13.7426 14.75 14.75 13.7426 14.75 12.5V7.5C14.75 6.25736 13.7426 5.25 12.5 5.25H10.75V3.5C10.75 2.25736 9.74264 1.25 8.5 1.25H3.5ZM9.25 5.25V3.5C9.25 3.08579 8.91421 2.75 8.5 2.75H3.5C3.08579 2.75 2.75 3.08579 2.75 3.5V8.5C2.75 8.91421 3.08579 9.25 3.5 9.25H5.25V7.5C5.25 6.25736 6.25736 5.25 7.5 5.25H9.25ZM6.75 12.5C6.75 12.9142 7.08579 13.25 7.5 13.25H12.5C12.9142 13.25 13.25 12.9142 13.25 12.5V7.5C13.25 7.08579 12.9142 6.75 12.5 6.75H7.5C7.08579 6.75 6.75 7.08579 6.75 7.5V12.5Z\" clip-rule=\"evenodd\"/></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 scoped lang=\"scss\">\n svg {\n display: inline-flex;\n flex-shrink: 0;\n }\n \n svg,\n svg * {\n fill: currentcolor;\n }\n</style>\n","export enum CopyTooltipState {\n DEFAULT = 'default',\n COPYING = 'copying',\n ERROR = 'error',\n}\n","<template>\n <div class=\"b-copy\" @mouseleave=\"resetText\" @focusout=\"resetText\">\n <span v-if=\"$slots.default\" v-bento-tooltip-directive:[tooltipPosition]=\"copyText\" @click=\"onClickCopy\">\n <slot />\n </span>\n <bento-button\n v-else\n v-bento-tooltip-directive:[tooltipPosition]=\"copyText\"\n variant=\"tertiary\"\n @click=\"onClickCopy\"\n >\n <template #iconLeft>\n <copy-icon :svg-title=\"$t('copy')\" />\n </template>\n </bento-button>\n <div v-if=\"showScreenReaderAlert\" role=\"alert\" class=\"b-copy__screen-reader-alert\">{{ $t('copied') }}</div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoButton } from '@/components/button';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import { useI18n } from '@/utils/ts/i18n';\n import CopyIcon from '@adyen/ui-assets-icons-16/vue/copy';\n import messages from './messages.json';\n import { CopyTooltipState } from './copy.types';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * An internal button component that copies text to the user's clipboard.\n *\n * @example\n * import { Copy } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { Copy },\n * template: `\n * <copy :text=\"textToCopy\" />\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'copy',\n components: { BentoButton, CopyIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Defines the string that will get copied to the clipboard\n */\n text: {\n type: String,\n required: true,\n },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'top'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition>,\n default: PopperContainerPosition.TOP,\n },\n },\n setup(props) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const copyState = ref<CopyTooltipState>(CopyTooltipState.DEFAULT);\n\n const showScreenReaderAlert = ref(false);\n const onClickCopy = async () => {\n try {\n await navigator.clipboard.writeText(props.text);\n copyState.value = CopyTooltipState.COPYING;\n showScreenReaderAlert.value = true;\n } catch (e) {\n copyState.value = CopyTooltipState.ERROR;\n }\n };\n\n const resetText = () => {\n copyState.value = CopyTooltipState.DEFAULT;\n showScreenReaderAlert.value = false;\n };\n\n const copyText = computed(() => {\n switch (copyState.value) {\n case CopyTooltipState.COPYING:\n return t('copied');\n case CopyTooltipState.ERROR:\n return t('copyFailed');\n case CopyTooltipState.DEFAULT:\n default:\n return t('copy');\n }\n });\n\n return {\n copyText,\n onClickCopy,\n resetText,\n showScreenReaderAlert,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./copy.scss\" />\n"],"names":["uuid","_sfc_main$1","CopyTooltipState","CopyTooltipState2","_sfc_main","defineComponent","messages","BentoButton","CopyIcon","BentoTooltipDirective","PopperContainerPosition","props","t","useI18n","copyState","ref","showScreenReaderAlert","onClickCopy","resetText","computed"],"mappings":";;;;;;;AAKA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;ACZY,IAAAE,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,UAAA,WACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;AC4CZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA,EAAA,UAAAC,EAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA,EAAA,aAAAC,GAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,MAAAC,GAAA;AAEA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAAb,EAAA,OAAA,GAEAc,IAAAD,EAAA,EAAA,GACAE,IAAA,YAAA;AACA,UAAA;AACA,cAAA,UAAA,UAAA,UAAAN,EAAA,IAAA,GACAG,EAAA,QAAAZ,EAAA,SACAc,EAAA,QAAA;AAAA,MAAA,QAAA;AAEA,QAAAF,EAAA,QAAAZ,EAAA;AAAA,MAAA;AAAA,IACA,GAGAgB,IAAA,MAAA;AACA,MAAAJ,EAAA,QAAAZ,EAAA,SACAc,EAAA,QAAA;AAAA,IAAA;AAeA,WAAA;AAAA,MAAA,UAZAG,EAAA,MAAA;AACA,gBAAAL,EAAA,OAAA;AAAA,UAAA,KAAAZ,EAAA;AAEA,mBAAAU,EAAA,QAAA;AAAA,UAAA,KAAAV,EAAA;AAEA,mBAAAU,EAAA,YAAA;AAAA,UAAA,KAAAV,EAAA;AAAA,UACA;AAEA,mBAAAU,EAAA,MAAA;AAAA,QAAA;AAAA,MACA,CAAA;AAAA,MAIA,aAAAK;AAAA,MACA,WAAAC;AAAA,MACA,uBAAAF;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
package/dist/chunks/{dropdown-default-textbox.3df0bf23.js → dropdown-default-textbox.25134789.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, ref as w, computed as i } from "vue";
|
|
2
2
|
import { g as E } from "./unique-id.a2a2b458.js";
|
|
3
3
|
import { u as I } from "./use-has-slot.6052d56a.js";
|
|
4
|
-
import { B as S } from "./index.
|
|
4
|
+
import { B as S } from "./index.965ac1af.js";
|
|
5
5
|
import { d as O } from "./debounce.b5ef6acf.js";
|
|
6
6
|
import { C as D } from "./cross-circle-fill.d5e9ae44.js";
|
|
7
7
|
import { B as N } from "./keyboard-navigation.ca47dfa8.js";
|
|
@@ -111,7 +111,7 @@ const L = x({
|
|
|
111
111
|
[`b-dropdown-base-textbox--${d.DISABLED}`]: t.disabled,
|
|
112
112
|
[`b-dropdown-base-textbox--${d.READONLY}`]: t.readonly,
|
|
113
113
|
[`b-dropdown-base-textbox--${d.HAS_ITEMS}`]: !!t.additionalItemsSelected
|
|
114
|
-
})), b = i(() => t.dynamicFiltering && !!t.value), f = i(
|
|
114
|
+
})), b = i(() => t.dynamicFiltering && !!t.value && t.open), f = i(
|
|
115
115
|
() => {
|
|
116
116
|
var r;
|
|
117
117
|
return {
|
|
@@ -184,7 +184,7 @@ var P = function() {
|
|
|
184
184
|
A,
|
|
185
185
|
!1,
|
|
186
186
|
null,
|
|
187
|
-
"
|
|
187
|
+
"a199ba85",
|
|
188
188
|
null,
|
|
189
189
|
null
|
|
190
190
|
);
|
|
@@ -345,4 +345,4 @@ export {
|
|
|
345
345
|
d as b,
|
|
346
346
|
Q as c
|
|
347
347
|
};
|
|
348
|
-
//# sourceMappingURL=dropdown-default-textbox.
|
|
348
|
+
//# sourceMappingURL=dropdown-default-textbox.25134789.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-default-textbox.25134789.js","sources":["../../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 { 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, 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 = 'open',\n KEYDOWN = 'keydown',\n CLOSE = 'close',\n INPUT = 'input',\n CLEAR = '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=\"dynamicFiltering\"\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 role=\"combobox\"\n :tabindex=\"0\"\n >\n <!-- <span :aria-hidden=\"!displayValue ? true : null\"> -->\n <slot v-if=\"selectedValueItem && !multiple\" v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n <template v-else-if=\"selectedValueItem && showSlotContentInMultiple\">\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 <!-- </span> -->\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 lang=\"ts\">\n import { computed, defineComponent, PropType, ref } 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 { BentoKeyboardNavigationKeyDownEvent, BentoListboxOptionItem, Booleanish } from '@/types';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\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 components: { BentoTypography, CrossCircleFillIcon },\n inheritAttrs: false,\n props: {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: Number, 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 * 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: {\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 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 * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n },\n emits: [\n DropdownBaseTextboxEvent.OPEN,\n DropdownBaseTextboxEvent.CLOSE,\n DropdownBaseTextboxEvent.INPUT,\n DropdownBaseTextboxEvent.CLEAR,\n DropdownBaseTextboxEvent.KEYDOWN,\n ],\n setup(props, { emit, slots, attrs }) {\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 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\n /**\n * Triggered on click, space and enter user events. It will open the dropdown.\n * @event open\n */\n const onOpenDropdown = () => {\n if (!props.disabled && !props.readonly) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.OPEN);\n }\n };\n\n /**\n * Triggered on click, space, enter and esc user events. It will close the dropdown.\n * @event close\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 =\n 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\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 return {\n // Enums\n BentoKeyboardNavigationKeyDownEvent,\n DropdownBaseTextboxEvent,\n\n // Values\n conditionalClasses,\n textboxId,\n textbox,\n isFiltering,\n ariaAttributes,\n selectedValueItems,\n\n // Events\n onCloseDropdown,\n onToggleDropdown,\n onClearSearch,\n onInputEvent,\n\n // Methods\n hasSlot: useHasSlot(slots),\n };\n },\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\">\n import { computed, defineComponent, PropType } 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 /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n components: { ChevronDownIcon, ChevronUpIcon, DropdownBaseTextbox },\n inheritAttrs: false,\n emits: [\n DropdownBaseTextboxEvent.OPEN,\n DropdownBaseTextboxEvent.CLOSE,\n DropdownBaseTextboxEvent.INPUT,\n DropdownBaseTextboxEvent.CLEAR,\n DropdownBaseTextboxEvent.KEYDOWN,\n ],\n props: {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: Number, 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 * 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 setup(props, { slots, emit }) {\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 }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (e: Event) => {\n emit(DropdownBaseTextboxEvent.INPUT, e);\n };\n const onKeyDown = (e: Event) => {\n emit(DropdownBaseTextboxEvent.KEYDOWN, e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit(DropdownBaseTextboxEvent.OPEN);\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit(DropdownBaseTextboxEvent.CLOSE);\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit(DropdownBaseTextboxEvent.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\n return {\n // Enums\n DropdownBaseTextboxEvent,\n\n // Values\n conditionalClasses,\n isDropdownOpen,\n slots,\n\n // Events\n listeners,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n"],"names":["DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","_sfc_main$1","defineComponent","BentoTypography","CrossCircleIcon","props","emit","slots","attrs","textbox","ref","textboxId","generateUid","conditionalClasses","computed","isFiltering","ariaAttributes","_a","onOpenDropdown","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","debounce","selectedValueItems","BentoKeyboardNavigationKeyDownEvent","useHasSlot","_sfc_main","ChevronDownIcon","ChevronUpIcon","DropdownBaseTextbox","isDropdownOpen","onInput","e","onKeyDown","openDropdown","stopEventPropagation","closeDropdown","clearValue","listeners"],"mappings":"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"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { D as re, a as $, b as A, c as de } from "./dropdown-default-textbox.
|
|
1
|
+
import { ref as m, watch as V, computed as c, defineComponent as F, toRefs as J, nextTick as C, toRef as E } from "vue";
|
|
2
|
+
import { D as re, a as $, b as A, c as de } from "./dropdown-default-textbox.25134789.js";
|
|
3
3
|
import { n as R } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
-
import { B as ue, d as ce } from "./index.
|
|
4
|
+
import { B as ue, d as ce } from "./index.965ac1af.js";
|
|
5
5
|
import { g as D } from "./unique-id.a2a2b458.js";
|
|
6
6
|
import { u as k } from "./i18n.155748d6.js";
|
|
7
7
|
import { u as fe } from "./aria-label.ac9651a5.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as s, B as M, b as P } from "./listbox.73c38f38.js";
|
|
9
9
|
import { B as O, a as pe } from "./keyboard-navigation.ca47dfa8.js";
|
|
10
10
|
import { u as ve } from "./use-form-layout-loading.d03e5d48.js";
|
|
11
|
-
import {
|
|
11
|
+
import { a as N } from "./index.8ac70774.js";
|
|
12
12
|
import { BentoPopover as U } from "../popover.js";
|
|
13
|
-
import { E as be } from "./error-message.
|
|
14
|
-
import { B as
|
|
13
|
+
import { E as be } from "./error-message.8302a46c.js";
|
|
14
|
+
import { B as me } from "./directive.0408e565.js";
|
|
15
15
|
import "../assets/dropdown.css";
|
|
16
16
|
var L = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(L || {});
|
|
17
|
-
const
|
|
17
|
+
const _e = {
|
|
18
18
|
"en-US": {
|
|
19
19
|
apply: "Apply",
|
|
20
20
|
cancel: "Cancel",
|
|
21
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
22
|
}
|
|
23
23
|
}, ye = (t, e, n) => {
|
|
24
|
-
const l =
|
|
24
|
+
const l = m(t.value), { t: o } = k();
|
|
25
25
|
V(t, () => {
|
|
26
26
|
l.value = t.value;
|
|
27
27
|
});
|
|
28
|
-
const
|
|
28
|
+
const a = c(
|
|
29
29
|
() => JSON.stringify(l.value) === JSON.stringify(t.value)
|
|
30
30
|
), r = () => {
|
|
31
31
|
n(s.SELECT, l.value), n(s.CLOSE_DROPDOWN);
|
|
@@ -33,12 +33,12 @@ const me = {
|
|
|
33
33
|
l.value = t.value, n(s.CLOSE_DROPDOWN);
|
|
34
34
|
}, i = c(() => [
|
|
35
35
|
{
|
|
36
|
-
title:
|
|
36
|
+
title: o("apply"),
|
|
37
37
|
event: r,
|
|
38
|
-
disabled:
|
|
38
|
+
disabled: a.value
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
title:
|
|
41
|
+
title: o("cancel"),
|
|
42
42
|
event: u
|
|
43
43
|
}
|
|
44
44
|
]), f = (v) => {
|
|
@@ -47,7 +47,7 @@ const me = {
|
|
|
47
47
|
f(v), n(s.TAB);
|
|
48
48
|
}, x = (v) => {
|
|
49
49
|
f(v), n(s.ENTER);
|
|
50
|
-
},
|
|
50
|
+
}, _ = (v) => {
|
|
51
51
|
f(v), n(s.SPACE);
|
|
52
52
|
}, y = () => {
|
|
53
53
|
u(), n(s.ESCAPE);
|
|
@@ -57,7 +57,7 @@ const me = {
|
|
|
57
57
|
[s.SELECT]: f,
|
|
58
58
|
[s.SHOW_MORE]: h,
|
|
59
59
|
[s.TAB]: w,
|
|
60
|
-
[s.SPACE]:
|
|
60
|
+
[s.SPACE]: _,
|
|
61
61
|
[s.ENTER]: x
|
|
62
62
|
};
|
|
63
63
|
return {
|
|
@@ -69,7 +69,7 @@ const me = {
|
|
|
69
69
|
onEscapeKey: y
|
|
70
70
|
};
|
|
71
71
|
}, ge = F({
|
|
72
|
-
i18n: { messages:
|
|
72
|
+
i18n: { messages: _e },
|
|
73
73
|
name: "bento-dropdown-options-container",
|
|
74
74
|
components: {
|
|
75
75
|
BentoListbox: M,
|
|
@@ -81,6 +81,13 @@ const me = {
|
|
|
81
81
|
* Defines a string value that labels an interactive element.
|
|
82
82
|
*/
|
|
83
83
|
ariaLabel: { type: String, default: null },
|
|
84
|
+
/**
|
|
85
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
86
|
+
*/
|
|
87
|
+
emptyState: {
|
|
88
|
+
type: Object,
|
|
89
|
+
default: void 0
|
|
90
|
+
},
|
|
84
91
|
/**
|
|
85
92
|
* Disables dropdown functionality
|
|
86
93
|
*/
|
|
@@ -167,7 +174,15 @@ const me = {
|
|
|
167
174
|
* Reference to the DOM element or Vue component for positioning
|
|
168
175
|
* the Dropdown container.
|
|
169
176
|
*/
|
|
170
|
-
targetElement: { type: N.props.targetElement.type, required: !0 }
|
|
177
|
+
targetElement: { type: N.props.targetElement.type, required: !0 },
|
|
178
|
+
/**
|
|
179
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
180
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
181
|
+
*/
|
|
182
|
+
virtualScroll: {
|
|
183
|
+
type: [Boolean, Object],
|
|
184
|
+
default: !1
|
|
185
|
+
}
|
|
171
186
|
},
|
|
172
187
|
emits: [
|
|
173
188
|
s.CLOSE_DROPDOWN,
|
|
@@ -180,7 +195,7 @@ const me = {
|
|
|
180
195
|
],
|
|
181
196
|
setup(t, { emit: e, slots: n }) {
|
|
182
197
|
var d;
|
|
183
|
-
const { selectedValue: l, multiple:
|
|
198
|
+
const { selectedValue: l, multiple: o } = J(t), a = m(null), { t: r } = k(), u = c(() => t.open && !t.disabled), i = c(() => r("noOptionsMatchThisSearch")), f = {
|
|
184
199
|
"min-width": `${(d = t == null ? void 0 : t.targetElement) == null ? void 0 : d.clientWidth}px`,
|
|
185
200
|
"max-width": "min(500px, 95%)"
|
|
186
201
|
}, w = c(() => ({
|
|
@@ -188,16 +203,16 @@ const me = {
|
|
|
188
203
|
})), x = c(() => ({
|
|
189
204
|
"b-dropdown-options-container__listbox--small": t.inputSize === L.SMALL,
|
|
190
205
|
"b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
|
|
191
|
-
})), { actions:
|
|
206
|
+
})), { actions: _, internalSelectedValue: y, listeners: h, onEscapeKey: S } = ye(
|
|
192
207
|
l,
|
|
193
|
-
|
|
208
|
+
o,
|
|
194
209
|
e
|
|
195
210
|
), v = c(
|
|
196
211
|
() => t != null && t.multiple ? U : N
|
|
197
212
|
), B = c(
|
|
198
213
|
() => t != null && t.multiple ? {
|
|
199
214
|
actionsLayout: "space-between",
|
|
200
|
-
actions:
|
|
215
|
+
actions: _.value,
|
|
201
216
|
divider: !0,
|
|
202
217
|
fallbackPosition: ["top-start"],
|
|
203
218
|
id: D(`dropdown-options-${t.id}`),
|
|
@@ -226,13 +241,13 @@ const me = {
|
|
|
226
241
|
conditionalListboxClasses: x,
|
|
227
242
|
noResultsMessage: i,
|
|
228
243
|
slots: n,
|
|
229
|
-
actions:
|
|
244
|
+
actions: _,
|
|
230
245
|
internalSelectedValue: y,
|
|
231
246
|
// Component wrapper
|
|
232
247
|
popperContainerOrPopoverComponent: v,
|
|
233
248
|
popperContainerOrPopoverProps: B,
|
|
234
249
|
// Refs
|
|
235
|
-
dropdownOptionsListboxRef:
|
|
250
|
+
dropdownOptionsListboxRef: a,
|
|
236
251
|
// Events
|
|
237
252
|
onEscapeKey: S,
|
|
238
253
|
listeners: h
|
|
@@ -243,9 +258,9 @@ var xe = function() {
|
|
|
243
258
|
var e = this, n = e._self._c;
|
|
244
259
|
return e._self._setupProxy, n(e.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [n("div", { on: { keydown: function(l) {
|
|
245
260
|
return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
246
|
-
} } }, [n("bento-listbox", e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "no-results-message": e.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems }, scopedSlots: e._u([e._l(e.slots, function(l,
|
|
247
|
-
return { key:
|
|
248
|
-
return [e._t(
|
|
261
|
+
} } }, [n("bento-listbox", e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "no-results-message": e.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(l, o) {
|
|
262
|
+
return { key: o, fn: function(a) {
|
|
263
|
+
return [e._t(o, null, null, a)];
|
|
249
264
|
} };
|
|
250
265
|
})], null, !0) }, e.listeners))], 1)]);
|
|
251
266
|
}, we = [], he = /* @__PURE__ */ R(
|
|
@@ -254,15 +269,15 @@ var xe = function() {
|
|
|
254
269
|
we,
|
|
255
270
|
!1,
|
|
256
271
|
null,
|
|
257
|
-
"
|
|
272
|
+
"f8a335c8",
|
|
258
273
|
null,
|
|
259
274
|
null
|
|
260
275
|
);
|
|
261
276
|
const Se = he.exports;
|
|
262
|
-
let
|
|
277
|
+
let j = 0;
|
|
263
278
|
const Oe = {
|
|
264
279
|
beforeCreate() {
|
|
265
|
-
this.uuid =
|
|
280
|
+
this.uuid = j.toString(), j += 1;
|
|
266
281
|
}
|
|
267
282
|
};
|
|
268
283
|
var Ce = function() {
|
|
@@ -279,10 +294,10 @@ var Ce = function() {
|
|
|
279
294
|
null
|
|
280
295
|
);
|
|
281
296
|
const $e = Ee.exports;
|
|
282
|
-
let
|
|
297
|
+
let H = 0;
|
|
283
298
|
const De = {
|
|
284
299
|
beforeCreate() {
|
|
285
|
-
this.uuid =
|
|
300
|
+
this.uuid = H.toString(), H += 1;
|
|
286
301
|
}
|
|
287
302
|
};
|
|
288
303
|
var Re = function() {
|
|
@@ -378,13 +393,13 @@ const Te = Ie.exports, Ae = F({
|
|
|
378
393
|
[`b-dropdown-small-textbox--${A.DISABLED}`]: t.disabled,
|
|
379
394
|
[`b-dropdown-small-textbox--${A.READONLY}`]: t.readonly,
|
|
380
395
|
[`b-dropdown-small-textbox--${A.OPENED}`]: t.open
|
|
381
|
-
})), l = c(() => t.open && !t.disabled && !t.readonly),
|
|
396
|
+
})), l = c(() => t.open && !t.disabled && !t.readonly), o = () => {
|
|
382
397
|
e($.OPEN);
|
|
383
|
-
},
|
|
398
|
+
}, a = () => {
|
|
384
399
|
e($.CLOSE);
|
|
385
400
|
}, r = {
|
|
386
|
-
[$.OPEN]:
|
|
387
|
-
[$.CLOSE]:
|
|
401
|
+
[$.OPEN]: o,
|
|
402
|
+
[$.CLOSE]: a
|
|
388
403
|
};
|
|
389
404
|
return {
|
|
390
405
|
// Values
|
|
@@ -412,42 +427,42 @@ var Ne = function() {
|
|
|
412
427
|
);
|
|
413
428
|
const Fe = Pe.exports;
|
|
414
429
|
function ke(t, e, n) {
|
|
415
|
-
const l =
|
|
430
|
+
const l = m(t), o = m(e), a = (u, i = []) => i.flatMap((f) => f.label.toLocaleLowerCase().includes(u) ? [f, ...a(u, f.items)] : f.items ? [...a(u, f.items)] : []);
|
|
416
431
|
return V(l, () => {
|
|
417
432
|
n !== void 0 && n(l.value);
|
|
418
433
|
}), c(() => {
|
|
419
434
|
if (!l.value || n !== void 0)
|
|
420
|
-
return
|
|
435
|
+
return o.value;
|
|
421
436
|
const u = l.value.toLocaleLowerCase();
|
|
422
|
-
return
|
|
437
|
+
return a(u, o.value);
|
|
423
438
|
});
|
|
424
439
|
}
|
|
425
440
|
const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
426
|
-
const l = t.value.find(({ value:
|
|
441
|
+
const l = t.value.find(({ value: o }) => o === n.value);
|
|
427
442
|
return (l == null ? void 0 : l.label) || e.value || null;
|
|
428
443
|
}, We = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
429
444
|
var l;
|
|
430
|
-
return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((
|
|
431
|
-
const { label:
|
|
432
|
-
return
|
|
445
|
+
return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((o) => {
|
|
446
|
+
const { label: a } = e.value.find(({ value: r }) => r === o);
|
|
447
|
+
return a;
|
|
433
448
|
}).join(", ");
|
|
434
449
|
}, ze = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
435
450
|
var l;
|
|
436
|
-
return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((
|
|
437
|
-
if (
|
|
438
|
-
const r =
|
|
451
|
+
return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((o, a) => {
|
|
452
|
+
if (a.items) {
|
|
453
|
+
const r = a.items.filter(
|
|
439
454
|
(i) => t.value.includes(i.value)
|
|
440
455
|
);
|
|
441
|
-
r.length ===
|
|
456
|
+
r.length === a.items.length ? o.push(a.label) : r.forEach(({ label: i }) => o.push(i));
|
|
442
457
|
}
|
|
443
|
-
return t.value.includes(
|
|
458
|
+
return t.value.includes(a.value) && o.push(a.label), o;
|
|
444
459
|
}, []).join(", ");
|
|
445
460
|
}, qe = ({ items: t, placeholder: e, value: n, multiple: l }) => {
|
|
446
|
-
const
|
|
461
|
+
const o = c(() => t.value.find((r) => {
|
|
447
462
|
var u;
|
|
448
463
|
return (u = r.items) == null ? void 0 : u.length;
|
|
449
464
|
}));
|
|
450
|
-
return c(() => l.value ?
|
|
465
|
+
return c(() => l.value ? o.value ? ze({ selectedValues: n, placeholder: e, items: t }) : We({ selectedValues: n, items: t, placeholder: e }) : Ke({ items: t, placeholder: e, selectedValue: n }));
|
|
451
466
|
}, Ue = {
|
|
452
467
|
"en-US": {
|
|
453
468
|
optional: "optional",
|
|
@@ -458,13 +473,13 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
458
473
|
}, Z = (t) => {
|
|
459
474
|
var e;
|
|
460
475
|
(e = t.value.$children) == null || e[0].$refs.textbox.focus();
|
|
461
|
-
},
|
|
476
|
+
}, je = ({
|
|
462
477
|
inputContainerRef: t,
|
|
463
478
|
optionsContainerRef: e,
|
|
464
479
|
selectedValueIndex: n,
|
|
465
480
|
isDropdownOpen: l,
|
|
466
|
-
isDynamicFltering:
|
|
467
|
-
items:
|
|
481
|
+
isDynamicFltering: o,
|
|
482
|
+
items: a,
|
|
468
483
|
isMultiple: r
|
|
469
484
|
}, u, i, f) => {
|
|
470
485
|
const w = ({ detail: d }) => {
|
|
@@ -477,14 +492,14 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
477
492
|
var p;
|
|
478
493
|
(p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
|
|
479
494
|
}));
|
|
480
|
-
},
|
|
495
|
+
}, _ = () => {
|
|
481
496
|
l.value || (i(), C(() => {
|
|
482
497
|
var d, p;
|
|
483
498
|
if (r) {
|
|
484
499
|
const g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
485
|
-
(d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[g.length - 1].$children[
|
|
500
|
+
(d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[g.length - 1].$children[a.length - 1].$el.focus();
|
|
486
501
|
} else
|
|
487
|
-
(p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[
|
|
502
|
+
(p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[a.length - 1].$el.focus();
|
|
488
503
|
}));
|
|
489
504
|
}, y = () => {
|
|
490
505
|
l.value && (f(), Z(t));
|
|
@@ -505,15 +520,15 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
505
520
|
});
|
|
506
521
|
};
|
|
507
522
|
return c(() => ({
|
|
508
|
-
...
|
|
523
|
+
...o.value ? {} : { [O.SPACE]: S },
|
|
509
524
|
[O.ENTER]: v,
|
|
510
525
|
[O.ARROW_DOWN]: w,
|
|
511
526
|
[O.ARROW_UP]: x,
|
|
512
|
-
[O.END]:
|
|
527
|
+
[O.END]: _,
|
|
513
528
|
[O.ESCAPE]: y,
|
|
514
529
|
[O.HOME]: h
|
|
515
530
|
}));
|
|
516
|
-
},
|
|
531
|
+
}, He = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
|
|
517
532
|
const l = () => {
|
|
518
533
|
e.value && n(), C(() => {
|
|
519
534
|
Z(t);
|
|
@@ -535,7 +550,7 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
535
550
|
DropdownInputSmall: Fe,
|
|
536
551
|
ErrorMessage: be
|
|
537
552
|
},
|
|
538
|
-
directives: { BentoClickOutsideDirective:
|
|
553
|
+
directives: { BentoClickOutsideDirective: me, BentoKeyboardNavigationDirective: pe },
|
|
539
554
|
props: {
|
|
540
555
|
/**
|
|
541
556
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -544,6 +559,13 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
544
559
|
* Defines a string value that labels an interactive element.
|
|
545
560
|
*/
|
|
546
561
|
ariaLabel: { type: String, default: null },
|
|
562
|
+
/**
|
|
563
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
564
|
+
*/
|
|
565
|
+
emptyState: {
|
|
566
|
+
type: Object,
|
|
567
|
+
default: void 0
|
|
568
|
+
},
|
|
547
569
|
/**
|
|
548
570
|
* Disables dropdown functionality.
|
|
549
571
|
*/
|
|
@@ -659,6 +681,14 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
659
681
|
type: [String, Number, Array],
|
|
660
682
|
default: null
|
|
661
683
|
},
|
|
684
|
+
/**
|
|
685
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
686
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
687
|
+
*/
|
|
688
|
+
virtualScroll: {
|
|
689
|
+
type: [Boolean, Object],
|
|
690
|
+
default: !1
|
|
691
|
+
},
|
|
662
692
|
/**
|
|
663
693
|
* Dropdown search options and events.
|
|
664
694
|
* @see BentoDropdownSearchOptions
|
|
@@ -671,14 +701,14 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
671
701
|
emits: ["input", s.SHOW_MORE],
|
|
672
702
|
setup(t, { attrs: e, emit: n, slots: l }) {
|
|
673
703
|
var q;
|
|
674
|
-
const { t:
|
|
704
|
+
const { t: o } = k(), a = m(null), r = m(null), u = m(null), i = m(!1), f = D("bento-dropdown-options-container"), w = D("dropdown-label"), x = D("dropdown-description"), _ = D("dropdown-error"), { isReadOnly: y } = ve(E(t, "readonly")), h = m(e["aria-label"]), { ariaLabel: S } = J(t), v = fe({
|
|
675
705
|
ariaLabel: h.value,
|
|
676
706
|
// TODO: take this line away when the aria-label props is removed
|
|
677
707
|
label: S,
|
|
678
|
-
defaultFallback:
|
|
708
|
+
defaultFallback: o("ariaLabelFallback")
|
|
679
709
|
}), B = c(() => ({
|
|
680
710
|
"b-dropdown__description--error": !!t.errorMessage
|
|
681
|
-
})), d =
|
|
711
|
+
})), d = m(""), p = E(t, "items"), g = ke(d, p, (q = t == null ? void 0 : t.search) == null ? void 0 : q.searchEvent), I = c(() => t.dynamicFiltering && !!d.value), Y = qe({
|
|
682
712
|
items: p,
|
|
683
713
|
multiple: E(t, "multiple"),
|
|
684
714
|
placeholder: E(t, "placeholder"),
|
|
@@ -694,7 +724,7 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
694
724
|
var b;
|
|
695
725
|
return t.multiple ? (b = t == null ? void 0 : t.value) == null ? void 0 : b.length : null;
|
|
696
726
|
}), te = c(
|
|
697
|
-
() => `${t.description ? x : ""} ${t.errorMessage ?
|
|
727
|
+
() => `${t.description ? x : ""} ${t.errorMessage ? _ : ""}`.trim() || null
|
|
698
728
|
), ne = () => {
|
|
699
729
|
y.value || (i.value = !0);
|
|
700
730
|
}, T = () => {
|
|
@@ -707,9 +737,9 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
707
737
|
t.multiple || (d.value = "", i.value = !1), n("input", b);
|
|
708
738
|
}, z = () => {
|
|
709
739
|
n(s.SHOW_MORE);
|
|
710
|
-
},
|
|
740
|
+
}, ae = je(
|
|
711
741
|
{
|
|
712
|
-
inputContainerRef:
|
|
742
|
+
inputContainerRef: a,
|
|
713
743
|
optionsContainerRef: u,
|
|
714
744
|
selectedValueIndex: X,
|
|
715
745
|
isDropdownOpen: i,
|
|
@@ -720,9 +750,9 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
720
750
|
K,
|
|
721
751
|
ne,
|
|
722
752
|
T
|
|
723
|
-
),
|
|
753
|
+
), oe = He(
|
|
724
754
|
{
|
|
725
|
-
inputContainerRef:
|
|
755
|
+
inputContainerRef: a,
|
|
726
756
|
isDropdownOpen: i
|
|
727
757
|
},
|
|
728
758
|
T
|
|
@@ -730,7 +760,7 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
730
760
|
[s.CLOSE_DROPDOWN]: T,
|
|
731
761
|
[s.SELECT]: W,
|
|
732
762
|
[s.SHOW_MORE]: z,
|
|
733
|
-
...
|
|
763
|
+
...oe
|
|
734
764
|
};
|
|
735
765
|
return t.error && ce(
|
|
736
766
|
'BentoDropdown "error" property',
|
|
@@ -752,7 +782,7 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
752
782
|
searchTerm: d,
|
|
753
783
|
labelId: w,
|
|
754
784
|
descriptionId: x,
|
|
755
|
-
errorId:
|
|
785
|
+
errorId: _,
|
|
756
786
|
ariaDescribedBy: te,
|
|
757
787
|
selectedValueItem: Q,
|
|
758
788
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
@@ -762,7 +792,7 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
762
792
|
slots: l,
|
|
763
793
|
descriptionConditionalClasses: B,
|
|
764
794
|
// Refs
|
|
765
|
-
inputContainerRef:
|
|
795
|
+
inputContainerRef: a,
|
|
766
796
|
inputContainerRefWrapper: r,
|
|
767
797
|
optionsContainerRef: u,
|
|
768
798
|
// Events
|
|
@@ -770,7 +800,7 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
770
800
|
toggleDropdown: K,
|
|
771
801
|
onOptionSelected: W,
|
|
772
802
|
emitShowMoreEvent: z,
|
|
773
|
-
textboxKeyboardNavigationListeners:
|
|
803
|
+
textboxKeyboardNavigationListeners: ae,
|
|
774
804
|
listboxListeners: se
|
|
775
805
|
};
|
|
776
806
|
}
|
|
@@ -778,15 +808,15 @@ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
778
808
|
var Je = function() {
|
|
779
809
|
var l;
|
|
780
810
|
var e = this, n = e._self._c;
|
|
781
|
-
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeOpenedDropdown, expression: "closeOpenedDropdown" }], staticClass: "b-dropdown" }, [e.label ? n("div", { staticClass: "b-dropdown__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: e.disabled, "display-value": e.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: e.isDropdownOpen, "selected-value-item": e.idDefaultSize ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(
|
|
782
|
-
e.searchTerm =
|
|
783
|
-
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(
|
|
784
|
-
return { key:
|
|
785
|
-
return [e._t(
|
|
811
|
+
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeOpenedDropdown, expression: "closeOpenedDropdown" }], staticClass: "b-dropdown" }, [e.label ? n("div", { staticClass: "b-dropdown__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: e.disabled, "display-value": e.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: e.isDropdownOpen, "selected-value-item": e.idDefaultSize ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(o) {
|
|
812
|
+
e.searchTerm = o;
|
|
813
|
+
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(o, a) {
|
|
814
|
+
return { key: a, fn: function(r) {
|
|
815
|
+
return [e._t(a, null, null, r)];
|
|
786
816
|
} };
|
|
787
|
-
})], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": e.size, "is-option-disabled": e.isOptionDisabled, items: e.filteredItems, multiple: e.multiple, open: e.isDropdownOpen, "selected-value": e.value, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType }, scopedSlots: e._u([e._l(e.slots, function(
|
|
788
|
-
return { key:
|
|
789
|
-
return [e._t(
|
|
817
|
+
})], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": e.size, "is-option-disabled": e.isOptionDisabled, items: e.filteredItems, multiple: e.multiple, open: e.isDropdownOpen, "selected-value": e.value, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(o, a) {
|
|
818
|
+
return { key: a, fn: function(r) {
|
|
819
|
+
return [e._t(a, null, null, r)];
|
|
790
820
|
} };
|
|
791
821
|
})], null, !0) }, e.listboxListeners)) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e()], 1);
|
|
792
822
|
}, Ze = [], Ye = /* @__PURE__ */ R(
|
|
@@ -795,7 +825,7 @@ var Je = function() {
|
|
|
795
825
|
Ze,
|
|
796
826
|
!1,
|
|
797
827
|
null,
|
|
798
|
-
"
|
|
828
|
+
"42420745",
|
|
799
829
|
null,
|
|
800
830
|
null
|
|
801
831
|
);
|
|
@@ -805,4 +835,4 @@ export {
|
|
|
805
835
|
L as a,
|
|
806
836
|
ke as u
|
|
807
837
|
};
|
|
808
|
-
//# sourceMappingURL=dropdown.
|
|
838
|
+
//# sourceMappingURL=dropdown.f1253a54.js.map
|