@adyen/bento-vue3 1.28.1 → 1.29.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 (242) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/core/src/types/index.d.ts +1 -0
  3. package/dist/@types/packages/vue2/src/components/{internal/avatar → avatar}/avatar.vue.d.ts +4 -4
  4. package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/avatar-image.vue.d.ts +15 -4
  5. package/dist/@types/packages/vue2/src/components/button/components/loading-button/index.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -3
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -4
  8. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
  9. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +16 -0
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +10 -1
  11. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +6 -2
  12. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -4
  13. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +2 -0
  14. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +3 -0
  15. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -0
  16. package/dist/@types/packages/vue2/src/components/inspector/index.d.ts +2 -0
  17. package/dist/@types/packages/vue2/src/components/inspector/inspector.d.ts +2 -0
  18. package/dist/@types/packages/vue2/src/components/inspector/inspector.types.d.ts +2 -0
  19. package/dist/@types/packages/vue2/src/components/inspector/inspector.vue.d.ts +110 -0
  20. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +0 -1
  21. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  22. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -4
  23. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
  24. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +12 -1
  25. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  27. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
  28. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +3 -3
  29. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +7 -7
  30. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  32. package/dist/@types/packages/vue2/src/types/index.d.ts +1 -1
  33. package/dist/@types/packages/vue2/src/types/listbox.d.ts +1 -1
  34. package/dist/action-bar.js +1 -1
  35. package/dist/assets/accordion-item.css +1 -1
  36. package/dist/assets/action-bar.css +1 -1
  37. package/dist/assets/avatar.css +1 -0
  38. package/dist/assets/base-modal.css +1 -1
  39. package/dist/assets/card.css +1 -1
  40. package/dist/assets/code-snippet.css +1 -1
  41. package/dist/assets/data-grid.css +1 -1
  42. package/dist/assets/dialog-page.css +1 -1
  43. package/dist/assets/dropdown-default-textbox.css +1 -1
  44. package/dist/assets/dropdown.css +1 -1
  45. package/dist/assets/error-message.css +1 -1
  46. package/dist/assets/filter-bar.css +1 -1
  47. package/dist/assets/input-field.css +1 -1
  48. package/dist/assets/inspector.css +1 -0
  49. package/dist/assets/listbox-option-tag.css +1 -1
  50. package/dist/assets/loading-button.css +1 -1
  51. package/dist/assets/menu.css +1 -1
  52. package/dist/assets/modal-fullscreen.css +1 -1
  53. package/dist/assets/popover.css +1 -1
  54. package/dist/assets/radio-group.css +1 -1
  55. package/dist/assets/search-bar.css +1 -1
  56. package/dist/assets/secondary-nav.css +1 -1
  57. package/dist/assets/segmented-control.css +1 -1
  58. package/dist/assets/selection-card-group.css +1 -1
  59. package/dist/assets/sidepanel.css +1 -1
  60. package/dist/assets/structured-list-item.css +1 -1
  61. package/dist/assets/textarea.css +1 -1
  62. package/dist/assets/timeline-item.css +1 -1
  63. package/dist/avatar.js +5 -0
  64. package/dist/avatar.js.map +1 -0
  65. package/dist/button.js +2 -2
  66. package/dist/card.js +1 -1
  67. package/dist/checkbox.js +2 -2
  68. package/dist/chunks/{action-bar.BvAtk-jI.js → action-bar.UcSSukRr.js} +5 -5
  69. package/dist/chunks/{action-bar.BvAtk-jI.js.map → action-bar.UcSSukRr.js.map} +1 -1
  70. package/dist/chunks/avatar.IHx0kN0u.js +94 -0
  71. package/dist/chunks/avatar.IHx0kN0u.js.map +1 -0
  72. package/dist/chunks/{base-modal.BgYlnM_Q.js → base-modal.CY-t-QYh.js} +2 -2
  73. package/dist/chunks/{base-modal.BgYlnM_Q.js.map → base-modal.CY-t-QYh.js.map} +1 -1
  74. package/dist/chunks/{button-actions-with-menu.C14zvgVo.js → button-actions-with-menu.Dnyh1m51.js} +4 -4
  75. package/dist/chunks/{button-actions-with-menu.C14zvgVo.js.map → button-actions-with-menu.Dnyh1m51.js.map} +1 -1
  76. package/dist/chunks/{button-actions.hGhRdgC2.js → button-actions.BpLFzJJY.js} +2 -2
  77. package/dist/chunks/{button-actions.hGhRdgC2.js.map → button-actions.BpLFzJJY.js.map} +1 -1
  78. package/dist/chunks/{card.C7zLKdcy.js → card.DOQt8sH5.js} +2 -2
  79. package/dist/chunks/{card.C7zLKdcy.js.map → card.DOQt8sH5.js.map} +1 -1
  80. package/dist/chunks/{checkbox-group.BcT-eZ2p.js → checkbox-group.DS_f6k8E.js} +4 -4
  81. package/dist/chunks/{checkbox-group.BcT-eZ2p.js.map → checkbox-group.DS_f6k8E.js.map} +1 -1
  82. package/dist/chunks/{checkbox.xjIFibII.js → checkbox.C5cMvVMm.js} +3 -3
  83. package/dist/chunks/{checkbox.xjIFibII.js.map → checkbox.C5cMvVMm.js.map} +1 -1
  84. package/dist/chunks/{code-snippet.e8bxDBCO.js → code-snippet.68epWI-z.js} +184 -208
  85. package/dist/chunks/code-snippet.68epWI-z.js.map +1 -0
  86. package/dist/chunks/{controls-group.DWu8NqKL.js → controls-group.fAwpZLvA.js} +2 -2
  87. package/dist/chunks/{controls-group.DWu8NqKL.js.map → controls-group.fAwpZLvA.js.map} +1 -1
  88. package/dist/chunks/{copy.BhO7oRgC.js → copy.B6CXENok.js} +3 -3
  89. package/dist/chunks/{copy.BhO7oRgC.js.map → copy.B6CXENok.js.map} +1 -1
  90. package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js +29 -0
  91. package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js.map +1 -0
  92. package/dist/chunks/{dashboard-section.DKeDjvkB.js → dashboard-section.Bzj5vzTE.js} +3 -3
  93. package/dist/chunks/{dashboard-section.DKeDjvkB.js.map → dashboard-section.Bzj5vzTE.js.map} +1 -1
  94. package/dist/chunks/{dashed-underline.DGTW7Y_-.js → dashed-underline.SEXinixe.js} +3 -3
  95. package/dist/chunks/{dashed-underline.DGTW7Y_-.js.map → dashed-underline.SEXinixe.js.map} +1 -1
  96. package/dist/chunks/{data-grid-template.6Nls-D4o.js → data-grid-template.BRRSej-5.js} +2 -2
  97. package/dist/chunks/{data-grid-template.6Nls-D4o.js.map → data-grid-template.BRRSej-5.js.map} +1 -1
  98. package/dist/chunks/{data-grid.CTLlk_RW.js → data-grid.D0dri6Lc.js} +15 -15
  99. package/dist/chunks/{data-grid.CTLlk_RW.js.map → data-grid.D0dri6Lc.js.map} +1 -1
  100. package/dist/chunks/{date-picker.CoPmllNh.js → date-picker.NKXc916N.js} +15 -15
  101. package/dist/chunks/{date-picker.CoPmllNh.js.map → date-picker.NKXc916N.js.map} +1 -1
  102. package/dist/chunks/{date-range-picker.C36PxTCQ.js → date-range-picker.DXdh7SCV.js} +13 -13
  103. package/dist/chunks/{date-range-picker.C36PxTCQ.js.map → date-range-picker.DXdh7SCV.js.map} +1 -1
  104. package/dist/chunks/{dropdown-default-textbox.-Oy2eT40.js → dropdown-default-textbox.Bx0-dxhU.js} +112 -96
  105. package/dist/chunks/dropdown-default-textbox.Bx0-dxhU.js.map +1 -0
  106. package/dist/chunks/{dropdown-tag.C-LxVWlt.js → dropdown-tag.DPTV12uX.js} +14 -13
  107. package/dist/chunks/dropdown-tag.DPTV12uX.js.map +1 -0
  108. package/dist/chunks/{dropdown.CxBlK83Q.js → dropdown.CoVT4i0B.js} +360 -349
  109. package/dist/chunks/dropdown.CoVT4i0B.js.map +1 -0
  110. package/dist/chunks/{error-message.DyjHMyEZ.js → error-message.oV0CXm1m.js} +3 -3
  111. package/dist/chunks/{error-message.DyjHMyEZ.js.map → error-message.oV0CXm1m.js.map} +1 -1
  112. package/dist/chunks/es6.BvpG4Oi6.js +9 -0
  113. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -0
  114. package/dist/chunks/expand.D1DTqaBO.js +33 -0
  115. package/dist/chunks/expand.D1DTqaBO.js.map +1 -0
  116. package/dist/chunks/{filter-bar.DmPkRBf4.js → filter-bar.d1IKC-Nr.js} +329 -320
  117. package/dist/chunks/filter-bar.d1IKC-Nr.js.map +1 -0
  118. package/dist/chunks/{footer-actions.D9nQFagi.js → footer-actions.Cuiq9UJH.js} +2 -2
  119. package/dist/chunks/{footer-actions.D9nQFagi.js.map → footer-actions.Cuiq9UJH.js.map} +1 -1
  120. package/dist/chunks/{header.Cr7115vM.js → header.B4il13uF.js} +3 -3
  121. package/dist/chunks/{header.Cr7115vM.js.map → header.B4il13uF.js.map} +1 -1
  122. package/dist/chunks/index.DKQuLmwu.js +182 -0
  123. package/dist/chunks/{index.Dytpif0G.js.map → index.DKQuLmwu.js.map} +1 -1
  124. package/dist/chunks/{info-icon.DvL1e5Iu.js → info-icon.B8AL324x.js} +3 -3
  125. package/dist/chunks/{info-icon.DvL1e5Iu.js.map → info-icon.B8AL324x.js.map} +1 -1
  126. package/dist/chunks/{input-field.iH1ICJkQ.js → input-field.CKh69yj2.js} +119 -113
  127. package/dist/chunks/input-field.CKh69yj2.js.map +1 -0
  128. package/dist/chunks/inspector.types.88WOdYA6.js +116 -0
  129. package/dist/chunks/inspector.types.88WOdYA6.js.map +1 -0
  130. package/dist/chunks/listbox-option-tag.m6aNQTJN.js +55 -0
  131. package/dist/chunks/listbox-option-tag.m6aNQTJN.js.map +1 -0
  132. package/dist/chunks/loading-button.BxDrDxmI.js +123 -0
  133. package/dist/chunks/loading-button.BxDrDxmI.js.map +1 -0
  134. package/dist/chunks/{menu.DN-xhDQU.js → menu.PtOT_BKl.js} +2 -2
  135. package/dist/chunks/{menu.DN-xhDQU.js.map → menu.PtOT_BKl.js.map} +1 -1
  136. package/dist/chunks/{modal-fullscreen.CeogBGfr.js → modal-fullscreen.BkuEaCdO.js} +2 -2
  137. package/dist/chunks/{modal-fullscreen.CeogBGfr.js.map → modal-fullscreen.BkuEaCdO.js.map} +1 -1
  138. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js → modal.vue_vue_type_script_setup_true_lang.CQXfT4eW.js} +4 -4
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map → modal.vue_vue_type_script_setup_true_lang.CQXfT4eW.js.map} +1 -1
  140. package/dist/chunks/{pagination.BwG1MF4j.js → pagination.DeOBHgWf.js} +2 -2
  141. package/dist/chunks/{pagination.BwG1MF4j.js.map → pagination.DeOBHgWf.js.map} +1 -1
  142. package/dist/chunks/{popover.DRb2GW7t.js → popover.CvUTNkQG.js} +3 -3
  143. package/dist/chunks/{popover.DRb2GW7t.js.map → popover.CvUTNkQG.js.map} +1 -1
  144. package/dist/chunks/{popper-container.B76aE-3-.js → popper-container.50jF-_VU.js} +487 -435
  145. package/dist/chunks/popper-container.50jF-_VU.js.map +1 -0
  146. package/dist/chunks/{radio-group.B9HCffiZ.js → radio-group.r5U1kQIe.js} +95 -93
  147. package/dist/chunks/radio-group.r5U1kQIe.js.map +1 -0
  148. package/dist/chunks/search-bar.DmXr-0Ax.js +116 -0
  149. package/dist/chunks/search-bar.DmXr-0Ax.js.map +1 -0
  150. package/dist/chunks/secondary-nav.DnQPIiYO.js +137 -0
  151. package/dist/chunks/secondary-nav.DnQPIiYO.js.map +1 -0
  152. package/dist/chunks/{segmented-control.DyINOWUl.js → segmented-control.ClihHHOR.js} +2 -2
  153. package/dist/chunks/{segmented-control.DyINOWUl.js.map → segmented-control.ClihHHOR.js.map} +1 -1
  154. package/dist/chunks/{selection-card-group.C-YLePO4.js → selection-card-group.AkttDBv5.js} +3 -3
  155. package/dist/chunks/{selection-card-group.C-YLePO4.js.map → selection-card-group.AkttDBv5.js.map} +1 -1
  156. package/dist/chunks/{sidepanel.B-LtA15e.js → sidepanel.Dv73FrCn.js} +2 -2
  157. package/dist/chunks/{sidepanel.B-LtA15e.js.map → sidepanel.Dv73FrCn.js.map} +1 -1
  158. package/dist/chunks/{structured-list-item.DQiPKhOI.js → structured-list-item.DrYz5IsA.js} +4 -4
  159. package/dist/chunks/{structured-list-item.DQiPKhOI.js.map → structured-list-item.DrYz5IsA.js.map} +1 -1
  160. package/dist/chunks/{summary-grid-item-custom.B941Kdvq.js → summary-grid-item-custom.MloQOKnI.js} +4 -4
  161. package/dist/chunks/{summary-grid-item-custom.B941Kdvq.js.map → summary-grid-item-custom.MloQOKnI.js.map} +1 -1
  162. package/dist/chunks/{tag.CPhtHjDD.js → tag.D0imyBj_.js} +2 -2
  163. package/dist/chunks/{tag.CPhtHjDD.js.map → tag.D0imyBj_.js.map} +1 -1
  164. package/dist/chunks/textarea.meOoBSoa.js +267 -0
  165. package/dist/chunks/textarea.meOoBSoa.js.map +1 -0
  166. package/dist/chunks/{timeline-item.Cap9MXkH.js → timeline-item.BF6w6sUT.js} +181 -168
  167. package/dist/chunks/timeline-item.BF6w6sUT.js.map +1 -0
  168. package/dist/chunks/{tooltip.CTR3s-Rm.js → tooltip.C0jTO2wt.js} +2 -2
  169. package/dist/chunks/{tooltip.CTR3s-Rm.js.map → tooltip.C0jTO2wt.js.map} +1 -1
  170. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js → tutorial.vue_vue_type_script_setup_true_lang.PX3UIJgR.js} +5 -5
  171. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map → tutorial.vue_vue_type_script_setup_true_lang.PX3UIJgR.js.map} +1 -1
  172. package/dist/chunks/{use-cached-selected-values.BQBWFTvi.js → use-cached-selected-values.Bh2VFRA-.js} +3 -3
  173. package/dist/chunks/use-cached-selected-values.Bh2VFRA-.js.map +1 -0
  174. package/dist/code-snippet.js +1 -1
  175. package/dist/dashboard-template.js +1 -1
  176. package/dist/dashed-underline.js +1 -1
  177. package/dist/data-grid-template.js +1 -1
  178. package/dist/data-grid.js +1 -1
  179. package/dist/date-picker.js +1 -1
  180. package/dist/date-range-picker.js +1 -1
  181. package/dist/dropdown.js +11 -10
  182. package/dist/dropdown.js.map +1 -1
  183. package/dist/filter-bar.js +1 -1
  184. package/dist/header.js +1 -1
  185. package/dist/index.js +241 -236
  186. package/dist/index.js.map +1 -1
  187. package/dist/info-icon.js +1 -1
  188. package/dist/input-field.js +1 -1
  189. package/dist/inspector.js +6 -0
  190. package/dist/inspector.js.map +1 -0
  191. package/dist/internal.js +30 -31
  192. package/dist/menu.js +1 -1
  193. package/dist/modal-fullscreen.js +1 -1
  194. package/dist/modal.js +2 -2
  195. package/dist/pagination.js +1 -1
  196. package/dist/popover.js +1 -1
  197. package/dist/popper-container.js +1 -1
  198. package/dist/radio-group.js +1 -1
  199. package/dist/search-bar.js +2 -2
  200. package/dist/secondary-nav.js +1 -1
  201. package/dist/segmented-control.js +1 -1
  202. package/dist/selection-card.js +1 -1
  203. package/dist/sidepanel.js +1 -1
  204. package/dist/structured-list.js +1 -1
  205. package/dist/summary-grid.js +1 -1
  206. package/dist/tag.js +1 -1
  207. package/dist/textarea.js +1 -1
  208. package/dist/timeline.js +1 -1
  209. package/dist/tutorial.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +2 -2
  212. package/dist/assets/avatar-image.css +0 -1
  213. package/dist/avatar-image.js +0 -7
  214. package/dist/avatar-image.js.map +0 -1
  215. package/dist/chunks/avatar-image.DO4w_loj.js +0 -61
  216. package/dist/chunks/avatar-image.DO4w_loj.js.map +0 -1
  217. package/dist/chunks/code-snippet.e8bxDBCO.js.map +0 -1
  218. package/dist/chunks/dropdown-default-textbox.-Oy2eT40.js.map +0 -1
  219. package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +0 -1
  220. package/dist/chunks/dropdown.CxBlK83Q.js.map +0 -1
  221. package/dist/chunks/filter-bar.DmPkRBf4.js.map +0 -1
  222. package/dist/chunks/index.Dytpif0G.js +0 -125
  223. package/dist/chunks/input-field.iH1ICJkQ.js.map +0 -1
  224. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +0 -94
  225. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +0 -1
  226. package/dist/chunks/loading-button.BI32pZiW.js +0 -117
  227. package/dist/chunks/loading-button.BI32pZiW.js.map +0 -1
  228. package/dist/chunks/popper-container.B76aE-3-.js.map +0 -1
  229. package/dist/chunks/radio-group.B9HCffiZ.js.map +0 -1
  230. package/dist/chunks/search-bar.DxskyM4e.js +0 -107
  231. package/dist/chunks/search-bar.DxskyM4e.js.map +0 -1
  232. package/dist/chunks/secondary-nav.D66nxbU-.js +0 -112
  233. package/dist/chunks/secondary-nav.D66nxbU-.js.map +0 -1
  234. package/dist/chunks/textarea.CJ8xiMjv.js +0 -288
  235. package/dist/chunks/textarea.CJ8xiMjv.js.map +0 -1
  236. package/dist/chunks/timeline-item.Cap9MXkH.js.map +0 -1
  237. package/dist/chunks/use-cached-selected-values.BQBWFTvi.js.map +0 -1
  238. /package/dist/@types/packages/{vue2/src/components/button → core/src}/components/loading-button/loading-button.types.d.ts +0 -0
  239. /package/dist/@types/packages/{vue2 → core}/src/types/omit-strict.d.ts +0 -0
  240. /package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/avatar-image.types.d.ts +0 -0
  241. /package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/index.d.ts +0 -0
  242. /package/dist/@types/packages/vue2/src/components/{internal/avatar → avatar}/index.d.ts +0 -0
