@adyen/bento-vue3 1.88.1 → 1.89.2

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 (366) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +722 -524
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/ai-button.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid-template.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/list-item.css +1 -0
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/radio-input.css +1 -1
  26. package/dist/assets/selection-card-group.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/timeline-item.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
  35. package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
  37. package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
  38. package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
  39. package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
  41. package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
  42. package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
  43. package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
  45. package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
  46. package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
  47. package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
  48. package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
  49. package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
  51. package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
  52. package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
  53. package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
  54. package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
  55. package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
  56. package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
  57. package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
  58. package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
  59. package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
  61. package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
  62. package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
  63. package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
  64. package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
  65. package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
  66. package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
  67. package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
  68. package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
  69. package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
  70. package/dist/chunks/click-outside.BPylIosK.js +20 -0
  71. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
  72. package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
  73. package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
  74. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  75. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  76. package/dist/chunks/constructNow.D9uRk678.js +8 -0
  77. package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
  78. package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
  79. package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
  80. package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
  81. package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
  82. package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
  83. package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
  84. package/dist/chunks/country.types.DjpMGz7a.js +19 -0
  85. package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
  86. package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
  87. package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
  88. package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
  89. package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
  90. package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
  91. package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
  92. package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
  93. package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
  94. package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
  95. package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
  96. package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
  97. package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
  98. package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
  99. package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
  100. package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
  101. package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
  102. package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
  103. package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
  105. package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
  106. package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
  107. package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
  108. package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
  109. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
  110. package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
  111. package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
  112. package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
  113. package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
  114. package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
  115. package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
  116. package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
  117. package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
  118. package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
  119. package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
  120. package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
  121. package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
  122. package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
  123. package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
  124. package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
  125. package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
  126. package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
  127. package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
  128. package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
  129. package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
  130. package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
  131. package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
  132. package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
  133. package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
  135. package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
  137. package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
  138. package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
  139. package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
  140. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  141. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  142. package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
  143. package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
  144. package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
  145. package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
  146. package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
  147. package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
  148. package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
  149. package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
  150. package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
  151. package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
  152. package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
  153. package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
  154. package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
  155. package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
  156. package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
  157. package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
  158. package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
  159. package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
  160. package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
  161. package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
  162. package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
  163. package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
  164. package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
  165. package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
  166. package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
  167. package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
  168. package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
  169. package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
  170. package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
  171. package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
  172. package/dist/chunks/link.D6D6YGsN.js +113 -0
  173. package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
  174. package/dist/chunks/list-item.DO5uULke.js +128 -0
  175. package/dist/chunks/list-item.DO5uULke.js.map +1 -0
  176. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
  177. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
  178. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
  179. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
  180. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
  181. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
  182. package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
  183. package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
  184. package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
  185. package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
  186. package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
  187. package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
  188. package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
  189. package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
  190. package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
  191. package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
  192. package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
  193. package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
  194. package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
  195. package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
  196. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
  197. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
  198. package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
  199. package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
  200. package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
  201. package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
  202. package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
  203. package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
  204. package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
  205. package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
  206. package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
  207. package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
  208. package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
  209. package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
  210. package/dist/chunks/status.H00BAmRx.js +42 -0
  211. package/dist/chunks/status.H00BAmRx.js.map +1 -0
  212. package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
  213. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
  214. package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
  215. package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
  216. package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
  217. package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
  218. package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
  219. package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
  220. package/dist/chunks/tab.mR5uUSdp.js +265 -0
  221. package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
  222. package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
  223. package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
  224. package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
  225. package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
  226. package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
  227. package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
  228. package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
  229. package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
  230. package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
  231. package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
  232. package/dist/chunks/tooltip.CbADa_4p.js +199 -0
  233. package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
  234. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  235. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  236. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
  237. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
  238. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
  239. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
  240. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
  241. package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
  242. package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
  243. package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
  244. package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
  245. package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
  246. package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
  247. package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
  248. package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
  249. package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
  250. package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
  251. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
  252. package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
  253. package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
  254. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  255. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  256. package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
  257. package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
  258. package/dist/click-outside.js +1 -1
  259. package/dist/code-snippet.js +1 -1
  260. package/dist/country.js +3 -3
  261. package/dist/currency.js +1 -1
  262. package/dist/dashboard-template.js +1 -1
  263. package/dist/dashed-underline.js +1 -1
  264. package/dist/data-grid-template.js +1 -1
  265. package/dist/data-grid.js +1 -1
  266. package/dist/date-picker.js +2 -2
  267. package/dist/date-range-picker.js +2 -2
  268. package/dist/date.js +1 -1
  269. package/dist/draggable-handle.js +4 -28
  270. package/dist/draggable-handle.js.map +1 -1
  271. package/dist/dropdown.js +4 -4
  272. package/dist/empty-state.js +1 -1
  273. package/dist/file-uploader.js +1 -1
  274. package/dist/filter-bar.js +1 -1
  275. package/dist/focus-trap.js +1 -1
  276. package/dist/form-layout.js +1 -1
  277. package/dist/header-with-views.js +1 -1
  278. package/dist/header.js +1 -1
  279. package/dist/index.js +241 -241
  280. package/dist/index.js.map +1 -1
  281. package/dist/info-icon.js +1 -1
  282. package/dist/input-field-password.js +1 -1
  283. package/dist/input-field-phone-number.js +1 -1
  284. package/dist/input-field.js +1 -1
  285. package/dist/inspector.js +1 -1
  286. package/dist/internal.js +13 -13
  287. package/dist/layout.js +1 -1
  288. package/dist/link.js +1 -1
  289. package/dist/list.js +6 -0
  290. package/dist/list.js.map +1 -0
  291. package/dist/menu.js +1 -1
  292. package/dist/modal-fullscreen.js +1 -1
  293. package/dist/modal.js +2 -2
  294. package/dist/pagination.js +1 -1
  295. package/dist/popover.js +2 -2
  296. package/dist/popper-container.js +1 -1
  297. package/dist/promo-banner.js +1 -1
  298. package/dist/radio-group.js +1 -1
  299. package/dist/rich-text-editor.js +1 -1
  300. package/dist/search-bar.js +2 -2
  301. package/dist/secondary-nav.js +1 -1
  302. package/dist/segmented-control.js +1 -1
  303. package/dist/selection-card.js +1 -1
  304. package/dist/sidepanel.js +1 -1
  305. package/dist/status.js +4 -3
  306. package/dist/status.js.map +1 -1
  307. package/dist/stepper.js +1 -1
  308. package/dist/structured-list.js +1 -1
  309. package/dist/summary-grid.js +1 -1
  310. package/dist/tabs.js +1 -1
  311. package/dist/tag.js +1 -1
  312. package/dist/textarea.js +1 -1
  313. package/dist/timeline.js +1 -1
  314. package/dist/toast.js +1 -1
  315. package/dist/toggle.js +1 -1
  316. package/dist/tutorial.js +1 -1
  317. package/dist/use-form-v4.js +331 -341
  318. package/dist/use-form-v4.js.map +1 -1
  319. package/dist/web-types.json +1 -1
  320. package/package.json +7 -7
  321. package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
  322. package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
  323. package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
  324. package/dist/chunks/calendar.vM3abC8y.js +0 -1234
  325. package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
  326. package/dist/chunks/constructNow.CIc7d13I.js +0 -8
  327. package/dist/chunks/country.types.BBQbWkTY.js +0 -773
  328. package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
  329. package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
  330. package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
  331. package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
  332. package/dist/chunks/date-picker.D5B_SECc.js +0 -251
  333. package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
  334. package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
  335. package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
  336. package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
  337. package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
  338. package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
  339. package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
  340. package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
  341. package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
  342. package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
  343. package/dist/chunks/link.DTCn2EtX.js +0 -116
  344. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  345. package/dist/chunks/pagination.B32UgSoH.js +0 -488
  346. package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
  347. package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
  348. package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
  349. package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
  350. package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
  351. package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
  352. package/dist/chunks/tab.DRrnMCxe.js +0 -273
  353. package/dist/chunks/textarea.CvI2InIB.js +0 -255
  354. package/dist/chunks/timeline-item.BooD99hL.js +0 -427
  355. package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
  356. package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
  357. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  358. package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
  359. package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
  360. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
  361. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
  362. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
  363. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  364. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  365. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  366. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -1,4368 +0,0 @@
