@adyen/bento-vue2 1.94.0 → 1.95.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 (262) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +296 -126
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/dashed-underline.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/date-time-picker.css +1 -0
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/form-layout-group.css +1 -0
  21. package/dist/assets/form-layout-title.css +1 -1
  22. package/dist/assets/header-meta.css +1 -1
  23. package/dist/assets/input-field.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/link.css +1 -1
  26. package/dist/assets/modal-fullscreen.css +1 -1
  27. package/dist/assets/navigation-menu-group.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
  34. package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
  35. package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
  36. package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
  37. package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
  38. package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
  39. package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
  40. package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
  41. package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
  42. package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
  43. package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
  44. package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
  45. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
  46. package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
  47. package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
  48. package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
  49. package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
  50. package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
  51. package/dist/chunks/{calendar.CCUVI1IF.js → calendar.ofn3G6eW.js} +19 -19
  52. package/dist/chunks/{calendar.CCUVI1IF.js.map → calendar.ofn3G6eW.js.map} +1 -1
  53. package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
  54. package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
  56. package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
  57. package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
  58. package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
  59. package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.B3iCsNmb.js} +5 -5
  60. package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.B3iCsNmb.js.map} +1 -1
  61. package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
  62. package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
  63. package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
  64. package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
  65. package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.HFJcf8-_.js} +4 -4
  66. package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.HFJcf8-_.js.map} +1 -1
  67. package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
  68. package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
  69. package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BjfPUEoH.js} +4 -4
  70. package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BjfPUEoH.js.map} +1 -1
  71. package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Cua2Jxvq.js} +212 -212
  72. package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Cua2Jxvq.js.map} +1 -1
  73. package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.CYDTf6De.js} +90 -82
  74. package/dist/chunks/date-picker.CYDTf6De.js.map +1 -0
  75. package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.DGGvwRfn.js} +252 -271
  76. package/dist/chunks/date-range-picker.DGGvwRfn.js.map +1 -0
  77. package/dist/chunks/date-time-picker.CyNb-xDm.js +129 -0
  78. package/dist/chunks/date-time-picker.CyNb-xDm.js.map +1 -0
  79. package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
  80. package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
  81. package/dist/chunks/directive.BBWhsNtO.js +28 -0
  82. package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
  83. package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.CU1L7J87.js} +3 -3
  84. package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.CU1L7J87.js.map} +1 -1
  85. package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
  86. package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
  87. package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.C1qg52L9.js} +3 -3
  88. package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.C1qg52L9.js.map} +1 -1
  89. package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.BEurqT8m.js} +323 -323
  90. package/dist/chunks/dropdown.BEurqT8m.js.map +1 -0
  91. package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
  92. package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
  93. package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
  94. package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
  95. package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
  96. package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
  97. package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.gjMPoK6d.js} +19 -19
  98. package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.gjMPoK6d.js.map} +1 -1
  99. package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
  100. package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
  101. package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
  102. package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
  103. package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
  104. package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
  105. package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
  106. package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
  107. package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
  108. package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
  109. package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
  110. package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.B2Ok5KI1.js} +11 -11
  112. package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.B2Ok5KI1.js.map} +1 -1
  113. package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
  114. package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
  115. package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
  116. package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
  117. package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
  118. package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
  119. package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.viF49CQh.js} +20 -21
  120. package/dist/chunks/{input-field-password.C2ogXvbh.js.map → input-field-password.viF49CQh.js.map} +1 -1
  121. package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DnpTj7q5.js} +13 -14
  122. package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DnpTj7q5.js.map} +1 -1
  123. package/dist/chunks/{input-field.CRsU2NBh.js → input-field.D86PSAiu.js} +77 -74
  124. package/dist/chunks/input-field.D86PSAiu.js.map +1 -0
  125. package/dist/chunks/{input-time.BSrSAN3r.js → input-time.LyKZXnVO.js} +7 -8
  126. package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.LyKZXnVO.js.map} +1 -1
  127. package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
  128. package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
  129. package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
  130. package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
  131. package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
  132. package/dist/chunks/link.BpuCRgok.js.map +1 -0
  133. package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
  134. package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
  137. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
  138. package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
  139. package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
  140. package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
  141. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
  142. package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
  143. package/dist/chunks/{pagination.Jv60K59y.js → pagination.CJ3d1O_s.js} +3 -3
  144. package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.CJ3d1O_s.js.map} +1 -1
  145. package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
  146. package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
  147. package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
  148. package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
  149. package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
  150. package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
  151. package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
  152. package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
  154. package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
  155. package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.BvHhXdNu.js} +10 -11
  156. package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.BvHhXdNu.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.BLF9iQOV.js → secondary-nav.BvbT8LXa.js} +5 -5
  158. package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.BvbT8LXa.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
  160. package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
  161. package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
  162. package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
  163. package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
  164. package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
  165. package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
  166. package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
  168. package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
  169. package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
  170. package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
  171. package/dist/chunks/{tab.t1v1GxSA.js → tab.YQXssvyU.js} +3 -3
  172. package/dist/chunks/{tab.t1v1GxSA.js.map → tab.YQXssvyU.js.map} +1 -1
  173. package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
  174. package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
  175. package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
  176. package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
  177. package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
  178. package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
  179. package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
  180. package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
  181. package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
  182. package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
  183. package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
  184. package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
  185. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
  186. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
  187. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.txnml8sE.js} +3 -3
  188. package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.txnml8sE.js.map} +1 -1
  189. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.D7Ud6Ana.js} +2 -2
  190. package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.D7Ud6Ana.js.map} +1 -1
  191. package/dist/code-snippet.js +1 -1
  192. package/dist/dashboard-template.js +1 -1
  193. package/dist/dashed-underline.js +1 -1
  194. package/dist/data-grid-template.js +1 -1
  195. package/dist/data-grid.js +1 -1
  196. package/dist/date-picker.js +2 -2
  197. package/dist/date-range-picker.js +2 -2
  198. package/dist/date-time-picker.js +5 -0
  199. package/dist/date-time-picker.js.map +1 -0
  200. package/dist/draggable.js +1 -1
  201. package/dist/drawer.js +1 -1
  202. package/dist/dropdown.js +3 -3
  203. package/dist/empty-state.js +1 -1
  204. package/dist/file-uploader.js +1 -1
  205. package/dist/filter-bar.js +1 -1
  206. package/dist/focus-trap.js +1 -1
  207. package/dist/form-layout.js +5 -4
  208. package/dist/form-layout.js.map +1 -1
  209. package/dist/header-with-views.js +1 -1
  210. package/dist/header.js +1 -1
  211. package/dist/index.js +273 -268
  212. package/dist/index.js.map +1 -1
  213. package/dist/info-icon.js +1 -1
  214. package/dist/input-field-password.js +1 -1
  215. package/dist/input-field-phone-number.js +1 -1
  216. package/dist/input-field.js +1 -1
  217. package/dist/input-time.js +1 -1
  218. package/dist/inspector.js +1 -1
  219. package/dist/internal.js +12 -12
  220. package/dist/layout.js +1 -1
  221. package/dist/link.js +1 -1
  222. package/dist/list.js +1 -1
  223. package/dist/menu.js +1 -1
  224. package/dist/modal-fullscreen.js +1 -1
  225. package/dist/modal.js +2 -2
  226. package/dist/navigation-menu.js +1 -1
  227. package/dist/pagination.js +1 -1
  228. package/dist/popover.js +2 -2
  229. package/dist/popper-container.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/structured-list.js +1 -1
  239. package/dist/summary-grid.js +1 -1
  240. package/dist/tabs.js +1 -1
  241. package/dist/tag.js +1 -1
  242. package/dist/textarea.js +1 -1
  243. package/dist/timeline.js +1 -1
  244. package/dist/toast.js +1 -1
  245. package/dist/tutorial.js +1 -1
  246. package/dist/web-types.json +160 -3
  247. package/package.json +7 -7
  248. package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
  249. package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
  250. package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
  251. package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
  252. package/dist/chunks/directive.Bfr4fuOy.js +0 -23
  253. package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
  254. package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
  255. package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
  256. package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
  257. package/dist/chunks/header-meta._l0IV3jf.js +0 -248
  258. package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
  259. package/dist/chunks/link.DB5g6d48.js.map +0 -1
  260. package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
  261. package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
  262. package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
