@adyen/bento-vue3 1.41.0 → 1.43.0

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