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