@adyen/bento-vue2 1.54.2 → 1.55.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 (229) hide show
  1. package/dist/@types/index.d.ts +20 -2
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/button.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/copy.css +1 -1
  10. package/dist/assets/dashboard-section.css +1 -1
  11. package/dist/assets/data-grid-template.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-range-picker.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown-default-textbox.css +1 -1
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/focus-trap.css +1 -1
  20. package/dist/assets/input-field-phone-number.css +1 -1
  21. package/dist/assets/inspector.css +1 -1
  22. package/dist/assets/link.css +1 -1
  23. package/dist/assets/menu.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/popover.css +1 -1
  26. package/dist/assets/popper-container.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/tabs.css +1 -1
  29. package/dist/assets/teleport.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +3 -3
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chunks/{action-bar.CH1Mswou.js → action-bar.DQ1JoKzt.js} +5 -5
  35. package/dist/chunks/{action-bar.CH1Mswou.js.map → action-bar.DQ1JoKzt.js.map} +1 -1
  36. package/dist/chunks/{alert.BkMKX9wD.js → alert.C5Y5RBx9.js} +2 -2
  37. package/dist/chunks/{alert.BkMKX9wD.js.map → alert.C5Y5RBx9.js.map} +1 -1
  38. package/dist/chunks/{base-modal.B4TNcOz9.js → base-modal.CEHMcrwC.js} +15 -15
  39. package/dist/chunks/{base-modal.B4TNcOz9.js.map → base-modal.CEHMcrwC.js.map} +1 -1
  40. package/dist/chunks/{button-actions-with-menu.mqNecwDb.js → button-actions-with-menu.BehknT6F.js} +4 -4
  41. package/dist/chunks/{button-actions-with-menu.mqNecwDb.js.map → button-actions-with-menu.BehknT6F.js.map} +1 -1
  42. package/dist/chunks/{button-actions.XlUhz42n.js → button-actions.C5Dp4DeK.js} +2 -2
  43. package/dist/chunks/{button-actions.XlUhz42n.js.map → button-actions.C5Dp4DeK.js.map} +1 -1
  44. package/dist/chunks/{button.D-3uUhuG.js → button.DUApwEu1.js} +2 -2
  45. package/dist/chunks/button.DUApwEu1.js.map +1 -0
  46. package/dist/chunks/{calendar.D4dMXwc0.js → calendar.C9bRwE-l.js} +2 -2
  47. package/dist/chunks/calendar.C9bRwE-l.js.map +1 -0
  48. package/dist/chunks/{card.BT04hjvV.js → card.Ba5Jqezr.js} +2 -2
  49. package/dist/chunks/{card.BT04hjvV.js.map → card.Ba5Jqezr.js.map} +1 -1
  50. package/dist/chunks/{checkbox-group.DZF4UIym.js → checkbox-group.COqNevz5.js} +4 -4
  51. package/dist/chunks/{checkbox-group.DZF4UIym.js.map → checkbox-group.COqNevz5.js.map} +1 -1
  52. package/dist/chunks/{checkbox.DloQJI-K.js → checkbox.LFeWM5p4.js} +3 -3
  53. package/dist/chunks/{checkbox.DloQJI-K.js.map → checkbox.LFeWM5p4.js.map} +1 -1
  54. package/dist/chunks/{code-snippet.eHqicJXk.js → code-snippet.Q1HB3T_K.js} +6 -6
  55. package/dist/chunks/{code-snippet.eHqicJXk.js.map → code-snippet.Q1HB3T_K.js.map} +1 -1
  56. package/dist/chunks/{controls-group.C-HKhH1m.js → controls-group.B-JUz-ir.js} +2 -2
  57. package/dist/chunks/{controls-group.C-HKhH1m.js.map → controls-group.B-JUz-ir.js.map} +1 -1
  58. package/dist/chunks/{copy.k18tXmP1.js → copy.C7gFAgeL.js} +9 -9
  59. package/dist/chunks/{copy.k18tXmP1.js.map → copy.C7gFAgeL.js.map} +1 -1
  60. package/dist/chunks/{dashboard-section.DlIwNKkx.js → dashboard-section.Cn7UfGjF.js} +47 -50
  61. package/dist/chunks/dashboard-section.Cn7UfGjF.js.map +1 -0
  62. package/dist/chunks/{dashed-underline.BbQIbZfu.js → dashed-underline.0K0Xbu6k.js} +3 -3
  63. package/dist/chunks/{dashed-underline.BbQIbZfu.js.map → dashed-underline.0K0Xbu6k.js.map} +1 -1
  64. package/dist/chunks/data-grid-template.Bm08fIsa.js +69 -0
  65. package/dist/chunks/data-grid-template.Bm08fIsa.js.map +1 -0
  66. package/dist/chunks/{data-grid.BTxmzkic.js → data-grid.C8S9cY5p.js} +1181 -1095
  67. package/dist/chunks/data-grid.C8S9cY5p.js.map +1 -0
  68. package/dist/chunks/{date-picker.Dy0k-7_1.js → date-picker.DPSJvBlj.js} +5 -5
  69. package/dist/chunks/{date-picker.Dy0k-7_1.js.map → date-picker.DPSJvBlj.js.map} +1 -1
  70. package/dist/chunks/{date-range-picker.nTv7S5oB.js → date-range-picker.B03wCOPP.js} +27 -24
  71. package/dist/chunks/date-range-picker.B03wCOPP.js.map +1 -0
  72. package/dist/chunks/{dialog-page.BfF5_hmG.js → dialog-page.C8iNK4bf.js} +2 -2
  73. package/dist/chunks/{dialog-page.BfF5_hmG.js.map → dialog-page.C8iNK4bf.js.map} +1 -1
  74. package/dist/chunks/{dropdown-default-textbox.CDTdHfTv.js → dropdown-default-textbox.AUsF-RIc.js} +18 -18
  75. package/dist/chunks/{dropdown-default-textbox.CDTdHfTv.js.map → dropdown-default-textbox.AUsF-RIc.js.map} +1 -1
  76. package/dist/chunks/{dropdown-tag.B15dzpe3.js → dropdown-tag.DUlkje2L.js} +3 -3
  77. package/dist/chunks/{dropdown-tag.B15dzpe3.js.map → dropdown-tag.DUlkje2L.js.map} +1 -1
  78. package/dist/chunks/{dropdown.CFBycvtL.js → dropdown.DihPVajz.js} +31 -31
  79. package/dist/chunks/{dropdown.CFBycvtL.js.map → dropdown.DihPVajz.js.map} +1 -1
  80. package/dist/chunks/{empty-state.JbgxSrnv.js → empty-state.aBO3bh4N.js} +2 -2
  81. package/dist/chunks/{empty-state.JbgxSrnv.js.map → empty-state.aBO3bh4N.js.map} +1 -1
  82. package/dist/chunks/{error-message.qHRfH-8Y.js → error-message.7bsic_sK.js} +2 -2
  83. package/dist/chunks/{error-message.qHRfH-8Y.js.map → error-message.7bsic_sK.js.map} +1 -1
  84. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  85. package/dist/chunks/{file-uploader.CKcv6q6S.js → file-uploader.P_s39Esv.js} +5 -5
  86. package/dist/chunks/{file-uploader.CKcv6q6S.js.map → file-uploader.P_s39Esv.js.map} +1 -1
  87. package/dist/chunks/{filter-bar.Cu4I3kJB.js → filter-bar.Djv7J4G1.js} +31 -28
  88. package/dist/chunks/filter-bar.Djv7J4G1.js.map +1 -0
  89. package/dist/chunks/{fixed-scroller.BwvXYzE6.js → fixed-scroller.C7Eug22g.js} +2 -2
  90. package/dist/chunks/{fixed-scroller.BwvXYzE6.js.map → fixed-scroller.C7Eug22g.js.map} +1 -1
  91. package/dist/chunks/{focus-trap.V3Q8H_5C.js → focus-trap.DEHn1dxN.js} +6 -6
  92. package/dist/chunks/{focus-trap.V3Q8H_5C.js.map → focus-trap.DEHn1dxN.js.map} +1 -1
  93. package/dist/chunks/{footer-actions.DYi_MR9I.js → footer-actions.CNNRHYLb.js} +3 -3
  94. package/dist/chunks/{footer-actions.DYi_MR9I.js.map → footer-actions.CNNRHYLb.js.map} +1 -1
  95. package/dist/chunks/{form-layout-title.DK1-01RH.js → form-layout-title.C9P21KnX.js} +2 -2
  96. package/dist/chunks/{form-layout-title.DK1-01RH.js.map → form-layout-title.C9P21KnX.js.map} +1 -1
  97. package/dist/chunks/{header-with-views.ugNWdbC8.js → header-with-views.siHZ-MsA.js} +13 -13
  98. package/dist/chunks/{header-with-views.ugNWdbC8.js.map → header-with-views.siHZ-MsA.js.map} +1 -1
  99. package/dist/chunks/{header.DWx6s2nt.js → header.BXGTPqZK.js} +4 -4
  100. package/dist/chunks/{header.DWx6s2nt.js.map → header.BXGTPqZK.js.map} +1 -1
  101. package/dist/chunks/i18n.BQkEbtPM.js.map +1 -1
  102. package/dist/chunks/{info-icon-with-popover.B4wYDzGz.js → info-icon-with-popover.CdZ1_8hG.js} +2 -2
  103. package/dist/chunks/{info-icon-with-popover.B4wYDzGz.js.map → info-icon-with-popover.CdZ1_8hG.js.map} +1 -1
  104. package/dist/chunks/{info-icon.J62KXp9I.js → info-icon.Dn0FHy-U.js} +3 -3
  105. package/dist/chunks/{info-icon.J62KXp9I.js.map → info-icon.Dn0FHy-U.js.map} +1 -1
  106. package/dist/chunks/{input-field-password.DCcG3ju1.js → input-field-password.Dz_8fr0j.js} +6 -6
  107. package/dist/chunks/{input-field-password.DCcG3ju1.js.map → input-field-password.Dz_8fr0j.js.map} +1 -1
  108. package/dist/chunks/{input-field-phone-number.BxP8LyD-.js → input-field-phone-number.CPlRrAGe.js} +8 -12
  109. package/dist/chunks/{input-field-phone-number.BxP8LyD-.js.map → input-field-phone-number.CPlRrAGe.js.map} +1 -1
  110. package/dist/chunks/{input-field.BUj99rZv.js → input-field.DcOnDLTc.js} +3 -3
  111. package/dist/chunks/{input-field.BUj99rZv.js.map → input-field.DcOnDLTc.js.map} +1 -1
  112. package/dist/chunks/{inspector.types.Cmq6sdCz.js → inspector.types.D1m792RZ.js} +3 -3
  113. package/dist/chunks/{inspector.types.Cmq6sdCz.js.map → inspector.types.D1m792RZ.js.map} +1 -1
  114. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
  115. package/dist/chunks/{listbox-option-tag.BHI-8rRX.js → listbox-option-tag.BSQ8bM-O.js} +2 -2
  116. package/dist/chunks/{listbox-option-tag.BHI-8rRX.js.map → listbox-option-tag.BSQ8bM-O.js.map} +1 -1
  117. package/dist/chunks/{menu.BoxhffPs.js → menu.DFatjXpw.js} +5 -6
  118. package/dist/chunks/menu.DFatjXpw.js.map +1 -0
  119. package/dist/chunks/{modal-fullscreen.E7e13pW9.js → modal-fullscreen._NBj0IXu.js} +5 -5
  120. package/dist/chunks/{modal-fullscreen.E7e13pW9.js.map → modal-fullscreen._NBj0IXu.js.map} +1 -1
  121. package/dist/chunks/{modal.n7b-ITaf.js → modal.CpZzd8fG.js} +5 -5
  122. package/dist/chunks/{modal.n7b-ITaf.js.map → modal.CpZzd8fG.js.map} +1 -1
  123. package/dist/chunks/{pagination.eAo5wz5D.js → pagination.PQCpgVVF.js} +3 -3
  124. package/dist/chunks/{pagination.eAo5wz5D.js.map → pagination.PQCpgVVF.js.map} +1 -1
  125. package/dist/chunks/{popover.C4PNSrnW.js → popover.BVLuUYSi.js} +4 -4
  126. package/dist/chunks/{popover.C4PNSrnW.js.map → popover.BVLuUYSi.js.map} +1 -1
  127. package/dist/chunks/{popper-container.DWY19wS0.js → popper-container.DieshXa8.js} +3 -3
  128. package/dist/chunks/{popper-container.DWY19wS0.js.map → popper-container.DieshXa8.js.map} +1 -1
  129. package/dist/chunks/{promo-banner.DgCKKp6o.js → promo-banner.C4jiwSeA.js} +2 -2
  130. package/dist/chunks/{promo-banner.DgCKKp6o.js.map → promo-banner.C4jiwSeA.js.map} +1 -1
  131. package/dist/chunks/{radio-group.WbbrQhEO.js → radio-group.BuKC_n23.js} +4 -4
  132. package/dist/chunks/{radio-group.WbbrQhEO.js.map → radio-group.BuKC_n23.js.map} +1 -1
  133. package/dist/chunks/{search-bar.C-DwowF7.js → search-bar.BPnYyZ9S.js} +3 -3
  134. package/dist/chunks/{search-bar.C-DwowF7.js.map → search-bar.BPnYyZ9S.js.map} +1 -1
  135. package/dist/chunks/{secondary-nav.CTeYViOR.js → secondary-nav.CDykzeRU.js} +2 -2
  136. package/dist/chunks/{secondary-nav.CTeYViOR.js.map → secondary-nav.CDykzeRU.js.map} +1 -1
  137. package/dist/chunks/{segmented-control.DGNMY2BP.js → segmented-control.CCgCeLDQ.js} +2 -2
  138. package/dist/chunks/{segmented-control.DGNMY2BP.js.map → segmented-control.CCgCeLDQ.js.map} +1 -1
  139. package/dist/chunks/{selection-card-group.BmKUEuny.js → selection-card-group.Dj9wWfmY.js} +3 -3
  140. package/dist/chunks/{selection-card-group.BmKUEuny.js.map → selection-card-group.Dj9wWfmY.js.map} +1 -1
  141. package/dist/chunks/{sidepanel.Bnw4accy.js → sidepanel.DcBdDgec.js} +10 -10
  142. package/dist/chunks/{sidepanel.Bnw4accy.js.map → sidepanel.DcBdDgec.js.map} +1 -1
  143. package/dist/chunks/{structured-list-item.Co5P9bFC.js → structured-list-item.w0GVxwQf.js} +5 -5
  144. package/dist/chunks/{structured-list-item.Co5P9bFC.js.map → structured-list-item.w0GVxwQf.js.map} +1 -1
  145. package/dist/chunks/{summary-grid.types.egM7irBt.js → summary-grid.types.DoD7Ls0O.js} +5 -5
  146. package/dist/chunks/{summary-grid.types.egM7irBt.js.map → summary-grid.types.DoD7Ls0O.js.map} +1 -1
  147. package/dist/chunks/tabs.T3A3YNdF.js +205 -0
  148. package/dist/chunks/tabs.T3A3YNdF.js.map +1 -0
  149. package/dist/chunks/{tag.CyspYb1E.js → tag.C7ATWnRW.js} +2 -2
  150. package/dist/chunks/{tag.CyspYb1E.js.map → tag.C7ATWnRW.js.map} +1 -1
  151. package/dist/chunks/{teleport.BHfrns33.js → teleport.5oodkxuB.js} +6 -6
  152. package/dist/chunks/teleport.5oodkxuB.js.map +1 -0
  153. package/dist/chunks/{textarea.CC8esIW6.js → textarea.CrPdkIGL.js} +3 -3
  154. package/dist/chunks/{textarea.CC8esIW6.js.map → textarea.CrPdkIGL.js.map} +1 -1
  155. package/dist/chunks/{timeline-item.Byorbxmc.js → timeline-item.B6XTUyr8.js} +6 -6
  156. package/dist/chunks/{timeline-item.Byorbxmc.js.map → timeline-item.B6XTUyr8.js.map} +1 -1
  157. package/dist/chunks/{toast.DqSWycRO.js → toast.CjJW9t4G.js} +2 -2
  158. package/dist/chunks/{toast.DqSWycRO.js.map → toast.CjJW9t4G.js.map} +1 -1
  159. package/dist/chunks/{toggle-button.DgSFugBP.js → toggle-button.Dj2uoRyw.js} +2 -2
  160. package/dist/chunks/{toggle-button.DgSFugBP.js.map → toggle-button.Dj2uoRyw.js.map} +1 -1
  161. package/dist/chunks/{tooltip.DOvci5lX.js → tooltip.CfER_5In.js} +2 -2
  162. package/dist/chunks/{tooltip.DOvci5lX.js.map → tooltip.CfER_5In.js.map} +1 -1
  163. package/dist/chunks/{tutorial.QwHbq1FO.js → tutorial.CTzjDY6m.js} +5 -5
  164. package/dist/chunks/{tutorial.QwHbq1FO.js.map → tutorial.CTzjDY6m.js.map} +1 -1
  165. package/dist/chunks/{use-cached-selected-values.DHpjo2tV.js → use-cached-selected-values.D6lOsd0o.js} +431 -422
  166. package/dist/chunks/use-cached-selected-values.D6lOsd0o.js.map +1 -0
  167. package/dist/code-snippet.js +1 -1
  168. package/dist/dashboard-template.js +1 -1
  169. package/dist/dashed-underline.js +1 -1
  170. package/dist/data-grid-template.js +1 -1
  171. package/dist/data-grid.js +1 -1
  172. package/dist/date-picker.js +2 -2
  173. package/dist/date-range-picker.js +2 -2
  174. package/dist/dropdown.js +4 -4
  175. package/dist/empty-state.js +1 -1
  176. package/dist/file-uploader.js +1 -1
  177. package/dist/filter-bar.js +1 -1
  178. package/dist/focus-trap.js +1 -1
  179. package/dist/form-layout.js +1 -1
  180. package/dist/header-with-views.js +1 -1
  181. package/dist/header.js +1 -1
  182. package/dist/index.js +54 -54
  183. package/dist/info-icon.js +1 -1
  184. package/dist/input-field-password.js +1 -1
  185. package/dist/input-field-phone-number.js +1 -1
  186. package/dist/input-field.js +1 -1
  187. package/dist/inspector.js +1 -1
  188. package/dist/internal.js +13 -13
  189. package/dist/menu.js +1 -1
  190. package/dist/modal-fullscreen.js +1 -1
  191. package/dist/modal.js +2 -2
  192. package/dist/pagination.js +1 -1
  193. package/dist/popover.js +1 -1
  194. package/dist/popper-container.js +1 -1
  195. package/dist/promo-banner.js +1 -1
  196. package/dist/radio-group.js +1 -1
  197. package/dist/search-bar.js +2 -2
  198. package/dist/secondary-nav.js +1 -1
  199. package/dist/segmented-control.js +1 -1
  200. package/dist/selection-card.js +1 -1
  201. package/dist/sidepanel.js +1 -1
  202. package/dist/structured-list.js +1 -1
  203. package/dist/styles/bento-dark.css +8 -4
  204. package/dist/styles/bento-light.css +8 -4
  205. package/dist/styles/bento.css +8 -4
  206. package/dist/styles/legacy.css +8 -5
  207. package/dist/styles/styleguide.css +8 -4
  208. package/dist/summary-grid.js +1 -1
  209. package/dist/tabs.js +1 -1
  210. package/dist/tag.js +1 -1
  211. package/dist/textarea.js +1 -1
  212. package/dist/timeline.js +1 -1
  213. package/dist/toast.js +1 -1
  214. package/dist/tutorial.js +1 -1
  215. package/dist/web-types.json +85 -5
  216. package/package.json +18 -6
  217. package/dist/chunks/button.D-3uUhuG.js.map +0 -1
  218. package/dist/chunks/calendar.D4dMXwc0.js.map +0 -1
  219. package/dist/chunks/dashboard-section.DlIwNKkx.js.map +0 -1
  220. package/dist/chunks/data-grid-template.BJTWe6Ty.js +0 -69
  221. package/dist/chunks/data-grid-template.BJTWe6Ty.js.map +0 -1
  222. package/dist/chunks/data-grid.BTxmzkic.js.map +0 -1
  223. package/dist/chunks/date-range-picker.nTv7S5oB.js.map +0 -1
  224. package/dist/chunks/filter-bar.Cu4I3kJB.js.map +0 -1
  225. package/dist/chunks/menu.BoxhffPs.js.map +0 -1
  226. package/dist/chunks/tabs.C8CgvNt4.js +0 -214
  227. package/dist/chunks/tabs.C8CgvNt4.js.map +0 -1
  228. package/dist/chunks/teleport.BHfrns33.js.map +0 -1
  229. package/dist/chunks/use-cached-selected-values.DHpjo2tV.js.map +0 -1
@@ -1,623 +1,625 @@
1
- import { ref as b, reactive as be, toRefs as Oe, computed as L, watchEffect as on, watch as Y, onMounted as Ae, nextTick as K, onUnmounted as st, onBeforeUpdate as ln, defineComponent as Q, toRef as we, useSlots as Te, provide as ot, inject as Ee } from "vue";
2
- import { C as an } from "./checkmark-circle-fill.DZBl7CeY.js";
3
- import { W as rn } from "./warning-filled.Cd0kVWwa.js";
1
+ import { ref as y, reactive as be, toRefs as Ae, computed as m, watchEffect as cn, watch as ee, onMounted as Oe, nextTick as ne, onUnmounted as lt, onBeforeUpdate as un, defineComponent as oe, toRef as Le, useSlots as Ne, provide as at, inject as Ee } from "vue";
2
+ import { C as fn } from "./checkmark-circle-fill.DZBl7CeY.js";
3
+ import { W as gn } from "./warning-filled.Cd0kVWwa.js";
4
4
  /* empty css */
5
- import { n as V } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { C as lt } from "./cross.CJ5EEL2c.js";
7
- import { N as Ge } from "./checkbox-input.CMhyJDdo.js";
8
- import { d as dn } from "./popper-container.DWY19wS0.js";
9
- import { K as te, B as cn } from "./tooltip.DOvci5lX.js";
10
- import { B as un } from "./action-bar.CH1Mswou.js";
11
- import { B as fn } from "./pagination.eAo5wz5D.js";
12
- import { B as Ne } from "./loading-indicator.z8COalOc.js";
13
- import { B as he, p as at } from "./typography.J1v_SPG3.js";
5
+ import { n as Y } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { C as it } from "./cross.CJ5EEL2c.js";
7
+ import { N as He } from "./checkbox-input.CMhyJDdo.js";
8
+ import { d as _n } from "./popper-container.DieshXa8.js";
9
+ import { K as ae, B as vn } from "./tooltip.CfER_5In.js";
10
+ import { B as Cn } from "./action-bar.DQ1JoKzt.js";
11
+ import { B as hn } from "./pagination.PQCpgVVF.js";
12
+ import { B as Te } from "./loading-indicator.z8COalOc.js";
13
+ import { B as he, p as rt } from "./typography.J1v_SPG3.js";
14
14
  import { u as Ie } from "./use-has-slot.C9lQZ6nz.js";
15
- import { u as gn } from "./aria-label.CaUURpnB.js";
16
- import { g as _n } from "./get-slot-text.BQS5Olxm.js";
17
- import { u as ie } from "./i18n.BQkEbtPM.js";
18
- import { B as Le } from "./filter-bar.Cu4I3kJB.js";
19
- import { B as vn } from "./empty-state.JbgxSrnv.js";
20
- import { E as Cn } from "./tabs.keys.Bc2pSKRw.js";
21
- import { D as hn } from "./data-grid-template.keys.2_AkxuNT.js";
15
+ import { u as mn } from "./aria-label.CaUURpnB.js";
16
+ import { g as pn } from "./get-slot-text.BQS5Olxm.js";
17
+ import { u as ue } from "./i18n.BQkEbtPM.js";
18
+ import { B as Se } from "./filter-bar.Djv7J4G1.js";
19
+ import { B as wn } from "./empty-state.aBO3bh4N.js";
20
+ import { E as Sn } from "./tabs.keys.Bc2pSKRw.js";
21
+ import { D as Ln } from "./data-grid-template.keys.2_AkxuNT.js";
22
22
  import { o as De } from "./resize.Bqks3WUm.js";
