@adyen/bento-vue2 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/dist/@types/components.d.ts +8 -4
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
  3. package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
  5. package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -51
  6. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
  7. package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
  8. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
  9. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
  10. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +161 -150
  11. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
  12. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
  13. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +77 -15
  15. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
  16. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -6
  17. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
  18. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
  19. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +36 -11
  20. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
  21. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +2 -22
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
  24. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
  25. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +326 -14
  27. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
  28. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1 -21
  29. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
  30. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +1 -21
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +277 -104
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +5 -5
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +5 -6
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +5 -5
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +5 -5
  42. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
  43. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
  44. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
  46. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
  47. package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +0 -26
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
  52. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -10
  53. package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
  54. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
  55. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
  56. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
  57. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
  58. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
  59. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
  60. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +3 -0
  61. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
  62. package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
  64. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
  65. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
  66. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  67. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +50 -47
  69. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
  70. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
  71. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
  72. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +1 -1
  73. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
  74. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  75. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
  76. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
  77. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
  78. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
  79. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
  80. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
  81. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
  82. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
  83. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
  84. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
  85. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
  86. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
  87. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
  88. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
  89. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
  90. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
  91. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
  92. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
  93. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
  94. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
  95. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
  96. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
  97. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
  98. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
  99. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
  100. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
  101. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -4
  102. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
  103. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
  104. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
  105. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
  106. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
  107. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
  108. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
  109. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
  110. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
  111. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
  112. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
  113. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
  114. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
  115. package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
  116. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
  117. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
  118. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -7
  119. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
  120. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
  121. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
  122. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
  123. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
  124. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
  125. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
  126. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +4 -1
  127. package/dist/@types/packages/vue2/src/index.d.ts +3 -0
  128. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
  129. package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
  130. package/dist/accordion.js +69 -177
  131. package/dist/accordion.js.map +1 -1
  132. package/dist/alert.js +57 -60
  133. package/dist/alert.js.map +1 -1
  134. package/dist/assets/base-button.css +1 -1
  135. package/dist/assets/base-modal.css +1 -0
  136. package/dist/assets/button.css +1 -1
  137. package/dist/assets/calendar.css +1 -1
  138. package/dist/assets/checkbox.css +1 -1
  139. package/dist/assets/chevron-up.css +1 -0
  140. package/dist/assets/controls-group.css +1 -1
  141. package/dist/assets/copy.css +1 -1
  142. package/dist/assets/dropdown-default-textbox.css +1 -1
  143. package/dist/assets/dropdown.css +1 -1
  144. package/dist/assets/error-message.css +1 -1
  145. package/dist/assets/footer-actions.css +1 -1
  146. package/dist/assets/index.css +1 -1
  147. package/dist/assets/index10.css +1 -1
  148. package/dist/assets/index11.css +1 -1
  149. package/dist/assets/index12.css +1 -1
  150. package/dist/assets/index13.css +1 -1
  151. package/dist/assets/index14.css +1 -1
  152. package/dist/assets/index15.css +1 -1
  153. package/dist/assets/index16.css +1 -1
  154. package/dist/assets/index17.css +1 -1
  155. package/dist/assets/index18.css +1 -1
  156. package/dist/assets/index19.css +1 -1
  157. package/dist/assets/index2.css +1 -1
  158. package/dist/assets/index20.css +1 -1
  159. package/dist/assets/index21.css +1 -1
  160. package/dist/assets/index22.css +1 -1
  161. package/dist/assets/index23.css +1 -1
  162. package/dist/assets/index24.css +1 -1
  163. package/dist/assets/index25.css +1 -1
  164. package/dist/assets/index26.css +1 -1
  165. package/dist/assets/index27.css +1 -1
  166. package/dist/assets/index28.css +1 -1
  167. package/dist/assets/index29.css +1 -1
  168. package/dist/assets/index3.css +1 -1
  169. package/dist/assets/index30.css +1 -1
  170. package/dist/assets/index31.css +1 -1
  171. package/dist/assets/index32.css +1 -1
  172. package/dist/assets/index33.css +1 -1
  173. package/dist/assets/index34.css +1 -1
  174. package/dist/assets/index35.css +1 -1
  175. package/dist/assets/index36.css +1 -1
  176. package/dist/assets/index37.css +1 -1
  177. package/dist/assets/index38.css +1 -1
  178. package/dist/assets/index39.css +1 -1
  179. package/dist/assets/index4.css +1 -1
  180. package/dist/assets/index40.css +1 -1
  181. package/dist/assets/index41.css +1 -1
  182. package/dist/assets/index42.css +1 -0
  183. package/dist/assets/index5.css +1 -1
  184. package/dist/assets/index6.css +1 -1
  185. package/dist/assets/index7.css +1 -1
  186. package/dist/assets/index8.css +1 -1
  187. package/dist/assets/index9.css +1 -1
  188. package/dist/assets/listbox-option-tag.css +1 -1
  189. package/dist/assets/listbox.css +1 -1
  190. package/dist/assets/loading-button.css +1 -1
  191. package/dist/assets/tooltip.css +1 -1
  192. package/dist/avatar-image.js +1 -1
  193. package/dist/badge.js +2 -2
  194. package/dist/button.js +110 -12
  195. package/dist/button.js.map +1 -1
  196. package/dist/card.js +66 -67
  197. package/dist/card.js.map +1 -1
  198. package/dist/checkbox.js +27 -26
  199. package/dist/checkbox.js.map +1 -1
  200. package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
  201. package/dist/chunks/base-button.bd8fa976.js.map +1 -0
  202. package/dist/chunks/base-modal.a365f260.js +207 -0
  203. package/dist/chunks/base-modal.a365f260.js.map +1 -0
  204. package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
  205. package/dist/chunks/button.fb307df3.js.map +1 -0
  206. package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
  207. package/dist/chunks/calendar.79ea42c1.js.map +1 -0
  208. package/dist/chunks/checkbox.c7d791ed.js +173 -0
  209. package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
  210. package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
  211. package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
  212. package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
  213. package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
  214. package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
  215. package/dist/chunks/copy.ac796536.js.map +1 -0
  216. package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
  217. package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
  218. package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
  219. package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
  220. package/dist/chunks/error-message.3b3c33d4.js +47 -0
  221. package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
  222. package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
  223. package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
  224. package/dist/chunks/get-slot-text.c1114034.js +9 -0
  225. package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
  226. package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
  227. package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
  228. package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
  229. package/dist/chunks/index.45295dd3.js.map +1 -0
  230. package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
  231. package/dist/chunks/index.88ff49c2.js.map +1 -0
  232. package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
  233. package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
  234. package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
  235. package/dist/chunks/index.bd734551.js.map +1 -0
  236. package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
  237. package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
  238. package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
  239. package/dist/chunks/index.c8f81673.js.map +1 -0
  240. package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
  241. package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
  242. package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
  243. package/dist/chunks/listbox.e792d2d6.js.map +1 -0
  244. package/dist/chunks/loading-button.429c8416.js +86 -0
  245. package/dist/chunks/loading-button.429c8416.js.map +1 -0
  246. package/dist/chunks/tabs.keys.358742f2.js +7 -0
  247. package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
  248. package/dist/chunks/{tooltip.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
  249. package/dist/chunks/tooltip.a47ace87.js.map +1 -0
  250. package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
  251. package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
  252. package/dist/chunks/use-has-slot.6052d56a.js +6 -0
  253. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
  254. package/dist/code-snippet.js +469 -413
  255. package/dist/code-snippet.js.map +1 -1
  256. package/dist/country.js +492 -494
  257. package/dist/country.js.map +1 -1
  258. package/dist/currency.js +32 -35
  259. package/dist/currency.js.map +1 -1
  260. package/dist/data-grid.js +595 -603
  261. package/dist/data-grid.js.map +1 -1
  262. package/dist/date-picker.js +76 -80
  263. package/dist/date-picker.js.map +1 -1
  264. package/dist/date-range-picker.js +2 -2
  265. package/dist/date.js +1 -1
  266. package/dist/divider.js +1 -1
  267. package/dist/dropdown.js +37 -39
  268. package/dist/dropdown.js.map +1 -1
  269. package/dist/empty-state.js +134 -0
  270. package/dist/empty-state.js.map +1 -0
  271. package/dist/filter-bar.js +648 -638
  272. package/dist/filter-bar.js.map +1 -1
  273. package/dist/focus-trap.js +1 -1
  274. package/dist/form-layout.js +64 -64
  275. package/dist/form-layout.js.map +1 -1
  276. package/dist/header.js +61 -63
  277. package/dist/header.js.map +1 -1
  278. package/dist/image.js +82 -0
  279. package/dist/image.js.map +1 -0
  280. package/dist/index.js +216 -205
  281. package/dist/index.js.map +1 -1
  282. package/dist/info-icon.js +2 -2
  283. package/dist/input-field.js +99 -123
  284. package/dist/input-field.js.map +1 -1
  285. package/dist/internal.js +7 -7
  286. package/dist/link.js +27 -26
  287. package/dist/link.js.map +1 -1
  288. package/dist/loading-indicator.js +1 -1
  289. package/dist/menu.js +96 -104
  290. package/dist/menu.js.map +1 -1
  291. package/dist/modal.js +111 -264
  292. package/dist/modal.js.map +1 -1
  293. package/dist/pagination.js +148 -145
  294. package/dist/pagination.js.map +1 -1
  295. package/dist/payment-method.js +16 -18
  296. package/dist/payment-method.js.map +1 -1
  297. package/dist/popover.js +58 -54
  298. package/dist/popover.js.map +1 -1
  299. package/dist/popper-container.js +13 -17
  300. package/dist/popper-container.js.map +1 -1
  301. package/dist/radio-group.js +71 -72
  302. package/dist/radio-group.js.map +1 -1
  303. package/dist/search-bar.js +54 -66
  304. package/dist/search-bar.js.map +1 -1
  305. package/dist/segmented-control.js +68 -55
  306. package/dist/segmented-control.js.map +1 -1
  307. package/dist/sidepanel.js +65 -64
  308. package/dist/sidepanel.js.map +1 -1
  309. package/dist/status.js +20 -23
  310. package/dist/status.js.map +1 -1
  311. package/dist/structured-list.js +1 -1
  312. package/dist/summary-grid.js +110 -141
  313. package/dist/summary-grid.js.map +1 -1
  314. package/dist/tabs.js +68 -60
  315. package/dist/tabs.js.map +1 -1
  316. package/dist/tag.js +23 -26
  317. package/dist/tag.js.map +1 -1
  318. package/dist/textarea.js +97 -96
  319. package/dist/textarea.js.map +1 -1
  320. package/dist/timeline.js +125 -125
  321. package/dist/timeline.js.map +1 -1
  322. package/dist/toast.js +44 -48
  323. package/dist/toast.js.map +1 -1
  324. package/dist/toggle.js +54 -52
  325. package/dist/toggle.js.map +1 -1
  326. package/dist/typography.js +1 -1
  327. package/dist/web-types.json +651 -397
  328. package/package.json +9 -12
  329. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
  330. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
  331. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
  332. package/dist/assets/button-actions.css +0 -1
  333. package/dist/assets/chevron-down.css +0 -1
  334. package/dist/chunks/base-button.98379576.js.map +0 -1
  335. package/dist/chunks/button-actions.bd397c79.js +0 -104
  336. package/dist/chunks/button-actions.bd397c79.js.map +0 -1
  337. package/dist/chunks/button.d0c9527d.js.map +0 -1
  338. package/dist/chunks/calendar.0ae43a96.js.map +0 -1
  339. package/dist/chunks/checkbox.f8457c93.js +0 -164
  340. package/dist/chunks/checkbox.f8457c93.js.map +0 -1
  341. package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
  342. package/dist/chunks/controls-group.b827382b.js.map +0 -1
  343. package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
  344. package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
  345. package/dist/chunks/dropdown.c05678d0.js.map +0 -1
  346. package/dist/chunks/error-message.0433b539.js +0 -47
  347. package/dist/chunks/error-message.0433b539.js.map +0 -1
  348. package/dist/chunks/footer-actions.67642347.js.map +0 -1
  349. package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
  350. package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
  351. package/dist/chunks/index.0cf00b47.js.map +0 -1
  352. package/dist/chunks/index.10aaf539.js.map +0 -1
  353. package/dist/chunks/index.56858f4e.js.map +0 -1
  354. package/dist/chunks/index.f0f8ed98.js.map +0 -1
  355. package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
  356. package/dist/chunks/listbox.116ed0c1.js.map +0 -1
  357. package/dist/chunks/loading-button.1c201f87.js +0 -84
  358. package/dist/chunks/loading-button.1c201f87.js.map +0 -1
  359. package/dist/chunks/tooltip.2aff4fa6.js.map +0 -1
  360. package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
  361. package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
  362. package/dist/chunks/use-has-slot.068222e6.js +0 -5
  363. package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/data-grid.js CHANGED
@@ -1,449 +1,428 @@
1
- import { ref as I, onMounted as fe, nextTick as x, watch as Ce, onUnmounted as ve, reactive as K, toRefs as ee, computed as R, watchEffect as et, defineComponent as X, toRef as me } from "vue";
2
- import { o as pe } from "./chunks/resize.a041304d.js";
3
- import { u as tt } from "./chunks/aria-label.ac9651a5.js";
4
- import { B as be } from "./chunks/checkbox.f8457c93.js";
5
- import { BentoPagination as nt } from "./pagination.js";
6
- import { BentoLoadingIndicator as st } from "./loading-indicator.js";
7
- import { B as te, a as q, b as ne, i as it } from "./chunks/index.56858f4e.js";
8
- import { g as lt } from "./chunks/get-slot-text.e5c766d0.js";
9
- import { u as he } from "./chunks/i18n.155748d6.js";
1
+ import { ref as T, reactive as K, toRefs as ee, computed as y, watchEffect as je, onMounted as Xe, nextTick as V, watch as ge, onUnmounted as Ye, defineComponent as q, toRef as qe, inject as Je } from "vue";
2
+ import { u as Qe } from "./chunks/aria-label.ac9651a5.js";
3
+ import { B as fe } from "./chunks/checkbox.c7d791ed.js";
4
+ import { BentoPagination as Ke } from "./pagination.js";
5
+ import { BentoLoadingIndicator as et } from "./loading-indicator.js";
6
+ import { B as te, p as tt } from "./chunks/index.45295dd3.js";
7
+ import { g as nt } from "./chunks/get-slot-text.c1114034.js";
8
+ import { u as Ce } from "./chunks/i18n.155748d6.js";
9
+ import { BentoEmptyState as st } from "./empty-state.js";
10
10
  import { BentoFilterBar as J } from "./filter-bar.js";
11
- import { BentoInfoIcon as ot } from "./info-icon.js";
12
- import { BentoMenu as at } from "./menu.js";
13
- import { BentoPopoverPositions as Se, BentoPopover as rt } from "./popover.js";
14
- import { a as ye, B as dt } from "./chunks/button.d0c9527d.js";
15
- import { K as D } from "./chunks/tooltip.2aff4fa6.js";
16
- import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
17
- import { A as ct } from "./chunks/arrow-left.1d5d08bd.js";
18
- import { l as le } from "./chunks/events.58c00e6d.js";
19
- import { BentoToggle as Le, BentoToggleLabelPosition as Ee } from "./toggle.js";
20
- import { BentoSearchBar as ut } from "./search-bar.js";
21
- import { u as gt } from "./chunks/dropdown.c05678d0.js";
22
- import { C as _t } from "./chunks/cross.a2cadac5.js";
23
- import { S as ft } from "./chunks/search.a8055e95.js";
24
- import { g as Ct } from "./chunks/unique-id.a2a2b458.js";
25
- import { B as vt } from "./chunks/directive.0408e565.js";
26
- import "./assets/index7.css";
27
- const mt = ({
28
- paginationRef: t,
29
- fitContent: e
30
- }) => {
31
- const n = I(void 0);
32
- let s = null;
33
- return fe(() => {
34
- e && x(() => {
35
- const u = Ce(
36
- t,
37
- () => {
38
- t.value && (x(() => u()), s = pe(t.value, () => {
39
- var o;
40
- t.value && (n.value = `calc(100% - ${(o = t.value) == null ? void 0 : o.offsetHeight}px)`);
41
- }));
42
- },
43
- { immediate: !0 }
44
- );
45
- });
46
- }), ve(() => {
47
- s == null || s.disconnect();
48
- }), { height: n };
49
- };
50
- var Y = /* @__PURE__ */ ((t) => (t.WRAP = "wrap", t.ELLIPSIS = "ellipsis", t))(Y || {}), Q = /* @__PURE__ */ ((t) => (t.OUTLINE = "outline", t.FIT_CONTENT = "fit-content", t))(Q || {}), $ = /* @__PURE__ */ ((t) => (t.ASCENDING = "asc", t.DESCENDING = "desc", t))($ || {}), p = /* @__PURE__ */ ((t) => (t.COLUMNS = "columns", t.COLUMN_RESIZE = "column-resize", t.ITEMS_PAGE = "items-page", t.NAVIGATE = "navigate", t.FILTER_SEARCH_INPUT = "filter-search-input", t.FILTER_SEARCH_CLEAR = "filter-search-clear", t.UPDATE_COLUMNS = "update:columns", t.UPDATE_CONDENSED = "update:condensed", t.UPDATE_FILTERS = "update:filters", t.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", t.UPDATE_PAGINATION = "update:pagination", t.UPDATE_SELECTION = "update:selection", t.UPDATE_SORT_BY = "update:sort-by", t.ROW_CLICK = "row-click", t.SELECT = "select", t.SORT = "sort", t))(p || {}), j = /* @__PURE__ */ ((t) => (t.ASCENDING = "ascending", t.DESCENDING = "descending", t.NONE = "none", t))(j || {}), E = /* @__PURE__ */ ((t) => (t.COLUMN_RESIZE = "column-resize", t.COLUMN_RESIZING = "column-resizing", t.SORT = "sort", t.SELECT_ALL_ROWS = "select-all-rows", t.COLUMN_MOVE = "column-move", t.COLUMN_UPDATE = "column-update", t.COLUMN_MENU_OPEN = "column-menu-open", t.COLUMN_MENU_CLOSE = "column-menu-close", t.COLUMN_DRAG_START = "column-dragstart", t.COLUMN_DRAG_ENTER = "column-dragenter", t.COLUMN_DRAG_END = "column-dragend", t.COLUMN_DROP = "column-drop", t))(E || {});
51
- const pt = (t, e) => {
52
- const n = I(!1), s = I(void 0), u = t.value.reduce((m, T) => (m[T.field] = null, m), {}), o = K(u), _ = ee(o);
53
- let f = 0, C = "";
54
- const d = R(
55
- () => Object.fromEntries(t.value.map(({ field: m, width: T, minWidth: y }) => [m, { width: T, minWidth: y }]))
11
+ import { E as it } from "./chunks/tabs.keys.358742f2.js";
12
+ import { BentoPopoverPositions as se, BentoPopover as lt } from "./popover.js";
13
+ import { a as at } from "./chunks/button.fb307df3.js";
14
+ import { BentoToggle as ve } from "./toggle.js";
15
+ import { BentoSearchBar as ot } from "./search-bar.js";
16
+ import { u as rt } from "./chunks/dropdown.fd93f0ce.js";
17
+ import { n as P } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
18
+ import { C as dt } from "./chunks/cross.a2cadac5.js";
19
+ import { S as ct } from "./chunks/search.a8055e95.js";
20
+ import { g as ut } from "./chunks/unique-id.a2a2b458.js";
21
+ import { o as _t } from "./chunks/resize.a041304d.js";
22
+ import { B as gt } from "./chunks/directive.0408e565.js";
23
+ import { BentoInfoIcon as ft } from "./info-icon.js";
24
+ import { BentoMenu as Ct } from "./menu.js";
25
+ import { K as D } from "./chunks/tooltip.a47ace87.js";
26
+ import { A as vt } from "./chunks/arrow-left.1d5d08bd.js";
27
+ import { l as ie } from "./chunks/events.58c00e6d.js";
28
+ import "./assets/index24.css";
29
+ var X = /* @__PURE__ */ ((t) => (t.WRAP = "wrap", t.ELLIPSIS = "ellipsis", t))(X || {}), Q = /* @__PURE__ */ ((t) => (t.OUTLINE = "outline", t.FIT_CONTENT = "fit-content", t))(Q || {}), $ = /* @__PURE__ */ ((t) => (t.ASCENDING = "asc", t.DESCENDING = "desc", t))($ || {}), b = /* @__PURE__ */ ((t) => (t.COLUMNS = "columns", t.COLUMN_RESIZE = "column-resize", t.ITEMS_PAGE = "items-page", t.NAVIGATE = "navigate", t.FILTER_SEARCH_INPUT = "filter-search-input", t.FILTER_SEARCH_CLEAR = "filter-search-clear", t.UPDATE_COLUMNS = "update:columns", t.UPDATE_CONDENSED = "update:condensed", t.UPDATE_FILTERS = "update:filters", t.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", t.UPDATE_PAGINATION = "update:pagination", t.UPDATE_SELECTION = "update:selection", t.UPDATE_SORT_BY = "update:sort-by", t.ROW_CLICK = "row-click", t.SELECT = "select", t.SORT = "sort", t))(b || {}), Y = /* @__PURE__ */ ((t) => (t.ASCENDING = "ascending", t.DESCENDING = "descending", t.NONE = "none", t))(Y || {}), E = /* @__PURE__ */ ((t) => (t.COLUMN_RESIZE = "column-resize", t.COLUMN_RESIZING = "column-resizing", t.SORT = "sort", t.SELECT_ALL_ROWS = "select-all-rows", t.COLUMN_MOVE = "column-move", t.COLUMN_UPDATE = "column-update", t.COLUMN_MENU_OPEN = "column-menu-open", t.COLUMN_MENU_CLOSE = "column-menu-close", t.COLUMN_DRAG_START = "column-dragstart", t.COLUMN_DRAG_ENTER = "column-dragenter", t.COLUMN_DRAG_END = "column-dragend", t.COLUMN_DROP = "column-drop", t))(E || {});
30
+ const mt = (t, e) => {
31
+ const n = T(!1), i = T(void 0), c = t.value.reduce((m, R) => (m[R.field] = null, m), {}), r = K(c), g = ee(r);
32
+ let f = 0, v = "";
33
+ const d = y(
34
+ () => Object.fromEntries(t.value.map(({ field: m, width: R, minWidth: S }) => [m, { width: R, minWidth: S }]))
56
35
  );
57
- et(() => s.value = d.value);
58
- let g = null, r = null;
59
- const b = (m) => {
60
- const T = m.clientX - f, y = C, A = s.value[y].width + T;
61
- s.value[y].width = A > s.value[y].minWidth ? A : s.value[y].minWidth, e(E.COLUMN_RESIZING, s.value), f = m.clientX;
36
+ je(() => i.value = d.value);
37
+ let u = null, o = null;
38
+ const p = (m) => {
39
+ const R = m.clientX - f, S = v, I = i.value[S].width + R;
40
+ i.value[S].width = I > i.value[S].minWidth ? I : i.value[S].minWidth, e(E.COLUMN_RESIZING, i.value), f = m.clientX;
62
41
  }, l = () => {
63
- n.value = !1, g == null || g(), r == null || r(), C && e(E.COLUMN_RESIZE, {
64
- field: C,
65
- width: s.value[C].width
66
- }), g = null, r = null, C = "", f = null;
42
+ n.value = !1, u == null || u(), o == null || o(), v && e(E.COLUMN_RESIZE, {
43
+ field: v,
44
+ width: i.value[v].width
45
+ }), u = null, o = null, v = "", f = null;
67
46
  };
68
- return { resizeData: s, allColumnRefs: _, startResize: (m, T, y) => {
69
- if (y.preventDefault(), m) {
70
- if (n.value = !0, y.buttons !== 1) {
47
+ return { resizeData: i, allColumnRefs: g, startResize: (m, R, S) => {
48
+ if (S.preventDefault(), m) {
49
+ if (n.value = !0, S.buttons !== 1) {
71
50
  l();
72
51
  return;
73
52
  }
74
- C = T, f = y.clientX, g = le(window, "mousemove", b), r = le(window, "mouseup", l);
53
+ v = R, f = S.clientX, u = ie(window, "mousemove", p), o = ie(window, "mouseup", l);
75
54
  }
76
55
  }, isResizing: n };
77
- }, bt = pt, ht = 100, oe = 50, F = "b-select", St = (t, e, n) => {
78
- const s = {}, u = [], o = (f) => {
79
- const C = s[f];
80
- C && C.frozen !== !0 && (s[f].frozen = !0, u.push(f));
56
+ }, bt = mt, pt = 100, le = 50, F = "b-select", ht = (t, e, n) => {
57
+ const i = {}, c = [], r = (f) => {
58
+ const v = i[f];
59
+ v && v.frozen !== !0 && (i[f].frozen = !0, c.push(f));
81
60
  };
82
- function _() {
83
- if (u.length === n.length)
61
+ function g() {
62
+ if (c.length === n.length)
84
63
  return;
85
64
  const f = { min: {}, max: {} };
86
- let C = t, d = e, g = 0;
87
- u.forEach((r) => {
88
- C -= s[r].computedWidth, d -= s[r].flex;
65
+ let v = t, d = e, u = 0;
66
+ c.forEach((o) => {
67
+ v -= i[o].computedWidth, d -= i[o].flex;
89
68
  });
90
- for (let r = 0, b = n.length; r < b; r += 1) {
91
- const l = n[r];
92
- if (s[l.field] && s[l.field].frozen === !0)
69
+ for (let o = 0, p = n.length; o < p; o += 1) {
70
+ const l = n[o];
71
+ if (i[l.field] && i[l.field].frozen === !0)
93
72
  continue;
94
- let m = C / d * l.flex;
95
- m < l.minWidth && (g += l.minWidth - m, m = l.minWidth, f.min[l.field] = !0), s[l.field] = {
73
+ let m = v / d * l.flex;
74
+ m < l.minWidth && (u += l.minWidth - m, m = l.minWidth, f.min[l.field] = !0), i[l.field] = {
96
75
  frozen: !1,
97
76
  computedWidth: m,
98
77
  flex: l.flex
99
78
  };
100
79
  }
101
- g > 0 ? Object.keys(f.min).forEach((r) => {
102
- o(r);
103
- }) : n.forEach(({ field: r }) => {
104
- o(r);
105
- }), _();
80
+ u > 0 ? Object.keys(f.min).forEach((o) => {
81
+ r(o);
82
+ }) : n.forEach(({ field: o }) => {
83
+ r(o);
84
+ }), g();
106
85
  }
107
- return _(), s;
108
- }, yt = (t, e, n) => {
109
- const s = I(t), u = I(e), o = I();
110
- let _ = null;
111
- fe(() => {
112
- x(() => {
113
- u.value && (o.value = u.value.getBoundingClientRect().width);
114
- const l = Ce(
115
- u,
86
+ return g(), i;
87
+ }, St = (t, e, n) => {
88
+ const i = T(t), c = T(e), r = T();
89
+ let g = null;
90
+ Xe(() => {
91
+ V(() => {
92
+ c.value && (r.value = c.value.getBoundingClientRect().width);
93
+ const l = ge(
94
+ c,
116
95
  () => {
117
- u.value && (x(() => l()), _ = pe(u.value, ({ width: v }) => {
118
- o.value = v;
96
+ c.value && (V(() => l()), g = _t(c.value, ({ width: C }) => {
97
+ r.value = C;
119
98
  }));
120
99
  },
121
100
  { immediate: !0 }
122
101
  );
123
102
  });
124
- }), ve(() => {
125
- _ == null || _.disconnect();
103
+ }), Ye(() => {
104
+ g == null || g.disconnect();
126
105
  });
127
- const f = R(() => {
106
+ const f = y(() => {
128
107
  const l = [];
129
- let v = 0, m = 0;
130
- const T = {};
131
- let y = s.value.filter((i) => i.visible !== !1);
132
- n != null && n.hasSelectableColumn.value && (y = [{ field: F, label: "", width: 40 }, ...y]), y.forEach((i) => {
133
- const c = { ...i };
134
- let h;
135
- c.flex && c.flex > 0 ? (v += c.flex, h = 0, l.push(c)) : h = Math.max(
136
- (c == null ? void 0 : c.width) ?? ht,
137
- (c == null ? void 0 : c.minWidth) ?? oe
138
- ), m += h, c.width = h, c.minWidth = (c == null ? void 0 : c.minWidth) ?? oe, T[c.field] = c;
108
+ let C = 0, m = 0;
109
+ const R = {};
110
+ let S = i.value.filter((A) => A.visible !== !1);
111
+ n != null && n.hasSelectableColumn.value && (S = [{ field: F, label: "", width: 40 }, ...S]), S.forEach((A) => {
112
+ const s = { ...A };
113
+ let _;
114
+ s.flex && s.flex > 0 ? (C += s.flex, _ = 0, l.push(s)) : _ = Math.max(
115
+ (s == null ? void 0 : s.width) ?? pt,
116
+ (s == null ? void 0 : s.minWidth) ?? le
117
+ ), m += _, s.width = _, s.minWidth = (s == null ? void 0 : s.minWidth) ?? le, R[s.field] = s;
139
118
  });
140
- const A = Math.max(o.value - m, 0);
141
- if (v > 0 && o.value > 0) {
142
- const i = St(A, v, l);
143
- Object.keys(i).forEach((c) => {
144
- T[c].width = i[c].computedWidth;
119
+ const I = Math.max(r.value - m, 0);
120
+ if (C > 0 && r.value > 0) {
121
+ const A = ht(I, C, l);
122
+ Object.keys(A).forEach((s) => {
123
+ R[s].width = A[s].computedWidth;
145
124
  });
146
125
  }
147
- return Object.values(T);
148
- }), C = I(void 0), d = (l) => {
149
- C.value = { ...C.value, ...l };
150
- }, g = R(
126
+ return Object.values(R);
127
+ }), v = T(void 0), d = (l) => {
128
+ v.value = { ...v.value, ...l };
129
+ }, u = y(
151
130
  () => f.value.map((l) => {
152
- var v, m;
131
+ var C, m;
153
132
  return {
154
133
  ...l,
155
134
  // Override column width with resized ones
156
- width: ((m = (v = C.value) == null ? void 0 : v[l.field]) == null ? void 0 : m.width) ?? l.width
135
+ width: ((m = (C = v.value) == null ? void 0 : C[l.field]) == null ? void 0 : m.width) ?? l.width
157
136
  };
158
137
  })
159
- ), r = R(() => g.value.reduce((l, v) => v.width + l, 0)), b = R(() => ({
160
- width: o.value > r.value ? "100%" : "fit-content"
138
+ ), o = y(() => u.value.reduce((l, C) => C.width + l, 0)), p = y(() => ({
139
+ width: r.value > o.value ? "100%" : "fit-content"
161
140
  }));
162
- return { columnDefs: g, gridColumnWidthStyle: b, onColumnWidthOverride: d };
163
- }, Lt = yt, Et = (t, e, n) => ({ conditionalSortDirectionClasses: (o, _) => ({
141
+ return { columnDefs: u, gridColumnWidthStyle: p, onColumnWidthOverride: d };
142
+ }, Lt = St, Et = (t, e, n) => ({ conditionalSortDirectionClasses: (r, g) => ({
164
143
  "b-data-grid-columns__column-sort-icon--sorted": t.value.some(
165
- (f) => f.field === o && f.direction === _
144
+ (f) => f.field === r && f.direction === g
166
145
  )
167
- }), sortByColumnField: (o) => {
168
- var C;
169
- if (!e.value.some((d) => d.field === o && d.sortable))
146
+ }), sortByColumnField: (r) => {
147
+ var v;
148
+ if (!e.value.some((d) => d.field === r && d.sortable))
170
149
  return;
171
150
  const f = [{
172
- field: o,
173
- direction: ((C = t.value.find((d) => d.field === o)) == null ? void 0 : C.direction) === $.ASCENDING ? $.DESCENDING : $.ASCENDING
151
+ field: r,
152
+ direction: ((v = t.value.find((d) => d.field === r)) == null ? void 0 : v.direction) === $.ASCENDING ? $.DESCENDING : $.ASCENDING
174
153
  }];
175
154
  n(E.SORT, f);
176
- } }), Rt = (t, e, n, s, u) => {
177
- const o = I(t.value), _ = K({
155
+ } }), yt = (t, e, n, i, c) => {
156
+ const r = T(t.value), g = K({
178
157
  allItemsSelected: !1,
179
158
  isIndeterminate: !1
180
159
  }), f = () => {
181
- e(p.SELECT, o.value), e(p.UPDATE_SELECTION, o.value);
182
- }, C = (g) => {
183
- x(() => {
184
- var r, b;
185
- g ? o.value = (b = (r = n.value) == null ? void 0 : r.filter((l) => !u(l))) == null ? void 0 : b.map((l) => s(l)) : o.value = [], _.allItemsSelected = g, _.isIndeterminate = !1, f();
160
+ e(b.SELECT, r.value), e(b.UPDATE_SELECTION, r.value);
161
+ }, v = (u) => {
162
+ V(() => {
163
+ var o, p;
164
+ u ? r.value = (p = (o = n.value) == null ? void 0 : o.filter((l) => !c(l))) == null ? void 0 : p.map((l) => i(l)) : r.value = [], g.allItemsSelected = u, g.isIndeterminate = !1, f();
186
165
  });
187
- }, d = (g) => {
188
- x(() => {
189
- var b;
190
- o.value = g;
191
- const r = (b = n.value) == null ? void 0 : b.filter((l) => !u(l)).every((l) => o.value.includes(s(l)));
192
- _.isIndeterminate = o.value.length > 0 && !r, r ? _.allItemsSelected = !0 : (_.isIndeterminate || !r) && (_.allItemsSelected = !1), f();
166
+ }, d = (u) => {
167
+ V(() => {
168
+ var p;
169
+ r.value = u;
170
+ const o = (p = n.value) == null ? void 0 : p.filter((l) => !c(l)).every((l) => r.value.includes(i(l)));
171
+ g.isIndeterminate = r.value.length > 0 && !o, o ? g.allItemsSelected = !0 : (g.isIndeterminate || !o) && (g.allItemsSelected = !1), f();
193
172
  });
194
173
  };
195
- return d(t.value), { onAllRowSelect: C, onRowSelect: d, allItemsSelectedState: _, selectedItems: o };
174
+ return d(t.value), { onAllRowSelect: v, onRowSelect: d, allItemsSelectedState: g, selectedItems: r };
196
175
  };
197
176
  var N = ((t) => (t[t.ARROW_DOWN = D.ARROW_DOWN] = "ARROW_DOWN", t[t.ARROW_UP = D.ARROW_UP] = "ARROW_UP", t[t.ARROW_LEFT = D.ARROW_LEFT] = "ARROW_LEFT", t[t.ARROW_RIGHT = D.ARROW_RIGHT] = "ARROW_RIGHT", t[t.PAGE_UP = D.PAGE_UP] = "PAGE_UP", t[t.PAGE_DOWN = D.PAGE_DOWN] = "PAGE_DOWN", t[t.END = D.END] = "END", t[t.HOME = D.HOME] = "HOME", t))(N || {});
198
- const Tt = (t, e) => {
199
- const n = (d) => Math.floor(d / e.value), s = (d, g, r) => {
200
- const b = t.value.length - 1, l = e.value - 1, v = n(d), m = d - e.value * v;
177
+ const Rt = (t, e) => {
178
+ const n = (d) => Math.floor(d / e.value), i = (d, u, o) => {
179
+ const p = t.value.length - 1, l = e.value - 1, C = n(d), m = d - e.value * C;
201
180
  return {
202
181
  [N.PAGE_UP]: m,
203
- [N.PAGE_DOWN]: b - l + m,
204
- [N.END]: r ? b : e.value * v + l,
205
- [N.HOME]: r ? 0 : e.value * v
206
- }[g];
207
- }, u = (d, g) => {
208
- const b = {
182
+ [N.PAGE_DOWN]: p - l + m,
183
+ [N.END]: o ? p : e.value * C + l,
184
+ [N.HOME]: o ? 0 : e.value * C
185
+ }[u];
186
+ }, c = (d, u) => {
187
+ const p = {
209
188
  [N.ARROW_DOWN]: e.value,
210
189
  [N.ARROW_UP]: -e.value,
211
190
  [N.ARROW_LEFT]: -1,
212
191
  [N.ARROW_RIGHT]: 1
213
- }[g], l = d + b;
192
+ }[u], l = d + p;
214
193
  return l < 0 || l >= t.value.length ? d : l;
215
- }, o = (d) => [
194
+ }, r = (d) => [
216
195
  N.PAGE_UP,
217
196
  N.PAGE_DOWN,
218
197
  N.END,
219
198
  N.HOME
220
- ].includes(d), _ = (d, g, r) => {
221
- const b = t.value.indexOf(d);
222
- return o(g) ? s(b, g, r) : u(b, g);
199
+ ].includes(d), g = (d, u, o) => {
200
+ const p = t.value.indexOf(d);
201
+ return r(u) ? i(p, u, o) : c(p, u);
223
202
  };
224
203
  return {
225
- focusOnNextGridcell: (d, g, r) => {
204
+ focusOnNextGridcell: (d, u, o) => {
226
205
  if (!t.value.includes(d))
227
206
  return;
228
- const b = _(d, g, r);
229
- t.value[b].focus();
207
+ const p = g(d, u, o);
208
+ t.value[p].focus();
230
209
  },
231
210
  isNavigationKeyCode: (d) => d in N
232
211
  };
233
212
  }, Ot = (t, e, n) => {
234
- const s = I(t), u = I(e), o = K({
213
+ const i = T(t), c = T(e), r = K({
235
214
  dragging: null,
236
215
  dragToLeft: null,
237
216
  target: null
238
- }), _ = (l, v = 0) => {
239
- const m = s.value.findIndex((A) => A.field === l.field), T = m + v;
240
- if (T < 0 || T > s.value.length - 1)
217
+ }), g = (l, C = 0) => {
218
+ const m = i.value.findIndex((I) => I.field === l.field), R = m + C;
219
+ if (R < 0 || R > i.value.length - 1)
241
220
  return;
242
- const y = [...s.value];
243
- y.splice(T, 0, y.splice(m, 1)[0]), n(p.COLUMNS, y), n(p.UPDATE_COLUMNS, y);
244
- }, f = (l, v) => {
245
- o.dragging = l, v.dataTransfer.setData("text", ""), v.dataTransfer.dropEffect = "move";
246
- }, C = (l, v) => {
247
- o.target = l;
248
- const m = v.currentTarget.getBoundingClientRect(), T = m.left + m.width / 2, y = v.clientX ?? 0;
249
- o.dragToLeft = y <= T;
221
+ const S = [...i.value];
222
+ S.splice(R, 0, S.splice(m, 1)[0]), n(b.COLUMNS, S), n(b.UPDATE_COLUMNS, S);
223
+ }, f = (l, C) => {
224
+ r.dragging = l, C.dataTransfer.setData("text", ""), C.dataTransfer.dropEffect = "move";
225
+ }, v = (l, C) => {
226
+ r.target = l;
227
+ const m = C.currentTarget.getBoundingClientRect(), R = m.left + m.width / 2, S = C.clientX ?? 0;
228
+ r.dragToLeft = S <= R;
250
229
  }, d = (l) => {
251
- var v, m;
252
- if (((v = o.dragging) == null ? void 0 : v.field) !== l.field) {
253
- const T = s.value.findIndex((L) => {
254
- var S;
255
- return L.field === ((S = o.dragging) == null ? void 0 : S.field);
256
- }), y = s.value.findIndex((L) => L.field === l.field), A = o.dragToLeft ? y : y + 1, i = A > T ? A - 1 : A;
257
- let c = [...s.value];
258
- c.splice(
259
- i === -1 ? 0 : i,
230
+ var C, m;
231
+ if (((C = r.dragging) == null ? void 0 : C.field) !== l.field) {
232
+ const R = i.value.findIndex((L) => {
233
+ var h;
234
+ return L.field === ((h = r.dragging) == null ? void 0 : h.field);
235
+ }), S = i.value.findIndex((L) => L.field === l.field), I = r.dragToLeft ? S : S + 1, A = I > R ? I - 1 : I;
236
+ let s = [...i.value];
237
+ s.splice(
238
+ A === -1 ? 0 : A,
260
239
  0,
261
- c.splice(T, 1)[0]
240
+ s.splice(R, 1)[0]
262
241
  );
263
- const h = s.value.findIndex((L) => !(L != null && L.frozen));
264
- ((m = o.dragging) == null ? void 0 : m.frozen) !== l.frozen && A !== h && (c = c.map(
242
+ const _ = i.value.findIndex((L) => !(L != null && L.frozen));
243
+ ((m = r.dragging) == null ? void 0 : m.frozen) !== l.frozen && I !== _ && (s = s.map(
265
244
  (L) => {
266
- var S;
267
- return ((S = o.dragging) == null ? void 0 : S.field) === L.field ? { ...L, frozen: !!(l != null && l.frozen) } : L;
245
+ var h;
246
+ return ((h = r.dragging) == null ? void 0 : h.field) === L.field ? { ...L, frozen: !!(l != null && l.frozen) } : L;
268
247
  }
269
- )), n(p.COLUMNS, c), n(p.UPDATE_COLUMNS, c);
248
+ )), n(b.COLUMNS, s), n(b.UPDATE_COLUMNS, s);
270
249
  }
271
- o.dragging = null, o.target = null;
272
- }, g = () => {
273
- o.dragging = null, o.dragToLeft = null, o.target = null;
274
- }, r = R(() => u.value ? {
275
- [E.COLUMN_DRAG_START]: (l, v) => f(l, v),
276
- [E.COLUMN_DRAG_ENTER]: (l, v) => C(l, v),
250
+ r.dragging = null, r.target = null;
251
+ }, u = () => {
252
+ r.dragging = null, r.dragToLeft = null, r.target = null;
253
+ }, o = y(() => c.value ? {
254
+ [E.COLUMN_DRAG_START]: (l, C) => f(l, C),
255
+ [E.COLUMN_DRAG_ENTER]: (l, C) => v(l, C),
277
256
  [E.COLUMN_DROP]: (l) => d(l),
278
- [E.COLUMN_DRAG_END]: () => g()
279
- } : {}), b = R(() => (l) => u.value ? {
280
- dragenter: (v) => {
281
- v.preventDefault(), C(l, v);
257
+ [E.COLUMN_DRAG_END]: () => u()
258
+ } : {}), p = y(() => (l) => c.value ? {
259
+ dragenter: (C) => {
260
+ C.preventDefault(), v(l, C);
282
261
  },
283
262
  drop: () => {
284
263
  d(l);
285
264
  },
286
- dragover: (v) => {
287
- v.preventDefault();
265
+ dragover: (C) => {
266
+ C.preventDefault();
288
267
  }
289
268
  } : {});
290
269
  return {
291
270
  // Values
292
- draggingColumns: o,
271
+ draggingColumns: r,
293
272
  // Methods
294
- draggingEventsForColumns: r,
295
- draggingEventsForRowCell: b,
296
- onMoveColumnByOffset: _
273
+ draggingEventsForColumns: o,
274
+ draggingEventsForRowCell: p,
275
+ onMoveColumnByOffset: g
297
276
  };
298
- }, It = (t, e) => {
299
- const n = I(t), s = R(
300
- () => [...n.value].sort((r, b) => r.frozen === b.frozen ? 0 : r.frozen ? -1 : 1)
301
- ), u = R(() => s.value.filter((r) => r.frozen)), o = R(() => s.value.filter((r) => !r.frozen)), _ = R(
277
+ }, Tt = (t, e) => {
278
+ const n = T(t), i = y(
279
+ () => [...n.value].sort((o, p) => o.frozen === p.frozen ? 0 : o.frozen ? -1 : 1)
280
+ ), c = y(() => i.value.filter((o) => o.frozen)), r = y(() => i.value.filter((o) => !o.frozen)), g = y(
302
281
  () => [
303
- { columnSet: u.value, id: "frozen", isFrozenColumns: !0 },
304
- { columnSet: o.value, id: "unfrozen" }
305
- ].filter(({ columnSet: r }) => r.length)
306
- ), f = R(
307
- () => n.value.filter((r) => (r == null ? void 0 : r.visible) !== !1 && (r == null ? void 0 : r.field) !== F).length === 1
308
- ), C = (r) => e(p.UPDATE_CONDENSED, r), d = (r) => {
309
- e(p.COLUMNS, r), e(p.UPDATE_COLUMNS, r);
282
+ { columnSet: c.value, id: "frozen", isFrozenColumns: !0 },
283
+ { columnSet: r.value, id: "unfrozen" }
284
+ ].filter(({ columnSet: o }) => o.length)
285
+ ), f = y(
286
+ () => n.value.filter((o) => (o == null ? void 0 : o.visible) !== !1 && (o == null ? void 0 : o.field) !== F).length === 1
287
+ ), v = (o) => e(b.UPDATE_CONDENSED, o), d = (o) => {
288
+ e(b.COLUMNS, o), e(b.UPDATE_COLUMNS, o);
310
289
  };
311
290
  return {
312
291
  // Values
313
- columnSets: _,
292
+ columnSets: g,
314
293
  isOnlyOneVisibleColumn: f,
315
- sortedColumns: s,
294
+ sortedColumns: i,
316
295
  // Methods
317
- onConfigSettingsUpdate: C,
296
+ onConfigSettingsUpdate: v,
318
297
  onConfigSettingsColumnsUpdate: d,
319
- onConfigSettingsColumnUpdate: (r) => {
320
- const b = s.value.map(
321
- (l) => (l == null ? void 0 : l.field) === r.field ? r : l
298
+ onConfigSettingsColumnUpdate: (o) => {
299
+ const p = i.value.map(
300
+ (l) => (l == null ? void 0 : l.field) === o.field ? o : l
322
301
  );
323
- d(b);
302
+ d(p);
324
303
  }
325
304
  };
326
305
  };
327
306
  let ae = 0;
328
- const At = {
307
+ const It = {
329
308
  beforeCreate() {
330
309
  this.uuid = ae.toString(), ae += 1;
331
310
  }
332
311
  };
333
- var Nt = function() {
312
+ var At = function() {
334
313
  var e = this, n = e._self._c;
335
314
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
336
- }, wt = [], Pt = /* @__PURE__ */ U(
315
+ }, Nt = [], wt = /* @__PURE__ */ P(
316
+ It,
337
317
  At,
338
318
  Nt,
339
- wt,
340
319
  !1,
341
320
  null,
342
321
  "4ebc0033",
343
322
  null,
344
323
  null
345
324
  );
346
- const Ut = Pt.exports;
347
- let re = 0;
348
- const Dt = {
325
+ const Ut = wt.exports;
326
+ let oe = 0;
327
+ const Pt = {
349
328
  beforeCreate() {
350
- this.uuid = re.toString(), re += 1;
329
+ this.uuid = oe.toString(), oe += 1;
351
330
  }
352
331
  };
353
- var Mt = function() {
332
+ var Dt = function() {
354
333
  var e = this, n = e._self._c;
355
334
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
356
- }, $t = [], xt = /* @__PURE__ */ U(
335
+ }, Mt = [], $t = /* @__PURE__ */ P(
336
+ Pt,
357
337
  Dt,
358
338
  Mt,
359
- $t,
360
339
  !1,
361
340
  null,
362
341
  "bda8fd91",
363
342
  null,
364
343
  null
365
344
  );
366
- const zt = xt.exports;
367
- let de = 0;
368
- const Ft = {
345
+ const xt = $t.exports;
346
+ let re = 0;
347
+ const zt = {
369
348
  beforeCreate() {
370
- this.uuid = de.toString(), de += 1;
349
+ this.uuid = re.toString(), re += 1;
371
350
  }
372
351
  };
373
- var Gt = function() {
352
+ var Ft = function() {
374
353
  var e = this, n = e._self._c;
375
354
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
376
- }, Bt = [], Vt = /* @__PURE__ */ U(
355
+ }, Gt = [], Wt = /* @__PURE__ */ P(
356
+ zt,
377
357
  Ft,
378
358
  Gt,
379
- Bt,
380
359
  !1,
381
360
  null,
382
361
  "1954bfce",
383
362
  null,
384
363
  null
385
364
  );
386
- const Wt = Vt.exports;
387
- let ce = 0;
388
- const kt = {
365
+ const kt = Wt.exports;
366
+ let de = 0;
367
+ const Vt = {
389
368
  beforeCreate() {
390
- this.uuid = ce.toString(), ce += 1;
369
+ this.uuid = de.toString(), de += 1;
391
370
  }
392
371
  };
393
- var Ht = function() {
372
+ var Bt = function() {
394
373
  var e = this, n = e._self._c;
395
374
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
396
- }, Zt = [], Yt = /* @__PURE__ */ U(
397
- kt,
375
+ }, Ht = [], Zt = /* @__PURE__ */ P(
376
+ Vt,
377
+ Bt,
398
378
  Ht,
399
- Zt,
400
379
  !1,
401
380
  null,
402
381
  "9da4de4c",
403
382
  null,
404
383
  null
405
384
  );
406
- const Re = Yt.exports;
407
- let ue = 0;
385
+ const me = Zt.exports;
386
+ let ce = 0;
408
387
  const jt = {
409
388
  beforeCreate() {
410
- this.uuid = ue.toString(), ue += 1;
389
+ this.uuid = ce.toString(), ce += 1;
411
390
  }
412
391
  };
413
392
  var Xt = function() {
414
393
  var e = this, n = e._self._c;
415
394
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
416
- }, qt = [], Jt = /* @__PURE__ */ U(
395
+ }, Yt = [], qt = /* @__PURE__ */ P(
417
396
  jt,
418
397
  Xt,
419
- qt,
398
+ Yt,
420
399
  !1,
421
400
  null,
422
401
  "2fe7aaf4",
423
402
  null,
424
403
  null
425
404
  );
426
- const Qt = Jt.exports;
427
- let ge = 0;
428
- const Kt = {
405
+ const Jt = qt.exports;
406
+ let ue = 0;
407
+ const Qt = {
429
408
  beforeCreate() {
430
- this.uuid = ge.toString(), ge += 1;
409
+ this.uuid = ue.toString(), ue += 1;
431
410
  }
432
411
  };
433
- var en = function() {
412
+ var Kt = function() {
434
413
  var e = this, n = e._self._c;
435
414
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
436
- }, tn = [], nn = /* @__PURE__ */ U(
415
+ }, en = [], tn = /* @__PURE__ */ P(
416
+ Qt,
437
417
  Kt,
438
418
  en,
439
- tn,
440
419
  !1,
441
420
  null,
442
421
  "6e578b8e",
443
422
  null,
444
423
  null
445
424
  );
446
- const sn = nn.exports, ln = {
425
+ const nn = tn.exports, sn = {
447
426
  "en-US": {
448
427
  moveColumnLeft: "Move column left",
449
428
  moveColumnRight: "Move column right",
@@ -452,16 +431,16 @@ const sn = nn.exports, ln = {
452
431
  showColumn: "Show column",
453
432
  hideColumn: "Hide column"
454
433
  }
455
- }, on = X({
456
- i18n: { messages: ln },
434
+ }, ln = q({
435
+ i18n: { messages: sn },
457
436
  name: "data-grid-columns",
458
437
  components: {
459
- BentoCheckbox: be,
460
- BentoInfoIcon: ot,
438
+ BentoCheckbox: fe,
439
+ BentoInfoIcon: ft,
461
440
  BentoTypography: te,
462
- BentoMenu: at,
441
+ BentoMenu: Ct,
463
442
  TriangleUp: Ut,
464
- TriangleDown: zt
443
+ TriangleDown: xt
465
444
  },
466
445
  props: {
467
446
  /**
@@ -539,6 +518,7 @@ const sn = nn.exports, ln = {
539
518
  },
540
519
  emits: [
541
520
  E.COLUMN_RESIZE,
521
+ E.COLUMN_RESIZING,
542
522
  E.SORT,
543
523
  E.SELECT_ALL_ROWS,
544
524
  E.COLUMN_DRAG_START,
@@ -551,162 +531,160 @@ const sn = nn.exports, ln = {
551
531
  E.COLUMN_MENU_CLOSE
552
532
  ],
553
533
  setup(t, { emit: e }) {
554
- const { t: n } = he(), { columns: s, sortBy: u } = ee(t), o = I(t.allItemsSelectedState), _ = (i) => e(E.SELECT_ALL_ROWS, i), f = (i) => i.field === F, { startResize: C, isResizing: d } = bt(s, e), { conditionalSortDirectionClasses: g, sortByColumnField: r } = Et(u, s, e), b = (i) => {
555
- var L;
556
- if (!i.sortable)
534
+ const { t: n } = Ce(), { columns: i, sortBy: c } = ee(t), r = T(t.allItemsSelectedState), g = (s) => e(E.SELECT_ALL_ROWS, s), f = (s) => s.field === F, { startResize: v, isResizing: d } = bt(i, e), { conditionalSortDirectionClasses: u, sortByColumnField: o } = Et(c, i, e), p = (s) => {
535
+ var h;
536
+ if (!s.sortable)
557
537
  return null;
558
- const c = (L = t.sortBy.find(({ field: S }) => S === i.field)) == null ? void 0 : L.direction;
559
- return c ? {
560
- [$.ASCENDING]: j.ASCENDING,
561
- [$.DESCENDING]: j.DESCENDING
562
- }[c] : j.NONE;
563
- }, l = R(() => (i) => t.hasDraggableColumns ? {
564
- dragstart: (c) => {
565
- e(E.COLUMN_DRAG_START, i, c);
538
+ const _ = (h = t.sortBy.find(({ field: x }) => x === s.field)) == null ? void 0 : h.direction;
539
+ return _ ? {
540
+ [$.ASCENDING]: Y.ASCENDING,
541
+ [$.DESCENDING]: Y.DESCENDING
542
+ }[_] : Y.NONE;
543
+ }, l = y(() => (s) => t.hasDraggableColumns ? {
544
+ dragstart: (_) => {
545
+ e(E.COLUMN_DRAG_START, s, _);
566
546
  },
567
- dragover: (c) => {
568
- c.preventDefault();
547
+ dragover: (_) => {
548
+ _.preventDefault();
569
549
  },
570
- dragenter: (c) => {
571
- c.preventDefault(), e(E.COLUMN_DRAG_ENTER, i, c);
550
+ dragenter: (_) => {
551
+ _.preventDefault(), e(E.COLUMN_DRAG_ENTER, s, _);
572
552
  },
573
553
  drop: () => {
574
- e(E.COLUMN_DROP, i);
554
+ e(E.COLUMN_DROP, s);
575
555
  },
576
556
  dragend: () => {
577
557
  e(E.COLUMN_DRAG_END);
578
558
  }
579
- } : {}), v = R(() => (i) => [
559
+ } : {}), C = y(() => (s) => [
580
560
  {
581
561
  text: n("moveColumnLeft"),
582
- handler: () => e(E.COLUMN_MOVE, i, -1),
583
- icon: ct,
584
- disabled: t.columns[0].field === i.field
562
+ handler: () => e(E.COLUMN_MOVE, s, -1),
563
+ icon: vt,
564
+ disabled: t.columns[0].field === s.field
585
565
  },
586
566
  {
587
567
  text: n("moveColumnRight"),
588
- handler: () => e(E.COLUMN_MOVE, i, 1),
589
- icon: Wt,
590
- disabled: t.columns[t.columns.length - 1].field === i.field
568
+ handler: () => e(E.COLUMN_MOVE, s, 1),
569
+ icon: kt,
570
+ disabled: t.columns[t.columns.length - 1].field === s.field
591
571
  },
592
572
  {
593
- text: i != null && i.frozen ? n("unfreezeColumn") : n("freezeColumn"),
594
- handler: () => e(E.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
595
- icon: Re
573
+ text: s != null && s.frozen ? n("unfreezeColumn") : n("freezeColumn"),
574
+ handler: () => e(E.COLUMN_UPDATE, { ...s, frozen: !(s != null && s.frozen) }),
575
+ icon: me
596
576
  },
597
577
  {
598
- text: (i == null ? void 0 : i.visible) !== !1 ? n("hideColumn") : n("showColumn"),
578
+ text: (s == null ? void 0 : s.visible) !== !1 ? n("hideColumn") : n("showColumn"),
599
579
  handler: () => {
600
580
  e(E.COLUMN_UPDATE, {
601
- ...i,
602
- visible: (i == null ? void 0 : i.visible) === !1
581
+ ...s,
582
+ visible: (s == null ? void 0 : s.visible) === !1
603
583
  });
604
584
  },
605
- icon: (i == null ? void 0 : i.visible) !== !1 ? Qt : sn,
606
- disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && t.isOnlyOneVisibleColumn
585
+ icon: (s == null ? void 0 : s.visible) !== !1 ? Jt : nn,
586
+ disabled: (s == null ? void 0 : s.mandatory) || (s == null ? void 0 : s.visible) !== !1 && t.isOnlyOneVisibleColumn
607
587
  }
608
- ]), m = (i) => {
609
- let c = {};
610
- return f(i) || (c = {
611
- ...l.value(i)
612
- }), i.sortable && (c.click = () => r(i.field), c.keydown = (h) => {
613
- h.keyCode === D.ENTER && r(i.field);
614
- }), c;
615
- }, T = R(
588
+ ]), m = (s) => {
589
+ let _ = {};
590
+ return f(s) || (_ = {
591
+ ...l.value(s)
592
+ }), s.sortable && (_.click = () => o(s.field), _.keydown = (L) => {
593
+ L.keyCode === D.ENTER && o(s.field);
594
+ }), _;
595
+ }, R = y(
616
596
  () => {
617
- var i;
618
- return (i = s.value[0]) != null && i.frozen ? { "b-data-grid-columns--frozen": !0 } : {
597
+ var s;
598
+ return (s = i.value[0]) != null && s.frozen ? { "b-data-grid-columns--frozen": !0 } : {
619
599
  "b-data-grid-columns--unfrozen": !0,
620
600
  "b-data-grid-columns--config-settings-margin": t.hasColumnPanel
621
601
  };
622
602
  }
623
- ), y = (i) => {
624
- var c, h, L, S, W, G, k, H, Z, B;
603
+ ), S = (s, _) => s && _ === 0 ? se.BOTTOM_START : se.BOTTOM_END, I = (s) => {
604
+ var _, L, h, x, G, B, H, Z, W, j;
625
605
  return {
626
- "b-data-grid-columns__column--sortable": i.sortable,
627
- "b-data-grid-columns__column--padding-left-unset": ((c = i == null ? void 0 : i.padding) == null ? void 0 : c.left) === !1,
628
- "b-data-grid-columns__column--padding-right-unset": ((h = i == null ? void 0 : i.padding) == null ? void 0 : h.right) === !1,
629
- "b-data-grid-columns__column--numeric": i == null ? void 0 : i.numeric,
630
- "b-data-grid-columns__column--frozen": i == null ? void 0 : i.frozen,
631
- "b-data-grid-columns__column--is-re-ordering": (i == null ? void 0 : i.field) === ((S = (L = t.draggingColumns) == null ? void 0 : L.dragging) == null ? void 0 : S.field),
632
- "b-data-grid-columns__column--is-re-ordering-target-left": (i == null ? void 0 : i.field) === ((G = (W = t.draggingColumns) == null ? void 0 : W.target) == null ? void 0 : G.field) && ((k = t.draggingColumns) == null ? void 0 : k.dragToLeft),
633
- "b-data-grid-columns__column--is-re-ordering-target-right": (i == null ? void 0 : i.field) === ((Z = (H = t.draggingColumns) == null ? void 0 : H.target) == null ? void 0 : Z.field) && !((B = t.draggingColumns) != null && B.dragToLeft)
606
+ "b-data-grid-columns__column--sortable": s.sortable,
607
+ "b-data-grid-columns__column--padding-left-unset": ((_ = s == null ? void 0 : s.padding) == null ? void 0 : _.left) === !1,
608
+ "b-data-grid-columns__column--padding-right-unset": ((L = s == null ? void 0 : s.padding) == null ? void 0 : L.right) === !1,
609
+ "b-data-grid-columns__column--numeric": s == null ? void 0 : s.numeric,
610
+ "b-data-grid-columns__column--frozen": s == null ? void 0 : s.frozen,
611
+ "b-data-grid-columns__column--is-re-ordering": (s == null ? void 0 : s.field) === ((x = (h = t.draggingColumns) == null ? void 0 : h.dragging) == null ? void 0 : x.field),
612
+ "b-data-grid-columns__column--is-re-ordering-target-left": (s == null ? void 0 : s.field) === ((B = (G = t.draggingColumns) == null ? void 0 : G.target) == null ? void 0 : B.field) && ((H = t.draggingColumns) == null ? void 0 : H.dragToLeft),
613
+ "b-data-grid-columns__column--is-re-ordering-target-right": (s == null ? void 0 : s.field) === ((W = (Z = t.draggingColumns) == null ? void 0 : Z.target) == null ? void 0 : W.field) && !((j = t.draggingColumns) != null && j.dragToLeft)
634
614
  };
635
- }, A = R(() => ({
615
+ }, A = y(() => ({
636
616
  "b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns
637
617
  }));
638
618
  return {
639
619
  // Values
640
620
  DATAGRID_SELECT_FIELD_NAME: F,
641
621
  // Styles and classes
642
- conditionalColumnClasses: y,
622
+ conditionalColumnClasses: I,
643
623
  conditionalColumnSeparatorClasses: A,
644
- conditionalColumnsClasses: T,
624
+ conditionalColumnsClasses: R,
645
625
  // Selecting
646
- allItemsSelectedCheckboxState: o,
626
+ allItemsSelectedCheckboxState: r,
647
627
  isSelectColumn: f,
648
- onAllRowSelect: _,
628
+ onAllRowSelect: g,
649
629
  // Sorting
650
- conditionalSortDirectionClasses: g,
651
- sortByColumnField: r,
652
- getSortingColumnDirection: b,
630
+ conditionalSortDirectionClasses: u,
631
+ sortByColumnField: o,
632
+ getSortingColumnDirection: p,
653
633
  // Resizing
654
- startResize: C,
634
+ startResize: v,
655
635
  isResizing: d,
656
636
  // Event handlers
657
637
  dataGridColumnEvents: m,
658
638
  // Dragging
659
639
  draggingEventsForColumn: l,
660
640
  // Contextual menu
661
- contextualMenuData: v,
641
+ contextualMenuData: C,
642
+ computeMenuPosition: S,
662
643
  // Enums
663
- BentoButtonVariant: ye,
664
644
  BentoDatagridSortDirection: $,
665
- BentoTypographyElement: q,
666
- BentoPopoverPositions: Se,
667
645
  DatagridColumnsEvent: E
668
646
  };
669
647
  }
670
648
  });
671
649
  var an = function() {
672
650
  var e = this, n = e._self._c;
673
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(e.columns, function(s, u) {
674
- return n("div", e._g({ key: s.field, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(s), style: { width: `${s.width}px` }, attrs: { "aria-colindex": u + 1, "aria-label": s.label, "aria-sort": e.getSortingColumnDirection(s), "data-testid": `${s.field}-column-header`, draggable: e.hasDraggableColumns && !e.isResizing && !e.isSelectColumn(s), role: "columnheader", tabindex: s.sortable ? "0" : "-1" } }, e.dataGridColumnEvents(s)), [e.isSelectColumn(s) ? [n("bento-checkbox", { attrs: { "model-value": e.allItemsSelectedCheckboxState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedCheckboxState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } })] : [n("bento-typography", { staticClass: "b-data-grid-columns__column-header", attrs: { el: e.BentoTypographyElement.DIV, strongest: "" } }, [e._t(`head-${s.field}`, function() {
675
- return [n("span", [e._v(e._s(s.label))]), s.infoIconTooltip ? n("bento-info-icon", { attrs: { "tooltip-text": s.infoIconTooltip } }) : e._e()];
676
- }, { column: s })], 2), s.sortable || e.hasColumnPanel ? n("div", { staticClass: "b-data-grid-columns__column-actions" }, [s.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n("triangle-up", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(s.field, e.BentoDatagridSortDirection.ASCENDING), attrs: { "svg-title": `${s.field} sort ascending`, "data-testid": `${s.field}-sort-icon-asc` } }), n("triangle-down", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(s.field, e.BentoDatagridSortDirection.DESCENDING), attrs: { "svg-title": `${s.field}sort descending`, "data-testid": `${s.field}-sort-icon-desc` } })], 1) : e._e(), e.hasColumnPanel ? n("bento-menu", { staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(s), "menu-position": e.hasFirstColumnPanelRightAligned && u === 0 ? e.BentoPopoverPositions.BOTTOM_START : e.BentoPopoverPositions.BOTTOM_END, "menu-fixed-positioning": !0, button: { variant: e.BentoButtonVariant.TERTIARY } }, on: { open: function(o) {
651
+ return e._self._setupProxy, n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(e.columns, function(i, c) {
652
+ return n("div", e._g({ key: i.field, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(i), style: { width: `${i.width}px` }, attrs: { "aria-colindex": c + 1, "aria-label": i.label, "aria-sort": e.getSortingColumnDirection(i), "data-testid": `${i.field}-column-header`, draggable: e.hasDraggableColumns && !e.isResizing && !e.isSelectColumn(i), role: "columnheader", tabindex: i.sortable ? "0" : "-1" } }, e.dataGridColumnEvents(i)), [e.isSelectColumn(i) ? [n("bento-checkbox", { attrs: { "model-value": e.allItemsSelectedCheckboxState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedCheckboxState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } })] : [n("bento-typography", { staticClass: "b-data-grid-columns__column-header", attrs: { el: "div", strongest: "" } }, [e._t(`head-${i.field}`, function() {
653
+ return [n("span", [e._v(e._s(i.label))]), i.infoIconTooltip ? n("bento-info-icon", { attrs: { "tooltip-text": i.infoIconTooltip } }) : e._e()];
654
+ }, { column: i })], 2), i.sortable || e.hasColumnPanel ? n("div", { staticClass: "b-data-grid-columns__column-actions" }, [i.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n("triangle-up", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(i.field, e.BentoDatagridSortDirection.ASCENDING), attrs: { "svg-title": `${i.field} sort ascending`, "data-testid": `${i.field}-sort-icon-asc` } }), n("triangle-down", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(i.field, e.BentoDatagridSortDirection.DESCENDING), attrs: { "svg-title": `${i.field}sort descending`, "data-testid": `${i.field}-sort-icon-desc` } })], 1) : e._e(), e.hasColumnPanel ? n("bento-menu", { staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(i), "menu-position": e.computeMenuPosition(e.hasFirstColumnPanelRightAligned, c), "menu-fixed-positioning": !0, button: { variant: "tertiary" } }, on: { open: function(r) {
677
655
  return e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
678
- }, close: function(o) {
656
+ }, close: function(r) {
679
657
  return e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
680
- } } }) : e._e()], 1) : e._e(), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses, attrs: { "data-testid": `data-grid-column-${s.field}`, role: "presentation" }, on: { mousedown: function(o) {
681
- return e.startResize(e.hasResizableColumns, s.field, o);
682
- }, click: function(o) {
683
- o.stopPropagation();
684
- } } }, [!e.isFrozenColumns || e.isFrozenColumns && u !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
658
+ } } }) : e._e()], 1) : e._e(), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses, attrs: { "data-testid": `data-grid-column-${i.field}`, role: "presentation" }, on: { mousedown: function(r) {
659
+ return e.startResize(e.hasResizableColumns, i.field, r);
660
+ }, click: function(r) {
661
+ r.stopPropagation();
662
+ } } }, [!e.isFrozenColumns || e.isFrozenColumns && c !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
685
663
  }), 0);
686
- }, rn = [], dn = /* @__PURE__ */ U(
687
- on,
664
+ }, on = [], rn = /* @__PURE__ */ P(
665
+ ln,
688
666
  an,
689
- rn,
667
+ on,
690
668
  !1,
691
669
  null,
692
- "a2d7affc",
670
+ "990f490d",
693
671
  null,
694
672
  null
695
673
  );
696
- const cn = dn.exports;
674
+ const dn = rn.exports;
697
675
  var M = /* @__PURE__ */ ((t) => (t.CONFIG_SETTINGS = "config-settings", t.UPDATE_COLUMNS = "update:columns", t))(M || {});
698
676
  let _e = 0;
699
- const un = {
677
+ const cn = {
700
678
  beforeCreate() {
701
679
  this.uuid = _e.toString(), _e += 1;
702
680
  }
703
681
  };
704
- var gn = function() {
682
+ var un = function() {
705
683
  var e = this, n = e._self._c;
706
684
  return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-settings__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
707
- }, _n = [], fn = /* @__PURE__ */ U(
685
+ }, _n = [], gn = /* @__PURE__ */ P(
686
+ cn,
708
687
  un,
709
- gn,
710
688
  _n,
711
689
  !1,
712
690
  null,
@@ -714,17 +692,17 @@ var gn = function() {
714
692
  null,
715
693
  null
716
694
  );
717
- const Cn = fn.exports, vn = {
695
+ const fn = gn.exports, Cn = {
718
696
  "en-US": {
719
697
  toggleColumnVisibility: "Toggle {label} column visibility",
720
698
  toggleColumnFreeze: "Toggle {label} column freeze"
721
699
  }
722
- }, mn = X({
723
- i18n: { messages: vn },
700
+ }, vn = q({
701
+ i18n: { messages: Cn },
724
702
  name: "bento-data-grid",
725
703
  components: {
726
- BentoFreezeIcon: Re,
727
- BentoToggle: Le
704
+ BentoFreezeIcon: me,
705
+ BentoToggle: ve
728
706
  },
729
707
  props: {
730
708
  /**
@@ -744,57 +722,53 @@ const Cn = fn.exports, vn = {
744
722
  },
745
723
  emits: ["visible-column", "updated-column"],
746
724
  setup(t, { emit: e }) {
747
- const n = I(!1), s = R(() => {
748
- var g;
749
- return (g = t.column) == null ? void 0 : g.frozen;
750
- }), u = R(() => {
751
- var g;
752
- return ((g = t.column) == null ? void 0 : g.visible) !== !1;
753
- }), o = () => {
754
- e("visible-column", { ...t.column, visible: !u.value });
755
- }, _ = () => {
756
- e("updated-column", { ...t.column, frozen: !s.value });
725
+ const n = T(!1), i = y(() => {
726
+ var u;
727
+ return (u = t.column) == null ? void 0 : u.frozen;
728
+ }), c = y(() => {
729
+ var u;
730
+ return ((u = t.column) == null ? void 0 : u.visible) !== !1;
731
+ }), r = () => {
732
+ e("visible-column", { ...t.column, visible: !c.value });
733
+ }, g = () => {
734
+ e("updated-column", { ...t.column, frozen: !i.value });
757
735
  }, f = () => {
758
- s.value || (n.value = !0);
759
- }, C = () => {
760
- s.value || (n.value = !1);
761
- }, d = R(() => ({
762
- ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: s.value
736
+ i.value || (n.value = !0);
737
+ }, v = () => {
738
+ i.value || (n.value = !1);
739
+ }, d = y(() => ({
740
+ ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: i.value
763
741
  }));
764
742
  return {
765
743
  // Values
766
744
  isFreezeIconOptionShown: n,
767
- isColumnFrozen: s,
745
+ isColumnFrozen: i,
768
746
  freezeIconConditionalClasses: d,
769
- isColumnVisible: u,
747
+ isColumnVisible: c,
770
748
  // Methods
771
- toggleColumnVisibility: o,
749
+ toggleColumnVisibility: r,
772
750
  showFreezeIcon: f,
773
- hideFreezeIcon: C,
774
- toggleColumnFreeze: _,
775
- // Enum
776
- BentoToggleLabelPosition: Ee,
777
- BentoTypographyElement: q,
778
- BentoTypographyVariant: ne
751
+ hideFreezeIcon: v,
752
+ toggleColumnFreeze: g
779
753
  };
780
754
  }
781
755
  });
782
- var pn = function() {
756
+ var mn = function() {
783
757
  var e = this, n = e._self._c;
784
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": e.$t("toggleColumnVisibility", { label: e.column.label }), disabled: e.isColumnVisibilityToggleDisabled, "label-position": e.BentoToggleLabelPosition.AFTER, value: e.isColumnVisible }, on: { input: e.toggleColumnVisibility } }, [e._v(" " + e._s(e.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isColumnFrozen || e.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: e.freezeIconConditionalClasses, attrs: { "aria-label": e.$t("toggleColumnFreeze", { label: e.column.label }) }, nativeOn: { click: function(s) {
758
+ return e._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": e.$t("toggleColumnVisibility", { label: e.column.label }), disabled: e.isColumnVisibilityToggleDisabled, "label-position": "after", value: e.isColumnVisible }, on: { input: e.toggleColumnVisibility } }, [e._v(" " + e._s(e.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isColumnFrozen || e.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: e.freezeIconConditionalClasses, attrs: { "aria-label": e.$t("toggleColumnFreeze", { label: e.column.label }) }, nativeOn: { click: function(i) {
785
759
  return e.toggleColumnFreeze.apply(null, arguments);
786
760
  } } })], 1);
787
- }, bn = [], hn = /* @__PURE__ */ U(
761
+ }, bn = [], pn = /* @__PURE__ */ P(
762
+ vn,
788
763
  mn,
789
- pn,
790
764
  bn,
791
765
  !1,
792
766
  null,
793
- "3437c8f9",
767
+ "246774cd",
794
768
  null,
795
769
  null
796
770
  );
797
- const Sn = hn.exports, yn = {
771
+ const hn = pn.exports, Sn = {
798
772
  "en-US": {
799
773
  closeConfigSettingsPanel: "Close configuration settings panel",
800
774
  configSettingsPanel: "Configuration settings Panel",
@@ -810,21 +784,21 @@ const Sn = hn.exports, yn = {
810
784
  closeSearch: "Close search",
811
785
  noColumnsMatch: "No columns match this search"
812
786
  }
813
- }, Ln = X({
814
- i18n: { messages: yn },
787
+ }, Ln = q({
788
+ i18n: { messages: Sn },
815
789
  name: "bento-data-grid",
816
790
  components: {
817
- BentoCrossIcon: _t,
818
- BentoPopover: rt,
819
- BentoSettingsIcon: Cn,
820
- BentoButton: dt,
821
- BentoDataGridConfigSettingsConfigRow: Sn,
822
- BentoSearchBar: ut,
823
- BentoSearchIcon: ft,
824
- BentoToggle: Le,
791
+ BentoCrossIcon: dt,
792
+ BentoPopover: lt,
793
+ BentoSettingsIcon: fn,
794
+ BentoButton: at,
795
+ BentoDataGridConfigSettingsConfigRow: hn,
796
+ BentoSearchBar: ot,
797
+ BentoSearchIcon: ct,
798
+ BentoToggle: ve,
825
799
  BentoTypography: te
826
800
  },
827
- directives: { BentoClickOutsideDirective: vt },
801
+ directives: { BentoClickOutsideDirective: gt },
828
802
  props: {
829
803
  /**
830
804
  * Column definitions
@@ -843,97 +817,94 @@ const Sn = hn.exports, yn = {
843
817
  },
844
818
  emits: [M.CONFIG_SETTINGS, M.UPDATE_COLUMNS],
845
819
  setup(t, { emit: e }) {
846
- const n = I(null), s = Ct("data-grid-config-settings-popover"), u = I(null), o = I(!1), _ = I(!0), f = I(""), C = me(t, "columns"), d = I(!1), g = gt(f, C), r = () => {
820
+ const n = T(null), i = ut("data-grid-config-settings-popover"), c = T(null), r = T(!1), g = T(!0), f = T(""), v = qe(t, "columns"), d = T(!1), u = rt(f, v), o = () => {
847
821
  f.value = "";
848
- }, b = R(
849
- () => !t.columns.some((h) => h.visible === !1 && !h.mandatory)
822
+ }, p = y(
823
+ () => !t.columns.some((_) => _.visible === !1 && !_.mandatory)
850
824
  ), l = () => {
851
- r(), d.value = !d.value, d.value && x(() => u.value.bentoInputField.focusInput()), _.value = b.value;
852
- }, v = (h) => h.mandatory ?? !1, m = (h) => {
853
- const L = t.columns.map((S) => ({
854
- ...S,
855
- visible: h.field === S.field ? h.visible : S.visible
825
+ o(), d.value = !d.value, d.value && V(() => {
826
+ var _;
827
+ return (_ = c.value.bentoInputField) == null ? void 0 : _.focusInput();
828
+ }), g.value = p.value;
829
+ }, C = (_) => _.mandatory ?? !1, m = (_) => {
830
+ const L = t.columns.map((h) => ({
831
+ ...h,
832
+ visible: _.field === h.field ? _.visible : h.visible
856
833
  }));
857
834
  e(M.UPDATE_COLUMNS, L);
858
- }, T = (h) => {
859
- h ? e(
835
+ }, R = (_) => {
836
+ _ ? e(
860
837
  M.UPDATE_COLUMNS,
861
838
  t.columns.map((L) => ({ ...L, visible: !0 }))
862
839
  ) : e(
863
840
  M.UPDATE_COLUMNS,
864
841
  t.columns.map((L) => ({ ...L, visible: (L == null ? void 0 : L.mandatory) === !0 }))
865
842
  );
866
- }, y = (h) => {
867
- const L = t.columns.map((S) => ({
868
- ...S,
869
- frozen: h.field === S.field ? !!(h != null && h.frozen) : !!(S != null && S.frozen)
843
+ }, S = (_) => {
844
+ const L = t.columns.map((h) => ({
845
+ ...h,
846
+ frozen: _.field === h.field ? !!(_ != null && _.frozen) : !!(h != null && h.frozen)
870
847
  }));
871
848
  e(M.UPDATE_COLUMNS, L);
872
- }, A = (h) => {
873
- o.value = h, _.value = b.value;
849
+ }, I = (_) => {
850
+ r.value = _, g.value = p.value;
874
851
  };
875
852
  return {
876
853
  // Values
877
854
  configSettingsButtonRef: n,
878
- popoverId: s,
879
- isConfigSettingsPanelOpen: o,
880
- allColumnsVisbilityToggleState: _,
881
- filteredColumnVisibilityColumns: g,
855
+ popoverId: i,
856
+ isConfigSettingsPanelOpen: r,
857
+ allColumnsVisbilityToggleState: g,
858
+ filteredColumnVisibilityColumns: u,
882
859
  searchTerm: f,
883
860
  isColumnVisibilityFilterShown: d,
884
- searchBarRef: u,
861
+ searchBarRef: c,
885
862
  DATAGRID_SELECT_FIELD_NAME: F,
886
863
  // Methods
887
- setConfigSettingsPanelVisibility: A,
888
- emitCondensedToggle: (h) => e(M.CONFIG_SETTINGS, h),
889
- toggleAllColumnVisibility: T,
890
- clearAction: r,
864
+ setConfigSettingsPanelVisibility: I,
865
+ emitCondensedToggle: (_) => e(M.CONFIG_SETTINGS, _),
866
+ toggleAllColumnVisibility: R,
867
+ clearAction: o,
891
868
  toggleColumnFilter: l,
892
869
  emitVisibleColumns: m,
893
- emitFrozenColumns: y,
894
- onClickOutside: () => A(!1),
895
- isColumnVisibilityToggleDisabled: v,
896
- // Enum
897
- BentoToggleLabelPosition: Ee,
898
- BentoTypographyElement: q,
899
- BentoTypographyVariant: ne,
900
- BentoButtonVariant: ye,
901
- BentoPopoverPositions: Se
870
+ emitFrozenColumns: S,
871
+ onClickOutside: () => I(!1),
872
+ isColumnVisibilityToggleDisabled: C
902
873
  };
903
874
  }
904
875
  });
905
876
  var En = function() {
906
877
  var e = this, n = e._self._c;
907
- return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-seperator" }, [n("div", { staticClass: "b-data-grid-config-settings__column-separator" }), n("div", { staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-button", { ref: "configSettingsButtonRef", attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: e.BentoButtonVariant.TERTIARY }, on: { click: function(s) {
878
+ return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { staticClass: "b-data-grid-config-settings__column-separator" }), n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-button", { attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: "tertiary" }, on: { click: function(i) {
908
879
  return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
909
880
  } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
910
881
  return [n("bento-settings-icon", { attrs: { "svg-title": e.$t("toggleConfigSettingsPanelVisibility") } })];
911
- }, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: e.popoverId, open: e.isConfigSettingsPanelOpen, "aria-label": e.$t("configSettingsPanel"), "target-element": e.configSettingsButtonRef, position: e.BentoPopoverPositions.BOTTOM } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN, strongest: "" } }, [e._v(" " + e._s(e.$t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: e.BentoButtonVariant.TERTIARY }, on: { click: function(s) {
882
+ }, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: e.popoverId, open: e.isConfigSettingsPanelOpen, "aria-label": e.$t("configSettingsPanel"), "target-element": e.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(e.$t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(i) {
912
883
  return e.setConfigSettingsPanelVisibility(!1);
913
884
  } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
914
885
  return [n("bento-cross-icon", { attrs: { "svg-title": e.$t("closeConfigSettingsPanel") } })];
915
- }, proxy: !0 }], null, !1, 13708930) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(" " + e._s(e.$t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": e.BentoToggleLabelPosition.AFTER, "aria-label": e.$t("condensedToggle"), value: e.condensed }, on: { input: e.emitCondensedToggle } }, [e._v(" " + e._s(e.$t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(" " + e._s(e.$t("columns")) + " ")]), e.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: e.BentoButtonVariant.TERTIARY }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
886
+ }, proxy: !0 }], null, !1, 13708930) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.$t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": "after", "aria-label": e.$t("condensedToggle"), value: e.condensed }, on: { input: e.emitCondensedToggle } }, [e._v(" " + e._s(e.$t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.$t("columns")) + " ")]), e.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
916
887
  return [n("bento-cross-icon")];
917
- }, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.$t("closeSearch")) + " ")]) : n("bento-button", { attrs: { variant: e.BentoButtonVariant.TERTIARY }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
888
+ }, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.$t("closeSearch")) + " ")]) : n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
918
889
  return [n("bento-search-icon")];
919
- }, proxy: !0 }], null, !1, 2341044271) }, [e._v(" " + e._s(e.$t("search")) + " ")])], 1), e.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("columnVisibilitySearchFilter").toString() }, on: { input: function(s) {
920
- e.searchTerm = s;
921
- }, clear: e.clearAction, "escape-pressed": function(s) {
890
+ }, proxy: !0 }], null, !1, 2341044271) }, [e._v(" " + e._s(e.$t("search")) + " ")])], 1), e.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("columnVisibilitySearchFilter").toString() }, on: { input: function(i) {
891
+ e.searchTerm = i;
892
+ }, clear: e.clearAction, "escape-pressed": function(i) {
922
893
  return e.toggleColumnFilter();
923
- } } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": e.BentoToggleLabelPosition.AFTER, value: e.allColumnsVisbilityToggleState }, on: { input: e.toggleAllColumnVisibility } }, [e._v(" " + e._s(e.$t("showAllColumns", { numberOfColumns: e.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(s) {
924
- return n("div", { key: s.field }, [s.field !== e.DATAGRID_SELECT_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: s, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(s) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
925
- }), e.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.$t("noColumnsMatch")) + " ")]) : e._e()], 2)])]) : e._e()], 1);
926
- }, Rn = [], Tn = /* @__PURE__ */ U(
894
+ } } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: e.allColumnsVisbilityToggleState }, on: { input: e.toggleAllColumnVisibility } }, [e._v(" " + e._s(e.$t("showAllColumns", { numberOfColumns: e.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(i) {
895
+ return n("div", { key: i.field }, [i.field !== e.DATAGRID_SELECT_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: i, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(i) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
896
+ }), e.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [e._v(" " + e._s(e.$t("noColumnsMatch")) + " ")]) : e._e()], 2)])]) : e._e()], 1);
897
+ }, yn = [], Rn = /* @__PURE__ */ P(
927
898
  Ln,
928
899
  En,
929
- Rn,
900
+ yn,
930
901
  !1,
931
902
  null,
932
- "926f1575",
903
+ "86ff67f7",
933
904
  null,
934
905
  null
935
906
  );
936
- const On = Tn.exports, In = {
907
+ const On = Rn.exports, Tn = {
937
908
  "en-US": {
938
909
  gettingYourData: "Getting your data",
939
910
  sortAscending: "{field} sort ascending",
@@ -941,17 +912,18 @@ const On = Tn.exports, In = {
941
912
  sortInactive: "{field} sort inactive",
942
913
  selectRow: "Select row"
943
914
  }
944
- }, An = X({
945
- i18n: { messages: In },
915
+ }, In = q({
916
+ i18n: { messages: Tn },
946
917
  name: "bento-data-grid",
947
918
  components: {
948
- BentoCheckbox: be,
949
- DataGridColumns: cn,
919
+ BentoCheckbox: fe,
950
920
  BentoDataGridConfigSettings: On,
951
- BentoLoadingIndicator: st,
952
- BentoPagination: nt,
921
+ BentoEmptyState: st,
922
+ BentoLoadingIndicator: et,
923
+ BentoPagination: Ke,
953
924
  BentoFilterBar: J,
954
- BentoTypography: te
925
+ BentoTypography: te,
926
+ DataGridColumns: dn
955
927
  },
956
928
  props: {
957
929
  /**
@@ -987,6 +959,13 @@ const On = Tn.exports, In = {
987
959
  type: Array,
988
960
  required: !0
989
961
  },
962
+ /**
963
+ * Empty state props that will be passed down to inner empty-state component
964
+ */
965
+ emptyState: {
966
+ type: Object,
967
+ default: void 0
968
+ },
990
969
  /**
991
970
  * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
992
971
  */
@@ -1086,242 +1065,255 @@ const On = Tn.exports, In = {
1086
1065
  type: Array,
1087
1066
  // NOTE: is an array to allow multi-sorting in the future
1088
1067
  default: () => []
1068
+ },
1069
+ /**
1070
+ * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
1071
+ */
1072
+ tabTitle: {
1073
+ type: String,
1074
+ default: null
1089
1075
  }
1090
1076
  },
1091
1077
  emits: [
1092
- p.COLUMNS,
1093
- p.COLUMN_RESIZE,
1094
- p.ITEMS_PAGE,
1095
- p.FILTER_SEARCH_INPUT,
1096
- p.FILTER_SEARCH_CLEAR,
1097
- p.NAVIGATE,
1098
- p.UPDATE_COLUMNS,
1099
- p.UPDATE_FILTERS,
1100
- p.UPDATE_FILTER_SEARCH_TERM,
1101
- p.UPDATE_PAGINATION,
1102
- p.UPDATE_SELECTION,
1103
- p.UPDATE_SORT_BY,
1104
- p.ROW_CLICK,
1105
- p.SELECT,
1106
- p.SORT
1078
+ b.COLUMNS,
1079
+ b.COLUMN_RESIZE,
1080
+ b.ITEMS_PAGE,
1081
+ b.FILTER_SEARCH_INPUT,
1082
+ b.FILTER_SEARCH_CLEAR,
1083
+ b.NAVIGATE,
1084
+ b.UPDATE_COLUMNS,
1085
+ b.UPDATE_CONDENSED,
1086
+ b.UPDATE_FILTERS,
1087
+ b.UPDATE_FILTER_SEARCH_TERM,
1088
+ b.UPDATE_PAGINATION,
1089
+ b.UPDATE_SELECTION,
1090
+ b.UPDATE_SORT_BY,
1091
+ b.ROW_CLICK,
1092
+ b.SELECT,
1093
+ b.SORT
1107
1094
  ],
1108
1095
  setup(t, { emit: e, slots: n }) {
1109
- const s = I(null), u = I(), o = I(null), { columns: _, selectable: f, data: C, selection: d, allowColumnDragAndDrop: g } = ee(t), { t: r } = he(), { columnDefs: b, onColumnWidthOverride: l, gridColumnWidthStyle: v } = Lt(_, s, {
1110
- hasSelectableColumn: f
1111
- }), m = I(null), T = mt({
1112
- paginationRef: m,
1113
- fitContent: me(t, "fitContent")
1096
+ const i = T(null), c = T(), r = T(null), g = T(), f = T(0), { columns: v, selectable: d, data: u, selection: o, allowColumnDragAndDrop: p } = ee(t), { t: l } = Ce(), { columnDefs: C, onColumnWidthOverride: m, gridColumnWidthStyle: R } = Lt(v, i, {
1097
+ hasSelectableColumn: d
1114
1098
  }), {
1115
- sortedColumns: y,
1116
- columnSets: A,
1117
- isOnlyOneVisibleColumn: i,
1118
- onConfigSettingsUpdate: c,
1119
- onConfigSettingsColumnsUpdate: h,
1099
+ sortedColumns: S,
1100
+ columnSets: I,
1101
+ isOnlyOneVisibleColumn: A,
1102
+ onConfigSettingsUpdate: s,
1103
+ onConfigSettingsColumnsUpdate: _,
1120
1104
  onConfigSettingsColumnUpdate: L
1121
- } = It(b, e), { draggingColumns: S, draggingEventsForColumns: W, draggingEventsForRowCell: G, onMoveColumnByOffset: k } = Ot(y, g, e), { onAllRowSelect: H, onRowSelect: Z, selectedItems: B, allItemsSelectedState: Te } = Rt(
1122
- d,
1105
+ } = Tt(C, e), { draggingColumns: h, draggingEventsForColumns: x, draggingEventsForRowCell: G, onMoveColumnByOffset: B } = Ot(S, p, e), { onAllRowSelect: H, onRowSelect: Z, selectedItems: W, allItemsSelectedState: j } = yt(
1106
+ o,
1123
1107
  e,
1124
- C,
1108
+ u,
1125
1109
  t.getDataItemId,
1126
1110
  t.isDataItemDisabled
1127
- ), Oe = R(() => ({
1111
+ ), be = y(() => ({
1128
1112
  [`b-data-grid--${Q.OUTLINE}`]: t.outline,
1129
1113
  [`b-data-grid--${Q.FIT_CONTENT}`]: t.fitContent
1130
- })), Ie = R(() => A.value.findIndex((a) => a.columnSet.length)), Ae = (a) => {
1114
+ })), pe = y(() => I.value.findIndex((a) => a.columnSet.length)), he = (a) => {
1131
1115
  var O;
1132
1116
  return {
1133
1117
  "b-data-grid__row--disabled": t.isDataItemDisabled(a),
1134
1118
  "b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
1135
- "b-data-grid__cell--is-re-ordering": ((O = S.target) == null ? void 0 : O.field) !== void 0,
1136
- "b-data-grid__row--highlighted": t.highlightedRows.includes(a.id)
1119
+ "b-data-grid__cell--is-re-ordering": ((O = h.target) == null ? void 0 : O.field) !== void 0,
1120
+ "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(a))
1137
1121
  };
1138
- }, Ne = (a) => ({
1122
+ }, Se = (a) => ({
1139
1123
  "b-data-grid__row-cell-set--frozen": a,
1140
1124
  "b-data-grid__row-cell-set--unfrozen": !a,
1141
1125
  "b-data-grid__row-cell-set--config-settings-margin": !a && t.columnPanel
1142
- }), we = (a) => {
1143
- var O, w, P, z, V;
1126
+ }), Le = (a) => {
1127
+ var O, w, U, z, k;
1144
1128
  return {
1145
1129
  "b-data-grid__cell--padding-left-unset": ((O = a == null ? void 0 : a.padding) == null ? void 0 : O.left) === !1,
1146
1130
  "b-data-grid__cell--padding-right-unset": ((w = a == null ? void 0 : a.padding) == null ? void 0 : w.right) === !1,
1147
1131
  "b-data-grid__cell--numeric": a == null ? void 0 : a.numeric,
1148
1132
  "b-data-grid__cell--condensed": t.condensed,
1149
1133
  "b-data-grid__cell--frozen": a == null ? void 0 : a.frozen,
1150
- [`b-data-grid__cell--overflow-${Y.ELLIPSIS}`]: (a == null ? void 0 : a.overflow) === Y.ELLIPSIS,
1151
- "b-data-grid__cell--is-column-re-ordering": ((P = S.dragging) == null ? void 0 : P.field) === a.field,
1152
- "b-data-grid__cell--is-column-re-order-target-left": ((z = S.target) == null ? void 0 : z.field) === a.field && (S == null ? void 0 : S.dragToLeft),
1153
- "b-data-grid__cell--is-column-re-order-target-right": ((V = S.target) == null ? void 0 : V.field) === a.field && !(S != null && S.dragToLeft)
1134
+ [`b-data-grid__cell--overflow-${X.ELLIPSIS}`]: (a == null ? void 0 : a.overflow) === X.ELLIPSIS,
1135
+ "b-data-grid__cell--is-column-re-ordering": ((U = h.dragging) == null ? void 0 : U.field) === a.field,
1136
+ "b-data-grid__cell--is-column-re-order-target-left": ((z = h.target) == null ? void 0 : z.field) === a.field && (h == null ? void 0 : h.dragToLeft),
1137
+ "b-data-grid__cell--is-column-re-order-target-right": ((k = h.target) == null ? void 0 : k.field) === a.field && !(h != null && h.dragToLeft)
1154
1138
  };
1155
- }, se = I(!1), Pe = R(() => ({
1156
- "b-data-grid__columns--menu-open": se.value
1157
- })), Ue = (a, O) => (a == null ? void 0 : a.overflow) === Y.ELLIPSIS ? `${O}` : void 0, De = (a) => a ?? "-", Me = R(() => {
1158
- var a, O, w, P, z, V;
1139
+ }, Ee = (a, O) => (a == null ? void 0 : a.overflow) === X.ELLIPSIS ? `${O}` : void 0, ye = (a) => a ?? "-", Re = y(() => {
1140
+ var a, O, w, U, z, k;
1159
1141
  return {
1160
1142
  "b-data-grid__pagination--padding-left-unset": ((w = (O = (a = t.columns) == null ? void 0 : a[0]) == null ? void 0 : O.padding) == null ? void 0 : w.left) === !1,
1161
- "b-data-grid__pagination--padding-right-unset": ((V = (z = (P = t.columns) == null ? void 0 : P[t.columns.length - 1]) == null ? void 0 : z.padding) == null ? void 0 : V.right) === !1,
1143
+ "b-data-grid__pagination--padding-right-unset": ((k = (z = (U = t.columns) == null ? void 0 : U[t.columns.length - 1]) == null ? void 0 : z.padding) == null ? void 0 : k.right) === !1,
1162
1144
  "b-data-grid__pagination--sticky": !!t.stickyPagination
1163
1145
  };
1164
- }), $e = R(() => {
1146
+ }), Oe = y(() => {
1165
1147
  var a;
1166
1148
  return {
1167
- height: `${(a = u.value) == null ? void 0 : a.clientHeight}px`
1149
+ height: `${(a = c.value) == null ? void 0 : a.clientHeight}px`
1168
1150
  };
1169
- }), xe = tt({
1170
- label: n != null && n.header ? lt(n)("header") : null,
1151
+ }), Te = Qe({
1152
+ label: n != null && n.header ? nt(n)("header") : null,
1171
1153
  defaultFallback: "data grid"
1172
- }), ze = (a) => {
1154
+ }), Ie = (a) => {
1173
1155
  if (!t.selectable)
1174
1156
  return null;
1175
1157
  const O = t.getDataItemId(a);
1176
- return B.value.includes(O).toString();
1177
- }, Fe = (a) => e(p.COLUMN_RESIZE, a), Ge = (a) => {
1178
- e(p.UPDATE_SORT_BY, a), e(p.SORT, a);
1179
- }, Be = (a) => {
1180
- e(p.NAVIGATE, a), e(p.UPDATE_PAGINATION, {
1158
+ return W.value.includes(O).toString();
1159
+ }, Ae = (a) => e(b.COLUMN_RESIZE, a), Ne = (a) => {
1160
+ e(b.UPDATE_SORT_BY, a), e(b.SORT, a);
1161
+ }, we = (a) => {
1162
+ e(b.NAVIGATE, a), e(b.UPDATE_PAGINATION, {
1181
1163
  ...t.pagination,
1182
1164
  page: a
1183
1165
  });
1184
- }, Ve = (a) => e(p.ITEMS_PAGE, a), We = () => {
1185
- e(p.FILTER_SEARCH_CLEAR);
1186
- }, ke = (a) => {
1187
- e(p.UPDATE_FILTER_SEARCH_TERM, a), e(p.FILTER_SEARCH_INPUT, a);
1188
- }, He = (a, O) => {
1189
- t.allowRowClicks && e(p.ROW_CLICK, a, O);
1190
- }, Ze = R(() => {
1191
- const a = _.value.filter(({ visible: O }) => O !== !1);
1192
- return f.value ? a.length + 1 : a.length;
1193
- }), Ye = R(
1194
- () => [...o.value].sort((a, O) => {
1195
- const w = Number(a.getAttribute("data-cellindex")), P = Number(O.getAttribute("data-cellindex"));
1196
- return w > P ? 1 : P > w ? -1 : 0;
1166
+ }, Ue = (a) => e(b.ITEMS_PAGE, a), Pe = () => {
1167
+ e(b.FILTER_SEARCH_CLEAR);
1168
+ }, De = (a) => {
1169
+ e(b.UPDATE_FILTER_SEARCH_TERM, a), e(b.FILTER_SEARCH_INPUT, a);
1170
+ }, Me = () => {
1171
+ g.value.isClearAllVisible ? g.value.clearAllFilters() : g.value.isResetAllVisible && g.value.resetAllFilters();
1172
+ }, $e = y(() => ({
1173
+ ...t.emptyState,
1174
+ variant: t.emptyState.variant === "embedded" || t.emptyState.variant === "basic" ? t.emptyState.variant : "basic"
1175
+ })), xe = (a, O) => {
1176
+ t.allowRowClicks && e(b.ROW_CLICK, a, O);
1177
+ }, ze = y(() => {
1178
+ const a = v.value.filter(({ visible: O }) => O !== !1);
1179
+ return d.value ? a.length + 1 : a.length;
1180
+ }), Fe = y(
1181
+ () => [...r.value].sort((a, O) => {
1182
+ const w = Number(a.getAttribute("data-cellindex")), U = Number(O.getAttribute("data-cellindex"));
1183
+ return w > U ? 1 : U > w ? -1 : 0;
1197
1184
  })
1198
- ), { focusOnNextGridcell: je, isNavigationKeyCode: Xe } = Tt(Ye, Ze), qe = (a) => {
1199
- const { ctrlKey: O, keyCode: w, target: P } = a;
1200
- o.value.includes(P) && Xe(w) && je(P, w, O);
1201
- }, Je = () => {
1202
- s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
1203
- s.value.style.overflowX = "auto";
1185
+ ), { focusOnNextGridcell: Ge, isNavigationKeyCode: We } = Rt(Fe, ze), ke = (a) => {
1186
+ const { ctrlKey: O, keyCode: w, target: U } = a;
1187
+ r.value.includes(U) && We(w) && Ge(U, w, O);
1188
+ };
1189
+ ge(
1190
+ () => f.value,
1191
+ () => {
1192
+ i.value.scrollLeft = f.value, c.value.scrollLeft = f.value;
1193
+ }
1194
+ );
1195
+ const Ve = (a) => {
1196
+ f.value = a.target.scrollLeft;
1197
+ }, Be = () => {
1198
+ i.value.scrollLeft = 0, i.value.style.overflowX = "hidden", setTimeout(() => {
1199
+ i.value.style.overflowX = "auto";
1204
1200
  });
1205
- }, Qe = (a) => {
1201
+ }, He = (a) => {
1206
1202
  const O = {
1207
1203
  ...G.value(a)
1208
1204
  };
1209
- return a.frozen && (O.focus = Je), O;
1210
- }, ie = (a, O) => a + A.value.length * O, Ke = (a, O, w) => _.value.length * a + ie(O, w);
1211
- return !R(() => _.value.some((a) => a.mandatory)).value && it() && console.warn(
1205
+ return a.frozen && (O.focus = Be), O;
1206
+ }, ne = (a, O) => a + I.value.length * O, Ze = (a, O, w) => v.value.length * a + ne(O, w);
1207
+ return y(() => v.value.some((a) => a.mandatory)).value || tt(
1212
1208
  "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
1213
- ), {
1209
+ ), Je(it, () => null)(t.tabTitle), {
1214
1210
  // Refs
1215
- body: s,
1216
- columnDefs: b,
1217
- columnSets: A,
1218
- gridcellRefs: o,
1219
- isColumnMenuOpen: se,
1220
- // Calculate dynamic fit-content height
1221
- paginationRef: m,
1222
- bodyDynamicStyles: T,
1211
+ body: i,
1212
+ columnDefs: C,
1213
+ columnSets: I,
1214
+ gridcellRefs: r,
1223
1215
  // $scopedSlots/$slots children
1224
1216
  slots: n,
1225
1217
  // Labels and text
1226
- ariaGridHeaderText: xe,
1227
- conditionalTitleAttribute: Ue,
1228
- getRowData: De,
1218
+ ariaGridHeaderText: Te,
1219
+ conditionalTitleAttribute: Ee,
1220
+ getRowData: ye,
1229
1221
  // Styles and classes
1230
- gridColumnWidthStyle: v,
1231
- conditionalGridClasses: Oe,
1232
- conditionalRowClasses: Ae,
1233
- conditionalRowSetClasses: Ne,
1234
- conditionalRowCellClasses: we,
1235
- conditionalPaginationClasses: Me,
1236
- conditionalColumnsClasses: Pe,
1222
+ gridColumnWidthStyle: R,
1223
+ conditionalGridClasses: be,
1224
+ conditionalRowClasses: he,
1225
+ conditionalRowSetClasses: Se,
1226
+ conditionalRowCellClasses: Le,
1227
+ conditionalPaginationClasses: Re,
1228
+ // Empty state
1229
+ limitedEmptyStateProps: $e,
1237
1230
  // Resizing
1238
- onColumnWidthOverride: l,
1239
- onColumnResized: Fe,
1231
+ onColumnWidthOverride: m,
1232
+ onColumnResized: Ae,
1240
1233
  // Sorting
1241
- onSort: Ge,
1234
+ onSort: Ne,
1242
1235
  // Select
1243
- allItemsSelectedState: Te,
1244
- selectedItems: B,
1236
+ allItemsSelectedState: j,
1237
+ selectedItems: W,
1245
1238
  onAllRowSelect: H,
1246
1239
  onRowSelect: Z,
1247
1240
  DATAGRID_SELECT_FIELD_NAME: F,
1248
- onRowClick: He,
1249
- getRowAriaSelectedValue: ze,
1241
+ onRowClick: xe,
1242
+ getRowAriaSelectedValue: Ie,
1250
1243
  // Config settings (and column updating)
1251
- onConfigSettingsUpdate: c,
1252
- onConfigSettingsColumnsUpdate: h,
1244
+ onConfigSettingsUpdate: s,
1245
+ onConfigSettingsColumnsUpdate: _,
1253
1246
  onConfigSettingsColumnUpdate: L,
1254
- columnsRef: u,
1255
- configSettingsButtonStyle: $e,
1256
- isOnlyOneVisibleColumn: i,
1247
+ columnsRef: c,
1248
+ configSettingsButtonStyle: Oe,
1249
+ isOnlyOneVisibleColumn: A,
1257
1250
  // Enums
1258
1251
  BentoDatagridSortDirection: $,
1259
- BentoTypographyElement: q,
1260
- BentoTypographyVariant: ne,
1261
- BentoDatagridEvent: p,
1252
+ BentoDatagridEvent: b,
1262
1253
  // Pagination props and events
1263
- onPaginationNavigate: Be,
1264
- onItemsPerPageChange: Ve,
1265
- // Filterbar events
1266
- onSearchTermCleared: We,
1267
- onSearchTermInput: ke,
1254
+ onPaginationNavigate: we,
1255
+ onItemsPerPageChange: Ue,
1256
+ // Filterbar
1257
+ filterBarRef: g,
1258
+ onEmptyStateClearResetButtonClick: Me,
1259
+ onSearchTermCleared: Pe,
1260
+ onSearchTermInput: De,
1268
1261
  // Re-ordering columns
1269
- onMoveColumnByOffset: k,
1270
- draggingColumns: S,
1271
- draggingEventsForColumns: W,
1262
+ onMoveColumnByOffset: B,
1263
+ draggingColumns: h,
1264
+ draggingEventsForColumns: x,
1272
1265
  draggingEventsForRowCell: G,
1266
+ // Sync body and column headers scrolling
1267
+ updateScrollPosition: Ve,
1273
1268
  // Leftmost column panel alignment
1274
- computedColumnPanelAlignment: Ie,
1269
+ computedColumnPanelAlignment: pe,
1275
1270
  // Gridcells events
1276
- gridcellEvents: Qe,
1271
+ gridcellEvents: He,
1277
1272
  // Keyboard navigation
1278
- getCellindex: Ke,
1279
- getColIndex: ie,
1280
- navigationInput: qe,
1273
+ getCellindex: Ze,
1274
+ getColIndex: ne,
1275
+ navigationInput: ke,
1281
1276
  // Translations
1282
- t: r
1277
+ t: l
1283
1278
  };
1284
1279
  }
1285
1280
  });
1286
- var Nn = function() {
1281
+ var An = function() {
1282
+ var i;
1287
1283
  var e = this, n = e._self._c;
1288
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText } }, [e.filters ? n("div", { staticClass: "b-data-grid__filters" }, [e.filters ? n("bento-filter-bar", { attrs: { value: e.filters, "search-term": e.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (s) => e.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, s) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { ref: "body", staticClass: "b-data-grid__body", style: e.fitContent ? { height: e.bodyDynamicStyles.height.value } : void 0, attrs: { tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" } }, [e.columnPanel ? n("bento-data-grid-config-settings", { staticClass: "b-data-grid__config-settings", style: e.configSettingsButtonStyle, attrs: { columns: e.columns, condensed: e.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" } }, [n("div", { staticClass: "b-data-grid__columns", class: e.conditionalColumnsClasses, style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(e.columnSets, function({ columnSet: s, id: u, isFrozenColumns: o }, _) {
1289
- return [s != null && s.length ? n("data-grid-columns", e._g({ key: `data-grid-columns-${u}`, attrs: { columns: s, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": o, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "is-only-one-visible-column": e.isOnlyOneVisibleColumn }, on: { "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, sort: e.onSort, "column-menu-open": function(f) {
1290
- e.isColumnMenuOpen = !0;
1291
- }, "column-menu-close": function(f) {
1292
- e.isColumnMenuOpen = !1;
1293
- } }, scopedSlots: e._u([e._l(e.slots, function(f, C) {
1294
- return { key: C, fn: function(d) {
1295
- return [e._t(C, null, null, d)];
1284
+ return e._self._setupProxy, n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText } }, [e.filters ? n("div", { staticClass: "b-data-grid__filters" }, [e.filters ? n("bento-filter-bar", { ref: "filterBarRef", attrs: { value: e.filters, "search-term": e.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (c) => e.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, c) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { staticClass: "b-data-grid__column-headers" }, [e.columnPanel ? n("bento-data-grid-config-settings", { staticClass: "b-data-grid__config-settings", style: e.configSettingsButtonStyle, attrs: { columns: e.columns, condensed: e.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(e.columnSets, function({ columnSet: c, id: r, isFrozenColumns: g }, f) {
1285
+ return [c != null && c.length ? n("data-grid-columns", e._g({ key: `data-grid-columns-${r}`, attrs: { columns: c, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": g, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-first-column-panel-right-aligned": f === e.computedColumnPanelAlignment, "is-only-one-visible-column": e.isOnlyOneVisibleColumn }, on: { "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, sort: e.onSort }, scopedSlots: e._u([e._l(e.slots, function(v, d) {
1286
+ return { key: d, fn: function(u) {
1287
+ return [e._t(d, null, null, u)];
1296
1288
  } };
1297
1289
  })], null, !0) }, e.draggingEventsForColumns)) : e._e()];
1298
- })], 2)]), e.loading ? n("div", { staticClass: "b-data-grid__loading" }, [n("bento-loading-indicator", { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN, variant: e.BentoTypographyVariant.CAPTION } }, [e._v(e._s(e.t("gettingYourData")))])], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, e._l(e.data, function(s, u) {
1299
- return n("div", { key: u, staticClass: "b-data-grid__row", class: e.conditionalRowClasses(s), style: e.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": u + 1, "aria-selected": e.getRowAriaSelectedValue(s) }, on: { click: function(o) {
1300
- return e.onRowClick(s, o);
1301
- } } }, [e._l(e.columnSets, function({ columnSet: o, id: _, isFrozenColumns: f }, C) {
1302
- return [o != null && o.length ? n("div", { key: `data-grid-rows-${_}`, class: e.conditionalRowSetClasses(f), attrs: { "data-testid": `data-grid-${_}-rows` } }, e._l(o, function(d, g) {
1303
- return n("div", e._g({ key: `cell-${d.field}`, ref: "gridcellRefs", refInFor: !0, staticClass: "b-data-grid__cell", class: e.conditionalRowCellClasses(d), style: { width: `${d.width}px` }, attrs: { "data-testid": `cell-${d.field}`, "data-cellindex": e.getCellindex(u, g, C), role: "gridcell", tabindex: e.getCellindex(u, g, C) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(g, C) + 1 } }, e.gridcellEvents(d)), [d.field !== e.DATAGRID_SELECT_FIELD_NAME ? [n("bento-typography", { attrs: { el: e.BentoTypographyElement.DIV } }, [e._t(`item-${d.field}`, function() {
1304
- return [n("span", { attrs: { title: e.conditionalTitleAttribute(d, s[d.field]) } }, [e._v(e._s(e.getRowData(s[d.field])))])];
1305
- }, { item: s })], 2)] : [n("bento-checkbox", { attrs: { "aria-label": e.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(s), value: e.getDataItemId(s) }, on: { "update:model-value": e.onRowSelect } })]], 2);
1290
+ })], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading ? n("div", { staticClass: "b-data-grid__loading" }, [n("bento-loading-indicator", { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n("bento-typography", { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(e.t("gettingYourData")))])], 1) : ((i = e.data) == null ? void 0 : i.length) === 0 ? n("div", { staticClass: "b-data-grid__empty-state" }, [n("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, e._l(e.data, function(c, r) {
1291
+ return n("div", { key: r, staticClass: "b-data-grid__row", class: e.conditionalRowClasses(c), style: e.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": r + 1, "aria-selected": e.getRowAriaSelectedValue(c) }, on: { click: function(g) {
1292
+ return e.onRowClick(c, g);
1293
+ } } }, [e._l(e.columnSets, function({ columnSet: g, id: f, isFrozenColumns: v }, d) {
1294
+ return [g != null && g.length ? n("div", { key: `data-grid-rows-${f}`, class: e.conditionalRowSetClasses(v), attrs: { "data-testid": `data-grid-${f}-rows` } }, e._l(g, function(u, o) {
1295
+ return n("div", e._g({ key: `cell-${u.field}`, ref: "gridcellRefs", refInFor: !0, staticClass: "b-data-grid__cell", class: e.conditionalRowCellClasses(u), style: { width: `${u.width}px` }, attrs: { "data-testid": `cell-${u.field}`, "data-cellindex": e.getCellindex(r, o, d), role: "gridcell", tabindex: e.getCellindex(r, o, d) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(o, d) + 1 } }, e.gridcellEvents(u)), [u.field !== e.DATAGRID_SELECT_FIELD_NAME ? [n("bento-typography", { attrs: { el: "div" } }, [e._t(`item-${u.field}`, function() {
1296
+ return [n("span", { attrs: { title: e.conditionalTitleAttribute(u, c[u.field]) } }, [e._v(e._s(e.getRowData(c[u.field])))])];
1297
+ }, { item: c })], 2)] : [n("bento-checkbox", { attrs: { "aria-label": e.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(c), value: e.getDataItemId(c) }, on: { "update:model-value": e.onRowSelect } })]], 2);
1306
1298
  }), 0) : e._e()];
1307
1299
  })], 2);
1308
- }), 0)], 1), e.pagination ? n("div", { ref: "paginationRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n("bento-pagination", e._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1))], 1) : e._e(), e.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e()]);
1309
- }, wn = [], Pn = /* @__PURE__ */ U(
1300
+ }), 0)]), e.pagination ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n("bento-pagination", e._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1))], 1) : e._e(), e.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e()]);
1301
+ }, Nn = [], wn = /* @__PURE__ */ P(
1302
+ In,
1310
1303
  An,
1311
1304
  Nn,
1312
- wn,
1313
1305
  !1,
1314
1306
  null,
1315
- "0c380772",
1307
+ "3a9082ae",
1316
1308
  null,
1317
1309
  null
1318
1310
  );
1319
- const ls = Pn.exports;
1311
+ const os = wn.exports;
1320
1312
  export {
1321
- Y as BentoColumnOverflow,
1322
- ls as BentoDataGrid,
1323
- j as BentoDatagridAriaSortValue,
1324
- p as BentoDatagridEvent,
1313
+ X as BentoColumnOverflow,
1314
+ os as BentoDataGrid,
1315
+ Y as BentoDatagridAriaSortValue,
1316
+ b as BentoDatagridEvent,
1325
1317
  $ as BentoDatagridSortDirection,
1326
1318
  Q as BentoDatagridStyleState
1327
1319
  };