@adyen/bento-vue2 1.9.0 → 1.11.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 (295) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +19 -3580
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  5. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
  8. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
  9. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
  10. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
  11. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
  12. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +20 -4
  17. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
  19. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
  21. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
  22. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
  23. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
  24. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
  25. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
  26. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
  27. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  28. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -7
  29. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +10 -0
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  42. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  43. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1598 -6
  44. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -0
  49. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  50. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  51. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  52. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  53. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  54. 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.types.d.ts +2 -1
  55. 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 +82 -0
  56. 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 +10 -0
  57. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  58. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  59. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  60. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  61. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  62. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +12 -3
  64. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  66. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  67. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  69. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +251 -3
  70. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  71. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  72. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  73. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  74. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +19 -0
  75. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  76. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  77. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  78. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +20 -0
  79. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  80. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  81. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +16 -3
  82. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  83. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  84. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  85. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  86. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  87. package/dist/accordion.js +2 -2
  88. package/dist/action-bar.js +5 -5
  89. package/dist/alert.js +8 -8
  90. package/dist/alert.js.map +1 -1
  91. package/dist/assets/base-modal.css +1 -1
  92. package/dist/assets/button.css +1 -1
  93. package/dist/assets/checkbox.css +1 -1
  94. package/dist/assets/controls-group.css +1 -1
  95. package/dist/assets/copy.css +1 -1
  96. package/dist/assets/dropdown-default-textbox.css +1 -1
  97. package/dist/assets/dropdown.css +1 -1
  98. package/dist/assets/fixed-scroller.css +1 -1
  99. package/dist/assets/index10.css +1 -1
  100. package/dist/assets/index11.css +1 -1
  101. package/dist/assets/index12.css +1 -1
  102. package/dist/assets/index13.css +1 -1
  103. package/dist/assets/index14.css +1 -1
  104. package/dist/assets/index15.css +1 -1
  105. package/dist/assets/index16.css +1 -1
  106. package/dist/assets/index17.css +1 -1
  107. package/dist/assets/index18.css +1 -1
  108. package/dist/assets/index19.css +1 -1
  109. package/dist/assets/index2.css +1 -1
  110. package/dist/assets/index20.css +1 -1
  111. package/dist/assets/index21.css +1 -1
  112. package/dist/assets/index22.css +1 -1
  113. package/dist/assets/index24.css +1 -1
  114. package/dist/assets/index25.css +1 -1
  115. package/dist/assets/index26.css +1 -1
  116. package/dist/assets/index27.css +1 -1
  117. package/dist/assets/index28.css +1 -1
  118. package/dist/assets/index29.css +1 -1
  119. package/dist/assets/index3.css +1 -1
  120. package/dist/assets/index30.css +1 -1
  121. package/dist/assets/index31.css +1 -1
  122. package/dist/assets/index32.css +1 -1
  123. package/dist/assets/index33.css +1 -1
  124. package/dist/assets/index34.css +1 -1
  125. package/dist/assets/index35.css +1 -1
  126. package/dist/assets/index36.css +1 -1
  127. package/dist/assets/index37.css +1 -1
  128. package/dist/assets/index38.css +1 -1
  129. package/dist/assets/index39.css +1 -1
  130. package/dist/assets/index4.css +1 -1
  131. package/dist/assets/index40.css +1 -1
  132. package/dist/assets/index41.css +1 -1
  133. package/dist/assets/index42.css +1 -1
  134. package/dist/assets/index43.css +1 -1
  135. package/dist/assets/index44.css +1 -1
  136. package/dist/assets/index45.css +1 -1
  137. package/dist/assets/index46.css +1 -0
  138. package/dist/assets/index5.css +1 -1
  139. package/dist/assets/index6.css +1 -1
  140. package/dist/assets/index7.css +1 -1
  141. package/dist/assets/index8.css +1 -1
  142. package/dist/assets/index9.css +1 -1
  143. package/dist/assets/listbox.css +1 -1
  144. package/dist/assets/loading-button.css +1 -1
  145. package/dist/avatar-image.js +1 -1
  146. package/dist/button.js +19 -17
  147. package/dist/button.js.map +1 -1
  148. package/dist/card.js +2 -2
  149. package/dist/checkbox.js +61 -48
  150. package/dist/checkbox.js.map +1 -1
  151. package/dist/chunks/{base-button.df9a9bea.js → base-button.bd61ab14.js} +2 -2
  152. package/dist/chunks/{base-button.df9a9bea.js.map → base-button.bd61ab14.js.map} +1 -1
  153. package/dist/chunks/{base-modal.75319f4e.js → base-modal.5640a66a.js} +33 -33
  154. package/dist/chunks/base-modal.5640a66a.js.map +1 -0
  155. package/dist/chunks/{button-actions-with-menu.32770485.js → button-actions-with-menu.767344df.js} +3 -3
  156. package/dist/chunks/{button-actions-with-menu.32770485.js.map → button-actions-with-menu.767344df.js.map} +1 -1
  157. package/dist/chunks/button.bb5b4909.js +100 -0
  158. package/dist/chunks/button.bb5b4909.js.map +1 -0
  159. package/dist/chunks/{calendar.a885d8fc.js → calendar.4ab3c2dc.js} +4 -4
  160. package/dist/chunks/{calendar.a885d8fc.js.map → calendar.4ab3c2dc.js.map} +1 -1
  161. package/dist/chunks/checkbox.c684c20a.js +188 -0
  162. package/dist/chunks/checkbox.c684c20a.js.map +1 -0
  163. package/dist/chunks/{controls-group.dd967ccf.js → controls-group.d25f5044.js} +15 -11
  164. package/dist/chunks/controls-group.d25f5044.js.map +1 -0
  165. package/dist/chunks/copy.36c058e9.js +122 -0
  166. package/dist/chunks/copy.36c058e9.js.map +1 -0
  167. package/dist/chunks/country.types.002caff2.js +5871 -0
  168. package/dist/chunks/country.types.002caff2.js.map +1 -0
  169. package/dist/chunks/{cross-circle-fill.7c07d16a.js → cross-circle-fill.27580c4b.js} +5 -5
  170. package/dist/chunks/{cross-circle-fill.7c07d16a.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
  171. package/dist/chunks/{dropdown-default-textbox.465db4d4.js → dropdown-default-textbox.1cba89ea.js} +11 -11
  172. package/dist/chunks/dropdown-default-textbox.1cba89ea.js.map +1 -0
  173. package/dist/chunks/{dropdown.6461dbe3.js → dropdown.4152cc00.js} +351 -313
  174. package/dist/chunks/dropdown.4152cc00.js.map +1 -0
  175. package/dist/chunks/{field-label.01df3cba.js → field-label.a0c54b7d.js} +5 -5
  176. package/dist/chunks/{field-label.01df3cba.js.map → field-label.a0c54b7d.js.map} +1 -1
  177. package/dist/chunks/{fixed-scroller.42354ccc.js → fixed-scroller.5c90f692.js} +2 -2
  178. package/dist/chunks/{fixed-scroller.42354ccc.js.map → fixed-scroller.5c90f692.js.map} +1 -1
  179. package/dist/chunks/{footer-actions.2cd9079e.js → footer-actions.b14cfca8.js} +3 -3
  180. package/dist/chunks/{footer-actions.2cd9079e.js.map → footer-actions.b14cfca8.js.map} +1 -1
  181. package/dist/chunks/{index.16914bb1.js → index.179d485c.js} +29 -29
  182. package/dist/chunks/{index.16914bb1.js.map → index.179d485c.js.map} +1 -1
  183. package/dist/chunks/index.1e8c900a.js +32 -0
  184. package/dist/chunks/index.1e8c900a.js.map +1 -0
  185. package/dist/chunks/{index.152b2b16.js → index.58282364.js} +3 -3
  186. package/dist/chunks/{index.152b2b16.js.map → index.58282364.js.map} +1 -1
  187. package/dist/chunks/{index.322692c8.js → index.720f0cbf.js} +2 -2
  188. package/dist/chunks/{index.322692c8.js.map → index.720f0cbf.js.map} +1 -1
  189. package/dist/chunks/index.75f0e99f.js +147 -0
  190. package/dist/chunks/index.75f0e99f.js.map +1 -0
  191. package/dist/chunks/{index.6cef7328.js → index.7d2ea1de.js} +2 -2
  192. package/dist/chunks/{index.6cef7328.js.map → index.7d2ea1de.js.map} +1 -1
  193. package/dist/chunks/{index.02da8d63.js → index.aaedd8f9.js} +3 -3
  194. package/dist/chunks/{index.02da8d63.js.map → index.aaedd8f9.js.map} +1 -1
  195. package/dist/chunks/{index.b201e81d.js → index.b0a89960.js} +22 -22
  196. package/dist/chunks/index.b0a89960.js.map +1 -0
  197. package/dist/chunks/{index.d1beb704.js → index.f18f79eb.js} +5 -5
  198. package/dist/chunks/{index.d1beb704.js.map → index.f18f79eb.js.map} +1 -1
  199. package/dist/chunks/{index.f358c4bd.js → index.f2223abb.js} +163 -155
  200. package/dist/chunks/index.f2223abb.js.map +1 -0
  201. package/dist/chunks/{listbox-option-tag.55cd9c16.js → listbox-option-tag.9103c011.js} +3 -3
  202. package/dist/chunks/{listbox-option-tag.55cd9c16.js.map → listbox-option-tag.9103c011.js.map} +1 -1
  203. package/dist/chunks/{listbox.a117e6d4.js → listbox.7cf6d6b4.js} +475 -392
  204. package/dist/chunks/listbox.7cf6d6b4.js.map +1 -0
  205. package/dist/chunks/{loading-button.459b9ab4.js → loading-button.fb025a2e.js} +20 -20
  206. package/dist/chunks/{loading-button.459b9ab4.js.map → loading-button.fb025a2e.js.map} +1 -1
  207. package/dist/chunks/{tooltip.b8929659.js → tooltip.f48beb54.js} +22 -22
  208. package/dist/chunks/tooltip.f48beb54.js.map +1 -0
  209. package/dist/chunks/use-has-slot.fbeb19ec.js.map +1 -1
  210. package/dist/chunks/useCountryItems.6b7985bf.js +29 -0
  211. package/dist/chunks/{useCountryItems.34ac8740.js.map → useCountryItems.6b7985bf.js.map} +1 -1
  212. package/dist/code-snippet.js +10 -12
  213. package/dist/code-snippet.js.map +1 -1
  214. package/dist/country.js +41 -5902
  215. package/dist/country.js.map +1 -1
  216. package/dist/currency.js +1 -1
  217. package/dist/data-grid.js +901 -711
  218. package/dist/data-grid.js.map +1 -1
  219. package/dist/date-picker.js +18 -18
  220. package/dist/date-range-picker.js +2 -2
  221. package/dist/date.js +1 -1
  222. package/dist/divider.js +2 -18
  223. package/dist/divider.js.map +1 -1
  224. package/dist/dropdown.js +41 -41
  225. package/dist/dropdown.js.map +1 -1
  226. package/dist/empty-state.js +18 -18
  227. package/dist/empty-state.js.map +1 -1
  228. package/dist/filter-bar.js +512 -504
  229. package/dist/filter-bar.js.map +1 -1
  230. package/dist/focus-trap.js +1 -1
  231. package/dist/form-layout.js +2 -2
  232. package/dist/form-layout.js.map +1 -1
  233. package/dist/header.js +3 -3
  234. package/dist/index.js +178 -174
  235. package/dist/index.js.map +1 -1
  236. package/dist/info-icon.js +3 -3
  237. package/dist/input-field.js +4 -4
  238. package/dist/internal.js +17 -15
  239. package/dist/link.js +2 -2
  240. package/dist/loading-indicator.js +1 -1
  241. package/dist/menu.js +1 -1
  242. package/dist/modal.js +62 -60
  243. package/dist/modal.js.map +1 -1
  244. package/dist/pagination.js +22 -22
  245. package/dist/pagination.js.map +1 -1
  246. package/dist/payment-method.js +2 -2
  247. package/dist/popover.js +1 -1
  248. package/dist/popper-container.js +1 -1
  249. package/dist/radio-group.js +46 -45
  250. package/dist/radio-group.js.map +1 -1
  251. package/dist/search-bar.js +10 -10
  252. package/dist/secondary-nav.js +98 -0
  253. package/dist/secondary-nav.js.map +1 -0
  254. package/dist/segmented-control.js +3 -3
  255. package/dist/sidepanel.js +5 -5
  256. package/dist/status.js +2 -2
  257. package/dist/stepper.js +3 -3
  258. package/dist/structured-list.js +1 -1
  259. package/dist/summary-grid.js +3 -3
  260. package/dist/tabs.js +3 -3
  261. package/dist/tag.js +3 -3
  262. package/dist/textarea.js +95 -88
  263. package/dist/textarea.js.map +1 -1
  264. package/dist/timeline.js +198 -191
  265. package/dist/timeline.js.map +1 -1
  266. package/dist/toast.js +3 -3
  267. package/dist/toggle.js +1 -1
  268. package/dist/tutorial.js +5 -5
  269. package/dist/typography.js +1 -1
  270. package/dist/web-types.json +822 -409
  271. package/package.json +6 -3
  272. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
  273. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
  274. package/dist/chunks/base-modal.75319f4e.js.map +0 -1
  275. package/dist/chunks/button.7dd8d4de.js +0 -125
  276. package/dist/chunks/button.7dd8d4de.js.map +0 -1
  277. package/dist/chunks/checkbox.65743b08.js +0 -184
  278. package/dist/chunks/checkbox.65743b08.js.map +0 -1
  279. package/dist/chunks/controls-group.dd967ccf.js.map +0 -1
  280. package/dist/chunks/copy.e12b418e.js +0 -103
  281. package/dist/chunks/copy.e12b418e.js.map +0 -1
  282. package/dist/chunks/dropdown-default-textbox.465db4d4.js.map +0 -1
  283. package/dist/chunks/dropdown.6461dbe3.js.map +0 -1
  284. package/dist/chunks/index.0890dc99.js +0 -130
  285. package/dist/chunks/index.0890dc99.js.map +0 -1
  286. package/dist/chunks/index.b201e81d.js.map +0 -1
  287. package/dist/chunks/index.f358c4bd.js.map +0 -1
  288. package/dist/chunks/listbox.a117e6d4.js.map +0 -1
  289. package/dist/chunks/tooltip.b8929659.js.map +0 -1
  290. package/dist/chunks/useCountryItems.34ac8740.js +0 -29
  291. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
  292. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
  293. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
  294. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  295. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
@@ -1,81 +1,86 @@
1
- import { ref as _, watch as V, computed as d, defineComponent as F, toRefs as J, nextTick as L, toRef as C } from "vue";
2
- import { B as de, d as ue } from "./index.b201e81d.js";
3
- import { g as R } from "./unique-id.a2a2b458.js";
4
- import { u as ce } from "./aria-label.ac9651a5.js";
5
- import { u as k } from "./i18n.eb5b985b.js";
6
- import { u as fe } from "./use-form-layout-loading.d03e5d48.js";
7
- import { a as s, B as M, b as P } from "./listbox.a117e6d4.js";
8
- import { B as O, a as pe } from "./keyboard-navigation.ca47dfa8.js";
9
- import { a as A } from "./index.152b2b16.js";
10
- import { a as j } from "./index.d1beb704.js";
11
- import { n as B } from "./_plugin-vue2_normalizer.71e2aa87.js";
12
- import { D as ve, a as $, b as N, c as me } from "./dropdown-default-textbox.465db4d4.js";
13
- import { E as be, F as _e } from "./field-label.01df3cba.js";
14
- import { B as ye } from "./directive.0408e565.js";
1
+ import { ref as y, watch as Z, computed as f, defineComponent as K, toRefs as Y, nextTick as C, toRef as O } from "vue";
2
+ import { B as pe, d as me } from "./index.b0a89960.js";
3
+ import { D as be, a as D, b as N, c as ye } from "./dropdown-default-textbox.1cba89ea.js";
4
+ import { n as I } from "./_plugin-vue2_normalizer.71e2aa87.js";
5
+ import { g as B } from "./unique-id.a2a2b458.js";
6
+ import { u as _e } from "./aria-label.ac9651a5.js";
7
+ import { u as W } from "./i18n.eb5b985b.js";
8
+ import { u as ge } from "./use-form-layout-loading.d03e5d48.js";
9
+ import { a as i, B as k, b as F, u as xe } from "./listbox.7cf6d6b4.js";
10
+ import { B as L, a as we } from "./keyboard-navigation.ca47dfa8.js";
11
+ import { u as he } from "./use-has-slot.fbeb19ec.js";
12
+ import { a as P } from "./index.58282364.js";
13
+ import { a as q } from "./index.f18f79eb.js";
14
+ import { B as G } from "./directive.0408e565.js";
15
+ import { E as Se, F as Oe } from "./field-label.a0c54b7d.js";
15
16
  import "../assets/dropdown.css";
16
17
  var E = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(E || {});
17
- const ge = {
18
+ const Le = {
18
19
  "en-US": {
19
20
  apply: "Apply",
20
21
  cancel: "Cancel",
21
22
  noOptionsMatchThisSearch: "No options match this search"
22
23
  }
23
- }, xe = (t, e, n) => {
24
- const l = _(t.value), { t: o } = k();
25
- V(t, () => {
26
- l.value = t.value;
24
+ }, Ce = (t, e, n, l) => {
25
+ const a = y(t.value), { t: o } = W();
26
+ Z(t, () => {
27
+ a.value = t.value;
27
28
  });
28
- const a = d(
29
- () => JSON.stringify(l.value) === JSON.stringify(t.value)
30
- ), r = () => {
31
- n(s.SELECT, l.value), n(s.CLOSE_DROPDOWN);
32
- }, u = () => {
33
- l.value = t.value, n(s.CLOSE_DROPDOWN);
34
- }, i = d(() => [
29
+ const d = f(
30
+ () => JSON.stringify(a.value) === JSON.stringify(t.value)
31
+ ), u = () => {
32
+ l(i.SELECT, a.value), l(i.CLOSE_DROPDOWN);
33
+ }, s = () => {
34
+ a.value = t.value, l(i.CLOSE_DROPDOWN);
35
+ }, p = () => {
36
+ n.value && e.value && (a.value = t.value);
37
+ }, x = f(() => [
35
38
  {
36
39
  title: o("apply"),
37
- event: r,
38
- disabled: a.value
40
+ event: u,
41
+ disabled: d.value
39
42
  },
40
43
  {
41
44
  title: o("cancel"),
42
- event: u
45
+ event: s
43
46
  }
44
- ]), p = (v) => {
45
- l.value = v, e.value || n(s.SELECT, v);
46
- }, w = (v) => {
47
- p(v), n(s.TAB);
48
- }, y = (v) => {
49
- p(v), n(s.ENTER);
50
- }, x = (v) => {
51
- p(v), n(s.SPACE);
52
- }, g = () => {
53
- u(), n(s.ESCAPE);
47
+ ]), m = (r) => {
48
+ a.value = r, e.value || l(i.SELECT, r);
49
+ }, g = (r) => {
50
+ m(r), l(i.TAB);
51
+ }, _ = (r) => {
52
+ m(r), l(i.ENTER);
53
+ }, w = (r) => {
54
+ m(r), l(i.SPACE);
54
55
  }, h = () => {
55
- n(s.SHOW_MORE);
56
- }, S = {
57
- [s.SELECT]: p,
58
- [s.SHOW_MORE]: h,
59
- [s.TAB]: w,
60
- [s.SPACE]: x,
61
- [s.ENTER]: y
56
+ s(), l(i.ESCAPE);
57
+ }, S = () => {
58
+ l(i.SHOW_MORE);
59
+ }, $ = {
60
+ [i.SELECT]: m,
61
+ [i.SHOW_MORE]: S,
62
+ [i.TAB]: g,
63
+ [i.SPACE]: w,
64
+ [i.ENTER]: _
62
65
  };
63
66
  return {
64
67
  // Values
65
- actions: i,
66
- internalSelectedValue: l,
68
+ actions: x,
69
+ internalSelectedValue: a,
67
70
  // Methods
68
- listeners: S,
69
- onEscapeKey: g
71
+ listeners: $,
72
+ onEscapeKey: h,
73
+ onOutsideDropdownClick: p
70
74
  };
71
- }, we = F({
72
- i18n: { messages: ge },
75
+ }, Ee = K({
76
+ i18n: { messages: Le },
73
77
  name: "bento-dropdown-options-container",
74
78
  components: {
75
- BentoListbox: M,
76
- PopperContainer: A,
77
- BentoPopover: j
79
+ BentoListbox: k,
80
+ PopperContainer: P,
81
+ BentoPopover: q
78
82
  },
83
+ directives: { BentoClickOutsideDirective: G },
79
84
  props: {
80
85
  /**
81
86
  * Defines a string value that labels an interactive element.
@@ -142,13 +147,17 @@ const ge = {
142
147
  */
143
148
  lazyLoadType: {
144
149
  type: String,
145
- default: P.AUTOMATIC,
146
- validator: (t) => Object.values(P).includes(t)
150
+ default: F.AUTOMATIC,
151
+ validator: (t) => Object.values(F).includes(t)
147
152
  },
148
153
  /**
149
154
  * If enabled, the user will be able to select multiple items.
150
155
  */
151
156
  multiple: { type: Boolean, default: !1 },
157
+ /**
158
+ * If enabled, dropdown will display non-selectable, static categories
159
+ */
160
+ staticCategories: { type: Boolean, default: !1 },
152
161
  /**
153
162
  * Indicates if the dropdown is open so that
154
163
  * the container can be displayed.
@@ -169,12 +178,12 @@ const ge = {
169
178
  *
170
179
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
171
180
  */
172
- searching: M.props.searching,
181
+ searching: k.props.searching,
173
182
  /**
174
183
  * Reference to the DOM element or Vue component for positioning
175
184
  * the Dropdown container.
176
185
  */
177
- targetElement: { type: A.props.targetElement.type, required: !0 },
186
+ targetElement: { type: P.props.targetElement.type, required: !0 },
178
187
  /**
179
188
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
180
189
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -185,43 +194,39 @@ const ge = {
185
194
  }
186
195
  },
187
196
  emits: [
188
- s.CLOSE_DROPDOWN,
189
- s.SHOW_MORE,
190
- s.SELECT,
191
- s.ENTER,
192
- s.ESCAPE,
193
- s.SPACE,
194
- s.TAB
197
+ i.CLOSE_DROPDOWN,
198
+ i.SHOW_MORE,
199
+ i.SELECT,
200
+ i.ENTER,
201
+ i.ESCAPE,
202
+ i.SPACE,
203
+ i.TAB
195
204
  ],
196
205
  setup(t, { emit: e, slots: n }) {
197
- const { selectedValue: l, multiple: o } = J(t), a = _(null), { t: r } = k(), u = d(() => t.open && !t.disabled), i = d(() => r("noOptionsMatchThisSearch")), p = d(() => ({
206
+ const { selectedValue: l, multiple: a } = Y(t), o = y(null), { t: d } = W(), u = f(() => t.open && !t.disabled), s = f(() => d("noOptionsMatchThisSearch")), p = f(() => ({
198
207
  "b-dropdown-options-container--single": !(t != null && t.multiple)
199
- })), w = d(() => ({
208
+ })), x = f(() => ({
200
209
  "b-dropdown-options-container__listbox--small": t.inputSize === E.SMALL,
201
210
  "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
202
- })), { actions: y, internalSelectedValue: x, listeners: g, onEscapeKey: h } = xe(
203
- l,
204
- o,
205
- e
206
- ), S = d(
207
- () => t != null && t.multiple ? j : A
208
- ), v = d(() => {
209
- var f;
210
- const D = {
211
- "min-width": `${(f = t == null ? void 0 : t.targetElement) == null ? void 0 : f.clientWidth}px`,
211
+ })), { actions: m, internalSelectedValue: g, listeners: _, onEscapeKey: w, onOutsideDropdownClick: h } = Ce(l, a, u, e), S = f(
212
+ () => t != null && t.multiple ? q : P
213
+ ), $ = f(() => {
214
+ var c;
215
+ const r = {
216
+ "min-width": `${(c = t == null ? void 0 : t.targetElement) == null ? void 0 : c.clientWidth}px`,
212
217
  "max-width": "min(500px, 95%)"
213
218
  };
214
219
  return t != null && t.multiple ? {
215
220
  actionsLayout: "space-between",
216
- actions: y.value,
221
+ actions: m.value,
217
222
  divider: !0,
218
223
  fallbackPosition: ["top-start"],
219
- id: R(`dropdown-options-${t.id}`),
224
+ id: B(`dropdown-options-${t.id}`),
220
225
  open: t.open,
221
226
  position: "bottom-start",
222
227
  style: {
223
228
  width: "auto",
224
- ...D
229
+ ...r
225
230
  },
226
231
  targetElement: t.targetElement
227
232
  } : {
@@ -230,7 +235,7 @@ const ge = {
230
235
  position: "bottom-start",
231
236
  style: {
232
237
  display: u.value ? "block" : "none",
233
- ...D
238
+ ...r
234
239
  },
235
240
  targetElement: t.targetElement
236
241
  };
@@ -239,90 +244,91 @@ const ge = {
239
244
  // Values
240
245
  isDropdownOpen: u,
241
246
  conditionalClasses: p,
242
- conditionalListboxClasses: w,
243
- noResultsMessage: i,
247
+ conditionalListboxClasses: x,
248
+ noResultsMessage: s,
244
249
  slots: n,
245
- actions: y,
246
- internalSelectedValue: x,
250
+ actions: m,
251
+ internalSelectedValue: g,
247
252
  // Component wrapper
248
253
  popperContainerOrPopoverComponent: S,
249
- popperContainerOrPopoverProps: v,
254
+ popperContainerOrPopoverProps: $,
250
255
  // Refs
251
- dropdownOptionsListboxRef: a,
256
+ dropdownOptionsListboxRef: o,
252
257
  // Events
253
- onEscapeKey: h,
254
- listeners: g
258
+ onEscapeKey: w,
259
+ onOutsideDropdownClick: h,
260
+ listeners: _
255
261
  };
256
262
  }
257
263
  });
258
- var he = function() {
264
+ var $e = function() {
259
265
  var e = this, n = e._self._c;
260
266
  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) {
261
267
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
262
- } } }, [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) {
263
- return { key: o, fn: function(a) {
264
- return [e._t(o, null, null, a)];
268
+ } } }, [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, "static-categories": e.staticCategories, "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, a) {
269
+ return { key: a, fn: function(o) {
270
+ return [e._t(a, null, null, o)];
265
271
  } };
266
272
  })], null, !0) }, e.listeners))], 1)]);
267
- }, Se = [], Oe = /* @__PURE__ */ B(
268
- we,
269
- he,
270
- Se,
273
+ }, De = [], Re = /* @__PURE__ */ I(
274
+ Ee,
275
+ $e,
276
+ De,
271
277
  !1,
272
278
  null,
273
- "c9901f59",
279
+ "9f64e5d1",
274
280
  null,
275
281
  null
276
282
  );
277
- const Le = Oe.exports;
278
- let H = 0;
279
- const Ee = {
283
+ const Be = Re.exports;
284
+ let J = 0;
285
+ const Ie = {
280
286
  beforeCreate() {
281
- this.uuid = H.toString(), H += 1;
287
+ this.uuid = J.toString(), J += 1;
282
288
  }
283
289
  };
284
- var Ce = function() {
290
+ var Te = function() {
285
291
  var e = this, n = e._self._c;
286
292
  return n("svg", e._b({ staticClass: "ui-assets-icons-16", 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", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
287
- }, $e = [], De = /* @__PURE__ */ B(
288
- Ee,
289
- Ce,
290
- $e,
293
+ }, Ae = [], Me = /* @__PURE__ */ I(
294
+ Ie,
295
+ Te,
296
+ Ae,
291
297
  !1,
292
298
  null,
293
299
  null,
294
300
  null,
295
301
  null
296
302
  );
297
- const Re = De.exports;
298
- let q = 0;
299
- const Be = {
303
+ const Ne = Me.exports;
304
+ let V = 0;
305
+ const Pe = {
300
306
  beforeCreate() {
301
- this.uuid = q.toString(), q += 1;
307
+ this.uuid = V.toString(), V += 1;
302
308
  }
303
309
  };
304
- var Ie = function() {
310
+ var ke = function() {
305
311
  var e = this, n = e._self._c;
306
312
  return n("svg", e._b({ staticClass: "ui-assets-icons-16", 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", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
307
- }, Te = [], Ae = /* @__PURE__ */ B(
308
- Be,
309
- Ie,
310
- Te,
313
+ }, Fe = [], Ke = /* @__PURE__ */ I(
314
+ Pe,
315
+ ke,
316
+ Fe,
311
317
  !1,
312
318
  null,
313
319
  null,
314
320
  null,
315
321
  null
316
322
  );
317
- const Ne = Ae.exports, Me = F({
323
+ const We = Ke.exports, ze = K({
318
324
  name: "dropdown-small-textbox",
319
- components: { ChevronDownSmallIcon: Re, ChevronUpSmallIcon: Ne, DropdownBaseTextbox: ve },
325
+ components: { ChevronDownSmallIcon: Ne, ChevronUpSmallIcon: We, DropdownBaseTextbox: be },
320
326
  inheritAttrs: !1,
321
327
  props: {
322
328
  /**
323
329
  * The number of additional items that have been selected in the dropdown.
324
330
  */
325
- additionalItemsSelected: { type: Number, default: 0 },
331
+ additionalItemsSelected: { type: [Number, String], default: 0 },
326
332
  /**
327
333
  * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
328
334
  */
@@ -388,169 +394,180 @@ const Ne = Ae.exports, Me = F({
388
394
  */
389
395
  value: { type: String, default: "" }
390
396
  },
391
- emits: [$.OPEN, $.CLOSE],
397
+ emits: [D.OPEN, D.CLOSE],
392
398
  setup(t, { emit: e }) {
393
- const n = d(() => ({
399
+ const n = f(() => ({
394
400
  [`b-dropdown-small-textbox--${N.DISABLED}`]: t.disabled,
395
401
  [`b-dropdown-small-textbox--${N.READONLY}`]: t.readonly,
396
402
  [`b-dropdown-small-textbox--${N.OPENED}`]: t.open
397
- })), l = d(() => t.open && !t.disabled && !t.readonly), o = () => {
398
- e($.OPEN);
399
- }, a = () => {
400
- e($.CLOSE);
401
- }, r = {
402
- [$.OPEN]: o,
403
- [$.CLOSE]: a
403
+ })), l = f(() => t.open && !t.disabled && !t.readonly), a = () => {
404
+ e(D.OPEN);
405
+ }, o = () => {
406
+ e(D.CLOSE);
407
+ }, d = {
408
+ [D.OPEN]: a,
409
+ [D.CLOSE]: o
404
410
  };
405
411
  return {
406
412
  // Values
407
413
  conditionalClasses: n,
408
414
  isDropdownOpen: l,
409
415
  // Events
410
- listeners: r
416
+ listeners: d
411
417
  };
412
418
  }
413
419
  });
414
- var Pe = function() {
420
+ var Ue = function() {
415
421
  var e = this, n = e._self._c;
416
422
  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() {
417
423
  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)];
418
424
  }, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), e.listeners))], 1);
419
- }, Fe = [], ke = /* @__PURE__ */ B(
420
- Me,
421
- Pe,
422
- Fe,
425
+ }, je = [], He = /* @__PURE__ */ I(
426
+ ze,
427
+ Ue,
428
+ je,
423
429
  !1,
424
430
  null,
425
- "d9e6eff4",
431
+ "bc324b09",
426
432
  null,
427
433
  null
428
434
  );
429
- const Ke = ke.exports, We = ({ items: t, placeholder: e, selectedValue: n }) => {
430
- const l = t.value.find(({ value: o }) => o === n.value);
431
- return (l == null ? void 0 : l.label) || e.value || null;
432
- }, ze = ({ selectedValues: t, items: e, placeholder: n }) => {
435
+ const qe = He.exports, Je = ({ items: t, placeholder: e, selectedValue: n, staticCategories: l }) => {
436
+ let a;
437
+ if (l) {
438
+ const o = t.value.find((d) => d.items.some((u) => u.value === n.value));
439
+ a = o == null ? void 0 : o.items.find((d) => d.value === n.value);
440
+ } else
441
+ a = t.value.find(({ value: o }) => o === n.value);
442
+ return (a == null ? void 0 : a.label) || e.value || null;
443
+ }, Ve = ({ selectedValues: t, items: e, placeholder: n }) => {
433
444
  var l;
434
- return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((o) => {
435
- const { label: a } = e.value.find(({ value: r }) => r === o);
436
- return a;
445
+ return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((a) => {
446
+ const { label: o } = e.value.find(({ value: d }) => d === a);
447
+ return o;
437
448
  }).join(", ");
438
- }, Ue = ({ selectedValues: t, items: e, placeholder: n }) => {
449
+ }, Ze = ({ selectedValues: t, items: e, placeholder: n }) => {
439
450
  var l;
440
- return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((o, a) => {
441
- if (a.items) {
442
- const r = a.items.filter(
443
- (i) => t.value.includes(i.value)
451
+ return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((a, o) => {
452
+ if (o.items) {
453
+ const d = o.items.filter(
454
+ (s) => t.value.includes(s.value)
444
455
  );
445
- r.length === a.items.length ? o.push(a.label) : r.forEach(({ label: i }) => o.push(i));
456
+ d.length === o.items.length ? a.push(o.label) : d.forEach(({ label: s }) => a.push(s));
446
457
  }
447
- return t.value.includes(a.value) && o.push(a.label), o;
458
+ return t.value.includes(o.value) && a.push(o.label), a;
448
459
  }, []).join(", ");
449
- }, je = ({ items: t, placeholder: e, value: n, multiple: l }) => {
450
- const o = d(() => t.value.find((r) => {
451
- var u;
452
- return (u = r.items) == null ? void 0 : u.length;
460
+ }, Ye = ({ items: t, placeholder: e, value: n, multiple: l, staticCategories: a }) => {
461
+ const o = f(() => t.value.find((u) => {
462
+ var s;
463
+ return (s = u.items) == null ? void 0 : s.length;
464
+ }));
465
+ return f(() => l.value ? o.value ? Ze({ selectedValues: n, placeholder: e, items: t }) : Ve({ selectedValues: n, items: t, placeholder: e }) : Je({
466
+ items: t,
467
+ placeholder: e,
468
+ selectedValue: n,
469
+ staticCategories: a.value
453
470
  }));
454
- return d(() => l.value ? o.value ? Ue({ selectedValues: n, placeholder: e, items: t }) : ze({ selectedValues: n, items: t, placeholder: e }) : We({ items: t, placeholder: e, selectedValue: n }));
455
- }, Z = (t) => {
471
+ }, Q = (t) => {
456
472
  var e;
457
473
  (e = t.value.$children) == null || e[0].$refs.textbox.focus();
458
- }, He = ({
474
+ }, Ge = ({
459
475
  inputContainerRef: t,
460
476
  optionsContainerRef: e,
461
477
  selectedValueIndex: n,
462
478
  isDropdownOpen: l,
463
- isDynamicFltering: o,
464
- items: a,
465
- isMultiple: r
466
- }, u, i, p) => {
467
- const w = ({ detail: f }) => {
468
- f.preventDefault(), l.value || (i(), L(() => {
479
+ isDynamicFltering: a,
480
+ items: o,
481
+ isMultiple: d
482
+ }, u, s, p) => {
483
+ const x = ({ detail: r }) => {
484
+ r.preventDefault(), l.value || (s(), C(() => {
469
485
  var c, b;
470
- r ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
486
+ d ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
471
487
  }));
472
- }, y = ({ detail: f }) => {
473
- f.preventDefault(), l.value || (i(), L(() => {
488
+ }, m = ({ detail: r }) => {
489
+ r.preventDefault(), l.value || (s(), C(() => {
474
490
  var c;
475
491
  (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
476
492
  }));
477
- }, x = () => {
478
- l.value || (i(), L(() => {
479
- var f, c;
480
- if (r) {
493
+ }, g = () => {
494
+ l.value || (s(), C(() => {
495
+ var r, c;
496
+ if (d) {
481
497
  const b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
482
- (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[b.length - 1].$children[a.length - 1].$el.focus();
498
+ (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[b.length - 1].$children[o.length - 1].$el.focus();
483
499
  } else
484
- (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[a.length - 1].$el.focus();
500
+ (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[o.length - 1].$el.focus();
485
501
  }));
486
- }, g = () => {
487
- l.value && (p(), Z(t));
488
- }, h = () => {
489
- l.value || i(), L(() => {
490
- var f;
491
- (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
502
+ }, _ = () => {
503
+ l.value && (p(), Q(t));
504
+ }, w = () => {
505
+ l.value || s(), C(() => {
506
+ var r;
507
+ (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus();
492
508
  });
493
- }, S = ({ detail: f }) => {
494
- f.preventDefault(), u(), l.value && L(() => {
509
+ }, h = ({ detail: r }) => {
510
+ r.preventDefault(), u(), l.value && C(() => {
495
511
  var c, b;
496
- r ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
512
+ d ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
497
513
  });
498
- }, v = () => {
499
- u(), l.value && L(() => {
500
- var f, c;
501
- r ? (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
514
+ }, S = () => {
515
+ u(), l.value && C(() => {
516
+ var r, c;
517
+ d ? (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus() : (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
502
518
  });
503
519
  };
504
- return d(() => ({
505
- ...o.value ? {} : { [O.SPACE]: S },
506
- [O.ENTER]: v,
507
- [O.ARROW_DOWN]: w,
508
- [O.ARROW_UP]: y,
509
- [O.END]: x,
510
- [O.ESCAPE]: g,
511
- [O.HOME]: h
520
+ return f(() => ({
521
+ ...a.value ? {} : { [L.SPACE]: h },
522
+ [L.ENTER]: S,
523
+ [L.ARROW_DOWN]: x,
524
+ [L.ARROW_UP]: m,
525
+ [L.END]: g,
526
+ [L.ESCAPE]: _,
527
+ [L.HOME]: w
512
528
  }));
513
- }, qe = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
529
+ }, Qe = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
514
530
  const l = () => {
515
- e.value && n(), L(() => {
516
- Z(t);
531
+ e.value && n(), C(() => {
532
+ Q(t);
517
533
  });
518
534
  };
519
535
  return {
520
- [s.ENTER]: l,
521
- [s.ESCAPE]: l,
522
- [s.TAB]: l,
523
- [s.SPACE]: l
536
+ [i.ENTER]: l,
537
+ [i.ESCAPE]: l,
538
+ [i.TAB]: l,
539
+ [i.SPACE]: l
524
540
  };
525
541
  };
526
- function Ve(t, e, n) {
527
- const l = _(t), o = _(e), a = (u, i = []) => i.flatMap((p) => p.label.toLocaleLowerCase().includes(u) ? [p, ...a(u, p.items)] : p.items ? [...a(u, p.items)] : []);
528
- return V(l, () => {
542
+ function Xe(t, e, n) {
543
+ const l = y(t), a = y(e), o = (u, s = []) => s.flatMap((p) => p.label.toLocaleLowerCase().includes(u) ? [p, ...o(u, p.items)] : p.items ? [...o(u, p.items)] : []);
544
+ return Z(l, () => {
529
545
  n !== void 0 && n(l.value);
530
- }), d(() => {
546
+ }), f(() => {
531
547
  if (!l.value || n !== void 0)
532
- return o.value;
548
+ return a.value;
533
549
  const u = l.value.toLocaleLowerCase();
534
- return a(u, o.value);
550
+ return o(u, a.value);
535
551
  });
536
552
  }
537
- const Je = {
553
+ const et = {
538
554
  "en-US": {
555
+ all: "All",
539
556
  clearSearch: "Clear filter",
540
557
  ariaLabelFallback: "Dropdown"
541
558
  }
542
- }, Ze = F({
543
- i18n: { messages: Je },
559
+ }, tt = K({
560
+ i18n: { messages: et },
544
561
  name: "b-dropdown",
545
562
  components: {
546
- BentoDropdownOptionsContainer: Le,
547
- BentoTypography: de,
548
- DropdownInputDefault: me,
549
- DropdownInputSmall: Ke,
550
- ErrorMessage: be,
551
- FieldLabel: _e
563
+ BentoDropdownOptionsContainer: Be,
564
+ BentoTypography: pe,
565
+ DropdownInputDefault: ye,
566
+ DropdownInputSmall: qe,
567
+ ErrorMessage: Se,
568
+ FieldLabel: Oe
552
569
  },
553
- directives: { BentoClickOutsideDirective: ye, BentoKeyboardNavigationDirective: pe },
570
+ directives: { BentoClickOutsideDirective: G, BentoKeyboardNavigationDirective: we },
554
571
  props: {
555
572
  /**
556
573
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -644,8 +661,8 @@ const Je = {
644
661
  */
645
662
  lazyLoadType: {
646
663
  type: String,
647
- default: M.props.lazyLoadType.default,
648
- validator: (t) => Object.values(P).includes(t)
664
+ default: k.props.lazyLoadType.default,
665
+ validator: (t) => Object.values(F).includes(t)
649
666
  },
650
667
  /*
651
668
  * If enabled, the user will be able to select multiple items.
@@ -680,6 +697,10 @@ const Je = {
680
697
  * Adds a info icon next to the label to display the passed tooltip message.
681
698
  */
682
699
  tooltipText: { type: String, default: null },
700
+ /**
701
+ * If enabled, dropdown will display non-selectable, static categories
702
+ */
703
+ staticCategories: { type: Boolean, default: !1 },
683
704
  /**
684
705
  * The `input` value.
685
706
  * Providing an empty string will select no options.
@@ -706,73 +727,86 @@ const Je = {
706
727
  default: void 0
707
728
  }
708
729
  },
709
- emits: ["input", s.SHOW_MORE],
730
+ emits: ["input", i.SHOW_MORE],
710
731
  setup(t, { attrs: e, emit: n, slots: l }) {
711
- var U;
712
- const { t: o } = k(), a = _(null), r = _(null), u = _(null), i = _(!1), p = R("bento-dropdown-options-container"), w = R("dropdown-label"), y = R("dropdown-description"), x = R("dropdown-error"), { isReadOnly: g } = fe(C(t, "readonly")), h = _(e["aria-label"]), { ariaLabel: S } = J(t), v = ce({
713
- ariaLabel: h.value,
732
+ var H;
733
+ const { t: a } = W(), o = y(null), d = y(null), u = y(null), s = y(!1), p = B("bento-dropdown-options-container"), x = B("dropdown-label"), m = B("dropdown-description"), g = B("dropdown-error"), { isReadOnly: _ } = ge(O(t, "readonly")), w = y(e["aria-label"]), { ariaLabel: h } = Y(t), S = _e({
734
+ ariaLabel: w.value,
714
735
  // TODO: take this line away when the aria-label props is removed
715
- label: S,
716
- defaultFallback: o("ariaLabelFallback")
717
- }), D = d(() => ({
736
+ label: h,
737
+ defaultFallback: a("ariaLabelFallback")
738
+ }), $ = f(() => ({
718
739
  "b-dropdown--condensed": t.condensed
719
- })), f = d(() => ({
740
+ })), r = f(() => ({
720
741
  "b-dropdown__description--error": !!t.errorMessage
721
- })), c = _(""), b = C(t, "items"), Y = Ve(c, b, (U = t == null ? void 0 : t.search) == null ? void 0 : U.searchEvent), I = d(() => t.dynamicFiltering && !!c.value), G = je({
742
+ })), c = y(""), b = O(t, "items"), X = Xe(c, b, (H = t == null ? void 0 : t.search) == null ? void 0 : H.searchEvent), A = f(() => t.dynamicFiltering && !!c.value), ee = Ye({
722
743
  items: b,
723
- multiple: C(t, "multiple"),
724
- placeholder: C(t, "placeholder"),
725
- value: C(t, "value")
726
- }), Q = d(() => t.size === E.DEFAULT), X = d(
727
- () => t != null && t.multiple ? t.items.filter(
728
- ({ value: m }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(m)
729
- ) : t.items.find(({ value: m }) => m === (t == null ? void 0 : t.value))
730
- ), ee = d(() => {
731
- const m = t.items.findIndex(({ value: re }) => t.value === re);
732
- return m > 0 ? m : 0;
733
- }), te = d(() => {
734
- var m;
735
- return t.multiple ? (m = t == null ? void 0 : t.value) == null ? void 0 : m.length : null;
736
- }), ne = d(
737
- () => `${t.description ? y : ""} ${t.errorMessage ? x : ""}`.trim() || null
738
- ), le = () => {
739
- g.value || (i.value = !0);
740
- }, T = () => {
741
- i.value = !1;
742
- }, K = () => {
743
- g.value || (i.value = !i.value, I.value && (c.value = ""));
744
- }, ae = () => {
745
- I.value && (c.value = ""), i.value && (i.value = !1);
746
- }, W = (m) => {
747
- t.multiple || (c.value = "", i.value = !1), n("input", m);
744
+ staticCategories: O(t, "staticCategories"),
745
+ multiple: O(t, "multiple"),
746
+ placeholder: O(t, "placeholder"),
747
+ value: O(t, "value")
748
+ }), te = f(() => t.size === E.DEFAULT), ne = f(() => {
749
+ if (t != null && t.multiple)
750
+ return t.items.filter(
751
+ ({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
752
+ );
753
+ if (!t.multiple && t.staticCategories) {
754
+ const v = t.items.find(
755
+ (T) => T.items.some((ve) => ve.value === t.value)
756
+ );
757
+ return v ? v.items.find((T) => T.value === t.value) : null;
758
+ }
759
+ return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
760
+ }), le = f(() => {
761
+ const v = t.items.findIndex(({ value: R }) => t.value === R);
762
+ return v > 0 ? v : 0;
763
+ }), { isMultiLevelSelect: ae, flattenedItemsList: oe } = xe(b), se = f(() => {
764
+ var v;
765
+ if (t.multiple) {
766
+ const R = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length;
767
+ return (ae.value ? oe.value.length : b.value.length) === R ? a("all") : R;
768
+ }
769
+ return null;
770
+ }), ie = f(
771
+ () => `${t.description ? m : ""} ${t.errorMessage ? g : ""}`.trim() || null
772
+ ), re = () => {
773
+ _.value || (s.value = !0);
774
+ }, M = () => {
775
+ s.value = !1;
748
776
  }, z = () => {
749
- n(s.SHOW_MORE);
750
- }, oe = He(
777
+ _.value || (s.value = !s.value, A.value && (c.value = ""));
778
+ }, de = () => {
779
+ A.value && (c.value = ""), s.value && (s.value = !1, u.value.onOutsideDropdownClick());
780
+ }, U = (v) => {
781
+ t.multiple || (c.value = "", s.value = !1), n("input", v);
782
+ }, j = () => {
783
+ n(i.SHOW_MORE);
784
+ }, ue = Ge(
751
785
  {
752
- inputContainerRef: a,
786
+ inputContainerRef: o,
753
787
  optionsContainerRef: u,
754
- selectedValueIndex: ee,
755
- isDropdownOpen: i,
756
- isDynamicFltering: C(t, "dynamicFiltering"),
788
+ selectedValueIndex: le,
789
+ isDropdownOpen: s,
790
+ isDynamicFltering: O(t, "dynamicFiltering"),
757
791
  items: t.items,
758
792
  isMultiple: t.multiple
759
793
  },
760
- K,
761
- le,
762
- T
763
- ), se = qe(
794
+ z,
795
+ re,
796
+ M
797
+ ), ce = Qe(
764
798
  {
765
- inputContainerRef: a,
766
- isDropdownOpen: i
799
+ inputContainerRef: o,
800
+ isDropdownOpen: s
767
801
  },
768
- T
769
- ), ie = {
770
- [s.CLOSE_DROPDOWN]: T,
771
- [s.SELECT]: W,
772
- [s.SHOW_MORE]: z,
773
- ...se
802
+ M
803
+ ), fe = {
804
+ [i.CLOSE_DROPDOWN]: M,
805
+ [i.SELECT]: U,
806
+ [i.SHOW_MORE]: j,
807
+ ...ce
774
808
  };
775
- return t.error && ue(
809
+ return t.error && me(
776
810
  'BentoDropdown "error" property',
777
811
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
778
812
  Having the field as "undefined" will hide/remove the error.
@@ -780,70 +814,74 @@ const Je = {
780
814
  "2.0.0"
781
815
  ), {
782
816
  // Values
783
- conditionalClasses: D,
784
- computedAriaLabel: v,
785
- additionalItemsSelected: te,
786
- idDefaultSize: Q,
787
- isDropdownOpen: i,
788
- displayValue: G,
817
+ conditionalClasses: $,
818
+ computedAriaLabel: S,
819
+ additionalItemsSelected: se,
820
+ idDefaultSize: te,
821
+ isDropdownOpen: s,
822
+ displayValue: ee,
789
823
  dropdownOptionsContainerId: p,
790
- filteredItems: Y,
791
- isSearching: I,
792
- isReadOnly: g,
824
+ filteredItems: X,
825
+ isSearching: A,
826
+ isReadOnly: _,
793
827
  searchTerm: c,
794
- labelId: w,
795
- descriptionId: y,
796
- errorId: x,
797
- ariaDescribedBy: ne,
798
- selectedValueItem: X,
828
+ labelId: x,
829
+ descriptionId: m,
830
+ errorId: g,
831
+ ariaDescribedBy: ie,
832
+ selectedValueItem: ne,
799
833
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
800
834
  // The setup method and the "useSlots" composible define
801
835
  // { slots } as a proxy of $scopedSlots and $scopes in their
802
836
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
803
837
  slots: l,
804
- descriptionConditionalClasses: f,
838
+ descriptionConditionalClasses: r,
839
+ // Methods
840
+ hasSlot: he(l),
805
841
  // Refs
806
- inputContainerRef: a,
807
- inputContainerRefWrapper: r,
842
+ inputContainerRef: o,
843
+ inputContainerRefWrapper: d,
808
844
  optionsContainerRef: u,
809
845
  // Events
810
- closeOpenedDropdown: ae,
811
- toggleDropdown: K,
812
- onOptionSelected: W,
813
- emitShowMoreEvent: z,
814
- textboxKeyboardNavigationListeners: oe,
815
- listboxListeners: ie
846
+ clickOutsideDropdown: de,
847
+ toggleDropdown: z,
848
+ onOptionSelected: U,
849
+ emitShowMoreEvent: j,
850
+ textboxKeyboardNavigationListeners: ue,
851
+ listboxListeners: fe
816
852
  };
817
853
  }
818
854
  });
819
- var Ye = function() {
855
+ var nt = function() {
820
856
  var l;
821
857
  var e = this, n = e._self._c;
822
- 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", class: e.conditionalClasses }, [e.label ? n("field-label", { attrs: { id: e.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : 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: { condensed: e.condensed, 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) {
823
- e.searchTerm = o;
824
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(o, a) {
825
- return { key: a, fn: function(r) {
826
- return [e._t(a, null, null, r)];
858
+ return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? n("field-label", { attrs: { id: e.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : 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: { condensed: e.condensed, 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) {
859
+ e.searchTerm = a;
860
+ }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
861
+ return { key: o, fn: function(d) {
862
+ return [e._t(o, null, null, d)];
827
863
  } };
828
- })], 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) {
829
- return { key: a, fn: function(r) {
830
- return [e._t(a, null, null, r)];
864
+ })], 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, "static-categories": e.staticCategories, 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(a, o) {
865
+ return { key: o, fn: function(d) {
866
+ return [e._t(o, null, null, d)];
831
867
  } };
832
- })], 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);
833
- }, Ge = [], Qe = /* @__PURE__ */ B(
834
- Ze,
835
- Ye,
836
- Ge,
868
+ })], 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 || e.hasSlot("description") ? n("bento-typography", { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._t("description", function() {
869
+ return [e._v(" " + e._s(e.description) + " ")];
870
+ })], 2) : e._e()], 1);
871
+ }, lt = [], at = /* @__PURE__ */ I(
872
+ tt,
873
+ nt,
874
+ lt,
837
875
  !1,
838
876
  null,
839
- "16755398",
877
+ "df383e41",
840
878
  null,
841
879
  null
842
880
  );
843
- const pt = Qe.exports;
881
+ const xt = at.exports;
844
882
  export {
845
- pt as B,
883
+ xt as B,
846
884
  E as a,
847
- Ve as u
885
+ Xe as u
848
886
  };
849
- //# sourceMappingURL=dropdown.6461dbe3.js.map
887
+ //# sourceMappingURL=dropdown.4152cc00.js.map