@@ -1,81 +1,81 @@
1
- import { ref as w, watch as we, computed as u, defineComponent as F, useSlots as xe, toRefs as $e, openBlock as g, createBlock as k, resolveDynamicComponent as Oe, unref as l, mergeProps as A, withCtx as K, createElementVNode as Q, withKeys as He, 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 Ve, toRef as I, inject as _e, createTextVNode as Je } from "vue";
2
- import { d as be, B as Ye } from "./typography.D7onlQ9v.js";
3
- import { a as oe, b as ge, c as Ze, B as Ge, D as Qe } from "./dropdown-default-textbox.-Oy2eT40.js";
4
- import { _ as V } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
- import { g as q } from "./unique-id.XFfoKuc2.js";
6
- import { u as Xe } from "./aria-label.CaUURpnB.js";
7
- import { u as pe } from "./i18n.DY5YXG5f.js";
8
- import { u as et } from "./use-form-layout-loading.D3lALhtC.js";
9
- import { B as R, a as tt } from "./keyboard-navigation.Clz1jOaA.js";
10
- import { a as d, B as ue, b as ce, c as at, u as lt } from "./use-cached-selected-values.BQBWFTvi.js";
11
- import { u as ot } from "./use-has-slot.B7eQSabc.js";
12
- import { F as nt, E as st } from "./error-message.DyjHMyEZ.js";
13
- import { P as he } from "./popper-container.B76aE-3-.js";
14
- import { B as it } from "./popover.DRb2GW7t.js";
1
+ import { ref as S, watch as xe, computed as c, defineComponent as z, useSlots as $e, toRefs as Ee, openBlock as h, createBlock as k, resolveDynamicComponent as Oe, unref as l, mergeProps as A, withCtx as K, createElementVNode as X, withKeys as Ve, createVNode as Y, toHandlers as G, createSlots as ie, renderList as re, renderSlot as Z, normalizeProps as de, guardReactiveProps as ue, createElementBlock as N, toDisplayString as me, createCommentVNode as P, normalizeClass as ce, withDirectives as Q, vShow as ge, nextTick as T, useAttrs as _e, toRef as I, inject as Je, createTextVNode as Ye } from "vue";
2
+ import { d as he, B as Ze } from "./typography.D7onlQ9v.js";
3
+ import { g as H } from "./unique-id.XFfoKuc2.js";
4
+ import { u as Ge } from "./aria-label.CaUURpnB.js";
5
+ import { u as ve } from "./i18n.DY5YXG5f.js";
6
+ import { u as Qe } from "./use-form-layout-loading.D3lALhtC.js";
7
+ import { b as ne, c as q, d as Xe, B as V, a as et, D as tt } from "./dropdown-default-textbox.Bx0-dxhU.js";
8
+ import { B as R, a as at } from "./keyboard-navigation.Clz1jOaA.js";
9
+ import { a as u, B as fe, b as pe, c as lt, u as ot } from "./use-cached-selected-values.Bh2VFRA-.js";
10
+ import { u as nt } from "./use-has-slot.B7eQSabc.js";
11
+ import { F as st, E as it } from "./error-message.oV0CXm1m.js";
12
+ import { P as Le } from "./popper-container.50jF-_VU.js";
13
+ import { B as rt } from "./popover.CvUTNkQG.js";
14
+ import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
15
+ import { s as se } from "./events.CMzGybJJ.js";
15
16
  import "../assets/dropdown.css";
