@adyen/bento-vue3 1.89.2 → 1.90.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 (243) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +403 -298
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-time.css +1 -0
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/secondary-nav.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/button.js +1 -1
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chip.js +1 -1
  26. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  27. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  28. package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
  29. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
  30. package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
  31. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
  32. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  33. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  34. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  35. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  36. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
  37. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
  38. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
  39. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
  40. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
  41. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
  42. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
  43. package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
  44. package/dist/chunks/card.BzCGCCzH.js +223 -0
  45. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
  46. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
  47. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
  48. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
  49. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
  50. package/dist/chunks/chip.DFldnqfz.js +72 -0
  51. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  52. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
  53. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
  54. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
  55. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
  56. package/dist/chunks/copy.CL893i9-.js +114 -0
  57. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  58. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  59. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  60. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  61. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  62. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
  63. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
  64. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
  65. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
  66. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
  67. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
  68. package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
  69. package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
  70. package/dist/chunks/date-picker.DPjCROIP.js +238 -0
  71. package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
  72. package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
  73. package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
  74. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  75. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  76. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
  77. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
  78. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
  79. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
  80. package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
  81. package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
  82. package/dist/chunks/error-message.849uzpkq.js +157 -0
  83. package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
  84. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
  85. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
  86. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
  87. package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
  88. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  89. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  90. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
  91. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
  92. package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
  93. package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
  94. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
  95. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
  96. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
  97. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
  98. package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
  99. package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
  100. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  101. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  102. package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
  103. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
  104. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
  105. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
  106. package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
  107. package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
  108. package/dist/chunks/input-time.DeJ8lDio.js +103 -0
  109. package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
  110. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  111. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  112. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  113. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  115. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  116. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
  117. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
  118. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
  119. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
  120. package/dist/chunks/pagination.DL-h8OLF.js +413 -0
  121. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
  122. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  123. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  124. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
  125. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
  126. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
  127. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
  128. package/dist/chunks/search-bar.DfNwnjes.js +114 -0
  129. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
  130. package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
  131. package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
  132. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  133. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
  135. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
  137. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
  138. package/dist/chunks/step.AsX2jAeL.js +268 -0
  139. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  140. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  141. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  142. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
  143. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
  144. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  145. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  146. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  147. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  148. package/dist/chunks/textarea.C-sBemuo.js +256 -0
  149. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
  150. package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
  151. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
  152. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  153. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  154. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  155. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
  159. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
  160. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  161. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  162. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  163. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  164. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
  165. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
  166. package/dist/code-snippet.js +1 -1
  167. package/dist/country.js +3 -3
  168. package/dist/dashboard-template.js +1 -1
  169. package/dist/dashed-underline.js +1 -1
  170. package/dist/data-grid-template.js +1 -1
  171. package/dist/data-grid.js +1 -1
  172. package/dist/date-picker.js +2 -2
  173. package/dist/date-range-picker.js +2 -2
  174. package/dist/draggable-handle.js +51 -44
  175. package/dist/draggable-handle.js.map +1 -1
  176. package/dist/dropdown.js +4 -4
  177. package/dist/file-uploader.js +1 -1
  178. package/dist/filter-bar.js +1 -1
  179. package/dist/form-layout.js +1 -1
  180. package/dist/header-with-views.js +1 -1
  181. package/dist/header.js +1 -1
  182. package/dist/index.js +205 -203
  183. package/dist/index.js.map +1 -1
  184. package/dist/info-icon.js +1 -1
  185. package/dist/input-field-password.js +1 -1
  186. package/dist/input-field-phone-number.js +1 -1
  187. package/dist/input-field.js +1 -1
  188. package/dist/input-time.js +5 -0
  189. package/dist/input-time.js.map +1 -0
  190. package/dist/inspector.js +1 -1
  191. package/dist/internal.js +12 -12
  192. package/dist/list.js +1 -1
  193. package/dist/menu.js +1 -1
  194. package/dist/modal-fullscreen.js +1 -1
  195. package/dist/modal.js +2 -2
  196. package/dist/pagination.js +1 -1
  197. package/dist/popover.js +1 -1
  198. package/dist/promo-banner.js +1 -1
  199. package/dist/radio-group.js +1 -1
  200. package/dist/rich-text-editor.js +1 -1
  201. package/dist/search-bar.js +2 -2
  202. package/dist/secondary-nav.js +1 -1
  203. package/dist/segmented-control.js +1 -1
  204. package/dist/selection-card.js +1 -1
  205. package/dist/sidepanel.js +1 -1
  206. package/dist/stepper.js +1 -1
  207. package/dist/structured-list.js +1 -1
  208. package/dist/summary-grid.js +1 -1
  209. package/dist/tabs.js +1 -1
  210. package/dist/tag.js +1 -1
  211. package/dist/textarea.js +1 -1
  212. package/dist/timeline.js +1 -1
  213. package/dist/toast.js +1 -1
  214. package/dist/tutorial.js +1 -1
  215. package/dist/web-types.json +1 -1
  216. package/package.json +4 -4
  217. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  218. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  219. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  220. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  221. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  222. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  223. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  224. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  225. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  226. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  227. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  228. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  229. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  230. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  231. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  232. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  233. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  234. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  235. package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
  236. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  237. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  238. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  239. package/dist/chunks/step.BlwoLfdw.js +0 -259
  240. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  241. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  242. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  243. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
