@adyen/bento-vue2 1.3.0 → 1.4.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 (363) hide show
  1. package/dist/@types/components.d.ts +8 -4
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
  3. package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
  5. package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -51
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
  7. package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
  8. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
  9. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
  10. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +161 -150
  11. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
  12. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
  13. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +77 -15
  15. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
  16. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -6
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
  18. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +36 -11
  20. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
  21. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +2 -22
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
  24. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
  25. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +326 -14
  27. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
  28. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1 -21
  29. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
  30. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +1 -21
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +277 -104
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +5 -5
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +5 -6
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +5 -5
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +5 -5
  42. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  43. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
  44. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  46. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  47. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +0 -26
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -10
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
  58. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
  59. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +3 -0
  61. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  62. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  64. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  65. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  67. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +50 -47
  69. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  70. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  71. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  72. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +1 -1
  73. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  74. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  75. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  76. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
  77. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
  78. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  79. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  80. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  81. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  82. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  83. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  84. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  85. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  86. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  87. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  88. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  89. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  90. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  93. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  94. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  95. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  96. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  97. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  98. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  99. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  100. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  101. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -4
  102. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
  103. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  104. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  105. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  106. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  109. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  110. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  111. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  112. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  113. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  114. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  115. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  116. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  117. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  118. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -7
  119. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
  120. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
  121. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  122. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  123. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  124. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  125. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  126. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +4 -1
  127. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  128. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  129. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  130. package/dist/accordion.js +69 -177
  131. package/dist/accordion.js.map +1 -1
  132. package/dist/alert.js +57 -60
  133. package/dist/alert.js.map +1 -1
  134. package/dist/assets/base-button.css +1 -1
  135. package/dist/assets/base-modal.css +1 -0
  136. package/dist/assets/button.css +1 -1
  137. package/dist/assets/calendar.css +1 -1
  138. package/dist/assets/checkbox.css +1 -1
  139. package/dist/assets/chevron-up.css +1 -0
  140. package/dist/assets/controls-group.css +1 -1
  141. package/dist/assets/copy.css +1 -1
  142. package/dist/assets/dropdown-default-textbox.css +1 -1
  143. package/dist/assets/dropdown.css +1 -1
  144. package/dist/assets/error-message.css +1 -1
  145. package/dist/assets/footer-actions.css +1 -1
  146. package/dist/assets/index.css +1 -1
  147. package/dist/assets/index10.css +1 -1
  148. package/dist/assets/index11.css +1 -1
  149. package/dist/assets/index12.css +1 -1
  150. package/dist/assets/index13.css +1 -1
  151. package/dist/assets/index14.css +1 -1
  152. package/dist/assets/index15.css +1 -1
  153. package/dist/assets/index16.css +1 -1
  154. package/dist/assets/index17.css +1 -1
  155. package/dist/assets/index18.css +1 -1
  156. package/dist/assets/index19.css +1 -1
  157. package/dist/assets/index2.css +1 -1
  158. package/dist/assets/index20.css +1 -1
  159. package/dist/assets/index21.css +1 -1
  160. package/dist/assets/index22.css +1 -1
  161. package/dist/assets/index23.css +1 -1
  162. package/dist/assets/index24.css +1 -1
  163. package/dist/assets/index25.css +1 -1
  164. package/dist/assets/index26.css +1 -1
  165. package/dist/assets/index27.css +1 -1
  166. package/dist/assets/index28.css +1 -1
  167. package/dist/assets/index29.css +1 -1
  168. package/dist/assets/index3.css +1 -1
  169. package/dist/assets/index30.css +1 -1
  170. package/dist/assets/index31.css +1 -1
  171. package/dist/assets/index32.css +1 -1
  172. package/dist/assets/index33.css +1 -1
  173. package/dist/assets/index34.css +1 -1
  174. package/dist/assets/index35.css +1 -1
  175. package/dist/assets/index36.css +1 -1
  176. package/dist/assets/index37.css +1 -1
  177. package/dist/assets/index38.css +1 -1
  178. package/dist/assets/index39.css +1 -1
  179. package/dist/assets/index4.css +1 -1
  180. package/dist/assets/index40.css +1 -1
  181. package/dist/assets/index41.css +1 -1
  182. package/dist/assets/index42.css +1 -0
  183. package/dist/assets/index5.css +1 -1
  184. package/dist/assets/index6.css +1 -1
  185. package/dist/assets/index7.css +1 -1
  186. package/dist/assets/index8.css +1 -1
  187. package/dist/assets/index9.css +1 -1
  188. package/dist/assets/listbox-option-tag.css +1 -1
  189. package/dist/assets/listbox.css +1 -1
  190. package/dist/assets/loading-button.css +1 -1
  191. package/dist/assets/tooltip.css +1 -1
  192. package/dist/avatar-image.js +1 -1
  193. package/dist/badge.js +2 -2
  194. package/dist/button.js +110 -12
  195. package/dist/button.js.map +1 -1
  196. package/dist/card.js +66 -67
  197. package/dist/card.js.map +1 -1
  198. package/dist/checkbox.js +27 -26
  199. package/dist/checkbox.js.map +1 -1
  200. package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
  201. package/dist/chunks/base-button.bd8fa976.js.map +1 -0
  202. package/dist/chunks/base-modal.a365f260.js +207 -0
  203. package/dist/chunks/base-modal.a365f260.js.map +1 -0
  204. package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
  205. package/dist/chunks/button.fb307df3.js.map +1 -0
  206. package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
  207. package/dist/chunks/calendar.79ea42c1.js.map +1 -0
  208. package/dist/chunks/checkbox.c7d791ed.js +173 -0
  209. package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
  210. package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
  211. package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
  212. package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
  213. package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
  214. package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
  215. package/dist/chunks/copy.ac796536.js.map +1 -0
  216. package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
  217. package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
  218. package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
  219. package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
  220. package/dist/chunks/error-message.3b3c33d4.js +47 -0
  221. package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
  222. package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
  223. package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
  224. package/dist/chunks/get-slot-text.c1114034.js +9 -0
  225. package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
  226. package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
  227. package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
  228. package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
  229. package/dist/chunks/index.45295dd3.js.map +1 -0
  230. package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
  231. package/dist/chunks/index.88ff49c2.js.map +1 -0
  232. package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
  233. package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
  234. package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
  235. package/dist/chunks/index.bd734551.js.map +1 -0
  236. package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
  237. package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
  238. package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
  239. package/dist/chunks/index.c8f81673.js.map +1 -0
  240. package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
  241. package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
  242. package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
  243. package/dist/chunks/listbox.e792d2d6.js.map +1 -0
  244. package/dist/chunks/loading-button.429c8416.js +86 -0
  245. package/dist/chunks/loading-button.429c8416.js.map +1 -0
  246. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  247. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  248. package/dist/chunks/{tooltip.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
  249. package/dist/chunks/tooltip.a47ace87.js.map +1 -0
  250. package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
  251. package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
  252. package/dist/chunks/use-has-slot.6052d56a.js +6 -0
  253. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
  254. package/dist/code-snippet.js +469 -413
  255. package/dist/code-snippet.js.map +1 -1
  256. package/dist/country.js +492 -494
  257. package/dist/country.js.map +1 -1
  258. package/dist/currency.js +32 -35
  259. package/dist/currency.js.map +1 -1
  260. package/dist/data-grid.js +595 -603
  261. package/dist/data-grid.js.map +1 -1
  262. package/dist/date-picker.js +76 -80
  263. package/dist/date-picker.js.map +1 -1
  264. package/dist/date-range-picker.js +2 -2
  265. package/dist/date.js +1 -1
  266. package/dist/divider.js +1 -1
  267. package/dist/dropdown.js +37 -39
  268. package/dist/dropdown.js.map +1 -1
  269. package/dist/empty-state.js +134 -0
  270. package/dist/empty-state.js.map +1 -0
  271. package/dist/filter-bar.js +648 -638
  272. package/dist/filter-bar.js.map +1 -1
  273. package/dist/focus-trap.js +1 -1
  274. package/dist/form-layout.js +64 -64
  275. package/dist/form-layout.js.map +1 -1
  276. package/dist/header.js +61 -63
  277. package/dist/header.js.map +1 -1
  278. package/dist/image.js +82 -0
  279. package/dist/image.js.map +1 -0
  280. package/dist/index.js +216 -205
  281. package/dist/index.js.map +1 -1
  282. package/dist/info-icon.js +2 -2
  283. package/dist/input-field.js +99 -123
  284. package/dist/input-field.js.map +1 -1
  285. package/dist/internal.js +7 -7
  286. package/dist/link.js +27 -26
  287. package/dist/link.js.map +1 -1
  288. package/dist/loading-indicator.js +1 -1
  289. package/dist/menu.js +96 -104
  290. package/dist/menu.js.map +1 -1
  291. package/dist/modal.js +111 -264
  292. package/dist/modal.js.map +1 -1
  293. package/dist/pagination.js +148 -145
  294. package/dist/pagination.js.map +1 -1
  295. package/dist/payment-method.js +16 -18
  296. package/dist/payment-method.js.map +1 -1
  297. package/dist/popover.js +58 -54
  298. package/dist/popover.js.map +1 -1
  299. package/dist/popper-container.js +13 -17
  300. package/dist/popper-container.js.map +1 -1
  301. package/dist/radio-group.js +71 -72
  302. package/dist/radio-group.js.map +1 -1
  303. package/dist/search-bar.js +54 -66
  304. package/dist/search-bar.js.map +1 -1
  305. package/dist/segmented-control.js +68 -55
  306. package/dist/segmented-control.js.map +1 -1
  307. package/dist/sidepanel.js +65 -64
  308. package/dist/sidepanel.js.map +1 -1
  309. package/dist/status.js +20 -23
  310. package/dist/status.js.map +1 -1
  311. package/dist/structured-list.js +1 -1
  312. package/dist/summary-grid.js +110 -141
  313. package/dist/summary-grid.js.map +1 -1
  314. package/dist/tabs.js +68 -60
  315. package/dist/tabs.js.map +1 -1
  316. package/dist/tag.js +23 -26
  317. package/dist/tag.js.map +1 -1
  318. package/dist/textarea.js +97 -96
  319. package/dist/textarea.js.map +1 -1
  320. package/dist/timeline.js +125 -125
  321. package/dist/timeline.js.map +1 -1
  322. package/dist/toast.js +44 -48
  323. package/dist/toast.js.map +1 -1
  324. package/dist/toggle.js +54 -52
  325. package/dist/toggle.js.map +1 -1
  326. package/dist/typography.js +1 -1
  327. package/dist/web-types.json +651 -397
  328. package/package.json +9 -12
  329. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  330. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  331. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  332. package/dist/assets/button-actions.css +0 -1
  333. package/dist/assets/chevron-down.css +0 -1
  334. package/dist/chunks/base-button.98379576.js.map +0 -1
  335. package/dist/chunks/button-actions.bd397c79.js +0 -104
  336. package/dist/chunks/button-actions.bd397c79.js.map +0 -1
  337. package/dist/chunks/button.d0c9527d.js.map +0 -1
  338. package/dist/chunks/calendar.0ae43a96.js.map +0 -1
  339. package/dist/chunks/checkbox.f8457c93.js +0 -164
  340. package/dist/chunks/checkbox.f8457c93.js.map +0 -1
  341. package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
  342. package/dist/chunks/controls-group.b827382b.js.map +0 -1
  343. package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
  344. package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
  345. package/dist/chunks/dropdown.c05678d0.js.map +0 -1
  346. package/dist/chunks/error-message.0433b539.js +0 -47
  347. package/dist/chunks/error-message.0433b539.js.map +0 -1
  348. package/dist/chunks/footer-actions.67642347.js.map +0 -1
  349. package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
  350. package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
  351. package/dist/chunks/index.0cf00b47.js.map +0 -1
  352. package/dist/chunks/index.10aaf539.js.map +0 -1
  353. package/dist/chunks/index.56858f4e.js.map +0 -1
  354. package/dist/chunks/index.f0f8ed98.js.map +0 -1
  355. package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
  356. package/dist/chunks/listbox.116ed0c1.js.map +0 -1
  357. package/dist/chunks/loading-button.1c201f87.js +0 -84
  358. package/dist/chunks/loading-button.1c201f87.js.map +0 -1
  359. package/dist/chunks/tooltip.2aff4fa6.js.map +0 -1
  360. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  362. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  363. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/modal.js CHANGED
@@ -1,167 +1,14 @@
1
- import { defineComponent as S, useAttrs as M, ref as N, computed as s, watch as P, onMounted as D, toRefs as I } from "vue";
2
- import { B as G, a as L } from "./chunks/button.d0c9527d.js";
3
- import { B as z, a as F, b as V } from "./chunks/index.56858f4e.js";
4
- import { BentoDivider as $ } from "./divider.js";
5
- import { B as q } from "./chunks/index.133e4da0.js";
6
- import { u as O } from "./chunks/use-has-slot.068222e6.js";
7
- import { u as w } from "./chunks/i18n.155748d6.js";
8
- import { C as U } from "./chunks/cross.a2cadac5.js";
9
- import { G as W, a as K } from "./chunks/grid-layout.73f23b1b.js";
10
- import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
11
- import { F as j } from "./chunks/footer-actions.67642347.js";
12
- import { B as Y, c as H } from "./chunks/button-actions.bd397c79.js";
13
- import "./assets/index17.css";
14
- var B = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(B || {}), _ = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(_ || {}), m = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(m || {}), h = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(h || {}), c = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(c || {}), i = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(i || {});
15
- const Q = {
16
- "en-US": {
17
- ariaLabelFallback: "modal"
18
- }
19
- }, J = S({
20
- i18n: { messages: Q },
21
- name: "base-modal",
22
- components: { CrossIcon: U, BentoTypography: z, BentoButton: G, BentoDivider: $, BentoFocusTrap: q, GridLayout: W },
23
- props: {
24
- /**
25
- * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.
26
- */
27
- columnsSize: {
28
- type: String,
29
- default: m.SMALLER
30
- },
31
- /**
32
- * If provided, manages the padding of the whole modal container
33
- */
34
- customPadding: { type: String, default: null },
35
- /**
36
- * Hides a cross icon on the right side of the title
37
- */
38
- hideCloseButton: { type: Boolean, required: !0 },
39
- /**
40
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
41
- */
42
- initiallyOpen: { type: Boolean, default: !1 },
43
- /**
44
- * If set to true, it allows the modal to be closed by clicking outside of it
45
- */
46
- isDismissible: { type: Boolean, required: !0 },
47
- /**
48
- * Controls the modal's state from the outside. Set it to true to open the modal
49
- */
50
- isOpen: { type: Boolean, required: !0 },
51
- /**
52
- * Defines whether the modal will be an alert modal
53
- */
54
- modalRole: { type: String, default: h.DIALOG },
55
- /**
56
- * Allows the inner elments to overflow the dialog
57
- */
58
- overflowVisible: { type: Boolean, default: !1 },
59
- /**
60
- * Sets the width of the modal
61
- */
62
- size: {
63
- type: String,
64
- default: _.SMALL
65
- },
66
- /**
67
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
68
- */
69
- withColumnLayout: { type: Boolean, default: !1 }
70
- },
71
- emits: [i.CLOSE_MODAL],
72
- setup(e, { slots: t, emit: o }) {
73
- const { t: a } = w(), d = M(), n = O(t), l = N(null), v = s(() => {
74
- if (!e.customPadding)
75
- return {};
76
- const f = {
77
- paddingLeft: e.customPadding,
78
- paddingRight: e.customPadding
79
- }, E = { ...f, paddingTop: void 0, paddingBottom: void 0 };
80
- return n("default") || (E.paddingTop = e.customPadding), n("actions") || (E.paddingBottom = e.customPadding), {
81
- header: { ...f, paddingTop: e.customPadding },
82
- content: E,
83
- actions: { ...f, paddingBottom: e.customPadding }
84
- };
85
- }), y = s(
86
- () => d["aria-label"] ?? a("ariaLabelFallback")
87
- ), p = s(() => e.withColumnLayout && e.size === _.LARGE), b = () => {
88
- l.value.showModal();
89
- }, g = () => {
90
- o(i.CLOSE_MODAL);
91
- }, r = () => {
92
- l.value.close(), g();
93
- }, u = () => {
94
- r();
95
- }, C = ({ target: f }) => {
96
- f && f.tagName === h.DIALOG.toUpperCase() && r();
97
- }, k = s(() => ({
98
- [`b-modal-base__container--${e.size}`]: e.size,
99
- "b-modal-base__container--visible": e.isOpen,
100
- "b-modal-base__container--overflow-visible": e.overflowVisible,
101
- "b-modal-base__container--column-layout": p.value
102
- })), x = s(() => ({
103
- "b-modal-base__content--column-layout": p.value,
104
- "b-modal-base__content--with-header": n("default"),
105
- "b-modal-base__content--with-actions": n("actions")
106
- })), R = s(() => e.columnsSize === m.SMALLER ? [{ small: 4, medium: 4, large: 4 }] : e.columnsSize === m.BIGGER ? [{ small: 8, medium: 8, large: 8 }] : [{ small: 6, medium: 6, large: 6 }]);
107
- return P(
108
- () => [e.isOpen, l.value],
109
- () => {
110
- e.isOpen && l.value ? b() : l.value && r();
111
- },
112
- { immediate: !0 }
113
- ), D(() => {
114
- e.isOpen && l.value && b();
115
- }), {
116
- // Refs
117
- modal: l,
118
- computedAriaLabel: y,
119
- // Handling the state
120
- openModal: b,
121
- closeModalOnClickOutside: C,
122
- // Methods
123
- onCloseButtonClick: u,
124
- hasSlot: n,
125
- emitCloseEvent: g,
126
- t: a,
127
- // Styles
128
- modalConditionalClasses: k,
129
- modalContentConditionalClasses: x,
130
- customPaddingStyles: v,
131
- hasColumnLayout: p,
132
- computedColumnWidth: R,
133
- // Enums
134
- BentoButtonVariant: L,
135
- BentoTypographyElement: F,
136
- BentoTypographyVariant: V,
137
- GridLayoutContainerType: K
138
- };
139
- }
140
- });
141
- var X = function() {
142
- var t = this, o = t._self._c;
143
- return t._self._setupProxy, o("div", { staticClass: "b-modal-base" }, [o("dialog", { ref: "modal", staticClass: "b-modal-base__container", class: t.modalConditionalClasses, attrs: { role: t.modalRole, "aria-label": t.computedAriaLabel, open: t.initiallyOpen }, on: { click: function(a) {
144
- t.isDismissible && t.closeModalOnClickOutside(a);
145
- }, keydown: function(a) {
146
- return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : t.emitCloseEvent.apply(null, arguments);
147
- } } }, [o("bento-focus-trap", [o("div", { staticClass: "b-modal-base__wrapper" }, [t.hasSlot("default") || !t.hideCloseButton ? o("div", { staticClass: "b-modal-base__header-container", style: t.customPaddingStyles.header }, [o("div", { staticClass: "b-modal-base__header" }, [o("bento-typography", { staticClass: "b-modal-base__title", attrs: { "aria-label": "base modal title", el: t.BentoTypographyElement.SPAN, variant: t.BentoTypographyVariant.TITLE, stronger: "" } }, [t.hasSlot("default") ? t._t("default") : t._e()], 2), t.hideCloseButton ? t._e() : o("bento-button", { staticClass: "b-modal-base__close-button", attrs: { variant: t.BentoButtonVariant.TERTIARY, type: "button" }, on: { click: t.onCloseButtonClick } }, [o("cross-icon", { attrs: { "svg-title": "close" } })], 1)], 1), t.hasColumnLayout ? o("bento-divider", { staticClass: "b-modal-base__divider" }) : t._e()], 1) : t._e(), o("div", { staticClass: "b-modal-base__content", class: t.modalContentConditionalClasses, style: t.customPaddingStyles.content }, [t.hasSlot("content") ? o("bento-typography", { attrs: { "aria-label": "base modal content", el: t.BentoTypographyElement.DIV, variant: t.BentoTypographyVariant.BODY, stronger: "" } }, [t.hasColumnLayout ? o("grid-layout", { staticClass: "b-modal-base__grid", attrs: { "column-width": t.computedColumnWidth, "container-type": t.GridLayoutContainerType.NORMAL }, scopedSlots: t._u([{ key: "col-1", fn: function() {
148
- return [t._t("content-col-1")];
149
- }, proxy: !0 }, { key: "col-2", fn: function() {
150
- return [t._t("content-col-2")];
151
- }, proxy: !0 }], null, !0) }) : t._t("content")], 2) : t._e()], 1), t.hasSlot("actions") ? o("div", { staticClass: "b-modal-base__actions-container", style: t.customPaddingStyles.actions }, [t.hasColumnLayout ? o("bento-divider", { staticClass: "b-modal-base__divider" }) : t._e(), o("div", { staticClass: "b-modal-base__actions", attrs: { "aria-label": "modal actions" } }, [t._t("actions")], 2)], 1) : t._e()])])], 1)]);
152
- }, Z = [], tt = /* @__PURE__ */ A(
153
- J,
154
- X,
155
- Z,
156
- !1,
157
- null,
158
- "68c26733",
159
- null,
160
- null
161
- );
162
- const T = tt.exports, et = S({
1
+ import { defineComponent as _, onMounted as C, toRefs as M, computed as f, useAttrs as h, watch as E } from "vue";
2
+ import { f as A, b as p, e as u, d as i, c as w, B as y, a as S } from "./chunks/base-modal.a365f260.js";
3
+ import { u as v } from "./chunks/use-has-slot.6052d56a.js";
4
+ import { F as x } from "./chunks/footer-actions.f02e8699.js";
5
+ import { n as b } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
+ import { B } from "./chunks/button.fb307df3.js";
7
+ import { u as T } from "./chunks/i18n.155748d6.js";
8
+ import { BentoButtonActions as k } from "./button.js";
9
+ const N = _({
163
10
  name: "bento-modal-default",
164
- components: { BaseModal: T, FooterActions: j },
11
+ components: { BaseModal: A, FooterActions: x },
165
12
  props: {
166
13
  /**
167
14
  * Adds a cross icon on the right side of the alert
@@ -220,7 +67,7 @@ const T = tt.exports, et = S({
220
67
  */
221
68
  columnsSize: {
222
69
  type: String,
223
- default: m.SMALLER
70
+ default: p.SMALLER
224
71
  },
225
72
  /**
226
73
  * List of actions that will be used to render the buttons.
@@ -276,24 +123,24 @@ const T = tt.exports, et = S({
276
123
  default: !1
277
124
  }
278
125
  },
279
- emits: [i.CLOSE_MODAL],
280
- setup(e, { slots: t, emit: o }) {
281
- const a = O(t), d = () => {
282
- o(i.CLOSE_MODAL);
126
+ emits: [u.CLOSE_MODAL],
127
+ setup(e, { slots: t, emit: n }) {
128
+ const l = v(t), r = () => {
129
+ n(u.CLOSE_MODAL);
283
130
  };
284
- return D(() => {
285
- if (!(a("content") || a("content-col-1") && a("content-col-2")))
131
+ return C(() => {
132
+ if (!(l("content") || l("content-col-1") && l("content-col-2")))
286
133
  throw new Error("Bento Modal default variant requires content slot or column slots");
287
134
  }), {
288
135
  // Methods
289
- onCloseModal: d,
290
- hasSlot: a
136
+ onCloseModal: r,
137
+ hasSlot: l
291
138
  };
292
139
  }
293
140
  });
294
- var ot = function() {
295
- var t = this, o = t._self._c;
296
- return t._self._setupProxy, o("base-modal", t._b({ staticClass: "b-modal-default", attrs: { size: t.size, "hide-close-button": t.hideCloseButton, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
141
+ var R = function() {
142
+ var t = this, n = t._self._c;
143
+ return t._self._setupProxy, n("base-modal", t._b({ staticClass: "b-modal-default", attrs: { actions: t.actions, size: t.size, "hide-close-button": t.hideCloseButton, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
297
144
  return [t._t("default")];
298
145
  }, proxy: !0 } : null, { key: "content-col-1", fn: function() {
299
146
  return [t._t("content-col-1")];
@@ -303,27 +150,27 @@ var ot = function() {
303
150
  return [t._t("content")];
304
151
  }, proxy: !0 }, t.actions ? { key: "actions", fn: function() {
305
152
  return [t._t("actions", function() {
306
- return [o("footer-actions", { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
153
+ return [n("footer-actions", { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
307
154
  })];
308
155
  }, proxy: !0 } : null], null, !0) }, "base-modal", t.$attrs, !1));
309
- }, nt = [], at = /* @__PURE__ */ A(
310
- et,
311
- ot,
312
- nt,
156
+ }, z = [], V = /* @__PURE__ */ b(
157
+ N,
158
+ R,
159
+ z,
313
160
  !1,
314
161
  null,
315
162
  null,
316
163
  null,
317
164
  null
318
165
  );
319
- const lt = at.exports, st = {
166
+ const P = V.exports, $ = {
320
167
  "en-US": {
321
168
  okButtonText: "OK"
322
169
  }
323
- }, it = S({
324
- i18n: { messages: st },
170
+ }, F = _({
171
+ i18n: { messages: $ },
325
172
  name: "bento-modal-dialog",
326
- components: { BaseModal: T, BentoButtonActions: Y },
173
+ components: { BaseModal: A, BentoButtonActions: k },
327
174
  props: {
328
175
  /**
329
176
  * Controls the modal's state from the outside. Set it to true to open the modal
@@ -393,88 +240,84 @@ const lt = at.exports, st = {
393
240
  default: !1
394
241
  }
395
242
  },
396
- emits: [i.CLOSE_MODAL],
397
- setup(e, { slots: t, emit: o }) {
398
- const { t: a } = w(), d = O(t), { actions: n, dialogType: l } = I(e), v = () => {
399
- o(i.CLOSE_MODAL);
400
- }, y = () => {
401
- v();
402
- }, p = s(() => [
243
+ emits: [u.CLOSE_MODAL],
244
+ setup(e, { slots: t, emit: n }) {
245
+ const { t: l } = T(), r = v(t), { actions: o, dialogType: a } = M(e), c = () => {
246
+ n(u.CLOSE_MODAL);
247
+ }, m = () => {
248
+ c();
249
+ }, L = f(() => [
403
250
  {
404
- title: a("okButtonText"),
405
- event: y,
406
- variant: L.SECONDARY
251
+ title: l("okButtonText"),
252
+ event: m,
253
+ variant: B.SECONDARY
407
254
  }
408
- ]), b = s(() => {
409
- var C;
410
- const r = {
255
+ ]), O = f(() => {
256
+ var g;
257
+ const d = {
411
258
  title: "Cancel",
412
- event: y
413
- }, u = (C = n == null ? void 0 : n.value) == null ? void 0 : C[0];
414
- return l.value === c.DESTRUCTIVE ? u.critical = !0 : l.value === c.INFO && (u.variant = L.SECONDARY), [u, r];
415
- }), g = s(() => ({
416
- [`b-modal-dialog--${l.value}`]: l.value
259
+ event: m
260
+ }, s = (g = o == null ? void 0 : o.value) == null ? void 0 : g[0];
261
+ return a.value === i.DESTRUCTIVE ? s.critical = !0 : a.value === i.INFO && (s.variant = B.SECONDARY), [s, d];
262
+ }), D = f(() => ({
263
+ [`b-modal-dialog--${a.value}`]: a.value
417
264
  }));
418
- return D(() => {
419
- var r, u;
420
- if (!d("default") || !e.content)
265
+ return C(() => {
266
+ var d, s;
267
+ if (!r("default") || !e.content)
421
268
  throw new Error("Bento Modal Dialog requires header title and content");
422
- if (((r = n == null ? void 0 : n.value) == null ? void 0 : r.length) > 1)
269
+ if (((d = o == null ? void 0 : o.value) == null ? void 0 : d.length) > 1)
423
270
  throw new Error("Not more than 1 action button may be provided to Modal Dialog");
424
- if (l.value !== c.ACKNOWLEDGEMENT && !(n != null && n.value))
271
+ if (a.value !== i.ACKNOWLEDGEMENT && !(o != null && o.value))
425
272
  throw new Error(
426
273
  "Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
427
274
  );
428
- if (l.value === c.ACKNOWLEDGEMENT && ((u = n == null ? void 0 : n.value) != null && u.length))
275
+ if (a.value === i.ACKNOWLEDGEMENT && ((s = o == null ? void 0 : o.value) != null && s.length))
429
276
  throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
430
277
  }), {
431
278
  // Values
432
- dialogActions: b,
433
- acknowledgementDialogActions: p,
279
+ dialogActions: O,
280
+ acknowledgementDialogActions: L,
434
281
  // Methods
435
- onCloseModal: v,
436
- onCloseActionButton: y,
282
+ onCloseModal: c,
283
+ onCloseActionButton: m,
437
284
  // Styles
438
- modalDialogConditionalClasses: g,
285
+ modalDialogConditionalClasses: D,
439
286
  // Enums
440
- BentoModalRole: h,
441
- BentoModalSize: _,
442
- BentoButtonVariant: L,
443
- BentoModalDialogType: c,
444
- BentoButtonActionsLayout: H
287
+ BentoModalRole: w
445
288
  };
446
289
  }
447
290
  });
448
- var rt = function() {
449
- var t = this, o = t._self._c;
450
- return t._self._setupProxy, o("base-modal", t._b({ staticClass: "b-modal-dialog", class: t.modalDialogConditionalClasses, attrs: { "hide-close-button": !0, size: t.BentoModalSize.SMALL, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "modal-role": t.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
291
+ var q = function() {
292
+ var t = this, n = t._self._c;
293
+ return t._self._setupProxy, n("base-modal", t._b({ staticClass: "b-modal-dialog", class: t.modalDialogConditionalClasses, attrs: { actions: t.actions, "hide-close-button": !0, size: "small", "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "modal-role": t.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
451
294
  return [t._t("default")];
452
295
  }, proxy: !0 }, { key: "content", fn: function() {
453
296
  return [t._v(" " + t._s(t.content) + " ")];
454
297
  }, proxy: !0 }, { key: "actions", fn: function() {
455
- return [t.dialogType === t.BentoModalDialogType.ACKNOWLEDGEMENT ? o("bento-button-actions", { attrs: { actions: t.acknowledgementDialogActions, layout: t.BentoButtonActionsLayout.BUTTONS_END } }) : o("bento-button-actions", { attrs: { actions: t.dialogActions, layout: t.BentoButtonActionsLayout.BUTTONS_END } })];
298
+ return [t.dialogType === "acknowledgement" ? n("bento-button-actions", { attrs: { actions: t.acknowledgementDialogActions, layout: "buttons-end" } }) : n("bento-button-actions", { attrs: { actions: t.dialogActions, layout: "buttons-end" } })];
456
299
  }, proxy: !0 }], null, !0) }, "base-modal", t.$attrs, !1));
457
- }, ut = [], ct = /* @__PURE__ */ A(
458
- it,
459
- rt,
460
- ut,
300
+ }, I = [], j = /* @__PURE__ */ b(
301
+ F,
302
+ q,
303
+ I,
461
304
  !1,
462
305
  null,
463
306
  null,
464
307
  null,
465
308
  null
466
309
  );
467
- const dt = ct.exports, mt = S({
310
+ const G = j.exports, U = 500, K = _({
468
311
  name: "bento-modal",
469
- components: { BentoModalDefault: lt, BentoModalDialog: dt },
312
+ components: { BentoModalDefault: P, BentoModalDialog: G },
470
313
  props: {
471
314
  /**
472
315
  * Choose between default or dialog versions of modal
473
316
  */
474
317
  variant: {
475
318
  type: String,
476
- default: B.DEFAULT,
477
- validator: (e) => Object.values(B).includes(e)
319
+ default: y.DEFAULT,
320
+ validator: (e) => Object.values(y).includes(e)
478
321
  },
479
322
  // Shared Modal Default and Modal Default props
480
323
  /**
@@ -540,8 +383,8 @@ const dt = ct.exports, mt = S({
540
383
  */
541
384
  size: {
542
385
  type: String,
543
- default: _.SMALL,
544
- validator: (e) => Object.values(_).includes(e)
386
+ default: S.SMALL,
387
+ validator: (e) => Object.values(S).includes(e)
545
388
  },
546
389
  /**
547
390
  * If provided, manages the padding of the whole modal container
@@ -562,8 +405,8 @@ const dt = ct.exports, mt = S({
562
405
  */
563
406
  columnsSize: {
564
407
  type: String,
565
- default: m.SMALLER,
566
- validator: (e) => Object.values(m).includes(e)
408
+ default: p.SMALLER,
409
+ validator: (e) => Object.values(p).includes(e)
567
410
  },
568
411
  /**
569
412
  * Text label that is displayed left to the action buttons
@@ -585,8 +428,8 @@ const dt = ct.exports, mt = S({
585
428
  */
586
429
  dialogType: {
587
430
  type: String,
588
- default: c.CONFIRMATION,
589
- validator: (e) => Object.values(c).includes(e)
431
+ default: i.CONFIRMATION,
432
+ validator: (e) => Object.values(i).includes(e)
590
433
  },
591
434
  /**
592
435
  * Text that will be displayed in the content section of Modal
@@ -596,10 +439,10 @@ const dt = ct.exports, mt = S({
596
439
  default: null
597
440
  }
598
441
  },
599
- emits: [i.CLOSE_MODAL],
600
- setup(e, { slots: t, emit: o }) {
601
- const a = M(), d = s(
602
- () => e.variant === B.DEFAULT ? {
442
+ emits: [u.CLOSE_MODAL],
443
+ setup(e, { slots: t, emit: n }) {
444
+ const l = h(), r = f(
445
+ () => e.variant === y.DEFAULT ? {
603
446
  hideCloseButton: e.hideCloseButton,
604
447
  size: e.size,
605
448
  customPadding: e.customPadding,
@@ -608,27 +451,31 @@ const dt = ct.exports, mt = S({
608
451
  isDismissible: e.isDismissible ?? !0,
609
452
  overflowVisible: e.overflowVisible,
610
453
  withColumnLayout: e.withColumnLayout,
611
- ...a
454
+ columnSize: e.columnsSize,
455
+ ...l
612
456
  } : {
613
457
  dialogType: e.dialogType,
614
458
  content: e.content,
615
459
  isDismissible: e.isDismissible ?? !1,
616
460
  overflowVisible: e.overflowVisible,
617
- ...a
461
+ ...l
618
462
  }
619
- );
620
- return {
621
- onCloseModal: () => {
622
- o(i.CLOSE_MODAL);
623
- },
624
- customProps: d,
625
- hasSlot: O(t)
463
+ ), o = () => {
464
+ n(u.CLOSE_MODAL);
465
+ };
466
+ return E(e.actions, () => {
467
+ var a, c;
468
+ ((c = (a = e.actions) == null ? void 0 : a[0]) == null ? void 0 : c.state) === "success" && setTimeout(o, U);
469
+ }), {
470
+ onCloseModal: o,
471
+ customProps: r,
472
+ hasSlot: v(t)
626
473
  };
627
474
  }
628
475
  });
629
- var ft = function() {
630
- var t = this, o = t._self._c;
631
- return t._self._setupProxy, o(t.variant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
476
+ var W = function() {
477
+ var t = this, n = t._self._c;
478
+ return t._self._setupProxy, n(t.variant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
632
479
  return [t._t("default")];
633
480
  }, proxy: !0 } : null, t.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
634
481
  return [t._t("content-col-1")];
@@ -637,24 +484,24 @@ var ft = function() {
637
484
  }, proxy: !0 } : null, t.hasSlot("content") ? { key: "content", fn: function() {
638
485
  return [t._t("content")];
639
486
  }, proxy: !0 } : null], null, !0) }, "component", t.customProps, !1));
640
- }, _t = [], yt = /* @__PURE__ */ A(
641
- mt,
642
- ft,
643
- _t,
487
+ }, Y = [], H = /* @__PURE__ */ b(
488
+ K,
489
+ W,
490
+ Y,
644
491
  !1,
645
492
  null,
646
493
  null,
647
494
  null,
648
495
  null
649
496
  );
650
- const Dt = yt.exports;
497
+ const lt = H.exports;
651
498
  export {
652
- Dt as BentoModal,
653
- m as BentoModalColumnLayoutVariant,
654
- c as BentoModalDialogType,
655
- i as BentoModalEvent,
656
- h as BentoModalRole,
657
- _ as BentoModalSize,
658
- B as BentoModalVariant
499
+ lt as BentoModal,
500
+ p as BentoModalColumnLayoutVariant,
501
+ i as BentoModalDialogType,
502
+ u as BentoModalEvent,
503
+ w as BentoModalRole,
504
+ S as BentoModalSize,
505
+ y as BentoModalVariant
659
506
  };
660
507
  //# sourceMappingURL=modal.js.map