@adyen/bento-vue2 1.60.0 → 1.60.1

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 (579) hide show
  1. package/dist/@types/components.d.ts +201 -0
  2. package/dist/@types/index.d.ts +17710 -0
  3. package/dist/@types/use-form-v4.d.ts +86 -0
  4. package/dist/accordion.js +6 -0
  5. package/dist/accordion.js.map +1 -0
  6. package/dist/action-bar.js +5 -0
  7. package/dist/action-bar.js.map +1 -0
  8. package/dist/alert.js +8 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -0
  11. package/dist/assets/action-bar.css +1 -0
  12. package/dist/assets/alert.css +1 -0
  13. package/dist/assets/avatar.css +1 -0
  14. package/dist/assets/base-button.css +1 -0
  15. package/dist/assets/base-modal.css +1 -0
  16. package/dist/assets/button-actions-with-menu.css +1 -0
  17. package/dist/assets/button-actions.css +1 -0
  18. package/dist/assets/button.css +1 -0
  19. package/dist/assets/calendar.css +1 -0
  20. package/dist/assets/card.css +1 -0
  21. package/dist/assets/checkbox-group.css +1 -0
  22. package/dist/assets/checkbox-input.css +1 -0
  23. package/dist/assets/checkbox.css +1 -0
  24. package/dist/assets/chip.css +1 -0
  25. package/dist/assets/code-snippet.css +1 -0
  26. package/dist/assets/controls-group.css +1 -0
  27. package/dist/assets/copy.css +1 -0
  28. package/dist/assets/country.css +1 -0
  29. package/dist/assets/currency.css +1 -0
  30. package/dist/assets/dashboard-section.css +1 -0
  31. package/dist/assets/dashed-underline.css +1 -0
  32. package/dist/assets/data-grid-template.css +1 -0
  33. package/dist/assets/data-grid.css +1 -0
  34. package/dist/assets/date-picker.css +1 -0
  35. package/dist/assets/date-range-picker.css +1 -0
  36. package/dist/assets/date.css +1 -0
  37. package/dist/assets/dialog-page.css +1 -0
  38. package/dist/assets/divider.css +1 -0
  39. package/dist/assets/dropdown-default-textbox.css +1 -0
  40. package/dist/assets/dropdown-tag.css +1 -0
  41. package/dist/assets/dropdown.css +1 -0
  42. package/dist/assets/empty-state.css +1 -0
  43. package/dist/assets/error-message.css +1 -0
  44. package/dist/assets/file-uploader.css +1 -0
  45. package/dist/assets/filter-bar.css +1 -0
  46. package/dist/assets/fixed-scroller.css +1 -0
  47. package/dist/assets/focus-trap.css +1 -0
  48. package/dist/assets/footer-actions.css +1 -0
  49. package/dist/assets/form-layout-title.css +1 -0
  50. package/dist/assets/grid-layout.css +1 -0
  51. package/dist/assets/header-with-views.css +1 -0
  52. package/dist/assets/header.css +1 -0
  53. package/dist/assets/info-icon-with-popover.css +1 -0
  54. package/dist/assets/info-icon.css +1 -0
  55. package/dist/assets/input-field-password.css +1 -0
  56. package/dist/assets/input-field-phone-number.css +1 -0
  57. package/dist/assets/input-field.css +1 -0
  58. package/dist/assets/inspector.css +1 -0
  59. package/dist/assets/layout-row.css +1 -0
  60. package/dist/assets/link.css +1 -0
  61. package/dist/assets/listbox-option-tag.css +1 -0
  62. package/dist/assets/loading-indicator.css +1 -0
  63. package/dist/assets/main.css +1 -0
  64. package/dist/assets/menu.css +1 -0
  65. package/dist/assets/modal-fullscreen.css +1 -0
  66. package/dist/assets/pagination.css +1 -0
  67. package/dist/assets/payment-method.css +1 -0
  68. package/dist/assets/popover.css +1 -0
  69. package/dist/assets/popper-container.css +1 -0
  70. package/dist/assets/promo-banner.css +1 -0
  71. package/dist/assets/radio-group.css +1 -0
  72. package/dist/assets/radio-input.css +1 -0
  73. package/dist/assets/rich-text-editor.css +1 -0
  74. package/dist/assets/search-bar.css +1 -0
  75. package/dist/assets/secondary-nav.css +1 -0
  76. package/dist/assets/segmented-control.css +1 -0
  77. package/dist/assets/selection-card-group.css +1 -0
  78. package/dist/assets/sidepanel.css +1 -0
  79. package/dist/assets/status.css +1 -0
  80. package/dist/assets/step.css +1 -0
  81. package/dist/assets/structured-list-item.css +1 -0
  82. package/dist/assets/summary-grid.css +1 -0
  83. package/dist/assets/tabs.css +1 -0
  84. package/dist/assets/tag.css +1 -0
  85. package/dist/assets/teleport.css +1 -0
  86. package/dist/assets/textarea.css +1 -0
  87. package/dist/assets/timeline-item.css +1 -0
  88. package/dist/assets/toast.css +1 -0
  89. package/dist/assets/toggle-button.css +1 -0
  90. package/dist/assets/toggle.css +1 -0
  91. package/dist/assets/tooltip.css +1 -0
  92. package/dist/assets/tutorial.css +1 -0
  93. package/dist/assets/typography.css +1 -0
  94. package/dist/assets/use-cached-selected-values.css +1 -0
  95. package/dist/avatar.js +5 -0
  96. package/dist/avatar.js.map +1 -0
  97. package/dist/button.js +16 -0
  98. package/dist/button.js.map +1 -0
  99. package/dist/card.js +7 -0
  100. package/dist/card.js.map +1 -0
  101. package/dist/checkbox.js +11 -0
  102. package/dist/checkbox.js.map +1 -0
  103. package/dist/chip.js +5 -0
  104. package/dist/chip.js.map +1 -0
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  119. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
  123. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  124. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  125. package/dist/chunks/accordion-item.C4tyRMCt.js +116 -0
  126. package/dist/chunks/accordion-item.C4tyRMCt.js.map +1 -0
  127. package/dist/chunks/action-bar.CMqiD6vc.js +161 -0
  128. package/dist/chunks/action-bar.CMqiD6vc.js.map +1 -0
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  137. package/dist/chunks/alert.Du9NfW-V.js +103 -0
  138. package/dist/chunks/alert.Du9NfW-V.js.map +1 -0
  139. package/dist/chunks/aria-label.CaUURpnB.js +13 -0
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
  141. package/dist/chunks/avatar.BgwjpLQO.js +71 -0
  142. package/dist/chunks/avatar.BgwjpLQO.js.map +1 -0
  143. package/dist/chunks/base-button.-gx_u8Bd.js +86 -0
  144. package/dist/chunks/base-button.-gx_u8Bd.js.map +1 -0
  145. package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
  146. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
  147. package/dist/chunks/base-modal.xA_DhHx9.js +373 -0
  148. package/dist/chunks/base-modal.xA_DhHx9.js.map +1 -0
  149. package/dist/chunks/bin.DuebwJYu.js +24 -0
  150. package/dist/chunks/bin.DuebwJYu.js.map +1 -0
  151. package/dist/chunks/button-actions-with-menu.S7i4V-8E.js +166 -0
  152. package/dist/chunks/button-actions-with-menu.S7i4V-8E.js.map +1 -0
  153. package/dist/chunks/button-actions.BFtzsfNe.js +194 -0
  154. package/dist/chunks/button-actions.BFtzsfNe.js.map +1 -0
  155. package/dist/chunks/button.BuD-IsW5.js +99 -0
  156. package/dist/chunks/button.BuD-IsW5.js.map +1 -0
  157. package/dist/chunks/calendar.DQiq_EoU.js +1167 -0
  158. package/dist/chunks/calendar.DQiq_EoU.js.map +1 -0
  159. package/dist/chunks/card.Bk7Lz1GS.js +123 -0
  160. package/dist/chunks/card.Bk7Lz1GS.js.map +1 -0
  161. package/dist/chunks/checkbox-group.CossCRls.js +152 -0
  162. package/dist/chunks/checkbox-group.CossCRls.js.map +1 -0
  163. package/dist/chunks/checkbox-input.Dr1GS2BZ.js +137 -0
  164. package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +1 -0
  165. package/dist/chunks/checkbox.DkDqMVeb.js +176 -0
  166. package/dist/chunks/checkbox.DkDqMVeb.js.map +1 -0
  167. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  168. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  169. package/dist/chunks/checkmark-small.C8T8ISN6.js +24 -0
  170. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  171. package/dist/chunks/chevron-left.DOMTgGel.js +43 -0
  172. package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
  173. package/dist/chunks/chevron-up.CSVyoaTy.js +43 -0
  174. package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
  175. package/dist/chunks/chip.bZEhHfIk.js +63 -0
  176. package/dist/chunks/chip.bZEhHfIk.js.map +1 -0
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
  179. package/dist/chunks/code-snippet.BlYhf-Dt.js +259 -0
  180. package/dist/chunks/code-snippet.BlYhf-Dt.js.map +1 -0
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +14628 -0
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +1 -0
  183. package/dist/chunks/controls-group.C4CHrb6Y.js +81 -0
  184. package/dist/chunks/controls-group.C4CHrb6Y.js.map +1 -0
  185. package/dist/chunks/copy.Bod4H2Dk.js +129 -0
  186. package/dist/chunks/copy.Bod4H2Dk.js.map +1 -0
  187. package/dist/chunks/country.Df7erZov.js +94 -0
  188. package/dist/chunks/country.Df7erZov.js.map +1 -0
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  191. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +24 -0
  192. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  194. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  195. package/dist/chunks/cross-small.CZqsjZDz.js +24 -0
  196. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  197. package/dist/chunks/cross.CJ5EEL2c.js +24 -0
  198. package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
  199. package/dist/chunks/currency.B1F9YOIx.js +106 -0
  200. package/dist/chunks/currency.B1F9YOIx.js.map +1 -0
  201. package/dist/chunks/dashboard-section.Dx6eYon4.js +102 -0
  202. package/dist/chunks/dashboard-section.Dx6eYon4.js.map +1 -0
  203. package/dist/chunks/dashed-underline.CY5J4pZp.js +65 -0
  204. package/dist/chunks/dashed-underline.CY5J4pZp.js.map +1 -0
  205. package/dist/chunks/data-grid-template.CVl3PU0v.js +109 -0
  206. package/dist/chunks/data-grid-template.CVl3PU0v.js.map +1 -0
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +5 -0
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +1 -0
  209. package/dist/chunks/data-grid.BZaXKTLk.js +2782 -0
  210. package/dist/chunks/data-grid.BZaXKTLk.js.map +1 -0
  211. package/dist/chunks/date-input.BqBdAO1E.js +17 -0
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +1 -0
  213. package/dist/chunks/date-picker.lrT6LXe-.js +235 -0
  214. package/dist/chunks/date-picker.lrT6LXe-.js.map +1 -0
  215. package/dist/chunks/date-range-picker.Djt5mYvh.js +977 -0
  216. package/dist/chunks/date-range-picker.Djt5mYvh.js.map +1 -0
  217. package/dist/chunks/date.dYFFEunA.js +987 -0
  218. package/dist/chunks/date.dYFFEunA.js.map +1 -0
  219. package/dist/chunks/debounce.DUTu11PS.js +10 -0
  220. package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
  221. package/dist/chunks/dialog-page.C5r6tM57.js +131 -0
  222. package/dist/chunks/dialog-page.C5r6tM57.js.map +1 -0
  223. package/dist/chunks/directive.Cbdox5VL.js +23 -0
  224. package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
  225. package/dist/chunks/divider.Cc4JFWG_.js +35 -0
  226. package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
  227. package/dist/chunks/dot.CnkXzRn3.js +24 -0
  228. package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
  229. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +348 -0
  230. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +1 -0
  231. package/dist/chunks/dropdown-tag.CY3nZ50z.js +215 -0
  232. package/dist/chunks/dropdown-tag.CY3nZ50z.js.map +1 -0
  233. package/dist/chunks/dropdown.Cx-3TGBk.js +818 -0
  234. package/dist/chunks/dropdown.Cx-3TGBk.js.map +1 -0
  235. package/dist/chunks/empty-state.IvvHHQ35.js +151 -0
  236. package/dist/chunks/empty-state.IvvHHQ35.js.map +1 -0
  237. package/dist/chunks/error-message.BAE9B9-N.js +121 -0
  238. package/dist/chunks/error-message.BAE9B9-N.js.map +1 -0
  239. package/dist/chunks/es6.n1ewaW31.js +11 -0
  240. package/dist/chunks/es6.n1ewaW31.js.map +1 -0
  241. package/dist/chunks/events.CMzGybJJ.js +47 -0
  242. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  243. package/dist/chunks/expand.C263WARj.js +24 -0
  244. package/dist/chunks/expand.C263WARj.js.map +1 -0
  245. package/dist/chunks/file-uploader.E18P6eyS.js +1913 -0
  246. package/dist/chunks/file-uploader.E18P6eyS.js.map +1 -0
  247. package/dist/chunks/filter-bar.D6IL1UDu.js +2288 -0
  248. package/dist/chunks/filter-bar.D6IL1UDu.js.map +1 -0
  249. package/dist/chunks/fixed-scroller.D0a6q8_i.js +106 -0
  250. package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +1 -0
  251. package/dist/chunks/focus-trap.C-wIQqpO.js +499 -0
  252. package/dist/chunks/focus-trap.C-wIQqpO.js.map +1 -0
  253. package/dist/chunks/footer-actions.BgpSnSSn.js +96 -0
  254. package/dist/chunks/footer-actions.BgpSnSSn.js.map +1 -0
  255. package/dist/chunks/form-layout-title.DBCY18f8.js +190 -0
  256. package/dist/chunks/form-layout-title.DBCY18f8.js.map +1 -0
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +5 -0
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +1 -0
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +1735 -0
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  263. package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
  264. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
  265. package/dist/chunks/grid-layout.HvTAa4to.js +76 -0
  266. package/dist/chunks/grid-layout.HvTAa4to.js.map +1 -0
  267. package/dist/chunks/header-with-views.DAdbhhG9.js +1549 -0
  268. package/dist/chunks/header-with-views.DAdbhhG9.js.map +1 -0
  269. package/dist/chunks/header.8SId1U5r.js +187 -0
  270. package/dist/chunks/header.8SId1U5r.js.map +1 -0
  271. package/dist/chunks/i18n.BQkEbtPM.js +31 -0
  272. package/dist/chunks/i18n.BQkEbtPM.js.map +1 -0
  273. package/dist/chunks/image.C2D2hKat.js +56 -0
  274. package/dist/chunks/image.C2D2hKat.js.map +1 -0
  275. package/dist/chunks/index.BDuTpjD8.js +40 -0
  276. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  277. package/dist/chunks/index.BdrLbvtJ.js +529 -0
  278. package/dist/chunks/index.BdrLbvtJ.js.map +1 -0
  279. package/dist/chunks/index.BxBB1rsx.js +15 -0
  280. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  281. package/dist/chunks/index.Cl4_42j5.js +8 -0
  282. package/dist/chunks/index.Cl4_42j5.js.map +1 -0
  283. package/dist/chunks/index.DD7TppDb.js +10 -0
  284. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  285. package/dist/chunks/info-icon-with-popover.XZqkxPsB.js +71 -0
  286. package/dist/chunks/info-icon-with-popover.XZqkxPsB.js.map +1 -0
  287. package/dist/chunks/info-icon.C1xOlhYj.js +41 -0
  288. package/dist/chunks/info-icon.C1xOlhYj.js.map +1 -0
  289. package/dist/chunks/info.4d_mJHvT.js +24 -0
  290. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  291. package/dist/chunks/input-field-password.lK0Im1eg.js +251 -0
  292. package/dist/chunks/input-field-password.lK0Im1eg.js.map +1 -0
  293. package/dist/chunks/input-field-phone-number.BnjBqUKg.js +3097 -0
  294. package/dist/chunks/input-field-phone-number.BnjBqUKg.js.map +1 -0
  295. package/dist/chunks/input-field.B8HxtNIv.js +152 -0
  296. package/dist/chunks/input-field.B8HxtNIv.js.map +1 -0
  297. package/dist/chunks/inspector.CegHqvEW.js +117 -0
  298. package/dist/chunks/inspector.CegHqvEW.js.map +1 -0
  299. package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
  300. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
  301. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  302. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  303. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  304. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  305. package/dist/chunks/keyboard-navigation.pB8weElW.js +66 -0
  306. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  307. package/dist/chunks/layout-row.C_F2wX6d.js +87 -0
  308. package/dist/chunks/layout-row.C_F2wX6d.js.map +1 -0
  309. package/dist/chunks/link.D0P79Toh.js +95 -0
  310. package/dist/chunks/link.D0P79Toh.js.map +1 -0
  311. package/dist/chunks/listbox-option-tag.CczGPhWH.js +44 -0
  312. package/dist/chunks/listbox-option-tag.CczGPhWH.js.map +1 -0
  313. package/dist/chunks/loading-indicator.z8COalOc.js +48 -0
  314. package/dist/chunks/loading-indicator.z8COalOc.js.map +1 -0
  315. package/dist/chunks/menu.CT0SIn4v.js +601 -0
  316. package/dist/chunks/menu.CT0SIn4v.js.map +1 -0
  317. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
  318. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
  319. package/dist/chunks/modal-fullscreen.tofT1h0P.js +202 -0
  320. package/dist/chunks/modal-fullscreen.tofT1h0P.js.map +1 -0
  321. package/dist/chunks/modal.CiYtGu6u.js +445 -0
  322. package/dist/chunks/modal.CiYtGu6u.js.map +1 -0
  323. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  324. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  325. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  326. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  327. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  328. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  329. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  330. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  331. package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
  332. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
  333. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  334. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  335. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  336. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  337. package/dist/chunks/pagination.B-EP9Lkq.js +338 -0
  338. package/dist/chunks/pagination.B-EP9Lkq.js.map +1 -0
  339. package/dist/chunks/payment-method.Cx4nPDtE.js +76 -0
  340. package/dist/chunks/payment-method.Cx4nPDtE.js.map +1 -0
  341. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  342. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  343. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  344. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  345. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  346. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  347. package/dist/chunks/popover.COaHa4ES.js +295 -0
  348. package/dist/chunks/popover.COaHa4ES.js.map +1 -0
  349. package/dist/chunks/popper-container.DIFqmRsp.js +1393 -0
  350. package/dist/chunks/popper-container.DIFqmRsp.js.map +1 -0
  351. package/dist/chunks/promo-banner.DJpA7Whg.js +70 -0
  352. package/dist/chunks/promo-banner.DJpA7Whg.js.map +1 -0
  353. package/dist/chunks/radio-group.CzsbH4_F.js +229 -0
  354. package/dist/chunks/radio-group.CzsbH4_F.js.map +1 -0
  355. package/dist/chunks/radio-input.uJAhxKRs.js +90 -0
  356. package/dist/chunks/radio-input.uJAhxKRs.js.map +1 -0
  357. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  358. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  359. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  360. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  361. package/dist/chunks/refresh.Bc9FzGjJ.js +24 -0
  362. package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
  363. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  364. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  365. package/dist/chunks/rich-text-editor.C4NdjtLA.js +6203 -0
  366. package/dist/chunks/rich-text-editor.C4NdjtLA.js.map +1 -0
  367. package/dist/chunks/search-bar.B4u_IgiI.js +97 -0
  368. package/dist/chunks/search-bar.B4u_IgiI.js.map +1 -0
  369. package/dist/chunks/search.DLtglc02.js +24 -0
  370. package/dist/chunks/search.DLtglc02.js.map +1 -0
  371. package/dist/chunks/secondary-nav.EROJ_sJQ.js +112 -0
  372. package/dist/chunks/secondary-nav.EROJ_sJQ.js.map +1 -0
  373. package/dist/chunks/segmented-control.B-uxKqMN.js +112 -0
  374. package/dist/chunks/segmented-control.B-uxKqMN.js.map +1 -0
  375. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  376. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  377. package/dist/chunks/selection-card-group.CnvREAh5.js +299 -0
  378. package/dist/chunks/selection-card-group.CnvREAh5.js.map +1 -0
  379. package/dist/chunks/show.e4LEpZKG.js +43 -0
  380. package/dist/chunks/show.e4LEpZKG.js.map +1 -0
  381. package/dist/chunks/sidepanel.3EBWM8JV.js +210 -0
  382. package/dist/chunks/sidepanel.3EBWM8JV.js.map +1 -0
  383. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
  384. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
  385. package/dist/chunks/status.types.p_TCvoo0.js +36 -0
  386. package/dist/chunks/status.types.p_TCvoo0.js.map +1 -0
  387. package/dist/chunks/step.CuOpi-Ye.js +217 -0
  388. package/dist/chunks/step.CuOpi-Ye.js.map +1 -0
  389. package/dist/chunks/structured-list-item.rOTJM0uc.js +87 -0
  390. package/dist/chunks/structured-list-item.rOTJM0uc.js.map +1 -0
  391. package/dist/chunks/success.DhioLvPD.js +5 -0
  392. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  393. package/dist/chunks/success.nNwxJRBS.js +5 -0
  394. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  395. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
  396. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
  397. package/dist/chunks/summary-grid.types.Bg1Y7i-F.js +301 -0
  398. package/dist/chunks/summary-grid.types.Bg1Y7i-F.js.map +1 -0
  399. package/dist/chunks/tabs.DX_Gq12z.js +205 -0
  400. package/dist/chunks/tabs.DX_Gq12z.js.map +1 -0
  401. package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
  402. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
  403. package/dist/chunks/tag.DDjyf2hd.js +44 -0
  404. package/dist/chunks/tag.DDjyf2hd.js.map +1 -0
  405. package/dist/chunks/teleport.BV6zrDjA.js +128 -0
  406. package/dist/chunks/teleport.BV6zrDjA.js.map +1 -0
  407. package/dist/chunks/textarea.0PapD8Nl.js +200 -0
  408. package/dist/chunks/textarea.0PapD8Nl.js.map +1 -0
  409. package/dist/chunks/timeline-item.IFw76Qeh.js +386 -0
  410. package/dist/chunks/timeline-item.IFw76Qeh.js.map +1 -0
  411. package/dist/chunks/toast.B2u2W_TQ.js +171 -0
  412. package/dist/chunks/toast.B2u2W_TQ.js.map +1 -0
  413. package/dist/chunks/toggle-button.ChDbeBZ8.js +83 -0
  414. package/dist/chunks/toggle-button.ChDbeBZ8.js.map +1 -0
  415. package/dist/chunks/toggle.Q52IIKfi.js +121 -0
  416. package/dist/chunks/toggle.Q52IIKfi.js.map +1 -0
  417. package/dist/chunks/tooltip.DyZIyMZN.js +189 -0
  418. package/dist/chunks/tooltip.DyZIyMZN.js.map +1 -0
  419. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  420. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  421. package/dist/chunks/tutorial.suIRmXta.js +348 -0
  422. package/dist/chunks/tutorial.suIRmXta.js.map +1 -0
  423. package/dist/chunks/typography.J1v_SPG3.js +87 -0
  424. package/dist/chunks/typography.J1v_SPG3.js.map +1 -0
  425. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  426. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  427. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  428. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  429. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +52 -0
  430. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +1 -0
  431. package/dist/chunks/use-cached-selected-values.9OnD_j5F.js +1177 -0
  432. package/dist/chunks/use-cached-selected-values.9OnD_j5F.js.map +1 -0
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
  435. package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
  436. package/dist/chunks/use-country-items.HFnjuDsG.js.map +1 -0
  437. package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
  438. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
  439. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +13 -0
  440. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -0
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
  443. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +12 -0
  444. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +1 -0
  445. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  446. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -0
  447. package/dist/chunks/warning-filled.Cd0kVWwa.js +24 -0
  448. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  453. package/dist/click-outside.js +5 -0
  454. package/dist/click-outside.js.map +1 -0
  455. package/dist/code-snippet.js +8 -0
  456. package/dist/code-snippet.js.map +1 -0
  457. package/dist/country.js +12 -0
  458. package/dist/country.js.map +1 -0
  459. package/dist/currency.js +6 -0
  460. package/dist/currency.js.map +1 -0
  461. package/dist/dashboard-template.js +6 -0
  462. package/dist/dashboard-template.js.map +1 -0
  463. package/dist/dashed-underline.js +5 -0
  464. package/dist/dashed-underline.js.map +1 -0
  465. package/dist/data-grid-template.js +5 -0
  466. package/dist/data-grid-template.js.map +1 -0
  467. package/dist/data-grid.js +11 -0
  468. package/dist/data-grid.js.map +1 -0
  469. package/dist/date-picker.js +8 -0
  470. package/dist/date-picker.js.map +1 -0
  471. package/dist/date-range-picker.js +8 -0
  472. package/dist/date-range-picker.js.map +1 -0
  473. package/dist/date.js +6 -0
  474. package/dist/date.js.map +1 -0
  475. package/dist/divider.js +5 -0
  476. package/dist/divider.js.map +1 -0
  477. package/dist/dropdown.js +16 -0
  478. package/dist/dropdown.js.map +1 -0
  479. package/dist/empty-state.js +8 -0
  480. package/dist/empty-state.js.map +1 -0
  481. package/dist/file-uploader.js +5 -0
  482. package/dist/file-uploader.js.map +1 -0
  483. package/dist/filter-bar.js +8 -0
  484. package/dist/filter-bar.js.map +1 -0
  485. package/dist/focus-trap.js +5 -0
  486. package/dist/focus-trap.js.map +1 -0
  487. package/dist/fonts/fonts.css +2 -0
  488. package/dist/form-layout.js +8 -0
  489. package/dist/form-layout.js.map +1 -0
  490. package/dist/header-with-views.js +5 -0
  491. package/dist/header-with-views.js.map +1 -0
  492. package/dist/header.js +5 -0
  493. package/dist/header.js.map +1 -0
  494. package/dist/image.js +7 -0
  495. package/dist/image.js.map +1 -0
  496. package/dist/index.js +372 -0
  497. package/dist/index.js.map +1 -0
  498. package/dist/info-icon.js +5 -0
  499. package/dist/info-icon.js.map +1 -0
  500. package/dist/input-field-password.js +10 -0
  501. package/dist/input-field-password.js.map +1 -0
  502. package/dist/input-field-phone-number.js +5 -0
  503. package/dist/input-field-phone-number.js.map +1 -0
  504. package/dist/input-field.js +10 -0
  505. package/dist/input-field.js.map +1 -0
  506. package/dist/inspector.js +7 -0
  507. package/dist/inspector.js.map +1 -0
  508. package/dist/internal.js +43 -0
  509. package/dist/internal.js.map +1 -0
  510. package/dist/layout.js +6 -0
  511. package/dist/layout.js.map +1 -0
  512. package/dist/link.js +6 -0
  513. package/dist/link.js.map +1 -0
  514. package/dist/loading-indicator.js +6 -0
  515. package/dist/loading-indicator.js.map +1 -0
  516. package/dist/menu.js +6 -0
  517. package/dist/menu.js.map +1 -0
  518. package/dist/modal-fullscreen.js +6 -0
  519. package/dist/modal-fullscreen.js.map +1 -0
  520. package/dist/modal.js +14 -0
  521. package/dist/modal.js.map +1 -0
  522. package/dist/pagination.js +5 -0
  523. package/dist/pagination.js.map +1 -0
  524. package/dist/payment-method.js +7 -0
  525. package/dist/payment-method.js.map +1 -0
  526. package/dist/popover.js +6 -0
  527. package/dist/popover.js.map +1 -0
  528. package/dist/popper-container.js +9 -0
  529. package/dist/popper-container.js.map +1 -0
  530. package/dist/promo-banner.js +7 -0
  531. package/dist/promo-banner.js.map +1 -0
  532. package/dist/radio-group.js +9 -0
  533. package/dist/radio-group.js.map +1 -0
  534. package/dist/rich-text-editor.js +5 -0
  535. package/dist/rich-text-editor.js.map +1 -0
  536. package/dist/search-bar.js +9 -0
  537. package/dist/search-bar.js.map +1 -0
  538. package/dist/secondary-nav.js +5 -0
  539. package/dist/secondary-nav.js.map +1 -0
  540. package/dist/segmented-control.js +7 -0
  541. package/dist/segmented-control.js.map +1 -0
  542. package/dist/selection-card.js +7 -0
  543. package/dist/selection-card.js.map +1 -0
  544. package/dist/sidepanel.js +7 -0
  545. package/dist/sidepanel.js.map +1 -0
  546. package/dist/status.js +6 -0
  547. package/dist/status.js.map +1 -0
  548. package/dist/stepper.js +8 -0
  549. package/dist/stepper.js.map +1 -0
  550. package/dist/structured-list.js +6 -0
  551. package/dist/structured-list.js.map +1 -0
  552. package/dist/styles/bento-dark.css +2055 -0
  553. package/dist/styles/bento-light.css +2054 -0
  554. package/dist/styles/bento.css +2054 -0
  555. package/dist/styles/legacy.css +2209 -0
  556. package/dist/styles/styleguide.css +2109 -0
  557. package/dist/styles/utility.css +987 -0
  558. package/dist/summary-grid.js +12 -0
  559. package/dist/summary-grid.js.map +1 -0
  560. package/dist/tabs.js +6 -0
  561. package/dist/tabs.js.map +1 -0
  562. package/dist/tag.js +6 -0
  563. package/dist/tag.js.map +1 -0
  564. package/dist/textarea.js +5 -0
  565. package/dist/textarea.js.map +1 -0
  566. package/dist/timeline.js +10 -0
  567. package/dist/timeline.js.map +1 -0
  568. package/dist/toast.js +5 -0
  569. package/dist/toast.js.map +1 -0
  570. package/dist/toggle.js +7 -0
  571. package/dist/toggle.js.map +1 -0
  572. package/dist/tutorial.js +5 -0
  573. package/dist/tutorial.js.map +1 -0
  574. package/dist/typography.js +8 -0
  575. package/dist/typography.js.map +1 -0
  576. package/dist/use-form-v4.js +8300 -0
  577. package/dist/use-form-v4.js.map +1 -0
  578. package/dist/web-types.json +15200 -0
  579. package/package.json +6 -6