@@ -1,150 +0,0 @@
1
- import { ref as a, onMounted as I, computed as u, defineComponent as T, openBlock as g, createElementBlock as R, createElementVNode as B, normalizeStyle as V, unref as e, renderSlot as N, normalizeClass as y, createVNode as p, withCtx as C, createCommentVNode as L } from "vue";
2
- import { B as k } from "./button.DWF7FSIw.js";
3
- import { u as z } from "./index.B875RXHM.js";
4
- import { C as P, a as A } from "./chevron-left.C_vPW7OR.js";
5
- import { o as W } from "./resize.Bqks3WUm.js";
6
- import { _ as M } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import "../assets/fixed-scroller.css";
8
- const $ = 1, w = 40, D = ({
9
- contentRef: n,
10
- containerRef: c,
11
- leftButtonRef: d,
12
- rightButtonRef: f
13
- }) => {
14
- const l = a(0), t = a(0), s = a(0), o = a(0);
15
- I(() => {
16
- W(c.value, () => {
17
- c.value && (o.value = c.value.offsetWidth, t.value = 0, l.value = 0);
18
- }), W(n.value, () => {
19
- s.value = n.value?.scrollWidth, s.value < o.value && (t.value = 0, l.value = 0);
20
- });
21
- });
22
- const v = u(() => {
23
- const r = d.value?.scrollWidth ? d.value.scrollWidth + w : 0, S = f.value?.scrollWidth ? f.value.scrollWidth + w : 0;
24
- return r + S;
25
- }), i = u(() => Math.ceil(s.value / o.value) ?? 0), h = u(() => {
26
- const r = new Array(i.value).fill(0);
27
- return r.forEach((S, m) => {
28
- if (m === 0)
29
- return;
30
- if (m === i.value - 1) {
31
- r[r.length - 1] = -(s.value - o.value + $);
32
- return;
33
- }
34
- const O = r[m - 1];
35
- r[m] = -(o.value + Math.abs(O) - v.value);
36
- }), r;
37
- }), b = u(() => t.value !== 0), _ = u(
38
- () => l.value >= -(s.value - o.value - 1)
39
- );
40
- return {
41
- offset: l,
42
- shouldShowLeftButton: b,
43
- shouldShowRightButton: _,
44
- // Methods
45
- scrollLeft: () => {
46
- t.value !== 0 && (t.value -= 1, l.value = h.value[t.value]);
47
- },
48
- scrollRight: () => {
49
- t.value !== i.value - 1 && (t.value += 1, l.value = h.value[t.value]);
50
- }
51
- };
52
- }, E = {
53
- "en-US": { scrollLeft: "Scroll left", scrollRight: "Scroll right" },
54
- "ja-JP": { scrollLeft: "左にスクロール", scrollRight: "右にスクロール" },
55
- "pt-BR": { scrollLeft: "Deslizar para esquerda", scrollRight: "Rolar à direita" }
56
- }, j = { class: "b-fixed-scroller__container" }, q = {
57
- i18n: { messages: E }
58
- }, G = /* @__PURE__ */ T({
59
- ...q,
60
- __name: "fixed-scroller",
61
- props: {
62
- /**
63
- * Applies the condensed style to the buttons
64
- */
65
- condensed: { type: Boolean, default: !1 },
66
- /**
67
- * Padding to be applied to the top of the scroller container
68
- */
69
- extraPaddingTop: { type: Number, default: 0 },
70
- /**
71
- * Padding to be applied to the top of the scroller container
72
- */
73
- centered: { type: Boolean, default: !1 }
74
- },
75
- setup(n) {
76
- const { t: c } = z({ messages: E }), d = a(null), f = a(null), l = a(null), t = a(null), s = n, { offset: o, shouldShowLeftButton: v, shouldShowRightButton: i, scrollLeft: h, scrollRight: b } = D({
77
- contentRef: d,
78
- containerRef: f,
79
- leftButtonRef: l,
80
- rightButtonRef: t
81
- }), _ = u(() => ({
82
- "b-fixed-scroller__button--centered": s.centered
83
- }));
84
- return (x, F) => (g(), R("div", {
85
- ref_key: "fixedScrollerRef",
86
- ref: f,
87
- class: "b-fixed-scroller"
88
- }, [
89
- B("div", j, [
90
- B("div", {
91
- ref_key: "contentRef",
92
- ref: d,
93
- class: "b-fixed-scroller__content",
94
- style: V({
95
- transform: `translateX(${e(o)}px)`,
96
- paddingTop: e(v) || e(i) ? `${n.extraPaddingTop}px` : null
97
- })
98
- }, [
99
- N(x.$slots, "default", {}, void 0, !0)
100
- ], 4)
101
- ]),
102
- e(v) ? (g(), R("div", {
103
- key: 0,
104
- ref_key: "leftButtonRef",
105
- ref: l,
106
- class: y(["b-fixed-scroller__left b-fixed-scroller__button", _.value])
107
- }, [
108
- p(e(k), {
109
- variant: "secondary",
110
- "aria-label": e(c)("scrollLeft"),
111
- condensed: n.condensed,
112
- onClick: e(h)
113
- }, {
114
- iconLeft: C(() => [
115
- p(e(P), {
116
- "svg-title": "checked",
117
- "aria-hidden": "true"
118
- })
119
- ]),
120
- _: 1
121
- }, 8, ["aria-label", "condensed", "onClick"])
122
- ], 2)) : L("", !0),
123
- e(i) ? (g(), R("div", {
124
- key: 1,
125
- ref_key: "rightButtonRef",
126
- ref: t,
127
- class: y(["b-fixed-scroller__right b-fixed-scroller__button", _.value])
128
- }, [
129
- p(e(k), {
130
- variant: "secondary",
131
- "aria-label": e(c)("scrollRight"),
132
- condensed: n.condensed,
133
- onClick: e(b)
134
- }, {
135
- iconLeft: C(() => [
136
- p(e(A), {
137
- "svg-title": "checked",
138
- "aria-hidden": "true"
139
- })
140
- ]),
141
- _: 1
142
- }, 8, ["aria-label", "condensed", "onClick"])
143
- ], 2)) : L("", !0)
144
- ], 512));
145
- }
146
- }), Y = /* @__PURE__ */ M(G, [["__scopeId", "data-v-e829dae2"]]);
147
- export {
148
- Y as F
149
- };
150
- //# sourceMappingURL=fixed-scroller.DtkaGyMD.js.map
@@ -1,230 +0,0 @@
1
- import { defineComponent as v, useSlots as $, computed as u, provide as N, toRef as R, openBlock as r, createBlock as y, resolveDynamicComponent as k, withCtx as d, unref as s, renderSlot as a, createCommentVNode as m, createElementBlock as p, createElementVNode as S, normalizeClass as T, createVNode as q, Fragment as C, createTextVNode as E, toDisplayString as A } from "vue";
2
- import { B as L } from "./alert.C_8-VNi_.js";
3
- import { F as D } from "./form-layout.types.bZW9iR6_.js";
4
- import { u as B } from "./use-has-slot.CyMiImRQ.js";
5
- import { _ as g } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { B as b, a as P } from "./typography.B3J6_tYk.js";
7
- import { u as U } from "./index.B875RXHM.js";
8
- import "../assets/form-layout-title.css";
9
- const V = {
10
- key: 1,
11
- class: "b-form-layout__actions-container"
12
- }, w = { class: "b-form-layout__actions" }, G = { class: "b-form-layout__actions" }, Y = {}, j = /* @__PURE__ */ v({
13
- ...Y,
14
- __name: "form-layout",
15
- props: {
16
- /**
17
- * Renders the form layout as an HTML `form`
18
- */
19
- form: { type: Boolean, default: !1 },
20
- /**
21
- * Sets the state of the form and its fields to
22
- * a read only status.
23
- */
24
- loading: { type: Boolean, default: !1 }
25
- },
26
- emits: ["submit"],
27
- setup(t, { emit: i }) {
28
- const o = $(), e = B(o), n = i, l = t, f = u(() => l.form ? "form" : "div"), _ = u(() => e("actions-left") || e("actions-right"));
29
- return N(D, R(l, "loading")), (c, F) => (r(), y(k(f.value), {
30
- class: "b-form-layout",
31
- role: "form",
32
- onSubmit: F[0] || (F[0] = (I) => n("submit", I))
33
- }, {
34
- default: d(() => [
35
- s(e)("error-message") ? (r(), y(s(L), {
36
- key: 0,
37
- class: "b-form-layout__error-message",
38
- type: "critical"
39
- }, {
40
- description: d(() => [
41
- a(c.$slots, "error-message", {}, void 0, !0)
42
- ]),
43
- _: 3
44
- })) : m("", !0),
45
- a(c.$slots, "default", {}, void 0, !0),
46
- _.value ? (r(), p("div", V, [
47
- S("div", w, [
48
- a(c.$slots, "actions-left", {}, void 0, !0)
49
- ]),
50
- S("div", G, [
51
- a(c.$slots, "actions-right", {}, void 0, !0)
52
- ])
53
- ])) : m("", !0)
54
- ]),
55
- _: 3
56
- }, 32));
57
- }
58
- }), rt = /* @__PURE__ */ g(j, [["__scopeId", "data-v-c32500f3"]]), z = ["warning", "critical", "highlight", "success"], H = { class: "b-form-layout-field-tip" }, J = {}, K = /* @__PURE__ */ v({
59
- ...J,
60
- __name: "form-layout-field-tip",
61
- props: {
62
- /**
63
- * Type of a alert; set a distinctive icon and color. Defaults to highlight.
64
- * @values highlight, success, critical, warning
65
- */
66
- type: {
67
- type: String,
68
- default: "highlight",
69
- validator: (t) => z.includes(t)
70
- },
71
- /**
72
- * Unique identifier to the form field. Used for accessibility.
73
- */
74
- id: {
75
- type: String,
76
- default: void 0
77
- }
78
- },
79
- setup(t) {
80
- const i = $(), o = B(i);
81
- return (e, n) => (r(), p("div", H, [
82
- a(e.$slots, "default", {}, void 0, !0),
83
- s(o)("message") ? (r(), y(s(L), {
84
- key: 0,
85
- id: t.id,
86
- variant: "tip",
87
- type: t.type
88
- }, {
89
- description: d(() => [
90
- a(e.$slots, "message", {}, void 0, !0)
91
- ]),
92
- _: 3
93
- }, 8, ["id", "type"])) : m("", !0)
94
- ]));
95
- }
96
- }), lt = /* @__PURE__ */ g(K, [["__scopeId", "data-v-4cc6ef4d"]]), h = [
97
- "100",
98
- "50",
99
- "33",
100
- "25",
101
- "66-33",
102
- "33-66",
103
- "75-25",
104
- "25-75",
105
- "50-50",
106
- "33-33-33"
107
- ], M = {}, Q = /* @__PURE__ */ v({
108
- ...M,
109
- __name: "form-layout-group",
110
- props: {
111
- /**
112
- * The layout of the pair group of components.
113
- * This will render the components within the width of the proportions.
114
- * Only two colums are available.
115
- *
116
- * If only one value is entered, then it will assume there's only one child in the group.
117
- * If two values are entered, the first value will be use for the first child and the second
118
- * value for the second child.
119
- *
120
- * If the value entered is not listed in the example
121
- * list below it will use 100% by default.
122
- * @example
123
- * '33-33-33'
124
- * '50-50'
125
- * '25-75'
126
- * '75-25'
127
- * '33-66'
128
- * '66-33'
129
- * '25'
130
- * '33'
131
- * '50'
132
- * '100'
133
- */
134
- layout: {
135
- type: String,
136
- default: "100",
137
- validator: (t) => h.includes(t)
138
- }
139
- },
140
- setup(t) {
141
- const o = t, e = u(
142
- () => h.includes(o.layout) ? o.layout : 100
143
- ), n = u(() => ({
144
- // Transform into column if the layout is unsupported
145
- "b-form-layout-group--column": !h.includes(o.layout),
146
- // Assings the correct layout class
147
- [`b-form-layout-group--${e.value}`]: !0
148
- }));
149
- return (l, f) => (r(), p("div", {
150
- class: T(["b-form-layout-group", n.value])
151
- }, [
152
- a(l.$slots, "default", {}, void 0, !0)
153
- ], 2));
154
- }
155
- }), it = /* @__PURE__ */ g(Q, [["__scopeId", "data-v-42a0b8a1"]]), O = {
156
- "en-US": { requiredFields: "All fields are required." }
157
- }, W = {
158
- name: "bento-form-layout-title",
159
- i18n: { messages: O }
160
- }, X = /* @__PURE__ */ v({
161
- ...W,
162
- props: {
163
- /**
164
- * Defines if the Form Layout title is
165
- * a "section" or a "subsection".
166
- * Default is "section" (false). Turn into "true" for "subsection"
167
- */
168
- subsection: {
169
- type: Boolean,
170
- default: !1
171
- },
172
- /**
173
- * Sets the HTML DOM element.
174
- * @values h1, h2, h3, h4, h5, h6, div, p, span
175
- */
176
- el: {
177
- type: b.props.el.type,
178
- required: !0,
179
- validator: (t) => Object.values(P).includes(t)
180
- },
181
- /**
182
- * Defines if the Form Layout title displays
183
- * a message indicating that all fields are required.
184
- */
185
- allFieldsRequired: {
186
- type: Boolean,
187
- default: !1
188
- }
189
- },
190
- setup(t) {
191
- const i = $(), { t: o } = U({ messages: O }), e = t, n = u(() => !e.subsection), l = B(i), f = u(() => ({
192
- "b-form-layout-title--subsection": e.subsection
193
- }));
194
- return (_, c) => (r(), p("div", {
195
- class: T(["b-form-layout-title", f.value])
196
- }, [
197
- q(s(b), {
198
- el: t.el,
199
- variant: "title",
200
- medium: n.value
201
- }, {
202
- default: d(() => [
203
- a(_.$slots, "default", {}, void 0, !0)
204
- ]),
205
- _: 3
206
- }, 8, ["el", "medium"]),
207
- s(l)("description") || t.allFieldsRequired ? (r(), y(s(b), {
208
- key: 0,
209
- class: "b-form-layout-title__description",
210
- el: "span",
211
- wide: ""
212
- }, {
213
- default: d(() => [
214
- a(_.$slots, "description", {}, void 0, !0),
215
- t.allFieldsRequired ? (r(), p(C, { key: 0 }, [
216
- E(A(s(l)("description") ? ` ${s(o)("requiredFields")}` : s(o)("requiredFields")), 1)
217
- ], 64)) : m("", !0)
218
- ]),
219
- _: 3
220
- })) : m("", !0)
221
- ], 2));
222
- }
223
- }), nt = /* @__PURE__ */ g(X, [["__scopeId", "data-v-e8ed8f33"]]);
224
- export {
225
- lt as a,
226
- it as b,
227
- nt as c,
228
- rt as f
229
- };
230
- //# sourceMappingURL=form-layout-title.DW5Kg1rh.js.map