@adyen/bento-vue2 1.89.2 → 1.91.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 (296) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +381 -118
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +3 -3
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chip.js +1 -1
  35. package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
  36. package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
  37. package/dist/chunks/action-bar.Dj830k6L.js +334 -0
  38. package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.js.map} +1 -1
  39. package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
  40. package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
  41. package/dist/chunks/ai-tag.AyG2UWCB.js +110 -0
  42. package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
  43. package/dist/chunks/alert.CXRb-Smf.js +160 -0
  44. package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
  45. package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
  46. package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
  47. package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.C52VMtnd.js} +104 -67
  48. package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
  50. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
  51. package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
  52. package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
  53. package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
  54. package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
  55. package/dist/chunks/{calendar.CXKhBF2f.js → calendar.CqsfThnC.js} +438 -346
  56. package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
  57. package/dist/chunks/card.8z7UQeVK.js +165 -0
  58. package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
  59. package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
  60. package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
  61. package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
  62. package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
  63. package/dist/chunks/chip.BFY_-VCz.js +84 -0
  64. package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
  65. package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
  66. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
  67. package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
  68. package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
  69. package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
  70. package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
  71. package/dist/chunks/copy.qqGYFbKJ.js +133 -0
  72. package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
  73. package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
  74. package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
  75. package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
  76. package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
  77. package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.DNxNVV44.js} +3 -3
  78. package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
  79. package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
  80. package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
  81. package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
  82. package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
  83. package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
  84. package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
  85. package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
  86. package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
  87. package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
  88. package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
  89. package/dist/chunks/dialog-page.EdejG53a.js +143 -0
  90. package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
  91. package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
  92. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
  93. package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
  94. package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
  95. package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
  96. package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
  97. package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
  98. package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
  99. package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
  100. package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
  101. package/dist/chunks/error-message.CyERcfdt.js +72 -0
  102. package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
  103. package/dist/chunks/field-label.DjjjkcO6.js +97 -0
  104. package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
  105. package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
  106. package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
  107. package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
  108. package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
  109. package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
  110. package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
  111. package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CvUaoMzj.js} +3 -3
  112. package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
  113. package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
  114. package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
  115. package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
  116. package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
  117. package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
  118. package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
  119. package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
  120. package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.js.map} +1 -1
  121. package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
  122. package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
  123. package/dist/chunks/input-field-password.BNAtIn_D.js +381 -0
  124. package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
  125. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
  126. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
  127. package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
  128. package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
  129. package/dist/chunks/input-time.BLuMfakv.js +135 -0
  130. package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
  131. package/dist/chunks/inspector.BzBPlz-5.js +172 -0
  132. package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
  133. package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
  134. package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
  135. package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
  136. package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
  137. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
  138. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
  139. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.DTvg2NLk.js} +63 -36
  140. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
  141. package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
  142. package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
  143. package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
  144. package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
  145. package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
  146. package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.js.map} +1 -1
  147. package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
  148. package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
  149. package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.Bb-L-0io.js} +4 -4
  150. package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
  151. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
  152. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
  153. package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
  154. package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
  155. package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
  156. package/dist/chunks/secondary-nav.C-nPZR-2.js.map +1 -0
  157. package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
  158. package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
  159. package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.CLJPaknG.js} +3 -3
  160. package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
  161. package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
  162. package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
  163. package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
  164. package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
  165. package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
  166. package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
  167. package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.DUIqCmwg.js} +5 -5
  168. package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
  169. package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
  170. package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
  171. package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
  172. package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
  173. package/dist/chunks/textarea.CJS-1I41.js +219 -0
  174. package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
  175. package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
  176. package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
  177. package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
  178. package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
  179. package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
  180. package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
  181. package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.CZt_mcuT.js} +190 -103
  182. package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
  183. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
  184. package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
  185. package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
  186. package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
  187. package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
  188. package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
  189. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
  190. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
  191. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  192. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  193. package/dist/click-outside.js +1 -1
  194. package/dist/code-snippet.js +1 -1
  195. package/dist/country.js +3 -3
  196. package/dist/dashboard-template.js +1 -1
  197. package/dist/dashed-underline.js +1 -1
  198. package/dist/data-grid-template.js +1 -1
  199. package/dist/data-grid.js +1 -1
  200. package/dist/date-picker.js +2 -2
  201. package/dist/date-range-picker.js +2 -2
  202. package/dist/draggable.js +1396 -0
  203. package/dist/draggable.js.map +1 -0
  204. package/dist/dropdown.js +11 -12
  205. package/dist/dropdown.js.map +1 -1
  206. package/dist/empty-state.js +1 -1
  207. package/dist/file-uploader.js +1 -1
  208. package/dist/filter-bar.js +1 -1
  209. package/dist/form-layout.js +1 -1
  210. package/dist/header-with-views.js +1 -1
  211. package/dist/header.js +1 -1
  212. package/dist/index.js +280 -275
  213. package/dist/index.js.map +1 -1
  214. package/dist/info-icon.js +1 -1
  215. package/dist/input-field-password.js +1 -1
  216. package/dist/input-field-phone-number.js +1 -1
  217. package/dist/input-field.js +1 -1
  218. package/dist/input-time.js +5 -0
  219. package/dist/input-time.js.map +1 -0
  220. package/dist/inspector.js +1 -1
  221. package/dist/internal.js +26 -25
  222. package/dist/internal.js.map +1 -1
  223. package/dist/link.js +1 -1
  224. package/dist/list.js +1 -1
  225. package/dist/menu.js +1 -1
  226. package/dist/modal-fullscreen.js +1 -1
  227. package/dist/modal.js +2 -2
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/rich-text-editor.js +1 -1
  233. package/dist/search-bar.js +2 -2
  234. package/dist/secondary-nav.js +1 -1
  235. package/dist/segmented-control.js +1 -1
  236. package/dist/selection-card.js +1 -1
  237. package/dist/sidepanel.js +1 -1
  238. package/dist/stepper.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/toast.js +1 -1
  246. package/dist/tutorial.js +1 -1
  247. package/dist/web-types.json +297 -4
  248. package/package.json +10 -15
  249. package/dist/assets/dropdown-default-textbox.css +0 -1
  250. package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
  251. package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
  252. package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
  253. package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
  254. package/dist/chunks/calendar.CXKhBF2f.js.map +0 -1
  255. package/dist/chunks/card.GjhsXOT0.js +0 -128
  256. package/dist/chunks/chip.DTpENaGC.js +0 -57
  257. package/dist/chunks/copy.BVGQcf22.js +0 -86
  258. package/dist/chunks/country.types.DxKjyd0S.js +0 -20
  259. package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
  260. package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
  261. package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
  262. package/dist/chunks/date-picker.CnazYcSX.js +0 -155
  263. package/dist/chunks/date-picker.CnazYcSX.js.map +0 -1
  264. package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
  265. package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
  266. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  267. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  268. package/dist/chunks/dialog-page.oyG153fC.js +0 -116
  269. package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
  270. package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
  271. package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
  272. package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
  273. package/dist/chunks/error-message.RxdStT3S.js +0 -106
  274. package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
  275. package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
  276. package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
  277. package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
  278. package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
  279. package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
  280. package/dist/chunks/input-field.m1PMwa4C.js +0 -170
  281. package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
  282. package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
  283. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  284. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
  285. package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
  286. package/dist/chunks/search-bar.DPjYDhja.js +0 -89
  287. package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
  288. package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
  289. package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
  290. package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
  291. package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
  292. package/dist/chunks/use-cached-selected-values.DqX2qsMC.js.map +0 -1
  293. package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
  294. package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
  295. package/dist/draggable-handle.js +0 -149
  296. package/dist/draggable-handle.js.map +0 -1