23
23
  import "./index.Cl4_42j5.js";
24
- import { u as mn } from "./use-expandable-content-height.GkjjbmPy.js";
25
- import { g as ye } from "./generate-uid.NJ8tVoha.js";
26
- import { B as it } from "./checkbox.DloQJI-K.js";
27
- import { B as rt } from "./button.D-3uUhuG.js";
28
- import { B as dt, O as pn, D as Sn } from "./menu.BoxhffPs.js";
29
- import { E as Ln } from "./link.BH3eB_7E.js";
30
- import { C as wn } from "./copy.k18tXmP1.js";
31
- import { C as En, a as yn } from "./chevron-up.CSVyoaTy.js";
32
- import { B as Fe } from "./toggle-button.DgSFugBP.js";
33
- import { e as Rn, d as bn } from "./button-actions.XlUhz42n.js";
34
- import { B as On } from "./info-icon.J62KXp9I.js";
35
- import { a as We, B as An } from "./popover.C4PNSrnW.js";
36
- import { A as Tn } from "./dialog-page.BfF5_hmG.js";
37
- import { H as Nn, S as In } from "./show.e4LEpZKG.js";
38
- import { l as He } from "./events.CMzGybJJ.js";
39
- import { B as ct } from "./toggle.Q52IIKfi.js";
40
- import { B as Dn } from "./search-bar.C-DwowF7.js";
41
- import { u as Fn } from "./dropdown.CFBycvtL.js";
42
- import { S as xn } from "./search.DLtglc02.js";
43
- import { B as Mn } from "./directive.Cbdox5VL.js";
24
+ import { u as En } from "./use-expandable-content-height.GkjjbmPy.js";
25
+ import { g as Re } from "./generate-uid.NJ8tVoha.js";
26
+ import { B as dt } from "./button.DUApwEu1.js";
27
+ import { B as ct, O as Rn, D as yn } from "./menu.DFatjXpw.js";
28
+ import { E as bn } from "./link.BH3eB_7E.js";
29
+ import { C as An } from "./copy.C7gFAgeL.js";
30
+ import { B as ut } from "./checkbox.LFeWM5p4.js";
31
+ import { C as On, a as Nn } from "./chevron-up.CSVyoaTy.js";
32
+ import { B as xe } from "./toggle-button.Dj2uoRyw.js";
33
+ import { e as Tn, d as In } from "./button-actions.C5Dp4DeK.js";
34
+ import { B as Dn } from "./info-icon.Dn0FHy-U.js";
35
+ import { a as Ve, B as xn } from "./popover.BVLuUYSi.js";
36
+ import { A as Fn } from "./dialog-page.C8iNK4bf.js";
37
+ import { H as Mn, S as Bn } from "./show.e4LEpZKG.js";
38
+ import { l as Ze } from "./events.CMzGybJJ.js";
39
+ import { B as ft } from "./toggle.Q52IIKfi.js";
40
+ import { B as Pn } from "./search-bar.BPnYyZ9S.js";
41
+ import { u as $n } from "./dropdown.DihPVajz.js";
42
+ import { S as zn } from "./search.DLtglc02.js";
43
+ import { B as Un } from "./directive.Cbdox5VL.js";
44
44
  import "../assets/data-grid.css";
