@adyen/bento-vue2 1.3.0 → 1.4.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 (363) hide show
  1. package/dist/@types/components.d.ts +8 -4
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
  3. package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
  5. package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -51
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
  7. package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
  8. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
  9. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
  10. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +161 -150
  11. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
  12. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
  13. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +77 -15
  15. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
  16. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -6
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
  18. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +36 -11
  20. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
  21. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +2 -22
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
  24. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
  25. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +326 -14
  27. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
  28. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1 -21
  29. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
  30. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +1 -21
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +277 -104
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +5 -5
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +5 -6
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +5 -5
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +5 -5
  42. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  43. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
  44. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  46. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  47. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +0 -26
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -10
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
  58. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
  59. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +3 -0
  61. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  62. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  64. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  65. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  67. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +50 -47
  69. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  70. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  71. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  72. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +1 -1
  73. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  74. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  75. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  76. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
  77. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
  78. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  79. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  80. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  81. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  82. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  83. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  84. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  85. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  86. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  87. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  88. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  89. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  90. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  93. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  94. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  95. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  96. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  97. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  98. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  99. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  100. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  101. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -4
  102. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
  103. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  104. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  105. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  106. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  109. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  110. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  111. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  112. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  113. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  114. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  115. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  116. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  117. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  118. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -7
  119. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
  120. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
  121. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  122. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  123. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  124. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  125. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  126. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +4 -1
  127. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  128. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  129. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  130. package/dist/accordion.js +69 -177
  131. package/dist/accordion.js.map +1 -1
  132. package/dist/alert.js +57 -60
  133. package/dist/alert.js.map +1 -1
  134. package/dist/assets/base-button.css +1 -1
  135. package/dist/assets/base-modal.css +1 -0
  136. package/dist/assets/button.css +1 -1
  137. package/dist/assets/calendar.css +1 -1
  138. package/dist/assets/checkbox.css +1 -1
  139. package/dist/assets/chevron-up.css +1 -0
  140. package/dist/assets/controls-group.css +1 -1
  141. package/dist/assets/copy.css +1 -1
  142. package/dist/assets/dropdown-default-textbox.css +1 -1
  143. package/dist/assets/dropdown.css +1 -1
  144. package/dist/assets/error-message.css +1 -1
  145. package/dist/assets/footer-actions.css +1 -1
  146. package/dist/assets/index.css +1 -1
  147. package/dist/assets/index10.css +1 -1
  148. package/dist/assets/index11.css +1 -1
  149. package/dist/assets/index12.css +1 -1
  150. package/dist/assets/index13.css +1 -1
  151. package/dist/assets/index14.css +1 -1
  152. package/dist/assets/index15.css +1 -1
  153. package/dist/assets/index16.css +1 -1
  154. package/dist/assets/index17.css +1 -1
  155. package/dist/assets/index18.css +1 -1
  156. package/dist/assets/index19.css +1 -1
  157. package/dist/assets/index2.css +1 -1
  158. package/dist/assets/index20.css +1 -1
  159. package/dist/assets/index21.css +1 -1
  160. package/dist/assets/index22.css +1 -1
  161. package/dist/assets/index23.css +1 -1
  162. package/dist/assets/index24.css +1 -1
  163. package/dist/assets/index25.css +1 -1
  164. package/dist/assets/index26.css +1 -1
  165. package/dist/assets/index27.css +1 -1
  166. package/dist/assets/index28.css +1 -1
  167. package/dist/assets/index29.css +1 -1
  168. package/dist/assets/index3.css +1 -1
  169. package/dist/assets/index30.css +1 -1
  170. package/dist/assets/index31.css +1 -1
  171. package/dist/assets/index32.css +1 -1
  172. package/dist/assets/index33.css +1 -1
  173. package/dist/assets/index34.css +1 -1
  174. package/dist/assets/index35.css +1 -1
  175. package/dist/assets/index36.css +1 -1
  176. package/dist/assets/index37.css +1 -1
  177. package/dist/assets/index38.css +1 -1
  178. package/dist/assets/index39.css +1 -1
  179. package/dist/assets/index4.css +1 -1
  180. package/dist/assets/index40.css +1 -1
  181. package/dist/assets/index41.css +1 -1
  182. package/dist/assets/index42.css +1 -0
  183. package/dist/assets/index5.css +1 -1
  184. package/dist/assets/index6.css +1 -1
  185. package/dist/assets/index7.css +1 -1
  186. package/dist/assets/index8.css +1 -1
  187. package/dist/assets/index9.css +1 -1
  188. package/dist/assets/listbox-option-tag.css +1 -1
  189. package/dist/assets/listbox.css +1 -1
  190. package/dist/assets/loading-button.css +1 -1
  191. package/dist/assets/tooltip.css +1 -1
  192. package/dist/avatar-image.js +1 -1
  193. package/dist/badge.js +2 -2
  194. package/dist/button.js +110 -12
  195. package/dist/button.js.map +1 -1
  196. package/dist/card.js +66 -67
  197. package/dist/card.js.map +1 -1
  198. package/dist/checkbox.js +27 -26
  199. package/dist/checkbox.js.map +1 -1
  200. package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
  201. package/dist/chunks/base-button.bd8fa976.js.map +1 -0
  202. package/dist/chunks/base-modal.a365f260.js +207 -0
  203. package/dist/chunks/base-modal.a365f260.js.map +1 -0
  204. package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
  205. package/dist/chunks/button.fb307df3.js.map +1 -0
  206. package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
  207. package/dist/chunks/calendar.79ea42c1.js.map +1 -0
  208. package/dist/chunks/checkbox.c7d791ed.js +173 -0
  209. package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
  210. package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
  211. package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
  212. package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
  213. package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
  214. package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
  215. package/dist/chunks/copy.ac796536.js.map +1 -0
  216. package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
  217. package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
  218. package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
  219. package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
  220. package/dist/chunks/error-message.3b3c33d4.js +47 -0
  221. package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
  222. package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
  223. package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
  224. package/dist/chunks/get-slot-text.c1114034.js +9 -0
  225. package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
  226. package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
  227. package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
  228. package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
  229. package/dist/chunks/index.45295dd3.js.map +1 -0
  230. package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
  231. package/dist/chunks/index.88ff49c2.js.map +1 -0
  232. package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
  233. package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
  234. package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
  235. package/dist/chunks/index.bd734551.js.map +1 -0
  236. package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
  237. package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
  238. package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
  239. package/dist/chunks/index.c8f81673.js.map +1 -0
  240. package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
  241. package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
  242. package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
  243. package/dist/chunks/listbox.e792d2d6.js.map +1 -0
  244. package/dist/chunks/loading-button.429c8416.js +86 -0
  245. package/dist/chunks/loading-button.429c8416.js.map +1 -0
  246. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  247. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  248. package/dist/chunks/{tooltip.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
  249. package/dist/chunks/tooltip.a47ace87.js.map +1 -0
  250. package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
  251. package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
  252. package/dist/chunks/use-has-slot.6052d56a.js +6 -0
  253. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
  254. package/dist/code-snippet.js +469 -413
  255. package/dist/code-snippet.js.map +1 -1
  256. package/dist/country.js +492 -494
  257. package/dist/country.js.map +1 -1
  258. package/dist/currency.js +32 -35
  259. package/dist/currency.js.map +1 -1
  260. package/dist/data-grid.js +595 -603
  261. package/dist/data-grid.js.map +1 -1
  262. package/dist/date-picker.js +76 -80
  263. package/dist/date-picker.js.map +1 -1
  264. package/dist/date-range-picker.js +2 -2
  265. package/dist/date.js +1 -1
  266. package/dist/divider.js +1 -1
  267. package/dist/dropdown.js +37 -39
  268. package/dist/dropdown.js.map +1 -1
  269. package/dist/empty-state.js +134 -0
  270. package/dist/empty-state.js.map +1 -0
  271. package/dist/filter-bar.js +648 -638
  272. package/dist/filter-bar.js.map +1 -1
  273. package/dist/focus-trap.js +1 -1
  274. package/dist/form-layout.js +64 -64
  275. package/dist/form-layout.js.map +1 -1
  276. package/dist/header.js +61 -63
  277. package/dist/header.js.map +1 -1
  278. package/dist/image.js +82 -0
  279. package/dist/image.js.map +1 -0
  280. package/dist/index.js +216 -205
  281. package/dist/index.js.map +1 -1
  282. package/dist/info-icon.js +2 -2
  283. package/dist/input-field.js +99 -123
  284. package/dist/input-field.js.map +1 -1
  285. package/dist/internal.js +7 -7
  286. package/dist/link.js +27 -26
  287. package/dist/link.js.map +1 -1
  288. package/dist/loading-indicator.js +1 -1
  289. package/dist/menu.js +96 -104
  290. package/dist/menu.js.map +1 -1
  291. package/dist/modal.js +111 -264
  292. package/dist/modal.js.map +1 -1
  293. package/dist/pagination.js +148 -145
  294. package/dist/pagination.js.map +1 -1
  295. package/dist/payment-method.js +16 -18
  296. package/dist/payment-method.js.map +1 -1
  297. package/dist/popover.js +58 -54
  298. package/dist/popover.js.map +1 -1
  299. package/dist/popper-container.js +13 -17
  300. package/dist/popper-container.js.map +1 -1
  301. package/dist/radio-group.js +71 -72
  302. package/dist/radio-group.js.map +1 -1
  303. package/dist/search-bar.js +54 -66
  304. package/dist/search-bar.js.map +1 -1
  305. package/dist/segmented-control.js +68 -55
  306. package/dist/segmented-control.js.map +1 -1
  307. package/dist/sidepanel.js +65 -64
  308. package/dist/sidepanel.js.map +1 -1
  309. package/dist/status.js +20 -23
  310. package/dist/status.js.map +1 -1
  311. package/dist/structured-list.js +1 -1
  312. package/dist/summary-grid.js +110 -141
  313. package/dist/summary-grid.js.map +1 -1
  314. package/dist/tabs.js +68 -60
  315. package/dist/tabs.js.map +1 -1
  316. package/dist/tag.js +23 -26
  317. package/dist/tag.js.map +1 -1
  318. package/dist/textarea.js +97 -96
  319. package/dist/textarea.js.map +1 -1
  320. package/dist/timeline.js +125 -125
  321. package/dist/timeline.js.map +1 -1
  322. package/dist/toast.js +44 -48
  323. package/dist/toast.js.map +1 -1
  324. package/dist/toggle.js +54 -52
  325. package/dist/toggle.js.map +1 -1
  326. package/dist/typography.js +1 -1
  327. package/dist/web-types.json +651 -397
  328. package/package.json +9 -12
  329. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  330. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  331. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  332. package/dist/assets/button-actions.css +0 -1
  333. package/dist/assets/chevron-down.css +0 -1
  334. package/dist/chunks/base-button.98379576.js.map +0 -1
  335. package/dist/chunks/button-actions.bd397c79.js +0 -104
  336. package/dist/chunks/button-actions.bd397c79.js.map +0 -1
  337. package/dist/chunks/button.d0c9527d.js.map +0 -1
  338. package/dist/chunks/calendar.0ae43a96.js.map +0 -1
  339. package/dist/chunks/checkbox.f8457c93.js +0 -164
  340. package/dist/chunks/checkbox.f8457c93.js.map +0 -1
  341. package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
  342. package/dist/chunks/controls-group.b827382b.js.map +0 -1
  343. package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
  344. package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
  345. package/dist/chunks/dropdown.c05678d0.js.map +0 -1
  346. package/dist/chunks/error-message.0433b539.js +0 -47
  347. package/dist/chunks/error-message.0433b539.js.map +0 -1
  348. package/dist/chunks/footer-actions.67642347.js.map +0 -1
  349. package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
  350. package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
  351. package/dist/chunks/index.0cf00b47.js.map +0 -1
  352. package/dist/chunks/index.10aaf539.js.map +0 -1
  353. package/dist/chunks/index.56858f4e.js.map +0 -1
  354. package/dist/chunks/index.f0f8ed98.js.map +0 -1
  355. package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
  356. package/dist/chunks/listbox.116ed0c1.js.map +0 -1
  357. package/dist/chunks/loading-button.1c201f87.js +0 -84
  358. package/dist/chunks/loading-button.1c201f87.js.map +0 -1
  359. package/dist/chunks/tooltip.2aff4fa6.js.map +0 -1
  360. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  362. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  363. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
@@ -1,80 +1,81 @@
1
- import { ref as b, watch as j, computed as d, defineComponent as A, toRefs as le, nextTick as S, toRef as O } from "vue";
2
- import { D as ae, a as C, b as R, c as se } from "./dropdown-default-textbox.819e43f7.js";
3
- import { n as $ } from "./_plugin-vue2_normalizer.71e2aa87.js";
4
- import { B as ie, d as re, a as de } from "./index.56858f4e.js";
5
- import { g as L } from "./unique-id.a2a2b458.js";
6
- import { a as i, B as I, b as D } from "./listbox.116ed0c1.js";
7
- import { B as w, a as ue } from "./debounce.f8d92e44.js";
8
- import { u as ce } from "./use-form-layout-loading.d03e5d48.js";
9
- import { PopperContainer as T, PopperContainerPosition as W } from "../popper-container.js";
10
- import { u as V } from "./i18n.155748d6.js";
11
- import { BentoPopover as k, BentoPopoverPositions as z } from "../popover.js";
12
- import { c as q } from "./button-actions.bd397c79.js";
13
- import { E as fe } from "./error-message.0433b539.js";
14
- import { B as pe } from "./directive.0408e565.js";
1
+ import { ref as b, watch as V, computed as c, defineComponent as F, toRefs as J, nextTick as C, toRef as L } from "vue";
2
+ import { D as re, a as $, b as A, c as de } from "./dropdown-default-textbox.109c36d2.js";
3
+ import { n as B } from "./_plugin-vue2_normalizer.71e2aa87.js";
4
+ import { B as ue, d as ce } from "./index.45295dd3.js";
5
+ import { g as R } from "./unique-id.a2a2b458.js";
6
+ import { u as K } from "./i18n.155748d6.js";
7
+ import { u as fe } from "./aria-label.ac9651a5.js";
8
+ import { a as s, B as M, b as P } from "./listbox.e792d2d6.js";
9
+ import { B as O, a as pe } from "./debounce.f8d92e44.js";
10
+ import { u as ve } from "./use-form-layout-loading.d03e5d48.js";
11
+ import { PopperContainer as N } from "../popper-container.js";
12
+ import { BentoPopover as U } from "../popover.js";
13
+ import { BentoButtonActionsLayout as _e } from "../button.js";
14
+ import { E as be } from "./error-message.3b3c33d4.js";
15
+ import { B as me } from "./directive.0408e565.js";
15
16
  import "../assets/dropdown.css";
16
17
  var E = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(E || {});
17
- const ve = {
18
+ const ye = {
18
19
  "en-US": {
19
20
  apply: "Apply",
20
21
  cancel: "Cancel",
21
22
  noOptionsMatchThisSearch: "No options match this search"
22
23
  }
23
- }, _e = (t, e, n) => {
24
- const o = b(t.value), { t: l } = V();
25
- j(t, () => {
26
- o.value = t.value;
24
+ }, ge = (t, e, n) => {
25
+ const l = b(t.value), { t: a } = K();
26
+ V(t, () => {
27
+ l.value = t.value;
27
28
  });
28
- const a = d(
29
- () => JSON.stringify(o.value) === JSON.stringify(t.value)
30
- ), s = () => {
31
- n(i.SELECT, o.value), n(i.CLOSE_DROPDOWN);
32
- }, r = () => {
33
- o.value = t.value, n(i.CLOSE_DROPDOWN);
34
- }, u = d(() => [
29
+ const o = c(
30
+ () => JSON.stringify(l.value) === JSON.stringify(t.value)
31
+ ), r = () => {
32
+ n(s.SELECT, l.value), n(s.CLOSE_DROPDOWN);
33
+ }, d = () => {
34
+ l.value = t.value, n(s.CLOSE_DROPDOWN);
35
+ }, i = c(() => [
35
36
  {
36
- title: l("apply"),
37
- event: s,
38
- disabled: a.value
37
+ title: a("apply"),
38
+ event: r,
39
+ disabled: o.value
39
40
  },
40
41
  {
41
- title: l("cancel"),
42
- event: r
42
+ title: a("cancel"),
43
+ event: d
43
44
  }
44
- ]), c = (f) => {
45
- o.value = f, e.value || n(i.SELECT, f);
46
- }, _ = (f) => {
47
- c(f), n(i.TAB);
48
- }, m = (f) => {
49
- c(f), n(i.ENTER);
50
- }, x = (f) => {
51
- c(f), n(i.SPACE);
52
- }, p = () => {
53
- r(), n(i.ESCAPE);
54
- }, g = () => {
55
- n(i.SHOW_MORE);
56
- }, h = {
57
- [i.SELECT]: c,
58
- [i.SHOW_MORE]: g,
59
- [i.TAB]: _,
60
- [i.SPACE]: x,
61
- [i.ENTER]: m
45
+ ]), p = (v) => {
46
+ l.value = v, e.value || n(s.SELECT, v);
47
+ }, h = (v) => {
48
+ p(v), n(s.TAB);
49
+ }, m = (v) => {
50
+ p(v), n(s.ENTER);
51
+ }, x = (v) => {
52
+ p(v), n(s.SPACE);
53
+ }, y = () => {
54
+ d(), n(s.ESCAPE);
55
+ }, w = () => {
56
+ n(s.SHOW_MORE);
57
+ }, S = {
58
+ [s.SELECT]: p,
59
+ [s.SHOW_MORE]: w,
60
+ [s.TAB]: h,
61
+ [s.SPACE]: x,
62
+ [s.ENTER]: m
62
63
  };
63
64
  return {
64
65
  // Values
65
- actions: u,
66
- internalSelectedValue: o,
66
+ actions: i,
67
+ internalSelectedValue: l,
67
68
  // Methods
68
- listeners: h,
69
- onEscapeKey: p
69
+ listeners: S,
70
+ onEscapeKey: y
70
71
  };
71
- }, me = A({
72
- i18n: { messages: ve },
72
+ }, xe = F({
73
+ i18n: { messages: ye },
73
74
  name: "bento-dropdown-options-container",
74
75
  components: {
75
- BentoListbox: I,
76
- PopperContainer: T,
77
- BentoPopover: k
76
+ BentoListbox: M,
77
+ PopperContainer: N,
78
+ BentoPopover: U
78
79
  },
79
80
  props: {
80
81
  /**
@@ -108,7 +109,6 @@ const ve = {
108
109
  },
109
110
  /**
110
111
  * Dropdown input size
111
- * @see BentoDropdownSize
112
112
  */
113
113
  inputSize: {
114
114
  type: String,
@@ -136,8 +136,8 @@ const ve = {
136
136
  */
137
137
  lazyLoadType: {
138
138
  type: String,
139
- default: D.AUTOMATIC,
140
- validator: (t) => Object.values(D).includes(t)
139
+ default: P.AUTOMATIC,
140
+ validator: (t) => Object.values(P).includes(t)
141
141
  },
142
142
  /**
143
143
  * If enabled, the user will be able to select multiple items.
@@ -163,138 +163,137 @@ const ve = {
163
163
  *
164
164
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
165
165
  */
166
- searching: I.props.searching,
166
+ searching: M.props.searching,
167
167
  /**
168
168
  * Reference to the DOM element or Vue component for positioning
169
169
  * the Dropdown container.
170
170
  */
171
- targetElement: { type: T.props.targetElement.type, required: !0 }
171
+ targetElement: { type: N.props.targetElement.type, required: !0 }
172
172
  },
173
173
  emits: [
174
- i.CLOSE_DROPDOWN,
175
- i.SHOW_MORE,
176
- i.SELECT,
177
- i.ENTER,
178
- i.ESCAPE,
179
- i.SPACE,
180
- i.TAB
174
+ s.CLOSE_DROPDOWN,
175
+ s.SHOW_MORE,
176
+ s.SELECT,
177
+ s.ENTER,
178
+ s.ESCAPE,
179
+ s.SPACE,
180
+ s.TAB
181
181
  ],
182
182
  setup(t, { emit: e, slots: n }) {
183
- const { selectedValue: o, multiple: l } = le(t), a = b(null), { t: s } = V(), r = d(() => t.open && !t.disabled), u = d(() => s("noOptionsMatchThisSearch")), c = d(() => ({
183
+ const { selectedValue: l, multiple: a } = J(t), o = b(null), { t: r } = K(), d = c(() => t.open && !t.disabled), i = c(() => r("noOptionsMatchThisSearch")), p = c(() => ({
184
+ "b-dropdown-options-container--single": !(t != null && t.multiple)
185
+ })), h = c(() => ({
184
186
  "b-dropdown-options-container__listbox--small": t.inputSize === E.SMALL,
185
187
  "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
186
- })), { actions: _, internalSelectedValue: m, listeners: x, onEscapeKey: p } = _e(
187
- o,
188
+ })), { actions: m, internalSelectedValue: x, listeners: y, onEscapeKey: w } = ge(
188
189
  l,
190
+ a,
189
191
  e
190
- ), g = d(
191
- () => t != null && t.multiple ? k : T
192
- ), h = d(
192
+ ), S = c(
193
+ () => t != null && t.multiple ? U : N
194
+ ), v = c(
193
195
  () => {
194
- var f;
196
+ var D;
195
197
  return t != null && t.multiple ? {
196
- actionsLayout: q.SPACE_BETWEEN,
197
- actions: _.value,
198
+ actionsLayout: _e.SPACE_BETWEEN,
199
+ actions: m.value,
198
200
  divider: !0,
199
- id: L(`dropdown-options-${t.id}`),
201
+ id: R(`dropdown-options-${t.id}`),
200
202
  open: t.open,
201
- position: z.BOTTOM_START,
202
- style: { width: `${(f = t == null ? void 0 : t.targetElement) == null ? void 0 : f.clientWidth}px` },
203
+ position: "bottom-start",
204
+ style: { width: `${(D = t == null ? void 0 : t.targetElement) == null ? void 0 : D.clientWidth}px` },
203
205
  targetElement: t.targetElement
204
206
  } : {
205
207
  matchWidth: !0,
206
208
  offset: [0, 8],
207
- position: W.BOTTOM_START,
208
- style: { display: r.value ? "block" : "none" },
209
+ position: "bottom-start",
210
+ style: { display: d.value ? "block" : "none" },
209
211
  targetElement: t.targetElement
210
212
  };
211
213
  }
212
214
  );
213
215
  return {
214
216
  // Values
215
- isDropdownOpen: r,
216
- conditionalListboxClasses: c,
217
- noResultsMessage: u,
217
+ isDropdownOpen: d,
218
+ conditionalClasses: p,
219
+ conditionalListboxClasses: h,
220
+ noResultsMessage: i,
218
221
  slots: n,
219
- actions: _,
220
- internalSelectedValue: m,
222
+ actions: m,
223
+ internalSelectedValue: x,
221
224
  // Component wrapper
222
- popperContainerOrPopoverComponent: g,
223
- popperContainerOrPopoverProps: h,
225
+ popperContainerOrPopoverComponent: S,
226
+ popperContainerOrPopoverProps: v,
224
227
  // Refs
225
- dropdownOptionsListboxRef: a,
226
- // Enums
227
- BentoButtonActionsLayout: q,
228
- BentoPopoverPositions: z,
229
- PopperContainerPosition: W,
228
+ dropdownOptionsListboxRef: o,
230
229
  // Events
231
- onEscapeKey: p,
232
- listeners: x
230
+ onEscapeKey: w,
231
+ listeners: y
233
232
  };
234
233
  }
235
234
  });
236
- var ye = function() {
235
+ var he = function() {
237
236
  var e = this, n = e._self._c;
238
- return e._self._setupProxy, n(e.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container" }, "component", e.popperContainerOrPopoverProps, !1), [n("div", { on: { keydown: function(o) {
239
- return !o.type.indexOf("key") && e._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
240
- } } }, [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(o, l) {
241
- return { key: l, fn: function(a) {
242
- return [e._t(l, null, null, a)];
237
+ 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) {
238
+ return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
239
+ } } }, [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, a) {
240
+ return { key: a, fn: function(o) {
241
+ return [e._t(a, null, null, o)];
243
242
  } };
244
243
  })], null, !0) }, e.listeners))], 1)]);
