@adyen/bento-vue2 1.89.2 → 1.91.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 (296) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +381 -118
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.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/chip.js +1 -1
  35. package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
  36. package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
  37. package/dist/chunks/action-bar.Dj830k6L.js +334 -0
  38. package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.js.map} +1 -1
  39. package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
  40. package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
  41. package/dist/chunks/ai-tag.AyG2UWCB.js +110 -0
  42. package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
  43. package/dist/chunks/alert.CXRb-Smf.js +160 -0
  44. package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
  45. package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
  46. package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
  47. package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.C52VMtnd.js} +104 -67
  48. package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
  50. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
  51. package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
  52. package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
  53. package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
  54. package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
  55. package/dist/chunks/{calendar.CXKhBF2f.js → calendar.CqsfThnC.js} +438 -346
  56. package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
  57. package/dist/chunks/card.8z7UQeVK.js +165 -0
  58. package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
  59. package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
  60. package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
  61. package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
  62. package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
  63. package/dist/chunks/chip.BFY_-VCz.js +84 -0
  64. package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
  65. package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
  66. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
  67. package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
  68. package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
  69. package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
  70. package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
  71. package/dist/chunks/copy.qqGYFbKJ.js +133 -0
  72. package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
  73. package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
  74. package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
  75. package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
  76. package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
  77. package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.DNxNVV44.js} +3 -3
  78. package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
  79. package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
  80. package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
  81. package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
  82. package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
  83. package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
  84. package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
  85. package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
  86. package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
  87. package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
  88. package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
  89. package/dist/chunks/dialog-page.EdejG53a.js +143 -0
  90. package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
  91. package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
  92. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
  93. package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
  94. package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
  95. package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
  96. package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
  97. package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
  98. package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
  99. package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
  100. package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
  101. package/dist/chunks/error-message.CyERcfdt.js +72 -0
  102. package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
  103. package/dist/chunks/field-label.DjjjkcO6.js +97 -0
  104. package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
  105. package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
  106. package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
  107. package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
  108. package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
  109. package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
  110. package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
  111. package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CvUaoMzj.js} +3 -3
  112. package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
  113. package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
  114. package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
  115. package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
  116. package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
  117. package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
  118. package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
  119. package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
  120. package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.js.map} +1 -1
  121. package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
  122. package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
  123. package/dist/chunks/input-field-password.BNAtIn_D.js +381 -0
  124. package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
  125. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
  126. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
  127. package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
  128. package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
  129. package/dist/chunks/input-time.BLuMfakv.js +135 -0
  130. package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
  131. package/dist/chunks/inspector.BzBPlz-5.js +172 -0
  132. package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
  133. package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
  134. package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
  135. package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
  136. package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
  137. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
  138. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
  139. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.DTvg2NLk.js} +63 -36
  140. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
  141. package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
  142. package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
  143. package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
  144. package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
  145. package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
  146. package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.js.map} +1 -1
  147. package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
  148. package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
  149. package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.Bb-L-0io.js} +4 -4
  150. package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
  151. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
  152. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
  153. package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
  154. package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
  155. package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
  156. package/dist/chunks/secondary-nav.C-nPZR-2.js.map +1 -0
  157. package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
  158. package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
  159. package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.CLJPaknG.js} +3 -3
  160. package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
  161. package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
  162. package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
  163. package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
  164. package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
  165. package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
  166. package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
  167. package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.DUIqCmwg.js} +5 -5
  168. package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
  169. package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
  170. package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
  171. package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
  172. package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
  173. package/dist/chunks/textarea.CJS-1I41.js +219 -0
  174. package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
  175. package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
  176. package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
  177. package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
  178. package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
  179. package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
  180. package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
  181. package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.CZt_mcuT.js} +190 -103
  182. package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
  183. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
  184. package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
  185. package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
  186. package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
  187. package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
  188. package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
  189. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
  190. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
  191. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  192. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  193. package/dist/click-outside.js +1 -1
  194. package/dist/code-snippet.js +1 -1
  195. package/dist/country.js +3 -3
  196. package/dist/dashboard-template.js +1 -1
  197. package/dist/dashed-underline.js +1 -1
  198. package/dist/data-grid-template.js +1 -1
  199. package/dist/data-grid.js +1 -1
  200. package/dist/date-picker.js +2 -2
  201. package/dist/date-range-picker.js +2 -2
  202. package/dist/draggable.js +1396 -0
  203. package/dist/draggable.js.map +1 -0
  204. package/dist/dropdown.js +11 -12
  205. package/dist/dropdown.js.map +1 -1
  206. package/dist/empty-state.js +1 -1
  207. package/dist/file-uploader.js +1 -1
  208. package/dist/filter-bar.js +1 -1
  209. package/dist/form-layout.js +1 -1
  210. package/dist/header-with-views.js +1 -1
  211. package/dist/header.js +1 -1
  212. package/dist/index.js +280 -275
  213. package/dist/index.js.map +1 -1
  214. package/dist/info-icon.js +1 -1
  215. package/dist/input-field-password.js +1 -1
  216. package/dist/input-field-phone-number.js +1 -1
  217. package/dist/input-field.js +1 -1
  218. package/dist/input-time.js +5 -0
  219. package/dist/input-time.js.map +1 -0
  220. package/dist/inspector.js +1 -1
  221. package/dist/internal.js +26 -25
  222. package/dist/internal.js.map +1 -1
  223. package/dist/link.js +1 -1
  224. package/dist/list.js +1 -1
  225. package/dist/menu.js +1 -1
  226. package/dist/modal-fullscreen.js +1 -1
  227. package/dist/modal.js +2 -2
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/rich-text-editor.js +1 -1
  233. package/dist/search-bar.js +2 -2
  234. package/dist/secondary-nav.js +1 -1
  235. package/dist/segmented-control.js +1 -1
  236. package/dist/selection-card.js +1 -1
  237. package/dist/sidepanel.js +1 -1
  238. package/dist/stepper.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/toast.js +1 -1
  246. package/dist/tutorial.js +1 -1
  247. package/dist/web-types.json +297 -4
  248. package/package.json +10 -15
  249. package/dist/assets/dropdown-default-textbox.css +0 -1
  250. package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
  251. package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
  252. package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
  253. package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
  254. package/dist/chunks/calendar.CXKhBF2f.js.map +0 -1
  255. package/dist/chunks/card.GjhsXOT0.js +0 -128
  256. package/dist/chunks/chip.DTpENaGC.js +0 -57
  257. package/dist/chunks/copy.BVGQcf22.js +0 -86
  258. package/dist/chunks/country.types.DxKjyd0S.js +0 -20
  259. package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
  260. package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
  261. package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
  262. package/dist/chunks/date-picker.CnazYcSX.js +0 -155
  263. package/dist/chunks/date-picker.CnazYcSX.js.map +0 -1
  264. package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
  265. package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
  266. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  267. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  268. package/dist/chunks/dialog-page.oyG153fC.js +0 -116
  269. package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
  270. package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
  271. package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
  272. package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
  273. package/dist/chunks/error-message.RxdStT3S.js +0 -106
  274. package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
  275. package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
  276. package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
  277. package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
  278. package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
  279. package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
  280. package/dist/chunks/input-field.m1PMwa4C.js +0 -170
  281. package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
  282. package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
  283. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  284. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
  285. package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
  286. package/dist/chunks/search-bar.DPjYDhja.js +0 -89
  287. package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
  288. package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
  289. package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
  290. package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
  291. package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
  292. package/dist/chunks/use-cached-selected-values.DqX2qsMC.js.map +0 -1
  293. package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
  294. package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
  295. package/dist/draggable-handle.js +0 -149
  296. package/dist/draggable-handle.js.map +0 -1
