@adyen/bento-vue3 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 (292) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
  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 +21 -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 +15 -5
  29. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  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/composables/useDropdownOptionsListbox.d.ts +2 -1
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +16 -6
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  36. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2355 -6
  38. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  40. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  41. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  42. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  43. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  44. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  45. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  46. 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
  47. 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 +51 -0
  48. 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
  49. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  50. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  51. 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
  52. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  53. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  54. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
  56. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  57. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  59. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  60. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  61. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
  62. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  63. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  64. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  66. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  67. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +21 -0
  68. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  69. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  70. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  71. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +22 -0
  72. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  73. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  74. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
  75. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  76. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  77. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  78. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  79. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  80. package/dist/accordion.js +2 -2
  81. package/dist/action-bar.js +5 -5
  82. package/dist/alert.js +23 -23
  83. package/dist/alert.js.map +1 -1
  84. package/dist/assets/base-modal.css +1 -1
  85. package/dist/assets/button.css +1 -1
  86. package/dist/assets/checkbox.css +1 -1
  87. package/dist/assets/controls-group.css +1 -1
  88. package/dist/assets/copy.css +1 -1
  89. package/dist/assets/dropdown-default-textbox.css +1 -1
  90. package/dist/assets/dropdown.css +1 -1
  91. package/dist/assets/fixed-scroller.css +1 -1
  92. package/dist/assets/index.css +1 -1
  93. package/dist/assets/index10.css +1 -1
  94. package/dist/assets/index11.css +1 -1
  95. package/dist/assets/index12.css +1 -1
  96. package/dist/assets/index13.css +1 -1
  97. package/dist/assets/index14.css +1 -1
  98. package/dist/assets/index16.css +1 -1
  99. package/dist/assets/index17.css +1 -1
  100. package/dist/assets/index18.css +1 -1
  101. package/dist/assets/index19.css +1 -1
  102. package/dist/assets/index2.css +1 -1
  103. package/dist/assets/index20.css +1 -1
  104. package/dist/assets/index21.css +1 -1
  105. package/dist/assets/index22.css +1 -1
  106. package/dist/assets/index23.css +1 -1
  107. package/dist/assets/index24.css +1 -1
  108. package/dist/assets/index25.css +1 -1
  109. package/dist/assets/index26.css +1 -1
  110. package/dist/assets/index27.css +1 -1
  111. package/dist/assets/index28.css +1 -1
  112. package/dist/assets/index29.css +1 -1
  113. package/dist/assets/index3.css +1 -1
  114. package/dist/assets/index30.css +1 -1
  115. package/dist/assets/index31.css +1 -1
  116. package/dist/assets/index32.css +1 -1
  117. package/dist/assets/index33.css +1 -1
  118. package/dist/assets/index34.css +1 -1
  119. package/dist/assets/index35.css +1 -1
  120. package/dist/assets/index36.css +1 -1
  121. package/dist/assets/index37.css +1 -1
  122. package/dist/assets/index38.css +1 -1
  123. package/dist/assets/index39.css +1 -1
  124. package/dist/assets/index4.css +1 -1
  125. package/dist/assets/index40.css +1 -1
  126. package/dist/assets/index41.css +1 -1
  127. package/dist/assets/index42.css +1 -1
  128. package/dist/assets/index43.css +1 -1
  129. package/dist/assets/index44.css +1 -1
  130. package/dist/assets/index45.css +1 -1
  131. package/dist/assets/index46.css +1 -1
  132. package/dist/assets/index47.css +1 -0
  133. package/dist/assets/index5.css +1 -1
  134. package/dist/assets/index6.css +1 -1
  135. package/dist/assets/index7.css +1 -1
  136. package/dist/assets/index9.css +1 -1
  137. package/dist/assets/listbox.css +1 -1
  138. package/dist/assets/loading-button.css +1 -1
  139. package/dist/avatar-image.js +1 -1
  140. package/dist/badge.js +1 -1
  141. package/dist/button.js +57 -46
  142. package/dist/button.js.map +1 -1
  143. package/dist/card.js +2 -2
  144. package/dist/checkbox.js +73 -54
  145. package/dist/checkbox.js.map +1 -1
  146. package/dist/chunks/{base-button.aa085dfa.js → base-button.39fae75f.js} +2 -2
  147. package/dist/chunks/{base-button.aa085dfa.js.map → base-button.39fae75f.js.map} +1 -1
  148. package/dist/chunks/{base-modal.a629cb32.js → base-modal.161ce8f0.js} +86 -86
  149. package/dist/chunks/base-modal.161ce8f0.js.map +1 -0
  150. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.2ff339f6.js} +3 -3
  151. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.2ff339f6.js.map} +1 -1
  152. package/dist/chunks/button.623a46d2.js +118 -0
  153. package/dist/chunks/button.623a46d2.js.map +1 -0
  154. package/dist/chunks/{calendar.fa7712e8.js → calendar.b1d05580.js} +4 -4
  155. package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b1d05580.js.map} +1 -1
  156. package/dist/chunks/checkbox.d65694f2.js +278 -0
  157. package/dist/chunks/checkbox.d65694f2.js.map +1 -0
  158. package/dist/chunks/{controls-group.d6543674.js → controls-group.30352ce4.js} +21 -17
  159. package/dist/chunks/controls-group.30352ce4.js.map +1 -0
  160. package/dist/chunks/copy.2a9cddc1.js +145 -0
  161. package/dist/chunks/copy.2a9cddc1.js.map +1 -0
  162. package/dist/chunks/country.types.002caff2.js +5871 -0
  163. package/dist/chunks/country.types.002caff2.js.map +1 -0
  164. package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.a731b5fb.js} +25 -25
  165. package/dist/chunks/dropdown-default-textbox.a731b5fb.js.map +1 -0
  166. package/dist/chunks/{dropdown.63de9aac.js → dropdown.96431c25.js} +399 -359
  167. package/dist/chunks/dropdown.96431c25.js.map +1 -0
  168. package/dist/chunks/{field-label.3c19a29a.js → field-label.b681234d.js} +5 -5
  169. package/dist/chunks/{field-label.3c19a29a.js.map → field-label.b681234d.js.map} +1 -1
  170. package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.ebfb2f80.js} +2 -2
  171. package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.ebfb2f80.js.map} +1 -1
  172. package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.03015ba1.js} +3 -3
  173. package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.03015ba1.js.map} +1 -1
  174. package/dist/chunks/{index.98174339.js → index.03605cb0.js} +5 -5
  175. package/dist/chunks/{index.98174339.js.map → index.03605cb0.js.map} +1 -1
  176. package/dist/chunks/index.09f7f1b5.js +124 -0
  177. package/dist/chunks/index.09f7f1b5.js.map +1 -0
  178. package/dist/chunks/index.0a8ddfaa.js +168 -0
  179. package/dist/chunks/index.0a8ddfaa.js.map +1 -0
  180. package/dist/chunks/index.113137fb.js +21 -0
  181. package/dist/chunks/index.113137fb.js.map +1 -0
  182. package/dist/chunks/{index.89dfe209.js → index.1dac266a.js} +3 -3
  183. package/dist/chunks/{index.89dfe209.js.map → index.1dac266a.js.map} +1 -1
  184. package/dist/chunks/{index.0ee895e0.js → index.45d00aad.js} +2 -2
  185. package/dist/chunks/{index.0ee895e0.js.map → index.45d00aad.js.map} +1 -1
  186. package/dist/chunks/{index.4d2a13e1.js → index.80078bf9.js} +2 -2
  187. package/dist/chunks/{index.4d2a13e1.js.map → index.80078bf9.js.map} +1 -1
  188. package/dist/chunks/{index.85832db5.js → index.a4a6e52f.js} +3 -3
  189. package/dist/chunks/{index.85832db5.js.map → index.a4a6e52f.js.map} +1 -1
  190. package/dist/chunks/index.cf561336.js +622 -0
  191. package/dist/chunks/index.cf561336.js.map +1 -0
  192. package/dist/chunks/{index.c6fecf1c.js → index.ef1c4d59.js} +33 -33
  193. package/dist/chunks/{index.c6fecf1c.js.map → index.ef1c4d59.js.map} +1 -1
  194. package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.ff6d6f32.js} +3 -3
  195. package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.ff6d6f32.js.map} +1 -1
  196. package/dist/chunks/listbox.dd9883c5.js +1419 -0
  197. package/dist/chunks/listbox.dd9883c5.js.map +1 -0
  198. package/dist/chunks/{loading-button.4b88e24d.js → loading-button.30c5fede.js} +19 -19
  199. package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.30c5fede.js.map} +1 -1
  200. package/dist/chunks/{tooltip.27c32d36.js → tooltip.785993dd.js} +15 -15
  201. package/dist/chunks/tooltip.785993dd.js.map +1 -0
  202. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
  203. package/dist/chunks/useCountryItems.d2a1f224.js +29 -0
  204. package/dist/chunks/{useCountryItems.e83ef8f0.js.map → useCountryItems.d2a1f224.js.map} +1 -1
  205. package/dist/code-snippet.js +136 -138
  206. package/dist/code-snippet.js.map +1 -1
  207. package/dist/country.js +51 -5912
  208. package/dist/country.js.map +1 -1
  209. package/dist/currency.js +1 -1
  210. package/dist/data-grid.js +1325 -1021
  211. package/dist/data-grid.js.map +1 -1
  212. package/dist/date-picker.js +20 -20
  213. package/dist/date-picker.js.map +1 -1
  214. package/dist/date-range-picker.js +2 -2
  215. package/dist/date.js +1 -1
  216. package/dist/divider.js +2 -10
  217. package/dist/divider.js.map +1 -1
  218. package/dist/dropdown.js +51 -50
  219. package/dist/dropdown.js.map +1 -1
  220. package/dist/empty-state.js +23 -23
  221. package/dist/empty-state.js.map +1 -1
  222. package/dist/filter-bar.js +759 -747
  223. package/dist/filter-bar.js.map +1 -1
  224. package/dist/focus-trap.js +1 -1
  225. package/dist/form-layout.js +2 -2
  226. package/dist/form-layout.js.map +1 -1
  227. package/dist/header.js +3 -3
  228. package/dist/index.js +194 -185
  229. package/dist/index.js.map +1 -1
  230. package/dist/info-icon.js +3 -3
  231. package/dist/input-field.js +4 -4
  232. package/dist/internal.js +17 -15
  233. package/dist/link.js +2 -2
  234. package/dist/loading-indicator.js +1 -1
  235. package/dist/menu.js +1 -1
  236. package/dist/modal.js +67 -64
  237. package/dist/modal.js.map +1 -1
  238. package/dist/pagination.js +15 -13
  239. package/dist/pagination.js.map +1 -1
  240. package/dist/payment-method.js +2 -2
  241. package/dist/popover.js +1 -1
  242. package/dist/popper-container.js +1 -1
  243. package/dist/radio-group.js +69 -67
  244. package/dist/radio-group.js.map +1 -1
  245. package/dist/search-bar.js +8 -8
  246. package/dist/secondary-nav.js +110 -0
  247. package/dist/secondary-nav.js.map +1 -0
  248. package/dist/segmented-control.js +3 -3
  249. package/dist/sidepanel.js +5 -5
  250. package/dist/status.js +2 -2
  251. package/dist/stepper.js +3 -3
  252. package/dist/structured-list.js +1 -1
  253. package/dist/summary-grid.js +3 -3
  254. package/dist/tabs.js +3 -3
  255. package/dist/tag.js +3 -3
  256. package/dist/textarea.js +173 -161
  257. package/dist/textarea.js.map +1 -1
  258. package/dist/timeline.js +244 -237
  259. package/dist/timeline.js.map +1 -1
  260. package/dist/toast.js +3 -3
  261. package/dist/toggle.js +2 -2
  262. package/dist/tutorial.js +5 -5
  263. package/dist/typography.js +1 -1
  264. package/dist/web-types.json +1 -1
  265. package/package.json +2 -2
  266. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
  267. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
  268. package/dist/chunks/base-modal.a629cb32.js.map +0 -1
  269. package/dist/chunks/button.82ed953e.js +0 -148
  270. package/dist/chunks/button.82ed953e.js.map +0 -1
  271. package/dist/chunks/checkbox.731dc0ab.js +0 -264
  272. package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
  273. package/dist/chunks/controls-group.d6543674.js.map +0 -1
  274. package/dist/chunks/copy.330d594e.js +0 -126
  275. package/dist/chunks/copy.330d594e.js.map +0 -1
  276. package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
  277. package/dist/chunks/dropdown.63de9aac.js.map +0 -1
  278. package/dist/chunks/index.73ed22a7.js +0 -594
  279. package/dist/chunks/index.73ed22a7.js.map +0 -1
  280. package/dist/chunks/index.75f3672e.js +0 -124
  281. package/dist/chunks/index.75f3672e.js.map +0 -1
  282. package/dist/chunks/index.edcaf766.js +0 -150
  283. package/dist/chunks/index.edcaf766.js.map +0 -1
  284. package/dist/chunks/listbox.ac43f8ab.js +0 -1309
  285. package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
  286. package/dist/chunks/tooltip.27c32d36.js.map +0 -1
  287. package/dist/chunks/useCountryItems.e83ef8f0.js +0 -29
  288. /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
  289. /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
  290. /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
  291. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  292. /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 L, watch as be, computed as u, defineComponent as oe, toRefs as ve, resolveComponent as E, openBlock as y, createBlock as A, resolveDynamicComponent as ye, mergeProps as B, withCtx as M, createElementVNode as x, withKeys as Te, createVNode as F, toHandlers as z, createSlots as V, renderList as J, renderSlot as Z, normalizeProps as Y, guardReactiveProps as G, createElementBlock as R, toDisplayString as ne, createCommentVNode as N, normalizeClass as Q, withDirectives as W, vShow as de, nextTick as _, toRef as I, resolveDirective as ue, createTextVNode as Ae } from "vue";
