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