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