2
- import { B as Ne, d as Me } from "./index.75f3672e.js";
1
+ import { ref as $, watch as ye, computed as f, defineComponent as le, toRefs as ge, resolveComponent as O, openBlock as g, createBlock as M, resolveDynamicComponent as he, mergeProps as I, withCtx as P, createElementVNode as j, withKeys as ke, createVNode as W, toHandlers as x, createSlots as Y, renderList as G, renderSlot as U, normalizeProps as Q, guardReactiveProps as X, createElementBlock as R, toDisplayString as ae, createCommentVNode as N, normalizeClass as ee, withDirectives as H, vShow as ce, nextTick as _, toRef as E, resolveDirective as fe, createTextVNode as Ke } from "vue";
2
+ import { B as Fe, d as ze } from "./index.09f7f1b5.js";
3
+ import { D as We, a as A, b as J, c as Ue } from "./dropdown-default-textbox.a731b5fb.js";
4
+ import { _ as F } from "./_plugin-vue_export-helper.dad06003.js";
3
5
  import { g as K } from "./unique-id.a2a2b458.js";
4
- import { u as Pe } from "./aria-label.ac9651a5.js";
5
- import { u as le } from "./i18n.6c402773.js";
6
- import { u as Ke } from "./use-form-layout-loading.d03e5d48.js";
7
- import { B as C, a as ke } from "./keyboard-navigation.ca47dfa8.js";
8
- import { a as s, B as X, b as ee } from "./listbox.ac43f8ab.js";
9
- import { B as Fe } from "./directive.0408e565.js";
10
- import { a as H } from "./index.85832db5.js";
11
- import { a as ce } from "./index.98174339.js";
12
- import { _ as k } from "./_plugin-vue_export-helper.dad06003.js";
13
- import { D as ze, a as T, b as q, c as We } from "./dropdown-default-textbox.4108b289.js";
14
- import { E as xe, F as Ue } from "./field-label.3c19a29a.js";
6
+ import { u as xe } from "./aria-label.ac9651a5.js";
7
+ import { u as ie } from "./i18n.6c402773.js";
8
+ import { u as He } from "./use-form-layout-loading.d03e5d48.js";
9
+ import { B as D, a as je } from "./keyboard-navigation.ca47dfa8.js";
10
+ import { a as r, B as te, b as oe, u as qe } from "./listbox.dd9883c5.js";
11
+ import { B as we } from "./directive.0408e565.js";
12
+ import { u as Ve } from "./use-has-slot.4d98bf29.js";
13
+ import { a as Z } from "./index.a4a6e52f.js";
14
+ import { a as pe } from "./index.03605cb0.js";
15
+ import { E as Je, F as Ze } from "./field-label.b681234d.js";
15
16
  import "../assets/dropdown.css";
