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