1
- import { ref as E, onMounted as et, nextTick as Ce, watch as ye, onUnmounted as fl, reactive as Et, toRefs as yt, computed as C, watchEffect as Cn, onBeforeUpdate as _n, openBlock as d, createElementBlock as p, mergeProps as se, toDisplayString as J, createCommentVNode as W, createElementVNode as A, defineComponent as Ne, inject as Pe, normalizeClass as de, Fragment as _e, renderList as Ae, unref as o, toHandlers as gt, createBlock as H, withCtx as G, createVNode as Y, renderSlot as ze, withModifiers as bn, normalizeStyle as Fe, resolveComponent as Te, createTextVNode as fe, withDirectives as nt, vShow as wn, toRef as bt, resolveDirective as Sn, Transition as gl, createSlots as Qe, resolveDynamicComponent as Xe, useSlots as Rt, provide as dt, withKeys as zt, normalizeProps as pn, guardReactiveProps as En } from "vue";
2
- import { C as yn } from "./checkmark-circle-fill.DugX5fbG.js";
3
- import { W as Rn } from "./warning-filled.BzyK_mMj.js";
4
- /* empty css */
5
- import { _ as re } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { C as vl } from "./cross.CCHdi6v3.js";
7
- import { N as Pt } from "./minus-small.CnYLTuSv.js";
8
- import { E as Oe, b as wt, T as Ln, B as An } from "./tooltip.Lwtlhv3u.js";
9
- import { b as Tn } from "./popper-container.DAK7c9uS.js";
10
- import { B as On } from "./dashed-underline.wbRHATeE.js";
11
- import { B as qe, p as ml } from "./typography.B3J6_tYk.js";
12
- import { u as We } from "./index.B875RXHM.js";
13
- import { B as Nn } from "./tag.CqWg6C3H.js";
14
- import { B as In } from "./action-bar.BS2cJzG_.js";
15
- import { B as Dn } from "./pagination.B32UgSoH.js";
16
- import { B as ct } from "./loading-indicator.BPol9I84.js";
17
- import { u as Lt } from "./use-has-slot.B7eQSabc.js";
18
- import { g as ft } from "./generate-uid.NJ8tVoha.js";
19
- import { a as $n } from "./filter-bar.DJ7O4zLX.js";
20
- import { B as kn } from "./empty-state.DqdPzU-g.js";
21
- import { E as Un } from "./tabs.keys.B4qGhjp2.js";
22
- import { D as Mn } from "./data-grid-template.keys.VezYtHtM.js";
23
- import { b as Fn } from "./index.Dppy4qHk.js";
24
- import { o as At } from "./resize.Bqks3WUm.js";
25
- import { f as St, c as Tt, h as zn, a as Bt, b as Wt, O as Vt, D as Pn } from "./button-actions.BYBpjNqy.js";
26
- import { B as hl } from "./button.C6t9_lzm.js";
27
- import { B as Cl } from "./toggle.BupEBkIG.js";
28
- import { B as Bn } from "./search-bar.Dtzx88Pv.js";
29
- import { B as Wn } from "./directive.rXUeDb8p.js";
30
- import { u as Vn } from "./dropdown.CxjzXI-k.js";
31
- import { S as Hn } from "./search.ClLmZAgC.js";
32
- import { B as _l } from "./checkbox.C3Ewfygy.js";
33
- import { B as Gn } from "./info-icon.DyPOv7Pi.js";
34
- import { D as xn } from "./use-cached-selected-values.C4_X3vVj.js";
35
- import { B as Ht } from "./popover.types.DhALnOLQ.js";
36
- import { A as Zn } from "./arrow-left.C6UiqO-c.js";
37
- import { A as jn } from "./arrow-right.fSdLV_ho.js";
38
- import { H as qn, S as Kn } from "./show.BreRPkgL.js";
39
- import { l as Gt } from "./events.BQOQSSb7.js";
40
- import { b as bl } from "./focus-trap.BxCwzLqN.js";
41
- import { E as xt } from "./link.DTCn2EtX.js";
42
- import { C as Zt } from "./copy.C_BCNHYQ.js";
43
- import { C as Yn } from "./chevron-down.XeE-LBV_.js";
44
- import { C as Jn } from "./chevron-up.Cmgl2a3x.js";
45
- import { u as Xn } from "./use-expandable-content-height.GkjjbmPy.js";
46
- import "../assets/data-grid.css";
47
- const jt = (e) => {
48
- if (!e)
49
- return 0;
50
- const s = window.getComputedStyle(e);
51
- let i = e.offsetHeight;
52
- const t = window.getComputedStyle(e, "::after");
53
- if (t.content !== "none" && t.position === "absolute") {
54
- const l = parseFloat(t.height), n = parseFloat(t.bottom);
55
- !isNaN(l) && !isNaN(n) && n < 0 && n + l <= 0 && (i += l);
56
- }
57
- const u = parseFloat(s.top);
58
- return !isNaN(u) && u < 0 && (i += u), i;
59
- }, qt = (e, s, i = E(!1), t = null) => {
60
- const u = E(0);
61
- let l = null, n = null;
62
- const v = () => {
63
- const f = s.value ? jt(e.value) : 0, _ = i.value && t ? jt(t.value) : 0;
64
- u.value = f + _;
65
- };
66
- return et(() => {
67
- Ce(() => {
68
- const f = ye(
69
- e,
70
- () => {
71
- e != null && e.value && (Ce(() => f()), l = At(e.value, v), n = new MutationObserver(v), n.observe(e.value, { attributes: !0, attributeFilter: ["class"] }));
72
- },
73
- { immediate: !0 }
74
- );
75
- ye(
76
- [s, i],
77
- () => {
78
- v();
79
- },
80
- { immediate: !0 }
81
- );
82
- });
83
- }), fl(() => {
84
- l == null || l.disconnect(), n == null || n.disconnect();
85
- }), u;
86
- };
87
- var pt = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(pt || {}), ae = /* @__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.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL = "deselect-all", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(ae || {}), Me = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e.FIT_CONTENT = "fit-content", e.ZEBRA_ROWS = "zebra-rows", e))(Me || {}), He = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(He || {}), z = /* @__PURE__ */ ((e) => (e.CELL_FOCUS = "cell-focus", 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_VALUES_OBJECT = "update:filter-values-object", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.SORT = "sort", e))(z || {}), ut = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(ut || {});
88
- const Qn = (e, s) => {
89
- const i = E(null), t = E(!1), u = E(void 0), l = e.value.reduce((N, k) => (N[k.field] = null, N), {}), n = Et(l), v = yt(n);
90
- let f = 0, _ = "";
91
- const b = C(
92
- () => Object.fromEntries(e.value.map(({ field: N, width: k, minWidth: y }) => [N, { width: k, minWidth: y }]))
93
- );
94
- Cn(() => u.value = b.value);
95
- let L = null, I = null;
96
- const S = (N) => {
97
- const k = N.clientX - f, y = _, M = u.value[y].width + k;
98
- u.value[y].width = M > b.value[y].minWidth ? M : b.value[y].minWidth, s(ae.COLUMN_RESIZING, u.value), f = N.clientX;
99
- }, c = () => {
100
- t.value = !1, L == null || L(), I == null || I(), _ && s(ae.COLUMN_RESIZE, {
101
- field: _,
102
- width: u.value[_].width
103
- }), L = null, I = null, _ = "", f = null;
104
- }, T = (N, k, y) => {
105
- if (y.preventDefault(), N) {
106
- if (t.value = !0, y.buttons !== 1) {
107
- c();
108
- return;
109
- }
110
- _ = k, f = y.clientX, L = Gt(window, "mousemove", S), I = Gt(window, "mouseup", c);
111
- }
112
- };
113
- return ye(
114
- () => t.value,
115
- (N, k) => {
116
- !N && k && (s(ae.COLUMN_HOVER, i.value), i.value = null);
117
- }
118
- ), {
119
- resizeData: u,
120
- allColumnRefs: v,
121
- startResize: T,
122
- isResizing: t,
123
- columnHoverEventToEmitAfterResizing: i
124
- };
125
- }, eo = 100, Kt = 50, Ee = "b-actions-column", to = 42, lo = 56, no = 56, oo = 80, so = 36, ao = 1, wl = 16, io = 20, ro = (e, s, i) => {
126
- const t = {}, u = [], l = (v) => {
127
- const f = t[v];
128
- f && f.frozen !== !0 && (t[v].frozen = !0, u.push(v));
129
- };
130
- function n() {
131
- if (u.length === i.length)
132
- return;
133
- const v = { min: {} };
134
- let f = e, _ = s, b = 0;
135
- u.forEach((L) => {
136
- f -= t[L].computedWidth, _ -= t[L].flex;
137
- });
138
- for (let L = 0, I = i.length; L < I; L += 1) {
139
- const S = i[L];
140
- if (t[S.field] && t[S.field].frozen === !0)
141
- continue;
142
- let T = f / _ * S.flex;
143
- T < S.minWidth && (b += S.minWidth - T, T = S.minWidth, v.min[S.field] = !0), t[S.field] = {
144
- frozen: !1,
145
- computedWidth: T,
146
- flex: S.flex
147
- };
148
- }
149
- b > 0 ? Object.keys(v.min).forEach((L) => {
150
- l(L);
151
- }) : i.forEach(({ field: L }) => {
152
- l(L);
153
- }), n();
154
- }
155
- return n(), t;
156
- }, Yt = (e, s) => {
157
- let i = ao;
158
- return s && (i += wl * 2), e != null && e.offsetWidth ? e.offsetWidth + i : 0;
159
- }, uo = (e) => {
160
- var s, i, t, u, l;
161
- return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (u = e == null ? void 0 : e.hasSelectableAcrossPages) != null && u.value ? oo : no : so : (l = e == null ? void 0 : e.hasSelectableAcrossPages) != null && l.value ? lo : to;
162
- }, co = (e, s, i, t, u, l) => {
163
- const n = E(e.value), v = E(s), f = E(i), _ = E(t), b = E(u), L = E(!1), I = E(0);
164
- ye(
165
- () => e.value,
166
- (a, g) => {
167
- var B, x;
168
- const O = (a == null ? void 0 : a.map(({ field: j }) => j).toString()) === (g == null ? void 0 : g.map(({ field: j }) => j).toString());
169
- if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !O) {
170
- n.value = e.value;
171
- return;
172
- }
173
- n.value = ((x = n.value) == null ? void 0 : x.length) === 0 ? e.value : e.value.sort((j, le) => {
174
- const be = n.value.findIndex((ue) => ue.field === j.field), ge = n.value.findIndex((ue) => ue.field === le.field);
175
- return be === -1 ? 1 : ge === -1 ? -1 : be - ge;
176
- });
177
- }
178
- );
179
- const S = E();
180
- let c = null;
181
- const T = C(() => {
182
- var be, ge, ue;
183
- const a = [];
184
- let g = 0, O = 0;
185
- const B = {};
186
- let x = n.value.filter((oe) => oe.visible !== !1);
187
- const j = n.value.filter((oe) => oe.visible === !1);
188
- if ((be = l == null ? void 0 : l.hasSelectableColumn) != null && be.value || (ge = l == null ? void 0 : l.hasNestedContent) != null && ge.value || (ue = l == null ? void 0 : l.hasNestedRows) != null && ue.value) {
189
- const oe = uo(l);
190
- x = [
191
- {
192
- field: Ee,
193
- label: "",
194
- minWidth: oe,
195
- width: oe,
196
- frozen: !0,
197
- padding: { left: !1, right: !1 }
198
- },
199
- ...x
200
- ];
201
- }
202
- x.forEach((oe) => {
203
- const X = { ...oe };
204
- let we;
205
- X.flex && X.flex > 0 ? (g += X.flex, we = 0, a.push(X)) : we = Math.max(
206
- (X == null ? void 0 : X.width) ?? eo,
207
- (X == null ? void 0 : X.minWidth) ?? Kt
208
- ), O += we, X.width = we, X.minWidth = (X == null ? void 0 : X.minWidth) ?? Kt, B[X.field] = X;
209
- }), O += I.value;
210
- const le = Math.max(S.value - O, 0);
211
- if (g > 0 && S.value > 0) {
212
- const oe = ro(le, g, a);
213
- Object.keys(oe).forEach((X) => {
214
- B[X].width = oe[X].computedWidth;
215
- });
216
- }
217
- return j.forEach((oe) => {
218
- const X = { ...oe };
219
- B[X.field] = X;
220
- }), Object.values(B);
221
- }), N = E(void 0), k = (a) => {
222
- N.value = { ...N.value, ...a };
223
- }, y = async () => {
224
- n.value.some((a) => a == null ? void 0 : a.autoWidth) && (L.value = !0, await Ce(), await Ce(), n == null || n.value.filter((a) => a == null ? void 0 : a.autoWidth).forEach(({ field: a, minWidth: g }) => {
225
- var j, le, be, ge;
226
- const O = Yt(
227
- (j = _.value) == null ? void 0 : j[a],
228
- (le = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : le.value
229
- ), B = (ge = (be = b.value) == null ? void 0 : be[a]) == null ? void 0 : ge.reduce(
230
- (ue, oe) => Math.max(ue, Yt(oe)),
231
- 0
232
- ), x = Math.max(O, B ?? 0);
233
- (g === void 0 || x > g) && k({
234
- [a]: {
235
- width: x
236
- }
237
- });
238
- }), L.value = !1);
239
- };
240
- ye([() => n.value, () => v.value], async () => {
241
- n.value.some((a) => a == null ? void 0 : a.autoWidth) && await y();
242
- });
243
- const M = C(
244
- () => T.value.map((a) => {
245
- var g, O;
246
- return {
247
- ...a,
248
- // Override column width with resized ones
249
- width: ((O = (g = N.value) == null ? void 0 : g[a.field]) == null ? void 0 : O.width) ?? a.width
250
- };
251
- })
252
- ), h = C(
253
- () => {
254
- var a;
255
- return ((a = M.value) == null ? void 0 : a.filter(({ visible: g }) => g !== !1).reduce((g, O) => O.width + g, 0)) + I.value;
256
- }
257
- ), F = C(
258
- () => S.value <= h.value
259
- ), m = C(() => ({
260
- width: S.value > h.value ? "100%" : "fit-content"
261
- }));
262
- return et(() => {
263
- var g;
264
- const a = l != null && l.isDataGridTemplate ? io : 0;
265
- Ce(() => {
266
- f.value && (S.value = f.value.getBoundingClientRect().width - a);
267
- const O = ye(
268
- f,
269
- () => {
270
- f.value && (Ce(() => O()), c = At(f.value, ({ width: B }) => {
271
- S.value = B - a;
272
- }));
273
- },
274
- { immediate: !0 }
275
- );
276
- }), (g = document == null ? void 0 : document.fonts) != null && g.ready ? document.fonts.ready.then(() => {
277
- y();
278
- }) : y();
279
- }), fl(() => {
280
- c == null || c.disconnect();
281
- }), _n(() => {
282
- var a;
283
- b.value && ((a = Object.keys(b.value)) == null ? void 0 : a.length) > 0 && Object.keys(b.value).forEach((O) => {
284
- b.value[O] = [];
285
- });
286
- }), {
287
- columnDefs: M,
288
- gridRowWidthStyle: m,
289
- onColumnWidthOverride: k,
290
- isMeasuringColumnWidths: L,
291
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
292
- columns: n,
293
- totalWidthOfAllColumns: h,
294
- rowActionsMaxWidth: I
295
- };
296
- }, fo = (e, s, i, t, u, l, n) => {
297
- const v = E(e.value ?? []), f = Et({
298
- allItemsSelected: !1,
299
- isIndeterminate: !1
300
- }), _ = C(
301
- () => i.value.flatMap((a) => {
302
- var g;
303
- return [a, ((g = a == null ? void 0 : a.children) == null ? void 0 : g.length) > 0 ? a == null ? void 0 : a.children : []];
304
- }).flat()
305
- ), b = C(
306
- () => {
307
- var a, g;
308
- return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.every((O) => v.value.includes(t(O))));
309
- }
310
- ), L = C(
311
- () => {
312
- var a, g;
313
- return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.filter((O) => !u(O)).every((O) => v.value.includes(t(O))));
314
- }
315
- ), I = C(
316
- () => {
317
- var a, g;
318
- return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.some((O) => v.value.includes(t(O))));
319
- }
320
- ), S = C(
321
- () => {
322
- var a, g;
323
- return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.filter((O) => !u(O)).some((O) => v.value.includes(t(O))));
324
- }
325
- ), c = C(() => {
326
- var a;
327
- return !(l != null && l.value) || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.totalCount) === void 0 ? !1 : v.value.length >= n.value.totalCount && L.value;
328
- }), T = () => {
329
- s(z.SELECT, v.value), s(z.UPDATE_SELECTION, v.value);
330
- }, N = (a) => {
331
- var g, O;
332
- v.value = a, b.value ? (f.allItemsSelected = !0, f.isIndeterminate = !1) : (f.allItemsSelected = !1, f.isIndeterminate = ((g = v.value) == null ? void 0 : g.length) > 0 && ((O = i.value) == null ? void 0 : O.length) > 0 && i.value.some(
333
- (B) => {
334
- var x;
335
- return v.value.includes(t(B)) || ((x = B == null ? void 0 : B.children) == null ? void 0 : x.some((j) => v.value.includes(t(j))));
336
- }
337
- ));
338
- }, k = (a) => {
339
- Ce(() => {
340
- var O, B;
341
- f.allItemsSelected = a;
342
- const g = ((B = (O = _.value) == null ? void 0 : O.filter(
343
- (x) => !u(x) && ((x == null ? void 0 : x.children) === void 0 || x.children.every((j) => !u(j)))
344
- )) == null ? void 0 : B.map((x) => t(x))) ?? [];
345
- a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...g])], f.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !g.includes(x)), f.isIndeterminate = !I.value), T();
346
- });
347
- }, y = () => {
348
- Ce(() => {
349
- N([]), T();
350
- });
351
- }, M = (a, g) => {
352
- Ce(() => {
353
- var O;
354
- N(((O = g == null ? void 0 : g.children) == null ? void 0 : O.length) > 0 ? h(a, g) : a), T();
355
- });
356
- }, h = (a, g) => {
357
- var x;
358
- const O = t(g), B = (x = g.children) == null ? void 0 : x.filter((j) => !u(j)).map((j) => t(j));
359
- if (a.includes(O)) {
360
- const j = a;
361
- return B.forEach((le) => {
362
- j.includes(le) || j.push(le);
363
- }), j;
364
- }
365
- return a.filter((j) => !B.includes(j));
366
- }, F = (a, g, O) => {
367
- Ce(() => {
368
- var x, j;
369
- const B = t(g);
370
- a.includes(t(O)) ? N(
371
- !a.includes(B) && ((x = g == null ? void 0 : g.children) != null && x.every((le) => a.includes(t(le)))) ? [...a, B] : a
372
- ) : N(
373
- a.includes(B) && !((j = g == null ? void 0 : g.children) != null && j.every((le) => a.includes(t(le)))) ? a.filter((le) => le !== B) : a
374
- ), T();
375
- });
376
- }, m = C(() => c.value ? "all" : L.value ? "page" : !v.value || v.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
377
- return ye(
378
- () => e.value,
379
- () => {
380
- N(e.value ?? []);
381
- },
382
- { immediate: !0 }
383
- ), ye(
384
- () => i.value,
385
- () => {
386
- const a = i.value.filter((g) => v.value.includes(t(g))).flatMap(
387
- (g) => {
388
- var O;
389
- return ((O = g == null ? void 0 : g.children) == null ? void 0 : O.length) > 0 ? g.children.map((B) => t(B)).filter((B) => !v.value.includes(B)) : [];
390
- }
391
- );
392
- (a == null ? void 0 : a.length) > 0 ? (N([...v.value, ...a]), T()) : N(v.value);
393
- }
394
- ), {
395
- onAllRowSelect: k,
396
- onRowSelect: M,
397
- onNestedRowSelect: F,
398
- onDeselectAll: y,
399
- allItemsSelectedState: f,
400
- selectedItems: v,
401
- selectionState: m
402
- };
403
- }, go = (e, s, i) => ({ isSorting: (n) => e.value.some((v) => v.field === n), getSortingDirection: (n) => {
404
- var v;
405
- return (v = e.value.find((f) => f.field === n)) == null ? void 0 : v.direction;
406
- }, sortByColumnField: (n) => {
407
- var _;
408
- if (!s.value.some((b) => b.field === n && b.sortable))
409
- return;
410
- const f = [{
411
- field: n,
412
- direction: ((_ = e.value.find((b) => b.field === n)) == null ? void 0 : _.direction) === He.ASCENDING ? He.DESCENDING : He.ASCENDING
413
- }];
414
- i("sort", f);
415
- } });
416
- var pe = ((e) => (e[e.ARROW_DOWN = Oe.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Oe.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Oe.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Oe.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Oe.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Oe.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Oe.END] = "END", e[e.HOME = Oe.HOME] = "HOME", e))(pe || {});
417
- const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
418
- const n = C(() => l.value || t.value ? !0 : i.value.some((y) => y.infoIconTooltip || y.sortable)), v = C(() => {
419
- let y = i.value.filter(({ visible: M }) => M !== !1);
420
- return u.value && (y = [
421
- ...y,
422
- { field: lt, label: "" }
423
- ]), y;
424
- }), f = C(() => v.value.length), _ = C(() => {
425
- if (!e.value)
426
- return [];
427
- const y = Object.keys(e.value)[0];
428
- if (!y || !e.value[y])
429
- return [];
430
- const M = [];
431
- if (n.value)
432
- for (const F of v.value) {
433
- const m = s.value[F.field];
434
- M.push(m);
435
- }
436
- const h = e.value[y].length;
437
- for (let F = 0; F < h; F++)
438
- for (const m of v.value) {
439
- const a = e.value[m.field];
440
- a != null && a[F] && M.push(a[F]);
441
- }
442
- return M;
443
- }), b = (y) => Math.floor(y / f.value), L = (y, M, h) => {
444
- const F = _.value.length - 1, m = f.value - 1, a = b(y), g = y - f.value * a;
445
- return {
446
- [pe.PAGE_UP]: g + (n.value ? f.value : 0),
447
- [pe.PAGE_DOWN]: F - m + g,
448
- [pe.END]: h ? F : f.value * a + m,
449
- [pe.HOME]: h ? n.value ? f.value : 0 : f.value * a
450
- }[M];
451
- }, I = (y, M) => {
452
- const h = b(y), m = {
453
- [pe.ARROW_DOWN]: f.value,
454
- [pe.ARROW_UP]: h === 0 && !n.value ? 0 : -f.value,
455
- [pe.ARROW_LEFT]: -1,
456
- [pe.ARROW_RIGHT]: 1
457
- }[M], a = y + m;
458
- return a < 0 || a >= _.value.length ? y : a;
459
- }, S = (y) => [
460
- pe.PAGE_UP,
461
- pe.PAGE_DOWN,
462
- pe.END,
463
- pe.HOME
464
- ].includes(y), c = (y, M, h) => {
465
- const F = _.value.indexOf(y);
466
- return S(M) ? L(F, M, h) : I(F, M);
467
- }, T = (y, M, h) => {
468
- if (!_.value.includes(y))
469
- return;
470
- const F = c(y, M, h);
471
- _.value[F].focus();
472
- }, N = (y) => y in pe;
473
- return {
474
- isNavigationKeyCode: N,
475
- focusOnNextGridcell: T,
476
- navigationInput: (y) => {
477
- const { ctrlKey: M, key: h, target: F } = y, m = h;
478
- let a = F;
479
- a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a = F.closest('[role="gridcell"], [role="columnheader"]')), _.value.includes(a) && N(m) && T(a, m, M));
480
- }
481
- };
482
- }, mo = 90, ho = (e, s, i, t, u) => {
483
- const l = E(e), n = E(s), v = E(i), f = E(t), _ = C(() => l.value !== "none"), b = C(() => l.value === "automatic"), L = () => {
484
- u(z.UPDATE_SHOW_MORE);
485
- };
486
- return ye(
487
- () => n.value,
488
- () => {
489
- b.value && v.value.offsetHeight / n.value * 100 > mo && !f.value && L();
490
- }
491
- ), { isLazyLoad: _, isInfiniteScroll: b, verticalScrollPosition: n, emitLazyLoadEvent: L };
492
- }, Co = (e, s, i) => {
493
- const t = E(e), u = E(s), l = Et({
494
- dragging: null,
495
- dragToLeft: null,
496
- target: null
497
- }), n = (S, c = 0) => {
498
- const T = t.value.findIndex((y) => y.field === S.field), N = T + c;
499
- if (N < 0 || N > t.value.length - 1)
500
- return;
501
- const k = [...t.value];
502
- k.splice(N, 0, k.splice(T, 1)[0]), i(z.COLUMNS, k), i(z.UPDATE_COLUMNS, k);
503
- }, v = (S, c) => {
504
- l.dragging = S, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
505
- }, f = (S, c) => {
506
- l.target = S;
507
- const T = c.currentTarget.getBoundingClientRect(), N = T.left + T.width / 2, k = c.clientX ?? 0;
508
- l.dragToLeft = k <= N;
509
- }, _ = (S) => {
510
- var c, T;
511
- if (((c = l.dragging) == null ? void 0 : c.field) !== S.field) {
512
- const N = t.value.findIndex((m) => {
513
- var a;
514
- return m.field === ((a = l.dragging) == null ? void 0 : a.field);
515
- }), k = t.value.findIndex((m) => m.field === S.field), y = l.dragToLeft ? k : k + 1, M = y > N ? y - 1 : y;
516
- let h = [...t.value];
517
- h.splice(
518
- M === -1 ? 0 : M,
519
- 0,
520
- h.splice(N, 1)[0]
521
- );
522
- const F = t.value.findIndex((m) => !(m != null && m.frozen));
523
- ((T = l.dragging) == null ? void 0 : T.frozen) !== S.frozen && y !== F && (h = h.map(
524
- (m) => {
525
- var a;
526
- return ((a = l.dragging) == null ? void 0 : a.field) === m.field ? { ...m, frozen: !!(S != null && S.frozen) } : m;
527
- }
528
- )), i(z.COLUMNS, h), i(z.UPDATE_COLUMNS, h);
529
- }
530
- l.dragging = null, l.target = null;
531
- }, b = () => {
532
- l.dragging = null, l.dragToLeft = null, l.target = null;
533
- }, L = C(() => u.value ? {
534
- [ae.COLUMN_DRAG_START]: (S, c) => v(S, c),
535
- [ae.COLUMN_DRAG_ENTER]: (S, c) => f(S, c),
536
- [ae.COLUMN_DROP]: (S) => _(S),
537
- [ae.COLUMN_DRAG_END]: () => b()
538
- } : {}), I = C(() => (S) => u.value ? {
539
- dragenter: (c) => {
540
- c.preventDefault(), f(S, c);
541
- },
542
- drop: () => {
543
- _(S);
544
- },
545
- dragover: (c) => {
546
- c.preventDefault();
547
- }
548
- } : {});
549
- return {
550
- // Values
551
- draggingColumns: l,
552
- // Methods
553
- draggingEventsForColumns: L,
554
- draggingEventsForRowCell: I,
555
- onMoveColumnByOffset: n
556
- };
557
- }, _o = (e, s, i) => {
558
- const t = E(e), u = E(s.value), l = C(
559
- () => [...t.value].sort((c, T) => c.frozen === T.frozen ? 0 : c.frozen ? -1 : 1)
560
- ), n = C(
561
- () => l.value.filter((c) => c.frozen && c.visible !== !1)
562
- ), v = C(
563
- () => l.value.filter((c) => !c.frozen && c.visible !== !1)
564
- ), f = C(
565
- () => [
566
- { columnSet: n.value, id: "frozen", isFrozenColumns: !0 },
567
- { columnSet: v.value, id: "unfrozen" }
568
- ].filter(({ columnSet: c }) => c.length)
569
- ), _ = C(
570
- () => t.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== Ee).length === 1
571
- ), b = (c) => i(z.UPDATE_CONDENSED, c), L = (c) => {
572
- u.value = c, i(z.UPDATE_ZEBRA_ROWS, c);
573
- }, I = (c) => {
574
- i(z.COLUMNS, c), i(z.UPDATE_COLUMNS, c);
575
- }, S = (c) => {
576
- const T = l.value.map(
577
- (N) => (N == null ? void 0 : N.field) === c.field ? c : N
578
- );
579
- I(T);
580
- };
581
- return ye(s, (c) => {
582
- u.value = c;
583
- }), {
584
- // Values
585
- columnSets: f,
586
- isOnlyOneVisibleColumn: _,
587
- internalZebraRows: u,
588
- sortedColumns: l,
589
- // Methods
590
- onConfigSettingsColumnsUpdate: I,
591
- onConfigSettingsColumnUpdate: S,
592
- onConfigSettingsCondensedUpdate: b,
593
- onConfigSettingsZebraRowsUpdate: L
594
- };
595
- }, bo = (e, s, i, t, u, l, n) => {
596
- const v = E(0), f = E(!1), _ = E(!1);
597
- ye([() => v.value, () => l.value], ([c]) => {
598
- e.value.scrollLeft = c, s.value.scrollLeft = c, f.value = !!c, _.value = s.value.scrollWidth - s.value.offsetWidth > c;
599
- }), et(async () => {
600
- var c, T;
601
- await Ce(), await Ce(), ((c = s.value) == null ? void 0 : c.offsetWidth) < ((T = s.value) == null ? void 0 : T.scrollWidth) && (_.value = !0);
602
- });
603
- const b = (c) => {
604
- if (v.value = c.target.scrollLeft, i.value = e.value.scrollHeight - c.target.scrollTop, t != null && t.value) {
605
- const T = c.target.scrollLeft;
606
- t.value.scrollLeft !== T && (t.value.scrollLeft = T);
607
- }
608
- }, L = (c) => {
609
- c.key === "Tab" || c.key !== "ArrowRight" && c.key !== "ArrowLeft" || (c.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
610
- e.value && (e.value.style.overflowX = "auto");
611
- }));
612
- }, I = (c) => {
613
- const T = c.target.scrollLeft;
614
- e.value.scrollLeft !== T && (e.value.scrollLeft = T);
615
- }, S = C(() => {
616
- var c, T, N, k;
617
- return (c = n == null ? void 0 : n.pagination) != null && c.value && ((T = n == null ? void 0 : n.stickyPagination) != null && T.value || n != null && n.isDataGridTemplate) && !((N = n == null ? void 0 : n.isLazyLoad) != null && N.value) ? { bottom: `${(((k = u.value) == null ? void 0 : k.clientHeight) ?? 0) + 1}px` } : {};
618
- });
619
- return {
620
- // Values
621
- scrollLeftPosition: v,
622
- hasLeftOverflow: f,
623
- hasRightOverflow: _,
624
- horizontalScrollbarConditionalStyles: S,
625
- // Methods
626
- updateScrollPosition: b,
627
- updateScrollPositionOnFrozenColumnsNavigation: L,
628
- syncVirtualScrollerWithBody: I
629
- };
630
- }, wo = (e, s, i, t) => {
631
- const u = E(null), l = C(() => {
632
- var T, N, k, y;
633
- if (!u.value || u.value.field === Ee)
634
- return {
635
- hoveredOverColumnField: "",
636
- isSeparatorOffset: !1,
637
- noBorderLeft: !1,
638
- noBorderRight: !1
639
- };
640
- const n = (N = (T = e.value.find((M) => M.isFrozenColumns)) == null ? void 0 : T.columnSet) == null ? void 0 : N.filter((M) => M.field !== Ee), v = e.value.find((M) => !(M != null && M.isFrozenColumns)), f = u.value.frozen && (n == null ? void 0 : n[0].field) === u.value.field, _ = !u.value.frozen && ((k = v == null ? void 0 : v.columnSet) == null ? void 0 : k[0].field) === u.value.field, b = (s.value || i.value) && f, L = (s.value || i.value) && !n && _, I = n && _, S = (n == null ? void 0 : n.length) > 0 && u.value.frozen && (n == null ? void 0 : n[n.length - 1].field) === u.value.field, c = i.value && t.value && !u.value.frozen && ((y = v == null ? void 0 : v.columnSet) == null ? void 0 : y[v.columnSet.length - 1].field) === u.value.field;
641
- return {
642
- hoveredOverColumnField: u.value.field,
643
- isSeparatorOffset: c,
644
- noBorderLeft: !!b || !!L || !!I,
645
- noBorderRight: !!S || !!c
646
- };
647
- });
648
- return {
649
- hoveredOverColumn: u,
650
- hoveredOverColumnState: l
651
- };
652
- }, Ot = (e) => {
653
- const i = bl(e).filter((t) => t.node !== e);
654
- return (i == null ? void 0 : i.length) > 0 ? (i[0].node.focus(), !0) : !1;
655
- }, je = (e) => {
656
- const s = bl(e), i = s == null ? void 0 : s.filter((t) => t.node !== e);
657
- if ((i == null ? void 0 : i.length) > 0)
658
- return i.forEach((t) => t.node.setAttribute("tabindex", "-1")), i;
659
- }, Sl = (e) => {
660
- (e == null ? void 0 : e.length) > 0 && e.forEach((s) => s == null ? void 0 : s.node.setAttribute("tabindex", "0"));
661
- }, Jt = (e) => {
662
- var f;
663
- const s = window.getSelection();
664
- if (!s || !s.rangeCount)
665
- return;
666
- const i = s.getRangeAt(0).cloneContents(), t = (f = i.textContent) == null ? void 0 : f.trim();
667
- if (!t)
668
- return;
669
- const u = i.querySelectorAll('[role="row"]');
670
- let l = "<table>", n = "";
671
- const v = (_) => {
672
- _.forEach((b) => {
673
- const L = b.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", I = b.textContent.trim();
674
- I && (l += `<${L}>${I}</${L}>`, n += `${I} `);
675
- });
676
- };
677
- if (!u.length) {
678
- const _ = i.querySelectorAll(
679
- '[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
680
- );
681
- if (_.length)
682
- l += "<tr>", v(_), l += "</tr>";
683
- else {
684
- e == null || e.preventDefault(), navigator.clipboard.writeText(t);
685
- return;
686
- }
687
- }
688
- u.forEach((_) => {
689
- const b = _.querySelectorAll(
690
- '[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
691
- );
692
- if (l += "<tr>", b.length)
693
- v(b);
694
- else {
695
- const L = _.textContent.trim();
696
- l += `<td>${L}</td>`, n += `${L} `;
697
- }
698
- l += "</tr>", n += `
699
- `;
700
- }), l += "</table>", e == null || e.preventDefault(), navigator.clipboard.write([
701
- new ClipboardItem({
702
- "text/html": new Blob([l], { type: "text/html" }),
703
- "text/plain": new Blob([n || t], { type: "text/plain" })
704
- })
705
- ]);
706
- };
707
- let Xt = 0;
708
- const So = {
709
- beforeCreate() {
710
- this.uuid = Xt.toString(), Xt += 1;
711
- }
712
- }, po = { key: 0 }, Eo = ["clip-path"], yo = ["id"];
713
- function Ro(e, s, i, t, u, l) {
714
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
715
- class: "ui-assets-icons-16",
716
- xmlns: "http://www.w3.org/2000/svg",
717
- width: "16",
718
- height: "16",
719
- fill: "none"
720
- }), [
721
- e.$attrs["svg-title"] ? (d(), p("title", po, J(e.$attrs["svg-title"]), 1)) : W("", !0),
722
- A("g", {
723
- fill: "#001222",
724
- "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
725
- }, s[0] || (s[0] = [
726
- A("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),
727
- A("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)
728
- ]), 8, Eo),
729
- A("defs", null, [
730
- A("clipPath", {
731
- id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid
732
- }, s[1] || (s[1] = [
733
- A("rect", {
734
- width: "16",
735
- height: "16",
736
- fill: "#fff"
737
- }, null, -1)
738
- ]), 8, yo)
739
- ])
740
- ], 16);
741
- }
742
- const Lo = /* @__PURE__ */ re(So, [["render", Ro]]);
743
- let Qt = 0;
744
- const Ao = {
745
- beforeCreate() {
746
- this.uuid = Qt.toString(), Qt += 1;
747
- }
748
- }, To = { key: 0 }, Oo = ["clip-path"], No = ["id"];
749
- function Io(e, s, i, t, u, l) {
750
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
751
- class: "ui-assets-icons-16",
752
- xmlns: "http://www.w3.org/2000/svg",
753
- width: "16",
754
- height: "16",
755
- fill: "none"
756
- }), [
757
- e.$attrs["svg-title"] ? (d(), p("title", To, J(e.$attrs["svg-title"]), 1)) : W("", !0),
758
- A("g", {
759
- "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
760
- }, s[0] || (s[0] = [
761
- A("path", {
762
- fill: "#001222",
763
- d: "M10.5605 14.5L9.94434 13.8838C9.6002 13.5397 9.18722 13.3072 8.75 13.1836V10.9336L10.1689 10.1162L11.6865 10.9941L12.1094 12.5605C12.1146 12.5821 12.1182 12.6044 12.124 12.626L12.1553 12.7441L12.3496 13.4688L13.7988 13.0801L13.6162 12.4004L13.6201 12.3984L13.5547 12.1592C13.4254 11.5178 13.8153 10.878 14.4561 10.7061L14.5742 10.6748L15.2988 10.4805L14.9102 9.03125L14.2295 9.21387L14.2285 9.20996L13.5049 9.40625L12.4346 9.69531L10.9199 8.81836V7.18262L12.8633 6.05762C13.1889 6.37496 13.597 6.61697 14.0674 6.74316L14.1855 6.77441L14.9102 6.96875L15.2988 5.52051L14.5742 5.32617L14.4561 5.29395C13.7894 5.11503 13.3935 4.4294 13.5723 3.7627L13.6045 3.64453L13.7988 2.91992L12.3496 2.53125L12.1553 3.25586L12.124 3.37402C11.9979 3.84406 12.0018 4.31824 12.1133 4.75879L10.1689 5.88477L8.75 5.06738V2.81738C9.18731 2.69384 9.60013 2.46036 9.94434 2.11621L10.5605 1.5L9.5 0.439453L8.88379 1.05566C8.39567 1.54362 7.60433 1.54362 7.11621 1.05566L6.5 0.439453L5.43945 1.5L6.05566 2.11621C6.39987 2.46036 6.81269 2.69384 7.25 2.81738V5.06738L5.83105 5.88477L3.88574 4.75879C3.99724 4.31819 4.00207 3.84412 3.87598 3.37402L3.84473 3.25586L3.65039 2.53125L2.20117 2.91992L2.39551 3.64453L2.42773 3.7627C2.60651 4.42942 2.21066 5.11507 1.54395 5.29395L1.42578 5.32617L0.701172 5.52051L1.08984 6.96875L1.81445 6.77441L1.93262 6.74316C2.40275 6.61703 2.81018 6.37474 3.13574 6.05762L5.08008 7.18262V8.81836L3.13574 9.94336C2.81015 9.62622 2.40287 9.38399 1.93262 9.25781L1.81445 9.22559L1.08984 9.03125L0.701172 10.4805L1.42578 10.6748L1.54395 10.7061C2.2106 10.8849 2.60644 11.5706 2.42773 12.2373L2.39551 12.3555L2.20117 13.0801L3.65039 13.4688L3.84473 12.7441L3.87598 12.626C4.00207 12.1559 3.99723 11.6817 3.88574 11.2412L5.83105 10.1162L7.25 10.9336V13.1836C6.81278 13.3072 6.3998 13.5397 6.05566 13.8838L5.43945 14.5L6.5 15.5605L7.11621 14.9443C7.60433 14.4564 8.39567 14.4564 8.88379 14.9443L9.5 15.5605L10.5605 14.5ZM6.58008 8.81641V7.18262L8 6.36426L9.41992 7.18262V8.81641L8 9.63477L6.58008 8.81641Z"
764
- }, null, -1)
765
- ]), 8, Oo),
766
- A("defs", null, [
767
- A("clipPath", {
768
- id: "uia-ui-assets/icons-16-freeze__a" + e.uuid
769
- }, s[1] || (s[1] = [
770
- A("rect", {
771
- width: "16",
772
- height: "16",
773
- fill: "#fff",
774
- transform: "matrix(1 0 0 -1 0 16)"
775
- }, null, -1)
776
- ]), 8, No)
777
- ])
778
- ], 16);
779
- }
780
- const pl = /* @__PURE__ */ re(Ao, [["render", Io]]);
781
- let el = 0;
782
- const Do = {
783
- beforeCreate() {
784
- this.uuid = el.toString(), el += 1;
785
- }
786
- }, $o = { key: 0 }, ko = ["clip-path"], Uo = ["id"];
787
- function Mo(e, s, i, t, u, l) {
788
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
789
- class: "ui-assets-icons-16",
790
- xmlns: "http://www.w3.org/2000/svg",
791
- width: "16",
792
- height: "16",
793
- fill: "none"
794
- }), [
795
- e.$attrs["svg-title"] ? (d(), p("title", $o, J(e.$attrs["svg-title"]), 1)) : W("", !0),
796
- A("g", {
797
- fill: "#001222",
798
- "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
799
- }, s[0] || (s[0] = [
800
- A("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),
801
- A("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
802
- A("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
803
- A("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
804
- ]), 8, ko),
805
- A("defs", null, [
806
- A("clipPath", {
807
- id: "uia-ui-assets/icons-16-sort_ascending__a" + e.uuid
808
- }, s[1] || (s[1] = [
809
- A("rect", {
810
- width: "16",
811
- height: "16",
812
- fill: "#fff"
813
- }, null, -1)
814
- ]), 8, Uo)
815
- ])
816
- ], 16);
817
- }
818
- const Fo = /* @__PURE__ */ re(Do, [["render", Mo]]);
819
- let tl = 0;
820
- const zo = {
821
- beforeCreate() {
822
- this.uuid = tl.toString(), tl += 1;
823
- }
824
- }, Po = { key: 0 }, Bo = ["clip-path"], Wo = ["id"];
825
- function Vo(e, s, i, t, u, l) {
826
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
827
- class: "ui-assets-icons-16",
828
- xmlns: "http://www.w3.org/2000/svg",
829
- width: "16",
830
- height: "16",
831
- fill: "none"
832
- }), [
833
- e.$attrs["svg-title"] ? (d(), p("title", Po, J(e.$attrs["svg-title"]), 1)) : W("", !0),
834
- A("g", {
835
- fill: "#001222",
836
- "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
837
- }, s[0] || (s[0] = [
838
- A("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),
839
- A("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
840
- A("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
841
- A("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
842
- ]), 8, Bo),
843
- A("defs", null, [
844
- A("clipPath", {
845
- id: "uia-ui-assets/icons-16-sort_descending__a" + e.uuid
846
- }, s[1] || (s[1] = [
847
- A("rect", {
848
- width: "16",
849
- height: "16",
850
- fill: "#fff"
851
- }, null, -1)
852
- ]), 8, Wo)
853
- ])
854
- ], 16);
855
- }
856
- const Ho = /* @__PURE__ */ re(zo, [["render", Vo]]);
857
- let ll = 0;
858
- const Go = {
859
- beforeCreate() {
860
- this.uuid = ll.toString(), ll += 1;
861
- }
862
- }, xo = { key: 0 };
863
- function Zo(e, s, i, t, u, l) {
864
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
865
- class: "ui-assets-icons-16",
866
- xmlns: "http://www.w3.org/2000/svg",
867
- width: "16",
868
- height: "16",
869
- fill: "none"
870
- }), [
871
- e.$attrs["svg-title"] ? (d(), p("title", xo, J(e.$attrs["svg-title"]), 1)) : W("", !0),
872
- s[0] || (s[0] = A("path", {
873
- fill: "#001222",
874
- d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
875
- }, null, -1))
876
- ], 16);
877
- }
878
- const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
879
- "en-US": {
880
- columnActions: "{name} column actions",
881
- deselectAll: "Deselect all",
882
- deselectAllCurrentResults: "Deselect all in current results",
883
- deselectPage: "Deselect this page",
884
- freezeColumn: "Freeze column",
885
- hideColumn: "Hide column",
886
- moveColumnLeft: "Move column left",
887
- moveColumnRight: "Move column right",
888
- rowActionsColumn: "Row actions column",
889
- selectAll: "Select all",
890
- selectAllCurrentResults: "Select all in current results",
891
- selectAllMenu: "Select all menu",
892
- selectPage: "Select this page",
893
- selectionMenu: "Selection menu",
894
- showColumn: "Show column",
895
- sortColumn: "Sort {name} column",
896
- sortColumnInAscendingOrder: "Sort {name} column in ascending order",
897
- sortColumnInDescendingOrder: "Sort {name} column in descending order",
898
- unfreezeColumn: "Unfreeze column"
899
- },
900
- "ja-JP": {
901
- columnActions: "{name}列のアクション",
902
- deselectAll: "すべての選択を解除",
903
- deselectAllCurrentResults: "現在の結果の選択をすべて解除",
904
- deselectPage: "このページの選択を解除",
905
- freezeColumn: "列を固定",
906
- hideColumn: "列を非表示",
907
- moveColumnLeft: "列を左へ移動",
908
- moveColumnRight: "列を右へ移動",
909
- rowActionsColumn: "行アクション列",
910
- selectAll: "すべて選択",
911
- selectAllCurrentResults: "現在の結果をすべて選択",
912
- selectAllMenu: "すべてのメニューを選択",
913
- selectPage: "このページを選択",
914
- selectionMenu: "選択メニュー",
915
- showColumn: "列を表示",
916
- sortColumn: "{name}列を並べ替え",
917
- sortColumnInAscendingOrder: "{name}列を昇順に並べ替え",
918
- sortColumnInDescendingOrder: "{name}列を降順に並べ替え",
919
- unfreezeColumn: "列の固定を解除"
920
- },
921
- "pt-BR": {
922
- columnActions: "Ações da coluna {name}",
923
- deselectAll: "Desmarcar tudo",
924
- deselectAllCurrentResults: "Desmarcar tudo nos resultados atuais",
925
- deselectPage: "Desmarcar esta página",
926
- freezeColumn: "Congelar coluna",
927
- hideColumn: "Ocultar coluna",
928
- moveColumnLeft: "Mover coluna para a esquerda",
929
- moveColumnRight: "Mover coluna para a direita",
930
- rowActionsColumn: "Coluna de ações da linha",
931
- selectAll: "Selecionar tudo",
932
- selectAllCurrentResults: "Selecionar tudo nos resultados atuais",
933
- selectAllMenu: "Selecionar todo o menu",
934
- selectPage: "Selecione esta página",
935
- selectionMenu: "Menu de seleção",
936
- showColumn: "Mostrar coluna",
937
- sortColumn: "Classificar a coluna {name}",
938
- sortColumnInAscendingOrder: "Classificar a coluna {name} em ordem crescente",
939
- sortColumnInDescendingOrder: "Classificar a coluna {name} em ordem decrescente",
940
- unfreezeColumn: "Descongelar coluna"
941
- }
942
- }, yl = /* @__PURE__ */ Symbol("data-grid slashed zero key"), ot = /* @__PURE__ */ Symbol("data-grid small container key"), vt = /* @__PURE__ */ Symbol("data-grid touch device key"), qo = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Ko = { class: "b-data-grid-columns__select-column-menu-button" }, Yo = ["aria-label"], Jo = { class: "b-data-grid-columns__label" }, Xo = {
943
- key: 0,
944
- class: "b-data-grid-columns__column-info-icon"
945
- }, Qo = {
946
- key: 1,
947
- class: "b-data-grid-columns__column-sort"
948
- }, es = ["data-testid", "onMousedown"], ts = {
949
- key: 0,
950
- class: "b-data-grid-columns__column-separator"
951
- }, ls = ["aria-label", "aria-colindex"], ns = {
952
- i18n: { messages: El },
953
- name: "data-grid-columns"
954
- }, os = /* @__PURE__ */ Ne({
955
- ...ns,
956
- props: {
957
- /**
958
- * Column definitions using 'key' to relate to data object.
959
- */
960
- columns: {
961
- type: Array,
962
- required: !0
963
- },
964
- /**
965
- * Columns being dragged, contains dragging column and a target column
966
- */
967
- draggingColumns: {
968
- type: Object,
969
- default: void 0
970
- },
971
- /**
972
- * Determines the state of the current results: { filtered: boolean, allItemsVisible: boolean } to render the correct select all menu options
973
- */
974
- visibleRowsState: {
975
- type: Object,
976
- default: void 0
977
- },
978
- /**
979
- * Toggle the columns draggable events.
980
- */
981
- hasDraggableColumns: {
982
- type: Boolean,
983
- default: !0
984
- },
985
- /**
986
- * If resize is enabled
987
- */
988
- hasResizableColumns: {
989
- type: Boolean,
990
- default: !0
991
- },
992
- /**
993
- * Signifies if the column panel is enabled.
994
- */
995
- hasColumnPanel: {
996
- type: Boolean,
997
- default: !1
998
- },
999
- /**
1000
- * If set to true, aligns the first column panel to the right of its button.
1001
- */
1002
- hasFirstColumnPanelRightAligned: {
1003
- type: Boolean,
1004
- default: !1
1005
- },
1006
- /**
1007
- * If the data grid has overflow on the left side
1008
- */
1009
- hasLeftOverflow: {
1010
- type: Boolean,
1011
- default: !1
1012
- },
1013
- /**
1014
- * The column hovered over state and whether the hovered over column should show a border right or left.
1015
- */
1016
- hoveredOverColumnState: {
1017
- type: Object,
1018
- required: !0
1019
- },
1020
- /**
1021
- * Toggled to true when the DataGrid has auto width columns and is measuring the
1022
- */
1023
- isMeasuringColumnWidths: {
1024
- type: Boolean,
1025
- default: !1
1026
- },
1027
- /**
1028
- * Used to disable hiding the last visible column.
1029
- */
1030
- isOnlyOneVisibleColumn: {
1031
- type: Boolean,
1032
- default: !1
1033
- },
1034
- /**
1035
- * If these columns are frozen (pinned) columns
1036
- */
1037
- isFrozenColumns: {
1038
- type: Boolean,
1039
- default: !1
1040
- },
1041
- /**
1042
- * Show frozen columns separator
1043
- */
1044
- showFrozenColumnsSeparator: {
1045
- type: Boolean,
1046
- default: !1
1047
- },
1048
- /**
1049
- * The column all items selected state
1050
- */
1051
- allItemsSelectedState: {
1052
- type: Object,
1053
- default: void 0
1054
- },
1055
- /**
1056
- * Determines if the user has enabled row selection
1057
- */
1058
- selectable: {
1059
- type: Boolean,
1060
- default: !1
1061
- },
1062
- /**
1063
- * Adds an extra option when selecting all, to select items in other pages too
1064
- */
1065
- selectableAcrossPages: {
1066
- type: Boolean,
1067
- default: !1
1068
- },
1069
- /**
1070
- * Determines which state of row selection is currently active. Used to display the "Select all" menu options.
1071
- */
1072
- selectionState: {
1073
- type: String,
1074
- default: void 0
1075
- },
1076
- /**
1077
- * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
1078
- * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
1079
- */
1080
- sortBy: {
1081
- type: Array,
1082
- // NOTE: is an array to allow multi-sorting in the future
1083
- default: () => []
1084
- },
1085
- /**
1086
- * Truncates all data grid column headers
1087
- */
1088
- truncateColumnHeaders: {
1089
- type: Boolean,
1090
- default: !1
1091
- },
1092
- /**
1093
- * The maximum width of the row actions in all rows
1094
- */
1095
- rowActionsMaximumWidth: {
1096
- type: Number,
1097
- default: 0
1098
- }
1099
- },
1100
- emits: ["sort", "column-hover"],
1101
- setup(e, { expose: s, emit: i }) {
1102
- const t = e, u = i, l = 100, { t: n } = We({ messages: El }), { columns: v, sortBy: f } = yt(t), _ = E(), b = E({}), L = E({}), I = E(), S = E(), c = (r) => u(ae.SELECT_ALL_ROWS, r), T = (r) => r.field === Ee, N = C(() => t.selectionState === "all"), k = C(
1103
- () => {
1104
- var r, V, U;
1105
- return [
1106
- {
1107
- text: n("selectPage"),
1108
- handler: () => c(!0),
1109
- disabled: t.selectionState === "page" || t.selectionState === "all"
1110
- },
1111
- (r = t.visibleRowsState) != null && r.filtered ? {
1112
- text: n("selectAllCurrentResults"),
1113
- handler: () => u(ae.SELECT_ALL_CURRENT_RESULTS),
1114
- addDivider: t.selectionState !== "none",
1115
- disabled: t.selectionState === "all"
1116
- } : {
1117
- text: n("selectAll"),
1118
- handler: () => u(ae.SELECT_ALL_ACROSS_PAGES),
1119
- addDivider: t.selectionState !== "none",
1120
- disabled: t.selectionState === "all"
1121
- },
1122
- t.selectionState !== "none" && {
1123
- text: n("deselectPage"),
1124
- handler: () => c(!1),
1125
- addDivider: !((V = t.visibleRowsState) != null && V.filtered),
1126
- // otherwise divider shown in deselect all in current results
1127
- disabled: t.selectionState === "unselected-page"
1128
- },
1129
- ((U = t.visibleRowsState) == null ? void 0 : U.filtered) && t.selectionState !== "none" && {
1130
- text: n("deselectAllCurrentResults"),
1131
- handler: () => u(ae.DESELECT_ALL_CURRENT_RESULTS),
1132
- addDivider: !0,
1133
- disabled: t.selectionState === "unselected-page" && t.visibleRowsState.allRowsVisible
1134
- },
1135
- t.selectionState !== "none" && {
1136
- text: n("deselectAll"),
1137
- handler: () => u(ae.DESELECT_ALL)
1138
- }
1139
- ].filter(Boolean);
1140
- }
1141
- ), { startResize: y, isResizing: M, columnHoverEventToEmitAfterResizing: h } = Qn(v, u), { isSorting: F, getSortingDirection: m, sortByColumnField: a } = go(f, v, u), g = (r) => {
1142
- var ve;
1143
- if (!r.sortable)
1144
- return null;
1145
- const V = (ve = t.sortBy.find(({ field: me }) => me === r.field)) == null ? void 0 : ve.direction;
1146
- return V ? {
1147
- [He.ASCENDING]: ut.ASCENDING,
1148
- [He.DESCENDING]: ut.DESCENDING
1149
- }[V] : ut.NONE;
1150
- }, O = C(() => (r) => t.hasDraggableColumns ? {
1151
- dragstart: (V) => {
1152
- u(ae.COLUMN_DRAG_START, r, V);
1153
- },
1154
- dragover: (V) => {
1155
- V.preventDefault();
1156
- },
1157
- dragenter: (V) => {
1158
- V.preventDefault(), u(ae.COLUMN_DRAG_ENTER, r, V);
1159
- },
1160
- drop: () => {
1161
- u(ae.COLUMN_DROP, r);
1162
- },
1163
- dragend: () => {
1164
- u(ae.COLUMN_DRAG_END);
1165
- }
1166
- } : {}), B = C(
1167
- () => (r) => [
1168
- {
1169
- text: n("moveColumnLeft"),
1170
- handler: () => u(ae.COLUMN_MOVE, r, -1),
1171
- icon: Zn,
1172
- disabled: t.columns[0].field === r.field
1173
- },
1174
- {
1175
- text: n("moveColumnRight"),
1176
- handler: () => u(ae.COLUMN_MOVE, r, 1),
1177
- icon: jn,
1178
- disabled: t.columns[t.columns.length - 1].field === r.field
1179
- },
1180
- !ue.value && {
1181
- text: r != null && r.frozen ? n("unfreezeColumn") : n("freezeColumn"),
1182
- handler: () => u(ae.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
1183
- icon: pl
1184
- },
1185
- {
1186
- text: (r == null ? void 0 : r.visible) !== !1 ? n("hideColumn") : n("showColumn"),
1187
- handler: () => {
1188
- u(ae.COLUMN_UPDATE, {
1189
- ...r,
1190
- visible: (r == null ? void 0 : r.visible) === !1
1191
- });
1192
- },
1193
- icon: (r == null ? void 0 : r.visible) !== !1 ? qn : Kn,
1194
- disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && t.isOnlyOneVisibleColumn
1195
- }
1196
- ].filter(Boolean)
1197
- ), x = (r) => {
1198
- I.value = r.field, S.value && clearTimeout(S.value);
1199
- }, j = (r) => {
1200
- const V = setTimeout(() => {
1201
- r.field === I.value && (I.value = "");
1202
- }, l);
1203
- S.value = V;
1204
- }, le = (r) => {
1205
- let V = {
1206
- mouseenter: () => {
1207
- x(r), M.value ? h.value = r : u("column-hover", r);
1208
- },
1209
- mouseleave: () => {
1210
- j(r), M.value ? h.value = null : u("column-hover", null);
1211
- },
1212
- focus: () => {
1213
- x(r), T(r) && Ot(b.value[r.field]);
1214
- },
1215
- focusout: (U) => {
1216
- var ve;
1217
- (ve = _.value) != null && ve.contains(U == null ? void 0 : U.relatedTarget) || j(r);
1218
- }
1219
- };
1220
- return T(r) || (V = {
1221
- ...V,
1222
- ...O.value(r)
1223
- }), V;
1224
- }, be = (r) => r.infoIconTooltip || r.sortable || t.hasColumnPanel, ge = (r, V) => {
1225
- var U;
1226
- ((U = b.value) == null ? void 0 : U[V]) === void 0 && (b.value = { ...b.value, [V]: null }), r !== null && (b.value[V] = r);
1227
- }, ue = Pe(
1228
- ot,
1229
- C(() => !1)
1230
- ), oe = Pe(vt, E(!1)), X = C(() => {
1231
- var V;
1232
- const r = {
1233
- "b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
1234
- };
1235
- return (V = v.value[0]) != null && V.frozen && !ue.value ? {
1236
- ...r,
1237
- "b-data-grid-columns--frozen": !0,
1238
- "b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
1239
- "b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
1240
- } : {
1241
- ...r,
1242
- "b-data-grid-columns--unfrozen": !0
1243
- };
1244
- }), we = C(() => ({
1245
- "b-data-grid-columns__select-column--all": t.selectableAcrossPages
1246
- })), R = (r, V) => r && V === 0 ? Ht.BOTTOM_START : Ht.BOTTOM_END, ee = (r, V) => {
1247
- var U, ve, me, Ge, w, D, te, ne, ce, Z;
1248
- return {
1249
- "b-data-grid-columns__column--column-hovered": r.field === t.hoveredOverColumnState.hoveredOverColumnField,
1250
- "b-data-grid-columns__column--column-hovered-no-border-left": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
1251
- "b-data-grid-columns__column--column-hovered-no-border-right": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
1252
- "b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && V === v.value.length - 1,
1253
- "b-data-grid-columns__column--sortable": r.sortable,
1254
- "b-data-grid-columns__column--padding-left-unset": ((U = r == null ? void 0 : r.padding) == null ? void 0 : U.left) === !1,
1255
- "b-data-grid-columns__column--padding-right-unset": ((ve = r == null ? void 0 : r.padding) == null ? void 0 : ve.right) === !1,
1256
- "b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
1257
- "b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
1258
- "b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((Ge = (me = t.draggingColumns) == null ? void 0 : me.dragging) == null ? void 0 : Ge.field),
1259
- "b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((D = (w = t.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : D.field) && ((te = t.draggingColumns) == null ? void 0 : te.dragToLeft),
1260
- "b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((ce = (ne = t.draggingColumns) == null ? void 0 : ne.target) == null ? void 0 : ce.field) && !((Z = t.draggingColumns) != null && Z.dragToLeft),
1261
- "b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || t.hasColumnPanel || t.selectableAcrossPages,
1262
- "b-data-grid-columns--small-container": ue.value
1263
- };
1264
- }, q = (r) => ({
1265
- "b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
1266
- }), Q = (r) => ({
1267
- "b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
1268
- }), Ve = (r) => ({
1269
- "b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
1270
- "b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === r.field && t.hoveredOverColumnState.isSeparatorOffset
1271
- }), Ie = C(() => ({
1272
- "b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
1273
- })), Be = (r) => ({
1274
- "b-data-grid-columns__menu--hovered": I.value === r.field || oe.value
1275
- });
1276
- return s({
1277
- columnHeaderRefs: b
1278
- }), (r, V) => (d(), p("div", {
1279
- ref_key: "allColumnsRef",
1280
- ref: _,
1281
- class: de(["b-data-grid-columns", X.value]),
1282
- "data-testid": "data-grid-columns"
1283
- }, [
1284
- (d(!0), p(_e, null, Ae(o(v), (U, ve) => (d(), p("div", se({
1285
- key: U.field,
1286
- ref_for: !0,
1287
- ref: (me) => ge(me, U.field),
1288
- "aria-colindex": ve + 1,
1289
- "aria-label": U.label,
1290
- "aria-sort": g(U),
1291
- class: [ee(U, ve), "b-data-grid-columns__column"],
1292
- "data-testid": `${U.field}-column-header`,
1293
- draggable: e.hasDraggableColumns && !o(M) && !T(U),
1294
- role: "columnheader",
1295
- tabindex: U.sortable || e.hasColumnPanel || U.infoIconTooltip ? "0" : "-1",
1296
- style: { width: U.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${U.width}px` }
1297
- }, gt(le(U), !0)), [
1298
- T(U) && e.selectable ? (d(), p("div", {
1299
- key: 0,
1300
- class: de(["b-data-grid-columns__select-column", we.value])
1301
- }, [
1302
- e.selectableAcrossPages ? W("", !0) : (d(), H(o(_l), {
1303
- key: 0,
1304
- "aria-label": o(n)("selectAll"),
1305
- "model-value": e.allItemsSelectedState.allItemsSelected,
1306
- "data-testid": "checkbox-select-all",
1307
- indeterminate: e.allItemsSelectedState.isIndeterminate,
1308
- value: "data-grid-select-all",
1309
- "onUpdate:modelValue": c
1310
- }, null, 8, ["aria-label", "model-value", "indeterminate"])),
1311
- e.selectableAcrossPages ? (d(), H(o(St), {
1312
- key: 1,
1313
- button: { variant: "tertiary", condensed: !0, "aria-label": o(n)("selectAllMenu") },
1314
- data: k.value,
1315
- class: "b-data-grid-columns__select-column-menu",
1316
- "disable-arrow-down-opening-menu": "",
1317
- "menu-fixed-positioning": "",
1318
- "menu-position": "bottom-start"
1319
- }, {
1320
- iconLeft: G(() => [
1321
- A("div", Ko, [
1322
- Y(o(xn), {
1323
- indeterminate: e.allItemsSelectedState.isIndeterminate,
1324
- checked: e.allItemsSelectedState.allItemsSelected,
1325
- "all-selected": N.value,
1326
- class: "b-data-grid-columns__select-column-menu-checkbox",
1327
- "data-testid": "checkbox-select-all"
1328
- }, null, 8, ["indeterminate", "checked", "all-selected"]),
1329
- Y(o(jo), {
1330
- "svg-title": o(n)("selectionMenu"),
1331
- "aria-hidden": "true"
1332
- }, null, 8, ["svg-title"])
1333
- ])
1334
- ]),
1335
- _: 1
1336
- }, 8, ["button", "data"])) : W("", !0)
1337
- ], 2)) : (d(), p(_e, { key: 1 }, [
1338
- A("div", {
1339
- "aria-label": o(n)("columnActions", { name: U.label }),
1340
- "aria-live": "polite",
1341
- role: "region",
1342
- class: de(["b-data-grid-columns__column-header-and-actions", q(U)])
1343
- }, [
1344
- Y(o(qe), {
1345
- el: "div",
1346
- strongest: "",
1347
- class: de(["b-data-grid-columns__column-header", Ie.value])
1348
- }, {
1349
- default: G(() => [
1350
- ze(r.$slots, `head-${U.field}`, { column: U }, () => [
1351
- A("span", Jo, J(U.label), 1)
1352
- ], !0)
1353
- ]),
1354
- _: 2
1355
- }, 1032, ["class"]),
1356
- be(U) ? (d(), p("div", {
1357
- key: 0,
1358
- class: de(["b-data-grid-columns__column-actions", Q(U)])
1359
- }, [
1360
- U.infoIconTooltip ? (d(), p("div", Xo, [
1361
- Y(o(Gn), {
1362
- "tooltip-text": U.infoIconTooltip
1363
- }, null, 8, ["tooltip-text"])
1364
- ])) : W("", !0),
1365
- U.sortable ? (d(), p("div", Qo, [
1366
- Y(o(Tt), {
1367
- condensed: "",
1368
- toggled: o(F)(U.field),
1369
- variant: "tertiary",
1370
- onClick: (me) => o(a)(U.field)
1371
- }, {
1372
- iconLeft: G(() => [
1373
- o(m)(U.field) ? o(m)(U.field) === o(He).ASCENDING ? (d(), H(o(Fo), {
1374
- key: 1,
1375
- "svg-title": o(n)("sortColumnInDescendingOrder", { name: U.label })
1376
- }, null, 8, ["svg-title"])) : o(m)(U.field) === o(He).DESCENDING ? (d(), H(o(Ho), {
1377
- key: 2,
1378
- "svg-title": o(n)("sortColumnInAscendingOrder", { name: U.label })
1379
- }, null, 8, ["svg-title"])) : W("", !0) : (d(), H(o(Lo), {
1380
- key: 0,
1381
- "svg-title": o(n)("sortColumn", { name: U.label })
1382
- }, null, 8, ["svg-title"]))
1383
- ]),
1384
- _: 2
1385
- }, 1032, ["toggled", "onClick"])
1386
- ])) : W("", !0),
1387
- e.hasColumnPanel ? (d(), H(o(St), {
1388
- key: 2,
1389
- ref_for: !0,
1390
- ref: (me) => L.value[U.field] = me,
1391
- class: de(["b-data-grid-columns__menu", Be(U)]),
1392
- "disable-arrow-down-opening-menu": "",
1393
- data: B.value(U),
1394
- "menu-position": R(e.hasFirstColumnPanelRightAligned, ve),
1395
- "menu-fixed-positioning": !0,
1396
- button: { variant: "tertiary", condensed: !0 },
1397
- onOpen: V[0] || (V[0] = (me) => r.$emit(o(ae).COLUMN_MENU_OPEN)),
1398
- onClose: V[1] || (V[1] = (me) => r.$emit(o(ae).COLUMN_MENU_CLOSE))
1399
- }, null, 8, ["class", "data", "menu-position"])) : W("", !0)
1400
- ], 2)) : W("", !0)
1401
- ], 10, Yo),
1402
- A("div", {
1403
- "data-testid": `data-grid-column-${U.field}`,
1404
- class: de(["b-data-grid-columns__column-separator-container", Ve(U)]),
1405
- role: "presentation",
1406
- onMousedown: (me) => o(y)(e.hasResizableColumns, U.field, me),
1407
- onClick: V[2] || (V[2] = bn(() => {
1408
- }, ["stop"]))
1409
- }, [
1410
- !e.isFrozenColumns || e.isFrozenColumns && ve !== o(v).length - 1 ? (d(), p("div", ts)) : W("", !0)
1411
- ], 42, es)
1412
- ], 64))
1413
- ], 16, qo))), 128)),
1414
- e.rowActionsMaximumWidth && !e.isFrozenColumns ? (d(), p(_e, { key: 0 }, [
1415
- V[3] || (V[3] = A("div", {
1416
- role: "presentation",
1417
- class: "b-data-grid-columns__row-actions-filler"
1418
- }, null, -1)),
1419
- A("div", {
1420
- ref: (U) => ge(U, o(lt)),
1421
- "aria-label": o(n)("rowActionsColumn"),
1422
- "aria-colindex": o(v).length + 1,
1423
- class: "b-data-grid-columns__column",
1424
- role: "columnheader",
1425
- tabindex: "0",
1426
- style: Fe({ minWidth: `${e.rowActionsMaximumWidth}px` })
1427
- }, null, 12, ls)
1428
- ], 64)) : W("", !0)
1429
- ], 2));
1430
- }
1431
- }), ss = /* @__PURE__ */ re(os, [["__scopeId", "data-v-ee88da0d"]]);
1432
- var Ue = /* @__PURE__ */ ((e) => (e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e))(Ue || {});
1433
- let nl = 0;
1434
- const as = {
1435
- beforeCreate() {
1436
- this.uuid = nl.toString(), nl += 1;
1437
- }
1438
- }, is = { key: 0 }, rs = ["clip-path"], ds = ["id"];
1439
- function us(e, s, i, t, u, l) {
1440
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
1441
- class: "ui-assets-icons-16",
1442
- xmlns: "http://www.w3.org/2000/svg",
1443
- width: "16",
1444
- height: "16",
1445
- fill: "none"
1446
- }), [
1447
- e.$attrs["svg-title"] ? (d(), p("title", is, J(e.$attrs["svg-title"]), 1)) : W("", !0),
1448
- A("g", {
1449
- fill: "#001222",
1450
- "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
1451
- }, s[0] || (s[0] = [
1452
- A("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),
1453
- A("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)
1454
- ]), 8, rs),
1455
- A("defs", null, [
1456
- A("clipPath", {
1457
- id: "uia-ui-assets/icons-16-settings__a" + e.uuid
1458
- }, s[1] || (s[1] = [
1459
- A("rect", {
1460
- width: "16",
1461
- height: "16",
1462
- fill: "#fff"
1463
- }, null, -1)
1464
- ]), 8, ds)
1465
- ])
1466
- ], 16);
1467
- }
1468
- const cs = /* @__PURE__ */ re(as, [["render", us]]), ol = {
1469
- "en-US": {
1470
- toggleColumnFreeze: "Toggle {label} column freeze",
1471
- toggleColumnVisibility: "Toggle {label} column visibility"
1472
- },
1473
- "ja-JP": {
1474
- toggleColumnFreeze: "{label}列の固定を切り替え",
1475
- toggleColumnVisibility: "{label}列の表示を切り替え"
1476
- },
1477
- "pt-BR": {
1478
- toggleColumnFreeze: "Alternar congelamento da coluna {label}",
1479
- toggleColumnVisibility: "Alternar visibilidade da coluna {label}"
1480
- }
1481
- }, fs = Ne({
1482
- i18n: { messages: ol },
1483
- name: "bento-data-grid",
1484
- components: {
1485
- BentoFreezeIcon: pl,
1486
- BentoToggle: Cl
1487
- },
1488
- props: {
1489
- /**
1490
- * Is column visibitlity toggle disabled
1491
- */
1492
- isColumnVisibilityToggleDisabled: {
1493
- type: Boolean,
1494
- required: !0
1495
- },
1496
- /**
1497
- * Column definition
1498
- */
1499
- column: {
1500
- type: Object,
1501
- required: !0
1502
- }
1503
- },
1504
- emits: ["visible-column", "updated-column"],
1505
- setup(e, { emit: s }) {
1506
- const { t: i } = We({ messages: ol }), t = E(!1), u = C(() => {
1507
- var I;
1508
- return (I = e.column) == null ? void 0 : I.frozen;
1509
- }), l = C(() => {
1510
- var I;
1511
- return ((I = e.column) == null ? void 0 : I.visible) !== !1;
1512
- }), n = Pe(
1513
- ot,
1514
- C(() => !1)
1515
- ), v = () => {
1516
- s("visible-column", { ...e.column, visible: !l.value });
1517
- }, f = () => {
1518
- s("updated-column", { ...e.column, frozen: !u.value });
1519
- }, _ = () => {
1520
- u.value || (t.value = !0);
1521
- }, b = () => {
1522
- u.value || (t.value = !1);
1523
- }, L = C(() => ({
1524
- "b-data-grid-config-settings-column-row__freeze-icon--frozen": u.value
1525
- }));
1526
- return {
1527
- // Values
1528
- isFreezeIconOptionShown: t,
1529
- isColumnFrozen: u,
1530
- freezeIconConditionalClasses: L,
1531
- isColumnVisible: l,
1532
- isSmallContainer: n,
1533
- // Methods
1534
- toggleColumnVisibility: v,
1535
- showFreezeIcon: _,
1536
- hideFreezeIcon: b,
1537
- toggleColumnFreeze: f,
1538
- // Translations
1539
- t: i
1540
- };
1541
- }
1542
- });
1543
- function gs(e, s, i, t, u, l) {
1544
- const n = Te("bento-toggle"), v = Te("bento-freeze-icon");
1545
- return d(), p("div", {
1546
- class: "b-data-grid-config-settings-column-row",
1547
- onMouseover: s[0] || (s[0] = (...f) => e.showFreezeIcon && e.showFreezeIcon(...f)),
1548
- onMouseleave: s[1] || (s[1] = (...f) => e.hideFreezeIcon && e.hideFreezeIcon(...f))
1549
- }, [
1550
- Y(n, {
1551
- "aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
1552
- disabled: e.isColumnVisibilityToggleDisabled,
1553
- "label-position": "after",
1554
- value: e.isColumnVisible,
1555
- onInput: e.toggleColumnVisibility
1556
- }, {
1557
- default: G(() => [
1558
- fe(J(e.column.label), 1)
1559
- ]),
1560
- _: 1
1561
- }, 8, ["aria-label", "disabled", "value", "onInput"]),
1562
- nt(Y(v, {
1563
- "aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
1564
- class: de(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
1565
- onClick: e.toggleColumnFreeze
1566
- }, null, 8, ["aria-label", "class", "onClick"]), [
1567
- [wn, (e.isColumnFrozen || e.isFreezeIconOptionShown) && !e.isSmallContainer]
1568
- ])
1569
- ], 32);
1570
- }
1571
- const vs = /* @__PURE__ */ re(fs, [["render", gs], ["__scopeId", "data-v-0769d049"]]), sl = {
1572
- "en-US": {
1573
- appearance: "Appearance",
1574
- closeConfigSettingsPanel: "Close configuration settings panel",
1575
- closeSearch: "Close search",
1576
- columnVisibilitySearchFilter: "Column visibility search filter",
1577
- columns: "Columns",
1578
- condensed: "Condensed",
1579
- condensedToggle: "Condensed toggle",
1580
- configSettingsPanel: "Configuration settings Panel",
1581
- displayOptions: "Display options",
1582
- noColumnsMatch: "No columns match this search",
1583
- search: "Search",
1584
- showAllColumns: "Show all columns ({numberOfColumns})",
1585
- toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
1586
- zebraRows: "Zebra rows",
1587
- zebraRowsToggle: "Zebra rows toggle"
1588
- },
1589
- "ja-JP": {
1590
- appearance: "外観",
1591
- closeConfigSettingsPanel: "構成設定パネルを閉じる",
1592
- closeSearch: "検索を閉じる",
1593
- columnVisibilitySearchFilter: "列の表示設定検索フィルター",
1594
- columns: "列",
1595
- condensed: "凝縮",
1596
- condensedToggle: "簡略化を切り替え",
1597
- configSettingsPanel: "構成設定パネル",
1598
- displayOptions: "表示オプション",
1599
- noColumnsMatch: "この検索に一致する列はありません",
1600
- search: "検索",
1601
- showAllColumns: "すべての列を表示 ({numberOfColumns})",
1602
- toggleConfigSettingsPanelVisibility: "構成設定パネルの表示を切り替え",
1603
- zebraRows: "1行おきに色を設定",
1604
- zebraRowsToggle: "1行おきに色を設定の切り替え"
1605
- },
1606
- "pt-BR": {
1607
- appearance: "Aparência",
1608
- closeConfigSettingsPanel: "Fechar painel de configurações",
1609
- closeSearch: "Fechar busca",
1610
- columnVisibilitySearchFilter: "Filtro de busca de visibilidade de coluna",
1611
- columns: "Colunas",
1612
- condensed: "Condensado",
1613
- condensedToggle: "Alternância condensada",
1614
- configSettingsPanel: "Painel de configurações",
1615
- displayOptions: "Opções de exibição",
1616
- noColumnsMatch: "Nenhuma coluna corresponde a esta busca",
1617
- search: "Buscar",
1618
- showAllColumns: "Mostrar todas as colunas ({numberOfColumns})",
1619
- toggleConfigSettingsPanelVisibility: "Alternar a visibilidade do painel de configurações",
1620
- zebraRows: "Linhas alternadas",
1621
- zebraRowsToggle: "Alternar linhas alternadas"
1622
- }
1623
- }, ms = Ne({
1624
- i18n: { messages: sl },
1625
- name: "bento-data-grid",
1626
- components: {
1627
- BentoButton: hl,
1628
- BentoCrossIcon: vl,
1629
- BentoPopover: zn,
1630
- BentoSettingsIcon: cs,
1631
- BentoToggleButton: Tt,
1632
- BentoDataGridConfigSettingsConfigRow: vs,
1633
- BentoSearchBar: Bn,
1634
- BentoSearchIcon: Hn,
1635
- BentoToggle: Cl,
1636
- BentoTypography: qe
1637
- },
1638
- directives: { BentoClickOutsideDirective: Wn },
1639
- props: {
1640
- /**
1641
- * Column definitions
1642
- */
1643
- columns: {
1644
- type: Array,
1645
- required: !0
1646
- },
1647
- /**
1648
- * Sets the row cells to the condensed padding state.
1649
- */
1650
- condensed: {
1651
- type: Boolean,
1652
- default: !1
1653
- },
1654
- /**
1655
- * Sets a different background color for even rows.
1656
- */
1657
- zebraRows: {
1658
- type: Boolean,
1659
- default: !1
1660
- }
1661
- },
1662
- emits: [
1663
- Ue.UPDATE_CONDENSED,
1664
- Ue.UPDATE_COLUMNS,
1665
- Ue.UPDATE_ZEBRA_ROWS
1666
- ],
1667
- setup(e, { emit: s }) {
1668
- const { t: i } = We({ messages: sl }), t = E(null), u = ft("data-grid-config-settings-popover"), l = E(null), n = E(!1), v = E(!0), f = E(null), _ = E(""), b = bt(e, "columns"), L = E(!1), I = Vn(_, b), S = () => {
1669
- _.value = "";
1670
- }, c = C(
1671
- () => !e.columns.some((g) => g.visible === !1 && !g.mandatory)
1672
- ), T = () => {
1673
- S(), L.value = !L.value, L.value ? Ce(() => {
1674
- var g;
1675
- return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
1676
- }) : Ce(() => {
1677
- var g, O;
1678
- return (O = (g = f == null ? void 0 : f.value) == null ? void 0 : g.$el) == null ? void 0 : O.focus();
1679
- }), v.value = c.value;
1680
- }, N = (g) => g.mandatory ?? !1, k = (g) => {
1681
- const O = e.columns.map((B) => ({
1682
- ...B,
1683
- visible: g.field === B.field ? g.visible : B.visible
1684
- }));
1685
- s(Ue.UPDATE_COLUMNS, O);
1686
- }, y = (g) => {
1687
- g ? s(
1688
- Ue.UPDATE_COLUMNS,
1689
- e.columns.map((O) => ({ ...O, visible: !0 }))
1690
- ) : s(
1691
- Ue.UPDATE_COLUMNS,
1692
- e.columns.map((O) => ({ ...O, visible: (O == null ? void 0 : O.mandatory) === !0 }))
1693
- );
1694
- }, M = (g) => {
1695
- const O = e.columns.map((B) => ({
1696
- ...B,
1697
- frozen: g.field === B.field ? !!(g != null && g.frozen) : !!(B != null && B.frozen)
1698
- }));
1699
- s(Ue.UPDATE_COLUMNS, O);
1700
- }, h = (g) => {
1701
- n.value = g, v.value = c.value;
1702
- };
1703
- return {
1704
- // Values
1705
- configSettingsButtonRef: t,
1706
- popoverId: u,
1707
- isConfigSettingsPanelOpen: n,
1708
- allColumnsVisbilityToggleState: v,
1709
- filteredColumnVisibilityColumns: I,
1710
- searchTerm: _,
1711
- isColumnVisibilityFilterShown: L,
1712
- searchBarRef: l,
1713
- searchButtonRef: f,
1714
- DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Ee,
1715
- // Methods
1716
- setConfigSettingsPanelVisibility: h,
1717
- emitCondensedToggle: (g) => s(Ue.UPDATE_CONDENSED, g),
1718
- toggleAllColumnVisibility: y,
1719
- clearAction: S,
1720
- toggleColumnFilter: T,
1721
- emitVisibleColumns: k,
1722
- emitFrozenColumns: M,
1723
- onClickOutside: () => h(!1),
1724
- isColumnVisibilityToggleDisabled: N,
1725
- emitZebraRowsToggle: (g) => s(Ue.UPDATE_ZEBRA_ROWS, g),
1726
- // Translations
1727
- t: i
1728
- };
1729
- }
1730
- }), hs = { class: "b-data-grid-config-settings" }, Cs = { class: "b-data-grid-config-settings__button-and-separator" }, _s = {
1731
- ref: "configSettingsButtonRef",
1732
- class: "b-data-grid-config-settings__button-container"
1733
- }, bs = { class: "b-data-grid-config-settings__panel-header" }, ws = { class: "b-data-grid-config-settings__appearance" }, Ss = { class: "b-data-grid-config-settings__appearance-button" }, ps = { class: "b-data-grid-config-settings__appearance-button" }, Es = { class: "b-data-grid-config-settings__column-visibility-settings" }, ys = { class: "b-data-grid-config-settings__column-visibility-header" }, Rs = {
1734
- key: 0,
1735
- class: "b-data-grid-config-settings__column-visibility-search"
1736
- }, Ls = {
1737
- key: 1,
1738
- class: "b-data-grid-config-settings__column-visibility-show-all"
1739
- }, As = { class: "b-data-grid-config-settings__column-visibility-toggles" };
1740
- function Ts(e, s, i, t, u, l) {
1741
- const n = Te("bento-settings-icon"), v = Te("bento-toggle-button"), f = Te("bento-typography"), _ = Te("bento-cross-icon"), b = Te("bento-button"), L = Te("bento-toggle"), I = Te("bento-search-icon"), S = Te("bento-search-bar"), c = Te("bento-data-grid-config-settings-config-row"), T = Te("bento-popover"), N = Sn("bento-click-outside-directive");
1742
- return nt((d(), p("div", hs, [
1743
- A("div", Cs, [
1744
- A("div", _s, [
1745
- Y(v, {
1746
- "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
1747
- variant: "tertiary",
1748
- condensed: "",
1749
- toggled: e.isConfigSettingsPanelOpen,
1750
- onClick: s[0] || (s[0] = (k) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
1751
- }, {
1752
- iconLeft: G(() => [
1753
- Y(n, {
1754
- "svg-title": e.t("toggleConfigSettingsPanelVisibility")
1755
- }, null, 8, ["svg-title"])
1756
- ]),
1757
- _: 1
1758
- }, 8, ["aria-controls", "toggled"])
1759
- ], 512)
1760
- ]),
1761
- e.configSettingsButtonRef ? (d(), H(T, {
1762
- key: 0,
1763
- id: e.popoverId,
1764
- open: e.isConfigSettingsPanelOpen,
1765
- class: "b-data-grid-config-settings__panel",
1766
- "aria-label": e.t("configSettingsPanel"),
1767
- "target-element": e.configSettingsButtonRef,
1768
- position: "bottom-end"
1769
- }, {
1770
- default: G(() => [
1771
- A("div", bs, [
1772
- Y(f, {
1773
- el: "span",
1774
- strongest: ""
1775
- }, {
1776
- default: G(() => [
1777
- fe(J(e.t("displayOptions")), 1)
1778
- ]),
1779
- _: 1
1780
- }),
1781
- Y(b, {
1782
- variant: "tertiary",
1783
- onClick: s[1] || (s[1] = (k) => e.setConfigSettingsPanelVisibility(!1))
1784
- }, {
1785
- iconLeft: G(() => [
1786
- Y(_, {
1787
- "svg-title": e.t("closeConfigSettingsPanel")
1788
- }, null, 8, ["svg-title"])
1789
- ]),
1790
- _: 1
1791
- })
1792
- ]),
1793
- A("div", ws, [
1794
- Y(f, {
1795
- class: "b-data-grid-config-settings__appearance-title",
1796
- el: "span",
1797
- stronger: ""
1798
- }, {
1799
- default: G(() => [
1800
- fe(J(e.t("appearance")), 1)
1801
- ]),
1802
- _: 1
1803
- }),
1804
- A("div", Ss, [
1805
- Y(L, {
1806
- "label-position": "after",
1807
- "aria-label": e.t("condensedToggle"),
1808
- value: e.condensed,
1809
- onInput: e.emitCondensedToggle
1810
- }, {
1811
- default: G(() => [
1812
- fe(J(e.t("condensed")), 1)
1813
- ]),
1814
- _: 1
1815
- }, 8, ["aria-label", "value", "onInput"])
1816
- ]),
1817
- A("div", ps, [
1818
- Y(L, {
1819
- "label-position": "after",
1820
- "aria-label": e.t("zebraRowsToggle"),
1821
- value: e.zebraRows,
1822
- onInput: e.emitZebraRowsToggle
1823
- }, {
1824
- default: G(() => [
1825
- fe(J(e.t("zebraRows")), 1)
1826
- ]),
1827
- _: 1
1828
- }, 8, ["aria-label", "value", "onInput"])
1829
- ])
1830
- ]),
1831
- A("div", Es, [
1832
- A("div", ys, [
1833
- Y(f, {
1834
- class: "b-data-grid-config-settings__column-visibility-title",
1835
- el: "span",
1836
- stronger: ""
1837
- }, {
1838
- default: G(() => [
1839
- fe(J(e.t("columns")), 1)
1840
- ]),
1841
- _: 1
1842
- }),
1843
- e.isColumnVisibilityFilterShown ? (d(), H(b, {
1844
- key: 1,
1845
- variant: "tertiary",
1846
- onClick: e.toggleColumnFilter
1847
- }, {
1848
- iconLeft: G(() => [
1849
- Y(_)
1850
- ]),
1851
- default: G(() => [
1852
- fe(" " + J(e.t("closeSearch")), 1)
1853
- ]),
1854
- _: 1
1855
- }, 8, ["onClick"])) : (d(), H(b, {
1856
- key: 0,
1857
- ref: "searchButtonRef",
1858
- variant: "tertiary",
1859
- onClick: e.toggleColumnFilter
1860
- }, {
1861
- iconLeft: G(() => [
1862
- Y(I)
1863
- ]),
1864
- default: G(() => [
1865
- fe(J(e.t("search")), 1)
1866
- ]),
1867
- _: 1
1868
- }, 8, ["onClick"]))
1869
- ]),
1870
- e.isColumnVisibilityFilterShown ? (d(), p("div", Rs, [
1871
- Y(S, {
1872
- ref: "searchBarRef",
1873
- value: e.searchTerm,
1874
- "input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
1875
- onInput: s[2] || (s[2] = (k) => e.searchTerm = k),
1876
- onClear: e.clearAction,
1877
- onEscapePressed: e.toggleColumnFilter
1878
- }, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
1879
- ])) : (d(), p("div", Ls, [
1880
- Y(L, {
1881
- "label-position": "after",
1882
- value: e.allColumnsVisbilityToggleState,
1883
- onInput: e.toggleAllColumnVisibility
1884
- }, {
1885
- default: G(() => [
1886
- fe(J(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
1887
- ]),
1888
- _: 1
1889
- }, 8, ["value", "onInput"])
1890
- ])),
1891
- A("div", As, [
1892
- (d(!0), p(_e, null, Ae(e.filteredColumnVisibilityColumns, (k) => (d(), p("div", {
1893
- key: k.field
1894
- }, [
1895
- k.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (d(), H(c, {
1896
- key: 0,
1897
- column: k,
1898
- "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(k),
1899
- onVisibleColumn: e.emitVisibleColumns,
1900
- onUpdatedColumn: e.emitFrozenColumns
1901
- }, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : W("", !0)
1902
- ]))), 128)),
1903
- e.filteredColumnVisibilityColumns.length === 0 ? (d(), H(f, {
1904
- key: 0,
1905
- el: "span",
1906
- class: "b-data-grid-config-settings__column-visibility-empty-search-message"
1907
- }, {
1908
- default: G(() => [
1909
- fe(J(e.t("noColumnsMatch")), 1)
1910
- ]),
1911
- _: 1
1912
- })) : W("", !0)
1913
- ])
1914
- ])
1915
- ]),
1916
- _: 1
1917
- }, 8, ["id", "open", "aria-label", "target-element"])) : W("", !0)
1918
- ])), [
1919
- [N, e.onClickOutside]
1920
- ]);
1921
- }
1922
- const Os = /* @__PURE__ */ re(ms, [["render", Ts], ["__scopeId", "data-v-01dda331"]]), mt = {
1923
- "en-US": {
1924
- filterBar: "Filters",
1925
- gettingYourData: "Getting your data",
1926
- loading: "Loading",
1927
- noResults: "No results",
1928
- pagination: "Pagination",
1929
- selectRow: "Select row",
1930
- showMore: "Show more",
1931
- sortAscending: "{field} sort ascending",
1932
- sortDescending: "{field} sort descending",
1933
- sortInactive: "{field} sort inactive"
1934
- },
1935
- "ja-JP": {
1936
- filterBar: "フィルター",
1937
- gettingYourData: "データの取得",
1938
- loading: "読み込み中",
1939
- noResults: "結果がありません",
1940
- pagination: "ページネーション",
1941
- selectRow: "行を選択",
1942
- showMore: "表示内容を増やす",
1943
- sortAscending: "{field}昇順で並べ替え",
1944
- sortDescending: "{field}降順で並べ替え",
1945
- sortInactive: "{field}の並べ替えが無効"
1946
- },
1947
- "pt-BR": {
1948
- filterBar: "Filtro",
1949
- gettingYourData: "Obtendo seus dados",
1950
- loading: "Carregando",
1951
- noResults: "Nenhum resultado",
1952
- pagination: "Paginação",
1953
- selectRow: "Selecionar linha",
1954
- showMore: "Mostrar mais",
1955
- sortAscending: "{field} ordenar em ordem ascendente",
1956
- sortDescending: "{field} ordenar em ordem decrescente",
1957
- sortInactive: "{field} ordenação inativa"
1958
- }
1959
- }, Ns = { class: "b-data-grid-lazy-load" }, Is = {
1960
- i18n: { messages: mt }
1961
- }, Ds = /* @__PURE__ */ Ne({
1962
- ...Is,
1963
- __name: "data-grid-lazy-load",
1964
- props: {
1965
- loading: { type: Boolean },
1966
- isInfiniteScroll: { type: Boolean }
1967
- },
1968
- setup(e) {
1969
- const { t: s } = We({ messages: mt });
1970
- return (i, t) => (d(), p("div", Ns, [
1971
- i.loading && i.isInfiniteScroll ? (d(), H(o(ct), { key: 0 })) : W("", !0),
1972
- i.loading && !i.isInfiniteScroll ? (d(), H(o(Bt), {
1973
- key: 1,
1974
- variant: "secondary",
1975
- state: o(Wt).LOADING
1976
- }, {
1977
- default: G(() => [
1978
- fe(J(o(s)("loading")), 1)
1979
- ]),
1980
- _: 1
1981
- }, 8, ["state"])) : W("", !0),
1982
- !i.loading && !i.isInfiniteScroll ? (d(), H(o(Bt), {
1983
- key: 2,
1984
- state: o(Wt).START,
1985
- variant: "secondary",
1986
- onClick: t[0] || (t[0] = (u) => i.$emit(o(z).UPDATE_SHOW_MORE))
1987
- }, {
1988
- default: G(() => [
1989
- fe(J(o(s)("showMore")), 1)
1990
- ]),
1991
- _: 1
1992
- }, 8, ["state"])) : W("", !0)
1993
- ]));
1994
- }
1995
- }), $s = /* @__PURE__ */ re(Ds, [["__scopeId", "data-v-a4824c2d"]]);
1996
- let al = 0;
1997
- const ks = {
1998
- beforeCreate() {
1999
- this.uuid = al.toString(), al += 1;
2000
- }
2001
- }, Us = { key: 0 };
2002
- function Ms(e, s, i, t, u, l) {
2003
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
2004
- class: "ui-assets-icons-16",
2005
- xmlns: "http://www.w3.org/2000/svg",
2006
- width: "16",
2007
- height: "16",
2008
- fill: "none"
2009
- }), [
2010
- e.$attrs["svg-title"] ? (d(), p("title", Us, J(e.$attrs["svg-title"]), 1)) : W("", !0),
2011
- s[0] || (s[0] = A("path", {
2012
- fill: "#001222",
2013
- d: "M9.38867 2.21717C10.4626 1.14323 12.2044 1.14323 13.2783 2.21717L13.7832 2.72205C14.857 3.79601 14.8571 5.53782 13.7832 6.6117L5.64355 14.7504H1.25V10.3558L9.38867 2.21717ZM2.75 10.9769V13.2504H5.02246L11.2715 6.9994L8.99902 4.72693L2.75 10.9769ZM12.2168 3.27772C11.7286 2.78987 10.9373 2.78967 10.4492 3.27772L10.0596 3.66639L12.332 5.93885L12.7217 5.55018C13.2098 5.06203 13.2098 4.27076 12.7217 3.7826L12.2168 3.27772Z"
2014
- }, null, -1))
2015
- ], 16);
2016
- }
2017
- const il = /* @__PURE__ */ re(ks, [["render", Ms]]), Rl = {
2018
- "en-US": {
2019
- copy: "Copy",
2020
- edit: "Edit",
2021
- more: "More",
2022
- open: "Open"
2023
- },
2024
- "ja-JP": {
2025
- copy: "コピー",
2026
- edit: "編集",
2027
- more: "詳しく見る",
2028
- open: "未解決"
2029
- },
2030
- "pt-BR": {
2031
- copy: "Copiar",
2032
- edit: "Editar",
2033
- more: "Mais",
2034
- open: "Aberto"
2035
- }
2036
- }, Fs = { class: "b-data-grid-cell-actions" }, zs = {
2037
- i18n: { messages: Rl },
2038
- name: "data-grid-cell-actions"
2039
- }, Ps = /* @__PURE__ */ Ne({
2040
- ...zs,
2041
- props: {
2042
- /**
2043
- * Column definitions using 'key' to relate to data object.
2044
- */
2045
- cellActions: {
2046
- type: [Array, Function],
2047
- required: !0,
2048
- validator: (e) => (e == null ? void 0 : e.length) <= 2
2049
- },
2050
- /**
2051
- * The column field key.
2052
- */
2053
- columnKey: {
2054
- type: String,
2055
- default: void 0
2056
- },
2057
- /**
2058
- * Disables any opening of the cell actions menus using the down arrow key.
2059
- */
2060
- disableArrowDownOpeningMenu: {
2061
- type: Boolean,
2062
- default: !1
2063
- },
2064
- /**
2065
- * Set to true if the datagrid has been scrolled and the right side has overflowing space.
2066
- */
2067
- hasRightOverflow: {
2068
- type: Boolean,
2069
- default: !1
2070
- },
2071
- /**
2072
- * Set to true if the row has a darker background when zebra rows is enabled.
2073
- */
2074
- hasZebraBackground: {
2075
- type: Boolean,
2076
- default: !1
2077
- },
2078
- /**
2079
- * Set to true if the row is selected.
2080
- */
2081
- isSelected: {
2082
- type: Boolean,
2083
- default: !1
2084
- },
2085
- /**
2086
- * Set to true if the row is highlighted.
2087
- */
2088
- isHighlighted: {
2089
- type: Boolean,
2090
- default: !1
2091
- },
2092
- /**
2093
- * Set if set to true will teleport the action menu component
2094
- */
2095
- teleportMenu: {
2096
- type: Boolean,
2097
- default: !1
2098
- },
2099
- /**
2100
- * The row data item object.
2101
- */
2102
- rowDataItem: {
2103
- type: Object,
2104
- required: !0
2105
- }
2106
- },
2107
- emits: ["menu-open", "menu-close", "menu-item-click"],
2108
- setup(e, { emit: s }) {
2109
- const { t: i } = We({ messages: Rl }), t = e, u = s, l = Pe(vt, E(!1)), n = (h) => {
2110
- if ("text" in h && h.text !== void 0)
2111
- return h.text;
2112
- switch (h.variant) {
2113
- case "copy":
2114
- return i("copy");
2115
- case "edit":
2116
- return i("edit");
2117
- case "open":
2118
- return i("open");
2119
- case "more":
2120
- return i("more");
2121
- default:
2122
- return h.title;
2123
- }
2124
- }, v = (h) => {
2125
- switch (h.variant) {
2126
- case "copy":
2127
- return Zt;
2128
- case "edit":
2129
- return il;
2130
- case "open":
2131
- return xt;
2132
- default:
2133
- return;
2134
- }
2135
- }, f = C(() => t.columnKey === void 0), _ = C(() => ({
2136
- "b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": f.value && t.hasRightOverflow,
2137
- "b-data-grid-cell-actions__background-gradient--zebra": t.hasZebraBackground,
2138
- "b-data-grid-cell-actions__background-gradient--highlighted": t.isHighlighted,
2139
- "b-data-grid-cell-actions__background-gradient--selected": t.isSelected
2140
- })), b = C(() => ({
2141
- "b-data-grid-cell-actions__actions--with-row-actions": f.value,
2142
- "b-data-grid-cell-actions__actions--zebra": t.hasZebraBackground,
2143
- "b-data-grid-cell-actions__actions--highlighted": t.isHighlighted,
2144
- "b-data-grid-cell-actions__actions--selected": t.isSelected
2145
- })), L = C(() => !f.value || f.value && t.hasRightOverflow);
2146
- function I(h) {
2147
- return typeof h == "function";
2148
- }
2149
- const S = C(() => {
2150
- var F;
2151
- const h = I(t.cellActions) ? (F = t.cellActions) == null ? void 0 : F.call(t, t.rowDataItem, t.columnKey) : t.cellActions;
2152
- if (l.value && !f.value && h) {
2153
- const m = [];
2154
- return h.forEach((a) => {
2155
- a.menuData ? a.menuData.forEach((g) => {
2156
- m.push(g);
2157
- }) : m.push({
2158
- text: n(a),
2159
- event: a.event,
2160
- critical: a.critical,
2161
- disabled: a.disabled,
2162
- icon: v(a)
2163
- });
2164
- }), [
2165
- {
2166
- variant: "more",
2167
- isShort: !0,
2168
- iconLeft: Vt,
2169
- menuData: k(m)
2170
- }
2171
- ];
2172
- }
2173
- return !l.value && (h == null ? void 0 : h.length) > 2 && ml(
2174
- "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
2175
- ), h == null ? void 0 : h.slice(0, 2);
2176
- }), c = C(() => (h, F) => {
2177
- if (!(!F && h.isShort || F && !h.isShort))
2178
- switch (h.variant) {
2179
- case "copy":
2180
- return i("copy");
2181
- case "edit":
2182
- return i("edit");
2183
- case "open":
2184
- return i("open");
2185
- case "more":
2186
- return i("more");
2187
- default:
2188
- return h.title;
2189
- }
2190
- }), T = (h) => (h == null ? void 0 : h.event) !== void 0 ? {
2191
- click: (F) => {
2192
- F.stopPropagation(), h.event(t.rowDataItem, t.columnKey);
2193
- }
2194
- } : {}, N = (h) => ({
2195
- ...h,
2196
- handler: () => {
2197
- h != null && h.handler && typeof h.handler == "function" && (h == null || h.handler()), h != null && h.event && typeof h.event == "function" && (h == null || h.event(t.rowDataItem, t.columnKey));
2198
- }
2199
- }), k = (h) => h.map((F) => {
2200
- const m = F;
2201
- return m != null && m.items && (m.items = k(m.items)), { ...N(m) };
2202
- }), y = (h) => {
2203
- var F, m;
2204
- return (h == null ? void 0 : h.getCopyData) !== void 0 ? h.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (m = (F = t.rowDataItem) == null ? void 0 : F[t.columnKey]) == null ? void 0 : m.toString() : "";
2205
- }, M = (h) => h.iconLeft || (h == null ? void 0 : h.variant) === "more";
2206
- return (h, F) => (d(), H(gl, {
2207
- name: "b-data-grid-cell-actions__animation",
2208
- appear: ""
2209
- }, {
2210
- default: G(() => [
2211
- A("div", Fs, [
2212
- L.value && !o(l) ? (d(), p("div", {
2213
- key: 0,
2214
- class: de(["b-data-grid-cell-actions__background-gradient", _.value])
2215
- }, null, 2)) : W("", !0),
2216
- A("div", {
2217
- class: de(["b-data-grid-cell-actions__actions", b.value]),
2218
- role: "group"
2219
- }, [
2220
- (d(!0), p(_e, null, Ae(S.value, (m, a) => (d(), p("div", {
2221
- key: a,
2222
- class: "b-data-grid-cell-actions__action"
2223
- }, [
2224
- m.menuData ? nt((d(), H(o(St), {
2225
- key: 0,
2226
- data: k(m.menuData),
2227
- button: {
2228
- condensed: !0,
2229
- variant: "secondary",
2230
- disabled: m.disabled
2231
- },
2232
- "disable-arrow-down-opening-menu": e.disableArrowDownOpeningMenu,
2233
- teleport: e.teleportMenu,
2234
- onOpen: F[0] || (F[0] = (g) => u("menu-open")),
2235
- onClose: F[1] || (F[1] = (g) => u("menu-close")),
2236
- onMenuItemClick: F[2] || (F[2] = (g) => u("menu-item-click"))
2237
- }, Qe({ _: 2 }, [
2238
- M(m) ? {
2239
- name: "iconLeft",
2240
- fn: G(() => [
2241
- (m == null ? void 0 : m.variant) === "more" ? (d(), H(o(Vt), {
2242
- key: 0,
2243
- "svg-title": c.value(m, !0)
2244
- }, null, 8, ["svg-title"])) : (d(), H(Xe(m.iconLeft), {
2245
- key: 1,
2246
- "svg-title": c.value(m, !0)
2247
- }, null, 8, ["svg-title"]))
2248
- ]),
2249
- key: "0"
2250
- } : void 0,
2251
- m != null && m.isShort ? void 0 : {
2252
- name: "default",
2253
- fn: G(() => [
2254
- fe(J(c.value(m)), 1)
2255
- ]),
2256
- key: "1"
2257
- }
2258
- ]), 1032, ["data", "button", "disable-arrow-down-opening-menu", "teleport"])), [
2259
- [o(wt), m.tooltipText, m.tooltipPosition]
2260
- ]) : m.variant === "copy" ? (d(), H(o(Zt), {
2261
- key: 1,
2262
- text: y(m),
2263
- "button-text": c.value(m),
2264
- button: {
2265
- condensed: !0,
2266
- variant: "secondary"
2267
- }
2268
- }, null, 8, ["text", "button-text"])) : nt((d(), H(o(hl), se({
2269
- key: 2,
2270
- condensed: "",
2271
- variant: "secondary",
2272
- critical: m.critical,
2273
- disabled: m.disabled,
2274
- link: m.link
2275
- }, gt(T(m))), Qe({ _: 2 }, [
2276
- m.iconLeft || m.variant === "edit" ? {
2277
- name: "iconLeft",
2278
- fn: G(() => [
2279
- (m == null ? void 0 : m.variant) === "edit" ? (d(), H(o(il), {
2280
- key: 0,
2281
- "svg-title": c.value(m, !0)
2282
- }, null, 8, ["svg-title"])) : (d(), H(Xe(m.iconLeft), {
2283
- key: 1,
2284
- "svg-title": m.title
2285
- }, null, 8, ["svg-title"]))
2286
- ]),
2287
- key: "0"
2288
- } : void 0,
2289
- m != null && m.isShort ? void 0 : {
2290
- name: "default",
2291
- fn: G(() => [
2292
- fe(J(c.value(m)), 1)
2293
- ]),
2294
- key: "1"
2295
- },
2296
- m.iconRight || m.variant === "open" ? {
2297
- name: "iconRight",
2298
- fn: G(() => [
2299
- (m == null ? void 0 : m.variant) === "open" ? (d(), H(o(xt), {
2300
- key: 0,
2301
- "svg-title": c.value(m, !0)
2302
- }, null, 8, ["svg-title"])) : (d(), H(Xe(m.iconRight), {
2303
- key: 1,
2304
- "svg-title": m.title
2305
- }, null, 8, ["svg-title"]))
2306
- ]),
2307
- key: "2"
2308
- } : void 0
2309
- ]), 1040, ["critical", "disabled", "link"])), [
2310
- [o(wt), m.tooltipText, m.tooltipPosition]
2311
- ])
2312
- ]))), 128))
2313
- ], 2)
2314
- ])
2315
- ]),
2316
- _: 1
2317
- }));
2318
- }
2319
- }), Ll = /* @__PURE__ */ re(Ps, [["__scopeId", "data-v-98d959e5"]]);
2320
- var he = /* @__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))(he || {});
2321
- const rl = () => {
2322
- const e = document.activeElement;
2323
- return e ? e.matches(":focus-visible") || e.matches(".focus-visible") : !1;
2324
- }, Al = {
2325
- "en-US": {
2326
- collapseNestedContent: "Collapse nested content",
2327
- expandNestedContent: "Expand nested content",
2328
- selectRow: "Select row"
2329
- },
2330
- "ja-JP": {
2331
- collapseNestedContent: "ネストされたコンテンツを折りたたむ",
2332
- expandNestedContent: "ネストされたコンテンツを展開",
2333
- selectRow: "行を選択"
2334
- },
2335
- "pt-BR": {
2336
- collapseNestedContent: "Recolher conteúdo aninhado",
2337
- expandNestedContent: "Expandir conteúdo aninhado",
2338
- selectRow: "Selecionar linha"
2339
- }
2340
- }, Bs = ["aria-hidden", "data-testid", "data-cellindex", "tabindex", "aria-colindex"], Ws = ["title"], Vs = {
2341
- key: 0,
2342
- class: "b-data-grid-cell__cell-actions"
2343
- }, Hs = {
2344
- i18n: { messages: Al },
2345
- name: "data-grid-cell"
2346
- }, Gs = /* @__PURE__ */ Ne({
2347
- ...Hs,
2348
- props: {
2349
- draggingEventsForRowCell: {
2350
- type: Function,
2351
- required: !0
2352
- },
2353
- /**
2354
- * The columns sets including
2355
- */
2356
- columnSets: {
2357
- type: Array,
2358
- required: !0
2359
- },
2360
- /**
2361
- * The columns set we are iterating over
2362
- */
2363
- column: {
2364
- type: Object,
2365
- required: !0
2366
- },
2367
- colIndex: {
2368
- type: Number,
2369
- required: !0
2370
- },
2371
- columnSetIndex: {
2372
- type: Number,
2373
- required: !0
2374
- },
2375
- /**
2376
- * Sets the row cells to the condensed padding state.
2377
- */
2378
- condensed: {
2379
- type: Boolean,
2380
- default: !1
2381
- },
2382
- /**
2383
- * Columns being dragged, contains dragging column and a target column
2384
- */
2385
- draggingColumns: {
2386
- type: Object,
2387
- default: void 0
2388
- },
2389
- /**
2390
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2391
- * This is used selecting and performance reasons and must exist in each data item.
2392
- */
2393
- getDataItemId: {
2394
- type: Function,
2395
- default: (e) => e.id
2396
- },
2397
- /**
2398
- * Set to true if the cell has a darker background when zebra rows is enabled.
2399
- */
2400
- hasZebraBackground: {
2401
- type: Boolean,
2402
- default: !1
2403
- },
2404
- /**
2405
- * Set to true if the row is selected.
2406
- */
2407
- isSelected: {
2408
- type: Boolean,
2409
- default: !1
2410
- },
2411
- /**
2412
- * Set to true if the row is highlighted.
2413
- */
2414
- isHighlighted: {
2415
- type: Boolean,
2416
- default: !1
2417
- },
2418
- /**
2419
- * The column hovered over state and whether the hovered over column should show a border right or left.
2420
- */
2421
- hoveredOverColumnState: {
2422
- type: Object,
2423
- required: !0
2424
- },
2425
- /**
2426
- * A customisable method to determine if a row is not selectable.
2427
- * The default is that every row is selectable.
2428
- */
2429
- isDataItemDisabled: {
2430
- type: Function,
2431
- default: () => !1
2432
- },
2433
- isMeasuringColumnWidths: {
2434
- type: Boolean,
2435
- default: !1
2436
- },
2437
- /**
2438
- * Determines if the nested content is visible.
2439
- */
2440
- isNestedContentExpanded: {
2441
- type: Boolean,
2442
- default: !1
2443
- },
2444
- /**
2445
- * Determines if the nest content slot is enabled for this data row.
2446
- */
2447
- nestedContent: {
2448
- type: Boolean,
2449
- default: !1
2450
- },
2451
- /**
2452
- * The IDs of the rows this cell controls to show / hide them.
2453
- */
2454
- nestedRowsElementIds: {
2455
- type: Array,
2456
- default: () => []
2457
- },
2458
- /**
2459
- * The row data object
2460
- */
2461
- rowData: {
2462
- type: Object,
2463
- required: !0
2464
- },
2465
- rowIndex: {
2466
- type: Number,
2467
- required: !0
2468
- },
2469
- /**
2470
- * The row selection checkbox indeterminate state.
2471
- */
2472
- selectionIsIndeterminate: {
2473
- type: Boolean,
2474
- default: !1
2475
- },
2476
- /**
2477
- * Determines if the row selection is enabled.
2478
- */
2479
- selectable: {
2480
- type: Boolean,
2481
- default: !1
2482
- },
2483
- selectedItems: {
2484
- type: Array,
2485
- required: !0
2486
- }
2487
- },
2488
- emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
2489
- setup(e, { expose: s, emit: i }) {
2490
- const t = Rt(), u = Lt(t), { t: l } = We({ messages: Al }), n = e, v = i, f = E(null), _ = E(null), b = E(!1), L = E([]), I = E(!1), S = E(), c = E(!1), T = C(() => {
2491
- var R;
2492
- return !!((R = n.rowData) != null && R[n.column.field]);
2493
- }), N = C(
2494
- () => {
2495
- var R;
2496
- return n.column.field === Ee && ((R = n.nestedRowsElementIds) == null ? void 0 : R.length) > 0 ? n.nestedRowsElementIds.join(" ") : void 0;
2497
- }
2498
- ), k = C(
2499
- () => n.column.field === Ee && !n.selectable && !n.nestedContent
2500
- ), y = C(() => !k.value && (a(n.rowIndex, n.colIndex, n.columnSetIndex) === 0 && !c.value || I.value) ? "0" : (n.column.field === Ee, "-1")), M = (R, ee) => (R == null ? void 0 : R.overflow) === pt.ELLIPSIS ? `${ee}` : void 0, h = (R) => R ?? "-", F = (R) => n.columnSets.slice(0, R).reduce((ee, { columnSet: q }) => ee + q.length, 0), m = (R, ee) => R + F(ee), a = (R, ee, q) => F() * R + m(ee, q), g = (R) => {
2501
- var ee;
2502
- (R === null || !f.value.contains(R) && !((ee = L.value) != null && ee.map((q) => q.value).some((q) => q === R || (q == null ? void 0 : q.contains(R))))) && (b.value = !1);
2503
- }, O = () => {
2504
- b.value = !1;
2505
- }, B = E(!1), x = (R) => {
2506
- const ee = {
2507
- ...n.draggingEventsForRowCell(R),
2508
- // Focus on the first interactive child in the grid cell if one exists
2509
- focus: async () => {
2510
- if (!rl())
2511
- return;
2512
- I.value = !0, c.value = !0, v("cell-focus", {
2513
- rowData: n.rowData,
2514
- column: n.column,
2515
- rowIndex: n.rowIndex,
2516
- colIndex: m(n.colIndex, n.columnSetIndex)
2517
- }), Sl(S.value), await Ce(), Ot(f.value) && (B.value = !0);
2518
- },
2519
- focusout: () => {
2520
- rl() && (B.value = !1);
2521
- },
2522
- keydown: (Q) => {
2523
- Q.key !== Oe.TAB && (B.value = !1, I.value = !1, je(f.value));
2524
- }
2525
- }, q = { ...ee };
2526
- return R.frozen && (q.keyup = (Q) => v("on-frozen-columns-key-press", Q), q.keydown = (Q) => {
2527
- ee.keydown(Q), v("on-frozen-columns-key-press", Q);
2528
- }), R.cellActions && (q.mouseenter = () => {
2529
- b.value = !0;
2530
- }, q.mouseleave = (Q) => {
2531
- g(Q == null ? void 0 : Q.relatedTarget);
2532
- }, q.focus = async (Q) => {
2533
- ee.focus(Q), await Ce(), b.value = !0;
2534
- }, q.focusout = (Q) => {
2535
- ee.focusout(Q), g(Q == null ? void 0 : Q.relatedTarget);
2536
- }), q;
2537
- };
2538
- et(() => {
2539
- S.value = je(f.value);
2540
- });
2541
- const j = () => {
2542
- v("nested-content-toggled");
2543
- };
2544
- ye(
2545
- () => b.value,
2546
- () => {
2547
- b.value === !0 ? v("cell-hovered", n.rowIndex) : v("cell-hovered", -1);
2548
- }
2549
- ), dt(Pn, {
2550
- registerMenuContainerElement: (R) => {
2551
- L.value.push(R);
2552
- },
2553
- menuMouseLeave: (R) => {
2554
- f.value.contains(R == null ? void 0 : R.relatedTarget) || (b.value = !1);
2555
- }
2556
- });
2557
- const ge = Pe(yl, E(!1)), ue = Pe(
2558
- ot,
2559
- C(() => !1)
2560
- ), oe = Pe(vt, E(!1)), X = (R) => {
2561
- var ee, q, Q, Ve, Ie, Be, r;
2562
- return {
2563
- [`b-data-grid-cell--${he.COLUMN_HOVERED}`]: (R == null ? void 0 : R.field) === n.hoveredOverColumnState.hoveredOverColumnField,
2564
- [`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (R == null ? void 0 : R.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
2565
- [`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (R == null ? void 0 : R.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
2566
- [`b-data-grid-cell--${he.PADDING_LEFT_UNSET}`]: ((ee = R == null ? void 0 : R.padding) == null ? void 0 : ee.left) === !1,
2567
- [`b-data-grid-cell--${he.PADDING_RIGHT_UNSET}`]: ((q = R == null ? void 0 : R.padding) == null ? void 0 : q.right) === !1,
2568
- [`b-data-grid-cell--${he.NUMERIC}`]: R == null ? void 0 : R.numeric,
2569
- [`b-data-grid-cell--${he.CONDENSED}`]: n.condensed,
2570
- [`b-data-grid-cell--${he.OVERFLOW_ELLIPSIS}`]: (R == null ? void 0 : R.overflow) === pt.ELLIPSIS,
2571
- [`b-data-grid-cell--${he.IS_COLUMN_REORDERING}`]: ((Q = n.draggingColumns.dragging) == null ? void 0 : Q.field) === R.field,
2572
- [`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ve = n.draggingColumns.target) == null ? void 0 : Ve.field) === R.field && ((Ie = n.draggingColumns) == null ? void 0 : Ie.dragToLeft),
2573
- [`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Be = n.draggingColumns.target) == null ? void 0 : Be.field) === R.field && !((r = n.draggingColumns) != null && r.dragToLeft),
2574
- [`b-data-grid-cell--${he.FROZEN}`]: R == null ? void 0 : R.frozen,
2575
- [`b-data-grid-cell--${he.NESTED_CONTENT_ENABLED}`]: n.nestedContent,
2576
- [`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_ENABLED}`]: n.nestedContent && !n.selectable && R.field === Ee,
2577
- [`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: n.nestedContent && n.selectable && R.field === Ee,
2578
- [`b-data-grid-cell--${he.ACTION_COL_SELECTION_ENABLED}`]: R.field === Ee && n.selectable,
2579
- [`b-data-grid-cell--${he.SLASHED_ZERO}`]: ge.value,
2580
- "b-data-grid-cell--small-container": ue.value
2581
- };
2582
- }, we = C(() => ({
2583
- "b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": B.value
2584
- }));
2585
- return s({
2586
- gridcellRef: f
2587
- }), (R, ee) => {
2588
- var q;
2589
- return d(), p("div", se({
2590
- key: `cell-${e.column.field}`,
2591
- ref_key: "gridcellRef",
2592
- ref: f,
2593
- "aria-hidden": k.value,
2594
- "data-testid": `cell-${e.column.field}`,
2595
- "data-cellindex": a(e.rowIndex, e.colIndex, e.columnSetIndex),
2596
- class: ["b-data-grid-cell", X(e.column)],
2597
- role: "gridcell",
2598
- tabindex: y.value,
2599
- "aria-colindex": m(e.colIndex, e.columnSetIndex) + 1,
2600
- style: {
2601
- width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
2602
- }
2603
- }, gt(x(e.column), !0)), [
2604
- e.column.field === o(Ee) ? (d(), p(_e, { key: 0 }, [
2605
- e.selectable ? (d(), H(o(_l), {
2606
- key: 0,
2607
- class: "b-data-grid-cell__select-cell",
2608
- "aria-label": o(l)("selectRow"),
2609
- disabled: e.isDataItemDisabled(e.rowData),
2610
- indeterminate: e.selectionIsIndeterminate,
2611
- "model-value": e.selectedItems,
2612
- value: e.getDataItemId(e.rowData),
2613
- tabindex: I.value ? 0 : -1,
2614
- "onUpdate:modelValue": ee[0] || (ee[0] = (Q) => R.$emit("select-row", Q))
2615
- }, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value", "tabindex"])) : W("", !0),
2616
- e.nestedContent ? (d(), H(o(Tt), {
2617
- key: 1,
2618
- ref: "menuButtonRef",
2619
- "aria-haspopup": "true",
2620
- "aria-controls": N.value,
2621
- condensed: "",
2622
- variant: "tertiary",
2623
- toggled: e.isNestedContentExpanded,
2624
- onClick: j
2625
- }, {
2626
- iconLeft: G(() => [
2627
- e.isNestedContentExpanded ? (d(), H(o(Jn), {
2628
- key: 0,
2629
- class: "b-accordion-item__icon",
2630
- "svg-title": o(l)("collapseNestedContent")
2631
- }, null, 8, ["svg-title"])) : (d(), H(o(Yn), {
2632
- key: 1,
2633
- class: "b-accordion-item__icon",
2634
- "svg-title": o(l)("expandNestedContent")
2635
- }, null, 8, ["svg-title"]))
2636
- ]),
2637
- _: 1
2638
- }, 8, ["aria-controls", "toggled"])) : W("", !0)
2639
- ], 64)) : (d(), p(_e, { key: 1 }, [
2640
- Y(o(qe), {
2641
- el: "div",
2642
- class: de(["b-data-grid-cell__cell-content", we.value]),
2643
- "data-testid": "cell-content"
2644
- }, {
2645
- default: G(() => [
2646
- ze(R.$slots, `item-${e.column.field}`, {
2647
- item: e.rowData,
2648
- rowIndex: e.rowIndex
2649
- }, () => [
2650
- A("span", {
2651
- title: M(e.column, e.rowData[e.column.field])
2652
- }, J(h(e.rowData[e.column.field])), 9, Ws)
2653
- ], !0)
2654
- ]),
2655
- _: 3
2656
- }, 8, ["class"]),
2657
- ((q = e.column.cellActions) == null ? void 0 : q.length) > 0 ? (d(), p("div", Vs, [
2658
- (b.value || o(oe)) && (T.value || o(u)(`item-${e.column.field}`)) ? (d(), H(Ll, {
2659
- key: 0,
2660
- ref_key: "cellActionsRef",
2661
- ref: _,
2662
- "cell-actions": e.column.cellActions,
2663
- "column-key": e.column.field,
2664
- "row-data-item": e.rowData,
2665
- "has-zebra-background": e.hasZebraBackground,
2666
- "is-highlighted": e.isHighlighted,
2667
- "is-selected": e.isSelected,
2668
- "teleport-menu": "",
2669
- onMenuItemClick: O
2670
- }, null, 8, ["cell-actions", "column-key", "row-data-item", "has-zebra-background", "is-highlighted", "is-selected"])) : W("", !0)
2671
- ])) : W("", !0)
2672
- ], 64))
2673
- ], 16, Bs);
2674
- };
2675
- }
2676
- }), xs = /* @__PURE__ */ re(Gs, [["__scopeId", "data-v-51166457"]]), Zs = {
2677
- class: "b-data-grid-row-container",
2678
- role: "presentation"
2679
- }, js = ["id", "aria-selected"], qs = ["data-testid"], Ks = ["aria-colindex", "data-cellindex"], Ys = {
2680
- key: 0,
2681
- class: "b-data-grid-row-container__row-nested-rows-loading-container"
2682
- }, Js = {
2683
- key: 0,
2684
- class: "b-data-grid-row-container__row-nested-rows-loading-container"
2685
- }, Xs = { key: 1 }, Qs = {
2686
- name: "data-grid-row"
2687
- }, ea = /* @__PURE__ */ Ne({
2688
- ...Qs,
2689
- props: {
2690
- /**
2691
- * Row actions property that generates which button to show in row actions area
2692
- */
2693
- rowActions: {
2694
- type: [Function, Array],
2695
- default: void 0
2696
- },
2697
- /**
2698
- * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
2699
- */
2700
- allowRowClicks: { type: Boolean, default: !1 },
2701
- /**
2702
- * The columns sets including
2703
- */
2704
- columnSets: {
2705
- type: Array,
2706
- required: !0
2707
- },
2708
- /**
2709
- * Sets the row cells to the condensed padding state.
2710
- */
2711
- condensed: {
2712
- type: Boolean,
2713
- default: !1
2714
- },
2715
- /**
2716
- * Columns being dragged, contains dragging column and a target column
2717
- */
2718
- draggingColumns: {
2719
- type: Object,
2720
- default: void 0
2721
- },
2722
- /**
2723
- * Dragging event handlers for each row cell
2724
- */
2725
- draggingEventsForRowCell: {
2726
- type: Function,
2727
- required: !0
2728
- },
2729
- /**
2730
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2731
- * This is used selecting and performance reasons and must exist in each data item.
2732
- */
2733
- getDataItemId: {
2734
- type: Function,
2735
- default: (e) => e.id
2736
- },
2737
- /**
2738
- * Set to true if the datagrid has been scrolled and the left side has overflowing space.
2739
- */
2740
- hasLeftOverflow: {
2741
- type: Boolean,
2742
- default: !1
2743
- },
2744
- /**
2745
- * Enables the nested content slot functionality.
2746
- */
2747
- hasNestedContent: {
2748
- type: Boolean,
2749
- default: !1
2750
- },
2751
- /**
2752
- * Enables the nested content slot functionality.
2753
- */
2754
- hasNestedRows: {
2755
- type: Boolean,
2756
- default: !1
2757
- },
2758
- /**
2759
- * Set to true if the datagrid has been scrolled and the right side has overflowing space.
2760
- */
2761
- hasRightOverflow: {
2762
- type: Boolean,
2763
- default: !1
2764
- },
2765
- /**
2766
- * Highlighted row IDs.
2767
- */
2768
- highlightedRows: {
2769
- type: Array,
2770
- default: () => []
2771
- },
2772
- /**
2773
- * The row index of a currently hovered row.
2774
- */
2775
- hoveredRowIndex: {
2776
- type: Number,
2777
- default: -1
2778
- },
2779
- /**
2780
- * The column hovered over state and whether the hovered over column should show a border right or left.
2781
- */
2782
- hoveredOverColumnState: {
2783
- type: Object,
2784
- required: !0
2785
- },
2786
- /**
2787
- * A customisable method to determine if a row is not selectable.
2788
- * The default is that every row is selectable.
2789
- */
2790
- isDataItemDisabled: {
2791
- type: Function,
2792
- default: () => !1
2793
- },
2794
- /**
2795
- * If the row is of an even number.
2796
- * Rows are 0th based index e.g. index 0 is an odd-numbered row.
2797
- */
2798
- isRowEven: {
2799
- type: Boolean,
2800
- default: !1
2801
- },
2802
- /**
2803
- * If the row is the last child in it's parent container.
2804
- */
2805
- isRowLastChild: {
2806
- type: Boolean,
2807
- default: !1
2808
- },
2809
- /**
2810
- * If columns are being measured for the autoWidth functionality.
2811
- */
2812
- isMeasuringColumnWidths: {
2813
- type: Boolean,
2814
- default: !1
2815
- },
2816
- /**
2817
- * Determines if this row is nested inside another row.
2818
- */
2819
- isNestedRow: {
2820
- type: Boolean,
2821
- default: !1
2822
- },
2823
- /**
2824
- * The maximum width of the row actions in all rows
2825
- */
2826
- rowActionsMaximumWidth: {
2827
- type: Number,
2828
- default: 0
2829
- },
2830
- /**
2831
- * The row data object
2832
- */
2833
- rowData: {
2834
- type: Object,
2835
- required: !0
2836
- },
2837
- /**
2838
- * The row index.
2839
- */
2840
- rowIndex: {
2841
- type: Number,
2842
- required: !0
2843
- },
2844
- /**
2845
- * The row ID to be using for the ID attribute.
2846
- */
2847
- rowId: {
2848
- type: Number,
2849
- default: void 0
2850
- },
2851
- /**
2852
- * The number of rows that this row is within.
2853
- */
2854
- rowSetSize: {
2855
- type: Number,
2856
- default: 0
2857
- },
2858
- /**
2859
- * Determines whether to render frozen seperator on the row.
2860
- */
2861
- showFrozenColumnsSeparator: {
2862
- type: Boolean,
2863
- default: !1
2864
- },
2865
- /**
2866
- * Determines if the row selection is enabled.
2867
- */
2868
- selectable: {
2869
- type: Boolean,
2870
- default: !1
2871
- },
2872
- /**
2873
- * The array of IDs for the selected rows.
2874
- */
2875
- selectedItems: {
2876
- type: Array,
2877
- required: !0
2878
- },
2879
- /**
2880
- * Enables / Disables the nested-content slot
2881
- */
2882
- shouldShowNestedContent: {
2883
- type: Function,
2884
- default: (e) => !0
2885
- },
2886
- /**
2887
- * Returns the nested rows for a given BentoDatagridDataItem.
2888
- */
2889
- shouldShowNestedRows: {
2890
- type: Function,
2891
- default: (e) => !0
2892
- }
2893
- },
2894
- emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
2895
- setup(e, { expose: s, emit: i }) {
2896
- const t = Rt(), u = Lt(t), l = e, n = i, v = E({}), f = E(!1), _ = E(), b = E(), L = ft("nested-content-slot"), I = E(!1), S = E();
2897
- et(() => {
2898
- b.value && (S.value = je(b.value));
2899
- });
2900
- const c = C(() => l.shouldShowNestedRows(l.rowData)), T = C(
2901
- () => {
2902
- var w, D;
2903
- return !l.isNestedRow && l.hasNestedRows && c.value && ((D = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : D.length) > 0;
2904
- }
2905
- ), N = C(
2906
- () => {
2907
- var w, D;
2908
- return !l.isNestedRow && l.hasNestedRows && c.value && (((w = l.rowData) == null ? void 0 : w.children) === void 0 || ((D = l == null ? void 0 : l.rowData) == null ? void 0 : D.children.length) === 0);
2909
- }
2910
- ), k = C(
2911
- () => l.hasNestedContent && l.shouldShowNestedContent(l.rowData) || l.hasNestedRows && c.value && !l.isNestedRow
2912
- ), y = C(() => {
2913
- if (l.hasNestedContent || l.hasNestedRows) {
2914
- const w = f.value.toString();
2915
- return {
2916
- "aria-expanded": k.value ? w : void 0,
2917
- "aria-level": l.isNestedRow ? "2" : "1",
2918
- "aria-posinset": l.rowIndex + 1,
2919
- "aria-setsize": l.rowSetSize
2920
- };
2921
- }
2922
- return { "aria-rowindex": l.rowIndex + 1 };
2923
- }), M = C(() => {
2924
- if (N.value)
2925
- return {
2926
- "aria-busy": "true",
2927
- "aria-live": "polite"
2928
- };
2929
- if (!(T.value || !l.hasNestedContent || !l.shouldShowNestedContent(l.rowData)))
2930
- return {
2931
- "aria-level": l.isNestedRow ? "3" : "2",
2932
- "aria-posinset": "1",
2933
- "aria-setsize": "1",
2934
- id: L,
2935
- role: "row",
2936
- tabindex: "-1"
2937
- };
2938
- }), h = C(() => {
2939
- var w, D;
2940
- return T.value ? (D = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : D.reduce((te, ne, ce) => (te[ce] = ft("nested-row"), te), {}) : [];
2941
- }), F = C(() => {
2942
- var w;
2943
- if (f.value) {
2944
- if (l.hasNestedContent && l.shouldShowNestedContent(l.rowData))
2945
- return [L];
2946
- if (T.value && ((w = Object.keys(h.value)) == null ? void 0 : w.length) > 0) {
2947
- const D = Object.values(h.value);
2948
- if ((D == null ? void 0 : D.length) > 0)
2949
- return D;
2950
- }
2951
- return [];
2952
- }
2953
- }), m = C(() => {
2954
- var D, te;
2955
- const w = (te = (D = l.rowData) == null ? void 0 : D.children) == null ? void 0 : te.map((ne) => l.getDataItemId(ne));
2956
- if ((w == null ? void 0 : w.length) > 0) {
2957
- const ne = w.every((Z) => {
2958
- var Re;
2959
- return (Re = l == null ? void 0 : l.selectedItems) == null ? void 0 : Re.includes(Z);
2960
- }), ce = w.some((Z) => {
2961
- var Re;
2962
- return (Re = l == null ? void 0 : l.selectedItems) == null ? void 0 : Re.includes(Z);
2963
- });
2964
- return !ne && ce;
2965
- }
2966
- return !1;
2967
- }), a = (w, D) => {
2968
- const te = w;
2969
- w !== null && (te != null && te.gridcellRef) && (v.value[D] = te.gridcellRef);
2970
- }, g = (w) => h.value[w], O = (w) => {
2971
- if (!l.selectable)
2972
- return null;
2973
- const D = l.getDataItemId(w);
2974
- return l.selectedItems.includes(D).toString();
2975
- }, B = (w, D) => {
2976
- n("row-click", w, D);
2977
- }, x = (w) => {
2978
- var ne;
2979
- if (!l.allowRowClicks)
2980
- return;
2981
- let D = !1;
2982
- const te = ["button", "input", "a"];
2983
- for (let ce = 0; ce < te.length; ce++)
2984
- if ((ne = w == null ? void 0 : w.target) != null && ne.closest(te[ce])) {
2985
- D = !0;
2986
- break;
2987
- }
2988
- D || B(l.rowData, w);
2989
- }, j = (w) => {
2990
- n("select-row", w, l.rowData);
2991
- }, le = (w, D) => {
2992
- n("select-nested-row", D, l.rowData, w);
2993
- }, be = () => {
2994
- I.value = !0;
2995
- }, ge = () => {
2996
- I.value = !1;
2997
- }, ue = () => {
2998
- var w;
2999
- Sl([(w = S.value) == null ? void 0 : w[0]]), Ot(b.value);
3000
- }, oe = () => {
3001
- je(b.value);
3002
- }, X = (w) => {
3003
- var D, te;
3004
- w.key !== Oe.TAB && je(b.value), w.key === Oe.ARROW_RIGHT && ((D = S.value) == null ? void 0 : D.length) > 1 && S.value[0].node === document.activeElement ? (je(b.value), S.value[1].node.setAttribute("tabindex", "0"), S.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === Oe.ARROW_LEFT && ((te = S.value) == null ? void 0 : te.length) > 1 && S.value[1].node === document.activeElement && (je(b.value), S.value[0].node.setAttribute("tabindex", "0"), S.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
3005
- }, we = () => l.columnSets.reduce((w, { columnSet: D }) => w + D.length, 0), R = () => we() * l.rowIndex + we(), { updateContentHeight: ee, contentHeight: q } = Xn(_, f), Q = C(() => {
3006
- var w;
3007
- if (l.hasNestedContent || l.hasNestedRows)
3008
- return {
3009
- paddingLeft: `${T.value || N.value ? 0 : v.value[Ee].offsetWidth + wl}px`,
3010
- "max-height": (l.hasNestedContent || l.hasNestedRows) && q.value && !((w = q == null ? void 0 : q.value) != null && w.includes("null")) ? q.value : 0
3011
- };
3012
- });
3013
- ye(
3014
- () => _.value,
3015
- () => {
3016
- let w = null;
3017
- !w && _.value && (w = At(_.value, () => {
3018
- _.value && ee();
3019
- }));
3020
- }
3021
- );
3022
- const Ve = () => {
3023
- f.value = !f.value, ee(), n("nested-content-toggled", l.rowData);
3024
- };
3025
- ye(
3026
- () => {
3027
- var w;
3028
- return (w = l.rowData) == null ? void 0 : w.children;
3029
- },
3030
- (w, D) => {
3031
- var te, ne;
3032
- ((ne = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : ne.length) > 0 && D === void 0 && !f.value && ee();
3033
- }
3034
- );
3035
- const Ie = Pe(
3036
- ot,
3037
- C(() => !1)
3038
- ), Be = (w) => l.highlightedRows.includes(l.getDataItemId(w)), r = (w) => l.selectedItems.includes(l.getDataItemId(w)), V = (w, D) => ({
3039
- "b-data-grid-row-container__row--disabled": l.isDataItemDisabled(w),
3040
- "b-data-grid-row-container__row--row-clicks-enabled": l.allowRowClicks,
3041
- "b-data-grid-row-container__row--highlighted": Be(w),
3042
- "b-data-grid-row-container__row--selected": r(w),
3043
- "b-data-grid-row-container__row--hovered": l.hoveredRowIndex === D,
3044
- "b-data-grid-row-container__row--is-last-child": l.isRowLastChild && !f.value,
3045
- "b-data-grid-row-container__row--nested-row": l.isNestedRow,
3046
- "b-data-grid-row-container__row--zebra": l.isRowEven
3047
- }), U = (w, D) => ({
3048
- "b-data-grid-row-container__row-cell-set--frozen": w && !D,
3049
- [`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: !D && w && l.hasLeftOverflow,
3050
- "b-data-grid-row-container__row-cell-set--frozen-separator": !D && w && l.showFrozenColumnsSeparator,
3051
- "b-data-grid-row-container__row-cell-set--unfrozen": !w || D,
3052
- "b-data-grid-row-container__row-cell-set--is-measuring": l.isMeasuringColumnWidths
3053
- }), ve = C(() => ({
3054
- "b-data-grid-row-container__row-nested-slot--is-last-child": l.isRowLastChild,
3055
- "b-data-grid-row-container__row-nested-slot": !T.value && l.shouldShowNestedContent(l.rowData)
3056
- })), me = C(() => ({
3057
- "b-data-grid-row-container__row-actions-container--row-actions-menu-open": I.value
3058
- })), Ge = C(() => ({
3059
- minWidth: `${l.rowActionsMaximumWidth}px`
3060
- }));
3061
- return s({
3062
- gridcellRefs: v,
3063
- rowActionsRef: b
3064
- }), (w, D) => {
3065
- var te;
3066
- return d(), p("div", Zs, [
3067
- (d(), p("div", se(y.value, {
3068
- id: (te = e.rowId) == null ? void 0 : te.toString(),
3069
- key: e.rowIndex,
3070
- class: ["b-data-grid-row-container__row", V(e.rowData, e.rowIndex)],
3071
- role: "row",
3072
- "aria-selected": O(e.rowData),
3073
- onClick: x,
3074
- onKeyup: [
3075
- zt(x, ["enter"]),
3076
- zt(x, ["space"])
3077
- ]
3078
- }), [
3079
- (d(!0), p(_e, null, Ae(e.columnSets, ({ columnSet: ne, id: ce, isFrozenColumns: Z }, Re) => (d(), p(_e, null, [
3080
- ne != null && ne.length ? (d(), p("div", {
3081
- key: `data-grid-rows-${ce}`,
3082
- class: de(["b-data-grid-row-container__cells", U(Z, o(Ie))]),
3083
- "data-testid": `data-grid-${ce}-rows`
3084
- }, [
3085
- (d(!0), p(_e, null, Ae(ne, (xe, ht) => (d(), H(xs, {
3086
- key: `cell-${xe.field}`,
3087
- ref_for: !0,
3088
- ref: (De) => a(De, xe.field),
3089
- class: "b-data-grid-row-container__cell",
3090
- column: xe,
3091
- "column-set-index": Re,
3092
- "col-index": ht,
3093
- "column-sets": e.columnSets,
3094
- condensed: e.condensed,
3095
- "dragging-columns": e.draggingColumns,
3096
- "dragging-events-for-row-cell": e.draggingEventsForRowCell,
3097
- "get-data-item-id": e.getDataItemId,
3098
- "has-zebra-background": e.isRowEven,
3099
- "is-highlighted": Be(e.rowData),
3100
- "is-selected": r(e.rowData),
3101
- "hovered-over-column-state": e.hoveredOverColumnState,
3102
- "is-data-item-disabled": e.isDataItemDisabled,
3103
- "is-measuring-column-widths": e.isMeasuringColumnWidths,
3104
- "is-nested-content-expanded": f.value,
3105
- "nested-content": k.value,
3106
- "nested-rows-element-ids": F.value,
3107
- "row-data": e.rowData,
3108
- "row-index": e.rowIndex,
3109
- "selection-is-indeterminate": m.value,
3110
- selectable: e.selectable,
3111
- "selected-items": e.selectedItems,
3112
- onCellHovered: D[0] || (D[0] = (De) => n("cell-hovered", De)),
3113
- onCellFocus: D[1] || (D[1] = (De) => n("cell-focus", De)),
3114
- onOnFrozenColumnsKeyPress: D[2] || (D[2] = (De) => n("on-frozen-columns-key-press", De)),
3115
- onSelectRow: j,
3116
- onNestedContentToggled: Ve
3117
- }, Qe({ _: 2 }, [
3118
- Ae(o(t), (De, tt) => ({
3119
- name: tt,
3120
- fn: G((Ke) => [
3121
- ze(w.$slots, tt, se({ ref_for: !0 }, Ke), void 0, !0)
3122
- ])
3123
- }))
3124
- ]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-zebra-background", "is-highlighted", "is-selected", "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))
3125
- ], 10, qs)) : W("", !0),
3126
- !Z && e.rowActions ? (d(), p("div", {
3127
- key: `data-grid-row-actions-${ce}`,
3128
- ref_for: !0,
3129
- ref_key: "rowActionsRef",
3130
- ref: b,
3131
- "aria-colindex": we().toString(),
3132
- class: de(["b-data-grid-row-container__row-actions-container", me.value]),
3133
- style: Fe(Ge.value),
3134
- "data-cellindex": R(),
3135
- tabindex: "-1",
3136
- role: "gridcell",
3137
- onFocus: ue,
3138
- "on:focusOut": oe,
3139
- onKeydown: X
3140
- }, [
3141
- Y(Ll, {
3142
- class: "b-data-grid-row-container__row-actions",
3143
- "disable-arrow-down-opening-menu": "",
3144
- "cell-actions": e.rowActions,
3145
- "has-right-overflow": e.hasRightOverflow,
3146
- "row-data-item": e.rowData,
3147
- "teleport-menu": "",
3148
- onMenuOpen: be,
3149
- onMenuClose: ge
3150
- }, null, 8, ["cell-actions", "has-right-overflow", "row-data-item"])
3151
- ], 46, Ks)) : W("", !0)
3152
- ], 64))), 256))
3153
- ], 16, js)),
3154
- e.hasNestedContent && o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && c.value ? (d(), H(gl, {
3155
- key: `${e.rowIndex}-nest-content`,
3156
- name: "b-data-grid-row-container__animation--nested-content"
3157
- }, {
3158
- default: G(() => [
3159
- f.value && T.value ? (d(), p("div", {
3160
- key: 0,
3161
- class: de(ve.value),
3162
- "data-testid": "nested-content-container",
3163
- style: Fe(Q.value),
3164
- role: "presentation"
3165
- }, [
3166
- A("div", {
3167
- ref_key: "nestedContentRef",
3168
- ref: _
3169
- }, [
3170
- N.value ? (d(), p("div", Ys, [
3171
- Y(o(ct))
3172
- ])) : W("", !0),
3173
- (d(!0), p(_e, null, Ae(e.rowData.children, (ne, ce) => (d(), H(Tl, se({ ref_for: !0 }, l, {
3174
- id: g(ce),
3175
- key: `child-${ce}`,
3176
- "row-data": ne,
3177
- "row-index": ce,
3178
- "row-set-size": e.rowData.children.length,
3179
- "is-nested-row": "",
3180
- onCellHovered: D[3] || (D[3] = (Z) => n("cell-hovered", Z)),
3181
- onCellFocus: D[4] || (D[4] = (Z) => n("cell-focus", Z)),
3182
- onRowClick: B,
3183
- onOnFrozenColumnsKeyPress: D[5] || (D[5] = (Z) => n("on-frozen-columns-key-press", Z)),
3184
- onSelectRow: (Z) => le(ne, Z)
3185
- }), Qe({ _: 2 }, [
3186
- Ae(o(t), (Z, Re) => ({
3187
- name: Re,
3188
- fn: G((xe) => [
3189
- ze(w.$slots, Re, se({ ref_for: !0 }, xe), void 0, !0)
3190
- ])
3191
- }))
3192
- ]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128))
3193
- ], 512)
3194
- ], 6)) : f.value ? (d(), p("div", se({ key: 1 }, M.value, {
3195
- class: ve.value,
3196
- "data-testid": "nested-content-container",
3197
- style: Q.value,
3198
- role: "row",
3199
- tabindex: "-1"
3200
- }), [
3201
- A("div", {
3202
- ref_key: "nestedContentRef",
3203
- ref: _,
3204
- role: "gridcell"
3205
- }, [
3206
- N.value ? (d(), p("div", Js, [
3207
- Y(o(ct))
3208
- ])) : o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (d(), p("div", Xs, [
3209
- ze(w.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
3210
- ])) : W("", !0)
3211
- ], 512)
3212
- ], 16)) : W("", !0)
3213
- ]),
3214
- _: 3
3215
- })) : W("", !0)
3216
- ]);
3217
- };
3218
- }
3219
- }), Tl = /* @__PURE__ */ re(ea, [["__scopeId", "data-v-a734138e"]]);
3220
- let dl = 0;
3221
- const ta = {
3222
- beforeCreate() {
3223
- this.uuid = dl.toString(), dl += 1;
3224
- }
3225
- }, la = { key: 0 }, na = ["clip-path"], oa = ["id"];
3226
- function sa(e, s, i, t, u, l) {
3227
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
3228
- class: "ui-assets-icons-16",
3229
- xmlns: "http://www.w3.org/2000/svg",
3230
- width: "16",
3231
- height: "16",
3232
- fill: "none"
3233
- }), [
3234
- e.$attrs["svg-title"] ? (d(), p("title", la, J(e.$attrs["svg-title"]), 1)) : W("", !0),
3235
- A("g", {
3236
- "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
3237
- }, s[0] || (s[0] = [
3238
- A("path", {
3239
- fill: "#001222",
3240
- d: "M8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z"
3241
- }, null, -1)
3242
- ]), 8, na),
3243
- A("defs", null, [
3244
- A("clipPath", {
3245
- id: "uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid
3246
- }, s[1] || (s[1] = [
3247
- A("rect", {
3248
- width: "16",
3249
- height: "16",
3250
- fill: "#fff"
3251
- }, null, -1)
3252
- ]), 8, oa)
3253
- ])
3254
- ], 16);
3255
- }
3256
- const aa = /* @__PURE__ */ re(ta, [["render", sa]]), ia = ["aria-label"], ra = {}, da = /* @__PURE__ */ Ne({
3257
- ...ra,
3258
- __name: "data-grid-static-icon",
3259
- props: {
3260
- colored: { type: Boolean, default: !1 },
3261
- tooltipText: {},
3262
- variant: { default: "no-value" }
3263
- },
3264
- setup(e) {
3265
- const s = e, i = C(() => {
3266
- switch (s.variant) {
3267
- case "checkmark":
3268
- return yn;
3269
- case "warning":
3270
- return Rn;
3271
- case "error":
3272
- return aa;
3273
- case "cross":
3274
- return vl;
3275
- case "no-value":
3276
- return Pt;
3277
- default:
3278
- return Pt;
3279
- }
3280
- }), t = C(() => ({
3281
- "b-data-grid-static-icon--colored": s.colored && s.variant !== "no-value"
3282
- })), u = C(() => `b-data-grid-static-icon__${s.variant}`), l = C(() => Tn.AUTO);
3283
- return (n, v) => nt((d(), p("div", {
3284
- "aria-label": n.tooltipText,
3285
- class: de(["b-data-grid-static-icon", t.value]),
3286
- tabindex: "0"
3287
- }, [
3288
- (d(), H(Xe(i.value), {
3289
- class: de(u.value),
3290
- "svg-title": n.tooltipText
3291
- }, null, 8, ["class", "svg-title"]))
3292
- ], 10, ia)), [
3293
- [o(wt), n.tooltipText, l.value]
3294
- ]);
3295
- }
3296
- }), Ii = /* @__PURE__ */ re(da, [["__scopeId", "data-v-b8c9e150"]]), Ol = {
3297
- "de-DE": {
3298
- numberResults: "1 Ergebnis | {count} Ergebnisse"
3299
- },
3300
- "en-US": {
3301
- numberResults: "1 result | {count} results"
3302
- },
3303
- "es-ES": {
3304
- numberResults: "1 resultado | {count} resultados"
3305
- },
3306
- "fr-FR": {
3307
- numberResults: "1 résultat | {count} résultats"
3308
- },
3309
- "ja-JP": {
3310
- numberResults: "1件の結果 | {count}件の結果"
3311
- },
3312
- "pt-BR": {
3313
- numberResults: "1 resultado | {count} resultados"
3314
- }
3315
- }, ua = { class: "b-data-grid-summary-cell" }, ca = { class: "b-data-grid-summary-cell__list" }, fa = {
3316
- i18n: { messages: Ol }
3317
- }, ga = /* @__PURE__ */ Ne({
3318
- ...fa,
3319
- __name: "data-grid-summary-cell",
3320
- props: {
3321
- label: {},
3322
- items: {},
3323
- dashedUnderline: { default: () => ({}) },
3324
- searchTerm: { default: "" },
3325
- tooltipText: { default: null }
3326
- },
3327
- setup(e) {
3328
- const { tc: s } = We({ messages: Ol }), i = e, t = E(), u = C(() => ({
3329
- popoverPosition: "right",
3330
- // Setting popover defaults, but they are overriden if used passes dashedUnderline prop
3331
- popoverTitle: i.label,
3332
- popoverSize: "small",
3333
- ...i.dashedUnderline,
3334
- // We force teleport as this is needed for the popover to appear above all the data grid elements
3335
- teleport: {
3336
- disabled: !1
3337
- }
3338
- })), l = C(() => {
3339
- var _;
3340
- return ((_ = i.searchTerm) == null ? void 0 : _.toLowerCase()) ?? "";
3341
- }), n = (_) => i.searchTerm && _.toLowerCase().includes(l.value) ? "mark" : "span", v = C(() => i.searchTerm ? i.items.filter((_) => _.toLowerCase().includes(l.value)).length : 0), f = C(
3342
- () => i.tooltipText ?? (v.value > 0 ? s("numberResults", v.value) : "")
3343
- );
3344
- return (_, b) => (d(), p("div", ua, [
3345
- _.items.length > 1 ? (d(), H(o(On), se({
3346
- key: 0,
3347
- ref_key: "dashedUnderlineRef",
3348
- ref: t
3349
- }, u.value), {
3350
- "popover-content": G(() => [
3351
- Y(o(qe), { class: "b-data-grid-summary-cell__popover-content" }, {
3352
- default: G(() => [
3353
- A("ul", ca, [
3354
- (d(!0), p(_e, null, Ae(_.items, (L) => (d(), p("li", { key: L }, [
3355
- (d(), H(Xe(n(L)), null, {
3356
- default: G(() => [
3357
- fe(J(L), 1)
3358
- ]),
3359
- _: 2
3360
- }, 1024))
3361
- ]))), 128))
3362
- ])
3363
- ]),
3364
- _: 1
3365
- })
3366
- ]),
3367
- default: G(() => [
3368
- fe(J(_.label) + " ", 1)
3369
- ]),
3370
- _: 1
3371
- }, 16)) : (d(), p(_e, { key: 1 }, [
3372
- fe(J(_.items[0]), 1)
3373
- ], 64)),
3374
- t.value && f.value ? (d(), H(o(Ln), {
3375
- key: 2,
3376
- content: f.value,
3377
- "disabled-focus-trap": !0,
3378
- position: o(An).RIGHT,
3379
- "fallback-position": ["left", "bottom"],
3380
- "is-shown": !!f.value,
3381
- "target-element": t.value
3382
- }, null, 8, ["content", "position", "is-shown", "target-element"])) : W("", !0)
3383
- ]));
3384
- }
3385
- }), Di = /* @__PURE__ */ re(ga, [["__scopeId", "data-v-5ea6289c"]]), va = { class: "b-data-grid-tag-with-text-cell" }, ma = {}, ha = /* @__PURE__ */ Ne({
3386
- ...ma,
3387
- __name: "data-grid-tag-with-text-cell",
3388
- props: {
3389
- tag: {},
3390
- value: {}
3391
- },
3392
- setup(e) {
3393
- const s = e;
3394
- return (i, t) => (d(), p("div", va, [
3395
- Y(Nn, pn(En(s.tag)), null, 16),
3396
- Y(qe, { el: "span" }, {
3397
- default: G(() => [
3398
- fe(J(i.value), 1)
3399
- ]),
3400
- _: 1
3401
- })
3402
- ]));
3403
- }
3404
- }), $i = /* @__PURE__ */ re(ha, [["__scopeId", "data-v-b8837a72"]]);
3405
- let ul = 0;
3406
- const Ca = {
3407
- beforeCreate() {
3408
- this.uuid = ul.toString(), ul += 1;
3409
- }
3410
- }, _a = { key: 0 };
3411
- function ba(e, s, i, t, u, l) {
3412
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
3413
- class: "ui-assets-icons-16",
3414
- xmlns: "http://www.w3.org/2000/svg",
3415
- width: "16",
3416
- height: "16",
3417
- fill: "none"
3418
- }), [
3419
- e.$attrs["svg-title"] ? (d(), p("title", _a, J(e.$attrs["svg-title"]), 1)) : W("", !0),
3420
- s[0] || (s[0] = A("path", {
3421
- fill: "#001222",
3422
- d: "M12.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z"
3423
- }, null, -1))
3424
- ], 16);
3425
- }
3426
- const wa = /* @__PURE__ */ re(Ca, [["render", ba]]);
3427
- let cl = 0;
3428
- const Sa = {
3429
- beforeCreate() {
3430
- this.uuid = cl.toString(), cl += 1;
3431
- }
3432
- }, pa = { key: 0 };
3433
- function Ea(e, s, i, t, u, l) {
3434
- return d(), p("svg", se({ role: "img" }, e.$attrs, {
3435
- class: "ui-assets-icons-16",
3436
- xmlns: "http://www.w3.org/2000/svg",
3437
- width: "16",
3438
- height: "16",
3439
- fill: "none"
3440
- }), [
3441
- e.$attrs["svg-title"] ? (d(), p("title", pa, J(e.$attrs["svg-title"]), 1)) : W("", !0),
3442
- s[0] || (s[0] = A("path", {
3443
- fill: "#001222",
3444
- d: "M8.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z"
3445
- }, null, -1))
3446
- ], 16);
3447
- }
3448
- const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
3449
- "en-US": {
3450
- decrease: "decrease",
3451
- increase: "increase"
3452
- },
3453
- "ja-JP": {
3454
- decrease: "低減",
3455
- increase: "増加"
3456
- },
3457
- "pt-BR": {
3458
- decrease: "diminuir",
3459
- increase: "aumentar"
3460
- }
3461
- }, Ra = {
3462
- i18n: { messages: Nl }
3463
- }, La = /* @__PURE__ */ Ne({
3464
- ...Ra,
3465
- __name: "data-grid-trend-cell",
3466
- props: {
3467
- direction: { default: "none" },
3468
- variant: { default: "black" },
3469
- value: {}
3470
- },
3471
- setup(e) {
3472
- const { t: s, locale: i } = We({ messages: Nl }), t = e, u = C(() => ({
3473
- [`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
3474
- })), l = C(() => {
3475
- switch (t.direction) {
3476
- case "up":
3477
- return s("increase");
3478
- case "down":
3479
- return s("decrease");
3480
- default:
3481
- return null;
3482
- }
3483
- }), n = C(() => {
3484
- switch (t.direction) {
3485
- case "up":
3486
- return wa;
3487
- case "down":
3488
- return ya;
3489
- default:
3490
- return null;
3491
- }
3492
- }), v = C(() => {
3493
- const f = typeof t.value == "string" ? parseFloat(t.value) : t.value;
3494
- return isNaN(f) ? "" : new Intl.NumberFormat(i.value, {
3495
- style: "percent",
3496
- minimumFractionDigits: 0,
3497
- // Don't force zeros
3498
- maximumFractionDigits: 10
3499
- // Cap it reasonably to avoid float artifacts
3500
- }).format(f / 100);
3501
- });
3502
- return (f, _) => (d(), p("div", {
3503
- class: de(["b-data-grid-trend-cell", u.value])
3504
- }, [
3505
- n.value ? (d(), H(Xe(n.value), {
3506
- key: 0,
3507
- "svg-title": l.value
3508
- }, null, 8, ["svg-title"])) : W("", !0),
3509
- Y(o(qe), { el: "span" }, {
3510
- default: G(() => [
3511
- fe(J(v.value), 1)
3512
- ]),
3513
- _: 1
3514
- })
3515
- ], 2));
3516
- }
3517
- }), ki = /* @__PURE__ */ re(La, [["__scopeId", "data-v-08286f85"]]), Aa = ["aria-busy"], Ta = ["aria-controls", "aria-label"], Oa = {
3518
- key: 1,
3519
- class: "b-data-grid__header"
3520
- }, Na = ["id", "role", "aria-rowcount", "aria-colcount", "aria-label"], Ia = {
3521
- key: 0,
3522
- role: "row"
3523
- }, Da = {
3524
- key: 0,
3525
- class: "b-data-grid__loading"
3526
- }, $a = {
3527
- key: 0,
3528
- role: "row",
3529
- tabindex: "-1"
3530
- }, ka = ["aria-colspan"], Ua = {
3531
- key: 5,
3532
- class: "b-data-grid__footer"
3533
- }, Ma = {
3534
- i18n: { messages: mt },
3535
- name: "bento-data-grid"
3536
- }, Fa = /* @__PURE__ */ Ne({
3537
- ...Ma,
3538
- props: {
3539
- /**
3540
- * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
3541
- */
3542
- allowRowClicks: { type: Boolean, default: !1 },
3543
- /**
3544
- * When true, column headers will become draggable, allowing users to rearrange columns.
3545
- */
3546
- allowColumnDragAndDrop: { type: Boolean, default: !0 },
3547
- /**
3548
- * List of actions that will be rendered in the action bar when user selects items.
3549
- *
3550
- * Each object in the list should have a `title`, an `event` and,
3551
- * optionally, an `icon`.
3552
- *
3553
- * The component will display 4 actions and the hide the rest inside a menu.
3554
- *
3555
- * @see BentoButton for a list of all the other props supported by each button action.
3556
- */
3557
- bulkActions: {
3558
- type: Array,
3559
- default: null
3560
- },
3561
- /**
3562
- * Sets the row cells to the condensed padding state.
3563
- */
3564
- condensed: {
3565
- type: Boolean,
3566
- default: !1
3567
- },
3568
- /**
3569
- * Column definitions using 'key' to relate to data object.
3570
- */
3571
- columns: {
3572
- type: Array,
3573
- required: !0
3574
- },
3575
- /**
3576
- * Enables / hides the display options panel and the column contextual menu functionality.
3577
- */
3578
- columnPanel: { type: Boolean, default: !1 },
3579
- /**
3580
- * An array of data objects to display.
3581
- */
3582
- data: {
3583
- type: Array,
3584
- required: !0
3585
- },
3586
- /**
3587
- * Empty state props that will be passed down to inner empty-state component
3588
- */
3589
- emptyState: {
3590
- type: Object,
3591
- default: void 0
3592
- },
3593
- /**
3594
- * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
3595
- * {@see BentoFilterBarModel}
3596
- */
3597
- filters: {
3598
- // TODO: Change this to BentoFilterBarProps['value'] when the interface is available
3599
- type: Array,
3600
- default: void 0
3601
- },
3602
- /**
3603
- * Defines the layout (multi-line or one-line) to be used in the filter bar for different
3604
- * container sizes:
3605
- * - Large (>=700px): Always multi-line
3606
- * - Medium (>=430px & <700px)
3607
- * - Small (<430px)
3608
- *
3609
- * @default
3610
- * {
3611
- * medium: 'multi-line',
3612
- * small: 'one-line'
3613
- * }
3614
- */
3615
- filtersContainerSizeLayout: {
3616
- type: Object,
3617
- default: void 0
3618
- },
3619
- /**
3620
- * An array of the values for each filter set in `value`.
3621
- * {@see BentoFilterValues}
3622
- */
3623
- filterValues: {
3624
- type: Array,
3625
- default: () => []
3626
- },
3627
- /**
3628
- * An object of the values for each filter in the filter bar where key is a the field name and the value is the BentoFilterBarValue.
3629
- *
3630
- * @example
3631
- * {
3632
- * 'company': '200',
3633
- * 'name': 'some text'
3634
- * },
3635
- */
3636
- filterValuesObject: {
3637
- type: Object,
3638
- default: () => {
3639
- }
3640
- },
3641
- // TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
3642
- // It was not done now because it's a breaking change for the types.
3643
- /**
3644
- * Filter's search bar properties with which the placeholder, hint and other
3645
- * "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
3646
- */
3647
- filterSearchConfig: {
3648
- type: Object,
3649
- default: void 0
3650
- },
3651
- /**
3652
- * Filter bar search term useful to filter all the data by text
3653
- */
3654
- filterSearchTerm: {
3655
- type: String,
3656
- default: void 0
3657
- },
3658
- /**
3659
- * Allows the grid to be rendered inside a confined space.
3660
- * This makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.
3661
- */
3662
- fitContent: { type: Boolean, default: !1 },
3663
- /**
3664
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
3665
- * This is used selecting and performance reasons and must exist in each data item.
3666
- */
3667
- getDataItemId: {
3668
- type: Function,
3669
- default: (e) => e.id
3670
- },
3671
- /**
3672
- * Row actions propery that generates which button to show in row actions area
3673
- */
3674
- rowActions: {
3675
- type: [Function, Array],
3676
- default: void 0
3677
- },
3678
- /**
3679
- * If resize is enabled
3680
- */
3681
- hasResizableColumns: {
3682
- type: Boolean,
3683
- default: !0
3684
- },
3685
- /**
3686
- * Enables the nested content slot functionality.
3687
- */
3688
- hasNestedContent: {
3689
- type: Boolean,
3690
- default: !1
3691
- },
3692
- /**
3693
- * Enables the nested content slot functionality.
3694
- */
3695
- hasNestedRows: {
3696
- type: Boolean,
3697
- default: !1
3698
- },
3699
- /**
3700
- * Highlighted items
3701
- */
3702
- highlightedRows: {
3703
- type: Array,
3704
- default: () => []
3705
- },
3706
- /**
3707
- * A customisable method to determine if a row is not selectable.
3708
- * The default is that every row is selectable.
3709
- */
3710
- isDataItemDisabled: {
3711
- type: Function,
3712
- default: () => !1
3713
- },
3714
- /**
3715
- * The type of `Lazy Load`.
3716
- * Type "automatic" will enable infinite scrolling
3717
- * Type "button" will enable lazy loading with "Show more" button
3718
- * @values automatic, button, none
3719
- */
3720
- lazyLoadType: {
3721
- type: String,
3722
- default: "none",
3723
- validator: (e) => ["automatic", "button", "none"].includes(e)
3724
- },
3725
- /**
3726
- * If the loading indicator should be shown.
3727
- */
3728
- loading: {
3729
- type: Boolean,
3730
- default: !1
3731
- },
3732
- /**
3733
- * Enables / Disables the table's surrounding border.
3734
- */
3735
- outline: {
3736
- type: Boolean,
3737
- default: !1
3738
- },
3739
- /**
3740
- * Renders the data grid with no top spacing, to render inside containers that already have spacing
3741
- */
3742
- noSpacingTop: {
3743
- type: Boolean,
3744
- default: !1
3745
- },
3746
- /**
3747
- * Pagination props that will be passed down to inner pagination component
3748
- */
3749
- pagination: {
3750
- type: Object,
3751
- default: void 0
3752
- },
3753
- /**
3754
- * Adds an extra option when selecting all items that allows user to select items in other pages too.
3755
- * Needs pagination.totalCount to be set.
3756
- */
3757
- selectableAcrossPages: {
3758
- type: Boolean,
3759
- default: !1
3760
- },
3761
- /**
3762
- * Renders a font numeric style with slashed zeros instead of normal ones.
3763
- */
3764
- slashedZero: { type: Boolean, default: !1 },
3765
- /**
3766
- * Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
3767
- */
3768
- stickyHorizontalScrollbar: {
3769
- type: Boolean,
3770
- default: !1
3771
- },
3772
- /**
3773
- * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
3774
- * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
3775
- */
3776
- stickyPagination: {
3777
- type: Boolean,
3778
- default: !1
3779
- },
3780
- /**
3781
- * Make data-grid filters stick to the top of the page along with the data-grid headers.
3782
- * Defaults to true.
3783
- */
3784
- stickyFilters: {
3785
- type: Boolean,
3786
- default: !0
3787
- },
3788
- /**
3789
- * Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
3790
- */
3791
- selectable: {
3792
- type: Boolean,
3793
- default: !1
3794
- },
3795
- /**
3796
- * Selected items
3797
- */
3798
- selection: {
3799
- type: Array,
3800
- default: () => []
3801
- },
3802
- /**
3803
- * Enables / Disables the nested-content slot
3804
- */
3805
- shouldShowNestedContent: {
3806
- type: Function,
3807
- default: (e) => !0
3808
- },
3809
- /**
3810
- * Returns the nested rows for a given BentoDatagridDataItem.
3811
- */
3812
- shouldShowNestedRows: {
3813
- type: Function,
3814
- default: (e) => !0
3815
- },
3816
- /**
3817
- * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
3818
- * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
3819
- */
3820
- sortBy: {
3821
- type: Array,
3822
- // NOTE: is an array to allow multi-sorting in the future
3823
- default: () => []
3824
- },
3825
- /**
3826
- * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
3827
- */
3828
- tabTitle: {
3829
- type: String,
3830
- default: null
3831
- },
3832
- /**
3833
- * Truncates all data grid column headers
3834
- */
3835
- truncateColumnHeaders: {
3836
- type: Boolean,
3837
- default: !1
3838
- },
3839
- /**
3840
- * Toggles the alternating background color of rows.
3841
- */
3842
- zebraRows: {
3843
- type: Boolean,
3844
- default: !1
3845
- }
3846
- },
3847
- emits: [
3848
- z.COLUMNS,
3849
- z.COLUMN_RESIZE,
3850
- z.ITEMS_PAGE,
3851
- z.FILTER_SEARCH_INPUT,
3852
- z.FILTER_SEARCH_CLEAR,
3853
- z.NAVIGATE,
3854
- z.NESTED_CONTENT_TOGGLED,
3855
- z.UPDATE_COLUMNS,
3856
- z.UPDATE_CONDENSED,
3857
- z.UPDATE_FILTER_VALUES,
3858
- z.UPDATE_FILTER_VALUES_OBJECT,
3859
- z.UPDATE_FILTERS,
3860
- z.UPDATE_FILTER_SEARCH_TERM,
3861
- z.UPDATE_SHOW_MORE,
3862
- z.UPDATE_PAGINATION,
3863
- z.UPDATE_SELECTION,
3864
- z.UPDATE_SORT_BY,
3865
- z.ROW_CLICK,
3866
- z.SELECT,
3867
- z.SELECT_ALL_ACROSS_PAGES,
3868
- z.SELECT_ALL_CURRENT_RESULTS,
3869
- z.DESELECT_ALL_CURRENT_RESULTS,
3870
- z.SORT,
3871
- z.CELL_FOCUS
3872
- ],
3873
- setup(e, { expose: s, emit: i }) {
3874
- const t = e, u = Rt(), l = Lt(u), n = E(null), v = E(), f = E({}), _ = E(ft("data-grid")), b = E(null), L = E(null), I = E(null), S = E(null), c = E(null), T = E(null), {
3875
- allowColumnDragAndDrop: N,
3876
- columns: k,
3877
- columnPanel: y,
3878
- data: M,
3879
- lazyLoadType: h,
3880
- loading: F,
3881
- hasNestedContent: m,
3882
- hasNestedRows: a,
3883
- selectable: g,
3884
- selection: O,
3885
- selectableAcrossPages: B,
3886
- stickyPagination: x,
3887
- outline: j,
3888
- pagination: le,
3889
- zebraRows: be
3890
- } = yt(t), ge = E(-1), { t: ue } = We({ messages: mt }), oe = C(() => U.value.filter(($) => $.frozen).length), X = 550, we = E(), { width: R } = Fn(we), ee = C(() => R.value <= X);
3891
- dt(ot, ee);
3892
- const q = E(!1);
3893
- et(() => {
3894
- typeof window < "u" && (q.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
3895
- }), dt(vt, q);
3896
- const Q = Pe(
3897
- Mn,
3898
- () => ({
3899
- additionalContentSlotRef: E(null),
3900
- isDataGridTemplate: !1,
3901
- stickyAditionalContent: E(!1),
3902
- stickyTabs: E(!1),
3903
- tabsRef: E(null)
3904
- })
3905
- ), { additionalContentSlotRef: Ve, isDataGridTemplate: Ie, stickyTabs: Be, tabsRef: r, stickyAdditionalContent: V } = Q(), {
3906
- columnDefs: U,
3907
- onColumnWidthOverride: ve,
3908
- gridRowWidthStyle: me,
3909
- isMeasuringColumnWidths: Ge,
3910
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: w,
3911
- columns: D,
3912
- totalWidthOfAllColumns: te,
3913
- rowActionsMaxWidth: ne
3914
- } = co(k, M, n, f, b, {
3915
- hasColumnPanel: y,
3916
- hasSelectableColumn: g,
3917
- hasSelectableAcrossPages: B,
3918
- hasNestedContent: m,
3919
- hasNestedRows: a,
3920
- allowColumnDragAndDrop: N,
3921
- isDataGridTemplate: Ie
3922
- }), ce = i, Z = ($, ...P) => {
3923
- ($ === z.COLUMNS || $ === z.UPDATE_COLUMNS) && ([D.value] = P), ce($, ...P);
3924
- }, Re = qt(
3925
- r,
3926
- Be,
3927
- V,
3928
- Ve
3929
- ), xe = C(
3930
- () => t.stickyFilters ? `${Re.value}px` : null
3931
- ), ht = qt(L, bt(t, "stickyFilters")), De = C(
3932
- () => `${ht.value + Re.value}px`
3933
- ), {
3934
- sortedColumns: tt,
3935
- columnSets: Ke,
3936
- isOnlyOneVisibleColumn: Il,
3937
- internalZebraRows: Ct,
3938
- onConfigSettingsColumnsUpdate: Dl,
3939
- onConfigSettingsColumnUpdate: $l,
3940
- onConfigSettingsCondensedUpdate: kl,
3941
- onConfigSettingsZebraRowsUpdate: Ul
3942
- } = _o(U, be, Z), { hoveredOverColumn: Ml, hoveredOverColumnState: Nt } = wo(
3943
- Ke,
3944
- g,
3945
- j,
3946
- w
3947
- ), { draggingColumns: It, draggingEventsForColumns: Fl, draggingEventsForRowCell: zl, onMoveColumnByOffset: Pl } = Co(tt, N, Z), Dt = C(
3948
- () => {
3949
- var $;
3950
- return (($ = t.data) == null ? void 0 : $.length) > 0 && !!t.selectableAcrossPages && !!t.pagination && t.pagination.totalCount > 0;
3951
- }
3952
- ), {
3953
- onAllRowSelect: Bl,
3954
- onRowSelect: Wl,
3955
- onNestedRowSelect: Vl,
3956
- onDeselectAll: $t,
3957
- allItemsSelectedState: Hl,
3958
- selectedItems: _t,
3959
- selectionState: Gl
3960
- } = fo(
3961
- O,
3962
- Z,
3963
- M,
3964
- t.getDataItemId,
3965
- t.isDataItemDisabled,
3966
- Dt,
3967
- le
3968
- ), xl = C(() => {
3969
- var $, P, ie, K;
3970
- return {
3971
- filtered: (($ = I.value) == null ? void 0 : $.isClearAllVisible) || ((P = I.value) == null ? void 0 : P.isResetAllVisible) || !!t.filterSearchTerm,
3972
- allRowsVisible: ((ie = le.value) == null ? void 0 : ie.size) >= ((K = le.value) == null ? void 0 : K.totalCount)
3973
- };
3974
- }), { navigationInput: st } = vo(
3975
- b,
3976
- f,
3977
- tt,
3978
- g,
3979
- C(() => t.rowActions !== void 0),
3980
- y
3981
- ), { isLazyLoad: Ye, isInfiniteScroll: Zl, verticalScrollPosition: jl, emitLazyLoadEvent: ql } = ho(
3982
- h,
3983
- c,
3984
- n,
3985
- F,
3986
- Z
3987
- ), {
3988
- updateScrollPosition: at,
3989
- updateScrollPositionOnFrozenColumnsNavigation: Kl,
3990
- syncVirtualScrollerWithBody: kt,
3991
- hasLeftOverflow: it,
3992
- hasRightOverflow: Ut,
3993
- horizontalScrollbarConditionalStyles: Yl
3994
- } = bo(
3995
- n,
3996
- v,
3997
- jl,
3998
- T,
3999
- S,
4000
- te,
4001
- {
4002
- isLazyLoad: Ye,
4003
- pagination: le,
4004
- stickyPagination: x,
4005
- isDataGridTemplate: Ie
4006
- }
4007
- ), Jl = () => {
4008
- I.value.isClearAllVisible ? I.value.clearAllFilters() : I.value.isResetAllVisible && I.value.resetAllFilters();
4009
- }, Xl = C(() => {
4010
- var $, P;
4011
- return {
4012
- ...t.emptyState,
4013
- variant: (($ = t.emptyState) == null ? void 0 : $.variant) === "embedded" || ((P = t.emptyState) == null ? void 0 : P.variant) === "basic" ? t.emptyState.variant : "basic"
4014
- };
4015
- }), Ql = C(() => ({
4016
- [`b-data-grid--${Me.OUTLINE}`]: t.outline,
4017
- [`b-data-grid--${Me.SCROLL}`]: t.fitContent || Ye.value,
4018
- [`b-data-grid--${Me.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
4019
- [`b-data-grid--${Me.OVERFLOW_SHADOW_LEFT}`]: it.value && !oe.value,
4020
- [`b-data-grid--${Me.OVERFLOW_SHADOW_RIGHT}`]: Ut.value && t.rowActions === void 0,
4021
- [`b-data-grid--${Me.NO_SPACING_TOP}`]: t.noSpacingTop,
4022
- [`b-data-grid--${Me.FIT_CONTENT}`]: t.fitContent,
4023
- [`b-data-grid--${Me.ZEBRA_ROWS}`]: Ct.value,
4024
- "b-data-grid--lazy-load": Ye.value
4025
- })), en = C(() => ({
4026
- "b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
4027
- })), tn = C(() => Ke.value.findIndex(($) => $.columnSet.length)), Mt = C(() => !((t.selectable || t.hasNestedContent || t.hasNestedRows) && oe.value === 1) || it.value), ln = C(() => ({
4028
- "b-data-grid__filters--sticky": !!t.stickyFilters || Ie
4029
- })), nn = C(() => {
4030
- var $, P, ie, K, Le, ke;
4031
- return {
4032
- "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,
4033
- "b-data-grid__pagination--padding-right-unset": ((ke = (Le = (K = t.columns) == null ? void 0 : K[t.columns.length - 1]) == null ? void 0 : Le.padding) == null ? void 0 : ke.right) === !1,
4034
- "b-data-grid__pagination--sticky": !!t.stickyPagination || Ie
4035
- };
4036
- }), on = ($) => {
4037
- const P = $;
4038
- $ !== null && (P != null && P.columnHeaderRefs) && Object.entries(P == null ? void 0 : P.columnHeaderRefs).forEach(([ie, K]) => {
4039
- f.value[ie] = K;
4040
- });
4041
- }, sn = ($, P) => {
4042
- var K, Le, ke, Ze;
4043
- const ie = $;
4044
- if ($ !== null && ie != null && ie.gridcellRefs) {
4045
- const $e = t.rowActions !== void 0 && (ie == null ? void 0 : ie.rowActionsRef);
4046
- Object.entries(ie == null ? void 0 : ie.gridcellRefs).map(([Se, Je]) => {
4047
- var rt;
4048
- ((rt = b.value) == null ? void 0 : rt[Se]) === void 0 && (b.value = { ...b.value, [Se]: [] }), b.value[Se][P] = Je;
4049
- }), $e && (((K = b.value) == null ? void 0 : K[lt]) === void 0 && (b.value = { ...b.value, [lt]: [] }), b.value[lt][P] = (Le = ie.rowActionsRef) == null ? void 0 : Le[0], ne.value = Math.max(
4050
- ne.value,
4051
- ((Ze = (ke = ie.rowActionsRef) == null ? void 0 : ke[0]) == null ? void 0 : Ze.offsetWidth) ?? 0
4052
- ));
4053
- }
4054
- }, an = ($, P) => {
4055
- t.allowRowClicks && Z(z.ROW_CLICK, $, P);
4056
- }, rn = ($) => {
4057
- ge.value = $;
4058
- }, dn = C(() => t.hasNestedContent || t.hasNestedRows ? "treegrid" : "grid"), Ft = C(() => {
4059
- var $;
4060
- return (($ = _t.value) == null ? void 0 : $.length) ?? 0;
4061
- }), un = C(() => t.bulkActions && Ft.value > 0), cn = ($) => Z(z.COLUMN_RESIZE, $), fn = ($) => {
4062
- Z(z.UPDATE_SORT_BY, $), Z(z.SORT, $);
4063
- }, gn = ($, P) => {
4064
- Z(z.NAVIGATE, $), Z(z.UPDATE_PAGINATION, {
4065
- ...t.pagination,
4066
- size: P,
4067
- page: $
4068
- });
4069
- }, vn = ($) => {
4070
- Z(z.ITEMS_PAGE, $);
4071
- }, mn = () => {
4072
- Z(z.FILTER_SEARCH_CLEAR);
4073
- }, hn = ($) => {
4074
- Z(z.UPDATE_FILTER_SEARCH_TERM, $), Z(z.FILTER_SEARCH_INPUT, $);
4075
- };
4076
- return C(() => k.value.some(($) => $.mandatory)).value || ml(
4077
- "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
4078
- ), Pe(Un, () => null)(t.tabTitle), dt(yl, bt(t, "slashedZero")), s({ onEmptyStateClearResetButtonClick: Jl }), ($, P) => {
4079
- var ie;
4080
- return d(), p("div", {
4081
- ref_key: "dataGridRef",
4082
- ref: we,
4083
- class: de(["b-data-grid", Ql.value]),
4084
- "data-testid": "data-grid",
4085
- "aria-live": "polite",
4086
- "aria-busy": o(F),
4087
- onCopy: P[14] || (P[14] = //@ts-ignore
4088
- (...K) => o(Jt) && o(Jt)(...K))
4089
- }, [
4090
- e.filters ? (d(), p("div", {
4091
- key: 0,
4092
- ref_key: "filtersRef",
4093
- ref: L,
4094
- class: de(["b-data-grid__filters", ln.value]),
4095
- style: Fe({ top: xe.value }),
4096
- "aria-controls": _.value,
4097
- "aria-label": o(ue)("filterBar"),
4098
- role: "region"
4099
- }, [
4100
- e.filters ? (d(), H($n, {
4101
- key: 0,
4102
- ref_key: "filterBarRef",
4103
- ref: I,
4104
- config: e.filters,
4105
- "container-size-layout": e.filtersContainerSizeLayout,
4106
- "filter-values": e.filterValues,
4107
- "filter-values-object": e.filterValuesObject,
4108
- search: e.filterSearchConfig,
4109
- "search-term": e.filterSearchTerm,
4110
- onSearchInput: hn,
4111
- onSearchClear: mn,
4112
- onInput: P[0] || (P[0] = (K) => $.$emit(o(z).UPDATE_FILTERS, K)),
4113
- "onUpdate:filterValues": P[1] || (P[1] = (K) => $.$emit(o(z).UPDATE_FILTER_VALUES, K)),
4114
- "onUpdate:filterValuesObject": P[2] || (P[2] = (K) => $.$emit(o(z).UPDATE_FILTER_VALUES_OBJECT, K))
4115
- }, null, 8, ["config", "container-size-layout", "filter-values", "filter-values-object", "search", "search-term"])) : W("", !0)
4116
- ], 14, Ta)) : W("", !0),
4117
- $.$slots.header ? (d(), p("div", Oa, [
4118
- ze($.$slots, "header", {}, void 0, !0)
4119
- ])) : W("", !0),
4120
- A("div", {
4121
- id: _.value,
4122
- role: dn.value,
4123
- "aria-rowcount": o(M).length,
4124
- "aria-colcount": o(k).length,
4125
- "aria-label": e.emptyState ? o(ue)("noResults") : null,
4126
- class: "b-data-grid__wrapper",
4127
- style: Fe({ top: De.value })
4128
- }, [
4129
- A("div", {
4130
- class: "b-data-grid__column-headers",
4131
- style: Fe({ top: De.value })
4132
- }, [
4133
- A("div", {
4134
- ref_key: "columnsRef",
4135
- ref: v,
4136
- role: "rowgroup",
4137
- class: "b-data-grid__columns-row",
4138
- onScroll: P[7] || (P[7] = //@ts-ignore
4139
- (...K) => o(at) && o(at)(...K)),
4140
- onKeydown: P[8] || (P[8] = //@ts-ignore
4141
- (...K) => o(st) && o(st)(...K))
4142
- }, [
4143
- o(y) ? (d(), p("div", Ia, [
4144
- Y(o(Os), {
4145
- class: "b-data-grid__config-settings",
4146
- role: "gridcell",
4147
- columns: o(D),
4148
- condensed: e.condensed,
4149
- "zebra-rows": o(Ct),
4150
- "onUpdate:condensed": o(kl),
4151
- "onUpdate:zebraRows": o(Ul),
4152
- "onUpdate:columns": o(Dl)
4153
- }, null, 8, ["columns", "condensed", "zebra-rows", "onUpdate:condensed", "onUpdate:zebraRows", "onUpdate:columns"])
4154
- ])) : W("", !0),
4155
- A("div", {
4156
- style: Fe(o(me)),
4157
- class: "b-data-grid__columns",
4158
- role: "row"
4159
- }, [
4160
- (d(!0), p(_e, null, Ae(o(Ke), ({ columnSet: K, id: Le, isFrozenColumns: ke }, Ze) => {
4161
- var $e;
4162
- return d(), p(_e, null, [
4163
- K != null && K.length ? (d(), H(o(ss), se({
4164
- key: `data-grid-columns-${Le}`,
4165
- ref_for: !0,
4166
- ref: (Se) => on(Se),
4167
- columns: K,
4168
- "has-resizable-columns": e.hasResizableColumns,
4169
- "sort-by": e.sortBy,
4170
- "all-items-selected-state": o(Hl),
4171
- "is-frozen-columns": ke,
4172
- "show-frozen-columns-separator": Mt.value,
4173
- "dragging-columns": o(It),
4174
- "has-draggable-columns": o(N),
4175
- "has-column-panel": o(y),
4176
- "has-left-overflow": o(it),
4177
- "has-first-column-panel-right-aligned": Ze === tn.value,
4178
- "hovered-over-column-state": o(Nt),
4179
- "is-measuring-column-widths": o(Ge),
4180
- "is-only-one-visible-column": o(Il),
4181
- selectable: (($e = o(M)) == null ? void 0 : $e.length) > 0 && o(g),
4182
- "selectable-across-pages": Dt.value,
4183
- "selected-items": o(_t),
4184
- "visible-rows-state": xl.value,
4185
- "selection-state": o(Gl),
4186
- "truncate-column-headers": e.truncateColumnHeaders,
4187
- "row-actions-maximum-width": o(ne)
4188
- }, gt(o(Fl)), {
4189
- onColumnHover: P[3] || (P[3] = (Se) => Ml.value = Se),
4190
- onColumnMove: o(Pl),
4191
- onColumnUpdate: o($l),
4192
- onColumnResize: cn,
4193
- onColumnResizing: o(ve),
4194
- onSelectAllRows: o(Bl),
4195
- onSelectAllAcrossPages: P[4] || (P[4] = (Se) => Z(o(z).SELECT_ALL_ACROSS_PAGES)),
4196
- onSelectAllCurrentResults: P[5] || (P[5] = (Se) => Z(o(z).SELECT_ALL_CURRENT_RESULTS)),
4197
- onDeselectAllCurrentResults: P[6] || (P[6] = (Se) => Z(o(z).DESELECT_ALL_CURRENT_RESULTS)),
4198
- onDeselectAll: o($t),
4199
- onSort: fn
4200
- }), Qe({ _: 2 }, [
4201
- Ae(o(u), (Se, Je) => ({
4202
- name: Je,
4203
- fn: G((rt) => [
4204
- ze($.$slots, Je, se({ ref_for: !0 }, rt), void 0, !0)
4205
- ])
4206
- }))
4207
- ]), 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", "visible-rows-state", "selection-state", "truncate-column-headers", "row-actions-maximum-width", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows", "onDeselectAll"])) : W("", !0)
4208
- ], 64);
4209
- }), 256))
4210
- ], 4)
4211
- ], 544)
4212
- ], 4),
4213
- A("div", {
4214
- ref_key: "body",
4215
- ref: n,
4216
- "data-testid": "data-grid-body",
4217
- class: de(["b-data-grid__body", en.value]),
4218
- onScroll: P[12] || (P[12] = //@ts-ignore
4219
- (...K) => o(at) && o(at)(...K))
4220
- }, [
4221
- o(F) && !o(Ye) ? (d(), p("div", Da, [
4222
- Y(o(ct), {
4223
- class: "b-data-grid__loading-indicator",
4224
- large: ""
4225
- }),
4226
- Y(o(qe), {
4227
- el: "span",
4228
- variant: "caption"
4229
- }, {
4230
- default: G(() => [
4231
- fe(J(o(ue)("gettingYourData")), 1)
4232
- ]),
4233
- _: 1
4234
- })
4235
- ])) : (d(), p("div", {
4236
- key: 1,
4237
- role: "rowgroup",
4238
- onKeydown: P[11] || (P[11] = //@ts-ignore
4239
- (...K) => o(st) && o(st)(...K))
4240
- }, [
4241
- ((ie = o(M)) == null ? void 0 : ie.length) === 0 && e.emptyState ? (d(), p("div", $a, [
4242
- A("div", {
4243
- role: "gridcell",
4244
- "aria-colspan": o(k).length,
4245
- tabindex: "-1"
4246
- }, [
4247
- Y(o(kn), se({ class: "b-data-grid__empty-state" }, Xl.value), null, 16)
4248
- ], 8, ka)
4249
- ])) : (d(!0), p(_e, { key: 1 }, Ae(o(M), (K, Le) => {
4250
- var ke, Ze;
4251
- return d(), H(o(Tl), {
4252
- key: Le,
4253
- ref_for: !0,
4254
- ref: ($e) => sn($e, Le),
4255
- style: Fe(o(me)),
4256
- "allow-row-clicks": e.allowRowClicks,
4257
- "column-sets": o(Ke),
4258
- condensed: e.condensed,
4259
- "dragging-columns": o(It),
4260
- "dragging-events-for-row-cell": o(zl),
4261
- "get-data-item-id": e.getDataItemId,
4262
- "has-nested-content": o(m),
4263
- "has-nested-rows": o(a),
4264
- "has-left-overflow": o(it),
4265
- "has-right-overflow": o(Ut),
4266
- "highlighted-rows": e.highlightedRows,
4267
- "hovered-row-index": ge.value,
4268
- "hovered-over-column-state": o(Nt),
4269
- "is-data-item-disabled": e.isDataItemDisabled,
4270
- "is-row-even": o(Ct) ? Le % 2 !== 0 : !1,
4271
- "is-row-last-child": Le + 1 === ((ke = o(M)) == null ? void 0 : ke.length),
4272
- "is-measuring-column-widths": o(Ge),
4273
- "row-actions-maximum-width": o(ne),
4274
- "row-actions": e.rowActions,
4275
- "row-data": K,
4276
- "row-index": Le,
4277
- "row-set-size": (Ze = o(M)) == null ? void 0 : Ze.length,
4278
- "show-frozen-columns-separator": Mt.value,
4279
- "should-show-nested-content": e.shouldShowNestedContent,
4280
- "should-show-nested-rows": e.shouldShowNestedRows,
4281
- selectable: o(g),
4282
- "selected-items": o(_t),
4283
- onCellHovered: rn,
4284
- onCellFocus: P[9] || (P[9] = ($e) => Z(o(z).CELL_FOCUS, $e)),
4285
- onNestedContentToggled: P[10] || (P[10] = ($e) => Z(o(z).NESTED_CONTENT_TOGGLED, $e)),
4286
- onRowClick: an,
4287
- onOnFrozenColumnsKeyPress: o(Kl),
4288
- onSelectRow: o(Wl),
4289
- onSelectNestedRow: o(Vl)
4290
- }, Qe({ _: 2 }, [
4291
- Ae(o(u), ($e, Se) => ({
4292
- name: Se,
4293
- fn: G((Je) => [
4294
- ze($.$slots, Se, se({ ref_for: !0 }, Je), void 0, !0)
4295
- ])
4296
- }))
4297
- ]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-even", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
4298
- }), 128))
4299
- ], 32))
4300
- ], 34)
4301
- ], 12, Na),
4302
- o(Ye) ? (d(), H(o($s), {
4303
- key: 2,
4304
- loading: o(F),
4305
- "is-infinite-scroll": o(Zl),
4306
- "onUpdate:showMore": o(ql)
4307
- }, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : W("", !0),
4308
- e.stickyHorizontalScrollbar ? (d(), p("div", {
4309
- key: 3,
4310
- ref_key: "virtualHorizontalScrollbarRef",
4311
- ref: T,
4312
- class: "b-data-grid__horizontal-scrollbar",
4313
- "aria-hidden": "true",
4314
- "data-testid": "sticky-horizontal-scrollbar",
4315
- style: Fe(o(Yl)),
4316
- onScroll: P[13] || (P[13] = //@ts-ignore
4317
- (...K) => o(kt) && o(kt)(...K))
4318
- }, [
4319
- A("div", {
4320
- style: Fe({ width: `${o(te)}px`, height: "15px" })
4321
- }, null, 4)
4322
- ], 36)) : W("", !0),
4323
- o(le) && !o(Ye) ? (d(), p("div", {
4324
- key: 4,
4325
- ref_key: "paginationContainerRef",
4326
- ref: S,
4327
- "data-testid": "pagination-container",
4328
- class: de(["b-data-grid__pagination", nn.value])
4329
- }, [
4330
- Y(o(Dn), se(o(le), {
4331
- "aria-label": $.$t("pagination"),
4332
- "aria-controls": _.value,
4333
- onNavigate: gn,
4334
- onItemsPage: vn
4335
- }), {
4336
- default: G(() => [
4337
- o(l)("pagination-slot") ? ze($.$slots, "pagination-slot", { key: 0 }, void 0, !0) : W("", !0)
4338
- ]),
4339
- _: 3
4340
- }, 16, ["aria-label", "aria-controls"])
4341
- ], 2)) : W("", !0),
4342
- $.$slots.footer ? (d(), p("div", Ua, [
4343
- ze($.$slots, "footer", {}, void 0, !0)
4344
- ])) : W("", !0),
4345
- un.value ? (d(), H(o(In), {
4346
- key: 6,
4347
- actions: e.bulkActions,
4348
- "item-counter": Ft.value,
4349
- "extra-bottom-spacing": o(x),
4350
- onClose: o($t)
4351
- }, null, 8, ["actions", "item-counter", "extra-bottom-spacing", "onClose"])) : W("", !0)
4352
- ], 42, Aa);
4353
- };
4354
- }
4355
- }), Ui = /* @__PURE__ */ re(Fa, [["__scopeId", "data-v-9cae82d1"]]);
4356
- export {
4357
- pt as B,
4358
- Ii as a,
4359
- Di as b,
4360
- $i as c,
4361
- Ui as d,
4362
- ki as e,
4363
- ut as f,
4364
- z as g,
4365
- He as h,
4366
- Me as i
4367
- };
4368
- //# sourceMappingURL=data-grid.C2nCCbeC.js.map