@adyen/bento-vue3 1.24.0 → 1.26.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 (280) hide show
  1. package/dist/@types/packages/vue2/src/components/alert/alert.types.d.ts +3 -0
  2. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +46 -54
  3. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +86 -179
  4. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +8 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +7 -4
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +26 -11
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +18 -6
  16. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +36 -12
  17. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +18 -6
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +18 -6
  19. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +19 -53
  20. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +2 -2
  21. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +13 -7
  25. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +14 -14
  26. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -2
  28. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +3 -24
  29. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +4 -4
  30. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts +1 -0
  32. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/index.d.ts +2 -0
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +148 -0
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +150 -0
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +28 -27
  36. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +11 -7
  37. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -0
  40. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +3 -3
  42. 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 +1 -2
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +45 -9
  44. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -9
  45. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +2 -2
  46. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
  47. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +3 -2
  49. package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +8 -1
  50. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -1
  51. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
  52. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
  53. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -2
  54. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
  56. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
  57. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +22 -2
  58. package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
  60. package/dist/@types/packages/vue2/src/composables/use-click-outside/index.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  62. package/dist/accordion.js +3 -3
  63. package/dist/action-bar.js +7 -7
  64. package/dist/alert.js +126 -166
  65. package/dist/alert.js.map +1 -1
  66. package/dist/assets/base-modal.css +1 -1
  67. package/dist/assets/dialog-page.css +1 -1
  68. package/dist/assets/dropdown.css +1 -1
  69. package/dist/assets/index.css +1 -1
  70. package/dist/assets/index10.css +1 -1
  71. package/dist/assets/index11.css +1 -1
  72. package/dist/assets/index12.css +1 -1
  73. package/dist/assets/index13.css +1 -1
  74. package/dist/assets/index14.css +1 -1
  75. package/dist/assets/index15.css +1 -1
  76. package/dist/assets/index16.css +1 -1
  77. package/dist/assets/index17.css +1 -1
  78. package/dist/assets/index18.css +1 -1
  79. package/dist/assets/index19.css +1 -1
  80. package/dist/assets/index2.css +1 -1
  81. package/dist/assets/index20.css +1 -1
  82. package/dist/assets/index21.css +1 -1
  83. package/dist/assets/index22.css +1 -1
  84. package/dist/assets/index23.css +1 -1
  85. package/dist/assets/index24.css +1 -1
  86. package/dist/assets/index25.css +1 -1
  87. package/dist/assets/index26.css +1 -1
  88. package/dist/assets/index27.css +1 -1
  89. package/dist/assets/index28.css +1 -1
  90. package/dist/assets/index29.css +1 -1
  91. package/dist/assets/index3.css +1 -1
  92. package/dist/assets/index30.css +1 -1
  93. package/dist/assets/index31.css +1 -1
  94. package/dist/assets/index32.css +1 -1
  95. package/dist/assets/index33.css +1 -1
  96. package/dist/assets/index34.css +1 -1
  97. package/dist/assets/index35.css +1 -1
  98. package/dist/assets/index36.css +1 -1
  99. package/dist/assets/index37.css +1 -1
  100. package/dist/assets/index38.css +1 -1
  101. package/dist/assets/index39.css +1 -1
  102. package/dist/assets/index4.css +1 -1
  103. package/dist/assets/index40.css +1 -1
  104. package/dist/assets/index41.css +1 -1
  105. package/dist/assets/index42.css +1 -1
  106. package/dist/assets/index43.css +1 -1
  107. package/dist/assets/index44.css +1 -1
  108. package/dist/assets/index45.css +1 -1
  109. package/dist/assets/index46.css +1 -1
  110. package/dist/assets/index47.css +1 -1
  111. package/dist/assets/index48.css +1 -1
  112. package/dist/assets/index5.css +1 -1
  113. package/dist/assets/index6.css +1 -1
  114. package/dist/assets/index7.css +1 -1
  115. package/dist/assets/index8.css +1 -1
  116. package/dist/assets/index9.css +1 -1
  117. package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
  118. package/dist/avatar-image.js +1 -1
  119. package/dist/badge.js +1 -1
  120. package/dist/button.js +5 -5
  121. package/dist/card.js +168 -267
  122. package/dist/card.js.map +1 -1
  123. package/dist/checkbox.js +6 -6
  124. package/dist/chunks/{base-button.ab9c947e.js → base-button.e84acf30.js} +2 -2
  125. package/dist/chunks/{base-button.ab9c947e.js.map → base-button.e84acf30.js.map} +1 -1
  126. package/dist/chunks/{base-modal.28b5ff83.js → base-modal.29e062d0.js} +7 -7
  127. package/dist/chunks/{base-modal.28b5ff83.js.map → base-modal.29e062d0.js.map} +1 -1
  128. package/dist/chunks/{button-actions-with-menu.305991e5.js → button-actions-with-menu.7fce47a2.js} +4 -4
  129. package/dist/chunks/{button-actions-with-menu.305991e5.js.map → button-actions-with-menu.7fce47a2.js.map} +1 -1
  130. package/dist/chunks/{button-actions.ea025810.js → button-actions.642b37de.js} +3 -3
  131. package/dist/chunks/{button-actions.ea025810.js.map → button-actions.642b37de.js.map} +1 -1
  132. package/dist/chunks/{button.ce5d1f5e.js → button.60dad578.js} +3 -3
  133. package/dist/chunks/{button.ce5d1f5e.js.map → button.60dad578.js.map} +1 -1
  134. package/dist/chunks/{calendar.24a492f1.js → calendar.f38cdab9.js} +5 -5
  135. package/dist/chunks/{calendar.24a492f1.js.map → calendar.f38cdab9.js.map} +1 -1
  136. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.ab758a81.js} +2 -2
  137. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.ab758a81.js.map} +1 -1
  138. package/dist/chunks/{checkbox.d0f897e0.js → checkbox.f55ee3a5.js} +4 -4
  139. package/dist/chunks/{checkbox.d0f897e0.js.map → checkbox.f55ee3a5.js.map} +1 -1
  140. package/dist/chunks/{checkmark-circle-fill.c45a999d.js → checkmark-circle-fill.f3a69c6a.js} +2 -2
  141. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.f3a69c6a.js.map} +1 -1
  142. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.d7e31e5e.js} +2 -2
  143. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.d7e31e5e.js.map} +1 -1
  144. package/dist/chunks/{checkmark.eb3c7a06.js → checkmark.87919b24.js} +2 -2
  145. package/dist/chunks/{checkmark.eb3c7a06.js.map → checkmark.87919b24.js.map} +1 -1
  146. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.963d35e9.js} +2 -2
  147. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.963d35e9.js.map} +1 -1
  148. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.05ca20db.js} +2 -2
  149. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.05ca20db.js.map} +1 -1
  150. package/dist/chunks/{controls-group.2b31233c.js → controls-group.9e0f17b2.js} +3 -3
  151. package/dist/chunks/{controls-group.2b31233c.js.map → controls-group.9e0f17b2.js.map} +1 -1
  152. package/dist/chunks/{copy.9003ed59.js → copy.852d4cb8.js} +4 -4
  153. package/dist/chunks/{copy.9003ed59.js.map → copy.852d4cb8.js.map} +1 -1
  154. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.81925c7f.js} +2 -2
  155. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.81925c7f.js.map} +1 -1
  156. package/dist/chunks/{cross-small.b85406fe.js → cross-small.9bc6a02f.js} +2 -2
  157. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.9bc6a02f.js.map} +1 -1
  158. package/dist/chunks/{cross.26509efc.js → cross.a60533f6.js} +2 -2
  159. package/dist/chunks/{cross.26509efc.js.map → cross.a60533f6.js.map} +1 -1
  160. package/dist/chunks/dialog-page.ea67bb14.js +173 -0
  161. package/dist/chunks/dialog-page.ea67bb14.js.map +1 -0
  162. package/dist/chunks/{dropdown-default-textbox.311443a8.js → dropdown-default-textbox.ad5063c2.js} +4 -4
  163. package/dist/chunks/{dropdown-default-textbox.311443a8.js.map → dropdown-default-textbox.ad5063c2.js.map} +1 -1
  164. package/dist/chunks/{dropdown.170b43c4.js → dropdown.d8587f36.js} +295 -317
  165. package/dist/chunks/dropdown.d8587f36.js.map +1 -0
  166. package/dist/chunks/{error-message.4678cbdc.js → error-message.3fb5573a.js} +3 -3
  167. package/dist/chunks/{error-message.4678cbdc.js.map → error-message.3fb5573a.js.map} +1 -1
  168. package/dist/chunks/{fixed-scroller.f09618f2.js → fixed-scroller.59aefd1b.js} +3 -3
  169. package/dist/chunks/{fixed-scroller.f09618f2.js.map → fixed-scroller.59aefd1b.js.map} +1 -1
  170. package/dist/chunks/{footer-actions.2efe610e.js → footer-actions.89e68269.js} +4 -4
  171. package/dist/chunks/{footer-actions.2efe610e.js.map → footer-actions.89e68269.js.map} +1 -1
  172. package/dist/chunks/{index.1b1646bf.js → index.030c1dd7.js} +212 -191
  173. package/dist/chunks/index.030c1dd7.js.map +1 -0
  174. package/dist/chunks/{index.70c91b3b.js → index.07122048.js} +2 -2
  175. package/dist/chunks/{index.70c91b3b.js.map → index.07122048.js.map} +1 -1
  176. package/dist/chunks/{index.c41d1bbb.js → index.146f967e.js} +2 -2
  177. package/dist/chunks/{index.c41d1bbb.js.map → index.146f967e.js.map} +1 -1
  178. package/dist/chunks/{index.920cc1ee.js → index.5bdebf9d.js} +7 -7
  179. package/dist/chunks/{index.920cc1ee.js.map → index.5bdebf9d.js.map} +1 -1
  180. package/dist/chunks/{index.b772214b.js → index.6e0e9d21.js} +3 -3
  181. package/dist/chunks/{index.b772214b.js.map → index.6e0e9d21.js.map} +1 -1
  182. package/dist/chunks/{index.44f2aca7.js → index.8be283d5.js} +2 -2
  183. package/dist/chunks/{index.44f2aca7.js.map → index.8be283d5.js.map} +1 -1
  184. package/dist/chunks/{index.0d513625.js → index.96cd0d4c.js} +9 -9
  185. package/dist/chunks/{index.0d513625.js.map → index.96cd0d4c.js.map} +1 -1
  186. package/dist/chunks/{index.b3cb905c.js → index.9bf04b01.js} +3 -3
  187. package/dist/chunks/{index.b3cb905c.js.map → index.9bf04b01.js.map} +1 -1
  188. package/dist/chunks/{index.51fe0fc2.js → index.a3d60e4f.js} +17 -17
  189. package/dist/chunks/index.a3d60e4f.js.map +1 -0
  190. package/dist/chunks/{index.c5b58864.js → index.ba3396d3.js} +3 -3
  191. package/dist/chunks/{index.c5b58864.js.map → index.ba3396d3.js.map} +1 -1
  192. package/dist/chunks/{index.6987f880.js → index.c8ffede1.js} +7 -7
  193. package/dist/chunks/{index.6987f880.js.map → index.c8ffede1.js.map} +1 -1
  194. package/dist/chunks/{info.550f9511.js → info.205b4496.js} +2 -2
  195. package/dist/chunks/{info.550f9511.js.map → info.205b4496.js.map} +1 -1
  196. package/dist/chunks/{listbox-option-tag.bf77e0c4.js → listbox-option-tag.b6182b2e.js} +3 -3
  197. package/dist/chunks/{listbox-option-tag.bf77e0c4.js.map → listbox-option-tag.b6182b2e.js.map} +1 -1
  198. package/dist/chunks/{loading-button.cdc193c6.js → loading-button.0391ad8b.js} +4 -4
  199. package/dist/chunks/{loading-button.cdc193c6.js.map → loading-button.0391ad8b.js.map} +1 -1
  200. package/dist/chunks/{payment-method.ea1788f7.js → payment-method.31a68b9b.js} +2 -2
  201. package/dist/chunks/{payment-method.ea1788f7.js.map → payment-method.31a68b9b.js.map} +1 -1
  202. package/dist/chunks/{refresh.bd60f6a8.js → refresh.53691839.js} +2 -2
  203. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.53691839.js.map} +1 -1
  204. package/dist/chunks/{search.ade93bda.js → search.4e4ee4dd.js} +2 -2
  205. package/dist/chunks/{search.ade93bda.js.map → search.4e4ee4dd.js.map} +1 -1
  206. package/dist/chunks/{tooltip.10210728.js → tooltip.1084d92b.js} +3 -3
  207. package/dist/chunks/{tooltip.10210728.js.map → tooltip.1084d92b.js.map} +1 -1
  208. package/dist/chunks/{use-bento-toast-controller.3275a505.js → use-bento-toast-controller.98d8613c.js} +2 -2
  209. package/dist/chunks/{use-bento-toast-controller.3275a505.js.map → use-bento-toast-controller.98d8613c.js.map} +1 -1
  210. package/dist/chunks/use-cached-selected-values.852aeafe.js +1537 -0
  211. package/dist/chunks/use-cached-selected-values.852aeafe.js.map +1 -0
  212. package/dist/code-snippet.js +7 -7
  213. package/dist/code-snippet.js.map +1 -1
  214. package/dist/country.js +2 -2
  215. package/dist/currency.js +1 -1
  216. package/dist/data-grid-template.js +1 -1
  217. package/dist/data-grid.js +1317 -1256
  218. package/dist/data-grid.js.map +1 -1
  219. package/dist/date-picker.js +8 -8
  220. package/dist/date-range-picker.js +2 -2
  221. package/dist/date.js +1 -1
  222. package/dist/divider.js +1 -1
  223. package/dist/dropdown.js +7 -7
  224. package/dist/empty-state.js +3 -3
  225. package/dist/filter-bar.js +1260 -1108
  226. package/dist/filter-bar.js.map +1 -1
  227. package/dist/focus-trap.js +1 -1
  228. package/dist/form-layout.js +53 -51
  229. package/dist/form-layout.js.map +1 -1
  230. package/dist/header.js +5 -5
  231. package/dist/index.js +141 -133
  232. package/dist/index.js.map +1 -1
  233. package/dist/info-icon.js +4 -4
  234. package/dist/input-field.js +50 -48
  235. package/dist/input-field.js.map +1 -1
  236. package/dist/internal.js +31 -78
  237. package/dist/internal.js.map +1 -1
  238. package/dist/link.js +1 -1
  239. package/dist/loading-indicator.js +1 -1
  240. package/dist/menu.js +1 -1
  241. package/dist/modal-fullscreen.js +7 -7
  242. package/dist/modal.js +6 -6
  243. package/dist/pagination.js +4 -4
  244. package/dist/payment-method.js +1 -1
  245. package/dist/popover.js +1 -1
  246. package/dist/popper-container.js +1 -1
  247. package/dist/radio-group.js +112 -112
  248. package/dist/radio-group.js.map +1 -1
  249. package/dist/search-bar.js +4 -4
  250. package/dist/secondary-nav.js +2 -2
  251. package/dist/segmented-control.js +4 -4
  252. package/dist/selection-card.js +5 -5
  253. package/dist/sidepanel.js +64 -62
  254. package/dist/sidepanel.js.map +1 -1
  255. package/dist/status.js +2 -2
  256. package/dist/stepper.js +4 -4
  257. package/dist/structured-list.js +1 -1
  258. package/dist/summary-grid.js +3 -3
  259. package/dist/tabs.js +22 -20
  260. package/dist/tabs.js.map +1 -1
  261. package/dist/tag.js +3 -3
  262. package/dist/textarea.js +4 -4
  263. package/dist/timeline.js +7 -7
  264. package/dist/toast.js +5 -5
  265. package/dist/toggle.js +3 -3
  266. package/dist/tutorial.js +145 -124
  267. package/dist/tutorial.js.map +1 -1
  268. package/dist/typography.js +1 -1
  269. package/dist/web-types.json +1 -1
  270. package/package.json +7 -3
  271. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
  272. package/dist/chunks/dialog-page.2c07d294.js +0 -172
  273. package/dist/chunks/dialog-page.2c07d294.js.map +0 -1
  274. package/dist/chunks/dropdown.170b43c4.js.map +0 -1
  275. package/dist/chunks/index.1b1646bf.js.map +0 -1
  276. package/dist/chunks/index.51fe0fc2.js.map +0 -1
  277. package/dist/chunks/listbox.b6a1aea2.js +0 -1466
  278. package/dist/chunks/listbox.b6a1aea2.js.map +0 -1
  279. /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
  280. /package/dist/assets/{cross.css → checkmark-circle-fill.css} +0 -0
