@adyen/bento-vue3 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 (364) 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 -57
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
  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 +136 -128
  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 +46 -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 +6 -7
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
  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 +37 -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 +3 -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 +277 -16
  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 +0 -20
  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 +0 -20
  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 +164 -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-country/dropdown-country.types.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  41. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  42. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  43. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  44. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  45. 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
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  58. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
  59. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  62. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  63. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  64. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  65. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
  67. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  68. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  69. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  70. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  71. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  72. 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
  73. 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
  74. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  75. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  76. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  77. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  78. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  79. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  80. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  81. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  82. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  83. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  84. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  85. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  86. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  87. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  88. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  89. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  90. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  93. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  94. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  95. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  96. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  97. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
  98. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
  99. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  100. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  101. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  102. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  103. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  104. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  105. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  106. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  109. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  110. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  111. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  112. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  113. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  114. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
  115. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
  116. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
  117. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  118. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  119. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  120. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  121. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  122. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
  123. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  124. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  125. package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
  126. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  127. package/dist/accordion.js +104 -254
  128. package/dist/accordion.js.map +1 -1
  129. package/dist/alert.js +61 -64
  130. package/dist/alert.js.map +1 -1
  131. package/dist/assets/base-button.css +1 -1
  132. package/dist/assets/base-modal.css +1 -0
  133. package/dist/assets/button.css +1 -1
  134. package/dist/assets/calendar.css +1 -1
  135. package/dist/assets/checkbox.css +1 -1
  136. package/dist/assets/chevron-up.css +1 -0
  137. package/dist/assets/controls-group.css +1 -1
  138. package/dist/assets/copy.css +1 -1
  139. package/dist/assets/dropdown-default-textbox.css +1 -1
  140. package/dist/assets/dropdown.css +1 -1
  141. package/dist/assets/error-message.css +1 -1
  142. package/dist/assets/footer-actions.css +1 -1
  143. package/dist/assets/index.css +1 -1
  144. package/dist/assets/index10.css +1 -1
  145. package/dist/assets/index11.css +1 -1
  146. package/dist/assets/index12.css +1 -1
  147. package/dist/assets/index13.css +1 -1
  148. package/dist/assets/index14.css +1 -1
  149. package/dist/assets/index15.css +1 -1
  150. package/dist/assets/index16.css +1 -1
  151. package/dist/assets/index17.css +1 -1
  152. package/dist/assets/index18.css +1 -1
  153. package/dist/assets/index19.css +1 -1
  154. package/dist/assets/index2.css +1 -1
  155. package/dist/assets/index20.css +1 -1
  156. package/dist/assets/index21.css +1 -1
  157. package/dist/assets/index22.css +1 -1
  158. package/dist/assets/index24.css +1 -1
  159. package/dist/assets/index25.css +1 -1
  160. package/dist/assets/index26.css +1 -1
  161. package/dist/assets/index27.css +1 -1
  162. package/dist/assets/index28.css +1 -1
  163. package/dist/assets/index29.css +1 -1
  164. package/dist/assets/index3.css +1 -1
  165. package/dist/assets/index30.css +1 -1
  166. package/dist/assets/index31.css +1 -1
  167. package/dist/assets/index32.css +1 -1
  168. package/dist/assets/index33.css +1 -1
  169. package/dist/assets/index34.css +1 -1
  170. package/dist/assets/index35.css +1 -1
  171. package/dist/assets/index36.css +1 -1
  172. package/dist/assets/index37.css +1 -1
  173. package/dist/assets/index38.css +1 -1
  174. package/dist/assets/index39.css +1 -1
  175. package/dist/assets/index4.css +1 -1
  176. package/dist/assets/index40.css +1 -1
  177. package/dist/assets/index41.css +1 -1
  178. package/dist/assets/index42.css +1 -1
  179. package/dist/assets/index43.css +1 -0
  180. package/dist/assets/index5.css +1 -1
  181. package/dist/assets/index6.css +1 -1
  182. package/dist/assets/index7.css +1 -1
  183. package/dist/assets/index8.css +1 -1
  184. package/dist/assets/index9.css +1 -1
  185. package/dist/assets/listbox-option-tag.css +1 -1
  186. package/dist/assets/listbox.css +1 -1
  187. package/dist/assets/loading-button.css +1 -1
  188. package/dist/assets/tooltip.css +1 -1
  189. package/dist/avatar-image.js +1 -1
  190. package/dist/badge.js +2 -2
  191. package/dist/button.js +143 -12
  192. package/dist/button.js.map +1 -1
  193. package/dist/card.js +99 -94
  194. package/dist/card.js.map +1 -1
  195. package/dist/checkbox.js +40 -39
  196. package/dist/checkbox.js.map +1 -1
  197. package/dist/chunks/base-button.6d2843c2.js +108 -0
  198. package/dist/chunks/base-button.6d2843c2.js.map +1 -0
  199. package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
  200. package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
  201. package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
  202. package/dist/chunks/button.a8462029.js.map +1 -0
  203. package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
  204. package/dist/chunks/calendar.3f930683.js.map +1 -0
  205. package/dist/chunks/checkbox.5e1e05ae.js +235 -0
  206. package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
  207. package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
  208. package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
  209. package/dist/chunks/controls-group.3b0dfb94.js +136 -0
  210. package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
  211. package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
  212. package/dist/chunks/copy.1d14b783.js.map +1 -0
  213. package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
  214. package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
  215. package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
  216. package/dist/chunks/dropdown.b798a82e.js.map +1 -0
  217. package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
  218. package/dist/chunks/error-message.9acead25.js.map +1 -0
  219. package/dist/chunks/footer-actions.9537d0df.js +111 -0
  220. package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
  221. package/dist/chunks/get-slot-text.bead058f.js +9 -0
  222. package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
  223. package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
  224. package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
  225. package/dist/chunks/index.228ecda0.js +101 -0
  226. package/dist/chunks/index.228ecda0.js.map +1 -0
  227. package/dist/chunks/index.89b00b94.js +124 -0
  228. package/dist/chunks/index.89b00b94.js.map +1 -0
  229. package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
  230. package/dist/chunks/index.9d8273fc.js.map +1 -0
  231. package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
  232. package/dist/chunks/index.c2a80208.js.map +1 -0
  233. package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
  234. package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
  235. package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
  236. package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
  237. package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
  238. package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
  239. package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
  240. package/dist/chunks/listbox.6b52af1a.js.map +1 -0
  241. package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
  242. package/dist/chunks/loading-button.081adbf3.js.map +1 -0
  243. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  244. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  245. package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
  246. package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
  247. package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
  248. package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
  249. package/dist/chunks/use-has-slot.9fac7123.js +16 -0
  250. package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
  251. package/dist/code-snippet.js +548 -463
  252. package/dist/code-snippet.js.map +1 -1
  253. package/dist/country.js +501 -505
  254. package/dist/country.js.map +1 -1
  255. package/dist/currency.js +38 -41
  256. package/dist/currency.js.map +1 -1
  257. package/dist/data-grid.js +837 -833
  258. package/dist/data-grid.js.map +1 -1
  259. package/dist/date-picker.js +83 -87
  260. package/dist/date-picker.js.map +1 -1
  261. package/dist/date-range-picker.js +2 -2
  262. package/dist/date.js +1 -1
  263. package/dist/dropdown.js +30 -32
  264. package/dist/dropdown.js.map +1 -1
  265. package/dist/empty-state.js +166 -0
  266. package/dist/empty-state.js.map +1 -0
  267. package/dist/filter-bar.js +986 -935
  268. package/dist/filter-bar.js.map +1 -1
  269. package/dist/focus-trap.js +1 -1
  270. package/dist/form-layout.js +72 -72
  271. package/dist/form-layout.js.map +1 -1
  272. package/dist/header.js +50 -52
  273. package/dist/header.js.map +1 -1
  274. package/dist/image.js +76 -0
  275. package/dist/image.js.map +1 -0
  276. package/dist/index.js +239 -232
  277. package/dist/index.js.map +1 -1
  278. package/dist/info-icon.js +2 -2
  279. package/dist/input-field.js +241 -269
  280. package/dist/input-field.js.map +1 -1
  281. package/dist/internal.js +7 -7
  282. package/dist/link.js +38 -36
  283. package/dist/link.js.map +1 -1
  284. package/dist/loading-indicator.js +1 -1
  285. package/dist/menu.js +131 -139
  286. package/dist/menu.js.map +1 -1
  287. package/dist/modal.js +121 -356
  288. package/dist/modal.js.map +1 -1
  289. package/dist/pagination.js +182 -185
  290. package/dist/pagination.js.map +1 -1
  291. package/dist/payment-method.js +19 -23
  292. package/dist/payment-method.js.map +1 -1
  293. package/dist/popover.js +56 -52
  294. package/dist/popover.js.map +1 -1
  295. package/dist/popper-container.js +36 -41
  296. package/dist/popper-container.js.map +1 -1
  297. package/dist/radio-group.js +112 -113
  298. package/dist/radio-group.js.map +1 -1
  299. package/dist/search-bar.js +77 -91
  300. package/dist/search-bar.js.map +1 -1
  301. package/dist/segmented-control.js +88 -75
  302. package/dist/segmented-control.js.map +1 -1
  303. package/dist/sidepanel.js +122 -121
  304. package/dist/sidepanel.js.map +1 -1
  305. package/dist/status.js +18 -21
  306. package/dist/status.js.map +1 -1
  307. package/dist/structured-list.js +1 -1
  308. package/dist/summary-grid.js +129 -162
  309. package/dist/summary-grid.js.map +1 -1
  310. package/dist/tabs.js +83 -75
  311. package/dist/tabs.js.map +1 -1
  312. package/dist/tag.js +32 -35
  313. package/dist/tag.js.map +1 -1
  314. package/dist/textarea.js +156 -155
  315. package/dist/textarea.js.map +1 -1
  316. package/dist/timeline.js +212 -213
  317. package/dist/timeline.js.map +1 -1
  318. package/dist/toast.js +68 -72
  319. package/dist/toast.js.map +1 -1
  320. package/dist/toggle.js +75 -73
  321. package/dist/toggle.js.map +1 -1
  322. package/dist/typography.js +1 -1
  323. package/dist/web-types.json +1 -1
  324. package/package.json +11 -10
  325. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  326. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  327. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
  328. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  329. package/dist/assets/button-actions.css +0 -1
  330. package/dist/assets/chevron-down.css +0 -1
  331. package/dist/chunks/base-button.20be08da.js +0 -111
  332. package/dist/chunks/base-button.20be08da.js.map +0 -1
  333. package/dist/chunks/button-actions.54e28e75.js +0 -124
  334. package/dist/chunks/button-actions.54e28e75.js.map +0 -1
  335. package/dist/chunks/button.e1c39f66.js.map +0 -1
  336. package/dist/chunks/calendar.09b683b3.js.map +0 -1
  337. package/dist/chunks/checkbox.a404069b.js +0 -226
  338. package/dist/chunks/checkbox.a404069b.js.map +0 -1
  339. package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
  340. package/dist/chunks/controls-group.60fb2a86.js +0 -136
  341. package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
  342. package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
  343. package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
  344. package/dist/chunks/dropdown.8b415aac.js.map +0 -1
  345. package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
  346. package/dist/chunks/footer-actions.0f640f87.js +0 -106
  347. package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
  348. package/dist/chunks/get-slot-text.2db867f8.js +0 -9
  349. package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
  350. package/dist/chunks/index.222d29b0.js +0 -120
  351. package/dist/chunks/index.222d29b0.js.map +0 -1
  352. package/dist/chunks/index.3da90517.js.map +0 -1
  353. package/dist/chunks/index.aa34e363.js +0 -104
  354. package/dist/chunks/index.aa34e363.js.map +0 -1
  355. package/dist/chunks/index.c9225c3b.js.map +0 -1
  356. package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
  357. package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
  358. package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
  359. package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
  360. package/dist/chunks/tooltip.835d9b52.js.map +0 -1
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  362. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  363. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  364. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/data-grid.js CHANGED
@@ -1,290 +1,269 @@
1
- import { ref as U, onMounted as Me, nextTick as x, watch as ze, onUnmounted as Fe, reactive as ve, toRefs as be, computed as $, watchEffect as It, openBlock as u, createElementBlock as h, mergeProps as V, toDisplayString as M, createCommentVNode as P, pushScopeId as J, popScopeId as Q, createElementVNode as O, defineComponent as Ce, resolveComponent as N, normalizeClass as Z, Fragment as j, renderList as K, toHandlers as me, createVNode as D, withCtx as z, renderSlot as le, createBlock as G, withModifiers as Tt, createTextVNode as H, withDirectives as ke, vShow as Rt, toRef as Ge, resolveDirective as $t, normalizeStyle as ue, createSlots as Ot, normalizeProps as At, guardReactiveProps as wt } from "vue";
2
- import { o as Be } from "./chunks/resize.a041304d.js";
3
- import { u as Nt } from "./chunks/aria-label.ac9651a5.js";
4
- import { B as Ve } from "./chunks/checkbox.a404069b.js";
5
- import { BentoPagination as Ut } from "./pagination.js";
6
- import { BentoLoadingIndicator as Pt } from "./loading-indicator.js";
7
- import { B as he, a as fe, b as Se, i as Dt } from "./chunks/index.222d29b0.js";
8
- import { g as Mt } from "./chunks/get-slot-text.2db867f8.js";
9
- import { u as We } from "./chunks/i18n.6c402773.js";
1
+ import { ref as U, reactive as ve, toRefs as be, computed as T, watchEffect as ht, onMounted as St, nextTick as se, watch as ze, onUnmounted as yt, openBlock as g, createElementBlock as S, mergeProps as W, toDisplayString as D, createCommentVNode as w, pushScopeId as J, popScopeId as Q, createElementVNode as $, defineComponent as fe, resolveComponent as N, normalizeClass as X, Fragment as j, renderList as K, toHandlers as me, createVNode as P, withCtx as M, renderSlot as le, createBlock as G, withModifiers as Lt, createTextVNode as H, withDirectives as ke, vShow as Et, toRef as It, resolveDirective as Rt, inject as $t, normalizeStyle as Ce, createSlots as Tt, normalizeProps as Le, guardReactiveProps as Ee } from "vue";
2
+ import { u as Ot } from "./chunks/aria-label.ac9651a5.js";
3
+ import { B as Fe } from "./chunks/checkbox.5e1e05ae.js";
4
+ import { BentoPagination as At } from "./pagination.js";
5
+ import { BentoLoadingIndicator as Nt } from "./loading-indicator.js";
6
+ import { B as he, p as wt } from "./chunks/index.89b00b94.js";
7
+ import { g as Ut } from "./chunks/get-slot-text.bead058f.js";
8
+ import { u as Ge } from "./chunks/i18n.6c402773.js";
9
+ import { BentoEmptyState as Pt } from "./empty-state.js";
10
10
  import { BentoFilterBar as _e } from "./filter-bar.js";