@@ -0,0 +1,818 @@
1
+ import { ref as C, watch as ue, computed as p, defineComponent as A, useSlots as pe, toRefs as fe, nextTick as L, useAttrs as Le, toRef as x, inject as Oe } from "vue";
2
+ import { d as ie, B as Ee } from "./typography.J1v_SPG3.js";
3
+ import { a as U, b as M, c as De, B as P, D as Be } from "./dropdown-default-textbox.AUsF-RIc.js";
4
+ /* empty css */
5
+ import { n as F } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { s as q } from "./events.CMzGybJJ.js";
7
+ import { g as k } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as Ie } from "./aria-label.CaUURpnB.js";
9
+ import { u as V } from "./i18n.BQkEbtPM.js";
10
+ import { u as Te } from "./use-form-layout-loading.D3lALhtC.js";
11
+ import { u as Ne } from "./use-has-slot.C9lQZ6nz.js";
12
+ import { a as u, b as H, B as J, c as Ae, u as Re } from "./use-cached-selected-values.9OnD_j5F.js";
13
+ import { B as D, a as $e } from "./keyboard-navigation.pB8weElW.js";
14
+ import { B as Me } from "./directive.Cbdox5VL.js";
15
+ import { F as Pe, E as ke } from "./error-message.BAE9B9-N.js";
16
+ import { P as re } from "./popper-container.DIFqmRsp.js";
17
+ import { B as Fe } from "./popover.COaHa4ES.js";
18
+ import "../assets/dropdown.css";
19
+ const Ke = {
20
+ "en-US": {
21
+ apply: "Apply",
22
+ cancel: "Cancel",
23
+ noOptionsMatchThisSearch: "No options match this search"
24
+ },
25
+ "ja-JP": {
26
+ apply: "適用",
27
+ cancel: "キャンセル"
28
+ },
29
+ "pt-BR": {
30
+ apply: "Aplicar",
31
+ cancel: "Cancelar"
32
+ }
33
+ }, ze = (a, t, o, e) => {
34
+ const n = C(a.value), { t: l } = V();
35
+ ue(a, () => {
36
+ n.value = a.value;
37
+ });
38
+ const s = p(
39
+ () => JSON.stringify(n.value) === JSON.stringify(a.value)
40
+ ), i = () => {
41
+ e(u.SELECT, n.value), e(u.CLOSE_DROPDOWN);
42
+ }, c = () => {
43
+ n.value = a.value, e(u.CLOSE_DROPDOWN);
44
+ }, m = () => {
45
+ o.value && t.value && (n.value = a.value);
46
+ }, r = p(() => [
47
+ {
48
+ title: l("apply"),
49
+ event: i,
50
+ disabled: s.value
51
+ },
52
+ {
53
+ title: l("cancel"),
54
+ event: c
55
+ }
56
+ ]), d = (y) => {
57
+ n.value = y, t.value || e(u.SELECT, y);
58
+ }, g = (y) => {
59
+ d(y), e(u.TAB);
60
+ }, h = (y) => {
61
+ d(y), e(u.ENTER);
62
+ }, v = (y) => {
63
+ d(y), e(u.SPACE);
64
+ }, O = () => {
65
+ c(), e(u.ESCAPE);
66
+ }, S = () => {
67
+ e(u.SHOW_MORE);
68
+ }, w = {
69
+ [u.SELECT]: d,
70
+ [u.SHOW_MORE]: S,
71
+ [u.TAB]: g,
72
+ [u.SPACE]: v,
73
+ [u.ENTER]: h
74
+ };
75
+ return {
76
+ // Values
77
+ actions: r,
78
+ internalSelectedValue: n,
79
+ // Methods
80
+ listeners: w,
81
+ onEscapeKey: O,
82
+ onOutsideDropdownClick: m
83
+ };
84
+ }, je = A({
85
+ i18n: { messages: Ke },
86
+ name: "bento-dropdown-options-container"
87
+ }), We = /* @__PURE__ */ A({
88
+ ...je,
89
+ props: {
90
+ /**
91
+ * Defines a string value that labels an interactive element.
92
+ */
93
+ ariaLabel: { type: String, default: null },
94
+ /**
95
+ * Indicates that dropdown items are loading
96
+ */
97
+ componentLoading: { type: Boolean, default: !1 },
98
+ /**
99
+ * Empty state props used with the inner empty state component which is displayed when no search results are found.
100
+ */
101
+ emptyState: {
102
+ type: Object,
103
+ default: void 0
104
+ },
105
+ /**
106
+ * Disables dropdown functionality
107
+ */
108
+ disabled: { type: Boolean, default: !1 },
109
+ /**
110
+ * Indicates whether there are more items to load
111
+ */
112
+ hasMoreItems: { type: Boolean, default: !1 },
113
+ /**
114
+ * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
115
+ */
116
+ id: { type: String, required: !0 },
117
+ /**
118
+ * Function that allows the options to be disabled
119
+ *
120
+ * @type {BentoDropdownIsOptionDisabled}
121
+ * @param {BentoDropdownOptionItem} option - Dropdown option object
122
+ * @param {string} option.label - Option's label text
123
+ * @param {string|number} option.value - Option's value
124
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
125
+ */
126
+ isOptionDisabled: {
127
+ type: Function,
128
+ default: void 0
129
+ },
130
+ /**
131
+ * The option elements to populate the dropdown with.
132
+ * It must be an array of {@see BentoDropdownOptionItem }
133
+ * * @property {string} value.label - Text to be displayed in the option
134
+ * * @property {string,number} value.value - Value of the option
135
+ */
136
+ items: {
137
+ type: Array,
138
+ required: !0
139
+ },
140
+ /**
141
+ * The type of `Lazy Load`.
142
+ * Type "automatic" will enable infinite scrolling
143
+ * Type "button" will enable lazy loading with "Show more" button
144
+ */
145
+ lazyLoadType: {
146
+ type: String,
147
+ default: J.AUTOMATIC,
148
+ validator: (a) => Object.values(J).includes(a)
149
+ },
150
+ /**
151
+ * Indicates if new options are lazy loading.
152
+ */
153
+ loading: { type: Boolean, default: !1 },
154
+ /**
155
+ * If enabled, the user will be able to select multiple items.
156
+ */
157
+ multiple: { type: Boolean, default: !1 },
158
+ /**
159
+ * Indicates if the dropdown is open so that
160
+ * the container can be displayed.
161
+ */
162
+ open: { type: Boolean, required: !0 },
163
+ /**
164
+ * The `input` value.
165
+ * Providing an empty string or empty array will select no options.
166
+ * Set to an empty string `''` if you don't want any of the available options to be selected for single select
167
+ */
168
+ selectedValue: {
169
+ type: Array,
170
+ default: null
171
+ },
172
+ /**
173
+ * Flag that indicates that an external search it's being made
174
+ * to filter out the items inside the the multi-select listbox
175
+ *
176
+ * If enabled, hides the "Select all" checkbox in "multiple" mode.
177
+ */
178
+ searching: H.props.searching,
179
+ /**
180
+ * If enabled, dropdown will display non-selectable, static categories
181
+ */
182
+ staticCategories: { type: Boolean, default: !1 },
183
+ /**
184
+ * Reference to the DOM element or Vue component for positioning
185
+ * the Dropdown container.
186
+ */
187
+ targetElement: { type: re.props.targetElement.type, required: !0 },
188
+ /**
189
+ * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
190
+ * The itemHeight function is used to calculate the height of rendered item given it's index.
191
+ */
192
+ virtualScroll: {
193
+ type: [Boolean, Object],
194
+ default: !1
195
+ }
196
+ },
197
+ emits: [],
198
+ setup(a, { expose: t, emit: o }) {
199
+ const e = a, n = pe(), { selectedValue: l, multiple: s } = fe(e), i = C(null), { t: c } = V(), m = p(() => e.open && !e.disabled), r = p(() => c("noOptionsMatchThisSearch")), d = p(() => ({
200
+ "b-dropdown-options-container--single": !(e != null && e.multiple)
201
+ })), g = p(() => ({
202
+ "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
203
+ })), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: S, onOutsideDropdownClick: w } = ze(l, s, m, o), y = p(() => e != null && e.multiple ? Fe : re), I = p(() => {
204
+ var T;
205
+ const B = {
206
+ "min-width": `${(T = e == null ? void 0 : e.targetElement) == null ? void 0 : T.clientWidth}px`,
207
+ "max-width": "min(500px, 95%)"
208
+ };
209
+ return e != null && e.multiple ? {
210
+ actionsLayout: "space-between",
211
+ actions: h.value,
212
+ divider: !0,
213
+ fallbackPosition: ["top-start"],
214
+ id: k(`dropdown-options-${e.id}`),
215
+ open: e.open,
216
+ position: "bottom-start",
217
+ style: {
218
+ width: "auto",
219
+ ...B
220
+ },
221
+ targetElement: e.targetElement
222
+ } : {
223
+ fallbackPosition: ["top-start"],
224
+ offset: [0, 8],
225
+ position: "bottom-start",
226
+ style: {
227
+ display: m.value ? "block" : "none",
228
+ ...B
229
+ },
230
+ targetElement: e.targetElement
231
+ };
232
+ });
233
+ return t({
234
+ onOutsideDropdownClick: w
235
+ }), { __sfc: !0, slots: n, emit: o, props: e, selectedValue: l, multiple: s, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: m, noResultsMessage: r, conditionalClasses: d, conditionalListboxClasses: g, actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: S, onOutsideDropdownClick: w, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: I, BentoListbox: H };
236
+ }
237
+ });
238
+ var Ue = function() {
239
+ var t = this, o = t._self._c, e = t._self._setupProxy;
240
+ return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(n) {
241
+ return !n.type.indexOf("key") && t._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
242
+ } } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(n, l) {
243
+ return { key: l, fn: function(s) {
244
+ return [t._t(l, null, null, s)];
245
+ } };
246
+ })], null, !0) }, e.listeners))], 1)]);
247
+ }, qe = [], He = /* @__PURE__ */ F(
248
+ We,
249
+ Ue,
250
+ qe,
251
+ !1,
252
+ null,
253
+ "35feb278"
254
+ );
255
+ const Je = He.exports;
256
+ let de = 0;
257
+ const Ve = {
258
+ beforeCreate() {
259
+ this.uuid = de.toString(), de += 1;
260
+ }
261
+ };
262
+ var Ye = function() {
263
+ var t = this, o = t._self._c;
264
+ return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
265
+ }, Ze = [], Qe = /* @__PURE__ */ F(
266
+ Ve,
267
+ Ye,
268
+ Ze,
269
+ !1,
270
+ null,
271
+ null
272
+ );
273
+ const Xe = Qe.exports;
274
+ let ce = 0;
275
+ const Ge = {
276
+ beforeCreate() {
277
+ this.uuid = ce.toString(), ce += 1;
278
+ }
279
+ };
280
+ var et = function() {
281
+ var t = this, o = t._self._c;
282
+ return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
283
+ }, tt = [], ot = /* @__PURE__ */ F(
284
+ Ge,
285
+ et,
286
+ tt,
287
+ !1,
288
+ null,
289
+ null
290
+ );
291
+ const nt = ot.exports, at = A({
292
+ name: "dropdown-small-textbox",
293
+ inheritAttrs: !1
294
+ }), st = /* @__PURE__ */ A({
295
+ ...at,
296
+ props: {
297
+ /**
298
+ * The number of additional items that have been selected in the dropdown.
299
+ */
300
+ additionalItemsSelected: { type: [Number, String], default: 0 },
301
+ /**
302
+ * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
303
+ */
304
+ ariaControls: { type: String, required: !0 },
305
+ /**
306
+ * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
307
+ */
308
+ ariaExpanded: {
309
+ type: [String, Boolean],
310
+ required: !0
311
+ },
312
+ /**
313
+ * If no label element is used then the aria-label is be set should be set.
314
+ */
315
+ ariaLabel: { type: String, default: null },
316
+ /**
317
+ * Corresponds to the label's id that labels the textbox element.
318
+ */
319
+ ariaLabelledby: { type: String, default: null },
320
+ /**
321
+ * Custom debounce time. Default: 300
322
+ */
323
+ debounceTime: { type: Number, default: 300 },
324
+ /**
325
+ * Disables any textbox functionality
326
+ */
327
+ disabled: { type: Boolean, default: !1 },
328
+ /**
329
+ * Selected option's label
330
+ */
331
+ displayValue: { type: String, default: null },
332
+ /**
333
+ * Sets the possibility to type into the textbox
334
+ */
335
+ dynamicFiltering: { type: Boolean, default: !1 },
336
+ /**
337
+ * Marks the textbox as invalid, rendering an error state
338
+ */
339
+ isInvalid: { type: Boolean, default: !1 },
340
+ /**
341
+ * Indicates if the dropdown is open so that
342
+ * the respective event can be emitted
343
+ */
344
+ open: { type: Boolean, default: !1 },
345
+ /**
346
+ * Sets the dropdown to readonly state
347
+ */
348
+ readonly: { type: Boolean, default: !1 },
349
+ /**
350
+ * The input value
351
+ */
352
+ value: { type: String, default: "" }
353
+ },
354
+ emits: ["clear", "close", "input", "keydown", "open"],
355
+ setup(a, { expose: t, emit: o }) {
356
+ const e = a, n = C(null), l = p(() => ({
357
+ [`b-dropdown-small-textbox--${U.DISABLED}`]: e.disabled,
358
+ [`b-dropdown-small-textbox--${U.READONLY}`]: e.readonly,
359
+ [`b-dropdown-small-textbox--${U.OPENED}`]: e.open
360
+ })), s = p(() => e.open && !e.disabled && !e.readonly), i = (v) => {
361
+ o("input", v);
362
+ }, c = (v) => {
363
+ o("keydown", v);
364
+ }, m = (v) => {
365
+ q(v), o("open");
366
+ }, r = (v) => {
367
+ q(v), o("close");
368
+ }, d = (v) => {
369
+ q(v), o("clear");
370
+ }, g = {
371
+ [M.INPUT]: i,
372
+ [M.OPEN]: m,
373
+ [M.CLOSE]: r,
374
+ [M.CLEAR]: d,
375
+ [M.KEYDOWN]: c
376
+ }, h = () => {
377
+ n.value.focus();
378
+ };
379
+ return t({
380
+ focus: h
381
+ }), { __sfc: !0, emit: o, props: e, baseTextbox: n, conditionalClasses: l, isDropdownOpen: s, onInput: i, onKeyDown: c, openDropdown: m, closeDropdown: r, clearValue: d, listeners: g, focus: h, BentoDropdownSize: P, DropdownBaseTextbox: De, ChevronDownSmallIcon: Xe, ChevronUpSmallIcon: nt };
382
+ }
383
+ });
384
+ var lt = function() {
385
+ var t = this, o = t._self._c, e = t._self._setupProxy;
386
+ return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
387
+ return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
388
+ }, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
389
+ }, it = [], rt = /* @__PURE__ */ F(
390
+ st,
391
+ lt,
392
+ it,
393
+ !1,
394
+ null,
395
+ "d0e53db8"
396
+ );
397
+ const dt = rt.exports, ct = (a, t) => t.value.reduce((o, e) => {
398
+ if (e.items) {
399
+ const n = e.items.filter(
400
+ (s) => a.value.find((i) => i.value === s.value)
401
+ );
402
+ n.length === e.items.length ? o.push(e.displayValue ?? e.label) : n.forEach(({ label: s, displayValue: i }) => o.push(i ?? s));
403
+ }
404
+ return a.value.find((n) => n.value === e.value) && o.push(e.displayValue ?? e.label), o;
405
+ }, []).join(", "), ut = ({ items: a, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
406
+ const n = p(
407
+ () => e.value && a.value.find((s) => {
408
+ var i;
409
+ return (i = s.items) == null ? void 0 : i.length;
410
+ })
411
+ );
412
+ return p(() => o.value.length ? n.value ? ct(o, a) : o.value.map(({ label: s, displayValue: i }) => i ?? s).join(", ") : t.value || null);
413
+ }, ve = (a) => {
414
+ var t;
415
+ (t = a.value.$children) == null || t[0].$refs.textbox.focus();
416
+ }, pt = ({
417
+ inputContainerRef: a,
418
+ optionsContainerRef: t,
419
+ selectedValueIndex: o,
420
+ isDropdownOpen: e,
421
+ isDynamicFltering: n,
422
+ items: l,
423
+ isMultiple: s
424
+ }, i, c, m) => {
425
+ const r = async (f) => {
426
+ var b, E;
427
+ n.value && await L(), (E = (b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.$el.querySelectorAll('[role="option"]')[f]) == null || E.focus();
428
+ }, d = async (f) => {
429
+ var E, K;
430
+ n.value && await L();
431
+ const b = (E = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : E.$el.querySelectorAll(
432
+ "button"
433
+ );
434
+ b.length ? (K = b[f]) == null || K.focus() : r(f);
435
+ }, g = (f) => {
436
+ var b;
437
+ return (b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.setListboxFocusedIndex(
438
+ f
439
+ );
440
+ }, h = ({ detail: f }) => {
441
+ f.preventDefault(), e.value || c(), L(() => {
442
+ s ? d(0) : (g(o.value), r(o.value));
443
+ });
444
+ }, v = ({ detail: f }) => {
445
+ f.preventDefault(), e.value || c(), L(() => {
446
+ s ? d(0) : (g(o.value), r(o.value));
447
+ });
448
+ }, O = () => {
449
+ e.value || (c(), L(() => {
450
+ var f;
451
+ if (s) {
452
+ const b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
453
+ (f = b == null ? void 0 : b[b.length - 1].$el.querySelectorAll('[role="option"]')[l.length - 1]) == null || f.focus();
454
+ } else
455
+ g(l.length - 1), r(l.length - 1);
456
+ }));
457
+ }, S = () => {
458
+ e.value && (m(), ve(a));
459
+ }, w = () => {
460
+ e.value && m();
461
+ }, y = () => {
462
+ e.value || c(), L(() => {
463
+ s ? d(0) : r(0);
464
+ });
465
+ }, I = ({ detail: f }) => {
466
+ f.preventDefault(), i(), e.value && L(() => {
467
+ s ? d(0) : (g(o.value), r(o.value));
468
+ });
469
+ }, B = ({ detail: f }) => {
470
+ f.preventDefault(), i(), e.value && L(() => {
471
+ s ? d(0) : (g(o.value), r(o.value));
472
+ });
473
+ };
474
+ return p(() => ({
475
+ ...n.value ? {} : { [D.SPACE]: I },
476
+ [D.ENTER]: B,
477
+ [D.ARROW_DOWN]: h,
478
+ [D.ARROW_UP]: v,
479
+ [D.END]: O,
480
+ [D.ESCAPE]: S,
481
+ [D.HOME]: y,
482
+ [D.TAB]: w
483
+ }));
484
+ }, ft = ({ inputContainerRef: a, isDropdownOpen: t }, o) => {
485
+ const e = () => {
486
+ t.value && o(), L(() => {
487
+ ve(a);
488
+ });
489
+ };
490
+ return {
491
+ [u.ENTER]: e,
492
+ [u.ESCAPE]: e,
493
+ [u.TAB]: e,
494
+ [u.SPACE]: e
495
+ };
496
+ };
497
+ function vt(a, t, o, e) {
498
+ const n = C(a), l = C(t), s = (c, m = []) => m.flatMap((r) => r.label.toLocaleLowerCase().includes(c) ? e != null && e.value && r.items ? [...s(c, r.items)] : [r, ...s(c, r.items)] : r.items ? [...s(c, r.items)] : []);
499
+ return ue(n, () => {
500
+ o !== void 0 && o(n.value);
501
+ }), p(() => {
502
+ if (!n.value || o !== void 0)
503
+ return l.value;
504
+ const c = n.value.toLocaleLowerCase();
505
+ return s(c, l.value);
506
+ });
507
+ }
508
+ const mt = {
509
+ "en-US": {
510
+ all: "All",
511
+ ariaLabelFallback: "Dropdown",
512
+ clearSearch: "Clear filter"
513
+ },
514
+ "ja-JP": {
515
+ all: "すべて",
516
+ clearFilter: "フィルターをクリア"
517
+ },
518
+ "pt-BR": {
519
+ all: "Todos",
520
+ clearFilter: "Limpar filtro"
521
+ }
522
+ }, yt = Symbol("input field component injection key"), Ft = Symbol("input field hint injection key"), Kt = Symbol("input field parent component injection key"), bt = A({
523
+ i18n: { messages: mt },
524
+ name: "b-dropdown",
525
+ components: {
526
+ DropdownInputDefault: Be,
527
+ DropdownInputSmall: dt
528
+ }
529
+ }), _t = /* @__PURE__ */ A({
530
+ ...bt,
531
+ props: {
532
+ /**
533
+ * @deprecated from version 2.0.0. Use the aria-label attribute instead.
534
+ */
535
+ /**
536
+ * Defines a string value that labels an interactive element.
537
+ */
538
+ ariaLabel: { type: String, default: null },
539
+ /**
540
+ * Renders the dropdown with a condensed style.
541
+ */
542
+ condensed: { type: Boolean, default: !1 },
543
+ /**
544
+ * Empty state props used with the inner empty state component which is displayed when no search results are found.
545
+ */
546
+ emptyState: {
547
+ type: Object,
548
+ default: void 0
549
+ },
550
+ /**
551
+ * Disables dropdown functionality.
552
+ */
553
+ disabled: { type: Boolean, default: !1 },
554
+ /**
555
+ * Sets the possibility to type into the textbox.
556
+ */
557
+ dynamicFiltering: {
558
+ type: Boolean,
559
+ default: !1
560
+ },
561
+ /**
562
+ * Highlights the dropdown in an erroneous state.
563
+ *
564
+ * @deprecated Use "errorMessage" prop instead
565
+ */
566
+ error: { type: Boolean, default: !1 },
567
+ /**
568
+ * Highlights the dropdown in an erroneous state with an error message.
569
+ */
570
+ errorMessage: { type: String, default: null },
571
+ /**
572
+ * Descriptive supporting text visbile underneath the dropdown.
573
+ */
574
+ description: { type: String, default: null },
575
+ /**
576
+ * Indicates whether there are more items to load
577
+ */
578
+ hasMoreItems: { type: Boolean, default: !1 },
579
+ /**
580
+ * Function that dertermines which options are disabled from interaction.
581
+ *
582
+ * @type {BentoListboxIsOptionDisabled}
583
+ * @param {BentoListboxOptionItem} option - Dropdown option object
584
+ * @param {string} option.label - Option's label text
585
+ * @param {string|number} option.value - Option's value
586
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
587
+ */
588
+ isOptionDisabled: {
589
+ type: Function,
590
+ default: void 0
591
+ },
592
+ /**
593
+ * The option elements to populate the dropdown with.
594
+ * It must be an array of {@see BentoListboxOptionItem }
595
+ * * @property {string} value.label - Text to be displayed in the option
596
+ * * @property {string,number} value.value - Value of the option
597
+ */
598
+ items: {
599
+ type: Array,
600
+ default: () => []
601
+ },
602
+ /**
603
+ * Text that is displayed as a label above the element.
604
+ */
605
+ label: { type: String, default: null },
606
+ /**
607
+ * Indicates if new options are lazy loading.
608
+ */
609
+ loading: { type: Boolean, default: !1 },
610
+ /**
611
+ * Indicates that dropdown items are loading
612
+ */
613
+ componentLoading: { type: Boolean, default: !1 },
614
+ /**
615
+ * The type of `Lazy Load`.
616
+ * Type "automatic" will enable infinite scrolling
617
+ * Type "button" will enable lazy loading with "Show more" button
618
+ */
619
+ lazyLoadType: {
620
+ type: String,
621
+ default: H.props.lazyLoadType.default,
622
+ validator: (a) => Object.values(J).includes(a)
623
+ },
624
+ /*
625
+ * If enabled, the user will be able to select multiple items.
626
+ */
627
+ multiple: { type: Boolean, default: !1 },
628
+ /**
629
+ * Highlights the dropdown is optional.
630
+ */
631
+ optional: { type: Boolean, default: !1 },
632
+ /**
633
+ * Text that appears in the form control when it has no value set
634
+ */
635
+ placeholder: { type: String, default: null },
636
+ /**
637
+ * Sets the dropdown to readonly state
638
+ */
639
+ readonly: { type: Boolean, default: !1 },
640
+ /**
641
+ * Highlights the dropdown is required.
642
+ */
643
+ required: { type: Boolean, default: !1 },
644
+ /**
645
+ * Dropdown search options and events.
646
+ * @see BentoDropdownSearchOptions
647
+ */
648
+ search: {
649
+ type: Object,
650
+ default: void 0
651
+ },
652
+ /**
653
+ * Toggles whether to use the slot content select items shown in the textbox in multiple mode.
654
+ */
655
+ showSlotContentInMultiple: { type: Boolean, default: !1 },
656
+ /**
657
+ * @deprecated Do not use. Only 'default' size should be used.
658
+ */
659
+ size: {
660
+ type: String,
661
+ default: null,
662
+ validator: (a) => Object.values(P).includes(a)
663
+ },
664
+ /**
665
+ * If enabled, dropdown will display non-selectable, static categories
666
+ */
667
+ staticCategories: { type: Boolean, default: !1 },
668
+ /**
669
+ * Adds a info icon next to the label to display the passed tooltip message.
670
+ */
671
+ tooltipText: { type: String, default: null },
672
+ /**
673
+ * The `input` value.
674
+ * Providing an empty string will select no options.
675
+ * Set to an empty string `''` if you don't want any of the available options to be selected.
676
+ */
677
+ value: {
678
+ type: [String, Number, Array],
679
+ default: null
680
+ },
681
+ /**
682
+ * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
683
+ * The itemHeight function is used to calculate the height of rendered item given it's index.
684
+ */
685
+ virtualScroll: {
686
+ type: [Boolean, Object],
687
+ default: !1
688
+ }
689
+ },
690
+ emits: ["input", "show-more"],
691
+ setup(a, { expose: t, emit: o }) {
692
+ var le;
693
+ const e = a, n = Le(), l = pe(), s = Ne(l), { t: i } = V(), c = C(null), m = C(null), r = C(null), d = C(!1), g = k("bento-dropdown-options-container"), h = k("dropdown-label"), v = k("dropdown-description"), O = k("dropdown-error"), { isReadOnly: S } = Te(x(e, "readonly")), { cachedSelectedListboxOptions: w, cachedListboxSelectedValues: y, setCachedValues: I } = Ae(
694
+ x(e, "items"),
695
+ x(e, "value"),
696
+ x(e, "multiple")
697
+ ), B = C(n["aria-label"]), { ariaLabel: T, label: f } = fe(e), b = Ie({
698
+ // TODO: take ariaLabel ref away when aria-label prop is removed
699
+ ariaLabel: T.value || B,
700
+ label: f,
701
+ defaultFallback: i("ariaLabelFallback")
702
+ }), E = e.size === P.SMALL || Oe(yt, !1), K = p(() => E ? P.SMALL : P.DEFAULT), me = p(() => ({
703
+ "b-dropdown--condensed": e.condensed
704
+ })), ye = p(() => ({
705
+ "b-dropdown__description--error": !!e.errorMessage
706
+ })), N = C(""), R = x(e, "items"), Y = x(e, "staticCategories"), Z = vt(N, R, (le = e == null ? void 0 : e.search) == null ? void 0 : le.searchEvent, Y), j = p(() => e.dynamicFiltering && !!N.value), be = ut({
707
+ items: R,
708
+ placeholder: x(e, "placeholder"),
709
+ isMultiSelect: x(e, "multiple"),
710
+ selectedValues: w
711
+ }), _e = p(() => {
712
+ if (e != null && e.multiple && Array.isArray(e.value))
713
+ return e.items.filter(
714
+ ({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
715
+ );
716
+ if (!e.multiple && e.staticCategories) {
717
+ const _ = e.items.find(
718
+ (W) => W.items.some((xe) => xe.value === e.value)
719
+ );
720
+ return _ ? _.items.find((W) => W.value === e.value) : null;
721
+ }
722
+ return e.items.find(({ value: _ }) => _ === (e == null ? void 0 : e.value));
723
+ }), Q = p(() => {
724
+ const _ = Z.value.findIndex(({ value: $ }) => e.value === $);
725
+ return _ > -1 ? _ : 0;
726
+ }), { isMultiLevelSelect: X, flattenedItemsList: G } = Re(R), ge = p(() => {
727
+ if (e.multiple) {
728
+ const _ = Array.isArray(e.value) ? e.value.length : 0, $ = X.value ? G.value.length : R.value.length;
729
+ return _ === 0 ? null : !e.hasMoreItems && $ > 0 && $ === _ ? i("all") : _;
730
+ }
731
+ return null;
732
+ }), he = p(
733
+ () => `${e.description ? v : ""} ${e.errorMessage ? O : ""}`.trim() || null
734
+ ), ee = () => {
735
+ S.value || (d.value = !0);
736
+ }, z = () => {
737
+ d.value = !1;
738
+ }, te = () => {
739
+ S.value || (d.value = !d.value, j.value && (N.value = ""));
740
+ }, Ce = () => {
741
+ j.value && (N.value = ""), d.value && (d.value = !1, r.value.onOutsideDropdownClick());
742
+ }, oe = (_) => {
743
+ e.multiple || (N.value = "", d.value = !1), I(_), o("input", y.value);
744
+ }, ne = () => {
745
+ o(u.SHOW_MORE);
746
+ }, Se = pt(
747
+ {
748
+ inputContainerRef: c,
749
+ optionsContainerRef: r,
750
+ selectedValueIndex: Q,
751
+ isDropdownOpen: d,
752
+ isDynamicFltering: x(e, "dynamicFiltering"),
753
+ items: e.items,
754
+ isMultiple: e.multiple
755
+ },
756
+ te,
757
+ ee,
758
+ z
759
+ ), ae = ft(
760
+ {
761
+ inputContainerRef: c,
762
+ isDropdownOpen: d
763
+ },
764
+ z
765
+ ), we = {
766
+ [u.CLOSE_DROPDOWN]: z,
767
+ [u.SELECT]: oe,
768
+ [u.SHOW_MORE]: ne,
769
+ ...ae
770
+ };
771
+ e.error && ie(
772
+ 'BentoDropdown "error" property',
773
+ `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
774
+ Having the field as "undefined" will hide/remove the error.
775
+ <bento-dropdown errorMessage="Error message text" />`,
776
+ "2.0.0"
777
+ ), e.size && ie('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
778
+ const se = () => {
779
+ c.value.focus();
780
+ };
781
+ return t({
782
+ focus: se
783
+ }), { __sfc: !0, attrs: n, slots: l, hasSlot: s, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: m, optionsContainerRef: r, isDropdownOpen: d, dropdownOptionsContainerId: g, labelId: h, descriptionId: v, errorId: O, isReadOnly: S, cachedSelectedListboxOptions: w, cachedListboxSelectedValues: y, setCachedValues: I, ariaLabelAttribute: B, ariaLabel: T, label: f, computedAriaLabel: b, isInputComponent: E, computedSize: K, conditionalClasses: me, descriptionConditionalClasses: ye, searchTerm: N, items: R, staticCategories: Y, filteredItems: Z, isSearching: j, displayValue: be, selectedValueItem: _e, selectedValueIndex: Q, isMultiLevelSelect: X, flattenedItemsList: G, additionalItemsSelected: ge, ariaDescribedBy: he, openDropdown: ee, closeDropdown: z, toggleDropdown: te, clickOutsideDropdown: Ce, onOptionSelected: oe, emitShowMoreEvent: ne, textboxKeyboardNavigationListeners: Se, listboxKeyboardNavigationListeners: ae, listboxListeners: we, focus: se, BentoDropdownOptionsContainer: Je, BentoTypography: Ee, ErrorMessage: ke, FieldLabel: Pe, vBentoClickOutsideDirective: Me, vBentoKeyboardNavigationDirective: $e };
784
+ }
785
+ });
786
+ var gt = function() {
787
+ var n;
788
+ var t = this, o = t._self._c, e = t._self._setupProxy;
789
+ return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(l) {
790
+ e.searchTerm = l;
791
+ }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l, s) {
792
+ return { key: s, fn: function(i) {
793
+ return [t._t(s, null, null, i)];
794
+ } };
795
+ })], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (n = t.search) == null ? void 0 : n.debounceTime, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(l, s) {
796
+ return { key: s, fn: function(i) {
797
+ return [t._t(s, null, null, i)];
798
+ } };
799
+ })], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
800
+ return [t._v(" " + t._s(t.description) + " ")];
801
+ })], 2) : t._e()], 1);
802
+ }, ht = [], Ct = /* @__PURE__ */ F(
803
+ _t,
804
+ gt,
805
+ ht,
806
+ !1,
807
+ null,
808
+ "01f9156a"
809
+ );
810
+ const zt = Ct.exports;
811
+ export {
812
+ zt as B,
813
+ Ft as I,
814
+ yt as a,
815
+ Kt as b,
816
+ vt as u
817
+ };
818
+ //# sourceMappingURL=dropdown.Cx-3TGBk.js.map