@@ -1,248 +0,0 @@
1
- import { shallowRef as P, watch as T, defineComponent as S, ref as p, computed as g, useSlots as b } from "vue";
2
- import { h as x, a as R } from "./button-actions.CyMKvVwN.js";
3
- import { B as j } from "./popover.types.CQ5g4kw2.js";
4
- import { p as E, B as y } from "./typography.C8lPlsbD.js";
5
- import { g as C } from "./generate-uid.NJ8tVoha.js";
6
- import { u as B } from "./index.B6WW_F-J.js";
7
- import { I as F } from "./info.CcMZ4aGg.js";
8
- import { n as U } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
- import { u as L } from "./use-has-slot.C9lQZ6nz.js";
10
- import { c as X } from "./constructNow.CK0ryPil.js";
11
- import { t as D, d as z, n as w, k as M, j as N, o as O, p as _, g as $ } from "./en-US.BK5uiAND.js";
12
- import { d as A } from "./differenceInMonths.CpwVtHZX.js";
13
- import { g as Y } from "./getRoundingMethod.C3eaeGLR.js";
14
- import { R as G } from "./refresh.arF7jP-l.js";
15
- import "../assets/header-meta.css";
16
- const v = /* @__PURE__ */ Object.assign({
17
- "../../../node_modules/date-fns/locale/de.js": () => import("./de.pvjpUJ1o.js"),
18
- "../../../node_modules/date-fns/locale/en-GB.js": () => import("./en-GB.-Q7Oq-nY.js"),
19
- "../../../node_modules/date-fns/locale/en-US.js": () => import("./en-US.BK5uiAND.js").then((s) => s.x),
20
- "../../../node_modules/date-fns/locale/es.js": () => import("./es.2H4LvTyV.js"),
21
- "../../../node_modules/date-fns/locale/fr.js": () => import("./fr.Cu0IIfBP.js"),
22
- "../../../node_modules/date-fns/locale/it.js": () => import("./it.B65snrJA.js"),
23
- "../../../node_modules/date-fns/locale/ja.js": () => import("./ja.xGVfFSzL.js"),
24
- "../../../node_modules/date-fns/locale/pt-BR.js": () => import("./pt-BR.D9FuAQZm.js"),
25
- "../../../node_modules/date-fns/locale/zh-CN.js": () => import("./zh-CN.Be4pa3-g.js")
26
- });
27
- function H(s) {
28
- const e = P(void 0);
29
- return T(
30
- s,
31
- async (t) => {
32
- if (!t) {
33
- e.value = void 0;
34
- return;
35
- }
36
- const o = (i) => `../../../node_modules/date-fns/locale/${i}.js`;
37
- let n = o(t);
38
- if (v[n] || (n = o(t.substring(0, 2))), v[n] || (n = o("en-US")), v[n])
39
- try {
40
- const i = await v[n]();
41
- e.value = i.default;
42
- } catch (i) {
43
- E(`Failed to load date-fns locale: ${t}`, i);
44
- }
45
- },
46
- { immediate: !0 }
47
- ), e;
48
- }
49
- function k(s, e) {
50
- return +D(s) - +D(e);
51
- }
52
- function V(s, e, t) {
53
- const o = k(s, e) / 1e3;
54
- return Y(t == null ? void 0 : t.roundingMethod)(o);
55
- }
56
- function W(s, e, t) {
57
- const o = $(), n = (t == null ? void 0 : t.locale) ?? o.locale ?? N, i = 2520, c = z(s, e);
58
- if (isNaN(c)) throw new RangeError("Invalid time value");
59
- const a = Object.assign({}, t, {
60
- addSuffix: t == null ? void 0 : t.addSuffix,
61
- comparison: c
62
- }), [l, u] = w(
63
- t == null ? void 0 : t.in,
64
- ...c > 0 ? [e, s] : [s, e]
65
- ), f = V(u, l), I = (M(u) - M(l)) / 1e3, r = Math.round((f - I) / 60);
66
- let m;
67
- if (r < 2)
68
- return t != null && t.includeSeconds ? f < 5 ? n.formatDistance("lessThanXSeconds", 5, a) : f < 10 ? n.formatDistance("lessThanXSeconds", 10, a) : f < 20 ? n.formatDistance("lessThanXSeconds", 20, a) : f < 40 ? n.formatDistance("halfAMinute", 0, a) : f < 60 ? n.formatDistance("lessThanXMinutes", 1, a) : n.formatDistance("xMinutes", 1, a) : r === 0 ? n.formatDistance("lessThanXMinutes", 1, a) : n.formatDistance("xMinutes", r, a);
69
- if (r < 45)
70
- return n.formatDistance("xMinutes", r, a);
71
- if (r < 90)
72
- return n.formatDistance("aboutXHours", 1, a);
73
- if (r < O) {
74
- const d = Math.round(r / 60);
75
- return n.formatDistance("aboutXHours", d, a);
76
- } else {
77
- if (r < i)
78
- return n.formatDistance("xDays", 1, a);
79
- if (r < _) {
80
- const d = Math.round(r / O);
81
- return n.formatDistance("xDays", d, a);
82
- } else if (r < _ * 2)
83
- return m = Math.round(r / _), n.formatDistance("aboutXMonths", m, a);
84
- }
85
- if (m = A(u, l), m < 12) {
86
- const d = Math.round(r / _);
87
- return n.formatDistance("xMonths", d, a);
88
- } else {
89
- const d = m % 12, h = Math.trunc(m / 12);
90
- return d < 3 ? n.formatDistance("aboutXYears", h, a) : d < 9 ? n.formatDistance("overXYears", h, a) : n.formatDistance("almostXYears", h + 1, a);
91
- }
92
- }
93
- function J(s, e) {
94
- return W(s, X(s), e);
95
- }
96
- const q = {
97
- "de-DE": {
98
- moreInformation: "Weitere Informationen"
99
- },
100
- "en-GB": {
101
- moreInformation: "More information"
102
- },
103
- "en-US": {
104
- moreInformation: "More information"
105
- },
106
- "es-ES": {
107
- moreInformation: "Más información"
108
- },
109
- "es-MX": {
110
- moreInformation: "Más información"
111
- },
112
- "fr-FR": {
113
- moreInformation: "Plus d'informations"
114
- },
115
- "it-IT": {
116
- moreInformation: "Ulteriori informazioni"
117
- },
118
- "ja-JP": {
119
- moreInformation: "詳細情報"
120
- },
121
- "pt-BR": {
122
- moreInformation: "Mais informações"
123
- },
124
- "zh-CN": {
125
- moreInformation: "更多信息"
126
- }
127
- }, K = {
128
- i18n: { messages: q }
129
- }, Q = /* @__PURE__ */ S({
130
- ...K,
131
- __name: "info-icon-with-popover",
132
- props: {
133
- /**
134
- * Text showed in the popover on hover
135
- */
136
- popoverText: { type: String, default: null },
137
- /**
138
- * Position the popover should take if space is available
139
- */
140
- popoverPosition: {
141
- type: String,
142
- default: "bottom-start",
143
- validator: (s) => Object.values(j).includes(s)
144
- }
145
- },
146
- setup(s) {
147
- const { t } = B(), o = p(), n = p(null), i = C("bento-info-icon-with-popover"), c = p(), a = p(), l = () => {
148
- c.value = !0, a.value && clearTimeout(a.value);
149
- }, u = () => {
150
- const r = setTimeout(() => {
151
- c.value = !1;
152
- }, 200);
153
- a.value = r;
154
- };
155
- return { __sfc: !0, CLOSING_POPOVER_DELAY_MS: 200, t, infoIconRef: o, targetElement: n, popoverId: i, isOpen: c, closingTimeOutId: a, openPopover: l, closePopover: u, infoIconOnFocus: () => {
156
- l();
157
- }, infoIconOnFocusOut: (r) => {
158
- (!o.value || !((r == null ? void 0 : r.relatedTarget) instanceof Element) || !o.value.contains(r.relatedTarget)) && u();
159
- }, BentoPopover: x, BentoTypography: y, InfoIcon: F };
160
- }
161
- });
162
- var Z = function() {
163
- var e = this, t = e._self._c, o = e._self._setupProxy;
164
- return t("div", { ref: "infoIconRef", staticClass: "b-info-icon-with-popover", attrs: { tabindex: "0", "data-testid": "info-icon-with-popover" }, on: { mouseenter: o.openPopover, mouseleave: o.closePopover, focus: o.infoIconOnFocus, focusout: o.infoIconOnFocusOut } }, [t(o.InfoIcon, { ref: "targetElement", staticClass: "b-info-icon-with-popover__svg", attrs: { "aria-expanded": o.isOpen, "aria-describedby": o.popoverId, "svg-title": o.t("moreInformation") } }), o.targetElement ? t(o.BentoPopover, { attrs: { open: o.isOpen, "target-element": o.targetElement, position: e.popoverPosition, role: "tooltip", "fit-content": "", "disable-focus-trap": "" } }, [t(o.BentoTypography, [e._t("default", function() {
165
- return [e.popoverText ? t("div", [e._v(" " + e._s(e.popoverText) + " ")]) : e._e()];
166
- })], 2)], 1) : e._e()], 1);
167
- }, ee = [], te = /* @__PURE__ */ U(
168
- Q,
169
- Z,
170
- ee,
171
- !1,
172
- null,
173
- "d4854f91"
174
- );
175
- const Oe = te.exports, oe = {
176
- "de-DE": {
177
- lastUpdated: "Letzte Aktualisierung: {date}"
178
- },
179
- "en-GB": {
180
- lastUpdated: "Last updated: {date}"
181
- },
182
- "en-US": {
183
- lastUpdated: "Last updated: {date}"
184
- },
185
- "es-ES": {
186
- lastUpdated: "Última actualización: {date}"
187
- },
188
- "es-MX": {
189
- lastUpdated: "Última actualización: {date}"
190
- },
191
- "fr-FR": {
192
- lastUpdated: "Dernière mise à jour : le {date}"
193
- },
194
- "it-IT": {
195
- lastUpdated: "Ultimo aggiornamento: {date}"
196
- },
197
- "ja-JP": {
198
- lastUpdated: "最終更新日: {date}"
199
- },
200
- "pt-BR": {
201
- lastUpdated: "Última atualização: {date}"
202
- },
203
- "zh-CN": {
204
- lastUpdated: "最后更新时间:{date}"
205
- }
206
- }, ne = {
207
- i18n: { messages: oe }
208
- }, ae = /* @__PURE__ */ S({
209
- ...ne,
210
- __name: "header-meta",
211
- props: {
212
- description: { default: null },
213
- lastUpdated: { default: null },
214
- reloadButton: { default: null }
215
- },
216
- setup(s) {
217
- const e = s, { t, locale: o } = B(), n = g(() => e.lastUpdated ? o.value : ""), i = H(n), c = g(
218
- () => e.lastUpdated ? t("lastUpdated", {
219
- date: J(e.lastUpdated, {
220
- locale: i.value,
221
- addSuffix: !0
222
- })
223
- }) : null
224
- ), a = b(), l = L(a);
225
- return { __sfc: !0, t, locale: o, props: e, activeLocale: n, dateLocale: i, timestamp: c, slots: a, hasSlot: l, BentoTypography: y, BentoLoadingButton: R, ReloadIcon: G };
226
- }
227
- });
228
- var se = function() {
229
- var e = this, t = e._self._c, o = e._self._setupProxy;
230
- return t("div", { staticClass: "b-header-meta__container" }, [e.description || o.hasSlot("description") ? t(o.BentoTypography, { staticClass: "b-header-meta__description", attrs: { el: "div" } }, [e._t("description", function() {
231
- return [e._v(e._s(e.description))];
232
- })], 2) : e._e(), e.lastUpdated ? t("div", { staticClass: "b-header-meta__timestamp-section" }, [t(o.BentoTypography, { staticClass: "b-header-meta__timestamp", attrs: { el: "div" } }, [e._v(" " + e._s(o.timestamp) + " ")]), e.reloadButton ? t(o.BentoLoadingButton, { attrs: { variant: "tertiary", state: e.reloadButton.state }, on: { click: e.reloadButton.event }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
233
- return [t(o.ReloadIcon, { attrs: { "aria-hidden": "true" } })];
234
- }, proxy: !0 }], null, !1, 750518660) }, [e._v(e._s(e.reloadButton.title))]) : e._e()], 1) : e._e()], 1);
235
- }, re = [], ie = /* @__PURE__ */ U(
236
- ae,
237
- se,
238
- re,
239
- !1,
240
- null,
241
- "0b8d63cc"
242
- );
243
- const Se = ie.exports;
244
- export {
245
- Se as H,
246
- Oe as I
247
- };
248
- //# sourceMappingURL=header-meta._l0IV3jf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-field.CRsU2NBh.js","sources":["../../src/components/input-field/input-field.types.ts","../../src/components/input-field/input-field.vue"],"sourcesContent":["import { type BentoDropdownProps } from '../dropdown/dropdown.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * @deprecated Since v2.0.0. Use string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated Since v2.0.0. Use string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated Since v2.0.0. Use string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\nexport interface BentoInputDropdownProps {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Indicates that dropdown items are loading (shows a loading skeleton)\n */\n componentLoading?: BentoDropdownProps['componentLoading'];\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: BentoDropdownProps['dynamicFiltering'];\n /**\n * Empty state displayed when no search results are found\n */\n emptyState?: BentoDropdownProps['emptyState'];\n /**\n * Enables value/label pair handling for selected values\n */\n enableValueLabelPair?: BentoDropdownProps['enableValueLabelPair'];\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems?: BentoDropdownProps['hasMoreItems'];\n /**\n * Function that determines which options are disabled from interaction\n */\n isOptionDisabled?: BentoDropdownProps['isOptionDisabled'];\n /**\n * List of available items\n */\n items: BentoDropdownProps['items'];\n /**\n * The type of lazy load: \"automatic\" for infinite scrolling, \"button\" for a show-more button\n */\n lazyLoadType?: BentoDropdownProps['lazyLoadType'];\n /**\n * Indicates if new options are lazy loading\n */\n loading?: BentoDropdownProps['loading'];\n /**\n * Selected value of the dropdown\n */\n modelValue?: BentoDropdownProps['modelValue'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: BentoDropdownProps['readonly'];\n /**\n * Dropdown search options including debounce time and placeholder\n */\n search?: BentoDropdownProps['search'];\n /**\n * Displays non-selectable, static categories in the dropdown\n */\n staticCategories?: BentoDropdownProps['staticCategories'];\n /**\n * Selected value of the dropdown\n * @deprecated Since v2.0.0. Use `model-value` instead.\n */\n value?: BentoDropdownProps['value'];\n /**\n * Enables virtual scrolling for large lists of items\n */\n virtualScroll?: BentoDropdownProps['virtualScroll'];\n}\n\n/**\n * @deprecated Since v2.0.0. Use `@<emit name>` instead.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps extends FormField {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated Since v2.0.0. Use `aria-label` instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Dropdown props for the single-select dropdown menu embedded in the input field.\n * Only a subset of `BentoDropdownProps` is supported (multi-select is not available).\n *\n * @see {@link BentoInputDropdownProps}\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Since v2.0.0. Use `errorMessage` instead.\n */\n error?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldValue;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n * @deprecated Since v2.0.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n v-bind=\"getRootAttributes($attrs)\"\n :data-testid=\"getDataTestId($attrs)\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default') || label\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n :label=\"label\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"$attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :required=\"required\"\n :aria-required=\"required\"\n :type=\"type\"\n :value=\"modelValue ?? value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n @click=\"emit('click', $event)\"\n />\n\n <!-- Hint at the end -->\n <bento-typography\n v-if=\"hint && isFocused && (modelValue || value)\"\n el=\"span\"\n class=\"b-input-field__hint\"\n >\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span\n v-if=\"hasSlot('description') || description\"\n :id=\"descriptionId\"\n class=\"b-input-field__description\"\n @click=\"focusInput\"\n >\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, type Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n type BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n type BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n type BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n description: { default: '' },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: { default: '' },\n optional: { type: Boolean, default: false },\n placeholder: { default: '' },\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n ariaHidden: { type: Boolean, default: true },\n ariaLabel: { default: undefined },\n condensed: { type: Boolean, default: false },\n dropdown: { default: undefined },\n dropdownPosition: { default: BentoInputFieldElementPosition.START },\n error: { type: Boolean, default: false },\n modelValue: { default: undefined },\n slashedZero: { type: Boolean, default: false },\n staticValue: { default: '' },\n staticValuePosition: { default: BentoInputFieldElementPosition.START },\n type: { default: BentoInputFieldType.TEXT },\n value: { default: undefined },\n variant: { default: BentoInputFieldVariant.DEFAULT }\n});\n\n const emit = defineEmits([\"blur\", \"click\", \"change\", \"dropdown-input\", \"escape-pressed\", \"focus\", \"keydown\", \"keyup\", \"input\", \"update:dropdown\", \"update:model-value\"]);\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldValue>(emit);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n /**\n * Gets the overriden or the default data-testid attribute\n * @param attributes - the live attributes object\n */\n function getDataTestId(attributes: Record<string, unknown>) {\n return (attributes['data-testid'] as string) ?? 'input-text-container';\n }\n /**\n * Filters out all aria attributes for the root element.\n * @param attributes - the live attributes object\n */\n function getRootAttributes(attributes: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(attributes).filter(([key]) => !key.startsWith('aria-') && key !== 'data-testid')\n );\n }\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const isDropdownReadOnly = computed<BentoInputDropdownProps['readonly']>(\n () => isReadOnly.value || props.dropdown?.readonly\n );\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedLabel = computed(() => (getSlotText(slots)('default') as string) || props.label);\n const computedDescription = computed(() => (getSlotText(slots)('description') as string) || props.description);\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() =>\n attrs?.['aria-labelledby'] ? undefined : t('ariaLabelFallback')\n );\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: computedLabel.value || computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${computedDescription.value ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emitValue(inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n\n if (props.value) {\n deprecate(\n 'BentoInputField \"value\" property',\n `The use of \"value\" prop in \"BentoInputField\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :model-value=\"inputValue\"\n * :@update:model-value=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n name: 'bento-input-field',\n inheritAttrs: false,\n model: { prop: 'modelValue' },\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","emitValue","useFormFieldEmits","emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","getDataTestId","attributes","getRootAttributes","key","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","props","isDropdownReadOnly","computed","_a","shouldShowStaticValue","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedLabel","getSlotText","computedDescription","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","focus","expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.DB5g6d48.js","sources":["../../src/components/link/link.types.ts","../../../ui-assets/icons-16/dist/vue/external-link.vue","../../src/components/link/link.vue"],"sourcesContent":["import type { Location } from 'vue-router/types/router.d.ts';\n// TODO: revert to import once fully migrated to Vue 3\n// import type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n\n/**\n * Manually defined RouterLinkProps to ensure compatibility\n * with Vue Macros and Vue 2.7 / 3 monorepos.\n */\nexport interface RouterLinkProps {\n /**\n * Denotes the target route of the link. When clicked, the value of the `to` prop will be passed to\n * `router.push()` internally, so the value can be either a string or a location descriptor object.\n */\n to: string | Location;\n /**\n * Setting `replace` prop will call `router.replace()` instead of `router.push()` when clicked, so the navigation will\n * not create a new history record.\n *\n * @default false\n */\n replace?: boolean;\n /**\n * Setting `append` prop always appends the relative path to the current path. For example, assuming we are navigating\n * from `/a` to a relative link `b`, without `append` we will end up at `/b`, but with append we will end up at\n * `/a/b`.\n *\n * @default false\n */\n append?: boolean;\n /**\n * Sometimes we want <RouterLink> to render as another tag, e.g <li>. Then we can use tag prop to specify which tag to\n * render to, and it will still listen to click events for navigation.\n *\n * @default \"a\"\n */\n tag?: string;\n /**\n * Configure the active CSS class applied when the link is active. Note the default value can also be configured\n * globally via the `linkActiveClass` router constructor option.\n *\n * @default \"router-link-active\"\n */\n activeClass?: string;\n /**\n * The default active class matching behavior is **inclusive match**. For example, `<RouterLink to=\"/a\">` will get\n * this class applied as long as the current path starts with `/a/` or is `/a`.\n *\n * @default false\n */\n exact?: boolean;\n /**\n * Allows matching only using the `path` section of the url, effectively ignoring the `query` and the `hash` sections.\n *\n * @default false\n */\n exactPath?: boolean;\n /**\n * Configure the active CSS class applied when the link is active with exact path match. Note the default value can\n * also be configured globally via the `linkExactPathActiveClass` router constructor option.\n *\n * @default \"router-link-exact-path-active\"\n */\n exactPathActiveClass?: string;\n\n /**\n * Specify the event(s) that can trigger the link navigation.\n *\n * @default 'click'\n */\n event?: string | ReadonlyArray<string>;\n /**\n * Configure the active CSS class applied when the link is active with exact match. Note the default value can also be\n * configured globally via the `linkExactActiveClass` router constructor option.\n *\n * @default \"router-link-exact-active\"\n */\n exactActiveClass?: string;\n /**\n * Configure the value of `aria-current` when the link is active with exact match. It must be one of the allowed\n * values for [aria-current](https://www.w3.org/TR/wai-aria-1.2/#aria-current) in the ARIA spec. In most cases, the\n * default of page should be the best fit.\n *\n * @default \"page\"\n */\n ariaCurrentValue?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';\n}\n\n/**\n * @deprecated Since v2.0.0. Use string literal instead.\n */\nexport enum BentoLinkVariant {\n DEFAULT = 'default',\n QUIET = 'quiet',\n}\n\nexport type BentoLinkProps = RouterLinkProps & {\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link and renders an external link icon.\n */\n external?: boolean;\n\n /**\n * Set to true if used inside a `BentoButton` component.\n */\n isButton?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n isNotRouting?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n /**\n * Set to true to truncate link. Doesn't work with disableTypography.\n */\n truncate?: boolean;\n\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant?: BentoLinkVariant | `${BentoLinkVariant}`;\n};\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <a\n v-if=\"external || isNotRouting\"\n :class=\"conditionalClasses\"\n v-bind=\"$attrs\"\n :aria-describedby=\"externalLinkId\"\n :href=\"$props.to.toString()\"\n :title=\"getAttributeTitle($attrs.title)\"\n :target=\"computedTarget\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n <span v-if=\"showExternalLinkIcon\" aria-hidden=\"true\" class=\"b-link__external-link-icon\">\n <external-link-icon />\n </span>\n <span v-if=\"external\" :id=\"externalLinkId\" class=\"b-link--visually-hidden\">{{ t('opensInNewTab') }}</span>\n </a>\n <router-link\n v-else\n v-bind=\"{ ...$attrs, ...$props, ...nonForwardedProps }\"\n :class=\"conditionalClasses\"\n :target=\"target\"\n :to=\"props.to\"\n custom\n @click.native=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { RouterLink } from 'vue-router';\n import { computed } from 'vue';\n import { generateUid } from '@/core/utils/ts';\n import { BentoTypography } from '@/components/typography';\n import { type BentoLinkProps, BentoLinkVariant } from './link.types';\n import { useI18n } from '@/utils/ts/i18n';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router.d.ts';\n import ExternalLinkIcon from '@adyen/ui-assets-icons-16/vue/external-link';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n to: null,\n replace: { type: Boolean },\n append: { type: Boolean },\n tag: null,\n activeClass: null,\n exact: { type: Boolean },\n exactPath: { type: Boolean },\n exactPathActiveClass: null,\n event: null,\n exactActiveClass: null,\n ariaCurrentValue: null,\n disableTypography: { type: Boolean },\n external: { type: Boolean },\n isButton: { type: Boolean },\n isNotRouting: { type: Boolean },\n target: { default: null },\n truncate: { type: Boolean },\n variant: { default: BentoLinkVariant.DEFAULT }\n});\n\n // Props that should not be forwarded to the underlying anchor element\n const nonForwardedProps = {\n variant: undefined,\n isButton: undefined,\n truncate: undefined,\n disableTypography: undefined,\n external: undefined,\n isNotRouting: undefined,\n };\n\n const externalLinkId = generateUid('external-link');\n\n const getAttributeTitle = (attributesTitle: unknown) => attributesTitle as string;\n\n const conditionalClasses = computed(() => ({\n 'b-link': !props.isButton,\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n [`b-link--truncate`]: props.truncate,\n }));\n\n const computedTarget = computed(() => (props.external ? (props.target ?? '_blank') : props.target));\n const showExternalLinkIcon = computed(() => !(props.isButton || props.isNotRouting));\n\n const emit = defineEmits([\"click\"]);\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Extends the `router-link` from the `vue-router` NPM package.\n *\n * @example\n * import { BentoLink } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLink },\n * template: `\n * <bento-link to=\"/\">\n * link\n * </bento-link>\n * `\n * }\n */\n export default {\n name: 'bento-link',\n inheritAttrs: false,\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["BentoLinkVariant","BentoLinkVariant2","uuid","_sfc_main$1","__default__","messages","t","useI18n","nonForwardedProps","externalLinkId","generateUid","getAttributeTitle","attributesTitle","conditionalClasses","computed","props","computedTarget","showExternalLinkIcon","e","navigateCallback","emit"],"mappings":";;;;;;;;AA0FO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACnFZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GC2GIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAAA,EACQ,MAAA,EAAA,UAAAC,EAAA;AAElB;;;;;;;;;;;;;;;;;;;;;;;;iBA5EA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GAwBAC,IAAA;AAAA,MAA0B,SAAA;AAAA,MACb,UAAA;AAAA,MACC,UAAA;AAAA,MACA,mBAAA;AAAA,MACS,UAAA;AAAA,MACT,cAAA;AAAA,IACI,GAGlBC,IAAAC,EAAA,eAAA,GAEAC,IAAA,CAAAC,MAAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,UAAA,CAAAC,EAAA;AAAA,MACtB,CAAA,WAAAf,EAAA,KAAA,EAAA,GAAAe,EAAA,YAAAf,EAAA;AAAA,MACyD,oBAAAe,EAAA;AAAA,IAC9C,EAAA,GAGhCC,IAAAF,EAAA,MAAAC,EAAA,WAAAA,EAAA,UAAA,WAAAA,EAAA,MAAA,GACAE,IAAAH,EAAA,MAAA,EAAAC,EAAA,YAAAA,EAAA,aAAA;4LAIA,CAAAG,GAAAC,MAAA;AACI,MAAAC,EAAA,SAAAF,CAAA,GACAC,KACIA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;"}
@@ -1,216 +0,0 @@
1
- import { defineComponent as B, useSlots as A, ref as h, computed as c, provide as O, toRef as j, inject as $, onMounted as G, onBeforeUnmount as z, watch as J, onUnmounted as K } from "vue";
2
- import { B as T } from "./typography.C8lPlsbD.js";
3
- import { B as Y } from "./button.C9b2AC9w.js";
4
- /* empty css */
5
- import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { u as E } from "./use-has-slot.C9lQZ6nz.js";
7
- import { g as y } from "./generate-uid.NJ8tVoha.js";
8
- import { u as R } from "./index.B6WW_F-J.js";
9
- import { b as M } from "./tooltip.DmFTmAGi.js";
10
- import { m as D } from "./index.DZx81HG1.js";
11
- import { B as q } from "./link.DB5g6d48.js";
12
- import { u as Q } from "./use-expandable-content-height.2WJLCL-R.js";
13
- import { C as X } from "./chevron-down.eYtgv5ly.js";
14
- import { C as ee } from "./chevron-up.d8cwIlA_.js";
15
- import "../assets/navigation-menu-group.css";
16
- let k = 0;
17
- const te = {
18
- beforeCreate() {
19
- this.uuid = k.toString(), k += 1;
20
- }
21
- };
22
- var ne = function() {
23
- var e = this, n = e._self._c;
24
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", d: "M15.5303 13.4697L14.4697 14.5303L12 12.0605L9.53027 14.5303L8.46973 13.4697L12 9.93945L15.5303 13.4697Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 13.75H0V12.25H7V13.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 8.75H0V7.25H7V8.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M15.5303 2.53027L12 6.06055L8.46973 2.53027L9.53027 1.46973L12 3.93945L14.4697 1.46973L15.5303 2.53027Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 3.75H0V2.25H7V3.75Z" } })]);
25
- }, ae = [], se = /* @__PURE__ */ L(
26
- te,
27
- ne,
28
- ae,
29
- !1,
30
- null,
31
- null
32
- );
33
- const oe = se.exports;
34
- let N = 0;
35
- const ie = {
36
- beforeCreate() {
37
- this.uuid = N.toString(), N += 1;
38
- }
39
- };
40
- var le = function() {
41
- var e = this, n = e._self._c;
42
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", d: "M15.5303 11.5303L12 15.0605L8.46973 11.5303L9.53027 10.4697L12 12.9395L14.4697 10.4697L15.5303 11.5303Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 13.75H0V12.25H7V13.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 8.75H0V7.25H7V8.75Z" } }), n("path", { attrs: { fill: "#001222", d: "M15.5303 4.46973L14.4697 5.53027L12 3.06055L9.53027 5.53027L8.46973 4.46973L12 0.939453L15.5303 4.46973Z" } }), n("path", { attrs: { fill: "#001222", d: "M7 3.75H0V2.25H7V3.75Z" } })]);
43
- }, re = [], ue = /* @__PURE__ */ L(
44
- ie,
45
- le,
46
- re,
47
- !1,
48
- null,
49
- null
50
- );
51
- const ce = ue.exports, H = /* @__PURE__ */ Symbol("navigation menu state injection key"), Z = {
52
- "en-US": {
53
- hideAllPages: "Hide all pages",
54
- showAllPages: "Show all pages",
55
- showingCurrentPage: "Showing current page"
56
- }
57
- }, de = {
58
- i18n: { messages: Z }
59
- }, ve = /* @__PURE__ */ B({
60
- ...de,
61
- __name: "navigation-menu",
62
- props: {
63
- label: { default: void 0 },
64
- showExpandAllButton: { type: Boolean, default: !1 },
65
- activePage: { default: void 0 }
66
- },
67
- emits: ["update:active-page"],
68
- setup(p, { emit: e }) {
69
- const n = p, t = A(), b = E(t), C = y("navigation-menu-title"), { t: _ } = R(), l = h([]), v = (o, a, x) => {
70
- l.value.push({ id: o, setOpen: a, getIsOpen: x });
71
- }, r = (o) => {
72
- l.value = l.value.filter((a) => a.id !== o);
73
- }, s = c(() => l.value.length > 0 && l.value.every((o) => o.getIsOpen())), m = c(() => l.value.length > 0 && n.showExpandAllButton), w = c(() => n.label || b("headerActions") || m.value), g = c(() => s.value ? _("hideAllPages") : _("showAllPages")), f = () => {
74
- const o = !s.value;
75
- l.value.forEach(({ setOpen: a }) => a(o));
76
- }, d = (o) => {
77
- e("update:active-page", o);
78
- };
79
- return O(H, {
80
- registerGroup: v,
81
- unregisterGroup: r,
82
- activePage: j(n, "activePage"),
83
- updateActivePage: d
84
- }), { __sfc: !0, props: n, emit: e, slots: t, hasSlot: b, titleId: C, t: _, groups: l, registerGroup: v, unregisterGroup: r, allExpanded: s, computedShowExpandAll: m, showHeader: w, expandButtonLabel: g, toggleAllGroups: f, updateActivePage: d, BentoTypography: T, BentoButton: Y, MenuCollapseIcon: oe, MenuExpandIcon: ce, vBentoTooltipDirective: M };
85
- }
86
- });
87
- var pe = function() {
88
- var e = this, n = e._self._c, t = e._self._setupProxy;
89
- return n("nav", { staticClass: "b-navigation-menu", attrs: { "aria-labelledby": e.label ? t.titleId : void 0 } }, [t.showHeader ? n("div", { staticClass: "b-navigation-menu__header" }, [e.label ? n(t.BentoTypography, { staticClass: "b-navigation-menu__title", attrs: { id: t.titleId, el: "p", variant: "caption", stronger: "" } }, [e._v(" " + e._s(e.label) + " ")]) : e._e(), n("div", { staticClass: "b-navigation-menu__actions-container" }, [t.hasSlot("headerActions") ? n("div", { staticClass: "b-navigation-menu__actions" }, [e._t("headerActions")], 2) : e._e(), t.computedShowExpandAll ? n(t.BentoButton, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.expandButtonLabel, expression: "expandButtonLabel" }], attrs: { variant: "tertiary-with-background", "aria-label": t.expandButtonLabel }, on: { click: t.toggleAllGroups }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
90
- return [t.allExpanded ? n(t.MenuCollapseIcon) : n(t.MenuExpandIcon)];
91
- }, proxy: !0 }], null, !1, 3696454570) }) : e._e()], 1)], 1) : e._e(), n("ul", { staticClass: "b-navigation-menu__content" }, [e._t("default")], 2)]);
92
- }, _e = [], ge = /* @__PURE__ */ L(
93
- ve,
94
- pe,
95
- _e,
96
- !1,
97
- null,
98
- "ff9bef84"
99
- );
100
- const Re = ge.exports, U = /* @__PURE__ */ Symbol("navigation menu group state injection key"), me = {
101
- name: "bento-navigation-menu-item"
102
- }, fe = /* @__PURE__ */ B({
103
- ...me,
104
- props: {
105
- nested: { type: Boolean, default: !1 },
106
- label: null,
107
- link: { default: void 0 },
108
- value: null,
109
- alwaysShowActions: { type: Boolean, default: !1 }
110
- },
111
- setup(p) {
112
- const e = p, n = A(), t = E(n), b = c(() => e.link ? q : "div"), C = c(() => e.link ? { ...e.link, disableTypography: !0 } : {}), _ = h(null), l = h(!1);
113
- D(_, () => {
114
- var o;
115
- const d = ((o = _.value) == null ? void 0 : o.$el) ?? _.value;
116
- d && (l.value = d.scrollWidth > d.clientWidth);
117
- });
118
- const v = y("navigation-menu-item"), r = $(U, null), s = $(H, null), m = c(() => {
119
- var d;
120
- return ((d = s == null ? void 0 : s.activePage) == null ? void 0 : d.value) === e.value;
121
- }), w = c(() => !r || !r.isSemiCollapsed.value ? !0 : m.value), g = c(() => ({
122
- "b-navigation-menu-item--selected": m.value,
123
- "b-navigation-menu-item--nested": e.nested,
124
- "b-navigation-menu-item--hidden": !w.value,
125
- "b-navigation-menu-item--always-show-actions": e.alwaysShowActions
126
- }));
127
- G(() => {
128
- r && e.nested && r.registerItem(v, () => m.value);
129
- });
130
- const f = () => {
131
- s == null || s.updateActivePage(e.value);
132
- };
133
- return z(() => {
134
- r && e.nested && r.unregisterItem(v);
135
- }), { __sfc: !0, props: e, slots: n, hasSlot: t, wrapperComponent: b, wrapperProps: C, labelRef: _, isTruncated: l, itemId: v, groupState: r, menuState: s, isSelected: m, isVisible: w, conditionalClasses: g, handleClick: f, BentoTypography: T, vBentoTooltipDirective: M };
136
- }
137
- });
138
- var he = function() {
139
- var e = this, n = e._self._c, t = e._self._setupProxy;
140
- return n("li", [n(t.wrapperComponent, e._b({ tag: "component", staticClass: "b-navigation-menu-item", class: {
141
- ...t.conditionalClasses,
142
- "b-navigation-menu-item--no-icon": !t.hasSlot("icon")
143
- }, attrs: { "aria-current": t.isSelected && e.link ? "page" : void 0, "aria-hidden": t.isVisible ? void 0 : "true", tabindex: t.isVisible ? void 0 : -1, inert: t.isVisible ? void 0 : "" }, on: { click: t.handleClick } }, "component", t.wrapperProps, !1), [!e.nested && t.hasSlot("icon") ? n("div", { staticClass: "b-navigation-menu-item__icon" }, [e._t("icon")], 2) : e._e(), n(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isTruncated ? e.label : void 0, expression: "isTruncated ? label : undefined" }], ref: "labelRef", staticClass: "b-navigation-menu-item__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.label) + " ")]), t.hasSlot("action") ? n("div", { staticClass: "b-navigation-menu-item__action" }, [e._t("action")], 2) : e._e()], 1)], 1);
144
- }, be = [], Ce = /* @__PURE__ */ L(
145
- fe,
146
- he,
147
- be,
148
- !1,
149
- null,
150
- "0f8822ce"
151
- );
152
- const De = Ce.exports, we = {
153
- name: "bento-navigation-menu-group",
154
- i18n: { messages: Z }
155
- }, xe = /* @__PURE__ */ B({
156
- ...we,
157
- props: {
158
- isExpanded: { type: Boolean, default: !1 },
159
- label: null
160
- },
161
- emits: ["update:is-expanded"],
162
- setup(p, { emit: e }) {
163
- const n = p, t = A(), b = E(t), { t: C } = R(), _ = c(() => ({
164
- "b-navigation-menu-group__header--expanded": u.value && !a.value
165
- })), l = c(() => a.value ? C("showingCurrentPage") : void 0), v = h(null), r = h(!1);
166
- D(v, () => {
167
- var I;
168
- const i = ((I = v.value) == null ? void 0 : I.$el) ?? v.value;
169
- i && (r.value = i.scrollWidth > i.clientWidth);
170
- });
171
- const s = y("navigation-menu-group"), m = y("navigation-menu-group-button"), w = y("navigation-menu-group-content"), g = $(H, null), f = h([]), d = (i, I) => {
172
- f.value.push({ id: i, isSelected: I });
173
- }, o = (i) => {
174
- f.value = f.value.filter((I) => I.id !== i);
175
- }, a = h(!1);
176
- O(U, {
177
- registerItem: d,
178
- unregisterItem: o,
179
- isSemiCollapsed: a
180
- });
181
- const x = c(() => f.value.some((i) => i.isSelected())), u = h(n.isExpanded), P = h(null), { contentHeight: S } = Q(P, u), F = c(() => S.value ? { "max-height": S.value } : {}), W = () => {
182
- u.value && !a.value ? x.value ? a.value = !0 : u.value = !1 : a.value ? a.value = !1 : u.value = !0, e("update:is-expanded", u.value && !a.value);
183
- }, V = (i) => {
184
- i ? (u.value = !0, a.value = !1) : x.value ? a.value = !0 : (a.value = !1, u.value = !1), e("update:is-expanded", i);
185
- };
186
- return J(
187
- () => n.isExpanded,
188
- (i) => {
189
- a.value || (u.value = i);
190
- }
191
- ), G(() => {
192
- x.value && !u.value && (u.value = !0, e("update:is-expanded", !0)), g && g.registerGroup(s, V, () => u.value && !a.value);
193
- }), K(() => g == null ? void 0 : g.unregisterGroup(s)), { __sfc: !0, props: n, slots: t, hasSlot: b, t: C, headerClasses: _, headerAriaDescription: l, labelRef: v, isTruncated: r, groupId: s, buttonId: m, contentId: w, navigationMenuState: g, nestedItems: f, registerItem: d, unregisterItem: o, isSemiCollapsed: a, hasActiveItem: x, emit: e, isOpen: u, contentDiv: P, contentHeight: S, contentMaxHeight: F, toggleGroup: W, setOpen: V, BentoTypography: T, vBentoTooltipDirective: M, ChevronDownIcon: X, ChevronUpIcon: ee };
194
- }
195
- });
196
- var Ie = function() {
197
- var e = this, n = e._self._c, t = e._self._setupProxy;
198
- return n("li", { staticClass: "b-navigation-menu-group" }, [n("button", { staticClass: "b-navigation-menu-group__header", class: {
199
- ...t.headerClasses,
200
- "b-navigation-menu-group__header--no-icon": !t.hasSlot("icon")
201
- }, attrs: { id: t.buttonId, type: "button", "aria-expanded": `${t.isOpen && !t.isSemiCollapsed}`, "aria-controls": t.contentId, "aria-description": t.headerAriaDescription }, on: { click: t.toggleGroup } }, [t.hasSlot("icon") ? n("div", { staticClass: "b-navigation-menu-group__icon" }, [e._t("icon")], 2) : e._e(), n(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isTruncated ? e.label : void 0, expression: "isTruncated ? label : undefined" }], ref: "labelRef", staticClass: "b-navigation-menu-group__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.label) + " ")]), n("div", { staticClass: "b-navigation-menu-group__icon b-navigation-menu-group__icon--chevron" }, [t.isOpen && !t.isSemiCollapsed ? n(t.ChevronUpIcon, { attrs: { "aria-hidden": "true" } }) : n(t.ChevronDownIcon, { attrs: { "aria-hidden": "true" } })], 1)], 1), n("Transition", { attrs: { name: "b-navigation-menu-group__animation--content" } }, [n("div", { directives: [{ name: "show", rawName: "v-show", value: t.isOpen, expression: "isOpen" }], staticClass: "b-navigation-menu-group__content-wrapper", style: t.contentMaxHeight, attrs: { id: t.contentId, role: "region", "aria-labelledby": t.buttonId } }, [n("ul", { ref: "contentDiv", staticClass: "b-navigation-menu-group__content" }, [e._t("default")], 2)])])], 1);
202
- }, ye = [], Le = /* @__PURE__ */ L(
203
- xe,
204
- Ie,
205
- ye,
206
- !1,
207
- null,
208
- "261c9dd1"
209
- );
210
- const Ze = Le.exports;
211
- export {
212
- Ze as a,
213
- De as b,
214
- Re as n
215
- };
216
- //# sourceMappingURL=navigation-menu-group.DHWp-pJO.js.map