16
- var D = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(D || {});
17
- const te = {
17
+ var B = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(B || {});
18
+ const ne = {
18
19
  "en-US": {
19
20
  apply: "Apply",
20
21
  cancel: "Cancel",
21
22
  noOptionsMatchThisSearch: "No options match this search"
22
23
  }
23
- }, je = (e, o, n) => {
24
- const t = L(e.value), { t: a } = le({ messages: te });
25
- be(e, () => {
26
- t.value = e.value;
24
+ }, Ye = (e, o, i, t) => {
25
+ const n = $(e.value), { t: l } = ie({ messages: ne });
26
+ ye(e, () => {
27
+ n.value = e.value;
27
28
  });
28
- const i = u(
29
- () => JSON.stringify(t.value) === JSON.stringify(e.value)
30
- ), d = () => {
31
- n(s.SELECT, t.value), n(s.CLOSE_DROPDOWN);
32
- }, r = () => {
33
- t.value = e.value, n(s.CLOSE_DROPDOWN);
34
- }, l = u(() => [
29
+ const d = f(
30
+ () => JSON.stringify(n.value) === JSON.stringify(e.value)
31
+ ), s = () => {
32
+ t(r.SELECT, n.value), t(r.CLOSE_DROPDOWN);
33
+ }, a = () => {
34
+ n.value = e.value, t(r.CLOSE_DROPDOWN);
35
+ }, p = () => {
36
+ i.value && o.value && (n.value = e.value);
37
+ }, L = f(() => [
35
38
  {
36
- title: a("apply"),
37
- event: d,
38
- disabled: i.value
39
+ title: l("apply"),
40
+ event: s,
41
+ disabled: d.value
39
42
  },
40
43
  {
41
- title: a("cancel"),
42
- event: r
44
+ title: l("cancel"),
45
+ event: a
43
46
  }
44
- ]), f = (m) => {
45
- t.value = m, o.value || n(s.SELECT, m);
46
- }, O = (m) => {
47
- f(m), n(s.TAB);
48
- }, g = (m) => {
49
- f(m), n(s.ENTER);
50
- }, h = (m) => {
51
- f(m), n(s.SPACE);
52
- }, b = () => {
53
- r(), n(s.ESCAPE);
54
- }, v = () => {
55
- n(s.SHOW_MORE);
56
- }, w = {
57
- [s.SELECT]: f,
58
- [s.SHOW_MORE]: v,
59
- [s.TAB]: O,
60
- [s.SPACE]: h,
61
- [s.ENTER]: g
47
+ ]), m = (u) => {
48
+ n.value = u, o.value || t(r.SELECT, u);
49
+ }, w = (u) => {
50
+ m(u), t(r.TAB);
51
+ }, b = (u) => {
52
+ m(u), t(r.ENTER);
53
+ }, y = (u) => {
54
+ m(u), t(r.SPACE);
55
+ }, S = () => {
56
+ a(), t(r.ESCAPE);
57
+ }, C = () => {
58
+ t(r.SHOW_MORE);
59
+ }, T = {
60
+ [r.SELECT]: m,
61
+ [r.SHOW_MORE]: C,
62
+ [r.TAB]: w,
63
+ [r.SPACE]: y,
64
+ [r.ENTER]: b
62
65
  };
63
66
  return {
64
67
  // Values
65
- actions: l,
66
- internalSelectedValue: t,
68
+ actions: L,
69
+ internalSelectedValue: n,
67
70
  // Methods
68
- listeners: w,
69
- onEscapeKey: b
71
+ listeners: T,
72
+ onEscapeKey: S,
73
+ onOutsideDropdownClick: p
70
74
  };
71
- }, He = oe({
72
- i18n: { messages: te },
75
+ }, Ge = le({
76
+ i18n: { messages: ne },
73
77
  name: "bento-dropdown-options-container",
74
78
  components: {
75
- BentoListbox: X,
76
- PopperContainer: H,
77
- BentoPopover: ce
79
+ BentoListbox: te,
80
+ PopperContainer: Z,
81
+ BentoPopover: pe
78
82
  },
83
+ directives: { BentoClickOutsideDirective: we },
79
84
  props: {
80
85
  /**
81
86
  * Defines a string value that labels an interactive element.
@@ -118,8 +123,8 @@ const te = {
118
123
  */
119
124
  inputSize: {
120
125
  type: String,
121
- default: D.DEFAULT,
122
- validator: (e) => Object.values(D).includes(e)
126
+ default: B.DEFAULT,
127
+ validator: (e) => Object.values(B).includes(e)
123
128
  },
124
129
  /**
125
130
  * The option elements to populate the dropdown with.
@@ -142,13 +147,17 @@ const te = {
142
147
  */
143
148
  lazyLoadType: {
144
149
  type: String,
145
- default: ee.AUTOMATIC,
146
- validator: (e) => Object.values(ee).includes(e)
150
+ default: oe.AUTOMATIC,
151
+ validator: (e) => Object.values(oe).includes(e)
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 te = {
169
178
  *
170
179
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
171
180
  */
172
- searching: X.props.searching,
181
+ searching: te.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: H.props.targetElement.type, required: !0 },
186
+ targetElement: { type: Z.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,35 +194,31 @@ const te = {
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
+ r.CLOSE_DROPDOWN,
198
+ r.SHOW_MORE,
199
+ r.SELECT,
200
+ r.ENTER,
201
+ r.ESCAPE,
202
+ r.SPACE,
203
+ r.TAB
195
204
  ],
196
- setup(e, { emit: o, slots: n }) {
197
- const { selectedValue: t, multiple: a } = ve(e), i = L(null), { t: d } = le({ messages: te }), r = u(() => e.open && !e.disabled), l = u(() => d("noOptionsMatchThisSearch")), f = u(() => ({
205
+ setup(e, { emit: o, slots: i }) {
206
+ const { selectedValue: t, multiple: n } = ge(e), l = $(null), { t: d } = ie({ messages: ne }), s = f(() => e.open && !e.disabled), a = f(() => d("noOptionsMatchThisSearch")), p = f(() => ({
198
207
  "b-dropdown-options-container--single": !(e != null && e.multiple)
199
- })), O = u(() => ({
200
- "b-dropdown-options-container__listbox--small": e.inputSize === D.SMALL,
208
+ })), L = f(() => ({
209
+ "b-dropdown-options-container__listbox--small": e.inputSize === B.SMALL,
201
210
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
202
- })), { actions: g, internalSelectedValue: h, listeners: b, onEscapeKey: v } = je(
203
- t,
204
- a,
205
- o
206
- ), w = u(
207
- () => e != null && e.multiple ? ce : H
208
- ), m = u(() => {
209
- var p;
210
- const P = {
211
- "min-width": `${(p = e == null ? void 0 : e.targetElement) == null ? void 0 : p.clientWidth}px`,
211
+ })), { actions: m, internalSelectedValue: w, listeners: b, onEscapeKey: y, onOutsideDropdownClick: S } = Ye(t, n, s, o), C = f(
212
+ () => e != null && e.multiple ? pe : Z
213
+ ), T = f(() => {
214
+ var c;
215
+ const u = {
216
+ "min-width": `${(c = e == null ? void 0 : e.targetElement) == null ? void 0 : c.clientWidth}px`,
212
217
  "max-width": "min(500px, 95%)"
213
218
  };
214
219
  return e != null && e.multiple ? {
215
220
  actionsLayout: "space-between",
216
- actions: g.value,
221
+ actions: m.value,
217
222
  divider: !0,
218
223
  fallbackPosition: ["top-start"],
219
224
  id: K(`dropdown-options-${e.id}`),
@@ -221,7 +226,7 @@ const te = {
221
226
  position: "bottom-start",
222
227
  style: {
223
228
  width: "auto",
224
- ...P
229
+ ...u
225
230
  },
226
231
  targetElement: e.targetElement
227
232
  } : {
@@ -229,42 +234,43 @@ const te = {
229
234
  offset: [0, 8],
230
235
  position: "bottom-start",
231
236
  style: {
232
- display: r.value ? "block" : "none",
233
- ...P
237
+ display: s.value ? "block" : "none",
238
+ ...u
234
239
  },
235
240
  targetElement: e.targetElement
236
241
  };
237
242
  });
238
243
  return {
239
244
  // Values
240
- isDropdownOpen: r,
241
- conditionalClasses: f,
242
- conditionalListboxClasses: O,
243
- noResultsMessage: l,
244
- slots: n,
245
- actions: g,
246
- internalSelectedValue: h,
245
+ isDropdownOpen: s,
246
+ conditionalClasses: p,
247
+ conditionalListboxClasses: L,
248
+ noResultsMessage: a,
249
+ slots: i,
250
+ actions: m,
251
+ internalSelectedValue: w,
247
252
  // Component wrapper
248
- popperContainerOrPopoverComponent: w,
249
- popperContainerOrPopoverProps: m,
253
+ popperContainerOrPopoverComponent: C,
254
+ popperContainerOrPopoverProps: T,
250
255
  // Refs
251
- dropdownOptionsListboxRef: i,
256
+ dropdownOptionsListboxRef: l,
252
257
  // Events
253
- onEscapeKey: v,
258
+ onEscapeKey: y,
259
+ onOutsideDropdownClick: S,
254
260
  listeners: b
255
261
  };
256
262
  }
257
263
  });
258
- function qe(e, o, n, t, a, i) {
259
- const d = E("bento-listbox");
260
- return y(), A(ye(e.popperContainerOrPopoverComponent), B({
264
+ function Qe(e, o, i, t, n, l) {
265
+ const d = O("bento-listbox");
266
+ return g(), M(he(e.popperContainerOrPopoverComponent), I({
261
267
  class: ["b-dropdown-options-container", e.conditionalClasses]
262
268
  }, e.popperContainerOrPopoverProps), {
263
- default: M(() => [
264
- x("div", {
265
- onKeydown: o[0] || (o[0] = Te((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
269
+ default: P(() => [
270
+ j("div", {
271
+ onKeydown: o[0] || (o[0] = ke((...s) => e.onEscapeKey && e.onEscapeKey(...s), ["esc"]))
266
272
  }, [
267
- F(d, B({
273
+ W(d, I({
268
274
  id: e.id,
269
275
  ref: "dropdownOptionsListboxRef",
270
276
  "aria-label": e.ariaLabel,
@@ -274,78 +280,79 @@ function qe(e, o, n, t, a, i) {
274
280
  items: e.items,
275
281
  "selected-value": e.internalSelectedValue,
276
282
  multiple: e.multiple,
283
+ "static-categories": e.staticCategories,
277
284
  "no-results-message": e.noResultsMessage,
278
285
  searching: e.searching,
279
286
  loading: e.loading,
280
287
  "lazy-load-type": e.lazyLoadType,
281
288
  "has-more-items": e.hasMoreItems,
282
289
  "virtual-scroll": e.virtualScroll
283
- }, z(e.listeners)), V({ _: 2 }, [
284
- J(e.slots, (r, l) => ({
285
- name: l,
286
- fn: M((f) => [
287
- Z(e.$slots, l, Y(G(f)), void 0, !0)
290
+ }, x(e.listeners)), Y({ _: 2 }, [
291
+ G(e.slots, (s, a) => ({
292
+ name: a,
293
+ fn: P((p) => [
294
+ U(e.$slots, a, Q(X(p)), void 0, !0)
288
295
  ])
289
296
  }))
290
- ]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
297
+ ]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
291
298
  ], 32)
292
299
  ]),
293
300
  _: 3
294
301
  }, 16, ["class"]);
295
302
  }
296
- const Ve = /* @__PURE__ */ k(He, [["render", qe], ["__scopeId", "data-v-470172b0"]]);
297
- let fe = 0;
298
- const Je = {
303
+ const Xe = /* @__PURE__ */ F(Ge, [["render", Qe], ["__scopeId", "data-v-f073599e"]]);
304
+ let me = 0;
305
+ const et = {
299
306
  beforeCreate() {
300
- this.uuid = fe.toString(), fe += 1;
307
+ this.uuid = me.toString(), me += 1;
301
308
  }
302
- }, Ze = { key: 0 }, Ye = /* @__PURE__ */ x("path", {
309
+ }, tt = { key: 0 }, ot = /* @__PURE__ */ j("path", {
303
310
  fill: "#00112C",
304
311
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
305
312
  }, null, -1);
306
- function Ge(e, o, n, t, a, i) {
307
- return y(), R("svg", B({ role: "img" }, e.$attrs, {
313
+ function nt(e, o, i, t, n, l) {
314
+ return g(), R("svg", I({ role: "img" }, e.$attrs, {
308
315
  class: "ui-assets-icons-16",
309
316
  xmlns: "http://www.w3.org/2000/svg",
310
317
  width: "16",
311
318
  height: "16",
312
319
  fill: "none"
313
320
  }), [
314
- e.$attrs["svg-title"] ? (y(), R("title", Ze, ne(e.$attrs["svg-title"]), 1)) : N("", !0),
315
- Ye
321
+ e.$attrs["svg-title"] ? (g(), R("title", tt, ae(e.$attrs["svg-title"]), 1)) : N("", !0),
322
+ ot
316
323
  ], 16);
317
324
  }
318
- const Qe = /* @__PURE__ */ k(Je, [["render", Ge]]);
319
- let pe = 0;
320
- const Xe = {
325
+ const lt = /* @__PURE__ */ F(et, [["render", nt]]);
326
+ let ve = 0;
327
+ const at = {
321
328
  beforeCreate() {
322
- this.uuid = pe.toString(), pe += 1;
329
+ this.uuid = ve.toString(), ve += 1;
323
330
  }
324
- }, et = { key: 0 }, tt = /* @__PURE__ */ x("path", {
331
+ }, it = { key: 0 }, st = /* @__PURE__ */ j("path", {
325
332
  fill: "#00112C",
326
333
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
327
334
  }, null, -1);
328
- function ot(e, o, n, t, a, i) {
329
- return y(), R("svg", B({ role: "img" }, e.$attrs, {
335
+ function rt(e, o, i, t, n, l) {
336
+ return g(), R("svg", I({ role: "img" }, e.$attrs, {
330
337
  class: "ui-assets-icons-16",
331
338
  xmlns: "http://www.w3.org/2000/svg",
332
339
  width: "16",
333
340
  height: "16",
334
341
  fill: "none"
335
342
  }), [
336
- e.$attrs["svg-title"] ? (y(), R("title", et, ne(e.$attrs["svg-title"]), 1)) : N("", !0),
337
- tt
343
+ e.$attrs["svg-title"] ? (g(), R("title", it, ae(e.$attrs["svg-title"]), 1)) : N("", !0),
344
+ st
338
345
  ], 16);
339
346
  }
340
- const nt = /* @__PURE__ */ k(Xe, [["render", ot]]), lt = oe({
347
+ const dt = /* @__PURE__ */ F(at, [["render", rt]]), ut = le({
341
348
  name: "dropdown-small-textbox",
342
- components: { ChevronDownSmallIcon: Qe, ChevronUpSmallIcon: nt, DropdownBaseTextbox: ze },
349
+ components: { ChevronDownSmallIcon: lt, ChevronUpSmallIcon: dt, DropdownBaseTextbox: We },
343
350
  inheritAttrs: !1,
344
351
  props: {
345
352
  /**
346
353
  * The number of additional items that have been selected in the dropdown.
347
354
  */
348
- additionalItemsSelected: { type: Number, default: 0 },
355
+ additionalItemsSelected: { type: [Number, String], default: 0 },
349
356
  /**
350
357
  * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
351
358
  */
@@ -411,43 +418,43 @@ const nt = /* @__PURE__ */ k(Xe, [["render", ot]]), lt = oe({
411
418
  */
412
419
  value: { type: String, default: "" }
413
420
  },
414
- emits: [T.OPEN, T.CLOSE],
421
+ emits: [A.OPEN, A.CLOSE],
415
422
  setup(e, { emit: o }) {
416
- const n = u(() => ({
417
- [`b-dropdown-small-textbox--${q.DISABLED}`]: e.disabled,
418
- [`b-dropdown-small-textbox--${q.READONLY}`]: e.readonly,
419
- [`b-dropdown-small-textbox--${q.OPENED}`]: e.open
420
- })), t = u(() => e.open && !e.disabled && !e.readonly), a = () => {
421
- o(T.OPEN);
422
- }, i = () => {
423
- o(T.CLOSE);
423
+ const i = f(() => ({
424
+ [`b-dropdown-small-textbox--${J.DISABLED}`]: e.disabled,
425
+ [`b-dropdown-small-textbox--${J.READONLY}`]: e.readonly,
426
+ [`b-dropdown-small-textbox--${J.OPENED}`]: e.open
427
+ })), t = f(() => e.open && !e.disabled && !e.readonly), n = () => {
428
+ o(A.OPEN);
429
+ }, l = () => {
430
+ o(A.CLOSE);
424
431
  }, d = {
425
- [T.OPEN]: a,
426
- [T.CLOSE]: i
432
+ [A.OPEN]: n,
433
+ [A.CLOSE]: l
427
434
  };
428
435
  return {
429
436
  // Values
430
- conditionalClasses: n,
437
+ conditionalClasses: i,
431
438
  isDropdownOpen: t,
432
439
  // Events
433
440
  listeners: d
434
441
  };
435
442
  }
436
443
  });
437
- const at = { class: "b-dropdown-small-textbox__chevron" };
438
- function it(e, o, n, t, a, i) {
439
- const d = E("chevron-up-small-icon"), r = E("chevron-down-small-icon"), l = E("dropdown-base-textbox");
440
- return y(), R("div", {
441
- class: Q(["b-dropdown-small-textbox", e.conditionalClasses])
444
+ const ct = { class: "b-dropdown-small-textbox__chevron" };
445
+ function ft(e, o, i, t, n, l) {
446
+ const d = O("chevron-up-small-icon"), s = O("chevron-down-small-icon"), a = O("dropdown-base-textbox");
447
+ return g(), R("div", {
448
+ class: ee(["b-dropdown-small-textbox", e.conditionalClasses])
442
449
  }, [
443
- F(l, B({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, z(e.listeners)), {
444
- icon: M(() => [
445
- x("div", at, [
446
- W(F(d, { "svg-title": "opened" }, null, 512), [
447
- [de, e.isDropdownOpen]
450
+ W(a, I({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, x(e.listeners)), {
451
+ icon: P(() => [
452
+ j("div", ct, [
453
+ H(W(d, { "svg-title": "opened" }, null, 512), [
454
+ [ce, e.isDropdownOpen]
448
455
  ]),
449
- W(F(r, { "svg-title": "closed" }, null, 512), [
450
- [de, !e.isDropdownOpen]
456
+ H(W(s, { "svg-title": "closed" }, null, 512), [
457
+ [ce, !e.isDropdownOpen]
451
458
  ])
452
459
  ])
453
460
  ]),
@@ -455,131 +462,142 @@ function it(e, o, n, t, a, i) {
455
462
  }, 16)
456
463
  ], 2);
457
464
  }
458
- const st = /* @__PURE__ */ k(lt, [["render", it], ["__scopeId", "data-v-55bc3614"]]), rt = ({ items: e, placeholder: o, selectedValue: n }) => {
459
- const t = e.value.find(({ value: a }) => a === n.value);
460
- return (t == null ? void 0 : t.label) || o.value || null;
461
- }, dt = ({ selectedValues: e, items: o, placeholder: n }) => {
465
+ const pt = /* @__PURE__ */ F(ut, [["render", ft], ["__scopeId", "data-v-36f61648"]]), mt = ({ items: e, placeholder: o, selectedValue: i, staticCategories: t }) => {
466
+ let n;
467
+ if (t) {
468
+ const l = e.value.find((d) => d.items.some((s) => s.value === i.value));
469
+ n = l == null ? void 0 : l.items.find((d) => d.value === i.value);
470
+ } else
471
+ n = e.value.find(({ value: l }) => l === i.value);
472
+ return (n == null ? void 0 : n.label) || o.value || null;
473
+ }, vt = ({ selectedValues: e, items: o, placeholder: i }) => {
462
474
  var t;
463
- return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? n.value || null : e.value.map((a) => {
464
- const { label: i } = o.value.find(({ value: d }) => d === a);
465
- return i;
475
+ return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? i.value || null : e.value.map((n) => {
476
+ const { label: l } = o.value.find(({ value: d }) => d === n);
477
+ return l;
466
478
  }).join(", ");
467
- }, ut = ({ selectedValues: e, items: o, placeholder: n }) => {
479
+ }, bt = ({ selectedValues: e, items: o, placeholder: i }) => {
468
480
  var t;
469
- return !e.value || !((t = e.value) != null && t.length) ? n.value || null : o.value.reduce((a, i) => {
470
- if (i.items) {
471
- const d = i.items.filter(
472
- (l) => e.value.includes(l.value)
481
+ return !e.value || !((t = e.value) != null && t.length) ? i.value || null : o.value.reduce((n, l) => {
482
+ if (l.items) {
483
+ const d = l.items.filter(
484
+ (a) => e.value.includes(a.value)
473
485
  );
474
- d.length === i.items.length ? a.push(i.label) : d.forEach(({ label: l }) => a.push(l));
486
+ d.length === l.items.length ? n.push(l.label) : d.forEach(({ label: a }) => n.push(a));
475
487
  }
476
- return e.value.includes(i.value) && a.push(i.label), a;
488
+ return e.value.includes(l.value) && n.push(l.label), n;
477
489
  }, []).join(", ");
478
- }, ct = ({ items: e, placeholder: o, value: n, multiple: t }) => {
479
- const a = u(() => e.value.find((d) => {
480
- var r;
481
- return (r = d.items) == null ? void 0 : r.length;
490
+ }, yt = ({ items: e, placeholder: o, value: i, multiple: t, staticCategories: n }) => {
491
+ const l = f(() => e.value.find((s) => {
492
+ var a;
493
+ return (a = s.items) == null ? void 0 : a.length;
482
494
  }));
483
- return u(() => t.value ? a.value ? ut({ selectedValues: n, placeholder: o, items: e }) : dt({ selectedValues: n, items: e, placeholder: o }) : rt({ items: e, placeholder: o, selectedValue: n }));
484
- }, ge = (e) => {
495
+ return f(() => t.value ? l.value ? bt({ selectedValues: i, placeholder: o, items: e }) : vt({ selectedValues: i, items: e, placeholder: o }) : mt({
496
+ items: e,
497
+ placeholder: o,
498
+ selectedValue: i,
499
+ staticCategories: n.value
500
+ }));
501
+ }, Se = (e) => {
485
502
  var o;
486
503
  (o = e.value.$children) == null || o[0].$refs.textbox.focus();
487
- }, ft = ({
504
+ }, gt = ({
488
505
  inputContainerRef: e,
489
506
  optionsContainerRef: o,
490
- selectedValueIndex: n,
507
+ selectedValueIndex: i,
491
508
  isDropdownOpen: t,
492
- isDynamicFltering: a,
493
- items: i,
509
+ isDynamicFltering: n,
510
+ items: l,
494
511
  isMultiple: d
495
- }, r, l, f) => {
496
- const O = ({ detail: p }) => {
497
- p.preventDefault(), t.value || (l(), _(() => {
498
- var c, $;
499
- d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : ($ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || $[n.value].$el.focus();
512
+ }, s, a, p) => {
513
+ const L = ({ detail: u }) => {
514
+ u.preventDefault(), t.value || (a(), _(() => {
515
+ var c, h;
516
+ d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (h = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || h[i.value].$el.focus();
500
517
  }));
501
- }, g = ({ detail: p }) => {
502
- p.preventDefault(), t.value || (l(), _(() => {
518
+ }, m = ({ detail: u }) => {
519
+ u.preventDefault(), t.value || (a(), _(() => {
503
520
  var c;
504
521
  (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
505
522
  }));
506
- }, h = () => {
507
- t.value || (l(), _(() => {
508
- var p, c;
523
+ }, w = () => {
524
+ t.value || (a(), _(() => {
525
+ var u, c;
509
526
  if (d) {
510
- const $ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
511
- (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[$.length - 1].$children[i.length - 1].$el.focus();
527
+ const h = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
528
+ (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[h.length - 1].$children[l.length - 1].$el.focus();
512
529
  } else
513
- (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[i.length - 1].$el.focus();
530
+ (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[l.length - 1].$el.focus();
514
531
  }));
515
532
  }, b = () => {
516
- t.value && (f(), ge(e));
517
- }, v = () => {
518
- t.value || l(), _(() => {
519
- var p;
520
- (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
533
+ t.value && (p(), Se(e));
534
+ }, y = () => {
535
+ t.value || a(), _(() => {
536
+ var u;
537
+ (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
521
538
  });
522
- }, w = ({ detail: p }) => {
523
- p.preventDefault(), r(), t.value && _(() => {
524
- var c, $;
525
- d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : ($ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || $[n.value].$el.focus();
539
+ }, S = ({ detail: u }) => {
540
+ u.preventDefault(), s(), t.value && _(() => {
541
+ var c, h;
542
+ d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (h = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || h[i.value].$el.focus();
526
543
  });
527
- }, m = () => {
528
- r(), t.value && _(() => {
529
- var p, c;
530
- d ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
544
+ }, C = () => {
545
+ s(), t.value && _(() => {
546
+ var u, c;
547
+ d ? (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[i.value].$el.focus();
531
548
  });
532
549
  };
533
- return u(() => ({
534
- ...a.value ? {} : { [C.SPACE]: w },
535
- [C.ENTER]: m,
536
- [C.ARROW_DOWN]: O,
537
- [C.ARROW_UP]: g,
538
- [C.END]: h,
539
- [C.ESCAPE]: b,
540
- [C.HOME]: v
550
+ return f(() => ({
551
+ ...n.value ? {} : { [D.SPACE]: S },
552
+ [D.ENTER]: C,
553
+ [D.ARROW_DOWN]: L,
554
+ [D.ARROW_UP]: m,
555
+ [D.END]: w,
556
+ [D.ESCAPE]: b,
557
+ [D.HOME]: y
541
558
  }));
542
- }, pt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
559
+ }, ht = ({ inputContainerRef: e, isDropdownOpen: o }, i) => {
543
560
  const t = () => {
544
- o.value && n(), _(() => {
545
- ge(e);
561
+ o.value && i(), _(() => {
562
+ Se(e);
546
563
  });
547
564
  };
548
565
  return {
549
- [s.ENTER]: t,
550
- [s.ESCAPE]: t,
551
- [s.TAB]: t,
552
- [s.SPACE]: t
566
+ [r.ENTER]: t,
567
+ [r.ESCAPE]: t,
568
+ [r.TAB]: t,
569
+ [r.SPACE]: t
553
570
  };
554
571
  };
555
- function mt(e, o, n) {
556
- const t = L(e), a = L(o), i = (r, l = []) => l.flatMap((f) => f.label.toLocaleLowerCase().includes(r) ? [f, ...i(r, f.items)] : f.items ? [...i(r, f.items)] : []);
557
- return be(t, () => {
558
- n !== void 0 && n(t.value);
559
- }), u(() => {
560
- if (!t.value || n !== void 0)
561
- return a.value;
562
- const r = t.value.toLocaleLowerCase();
563
- return i(r, a.value);
572
+ function wt(e, o, i) {
573
+ const t = $(e), n = $(o), l = (s, a = []) => a.flatMap((p) => p.label.toLocaleLowerCase().includes(s) ? [p, ...l(s, p.items)] : p.items ? [...l(s, p.items)] : []);
574
+ return ye(t, () => {
575
+ i !== void 0 && i(t.value);
576
+ }), f(() => {
577
+ if (!t.value || i !== void 0)
578
+ return n.value;
579
+ const s = t.value.toLocaleLowerCase();
580
+ return l(s, n.value);
564
581
  });
565
582
  }
566
- const me = {
583
+ const be = {
567
584
  "en-US": {
585
+ all: "All",
568
586
  clearSearch: "Clear filter",
569
587
  ariaLabelFallback: "Dropdown"
570
588
  }
571
- }, bt = oe({
572
- i18n: { messages: me },
589
+ }, St = le({
590
+ i18n: { messages: be },
573
591
  name: "b-dropdown",
574
592
  components: {
575
- BentoDropdownOptionsContainer: Ve,
576
- BentoTypography: Ne,
577
- DropdownInputDefault: We,
578
- DropdownInputSmall: st,
579
- ErrorMessage: xe,
580
- FieldLabel: Ue
593
+ BentoDropdownOptionsContainer: Xe,
594
+ BentoTypography: Fe,
595
+ DropdownInputDefault: Ue,
596
+ DropdownInputSmall: pt,
597
+ ErrorMessage: Je,
598
+ FieldLabel: Ze
581
599
  },
582
- directives: { BentoClickOutsideDirective: Fe, BentoKeyboardNavigationDirective: ke },
600
+ directives: { BentoClickOutsideDirective: we, BentoKeyboardNavigationDirective: je },
583
601
  props: {
584
602
  /**
585
603
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -673,8 +691,8 @@ const me = {
673
691
  */
674
692
  lazyLoadType: {
675
693
  type: String,
676
- default: X.props.lazyLoadType.default,
677
- validator: (e) => Object.values(ee).includes(e)
694
+ default: te.props.lazyLoadType.default,
695
+ validator: (e) => Object.values(oe).includes(e)
678
696
  },
679
697
  /*
680
698
  * If enabled, the user will be able to select multiple items.
@@ -702,13 +720,17 @@ const me = {
702
720
  */
703
721
  size: {
704
722
  type: String,
705
- default: D.DEFAULT,
706
- validator: (e) => Object.values(D).includes(e)
723
+ default: B.DEFAULT,
724
+ validator: (e) => Object.values(B).includes(e)
707
725
  },
708
726
  /**
709
727
  * Adds a info icon next to the label to display the passed tooltip message.
710
728
  */
711
729
  tooltipText: { type: String, default: null },
730
+ /**
731
+ * If enabled, dropdown will display non-selectable, static categories
732
+ */
733
+ staticCategories: { type: Boolean, default: !1 },
712
734
  /**
713
735
  * The `input` value.
714
736
  * Providing an empty string will select no options.
@@ -735,73 +757,86 @@ const me = {
735
757
  default: void 0
736
758
  }
737
759
  },
738
- emits: ["input", s.SHOW_MORE],
739
- setup(e, { attrs: o, emit: n, slots: t }) {
740
- var re;
741
- const { t: a } = le({ messages: me }), i = L(null), d = L(null), r = L(null), l = L(!1), f = K("bento-dropdown-options-container"), O = K("dropdown-label"), g = K("dropdown-description"), h = K("dropdown-error"), { isReadOnly: b } = Ke(I(e, "readonly")), v = L(o["aria-label"]), { ariaLabel: w } = ve(e), m = Pe({
742
- ariaLabel: v.value,
760
+ emits: ["input", r.SHOW_MORE],
761
+ setup(e, { attrs: o, emit: i, slots: t }) {
762
+ var ue;
763
+ const { t: n } = ie({ messages: be }), l = $(null), d = $(null), s = $(null), a = $(!1), p = K("bento-dropdown-options-container"), L = K("dropdown-label"), m = K("dropdown-description"), w = K("dropdown-error"), { isReadOnly: b } = He(E(e, "readonly")), y = $(o["aria-label"]), { ariaLabel: S } = ge(e), C = xe({
764
+ ariaLabel: y.value,
743
765
  // TODO: take this line away when the aria-label props is removed
744
- label: w,
745
- defaultFallback: a("ariaLabelFallback")
746
- }), P = u(() => ({
766
+ label: S,
767
+ defaultFallback: n("ariaLabelFallback")
768
+ }), T = f(() => ({
747
769
  "b-dropdown--condensed": e.condensed
748
- })), p = u(() => ({
770
+ })), u = f(() => ({
749
771
  "b-dropdown__description--error": !!e.errorMessage
750
- })), c = L(""), $ = I(e, "items"), he = mt(c, $, (re = e == null ? void 0 : e.search) == null ? void 0 : re.searchEvent), U = u(() => e.dynamicFiltering && !!c.value), we = ct({
751
- items: $,
752
- multiple: I(e, "multiple"),
753
- placeholder: I(e, "placeholder"),
754
- value: I(e, "value")
755
- }), Se = u(() => e.size === D.DEFAULT), $e = u(
756
- () => e != null && e.multiple ? e.items.filter(
757
- ({ value: S }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(S)
758
- ) : e.items.find(({ value: S }) => S === (e == null ? void 0 : e.value))
759
- ), Le = u(() => {
760
- const S = e.items.findIndex(({ value: Ie }) => e.value === Ie);
761
- return S > 0 ? S : 0;
762
- }), Oe = u(() => {
763
- var S;
764
- return e.multiple ? (S = e == null ? void 0 : e.value) == null ? void 0 : S.length : null;
765
- }), Ee = u(
766
- () => `${e.description ? g : ""} ${e.errorMessage ? h : ""}`.trim() || null
767
- ), Ce = () => {
768
- b.value || (l.value = !0);
769
- }, j = () => {
770
- l.value = !1;
771
- }, ae = () => {
772
- b.value || (l.value = !l.value, U.value && (c.value = ""));
773
- }, _e = () => {
774
- U.value && (c.value = ""), l.value && (l.value = !1);
775
- }, ie = (S) => {
776
- e.multiple || (c.value = "", l.value = !1), n("input", S);
772
+ })), c = $(""), h = E(e, "items"), $e = wt(c, h, (ue = e == null ? void 0 : e.search) == null ? void 0 : ue.searchEvent), q = f(() => e.dynamicFiltering && !!c.value), Le = yt({
773
+ items: h,
774
+ staticCategories: E(e, "staticCategories"),
775
+ multiple: E(e, "multiple"),
776
+ placeholder: E(e, "placeholder"),
777
+ value: E(e, "value")
778
+ }), Oe = f(() => e.size === B.DEFAULT), Ce = f(() => {
779
+ if (e != null && e.multiple)
780
+ return e.items.filter(
781
+ ({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
782
+ );
783
+ if (!e.multiple && e.staticCategories) {
784
+ const v = e.items.find(
785
+ (z) => z.items.some((Pe) => Pe.value === e.value)
786
+ );
787
+ return v ? v.items.find((z) => z.value === e.value) : null;
788
+ }
789
+ return e.items.find(({ value: v }) => v === (e == null ? void 0 : e.value));
790
+ }), Ee = f(() => {
791
+ const v = e.items.findIndex(({ value: k }) => e.value === k);
792
+ return v > 0 ? v : 0;
793
+ }), { isMultiLevelSelect: De, flattenedItemsList: _e } = qe(h), Be = f(() => {
794
+ var v;
795
+ if (e.multiple) {
796
+ const k = (v = e == null ? void 0 : e.value) == null ? void 0 : v.length;
797
+ return (De.value ? _e.value.length : h.value.length) === k ? n("all") : k;
798
+ }
799
+ return null;
800
+ }), Ie = f(
801
+ () => `${e.description ? m : ""} ${e.errorMessage ? w : ""}`.trim() || null
802
+ ), Re = () => {
803
+ b.value || (a.value = !0);
804
+ }, V = () => {
805
+ a.value = !1;
777
806
  }, se = () => {
778
- n(s.SHOW_MORE);
779
- }, De = ft(
807
+ b.value || (a.value = !a.value, q.value && (c.value = ""));
808
+ }, Te = () => {
809
+ q.value && (c.value = ""), a.value && (a.value = !1, s.value.onOutsideDropdownClick());
810
+ }, re = (v) => {
811
+ e.multiple || (c.value = "", a.value = !1), i("input", v);
812
+ }, de = () => {
813
+ i(r.SHOW_MORE);
814
+ }, Ae = gt(
780
815
  {
781
- inputContainerRef: i,
782
- optionsContainerRef: r,
783
- selectedValueIndex: Le,
784
- isDropdownOpen: l,
785
- isDynamicFltering: I(e, "dynamicFiltering"),
816
+ inputContainerRef: l,
817
+ optionsContainerRef: s,
818
+ selectedValueIndex: Ee,
819
+ isDropdownOpen: a,
820
+ isDynamicFltering: E(e, "dynamicFiltering"),
786
821
  items: e.items,
787
822
  isMultiple: e.multiple
788
823
  },
789
- ae,
790
- Ce,
791
- j
792
- ), Be = pt(
824
+ se,
825
+ Re,
826
+ V
827
+ ), Me = ht(
793
828
  {
794
- inputContainerRef: i,
795
- isDropdownOpen: l
829
+ inputContainerRef: l,
830
+ isDropdownOpen: a
796
831
  },
797
- j
798
- ), Re = {
799
- [s.CLOSE_DROPDOWN]: j,
800
- [s.SELECT]: ie,
801
- [s.SHOW_MORE]: se,
802
- ...Be
832
+ V
833
+ ), Ne = {
834
+ [r.CLOSE_DROPDOWN]: V,
835
+ [r.SELECT]: re,
836
+ [r.SHOW_MORE]: de,
837
+ ...Me
803
838
  };
804
- return e.error && Me(
839
+ return e.error && ze(
805
840
  'BentoDropdown "error" property',
806
841
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
807
842
  Having the field as "undefined" will hide/remove the error.
@@ -809,49 +844,51 @@ const me = {
809
844
  "2.0.0"
810
845
  ), {
811
846
  // Values
812
- conditionalClasses: P,
813
- computedAriaLabel: m,
814
- additionalItemsSelected: Oe,
815
- idDefaultSize: Se,
816
- isDropdownOpen: l,
817
- displayValue: we,
818
- dropdownOptionsContainerId: f,
819
- filteredItems: he,
820
- isSearching: U,
847
+ conditionalClasses: T,
848
+ computedAriaLabel: C,
849
+ additionalItemsSelected: Be,
850
+ idDefaultSize: Oe,
851
+ isDropdownOpen: a,
852
+ displayValue: Le,
853
+ dropdownOptionsContainerId: p,
854
+ filteredItems: $e,
855
+ isSearching: q,
821
856
  isReadOnly: b,
822
857
  searchTerm: c,
823
- labelId: O,
824
- descriptionId: g,
825
- errorId: h,
826
- ariaDescribedBy: Ee,
827
- selectedValueItem: $e,
858
+ labelId: L,
859
+ descriptionId: m,
860
+ errorId: w,
861
+ ariaDescribedBy: Ie,
862
+ selectedValueItem: Ce,
828
863
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
829
864
  // The setup method and the "useSlots" composible define
830
865
  // { slots } as a proxy of $scopedSlots and $scopes in their
831
866
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
832
867
  slots: t,
833
- descriptionConditionalClasses: p,
868
+ descriptionConditionalClasses: u,
869
+ // Methods
870
+ hasSlot: Ve(t),
834
871
  // Refs
835
- inputContainerRef: i,
872
+ inputContainerRef: l,
836
873
  inputContainerRefWrapper: d,
837
- optionsContainerRef: r,
874
+ optionsContainerRef: s,
838
875
  // Events
839
- closeOpenedDropdown: _e,
840
- toggleDropdown: ae,
841
- onOptionSelected: ie,
842
- emitShowMoreEvent: se,
843
- textboxKeyboardNavigationListeners: De,
844
- listboxListeners: Re
876
+ clickOutsideDropdown: Te,
877
+ toggleDropdown: se,
878
+ onOptionSelected: re,
879
+ emitShowMoreEvent: de,
880
+ textboxKeyboardNavigationListeners: Ae,
881
+ listboxListeners: Ne
845
882
  };
846
883
  }
847
884
  });
848
- function vt(e, o, n, t, a, i) {
849
- var h;
850
- const d = E("field-label"), r = E("bento-dropdown-options-container"), l = E("error-message"), f = E("bento-typography"), O = ue("bento-keyboard-navigation-directive"), g = ue("bento-click-outside-directive");
851
- return W((y(), R("div", {
852
- class: Q(["b-dropdown", e.conditionalClasses])
885
+ function $t(e, o, i, t, n, l) {
886
+ var w;
887
+ const d = O("field-label"), s = O("bento-dropdown-options-container"), a = O("error-message"), p = O("bento-typography"), L = fe("bento-keyboard-navigation-directive"), m = fe("bento-click-outside-directive");
888
+ return H((g(), R("div", {
889
+ class: ee(["b-dropdown", e.conditionalClasses])
853
890
  }, [
854
- e.label ? (y(), A(d, {
891
+ e.label ? (g(), M(d, {
855
892
  key: 0,
856
893
  id: e.labelId,
857
894
  condensed: e.condensed,
@@ -860,8 +897,8 @@ function vt(e, o, n, t, a, i) {
860
897
  optional: e.optional,
861
898
  required: e.required
862
899
  }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : N("", !0),
863
- W((y(), R("div", B({ ref: "inputContainerRefWrapper" }, z(e.textboxKeyboardNavigationListeners, !0)), [
864
- (y(), A(ye(e.size), {
900
+ H((g(), R("div", I({ ref: "inputContainerRefWrapper" }, x(e.textboxKeyboardNavigationListeners, !0)), [
901
+ (g(), M(he(e.size), {
865
902
  ref: "inputContainerRef",
866
903
  condensed: e.condensed,
867
904
  value: e.searchTerm,
@@ -884,29 +921,30 @@ function vt(e, o, n, t, a, i) {
884
921
  onInput: o[0] || (o[0] = (b) => e.searchTerm = b),
885
922
  onOpen: e.toggleDropdown,
886
923
  onClose: e.toggleDropdown
887
- }, V({ _: 2 }, [
888
- J(e.slots, (b, v) => ({
889
- name: v,
890
- fn: M((w) => [
891
- Z(e.$slots, v, Y(G(w)), void 0, !0)
924
+ }, Y({ _: 2 }, [
925
+ G(e.slots, (b, y) => ({
926
+ name: y,
927
+ fn: P((S) => [
928
+ U(e.$slots, y, Q(X(S)), void 0, !0)
892
929
  ])
893
930
  }))
894
931
  ]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
895
932
  ], 16)), [
896
- [O]
933
+ [L]
897
934
  ]),
898
- e.inputContainerRef ? (y(), A(r, B({
935
+ e.inputContainerRef ? (g(), M(s, I({
899
936
  key: 1,
900
937
  id: e.dropdownOptionsContainerId,
901
938
  ref: "optionsContainerRef",
902
939
  "aria-label": e.computedAriaLabel,
903
940
  "empty-state": e.emptyState,
904
- "debounce-time": (h = e.search) == null ? void 0 : h.debounceTime,
941
+ "debounce-time": (w = e.search) == null ? void 0 : w.debounceTime,
905
942
  disabled: e.disabled,
906
943
  "input-size": e.size,
907
944
  "is-option-disabled": e.isOptionDisabled,
908
945
  items: e.filteredItems,
909
946
  multiple: e.multiple,
947
+ "static-categories": e.staticCategories,
910
948
  open: e.isDropdownOpen,
911
949
  "selected-value": e.value,
912
950
  searching: e.isSearching,
@@ -915,39 +953,41 @@ function vt(e, o, n, t, a, i) {
915
953
  "has-more-items": e.hasMoreItems,
916
954
  "lazy-load-type": e.lazyLoadType,
917
955
  "virtual-scroll": e.virtualScroll
918
- }, z(e.listboxListeners)), V({ _: 2 }, [
919
- J(e.slots, (b, v) => ({
920
- name: v,
921
- fn: M((w) => [
922
- Z(e.$slots, v, Y(G(w)), void 0, !0)
956
+ }, x(e.listboxListeners)), Y({ _: 2 }, [
957
+ G(e.slots, (b, y) => ({
958
+ name: y,
959
+ fn: P((S) => [
960
+ U(e.$slots, y, Q(X(S)), void 0, !0)
923
961
  ])
924
962
  }))
925
- ]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : N("", !0),
926
- e.errorMessage ? (y(), A(l, {
963
+ ]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : N("", !0),
964
+ e.errorMessage ? (g(), M(a, {
927
965
  key: 2,
928
966
  id: e.errorId,
929
967
  "error-message": e.errorMessage,
930
968
  class: "b-dropdown__error-message"
931
969
  }, null, 8, ["id", "error-message"])) : N("", !0),
932
- e.description ? (y(), A(f, {
970
+ e.description || e.hasSlot("description") ? (g(), M(p, {
933
971
  key: 3,
934
972
  id: e.descriptionId,
935
- class: Q(["b-dropdown__description", e.descriptionConditionalClasses]),
973
+ class: ee(["b-dropdown__description", e.descriptionConditionalClasses]),
936
974
  el: "span"
937
975
  }, {
938
- default: M(() => [
939
- Ae(ne(e.description), 1)
976
+ default: P(() => [
977
+ U(e.$slots, "description", {}, () => [
978
+ Ke(ae(e.description), 1)
979
+ ], !0)
940
980
  ]),
941
- _: 1
981
+ _: 3
942
982
  }, 8, ["id", "class"])) : N("", !0)
943
983
  ], 2)), [
944
- [g, e.closeOpenedDropdown]
984
+ [m, e.clickOutsideDropdown]
945
985
  ]);
946
986
  }
947
- const It = /* @__PURE__ */ k(bt, [["render", vt], ["__scopeId", "data-v-0defd8ce"]]);
987
+ const Kt = /* @__PURE__ */ F(St, [["render", $t], ["__scopeId", "data-v-fbd05464"]]);
948
988
  export {
949
- It as B,
950
- D as a,
951
- mt as u
989
+ Kt as B,
990
+ B as a,
991
+ wt as u
952
992
  };
953
- //# sourceMappingURL=dropdown.63de9aac.js.map
993
+ //# sourceMappingURL=dropdown.96431c25.js.map