@@ -0,0 +1,4071 @@
1
+ import { ref as S, onMounted as Oe, nextTick as ee, watch as le, onUnmounted as It, reactive as Ge, toRefs as Ve, computed as C, watchEffect as zn, onBeforeUpdate as Bn, defineComponent as re, inject as ge, toRef as $e, useSlots as He, provide as De } from "vue";
2
+ import { C as Un } from "./checkmark-circle-fill.BttTCjrM.js";
3
+ import { W as kn } from "./warning-filled.CbJ1pcB2.js";
4
+ /* empty css */
5
+ import { n as J } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { C as Nt } from "./cross.CC_B-vG-.js";
7
+ import { N as rt } from "./minus-small.DJacLGTw.js";
8
+ import { b as $n } from "./popper-container.C_n9Ds1W.js";
9
+ import { E as j, b as Dt, B as Wn, T as Gn } from "./tooltip.BxtnF3is.js";
10
+ import { B as Vn } from "./dashed-underline.DL2_sik5.js";
11
+ import { B as Le, p as Ft } from "./typography.C8lPlsbD.js";
12
+ import { u as _e } from "./index.B6WW_F-J.js";
13
+ import { B as Hn } from "./tag.D2xagTJv.js";
14
+ import { B as Zn } from "./action-bar.Dj830k6L.js";
15
+ import { B as jn } from "./pagination.D6BxMw5L.js";
16
+ import { B as Ze } from "./loading-indicator.PxbRzshH.js";
17
+ import { u as je } from "./use-has-slot.C9lQZ6nz.js";
18
+ import { u as qn } from "./use-touch-device.DTqFAbXh.js";
19
+ import { g as Me } from "./generate-uid.NJ8tVoha.js";
20
+ import { a as Kn } from "./filter-bar.Bd4ghW_B.js";
21
+ import { B as Yn } from "./empty-state.DMV23IZy.js";
22
+ import { E as Xn } from "./tabs.keys.B4qGhjp2.js";
23
+ import { D as Jn } from "./data-grid-template.keys.VezYtHtM.js";
24
+ import { b as Qn } from "./index.CwzYJHw2.js";
25
+ import { o as qe } from "./resize.Bqks3WUm.js";
26
+ import "./index.Cl4_42j5.js";
27
+ import { b as Mt } from "./focus-trap.DRqjHzt6.js";
28
+ import { B as xt } from "./checkbox.vNjt6QDJ.js";
29
+ import { B as Pt } from "./button.C9b2AC9w.js";
30
+ import { c as Ke, f as zt, h as es, b as ts, a as ns, O as ct, D as ss } from "./button-actions.Bdbu0bvt.js";
31
+ import { E as dt } from "./link.DB5g6d48.js";
32
+ import { C as ut } from "./copy.qqGYFbKJ.js";
33
+ import { C as os } from "./chevron-down.eYtgv5ly.js";
34
+ import { C as ls } from "./chevron-up.d8cwIlA_.js";
35
+ import { u as as } from "./use-expandable-content-height.GkjjbmPy.js";
36
+ import { B as is } from "./info-icon.DCR42Kvm.js";
37
+ import { D as rs } from "./use-cached-selected-values.BJbWbkEQ.js";
38
+ import { B as ft } from "./popover.types.hA13DZPg.js";
39
+ import { A as cs } from "./arrow-left.CRREfabP.js";
40
+ import { A as ds } from "./arrow-right.Dn3AYpUP.js";
41
+ import { H as us, S as fs } from "./show.B_mKPF6I.js";
42
+ import { l as gt } from "./events.BQOQSSb7.js";
43
+ import { B as Bt } from "./toggle.B1z1YPe_.js";
44
+ import { B as gs } from "./search-bar.MVJS9-Mh.js";
45
+ import { u as ms } from "./dropdown.Ca-f8tdX.js";
46
+ import { S as _s } from "./search.D53Ia3rC.js";
47
+ import { B as Cs } from "./directive.Bfr4fuOy.js";
48
+ import "../assets/data-grid.css";
49
+ const mt = (s) => {
50
+ if (!s)
51
+ return 0;
52
+ const t = window.getComputedStyle(s);
53
+ let n = s.offsetHeight;
54
+ const e = window.getComputedStyle(s, "::after");
55
+ if (e.content !== "none" && e.position === "absolute") {
56
+ const l = parseFloat(e.height), a = parseFloat(e.bottom);
57
+ !isNaN(l) && !isNaN(a) && a < 0 && a + l <= 0 && (n += l);
58
+ }
59
+ const o = parseFloat(t.top);
60
+ return !isNaN(o) && o < 0 && (n += o), n;
61
+ }, _t = (s, t, n = S(!1), e = null) => {
62
+ const o = S(0);
63
+ let l = null, a = null;
64
+ const r = () => {
65
+ const d = t.value ? mt(s.value) : 0, f = n.value && e ? mt(e.value) : 0;
66
+ o.value = d + f;
67
+ };
68
+ return Oe(() => {
69
+ ee(() => {
70
+ const d = le(
71
+ s,
72
+ () => {
73
+ s != null && s.value && (ee(() => d()), l = qe(s.value, r), a = new MutationObserver(r), a.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
74
+ },
75
+ { immediate: !0 }
76
+ );
77
+ le(
78
+ [t, n],
79
+ () => {
80
+ r();
81
+ },
82
+ { immediate: !0 }
83
+ );
84
+ });
85
+ }), It(() => {
86
+ l == null || l.disconnect(), a == null || a.disconnect();
87
+ }), o;
88
+ };
89
+ var We = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(We || {}), X = /* @__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.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL = "deselect-all", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(X || {}), fe = /* @__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.FIT_CONTENT = "fit-content", s.ZEBRA_ROWS = "zebra-rows", s))(fe || {}), ye = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ye || {}), D = /* @__PURE__ */ ((s) => (s.CELL_FOCUS = "cell-focus", 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_VALUES_OBJECT = "update:filter-values-object", 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.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.SORT = "sort", s))(D || {}), Fe = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Fe || {});
90
+ const vs = (s, t) => {
91
+ const n = S(null), e = S(!1), o = S(void 0), l = s.value.reduce((E, N) => (E[N.field] = null, E), {}), a = Ge(l), r = Ve(a);
92
+ let d = 0, f = "";
93
+ const p = C(
94
+ () => Object.fromEntries(s.value.map(({ field: E, width: N, minWidth: b }) => [E, { width: N, minWidth: b }]))
95
+ );
96
+ zn(() => o.value = p.value);
97
+ let h = null, y = null;
98
+ const R = (E) => {
99
+ const N = E.clientX - d, b = f, m = o.value[b].width + N;
100
+ o.value[b].width = m > p.value[b].minWidth ? m : p.value[b].minWidth, t(X.COLUMN_RESIZING, o.value), d = E.clientX;
101
+ }, u = () => {
102
+ e.value = !1, h == null || h(), y == null || y(), f && t(X.COLUMN_RESIZE, {
103
+ field: f,
104
+ width: o.value[f].width
105
+ }), h = null, y = null, f = "", d = null;
106
+ }, w = (E, N, b) => {
107
+ if (b.preventDefault(), E) {
108
+ if (e.value = !0, b.buttons !== 1) {
109
+ u();
110
+ return;
111
+ }
112
+ f = N, d = b.clientX, h = gt(window, "mousemove", R), y = gt(window, "mouseup", u);
113
+ }
114
+ };
115
+ return le(
116
+ () => e.value,
117
+ (E, N) => {
118
+ !E && N && (t(X.COLUMN_HOVER, n.value), n.value = null);
119
+ }
120
+ ), {
121
+ resizeData: o,
122
+ allColumnRefs: r,
123
+ startResize: w,
124
+ isResizing: e,
125
+ columnHoverEventToEmitAfterResizing: n
126
+ };
127
+ }, hs = 100, Ct = 50, oe = "b-actions-column", ps = 42, bs = 56, ws = 56, Ss = 80, Rs = 36, As = 1, Ut = 16, Es = 20, ys = (s, t, n) => {
128
+ const e = {}, o = [], l = (r) => {
129
+ const d = e[r];
130
+ d && d.frozen !== !0 && (e[r].frozen = !0, o.push(r));
131
+ };
132
+ function a() {
133
+ if (o.length === n.length)
134
+ return;
135
+ const r = { min: {} };
136
+ let d = s, f = t, p = 0;
137
+ o.forEach((h) => {
138
+ d -= e[h].computedWidth, f -= e[h].flex;
139
+ });
140
+ for (let h = 0, y = n.length; h < y; h += 1) {
141
+ const R = n[h];
142
+ if (e[R.field] && e[R.field].frozen === !0)
143
+ continue;
144
+ let w = d / f * R.flex;
145
+ w < R.minWidth && (p += R.minWidth - w, w = R.minWidth, r.min[R.field] = !0), e[R.field] = {
146
+ frozen: !1,
147
+ computedWidth: w,
148
+ flex: R.flex
149
+ };
150
+ }
151
+ p > 0 ? Object.keys(r.min).forEach((h) => {
152
+ l(h);
153
+ }) : n.forEach(({ field: h }) => {
154
+ l(h);
155
+ }), a();
156
+ }
157
+ return a(), e;
158
+ }, vt = (s, t) => {
159
+ let n = As;
160
+ return t && (n += Ut * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
161
+ }, Ls = (s) => {
162
+ var t, n, e, o, l;
163
+ 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 ? Ss : ws : Rs : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? bs : ps;
164
+ }, Ts = (s, t, n, e, o, l) => {
165
+ const a = S(s.value), r = S(t), d = S(n), f = S(e), p = S(o), h = S(!1), y = S(0);
166
+ le(
167
+ () => s.value,
168
+ (i, g) => {
169
+ var I, P;
170
+ const A = (i == null ? void 0 : i.map(({ field: x }) => x).toString()) === (g == null ? void 0 : g.map(({ field: x }) => x).toString());
171
+ if (!((I = l == null ? void 0 : l.allowColumnDragAndDrop) != null && I.value) || !A) {
172
+ a.value = s.value;
173
+ return;
174
+ }
175
+ a.value = ((P = a.value) == null ? void 0 : P.length) === 0 ? s.value : s.value.sort((x, U) => {
176
+ const q = a.value.findIndex((V) => V.field === x.field), G = a.value.findIndex((V) => V.field === U.field);
177
+ return q === -1 ? 1 : G === -1 ? -1 : q - G;
178
+ });
179
+ }
180
+ );
181
+ const R = S();
182
+ let u = null;
183
+ const w = C(() => {
184
+ var q, G, V;
185
+ const i = [];
186
+ let g = 0, A = 0;
187
+ const I = {};
188
+ let P = a.value.filter((W) => W.visible !== !1);
189
+ const x = a.value.filter((W) => W.visible === !1);
190
+ if ((q = l == null ? void 0 : l.hasSelectableColumn) != null && q.value || (G = l == null ? void 0 : l.hasNestedContent) != null && G.value || (V = l == null ? void 0 : l.hasNestedRows) != null && V.value) {
191
+ const W = Ls(l);
192
+ P = [
193
+ {
194
+ field: oe,
195
+ label: "",
196
+ minWidth: W,
197
+ width: W,
198
+ frozen: !0,
199
+ padding: { left: !1, right: !1 }
200
+ },
201
+ ...P
202
+ ];
203
+ }
204
+ P.forEach((W) => {
205
+ const B = { ...W };
206
+ let ne;
207
+ B.flex && B.flex > 0 ? (g += B.flex, ne = 0, i.push(B)) : ne = Math.max(
208
+ (B == null ? void 0 : B.width) ?? hs,
209
+ (B == null ? void 0 : B.minWidth) ?? Ct
210
+ ), A += ne, B.width = ne, B.minWidth = (B == null ? void 0 : B.minWidth) ?? Ct, I[B.field] = B;
211
+ }), A += y.value;
212
+ const U = Math.max(R.value - A, 0);
213
+ if (g > 0 && R.value > 0) {
214
+ const W = ys(U, g, i);
215
+ Object.keys(W).forEach((B) => {
216
+ I[B].width = W[B].computedWidth;
217
+ });
218
+ }
219
+ return x.forEach((W) => {
220
+ const B = { ...W };
221
+ I[B.field] = B;
222
+ }), Object.values(I);
223
+ }), E = S(void 0), N = (i) => {
224
+ E.value = { ...E.value, ...i };
225
+ }, b = async () => {
226
+ a.value.some((i) => i == null ? void 0 : i.autoWidth) && (h.value = !0, await ee(), a == null || a.value.filter((i) => i == null ? void 0 : i.autoWidth).forEach(({ field: i, minWidth: g }) => {
227
+ var x, U, q, G;
228
+ const A = vt(
229
+ (x = f.value) == null ? void 0 : x[i],
230
+ (U = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : U.value
231
+ ), I = (G = (q = p.value) == null ? void 0 : q[i]) == null ? void 0 : G.reduce(
232
+ (V, W) => Math.max(V, vt(W)),
233
+ 0
234
+ ), P = Math.max(A, I ?? 0);
235
+ (g === void 0 || P > g) && N({
236
+ [i]: {
237
+ width: P
238
+ }
239
+ });
240
+ }), h.value = !1);
241
+ };
242
+ le([() => a.value, () => r.value], async () => {
243
+ a.value.some((i) => i == null ? void 0 : i.autoWidth) && await b();
244
+ });
245
+ const m = C(
246
+ () => w.value.map((i) => {
247
+ var g, A;
248
+ return {
249
+ ...i,
250
+ // Override column width with resized ones
251
+ width: ((A = (g = E.value) == null ? void 0 : g[i.field]) == null ? void 0 : A.width) ?? i.width
252
+ };
253
+ })
254
+ ), O = C(
255
+ () => {
256
+ var i;
257
+ return ((i = m.value) == null ? void 0 : i.filter(({ visible: g }) => g !== !1).reduce((g, A) => A.width + g, 0)) + y.value;
258
+ }
259
+ ), F = C(
260
+ () => R.value <= O.value
261
+ ), _ = C(() => ({
262
+ width: R.value > O.value ? "100%" : "fit-content"
263
+ }));
264
+ return Oe(() => {
265
+ var g;
266
+ const i = l != null && l.isDataGridTemplate ? Es : 0;
267
+ ee(() => {
268
+ d.value && (R.value = d.value.getBoundingClientRect().width - i);
269
+ const A = le(
270
+ d,
271
+ () => {
272
+ d.value && (ee(() => A()), u = qe(d.value, ({ width: I }) => {
273
+ R.value = I - i;
274
+ }));
275
+ },
276
+ { immediate: !0 }
277
+ );
278
+ }), (g = document == null ? void 0 : document.fonts) != null && g.ready ? document.fonts.ready.then(() => {
279
+ b();
280
+ }) : b();
281
+ }), It(() => {
282
+ u == null || u.disconnect();
283
+ }), Bn(() => {
284
+ var i;
285
+ p.value && ((i = Object.keys(p.value)) == null ? void 0 : i.length) > 0 && Object.keys(p.value).forEach((A) => {
286
+ p.value[A] = [];
287
+ });
288
+ }), {
289
+ columnDefs: m,
290
+ gridRowWidthStyle: _,
291
+ onColumnWidthOverride: N,
292
+ isMeasuringColumnWidths: h,
293
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
294
+ columns: a,
295
+ totalWidthOfAllColumns: O,
296
+ rowActionsMaxWidth: y
297
+ };
298
+ }, Os = (s, t, n, e, o, l, a) => {
299
+ const r = S(s.value ?? []), d = Ge({
300
+ allItemsSelected: !1,
301
+ isIndeterminate: !1
302
+ }), f = C(
303
+ () => n.value.flatMap((i) => {
304
+ var g;
305
+ return [i, ((g = i == null ? void 0 : i.children) == null ? void 0 : g.length) > 0 ? i == null ? void 0 : i.children : []];
306
+ }).flat()
307
+ ), p = C(
308
+ () => {
309
+ var i, g;
310
+ return ((i = n.value) == null ? void 0 : i.length) > 0 && ((g = f.value) == null ? void 0 : g.every((A) => r.value.includes(e(A))));
311
+ }
312
+ ), h = C(
313
+ () => {
314
+ var i, g;
315
+ return ((i = n.value) == null ? void 0 : i.length) > 0 && ((g = f.value) == null ? void 0 : g.filter((A) => !o(A)).every((A) => r.value.includes(e(A))));
316
+ }
317
+ ), y = C(
318
+ () => {
319
+ var i, g;
320
+ return ((i = n.value) == null ? void 0 : i.length) > 0 && !((g = f.value) != null && g.some((A) => r.value.includes(e(A))));
321
+ }
322
+ ), R = C(
323
+ () => {
324
+ var i, g;
325
+ return ((i = n.value) == null ? void 0 : i.length) > 0 && !((g = f.value) != null && g.filter((A) => !o(A)).some((A) => r.value.includes(e(A))));
326
+ }
327
+ ), u = C(() => {
328
+ var i;
329
+ return !(l != null && l.value) || ((i = a == null ? void 0 : a.value) == null ? void 0 : i.totalCount) === void 0 ? !1 : r.value.length >= a.value.totalCount && h.value;
330
+ }), w = () => {
331
+ t(D.SELECT, r.value), t(D.UPDATE_SELECTION, r.value);
332
+ }, E = (i) => {
333
+ var g, A;
334
+ r.value = i, p.value ? (d.allItemsSelected = !0, d.isIndeterminate = !1) : (d.allItemsSelected = !1, d.isIndeterminate = ((g = r.value) == null ? void 0 : g.length) > 0 && ((A = n.value) == null ? void 0 : A.length) > 0 && n.value.some(
335
+ (I) => {
336
+ var P;
337
+ return r.value.includes(e(I)) || ((P = I == null ? void 0 : I.children) == null ? void 0 : P.some((x) => r.value.includes(e(x))));
338
+ }
339
+ ));
340
+ }, N = (i) => {
341
+ ee(() => {
342
+ var A, I;
343
+ d.allItemsSelected = i;
344
+ const g = ((I = (A = f.value) == null ? void 0 : A.filter(
345
+ (P) => !o(P) && ((P == null ? void 0 : P.children) === void 0 || P.children.every((x) => !o(x)))
346
+ )) == null ? void 0 : I.map((P) => e(P))) ?? [];
347
+ i ? (r.value = [.../* @__PURE__ */ new Set([...r.value, ...g])], d.isIndeterminate = !p.value) : (r.value = r.value.filter((P) => !g.includes(P)), d.isIndeterminate = !y.value), w();
348
+ });
349
+ }, b = () => {
350
+ ee(() => {
351
+ E([]), w();
352
+ });
353
+ }, m = (i, g) => {
354
+ ee(() => {
355
+ var A;
356
+ E(((A = g == null ? void 0 : g.children) == null ? void 0 : A.length) > 0 ? O(i, g) : i), w();
357
+ });
358
+ }, O = (i, g) => {
359
+ var P;
360
+ const A = e(g), I = (P = g.children) == null ? void 0 : P.filter((x) => !o(x)).map((x) => e(x));
361
+ if (i.includes(A)) {
362
+ const x = i;
363
+ return I.forEach((U) => {
364
+ x.includes(U) || x.push(U);
365
+ }), x;
366
+ }
367
+ return i.filter((x) => !I.includes(x));
368
+ }, F = (i, g, A) => {
369
+ ee(() => {
370
+ var P, x;
371
+ const I = e(g);
372
+ i.includes(e(A)) ? E(
373
+ !i.includes(I) && ((P = g == null ? void 0 : g.children) != null && P.every((U) => i.includes(e(U)))) ? [...i, I] : i
374
+ ) : E(
375
+ i.includes(I) && !((x = g == null ? void 0 : g.children) != null && x.every((U) => i.includes(e(U)))) ? i.filter((U) => U !== I) : i
376
+ ), w();
377
+ });
378
+ }, _ = C(() => u.value ? "all" : h.value ? "page" : !r.value || r.value.length === 0 ? "none" : R.value ? "unselected-page" : "single");
379
+ return le(
380
+ () => s.value,
381
+ () => {
382
+ E(s.value ?? []);
383
+ },
384
+ { immediate: !0 }
385
+ ), le(
386
+ () => n.value,
387
+ () => {
388
+ const i = n.value.filter((g) => r.value.includes(e(g))).flatMap(
389
+ (g) => {
390
+ var A;
391
+ return ((A = g == null ? void 0 : g.children) == null ? void 0 : A.length) > 0 ? g.children.map((I) => e(I)).filter((I) => !r.value.includes(I)) : [];
392
+ }
393
+ );
394
+ (i == null ? void 0 : i.length) > 0 ? (E([...r.value, ...i]), w()) : E(r.value);
395
+ }
396
+ ), {
397
+ onAllRowSelect: N,
398
+ onRowSelect: m,
399
+ onNestedRowSelect: F,
400
+ onDeselectAll: b,
401
+ allItemsSelectedState: d,
402
+ selectedItems: r,
403
+ selectionState: _
404
+ };
405
+ }, Is = (s, t, n) => ({ isSorting: (a) => s.value.some((r) => r.field === a), getSortingDirection: (a) => {
406
+ var r;
407
+ return (r = s.value.find((d) => d.field === a)) == null ? void 0 : r.direction;
408
+ }, sortByColumnField: (a) => {
409
+ var f;
410
+ if (!t.value.some((p) => p.field === a && p.sortable))
411
+ return;
412
+ const d = [{
413
+ field: a,
414
+ direction: ((f = s.value.find((p) => p.field === a)) == null ? void 0 : f.direction) === ye.ASCENDING ? ye.DESCENDING : ye.ASCENDING
415
+ }];
416
+ n("sort", d);
417
+ } });
418
+ var se = ((s) => (s[s.ARROW_DOWN = j.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = j.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = j.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = j.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = j.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = j.PAGE_DOWN] = "PAGE_DOWN", s[s.END = j.END] = "END", s[s.HOME = j.HOME] = "HOME", s))(se || {});
419
+ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
420
+ const a = C(() => l.value || e.value ? !0 : n.value.some((b) => b.infoIconTooltip || b.sortable)), r = C(() => {
421
+ let b = n.value.filter(({ visible: m }) => m !== !1);
422
+ return o.value && (b = [
423
+ ...b,
424
+ { field: Ye, label: "" }
425
+ ]), b;
426
+ }), d = C(() => r.value.length), f = C(() => {
427
+ if (!s.value)
428
+ return [];
429
+ const b = Object.keys(s.value)[0];
430
+ if (!b || !s.value[b])
431
+ return [];
432
+ const m = [];
433
+ if (a.value)
434
+ for (const F of r.value) {
435
+ const _ = t.value[F.field];
436
+ m.push(_);
437
+ }
438
+ const O = s.value[b].length;
439
+ for (let F = 0; F < O; F++)
440
+ for (const _ of r.value) {
441
+ const i = s.value[_.field];
442
+ i != null && i[F] && m.push(i[F]);
443
+ }
444
+ return m;
445
+ }), p = (b) => Math.floor(b / d.value), h = (b, m, O) => {
446
+ const F = f.value.length - 1, _ = d.value - 1, i = p(b), g = b - d.value * i;
447
+ return {
448
+ [se.PAGE_UP]: g + (a.value ? d.value : 0),
449
+ [se.PAGE_DOWN]: F - _ + g,
450
+ [se.END]: O ? F : d.value * i + _,
451
+ [se.HOME]: O ? a.value ? d.value : 0 : d.value * i
452
+ }[m];
453
+ }, y = (b, m) => {
454
+ const O = p(b), _ = {
455
+ [se.ARROW_DOWN]: d.value,
456
+ [se.ARROW_UP]: O === 0 && !a.value ? 0 : -d.value,
457
+ [se.ARROW_LEFT]: -1,
458
+ [se.ARROW_RIGHT]: 1
459
+ }[m], i = b + _;
460
+ return i < 0 || i >= f.value.length ? b : i;
461
+ }, R = (b) => [
462
+ se.PAGE_UP,
463
+ se.PAGE_DOWN,
464
+ se.END,
465
+ se.HOME
466
+ ].includes(b), u = (b, m, O) => {
467
+ const F = f.value.indexOf(b);
468
+ return R(m) ? h(F, m, O) : y(F, m);
469
+ }, w = (b, m, O) => {
470
+ if (!f.value.includes(b))
471
+ return;
472
+ const F = u(b, m, O);
473
+ f.value[F].focus();
474
+ }, E = (b) => b in se;
475
+ return {
476
+ isNavigationKeyCode: E,
477
+ focusOnNextGridcell: w,
478
+ navigationInput: (b) => {
479
+ const { ctrlKey: m, key: O, target: F } = b, _ = O;
480
+ let i = F;
481
+ i.getAttribute("role") !== "menuitem" && (f.value.includes(i) || (i = F.closest('[role="gridcell"], [role="columnheader"]')), f.value.includes(i) && E(_) && w(i, _, m));
482
+ }
483
+ };
484
+ }, Ds = 90, Fs = (s, t, n, e, o) => {
485
+ const l = S(s), a = S(t), r = S(n), d = S(e), f = C(() => l.value !== "none"), p = C(() => l.value === "automatic"), h = () => {
486
+ o(D.UPDATE_SHOW_MORE);
487
+ };
488
+ return le(
489
+ () => a.value,
490
+ () => {
491
+ p.value && r.value.offsetHeight / a.value * 100 > Ds && !d.value && h();
492
+ }
493
+ ), { isLazyLoad: f, isInfiniteScroll: p, verticalScrollPosition: a, emitLazyLoadEvent: h };
494
+ }, Ms = (s, t, n) => {
495
+ const e = S(s), o = S(t), l = Ge({
496
+ dragging: null,
497
+ dragToLeft: null,
498
+ target: null
499
+ }), a = (R, u = 0) => {
500
+ const w = e.value.findIndex((b) => b.field === R.field), E = w + u;
501
+ if (E < 0 || E > e.value.length - 1)
502
+ return;
503
+ const N = [...e.value];
504
+ N.splice(E, 0, N.splice(w, 1)[0]), n(D.COLUMNS, N), n(D.UPDATE_COLUMNS, N);
505
+ }, r = (R, u) => {
506
+ l.dragging = R, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
507
+ }, d = (R, u) => {
508
+ l.target = R;
509
+ const w = u.currentTarget.getBoundingClientRect(), E = w.left + w.width / 2, N = u.clientX ?? 0;
510
+ l.dragToLeft = N <= E;
511
+ }, f = (R) => {
512
+ var u, w;
513
+ if (((u = l.dragging) == null ? void 0 : u.field) !== R.field) {
514
+ const E = e.value.findIndex((_) => {
515
+ var i;
516
+ return _.field === ((i = l.dragging) == null ? void 0 : i.field);
517
+ }), N = e.value.findIndex((_) => _.field === R.field), b = l.dragToLeft ? N : N + 1, m = b > E ? b - 1 : b;
518
+ let O = [...e.value];
519
+ O.splice(
520
+ m === -1 ? 0 : m,
521
+ 0,
522
+ O.splice(E, 1)[0]
523
+ );
524
+ const F = e.value.findIndex((_) => !(_ != null && _.frozen));
525
+ ((w = l.dragging) == null ? void 0 : w.frozen) !== R.frozen && b !== F && (O = O.map(
526
+ (_) => {
527
+ var i;
528
+ return ((i = l.dragging) == null ? void 0 : i.field) === _.field ? { ..._, frozen: !!(R != null && R.frozen) } : _;
529
+ }
530
+ )), n(D.COLUMNS, O), n(D.UPDATE_COLUMNS, O);
531
+ }
532
+ l.dragging = null, l.target = null;
533
+ }, p = () => {
534
+ l.dragging = null, l.dragToLeft = null, l.target = null;
535
+ }, h = C(() => o.value ? {
536
+ [X.COLUMN_DRAG_START]: (R, u) => r(R, u),
537
+ [X.COLUMN_DRAG_ENTER]: (R, u) => d(R, u),
538
+ [X.COLUMN_DROP]: (R) => f(R),
539
+ [X.COLUMN_DRAG_END]: () => p()
540
+ } : {}), y = C(() => (R) => o.value ? {
541
+ dragenter: (u) => {
542
+ u.preventDefault(), d(R, u);
543
+ },
544
+ drop: () => {
545
+ f(R);
546
+ },
547
+ dragover: (u) => {
548
+ u.preventDefault();
549
+ }
550
+ } : {});
551
+ return {
552
+ // Values
553
+ draggingColumns: l,
554
+ // Methods
555
+ draggingEventsForColumns: h,
556
+ draggingEventsForRowCell: y,
557
+ onMoveColumnByOffset: a
558
+ };
559
+ }, xs = (s, t, n) => {
560
+ const e = S(s), o = S(t.value), l = C(
561
+ () => [...e.value].sort((u, w) => u.frozen === w.frozen ? 0 : u.frozen ? -1 : 1)
562
+ ), a = C(
563
+ () => l.value.filter((u) => u.frozen && u.visible !== !1)
564
+ ), r = C(
565
+ () => l.value.filter((u) => !u.frozen && u.visible !== !1)
566
+ ), d = C(
567
+ () => [
568
+ { columnSet: a.value, id: "frozen", isFrozenColumns: !0 },
569
+ { columnSet: r.value, id: "unfrozen" }
570
+ ].filter(({ columnSet: u }) => u.length)
571
+ ), f = C(
572
+ () => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== oe).length === 1
573
+ ), p = (u) => n(D.UPDATE_CONDENSED, u), h = (u) => {
574
+ o.value = u, n(D.UPDATE_ZEBRA_ROWS, u);
575
+ }, y = (u) => {
576
+ n(D.COLUMNS, u), n(D.UPDATE_COLUMNS, u);
577
+ }, R = (u) => {
578
+ const w = l.value.map(
579
+ (E) => (E == null ? void 0 : E.field) === u.field ? u : E
580
+ );
581
+ y(w);
582
+ };
583
+ return le(t, (u) => {
584
+ o.value = u;
585
+ }), {
586
+ // Values
587
+ columnSets: d,
588
+ isOnlyOneVisibleColumn: f,
589
+ internalZebraRows: o,
590
+ sortedColumns: l,
591
+ // Methods
592
+ onConfigSettingsColumnsUpdate: y,
593
+ onConfigSettingsColumnUpdate: R,
594
+ onConfigSettingsCondensedUpdate: p,
595
+ onConfigSettingsZebraRowsUpdate: h
596
+ };
597
+ }, Ps = (s, t, n, e, o, l, a) => {
598
+ const r = S(0), d = S(!1), f = S(!1);
599
+ le([() => r.value, () => l.value], ([u]) => {
600
+ s.value.scrollLeft = u, t.value.scrollLeft = u, d.value = !!u, f.value = t.value.scrollWidth - t.value.offsetWidth > u;
601
+ }), Oe(async () => {
602
+ var u, w;
603
+ await ee(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((w = t.value) == null ? void 0 : w.scrollWidth) && (f.value = !0);
604
+ });
605
+ const p = (u) => {
606
+ if (r.value = u.target.scrollLeft, n.value = s.value.scrollHeight - u.target.scrollTop, e != null && e.value) {
607
+ const w = u.target.scrollLeft;
608
+ e.value.scrollLeft !== w && (e.value.scrollLeft = w);
609
+ }
610
+ }, h = (u) => {
611
+ u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
612
+ s.value && (s.value.style.overflowX = "auto");
613
+ }));
614
+ }, y = (u) => {
615
+ const w = u.target.scrollLeft;
616
+ s.value.scrollLeft !== w && (s.value.scrollLeft = w);
617
+ }, R = C(() => {
618
+ var u, w, E, N;
619
+ return (u = a == null ? void 0 : a.pagination) != null && u.value && ((w = a == null ? void 0 : a.stickyPagination) != null && w.value || a != null && a.isDataGridTemplate) && !((E = a == null ? void 0 : a.isLazyLoad) != null && E.value) ? { bottom: `${(((N = o.value) == null ? void 0 : N.clientHeight) ?? 0) + 1}px` } : {};
620
+ });
621
+ return {
622
+ // Values
623
+ scrollLeftPosition: r,
624
+ hasLeftOverflow: d,
625
+ hasRightOverflow: f,
626
+ horizontalScrollbarConditionalStyles: R,
627
+ // Methods
628
+ updateScrollPosition: p,
629
+ updateScrollPositionOnFrozenColumnsNavigation: h,
630
+ syncVirtualScrollerWithBody: y
631
+ };
632
+ }, zs = (s, t, n, e) => {
633
+ const o = S(null), l = C(() => {
634
+ var w, E, N, b;
635
+ if (!o.value || o.value.field === oe)
636
+ return {
637
+ hoveredOverColumnField: "",
638
+ isSeparatorOffset: !1,
639
+ noBorderLeft: !1,
640
+ noBorderRight: !1
641
+ };
642
+ const a = (E = (w = s.value.find((m) => m.isFrozenColumns)) == null ? void 0 : w.columnSet) == null ? void 0 : E.filter((m) => m.field !== oe), r = s.value.find((m) => !(m != null && m.isFrozenColumns)), d = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, f = !o.value.frozen && ((N = r == null ? void 0 : r.columnSet) == null ? void 0 : N[0].field) === o.value.field, p = (t.value || n.value) && d, h = (t.value || n.value) && !a && f, y = 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 && ((b = r == null ? void 0 : r.columnSet) == null ? void 0 : b[r.columnSet.length - 1].field) === o.value.field;
643
+ return {
644
+ hoveredOverColumnField: o.value.field,
645
+ isSeparatorOffset: u,
646
+ noBorderLeft: !!p || !!h || !!y,
647
+ noBorderRight: !!R || !!u
648
+ };
649
+ });
650
+ return {
651
+ hoveredOverColumn: o,
652
+ hoveredOverColumnState: l
653
+ };
654
+ }, xe = (s, t) => {
655
+ const e = Mt(s).filter((o) => o.node !== s);
656
+ if ((e == null ? void 0 : e.length) > 0) {
657
+ const o = t != null && t.last ? e.length - 1 : 0;
658
+ return e[o].node.focus(), !0;
659
+ }
660
+ return !1;
661
+ }, ce = (s) => {
662
+ const t = Mt(s), n = t == null ? void 0 : t.filter((e) => e.node !== s);
663
+ if ((n == null ? void 0 : n.length) > 0)
664
+ return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
665
+ }, Pe = (s) => {
666
+ (s == null ? void 0 : s.length) > 0 && s.forEach((t) => t == null ? void 0 : t.node.setAttribute("tabindex", "0"));
667
+ }, Bs = (s) => {
668
+ var d;
669
+ const t = window.getSelection();
670
+ if (!t || !t.rangeCount)
671
+ return;
672
+ const n = t.getRangeAt(0).cloneContents(), e = (d = n.textContent) == null ? void 0 : d.trim();
673
+ if (!e)
674
+ return;
675
+ const o = n.querySelectorAll('[role="row"]');
676
+ let l = "<table>", a = "";
677
+ const r = (f) => {
678
+ f.forEach((p) => {
679
+ const h = p.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", y = p.textContent.trim();
680
+ y && (l += `<${h}>${y}</${h}>`, a += `${y} `);
681
+ });
682
+ };
683
+ if (!o.length) {
684
+ const f = n.querySelectorAll(
685
+ '[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
686
+ );
687
+ if (f.length)
688
+ l += "<tr>", r(f), l += "</tr>";
689
+ else {
690
+ s == null || s.preventDefault(), navigator.clipboard.writeText(e);
691
+ return;
692
+ }
693
+ }
694
+ o.forEach((f) => {
695
+ const p = f.querySelectorAll(
696
+ '[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
697
+ );
698
+ if (l += "<tr>", p.length)
699
+ r(p);
700
+ else {
701
+ const h = f.textContent.trim();
702
+ l += `<td>${h}</td>`, a += `${h} `;
703
+ }
704
+ l += "</tr>", a += `
705
+ `;
706
+ }), l += "</table>", s == null || s.preventDefault(), navigator.clipboard.write([
707
+ new ClipboardItem({
708
+ "text/html": new Blob([l], { type: "text/html" }),
709
+ "text/plain": new Blob([a || e], { type: "text/plain" })
710
+ })
711
+ ]);
712
+ };
713
+ let ht = 0;
714
+ const Us = {
715
+ beforeCreate() {
716
+ this.uuid = ht.toString(), ht += 1;
717
+ }
718
+ };
719
+ var ks = function() {
720
+ var t = this, n = t._self._c;
721
+ 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: "#001222", "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" } })])])]);
722
+ }, $s = [], Ws = /* @__PURE__ */ J(
723
+ Us,
724
+ ks,
725
+ $s,
726
+ !1,
727
+ null,
728
+ null
729
+ );
730
+ const Gs = Ws.exports;
731
+ let pt = 0;
732
+ const Vs = {
733
+ beforeCreate() {
734
+ this.uuid = pt.toString(), pt += 1;
735
+ }
736
+ };
737
+ var Hs = function() {
738
+ var t = this, n = t._self._c;
739
+ 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: "#001222", d: "M10.5605 14.5L9.94434 13.8838C9.6002 13.5397 9.18722 13.3072 8.75 13.1836V10.9336L10.1689 10.1162L11.6865 10.9941L12.1094 12.5605C12.1146 12.5821 12.1182 12.6044 12.124 12.626L12.1553 12.7441L12.3496 13.4688L13.7988 13.0801L13.6162 12.4004L13.6201 12.3984L13.5547 12.1592C13.4254 11.5178 13.8153 10.878 14.4561 10.7061L14.5742 10.6748L15.2988 10.4805L14.9102 9.03125L14.2295 9.21387L14.2285 9.20996L13.5049 9.40625L12.4346 9.69531L10.9199 8.81836V7.18262L12.8633 6.05762C13.1889 6.37496 13.597 6.61697 14.0674 6.74316L14.1855 6.77441L14.9102 6.96875L15.2988 5.52051L14.5742 5.32617L14.4561 5.29395C13.7894 5.11503 13.3935 4.4294 13.5723 3.7627L13.6045 3.64453L13.7988 2.91992L12.3496 2.53125L12.1553 3.25586L12.124 3.37402C11.9979 3.84406 12.0018 4.31824 12.1133 4.75879L10.1689 5.88477L8.75 5.06738V2.81738C9.18731 2.69384 9.60013 2.46036 9.94434 2.11621L10.5605 1.5L9.5 0.439453L8.88379 1.05566C8.39567 1.54362 7.60433 1.54362 7.11621 1.05566L6.5 0.439453L5.43945 1.5L6.05566 2.11621C6.39987 2.46036 6.81269 2.69384 7.25 2.81738V5.06738L5.83105 5.88477L3.88574 4.75879C3.99724 4.31819 4.00207 3.84412 3.87598 3.37402L3.84473 3.25586L3.65039 2.53125L2.20117 2.91992L2.39551 3.64453L2.42773 3.7627C2.60651 4.42942 2.21066 5.11507 1.54395 5.29395L1.42578 5.32617L0.701172 5.52051L1.08984 6.96875L1.81445 6.77441L1.93262 6.74316C2.40275 6.61703 2.81018 6.37474 3.13574 6.05762L5.08008 7.18262V8.81836L3.13574 9.94336C2.81015 9.62622 2.40287 9.38399 1.93262 9.25781L1.81445 9.22559L1.08984 9.03125L0.701172 10.4805L1.42578 10.6748L1.54395 10.7061C2.2106 10.8849 2.60644 11.5706 2.42773 12.2373L2.39551 12.3555L2.20117 13.0801L3.65039 13.4688L3.84473 12.7441L3.87598 12.626C4.00207 12.1559 3.99723 11.6817 3.88574 11.2412L5.83105 10.1162L7.25 10.9336V13.1836C6.81278 13.3072 6.3998 13.5397 6.05566 13.8838L5.43945 14.5L6.5 15.5605L7.11621 14.9443C7.60433 14.4564 8.39567 14.4564 8.88379 14.9443L9.5 15.5605L10.5605 14.5ZM6.58008 8.81641V7.18262L8 6.36426L9.41992 7.18262V8.81641L8 9.63477L6.58008 8.81641Z" } })]), 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)" } })])])]);
740
+ }, Zs = [], js = /* @__PURE__ */ J(
741
+ Vs,
742
+ Hs,
743
+ Zs,
744
+ !1,
745
+ null,
746
+ null
747
+ );
748
+ const kt = js.exports;
749
+ let bt = 0;
750
+ const qs = {
751
+ beforeCreate() {
752
+ this.uuid = bt.toString(), bt += 1;
753
+ }
754
+ };
755
+ var Ks = function() {
756
+ var t = this, n = t._self._c;
757
+ 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: "#001222", "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" } })])])]);
758
+ }, Ys = [], Xs = /* @__PURE__ */ J(
759
+ qs,
760
+ Ks,
761
+ Ys,
762
+ !1,
763
+ null,
764
+ null
765
+ );
766
+ const Js = Xs.exports;
767
+ let wt = 0;
768
+ const Qs = {
769
+ beforeCreate() {
770
+ this.uuid = wt.toString(), wt += 1;
771
+ }
772
+ };
773
+ var eo = function() {
774
+ var t = this, n = t._self._c;
775
+ 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: "#001222", "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" } })])])]);
776
+ }, to = [], no = /* @__PURE__ */ J(
777
+ Qs,
778
+ eo,
779
+ to,
780
+ !1,
781
+ null,
782
+ null
783
+ );
784
+ const so = no.exports;
785
+ let St = 0;
786
+ const oo = {
787
+ beforeCreate() {
788
+ this.uuid = St.toString(), St += 1;
789
+ }
790
+ };
791
+ var lo = function() {
792
+ var t = this, n = t._self._c;
793
+ 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: "#001222", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
794
+ }, ao = [], io = /* @__PURE__ */ J(
795
+ oo,
796
+ lo,
797
+ ao,
798
+ !1,
799
+ null,
800
+ null
801
+ );
802
+ const ro = io.exports, co = {
803
+ "de-DE": {
804
+ columnActions: "{name}-Spaltenaktionen",
805
+ deselectAll: "Alle abwählen",
806
+ deselectAllCurrentResults: "Alle in den aktuellen Ergebnissen abwählen",
807
+ deselectPage: "Diese Seite abwählen",
808
+ freezeColumn: "Spalte einfrieren",
809
+ hideColumn: "Spalte ausblenden",
810
+ moveColumnLeft: "Spalte nach links verschieben",
811
+ moveColumnRight: "Spalte nach rechts verschieben",
812
+ rowActionsColumn: "Spaltenaktionen für Zeilen",
813
+ selectAll: "Alle auswählen",
814
+ selectAllCurrentResults: "Alle in den aktuellen Ergebnissen auswählen",
815
+ selectAllMenu: "Menü „Alle auswählen“",
816
+ selectPage: "Diese Seite auswählen",
817
+ selectionMenu: "Auswahlmenü",
818
+ showColumn: "Spalte anzeigen",
819
+ sortColumn: "Spalte {name} sortieren",
820
+ sortColumnInAscendingOrder: "Spalte {name} in aufsteigender Reihenfolge sortieren",
821
+ sortColumnInDescendingOrder: "Spalte {name} in absteigender Reihenfolge sortieren",
822
+ unfreezeColumn: "Spalte einfrieren aufheben"
823
+ },
824
+ "en-GB": {
825
+ columnActions: "{name} column actions",
826
+ deselectAll: "Deselect all",
827
+ deselectAllCurrentResults: "Deselect all from current results",
828
+ deselectPage: "Deselect this page",
829
+ freezeColumn: "Freeze column",
830
+ hideColumn: "Hide column",
831
+ moveColumnLeft: "Move column left",
832
+ moveColumnRight: "Move column to the right",
833
+ rowActionsColumn: "Row actions column",
834
+ selectAll: "Select all",
835
+ selectAllCurrentResults: "Select all in current results",
836
+ selectAllMenu: "Select all menu",
837
+ selectPage: "Select this page",
838
+ selectionMenu: "Selection menu",
839
+ showColumn: "Show column",
840
+ sortColumn: "Sort {name} column",
841
+ sortColumnInAscendingOrder: "Sort {name} column in ascending order",
842
+ sortColumnInDescendingOrder: "Sort {name} column in descending order",
843
+ unfreezeColumn: "Unfreeze column"
844
+ },
845
+ "en-US": {
846
+ columnActions: "{name} column actions",
847
+ deselectAll: "Deselect all",
848
+ deselectAllCurrentResults: "Deselect all in current results",
849
+ deselectPage: "Deselect this page",
850
+ freezeColumn: "Freeze column",
851
+ hideColumn: "Hide column",
852
+ moveColumnLeft: "Move column left",
853
+ moveColumnRight: "Move column right",
854
+ rowActionsColumn: "Row actions column",
855
+ selectAll: "Select all",
856
+ selectAllCurrentResults: "Select all in current results",
857
+ selectAllMenu: "Select all menu",
858
+ selectPage: "Select this page",
859
+ selectionMenu: "Selection menu",
860
+ showColumn: "Show column",
861
+ sortColumn: "Sort {name} column",
862
+ sortColumnInAscendingOrder: "Sort {name} column in ascending order",
863
+ sortColumnInDescendingOrder: "Sort {name} column in descending order",
864
+ unfreezeColumn: "Unfreeze column"
865
+ },
866
+ "es-ES": {
867
+ columnActions: "{name} acciones de columna",
868
+ deselectAll: "Deseleccionar todo",
869
+ deselectAllCurrentResults: "Deseleccionar todo en los resultados actuales",
870
+ deselectPage: "Deseleccionar esta página",
871
+ freezeColumn: "Congelar columna",
872
+ hideColumn: "Ocultar columna",
873
+ moveColumnLeft: "Mover la columna a la izquierda",
874
+ moveColumnRight: "Mover la columna a la derecha",
875
+ rowActionsColumn: "Columna de acciones de fila",
876
+ selectAll: "Seleccionar todo",
877
+ selectAllCurrentResults: "Seleccionar todos los resultados actuales",
878
+ selectAllMenu: "Seleccionar todos los menús",
879
+ selectPage: "Seleccionar esta página",
880
+ selectionMenu: "Menú de selección",
881
+ showColumn: "Mostrar columna",
882
+ sortColumn: "Ordenar la columna {name}",
883
+ sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente",
884
+ sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente",
885
+ unfreezeColumn: "Descongelar columna"
886
+ },
887
+ "es-MX": {
888
+ columnActions: "Acciones de columna {name}",
889
+ deselectAll: "Eliminar la selección de todo",
890
+ deselectAllCurrentResults: "Eliminar la selección de todo en los resultados actuales",
891
+ deselectPage: "Eliminar la selección de esta página",
892
+ freezeColumn: "Inmovilizar columna",
893
+ hideColumn: "Ocultar columna",
894
+ moveColumnLeft: "Mover columna a la izquierda",
895
+ moveColumnRight: "Mover columna a la derecha",
896
+ rowActionsColumn: "Columna de acciones de fila",
897
+ selectAll: "Seleccionar todo",
898
+ selectAllCurrentResults: "Seleccionar todo en los resultados actuales",
899
+ selectAllMenu: "Seleccionar todo el menú",
900
+ selectPage: "Seleccionar esta página",
901
+ selectionMenu: "Menú de selección",
902
+ showColumn: "Mostrar columna",
903
+ sortColumn: "Ordenar la columna {name}",
904
+ sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente",
905
+ sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente",
906
+ unfreezeColumn: "Movilizar columna"
907
+ },
908
+ "fr-FR": {
909
+ columnActions: "Actions de la colonne {name}",
910
+ deselectAll: "Tout désélectionner",
911
+ deselectAllCurrentResults: "Tout désélectionner dans les résultats actuels",
912
+ deselectPage: "Désélectionner cette page",
913
+ freezeColumn: "Figer la colonne",
914
+ hideColumn: "Masquer la colonne",
915
+ moveColumnLeft: "Déplacer la colonne vers la gauche",
916
+ moveColumnRight: "Déplacer la colonne vers la droite",
917
+ rowActionsColumn: "Colonne des actions de ligne",
918
+ selectAll: "Tout sélectionner",
919
+ selectAllCurrentResults: "Tout sélectionner dans les résultats actuels",
920
+ selectAllMenu: "Sélectionner tout le menu",
921
+ selectPage: "Sélectionner cette page",
922
+ selectionMenu: "Menu de sélection",
923
+ showColumn: "Afficher la colonne",
924
+ sortColumn: "Trier la colonne {name}",
925
+ sortColumnInAscendingOrder: "Trier la colonne {name} dans l'ordre croissant",
926
+ sortColumnInDescendingOrder: "Trier la colonne {name} dans l'ordre décroissant",
927
+ unfreezeColumn: "Libérer la colonne"
928
+ },
929
+ "it-IT": {
930
+ columnActions: "azioni sulla colonna {name}",
931
+ deselectAll: "Deseleziona tutti",
932
+ deselectAllCurrentResults: "Deseleziona tutti i risultati attuali",
933
+ deselectPage: "Deseleziona questa pagina",
934
+ freezeColumn: "Blocca colonna",
935
+ hideColumn: "Nascondi colonna",
936
+ moveColumnLeft: "Sposta colonna a sinistra",
937
+ moveColumnRight: "Sposta colonna a destra",
938
+ rowActionsColumn: "Colonna delle azioni sulle righe",
939
+ selectAll: "Seleziona tutto",
940
+ selectAllCurrentResults: "Seleziona tutto nei risultati correnti",
941
+ selectAllMenu: "Seleziona tutti i menu",
942
+ selectPage: "Seleziona questa pagina",
943
+ selectionMenu: "Menu di selezione",
944
+ showColumn: "Mostra colonna",
945
+ sortColumn: "Ordina la colonna {name}",
946
+ sortColumnInAscendingOrder: "Ordina la colonna {name} in ordine crescente",
947
+ sortColumnInDescendingOrder: "Ordina la colonna {name} in ordine decrescente",
948
+ unfreezeColumn: "Sblocca colonna"
949
+ },
950
+ "ja-JP": {
951
+ columnActions: "{name}列のアクション",
952
+ deselectAll: "すべての選択を解除",
953
+ deselectAllCurrentResults: "現在の結果の選択をすべて解除",
954
+ deselectPage: "このページの選択を解除",
955
+ freezeColumn: "列を固定",
956
+ hideColumn: "列を非表示",
957
+ moveColumnLeft: "列を左に移動",
958
+ moveColumnRight: "列を右に移動",
959
+ rowActionsColumn: "行アクション列",
960
+ selectAll: "すべて選択",
961
+ selectAllCurrentResults: "現在の結果をすべて選択",
962
+ selectAllMenu: "すべてのメニューを選択",
963
+ selectPage: "このページを選択",
964
+ selectionMenu: "選択メニュー",
965
+ showColumn: "列を表示",
966
+ sortColumn: "{name}列を並べ替え",
967
+ sortColumnInAscendingOrder: "{name}列を昇順に並べ替え",
968
+ sortColumnInDescendingOrder: "{name}列を降順に並べ替え",
969
+ unfreezeColumn: "列の固定を解除"
970
+ },
971
+ "pt-BR": {
972
+ columnActions: "Ações da coluna {name}",
973
+ deselectAll: "Desmarcar tudo",
974
+ deselectAllCurrentResults: "Desmarcar tudo nos resultados atuais",
975
+ deselectPage: "Desmarcar esta página",
976
+ freezeColumn: "Congelar coluna",
977
+ hideColumn: "Ocultar coluna",
978
+ moveColumnLeft: "Mover coluna para a esquerda",
979
+ moveColumnRight: "Mover a coluna para a direita",
980
+ rowActionsColumn: "Coluna de ações da linha",
981
+ selectAll: "Selecionar tudo",
982
+ selectAllCurrentResults: "Selecionar tudo nos resultados atuais",
983
+ selectAllMenu: "Selecionar todo o menu",
984
+ selectPage: "Selecionar esta página",
985
+ selectionMenu: "Menu de seleção",
986
+ showColumn: "Mostrar coluna",
987
+ sortColumn: "Classificar coluna {name}",
988
+ sortColumnInAscendingOrder: "Classificar coluna {name} em ordem crescente",
989
+ sortColumnInDescendingOrder: "Classificar coluna {name} em ordem decrescente",
990
+ unfreezeColumn: "Liberar coluna"
991
+ },
992
+ "zh-CN": {
993
+ columnActions: "{name} 列操作",
994
+ deselectAll: "取消所有选择",
995
+ deselectAllCurrentResults: "取消当前结果中的所有选择",
996
+ deselectPage: "取消选择此页面",
997
+ freezeColumn: "冻结列",
998
+ hideColumn: "隐藏列",
999
+ moveColumnLeft: "将列向左移动",
1000
+ moveColumnRight: "将列向右移动",
1001
+ rowActionsColumn: "行操作列",
1002
+ selectAll: "全部选择",
1003
+ selectAllCurrentResults: "选择当前结果的全部",
1004
+ selectAllMenu: "选择全部菜单",
1005
+ selectPage: "选择此页",
1006
+ selectionMenu: "选择菜单",
1007
+ showColumn: "显示列",
1008
+ sortColumn: "排序 {name} 列",
1009
+ sortColumnInAscendingOrder: "按升序排列 {name} 列",
1010
+ sortColumnInDescendingOrder: "按降序排序 {name} 列",
1011
+ unfreezeColumn: "取消冻结列"
1012
+ }
1013
+ }, $t = /* @__PURE__ */ Symbol("data-grid slashed zero key"), Ie = /* @__PURE__ */ Symbol("data-grid small container key"), ze = /* @__PURE__ */ Symbol("data-grid touch device key"), uo = {
1014
+ i18n: { messages: co },
1015
+ name: "data-grid-columns"
1016
+ }, fo = /* @__PURE__ */ re({
1017
+ ...uo,
1018
+ props: {
1019
+ /**
1020
+ * Column definitions using 'key' to relate to data object.
1021
+ */
1022
+ columns: {
1023
+ type: Array,
1024
+ required: !0
1025
+ },
1026
+ /**
1027
+ * Columns being dragged, contains dragging column and a target column
1028
+ */
1029
+ draggingColumns: {
1030
+ type: Object,
1031
+ default: void 0
1032
+ },
1033
+ /**
1034
+ * Determines the state of the current results: { filtered: boolean, allItemsVisible: boolean } to render the correct select all menu options
1035
+ */
1036
+ visibleRowsState: {
1037
+ type: Object,
1038
+ default: void 0
1039
+ },
1040
+ /**
1041
+ * Toggle the columns draggable events.
1042
+ */
1043
+ hasDraggableColumns: {
1044
+ type: Boolean,
1045
+ default: !0
1046
+ },
1047
+ /**
1048
+ * If resize is enabled
1049
+ */
1050
+ hasResizableColumns: {
1051
+ type: Boolean,
1052
+ default: !0
1053
+ },
1054
+ /**
1055
+ * Signifies if the column panel is enabled.
1056
+ */
1057
+ hasColumnPanel: {
1058
+ type: Boolean,
1059
+ default: !1
1060
+ },
1061
+ /**
1062
+ * If set to true, aligns the first column panel to the right of its button.
1063
+ */
1064
+ hasFirstColumnPanelRightAligned: {
1065
+ type: Boolean,
1066
+ default: !1
1067
+ },
1068
+ /**
1069
+ * If the data grid has overflow on the left side
1070
+ */
1071
+ hasLeftOverflow: {
1072
+ type: Boolean,
1073
+ default: !1
1074
+ },
1075
+ /**
1076
+ * The column hovered over state and whether the hovered over column should show a border right or left.
1077
+ */
1078
+ hoveredOverColumnState: {
1079
+ type: Object,
1080
+ required: !0
1081
+ },
1082
+ /**
1083
+ * Toggled to true when the DataGrid has auto width columns and is measuring the
1084
+ */
1085
+ isMeasuringColumnWidths: {
1086
+ type: Boolean,
1087
+ default: !1
1088
+ },
1089
+ /**
1090
+ * Used to disable hiding the last visible column.
1091
+ */
1092
+ isOnlyOneVisibleColumn: {
1093
+ type: Boolean,
1094
+ default: !1
1095
+ },
1096
+ /**
1097
+ * If these columns are frozen (pinned) columns
1098
+ */
1099
+ isFrozenColumns: {
1100
+ type: Boolean,
1101
+ default: !1
1102
+ },
1103
+ /**
1104
+ * Show frozen columns separator
1105
+ */
1106
+ showFrozenColumnsSeparator: {
1107
+ type: Boolean,
1108
+ default: !1
1109
+ },
1110
+ /**
1111
+ * The column all items selected state
1112
+ */
1113
+ allItemsSelectedState: {
1114
+ type: Object,
1115
+ default: void 0
1116
+ },
1117
+ /**
1118
+ * Determines if the user has enabled row selection
1119
+ */
1120
+ selectable: {
1121
+ type: Boolean,
1122
+ default: !1
1123
+ },
1124
+ /**
1125
+ * Adds an extra option when selecting all, to select items in other pages too
1126
+ */
1127
+ selectableAcrossPages: {
1128
+ type: Boolean,
1129
+ default: !1
1130
+ },
1131
+ /**
1132
+ * Determines which state of row selection is currently active. Used to display the "Select all" menu options.
1133
+ */
1134
+ selectionState: {
1135
+ type: String,
1136
+ default: void 0
1137
+ },
1138
+ /**
1139
+ * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
1140
+ * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
1141
+ */
1142
+ sortBy: {
1143
+ type: Array,
1144
+ // NOTE: is an array to allow multi-sorting in the future
1145
+ default: () => []
1146
+ },
1147
+ /**
1148
+ * Truncates all data grid column headers
1149
+ */
1150
+ truncateColumnHeaders: {
1151
+ type: Boolean,
1152
+ default: !1
1153
+ },
1154
+ /**
1155
+ * The maximum width of the row actions in all rows
1156
+ */
1157
+ rowActionsMaximumWidth: {
1158
+ type: Number,
1159
+ default: 0
1160
+ }
1161
+ },
1162
+ emits: ["sort", "column-hover"],
1163
+ setup(s, { expose: t, emit: n }) {
1164
+ const e = s, o = 100, { t: l } = _e(), { columns: a, sortBy: r } = Ve(e), d = S(), f = S({}), p = S({}), h = S(), y = S(), R = C(
1165
+ () => e.columns.some((c) => c.sortable || e.hasColumnPanel || c.infoIconTooltip)
1166
+ ), u = (c) => n(X.SELECT_ALL_ROWS, c), w = (c) => c.field === oe, E = C(() => e.selectionState === "all"), N = C(
1167
+ () => {
1168
+ var c, z, K;
1169
+ return [
1170
+ {
1171
+ text: l("selectPage"),
1172
+ handler: () => u(!0),
1173
+ disabled: e.selectionState === "page" || e.selectionState === "all"
1174
+ },
1175
+ (c = e.visibleRowsState) != null && c.filtered ? {
1176
+ text: l("selectAllCurrentResults"),
1177
+ handler: () => n(X.SELECT_ALL_CURRENT_RESULTS),
1178
+ addDivider: e.selectionState !== "none",
1179
+ disabled: e.selectionState === "all"
1180
+ } : {
1181
+ text: l("selectAll"),
1182
+ handler: () => n(X.SELECT_ALL_ACROSS_PAGES),
1183
+ addDivider: e.selectionState !== "none",
1184
+ disabled: e.selectionState === "all"
1185
+ },
1186
+ e.selectionState !== "none" && {
1187
+ text: l("deselectPage"),
1188
+ handler: () => u(!1),
1189
+ addDivider: !((z = e.visibleRowsState) != null && z.filtered),
1190
+ // otherwise divider shown in deselect all in current results
1191
+ disabled: e.selectionState === "unselected-page"
1192
+ },
1193
+ ((K = e.visibleRowsState) == null ? void 0 : K.filtered) && e.selectionState !== "none" && {
1194
+ text: l("deselectAllCurrentResults"),
1195
+ handler: () => n(X.DESELECT_ALL_CURRENT_RESULTS),
1196
+ addDivider: !0,
1197
+ disabled: e.selectionState === "unselected-page" && e.visibleRowsState.allRowsVisible
1198
+ },
1199
+ e.selectionState !== "none" && {
1200
+ text: l("deselectAll"),
1201
+ handler: () => n(X.DESELECT_ALL)
1202
+ }
1203
+ ].filter(Boolean);
1204
+ }
1205
+ ), { startResize: b, isResizing: m, columnHoverEventToEmitAfterResizing: O } = vs(a, n), { isSorting: F, getSortingDirection: _, sortByColumnField: i } = Is(r, a, n), g = (c) => {
1206
+ var te;
1207
+ if (!c.sortable)
1208
+ return null;
1209
+ const z = (te = e.sortBy.find(({ field: ie }) => ie === c.field)) == null ? void 0 : te.direction;
1210
+ return z ? {
1211
+ [ye.ASCENDING]: Fe.ASCENDING,
1212
+ [ye.DESCENDING]: Fe.DESCENDING
1213
+ }[z] : Fe.NONE;
1214
+ }, A = C(() => (c) => e.hasDraggableColumns ? {
1215
+ dragstart: (z) => {
1216
+ n(X.COLUMN_DRAG_START, c, z);
1217
+ },
1218
+ dragover: (z) => {
1219
+ z.preventDefault();
1220
+ },
1221
+ dragenter: (z) => {
1222
+ z.preventDefault(), n(X.COLUMN_DRAG_ENTER, c, z);
1223
+ },
1224
+ drop: () => {
1225
+ n(X.COLUMN_DROP, c);
1226
+ },
1227
+ dragend: () => {
1228
+ n(X.COLUMN_DRAG_END);
1229
+ }
1230
+ } : {}), I = C(
1231
+ () => (c) => [
1232
+ {
1233
+ text: l("moveColumnLeft"),
1234
+ handler: () => n(X.COLUMN_MOVE, c, -1),
1235
+ icon: cs,
1236
+ disabled: e.columns[0].field === c.field
1237
+ },
1238
+ {
1239
+ text: l("moveColumnRight"),
1240
+ handler: () => n(X.COLUMN_MOVE, c, 1),
1241
+ icon: ds,
1242
+ disabled: e.columns[e.columns.length - 1].field === c.field
1243
+ },
1244
+ !V.value && {
1245
+ text: c != null && c.frozen ? l("unfreezeColumn") : l("freezeColumn"),
1246
+ handler: () => n(X.COLUMN_UPDATE, { ...c, frozen: !(c != null && c.frozen) }),
1247
+ icon: kt
1248
+ },
1249
+ {
1250
+ text: (c == null ? void 0 : c.visible) !== !1 ? l("hideColumn") : l("showColumn"),
1251
+ handler: () => {
1252
+ n(X.COLUMN_UPDATE, {
1253
+ ...c,
1254
+ visible: (c == null ? void 0 : c.visible) === !1
1255
+ });
1256
+ },
1257
+ icon: (c == null ? void 0 : c.visible) !== !1 ? us : fs,
1258
+ disabled: (c == null ? void 0 : c.mandatory) || (c == null ? void 0 : c.visible) !== !1 && e.isOnlyOneVisibleColumn
1259
+ }
1260
+ ].filter(Boolean)
1261
+ ), P = (c) => {
1262
+ h.value = c.field, y.value && clearTimeout(y.value);
1263
+ }, x = (c) => {
1264
+ const z = setTimeout(() => {
1265
+ c.field === h.value && (h.value = "");
1266
+ }, o);
1267
+ y.value = z;
1268
+ }, U = (c) => {
1269
+ let z = {
1270
+ mouseenter: () => {
1271
+ P(c), m.value ? O.value = c : n("column-hover", c);
1272
+ },
1273
+ mouseleave: () => {
1274
+ x(c), m.value ? O.value = null : n("column-hover", null);
1275
+ },
1276
+ focus: () => {
1277
+ P(c), w(c) && xe(f.value[c.field]);
1278
+ },
1279
+ focusout: (K) => {
1280
+ var te;
1281
+ (te = d.value) != null && te.contains(K == null ? void 0 : K.relatedTarget) || x(c);
1282
+ }
1283
+ };
1284
+ return w(c) || (z = {
1285
+ ...z,
1286
+ ...A.value(c)
1287
+ }), z;
1288
+ }, q = (c) => c.infoIconTooltip || c.sortable || e.hasColumnPanel, G = (c, z) => {
1289
+ var K;
1290
+ ((K = f.value) == null ? void 0 : K[z]) === void 0 && (f.value = { ...f.value, [z]: null }), c !== null && (f.value[z] = c);
1291
+ }, V = ge(
1292
+ Ie,
1293
+ C(() => !1)
1294
+ ), W = ge(ze, S(!1)), B = C(() => {
1295
+ var z;
1296
+ const c = {
1297
+ "b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
1298
+ };
1299
+ return (z = a.value[0]) != null && z.frozen && !V.value ? {
1300
+ ...c,
1301
+ "b-data-grid-columns--frozen": !0,
1302
+ "b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
1303
+ "b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
1304
+ } : {
1305
+ ...c,
1306
+ "b-data-grid-columns--unfrozen": !0
1307
+ };
1308
+ }), ne = C(() => ({
1309
+ "b-data-grid-columns__select-column--all": e.selectableAcrossPages
1310
+ })), me = (c, z) => c && z === 0 ? ft.BOTTOM_START : ft.BOTTOM_END, Ce = (c, z) => {
1311
+ var K, te, ie, Te, be, we, Se, Re, v, T;
1312
+ return {
1313
+ "b-data-grid-columns__column--column-hovered": c.field === e.hoveredOverColumnState.hoveredOverColumnField,
1314
+ "b-data-grid-columns__column--column-hovered-no-border-left": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
1315
+ "b-data-grid-columns__column--column-hovered-no-border-right": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
1316
+ "b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && z === a.value.length - 1,
1317
+ "b-data-grid-columns__column--sortable": c.sortable,
1318
+ "b-data-grid-columns__column--padding-left-unset": ((K = c == null ? void 0 : c.padding) == null ? void 0 : K.left) === !1,
1319
+ "b-data-grid-columns__column--padding-right-unset": ((te = c == null ? void 0 : c.padding) == null ? void 0 : te.right) === !1,
1320
+ "b-data-grid-columns__column--numeric": c == null ? void 0 : c.numeric,
1321
+ "b-data-grid-columns__column--frozen": c == null ? void 0 : c.frozen,
1322
+ "b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((Te = (ie = e.draggingColumns) == null ? void 0 : ie.dragging) == null ? void 0 : Te.field),
1323
+ "b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((we = (be = e.draggingColumns) == null ? void 0 : be.target) == null ? void 0 : we.field) && ((Se = e.draggingColumns) == null ? void 0 : Se.dragToLeft),
1324
+ "b-data-grid-columns__column--is-re-ordering-target-right": (c == null ? void 0 : c.field) === ((v = (Re = e.draggingColumns) == null ? void 0 : Re.target) == null ? void 0 : v.field) && !((T = e.draggingColumns) != null && T.dragToLeft),
1325
+ "b-data-grid-columns__column--with-sorting-or-column-panel": c.sortable || c.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
1326
+ "b-data-grid-columns--small-container": V.value
1327
+ };
1328
+ }, ve = (c) => ({
1329
+ "b-data-grid-columns__column-header-and-actions--numeric": c == null ? void 0 : c.numeric
1330
+ }), de = (c) => ({
1331
+ "b-data-grid-columns__column-actions--numeric": c == null ? void 0 : c.numeric
1332
+ }), L = (c) => ({
1333
+ "b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
1334
+ "b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === c.field && e.hoveredOverColumnState.isSeparatorOffset
1335
+ }), $ = C(() => ({
1336
+ "b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
1337
+ })), H = (c) => ({
1338
+ "b-data-grid-columns__menu--hovered": h.value === c.field || W.value
1339
+ });
1340
+ return t({
1341
+ columnHeaderRefs: f
1342
+ }), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: r, allColumnsRef: d, columnHeaderRefs: f, contextMenuRef: p, hoveredColumnField: h, closingTimeOutId: y, areAnyColumnsFocusable: R, onAllRowSelect: u, isActionsColumn: w, isAllSelectionState: E, selectAllMenu: N, startResize: b, isResizing: m, columnHoverEventToEmitAfterResizing: O, isSorting: F, getSortingDirection: _, sortByColumnField: i, getSortingColumnDirection: g, draggingEventsForColumn: A, contextualMenuData: I, showContextualMenu: P, hideContextualMenu: x, dataGridColumnEvents: U, hasColumnActions: q, registerColumnsRefs: G, isSmallContainer: V, isTouchDevice: W, conditionalColumnsClasses: B, conditionalSelectColumnClasses: ne, computeMenuPosition: me, conditionalColumnClasses: Ce, conditionalColumnHeaderAndActionsClasses: ve, conditionalColumnActionsClasses: de, conditionalColumnSeparatorClasses: L, conditionalColumnHeaderClasses: $, conditionalColumnMenuClasses: H, BentoCheckbox: xt, BentoDatagridSortDirection: ye, BentoTypography: Le, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: Ye, BentoInfoIcon: is, DatagridColumnsEvent: X, BentoMenu: zt, BentoToggleButton: Ke, DecorativeCheckbox: rs, ArrowUpAndDownSortIcon: Gs, SortAscendingIcon: Js, SortDescendingIcon: so, TriangleDown: ro };
1343
+ }
1344
+ });
1345
+ var go = function() {
1346
+ var t = this, n = t._self._c, e = t._self._setupProxy;
1347
+ return n("div", { ref: "allColumnsRef", staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(o, l) {
1348
+ 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", class: e.conditionalSelectColumnClasses }, [t.selectableAcrossPages ? t._e() : 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: { button: { variant: "tertiary", condensed: !0, "aria-label": e.t("selectAllMenu") }, data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-fixed-positioning": "", "menu-position": "bottom-start" }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1349
+ return [n("div", { staticClass: "b-data-grid-columns__select-column-menu-button" }, [n(e.DecorativeCheckbox, { staticClass: "b-data-grid-columns__select-column-menu-checkbox", attrs: { indeterminate: t.allItemsSelectedState.isIndeterminate, checked: t.allItemsSelectedState.allItemsSelected, "all-selected": e.isAllSelectionState, "data-testid": "checkbox-select-all" } }), n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu"), "aria-hidden": "true" } })], 1)];
1350
+ }, 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() {
1351
+ return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
1352
+ }, { 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) {
1353
+ return e.sortByColumnField(o.field);
1354
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1355
+ 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 }) } })];
1356
+ }, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[o.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", class: e.conditionalColumnMenuClasses(o), attrs: { "disable-arrow-down-opening-menu": "", data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
1357
+ return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
1358
+ }, close: function(a) {
1359
+ return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
1360
+ } } }) : 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) {
1361
+ return e.startResize(t.hasResizableColumns, o.field, a);
1362
+ }, click: function(a) {
1363
+ a.stopPropagation();
1364
+ } } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
1365
+ }), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (o) => e.registerColumnsRefs(o, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: e.areAnyColumnsFocusable ? "0" : "-1" } })] : t._e()], 2);
1366
+ }, mo = [], _o = /* @__PURE__ */ J(
1367
+ fo,
1368
+ go,
1369
+ mo,
1370
+ !1,
1371
+ null,
1372
+ "6c78a96a"
1373
+ );
1374
+ const Co = _o.exports;
1375
+ var ue = /* @__PURE__ */ ((s) => (s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s))(ue || {});
1376
+ let Rt = 0;
1377
+ const vo = {
1378
+ beforeCreate() {
1379
+ this.uuid = Rt.toString(), Rt += 1;
1380
+ }
1381
+ };
1382
+ var ho = function() {
1383
+ var t = this, n = t._self._c;
1384
+ 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: "#001222", "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" } })])])]);
1385
+ }, po = [], bo = /* @__PURE__ */ J(
1386
+ vo,
1387
+ ho,
1388
+ po,
1389
+ !1,
1390
+ null,
1391
+ null
1392
+ );
1393
+ const wo = bo.exports, So = {
1394
+ "de-DE": {
1395
+ toggleColumnFreeze: "{label} Spaltenfixierung umschalten",
1396
+ toggleColumnVisibility: "Sichtbarkeit der Spalte {label} umschalten"
1397
+ },
1398
+ "en-GB": {
1399
+ toggleColumnFreeze: "Toggle {label} column freeze",
1400
+ toggleColumnVisibility: "Toggle {label} column visibility"
1401
+ },
1402
+ "en-US": {
1403
+ toggleColumnFreeze: "Toggle {label} column freeze",
1404
+ toggleColumnVisibility: "Toggle {label} column visibility"
1405
+ },
1406
+ "es-ES": {
1407
+ toggleColumnFreeze: "Alternar la congelación de la columna {label}",
1408
+ toggleColumnVisibility: "Mostrar/ocultar la visibilidad de la columna {label}"
1409
+ },
1410
+ "es-MX": {
1411
+ toggleColumnFreeze: "Alternar la congelación de la columna {label}",
1412
+ toggleColumnVisibility: "Mostrar/ocultar la visibilidad de la columna {label}"
1413
+ },
1414
+ "fr-FR": {
1415
+ toggleColumnFreeze: "Activer/désactiver le figement de la colonne {label}",
1416
+ toggleColumnVisibility: "Activer/désactiver la visibilité de la colonne {label}"
1417
+ },
1418
+ "it-IT": {
1419
+ toggleColumnFreeze: "Attiva/disattiva il blocco delle colonne {label}",
1420
+ toggleColumnVisibility: "Attiva la visibilità delle colonne {label}"
1421
+ },
1422
+ "ja-JP": {
1423
+ toggleColumnFreeze: "{label}列の固定を切り替え",
1424
+ toggleColumnVisibility: "{label}列の表示を切り替え"
1425
+ },
1426
+ "pt-BR": {
1427
+ toggleColumnFreeze: "Alternar congelamento da coluna {label}",
1428
+ toggleColumnVisibility: "Alternar visibilidade da coluna {label}"
1429
+ },
1430
+ "zh-CN": {
1431
+ toggleColumnFreeze: "切换 {label} 列冻结",
1432
+ toggleColumnVisibility: "切换 {label} 列的可见性"
1433
+ }
1434
+ }, Ro = re({
1435
+ i18n: { messages: So },
1436
+ name: "bento-data-grid",
1437
+ components: {
1438
+ BentoFreezeIcon: kt,
1439
+ BentoToggle: Bt
1440
+ },
1441
+ props: {
1442
+ /**
1443
+ * Is column visibitlity toggle disabled
1444
+ */
1445
+ isColumnVisibilityToggleDisabled: {
1446
+ type: Boolean,
1447
+ required: !0
1448
+ },
1449
+ /**
1450
+ * Column definition
1451
+ */
1452
+ column: {
1453
+ type: Object,
1454
+ required: !0
1455
+ }
1456
+ },
1457
+ emits: ["visible-column", "updated-column"],
1458
+ setup(s, { emit: t }) {
1459
+ const { t: n } = _e(), e = S(!1), o = C(() => {
1460
+ var y;
1461
+ return (y = s.column) == null ? void 0 : y.frozen;
1462
+ }), l = C(() => {
1463
+ var y;
1464
+ return ((y = s.column) == null ? void 0 : y.visible) !== !1;
1465
+ }), a = ge(
1466
+ Ie,
1467
+ C(() => !1)
1468
+ ), r = () => {
1469
+ t("visible-column", { ...s.column, visible: !l.value });
1470
+ }, d = () => {
1471
+ t("updated-column", { ...s.column, frozen: !o.value });
1472
+ }, f = () => {
1473
+ o.value || (e.value = !0);
1474
+ }, p = () => {
1475
+ o.value || (e.value = !1);
1476
+ }, h = C(() => ({
1477
+ "b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
1478
+ }));
1479
+ return {
1480
+ // Values
1481
+ isFreezeIconOptionShown: e,
1482
+ isColumnFrozen: o,
1483
+ freezeIconConditionalClasses: h,
1484
+ isColumnVisible: l,
1485
+ isSmallContainer: a,
1486
+ // Methods
1487
+ toggleColumnVisibility: r,
1488
+ showFreezeIcon: f,
1489
+ hideFreezeIcon: p,
1490
+ toggleColumnFreeze: d,
1491
+ // Translations
1492
+ t: n
1493
+ };
1494
+ }
1495
+ });
1496
+ var Ao = function() {
1497
+ var t = this, n = t._self._c;
1498
+ 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) && !t.isSmallContainer, expression: "(isColumnFrozen || isFreezeIconOptionShown) && !isSmallContainer" }], 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) {
1499
+ return t.toggleColumnFreeze.apply(null, arguments);
1500
+ } } })], 1);
1501
+ }, Eo = [], yo = /* @__PURE__ */ J(
1502
+ Ro,
1503
+ Ao,
1504
+ Eo,
1505
+ !1,
1506
+ null,
1507
+ "b49cbd8d"
1508
+ );
1509
+ const Lo = yo.exports, To = {
1510
+ "de-DE": {
1511
+ appearance: "Erscheinungsbild",
1512
+ closeConfigSettingsPanel: "Konfigurations-Einstellungen-Panel schließen",
1513
+ closeSearch: "Suche schließen",
1514
+ columnVisibilitySearchFilter: "Suchfilter für die Spaltensichtbarkeit",
1515
+ columns: "Spalten",
1516
+ condensed: "Kompakt",
1517
+ condensedToggle: "Umschalter für Kompakt",
1518
+ configSettingsPanel: "Konfigurationseinstellungen-Panel",
1519
+ displayOptions: "Anzeigeoptionen",
1520
+ noColumnsMatch: "Keine Spalten entsprechen dieser Suche",
1521
+ search: "Suche",
1522
+ showAllColumns: "Alle Spalten anzeigen ({numberOfColumns})",
1523
+ toggleConfigSettingsPanelVisibility: "Konfigurationsmenü ein- oder ausblenden",
1524
+ zebraRows: "Zebramuster",
1525
+ zebraRowsToggle: "Zebramuster schalten"
1526
+ },
1527
+ "en-GB": {
1528
+ appearance: "Appearance",
1529
+ closeConfigSettingsPanel: "Close configuration settings panel",
1530
+ closeSearch: "Close search",
1531
+ columnVisibilitySearchFilter: "Column visibility search filter",
1532
+ columns: "Columns",
1533
+ condensed: "Condensed",
1534
+ condensedToggle: "Condensed toggle",
1535
+ configSettingsPanel: "Configuration settings Panel",
1536
+ displayOptions: "Display options",
1537
+ noColumnsMatch: "No columns match this search",
1538
+ search: "Search",
1539
+ showAllColumns: "Show all columns ({numberOfColumns})",
1540
+ toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
1541
+ zebraRows: "Zebra rows",
1542
+ zebraRowsToggle: "Zebra rows toggle"
1543
+ },
1544
+ "en-US": {
1545
+ appearance: "Appearance",
1546
+ closeConfigSettingsPanel: "Close configuration settings panel",
1547
+ closeSearch: "Close search",
1548
+ columnVisibilitySearchFilter: "Column visibility search filter",
1549
+ columns: "Columns",
1550
+ condensed: "Condensed",
1551
+ condensedToggle: "Condensed toggle",
1552
+ configSettingsPanel: "Configuration settings Panel",
1553
+ displayOptions: "Display options",
1554
+ noColumnsMatch: "No columns match this search",
1555
+ search: "Search",
1556
+ showAllColumns: "Show all columns ({numberOfColumns})",
1557
+ toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
1558
+ zebraRows: "Zebra rows",
1559
+ zebraRowsToggle: "Zebra rows toggle"
1560
+ },
1561
+ "es-ES": {
1562
+ appearance: "Aspecto",
1563
+ closeConfigSettingsPanel: "Cerrar el panel de ajustes de configuración",
1564
+ closeSearch: "Cerrar búsqueda",
1565
+ columnVisibilitySearchFilter: "Filtro de búsqueda de visibilidad en columnas",
1566
+ columns: "Columnas",
1567
+ condensed: "Condensado",
1568
+ condensedToggle: "Interruptor condensado",
1569
+ configSettingsPanel: "Panel de ajustes de configuración",
1570
+ displayOptions: "Opciones de visualización",
1571
+ noColumnsMatch: "Ninguna columna corresponde a esta búsqueda",
1572
+ search: "Buscar",
1573
+ showAllColumns: "Mostrar todas las columnas ({numberOfColumns})",
1574
+ toggleConfigSettingsPanelVisibility: "Mostrar/ocultar el panel de ajustes",
1575
+ zebraRows: "Filas de cebra",
1576
+ zebraRowsToggle: "Alternar filas de cebra"
1577
+ },
1578
+ "es-MX": {
1579
+ appearance: "Aspecto",
1580
+ closeConfigSettingsPanel: "Cerrar el panel de ajustes de configuración",
1581
+ closeSearch: "Cerrar búsqueda",
1582
+ columnVisibilitySearchFilter: "Filtro de búsqueda de visibilidad en columnas",
1583
+ columns: "Columnas",
1584
+ condensed: "Condensado",
1585
+ condensedToggle: "Botón de alternancia condensado",
1586
+ configSettingsPanel: "Panel de ajustes de configuración",
1587
+ displayOptions: "Opciones de visualización",
1588
+ noColumnsMatch: "No hay columnas que coincidan con esta búsqueda",
1589
+ search: "Buscar",
1590
+ showAllColumns: "Mostrar todas las columnas ({numberOfColumns})",
1591
+ toggleConfigSettingsPanelVisibility: "Mostrar/ocultar el panel de ajustes de configuración",
1592
+ zebraRows: "Filas cebra",
1593
+ zebraRowsToggle: "Botón de alternancia de filas cebra"
1594
+ },
1595
+ "fr-FR": {
1596
+ appearance: "Apparence",
1597
+ closeConfigSettingsPanel: "Fermer le panneau des paramètres de configuration",
1598
+ closeSearch: "Fermer la recherche",
1599
+ columnVisibilitySearchFilter: "Filtre de recherche de visibilité des colonnes",
1600
+ columns: "Colonnes",
1601
+ condensed: "Condensé",
1602
+ condensedToggle: "Activer/désactiver l'affichage condensé",
1603
+ configSettingsPanel: "Panneau des paramètres de configuration",
1604
+ displayOptions: "Options d'affichage",
1605
+ noColumnsMatch: "Aucune colonne ne correspond à cette recherche",
1606
+ search: "Rechercher",
1607
+ showAllColumns: "Afficher toutes les colonnes ({numberOfColumns})",
1608
+ toggleConfigSettingsPanelVisibility: "Afficher/masquer le panneau des paramètres de configuration",
1609
+ zebraRows: "Lignes alternées",
1610
+ zebraRowsToggle: "Activer/désactiver les lignes alternées"
1611
+ },
1612
+ "it-IT": {
1613
+ appearance: "Aspetto",
1614
+ closeConfigSettingsPanel: "Chiudi il pannello delle impostazioni di configurazione",
1615
+ closeSearch: "Chiudi ricerca",
1616
+ columnVisibilitySearchFilter: "Filtro di ricerca per la visibilità delle colonne",
1617
+ columns: "Colonne",
1618
+ condensed: "In formato ridotto",
1619
+ condensedToggle: "Interruttore in formato ridotto",
1620
+ configSettingsPanel: "Pannello delle impostazioni di configurazione",
1621
+ displayOptions: "Opzioni di visualizzazione",
1622
+ noColumnsMatch: "Nessuna colonna corrisponde a questa ricerca",
1623
+ search: "Cerca",
1624
+ showAllColumns: "Mostra tutte le colonne ({numberOfColumns})",
1625
+ toggleConfigSettingsPanelVisibility: "Attiva/disattiva la visibilità del pannello delle impostazioni di configurazione",
1626
+ zebraRows: "Righe zebra",
1627
+ zebraRowsToggle: "Attiva/disattiva righe in stile zebra"
1628
+ },
1629
+ "ja-JP": {
1630
+ appearance: "外観",
1631
+ closeConfigSettingsPanel: "構成設定パネルを閉じる",
1632
+ closeSearch: "検索を閉じる",
1633
+ columnVisibilitySearchFilter: "列の表示設定検索フィルター",
1634
+ columns: "列",
1635
+ condensed: "簡略化",
1636
+ condensedToggle: "簡略化を切り替え",
1637
+ configSettingsPanel: "構成設定パネル",
1638
+ displayOptions: "表示オプション",
1639
+ noColumnsMatch: "この検索に一致する列はありません",
1640
+ search: "検索",
1641
+ showAllColumns: "すべての列を表示 ({numberOfColumns})",
1642
+ toggleConfigSettingsPanelVisibility: "構成設定パネルの表示を切り替え",
1643
+ zebraRows: "1行おきに色を設定",
1644
+ zebraRowsToggle: "1行おきに色を設定の切り替え"
1645
+ },
1646
+ "pt-BR": {
1647
+ appearance: "Aparência",
1648
+ closeConfigSettingsPanel: "Fechar painel de configurações",
1649
+ closeSearch: "Fechar busca",
1650
+ columnVisibilitySearchFilter: "Filtro de busca de visibilidade da coluna",
1651
+ columns: "Colunas",
1652
+ condensed: "Condensado",
1653
+ condensedToggle: "Alternância condensada",
1654
+ configSettingsPanel: "Painel de configurações",
1655
+ displayOptions: "Opções de exibição",
1656
+ noColumnsMatch: "Nenhuma coluna corresponde a esta busca",
1657
+ search: "Busca",
1658
+ showAllColumns: "Mostrar todas as colunas ({numberOfColumns})",
1659
+ toggleConfigSettingsPanelVisibility: "Alternar a visibilidade do painel de configurações",
1660
+ zebraRows: "Linhas alternadas",
1661
+ zebraRowsToggle: "Alternar linhas alternadas"
1662
+ },
1663
+ "zh-CN": {
1664
+ appearance: "外观",
1665
+ closeConfigSettingsPanel: "关闭配置设置面板",
1666
+ closeSearch: "关闭搜索",
1667
+ columnVisibilitySearchFilter: "列可见性搜索筛选器",
1668
+ columns: "列",
1669
+ condensed: "扼要",
1670
+ condensedToggle: "扼要切换",
1671
+ configSettingsPanel: "配置设置面板",
1672
+ displayOptions: "显示选项",
1673
+ noColumnsMatch: "没有符合此搜索条件的列",
1674
+ search: "搜索",
1675
+ showAllColumns: "显示所有列 ({numberOfColumns})",
1676
+ toggleConfigSettingsPanelVisibility: "切换配置设置面板的可见性",
1677
+ zebraRows: "斑马条纹行",
1678
+ zebraRowsToggle: "斑马条纹行切换"
1679
+ }
1680
+ }, Oo = re({
1681
+ i18n: { messages: To },
1682
+ name: "bento-data-grid",
1683
+ components: {
1684
+ BentoButton: Pt,
1685
+ BentoCrossIcon: Nt,
1686
+ BentoPopover: es,
1687
+ BentoSettingsIcon: wo,
1688
+ BentoToggleButton: Ke,
1689
+ BentoDataGridConfigSettingsConfigRow: Lo,
1690
+ BentoSearchBar: gs,
1691
+ BentoSearchIcon: _s,
1692
+ BentoToggle: Bt,
1693
+ BentoTypography: Le
1694
+ },
1695
+ directives: { BentoClickOutsideDirective: Cs },
1696
+ props: {
1697
+ /**
1698
+ * Column definitions
1699
+ */
1700
+ columns: {
1701
+ type: Array,
1702
+ required: !0
1703
+ },
1704
+ /**
1705
+ * Sets the row cells to the condensed padding state.
1706
+ */
1707
+ condensed: {
1708
+ type: Boolean,
1709
+ default: !1
1710
+ },
1711
+ /**
1712
+ * Sets a different background color for even rows.
1713
+ */
1714
+ zebraRows: {
1715
+ type: Boolean,
1716
+ default: !1
1717
+ }
1718
+ },
1719
+ emits: [
1720
+ ue.UPDATE_CONDENSED,
1721
+ ue.UPDATE_COLUMNS,
1722
+ ue.UPDATE_ZEBRA_ROWS
1723
+ ],
1724
+ setup(s, { emit: t }) {
1725
+ const { t: n } = _e(), e = S(null), o = Me("data-grid-config-settings-popover"), l = S(null), a = S(!1), r = S(!0), d = S(null), f = S(""), p = $e(s, "columns"), h = S(!1), y = ms(f, p), R = () => {
1726
+ f.value = "";
1727
+ }, u = C(
1728
+ () => !s.columns.some((g) => g.visible === !1 && !g.mandatory)
1729
+ ), w = () => {
1730
+ R(), h.value = !h.value, h.value ? ee(() => {
1731
+ var g;
1732
+ return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
1733
+ }) : ee(() => {
1734
+ var g, A;
1735
+ return (A = (g = d == null ? void 0 : d.value) == null ? void 0 : g.$el) == null ? void 0 : A.focus();
1736
+ }), r.value = u.value;
1737
+ }, E = (g) => g.mandatory ?? !1, N = (g) => {
1738
+ const A = s.columns.map((I) => ({
1739
+ ...I,
1740
+ visible: g.field === I.field ? g.visible : I.visible
1741
+ }));
1742
+ t(ue.UPDATE_COLUMNS, A);
1743
+ }, b = (g) => {
1744
+ g ? t(
1745
+ ue.UPDATE_COLUMNS,
1746
+ s.columns.map((A) => ({ ...A, visible: !0 }))
1747
+ ) : t(
1748
+ ue.UPDATE_COLUMNS,
1749
+ s.columns.map((A) => ({ ...A, visible: (A == null ? void 0 : A.mandatory) === !0 }))
1750
+ );
1751
+ }, m = (g) => {
1752
+ const A = s.columns.map((I) => ({
1753
+ ...I,
1754
+ frozen: g.field === I.field ? !!(g != null && g.frozen) : !!(I != null && I.frozen)
1755
+ }));
1756
+ t(ue.UPDATE_COLUMNS, A);
1757
+ }, O = (g) => {
1758
+ a.value = g, r.value = u.value;
1759
+ };
1760
+ return {
1761
+ // Values
1762
+ configSettingsButtonRef: e,
1763
+ popoverId: o,
1764
+ isConfigSettingsPanelOpen: a,
1765
+ allColumnsVisbilityToggleState: r,
1766
+ filteredColumnVisibilityColumns: y,
1767
+ searchTerm: f,
1768
+ isColumnVisibilityFilterShown: h,
1769
+ searchBarRef: l,
1770
+ searchButtonRef: d,
1771
+ DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe,
1772
+ // Methods
1773
+ setConfigSettingsPanelVisibility: O,
1774
+ emitCondensedToggle: (g) => t(ue.UPDATE_CONDENSED, g),
1775
+ toggleAllColumnVisibility: b,
1776
+ clearAction: R,
1777
+ toggleColumnFilter: w,
1778
+ emitVisibleColumns: N,
1779
+ emitFrozenColumns: m,
1780
+ onClickOutside: () => O(!1),
1781
+ isColumnVisibilityToggleDisabled: E,
1782
+ emitZebraRowsToggle: (g) => t(ue.UPDATE_ZEBRA_ROWS, g),
1783
+ // Translations
1784
+ t: n
1785
+ };
1786
+ }
1787
+ });
1788
+ var Io = function() {
1789
+ var t = this, n = t._self._c;
1790
+ 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) {
1791
+ return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
1792
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1793
+ return [n("bento-settings-icon", { attrs: { "svg-title": t.t("toggleConfigSettingsPanelVisibility") } })];
1794
+ }, proxy: !0 }]) })], 1)]), t.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: t.popoverId, open: t.isConfigSettingsPanelOpen, "aria-label": t.t("configSettingsPanel"), "target-element": t.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [t._v(" " + t._s(t.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(e) {
1795
+ return t.setConfigSettingsPanelVisibility(!1);
1796
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1797
+ return [n("bento-cross-icon", { attrs: { "svg-title": t.t("closeConfigSettingsPanel") } })];
1798
+ }, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__appearance" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__appearance-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("appearance")) + " ")]), n("div", { staticClass: "b-data-grid-config-settings__appearance-button" }, [n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("condensedToggle"), value: t.condensed }, on: { input: t.emitCondensedToggle } }, [t._v(" " + t._s(t.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__appearance-button" }, [n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("zebraRowsToggle"), value: t.zebraRows }, on: { input: t.emitZebraRowsToggle } }, [t._v(" " + t._s(t.t("zebraRows")) + " ")])], 1)], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("columns")) + " ")]), t.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1799
+ return [n("bento-cross-icon")];
1800
+ }, proxy: !0 }], null, !1, 2651303519) }, [t._v(" " + t._s(t.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1801
+ return [n("bento-search-icon")];
1802
+ }, proxy: !0 }], null, !1, 2341044271) }, [t._v(t._s(t.t("search")))])], 1), t.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: t.searchTerm, "input-field-aria-label": t.t("columnVisibilitySearchFilter").toString() }, on: { input: function(e) {
1803
+ t.searchTerm = e;
1804
+ }, 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) {
1805
+ 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);
1806
+ }), 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);
1807
+ }, No = [], Do = /* @__PURE__ */ J(
1808
+ Oo,
1809
+ Io,
1810
+ No,
1811
+ !1,
1812
+ null,
1813
+ "0e477266"
1814
+ );
1815
+ const Fo = Do.exports, Wt = {
1816
+ "de-DE": {
1817
+ filterBar: "Filter",
1818
+ gettingYourData: "Ihre Daten werden abgerufen",
1819
+ loading: "Laden",
1820
+ noResults: "Keine Ergebnisse",
1821
+ pagination: "Paginierung",
1822
+ selectRow: "Zeile auswählen",
1823
+ showMore: "Mehr anzeigen",
1824
+ sortAscending: "{field} aufsteigend sortieren",
1825
+ sortDescending: "{field} absteigend sortieren",
1826
+ sortInactive: "{field} Sortierung inaktiv"
1827
+ },
1828
+ "en-GB": {
1829
+ filterBar: "Filters",
1830
+ gettingYourData: "Getting your data",
1831
+ loading: "Loading",
1832
+ noResults: "No results",
1833
+ pagination: "Pagination",
1834
+ selectRow: "Select row",
1835
+ showMore: "Show more",
1836
+ sortAscending: "{field} sort ascending",
1837
+ sortDescending: "{field} sort descending",
1838
+ sortInactive: "{field} sort inactive"
1839
+ },
1840
+ "en-US": {
1841
+ filterBar: "Filters",
1842
+ gettingYourData: "Getting your data",
1843
+ loading: "Loading",
1844
+ noResults: "No results",
1845
+ pagination: "Pagination",
1846
+ selectRow: "Select row",
1847
+ showMore: "Show more",
1848
+ sortAscending: "{field} sort ascending",
1849
+ sortDescending: "{field} sort descending",
1850
+ sortInactive: "{field} sort inactive"
1851
+ },
1852
+ "es-ES": {
1853
+ filterBar: "Filtros",
1854
+ gettingYourData: "Obtención de tus datos",
1855
+ loading: "Cargando",
1856
+ noResults: "No hay resultados",
1857
+ pagination: "Paginación",
1858
+ selectRow: "Seleccionar fila",
1859
+ showMore: "Mostrar más",
1860
+ sortAscending: "Ordenamiento de {field} ascendente",
1861
+ sortDescending: "Ordenamiento de {field} descendente",
1862
+ sortInactive: "Ordenamiento de {field} inactivo"
1863
+ },
1864
+ "es-MX": {
1865
+ filterBar: "Filtros",
1866
+ gettingYourData: "Obtener tus datos",
1867
+ loading: "Cargando",
1868
+ noResults: "No hay resultados",
1869
+ pagination: "Paginación",
1870
+ selectRow: "Seleccionar fila",
1871
+ showMore: "Mostrar más",
1872
+ sortAscending: "Ordenamiento de {field} ascendente",
1873
+ sortDescending: "Ordenamiento de {field} descendente",
1874
+ sortInactive: "Ordenamiento de {field} inactivo"
1875
+ },
1876
+ "fr-FR": {
1877
+ filterBar: "Filtres",
1878
+ gettingYourData: "Obtenir vos données",
1879
+ loading: "Chargement",
1880
+ noResults: "Aucun résultat",
1881
+ pagination: "Pagination",
1882
+ selectRow: "Sélectionner une ligne",
1883
+ showMore: "Afficher plus",
1884
+ sortAscending: "Tri de {field} par ordre croissant",
1885
+ sortDescending: "{field} trier par ordre décroissant",
1886
+ sortInactive: "Tri de {field} inactif"
1887
+ },
1888
+ "it-IT": {
1889
+ filterBar: "Filtri",
1890
+ gettingYourData: "Ottenimento dei dati",
1891
+ loading: "Caricamento",
1892
+ noResults: "Nessun risultato",
1893
+ pagination: "Paginazione",
1894
+ selectRow: "Seleziona riga",
1895
+ showMore: "Mostra di più",
1896
+ sortAscending: "{field} ordine crescente",
1897
+ sortDescending: "{field} ordine decrescente",
1898
+ sortInactive: "{field} ordine inattivo"
1899
+ },
1900
+ "ja-JP": {
1901
+ filterBar: "フィルター",
1902
+ gettingYourData: "データの取得",
1903
+ loading: "読み込み中",
1904
+ noResults: "結果なし",
1905
+ pagination: "ページネーション",
1906
+ selectRow: "行を選択",
1907
+ showMore: "もっと見る",
1908
+ sortAscending: "{field}昇順で並べ替え",
1909
+ sortDescending: "{field}降順で並べ替え",
1910
+ sortInactive: "{field}の並べ替えが無効"
1911
+ },
1912
+ "pt-BR": {
1913
+ filterBar: "Filtros",
1914
+ gettingYourData: "Obtendo seus dados",
1915
+ loading: "Carregando",
1916
+ noResults: "Nenhum resultado",
1917
+ pagination: "Paginação",
1918
+ selectRow: "Selecionar linha",
1919
+ showMore: "Mostrar mais",
1920
+ sortAscending: "{field} ordenar em ordem ascendente",
1921
+ sortDescending: "{field} ordenar em ordem decrescente",
1922
+ sortInactive: "{field} ordenação inativa"
1923
+ },
1924
+ "zh-CN": {
1925
+ filterBar: "筛选器",
1926
+ gettingYourData: "获取数据",
1927
+ loading: "正在加载",
1928
+ noResults: "没有结果",
1929
+ pagination: "分页",
1930
+ selectRow: "选择行",
1931
+ showMore: "显示更多",
1932
+ sortAscending: "{field} 升序排序",
1933
+ sortDescending: "{field} 降序排序",
1934
+ sortInactive: "{field} 排序未激活"
1935
+ }
1936
+ }, Mo = {
1937
+ i18n: { messages: Wt }
1938
+ }, xo = /* @__PURE__ */ re({
1939
+ ...Mo,
1940
+ __name: "data-grid-lazy-load",
1941
+ props: {
1942
+ loading: { type: Boolean },
1943
+ isInfiniteScroll: { type: Boolean }
1944
+ },
1945
+ setup(s) {
1946
+ const { t } = _e();
1947
+ return { __sfc: !0, t, BentoLoadingButton: ns, BentoLoadingButtonState: ts, BentoLoadingIndicator: Ze, BentoDatagridEvent: D };
1948
+ }
1949
+ });
1950
+ var Po = function() {
1951
+ var t = this, n = t._self._c, e = t._self._setupProxy;
1952
+ 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) {
1953
+ return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
1954
+ } } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
1955
+ }, zo = [], Bo = /* @__PURE__ */ J(
1956
+ xo,
1957
+ Po,
1958
+ zo,
1959
+ !1,
1960
+ null,
1961
+ "fd9b8204"
1962
+ );
1963
+ const Uo = Bo.exports, At = () => {
1964
+ const s = document.activeElement;
1965
+ return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
1966
+ }, ko = ({ gridcellRef: s }) => {
1967
+ const t = S(!1), n = S(!1), e = S(), o = S([]), l = S(!1), a = S(!1), r = S(!1), d = S(!1), f = S(!1), p = C(() => {
1968
+ var _;
1969
+ return (((_ = e.value) == null ? void 0 : _.length) ?? 0) > 1;
1970
+ }), h = (_) => {
1971
+ var i, g;
1972
+ return _ ? (i = s.value) != null && i.contains(_) ? !0 : (g = o.value) == null ? void 0 : g.map((A) => A.value).some((A) => A === _ || (A == null ? void 0 : A.contains(_))) : !1;
1973
+ }, y = (_) => {
1974
+ h(_) || (t.value = !1);
1975
+ }, R = () => {
1976
+ d.value = !0, setTimeout(() => {
1977
+ var _, i;
1978
+ (_ = s.value) != null && _.contains(document.activeElement) && ((i = s.value) == null || i.focus());
1979
+ }, 0);
1980
+ }, u = () => {
1981
+ var _;
1982
+ a.value = !1, l.value = !1, f.value = !0, ce(s.value), (_ = s.value) == null || _.focus();
1983
+ }, w = () => {
1984
+ var g;
1985
+ const _ = (g = s.value) == null ? void 0 : g.closest('[role="grid"]');
1986
+ if (!_)
1987
+ return null;
1988
+ const i = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT, {
1989
+ acceptNode(A) {
1990
+ return _.contains(A) ? NodeFilter.FILTER_REJECT : A.tabIndex >= 0 && !A.hasAttribute("disabled") ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1991
+ }
1992
+ });
1993
+ return i.currentNode = _, i.nextNode();
1994
+ }, E = () => {
1995
+ var i;
1996
+ if (l.value || a.value)
1997
+ return !0;
1998
+ const _ = document.activeElement;
1999
+ return !!(_ && _ !== s.value && ((i = s.value) != null && i.contains(_)));
2000
+ };
2001
+ return {
2002
+ shouldShowCellActions: t,
2003
+ isFocused: n,
2004
+ focusableItems: e,
2005
+ childrenMenuContainerElements: o,
2006
+ hasInteractiveElFocusedInside: l,
2007
+ cellInteractionMode: a,
2008
+ isNavigatingAway: r,
2009
+ isReturningFromMenu: d,
2010
+ isMultiWidgetCell: p,
2011
+ isFocusWithinCellOrMenu: h,
2012
+ hideCellActionsIfLeft: y,
2013
+ onMenuClose: R,
2014
+ exitInteractionMode: u,
2015
+ findNextFocusableAfterGrid: w,
2016
+ hasChildFocusedInside: E,
2017
+ handleFocus: async (_) => {
2018
+ if (!At())
2019
+ return;
2020
+ n.value = !0, document.activeElement === s.value && (a.value = !1, l.value = !1), _(), !p.value && !d.value && !f.value && (Pe(e.value), await ee(), xe(s.value) && (l.value = !0)), d.value = !1, f.value = !1;
2021
+ },
2022
+ handleFocusout: (_) => {
2023
+ At() && (h(_.relatedTarget) || (l.value = !1, a.value = !1, r.value = !1));
2024
+ },
2025
+ handleKeydown: (_) => {
2026
+ var x, U, q;
2027
+ const i = document.activeElement, g = i === s.value;
2028
+ if (!g && !!i && !!((x = s.value) != null && x.contains(i)) && (_.key === j.ENTER || _.key === " " || _.key === j.F2)) {
2029
+ _.stopPropagation();
2030
+ return;
2031
+ }
2032
+ if (g && (((U = e.value) == null ? void 0 : U.length) ?? 0) > 0 && (_.key === j.ENTER || _.key === j.F2)) {
2033
+ _.stopPropagation(), _.preventDefault(), a.value ? u() : (a.value = !0, Pe(e.value), ee(() => {
2034
+ xe(s.value) && (l.value = !0);
2035
+ }));
2036
+ return;
2037
+ }
2038
+ if (_.key === j.ESCAPE && E()) {
2039
+ _.stopPropagation(), _.preventDefault(), u();
2040
+ return;
2041
+ }
2042
+ const I = E();
2043
+ if ((a.value || p.value && t.value && I) && _.key !== j.TAB) {
2044
+ if (_.stopPropagation(), _.key === j.ARROW_LEFT || _.key === j.ARROW_RIGHT) {
2045
+ const G = (q = e.value) == null ? void 0 : q.findIndex((V) => V.node === document.activeElement);
2046
+ if (G !== void 0 && G >= 0) {
2047
+ const V = _.key === j.ARROW_RIGHT ? G + 1 : G - 1;
2048
+ V >= 0 && V < e.value.length ? (ce(s.value), e.value[V].node.setAttribute("tabindex", "0"), e.value[V].node.focus()) : u(), _.preventDefault();
2049
+ }
2050
+ }
2051
+ return;
2052
+ }
2053
+ if (_.key === j.TAB && I) {
2054
+ _.preventDefault(), _.stopPropagation(), r.value = !0;
2055
+ const G = w();
2056
+ setTimeout(() => {
2057
+ l.value = !1, t.value = !1, ee(() => G == null ? void 0 : G.focus());
2058
+ }, 0);
2059
+ return;
2060
+ }
2061
+ _.key !== j.TAB && (I && (r.value = !0), l.value = !1, n.value = !1, t.value = !1, ce(s.value));
2062
+ },
2063
+ handleCellActionsFocus: async (_, i) => {
2064
+ if (r.value) {
2065
+ r.value = !1;
2066
+ return;
2067
+ }
2068
+ _(i), await ee(), t.value = !0;
2069
+ },
2070
+ handleCellActionsFocusout: (_, i) => {
2071
+ const g = r.value;
2072
+ _(i), g || y(i == null ? void 0 : i.relatedTarget);
2073
+ }
2074
+ };
2075
+ };
2076
+ let Et = 0;
2077
+ const $o = {
2078
+ beforeCreate() {
2079
+ this.uuid = Et.toString(), Et += 1;
2080
+ }
2081
+ };
2082
+ var Wo = function() {
2083
+ var t = this, n = t._self._c;
2084
+ 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: "#001222", d: "M9.38867 2.21717C10.4626 1.14323 12.2044 1.14323 13.2783 2.21717L13.7832 2.72205C14.857 3.79601 14.8571 5.53782 13.7832 6.6117L5.64355 14.7504H1.25V10.3558L9.38867 2.21717ZM2.75 10.9769V13.2504H5.02246L11.2715 6.9994L8.99902 4.72693L2.75 10.9769ZM12.2168 3.27772C11.7286 2.78987 10.9373 2.78967 10.4492 3.27772L10.0596 3.66639L12.332 5.93885L12.7217 5.55018C13.2098 5.06203 13.2098 4.27076 12.7217 3.7826L12.2168 3.27772Z" } })]);
2085
+ }, Go = [], Vo = /* @__PURE__ */ J(
2086
+ $o,
2087
+ Wo,
2088
+ Go,
2089
+ !1,
2090
+ null,
2091
+ null
2092
+ );
2093
+ const yt = Vo.exports, Ho = {
2094
+ "de-DE": {
2095
+ copy: "Kopieren",
2096
+ edit: "Bearbeiten",
2097
+ more: "Mehr",
2098
+ open: "Offen"
2099
+ },
2100
+ "en-GB": {
2101
+ copy: "Copy",
2102
+ edit: "Edit",
2103
+ more: "More",
2104
+ open: "Open"
2105
+ },
2106
+ "en-US": {
2107
+ copy: "Copy",
2108
+ edit: "Edit",
2109
+ more: "More",
2110
+ open: "Open"
2111
+ },
2112
+ "es-ES": {
2113
+ copy: "Copiar",
2114
+ edit: "Editar",
2115
+ more: "Más",
2116
+ open: "Abrir"
2117
+ },
2118
+ "es-MX": {
2119
+ copy: "Copiar",
2120
+ edit: "Editar",
2121
+ more: "Más",
2122
+ open: "Abrir"
2123
+ },
2124
+ "fr-FR": {
2125
+ copy: "Copier",
2126
+ edit: "Modifier",
2127
+ more: "Plus",
2128
+ open: "Ouvrir"
2129
+ },
2130
+ "it-IT": {
2131
+ copy: "Copia",
2132
+ edit: "Modifica",
2133
+ more: "Altro",
2134
+ open: "Apri"
2135
+ },
2136
+ "ja-JP": {
2137
+ copy: "コピー",
2138
+ edit: "編集",
2139
+ more: "その他",
2140
+ open: "開く"
2141
+ },
2142
+ "pt-BR": {
2143
+ copy: "Copiar",
2144
+ edit: "Editar",
2145
+ more: "Mais",
2146
+ open: "Abrir"
2147
+ },
2148
+ "zh-CN": {
2149
+ copy: "复制",
2150
+ edit: "编辑",
2151
+ more: "更多",
2152
+ open: "打开"
2153
+ }
2154
+ }, Zo = {
2155
+ i18n: { messages: Ho },
2156
+ name: "data-grid-cell-actions"
2157
+ }, jo = /* @__PURE__ */ re({
2158
+ ...Zo,
2159
+ props: {
2160
+ /**
2161
+ * Column definitions using 'key' to relate to data object.
2162
+ */
2163
+ cellActions: {
2164
+ type: [Array, Function],
2165
+ required: !0,
2166
+ validator: (s) => (s == null ? void 0 : s.length) <= 2
2167
+ },
2168
+ /**
2169
+ * The column field key.
2170
+ */
2171
+ columnKey: {
2172
+ type: String,
2173
+ default: void 0
2174
+ },
2175
+ /**
2176
+ * Disables any opening of the cell actions menus using the down arrow key.
2177
+ */
2178
+ disableArrowDownOpeningMenu: {
2179
+ type: Boolean,
2180
+ default: !1
2181
+ },
2182
+ /**
2183
+ * Set to true if the datagrid has been scrolled and the right side has overflowing space.
2184
+ */
2185
+ hasRightOverflow: {
2186
+ type: Boolean,
2187
+ default: !1
2188
+ },
2189
+ /**
2190
+ * Set to true if the row has a darker background when zebra rows is enabled.
2191
+ */
2192
+ hasZebraBackground: {
2193
+ type: Boolean,
2194
+ default: !1
2195
+ },
2196
+ /**
2197
+ * Set to true if the row is selected.
2198
+ */
2199
+ isSelected: {
2200
+ type: Boolean,
2201
+ default: !1
2202
+ },
2203
+ /**
2204
+ * Set to true if the row is highlighted.
2205
+ */
2206
+ isHighlighted: {
2207
+ type: Boolean,
2208
+ default: !1
2209
+ },
2210
+ /**
2211
+ * Set if set to true will teleport the action menu component
2212
+ */
2213
+ teleportMenu: {
2214
+ type: Boolean,
2215
+ default: !1
2216
+ },
2217
+ /**
2218
+ * The row data item object.
2219
+ */
2220
+ rowDataItem: {
2221
+ type: Object,
2222
+ required: !0
2223
+ }
2224
+ },
2225
+ emits: ["menu-open", "menu-close", "menu-item-click"],
2226
+ setup(s, { emit: t }) {
2227
+ const n = s, { t: e } = _e(), o = ge(ze, S(!1)), l = (m) => {
2228
+ if ("text" in m && m.text !== void 0)
2229
+ return m.text;
2230
+ switch (m.variant) {
2231
+ case "copy":
2232
+ return e("copy");
2233
+ case "edit":
2234
+ return e("edit");
2235
+ case "open":
2236
+ return e("open");
2237
+ case "more":
2238
+ return e("more");
2239
+ default:
2240
+ return m.title;
2241
+ }
2242
+ }, a = (m) => {
2243
+ switch (m.variant) {
2244
+ case "copy":
2245
+ return ut;
2246
+ case "edit":
2247
+ return yt;
2248
+ case "open":
2249
+ return dt;
2250
+ default:
2251
+ return;
2252
+ }
2253
+ }, r = C(() => n.columnKey === void 0), d = C(() => ({
2254
+ "b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": r.value && n.hasRightOverflow,
2255
+ "b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
2256
+ "b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
2257
+ "b-data-grid-cell-actions__background-gradient--selected": n.isSelected
2258
+ })), f = C(() => ({
2259
+ "b-data-grid-cell-actions__actions--with-row-actions": r.value,
2260
+ "b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
2261
+ "b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
2262
+ "b-data-grid-cell-actions__actions--selected": n.isSelected,
2263
+ "b-data-grid-cell-actions__actions--zebra-hover": !r.value && n.hasZebraBackground,
2264
+ "b-data-grid-cell-actions__actions--highlighted-hover": !r.value && n.isHighlighted,
2265
+ "b-data-grid-cell-actions__actions--selected-hover": !r.value && n.isSelected
2266
+ })), p = C(() => !r.value || r.value && n.hasRightOverflow);
2267
+ function h(m) {
2268
+ return typeof m == "function";
2269
+ }
2270
+ const y = C(() => {
2271
+ var O;
2272
+ const m = h(n.cellActions) ? (O = n.cellActions) == null ? void 0 : O.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
2273
+ if (o.value && !r.value && m) {
2274
+ const F = [];
2275
+ return m.forEach((_) => {
2276
+ _.menuData ? _.menuData.forEach((i) => {
2277
+ F.push(i);
2278
+ }) : F.push({
2279
+ text: l(_),
2280
+ event: _.event,
2281
+ critical: _.critical,
2282
+ disabled: _.disabled,
2283
+ icon: a(_)
2284
+ });
2285
+ }), [
2286
+ {
2287
+ variant: "more",
2288
+ isShort: !0,
2289
+ iconLeft: ct,
2290
+ menuData: E(F)
2291
+ }
2292
+ ];
2293
+ }
2294
+ return !o.value && (m == null ? void 0 : m.length) > 2 && Ft(
2295
+ "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
2296
+ ), m == null ? void 0 : m.slice(0, 2);
2297
+ }), R = C(() => (m, O) => {
2298
+ if (!(!O && m.isShort || O && !m.isShort))
2299
+ switch (m.variant) {
2300
+ case "copy":
2301
+ return e("copy");
2302
+ case "edit":
2303
+ return e("edit");
2304
+ case "open":
2305
+ return e("open");
2306
+ case "more":
2307
+ return e("more");
2308
+ default:
2309
+ return m.title;
2310
+ }
2311
+ }), u = (m) => (m == null ? void 0 : m.event) !== void 0 ? {
2312
+ click: (O) => {
2313
+ O.stopPropagation(), m.event(n.rowDataItem, n.columnKey);
2314
+ }
2315
+ } : {}, w = (m) => ({
2316
+ ...m,
2317
+ handler: () => {
2318
+ m != null && m.handler && typeof m.handler == "function" && (m == null || m.handler()), m != null && m.event && typeof m.event == "function" && (m == null || m.event(n.rowDataItem, n.columnKey));
2319
+ }
2320
+ }), E = (m) => m.map((O) => {
2321
+ const F = O;
2322
+ return F != null && F.items && (F.items = E(F.items)), { ...w(F) };
2323
+ });
2324
+ return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: r, conditionalCellActionsBackgroundGradientClasses: d, conditionalCellActionsClasses: f, showGradientElement: p, isBentoColumnCellActionsByCellValueDataFn: h, computedCellActions: y, getButtonTitle: R, generateButtonEvents: u, generateMenuEvents: w, transformMenuEvents: E, getCopyText: (m) => {
2325
+ var O, F;
2326
+ return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (F = (O = n.rowDataItem) == null ? void 0 : O[n.columnKey]) == null ? void 0 : F.toString() : "";
2327
+ }, shouldShowMenuIconLeft: (m) => m.iconLeft || (m == null ? void 0 : m.variant) === "more", BentoButton: Pt, BentoMenu: zt, Copy: ut, vBentoTooltipDirective: Dt, Edit1Icon: yt, ExternalLinkIcon: dt, OptionsVerticalIcon: ct };
2328
+ }
2329
+ });
2330
+ var qo = function() {
2331
+ var t = this, n = t._self._c, e = t._self._setupProxy;
2332
+ return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement && !e.isTouchDevice ? 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) {
2333
+ return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[button.tooltipPosition]", value: o.tooltipText, expression: "button.tooltipText", arg: o.tooltipPosition }], attrs: { data: e.transformMenuEvents(o.menuData), button: {
2334
+ condensed: !0,
2335
+ variant: "secondary",
2336
+ disabled: o.disabled
2337
+ }, "disable-arrow-down-opening-menu": t.disableArrowDownOpeningMenu, teleport: t.teleportMenu }, on: { open: function(a) {
2338
+ return e.emit("menu-open");
2339
+ }, close: function(a) {
2340
+ return e.emit("menu-close");
2341
+ }, "menu-item-click": function(a) {
2342
+ return e.emit("menu-item-click");
2343
+ } }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
2344
+ 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) } })];
2345
+ }, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
2346
+ return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
2347
+ }, proxy: !0 }], null, !0) }) : o.variant === "copy" ? n(e.Copy, { attrs: { text: e.getCopyText(o), "button-text": e.getButtonTitle(o), button: {
2348
+ condensed: !0,
2349
+ variant: "secondary"
2350
+ } } }) : n(e.BentoButton, t._g({ directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[button.tooltipPosition]", value: o.tooltipText, expression: "button.tooltipText", arg: o.tooltipPosition }], attrs: { condensed: "", variant: "secondary", critical: o.critical, disabled: o.disabled, link: o.link }, scopedSlots: t._u([o.iconLeft || o.variant === "edit" ? { key: "iconLeft", fn: function() {
2351
+ return [(o == null ? void 0 : o.variant) === "edit" ? n(e.Edit1Icon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": o.title } })];
2352
+ }, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
2353
+ return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
2354
+ }, proxy: !0 }, o.iconRight || o.variant === "open" ? { key: "iconRight", fn: function() {
2355
+ 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 } })];
2356
+ }, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
2357
+ }), 0)])]);
2358
+ }, Ko = [], Yo = /* @__PURE__ */ J(
2359
+ jo,
2360
+ qo,
2361
+ Ko,
2362
+ !1,
2363
+ null,
2364
+ "2fdee11b"
2365
+ );
2366
+ const Gt = Yo.exports;
2367
+ 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 || {});
2368
+ const Xo = {
2369
+ "de-DE": {
2370
+ collapseNestedContent: "Verschachtelte Inhalte ausblenden",
2371
+ expandNestedContent: "Verschachtelten Inhalt anzeigen",
2372
+ selectRow: "Zeile auswählen"
2373
+ },
2374
+ "en-GB": {
2375
+ collapseNestedContent: "Collapse nested content",
2376
+ expandNestedContent: "Expand nested content",
2377
+ selectRow: "Select row"
2378
+ },
2379
+ "en-US": {
2380
+ collapseNestedContent: "Collapse nested content",
2381
+ expandNestedContent: "Expand nested content",
2382
+ selectRow: "Select row"
2383
+ },
2384
+ "es-ES": {
2385
+ collapseNestedContent: "Colapsar contenido anidado",
2386
+ expandNestedContent: "Ampliar contenido anidado",
2387
+ selectRow: "Seleccionar fila"
2388
+ },
2389
+ "es-MX": {
2390
+ collapseNestedContent: "Colapsar contenido anidado",
2391
+ expandNestedContent: "Expandir contenido anidado",
2392
+ selectRow: "Seleccionar fila"
2393
+ },
2394
+ "fr-FR": {
2395
+ collapseNestedContent: "Réduire le contenu imbriqué",
2396
+ expandNestedContent: "Développer le contenu imbriqué",
2397
+ selectRow: "Sélectionner une ligne"
2398
+ },
2399
+ "it-IT": {
2400
+ collapseNestedContent: "Comprimi i contenuti annidati",
2401
+ expandNestedContent: "Espandi i contenuti annidati",
2402
+ selectRow: "Seleziona riga"
2403
+ },
2404
+ "ja-JP": {
2405
+ collapseNestedContent: "ネストされたコンテンツを折りたたむ",
2406
+ expandNestedContent: "ネストされたコンテンツを展開",
2407
+ selectRow: "行を選択"
2408
+ },
2409
+ "pt-BR": {
2410
+ collapseNestedContent: "Recolher conteúdo aninhado",
2411
+ expandNestedContent: "Expandir conteúdo aninhado",
2412
+ selectRow: "Selecionar linha"
2413
+ },
2414
+ "zh-CN": {
2415
+ collapseNestedContent: "折叠嵌套内容",
2416
+ expandNestedContent: "展开嵌套内容",
2417
+ selectRow: "选择行"
2418
+ }
2419
+ }, Jo = {
2420
+ i18n: { messages: Xo },
2421
+ name: "data-grid-cell"
2422
+ }, Qo = /* @__PURE__ */ re({
2423
+ ...Jo,
2424
+ props: {
2425
+ draggingEventsForRowCell: {
2426
+ type: Function,
2427
+ required: !0
2428
+ },
2429
+ /**
2430
+ * The columns sets including
2431
+ */
2432
+ columnSets: {
2433
+ type: Array,
2434
+ required: !0
2435
+ },
2436
+ /**
2437
+ * The columns set we are iterating over
2438
+ */
2439
+ column: {
2440
+ type: Object,
2441
+ required: !0
2442
+ },
2443
+ colIndex: {
2444
+ type: Number,
2445
+ required: !0
2446
+ },
2447
+ columnSetIndex: {
2448
+ type: Number,
2449
+ required: !0
2450
+ },
2451
+ /**
2452
+ * Sets the row cells to the condensed padding state.
2453
+ */
2454
+ condensed: {
2455
+ type: Boolean,
2456
+ default: !1
2457
+ },
2458
+ /**
2459
+ * Columns being dragged, contains dragging column and a target column
2460
+ */
2461
+ draggingColumns: {
2462
+ type: Object,
2463
+ default: void 0
2464
+ },
2465
+ /**
2466
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2467
+ * This is used selecting and performance reasons and must exist in each data item.
2468
+ */
2469
+ getDataItemId: {
2470
+ type: Function,
2471
+ default: (s) => s.id
2472
+ },
2473
+ /**
2474
+ * Set to true if the cell has a darker background when zebra rows is enabled.
2475
+ */
2476
+ hasZebraBackground: {
2477
+ type: Boolean,
2478
+ default: !1
2479
+ },
2480
+ /**
2481
+ * Set to true if the row is selected.
2482
+ */
2483
+ isSelected: {
2484
+ type: Boolean,
2485
+ default: !1
2486
+ },
2487
+ /**
2488
+ * Set to true if the row is highlighted.
2489
+ */
2490
+ isHighlighted: {
2491
+ type: Boolean,
2492
+ default: !1
2493
+ },
2494
+ /**
2495
+ * The column hovered over state and whether the hovered over column should show a border right or left.
2496
+ */
2497
+ hoveredOverColumnState: {
2498
+ type: Object,
2499
+ required: !0
2500
+ },
2501
+ /**
2502
+ * A customisable method to determine if a row is not selectable.
2503
+ * The default is that every row is selectable.
2504
+ */
2505
+ isDataItemDisabled: {
2506
+ type: Function,
2507
+ default: () => !1
2508
+ },
2509
+ isMeasuringColumnWidths: {
2510
+ type: Boolean,
2511
+ default: !1
2512
+ },
2513
+ /**
2514
+ * Determines if the nested content is visible.
2515
+ */
2516
+ isNestedContentExpanded: {
2517
+ type: Boolean,
2518
+ default: !1
2519
+ },
2520
+ /**
2521
+ * Determines if the nest content slot is enabled for this data row.
2522
+ */
2523
+ nestedContent: {
2524
+ type: Boolean,
2525
+ default: !1
2526
+ },
2527
+ /**
2528
+ * The IDs of the rows this cell controls to show / hide them.
2529
+ */
2530
+ nestedRowsElementIds: {
2531
+ type: Array,
2532
+ default: () => []
2533
+ },
2534
+ /**
2535
+ * The row data object
2536
+ */
2537
+ rowData: {
2538
+ type: Object,
2539
+ required: !0
2540
+ },
2541
+ rowIndex: {
2542
+ type: Number,
2543
+ required: !0
2544
+ },
2545
+ /**
2546
+ * The row selection checkbox indeterminate state.
2547
+ */
2548
+ selectionIsIndeterminate: {
2549
+ type: Boolean,
2550
+ default: !1
2551
+ },
2552
+ /**
2553
+ * Determines if the row selection is enabled.
2554
+ */
2555
+ selectable: {
2556
+ type: Boolean,
2557
+ default: !1
2558
+ },
2559
+ selectedItems: {
2560
+ type: Array,
2561
+ required: !0
2562
+ }
2563
+ },
2564
+ emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
2565
+ setup(s, { expose: t, emit: n }) {
2566
+ const e = s, o = He(), l = je(o), { t: a } = _e(), r = S(null), d = S(null), f = S(!1), {
2567
+ shouldShowCellActions: p,
2568
+ isFocused: h,
2569
+ focusableItems: y,
2570
+ childrenMenuContainerElements: R,
2571
+ hasInteractiveElFocusedInside: u,
2572
+ onMenuClose: w,
2573
+ hideCellActionsIfLeft: E,
2574
+ handleFocus: N,
2575
+ handleFocusout: b,
2576
+ handleKeydown: m,
2577
+ handleCellActionsFocus: O,
2578
+ handleCellActionsFocusout: F
2579
+ } = ko({ gridcellRef: r }), _ = C(() => {
2580
+ var L;
2581
+ return !!((L = e.rowData) != null && L[e.column.field]);
2582
+ }), i = C(
2583
+ () => {
2584
+ var L;
2585
+ return e.column.field === oe && ((L = e.nestedRowsElementIds) == null ? void 0 : L.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
2586
+ }
2587
+ ), g = C(
2588
+ () => e.column.field === oe && !e.selectable && !e.nestedContent
2589
+ ), A = C(() => !g.value && (q(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !f.value || h.value) ? "0" : (e.column.field === oe, "-1")), I = (L, $) => (L == null ? void 0 : L.overflow) === We.ELLIPSIS ? `${$}` : void 0, P = (L) => L ?? "-", x = (L) => e.columnSets.slice(0, L).reduce(($, { columnSet: H }) => $ + H.length, 0), U = (L, $) => L + x($), q = (L, $, H) => x() * L + U($, H), G = (L) => {
2590
+ const $ = {
2591
+ ...e.draggingEventsForRowCell(L),
2592
+ focus: async () => {
2593
+ f.value = !0, await N(() => {
2594
+ n("cell-focus", {
2595
+ rowData: e.rowData,
2596
+ column: e.column,
2597
+ rowIndex: e.rowIndex,
2598
+ colIndex: U(e.colIndex, e.columnSetIndex)
2599
+ });
2600
+ });
2601
+ },
2602
+ focusout: b,
2603
+ keydown: m
2604
+ }, H = { ...$ };
2605
+ return L.frozen && (H.keyup = (c) => n("on-frozen-columns-key-press", c), H.keydown = (c) => {
2606
+ $.keydown(c), n("on-frozen-columns-key-press", c);
2607
+ }), L.cellActions && (H.mouseenter = () => {
2608
+ p.value = !0;
2609
+ }, H.mouseleave = (c) => {
2610
+ E(c == null ? void 0 : c.relatedTarget);
2611
+ }, H.focus = async (c) => {
2612
+ await O($.focus, c);
2613
+ }, H.focusout = (c) => {
2614
+ F($.focusout, c);
2615
+ }), H;
2616
+ };
2617
+ Oe(() => {
2618
+ y.value = ce(r.value);
2619
+ });
2620
+ const V = () => {
2621
+ n("nested-content-toggled");
2622
+ };
2623
+ le(
2624
+ () => p.value,
2625
+ async () => {
2626
+ p.value === !0 ? (n("cell-hovered", e.rowIndex), await ee(), y.value = ce(r.value), h.value && Pe(y.value)) : n("cell-hovered", -1);
2627
+ }
2628
+ );
2629
+ const W = (L) => {
2630
+ R.value.push(L);
2631
+ }, B = (L) => {
2632
+ r.value.contains(L == null ? void 0 : L.relatedTarget) || (p.value = !1);
2633
+ };
2634
+ De(ss, {
2635
+ registerMenuContainerElement: W,
2636
+ menuMouseLeave: B
2637
+ });
2638
+ const ne = ge($t, S(!1)), me = ge(
2639
+ Ie,
2640
+ C(() => !1)
2641
+ ), Ce = ge(ze, S(!1)), ve = (L) => {
2642
+ var $, H, c, z, K, te, ie;
2643
+ return {
2644
+ [`b-data-grid-cell--${Q.COLUMN_HOVERED}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField,
2645
+ [`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
2646
+ [`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
2647
+ [`b-data-grid-cell--${Q.PADDING_LEFT_UNSET}`]: (($ = L == null ? void 0 : L.padding) == null ? void 0 : $.left) === !1,
2648
+ [`b-data-grid-cell--${Q.PADDING_RIGHT_UNSET}`]: ((H = L == null ? void 0 : L.padding) == null ? void 0 : H.right) === !1,
2649
+ [`b-data-grid-cell--${Q.NUMERIC}`]: L == null ? void 0 : L.numeric,
2650
+ [`b-data-grid-cell--${Q.CONDENSED}`]: e.condensed,
2651
+ [`b-data-grid-cell--${Q.OVERFLOW_ELLIPSIS}`]: (L == null ? void 0 : L.overflow) === We.ELLIPSIS,
2652
+ [`b-data-grid-cell--${Q.IS_COLUMN_REORDERING}`]: ((c = e.draggingColumns.dragging) == null ? void 0 : c.field) === L.field,
2653
+ [`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((z = e.draggingColumns.target) == null ? void 0 : z.field) === L.field && ((K = e.draggingColumns) == null ? void 0 : K.dragToLeft),
2654
+ [`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((te = e.draggingColumns.target) == null ? void 0 : te.field) === L.field && !((ie = e.draggingColumns) != null && ie.dragToLeft),
2655
+ [`b-data-grid-cell--${Q.FROZEN}`]: L == null ? void 0 : L.frozen,
2656
+ [`b-data-grid-cell--${Q.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
2657
+ [`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && L.field === oe,
2658
+ [`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && L.field === oe,
2659
+ [`b-data-grid-cell--${Q.ACTION_COL_SELECTION_ENABLED}`]: L.field === oe && e.selectable,
2660
+ [`b-data-grid-cell--${Q.SLASHED_ZERO}`]: ne.value,
2661
+ "b-data-grid-cell--small-container": me.value
2662
+ };
2663
+ }, de = C(() => ({
2664
+ "b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": u.value
2665
+ }));
2666
+ return t({
2667
+ gridcellRef: r
2668
+ }), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: r, cellActionsRef: d, hasEverBeenFocused: f, shouldShowCellActions: p, isFocused: h, focusableItems: y, childrenMenuContainerElements: R, hasInteractiveElFocusedInside: u, onMenuClose: w, hideCellActionsIfLeft: E, handleFocus: N, handleFocusout: b, handleKeydown: m, handleCellActionsFocus: O, handleCellActionsFocusout: F, hasRowData: _, controlledNestedRowElementIds: i, ariaHidden: g, tabIndex: A, conditionalTitleAttribute: I, getRowData: P, sumColumnAmountsInColumnSets: x, getColIndex: U, getCellIndex: q, getGridcellEvents: G, toggleNestedContent: V, registerMenuContainerElement: W, menuMouseLeave: B, hasSlashedZero: ne, isSmallContainer: me, isTouchDevice: Ce, conditionalRowCellClasses: ve, computedCellContentClasses: de, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe, BentoCheckbox: xt, BentoTypography: Le, BentoToggleButton: Ke, DataGridCellActions: Gt, ChevronDownIcon: os, ChevronUpIcon: ls };
2669
+ }
2670
+ });
2671
+ var el = function() {
2672
+ var o;
2673
+ var t = this, n = t._self._c, e = t._self._setupProxy;
2674
+ return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
2675
+ width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
2676
+ }, 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.tabIndex, "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), tabindex: e.isFocused ? 0 : -1 }, on: { "update:model-value": function(l) {
2677
+ return t.$emit("select-row", l);
2678
+ } } })] : 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() {
2679
+ 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") } })];
2680
+ }, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
2681
+ 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])))])];
2682
+ }, { 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.isTouchDevice) && (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, "has-zebra-background": t.hasZebraBackground, "is-highlighted": t.isHighlighted, "is-selected": t.isSelected, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
2683
+ }, tl = [], nl = /* @__PURE__ */ J(
2684
+ Qo,
2685
+ el,
2686
+ tl,
2687
+ !1,
2688
+ null,
2689
+ "ba645d13"
2690
+ );
2691
+ const sl = nl.exports, ol = {
2692
+ name: "data-grid-row"
2693
+ }, ll = /* @__PURE__ */ re({
2694
+ ...ol,
2695
+ props: {
2696
+ /**
2697
+ * Row actions property that generates which button to show in row actions area
2698
+ */
2699
+ rowActions: {
2700
+ type: [Function, Array],
2701
+ default: void 0
2702
+ },
2703
+ /**
2704
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
2705
+ */
2706
+ allowRowClicks: { type: Boolean, default: !1 },
2707
+ /**
2708
+ * The columns sets including
2709
+ */
2710
+ columnSets: {
2711
+ type: Array,
2712
+ required: !0
2713
+ },
2714
+ /**
2715
+ * Sets the row cells to the condensed padding state.
2716
+ */
2717
+ condensed: {
2718
+ type: Boolean,
2719
+ default: !1
2720
+ },
2721
+ /**
2722
+ * Columns being dragged, contains dragging column and a target column
2723
+ */
2724
+ draggingColumns: {
2725
+ type: Object,
2726
+ default: void 0
2727
+ },
2728
+ /**
2729
+ * Dragging event handlers for each row cell
2730
+ */
2731
+ draggingEventsForRowCell: {
2732
+ type: Function,
2733
+ required: !0
2734
+ },
2735
+ /**
2736
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2737
+ * This is used selecting and performance reasons and must exist in each data item.
2738
+ */
2739
+ getDataItemId: {
2740
+ type: Function,
2741
+ default: (s) => s.id
2742
+ },
2743
+ /**
2744
+ * Set to true if the datagrid has been scrolled and the left side has overflowing space.
2745
+ */
2746
+ hasLeftOverflow: {
2747
+ type: Boolean,
2748
+ default: !1
2749
+ },
2750
+ /**
2751
+ * Enables the nested content slot functionality.
2752
+ */
2753
+ hasNestedContent: {
2754
+ type: Boolean,
2755
+ default: !1
2756
+ },
2757
+ /**
2758
+ * Enables the nested content slot functionality.
2759
+ */
2760
+ hasNestedRows: {
2761
+ type: Boolean,
2762
+ default: !1
2763
+ },
2764
+ /**
2765
+ * Set to true if the datagrid has been scrolled and the right side has overflowing space.
2766
+ */
2767
+ hasRightOverflow: {
2768
+ type: Boolean,
2769
+ default: !1
2770
+ },
2771
+ /**
2772
+ * Highlighted row IDs.
2773
+ */
2774
+ highlightedRows: {
2775
+ type: Array,
2776
+ default: () => []
2777
+ },
2778
+ /**
2779
+ * The row index of a currently hovered row.
2780
+ */
2781
+ hoveredRowIndex: {
2782
+ type: Number,
2783
+ default: -1
2784
+ },
2785
+ /**
2786
+ * The column hovered over state and whether the hovered over column should show a border right or left.
2787
+ */
2788
+ hoveredOverColumnState: {
2789
+ type: Object,
2790
+ required: !0
2791
+ },
2792
+ /**
2793
+ * A customisable method to determine if a row is not selectable.
2794
+ * The default is that every row is selectable.
2795
+ */
2796
+ isDataItemDisabled: {
2797
+ type: Function,
2798
+ default: () => !1
2799
+ },
2800
+ /**
2801
+ * If the row is of an even number.
2802
+ * Rows are 0th based index e.g. index 0 is an odd-numbered row.
2803
+ */
2804
+ isRowEven: {
2805
+ type: Boolean,
2806
+ default: !1
2807
+ },
2808
+ /**
2809
+ * If the row is the last child in it's parent container.
2810
+ */
2811
+ isRowLastChild: {
2812
+ type: Boolean,
2813
+ default: !1
2814
+ },
2815
+ /**
2816
+ * If columns are being measured for the autoWidth functionality.
2817
+ */
2818
+ isMeasuringColumnWidths: {
2819
+ type: Boolean,
2820
+ default: !1
2821
+ },
2822
+ /**
2823
+ * Determines if this row is nested inside another row.
2824
+ */
2825
+ isNestedRow: {
2826
+ type: Boolean,
2827
+ default: !1
2828
+ },
2829
+ /**
2830
+ * The maximum width of the row actions in all rows
2831
+ */
2832
+ rowActionsMaximumWidth: {
2833
+ type: Number,
2834
+ default: 0
2835
+ },
2836
+ /**
2837
+ * The row data object
2838
+ */
2839
+ rowData: {
2840
+ type: Object,
2841
+ required: !0
2842
+ },
2843
+ /**
2844
+ * The row index.
2845
+ */
2846
+ rowIndex: {
2847
+ type: Number,
2848
+ required: !0
2849
+ },
2850
+ /**
2851
+ * The row ID to be using for the ID attribute.
2852
+ */
2853
+ rowId: {
2854
+ type: Number,
2855
+ default: void 0
2856
+ },
2857
+ /**
2858
+ * The number of rows that this row is within.
2859
+ */
2860
+ rowSetSize: {
2861
+ type: Number,
2862
+ default: 0
2863
+ },
2864
+ /**
2865
+ * Determines whether to render frozen seperator on the row.
2866
+ */
2867
+ showFrozenColumnsSeparator: {
2868
+ type: Boolean,
2869
+ default: !1
2870
+ },
2871
+ /**
2872
+ * Determines if the row selection is enabled.
2873
+ */
2874
+ selectable: {
2875
+ type: Boolean,
2876
+ default: !1
2877
+ },
2878
+ /**
2879
+ * The array of IDs for the selected rows.
2880
+ */
2881
+ selectedItems: {
2882
+ type: Array,
2883
+ required: !0
2884
+ },
2885
+ /**
2886
+ * Enables / Disables the nested-content slot
2887
+ */
2888
+ shouldShowNestedContent: {
2889
+ type: Function,
2890
+ default: (s) => !0
2891
+ },
2892
+ /**
2893
+ * Returns the nested rows for a given BentoDatagridDataItem.
2894
+ */
2895
+ shouldShowNestedRows: {
2896
+ type: Function,
2897
+ default: (s) => !0
2898
+ }
2899
+ },
2900
+ emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
2901
+ setup(s, { expose: t, emit: n }) {
2902
+ const e = s, o = He(), l = je(o), a = (v, T) => !v || !T ? !1 : !!(T.compareDocumentPosition(v) & Node.DOCUMENT_POSITION_FOLLOWING), r = S({}), d = S(!1), f = S(), p = S(), h = S([]), y = Me("nested-content-slot"), R = S(!1), u = S(!1), w = S(), E = () => {
2903
+ const v = p.value;
2904
+ return Array.isArray(v) ? v[0] : v;
2905
+ };
2906
+ Oe(() => {
2907
+ const v = E();
2908
+ v && (w.value = ce(v));
2909
+ });
2910
+ const N = C(() => e.shouldShowNestedRows(e.rowData)), b = C(
2911
+ () => {
2912
+ var v, T;
2913
+ return !e.isNestedRow && e.hasNestedRows && N.value && ((T = (v = e.rowData) == null ? void 0 : v.children) == null ? void 0 : T.length) > 0;
2914
+ }
2915
+ ), m = C(
2916
+ () => {
2917
+ var v, T;
2918
+ return !e.isNestedRow && e.hasNestedRows && N.value && (((v = e.rowData) == null ? void 0 : v.children) === void 0 || ((T = e == null ? void 0 : e.rowData) == null ? void 0 : T.children.length) === 0);
2919
+ }
2920
+ ), O = C(
2921
+ () => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && N.value && !e.isNestedRow
2922
+ ), F = C(() => {
2923
+ if (e.hasNestedContent || e.hasNestedRows) {
2924
+ const v = d.value.toString();
2925
+ return {
2926
+ "aria-expanded": O.value ? v : void 0,
2927
+ "aria-level": e.isNestedRow ? "2" : "1",
2928
+ "aria-posinset": e.rowIndex + 1,
2929
+ "aria-setsize": e.rowSetSize
2930
+ };
2931
+ }
2932
+ return { "aria-rowindex": e.rowIndex + 1 };
2933
+ }), _ = C(() => {
2934
+ if (m.value)
2935
+ return {
2936
+ "aria-busy": "true",
2937
+ "aria-live": "polite"
2938
+ };
2939
+ if (!(b.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
2940
+ return {
2941
+ "aria-level": e.isNestedRow ? "3" : "2",
2942
+ "aria-posinset": "1",
2943
+ "aria-setsize": "1",
2944
+ id: y,
2945
+ role: "row",
2946
+ tabindex: "-1"
2947
+ };
2948
+ }), i = C(() => {
2949
+ var v, T;
2950
+ return b.value ? (T = (v = e.rowData) == null ? void 0 : v.children) == null ? void 0 : T.reduce((Z, k, ae) => (Z[ae] = Me("nested-row"), Z), {}) : [];
2951
+ }), g = C(() => {
2952
+ var v;
2953
+ if (d.value) {
2954
+ if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
2955
+ return [y];
2956
+ if (b.value && ((v = Object.keys(i.value)) == null ? void 0 : v.length) > 0) {
2957
+ const T = Object.values(i.value);
2958
+ if ((T == null ? void 0 : T.length) > 0)
2959
+ return T;
2960
+ }
2961
+ return [];
2962
+ }
2963
+ }), A = C(() => {
2964
+ var T, Z;
2965
+ const v = (Z = (T = e.rowData) == null ? void 0 : T.children) == null ? void 0 : Z.map((k) => e.getDataItemId(k));
2966
+ if ((v == null ? void 0 : v.length) > 0) {
2967
+ const k = v.every((he) => {
2968
+ var pe;
2969
+ return (pe = e == null ? void 0 : e.selectedItems) == null ? void 0 : pe.includes(he);
2970
+ }), ae = v.some((he) => {
2971
+ var pe;
2972
+ return (pe = e == null ? void 0 : e.selectedItems) == null ? void 0 : pe.includes(he);
2973
+ });
2974
+ return !k && ae;
2975
+ }
2976
+ return !1;
2977
+ }), I = (v, T) => {
2978
+ const Z = v;
2979
+ v !== null && (Z != null && Z.gridcellRef) && (r.value[T] = Z.gridcellRef);
2980
+ }, P = (v, T) => {
2981
+ v !== null && (h.value[T] = v);
2982
+ }, x = (v) => i.value[v], U = (v) => {
2983
+ if (!e.selectable)
2984
+ return null;
2985
+ const T = e.getDataItemId(v);
2986
+ return e.selectedItems.includes(T).toString();
2987
+ }, q = (v, T) => {
2988
+ n("row-click", v, T);
2989
+ }, G = (v) => {
2990
+ var k;
2991
+ if (!e.allowRowClicks)
2992
+ return;
2993
+ let T = !1;
2994
+ const Z = ["button", "input", "a"];
2995
+ for (let ae = 0; ae < Z.length; ae++)
2996
+ if ((k = v == null ? void 0 : v.target) != null && k.closest(Z[ae])) {
2997
+ T = !0;
2998
+ break;
2999
+ }
3000
+ T || q(e.rowData, v);
3001
+ }, V = (v) => {
3002
+ n("select-row", v, e.rowData);
3003
+ }, W = (v, T) => {
3004
+ n("select-nested-row", T, e.rowData, v);
3005
+ }, B = () => {
3006
+ R.value = !0;
3007
+ }, ne = () => {
3008
+ R.value = !1;
3009
+ }, me = (v) => {
3010
+ var he;
3011
+ if (u.value) {
3012
+ u.value = !1;
3013
+ return;
3014
+ }
3015
+ const T = E();
3016
+ if (!T || !((he = w.value) != null && he.length))
3017
+ return;
3018
+ const Z = a(v.relatedTarget, T), k = w.value.length - 1, ae = Z ? w.value[k] : w.value[0];
3019
+ Pe([ae]), xe(T, { last: Z });
3020
+ }, Ce = () => {
3021
+ const v = E();
3022
+ v && ce(v);
3023
+ }, ve = (v) => {
3024
+ var Z, k;
3025
+ const T = E();
3026
+ if (v.key === j.ESCAPE) {
3027
+ T && ce(T), u.value = !0, T == null || T.focus(), v.stopPropagation(), v.preventDefault();
3028
+ return;
3029
+ }
3030
+ v.key !== j.TAB && T && ce(T), v.key === j.ARROW_RIGHT && ((Z = w.value) == null ? void 0 : Z.length) > 1 && w.value[0].node === document.activeElement ? (T && ce(T), w.value[1].node.setAttribute("tabindex", "0"), w.value[1].node.focus(), v.stopPropagation(), v.preventDefault()) : v.key === j.ARROW_LEFT && ((k = w.value) == null ? void 0 : k.length) > 1 && w.value[1].node === document.activeElement && (T && ce(T), w.value[0].node.setAttribute("tabindex", "0"), w.value[0].node.focus(), v.stopPropagation(), v.preventDefault());
3031
+ }, de = () => e.columnSets.reduce((v, { columnSet: T }) => v + T.length, 0), L = () => de() * e.rowIndex + de(), { updateContentHeight: $, contentHeight: H } = as(f, d), c = C(() => {
3032
+ var v;
3033
+ if (e.hasNestedContent || e.hasNestedRows)
3034
+ return {
3035
+ paddingLeft: `${b.value || m.value ? 0 : r.value[oe].offsetWidth + Ut}px`,
3036
+ "max-height": (e.hasNestedContent || e.hasNestedRows) && H.value && !((v = H == null ? void 0 : H.value) != null && v.includes("null")) ? H.value : 0
3037
+ };
3038
+ });
3039
+ le(
3040
+ () => f.value,
3041
+ () => {
3042
+ let v = null;
3043
+ !v && f.value && (v = qe(f.value, () => {
3044
+ f.value && $();
3045
+ }));
3046
+ }
3047
+ );
3048
+ const z = () => {
3049
+ d.value = !d.value, $(), n("nested-content-toggled", e.rowData);
3050
+ };
3051
+ le(
3052
+ () => {
3053
+ var v;
3054
+ return (v = e.rowData) == null ? void 0 : v.children;
3055
+ },
3056
+ (v, T) => {
3057
+ var Z, k;
3058
+ ((k = (Z = e == null ? void 0 : e.rowData) == null ? void 0 : Z.children) == null ? void 0 : k.length) > 0 && T === void 0 && !d.value && $();
3059
+ }
3060
+ );
3061
+ const K = ge(
3062
+ Ie,
3063
+ C(() => !1)
3064
+ ), te = (v) => e.highlightedRows.includes(e.getDataItemId(v)), ie = (v) => e.selectedItems.includes(e.getDataItemId(v)), Te = (v, T) => ({
3065
+ "b-data-grid-row-container__row--disabled": e.isDataItemDisabled(v),
3066
+ "b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
3067
+ "b-data-grid-row-container__row--highlighted": te(v),
3068
+ "b-data-grid-row-container__row--selected": ie(v),
3069
+ "b-data-grid-row-container__row--hovered": e.hoveredRowIndex === T,
3070
+ "b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !d.value,
3071
+ "b-data-grid-row-container__row--nested-row": e.isNestedRow,
3072
+ "b-data-grid-row-container__row--zebra": e.isRowEven
3073
+ }), be = (v, T) => ({
3074
+ "b-data-grid-row-container__row-cell-set--frozen": v && !T,
3075
+ [`b-data-grid-row-container__row-cell-set--${fe.OVERFLOW_SHADOW_LEFT}`]: !T && v && e.hasLeftOverflow,
3076
+ "b-data-grid-row-container__row-cell-set--frozen-separator": !T && v && e.showFrozenColumnsSeparator,
3077
+ "b-data-grid-row-container__row-cell-set--unfrozen": !v || T,
3078
+ "b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
3079
+ }), we = C(() => ({
3080
+ "b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
3081
+ "b-data-grid-row-container__row-nested-slot": !b.value && e.shouldShowNestedContent(e.rowData)
3082
+ })), Se = C(() => ({
3083
+ "b-data-grid-row-container__row-actions-container--row-actions-menu-open": R.value
3084
+ })), Re = C(() => ({
3085
+ minWidth: `${e.rowActionsMaximumWidth}px`
3086
+ }));
3087
+ return t({
3088
+ gridcellRefs: r,
3089
+ isNestedContentShown: d,
3090
+ nestedRowRefs: h,
3091
+ rowActionsRef: p
3092
+ }), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, isRelatedTargetAfterInDOM: a, gridcellRefs: r, isNestedContentShown: d, nestedContentRef: f, rowActionsRef: p, nestedRowRefs: h, nestedContentSlotId: y, isRowActionMenuOpen: R, isExitingRowActionInteraction: u, focusableItems: w, getRowActionsElement: E, shouldShowNestedRowsBooleanResult: N, shouldShowRenderNestedRows: b, isLoadingNestedRows: m, shouldShowNestedContentToggle: O, ariaRowAttributes: F, nestedContentContainerDivAriaAttributes: _, nestedRowIds: i, allNestedRowIds: g, hasUnSelectedNestedRows: A, registerRowCellRef: I, registerNestedRowRef: P, getRowId: x, getRowAriaSelectedValue: U, emitRowClick: q, onRowClick: G, onRowSelect: V, onNestedRowSelect: W, onRowActionMenuOpen: B, onRowActionMenuClose: ne, onRowActionsCellFocus: me, onRowActionsCellFocusOut: Ce, onRowActionsCellOnKeyDown: ve, sumColumnAmountsInColumnSets: de, getRowActionsCellIndex: L, updateContentHeight: $, contentHeight: H, nestedContentStyles: c, nestedContentToggled: z, isSmallContainer: K, isHighlightedRow: te, isSelectedRow: ie, conditionalRowClasses: Te, conditionalRowSetClasses: be, conditionalNestedRowClasses: we, conditionalRowActionsContainerClasses: Se, computedRowActionsStyles: Re, BentoLoadingIndicator: Ze, DataGridRow: Vt, DataGridCell: sl, DataGridCellActions: Gt };
3093
+ }
3094
+ });
3095
+ var al = function() {
3096
+ var o;
3097
+ var t = this, n = t._self._c, e = t._self._setupProxy;
3098
+ return n("div", { staticClass: "b-data-grid-row-container", attrs: { role: "presentation" } }, [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, keyup: [function(l) {
3099
+ return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onRowClick.apply(null, arguments);
3100
+ }, function(l) {
3101
+ return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
3102
+ }] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, d) {
3103
+ return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(r, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(f, p) {
3104
+ return n(e.DataGridCell, { key: `cell-${f.field}`, ref: (h) => e.registerRowCellRef(h, f.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: f, "column-set-index": d, "col-index": p, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "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(h) {
3105
+ return e.emit("cell-hovered", h);
3106
+ }, "cell-focus": function(h) {
3107
+ return e.emit("cell-focus", h);
3108
+ }, "on-frozen-columns-key-press": function(h) {
3109
+ return e.emit("on-frozen-columns-key-press", h);
3110
+ }, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(h, y) {
3111
+ return { key: y, fn: function(R) {
3112
+ return [t._t(y, null, null, R)];
3113
+ } };
3114
+ })], null, !0) });
3115
+ }), 1) : t._e(), !r && 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, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus, focusOut: e.onRowActionsCellFocusOut, keydown: e.onRowActionsCellOnKeyDown } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "teleport-menu": "" }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
3116
+ })], 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 && e.shouldShowRenderNestedRows ? n("div", { class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "presentation" } }, [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : t._e(), t._l(t.rowData.children, function(l, a) {
3117
+ return n(e.DataGridRow, t._b({ key: `child-${a}`, ref: (r) => e.registerNestedRowRef(r, a), refInFor: !0, 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(r) {
3118
+ return e.emit("cell-hovered", r);
3119
+ }, "cell-focus": function(r) {
3120
+ return e.emit("cell-focus", r);
3121
+ }, "row-click": e.emitRowClick, "on-frozen-columns-key-press": function(r) {
3122
+ return e.emit("on-frozen-columns-key-press", r);
3123
+ }, "select-row": function(r) {
3124
+ return e.onNestedRowSelect(l, r);
3125
+ } }, scopedSlots: t._u([t._l(e.slots, function(r, d) {
3126
+ return { key: d, fn: function(f) {
3127
+ return [t._t(d, null, null, f)];
3128
+ } };
3129
+ })], null, !0) }, "data-grid-row", e.props, !1));
3130
+ })], 2)]) : e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "row", tabindex: "-1" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef", attrs: { role: "gridcell" } }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()])]) : t._e()]) : t._e()], 1);
3131
+ }, il = [], rl = /* @__PURE__ */ J(
3132
+ ll,
3133
+ al,
3134
+ il,
3135
+ !1,
3136
+ null,
3137
+ "124be27f"
3138
+ );
3139
+ const Vt = rl.exports;
3140
+ let Lt = 0;
3141
+ const cl = {
3142
+ beforeCreate() {
3143
+ this.uuid = Lt.toString(), Lt += 1;
3144
+ }
3145
+ };
3146
+ var dl = function() {
3147
+ var t = this, n = t._self._c;
3148
+ 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: "#001222", d: "M8 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 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z" } })]), 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" } })])])]);
3149
+ }, ul = [], fl = /* @__PURE__ */ J(
3150
+ cl,
3151
+ dl,
3152
+ ul,
3153
+ !1,
3154
+ null,
3155
+ null
3156
+ );
3157
+ const gl = fl.exports, ml = {}, _l = /* @__PURE__ */ re({
3158
+ ...ml,
3159
+ __name: "data-grid-static-icon",
3160
+ props: {
3161
+ colored: { type: Boolean, default: !1 },
3162
+ tooltipText: null,
3163
+ variant: { default: "no-value" }
3164
+ },
3165
+ setup(s) {
3166
+ const t = s, n = C(() => {
3167
+ switch (t.variant) {
3168
+ case "checkmark":
3169
+ return Un;
3170
+ case "warning":
3171
+ return kn;
3172
+ case "error":
3173
+ return gl;
3174
+ case "cross":
3175
+ return Nt;
3176
+ case "no-value":
3177
+ return rt;
3178
+ default:
3179
+ return rt;
3180
+ }
3181
+ }), e = C(() => ({
3182
+ "b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
3183
+ })), o = C(() => `b-data-grid-static-icon__${t.variant}`), l = C(() => $n.AUTO);
3184
+ return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: Dt };
3185
+ }
3186
+ });
3187
+ var Cl = function() {
3188
+ var t = this, n = t._self._c, e = t._self._setupProxy;
3189
+ 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);
3190
+ }, vl = [], hl = /* @__PURE__ */ J(
3191
+ _l,
3192
+ Cl,
3193
+ vl,
3194
+ !1,
3195
+ null,
3196
+ "dbc055cb"
3197
+ );
3198
+ const Ha = hl.exports, pl = {
3199
+ "de-DE": {
3200
+ numberResults: "1 Ergebnis | {count} Ergebnisse"
3201
+ },
3202
+ "en-GB": {
3203
+ numberResults: "1 result | {count} results"
3204
+ },
3205
+ "en-US": {
3206
+ numberResults: "1 result | {count} results"
3207
+ },
3208
+ "es-ES": {
3209
+ numberResults: "1 resultado | {count} resultados"
3210
+ },
3211
+ "es-MX": {
3212
+ numberResults: "1 resultado | {count} resultados"
3213
+ },
3214
+ "fr-FR": {
3215
+ numberResults: "1 résultat | {count} résultats"
3216
+ },
3217
+ "it-IT": {
3218
+ numberResults: "1 risultato | {count} risultati"
3219
+ },
3220
+ "ja-JP": {
3221
+ numberResults: "1件の結果 | {count}件の結果"
3222
+ },
3223
+ "pt-BR": {
3224
+ numberResults: "1 resultado | {count} resultados"
3225
+ },
3226
+ "zh-CN": {
3227
+ numberResults: "1 个结果 | {count} 个结果"
3228
+ }
3229
+ }, bl = {
3230
+ i18n: { messages: pl }
3231
+ }, wl = /* @__PURE__ */ re({
3232
+ ...bl,
3233
+ __name: "data-grid-summary-cell",
3234
+ props: {
3235
+ label: null,
3236
+ items: null,
3237
+ dashedUnderline: { default: () => ({}) },
3238
+ searchTerm: { default: "" },
3239
+ tooltipText: { default: null }
3240
+ },
3241
+ setup(s) {
3242
+ const t = s, { tc: n } = _e(), e = S(), o = C(() => ({
3243
+ popoverPosition: "right",
3244
+ // Setting popover defaults, but they are overriden if used passes dashedUnderline prop
3245
+ popoverTitle: t.label,
3246
+ popoverSize: "small",
3247
+ ...t.dashedUnderline,
3248
+ // We force teleport as this is needed for the popover to appear above all the data grid elements
3249
+ teleport: {
3250
+ disabled: !1
3251
+ }
3252
+ })), l = C(() => {
3253
+ var f;
3254
+ return ((f = t.searchTerm) == null ? void 0 : f.toLowerCase()) ?? "";
3255
+ }), a = (f) => t.searchTerm && f.toLowerCase().includes(l.value) ? "mark" : "span", r = C(() => t.searchTerm ? t.items.filter((f) => f.toLowerCase().includes(l.value)).length : 0), d = C(
3256
+ () => t.tooltipText ?? (r.value > 0 ? n("numberResults", r.value) : "")
3257
+ );
3258
+ return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: r, computedToolTipText: d, BentoDashedUnderline: Vn, BentoTypography: Le, Tooltip: Gn, BentoTooltipPosition: Wn };
3259
+ }
3260
+ });
3261
+ var Sl = function() {
3262
+ var t = this, n = t._self._c, e = t._self._setupProxy;
3263
+ return n("div", { staticClass: "b-data-grid-summary-cell" }, [t.items.length > 1 ? n(e.BentoDashedUnderline, t._b({ ref: "dashedUnderlineRef", scopedSlots: t._u([{ key: "popover-content", fn: function() {
3264
+ return [n(e.BentoTypography, { staticClass: "b-data-grid-summary-cell__popover-content" }, [n("ul", { staticClass: "b-data-grid-summary-cell__list" }, t._l(t.items, function(o) {
3265
+ return n("li", { key: o }, [n(e.highlightedComponent(o), { tag: "component" }, [t._v(t._s(o))])], 1);
3266
+ }), 0)])];
3267
+ }, proxy: !0 }], null, !1, 4023850623) }, "bento-dashed-underline", e.dashedUnderlineProps, !1), [t._v(" " + t._s(t.label) + " ")]) : [t._v(t._s(t.items[0]))], e.dashedUnderlineRef && e.computedToolTipText ? n(e.Tooltip, { attrs: { content: e.computedToolTipText, "disabled-focus-trap": !0, position: e.BentoTooltipPosition.RIGHT, "fallback-position": ["left", "bottom"], "is-shown": !!e.computedToolTipText, "target-element": e.dashedUnderlineRef } }) : t._e()], 2);
3268
+ }, Rl = [], Al = /* @__PURE__ */ J(
3269
+ wl,
3270
+ Sl,
3271
+ Rl,
3272
+ !1,
3273
+ null,
3274
+ "2cf5d218"
3275
+ );
3276
+ const Za = Al.exports, El = {}, yl = /* @__PURE__ */ re({
3277
+ ...El,
3278
+ __name: "data-grid-tag-with-text-cell",
3279
+ props: {
3280
+ tag: null,
3281
+ value: null
3282
+ },
3283
+ setup(s) {
3284
+ return { __sfc: !0, props: s, BentoTag: Hn, BentoTypography: Le };
3285
+ }
3286
+ });
3287
+ var Ll = function() {
3288
+ var t = this, n = t._self._c, e = t._self._setupProxy;
3289
+ return n("div", { staticClass: "b-data-grid-tag-with-text-cell" }, [n(e.BentoTag, t._b({}, "bento-tag", e.props.tag, !1)), n(e.BentoTypography, { attrs: { el: "span" } }, [t._v(t._s(t.value))])], 1);
3290
+ }, Tl = [], Ol = /* @__PURE__ */ J(
3291
+ yl,
3292
+ Ll,
3293
+ Tl,
3294
+ !1,
3295
+ null,
3296
+ "ed0cc252"
3297
+ );
3298
+ const ja = Ol.exports;
3299
+ let Tt = 0;
3300
+ const Il = {
3301
+ beforeCreate() {
3302
+ this.uuid = Tt.toString(), Tt += 1;
3303
+ }
3304
+ };
3305
+ var Nl = function() {
3306
+ var t = this, n = t._self._c;
3307
+ 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: "#001222", d: "M12.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z" } })]);
3308
+ }, Dl = [], Fl = /* @__PURE__ */ J(
3309
+ Il,
3310
+ Nl,
3311
+ Dl,
3312
+ !1,
3313
+ null,
3314
+ null
3315
+ );
3316
+ const Ml = Fl.exports;
3317
+ let Ot = 0;
3318
+ const xl = {
3319
+ beforeCreate() {
3320
+ this.uuid = Ot.toString(), Ot += 1;
3321
+ }
3322
+ };
3323
+ var Pl = function() {
3324
+ var t = this, n = t._self._c;
3325
+ 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: "#001222", d: "M8.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z" } })]);
3326
+ }, zl = [], Bl = /* @__PURE__ */ J(
3327
+ xl,
3328
+ Pl,
3329
+ zl,
3330
+ !1,
3331
+ null,
3332
+ null
3333
+ );
3334
+ const Ul = Bl.exports, kl = {
3335
+ "de-DE": {
3336
+ decrease: "verringern",
3337
+ increase: "erhöhen"
3338
+ },
3339
+ "en-GB": {
3340
+ decrease: "decrease",
3341
+ increase: "increase"
3342
+ },
3343
+ "en-US": {
3344
+ decrease: "decrease",
3345
+ increase: "increase"
3346
+ },
3347
+ "es-ES": {
3348
+ decrease: "disminuir",
3349
+ increase: "aumentar"
3350
+ },
3351
+ "es-MX": {
3352
+ decrease: "disminuir",
3353
+ increase: "aumentar"
3354
+ },
3355
+ "fr-FR": {
3356
+ decrease: "diminuer",
3357
+ increase: "augmentation"
3358
+ },
3359
+ "it-IT": {
3360
+ decrease: "riduci",
3361
+ increase: "aumenta"
3362
+ },
3363
+ "ja-JP": {
3364
+ decrease: "低減",
3365
+ increase: "増加"
3366
+ },
3367
+ "pt-BR": {
3368
+ decrease: "diminuir",
3369
+ increase: "aumentar"
3370
+ },
3371
+ "zh-CN": {
3372
+ decrease: "减少",
3373
+ increase: "增加"
3374
+ }
3375
+ }, $l = {
3376
+ i18n: { messages: kl }
3377
+ }, Wl = /* @__PURE__ */ re({
3378
+ ...$l,
3379
+ __name: "data-grid-trend-cell",
3380
+ props: {
3381
+ direction: { default: "none" },
3382
+ variant: { default: "black" },
3383
+ value: null
3384
+ },
3385
+ setup(s) {
3386
+ const t = s, { t: n, locale: e } = _e(), o = C(() => ({
3387
+ [`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
3388
+ })), l = C(() => {
3389
+ switch (t.direction) {
3390
+ case "up":
3391
+ return n("increase");
3392
+ case "down":
3393
+ return n("decrease");
3394
+ default:
3395
+ return null;
3396
+ }
3397
+ }), a = C(() => {
3398
+ switch (t.direction) {
3399
+ case "up":
3400
+ return Ml;
3401
+ case "down":
3402
+ return Ul;
3403
+ default:
3404
+ return null;
3405
+ }
3406
+ }), r = C(() => {
3407
+ const d = typeof t.value == "string" ? parseFloat(t.value) : t.value;
3408
+ return isNaN(d) ? "" : new Intl.NumberFormat(e.value, {
3409
+ style: "percent",
3410
+ minimumFractionDigits: 0,
3411
+ // Don't force zeros
3412
+ maximumFractionDigits: 10
3413
+ // Cap it reasonably to avoid float artifacts
3414
+ }).format(d / 100);
3415
+ });
3416
+ return { __sfc: !0, t: n, locale: e, props: t, conditionalClasses: o, computedIconTitle: l, computedIcon: a, computedValue: r, BentoTypography: Le };
3417
+ }
3418
+ });
3419
+ var Gl = function() {
3420
+ var t = this, n = t._self._c, e = t._self._setupProxy;
3421
+ return n("div", { staticClass: "b-data-grid-trend-cell", class: e.conditionalClasses }, [e.computedIcon ? n(e.computedIcon, { tag: "component", attrs: { "svg-title": e.computedIconTitle } }) : t._e(), n(e.BentoTypography, { attrs: { el: "span" } }, [t._v(t._s(e.computedValue))])], 1);
3422
+ }, Vl = [], Hl = /* @__PURE__ */ J(
3423
+ Wl,
3424
+ Gl,
3425
+ Vl,
3426
+ !1,
3427
+ null,
3428
+ "05cdd7d9"
3429
+ );
3430
+ const qa = Hl.exports, Zl = (s, t, n) => {
3431
+ const e = S([]), o = (d, f) => {
3432
+ var u, w, E, N;
3433
+ if (!(d != null && d.gridcellRefs))
3434
+ return { count: 0, entries: [], maxWidth: 0 };
3435
+ const p = [];
3436
+ let h = 0;
3437
+ const y = n.value && (d == null ? void 0 : d.rowActionsRef);
3438
+ Object.entries(d.gridcellRefs).forEach(([b, m]) => {
3439
+ p.push({ field: b, index: f, el: m });
3440
+ }), y && (p.push({
3441
+ field: Ye,
3442
+ index: f,
3443
+ el: (u = d.rowActionsRef) == null ? void 0 : u[0]
3444
+ }), h = Math.max(h, ((E = (w = d.rowActionsRef) == null ? void 0 : w[0]) == null ? void 0 : E.offsetWidth) ?? 0));
3445
+ let R = 1;
3446
+ if (d.isNestedContentShown && ((N = d.nestedRowRefs) == null ? void 0 : N.length) > 0)
3447
+ for (let b = 0; b < d.nestedRowRefs.length; b++) {
3448
+ const m = d.nestedRowRefs[b];
3449
+ if (m) {
3450
+ const O = o(m, f + R);
3451
+ p.push(...O.entries), h = Math.max(h, O.maxWidth), R += O.count;
3452
+ }
3453
+ }
3454
+ return { count: R, entries: p, maxWidth: h };
3455
+ };
3456
+ let l = !1;
3457
+ const a = (d, f) => {
3458
+ d !== null && (e.value[f] = d, l || r());
3459
+ }, r = () => {
3460
+ l = !0;
3461
+ const d = {};
3462
+ let f = 0, p = 0;
3463
+ for (let h = 0; h < e.value.length; h++) {
3464
+ const y = e.value[h];
3465
+ if (y) {
3466
+ const R = o(y, p);
3467
+ R.entries.forEach(({ field: u, index: w, el: E }) => {
3468
+ d[u] === void 0 && (d[u] = []), d[u][w] = E;
3469
+ }), f = Math.max(f, R.maxWidth), p += R.count;
3470
+ }
3471
+ }
3472
+ s.value = d, t.value = f, l = !1;
3473
+ };
3474
+ return {
3475
+ topLevelRowComponents: e,
3476
+ registerRowCellRefs: a,
3477
+ rebuildGridcellRefs: r
3478
+ };
3479
+ }, jl = {
3480
+ i18n: { messages: Wt },
3481
+ name: "bento-data-grid"
3482
+ }, ql = /* @__PURE__ */ re({
3483
+ ...jl,
3484
+ props: {
3485
+ /**
3486
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
3487
+ */
3488
+ allowRowClicks: { type: Boolean, default: !1 },
3489
+ /**
3490
+ * When true, column headers will become draggable, allowing users to rearrange columns.
3491
+ */
3492
+ allowColumnDragAndDrop: { type: Boolean, default: !0 },
3493
+ /**
3494
+ * List of actions that will be rendered in the action bar when user selects items.
3495
+ *
3496
+ * Each object in the list should have a `title`, an `event` and,
3497
+ * optionally, an `icon`.
3498
+ *
3499
+ * The component will display 4 actions and the hide the rest inside a menu.
3500
+ *
3501
+ * @see BentoButton for a list of all the other props supported by each button action.
3502
+ */
3503
+ bulkActions: {
3504
+ type: Array,
3505
+ default: null
3506
+ },
3507
+ /**
3508
+ * Sets the row cells to the condensed padding state.
3509
+ */
3510
+ condensed: {
3511
+ type: Boolean,
3512
+ default: !1
3513
+ },
3514
+ /**
3515
+ * Column definitions using 'key' to relate to data object.
3516
+ */
3517
+ columns: {
3518
+ type: Array,
3519
+ required: !0
3520
+ },
3521
+ /**
3522
+ * Enables / hides the display options panel and the column contextual menu functionality.
3523
+ */
3524
+ columnPanel: { type: Boolean, default: !1 },
3525
+ /**
3526
+ * An array of data objects to display.
3527
+ */
3528
+ data: {
3529
+ type: Array,
3530
+ required: !0
3531
+ },
3532
+ /**
3533
+ * Empty state props that will be passed down to inner empty-state component
3534
+ */
3535
+ emptyState: {
3536
+ type: Object,
3537
+ default: void 0
3538
+ },
3539
+ /**
3540
+ * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
3541
+ * {@see BentoFilterBarModel}
3542
+ */
3543
+ filters: {
3544
+ // TODO: Change this to BentoFilterBarProps['value'] when the interface is available
3545
+ type: Array,
3546
+ default: void 0
3547
+ },
3548
+ /**
3549
+ * Defines the layout (multi-line or one-line) to be used in the filter bar for different
3550
+ * container sizes:
3551
+ * - Large (>=700px): Always multi-line
3552
+ * - Medium (>=430px & <700px)
3553
+ * - Small (<430px)
3554
+ *
3555
+ * @default
3556
+ * {
3557
+ * medium: 'multi-line',
3558
+ * small: 'one-line'
3559
+ * }
3560
+ */
3561
+ filtersContainerSizeLayout: {
3562
+ type: Object,
3563
+ default: void 0
3564
+ },
3565
+ /**
3566
+ * An array of the values for each filter set in `value`.
3567
+ * {@see BentoFilterValues}
3568
+ */
3569
+ filterValues: {
3570
+ type: Array,
3571
+ default: () => []
3572
+ },
3573
+ /**
3574
+ * An object of the values for each filter in the filter bar where key is a the field name and the value is the BentoFilterBarValue.
3575
+ *
3576
+ * @example
3577
+ * {
3578
+ * 'company': '200',
3579
+ * 'name': 'some text'
3580
+ * },
3581
+ */
3582
+ filterValuesObject: {
3583
+ type: Object,
3584
+ default: () => {
3585
+ }
3586
+ },
3587
+ // TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
3588
+ // It was not done now because it's a breaking change for the types.
3589
+ /**
3590
+ * Filter's search bar properties with which the placeholder, hint and other
3591
+ * "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
3592
+ */
3593
+ filterSearchConfig: {
3594
+ type: Object,
3595
+ default: void 0
3596
+ },
3597
+ /**
3598
+ * Filter bar search term useful to filter all the data by text
3599
+ */
3600
+ filterSearchTerm: {
3601
+ type: String,
3602
+ default: void 0
3603
+ },
3604
+ /**
3605
+ * Allows the grid to be rendered inside a confined space.
3606
+ * This makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.
3607
+ */
3608
+ fitContent: { type: Boolean, default: !1 },
3609
+ /**
3610
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
3611
+ * This is used selecting and performance reasons and must exist in each data item.
3612
+ */
3613
+ getDataItemId: {
3614
+ type: Function,
3615
+ default: (s) => s.id
3616
+ },
3617
+ /**
3618
+ * Row actions propery that generates which button to show in row actions area
3619
+ */
3620
+ rowActions: {
3621
+ type: [Function, Array],
3622
+ default: void 0
3623
+ },
3624
+ /**
3625
+ * If resize is enabled
3626
+ */
3627
+ hasResizableColumns: {
3628
+ type: Boolean,
3629
+ default: !0
3630
+ },
3631
+ /**
3632
+ * Enables the nested content slot functionality.
3633
+ */
3634
+ hasNestedContent: {
3635
+ type: Boolean,
3636
+ default: !1
3637
+ },
3638
+ /**
3639
+ * Enables the nested content slot functionality.
3640
+ */
3641
+ hasNestedRows: {
3642
+ type: Boolean,
3643
+ default: !1
3644
+ },
3645
+ /**
3646
+ * Highlighted items
3647
+ */
3648
+ highlightedRows: {
3649
+ type: Array,
3650
+ default: () => []
3651
+ },
3652
+ /**
3653
+ * A customisable method to determine if a row is not selectable.
3654
+ * The default is that every row is selectable.
3655
+ */
3656
+ isDataItemDisabled: {
3657
+ type: Function,
3658
+ default: () => !1
3659
+ },
3660
+ /**
3661
+ * The type of `Lazy Load`.
3662
+ * Type "automatic" will enable infinite scrolling
3663
+ * Type "button" will enable lazy loading with "Show more" button
3664
+ * @values automatic, button, none
3665
+ */
3666
+ lazyLoadType: {
3667
+ type: String,
3668
+ default: "none",
3669
+ validator: (s) => ["automatic", "button", "none"].includes(s)
3670
+ },
3671
+ /**
3672
+ * If the loading indicator should be shown.
3673
+ */
3674
+ loading: {
3675
+ type: Boolean,
3676
+ default: !1
3677
+ },
3678
+ /**
3679
+ * Enables / Disables the table's surrounding border.
3680
+ */
3681
+ outline: {
3682
+ type: Boolean,
3683
+ default: !1
3684
+ },
3685
+ /**
3686
+ * Renders the data grid with no top spacing, to render inside containers that already have spacing
3687
+ */
3688
+ noSpacingTop: {
3689
+ type: Boolean,
3690
+ default: !1
3691
+ },
3692
+ /**
3693
+ * Pagination props that will be passed down to inner pagination component
3694
+ */
3695
+ pagination: {
3696
+ type: Object,
3697
+ default: void 0
3698
+ },
3699
+ /**
3700
+ * Adds an extra option when selecting all items that allows user to select items in other pages too.
3701
+ * Needs pagination.totalCount to be set.
3702
+ */
3703
+ selectableAcrossPages: {
3704
+ type: Boolean,
3705
+ default: !1
3706
+ },
3707
+ /**
3708
+ * Renders a font numeric style with slashed zeros instead of normal ones.
3709
+ */
3710
+ slashedZero: { type: Boolean, default: !1 },
3711
+ /**
3712
+ * Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
3713
+ */
3714
+ stickyHorizontalScrollbar: {
3715
+ type: Boolean,
3716
+ default: !1
3717
+ },
3718
+ /**
3719
+ * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
3720
+ * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
3721
+ */
3722
+ stickyPagination: {
3723
+ type: Boolean,
3724
+ default: !1
3725
+ },
3726
+ /**
3727
+ * Make data-grid filters stick to the top of the page along with the data-grid headers.
3728
+ * Defaults to true.
3729
+ */
3730
+ stickyFilters: {
3731
+ type: Boolean,
3732
+ default: !0
3733
+ },
3734
+ /**
3735
+ * Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
3736
+ */
3737
+ selectable: {
3738
+ type: Boolean,
3739
+ default: !1
3740
+ },
3741
+ /**
3742
+ * Selected items
3743
+ */
3744
+ selection: {
3745
+ type: Array,
3746
+ default: () => []
3747
+ },
3748
+ /**
3749
+ * Enables / Disables the nested-content slot
3750
+ */
3751
+ shouldShowNestedContent: {
3752
+ type: Function,
3753
+ default: (s) => !0
3754
+ },
3755
+ /**
3756
+ * Returns the nested rows for a given BentoDatagridDataItem.
3757
+ */
3758
+ shouldShowNestedRows: {
3759
+ type: Function,
3760
+ default: (s) => !0
3761
+ },
3762
+ /**
3763
+ * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
3764
+ * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
3765
+ */
3766
+ sortBy: {
3767
+ type: Array,
3768
+ // NOTE: is an array to allow multi-sorting in the future
3769
+ default: () => []
3770
+ },
3771
+ /**
3772
+ * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
3773
+ */
3774
+ tabTitle: {
3775
+ type: String,
3776
+ default: null
3777
+ },
3778
+ /**
3779
+ * Truncates all data grid column headers
3780
+ */
3781
+ truncateColumnHeaders: {
3782
+ type: Boolean,
3783
+ default: !1
3784
+ },
3785
+ /**
3786
+ * Toggles the alternating background color of rows.
3787
+ */
3788
+ zebraRows: {
3789
+ type: Boolean,
3790
+ default: !1
3791
+ }
3792
+ },
3793
+ emits: [
3794
+ D.COLUMNS,
3795
+ D.COLUMN_RESIZE,
3796
+ D.ITEMS_PAGE,
3797
+ D.FILTER_SEARCH_INPUT,
3798
+ D.FILTER_SEARCH_CLEAR,
3799
+ D.NAVIGATE,
3800
+ D.NESTED_CONTENT_TOGGLED,
3801
+ D.UPDATE_COLUMNS,
3802
+ D.UPDATE_CONDENSED,
3803
+ D.UPDATE_FILTER_VALUES,
3804
+ D.UPDATE_FILTER_VALUES_OBJECT,
3805
+ D.UPDATE_FILTERS,
3806
+ D.UPDATE_FILTER_SEARCH_TERM,
3807
+ D.UPDATE_SHOW_MORE,
3808
+ D.UPDATE_PAGINATION,
3809
+ D.UPDATE_SELECTION,
3810
+ D.UPDATE_SORT_BY,
3811
+ D.ROW_CLICK,
3812
+ D.SELECT,
3813
+ D.SELECT_ALL_ACROSS_PAGES,
3814
+ D.SELECT_ALL_CURRENT_RESULTS,
3815
+ D.DESELECT_ALL_CURRENT_RESULTS,
3816
+ D.SORT,
3817
+ D.CELL_FOCUS
3818
+ ],
3819
+ setup(s, { expose: t, emit: n }) {
3820
+ const e = s, o = He(), l = je(o), a = S(null), r = S(), d = S({}), f = S(Me("data-grid")), p = S(null), h = S(null), y = S(null), R = S(null), u = S(null), w = S(null), {
3821
+ allowColumnDragAndDrop: E,
3822
+ columns: N,
3823
+ columnPanel: b,
3824
+ data: m,
3825
+ lazyLoadType: O,
3826
+ loading: F,
3827
+ hasNestedContent: _,
3828
+ hasNestedRows: i,
3829
+ selectable: g,
3830
+ selection: A,
3831
+ selectableAcrossPages: I,
3832
+ stickyPagination: P,
3833
+ outline: x,
3834
+ pagination: U,
3835
+ zebraRows: q
3836
+ } = Ve(e), G = S(-1), { t: V } = _e(), W = C(() => K.value.filter((M) => M.frozen).length), B = 550, ne = S(), { width: me } = Qn(ne), Ce = C(() => me.value <= B);
3837
+ De(Ie, Ce);
3838
+ const { isTouchDevice: ve } = qn();
3839
+ De(ze, ve);
3840
+ const de = ge(
3841
+ Jn,
3842
+ () => ({
3843
+ additionalContentSlotRef: S(null),
3844
+ isDataGridTemplate: !1,
3845
+ stickyAditionalContent: S(!1),
3846
+ stickyTabs: S(!1),
3847
+ tabsRef: S(null)
3848
+ })
3849
+ ), { additionalContentSlotRef: L, isDataGridTemplate: $, stickyTabs: H, tabsRef: c, stickyAdditionalContent: z } = de(), {
3850
+ columnDefs: K,
3851
+ onColumnWidthOverride: te,
3852
+ gridRowWidthStyle: ie,
3853
+ isMeasuringColumnWidths: Te,
3854
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: be,
3855
+ columns: we,
3856
+ totalWidthOfAllColumns: Se,
3857
+ rowActionsMaxWidth: Re
3858
+ } = Ts(N, m, a, d, p, {
3859
+ hasColumnPanel: b,
3860
+ hasSelectableColumn: g,
3861
+ hasSelectableAcrossPages: I,
3862
+ hasNestedContent: _,
3863
+ hasNestedRows: i,
3864
+ allowColumnDragAndDrop: E,
3865
+ isDataGridTemplate: $
3866
+ }), v = C(() => e.rowActions !== void 0), { registerRowCellRefs: T, rebuildGridcellRefs: Z } = Zl(
3867
+ p,
3868
+ Re,
3869
+ v
3870
+ ), k = (M, ...Y) => {
3871
+ (M === D.COLUMNS || M === D.UPDATE_COLUMNS) && ([we.value] = Y), n(M, ...Y);
3872
+ }, ae = _t(
3873
+ c,
3874
+ H,
3875
+ z,
3876
+ L
3877
+ ), he = C(
3878
+ () => e.stickyFilters ? `${ae.value}px` : null
3879
+ ), pe = _t(h, $e(e, "stickyFilters")), Ht = C(
3880
+ () => `${pe.value + ae.value}px`
3881
+ ), {
3882
+ sortedColumns: Be,
3883
+ columnSets: Ue,
3884
+ isOnlyOneVisibleColumn: Zt,
3885
+ internalZebraRows: Xe,
3886
+ onConfigSettingsColumnsUpdate: jt,
3887
+ onConfigSettingsColumnUpdate: qt,
3888
+ onConfigSettingsCondensedUpdate: Kt,
3889
+ onConfigSettingsZebraRowsUpdate: Yt
3890
+ } = xs(K, q, k), { hoveredOverColumn: Xt, hoveredOverColumnState: Jt } = zs(
3891
+ Ue,
3892
+ g,
3893
+ x,
3894
+ be
3895
+ ), { draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn } = Ms(Be, E, k), Je = C(
3896
+ () => {
3897
+ var M;
3898
+ return ((M = e.data) == null ? void 0 : M.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
3899
+ }
3900
+ ), {
3901
+ onAllRowSelect: sn,
3902
+ onRowSelect: on,
3903
+ onNestedRowSelect: ln,
3904
+ onDeselectAll: an,
3905
+ allItemsSelectedState: rn,
3906
+ selectedItems: Qe,
3907
+ selectionState: cn
3908
+ } = Os(
3909
+ A,
3910
+ k,
3911
+ m,
3912
+ e.getDataItemId,
3913
+ e.isDataItemDisabled,
3914
+ Je,
3915
+ U
3916
+ ), dn = C(() => {
3917
+ var M, Y, Ae, Ee;
3918
+ return {
3919
+ filtered: ((M = y.value) == null ? void 0 : M.isClearAllVisible) || ((Y = y.value) == null ? void 0 : Y.isResetAllVisible) || !!e.filterSearchTerm,
3920
+ allRowsVisible: ((Ae = U.value) == null ? void 0 : Ae.size) >= ((Ee = U.value) == null ? void 0 : Ee.totalCount)
3921
+ };
3922
+ }), { navigationInput: un } = Ns(
3923
+ p,
3924
+ d,
3925
+ Be,
3926
+ g,
3927
+ v,
3928
+ b
3929
+ ), { isLazyLoad: Ne, isInfiniteScroll: fn, verticalScrollPosition: et, emitLazyLoadEvent: gn } = Fs(
3930
+ O,
3931
+ u,
3932
+ a,
3933
+ F,
3934
+ k
3935
+ ), {
3936
+ updateScrollPosition: mn,
3937
+ updateScrollPositionOnFrozenColumnsNavigation: _n,
3938
+ syncVirtualScrollerWithBody: Cn,
3939
+ hasLeftOverflow: ke,
3940
+ hasRightOverflow: tt,
3941
+ horizontalScrollbarConditionalStyles: vn
3942
+ } = Ps(
3943
+ a,
3944
+ r,
3945
+ et,
3946
+ w,
3947
+ R,
3948
+ Se,
3949
+ {
3950
+ isLazyLoad: Ne,
3951
+ pagination: U,
3952
+ stickyPagination: P,
3953
+ isDataGridTemplate: $
3954
+ }
3955
+ ), nt = () => {
3956
+ y.value.isClearAllVisible ? y.value.clearAllFilters() : y.value.isResetAllVisible && y.value.resetAllFilters();
3957
+ }, hn = C(() => {
3958
+ var M, Y;
3959
+ return {
3960
+ ...e.emptyState,
3961
+ variant: ((M = e.emptyState) == null ? void 0 : M.variant) === "embedded" || ((Y = e.emptyState) == null ? void 0 : Y.variant) === "basic" ? e.emptyState.variant : "basic"
3962
+ };
3963
+ }), pn = C(() => ({
3964
+ [`b-data-grid--${fe.OUTLINE}`]: e.outline,
3965
+ [`b-data-grid--${fe.SCROLL}`]: e.fitContent || Ne.value,
3966
+ [`b-data-grid--${fe.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
3967
+ [`b-data-grid--${fe.OVERFLOW_SHADOW_LEFT}`]: ke.value && !W.value,
3968
+ [`b-data-grid--${fe.OVERFLOW_SHADOW_RIGHT}`]: tt.value && e.rowActions === void 0,
3969
+ [`b-data-grid--${fe.NO_SPACING_TOP}`]: e.noSpacingTop,
3970
+ [`b-data-grid--${fe.FIT_CONTENT}`]: e.fitContent,
3971
+ [`b-data-grid--${fe.ZEBRA_ROWS}`]: Xe.value,
3972
+ "b-data-grid--lazy-load": Ne.value
3973
+ })), bn = C(() => ({
3974
+ "b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
3975
+ })), wn = C(() => Ue.value.findIndex((M) => M.columnSet.length)), Sn = C(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && W.value === 1) || ke.value), Rn = C(() => ({
3976
+ "b-data-grid__filters--sticky": !!e.stickyFilters || $
3977
+ })), An = C(() => {
3978
+ var M, Y, Ae, Ee, at, it;
3979
+ return {
3980
+ "b-data-grid__pagination--padding-left-unset": ((Ae = (Y = (M = e.columns) == null ? void 0 : M[0]) == null ? void 0 : Y.padding) == null ? void 0 : Ae.left) === !1,
3981
+ "b-data-grid__pagination--padding-right-unset": ((it = (at = (Ee = e.columns) == null ? void 0 : Ee[e.columns.length - 1]) == null ? void 0 : at.padding) == null ? void 0 : it.right) === !1,
3982
+ "b-data-grid__pagination--sticky": !!e.stickyPagination || $
3983
+ };
3984
+ }), En = (M) => {
3985
+ const Y = M;
3986
+ M !== null && (Y != null && Y.columnHeaderRefs) && Object.entries(Y == null ? void 0 : Y.columnHeaderRefs).forEach(([Ae, Ee]) => {
3987
+ d.value[Ae] = Ee;
3988
+ });
3989
+ }, yn = (M, Y) => {
3990
+ e.allowRowClicks && k(D.ROW_CLICK, M, Y);
3991
+ }, Ln = (M) => {
3992
+ k(D.NESTED_CONTENT_TOGGLED, M), ee(() => Z());
3993
+ }, Tn = (M) => {
3994
+ G.value = M;
3995
+ }, On = C(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), st = C(() => {
3996
+ var M;
3997
+ return ((M = Qe.value) == null ? void 0 : M.length) ?? 0;
3998
+ }), In = C(() => e.bulkActions && st.value > 0), Nn = (M) => k(D.COLUMN_RESIZE, M), Dn = (M) => {
3999
+ k(D.UPDATE_SORT_BY, M), k(D.SORT, M);
4000
+ }, Fn = (M, Y) => {
4001
+ k(D.NAVIGATE, M), k(D.UPDATE_PAGINATION, {
4002
+ ...e.pagination,
4003
+ size: Y,
4004
+ page: M
4005
+ });
4006
+ }, Mn = (M) => {
4007
+ k(D.ITEMS_PAGE, M);
4008
+ }, xn = () => {
4009
+ k(D.FILTER_SEARCH_CLEAR);
4010
+ }, Pn = (M) => {
4011
+ k(D.UPDATE_FILTER_SEARCH_TERM, M), k(D.FILTER_SEARCH_INPUT, M);
4012
+ }, ot = C(() => N.value.some((M) => M.mandatory));
4013
+ ot.value || Ft(
4014
+ "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
4015
+ );
4016
+ const lt = ge(Xn, () => null);
4017
+ return lt(e.tabTitle), De($t, $e(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: nt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: r, columnHeaderRefs: d, dataGridUid: f, gridcellRefs: p, filtersRef: h, filterBarRef: y, paginationContainerRef: R, verticalScrollPositionRef: u, virtualHorizontalScrollbarRef: w, allowColumnDragAndDrop: E, columns: N, columnPanel: b, data: m, lazyLoadType: O, loading: F, hasNestedContent: _, hasNestedRows: i, selectable: g, selection: A, selectableAcrossPages: I, stickyPagination: P, outline: x, pagination: U, zebraRows: q, hoveredRowIndex: G, t: V, frozenColumnsLength: W, MOBILE_BREAKPOINT: B, dataGridRef: ne, width: me, isSmallContainer: Ce, isTouchDevice: ve, registerDatagridInDataGridTemplate: de, additionalContentSlotRef: L, isDataGridTemplate: $, stickyTabs: H, tabsRef: c, stickyAdditionalContent: z, columnDefs: K, onColumnWidthOverride: te, gridRowWidthStyle: ie, isMeasuringColumnWidths: Te, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: be, localColumnsState: we, totalWidthOfAllColumns: Se, rowActionsMaxWidth: Re, hasRowActions: v, registerRowCellRefs: T, rebuildGridcellRefs: Z, definedEmitsFunction: n, emit: k, stickyFiltersHeight: ae, computedStickyFiltersTopPosition: he, columnHeadersHeight: pe, computedColumnHeadersTopPosition: Ht, sortedColumns: Be, columnSets: Ue, isOnlyOneVisibleColumn: Zt, internalZebraRows: Xe, onConfigSettingsColumnsUpdate: jt, onConfigSettingsColumnUpdate: qt, onConfigSettingsCondensedUpdate: Kt, onConfigSettingsZebraRowsUpdate: Yt, hoveredOverColumn: Xt, hoveredOverColumnState: Jt, draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn, selectableAcrossPagesComputed: Je, onAllRowSelect: sn, onRowSelect: on, onNestedRowSelect: ln, onDeselectAll: an, allItemsSelectedState: rn, selectedItems: Qe, selectionState: cn, visibleRowsState: dn, navigationInput: un, isLazyLoad: Ne, isInfiniteScroll: fn, verticalScrollPosition: et, emitLazyLoadEvent: gn, updateScrollPosition: mn, updateScrollPositionOnFrozenColumnsNavigation: _n, syncVirtualScrollerWithBody: Cn, hasLeftOverflow: ke, hasRightOverflow: tt, horizontalScrollbarConditionalStyles: vn, onEmptyStateClearResetButtonClick: nt, limitedEmptyStateProps: hn, conditionalGridClasses: pn, conditionalGridBodyClasses: bn, computedColumnPanelAlignment: wn, showFrozenColumnsSeparator: Sn, conditionalFilterClasses: Rn, conditionalPaginationClasses: An, registerColumnHeaderRefs: En, onRowClick: yn, onNestedContentToggled: Ln, onCellHover: Tn, ariaGridRole: On, itemsSelectedCounter: st, showActionBar: In, onColumnResized: Nn, onSort: Dn, onPaginationNavigate: Fn, onItemsPerPageChange: Mn, onSearchTermCleared: xn, onSearchTermInput: Pn, hasMandatoryColumn: ot, setTitle: lt, BentoActionBar: Zn, BentoPagination: jn, BentoLoadingIndicator: Ze, BentoTypography: Le, BentoDataGridConfigSettings: Fo, DataGridColumns: Co, DataGridLazyLoad: Uo, DataGridRow: Vt, handleClipboard: Bs, BentoDatagridEvent: D, BentoFilterBar: Kn, BentoEmptyState: Yn };
4018
+ }
4019
+ });
4020
+ var Kl = function() {
4021
+ var o;
4022
+ var t = this, n = t._self._c, e = t._self._setupProxy;
4023
+ return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "data-testid": "data-grid", "aria-live": "polite", "aria-busy": e.loading }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition }, attrs: { "aria-controls": e.dataGridUid, "aria-label": e.t("filterBar"), role: "region" } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, 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), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, 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__wrapper", style: { top: e.computedColumnHeadersTopPosition }, attrs: { id: e.dataGridUid, role: e.ariaGridRole, "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": t.emptyState ? e.t("noResults") : null } }, [n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [e.columnPanel ? n("div", { attrs: { role: "row" } }, [n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { role: "gridcell", columns: e.localColumnsState, condensed: t.condensed, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } })], 1) : t._e(), n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, d) {
4024
+ var f;
4025
+ return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (p) => e.registerColumnHeaderRefs(p), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": r, "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": d === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((f = e.data) == null ? void 0 : f.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "visible-rows-state": e.visibleRowsState, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(p) {
4026
+ e.hoveredOverColumn = p;
4027
+ }, "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(p) {
4028
+ return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
4029
+ }, "select-all-current-results": function(p) {
4030
+ return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
4031
+ }, "deselect-all-current-results": function(p) {
4032
+ return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
4033
+ }, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(p, h) {
4034
+ return { key: h, fn: function(y) {
4035
+ return [t._t(h, null, null, y)];
4036
+ } };
4037
+ })], null, !0) }, e.draggingEventsForColumns)) : t._e()];
4038
+ })], 2)])]), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body" }, 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) : n("div", { attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, [((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? [n("div", { attrs: { role: "row", tabindex: "-1" } }, [n("div", { attrs: { role: "gridcell", "aria-colspan": e.columns.length, tabindex: "-1" } }, [n(e.BentoEmptyState, t._b({ staticClass: "b-data-grid__empty-state" }, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1)])] : t._l(e.data, function(l, a) {
4039
+ var r, d;
4040
+ 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-even": e.internalZebraRows ? a % 2 !== 0 : !1, "is-row-last-child": a + 1 === ((r = e.data) == null ? void 0 : r.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": (d = e.data) == null ? void 0 : d.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, "cell-focus": function(f) {
4041
+ return e.emit(e.BentoDatagridEvent.CELL_FOCUS, f);
4042
+ }, "nested-content-toggled": function(f) {
4043
+ return e.onNestedContentToggled(f);
4044
+ }, "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, p) {
4045
+ return { key: p, fn: function(h) {
4046
+ return [t._t(p, null, null, h)];
4047
+ } };
4048
+ })], null, !0) });
4049
+ })], 2)])]), 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", style: e.horizontalScrollbarConditionalStyles, 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", { ref: "paginationContainerRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": t.$t("pagination"), "aria-controls": e.dataGridUid }, 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: e.onDeselectAll } }) : t._e()], 1);
4050
+ }, Yl = [], Xl = /* @__PURE__ */ J(
4051
+ ql,
4052
+ Kl,
4053
+ Yl,
4054
+ !1,
4055
+ null,
4056
+ "08f94a17"
4057
+ );
4058
+ const Ka = Xl.exports;
4059
+ export {
4060
+ We as B,
4061
+ Ha as a,
4062
+ Za as b,
4063
+ ja as c,
4064
+ Ka as d,
4065
+ qa as e,
4066
+ Fe as f,
4067
+ D as g,
4068
+ ye as h,
4069
+ fe as i
4070
+ };
4071
+ //# sourceMappingURL=data-grid.ZHY5EzP3.js.map