@adyen/bento-vue3 1.78.2 → 1.79.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 (266) hide show
  1. package/dist/@types/index.d.ts +79 -30
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/ai-button.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-group.css +1 -1
  13. package/dist/assets/dashboard-section.css +1 -1
  14. package/dist/assets/data-grid.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/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/form-layout-title.css +1 -1
  20. package/dist/assets/header-with-views.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/input-field-password.css +1 -1
  23. package/dist/assets/input-field-phone-number.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/inspector.css +1 -1
  26. package/dist/assets/layout-row.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/search-bar.css +1 -1
  29. package/dist/assets/secondary-nav.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/step.css +1 -1
  32. package/dist/assets/structured-list-item.css +1 -1
  33. package/dist/assets/summary-grid.css +1 -1
  34. package/dist/assets/tab.css +1 -1
  35. package/dist/assets/teleport.css +1 -0
  36. package/dist/assets/toast.css +1 -1
  37. package/dist/assets/tooltip.css +1 -1
  38. package/dist/assets/tutorial.css +1 -1
  39. package/dist/assets/use-cached-selected-values.css +1 -1
  40. package/dist/button.js +1 -1
  41. package/dist/card.js +1 -1
  42. package/dist/checkbox.js +2 -2
  43. package/dist/chunks/{accordion-item.Bd3v6erb.js → accordion-item.DHyAfeAu.js} +2 -2
  44. package/dist/chunks/{accordion-item.Bd3v6erb.js.map → accordion-item.DHyAfeAu.js.map} +1 -1
  45. package/dist/chunks/{action-bar.BZ04Y7Yi.js → action-bar.QX16Mu4L.js} +3 -3
  46. package/dist/chunks/{action-bar.BZ04Y7Yi.js.map → action-bar.QX16Mu4L.js.map} +1 -1
  47. package/dist/chunks/{base-modal.UA93s_8c.js → base-modal.CHYvJ_xU.js} +17 -17
  48. package/dist/chunks/{base-modal.UA93s_8c.js.map → base-modal.CHYvJ_xU.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.BeQ-j1bv.js → button-actions-with-menu.B8qBBN82.js} +2 -2
  50. package/dist/chunks/{button-actions-with-menu.BeQ-j1bv.js.map → button-actions-with-menu.B8qBBN82.js.map} +1 -1
  51. package/dist/chunks/button-actions.Bg38lywL.js +1234 -0
  52. package/dist/chunks/button-actions.Bg38lywL.js.map +1 -0
  53. package/dist/chunks/{calendar.Tm7Cvpwu.js → calendar.CyJXcMz2.js} +4 -43
  54. package/dist/chunks/{calendar.Tm7Cvpwu.js.map → calendar.CyJXcMz2.js.map} +1 -1
  55. package/dist/chunks/{card.GxkxfBoV.js → card.BqkufnQe.js} +2 -2
  56. package/dist/chunks/{card.GxkxfBoV.js.map → card.BqkufnQe.js.map} +1 -1
  57. package/dist/chunks/{checkbox-group.D56nUmre.js → checkbox-group.BRQiuU3y.js} +51 -50
  58. package/dist/chunks/checkbox-group.BRQiuU3y.js.map +1 -0
  59. package/dist/chunks/{checkbox.SffuKyNj.js → checkbox.BRTK_DHj.js} +3 -3
  60. package/dist/chunks/{checkbox.SffuKyNj.js.map → checkbox.BRTK_DHj.js.map} +1 -1
  61. package/dist/chunks/{code-snippet.B5NUDrZ-.js → code-snippet.YxZ3_4ye.js} +5 -5
  62. package/dist/chunks/{code-snippet.B5NUDrZ-.js.map → code-snippet.YxZ3_4ye.js.map} +1 -1
  63. package/dist/chunks/{codemirror.Zv80n3Z2.js → codemirror.Cy7iSLbd.js} +12 -12
  64. package/dist/chunks/{codemirror.Zv80n3Z2.js.map → codemirror.Cy7iSLbd.js.map} +1 -1
  65. package/dist/chunks/constructNow.BhymNmy5.js +8 -0
  66. package/dist/chunks/{constructNow.CHWWeLPc.js.map → constructNow.BhymNmy5.js.map} +1 -1
  67. package/dist/chunks/{controls-group.cbGiHr7n.js → controls-group.CJe5J84d.js} +2 -2
  68. package/dist/chunks/{controls-group.cbGiHr7n.js.map → controls-group.CJe5J84d.js.map} +1 -1
  69. package/dist/chunks/{copy.ClKnDjMI.js → copy.mq0o1Rag.js} +2 -2
  70. package/dist/chunks/{copy.ClKnDjMI.js.map → copy.mq0o1Rag.js.map} +1 -1
  71. package/dist/chunks/{country.DmnN9YIW.js → country.D484ezGU.js} +2 -2
  72. package/dist/chunks/{country.DmnN9YIW.js.map → country.D484ezGU.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.Cqi0PWeJ.js → dashboard-section.CNCqp74F.js} +4 -4
  74. package/dist/chunks/{dashboard-section.Cqi0PWeJ.js.map → dashboard-section.CNCqp74F.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.r62L_XBr.js → dashed-underline.CtTu1AOE.js} +26 -25
  76. package/dist/chunks/{dashed-underline.r62L_XBr.js.map → dashed-underline.CtTu1AOE.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.D7kB3S1u.js → data-grid-template.CLpaJvTj.js} +4 -4
  78. package/dist/chunks/{data-grid-template.D7kB3S1u.js.map → data-grid-template.CLpaJvTj.js.map} +1 -1
  79. package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
  80. package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js.map → data-grid-template.keys.VezYtHtM.js.map} +1 -1
  81. package/dist/chunks/{data-grid.jC1eKDzq.js → data-grid.CD3Nb4pg.js} +18 -18
  82. package/dist/chunks/{data-grid.jC1eKDzq.js.map → data-grid.CD3Nb4pg.js.map} +1 -1
  83. package/dist/chunks/{date-picker.x9GeC_UO.js → date-picker.C3BH0Bsr.js} +13 -13
  84. package/dist/chunks/{date-picker.x9GeC_UO.js.map → date-picker.C3BH0Bsr.js.map} +1 -1
  85. package/dist/chunks/date-range-picker.BPZE6r01.js +1108 -0
  86. package/dist/chunks/date-range-picker.BPZE6r01.js.map +1 -0
  87. package/dist/chunks/{dialog-page.zWrBSgBD.js → dialog-page.BY6T1jYZ.js} +2 -2
  88. package/dist/chunks/{dialog-page.zWrBSgBD.js.map → dialog-page.BY6T1jYZ.js.map} +1 -1
  89. package/dist/chunks/{differenceInMonths.C8FyCrav.js → differenceInMonths.Cab3nOsb.js} +2 -2
  90. package/dist/chunks/{differenceInMonths.C8FyCrav.js.map → differenceInMonths.Cab3nOsb.js.map} +1 -1
  91. package/dist/chunks/{divider.DnKNNyWB.js → divider.Dho4_hQ7.js} +2 -2
  92. package/dist/chunks/{divider.DnKNNyWB.js.map → divider.Dho4_hQ7.js.map} +1 -1
  93. package/dist/chunks/{dropdown-default-textbox._KEBXjKT.js → dropdown-default-textbox.CNrsjXUU.js} +2 -2
  94. package/dist/chunks/{dropdown-default-textbox._KEBXjKT.js.map → dropdown-default-textbox.CNrsjXUU.js.map} +1 -1
  95. package/dist/chunks/{dropdown-tag.DIlF7mOi.js → dropdown-tag.B0LtUuUk.js} +4 -4
  96. package/dist/chunks/{dropdown-tag.DIlF7mOi.js.map → dropdown-tag.B0LtUuUk.js.map} +1 -1
  97. package/dist/chunks/{dropdown.CdsjtT9_.js → dropdown.B5tPWVxg.js} +9 -9
  98. package/dist/chunks/{dropdown.CdsjtT9_.js.map → dropdown.B5tPWVxg.js.map} +1 -1
  99. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  100. package/dist/chunks/{events.CMzGybJJ.js → events.BQOQSSb7.js} +2 -5
  101. package/dist/chunks/{events.CMzGybJJ.js.map → events.BQOQSSb7.js.map} +1 -1
  102. package/dist/chunks/{field-label.C97CrBI_.js → field-label.B1rMWIWY.js} +2 -2
  103. package/dist/chunks/{field-label.C97CrBI_.js.map → field-label.B1rMWIWY.js.map} +1 -1
  104. package/dist/chunks/{file-uploader.R0NZXIsS.js → file-uploader.BwmQdkmz.js} +367 -350
  105. package/dist/chunks/file-uploader.BwmQdkmz.js.map +1 -0
  106. package/dist/chunks/{filter-bar.DAYxD7wi.js → filter-bar.B9yGivxl.js} +118 -122
  107. package/dist/chunks/filter-bar.B9yGivxl.js.map +1 -0
  108. package/dist/chunks/{footer-actions.BO52wpv-.js → footer-actions.pC1mxLQm.js} +2 -2
  109. package/dist/chunks/{footer-actions.BO52wpv-.js.map → footer-actions.pC1mxLQm.js.map} +1 -1
  110. package/dist/chunks/{form-layout-title.61ESsGAY.js → form-layout-title.sxPU_lB_.js} +2 -2
  111. package/dist/chunks/{form-layout-title.61ESsGAY.js.map → form-layout-title.sxPU_lB_.js.map} +1 -1
  112. package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
  113. package/dist/chunks/{form-layout.types.D3EKzbE7.js.map → form-layout.types.bZW9iR6_.js.map} +1 -1
  114. package/dist/chunks/get-slot-text.CQRAP2_q.js.map +1 -1
  115. package/dist/chunks/{getTimezoneOffsetInMilliseconds.BW7U6PxE.js → getTimezoneOffsetInMilliseconds.B7sxiukN.js} +2 -2
  116. package/dist/chunks/{getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map → getTimezoneOffsetInMilliseconds.B7sxiukN.js.map} +1 -1
  117. package/dist/chunks/{header-meta.BE6QfUNi.js → header-meta.DZ8Gx4XE.js} +17 -17
  118. package/dist/chunks/{header-meta.BE6QfUNi.js.map → header-meta.DZ8Gx4XE.js.map} +1 -1
  119. package/dist/chunks/{header-with-views.CzLcYeW5.js → header-with-views.b1gt2wud.js} +109 -109
  120. package/dist/chunks/{header-with-views.CzLcYeW5.js.map → header-with-views.b1gt2wud.js.map} +1 -1
  121. package/dist/chunks/{header.3It50Clh.js → header.BQAAmjUF.js} +3 -3
  122. package/dist/chunks/{header.3It50Clh.js.map → header.BQAAmjUF.js.map} +1 -1
  123. package/dist/chunks/{info-icon.BhOm72U4.js → info-icon.DB0MI-dH.js} +2 -2
  124. package/dist/chunks/{info-icon.BhOm72U4.js.map → info-icon.DB0MI-dH.js.map} +1 -1
  125. package/dist/chunks/{input-field-password.-xEY2VB8.js → input-field-password.noxsH61p.js} +154 -146
  126. package/dist/chunks/input-field-password.noxsH61p.js.map +1 -0
  127. package/dist/chunks/{input-field-phone-number.DcxhP_qK.js → input-field-phone-number.B_uFvUXP.js} +587 -585
  128. package/dist/chunks/{input-field-phone-number.DcxhP_qK.js.map → input-field-phone-number.B_uFvUXP.js.map} +1 -1
  129. package/dist/chunks/{input-field.B6nL7d8O.js → input-field.C9ABE4cI.js} +118 -110
  130. package/dist/chunks/input-field.C9ABE4cI.js.map +1 -0
  131. package/dist/chunks/{keyboard-navigation.pB8weElW.js → keyboard-navigation.DWmhelVv.js} +2 -2
  132. package/dist/chunks/{keyboard-navigation.pB8weElW.js.map → keyboard-navigation.DWmhelVv.js.map} +1 -1
  133. package/dist/chunks/{layout-row.DVf7wNSB.js → layout-row.BxP9SxrL.js} +2 -2
  134. package/dist/chunks/{layout-row.DVf7wNSB.js.map → layout-row.BxP9SxrL.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.Cwe9Bn-R.js → listbox-option-tag.C1cZs38g.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.Cwe9Bn-R.js.map → listbox-option-tag.C1cZs38g.js.map} +1 -1
  137. package/dist/chunks/{modal-fullscreen.DTT-5rQX.js → modal-fullscreen.B69QJ8D6.js} +23 -21
  138. package/dist/chunks/modal-fullscreen.B69QJ8D6.js.map +1 -0
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js → modal.vue_vue_type_script_setup_true_lang.BYqbdsty.js} +4 -4
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js.map → modal.vue_vue_type_script_setup_true_lang.BYqbdsty.js.map} +1 -1
  141. package/dist/chunks/{pagination.DCn_tenp.js → pagination.Dst8Y6DD.js} +2 -2
  142. package/dist/chunks/{pagination.DCn_tenp.js.map → pagination.Dst8Y6DD.js.map} +1 -1
  143. package/dist/chunks/{payment-method.D6PeTYWq.js → payment-method.CExDsirg.js} +2 -2
  144. package/dist/chunks/{payment-method.D6PeTYWq.js.map → payment-method.CExDsirg.js.map} +1 -1
  145. package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -1
  146. package/dist/chunks/{radio-group.Br-N309Y.js → radio-group.CVDDBCP4.js} +5 -5
  147. package/dist/chunks/{radio-group.Br-N309Y.js.map → radio-group.CVDDBCP4.js.map} +1 -1
  148. package/dist/chunks/{rich-text-editor.B6Ftqv55.js → rich-text-editor.DyC-Nnc8.js} +12 -12
  149. package/dist/chunks/{rich-text-editor.B6Ftqv55.js.map → rich-text-editor.DyC-Nnc8.js.map} +1 -1
  150. package/dist/chunks/{search-bar.BmNEcy0L.js → search-bar.BwrFcw9L.js} +28 -28
  151. package/dist/chunks/search-bar.BwrFcw9L.js.map +1 -0
  152. package/dist/chunks/{secondary-nav.CPosCncv.js → secondary-nav.D7l9h0_t.js} +3 -3
  153. package/dist/chunks/{secondary-nav.CPosCncv.js.map → secondary-nav.D7l9h0_t.js.map} +1 -1
  154. package/dist/chunks/{segmented-control.BCHGDSrf.js → segmented-control.CwDOwDIu.js} +2 -2
  155. package/dist/chunks/{segmented-control.BCHGDSrf.js.map → segmented-control.CwDOwDIu.js.map} +1 -1
  156. package/dist/chunks/{selection-card-group.DBdwqWsH.js → selection-card-group.CZfusjo0.js} +4 -4
  157. package/dist/chunks/{selection-card-group.DBdwqWsH.js.map → selection-card-group.CZfusjo0.js.map} +1 -1
  158. package/dist/chunks/{sidepanel.CS9CfAWZ.js → sidepanel.BFz_7DKg.js} +4 -4
  159. package/dist/chunks/{sidepanel.CS9CfAWZ.js.map → sidepanel.BFz_7DKg.js.map} +1 -1
  160. package/dist/chunks/{step.CoSuGK16.js → step.CxnmaTMe.js} +3 -3
  161. package/dist/chunks/{step.CoSuGK16.js.map → step.CxnmaTMe.js.map} +1 -1
  162. package/dist/chunks/structured-list-item.DjbvVIwI.js +111 -0
  163. package/dist/chunks/{structured-list-item.BTPh7SPj.js.map → structured-list-item.DjbvVIwI.js.map} +1 -1
  164. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
  165. package/dist/chunks/{summary-grid.keys.CxTf_FOc.js.map → summary-grid.keys.Xx-W5a2w.js.map} +1 -1
  166. package/dist/chunks/{summary-grid.types.cE1fyLvC.js → summary-grid.types.KVqau_I-.js} +74 -68
  167. package/dist/chunks/summary-grid.types.KVqau_I-.js.map +1 -0
  168. package/dist/chunks/{tab.CD5Eu6ql.js → tab.BAwuVDsV.js} +2 -2
  169. package/dist/chunks/{tab.CD5Eu6ql.js.map → tab.BAwuVDsV.js.map} +1 -1
  170. package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
  171. package/dist/chunks/{tabs.keys.Cb4Vw5Jh.js.map → tabs.keys.B4qGhjp2.js.map} +1 -1
  172. package/dist/chunks/{tag.CjaB9DxL.js → tag.BmMnGJMp.js} +2 -2
  173. package/dist/chunks/{tag.CjaB9DxL.js.map → tag.BmMnGJMp.js.map} +1 -1
  174. package/dist/chunks/teleport.CHhznja1.js +129 -0
  175. package/dist/chunks/teleport.CHhznja1.js.map +1 -0
  176. package/dist/chunks/{textarea.XRETLCSj.js → textarea.BZjnJf5q.js} +3 -3
  177. package/dist/chunks/{textarea.XRETLCSj.js.map → textarea.BZjnJf5q.js.map} +1 -1
  178. package/dist/chunks/{timeline-item.19zg_gBi.js → timeline-item.YjC_8BBB.js} +7 -7
  179. package/dist/chunks/{timeline-item.19zg_gBi.js.map → timeline-item.YjC_8BBB.js.map} +1 -1
  180. package/dist/chunks/toast.e1-BCZks.js +229 -0
  181. package/dist/chunks/toast.e1-BCZks.js.map +1 -0
  182. package/dist/chunks/{tooltip.Dp9_ESm_.js → tooltip.CeX5eGnw.js} +2 -2
  183. package/dist/chunks/{tooltip.Dp9_ESm_.js.map → tooltip.CeX5eGnw.js.map} +1 -1
  184. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js → tutorial.vue_vue_type_script_setup_true_lang.Cqimmacx.js} +2 -2
  185. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js.map → tutorial.vue_vue_type_script_setup_true_lang.Cqimmacx.js.map} +1 -1
  186. package/dist/chunks/{use-bento-toast-controller.Kri_h7jS.js → use-bento-toast-controller.DK1PV3YW.js} +2 -2
  187. package/dist/chunks/{use-bento-toast-controller.Kri_h7jS.js.map → use-bento-toast-controller.DK1PV3YW.js.map} +1 -1
  188. package/dist/chunks/{use-cached-selected-values.8MdrR9wt.js → use-cached-selected-values.os3Yp7Tw.js} +3 -3
  189. package/dist/chunks/{use-cached-selected-values.8MdrR9wt.js.map → use-cached-selected-values.os3Yp7Tw.js.map} +1 -1
  190. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js → use-form-layout-loading.CWbjZiwP.js} +2 -2
  191. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js.map → use-form-layout-loading.CWbjZiwP.js.map} +1 -1
  192. package/dist/code-snippet.js +1 -1
  193. package/dist/country.js +1 -1
  194. package/dist/dashboard-template.js +1 -1
  195. package/dist/dashed-underline.js +1 -1
  196. package/dist/data-grid-template.js +1 -1
  197. package/dist/data-grid.js +1 -1
  198. package/dist/date-picker.js +2 -2
  199. package/dist/date-range-picker.js +2 -2
  200. package/dist/divider.js +1 -1
  201. package/dist/dropdown.js +4 -4
  202. package/dist/file-uploader.js +1 -1
  203. package/dist/filter-bar.js +1 -1
  204. package/dist/form-layout.js +1 -1
  205. package/dist/header-with-views.js +1 -1
  206. package/dist/header.js +1 -1
  207. package/dist/index.js +288 -287
  208. package/dist/index.js.map +1 -1
  209. package/dist/info-icon.js +1 -1
  210. package/dist/input-field-password.js +1 -1
  211. package/dist/input-field-phone-number.js +1 -1
  212. package/dist/input-field.js +1 -1
  213. package/dist/internal.js +27 -26
  214. package/dist/internal.js.map +1 -1
  215. package/dist/layout.js +1 -1
  216. package/dist/menu.js +1 -1
  217. package/dist/modal-fullscreen.js +1 -1
  218. package/dist/modal.js +2 -2
  219. package/dist/pagination.js +1 -1
  220. package/dist/payment-method.js +1 -1
  221. package/dist/popover.js +1 -1
  222. package/dist/radio-group.js +1 -1
  223. package/dist/rich-text-editor.js +1 -1
  224. package/dist/search-bar.js +2 -2
  225. package/dist/secondary-nav.js +1 -1
  226. package/dist/segmented-control.js +1 -1
  227. package/dist/selection-card.js +1 -1
  228. package/dist/sidepanel.js +1 -1
  229. package/dist/stepper.js +1 -1
  230. package/dist/structured-list.js +1 -1
  231. package/dist/styles/bento-dark.css +4 -1
  232. package/dist/styles/bento-light.css +4 -1
  233. package/dist/styles/bento.css +4 -1
  234. package/dist/styles/legacy.css +4 -1
  235. package/dist/styles/styleguide.css +4 -1
  236. package/dist/summary-grid.js +1 -1
  237. package/dist/tabs.js +1 -1
  238. package/dist/tag.js +1 -1
  239. package/dist/textarea.js +1 -1
  240. package/dist/timeline.js +1 -1
  241. package/dist/toast.js +1 -1
  242. package/dist/tutorial.js +1 -1
  243. package/dist/use-form-v4.js +8 -8
  244. package/dist/use-form-v4.js.map +1 -1
  245. package/dist/web-types.json +1 -1
  246. package/package.json +11 -10
  247. package/dist/chunks/button-actions.BQ3AFQqt.js +0 -1355
  248. package/dist/chunks/button-actions.BQ3AFQqt.js.map +0 -1
  249. package/dist/chunks/checkbox-group.D56nUmre.js.map +0 -1
  250. package/dist/chunks/constructNow.CHWWeLPc.js +0 -8
  251. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  252. package/dist/chunks/date-range-picker.CXeFdxAA.js +0 -1100
  253. package/dist/chunks/date-range-picker.CXeFdxAA.js.map +0 -1
  254. package/dist/chunks/file-uploader.R0NZXIsS.js.map +0 -1
  255. package/dist/chunks/filter-bar.DAYxD7wi.js.map +0 -1
  256. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  257. package/dist/chunks/input-field-password.-xEY2VB8.js.map +0 -1
  258. package/dist/chunks/input-field.B6nL7d8O.js.map +0 -1
  259. package/dist/chunks/modal-fullscreen.DTT-5rQX.js.map +0 -1
  260. package/dist/chunks/search-bar.BmNEcy0L.js.map +0 -1
  261. package/dist/chunks/structured-list-item.BTPh7SPj.js +0 -111
  262. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  263. package/dist/chunks/summary-grid.types.cE1fyLvC.js.map +0 -1
  264. package/dist/chunks/tabs.keys.Cb4Vw5Jh.js +0 -7
  265. package/dist/chunks/toast.6oJx7SNq.js +0 -221
  266. package/dist/chunks/toast.6oJx7SNq.js.map +0 -1
