@adyen/bento-vue3 1.68.2 → 1.70.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 (458) hide show
  1. package/dist/@types/components.d.ts +1 -0
  2. package/dist/@types/index.d.ts +978 -1976
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/base-button.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-group.css +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/chip.css +1 -1
  19. package/dist/assets/code-snippet.css +1 -1
  20. package/dist/assets/controls-group.css +1 -1
  21. package/dist/assets/copy.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashed-underline.css +1 -1
  25. package/dist/assets/data-grid-template.css +1 -1
  26. package/dist/assets/data-grid.css +1 -1
  27. package/dist/assets/date-picker.css +1 -1
  28. package/dist/assets/date-range-picker.css +1 -1
  29. package/dist/assets/dialog-page.css +1 -1
  30. package/dist/assets/divider.css +1 -1
  31. package/dist/assets/dropdown-default-textbox.css +1 -1
  32. package/dist/assets/dropdown-tag.css +1 -1
  33. package/dist/assets/dropdown.css +1 -1
  34. package/dist/assets/empty-state.css +1 -1
  35. package/dist/assets/error-message.css +1 -1
  36. package/dist/assets/file-uploader.css +1 -1
  37. package/dist/assets/filter-bar.css +1 -1
  38. package/dist/assets/focus-trap.css +1 -1
  39. package/dist/assets/footer-actions.css +1 -1
  40. package/dist/assets/form-layout-title.css +1 -1
  41. package/dist/assets/grid-layout.css +1 -1
  42. package/dist/assets/header-meta.css +1 -1
  43. package/dist/assets/header-with-views.css +1 -1
  44. package/dist/assets/header.css +1 -1
  45. package/dist/assets/info-icon.css +1 -1
  46. package/dist/assets/input-field-password.css +1 -1
  47. package/dist/assets/input-field-phone-number.css +1 -1
  48. package/dist/assets/input-field.css +1 -1
  49. package/dist/assets/inspector.css +1 -1
  50. package/dist/assets/layout-row.css +1 -1
  51. package/dist/assets/listbox-option-tag.css +1 -1
  52. package/dist/assets/loading-indicator.css +1 -1
  53. package/dist/assets/modal-fullscreen.css +1 -1
  54. package/dist/assets/pagination.css +1 -1
  55. package/dist/assets/payment-method.css +1 -1
  56. package/dist/assets/popper-container.css +1 -1
  57. package/dist/assets/promo-banner.css +1 -1
  58. package/dist/assets/radio-group.css +1 -1
  59. package/dist/assets/radio-input.css +1 -1
  60. package/dist/assets/rich-text-editor.css +1 -1
  61. package/dist/assets/search-bar.css +1 -1
  62. package/dist/assets/secondary-nav.css +1 -1
  63. package/dist/assets/segmented-control.css +1 -1
  64. package/dist/assets/selection-card-group.css +1 -1
  65. package/dist/assets/sidepanel.css +1 -1
  66. package/dist/assets/status.css +1 -1
  67. package/dist/assets/step.css +1 -1
  68. package/dist/assets/structured-list-item.css +1 -1
  69. package/dist/assets/tab.css +1 -1
  70. package/dist/assets/tag.css +1 -1
  71. package/dist/assets/textarea.css +1 -1
  72. package/dist/assets/timeline-item.css +1 -1
  73. package/dist/assets/toast.css +1 -1
  74. package/dist/assets/toggle-button.css +1 -1
  75. package/dist/assets/toggle.css +1 -1
  76. package/dist/assets/tooltip.css +1 -1
  77. package/dist/assets/tutorial.css +1 -1
  78. package/dist/assets/typography.css +1 -1
  79. package/dist/assets/use-cached-selected-values.css +1 -1
  80. package/dist/avatar.js +1 -1
  81. package/dist/button.js +9 -9
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chip.js +1 -1
  85. package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.6etqAJV9.js} +3 -3
  86. package/dist/chunks/accordion-item.6etqAJV9.js.map +1 -0
  87. package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CweA2FeY.js} +7 -8
  88. package/dist/chunks/action-bar.CweA2FeY.js.map +1 -0
  89. package/dist/chunks/alert.Dzx5MzgE.js +171 -0
  90. package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
  91. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  92. package/dist/chunks/{avatar.B0-9jC6H.js → avatar.Dq59yj6m.js} +2 -2
  93. package/dist/chunks/avatar.Dq59yj6m.js.map +1 -0
  94. package/dist/chunks/{base-button.DdNFlbgH.js → base-button.CjYb5Y8k.js} +19 -19
  95. package/dist/chunks/base-button.CjYb5Y8k.js.map +1 -0
  96. package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.BrBcILSe.js} +21 -21
  97. package/dist/chunks/base-modal.BrBcILSe.js.map +1 -0
  98. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  99. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  100. package/dist/chunks/button-actions-with-menu.CBuoSd3w.js +93 -0
  101. package/dist/chunks/button-actions-with-menu.CBuoSd3w.js.map +1 -0
  102. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  103. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  104. package/dist/chunks/{button.AB0SOQMn.js → button.C-MAa6ut.js} +4 -4
  105. package/dist/chunks/button.C-MAa6ut.js.map +1 -0
  106. package/dist/chunks/{calendar._oPk_A1C.js → calendar.DFHiga9k.js} +36 -37
  107. package/dist/chunks/calendar.DFHiga9k.js.map +1 -0
  108. package/dist/chunks/{card.CS34Mi_G.js → card.BspLDcas.js} +6 -5
  109. package/dist/chunks/card.BspLDcas.js.map +1 -0
  110. package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.DIXgr1WQ.js} +6 -6
  111. package/dist/chunks/checkbox-group.DIXgr1WQ.js.map +1 -0
  112. package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.BXNGT9U0.js} +2 -2
  113. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
  114. package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.M6lKj2hQ.js} +27 -27
  115. package/dist/chunks/checkbox.M6lKj2hQ.js.map +1 -0
  116. package/dist/chunks/{chip.CneNX2_j.js → chip.DcpP3zb6.js} +11 -11
  117. package/dist/chunks/chip.DcpP3zb6.js.map +1 -0
  118. package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CKrxKjkQ.js} +8 -8
  119. package/dist/chunks/code-snippet.CKrxKjkQ.js.map +1 -0
  120. package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.CXVHTaYp.js} +32 -29
  121. package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
  122. package/dist/chunks/{copy.RUoQOydT.js → copy.C4DAAiPw.js} +18 -19
  123. package/dist/chunks/copy.C4DAAiPw.js.map +1 -0
  124. package/dist/chunks/{country.Q95voxeL.js → country.RVvsGwuV.js} +9 -9
  125. package/dist/chunks/country.RVvsGwuV.js.map +1 -0
  126. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  127. package/dist/chunks/{currency.CZVdyZUH.js → currency.CN4UnCx8.js} +3 -3
  128. package/dist/chunks/currency.CN4UnCx8.js.map +1 -0
  129. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Cll3tn0q.js} +4 -4
  130. package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
  131. package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.2OYxO-Rh.js} +30 -32
  132. package/dist/chunks/dashed-underline.2OYxO-Rh.js.map +1 -0
  133. package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CTRHofoW.js} +5 -5
  134. package/dist/chunks/data-grid-template.CTRHofoW.js.map +1 -0
  135. package/dist/chunks/data-grid.DMOTTywp.js +3932 -0
  136. package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
  137. package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.CBlQ0ql7.js} +13 -14
  138. package/dist/chunks/date-picker.CBlQ0ql7.js.map +1 -0
  139. package/dist/chunks/date-range-picker.D-gGqpFB.js +1168 -0
  140. package/dist/chunks/date-range-picker.D-gGqpFB.js.map +1 -0
  141. package/dist/chunks/{date.DSjCnSgL.js → date.4GAXrgy5.js} +2 -2
  142. package/dist/chunks/{date.DSjCnSgL.js.map → date.4GAXrgy5.js.map} +1 -1
  143. package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.VSJgHY3C.js} +15 -15
  144. package/dist/chunks/dialog-page.VSJgHY3C.js.map +1 -0
  145. package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
  146. package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
  147. package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.CGsOngY1.js} +111 -109
  148. package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +1 -0
  149. package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
  150. package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
  151. package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.agfzvJZE.js} +59 -59
  152. package/dist/chunks/dropdown.agfzvJZE.js.map +1 -0
  153. package/dist/chunks/{empty-state.D7llINgF.js → empty-state.BTaeZdQu.js} +4 -4
  154. package/dist/chunks/empty-state.BTaeZdQu.js.map +1 -0
  155. package/dist/chunks/{error-message.DHMHq9bR.js → error-message.B1P5ictH.js} +5 -5
  156. package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.B1P5ictH.js.map} +1 -1
  157. package/dist/chunks/es6.MoTTyETW.js +12 -0
  158. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  159. package/dist/chunks/events.CMzGybJJ.js +47 -0
  160. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  161. package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.Vac1Cu0i.js} +165 -164
  162. package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
  163. package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.uUpoP-XZ.js} +361 -368
  164. package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
  165. package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.DSGxXiAH.js} +2 -2
  166. package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
  167. package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
  168. package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
  169. package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.gRKTKGts.js} +5 -5
  170. package/dist/chunks/footer-actions.gRKTKGts.js.map +1 -0
  171. package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.DdRqnXXi.js} +5 -5
  172. package/dist/chunks/form-layout-title.DdRqnXXi.js.map +1 -0
  173. package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
  174. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  175. package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.Ct79L1O8.js} +26 -27
  176. package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.Ct79L1O8.js.map} +1 -1
  177. package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.BVHdSAKp.js} +281 -281
  178. package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
  179. package/dist/chunks/{header.CwKjDgKv.js → header.Cd1P8lYK.js} +32 -32
  180. package/dist/chunks/header.Cd1P8lYK.js.map +1 -0
  181. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  182. package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.Bl0iKUfC.js} +7 -8
  183. package/dist/chunks/info-icon.Bl0iKUfC.js.map +1 -0
  184. package/dist/chunks/info.BKwey1HA.js +44 -0
  185. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  186. package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DkIWrrxy.js} +8 -8
  187. package/dist/chunks/input-field-password.DkIWrrxy.js.map +1 -0
  188. package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.EXlRu8qq.js} +46 -45
  189. package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
  190. package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.CgbiOju9.js} +5 -5
  191. package/dist/chunks/input-field.CgbiOju9.js.map +1 -0
  192. package/dist/chunks/{inspector.CoZCPfHC.js → inspector.BGtTMtE0.js} +13 -13
  193. package/dist/chunks/inspector.BGtTMtE0.js.map +1 -0
  194. package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
  195. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  196. package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.BPfOPn4x.js} +9 -9
  197. package/dist/chunks/layout-row.BPfOPn4x.js.map +1 -0
  198. package/dist/chunks/{link.BBpxiclu.js → link.cwPmWlsk.js} +2 -2
  199. package/dist/chunks/{link.BBpxiclu.js.map → link.cwPmWlsk.js.map} +1 -1
  200. package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.CDIkX7nh.js} +7 -7
  201. package/dist/chunks/listbox-option-tag.CDIkX7nh.js.map +1 -0
  202. package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.VHi5tbZa.js} +3 -3
  203. package/dist/chunks/loading-indicator.VHi5tbZa.js.map +1 -0
  204. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  205. package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.-Q-7GMyT.js} +18 -19
  206. package/dist/chunks/modal-fullscreen.-Q-7GMyT.js.map +1 -0
  207. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
  208. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map +1 -0
  209. package/dist/chunks/{pagination.fYQak4C8.js → pagination.DW_HPEIu.js} +5 -5
  210. package/dist/chunks/pagination.DW_HPEIu.js.map +1 -0
  211. package/dist/chunks/{payment-method.eazefwm6.js → payment-method.CDnn1bjo.js} +3 -3
  212. package/dist/chunks/payment-method.CDnn1bjo.js.map +1 -0
  213. package/dist/chunks/popover.types.COM6oQgq.js +6 -0
  214. package/dist/chunks/popover.types.COM6oQgq.js.map +1 -0
  215. package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.CgJzEQ7N.js} +285 -281
  216. package/dist/chunks/popper-container.CgJzEQ7N.js.map +1 -0
  217. package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.BbqIA4Ce.js} +4 -4
  218. package/dist/chunks/promo-banner.BbqIA4Ce.js.map +1 -0
  219. package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.CbLIPi7h.js} +77 -69
  220. package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
  221. package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.odN9FOyr.js} +2 -2
  222. package/dist/chunks/radio-input.odN9FOyr.js.map +1 -0
  223. package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.C0hJeV4H.js} +8 -8
  224. package/dist/chunks/rich-text-editor.C0hJeV4H.js.map +1 -0
  225. package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.CvAi2t3-.js} +46 -44
  226. package/dist/chunks/search-bar.CvAi2t3-.js.map +1 -0
  227. package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.yntS8-u5.js} +28 -28
  228. package/dist/chunks/secondary-nav.yntS8-u5.js.map +1 -0
  229. package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.CRSdIvha.js} +6 -7
  230. package/dist/chunks/segmented-control.CRSdIvha.js.map +1 -0
  231. package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.Cu3V8h4R.js} +16 -16
  232. package/dist/chunks/selection-card-group.Cu3V8h4R.js.map +1 -0
  233. package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.z18XSO3M.js} +14 -14
  234. package/dist/chunks/sidepanel.z18XSO3M.js.map +1 -0
  235. package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.-l2qJxLn.js} +9 -9
  236. package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
  237. package/dist/chunks/{step.BtNhPZAf.js → step.BMSjltwl.js} +8 -9
  238. package/dist/chunks/step.BMSjltwl.js.map +1 -0
  239. package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.CD1nMqzH.js} +18 -19
  240. package/dist/chunks/structured-list-item.CD1nMqzH.js.map +1 -0
  241. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.BHuDlPDw.js} +7 -7
  242. package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
  243. package/dist/chunks/{tab.CAt51ksU.js → tab.C3R_VoJL.js} +5 -5
  244. package/dist/chunks/tab.C3R_VoJL.js.map +1 -0
  245. package/dist/chunks/{tag.D3in0-Bp.js → tag.B6AmSws9.js} +11 -12
  246. package/dist/chunks/tag.B6AmSws9.js.map +1 -0
  247. package/dist/chunks/textarea.DfQLxj_w.js +295 -0
  248. package/dist/chunks/textarea.DfQLxj_w.js.map +1 -0
  249. package/dist/chunks/timeline-item.25y9USE-.js +568 -0
  250. package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
  251. package/dist/chunks/{toast.CSoCPteL.js → toast.DIhABAW8.js} +18 -18
  252. package/dist/chunks/toast.DIhABAW8.js.map +1 -0
  253. package/dist/chunks/toggle-button.CQl9HneO.js +1353 -0
  254. package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
  255. package/dist/chunks/{toggle.BuKXexA6.js → toggle.C8k7NQ7y.js} +3 -3
  256. package/dist/chunks/toggle.C8k7NQ7y.js.map +1 -0
  257. package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.lBnko9QV.js} +70 -64
  258. package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
  259. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +48 -51
  260. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map +1 -0
  261. package/dist/chunks/{typography.DN5eC5ch.js → typography.yBEME_Gu.js} +25 -25
  262. package/dist/chunks/typography.yBEME_Gu.js.map +1 -0
  263. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
  264. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
  265. package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.CELe-MsT.js} +16 -17
  266. package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
  267. package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
  268. package/dist/chunks/use-country-items.D_kamcYy.js.map +1 -0
  269. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
  270. package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
  271. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  272. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  273. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -0
  274. package/dist/code-snippet.js +1 -1
  275. package/dist/country.js +2 -2
  276. package/dist/currency.js +1 -1
  277. package/dist/dashboard-template.js +1 -1
  278. package/dist/dashed-underline.js +1 -1
  279. package/dist/data-grid-template.js +1 -1
  280. package/dist/data-grid.js +1 -1
  281. package/dist/date-picker.js +2 -2
  282. package/dist/date-range-picker.js +2 -2
  283. package/dist/date.js +1 -1
  284. package/dist/divider.js +1 -1
  285. package/dist/dropdown.js +4 -4
  286. package/dist/empty-state.js +1 -1
  287. package/dist/file-uploader.js +1 -1
  288. package/dist/filter-bar.js +1 -1
  289. package/dist/focus-trap.js +1 -1
  290. package/dist/form-layout.js +1 -1
  291. package/dist/header-with-views.js +1 -1
  292. package/dist/header.js +1 -1
  293. package/dist/index.js +241 -244
  294. package/dist/index.js.map +1 -1
  295. package/dist/info-icon.js +1 -1
  296. package/dist/input-field-password.js +1 -1
  297. package/dist/input-field-phone-number.js +3 -2
  298. package/dist/input-field.js +1 -1
  299. package/dist/inspector.js +1 -1
  300. package/dist/internal.js +33 -32
  301. package/dist/internal.js.map +1 -1
  302. package/dist/layout.js +1 -1
  303. package/dist/link.js +1 -1
  304. package/dist/loading-indicator.js +1 -1
  305. package/dist/menu.js +1 -1
  306. package/dist/modal-fullscreen.js +1 -1
  307. package/dist/modal.js +2 -2
  308. package/dist/pagination.js +1 -1
  309. package/dist/payment-method.js +1 -1
  310. package/dist/popover.js +2 -2
  311. package/dist/popper-container.js +4 -5
  312. package/dist/popper-container.js.map +1 -1
  313. package/dist/promo-banner.js +1 -1
  314. package/dist/radio-group.js +2 -2
  315. package/dist/rich-text-editor.js +1 -1
  316. package/dist/search-bar.js +2 -2
  317. package/dist/secondary-nav.js +1 -1
  318. package/dist/segmented-control.js +1 -1
  319. package/dist/selection-card.js +1 -1
  320. package/dist/sidepanel.js +1 -1
  321. package/dist/status.js +1 -1
  322. package/dist/stepper.js +1 -1
  323. package/dist/structured-list.js +1 -1
  324. package/dist/styles/bento-dark.css +17 -4
  325. package/dist/styles/bento-light.css +17 -4
  326. package/dist/styles/bento.css +17 -4
  327. package/dist/styles/styleguide.css +17 -4
  328. package/dist/styles/utility.css +3 -0
  329. package/dist/summary-grid.js +1 -1
  330. package/dist/tabs.js +1 -1
  331. package/dist/tag.js +1 -1
  332. package/dist/textarea.js +1 -1
  333. package/dist/timeline.js +1 -1
  334. package/dist/toast.js +1 -1
  335. package/dist/toggle.js +1 -1
  336. package/dist/tutorial.js +1 -1
  337. package/dist/typography.js +1 -1
  338. package/dist/use-form-v4.js.map +1 -1
  339. package/dist/web-types.json +1 -1
  340. package/package.json +6 -6
  341. package/dist/assets/button-actions.css +0 -1
  342. package/dist/assets/menu.css +0 -1
  343. package/dist/assets/popover.css +0 -1
  344. package/dist/assets/teleport.css +0 -1
  345. package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
  346. package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
  347. package/dist/chunks/alert.DvleqX0i.js +0 -169
  348. package/dist/chunks/alert.DvleqX0i.js.map +0 -1
  349. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  350. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  351. package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
  352. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  353. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  354. package/dist/chunks/bin.CiGG2V4b.js +0 -37
  355. package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
  356. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
  357. package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
  358. package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
  359. package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
  360. package/dist/chunks/button.AB0SOQMn.js.map +0 -1
  361. package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
  362. package/dist/chunks/card.CS34Mi_G.js.map +0 -1
  363. package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
  364. package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
  365. package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
  366. package/dist/chunks/chip.CneNX2_j.js.map +0 -1
  367. package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
  368. package/dist/chunks/controls-group.CrzkSu0U.js.map +0 -1
  369. package/dist/chunks/copy.RUoQOydT.js.map +0 -1
  370. package/dist/chunks/country.Q95voxeL.js.map +0 -1
  371. package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
  372. package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
  373. package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
  374. package/dist/chunks/data-grid.BEdELRNZ.js +0 -3860
  375. package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
  376. package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
  377. package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
  378. package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
  379. package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
  380. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  381. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
  382. package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
  383. package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
  384. package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
  385. package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
  386. package/dist/chunks/es6.n1ewaW31.js +0 -11
  387. package/dist/chunks/es6.n1ewaW31.js.map +0 -1
  388. package/dist/chunks/events.FNmSWp_P.js +0 -52
  389. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  390. package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
  391. package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
  392. package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
  393. package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
  394. package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
  395. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  396. package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
  397. package/dist/chunks/header.CwKjDgKv.js.map +0 -1
  398. package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
  399. package/dist/chunks/info.DcTs-Bzp.js +0 -44
  400. package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
  401. package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
  402. package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
  403. package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
  404. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  405. package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
  406. package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
  407. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  408. package/dist/chunks/menu.EtjeOPXX.js +0 -680
  409. package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
  410. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
  411. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  412. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  413. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
  414. package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
  415. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  416. package/dist/chunks/popover.DYgCCUCJ.js +0 -200
  417. package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
  418. package/dist/chunks/popover.types.V8old-GW.js +0 -6
  419. package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
  420. package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
  421. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  422. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  423. package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
  424. package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
  425. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  426. package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
  427. package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
  428. package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
  429. package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
  430. package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
  431. package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
  432. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  433. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  434. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  435. package/dist/chunks/step.BtNhPZAf.js.map +0 -1
  436. package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
  437. package/dist/chunks/tab.CAt51ksU.js.map +0 -1
  438. package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
  439. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  440. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  441. package/dist/chunks/textarea.BBhN67-I.js +0 -282
  442. package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
  443. package/dist/chunks/timeline-item.CuCII37W.js +0 -566
  444. package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
  445. package/dist/chunks/toast.CSoCPteL.js.map +0 -1
  446. package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
  447. package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
  448. package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
  449. package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
  450. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
  451. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  452. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
  453. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  454. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  455. package/dist/chunks/use-country-items.Duh4bMqW.js.map +0 -1
  456. package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
  457. package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
  458. package/dist/styles/legacy.css +0 -2226
