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