@@ -1,1355 +0,0 @@
1
- import { defineComponent as M, useSlots as Q, computed as _, createBlock as g, openBlock as u, withModifiers as X, normalizeClass as U, createSlots as H, withCtx as y, renderSlot as D, unref as p, createElementVNode as V, createCommentVNode as B, mergeProps as Y, renderList as x, normalizeProps as Be, guardReactiveProps as $e, resolveComponent as T, createVNode as E, createTextVNode as j, toDisplayString as G, onMounted as ee, onUnmounted as pe, useAttrs as Ee, inject as K, ref as v, toRefs as Se, Transition as ve, createElementBlock as k, Teleport as Le, resolveDynamicComponent as z, toHandlers as ie, withKeys as N, Fragment as Z, watch as be, nextTick as te, normalizeStyle as he, provide as Te, toRef as Me } from "vue";
2
- import { B as L } from "./button.DhcxX2GJ.js";
3
- import { B as we } from "./loading-indicator.Db794TT5.js";
4
- import { C as Ne } from "./cross-circle-fill.CYLL7jfC.js";
5
- import { C as Re } from "./checkmark-circle-fill._6-d40ru.js";
6
- import { u as ae } from "./use-has-slot.B7eQSabc.js";
7
- import { u as ye } from "./index.pdBj0KQU.js";
8
- import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { B as ge, D as Ae } from "./divider.DnKNNyWB.js";
10
- import { C as De } from "./cross.B92GxFTY.js";
11
- import { B as _e, a as re, p as Pe } from "./typography.yBEME_Gu.js";
12
- import { c as Fe, P as We, d as Ke } from "./popper-container.Uod3yjsR.js";
13
- import { u as Ue } from "./aria-label.CaUURpnB.js";
14
- import { o as Ve } from "./on-click-outside.D9aY9g8G.js";
15
- import { g as Ge } from "./generate-uid.NJ8tVoha.js";
16
- import { C as je } from "./chevron-down.DCQ6ZLaq.js";
17
- /* empty css */
18
- import { a as He, C as ue } from "./chevron-left.Cfn1uGLH.js";
19
- import { a as de, B as Ye } from "./base-button.BYhf0xf3.js";
20
- import { t as Je } from "./truncate.BfIl_-71.js";
21
- import { i as Ce } from "./index.CWuzEfiV.js";
22
- import { o as qe } from "./resize.Bqks3WUm.js";
23
- import { g as Xe } from "./es6.MoTTyETW.js";
24
- import "../assets/button-actions.css";
25
- var A = /* @__PURE__ */ ((e) => (e.START = "start", e.LOADING = "loading", e.SUCCESS = "success", e.FAIL = "fail", e))(A || {});
26
- const Ie = {
27
- "en-US": {
28
- failed: "Failed",
29
- succeded: "Succeded"
30
- },
31
- "ja-JP": {
32
- failed: "失敗しました"
33
- },
34
- "pt-BR": {
35
- failed: "Falha"
36
- }
37
- }, ze = {
38
- class: "b-loading-button__icon",
39
- "data-testid": "loading-button-rotating-icon"
40
- }, Ze = {
41
- i18n: { messages: Ie }
42
- }, Qe = /* @__PURE__ */ M({
43
- ...Ze,
44
- __name: "loading-button",
45
- props: {
46
- /**
47
- * Reduces sizing of button
48
- */
49
- condensed: {
50
- type: L.props.condensed.type,
51
- default: !1
52
- },
53
- /**
54
- * Displays loading-button as critical
55
- */
56
- critical: {
57
- type: L.props.critical.type,
58
- default: !1
59
- },
60
- /**
61
- * Disables button functonality
62
- */
63
- disabled: {
64
- type: L.props.disabled.type,
65
- default: !1
66
- },
67
- /**
68
- * Sets color set to inverse
69
- */
70
- inverse: {
71
- type: Boolean,
72
- default: !1
73
- },
74
- /**
75
- * State of the button.
76
- * @values start, loading, success, fail
77
- */
78
- state: {
79
- type: String,
80
- default: A.START,
81
- validator: (e) => Object.values(A).includes(e)
82
- },
83
- /**
84
- * Types of flavour of Button
85
- */
86
- variant: {
87
- type: L.props.variant.type,
88
- default: "primary",
89
- validator: L.props.variant.validator
90
- }
91
- },
92
- emits: ["click"],
93
- setup(e, { emit: t }) {
94
- const o = e, s = t, d = Q(), m = ae(d), { t: l } = ye({ messages: Ie }), f = _(() => ({
95
- [`b-loading-button--${o.variant}-${A.LOADING}`]: o.state === A.LOADING && !o.disabled,
96
- "b-loading-button--loading": o.state === A.LOADING && !o.disabled,
97
- [`b-loading-button--${o.variant}-${A.SUCCESS}`]: o.state === A.SUCCESS,
98
- "b-loading-button--inverse": o.inverse
99
- })), c = _(
100
- () => o.variant === "primary" && !o.inverse || o.variant !== "primary" && o.inverse
101
- ), a = _(
102
- () => o.critical && o.state === A.START || o.state === A.FAIL
103
- ), i = (r) => {
104
- r.stopPropagation(), o.state !== A.LOADING && s("click", r);
105
- };
106
- return (r, n) => (u(), g(L, {
107
- critical: a.value,
108
- variant: e.variant,
109
- condensed: e.condensed,
110
- disabled: e.disabled,
111
- inverse: e.inverse,
112
- class: U(["b-loading-button", f.value]),
113
- onClickCapture: X(i, ["stop"])
114
- }, H({
115
- default: y(() => [
116
- D(r.$slots, "default", {}, void 0, !0)
117
- ]),
118
- _: 2
119
- }, [
120
- e.state === "start" && p(m)("iconLeft") ? {
121
- name: "iconLeft",
122
- fn: y(() => [
123
- D(r.$slots, "iconLeft", {}, void 0, !0)
124
- ]),
125
- key: "0"
126
- } : e.state !== "start" ? {
127
- name: "iconLeft",
128
- fn: y(() => [
129
- V("span", ze, [
130
- e.state === "fail" ? (u(), g(p(Ne), {
131
- key: 0,
132
- "svg-title": p(l)("failed")
133
- }, null, 8, ["svg-title"])) : e.state === "success" ? (u(), g(p(Re), {
134
- key: 1,
135
- "svg-title": p(l)("succeded")
136
- }, null, 8, ["svg-title"])) : e.state === "loading" ? (u(), g(p(we), {
137
- key: 2,
138
- small: "",
139
- inverse: c.value
140
- }, null, 8, ["inverse"])) : B("", !0)
141
- ])
142
- ]),
143
- key: "1"
144
- } : void 0
145
- ]), 1032, ["critical", "variant", "condensed", "disabled", "inverse", "class"]));
146
- }
147
- }), xe = /* @__PURE__ */ w(Qe, [["__scopeId", "data-v-e68a786b"]]), et = {}, tt = /* @__PURE__ */ M({
148
- ...et,
149
- __name: "toggle-button",
150
- props: {
151
- /**
152
- * Reduces sizing of button
153
- */
154
- condensed: {
155
- type: L.props.condensed.type,
156
- default: !1
157
- },
158
- /**
159
- * Disables button functonality
160
- */
161
- disabled: {
162
- type: L.props.disabled.type,
163
- default: !1
164
- },
165
- /**
166
- * Sets color set to inverse
167
- */
168
- inverse: {
169
- type: Boolean,
170
- default: !1
171
- },
172
- /**
173
- * Types of flavour of Button
174
- * @values primary, secondary, tertiary
175
- */
176
- variant: {
177
- type: L.props.variant.type,
178
- default: "primary",
179
- validator: L.props.variant.validator
180
- },
181
- /**
182
- * The state of the button whether it is toggled or not.
183
- */
184
- toggled: {
185
- type: Boolean,
186
- default: !1
187
- }
188
- },
189
- emits: ["click", "update:toggled"],
190
- setup(e, { emit: t }) {
191
- const o = e, s = t, d = _(
192
- () => o.variant === "tertiary" ? "tertiary-with-background" : o.variant
193
- ), m = _(() => ({
194
- "b-toggle-button--condensed": o == null ? void 0 : o.condensed,
195
- [`b-toggle-button--${d.value}-toggled`]: o.toggled,
196
- "b-toggle-button--inverse": o.inverse
197
- })), l = (a) => {
198
- a.stopPropagation(), o != null && o.disabled || (s("click", a), s("update:toggled", !o.toggled));
199
- }, f = Q(), c = (a) => ({ key: a });
200
- return (a, i) => (u(), g(L, Y({ class: "b-toggle-button" }, a.$attrs, {
201
- "aria-expanded": `${e.toggled}`,
202
- "aria-pressed": `${e.toggled}`,
203
- condensed: e.condensed,
204
- class: m.value,
205
- disabled: e.disabled,
206
- inverse: e.inverse,
207
- variant: d.value,
208
- onClickCapture: X(l, ["stop"])
209
- }), H({ _: 2 }, [
210
- x(p(f), (r, n) => ({
211
- name: n,
212
- fn: y(() => [
213
- D(a.$slots, n, Be($e(c(n))), void 0, !0)
214
- ])
215
- }))
216
- ]), 1040, ["aria-expanded", "aria-pressed", "condensed", "class", "disabled", "inverse", "variant"]));
217
- }
218
- }), nt = /* @__PURE__ */ w(tt, [["__scopeId", "data-v-f1b10e5f"]]), ot = M({
219
- name: "bento-popover-dismiss-button",
220
- components: { BentoButton: L, CrossIcon: De },
221
- props: {
222
- onImage: {
223
- type: Boolean,
224
- default: !1
225
- }
226
- },
227
- setup(e) {
228
- return {
229
- // Values
230
- conditionalClass: _(() => ({ "b-popover-dismiss-button--on-image": e.onImage }))
231
- };
232
- }
233
- });
234
- function st(e, t, o, s, d, m) {
235
- const l = T("cross-icon"), f = T("bento-button");
236
- return u(), g(f, {
237
- class: U(e.conditionalClass),
238
- variant: "tertiary",
239
- onClick: t[0] || (t[0] = (c) => e.$emit("click"))
240
- }, {
241
- iconLeft: y(() => [
242
- E(l, { "svg-title": "dismiss" })
243
- ]),
244
- _: 1
245
- }, 8, ["class"]);
246
- }
247
- const ce = /* @__PURE__ */ w(ot, [["render", st], ["__scopeId", "data-v-424ecdaa"]]), it = M({
248
- components: { BentoTypography: _e },
249
- props: {
250
- /**
251
- * Indicates if the popover contains an image.
252
- */
253
- isImageTitle: { type: Boolean, default: !1 },
254
- /**
255
- * Indicates the title you want to give the popover.
256
- */
257
- title: { type: String, default: null }
258
- },
259
- setup(e) {
260
- const t = _(() => !e.isImageTitle), o = _(
261
- () => e.isImageTitle ? re.SUBTITLE : re.BODY
262
- );
263
- return {
264
- // Values
265
- isStrongest: t,
266
- titleVariant: o
267
- };
268
- }
269
- });
270
- function at(e, t, o, s, d, m) {
271
- const l = T("bento-typography");
272
- return u(), g(l, {
273
- strongest: e.isStrongest,
274
- variant: e.titleVariant,
275
- el: "span"
276
- }, {
277
- default: y(() => [
278
- j(G(e.title), 1)
279
- ]),
280
- _: 1
281
- }, 8, ["strongest", "variant"]);
282
- }
283
- const lt = /* @__PURE__ */ w(it, [["render", at]]), rt = (e, t, o = {}) => {
284
- let s;
285
- ee(() => {
286
- s = Ve(e, t, o);
287
- }), pe(() => {
288
- s && (s(), s = null);
289
- });
290
- }, ut = Symbol("input field popover injection key"), dt = Symbol("input field popover injection key"), ct = Symbol("popover offset injection key"), ft = {
291
- key: 0,
292
- class: "b-popover__image"
293
- }, mt = {
294
- key: 0,
295
- class: "b-popover__image-dismiss-button"
296
- }, pt = {
297
- key: 1,
298
- class: "b-popover__header"
299
- }, vt = { class: "b-popover__header-title" }, bt = { key: 0 }, ht = {
300
- key: 3,
301
- class: "b-popover__footer"
302
- }, yt = {}, gt = /* @__PURE__ */ M({
303
- ...yt,
304
- __name: "popover",
305
- props: {
306
- actions: { default: void 0 },
307
- actionsLayout: { default: "buttons-end" },
308
- ariaLabel: { default: void 0 },
309
- divider: { type: Boolean, default: !1 },
310
- disableFocusTrap: { type: Boolean, default: !1 },
311
- dismissible: { type: Boolean, default: !1 },
312
- fallbackPosition: { default: () => ["bottom-start", "right-start", "top-start", "left-start"] },
313
- fitContent: { type: Boolean, default: !1 },
314
- fixedPositioning: { type: Boolean, default: !1 },
315
- open: { type: Boolean, default: !1 },
316
- large: { type: Boolean, default: !1 },
317
- modifiers: { default: void 0 },
318
- position: { default: "bottom-start" },
319
- small: { type: Boolean, default: !1 },
320
- title: { default: void 0 },
321
- targetElement: {},
322
- trapAll: { type: Boolean, default: !1 },
323
- trapAllOptions: { default: void 0 },
324
- withoutSpace: { type: Boolean, default: !1 },
325
- overflowVisible: { type: Boolean, default: !1 }
326
- },
327
- emits: ["dismiss", "placement"],
328
- setup(e, { emit: t }) {
329
- const s = e, d = t, m = Q(), l = Ee(), f = _(() => {
330
- var h;
331
- return {
332
- id: (h = l.id) == null ? void 0 : h.toString(),
333
- role: (l == null ? void 0 : l.role) === null ? void 0 : Fe.POPOVER
334
- };
335
- }), c = K(ct, 2), a = v(l["aria-label"]), { ariaLabel: i, title: r } = Se(s), n = Ue({
336
- ariaLabel: a.value,
337
- // TODO: take this line away when the aria-label props is removed
338
- label: i,
339
- defaultFallback: r
340
- }), b = K(dt, !1) || K(ut, !1), C = _(() => ({
341
- "b-popover--small": s.small && !s.large,
342
- "b-popover--with-divider": !!s.divider,
343
- "b-popover--large": s.large && !s.small,
344
- "b-popover--fit-content": s.fitContent,
345
- "b-popover--without-space": s.withoutSpace,
346
- "b-popover--overflow-visible": s.overflowVisible || b
347
- })), $ = _(() => ({
348
- "b-popover__content--with-title": !!s.title
349
- })), R = () => d("dismiss"), P = ae(m);
350
- return (h, F) => (u(), g(ve, { name: "b-popover__animation" }, {
351
- default: y(() => [
352
- h.open ? (u(), g(p(We), {
353
- key: 0,
354
- id: f.value.id,
355
- "aria-role": f.value.role,
356
- "aria-label": p(n),
357
- arrow: { classes: ["b-popover__arrow"] },
358
- "disabled-focus-trap": h.disableFocusTrap,
359
- "trap-all": h.trapAll,
360
- "trap-all-options": h.trapAllOptions,
361
- class: U([C.value, "b-popover"]),
362
- "fallback-position": h.fallbackPosition,
363
- "fixed-positioning": h.fixedPositioning,
364
- offset: [0, p(c)],
365
- position: h.position,
366
- "target-element": h.targetElement,
367
- onPlacement: F[0] || (F[0] = (J) => h.$emit("placement", J))
368
- }, {
369
- default: y(() => [
370
- p(P)("image") ? (u(), k("div", ft, [
371
- h.dismissible ? (u(), k("div", mt, [
372
- E(ce, {
373
- "on-image": "",
374
- onClick: R
375
- })
376
- ])) : B("", !0),
377
- D(h.$slots, "image", {}, void 0, !0)
378
- ])) : B("", !0),
379
- p(r) ? (u(), k("div", pt, [
380
- V("div", vt, [
381
- p(P)("headerIcon") ? D(h.$slots, "headerIcon", { key: 0 }, void 0, !0) : B("", !0),
382
- E(lt, {
383
- title: p(r),
384
- "is-image-title": !!p(P)("image")
385
- }, null, 8, ["title", "is-image-title"])
386
- ]),
387
- h.dismissible && !p(P)("image") ? (u(), k("div", bt, [
388
- E(ce, { onClick: R })
389
- ])) : B("", !0)
390
- ])) : B("", !0),
391
- p(P)("default") ? (u(), k("div", {
392
- key: 2,
393
- class: U(["b-popover__content", $.value])
394
- }, [
395
- D(h.$slots, "default", {}, void 0, !0)
396
- ], 2)) : B("", !0),
397
- h.actions ? (u(), k("div", ht, [
398
- E(xt, {
399
- actions: h.actions,
400
- layout: h.actionsLayout
401
- }, null, 8, ["actions", "layout"])
402
- ])) : B("", !0)
403
- ]),
404
- _: 3
405
- }, 8, ["id", "aria-role", "aria-label", "disabled-focus-trap", "trap-all", "trap-all-options", "class", "fallback-position", "fixed-positioning", "offset", "position", "target-element"])) : B("", !0)
406
- ]),
407
- _: 3
408
- }));
409
- }
410
- }), _t = /* @__PURE__ */ w(gt, [["__scopeId", "data-v-84ebb43a"]]), Ct = Symbol("modal injection key"), It = Symbol("sidepanel children element injection key"), kt = Symbol("modal fullscreen children element injection key"), Ot = M({
411
- name: "teleport",
412
- props: {
413
- to: {
414
- type: String,
415
- default: ""
416
- },
417
- where: {
418
- type: String,
419
- default: "after"
420
- },
421
- disabled: Boolean
422
- },
423
- data: () => ({
424
- childObserver: null,
425
- nodes: [],
426
- waiting: !1,
427
- observer: null,
428
- parent: null,
429
- isVue2: Ce
430
- }),
431
- computed: {
432
- classes() {
433
- return this.disabled ? ["b-teleport"] : ["b-teleport", "b-teleport--hidden"];
434
- },
435
- defaultTo() {
436
- if (this.to)
437
- return this.to;
438
- const e = K(Ct, "") || K(kt, "") || K(It, "");
439
- return e ? `#${e}` : "body";
440
- }
441
- },
442
- watch: {
443
- to: "maybeMove",
444
- where: "maybeMove",
445
- disabled(e) {
446
- e ? (this.disable(), this.$nextTick(() => {
447
- this.teardownObserver();
448
- })) : (this.bootObserver(), this.move());
449
- }
450
- },
451
- mounted() {
452
- this.nodes = Array.from(this.$el.childNodes), this.disabled || this.bootObserver(), this.maybeMove();
453
- },
454
- beforeDestroy() {
455
- this.nodes = this.getComponentChildrenNode(), this.disable(), this.teardownObserver();
456
- },
457
- methods: {
458
- // Using a fragment is faster because it'll trigger only a single reflow
459
- // See https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment
460
- getFragment() {
461
- const e = document.createDocumentFragment();
462
- return this.nodes.forEach((t) => e.appendChild(t)), e;
463
- },
464
- disable() {
465
- this.$el.appendChild(this.getFragment()), this.parent = null;
466
- },
467
- move() {
468
- if (this.waiting = !1, this.parent = document.querySelector(this.defaultTo), !this.parent) {
469
- this.disable(), this.waiting = !0;
470
- return;
471
- }
472
- this.where === "before" ? this.parent.prepend(this.getFragment()) : this.parent.appendChild(this.getFragment());
473
- },
474
- maybeMove() {
475
- this.disabled || this.move();
476
- },
477
- onMutations(e) {
478
- let t = !1;
479
- for (let o = 0; o < e.length; o++) {
480
- const s = e[o], d = Array.from(s.addedNodes).filter(
481
- (m) => !this.nodes.includes(m)
482
- );
483
- Array.from(s.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && d.length > 0 && (t = !0);
484
- }
485
- t && this.move();
486
- },
487
- bootObserver() {
488
- this.observer || (this.observer = new MutationObserver((e) => this.onMutations(e)), this.observer.observe(document.body, {
489
- childList: !0,
490
- subtree: !0,
491
- attributes: !1,
492
- characterData: !1
493
- }), !this.childObserver && (this.childObserver = new MutationObserver((e) => {
494
- e.find((o) => o.target === this.$el) && (this.nodes.forEach((o) => o.parentNode && o.parentNode.removeChild(o)), this.nodes = this.getComponentChildrenNode(), this.maybeMove());
495
- }), this.childObserver.observe(this.$el, {
496
- childList: !0,
497
- subtree: !1,
498
- attributes: !1,
499
- characterData: !1
500
- })));
501
- },
502
- teardownObserver() {
503
- this.observer && (this.observer.disconnect(), this.observer = null), this.childObserver && (this.childObserver.disconnect(), this.childObserver = null);
504
- },
505
- getComponentChildrenNode() {
506
- return [];
507
- }
508
- }
509
- }), Bt = /* @__PURE__ */ M({
510
- ...Ot,
511
- setup(e) {
512
- return (t, o) => p(Ce) ? (u(), k("div", {
513
- key: 0,
514
- class: U(t.classes)
515
- }, [
516
- D(t.$slots, "default", {}, void 0, !0)
517
- ], 2)) : (u(), g(Le, {
518
- key: 1,
519
- to: t.defaultTo,
520
- where: t.where,
521
- disabled: t.disabled,
522
- class: U(t.classes)
523
- }, [
524
- D(t.$slots, "default", {}, void 0, !0)
525
- ], 8, ["to", "where", "disabled", "class"]));
526
- }
527
- }), $t = /* @__PURE__ */ w(Bt, [["__scopeId", "data-v-acbda3aa"]]);
528
- let fe = 0;
529
- const Et = {
530
- beforeCreate() {
531
- this.uuid = fe.toString(), fe += 1;
532
- }
533
- }, St = { key: 0 };
534
- function Lt(e, t, o, s, d, m) {
535
- return u(), k("svg", Y({ role: "img" }, e.$attrs, {
536
- class: "ui-assets-icons-16",
537
- xmlns: "http://www.w3.org/2000/svg",
538
- width: "16",
539
- height: "16",
540
- fill: "none"
541
- }), [
542
- e.$attrs["svg-title"] ? (u(), k("title", St, G(e.$attrs["svg-title"]), 1)) : B("", !0),
543
- t[0] || (t[0] = V("path", {
544
- fill: "#001222",
545
- d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
546
- }, null, -1)),
547
- t[1] || (t[1] = V("path", {
548
- fill: "#001222",
549
- d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z"
550
- }, null, -1)),
551
- t[2] || (t[2] = V("path", {
552
- fill: "#001222",
553
- d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z"
554
- }, null, -1))
555
- ], 16);
556
- }
557
- const Tt = /* @__PURE__ */ w(Et, [["render", Lt]]), Mt = M({
558
- name: "menu-item",
559
- components: { BaseButton: Ye, BentoTypography: _e, ChevronRightIcon: He },
560
- props: {
561
- /**
562
- * menu-item text that gets displayed as the main label
563
- */
564
- text: {
565
- type: String,
566
- required: !0
567
- },
568
- /**
569
- * menu-item action that gets executed when the MeniItem is clicked
570
- */
571
- handler: {
572
- type: Function,
573
- required: !0
574
- },
575
- /**
576
- * menu-item text that gets displayed as the secondary label
577
- */
578
- secondaryText: {
579
- type: String,
580
- default: null
581
- },
582
- /**
583
- * Optional chevron icon displayed to the right of the menu-item
584
- */
585
- chevron: {
586
- type: Boolean,
587
- default: !1
588
- },
589
- /**
590
- * Optional icon displayed to the left of the menu-item
591
- */
592
- icon: {
593
- // Types for Vue2 (Object) and Vue3 (Function)
594
- // TODO: Remove Object when fully migrated to Vue3
595
- type: [Object, Function],
596
- default: null
597
- },
598
- /**
599
- * Disables menu-item button functionality
600
- */
601
- disabled: {
602
- type: Boolean,
603
- default: !1
604
- },
605
- /**
606
- * Displays an indent variant od the menu-item
607
- */
608
- indent: {
609
- type: Boolean,
610
- default: !1
611
- },
612
- /**
613
- * Displays menu-item button as critical
614
- */
615
- critical: {
616
- type: Boolean,
617
- default: !1
618
- },
619
- /**
620
- * Renders the text in a bold variant
621
- */
622
- isTitle: {
623
- type: Boolean,
624
- default: !1
625
- }
626
- },
627
- emits: [de.CLICK],
628
- setup(e, { emit: t }) {
629
- const s = _(() => ({
630
- "b-menu-item--critical": e.critical,
631
- "b-menu-item--indent": e.indent
632
- })), d = _(() => Je(e.secondaryText, 10));
633
- return {
634
- // Values
635
- conditionalClasses: s,
636
- computedSecondaryText: d,
637
- // Methods
638
- onClick: (l) => {
639
- l.stopPropagation(), e.handler(), t(de.CLICK);
640
- }
641
- };
642
- }
643
- });
644
- function wt(e, t, o, s, d, m) {
645
- const l = T("bento-typography"), f = T("chevron-right-icon"), c = T("base-button");
646
- return u(), g(c, {
647
- class: U(["b-menu-item", e.conditionalClasses]),
648
- role: "menuitem",
649
- disabled: e.disabled,
650
- tabindex: "-1",
651
- onClick: e.onClick
652
- }, H({
653
- default: y(() => [
654
- E(l, {
655
- el: "span",
656
- variant: "body",
657
- stronger: e.isTitle,
658
- class: "b-menu-item__primary-text"
659
- }, {
660
- default: y(() => [
661
- j(G(e.text), 1)
662
- ]),
663
- _: 1
664
- }, 8, ["stronger"]),
665
- e.computedSecondaryText ? (u(), g(l, {
666
- key: 0,
667
- el: "span",
668
- variant: "body",
669
- class: "b-menu-item__secondary-text"
670
- }, {
671
- default: y(() => [
672
- j(G(e.computedSecondaryText), 1)
673
- ]),
674
- _: 1
675
- })) : B("", !0)
676
- ]),
677
- _: 2
678
- }, [
679
- e.icon ? {
680
- name: "iconLeft",
681
- fn: y(() => [
682
- (u(), g(z(e.icon), {
683
- class: "b-menu-item__icon-left",
684
- "aria-hidden": "true"
685
- }))
686
- ]),
687
- key: "0"
688
- } : void 0,
689
- e.chevron ? {
690
- name: "iconRight",
691
- fn: y(() => [
692
- E(f, { "aria-hidden": "true" })
693
- ]),
694
- key: "1"
695
- } : void 0
696
- ]), 1032, ["class", "disabled", "onClick"]);
697
- }
698
- const ke = /* @__PURE__ */ w(Mt, [["render", wt], ["__scopeId", "data-v-9dace5ac"]]);
699
- ({ ...Ke });
700
- var W = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(W || {});
701
- const Nt = Symbol("menu registering injection key"), Rt = {
702
- name: "bento-menu-list-container"
703
- }, At = /* @__PURE__ */ M({
704
- ...Rt,
705
- setup(e) {
706
- const t = v(), o = v({}), s = K(Nt, !1);
707
- if (s) {
708
- const { registerMenuContainerElement: d } = s;
709
- d(t), o.value = {
710
- mouseleave: s == null ? void 0 : s.menuMouseLeave
711
- };
712
- }
713
- return (d, m) => (u(), k("div", Y({
714
- ref_key: "menuListContainerRef",
715
- ref: t,
716
- class: "b-menu-list-container",
717
- "data-testid": "menu-list-container"
718
- }, ie(o.value, !0)), [
719
- D(d.$slots, "default", {}, void 0, !0)
720
- ], 16));
721
- }
722
- }), Oe = /* @__PURE__ */ w(At, [["__scopeId", "data-v-9ef14d73"]]), le = {
723
- "en-US": {
724
- backButton: "Go back",
725
- menuButton: "Open menu"
726
- }
727
- }, Dt = M({
728
- i18n: { messages: le },
729
- name: "sub-menu-item-list",
730
- components: { BentoDivider: ge, MenuItem: ke, MenuListContainer: Oe },
731
- props: {
732
- items: {
733
- type: Array,
734
- required: !0
735
- },
736
- title: {
737
- type: String,
738
- required: !0
739
- }
740
- },
741
- emits: [W.CLOSE, W.BACK],
742
- setup(e, { emit: t }) {
743
- const o = v(null), s = v(0), d = v(e.items.length), m = () => t(W.CLOSE), l = () => t(W.BACK), f = _(() => {
744
- var n;
745
- const r = (n = e.items) == null ? void 0 : n.map((b) => ({
746
- ...b,
747
- indent: !b.icon,
748
- isTitle: !1,
749
- clickHandler: m
750
- }));
751
- return [
752
- {
753
- text: e.title,
754
- secondaryText: null,
755
- critical: !1,
756
- icon: ue,
757
- isTitle: !0,
758
- disabled: !1,
759
- indent: !1,
760
- handler: l,
761
- clickHandler: l,
762
- addDivider: !0
763
- },
764
- ...r
765
- ];
766
- }), c = async () => {
767
- var r, n, b, C, $;
768
- ($ = (C = (b = (n = (r = o.value) == null ? void 0 : r.children) == null ? void 0 : n[s.value]) == null ? void 0 : b.children) == null ? void 0 : C[0]) == null || $.focus();
769
- };
770
- ee(async () => {
771
- setTimeout(() => c(), 150);
772
- });
773
- const a = () => {
774
- s.value > 0 ? (s.value -= 1, f.value[s.value].disabled && a()) : s.value = d.value, c();
775
- }, i = () => {
776
- s.value < d.value ? (s.value += 1, f.value[s.value].disabled && i()) : s.value = 0, c();
777
- };
778
- return {
779
- // Enums
780
- BentoMenuEvent: W,
781
- // Values
782
- subMenuItemListRefLocal: o,
783
- subMenuFocusedIndex: s,
784
- ChevronLeftIcon: ue,
785
- computedItems: f,
786
- // Methods
787
- closeMenu: m,
788
- onBackButton: l,
789
- focusPrevious: a,
790
- focusNext: i
791
- };
792
- }
793
- });
794
- function Pt(e, t, o, s, d, m) {
795
- const l = T("menu-item"), f = T("bento-divider"), c = T("menu-list-container");
796
- return u(), g(ve, {
797
- name: "b-sub-menu-item-list__transition",
798
- appear: ""
799
- }, {
800
- default: y(() => [
801
- E(c, { class: "b-sub-menu-item-list" }, {
802
- default: y(() => [
803
- V("ul", {
804
- ref: "subMenuItemListRefLocal",
805
- role: "menu",
806
- class: "b-sub-menu-item-list__list",
807
- onKeydown: [
808
- t[0] || (t[0] = N(X((...a) => e.focusNext && e.focusNext(...a), ["stop"]), ["down"])),
809
- t[1] || (t[1] = N(X((...a) => e.focusPrevious && e.focusPrevious(...a), ["stop"]), ["up"])),
810
- t[2] || (t[2] = N(X((...a) => e.onBackButton && e.onBackButton(...a), ["stop"]), ["esc"]))
811
- ]
812
- }, [
813
- (u(!0), k(Z, null, x(e.computedItems, (a, i) => (u(), k("li", {
814
- key: `sub-menu-item-list-item-${i}`,
815
- role: "none"
816
- }, [
817
- E(l, {
818
- text: a.text,
819
- handler: a.handler,
820
- "secondary-text": a.secondaryText,
821
- icon: a.icon,
822
- "is-title": a.isTitle,
823
- disabled: a.disabled,
824
- critical: a.critical,
825
- indent: a.indent,
826
- tabindex: i === e.subMenuFocusedIndex ? "0" : "-1",
827
- onClick: a.clickHandler
828
- }, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
829
- a.addDivider ? (u(), g(f, {
830
- key: 0,
831
- class: "b-sub-menu-item-list__divider"
832
- })) : B("", !0)
833
- ]))), 128))
834
- ], 544)
835
- ]),
836
- _: 1
837
- })
838
- ]),
839
- _: 1
840
- });
841
- }
842
- const Ft = /* @__PURE__ */ w(Dt, [["render", Pt], ["__scopeId", "data-v-e1de172e"]]);
843
- function Wt(e, t, o) {
844
- const m = v(0), l = v(0), f = (a) => {
845
- if (!a || !a.parentElement)
846
- return;
847
- const i = a.parentElement, r = a.cloneNode(!0);
848
- r.style.position = "absolute", r.style.visibility = "hidden", i.appendChild(r), r.style.width = "max-content";
849
- const n = r.offsetWidth, b = Math.max(150, Math.min(n, 350));
850
- m.value = b, r.style.width = `${b}px`;
851
- const C = r.offsetHeight;
852
- l.value = C, i.removeChild(r), l.value = C;
853
- };
854
- return be([t, o], async ([a]) => {
855
- var i, r;
856
- if (a !== null) {
857
- await te();
858
- const n = (r = (i = e.value) == null ? void 0 : i[0]) == null ? void 0 : r.$el;
859
- n && f(n);
860
- } else
861
- m.value = 0, l.value = 0;
862
- }), { computedStyle: _(() => {
863
- const a = { width: "max-content" };
864
- return o.value && (l.value > 0 && (a.height = `${l.value}px`), m.value > 0 && (a.width = `${m.value}px`)), a;
865
- }) };
866
- }
867
- const Kt = M({
868
- name: "menu-item-list",
869
- components: { BentoDivider: ge, MenuItem: ke, MenuListContainer: Oe, SubMenuItemList: Ft },
870
- props: {
871
- /**
872
- * The data to be displayed in the list
873
- */
874
- data: {
875
- type: Array,
876
- required: !0
877
- },
878
- /**
879
- * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
880
- */
881
- indentItems: {
882
- type: Boolean,
883
- default: !1
884
- },
885
- /**
886
- * If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.
887
- */
888
- focusLastElement: {
889
- type: Boolean,
890
- default: !1
891
- },
892
- /**
893
- * If set to true, closes the menu when an item is clicked.
894
- */
895
- closeMenuOnItemSelect: {
896
- type: Boolean,
897
- default: !0
898
- }
899
- },
900
- emits: [W.CLOSE, "menu-item-click"],
901
- setup(e, { emit: t, expose: o }) {
902
- const s = v(null), d = v(null), m = v(null), l = v(null), f = v(!1), c = v(null), a = v(e.focusLastElement ? e.data.length - 1 : 0), i = v(0), r = v(e.data.length - 1), n = _(() => e.data.some((O) => O.icon)), b = _(() => e.indentItems || n.value ? e.data.map((O) => {
903
- let S = !1;
904
- return O.icon || (S = !0), {
905
- ...O,
906
- indent: S
907
- };
908
- }) : e.data), C = async () => {
909
- var O, S, I;
910
- await te(), (I = (S = (O = d.value) == null ? void 0 : O.children[a.value]) == null ? void 0 : S.children[0]) == null || I.focus();
911
- }, $ = () => t(W.CLOSE), R = (O, S) => {
912
- if (O.items) {
913
- c.value = S, f.value = !0;
914
- return;
915
- }
916
- c.value = S, f.value = !1, !O.skipClose && e.closeMenuOnItemSelect !== !1 && $(), t("menu-item-click");
917
- }, P = () => {
918
- a.value > 0 ? (a.value -= 1, b.value[a.value].disabled && P()) : a.value = r.value, C();
919
- }, h = () => {
920
- a.value < r.value ? (a.value += 1, b.value[a.value].disabled && h()) : a.value = 0, C();
921
- }, F = (O, S) => {
922
- var I;
923
- (I = O == null ? void 0 : O.items) != null && I.length && (c.value = S, f.value = !0);
924
- }, J = () => {
925
- c.value && f.value && (c.value = null, f.value = !1);
926
- }, ne = () => {
927
- f.value = !1, c.value = null, C();
928
- };
929
- o({
930
- focusItem: C
931
- });
932
- const { computedStyle: oe } = Wt(l, c, f);
933
- return {
934
- // Values
935
- menuItemListRef: d,
936
- menuItemListWrapperRef: m,
937
- subMenuItemListRef: l,
938
- menuItemRef: s,
939
- computedData: b,
940
- computedStyle: oe,
941
- focusedIndex: a,
942
- subMenuFocusedIndex: i,
943
- showSubMenu: f,
944
- visibleSubMenuIndex: c,
945
- // Methods
946
- menuItemClick: R,
947
- closeMenu: $,
948
- focusPrevious: P,
949
- focusNext: h,
950
- focusRight: F,
951
- focusLeft: J,
952
- onBackButton: ne
953
- };
954
- }
955
- }), Ut = ["onKeydown"];
956
- function Vt(e, t, o, s, d, m) {
957
- const l = T("menu-item"), f = T("bento-divider"), c = T("sub-menu-item-list"), a = T("menu-list-container");
958
- return u(), g(a, {
959
- ref: "menuItemListWrapperRef",
960
- style: he(e.computedStyle)
961
- }, {
962
- default: y(() => [
963
- V("ul", {
964
- ref: "menuItemListRef",
965
- class: "b-menu-item-list",
966
- role: "menu",
967
- onKeydown: [
968
- t[1] || (t[1] = N((...i) => e.focusNext && e.focusNext(...i), ["down"])),
969
- t[2] || (t[2] = N((...i) => e.focusPrevious && e.focusPrevious(...i), ["up"])),
970
- t[3] || (t[3] = N((...i) => e.closeMenu && e.closeMenu(...i), ["esc"])),
971
- t[4] || (t[4] = N((...i) => e.closeMenu && e.closeMenu(...i), ["tab"]))
972
- ]
973
- }, [
974
- (u(!0), k(Z, null, x(e.computedData, (i, r) => {
975
- var n, b, C, $;
976
- return u(), k("li", {
977
- key: `menu-item-${r}`,
978
- ref_for: !0,
979
- ref: "menuItemRef",
980
- class: "b-menu-item-list__item",
981
- role: "none",
982
- onKeydown: [
983
- N((R) => e.focusRight(i, r), ["right"]),
984
- t[0] || (t[0] = N((R) => e.focusLeft(), ["left"]))
985
- ]
986
- }, [
987
- E(l, {
988
- text: i.text,
989
- handler: (n = i.items) != null && n.length ? () => null : i.handler,
990
- "secondary-text": i.secondaryText,
991
- icon: i.icon,
992
- chevron: !!((b = i.items) != null && b.length),
993
- disabled: i.disabled,
994
- critical: i.critical,
995
- indent: i.indent,
996
- tabindex: r === e.subMenuFocusedIndex ? "0" : "-1",
997
- "aria-haspopup": !!((C = i.items) != null && C.length),
998
- "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === r,
999
- onClick: (R) => e.menuItemClick(i, r)
1000
- }, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
1001
- i.addDivider ? (u(), g(f, {
1002
- key: 0,
1003
- class: "b-menu-item-list__divider"
1004
- })) : B("", !0),
1005
- ($ = i.items) != null && $.length && e.showSubMenu && e.visibleSubMenuIndex === r ? (u(), g(c, {
1006
- key: 1,
1007
- ref_for: !0,
1008
- ref: "subMenuItemListRef",
1009
- items: i.items,
1010
- title: i.text,
1011
- onBack: e.onBackButton,
1012
- onClose: e.closeMenu
1013
- }, null, 8, ["items", "title", "onBack", "onClose"])) : B("", !0)
1014
- ], 40, Ut);
1015
- }), 128))
1016
- ], 544)
1017
- ]),
1018
- _: 1
1019
- }, 8, ["style"]);
1020
- }
1021
- const Gt = /* @__PURE__ */ w(Kt, [["render", Vt], ["__scopeId", "data-v-968b28cb"]]), jt = Symbol("menu inverse style injection key"), Ht = {
1022
- i18n: { messages: le },
1023
- name: "bento-menu"
1024
- }, Yt = /* @__PURE__ */ M({
1025
- ...Ht,
1026
- props: {
1027
- button: { default: () => ({
1028
- variant: "secondary"
1029
- }) },
1030
- closeMenuOnItemSelect: { type: Boolean, default: !0 },
1031
- data: {},
1032
- disableArrowDownOpeningMenu: { type: Boolean, default: !1 },
1033
- menuPosition: { default: "bottom-start" },
1034
- menuFixedPositioning: { type: Boolean, default: !1 },
1035
- menuWidth: { default: null },
1036
- revertFocusToButton: { type: Boolean, default: !0 },
1037
- teleport: { type: Boolean, default: !1 },
1038
- closeOnClickOutsideOptions: { default: void 0 }
1039
- },
1040
- emits: ["menu-item-click", "click-outside"],
1041
- setup(e, { expose: t, emit: o }) {
1042
- var S;
1043
- const s = e, d = o, m = Q(), l = ae(m), { t: f } = ye({ messages: le }), c = v(null), a = v(null), i = v(!1), r = v(!1), n = v(null), b = Ge("menu"), C = K(jt, v(!1));
1044
- Te(Ae, C);
1045
- const $ = _(() => ({
1046
- "b-menu--inverse": C.value
1047
- })), R = _(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), P = _(() => {
1048
- if (s != null && s.button)
1049
- return {
1050
- variant: "secondary",
1051
- ...s.button
1052
- };
1053
- }), h = () => {
1054
- i.value = !0, d(W.OPEN);
1055
- }, F = async (I = s.revertFocusToButton) => {
1056
- var q, se;
1057
- i.value && (i.value = !1, I && (await te(), (se = (q = c.value) == null ? void 0 : q.$el) == null || se.focus()), d(W.CLOSE));
1058
- }, J = (I) => {
1059
- I.stopPropagation(), i.value ? F() : h();
1060
- }, ne = (I) => {
1061
- I.preventDefault(), r.value = !1, s.disableArrowDownOpeningMenu || h();
1062
- }, oe = (I) => {
1063
- I.preventDefault(), r.value = !0, h();
1064
- }, O = () => {
1065
- d("menu-item-click");
1066
- };
1067
- return rt(
1068
- n,
1069
- () => {
1070
- F(), d("click-outside");
1071
- },
1072
- {
1073
- ...s.closeOnClickOutsideOptions,
1074
- ignore: [c, ...((S = s.closeOnClickOutsideOptions) == null ? void 0 : S.ignore) ?? []]
1075
- }
1076
- ), t({
1077
- /**
1078
- * Control to enable programmatic closing of the menu
1079
- */
1080
- closeMenu: F
1081
- }), ee(() => {
1082
- l("iconRight") && Pe(
1083
- '"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
1084
- );
1085
- }), (I, q) => (u(), k("div", {
1086
- class: U([$.value, "b-menu"]),
1087
- "data-testid": "menu",
1088
- onKeydown: [
1089
- N(ne, ["down"]),
1090
- N(oe, ["up"]),
1091
- q[0] || (q[0] = N((se) => F(), ["esc"]))
1092
- ]
1093
- }, [
1094
- E(nt, Y({
1095
- ref_key: "menuButtonRef",
1096
- ref: c,
1097
- class: "b-menu__toggle-button",
1098
- "aria-haspopup": "true"
1099
- }, P.value, {
1100
- "aria-controls": i.value ? p(b) : null,
1101
- toggled: i.value,
1102
- inverse: p(C),
1103
- onClick: J
1104
- }), H({ _: 2 }, [
1105
- !p(l)("default") || p(l)("iconLeft") ? {
1106
- name: "iconLeft",
1107
- fn: y(() => [
1108
- D(I.$slots, "iconLeft", {}, () => [
1109
- E(p(Tt), {
1110
- title: p(f)("menuButton")
1111
- }, null, 8, ["title"])
1112
- ], !0)
1113
- ]),
1114
- key: "0"
1115
- } : void 0,
1116
- p(l)("default") ? {
1117
- name: "default",
1118
- fn: y(() => [
1119
- D(I.$slots, "default", {}, void 0, !0)
1120
- ]),
1121
- key: "1"
1122
- } : void 0,
1123
- p(l)("default") ? {
1124
- name: "iconRight",
1125
- fn: y(() => [
1126
- E(p(je))
1127
- ]),
1128
- key: "2"
1129
- } : void 0
1130
- ]), 1040, ["aria-controls", "toggled", "inverse"]),
1131
- c.value ? (u(), g(p($t), {
1132
- key: 0,
1133
- disabled: !I.teleport
1134
- }, {
1135
- default: y(() => [
1136
- c.value ? (u(), g(_t, {
1137
- key: 0,
1138
- id: p(b),
1139
- ref_key: "popoverRef",
1140
- ref: n,
1141
- role: null,
1142
- open: i.value,
1143
- class: "b-menu__popover",
1144
- style: he(R.value),
1145
- "target-element": c.value,
1146
- position: I.menuPosition,
1147
- "fixed-positioning": I.menuFixedPositioning,
1148
- "fallback-position": [
1149
- "bottom-start",
1150
- "bottom-end",
1151
- "top-start",
1152
- "top-end",
1153
- "right-start",
1154
- "right-end",
1155
- "left-start",
1156
- "left-end"
1157
- ],
1158
- teleport: I.teleport,
1159
- "without-space": ""
1160
- }, {
1161
- default: y(() => [
1162
- E(Gt, {
1163
- ref_key: "menuItemListRef",
1164
- ref: a,
1165
- "close-menu-on-item-select": I.closeMenuOnItemSelect,
1166
- data: I.data,
1167
- "focus-last-element": r.value,
1168
- onClose: F,
1169
- onMenuItemClick: O
1170
- }, null, 8, ["close-menu-on-item-select", "data", "focus-last-element"])
1171
- ]),
1172
- _: 1
1173
- }, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : B("", !0)
1174
- ]),
1175
- _: 1
1176
- }, 8, ["disabled"])) : B("", !0)
1177
- ], 34));
1178
- }
1179
- }), Jt = /* @__PURE__ */ w(Yt, [["__scopeId", "data-v-4d921a39"]]), qt = Symbol(
1180
- "button actions with menu container injection key"
1181
- ), Xt = 242, me = parseInt(Xe, 10), zt = (e, t, o) => {
1182
- const s = v(0);
1183
- let d = null;
1184
- const { buttonActionsWithMenu: m, menu: l, stackButtons: f } = K(qt, {
1185
- buttonActionsWithMenu: v(null),
1186
- menu: v(null),
1187
- stackButtons: v(!1)
1188
- }), c = _(() => m.value ?? e.value), a = _(() => l.value ? [...t.value, l.value.$el] : t.value), i = (r) => {
1189
- var C;
1190
- const n = (C = a.value) == null ? void 0 : C.reduce(
1191
- ($, R) => $ + R.clientWidth + me,
1192
- -me - 1
1193
- ), b = c.value.clientWidth;
1194
- return r && (s.value = b >= Xt && !f.value ? n : 0), s.value > b;
1195
- };
1196
- return be(
1197
- () => o.value,
1198
- () => {
1199
- te(() => {
1200
- f.value = i(!0);
1201
- });
1202
- },
1203
- { deep: !0 }
1204
- ), ee(() => {
1205
- d = qe(c.value, () => {
1206
- f.value = i(s.value === 0);
1207
- });
1208
- }), pe(() => {
1209
- d == null || d.disconnect();
1210
- }), f;
1211
- }, Zt = {}, Qt = /* @__PURE__ */ M({
1212
- ...Zt,
1213
- __name: "button-actions",
1214
- props: {
1215
- actions: {},
1216
- inverse: { type: Boolean, default: !1 },
1217
- layout: { default: "buttons-end" }
1218
- },
1219
- setup(e) {
1220
- const t = e, o = v(null), s = v(null), d = zt(o, s, Me(t, "actions")), m = _(() => t.actions.slice().reverse()), l = (i) => {
1221
- const r = t.actions.length - 1;
1222
- return i === r ? "primary" : "secondary";
1223
- }, f = _(() => ({
1224
- [`b-button-actions--${t.layout}`]: !0,
1225
- "b-button-actions--stacked-buttons": d.value
1226
- })), c = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
1227
- click: i.event
1228
- } : {}, a = (i) => i.iconOnly && (i.iconLeft || i.iconRight || i.icon);
1229
- return (i, r) => (u(), k("div", {
1230
- ref_key: "buttonActions",
1231
- ref: o,
1232
- class: "b-button-actions"
1233
- }, [
1234
- V("div", {
1235
- class: U(["b-button-actions__container-wrapper", f.value]),
1236
- role: "group"
1237
- }, [
1238
- (u(!0), k(Z, null, x(m.value, (n, b) => (u(), k("div", {
1239
- key: b,
1240
- ref_for: !0,
1241
- ref_key: "buttons",
1242
- ref: s,
1243
- class: "b-button-actions__button-wrapper"
1244
- }, [
1245
- n.data ? (u(), g(Jt, {
1246
- key: 0,
1247
- ref_for: !0,
1248
- ref: n.elementRef,
1249
- data: n.data,
1250
- "close-menu-on-item-select": n.closeMenuOnItemSelect,
1251
- "close-on-click-outside-options": n.closeOnClickOutsideOptions,
1252
- "disable-arrow-down-opening-menu": n.disableArrowDownOpeningMenu,
1253
- "menu-position": n.menuPosition,
1254
- "menu-fixed-positioning": n.menuFixedPositioning,
1255
- "menu-width": n.menuWidth,
1256
- "revert-focus-to-button": n.revertFocusToButton,
1257
- teleport: n.teleport
1258
- }, H({ _: 2 }, [
1259
- n.icon || n.iconLeft ? {
1260
- name: "iconLeft",
1261
- fn: y(() => [
1262
- (u(), g(z(n.icon || n.iconLeft), {
1263
- "svg-title": n.title
1264
- }, null, 8, ["svg-title"]))
1265
- ]),
1266
- key: "0"
1267
- } : void 0,
1268
- a(n) ? void 0 : {
1269
- name: "default",
1270
- fn: y(() => [
1271
- j(G(n.title), 1)
1272
- ]),
1273
- key: "1"
1274
- }
1275
- ]), 1032, ["data", "close-menu-on-item-select", "close-on-click-outside-options", "disable-arrow-down-opening-menu", "menu-position", "menu-fixed-positioning", "menu-width", "revert-focus-to-button", "teleport"])) : (u(), k(Z, { key: 1 }, [
1276
- n.state ? (u(), g(xe, Y({
1277
- key: 0,
1278
- ref_for: !0,
1279
- ref: n.elementRef,
1280
- condensed: n.condensed,
1281
- critical: n.critical,
1282
- disabled: n.disabled,
1283
- inverse: i.inverse,
1284
- state: n.state,
1285
- variant: n.variant || l(b)
1286
- }, ie(c(n))), {
1287
- default: y(() => [
1288
- j(G(n.title), 1)
1289
- ]),
1290
- _: 2
1291
- }, 1040, ["condensed", "critical", "disabled", "inverse", "state", "variant"])) : (u(), g(L, Y({
1292
- key: 1,
1293
- ref_for: !0,
1294
- ref: n.elementRef,
1295
- condensed: n.condensed,
1296
- critical: n.critical,
1297
- disabled: n.disabled,
1298
- inverse: i.inverse,
1299
- link: n.link,
1300
- variant: n.variant || l(b)
1301
- }, ie(c(n))), H({ _: 2 }, [
1302
- n.icon || n.iconLeft ? {
1303
- name: "iconLeft",
1304
- fn: y(() => [
1305
- (u(), g(z(n.icon || n.iconLeft), {
1306
- "svg-title": n.title
1307
- }, null, 8, ["svg-title"]))
1308
- ]),
1309
- key: "0"
1310
- } : void 0,
1311
- a(n) ? void 0 : {
1312
- name: "default",
1313
- fn: y(() => [
1314
- j(G(n.title), 1)
1315
- ]),
1316
- key: "1"
1317
- },
1318
- n.iconRight ? {
1319
- name: "iconRight",
1320
- fn: y(() => [
1321
- (u(), g(z(n.iconRight), {
1322
- "svg-title": n.title
1323
- }, null, 8, ["svg-title"]))
1324
- ]),
1325
- key: "2"
1326
- } : void 0
1327
- ]), 1040, ["condensed", "critical", "disabled", "inverse", "link", "variant"]))
1328
- ], 64))
1329
- ]))), 128))
1330
- ], 2)
1331
- ], 512));
1332
- }
1333
- }), xt = /* @__PURE__ */ w(Qt, [["__scopeId", "data-v-6c3554de"]]);
1334
- export {
1335
- xt as B,
1336
- Nt as D,
1337
- ut as I,
1338
- jt as M,
1339
- Tt as O,
1340
- ct as P,
1341
- It as S,
1342
- xe as a,
1343
- A as b,
1344
- nt as c,
1345
- $t as d,
1346
- qt as e,
1347
- Jt as f,
1348
- W as g,
1349
- _t as h,
1350
- kt as i,
1351
- Ct as j,
1352
- dt as k,
1353
- rt as u
1354
- };
1355
- //# sourceMappingURL=button-actions.BQ3AFQqt.js.map