@@ -1,81 +1,81 @@
1
- import { ref as w, watch as Se, computed as f, defineComponent as z, useSlots as xe, toRefs as we, openBlock as g, createBlock as P, resolveDynamicComponent as Le, unref as a, mergeProps as A, withCtx as F, createElementVNode as Q, withKeys as ze, createVNode as J, toHandlers as Z, createSlots as ae, renderList as oe, renderSlot as Y, normalizeProps as ne, guardReactiveProps as se, createElementBlock as M, toDisplayString as ue, createCommentVNode as K, normalizeClass as ie, withDirectives as G, vShow as ve, nextTick as T, useAttrs as We, toRef as _, inject as je, createTextVNode as Ue } from "vue";
2
- import { d as me, B as qe } from "./index.51fe0fc2.js";
3
- import { D as le, a as ye, b as He, B as Je, c as Ye } from "./dropdown-default-textbox.311443a8.js";
4
- import { _ as q } from "./_plugin-vue_export-helper.dad06003.js";
5
- import { g as U } from "./unique-id.a2a2b458.js";
6
- import { u as Ze } from "./aria-label.ac9651a5.js";
7
- import { u as ce } from "./i18n.f7e6533e.js";
8
- import { u as Ge } from "./use-form-layout-loading.d03e5d48.js";
9
- import { B as R, a as Qe } from "./keyboard-navigation.ca47dfa8.js";
10
- import { b as c, a as re, B as de, u as Xe } from "./listbox.b6a1aea2.js";
11
- import { u as Ve } from "./use-has-slot.4d98bf29.js";
12
- import { F as et, E as tt } from "./error-message.4678cbdc.js";
13
- import { a as be } from "./index.b3cb905c.js";
14
- import { a as lt } from "./index.920cc1ee.js";
1
+ import { ref as S, watch as Le, computed as u, defineComponent as F, useSlots as we, toRefs as $e, openBlock as g, createBlock as k, resolveDynamicComponent as Oe, unref as a, mergeProps as A, withCtx as K, createElementVNode as Q, withKeys as Ue, createVNode as J, toHandlers as Z, createSlots as ne, renderList as se, renderSlot as Y, normalizeProps as ie, guardReactiveProps as re, createElementBlock as M, toDisplayString as fe, createCommentVNode as P, normalizeClass as de, withDirectives as G, vShow as ye, nextTick as T, useAttrs as qe, toRef as _, inject as He, createTextVNode as Ve } from "vue";
2
+ import { d as be, B as Je } from "./index.a3d60e4f.js";
3
+ import { D as oe, a as ge, b as Ye, B as Ze, c as Ge } from "./dropdown-default-textbox.ad5063c2.js";
4
+ import { _ as H } from "./_plugin-vue_export-helper.dad06003.js";
5
+ import { g as q } from "./unique-id.a2a2b458.js";
6
+ import { u as Qe } from "./aria-label.ac9651a5.js";
7
+ import { u as pe } from "./i18n.f7e6533e.js";
8
+ import { u as Xe } from "./use-form-layout-loading.d03e5d48.js";
9
+ import { B as R, a as et } from "./keyboard-navigation.ca47dfa8.js";
10
+ import { c as d, b as ue, B as ce, a as tt, u as lt } from "./use-cached-selected-values.852aeafe.js";
11
+ import { u as at } from "./use-has-slot.4d98bf29.js";
12
+ import { F as ot, E as nt } from "./error-message.3fb5573a.js";
13
+ import { a as he } from "./index.9bf04b01.js";
14
+ import { a as st } from "./index.5bdebf9d.js";
15
15
  import "../assets/dropdown.css";