@@ -1,696 +0,0 @@
1
- import { ref as h, watch as ee, computed as d, defineComponent as N, useSlots as we, toRefs as Ce, nextTick as L, useAttrs as Me, toRef as x, inject as Pe } from "vue";
2
- import { d as Z, B as ke } from "./typography.C8lPlsbD.js";
3
- import { a as Q, b as P, c as $e, B as V, D as Fe } from "./dropdown-default-textbox.Dvzg0StF.js";
4
- /* empty css */
5
- import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { s as X } from "./events.BQOQSSb7.js";
7
- import { g as k } from "./generate-uid.NJ8tVoha.js";
8
- import { u as Ke } from "./aria-label.CaUURpnB.js";
9
- import { u as te } from "./index.B6WW_F-J.js";
10
- import { u as ze } from "./form-field.D_2g7vaP.js";
11
- import { B as c, b as G, a as ye, u as Ve, c as We, d as Ue } from "./use-cached-selected-values.DqX2qsMC.js";
12
- import { u as je } from "./use-form-layout-loading.CWbjZiwP.js";
13
- import { d as qe } from "./debounce.DUTu11PS.js";
14
- import { u as He } from "./use-has-slot.C9lQZ6nz.js";
15
- import { B as E, a as Je } from "./keyboard-navigation.DWmhelVv.js";
16
- import { B as Ye } from "./directive.rXUeDb8p.js";
17
- import { F as Ze, E as Qe } from "./error-message.RxdStT3S.js";
18
- import { P as _e } from "./popper-container.C_n9Ds1W.js";
19
- import { h as Xe } from "./button-actions.BLk114As.js";
20
- import "../assets/dropdown.css";
21
- const Ge = {
22
- "en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
23
- "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索条件に一致するオプションはありません" },
24
- "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "A busca não retornou nenhuma opção" }
25
- }, et = (n, t, o, e) => {
26
- const a = h(n.value), { t: l } = te();
27
- ee(n, () => {
28
- a.value = n.value;
29
- });
30
- const i = d(
31
- () => JSON.stringify(a.value) === JSON.stringify(n.value)
32
- ), r = () => {
33
- e(c.SELECT, a.value), e(c.CLOSE_DROPDOWN);
34
- }, b = () => {
35
- a.value = n.value, e(c.CLOSE_DROPDOWN);
36
- }, y = () => {
37
- o.value && t.value && (a.value = n.value);
38
- }, p = d(() => [
39
- {
40
- title: l("apply"),
41
- event: r,
42
- disabled: i.value
43
- },
44
- {
45
- title: l("cancel"),
46
- event: b
47
- }
48
- ]), f = (u) => {
49
- a.value = u, t.value || e(c.SELECT, u);
50
- }, s = (u) => {
51
- f(u), e(c.TAB);
52
- }, g = (u) => {
53
- f(u), e(c.ENTER);
54
- }, m = (u) => {
55
- f(u), e(c.SPACE);
56
- }, S = () => {
57
- b(), e(c.ESCAPE);
58
- }, O = () => {
59
- e(c.SHOW_MORE);
60
- }, C = {
61
- [c.SELECT]: f,
62
- [c.SHOW_MORE]: O,
63
- [c.TAB]: s,
64
- [c.SPACE]: m,
65
- [c.ENTER]: g
66
- };
67
- return {
68
- // Values
69
- actions: p,
70
- internalSelectedValue: a,
71
- // Methods
72
- listeners: C,
73
- onEscapeKey: S,
74
- onOutsideDropdownClick: y
75
- };
76
- }, tt = N({
77
- i18n: { messages: Ge },
78
- name: "bento-dropdown-options-container"
79
- }), ot = /* @__PURE__ */ N({
80
- ...tt,
81
- props: {
82
- /**
83
- * Defines a string value that labels an interactive element.
84
- */
85
- ariaLabel: { type: String, default: null },
86
- /**
87
- * Indicates that dropdown items are loading
88
- */
89
- componentLoading: { type: Boolean, default: !1 },
90
- /**
91
- * Empty state props used with the inner empty state component which is displayed when no search results are found.
92
- */
93
- emptyState: {
94
- type: Object,
95
- default: void 0
96
- },
97
- /**
98
- * Disables dropdown functionality
99
- */
100
- disabled: { type: Boolean, default: !1 },
101
- /**
102
- * Indicates whether there are more items to load
103
- */
104
- hasMoreItems: { type: Boolean, default: !1 },
105
- /**
106
- * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
107
- */
108
- id: { type: String, required: !0 },
109
- /**
110
- * Function that allows the options to be disabled
111
- *
112
- * @type {BentoDropdownIsOptionDisabled}
113
- * @param {BentoDropdownOptionItem} option - Dropdown option object
114
- * @param {string} option.label - Option's label text
115
- * @param {string|number} option.value - Option's value
116
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
117
- */
118
- isOptionDisabled: {
119
- type: Function,
120
- default: void 0
121
- },
122
- /**
123
- * The option elements to populate the dropdown with.
124
- * It must be an array of {@see BentoDropdownOptionItem }
125
- * * @property {string} value.label - Text to be displayed in the option
126
- * * @property {string,number} value.value - Value of the option
127
- */
128
- items: {
129
- type: Array,
130
- required: !0
131
- },
132
- /**
133
- * The type of `Lazy Load`.
134
- * Type "automatic" will enable infinite scrolling
135
- * Type "button" will enable lazy loading with "Show more" button
136
- */
137
- lazyLoadType: {
138
- type: String,
139
- default: ye.AUTOMATIC,
140
- validator: (n) => Object.values(ye).includes(n)
141
- },
142
- /**
143
- * Indicates if new options are lazy loading.
144
- */
145
- loading: { type: Boolean, default: !1 },
146
- /**
147
- * If enabled, the user will be able to select multiple items.
148
- */
149
- multiple: { type: Boolean, default: !1 },
150
- /**
151
- * Indicates if the dropdown is open so that
152
- * the container can be displayed.
153
- */
154
- open: { type: Boolean, required: !0 },
155
- /**
156
- * The `input` value.
157
- * Providing an empty string or empty array will select no options.
158
- * Set to an empty string `''` if you don't want any of the available options to be selected for single select
159
- */
160
- selectedValue: {
161
- type: Array,
162
- default: null
163
- },
164
- /**
165
- * Flag that indicates that an external search it's being made
166
- * to filter out the items inside the the multi-select listbox
167
- *
168
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
169
- */
170
- searching: G.props.searching,
171
- /**
172
- * If enabled, dropdown will display non-selectable, static categories
173
- */
174
- staticCategories: { type: Boolean, default: !1 },
175
- /**
176
- * Reference to the DOM element or Vue component for positioning
177
- * the Dropdown container.
178
- */
179
- targetElement: { type: _e.props.targetElement.type, required: !0 },
180
- /**
181
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
182
- * The itemHeight function is used to calculate the height of rendered item given it's index.
183
- */
184
- virtualScroll: {
185
- type: [Boolean, Object],
186
- default: !1
187
- }
188
- },
189
- emits: [],
190
- setup(n, { expose: t, emit: o }) {
191
- const e = n, a = we(), { selectedValue: l, multiple: i } = Ce(e), r = h(null), { t: b } = te(), y = d(() => e.open && !e.disabled), p = d(() => b("noOptionsMatchThisSearch")), f = d(() => ({
192
- "b-dropdown-options-container--single": !(e != null && e.multiple)
193
- })), s = d(() => ({
194
- "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
195
- })), { actions: g, internalSelectedValue: m, listeners: S, onEscapeKey: O, onOutsideDropdownClick: C } = et(l, i, y, o), u = d(() => e != null && e.multiple ? Xe : _e), I = d(() => {
196
- var B;
197
- const D = {
198
- "min-width": `${(B = e == null ? void 0 : e.targetElement) == null ? void 0 : B.clientWidth}px`,
199
- "max-width": "min(500px, 95%)"
200
- };
201
- return e != null && e.multiple ? {
202
- actionsLayout: "space-between",
203
- ariaLabel: e.ariaLabel,
204
- actions: g.value,
205
- divider: !0,
206
- fallbackPosition: ["top-start"],
207
- id: k(`dropdown-options-${e.id}`),
208
- open: e.open,
209
- position: "bottom-start",
210
- style: {
211
- width: "auto",
212
- ...D
213
- },
214
- targetElement: e.targetElement
215
- } : {
216
- fallbackPosition: ["top-start"],
217
- offset: [0, 8],
218
- position: "bottom-start",
219
- style: {
220
- display: y.value ? "block" : "none",
221
- ...D
222
- },
223
- targetElement: e.targetElement
224
- };
225
- });
226
- return t({
227
- onOutsideDropdownClick: C
228
- }), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: l, multiple: i, dropdownOptionsListboxRef: r, t: b, isDropdownOpen: y, noResultsMessage: p, conditionalClasses: f, conditionalListboxClasses: s, actions: g, internalSelectedValue: m, listeners: S, onEscapeKey: O, onOutsideDropdownClick: C, popperContainerOrPopoverComponent: u, popperContainerOrPopoverProps: I, BentoListbox: G };
229
- }
230
- });
231
- var at = function() {
232
- var t = this, o = t._self._c, e = t._self._setupProxy;
233
- return e.isDropdownOpen ? o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(a) {
234
- return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
235
- } } }, [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(a, l) {
236
- return { key: l, fn: function(i) {
237
- return [t._t(l, null, null, i)];
238
- } };
239
- })], null, !0) }, e.listeners))], 1)]) : t._e();
240
- }, nt = [], lt = /* @__PURE__ */ $(
241
- ot,
242
- at,
243
- nt,
244
- !1,
245
- null,
246
- "eb9fd4be"
247
- );
248
- const st = lt.exports;
249
- let ge = 0;
250
- const it = {
251
- beforeCreate() {
252
- this.uuid = ge.toString(), ge += 1;
253
- }
254
- };
255
- var rt = function() {
256
- var t = this, o = t._self._c;
257
- 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: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
258
- }, dt = [], ut = /* @__PURE__ */ $(
259
- it,
260
- rt,
261
- dt,
262
- !1,
263
- null,
264
- null
265
- );
266
- const ct = ut.exports;
267
- let he = 0;
268
- const pt = {
269
- beforeCreate() {
270
- this.uuid = he.toString(), he += 1;
271
- }
272
- };
273
- var ft = function() {
274
- var t = this, o = t._self._c;
275
- 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: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
276
- }, vt = [], mt = /* @__PURE__ */ $(
277
- pt,
278
- ft,
279
- vt,
280
- !1,
281
- null,
282
- null
283
- );
284
- const bt = mt.exports, yt = N({
285
- name: "dropdown-small-textbox",
286
- inheritAttrs: !1
287
- }), _t = /* @__PURE__ */ N({
288
- ...yt,
289
- props: {
290
- /**
291
- * The number of additional items that have been selected in the dropdown.
292
- */
293
- additionalItemsSelected: { type: [Number, String], default: 0 },
294
- /**
295
- * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
296
- */
297
- ariaControls: { type: String, required: !0 },
298
- /**
299
- * 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.
300
- */
301
- ariaExpanded: {
302
- type: [String, Boolean],
303
- required: !0
304
- },
305
- /**
306
- * If no label element is used then the aria-label is be set should be set.
307
- */
308
- ariaLabel: { type: String, default: null },
309
- /**
310
- * Corresponds to the label's id that labels the textbox element.
311
- */
312
- ariaLabelledby: { type: String, default: null },
313
- /**
314
- * Disables any textbox functionality
315
- */
316
- disabled: { type: Boolean, default: !1 },
317
- /**
318
- * Selected option's label
319
- */
320
- displayValue: { type: String, default: null },
321
- /**
322
- * Sets the possibility to type into the textbox
323
- */
324
- dynamicFiltering: { type: Boolean, default: !1 },
325
- /**
326
- * Marks the textbox as invalid, rendering an error state
327
- */
328
- isInvalid: { type: Boolean, default: !1 },
329
- /**
330
- * Indicates if the dropdown is open so that
331
- * the respective event can be emitted
332
- */
333
- open: { type: Boolean, default: !1 },
334
- /**
335
- * Sets the dropdown to readonly state
336
- */
337
- readonly: { type: Boolean, default: !1 },
338
- /**
339
- * The input value
340
- */
341
- value: { type: String, default: "" }
342
- },
343
- emits: ["clear", "close", "input", "keydown", "open"],
344
- setup(n, { expose: t, emit: o }) {
345
- const e = n, a = h(null), l = d(() => ({
346
- [`b-dropdown-small-textbox--${Q.DISABLED}`]: e.disabled,
347
- [`b-dropdown-small-textbox--${Q.READONLY}`]: e.readonly,
348
- [`b-dropdown-small-textbox--${Q.OPENED}`]: e.open
349
- })), i = d(() => e.open && !e.disabled && !e.readonly), r = (m) => {
350
- o("input", m);
351
- }, b = (m) => {
352
- o("keydown", m);
353
- }, y = (m) => {
354
- X(m), o("open");
355
- }, p = (m) => {
356
- X(m), o("close");
357
- }, f = (m) => {
358
- X(m), o("clear");
359
- }, s = {
360
- [P.INPUT]: r,
361
- [P.OPEN]: y,
362
- [P.CLOSE]: p,
363
- [P.CLEAR]: f,
364
- [P.KEYDOWN]: b
365
- }, g = () => {
366
- a.value.focus();
367
- };
368
- return t({
369
- focus: g
370
- }), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: l, isDropdownOpen: i, onInput: r, onKeyDown: b, openDropdown: y, closeDropdown: p, clearValue: f, listeners: s, focus: g, BentoDropdownSize: V, DropdownBaseTextbox: $e, ChevronDownSmallIcon: ct, ChevronUpSmallIcon: bt };
371
- }
372
- });
373
- var gt = function() {
374
- var t = this, o = t._self._c, e = t._self._setupProxy;
375
- 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() {
376
- 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)];
377
- }, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
378
- }, ht = [], wt = /* @__PURE__ */ $(
379
- _t,
380
- gt,
381
- ht,
382
- !1,
383
- null,
384
- "faba160c"
385
- );
386
- const Ct = wt.exports, Lt = (n, t) => t.value.reduce((o, e) => {
387
- if (e.items) {
388
- const a = e.items.filter(
389
- (i) => n.value.find((r) => r.value === i.value)
390
- );
391
- a.length === e.items.length ? o.push(e.displayValue ?? e.label) : a.forEach(({ label: i, displayValue: r }) => o.push(r ?? i));
392
- }
393
- return n.value.find((a) => a.value === e.value) && o.push(e.displayValue ?? e.label), o;
394
- }, []).join(", "), xt = ({ items: n, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
395
- const a = d(
396
- () => e.value && n.value.find((i) => {
397
- var r;
398
- return (r = i.items) == null ? void 0 : r.length;
399
- })
400
- );
401
- return d(() => o.value.length ? a.value ? Lt(o, n) : o.value.map(({ label: i, displayValue: r }) => r ?? i).join(", ") : t.value || null);
402
- }, Le = (n) => {
403
- var t;
404
- (t = n.value.$children) == null || t[0].$refs.textbox.focus();
405
- }, St = ({
406
- inputContainerRef: n,
407
- optionsContainerRef: t,
408
- selectedValueIndex: o,
409
- isDropdownOpen: e,
410
- isDynamicFltering: a,
411
- items: l,
412
- isMultiple: i
413
- }, r, b, y) => {
414
- const p = async (_) => {
415
- var w;
416
- a.value && await L(), (w = l.value[_]) == null || w.focus();
417
- }, f = async (_) => {
418
- var R, K;
419
- a.value && await L();
420
- const w = (R = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : R.$el.querySelectorAll(
421
- "button"
422
- );
423
- w.length ? (K = w[_]) == null || K.focus() : p(_);
424
- }, s = (_) => {
425
- var w;
426
- return (w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.setListboxFocusedIndex(
427
- _
428
- );
429
- }, g = () => {
430
- e.value || b(), L(() => {
431
- s(0), p(0);
432
- });
433
- }, m = () => {
434
- e.value || b(), L(() => {
435
- s(l.value.length - 1), p(l.value.length - 1);
436
- });
437
- }, S = ({ detail: _ }) => {
438
- _.preventDefault(), g();
439
- }, O = ({ detail: _ }) => {
440
- _.preventDefault(), m();
441
- }, C = () => {
442
- g();
443
- }, u = () => {
444
- m();
445
- }, I = ({ detail: _ }) => {
446
- _.preventDefault(), r(), e.value && L(() => {
447
- i ? f(0) : (s(o.value), p(o.value));
448
- });
449
- }, D = ({ detail: _ }) => {
450
- _.preventDefault(), r(), e.value && L(() => {
451
- i ? f(0) : (s(o.value), p(o.value));
452
- });
453
- }, B = () => {
454
- e.value && y();
455
- }, F = () => {
456
- e.value && (y(), Le(n));
457
- };
458
- return d(() => ({
459
- [E.ARROW_DOWN]: S,
460
- [E.ARROW_UP]: O,
461
- [E.HOME]: C,
462
- [E.END]: u,
463
- ...a.value ? {} : { [E.SPACE]: I },
464
- [E.ENTER]: D,
465
- [E.TAB]: B,
466
- [E.ESCAPE]: F
467
- }));
468
- }, Ot = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
469
- const e = () => {
470
- t.value && o(), L(() => {
471
- Le(n);
472
- });
473
- };
474
- return {
475
- [c.ENTER]: e,
476
- [c.ESCAPE]: e,
477
- [c.TAB]: e,
478
- [c.SPACE]: e
479
- };
480
- };
481
- function Et(n, t, o, e, a) {
482
- const l = h(n), i = h(t), r = (p, f = []) => f.flatMap((s) => s.label.toLocaleLowerCase().includes(p) ? e != null && e.value && s.items ? [...r(p, s.items)] : [s, ...r(p, s.items)] : s.items ? [...r(p, s.items)] : []), b = o !== void 0 ? qe(() => o(l.value), a ?? 300) : void 0;
483
- return ee(l, () => {
484
- b !== void 0 && b();
485
- }), d(() => {
486
- if (!l.value || o !== void 0)
487
- return i.value;
488
- const p = l.value.toLocaleLowerCase();
489
- return r(p, i.value);
490
- });
491
- }
492
- const Dt = {
493
- "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
494
- "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
495
- "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" }
496
- }, Bt = /* @__PURE__ */ Symbol("input field component injection key"), eo = /* @__PURE__ */ Symbol("input field hint injection key"), to = /* @__PURE__ */ Symbol("input field parent component injection key"), It = N({
497
- i18n: { messages: Dt },
498
- name: "b-dropdown",
499
- components: {
500
- DropdownInputDefault: Fe,
501
- DropdownInputSmall: Ct
502
- },
503
- model: { prop: "modelValue" }
504
- }), Tt = /* @__PURE__ */ N({
505
- ...It,
506
- props: {
507
- description: { default: null },
508
- disabled: { type: Boolean, default: !1 },
509
- errorMessage: { default: null },
510
- label: { default: null },
511
- optional: { type: Boolean, default: !1 },
512
- placeholder: { default: null },
513
- readonly: { type: Boolean, default: !1 },
514
- required: { type: Boolean, default: !1 },
515
- tooltipText: { default: null },
516
- ariaLabel: { default: null },
517
- condensed: { type: Boolean, default: !1 },
518
- emptyState: { default: void 0 },
519
- dynamicFiltering: { type: Boolean, default: !1 },
520
- error: { type: Boolean, default: !1 },
521
- hasMoreItems: { type: Boolean, default: !1 },
522
- isOptionDisabled: { type: Function, default: void 0 },
523
- items: { default: () => [] },
524
- loading: { type: Boolean, default: !1 },
525
- componentLoading: { type: Boolean, default: !1 },
526
- lazyLoadType: { default: G.props.lazyLoadType.default },
527
- multiple: { type: Boolean, default: !1 },
528
- search: { default: void 0 },
529
- showSlotContentInMultiple: { type: Boolean, default: !1 },
530
- size: { default: null },
531
- staticCategories: { type: Boolean, default: !1 },
532
- value: { default: null },
533
- modelValue: { default: null },
534
- virtualScroll: { type: Boolean, default: !1 },
535
- enableValueLabelPair: { type: Boolean, default: !1 }
536
- },
537
- emits: ["input", "update:model-value", "show-more", "open"],
538
- setup(n, { expose: t, emit: o }) {
539
- var me, be;
540
- const e = n, a = Me(), l = we(), i = He(l), { t: r } = te(), { emitValue: b } = ze(o), y = h(null), p = h(null), f = h(null), s = h(!1), g = k("bento-dropdown-options-container"), m = k("dropdown-label"), S = k("dropdown-description"), O = k("dropdown-error"), { isReadOnly: C } = je(x(e, "readonly")), u = d(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: I, cachedListboxSelectedValues: D, setCachedValues: B } = Ve(
541
- x(e, "items"),
542
- u,
543
- x(e, "multiple"),
544
- x(e, "enableValueLabelPair")
545
- ), F = h(a["aria-label"]), W = h(a["aria-describedby"]), { ariaLabel: _, label: w } = Ce(e), R = d(() => r("ariaLabelFallback")), K = Ke({
546
- // TODO: take ariaLabel ref away when aria-label prop is removed
547
- ariaLabel: _.value || F,
548
- label: w,
549
- defaultFallback: R
550
- }), oe = e.size === V.SMALL || Pe(Bt, !1), xe = d(() => oe ? V.SMALL : V.DEFAULT), Se = d(() => ({
551
- "b-dropdown--condensed": e.condensed
552
- })), Oe = d(() => ({
553
- "b-dropdown__description--error": !!e.errorMessage
554
- })), T = h(""), M = x(e, "items"), ae = x(e, "staticCategories"), U = Et(
555
- T,
556
- M,
557
- (me = e == null ? void 0 : e.search) == null ? void 0 : me.searchEvent,
558
- ae,
559
- (be = e == null ? void 0 : e.search) == null ? void 0 : be.debounceTime
560
- ), j = d(() => e.dynamicFiltering && !!T.value), Ee = xt({
561
- items: M,
562
- placeholder: x(e, "placeholder"),
563
- isMultiSelect: x(e, "multiple"),
564
- selectedValues: I
565
- }), De = d(() => {
566
- if (e != null && e.multiple && Array.isArray(u.value))
567
- return e.items.filter(
568
- ({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
569
- );
570
- if (!e.multiple && e.staticCategories) {
571
- const v = e.items.find(
572
- (Y) => Y.items.some((Re) => Re.value === u.value)
573
- );
574
- return v ? v.items.find((Y) => Y.value === u.value) : null;
575
- }
576
- return e.items.find(({ value: v }) => v === u.value);
577
- }), ne = d(() => {
578
- const v = U.value.findIndex(({ value: A }) => e.enableValueLabelPair ? u.value.value === A : u.value === A);
579
- return v > -1 ? v : 0;
580
- }), { isMultiLevelSelect: q, flattenedItemsList: le } = We(M), se = d(() => q.value && !e.staticCategories), ie = d(() => se.value ? "treeitem" : "option"), Be = d(() => {
581
- if (e.multiple) {
582
- const v = Array.isArray(u.value) ? u.value.length : 0, A = q.value ? le.value.length : M.value.length;
583
- return v === 0 ? null : !e.hasMoreItems && A > 0 && A === v ? r("all") : v;
584
- }
585
- return null;
586
- }), Ie = d(
587
- () => [
588
- e.description ? S : null,
589
- W.value,
590
- e.errorMessage ? O : null
591
- ].filter(Boolean).join(" ") || null
592
- ), re = d(() => {
593
- var v;
594
- return (v = f.value) == null ? void 0 : v.$el;
595
- }), { visibleDomOptions: de, updateVisibleDomOptions: H } = Ue(
596
- re,
597
- U,
598
- ie
599
- ), ue = () => {
600
- C.value || (s.value = !0, L(() => {
601
- H();
602
- }));
603
- }, z = () => {
604
- s.value = !1;
605
- }, ce = () => {
606
- C.value || (s.value = !s.value, L(() => {
607
- H();
608
- }), j.value && (T.value = ""));
609
- }, Te = () => {
610
- j.value && (T.value = ""), s.value && (s.value = !1, f.value.onOutsideDropdownClick());
611
- }, pe = async (v) => {
612
- e.multiple || (T.value = "", s.value = !1), B(v), b(D.value), e.multiple || (await L(), J());
613
- }, fe = () => {
614
- o(c.SHOW_MORE);
615
- }, Ae = St(
616
- {
617
- inputContainerRef: y,
618
- optionsContainerRef: f,
619
- selectedValueIndex: ne,
620
- isDropdownOpen: s,
621
- isDynamicFltering: x(e, "dynamicFiltering"),
622
- items: de,
623
- isMultiple: e.multiple
624
- },
625
- ce,
626
- ue,
627
- z
628
- ), ve = Ot(
629
- {
630
- inputContainerRef: y,
631
- isDropdownOpen: s
632
- },
633
- z
634
- ), Ne = {
635
- [c.CLOSE_DROPDOWN]: z,
636
- [c.SELECT]: pe,
637
- [c.SHOW_MORE]: fe,
638
- ...ve
639
- };
640
- e.error && Z(
641
- 'BentoDropdown "error" property',
642
- `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
643
- Having the field as "undefined" will hide/remove the error.
644
- <bento-dropdown errorMessage="Error message text" />`,
645
- "2.0.0"
646
- ), e.size && Z('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && Z(
647
- 'BentoDropdown "value" property',
648
- `The use of "value" prop in "BentoDropdown" is no longer supported.
649
- Use the "v-model" or "model-value" property instead.`,
650
- "2.0.0"
651
- );
652
- const J = () => {
653
- y.value.focus();
654
- };
655
- return ee(
656
- () => s.value,
657
- (v) => {
658
- v && o("open");
659
- }
660
- ), t({
661
- focus: J
662
- }), { __sfc: !0, attrs: a, slots: l, hasSlot: i, props: e, emit: o, t: r, emitValue: b, inputContainerRef: y, inputContainerRefWrapper: p, optionsContainerRef: f, isDropdownOpen: s, dropdownOptionsContainerId: g, labelId: m, descriptionId: S, errorId: O, isReadOnly: C, dropdownValue: u, cachedSelectedListboxOptions: I, cachedListboxSelectedValues: D, setCachedValues: B, ariaLabelAttribute: F, ariaDescribedByAttribute: W, ariaLabel: _, label: w, computedAriaLabelFallbackMessage: R, computedAriaLabel: K, isInputComponent: oe, computedSize: xe, conditionalClasses: Se, descriptionConditionalClasses: Oe, searchTerm: T, items: M, staticCategories: ae, filteredItems: U, isSearching: j, displayValue: Ee, selectedValueItem: De, selectedValueIndex: ne, isMultiLevelSelect: q, flattenedItemsList: le, isTreePattern: se, computedOptionRole: ie, additionalItemsSelected: Be, ariaDescribedBy: Ie, listboxRef: re, visibleDomOptions: de, updateVisibleDomOptions: H, openDropdown: ue, closeDropdown: z, toggleDropdown: ce, clickOutsideDropdown: Te, onOptionSelected: pe, emitShowMoreEvent: fe, textboxKeyboardNavigationListeners: Ae, listboxKeyboardNavigationListeners: ve, listboxListeners: Ne, focus: J, BentoDropdownOptionsContainer: st, BentoTypography: ke, ErrorMessage: Qe, FieldLabel: Ze, vBentoClickOutsideDirective: Ye, vBentoKeyboardNavigationDirective: Je };
663
- }
664
- });
665
- var At = function() {
666
- var t = this, o = t._self._c, e = t._self._setupProxy;
667
- 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, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, "aria-required": t.required, 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(a) {
668
- e.searchTerm = a;
669
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
670
- return { key: l, fn: function(i) {
671
- return [t._t(l, null, null, i)];
672
- } };
673
- })], 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, 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(a, l) {
674
- return { key: l, fn: function(i) {
675
- return [t._t(l, null, null, i)];
676
- } };
677
- })], 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() {
678
- return [t._v(" " + t._s(t.description) + " ")];
679
- })], 2) : t._e()], 1);
680
- }, Nt = [], Rt = /* @__PURE__ */ $(
681
- Tt,
682
- At,
683
- Nt,
684
- !1,
685
- null,
686
- "3edb5f79"
687
- );
688
- const oo = Rt.exports;
689
- export {
690
- oo as B,
691
- eo as I,
692
- Bt as a,
693
- to as b,
694
- Et as u
695
- };
696
- //# sourceMappingURL=dropdown.Ct7uhPr6.js.map