@adyen/bento-vue2 1.9.0 → 1.11.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 (295) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +19 -3580
  3. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  5. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  7. package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
  8. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
  9. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
  10. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
  11. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
  12. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +20 -4
  17. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
  19. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
  21. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
  22. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
  23. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
  24. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
  25. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
  26. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
  27. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  28. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -7
  29. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  30. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  32. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
  35. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +10 -0
  36. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  37. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  38. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  39. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  40. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  41. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  42. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  43. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1598 -6
  44. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -0
  49. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  50. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  51. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  52. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  53. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  54. 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.types.d.ts +2 -1
  55. 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 +82 -0
  56. 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 +10 -0
  57. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  58. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  59. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  60. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  61. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  62. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +12 -3
  64. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  66. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  67. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  69. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +251 -3
  70. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  71. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  72. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  73. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  74. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +19 -0
  75. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  76. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  77. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  78. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +20 -0
  79. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  80. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  81. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +16 -3
  82. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  83. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  84. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  85. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  86. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  87. package/dist/accordion.js +2 -2
  88. package/dist/action-bar.js +5 -5
  89. package/dist/alert.js +8 -8
  90. package/dist/alert.js.map +1 -1
  91. package/dist/assets/base-modal.css +1 -1
  92. package/dist/assets/button.css +1 -1
  93. package/dist/assets/checkbox.css +1 -1
  94. package/dist/assets/controls-group.css +1 -1
  95. package/dist/assets/copy.css +1 -1
  96. package/dist/assets/dropdown-default-textbox.css +1 -1
  97. package/dist/assets/dropdown.css +1 -1
  98. package/dist/assets/fixed-scroller.css +1 -1
  99. package/dist/assets/index10.css +1 -1
  100. package/dist/assets/index11.css +1 -1
  101. package/dist/assets/index12.css +1 -1
  102. package/dist/assets/index13.css +1 -1
  103. package/dist/assets/index14.css +1 -1
  104. package/dist/assets/index15.css +1 -1
  105. package/dist/assets/index16.css +1 -1
  106. package/dist/assets/index17.css +1 -1
  107. package/dist/assets/index18.css +1 -1
  108. package/dist/assets/index19.css +1 -1
  109. package/dist/assets/index2.css +1 -1
  110. package/dist/assets/index20.css +1 -1
  111. package/dist/assets/index21.css +1 -1
  112. package/dist/assets/index22.css +1 -1
  113. package/dist/assets/index24.css +1 -1
  114. package/dist/assets/index25.css +1 -1
  115. package/dist/assets/index26.css +1 -1
  116. package/dist/assets/index27.css +1 -1
  117. package/dist/assets/index28.css +1 -1
  118. package/dist/assets/index29.css +1 -1
  119. package/dist/assets/index3.css +1 -1
  120. package/dist/assets/index30.css +1 -1
  121. package/dist/assets/index31.css +1 -1
  122. package/dist/assets/index32.css +1 -1
  123. package/dist/assets/index33.css +1 -1
  124. package/dist/assets/index34.css +1 -1
  125. package/dist/assets/index35.css +1 -1
  126. package/dist/assets/index36.css +1 -1
  127. package/dist/assets/index37.css +1 -1
  128. package/dist/assets/index38.css +1 -1
  129. package/dist/assets/index39.css +1 -1
  130. package/dist/assets/index4.css +1 -1
  131. package/dist/assets/index40.css +1 -1
  132. package/dist/assets/index41.css +1 -1
  133. package/dist/assets/index42.css +1 -1
  134. package/dist/assets/index43.css +1 -1
  135. package/dist/assets/index44.css +1 -1
  136. package/dist/assets/index45.css +1 -1
  137. package/dist/assets/index46.css +1 -0
  138. package/dist/assets/index5.css +1 -1
  139. package/dist/assets/index6.css +1 -1
  140. package/dist/assets/index7.css +1 -1
  141. package/dist/assets/index8.css +1 -1
  142. package/dist/assets/index9.css +1 -1
  143. package/dist/assets/listbox.css +1 -1
  144. package/dist/assets/loading-button.css +1 -1
  145. package/dist/avatar-image.js +1 -1
  146. package/dist/button.js +19 -17
  147. package/dist/button.js.map +1 -1
  148. package/dist/card.js +2 -2
  149. package/dist/checkbox.js +61 -48
  150. package/dist/checkbox.js.map +1 -1
  151. package/dist/chunks/{base-button.df9a9bea.js → base-button.bd61ab14.js} +2 -2
  152. package/dist/chunks/{base-button.df9a9bea.js.map → base-button.bd61ab14.js.map} +1 -1
  153. package/dist/chunks/{base-modal.75319f4e.js → base-modal.5640a66a.js} +33 -33
  154. package/dist/chunks/base-modal.5640a66a.js.map +1 -0
  155. package/dist/chunks/{button-actions-with-menu.32770485.js → button-actions-with-menu.767344df.js} +3 -3
  156. package/dist/chunks/{button-actions-with-menu.32770485.js.map → button-actions-with-menu.767344df.js.map} +1 -1
  157. package/dist/chunks/button.bb5b4909.js +100 -0
  158. package/dist/chunks/button.bb5b4909.js.map +1 -0
  159. package/dist/chunks/{calendar.a885d8fc.js → calendar.4ab3c2dc.js} +4 -4
  160. package/dist/chunks/{calendar.a885d8fc.js.map → calendar.4ab3c2dc.js.map} +1 -1
  161. package/dist/chunks/checkbox.c684c20a.js +188 -0
  162. package/dist/chunks/checkbox.c684c20a.js.map +1 -0
  163. package/dist/chunks/{controls-group.dd967ccf.js → controls-group.d25f5044.js} +15 -11
  164. package/dist/chunks/controls-group.d25f5044.js.map +1 -0
  165. package/dist/chunks/copy.36c058e9.js +122 -0
  166. package/dist/chunks/copy.36c058e9.js.map +1 -0
  167. package/dist/chunks/country.types.002caff2.js +5871 -0
  168. package/dist/chunks/country.types.002caff2.js.map +1 -0
  169. package/dist/chunks/{cross-circle-fill.7c07d16a.js → cross-circle-fill.27580c4b.js} +5 -5
  170. package/dist/chunks/{cross-circle-fill.7c07d16a.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
  171. package/dist/chunks/{dropdown-default-textbox.465db4d4.js → dropdown-default-textbox.1cba89ea.js} +11 -11
  172. package/dist/chunks/dropdown-default-textbox.1cba89ea.js.map +1 -0
  173. package/dist/chunks/{dropdown.6461dbe3.js → dropdown.4152cc00.js} +351 -313
  174. package/dist/chunks/dropdown.4152cc00.js.map +1 -0
  175. package/dist/chunks/{field-label.01df3cba.js → field-label.a0c54b7d.js} +5 -5
  176. package/dist/chunks/{field-label.01df3cba.js.map → field-label.a0c54b7d.js.map} +1 -1
  177. package/dist/chunks/{fixed-scroller.42354ccc.js → fixed-scroller.5c90f692.js} +2 -2
  178. package/dist/chunks/{fixed-scroller.42354ccc.js.map → fixed-scroller.5c90f692.js.map} +1 -1
  179. package/dist/chunks/{footer-actions.2cd9079e.js → footer-actions.b14cfca8.js} +3 -3
  180. package/dist/chunks/{footer-actions.2cd9079e.js.map → footer-actions.b14cfca8.js.map} +1 -1
  181. package/dist/chunks/{index.16914bb1.js → index.179d485c.js} +29 -29
  182. package/dist/chunks/{index.16914bb1.js.map → index.179d485c.js.map} +1 -1
  183. package/dist/chunks/index.1e8c900a.js +32 -0
  184. package/dist/chunks/index.1e8c900a.js.map +1 -0
  185. package/dist/chunks/{index.152b2b16.js → index.58282364.js} +3 -3
  186. package/dist/chunks/{index.152b2b16.js.map → index.58282364.js.map} +1 -1
  187. package/dist/chunks/{index.322692c8.js → index.720f0cbf.js} +2 -2
  188. package/dist/chunks/{index.322692c8.js.map → index.720f0cbf.js.map} +1 -1
  189. package/dist/chunks/index.75f0e99f.js +147 -0
  190. package/dist/chunks/index.75f0e99f.js.map +1 -0
  191. package/dist/chunks/{index.6cef7328.js → index.7d2ea1de.js} +2 -2
  192. package/dist/chunks/{index.6cef7328.js.map → index.7d2ea1de.js.map} +1 -1
  193. package/dist/chunks/{index.02da8d63.js → index.aaedd8f9.js} +3 -3
  194. package/dist/chunks/{index.02da8d63.js.map → index.aaedd8f9.js.map} +1 -1
  195. package/dist/chunks/{index.b201e81d.js → index.b0a89960.js} +22 -22
  196. package/dist/chunks/index.b0a89960.js.map +1 -0
  197. package/dist/chunks/{index.d1beb704.js → index.f18f79eb.js} +5 -5
  198. package/dist/chunks/{index.d1beb704.js.map → index.f18f79eb.js.map} +1 -1
  199. package/dist/chunks/{index.f358c4bd.js → index.f2223abb.js} +163 -155
  200. package/dist/chunks/index.f2223abb.js.map +1 -0
  201. package/dist/chunks/{listbox-option-tag.55cd9c16.js → listbox-option-tag.9103c011.js} +3 -3
  202. package/dist/chunks/{listbox-option-tag.55cd9c16.js.map → listbox-option-tag.9103c011.js.map} +1 -1
  203. package/dist/chunks/{listbox.a117e6d4.js → listbox.7cf6d6b4.js} +475 -392
  204. package/dist/chunks/listbox.7cf6d6b4.js.map +1 -0
  205. package/dist/chunks/{loading-button.459b9ab4.js → loading-button.fb025a2e.js} +20 -20
  206. package/dist/chunks/{loading-button.459b9ab4.js.map → loading-button.fb025a2e.js.map} +1 -1
  207. package/dist/chunks/{tooltip.b8929659.js → tooltip.f48beb54.js} +22 -22
  208. package/dist/chunks/tooltip.f48beb54.js.map +1 -0
  209. package/dist/chunks/use-has-slot.fbeb19ec.js.map +1 -1
  210. package/dist/chunks/useCountryItems.6b7985bf.js +29 -0
  211. package/dist/chunks/{useCountryItems.34ac8740.js.map → useCountryItems.6b7985bf.js.map} +1 -1
  212. package/dist/code-snippet.js +10 -12
  213. package/dist/code-snippet.js.map +1 -1
  214. package/dist/country.js +41 -5902
  215. package/dist/country.js.map +1 -1
  216. package/dist/currency.js +1 -1
  217. package/dist/data-grid.js +901 -711
  218. package/dist/data-grid.js.map +1 -1
  219. package/dist/date-picker.js +18 -18
  220. package/dist/date-range-picker.js +2 -2
  221. package/dist/date.js +1 -1
  222. package/dist/divider.js +2 -18
  223. package/dist/divider.js.map +1 -1
  224. package/dist/dropdown.js +41 -41
  225. package/dist/dropdown.js.map +1 -1
  226. package/dist/empty-state.js +18 -18
  227. package/dist/empty-state.js.map +1 -1
  228. package/dist/filter-bar.js +512 -504
  229. package/dist/filter-bar.js.map +1 -1
  230. package/dist/focus-trap.js +1 -1
  231. package/dist/form-layout.js +2 -2
  232. package/dist/form-layout.js.map +1 -1
  233. package/dist/header.js +3 -3
  234. package/dist/index.js +178 -174
  235. package/dist/index.js.map +1 -1
  236. package/dist/info-icon.js +3 -3
  237. package/dist/input-field.js +4 -4
  238. package/dist/internal.js +17 -15
  239. package/dist/link.js +2 -2
  240. package/dist/loading-indicator.js +1 -1
  241. package/dist/menu.js +1 -1
  242. package/dist/modal.js +62 -60
  243. package/dist/modal.js.map +1 -1
  244. package/dist/pagination.js +22 -22
  245. package/dist/pagination.js.map +1 -1
  246. package/dist/payment-method.js +2 -2
  247. package/dist/popover.js +1 -1
  248. package/dist/popper-container.js +1 -1
  249. package/dist/radio-group.js +46 -45
  250. package/dist/radio-group.js.map +1 -1
  251. package/dist/search-bar.js +10 -10
  252. package/dist/secondary-nav.js +98 -0
  253. package/dist/secondary-nav.js.map +1 -0
  254. package/dist/segmented-control.js +3 -3
  255. package/dist/sidepanel.js +5 -5
  256. package/dist/status.js +2 -2
  257. package/dist/stepper.js +3 -3
  258. package/dist/structured-list.js +1 -1
  259. package/dist/summary-grid.js +3 -3
  260. package/dist/tabs.js +3 -3
  261. package/dist/tag.js +3 -3
  262. package/dist/textarea.js +95 -88
  263. package/dist/textarea.js.map +1 -1
  264. package/dist/timeline.js +198 -191
  265. package/dist/timeline.js.map +1 -1
  266. package/dist/toast.js +3 -3
  267. package/dist/toggle.js +1 -1
  268. package/dist/tutorial.js +5 -5
  269. package/dist/typography.js +1 -1
  270. package/dist/web-types.json +822 -409
  271. package/package.json +6 -3
  272. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
  273. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
  274. package/dist/chunks/base-modal.75319f4e.js.map +0 -1
  275. package/dist/chunks/button.7dd8d4de.js +0 -125
  276. package/dist/chunks/button.7dd8d4de.js.map +0 -1
  277. package/dist/chunks/checkbox.65743b08.js +0 -184
  278. package/dist/chunks/checkbox.65743b08.js.map +0 -1
  279. package/dist/chunks/controls-group.dd967ccf.js.map +0 -1
  280. package/dist/chunks/copy.e12b418e.js +0 -103
  281. package/dist/chunks/copy.e12b418e.js.map +0 -1
  282. package/dist/chunks/dropdown-default-textbox.465db4d4.js.map +0 -1
  283. package/dist/chunks/dropdown.6461dbe3.js.map +0 -1
  284. package/dist/chunks/index.0890dc99.js +0 -130
  285. package/dist/chunks/index.0890dc99.js.map +0 -1
  286. package/dist/chunks/index.b201e81d.js.map +0 -1
  287. package/dist/chunks/index.f358c4bd.js.map +0 -1
  288. package/dist/chunks/listbox.a117e6d4.js.map +0 -1
  289. package/dist/chunks/tooltip.b8929659.js.map +0 -1
  290. package/dist/chunks/useCountryItems.34ac8740.js +0 -29
  291. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
  292. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
  293. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
  294. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  295. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
package/dist/data-grid.js CHANGED
@@ -1,512 +1,574 @@
1
- import { ref as R, reactive as ne, toRefs as ie, computed as y, watchEffect as ht, onMounted as Oe, nextTick as G, watch as B, onUnmounted as Ae, onBeforeUpdate as Lt, defineComponent as Y, toRef as we, useSlots as St, inject as ve } from "vue";
2
- import { BentoActionBar as yt } from "./action-bar.js";
3
- import { B as Ne } from "./chunks/checkbox.65743b08.js";
4
- import { BentoPagination as Et } from "./pagination.js";
5
- import { BentoLoadingIndicator as Pe } from "./loading-indicator.js";
6
- import { B as le, p as Rt } from "./chunks/index.b201e81d.js";
7
- import { o as De } from "./chunks/resize.a041304d.js";
8
- import { u as Tt } from "./chunks/aria-label.ac9651a5.js";
9
- import { g as It } from "./chunks/get-slot-text.99c3d860.js";
10
- import { u as Ue } from "./chunks/i18n.eb5b985b.js";
11
- import { BentoEmptyState as Ot } from "./empty-state.js";
1
+ import { ref as E, reactive as le, toRefs as ae, computed as y, watchEffect as It, onMounted as Ne, nextTick as G, watch as B, onUnmounted as De, onBeforeUpdate as Ot, defineComponent as H, toRef as $e, useSlots as wt, inject as pe } from "vue";
2
+ import { BentoActionBar as Pt } from "./action-bar.js";
3
+ import { B as Me } from "./chunks/checkbox.c684c20a.js";
4
+ import { BentoPagination as Nt } from "./pagination.js";
5
+ import { BentoLoadingIndicator as Ue } from "./loading-indicator.js";
6
+ import { B as oe, p as xe } from "./chunks/index.b0a89960.js";
7
+ import { u as Dt } from "./chunks/aria-label.ac9651a5.js";
8
+ import { g as $t } from "./chunks/get-slot-text.99c3d860.js";
9
+ import { u as re } from "./chunks/i18n.eb5b985b.js";
10
+ import { BentoEmptyState as Mt } from "./empty-state.js";
12
11
  import { BentoFilterBar as Q } from "./filter-bar.js";
13
- import { E as At } from "./chunks/tabs.keys.358742f2.js";
14
- import { K as z } from "./chunks/tooltip.b8929659.js";
15
- import { B as me, a as wt } from "./chunks/index.d1beb704.js";
16
- import { a as Nt } from "./chunks/button.7dd8d4de.js";
17
- import { BentoToggle as $e } from "./toggle.js";
18
- import { BentoSearchBar as Pt } from "./search-bar.js";
19
- import { u as Dt } from "./chunks/dropdown.6461dbe3.js";
20
- import { n as D } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
21
- import { C as Ut } from "./chunks/cross.04678d81.js";
22
- import { S as $t } from "./chunks/search.471270fe.js";
23
- import { g as Mt } from "./chunks/unique-id.a2a2b458.js";
24
- import { B as zt } from "./chunks/directive.0408e565.js";
25
- import { BentoInfoIcon as xt } from "./info-icon.js";
26
- import { B as Ft } from "./chunks/index.f358c4bd.js";
27
- import { A as Gt } from "./chunks/arrow-left.2db60716.js";
28
- import { l as pe } from "./chunks/events.58c00e6d.js";
29
- import { B as Bt, a as Wt } from "./chunks/loading-button.459b9ab4.js";
30
- import "./assets/index4.css";
31
- var K = /* @__PURE__ */ ((n) => (n.WRAP = "wrap", n.ELLIPSIS = "ellipsis", n))(K || {}), ee = /* @__PURE__ */ ((n) => (n.OUTLINE = "outline", n.SCROLL = "scroll", n.STICKY_FILTERS = "sticky-filters", n))(ee || {}), W = /* @__PURE__ */ ((n) => (n.ASCENDING = "asc", n.DESCENDING = "desc", n))(W || {}), h = /* @__PURE__ */ ((n) => (n.COLUMNS = "columns", n.COLUMN_RESIZE = "column-resize", n.ITEMS_PAGE = "items-page", n.NAVIGATE = "navigate", n.FILTER_SEARCH_INPUT = "filter-search-input", n.FILTER_SEARCH_CLEAR = "filter-search-clear", n.UPDATE_COLUMNS = "update:columns", n.UPDATE_CONDENSED = "update:condensed", n.UPDATE_FILTERS = "update:filters", n.UPDATE_FILTER_VALUES = "update:filter-values", n.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", n.UPDATE_PAGINATION = "update:pagination", n.UPDATE_SELECTION = "update:selection", n.UPDATE_SHOW_MORE = "update:show-more", n.UPDATE_SORT_BY = "update:sort-by", n.ROW_CLICK = "row-click", n.SELECT = "select", n.SORT = "sort", n))(h || {}), te = /* @__PURE__ */ ((n) => (n.ASCENDING = "ascending", n.DESCENDING = "descending", n.NONE = "none", n))(te || {}), T = /* @__PURE__ */ ((n) => (n.COLUMN_RESIZE = "column-resize", n.COLUMN_RESIZING = "column-resizing", n.SORT = "sort", n.SELECT_ALL_ROWS = "select-all-rows", n.COLUMN_MOVE = "column-move", n.COLUMN_UPDATE = "column-update", n.COLUMN_MENU_OPEN = "column-menu-open", n.COLUMN_MENU_CLOSE = "column-menu-close", n.COLUMN_DRAG_START = "column-dragstart", n.COLUMN_DRAG_ENTER = "column-dragenter", n.COLUMN_DRAG_END = "column-dragend", n.COLUMN_DROP = "column-drop", n))(T || {});
32
- const kt = (n, e) => {
33
- const s = R(!1), t = R(void 0), _ = n.value.reduce((f, b) => (f[b.field] = null, f), {}), l = ne(_), v = ie(l);
34
- let d = 0, g = "";
35
- const m = y(
36
- () => Object.fromEntries(n.value.map(({ field: f, width: b, minWidth: S }) => [f, { width: b, minWidth: S }]))
12
+ import { E as Ut } from "./chunks/tabs.keys.358742f2.js";
13
+ import { o as ze } from "./chunks/resize.a041304d.js";
14
+ import { K as z } from "./chunks/tooltip.f48beb54.js";
15
+ import { B as he, a as xt } from "./chunks/index.f18f79eb.js";
16
+ import { a as Fe } from "./chunks/button.bb5b4909.js";
17
+ import { BentoToggle as Ge } from "./toggle.js";
18
+ import { BentoSearchBar as zt } from "./search-bar.js";
19
+ import { u as Ft } from "./chunks/dropdown.4152cc00.js";
20
+ import { n as $ } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
21
+ import { C as Gt } from "./chunks/cross.04678d81.js";
22
+ import { S as Bt } from "./chunks/search.471270fe.js";
23
+ import { g as kt } from "./chunks/unique-id.a2a2b458.js";
24
+ import { B as Wt } from "./chunks/directive.0408e565.js";
25
+ import { B as Be, O as Vt } from "./chunks/index.f2223abb.js";
26
+ import { C as Ht } from "./chunks/copy.36c058e9.js";
27
+ import { BentoInfoIcon as Zt } from "./info-icon.js";
28
+ import { A as jt } from "./chunks/arrow-left.2db60716.js";
29
+ import { l as Le } from "./chunks/events.58c00e6d.js";
30
+ import { B as Yt, a as qt } from "./chunks/loading-button.fb025a2e.js";
31
+ import "./assets/index14.css";
32
+ var ee = /* @__PURE__ */ ((n) => (n.WRAP = "wrap", n.ELLIPSIS = "ellipsis", n))(ee || {}), te = /* @__PURE__ */ ((n) => (n.OUTLINE = "outline", n.SCROLL = "scroll", n.STICKY_FILTERS = "sticky-filters", n))(te || {}), k = /* @__PURE__ */ ((n) => (n.ASCENDING = "asc", n.DESCENDING = "desc", n))(k || {}), L = /* @__PURE__ */ ((n) => (n.COLUMNS = "columns", n.COLUMN_RESIZE = "column-resize", n.ITEMS_PAGE = "items-page", n.NAVIGATE = "navigate", n.FILTER_SEARCH_INPUT = "filter-search-input", n.FILTER_SEARCH_CLEAR = "filter-search-clear", n.UPDATE_COLUMNS = "update:columns", n.UPDATE_CONDENSED = "update:condensed", n.UPDATE_FILTERS = "update:filters", n.UPDATE_FILTER_VALUES = "update:filter-values", n.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", n.UPDATE_PAGINATION = "update:pagination", n.UPDATE_SELECTION = "update:selection", n.UPDATE_SHOW_MORE = "update:show-more", n.UPDATE_SORT_BY = "update:sort-by", n.ROW_CLICK = "row-click", n.SELECT = "select", n.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", n.SORT = "sort", n))(L || {}), se = /* @__PURE__ */ ((n) => (n.ASCENDING = "ascending", n.DESCENDING = "descending", n.NONE = "none", n))(se || {}), R = /* @__PURE__ */ ((n) => (n.COLUMN_RESIZE = "column-resize", n.COLUMN_RESIZING = "column-resizing", n.SORT = "sort", n.SELECT_ALL_ROWS = "select-all-rows", n.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", n.COLUMN_MOVE = "column-move", n.COLUMN_UPDATE = "column-update", n.COLUMN_MENU_OPEN = "column-menu-open", n.COLUMN_MENU_CLOSE = "column-menu-close", n.COLUMN_DRAG_START = "column-dragstart", n.COLUMN_DRAG_ENTER = "column-dragenter", n.COLUMN_DRAG_END = "column-dragend", n.COLUMN_DROP = "column-drop", n))(R || {});
33
+ const Xt = (n, e) => {
34
+ const s = E(!1), t = E(void 0), i = n.value.reduce((C, p) => (C[p.field] = null, C), {}), l = le(i), _ = ae(l);
35
+ let u = 0, m = "";
36
+ const c = y(
37
+ () => Object.fromEntries(n.value.map(({ field: C, width: p, minWidth: S }) => [C, { width: p, minWidth: S }]))
37
38
  );
38
- ht(() => t.value = m.value);
39
- let p = null, a = null;
40
- const E = (f) => {
41
- const b = f.clientX - d, S = g, C = t.value[S].width + b;
42
- t.value[S].width = C > m.value[S].minWidth ? C : m.value[S].minWidth, e(T.COLUMN_RESIZING, t.value), d = f.clientX;
43
- }, o = () => {
44
- s.value = !1, p == null || p(), a == null || a(), g && e(T.COLUMN_RESIZE, {
45
- field: g,
46
- width: t.value[g].width
47
- }), p = null, a = null, g = "", d = null;
39
+ It(() => t.value = c.value);
40
+ let h = null, o = null;
41
+ const T = (C) => {
42
+ const p = C.clientX - u, S = m, g = t.value[S].width + p;
43
+ t.value[S].width = g > c.value[S].minWidth ? g : c.value[S].minWidth, e(R.COLUMN_RESIZING, t.value), u = C.clientX;
44
+ }, r = () => {
45
+ s.value = !1, h == null || h(), o == null || o(), m && e(R.COLUMN_RESIZE, {
46
+ field: m,
47
+ width: t.value[m].width
48
+ }), h = null, o = null, m = "", u = null;
48
49
  };
49
- return { resizeData: t, allColumnRefs: v, startResize: (f, b, S) => {
50
- if (S.preventDefault(), f) {
50
+ return { resizeData: t, allColumnRefs: _, startResize: (C, p, S) => {
51
+ if (S.preventDefault(), C) {
51
52
  if (s.value = !0, S.buttons !== 1) {
52
- o();
53
+ r();
53
54
  return;
54
55
  }
55
- g = b, d = S.clientX, p = pe(window, "mousemove", E), a = pe(window, "mouseup", o);
56
+ m = p, u = S.clientX, h = Le(window, "mousemove", T), o = Le(window, "mouseup", r);
56
57
  }
57
58
  }, isResizing: s };
58
- }, Vt = kt, Ht = 100, be = 50, V = "b-select", Zt = (n, e, s) => {
59
- const t = {}, _ = [], l = (d) => {
60
- const g = t[d];
61
- g && g.frozen !== !0 && (t[d].frozen = !0, _.push(d));
59
+ }, Kt = 100, Se = 50, V = "b-select", Jt = (n, e, s) => {
60
+ const t = {}, i = [], l = (u) => {
61
+ const m = t[u];
62
+ m && m.frozen !== !0 && (t[u].frozen = !0, i.push(u));
62
63
  };
63
- function v() {
64
- if (_.length === s.length)
64
+ function _() {
65
+ if (i.length === s.length)
65
66
  return;
66
- const d = { min: {}, max: {} };
67
- let g = n, m = e, p = 0;
68
- _.forEach((a) => {
69
- g -= t[a].computedWidth, m -= t[a].flex;
67
+ const u = { min: {}, max: {} };
68
+ let m = n, c = e, h = 0;
69
+ i.forEach((o) => {
70
+ m -= t[o].computedWidth, c -= t[o].flex;
70
71
  });
71
- for (let a = 0, E = s.length; a < E; a += 1) {
72
- const o = s[a];
73
- if (t[o.field] && t[o.field].frozen === !0)
72
+ for (let o = 0, T = s.length; o < T; o += 1) {
73
+ const r = s[o];
74
+ if (t[r.field] && t[r.field].frozen === !0)
74
75
  continue;
75
- let f = g / m * o.flex;
76
- f < o.minWidth && (p += o.minWidth - f, f = o.minWidth, d.min[o.field] = !0), t[o.field] = {
76
+ let C = m / c * r.flex;
77
+ C < r.minWidth && (h += r.minWidth - C, C = r.minWidth, u.min[r.field] = !0), t[r.field] = {
77
78
  frozen: !1,
78
- computedWidth: f,
79
- flex: o.flex
79
+ computedWidth: C,
80
+ flex: r.flex
80
81
  };
81
82
  }
82
- p > 0 ? Object.keys(d.min).forEach((a) => {
83
- l(a);
84
- }) : s.forEach(({ field: a }) => {
85
- l(a);
86
- }), v();
83
+ h > 0 ? Object.keys(u.min).forEach((o) => {
84
+ l(o);
85
+ }) : s.forEach(({ field: o }) => {
86
+ l(o);
87
+ }), _();
87
88
  }
88
- return v(), t;
89
- }, jt = (n, e, s, t, _) => {
90
- const l = R(n), v = R(e), d = R(s), g = R(t), m = R(!1), p = R();
91
- let a = null;
92
- Oe(() => {
89
+ return _(), t;
90
+ }, Qt = (n, e, s, t, i) => {
91
+ const l = E(n), _ = E(e), u = E(s), m = E(t), c = E(!1), h = E();
92
+ let o = null;
93
+ Ne(() => {
93
94
  G(() => {
94
- d.value && (p.value = d.value.getBoundingClientRect().width);
95
- const C = B(
96
- d,
95
+ u.value && (h.value = u.value.getBoundingClientRect().width);
96
+ const g = B(
97
+ u,
97
98
  () => {
98
- d.value && (G(() => C()), a = De(d.value, ({ width: A }) => {
99
- p.value = A;
99
+ u.value && (G(() => g()), o = ze(u.value, ({ width: A }) => {
100
+ h.value = A;
100
101
  }));
101
102
  },
102
103
  { immediate: !0 }
103
104
  );
104
105
  });
105
- }), Ae(() => {
106
- a == null || a.disconnect();
107
- }), Lt(() => {
108
- var C;
109
- g.value && ((C = Object.keys(g.value)) == null ? void 0 : C.length) > 0 && Object.keys(g.value).forEach((i) => {
110
- g.value[i] = [];
106
+ }), De(() => {
107
+ o == null || o.disconnect();
108
+ }), Ot(() => {
109
+ var g;
110
+ m.value && ((g = Object.keys(m.value)) == null ? void 0 : g.length) > 0 && Object.keys(m.value).forEach((a) => {
111
+ m.value[a] = [];
111
112
  });
112
113
  });
113
- const E = y(() => {
114
- const C = [];
115
- let A = 0, i = 0;
116
- const u = {};
117
- let L = l.value.filter((N) => N.visible !== !1);
118
- _ != null && _.hasSelectableColumn.value && (L = [{ field: V, label: "", width: 40 }, ...L]), L.forEach((N) => {
119
- const w = { ...N };
120
- let $;
121
- w.flex && w.flex > 0 ? (A += w.flex, $ = 0, C.push(w)) : $ = Math.max(
122
- (w == null ? void 0 : w.width) ?? Ht,
123
- (w == null ? void 0 : w.minWidth) ?? be
124
- ), i += $, w.width = $, w.minWidth = (w == null ? void 0 : w.minWidth) ?? be, u[w.field] = w;
114
+ const T = y(() => {
115
+ const g = [];
116
+ let A = 0, a = 0;
117
+ const v = {};
118
+ let b = l.value.filter((P) => P.visible !== !1);
119
+ i != null && i.hasSelectableColumn.value && (b = [
120
+ { field: V, label: "", width: 40, padding: { left: !1, right: !1 } },
121
+ ...b
122
+ ]), b.forEach((P) => {
123
+ const w = { ...P };
124
+ let x;
125
+ w.flex && w.flex > 0 ? (A += w.flex, x = 0, g.push(w)) : x = Math.max(
126
+ (w == null ? void 0 : w.width) ?? Kt,
127
+ (w == null ? void 0 : w.minWidth) ?? Se
128
+ ), a += x, w.width = x, w.minWidth = (w == null ? void 0 : w.minWidth) ?? Se, v[w.field] = w;
125
129
  });
126
- const I = Math.max(p.value - i, 0);
127
- if (A > 0 && p.value > 0) {
128
- const N = Zt(I, A, C);
129
- Object.keys(N).forEach((w) => {
130
- u[w].width = N[w].computedWidth;
130
+ const O = Math.max(h.value - a, 0);
131
+ if (A > 0 && h.value > 0) {
132
+ const P = Jt(O, A, g);
133
+ Object.keys(P).forEach((w) => {
134
+ v[w].width = P[w].computedWidth;
131
135
  });
132
136
  }
133
- return Object.values(u);
134
- }), o = R(void 0), c = (C) => {
135
- o.value = { ...o.value, ...C };
137
+ return Object.values(v);
138
+ }), r = E(void 0), f = (g) => {
139
+ r.value = { ...r.value, ...g };
136
140
  };
137
- l.value.some((C) => C == null ? void 0 : C.autoWidth) && B(
138
- [() => l.value, () => v.value],
141
+ l.value.some((g) => g == null ? void 0 : g.autoWidth) && B(
142
+ [() => l.value, () => _.value],
139
143
  async () => {
140
- m.value = !0, await G(), l == null || l.value.filter((C) => C == null ? void 0 : C.autoWidth).forEach(({ field: C, minWidth: A }) => {
141
- var u, L;
142
- const i = (L = (u = g.value) == null ? void 0 : u[C]) == null ? void 0 : L.reduce(
143
- (I, N) => Math.max(I, N != null && N.offsetWidth ? N.offsetWidth + 4 : 0),
144
+ c.value = !0, await G(), l == null || l.value.filter((g) => g == null ? void 0 : g.autoWidth).forEach(({ field: g, minWidth: A }) => {
145
+ var v, b;
146
+ const a = (b = (v = m.value) == null ? void 0 : v[g]) == null ? void 0 : b.reduce(
147
+ (O, P) => Math.max(O, P != null && P.offsetWidth ? P.offsetWidth + 4 : 0),
144
148
  0
145
149
  );
146
- (A === void 0 || i > A) && c({
147
- [C]: {
148
- width: i
150
+ (A === void 0 || a > A) && f({
151
+ [g]: {
152
+ width: a
149
153
  }
150
154
  });
151
- }), m.value = !1;
155
+ }), c.value = !1;
152
156
  },
153
157
  { immediate: !0 }
154
158
  );
155
- const f = y(
156
- () => E.value.map((C) => {
157
- var A, i;
159
+ const C = y(
160
+ () => T.value.map((g) => {
161
+ var A, a;
158
162
  return {
159
- ...C,
163
+ ...g,
160
164
  // Override column width with resized ones
161
- width: ((i = (A = o.value) == null ? void 0 : A[C.field]) == null ? void 0 : i.width) ?? C.width
165
+ width: ((a = (A = r.value) == null ? void 0 : A[g.field]) == null ? void 0 : a.width) ?? g.width
162
166
  };
163
167
  })
164
- ), b = y(() => f.value.reduce((C, A) => A.width + C, 0)), S = y(() => ({
165
- width: p.value > b.value ? "100%" : "fit-content"
168
+ ), p = y(() => C.value.reduce((g, A) => A.width + g, 0)), S = y(() => ({
169
+ width: h.value > p.value ? "100%" : "fit-content"
166
170
  }));
167
- return { columnDefs: f, gridColumnWidthStyle: S, onColumnWidthOverride: c, isMeasuringColumnWidths: m };
168
- }, Yt = jt, Xt = (n, e, s) => ({ conditionalSortDirectionClasses: (l, v) => ({
169
- "b-data-grid-columns__column-sort-icon--sorted": n.value.some(
170
- (d) => d.field === l && d.direction === v
171
- )
172
- }), sortByColumnField: (l) => {
173
- var g;
174
- if (!e.value.some((m) => m.field === l && m.sortable))
175
- return;
176
- const d = [{
177
- field: l,
178
- direction: ((g = n.value.find((m) => m.field === l)) == null ? void 0 : g.direction) === W.ASCENDING ? W.DESCENDING : W.ASCENDING
179
- }];
180
- s(T.SORT, d);
181
- } }), qt = (n, e, s, t, _) => {
182
- const l = R(n.value ?? []), v = ne({
171
+ return { columnDefs: C, gridColumnWidthStyle: S, onColumnWidthOverride: f, isMeasuringColumnWidths: c };
172
+ }, es = (n, e, s, t, i) => {
173
+ const l = E(n.value ?? []), _ = le({
183
174
  allItemsSelected: !1,
184
175
  isIndeterminate: !1
185
- }), d = () => {
186
- e(h.SELECT, l.value), e(h.UPDATE_SELECTION, l.value);
187
- }, g = (a) => {
188
- var o;
189
- l.value = a;
190
- const E = ((o = s.value) == null ? void 0 : o.length) > 0 && s.value.every((c) => l.value.includes(t(c)));
191
- v.isIndeterminate = l.value.length > 0 && !E, E ? v.allItemsSelected = !0 : (v.isIndeterminate || !E) && (v.allItemsSelected = !1);
192
- }, m = (a) => {
176
+ }), u = () => {
177
+ e(L.SELECT, l.value), e(L.UPDATE_SELECTION, l.value);
178
+ }, m = (o) => {
179
+ var r, f, C, p, S;
180
+ if (l.value = o, ((r = s.value) == null ? void 0 : r.length) > 0 && ((f = s.value) == null ? void 0 : f.filter((g) => !i(g)).every((g) => l.value.includes(t(g))))) {
181
+ _.allItemsSelected = !0;
182
+ const g = ((C = s.value) == null ? void 0 : C.length) > 0 && s.value.every((A) => l.value.includes(t(A)));
183
+ _.isIndeterminate = !g;
184
+ } else
185
+ _.allItemsSelected = !1, _.isIndeterminate = ((p = l.value) == null ? void 0 : p.length) > 0 && ((S = s.value) == null ? void 0 : S.length) > 0 && s.value.some((g) => l.value.includes(t(g)));
186
+ }, c = (o) => {
193
187
  G(() => {
194
- var E, o;
195
- g(
196
- a ? (o = (E = s.value) == null ? void 0 : E.filter((c) => !_(c))) == null ? void 0 : o.map((c) => t(c)) : []
197
- ), d();
188
+ var T, r, f;
189
+ if (_.allItemsSelected = o, o) {
190
+ l.value = (r = (T = s.value) == null ? void 0 : T.filter((p) => !i(p))) == null ? void 0 : r.map((p) => t(p));
191
+ const C = ((f = s.value) == null ? void 0 : f.length) > 0 && s.value.every((p) => l.value.includes(t(p)));
192
+ _.isIndeterminate = l.value.length > 0 && !C;
193
+ } else
194
+ l.value = [], _.isIndeterminate = !1;
195
+ u();
198
196
  });
199
- }, p = (a) => {
197
+ }, h = (o) => {
200
198
  G(() => {
201
- g(a), d();
199
+ m(o), u();
202
200
  });
203
201
  };
204
202
  return B(
205
203
  () => n.value,
206
204
  () => {
207
- g(n.value ?? []);
205
+ m(n.value ?? []);
208
206
  },
209
207
  { immediate: !0 }
210
208
  ), B(
211
209
  () => s.value,
212
210
  () => {
213
- g(l.value);
211
+ m(l.value);
214
212
  }
215
- ), { onAllRowSelect: m, onRowSelect: p, allItemsSelectedState: v, selectedItems: l };
216
- };
217
- var P = ((n) => (n[n.ARROW_DOWN = z.ARROW_DOWN] = "ARROW_DOWN", n[n.ARROW_UP = z.ARROW_UP] = "ARROW_UP", n[n.ARROW_LEFT = z.ARROW_LEFT] = "ARROW_LEFT", n[n.ARROW_RIGHT = z.ARROW_RIGHT] = "ARROW_RIGHT", n[n.PAGE_UP = z.PAGE_UP] = "PAGE_UP", n[n.PAGE_DOWN = z.PAGE_DOWN] = "PAGE_DOWN", n[n.END = z.END] = "END", n[n.HOME = z.HOME] = "HOME", n))(P || {});
218
- const Jt = (n, e, s) => {
213
+ ), { onAllRowSelect: c, onRowSelect: h, allItemsSelectedState: _, selectedItems: l };
214
+ }, ts = (n, e, s) => ({ conditionalSortDirectionClasses: (l, _) => ({
215
+ "b-data-grid-columns__column-sort-icon--sorted": n.value.some(
216
+ (u) => u.field === l && u.direction === _
217
+ )
218
+ }), sortByColumnField: (l) => {
219
+ var m;
220
+ if (!e.value.some((c) => c.field === l && c.sortable))
221
+ return;
222
+ const u = [{
223
+ field: l,
224
+ direction: ((m = n.value.find((c) => c.field === l)) == null ? void 0 : m.direction) === k.ASCENDING ? k.DESCENDING : k.ASCENDING
225
+ }];
226
+ s(R.SORT, u);
227
+ } });
228
+ var M = ((n) => (n[n.ARROW_DOWN = z.ARROW_DOWN] = "ARROW_DOWN", n[n.ARROW_UP = z.ARROW_UP] = "ARROW_UP", n[n.ARROW_LEFT = z.ARROW_LEFT] = "ARROW_LEFT", n[n.ARROW_RIGHT = z.ARROW_RIGHT] = "ARROW_RIGHT", n[n.PAGE_UP = z.PAGE_UP] = "PAGE_UP", n[n.PAGE_DOWN = z.PAGE_DOWN] = "PAGE_DOWN", n[n.END = z.END] = "END", n[n.HOME = z.HOME] = "HOME", n))(M || {});
229
+ const ss = (n, e, s) => {
219
230
  const t = y(() => {
220
- const o = e.value.filter(({ visible: c }) => c !== !1);
221
- return s.value ? o.length + 1 : o.length;
222
- }), _ = y(
223
- () => [...Object.values(n.value)].flat(1).sort((o, c) => {
224
- const f = Number(o.getAttribute("data-cellindex")), b = Number(c.getAttribute("data-cellindex"));
225
- return f > b ? 1 : b > f ? -1 : 0;
231
+ const r = e.value.filter(({ visible: f }) => f !== !1);
232
+ return s.value ? r.length + 1 : r.length;
233
+ }), i = y(
234
+ () => [...Object.values(n.value)].flat(1).sort((r, f) => {
235
+ const C = Number(r.getAttribute("data-cellindex")), p = Number(f.getAttribute("data-cellindex"));
236
+ return C > p ? 1 : p > C ? -1 : 0;
226
237
  })
227
- ), l = (o) => Math.floor(o / t.value), v = (o, c, f) => {
228
- const b = _.value.length - 1, S = t.value - 1, C = l(o), A = o - t.value * C;
238
+ ), l = (r) => Math.floor(r / t.value), _ = (r, f, C) => {
239
+ const p = i.value.length - 1, S = t.value - 1, g = l(r), A = r - t.value * g;
229
240
  return {
230
- [P.PAGE_UP]: A,
231
- [P.PAGE_DOWN]: b - S + A,
232
- [P.END]: f ? b : t.value * C + S,
233
- [P.HOME]: f ? 0 : t.value * C
234
- }[c];
235
- }, d = (o, c) => {
236
- const b = {
237
- [P.ARROW_DOWN]: t.value,
238
- [P.ARROW_UP]: -t.value,
239
- [P.ARROW_LEFT]: -1,
240
- [P.ARROW_RIGHT]: 1
241
- }[c], S = o + b;
242
- return S < 0 || S >= _.value.length ? o : S;
243
- }, g = (o) => [
244
- P.PAGE_UP,
245
- P.PAGE_DOWN,
246
- P.END,
247
- P.HOME
248
- ].includes(o), m = (o, c, f) => {
249
- const b = _.value.indexOf(o);
250
- return g(c) ? v(b, c, f) : d(b, c);
251
- }, p = (o, c, f) => {
252
- if (!_.value.includes(o))
241
+ [M.PAGE_UP]: A,
242
+ [M.PAGE_DOWN]: p - S + A,
243
+ [M.END]: C ? p : t.value * g + S,
244
+ [M.HOME]: C ? 0 : t.value * g
245
+ }[f];
246
+ }, u = (r, f) => {
247
+ const p = {
248
+ [M.ARROW_DOWN]: t.value,
249
+ [M.ARROW_UP]: -t.value,
250
+ [M.ARROW_LEFT]: -1,
251
+ [M.ARROW_RIGHT]: 1
252
+ }[f], S = r + p;
253
+ return S < 0 || S >= i.value.length ? r : S;
254
+ }, m = (r) => [
255
+ M.PAGE_UP,
256
+ M.PAGE_DOWN,
257
+ M.END,
258
+ M.HOME
259
+ ].includes(r), c = (r, f, C) => {
260
+ const p = i.value.indexOf(r);
261
+ return m(f) ? _(p, f, C) : u(p, f);
262
+ }, h = (r, f, C) => {
263
+ if (!i.value.includes(r))
253
264
  return;
254
- const b = m(o, c, f);
255
- _.value[b].focus();
256
- }, a = (o) => o in P;
265
+ const p = c(r, f, C);
266
+ i.value[p].focus();
267
+ }, o = (r) => r in M;
257
268
  return {
258
- isNavigationKeyCode: a,
259
- focusOnNextGridcell: p,
260
- navigationInput: (o) => {
261
- const { ctrlKey: c, keyCode: f, target: b } = o;
262
- Object.values(n.value).flat(1).includes(b) && a(f) && p(b, f, c);
269
+ isNavigationKeyCode: o,
270
+ focusOnNextGridcell: h,
271
+ navigationInput: (r) => {
272
+ const { ctrlKey: f, keyCode: C, target: p } = r;
273
+ Object.values(n.value).flat(1).includes(p) && o(C) && h(p, C, f);
263
274
  }
264
275
  };
265
- }, Qt = (n, e, s, t) => {
266
- const _ = R(n), l = R(e), v = R(s), d = y(() => _.value !== "none"), g = y(() => _.value === "automatic"), m = () => {
267
- t(h.UPDATE_SHOW_MORE);
276
+ }, ns = (n, e, s, t) => {
277
+ const i = E(n), l = E(e), _ = E(s), u = y(() => i.value !== "none"), m = y(() => i.value === "automatic"), c = () => {
278
+ t(L.UPDATE_SHOW_MORE);
268
279
  };
269
280
  return B(
270
281
  () => l.value,
271
282
  () => {
272
- if (g.value) {
273
- const a = v.value.offsetHeight - l.value;
274
- (a === 0 || a === 1) && m();
283
+ if (m.value) {
284
+ const o = _.value.offsetHeight - l.value;
285
+ (o === 0 || o === 1) && c();
275
286
  }
276
287
  }
277
- ), { isLazyLoad: d, isInfiniteScroll: g, verticalScrollPosition: l, emitLazyLoadEvent: m };
278
- }, Kt = (n, e, s) => {
279
- const t = R(n), _ = R(e), l = ne({
288
+ ), { isLazyLoad: u, isInfiniteScroll: m, verticalScrollPosition: l, emitLazyLoadEvent: c };
289
+ }, is = (n, e, s) => {
290
+ const t = E(n), i = E(e), l = le({
280
291
  dragging: null,
281
292
  dragToLeft: null,
282
293
  target: null
283
- }), v = (o, c = 0) => {
284
- const f = t.value.findIndex((C) => C.field === o.field), b = f + c;
285
- if (b < 0 || b > t.value.length - 1)
294
+ }), _ = (r, f = 0) => {
295
+ const C = t.value.findIndex((g) => g.field === r.field), p = C + f;
296
+ if (p < 0 || p > t.value.length - 1)
286
297
  return;
287
298
  const S = [...t.value];
288
- S.splice(b, 0, S.splice(f, 1)[0]), s(h.COLUMNS, S), s(h.UPDATE_COLUMNS, S);
289
- }, d = (o, c) => {
290
- l.dragging = o, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
291
- }, g = (o, c) => {
292
- l.target = o;
293
- const f = c.currentTarget.getBoundingClientRect(), b = f.left + f.width / 2, S = c.clientX ?? 0;
294
- l.dragToLeft = S <= b;
295
- }, m = (o) => {
296
- var c, f;
297
- if (((c = l.dragging) == null ? void 0 : c.field) !== o.field) {
298
- const b = t.value.findIndex((L) => {
299
- var I;
300
- return L.field === ((I = l.dragging) == null ? void 0 : I.field);
301
- }), S = t.value.findIndex((L) => L.field === o.field), C = l.dragToLeft ? S : S + 1, A = C > b ? C - 1 : C;
302
- let i = [...t.value];
303
- i.splice(
299
+ S.splice(p, 0, S.splice(C, 1)[0]), s(L.COLUMNS, S), s(L.UPDATE_COLUMNS, S);
300
+ }, u = (r, f) => {
301
+ l.dragging = r, f.dataTransfer.setData("text", ""), f.dataTransfer.dropEffect = "move";
302
+ }, m = (r, f) => {
303
+ l.target = r;
304
+ const C = f.currentTarget.getBoundingClientRect(), p = C.left + C.width / 2, S = f.clientX ?? 0;
305
+ l.dragToLeft = S <= p;
306
+ }, c = (r) => {
307
+ var f, C;
308
+ if (((f = l.dragging) == null ? void 0 : f.field) !== r.field) {
309
+ const p = t.value.findIndex((b) => {
310
+ var O;
311
+ return b.field === ((O = l.dragging) == null ? void 0 : O.field);
312
+ }), S = t.value.findIndex((b) => b.field === r.field), g = l.dragToLeft ? S : S + 1, A = g > p ? g - 1 : g;
313
+ let a = [...t.value];
314
+ a.splice(
304
315
  A === -1 ? 0 : A,
305
316
  0,
306
- i.splice(b, 1)[0]
317
+ a.splice(p, 1)[0]
307
318
  );
308
- const u = t.value.findIndex((L) => !(L != null && L.frozen));
309
- ((f = l.dragging) == null ? void 0 : f.frozen) !== o.frozen && C !== u && (i = i.map(
310
- (L) => {
311
- var I;
312
- return ((I = l.dragging) == null ? void 0 : I.field) === L.field ? { ...L, frozen: !!(o != null && o.frozen) } : L;
319
+ const v = t.value.findIndex((b) => !(b != null && b.frozen));
320
+ ((C = l.dragging) == null ? void 0 : C.frozen) !== r.frozen && g !== v && (a = a.map(
321
+ (b) => {
322
+ var O;
323
+ return ((O = l.dragging) == null ? void 0 : O.field) === b.field ? { ...b, frozen: !!(r != null && r.frozen) } : b;
313
324
  }
314
- )), s(h.COLUMNS, i), s(h.UPDATE_COLUMNS, i);
325
+ )), s(L.COLUMNS, a), s(L.UPDATE_COLUMNS, a);
315
326
  }
316
327
  l.dragging = null, l.target = null;
317
- }, p = () => {
328
+ }, h = () => {
318
329
  l.dragging = null, l.dragToLeft = null, l.target = null;
319
- }, a = y(() => _.value ? {
320
- [T.COLUMN_DRAG_START]: (o, c) => d(o, c),
321
- [T.COLUMN_DRAG_ENTER]: (o, c) => g(o, c),
322
- [T.COLUMN_DROP]: (o) => m(o),
323
- [T.COLUMN_DRAG_END]: () => p()
324
- } : {}), E = y(() => (o) => _.value ? {
325
- dragenter: (c) => {
326
- c.preventDefault(), g(o, c);
330
+ }, o = y(() => i.value ? {
331
+ [R.COLUMN_DRAG_START]: (r, f) => u(r, f),
332
+ [R.COLUMN_DRAG_ENTER]: (r, f) => m(r, f),
333
+ [R.COLUMN_DROP]: (r) => c(r),
334
+ [R.COLUMN_DRAG_END]: () => h()
335
+ } : {}), T = y(() => (r) => i.value ? {
336
+ dragenter: (f) => {
337
+ f.preventDefault(), m(r, f);
327
338
  },
328
339
  drop: () => {
329
- m(o);
340
+ c(r);
330
341
  },
331
- dragover: (c) => {
332
- c.preventDefault();
342
+ dragover: (f) => {
343
+ f.preventDefault();
333
344
  }
334
345
  } : {});
335
346
  return {
336
347
  // Values
337
348
  draggingColumns: l,
338
349
  // Methods
339
- draggingEventsForColumns: a,
340
- draggingEventsForRowCell: E,
341
- onMoveColumnByOffset: v
350
+ draggingEventsForColumns: o,
351
+ draggingEventsForRowCell: T,
352
+ onMoveColumnByOffset: _
342
353
  };
343
- }, es = (n, e) => {
344
- const s = R(n), t = y(
345
- () => [...s.value].sort((a, E) => a.frozen === E.frozen ? 0 : a.frozen ? -1 : 1)
346
- ), _ = y(() => t.value.filter((a) => a.frozen)), l = y(() => t.value.filter((a) => !a.frozen)), v = y(
354
+ }, ls = (n, e) => {
355
+ const s = E(n), t = y(
356
+ () => [...s.value].sort((o, T) => o.frozen === T.frozen ? 0 : o.frozen ? -1 : 1)
357
+ ), i = y(() => t.value.filter((o) => o.frozen)), l = y(() => t.value.filter((o) => !o.frozen)), _ = y(
347
358
  () => [
348
- { columnSet: _.value, id: "frozen", isFrozenColumns: !0 },
359
+ { columnSet: i.value, id: "frozen", isFrozenColumns: !0 },
349
360
  { columnSet: l.value, id: "unfrozen" }
350
- ].filter(({ columnSet: a }) => a.length)
351
- ), d = y(
352
- () => s.value.filter((a) => (a == null ? void 0 : a.visible) !== !1 && (a == null ? void 0 : a.field) !== V).length === 1
353
- ), g = (a) => e(h.UPDATE_CONDENSED, a), m = (a) => {
354
- e(h.COLUMNS, a), e(h.UPDATE_COLUMNS, a);
361
+ ].filter(({ columnSet: o }) => o.length)
362
+ ), u = y(
363
+ () => s.value.filter((o) => (o == null ? void 0 : o.visible) !== !1 && (o == null ? void 0 : o.field) !== V).length === 1
364
+ ), m = (o) => e(L.UPDATE_CONDENSED, o), c = (o) => {
365
+ e(L.COLUMNS, o), e(L.UPDATE_COLUMNS, o);
355
366
  };
356
367
  return {
357
368
  // Values
358
- columnSets: v,
359
- isOnlyOneVisibleColumn: d,
369
+ columnSets: _,
370
+ isOnlyOneVisibleColumn: u,
360
371
  sortedColumns: t,
361
372
  // Methods
362
- onConfigSettingsUpdate: g,
363
- onConfigSettingsColumnsUpdate: m,
364
- onConfigSettingsColumnUpdate: (a) => {
365
- const E = t.value.map(
366
- (o) => (o == null ? void 0 : o.field) === a.field ? a : o
373
+ onConfigSettingsUpdate: m,
374
+ onConfigSettingsColumnsUpdate: c,
375
+ onConfigSettingsColumnUpdate: (o) => {
376
+ const T = t.value.map(
377
+ (r) => (r == null ? void 0 : r.field) === o.field ? o : r
378
+ );
379
+ c(T);
380
+ }
381
+ };
382
+ }, ye = (n, e) => {
383
+ const s = E(0);
384
+ let t = null;
385
+ const i = () => {
386
+ n != null && n.value && e.value && (s.value = n.value.offsetHeight);
387
+ };
388
+ return Ne(() => {
389
+ G(() => {
390
+ const l = B(
391
+ n,
392
+ () => {
393
+ n != null && n.value && (G(() => l()), t = ze(n.value, () => {
394
+ i();
395
+ }));
396
+ },
397
+ { immediate: !0 }
367
398
  );
368
- m(E);
399
+ B(
400
+ e,
401
+ () => {
402
+ e.value ? i() : s.value = 0;
403
+ },
404
+ { immediate: !0 }
405
+ );
406
+ });
407
+ }), De(() => {
408
+ t == null || t.disconnect();
409
+ }), s;
410
+ }, as = (n, e, s) => {
411
+ const t = E(0);
412
+ return B(
413
+ () => t.value,
414
+ () => {
415
+ n.value.scrollLeft = t.value, e.value.scrollLeft = t.value;
416
+ }
417
+ ), {
418
+ // Values
419
+ scrollLeftPosition: t,
420
+ // Methods
421
+ updateScrollPosition: (_) => {
422
+ t.value = _.target.scrollLeft, s.value = n.value.scrollHeight - _.target.scrollTop;
423
+ },
424
+ updateScrollPositionOnFrozenColumnsNavigation: (_) => {
425
+ _.key !== "Tab" && _.key !== "ArrowRight" && _.key !== "ArrowLeft" || (_.preventDefault(), n.value.scrollLeft = 0, n.value.style.overflowX = "hidden", setTimeout(() => {
426
+ n.value.style.overflowX = "auto";
427
+ }));
369
428
  }
370
429
  };
371
430
  };
372
- let he = 0;
373
- const ts = {
431
+ let be = 0;
432
+ const os = {
374
433
  beforeCreate() {
375
- this.uuid = he.toString(), he += 1;
434
+ this.uuid = be.toString(), be += 1;
376
435
  }
377
436
  };
378
- var ss = function() {
437
+ var rs = function() {
379
438
  var e = this, s = e._self._c;
380
439
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M8 4.75L3.5 10.75L12.5 10.75L8 4.75Z" } })]);
381
- }, ns = [], is = /* @__PURE__ */ D(
382
- ts,
383
- ss,
384
- ns,
440
+ }, cs = [], ds = /* @__PURE__ */ $(
441
+ os,
442
+ rs,
443
+ cs,
385
444
  !1,
386
445
  null,
387
446
  null,
388
447
  null,
389
448
  null
390
449
  );
391
- const ls = is.exports;
392
- let Le = 0;
393
- const as = {
450
+ const us = ds.exports;
451
+ let Ee = 0;
452
+ const _s = {
394
453
  beforeCreate() {
395
- this.uuid = Le.toString(), Le += 1;
454
+ this.uuid = Ee.toString(), Ee += 1;
396
455
  }
397
456
  };
398
- var os = function() {
457
+ var gs = function() {
399
458
  var e = this, s = e._self._c;
400
459
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
401
- }, rs = [], ds = /* @__PURE__ */ D(
402
- as,
403
- os,
404
- rs,
460
+ }, fs = [], Cs = /* @__PURE__ */ $(
461
+ _s,
462
+ gs,
463
+ fs,
405
464
  !1,
406
465
  null,
407
466
  null,
408
467
  null,
409
468
  null
410
469
  );
411
- const cs = ds.exports;
412
- let Se = 0;
413
- const us = {
470
+ const vs = Cs.exports;
471
+ let Re = 0;
472
+ const ms = {
414
473
  beforeCreate() {
415
- this.uuid = Se.toString(), Se += 1;
474
+ this.uuid = Re.toString(), Re += 1;
416
475
  }
417
476
  };
418
- var _s = function() {
477
+ var ps = function() {
419
478
  var e = this, s = e._self._c;
420
479
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
421
- }, gs = [], fs = /* @__PURE__ */ D(
422
- us,
423
- _s,
424
- gs,
480
+ }, hs = [], Ls = /* @__PURE__ */ $(
481
+ ms,
482
+ ps,
483
+ hs,
425
484
  !1,
426
485
  null,
427
486
  null,
428
487
  null,
429
488
  null
430
489
  );
431
- const Cs = fs.exports;
432
- let ye = 0;
433
- const vs = {
490
+ const Ss = Ls.exports;
491
+ let Te = 0;
492
+ const ys = {
434
493
  beforeCreate() {
435
- this.uuid = ye.toString(), ye += 1;
494
+ this.uuid = Te.toString(), Te += 1;
436
495
  }
437
496
  };
438
- var ms = function() {
497
+ var bs = function() {
439
498
  var e = this, s = e._self._c;
440
499
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("g", { attrs: { "clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")" } }, [s("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), s("defs", [s("clipPath", { attrs: { id: "uia-icons-16-freeze__a" + e.uuid } }, [s("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
441
- }, ps = [], bs = /* @__PURE__ */ D(
442
- vs,
443
- ms,
444
- ps,
500
+ }, Es = [], Rs = /* @__PURE__ */ $(
501
+ ys,
502
+ bs,
503
+ Es,
445
504
  !1,
446
505
  null,
447
506
  null,
448
507
  null,
449
508
  null
450
509
  );
451
- const Me = bs.exports;
452
- let Ee = 0;
453
- const hs = {
510
+ const ke = Rs.exports;
511
+ let Ae = 0;
512
+ const Ts = {
454
513
  beforeCreate() {
455
- this.uuid = Ee.toString(), Ee += 1;
514
+ this.uuid = Ae.toString(), Ae += 1;
456
515
  }
457
516
  };
458
- var Ls = function() {
517
+ var As = function() {
459
518
  var e = this, s = e._self._c;
460
519
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z" } }), s("path", { attrs: { fill: "#00112C", d: "M13.9404 5.23L12.8704 6.3C13.4704 6.97 13.9004 7.62 14.1304 8C13.4704 9.07 11.2504 12.25 8.00039 12.25C7.67039 12.25 7.34039 12.22 7.03039 12.14L5.80039 13.37C6.48039 13.61 7.21039 13.75 8.00039 13.75C12.7425 13.75 15.4838 8.69421 15.6649 8.36011C15.6671 8.35603 15.6689 8.35265 15.6704 8.35L15.8504 8L15.6704 7.65C15.6204 7.55 15.0204 6.43 13.9404 5.23Z" } }), s("path", { attrs: { fill: "#00112C", d: "M8.96039 3.85C8.65039 3.78 8.33039 3.75 8.00039 3.75C4.75039 3.75 2.53039 6.93 1.87039 8C2.10039 8.38 2.53039 9.02 3.12039 9.69L2.06039 10.75C0.98039 9.56 0.380391 8.45 0.330391 8.35L0.150391 8L0.330391 7.65C0.331838 7.64735 0.333668 7.64397 0.33588 7.63989C0.517034 7.30578 3.25829 2.25 8.00039 2.25C8.79039 2.25 9.52039 2.39 10.1904 2.62L8.96039 3.85Z" } })]);
461
- }, Ss = [], ys = /* @__PURE__ */ D(
462
- hs,
463
- Ls,
464
- Ss,
520
+ }, Is = [], Os = /* @__PURE__ */ $(
521
+ Ts,
522
+ As,
523
+ Is,
465
524
  !1,
466
525
  null,
467
526
  null,
468
527
  null,
469
528
  null
470
529
  );
471
- const Es = ys.exports;
472
- let Re = 0;
473
- const Rs = {
530
+ const ws = Os.exports;
531
+ let Ie = 0;
532
+ const Ps = {
474
533
  beforeCreate() {
475
- this.uuid = Re.toString(), Re += 1;
534
+ this.uuid = Ie.toString(), Ie += 1;
476
535
  }
477
536
  };
478
- var Ts = function() {
537
+ var Ns = function() {
479
538
  var e = this, s = e._self._c;
480
539
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), s("path", { attrs: { fill: "#00112C", d: "M7.99964 2.25C5.50387 2.25 3.57073 3.66588 2.3086 4.9806C1.6704 5.64539 1.18078 6.30745 0.850599 6.80272C0.685043 7.05106 0.558349 7.2593 0.471981 7.40748C0.428769 7.48162 0.395568 7.54087 0.372564 7.58275C0.36106 7.60369 0.352097 7.6203 0.345701 7.63227L0.338032 7.64672L0.335646 7.65126L0.334488 7.65348L0.154297 8L0.334225 8.34601L0.999638 8C0.334225 8.34601 0.334814 8.34715 0.334814 8.34715L0.335646 8.34874L0.338032 8.35328L0.345701 8.36773C0.352097 8.3797 0.36106 8.39631 0.372564 8.41725C0.395568 8.45913 0.428769 8.51838 0.471981 8.59252C0.558349 8.7407 0.685043 8.94894 0.850599 9.19728C1.18078 9.69255 1.6704 10.3546 2.3086 11.0194C3.57073 12.3341 5.50387 13.75 7.99964 13.75C10.4954 13.75 12.4285 12.3341 13.6907 11.0194C14.3289 10.3546 14.8185 9.69255 15.1487 9.19728C15.3142 8.94894 15.4409 8.7407 15.5273 8.59252C15.5705 8.51838 15.6037 8.45913 15.6267 8.41725C15.6382 8.39631 15.6472 8.3797 15.6536 8.36773L15.6612 8.35328L15.6636 8.34874L15.6648 8.34652L15.845 8L15.6651 7.65399L14.9996 8C15.6651 7.65399 15.6645 7.65285 15.6645 7.65285L15.6636 7.65126L15.6612 7.64672L15.6536 7.63227C15.6472 7.6203 15.6382 7.60369 15.6267 7.58275C15.6037 7.54087 15.5705 7.48162 15.5273 7.40748C15.4409 7.2593 15.3142 7.05106 15.1487 6.80272C14.8185 6.30745 14.3289 5.64539 13.6907 4.9806C12.4285 3.66588 10.4954 2.25 7.99964 2.25ZM14.9996 8L15.6648 8.34652C15.6648 8.34652 15.6651 8.34601 14.9996 8ZM0.999638 8L0.334488 7.65348C0.334488 7.65348 0.334225 7.65399 0.999638 8ZM2.09867 8.36522C2.00649 8.22694 1.92852 8.10363 1.86519 8C1.92852 7.89637 2.00649 7.77306 2.09867 7.63478C2.39349 7.19255 2.82887 6.60461 3.39068 6.0194C4.52855 4.83412 6.09541 3.75 7.99964 3.75C9.90387 3.75 11.4707 4.83412 12.6086 6.0194C13.1704 6.60461 13.6058 7.19255 13.9006 7.63478C13.9928 7.77306 14.0708 7.89637 14.1341 8C14.0708 8.10363 13.9928 8.22694 13.9006 8.36522C13.6058 8.80745 13.1704 9.39539 12.6086 9.9806C11.4707 11.1659 9.90387 12.25 7.99964 12.25C6.09541 12.25 4.52855 11.1659 3.39068 9.9806C2.82887 9.39539 2.39349 8.80745 2.09867 8.36522Z" } })]);
481
- }, Is = [], Os = /* @__PURE__ */ D(
482
- Rs,
483
- Ts,
484
- Is,
540
+ }, Ds = [], $s = /* @__PURE__ */ $(
541
+ Ps,
542
+ Ns,
543
+ Ds,
485
544
  !1,
486
545
  null,
487
546
  null,
488
547
  null,
489
548
  null
490
549
  );
491
- const As = Os.exports, ws = {
550
+ const Ms = $s.exports, Us = {
492
551
  "en-US": {
552
+ freezeColumn: "Freeze column",
553
+ hideColumn: "Hide column",
493
554
  moveColumnLeft: "Move column left",
494
555
  moveColumnRight: "Move column right",
495
- freezeColumn: "Freeze column",
496
- unfreezeColumn: "Unfreeze column",
556
+ selectAll: "Select all",
557
+ selectPage: "Select this page",
558
+ selectionMenu: "Selection menu",
497
559
  showColumn: "Show column",
498
- hideColumn: "Hide column"
560
+ unfreezeColumn: "Unfreeze column"
499
561
  }
500
- }, Ns = Y({
501
- i18n: { messages: ws },
562
+ }, xs = H({
563
+ i18n: { messages: Us },
502
564
  name: "data-grid-columns",
503
565
  components: {
504
- BentoCheckbox: Ne,
505
- BentoInfoIcon: xt,
506
- BentoTypography: le,
507
- BentoMenu: Ft,
508
- TriangleUp: ls,
509
- TriangleDown: cs
566
+ BentoCheckbox: Me,
567
+ BentoInfoIcon: Zt,
568
+ BentoTypography: oe,
569
+ BentoMenu: Be,
570
+ TriangleUp: us,
571
+ TriangleDown: vs
510
572
  },
511
573
  props: {
512
574
  /**
@@ -572,6 +634,13 @@ const As = Os.exports, ws = {
572
634
  type: Object,
573
635
  default: void 0
574
636
  },
637
+ /**
638
+ * Adds an extra option when selecting all, to select items in other pages too
639
+ */
640
+ selectableAcrossPages: {
641
+ type: Boolean,
642
+ default: !1
643
+ },
575
644
  /**
576
645
  * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
577
646
  * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
@@ -583,100 +652,110 @@ const As = Os.exports, ws = {
583
652
  }
584
653
  },
585
654
  emits: [
586
- T.COLUMN_RESIZE,
587
- T.COLUMN_RESIZING,
588
- T.SORT,
589
- T.SELECT_ALL_ROWS,
590
- T.COLUMN_DRAG_START,
591
- T.COLUMN_DRAG_ENTER,
592
- T.COLUMN_DROP,
593
- T.COLUMN_DRAG_END,
594
- T.COLUMN_MOVE,
595
- T.COLUMN_UPDATE,
596
- T.COLUMN_MENU_OPEN,
597
- T.COLUMN_MENU_CLOSE
655
+ R.COLUMN_RESIZE,
656
+ R.COLUMN_RESIZING,
657
+ R.SORT,
658
+ R.SELECT_ALL_ROWS,
659
+ R.SELECT_ALL_ACROSS_PAGES,
660
+ R.COLUMN_DRAG_START,
661
+ R.COLUMN_DRAG_ENTER,
662
+ R.COLUMN_DROP,
663
+ R.COLUMN_DRAG_END,
664
+ R.COLUMN_MOVE,
665
+ R.COLUMN_UPDATE,
666
+ R.COLUMN_MENU_OPEN,
667
+ R.COLUMN_MENU_CLOSE
598
668
  ],
599
669
  setup(n, { emit: e }) {
600
- const { t: s } = Ue(), { columns: t, sortBy: _ } = ie(n), l = R(n.allItemsSelectedState), v = (i) => e(T.SELECT_ALL_ROWS, i), d = (i) => i.field === V, { startResize: g, isResizing: m } = Vt(t, e), { conditionalSortDirectionClasses: p, sortByColumnField: a } = Xt(_, t, e), E = (i) => {
601
- var I;
602
- if (!i.sortable)
670
+ const { t: s } = re(), { columns: t, sortBy: i } = ae(n), l = (a) => e(R.SELECT_ALL_ROWS, a), _ = (a) => a.field === V, u = y(() => [
671
+ {
672
+ text: s("selectPage"),
673
+ handler: () => l(!0)
674
+ },
675
+ {
676
+ text: s("selectAll"),
677
+ handler: () => e(R.SELECT_ALL_ACROSS_PAGES)
678
+ }
679
+ ]), { startResize: m, isResizing: c } = Xt(t, e), { conditionalSortDirectionClasses: h, sortByColumnField: o } = ts(i, t, e), T = (a) => {
680
+ var O;
681
+ if (!a.sortable)
603
682
  return null;
604
- const u = (I = n.sortBy.find(({ field: N }) => N === i.field)) == null ? void 0 : I.direction;
605
- return u ? {
606
- [W.ASCENDING]: te.ASCENDING,
607
- [W.DESCENDING]: te.DESCENDING
608
- }[u] : te.NONE;
609
- }, o = y(() => (i) => n.hasDraggableColumns ? {
610
- dragstart: (u) => {
611
- e(T.COLUMN_DRAG_START, i, u);
683
+ const v = (O = n.sortBy.find(({ field: P }) => P === a.field)) == null ? void 0 : O.direction;
684
+ return v ? {
685
+ [k.ASCENDING]: se.ASCENDING,
686
+ [k.DESCENDING]: se.DESCENDING
687
+ }[v] : se.NONE;
688
+ }, r = y(() => (a) => n.hasDraggableColumns ? {
689
+ dragstart: (v) => {
690
+ e(R.COLUMN_DRAG_START, a, v);
612
691
  },
613
- dragover: (u) => {
614
- u.preventDefault();
692
+ dragover: (v) => {
693
+ v.preventDefault();
615
694
  },
616
- dragenter: (u) => {
617
- u.preventDefault(), e(T.COLUMN_DRAG_ENTER, i, u);
695
+ dragenter: (v) => {
696
+ v.preventDefault(), e(R.COLUMN_DRAG_ENTER, a, v);
618
697
  },
619
698
  drop: () => {
620
- e(T.COLUMN_DROP, i);
699
+ e(R.COLUMN_DROP, a);
621
700
  },
622
701
  dragend: () => {
623
- e(T.COLUMN_DRAG_END);
702
+ e(R.COLUMN_DRAG_END);
624
703
  }
625
- } : {}), c = y(() => (i) => [
704
+ } : {}), f = y(() => (a) => [
626
705
  {
627
706
  text: s("moveColumnLeft"),
628
- handler: () => e(T.COLUMN_MOVE, i, -1),
629
- icon: Gt,
630
- disabled: n.columns[0].field === i.field
707
+ handler: () => e(R.COLUMN_MOVE, a, -1),
708
+ icon: jt,
709
+ disabled: n.columns[0].field === a.field
631
710
  },
632
711
  {
633
712
  text: s("moveColumnRight"),
634
- handler: () => e(T.COLUMN_MOVE, i, 1),
635
- icon: Cs,
636
- disabled: n.columns[n.columns.length - 1].field === i.field
713
+ handler: () => e(R.COLUMN_MOVE, a, 1),
714
+ icon: Ss,
715
+ disabled: n.columns[n.columns.length - 1].field === a.field
637
716
  },
638
717
  {
639
- text: i != null && i.frozen ? s("unfreezeColumn") : s("freezeColumn"),
640
- handler: () => e(T.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
641
- icon: Me
718
+ text: a != null && a.frozen ? s("unfreezeColumn") : s("freezeColumn"),
719
+ handler: () => e(R.COLUMN_UPDATE, { ...a, frozen: !(a != null && a.frozen) }),
720
+ icon: ke
642
721
  },
643
722
  {
644
- text: (i == null ? void 0 : i.visible) !== !1 ? s("hideColumn") : s("showColumn"),
723
+ text: (a == null ? void 0 : a.visible) !== !1 ? s("hideColumn") : s("showColumn"),
645
724
  handler: () => {
646
- e(T.COLUMN_UPDATE, {
647
- ...i,
648
- visible: (i == null ? void 0 : i.visible) === !1
725
+ e(R.COLUMN_UPDATE, {
726
+ ...a,
727
+ visible: (a == null ? void 0 : a.visible) === !1
649
728
  });
650
729
  },
651
- icon: (i == null ? void 0 : i.visible) !== !1 ? Es : As,
652
- disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && n.isOnlyOneVisibleColumn
730
+ icon: (a == null ? void 0 : a.visible) !== !1 ? ws : Ms,
731
+ disabled: (a == null ? void 0 : a.mandatory) || (a == null ? void 0 : a.visible) !== !1 && n.isOnlyOneVisibleColumn
653
732
  }
654
- ]), f = (i) => {
655
- let u = {};
656
- return d(i) || (u = {
657
- ...o.value(i)
658
- }), i.sortable && (u.click = () => a(i.field), u.keydown = (L) => {
659
- L.keyCode === z.ENTER && a(i.field);
660
- }), u;
661
- }, b = y(
733
+ ]), C = (a) => {
734
+ let v = {};
735
+ return _(a) || (v = {
736
+ ...r.value(a)
737
+ }), a.sortable && (v.click = () => o(a.field), v.keydown = (b) => {
738
+ b.keyCode === z.ENTER && o(a.field);
739
+ }), v;
740
+ }, p = y(
662
741
  () => {
663
- var i;
664
- return (i = t.value[0]) != null && i.frozen ? { "b-data-grid-columns--frozen": !0 } : {
742
+ var a;
743
+ return (a = t.value[0]) != null && a.frozen ? { "b-data-grid-columns--frozen": !0 } : {
665
744
  "b-data-grid-columns--unfrozen": !0,
666
745
  "b-data-grid-columns--config-settings-margin": n.hasColumnPanel
667
746
  };
668
747
  }
669
- ), S = (i, u) => i && u === 0 ? me.BOTTOM_START : me.BOTTOM_END, C = (i) => {
670
- var u, L, I, N, w, $, k, X, H, q;
748
+ ), S = (a, v) => a && v === 0 ? he.BOTTOM_START : he.BOTTOM_END, g = (a) => {
749
+ var v, b, O, P, w, x, W, X, Z, K;
671
750
  return {
672
- "b-data-grid-columns__column--sortable": i.sortable,
673
- "b-data-grid-columns__column--padding-left-unset": ((u = i == null ? void 0 : i.padding) == null ? void 0 : u.left) === !1,
674
- "b-data-grid-columns__column--padding-right-unset": ((L = i == null ? void 0 : i.padding) == null ? void 0 : L.right) === !1,
675
- "b-data-grid-columns__column--numeric": i == null ? void 0 : i.numeric,
676
- "b-data-grid-columns__column--frozen": i == null ? void 0 : i.frozen,
677
- "b-data-grid-columns__column--is-re-ordering": (i == null ? void 0 : i.field) === ((N = (I = n.draggingColumns) == null ? void 0 : I.dragging) == null ? void 0 : N.field),
678
- "b-data-grid-columns__column--is-re-ordering-target-left": (i == null ? void 0 : i.field) === (($ = (w = n.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : $.field) && ((k = n.draggingColumns) == null ? void 0 : k.dragToLeft),
679
- "b-data-grid-columns__column--is-re-ordering-target-right": (i == null ? void 0 : i.field) === ((H = (X = n.draggingColumns) == null ? void 0 : X.target) == null ? void 0 : H.field) && !((q = n.draggingColumns) != null && q.dragToLeft)
751
+ "b-data-grid-columns__column--sortable": a.sortable,
752
+ "b-data-grid-columns__column--padding-left-unset": ((v = a == null ? void 0 : a.padding) == null ? void 0 : v.left) === !1,
753
+ "b-data-grid-columns__column--padding-right-unset": ((b = a == null ? void 0 : a.padding) == null ? void 0 : b.right) === !1,
754
+ "b-data-grid-columns__column--numeric": a == null ? void 0 : a.numeric,
755
+ "b-data-grid-columns__column--frozen": a == null ? void 0 : a.frozen,
756
+ "b-data-grid-columns__column--is-re-ordering": (a == null ? void 0 : a.field) === ((P = (O = n.draggingColumns) == null ? void 0 : O.dragging) == null ? void 0 : P.field),
757
+ "b-data-grid-columns__column--is-re-ordering-target-left": (a == null ? void 0 : a.field) === ((x = (w = n.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : x.field) && ((W = n.draggingColumns) == null ? void 0 : W.dragToLeft),
758
+ "b-data-grid-columns__column--is-re-ordering-target-right": (a == null ? void 0 : a.field) === ((Z = (X = n.draggingColumns) == null ? void 0 : X.target) == null ? void 0 : Z.field) && !((K = n.draggingColumns) != null && K.dragToLeft)
680
759
  };
681
760
  }, A = y(() => ({
682
761
  "b-data-grid-columns__column-separator-container--is-resizeable": n.hasResizableColumns
@@ -685,39 +764,41 @@ const As = Os.exports, ws = {
685
764
  // Values
686
765
  DATAGRID_SELECT_FIELD_NAME: V,
687
766
  // Styles and classes
688
- conditionalColumnClasses: C,
767
+ conditionalColumnClasses: g,
689
768
  conditionalColumnSeparatorClasses: A,
690
- conditionalColumnsClasses: b,
769
+ conditionalColumnsClasses: p,
691
770
  // Selecting
692
- allItemsSelectedCheckboxState: l,
693
- isSelectColumn: d,
694
- onAllRowSelect: v,
771
+ isSelectColumn: _,
772
+ onAllRowSelect: l,
773
+ selectAllMenu: u,
695
774
  // Sorting
696
- conditionalSortDirectionClasses: p,
697
- sortByColumnField: a,
698
- getSortingColumnDirection: E,
775
+ conditionalSortDirectionClasses: h,
776
+ sortByColumnField: o,
777
+ getSortingColumnDirection: T,
699
778
  // Resizing
700
- startResize: g,
701
- isResizing: m,
779
+ startResize: m,
780
+ isResizing: c,
702
781
  // Event handlers
703
- dataGridColumnEvents: f,
782
+ dataGridColumnEvents: C,
704
783
  // Dragging
705
- draggingEventsForColumn: o,
784
+ draggingEventsForColumn: r,
706
785
  // Contextual menu
707
- contextualMenuData: c,
786
+ contextualMenuData: f,
708
787
  computeMenuPosition: S,
709
788
  // Enums
710
- BentoDatagridSortDirection: W,
711
- DatagridColumnsEvent: T
789
+ BentoDatagridSortDirection: k,
790
+ DatagridColumnsEvent: R,
791
+ // Messages
792
+ t: s
712
793
  };
713
794
  }
714
795
  });
715
- var Ps = function() {
796
+ var zs = function() {
716
797
  var e = this, s = e._self._c;
717
- return e._self._setupProxy, s("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(e.columns, function(t, _) {
718
- return s("div", e._g({ key: t.field, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(t), style: { width: `${t.width}px` }, attrs: { "aria-colindex": _ + 1, "aria-label": t.label, "aria-sort": e.getSortingColumnDirection(t), "data-testid": `${t.field}-column-header`, draggable: e.hasDraggableColumns && !e.isResizing && !e.isSelectColumn(t), role: "columnheader", tabindex: t.sortable ? "0" : "-1" } }, e.dataGridColumnEvents(t)), [e.isSelectColumn(t) ? [s("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 } })] : [s("bento-typography", { staticClass: "b-data-grid-columns__column-header", attrs: { el: "div", strongest: "" } }, [e._t(`head-${t.field}`, function() {
798
+ return e._self._setupProxy, s("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(e.columns, function(t, i) {
799
+ return s("div", e._g({ key: t.field, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(t), style: { width: `${t.width}px` }, attrs: { "aria-colindex": i + 1, "aria-label": t.label, "aria-sort": e.getSortingColumnDirection(t), "data-testid": `${t.field}-column-header`, draggable: e.hasDraggableColumns && !e.isResizing && !e.isSelectColumn(t), role: "columnheader", tabindex: t.sortable ? "0" : "-1" } }, e.dataGridColumnEvents(t)), [e.isSelectColumn(t) ? s("div", { staticClass: "b-data-grid-columns__select-column" }, [s("bento-checkbox", { attrs: { "model-value": e.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), e.selectableAcrossPages ? [s("bento-menu", { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary" } } }, [s("triangle-down", { attrs: { "svg-title": e.t("selectionMenu") } })], 1)] : e._e()], 2) : [s("bento-typography", { staticClass: "b-data-grid-columns__column-header", attrs: { el: "div", strongest: "" } }, [e._t(`head-${t.field}`, function() {
719
800
  return [s("span", [e._v(e._s(t.label))]), t.infoIconTooltip ? s("bento-info-icon", { attrs: { "tooltip-text": t.infoIconTooltip } }) : e._e()];
720
- }, { column: t })], 2), t.sortable || e.hasColumnPanel ? s("div", { staticClass: "b-data-grid-columns__column-actions" }, [t.sortable ? s("div", { staticClass: "b-data-grid-columns__column-sort" }, [s("triangle-up", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(t.field, e.BentoDatagridSortDirection.ASCENDING), attrs: { "svg-title": `${t.field} sort ascending`, "data-testid": `${t.field}-sort-icon-asc` } }), s("triangle-down", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(t.field, e.BentoDatagridSortDirection.DESCENDING), attrs: { "svg-title": `${t.field}sort descending`, "data-testid": `${t.field}-sort-icon-desc` } })], 1) : e._e(), e.hasColumnPanel ? s("bento-menu", { staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(t), "menu-position": e.computeMenuPosition(e.hasFirstColumnPanelRightAligned, _), "menu-fixed-positioning": !0, button: { variant: "tertiary" } }, on: { open: function(l) {
801
+ }, { column: t })], 2), t.sortable || e.hasColumnPanel ? s("div", { staticClass: "b-data-grid-columns__column-actions" }, [t.sortable ? s("div", { staticClass: "b-data-grid-columns__column-sort" }, [s("triangle-up", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(t.field, e.BentoDatagridSortDirection.ASCENDING), attrs: { "svg-title": `${t.field} sort ascending`, "data-testid": `${t.field}-sort-icon-asc` } }), s("triangle-down", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(t.field, e.BentoDatagridSortDirection.DESCENDING), attrs: { "svg-title": `${t.field}sort descending`, "data-testid": `${t.field}-sort-icon-desc` } })], 1) : e._e(), e.hasColumnPanel ? s("bento-menu", { staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(t), "menu-position": e.computeMenuPosition(e.hasFirstColumnPanelRightAligned, i), "menu-fixed-positioning": !0, button: { variant: "tertiary" } }, on: { open: function(l) {
721
802
  return e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
722
803
  }, close: function(l) {
723
804
  return e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
@@ -725,50 +806,50 @@ var Ps = function() {
725
806
  return e.startResize(e.hasResizableColumns, t.field, l);
726
807
  }, click: function(l) {
727
808
  l.stopPropagation();
728
- } } }, [!e.isFrozenColumns || e.isFrozenColumns && _ !== e.columns.length - 1 ? s("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
809
+ } } }, [!e.isFrozenColumns || e.isFrozenColumns && i !== e.columns.length - 1 ? s("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
729
810
  }), 0);
730
- }, Ds = [], Us = /* @__PURE__ */ D(
731
- Ns,
732
- Ps,
733
- Ds,
811
+ }, Fs = [], Gs = /* @__PURE__ */ $(
812
+ xs,
813
+ zs,
814
+ Fs,
734
815
  !1,
735
816
  null,
736
- "037928b9",
817
+ "0d8de668",
737
818
  null,
738
819
  null
739
820
  );
740
- const $s = Us.exports;
821
+ const Bs = Gs.exports;
741
822
  var F = /* @__PURE__ */ ((n) => (n.CONFIG_SETTINGS = "config-settings", n.UPDATE_COLUMNS = "update:columns", n))(F || {});
742
- let Te = 0;
743
- const Ms = {
823
+ let Oe = 0;
824
+ const ks = {
744
825
  beforeCreate() {
745
- this.uuid = Te.toString(), Te += 1;
826
+ this.uuid = Oe.toString(), Oe += 1;
746
827
  }
747
828
  };
748
- var zs = function() {
829
+ var Ws = function() {
749
830
  var e = this, s = e._self._c;
750
831
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")" } }, [s("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), s("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), s("defs", [s("clipPath", { attrs: { id: "uia-icons-16-settings__a" + e.uuid } }, [s("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
751
- }, xs = [], Fs = /* @__PURE__ */ D(
752
- Ms,
753
- zs,
754
- xs,
832
+ }, Vs = [], Hs = /* @__PURE__ */ $(
833
+ ks,
834
+ Ws,
835
+ Vs,
755
836
  !1,
756
837
  null,
757
838
  null,
758
839
  null,
759
840
  null
760
841
  );
761
- const Gs = Fs.exports, Bs = {
842
+ const Zs = Hs.exports, js = {
762
843
  "en-US": {
763
844
  toggleColumnVisibility: "Toggle {label} column visibility",
764
845
  toggleColumnFreeze: "Toggle {label} column freeze"
765
846
  }
766
- }, Ws = Y({
767
- i18n: { messages: Bs },
847
+ }, Ys = H({
848
+ i18n: { messages: js },
768
849
  name: "bento-data-grid",
769
850
  components: {
770
- BentoFreezeIcon: Me,
771
- BentoToggle: $e
851
+ BentoFreezeIcon: ke,
852
+ BentoToggle: Ge
772
853
  },
773
854
  props: {
774
855
  /**
@@ -788,53 +869,53 @@ const Gs = Fs.exports, Bs = {
788
869
  },
789
870
  emits: ["visible-column", "updated-column"],
790
871
  setup(n, { emit: e }) {
791
- const s = R(!1), t = y(() => {
792
- var p;
793
- return (p = n.column) == null ? void 0 : p.frozen;
794
- }), _ = y(() => {
795
- var p;
796
- return ((p = n.column) == null ? void 0 : p.visible) !== !1;
872
+ const s = E(!1), t = y(() => {
873
+ var h;
874
+ return (h = n.column) == null ? void 0 : h.frozen;
875
+ }), i = y(() => {
876
+ var h;
877
+ return ((h = n.column) == null ? void 0 : h.visible) !== !1;
797
878
  }), l = () => {
798
- e("visible-column", { ...n.column, visible: !_.value });
799
- }, v = () => {
879
+ e("visible-column", { ...n.column, visible: !i.value });
880
+ }, _ = () => {
800
881
  e("updated-column", { ...n.column, frozen: !t.value });
801
- }, d = () => {
882
+ }, u = () => {
802
883
  t.value || (s.value = !0);
803
- }, g = () => {
884
+ }, m = () => {
804
885
  t.value || (s.value = !1);
805
- }, m = y(() => ({
886
+ }, c = y(() => ({
806
887
  ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: t.value
807
888
  }));
808
889
  return {
809
890
  // Values
810
891
  isFreezeIconOptionShown: s,
811
892
  isColumnFrozen: t,
812
- freezeIconConditionalClasses: m,
813
- isColumnVisible: _,
893
+ freezeIconConditionalClasses: c,
894
+ isColumnVisible: i,
814
895
  // Methods
815
896
  toggleColumnVisibility: l,
816
- showFreezeIcon: d,
817
- hideFreezeIcon: g,
818
- toggleColumnFreeze: v
897
+ showFreezeIcon: u,
898
+ hideFreezeIcon: m,
899
+ toggleColumnFreeze: _
819
900
  };
820
901
  }
821
902
  });
822
- var ks = function() {
903
+ var qs = function() {
823
904
  var e = this, s = e._self._c;
824
905
  return e._self._setupProxy, s("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [s("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) + " ")]), s("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(t) {
825
906
  return e.toggleColumnFreeze.apply(null, arguments);
826
907
  } } })], 1);
827
- }, Vs = [], Hs = /* @__PURE__ */ D(
828
- Ws,
829
- ks,
830
- Vs,
908
+ }, Xs = [], Ks = /* @__PURE__ */ $(
909
+ Ys,
910
+ qs,
911
+ Xs,
831
912
  !1,
832
913
  null,
833
914
  "246774cd",
834
915
  null,
835
916
  null
836
917
  );
837
- const Zs = Hs.exports, js = {
918
+ const Js = Ks.exports, Qs = {
838
919
  "en-US": {
839
920
  closeConfigSettingsPanel: "Close configuration settings panel",
840
921
  configSettingsPanel: "Configuration settings Panel",
@@ -850,21 +931,21 @@ const Zs = Hs.exports, js = {
850
931
  closeSearch: "Close search",
851
932
  noColumnsMatch: "No columns match this search"
852
933
  }
853
- }, Ys = Y({
854
- i18n: { messages: js },
934
+ }, en = H({
935
+ i18n: { messages: Qs },
855
936
  name: "bento-data-grid",
856
937
  components: {
857
- BentoCrossIcon: Ut,
858
- BentoPopover: wt,
859
- BentoSettingsIcon: Gs,
860
- BentoButton: Nt,
861
- BentoDataGridConfigSettingsConfigRow: Zs,
862
- BentoSearchBar: Pt,
863
- BentoSearchIcon: $t,
864
- BentoToggle: $e,
865
- BentoTypography: le
938
+ BentoCrossIcon: Gt,
939
+ BentoPopover: xt,
940
+ BentoSettingsIcon: Zs,
941
+ BentoButton: Fe,
942
+ BentoDataGridConfigSettingsConfigRow: Js,
943
+ BentoSearchBar: zt,
944
+ BentoSearchIcon: Bt,
945
+ BentoToggle: Ge,
946
+ BentoTypography: oe
866
947
  },
867
- directives: { BentoClickOutsideDirective: zt },
948
+ directives: { BentoClickOutsideDirective: Wt },
868
949
  props: {
869
950
  /**
870
951
  * Column definitions
@@ -883,63 +964,63 @@ const Zs = Hs.exports, js = {
883
964
  },
884
965
  emits: [F.CONFIG_SETTINGS, F.UPDATE_COLUMNS],
885
966
  setup(n, { emit: e }) {
886
- const s = R(null), t = Mt("data-grid-config-settings-popover"), _ = R(null), l = R(!1), v = R(!0), d = R(""), g = we(n, "columns"), m = R(!1), p = Dt(d, g), a = () => {
887
- d.value = "";
888
- }, E = y(
889
- () => !n.columns.some((u) => u.visible === !1 && !u.mandatory)
890
- ), o = () => {
891
- a(), m.value = !m.value, m.value && G(() => {
892
- var u;
893
- return (u = _.value.bentoInputField) == null ? void 0 : u.focusInput();
894
- }), v.value = E.value;
895
- }, c = (u) => u.mandatory ?? !1, f = (u) => {
896
- const L = n.columns.map((I) => ({
897
- ...I,
898
- visible: u.field === I.field ? u.visible : I.visible
967
+ const s = E(null), t = kt("data-grid-config-settings-popover"), i = E(null), l = E(!1), _ = E(!0), u = E(""), m = $e(n, "columns"), c = E(!1), h = Ft(u, m), o = () => {
968
+ u.value = "";
969
+ }, T = y(
970
+ () => !n.columns.some((v) => v.visible === !1 && !v.mandatory)
971
+ ), r = () => {
972
+ o(), c.value = !c.value, c.value && G(() => {
973
+ var v;
974
+ return (v = i.value.bentoInputField) == null ? void 0 : v.focusInput();
975
+ }), _.value = T.value;
976
+ }, f = (v) => v.mandatory ?? !1, C = (v) => {
977
+ const b = n.columns.map((O) => ({
978
+ ...O,
979
+ visible: v.field === O.field ? v.visible : O.visible
899
980
  }));
900
- e(F.UPDATE_COLUMNS, L);
901
- }, b = (u) => {
902
- u ? e(
981
+ e(F.UPDATE_COLUMNS, b);
982
+ }, p = (v) => {
983
+ v ? e(
903
984
  F.UPDATE_COLUMNS,
904
- n.columns.map((L) => ({ ...L, visible: !0 }))
985
+ n.columns.map((b) => ({ ...b, visible: !0 }))
905
986
  ) : e(
906
987
  F.UPDATE_COLUMNS,
907
- n.columns.map((L) => ({ ...L, visible: (L == null ? void 0 : L.mandatory) === !0 }))
988
+ n.columns.map((b) => ({ ...b, visible: (b == null ? void 0 : b.mandatory) === !0 }))
908
989
  );
909
- }, S = (u) => {
910
- const L = n.columns.map((I) => ({
911
- ...I,
912
- frozen: u.field === I.field ? !!(u != null && u.frozen) : !!(I != null && I.frozen)
990
+ }, S = (v) => {
991
+ const b = n.columns.map((O) => ({
992
+ ...O,
993
+ frozen: v.field === O.field ? !!(v != null && v.frozen) : !!(O != null && O.frozen)
913
994
  }));
914
- e(F.UPDATE_COLUMNS, L);
915
- }, C = (u) => {
916
- l.value = u, v.value = E.value;
995
+ e(F.UPDATE_COLUMNS, b);
996
+ }, g = (v) => {
997
+ l.value = v, _.value = T.value;
917
998
  };
918
999
  return {
919
1000
  // Values
920
1001
  configSettingsButtonRef: s,
921
1002
  popoverId: t,
922
1003
  isConfigSettingsPanelOpen: l,
923
- allColumnsVisbilityToggleState: v,
924
- filteredColumnVisibilityColumns: p,
925
- searchTerm: d,
926
- isColumnVisibilityFilterShown: m,
927
- searchBarRef: _,
1004
+ allColumnsVisbilityToggleState: _,
1005
+ filteredColumnVisibilityColumns: h,
1006
+ searchTerm: u,
1007
+ isColumnVisibilityFilterShown: c,
1008
+ searchBarRef: i,
928
1009
  DATAGRID_SELECT_FIELD_NAME: V,
929
1010
  // Methods
930
- setConfigSettingsPanelVisibility: C,
931
- emitCondensedToggle: (u) => e(F.CONFIG_SETTINGS, u),
932
- toggleAllColumnVisibility: b,
933
- clearAction: a,
934
- toggleColumnFilter: o,
935
- emitVisibleColumns: f,
1011
+ setConfigSettingsPanelVisibility: g,
1012
+ emitCondensedToggle: (v) => e(F.CONFIG_SETTINGS, v),
1013
+ toggleAllColumnVisibility: p,
1014
+ clearAction: o,
1015
+ toggleColumnFilter: r,
1016
+ emitVisibleColumns: C,
936
1017
  emitFrozenColumns: S,
937
- onClickOutside: () => C(!1),
938
- isColumnVisibilityToggleDisabled: c
1018
+ onClickOutside: () => g(!1),
1019
+ isColumnVisibilityToggleDisabled: f
939
1020
  };
940
1021
  }
941
1022
  });
942
- var Xs = function() {
1023
+ var tn = function() {
943
1024
  var e = this, s = e._self._c;
944
1025
  return e._self._setupProxy, s("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [s("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [s("div", { staticClass: "b-data-grid-config-settings__column-separator" }), s("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [s("bento-button", { attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: "tertiary" }, on: { click: function(t) {
945
1026
  return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
@@ -960,17 +1041,17 @@ var Xs = function() {
960
1041
  } } })], 1) : s("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [s("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), s("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(t) {
961
1042
  return s("div", { key: t.field }, [t.field !== e.DATAGRID_SELECT_FIELD_NAME ? s("bento-data-grid-config-settings-config-row", { attrs: { column: t, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(t) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
962
1043
  }), e.filteredColumnVisibilityColumns.length === 0 ? s("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);
963
- }, qs = [], Js = /* @__PURE__ */ D(
964
- Ys,
965
- Xs,
966
- qs,
1044
+ }, sn = [], nn = /* @__PURE__ */ $(
1045
+ en,
1046
+ tn,
1047
+ sn,
967
1048
  !1,
968
1049
  null,
969
1050
  "86ff67f7",
970
1051
  null,
971
1052
  null
972
1053
  );
973
- const Qs = Js.exports, ze = {
1054
+ const ln = nn.exports, We = {
974
1055
  "en-US": {
975
1056
  gettingYourData: "Getting your data",
976
1057
  loading: "Loading",
@@ -980,87 +1061,178 @@ const Qs = Js.exports, ze = {
980
1061
  sortInactive: "{field} sort inactive",
981
1062
  selectRow: "Select row"
982
1063
  }
983
- }, Ks = {
984
- i18n: { messages: ze }
985
- }, en = /* @__PURE__ */ Y({
986
- ...Ks,
1064
+ }, an = {
1065
+ i18n: { messages: We }
1066
+ }, on = /* @__PURE__ */ H({
1067
+ ...an,
987
1068
  __name: "data-grid-lazy-load",
988
1069
  props: {
989
1070
  loading: { type: Boolean },
990
1071
  isInfiniteScroll: { type: Boolean }
991
1072
  },
992
1073
  setup(n) {
993
- return { __sfc: !0, BentoLoadingButton: Bt, BentoLoadingButtonState: Wt, BentoLoadingIndicator: Pe, BentoDatagridEvent: h };
1074
+ return { __sfc: !0, BentoLoadingButton: Yt, BentoLoadingButtonState: qt, BentoLoadingIndicator: Ue, BentoDatagridEvent: L };
994
1075
  }
995
1076
  });
996
- var tn = function() {
1077
+ var rn = function() {
997
1078
  var e = this, s = e._self._c, t = e._self._setupProxy;
998
- return s("div", { staticClass: "b-data-grid-lazy-load" }, [e.loading && e.isInfiniteScroll ? s(t.BentoLoadingIndicator) : e._e(), e.loading && !e.isInfiniteScroll ? s(t.BentoLoadingButton, { attrs: { variant: "secondary", state: t.BentoLoadingButtonState.LOADING } }, [e._v(e._s(e.$t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? s(t.BentoLoadingButton, { attrs: { state: t.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(_) {
1079
+ return s("div", { staticClass: "b-data-grid-lazy-load" }, [e.loading && e.isInfiniteScroll ? s(t.BentoLoadingIndicator) : e._e(), e.loading && !e.isInfiniteScroll ? s(t.BentoLoadingButton, { attrs: { variant: "secondary", state: t.BentoLoadingButtonState.LOADING } }, [e._v(e._s(e.$t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? s(t.BentoLoadingButton, { attrs: { state: t.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(i) {
999
1080
  return e.$emit(t.BentoDatagridEvent.UPDATE_SHOW_MORE);
1000
1081
  } } }, [e._v(e._s(e.$t("showMore")))]) : e._e()], 1);
1001
- }, sn = [], nn = /* @__PURE__ */ D(
1002
- en,
1003
- tn,
1004
- sn,
1082
+ }, cn = [], dn = /* @__PURE__ */ $(
1083
+ on,
1084
+ rn,
1085
+ cn,
1005
1086
  !1,
1006
1087
  null,
1007
1088
  "434be84c",
1008
1089
  null,
1009
1090
  null
1010
1091
  );
1011
- const ln = nn.exports, Ie = (n, e) => {
1012
- const s = R(0);
1013
- let t = null;
1014
- const _ = () => {
1015
- n != null && n.value && e.value && (s.value = n.value.offsetHeight);
1016
- };
1017
- return Oe(() => {
1018
- G(() => {
1019
- const l = B(
1020
- n,
1021
- () => {
1022
- n != null && n.value && (G(() => l()), t = De(n.value, () => {
1023
- _();
1024
- }));
1025
- },
1026
- { immediate: !0 }
1027
- );
1028
- B(
1029
- e,
1030
- () => {
1031
- e.value ? _() : s.value = 0;
1032
- },
1033
- { immediate: !0 }
1034
- );
1035
- });
1036
- }), Ae(() => {
1037
- t == null || t.disconnect();
1038
- }), s;
1039
- }, an = (n, e, s) => {
1040
- const t = R(0);
1041
- return B(
1042
- () => t.value,
1043
- () => {
1044
- n.value.scrollLeft = t.value, e.value.scrollLeft = t.value;
1045
- }
1046
- ), {
1047
- // Values
1048
- scrollLeftPosition: t,
1049
- // Methods
1050
- updateScrollPosition: (v) => {
1051
- t.value = v.target.scrollLeft, s.value = n.value.scrollHeight - v.target.scrollTop;
1092
+ const un = dn.exports;
1093
+ let we = 0;
1094
+ const _n = {
1095
+ beforeCreate() {
1096
+ this.uuid = we.toString(), we += 1;
1097
+ }
1098
+ };
1099
+ var gn = function() {
1100
+ var e = this, s = e._self._c;
1101
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z" } })]);
1102
+ }, fn = [], Cn = /* @__PURE__ */ $(
1103
+ _n,
1104
+ gn,
1105
+ fn,
1106
+ !1,
1107
+ null,
1108
+ null,
1109
+ null,
1110
+ null
1111
+ );
1112
+ const vn = Cn.exports;
1113
+ let Pe = 0;
1114
+ const mn = {
1115
+ beforeCreate() {
1116
+ this.uuid = Pe.toString(), Pe += 1;
1117
+ }
1118
+ };
1119
+ var pn = function() {
1120
+ var e = this, s = e._self._c;
1121
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z" } })]);
1122
+ }, hn = [], Ln = /* @__PURE__ */ $(
1123
+ mn,
1124
+ pn,
1125
+ hn,
1126
+ !1,
1127
+ null,
1128
+ null,
1129
+ null,
1130
+ null
1131
+ );
1132
+ const Sn = Ln.exports, yn = {
1133
+ "en-US": {
1134
+ copy: "Copy",
1135
+ edit: "Edit",
1136
+ open: "Open",
1137
+ more: "More"
1138
+ }
1139
+ }, bn = {
1140
+ i18n: { messages: yn },
1141
+ name: "data-grid-cell-actions"
1142
+ }, En = /* @__PURE__ */ H({
1143
+ ...bn,
1144
+ props: {
1145
+ /**
1146
+ * Column definitions using 'key' to relate to data object.
1147
+ */
1148
+ cellActions: {
1149
+ type: Array,
1150
+ required: !0,
1151
+ validator: (n) => (n == null ? void 0 : n.length) <= 2
1052
1152
  },
1053
- updateScrollPositionOnFrozenColumnsNavigation: () => {
1054
- n.value.scrollLeft = 0, n.value.style.overflowX = "hidden", setTimeout(() => {
1055
- n.value.style.overflowX = "auto";
1056
- });
1153
+ /**
1154
+ * The column field key.
1155
+ */
1156
+ columnKey: {
1157
+ type: String,
1158
+ required: !0
1159
+ },
1160
+ /**
1161
+ * The row data item object.
1162
+ */
1163
+ rowDataItem: {
1164
+ type: Object,
1165
+ required: !0
1057
1166
  }
1058
- };
1059
- }, on = Symbol("data-grid-template injection key"), rn = {
1060
- i18n: { messages: ze },
1167
+ },
1168
+ setup(n) {
1169
+ const e = n, { t: s } = re(), t = y(() => {
1170
+ var c;
1171
+ return ((c = e.cellActions) == null ? void 0 : c.length) > 2 && xe(
1172
+ "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
1173
+ ), e.cellActions.slice(0, 2);
1174
+ }), i = y(() => (c, h) => {
1175
+ if (!(!h && c.isShort || h && !c.isShort))
1176
+ switch (c.variant) {
1177
+ case "copy":
1178
+ return s("copy");
1179
+ case "edit":
1180
+ return s("edit");
1181
+ case "open":
1182
+ return s("open");
1183
+ case "more":
1184
+ return s("more");
1185
+ default:
1186
+ return c.title;
1187
+ }
1188
+ });
1189
+ return { __sfc: !0, t: s, props: e, limitedRowCellActionsProps: t, getButtonTitle: i, generateButtonEvents: (c) => (c == null ? void 0 : c.event) !== void 0 ? {
1190
+ click: () => c.event(e.rowDataItem, e.columnKey)
1191
+ } : {}, getCopyText: (c) => {
1192
+ var h, o;
1193
+ return (c == null ? void 0 : c.getCopyData) !== void 0 ? c.getCopyData(e.rowDataItem, e.columnKey) : (o = (h = e.rowDataItem) == null ? void 0 : h[e.columnKey]) == null ? void 0 : o.toString();
1194
+ }, shouldShowMenuIconRight: (c) => c.iconRight || ((c == null ? void 0 : c.variant) === "more" || (c == null ? void 0 : c.variant) === "open") && !c.isShort, shouldShowMenuIconLeft: (c) => c.iconLeft || (c == null ? void 0 : c.variant) === "more", BentoButton: Fe, BentoMenu: Be, Copy: Ht, Edit1Icon: vn, ExternalLinkIcon: Sn, OptionsVerticalIcon: Vt };
1195
+ }
1196
+ });
1197
+ var Rn = function() {
1198
+ var e = this, s = e._self._c, t = e._self._setupProxy;
1199
+ return s("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [s("div", { staticClass: "b-data-grid-cell-actions" }, [s("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), s("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, e._l(t.limitedRowCellActionsProps, function(i, l) {
1200
+ return s("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [i.menuData ? s(t.BentoMenu, { attrs: { data: i.menuData, button: {
1201
+ condensed: !0,
1202
+ variant: "secondary",
1203
+ disabled: i.disabled
1204
+ } }, scopedSlots: e._u([t.shouldShowMenuIconLeft(i) ? { key: "iconLeft", fn: function() {
1205
+ return [(i == null ? void 0 : i.variant) === "more" ? s(t.OptionsVerticalIcon, { attrs: { "svg-title": t.getButtonTitle(i, !0) } }) : s(i.iconLeft, { tag: "component", attrs: { "svg-title": t.getButtonTitle(i, !0) } })];
1206
+ }, proxy: !0 } : null, i != null && i.isShort ? null : { key: "default", fn: function() {
1207
+ return [e._v(" " + e._s(t.getButtonTitle(i)) + " ")];
1208
+ }, proxy: !0 }, t.shouldShowMenuIconRight(i) ? { key: "iconRight", fn: function() {
1209
+ return [(i == null ? void 0 : i.variant) === "open" ? s(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(i, !0) } }) : s(i.iconRight, { tag: "component", attrs: { "svg-title": i.title } })];
1210
+ }, proxy: !0 } : null], null, !0) }) : i.variant === "copy" ? s(t.Copy, { attrs: { text: t.getCopyText(i), "button-text": t.getButtonTitle(i), button: {
1211
+ condensed: !0,
1212
+ variant: "secondary"
1213
+ } } }) : s(t.BentoButton, e._g({ attrs: { condensed: "", variant: "secondary", critical: i.critical, disabled: i.disabled, link: i.link }, scopedSlots: e._u([i.iconLeft || i.variant === "edit" ? { key: "iconLeft", fn: function() {
1214
+ return [(i == null ? void 0 : i.variant) === "edit" ? s(t.Edit1Icon, { attrs: { "svg-title": t.getButtonTitle(i, !0) } }) : s(i.iconLeft, { tag: "component", attrs: { "svg-title": i.title } })];
1215
+ }, proxy: !0 } : null, i != null && i.isShort ? null : { key: "default", fn: function() {
1216
+ return [e._v(" " + e._s(t.getButtonTitle(i)) + " ")];
1217
+ }, proxy: !0 }, i.iconRight || i.variant === "open" ? { key: "iconRight", fn: function() {
1218
+ return [(i == null ? void 0 : i.variant) === "open" ? s(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(i, !0) } }) : s(i.iconRight, { tag: "component", attrs: { "svg-title": i.title } })];
1219
+ }, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(i)))], 1);
1220
+ }), 0)])]);
1221
+ }, Tn = [], An = /* @__PURE__ */ $(
1222
+ En,
1223
+ Rn,
1224
+ Tn,
1225
+ !1,
1226
+ null,
1227
+ "bf15c0be",
1228
+ null,
1229
+ null
1230
+ );
1231
+ const In = An.exports, On = Symbol("data-grid-template injection key"), wn = {
1232
+ i18n: { messages: We },
1061
1233
  name: "bento-data-grid"
1062
- }, dn = /* @__PURE__ */ Y({
1063
- ...rn,
1234
+ }, Pn = /* @__PURE__ */ H({
1235
+ ...wn,
1064
1236
  props: {
1065
1237
  /**
1066
1238
  * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
@@ -1198,6 +1370,13 @@ const ln = nn.exports, Ie = (n, e) => {
1198
1370
  type: Object,
1199
1371
  default: void 0
1200
1372
  },
1373
+ /**
1374
+ * Adds an extra option when selecting all items that allows user to select items in other pages too.
1375
+ */
1376
+ selectableAcrossPages: {
1377
+ type: Boolean,
1378
+ default: !1
1379
+ },
1201
1380
  /**
1202
1381
  * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
1203
1382
  * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
@@ -1253,191 +1432,202 @@ const ln = nn.exports, Ie = (n, e) => {
1253
1432
  }
1254
1433
  },
1255
1434
  emits: [
1256
- h.COLUMNS,
1257
- h.COLUMN_RESIZE,
1258
- h.ITEMS_PAGE,
1259
- h.FILTER_SEARCH_INPUT,
1260
- h.FILTER_SEARCH_CLEAR,
1261
- h.NAVIGATE,
1262
- h.UPDATE_COLUMNS,
1263
- h.UPDATE_CONDENSED,
1264
- h.UPDATE_FILTER_VALUES,
1265
- h.UPDATE_FILTERS,
1266
- h.UPDATE_FILTER_SEARCH_TERM,
1267
- h.UPDATE_SHOW_MORE,
1268
- h.UPDATE_PAGINATION,
1269
- h.UPDATE_SELECTION,
1270
- h.UPDATE_SORT_BY,
1271
- h.ROW_CLICK,
1272
- h.SELECT,
1273
- h.SORT
1435
+ L.COLUMNS,
1436
+ L.COLUMN_RESIZE,
1437
+ L.ITEMS_PAGE,
1438
+ L.FILTER_SEARCH_INPUT,
1439
+ L.FILTER_SEARCH_CLEAR,
1440
+ L.NAVIGATE,
1441
+ L.UPDATE_COLUMNS,
1442
+ L.UPDATE_CONDENSED,
1443
+ L.UPDATE_FILTER_VALUES,
1444
+ L.UPDATE_FILTERS,
1445
+ L.UPDATE_FILTER_SEARCH_TERM,
1446
+ L.UPDATE_SHOW_MORE,
1447
+ L.UPDATE_PAGINATION,
1448
+ L.UPDATE_SELECTION,
1449
+ L.UPDATE_SORT_BY,
1450
+ L.ROW_CLICK,
1451
+ L.SELECT,
1452
+ L.SELECT_ALL_ACROSS_PAGES,
1453
+ L.SORT
1274
1454
  ],
1275
1455
  setup(n, { expose: e, emit: s }) {
1276
- const t = n, _ = St(), l = R(null), v = R(), d = R(null), g = R(null), m = R(), p = R(null), { allowColumnDragAndDrop: a, columns: E, data: o, lazyLoadType: c, selectable: f, selection: b } = ie(t), { t: S } = Ue(), C = ve(
1277
- on,
1456
+ const t = n, i = wt(), l = E(null), _ = E(), u = E(null), m = E(null), c = E(), h = E(null), { allowColumnDragAndDrop: o, columns: T, data: r, lazyLoadType: f, selectable: C, selection: p } = ae(t), { t: S } = re(), g = pe(
1457
+ On,
1278
1458
  () => ({
1279
1459
  isDataGridTemplate: !1,
1280
- stickyTabs: R(!1),
1281
- tabsRef: R(null)
1460
+ stickyTabs: E(!1),
1461
+ tabsRef: E(null)
1282
1462
  })
1283
- ), { isDataGridTemplate: A, stickyTabs: i, tabsRef: u } = C(), L = y(() => t.fitContent || A ? 0 : null), { columnDefs: I, onColumnWidthOverride: N, gridColumnWidthStyle: w, isMeasuringColumnWidths: $ } = Yt(E, o, l, d, {
1284
- hasSelectableColumn: f
1285
- }), k = Ie(u, i), X = y(
1286
- () => t.stickyFilters ? `${k.value}px` : null
1287
- ), H = Ie(g, we(t, "stickyFilters")), q = y(
1288
- () => `${H.value + k.value}px`
1463
+ ), { isDataGridTemplate: A, stickyTabs: a, tabsRef: v } = g(), b = y(() => t.fitContent || A ? 0 : null), { columnDefs: O, onColumnWidthOverride: P, gridColumnWidthStyle: w, isMeasuringColumnWidths: x } = Qt(T, r, l, u, {
1464
+ hasSelectableColumn: C
1465
+ }), W = ye(v, a), X = y(
1466
+ () => t.stickyFilters ? `${W.value}px` : null
1467
+ ), Z = ye(m, $e(t, "stickyFilters")), K = y(
1468
+ () => `${Z.value + W.value}px`
1289
1469
  ), {
1290
- sortedColumns: ae,
1291
- columnSets: se,
1292
- isOnlyOneVisibleColumn: xe,
1293
- onConfigSettingsUpdate: Fe,
1294
- onConfigSettingsColumnsUpdate: Ge,
1295
- onConfigSettingsColumnUpdate: Be
1296
- } = es(I, s), { draggingColumns: U, draggingEventsForColumns: We, draggingEventsForRowCell: oe, onMoveColumnByOffset: ke } = Kt(ae, a, s), { onAllRowSelect: Ve, onRowSelect: He, selectedItems: J, allItemsSelectedState: Ze } = qt(
1297
- b,
1470
+ sortedColumns: ce,
1471
+ columnSets: ne,
1472
+ isOnlyOneVisibleColumn: Ve,
1473
+ onConfigSettingsUpdate: He,
1474
+ onConfigSettingsColumnsUpdate: Ze,
1475
+ onConfigSettingsColumnUpdate: je
1476
+ } = ls(O, s), { draggingColumns: U, draggingEventsForColumns: Ye, draggingEventsForRowCell: de, onMoveColumnByOffset: qe } = is(ce, o, s), { onAllRowSelect: Xe, onRowSelect: Ke, selectedItems: J, allItemsSelectedState: Je } = es(
1477
+ p,
1298
1478
  s,
1299
- o,
1479
+ r,
1300
1480
  t.getDataItemId,
1301
1481
  t.isDataItemDisabled
1302
- ), { navigationInput: je } = Jt(d, E, f), { isLazyLoad: re, isInfiniteScroll: Ye, verticalScrollPosition: de, emitLazyLoadEvent: Xe } = Qt(
1303
- c,
1304
- p,
1482
+ ), { navigationInput: Qe } = ss(u, T, C), { isLazyLoad: ue, isInfiniteScroll: et, verticalScrollPosition: _e, emitLazyLoadEvent: tt } = ns(
1483
+ f,
1484
+ h,
1305
1485
  l,
1306
1486
  s
1307
- ), { updateScrollPosition: qe, updateScrollPositionOnFrozenColumnsNavigation: ce } = an(
1487
+ ), { updateScrollPosition: st, updateScrollPositionOnFrozenColumnsNavigation: ie } = as(
1308
1488
  l,
1309
- v,
1310
- de
1311
- ), ue = () => {
1312
- m.value.isClearAllVisible ? m.value.clearAllFilters() : m.value.isResetAllVisible && m.value.resetAllFilters();
1313
- }, Je = y(() => {
1314
- var r, O;
1489
+ _,
1490
+ _e
1491
+ ), ge = () => {
1492
+ c.value.isClearAllVisible ? c.value.clearAllFilters() : c.value.isResetAllVisible && c.value.resetAllFilters();
1493
+ }, nt = y(() => {
1494
+ var d, I;
1315
1495
  return {
1316
1496
  ...t.emptyState,
1317
- variant: ((r = t.emptyState) == null ? void 0 : r.variant) === "embedded" || ((O = t.emptyState) == null ? void 0 : O.variant) === "basic" ? t.emptyState.variant : "basic"
1497
+ variant: ((d = t.emptyState) == null ? void 0 : d.variant) === "embedded" || ((I = t.emptyState) == null ? void 0 : I.variant) === "basic" ? t.emptyState.variant : "basic"
1318
1498
  };
1319
- }), Qe = y(() => ({
1320
- [`b-data-grid--${ee.OUTLINE}`]: t.outline,
1321
- [`b-data-grid--${ee.SCROLL}`]: t.fitContent || re.value,
1322
- [`b-data-grid--${ee.STICKY_FILTERS}`]: t.filters && t.stickyFilters
1323
- })), Ke = y(() => se.value.findIndex((r) => r.columnSet.length)), et = (r) => {
1324
- var O;
1499
+ }), it = y(() => ({
1500
+ [`b-data-grid--${te.OUTLINE}`]: t.outline,
1501
+ [`b-data-grid--${te.SCROLL}`]: t.fitContent || ue.value,
1502
+ [`b-data-grid--${te.STICKY_FILTERS}`]: t.filters && t.stickyFilters
1503
+ })), lt = y(() => ne.value.findIndex((d) => d.columnSet.length)), at = (d) => {
1504
+ var I;
1325
1505
  return {
1326
- "b-data-grid__row--disabled": t.isDataItemDisabled(r),
1506
+ "b-data-grid__row--disabled": t.isDataItemDisabled(d),
1327
1507
  "b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
1328
- "b-data-grid__cell--is-re-ordering": ((O = U.target) == null ? void 0 : O.field) !== void 0,
1329
- "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(r)) || J.value.includes(t.getDataItemId(r))
1508
+ "b-data-grid__cell--is-re-ordering": ((I = U.target) == null ? void 0 : I.field) !== void 0,
1509
+ "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(d)) || J.value.includes(t.getDataItemId(d))
1330
1510
  };
1331
- }, tt = (r) => ({
1332
- "b-data-grid__row-cell-set--frozen": r,
1333
- "b-data-grid__row-cell-set--unfrozen": !r,
1334
- "b-data-grid__row-cell-set--config-settings-margin": !r && t.columnPanel
1335
- }), st = (r) => {
1336
- var O, M, x, Z, j;
1511
+ }, ot = (d) => ({
1512
+ "b-data-grid__row-cell-set--frozen": d,
1513
+ "b-data-grid__row-cell-set--unfrozen": !d,
1514
+ "b-data-grid__row-cell-set--config-settings-margin": !d && t.columnPanel
1515
+ }), rt = (d) => {
1516
+ var I, N, D, Y, q;
1337
1517
  return {
1338
- "b-data-grid__cell--padding-left-unset": ((O = r == null ? void 0 : r.padding) == null ? void 0 : O.left) === !1,
1339
- "b-data-grid__cell--padding-right-unset": ((M = r == null ? void 0 : r.padding) == null ? void 0 : M.right) === !1,
1340
- "b-data-grid__cell--numeric": r == null ? void 0 : r.numeric,
1518
+ "b-data-grid__cell--padding-left-unset": ((I = d == null ? void 0 : d.padding) == null ? void 0 : I.left) === !1,
1519
+ "b-data-grid__cell--padding-right-unset": ((N = d == null ? void 0 : d.padding) == null ? void 0 : N.right) === !1,
1520
+ "b-data-grid__cell--numeric": d == null ? void 0 : d.numeric,
1341
1521
  "b-data-grid__cell--condensed": t.condensed,
1342
- "b-data-grid__cell--frozen": r == null ? void 0 : r.frozen,
1343
- [`b-data-grid__cell--overflow-${K.ELLIPSIS}`]: (r == null ? void 0 : r.overflow) === K.ELLIPSIS,
1344
- "b-data-grid__cell--is-column-re-ordering": ((x = U.dragging) == null ? void 0 : x.field) === r.field,
1345
- "b-data-grid__cell--is-column-re-order-target-left": ((Z = U.target) == null ? void 0 : Z.field) === r.field && (U == null ? void 0 : U.dragToLeft),
1346
- "b-data-grid__cell--is-column-re-order-target-right": ((j = U.target) == null ? void 0 : j.field) === r.field && !(U != null && U.dragToLeft)
1522
+ "b-data-grid__cell--frozen": d == null ? void 0 : d.frozen,
1523
+ [`b-data-grid__cell--overflow-${ee.ELLIPSIS}`]: (d == null ? void 0 : d.overflow) === ee.ELLIPSIS,
1524
+ "b-data-grid__cell--is-column-re-ordering": ((D = U.dragging) == null ? void 0 : D.field) === d.field,
1525
+ "b-data-grid__cell--is-column-re-order-target-left": ((Y = U.target) == null ? void 0 : Y.field) === d.field && (U == null ? void 0 : U.dragToLeft),
1526
+ "b-data-grid__cell--is-column-re-order-target-right": ((q = U.target) == null ? void 0 : q.field) === d.field && !(U != null && U.dragToLeft)
1347
1527
  };
1348
- }, nt = y(() => {
1349
- var r, O, M, x, Z, j;
1528
+ }, ct = y(() => {
1529
+ var d, I, N, D, Y, q;
1350
1530
  return {
1351
- "b-data-grid__pagination--padding-left-unset": ((M = (O = (r = t.columns) == null ? void 0 : r[0]) == null ? void 0 : O.padding) == null ? void 0 : M.left) === !1,
1352
- "b-data-grid__pagination--padding-right-unset": ((j = (Z = (x = t.columns) == null ? void 0 : x[t.columns.length - 1]) == null ? void 0 : Z.padding) == null ? void 0 : j.right) === !1,
1531
+ "b-data-grid__pagination--padding-left-unset": ((N = (I = (d = t.columns) == null ? void 0 : d[0]) == null ? void 0 : I.padding) == null ? void 0 : N.left) === !1,
1532
+ "b-data-grid__pagination--padding-right-unset": ((q = (Y = (D = t.columns) == null ? void 0 : D[t.columns.length - 1]) == null ? void 0 : Y.padding) == null ? void 0 : q.right) === !1,
1353
1533
  "b-data-grid__pagination--sticky": !!t.stickyPagination || A
1354
1534
  };
1355
- }), it = y(() => {
1356
- var r;
1535
+ }), dt = y(() => {
1536
+ var d;
1357
1537
  return {
1358
- height: `${(r = v.value) == null ? void 0 : r.clientHeight}px`
1538
+ height: `${(d = _.value) == null ? void 0 : d.clientHeight}px`
1359
1539
  };
1360
- }), lt = (r, O) => (r == null ? void 0 : r.overflow) === K.ELLIPSIS ? `${O}` : void 0, at = (r) => r ?? "-", ot = (r, O, M) => {
1361
- var x;
1362
- ((x = d.value) == null ? void 0 : x[O]) === void 0 && (d.value = { ...d.value, [O]: [] }), d.value[O][M] = r;
1363
- }, rt = (r, O) => {
1364
- t.allowRowClicks && s(h.ROW_CLICK, r, O);
1365
- }, dt = Tt({
1366
- label: _ != null && _.header ? It(_)("header") : null,
1540
+ }), ut = (d, I) => (d == null ? void 0 : d.overflow) === ee.ELLIPSIS ? `${I}` : void 0, _t = (d) => d ?? "-", gt = (d, I, N) => {
1541
+ var D;
1542
+ ((D = u.value) == null ? void 0 : D[I]) === void 0 && (u.value = { ...u.value, [I]: [] }), u.value[I][N] = d;
1543
+ }, ft = (d, I) => {
1544
+ t.allowRowClicks && s(L.ROW_CLICK, d, I);
1545
+ }, Ct = y(() => !!t.selectableAcrossPages && !!t.pagination), vt = Dt({
1546
+ label: i != null && i.header ? $t(i)("header") : null,
1367
1547
  defaultFallback: "data grid"
1368
- }), ct = (r) => {
1548
+ }), mt = (d) => {
1369
1549
  if (!t.selectable)
1370
1550
  return null;
1371
- const O = t.getDataItemId(r);
1372
- return J.value.includes(O).toString();
1373
- }, _e = (r, O) => r + se.value.length * O, ut = (r, O, M) => E.value.length * r + _e(O, M), ge = y(() => {
1374
- var r;
1375
- return ((r = J.value) == null ? void 0 : r.length) ?? 0;
1376
- }), _t = y(() => t.bulkActions && ge.value > 0), gt = (r) => s(h.COLUMN_RESIZE, r), ft = (r) => {
1377
- s(h.UPDATE_SORT_BY, r), s(h.SORT, r);
1378
- }, Ct = (r) => {
1379
- s(h.NAVIGATE, r), s(h.UPDATE_PAGINATION, {
1551
+ const I = t.getDataItemId(d);
1552
+ return J.value.includes(I).toString();
1553
+ }, fe = (d, I) => d + ne.value.length * I, pt = (d, I, N) => T.value.length * d + fe(I, N), Ce = y(() => {
1554
+ var d;
1555
+ return ((d = J.value) == null ? void 0 : d.length) ?? 0;
1556
+ }), ht = y(() => t.bulkActions && Ce.value > 0), Lt = (d) => s(L.COLUMN_RESIZE, d), St = (d) => {
1557
+ s(L.UPDATE_SORT_BY, d), s(L.SORT, d);
1558
+ }, yt = (d) => {
1559
+ s(L.NAVIGATE, d), s(L.UPDATE_PAGINATION, {
1380
1560
  ...t.pagination,
1381
- page: r
1561
+ page: d
1382
1562
  });
1383
- }, vt = (r) => s(h.ITEMS_PAGE, r), mt = () => {
1384
- s(h.FILTER_SEARCH_CLEAR);
1385
- }, pt = (r) => {
1386
- s(h.UPDATE_FILTER_SEARCH_TERM, r), s(h.FILTER_SEARCH_INPUT, r);
1387
- }, bt = (r) => {
1388
- const O = {
1389
- ...oe.value(r)
1563
+ }, bt = (d) => s(L.ITEMS_PAGE, d), Et = () => {
1564
+ s(L.FILTER_SEARCH_CLEAR);
1565
+ }, Rt = (d) => {
1566
+ s(L.UPDATE_FILTER_SEARCH_TERM, d), s(L.FILTER_SEARCH_INPUT, d);
1567
+ }, j = E(), Tt = (d, I) => {
1568
+ const N = {
1569
+ ...de.value(d)
1390
1570
  };
1391
- return r.frozen && (O.focus = ce), O;
1392
- }, fe = y(() => E.value.some((r) => r.mandatory));
1393
- fe.value || Rt(
1571
+ return d.frozen && (N.keyup = (D) => ie(D), N.keydown = (D) => ie(D)), d.cellActions && (N.mouseenter = () => {
1572
+ j.value = { columnField: d.field, rowIndex: I };
1573
+ }, N.mouseleave = () => {
1574
+ j.value = null;
1575
+ }), N;
1576
+ }, At = (d, I) => {
1577
+ var N, D;
1578
+ return ((N = j.value) == null ? void 0 : N.columnField) === d.field && ((D = j.value) == null ? void 0 : D.rowIndex) === I;
1579
+ }, ve = y(() => T.value.some((d) => d.mandatory));
1580
+ ve.value || xe(
1394
1581
  "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
1395
1582
  );
1396
- const Ce = ve(At, () => null);
1397
- return Ce(t.tabTitle), e({ onEmptyStateClearResetButtonClick: ue }), { __sfc: !0, props: t, emit: s, slots: _, body: l, columnsRef: v, gridcellRefs: d, filtersRef: g, filterBarRef: m, verticalScrollPositionRef: p, allowColumnDragAndDrop: a, columns: E, data: o, lazyLoadType: c, selectable: f, selection: b, t: S, registerDatagridInDataGridTemplate: C, isDataGridTemplate: A, stickyTabs: i, tabsRef: u, computedColumnsTabIndex: L, columnDefs: I, onColumnWidthOverride: N, gridColumnWidthStyle: w, isMeasuringColumnWidths: $, stickyFiltersHeight: k, computedStickyFiltersTopPosition: X, columnHeadersHeight: H, computedColumnHeadersTopPosition: q, sortedColumns: ae, columnSets: se, isOnlyOneVisibleColumn: xe, onConfigSettingsUpdate: Fe, onConfigSettingsColumnsUpdate: Ge, onConfigSettingsColumnUpdate: Be, draggingColumns: U, draggingEventsForColumns: We, draggingEventsForRowCell: oe, onMoveColumnByOffset: ke, onAllRowSelect: Ve, onRowSelect: He, selectedItems: J, allItemsSelectedState: Ze, navigationInput: je, isLazyLoad: re, isInfiniteScroll: Ye, verticalScrollPosition: de, emitLazyLoadEvent: Xe, updateScrollPosition: qe, updateScrollPositionOnFrozenColumnsNavigation: ce, onEmptyStateClearResetButtonClick: ue, limitedEmptyStateProps: Je, conditionalGridClasses: Qe, computedColumnPanelAlignment: Ke, conditionalRowClasses: et, conditionalRowSetClasses: tt, conditionalRowCellClasses: st, conditionalPaginationClasses: nt, configSettingsButtonStyle: it, conditionalTitleAttribute: lt, getRowData: at, registerRowCellRef: ot, onRowClick: rt, ariaGridHeaderText: dt, getRowAriaSelectedValue: ct, getColIndex: _e, getCellindex: ut, itemsSelectedCounter: ge, showActionBar: _t, onColumnResized: gt, onSort: ft, onPaginationNavigate: Ct, onItemsPerPageChange: vt, onSearchTermCleared: mt, onSearchTermInput: pt, gridcellEvents: bt, hasMandatoryColumn: fe, setTitle: Ce, BentoActionBar: yt, BentoCheckbox: Ne, BentoPagination: Et, BentoLoadingIndicator: Pe, BentoTypography: le, BentoDataGridConfigSettings: Qs, DataGridColumns: $s, DataGridLazyLoad: ln, DATAGRID_SELECT_FIELD_NAME: V, BentoDatagridEvent: h, BentoEmptyState: Ot, BentoFilterBar: Q };
1583
+ const me = pe(Ut, () => null);
1584
+ return me(t.tabTitle), e({ onEmptyStateClearResetButtonClick: ge }), { __sfc: !0, props: t, emit: s, slots: i, body: l, columnsRef: _, gridcellRefs: u, filtersRef: m, filterBarRef: c, verticalScrollPositionRef: h, allowColumnDragAndDrop: o, columns: T, data: r, lazyLoadType: f, selectable: C, selection: p, t: S, registerDatagridInDataGridTemplate: g, isDataGridTemplate: A, stickyTabs: a, tabsRef: v, computedColumnsTabIndex: b, columnDefs: O, onColumnWidthOverride: P, gridColumnWidthStyle: w, isMeasuringColumnWidths: x, stickyFiltersHeight: W, computedStickyFiltersTopPosition: X, columnHeadersHeight: Z, computedColumnHeadersTopPosition: K, sortedColumns: ce, columnSets: ne, isOnlyOneVisibleColumn: Ve, onConfigSettingsUpdate: He, onConfigSettingsColumnsUpdate: Ze, onConfigSettingsColumnUpdate: je, draggingColumns: U, draggingEventsForColumns: Ye, draggingEventsForRowCell: de, onMoveColumnByOffset: qe, onAllRowSelect: Xe, onRowSelect: Ke, selectedItems: J, allItemsSelectedState: Je, navigationInput: Qe, isLazyLoad: ue, isInfiniteScroll: et, verticalScrollPosition: _e, emitLazyLoadEvent: tt, updateScrollPosition: st, updateScrollPositionOnFrozenColumnsNavigation: ie, onEmptyStateClearResetButtonClick: ge, limitedEmptyStateProps: nt, conditionalGridClasses: it, computedColumnPanelAlignment: lt, conditionalRowClasses: at, conditionalRowSetClasses: ot, conditionalRowCellClasses: rt, conditionalPaginationClasses: ct, configSettingsButtonStyle: dt, conditionalTitleAttribute: ut, getRowData: _t, registerRowCellRef: gt, onRowClick: ft, selectableAcrossPagesComputed: Ct, ariaGridHeaderText: vt, getRowAriaSelectedValue: mt, getColIndex: fe, getCellindex: pt, itemsSelectedCounter: Ce, showActionBar: ht, onColumnResized: Lt, onSort: St, onPaginationNavigate: yt, onItemsPerPageChange: bt, onSearchTermCleared: Et, onSearchTermInput: Rt, gridcellMouseOverCell: j, gridcellEvents: Tt, shouldShowGridCellActions: At, hasMandatoryColumn: ve, setTitle: me, BentoActionBar: Pt, BentoCheckbox: Me, BentoPagination: Nt, BentoLoadingIndicator: Ue, BentoTypography: oe, BentoDataGridConfigSettings: ln, DataGridCellActions: In, DataGridColumns: Bs, DataGridLazyLoad: un, DATAGRID_SELECT_FIELD_NAME: V, BentoDatagridEvent: L, BentoEmptyState: Mt, BentoFilterBar: Q };
1398
1585
  }
1399
1586
  });
1400
- var cn = function() {
1401
- var _;
1587
+ var Nn = function() {
1588
+ var i;
1402
1589
  var e = this, s = e._self._c, t = e._self._setupProxy;
1403
- return s("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? s("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? s(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : e._e()], 1) : e._e(), e.$slots.header ? s("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), s("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [e.columnPanel ? s(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", style: t.configSettingsButtonStyle, attrs: { columns: t.columns, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), s("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [s("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: l, id: v, isFrozenColumns: d }, g) {
1404
- return [l != null && l.length ? s(t.DataGridColumns, e._g({ key: `data-grid-columns-${v}`, attrs: { columns: l, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": d, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-first-column-panel-right-aligned": g === t.computedColumnPanelAlignment, "is-only-one-visible-column": t.isOnlyOneVisibleColumn }, on: { "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(m, p) {
1405
- return { key: p, fn: function(a) {
1406
- return [e._t(p, null, null, a)];
1590
+ return s("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? s("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? s(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : e._e()], 1) : e._e(), e.$slots.header ? s("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), s("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [e.columnPanel ? s(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", style: t.configSettingsButtonStyle, attrs: { columns: t.columns, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), s("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [s("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: l, id: _, isFrozenColumns: u }, m) {
1591
+ return [l != null && l.length ? s(t.DataGridColumns, e._g({ key: `data-grid-columns-${_}`, attrs: { columns: l, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": u, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-first-column-panel-right-aligned": m === t.computedColumnPanelAlignment, "is-only-one-visible-column": t.isOnlyOneVisibleColumn, "selectable-across-pages": t.selectableAcrossPagesComputed }, on: { "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, "select-all-across-pages": function(c) {
1592
+ return t.emit(t.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
1593
+ }, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(c, h) {
1594
+ return { key: h, fn: function(o) {
1595
+ return [e._t(h, null, null, o)];
1407
1596
  } };
1408
1597
  })], null, !0) }, t.draggingEventsForColumns)) : e._e()];
1409
- })], 2)])], 1), s("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: t.updateScrollPosition } }, [e.loading && !t.isLazyLoad ? s("div", { staticClass: "b-data-grid__loading" }, [s(t.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), s(t.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(t.t("gettingYourData")))])], 1) : ((_ = t.data) == null ? void 0 : _.length) === 0 && e.emptyState ? s("div", { staticClass: "b-data-grid__empty-state" }, [s(t.BentoEmptyState, e._b({}, "bento-empty-state", t.limitedEmptyStateProps, !1))], 1) : s("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: t.navigationInput } }, e._l(t.data, function(l, v) {
1410
- return s("div", { key: v, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(l), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": v + 1, "aria-selected": t.getRowAriaSelectedValue(l) }, on: { click: function(d) {
1411
- return t.onRowClick(l, d);
1412
- } } }, [e._l(t.columnSets, function({ columnSet: d, id: g, isFrozenColumns: m }, p) {
1413
- return [d != null && d.length ? s("div", { key: `data-grid-rows-${g}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(m), attrs: { "data-testid": `data-grid-${g}-rows` } }, e._l(d, function(a, E) {
1414
- return s("div", e._g({ key: `cell-${a.field}`, ref: (o) => t.registerRowCellRef(o, a.field, v), refInFor: !0, staticClass: "b-data-grid__cell", class: t.conditionalRowCellClasses(a), style: {
1415
- width: a.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${a.width}px`
1416
- }, attrs: { "data-testid": `cell-${a.field}`, "data-cellindex": t.getCellindex(v, E, p), role: "gridcell", tabindex: t.getCellindex(v, E, p) === 0 ? "0" : "-1", "aria-colindex": t.getColIndex(E, p) + 1 } }, t.gridcellEvents(a)), [a.field !== t.DATAGRID_SELECT_FIELD_NAME ? [s(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${a.field}`, function() {
1417
- return [s("span", { attrs: { title: t.conditionalTitleAttribute(a, l[a.field]) } }, [e._v(e._s(t.getRowData(l[a.field])))])];
1418
- }, { item: l })], 2)] : [s(t.BentoCheckbox, { attrs: { "aria-label": t.t("selectRow"), "model-value": t.selectedItems, disabled: e.isDataItemDisabled(l), value: e.getDataItemId(l) }, on: { "update:model-value": t.onRowSelect } })]], 2);
1598
+ })], 2)])], 1), s("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: t.updateScrollPosition } }, [e.loading && !t.isLazyLoad ? s("div", { staticClass: "b-data-grid__loading" }, [s(t.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), s(t.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(t.t("gettingYourData")))])], 1) : ((i = t.data) == null ? void 0 : i.length) === 0 && e.emptyState ? s("div", { staticClass: "b-data-grid__empty-state" }, [s(t.BentoEmptyState, e._b({}, "bento-empty-state", t.limitedEmptyStateProps, !1))], 1) : s("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: t.navigationInput } }, e._l(t.data, function(l, _) {
1599
+ return s("div", { key: _, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(l), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": _ + 1, "aria-selected": t.getRowAriaSelectedValue(l) }, on: { click: function(u) {
1600
+ return t.onRowClick(l, u);
1601
+ } } }, [e._l(t.columnSets, function({ columnSet: u, id: m, isFrozenColumns: c }, h) {
1602
+ return [u != null && u.length ? s("div", { key: `data-grid-rows-${m}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(c), attrs: { "data-testid": `data-grid-${m}-rows` } }, e._l(u, function(o, T) {
1603
+ var r;
1604
+ return s("div", e._g({ key: `cell-${o.field}`, ref: (f) => t.registerRowCellRef(f, o.field, _), refInFor: !0, staticClass: "b-data-grid__cell", class: t.conditionalRowCellClasses(o), style: {
1605
+ width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px`
1606
+ }, attrs: { "data-testid": `cell-${o.field}`, "data-cellindex": t.getCellindex(_, T, h), role: "gridcell", tabindex: t.getCellindex(_, T, h) === 0 ? "0" : "-1", "aria-colindex": t.getColIndex(T, h) + 1 } }, t.gridcellEvents(o, _)), [o.field !== t.DATAGRID_SELECT_FIELD_NAME ? [s(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${o.field}`, function() {
1607
+ return [s("span", { attrs: { title: t.conditionalTitleAttribute(o, l[o.field]) } }, [e._v(e._s(t.getRowData(l[o.field])))])];
1608
+ }, { item: l })], 2), ((r = o.cellActions) == null ? void 0 : r.length) > 0 ? s("div", { staticClass: "b-data-grid__cell-actions" }, [t.shouldShowGridCellActions(o, _) ? s(t.DataGridCellActions, { attrs: { "cell-actions": o.cellActions, "column-key": o.field, "row-data-item": l } }) : e._e()], 1) : e._e()] : [s(t.BentoCheckbox, { staticClass: "b-data-grid__select-cell", attrs: { "aria-label": t.t("selectRow"), "model-value": t.selectedItems, disabled: e.isDataItemDisabled(l), value: e.getDataItemId(l) }, on: { "update:model-value": t.onRowSelect } })]], 2);
1419
1609
  }), 0) : e._e()];
1420
1610
  })], 2);
1421
1611
  }), 0)]), t.isLazyLoad ? s(t.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": t.isInfiniteScroll }, on: { "update:show-more": t.emitLazyLoadEvent } }) : e._e(), e.pagination && !t.isLazyLoad ? s("div", { staticClass: "b-data-grid__pagination", class: t.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [s(t.BentoPagination, e._b({ attrs: { "aria-label": `${t.ariaGridHeaderText} navigation` }, on: { navigate: t.onPaginationNavigate, "items-page": t.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1))], 1) : e._e(), e.$slots.footer ? s("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e(), t.showActionBar ? s(t.BentoActionBar, { attrs: { actions: e.bulkActions, "item-counter": t.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(l) {
1422
1612
  return t.onAllRowSelect(!1);
1423
1613
  } } }) : e._e()], 1);
1424
- }, un = [], _n = /* @__PURE__ */ D(
1425
- dn,
1426
- cn,
1427
- un,
1614
+ }, Dn = [], $n = /* @__PURE__ */ $(
1615
+ Pn,
1616
+ Nn,
1617
+ Dn,
1428
1618
  !1,
1429
1619
  null,
1430
- "e4c4d1b1",
1620
+ "78484540",
1431
1621
  null,
1432
1622
  null
1433
1623
  );
1434
- const Wn = _n.exports;
1624
+ const ui = $n.exports;
1435
1625
  export {
1436
- K as BentoColumnOverflow,
1437
- Wn as BentoDataGrid,
1438
- te as BentoDatagridAriaSortValue,
1439
- h as BentoDatagridEvent,
1440
- W as BentoDatagridSortDirection,
1441
- ee as BentoDatagridStyleState
1626
+ ee as BentoColumnOverflow,
1627
+ ui as BentoDataGrid,
1628
+ se as BentoDatagridAriaSortValue,
1629
+ L as BentoDatagridEvent,
1630
+ k as BentoDatagridSortDirection,
1631
+ te as BentoDatagridStyleState
1442
1632
  };
1443
1633
  //# sourceMappingURL=data-grid.js.map