@@ -0,0 +1,3932 @@
1
+ import { ref as A, onMounted as Ke, nextTick as Ce, watch as ye, onUnmounted as nn, reactive as vt, toRefs as mt, computed as b, watchEffect as al, onBeforeUpdate as il, createElementBlock as S, openBlock as u, mergeProps as le, createCommentVNode as B, createElementVNode as O, toDisplayString as X, defineComponent as $e, normalizeClass as ce, Fragment as ve, renderList as pe, unref as o, toHandlers as lt, createBlock as W, withCtx as G, createVNode as J, renderSlot as Ie, withModifiers as rl, normalizeStyle as Me, resolveComponent as Re, withDirectives as ht, createTextVNode as ue, vShow as dl, toRef as dt, resolveDirective as ul, Transition as ln, createSlots as Ve, resolveDynamicComponent as je, useSlots as Ct, provide as on, inject as ut, withKeys as Dt, normalizeProps as cl, guardReactiveProps as fl } from "vue";
2
+ import { C as gl } from "./checkmark-circle-fill._6-d40ru.js";
3
+ import { W as vl } from "./warning-filled.BMGD0G-_.js";
4
+ /* empty css */
5
+ import { _ as ie } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import { C as sn } from "./cross.B92GxFTY.js";
7
+ import { N as kt } from "./minus-small.DYIyF5XW.js";
8
+ import { E as Ae, b as ml, T as hl, B as Cl } from "./tooltip.lBnko9QV.js";
9
+ import { d as wl } from "./popper-container.CgJzEQ7N.js";
10
+ import { B as _l } from "./dashed-underline.2OYxO-Rh.js";
11
+ import { B as Ye, p as an } from "./typography.yBEME_Gu.js";
12
+ import { u as Ue } from "./i18n.B6g5VX0q.js";
13
+ import { B as bl } from "./action-bar.CweA2FeY.js";
14
+ import { B as yl } from "./pagination.DW_HPEIu.js";
15
+ import { B as wt } from "./loading-indicator.VHi5tbZa.js";
16
+ import { u as _t } from "./use-has-slot.B7eQSabc.js";
17
+ import { u as El } from "./aria-label.CaUURpnB.js";
18
+ import { g as pl } from "./get-slot-text.DQlZEsId.js";
19
+ import { B as rt } from "./filter-bar.uUpoP-XZ.js";
20
+ import { B as Ll } from "./empty-state.BTaeZdQu.js";
21
+ import { E as Sl } from "./tabs.keys.Cb4Vw5Jh.js";
22
+ import { D as Rl } from "./data-grid-template.keys.2_AkxuNT.js";
23
+ import { o as bt } from "./resize.Bqks3WUm.js";
24
+ import { f as ct, c as yt, h as Al, a as Mt, b as zt, O as Ol, D as Tl } from "./toggle-button.CQl9HneO.js";
25
+ import { B as rn } from "./button.C-MAa6ut.js";
26
+ import { B as dn } from "./toggle.C8k7NQ7y.js";
27
+ import { B as Nl } from "./search-bar.CvAi2t3-.js";
28
+ import { B as Il } from "./directive.Cbdox5VL.js";
29
+ import { u as $l } from "./dropdown.agfzvJZE.js";
30
+ import { g as ft } from "./generate-uid.NJ8tVoha.js";
31
+ import { S as Dl } from "./search.PczW-onY.js";
32
+ import { B as tt } from "./checkbox.M6lKj2hQ.js";
33
+ import { B as kl } from "./info-icon.Bl0iKUfC.js";
34
+ import { B as Ut } from "./popover.types.COM6oQgq.js";
35
+ import { A as Ml } from "./dialog-page.VSJgHY3C.js";
36
+ import { H as zl, S as Ul } from "./show.CT4Augxb.js";
37
+ import { l as Ft } from "./events.CMzGybJJ.js";
38
+ import { b as un } from "./focus-trap.rjp24a37.js";
39
+ import { u as Fl } from "./use-expandable-content-height.GkjjbmPy.js";
40
+ import { E as Pl } from "./link.cwPmWlsk.js";
41
+ import { C as Bl } from "./copy.C4DAAiPw.js";
42
+ import { C as Wl } from "./chevron-down.DCQ6ZLaq.js";
43
+ import { C as Hl } from "./chevron-up.kfuLRpZb.js";
44
+ import "../assets/data-grid.css";
45
+ const Pt = (e) => {
46
+ if (!e)
47
+ return 0;
48
+ const a = window.getComputedStyle(e);
49
+ let i = e.offsetHeight;
50
+ const t = window.getComputedStyle(e, "::after");
51
+ if (t.content !== "none" && t.position === "absolute") {
52
+ const n = parseFloat(t.height), l = parseFloat(t.bottom);
53
+ !isNaN(n) && !isNaN(l) && l < 0 && l + n <= 0 && (i += n);
54
+ }
55
+ const r = parseFloat(a.top);
56
+ return !isNaN(r) && r < 0 && (i += r), i;
57
+ }, Bt = (e, a, i = A(!1), t = null) => {
58
+ const r = A(0);
59
+ let n = null, l = null;
60
+ const g = () => {
61
+ const f = a.value ? Pt(e.value) : 0, h = i.value && t ? Pt(t.value) : 0;
62
+ r.value = f + h;
63
+ };
64
+ return Ke(() => {
65
+ Ce(() => {
66
+ const f = ye(
67
+ e,
68
+ () => {
69
+ e != null && e.value && (Ce(() => f()), n = bt(e.value, g), l = new MutationObserver(g), l.observe(e.value, { attributes: !0, attributeFilter: ["class"] }));
70
+ },
71
+ { immediate: !0 }
72
+ );
73
+ ye(
74
+ [a, i],
75
+ () => {
76
+ g();
77
+ },
78
+ { immediate: !0 }
79
+ );
80
+ });
81
+ }), nn(() => {
82
+ n == null || n.disconnect(), l == null || l.disconnect();
83
+ }), r;
84
+ };
85
+ var gt = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(gt || {}), Ne = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e.FIT_CONTENT = "fit-content", e.ZEBRA_ROWS = "zebra-rows", e))(Ne || {}), ze = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(ze || {}), F = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))(F || {}), nt = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(nt || {}), ne = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.DESELECT_ALL = "deselect-all", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(ne || {});
86
+ const Gl = (e, a) => {
87
+ const i = A(null), t = A(!1), r = A(void 0), n = e.value.reduce((N, v) => (N[v.field] = null, N), {}), l = vt(n), g = mt(l);
88
+ let f = 0, h = "";
89
+ const R = b(
90
+ () => Object.fromEntries(e.value.map(({ field: N, width: v, minWidth: C }) => [N, { width: v, minWidth: C }]))
91
+ );
92
+ al(() => r.value = R.value);
93
+ let E = null, U = null;
94
+ const y = (N) => {
95
+ const v = N.clientX - f, C = h, s = r.value[C].width + v;
96
+ r.value[C].width = s > R.value[C].minWidth ? s : R.value[C].minWidth, a(ne.COLUMN_RESIZING, r.value), f = N.clientX;
97
+ }, c = () => {
98
+ t.value = !1, E == null || E(), U == null || U(), h && a(ne.COLUMN_RESIZE, {
99
+ field: h,
100
+ width: r.value[h].width
101
+ }), E = null, U = null, h = "", f = null;
102
+ }, T = (N, v, C) => {
103
+ if (C.preventDefault(), N) {
104
+ if (t.value = !0, C.buttons !== 1) {
105
+ c();
106
+ return;
107
+ }
108
+ h = v, f = C.clientX, E = Ft(window, "mousemove", y), U = Ft(window, "mouseup", c);
109
+ }
110
+ };
111
+ return ye(
112
+ () => t.value,
113
+ (N, v) => {
114
+ !N && v && (a(ne.COLUMN_HOVER, i.value), i.value = null);
115
+ }
116
+ ), {
117
+ resizeData: r,
118
+ allColumnRefs: g,
119
+ startResize: T,
120
+ isResizing: t,
121
+ columnHoverEventToEmitAfterResizing: i
122
+ };
123
+ }, Vl = 100, Wt = 50, be = "b-actions-column", xl = 32, Zl = 56, jl = 56, ql = 80, Kl = 36, Yl = 1, cn = 16, Xl = 20, Jl = (e, a, i) => {
124
+ const t = {}, r = [], n = (g) => {
125
+ const f = t[g];
126
+ f && f.frozen !== !0 && (t[g].frozen = !0, r.push(g));
127
+ };
128
+ function l() {
129
+ if (r.length === i.length)
130
+ return;
131
+ const g = { min: {} };
132
+ let f = e, h = a, R = 0;
133
+ r.forEach((E) => {
134
+ f -= t[E].computedWidth, h -= t[E].flex;
135
+ });
136
+ for (let E = 0, U = i.length; E < U; E += 1) {
137
+ const y = i[E];
138
+ if (t[y.field] && t[y.field].frozen === !0)
139
+ continue;
140
+ let T = f / h * y.flex;
141
+ T < y.minWidth && (R += y.minWidth - T, T = y.minWidth, g.min[y.field] = !0), t[y.field] = {
142
+ frozen: !1,
143
+ computedWidth: T,
144
+ flex: y.flex
145
+ };
146
+ }
147
+ R > 0 ? Object.keys(g.min).forEach((E) => {
148
+ n(E);
149
+ }) : i.forEach(({ field: E }) => {
150
+ n(E);
151
+ }), l();
152
+ }
153
+ return l(), t;
154
+ }, Ht = (e, a) => {
155
+ let i = Yl;
156
+ return a && (i += cn * 2), e != null && e.offsetWidth ? e.offsetWidth + i : 0;
157
+ }, Ql = (e) => {
158
+ var a, i, t, r, n;
159
+ return (a = e == null ? void 0 : e.hasNestedContent) != null && a.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (r = e == null ? void 0 : e.hasSelectableAcrossPages) != null && r.value ? ql : jl : Kl : (n = e == null ? void 0 : e.hasSelectableAcrossPages) != null && n.value ? Zl : xl;
160
+ }, eo = (e, a, i, t, r, n) => {
161
+ const l = A(e.value), g = A(a), f = A(i), h = A(t), R = A(r), E = A(!1), U = A(0);
162
+ ye(
163
+ () => e.value,
164
+ (w, _) => {
165
+ var x, fe;
166
+ const M = (w == null ? void 0 : w.map(({ field: oe }) => oe).toString()) === (_ == null ? void 0 : _.map(({ field: oe }) => oe).toString());
167
+ if (!((x = n == null ? void 0 : n.allowColumnDragAndDrop) != null && x.value) || !M) {
168
+ l.value = e.value;
169
+ return;
170
+ }
171
+ l.value = ((fe = l.value) == null ? void 0 : fe.length) === 0 ? e.value : e.value.sort((oe, we) => {
172
+ const me = l.value.findIndex((ge) => ge.field === oe.field), he = l.value.findIndex((ge) => ge.field === we.field);
173
+ return me === -1 ? 1 : he === -1 ? -1 : me - he;
174
+ });
175
+ }
176
+ );
177
+ const y = A();
178
+ let c = null;
179
+ const T = b(() => {
180
+ var me, he, ge;
181
+ const w = [];
182
+ let _ = 0, M = 0;
183
+ const x = {};
184
+ let fe = l.value.filter((Q) => Q.visible !== !1);
185
+ const oe = l.value.filter((Q) => Q.visible === !1);
186
+ if ((me = n == null ? void 0 : n.hasSelectableColumn) != null && me.value || (he = n == null ? void 0 : n.hasNestedContent) != null && he.value || (ge = n == null ? void 0 : n.hasNestedRows) != null && ge.value) {
187
+ const Q = Ql(n);
188
+ fe = [
189
+ {
190
+ field: be,
191
+ label: "",
192
+ minWidth: Q,
193
+ width: Q,
194
+ frozen: !0,
195
+ padding: { left: !1, right: !1 }
196
+ },
197
+ ...fe
198
+ ];
199
+ }
200
+ fe.forEach((Q) => {
201
+ const m = { ...Q };
202
+ let Z;
203
+ m.flex && m.flex > 0 ? (_ += m.flex, Z = 0, w.push(m)) : Z = Math.max(
204
+ (m == null ? void 0 : m.width) ?? Vl,
205
+ (m == null ? void 0 : m.minWidth) ?? Wt
206
+ ), M += Z, m.width = Z, m.minWidth = (m == null ? void 0 : m.minWidth) ?? Wt, x[m.field] = m;
207
+ }), M += U.value;
208
+ const we = Math.max(y.value - M, 0);
209
+ if (_ > 0 && y.value > 0) {
210
+ const Q = Jl(we, _, w);
211
+ Object.keys(Q).forEach((m) => {
212
+ x[m].width = Q[m].computedWidth;
213
+ });
214
+ }
215
+ return oe.forEach((Q) => {
216
+ const m = { ...Q };
217
+ x[m.field] = m;
218
+ }), Object.values(x);
219
+ }), N = A(void 0), v = (w) => {
220
+ N.value = { ...N.value, ...w };
221
+ }, C = async () => {
222
+ l.value.some((w) => w == null ? void 0 : w.autoWidth) && (E.value = !0, await Ce(), await Ce(), l == null || l.value.filter((w) => w == null ? void 0 : w.autoWidth).forEach(({ field: w, minWidth: _ }) => {
223
+ var oe, we, me, he;
224
+ const M = Ht(
225
+ (oe = h.value) == null ? void 0 : oe[w],
226
+ (we = n == null ? void 0 : n.hasColumnPanel) == null ? void 0 : we.value
227
+ ), x = (he = (me = R.value) == null ? void 0 : me[w]) == null ? void 0 : he.reduce(
228
+ (ge, Q) => Math.max(ge, Ht(Q)),
229
+ 0
230
+ ), fe = Math.max(M, x ?? 0);
231
+ (_ === void 0 || fe > _) && v({
232
+ [w]: {
233
+ width: fe
234
+ }
235
+ });
236
+ }), E.value = !1);
237
+ };
238
+ ye([() => l.value, () => g.value], async () => {
239
+ l.value.some((w) => w == null ? void 0 : w.autoWidth) && await C();
240
+ });
241
+ const s = b(
242
+ () => T.value.map((w) => {
243
+ var _, M;
244
+ return {
245
+ ...w,
246
+ // Override column width with resized ones
247
+ width: ((M = (_ = N.value) == null ? void 0 : _[w.field]) == null ? void 0 : M.width) ?? w.width
248
+ };
249
+ })
250
+ ), p = b(
251
+ () => {
252
+ var w;
253
+ return ((w = s.value) == null ? void 0 : w.filter(({ visible: _ }) => _ !== !1).reduce((_, M) => M.width + _, 0)) + U.value;
254
+ }
255
+ ), $ = b(
256
+ () => y.value <= p.value
257
+ ), k = b(() => ({
258
+ width: y.value > p.value ? "100%" : "fit-content"
259
+ }));
260
+ return Ke(() => {
261
+ var _;
262
+ const w = n != null && n.isDataGridTemplate ? Xl : 0;
263
+ Ce(() => {
264
+ f.value && (y.value = f.value.getBoundingClientRect().width - w);
265
+ const M = ye(
266
+ f,
267
+ () => {
268
+ f.value && (Ce(() => M()), c = bt(f.value, ({ width: x }) => {
269
+ y.value = x - w;
270
+ }));
271
+ },
272
+ { immediate: !0 }
273
+ );
274
+ }), (_ = document == null ? void 0 : document.fonts) != null && _.ready ? document.fonts.ready.then(() => {
275
+ C();
276
+ }) : C();
277
+ }), nn(() => {
278
+ c == null || c.disconnect();
279
+ }), il(() => {
280
+ var w;
281
+ R.value && ((w = Object.keys(R.value)) == null ? void 0 : w.length) > 0 && Object.keys(R.value).forEach((M) => {
282
+ R.value[M] = [];
283
+ });
284
+ }), {
285
+ columnDefs: s,
286
+ gridRowWidthStyle: k,
287
+ onColumnWidthOverride: v,
288
+ isMeasuringColumnWidths: E,
289
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: $,
290
+ columns: l,
291
+ totalWidthOfAllColumns: p,
292
+ rowActionsMaxWidth: U
293
+ };
294
+ }, to = (e, a, i, t, r, n, l) => {
295
+ const g = A(e.value ?? []), f = vt({
296
+ allItemsSelected: !1,
297
+ isIndeterminate: !1
298
+ }), h = b(
299
+ () => i.value.flatMap((s) => {
300
+ var p;
301
+ return [s, ((p = s == null ? void 0 : s.children) == null ? void 0 : p.length) > 0 ? s == null ? void 0 : s.children : []];
302
+ }).flat()
303
+ ), R = b(
304
+ () => {
305
+ var s, p;
306
+ return ((s = i.value) == null ? void 0 : s.length) > 0 && ((p = h.value) == null ? void 0 : p.filter(($) => !r($)).every(($) => g.value.includes(t($))));
307
+ }
308
+ ), E = b(() => {
309
+ var s;
310
+ return !(n != null && n.value) || ((s = l == null ? void 0 : l.value) == null ? void 0 : s.totalCount) === void 0 ? !1 : g.value.length === l.value.totalCount;
311
+ }), U = () => {
312
+ a(F.SELECT, g.value), a(F.UPDATE_SELECTION, g.value);
313
+ }, y = (s) => {
314
+ var p, $, k;
315
+ if (g.value = s, R.value) {
316
+ f.allItemsSelected = !0;
317
+ const w = ((p = i.value) == null ? void 0 : p.length) > 0 && i.value.every((_) => g.value.includes(t(_)));
318
+ f.isIndeterminate = (n == null ? void 0 : n.value) && !E.value || !w;
319
+ } else
320
+ f.allItemsSelected = !1, f.isIndeterminate = (($ = g.value) == null ? void 0 : $.length) > 0 && ((k = i.value) == null ? void 0 : k.length) > 0 && i.value.some(
321
+ (w) => {
322
+ var _;
323
+ return g.value.includes(t(w)) || ((_ = w == null ? void 0 : w.children) == null ? void 0 : _.some((M) => g.value.includes(t(M))));
324
+ }
325
+ );
326
+ }, c = (s) => {
327
+ Ce(() => {
328
+ var p, $, k;
329
+ if (f.allItemsSelected = s, s) {
330
+ g.value = ($ = (p = h.value) == null ? void 0 : p.filter(
331
+ (_) => !r(_) && ((_ == null ? void 0 : _.children) === void 0 || _.children.every((M) => !r(M)))
332
+ )) == null ? void 0 : $.map((_) => t(_));
333
+ const w = ((k = i.value) == null ? void 0 : k.length) > 0 && i.value.every((_) => g.value.includes(t(_)));
334
+ f.isIndeterminate = (n == null ? void 0 : n.value) && !E.value || g.value.length > 0 && !w;
335
+ } else
336
+ g.value = [], f.isIndeterminate = !1;
337
+ U();
338
+ });
339
+ }, T = () => {
340
+ Ce(() => {
341
+ y([]), U();
342
+ });
343
+ }, N = (s, p) => {
344
+ Ce(() => {
345
+ var $;
346
+ y((($ = p == null ? void 0 : p.children) == null ? void 0 : $.length) > 0 ? v(s, p) : s), U();
347
+ });
348
+ }, v = (s, p) => {
349
+ var w;
350
+ const $ = t(p), k = (w = p.children) == null ? void 0 : w.filter((_) => !r(_)).map((_) => t(_));
351
+ if (s.includes($)) {
352
+ const _ = s;
353
+ return k.forEach((M) => {
354
+ _.includes(M) || _.push(M);
355
+ }), _;
356
+ }
357
+ return s.filter((_) => !k.includes(_));
358
+ }, C = (s, p, $) => {
359
+ Ce(() => {
360
+ var w, _;
361
+ const k = t(p);
362
+ s.includes(t($)) ? y(
363
+ !s.includes(k) && ((w = p == null ? void 0 : p.children) != null && w.every((M) => s.includes(t(M)))) ? [...s, k] : s
364
+ ) : y(
365
+ s.includes(k) && !((_ = p == null ? void 0 : p.children) != null && _.every((M) => s.includes(t(M)))) ? s.filter((M) => M !== k) : s
366
+ ), U();
367
+ });
368
+ };
369
+ return ye(
370
+ () => e.value,
371
+ () => {
372
+ y(e.value ?? []);
373
+ },
374
+ { immediate: !0 }
375
+ ), ye(
376
+ () => i.value,
377
+ () => {
378
+ const s = i.value.filter((p) => g.value.includes(t(p))).flatMap(
379
+ (p) => {
380
+ var $;
381
+ return (($ = p == null ? void 0 : p.children) == null ? void 0 : $.length) > 0 ? p.children.map((k) => t(k)).filter((k) => !g.value.includes(k)) : [];
382
+ }
383
+ );
384
+ (s == null ? void 0 : s.length) > 0 ? (y([...g.value, ...s]), U()) : y(g.value);
385
+ }
386
+ ), {
387
+ onAllRowSelect: c,
388
+ onRowSelect: N,
389
+ onNestedRowSelect: C,
390
+ onDeselectAll: T,
391
+ allItemsSelectedState: f,
392
+ selectedItems: g,
393
+ isEveryItemSelected: R,
394
+ isEveryItemAcrossPagesSelected: E
395
+ };
396
+ }, no = (e, a, i) => ({ isSorting: (l) => e.value.some((g) => g.field === l), getSortingDirection: (l) => {
397
+ var g;
398
+ return (g = e.value.find((f) => f.field === l)) == null ? void 0 : g.direction;
399
+ }, sortByColumnField: (l) => {
400
+ var h;
401
+ if (!a.value.some((R) => R.field === l && R.sortable))
402
+ return;
403
+ const f = [{
404
+ field: l,
405
+ direction: ((h = e.value.find((R) => R.field === l)) == null ? void 0 : h.direction) === ze.ASCENDING ? ze.DESCENDING : ze.ASCENDING
406
+ }];
407
+ i("sort", f);
408
+ } });
409
+ var _e = ((e) => (e[e.ARROW_DOWN = Ae.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Ae.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Ae.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Ae.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Ae.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Ae.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Ae.END] = "END", e[e.HOME = Ae.HOME] = "HOME", e))(_e || {});
410
+ const qe = "b-row-actions-column", lo = (e, a, i, t, r, n) => {
411
+ const l = b(() => n.value || t.value ? !0 : i.value.some((C) => C.infoIconTooltip || C.sortable)), g = b(() => {
412
+ let C = i.value.filter(({ visible: s }) => s !== !1);
413
+ return r.value && (C = [
414
+ ...C,
415
+ { field: qe, label: "" }
416
+ ]), C;
417
+ }), f = b(() => g.value.length), h = b(() => {
418
+ if (!e.value)
419
+ return [];
420
+ const C = Object.keys(e.value)[0];
421
+ if (!C || !e.value[C])
422
+ return [];
423
+ const s = [];
424
+ if (l.value)
425
+ for (const $ of g.value) {
426
+ const k = a.value[$.field];
427
+ s.push(k);
428
+ }
429
+ const p = e.value[C].length;
430
+ for (let $ = 0; $ < p; $++)
431
+ for (const k of g.value) {
432
+ const w = e.value[k.field];
433
+ w != null && w[$] && s.push(w[$]);
434
+ }
435
+ return s;
436
+ }), R = (C) => Math.floor(C / f.value), E = (C, s, p) => {
437
+ const $ = h.value.length - 1, k = f.value - 1, w = R(C), _ = C - f.value * w;
438
+ return {
439
+ [_e.PAGE_UP]: _ + (l.value ? f.value : 0),
440
+ [_e.PAGE_DOWN]: $ - k + _,
441
+ [_e.END]: p ? $ : f.value * w + k,
442
+ [_e.HOME]: p ? l.value ? f.value : 0 : f.value * w
443
+ }[s];
444
+ }, U = (C, s) => {
445
+ const p = R(C), k = {
446
+ [_e.ARROW_DOWN]: f.value,
447
+ [_e.ARROW_UP]: p === 0 && !l.value ? 0 : -f.value,
448
+ [_e.ARROW_LEFT]: -1,
449
+ [_e.ARROW_RIGHT]: 1
450
+ }[s], w = C + k;
451
+ return w < 0 || w >= h.value.length ? C : w;
452
+ }, y = (C) => [
453
+ _e.PAGE_UP,
454
+ _e.PAGE_DOWN,
455
+ _e.END,
456
+ _e.HOME
457
+ ].includes(C), c = (C, s, p) => {
458
+ const $ = h.value.indexOf(C);
459
+ return y(s) ? E($, s, p) : U($, s);
460
+ }, T = (C, s, p) => {
461
+ if (!h.value.includes(C))
462
+ return;
463
+ const $ = c(C, s, p);
464
+ h.value[$].focus();
465
+ }, N = (C) => C in _e;
466
+ return {
467
+ isNavigationKeyCode: N,
468
+ focusOnNextGridcell: T,
469
+ navigationInput: (C) => {
470
+ const { ctrlKey: s, key: p, target: $ } = C, k = p;
471
+ let w = $;
472
+ w.getAttribute("role") !== "menuitem" && (h.value.includes(w) || (w = $.closest('[role="gridcell"], [role="columnheader"]')), h.value.includes(w) && N(k) && T(w, k, s));
473
+ }
474
+ };
475
+ }, oo = 90, so = (e, a, i, t, r) => {
476
+ const n = A(e), l = A(a), g = A(i), f = A(t), h = b(() => n.value !== "none"), R = b(() => n.value === "automatic"), E = () => {
477
+ r(F.UPDATE_SHOW_MORE);
478
+ };
479
+ return ye(
480
+ () => l.value,
481
+ () => {
482
+ R.value && g.value.offsetHeight / l.value * 100 > oo && !f.value && E();
483
+ }
484
+ ), { isLazyLoad: h, isInfiniteScroll: R, verticalScrollPosition: l, emitLazyLoadEvent: E };
485
+ }, ao = (e, a, i) => {
486
+ const t = A(e), r = A(a), n = vt({
487
+ dragging: null,
488
+ dragToLeft: null,
489
+ target: null
490
+ }), l = (y, c = 0) => {
491
+ const T = t.value.findIndex((C) => C.field === y.field), N = T + c;
492
+ if (N < 0 || N > t.value.length - 1)
493
+ return;
494
+ const v = [...t.value];
495
+ v.splice(N, 0, v.splice(T, 1)[0]), i(F.COLUMNS, v), i(F.UPDATE_COLUMNS, v);
496
+ }, g = (y, c) => {
497
+ n.dragging = y, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
498
+ }, f = (y, c) => {
499
+ n.target = y;
500
+ const T = c.currentTarget.getBoundingClientRect(), N = T.left + T.width / 2, v = c.clientX ?? 0;
501
+ n.dragToLeft = v <= N;
502
+ }, h = (y) => {
503
+ var c, T;
504
+ if (((c = n.dragging) == null ? void 0 : c.field) !== y.field) {
505
+ const N = t.value.findIndex((k) => {
506
+ var w;
507
+ return k.field === ((w = n.dragging) == null ? void 0 : w.field);
508
+ }), v = t.value.findIndex((k) => k.field === y.field), C = n.dragToLeft ? v : v + 1, s = C > N ? C - 1 : C;
509
+ let p = [...t.value];
510
+ p.splice(
511
+ s === -1 ? 0 : s,
512
+ 0,
513
+ p.splice(N, 1)[0]
514
+ );
515
+ const $ = t.value.findIndex((k) => !(k != null && k.frozen));
516
+ ((T = n.dragging) == null ? void 0 : T.frozen) !== y.frozen && C !== $ && (p = p.map(
517
+ (k) => {
518
+ var w;
519
+ return ((w = n.dragging) == null ? void 0 : w.field) === k.field ? { ...k, frozen: !!(y != null && y.frozen) } : k;
520
+ }
521
+ )), i(F.COLUMNS, p), i(F.UPDATE_COLUMNS, p);
522
+ }
523
+ n.dragging = null, n.target = null;
524
+ }, R = () => {
525
+ n.dragging = null, n.dragToLeft = null, n.target = null;
526
+ }, E = b(() => r.value ? {
527
+ [ne.COLUMN_DRAG_START]: (y, c) => g(y, c),
528
+ [ne.COLUMN_DRAG_ENTER]: (y, c) => f(y, c),
529
+ [ne.COLUMN_DROP]: (y) => h(y),
530
+ [ne.COLUMN_DRAG_END]: () => R()
531
+ } : {}), U = b(() => (y) => r.value ? {
532
+ dragenter: (c) => {
533
+ c.preventDefault(), f(y, c);
534
+ },
535
+ drop: () => {
536
+ h(y);
537
+ },
538
+ dragover: (c) => {
539
+ c.preventDefault();
540
+ }
541
+ } : {});
542
+ return {
543
+ // Values
544
+ draggingColumns: n,
545
+ // Methods
546
+ draggingEventsForColumns: E,
547
+ draggingEventsForRowCell: U,
548
+ onMoveColumnByOffset: l
549
+ };
550
+ }, io = (e, a, i) => {
551
+ const t = A(e), r = A(a.value), n = b(
552
+ () => [...t.value].sort((c, T) => c.frozen === T.frozen ? 0 : c.frozen ? -1 : 1)
553
+ ), l = b(
554
+ () => n.value.filter((c) => c.frozen && c.visible !== !1)
555
+ ), g = b(
556
+ () => n.value.filter((c) => !c.frozen && c.visible !== !1)
557
+ ), f = b(
558
+ () => [
559
+ { columnSet: l.value, id: "frozen", isFrozenColumns: !0 },
560
+ { columnSet: g.value, id: "unfrozen" }
561
+ ].filter(({ columnSet: c }) => c.length)
562
+ ), h = b(
563
+ () => t.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== be).length === 1
564
+ ), R = (c) => i(F.UPDATE_CONDENSED, c), E = (c) => {
565
+ r.value = c, i(F.UPDATE_ZEBRA_ROWS, c);
566
+ }, U = (c) => {
567
+ i(F.COLUMNS, c), i(F.UPDATE_COLUMNS, c);
568
+ }, y = (c) => {
569
+ const T = n.value.map(
570
+ (N) => (N == null ? void 0 : N.field) === c.field ? c : N
571
+ );
572
+ U(T);
573
+ };
574
+ return ye(a, (c) => {
575
+ r.value = c;
576
+ }), {
577
+ // Values
578
+ columnSets: f,
579
+ isOnlyOneVisibleColumn: h,
580
+ internalZebraRows: r,
581
+ sortedColumns: n,
582
+ // Methods
583
+ onConfigSettingsColumnsUpdate: U,
584
+ onConfigSettingsColumnUpdate: y,
585
+ onConfigSettingsCondensedUpdate: R,
586
+ onConfigSettingsZebraRowsUpdate: E
587
+ };
588
+ }, ro = (e, a, i, t, r, n, l) => {
589
+ const g = A(0), f = A(!1), h = A(!1);
590
+ ye([() => g.value, () => n.value], ([c]) => {
591
+ e.value.scrollLeft = c, a.value.scrollLeft = c, f.value = !!c, h.value = a.value.scrollWidth - a.value.offsetWidth > c;
592
+ }), Ke(async () => {
593
+ var c, T;
594
+ await Ce(), await Ce(), ((c = a.value) == null ? void 0 : c.offsetWidth) < ((T = a.value) == null ? void 0 : T.scrollWidth) && (h.value = !0);
595
+ });
596
+ const R = (c) => {
597
+ if (g.value = c.target.scrollLeft, i.value = e.value.scrollHeight - c.target.scrollTop, t != null && t.value) {
598
+ const T = c.target.scrollLeft;
599
+ t.value.scrollLeft !== T && (t.value.scrollLeft = T);
600
+ }
601
+ }, E = (c) => {
602
+ c.key === "Tab" || c.key !== "ArrowRight" && c.key !== "ArrowLeft" || (c.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
603
+ e.value && (e.value.style.overflowX = "auto");
604
+ }));
605
+ }, U = (c) => {
606
+ const T = c.target.scrollLeft;
607
+ e.value.scrollLeft !== T && (e.value.scrollLeft = T);
608
+ }, y = b(() => {
609
+ var c, T, N, v;
610
+ return (c = l == null ? void 0 : l.pagination) != null && c.value && ((T = l == null ? void 0 : l.stickyPagination) != null && T.value || l != null && l.isDataGridTemplate) && !((N = l == null ? void 0 : l.isLazyLoad) != null && N.value) ? { bottom: `${(((v = r.value) == null ? void 0 : v.clientHeight) ?? 0) + 1}px` } : {};
611
+ });
612
+ return {
613
+ // Values
614
+ scrollLeftPosition: g,
615
+ hasLeftOverflow: f,
616
+ hasRightOverflow: h,
617
+ horizontalScrollbarConditionalStyles: y,
618
+ // Methods
619
+ updateScrollPosition: R,
620
+ updateScrollPositionOnFrozenColumnsNavigation: E,
621
+ syncVirtualScrollerWithBody: U
622
+ };
623
+ }, uo = (e, a, i, t) => {
624
+ const r = A(null), n = b(() => {
625
+ var T, N, v, C;
626
+ if (!r.value || r.value.field === be)
627
+ return {
628
+ hoveredOverColumnField: "",
629
+ isSeparatorOffset: !1,
630
+ noBorderLeft: !1,
631
+ noBorderRight: !1
632
+ };
633
+ const l = (N = (T = e.value.find((s) => s.isFrozenColumns)) == null ? void 0 : T.columnSet) == null ? void 0 : N.filter((s) => s.field !== be), g = e.value.find((s) => !(s != null && s.isFrozenColumns)), f = r.value.frozen && (l == null ? void 0 : l[0].field) === r.value.field, h = !r.value.frozen && ((v = g == null ? void 0 : g.columnSet) == null ? void 0 : v[0].field) === r.value.field, R = (a.value || i.value) && f, E = (a.value || i.value) && !l && h, U = l && h, y = (l == null ? void 0 : l.length) > 0 && r.value.frozen && (l == null ? void 0 : l[l.length - 1].field) === r.value.field, c = i.value && t.value && !r.value.frozen && ((C = g == null ? void 0 : g.columnSet) == null ? void 0 : C[g.columnSet.length - 1].field) === r.value.field;
634
+ return {
635
+ hoveredOverColumnField: r.value.field,
636
+ isSeparatorOffset: c,
637
+ noBorderLeft: !!R || !!E || !!U,
638
+ noBorderRight: !!y || !!c
639
+ };
640
+ });
641
+ return {
642
+ hoveredOverColumn: r,
643
+ hoveredOverColumnState: n
644
+ };
645
+ }, Et = (e) => {
646
+ const i = un(e).filter((t) => t.node !== e);
647
+ return (i == null ? void 0 : i.length) > 0 ? (i[0].node.focus(), !0) : !1;
648
+ }, He = (e) => {
649
+ const a = un(e), i = a == null ? void 0 : a.filter((t) => t.node !== e);
650
+ if ((i == null ? void 0 : i.length) > 0)
651
+ return i.forEach((t) => t.node.setAttribute("tabindex", "-1")), i;
652
+ }, fn = (e) => {
653
+ (e == null ? void 0 : e.length) > 0 && e.forEach((a) => a == null ? void 0 : a.node.setAttribute("tabindex", "0"));
654
+ }, Gt = () => {
655
+ const e = window.getSelection().getRangeAt(0).cloneContents(), a = e.querySelectorAll('[role="row"]');
656
+ let i = "<table>", t = "";
657
+ const r = (n) => {
658
+ n.forEach((l) => {
659
+ const g = l.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", f = l.textContent.trim();
660
+ f && (i += `<${g}>${f}</${g}>`, t += `${f} `);
661
+ });
662
+ };
663
+ if (!a.length) {
664
+ const n = e.querySelectorAll(
665
+ '[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
666
+ );
667
+ if (n.length)
668
+ i += "<tr>", r(n), i += "</tr>";
669
+ else {
670
+ navigator.clipboard.writeText(e.textContent);
671
+ return;
672
+ }
673
+ }
674
+ a.forEach((n) => {
675
+ const l = n.querySelectorAll(
676
+ '[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
677
+ );
678
+ if (i += "<tr>", l.length)
679
+ r(l);
680
+ else {
681
+ const g = n.textContent.trim();
682
+ i += `<td>${g}</td>`, t += `${g} `;
683
+ }
684
+ i += "</tr>", t += `
685
+ `;
686
+ }), i += "</table>", navigator.clipboard.write([
687
+ new ClipboardItem({
688
+ "text/html": new Blob([i], { type: "text/html" }),
689
+ "text/plain": new Blob([t || e.textContent.trim()], { type: "text/plain" })
690
+ })
691
+ ]);
692
+ };
693
+ let Vt = 0;
694
+ const co = {
695
+ beforeCreate() {
696
+ this.uuid = Vt.toString(), Vt += 1;
697
+ }
698
+ }, fo = { key: 0 }, go = ["clip-path"], vo = ["id"];
699
+ function mo(e, a, i, t, r, n) {
700
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
701
+ class: "ui-assets-icons-16",
702
+ xmlns: "http://www.w3.org/2000/svg",
703
+ width: "16",
704
+ height: "16",
705
+ fill: "none"
706
+ }), [
707
+ e.$attrs["svg-title"] ? (u(), S("title", fo, X(e.$attrs["svg-title"]), 1)) : B("", !0),
708
+ O("g", {
709
+ fill: "#001222",
710
+ "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
711
+ }, a[0] || (a[0] = [
712
+ O("path", { 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" }, null, -1),
713
+ O("path", { 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" }, null, -1)
714
+ ]), 8, go),
715
+ O("defs", null, [
716
+ O("clipPath", {
717
+ id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid
718
+ }, a[1] || (a[1] = [
719
+ O("rect", {
720
+ width: "16",
721
+ height: "16",
722
+ fill: "#fff"
723
+ }, null, -1)
724
+ ]), 8, vo)
725
+ ])
726
+ ], 16);
727
+ }
728
+ const ho = /* @__PURE__ */ ie(co, [["render", mo]]);
729
+ let xt = 0;
730
+ const Co = {
731
+ beforeCreate() {
732
+ this.uuid = xt.toString(), xt += 1;
733
+ }
734
+ }, wo = { key: 0 };
735
+ function _o(e, a, i, t, r, n) {
736
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
737
+ class: "ui-assets-icons-16",
738
+ xmlns: "http://www.w3.org/2000/svg",
739
+ width: "16",
740
+ height: "16",
741
+ fill: "none"
742
+ }), [
743
+ e.$attrs["svg-title"] ? (u(), S("title", wo, X(e.$attrs["svg-title"]), 1)) : B("", !0),
744
+ a[0] || (a[0] = O("path", {
745
+ fill: "#001222",
746
+ d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z"
747
+ }, null, -1))
748
+ ], 16);
749
+ }
750
+ const bo = /* @__PURE__ */ ie(Co, [["render", _o]]);
751
+ let Zt = 0;
752
+ const yo = {
753
+ beforeCreate() {
754
+ this.uuid = Zt.toString(), Zt += 1;
755
+ }
756
+ }, Eo = { key: 0 }, po = ["clip-path"], Lo = ["id"];
757
+ function So(e, a, i, t, r, n) {
758
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
759
+ class: "ui-assets-icons-16",
760
+ xmlns: "http://www.w3.org/2000/svg",
761
+ width: "16",
762
+ height: "16",
763
+ fill: "none"
764
+ }), [
765
+ e.$attrs["svg-title"] ? (u(), S("title", Eo, X(e.$attrs["svg-title"]), 1)) : B("", !0),
766
+ O("g", {
767
+ "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
768
+ }, a[0] || (a[0] = [
769
+ O("path", {
770
+ fill: "#001222",
771
+ 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"
772
+ }, null, -1)
773
+ ]), 8, po),
774
+ O("defs", null, [
775
+ O("clipPath", {
776
+ id: "uia-ui-assets/icons-16-freeze__a" + e.uuid
777
+ }, a[1] || (a[1] = [
778
+ O("rect", {
779
+ width: "16",
780
+ height: "16",
781
+ fill: "#fff",
782
+ transform: "matrix(1 0 0 -1 0 16)"
783
+ }, null, -1)
784
+ ]), 8, Lo)
785
+ ])
786
+ ], 16);
787
+ }
788
+ const gn = /* @__PURE__ */ ie(yo, [["render", So]]);
789
+ let jt = 0;
790
+ const Ro = {
791
+ beforeCreate() {
792
+ this.uuid = jt.toString(), jt += 1;
793
+ }
794
+ }, Ao = { key: 0 }, Oo = ["clip-path"], To = ["id"];
795
+ function No(e, a, i, t, r, n) {
796
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
797
+ class: "ui-assets-icons-16",
798
+ xmlns: "http://www.w3.org/2000/svg",
799
+ width: "16",
800
+ height: "16",
801
+ fill: "none"
802
+ }), [
803
+ e.$attrs["svg-title"] ? (u(), S("title", Ao, X(e.$attrs["svg-title"]), 1)) : B("", !0),
804
+ O("g", {
805
+ fill: "#001222",
806
+ "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
807
+ }, a[0] || (a[0] = [
808
+ O("path", { 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" }, null, -1),
809
+ O("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
810
+ O("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
811
+ O("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
812
+ ]), 8, Oo),
813
+ O("defs", null, [
814
+ O("clipPath", {
815
+ id: "uia-ui-assets/icons-16-sort_ascending__a" + e.uuid
816
+ }, a[1] || (a[1] = [
817
+ O("rect", {
818
+ width: "16",
819
+ height: "16",
820
+ fill: "#fff"
821
+ }, null, -1)
822
+ ]), 8, To)
823
+ ])
824
+ ], 16);
825
+ }
826
+ const Io = /* @__PURE__ */ ie(Ro, [["render", No]]);
827
+ let qt = 0;
828
+ const $o = {
829
+ beforeCreate() {
830
+ this.uuid = qt.toString(), qt += 1;
831
+ }
832
+ }, Do = { key: 0 }, ko = ["clip-path"], Mo = ["id"];
833
+ function zo(e, a, i, t, r, n) {
834
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
835
+ class: "ui-assets-icons-16",
836
+ xmlns: "http://www.w3.org/2000/svg",
837
+ width: "16",
838
+ height: "16",
839
+ fill: "none"
840
+ }), [
841
+ e.$attrs["svg-title"] ? (u(), S("title", Do, X(e.$attrs["svg-title"]), 1)) : B("", !0),
842
+ O("g", {
843
+ fill: "#001222",
844
+ "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
845
+ }, a[0] || (a[0] = [
846
+ O("path", { 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" }, null, -1),
847
+ O("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
848
+ O("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
849
+ O("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
850
+ ]), 8, ko),
851
+ O("defs", null, [
852
+ O("clipPath", {
853
+ id: "uia-ui-assets/icons-16-sort_descending__a" + e.uuid
854
+ }, a[1] || (a[1] = [
855
+ O("rect", {
856
+ width: "16",
857
+ height: "16",
858
+ fill: "#fff"
859
+ }, null, -1)
860
+ ]), 8, Mo)
861
+ ])
862
+ ], 16);
863
+ }
864
+ const Uo = /* @__PURE__ */ ie($o, [["render", zo]]);
865
+ let Kt = 0;
866
+ const Fo = {
867
+ beforeCreate() {
868
+ this.uuid = Kt.toString(), Kt += 1;
869
+ }
870
+ }, Po = { key: 0 };
871
+ function Bo(e, a, i, t, r, n) {
872
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
873
+ class: "ui-assets-icons-16",
874
+ xmlns: "http://www.w3.org/2000/svg",
875
+ width: "16",
876
+ height: "16",
877
+ fill: "none"
878
+ }), [
879
+ e.$attrs["svg-title"] ? (u(), S("title", Po, X(e.$attrs["svg-title"]), 1)) : B("", !0),
880
+ a[0] || (a[0] = O("path", {
881
+ fill: "#001222",
882
+ d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
883
+ }, null, -1))
884
+ ], 16);
885
+ }
886
+ const Wo = /* @__PURE__ */ ie(Fo, [["render", Bo]]), vn = {
887
+ "en-US": {
888
+ columnActions: "{name} column actions",
889
+ deselectAll: "Deselect all",
890
+ freezeColumn: "Freeze column",
891
+ hideColumn: "Hide column",
892
+ moveColumnLeft: "Move column left",
893
+ moveColumnRight: "Move column right",
894
+ rowActionsColumn: "Row actions column",
895
+ selectAll: "Select all",
896
+ selectAllMenu: "Select all menu",
897
+ selectPage: "Select this page",
898
+ selectionMenu: "Selection menu",
899
+ showColumn: "Show column",
900
+ sortColumn: "Sort {name} column",
901
+ sortColumnInAscendingOrder: "Sort {name} column in ascending order",
902
+ sortColumnInDescendingOrder: "Sort {name} column in descending order",
903
+ unfreezeColumn: "Unfreeze column"
904
+ },
905
+ "ja-JP": {
906
+ freezeColumn: "列を固定",
907
+ hideColumn: "列を非表示",
908
+ moveColumnLeft: "列を左へ移動",
909
+ moveColumnRight: "列を右へ移動",
910
+ selectAll: "すべて選択",
911
+ unfreezeColumn: "列の固定を解除"
912
+ },
913
+ "pt-BR": {
914
+ freezeColumn: "Congelar coluna",
915
+ hideColumn: "Ocultar coluna",
916
+ moveColumnLeft: "Mover coluna para a esquerda",
917
+ moveColumnRight: "Mover coluna para a direita",
918
+ selectAll: "Selecionar tudo",
919
+ unfreezeColumn: "Descongelar coluna"
920
+ }
921
+ }, Ho = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Go = { class: "b-data-grid-columns__select-column-menu-button" }, Vo = ["aria-label"], xo = { class: "b-data-grid-columns__label" }, Zo = {
922
+ key: 0,
923
+ class: "b-data-grid-columns__column-info-icon"
924
+ }, jo = {
925
+ key: 1,
926
+ class: "b-data-grid-columns__column-sort"
927
+ }, qo = ["data-testid", "onMousedown"], Ko = {
928
+ key: 0,
929
+ class: "b-data-grid-columns__column-separator"
930
+ }, Yo = ["aria-label", "aria-colindex"], Xo = {
931
+ i18n: { messages: vn },
932
+ name: "data-grid-columns"
933
+ }, Jo = /* @__PURE__ */ $e({
934
+ ...Xo,
935
+ props: {
936
+ /**
937
+ * Column definitions using 'key' to relate to data object.
938
+ */
939
+ columns: {
940
+ type: Array,
941
+ required: !0
942
+ },
943
+ /**
944
+ * Columns being dragged, contains dragging column and a target column
945
+ */
946
+ draggingColumns: {
947
+ type: Object,
948
+ default: void 0
949
+ },
950
+ /**
951
+ * Toggle the columns draggable events.
952
+ */
953
+ hasDraggableColumns: {
954
+ type: Boolean,
955
+ default: !0
956
+ },
957
+ /**
958
+ * If resize is enabled
959
+ */
960
+ hasResizableColumns: {
961
+ type: Boolean,
962
+ default: !0
963
+ },
964
+ /**
965
+ * Signifies if the column panel is enabled.
966
+ */
967
+ hasColumnPanel: {
968
+ type: Boolean,
969
+ default: !1
970
+ },
971
+ /**
972
+ * If set to true, aligns the first column panel to the right of its button.
973
+ */
974
+ hasFirstColumnPanelRightAligned: {
975
+ type: Boolean,
976
+ default: !1
977
+ },
978
+ /**
979
+ * If the data grid has overflow on the left side
980
+ */
981
+ hasLeftOverflow: {
982
+ type: Boolean,
983
+ default: !1
984
+ },
985
+ /**
986
+ * The column hovered over state and whether the hovered over column should show a border right or left.
987
+ */
988
+ hoveredOverColumnState: {
989
+ type: Object,
990
+ required: !0
991
+ },
992
+ /**
993
+ * Toggled to true when the DataGrid has auto width columns and is measuring the
994
+ */
995
+ isMeasuringColumnWidths: {
996
+ type: Boolean,
997
+ default: !1
998
+ },
999
+ /**
1000
+ * Used to disable hiding the last visible column.
1001
+ */
1002
+ isOnlyOneVisibleColumn: {
1003
+ type: Boolean,
1004
+ default: !1
1005
+ },
1006
+ /**
1007
+ * If these columns are frozen (pinned) columns
1008
+ */
1009
+ isFrozenColumns: {
1010
+ type: Boolean,
1011
+ default: !1
1012
+ },
1013
+ /**
1014
+ * Show frozen columns separator
1015
+ */
1016
+ showFrozenColumnsSeparator: {
1017
+ type: Boolean,
1018
+ default: !1
1019
+ },
1020
+ /**
1021
+ * The column all items selected state
1022
+ */
1023
+ allItemsSelectedState: {
1024
+ type: Object,
1025
+ default: void 0
1026
+ },
1027
+ /**
1028
+ * Determines if the user has enabled row selection
1029
+ */
1030
+ selectable: {
1031
+ type: Boolean,
1032
+ default: !1
1033
+ },
1034
+ /**
1035
+ * Adds an extra option when selecting all, to select items in other pages too
1036
+ */
1037
+ selectableAcrossPages: {
1038
+ type: Boolean,
1039
+ default: !1
1040
+ },
1041
+ /**
1042
+ * Determines which state of row selection is currently active. Used to display the "Select all" menu options.
1043
+ */
1044
+ selectionState: {
1045
+ type: String,
1046
+ default: void 0
1047
+ },
1048
+ /**
1049
+ * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
1050
+ * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
1051
+ */
1052
+ sortBy: {
1053
+ type: Array,
1054
+ // NOTE: is an array to allow multi-sorting in the future
1055
+ default: () => []
1056
+ },
1057
+ /**
1058
+ * Truncates all data grid column headers
1059
+ */
1060
+ truncateColumnHeaders: {
1061
+ type: Boolean,
1062
+ default: !1
1063
+ },
1064
+ /**
1065
+ * The maximum width of the row actions in all rows
1066
+ */
1067
+ rowActionsMaximumWidth: {
1068
+ type: Number,
1069
+ default: 0
1070
+ }
1071
+ },
1072
+ emits: ["sort", "column-hover"],
1073
+ setup(e, { expose: a, emit: i }) {
1074
+ const t = e, r = i, n = 100, { t: l } = Ue({ messages: vn }), { columns: g, sortBy: f } = mt(t), h = A({}), R = A({}), E = A(), U = A(), y = (d) => r(ne.SELECT_ALL_ROWS, d), c = (d) => d.field === be, T = b(
1075
+ () => [
1076
+ t.selectionState !== "page" && {
1077
+ text: l("selectPage"),
1078
+ handler: () => y(!0)
1079
+ },
1080
+ {
1081
+ text: l("selectAll"),
1082
+ handler: () => r(ne.SELECT_ALL_ACROSS_PAGES)
1083
+ },
1084
+ t.selectionState !== "none" && {
1085
+ text: l("deselectAll"),
1086
+ handler: () => r(ne.DESELECT_ALL)
1087
+ }
1088
+ ].filter(Boolean)
1089
+ ), { startResize: N, isResizing: v, columnHoverEventToEmitAfterResizing: C } = Gl(g, r), { isSorting: s, getSortingDirection: p, sortByColumnField: $ } = no(f, g, r), k = (d) => {
1090
+ var se;
1091
+ if (!d.sortable)
1092
+ return null;
1093
+ const H = (se = t.sortBy.find(({ field: te }) => te === d.field)) == null ? void 0 : se.direction;
1094
+ return H ? {
1095
+ [ze.ASCENDING]: nt.ASCENDING,
1096
+ [ze.DESCENDING]: nt.DESCENDING
1097
+ }[H] : nt.NONE;
1098
+ }, w = b(() => (d) => t.hasDraggableColumns ? {
1099
+ dragstart: (H) => {
1100
+ r(ne.COLUMN_DRAG_START, d, H);
1101
+ },
1102
+ dragover: (H) => {
1103
+ H.preventDefault();
1104
+ },
1105
+ dragenter: (H) => {
1106
+ H.preventDefault(), r(ne.COLUMN_DRAG_ENTER, d, H);
1107
+ },
1108
+ drop: () => {
1109
+ r(ne.COLUMN_DROP, d);
1110
+ },
1111
+ dragend: () => {
1112
+ r(ne.COLUMN_DRAG_END);
1113
+ }
1114
+ } : {}), _ = b(() => (d) => [
1115
+ {
1116
+ text: l("moveColumnLeft"),
1117
+ handler: () => r(ne.COLUMN_MOVE, d, -1),
1118
+ icon: Ml,
1119
+ disabled: t.columns[0].field === d.field
1120
+ },
1121
+ {
1122
+ text: l("moveColumnRight"),
1123
+ handler: () => r(ne.COLUMN_MOVE, d, 1),
1124
+ icon: bo,
1125
+ disabled: t.columns[t.columns.length - 1].field === d.field
1126
+ },
1127
+ {
1128
+ text: d != null && d.frozen ? l("unfreezeColumn") : l("freezeColumn"),
1129
+ handler: () => r(ne.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
1130
+ icon: gn
1131
+ },
1132
+ {
1133
+ text: (d == null ? void 0 : d.visible) !== !1 ? l("hideColumn") : l("showColumn"),
1134
+ handler: () => {
1135
+ r(ne.COLUMN_UPDATE, {
1136
+ ...d,
1137
+ visible: (d == null ? void 0 : d.visible) === !1
1138
+ });
1139
+ },
1140
+ icon: (d == null ? void 0 : d.visible) !== !1 ? zl : Ul,
1141
+ disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && t.isOnlyOneVisibleColumn
1142
+ }
1143
+ ]), M = (d) => {
1144
+ E.value = d.field, U.value && clearTimeout(U.value);
1145
+ }, x = () => {
1146
+ const d = setTimeout(() => {
1147
+ E.value = "";
1148
+ }, n);
1149
+ U.value = d;
1150
+ }, fe = (d) => {
1151
+ let H = {
1152
+ mouseenter: () => {
1153
+ M(d), v.value ? C.value = d : r("column-hover", d);
1154
+ },
1155
+ mouseleave: () => {
1156
+ x(), v.value ? C.value = null : r("column-hover", null);
1157
+ },
1158
+ focus: () => {
1159
+ M(d), c(d) && Et(h.value[d.field]);
1160
+ },
1161
+ focusout: (I) => {
1162
+ var se, te;
1163
+ (te = (se = h.value) == null ? void 0 : se[d.field]) != null && te.contains(I == null ? void 0 : I.relatedTarget) || x();
1164
+ }
1165
+ };
1166
+ return c(d) || (H = {
1167
+ ...H,
1168
+ ...w.value(d)
1169
+ }), H;
1170
+ }, oe = (d) => d.infoIconTooltip || d.sortable || t.hasColumnPanel, we = (d, H) => {
1171
+ var I;
1172
+ ((I = h.value) == null ? void 0 : I[H]) === void 0 && (h.value = { ...h.value, [H]: null }), d !== null && (h.value[H] = d);
1173
+ }, me = b(() => {
1174
+ var H;
1175
+ const d = {
1176
+ "b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
1177
+ };
1178
+ return (H = g.value[0]) != null && H.frozen ? {
1179
+ ...d,
1180
+ "b-data-grid-columns--frozen": !0,
1181
+ "b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
1182
+ "b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
1183
+ } : {
1184
+ ...d,
1185
+ "b-data-grid-columns--unfrozen": !0
1186
+ };
1187
+ }), he = b(() => ({
1188
+ "b-data-grid-columns__select-column--all": t.selectableAcrossPages
1189
+ })), ge = (d, H) => d && H === 0 ? Ut.BOTTOM_START : Ut.BOTTOM_END, Q = (d, H) => {
1190
+ var I, se, te, Fe, Ge, L, z, Y, ee, j;
1191
+ return {
1192
+ "b-data-grid-columns__column--column-hovered": d.field === t.hoveredOverColumnState.hoveredOverColumnField,
1193
+ "b-data-grid-columns__column--column-hovered-no-border-left": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
1194
+ "b-data-grid-columns__column--column-hovered-no-border-right": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
1195
+ "b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && H === g.value.length - 1,
1196
+ "b-data-grid-columns__column--sortable": d.sortable,
1197
+ "b-data-grid-columns__column--padding-left-unset": ((I = d == null ? void 0 : d.padding) == null ? void 0 : I.left) === !1,
1198
+ "b-data-grid-columns__column--padding-right-unset": ((se = d == null ? void 0 : d.padding) == null ? void 0 : se.right) === !1,
1199
+ "b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
1200
+ "b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
1201
+ "b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((Fe = (te = t.draggingColumns) == null ? void 0 : te.dragging) == null ? void 0 : Fe.field),
1202
+ "b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((L = (Ge = t.draggingColumns) == null ? void 0 : Ge.target) == null ? void 0 : L.field) && ((z = t.draggingColumns) == null ? void 0 : z.dragToLeft),
1203
+ "b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((ee = (Y = t.draggingColumns) == null ? void 0 : Y.target) == null ? void 0 : ee.field) && !((j = t.draggingColumns) != null && j.dragToLeft),
1204
+ "b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || t.hasColumnPanel && E.value === d.field || t.selectableAcrossPages
1205
+ };
1206
+ }, m = (d) => ({
1207
+ "b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
1208
+ }), Z = (d) => ({
1209
+ "b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
1210
+ }), q = (d) => ({
1211
+ "b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
1212
+ "b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === d.field && t.hoveredOverColumnState.isSeparatorOffset
1213
+ }), V = b(() => ({
1214
+ "b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
1215
+ }));
1216
+ return a({
1217
+ columnHeaderRefs: h
1218
+ }), (d, H) => (u(), S("div", {
1219
+ class: ce(["b-data-grid-columns", me.value]),
1220
+ "data-testid": "data-grid-columns"
1221
+ }, [
1222
+ (u(!0), S(ve, null, pe(o(g), (I, se) => (u(), S("div", le({
1223
+ key: I.field,
1224
+ ref_for: !0,
1225
+ ref: (te) => we(te, I.field),
1226
+ "aria-colindex": se + 1,
1227
+ "aria-label": I.label,
1228
+ "aria-sort": k(I),
1229
+ class: [Q(I, se), "b-data-grid-columns__column"],
1230
+ "data-testid": `${I.field}-column-header`,
1231
+ draggable: e.hasDraggableColumns && !o(v) && !c(I),
1232
+ role: "columnheader",
1233
+ tabindex: I.sortable || e.hasColumnPanel || I.infoIconTooltip ? "0" : "-1",
1234
+ style: { width: I.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${I.width}px` }
1235
+ }, lt(fe(I), !0)), [
1236
+ c(I) && e.selectable ? (u(), S("div", {
1237
+ key: 0,
1238
+ class: ce(["b-data-grid-columns__select-column", he.value])
1239
+ }, [
1240
+ e.selectableAcrossPages ? B("", !0) : (u(), W(o(tt), {
1241
+ key: 0,
1242
+ "aria-label": o(l)("selectAll"),
1243
+ "model-value": e.allItemsSelectedState.allItemsSelected,
1244
+ "data-testid": "checkbox-select-all",
1245
+ indeterminate: e.allItemsSelectedState.isIndeterminate,
1246
+ value: "data-grid-select-all",
1247
+ "onUpdate:modelValue": y
1248
+ }, null, 8, ["aria-label", "model-value", "indeterminate"])),
1249
+ e.selectableAcrossPages ? (u(), S(ve, { key: 1 }, [
1250
+ e.selectionState === "all" ? (u(), W(o(tt), {
1251
+ key: 0,
1252
+ "aria-label": o(l)("deselectAll"),
1253
+ "model-value": e.allItemsSelectedState.allItemsSelected,
1254
+ "data-testid": "checkbox-deselect-all",
1255
+ value: "data-grid-deselect-all",
1256
+ class: "b-data-grid-columns__deselect-all-checkbox",
1257
+ onInput: H[0] || (H[0] = (te) => d.$emit(o(ne).DESELECT_ALL))
1258
+ }, null, 8, ["aria-label", "model-value"])) : (u(), W(o(ct), {
1259
+ key: 1,
1260
+ button: { variant: "tertiary", condensed: !0, "aria-label": o(l)("selectAllMenu") },
1261
+ data: T.value,
1262
+ class: "b-data-grid-columns__select-column-menu",
1263
+ "disable-arrow-down-opening-menu": "",
1264
+ "menu-fixed-positioning": "",
1265
+ "menu-position": "bottom-start"
1266
+ }, {
1267
+ iconLeft: G(() => [
1268
+ O("div", Go, [
1269
+ J(o(tt), {
1270
+ indeterminate: e.allItemsSelectedState.isIndeterminate,
1271
+ "model-value": e.allItemsSelectedState.allItemsSelected,
1272
+ "aria-hidden": "true",
1273
+ class: "b-data-grid-columns__select-column-menu-checkbox",
1274
+ "data-testid": "checkbox-select-all",
1275
+ tabindex: "-1",
1276
+ value: "data-grid-select-all"
1277
+ }, null, 8, ["indeterminate", "model-value"]),
1278
+ J(o(Wo), {
1279
+ "svg-title": o(l)("selectionMenu"),
1280
+ "aria-hidden": "true"
1281
+ }, null, 8, ["svg-title"])
1282
+ ])
1283
+ ]),
1284
+ _: 1
1285
+ }, 8, ["button", "data"]))
1286
+ ], 64)) : B("", !0)
1287
+ ], 2)) : (u(), S(ve, { key: 1 }, [
1288
+ O("div", {
1289
+ "aria-label": o(l)("columnActions", { name: I.label }),
1290
+ "aria-live": "polite",
1291
+ role: "region",
1292
+ class: ce(["b-data-grid-columns__column-header-and-actions", m(I)])
1293
+ }, [
1294
+ J(o(Ye), {
1295
+ el: "div",
1296
+ strongest: "",
1297
+ class: ce(["b-data-grid-columns__column-header", V.value])
1298
+ }, {
1299
+ default: G(() => [
1300
+ Ie(d.$slots, `head-${I.field}`, { column: I }, () => [
1301
+ O("span", xo, X(I.label), 1)
1302
+ ], !0)
1303
+ ]),
1304
+ _: 2
1305
+ }, 1032, ["class"]),
1306
+ oe(I) ? (u(), S("div", {
1307
+ key: 0,
1308
+ class: ce(["b-data-grid-columns__column-actions", Z(I)])
1309
+ }, [
1310
+ I.infoIconTooltip ? (u(), S("div", Zo, [
1311
+ J(o(kl), {
1312
+ "tooltip-text": I.infoIconTooltip
1313
+ }, null, 8, ["tooltip-text"])
1314
+ ])) : B("", !0),
1315
+ I.sortable ? (u(), S("div", jo, [
1316
+ J(o(yt), {
1317
+ condensed: "",
1318
+ toggled: o(s)(I.field),
1319
+ variant: "tertiary",
1320
+ onClick: (te) => o($)(I.field)
1321
+ }, {
1322
+ iconLeft: G(() => [
1323
+ o(p)(I.field) ? o(p)(I.field) === o(ze).ASCENDING ? (u(), W(o(Io), {
1324
+ key: 1,
1325
+ "svg-title": o(l)("sortColumnInDescendingOrder", { name: I.label })
1326
+ }, null, 8, ["svg-title"])) : o(p)(I.field) === o(ze).DESCENDING ? (u(), W(o(Uo), {
1327
+ key: 2,
1328
+ "svg-title": o(l)("sortColumnInAscendingOrder", { name: I.label })
1329
+ }, null, 8, ["svg-title"])) : B("", !0) : (u(), W(o(ho), {
1330
+ key: 0,
1331
+ "svg-title": o(l)("sortColumn", { name: I.label })
1332
+ }, null, 8, ["svg-title"]))
1333
+ ]),
1334
+ _: 2
1335
+ }, 1032, ["toggled", "onClick"])
1336
+ ])) : B("", !0),
1337
+ e.hasColumnPanel && E.value === I.field ? (u(), W(o(ct), {
1338
+ key: 2,
1339
+ ref_for: !0,
1340
+ ref: (te) => R.value[I.field] = te,
1341
+ class: "b-data-grid-columns__menu",
1342
+ "disable-arrow-down-opening-menu": "",
1343
+ data: _.value(I),
1344
+ "menu-position": ge(e.hasFirstColumnPanelRightAligned, se),
1345
+ "menu-fixed-positioning": !0,
1346
+ button: { variant: "tertiary", condensed: !0 },
1347
+ onOpen: H[1] || (H[1] = (te) => d.$emit(o(ne).COLUMN_MENU_OPEN)),
1348
+ onClose: H[2] || (H[2] = (te) => d.$emit(o(ne).COLUMN_MENU_CLOSE))
1349
+ }, null, 8, ["data", "menu-position"])) : B("", !0)
1350
+ ], 2)) : B("", !0)
1351
+ ], 10, Vo),
1352
+ O("div", {
1353
+ "data-testid": `data-grid-column-${I.field}`,
1354
+ class: ce(["b-data-grid-columns__column-separator-container", q(I)]),
1355
+ role: "presentation",
1356
+ onMousedown: (te) => o(N)(e.hasResizableColumns, I.field, te),
1357
+ onClick: H[3] || (H[3] = rl(() => {
1358
+ }, ["stop"]))
1359
+ }, [
1360
+ !e.isFrozenColumns || e.isFrozenColumns && se !== o(g).length - 1 ? (u(), S("div", Ko)) : B("", !0)
1361
+ ], 42, qo)
1362
+ ], 64))
1363
+ ], 16, Ho))), 128)),
1364
+ e.rowActionsMaximumWidth && !e.isFrozenColumns ? (u(), S(ve, { key: 0 }, [
1365
+ H[4] || (H[4] = O("div", {
1366
+ role: "presentation",
1367
+ class: "b-data-grid-columns__row-actions-filler"
1368
+ }, null, -1)),
1369
+ O("div", {
1370
+ ref: (I) => we(I, o(qe)),
1371
+ "aria-label": o(l)("rowActionsColumn"),
1372
+ "aria-colindex": o(g).length + 1,
1373
+ class: "b-data-grid-columns__column",
1374
+ role: "columnheader",
1375
+ tabindex: "0",
1376
+ style: Me({ minWidth: `${e.rowActionsMaximumWidth}px` })
1377
+ }, null, 12, Yo)
1378
+ ], 64)) : B("", !0)
1379
+ ], 2));
1380
+ }
1381
+ }), Qo = /* @__PURE__ */ ie(Jo, [["__scopeId", "data-v-4764b3ee"]]);
1382
+ var Te = /* @__PURE__ */ ((e) => (e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e))(Te || {});
1383
+ let Yt = 0;
1384
+ const es = {
1385
+ beforeCreate() {
1386
+ this.uuid = Yt.toString(), Yt += 1;
1387
+ }
1388
+ }, ts = { key: 0 }, ns = ["clip-path"], ls = ["id"];
1389
+ function os(e, a, i, t, r, n) {
1390
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
1391
+ class: "ui-assets-icons-16",
1392
+ xmlns: "http://www.w3.org/2000/svg",
1393
+ width: "16",
1394
+ height: "16",
1395
+ fill: "none"
1396
+ }), [
1397
+ e.$attrs["svg-title"] ? (u(), S("title", ts, X(e.$attrs["svg-title"]), 1)) : B("", !0),
1398
+ O("g", {
1399
+ fill: "#001222",
1400
+ "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
1401
+ }, a[0] || (a[0] = [
1402
+ O("path", { 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" }, null, -1),
1403
+ O("path", { 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" }, null, -1)
1404
+ ]), 8, ns),
1405
+ O("defs", null, [
1406
+ O("clipPath", {
1407
+ id: "uia-ui-assets/icons-16-settings__a" + e.uuid
1408
+ }, a[1] || (a[1] = [
1409
+ O("rect", {
1410
+ width: "16",
1411
+ height: "16",
1412
+ fill: "#fff"
1413
+ }, null, -1)
1414
+ ]), 8, ls)
1415
+ ])
1416
+ ], 16);
1417
+ }
1418
+ const ss = /* @__PURE__ */ ie(es, [["render", os]]), Xt = {
1419
+ "en-US": {
1420
+ toggleColumnFreeze: "Toggle {label} column freeze",
1421
+ toggleColumnVisibility: "Toggle {label} column visibility"
1422
+ }
1423
+ }, as = $e({
1424
+ i18n: { messages: Xt },
1425
+ name: "bento-data-grid",
1426
+ components: {
1427
+ BentoFreezeIcon: gn,
1428
+ BentoToggle: dn
1429
+ },
1430
+ props: {
1431
+ /**
1432
+ * Is column visibitlity toggle disabled
1433
+ */
1434
+ isColumnVisibilityToggleDisabled: {
1435
+ type: Boolean,
1436
+ required: !0
1437
+ },
1438
+ /**
1439
+ * Column definition
1440
+ */
1441
+ column: {
1442
+ type: Object,
1443
+ required: !0
1444
+ }
1445
+ },
1446
+ emits: ["visible-column", "updated-column"],
1447
+ setup(e, { emit: a }) {
1448
+ const { t: i } = Ue({ messages: Xt }), t = A(!1), r = b(() => {
1449
+ var E;
1450
+ return (E = e.column) == null ? void 0 : E.frozen;
1451
+ }), n = b(() => {
1452
+ var E;
1453
+ return ((E = e.column) == null ? void 0 : E.visible) !== !1;
1454
+ }), l = () => {
1455
+ a("visible-column", { ...e.column, visible: !n.value });
1456
+ }, g = () => {
1457
+ a("updated-column", { ...e.column, frozen: !r.value });
1458
+ }, f = () => {
1459
+ r.value || (t.value = !0);
1460
+ }, h = () => {
1461
+ r.value || (t.value = !1);
1462
+ }, R = b(() => ({
1463
+ "b-data-grid-config-settings-column-row__freeze-icon--frozen": r.value
1464
+ }));
1465
+ return {
1466
+ // Values
1467
+ isFreezeIconOptionShown: t,
1468
+ isColumnFrozen: r,
1469
+ freezeIconConditionalClasses: R,
1470
+ isColumnVisible: n,
1471
+ // Methods
1472
+ toggleColumnVisibility: l,
1473
+ showFreezeIcon: f,
1474
+ hideFreezeIcon: h,
1475
+ toggleColumnFreeze: g,
1476
+ // Translations
1477
+ t: i
1478
+ };
1479
+ }
1480
+ });
1481
+ function is(e, a, i, t, r, n) {
1482
+ const l = Re("bento-toggle"), g = Re("bento-freeze-icon");
1483
+ return u(), S("div", {
1484
+ class: "b-data-grid-config-settings-column-row",
1485
+ onMouseover: a[0] || (a[0] = (...f) => e.showFreezeIcon && e.showFreezeIcon(...f)),
1486
+ onMouseleave: a[1] || (a[1] = (...f) => e.hideFreezeIcon && e.hideFreezeIcon(...f))
1487
+ }, [
1488
+ J(l, {
1489
+ "aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
1490
+ disabled: e.isColumnVisibilityToggleDisabled,
1491
+ "label-position": "after",
1492
+ value: e.isColumnVisible,
1493
+ onInput: e.toggleColumnVisibility
1494
+ }, {
1495
+ default: G(() => [
1496
+ ue(X(e.column.label), 1)
1497
+ ]),
1498
+ _: 1
1499
+ }, 8, ["aria-label", "disabled", "value", "onInput"]),
1500
+ ht(J(g, {
1501
+ "aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
1502
+ class: ce(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
1503
+ onClick: e.toggleColumnFreeze
1504
+ }, null, 8, ["aria-label", "class", "onClick"]), [
1505
+ [dl, e.isColumnFrozen || e.isFreezeIconOptionShown]
1506
+ ])
1507
+ ], 32);
1508
+ }
1509
+ const rs = /* @__PURE__ */ ie(as, [["render", is], ["__scopeId", "data-v-98b791c6"]]), Jt = {
1510
+ "en-US": {
1511
+ appearance: "Appearance",
1512
+ closeConfigSettingsPanel: "Close configuration settings panel",
1513
+ closeSearch: "Close search",
1514
+ columnVisibilitySearchFilter: "Column visibility search filter",
1515
+ columns: "Columns",
1516
+ condensed: "Condensed",
1517
+ condensedToggle: "Condensed toggle",
1518
+ configSettingsPanel: "Configuration settings Panel",
1519
+ displayOptions: "Display options",
1520
+ noColumnsMatch: "No columns match this search",
1521
+ search: "Search",
1522
+ showAllColumns: "Show all columns ({numberOfColumns})",
1523
+ toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
1524
+ zebraRows: "Zebra rows",
1525
+ zebraRowsToggle: "Zebra rows toggle"
1526
+ },
1527
+ "ja-JP": {
1528
+ appearance: "外観",
1529
+ condensed: "凝縮",
1530
+ search: "検索"
1531
+ },
1532
+ "pt-BR": {
1533
+ appearance: "Aparência",
1534
+ condensed: "Condensado",
1535
+ search: "Buscar"
1536
+ }
1537
+ }, ds = $e({
1538
+ i18n: { messages: Jt },
1539
+ name: "bento-data-grid",
1540
+ components: {
1541
+ BentoButton: rn,
1542
+ BentoCrossIcon: sn,
1543
+ BentoPopover: Al,
1544
+ BentoSettingsIcon: ss,
1545
+ BentoToggleButton: yt,
1546
+ BentoDataGridConfigSettingsConfigRow: rs,
1547
+ BentoSearchBar: Nl,
1548
+ BentoSearchIcon: Dl,
1549
+ BentoToggle: dn,
1550
+ BentoTypography: Ye
1551
+ },
1552
+ directives: { BentoClickOutsideDirective: Il },
1553
+ props: {
1554
+ /**
1555
+ * Column definitions
1556
+ */
1557
+ columns: {
1558
+ type: Array,
1559
+ required: !0
1560
+ },
1561
+ /**
1562
+ * Sets the row cells to the condensed padding state.
1563
+ */
1564
+ condensed: {
1565
+ type: Boolean,
1566
+ default: !1
1567
+ },
1568
+ /**
1569
+ * Sets a different background color for even rows.
1570
+ */
1571
+ zebraRows: {
1572
+ type: Boolean,
1573
+ default: !1
1574
+ }
1575
+ },
1576
+ emits: [
1577
+ Te.UPDATE_CONDENSED,
1578
+ Te.UPDATE_COLUMNS,
1579
+ Te.UPDATE_ZEBRA_ROWS
1580
+ ],
1581
+ setup(e, { emit: a }) {
1582
+ const { t: i } = Ue({ messages: Jt }), t = A(null), r = ft("data-grid-config-settings-popover"), n = A(null), l = A(!1), g = A(!0), f = A(null), h = A(""), R = dt(e, "columns"), E = A(!1), U = $l(h, R), y = () => {
1583
+ h.value = "";
1584
+ }, c = b(
1585
+ () => !e.columns.some((_) => _.visible === !1 && !_.mandatory)
1586
+ ), T = () => {
1587
+ y(), E.value = !E.value, E.value ? Ce(() => {
1588
+ var _;
1589
+ return (_ = n.value.$refs.bentoInputField) == null ? void 0 : _.focusInput();
1590
+ }) : Ce(() => {
1591
+ var _, M;
1592
+ return (M = (_ = f == null ? void 0 : f.value) == null ? void 0 : _.$el) == null ? void 0 : M.focus();
1593
+ }), g.value = c.value;
1594
+ }, N = (_) => _.mandatory ?? !1, v = (_) => {
1595
+ const M = e.columns.map((x) => ({
1596
+ ...x,
1597
+ visible: _.field === x.field ? _.visible : x.visible
1598
+ }));
1599
+ a(Te.UPDATE_COLUMNS, M);
1600
+ }, C = (_) => {
1601
+ _ ? a(
1602
+ Te.UPDATE_COLUMNS,
1603
+ e.columns.map((M) => ({ ...M, visible: !0 }))
1604
+ ) : a(
1605
+ Te.UPDATE_COLUMNS,
1606
+ e.columns.map((M) => ({ ...M, visible: (M == null ? void 0 : M.mandatory) === !0 }))
1607
+ );
1608
+ }, s = (_) => {
1609
+ const M = e.columns.map((x) => ({
1610
+ ...x,
1611
+ frozen: _.field === x.field ? !!(_ != null && _.frozen) : !!(x != null && x.frozen)
1612
+ }));
1613
+ a(Te.UPDATE_COLUMNS, M);
1614
+ }, p = (_) => {
1615
+ l.value = _, g.value = c.value;
1616
+ };
1617
+ return {
1618
+ // Values
1619
+ configSettingsButtonRef: t,
1620
+ popoverId: r,
1621
+ isConfigSettingsPanelOpen: l,
1622
+ allColumnsVisbilityToggleState: g,
1623
+ filteredColumnVisibilityColumns: U,
1624
+ searchTerm: h,
1625
+ isColumnVisibilityFilterShown: E,
1626
+ searchBarRef: n,
1627
+ searchButtonRef: f,
1628
+ DATAGRID_ACTIONS_COLUMN_FIELD_NAME: be,
1629
+ // Methods
1630
+ setConfigSettingsPanelVisibility: p,
1631
+ emitCondensedToggle: (_) => a(Te.UPDATE_CONDENSED, _),
1632
+ toggleAllColumnVisibility: C,
1633
+ clearAction: y,
1634
+ toggleColumnFilter: T,
1635
+ emitVisibleColumns: v,
1636
+ emitFrozenColumns: s,
1637
+ onClickOutside: () => p(!1),
1638
+ isColumnVisibilityToggleDisabled: N,
1639
+ emitZebraRowsToggle: (_) => a(Te.UPDATE_ZEBRA_ROWS, _),
1640
+ // Translations
1641
+ t: i
1642
+ };
1643
+ }
1644
+ }), us = { class: "b-data-grid-config-settings" }, cs = { class: "b-data-grid-config-settings__button-and-separator" }, fs = {
1645
+ ref: "configSettingsButtonRef",
1646
+ class: "b-data-grid-config-settings__button-container"
1647
+ }, gs = { class: "b-data-grid-config-settings__panel-header" }, vs = { class: "b-data-grid-config-settings__appearance" }, ms = { class: "b-data-grid-config-settings__appearance-button" }, hs = { class: "b-data-grid-config-settings__appearance-button" }, Cs = { class: "b-data-grid-config-settings__column-visibility-settings" }, ws = { class: "b-data-grid-config-settings__column-visibility-header" }, _s = {
1648
+ key: 0,
1649
+ class: "b-data-grid-config-settings__column-visibility-search"
1650
+ }, bs = {
1651
+ key: 1,
1652
+ class: "b-data-grid-config-settings__column-visibility-show-all"
1653
+ }, ys = { class: "b-data-grid-config-settings__column-visibility-toggles" };
1654
+ function Es(e, a, i, t, r, n) {
1655
+ const l = Re("bento-settings-icon"), g = Re("bento-toggle-button"), f = Re("bento-typography"), h = Re("bento-cross-icon"), R = Re("bento-button"), E = Re("bento-toggle"), U = Re("bento-search-icon"), y = Re("bento-search-bar"), c = Re("bento-data-grid-config-settings-config-row"), T = Re("bento-popover"), N = ul("bento-click-outside-directive");
1656
+ return ht((u(), S("div", us, [
1657
+ O("div", cs, [
1658
+ O("div", fs, [
1659
+ J(g, {
1660
+ "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
1661
+ variant: "tertiary",
1662
+ condensed: "",
1663
+ toggled: e.isConfigSettingsPanelOpen,
1664
+ onClick: a[0] || (a[0] = (v) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
1665
+ }, {
1666
+ iconLeft: G(() => [
1667
+ J(l, {
1668
+ "svg-title": e.t("toggleConfigSettingsPanelVisibility")
1669
+ }, null, 8, ["svg-title"])
1670
+ ]),
1671
+ _: 1
1672
+ }, 8, ["aria-controls", "toggled"])
1673
+ ], 512)
1674
+ ]),
1675
+ e.configSettingsButtonRef ? (u(), W(T, {
1676
+ key: 0,
1677
+ id: e.popoverId,
1678
+ open: e.isConfigSettingsPanelOpen,
1679
+ class: "b-data-grid-config-settings__panel",
1680
+ "aria-label": e.t("configSettingsPanel"),
1681
+ "target-element": e.configSettingsButtonRef,
1682
+ position: "bottom-end"
1683
+ }, {
1684
+ default: G(() => [
1685
+ O("div", gs, [
1686
+ J(f, {
1687
+ el: "span",
1688
+ strongest: ""
1689
+ }, {
1690
+ default: G(() => [
1691
+ ue(X(e.t("displayOptions")), 1)
1692
+ ]),
1693
+ _: 1
1694
+ }),
1695
+ J(R, {
1696
+ variant: "tertiary",
1697
+ onClick: a[1] || (a[1] = (v) => e.setConfigSettingsPanelVisibility(!1))
1698
+ }, {
1699
+ iconLeft: G(() => [
1700
+ J(h, {
1701
+ "svg-title": e.t("closeConfigSettingsPanel")
1702
+ }, null, 8, ["svg-title"])
1703
+ ]),
1704
+ _: 1
1705
+ })
1706
+ ]),
1707
+ O("div", vs, [
1708
+ J(f, {
1709
+ class: "b-data-grid-config-settings__appearance-title",
1710
+ el: "span",
1711
+ stronger: ""
1712
+ }, {
1713
+ default: G(() => [
1714
+ ue(X(e.t("appearance")), 1)
1715
+ ]),
1716
+ _: 1
1717
+ }),
1718
+ O("div", ms, [
1719
+ J(E, {
1720
+ "label-position": "after",
1721
+ "aria-label": e.t("condensedToggle"),
1722
+ value: e.condensed,
1723
+ onInput: e.emitCondensedToggle
1724
+ }, {
1725
+ default: G(() => [
1726
+ ue(X(e.t("condensed")), 1)
1727
+ ]),
1728
+ _: 1
1729
+ }, 8, ["aria-label", "value", "onInput"])
1730
+ ]),
1731
+ O("div", hs, [
1732
+ J(E, {
1733
+ "label-position": "after",
1734
+ "aria-label": e.t("zebraRowsToggle"),
1735
+ value: e.zebraRows,
1736
+ onInput: e.emitZebraRowsToggle
1737
+ }, {
1738
+ default: G(() => [
1739
+ ue(X(e.t("zebraRows")), 1)
1740
+ ]),
1741
+ _: 1
1742
+ }, 8, ["aria-label", "value", "onInput"])
1743
+ ])
1744
+ ]),
1745
+ O("div", Cs, [
1746
+ O("div", ws, [
1747
+ J(f, {
1748
+ class: "b-data-grid-config-settings__column-visibility-title",
1749
+ el: "span",
1750
+ stronger: ""
1751
+ }, {
1752
+ default: G(() => [
1753
+ ue(X(e.t("columns")), 1)
1754
+ ]),
1755
+ _: 1
1756
+ }),
1757
+ e.isColumnVisibilityFilterShown ? (u(), W(R, {
1758
+ key: 1,
1759
+ variant: "tertiary",
1760
+ onClick: e.toggleColumnFilter
1761
+ }, {
1762
+ iconLeft: G(() => [
1763
+ J(h)
1764
+ ]),
1765
+ default: G(() => [
1766
+ ue(" " + X(e.t("closeSearch")), 1)
1767
+ ]),
1768
+ _: 1
1769
+ }, 8, ["onClick"])) : (u(), W(R, {
1770
+ key: 0,
1771
+ ref: "searchButtonRef",
1772
+ variant: "tertiary",
1773
+ onClick: e.toggleColumnFilter
1774
+ }, {
1775
+ iconLeft: G(() => [
1776
+ J(U)
1777
+ ]),
1778
+ default: G(() => [
1779
+ ue(X(e.t("search")), 1)
1780
+ ]),
1781
+ _: 1
1782
+ }, 8, ["onClick"]))
1783
+ ]),
1784
+ e.isColumnVisibilityFilterShown ? (u(), S("div", _s, [
1785
+ J(y, {
1786
+ ref: "searchBarRef",
1787
+ value: e.searchTerm,
1788
+ "input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
1789
+ onInput: a[2] || (a[2] = (v) => e.searchTerm = v),
1790
+ onClear: e.clearAction,
1791
+ onEscapePressed: e.toggleColumnFilter
1792
+ }, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
1793
+ ])) : (u(), S("div", bs, [
1794
+ J(E, {
1795
+ "label-position": "after",
1796
+ value: e.allColumnsVisbilityToggleState,
1797
+ onInput: e.toggleAllColumnVisibility
1798
+ }, {
1799
+ default: G(() => [
1800
+ ue(X(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
1801
+ ]),
1802
+ _: 1
1803
+ }, 8, ["value", "onInput"])
1804
+ ])),
1805
+ O("div", ys, [
1806
+ (u(!0), S(ve, null, pe(e.filteredColumnVisibilityColumns, (v) => (u(), S("div", {
1807
+ key: v.field
1808
+ }, [
1809
+ v.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (u(), W(c, {
1810
+ key: 0,
1811
+ column: v,
1812
+ "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(v),
1813
+ onVisibleColumn: e.emitVisibleColumns,
1814
+ onUpdatedColumn: e.emitFrozenColumns
1815
+ }, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : B("", !0)
1816
+ ]))), 128)),
1817
+ e.filteredColumnVisibilityColumns.length === 0 ? (u(), W(f, {
1818
+ key: 0,
1819
+ el: "span",
1820
+ class: "b-data-grid-config-settings__column-visibility-empty-search-message"
1821
+ }, {
1822
+ default: G(() => [
1823
+ ue(X(e.t("noColumnsMatch")), 1)
1824
+ ]),
1825
+ _: 1
1826
+ })) : B("", !0)
1827
+ ])
1828
+ ])
1829
+ ]),
1830
+ _: 1
1831
+ }, 8, ["id", "open", "aria-label", "target-element"])) : B("", !0)
1832
+ ])), [
1833
+ [N, e.onClickOutside]
1834
+ ]);
1835
+ }
1836
+ const ps = /* @__PURE__ */ ie(ds, [["render", Es], ["__scopeId", "data-v-5219be62"]]), ot = {
1837
+ "en-US": {
1838
+ gettingYourData: "Getting your data",
1839
+ loading: "Loading",
1840
+ selectRow: "Select row",
1841
+ showMore: "Show more",
1842
+ sortAscending: "{field} sort ascending",
1843
+ sortDescending: "{field} sort descending",
1844
+ sortInactive: "{field} sort inactive"
1845
+ },
1846
+ "ja-JP": {
1847
+ loading: "読み込み中",
1848
+ showMore: "表示内容を増やす"
1849
+ },
1850
+ "pt-BR": {
1851
+ loading: "Carregando",
1852
+ showMore: "Mostrar mais"
1853
+ }
1854
+ }, Ls = { class: "b-data-grid-lazy-load" }, Ss = {
1855
+ i18n: { messages: ot }
1856
+ }, Rs = /* @__PURE__ */ $e({
1857
+ ...Ss,
1858
+ __name: "data-grid-lazy-load",
1859
+ props: {
1860
+ loading: { type: Boolean },
1861
+ isInfiniteScroll: { type: Boolean }
1862
+ },
1863
+ setup(e) {
1864
+ const { t: a } = Ue({ messages: ot });
1865
+ return (i, t) => (u(), S("div", Ls, [
1866
+ i.loading && i.isInfiniteScroll ? (u(), W(o(wt), { key: 0 })) : B("", !0),
1867
+ i.loading && !i.isInfiniteScroll ? (u(), W(o(Mt), {
1868
+ key: 1,
1869
+ variant: "secondary",
1870
+ state: o(zt).LOADING
1871
+ }, {
1872
+ default: G(() => [
1873
+ ue(X(o(a)("loading")), 1)
1874
+ ]),
1875
+ _: 1
1876
+ }, 8, ["state"])) : B("", !0),
1877
+ !i.loading && !i.isInfiniteScroll ? (u(), W(o(Mt), {
1878
+ key: 2,
1879
+ state: o(zt).START,
1880
+ variant: "secondary",
1881
+ onClick: t[0] || (t[0] = (r) => i.$emit(o(F).UPDATE_SHOW_MORE))
1882
+ }, {
1883
+ default: G(() => [
1884
+ ue(X(o(a)("showMore")), 1)
1885
+ ]),
1886
+ _: 1
1887
+ }, 8, ["state"])) : B("", !0)
1888
+ ]));
1889
+ }
1890
+ }), As = /* @__PURE__ */ ie(Rs, [["__scopeId", "data-v-a4824c2d"]]);
1891
+ let Qt = 0;
1892
+ const Os = {
1893
+ beforeCreate() {
1894
+ this.uuid = Qt.toString(), Qt += 1;
1895
+ }
1896
+ }, Ts = { key: 0 };
1897
+ function Ns(e, a, i, t, r, n) {
1898
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
1899
+ class: "ui-assets-icons-16",
1900
+ xmlns: "http://www.w3.org/2000/svg",
1901
+ width: "16",
1902
+ height: "16",
1903
+ fill: "none"
1904
+ }), [
1905
+ e.$attrs["svg-title"] ? (u(), S("title", Ts, X(e.$attrs["svg-title"]), 1)) : B("", !0),
1906
+ a[0] || (a[0] = O("path", {
1907
+ fill: "#001222",
1908
+ 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"
1909
+ }, null, -1))
1910
+ ], 16);
1911
+ }
1912
+ const Is = /* @__PURE__ */ ie(Os, [["render", Ns]]), mn = {
1913
+ "en-US": {
1914
+ copy: "Copy",
1915
+ edit: "Edit",
1916
+ more: "More",
1917
+ open: "Open"
1918
+ },
1919
+ "ja-JP": {
1920
+ copy: "コピー",
1921
+ edit: "編集",
1922
+ more: "表示を増やす",
1923
+ open: "を開く"
1924
+ },
1925
+ "pt-BR": {
1926
+ copy: "Copiar",
1927
+ edit: "Editar",
1928
+ more: "Mais",
1929
+ open: "Abrir"
1930
+ }
1931
+ }, $s = { class: "b-data-grid-cell-actions" }, Ds = {
1932
+ i18n: { messages: mn },
1933
+ name: "data-grid-cell-actions"
1934
+ }, ks = /* @__PURE__ */ $e({
1935
+ ...Ds,
1936
+ props: {
1937
+ /**
1938
+ * Column definitions using 'key' to relate to data object.
1939
+ */
1940
+ cellActions: {
1941
+ type: [Array, Function],
1942
+ required: !0,
1943
+ validator: (e) => (e == null ? void 0 : e.length) <= 2
1944
+ },
1945
+ /**
1946
+ * The column field key.
1947
+ */
1948
+ columnKey: {
1949
+ type: String,
1950
+ default: void 0
1951
+ },
1952
+ /**
1953
+ * Disables any opening of the cell actions menus using the down arrow key.
1954
+ */
1955
+ disableArrowDownOpeningMenu: {
1956
+ type: Boolean,
1957
+ default: !1
1958
+ },
1959
+ /**
1960
+ * Set to true if the datagrid has been scrolled and the right side has overflowing space.
1961
+ */
1962
+ hasRightOverflow: {
1963
+ type: Boolean,
1964
+ default: !1
1965
+ },
1966
+ /**
1967
+ * Set to true if the row has a darker background when zebra rows is enabled.
1968
+ */
1969
+ hasZebraBackground: {
1970
+ type: Boolean,
1971
+ default: !1
1972
+ },
1973
+ /**
1974
+ * Set if set to true will teleport the action menu component
1975
+ */
1976
+ teleportMenu: {
1977
+ type: Boolean,
1978
+ default: !1
1979
+ },
1980
+ /**
1981
+ * The row data item object.
1982
+ */
1983
+ rowDataItem: {
1984
+ type: Object,
1985
+ required: !0
1986
+ }
1987
+ },
1988
+ emits: ["menu-open", "menu-close", "menu-item-click"],
1989
+ setup(e, { emit: a }) {
1990
+ const { t: i } = Ue({ messages: mn }), t = e, r = a, n = b(() => t.columnKey === void 0), l = b(() => ({
1991
+ "b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": n.value && t.hasRightOverflow,
1992
+ "b-data-grid-cell-actions__background-gradient--zebra": t.hasZebraBackground
1993
+ })), g = b(() => ({
1994
+ "b-data-grid-cell-actions__actions--with-row-actions": n.value
1995
+ })), f = b(() => !n.value || n.value && t.hasRightOverflow);
1996
+ function h(v) {
1997
+ return typeof v == "function";
1998
+ }
1999
+ const R = b(() => {
2000
+ var C;
2001
+ const v = h(t.cellActions) ? (C = t.cellActions) == null ? void 0 : C.call(t, t.rowDataItem, t.columnKey) : t.cellActions;
2002
+ return (v == null ? void 0 : v.length) > 2 && an(
2003
+ "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
2004
+ ), v == null ? void 0 : v.slice(0, 2);
2005
+ }), E = b(() => (v, C) => {
2006
+ if (!(!C && v.isShort || C && !v.isShort))
2007
+ switch (v.variant) {
2008
+ case "copy":
2009
+ return i("copy");
2010
+ case "edit":
2011
+ return i("edit");
2012
+ case "open":
2013
+ return i("open");
2014
+ case "more":
2015
+ return i("more");
2016
+ default:
2017
+ return v.title;
2018
+ }
2019
+ }), U = (v) => (v == null ? void 0 : v.event) !== void 0 ? {
2020
+ click: (C) => {
2021
+ C.stopPropagation(), v.event(t.rowDataItem, t.columnKey);
2022
+ }
2023
+ } : {}, y = (v) => ({
2024
+ ...v,
2025
+ handler: () => {
2026
+ v != null && v.handler && typeof v.handler == "function" && (v == null || v.handler()), v != null && v.event && typeof v.event == "function" && (v == null || v.event(t.rowDataItem, t.columnKey));
2027
+ }
2028
+ }), c = (v) => v.map((C) => {
2029
+ const s = C;
2030
+ return s != null && s.items && (s.items = c(s.items)), { ...y(s) };
2031
+ }), T = (v) => {
2032
+ var C, s;
2033
+ return (v == null ? void 0 : v.getCopyData) !== void 0 ? v.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (s = (C = t.rowDataItem) == null ? void 0 : C[t.columnKey]) == null ? void 0 : s.toString() : "";
2034
+ }, N = (v) => v.iconLeft || (v == null ? void 0 : v.variant) === "more";
2035
+ return (v, C) => (u(), W(ln, {
2036
+ name: "b-data-grid-cell-actions__animation",
2037
+ appear: ""
2038
+ }, {
2039
+ default: G(() => [
2040
+ O("div", $s, [
2041
+ f.value ? (u(), S("div", {
2042
+ key: 0,
2043
+ class: ce(["b-data-grid-cell-actions__background-gradient", l.value])
2044
+ }, null, 2)) : B("", !0),
2045
+ O("div", {
2046
+ class: ce(["b-data-grid-cell-actions__actions", g.value]),
2047
+ role: "group"
2048
+ }, [
2049
+ (u(!0), S(ve, null, pe(R.value, (s, p) => (u(), S("div", {
2050
+ key: p,
2051
+ class: "b-data-grid-cell-actions__action"
2052
+ }, [
2053
+ s.menuData ? (u(), W(o(ct), {
2054
+ key: 0,
2055
+ data: c(s.menuData),
2056
+ button: {
2057
+ condensed: !0,
2058
+ variant: "secondary",
2059
+ disabled: s.disabled
2060
+ },
2061
+ "disable-arrow-down-opening-menu": e.disableArrowDownOpeningMenu,
2062
+ teleport: e.teleportMenu,
2063
+ onOpen: C[0] || (C[0] = ($) => r("menu-open")),
2064
+ onClose: C[1] || (C[1] = ($) => r("menu-close")),
2065
+ onMenuItemClick: C[2] || (C[2] = ($) => r("menu-item-click"))
2066
+ }, Ve({ _: 2 }, [
2067
+ N(s) ? {
2068
+ name: "iconLeft",
2069
+ fn: G(() => [
2070
+ (s == null ? void 0 : s.variant) === "more" ? (u(), W(o(Ol), {
2071
+ key: 0,
2072
+ "svg-title": E.value(s, !0)
2073
+ }, null, 8, ["svg-title"])) : (u(), W(je(s.iconLeft), {
2074
+ key: 1,
2075
+ "svg-title": E.value(s, !0)
2076
+ }, null, 8, ["svg-title"]))
2077
+ ]),
2078
+ key: "0"
2079
+ } : void 0,
2080
+ s != null && s.isShort ? void 0 : {
2081
+ name: "default",
2082
+ fn: G(() => [
2083
+ ue(X(E.value(s)), 1)
2084
+ ]),
2085
+ key: "1"
2086
+ }
2087
+ ]), 1032, ["data", "button", "disable-arrow-down-opening-menu", "teleport"])) : s.variant === "copy" ? (u(), W(o(Bl), {
2088
+ key: 1,
2089
+ text: T(s),
2090
+ "button-text": E.value(s),
2091
+ button: {
2092
+ condensed: !0,
2093
+ variant: "secondary"
2094
+ }
2095
+ }, null, 8, ["text", "button-text"])) : (u(), W(o(rn), le({
2096
+ key: 2,
2097
+ condensed: "",
2098
+ variant: "secondary",
2099
+ critical: s.critical,
2100
+ disabled: s.disabled,
2101
+ link: s.link
2102
+ }, lt(U(s))), Ve({ _: 2 }, [
2103
+ s.iconLeft || s.variant === "edit" ? {
2104
+ name: "iconLeft",
2105
+ fn: G(() => [
2106
+ (s == null ? void 0 : s.variant) === "edit" ? (u(), W(o(Is), {
2107
+ key: 0,
2108
+ "svg-title": E.value(s, !0)
2109
+ }, null, 8, ["svg-title"])) : (u(), W(je(s.iconLeft), {
2110
+ key: 1,
2111
+ "svg-title": s.title
2112
+ }, null, 8, ["svg-title"]))
2113
+ ]),
2114
+ key: "0"
2115
+ } : void 0,
2116
+ s != null && s.isShort ? void 0 : {
2117
+ name: "default",
2118
+ fn: G(() => [
2119
+ ue(X(E.value(s)), 1)
2120
+ ]),
2121
+ key: "1"
2122
+ },
2123
+ s.iconRight || s.variant === "open" ? {
2124
+ name: "iconRight",
2125
+ fn: G(() => [
2126
+ (s == null ? void 0 : s.variant) === "open" ? (u(), W(o(Pl), {
2127
+ key: 0,
2128
+ "svg-title": E.value(s, !0)
2129
+ }, null, 8, ["svg-title"])) : (u(), W(je(s.iconRight), {
2130
+ key: 1,
2131
+ "svg-title": s.title
2132
+ }, null, 8, ["svg-title"]))
2133
+ ]),
2134
+ key: "2"
2135
+ } : void 0
2136
+ ]), 1040, ["critical", "disabled", "link"]))
2137
+ ]))), 128))
2138
+ ], 2)
2139
+ ])
2140
+ ]),
2141
+ _: 1
2142
+ }));
2143
+ }
2144
+ }), hn = /* @__PURE__ */ ie(ks, [["__scopeId", "data-v-b428010b"]]), Cn = Symbol("data-grid slashed zero key");
2145
+ var de = /* @__PURE__ */ ((e) => (e.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", e.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", e.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e.SLASHED_ZERO = "slashed-zero", e))(de || {});
2146
+ const en = () => {
2147
+ const e = document.activeElement;
2148
+ return e ? e.matches(":focus-visible") || e.matches(".focus-visible") : !1;
2149
+ }, wn = {
2150
+ "en-US": {
2151
+ collapseNestedContent: "Collapse nested content",
2152
+ expandNestedContent: "Expand nested content",
2153
+ selectRow: "Select row"
2154
+ }
2155
+ }, Ms = ["aria-hidden", "data-testid", "data-cellindex", "tabindex", "aria-colindex"], zs = ["title"], Us = {
2156
+ key: 0,
2157
+ class: "b-data-grid-cell__cell-actions"
2158
+ }, Fs = {
2159
+ i18n: { messages: wn },
2160
+ name: "data-grid-cell"
2161
+ }, Ps = /* @__PURE__ */ $e({
2162
+ ...Fs,
2163
+ props: {
2164
+ draggingEventsForRowCell: {
2165
+ type: Function,
2166
+ required: !0
2167
+ },
2168
+ /**
2169
+ * The columns sets including
2170
+ */
2171
+ columnSets: {
2172
+ type: Array,
2173
+ required: !0
2174
+ },
2175
+ /**
2176
+ * The columns set we are iterating over
2177
+ */
2178
+ column: {
2179
+ type: Object,
2180
+ required: !0
2181
+ },
2182
+ colIndex: {
2183
+ type: Number,
2184
+ required: !0
2185
+ },
2186
+ columnSetIndex: {
2187
+ type: Number,
2188
+ required: !0
2189
+ },
2190
+ /**
2191
+ * Sets the row cells to the condensed padding state.
2192
+ */
2193
+ condensed: {
2194
+ type: Boolean,
2195
+ default: !1
2196
+ },
2197
+ /**
2198
+ * Columns being dragged, contains dragging column and a target column
2199
+ */
2200
+ draggingColumns: {
2201
+ type: Object,
2202
+ default: void 0
2203
+ },
2204
+ /**
2205
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2206
+ * This is used selecting and performance reasons and must exist in each data item.
2207
+ */
2208
+ getDataItemId: {
2209
+ type: Function,
2210
+ default: (e) => e.id
2211
+ },
2212
+ /**
2213
+ * Set to true if the cell has a darker background when zebra rows is enabled.
2214
+ */
2215
+ hasZebraBackground: {
2216
+ type: Boolean,
2217
+ default: !1
2218
+ },
2219
+ /**
2220
+ * The column hovered over state and whether the hovered over column should show a border right or left.
2221
+ */
2222
+ hoveredOverColumnState: {
2223
+ type: Object,
2224
+ required: !0
2225
+ },
2226
+ /**
2227
+ * A customisable method to determine if a row is not selectable.
2228
+ * The default is that every row is selectable.
2229
+ */
2230
+ isDataItemDisabled: {
2231
+ type: Function,
2232
+ default: () => !1
2233
+ },
2234
+ isMeasuringColumnWidths: {
2235
+ type: Boolean,
2236
+ default: !1
2237
+ },
2238
+ /**
2239
+ * Determines if the nested content is visible.
2240
+ */
2241
+ isNestedContentExpanded: {
2242
+ type: Boolean,
2243
+ default: !1
2244
+ },
2245
+ /**
2246
+ * Determines if the nest content slot is enabled for this data row.
2247
+ */
2248
+ nestedContent: {
2249
+ type: Boolean,
2250
+ default: !1
2251
+ },
2252
+ /**
2253
+ * The IDs of the rows this cell controls to show / hide them.
2254
+ */
2255
+ nestedRowsElementIds: {
2256
+ type: Array,
2257
+ default: () => []
2258
+ },
2259
+ /**
2260
+ * The row data object
2261
+ */
2262
+ rowData: {
2263
+ type: Object,
2264
+ required: !0
2265
+ },
2266
+ rowIndex: {
2267
+ type: Number,
2268
+ required: !0
2269
+ },
2270
+ /**
2271
+ * The row selection checkbox indeterminate state.
2272
+ */
2273
+ selectionIsIndeterminate: {
2274
+ type: Boolean,
2275
+ default: !1
2276
+ },
2277
+ /**
2278
+ * Determines if the row selection is enabled.
2279
+ */
2280
+ selectable: {
2281
+ type: Boolean,
2282
+ default: !1
2283
+ },
2284
+ selectedItems: {
2285
+ type: Array,
2286
+ required: !0
2287
+ }
2288
+ },
2289
+ emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
2290
+ setup(e, { expose: a, emit: i }) {
2291
+ const t = Ct(), r = _t(t), { t: n } = Ue({ messages: wn }), l = e, g = i, f = A(null), h = A(null), R = A(!1), E = A([]), U = A(!1), y = A(), c = A(!1), T = b(() => {
2292
+ var m;
2293
+ return !!((m = l.rowData) != null && m[l.column.field]);
2294
+ }), N = b(
2295
+ () => {
2296
+ var m;
2297
+ return l.column.field === be && ((m = l.nestedRowsElementIds) == null ? void 0 : m.length) > 0 ? l.nestedRowsElementIds.join(" ") : void 0;
2298
+ }
2299
+ ), v = b(
2300
+ () => l.column.field === be && !l.selectable && !l.nestedContent
2301
+ ), C = b(() => w(l.rowIndex, l.colIndex, l.columnSetIndex) === 0 && !c.value ? "0" : l.column.field === be ? "-1" : U.value ? "0" : "-1"), s = (m, Z) => (m == null ? void 0 : m.overflow) === gt.ELLIPSIS ? `${Z}` : void 0, p = (m) => m ?? "-", $ = (m) => l.columnSets.slice(0, m).reduce((Z, { columnSet: q }) => Z + q.length, 0), k = (m, Z) => m + $(Z), w = (m, Z, q) => $() * m + k(Z, q), _ = (m) => {
2302
+ var Z;
2303
+ (m === null || !f.value.contains(m) && !((Z = E.value) != null && Z.map((q) => q.value).some((q) => q === m || (q == null ? void 0 : q.contains(m))))) && (R.value = !1);
2304
+ }, M = () => {
2305
+ R.value = !1;
2306
+ }, x = A(!1), fe = (m) => {
2307
+ const Z = {
2308
+ ...l.draggingEventsForRowCell(m),
2309
+ // Focus on the first interactive child in the grid cell if one exists
2310
+ focus: async () => {
2311
+ if (!en())
2312
+ return;
2313
+ U.value = !0, c.value = !0, fn(y.value), await Ce(), Et(f.value) && (x.value = !0);
2314
+ },
2315
+ focusout: () => {
2316
+ en() && (x.value = !1);
2317
+ },
2318
+ keydown: (V) => {
2319
+ V.key !== Ae.TAB && (x.value = !1, U.value = !1, He(f.value));
2320
+ }
2321
+ }, q = { ...Z };
2322
+ return m.frozen && (q.keyup = (V) => g("on-frozen-columns-key-press", V), q.keydown = (V) => {
2323
+ Z.keydown(V), g("on-frozen-columns-key-press", V);
2324
+ }), m.cellActions && (q.mouseenter = () => {
2325
+ R.value = !0;
2326
+ }, q.mouseleave = (V) => {
2327
+ R.value = !1, _(V == null ? void 0 : V.relatedTarget);
2328
+ }, q.mouseleave = (V) => {
2329
+ _(V == null ? void 0 : V.relatedTarget);
2330
+ }, q.focus = async (V) => {
2331
+ Z.focus(V), await Ce(), R.value = !0;
2332
+ }, q.focusout = (V) => {
2333
+ Z.focusout(V), _(V == null ? void 0 : V.relatedTarget);
2334
+ }), q;
2335
+ };
2336
+ Ke(() => {
2337
+ y.value = He(f.value);
2338
+ });
2339
+ const oe = () => {
2340
+ g("nested-content-toggled");
2341
+ };
2342
+ ye(
2343
+ () => R.value,
2344
+ () => {
2345
+ R.value === !0 ? g("cell-hovered", l.rowIndex) : g("cell-hovered", -1);
2346
+ }
2347
+ ), on(Tl, {
2348
+ registerMenuContainerElement: (m) => {
2349
+ E.value.push(m);
2350
+ },
2351
+ menuMouseLeave: (m) => {
2352
+ f.value.contains(m == null ? void 0 : m.relatedTarget) || (R.value = !1);
2353
+ }
2354
+ });
2355
+ const he = ut(Cn, A(!1)), ge = (m) => {
2356
+ var Z, q, V, d, H, I, se;
2357
+ return {
2358
+ [`b-data-grid-cell--${de.COLUMN_HOVERED}`]: (m == null ? void 0 : m.field) === l.hoveredOverColumnState.hoveredOverColumnField,
2359
+ [`b-data-grid-cell--${de.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (m == null ? void 0 : m.field) === l.hoveredOverColumnState.hoveredOverColumnField && l.hoveredOverColumnState.noBorderLeft,
2360
+ [`b-data-grid-cell--${de.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (m == null ? void 0 : m.field) === l.hoveredOverColumnState.hoveredOverColumnField && l.hoveredOverColumnState.noBorderRight,
2361
+ [`b-data-grid-cell--${de.PADDING_LEFT_UNSET}`]: ((Z = m == null ? void 0 : m.padding) == null ? void 0 : Z.left) === !1,
2362
+ [`b-data-grid-cell--${de.PADDING_RIGHT_UNSET}`]: ((q = m == null ? void 0 : m.padding) == null ? void 0 : q.right) === !1,
2363
+ [`b-data-grid-cell--${de.NUMERIC}`]: m == null ? void 0 : m.numeric,
2364
+ [`b-data-grid-cell--${de.CONDENSED}`]: l.condensed,
2365
+ [`b-data-grid-cell--${de.OVERFLOW_ELLIPSIS}`]: (m == null ? void 0 : m.overflow) === gt.ELLIPSIS,
2366
+ [`b-data-grid-cell--${de.IS_COLUMN_REORDERING}`]: ((V = l.draggingColumns.dragging) == null ? void 0 : V.field) === m.field,
2367
+ [`b-data-grid-cell--${de.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((d = l.draggingColumns.target) == null ? void 0 : d.field) === m.field && ((H = l.draggingColumns) == null ? void 0 : H.dragToLeft),
2368
+ [`b-data-grid-cell--${de.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((I = l.draggingColumns.target) == null ? void 0 : I.field) === m.field && !((se = l.draggingColumns) != null && se.dragToLeft),
2369
+ [`b-data-grid-cell--${de.FROZEN}`]: m == null ? void 0 : m.frozen,
2370
+ [`b-data-grid-cell--${de.NESTED_CONTENT_ENABLED}`]: l.nestedContent,
2371
+ [`b-data-grid-cell--${de.ACTION_COL_NESTED_CONTENT_ENABLED}`]: l.nestedContent && !l.selectable && m.field === be,
2372
+ [`b-data-grid-cell--${de.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: l.nestedContent && l.selectable && m.field === be,
2373
+ [`b-data-grid-cell--${de.ACTION_COL_SELECTION_ENABLED}`]: m.field === be && l.selectable,
2374
+ [`b-data-grid-cell--${de.SLASHED_ZERO}`]: he.value
2375
+ };
2376
+ }, Q = b(() => ({
2377
+ "b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": x.value
2378
+ }));
2379
+ return a({
2380
+ gridcellRef: f
2381
+ }), (m, Z) => {
2382
+ var q;
2383
+ return u(), S("div", le({
2384
+ key: `cell-${e.column.field}`,
2385
+ ref_key: "gridcellRef",
2386
+ ref: f,
2387
+ "aria-hidden": v.value,
2388
+ "data-testid": `cell-${e.column.field}`,
2389
+ "data-cellindex": w(e.rowIndex, e.colIndex, e.columnSetIndex),
2390
+ class: ["b-data-grid-cell", ge(e.column)],
2391
+ role: "gridcell",
2392
+ tabindex: C.value,
2393
+ "aria-colindex": k(e.colIndex, e.columnSetIndex) + 1,
2394
+ style: {
2395
+ width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
2396
+ }
2397
+ }, lt(fe(e.column), !0)), [
2398
+ e.column.field === o(be) ? (u(), S(ve, { key: 0 }, [
2399
+ e.selectable ? (u(), W(o(tt), {
2400
+ key: 0,
2401
+ class: "b-data-grid-cell__select-cell",
2402
+ "aria-label": o(n)("selectRow"),
2403
+ disabled: e.isDataItemDisabled(e.rowData),
2404
+ indeterminate: e.selectionIsIndeterminate,
2405
+ "model-value": e.selectedItems,
2406
+ value: e.getDataItemId(e.rowData),
2407
+ tabindex: U.value ? 0 : -1,
2408
+ "onUpdate:modelValue": Z[0] || (Z[0] = (V) => m.$emit("select-row", V))
2409
+ }, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value", "tabindex"])) : B("", !0),
2410
+ e.nestedContent ? (u(), W(o(yt), {
2411
+ key: 1,
2412
+ ref: "menuButtonRef",
2413
+ "aria-haspopup": "true",
2414
+ "aria-controls": N.value,
2415
+ condensed: "",
2416
+ variant: "tertiary",
2417
+ toggled: e.isNestedContentExpanded,
2418
+ onClick: oe
2419
+ }, {
2420
+ iconLeft: G(() => [
2421
+ e.isNestedContentExpanded ? (u(), W(o(Hl), {
2422
+ key: 0,
2423
+ class: "b-accordion-item__icon",
2424
+ "svg-title": o(n)("collapseNestedContent")
2425
+ }, null, 8, ["svg-title"])) : (u(), W(o(Wl), {
2426
+ key: 1,
2427
+ class: "b-accordion-item__icon",
2428
+ "svg-title": o(n)("expandNestedContent")
2429
+ }, null, 8, ["svg-title"]))
2430
+ ]),
2431
+ _: 1
2432
+ }, 8, ["aria-controls", "toggled"])) : B("", !0)
2433
+ ], 64)) : (u(), S(ve, { key: 1 }, [
2434
+ J(o(Ye), {
2435
+ el: "div",
2436
+ class: ce(["b-data-grid-cell__cell-content", Q.value]),
2437
+ "data-testid": "cell-content"
2438
+ }, {
2439
+ default: G(() => [
2440
+ Ie(m.$slots, `item-${e.column.field}`, {
2441
+ item: e.rowData,
2442
+ rowIndex: e.rowIndex
2443
+ }, () => [
2444
+ O("span", {
2445
+ title: s(e.column, e.rowData[e.column.field])
2446
+ }, X(p(e.rowData[e.column.field])), 9, zs)
2447
+ ], !0)
2448
+ ]),
2449
+ _: 3
2450
+ }, 8, ["class"]),
2451
+ ((q = e.column.cellActions) == null ? void 0 : q.length) > 0 ? (u(), S("div", Us, [
2452
+ R.value && (T.value || o(r)(`item-${e.column.field}`)) ? (u(), W(hn, {
2453
+ key: 0,
2454
+ ref_key: "cellActionsRef",
2455
+ ref: h,
2456
+ "cell-actions": e.column.cellActions,
2457
+ "column-key": e.column.field,
2458
+ "row-data-item": e.rowData,
2459
+ "has-zebra-background": e.hasZebraBackground,
2460
+ "teleport-menu": "",
2461
+ onMenuItemClick: M
2462
+ }, null, 8, ["cell-actions", "column-key", "row-data-item", "has-zebra-background"])) : B("", !0)
2463
+ ])) : B("", !0)
2464
+ ], 64))
2465
+ ], 16, Ms);
2466
+ };
2467
+ }
2468
+ }), Bs = /* @__PURE__ */ ie(Ps, [["__scopeId", "data-v-54fa2247"]]), Ws = { class: "b-data-grid-row-container" }, Hs = ["id", "aria-selected"], Gs = ["data-testid"], Vs = ["aria-colindex", "data-cellindex"], xs = {
2469
+ key: 0,
2470
+ class: "b-data-grid-row-container__row-nested-rows-loading-container"
2471
+ }, Zs = { key: 2 }, js = {
2472
+ name: "data-grid-row"
2473
+ }, qs = /* @__PURE__ */ $e({
2474
+ ...js,
2475
+ props: {
2476
+ /**
2477
+ * Row actions property that generates which button to show in row actions area
2478
+ */
2479
+ rowActions: {
2480
+ type: [Function, Array],
2481
+ default: void 0
2482
+ },
2483
+ /**
2484
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
2485
+ */
2486
+ allowRowClicks: { type: Boolean, default: !1 },
2487
+ /**
2488
+ * The columns sets including
2489
+ */
2490
+ columnSets: {
2491
+ type: Array,
2492
+ required: !0
2493
+ },
2494
+ /**
2495
+ * Sets the row cells to the condensed padding state.
2496
+ */
2497
+ condensed: {
2498
+ type: Boolean,
2499
+ default: !1
2500
+ },
2501
+ /**
2502
+ * Columns being dragged, contains dragging column and a target column
2503
+ */
2504
+ draggingColumns: {
2505
+ type: Object,
2506
+ default: void 0
2507
+ },
2508
+ /**
2509
+ * Dragging event handlers for each row cell
2510
+ */
2511
+ draggingEventsForRowCell: {
2512
+ type: Function,
2513
+ required: !0
2514
+ },
2515
+ /**
2516
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2517
+ * This is used selecting and performance reasons and must exist in each data item.
2518
+ */
2519
+ getDataItemId: {
2520
+ type: Function,
2521
+ default: (e) => e.id
2522
+ },
2523
+ /**
2524
+ * Set to true if the datagrid has been scrolled and the left side has overflowing space.
2525
+ */
2526
+ hasLeftOverflow: {
2527
+ type: Boolean,
2528
+ default: !1
2529
+ },
2530
+ /**
2531
+ * Enables the nested content slot functionality.
2532
+ */
2533
+ hasNestedContent: {
2534
+ type: Boolean,
2535
+ default: !1
2536
+ },
2537
+ /**
2538
+ * Enables the nested content slot functionality.
2539
+ */
2540
+ hasNestedRows: {
2541
+ type: Boolean,
2542
+ default: !1
2543
+ },
2544
+ /**
2545
+ * Set to true if the datagrid has been scrolled and the right side has overflowing space.
2546
+ */
2547
+ hasRightOverflow: {
2548
+ type: Boolean,
2549
+ default: !1
2550
+ },
2551
+ /**
2552
+ * Highlighted row IDs.
2553
+ */
2554
+ highlightedRows: {
2555
+ type: Array,
2556
+ default: () => []
2557
+ },
2558
+ /**
2559
+ * The row index of a currently hovered row.
2560
+ */
2561
+ hoveredRowIndex: {
2562
+ type: Number,
2563
+ default: -1
2564
+ },
2565
+ /**
2566
+ * The column hovered over state and whether the hovered over column should show a border right or left.
2567
+ */
2568
+ hoveredOverColumnState: {
2569
+ type: Object,
2570
+ required: !0
2571
+ },
2572
+ /**
2573
+ * A customisable method to determine if a row is not selectable.
2574
+ * The default is that every row is selectable.
2575
+ */
2576
+ isDataItemDisabled: {
2577
+ type: Function,
2578
+ default: () => !1
2579
+ },
2580
+ /**
2581
+ * If the row is of an even number.
2582
+ * Rows are 0th based index e.g. index 0 is an odd-numbered row.
2583
+ */
2584
+ isRowEven: {
2585
+ type: Boolean,
2586
+ default: !1
2587
+ },
2588
+ /**
2589
+ * If the row is the last child in it's parent container.
2590
+ */
2591
+ isRowLastChild: {
2592
+ type: Boolean,
2593
+ default: !1
2594
+ },
2595
+ /**
2596
+ * If columns are being measured for the autoWidth functionality.
2597
+ */
2598
+ isMeasuringColumnWidths: {
2599
+ type: Boolean,
2600
+ default: !1
2601
+ },
2602
+ /**
2603
+ * Determines if this row is nested inside another row.
2604
+ */
2605
+ isNestedRow: {
2606
+ type: Boolean,
2607
+ default: !1
2608
+ },
2609
+ /**
2610
+ * The maximum width of the row actions in all rows
2611
+ */
2612
+ rowActionsMaximumWidth: {
2613
+ type: Number,
2614
+ default: 0
2615
+ },
2616
+ /**
2617
+ * The row data object
2618
+ */
2619
+ rowData: {
2620
+ type: Object,
2621
+ required: !0
2622
+ },
2623
+ /**
2624
+ * The row index.
2625
+ */
2626
+ rowIndex: {
2627
+ type: Number,
2628
+ required: !0
2629
+ },
2630
+ /**
2631
+ * The row ID to be using for the ID attribute.
2632
+ */
2633
+ rowId: {
2634
+ type: Number,
2635
+ default: void 0
2636
+ },
2637
+ /**
2638
+ * The number of rows that this row is within.
2639
+ */
2640
+ rowSetSize: {
2641
+ type: Number,
2642
+ default: 0
2643
+ },
2644
+ /**
2645
+ * Determines whether to render frozen seperator on the row.
2646
+ */
2647
+ showFrozenColumnsSeparator: {
2648
+ type: Boolean,
2649
+ default: !1
2650
+ },
2651
+ /**
2652
+ * Determines if the row selection is enabled.
2653
+ */
2654
+ selectable: {
2655
+ type: Boolean,
2656
+ default: !1
2657
+ },
2658
+ /**
2659
+ * The array of IDs for the selected rows.
2660
+ */
2661
+ selectedItems: {
2662
+ type: Array,
2663
+ required: !0
2664
+ },
2665
+ /**
2666
+ * Enables / Disables the nested-content slot
2667
+ */
2668
+ shouldShowNestedContent: {
2669
+ type: Function,
2670
+ default: (e) => !0
2671
+ },
2672
+ /**
2673
+ * Returns the nested rows for a given BentoDatagridDataItem.
2674
+ */
2675
+ shouldShowNestedRows: {
2676
+ type: Function,
2677
+ default: (e) => !0
2678
+ }
2679
+ },
2680
+ emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
2681
+ setup(e, { expose: a, emit: i }) {
2682
+ const t = Ct(), r = _t(t), n = e, l = i, g = A({}), f = A(!1), h = A(), R = A(), E = ft("nested-content-slot"), U = A(!1), y = A();
2683
+ Ke(() => {
2684
+ R.value && (y.value = He(R.value));
2685
+ });
2686
+ const c = b(() => n.shouldShowNestedRows(n.rowData)), T = b(
2687
+ () => {
2688
+ var L, z;
2689
+ return !n.isNestedRow && n.hasNestedRows && c.value && ((z = (L = n.rowData) == null ? void 0 : L.children) == null ? void 0 : z.length) > 0;
2690
+ }
2691
+ ), N = b(
2692
+ () => {
2693
+ var L, z;
2694
+ return !n.isNestedRow && n.hasNestedRows && c.value && (((L = n.rowData) == null ? void 0 : L.children) === void 0 || ((z = n == null ? void 0 : n.rowData) == null ? void 0 : z.children.length) === 0);
2695
+ }
2696
+ ), v = b(
2697
+ () => n.hasNestedContent && n.shouldShowNestedContent(n.rowData) || n.hasNestedRows && c.value && !n.isNestedRow
2698
+ ), C = b(() => {
2699
+ if (n.hasNestedContent || n.hasNestedRows) {
2700
+ const L = f.value.toString();
2701
+ return {
2702
+ "aria-expanded": v.value ? L : void 0,
2703
+ "aria-level": n.isNestedRow ? "2" : "1",
2704
+ "aria-posinset": n.rowIndex + 1,
2705
+ "aria-setsize": n.rowSetSize
2706
+ };
2707
+ }
2708
+ return { "aria-rowindex": n.rowIndex + 1 };
2709
+ }), s = b(() => {
2710
+ if (N.value)
2711
+ return {
2712
+ "aria-busy": "true",
2713
+ "aria-live": "polite"
2714
+ };
2715
+ if (!(T.value || !n.hasNestedContent || !n.shouldShowNestedContent(n.rowData)))
2716
+ return {
2717
+ "aria-level": n.isNestedRow ? "3" : "2",
2718
+ "aria-posinset": "1",
2719
+ "aria-setsize": "1",
2720
+ id: E,
2721
+ role: "row",
2722
+ tabindex: "-1"
2723
+ };
2724
+ }), p = b(() => {
2725
+ var L, z;
2726
+ return T.value ? (z = (L = n.rowData) == null ? void 0 : L.children) == null ? void 0 : z.reduce((Y, ee, j) => (Y[j] = ft("nested-row"), Y), {}) : [];
2727
+ }), $ = b(() => {
2728
+ var L;
2729
+ if (f.value) {
2730
+ if (n.hasNestedContent && n.shouldShowNestedContent(n.rowData))
2731
+ return [E];
2732
+ if (T.value && ((L = Object.keys(p.value)) == null ? void 0 : L.length) > 0) {
2733
+ const z = Object.values(p.value);
2734
+ if ((z == null ? void 0 : z.length) > 0)
2735
+ return z;
2736
+ }
2737
+ return [];
2738
+ }
2739
+ }), k = b(() => {
2740
+ var z, Y;
2741
+ const L = (Y = (z = n.rowData) == null ? void 0 : z.children) == null ? void 0 : Y.map((ee) => n.getDataItemId(ee));
2742
+ if ((L == null ? void 0 : L.length) > 0) {
2743
+ const ee = L.every((re) => {
2744
+ var Le;
2745
+ return (Le = n == null ? void 0 : n.selectedItems) == null ? void 0 : Le.includes(re);
2746
+ }), j = L.some((re) => {
2747
+ var Le;
2748
+ return (Le = n == null ? void 0 : n.selectedItems) == null ? void 0 : Le.includes(re);
2749
+ });
2750
+ return !ee && j;
2751
+ }
2752
+ return !1;
2753
+ }), w = (L, z) => {
2754
+ const Y = L;
2755
+ L !== null && (Y != null && Y.gridcellRef) && (g.value[z] = Y.gridcellRef);
2756
+ }, _ = (L) => p.value[L], M = (L) => {
2757
+ if (!n.selectable)
2758
+ return null;
2759
+ const z = n.getDataItemId(L);
2760
+ return n.selectedItems.includes(z).toString();
2761
+ }, x = (L) => {
2762
+ var ee;
2763
+ if (!n.allowRowClicks)
2764
+ return;
2765
+ let z = !1;
2766
+ const Y = ["button", "input", "a"];
2767
+ for (let j = 0; j < Y.length; j++)
2768
+ if ((ee = L == null ? void 0 : L.target) != null && ee.closest(Y[j])) {
2769
+ z = !0;
2770
+ break;
2771
+ }
2772
+ z || l("row-click", n.rowData, L);
2773
+ }, fe = (L) => {
2774
+ l("select-row", L, n.rowData);
2775
+ }, oe = (L, z) => {
2776
+ l("select-nested-row", z, n.rowData, L);
2777
+ }, we = () => {
2778
+ U.value = !0;
2779
+ }, me = () => {
2780
+ U.value = !1;
2781
+ }, he = () => {
2782
+ var L;
2783
+ fn([(L = y.value) == null ? void 0 : L[0]]), Et(R.value);
2784
+ }, ge = () => {
2785
+ He(R.value);
2786
+ }, Q = (L) => {
2787
+ var z, Y;
2788
+ L.key !== Ae.TAB && He(R.value), L.key === Ae.ARROW_RIGHT && ((z = y.value) == null ? void 0 : z.length) > 1 && y.value[0].node === document.activeElement ? (He(R.value), y.value[1].node.setAttribute("tabindex", "0"), y.value[1].node.focus(), L.stopPropagation(), L.preventDefault()) : L.key === Ae.ARROW_LEFT && ((Y = y.value) == null ? void 0 : Y.length) > 1 && y.value[1].node === document.activeElement && (He(R.value), y.value[0].node.setAttribute("tabindex", "0"), y.value[0].node.focus(), L.stopPropagation(), L.preventDefault());
2789
+ }, m = () => n.columnSets.reduce((L, { columnSet: z }) => L + z.length, 0), Z = () => m() * n.rowIndex + m(), { updateContentHeight: q, contentHeight: V } = Fl(h, f), d = b(() => {
2790
+ var L;
2791
+ if (n.hasNestedContent || n.hasNestedRows)
2792
+ return {
2793
+ paddingLeft: `${T.value || N.value ? 0 : g.value[be].clientWidth + cn}px`,
2794
+ "max-height": (n.hasNestedContent || n.hasNestedRows) && V.value && !((L = V == null ? void 0 : V.value) != null && L.includes("null")) ? V.value : 0
2795
+ };
2796
+ });
2797
+ ye(
2798
+ () => h.value,
2799
+ () => {
2800
+ let L = null;
2801
+ !L && h.value && (L = bt(h.value, () => {
2802
+ h.value && q();
2803
+ }));
2804
+ }
2805
+ );
2806
+ const H = () => {
2807
+ f.value = !f.value, q(), l("nested-content-toggled", n.rowData);
2808
+ };
2809
+ ye(
2810
+ () => {
2811
+ var L;
2812
+ return (L = n.rowData) == null ? void 0 : L.children;
2813
+ },
2814
+ (L, z) => {
2815
+ var Y, ee;
2816
+ ((ee = (Y = n == null ? void 0 : n.rowData) == null ? void 0 : Y.children) == null ? void 0 : ee.length) > 0 && z === void 0 && !f.value && q();
2817
+ }
2818
+ );
2819
+ const I = (L, z) => ({
2820
+ "b-data-grid-row-container__row--disabled": n.isDataItemDisabled(L),
2821
+ "b-data-grid-row-container__row--row-clicks-enabled": n.allowRowClicks,
2822
+ "b-data-grid-row-container__row--highlighted": n.highlightedRows.includes(n.getDataItemId(L)) || n.selectedItems.includes(n.getDataItemId(L)),
2823
+ "b-data-grid-row-container__row--hovered": n.hoveredRowIndex === z,
2824
+ "b-data-grid-row-container__row--is-last-child": n.isRowLastChild && !f.value,
2825
+ "b-data-grid-row-container__row--nested-row": n.isNestedRow,
2826
+ "b-data-grid-row-container__row--zebra": n.isRowEven
2827
+ }), se = (L) => ({
2828
+ "b-data-grid-row-container__row-cell-set--frozen": L,
2829
+ [`b-data-grid-row-container__row-cell-set--${Ne.OVERFLOW_SHADOW_LEFT}`]: L && n.hasLeftOverflow,
2830
+ "b-data-grid-row-container__row-cell-set--frozen-separator": L && n.showFrozenColumnsSeparator,
2831
+ "b-data-grid-row-container__row-cell-set--unfrozen": !L,
2832
+ "b-data-grid-row-container__row-cell-set--is-measuring": n.isMeasuringColumnWidths
2833
+ }), te = b(() => ({
2834
+ "b-data-grid-row-container__row-nested-slot--is-last-child": n.isRowLastChild,
2835
+ "b-data-grid-row-container__row-nested-slot": !T.value && n.shouldShowNestedContent(n.rowData)
2836
+ })), Fe = b(() => ({
2837
+ "b-data-grid-row-container__row-actions-container--row-actions-menu-open": U.value
2838
+ })), Ge = b(() => ({
2839
+ minWidth: `${n.rowActionsMaximumWidth}px`
2840
+ }));
2841
+ return a({
2842
+ gridcellRefs: g,
2843
+ rowActionsRef: R
2844
+ }), (L, z) => {
2845
+ var Y;
2846
+ return u(), S("div", Ws, [
2847
+ (u(), S("div", le(C.value, {
2848
+ id: (Y = e.rowId) == null ? void 0 : Y.toString(),
2849
+ key: e.rowIndex,
2850
+ class: ["b-data-grid-row-container__row", I(e.rowData, e.rowIndex)],
2851
+ role: "row",
2852
+ "aria-selected": M(e.rowData),
2853
+ onClick: x,
2854
+ onKeyup: [
2855
+ Dt(x, ["enter"]),
2856
+ Dt(x, ["space"])
2857
+ ]
2858
+ }), [
2859
+ (u(!0), S(ve, null, pe(e.columnSets, ({ columnSet: ee, id: j, isFrozenColumns: re }, Le) => (u(), S(ve, null, [
2860
+ ee != null && ee.length ? (u(), S("div", {
2861
+ key: `data-grid-rows-${j}`,
2862
+ class: ce(["b-data-grid-row-container__cells", se(re)]),
2863
+ "data-testid": `data-grid-${j}-rows`
2864
+ }, [
2865
+ (u(!0), S(ve, null, pe(ee, (Pe, st) => (u(), W(o(Bs), {
2866
+ key: `cell-${Pe.field}`,
2867
+ ref_for: !0,
2868
+ ref: (De) => w(De, Pe.field),
2869
+ class: "b-data-grid-row-container__cell",
2870
+ column: Pe,
2871
+ "column-set-index": Le,
2872
+ "col-index": st,
2873
+ "column-sets": e.columnSets,
2874
+ condensed: e.condensed,
2875
+ "dragging-columns": e.draggingColumns,
2876
+ "dragging-events-for-row-cell": e.draggingEventsForRowCell,
2877
+ "get-data-item-id": e.getDataItemId,
2878
+ "has-zebra-background": e.isRowEven,
2879
+ "hovered-over-column-state": e.hoveredOverColumnState,
2880
+ "is-data-item-disabled": e.isDataItemDisabled,
2881
+ "is-measuring-column-widths": e.isMeasuringColumnWidths,
2882
+ "is-nested-content-expanded": f.value,
2883
+ "nested-content": v.value,
2884
+ "nested-rows-element-ids": $.value,
2885
+ "row-data": e.rowData,
2886
+ "row-index": e.rowIndex,
2887
+ "selection-is-indeterminate": k.value,
2888
+ selectable: e.selectable,
2889
+ "selected-items": e.selectedItems,
2890
+ onCellHovered: z[0] || (z[0] = (De) => l("cell-hovered", De)),
2891
+ onOnFrozenColumnsKeyPress: z[1] || (z[1] = (De) => l("on-frozen-columns-key-press", De)),
2892
+ onSelectRow: fe,
2893
+ onNestedContentToggled: H
2894
+ }, Ve({ _: 2 }, [
2895
+ pe(o(t), (De, Be) => ({
2896
+ name: Be,
2897
+ fn: G((at) => [
2898
+ Ie(L.$slots, Be, le({ ref_for: !0 }, at), void 0, !0)
2899
+ ])
2900
+ }))
2901
+ ]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-zebra-background", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "is-nested-content-expanded", "nested-content", "nested-rows-element-ids", "row-data", "row-index", "selection-is-indeterminate", "selectable", "selected-items"]))), 128))
2902
+ ], 10, Gs)) : B("", !0),
2903
+ !re && e.rowActions ? (u(), S("div", {
2904
+ key: `data-grid-row-actions-${j}`,
2905
+ ref_for: !0,
2906
+ ref_key: "rowActionsRef",
2907
+ ref: R,
2908
+ "aria-colindex": m().toString(),
2909
+ class: ce(["b-data-grid-row-container__row-actions-container", Fe.value]),
2910
+ style: Me(Ge.value),
2911
+ "data-cellindex": Z(),
2912
+ tabindex: "-1",
2913
+ role: "gridcell",
2914
+ onFocus: he,
2915
+ "on:focusOut": ge,
2916
+ onKeydown: Q
2917
+ }, [
2918
+ J(o(hn), {
2919
+ class: "b-data-grid-row-container__row-actions",
2920
+ "disable-arrow-down-opening-menu": "",
2921
+ "cell-actions": e.rowActions,
2922
+ "has-right-overflow": e.hasRightOverflow,
2923
+ "row-data-item": e.rowData,
2924
+ "teleport-menu": "",
2925
+ onMenuOpen: we,
2926
+ onMenuClose: me
2927
+ }, null, 8, ["cell-actions", "has-right-overflow", "row-data-item"])
2928
+ ], 46, Vs)) : B("", !0)
2929
+ ], 64))), 256))
2930
+ ], 16, Hs)),
2931
+ e.hasNestedContent && o(r)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && c.value ? (u(), W(ln, {
2932
+ key: `${e.rowIndex}-nest-content`,
2933
+ name: "b-data-grid-row-container__animation--nested-content"
2934
+ }, {
2935
+ default: G(() => [
2936
+ f.value ? (u(), S("div", le({ key: 0 }, s.value, {
2937
+ class: te.value,
2938
+ "data-testid": "nested-content-container",
2939
+ style: d.value
2940
+ }), [
2941
+ O("div", {
2942
+ ref_key: "nestedContentRef",
2943
+ ref: h
2944
+ }, [
2945
+ N.value ? (u(), S("div", xs, [
2946
+ J(o(wt))
2947
+ ])) : T.value ? (u(!0), S(ve, { key: 1 }, pe(e.rowData.children, (ee, j) => (u(), W(_n, le({ ref_for: !0 }, n, {
2948
+ id: _(j),
2949
+ key: `child-${j}`,
2950
+ "row-data": ee,
2951
+ "row-index": j,
2952
+ "row-set-size": e.rowData.children.length,
2953
+ "is-nested-row": "",
2954
+ onCellHovered: z[2] || (z[2] = (re) => l("cell-hovered", re)),
2955
+ onRowClick: z[3] || (z[3] = (re) => l("row-click", ...re)),
2956
+ onOnFrozenColumnsKeyPress: z[4] || (z[4] = (re) => l("on-frozen-columns-key-press", re)),
2957
+ onSelectRow: (re) => oe(ee, re)
2958
+ }), Ve({ _: 2 }, [
2959
+ pe(o(t), (re, Le) => ({
2960
+ name: Le,
2961
+ fn: G((Pe) => [
2962
+ Ie(L.$slots, Le, le({ ref_for: !0 }, Pe), void 0, !0)
2963
+ ])
2964
+ }))
2965
+ ]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128)) : o(r)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (u(), S("div", Zs, [
2966
+ Ie(L.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
2967
+ ])) : B("", !0)
2968
+ ], 512)
2969
+ ], 16)) : B("", !0)
2970
+ ]),
2971
+ _: 3
2972
+ })) : B("", !0)
2973
+ ]);
2974
+ };
2975
+ }
2976
+ }), _n = /* @__PURE__ */ ie(qs, [["__scopeId", "data-v-969603c0"]]);
2977
+ let tn = 0;
2978
+ const Ks = {
2979
+ beforeCreate() {
2980
+ this.uuid = tn.toString(), tn += 1;
2981
+ }
2982
+ }, Ys = { key: 0 }, Xs = ["clip-path"], Js = ["id"];
2983
+ function Qs(e, a, i, t, r, n) {
2984
+ return u(), S("svg", le({ role: "img" }, e.$attrs, {
2985
+ class: "ui-assets-icons-16",
2986
+ xmlns: "http://www.w3.org/2000/svg",
2987
+ width: "16",
2988
+ height: "16",
2989
+ fill: "none"
2990
+ }), [
2991
+ e.$attrs["svg-title"] ? (u(), S("title", Ys, X(e.$attrs["svg-title"]), 1)) : B("", !0),
2992
+ O("g", {
2993
+ "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
2994
+ }, a[0] || (a[0] = [
2995
+ O("path", {
2996
+ fill: "#001222",
2997
+ 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"
2998
+ }, null, -1)
2999
+ ]), 8, Xs),
3000
+ O("defs", null, [
3001
+ O("clipPath", {
3002
+ id: "uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid
3003
+ }, a[1] || (a[1] = [
3004
+ O("rect", {
3005
+ width: "16",
3006
+ height: "16",
3007
+ fill: "#fff"
3008
+ }, null, -1)
3009
+ ]), 8, Js)
3010
+ ])
3011
+ ], 16);
3012
+ }
3013
+ const ea = /* @__PURE__ */ ie(Ks, [["render", Qs]]), ta = ["aria-label"], na = {}, la = /* @__PURE__ */ $e({
3014
+ ...na,
3015
+ __name: "data-grid-static-icon",
3016
+ props: {
3017
+ colored: { type: Boolean, default: !1 },
3018
+ tooltipText: {},
3019
+ variant: { default: "no-value" }
3020
+ },
3021
+ setup(e) {
3022
+ const a = e, i = b(() => {
3023
+ switch (a.variant) {
3024
+ case "checkmark":
3025
+ return gl;
3026
+ case "warning":
3027
+ return vl;
3028
+ case "error":
3029
+ return ea;
3030
+ case "cross":
3031
+ return sn;
3032
+ case "no-value":
3033
+ return kt;
3034
+ default:
3035
+ return kt;
3036
+ }
3037
+ }), t = b(() => ({
3038
+ "b-data-grid-static-icon--colored": a.colored && a.variant !== "no-value"
3039
+ })), r = b(() => `b-data-grid-static-icon__${a.variant}`), n = b(() => wl.AUTO);
3040
+ return (l, g) => ht((u(), S("div", {
3041
+ "aria-label": l.tooltipText,
3042
+ class: ce(["b-data-grid-static-icon", t.value]),
3043
+ tabindex: "0"
3044
+ }, [
3045
+ (u(), W(je(i.value), {
3046
+ class: ce(r.value),
3047
+ "svg-title": l.tooltipText
3048
+ }, null, 8, ["class", "svg-title"]))
3049
+ ], 10, ta)), [
3050
+ [o(ml), l.tooltipText, n.value]
3051
+ ]);
3052
+ }
3053
+ }), ri = /* @__PURE__ */ ie(la, [["__scopeId", "data-v-b8c9e150"]]), bn = {
3054
+ "de-DE": {
3055
+ numberResults: "1 Ergebnis | {count} Ergebnisse"
3056
+ },
3057
+ "en-US": {
3058
+ numberResults: "1 result | {count} results"
3059
+ },
3060
+ "es-ES": {
3061
+ numberResults: "1 resultado | {count} resultados"
3062
+ },
3063
+ "fr-FR": {
3064
+ numberResults: "1 résultat | {count} résultats"
3065
+ },
3066
+ "ja-JP": {
3067
+ numberResults: "結果が見つかりませんでした | {count}件の結果"
3068
+ },
3069
+ "pt-BR": {
3070
+ numberResults: "1 resultado | {count} resultados"
3071
+ }
3072
+ }, oa = { class: "b-data-grid-summary-cell" }, sa = { class: "b-data-grid-summary-cell__list" }, aa = {
3073
+ i18n: { messages: bn }
3074
+ }, ia = /* @__PURE__ */ $e({
3075
+ ...aa,
3076
+ __name: "data-grid-summary-cell",
3077
+ props: {
3078
+ label: {},
3079
+ items: {},
3080
+ dashedUnderline: { default: () => ({}) },
3081
+ searchTerm: { default: "" },
3082
+ tooltipText: { default: null }
3083
+ },
3084
+ setup(e) {
3085
+ const { tc: a } = Ue({ messages: bn }), i = e, t = A(), r = b(() => {
3086
+ var h;
3087
+ return {
3088
+ popoverPosition: "right",
3089
+ // Default is right but can be overriden
3090
+ ...i.dashedUnderline,
3091
+ popoverTitle: ((h = i == null ? void 0 : i.dashedUnderline) == null ? void 0 : h.popoverTitle) ?? i.label,
3092
+ // We force teleport as this is needed for the popover to appear above all the data grid elements
3093
+ teleport: {
3094
+ disabled: !1
3095
+ }
3096
+ };
3097
+ }), n = b(() => {
3098
+ var h;
3099
+ return ((h = i.searchTerm) == null ? void 0 : h.toLowerCase()) ?? "";
3100
+ }), l = (h) => i.searchTerm && h.toLowerCase().includes(n.value) ? "mark" : "span", g = b(() => i.searchTerm ? i.items.filter((h) => h.toLowerCase().includes(n.value)).length : 0), f = b(
3101
+ () => i.tooltipText ?? (g.value > 0 ? a("numberResults", g.value) : "")
3102
+ );
3103
+ return (h, R) => (u(), S("div", oa, [
3104
+ h.items.length > 1 ? (u(), W(o(_l), le({
3105
+ key: 0,
3106
+ ref_key: "dashedUnderlineRef",
3107
+ ref: t
3108
+ }, r.value), {
3109
+ "popover-content": G(() => [
3110
+ J(o(Ye), { class: "b-data-grid-summary-cell__popover-content" }, {
3111
+ default: G(() => [
3112
+ O("ul", sa, [
3113
+ (u(!0), S(ve, null, pe(h.items, (E) => (u(), S("li", { key: E }, [
3114
+ (u(), W(je(l(E)), null, {
3115
+ default: G(() => [
3116
+ ue(X(E), 1)
3117
+ ]),
3118
+ _: 2
3119
+ }, 1024))
3120
+ ]))), 128))
3121
+ ])
3122
+ ]),
3123
+ _: 1
3124
+ })
3125
+ ]),
3126
+ default: G(() => [
3127
+ ue(X(h.label) + " ", 1)
3128
+ ]),
3129
+ _: 1
3130
+ }, 16)) : (u(), S(ve, { key: 1 }, [
3131
+ ue(X(h.items[0]), 1)
3132
+ ], 64)),
3133
+ t.value && f.value ? (u(), W(o(hl), {
3134
+ key: 2,
3135
+ content: f.value,
3136
+ "disabled-focus-trap": !0,
3137
+ position: o(Cl).RIGHT,
3138
+ "fallback-position": ["left", "bottom"],
3139
+ "is-shown": !!f.value,
3140
+ "target-element": t.value
3141
+ }, null, 8, ["content", "position", "is-shown", "target-element"])) : B("", !0)
3142
+ ]));
3143
+ }
3144
+ }), di = /* @__PURE__ */ ie(ia, [["__scopeId", "data-v-0ada93f3"]]), ra = ["aria-rowcount", "aria-colcount", "aria-label", "role"], da = {
3145
+ key: 1,
3146
+ class: "b-data-grid__header"
3147
+ }, ua = ["tabindex"], ca = ["tabindex", "aria-busy"], fa = {
3148
+ key: 0,
3149
+ class: "b-data-grid__loading"
3150
+ }, ga = {
3151
+ key: 1,
3152
+ class: "b-data-grid__empty-state"
3153
+ }, va = {
3154
+ key: 5,
3155
+ class: "b-data-grid__footer"
3156
+ }, ma = {
3157
+ i18n: { messages: ot },
3158
+ name: "bento-data-grid"
3159
+ }, ha = /* @__PURE__ */ $e({
3160
+ ...ma,
3161
+ props: {
3162
+ /**
3163
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
3164
+ */
3165
+ allowRowClicks: { type: Boolean, default: !1 },
3166
+ /**
3167
+ * When true, column headers will become draggable, allowing users to rearrange columns.
3168
+ */
3169
+ allowColumnDragAndDrop: { type: Boolean, default: !0 },
3170
+ /**
3171
+ * List of actions that will be rendered in the action bar when user selects items.
3172
+ *
3173
+ * Each object in the list should have a `title`, an `event` and,
3174
+ * optionally, an `icon`.
3175
+ *
3176
+ * The component will display 4 actions and the hide the rest inside a menu.
3177
+ *
3178
+ * @see BentoButton for a list of all the other props supported by each button action.
3179
+ */
3180
+ bulkActions: {
3181
+ type: Array,
3182
+ default: null
3183
+ },
3184
+ /**
3185
+ * Sets the row cells to the condensed padding state.
3186
+ */
3187
+ condensed: {
3188
+ type: Boolean,
3189
+ default: !1
3190
+ },
3191
+ /**
3192
+ * Column definitions using 'key' to relate to data object.
3193
+ */
3194
+ columns: {
3195
+ type: Array,
3196
+ required: !0
3197
+ },
3198
+ /**
3199
+ * Enables / hides the display options panel and the column contextual menu functionality.
3200
+ */
3201
+ columnPanel: { type: Boolean, default: !1 },
3202
+ /**
3203
+ * An array of data objects to display.
3204
+ */
3205
+ data: {
3206
+ type: Array,
3207
+ required: !0
3208
+ },
3209
+ /**
3210
+ * Empty state props that will be passed down to inner empty-state component
3211
+ */
3212
+ emptyState: {
3213
+ type: Object,
3214
+ default: void 0
3215
+ },
3216
+ /**
3217
+ * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
3218
+ * {@see BentoFilterBarModel}
3219
+ */
3220
+ filters: {
3221
+ // TODO: Change this to BentoFilterBarProps['value'] when the interface is available
3222
+ type: Array,
3223
+ default: void 0
3224
+ },
3225
+ /**
3226
+ * Defines the layout (multi-line or one-line) to be used in the filter bar for different
3227
+ * container sizes:
3228
+ * - Large (>=700px): Always multi-line
3229
+ * - Medium (>=430px & <700px)
3230
+ * - Small (<430px)
3231
+ *
3232
+ * @default
3233
+ * {
3234
+ * medium: 'multi-line',
3235
+ * small: 'one-line'
3236
+ * }
3237
+ */
3238
+ filtersContainerSizeLayout: {
3239
+ type: Object,
3240
+ default: void 0
3241
+ },
3242
+ /**
3243
+ * An array of the values for each filter set in `value`.
3244
+ * {@see BentoFilterValues}
3245
+ */
3246
+ filterValues: {
3247
+ type: rt.props.filterValues.type,
3248
+ default: () => []
3249
+ },
3250
+ // TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
3251
+ // It was not done now because it's a breaking change for the types.
3252
+ /**
3253
+ * Filter's search bar properties with which the placeholder, hint and other
3254
+ * "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
3255
+ */
3256
+ filterSearchConfig: {
3257
+ type: Object,
3258
+ default: void 0
3259
+ },
3260
+ /**
3261
+ * Filter bar search term useful to filter all the data by text
3262
+ */
3263
+ filterSearchTerm: {
3264
+ type: rt.props.searchTerm.type,
3265
+ default: void 0
3266
+ },
3267
+ /**
3268
+ * Allows the grid to be rendered inside a confined space.
3269
+ * This makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.
3270
+ */
3271
+ fitContent: { type: Boolean, default: !1 },
3272
+ /**
3273
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
3274
+ * This is used selecting and performance reasons and must exist in each data item.
3275
+ */
3276
+ getDataItemId: {
3277
+ type: Function,
3278
+ default: (e) => e.id
3279
+ },
3280
+ /**
3281
+ * Row actions propery that generates which button to show in row actions area
3282
+ */
3283
+ rowActions: {
3284
+ type: [Function, Array],
3285
+ default: void 0
3286
+ },
3287
+ /**
3288
+ * If resize is enabled
3289
+ */
3290
+ hasResizableColumns: {
3291
+ type: Boolean,
3292
+ default: !0
3293
+ },
3294
+ /**
3295
+ * Enables the nested content slot functionality.
3296
+ */
3297
+ hasNestedContent: {
3298
+ type: Boolean,
3299
+ default: !1
3300
+ },
3301
+ /**
3302
+ * Enables the nested content slot functionality.
3303
+ */
3304
+ hasNestedRows: {
3305
+ type: Boolean,
3306
+ default: !1
3307
+ },
3308
+ /**
3309
+ * Highlighted items
3310
+ */
3311
+ highlightedRows: {
3312
+ type: Array,
3313
+ default: () => []
3314
+ },
3315
+ /**
3316
+ * A customisable method to determine if a row is not selectable.
3317
+ * The default is that every row is selectable.
3318
+ */
3319
+ isDataItemDisabled: {
3320
+ type: Function,
3321
+ default: () => !1
3322
+ },
3323
+ /**
3324
+ * The type of `Lazy Load`.
3325
+ * Type "automatic" will enable infinite scrolling
3326
+ * Type "button" will enable lazy loading with "Show more" button
3327
+ * @values automatic, button, none
3328
+ */
3329
+ lazyLoadType: {
3330
+ type: String,
3331
+ default: "none",
3332
+ validator: (e) => ["automatic", "button", "none"].includes(e)
3333
+ },
3334
+ /**
3335
+ * If the loading indicator should be shown.
3336
+ */
3337
+ loading: {
3338
+ type: Boolean,
3339
+ default: !1
3340
+ },
3341
+ /**
3342
+ * Enables / Disables the table's surrounding border.
3343
+ */
3344
+ outline: {
3345
+ type: Boolean,
3346
+ default: !1
3347
+ },
3348
+ /**
3349
+ * Renders the data grid with no top spacing, to render inside containers that already have spacing
3350
+ */
3351
+ noSpacingTop: {
3352
+ type: Boolean,
3353
+ default: !1
3354
+ },
3355
+ /**
3356
+ * Pagination props that will be passed down to inner pagination component
3357
+ */
3358
+ pagination: {
3359
+ type: Object,
3360
+ default: void 0
3361
+ },
3362
+ /**
3363
+ * Adds an extra option when selecting all items that allows user to select items in other pages too.
3364
+ */
3365
+ selectableAcrossPages: {
3366
+ type: Boolean,
3367
+ default: !1
3368
+ },
3369
+ /**
3370
+ * Renders a font numeric style with slashed zeros instead of normal ones.
3371
+ */
3372
+ slashedZero: { type: Boolean, default: !1 },
3373
+ /**
3374
+ * Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
3375
+ */
3376
+ stickyHorizontalScrollbar: {
3377
+ type: Boolean,
3378
+ default: !1
3379
+ },
3380
+ /**
3381
+ * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
3382
+ * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
3383
+ */
3384
+ stickyPagination: {
3385
+ type: Boolean,
3386
+ default: !1
3387
+ },
3388
+ /**
3389
+ * Make data-grid filters stick to the top of the page along with the data-grid headers.
3390
+ * Defaults to true.
3391
+ */
3392
+ stickyFilters: {
3393
+ type: Boolean,
3394
+ default: !0
3395
+ },
3396
+ /**
3397
+ * Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
3398
+ */
3399
+ selectable: {
3400
+ type: Boolean,
3401
+ default: !1
3402
+ },
3403
+ /**
3404
+ * Selected items
3405
+ */
3406
+ selection: {
3407
+ type: Array,
3408
+ default: () => []
3409
+ },
3410
+ /**
3411
+ * Enables / Disables the nested-content slot
3412
+ */
3413
+ shouldShowNestedContent: {
3414
+ type: Function,
3415
+ default: (e) => !0
3416
+ },
3417
+ /**
3418
+ * Returns the nested rows for a given BentoDatagridDataItem.
3419
+ */
3420
+ shouldShowNestedRows: {
3421
+ type: Function,
3422
+ default: (e) => !0
3423
+ },
3424
+ /**
3425
+ * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
3426
+ * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
3427
+ */
3428
+ sortBy: {
3429
+ type: Array,
3430
+ // NOTE: is an array to allow multi-sorting in the future
3431
+ default: () => []
3432
+ },
3433
+ /**
3434
+ * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
3435
+ */
3436
+ tabTitle: {
3437
+ type: String,
3438
+ default: null
3439
+ },
3440
+ /**
3441
+ * Truncates all data grid column headers
3442
+ */
3443
+ truncateColumnHeaders: {
3444
+ type: Boolean,
3445
+ default: !1
3446
+ },
3447
+ /**
3448
+ * Toggles the alternating background color of rows.
3449
+ */
3450
+ zebraRows: {
3451
+ type: Boolean,
3452
+ default: !1
3453
+ }
3454
+ },
3455
+ emits: [
3456
+ F.COLUMNS,
3457
+ F.COLUMN_RESIZE,
3458
+ F.ITEMS_PAGE,
3459
+ F.FILTER_SEARCH_INPUT,
3460
+ F.FILTER_SEARCH_CLEAR,
3461
+ F.NAVIGATE,
3462
+ F.NESTED_CONTENT_TOGGLED,
3463
+ F.UPDATE_COLUMNS,
3464
+ F.UPDATE_CONDENSED,
3465
+ F.UPDATE_FILTER_VALUES,
3466
+ F.UPDATE_FILTERS,
3467
+ F.UPDATE_FILTER_SEARCH_TERM,
3468
+ F.UPDATE_SHOW_MORE,
3469
+ F.UPDATE_PAGINATION,
3470
+ F.UPDATE_SELECTION,
3471
+ F.UPDATE_SORT_BY,
3472
+ F.ROW_CLICK,
3473
+ F.SELECT,
3474
+ F.SELECT_ALL_ACROSS_PAGES,
3475
+ F.SORT
3476
+ ],
3477
+ setup(e, { expose: a, emit: i }) {
3478
+ const t = e, r = Ct(), n = _t(r), l = A(null), g = A(), f = A({}), h = A(null), R = A(null), E = A(), U = A(null), y = A(null), c = A(null), {
3479
+ allowColumnDragAndDrop: T,
3480
+ columns: N,
3481
+ columnPanel: v,
3482
+ data: C,
3483
+ lazyLoadType: s,
3484
+ loading: p,
3485
+ hasNestedContent: $,
3486
+ hasNestedRows: k,
3487
+ selectable: w,
3488
+ selection: _,
3489
+ selectableAcrossPages: M,
3490
+ stickyPagination: x,
3491
+ outline: fe,
3492
+ pagination: oe,
3493
+ zebraRows: we
3494
+ } = mt(t), me = A(-1), { t: he } = Ue({ messages: ot }), ge = b(() => I.value.filter((D) => D.frozen).length), Q = ut(
3495
+ Rl,
3496
+ () => ({
3497
+ additionalContentSlotRef: A(null),
3498
+ isDataGridTemplate: !1,
3499
+ stickyAditionalContent: A(!1),
3500
+ stickyTabs: A(!1),
3501
+ tabsRef: A(null)
3502
+ })
3503
+ ), { additionalContentSlotRef: m, isDataGridTemplate: Z, stickyTabs: q, tabsRef: V, stickyAdditionalContent: d } = Q(), H = b(() => Z ? 0 : null), {
3504
+ columnDefs: I,
3505
+ onColumnWidthOverride: se,
3506
+ gridRowWidthStyle: te,
3507
+ isMeasuringColumnWidths: Fe,
3508
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: Ge,
3509
+ columns: L,
3510
+ totalWidthOfAllColumns: z,
3511
+ rowActionsMaxWidth: Y
3512
+ } = eo(N, C, l, f, h, {
3513
+ hasColumnPanel: v,
3514
+ hasSelectableColumn: w,
3515
+ hasSelectableAcrossPages: M,
3516
+ hasNestedContent: $,
3517
+ hasNestedRows: k,
3518
+ allowColumnDragAndDrop: T,
3519
+ isDataGridTemplate: Z
3520
+ }), ee = i, j = (D, ...P) => {
3521
+ (D === F.COLUMNS || D === F.UPDATE_COLUMNS) && ([L.value] = P), ee(D, ...P);
3522
+ }, re = Bt(
3523
+ V,
3524
+ q,
3525
+ d,
3526
+ m
3527
+ ), Le = b(
3528
+ () => t.stickyFilters ? `${re.value}px` : null
3529
+ ), Pe = Bt(R, dt(t, "stickyFilters")), st = b(
3530
+ () => `${Pe.value + re.value}px`
3531
+ ), {
3532
+ sortedColumns: De,
3533
+ columnSets: Be,
3534
+ isOnlyOneVisibleColumn: at,
3535
+ internalZebraRows: it,
3536
+ onConfigSettingsColumnsUpdate: yn,
3537
+ onConfigSettingsColumnUpdate: En,
3538
+ onConfigSettingsCondensedUpdate: pn,
3539
+ onConfigSettingsZebraRowsUpdate: Ln
3540
+ } = io(I, we, j), { hoveredOverColumn: Sn, hoveredOverColumnState: pt } = uo(
3541
+ Be,
3542
+ w,
3543
+ fe,
3544
+ Ge
3545
+ ), { draggingColumns: Lt, draggingEventsForColumns: Rn, draggingEventsForRowCell: An, onMoveColumnByOffset: On } = ao(De, T, j), St = b(() => !!t.selectableAcrossPages && !!t.pagination), {
3546
+ onAllRowSelect: Rt,
3547
+ onRowSelect: Tn,
3548
+ onNestedRowSelect: Nn,
3549
+ onDeselectAll: In,
3550
+ selectedItems: Xe,
3551
+ allItemsSelectedState: $n,
3552
+ isEveryItemSelected: Dn,
3553
+ isEveryItemAcrossPagesSelected: kn
3554
+ } = to(
3555
+ _,
3556
+ j,
3557
+ C,
3558
+ t.getDataItemId,
3559
+ t.isDataItemDisabled,
3560
+ St,
3561
+ oe
3562
+ ), { navigationInput: Je } = lo(
3563
+ h,
3564
+ f,
3565
+ De,
3566
+ w,
3567
+ b(() => t.rowActions !== void 0),
3568
+ v
3569
+ ), { isLazyLoad: xe, isInfiniteScroll: Mn, verticalScrollPosition: zn, emitLazyLoadEvent: Un } = so(
3570
+ s,
3571
+ y,
3572
+ l,
3573
+ p,
3574
+ j
3575
+ ), {
3576
+ updateScrollPosition: Qe,
3577
+ updateScrollPositionOnFrozenColumnsNavigation: Fn,
3578
+ syncVirtualScrollerWithBody: At,
3579
+ hasLeftOverflow: et,
3580
+ hasRightOverflow: Ot,
3581
+ horizontalScrollbarConditionalStyles: Pn
3582
+ } = ro(
3583
+ l,
3584
+ g,
3585
+ zn,
3586
+ c,
3587
+ U,
3588
+ z,
3589
+ {
3590
+ isLazyLoad: xe,
3591
+ pagination: oe,
3592
+ stickyPagination: x,
3593
+ isDataGridTemplate: Z
3594
+ }
3595
+ ), Bn = () => {
3596
+ E.value.isClearAllVisible ? E.value.clearAllFilters() : E.value.isResetAllVisible && E.value.resetAllFilters();
3597
+ }, Wn = b(() => {
3598
+ var D, P;
3599
+ return {
3600
+ ...t.emptyState,
3601
+ variant: ((D = t.emptyState) == null ? void 0 : D.variant) === "embedded" || ((P = t.emptyState) == null ? void 0 : P.variant) === "basic" ? t.emptyState.variant : "basic"
3602
+ };
3603
+ }), Hn = b(() => ({
3604
+ [`b-data-grid--${Ne.OUTLINE}`]: t.outline,
3605
+ [`b-data-grid--${Ne.SCROLL}`]: t.fitContent || xe.value,
3606
+ [`b-data-grid--${Ne.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
3607
+ [`b-data-grid--${Ne.OVERFLOW_SHADOW_LEFT}`]: et.value && !ge.value,
3608
+ [`b-data-grid--${Ne.OVERFLOW_SHADOW_RIGHT}`]: Ot.value && t.rowActions === void 0,
3609
+ [`b-data-grid--${Ne.NO_SPACING_TOP}`]: t.noSpacingTop,
3610
+ [`b-data-grid--${Ne.FIT_CONTENT}`]: t.fitContent,
3611
+ [`b-data-grid--${Ne.ZEBRA_ROWS}`]: it.value
3612
+ })), Gn = b(() => ({
3613
+ "b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
3614
+ })), Vn = b(() => Be.value.findIndex((D) => D.columnSet.length)), Tt = b(() => !((t.selectable || t.hasNestedContent || t.hasNestedRows) && ge.value === 1) || et.value), xn = b(() => ({
3615
+ "b-data-grid__filters--sticky": !!t.stickyFilters || Z
3616
+ })), Zn = b(() => {
3617
+ var D, P, ae, K, Ee, Oe;
3618
+ return {
3619
+ "b-data-grid__pagination--padding-left-unset": ((ae = (P = (D = t.columns) == null ? void 0 : D[0]) == null ? void 0 : P.padding) == null ? void 0 : ae.left) === !1,
3620
+ "b-data-grid__pagination--padding-right-unset": ((Oe = (Ee = (K = t.columns) == null ? void 0 : K[t.columns.length - 1]) == null ? void 0 : Ee.padding) == null ? void 0 : Oe.right) === !1,
3621
+ "b-data-grid__pagination--sticky": !!t.stickyPagination || Z
3622
+ };
3623
+ }), jn = (D) => {
3624
+ const P = D;
3625
+ D !== null && (P != null && P.columnHeaderRefs) && Object.entries(P == null ? void 0 : P.columnHeaderRefs).forEach(([ae, K]) => {
3626
+ f.value[ae] = K;
3627
+ });
3628
+ }, qn = (D, P) => {
3629
+ var K, Ee, Oe, We;
3630
+ const ae = D;
3631
+ if (D !== null && ae != null && ae.gridcellRefs) {
3632
+ const Se = t.rowActions !== void 0 && (ae == null ? void 0 : ae.rowActionsRef);
3633
+ Object.entries(ae == null ? void 0 : ae.gridcellRefs).map(([ke, Ze]) => {
3634
+ var $t;
3635
+ (($t = h.value) == null ? void 0 : $t[ke]) === void 0 && (h.value = { ...h.value, [ke]: [] }), h.value[ke][P] = Ze;
3636
+ }), Se && (((K = h.value) == null ? void 0 : K[qe]) === void 0 && (h.value = { ...h.value, [qe]: [] }), h.value[qe][P] = (Ee = ae.rowActionsRef) == null ? void 0 : Ee[0], Y.value = Math.max(
3637
+ Y.value,
3638
+ ((We = (Oe = ae.rowActionsRef) == null ? void 0 : Oe[0]) == null ? void 0 : We.offsetWidth) ?? 0
3639
+ ));
3640
+ }
3641
+ }, Kn = (D, P) => {
3642
+ t.allowRowClicks && j(F.ROW_CLICK, D, P);
3643
+ }, Yn = (D) => {
3644
+ me.value = D;
3645
+ }, Xn = b(() => t.hasNestedContent || t.hasNestedRows ? "treegrid" : "grid"), Nt = El({
3646
+ label: r != null && r.header ? pl(r)("header") : null,
3647
+ defaultFallback: "data grid"
3648
+ }), Jn = b(() => {
3649
+ var D;
3650
+ return kn.value ? "all" : Dn.value ? "page" : ((D = Xe.value) == null ? void 0 : D.length) > 0 ? "single" : "none";
3651
+ }), It = b(() => {
3652
+ var D;
3653
+ return ((D = Xe.value) == null ? void 0 : D.length) ?? 0;
3654
+ }), Qn = b(() => t.bulkActions && It.value > 0), el = (D) => j(F.COLUMN_RESIZE, D), tl = (D) => {
3655
+ j(F.UPDATE_SORT_BY, D), j(F.SORT, D);
3656
+ }, nl = (D, P) => {
3657
+ j(F.NAVIGATE, D), j(F.UPDATE_PAGINATION, {
3658
+ ...t.pagination,
3659
+ size: P,
3660
+ page: D
3661
+ });
3662
+ }, ll = (D) => {
3663
+ j(F.ITEMS_PAGE, D);
3664
+ }, ol = () => {
3665
+ j(F.FILTER_SEARCH_CLEAR);
3666
+ }, sl = (D) => {
3667
+ j(F.UPDATE_FILTER_SEARCH_TERM, D), j(F.FILTER_SEARCH_INPUT, D);
3668
+ };
3669
+ return b(() => N.value.some((D) => D.mandatory)).value || an(
3670
+ "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
3671
+ ), ut(Sl, () => null)(t.tabTitle), on(Cn, dt(t, "slashedZero")), a({ onEmptyStateClearResetButtonClick: Bn }), (D, P) => {
3672
+ var ae;
3673
+ return u(), S("div", {
3674
+ class: ce(["b-data-grid", Hn.value]),
3675
+ "aria-rowcount": o(C).length,
3676
+ "aria-colcount": o(N).length,
3677
+ "aria-label": o(Nt),
3678
+ role: Xn.value,
3679
+ onCopy: P[11] || (P[11] = //@ts-ignore
3680
+ (...K) => o(Gt) && o(Gt)(...K))
3681
+ }, [
3682
+ e.filters ? (u(), S("div", {
3683
+ key: 0,
3684
+ ref_key: "filtersRef",
3685
+ ref: R,
3686
+ class: ce(["b-data-grid__filters", xn.value]),
3687
+ style: Me({ top: Le.value })
3688
+ }, [
3689
+ e.filters ? (u(), W(o(rt), {
3690
+ key: 0,
3691
+ ref_key: "filterBarRef",
3692
+ ref: E,
3693
+ config: e.filters,
3694
+ "container-size-layout": e.filtersContainerSizeLayout,
3695
+ "filter-values": e.filterValues,
3696
+ search: e.filterSearchConfig,
3697
+ "search-term": e.filterSearchTerm,
3698
+ onSearchInput: sl,
3699
+ onSearchClear: ol,
3700
+ onInput: P[0] || (P[0] = (K) => D.$emit(o(F).UPDATE_FILTERS, K)),
3701
+ "onUpdate:filterValues": P[1] || (P[1] = (K) => D.$emit(o(F).UPDATE_FILTER_VALUES, K))
3702
+ }, null, 8, ["config", "container-size-layout", "filter-values", "search", "search-term"])) : B("", !0)
3703
+ ], 6)) : B("", !0),
3704
+ D.$slots.header ? (u(), S("div", da, [
3705
+ Ie(D.$slots, "header", {}, void 0, !0)
3706
+ ])) : B("", !0),
3707
+ O("div", {
3708
+ class: "b-data-grid__column-headers",
3709
+ style: Me({ top: st.value })
3710
+ }, [
3711
+ o(v) ? (u(), W(o(ps), {
3712
+ key: 0,
3713
+ class: "b-data-grid__config-settings",
3714
+ columns: o(L),
3715
+ condensed: e.condensed,
3716
+ "zebra-rows": o(it),
3717
+ "onUpdate:condensed": o(pn),
3718
+ "onUpdate:zebraRows": o(Ln),
3719
+ "onUpdate:columns": o(yn)
3720
+ }, null, 8, ["columns", "condensed", "zebra-rows", "onUpdate:condensed", "onUpdate:zebraRows", "onUpdate:columns"])) : B("", !0),
3721
+ O("div", {
3722
+ ref_key: "columnsRef",
3723
+ ref: g,
3724
+ role: "rowgroup",
3725
+ class: "b-data-grid__columns-row",
3726
+ tabindex: H.value,
3727
+ onScroll: P[4] || (P[4] = //@ts-ignore
3728
+ (...K) => o(Qe) && o(Qe)(...K)),
3729
+ onKeydown: P[5] || (P[5] = //@ts-ignore
3730
+ (...K) => o(Je) && o(Je)(...K))
3731
+ }, [
3732
+ O("div", {
3733
+ style: Me(o(te)),
3734
+ class: "b-data-grid__columns",
3735
+ role: "row"
3736
+ }, [
3737
+ (u(!0), S(ve, null, pe(o(Be), ({ columnSet: K, id: Ee, isFrozenColumns: Oe }, We) => (u(), S(ve, null, [
3738
+ K != null && K.length ? (u(), W(o(Qo), le({
3739
+ key: `data-grid-columns-${Ee}`,
3740
+ ref_for: !0,
3741
+ ref: (Se) => jn(Se),
3742
+ columns: K,
3743
+ "has-resizable-columns": e.hasResizableColumns,
3744
+ "sort-by": e.sortBy,
3745
+ "all-items-selected-state": o($n),
3746
+ "is-frozen-columns": Oe,
3747
+ "show-frozen-columns-separator": Tt.value,
3748
+ "dragging-columns": o(Lt),
3749
+ "has-draggable-columns": o(T),
3750
+ "has-column-panel": o(v),
3751
+ "has-left-overflow": o(et),
3752
+ "has-first-column-panel-right-aligned": We === Vn.value,
3753
+ "hovered-over-column-state": o(pt),
3754
+ "is-measuring-column-widths": o(Fe),
3755
+ "is-only-one-visible-column": o(at),
3756
+ selectable: o(w),
3757
+ "selectable-across-pages": St.value,
3758
+ "selected-items": o(Xe),
3759
+ "selection-state": Jn.value,
3760
+ "truncate-column-headers": e.truncateColumnHeaders,
3761
+ "row-actions-maximum-width": o(Y)
3762
+ }, lt(o(Rn)), {
3763
+ onColumnHover: P[2] || (P[2] = (Se) => Sn.value = Se),
3764
+ onColumnMove: o(On),
3765
+ onColumnUpdate: o(En),
3766
+ onColumnResize: el,
3767
+ onColumnResizing: o(se),
3768
+ onSelectAllRows: o(Rt),
3769
+ onSelectAllAcrossPages: P[3] || (P[3] = (Se) => j(o(F).SELECT_ALL_ACROSS_PAGES)),
3770
+ onDeselectAll: o(In),
3771
+ onSort: tl
3772
+ }), Ve({ _: 2 }, [
3773
+ pe(o(r), (Se, ke) => ({
3774
+ name: ke,
3775
+ fn: G((Ze) => [
3776
+ Ie(D.$slots, ke, le({ ref_for: !0 }, Ze), void 0, !0)
3777
+ ])
3778
+ }))
3779
+ ]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "selected-items", "selection-state", "truncate-column-headers", "row-actions-maximum-width", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows", "onDeselectAll"])) : B("", !0)
3780
+ ], 64))), 256))
3781
+ ], 4)
3782
+ ], 40, ua)
3783
+ ], 4),
3784
+ O("div", {
3785
+ ref_key: "body",
3786
+ ref: l,
3787
+ "data-testid": "data-grid-body",
3788
+ class: ce(["b-data-grid__body", Gn.value]),
3789
+ tabindex: o(p) ? "0" : "-1",
3790
+ "aria-busy": o(p),
3791
+ "aria-live": "polite",
3792
+ onScroll: P[8] || (P[8] = //@ts-ignore
3793
+ (...K) => o(Qe) && o(Qe)(...K))
3794
+ }, [
3795
+ o(p) && !o(xe) ? (u(), S("div", fa, [
3796
+ J(o(wt), {
3797
+ class: "b-data-grid__loading-indicator",
3798
+ large: ""
3799
+ }),
3800
+ J(o(Ye), {
3801
+ el: "span",
3802
+ variant: "caption"
3803
+ }, {
3804
+ default: G(() => [
3805
+ ue(X(o(he)("gettingYourData")), 1)
3806
+ ]),
3807
+ _: 1
3808
+ })
3809
+ ])) : ((ae = o(C)) == null ? void 0 : ae.length) === 0 && e.emptyState ? (u(), S("div", ga, [
3810
+ J(o(Ll), cl(fl(Wn.value)), null, 16)
3811
+ ])) : (u(), S("div", {
3812
+ key: 2,
3813
+ class: "b-data-grid__rows",
3814
+ role: "rowgroup",
3815
+ onKeydown: P[7] || (P[7] = //@ts-ignore
3816
+ (...K) => o(Je) && o(Je)(...K))
3817
+ }, [
3818
+ (u(!0), S(ve, null, pe(o(C), (K, Ee) => {
3819
+ var Oe, We;
3820
+ return u(), W(o(_n), {
3821
+ key: Ee,
3822
+ ref_for: !0,
3823
+ ref: (Se) => qn(Se, Ee),
3824
+ style: Me(o(te)),
3825
+ "allow-row-clicks": e.allowRowClicks,
3826
+ "column-sets": o(Be),
3827
+ condensed: e.condensed,
3828
+ "dragging-columns": o(Lt),
3829
+ "dragging-events-for-row-cell": o(An),
3830
+ "get-data-item-id": e.getDataItemId,
3831
+ "has-nested-content": o($),
3832
+ "has-nested-rows": o(k),
3833
+ "has-left-overflow": o(et),
3834
+ "has-right-overflow": o(Ot),
3835
+ "highlighted-rows": e.highlightedRows,
3836
+ "hovered-row-index": me.value,
3837
+ "hovered-over-column-state": o(pt),
3838
+ "is-data-item-disabled": e.isDataItemDisabled,
3839
+ "is-row-even": o(it) ? Ee % 2 !== 0 : !1,
3840
+ "is-row-last-child": Ee + 1 === ((Oe = o(C)) == null ? void 0 : Oe.length),
3841
+ "is-measuring-column-widths": o(Fe),
3842
+ "row-actions-maximum-width": o(Y),
3843
+ "row-actions": e.rowActions,
3844
+ "row-data": K,
3845
+ "row-index": Ee,
3846
+ "row-set-size": (We = o(C)) == null ? void 0 : We.length,
3847
+ "show-frozen-columns-separator": Tt.value,
3848
+ "should-show-nested-content": e.shouldShowNestedContent,
3849
+ "should-show-nested-rows": e.shouldShowNestedRows,
3850
+ selectable: o(w),
3851
+ "selected-items": o(Xe),
3852
+ onCellHovered: Yn,
3853
+ onNestedContentToggled: P[6] || (P[6] = (Se) => j(o(F).NESTED_CONTENT_TOGGLED, Se)),
3854
+ onRowClick: Kn,
3855
+ onOnFrozenColumnsKeyPress: o(Fn),
3856
+ onSelectRow: o(Tn),
3857
+ onSelectNestedRow: o(Nn)
3858
+ }, Ve({ _: 2 }, [
3859
+ pe(o(r), (Se, ke) => ({
3860
+ name: ke,
3861
+ fn: G((Ze) => [
3862
+ Ie(D.$slots, ke, le({ ref_for: !0 }, Ze), void 0, !0)
3863
+ ])
3864
+ }))
3865
+ ]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-even", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
3866
+ }), 128))
3867
+ ], 32))
3868
+ ], 42, ca),
3869
+ o(xe) ? (u(), W(o(As), {
3870
+ key: 2,
3871
+ loading: o(p),
3872
+ "is-infinite-scroll": o(Mn),
3873
+ "onUpdate:showMore": o(Un)
3874
+ }, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : B("", !0),
3875
+ e.stickyHorizontalScrollbar ? (u(), S("div", {
3876
+ key: 3,
3877
+ ref_key: "virtualHorizontalScrollbarRef",
3878
+ ref: c,
3879
+ class: "b-data-grid__horizontal-scrollbar",
3880
+ "aria-hidden": "true",
3881
+ "data-testid": "sticky-horizontal-scrollbar",
3882
+ style: Me(o(Pn)),
3883
+ onScroll: P[9] || (P[9] = //@ts-ignore
3884
+ (...K) => o(At) && o(At)(...K))
3885
+ }, [
3886
+ O("div", {
3887
+ style: Me({ width: `${o(z)}px`, height: "15px" })
3888
+ }, null, 4)
3889
+ ], 36)) : B("", !0),
3890
+ o(oe) && !o(xe) ? (u(), S("div", {
3891
+ key: 4,
3892
+ ref_key: "paginationContainerRef",
3893
+ ref: U,
3894
+ "data-testid": "pagination-container",
3895
+ class: ce(["b-data-grid__pagination", Zn.value])
3896
+ }, [
3897
+ J(o(yl), le(o(oe), {
3898
+ "aria-label": `${o(Nt)} navigation`,
3899
+ onNavigate: nl,
3900
+ onItemsPage: ll
3901
+ }), {
3902
+ default: G(() => [
3903
+ o(n)("pagination-slot") ? Ie(D.$slots, "pagination-slot", { key: 0 }, void 0, !0) : B("", !0)
3904
+ ]),
3905
+ _: 3
3906
+ }, 16, ["aria-label"])
3907
+ ], 2)) : B("", !0),
3908
+ D.$slots.footer ? (u(), S("div", va, [
3909
+ Ie(D.$slots, "footer", {}, void 0, !0)
3910
+ ])) : B("", !0),
3911
+ Qn.value ? (u(), W(o(bl), {
3912
+ key: 6,
3913
+ actions: e.bulkActions,
3914
+ "item-counter": It.value,
3915
+ "extra-bottom-spacing": o(x),
3916
+ onClose: P[10] || (P[10] = (K) => o(Rt)(!1))
3917
+ }, null, 8, ["actions", "item-counter", "extra-bottom-spacing"])) : B("", !0)
3918
+ ], 42, ra);
3919
+ };
3920
+ }
3921
+ }), ui = /* @__PURE__ */ ie(ha, [["__scopeId", "data-v-348cf4dc"]]);
3922
+ export {
3923
+ gt as B,
3924
+ ri as a,
3925
+ di as b,
3926
+ Ne as c,
3927
+ ui as d,
3928
+ ze as e,
3929
+ F as f,
3930
+ nt as g
3931
+ };
3932
+ //# sourceMappingURL=data-grid.DMOTTywp.js.map