16
- var H = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(H || {});
17
- const me = {
17
+ const ye = {
18
18
  "en-US": {
19
19
  apply: "Apply",
20
20
  cancel: "Cancel",
21
21
  noOptionsMatchThisSearch: "No options match this search"
22
22
  }
23
- }, rt = (e, o, t, a) => {
24
- const n = w(e.value), { t: i } = pe({ messages: me });
25
- we(e, () => {
26
- n.value = e.value;
23
+ }, dt = (t, o, e, a) => {
24
+ const n = S(t.value), { t: r } = ve({ messages: ye });
25
+ xe(t, () => {
26
+ n.value = t.value;
27
27
  });
28
- const r = u(
29
- () => JSON.stringify(n.value) === JSON.stringify(e.value)
30
- ), c = () => {
31
- a(d.SELECT, n.value), a(d.CLOSE_DROPDOWN);
32
- }, f = () => {
33
- n.value = e.value, a(d.CLOSE_DROPDOWN);
34
- }, y = () => {
35
- t.value && o.value && (n.value = e.value);
36
- }, p = u(() => [
28
+ const d = c(
29
+ () => JSON.stringify(n.value) === JSON.stringify(t.value)
30
+ ), f = () => {
31
+ a(u.SELECT, n.value), a(u.CLOSE_DROPDOWN);
32
+ }, b = () => {
33
+ n.value = t.value, a(u.CLOSE_DROPDOWN);
34
+ }, m = () => {
35
+ e.value && o.value && (n.value = t.value);
36
+ }, p = c(() => [
37
37
  {
38
- title: i("apply"),
39
- event: c,
40
- disabled: r.value
38
+ title: r("apply"),
39
+ event: f,
40
+ disabled: d.value
41
41
  },
42
42
  {
43
- title: i("cancel"),
44
- event: f
43
+ title: r("cancel"),
44
+ event: b
45
45
  }
46
- ]), h = (s) => {
47
- n.value = s, o.value || a(d.SELECT, s);
48
- }, $ = (s) => {
49
- h(s), a(d.TAB);
50
- }, O = (s) => {
51
- h(s), a(d.ENTER);
46
+ ]), i = (s) => {
47
+ n.value = s, o.value || a(u.SELECT, s);
48
+ }, x = (s) => {
49
+ i(s), a(u.TAB);
52
50
  }, E = (s) => {
53
- h(s), a(d.SPACE);
51
+ i(s), a(u.ENTER);
52
+ }, O = (s) => {
53
+ i(s), a(u.SPACE);
54
54
  }, L = () => {
55
- f(), a(d.ESCAPE);
56
- }, x = () => {
57
- a(d.SHOW_MORE);
58
- }, N = {
59
- [d.SELECT]: h,
60
- [d.SHOW_MORE]: x,
61
- [d.TAB]: $,
62
- [d.SPACE]: E,
63
- [d.ENTER]: O
55
+ b(), a(u.ESCAPE);
56
+ }, $ = () => {
57
+ a(u.SHOW_MORE);
58
+ }, M = {
59
+ [u.SELECT]: i,
60
+ [u.SHOW_MORE]: $,
61
+ [u.TAB]: x,
62
+ [u.SPACE]: O,
63
+ [u.ENTER]: E
64
64
  };
65
65
  return {
66
66
  // Values
67
67
  actions: p,
68
68
  internalSelectedValue: n,
69
69
  // Methods
70
- listeners: N,
70
+ listeners: M,
71
71
  onEscapeKey: L,
72
- onOutsideDropdownClick: y
72
+ onOutsideDropdownClick: m
73
73
  };
74
- }, dt = F({
75
- i18n: { messages: me },
74
+ }, ut = z({
75
+ i18n: { messages: ye },
76
76
  name: "bento-dropdown-options-container"
77
- }), ut = /* @__PURE__ */ F({
78
- ...dt,
77
+ }), ct = /* @__PURE__ */ z({
78
+ ...ut,
79
79
  props: {
80
80
  /**
81
81
  * Defines a string value that labels an interactive element.
@@ -130,8 +130,8 @@ const me = {
130
130
  */
131
131
  lazyLoadType: {
132
132
  type: String,
133
- default: ue.AUTOMATIC,
134
- validator: (e) => Object.values(ue).includes(e)
133
+ default: fe.AUTOMATIC,
134
+ validator: (t) => Object.values(fe).includes(t)
135
135
  },
136
136
  /**
137
137
  * Indicates if new options are loading.
@@ -161,7 +161,7 @@ const me = {
161
161
  *
162
162
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
163
163
  */
164
- searching: ce.props.searching,
164
+ searching: pe.props.searching,
165
165
  /**
166
166
  * If enabled, dropdown will display non-selectable, static categories
167
167
  */
@@ -170,7 +170,7 @@ const me = {
170
170
  * Reference to the DOM element or Vue component for positioning
171
171
  * the Dropdown container.
172
172
  */
173
- targetElement: { type: he.props.targetElement.type, required: !0 },
173
+ targetElement: { type: Le.props.targetElement.type, required: !0 },
174
174
  /**
175
175
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
176
176
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -180,28 +180,28 @@ const me = {
180
180
  default: !1
181
181
  }
182
182
  },
183
- setup(e, { expose: o, emit: t }) {
184
- const a = e, n = xe(), { selectedValue: i, multiple: r } = $e(a), c = w(null), { t: f } = pe({ messages: me }), y = u(() => a.open && !a.disabled), p = u(() => f("noOptionsMatchThisSearch")), h = u(() => ({
183
+ setup(t, { expose: o, emit: e }) {
184
+ const a = t, n = $e(), { selectedValue: r, multiple: d } = Ee(a), f = S(null), { t: b } = ve({ messages: ye }), m = c(() => a.open && !a.disabled), p = c(() => b("noOptionsMatchThisSearch")), i = c(() => ({
185
185
  "b-dropdown-options-container--single": !(a != null && a.multiple)
186
- })), $ = u(() => ({
186
+ })), x = c(() => ({
187
187
  "b-dropdown-options-container__listbox--single": !(a != null && a.multiple)
188
- })), { actions: O, internalSelectedValue: E, listeners: L, onEscapeKey: x, onOutsideDropdownClick: N } = rt(i, r, y, t), s = u(() => a != null && a.multiple ? it : he), m = u(() => {
189
- var S;
190
- const b = {
191
- "min-width": `${(S = a == null ? void 0 : a.targetElement) == null ? void 0 : S.clientWidth}px`,
188
+ })), { actions: E, internalSelectedValue: O, listeners: L, onEscapeKey: $, onOutsideDropdownClick: M } = dt(r, d, m, e), s = c(() => a != null && a.multiple ? rt : Le), v = c(() => {
189
+ var w;
190
+ const g = {
191
+ "min-width": `${(w = a == null ? void 0 : a.targetElement) == null ? void 0 : w.clientWidth}px`,
192
192
  "max-width": "min(500px, 95%)"
193
193
  };
194
194
  return a != null && a.multiple ? {
195
195
  actionsLayout: "space-between",
196
- actions: O.value,
196
+ actions: E.value,
197
197
  divider: !0,
198
198
  fallbackPosition: ["top-start"],
199
- id: q(`dropdown-options-${a.id}`),
199
+ id: H(`dropdown-options-${a.id}`),
200
200
  open: a.open,
201
201
  position: "bottom-start",
202
202
  style: {
203
203
  width: "auto",
204
- ...b
204
+ ...g
205
205
  },
206
206
  targetElement: a.targetElement
207
207
  } : {
@@ -209,49 +209,49 @@ const me = {
209
209
  offset: [0, 8],
210
210
  position: "bottom-start",
211
211
  style: {
212
- display: y.value ? "block" : "none",
213
- ...b
212
+ display: m.value ? "block" : "none",
213
+ ...g
214
214
  },
215
215
  targetElement: a.targetElement
216
216
  };
217
217
  });
218
218
  return o({
219
- onOutsideDropdownClick: N
220
- }), (b, S) => (g(), k(Oe(l(s)), A({
221
- class: ["b-dropdown-options-container", l(h)],
222
- "aria-label": e.ariaLabel
223
- }, l(m)), {
219
+ onOutsideDropdownClick: M
220
+ }), (g, w) => (h(), k(Oe(l(s)), A({
221
+ class: ["b-dropdown-options-container", l(i)],
222
+ "aria-label": t.ariaLabel
223
+ }, l(v)), {
224
224
  default: K(() => [
225
- Q("div", {
226
- onKeydown: S[0] || (S[0] = He(
225
+ X("div", {
226
+ onKeydown: w[0] || (w[0] = Ve(
227
227
  //@ts-ignore
228
- (...z) => l(x) && l(x)(...z),
228
+ (...F) => l($) && l($)(...F),
229
229
  ["esc"]
230
230
  ))
231
231
  }, [
232
- J(l(ce), A({
233
- id: e.id,
232
+ Y(l(pe), A({
233
+ id: t.id,
234
234
  ref_key: "dropdownOptionsListboxRef",
235
- ref: c,
236
- "aria-label": e.ariaLabel,
237
- class: ["b-dropdown-options-container__listbox", l($)],
238
- "empty-state": e.emptyState,
239
- "is-option-disabled": e.isOptionDisabled,
240
- items: e.items,
241
- "selected-value": l(E),
242
- multiple: l(r),
243
- "static-categories": e.staticCategories,
235
+ ref: f,
236
+ "aria-label": t.ariaLabel,
237
+ class: ["b-dropdown-options-container__listbox", l(x)],
238
+ "empty-state": t.emptyState,
239
+ "is-option-disabled": t.isOptionDisabled,
240
+ items: t.items,
241
+ "selected-value": l(O),
242
+ multiple: l(d),
243
+ "static-categories": t.staticCategories,
244
244
  "no-results-message": l(p),
245
- searching: e.searching,
246
- loading: e.loading,
247
- "lazy-load-type": e.lazyLoadType,
248
- "has-more-items": e.hasMoreItems,
249
- "virtual-scroll": e.virtualScroll
250
- }, Z(l(L))), ne({ _: 2 }, [
251
- se(l(n), (z, W) => ({
245
+ searching: t.searching,
246
+ loading: t.loading,
247
+ "lazy-load-type": t.lazyLoadType,
248
+ "has-more-items": t.hasMoreItems,
249
+ "virtual-scroll": t.virtualScroll
250
+ }, G(l(L))), ie({ _: 2 }, [
251
+ re(l(n), (F, W) => ({
252
252
  name: W,
253
- fn: K((X) => [
254
- Y(b.$slots, W, ie(re(X)), void 0, !0)
253
+ fn: K((ee) => [
254
+ Z(g.$slots, W, de(ue(ee)), void 0, !0)
255
255
  ])
256
256
  }))
257
257
  ]), 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"])
@@ -260,55 +260,55 @@ const me = {
260
260
  _: 3
261
261
  }, 16, ["aria-label", "class"]));
262
262
  }
263
- }), ct = /* @__PURE__ */ V(ut, [["__scopeId", "data-v-cac3da66"]]);
264
- let Le = 0;
265
- const ft = {
263
+ }), ft = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-cac3da66"]]);
264
+ let we = 0;
265
+ const pt = {
266
266
  beforeCreate() {
267
- this.uuid = Le.toString(), Le += 1;
267
+ this.uuid = we.toString(), we += 1;
268
268
  }
269
- }, pt = { key: 0 }, mt = /* @__PURE__ */ Q("path", {
269
+ }, mt = { key: 0 }, vt = /* @__PURE__ */ X("path", {
270
270
  fill: "#00112C",
271
271
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
272
272
  }, null, -1);
273
- function vt(e, o, t, a, n, i) {
274
- return g(), M("svg", A({ role: "img" }, e.$attrs, {
273
+ function yt(t, o, e, a, n, r) {
274
+ return h(), N("svg", A({ role: "img" }, t.$attrs, {
275
275
  class: "ui-assets-icons-16",
276
276
  xmlns: "http://www.w3.org/2000/svg",
277
277
  width: "16",
278
278
  height: "16",
279
279
  fill: "none"
280
280
  }), [
281
- e.$attrs["svg-title"] ? (g(), M("title", pt, fe(e.$attrs["svg-title"]), 1)) : P("", !0),
282
- mt
281
+ t.$attrs["svg-title"] ? (h(), N("title", mt, me(t.$attrs["svg-title"]), 1)) : P("", !0),
282
+ vt
283
283
  ], 16);
284
284
  }
285
- const yt = /* @__PURE__ */ V(ft, [["render", vt]]);
285
+ const bt = /* @__PURE__ */ _(pt, [["render", yt]]);
286
286
  let Se = 0;
287
- const bt = {
287
+ const gt = {
288
288
  beforeCreate() {
289
289
  this.uuid = Se.toString(), Se += 1;
290
290
  }
291
- }, gt = { key: 0 }, ht = /* @__PURE__ */ Q("path", {
291
+ }, ht = { key: 0 }, Lt = /* @__PURE__ */ X("path", {
292
292
  fill: "#00112C",
293
293
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
294
294
  }, null, -1);
295
- function Lt(e, o, t, a, n, i) {
296
- return g(), M("svg", A({ role: "img" }, e.$attrs, {
295
+ function wt(t, o, e, a, n, r) {
296
+ return h(), N("svg", A({ role: "img" }, t.$attrs, {
297
297
  class: "ui-assets-icons-16",
298
298
  xmlns: "http://www.w3.org/2000/svg",
299
299
  width: "16",
300
300
  height: "16",
301
301
  fill: "none"
302
302
  }), [
303
- e.$attrs["svg-title"] ? (g(), M("title", gt, fe(e.$attrs["svg-title"]), 1)) : P("", !0),
304
- ht
303
+ t.$attrs["svg-title"] ? (h(), N("title", ht, me(t.$attrs["svg-title"]), 1)) : P("", !0),
304
+ Lt
305
305
  ], 16);
306
306
  }
307
- const St = /* @__PURE__ */ V(bt, [["render", Lt]]), wt = { class: "b-dropdown-small-textbox__chevron" }, xt = F({
307
+ const St = /* @__PURE__ */ _(gt, [["render", wt]]), xt = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
308
308
  name: "dropdown-small-textbox",
309
309
  inheritAttrs: !1
310
- }), $t = /* @__PURE__ */ F({
311
- ...xt,
310
+ }), Et = /* @__PURE__ */ z({
311
+ ...$t,
312
312
  props: {
313
313
  /**
314
314
  * The number of additional items that have been selected in the dropdown.
@@ -367,149 +367,161 @@ const St = /* @__PURE__ */ V(bt, [["render", Lt]]), wt = { class: "b-dropdown-sm
367
367
  */
368
368
  value: { type: String, default: "" }
369
369
  },
370
- emits: ["open", "close"],
371
- setup(e, { emit: o }) {
372
- const t = e, a = u(() => ({
373
- [`b-dropdown-small-textbox--${oe.DISABLED}`]: t.disabled,
374
- [`b-dropdown-small-textbox--${oe.READONLY}`]: t.readonly,
375
- [`b-dropdown-small-textbox--${oe.OPENED}`]: t.open
376
- })), n = u(() => t.open && !t.disabled && !t.readonly), i = () => {
377
- o("open");
378
- }, r = () => {
379
- o("close");
380
- }, c = {
381
- [ge.OPEN]: i,
382
- [ge.CLOSE]: r
370
+ emits: ["clear", "close", "input", "keydown", "open"],
371
+ setup(t, { emit: o }) {
372
+ const e = t, a = c(() => ({
373
+ [`b-dropdown-small-textbox--${ne.DISABLED}`]: e.disabled,
374
+ [`b-dropdown-small-textbox--${ne.READONLY}`]: e.readonly,
375
+ [`b-dropdown-small-textbox--${ne.OPENED}`]: e.open
376
+ })), n = c(() => e.open && !e.disabled && !e.readonly), r = (i) => {
377
+ o("input", i);
378
+ }, d = (i) => {
379
+ o("keydown", i);
380
+ }, f = (i) => {
381
+ se(i), o("open");
382
+ }, b = (i) => {
383
+ se(i), o("close");
384
+ }, m = (i) => {
385
+ se(i), o("clear");
386
+ }, p = {
387
+ [q.INPUT]: r,
388
+ [q.OPEN]: f,
389
+ [q.CLOSE]: b,
390
+ [q.CLEAR]: m,
391
+ [q.KEYDOWN]: d
383
392
  };
384
- return (f, y) => (g(), M("div", {
385
- class: de(["b-dropdown-small-textbox", l(a)])
393
+ return (i, x) => (h(), N("div", {
394
+ class: ce(["b-dropdown-small-textbox", l(a)])
386
395
  }, [
387
- J(Ze, A({ ...f.$attrs, ...f.$props }, { class: "b-dropdown-small-textbox__textbox" }, Z(c)), {
396
+ Y(Xe, A({ ...i.$attrs, ...i.$props }, {
397
+ class: "b-dropdown-small-textbox__textbox",
398
+ size: l(V).SMALL
399
+ }, G(p)), {
388
400
  icon: K(() => [
389
- Q("div", wt, [
390
- G(J(l(St), { "svg-title": "opened" }, null, 512), [
391
- [ye, l(n)]
401
+ X("div", xt, [
402
+ Q(Y(l(St), { "svg-title": "opened" }, null, 512), [
403
+ [ge, l(n)]
392
404
  ]),
393
- G(J(l(yt), { "svg-title": "closed" }, null, 512), [
394
- [ye, !l(n)]
405
+ Q(Y(l(bt), { "svg-title": "closed" }, null, 512), [
406
+ [ge, !l(n)]
395
407
  ])
396
408
  ])
397
409
  ]),
398
410
  _: 1
399
- }, 16)
411
+ }, 16, ["size"])
400
412
  ], 2));
401
413
  }
402
- }), Ot = /* @__PURE__ */ V($t, [["__scopeId", "data-v-4703b87f"]]), Et = (e, o) => o.value.reduce((t, a) => {
414
+ }), Ot = /* @__PURE__ */ _(Et, [["__scopeId", "data-v-2fa2d897"]]), Ct = (t, o) => o.value.reduce((e, a) => {
403
415
  if (a.items) {
404
416
  const n = a.items.filter(
405
- (r) => e.value.find((c) => c.value === r.value)
417
+ (d) => t.value.find((f) => f.value === d.value)
406
418
  );
407
- n.length === a.items.length ? t.push(a.label) : n.forEach(({ label: r }) => t.push(r));
419
+ n.length === a.items.length ? e.push(a.label) : n.forEach(({ label: d }) => e.push(d));
408
420
  }
409
- return e.value.find((n) => n.value === a.value) && t.push(a.label), t;
410
- }, []).join(", "), Ct = ({ items: e, placeholder: o, selectedValues: t }) => {
411
- const a = u(() => e.value.find((i) => {
412
- var r;
413
- return (r = i.items) == null ? void 0 : r.length;
421
+ return t.value.find((n) => n.value === a.value) && e.push(a.label), e;
422
+ }, []).join(", "), Bt = ({ items: t, placeholder: o, selectedValues: e }) => {
423
+ const a = c(() => t.value.find((r) => {
424
+ var d;
425
+ return (d = r.items) == null ? void 0 : d.length;
414
426
  }));
415
- return u(() => t.value.length ? a.value ? Et(t, e) : t.value.map(({ label: i }) => i).join(", ") : o.value || null);
416
- }, Ee = (e) => {
427
+ return c(() => e.value.length ? a.value ? Ct(e, t) : e.value.map(({ label: r }) => r).join(", ") : o.value || null);
428
+ }, Ce = (t) => {
417
429
  var o;
418
- (o = e.value.$children) == null || o[0].$refs.textbox.focus();
419
- }, Bt = ({
420
- inputContainerRef: e,
430
+ (o = t.value.$children) == null || o[0].$refs.textbox.focus();
431
+ }, Dt = ({
432
+ inputContainerRef: t,
421
433
  optionsContainerRef: o,
422
- selectedValueIndex: t,
434
+ selectedValueIndex: e,
423
435
  isDropdownOpen: a,
424
436
  isDynamicFltering: n,
425
- items: i,
426
- isMultiple: r
427
- }, c, f, y) => {
437
+ items: r,
438
+ isMultiple: d
439
+ }, f, b, m) => {
428
440
  const p = ({ detail: s }) => {
429
- s.preventDefault(), a.value || (f(), T(() => {
430
- var m, b;
431
- 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();
441
+ s.preventDefault(), a.value || (b(), T(() => {
442
+ var v, g;
443
+ d ? (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[e.value].$el.focus();
432
444
  }));
433
- }, h = ({ detail: s }) => {
434
- s.preventDefault(), a.value || (f(), T(() => {
435
- var m;
436
- (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus();
445
+ }, i = ({ detail: s }) => {
446
+ s.preventDefault(), a.value || (b(), T(() => {
447
+ var v;
448
+ (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus();
437
449
  }));
438
- }, $ = () => {
439
- a.value || (f(), T(() => {
440
- var s, m;
441
- if (r) {
442
- const b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
443
- (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[b.length - 1].$children[i.length - 1].$el.focus();
450
+ }, x = () => {
451
+ a.value || (b(), T(() => {
452
+ var s, v;
453
+ if (d) {
454
+ const g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
455
+ (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[g.length - 1].$children[r.length - 1].$el.focus();
444
456
  } else
445
- (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[i.length - 1].$el.focus();
457
+ (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[r.length - 1].$el.focus();
446
458
  }));
447
- }, O = () => {
448
- a.value && (y(), Ee(e));
449
459
  }, E = () => {
450
- a.value || f(), T(() => {
460
+ a.value && (m(), Ce(t));
461
+ }, O = () => {
462
+ a.value || b(), T(() => {
451
463
  var s;
452
464
  (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus();
453
465
  });
454
466
  }, L = ({ detail: s }) => {
455
- s.preventDefault(), c(), a.value && T(() => {
456
- var m, b;
457
- 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();
467
+ s.preventDefault(), f(), a.value && T(() => {
468
+ var v, g;
469
+ d ? (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[e.value].$el.focus();
458
470
  });
459
- }, x = () => {
460
- c(), a.value && T(() => {
461
- var s, m;
462
- 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();
471
+ }, $ = () => {
472
+ f(), a.value && T(() => {
473
+ var s, v;
474
+ d ? (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus() : (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[e.value].$el.focus();
463
475
  });
464
476
  };
465
- return u(() => ({
477
+ return c(() => ({
466
478
  ...n.value ? {} : { [R.SPACE]: L },
467
- [R.ENTER]: x,
479
+ [R.ENTER]: $,
468
480
  [R.ARROW_DOWN]: p,
469
- [R.ARROW_UP]: h,
470
- [R.END]: $,
471
- [R.ESCAPE]: O,
472
- [R.HOME]: E
481
+ [R.ARROW_UP]: i,
482
+ [R.END]: x,
483
+ [R.ESCAPE]: E,
484
+ [R.HOME]: O
473
485
  }));
474
- }, Dt = ({ inputContainerRef: e, isDropdownOpen: o }, t) => {
486
+ }, It = ({ inputContainerRef: t, isDropdownOpen: o }, e) => {
475
487
  const a = () => {
476
- o.value && t(), T(() => {
477
- Ee(e);
488
+ o.value && e(), T(() => {
489
+ Ce(t);
478
490
  });
479
491
  };
480
492
  return {
481
- [d.ENTER]: a,
482
- [d.ESCAPE]: a,
483
- [d.TAB]: a,
484
- [d.SPACE]: a
493
+ [u.ENTER]: a,
494
+ [u.ESCAPE]: a,
495
+ [u.TAB]: a,
496
+ [u.SPACE]: a
485
497
  };
486
498
  };
487
- function It(e, o, t) {
488
- const a = w(e), n = w(o), i = (c, f = []) => f.flatMap((y) => y.label.toLocaleLowerCase().includes(c) ? [y, ...i(c, y.items)] : y.items ? [...i(c, y.items)] : []);
489
- return we(a, () => {
490
- t !== void 0 && t(a.value);
491
- }), u(() => {
492
- if (!a.value || t !== void 0)
499
+ function Rt(t, o, e) {
500
+ const a = S(t), n = S(o), r = (f, b = []) => b.flatMap((m) => m.label.toLocaleLowerCase().includes(f) ? [m, ...r(f, m.items)] : m.items ? [...r(f, m.items)] : []);
501
+ return xe(a, () => {
502
+ e !== void 0 && e(a.value);
503
+ }), c(() => {
504
+ if (!a.value || e !== void 0)
493
505
  return n.value;
494
- const c = a.value.toLocaleLowerCase();
495
- return i(c, n.value);
506
+ const f = a.value.toLocaleLowerCase();
507
+ return r(f, n.value);
496
508
  });
497
509
  }
498
- const Ce = {
510
+ const Be = {
499
511
  "en-US": {
500
512
  all: "All",
501
513
  clearSearch: "Clear filter",
502
514
  ariaLabelFallback: "Dropdown"
503
515
  }
504
- }, Rt = Symbol("input field component injection key"), Tt = F({
505
- i18n: { messages: Ce },
516
+ }, Tt = Symbol("input field component injection key"), At = z({
517
+ i18n: { messages: Be },
506
518
  name: "b-dropdown",
507
519
  components: {
508
- DropdownInputDefault: Qe,
520
+ DropdownInputDefault: tt,
509
521
  DropdownInputSmall: Ot
510
522
  }
511
- }), At = /* @__PURE__ */ F({
512
- ...Tt,
523
+ }), Nt = /* @__PURE__ */ z({
524
+ ...At,
513
525
  props: {
514
526
  /**
515
527
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -596,8 +608,8 @@ const Ce = {
596
608
  */
597
609
  lazyLoadType: {
598
610
  type: String,
599
- default: ce.props.lazyLoadType.default,
600
- validator: (e) => Object.values(ue).includes(e)
611
+ default: pe.props.lazyLoadType.default,
612
+ validator: (t) => Object.values(fe).includes(t)
601
613
  },
602
614
  /*
603
615
  * If enabled, the user will be able to select multiple items.
@@ -637,7 +649,7 @@ const Ce = {
637
649
  size: {
638
650
  type: String,
639
651
  default: null,
640
- validator: (e) => Object.values(H).includes(e)
652
+ validator: (t) => Object.values(V).includes(t)
641
653
  },
642
654
  /**
643
655
  * If enabled, dropdown will display non-selectable, static categories
@@ -666,203 +678,202 @@ const Ce = {
666
678
  }
667
679
  },
668
680
  emits: ["input", "show-more"],
669
- setup(e, { emit: o }) {
670
- var ve;
671
- const t = e, a = Ve(), n = xe(), i = ot(n), { t: r } = pe({ messages: Ce }), c = w(null), f = w(null), y = w(null), p = w(!1), h = q("bento-dropdown-options-container"), $ = q("dropdown-label"), O = q("dropdown-description"), E = q("dropdown-error"), { isReadOnly: L } = et(I(t, "readonly")), { cachedSelectedListboxOptions: x, cachedListboxSelectedValues: N, setCachedValues: s } = at(
672
- I(t, "items"),
673
- I(t, "value"),
674
- I(t, "multiple")
675
- ), m = w(a["aria-label"]), { ariaLabel: b, label: S } = $e(t), z = Xe({
681
+ setup(t, { emit: o }) {
682
+ var be;
683
+ const e = t, a = _e(), n = $e(), r = nt(n), { t: d } = ve({ messages: Be }), f = S(null), b = S(null), m = S(null), p = S(!1), i = H("bento-dropdown-options-container"), x = H("dropdown-label"), E = H("dropdown-description"), O = H("dropdown-error"), { isReadOnly: L } = Qe(I(e, "readonly")), { cachedSelectedListboxOptions: $, cachedListboxSelectedValues: M, setCachedValues: s } = lt(
684
+ I(e, "items"),
685
+ I(e, "value"),
686
+ I(e, "multiple")
687
+ ), v = S(a["aria-label"]), { ariaLabel: g, label: w } = Ee(e), F = Ge({
676
688
  // TODO: take ariaLabel ref away when aria-label prop is removed
677
- ariaLabel: b || m,
678
- label: S,
679
- defaultFallback: r("ariaLabelFallback")
680
- }), W = t.size === H.SMALL || _e(Rt, !1), X = u(() => W ? H.SMALL : H.DEFAULT), Be = u(() => ({
681
- "b-dropdown--condensed": t.condensed
682
- })), De = u(() => ({
683
- "b-dropdown__description--error": !!t.errorMessage
684
- })), D = w(""), _ = I(t, "items"), Ie = It(D, _, (ve = t == null ? void 0 : t.search) == null ? void 0 : ve.searchEvent), ee = u(() => t.dynamicFiltering && !!D.value), Re = Ct({
685
- items: _,
686
- placeholder: I(t, "placeholder"),
687
- selectedValues: x
688
- }), Te = u(() => {
689
- if (t != null && t.multiple && Array.isArray(t.value))
690
- return t.items.filter(
691
- ({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
689
+ ariaLabel: g || v,
690
+ label: w,
691
+ defaultFallback: d("ariaLabelFallback")
692
+ }), W = e.size === V.SMALL || Je(Tt, !1), ee = c(() => W ? V.SMALL : V.DEFAULT), De = c(() => ({
693
+ "b-dropdown--condensed": e.condensed
694
+ })), Ie = c(() => ({
695
+ "b-dropdown__description--error": !!e.errorMessage
696
+ })), D = S(""), J = I(e, "items"), Re = Rt(D, J, (be = e == null ? void 0 : e.search) == null ? void 0 : be.searchEvent), te = c(() => e.dynamicFiltering && !!D.value), Te = Bt({
697
+ items: J,
698
+ placeholder: I(e, "placeholder"),
699
+ selectedValues: $
700
+ }), Ae = c(() => {
701
+ if (e != null && e.multiple && Array.isArray(e.value))
702
+ return e.items.filter(
703
+ ({ value: y }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(y)
692
704
  );
693
- if (!t.multiple && t.staticCategories) {
694
- const v = t.items.find(
695
- (B) => B.items.some((j) => j.value === t.value)
705
+ if (!e.multiple && e.staticCategories) {
706
+ const y = e.items.find(
707
+ (B) => B.items.some((j) => j.value === e.value)
696
708
  );
697
- return v ? v.items.find((B) => B.value === t.value) : null;
709
+ return y ? y.items.find((B) => B.value === e.value) : null;
698
710
  }
699
- return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
700
- }), Ae = u(() => {
701
- const v = t.items.findIndex(({ value: C }) => t.value === C);
702
- return v > 0 ? v : 0;
703
- }), { isMultiLevelSelect: Me, flattenedItemsList: Ne } = lt(_), ke = u(() => {
704
- var v;
705
- if (t.multiple) {
706
- const C = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length, B = Me.value ? Ne.value.length : _.value.length;
707
- return !t.hasMoreItems && B === C ? r("all") : C;
711
+ return e.items.find(({ value: y }) => y === (e == null ? void 0 : e.value));
712
+ }), Ne = c(() => {
713
+ const y = e.items.findIndex(({ value: C }) => e.value === C);
714
+ return y > 0 ? y : 0;
715
+ }), { isMultiLevelSelect: Me, flattenedItemsList: ke } = ot(J), Pe = c(() => {
716
+ var y;
717
+ if (e.multiple) {
718
+ const C = (y = e == null ? void 0 : e.value) == null ? void 0 : y.length, B = Me.value ? ke.value.length : J.value.length;
719
+ return !e.hasMoreItems && B === C ? d("all") : C;
708
720
  }
709
721
  return null;
710
- }), Pe = u(
711
- () => `${t.description ? O : ""} ${t.errorMessage ? E : ""}`.trim() || null
712
- ), Ke = () => {
722
+ }), Ke = c(
723
+ () => `${e.description ? E : ""} ${e.errorMessage ? O : ""}`.trim() || null
724
+ ), ze = () => {
713
725
  L.value || (p.value = !0);
714
- }, te = () => {
715
- p.value = !1;
716
726
  }, ae = () => {
717
- L.value || (p.value = !p.value, ee.value && (D.value = ""));
727
+ p.value = !1;
728
+ }, le = () => {
729
+ L.value || (p.value = !p.value, te.value && (D.value = ""));
718
730
  }, Fe = () => {
719
- ee.value && (D.value = ""), p.value && (p.value = !1, y.value.onOutsideDropdownClick());
720
- }, ze = (v) => {
721
- t.multiple || (D.value = "", p.value = !1), s(v), o("input", N.value);
722
- }, We = () => {
723
- o(d.SHOW_MORE);
724
- }, je = Bt(
731
+ te.value && (D.value = ""), p.value && (p.value = !1, m.value.onOutsideDropdownClick());
732
+ }, We = (y) => {
733
+ e.multiple || (D.value = "", p.value = !1), s(y), o("input", M.value);
734
+ }, je = () => {
735
+ o(u.SHOW_MORE);
736
+ }, Ue = Dt(
725
737
  {
726
- inputContainerRef: c,
727
- optionsContainerRef: y,
728
- selectedValueIndex: Ae,
738
+ inputContainerRef: f,
739
+ optionsContainerRef: m,
740
+ selectedValueIndex: Ne,
729
741
  isDropdownOpen: p,
730
- isDynamicFltering: I(t, "dynamicFiltering"),
731
- items: t.items,
732
- isMultiple: t.multiple
742
+ isDynamicFltering: I(e, "dynamicFiltering"),
743
+ items: e.items,
744
+ isMultiple: e.multiple
733
745
  },
734
- ae,
735
- Ke,
736
- te
737
- ), Ue = Dt(
746
+ le,
747
+ ze,
748
+ ae
749
+ ), qe = It(
738
750
  {
739
- inputContainerRef: c,
751
+ inputContainerRef: f,
740
752
  isDropdownOpen: p
741
753
  },
742
- te
743
- ), qe = {
744
- [d.CLOSE_DROPDOWN]: te,
745
- [d.SELECT]: ze,
746
- [d.SHOW_MORE]: We,
747
- ...Ue
754
+ ae
755
+ ), He = {
756
+ [u.CLOSE_DROPDOWN]: ae,
757
+ [u.SELECT]: We,
758
+ [u.SHOW_MORE]: je,
759
+ ...qe
748
760
  };
749
- return t.error && be(
761
+ return e.error && he(
750
762
  'BentoDropdown "error" property',
751
763
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
752
764
  Having the field as "undefined" will hide/remove the error.
753
765
  <bento-dropdown errorMessage="Error message text" />`,
754
766
  "2.0.0"
755
- ), t.size && be('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (v, C) => {
767
+ ), e.size && he('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (y, C) => {
756
768
  var B;
757
- return G((g(), M("div", {
758
- class: de(["b-dropdown", l(Be)])
769
+ return Q((h(), N("div", {
770
+ class: ce(["b-dropdown", l(De)])
759
771
  }, [
760
- l(S) ? (g(), k(l(nt), {
772
+ l(w) ? (h(), k(l(st), {
761
773
  key: 0,
762
- id: l($),
763
- condensed: e.condensed,
764
- label: l(S),
765
- "tooltip-text": e.tooltipText,
766
- optional: e.optional,
767
- required: e.required
774
+ id: l(x),
775
+ condensed: t.condensed,
776
+ label: l(w),
777
+ "tooltip-text": t.tooltipText,
778
+ optional: t.optional,
779
+ required: t.required
768
780
  }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : P("", !0),
769
- G((g(), M("div", A({
781
+ Q((h(), N("div", A({
770
782
  ref_key: "inputContainerRefWrapper",
771
- ref: f
772
- }, Z(l(je), !0)), [
773
- (g(), k(Oe(l(X)), {
783
+ ref: b
784
+ }, G(l(Ue), !0)), [
785
+ (h(), k(Oe(l(ee)), {
774
786
  ref_key: "inputContainerRef",
775
- ref: c,
776
- condensed: e.condensed,
787
+ ref: f,
788
+ condensed: t.condensed,
777
789
  value: D.value,
778
- "additional-items-selected": l(ke),
779
- ariaControls: l(h),
790
+ "additional-items-selected": l(Pe),
791
+ ariaControls: l(i),
780
792
  ariaExpanded: p.value,
781
- "aria-labelledby": l(S) ? l($) : null,
782
- "aria-describedby": l(Pe),
783
- "aria-label": l(z),
793
+ "aria-labelledby": l(w) ? l(x) : null,
794
+ "aria-describedby": l(Ke),
795
+ "aria-label": l(F),
784
796
  "aria-readonly": l(L),
785
797
  readonly: l(L),
786
- disabled: e.disabled,
787
- "display-value": l(Re),
788
- "dynamic-filtering": e.dynamicFiltering,
789
- "is-invalid": !!e.errorMessage || e.error,
790
- multiple: e.multiple,
798
+ disabled: t.disabled,
799
+ "display-value": l(Te),
800
+ "dynamic-filtering": t.dynamicFiltering,
801
+ "is-invalid": !!t.errorMessage || t.error,
802
+ multiple: t.multiple,
791
803
  open: p.value,
792
- "selected-value-item": l(W) ? void 0 : l(Te),
793
- "show-slot-content-in-multiple": e.showSlotContentInMultiple,
804
+ "selected-value-item": l(W) ? void 0 : l(Ae),
805
+ "show-slot-content-in-multiple": t.showSlotContentInMultiple,
794
806
  onInput: C[0] || (C[0] = (j) => D.value = j),
795
- onOpen: ae,
796
- onClose: ae
797
- }, ne({ _: 2 }, [
798
- se(l(n), (j, U) => ({
807
+ onOpen: le,
808
+ onClose: le
809
+ }, ie({ _: 2 }, [
810
+ re(l(n), (j, U) => ({
799
811
  name: U,
800
- fn: K((le) => [
801
- Y(v.$slots, U, ie(re(le)), void 0, !0)
812
+ fn: K((oe) => [
813
+ Z(y.$slots, U, de(ue(oe)), void 0, !0)
802
814
  ])
803
815
  }))
804
816
  ]), 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"]))
805
817
  ], 16)), [
806
- [l(tt)]
818
+ [l(at)]
807
819
  ]),
808
- c.value ? (g(), k(l(ct), A({
820
+ f.value ? (h(), k(l(ft), A({
809
821
  key: 1,
810
- id: l(h),
822
+ id: l(i),
811
823
  ref_key: "optionsContainerRef",
812
- ref: y,
813
- "aria-label": l(z),
814
- "empty-state": e.emptyState,
815
- "debounce-time": (B = e.search) == null ? void 0 : B.debounceTime,
816
- disabled: e.disabled,
817
- "is-option-disabled": e.isOptionDisabled,
818
- items: l(Ie),
819
- multiple: e.multiple,
820
- "static-categories": e.staticCategories,
824
+ ref: m,
825
+ "aria-label": l(F),
826
+ "empty-state": t.emptyState,
827
+ "debounce-time": (B = t.search) == null ? void 0 : B.debounceTime,
828
+ disabled: t.disabled,
829
+ "is-option-disabled": t.isOptionDisabled,
830
+ items: l(Re),
831
+ multiple: t.multiple,
832
+ "static-categories": t.staticCategories,
821
833
  open: p.value,
822
- "selected-value": l(x),
823
- searching: l(ee),
824
- "target-element": f.value,
825
- loading: e.loading,
826
- "has-more-items": e.hasMoreItems,
827
- "lazy-load-type": e.lazyLoadType,
828
- "virtual-scroll": e.virtualScroll
829
- }, Z(qe)), ne({ _: 2 }, [
830
- se(l(n), (j, U) => ({
834
+ "selected-value": l($),
835
+ searching: l(te),
836
+ "target-element": b.value,
837
+ loading: t.loading,
838
+ "has-more-items": t.hasMoreItems,
839
+ "lazy-load-type": t.lazyLoadType,
840
+ "virtual-scroll": t.virtualScroll
841
+ }, G(He)), ie({ _: 2 }, [
842
+ re(l(n), (j, U) => ({
831
843
  name: U,
832
- fn: K((le) => [
833
- Y(v.$slots, U, ie(re(le)), void 0, !0)
844
+ fn: K((oe) => [
845
+ Z(y.$slots, U, de(ue(oe)), void 0, !0)
834
846
  ])
835
847
  }))
836
848
  ]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : P("", !0),
837
- e.errorMessage ? (g(), k(l(st), {
849
+ t.errorMessage ? (h(), k(l(it), {
838
850
  key: 2,
839
- id: l(E),
840
- "error-message": e.errorMessage,
851
+ id: l(O),
852
+ "error-message": t.errorMessage,
841
853
  class: "b-dropdown__error-message"
842
854
  }, null, 8, ["id", "error-message"])) : P("", !0),
843
- e.description || l(i)("description") ? (g(), k(l(Ye), {
855
+ t.description || l(r)("description") ? (h(), k(l(Ze), {
844
856
  key: 3,
845
- id: l(O),
846
- class: de(["b-dropdown__description", l(De)]),
857
+ id: l(E),
858
+ class: ce(["b-dropdown__description", l(Ie)]),
847
859
  el: "span"
848
860
  }, {
849
861
  default: K(() => [
850
- Y(v.$slots, "description", {}, () => [
851
- Je(fe(e.description), 1)
862
+ Z(y.$slots, "description", {}, () => [
863
+ Ye(me(t.description), 1)
852
864
  ], !0)
853
865
  ]),
854
866
  _: 3
855
867
  }, 8, ["id", "class"])) : P("", !0)
856
868
  ], 2)), [
857
- [l(Ge), Fe]
869
+ [l(et), Fe]
858
870
  ]);
859
871
  };
860
872
  }
861
- }), Jt = /* @__PURE__ */ V(At, [["__scopeId", "data-v-690ac639"]]);
873
+ }), Zt = /* @__PURE__ */ _(Nt, [["__scopeId", "data-v-690ac639"]]);
862
874
  export {
863
- Jt as B,
864
- Rt as I,
865
- H as a,
866
- It as u
875
+ Zt as B,
876
+ Tt as I,
877
+ Rt as u
867
878
  };
868
- //# sourceMappingURL=dropdown.CxBlK83Q.js.map
879
+ //# sourceMappingURL=dropdown.CoVT4i0B.js.map