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