45
- var Re = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Re || {}), se = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(se || {}), ae = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ae || {}), A = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(A || {}), Ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ce || {}), k = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(k || {});
46
- const Bn = (s, t) => {
47
- const n = b(null), e = b(!1), o = b(void 0), a = s.value.reduce((h, p) => (h[p.field] = null, h), {}), i = be(a), C = Oe(i);
48
- let v = 0, f = "";
49
- const m = L(
50
- () => Object.fromEntries(s.value.map(({ field: h, width: p, minWidth: O }) => [h, { width: p, minWidth: O }]))
45
+ var ye = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(ye || {}), re = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(re || {}), ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ce || {}), b = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(b || {}), Ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ce || {}), H = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(H || {});
46
+ const kn = (s, t) => {
47
+ const n = y(null), e = y(!1), o = y(void 0), l = s.value.reduce((h, i) => (h[i.field] = null, h), {}), a = be(l), g = Ae(a);
48
+ let _ = 0, f = "";
49
+ const S = m(
50
+ () => Object.fromEntries(s.value.map(({ field: h, width: i, minWidth: L }) => [h, { width: i, minWidth: L }]))
51
51
  );
52
- on(() => o.value = m.value);
53
- let c = null, E = null;
54
- const l = (h) => {
55
- const p = h.clientX - v, O = f, y = o.value[O].width + p;
56
- o.value[O].width = y > m.value[O].minWidth ? y : m.value[O].minWidth, t(k.COLUMN_RESIZING, o.value), v = h.clientX;
57
- }, d = () => {
58
- e.value = !1, c == null || c(), E == null || E(), f && t(k.COLUMN_RESIZE, {
52
+ cn(() => o.value = S.value);
53
+ let c = null, p = null;
54
+ const r = (h) => {
55
+ const i = h.clientX - _, L = f, w = o.value[L].width + i;
56
+ o.value[L].width = w > S.value[L].minWidth ? w : S.value[L].minWidth, t(H.COLUMN_RESIZING, o.value), _ = h.clientX;
57
+ }, u = () => {
58
+ e.value = !1, c == null || c(), p == null || p(), f && t(H.COLUMN_RESIZE, {
59
59
  field: f,
60
60
  width: o.value[f].width
61
- }), c = null, E = null, f = "", v = null;
62
- }, u = (h, p, O) => {
63
- if (O.preventDefault(), h) {
64
- if (e.value = !0, O.buttons !== 1) {
65
- d();
61
+ }), c = null, p = null, f = "", _ = null;
62
+ }, C = (h, i, L) => {
63
+ if (L.preventDefault(), h) {
64
+ if (e.value = !0, L.buttons !== 1) {
65
+ u();
66
66
  return;
67
67
  }
68
- f = p, v = O.clientX, c = He(window, "mousemove", l), E = He(window, "mouseup", d);
68
+ f = i, _ = L.clientX, c = Ze(window, "mousemove", r), p = Ze(window, "mouseup", u);
69
69
  }
70
70
  };
71
- return Y(
71
+ return ee(
72
72
  () => e.value,
73
- (h, p) => {
74
- !h && p && (t(k.COLUMN_HOVER, n.value), n.value = null);
73
+ (h, i) => {
74
+ !h && i && (t(H.COLUMN_HOVER, n.value), n.value = null);
75
75
  }
76
76
  ), {
77
77
  resizeData: o,
78
- allColumnRefs: C,
79
- startResize: u,
78
+ allColumnRefs: g,
79
+ startResize: C,
80
80
  isResizing: e,
81
81
  columnHoverEventToEmitAfterResizing: n
82
82
  };
83
- }, Pn = 100, Ve = 50, q = "b-actions-column", zn = 32, $n = 56, Un = 56, kn = 80, Gn = 36, Wn = 1, ut = 16, Hn = 20, Vn = (s, t, n) => {
84
- const e = {}, o = [], a = (C) => {
85
- const v = e[C];
86
- v && v.frozen !== !0 && (e[C].frozen = !0, o.push(C));
83
+ }, Wn = 100, je = 50, Q = "b-actions-column", Gn = 32, Hn = 56, Vn = 56, Zn = 80, jn = 36, qn = 1, gt = 16, Yn = 20, Xn = (s, t, n) => {
84
+ const e = {}, o = [], l = (g) => {
85
+ const _ = e[g];
86
+ _ && _.frozen !== !0 && (e[g].frozen = !0, o.push(g));
87
87
  };
88
- function i() {
88
+ function a() {
89
89
  if (o.length === n.length)
90
90
  return;
91
- const C = { min: {} };
92
- let v = s, f = t, m = 0;
91
+ const g = { min: {} };
92
+ let _ = s, f = t, S = 0;
93
93
  o.forEach((c) => {
94
- v -= e[c].computedWidth, f -= e[c].flex;
94
+ _ -= e[c].computedWidth, f -= e[c].flex;
95
95
  });
96
- for (let c = 0, E = n.length; c < E; c += 1) {
97
- const l = n[c];
98
- if (e[l.field] && e[l.field].frozen === !0)
96
+ for (let c = 0, p = n.length; c < p; c += 1) {
97
+ const r = n[c];
98
+ if (e[r.field] && e[r.field].frozen === !0)
99
99
  continue;
100
- let u = v / f * l.flex;
101
- u < l.minWidth && (m += l.minWidth - u, u = l.minWidth, C.min[l.field] = !0), e[l.field] = {
100
+ let C = _ / f * r.flex;
101
+ C < r.minWidth && (S += r.minWidth - C, C = r.minWidth, g.min[r.field] = !0), e[r.field] = {
102
102
  frozen: !1,
103
- computedWidth: u,
104
- flex: l.flex
103
+ computedWidth: C,
104
+ flex: r.flex
105
105
  };
106
106
  }
107
- m > 0 ? Object.keys(C.min).forEach((c) => {
108
- a(c);
107
+ S > 0 ? Object.keys(g.min).forEach((c) => {
108
+ l(c);
109
109
  }) : n.forEach(({ field: c }) => {
110
- a(c);
111
- }), i();
110
+ l(c);
111
+ }), a();
112
112
  }
113
- return i(), e;
114
- }, Ze = (s, t) => {
115
- let n = Wn;
116
- return t && (n += ut * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
117
- }, Zn = (s) => {
118
- var t, n, e, o, a;
119
- return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? kn : Un : Gn : (a = s == null ? void 0 : s.hasSelectableAcrossPages) != null && a.value ? $n : zn;
120
- }, jn = (s, t, n, e, o, a) => {
121
- const i = b(s.value), C = b(t), v = b(n), f = b(e), m = b(o), c = b(!1);
122
- Y(
113
+ return a(), e;
114
+ }, qe = (s, t) => {
115
+ let n = qn;
116
+ return t && (n += gt * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
117
+ }, Kn = (s) => {
118
+ var t, n, e, o, l;
119
+ return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? Zn : Vn : jn : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? Hn : Gn;
120
+ }, Jn = (s, t, n, e, o, l) => {
121
+ const a = y(s.value), g = y(t), _ = y(n), f = y(e), S = y(o), c = y(!1), p = y(0);
122
+ ee(
123
123
  () => s.value,
124
- (S, w) => {
125
- var x, $;
126
- const N = (S == null ? void 0 : S.map(({ field: g }) => g).toString()) === (w == null ? void 0 : w.map(({ field: g }) => g).toString());
127
- if (!((x = a == null ? void 0 : a.allowColumnDragAndDrop) != null && x.value) || !N) {
128
- i.value = s.value;
124
+ (E, O) => {
125
+ var v, M;
126
+ const U = (E == null ? void 0 : E.map(({ field: N }) => N).toString()) === (O == null ? void 0 : O.map(({ field: N }) => N).toString());
127
+ if (!((v = l == null ? void 0 : l.allowColumnDragAndDrop) != null && v.value) || !U) {
128
+ a.value = s.value;
129
129
  return;
130
130
  }
131
- i.value = (($ = i.value) == null ? void 0 : $.length) === 0 ? s.value : s.value.sort((g, B) => {
132
- const I = i.value.findIndex((G) => G.field === g.field), D = i.value.findIndex((G) => G.field === B.field);
133
- return I === -1 ? 1 : D === -1 ? -1 : I - D;
131
+ a.value = ((M = a.value) == null ? void 0 : M.length) === 0 ? s.value : s.value.sort((N, I) => {
132
+ const V = a.value.findIndex((Z) => Z.field === N.field), k = a.value.findIndex((Z) => Z.field === I.field);
133
+ return V === -1 ? 1 : k === -1 ? -1 : V - k;
134
134
  });
135
135
  }
136
136
  );
137
- const E = b();
138
- let l = null;
139
- const d = L(() => {
140
- var I, D, G;
141
- const S = [];
142
- let w = 0, N = 0;
143
- const x = {};
144
- let $ = i.value.filter((_) => _.visible !== !1);
145
- const g = i.value.filter((_) => _.visible === !1);
146
- if ((I = a == null ? void 0 : a.hasSelectableColumn) != null && I.value || (D = a == null ? void 0 : a.hasNestedContent) != null && D.value || (G = a == null ? void 0 : a.hasNestedRows) != null && G.value) {
147
- const _ = Zn(a);
148
- $ = [
137
+ const r = y();
138
+ let u = null;
139
+ const C = m(() => {
140
+ var V, k, Z;
141
+ const E = [];
142
+ let O = 0, U = 0;
143
+ const v = {};
144
+ let M = a.value.filter(($) => $.visible !== !1);
145
+ const N = a.value.filter(($) => $.visible === !1);
146
+ if ((V = l == null ? void 0 : l.hasSelectableColumn) != null && V.value || (k = l == null ? void 0 : l.hasNestedContent) != null && k.value || (Z = l == null ? void 0 : l.hasNestedRows) != null && Z.value) {
147
+ const $ = Kn(l);
148
+ M = [
149
149
  {
150
- field: q,
150
+ field: Q,
151
151
  label: "",
152
- minWidth: _,
153
- width: _,
152
+ minWidth: $,
153
+ width: $,
154
154
  frozen: !0,
155
155
  padding: { left: !1, right: !1 }
156
156
  },
157
- ...$
157
+ ...M
158
158
  ];
159
159
  }
160
- $.forEach((_) => {
161
- const R = { ..._ };
162
- let P;
163
- R.flex && R.flex > 0 ? (w += R.flex, P = 0, S.push(R)) : P = Math.max(
164
- (R == null ? void 0 : R.width) ?? Pn,
165
- (R == null ? void 0 : R.minWidth) ?? Ve
166
- ), N += P, R.width = P, R.minWidth = (R == null ? void 0 : R.minWidth) ?? Ve, x[R.field] = R;
160
+ M.forEach(($) => {
161
+ const B = { ...$ };
162
+ let d;
163
+ B.flex && B.flex > 0 ? (O += B.flex, d = 0, E.push(B)) : d = Math.max(
164
+ (B == null ? void 0 : B.width) ?? Wn,
165
+ (B == null ? void 0 : B.minWidth) ?? je
166
+ ), U += d, B.width = d, B.minWidth = (B == null ? void 0 : B.minWidth) ?? je, v[B.field] = B;
167
167
  });
168
- const B = Math.max(E.value - N, 0);
169
- if (w > 0 && E.value > 0) {
170
- const _ = Vn(B, w, S);
171
- Object.keys(_).forEach((R) => {
172
- x[R].width = _[R].computedWidth;
168
+ const I = Math.max(r.value - U, 0);
169
+ if (O > 0 && r.value > 0) {
170
+ const $ = Xn(I, O, E);
171
+ Object.keys($).forEach((B) => {
172
+ v[B].width = $[B].computedWidth;
173
173
  });
174
174
  }
175
- return g.forEach((_) => {
176
- const R = { ..._ };
177
- x[R.field] = R;
178
- }), Object.values(x);
179
- }), u = b(void 0), h = (S) => {
180
- u.value = { ...u.value, ...S };
181
- }, p = async () => {
182
- i.value.some((S) => S == null ? void 0 : S.autoWidth) && (c.value = !0, await K(), i == null || i.value.filter((S) => S == null ? void 0 : S.autoWidth).forEach(({ field: S, minWidth: w }) => {
183
- var g, B, I, D;
184
- const N = Ze(
185
- (g = f.value) == null ? void 0 : g[S],
186
- (B = a == null ? void 0 : a.hasColumnPanel) == null ? void 0 : B.value
187
- ), x = (D = (I = m.value) == null ? void 0 : I[S]) == null ? void 0 : D.reduce(
188
- (G, _) => Math.max(G, Ze(_)),
175
+ return N.forEach(($) => {
176
+ const B = { ...$ };
177
+ v[B.field] = B;
178
+ }), Object.values(v);
179
+ }), h = y(void 0), i = (E) => {
180
+ h.value = { ...h.value, ...E };
181
+ }, L = async () => {
182
+ a.value.some((E) => E == null ? void 0 : E.autoWidth) && (c.value = !0, await ne(), a == null || a.value.filter((E) => E == null ? void 0 : E.autoWidth).forEach(({ field: E, minWidth: O }) => {
183
+ var N, I, V, k;
184
+ const U = qe(
185
+ (N = f.value) == null ? void 0 : N[E],
186
+ (I = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : I.value
187
+ ), v = (k = (V = S.value) == null ? void 0 : V[E]) == null ? void 0 : k.reduce(
188
+ (Z, $) => Math.max(Z, qe($)),
189
189
  0
190
- ), $ = Math.max(N, x ?? 0);
191
- (w === void 0 || $ > w) && h({
192
- [S]: {
193
- width: $
190
+ ), M = Math.max(U, v ?? 0);
191
+ (O === void 0 || M > O) && i({
192
+ [E]: {
193
+ width: M
194
194
  }
195
195
  });
196
196
  }), c.value = !1);
197
197
  };
198
- Y([() => i.value, () => C.value], async () => {
199
- i.value.some((S) => S == null ? void 0 : S.autoWidth) && await p();
198
+ ee([() => a.value, () => g.value], async () => {
199
+ a.value.some((E) => E == null ? void 0 : E.autoWidth) && await L();
200
200
  });
201
- const O = L(
202
- () => d.value.map((S) => {
203
- var w, N;
201
+ const w = m(
202
+ () => C.value.map((E) => {
203
+ var O, U;
204
204
  return {
205
- ...S,
205
+ ...E,
206
206
  // Override column width with resized ones
207
- width: ((N = (w = u.value) == null ? void 0 : w[S.field]) == null ? void 0 : N.width) ?? S.width
207
+ width: ((U = (O = h.value) == null ? void 0 : O[E.field]) == null ? void 0 : U.width) ?? E.width
208
208
  };
209
209
  })
210
- ), y = L(
210
+ ), D = m(
211
211
  () => {
212
- var S;
213
- return (S = O.value) == null ? void 0 : S.filter(({ visible: w }) => w !== !1).reduce((w, N) => N.width + w, 0);
212
+ var E;
213
+ return ((E = w.value) == null ? void 0 : E.filter(({ visible: O }) => O !== !1).reduce((O, U) => U.width + O, 0)) + p.value;
214
214
  }
215
- ), F = L(
216
- () => E.value <= y.value
217
- ), z = L(() => ({
218
- width: E.value > y.value ? "100%" : "fit-content"
215
+ ), z = m(
216
+ () => r.value <= D.value
217
+ ), F = m(() => ({
218
+ width: r.value > D.value ? "100%" : "fit-content"
219
+ })), A = m(() => ({
220
+ ...F.value,
221
+ paddingRight: `${p.value}px`
219
222
  }));
220
- return Ae(() => {
221
- var w;
222
- const S = a != null && a.isDataGridTemplate ? Hn : 0;
223
- K(() => {
224
- v.value && (E.value = v.value.getBoundingClientRect().width - S);
225
- const N = Y(
226
- v,
223
+ return Oe(() => {
224
+ var O;
225
+ const E = l != null && l.isDataGridTemplate ? Yn : 0;
226
+ ne(() => {
227
+ _.value && (r.value = _.value.getBoundingClientRect().width - E);
228
+ const U = ee(
229
+ _,
227
230
  () => {
228
- v.value && (K(() => N()), l = De(v.value, ({ width: x }) => {
229
- E.value = x - S;
231
+ _.value && (ne(() => U()), u = De(_.value, ({ width: v }) => {
232
+ r.value = v - E;
230
233
  }));
231
234
  },
232
235
  { immediate: !0 }
233
236
  );
234
- }), (w = document == null ? void 0 : document.fonts) != null && w.ready ? document.fonts.ready.then(() => {
235
- p();
236
- }) : p();
237
- }), st(() => {
238
- l == null || l.disconnect();
239
- }), ln(() => {
240
- var S;
241
- m.value && ((S = Object.keys(m.value)) == null ? void 0 : S.length) > 0 && Object.keys(m.value).forEach((N) => {
242
- m.value[N] = [];
237
+ }), (O = document == null ? void 0 : document.fonts) != null && O.ready ? document.fonts.ready.then(() => {
238
+ L();
239
+ }) : L();
240
+ }), lt(() => {
241
+ u == null || u.disconnect();
242
+ }), un(() => {
243
+ var E;
244
+ S.value && ((E = Object.keys(S.value)) == null ? void 0 : E.length) > 0 && Object.keys(S.value).forEach((U) => {
245
+ S.value[U] = [];
243
246
  });
244
247
  }), {
245
- columnDefs: O,
246
- gridColumnWidthStyle: z,
247
- onColumnWidthOverride: h,
248
+ columnDefs: w,
249
+ gridColumnWidthStyle: A,
250
+ gridRowWidthStyle: F,
251
+ onColumnWidthOverride: i,
248
252
  isMeasuringColumnWidths: c,
249
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
250
- columns: i,
251
- totalWidthOfAllColumns: y
253
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: z,
254
+ columns: a,
255
+ totalWidthOfAllColumns: D,
256
+ rowActionsMaxWidth: p
252
257
  };
253
- }, qn = (s, t, n, e, o) => {
254
- const a = b(s.value ?? []), i = be({
258
+ }, Qn = (s, t, n, e, o) => {
259
+ const l = y(s.value ?? []), a = be({
255
260
  allItemsSelected: !1,
256
261
  isIndeterminate: !1
257
- }), C = L(
258
- () => n.value.flatMap((d) => {
259
- var u;
260
- return [d, ((u = d == null ? void 0 : d.children) == null ? void 0 : u.length) > 0 ? d == null ? void 0 : d.children : []];
262
+ }), g = m(
263
+ () => n.value.flatMap((u) => {
264
+ var C;
265
+ return [u, ((C = u == null ? void 0 : u.children) == null ? void 0 : C.length) > 0 ? u == null ? void 0 : u.children : []];
261
266
  }).flat()
262
- ), v = () => {
263
- t(A.SELECT, a.value), t(A.UPDATE_SELECTION, a.value);
264
- }, f = (d) => {
265
- var h, p, O, y, F;
266
- if (a.value = d, ((h = n.value) == null ? void 0 : h.length) > 0 && ((p = C.value) == null ? void 0 : p.filter((z) => !o(z)).every((z) => a.value.includes(e(z))))) {
267
- i.allItemsSelected = !0;
268
- const z = ((O = n.value) == null ? void 0 : O.length) > 0 && n.value.every((S) => a.value.includes(e(S)));
269
- i.isIndeterminate = !z;
267
+ ), _ = () => {
268
+ t(b.SELECT, l.value), t(b.UPDATE_SELECTION, l.value);
269
+ }, f = (u) => {
270
+ var h, i, L, w, D;
271
+ if (l.value = u, ((h = n.value) == null ? void 0 : h.length) > 0 && ((i = g.value) == null ? void 0 : i.filter((z) => !o(z)).every((z) => l.value.includes(e(z))))) {
272
+ a.allItemsSelected = !0;
273
+ const z = ((L = n.value) == null ? void 0 : L.length) > 0 && n.value.every((F) => l.value.includes(e(F)));
274
+ a.isIndeterminate = !z;
270
275
  } else
271
- i.allItemsSelected = !1, i.isIndeterminate = ((y = a.value) == null ? void 0 : y.length) > 0 && ((F = n.value) == null ? void 0 : F.length) > 0 && n.value.some(
276
+ a.allItemsSelected = !1, a.isIndeterminate = ((w = l.value) == null ? void 0 : w.length) > 0 && ((D = n.value) == null ? void 0 : D.length) > 0 && n.value.some(
272
277
  (z) => {
273
- var S;
274
- return a.value.includes(e(z)) || ((S = z == null ? void 0 : z.children) == null ? void 0 : S.some((w) => a.value.includes(e(w))));
278
+ var F;
279
+ return l.value.includes(e(z)) || ((F = z == null ? void 0 : z.children) == null ? void 0 : F.some((A) => l.value.includes(e(A))));
275
280
  }
276
281
  );
277
- }, m = (d) => {
278
- K(() => {
279
- var u, h, p;
280
- if (i.allItemsSelected = d, d) {
281
- a.value = (h = (u = C.value) == null ? void 0 : u.filter(
282
- (y) => !o(y) && ((y == null ? void 0 : y.children) === void 0 || y.children.every((F) => !o(F)))
283
- )) == null ? void 0 : h.map((y) => e(y));
284
- const O = ((p = n.value) == null ? void 0 : p.length) > 0 && n.value.every((y) => a.value.includes(e(y)));
285
- i.isIndeterminate = a.value.length > 0 && !O;
282
+ }, S = (u) => {
283
+ ne(() => {
284
+ var C, h, i;
285
+ if (a.allItemsSelected = u, u) {
286
+ l.value = (h = (C = g.value) == null ? void 0 : C.filter(
287
+ (w) => !o(w) && ((w == null ? void 0 : w.children) === void 0 || w.children.every((D) => !o(D)))
288
+ )) == null ? void 0 : h.map((w) => e(w));
289
+ const L = ((i = n.value) == null ? void 0 : i.length) > 0 && n.value.every((w) => l.value.includes(e(w)));
290
+ a.isIndeterminate = l.value.length > 0 && !L;
286
291
  } else
287
- a.value = [], i.isIndeterminate = !1;
288
- v();
292
+ l.value = [], a.isIndeterminate = !1;
293
+ _();
289
294
  });
290
- }, c = (d, u) => {
291
- K(() => {
295
+ }, c = (u, C) => {
296
+ ne(() => {
292
297
  var h;
293
- f(((h = u == null ? void 0 : u.children) == null ? void 0 : h.length) > 0 ? E(d, u) : d), v();
298
+ f(((h = C == null ? void 0 : C.children) == null ? void 0 : h.length) > 0 ? p(u, C) : u), _();
294
299
  });
295
- }, E = (d, u) => {
296
- var O;
297
- const h = e(u), p = (O = u.children) == null ? void 0 : O.filter((y) => !o(y)).map((y) => e(y));
298
- if (d.includes(h)) {
299
- const y = d;
300
- return p.forEach((F) => {
301
- y.includes(F) || y.push(F);
302
- }), y;
300
+ }, p = (u, C) => {
301
+ var L;
302
+ const h = e(C), i = (L = C.children) == null ? void 0 : L.filter((w) => !o(w)).map((w) => e(w));
303
+ if (u.includes(h)) {
304
+ const w = u;
305
+ return i.forEach((D) => {
306
+ w.includes(D) || w.push(D);
307
+ }), w;
303
308
  }
304
- return d.filter((y) => !p.includes(y));
305
- }, l = (d, u, h) => {
306
- K(() => {
307
- var O, y;
308
- const p = e(u);
309
- d.includes(e(h)) ? f(
310
- !d.includes(p) && ((O = u == null ? void 0 : u.children) != null && O.every((F) => d.includes(e(F)))) ? [...d, p] : d
309
+ return u.filter((w) => !i.includes(w));
310
+ }, r = (u, C, h) => {
311
+ ne(() => {
312
+ var L, w;
313
+ const i = e(C);
314
+ u.includes(e(h)) ? f(
315
+ !u.includes(i) && ((L = C == null ? void 0 : C.children) != null && L.every((D) => u.includes(e(D)))) ? [...u, i] : u
311
316
  ) : f(
312
- d.includes(p) && !((y = u == null ? void 0 : u.children) != null && y.every((F) => d.includes(e(F)))) ? d.filter((F) => F !== p) : d
313
- ), v();
317
+ u.includes(i) && !((w = C == null ? void 0 : C.children) != null && w.every((D) => u.includes(e(D)))) ? u.filter((D) => D !== i) : u
318
+ ), _();
314
319
  });
315
320
  };
316
- return Y(
321
+ return ee(
317
322
  () => s.value,
318
323
  () => {
319
324
  f(s.value ?? []);
320
325
  },
321
326
  { immediate: !0 }
322
- ), Y(
327
+ ), ee(
323
328
  () => n.value,
324
329
  () => {
325
- const d = n.value.filter((u) => a.value.includes(e(u))).flatMap(
326
- (u) => {
330
+ const u = n.value.filter((C) => l.value.includes(e(C))).flatMap(
331
+ (C) => {
327
332
  var h;
328
- return ((h = u == null ? void 0 : u.children) == null ? void 0 : h.length) > 0 ? u.children.map((p) => e(p)).filter((p) => !a.value.includes(p)) : [];
333
+ return ((h = C == null ? void 0 : C.children) == null ? void 0 : h.length) > 0 ? C.children.map((i) => e(i)).filter((i) => !l.value.includes(i)) : [];
329
334
  }
330
335
  );
331
- (d == null ? void 0 : d.length) > 0 ? (f([...a.value, ...d]), v()) : f(a.value);
336
+ (u == null ? void 0 : u.length) > 0 ? (f([...l.value, ...u]), _()) : f(l.value);
332
337
  }
333
- ), { onAllRowSelect: m, onRowSelect: c, onNestedRowSelect: l, allItemsSelectedState: i, selectedItems: a };
334
- }, Yn = (s, t, n) => ({ isSorting: (i) => s.value.some((C) => C.field === i), getSortingDirection: (i) => {
335
- var C;
336
- return (C = s.value.find((v) => v.field === i)) == null ? void 0 : C.direction;
337
- }, sortByColumnField: (i) => {
338
+ ), { onAllRowSelect: S, onRowSelect: c, onNestedRowSelect: r, allItemsSelectedState: a, selectedItems: l };
339
+ }, es = (s, t, n) => ({ isSorting: (a) => s.value.some((g) => g.field === a), getSortingDirection: (a) => {
340
+ var g;
341
+ return (g = s.value.find((_) => _.field === a)) == null ? void 0 : g.direction;
342
+ }, sortByColumnField: (a) => {
338
343
  var f;
339
- if (!t.value.some((m) => m.field === i && m.sortable))
344
+ if (!t.value.some((S) => S.field === a && S.sortable))
340
345
  return;
341
- const v = [{
342
- field: i,
343
- direction: ((f = s.value.find((m) => m.field === i)) == null ? void 0 : f.direction) === ae.ASCENDING ? ae.DESCENDING : ae.ASCENDING
346
+ const _ = [{
347
+ field: a,
348
+ direction: ((f = s.value.find((S) => S.field === a)) == null ? void 0 : f.direction) === ce.ASCENDING ? ce.DESCENDING : ce.ASCENDING
344
349
  }];
345
- n("sort", v);
350
+ n("sort", _);
346
351
  } });
347
- var j = ((s) => (s[s.ARROW_DOWN = te.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = te.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = te.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = te.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = te.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = te.PAGE_DOWN] = "PAGE_DOWN", s[s.END = te.END] = "END", s[s.HOME = te.HOME] = "HOME", s))(j || {});
348
- const Xn = (s, t, n) => {
349
- const e = L(() => {
350
- const l = t.value.filter(({ visible: d }) => d !== !1);
351
- return n.value ? l.length + 1 : l.length;
352
- }), o = L(
353
- () => [...Object.values(s.value)].flat(1).sort((l, d) => {
354
- const u = Number(l.getAttribute("data-cellindex")), h = Number(d.getAttribute("data-cellindex"));
355
- return u > h ? 1 : h > u ? -1 : 0;
352
+ var K = ((s) => (s[s.ARROW_DOWN = ae.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = ae.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = ae.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = ae.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = ae.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = ae.PAGE_DOWN] = "PAGE_DOWN", s[s.END = ae.END] = "END", s[s.HOME = ae.HOME] = "HOME", s))(K || {});
353
+ const ts = (s, t, n) => {
354
+ const e = m(() => {
355
+ const r = t.value.filter(({ visible: u }) => u !== !1);
356
+ return n.value ? r.length + 1 : r.length;
357
+ }), o = m(
358
+ () => [...Object.values(s.value)].flat(1).sort((r, u) => {
359
+ const C = Number(r.getAttribute("data-cellindex")), h = Number(u.getAttribute("data-cellindex"));
360
+ return C > h ? 1 : h > C ? -1 : 0;
356
361
  })
357
- ), a = (l) => Math.floor(l / e.value), i = (l, d, u) => {
358
- const h = o.value.length - 1, p = e.value - 1, O = a(l), y = l - e.value * O;
362
+ ), l = (r) => Math.floor(r / e.value), a = (r, u, C) => {
363
+ const h = o.value.length - 1, i = e.value - 1, L = l(r), w = r - e.value * L;
359
364
  return {
360
- [j.PAGE_UP]: y,
361
- [j.PAGE_DOWN]: h - p + y,
362
- [j.END]: u ? h : e.value * O + p,
363
- [j.HOME]: u ? 0 : e.value * O
364
- }[d];
365
- }, C = (l, d) => {
365
+ [K.PAGE_UP]: w,
366
+ [K.PAGE_DOWN]: h - i + w,
367
+ [K.END]: C ? h : e.value * L + i,
368
+ [K.HOME]: C ? 0 : e.value * L
369
+ }[u];
370
+ }, g = (r, u) => {
366
371
  const h = {
367
- [j.ARROW_DOWN]: e.value,
368
- [j.ARROW_UP]: -e.value,
369
- [j.ARROW_LEFT]: -1,
370
- [j.ARROW_RIGHT]: 1
371
- }[d], p = l + h;
372
- return p < 0 || p >= o.value.length ? l : p;
373
- }, v = (l) => [
374
- j.PAGE_UP,
375
- j.PAGE_DOWN,
376
- j.END,
377
- j.HOME
378
- ].includes(l), f = (l, d, u) => {
379
- const h = o.value.indexOf(l);
380
- return v(d) ? i(h, d, u) : C(h, d);
381
- }, m = (l, d, u) => {
382
- if (!o.value.includes(l))
372
+ [K.ARROW_DOWN]: e.value,
373
+ [K.ARROW_UP]: -e.value,
374
+ [K.ARROW_LEFT]: -1,
375
+ [K.ARROW_RIGHT]: 1
376
+ }[u], i = r + h;
377
+ return i < 0 || i >= o.value.length ? r : i;
378
+ }, _ = (r) => [
379
+ K.PAGE_UP,
380
+ K.PAGE_DOWN,
381
+ K.END,
382
+ K.HOME
383
+ ].includes(r), f = (r, u, C) => {
384
+ const h = o.value.indexOf(r);
385
+ return _(u) ? a(h, u, C) : g(h, u);
386
+ }, S = (r, u, C) => {
387
+ if (!o.value.includes(r))
383
388
  return;
384
- const h = f(l, d, u);
389
+ const h = f(r, u, C);
385
390
  o.value[h].focus();
386
- }, c = (l) => l in j;
391
+ }, c = (r) => r in K;
387
392
  return {
388
393
  isNavigationKeyCode: c,
389
- focusOnNextGridcell: m,
390
- navigationInput: (l) => {
391
- const { ctrlKey: d, keyCode: u, target: h } = l;
392
- Object.values(s.value).flat(1).includes(h) && c(u) && m(h, u, d);
394
+ focusOnNextGridcell: S,
395
+ navigationInput: (r) => {
396
+ const { ctrlKey: u, keyCode: C, target: h } = r;
397
+ Object.values(s.value).flat(1).includes(h) && c(C) && S(h, C, u);
393
398
  }
394
399
  };
395
- }, Jn = 90, Kn = (s, t, n, e, o) => {
396
- const a = b(s), i = b(t), C = b(n), v = b(e), f = L(() => a.value !== "none"), m = L(() => a.value === "automatic"), c = () => {
397
- o(A.UPDATE_SHOW_MORE);
400
+ }, ns = 90, ss = (s, t, n, e, o) => {
401
+ const l = y(s), a = y(t), g = y(n), _ = y(e), f = m(() => l.value !== "none"), S = m(() => l.value === "automatic"), c = () => {
402
+ o(b.UPDATE_SHOW_MORE);
398
403
  };
399
- return Y(
400
- () => i.value,
404
+ return ee(
405
+ () => a.value,
401
406
  () => {
402
- m.value && C.value.offsetHeight / i.value * 100 > Jn && !v.value && c();
407
+ S.value && g.value.offsetHeight / a.value * 100 > ns && !_.value && c();
403
408
  }
404
- ), { isLazyLoad: f, isInfiniteScroll: m, verticalScrollPosition: i, emitLazyLoadEvent: c };
405
- }, Qn = (s, t, n) => {
406
- const e = b(s), o = b(t), a = be({
409
+ ), { isLazyLoad: f, isInfiniteScroll: S, verticalScrollPosition: a, emitLazyLoadEvent: c };
410
+ }, os = (s, t, n) => {
411
+ const e = y(s), o = y(t), l = be({
407
412
  dragging: null,
408
413
  dragToLeft: null,
409
414
  target: null
410
- }), i = (l, d = 0) => {
411
- const u = e.value.findIndex((O) => O.field === l.field), h = u + d;
415
+ }), a = (r, u = 0) => {
416
+ const C = e.value.findIndex((L) => L.field === r.field), h = C + u;
412
417
  if (h < 0 || h > e.value.length - 1)
413
418
  return;
414
- const p = [...e.value];
415
- p.splice(h, 0, p.splice(u, 1)[0]), n(A.COLUMNS, p), n(A.UPDATE_COLUMNS, p);
416
- }, C = (l, d) => {
417
- a.dragging = l, d.dataTransfer.setData("text", ""), d.dataTransfer.dropEffect = "move";
418
- }, v = (l, d) => {
419
- a.target = l;
420
- const u = d.currentTarget.getBoundingClientRect(), h = u.left + u.width / 2, p = d.clientX ?? 0;
421
- a.dragToLeft = p <= h;
422
- }, f = (l) => {
423
- var d, u;
424
- if (((d = a.dragging) == null ? void 0 : d.field) !== l.field) {
425
- const h = e.value.findIndex((S) => {
426
- var w;
427
- return S.field === ((w = a.dragging) == null ? void 0 : w.field);
428
- }), p = e.value.findIndex((S) => S.field === l.field), O = a.dragToLeft ? p : p + 1, y = O > h ? O - 1 : O;
429
- let F = [...e.value];
430
- F.splice(
431
- y === -1 ? 0 : y,
419
+ const i = [...e.value];
420
+ i.splice(h, 0, i.splice(C, 1)[0]), n(b.COLUMNS, i), n(b.UPDATE_COLUMNS, i);
421
+ }, g = (r, u) => {
422
+ l.dragging = r, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
423
+ }, _ = (r, u) => {
424
+ l.target = r;
425
+ const C = u.currentTarget.getBoundingClientRect(), h = C.left + C.width / 2, i = u.clientX ?? 0;
426
+ l.dragToLeft = i <= h;
427
+ }, f = (r) => {
428
+ var u, C;
429
+ if (((u = l.dragging) == null ? void 0 : u.field) !== r.field) {
430
+ const h = e.value.findIndex((F) => {
431
+ var A;
432
+ return F.field === ((A = l.dragging) == null ? void 0 : A.field);
433
+ }), i = e.value.findIndex((F) => F.field === r.field), L = l.dragToLeft ? i : i + 1, w = L > h ? L - 1 : L;
434
+ let D = [...e.value];
435
+ D.splice(
436
+ w === -1 ? 0 : w,
432
437
  0,
433
- F.splice(h, 1)[0]
438
+ D.splice(h, 1)[0]
434
439
  );
435
- const z = e.value.findIndex((S) => !(S != null && S.frozen));
436
- ((u = a.dragging) == null ? void 0 : u.frozen) !== l.frozen && O !== z && (F = F.map(
437
- (S) => {
438
- var w;
439
- return ((w = a.dragging) == null ? void 0 : w.field) === S.field ? { ...S, frozen: !!(l != null && l.frozen) } : S;
440
+ const z = e.value.findIndex((F) => !(F != null && F.frozen));
441
+ ((C = l.dragging) == null ? void 0 : C.frozen) !== r.frozen && L !== z && (D = D.map(
442
+ (F) => {
443
+ var A;
444
+ return ((A = l.dragging) == null ? void 0 : A.field) === F.field ? { ...F, frozen: !!(r != null && r.frozen) } : F;
440
445
  }
441
- )), n(A.COLUMNS, F), n(A.UPDATE_COLUMNS, F);
446
+ )), n(b.COLUMNS, D), n(b.UPDATE_COLUMNS, D);
442
447
  }
443
- a.dragging = null, a.target = null;
444
- }, m = () => {
445
- a.dragging = null, a.dragToLeft = null, a.target = null;
446
- }, c = L(() => o.value ? {
447
- [k.COLUMN_DRAG_START]: (l, d) => C(l, d),
448
- [k.COLUMN_DRAG_ENTER]: (l, d) => v(l, d),
449
- [k.COLUMN_DROP]: (l) => f(l),
450
- [k.COLUMN_DRAG_END]: () => m()
451
- } : {}), E = L(() => (l) => o.value ? {
452
- dragenter: (d) => {
453
- d.preventDefault(), v(l, d);
448
+ l.dragging = null, l.target = null;
449
+ }, S = () => {
450
+ l.dragging = null, l.dragToLeft = null, l.target = null;
451
+ }, c = m(() => o.value ? {
452
+ [H.COLUMN_DRAG_START]: (r, u) => g(r, u),
453
+ [H.COLUMN_DRAG_ENTER]: (r, u) => _(r, u),
454
+ [H.COLUMN_DROP]: (r) => f(r),
455
+ [H.COLUMN_DRAG_END]: () => S()
456
+ } : {}), p = m(() => (r) => o.value ? {
457
+ dragenter: (u) => {
458
+ u.preventDefault(), _(r, u);
454
459
  },
455
460
  drop: () => {
456
- f(l);
461
+ f(r);
457
462
  },
458
- dragover: (d) => {
459
- d.preventDefault();
463
+ dragover: (u) => {
464
+ u.preventDefault();
460
465
  }
461
466
  } : {});
462
467
  return {
463
468
  // Values
464
- draggingColumns: a,
469
+ draggingColumns: l,
465
470
  // Methods
466
471
  draggingEventsForColumns: c,
467
- draggingEventsForRowCell: E,
468
- onMoveColumnByOffset: i
472
+ draggingEventsForRowCell: p,
473
+ onMoveColumnByOffset: a
469
474
  };
470
- }, es = (s, t) => {
471
- const n = b(s), e = L(
472
- () => [...n.value].sort((c, E) => c.frozen === E.frozen ? 0 : c.frozen ? -1 : 1)
473
- ), o = L(
475
+ }, ls = (s, t) => {
476
+ const n = y(s), e = m(
477
+ () => [...n.value].sort((c, p) => c.frozen === p.frozen ? 0 : c.frozen ? -1 : 1)
478
+ ), o = m(
474
479
  () => e.value.filter((c) => c.frozen && c.visible !== !1)
475
- ), a = L(
480
+ ), l = m(
476
481
  () => e.value.filter((c) => !c.frozen && c.visible !== !1)
477
- ), i = L(
482
+ ), a = m(
478
483
  () => [
479
484
  { columnSet: o.value, id: "frozen", isFrozenColumns: !0 },
480
- { columnSet: a.value, id: "unfrozen" }
485
+ { columnSet: l.value, id: "unfrozen" }
481
486
  ].filter(({ columnSet: c }) => c.length)
482
- ), C = L(
483
- () => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== q).length === 1
484
- ), v = (c) => t(A.UPDATE_CONDENSED, c), f = (c) => {
485
- t(A.COLUMNS, c), t(A.UPDATE_COLUMNS, c);
487
+ ), g = m(
488
+ () => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== Q).length === 1
489
+ ), _ = (c) => t(b.UPDATE_CONDENSED, c), f = (c) => {
490
+ t(b.COLUMNS, c), t(b.UPDATE_COLUMNS, c);
486
491
  };
487
492
  return {
488
493
  // Values
489
- columnSets: i,
490
- isOnlyOneVisibleColumn: C,
494
+ columnSets: a,
495
+ isOnlyOneVisibleColumn: g,
491
496
  sortedColumns: e,
492
497
  // Methods
493
- onConfigSettingsUpdate: v,
498
+ onConfigSettingsUpdate: _,
494
499
  onConfigSettingsColumnsUpdate: f,
495
500
  onConfigSettingsColumnUpdate: (c) => {
496
- const E = e.value.map(
497
- (l) => (l == null ? void 0 : l.field) === c.field ? c : l
501
+ const p = e.value.map(
502
+ (r) => (r == null ? void 0 : r.field) === c.field ? c : r
498
503
  );
499
- f(E);
504
+ f(p);
500
505
  }
501
506
  };
502
- }, je = (s, t) => {
503
- const n = b(0);
504
- let e = null;
505
- const o = () => {
506
- s != null && s.value && t.value && (n.value = s.value.offsetHeight);
507
+ }, Ye = (s, t) => {
508
+ const n = y(0);
509
+ let e = null, o = null;
510
+ const l = () => {
511
+ const a = s.value;
512
+ if (a && t.value) {
513
+ const g = window.getComputedStyle(a);
514
+ let _ = a.offsetHeight;
515
+ const f = window.getComputedStyle(a, "::after");
516
+ if (f.content !== "none" && f.position === "absolute") {
517
+ const p = parseFloat(f.height), r = parseFloat(f.bottom);
518
+ !isNaN(p) && !isNaN(r) && r < 0 && r + p <= 0 && (_ += p);
519
+ }
520
+ const S = window.getComputedStyle(a, "::before");
521
+ if (S.content !== "none" && S.position === "absolute") {
522
+ const p = parseFloat(S.height), r = parseFloat(S.top);
523
+ !isNaN(p) && !isNaN(r) && r < 0 && r + p <= 0 && (_ += p);
524
+ }
525
+ const c = parseFloat(g.top);
526
+ !isNaN(c) && c < 0 && (_ += c), n.value = _;
527
+ } else
528
+ n.value = 0;
507
529
  };
508
- return Ae(() => {
509
- K(() => {
510
- const a = Y(
530
+ return Oe(() => {
531
+ ne(() => {
532
+ const a = ee(
511
533
  s,
512
534
  () => {
513
- s != null && s.value && (K(() => a()), e = De(s.value, () => {
514
- o();
515
- }));
535
+ s != null && s.value && (ne(() => a()), e = De(s.value, l), o = new MutationObserver(l), o.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
516
536
  },
517
537
  { immediate: !0 }
518
538
  );
519
- Y(
539
+ ee(
520
540
  t,
521
541
  () => {
522
- t.value ? o() : n.value = 0;
542
+ l();
523
543
  },
524
544
  { immediate: !0 }
525
545
  );
526
546
  });
527
- }), st(() => {
528
- e == null || e.disconnect();
547
+ }), lt(() => {
548
+ e == null || e.disconnect(), o == null || o.disconnect();
529
549
  }), n;
530
- }, ts = (s, t, n, e, o) => {
531
- const a = b(0), i = b(!1), C = b(!1);
532
- Y(
533
- () => a.value,
550
+ }, as = (s, t, n, e, o) => {
551
+ const l = y(0), a = y(!1), g = y(!1);
552
+ ee(
553
+ () => l.value,
534
554
  () => {
535
- s.value.scrollLeft = a.value, t.value.scrollLeft = a.value, i.value = !!a.value, C.value = t.value.scrollWidth - t.value.offsetWidth > a.value;
555
+ s.value.scrollLeft = l.value, t.value.scrollLeft = l.value, a.value = !!l.value, g.value = t.value.scrollWidth - t.value.offsetWidth > l.value;
536
556
  }
537
- ), Ae(async () => {
538
- var E, l;
539
- await K(), ((E = t.value) == null ? void 0 : E.offsetWidth) < ((l = t.value) == null ? void 0 : l.scrollWidth) && (C.value = !0);
557
+ ), Oe(async () => {
558
+ var p, r;
559
+ await ne(), ((p = t.value) == null ? void 0 : p.offsetWidth) < ((r = t.value) == null ? void 0 : r.scrollWidth) && (g.value = !0);
540
560
  });
541
- const v = (E) => {
542
- if (a.value = E.target.scrollLeft, n.value = s.value.scrollHeight - E.target.scrollTop, e != null && e.value) {
543
- const l = E.target.scrollLeft;
544
- e.value.scrollLeft !== l && (e.value.scrollLeft = l);
561
+ const _ = (p) => {
562
+ if (l.value = p.target.scrollLeft, n.value = s.value.scrollHeight - p.target.scrollTop, e != null && e.value) {
563
+ const r = p.target.scrollLeft;
564
+ e.value.scrollLeft !== r && (e.value.scrollLeft = r);
545
565
  }
546
- }, f = (E) => {
547
- E.key !== "Tab" && E.key !== "ArrowRight" && E.key !== "ArrowLeft" || (E.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
566
+ }, f = (p) => {
567
+ p.key !== "Tab" && p.key !== "ArrowRight" && p.key !== "ArrowLeft" || (p.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
548
568
  s.value.style.overflowX = "auto";
549
569
  }));
550
- }, m = (E) => {
551
- const l = E.target.scrollLeft;
552
- s.value.scrollLeft !== l && (s.value.scrollLeft = l);
553
- }, c = L(() => {
554
- var E, l, d;
570
+ }, S = (p) => {
571
+ const r = p.target.scrollLeft;
572
+ s.value.scrollLeft !== r && (s.value.scrollLeft = r);
573
+ }, c = m(() => {
574
+ var p, r, u;
555
575
  return {
556
- "b-data-grid__horizontal-scrollbar--sticky-pagination": ((E = o == null ? void 0 : o.pagination) == null ? void 0 : E.value) && (((l = o == null ? void 0 : o.stickyPagination) == null ? void 0 : l.value) || (o == null ? void 0 : o.isDataGridTemplate)) && !((d = o == null ? void 0 : o.isLazyLoad) != null && d.value)
576
+ "b-data-grid__horizontal-scrollbar--sticky-pagination": ((p = o == null ? void 0 : o.pagination) == null ? void 0 : p.value) && (((r = o == null ? void 0 : o.stickyPagination) == null ? void 0 : r.value) || (o == null ? void 0 : o.isDataGridTemplate)) && !((u = o == null ? void 0 : o.isLazyLoad) != null && u.value)
557
577
  };
558
578
  });
559
579
  return {
560
580
  // Values
561
- scrollLeftPosition: a,
562
- hasLeftOverflow: i,
563
- hasRightOverflow: C,
581
+ scrollLeftPosition: l,
582
+ hasLeftOverflow: a,
583
+ hasRightOverflow: g,
564
584
  horizontalScrollbarConditionalClasses: c,
565
585
  // Methods
566
- updateScrollPosition: v,
586
+ updateScrollPosition: _,
567
587
  updateScrollPositionOnFrozenColumnsNavigation: f,
568
- syncVirtualScrollerWithBody: m
588
+ syncVirtualScrollerWithBody: S
569
589
  };
570
- }, ns = (s, t, n, e) => {
571
- const o = b(null), a = L(() => {
572
- var u, h, p, O;
573
- if (!o.value || o.value.field === q)
590
+ }, is = (s, t, n, e) => {
591
+ const o = y(null), l = m(() => {
592
+ var C, h, i, L;
593
+ if (!o.value || o.value.field === Q)
574
594
  return {
575
595
  hoveredOverColumnField: "",
576
596
  isSeparatorOffset: !1,
577
597
  noBorderLeft: !1,
578
598
  noBorderRight: !1
579
599
  };
580
- const i = (h = (u = s.value.find((y) => y.isFrozenColumns)) == null ? void 0 : u.columnSet) == null ? void 0 : h.filter((y) => y.field !== q), C = s.value.find((y) => !(y != null && y.isFrozenColumns)), v = o.value.frozen && (i == null ? void 0 : i[0].field) === o.value.field, f = !o.value.frozen && ((p = C == null ? void 0 : C.columnSet) == null ? void 0 : p[0].field) === o.value.field, m = (t.value || n.value) && v, c = (t.value || n.value) && !i && f, E = i && f, l = (i == null ? void 0 : i.length) > 0 && o.value.frozen && (i == null ? void 0 : i[i.length - 1].field) === o.value.field, d = n.value && e.value && !o.value.frozen && ((O = C == null ? void 0 : C.columnSet) == null ? void 0 : O[C.columnSet.length - 1].field) === o.value.field;
600
+ const a = (h = (C = s.value.find((w) => w.isFrozenColumns)) == null ? void 0 : C.columnSet) == null ? void 0 : h.filter((w) => w.field !== Q), g = s.value.find((w) => !(w != null && w.isFrozenColumns)), _ = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, f = !o.value.frozen && ((i = g == null ? void 0 : g.columnSet) == null ? void 0 : i[0].field) === o.value.field, S = (t.value || n.value) && _, c = (t.value || n.value) && !a && f, p = a && f, r = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, u = n.value && e.value && !o.value.frozen && ((L = g == null ? void 0 : g.columnSet) == null ? void 0 : L[g.columnSet.length - 1].field) === o.value.field;
581
601
  return {
582
602
  hoveredOverColumnField: o.value.field,
583
- isSeparatorOffset: d,
584
- noBorderLeft: !!m || !!c || !!E,
585
- noBorderRight: !!l || !!d
603
+ isSeparatorOffset: u,
604
+ noBorderLeft: !!S || !!c || !!p,
605
+ noBorderRight: !!r || !!u
586
606
  };
587
607
  });
588
608
  return {
589
609
  hoveredOverColumn: o,
590
- hoveredOverColumnState: a
610
+ hoveredOverColumnState: l
591
611
  };
592
612
  };
593
- let qe = 0;
594
- const ss = {
595
- beforeCreate() {
596
- this.uuid = qe.toString(), qe += 1;
597
- }
598
- };
599
- var os = function() {
600
- var t = this, n = t._self._c;
601
- return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
602
- }, ls = [], as = /* @__PURE__ */ V(
603
- ss,
604
- os,
605
- ls,
606
- !1,
607
- null,
608
- null
609
- );
610
- const is = as.exports;
611
- let Ye = 0;
613
+ let Xe = 0;
612
614
  const rs = {
613
615
  beforeCreate() {
614
- this.uuid = Ye.toString(), Ye += 1;
616
+ this.uuid = Xe.toString(), Xe += 1;
615
617
  }
616
618
  };
617
619
  var ds = function() {
618
620
  var t = this, n = t._self._c;
619
- return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("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" } })]);
620
- }, cs = [], us = /* @__PURE__ */ V(
621
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
622
+ }, cs = [], us = /* @__PURE__ */ Y(
621
623
  rs,
622
624
  ds,
623
625
  cs,
@@ -626,16 +628,16 @@ var ds = function() {
626
628
  null
627
629
  );
628
630
  const fs = us.exports;
629
- let Xe = 0;
631
+ let Ke = 0;
630
632
  const gs = {
631
633
  beforeCreate() {
632
- this.uuid = Xe.toString(), Xe += 1;
634
+ this.uuid = Ke.toString(), Ke += 1;
633
635
  }
634
636
  };
635
637
  var _s = function() {
636
638
  var t = this, n = t._self._c;
637
- return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
638
- }, vs = [], Cs = /* @__PURE__ */ V(
639
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("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" } })]);
640
+ }, vs = [], Cs = /* @__PURE__ */ Y(
639
641
  gs,
640
642
  _s,
641
643
  vs,
@@ -643,61 +645,79 @@ var _s = function() {
643
645
  null,
644
646
  null
645
647
  );
646
- const ft = Cs.exports;
648
+ const hs = Cs.exports;
647
649
  let Je = 0;
648
- const hs = {
650
+ const ms = {
649
651
  beforeCreate() {
650
652
  this.uuid = Je.toString(), Je += 1;
651
653
  }
652
654
  };
653
- var ms = function() {
655
+ var ps = function() {
654
656
  var t = this, n = t._self._c;
655
- return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
656
- }, ps = [], Ss = /* @__PURE__ */ V(
657
- hs,
657
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
658
+ }, ws = [], Ss = /* @__PURE__ */ Y(
658
659
  ms,
659
660
  ps,
661
+ ws,
660
662
  !1,
661
663
  null,
662
664
  null
663
665
  );
664
- const Ls = Ss.exports;
665
- let Ke = 0;
666
- const ws = {
666
+ const _t = Ss.exports;
667
+ let Qe = 0;
668
+ const Ls = {
667
669
  beforeCreate() {
668
- this.uuid = Ke.toString(), Ke += 1;
670
+ this.uuid = Qe.toString(), Qe += 1;
669
671
  }
670
672
  };
671
673
  var Es = function() {
672
674
  var t = this, n = t._self._c;
673
- return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
674
- }, ys = [], Rs = /* @__PURE__ */ V(
675
- ws,
675
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
676
+ }, Rs = [], ys = /* @__PURE__ */ Y(
677
+ Ls,
676
678
  Es,
677
- ys,
679
+ Rs,
678
680
  !1,
679
681
  null,
680
682
  null
681
683
  );
682
- const bs = Rs.exports;
683
- let Qe = 0;
684
- const Os = {
684
+ const bs = ys.exports;
685
+ let et = 0;
686
+ const As = {
685
687
  beforeCreate() {
686
- this.uuid = Qe.toString(), Qe += 1;
688
+ this.uuid = et.toString(), et += 1;
687
689
  }
688
690
  };
689
- var As = function() {
691
+ var Os = function() {
690
692
  var t = this, n = t._self._c;
691
- return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
692
- }, Ts = [], Ns = /* @__PURE__ */ V(
693
- Os,
693
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
694
+ }, Ns = [], Ts = /* @__PURE__ */ Y(
694
695
  As,
695
- Ts,
696
+ Os,
697
+ Ns,
698
+ !1,
699
+ null,
700
+ null
701
+ );
702
+ const Is = Ts.exports;
703
+ let tt = 0;
704
+ const Ds = {
705
+ beforeCreate() {
706
+ this.uuid = tt.toString(), tt += 1;
707
+ }
708
+ };
709
+ var xs = function() {
710
+ var t = this, n = t._self._c;
711
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
712
+ }, Fs = [], Ms = /* @__PURE__ */ Y(
713
+ Ds,
714
+ xs,
715
+ Fs,
696
716
  !1,
697
717
  null,
698
718
  null
699
719
  );
700
- const Is = Ns.exports, Ds = {
720
+ const Bs = Ms.exports, Ps = {
701
721
  "en-US": {
702
722
  columnActions: "{name} column actions",
703
723
  freezeColumn: "Freeze column",
@@ -729,11 +749,11 @@ const Is = Ns.exports, Ds = {
729
749
  selectAll: "Selecionar tudo",
730
750
  unfreezeColumn: "Descongelar coluna"
731
751
  }
732
- }, Fs = {
733
- i18n: { messages: Ds },
752
+ }, $s = {
753
+ i18n: { messages: Ps },
734
754
  name: "data-grid-columns"
735
- }, xs = /* @__PURE__ */ Q({
736
- ...Fs,
755
+ }, zs = /* @__PURE__ */ oe({
756
+ ...$s,
737
757
  props: {
738
758
  /**
739
759
  * Column definitions using 'key' to relate to data object.
@@ -859,198 +879,198 @@ const Is = Ns.exports, Ds = {
859
879
  },
860
880
  emits: ["sort", "column-hover"],
861
881
  setup(s, { expose: t, emit: n }) {
862
- const e = s, o = 100, { t: a } = ie(), { columns: i, sortBy: C } = Oe(e), v = b({}), f = b({}), m = b(), c = b(), E = (r) => n(k.SELECT_ALL_ROWS, r), l = (r) => r.field === q, d = L(() => [
882
+ const e = s, o = 100, { t: l } = ue(), { columns: a, sortBy: g } = Ae(e), _ = y({}), f = y({}), S = y(), c = y(), p = (d) => n(H.SELECT_ALL_ROWS, d), r = (d) => d.field === Q, u = m(() => [
863
883
  {
864
- text: a("selectPage"),
865
- handler: () => E(!0)
884
+ text: l("selectPage"),
885
+ handler: () => p(!0)
866
886
  },
867
887
  {
868
- text: a("selectAll"),
869
- handler: () => n(k.SELECT_ALL_ACROSS_PAGES)
888
+ text: l("selectAll"),
889
+ handler: () => n(H.SELECT_ALL_ACROSS_PAGES)
870
890
  }
871
- ]), { startResize: u, isResizing: h, columnHoverEventToEmitAfterResizing: p } = Bn(i, n), { isSorting: O, getSortingDirection: y, sortByColumnField: F } = Yn(C, i, n), z = (r) => {
872
- var oe;
873
- if (!r.sortable)
891
+ ]), { startResize: C, isResizing: h, columnHoverEventToEmitAfterResizing: i } = kn(a, n), { isSorting: L, getSortingDirection: w, sortByColumnField: D } = es(g, a, n), z = (d) => {
892
+ var x;
893
+ if (!d.sortable)
874
894
  return null;
875
- const M = (oe = e.sortBy.find(({ field: le }) => le === r.field)) == null ? void 0 : oe.direction;
876
- return M ? {
877
- [ae.ASCENDING]: Ce.ASCENDING,
878
- [ae.DESCENDING]: Ce.DESCENDING
879
- }[M] : Ce.NONE;
880
- }, S = L(() => (r) => e.hasDraggableColumns ? {
881
- dragstart: (M) => {
882
- n(k.COLUMN_DRAG_START, r, M);
895
+ const P = (x = e.sortBy.find(({ field: G }) => G === d.field)) == null ? void 0 : x.direction;
896
+ return P ? {
897
+ [ce.ASCENDING]: Ce.ASCENDING,
898
+ [ce.DESCENDING]: Ce.DESCENDING
899
+ }[P] : Ce.NONE;
900
+ }, F = m(() => (d) => e.hasDraggableColumns ? {
901
+ dragstart: (P) => {
902
+ n(H.COLUMN_DRAG_START, d, P);
883
903
  },
884
- dragover: (M) => {
885
- M.preventDefault();
904
+ dragover: (P) => {
905
+ P.preventDefault();
886
906
  },
887
- dragenter: (M) => {
888
- M.preventDefault(), n(k.COLUMN_DRAG_ENTER, r, M);
907
+ dragenter: (P) => {
908
+ P.preventDefault(), n(H.COLUMN_DRAG_ENTER, d, P);
889
909
  },
890
910
  drop: () => {
891
- n(k.COLUMN_DROP, r);
911
+ n(H.COLUMN_DROP, d);
892
912
  },
893
913
  dragend: () => {
894
- n(k.COLUMN_DRAG_END);
914
+ n(H.COLUMN_DRAG_END);
895
915
  }
896
- } : {}), w = L(() => (r) => [
916
+ } : {}), A = m(() => (d) => [
897
917
  {
898
- text: a("moveColumnLeft"),
899
- handler: () => n(k.COLUMN_MOVE, r, -1),
900
- icon: Tn,
901
- disabled: e.columns[0].field === r.field
918
+ text: l("moveColumnLeft"),
919
+ handler: () => n(H.COLUMN_MOVE, d, -1),
920
+ icon: Fn,
921
+ disabled: e.columns[0].field === d.field
902
922
  },
903
923
  {
904
- text: a("moveColumnRight"),
905
- handler: () => n(k.COLUMN_MOVE, r, 1),
906
- icon: fs,
907
- disabled: e.columns[e.columns.length - 1].field === r.field
924
+ text: l("moveColumnRight"),
925
+ handler: () => n(H.COLUMN_MOVE, d, 1),
926
+ icon: hs,
927
+ disabled: e.columns[e.columns.length - 1].field === d.field
908
928
  },
909
929
  {
910
- text: r != null && r.frozen ? a("unfreezeColumn") : a("freezeColumn"),
911
- handler: () => n(k.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
912
- icon: ft
930
+ text: d != null && d.frozen ? l("unfreezeColumn") : l("freezeColumn"),
931
+ handler: () => n(H.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
932
+ icon: _t
913
933
  },
914
934
  {
915
- text: (r == null ? void 0 : r.visible) !== !1 ? a("hideColumn") : a("showColumn"),
935
+ text: (d == null ? void 0 : d.visible) !== !1 ? l("hideColumn") : l("showColumn"),
916
936
  handler: () => {
917
- n(k.COLUMN_UPDATE, {
918
- ...r,
919
- visible: (r == null ? void 0 : r.visible) === !1
937
+ n(H.COLUMN_UPDATE, {
938
+ ...d,
939
+ visible: (d == null ? void 0 : d.visible) === !1
920
940
  });
921
941
  },
922
- icon: (r == null ? void 0 : r.visible) !== !1 ? Nn : In,
923
- disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && e.isOnlyOneVisibleColumn
942
+ icon: (d == null ? void 0 : d.visible) !== !1 ? Mn : Bn,
943
+ disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && e.isOnlyOneVisibleColumn
924
944
  }
925
- ]), N = (r) => {
926
- m.value = r.field, c.value && clearTimeout(c.value);
927
- }, x = () => {
928
- const r = setTimeout(() => {
929
- m.value = "";
945
+ ]), E = (d) => {
946
+ S.value = d.field, c.value && clearTimeout(c.value);
947
+ }, O = () => {
948
+ const d = setTimeout(() => {
949
+ S.value = "";
930
950
  }, o);
931
- c.value = r;
932
- }, $ = (r) => {
933
- let M = {
951
+ c.value = d;
952
+ }, U = (d) => {
953
+ let P = {
934
954
  mouseenter: () => {
935
- N(r), h.value ? p.value = r : n("column-hover", r);
955
+ E(d), h.value ? i.value = d : n("column-hover", d);
936
956
  },
937
957
  mouseleave: () => {
938
- x(), h.value ? p.value = null : n("column-hover", null);
958
+ O(), h.value ? i.value = null : n("column-hover", null);
939
959
  },
940
- focus: () => N(r)
960
+ focus: () => E(d)
941
961
  };
942
- return l(r) || (M = {
943
- ...M,
944
- ...S.value(r)
945
- }), M;
946
- }, g = (r) => r.infoIconTooltip || r.sortable || e.hasColumnPanel, B = (r, M) => {
947
- var Z;
948
- ((Z = v.value) == null ? void 0 : Z[M]) === void 0 && (v.value = { ...v.value, [M]: null }), r !== null && (v.value[M] = r);
949
- }, I = L(() => {
950
- var M;
951
- const r = {
962
+ return r(d) || (P = {
963
+ ...P,
964
+ ...F.value(d)
965
+ }), P;
966
+ }, v = (d) => d.infoIconTooltip || d.sortable || e.hasColumnPanel, M = (d, P) => {
967
+ var R;
968
+ ((R = _.value) == null ? void 0 : R[P]) === void 0 && (_.value = { ..._.value, [P]: null }), d !== null && (_.value[P] = d);
969
+ }, N = m(() => {
970
+ var P;
971
+ const d = {
952
972
  "b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
953
973
  };
954
- return (M = i.value[0]) != null && M.frozen ? {
955
- ...r,
974
+ return (P = a.value[0]) != null && P.frozen ? {
975
+ ...d,
956
976
  "b-data-grid-columns--frozen": !0,
957
977
  "b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
958
978
  "b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
959
979
  } : {
960
- ...r,
980
+ ...d,
961
981
  "b-data-grid-columns--unfrozen": !0
962
982
  };
963
- }), D = (r, M) => r && M === 0 ? We.BOTTOM_START : We.BOTTOM_END, G = (r, M) => {
964
- var Z, oe, le, de, fe, W, re, ge, ce, _e;
983
+ }), I = (d, P) => d && P === 0 ? Ve.BOTTOM_START : Ve.BOTTOM_END, V = (d, P) => {
984
+ var R, x, G, J, se, le, te, j, fe, ve;
965
985
  return {
966
- "b-data-grid-columns__column--column-hovered": r.field === e.hoveredOverColumnState.hoveredOverColumnField,
967
- "b-data-grid-columns__column--column-hovered-no-border-left": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
968
- "b-data-grid-columns__column--column-hovered-no-border-right": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
969
- "b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && M === i.value.length - 1,
970
- "b-data-grid-columns__column--sortable": r.sortable,
971
- "b-data-grid-columns__column--padding-left-unset": ((Z = r == null ? void 0 : r.padding) == null ? void 0 : Z.left) === !1,
972
- "b-data-grid-columns__column--padding-right-unset": ((oe = r == null ? void 0 : r.padding) == null ? void 0 : oe.right) === !1,
973
- "b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
974
- "b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
975
- "b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((de = (le = e.draggingColumns) == null ? void 0 : le.dragging) == null ? void 0 : de.field),
976
- "b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((W = (fe = e.draggingColumns) == null ? void 0 : fe.target) == null ? void 0 : W.field) && ((re = e.draggingColumns) == null ? void 0 : re.dragToLeft),
977
- "b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((ce = (ge = e.draggingColumns) == null ? void 0 : ge.target) == null ? void 0 : ce.field) && !((_e = e.draggingColumns) != null && _e.dragToLeft),
978
- "b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || e.hasColumnPanel && m.value === r.field || e.selectableAcrossPages
986
+ "b-data-grid-columns__column--column-hovered": d.field === e.hoveredOverColumnState.hoveredOverColumnField,
987
+ "b-data-grid-columns__column--column-hovered-no-border-left": d.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
988
+ "b-data-grid-columns__column--column-hovered-no-border-right": d.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
989
+ "b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && P === a.value.length - 1,
990
+ "b-data-grid-columns__column--sortable": d.sortable,
991
+ "b-data-grid-columns__column--padding-left-unset": ((R = d == null ? void 0 : d.padding) == null ? void 0 : R.left) === !1,
992
+ "b-data-grid-columns__column--padding-right-unset": ((x = d == null ? void 0 : d.padding) == null ? void 0 : x.right) === !1,
993
+ "b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
994
+ "b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
995
+ "b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((J = (G = e.draggingColumns) == null ? void 0 : G.dragging) == null ? void 0 : J.field),
996
+ "b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((le = (se = e.draggingColumns) == null ? void 0 : se.target) == null ? void 0 : le.field) && ((te = e.draggingColumns) == null ? void 0 : te.dragToLeft),
997
+ "b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((fe = (j = e.draggingColumns) == null ? void 0 : j.target) == null ? void 0 : fe.field) && !((ve = e.draggingColumns) != null && ve.dragToLeft),
998
+ "b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || e.hasColumnPanel && S.value === d.field || e.selectableAcrossPages
979
999
  };
980
- }, _ = (r) => ({
981
- "b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
982
- }), R = (r) => ({
983
- "b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
984
- }), P = (r) => ({
1000
+ }, k = (d) => ({
1001
+ "b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
1002
+ }), Z = (d) => ({
1003
+ "b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
1004
+ }), $ = (d) => ({
985
1005
  "b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
986
- "b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === r.field && e.hoveredOverColumnState.isSeparatorOffset
987
- }), X = L(() => ({
1006
+ "b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === d.field && e.hoveredOverColumnState.isSeparatorOffset
1007
+ }), B = m(() => ({
988
1008
  "b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
989
1009
  }));
990
1010
  return t({
991
- columnHeaderRefs: v
992
- }), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: a, columns: i, sortBy: C, columnHeaderRefs: v, contextMenuRef: f, hoveredColumnField: m, closingTimeOutId: c, onAllRowSelect: E, isActionsColumn: l, selectAllMenu: d, startResize: u, isResizing: h, columnHoverEventToEmitAfterResizing: p, isSorting: O, getSortingDirection: y, sortByColumnField: F, getSortingColumnDirection: z, draggingEventsForColumn: S, contextualMenuData: w, showContextualMenu: N, hideContextualMenu: x, dataGridColumnEvents: $, hasColumnActions: g, registerColumnsRefs: B, conditionalColumnsClasses: I, computeMenuPosition: D, conditionalColumnClasses: G, conditionalColumnHeaderAndActionsClasses: _, conditionalColumnActionsClasses: R, conditionalColumnSeparatorClasses: P, conditionalColumnHeaderClasses: X, BentoCheckbox: it, BentoDatagridSortDirection: ae, BentoTypography: he, BentoInfoIcon: On, DatagridColumnsEvent: k, BentoMenu: dt, BentoToggleButton: Fe, ArrowUpAndDownSortIcon: is, SortAscendingIcon: Ls, SortDescendingIcon: bs, TriangleDown: Is };
1011
+ columnHeaderRefs: _
1012
+ }), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: g, columnHeaderRefs: _, contextMenuRef: f, hoveredColumnField: S, closingTimeOutId: c, onAllRowSelect: p, isActionsColumn: r, selectAllMenu: u, startResize: C, isResizing: h, columnHoverEventToEmitAfterResizing: i, isSorting: L, getSortingDirection: w, sortByColumnField: D, getSortingColumnDirection: z, draggingEventsForColumn: F, contextualMenuData: A, showContextualMenu: E, hideContextualMenu: O, dataGridColumnEvents: U, hasColumnActions: v, registerColumnsRefs: M, conditionalColumnsClasses: N, computeMenuPosition: I, conditionalColumnClasses: V, conditionalColumnHeaderAndActionsClasses: k, conditionalColumnActionsClasses: Z, conditionalColumnSeparatorClasses: $, conditionalColumnHeaderClasses: B, BentoCheckbox: ut, BentoDatagridSortDirection: ce, BentoTypography: he, BentoInfoIcon: Dn, DatagridColumnsEvent: H, BentoMenu: ct, BentoToggleButton: xe, ArrowUpAndDownSortIcon: fs, SortAscendingIcon: bs, SortDescendingIcon: Is, TriangleDown: Bs };
993
1013
  }
994
1014
  });
995
- var Ms = function() {
1015
+ var Us = function() {
996
1016
  var t = this, n = t._self._c, e = t._self._setupProxy;
997
- return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o, a) {
998
- return n("div", t._g({ key: o.field, ref: (i) => e.registerColumnsRefs(i, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, a), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": a + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1017
+ return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o, l) {
1018
+ return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
999
1019
  return [n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu") } })];
1000
1020
  }, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
1001
1021
  return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
1002
- }, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(i) {
1022
+ }, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(a) {
1003
1023
  return e.sortByColumnField(o.field);
1004
1024
  } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1005
1025
  return [e.getSortingDirection(o.field) ? e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: o.label }) } }) : e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: o.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: o.label }) } })];
1006
- }, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (i) => e.contextMenuRef[o.field] = i, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, a), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(i) {
1026
+ }, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[o.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
1007
1027
  return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
1008
- }, close: function(i) {
1028
+ }, close: function(a) {
1009
1029
  return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
1010
- } } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(i) {
1011
- return e.startResize(t.hasResizableColumns, o.field, i);
1012
- }, click: function(i) {
1013
- i.stopPropagation();
1014
- } } }, [!t.isFrozenColumns || t.isFrozenColumns && a !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
1030
+ } } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(a) {
1031
+ return e.startResize(t.hasResizableColumns, o.field, a);
1032
+ }, click: function(a) {
1033
+ a.stopPropagation();
1034
+ } } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
1015
1035
  }), 0);
1016
- }, Bs = [], Ps = /* @__PURE__ */ V(
1017
- xs,
1018
- Ms,
1019
- Bs,
1036
+ }, ks = [], Ws = /* @__PURE__ */ Y(
1037
+ zs,
1038
+ Us,
1039
+ ks,
1020
1040
  !1,
1021
1041
  null,
1022
1042
  "ba3e9ccf"
1023
1043
  );
1024
- const zs = Ps.exports;
1025
- var ne = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(ne || {});
1026
- let et = 0;
1027
- const $s = {
1044
+ const Gs = Ws.exports;
1045
+ var ie = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(ie || {});
1046
+ let nt = 0;
1047
+ const Hs = {
1028
1048
  beforeCreate() {
1029
- this.uuid = et.toString(), et += 1;
1049
+ this.uuid = nt.toString(), nt += 1;
1030
1050
  }
1031
1051
  };
1032
- var Us = function() {
1052
+ var Vs = function() {
1033
1053
  var t = this, n = t._self._c;
1034
1054
  return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + t.uuid + ")" } }, [n("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" } }), n("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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
1035
- }, ks = [], Gs = /* @__PURE__ */ V(
1036
- $s,
1037
- Us,
1038
- ks,
1055
+ }, Zs = [], js = /* @__PURE__ */ Y(
1056
+ Hs,
1057
+ Vs,
1058
+ Zs,
1039
1059
  !1,
1040
1060
  null,
1041
1061
  null
1042
1062
  );
1043
- const Ws = Gs.exports, Hs = {
1063
+ const qs = js.exports, Ys = {
1044
1064
  "en-US": {
1045
1065
  toggleColumnFreeze: "Toggle {label} column freeze",
1046
1066
  toggleColumnVisibility: "Toggle {label} column visibility"
1047
1067
  }
1048
- }, Vs = Q({
1049
- i18n: { messages: Hs },
1068
+ }, Xs = oe({
1069
+ i18n: { messages: Ys },
1050
1070
  name: "bento-data-grid",
1051
1071
  components: {
1052
- BentoFreezeIcon: ft,
1053
- BentoToggle: ct
1072
+ BentoFreezeIcon: _t,
1073
+ BentoToggle: ft
1054
1074
  },
1055
1075
  props: {
1056
1076
  /**
@@ -1070,53 +1090,53 @@ const Ws = Gs.exports, Hs = {
1070
1090
  },
1071
1091
  emits: ["visible-column", "updated-column"],
1072
1092
  setup(s, { emit: t }) {
1073
- const { t: n } = ie(), e = b(!1), o = L(() => {
1093
+ const { t: n } = ue(), e = y(!1), o = m(() => {
1074
1094
  var c;
1075
1095
  return (c = s.column) == null ? void 0 : c.frozen;
1076
- }), a = L(() => {
1096
+ }), l = m(() => {
1077
1097
  var c;
1078
1098
  return ((c = s.column) == null ? void 0 : c.visible) !== !1;
1079
- }), i = () => {
1080
- t("visible-column", { ...s.column, visible: !a.value });
1081
- }, C = () => {
1099
+ }), a = () => {
1100
+ t("visible-column", { ...s.column, visible: !l.value });
1101
+ }, g = () => {
1082
1102
  t("updated-column", { ...s.column, frozen: !o.value });
1083
- }, v = () => {
1103
+ }, _ = () => {
1084
1104
  o.value || (e.value = !0);
1085
1105
  }, f = () => {
1086
1106
  o.value || (e.value = !1);
1087
- }, m = L(() => ({
1107
+ }, S = m(() => ({
1088
1108
  "b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
1089
1109
  }));
1090
1110
  return {
1091
1111
  // Values
1092
1112
  isFreezeIconOptionShown: e,
1093
1113
  isColumnFrozen: o,
1094
- freezeIconConditionalClasses: m,
1095
- isColumnVisible: a,
1114
+ freezeIconConditionalClasses: S,
1115
+ isColumnVisible: l,
1096
1116
  // Methods
1097
- toggleColumnVisibility: i,
1098
- showFreezeIcon: v,
1117
+ toggleColumnVisibility: a,
1118
+ showFreezeIcon: _,
1099
1119
  hideFreezeIcon: f,
1100
- toggleColumnFreeze: C,
1120
+ toggleColumnFreeze: g,
1101
1121
  // Translations
1102
1122
  t: n
1103
1123
  };
1104
1124
  }
1105
1125
  });
1106
- var Zs = function() {
1126
+ var Ks = function() {
1107
1127
  var t = this, n = t._self._c;
1108
1128
  return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: t.isColumnFrozen || t.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
1109
1129
  return t.toggleColumnFreeze.apply(null, arguments);
1110
1130
  } } })], 1);
1111
- }, js = [], qs = /* @__PURE__ */ V(
1112
- Vs,
1113
- Zs,
1114
- js,
1131
+ }, Js = [], Qs = /* @__PURE__ */ Y(
1132
+ Xs,
1133
+ Ks,
1134
+ Js,
1115
1135
  !1,
1116
1136
  null,
1117
1137
  "eae7733f"
1118
1138
  );
1119
- const Ys = qs.exports, Xs = {
1139
+ const eo = Qs.exports, to = {
1120
1140
  "en-US": {
1121
1141
  closeConfigSettingsPanel: "Close configuration settings panel",
1122
1142
  closeSearch: "Close search",
@@ -1142,22 +1162,22 @@ const Ys = qs.exports, Xs = {
1142
1162
  search: "Buscar",
1143
1163
  size: "Tamanho"
1144
1164
  }
1145
- }, Js = Q({
1146
- i18n: { messages: Xs },
1165
+ }, no = oe({
1166
+ i18n: { messages: to },
1147
1167
  name: "bento-data-grid",
1148
1168
  components: {
1149
- BentoButton: rt,
1150
- BentoCrossIcon: lt,
1151
- BentoPopover: An,
1152
- BentoSettingsIcon: Ws,
1153
- BentoToggleButton: Fe,
1154
- BentoDataGridConfigSettingsConfigRow: Ys,
1155
- BentoSearchBar: Dn,
1156
- BentoSearchIcon: xn,
1157
- BentoToggle: ct,
1169
+ BentoButton: dt,
1170
+ BentoCrossIcon: it,
1171
+ BentoPopover: xn,
1172
+ BentoSettingsIcon: qs,
1173
+ BentoToggleButton: xe,
1174
+ BentoDataGridConfigSettingsConfigRow: eo,
1175
+ BentoSearchBar: Pn,
1176
+ BentoSearchIcon: zn,
1177
+ BentoToggle: ft,
1158
1178
  BentoTypography: he
1159
1179
  },
1160
- directives: { BentoClickOutsideDirective: Mn },
1180
+ directives: { BentoClickOutsideDirective: Un },
1161
1181
  props: {
1162
1182
  /**
1163
1183
  * Column definitions
@@ -1174,71 +1194,71 @@ const Ys = qs.exports, Xs = {
1174
1194
  default: !1
1175
1195
  }
1176
1196
  },
1177
- emits: [ne.CONFIG_SETTINGS, ne.UPDATE_COLUMNS],
1197
+ emits: [ie.CONFIG_SETTINGS, ie.UPDATE_COLUMNS],
1178
1198
  setup(s, { emit: t }) {
1179
- const { t: n } = ie(), e = b(null), o = ye("data-grid-config-settings-popover"), a = b(null), i = b(!1), C = b(!0), v = b(null), f = b(""), m = we(s, "columns"), c = b(!1), E = Fn(f, m), l = () => {
1199
+ const { t: n } = ue(), e = y(null), o = Re("data-grid-config-settings-popover"), l = y(null), a = y(!1), g = y(!0), _ = y(null), f = y(""), S = Le(s, "columns"), c = y(!1), p = $n(f, S), r = () => {
1180
1200
  f.value = "";
1181
- }, d = L(
1182
- () => !s.columns.some((w) => w.visible === !1 && !w.mandatory)
1183
- ), u = () => {
1184
- l(), c.value = !c.value, c.value ? K(() => {
1185
- var w;
1186
- return (w = a.value.$refs.bentoInputField) == null ? void 0 : w.focusInput();
1187
- }) : K(() => {
1188
- var w, N;
1189
- return (N = (w = v == null ? void 0 : v.value) == null ? void 0 : w.$el) == null ? void 0 : N.focus();
1190
- }), C.value = d.value;
1191
- }, h = (w) => w.mandatory ?? !1, p = (w) => {
1192
- const N = s.columns.map((x) => ({
1193
- ...x,
1194
- visible: w.field === x.field ? w.visible : x.visible
1201
+ }, u = m(
1202
+ () => !s.columns.some((A) => A.visible === !1 && !A.mandatory)
1203
+ ), C = () => {
1204
+ r(), c.value = !c.value, c.value ? ne(() => {
1205
+ var A;
1206
+ return (A = l.value.$refs.bentoInputField) == null ? void 0 : A.focusInput();
1207
+ }) : ne(() => {
1208
+ var A, E;
1209
+ return (E = (A = _ == null ? void 0 : _.value) == null ? void 0 : A.$el) == null ? void 0 : E.focus();
1210
+ }), g.value = u.value;
1211
+ }, h = (A) => A.mandatory ?? !1, i = (A) => {
1212
+ const E = s.columns.map((O) => ({
1213
+ ...O,
1214
+ visible: A.field === O.field ? A.visible : O.visible
1195
1215
  }));
1196
- t(ne.UPDATE_COLUMNS, N);
1197
- }, O = (w) => {
1198
- w ? t(
1199
- ne.UPDATE_COLUMNS,
1200
- s.columns.map((N) => ({ ...N, visible: !0 }))
1216
+ t(ie.UPDATE_COLUMNS, E);
1217
+ }, L = (A) => {
1218
+ A ? t(
1219
+ ie.UPDATE_COLUMNS,
1220
+ s.columns.map((E) => ({ ...E, visible: !0 }))
1201
1221
  ) : t(
1202
- ne.UPDATE_COLUMNS,
1203
- s.columns.map((N) => ({ ...N, visible: (N == null ? void 0 : N.mandatory) === !0 }))
1222
+ ie.UPDATE_COLUMNS,
1223
+ s.columns.map((E) => ({ ...E, visible: (E == null ? void 0 : E.mandatory) === !0 }))
1204
1224
  );
1205
- }, y = (w) => {
1206
- const N = s.columns.map((x) => ({
1207
- ...x,
1208
- frozen: w.field === x.field ? !!(w != null && w.frozen) : !!(x != null && x.frozen)
1225
+ }, w = (A) => {
1226
+ const E = s.columns.map((O) => ({
1227
+ ...O,
1228
+ frozen: A.field === O.field ? !!(A != null && A.frozen) : !!(O != null && O.frozen)
1209
1229
  }));
1210
- t(ne.UPDATE_COLUMNS, N);
1211
- }, F = (w) => {
1212
- i.value = w, C.value = d.value;
1230
+ t(ie.UPDATE_COLUMNS, E);
1231
+ }, D = (A) => {
1232
+ a.value = A, g.value = u.value;
1213
1233
  };
1214
1234
  return {
1215
1235
  // Values
1216
1236
  configSettingsButtonRef: e,
1217
1237
  popoverId: o,
1218
- isConfigSettingsPanelOpen: i,
1219
- allColumnsVisbilityToggleState: C,
1220
- filteredColumnVisibilityColumns: E,
1238
+ isConfigSettingsPanelOpen: a,
1239
+ allColumnsVisbilityToggleState: g,
1240
+ filteredColumnVisibilityColumns: p,
1221
1241
  searchTerm: f,
1222
1242
  isColumnVisibilityFilterShown: c,
1223
- searchBarRef: a,
1224
- searchButtonRef: v,
1225
- DATAGRID_ACTIONS_COLUMN_FIELD_NAME: q,
1243
+ searchBarRef: l,
1244
+ searchButtonRef: _,
1245
+ DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Q,
1226
1246
  // Methods
1227
- setConfigSettingsPanelVisibility: F,
1228
- emitCondensedToggle: (w) => t(ne.CONFIG_SETTINGS, w),
1229
- toggleAllColumnVisibility: O,
1230
- clearAction: l,
1231
- toggleColumnFilter: u,
1232
- emitVisibleColumns: p,
1233
- emitFrozenColumns: y,
1234
- onClickOutside: () => F(!1),
1247
+ setConfigSettingsPanelVisibility: D,
1248
+ emitCondensedToggle: (A) => t(ie.CONFIG_SETTINGS, A),
1249
+ toggleAllColumnVisibility: L,
1250
+ clearAction: r,
1251
+ toggleColumnFilter: C,
1252
+ emitVisibleColumns: i,
1253
+ emitFrozenColumns: w,
1254
+ onClickOutside: () => D(!1),
1235
1255
  isColumnVisibilityToggleDisabled: h,
1236
1256
  // Translations
1237
1257
  t: n
1238
1258
  };
1239
1259
  }
1240
1260
  });
1241
- var Ks = function() {
1261
+ var so = function() {
1242
1262
  var t = this, n = t._self._c;
1243
1263
  return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
1244
1264
  return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
@@ -1257,15 +1277,15 @@ var Ks = function() {
1257
1277
  }, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
1258
1278
  return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
1259
1279
  }), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
1260
- }, Qs = [], eo = /* @__PURE__ */ V(
1261
- Js,
1262
- Ks,
1263
- Qs,
1280
+ }, oo = [], lo = /* @__PURE__ */ Y(
1281
+ no,
1282
+ so,
1283
+ oo,
1264
1284
  !1,
1265
1285
  null,
1266
1286
  "e7f0a261"
1267
1287
  );
1268
- const to = eo.exports, gt = {
1288
+ const ao = lo.exports, vt = {
1269
1289
  "en-US": {
1270
1290
  gettingYourData: "Getting your data",
1271
1291
  loading: "Loading",
@@ -1283,52 +1303,52 @@ const to = eo.exports, gt = {
1283
1303
  loading: "Carregando",
1284
1304
  showMore: "Mostrar mais"
1285
1305
  }
1286
- }, no = {
1287
- i18n: { messages: gt }
1288
- }, so = /* @__PURE__ */ Q({
1289
- ...no,
1306
+ }, io = {
1307
+ i18n: { messages: vt }
1308
+ }, ro = /* @__PURE__ */ oe({
1309
+ ...io,
1290
1310
  __name: "data-grid-lazy-load",
1291
1311
  props: {
1292
1312
  loading: { type: Boolean },
1293
1313
  isInfiniteScroll: { type: Boolean }
1294
1314
  },
1295
1315
  setup(s) {
1296
- const { t } = ie();
1297
- return { __sfc: !0, t, BentoLoadingButton: bn, BentoLoadingButtonState: Rn, BentoLoadingIndicator: Ne, BentoDatagridEvent: A };
1316
+ const { t } = ue();
1317
+ return { __sfc: !0, t, BentoLoadingButton: In, BentoLoadingButtonState: Tn, BentoLoadingIndicator: Te, BentoDatagridEvent: b };
1298
1318
  }
1299
1319
  });
1300
- var oo = function() {
1320
+ var co = function() {
1301
1321
  var t = this, n = t._self._c, e = t._self._setupProxy;
1302
1322
  return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
1303
1323
  return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
1304
1324
  } } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
1305
- }, lo = [], ao = /* @__PURE__ */ V(
1306
- so,
1307
- oo,
1308
- lo,
1325
+ }, uo = [], fo = /* @__PURE__ */ Y(
1326
+ ro,
1327
+ co,
1328
+ uo,
1309
1329
  !1,
1310
1330
  null,
1311
1331
  "fd9b8204"
1312
1332
  );
1313
- const io = ao.exports;
1314
- let tt = 0;
1315
- const ro = {
1333
+ const go = fo.exports;
1334
+ let st = 0;
1335
+ const _o = {
1316
1336
  beforeCreate() {
1317
- this.uuid = tt.toString(), tt += 1;
1337
+ this.uuid = st.toString(), st += 1;
1318
1338
  }
1319
1339
  };
1320
- var co = function() {
1340
+ var vo = function() {
1321
1341
  var t = this, n = t._self._c;
1322
1342
  return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("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" } })]);
1323
- }, uo = [], fo = /* @__PURE__ */ V(
1324
- ro,
1325
- co,
1326
- uo,
1343
+ }, Co = [], ho = /* @__PURE__ */ Y(
1344
+ _o,
1345
+ vo,
1346
+ Co,
1327
1347
  !1,
1328
1348
  null,
1329
1349
  null
1330
1350
  );
1331
- const go = fo.exports, _o = {
1351
+ const mo = ho.exports, po = {
1332
1352
  "en-US": {
1333
1353
  copy: "Copy",
1334
1354
  edit: "Edit",
@@ -1347,11 +1367,11 @@ const go = fo.exports, _o = {
1347
1367
  more: "Mais",
1348
1368
  open: "Abrir"
1349
1369
  }
1350
- }, vo = {
1351
- i18n: { messages: _o },
1370
+ }, wo = {
1371
+ i18n: { messages: po },
1352
1372
  name: "data-grid-cell-actions"
1353
- }, Co = /* @__PURE__ */ Q({
1354
- ...vo,
1373
+ }, So = /* @__PURE__ */ oe({
1374
+ ...wo,
1355
1375
  props: {
1356
1376
  /**
1357
1377
  * Column definitions using 'key' to relate to data object.
@@ -1366,7 +1386,21 @@ const go = fo.exports, _o = {
1366
1386
  */
1367
1387
  columnKey: {
1368
1388
  type: String,
1369
- required: !0
1389
+ default: void 0
1390
+ },
1391
+ /**
1392
+ * Set to true if the datagrid has been scrolled and the right side has overflowing space.
1393
+ */
1394
+ hasRightOverflow: {
1395
+ type: Boolean,
1396
+ default: !1
1397
+ },
1398
+ /**
1399
+ * Set if set to true will teleport the action menu component
1400
+ */
1401
+ teleportMenu: {
1402
+ type: Boolean,
1403
+ default: !1
1370
1404
  },
1371
1405
  /**
1372
1406
  * The row data item object.
@@ -1376,21 +1410,25 @@ const go = fo.exports, _o = {
1376
1410
  required: !0
1377
1411
  }
1378
1412
  },
1379
- emits: ["menu-item-click-close"],
1413
+ emits: ["menu-open", "menu-close", "menu-item-click"],
1380
1414
  setup(s, { emit: t }) {
1381
- const n = s, { t: e } = ie();
1382
- function o(l) {
1383
- return typeof l == "function";
1415
+ const n = s, { t: e } = ue(), o = m(() => n.columnKey === void 0), l = m(() => ({
1416
+ "b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": o.value && n.hasRightOverflow
1417
+ })), a = m(() => ({
1418
+ "b-data-grid-cell-actions__actions--with-row-actions": o.value
1419
+ })), g = m(() => !o.value || o.value && n.hasRightOverflow);
1420
+ function _(i) {
1421
+ return typeof i == "function";
1384
1422
  }
1385
- const a = L(() => {
1386
- var d;
1387
- const l = o(n.cellActions) ? (d = n.cellActions) == null ? void 0 : d.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
1388
- return (l == null ? void 0 : l.length) > 2 && at(
1423
+ const f = m(() => {
1424
+ var L;
1425
+ const i = _(n.cellActions) ? (L = n.cellActions) == null ? void 0 : L.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
1426
+ return (i == null ? void 0 : i.length) > 2 && rt(
1389
1427
  "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
1390
- ), l == null ? void 0 : l.slice(0, 2);
1391
- }), i = L(() => (l, d) => {
1392
- if (!(!d && l.isShort || d && !l.isShort))
1393
- switch (l.variant) {
1428
+ ), i == null ? void 0 : i.slice(0, 2);
1429
+ }), S = m(() => (i, L) => {
1430
+ if (!(!L && i.isShort || L && !i.isShort))
1431
+ switch (i.variant) {
1394
1432
  case "copy":
1395
1433
  return e("copy");
1396
1434
  case "edit":
@@ -1400,34 +1438,38 @@ const go = fo.exports, _o = {
1400
1438
  case "more":
1401
1439
  return e("more");
1402
1440
  default:
1403
- return l.title;
1441
+ return i.title;
1404
1442
  }
1405
- }), C = (l) => (l == null ? void 0 : l.event) !== void 0 ? {
1406
- click: () => l.event(n.rowDataItem, n.columnKey)
1407
- } : {}, v = (l) => ({
1408
- ...l,
1443
+ }), c = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
1444
+ click: () => i.event(n.rowDataItem, n.columnKey)
1445
+ } : {}, p = (i) => ({
1446
+ ...i,
1409
1447
  handler: () => {
1410
- l != null && l.handler && typeof l.handler == "function" && (l == null || l.handler()), l != null && l.event && typeof l.event == "function" && (l == null || l.event(n.rowDataItem, n.columnKey));
1448
+ i != null && i.handler && typeof i.handler == "function" && (i == null || i.handler()), i != null && i.event && typeof i.event == "function" && (i == null || i.event(n.rowDataItem, n.columnKey));
1411
1449
  }
1412
- }), f = (l) => l.map((d) => {
1413
- const u = d;
1414
- return u != null && u.items && (u.items = f(u.items)), { ...v(u) };
1450
+ }), r = (i) => i.map((L) => {
1451
+ const w = L;
1452
+ return w != null && w.items && (w.items = r(w.items)), { ...p(w) };
1415
1453
  });
1416
- return { __sfc: !0, t: e, props: n, emit: t, isBentoColumnCellActionsByCellValueDataFn: o, computedCellActions: a, getButtonTitle: i, generateButtonEvents: C, generateMenuEvents: v, transformMenuEvents: f, getCopyText: (l) => {
1417
- var d, u;
1418
- return (l == null ? void 0 : l.getCopyData) !== void 0 ? l.getCopyData(n.rowDataItem, n.columnKey) : (u = (d = n.rowDataItem) == null ? void 0 : d[n.columnKey]) == null ? void 0 : u.toString();
1419
- }, shouldShowMenuIconRight: (l) => l.iconRight || ((l == null ? void 0 : l.variant) === "more" || (l == null ? void 0 : l.variant) === "open") && !l.isShort, shouldShowMenuIconLeft: (l) => l.iconLeft || (l == null ? void 0 : l.variant) === "more", BentoButton: rt, BentoMenu: dt, Copy: wn, Edit1Icon: go, ExternalLinkIcon: Ln, OptionsVerticalIcon: pn };
1454
+ return { __sfc: !0, t: e, props: n, emit: t, isRowActions: o, conditionalCellActionsBackgroundGradientClasses: l, conditionalCellActionsClasses: a, showGradientElement: g, isBentoColumnCellActionsByCellValueDataFn: _, computedCellActions: f, getButtonTitle: S, generateButtonEvents: c, generateMenuEvents: p, transformMenuEvents: r, getCopyText: (i) => {
1455
+ var L, w;
1456
+ return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (w = (L = n.rowDataItem) == null ? void 0 : L[n.columnKey]) == null ? void 0 : w.toString() : "";
1457
+ }, shouldShowMenuIconRight: (i) => i.iconRight || ((i == null ? void 0 : i.variant) === "more" || (i == null ? void 0 : i.variant) === "open") && !i.isShort, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton: dt, BentoMenu: ct, Copy: An, Edit1Icon: mo, ExternalLinkIcon: bn, OptionsVerticalIcon: Rn };
1420
1458
  }
1421
1459
  });
1422
- var ho = function() {
1460
+ var Lo = function() {
1423
1461
  var t = this, n = t._self._c, e = t._self._setupProxy;
1424
- return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, a) {
1425
- return n("div", { key: a, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
1462
+ return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, l) {
1463
+ return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
1426
1464
  condensed: !0,
1427
1465
  variant: "secondary",
1428
1466
  disabled: o.disabled
1429
- }, teleport: "" }, on: { "menu-item-click": function(i) {
1430
- return e.emit("menu-item-click-close");
1467
+ }, teleport: t.teleportMenu }, on: { open: function(a) {
1468
+ return e.emit("menu-open");
1469
+ }, close: function(a) {
1470
+ return e.emit("menu-close");
1471
+ }, "menu-item-click": function(a) {
1472
+ return e.emit("menu-item-click");
1431
1473
  } }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
1432
1474
  return [(o == null ? void 0 : o.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(o, !0) } })];
1433
1475
  }, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
@@ -1445,27 +1487,27 @@ var ho = function() {
1445
1487
  return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
1446
1488
  }, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
1447
1489
  }), 0)])]);
1448
- }, mo = [], po = /* @__PURE__ */ V(
1449
- Co,
1450
- ho,
1451
- mo,
1490
+ }, Eo = [], Ro = /* @__PURE__ */ Y(
1491
+ So,
1492
+ Lo,
1493
+ Eo,
1452
1494
  !1,
1453
1495
  null,
1454
- "9b907b4f"
1496
+ "b7fa9d51"
1455
1497
  );
1456
- const So = po.exports, _t = Symbol("data-grid slashed zero key");
1457
- var H = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(H || {});
1458
- const Lo = {
1498
+ const Ct = Ro.exports, ht = Symbol("data-grid slashed zero key");
1499
+ var q = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(q || {});
1500
+ const yo = {
1459
1501
  "en-US": {
1460
1502
  collapseNestedContent: "Collapse nested content",
1461
1503
  expandNestedContent: "Expand nested content",
1462
1504
  selectRow: "Select row"
1463
1505
  }
1464
- }, wo = {
1465
- i18n: { messages: Lo },
1506
+ }, bo = {
1507
+ i18n: { messages: yo },
1466
1508
  name: "data-grid-cell"
1467
- }, Eo = /* @__PURE__ */ Q({
1468
- ...wo,
1509
+ }, Ao = /* @__PURE__ */ oe({
1510
+ ...bo,
1469
1511
  props: {
1470
1512
  draggingEventsForRowCell: {
1471
1513
  type: Function,
@@ -1587,106 +1629,113 @@ const Lo = {
1587
1629
  },
1588
1630
  emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
1589
1631
  setup(s, { expose: t, emit: n }) {
1590
- const e = s, o = Te(), a = Ie(o), { t: i } = ie(), C = b(null), v = b(null), f = b(!1), m = b([]), c = L(() => {
1591
- var g;
1592
- return !!((g = e.rowData) != null && g[e.column.field]);
1593
- }), E = L(
1632
+ const e = s, o = Ne(), l = Ie(o), { t: a } = ue(), g = y(null), _ = y(null), f = y(!1), S = y([]), c = m(() => {
1633
+ var v;
1634
+ return !!((v = e.rowData) != null && v[e.column.field]);
1635
+ }), p = m(
1594
1636
  () => {
1595
- var g;
1596
- return e.column.field === q && ((g = e.nestedRowsElementIds) == null ? void 0 : g.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
1637
+ var v;
1638
+ return e.column.field === Q && ((v = e.nestedRowsElementIds) == null ? void 0 : v.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
1597
1639
  }
1598
- ), l = L(
1599
- () => e.column.field === q && !e.selectable && !e.nestedContent
1600
- ), d = (g, B) => (g == null ? void 0 : g.overflow) === Re.ELLIPSIS ? `${B}` : void 0, u = (g) => g ?? "-", h = (g) => e.columnSets.slice(0, g).reduce((B, { columnSet: I }) => B + I.length, 0), p = (g, B) => g + h(B), O = (g, B, I) => h() * g + p(B, I), y = (g) => {
1601
- var B;
1602
- (g === null || !C.value.contains(g) && !((B = m.value) != null && B.map((I) => I.value).some((I) => I === g || (I == null ? void 0 : I.contains(g))))) && (f.value = !1);
1603
- }, F = () => {
1640
+ ), r = m(
1641
+ () => e.column.field === Q && !e.selectable && !e.nestedContent
1642
+ ), u = (v, M) => (v == null ? void 0 : v.overflow) === ye.ELLIPSIS ? `${M}` : void 0, C = (v) => v ?? "-", h = (v) => e.columnSets.slice(0, v).reduce((M, { columnSet: N }) => M + N.length, 0), i = (v, M) => v + h(M), L = (v, M, N) => h() * v + i(M, N), w = (v) => {
1643
+ var M;
1644
+ (v === null || !g.value.contains(v) && !((M = S.value) != null && M.map((N) => N.value).some((N) => N === v || (N == null ? void 0 : N.contains(v))))) && (f.value = !1);
1645
+ }, D = () => {
1604
1646
  f.value = !1;
1605
- }, z = (g) => {
1606
- const I = { ...{
1607
- ...e.draggingEventsForRowCell(g)
1647
+ }, z = (v) => {
1648
+ const N = { ...{
1649
+ ...e.draggingEventsForRowCell(v)
1608
1650
  } };
1609
- return g.frozen && (I.keyup = (D) => n("on-frozen-columns-key-press", D), I.keydown = (D) => n("on-frozen-columns-key-press", D)), g.cellActions && (I.mouseenter = () => {
1651
+ return v.frozen && (N.keyup = (I) => n("on-frozen-columns-key-press", I), N.keydown = (I) => n("on-frozen-columns-key-press", I)), v.cellActions && (N.mouseenter = () => {
1610
1652
  f.value = !0;
1611
- }, I.mouseleave = (D) => {
1612
- f.value = !1, y(D == null ? void 0 : D.relatedTarget);
1613
- }, I.mouseleave = (D) => {
1614
- y(D == null ? void 0 : D.relatedTarget);
1615
- }, I.focus = (D) => {
1653
+ }, N.mouseleave = (I) => {
1654
+ f.value = !1, w(I == null ? void 0 : I.relatedTarget);
1655
+ }, N.mouseleave = (I) => {
1656
+ w(I == null ? void 0 : I.relatedTarget);
1657
+ }, N.focus = (I) => {
1616
1658
  f.value = !0;
1617
- }, I.focusout = (D) => {
1618
- y(D == null ? void 0 : D.relatedTarget);
1619
- }), I;
1620
- }, S = () => {
1659
+ }, N.focusout = (I) => {
1660
+ w(I == null ? void 0 : I.relatedTarget);
1661
+ }), N;
1662
+ }, F = () => {
1621
1663
  n("nested-content-toggled");
1622
1664
  };
1623
- Y(
1665
+ ee(
1624
1666
  () => f.value,
1625
1667
  () => {
1626
1668
  f.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
1627
1669
  }
1628
1670
  );
1629
- const w = (g) => {
1630
- m.value.push(g);
1631
- }, N = (g) => {
1632
- C.value.contains(g == null ? void 0 : g.relatedTarget) || (f.value = !1);
1671
+ const A = (v) => {
1672
+ S.value.push(v);
1673
+ }, E = (v) => {
1674
+ g.value.contains(v == null ? void 0 : v.relatedTarget) || (f.value = !1);
1633
1675
  };
1634
- ot(Sn, {
1635
- registerMenuContainerElement: w,
1636
- menuMouseLeave: N
1676
+ at(yn, {
1677
+ registerMenuContainerElement: A,
1678
+ menuMouseLeave: E
1637
1679
  });
1638
- const x = Ee(_t, b(!1)), $ = (g) => {
1639
- var B, I, D, G, _, R, P;
1680
+ const O = Ee(ht, y(!1)), U = (v) => {
1681
+ var M, N, I, V, k, Z, $;
1640
1682
  return {
1641
- [`b-data-grid-cell--${H.COLUMN_HOVERED}`]: (g == null ? void 0 : g.field) === e.hoveredOverColumnState.hoveredOverColumnField,
1642
- [`b-data-grid-cell--${H.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (g == null ? void 0 : g.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
1643
- [`b-data-grid-cell--${H.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (g == null ? void 0 : g.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
1644
- [`b-data-grid-cell--${H.PADDING_LEFT_UNSET}`]: ((B = g == null ? void 0 : g.padding) == null ? void 0 : B.left) === !1,
1645
- [`b-data-grid-cell--${H.PADDING_RIGHT_UNSET}`]: ((I = g == null ? void 0 : g.padding) == null ? void 0 : I.right) === !1,
1646
- [`b-data-grid-cell--${H.NUMERIC}`]: g == null ? void 0 : g.numeric,
1647
- [`b-data-grid-cell--${H.CONDENSED}`]: e.condensed,
1648
- [`b-data-grid-cell--${H.OVERFLOW_ELLIPSIS}`]: (g == null ? void 0 : g.overflow) === Re.ELLIPSIS,
1649
- [`b-data-grid-cell--${H.IS_COLUMN_REORDERING}`]: ((D = e.draggingColumns.dragging) == null ? void 0 : D.field) === g.field,
1650
- [`b-data-grid-cell--${H.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((G = e.draggingColumns.target) == null ? void 0 : G.field) === g.field && ((_ = e.draggingColumns) == null ? void 0 : _.dragToLeft),
1651
- [`b-data-grid-cell--${H.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((R = e.draggingColumns.target) == null ? void 0 : R.field) === g.field && !((P = e.draggingColumns) != null && P.dragToLeft),
1652
- [`b-data-grid-cell--${H.FROZEN}`]: g == null ? void 0 : g.frozen,
1653
- [`b-data-grid-cell--${H.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
1654
- [`b-data-grid-cell--${H.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && g.field === q,
1655
- [`b-data-grid-cell--${H.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && g.field === q,
1656
- [`b-data-grid-cell--${H.ACTION_COL_SELECTION_ENABLED}`]: g.field === q && e.selectable,
1657
- [`b-data-grid-cell--${H.SLASHED_ZERO}`]: x.value
1683
+ [`b-data-grid-cell--${q.COLUMN_HOVERED}`]: (v == null ? void 0 : v.field) === e.hoveredOverColumnState.hoveredOverColumnField,
1684
+ [`b-data-grid-cell--${q.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (v == null ? void 0 : v.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
1685
+ [`b-data-grid-cell--${q.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (v == null ? void 0 : v.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
1686
+ [`b-data-grid-cell--${q.PADDING_LEFT_UNSET}`]: ((M = v == null ? void 0 : v.padding) == null ? void 0 : M.left) === !1,
1687
+ [`b-data-grid-cell--${q.PADDING_RIGHT_UNSET}`]: ((N = v == null ? void 0 : v.padding) == null ? void 0 : N.right) === !1,
1688
+ [`b-data-grid-cell--${q.NUMERIC}`]: v == null ? void 0 : v.numeric,
1689
+ [`b-data-grid-cell--${q.CONDENSED}`]: e.condensed,
1690
+ [`b-data-grid-cell--${q.OVERFLOW_ELLIPSIS}`]: (v == null ? void 0 : v.overflow) === ye.ELLIPSIS,
1691
+ [`b-data-grid-cell--${q.IS_COLUMN_REORDERING}`]: ((I = e.draggingColumns.dragging) == null ? void 0 : I.field) === v.field,
1692
+ [`b-data-grid-cell--${q.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((V = e.draggingColumns.target) == null ? void 0 : V.field) === v.field && ((k = e.draggingColumns) == null ? void 0 : k.dragToLeft),
1693
+ [`b-data-grid-cell--${q.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Z = e.draggingColumns.target) == null ? void 0 : Z.field) === v.field && !(($ = e.draggingColumns) != null && $.dragToLeft),
1694
+ [`b-data-grid-cell--${q.FROZEN}`]: v == null ? void 0 : v.frozen,
1695
+ [`b-data-grid-cell--${q.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
1696
+ [`b-data-grid-cell--${q.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && v.field === Q,
1697
+ [`b-data-grid-cell--${q.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && v.field === Q,
1698
+ [`b-data-grid-cell--${q.ACTION_COL_SELECTION_ENABLED}`]: v.field === Q && e.selectable,
1699
+ [`b-data-grid-cell--${q.SLASHED_ZERO}`]: O.value
1658
1700
  };
1659
1701
  };
1660
1702
  return t({
1661
- gridcellRef: C
1662
- }), { __sfc: !0, slots: o, hasSlot: a, t: i, props: e, emit: n, gridcellRef: C, cellActionsRef: v, shouldShowCellActions: f, childrenMenuContainerElements: m, hasRowData: c, controlledNestedRowElementIds: E, ariaHidden: l, conditionalTitleAttribute: d, getRowData: u, sumColumnAmountsInColumnSets: h, getColIndex: p, getCellIndex: O, isLeavingCellFocus: y, onMenuClose: F, getGridcellEvents: z, toggleNestedContent: S, registerMenuContainerElement: w, menuMouseLeave: N, hasSlashedZero: x, conditionalRowCellClasses: $, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: q, BentoCheckbox: it, BentoTypography: he, BentoToggleButton: Fe, DataGridCellActions: So, ChevronDownIcon: yn, ChevronUpIcon: En };
1703
+ gridcellRef: g
1704
+ }), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: g, cellActionsRef: _, shouldShowCellActions: f, childrenMenuContainerElements: S, hasRowData: c, controlledNestedRowElementIds: p, ariaHidden: r, conditionalTitleAttribute: u, getRowData: C, sumColumnAmountsInColumnSets: h, getColIndex: i, getCellIndex: L, isLeavingCellFocus: w, onMenuClose: D, getGridcellEvents: z, toggleNestedContent: F, registerMenuContainerElement: A, menuMouseLeave: E, hasSlashedZero: O, conditionalRowCellClasses: U, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Q, BentoCheckbox: ut, BentoTypography: he, BentoToggleButton: xe, DataGridCellActions: Ct, ChevronDownIcon: Nn, ChevronUpIcon: On };
1663
1705
  }
1664
1706
  });
1665
- var yo = function() {
1707
+ var Oo = function() {
1666
1708
  var o;
1667
1709
  var t = this, n = t._self._c, e = t._self._setupProxy;
1668
1710
  return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
1669
1711
  width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
1670
- }, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(a) {
1671
- return t.$emit("select-row", a);
1712
+ }, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(l) {
1713
+ return t.$emit("select-row", l);
1672
1714
  } } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1673
1715
  return [t.isNestedContentExpanded ? n(e.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("collapseNestedContent") } }) : n(e.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("expandNestedContent") } })];
1674
1716
  }, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { attrs: { el: "div" } }, [t._t(`item-${t.column.field}`, function() {
1675
1717
  return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
1676
- }, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [e.shouldShowCellActions && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData }, on: { "menu-item-click-close": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
1677
- }, Ro = [], bo = /* @__PURE__ */ V(
1678
- Eo,
1679
- yo,
1680
- Ro,
1718
+ }, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [e.shouldShowCellActions && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
1719
+ }, No = [], To = /* @__PURE__ */ Y(
1720
+ Ao,
1721
+ Oo,
1722
+ No,
1681
1723
  !1,
1682
1724
  null,
1683
- "67064b26"
1725
+ "dd8a6001"
1684
1726
  );
1685
- const Oo = bo.exports, Ao = {
1727
+ const Io = To.exports, Do = {
1686
1728
  name: "data-grid-row"
1687
- }, To = /* @__PURE__ */ Q({
1688
- ...Ao,
1729
+ }, xo = /* @__PURE__ */ oe({
1730
+ ...Do,
1689
1731
  props: {
1732
+ /**
1733
+ * Row actions property that generates which button to show in row actions area
1734
+ */
1735
+ rowActions: {
1736
+ type: [Function, Array],
1737
+ default: void 0
1738
+ },
1690
1739
  /**
1691
1740
  * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
1692
1741
  */
@@ -1748,6 +1797,13 @@ const Oo = bo.exports, Ao = {
1748
1797
  type: Boolean,
1749
1798
  default: !1
1750
1799
  },
1800
+ /**
1801
+ * Set to true if the datagrid has been scrolled and the right side has overflowing space.
1802
+ */
1803
+ hasRightOverflow: {
1804
+ type: Boolean,
1805
+ default: !1
1806
+ },
1751
1807
  /**
1752
1808
  * Highlighted row IDs.
1753
1809
  */
@@ -1798,6 +1854,13 @@ const Oo = bo.exports, Ao = {
1798
1854
  type: Boolean,
1799
1855
  default: !1
1800
1856
  },
1857
+ /**
1858
+ * The maximum width of the row actions in all rows
1859
+ */
1860
+ rowActionsMaximumWidth: {
1861
+ type: Number,
1862
+ default: 0
1863
+ },
1801
1864
  /**
1802
1865
  * The row data object
1803
1866
  */
@@ -1864,196 +1927,206 @@ const Oo = bo.exports, Ao = {
1864
1927
  },
1865
1928
  emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
1866
1929
  setup(s, { expose: t, emit: n }) {
1867
- const e = s, o = Te(), a = Ie(o), i = b({}), C = b(!1), v = b(), f = ye("nested-content-slot"), m = L(() => e.shouldShowNestedRows(e.rowData)), c = L(
1930
+ const e = s, o = Ne(), l = Ie(o), a = y({}), g = y(!1), _ = y(), f = y(), S = Re("nested-content-slot"), c = y(!1), p = m(() => e.shouldShowNestedRows(e.rowData)), r = m(
1868
1931
  () => {
1869
- var _, R;
1870
- return !e.isNestedRow && e.hasNestedRows && m.value && ((R = (_ = e.rowData) == null ? void 0 : _.children) == null ? void 0 : R.length) > 0;
1932
+ var R, x;
1933
+ return !e.isNestedRow && e.hasNestedRows && p.value && ((x = (R = e.rowData) == null ? void 0 : R.children) == null ? void 0 : x.length) > 0;
1871
1934
  }
1872
- ), E = L(
1935
+ ), u = m(
1873
1936
  () => {
1874
- var _, R;
1875
- return !e.isNestedRow && e.hasNestedRows && m.value && (((_ = e.rowData) == null ? void 0 : _.children) === void 0 || ((R = e == null ? void 0 : e.rowData) == null ? void 0 : R.children.length) === 0);
1937
+ var R, x;
1938
+ return !e.isNestedRow && e.hasNestedRows && p.value && (((R = e.rowData) == null ? void 0 : R.children) === void 0 || ((x = e == null ? void 0 : e.rowData) == null ? void 0 : x.children.length) === 0);
1876
1939
  }
1877
- ), l = L(
1878
- () => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && m.value && !e.isNestedRow
1879
- ), d = L(() => {
1940
+ ), C = m(
1941
+ () => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && p.value && !e.isNestedRow
1942
+ ), h = m(() => {
1880
1943
  if (e.hasNestedContent || e.hasNestedRows) {
1881
- const _ = C.value.toString();
1944
+ const R = g.value.toString();
1882
1945
  return {
1883
- "aria-expanded": l.value ? _ : void 0,
1946
+ "aria-expanded": C.value ? R : void 0,
1884
1947
  "aria-level": e.isNestedRow ? "2" : "1",
1885
1948
  "aria-posinset": e.rowIndex + 1,
1886
1949
  "aria-setsize": e.rowSetSize
1887
1950
  };
1888
1951
  }
1889
1952
  return { "aria-rowindex": e.rowIndex + 1 };
1890
- }), u = L(() => {
1891
- if (E.value)
1953
+ }), i = m(() => {
1954
+ if (u.value)
1892
1955
  return {
1893
1956
  "aria-busy": "true",
1894
1957
  "aria-live": "polite"
1895
1958
  };
1896
- if (!(c.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
1959
+ if (!(r.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
1897
1960
  return {
1898
1961
  "aria-level": e.isNestedRow ? "3" : "2",
1899
1962
  "aria-posinset": "1",
1900
1963
  "aria-setsize": "1",
1901
- id: f,
1964
+ id: S,
1902
1965
  role: "row",
1903
1966
  tabindex: "-1"
1904
1967
  };
1905
- }), h = L(() => {
1906
- var _, R;
1907
- return c.value ? (R = (_ = e.rowData) == null ? void 0 : _.children) == null ? void 0 : R.reduce((P, X, r) => (P[r] = ye("nested-row"), P), {}) : [];
1908
- }), p = L(() => {
1909
- var _;
1910
- if (C.value) {
1968
+ }), L = m(() => {
1969
+ var R, x;
1970
+ return r.value ? (x = (R = e.rowData) == null ? void 0 : R.children) == null ? void 0 : x.reduce((G, J, se) => (G[se] = Re("nested-row"), G), {}) : [];
1971
+ }), w = m(() => {
1972
+ var R;
1973
+ if (g.value) {
1911
1974
  if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
1912
- return [f];
1913
- if (c.value && ((_ = Object.keys(h.value)) == null ? void 0 : _.length) > 0) {
1914
- const R = Object.values(h.value);
1915
- if ((R == null ? void 0 : R.length) > 0)
1916
- return R;
1975
+ return [S];
1976
+ if (r.value && ((R = Object.keys(L.value)) == null ? void 0 : R.length) > 0) {
1977
+ const x = Object.values(L.value);
1978
+ if ((x == null ? void 0 : x.length) > 0)
1979
+ return x;
1917
1980
  }
1918
1981
  return [];
1919
1982
  }
1920
- }), O = L(() => {
1921
- var R, P;
1922
- const _ = (P = (R = e.rowData) == null ? void 0 : R.children) == null ? void 0 : P.map((X) => e.getDataItemId(X));
1923
- if ((_ == null ? void 0 : _.length) > 0) {
1924
- const X = _.every((M) => {
1925
- var Z;
1926
- return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(M);
1927
- }), r = _.some((M) => {
1928
- var Z;
1929
- return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(M);
1983
+ }), D = m(() => {
1984
+ var x, G;
1985
+ const R = (G = (x = e.rowData) == null ? void 0 : x.children) == null ? void 0 : G.map((J) => e.getDataItemId(J));
1986
+ if ((R == null ? void 0 : R.length) > 0) {
1987
+ const J = R.every((le) => {
1988
+ var te;
1989
+ return (te = e == null ? void 0 : e.selectedItems) == null ? void 0 : te.includes(le);
1990
+ }), se = R.some((le) => {
1991
+ var te;
1992
+ return (te = e == null ? void 0 : e.selectedItems) == null ? void 0 : te.includes(le);
1930
1993
  });
1931
- return !X && r;
1994
+ return !J && se;
1932
1995
  }
1933
1996
  return !1;
1934
- }), y = (_, R) => {
1935
- const P = _;
1936
- _ !== null && (P != null && P.gridcellRef) && (i.value[R] = P.gridcellRef);
1937
- }, F = (_) => h.value[_], z = (_) => {
1997
+ }), z = (R, x) => {
1998
+ const G = R;
1999
+ R !== null && (G != null && G.gridcellRef) && (a.value[x] = G.gridcellRef);
2000
+ }, F = (R) => L.value[R], A = (R) => {
1938
2001
  if (!e.selectable)
1939
2002
  return null;
1940
- const R = e.getDataItemId(_);
1941
- return e.selectedItems.includes(R).toString();
1942
- }, S = (_) => {
1943
- !(_.target.type === "checkbox") && e.allowRowClicks && n("row-click", e.rowData, _);
1944
- }, w = (_) => {
1945
- n("select-row", _, e.rowData);
1946
- }, N = (_, R) => {
1947
- n("select-nested-row", R, e.rowData, _);
1948
- }, { updateContentHeight: x, contentHeight: $ } = mn(v, C), g = L(() => {
1949
- var _;
2003
+ const x = e.getDataItemId(R);
2004
+ return e.selectedItems.includes(x).toString();
2005
+ }, E = (R) => {
2006
+ !(R.target.type === "checkbox") && e.allowRowClicks && n("row-click", e.rowData, R);
2007
+ }, O = (R) => {
2008
+ n("select-row", R, e.rowData);
2009
+ }, U = (R, x) => {
2010
+ n("select-nested-row", x, e.rowData, R);
2011
+ }, v = () => {
2012
+ c.value = !0;
2013
+ }, M = () => {
2014
+ c.value = !1;
2015
+ }, { updateContentHeight: N, contentHeight: I } = En(_, g), V = m(() => {
2016
+ var R;
1950
2017
  if (e.hasNestedContent || e.hasNestedRows)
1951
2018
  return {
1952
- paddingLeft: `${c.value || E.value ? 0 : i.value[q].clientWidth + ut}px`,
1953
- "max-height": (e.hasNestedContent || e.hasNestedRows) && $.value && !((_ = $ == null ? void 0 : $.value) != null && _.includes("null")) ? $.value : 0
2019
+ paddingLeft: `${r.value || u.value ? 0 : a.value[Q].clientWidth + gt}px`,
2020
+ "max-height": (e.hasNestedContent || e.hasNestedRows) && I.value && !((R = I == null ? void 0 : I.value) != null && R.includes("null")) ? I.value : 0
1954
2021
  };
1955
2022
  });
1956
- Y(
1957
- () => v.value,
2023
+ ee(
2024
+ () => _.value,
1958
2025
  () => {
1959
- let _ = null;
1960
- !_ && v.value && (_ = De(v.value, () => {
1961
- v.value && x();
2026
+ let R = null;
2027
+ !R && _.value && (R = De(_.value, () => {
2028
+ _.value && N();
1962
2029
  }));
1963
2030
  }
1964
2031
  );
1965
- const B = () => {
1966
- C.value = !C.value, x(), n("nested-content-toggled", e.rowData);
2032
+ const k = () => {
2033
+ g.value = !g.value, N(), n("nested-content-toggled", e.rowData);
1967
2034
  };
1968
- Y(
2035
+ ee(
1969
2036
  () => {
1970
- var _;
1971
- return (_ = e.rowData) == null ? void 0 : _.children;
2037
+ var R;
2038
+ return (R = e.rowData) == null ? void 0 : R.children;
1972
2039
  },
1973
- (_, R) => {
1974
- var P, X;
1975
- ((X = (P = e == null ? void 0 : e.rowData) == null ? void 0 : P.children) == null ? void 0 : X.length) > 0 && R === void 0 && !C.value && x();
2040
+ (R, x) => {
2041
+ var G, J;
2042
+ ((J = (G = e == null ? void 0 : e.rowData) == null ? void 0 : G.children) == null ? void 0 : J.length) > 0 && x === void 0 && !g.value && N();
1976
2043
  }
1977
2044
  );
1978
- const I = (_, R) => ({
1979
- "b-data-grid-row-container__row--disabled": e.isDataItemDisabled(_),
2045
+ const Z = (R, x) => ({
2046
+ "b-data-grid-row-container__row--disabled": e.isDataItemDisabled(R),
1980
2047
  "b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
1981
- "b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(_)) || e.selectedItems.includes(e.getDataItemId(_)),
1982
- "b-data-grid-row-container__row--hovered": e.hoveredRowIndex === R,
1983
- "b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !C.value,
2048
+ "b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(R)) || e.selectedItems.includes(e.getDataItemId(R)),
2049
+ "b-data-grid-row-container__row--hovered": e.hoveredRowIndex === x,
2050
+ "b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !g.value,
1984
2051
  "b-data-grid-row-container__row--nested-row": e.isNestedRow
1985
- }), D = (_) => ({
1986
- "b-data-grid-row-container__row-cell-set--frozen": _,
1987
- [`b-data-grid-row-container__row-cell-set--${se.OVERFLOW_SHADOW_LEFT}`]: _ && e.hasLeftOverflow,
1988
- "b-data-grid-row-container__row-cell-set--frozen-separator": _ && e.showFrozenColumnsSeparator,
1989
- "b-data-grid-row-container__row-cell-set--unfrozen": !_,
2052
+ }), $ = (R) => ({
2053
+ "b-data-grid-row-container__row-cell-set--frozen": R,
2054
+ [`b-data-grid-row-container__row-cell-set--${re.OVERFLOW_SHADOW_LEFT}`]: R && e.hasLeftOverflow,
2055
+ "b-data-grid-row-container__row-cell-set--frozen-separator": R && e.showFrozenColumnsSeparator,
2056
+ "b-data-grid-row-container__row-cell-set--unfrozen": !R,
1990
2057
  "b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
1991
- }), G = L(() => ({
2058
+ }), B = m(() => ({
1992
2059
  "b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
1993
- "b-data-grid-row-container__row-nested-slot": !c.value && e.shouldShowNestedContent(e.rowData)
2060
+ "b-data-grid-row-container__row-nested-slot": !r.value && e.shouldShowNestedContent(e.rowData)
2061
+ })), d = m(() => ({
2062
+ "b-data-grid-row-container__row-actions-container--row-actions-menu-open": c.value
2063
+ })), P = m(() => ({
2064
+ minWidth: `${e.rowActionsMaximumWidth}px`
1994
2065
  }));
1995
2066
  return t({
1996
- gridcellRefs: i
1997
- }), { __sfc: !0, slots: o, hasSlot: a, props: e, emit: n, gridcellRefs: i, isNestedContentShown: C, nestedContentRef: v, nestedContentSlotId: f, shouldShowNestedRowsBooleanResult: m, shouldShowRenderNestedRows: c, isLoadingNestedRows: E, shouldShowNestedContentToggle: l, ariaRowAttributes: d, nestedContentContainerDivAriaAttributes: u, nestedRowIds: h, allNestedRowIds: p, hasUnSelectedNestedRows: O, registerRowCellRef: y, getRowId: F, getRowAriaSelectedValue: z, onRowClick: S, onRowSelect: w, onNestedRowSelect: N, updateContentHeight: x, contentHeight: $, nestedContentStyles: g, nestedContentToggled: B, conditionalRowClasses: I, conditionalRowSetClasses: D, conditionalNestedRowClasses: G, DataGridCell: Oo, BentoLoadingIndicator: Ne, DataGridRow: vt };
2067
+ gridcellRefs: a,
2068
+ rowActionsRef: f
2069
+ }), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: g, nestedContentRef: _, rowActionsRef: f, nestedContentSlotId: S, isRowActionMenuOpen: c, shouldShowNestedRowsBooleanResult: p, shouldShowRenderNestedRows: r, isLoadingNestedRows: u, shouldShowNestedContentToggle: C, ariaRowAttributes: h, nestedContentContainerDivAriaAttributes: i, nestedRowIds: L, allNestedRowIds: w, hasUnSelectedNestedRows: D, registerRowCellRef: z, getRowId: F, getRowAriaSelectedValue: A, onRowClick: E, onRowSelect: O, onNestedRowSelect: U, onRowActionMenuOpen: v, onRowActionMenuClose: M, updateContentHeight: N, contentHeight: I, nestedContentStyles: V, nestedContentToggled: k, conditionalRowClasses: Z, conditionalRowSetClasses: $, conditionalNestedRowClasses: B, conditionalRowActionsContainerClasses: d, computedRowActionsStyles: P, DataGridCell: Io, DataGridCellActions: Ct, BentoLoadingIndicator: Te, DataGridRow: mt };
1998
2070
  }
1999
2071
  });
2000
- var No = function() {
2072
+ var Fo = function() {
2073
+ var o;
2001
2074
  var t = this, n = t._self._c, e = t._self._setupProxy;
2002
- return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: t.rowId, role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: o, id: a, isFrozenColumns: i }, C) {
2003
- return [o != null && o.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(i), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(o, function(v, f) {
2004
- return n(e.DataGridCell, { key: `cell-${v.field}`, ref: (m) => e.registerRowCellRef(m, v.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: v, "column-set-index": C, "col-index": f, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(m) {
2005
- return e.emit("cell-hovered", m);
2006
- }, "on-frozen-columns-key-press": function(m) {
2007
- return e.emit("on-frozen-columns-key-press", m);
2008
- }, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m, c) {
2009
- return { key: c, fn: function(E) {
2010
- return [t._t(c, null, null, E)];
2075
+ return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: (o = t.rowId) == null ? void 0 : o.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, _) {
2076
+ return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(g), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(f, S) {
2077
+ return n(e.DataGridCell, { key: `cell-${f.field}`, ref: (c) => e.registerRowCellRef(c, f.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: f, "column-set-index": _, "col-index": S, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(c) {
2078
+ return e.emit("cell-hovered", c);
2079
+ }, "on-frozen-columns-key-press": function(c) {
2080
+ return e.emit("on-frozen-columns-key-press", c);
2081
+ }, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(c, p) {
2082
+ return { key: p, fn: function(r) {
2083
+ return [t._t(p, null, null, r)];
2011
2084
  } };
2012
2085
  })], null, !0) });
2013
- }), 1) : t._e()];
2014
- })], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(o, a) {
2015
- return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": o, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(i) {
2016
- return e.emit("cell-hovered", i);
2017
- }, "row-click": function(i) {
2018
- return e.emit("row-click", i);
2019
- }, "on-frozen-columns-key-press": function(i) {
2020
- return e.emit("con-frozen-columns-key-press", i);
2021
- }, "select-row": function(i) {
2022
- return e.onNestedRowSelect(o, i);
2023
- } }, scopedSlots: t._u([t._l(e.slots, function(i, C) {
2024
- return { key: C, fn: function(v) {
2025
- return [t._t(C, null, null, v)];
2086
+ }), 1) : t._e(), !g && t.rowActions ? n("div", { key: `data-grid-row-actions-${a}`, ref: "rowActionsRef", refInFor: !0, staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
2087
+ })], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(l, a) {
2088
+ return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(g) {
2089
+ return e.emit("cell-hovered", g);
2090
+ }, "row-click": function(g) {
2091
+ return e.emit("row-click", ...g);
2092
+ }, "on-frozen-columns-key-press": function(g) {
2093
+ return e.emit("on-frozen-columns-key-press", g);
2094
+ }, "select-row": function(g) {
2095
+ return e.onNestedRowSelect(l, g);
2096
+ } }, scopedSlots: t._u([t._l(e.slots, function(g, _) {
2097
+ return { key: _, fn: function(f) {
2098
+ return [t._t(_, null, null, f)];
2026
2099
  } };
2027
2100
  })], null, !0) }, "data-grid-row", e.props, !1));
2028
2101
  }) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()], 2)]) : t._e()]) : t._e()], 1);
2029
- }, Io = [], Do = /* @__PURE__ */ V(
2030
- To,
2031
- No,
2032
- Io,
2102
+ }, Mo = [], Bo = /* @__PURE__ */ Y(
2103
+ xo,
2104
+ Fo,
2105
+ Mo,
2033
2106
  !1,
2034
2107
  null,
2035
- "00d150bc"
2108
+ "85174ea4"
2036
2109
  );
2037
- const vt = Do.exports;
2038
- let nt = 0;
2039
- const Fo = {
2110
+ const mt = Bo.exports;
2111
+ let ot = 0;
2112
+ const Po = {
2040
2113
  beforeCreate() {
2041
- this.uuid = nt.toString(), nt += 1;
2114
+ this.uuid = ot.toString(), ot += 1;
2042
2115
  }
2043
2116
  };
2044
- var xo = function() {
2117
+ var $o = function() {
2045
2118
  var t = this, n = t._self._c;
2046
2119
  return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
2047
- }, Mo = [], Bo = /* @__PURE__ */ V(
2048
- Fo,
2049
- xo,
2050
- Mo,
2120
+ }, zo = [], Uo = /* @__PURE__ */ Y(
2121
+ Po,
2122
+ $o,
2123
+ zo,
2051
2124
  !1,
2052
2125
  null,
2053
2126
  null
2054
2127
  );
2055
- const Po = Bo.exports, zo = {}, $o = /* @__PURE__ */ Q({
2056
- ...zo,
2128
+ const ko = Uo.exports, Wo = {}, Go = /* @__PURE__ */ oe({
2129
+ ...Wo,
2057
2130
  __name: "data-grid-static-icon",
2058
2131
  props: {
2059
2132
  colored: { type: Boolean, default: !1 },
@@ -2061,43 +2134,43 @@ const Po = Bo.exports, zo = {}, $o = /* @__PURE__ */ Q({
2061
2134
  variant: { default: "no-value" }
2062
2135
  },
2063
2136
  setup(s) {
2064
- const t = s, n = L(() => {
2137
+ const t = s, n = m(() => {
2065
2138
  switch (t.variant) {
2066
2139
  case "checkmark":
2067
- return an;
2140
+ return fn;
2068
2141
  case "warning":
2069
- return rn;
2142
+ return gn;
2070
2143
  case "error":
2071
- return Po;
2144
+ return ko;
2072
2145
  case "cross":
2073
- return lt;
2146
+ return it;
2074
2147
  case "no-value":
2075
- return Ge;
2148
+ return He;
2076
2149
  default:
2077
- return Ge;
2150
+ return He;
2078
2151
  }
2079
- }), e = L(() => ({
2152
+ }), e = m(() => ({
2080
2153
  "b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
2081
- })), o = L(() => `b-data-grid-static-icon__${t.variant}`), a = L(() => dn.AUTO);
2082
- return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: a, vBentoTooltipDirective: cn };
2154
+ })), o = m(() => `b-data-grid-static-icon__${t.variant}`), l = m(() => _n.AUTO);
2155
+ return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: vn };
2083
2156
  }
2084
2157
  });
2085
- var Uo = function() {
2158
+ var Ho = function() {
2086
2159
  var t = this, n = t._self._c, e = t._self._setupProxy;
2087
2160
  return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
2088
- }, ko = [], Go = /* @__PURE__ */ V(
2089
- $o,
2090
- Uo,
2091
- ko,
2161
+ }, Vo = [], Zo = /* @__PURE__ */ Y(
2162
+ Go,
2163
+ Ho,
2164
+ Vo,
2092
2165
  !1,
2093
2166
  null,
2094
2167
  "f8532817"
2095
2168
  );
2096
- const Pl = Go.exports, Wo = {
2097
- i18n: { messages: gt },
2169
+ const kl = Zo.exports, jo = {
2170
+ i18n: { messages: vt },
2098
2171
  name: "bento-data-grid"
2099
- }, Ho = /* @__PURE__ */ Q({
2100
- ...Wo,
2172
+ }, qo = /* @__PURE__ */ oe({
2173
+ ...jo,
2101
2174
  props: {
2102
2175
  /**
2103
2176
  * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
@@ -2167,7 +2240,7 @@ const Pl = Go.exports, Wo = {
2167
2240
  * {@see BentoFilterValues}
2168
2241
  */
2169
2242
  filterValues: {
2170
- type: Le.props.filterValues.type,
2243
+ type: Se.props.filterValues.type,
2171
2244
  default: () => []
2172
2245
  },
2173
2246
  // TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
@@ -2184,7 +2257,7 @@ const Pl = Go.exports, Wo = {
2184
2257
  * Filter bar search term useful to filter all the data by text
2185
2258
  */
2186
2259
  filterSearchTerm: {
2187
- type: Le.props.searchTerm.type,
2260
+ type: Se.props.searchTerm.type,
2188
2261
  default: void 0
2189
2262
  },
2190
2263
  /**
@@ -2199,6 +2272,13 @@ const Pl = Go.exports, Wo = {
2199
2272
  type: Function,
2200
2273
  default: (s) => s.id
2201
2274
  },
2275
+ /**
2276
+ * Row actions propery that generates which button to show in row actions area
2277
+ */
2278
+ rowActions: {
2279
+ type: [Function, Array],
2280
+ default: void 0
2281
+ },
2202
2282
  /**
2203
2283
  * If resize is enabled
2204
2284
  */
@@ -2361,218 +2441,224 @@ const Pl = Go.exports, Wo = {
2361
2441
  }
2362
2442
  },
2363
2443
  emits: [
2364
- A.COLUMNS,
2365
- A.COLUMN_RESIZE,
2366
- A.ITEMS_PAGE,
2367
- A.FILTER_SEARCH_INPUT,
2368
- A.FILTER_SEARCH_CLEAR,
2369
- A.NAVIGATE,
2370
- A.NESTED_CONTENT_TOGGLED,
2371
- A.UPDATE_COLUMNS,
2372
- A.UPDATE_CONDENSED,
2373
- A.UPDATE_FILTER_VALUES,
2374
- A.UPDATE_FILTERS,
2375
- A.UPDATE_FILTER_SEARCH_TERM,
2376
- A.UPDATE_SHOW_MORE,
2377
- A.UPDATE_PAGINATION,
2378
- A.UPDATE_SELECTION,
2379
- A.UPDATE_SORT_BY,
2380
- A.ROW_CLICK,
2381
- A.SELECT,
2382
- A.SELECT_ALL_ACROSS_PAGES,
2383
- A.SORT
2444
+ b.COLUMNS,
2445
+ b.COLUMN_RESIZE,
2446
+ b.ITEMS_PAGE,
2447
+ b.FILTER_SEARCH_INPUT,
2448
+ b.FILTER_SEARCH_CLEAR,
2449
+ b.NAVIGATE,
2450
+ b.NESTED_CONTENT_TOGGLED,
2451
+ b.UPDATE_COLUMNS,
2452
+ b.UPDATE_CONDENSED,
2453
+ b.UPDATE_FILTER_VALUES,
2454
+ b.UPDATE_FILTERS,
2455
+ b.UPDATE_FILTER_SEARCH_TERM,
2456
+ b.UPDATE_SHOW_MORE,
2457
+ b.UPDATE_PAGINATION,
2458
+ b.UPDATE_SELECTION,
2459
+ b.UPDATE_SORT_BY,
2460
+ b.ROW_CLICK,
2461
+ b.SELECT,
2462
+ b.SELECT_ALL_ACROSS_PAGES,
2463
+ b.SORT
2384
2464
  ],
2385
2465
  setup(s, { expose: t, emit: n }) {
2386
- const e = s, o = Te(), a = Ie(o), i = b(null), C = b(), v = b({}), f = b(null), m = b(null), c = b(), E = b(null), l = b(null), {
2387
- allowColumnDragAndDrop: d,
2388
- columns: u,
2466
+ const e = s, o = Ne(), l = Ie(o), a = y(null), g = y(), _ = y({}), f = y(null), S = y(null), c = y(), p = y(null), r = y(null), {
2467
+ allowColumnDragAndDrop: u,
2468
+ columns: C,
2389
2469
  columnPanel: h,
2390
- data: p,
2391
- lazyLoadType: O,
2392
- loading: y,
2393
- hasNestedContent: F,
2470
+ data: i,
2471
+ lazyLoadType: L,
2472
+ loading: w,
2473
+ hasNestedContent: D,
2394
2474
  hasNestedRows: z,
2395
- selectable: S,
2396
- selection: w,
2397
- selectableAcrossPages: N,
2398
- stickyPagination: x,
2399
- outline: $,
2400
- pagination: g
2401
- } = Oe(e), B = b(-1), { t: I } = ie(), D = L(() => r.value.filter((T) => T.frozen).length), G = Ee(
2402
- hn,
2475
+ selectable: F,
2476
+ selection: A,
2477
+ selectableAcrossPages: E,
2478
+ stickyPagination: O,
2479
+ outline: U,
2480
+ pagination: v
2481
+ } = Ae(e), M = y(-1), { t: N } = ue(), I = m(() => d.value.filter((T) => T.frozen).length), V = Ee(
2482
+ Ln,
2403
2483
  () => ({
2404
2484
  isDataGridTemplate: !1,
2405
- stickyTabs: b(!1),
2406
- tabsRef: b(null)
2485
+ stickyTabs: y(!1),
2486
+ tabsRef: y(null)
2407
2487
  })
2408
- ), { isDataGridTemplate: _, stickyTabs: R, tabsRef: P } = G(), X = L(() => e.fitContent || _ ? 0 : null), {
2409
- columnDefs: r,
2410
- onColumnWidthOverride: M,
2411
- gridColumnWidthStyle: Z,
2412
- isMeasuringColumnWidths: oe,
2413
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: le,
2414
- columns: de,
2415
- totalWidthOfAllColumns: fe
2416
- } = jn(u, p, i, v, f, {
2488
+ ), { isDataGridTemplate: k, stickyTabs: Z, tabsRef: $ } = V(), B = m(() => e.fitContent || k ? 0 : null), {
2489
+ columnDefs: d,
2490
+ onColumnWidthOverride: P,
2491
+ gridColumnWidthStyle: R,
2492
+ gridRowWidthStyle: x,
2493
+ isMeasuringColumnWidths: G,
2494
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: J,
2495
+ columns: se,
2496
+ totalWidthOfAllColumns: le,
2497
+ rowActionsMaxWidth: te
2498
+ } = Jn(C, i, a, _, f, {
2417
2499
  hasColumnPanel: h,
2418
- hasSelectableColumn: S,
2419
- hasSelectableAcrossPages: N,
2420
- hasNestedContent: F,
2500
+ hasSelectableColumn: F,
2501
+ hasSelectableAcrossPages: E,
2502
+ hasNestedContent: D,
2421
2503
  hasNestedRows: z,
2422
- allowColumnDragAndDrop: d,
2423
- isDataGridTemplate: _
2424
- }), W = (T, ...U) => {
2425
- (T === A.COLUMNS || T === A.UPDATE_COLUMNS) && ([de.value] = U), n(T, ...U);
2426
- }, re = je(P, R), ge = L(
2427
- () => e.stickyFilters ? `${re.value}px` : null
2428
- ), ce = je(m, we(e, "stickyFilters")), _e = L(
2429
- () => `${ce.value + re.value}px`
2504
+ allowColumnDragAndDrop: u,
2505
+ isDataGridTemplate: k
2506
+ }), j = (T, ...W) => {
2507
+ (T === b.COLUMNS || T === b.UPDATE_COLUMNS) && ([se.value] = W), n(T, ...W);
2508
+ }, fe = Ye($, Z), ve = m(
2509
+ () => e.stickyFilters ? `${fe.value}px` : null
2510
+ ), Fe = Ye(S, Le(e, "stickyFilters")), pt = m(
2511
+ () => `${Fe.value + fe.value}px`
2430
2512
  ), {
2431
- sortedColumns: xe,
2513
+ sortedColumns: Me,
2432
2514
  columnSets: me,
2433
- isOnlyOneVisibleColumn: Ct,
2434
- onConfigSettingsUpdate: ht,
2435
- onConfigSettingsColumnsUpdate: mt,
2436
- onConfigSettingsColumnUpdate: pt
2437
- } = es(r, W), { hoveredOverColumn: St, hoveredOverColumnState: Lt } = ns(
2515
+ isOnlyOneVisibleColumn: wt,
2516
+ onConfigSettingsUpdate: St,
2517
+ onConfigSettingsColumnsUpdate: Lt,
2518
+ onConfigSettingsColumnUpdate: Et
2519
+ } = ls(d, j), { hoveredOverColumn: Rt, hoveredOverColumnState: yt } = is(
2438
2520
  me,
2439
- S,
2440
- $,
2441
- le
2442
- ), { draggingColumns: wt, draggingEventsForColumns: Et, draggingEventsForRowCell: yt, onMoveColumnByOffset: Rt } = Qn(xe, d, W), { onAllRowSelect: bt, onRowSelect: Ot, onNestedRowSelect: At, selectedItems: Me, allItemsSelectedState: Tt } = qn(
2443
- w,
2444
- W,
2445
- p,
2521
+ F,
2522
+ U,
2523
+ J
2524
+ ), { draggingColumns: bt, draggingEventsForColumns: At, draggingEventsForRowCell: Ot, onMoveColumnByOffset: Nt } = os(Me, u, j), { onAllRowSelect: Tt, onRowSelect: It, onNestedRowSelect: Dt, selectedItems: Be, allItemsSelectedState: xt } = Qn(
2525
+ A,
2526
+ j,
2527
+ i,
2446
2528
  e.getDataItemId,
2447
2529
  e.isDataItemDisabled
2448
- ), { navigationInput: Nt } = Xn(f, u, S), { isLazyLoad: pe, isInfiniteScroll: It, verticalScrollPosition: Be, emitLazyLoadEvent: Dt } = Kn(
2449
- O,
2450
- E,
2451
- i,
2452
- y,
2453
- W
2530
+ ), { navigationInput: Ft } = ts(f, C, F), { isLazyLoad: pe, isInfiniteScroll: Mt, verticalScrollPosition: Pe, emitLazyLoadEvent: Bt } = ss(
2531
+ L,
2532
+ p,
2533
+ a,
2534
+ w,
2535
+ j
2454
2536
  ), {
2455
- updateScrollPosition: Ft,
2456
- updateScrollPositionOnFrozenColumnsNavigation: xt,
2457
- syncVirtualScrollerWithBody: Mt,
2458
- hasLeftOverflow: Se,
2459
- hasRightOverflow: Pe,
2460
- horizontalScrollbarConditionalClasses: Bt
2461
- } = ts(i, C, Be, l, {
2537
+ updateScrollPosition: Pt,
2538
+ updateScrollPositionOnFrozenColumnsNavigation: $t,
2539
+ syncVirtualScrollerWithBody: zt,
2540
+ hasLeftOverflow: we,
2541
+ hasRightOverflow: $e,
2542
+ horizontalScrollbarConditionalClasses: Ut
2543
+ } = as(a, g, Pe, r, {
2462
2544
  isLazyLoad: pe,
2463
- pagination: g,
2464
- stickyPagination: x,
2465
- isDataGridTemplate: _
2545
+ pagination: v,
2546
+ stickyPagination: O,
2547
+ isDataGridTemplate: k
2466
2548
  }), ze = () => {
2467
2549
  c.value.isClearAllVisible ? c.value.clearAllFilters() : c.value.isResetAllVisible && c.value.resetAllFilters();
2468
- }, Pt = L(() => {
2469
- var T, U;
2550
+ }, kt = m(() => {
2551
+ var T, W;
2470
2552
  return {
2471
2553
  ...e.emptyState,
2472
- variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((U = e.emptyState) == null ? void 0 : U.variant) === "basic" ? e.emptyState.variant : "basic"
2554
+ variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((W = e.emptyState) == null ? void 0 : W.variant) === "basic" ? e.emptyState.variant : "basic"
2473
2555
  };
2474
- }), zt = L(() => ({
2475
- [`b-data-grid--${se.OUTLINE}`]: e.outline,
2476
- [`b-data-grid--${se.SCROLL}`]: e.fitContent || pe.value,
2477
- [`b-data-grid--${se.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
2478
- [`b-data-grid--${se.OVERFLOW_SHADOW_LEFT}`]: Se.value && !D.value,
2479
- [`b-data-grid--${se.OVERFLOW_SHADOW_RIGHT}`]: Pe.value,
2480
- [`b-data-grid--${se.NO_SPACING_TOP}`]: e.noSpacingTop
2481
- })), $t = L(() => ({
2556
+ }), Wt = m(() => ({
2557
+ [`b-data-grid--${re.OUTLINE}`]: e.outline,
2558
+ [`b-data-grid--${re.SCROLL}`]: e.fitContent || pe.value,
2559
+ [`b-data-grid--${re.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
2560
+ [`b-data-grid--${re.OVERFLOW_SHADOW_LEFT}`]: we.value && !I.value,
2561
+ [`b-data-grid--${re.OVERFLOW_SHADOW_RIGHT}`]: $e.value && e.rowActions === void 0,
2562
+ [`b-data-grid--${re.NO_SPACING_TOP}`]: e.noSpacingTop
2563
+ })), Gt = m(() => ({
2482
2564
  "b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
2483
- })), Ut = L(() => me.value.findIndex((T) => T.columnSet.length)), kt = L(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && D.value === 1) || Se.value), Gt = L(() => ({
2484
- "b-data-grid__filters--sticky": !!e.stickyFilters || _
2485
- })), Wt = L(() => {
2486
- var T, U, J, ee, ve, ue;
2565
+ })), Ht = m(() => me.value.findIndex((T) => T.columnSet.length)), Vt = m(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && I.value === 1) || we.value), Zt = m(() => ({
2566
+ "b-data-grid__filters--sticky": !!e.stickyFilters || k
2567
+ })), jt = m(() => {
2568
+ var T, W, X, de, _e, ge;
2487
2569
  return {
2488
- "b-data-grid__pagination--padding-left-unset": ((J = (U = (T = e.columns) == null ? void 0 : T[0]) == null ? void 0 : U.padding) == null ? void 0 : J.left) === !1,
2489
- "b-data-grid__pagination--padding-right-unset": ((ue = (ve = (ee = e.columns) == null ? void 0 : ee[e.columns.length - 1]) == null ? void 0 : ve.padding) == null ? void 0 : ue.right) === !1,
2490
- "b-data-grid__pagination--sticky": !!e.stickyPagination || _
2570
+ "b-data-grid__pagination--padding-left-unset": ((X = (W = (T = e.columns) == null ? void 0 : T[0]) == null ? void 0 : W.padding) == null ? void 0 : X.left) === !1,
2571
+ "b-data-grid__pagination--padding-right-unset": ((ge = (_e = (de = e.columns) == null ? void 0 : de[e.columns.length - 1]) == null ? void 0 : _e.padding) == null ? void 0 : ge.right) === !1,
2572
+ "b-data-grid__pagination--sticky": !!e.stickyPagination || k
2491
2573
  };
2492
- }), Ht = (T) => {
2493
- const U = T;
2494
- T !== null && (U != null && U.columnHeaderRefs) && Object.entries(U == null ? void 0 : U.columnHeaderRefs).forEach(([J, ee]) => {
2495
- v.value[J] = ee;
2496
- });
2497
- }, Vt = (T, U) => {
2498
- const J = T;
2499
- T !== null && (J != null && J.gridcellRefs) && Object.entries(J == null ? void 0 : J.gridcellRefs).map(([ee, ve]) => {
2500
- var ue;
2501
- ((ue = f.value) == null ? void 0 : ue[ee]) === void 0 && (f.value = { ...f.value, [ee]: [] }), f.value[ee][U] = ve;
2574
+ }), qt = (T) => {
2575
+ const W = T;
2576
+ T !== null && (W != null && W.columnHeaderRefs) && Object.entries(W == null ? void 0 : W.columnHeaderRefs).forEach(([X, de]) => {
2577
+ _.value[X] = de;
2502
2578
  });
2503
- }, Zt = (T, U) => {
2504
- e.allowRowClicks && W(A.ROW_CLICK, T, U);
2505
- }, jt = (T) => {
2506
- B.value = T;
2507
- }, qt = L(() => !!e.selectableAcrossPages && !!e.pagination), Yt = L(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), Xt = gn({
2508
- label: o != null && o.header ? _n(o)("header") : null,
2579
+ }, Yt = (T, W) => {
2580
+ var de, _e;
2581
+ const X = T;
2582
+ T !== null && (X != null && X.gridcellRefs && Object.entries(X == null ? void 0 : X.gridcellRefs).map(([ge, dn]) => {
2583
+ var Ge;
2584
+ ((Ge = f.value) == null ? void 0 : Ge[ge]) === void 0 && (f.value = { ...f.value, [ge]: [] }), f.value[ge][W] = dn;
2585
+ }), e.rowActions !== void 0 && (X != null && X.rowActionsRef) && (te.value = Math.max(
2586
+ te.value,
2587
+ ((_e = (de = X.rowActionsRef) == null ? void 0 : de[0]) == null ? void 0 : _e.offsetWidth) ?? 0
2588
+ )));
2589
+ }, Xt = (T, W) => {
2590
+ e.allowRowClicks && j(b.ROW_CLICK, T, W);
2591
+ }, Kt = (T) => {
2592
+ M.value = T;
2593
+ }, Jt = m(() => !!e.selectableAcrossPages && !!e.pagination), Qt = m(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), en = mn({
2594
+ label: o != null && o.header ? pn(o)("header") : null,
2509
2595
  defaultFallback: "data grid"
2510
- }), $e = L(() => {
2596
+ }), Ue = m(() => {
2511
2597
  var T;
2512
- return ((T = Me.value) == null ? void 0 : T.length) ?? 0;
2513
- }), Jt = L(() => e.bulkActions && $e.value > 0), Kt = (T) => W(A.COLUMN_RESIZE, T), Qt = (T) => {
2514
- W(A.UPDATE_SORT_BY, T), W(A.SORT, T);
2515
- }, en = (T, U) => {
2516
- W(A.NAVIGATE, T), W(A.UPDATE_PAGINATION, {
2598
+ return ((T = Be.value) == null ? void 0 : T.length) ?? 0;
2599
+ }), tn = m(() => e.bulkActions && Ue.value > 0), nn = (T) => j(b.COLUMN_RESIZE, T), sn = (T) => {
2600
+ j(b.UPDATE_SORT_BY, T), j(b.SORT, T);
2601
+ }, on = (T, W) => {
2602
+ j(b.NAVIGATE, T), j(b.UPDATE_PAGINATION, {
2517
2603
  ...e.pagination,
2518
- size: U,
2604
+ size: W,
2519
2605
  page: T
2520
2606
  });
2521
- }, tn = (T) => {
2522
- W(A.ITEMS_PAGE, T);
2523
- }, nn = () => {
2524
- W(A.FILTER_SEARCH_CLEAR);
2525
- }, sn = (T) => {
2526
- W(A.UPDATE_FILTER_SEARCH_TERM, T), W(A.FILTER_SEARCH_INPUT, T);
2527
- }, Ue = L(() => u.value.some((T) => T.mandatory));
2528
- Ue.value || at(
2607
+ }, ln = (T) => {
2608
+ j(b.ITEMS_PAGE, T);
2609
+ }, an = () => {
2610
+ j(b.FILTER_SEARCH_CLEAR);
2611
+ }, rn = (T) => {
2612
+ j(b.UPDATE_FILTER_SEARCH_TERM, T), j(b.FILTER_SEARCH_INPUT, T);
2613
+ }, ke = m(() => C.value.some((T) => T.mandatory));
2614
+ ke.value || rt(
2529
2615
  "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
2530
2616
  );
2531
- const ke = Ee(Cn, () => null);
2532
- return ke(e.tabTitle), ot(_t, we(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: ze }), { __sfc: !0, props: e, slots: o, hasSlot: a, body: i, columnsRef: C, columnHeaderRefs: v, gridcellRefs: f, filtersRef: m, filterBarRef: c, verticalScrollPositionRef: E, virtualHorizontalScrollbarRef: l, allowColumnDragAndDrop: d, columns: u, columnPanel: h, data: p, lazyLoadType: O, loading: y, hasNestedContent: F, hasNestedRows: z, selectable: S, selection: w, selectableAcrossPages: N, stickyPagination: x, outline: $, pagination: g, hoveredRowIndex: B, t: I, frozenColumnsLength: D, registerDatagridInDataGridTemplate: G, isDataGridTemplate: _, stickyTabs: R, tabsRef: P, computedColumnsTabIndex: X, columnDefs: r, onColumnWidthOverride: M, gridColumnWidthStyle: Z, isMeasuringColumnWidths: oe, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: le, localColumnsState: de, totalWidthOfAllColumns: fe, definedEmitsFunction: n, emit: W, stickyFiltersHeight: re, computedStickyFiltersTopPosition: ge, columnHeadersHeight: ce, computedColumnHeadersTopPosition: _e, sortedColumns: xe, columnSets: me, isOnlyOneVisibleColumn: Ct, onConfigSettingsUpdate: ht, onConfigSettingsColumnsUpdate: mt, onConfigSettingsColumnUpdate: pt, hoveredOverColumn: St, hoveredOverColumnState: Lt, draggingColumns: wt, draggingEventsForColumns: Et, draggingEventsForRowCell: yt, onMoveColumnByOffset: Rt, onAllRowSelect: bt, onRowSelect: Ot, onNestedRowSelect: At, selectedItems: Me, allItemsSelectedState: Tt, navigationInput: Nt, isLazyLoad: pe, isInfiniteScroll: It, verticalScrollPosition: Be, emitLazyLoadEvent: Dt, updateScrollPosition: Ft, updateScrollPositionOnFrozenColumnsNavigation: xt, syncVirtualScrollerWithBody: Mt, hasLeftOverflow: Se, hasRightOverflow: Pe, horizontalScrollbarConditionalClasses: Bt, onEmptyStateClearResetButtonClick: ze, limitedEmptyStateProps: Pt, conditionalGridClasses: zt, conditionalGridBodyClasses: $t, computedColumnPanelAlignment: Ut, showFrozenColumnsSeparator: kt, conditionalFilterClasses: Gt, conditionalPaginationClasses: Wt, registerColumnHeaderRefs: Ht, registerRowCellRefs: Vt, onRowClick: Zt, onCellHover: jt, selectableAcrossPagesComputed: qt, ariaGridRole: Yt, ariaGridHeaderText: Xt, itemsSelectedCounter: $e, showActionBar: Jt, onColumnResized: Kt, onSort: Qt, onPaginationNavigate: en, onItemsPerPageChange: tn, onSearchTermCleared: nn, onSearchTermInput: sn, hasMandatoryColumn: Ue, setTitle: ke, BentoActionBar: un, BentoPagination: fn, BentoLoadingIndicator: Ne, BentoTypography: he, BentoDataGridConfigSettings: to, DataGridColumns: zs, DataGridLazyLoad: io, DataGridRow: vt, BentoDatagridEvent: A, BentoFilterBar: Le, BentoEmptyState: vn };
2617
+ const We = Ee(Sn, () => null);
2618
+ return We(e.tabTitle), at(ht, Le(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: ze }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: g, columnHeaderRefs: _, gridcellRefs: f, filtersRef: S, filterBarRef: c, verticalScrollPositionRef: p, virtualHorizontalScrollbarRef: r, allowColumnDragAndDrop: u, columns: C, columnPanel: h, data: i, lazyLoadType: L, loading: w, hasNestedContent: D, hasNestedRows: z, selectable: F, selection: A, selectableAcrossPages: E, stickyPagination: O, outline: U, pagination: v, hoveredRowIndex: M, t: N, frozenColumnsLength: I, registerDatagridInDataGridTemplate: V, isDataGridTemplate: k, stickyTabs: Z, tabsRef: $, computedColumnsTabIndex: B, columnDefs: d, onColumnWidthOverride: P, gridColumnWidthStyle: R, gridRowWidthStyle: x, isMeasuringColumnWidths: G, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: J, localColumnsState: se, totalWidthOfAllColumns: le, rowActionsMaxWidth: te, definedEmitsFunction: n, emit: j, stickyFiltersHeight: fe, computedStickyFiltersTopPosition: ve, columnHeadersHeight: Fe, computedColumnHeadersTopPosition: pt, sortedColumns: Me, columnSets: me, isOnlyOneVisibleColumn: wt, onConfigSettingsUpdate: St, onConfigSettingsColumnsUpdate: Lt, onConfigSettingsColumnUpdate: Et, hoveredOverColumn: Rt, hoveredOverColumnState: yt, draggingColumns: bt, draggingEventsForColumns: At, draggingEventsForRowCell: Ot, onMoveColumnByOffset: Nt, onAllRowSelect: Tt, onRowSelect: It, onNestedRowSelect: Dt, selectedItems: Be, allItemsSelectedState: xt, navigationInput: Ft, isLazyLoad: pe, isInfiniteScroll: Mt, verticalScrollPosition: Pe, emitLazyLoadEvent: Bt, updateScrollPosition: Pt, updateScrollPositionOnFrozenColumnsNavigation: $t, syncVirtualScrollerWithBody: zt, hasLeftOverflow: we, hasRightOverflow: $e, horizontalScrollbarConditionalClasses: Ut, onEmptyStateClearResetButtonClick: ze, limitedEmptyStateProps: kt, conditionalGridClasses: Wt, conditionalGridBodyClasses: Gt, computedColumnPanelAlignment: Ht, showFrozenColumnsSeparator: Vt, conditionalFilterClasses: Zt, conditionalPaginationClasses: jt, registerColumnHeaderRefs: qt, registerRowCellRefs: Yt, onRowClick: Xt, onCellHover: Kt, selectableAcrossPagesComputed: Jt, ariaGridRole: Qt, ariaGridHeaderText: en, itemsSelectedCounter: Ue, showActionBar: tn, onColumnResized: nn, onSort: sn, onPaginationNavigate: on, onItemsPerPageChange: ln, onSearchTermCleared: an, onSearchTermInput: rn, hasMandatoryColumn: ke, setTitle: We, BentoActionBar: Cn, BentoPagination: hn, BentoLoadingIndicator: Te, BentoTypography: he, BentoDataGridConfigSettings: ao, DataGridColumns: Gs, DataGridLazyLoad: go, DataGridRow: mt, BentoDatagridEvent: b, BentoFilterBar: Se, BentoEmptyState: wn };
2533
2619
  }
2534
2620
  });
2535
- var Vo = function() {
2621
+ var Yo = function() {
2536
2622
  var o;
2537
2623
  var t = this, n = t._self._c, e = t._self._setupProxy;
2538
- return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "filter-values": t.filterValues, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (a) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, a), "update:filter-values": (a) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, a) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: e.localColumnsState, condensed: t.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : t._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: a, id: i, isFrozenColumns: C }, v) {
2539
- return [a != null && a.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${i}`, ref: (f) => e.registerColumnHeaderRefs(f), refInFor: !0, attrs: { columns: a, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": C, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": v === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "truncate-column-headers": t.truncateColumnHeaders }, on: { "column-hover": function(f) {
2624
+ return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "filter-values": t.filterValues, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: e.localColumnsState, condensed: t.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : t._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, _) {
2625
+ return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (f) => e.registerColumnHeaderRefs(f), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": g, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "truncate-column-headers": t.truncateColumnHeaders }, on: { "column-hover": function(f) {
2540
2626
  e.hoveredOverColumn = f;
2541
2627
  }, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(f) {
2542
2628
  return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
2543
- }, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(f, m) {
2544
- return { key: m, fn: function(c) {
2545
- return [t._t(m, null, null, c)];
2629
+ }, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(f, S) {
2630
+ return { key: S, fn: function(c) {
2631
+ return [t._t(S, null, null, c)];
2546
2632
  } };
2547
2633
  })], null, !0) }, e.draggingEventsForColumns)) : t._e()];
2548
- })], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(a, i) {
2549
- var C, v;
2550
- return n(e.DataGridRow, { key: i, ref: (f) => e.registerRowCellRefs(f, i), refInFor: !0, style: e.gridColumnWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-last-child": i + 1 === ((C = e.data) == null ? void 0 : C.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-data": a, "row-index": i, "row-set-size": (v = e.data) == null ? void 0 : v.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(f) {
2634
+ })], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(l, a) {
2635
+ var g, _;
2636
+ return n(e.DataGridRow, { key: a, ref: (f) => e.registerRowCellRefs(f, a), refInFor: !0, style: e.gridRowWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-last-child": a + 1 === ((g = e.data) == null ? void 0 : g.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": (_ = e.data) == null ? void 0 : _.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(f) {
2551
2637
  return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, f);
2552
- }, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(f, m) {
2553
- return { key: m, fn: function(c) {
2554
- return [t._t(m, null, null, c)];
2638
+ }, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(f, S) {
2639
+ return { key: S, fn: function(c) {
2640
+ return [t._t(S, null, null, c)];
2555
2641
  } };
2556
2642
  })], null, !0) });
2557
- }), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", class: e.horizontalScrollbarConditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(a) {
2643
+ }), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", class: e.horizontalScrollbarConditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(l) {
2558
2644
  return e.onAllRowSelect(!1);
2559
2645
  } } }) : t._e()], 1);
2560
- }, Zo = [], jo = /* @__PURE__ */ V(
2561
- Ho,
2562
- Vo,
2563
- Zo,
2646
+ }, Xo = [], Ko = /* @__PURE__ */ Y(
2647
+ qo,
2648
+ Yo,
2649
+ Xo,
2564
2650
  !1,
2565
2651
  null,
2566
- "7e91535c"
2652
+ "70019a06"
2567
2653
  );
2568
- const zl = jo.exports;
2654
+ const Wl = Ko.exports;
2569
2655
  export {
2570
- Re as B,
2571
- Pl as a,
2572
- se as b,
2573
- ae as c,
2574
- zl as d,
2575
- A as e,
2656
+ ye as B,
2657
+ kl as a,
2658
+ re as b,
2659
+ ce as c,
2660
+ Wl as d,
2661
+ b as e,
2576
2662
  Ce as f
2577
2663
  };
2578
- //# sourceMappingURL=data-grid.BTxmzkic.js.map
2664
+ //# sourceMappingURL=data-grid.C8S9cY5p.js.map