11
- import { BentoInfoIcon as zt } from "./info-icon.js";
12
- import { BentoMenu as Ft } from "./menu.js";
13
- import { BentoPopoverPositions as He, BentoPopover as kt } from "./popover.js";
14
- import { a as Ze, B as Gt } from "./chunks/button.e1c39f66.js";
15
- import { K as Y } from "./chunks/tooltip.835d9b52.js";
16
- import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
17
- import { A as Bt } from "./chunks/arrow-left.cdbcc128.js";
18
- import { l as Ie } from "./chunks/events.58c00e6d.js";
19
- import { BentoToggle as Ye, BentoToggleLabelPosition as je } from "./toggle.js";
20
- import { BentoSearchBar as Vt } from "./search-bar.js";
21
- import { u as Wt } from "./chunks/dropdown.8b415aac.js";
22
- import { B as Ht } from "./chunks/directive.0408e565.js";
23
- import { C as Zt } from "./chunks/cross.5c36a670.js";
24
- import { S as Yt } from "./chunks/search.d18f9657.js";
25
- import { g as jt } from "./chunks/unique-id.a2a2b458.js";
26
- import "./assets/index26.css";
27
- const Xt = ({
28
- paginationRef: e,
29
- fitContent: t
30
- }) => {
31
- const d = U(void 0);
32
- let l = null;
33
- return Me(() => {
34
- t && x(() => {
35
- const b = ze(
36
- e,
37
- () => {
38
- e.value && (x(() => b()), l = Be(e.value, () => {
39
- var a;
40
- e.value && (d.value = `calc(100% - ${(a = e.value) == null ? void 0 : a.offsetHeight}px)`);
41
- }));
42
- },
43
- { immediate: !0 }
44
- );
45
- });
46
- }), Fe(() => {
47
- l == null || l.disconnect();
48
- }), { height: d };
49
- };
50
- var ce = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(ce || {}), pe = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.FIT_CONTENT = "fit-content", e))(pe || {}), q = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(q || {}), y = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SORT = "sort", e))(y || {}), ge = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(ge || {}), R = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SORT = "sort", e.SELECT_ALL_ROWS = "select-all-rows", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(R || {});
51
- const qt = (e, t) => {
52
- const d = U(!1), l = U(void 0), b = e.value.reduce((f, S) => (f[S.field] = null, f), {}), a = ve(b), v = be(a);
53
- let _ = 0, p = "";
54
- const c = $(
55
- () => Object.fromEntries(e.value.map(({ field: f, width: S, minWidth: L }) => [f, { width: S, minWidth: L }]))
11
+ import { E as Dt } from "./chunks/tabs.keys.358742f2.js";
12
+ import { BentoPopoverPositions as Ie, BentoPopover as Mt } from "./popover.js";
13
+ import { a as zt } from "./chunks/button.a8462029.js";
14
+ import { BentoToggle as Ve } from "./toggle.js";
15
+ import { BentoSearchBar as kt } from "./search-bar.js";
16
+ import { u as Ft } from "./chunks/dropdown.b798a82e.js";
17
+ import { B as Gt } from "./chunks/directive.0408e565.js";
18
+ import { _ as B } from "./chunks/_plugin-vue_export-helper.dad06003.js";
19
+ import { C as Vt } from "./chunks/cross.5c36a670.js";
20
+ import { S as Wt } from "./chunks/search.d18f9657.js";
21
+ import { g as Bt } from "./chunks/unique-id.a2a2b458.js";
22
+ import { o as Ht } from "./chunks/resize.a041304d.js";
23
+ import { BentoInfoIcon as Zt } from "./info-icon.js";
24
+ import { BentoMenu as jt } from "./menu.js";
25
+ import { K as Z } from "./chunks/tooltip.e4e34b86.js";
26
+ import { A as Xt } from "./chunks/arrow-left.cdbcc128.js";
27
+ import { l as Re } from "./chunks/events.58c00e6d.js";
28
+ import "./assets/index11.css";
29
+ var ce = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(ce || {}), pe = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.FIT_CONTENT = "fit-content", e))(pe || {}), q = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(q || {}), L = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SORT = "sort", e))(L || {}), ge = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(ge || {}), R = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SORT = "sort", e.SELECT_ALL_ROWS = "select-all-rows", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(R || {});
30
+ const Yt = (e, n) => {
31
+ const c = U(!1), s = U(void 0), b = e.value.reduce((u, h) => (u[h.field] = null, u), {}), a = ve(b), v = be(a);
32
+ let _ = 0, m = "";
33
+ const f = T(
34
+ () => Object.fromEntries(e.value.map(({ field: u, width: h, minWidth: y }) => [u, { width: h, minWidth: y }]))
56
35
  );
57
- It(() => l.value = c.value);
58
- let m = null, i = null;
59
- const r = (f) => {
60
- const S = f.clientX - _, L = p, A = l.value[L].width + S;
61
- l.value[L].width = A > l.value[L].minWidth ? A : l.value[L].minWidth, t(R.COLUMN_RESIZING, l.value), _ = f.clientX;
62
- }, n = () => {
63
- d.value = !1, m == null || m(), i == null || i(), p && t(R.COLUMN_RESIZE, {
64
- field: p,
65
- width: l.value[p].width
66
- }), m = null, i = null, p = "", _ = null;
36
+ ht(() => s.value = f.value);
37
+ let p = null, i = null;
38
+ const r = (u) => {
39
+ const h = u.clientX - _, y = m, A = s.value[y].width + h;
40
+ s.value[y].width = A > s.value[y].minWidth ? A : s.value[y].minWidth, n(R.COLUMN_RESIZING, s.value), _ = u.clientX;
41
+ }, o = () => {
42
+ c.value = !1, p == null || p(), i == null || i(), m && n(R.COLUMN_RESIZE, {
43
+ field: m,
44
+ width: s.value[m].width
45
+ }), p = null, i = null, m = "", _ = null;
67
46
  };
68
- return { resizeData: l, allColumnRefs: v, startResize: (f, S, L) => {
69
- if (L.preventDefault(), f) {
70
- if (d.value = !0, L.buttons !== 1) {
71
- n();
47
+ return { resizeData: s, allColumnRefs: v, startResize: (u, h, y) => {
48
+ if (y.preventDefault(), u) {
49
+ if (c.value = !0, y.buttons !== 1) {
50
+ o();
72
51
  return;
73
52
  }
74
- p = S, _ = L.clientX, m = Ie(window, "mousemove", r), i = Ie(window, "mouseup", n);
53
+ m = h, _ = y.clientX, p = Re(window, "mousemove", r), i = Re(window, "mouseup", o);
75
54
  }
76
- }, isResizing: d };
77
- }, Jt = qt, Qt = 100, Te = 50, te = "b-select", Kt = (e, t, d) => {
78
- const l = {}, b = [], a = (_) => {
79
- const p = l[_];
80
- p && p.frozen !== !0 && (l[_].frozen = !0, b.push(_));
55
+ }, isResizing: c };
56
+ }, qt = Yt, Jt = 100, $e = 50, te = "b-select", Qt = (e, n, c) => {
57
+ const s = {}, b = [], a = (_) => {
58
+ const m = s[_];
59
+ m && m.frozen !== !0 && (s[_].frozen = !0, b.push(_));
81
60
  };
82
61
  function v() {
83
- if (b.length === d.length)
62
+ if (b.length === c.length)
84
63
  return;
85
64
  const _ = { min: {}, max: {} };
86
- let p = e, c = t, m = 0;
65
+ let m = e, f = n, p = 0;
87
66
  b.forEach((i) => {
88
- p -= l[i].computedWidth, c -= l[i].flex;
67
+ m -= s[i].computedWidth, f -= s[i].flex;
89
68
  });
90
- for (let i = 0, r = d.length; i < r; i += 1) {
91
- const n = d[i];
92
- if (l[n.field] && l[n.field].frozen === !0)
69
+ for (let i = 0, r = c.length; i < r; i += 1) {
70
+ const o = c[i];
71
+ if (s[o.field] && s[o.field].frozen === !0)
93
72
  continue;
94
- let f = p / c * n.flex;
95
- f < n.minWidth && (m += n.minWidth - f, f = n.minWidth, _.min[n.field] = !0), l[n.field] = {
73
+ let u = m / f * o.flex;
74
+ u < o.minWidth && (p += o.minWidth - u, u = o.minWidth, _.min[o.field] = !0), s[o.field] = {
96
75
  frozen: !1,
97
- computedWidth: f,
98
- flex: n.flex
76
+ computedWidth: u,
77
+ flex: o.flex
99
78
  };
100
79
  }
101
- m > 0 ? Object.keys(_.min).forEach((i) => {
80
+ p > 0 ? Object.keys(_.min).forEach((i) => {
102
81
  a(i);
103
- }) : d.forEach(({ field: i }) => {
82
+ }) : c.forEach(({ field: i }) => {
104
83
  a(i);
105
84
  }), v();
106
85
  }
107
- return v(), l;
108
- }, xt = (e, t, d) => {
109
- const l = U(e), b = U(t), a = U();
86
+ return v(), s;
87
+ }, Kt = (e, n, c) => {
88
+ const s = U(e), b = U(n), a = U();
110
89
  let v = null;
111
- Me(() => {
112
- x(() => {
90
+ St(() => {
91
+ se(() => {
113
92
  b.value && (a.value = b.value.getBoundingClientRect().width);
114
- const n = ze(
93
+ const o = ze(
115
94
  b,
116
95
  () => {
117
- b.value && (x(() => n()), v = Be(b.value, ({ width: g }) => {
118
- a.value = g;
96
+ b.value && (se(() => o()), v = Ht(b.value, ({ width: C }) => {
97
+ a.value = C;
119
98
  }));
120
99
  },
121
100
  { immediate: !0 }
122
101
  );
123
102
  });
124
- }), Fe(() => {
103
+ }), yt(() => {
125
104
  v == null || v.disconnect();
126
105
  });
127
- const _ = $(() => {
128
- const n = [];
129
- let g = 0, f = 0;
130
- const S = {};
131
- let L = l.value.filter((o) => o.visible !== !1);
132
- d != null && d.hasSelectableColumn.value && (L = [{ field: te, label: "", width: 40 }, ...L]), L.forEach((o) => {
133
- const C = { ...o };
134
- let E;
135
- C.flex && C.flex > 0 ? (g += C.flex, E = 0, n.push(C)) : E = Math.max(
136
- (C == null ? void 0 : C.width) ?? Qt,
137
- (C == null ? void 0 : C.minWidth) ?? Te
138
- ), f += E, C.width = E, C.minWidth = (C == null ? void 0 : C.minWidth) ?? Te, S[C.field] = C;
106
+ const _ = T(() => {
107
+ const o = [];
108
+ let C = 0, u = 0;
109
+ const h = {};
110
+ let y = s.value.filter((z) => z.visible !== !1);
111
+ c != null && c.hasSelectableColumn.value && (y = [{ field: te, label: "", width: 40 }, ...y]), y.forEach((z) => {
112
+ const t = { ...z };
113
+ let d;
114
+ t.flex && t.flex > 0 ? (C += t.flex, d = 0, o.push(t)) : d = Math.max(
115
+ (t == null ? void 0 : t.width) ?? Jt,
116
+ (t == null ? void 0 : t.minWidth) ?? $e
117
+ ), u += d, t.width = d, t.minWidth = (t == null ? void 0 : t.minWidth) ?? $e, h[t.field] = t;
139
118
  });
140
- const A = Math.max(a.value - f, 0);
141
- if (g > 0 && a.value > 0) {
142
- const o = Kt(A, g, n);
143
- Object.keys(o).forEach((C) => {
144
- S[C].width = o[C].computedWidth;
119
+ const A = Math.max(a.value - u, 0);
120
+ if (C > 0 && a.value > 0) {
121
+ const z = Qt(A, C, o);
122
+ Object.keys(z).forEach((t) => {
123
+ h[t].width = z[t].computedWidth;
145
124
  });
146
125
  }
147
- return Object.values(S);
148
- }), p = U(void 0), c = (n) => {
149
- p.value = { ...p.value, ...n };
150
- }, m = $(
151
- () => _.value.map((n) => {
152
- var g, f;
126
+ return Object.values(h);
127
+ }), m = U(void 0), f = (o) => {
128
+ m.value = { ...m.value, ...o };
129
+ }, p = T(
130
+ () => _.value.map((o) => {
131
+ var C, u;
153
132
  return {
154
- ...n,
133
+ ...o,
155
134
  // Override column width with resized ones
156
- width: ((f = (g = p.value) == null ? void 0 : g[n.field]) == null ? void 0 : f.width) ?? n.width
135
+ width: ((u = (C = m.value) == null ? void 0 : C[o.field]) == null ? void 0 : u.width) ?? o.width
157
136
  };
158
137
  })
159
- ), i = $(() => m.value.reduce((n, g) => g.width + n, 0)), r = $(() => ({
138
+ ), i = T(() => p.value.reduce((o, C) => C.width + o, 0)), r = T(() => ({
160
139
  width: a.value > i.value ? "100%" : "fit-content"
161
140
  }));
162
- return { columnDefs: m, gridColumnWidthStyle: r, onColumnWidthOverride: c };
163
- }, en = xt, tn = (e, t, d) => ({ conditionalSortDirectionClasses: (a, v) => ({
141
+ return { columnDefs: p, gridColumnWidthStyle: r, onColumnWidthOverride: f };
142
+ }, xt = Kt, en = (e, n, c) => ({ conditionalSortDirectionClasses: (a, v) => ({
164
143
  "b-data-grid-columns__column-sort-icon--sorted": e.value.some(
165
144
  (_) => _.field === a && _.direction === v
166
145
  )
167
146
  }), sortByColumnField: (a) => {
168
- var p;
169
- if (!t.value.some((c) => c.field === a && c.sortable))
147
+ var m;
148
+ if (!n.value.some((f) => f.field === a && f.sortable))
170
149
  return;
171
150
  const _ = [{
172
151
  field: a,
173
- direction: ((p = e.value.find((c) => c.field === a)) == null ? void 0 : p.direction) === q.ASCENDING ? q.DESCENDING : q.ASCENDING
152
+ direction: ((m = e.value.find((f) => f.field === a)) == null ? void 0 : m.direction) === q.ASCENDING ? q.DESCENDING : q.ASCENDING
174
153
  }];
175
- d(R.SORT, _);
176
- } }), nn = (e, t, d, l, b) => {
154
+ c(R.SORT, _);
155
+ } }), tn = (e, n, c, s, b) => {
177
156
  const a = U(e.value), v = ve({
178
157
  allItemsSelected: !1,
179
158
  isIndeterminate: !1
180
159
  }), _ = () => {
181
- t(y.SELECT, a.value), t(y.UPDATE_SELECTION, a.value);
182
- }, p = (m) => {
183
- x(() => {
160
+ n(L.SELECT, a.value), n(L.UPDATE_SELECTION, a.value);
161
+ }, m = (p) => {
162
+ se(() => {
184
163
  var i, r;
185
- m ? a.value = (r = (i = d.value) == null ? void 0 : i.filter((n) => !b(n))) == null ? void 0 : r.map((n) => l(n)) : a.value = [], v.allItemsSelected = m, v.isIndeterminate = !1, _();
164
+ p ? a.value = (r = (i = c.value) == null ? void 0 : i.filter((o) => !b(o))) == null ? void 0 : r.map((o) => s(o)) : a.value = [], v.allItemsSelected = p, v.isIndeterminate = !1, _();
186
165
  });
187
- }, c = (m) => {
188
- x(() => {
166
+ }, f = (p) => {
167
+ se(() => {
189
168
  var r;
190
- a.value = m;
191
- const i = (r = d.value) == null ? void 0 : r.filter((n) => !b(n)).every((n) => a.value.includes(l(n)));
169
+ a.value = p;
170
+ const i = (r = c.value) == null ? void 0 : r.filter((o) => !b(o)).every((o) => a.value.includes(s(o)));
192
171
  v.isIndeterminate = a.value.length > 0 && !i, i ? v.allItemsSelected = !0 : (v.isIndeterminate || !i) && (v.allItemsSelected = !1), _();
193
172
  });
194
173
  };
195
- return c(e.value), { onAllRowSelect: p, onRowSelect: c, allItemsSelectedState: v, selectedItems: a };
174
+ return f(e.value), { onAllRowSelect: m, onRowSelect: f, allItemsSelectedState: v, selectedItems: a };
196
175
  };
197
- var F = ((e) => (e[e.ARROW_DOWN = Y.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Y.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Y.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Y.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Y.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Y.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Y.END] = "END", e[e.HOME = Y.HOME] = "HOME", e))(F || {});
198
- const on = (e, t) => {
199
- const d = (c) => Math.floor(c / t.value), l = (c, m, i) => {
200
- const r = e.value.length - 1, n = t.value - 1, g = d(c), f = c - t.value * g;
176
+ var k = ((e) => (e[e.ARROW_DOWN = Z.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Z.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Z.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Z.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Z.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Z.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Z.END] = "END", e[e.HOME = Z.HOME] = "HOME", e))(k || {});
177
+ const nn = (e, n) => {
178
+ const c = (f) => Math.floor(f / n.value), s = (f, p, i) => {
179
+ const r = e.value.length - 1, o = n.value - 1, C = c(f), u = f - n.value * C;
201
180
  return {
202
- [F.PAGE_UP]: f,
203
- [F.PAGE_DOWN]: r - n + f,
204
- [F.END]: i ? r : t.value * g + n,
205
- [F.HOME]: i ? 0 : t.value * g
206
- }[m];
207
- }, b = (c, m) => {
181
+ [k.PAGE_UP]: u,
182
+ [k.PAGE_DOWN]: r - o + u,
183
+ [k.END]: i ? r : n.value * C + o,
184
+ [k.HOME]: i ? 0 : n.value * C
185
+ }[p];
186
+ }, b = (f, p) => {
208
187
  const r = {
209
- [F.ARROW_DOWN]: t.value,
210
- [F.ARROW_UP]: -t.value,
211
- [F.ARROW_LEFT]: -1,
212
- [F.ARROW_RIGHT]: 1
213
- }[m], n = c + r;
214
- return n < 0 || n >= e.value.length ? c : n;
215
- }, a = (c) => [
216
- F.PAGE_UP,
217
- F.PAGE_DOWN,
218
- F.END,
219
- F.HOME
220
- ].includes(c), v = (c, m, i) => {
221
- const r = e.value.indexOf(c);
222
- return a(m) ? l(r, m, i) : b(r, m);
188
+ [k.ARROW_DOWN]: n.value,
189
+ [k.ARROW_UP]: -n.value,
190
+ [k.ARROW_LEFT]: -1,
191
+ [k.ARROW_RIGHT]: 1
192
+ }[p], o = f + r;
193
+ return o < 0 || o >= e.value.length ? f : o;
194
+ }, a = (f) => [
195
+ k.PAGE_UP,
196
+ k.PAGE_DOWN,
197
+ k.END,
198
+ k.HOME
199
+ ].includes(f), v = (f, p, i) => {
200
+ const r = e.value.indexOf(f);
201
+ return a(p) ? s(r, p, i) : b(r, p);
223
202
  };
224
203
  return {
225
- focusOnNextGridcell: (c, m, i) => {
226
- if (!e.value.includes(c))
204
+ focusOnNextGridcell: (f, p, i) => {
205
+ if (!e.value.includes(f))
227
206
  return;
228
- const r = v(c, m, i);
207
+ const r = v(f, p, i);
229
208
  e.value[r].focus();
230
209
  },
231
- isNavigationKeyCode: (c) => c in F
210
+ isNavigationKeyCode: (f) => f in k
232
211
  };
233
- }, ln = (e, t, d) => {
234
- const l = U(e), b = U(t), a = ve({
212
+ }, on = (e, n, c) => {
213
+ const s = U(e), b = U(n), a = ve({
235
214
  dragging: null,
236
215
  dragToLeft: null,
237
216
  target: null
238
- }), v = (n, g = 0) => {
239
- const f = l.value.findIndex((A) => A.field === n.field), S = f + g;
240
- if (S < 0 || S > l.value.length - 1)
217
+ }), v = (o, C = 0) => {
218
+ const u = s.value.findIndex((A) => A.field === o.field), h = u + C;
219
+ if (h < 0 || h > s.value.length - 1)
241
220
  return;
242
- const L = [...l.value];
243
- L.splice(S, 0, L.splice(f, 1)[0]), d(y.COLUMNS, L), d(y.UPDATE_COLUMNS, L);
244
- }, _ = (n, g) => {
245
- a.dragging = n, g.dataTransfer.setData("text", ""), g.dataTransfer.dropEffect = "move";
246
- }, p = (n, g) => {
247
- a.target = n;
248
- const f = g.currentTarget.getBoundingClientRect(), S = f.left + f.width / 2, L = g.clientX ?? 0;
249
- a.dragToLeft = L <= S;
250
- }, c = (n) => {
251
- var g, f;
252
- if (((g = a.dragging) == null ? void 0 : g.field) !== n.field) {
253
- const S = l.value.findIndex((T) => {
221
+ const y = [...s.value];
222
+ y.splice(h, 0, y.splice(u, 1)[0]), c(L.COLUMNS, y), c(L.UPDATE_COLUMNS, y);
223
+ }, _ = (o, C) => {
224
+ a.dragging = o, C.dataTransfer.setData("text", ""), C.dataTransfer.dropEffect = "move";
225
+ }, m = (o, C) => {
226
+ a.target = o;
227
+ const u = C.currentTarget.getBoundingClientRect(), h = u.left + u.width / 2, y = C.clientX ?? 0;
228
+ a.dragToLeft = y <= h;
229
+ }, f = (o) => {
230
+ var C, u;
231
+ if (((C = a.dragging) == null ? void 0 : C.field) !== o.field) {
232
+ const h = s.value.findIndex((E) => {
254
233
  var I;
255
- return T.field === ((I = a.dragging) == null ? void 0 : I.field);
256
- }), L = l.value.findIndex((T) => T.field === n.field), A = a.dragToLeft ? L : L + 1, o = A > S ? A - 1 : A;
257
- let C = [...l.value];
258
- C.splice(
259
- o === -1 ? 0 : o,
234
+ return E.field === ((I = a.dragging) == null ? void 0 : I.field);
235
+ }), y = s.value.findIndex((E) => E.field === o.field), A = a.dragToLeft ? y : y + 1, z = A > h ? A - 1 : A;
236
+ let t = [...s.value];
237
+ t.splice(
238
+ z === -1 ? 0 : z,
260
239
  0,
261
- C.splice(S, 1)[0]
240
+ t.splice(h, 1)[0]
262
241
  );
263
- const E = l.value.findIndex((T) => !(T != null && T.frozen));
264
- ((f = a.dragging) == null ? void 0 : f.frozen) !== n.frozen && A !== E && (C = C.map(
265
- (T) => {
242
+ const d = s.value.findIndex((E) => !(E != null && E.frozen));
243
+ ((u = a.dragging) == null ? void 0 : u.frozen) !== o.frozen && A !== d && (t = t.map(
244
+ (E) => {
266
245
  var I;
267
- return ((I = a.dragging) == null ? void 0 : I.field) === T.field ? { ...T, frozen: !!(n != null && n.frozen) } : T;
246
+ return ((I = a.dragging) == null ? void 0 : I.field) === E.field ? { ...E, frozen: !!(o != null && o.frozen) } : E;
268
247
  }
269
- )), d(y.COLUMNS, C), d(y.UPDATE_COLUMNS, C);
248
+ )), c(L.COLUMNS, t), c(L.UPDATE_COLUMNS, t);
270
249
  }
271
250
  a.dragging = null, a.target = null;
272
- }, m = () => {
251
+ }, p = () => {
273
252
  a.dragging = null, a.dragToLeft = null, a.target = null;
274
- }, i = $(() => b.value ? {
275
- [R.COLUMN_DRAG_START]: (n, g) => _(n, g),
276
- [R.COLUMN_DRAG_ENTER]: (n, g) => p(n, g),
277
- [R.COLUMN_DROP]: (n) => c(n),
278
- [R.COLUMN_DRAG_END]: () => m()
279
- } : {}), r = $(() => (n) => b.value ? {
280
- dragenter: (g) => {
281
- g.preventDefault(), p(n, g);
253
+ }, i = T(() => b.value ? {
254
+ [R.COLUMN_DRAG_START]: (o, C) => _(o, C),
255
+ [R.COLUMN_DRAG_ENTER]: (o, C) => m(o, C),
256
+ [R.COLUMN_DROP]: (o) => f(o),
257
+ [R.COLUMN_DRAG_END]: () => p()
258
+ } : {}), r = T(() => (o) => b.value ? {
259
+ dragenter: (C) => {
260
+ C.preventDefault(), m(o, C);
282
261
  },
283
262
  drop: () => {
284
- c(n);
263
+ f(o);
285
264
  },
286
- dragover: (g) => {
287
- g.preventDefault();
265
+ dragover: (C) => {
266
+ C.preventDefault();
288
267
  }
289
268
  } : {});
290
269
  return {
@@ -295,191 +274,191 @@ const on = (e, t) => {
295
274
  draggingEventsForRowCell: r,
296
275
  onMoveColumnByOffset: v
297
276
  };
298
- }, sn = (e, t) => {
299
- const d = U(e), l = $(
300
- () => [...d.value].sort((i, r) => i.frozen === r.frozen ? 0 : i.frozen ? -1 : 1)
301
- ), b = $(() => l.value.filter((i) => i.frozen)), a = $(() => l.value.filter((i) => !i.frozen)), v = $(
277
+ }, ln = (e, n) => {
278
+ const c = U(e), s = T(
279
+ () => [...c.value].sort((i, r) => i.frozen === r.frozen ? 0 : i.frozen ? -1 : 1)
280
+ ), b = T(() => s.value.filter((i) => i.frozen)), a = T(() => s.value.filter((i) => !i.frozen)), v = T(
302
281
  () => [
303
282
  { columnSet: b.value, id: "frozen", isFrozenColumns: !0 },
304
283
  { columnSet: a.value, id: "unfrozen" }
305
284
  ].filter(({ columnSet: i }) => i.length)
306
- ), _ = $(
307
- () => d.value.filter((i) => (i == null ? void 0 : i.visible) !== !1 && (i == null ? void 0 : i.field) !== te).length === 1
308
- ), p = (i) => t(y.UPDATE_CONDENSED, i), c = (i) => {
309
- t(y.COLUMNS, i), t(y.UPDATE_COLUMNS, i);
285
+ ), _ = T(
286
+ () => c.value.filter((i) => (i == null ? void 0 : i.visible) !== !1 && (i == null ? void 0 : i.field) !== te).length === 1
287
+ ), m = (i) => n(L.UPDATE_CONDENSED, i), f = (i) => {
288
+ n(L.COLUMNS, i), n(L.UPDATE_COLUMNS, i);
310
289
  };
311
290
  return {
312
291
  // Values
313
292
  columnSets: v,
314
293
  isOnlyOneVisibleColumn: _,
315
- sortedColumns: l,
294
+ sortedColumns: s,
316
295
  // Methods
317
- onConfigSettingsUpdate: p,
318
- onConfigSettingsColumnsUpdate: c,
296
+ onConfigSettingsUpdate: m,
297
+ onConfigSettingsColumnsUpdate: f,
319
298
  onConfigSettingsColumnUpdate: (i) => {
320
- const r = l.value.map(
321
- (n) => (n == null ? void 0 : n.field) === i.field ? i : n
299
+ const r = s.value.map(
300
+ (o) => (o == null ? void 0 : o.field) === i.field ? i : o
322
301
  );
323
- c(r);
302
+ f(r);
324
303
  }
325
304
  };
326
305
  };
327
- let Re = 0;
328
- const an = {
306
+ let Te = 0;
307
+ const sn = {
329
308
  beforeCreate() {
330
- this.uuid = Re.toString(), Re += 1;
309
+ this.uuid = Te.toString(), Te += 1;
331
310
  }
332
- }, rn = (e) => (J("data-v-4ebc0033"), e = e(), Q(), e), dn = { key: 0 }, un = /* @__PURE__ */ rn(() => /* @__PURE__ */ O("path", {
311
+ }, an = (e) => (J("data-v-4ebc0033"), e = e(), Q(), e), rn = { key: 0 }, dn = /* @__PURE__ */ an(() => /* @__PURE__ */ $("path", {
333
312
  fill: "#00112C",
334
313
  "fill-rule": "evenodd",
335
314
  d: "M11 10.75C11.2841 10.75 11.5438 10.5895 11.6708 10.3354C11.7979 10.0813 11.7705 9.77726 11.6 9.55L8.6 5.55C8.45836 5.36115 8.23607 5.25 8.00001 5.25C7.76394 5.25 7.54165 5.36115 7.40001 5.55L4.4 9.55C4.22956 9.77726 4.20214 10.0813 4.32918 10.3354C4.45623 10.5895 4.71593 10.75 5 10.75L11 10.75Z",
336
315
  "clip-rule": "evenodd"
337
316
  }, null, -1));
338
- function cn(e, t, d, l, b, a) {
339
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
317
+ function un(e, n, c, s, b, a) {
318
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
340
319
  xmlns: "http://www.w3.org/2000/svg",
341
320
  width: "16",
342
321
  height: "16",
343
322
  fill: "none"
344
323
  }), [
345
- e.$attrs["svg-title"] ? (u(), h("title", dn, M(e.$attrs["svg-title"]), 1)) : P("", !0),
346
- un
324
+ e.$attrs["svg-title"] ? (g(), S("title", rn, D(e.$attrs["svg-title"]), 1)) : w("", !0),
325
+ dn
347
326
  ], 16);
348
327
  }
349
- const gn = /* @__PURE__ */ W(an, [["render", cn], ["__scopeId", "data-v-4ebc0033"]]);
350
- let $e = 0;
351
- const Cn = {
328
+ const cn = /* @__PURE__ */ B(sn, [["render", un], ["__scopeId", "data-v-4ebc0033"]]);
329
+ let Oe = 0;
330
+ const gn = {
352
331
  beforeCreate() {
353
- this.uuid = $e.toString(), $e += 1;
332
+ this.uuid = Oe.toString(), Oe += 1;
354
333
  }
355
- }, fn = (e) => (J("data-v-bda8fd91"), e = e(), Q(), e), _n = { key: 0 }, mn = /* @__PURE__ */ fn(() => /* @__PURE__ */ O("path", {
334
+ }, fn = (e) => (J("data-v-bda8fd91"), e = e(), Q(), e), Cn = { key: 0 }, _n = /* @__PURE__ */ fn(() => /* @__PURE__ */ $("path", {
356
335
  fill: "#00112C",
357
336
  "fill-rule": "evenodd",
358
337
  d: "M5 5.25C4.71593 5.25 4.45623 5.4105 4.32918 5.66459C4.20214 5.91868 4.22956 6.22274 4.4 6.45L7.4 10.45C7.54165 10.6389 7.76394 10.75 8 10.75C8.23607 10.75 8.45836 10.6389 8.6 10.45L11.6 6.45C11.7705 6.22274 11.7979 5.91868 11.6708 5.66459C11.5438 5.4105 11.2841 5.25 11 5.25H5Z",
359
338
  "clip-rule": "evenodd"
360
339
  }, null, -1));
361
- function pn(e, t, d, l, b, a) {
362
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
340
+ function mn(e, n, c, s, b, a) {
341
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
363
342
  xmlns: "http://www.w3.org/2000/svg",
364
343
  width: "16",
365
344
  height: "16",
366
345
  fill: "none"
367
346
  }), [
368
- e.$attrs["svg-title"] ? (u(), h("title", _n, M(e.$attrs["svg-title"]), 1)) : P("", !0),
369
- mn
347
+ e.$attrs["svg-title"] ? (g(), S("title", Cn, D(e.$attrs["svg-title"]), 1)) : w("", !0),
348
+ _n
370
349
  ], 16);
371
350
  }
372
- const vn = /* @__PURE__ */ W(Cn, [["render", pn], ["__scopeId", "data-v-bda8fd91"]]);
373
- let Oe = 0;
374
- const bn = {
351
+ const pn = /* @__PURE__ */ B(gn, [["render", mn], ["__scopeId", "data-v-bda8fd91"]]);
352
+ let Ae = 0;
353
+ const vn = {
375
354
  beforeCreate() {
376
- this.uuid = Oe.toString(), Oe += 1;
355
+ this.uuid = Ae.toString(), Ae += 1;
377
356
  }
378
- }, hn = (e) => (J("data-v-1954bfce"), e = e(), Q(), e), Sn = { key: 0 }, yn = /* @__PURE__ */ hn(() => /* @__PURE__ */ O("path", {
357
+ }, bn = (e) => (J("data-v-1954bfce"), e = e(), Q(), e), hn = { key: 0 }, Sn = /* @__PURE__ */ bn(() => /* @__PURE__ */ $("path", {
379
358
  fill: "#00112C",
380
359
  "fill-rule": "evenodd",
381
360
  d: "M9.53 13.55L14.53 8.55C14.6 8.48 14.66 8.4 14.69 8.31C14.72 8.22 14.75 8.12 14.75 8.02C14.75 8.02 14.75 7.92 14.75 7.87C14.75 7.83 14.75 7.79 14.75 7.75C14.71 7.65 14.65 7.55 14.57 7.48L9.57 2.48C9.43 2.34 9.23 2.25 9.03 2.25C8.83 2.25 8.63 2.33 8.48 2.47C8.33 2.61 8.25 2.81 8.25 3.01C8.25 3.21 8.33 3.41 8.47 3.56L12.19 7.28H2C1.8 7.28 1.61 7.36 1.47 7.5C1.33 7.64 1.25 7.83 1.25 8.03C1.25 8.23 1.33 8.42 1.47 8.56C1.61 8.7 1.8 8.78 2 8.78H12.19L8.47 12.5C8.34 12.64 8.27 12.83 8.27 13.02C8.27 13.21 8.35 13.4 8.49 13.54C8.63 13.68 8.81 13.76 9.01 13.76C9.2 13.76 9.39 13.69 9.53 13.56V13.55Z",
382
361
  "clip-rule": "evenodd"
383
362
  }, null, -1));
384
- function Ln(e, t, d, l, b, a) {
385
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
363
+ function yn(e, n, c, s, b, a) {
364
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
386
365
  xmlns: "http://www.w3.org/2000/svg",
387
366
  width: "16",
388
367
  height: "16",
389
368
  fill: "none"
390
369
  }), [
391
- e.$attrs["svg-title"] ? (u(), h("title", Sn, M(e.$attrs["svg-title"]), 1)) : P("", !0),
392
- yn
370
+ e.$attrs["svg-title"] ? (g(), S("title", hn, D(e.$attrs["svg-title"]), 1)) : w("", !0),
371
+ Sn
393
372
  ], 16);
394
373
  }
395
- const En = /* @__PURE__ */ W(bn, [["render", Ln], ["__scopeId", "data-v-1954bfce"]]);
396
- let Ae = 0;
397
- const In = {
374
+ const Ln = /* @__PURE__ */ B(vn, [["render", yn], ["__scopeId", "data-v-1954bfce"]]);
375
+ let Ne = 0;
376
+ const En = {
398
377
  beforeCreate() {
399
- this.uuid = Ae.toString(), Ae += 1;
378
+ this.uuid = Ne.toString(), Ne += 1;
400
379
  }
401
- }, Tn = (e) => (J("data-v-9da4de4c"), e = e(), Q(), e), Rn = { key: 0 }, $n = /* @__PURE__ */ Tn(() => /* @__PURE__ */ O("path", {
380
+ }, In = (e) => (J("data-v-9da4de4c"), e = e(), Q(), e), Rn = { key: 0 }, $n = /* @__PURE__ */ In(() => /* @__PURE__ */ $("path", {
402
381
  fill: "#00112C",
403
382
  "fill-rule": "evenodd",
404
383
  d: "M7.03033 0.96967C6.73744 0.676777 6.26256 0.676777 5.96967 0.96967C5.67678 1.26256 5.67678 1.73744 5.96967 2.03033L7.25 3.31066V5.06654L5.83093 5.88398L4.3138 5.00601L3.8442 3.25567C3.73686 2.8556 3.32553 2.6183 2.92547 2.72563C2.5254 2.83297 2.2881 3.2443 2.39543 3.64436L2.75109 4.96998L1.42547 5.32563C1.0254 5.43297 0.788098 5.8443 0.895433 6.24436C1.00277 6.64443 1.4141 6.88173 1.81416 6.7744L3.56372 6.305L5.08008 7.18253V8.81748L3.56369 9.69502L1.81416 9.22563C1.4141 9.1183 1.00277 9.3556 0.895433 9.75567C0.788098 10.1557 1.0254 10.5671 1.42547 10.6744L2.75109 11.0301L2.39543 12.3557C2.2881 12.7557 2.5254 13.1671 2.92547 13.2744C3.32553 13.3817 3.73686 13.1444 3.8442 12.7444L4.31381 10.994L5.83093 10.116L7.25 10.9335V12.6893L5.96967 13.9697C5.67678 14.2626 5.67678 14.7374 5.96967 15.0303C6.26256 15.3232 6.73744 15.3232 7.03033 15.0303L8 14.0607L8.96967 15.0303C9.26256 15.3232 9.73744 15.3232 10.0303 15.0303C10.3232 14.7374 10.3232 14.2626 10.0303 13.9697L8.75 12.6893V10.9336L10.1692 10.116L11.6857 10.9936L12.1554 12.7444C12.2627 13.1444 12.6741 13.3817 13.0741 13.2744C13.4742 13.1671 13.7115 12.7557 13.6042 12.3557L13.4374 11.7342C13.4337 11.7143 13.4292 11.6943 13.4238 11.6745L13.2497 11.0297L14.5741 10.6744C14.9742 10.5671 15.2115 10.1557 15.1042 9.75567C14.9968 9.3556 14.5855 9.1183 14.1854 9.22563L13.564 9.39237C13.5441 9.39606 13.5241 9.40058 13.5042 9.40595L12.4356 9.69456L10.9201 8.81752V7.18249L12.4363 6.30504L14.1857 6.7744C14.5858 6.88173 14.9971 6.64443 15.1045 6.24436C15.2118 5.8443 14.9745 5.43297 14.5744 5.32563L13.2488 4.96998L13.6045 3.64436C13.7118 3.2443 13.4745 2.83297 13.0744 2.72563C12.6744 2.6183 12.263 2.8556 12.1557 3.25567L11.6861 5.00615L10.1692 5.88396L8.75 5.06645V3.31066L10.0303 2.03033C10.3232 1.73744 10.3232 1.26256 10.0303 0.96967C9.73744 0.676777 9.26256 0.676777 8.96967 0.96967L8 1.93934L7.03033 0.96967ZM6.58008 8.81649V7.18351L8.00008 6.36553L9.42008 7.18351V8.81649L8.00008 9.63447L6.58008 8.81649Z",
405
384
  "clip-rule": "evenodd"
406
385
  }, null, -1));
407
- function On(e, t, d, l, b, a) {
408
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
386
+ function Tn(e, n, c, s, b, a) {
387
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
409
388
  xmlns: "http://www.w3.org/2000/svg",
410
389
  width: "16",
411
390
  height: "16",
412
391
  fill: "none"
413
392
  }), [
414
- e.$attrs["svg-title"] ? (u(), h("title", Rn, M(e.$attrs["svg-title"]), 1)) : P("", !0),
393
+ e.$attrs["svg-title"] ? (g(), S("title", Rn, D(e.$attrs["svg-title"]), 1)) : w("", !0),
415
394
  $n
416
395
  ], 16);
417
396
  }
418
- const Xe = /* @__PURE__ */ W(In, [["render", On], ["__scopeId", "data-v-9da4de4c"]]);
397
+ const We = /* @__PURE__ */ B(En, [["render", Tn], ["__scopeId", "data-v-9da4de4c"]]);
419
398
  let we = 0;
420
- const An = {
399
+ const On = {
421
400
  beforeCreate() {
422
401
  this.uuid = we.toString(), we += 1;
423
402
  }
424
- }, ye = (e) => (J("data-v-2fe7aaf4"), e = e(), Q(), e), wn = { key: 0 }, Nn = /* @__PURE__ */ ye(() => /* @__PURE__ */ O("path", {
403
+ }, Se = (e) => (J("data-v-2fe7aaf4"), e = e(), Q(), e), An = { key: 0 }, Nn = /* @__PURE__ */ Se(() => /* @__PURE__ */ $("path", {
425
404
  fill: "#00112C",
426
405
  "fill-rule": "evenodd",
427
406
  d: "M1.85822 8.00063C2.23115 8.61494 2.6599 9.19394 3.1392 9.73021C3.41522 10.0391 3.38862 10.5132 3.07978 10.7892C2.77094 11.0652 2.29681 11.0386 2.02078 10.7298C1.37391 10.006 0.808653 9.21323 0.335231 8.36577C0.209001 8.13981 0.2082 7.86474 0.333112 7.63805C0.481818 7.36817 1.22715 6.04687 2.49452 4.78481C3.75589 3.52873 5.61815 2.25 7.98999 2.25H7.99122C8.59964 2.251 9.20512 2.33426 9.79122 2.4975C10.1903 2.60864 10.4236 3.02221 10.3125 3.42123C10.2014 3.82026 9.78778 4.05364 9.38876 3.9425C8.9331 3.81559 8.46237 3.75083 7.98937 3.75C6.18148 3.75022 4.67897 4.7264 3.55296 5.84769C2.73159 6.66562 2.15512 7.51757 1.85822 8.00063Z",
428
407
  "clip-rule": "evenodd"
429
- }, null, -1)), Un = /* @__PURE__ */ ye(() => /* @__PURE__ */ O("path", {
408
+ }, null, -1)), wn = /* @__PURE__ */ Se(() => /* @__PURE__ */ $("path", {
430
409
  fill: "#00112C",
431
410
  "fill-rule": "evenodd",
432
411
  d: "M12.9002 5.21082C13.209 4.9348 13.6832 4.9614 13.9592 5.27024C14.6061 5.99402 15.1713 6.7868 15.6448 7.63425C15.771 7.86021 15.7718 8.13529 15.6469 8.36198C15.4982 8.63186 14.7528 9.95316 13.4855 11.2152C12.2241 12.4713 10.3618 13.75 7.98999 13.75L7.98876 13.75C7.38034 13.749 6.77486 13.6658 6.18876 13.5025C5.78973 13.3914 5.55635 12.9778 5.66749 12.5788C5.77863 12.1798 6.1922 11.9464 6.59123 12.0575C7.0469 12.1844 7.51763 12.2492 7.99064 12.25C9.79852 12.2498 11.301 11.2736 12.427 10.1523C13.2484 9.3344 13.8249 8.48246 14.1218 7.99939C13.7488 7.38508 13.3201 6.80609 12.8408 6.26982C12.5648 5.96097 12.5914 5.48685 12.9002 5.21082Z",
433
412
  "clip-rule": "evenodd"
434
- }, null, -1)), Pn = /* @__PURE__ */ ye(() => /* @__PURE__ */ O("path", {
413
+ }, null, -1)), Un = /* @__PURE__ */ Se(() => /* @__PURE__ */ $("path", {
435
414
  fill: "#00112C",
436
415
  "fill-rule": "evenodd",
437
416
  d: "M13.5203 3.53033C13.8132 3.23744 13.8132 2.76256 13.5203 2.46967C13.2274 2.17678 12.7526 2.17678 12.4597 2.46967L2.45966 12.4697C2.16677 12.7626 2.16677 13.2374 2.45966 13.5303C2.75255 13.8232 3.22743 13.8232 3.52032 13.5303L13.5203 3.53033Z",
438
417
  "clip-rule": "evenodd"
439
418
  }, null, -1));
440
- function Dn(e, t, d, l, b, a) {
441
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
419
+ function Pn(e, n, c, s, b, a) {
420
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
442
421
  xmlns: "http://www.w3.org/2000/svg",
443
422
  width: "16",
444
423
  height: "16",
445
424
  fill: "none"
446
425
  }), [
447
- e.$attrs["svg-title"] ? (u(), h("title", wn, M(e.$attrs["svg-title"]), 1)) : P("", !0),
426
+ e.$attrs["svg-title"] ? (g(), S("title", An, D(e.$attrs["svg-title"]), 1)) : w("", !0),
448
427
  Nn,
449
- Un,
450
- Pn
428
+ wn,
429
+ Un
451
430
  ], 16);
452
431
  }
453
- const Mn = /* @__PURE__ */ W(An, [["render", Dn], ["__scopeId", "data-v-2fe7aaf4"]]);
454
- let Ne = 0;
455
- const zn = {
432
+ const Dn = /* @__PURE__ */ B(On, [["render", Pn], ["__scopeId", "data-v-2fe7aaf4"]]);
433
+ let Ue = 0;
434
+ const Mn = {
456
435
  beforeCreate() {
457
- this.uuid = Ne.toString(), Ne += 1;
436
+ this.uuid = Ue.toString(), Ue += 1;
458
437
  }
459
- }, qe = (e) => (J("data-v-6e578b8e"), e = e(), Q(), e), Fn = { key: 0 }, kn = /* @__PURE__ */ qe(() => /* @__PURE__ */ O("path", {
438
+ }, Be = (e) => (J("data-v-6e578b8e"), e = e(), Q(), e), zn = { key: 0 }, kn = /* @__PURE__ */ Be(() => /* @__PURE__ */ $("path", {
460
439
  fill: "#00112C",
461
440
  "fill-rule": "evenodd",
462
441
  d: "M5.2525 8C5.2525 6.48 6.4825 5.25 8.0025 5.25C9.5225 5.25 10.7525 6.48 10.7525 8C10.7525 9.52 9.5225 10.75 8.0025 10.75C6.4825 10.75 5.2525 9.52 5.2525 8ZM6.7525 8C6.7525 8.69 7.3125 9.25 8.0025 9.25C8.6925 9.25 9.2525 8.69 9.2525 8C9.2525 7.31 8.6925 6.75 8.0025 6.75C7.3125 6.75 6.7525 7.31 6.7525 8Z",
463
442
  "clip-rule": "evenodd"
464
- }, null, -1)), Gn = /* @__PURE__ */ qe(() => /* @__PURE__ */ O("path", {
443
+ }, null, -1)), Fn = /* @__PURE__ */ Be(() => /* @__PURE__ */ $("path", {
465
444
  fill: "#00112C",
466
445
  "fill-rule": "evenodd",
467
446
  d: "M8.0025 2.25C12.8125 2.25 15.5625 7.43 15.6725 7.65C15.7825 7.87 15.7825 8.12 15.6725 8.34C15.6711 8.34265 15.6692 8.34603 15.667 8.35011C15.4859 8.6842 12.7446 13.74 8.0025 13.74C3.2025 13.74 0.4425 8.56 0.3325 8.34C0.2225 8.13 0.2225 7.87 0.3325 7.65C0.334097 7.64707 0.336157 7.64327 0.33868 7.63861C0.525781 7.29307 3.2565 2.25 8.0025 2.25ZM1.8725 8C2.5325 9.07 4.7525 12.25 8.0025 12.25C11.2425 12.25 13.4725 9.07 14.1325 8C13.4725 6.93 11.2425 3.75 8.0025 3.75C4.7625 3.75 2.5325 6.93 1.8725 8Z",
468
447
  "clip-rule": "evenodd"
469
448
  }, null, -1));
470
- function Bn(e, t, d, l, b, a) {
471
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
449
+ function Gn(e, n, c, s, b, a) {
450
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
472
451
  xmlns: "http://www.w3.org/2000/svg",
473
452
  width: "16",
474
453
  height: "16",
475
454
  fill: "none"
476
455
  }), [
477
- e.$attrs["svg-title"] ? (u(), h("title", Fn, M(e.$attrs["svg-title"]), 1)) : P("", !0),
456
+ e.$attrs["svg-title"] ? (g(), S("title", zn, D(e.$attrs["svg-title"]), 1)) : w("", !0),
478
457
  kn,
479
- Gn
458
+ Fn
480
459
  ], 16);
481
460
  }
482
- const Vn = /* @__PURE__ */ W(zn, [["render", Bn], ["__scopeId", "data-v-6e578b8e"]]), Ue = {
461
+ const Vn = /* @__PURE__ */ B(Mn, [["render", Gn], ["__scopeId", "data-v-6e578b8e"]]), Pe = {
483
462
  "en-US": {
484
463
  moveColumnLeft: "Move column left",
485
464
  moveColumnRight: "Move column right",
@@ -488,16 +467,16 @@ const Vn = /* @__PURE__ */ W(zn, [["render", Bn], ["__scopeId", "data-v-6e578b8e
488
467
  showColumn: "Show column",
489
468
  hideColumn: "Hide column"
490
469
  }
491
- }, Wn = Ce({
492
- i18n: { messages: Ue },
470
+ }, Wn = fe({
471
+ i18n: { messages: Pe },
493
472
  name: "data-grid-columns",
494
473
  components: {
495
- BentoCheckbox: Ve,
496
- BentoInfoIcon: zt,
474
+ BentoCheckbox: Fe,
475
+ BentoInfoIcon: Zt,
497
476
  BentoTypography: he,
498
- BentoMenu: Ft,
499
- TriangleUp: gn,
500
- TriangleDown: vn
477
+ BentoMenu: jt,
478
+ TriangleUp: cn,
479
+ TriangleDown: pn
501
480
  },
502
481
  props: {
503
482
  /**
@@ -575,6 +554,7 @@ const Vn = /* @__PURE__ */ W(zn, [["render", Bn], ["__scopeId", "data-v-6e578b8e
575
554
  },
576
555
  emits: [
577
556
  R.COLUMN_RESIZE,
557
+ R.COLUMN_RESIZING,
578
558
  R.SORT,
579
559
  R.SELECT_ALL_ROWS,
580
560
  R.COLUMN_DRAG_START,
@@ -586,143 +566,141 @@ const Vn = /* @__PURE__ */ W(zn, [["render", Bn], ["__scopeId", "data-v-6e578b8e
586
566
  R.COLUMN_MENU_OPEN,
587
567
  R.COLUMN_MENU_CLOSE
588
568
  ],
589
- setup(e, { emit: t }) {
590
- const { t: d } = We({ messages: Ue }), { columns: l, sortBy: b } = be(e), a = U(e.allItemsSelectedState), v = (o) => t(R.SELECT_ALL_ROWS, o), _ = (o) => o.field === te, { startResize: p, isResizing: c } = Jt(l, t), { conditionalSortDirectionClasses: m, sortByColumnField: i } = tn(b, l, t), r = (o) => {
591
- var T;
592
- if (!o.sortable)
569
+ setup(e, { emit: n }) {
570
+ const { t: c } = Ge({ messages: Pe }), { columns: s, sortBy: b } = be(e), a = U(e.allItemsSelectedState), v = (t) => n(R.SELECT_ALL_ROWS, t), _ = (t) => t.field === te, { startResize: m, isResizing: f } = qt(s, n), { conditionalSortDirectionClasses: p, sortByColumnField: i } = en(b, s, n), r = (t) => {
571
+ var I;
572
+ if (!t.sortable)
593
573
  return null;
594
- const C = (T = e.sortBy.find(({ field: I }) => I === o.field)) == null ? void 0 : T.direction;
595
- return C ? {
574
+ const d = (I = e.sortBy.find(({ field: x }) => x === t.field)) == null ? void 0 : I.direction;
575
+ return d ? {
596
576
  [q.ASCENDING]: ge.ASCENDING,
597
577
  [q.DESCENDING]: ge.DESCENDING
598
- }[C] : ge.NONE;
599
- }, n = $(() => (o) => e.hasDraggableColumns ? {
600
- dragstart: (C) => {
601
- t(R.COLUMN_DRAG_START, o, C);
578
+ }[d] : ge.NONE;
579
+ }, o = T(() => (t) => e.hasDraggableColumns ? {
580
+ dragstart: (d) => {
581
+ n(R.COLUMN_DRAG_START, t, d);
602
582
  },
603
- dragover: (C) => {
604
- C.preventDefault();
583
+ dragover: (d) => {
584
+ d.preventDefault();
605
585
  },
606
- dragenter: (C) => {
607
- C.preventDefault(), t(R.COLUMN_DRAG_ENTER, o, C);
586
+ dragenter: (d) => {
587
+ d.preventDefault(), n(R.COLUMN_DRAG_ENTER, t, d);
608
588
  },
609
589
  drop: () => {
610
- t(R.COLUMN_DROP, o);
590
+ n(R.COLUMN_DROP, t);
611
591
  },
612
592
  dragend: () => {
613
- t(R.COLUMN_DRAG_END);
593
+ n(R.COLUMN_DRAG_END);
614
594
  }
615
- } : {}), g = $(() => (o) => [
595
+ } : {}), C = T(() => (t) => [
616
596
  {
617
- text: d("moveColumnLeft"),
618
- handler: () => t(R.COLUMN_MOVE, o, -1),
619
- icon: Bt,
620
- disabled: e.columns[0].field === o.field
597
+ text: c("moveColumnLeft"),
598
+ handler: () => n(R.COLUMN_MOVE, t, -1),
599
+ icon: Xt,
600
+ disabled: e.columns[0].field === t.field
621
601
  },
622
602
  {
623
- text: d("moveColumnRight"),
624
- handler: () => t(R.COLUMN_MOVE, o, 1),
625
- icon: En,
626
- disabled: e.columns[e.columns.length - 1].field === o.field
603
+ text: c("moveColumnRight"),
604
+ handler: () => n(R.COLUMN_MOVE, t, 1),
605
+ icon: Ln,
606
+ disabled: e.columns[e.columns.length - 1].field === t.field
627
607
  },
628
608
  {
629
- text: o != null && o.frozen ? d("unfreezeColumn") : d("freezeColumn"),
630
- handler: () => t(R.COLUMN_UPDATE, { ...o, frozen: !(o != null && o.frozen) }),
631
- icon: Xe
609
+ text: t != null && t.frozen ? c("unfreezeColumn") : c("freezeColumn"),
610
+ handler: () => n(R.COLUMN_UPDATE, { ...t, frozen: !(t != null && t.frozen) }),
611
+ icon: We
632
612
  },
633
613
  {
634
- text: (o == null ? void 0 : o.visible) !== !1 ? d("hideColumn") : d("showColumn"),
614
+ text: (t == null ? void 0 : t.visible) !== !1 ? c("hideColumn") : c("showColumn"),
635
615
  handler: () => {
636
- t(R.COLUMN_UPDATE, {
637
- ...o,
638
- visible: (o == null ? void 0 : o.visible) === !1
616
+ n(R.COLUMN_UPDATE, {
617
+ ...t,
618
+ visible: (t == null ? void 0 : t.visible) === !1
639
619
  });
640
620
  },
641
- icon: (o == null ? void 0 : o.visible) !== !1 ? Mn : Vn,
642
- disabled: (o == null ? void 0 : o.mandatory) || (o == null ? void 0 : o.visible) !== !1 && e.isOnlyOneVisibleColumn
621
+ icon: (t == null ? void 0 : t.visible) !== !1 ? Dn : Vn,
622
+ disabled: (t == null ? void 0 : t.mandatory) || (t == null ? void 0 : t.visible) !== !1 && e.isOnlyOneVisibleColumn
643
623
  }
644
- ]), f = (o) => {
645
- let C = {};
646
- return _(o) || (C = {
647
- ...n.value(o)
648
- }), o.sortable && (C.click = () => i(o.field), C.keydown = (E) => {
649
- E.keyCode === Y.ENTER && i(o.field);
650
- }), C;
651
- }, S = $(
624
+ ]), u = (t) => {
625
+ let d = {};
626
+ return _(t) || (d = {
627
+ ...o.value(t)
628
+ }), t.sortable && (d.click = () => i(t.field), d.keydown = (E) => {
629
+ E.keyCode === Z.ENTER && i(t.field);
630
+ }), d;
631
+ }, h = T(
652
632
  () => {
653
- var o;
654
- return (o = l.value[0]) != null && o.frozen ? { "b-data-grid-columns--frozen": !0 } : {
633
+ var t;
634
+ return (t = s.value[0]) != null && t.frozen ? { "b-data-grid-columns--frozen": !0 } : {
655
635
  "b-data-grid-columns--unfrozen": !0,
656
636
  "b-data-grid-columns--config-settings-margin": e.hasColumnPanel
657
637
  };
658
638
  }
659
- ), L = (o) => {
660
- var C, E, T, I, se, ne, ae, re, de, oe;
639
+ ), y = (t, d) => t && d === 0 ? Ie.BOTTOM_START : Ie.BOTTOM_END, A = (t) => {
640
+ var d, E, I, x, ne, ae, re, de, oe, ue;
661
641
  return {
662
- "b-data-grid-columns__column--sortable": o.sortable,
663
- "b-data-grid-columns__column--padding-left-unset": ((C = o == null ? void 0 : o.padding) == null ? void 0 : C.left) === !1,
664
- "b-data-grid-columns__column--padding-right-unset": ((E = o == null ? void 0 : o.padding) == null ? void 0 : E.right) === !1,
665
- "b-data-grid-columns__column--numeric": o == null ? void 0 : o.numeric,
666
- "b-data-grid-columns__column--frozen": o == null ? void 0 : o.frozen,
667
- "b-data-grid-columns__column--is-re-ordering": (o == null ? void 0 : o.field) === ((I = (T = e.draggingColumns) == null ? void 0 : T.dragging) == null ? void 0 : I.field),
668
- "b-data-grid-columns__column--is-re-ordering-target-left": (o == null ? void 0 : o.field) === ((ne = (se = e.draggingColumns) == null ? void 0 : se.target) == null ? void 0 : ne.field) && ((ae = e.draggingColumns) == null ? void 0 : ae.dragToLeft),
669
- "b-data-grid-columns__column--is-re-ordering-target-right": (o == null ? void 0 : o.field) === ((de = (re = e.draggingColumns) == null ? void 0 : re.target) == null ? void 0 : de.field) && !((oe = e.draggingColumns) != null && oe.dragToLeft)
642
+ "b-data-grid-columns__column--sortable": t.sortable,
643
+ "b-data-grid-columns__column--padding-left-unset": ((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) === !1,
644
+ "b-data-grid-columns__column--padding-right-unset": ((E = t == null ? void 0 : t.padding) == null ? void 0 : E.right) === !1,
645
+ "b-data-grid-columns__column--numeric": t == null ? void 0 : t.numeric,
646
+ "b-data-grid-columns__column--frozen": t == null ? void 0 : t.frozen,
647
+ "b-data-grid-columns__column--is-re-ordering": (t == null ? void 0 : t.field) === ((x = (I = e.draggingColumns) == null ? void 0 : I.dragging) == null ? void 0 : x.field),
648
+ "b-data-grid-columns__column--is-re-ordering-target-left": (t == null ? void 0 : t.field) === ((ae = (ne = e.draggingColumns) == null ? void 0 : ne.target) == null ? void 0 : ae.field) && ((re = e.draggingColumns) == null ? void 0 : re.dragToLeft),
649
+ "b-data-grid-columns__column--is-re-ordering-target-right": (t == null ? void 0 : t.field) === ((oe = (de = e.draggingColumns) == null ? void 0 : de.target) == null ? void 0 : oe.field) && !((ue = e.draggingColumns) != null && ue.dragToLeft)
670
650
  };
671
- }, A = $(() => ({
651
+ }, z = T(() => ({
672
652
  "b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns
673
653
  }));
674
654
  return {
675
655
  // Values
676
656
  DATAGRID_SELECT_FIELD_NAME: te,
677
657
  // Styles and classes
678
- conditionalColumnClasses: L,
679
- conditionalColumnSeparatorClasses: A,
680
- conditionalColumnsClasses: S,
658
+ conditionalColumnClasses: A,
659
+ conditionalColumnSeparatorClasses: z,
660
+ conditionalColumnsClasses: h,
681
661
  // Selecting
682
662
  allItemsSelectedCheckboxState: a,
683
663
  isSelectColumn: _,
684
664
  onAllRowSelect: v,
685
665
  // Sorting
686
- conditionalSortDirectionClasses: m,
666
+ conditionalSortDirectionClasses: p,
687
667
  sortByColumnField: i,
688
668
  getSortingColumnDirection: r,
689
669
  // Resizing
690
- startResize: p,
691
- isResizing: c,
670
+ startResize: m,
671
+ isResizing: f,
692
672
  // Event handlers
693
- dataGridColumnEvents: f,
673
+ dataGridColumnEvents: u,
694
674
  // Dragging
695
- draggingEventsForColumn: n,
675
+ draggingEventsForColumn: o,
696
676
  // Contextual menu
697
- contextualMenuData: g,
677
+ contextualMenuData: C,
678
+ computeMenuPosition: y,
698
679
  // Enums
699
- BentoButtonVariant: Ze,
700
680
  BentoDatagridSortDirection: q,
701
- BentoTypographyElement: fe,
702
- BentoPopoverPositions: He,
703
681
  DatagridColumnsEvent: R
704
682
  };
705
683
  }
706
684
  });
707
- const Hn = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Zn = {
685
+ const Bn = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Hn = {
708
686
  key: 0,
709
687
  class: "b-data-grid-columns__column-actions"
710
- }, Yn = {
688
+ }, Zn = {
711
689
  key: 0,
712
690
  class: "b-data-grid-columns__column-sort"
713
691
  }, jn = ["data-testid", "onMousedown"], Xn = {
714
692
  key: 0,
715
693
  class: "b-data-grid-columns__column-separator"
716
694
  };
717
- function qn(e, t, d, l, b, a) {
718
- const v = N("bento-info-icon"), _ = N("bento-typography"), p = N("triangle-up"), c = N("triangle-down"), m = N("bento-menu"), i = N("bento-checkbox");
719
- return u(), h("div", {
720
- class: Z(["b-data-grid-columns", e.conditionalColumnsClasses]),
695
+ function Yn(e, n, c, s, b, a) {
696
+ const v = N("bento-info-icon"), _ = N("bento-typography"), m = N("triangle-up"), f = N("triangle-down"), p = N("bento-menu"), i = N("bento-checkbox");
697
+ return g(), S("div", {
698
+ class: X(["b-data-grid-columns", e.conditionalColumnsClasses]),
721
699
  "data-testid": "data-grid-columns"
722
700
  }, [
723
- (u(!0), h(j, null, K(e.columns, (r, n) => (u(), h("div", V({
701
+ (g(!0), S(j, null, K(e.columns, (r, o) => (g(), S("div", W({
724
702
  key: r.field,
725
- "aria-colindex": n + 1,
703
+ "aria-colindex": o + 1,
726
704
  "aria-label": r.label,
727
705
  "aria-sort": e.getSortingColumnDirection(r),
728
706
  class: [e.conditionalColumnClasses(r), "b-data-grid-columns__column"],
@@ -732,121 +710,121 @@ function qn(e, t, d, l, b, a) {
732
710
  tabindex: r.sortable ? "0" : "-1",
733
711
  style: { width: `${r.width}px` }
734
712
  }, me(e.dataGridColumnEvents(r), !0)), [
735
- e.isSelectColumn(r) ? (u(), G(i, {
713
+ e.isSelectColumn(r) ? (g(), G(i, {
736
714
  key: 1,
737
715
  "model-value": e.allItemsSelectedCheckboxState.allItemsSelected,
738
716
  "data-testid": "checkbox-select-all",
739
717
  indeterminate: e.allItemsSelectedCheckboxState.isIndeterminate,
740
718
  value: "data-grid-select-all",
741
719
  "onUpdate:modelValue": e.onAllRowSelect
742
- }, null, 8, ["model-value", "indeterminate", "onUpdate:modelValue"])) : (u(), h(j, { key: 0 }, [
743
- D(_, {
744
- el: e.BentoTypographyElement.DIV,
720
+ }, null, 8, ["model-value", "indeterminate", "onUpdate:modelValue"])) : (g(), S(j, { key: 0 }, [
721
+ P(_, {
722
+ el: "div",
745
723
  strongest: "",
746
724
  class: "b-data-grid-columns__column-header"
747
725
  }, {
748
- default: z(() => [
726
+ default: M(() => [
749
727
  le(e.$slots, `head-${r.field}`, { column: r }, () => [
750
- O("span", null, M(r.label), 1),
751
- r.infoIconTooltip ? (u(), G(v, {
728
+ $("span", null, D(r.label), 1),
729
+ r.infoIconTooltip ? (g(), G(v, {
752
730
  key: 0,
753
731
  "tooltip-text": r.infoIconTooltip
754
- }, null, 8, ["tooltip-text"])) : P("", !0)
732
+ }, null, 8, ["tooltip-text"])) : w("", !0)
755
733
  ], !0)
756
734
  ]),
757
735
  _: 2
758
- }, 1032, ["el"]),
759
- r.sortable || e.hasColumnPanel ? (u(), h("div", Zn, [
760
- r.sortable ? (u(), h("div", Yn, [
761
- D(p, {
762
- class: Z(["b-data-grid-columns__column-sort-icon", e.conditionalSortDirectionClasses(r.field, e.BentoDatagridSortDirection.ASCENDING)]),
736
+ }, 1024),
737
+ r.sortable || e.hasColumnPanel ? (g(), S("div", Hn, [
738
+ r.sortable ? (g(), S("div", Zn, [
739
+ P(m, {
740
+ class: X(["b-data-grid-columns__column-sort-icon", e.conditionalSortDirectionClasses(r.field, e.BentoDatagridSortDirection.ASCENDING)]),
763
741
  "svg-title": `${r.field} sort ascending`,
764
742
  "data-testid": `${r.field}-sort-icon-asc`
765
743
  }, null, 8, ["class", "svg-title", "data-testid"]),
766
- D(c, {
767
- class: Z([
744
+ P(f, {
745
+ class: X([
768
746
  "b-data-grid-columns__column-sort-icon",
769
747
  e.conditionalSortDirectionClasses(r.field, e.BentoDatagridSortDirection.DESCENDING)
770
748
  ]),
771
749
  "svg-title": `${r.field}sort descending`,
772
750
  "data-testid": `${r.field}-sort-icon-desc`
773
751
  }, null, 8, ["class", "svg-title", "data-testid"])
774
- ])) : P("", !0),
775
- e.hasColumnPanel ? (u(), G(m, {
752
+ ])) : w("", !0),
753
+ e.hasColumnPanel ? (g(), G(p, {
776
754
  key: 1,
777
755
  class: "b-data-grid-columns__menu",
778
756
  data: e.contextualMenuData(r),
779
- "menu-position": e.hasFirstColumnPanelRightAligned && n === 0 ? e.BentoPopoverPositions.BOTTOM_START : e.BentoPopoverPositions.BOTTOM_END,
757
+ "menu-position": e.computeMenuPosition(e.hasFirstColumnPanelRightAligned, o),
780
758
  "menu-fixed-positioning": !0,
781
- button: { variant: e.BentoButtonVariant.TERTIARY },
782
- onOpen: t[0] || (t[0] = (g) => e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN)),
783
- onClose: t[1] || (t[1] = (g) => e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE))
784
- }, null, 8, ["data", "menu-position", "button"])) : P("", !0)
785
- ])) : P("", !0),
786
- O("div", {
759
+ button: { variant: "tertiary" },
760
+ onOpen: n[0] || (n[0] = (C) => e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN)),
761
+ onClose: n[1] || (n[1] = (C) => e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE))
762
+ }, null, 8, ["data", "menu-position"])) : w("", !0)
763
+ ])) : w("", !0),
764
+ $("div", {
787
765
  "data-testid": `data-grid-column-${r.field}`,
788
- class: Z(["b-data-grid-columns__column-separator-container", e.conditionalColumnSeparatorClasses]),
766
+ class: X(["b-data-grid-columns__column-separator-container", e.conditionalColumnSeparatorClasses]),
789
767
  role: "presentation",
790
- onMousedown: (g) => e.startResize(e.hasResizableColumns, r.field, g),
791
- onClick: t[2] || (t[2] = Tt(() => {
768
+ onMousedown: (C) => e.startResize(e.hasResizableColumns, r.field, C),
769
+ onClick: n[2] || (n[2] = Lt(() => {
792
770
  }, ["stop"]))
793
771
  }, [
794
- !e.isFrozenColumns || e.isFrozenColumns && n !== e.columns.length - 1 ? (u(), h("div", Xn)) : P("", !0)
772
+ !e.isFrozenColumns || e.isFrozenColumns && o !== e.columns.length - 1 ? (g(), S("div", Xn)) : w("", !0)
795
773
  ], 42, jn)
796
774
  ], 64))
797
- ], 16, Hn))), 128))
775
+ ], 16, Bn))), 128))
798
776
  ], 2);
799
777
  }
800
- const Jn = /* @__PURE__ */ W(Wn, [["render", qn], ["__scopeId", "data-v-973754ee"]]);
801
- var X = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(X || {});
802
- let Pe = 0;
803
- const Qn = {
778
+ const qn = /* @__PURE__ */ B(Wn, [["render", Yn], ["__scopeId", "data-v-5397b82f"]]);
779
+ var Y = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(Y || {});
780
+ let De = 0;
781
+ const Jn = {
804
782
  beforeCreate() {
805
- this.uuid = Pe.toString(), Pe += 1;
783
+ this.uuid = De.toString(), De += 1;
806
784
  }
807
- }, Je = (e) => (J("data-v-6e917c82"), e = e(), Q(), e), Kn = { key: 0 }, xn = ["clip-path"], eo = /* @__PURE__ */ Je(() => /* @__PURE__ */ O("path", {
785
+ }, He = (e) => (J("data-v-6e917c82"), e = e(), Q(), e), Qn = { key: 0 }, Kn = ["clip-path"], xn = /* @__PURE__ */ He(() => /* @__PURE__ */ $("path", {
808
786
  fill: "#00112C",
809
787
  "fill-rule": "evenodd",
810
788
  d: "M8.75 1C8.75 0.585786 8.41421 0.25 8 0.25C7.58579 0.25 7.25 0.585786 7.25 1V1.2979C6.57635 1.37321 5.91783 1.54959 5.29672 1.82106L5.15026 1.56623C4.94387 1.2071 4.48542 1.08329 4.12629 1.28969C3.76716 1.49608 3.64335 1.95453 3.84974 2.31366L3.99751 2.57078C3.45281 2.97189 2.97145 3.45265 2.56967 3.99684L2.31372 3.84974C1.95459 3.64335 1.49614 3.76716 1.28975 4.12629C1.08335 4.48542 1.20717 4.94387 1.56629 5.15026L1.81832 5.29511C1.54577 5.91658 1.36849 6.57567 1.29247 7.25H1C0.585786 7.25 0.25 7.58579 0.25 8C0.25 8.41421 0.585786 8.75 1 8.75H1.29249C1.36851 9.42433 1.54581 10.0834 1.81837 10.7049L1.56629 10.8497C1.20717 11.0561 1.08335 11.5146 1.28975 11.8737C1.49614 12.2328 1.95459 12.3567 2.31372 12.1503L2.56974 12.0031C2.97151 12.5473 3.45284 13.028 3.99752 13.4291L3.84974 13.6862C3.64335 14.0454 3.76716 14.5038 4.12629 14.7102C4.48542 14.9166 4.94387 14.7928 5.15027 14.4337L5.29669 14.1789C5.91781 14.4504 6.57634 14.6267 7.25 14.7021V15C7.25 15.4142 7.58579 15.75 8 15.75C8.41421 15.75 8.75 15.4142 8.75 15V14.7021C9.42366 14.6267 10.0822 14.4504 10.7033 14.1789L10.8497 14.4337C11.0561 14.7928 11.5146 14.9166 11.8737 14.7102C12.2328 14.5038 12.3567 14.0454 12.1503 13.6862L12.0025 13.4291C12.5472 13.028 13.0285 12.5473 13.4303 12.0031L13.6863 12.1503C14.0454 12.3567 14.5039 12.2328 14.7103 11.8737C14.9167 11.5146 14.7928 11.0561 14.4337 10.8497L14.1817 10.7049C14.4542 10.0834 14.6315 9.42433 14.7075 8.75H15C15.4142 8.75 15.75 8.41421 15.75 8C15.75 7.58579 15.4142 7.25 15 7.25H14.7075C14.6315 6.57567 14.4542 5.91659 14.1817 5.29512L14.4337 5.15027C14.7928 4.94387 14.9167 4.48542 14.7103 4.12629C14.5039 3.76716 14.0454 3.64335 13.6863 3.84974L13.4303 3.99685C13.0285 3.45266 12.5472 2.9719 12.0025 2.57079L12.1503 2.31366C12.3567 1.95453 12.2328 1.49608 11.8737 1.28969C11.5146 1.08329 11.0561 1.2071 10.8497 1.56623L10.7033 1.82106C10.0822 1.54959 9.42365 1.37321 8.75 1.2979V1ZM3.46027 10.6263C3.46894 10.6414 3.47703 10.6567 3.48455 10.6721C3.81553 11.2301 4.24603 11.7202 4.75273 12.119L6.02977 9.90977C5.87643 9.75181 5.74113 9.57619 5.62698 9.38602L5.62041 9.37508C5.5299 9.2183 5.45553 9.0535 5.39784 8.88345C5.36087 8.77446 5.33077 8.66327 5.30773 8.55053C5.27085 8.37007 5.25205 8.18563 5.25205 7.99994C5.25205 7.51721 5.37912 7.04299 5.62048 6.62494L5.62686 6.61388C5.74103 6.4237 5.87643 6.24812 6.02979 6.09014L4.75273 3.88083C4.24621 4.27955 3.81584 4.76943 3.4849 5.32721C3.47729 5.34287 3.46908 5.35839 3.46027 5.37372C3.45059 5.39055 3.44036 5.40687 3.42962 5.42266C2.98528 6.20874 2.75106 7.09641 2.75 7.99994C2.75106 8.90376 2.98543 9.79172 3.43005 10.578C3.44064 10.5936 3.45072 10.6097 3.46027 10.6263ZM9.22412 7.75044C9.24103 7.83222 9.24976 7.9158 9.25 7.99998C9.24939 8.21721 9.19217 8.4305 9.08403 8.61885C8.96887 8.80892 8.80952 8.96837 8.61952 9.08363C8.43083 9.1913 8.21731 9.24795 8 9.24795C7.78331 9.24795 7.57039 9.19162 7.3821 9.08455C7.19161 8.96935 7.03182 8.80977 6.91637 8.61945C6.876 8.5487 6.84279 8.47445 6.81706 8.39782C6.80127 8.35077 6.78829 8.30283 6.77819 8.25425C6.76089 8.17096 6.75208 8.08579 6.75208 8.00002C6.75208 7.78271 6.80873 7.56919 6.91639 7.38051C7.03152 7.19073 7.19073 7.03152 7.38051 6.91639C7.56919 6.80873 7.78271 6.75208 8.00002 6.75208C8.21734 6.75208 8.43085 6.80873 8.61954 6.91639C8.80954 7.03165 8.96889 7.1911 9.08405 7.38117C9.12468 7.45192 9.15811 7.52619 9.18406 7.60287C9.20042 7.6512 9.21379 7.70048 9.22412 7.75044ZM10.6447 7.24995H13.1953C13.102 6.60939 12.8908 5.98951 12.5703 5.4225C12.5596 5.40676 12.5494 5.39049 12.5397 5.37372C12.531 5.35844 12.5228 5.34299 12.5152 5.32739C12.0559 4.55324 11.4051 3.90987 10.625 3.45947C9.8269 2.99869 8.92157 2.7561 8 2.7561C7.33041 2.7561 6.66938 2.88417 6.05183 3.13095L7.32631 5.3358C7.54562 5.28038 7.77186 5.252 8 5.252C8.48273 5.252 8.95695 5.37907 9.375 5.62043L9.38606 5.62681C9.79104 5.86991 10.1299 6.20898 10.373 6.61395L10.3788 6.62358C10.4505 6.74721 10.5122 6.87582 10.5635 7.00811C10.5944 7.08748 10.6214 7.16818 10.6447 7.24995ZM6.05183 12.869L7.3263 10.6642C7.54562 10.7196 7.77187 10.748 8.00002 10.748C8.48275 10.748 8.95697 10.6209 9.37502 10.3795L9.38602 10.3731C9.791 10.13 10.13 9.791 10.3731 9.38602L10.3788 9.37636C10.4935 9.17854 10.5826 8.96807 10.6448 8.75H13.1953C13.102 9.3907 12.8907 10.0107 12.5701 10.5778C12.5594 10.5935 12.5493 10.6096 12.5397 10.6263C12.531 10.6415 12.5229 10.6568 12.5154 10.6723C12.0574 11.4444 11.4089 12.0864 10.6317 12.5366L10.6263 12.5397L10.6183 12.5443C9.82186 13.0026 8.919 13.2438 8 13.2438C7.33041 13.2438 6.66938 13.1158 6.05183 12.869Z",
811
789
  "clip-rule": "evenodd"
812
- }, null, -1)), to = [
813
- eo
814
- ], no = ["id"], oo = /* @__PURE__ */ Je(() => /* @__PURE__ */ O("rect", {
790
+ }, null, -1)), eo = [
791
+ xn
792
+ ], to = ["id"], no = /* @__PURE__ */ He(() => /* @__PURE__ */ $("rect", {
815
793
  width: "16",
816
794
  height: "16",
817
795
  fill: "#fff"
818
- }, null, -1)), io = [
819
- oo
796
+ }, null, -1)), oo = [
797
+ no
820
798
  ];
821
- function lo(e, t, d, l, b, a) {
822
- return u(), h("svg", V({ role: "img" }, e.$attrs, {
799
+ function io(e, n, c, s, b, a) {
800
+ return g(), S("svg", W({ role: "img" }, e.$attrs, {
823
801
  xmlns: "http://www.w3.org/2000/svg",
824
802
  width: "16",
825
803
  height: "16",
826
804
  fill: "none"
827
805
  }), [
828
- e.$attrs["svg-title"] ? (u(), h("title", Kn, M(e.$attrs["svg-title"]), 1)) : P("", !0),
829
- O("g", {
806
+ e.$attrs["svg-title"] ? (g(), S("title", Qn, D(e.$attrs["svg-title"]), 1)) : w("", !0),
807
+ $("g", {
830
808
  "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")"
831
- }, to, 8, xn),
832
- O("defs", null, [
833
- O("clipPath", {
809
+ }, eo, 8, Kn),
810
+ $("defs", null, [
811
+ $("clipPath", {
834
812
  id: "uia-icons-16-settings__a" + e.uuid
835
- }, io, 8, no)
813
+ }, oo, 8, to)
836
814
  ])
837
815
  ], 16);
838
816
  }
839
- const so = /* @__PURE__ */ W(Qn, [["render", lo], ["__scopeId", "data-v-6e917c82"]]), ao = {
817
+ const lo = /* @__PURE__ */ B(Jn, [["render", io], ["__scopeId", "data-v-6e917c82"]]), so = {
840
818
  "en-US": {
841
819
  toggleColumnVisibility: "Toggle {label} column visibility",
842
820
  toggleColumnFreeze: "Toggle {label} column freeze"
843
821
  }
844
- }, ro = Ce({
845
- i18n: { messages: ao },
822
+ }, ao = fe({
823
+ i18n: { messages: so },
846
824
  name: "bento-data-grid",
847
825
  components: {
848
- BentoFreezeIcon: Xe,
849
- BentoToggle: Ye
826
+ BentoFreezeIcon: We,
827
+ BentoToggle: Ve
850
828
  },
851
829
  props: {
852
830
  /**
@@ -865,71 +843,67 @@ const so = /* @__PURE__ */ W(Qn, [["render", lo], ["__scopeId", "data-v-6e917c82
865
843
  }
866
844
  },
867
845
  emits: ["visible-column", "updated-column"],
868
- setup(e, { emit: t }) {
869
- const d = U(!1), l = $(() => {
870
- var m;
871
- return (m = e.column) == null ? void 0 : m.frozen;
872
- }), b = $(() => {
873
- var m;
874
- return ((m = e.column) == null ? void 0 : m.visible) !== !1;
846
+ setup(e, { emit: n }) {
847
+ const c = U(!1), s = T(() => {
848
+ var p;
849
+ return (p = e.column) == null ? void 0 : p.frozen;
850
+ }), b = T(() => {
851
+ var p;
852
+ return ((p = e.column) == null ? void 0 : p.visible) !== !1;
875
853
  }), a = () => {
876
- t("visible-column", { ...e.column, visible: !b.value });
854
+ n("visible-column", { ...e.column, visible: !b.value });
877
855
  }, v = () => {
878
- t("updated-column", { ...e.column, frozen: !l.value });
856
+ n("updated-column", { ...e.column, frozen: !s.value });
879
857
  }, _ = () => {
880
- l.value || (d.value = !0);
881
- }, p = () => {
882
- l.value || (d.value = !1);
883
- }, c = $(() => ({
884
- ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: l.value
858
+ s.value || (c.value = !0);
859
+ }, m = () => {
860
+ s.value || (c.value = !1);
861
+ }, f = T(() => ({
862
+ ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: s.value
885
863
  }));
886
864
  return {
887
865
  // Values
888
- isFreezeIconOptionShown: d,
889
- isColumnFrozen: l,
890
- freezeIconConditionalClasses: c,
866
+ isFreezeIconOptionShown: c,
867
+ isColumnFrozen: s,
868
+ freezeIconConditionalClasses: f,
891
869
  isColumnVisible: b,
892
870
  // Methods
893
871
  toggleColumnVisibility: a,
894
872
  showFreezeIcon: _,
895
- hideFreezeIcon: p,
896
- toggleColumnFreeze: v,
897
- // Enum
898
- BentoToggleLabelPosition: je,
899
- BentoTypographyElement: fe,
900
- BentoTypographyVariant: Se
873
+ hideFreezeIcon: m,
874
+ toggleColumnFreeze: v
901
875
  };
902
876
  }
903
877
  });
904
- function uo(e, t, d, l, b, a) {
878
+ function ro(e, n, c, s, b, a) {
905
879
  const v = N("bento-toggle"), _ = N("bento-freeze-icon");
906
- return u(), h("div", {
880
+ return g(), S("div", {
907
881
  class: "b-data-grid-config-settings-column-row",
908
- onMouseover: t[0] || (t[0] = (...p) => e.showFreezeIcon && e.showFreezeIcon(...p)),
909
- onMouseleave: t[1] || (t[1] = (...p) => e.hideFreezeIcon && e.hideFreezeIcon(...p))
882
+ onMouseover: n[0] || (n[0] = (...m) => e.showFreezeIcon && e.showFreezeIcon(...m)),
883
+ onMouseleave: n[1] || (n[1] = (...m) => e.hideFreezeIcon && e.hideFreezeIcon(...m))
910
884
  }, [
911
- D(v, {
885
+ P(v, {
912
886
  "aria-label": e.$t("toggleColumnVisibility", { label: e.column.label }),
913
887
  disabled: e.isColumnVisibilityToggleDisabled,
914
- "label-position": e.BentoToggleLabelPosition.AFTER,
888
+ "label-position": "after",
915
889
  value: e.isColumnVisible,
916
890
  onInput: e.toggleColumnVisibility
917
891
  }, {
918
- default: z(() => [
919
- H(M(e.column.label), 1)
892
+ default: M(() => [
893
+ H(D(e.column.label), 1)
920
894
  ]),
921
895
  _: 1
922
- }, 8, ["aria-label", "disabled", "label-position", "value", "onInput"]),
923
- ke(D(_, {
896
+ }, 8, ["aria-label", "disabled", "value", "onInput"]),
897
+ ke(P(_, {
924
898
  "aria-label": e.$t("toggleColumnFreeze", { label: e.column.label }),
925
- class: Z(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
899
+ class: X(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
926
900
  onClick: e.toggleColumnFreeze
927
901
  }, null, 8, ["aria-label", "class", "onClick"]), [
928
- [Rt, e.isColumnFrozen || e.isFreezeIconOptionShown]
902
+ [Et, e.isColumnFrozen || e.isFreezeIconOptionShown]
929
903
  ])
930
904
  ], 32);
931
905
  }
932
- const co = /* @__PURE__ */ W(ro, [["render", uo], ["__scopeId", "data-v-d4c84de9"]]), go = {
906
+ const uo = /* @__PURE__ */ B(ao, [["render", ro], ["__scopeId", "data-v-3ce82b51"]]), co = {
933
907
  "en-US": {
934
908
  closeConfigSettingsPanel: "Close configuration settings panel",
935
909
  configSettingsPanel: "Configuration settings Panel",
@@ -945,21 +919,21 @@ const co = /* @__PURE__ */ W(ro, [["render", uo], ["__scopeId", "data-v-d4c84de9
945
919
  closeSearch: "Close search",
946
920
  noColumnsMatch: "No columns match this search"
947
921
  }
948
- }, Co = Ce({
949
- i18n: { messages: go },
922
+ }, go = fe({
923
+ i18n: { messages: co },
950
924
  name: "bento-data-grid",
951
925
  components: {
952
- BentoCrossIcon: Zt,
953
- BentoPopover: kt,
954
- BentoSettingsIcon: so,
955
- BentoButton: Gt,
956
- BentoDataGridConfigSettingsConfigRow: co,
957
- BentoSearchBar: Vt,
958
- BentoSearchIcon: Yt,
959
- BentoToggle: Ye,
926
+ BentoCrossIcon: Vt,
927
+ BentoPopover: Mt,
928
+ BentoSettingsIcon: lo,
929
+ BentoButton: zt,
930
+ BentoDataGridConfigSettingsConfigRow: uo,
931
+ BentoSearchBar: kt,
932
+ BentoSearchIcon: Wt,
933
+ BentoToggle: Ve,
960
934
  BentoTypography: he
961
935
  },
962
- directives: { BentoClickOutsideDirective: Ht },
936
+ directives: { BentoClickOutsideDirective: Gt },
963
937
  props: {
964
938
  /**
965
939
  * Column definitions
@@ -976,241 +950,240 @@ const co = /* @__PURE__ */ W(ro, [["render", uo], ["__scopeId", "data-v-d4c84de9
976
950
  default: !1
977
951
  }
978
952
  },
979
- emits: [X.CONFIG_SETTINGS, X.UPDATE_COLUMNS],
980
- setup(e, { emit: t }) {
981
- const d = U(null), l = jt("data-grid-config-settings-popover"), b = U(null), a = U(!1), v = U(!0), _ = U(""), p = Ge(e, "columns"), c = U(!1), m = Wt(_, p), i = () => {
953
+ emits: [Y.CONFIG_SETTINGS, Y.UPDATE_COLUMNS],
954
+ setup(e, { emit: n }) {
955
+ const c = U(null), s = Bt("data-grid-config-settings-popover"), b = U(null), a = U(!1), v = U(!0), _ = U(""), m = It(e, "columns"), f = U(!1), p = Ft(_, m), i = () => {
982
956
  _.value = "";
983
- }, r = $(
984
- () => !e.columns.some((E) => E.visible === !1 && !E.mandatory)
985
- ), n = () => {
986
- i(), c.value = !c.value, c.value && x(() => b.value.bentoInputField.focusInput()), v.value = r.value;
987
- }, g = (E) => E.mandatory ?? !1, f = (E) => {
988
- const T = e.columns.map((I) => ({
957
+ }, r = T(
958
+ () => !e.columns.some((d) => d.visible === !1 && !d.mandatory)
959
+ ), o = () => {
960
+ i(), f.value = !f.value, f.value && se(() => {
961
+ var d;
962
+ return (d = b.value.bentoInputField) == null ? void 0 : d.focusInput();
963
+ }), v.value = r.value;
964
+ }, C = (d) => d.mandatory ?? !1, u = (d) => {
965
+ const E = e.columns.map((I) => ({
989
966
  ...I,
990
- visible: E.field === I.field ? E.visible : I.visible
967
+ visible: d.field === I.field ? d.visible : I.visible
991
968
  }));
992
- t(X.UPDATE_COLUMNS, T);
993
- }, S = (E) => {
994
- E ? t(
995
- X.UPDATE_COLUMNS,
996
- e.columns.map((T) => ({ ...T, visible: !0 }))
997
- ) : t(
998
- X.UPDATE_COLUMNS,
999
- e.columns.map((T) => ({ ...T, visible: (T == null ? void 0 : T.mandatory) === !0 }))
969
+ n(Y.UPDATE_COLUMNS, E);
970
+ }, h = (d) => {
971
+ d ? n(
972
+ Y.UPDATE_COLUMNS,
973
+ e.columns.map((E) => ({ ...E, visible: !0 }))
974
+ ) : n(
975
+ Y.UPDATE_COLUMNS,
976
+ e.columns.map((E) => ({ ...E, visible: (E == null ? void 0 : E.mandatory) === !0 }))
1000
977
  );
1001
- }, L = (E) => {
1002
- const T = e.columns.map((I) => ({
978
+ }, y = (d) => {
979
+ const E = e.columns.map((I) => ({
1003
980
  ...I,
1004
- frozen: E.field === I.field ? !!(E != null && E.frozen) : !!(I != null && I.frozen)
981
+ frozen: d.field === I.field ? !!(d != null && d.frozen) : !!(I != null && I.frozen)
1005
982
  }));
1006
- t(X.UPDATE_COLUMNS, T);
1007
- }, A = (E) => {
1008
- a.value = E, v.value = r.value;
983
+ n(Y.UPDATE_COLUMNS, E);
984
+ }, A = (d) => {
985
+ a.value = d, v.value = r.value;
1009
986
  };
1010
987
  return {
1011
988
  // Values
1012
- configSettingsButtonRef: d,
1013
- popoverId: l,
989
+ configSettingsButtonRef: c,
990
+ popoverId: s,
1014
991
  isConfigSettingsPanelOpen: a,
1015
992
  allColumnsVisbilityToggleState: v,
1016
- filteredColumnVisibilityColumns: m,
993
+ filteredColumnVisibilityColumns: p,
1017
994
  searchTerm: _,
1018
- isColumnVisibilityFilterShown: c,
995
+ isColumnVisibilityFilterShown: f,
1019
996
  searchBarRef: b,
1020
997
  DATAGRID_SELECT_FIELD_NAME: te,
1021
998
  // Methods
1022
999
  setConfigSettingsPanelVisibility: A,
1023
- emitCondensedToggle: (E) => t(X.CONFIG_SETTINGS, E),
1024
- toggleAllColumnVisibility: S,
1000
+ emitCondensedToggle: (d) => n(Y.CONFIG_SETTINGS, d),
1001
+ toggleAllColumnVisibility: h,
1025
1002
  clearAction: i,
1026
- toggleColumnFilter: n,
1027
- emitVisibleColumns: f,
1028
- emitFrozenColumns: L,
1003
+ toggleColumnFilter: o,
1004
+ emitVisibleColumns: u,
1005
+ emitFrozenColumns: y,
1029
1006
  onClickOutside: () => A(!1),
1030
- isColumnVisibilityToggleDisabled: g,
1031
- // Enum
1032
- BentoToggleLabelPosition: je,
1033
- BentoTypographyElement: fe,
1034
- BentoTypographyVariant: Se,
1035
- BentoButtonVariant: Ze,
1036
- BentoPopoverPositions: He
1007
+ isColumnVisibilityToggleDisabled: C
1037
1008
  };
1038
1009
  }
1039
1010
  });
1040
- const fo = (e) => (J("data-v-9abc2ebf"), e = e(), Q(), e), _o = { class: "b-data-grid-config-settings" }, mo = { class: "b-data-grid-config-settings__button-and-seperator" }, po = /* @__PURE__ */ fo(() => /* @__PURE__ */ O("div", { class: "b-data-grid-config-settings__column-separator" }, null, -1)), vo = { class: "b-data-grid-config-settings__button-container" }, bo = { class: "b-data-grid-config-settings__panel-header" }, ho = { class: "b-data-grid-config-settings__condensed-view-settings" }, So = { class: "b-data-grid-config-settings__column-visibility-settings" }, yo = { class: "b-data-grid-config-settings__column-visibility-header" }, Lo = {
1011
+ const fo = (e) => (J("data-v-87adbca0"), e = e(), Q(), e), Co = { class: "b-data-grid-config-settings" }, _o = { class: "b-data-grid-config-settings__button-and-separator" }, mo = /* @__PURE__ */ fo(() => /* @__PURE__ */ $("div", { class: "b-data-grid-config-settings__column-separator" }, null, -1)), po = {
1012
+ ref: "configSettingsButtonRef",
1013
+ class: "b-data-grid-config-settings__button-container"
1014
+ }, vo = { class: "b-data-grid-config-settings__panel-header" }, bo = { class: "b-data-grid-config-settings__condensed-view-settings" }, ho = { class: "b-data-grid-config-settings__column-visibility-settings" }, So = { class: "b-data-grid-config-settings__column-visibility-header" }, yo = {
1041
1015
  key: 0,
1042
1016
  class: "b-data-grid-config-settings__column-visibility-search"
1043
- }, Eo = {
1017
+ }, Lo = {
1044
1018
  key: 1,
1045
1019
  class: "b-data-grid-config-settings__column-visibility-show-all"
1046
- }, Io = { class: "b-data-grid-config-settings__column-visibility-toggles" };
1047
- function To(e, t, d, l, b, a) {
1048
- const v = N("bento-settings-icon"), _ = N("bento-button"), p = N("bento-typography"), c = N("bento-cross-icon"), m = N("bento-toggle"), i = N("bento-search-icon"), r = N("bento-search-bar"), n = N("bento-data-grid-config-settings-config-row"), g = N("bento-popover"), f = $t("bento-click-outside-directive");
1049
- return ke((u(), h("div", _o, [
1050
- O("div", mo, [
1051
- po,
1052
- O("div", vo, [
1053
- D(_, {
1054
- ref: "configSettingsButtonRef",
1020
+ }, Eo = { class: "b-data-grid-config-settings__column-visibility-toggles" };
1021
+ function Io(e, n, c, s, b, a) {
1022
+ const v = N("bento-settings-icon"), _ = N("bento-button"), m = N("bento-typography"), f = N("bento-cross-icon"), p = N("bento-toggle"), i = N("bento-search-icon"), r = N("bento-search-bar"), o = N("bento-data-grid-config-settings-config-row"), C = N("bento-popover"), u = Rt("bento-click-outside-directive");
1023
+ return ke((g(), S("div", Co, [
1024
+ $("div", _o, [
1025
+ mo,
1026
+ $("div", po, [
1027
+ P(_, {
1055
1028
  "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
1056
- variant: e.BentoButtonVariant.TERTIARY,
1057
- onClick: t[0] || (t[0] = (S) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
1029
+ variant: "tertiary",
1030
+ onClick: n[0] || (n[0] = (h) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
1058
1031
  }, {
1059
- iconLeft: z(() => [
1060
- D(v, {
1032
+ iconLeft: M(() => [
1033
+ P(v, {
1061
1034
  "svg-title": e.$t("toggleConfigSettingsPanelVisibility")
1062
1035
  }, null, 8, ["svg-title"])
1063
1036
  ]),
1064
1037
  _: 1
1065
- }, 8, ["aria-controls", "variant"])
1066
- ])
1038
+ }, 8, ["aria-controls"])
1039
+ ], 512)
1067
1040
  ]),
1068
- e.configSettingsButtonRef ? (u(), G(g, {
1041
+ e.configSettingsButtonRef ? (g(), G(C, {
1069
1042
  key: 0,
1070
1043
  id: e.popoverId,
1071
1044
  open: e.isConfigSettingsPanelOpen,
1072
1045
  class: "b-data-grid-config-settings__panel",
1073
1046
  "aria-label": e.$t("configSettingsPanel"),
1074
1047
  "target-element": e.configSettingsButtonRef,
1075
- position: e.BentoPopoverPositions.BOTTOM
1048
+ position: "bottom-end"
1076
1049
  }, {
1077
- default: z(() => [
1078
- O("div", bo, [
1079
- D(p, {
1080
- el: e.BentoTypographyElement.SPAN,
1050
+ default: M(() => [
1051
+ $("div", vo, [
1052
+ P(m, {
1053
+ el: "span",
1081
1054
  strongest: ""
1082
1055
  }, {
1083
- default: z(() => [
1084
- H(M(e.$t("displayOptions")), 1)
1056
+ default: M(() => [
1057
+ H(D(e.$t("displayOptions")), 1)
1085
1058
  ]),
1086
1059
  _: 1
1087
- }, 8, ["el"]),
1088
- D(_, {
1089
- variant: e.BentoButtonVariant.TERTIARY,
1090
- onClick: t[1] || (t[1] = (S) => e.setConfigSettingsPanelVisibility(!1))
1060
+ }),
1061
+ P(_, {
1062
+ variant: "tertiary",
1063
+ onClick: n[1] || (n[1] = (h) => e.setConfigSettingsPanelVisibility(!1))
1091
1064
  }, {
1092
- iconLeft: z(() => [
1093
- D(c, {
1065
+ iconLeft: M(() => [
1066
+ P(f, {
1094
1067
  "svg-title": e.$t("closeConfigSettingsPanel")
1095
1068
  }, null, 8, ["svg-title"])
1096
1069
  ]),
1097
1070
  _: 1
1098
- }, 8, ["variant"])
1071
+ })
1099
1072
  ]),
1100
- O("div", ho, [
1101
- D(p, {
1073
+ $("div", bo, [
1074
+ P(m, {
1102
1075
  class: "b-data-grid-config-settings__condensed-view-title",
1103
- el: e.BentoTypographyElement.SPAN,
1076
+ el: "span",
1104
1077
  stronger: ""
1105
1078
  }, {
1106
- default: z(() => [
1107
- H(M(e.$t("size")), 1)
1079
+ default: M(() => [
1080
+ H(D(e.$t("size")), 1)
1108
1081
  ]),
1109
1082
  _: 1
1110
- }, 8, ["el"]),
1111
- D(m, {
1112
- "label-position": e.BentoToggleLabelPosition.AFTER,
1083
+ }),
1084
+ P(p, {
1085
+ "label-position": "after",
1113
1086
  "aria-label": e.$t("condensedToggle"),
1114
1087
  value: e.condensed,
1115
1088
  onInput: e.emitCondensedToggle
1116
1089
  }, {
1117
- default: z(() => [
1118
- H(M(e.$t("condensed")), 1)
1090
+ default: M(() => [
1091
+ H(D(e.$t("condensed")), 1)
1119
1092
  ]),
1120
1093
  _: 1
1121
- }, 8, ["label-position", "aria-label", "value", "onInput"])
1094
+ }, 8, ["aria-label", "value", "onInput"])
1122
1095
  ]),
1123
- O("div", So, [
1124
- O("div", yo, [
1125
- D(p, {
1096
+ $("div", ho, [
1097
+ $("div", So, [
1098
+ P(m, {
1126
1099
  class: "b-data-grid-config-settings__column-visibility-title",
1127
- el: e.BentoTypographyElement.SPAN,
1100
+ el: "span",
1128
1101
  stronger: ""
1129
1102
  }, {
1130
- default: z(() => [
1131
- H(M(e.$t("columns")), 1)
1103
+ default: M(() => [
1104
+ H(D(e.$t("columns")), 1)
1132
1105
  ]),
1133
1106
  _: 1
1134
- }, 8, ["el"]),
1135
- e.isColumnVisibilityFilterShown ? (u(), G(_, {
1107
+ }),
1108
+ e.isColumnVisibilityFilterShown ? (g(), G(_, {
1136
1109
  key: 1,
1137
- variant: e.BentoButtonVariant.TERTIARY,
1110
+ variant: "tertiary",
1138
1111
  onClick: e.toggleColumnFilter
1139
1112
  }, {
1140
- iconLeft: z(() => [
1141
- D(c)
1113
+ iconLeft: M(() => [
1114
+ P(f)
1142
1115
  ]),
1143
- default: z(() => [
1144
- H(" " + M(e.$t("closeSearch")), 1)
1116
+ default: M(() => [
1117
+ H(" " + D(e.$t("closeSearch")), 1)
1145
1118
  ]),
1146
1119
  _: 1
1147
- }, 8, ["variant", "onClick"])) : (u(), G(_, {
1120
+ }, 8, ["onClick"])) : (g(), G(_, {
1148
1121
  key: 0,
1149
- variant: e.BentoButtonVariant.TERTIARY,
1122
+ variant: "tertiary",
1150
1123
  onClick: e.toggleColumnFilter
1151
1124
  }, {
1152
- iconLeft: z(() => [
1153
- D(i)
1125
+ iconLeft: M(() => [
1126
+ P(i)
1154
1127
  ]),
1155
- default: z(() => [
1156
- H(" " + M(e.$t("search")), 1)
1128
+ default: M(() => [
1129
+ H(" " + D(e.$t("search")), 1)
1157
1130
  ]),
1158
1131
  _: 1
1159
- }, 8, ["variant", "onClick"]))
1132
+ }, 8, ["onClick"]))
1160
1133
  ]),
1161
- e.isColumnVisibilityFilterShown ? (u(), h("div", Lo, [
1162
- D(r, {
1134
+ e.isColumnVisibilityFilterShown ? (g(), S("div", yo, [
1135
+ P(r, {
1163
1136
  ref: "searchBarRef",
1164
1137
  value: e.searchTerm,
1165
1138
  "input-field-aria-label": e.$t("columnVisibilitySearchFilter").toString(),
1166
- onInput: t[2] || (t[2] = (S) => e.searchTerm = S),
1139
+ onInput: n[2] || (n[2] = (h) => e.searchTerm = h),
1167
1140
  onClear: e.clearAction,
1168
- onEscapePressed: t[3] || (t[3] = (S) => e.toggleColumnFilter())
1141
+ onEscapePressed: n[3] || (n[3] = (h) => e.toggleColumnFilter())
1169
1142
  }, null, 8, ["value", "input-field-aria-label", "onClear"])
1170
- ])) : (u(), h("div", Eo, [
1171
- D(m, {
1172
- "label-position": e.BentoToggleLabelPosition.AFTER,
1143
+ ])) : (g(), S("div", Lo, [
1144
+ P(p, {
1145
+ "label-position": "after",
1173
1146
  value: e.allColumnsVisbilityToggleState,
1174
1147
  onInput: e.toggleAllColumnVisibility
1175
1148
  }, {
1176
- default: z(() => [
1177
- H(M(e.$t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
1149
+ default: M(() => [
1150
+ H(D(e.$t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
1178
1151
  ]),
1179
1152
  _: 1
1180
- }, 8, ["label-position", "value", "onInput"])
1153
+ }, 8, ["value", "onInput"])
1181
1154
  ])),
1182
- O("div", Io, [
1183
- (u(!0), h(j, null, K(e.filteredColumnVisibilityColumns, (S) => (u(), h("div", {
1184
- key: S.field
1155
+ $("div", Eo, [
1156
+ (g(!0), S(j, null, K(e.filteredColumnVisibilityColumns, (h) => (g(), S("div", {
1157
+ key: h.field
1185
1158
  }, [
1186
- S.field !== e.DATAGRID_SELECT_FIELD_NAME ? (u(), G(n, {
1159
+ h.field !== e.DATAGRID_SELECT_FIELD_NAME ? (g(), G(o, {
1187
1160
  key: 0,
1188
- column: S,
1189
- "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(S),
1161
+ column: h,
1162
+ "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(h),
1190
1163
  onVisibleColumn: e.emitVisibleColumns,
1191
1164
  onUpdatedColumn: e.emitFrozenColumns
1192
- }, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : P("", !0)
1165
+ }, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : w("", !0)
1193
1166
  ]))), 128)),
1194
- e.filteredColumnVisibilityColumns.length === 0 ? (u(), G(p, {
1167
+ e.filteredColumnVisibilityColumns.length === 0 ? (g(), G(m, {
1195
1168
  key: 0,
1196
- el: e.BentoTypographyElement.SPAN,
1169
+ el: "span",
1197
1170
  class: "b-data-grid-config-settings__column-visibility-empty-search-message"
1198
1171
  }, {
1199
- default: z(() => [
1200
- H(M(e.$t("noColumnsMatch")), 1)
1172
+ default: M(() => [
1173
+ H(D(e.$t("noColumnsMatch")), 1)
1201
1174
  ]),
1202
1175
  _: 1
1203
- }, 8, ["el"])) : P("", !0)
1176
+ })) : w("", !0)
1204
1177
  ])
1205
1178
  ])
1206
1179
  ]),
1207
1180
  _: 1
1208
- }, 8, ["id", "open", "aria-label", "target-element", "position"])) : P("", !0)
1181
+ }, 8, ["id", "open", "aria-label", "target-element"])) : w("", !0)
1209
1182
  ])), [
1210
- [f, e.onClickOutside]
1183
+ [u, e.onClickOutside]
1211
1184
  ]);
1212
1185
  }
1213
- const Ro = /* @__PURE__ */ W(Co, [["render", To], ["__scopeId", "data-v-9abc2ebf"]]), De = {
1186
+ const Ro = /* @__PURE__ */ B(go, [["render", Io], ["__scopeId", "data-v-87adbca0"]]), Me = {
1214
1187
  "en-US": {
1215
1188
  gettingYourData: "Getting your data",
1216
1189
  sortAscending: "{field} sort ascending",
@@ -1218,17 +1191,18 @@ const Ro = /* @__PURE__ */ W(Co, [["render", To], ["__scopeId", "data-v-9abc2ebf
1218
1191
  sortInactive: "{field} sort inactive",
1219
1192
  selectRow: "Select row"
1220
1193
  }
1221
- }, $o = Ce({
1222
- i18n: { messages: De },
1194
+ }, $o = fe({
1195
+ i18n: { messages: Me },
1223
1196
  name: "bento-data-grid",
1224
1197
  components: {
1225
- BentoCheckbox: Ve,
1226
- DataGridColumns: Jn,
1198
+ BentoCheckbox: Fe,
1227
1199
  BentoDataGridConfigSettings: Ro,
1228
- BentoLoadingIndicator: Pt,
1229
- BentoPagination: Ut,
1200
+ BentoEmptyState: Pt,
1201
+ BentoLoadingIndicator: Nt,
1202
+ BentoPagination: At,
1230
1203
  BentoFilterBar: _e,
1231
- BentoTypography: he
1204
+ BentoTypography: he,
1205
+ DataGridColumns: qn
1232
1206
  },
1233
1207
  props: {
1234
1208
  /**
@@ -1264,6 +1238,13 @@ const Ro = /* @__PURE__ */ W(Co, [["render", To], ["__scopeId", "data-v-9abc2ebf
1264
1238
  type: Array,
1265
1239
  required: !0
1266
1240
  },
1241
+ /**
1242
+ * Empty state props that will be passed down to inner empty-state component
1243
+ */
1244
+ emptyState: {
1245
+ type: Object,
1246
+ default: void 0
1247
+ },
1267
1248
  /**
1268
1249
  * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
1269
1250
  */
@@ -1363,277 +1344,292 @@ const Ro = /* @__PURE__ */ W(Co, [["render", To], ["__scopeId", "data-v-9abc2ebf
1363
1344
  type: Array,
1364
1345
  // NOTE: is an array to allow multi-sorting in the future
1365
1346
  default: () => []
1347
+ },
1348
+ /**
1349
+ * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
1350
+ */
1351
+ tabTitle: {
1352
+ type: String,
1353
+ default: null
1366
1354
  }
1367
1355
  },
1368
1356
  emits: [
1369
- y.COLUMNS,
1370
- y.COLUMN_RESIZE,
1371
- y.ITEMS_PAGE,
1372
- y.FILTER_SEARCH_INPUT,
1373
- y.FILTER_SEARCH_CLEAR,
1374
- y.NAVIGATE,
1375
- y.UPDATE_COLUMNS,
1376
- y.UPDATE_FILTERS,
1377
- y.UPDATE_FILTER_SEARCH_TERM,
1378
- y.UPDATE_PAGINATION,
1379
- y.UPDATE_SELECTION,
1380
- y.UPDATE_SORT_BY,
1381
- y.ROW_CLICK,
1382
- y.SELECT,
1383
- y.SORT
1357
+ L.COLUMNS,
1358
+ L.COLUMN_RESIZE,
1359
+ L.ITEMS_PAGE,
1360
+ L.FILTER_SEARCH_INPUT,
1361
+ L.FILTER_SEARCH_CLEAR,
1362
+ L.NAVIGATE,
1363
+ L.UPDATE_COLUMNS,
1364
+ L.UPDATE_CONDENSED,
1365
+ L.UPDATE_FILTERS,
1366
+ L.UPDATE_FILTER_SEARCH_TERM,
1367
+ L.UPDATE_PAGINATION,
1368
+ L.UPDATE_SELECTION,
1369
+ L.UPDATE_SORT_BY,
1370
+ L.ROW_CLICK,
1371
+ L.SELECT,
1372
+ L.SORT
1384
1373
  ],
1385
- setup(e, { emit: t, slots: d }) {
1386
- const l = U(null), b = U(), a = U(null), { columns: v, selectable: _, data: p, selection: c, allowColumnDragAndDrop: m } = be(e), { t: i } = We({ messages: De }), { columnDefs: r, onColumnWidthOverride: n, gridColumnWidthStyle: g } = en(v, l, {
1387
- hasSelectableColumn: _
1388
- }), f = U(null), S = Xt({
1389
- paginationRef: f,
1390
- fitContent: Ge(e, "fitContent")
1374
+ setup(e, { emit: n, slots: c }) {
1375
+ const s = U(null), b = U(), a = U(null), v = U(), _ = U(0), { columns: m, selectable: f, data: p, selection: i, allowColumnDragAndDrop: r } = be(e), { t: o } = Ge({ messages: Me }), { columnDefs: C, onColumnWidthOverride: u, gridColumnWidthStyle: h } = xt(m, s, {
1376
+ hasSelectableColumn: f
1391
1377
  }), {
1392
- sortedColumns: L,
1378
+ sortedColumns: y,
1393
1379
  columnSets: A,
1394
- isOnlyOneVisibleColumn: o,
1395
- onConfigSettingsUpdate: C,
1396
- onConfigSettingsColumnsUpdate: E,
1397
- onConfigSettingsColumnUpdate: T
1398
- } = sn(r, t), { draggingColumns: I, draggingEventsForColumns: se, draggingEventsForRowCell: ne, onMoveColumnByOffset: ae } = ln(L, m, t), { onAllRowSelect: re, onRowSelect: de, selectedItems: oe, allItemsSelectedState: Qe } = nn(
1399
- c,
1400
- t,
1380
+ isOnlyOneVisibleColumn: z,
1381
+ onConfigSettingsUpdate: t,
1382
+ onConfigSettingsColumnsUpdate: d,
1383
+ onConfigSettingsColumnUpdate: E
1384
+ } = ln(C, n), { draggingColumns: I, draggingEventsForColumns: x, draggingEventsForRowCell: ne, onMoveColumnByOffset: ae } = on(y, r, n), { onAllRowSelect: re, onRowSelect: de, selectedItems: oe, allItemsSelectedState: ue } = tn(
1385
+ i,
1386
+ n,
1401
1387
  p,
1402
1388
  e.getDataItemId,
1403
1389
  e.isDataItemDisabled
1404
- ), Ke = $(() => ({
1390
+ ), Ze = T(() => ({
1405
1391
  [`b-data-grid--${pe.OUTLINE}`]: e.outline,
1406
1392
  [`b-data-grid--${pe.FIT_CONTENT}`]: e.fitContent
1407
- })), xe = $(() => A.value.findIndex((s) => s.columnSet.length)), et = (s) => {
1408
- var w;
1393
+ })), je = T(() => A.value.findIndex((l) => l.columnSet.length)), Xe = (l) => {
1394
+ var O;
1409
1395
  return {
1410
- "b-data-grid__row--disabled": e.isDataItemDisabled(s),
1396
+ "b-data-grid__row--disabled": e.isDataItemDisabled(l),
1411
1397
  "b-data-grid__row--row-clicks-enabled": e.allowRowClicks,
1412
- "b-data-grid__cell--is-re-ordering": ((w = I.target) == null ? void 0 : w.field) !== void 0,
1413
- "b-data-grid__row--highlighted": e.highlightedRows.includes(s.id)
1398
+ "b-data-grid__cell--is-re-ordering": ((O = I.target) == null ? void 0 : O.field) !== void 0,
1399
+ "b-data-grid__row--highlighted": e.highlightedRows.includes(e.getDataItemId(l))
1414
1400
  };
1415
- }, tt = (s) => ({
1416
- "b-data-grid__row-cell-set--frozen": s,
1417
- "b-data-grid__row-cell-set--unfrozen": !s,
1418
- "b-data-grid__row-cell-set--config-settings-margin": !s && e.columnPanel
1419
- }), nt = (s) => {
1420
- var w, k, B, ee, ie;
1401
+ }, Ye = (l) => ({
1402
+ "b-data-grid__row-cell-set--frozen": l,
1403
+ "b-data-grid__row-cell-set--unfrozen": !l,
1404
+ "b-data-grid__row-cell-set--config-settings-margin": !l && e.columnPanel
1405
+ }), qe = (l) => {
1406
+ var O, F, V, ee, ie;
1421
1407
  return {
1422
- "b-data-grid__cell--padding-left-unset": ((w = s == null ? void 0 : s.padding) == null ? void 0 : w.left) === !1,
1423
- "b-data-grid__cell--padding-right-unset": ((k = s == null ? void 0 : s.padding) == null ? void 0 : k.right) === !1,
1424
- "b-data-grid__cell--numeric": s == null ? void 0 : s.numeric,
1408
+ "b-data-grid__cell--padding-left-unset": ((O = l == null ? void 0 : l.padding) == null ? void 0 : O.left) === !1,
1409
+ "b-data-grid__cell--padding-right-unset": ((F = l == null ? void 0 : l.padding) == null ? void 0 : F.right) === !1,
1410
+ "b-data-grid__cell--numeric": l == null ? void 0 : l.numeric,
1425
1411
  "b-data-grid__cell--condensed": e.condensed,
1426
- "b-data-grid__cell--frozen": s == null ? void 0 : s.frozen,
1427
- [`b-data-grid__cell--overflow-${ce.ELLIPSIS}`]: (s == null ? void 0 : s.overflow) === ce.ELLIPSIS,
1428
- "b-data-grid__cell--is-column-re-ordering": ((B = I.dragging) == null ? void 0 : B.field) === s.field,
1429
- "b-data-grid__cell--is-column-re-order-target-left": ((ee = I.target) == null ? void 0 : ee.field) === s.field && (I == null ? void 0 : I.dragToLeft),
1430
- "b-data-grid__cell--is-column-re-order-target-right": ((ie = I.target) == null ? void 0 : ie.field) === s.field && !(I != null && I.dragToLeft)
1412
+ "b-data-grid__cell--frozen": l == null ? void 0 : l.frozen,
1413
+ [`b-data-grid__cell--overflow-${ce.ELLIPSIS}`]: (l == null ? void 0 : l.overflow) === ce.ELLIPSIS,
1414
+ "b-data-grid__cell--is-column-re-ordering": ((V = I.dragging) == null ? void 0 : V.field) === l.field,
1415
+ "b-data-grid__cell--is-column-re-order-target-left": ((ee = I.target) == null ? void 0 : ee.field) === l.field && (I == null ? void 0 : I.dragToLeft),
1416
+ "b-data-grid__cell--is-column-re-order-target-right": ((ie = I.target) == null ? void 0 : ie.field) === l.field && !(I != null && I.dragToLeft)
1431
1417
  };
1432
- }, Le = U(!1), ot = $(() => ({
1433
- "b-data-grid__columns--menu-open": Le.value
1434
- })), it = (s, w) => (s == null ? void 0 : s.overflow) === ce.ELLIPSIS ? `${w}` : void 0, lt = (s) => s ?? "-", st = $(() => {
1435
- var s, w, k, B, ee, ie;
1418
+ }, Je = (l, O) => (l == null ? void 0 : l.overflow) === ce.ELLIPSIS ? `${O}` : void 0, Qe = (l) => l ?? "-", Ke = T(() => {
1419
+ var l, O, F, V, ee, ie;
1436
1420
  return {
1437
- "b-data-grid__pagination--padding-left-unset": ((k = (w = (s = e.columns) == null ? void 0 : s[0]) == null ? void 0 : w.padding) == null ? void 0 : k.left) === !1,
1438
- "b-data-grid__pagination--padding-right-unset": ((ie = (ee = (B = e.columns) == null ? void 0 : B[e.columns.length - 1]) == null ? void 0 : ee.padding) == null ? void 0 : ie.right) === !1,
1421
+ "b-data-grid__pagination--padding-left-unset": ((F = (O = (l = e.columns) == null ? void 0 : l[0]) == null ? void 0 : O.padding) == null ? void 0 : F.left) === !1,
1422
+ "b-data-grid__pagination--padding-right-unset": ((ie = (ee = (V = e.columns) == null ? void 0 : V[e.columns.length - 1]) == null ? void 0 : ee.padding) == null ? void 0 : ie.right) === !1,
1439
1423
  "b-data-grid__pagination--sticky": !!e.stickyPagination
1440
1424
  };
1441
- }), at = $(() => {
1442
- var s;
1425
+ }), xe = T(() => {
1426
+ var l;
1443
1427
  return {
1444
- height: `${(s = b.value) == null ? void 0 : s.clientHeight}px`
1428
+ height: `${(l = b.value) == null ? void 0 : l.clientHeight}px`
1445
1429
  };
1446
- }), rt = Nt({
1447
- label: d != null && d.header ? Mt(d)("header") : null,
1430
+ }), et = Ot({
1431
+ label: c != null && c.header ? Ut(c)("header") : null,
1448
1432
  defaultFallback: "data grid"
1449
- }), dt = (s) => {
1433
+ }), tt = (l) => {
1450
1434
  if (!e.selectable)
1451
1435
  return null;
1452
- const w = e.getDataItemId(s);
1453
- return oe.value.includes(w).toString();
1454
- }, ut = (s) => t(y.COLUMN_RESIZE, s), ct = (s) => {
1455
- t(y.UPDATE_SORT_BY, s), t(y.SORT, s);
1456
- }, gt = (s) => {
1457
- t(y.NAVIGATE, s), t(y.UPDATE_PAGINATION, {
1436
+ const O = e.getDataItemId(l);
1437
+ return oe.value.includes(O).toString();
1438
+ }, nt = (l) => n(L.COLUMN_RESIZE, l), ot = (l) => {
1439
+ n(L.UPDATE_SORT_BY, l), n(L.SORT, l);
1440
+ }, it = (l) => {
1441
+ n(L.NAVIGATE, l), n(L.UPDATE_PAGINATION, {
1458
1442
  ...e.pagination,
1459
- page: s
1443
+ page: l
1460
1444
  });
1461
- }, Ct = (s) => t(y.ITEMS_PAGE, s), ft = () => {
1462
- t(y.FILTER_SEARCH_CLEAR);
1463
- }, _t = (s) => {
1464
- t(y.UPDATE_FILTER_SEARCH_TERM, s), t(y.FILTER_SEARCH_INPUT, s);
1465
- }, mt = (s, w) => {
1466
- e.allowRowClicks && t(y.ROW_CLICK, s, w);
1467
- }, pt = $(() => {
1468
- const s = v.value.filter(({ visible: w }) => w !== !1);
1469
- return _.value ? s.length + 1 : s.length;
1470
- }), vt = $(
1471
- () => [...a.value].sort((s, w) => {
1472
- const k = Number(s.getAttribute("data-cellindex")), B = Number(w.getAttribute("data-cellindex"));
1473
- return k > B ? 1 : B > k ? -1 : 0;
1445
+ }, lt = (l) => n(L.ITEMS_PAGE, l), st = () => {
1446
+ n(L.FILTER_SEARCH_CLEAR);
1447
+ }, at = (l) => {
1448
+ n(L.UPDATE_FILTER_SEARCH_TERM, l), n(L.FILTER_SEARCH_INPUT, l);
1449
+ }, rt = () => {
1450
+ v.value.isClearAllVisible ? v.value.clearAllFilters() : v.value.isResetAllVisible && v.value.resetAllFilters();
1451
+ }, dt = T(() => ({
1452
+ ...e.emptyState,
1453
+ variant: e.emptyState.variant === "embedded" || e.emptyState.variant === "basic" ? e.emptyState.variant : "basic"
1454
+ })), ut = (l, O) => {
1455
+ e.allowRowClicks && n(L.ROW_CLICK, l, O);
1456
+ }, ct = T(() => {
1457
+ const l = m.value.filter(({ visible: O }) => O !== !1);
1458
+ return f.value ? l.length + 1 : l.length;
1459
+ }), gt = T(
1460
+ () => [...a.value].sort((l, O) => {
1461
+ const F = Number(l.getAttribute("data-cellindex")), V = Number(O.getAttribute("data-cellindex"));
1462
+ return F > V ? 1 : V > F ? -1 : 0;
1474
1463
  })
1475
- ), { focusOnNextGridcell: bt, isNavigationKeyCode: ht } = on(vt, pt), St = (s) => {
1476
- const { ctrlKey: w, keyCode: k, target: B } = s;
1477
- a.value.includes(B) && ht(k) && bt(B, k, w);
1478
- }, yt = () => {
1479
- l.value.scrollLeft = 0, l.value.style.overflowX = "hidden", setTimeout(() => {
1480
- l.value.style.overflowX = "auto";
1464
+ ), { focusOnNextGridcell: ft, isNavigationKeyCode: Ct } = nn(gt, ct), _t = (l) => {
1465
+ const { ctrlKey: O, keyCode: F, target: V } = l;
1466
+ a.value.includes(V) && Ct(F) && ft(V, F, O);
1467
+ };
1468
+ ze(
1469
+ () => _.value,
1470
+ () => {
1471
+ s.value.scrollLeft = _.value, b.value.scrollLeft = _.value;
1472
+ }
1473
+ );
1474
+ const mt = (l) => {
1475
+ _.value = l.target.scrollLeft;
1476
+ }, pt = () => {
1477
+ s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
1478
+ s.value.style.overflowX = "auto";
1481
1479
  });
1482
- }, Lt = (s) => {
1483
- const w = {
1484
- ...ne.value(s)
1480
+ }, vt = (l) => {
1481
+ const O = {
1482
+ ...ne.value(l)
1485
1483
  };
1486
- return s.frozen && (w.focus = yt), w;
1487
- }, Ee = (s, w) => s + A.value.length * w, Et = (s, w, k) => v.value.length * s + Ee(w, k);
1488
- return !$(() => v.value.some((s) => s.mandatory)).value && Dt() && console.warn(
1484
+ return l.frozen && (O.focus = pt), O;
1485
+ }, ye = (l, O) => l + A.value.length * O, bt = (l, O, F) => m.value.length * l + ye(O, F);
1486
+ return T(() => m.value.some((l) => l.mandatory)).value || wt(
1489
1487
  "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
1490
- ), {
1488
+ ), $t(Dt, () => null)(e.tabTitle), {
1491
1489
  // Refs
1492
- body: l,
1493
- columnDefs: r,
1490
+ body: s,
1491
+ columnDefs: C,
1494
1492
  columnSets: A,
1495
1493
  gridcellRefs: a,
1496
- isColumnMenuOpen: Le,
1497
- // Calculate dynamic fit-content height
1498
- paginationRef: f,
1499
- bodyDynamicStyles: S,
1500
1494
  // $scopedSlots/$slots children
1501
- slots: d,
1495
+ slots: c,
1502
1496
  // Labels and text
1503
- ariaGridHeaderText: rt,
1504
- conditionalTitleAttribute: it,
1505
- getRowData: lt,
1497
+ ariaGridHeaderText: et,
1498
+ conditionalTitleAttribute: Je,
1499
+ getRowData: Qe,
1506
1500
  // Styles and classes
1507
- gridColumnWidthStyle: g,
1508
- conditionalGridClasses: Ke,
1509
- conditionalRowClasses: et,
1510
- conditionalRowSetClasses: tt,
1511
- conditionalRowCellClasses: nt,
1512
- conditionalPaginationClasses: st,
1513
- conditionalColumnsClasses: ot,
1501
+ gridColumnWidthStyle: h,
1502
+ conditionalGridClasses: Ze,
1503
+ conditionalRowClasses: Xe,
1504
+ conditionalRowSetClasses: Ye,
1505
+ conditionalRowCellClasses: qe,
1506
+ conditionalPaginationClasses: Ke,
1507
+ // Empty state
1508
+ limitedEmptyStateProps: dt,
1514
1509
  // Resizing
1515
- onColumnWidthOverride: n,
1516
- onColumnResized: ut,
1510
+ onColumnWidthOverride: u,
1511
+ onColumnResized: nt,
1517
1512
  // Sorting
1518
- onSort: ct,
1513
+ onSort: ot,
1519
1514
  // Select
1520
- allItemsSelectedState: Qe,
1515
+ allItemsSelectedState: ue,
1521
1516
  selectedItems: oe,
1522
1517
  onAllRowSelect: re,
1523
1518
  onRowSelect: de,
1524
1519
  DATAGRID_SELECT_FIELD_NAME: te,
1525
- onRowClick: mt,
1526
- getRowAriaSelectedValue: dt,
1520
+ onRowClick: ut,
1521
+ getRowAriaSelectedValue: tt,
1527
1522
  // Config settings (and column updating)
1528
- onConfigSettingsUpdate: C,
1529
- onConfigSettingsColumnsUpdate: E,
1530
- onConfigSettingsColumnUpdate: T,
1523
+ onConfigSettingsUpdate: t,
1524
+ onConfigSettingsColumnsUpdate: d,
1525
+ onConfigSettingsColumnUpdate: E,
1531
1526
  columnsRef: b,
1532
- configSettingsButtonStyle: at,
1533
- isOnlyOneVisibleColumn: o,
1527
+ configSettingsButtonStyle: xe,
1528
+ isOnlyOneVisibleColumn: z,
1534
1529
  // Enums
1535
1530
  BentoDatagridSortDirection: q,
1536
- BentoTypographyElement: fe,
1537
- BentoTypographyVariant: Se,
1538
- BentoDatagridEvent: y,
1531
+ BentoDatagridEvent: L,
1539
1532
  // Pagination props and events
1540
- onPaginationNavigate: gt,
1541
- onItemsPerPageChange: Ct,
1542
- // Filterbar events
1543
- onSearchTermCleared: ft,
1544
- onSearchTermInput: _t,
1533
+ onPaginationNavigate: it,
1534
+ onItemsPerPageChange: lt,
1535
+ // Filterbar
1536
+ filterBarRef: v,
1537
+ onEmptyStateClearResetButtonClick: rt,
1538
+ onSearchTermCleared: st,
1539
+ onSearchTermInput: at,
1545
1540
  // Re-ordering columns
1546
1541
  onMoveColumnByOffset: ae,
1547
1542
  draggingColumns: I,
1548
- draggingEventsForColumns: se,
1543
+ draggingEventsForColumns: x,
1549
1544
  draggingEventsForRowCell: ne,
1545
+ // Sync body and column headers scrolling
1546
+ updateScrollPosition: mt,
1550
1547
  // Leftmost column panel alignment
1551
- computedColumnPanelAlignment: xe,
1548
+ computedColumnPanelAlignment: je,
1552
1549
  // Gridcells events
1553
- gridcellEvents: Lt,
1550
+ gridcellEvents: vt,
1554
1551
  // Keyboard navigation
1555
- getCellindex: Et,
1556
- getColIndex: Ee,
1557
- navigationInput: St,
1552
+ getCellindex: bt,
1553
+ getColIndex: ye,
1554
+ navigationInput: _t,
1558
1555
  // Translations
1559
- t: i
1556
+ t: o
1560
1557
  };
1561
1558
  }
1562
1559
  });
1563
- const Oo = ["aria-rowcount", "aria-colcount", "aria-label"], Ao = {
1560
+ const To = ["aria-rowcount", "aria-colcount", "aria-label"], Oo = {
1564
1561
  key: 0,
1565
1562
  class: "b-data-grid__filters"
1566
- }, wo = {
1563
+ }, Ao = {
1567
1564
  key: 1,
1568
1565
  class: "b-data-grid__header"
1569
- }, No = ["tabindex", "aria-busy"], Uo = {
1570
- ref: "columnsRef",
1571
- role: "rowgroup",
1572
- class: "b-data-grid__columns-row"
1566
+ }, No = { class: "b-data-grid__column-headers" }, wo = ["tabindex", "aria-busy"], Uo = {
1567
+ key: 0,
1568
+ class: "b-data-grid__loading"
1573
1569
  }, Po = {
1574
1570
  key: 1,
1575
- class: "b-data-grid__loading"
1576
- }, Do = ["aria-rowindex", "aria-selected", "onClick"], Mo = ["data-testid"], zo = ["data-testid", "data-cellindex", "tabindex", "aria-colindex"], Fo = ["title"], ko = {
1571
+ class: "b-data-grid__empty-state"
1572
+ }, Do = ["aria-rowindex", "aria-selected", "onClick"], Mo = ["data-testid"], zo = ["data-testid", "data-cellindex", "tabindex", "aria-colindex"], ko = ["title"], Fo = {
1577
1573
  key: 3,
1578
1574
  class: "b-data-grid__footer"
1579
1575
  };
1580
- function Go(e, t, d, l, b, a) {
1581
- const v = N("bento-filter-bar"), _ = N("bento-data-grid-config-settings"), p = N("data-grid-columns"), c = N("bento-loading-indicator"), m = N("bento-typography"), i = N("bento-checkbox"), r = N("bento-pagination");
1582
- return u(), h("div", {
1583
- class: Z(["b-data-grid", e.conditionalGridClasses]),
1576
+ function Go(e, n, c, s, b, a) {
1577
+ var C;
1578
+ const v = N("bento-filter-bar"), _ = N("bento-data-grid-config-settings"), m = N("data-grid-columns"), f = N("bento-loading-indicator"), p = N("bento-typography"), i = N("bento-empty-state"), r = N("bento-checkbox"), o = N("bento-pagination");
1579
+ return g(), S("div", {
1580
+ class: X(["b-data-grid", e.conditionalGridClasses]),
1584
1581
  role: "grid",
1585
1582
  "aria-rowcount": e.data.length,
1586
1583
  "aria-colcount": e.columns.length,
1587
1584
  "aria-label": e.ariaGridHeaderText
1588
1585
  }, [
1589
- e.filters ? (u(), h("div", Ao, [
1590
- e.filters ? (u(), G(v, {
1586
+ e.filters ? (g(), S("div", Oo, [
1587
+ e.filters ? (g(), G(v, {
1591
1588
  key: 0,
1589
+ ref: "filterBarRef",
1592
1590
  value: e.filters,
1593
1591
  "search-term": e.filterSearchTerm,
1594
1592
  onSearchInput: e.onSearchTermInput,
1595
1593
  onSearchClear: e.onSearchTermCleared,
1596
- onInput: t[0] || (t[0] = (n) => e.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, n))
1597
- }, null, 8, ["value", "search-term", "onSearchInput", "onSearchClear"])) : P("", !0)
1598
- ])) : P("", !0),
1599
- e.$slots.header ? (u(), h("div", wo, [
1594
+ onInput: n[0] || (n[0] = (u) => e.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, u))
1595
+ }, null, 8, ["value", "search-term", "onSearchInput", "onSearchClear"])) : w("", !0)
1596
+ ])) : w("", !0),
1597
+ e.$slots.header ? (g(), S("div", Ao, [
1600
1598
  le(e.$slots, "header", {}, void 0, !0)
1601
- ])) : P("", !0),
1602
- O("div", {
1603
- ref: "body",
1604
- class: "b-data-grid__body",
1605
- tabindex: e.loading ? "0" : "-1",
1606
- "aria-busy": e.loading,
1607
- style: ue(e.fitContent ? { height: e.bodyDynamicStyles.height.value } : void 0),
1608
- "aria-live": "polite"
1609
- }, [
1610
- e.columnPanel ? (u(), G(_, {
1599
+ ])) : w("", !0),
1600
+ $("div", No, [
1601
+ e.columnPanel ? (g(), G(_, {
1611
1602
  key: 0,
1612
1603
  class: "b-data-grid__config-settings",
1613
- style: ue(e.configSettingsButtonStyle),
1604
+ style: Ce(e.configSettingsButtonStyle),
1614
1605
  columns: e.columns,
1615
1606
  condensed: e.condensed,
1616
1607
  onConfigSettings: e.onConfigSettingsUpdate,
1617
1608
  "onUpdate:columns": e.onConfigSettingsColumnsUpdate
1618
- }, null, 8, ["style", "columns", "condensed", "onConfigSettings", "onUpdate:columns"])) : P("", !0),
1619
- O("div", Uo, [
1620
- O("div", {
1621
- style: ue(e.gridColumnWidthStyle),
1622
- class: Z(["b-data-grid__columns", e.conditionalColumnsClasses]),
1609
+ }, null, 8, ["style", "columns", "condensed", "onConfigSettings", "onUpdate:columns"])) : w("", !0),
1610
+ $("div", {
1611
+ ref: "columnsRef",
1612
+ role: "rowgroup",
1613
+ class: "b-data-grid__columns-row",
1614
+ onScroll: n[1] || (n[1] = (...u) => e.updateScrollPosition && e.updateScrollPosition(...u))
1615
+ }, [
1616
+ $("div", {
1617
+ style: Ce(e.gridColumnWidthStyle),
1618
+ class: "b-data-grid__columns",
1623
1619
  role: "row"
1624
1620
  }, [
1625
- (u(!0), h(j, null, K(e.columnSets, ({ columnSet: n, id: g, isFrozenColumns: f }, S) => (u(), h(j, null, [
1626
- n != null && n.length ? (u(), G(p, V({
1627
- key: `data-grid-columns-${g}`,
1628
- columns: n,
1621
+ (g(!0), S(j, null, K(e.columnSets, ({ columnSet: u, id: h, isFrozenColumns: y }, A) => (g(), S(j, null, [
1622
+ u != null && u.length ? (g(), G(m, W({
1623
+ key: `data-grid-columns-${h}`,
1624
+ columns: u,
1629
1625
  "has-resizable-columns": e.hasResizableColumns,
1630
1626
  "sort-by": e.sortBy,
1631
1627
  "all-items-selected-state": e.allItemsSelectedState,
1632
- "is-frozen-columns": f,
1628
+ "is-frozen-columns": y,
1633
1629
  "dragging-columns": e.draggingColumns,
1634
1630
  "has-draggable-columns": e.allowColumnDragAndDrop,
1635
1631
  "has-column-panel": e.columnPanel,
1636
- "has-first-column-panel-right-aligned": S === e.computedColumnPanelAlignment,
1632
+ "has-first-column-panel-right-aligned": A === e.computedColumnPanelAlignment,
1637
1633
  "is-only-one-visible-column": e.isOnlyOneVisibleColumn
1638
1634
  }, me(e.draggingEventsForColumns), {
1639
1635
  onColumnMove: e.onMoveColumnByOffset,
@@ -1641,116 +1637,124 @@ function Go(e, t, d, l, b, a) {
1641
1637
  onColumnResize: e.onColumnResized,
1642
1638
  onColumnResizing: e.onColumnWidthOverride,
1643
1639
  onSelectAllRows: e.onAllRowSelect,
1644
- onSort: e.onSort,
1645
- onColumnMenuOpen: t[1] || (t[1] = (L) => e.isColumnMenuOpen = !0),
1646
- onColumnMenuClose: t[2] || (t[2] = (L) => e.isColumnMenuOpen = !1)
1647
- }), Ot({ _: 2 }, [
1648
- K(e.slots, (L, A) => ({
1649
- name: A,
1650
- fn: z((o) => [
1651
- le(e.$slots, A, At(wt(o)), void 0, !0)
1640
+ onSort: e.onSort
1641
+ }), Tt({ _: 2 }, [
1642
+ K(e.slots, (z, t) => ({
1643
+ name: t,
1644
+ fn: M((d) => [
1645
+ le(e.$slots, t, Le(Ee(d)), void 0, !0)
1652
1646
  ])
1653
1647
  }))
1654
- ]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-first-column-panel-right-aligned", "is-only-one-visible-column", "onColumnMove", "onColumnUpdate", "onColumnResize", "onColumnResizing", "onSelectAllRows", "onSort"])) : P("", !0)
1648
+ ]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-first-column-panel-right-aligned", "is-only-one-visible-column", "onColumnMove", "onColumnUpdate", "onColumnResize", "onColumnResizing", "onSelectAllRows", "onSort"])) : w("", !0)
1655
1649
  ], 64))), 256))
1656
- ], 6)
1657
- ], 512),
1658
- e.loading ? (u(), h("div", Po, [
1659
- D(c, {
1650
+ ], 4)
1651
+ ], 544)
1652
+ ]),
1653
+ $("div", {
1654
+ ref: "body",
1655
+ class: "b-data-grid__body",
1656
+ tabindex: e.loading ? "0" : "-1",
1657
+ "aria-busy": e.loading,
1658
+ "aria-live": "polite",
1659
+ onScroll: n[3] || (n[3] = (...u) => e.updateScrollPosition && e.updateScrollPosition(...u))
1660
+ }, [
1661
+ e.loading ? (g(), S("div", Uo, [
1662
+ P(f, {
1660
1663
  class: "b-data-grid__loading-indicator",
1661
1664
  large: ""
1662
1665
  }),
1663
- D(m, {
1664
- el: e.BentoTypographyElement.SPAN,
1665
- variant: e.BentoTypographyVariant.CAPTION
1666
+ P(p, {
1667
+ el: "span",
1668
+ variant: "caption"
1666
1669
  }, {
1667
- default: z(() => [
1668
- H(M(e.t("gettingYourData")), 1)
1670
+ default: M(() => [
1671
+ H(D(e.t("gettingYourData")), 1)
1669
1672
  ]),
1670
1673
  _: 1
1671
- }, 8, ["el", "variant"])
1672
- ])) : (u(), h("div", {
1674
+ })
1675
+ ])) : ((C = e.data) == null ? void 0 : C.length) === 0 ? (g(), S("div", Po, [
1676
+ P(i, Le(Ee(e.limitedEmptyStateProps)), null, 16)
1677
+ ])) : (g(), S("div", {
1673
1678
  key: 2,
1674
1679
  class: "b-data-grid__rows",
1675
1680
  role: "rowgroup",
1676
- onKeydown: t[3] || (t[3] = (...n) => e.navigationInput && e.navigationInput(...n))
1681
+ onKeydown: n[2] || (n[2] = (...u) => e.navigationInput && e.navigationInput(...u))
1677
1682
  }, [
1678
- (u(!0), h(j, null, K(e.data, (n, g) => (u(), h("div", {
1679
- key: g,
1680
- style: ue(e.gridColumnWidthStyle),
1681
- class: Z(["b-data-grid__row", e.conditionalRowClasses(n)]),
1683
+ (g(!0), S(j, null, K(e.data, (u, h) => (g(), S("div", {
1684
+ key: h,
1685
+ style: Ce(e.gridColumnWidthStyle),
1686
+ class: X(["b-data-grid__row", e.conditionalRowClasses(u)]),
1682
1687
  role: "row",
1683
- "aria-rowindex": g + 1,
1684
- "aria-selected": e.getRowAriaSelectedValue(n),
1685
- onClick: (f) => e.onRowClick(n, f)
1688
+ "aria-rowindex": h + 1,
1689
+ "aria-selected": e.getRowAriaSelectedValue(u),
1690
+ onClick: (y) => e.onRowClick(u, y)
1686
1691
  }, [
1687
- (u(!0), h(j, null, K(e.columnSets, ({ columnSet: f, id: S, isFrozenColumns: L }, A) => (u(), h(j, null, [
1688
- f != null && f.length ? (u(), h("div", {
1689
- key: `data-grid-rows-${S}`,
1690
- class: Z(e.conditionalRowSetClasses(L)),
1691
- "data-testid": `data-grid-${S}-rows`
1692
+ (g(!0), S(j, null, K(e.columnSets, ({ columnSet: y, id: A, isFrozenColumns: z }, t) => (g(), S(j, null, [
1693
+ y != null && y.length ? (g(), S("div", {
1694
+ key: `data-grid-rows-${A}`,
1695
+ class: X(e.conditionalRowSetClasses(z)),
1696
+ "data-testid": `data-grid-${A}-rows`
1692
1697
  }, [
1693
- (u(!0), h(j, null, K(f, (o, C) => (u(), h("div", V({
1694
- key: `cell-${o.field}`,
1698
+ (g(!0), S(j, null, K(y, (d, E) => (g(), S("div", W({
1699
+ key: `cell-${d.field}`,
1695
1700
  ref_for: !0,
1696
1701
  ref: "gridcellRefs",
1697
- "data-testid": `cell-${o.field}`,
1698
- "data-cellindex": e.getCellindex(g, C, A),
1699
- class: ["b-data-grid__cell", e.conditionalRowCellClasses(o)],
1702
+ "data-testid": `cell-${d.field}`,
1703
+ "data-cellindex": e.getCellindex(h, E, t),
1704
+ class: ["b-data-grid__cell", e.conditionalRowCellClasses(d)],
1700
1705
  role: "gridcell",
1701
- tabindex: e.getCellindex(g, C, A) === 0 ? "0" : "-1",
1702
- "aria-colindex": e.getColIndex(C, A) + 1,
1703
- style: { width: `${o.width}px` }
1704
- }, me(e.gridcellEvents(o), !0)), [
1705
- o.field !== e.DATAGRID_SELECT_FIELD_NAME ? (u(), G(m, {
1706
+ tabindex: e.getCellindex(h, E, t) === 0 ? "0" : "-1",
1707
+ "aria-colindex": e.getColIndex(E, t) + 1,
1708
+ style: { width: `${d.width}px` }
1709
+ }, me(e.gridcellEvents(d), !0)), [
1710
+ d.field !== e.DATAGRID_SELECT_FIELD_NAME ? (g(), G(p, {
1706
1711
  key: 0,
1707
- el: e.BentoTypographyElement.DIV
1712
+ el: "div"
1708
1713
  }, {
1709
- default: z(() => [
1710
- le(e.$slots, `item-${o.field}`, { item: n }, () => [
1711
- O("span", {
1712
- title: e.conditionalTitleAttribute(o, n[o.field])
1713
- }, M(e.getRowData(n[o.field])), 9, Fo)
1714
+ default: M(() => [
1715
+ le(e.$slots, `item-${d.field}`, { item: u }, () => [
1716
+ $("span", {
1717
+ title: e.conditionalTitleAttribute(d, u[d.field])
1718
+ }, D(e.getRowData(u[d.field])), 9, ko)
1714
1719
  ], !0)
1715
1720
  ]),
1716
1721
  _: 2
1717
- }, 1032, ["el"])) : (u(), G(i, {
1722
+ }, 1024)) : (g(), G(r, {
1718
1723
  key: 1,
1719
1724
  "aria-label": e.t("selectRow"),
1720
1725
  "model-value": e.selectedItems,
1721
- disabled: e.isDataItemDisabled(n),
1722
- value: e.getDataItemId(n),
1726
+ disabled: e.isDataItemDisabled(u),
1727
+ value: e.getDataItemId(u),
1723
1728
  "onUpdate:modelValue": e.onRowSelect
1724
1729
  }, null, 8, ["aria-label", "model-value", "disabled", "value", "onUpdate:modelValue"]))
1725
1730
  ], 16, zo))), 128))
1726
- ], 10, Mo)) : P("", !0)
1731
+ ], 10, Mo)) : w("", !0)
1727
1732
  ], 64))), 256))
1728
1733
  ], 14, Do))), 128))
1729
1734
  ], 32))
1730
- ], 12, No),
1731
- e.pagination ? (u(), h("div", {
1735
+ ], 40, wo),
1736
+ e.pagination ? (g(), S("div", {
1732
1737
  key: 2,
1733
- ref: "paginationRef",
1734
1738
  "data-testid": "pagination-container",
1735
- class: Z(["b-data-grid__pagination", e.conditionalPaginationClasses])
1739
+ class: X(["b-data-grid__pagination", e.conditionalPaginationClasses])
1736
1740
  }, [
1737
- D(r, V(e.pagination, {
1741
+ P(o, W(e.pagination, {
1738
1742
  "aria-label": `${e.ariaGridHeaderText} navigation`,
1739
1743
  onNavigate: e.onPaginationNavigate,
1740
1744
  onItemsPage: e.onItemsPerPageChange
1741
1745
  }), null, 16, ["aria-label", "onNavigate", "onItemsPage"])
1742
- ], 2)) : P("", !0),
1743
- e.$slots.footer ? (u(), h("div", ko, [
1746
+ ], 2)) : w("", !0),
1747
+ e.$slots.footer ? (g(), S("div", Fo, [
1744
1748
  le(e.$slots, "footer", {}, void 0, !0)
1745
- ])) : P("", !0)
1746
- ], 10, Oo);
1749
+ ])) : w("", !0)
1750
+ ], 10, To);
1747
1751
  }
1748
- const Ci = /* @__PURE__ */ W($o, [["render", Go], ["__scopeId", "data-v-8c64a3bd"]]);
1752
+ const mi = /* @__PURE__ */ B($o, [["render", Go], ["__scopeId", "data-v-d06a22e4"]]);
1749
1753
  export {
1750
1754
  ce as BentoColumnOverflow,
1751
- Ci as BentoDataGrid,
1755
+ mi as BentoDataGrid,
1752
1756
  ge as BentoDatagridAriaSortValue,
1753
- y as BentoDatagridEvent,
1757
+ L as BentoDatagridEvent,
1754
1758
  q as BentoDatagridSortDirection,
1755
1759
  pe as BentoDatagridStyleState
1756
1760
  };