16
16
  var D = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(D || {});
17
- const fe = {
17
+ const me = {
18
18
  "en-US": {
19
19
  apply: "Apply",
20
20
  cancel: "Cancel",
21
21
  noOptionsMatchThisSearch: "No options match this search"
22
22
  }
23
- }, at = (e, o, t, l) => {
24
- const n = w(e.value), { t: s } = ce({ messages: fe });
25
- Se(e, () => {
23
+ }, it = (e, o, t, l) => {
24
+ const n = S(e.value), { t: i } = pe({ messages: me });
25
+ Le(e, () => {
26
26
  n.value = e.value;
27
27
  });
28
- const r = f(
28
+ const r = u(
29
29
  () => JSON.stringify(n.value) === JSON.stringify(e.value)
30
- ), d = () => {
31
- l(c.SELECT, n.value), l(c.CLOSE_DROPDOWN);
32
- }, u = () => {
33
- n.value = e.value, l(c.CLOSE_DROPDOWN);
30
+ ), c = () => {
31
+ l(d.SELECT, n.value), l(d.CLOSE_DROPDOWN);
32
+ }, f = () => {
33
+ n.value = e.value, l(d.CLOSE_DROPDOWN);
34
34
  }, y = () => {
35
35
  t.value && o.value && (n.value = e.value);
36
- }, v = f(() => [
36
+ }, p = u(() => [
37
37
  {
38
- title: s("apply"),
39
- event: d,
38
+ title: i("apply"),
39
+ event: c,
40
40
  disabled: r.value
41
41
  },
42
42
  {
43
- title: s("cancel"),
44
- event: u
43
+ title: i("cancel"),
44
+ event: f
45
45
  }
46
- ]), h = (i) => {
47
- n.value = i, o.value || l(c.SELECT, i);
48
- }, L = (i) => {
49
- h(i), l(c.TAB);
50
- }, $ = (i) => {
51
- h(i), l(c.ENTER);
52
- }, O = (i) => {
53
- h(i), l(c.SPACE);
54
- }, S = () => {
55
- u(), l(c.ESCAPE);
56
- }, E = () => {
57
- l(c.SHOW_MORE);
46
+ ]), h = (s) => {
47
+ n.value = s, o.value || l(d.SELECT, s);
48
+ }, w = (s) => {
49
+ h(s), l(d.TAB);
50
+ }, $ = (s) => {
51
+ h(s), l(d.ENTER);
52
+ }, O = (s) => {
53
+ h(s), l(d.SPACE);
54
+ }, x = () => {
55
+ f(), l(d.ESCAPE);
56
+ }, L = () => {
57
+ l(d.SHOW_MORE);
58
58
  }, N = {
59
- [c.SELECT]: h,
60
- [c.SHOW_MORE]: E,
61
- [c.TAB]: L,
62
- [c.SPACE]: O,
63
- [c.ENTER]: $
59
+ [d.SELECT]: h,
60
+ [d.SHOW_MORE]: L,
61
+ [d.TAB]: w,
62
+ [d.SPACE]: O,
63
+ [d.ENTER]: $
64
64
  };
65
65
  return {
66
66
  // Values
67
- actions: v,
67
+ actions: p,
68
68
  internalSelectedValue: n,
69
69
  // Methods
70
70
  listeners: N,
71
- onEscapeKey: S,
71
+ onEscapeKey: x,
72
72
  onOutsideDropdownClick: y
73
73
  };
74
- }, ot = z({
75
- i18n: { messages: fe },
74
+ }, rt = F({
75
+ i18n: { messages: me },
76
76
  name: "bento-dropdown-options-container"
77
- }), nt = /* @__PURE__ */ z({
78
- ...ot,
77
+ }), dt = /* @__PURE__ */ F({
78
+ ...rt,
79
79
  props: {
80
80
  /**
81
81
  * Defines a string value that labels an interactive element.
@@ -138,8 +138,8 @@ const fe = {
138
138
  */
139
139
  lazyLoadType: {
140
140
  type: String,
141
- default: re.AUTOMATIC,
142
- validator: (e) => Object.values(re).includes(e)
141
+ default: ue.AUTOMATIC,
142
+ validator: (e) => Object.values(ue).includes(e)
143
143
  },
144
144
  /**
145
145
  * Indicates if new options are loading.
@@ -160,7 +160,7 @@ const fe = {
160
160
  * Set to an empty string `''` if you don't want any of the available options to be selected for single select
161
161
  */
162
162
  selectedValue: {
163
- type: [String, Number, Array],
163
+ type: Array,
164
164
  default: null
165
165
  },
166
166
  /**
@@ -169,7 +169,7 @@ const fe = {
169
169
  *
170
170
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
171
171
  */
172
- searching: de.props.searching,
172
+ searching: ce.props.searching,
173
173
  /**
174
174
  * If enabled, dropdown will display non-selectable, static categories
175
175
  */
@@ -178,7 +178,7 @@ const fe = {
178
178
  * Reference to the DOM element or Vue component for positioning
179
179
  * the Dropdown container.
180
180
  */
181
- targetElement: { type: be.props.targetElement.type, required: !0 },
181
+ targetElement: { type: he.props.targetElement.type, required: !0 },
182
182
  /**
183
183
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
184
184
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -189,15 +189,15 @@ const fe = {
189
189
  }
190
190
  },
191
191
  setup(e, { expose: o, emit: t }) {
192
- const l = e, n = xe(), { selectedValue: s, multiple: r } = we(l), d = w(null), { t: u } = ce({ messages: fe }), y = f(() => l.open && !l.disabled), v = f(() => u("noOptionsMatchThisSearch")), h = f(() => ({
192
+ const l = e, n = we(), { selectedValue: i, multiple: r } = $e(l), c = S(null), { t: f } = pe({ messages: me }), y = u(() => l.open && !l.disabled), p = u(() => f("noOptionsMatchThisSearch")), h = u(() => ({
193
193
  "b-dropdown-options-container--single": !(l != null && l.multiple)
194
- })), L = f(() => ({
194
+ })), w = u(() => ({
195
195
  "b-dropdown-options-container__listbox--small": l.inputSize === D.SMALL,
196
196
  "b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
197
- })), { actions: $, internalSelectedValue: O, listeners: S, onEscapeKey: E, onOutsideDropdownClick: N } = at(s, r, y, t), i = f(() => l != null && l.multiple ? lt : be), p = f(() => {
198
- var B;
197
+ })), { actions: $, internalSelectedValue: O, listeners: x, onEscapeKey: L, onOutsideDropdownClick: N } = it(i, r, y, t), s = u(() => l != null && l.multiple ? st : he), m = u(() => {
198
+ var E;
199
199
  const b = {
200
- "min-width": `${(B = l == null ? void 0 : l.targetElement) == null ? void 0 : B.clientWidth}px`,
200
+ "min-width": `${(E = l == null ? void 0 : l.targetElement) == null ? void 0 : E.clientWidth}px`,
201
201
  "max-width": "min(500px, 95%)"
202
202
  };
203
203
  return l != null && l.multiple ? {
@@ -205,7 +205,7 @@ const fe = {
205
205
  actions: $.value,
206
206
  divider: !0,
207
207
  fallbackPosition: ["top-start"],
208
- id: U(`dropdown-options-${l.id}`),
208
+ id: q(`dropdown-options-${l.id}`),
209
209
  open: l.open,
210
210
  position: "bottom-start",
211
211
  style: {
@@ -226,40 +226,40 @@ const fe = {
226
226
  });
227
227
  return o({
228
228
  onOutsideDropdownClick: N
229
- }), (b, B) => (g(), P(Le(a(i)), A({
229
+ }), (b, E) => (g(), k(Oe(a(s)), A({
230
230
  class: ["b-dropdown-options-container", a(h)]
231
- }, a(p)), {
232
- default: F(() => [
231
+ }, a(m)), {
232
+ default: K(() => [
233
233
  Q("div", {
234
- onKeydown: B[0] || (B[0] = ze(
234
+ onKeydown: E[0] || (E[0] = Ue(
235
235
  //@ts-ignore
236
- (...H) => a(E) && a(E)(...H),
236
+ (...z) => a(L) && a(L)(...z),
237
237
  ["esc"]
238
238
  ))
239
239
  }, [
240
- J(a(de), A({
240
+ J(a(ce), A({
241
241
  id: e.id,
242
242
  ref_key: "dropdownOptionsListboxRef",
243
- ref: d,
243
+ ref: c,
244
244
  "aria-label": e.ariaLabel,
245
- class: ["b-dropdown-options-container__listbox", a(L)],
245
+ class: ["b-dropdown-options-container__listbox", a(w)],
246
246
  "empty-state": e.emptyState,
247
247
  "is-option-disabled": e.isOptionDisabled,
248
248
  items: e.items,
249
249
  "selected-value": a(O),
250
250
  multiple: a(r),
251
251
  "static-categories": e.staticCategories,
252
- "no-results-message": a(v),
252
+ "no-results-message": a(p),
253
253
  searching: e.searching,
254
254
  loading: e.loading,
255
255
  "lazy-load-type": e.lazyLoadType,
256
256
  "has-more-items": e.hasMoreItems,
257
257
  "virtual-scroll": e.virtualScroll
258
- }, Z(a(S))), ae({ _: 2 }, [
259
- oe(a(n), (H, x) => ({
260
- name: x,
261
- fn: F((k) => [
262
- Y(b.$slots, x, ne(se(k)), void 0, !0)
258
+ }, Z(a(x))), ne({ _: 2 }, [
259
+ se(a(n), (z, W) => ({
260
+ name: W,
261
+ fn: K((X) => [
262
+ Y(b.$slots, W, ie(re(X)), void 0, !0)
263
263
  ])
264
264
  }))
265
265
  ]), 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"])
@@ -269,17 +269,17 @@ const fe = {
269
269
  }, 16, ["class"]));
270
270
  }
271
271
  });
272
- const st = /* @__PURE__ */ q(nt, [["__scopeId", "data-v-31e6ca61"]]);
273
- let ge = 0;
274
- const it = {
272
+ const ut = /* @__PURE__ */ H(dt, [["__scopeId", "data-v-148aeb07"]]);
273
+ let xe = 0;
274
+ const ct = {
275
275
  beforeCreate() {
276
- this.uuid = ge.toString(), ge += 1;
276
+ this.uuid = xe.toString(), xe += 1;
277
277
  }
278
- }, rt = { key: 0 }, dt = /* @__PURE__ */ Q("path", {
278
+ }, ft = { key: 0 }, pt = /* @__PURE__ */ Q("path", {
279
279
  fill: "#00112C",
280
280
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
281
281
  }, null, -1);
282
- function ut(e, o, t, l, n, s) {
282
+ function mt(e, o, t, l, n, i) {
283
283
  return g(), M("svg", A({ role: "img" }, e.$attrs, {
284
284
  class: "ui-assets-icons-16",
285
285
  xmlns: "http://www.w3.org/2000/svg",
@@ -287,21 +287,21 @@ function ut(e, o, t, l, n, s) {
287
287
  height: "16",
288
288
  fill: "none"
289
289
  }), [
290
- e.$attrs["svg-title"] ? (g(), M("title", rt, ue(e.$attrs["svg-title"]), 1)) : K("", !0),
291
- dt
290
+ e.$attrs["svg-title"] ? (g(), M("title", ft, fe(e.$attrs["svg-title"]), 1)) : P("", !0),
291
+ pt
292
292
  ], 16);
293
293
  }
294
- const ct = /* @__PURE__ */ q(it, [["render", ut]]);
295
- let he = 0;
296
- const ft = {
294
+ const vt = /* @__PURE__ */ H(ct, [["render", mt]]);
295
+ let Se = 0;
296
+ const yt = {
297
297
  beforeCreate() {
298
- this.uuid = he.toString(), he += 1;
298
+ this.uuid = Se.toString(), Se += 1;
299
299
  }
300
- }, pt = { key: 0 }, vt = /* @__PURE__ */ Q("path", {
300
+ }, bt = { key: 0 }, gt = /* @__PURE__ */ Q("path", {
301
301
  fill: "#00112C",
302
302
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
303
303
  }, null, -1);
304
- function mt(e, o, t, l, n, s) {
304
+ function ht(e, o, t, l, n, i) {
305
305
  return g(), M("svg", A({ role: "img" }, e.$attrs, {
306
306
  class: "ui-assets-icons-16",
307
307
  xmlns: "http://www.w3.org/2000/svg",
@@ -309,15 +309,15 @@ function mt(e, o, t, l, n, s) {
309
309
  height: "16",
310
310
  fill: "none"
311
311
  }), [
312
- e.$attrs["svg-title"] ? (g(), M("title", pt, ue(e.$attrs["svg-title"]), 1)) : K("", !0),
313
- vt
312
+ e.$attrs["svg-title"] ? (g(), M("title", bt, fe(e.$attrs["svg-title"]), 1)) : P("", !0),
313
+ gt
314
314
  ], 16);
315
315
  }
316
- const yt = /* @__PURE__ */ q(ft, [["render", mt]]), bt = { class: "b-dropdown-small-textbox__chevron" }, gt = z({
316
+ const xt = /* @__PURE__ */ H(yt, [["render", ht]]), St = { class: "b-dropdown-small-textbox__chevron" }, Lt = F({
317
317
  name: "dropdown-small-textbox",
318
318
  inheritAttrs: !1
319
- }), ht = /* @__PURE__ */ z({
320
- ...gt,
319
+ }), wt = /* @__PURE__ */ F({
320
+ ...Lt,
321
321
  props: {
322
322
  /**
323
323
  * The number of additional items that have been selected in the dropdown.
@@ -378,29 +378,29 @@ const yt = /* @__PURE__ */ q(ft, [["render", mt]]), bt = { class: "b-dropdown-sm
378
378
  },
379
379
  emits: ["open", "close"],
380
380
  setup(e, { emit: o }) {
381
- const t = e, l = f(() => ({
382
- [`b-dropdown-small-textbox--${le.DISABLED}`]: t.disabled,
383
- [`b-dropdown-small-textbox--${le.READONLY}`]: t.readonly,
384
- [`b-dropdown-small-textbox--${le.OPENED}`]: t.open
385
- })), n = f(() => t.open && !t.disabled && !t.readonly), s = () => {
381
+ const t = e, l = u(() => ({
382
+ [`b-dropdown-small-textbox--${oe.DISABLED}`]: t.disabled,
383
+ [`b-dropdown-small-textbox--${oe.READONLY}`]: t.readonly,
384
+ [`b-dropdown-small-textbox--${oe.OPENED}`]: t.open
385
+ })), n = u(() => t.open && !t.disabled && !t.readonly), i = () => {
386
386
  o("open");
387
387
  }, r = () => {
388
388
  o("close");
389
- }, d = {
390
- [ye.OPEN]: s,
391
- [ye.CLOSE]: r
389
+ }, c = {
390
+ [ge.OPEN]: i,
391
+ [ge.CLOSE]: r
392
392
  };
393
- return (u, y) => (g(), M("div", {
394
- class: ie(["b-dropdown-small-textbox", a(l)])
393
+ return (f, y) => (g(), M("div", {
394
+ class: de(["b-dropdown-small-textbox", a(l)])
395
395
  }, [
396
- J(He, A({ ...u.$attrs, ...u.$props }, { class: "b-dropdown-small-textbox__textbox" }, Z(d)), {
397
- icon: F(() => [
398
- Q("div", bt, [
399
- G(J(a(yt), { "svg-title": "opened" }, null, 512), [
400
- [ve, a(n)]
396
+ J(Ye, A({ ...f.$attrs, ...f.$props }, { class: "b-dropdown-small-textbox__textbox" }, Z(c)), {
397
+ icon: K(() => [
398
+ Q("div", St, [
399
+ G(J(a(xt), { "svg-title": "opened" }, null, 512), [
400
+ [ye, a(n)]
401
401
  ]),
402
- G(J(a(ct), { "svg-title": "closed" }, null, 512), [
403
- [ve, !a(n)]
402
+ G(J(a(vt), { "svg-title": "closed" }, null, 512), [
403
+ [ye, !a(n)]
404
404
  ])
405
405
  ])
406
406
  ]),
@@ -409,141 +409,117 @@ const yt = /* @__PURE__ */ q(ft, [["render", mt]]), bt = { class: "b-dropdown-sm
409
409
  ], 2));
410
410
  }
411
411
  });
412
- const St = /* @__PURE__ */ q(ht, [["__scopeId", "data-v-4703b87f"]]), xt = ({ items: e, placeholder: o, selectedValue: t, staticCategories: l }) => {
413
- if (t.value == null || t.value === "")
414
- return o.value || null;
415
- let n;
416
- if (l) {
417
- const s = e.value.find((r) => r.items.some((d) => d.value === t.value));
418
- n = s == null ? void 0 : s.items.find((r) => r.value === t.value);
419
- } else
420
- n = e.value.find(({ value: s }) => s === t.value);
421
- return n ? n.label : t.value.toString();
422
- }, wt = ({ selectedValues: e, items: o, placeholder: t }) => {
423
- var l;
424
- return !e.value || ((l = e.value) == null ? void 0 : l.length) === 0 ? t.value || null : e.value.map((n) => {
425
- const s = o.value.find(({ value: r }) => r === n);
426
- return s ? s.label : n;
427
- }).join(", ");
428
- }, Lt = ({ selectedValues: e, items: o, placeholder: t }) => {
429
- var l;
430
- return !e.value || !((l = e.value) != null && l.length) ? t.value || null : o.value.reduce((n, s) => {
431
- if (s.items) {
432
- const r = s.items.filter(
433
- (u) => e.value.includes(u.value)
434
- );
435
- r.length === s.items.length ? n.push(s.label) : r.forEach(({ label: u }) => n.push(u));
436
- }
437
- return e.value.includes(s.value) && n.push(s.label), n;
438
- }, []).join(", ");
439
- }, $t = ({ items: e, placeholder: o, value: t, multiple: l, staticCategories: n }) => {
440
- const s = f(() => e.value.find((d) => {
441
- var u;
442
- return (u = d.items) == null ? void 0 : u.length;
443
- }));
444
- return f(() => l.value ? s.value ? Lt({ selectedValues: t, placeholder: o, items: e }) : wt({ selectedValues: t, items: e, placeholder: o }) : xt({
445
- items: e,
446
- placeholder: o,
447
- selectedValue: t,
448
- staticCategories: n.value
412
+ const $t = /* @__PURE__ */ H(wt, [["__scopeId", "data-v-4703b87f"]]), Ot = (e, o) => o.value.reduce((t, l) => {
413
+ if (l.items) {
414
+ const n = l.items.filter(
415
+ (r) => e.value.find((c) => c.value === r.value)
416
+ );
417
+ n.length === l.items.length ? t.push(l.label) : n.forEach(({ label: r }) => t.push(r));
418
+ }
419
+ return e.value.find((n) => n.value === l.value) && t.push(l.label), t;
420
+ }, []).join(", "), Et = ({ items: e, placeholder: o, selectedValues: t }) => {
421
+ const l = u(() => e.value.find((i) => {
422
+ var r;
423
+ return (r = i.items) == null ? void 0 : r.length;
449
424
  }));
450
- }, $e = (e) => {
425
+ return u(() => t.value.length ? l.value ? Ot(t, e) : t.value.map(({ label: i }) => i).join(", ") : o.value || null);
426
+ }, Ee = (e) => {
451
427
  var o;
452
428
  (o = e.value.$children) == null || o[0].$refs.textbox.focus();
453
- }, Ot = ({
429
+ }, Ct = ({
454
430
  inputContainerRef: e,
455
431
  optionsContainerRef: o,
456
432
  selectedValueIndex: t,
457
433
  isDropdownOpen: l,
458
434
  isDynamicFltering: n,
459
- items: s,
435
+ items: i,
460
436
  isMultiple: r
461
- }, d, u, y) => {
462
- const v = ({ detail: i }) => {
463
- i.preventDefault(), l.value || (u(), T(() => {
464
- var p, b;
465
- r ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[t.value].$el.focus();
437
+ }, c, f, y) => {
438
+ const p = ({ detail: s }) => {
439
+ s.preventDefault(), l.value || (f(), T(() => {
440
+ var m, b;
441
+ r ? (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[t.value].$el.focus();
466
442
  }));
467
- }, h = ({ detail: i }) => {
468
- i.preventDefault(), l.value || (u(), T(() => {
469
- var p;
470
- (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
443
+ }, h = ({ detail: s }) => {
444
+ s.preventDefault(), l.value || (f(), T(() => {
445
+ var m;
446
+ (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus();
471
447
  }));
472
- }, L = () => {
473
- l.value || (u(), T(() => {
474
- var i, p;
448
+ }, w = () => {
449
+ l.value || (f(), T(() => {
450
+ var s, m;
475
451
  if (r) {
476
452
  const b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
477
- (i = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[b.length - 1].$children[s.length - 1].$el.focus();
453
+ (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[b.length - 1].$children[i.length - 1].$el.focus();
478
454
  } else
479
- (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[s.length - 1].$el.focus();
455
+ (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[i.length - 1].$el.focus();
480
456
  }));
481
457
  }, $ = () => {
482
- l.value && (y(), $e(e));
458
+ l.value && (y(), Ee(e));
483
459
  }, O = () => {
484
- l.value || u(), T(() => {
485
- var i;
486
- (i = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus();
460
+ l.value || f(), T(() => {
461
+ var s;
462
+ (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus();
487
463
  });
488
- }, S = ({ detail: i }) => {
489
- i.preventDefault(), d(), l.value && T(() => {
490
- var p, b;
491
- r ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[t.value].$el.focus();
464
+ }, x = ({ detail: s }) => {
465
+ s.preventDefault(), c(), l.value && T(() => {
466
+ var m, b;
467
+ r ? (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[t.value].$el.focus();
492
468
  });
493
- }, E = () => {
494
- d(), l.value && T(() => {
495
- var i, p;
496
- r ? (i = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus() : (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[t.value].$el.focus();
469
+ }, L = () => {
470
+ c(), l.value && T(() => {
471
+ var s, m;
472
+ r ? (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus() : (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[t.value].$el.focus();
497
473
  });
498
474
  };
499
- return f(() => ({
500
- ...n.value ? {} : { [R.SPACE]: S },
501
- [R.ENTER]: E,
502
- [R.ARROW_DOWN]: v,
475
+ return u(() => ({
476
+ ...n.value ? {} : { [R.SPACE]: x },
477
+ [R.ENTER]: L,
478
+ [R.ARROW_DOWN]: p,
503
479
  [R.ARROW_UP]: h,
504
- [R.END]: L,
480
+ [R.END]: w,
505
481
  [R.ESCAPE]: $,
506
482
  [R.HOME]: O
507
483
  }));
508
- }, Et = ({ inputContainerRef: e, isDropdownOpen: o }, t) => {
484
+ }, Dt = ({ inputContainerRef: e, isDropdownOpen: o }, t) => {
509
485
  const l = () => {
510
486
  o.value && t(), T(() => {
511
- $e(e);
487
+ Ee(e);
512
488
  });
513
489
  };
514
490
  return {
515
- [c.ENTER]: l,
516
- [c.ESCAPE]: l,
517
- [c.TAB]: l,
518
- [c.SPACE]: l
491
+ [d.ENTER]: l,
492
+ [d.ESCAPE]: l,
493
+ [d.TAB]: l,
494
+ [d.SPACE]: l
519
495
  };
520
496
  };
521
- function Ct(e, o, t) {
522
- const l = w(e), n = w(o), s = (d, u = []) => u.flatMap((y) => y.label.toLocaleLowerCase().includes(d) ? [y, ...s(d, y.items)] : y.items ? [...s(d, y.items)] : []);
523
- return Se(l, () => {
497
+ function Bt(e, o, t) {
498
+ const l = S(e), n = S(o), i = (c, f = []) => f.flatMap((y) => y.label.toLocaleLowerCase().includes(c) ? [y, ...i(c, y.items)] : y.items ? [...i(c, y.items)] : []);
499
+ return Le(l, () => {
524
500
  t !== void 0 && t(l.value);
525
- }), f(() => {
501
+ }), u(() => {
526
502
  if (!l.value || t !== void 0)
527
503
  return n.value;
528
- const d = l.value.toLocaleLowerCase();
529
- return s(d, n.value);
504
+ const c = l.value.toLocaleLowerCase();
505
+ return i(c, n.value);
530
506
  });
531
507
  }
532
- const Oe = {
508
+ const Ce = {
533
509
  "en-US": {
534
510
  all: "All",
535
511
  clearSearch: "Clear filter",
536
512
  ariaLabelFallback: "Dropdown"
537
513
  }
538
- }, Dt = Symbol("input field component injection key"), Bt = z({
539
- i18n: { messages: Oe },
514
+ }, It = Symbol("input field component injection key"), _t = F({
515
+ i18n: { messages: Ce },
540
516
  name: "b-dropdown",
541
517
  components: {
542
- DropdownInputDefault: Ye,
543
- DropdownInputSmall: St
518
+ DropdownInputDefault: Ge,
519
+ DropdownInputSmall: $t
544
520
  }
545
- }), It = /* @__PURE__ */ z({
546
- ...Bt,
521
+ }), Rt = /* @__PURE__ */ F({
522
+ ..._t,
547
523
  props: {
548
524
  /**
549
525
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -630,8 +606,8 @@ const Oe = {
630
606
  */
631
607
  lazyLoadType: {
632
608
  type: String,
633
- default: de.props.lazyLoadType.default,
634
- validator: (e) => Object.values(re).includes(e)
609
+ default: ce.props.lazyLoadType.default,
610
+ validator: (e) => Object.values(ue).includes(e)
635
611
  },
636
612
  /*
637
613
  * If enabled, the user will be able to select multiple items.
@@ -701,202 +677,204 @@ const Oe = {
701
677
  },
702
678
  emits: ["input", "show-more"],
703
679
  setup(e, { emit: o }) {
704
- var pe;
705
- const t = e, l = We(), n = xe(), s = Ve(n), { t: r } = ce({ messages: Oe }), d = w(null), u = w(null), y = w(null), v = w(!1), h = U("bento-dropdown-options-container"), L = U("dropdown-label"), $ = U("dropdown-description"), O = U("dropdown-error"), { isReadOnly: S } = Ge(_(t, "readonly")), E = w(l["aria-label"]), { ariaLabel: N } = we(t), i = Ze({
706
- ariaLabel: E.value,
680
+ var ve;
681
+ const t = e, l = qe(), n = we(), i = at(n), { t: r } = pe({ messages: Ce }), c = S(null), f = S(null), y = S(null), p = S(!1), h = q("bento-dropdown-options-container"), w = q("dropdown-label"), $ = q("dropdown-description"), O = q("dropdown-error"), { isReadOnly: x } = Xe(_(t, "readonly")), { cachedSelectedListboxOptions: L, cachedListboxSelectedValues: N, setCachedValues: s } = tt(
682
+ _(t, "items"),
683
+ _(t, "value"),
684
+ _(t, "multiple")
685
+ ), m = S(l["aria-label"]), { ariaLabel: b } = $e(t), E = Qe({
686
+ ariaLabel: m.value,
707
687
  // TODO: take this line away when the aria-label props is removed
708
- label: N,
688
+ label: b,
709
689
  defaultFallback: r("ariaLabelFallback")
710
- }), p = t.size === D.SMALL || je(Dt, !1), b = f(() => p ? D.SMALL : D.DEFAULT), B = f(() => ({
690
+ }), z = t.size === D.SMALL || He(It, !1), W = u(() => z ? D.SMALL : D.DEFAULT), X = u(() => ({
711
691
  "b-dropdown--condensed": t.condensed
712
- })), H = f(() => ({
692
+ })), De = u(() => ({
713
693
  "b-dropdown__description--error": !!t.errorMessage
714
- })), x = w(""), k = _(t, "items"), Ee = Ct(x, k, (pe = t == null ? void 0 : t.search) == null ? void 0 : pe.searchEvent), X = f(() => t.dynamicFiltering && !!x.value), Ce = $t({
715
- items: k,
716
- staticCategories: _(t, "staticCategories"),
717
- multiple: _(t, "multiple"),
694
+ })), B = S(""), V = _(t, "items"), Be = Bt(B, V, (ve = t == null ? void 0 : t.search) == null ? void 0 : ve.searchEvent), ee = u(() => t.dynamicFiltering && !!B.value), Ie = Et({
695
+ items: V,
718
696
  placeholder: _(t, "placeholder"),
719
- value: _(t, "value")
720
- }), De = f(() => {
721
- if (t != null && t.multiple)
697
+ selectedValues: L
698
+ }), _e = u(() => {
699
+ if (t != null && t.multiple && Array.isArray(t.value))
722
700
  return t.items.filter(
723
- ({ value: m }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(m)
701
+ ({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
724
702
  );
725
703
  if (!t.multiple && t.staticCategories) {
726
- const m = t.items.find(
727
- (I) => I.items.some((W) => W.value === t.value)
704
+ const v = t.items.find(
705
+ (I) => I.items.some((j) => j.value === t.value)
728
706
  );
729
- return m ? m.items.find((I) => I.value === t.value) : null;
707
+ return v ? v.items.find((I) => I.value === t.value) : null;
730
708
  }
731
- return t.items.find(({ value: m }) => m === (t == null ? void 0 : t.value));
732
- }), Be = f(() => {
733
- const m = t.items.findIndex(({ value: C }) => t.value === C);
734
- return m > 0 ? m : 0;
735
- }), { isMultiLevelSelect: Ie, flattenedItemsList: _e } = Xe(k), Re = f(() => {
736
- var m;
737
- if (t.multiple) {
738
- const C = (m = t == null ? void 0 : t.value) == null ? void 0 : m.length;
739
- return (Ie.value ? _e.value.length : k.value.length) === C ? r("all") : C;
709
+ return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
710
+ }), Re = u(() => {
711
+ const v = t.items.findIndex(({ value: C }) => t.value === C);
712
+ return v > 0 ? v : 0;
713
+ }), { isMultiLevelSelect: Te, flattenedItemsList: Ae } = lt(V), Me = u(() => {
714
+ var v;
715
+ if (t.multiple && !t.hasMoreItems) {
716
+ const C = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length;
717
+ return (Te.value ? Ae.value.length : V.value.length) === C ? r("all") : C;
740
718
  }
741
719
  return null;
742
- }), Te = f(
720
+ }), Ne = u(
743
721
  () => `${t.description ? $ : ""} ${t.errorMessage ? O : ""}`.trim() || null
744
- ), Ae = () => {
745
- S.value || (v.value = !0);
746
- }, V = () => {
747
- v.value = !1;
748
- }, ee = () => {
749
- S.value || (v.value = !v.value, X.value && (x.value = ""));
750
- }, Me = () => {
751
- X.value && (x.value = ""), v.value && (v.value = !1, y.value.onOutsideDropdownClick());
752
- }, Ne = (m) => {
753
- t.multiple || (x.value = "", v.value = !1), o("input", m);
754
- }, ke = () => {
755
- o(c.SHOW_MORE);
756
- }, Pe = Ot(
722
+ ), ke = () => {
723
+ x.value || (p.value = !0);
724
+ }, te = () => {
725
+ p.value = !1;
726
+ }, le = () => {
727
+ x.value || (p.value = !p.value, ee.value && (B.value = ""));
728
+ }, Pe = () => {
729
+ ee.value && (B.value = ""), p.value && (p.value = !1, y.value.onOutsideDropdownClick());
730
+ }, Ke = (v) => {
731
+ t.multiple || (B.value = "", p.value = !1), s(v), o("input", N.value);
732
+ }, Fe = () => {
733
+ o(d.SHOW_MORE);
734
+ }, ze = Ct(
757
735
  {
758
- inputContainerRef: d,
736
+ inputContainerRef: c,
759
737
  optionsContainerRef: y,
760
- selectedValueIndex: Be,
761
- isDropdownOpen: v,
738
+ selectedValueIndex: Re,
739
+ isDropdownOpen: p,
762
740
  isDynamicFltering: _(t, "dynamicFiltering"),
763
741
  items: t.items,
764
742
  isMultiple: t.multiple
765
743
  },
766
- ee,
767
- Ae,
768
- V
769
- ), Ke = Et(
744
+ le,
745
+ ke,
746
+ te
747
+ ), We = Dt(
770
748
  {
771
- inputContainerRef: d,
772
- isDropdownOpen: v
749
+ inputContainerRef: c,
750
+ isDropdownOpen: p
773
751
  },
774
- V
775
- ), Fe = {
776
- [c.CLOSE_DROPDOWN]: V,
777
- [c.SELECT]: Ne,
778
- [c.SHOW_MORE]: ke,
779
- ...Ke
752
+ te
753
+ ), je = {
754
+ [d.CLOSE_DROPDOWN]: te,
755
+ [d.SELECT]: Ke,
756
+ [d.SHOW_MORE]: Fe,
757
+ ...We
780
758
  };
781
- return t.error && me(
759
+ return t.error && be(
782
760
  'BentoDropdown "error" property',
783
761
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
784
762
  Having the field as "undefined" will hide/remove the error.
785
763
  <bento-dropdown errorMessage="Error message text" />`,
786
764
  "2.0.0"
787
- ), t.size && me('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (m, C) => {
765
+ ), t.size && be('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (v, C) => {
788
766
  var I;
789
767
  return G((g(), M("div", {
790
- class: ie(["b-dropdown", a(B)])
768
+ class: de(["b-dropdown", a(X)])
791
769
  }, [
792
- e.label ? (g(), P(a(et), {
770
+ e.label ? (g(), k(a(ot), {
793
771
  key: 0,
794
- id: a(L),
772
+ id: a(w),
795
773
  condensed: e.condensed,
796
774
  label: e.label,
797
775
  "tooltip-text": e.tooltipText,
798
776
  optional: e.optional,
799
777
  required: e.required
800
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : K("", !0),
778
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : P("", !0),
801
779
  G((g(), M("div", A({
802
780
  ref_key: "inputContainerRefWrapper",
803
- ref: u
804
- }, Z(a(Pe), !0)), [
805
- (g(), P(Le(a(b)), {
781
+ ref: f
782
+ }, Z(a(ze), !0)), [
783
+ (g(), k(Oe(a(W)), {
806
784
  ref_key: "inputContainerRef",
807
- ref: d,
785
+ ref: c,
808
786
  condensed: e.condensed,
809
- value: x.value,
810
- "additional-items-selected": a(Re),
787
+ value: B.value,
788
+ "additional-items-selected": a(Me),
811
789
  ariaControls: a(h),
812
- ariaExpanded: v.value,
813
- "aria-labelledby": e.label ? a(L) : null,
814
- "aria-describedby": a(Te),
815
- "aria-label": a(i),
816
- "aria-readonly": a(S),
817
- readonly: a(S),
790
+ ariaExpanded: p.value,
791
+ "aria-labelledby": e.label ? a(w) : null,
792
+ "aria-describedby": a(Ne),
793
+ "aria-label": a(E),
794
+ "aria-readonly": a(x),
795
+ readonly: a(x),
818
796
  disabled: e.disabled,
819
- "display-value": a(Ce),
797
+ "display-value": a(Ie),
820
798
  "dynamic-filtering": e.dynamicFiltering,
821
799
  "is-invalid": !!e.errorMessage || e.error,
822
800
  multiple: e.multiple,
823
- open: v.value,
824
- "selected-value-item": a(p) ? void 0 : a(De),
801
+ open: p.value,
802
+ "selected-value-item": a(z) ? void 0 : a(_e),
825
803
  "show-slot-content-in-multiple": e.showSlotContentInMultiple,
826
- onInput: C[0] || (C[0] = (W) => x.value = W),
827
- onOpen: ee,
828
- onClose: ee
829
- }, ae({ _: 2 }, [
830
- oe(a(n), (W, j) => ({
831
- name: j,
832
- fn: F((te) => [
833
- Y(m.$slots, j, ne(se(te)), void 0, !0)
804
+ onInput: C[0] || (C[0] = (j) => B.value = j),
805
+ onOpen: le,
806
+ onClose: le
807
+ }, ne({ _: 2 }, [
808
+ se(a(n), (j, U) => ({
809
+ name: U,
810
+ fn: K((ae) => [
811
+ Y(v.$slots, U, ie(re(ae)), void 0, !0)
834
812
  ])
835
813
  }))
836
814
  ]), 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"]))
837
815
  ], 16)), [
838
- [a(Qe)]
816
+ [a(et)]
839
817
  ]),
840
- d.value ? (g(), P(a(st), A({
818
+ c.value ? (g(), k(a(ut), A({
841
819
  key: 1,
842
820
  id: a(h),
843
821
  ref_key: "optionsContainerRef",
844
822
  ref: y,
845
- "aria-label": a(i),
823
+ "aria-label": a(E),
846
824
  "empty-state": e.emptyState,
847
825
  "debounce-time": (I = e.search) == null ? void 0 : I.debounceTime,
848
826
  disabled: e.disabled,
849
- "input-size": a(b),
827
+ "input-size": a(W),
850
828
  "is-option-disabled": e.isOptionDisabled,
851
- items: a(Ee),
829
+ items: a(Be),
852
830
  multiple: e.multiple,
853
831
  "static-categories": e.staticCategories,
854
- open: v.value,
855
- "selected-value": e.value,
856
- searching: a(X),
857
- "target-element": u.value,
832
+ open: p.value,
833
+ "selected-value": a(L),
834
+ searching: a(ee),
835
+ "target-element": f.value,
858
836
  loading: e.loading,
859
837
  "has-more-items": e.hasMoreItems,
860
838
  "lazy-load-type": e.lazyLoadType,
861
839
  "virtual-scroll": e.virtualScroll
862
- }, Z(Fe)), ae({ _: 2 }, [
863
- oe(a(n), (W, j) => ({
864
- name: j,
865
- fn: F((te) => [
866
- Y(m.$slots, j, ne(se(te)), void 0, !0)
840
+ }, Z(je)), ne({ _: 2 }, [
841
+ se(a(n), (j, U) => ({
842
+ name: U,
843
+ fn: K((ae) => [
844
+ Y(v.$slots, U, ie(re(ae)), void 0, !0)
867
845
  ])
868
846
  }))
869
- ]), 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"])) : K("", !0),
870
- e.errorMessage ? (g(), P(a(tt), {
847
+ ]), 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"])) : P("", !0),
848
+ e.errorMessage ? (g(), k(a(nt), {
871
849
  key: 2,
872
850
  id: a(O),
873
851
  "error-message": e.errorMessage,
874
852
  class: "b-dropdown__error-message"
875
- }, null, 8, ["id", "error-message"])) : K("", !0),
876
- e.description || a(s)("description") ? (g(), P(a(qe), {
853
+ }, null, 8, ["id", "error-message"])) : P("", !0),
854
+ e.description || a(i)("description") ? (g(), k(a(Je), {
877
855
  key: 3,
878
856
  id: a($),
879
- class: ie(["b-dropdown__description", a(H)]),
857
+ class: de(["b-dropdown__description", a(De)]),
880
858
  el: "span"
881
859
  }, {
882
- default: F(() => [
883
- Y(m.$slots, "description", {}, () => [
884
- Ue(ue(e.description), 1)
860
+ default: K(() => [
861
+ Y(v.$slots, "description", {}, () => [
862
+ Ve(fe(e.description), 1)
885
863
  ], !0)
886
864
  ]),
887
865
  _: 3
888
- }, 8, ["id", "class"])) : K("", !0)
866
+ }, 8, ["id", "class"])) : P("", !0)
889
867
  ], 2)), [
890
- [a(Je), Me]
868
+ [a(Ze), Pe]
891
869
  ]);
892
870
  };
893
871
  }
894
872
  });
895
- const qt = /* @__PURE__ */ q(It, [["__scopeId", "data-v-c9ecdfc9"]]);
873
+ const Vt = /* @__PURE__ */ H(Rt, [["__scopeId", "data-v-d6374028"]]);
896
874
  export {
897
- qt as B,
898
- Dt as I,
875
+ Vt as B,
876
+ It as I,
899
877
  D as a,
900
- Ct as u
878
+ Bt as u
901
879
  };
902
- //# sourceMappingURL=dropdown.170b43c4.js.map
880
+ //# sourceMappingURL=dropdown.d8587f36.js.map