245
- }, be = [], ge = /* @__PURE__ */ $(
246
- me,
247
- ye,
248
- be,
244
+ }, we = [], Se = /* @__PURE__ */ B(
245
+ xe,
246
+ he,
247
+ we,
249
248
  !1,
250
249
  null,
251
- "5fc31fae",
250
+ "96a1f953",
252
251
  null,
253
252
  null
254
253
  );
255
- const xe = ge.exports;
256
- let U = 0;
257
- const he = {
254
+ const Oe = Se.exports;
255
+ let H = 0;
256
+ const Ce = {
258
257
  beforeCreate() {
259
- this.uuid = U.toString(), U += 1;
258
+ this.uuid = H.toString(), H += 1;
260
259
  }
261
260
  };
262
- var we = function() {
261
+ var Ee = function() {
263
262
  var e = this, n = e._self._c;
264
263
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M4.4697 5.96967C4.76259 5.67678 5.23747 5.67678 5.53036 5.96967L8.00003 8.43934L10.4697 5.96967C10.7626 5.67678 11.2375 5.67678 11.5304 5.96967C11.8233 6.26256 11.8233 6.73744 11.5304 7.03033L8.53036 10.0303C8.23747 10.3232 7.76259 10.3232 7.4697 10.0303L4.4697 7.03033C4.17681 6.73744 4.17681 6.26256 4.4697 5.96967Z", "clip-rule": "evenodd" } })]);
265
- }, Se = [], Ee = /* @__PURE__ */ $(
266
- he,
267
- we,
268
- Se,
264
+ }, Le = [], $e = /* @__PURE__ */ B(
265
+ Ce,
266
+ Ee,
267
+ Le,
269
268
  !1,
270
269
  null,
271
270
  "18645fe6",
272
271
  null,
273
272
  null
274
273
  );
275
- const Oe = Ee.exports;
276
- let H = 0;
277
- const Ce = {
274
+ const De = $e.exports;
275
+ let j = 0;
276
+ const Re = {
278
277
  beforeCreate() {
279
- this.uuid = H.toString(), H += 1;
278
+ this.uuid = j.toString(), j += 1;
280
279
  }
281
280
  };
282
- var Le = function() {
281
+ var Be = function() {
283
282
  var e = this, n = e._self._c;
284
283
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M11.5303 10.0303C11.2374 10.3232 10.7626 10.3232 10.4697 10.0303L8 7.56066L5.53033 10.0303C5.23744 10.3232 4.76256 10.3232 4.46967 10.0303C4.17678 9.73744 4.17678 9.26256 4.46967 8.96967L7.46967 5.96967C7.61032 5.82902 7.80109 5.75 8 5.75C8.19891 5.75 8.38968 5.82902 8.53033 5.96967L11.5303 8.96967C11.8232 9.26256 11.8232 9.73744 11.5303 10.0303Z", "clip-rule": "evenodd" } })]);
285
- }, $e = [], De = /* @__PURE__ */ $(
286
- Ce,
287
- Le,
288
- $e,
284
+ }, Ie = [], Te = /* @__PURE__ */ B(
285
+ Re,
286
+ Be,
287
+ Ie,
289
288
  !1,
290
289
  null,
291
290
  "6f20d431",
292
291
  null,
293
292
  null
294
293
  );
295
- const Be = De.exports, Re = A({
294
+ const Ae = Te.exports, Ne = F({
296
295
  name: "dropdown-small-textbox",
297
- components: { ChevronDownSmallIcon: Oe, ChevronUpSmallIcon: Be, DropdownBaseTextbox: ae },
296
+ components: { ChevronDownSmallIcon: De, ChevronUpSmallIcon: Ae, DropdownBaseTextbox: re },
298
297
  inheritAttrs: !1,
299
298
  props: {
300
299
  /**
@@ -366,160 +365,174 @@ const Be = De.exports, Re = A({
366
365
  */
367
366
  value: { type: String, default: "" }
368
367
  },
369
- emits: [C.OPEN, C.CLOSE],
368
+ emits: [$.OPEN, $.CLOSE],
370
369
  setup(t, { emit: e }) {
371
- const n = d(() => ({
372
- [`b-dropdown-small-textbox--${R.DISABLED}`]: t.disabled,
373
- [`b-dropdown-small-textbox--${R.READONLY}`]: t.readonly,
374
- [`b-dropdown-small-textbox--${R.OPENED}`]: t.open
375
- })), o = d(() => t.open && !t.disabled && !t.readonly), l = () => {
376
- e(C.OPEN);
377
- }, a = () => {
378
- e(C.CLOSE);
379
- }, s = {
380
- [C.OPEN]: l,
381
- [C.CLOSE]: a
370
+ const n = c(() => ({
371
+ [`b-dropdown-small-textbox--${A.DISABLED}`]: t.disabled,
372
+ [`b-dropdown-small-textbox--${A.READONLY}`]: t.readonly,
373
+ [`b-dropdown-small-textbox--${A.OPENED}`]: t.open
374
+ })), l = c(() => t.open && !t.disabled && !t.readonly), a = () => {
375
+ e($.OPEN);
376
+ }, o = () => {
377
+ e($.CLOSE);
378
+ }, r = {
379
+ [$.OPEN]: a,
380
+ [$.CLOSE]: o
382
381
  };
383
382
  return {
384
383
  // Values
385
384
  conditionalClasses: n,
386
- isDropdownOpen: o,
385
+ isDropdownOpen: l,
387
386
  // Events
388
- listeners: s
387
+ listeners: r
389
388
  };
390
389
  }
391
390
  });
392
- var Te = function() {
391
+ var Me = function() {
393
392
  var e = this, n = e._self._c;
394
393
  return e._self._setupProxy, n("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [n("dropdown-base-textbox", e._g(e._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: e._u([{ key: "icon", fn: function() {
395
394
  return [n("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [n("chevron-up-small-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), n("chevron-down-small-icon", { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
396
395
  }, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), e.listeners))], 1);
397
- }, Ie = [], Ae = /* @__PURE__ */ $(
398
- Re,
399
- Te,
400
- Ie,
396
+ }, Pe = [], Fe = /* @__PURE__ */ B(
397
+ Ne,
398
+ Me,
399
+ Pe,
401
400
  !1,
402
401
  null,
403
402
  "d9e6eff4",
404
403
  null,
405
404
  null
406
405
  );
407
- const Ne = Ae.exports;
408
- function Pe(t, e, n) {
409
- const o = b(t), l = b(e), a = (r, u = []) => u.flatMap((c) => c.label.toLocaleLowerCase().includes(r) ? [c, ...a(r, c.items)] : c.items ? [...a(r, c.items)] : []);
410
- return j(o, () => {
411
- n !== void 0 && n(o.value);
412
- }), d(() => {
413
- if (!o.value || n !== void 0)
414
- return l.value;
415
- const r = o.value.toLocaleLowerCase();
416
- return a(r, l.value);
406
+ const Ke = Fe.exports;
407
+ function ke(t, e, n) {
408
+ const l = b(t), a = b(e), o = (d, i = []) => i.flatMap((p) => p.label.toLocaleLowerCase().includes(d) ? [p, ...o(d, p.items)] : p.items ? [...o(d, p.items)] : []);
409
+ return V(l, () => {
410
+ n !== void 0 && n(l.value);
411
+ }), c(() => {
412
+ if (!l.value || n !== void 0)
413
+ return a.value;
414
+ const d = l.value.toLocaleLowerCase();
415
+ return o(d, a.value);
417
416
  });
418
417
  }
419
- const Me = ({ items: t, placeholder: e, selectedValue: n }) => {
420
- const o = t.value.find(({ value: l }) => l === n.value);
421
- return (o == null ? void 0 : o.label) || e.value || null;
422
- }, Fe = ({ selectedValues: t, items: e, placeholder: n }) => t.value ? t.value.map((o) => {
423
- const { label: l } = e.value.find(({ value: a }) => a === o);
424
- return l;
425
- }).join(", ") : n.value || null, Ke = ({ selectedValues: t, items: e, placeholder: n }) => {
426
- var o;
427
- return (o = t.value) != null && o.length ? e.value.reduce((l, a) => {
428
- if (a.items) {
429
- const s = a.items.filter(
430
- (u) => t.value.includes(u.value)
418
+ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
419
+ const l = t.value.find(({ value: a }) => a === n.value);
420
+ return (l == null ? void 0 : l.label) || e.value || null;
421
+ }, ze = ({ selectedValues: t, items: e, placeholder: n }) => {
422
+ var l;
423
+ return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((a) => {
424
+ const { label: o } = e.value.find(({ value: r }) => r === a);
425
+ return o;
426
+ }).join(", ");
427
+ }, qe = ({ selectedValues: t, items: e, placeholder: n }) => {
428
+ var l;
429
+ return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((a, o) => {
430
+ if (o.items) {
431
+ const r = o.items.filter(
432
+ (i) => t.value.includes(i.value)
431
433
  );
432
- s.length === a.items.length ? l.push(a.label) : s.forEach(({ label: u }) => l.push(u));
434
+ r.length === o.items.length ? a.push(o.label) : r.forEach(({ label: i }) => a.push(i));
433
435
  }
434
- return t.value.includes(a.value) && l.push(a.label), l;
435
- }, []).join(", ") : n.value || null;
436
- }, We = ({ items: t, placeholder: e, value: n, multiple: o }) => {
437
- const l = d(() => t.value.find((s) => {
438
- var r;
439
- return (r = s.items) == null ? void 0 : r.length;
436
+ return t.value.includes(o.value) && a.push(o.label), a;
437
+ }, []).join(", ");
438
+ }, Ue = ({ items: t, placeholder: e, value: n, multiple: l }) => {
439
+ const a = c(() => t.value.find((r) => {
440
+ var d;
441
+ return (d = r.items) == null ? void 0 : d.length;
440
442
  }));
441
- return d(() => o.value ? l.value ? Ke({ selectedValues: n, placeholder: e, items: t }) : Fe({ selectedValues: n, items: t, placeholder: e }) : Me({ items: t, placeholder: e, selectedValue: n }));
442
- }, ke = {
443
+ return c(() => l.value ? a.value ? qe({ selectedValues: n, placeholder: e, items: t }) : ze({ selectedValues: n, items: t, placeholder: e }) : We({ items: t, placeholder: e, selectedValue: n }));
444
+ }, He = {
443
445
  "en-US": {
444
446
  optional: "optional",
445
447
  required: "required",
446
- clearSearch: "Clear filter"
448
+ clearSearch: "Clear filter",
449
+ ariaLabelFallback: "Dropdown"
447
450
  }
448
- }, J = (t) => {
449
- t.value.$children[0].$refs.textbox.focus();
450
- }, ze = ({
451
+ }, Z = (t) => {
452
+ var e;
453
+ (e = t.value.$children) == null || e[0].$refs.textbox.focus();
454
+ }, je = ({
451
455
  inputContainerRef: t,
452
456
  optionsContainerRef: e,
453
457
  selectedValueIndex: n,
454
- isDropdownOpen: o,
455
- isDynamicFltering: l,
456
- items: a,
457
- isMultiple: s
458
- }, r, u, c) => {
459
- const _ = ({ detail: y }) => {
460
- y.preventDefault(), o.value || (u(), S(() => {
461
- s ? e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
458
+ isDropdownOpen: l,
459
+ isDynamicFltering: a,
460
+ items: o,
461
+ isMultiple: r
462
+ }, d, i, p) => {
463
+ const h = ({ detail: u }) => {
464
+ u.preventDefault(), l.value || (i(), C(() => {
465
+ var f, g;
466
+ r ? (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
462
467
  }));
463
- }, m = ({ detail: y }) => {
464
- y.preventDefault(), o.value || (u(), S(() => {
465
- e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
468
+ }, m = ({ detail: u }) => {
469
+ u.preventDefault(), l.value || (i(), C(() => {
470
+ var f;
471
+ (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
466
472
  }));
467
473
  }, x = () => {
468
- o.value || (u(), S(() => {
469
- if (s) {
470
- const y = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
471
- e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[y.length - 1].$children[a.length - 1].$el.focus();
474
+ l.value || (i(), C(() => {
475
+ var u, f;
476
+ if (r) {
477
+ const g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
478
+ (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[g.length - 1].$children[o.length - 1].$el.focus();
472
479
  } else
473
- e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[a.length - 1].$el.focus();
480
+ (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[o.length - 1].$el.focus();
474
481
  }));
475
- }, p = () => {
476
- o.value && (c(), J(t));
477
- }, g = () => {
478
- o.value || u(), S(() => {
479
- e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
482
+ }, y = () => {
483
+ l.value && (p(), Z(t));
484
+ }, w = () => {
485
+ l.value || i(), C(() => {
486
+ var u;
487
+ (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
480
488
  });
481
- }, h = ({ detail: y }) => {
482
- y.preventDefault(), r(), o.value && S(() => {
483
- s ? e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
489
+ }, S = ({ detail: u }) => {
490
+ u.preventDefault(), d(), l.value && C(() => {
491
+ var f, g;
492
+ r ? (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
484
493
  });
485
- }, f = () => {
486
- r(), o.value && S(() => {
487
- s ? e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
494
+ }, v = () => {
495
+ d(), l.value && C(() => {
496
+ var u, f;
497
+ r ? (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[n.value].$el.focus();
488
498
  });
489
499
  };
490
- return d(() => ({
491
- ...l.value ? {} : { [w.SPACE]: h },
492
- [w.ENTER]: f,
493
- [w.ARROW_DOWN]: _,
494
- [w.ARROW_UP]: m,
495
- [w.END]: x,
496
- [w.ESCAPE]: p,
497
- [w.HOME]: g
500
+ return c(() => ({
501
+ ...a.value ? {} : { [O.SPACE]: S },
502
+ [O.ENTER]: v,
503
+ [O.ARROW_DOWN]: h,
504
+ [O.ARROW_UP]: m,
505
+ [O.END]: x,
506
+ [O.ESCAPE]: y,
507
+ [O.HOME]: w
498
508
  }));
499
- }, qe = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
500
- const o = () => {
501
- e.value && n(), S(() => {
502
- J(t);
509
+ }, Ve = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
510
+ const l = () => {
511
+ e.value && n(), C(() => {
512
+ Z(t);
503
513
  });
504
514
  };
505
515
  return {
506
- [i.ENTER]: o,
507
- [i.ESCAPE]: o,
508
- [i.TAB]: o,
509
- [i.SPACE]: o
516
+ [s.ENTER]: l,
517
+ [s.ESCAPE]: l,
518
+ [s.TAB]: l,
519
+ [s.SPACE]: l
510
520
  };
511
- }, Ue = A({
512
- i18n: { messages: ke },
521
+ }, Je = F({
522
+ i18n: { messages: He },
513
523
  name: "b-dropdown",
514
524
  components: {
515
- BentoDropdownOptionsContainer: xe,
516
- BentoTypography: ie,
517
- DropdownInputDefault: se,
518
- DropdownInputSmall: Ne,
519
- ErrorMessage: fe
525
+ BentoDropdownOptionsContainer: Oe,
526
+ BentoTypography: ue,
527
+ DropdownInputDefault: de,
528
+ DropdownInputSmall: Ke,
529
+ ErrorMessage: be
520
530
  },
521
- directives: { BentoClickOutsideDirective: pe, BentoKeyboardNavigationDirective: ue },
531
+ directives: { BentoClickOutsideDirective: me, BentoKeyboardNavigationDirective: pe },
522
532
  props: {
533
+ /**
534
+ * @deprecated from version 2.0.0. Use the aria-label attribute instead.
535
+ */
523
536
  /**
524
537
  * Defines a string value that labels an interactive element.
525
538
  */
@@ -598,8 +611,8 @@ const Me = ({ items: t, placeholder: e, selectedValue: n }) => {
598
611
  */
599
612
  lazyLoadType: {
600
613
  type: String,
601
- default: I.props.lazyLoadType.default,
602
- validator: (t) => Object.values(D).includes(t)
614
+ default: M.props.lazyLoadType.default,
615
+ validator: (t) => Object.values(P).includes(t)
603
616
  },
604
617
  /*
605
618
  * If enabled, the user will be able to select multiple items.
@@ -623,7 +636,7 @@ const Me = ({ items: t, placeholder: e, selectedValue: n }) => {
623
636
  showSlotContentInMultiple: { type: Boolean, default: !1 },
624
637
  /**
625
638
  * Dropdown input size
626
- * @see BentoDropdownSize
639
+ * * @see BentoDropdownSize
627
640
  */
628
641
  size: {
629
642
  type: String,
@@ -648,138 +661,141 @@ const Me = ({ items: t, placeholder: e, selectedValue: n }) => {
648
661
  default: void 0
649
662
  }
650
663
  },
651
- emits: ["input", i.SHOW_MORE],
652
- setup(t, { emit: e, slots: n }) {
653
- var K;
654
- const o = b(null), l = b(null), a = b(null), s = b(!1), r = L("bento-dropdown-options-container"), u = L("dropdown-label"), c = L("dropdown-description"), _ = L("dropdown-error"), { isReadOnly: m } = ce(O(t, "readonly")), x = d(() => ({
664
+ emits: ["input", s.SHOW_MORE],
665
+ setup(t, { attrs: e, emit: n, slots: l }) {
666
+ var q;
667
+ const { t: a } = K(), o = b(null), r = b(null), d = b(null), i = b(!1), p = R("bento-dropdown-options-container"), h = R("dropdown-label"), m = R("dropdown-description"), x = R("dropdown-error"), { isReadOnly: y } = ve(L(t, "readonly")), w = b(e["aria-label"]), { ariaLabel: S } = J(t), v = fe({
668
+ ariaLabel: w.value,
669
+ // TODO: take this line away when the aria-label props is removed
670
+ label: S,
671
+ defaultFallback: a("ariaLabelFallback")
672
+ }), D = c(() => ({
655
673
  "b-dropdown__description--error": !!t.errorMessage
656
- })), p = b(""), g = O(t, "items"), h = Pe(p, g, (K = t == null ? void 0 : t.search) == null ? void 0 : K.searchEvent), f = d(() => t.dynamicFiltering && !!p.value), N = We({
657
- items: g,
658
- multiple: O(t, "multiple"),
659
- placeholder: O(t, "placeholder"),
660
- value: O(t, "value")
661
- }), y = d(
674
+ })), u = b(""), f = L(t, "items"), g = ke(u, f, (q = t == null ? void 0 : t.search) == null ? void 0 : q.searchEvent), I = c(() => t.dynamicFiltering && !!u.value), Y = Ue({
675
+ items: f,
676
+ multiple: L(t, "multiple"),
677
+ placeholder: L(t, "placeholder"),
678
+ value: L(t, "value")
679
+ }), G = c(() => t.size === E.DEFAULT), Q = c(
662
680
  () => t != null && t.multiple ? t.items.filter(
663
- ({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
664
- ) : t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value))
665
- ), Z = d(() => {
666
- const v = t.items.findIndex(({ value: oe }) => t.value === oe);
667
- return v > 0 ? v : 0;
668
- }), Y = d(() => {
669
- var v;
670
- return t.multiple ? (v = t == null ? void 0 : t.value) == null ? void 0 : v.length : null;
671
- }), G = d(
672
- () => `${t.description ? c : ""} ${t.errorMessage ? _ : ""}`.trim() || null
673
- ), Q = () => {
674
- m.value || (s.value = !0);
675
- }, B = () => {
676
- s.value = !1;
677
- }, P = () => {
678
- m.value || (s.value = !s.value, f.value && (p.value = ""));
679
- }, X = () => {
680
- f.value && (p.value = ""), s.value && (s.value = !1);
681
- }, M = (v) => {
682
- t.multiple || (p.value = "", s.value = !1), e("input", v);
683
- }, F = () => {
684
- e(i.SHOW_MORE);
685
- }, ee = ze(
681
+ ({ value: _ }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(_)
682
+ ) : t.items.find(({ value: _ }) => _ === (t == null ? void 0 : t.value))
683
+ ), X = c(() => {
684
+ const _ = t.items.findIndex(({ value: ie }) => t.value === ie);
685
+ return _ > 0 ? _ : 0;
686
+ }), ee = c(() => {
687
+ var _;
688
+ return t.multiple ? (_ = t == null ? void 0 : t.value) == null ? void 0 : _.length : null;
689
+ }), te = c(
690
+ () => `${t.description ? m : ""} ${t.errorMessage ? x : ""}`.trim() || null
691
+ ), ne = () => {
692
+ y.value || (i.value = !0);
693
+ }, T = () => {
694
+ i.value = !1;
695
+ }, k = () => {
696
+ y.value || (i.value = !i.value, I.value && (u.value = ""));
697
+ }, le = () => {
698
+ I.value && (u.value = ""), i.value && (i.value = !1);
699
+ }, W = (_) => {
700
+ t.multiple || (u.value = "", i.value = !1), n("input", _);
701
+ }, z = () => {
702
+ n(s.SHOW_MORE);
703
+ }, oe = je(
686
704
  {
687
705
  inputContainerRef: o,
688
- optionsContainerRef: a,
689
- selectedValueIndex: Z,
690
- isDropdownOpen: s,
691
- isDynamicFltering: O(t, "dynamicFiltering"),
706
+ optionsContainerRef: d,
707
+ selectedValueIndex: X,
708
+ isDropdownOpen: i,
709
+ isDynamicFltering: L(t, "dynamicFiltering"),
692
710
  items: t.items,
693
711
  isMultiple: t.multiple
694
712
  },
695
- P,
696
- Q,
697
- B
698
- ), te = qe(
713
+ k,
714
+ ne,
715
+ T
716
+ ), ae = Ve(
699
717
  {
700
718
  inputContainerRef: o,
701
- isDropdownOpen: s
719
+ isDropdownOpen: i
702
720
  },
703
- B
704
- ), ne = {
705
- [i.CLOSE_DROPDOWN]: B,
706
- [i.SELECT]: M,
707
- [i.SHOW_MORE]: F,
708
- ...te
721
+ T
722
+ ), se = {
723
+ [s.CLOSE_DROPDOWN]: T,
724
+ [s.SELECT]: W,
725
+ [s.SHOW_MORE]: z,
726
+ ...ae
709
727
  };
710
- return t.error && re(
728
+ return t.error && ce(
711
729
  'BentoDropdown "error" property',
712
730
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
713
- Having the field as "undefined" will hide/remove the error.
714
- <bento-dropdown errorMessage="Error message text" />`,
731
+ Having the field as "undefined" will hide/remove the error.
732
+ <bento-dropdown errorMessage="Error message text" />`,
715
733
  "2.0.0"
716
734
  ), {
717
735
  // Values
718
- additionalItemsSelected: Y,
719
- isDropdownOpen: s,
720
- displayValue: N,
721
- dropdownOptionsContainerId: r,
722
- filteredItems: h,
723
- isSearching: f,
724
- isReadOnly: m,
725
- searchTerm: p,
726
- labelId: u,
727
- descriptionId: c,
728
- errorId: _,
729
- ariaDescribedBy: G,
730
- selectedValueItem: y,
736
+ computedAriaLabel: v,
737
+ additionalItemsSelected: ee,
738
+ idDefaultSize: G,
739
+ isDropdownOpen: i,
740
+ displayValue: Y,
741
+ dropdownOptionsContainerId: p,
742
+ filteredItems: g,
743
+ isSearching: I,
744
+ isReadOnly: y,
745
+ searchTerm: u,
746
+ labelId: h,
747
+ descriptionId: m,
748
+ errorId: x,
749
+ ariaDescribedBy: te,
750
+ selectedValueItem: Q,
731
751
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
732
752
  // The setup method and the "useSlots" composible define
733
753
  // { slots } as a proxy of $scopedSlots and $scopes in their
734
754
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
735
- slots: n,
736
- descriptionConditionalClasses: x,
755
+ slots: l,
756
+ descriptionConditionalClasses: D,
737
757
  // Refs
738
758
  inputContainerRef: o,
739
- inputContainerRefWrapper: l,
740
- optionsContainerRef: a,
759
+ inputContainerRefWrapper: r,
760
+ optionsContainerRef: d,
741
761
  // Events
742
- closeOpenedDropdown: X,
743
- toggleDropdown: P,
744
- onOptionSelected: M,
745
- emitShowMoreEvent: F,
746
- textboxKeyboardNavigationListeners: ee,
747
- listboxListeners: ne,
748
- // Enums
749
- BentoTypographyElement: de,
750
- BentoDropdownSize: E,
751
- BentoDropdownLazyLoadType: D
762
+ closeOpenedDropdown: le,
763
+ toggleDropdown: k,
764
+ onOptionSelected: W,
765
+ emitShowMoreEvent: z,
766
+ textboxKeyboardNavigationListeners: oe,
767
+ listboxListeners: se
752
768
  };
753
769
  }
754
770
  });
755
- var He = function() {
756
- var o;
771
+ var Ze = function() {
772
+ var l;
757
773
  var e = this, n = e._self._c;
758
- 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: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: e.BentoTypographyElement.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.ariaLabel ? e.ariaLabel : null, "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.size === e.BentoDropdownSize.DEFAULT ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(l) {
759
- e.searchTerm = l;
760
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(l, a) {
761
- return { key: a, fn: function(s) {
762
- return [e._t(a, null, null, s)];
774
+ 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(a) {
775
+ e.searchTerm = a;
776
+ }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
777
+ return { key: o, fn: function(r) {
778
+ return [e._t(o, null, null, r)];
763
779
  } };
764
- })], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.ariaLabel, "debounce-time": (o = e.search) == null ? void 0 : o.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(l, a) {
765
- return { key: a, fn: function(s) {
766
- return [e._t(a, null, null, s)];
780
+ })], 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(a, o) {
781
+ return { key: o, fn: function(r) {
782
+ return [e._t(o, null, null, r)];
767
783
  } };
768
- })], 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: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.description) + " ")]) : e._e()], 1);
769
- }, je = [], Ve = /* @__PURE__ */ $(
770
- Ue,
771
- He,
772
- je,
784
+ })], 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);
785
+ }, Ye = [], Ge = /* @__PURE__ */ B(
786
+ Je,
787
+ Ze,
788
+ Ye,
773
789
  !1,
774
790
  null,
775
- "ad005bba",
791
+ "ec4f9fd4",
776
792
  null,
777
793
  null
778
794
  );
779
- const rt = Ve.exports;
795
+ const pt = Ge.exports;
780
796
  export {
781
- rt as B,
797
+ pt as B,
782
798
  E as a,
783
- Pe as u
799
+ ke as u
784
800
  };
785
- //# sourceMappingURL=dropdown.c05678d0.js.map
801
+ //# sourceMappingURL=dropdown.fd93f0ce.js.map