@adyen/bento-vue2 1.41.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +492 -54
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/date-range-picker.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -0
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/input-field-password.css +1 -0
  15. package/dist/assets/input-field.css +1 -1
  16. package/dist/assets/inspector.css +1 -1
  17. package/dist/assets/menu.css +1 -1
  18. package/dist/assets/modal-fullscreen.css +1 -1
  19. package/dist/assets/popover.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/assets/step.css +1 -1
  22. package/dist/assets/tooltip.css +1 -1
  23. package/dist/assets/typography.css +1 -1
  24. package/dist/button.js +2 -2
  25. package/dist/card.js +1 -1
  26. package/dist/checkbox.js +2 -2
  27. package/dist/chunks/{action-bar.r05wfyni.js → action-bar.kPPYSgQK.js} +5 -5
  28. package/dist/chunks/{action-bar.r05wfyni.js.map → action-bar.kPPYSgQK.js.map} +1 -1
  29. package/dist/chunks/{alert.Y4JUnmhl.js → alert.D2Z_aiFC.js} +19 -19
  30. package/dist/chunks/{alert.Y4JUnmhl.js.map → alert.D2Z_aiFC.js.map} +1 -1
  31. package/dist/chunks/{base-modal.SJX9uGT4.js → base-modal.DroVbSCn.js} +2 -2
  32. package/dist/chunks/{base-modal.SJX9uGT4.js.map → base-modal.DroVbSCn.js.map} +1 -1
  33. package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js → button-actions-with-menu.dp6C-PKX.js} +4 -4
  34. package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js.map → button-actions-with-menu.dp6C-PKX.js.map} +1 -1
  35. package/dist/chunks/{button-actions.BJMK3kZC.js → button-actions.Cpx4PQp0.js} +2 -2
  36. package/dist/chunks/{button-actions.BJMK3kZC.js.map → button-actions.Cpx4PQp0.js.map} +1 -1
  37. package/dist/chunks/{card.Cfj-r6CX.js → card.BcjxzwZV.js} +2 -2
  38. package/dist/chunks/{card.Cfj-r6CX.js.map → card.BcjxzwZV.js.map} +1 -1
  39. package/dist/chunks/{checkbox-group.BEI5FPnW.js → checkbox-group.Bcqac3y8.js} +4 -4
  40. package/dist/chunks/{checkbox-group.BEI5FPnW.js.map → checkbox-group.Bcqac3y8.js.map} +1 -1
  41. package/dist/chunks/{checkbox.5uVM-HLg.js → checkbox.B1qjI4R_.js} +3 -3
  42. package/dist/chunks/{checkbox.5uVM-HLg.js.map → checkbox.B1qjI4R_.js.map} +1 -1
  43. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.Cn7JN_Tk.js} +5 -5
  44. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.Cn7JN_Tk.js.map} +1 -1
  45. package/dist/chunks/{code-snippet.DRH4X9pH.js → code-snippet.DuZDA7gH.js} +5 -5
  46. package/dist/chunks/{code-snippet.DRH4X9pH.js.map → code-snippet.DuZDA7gH.js.map} +1 -1
  47. package/dist/chunks/{controls-group.Sni8leS5.js → controls-group.J8shO_JL.js} +2 -2
  48. package/dist/chunks/{controls-group.Sni8leS5.js.map → controls-group.J8shO_JL.js.map} +1 -1
  49. package/dist/chunks/{copy.C5j6vSQT.js → copy.DgzxvExj.js} +2 -2
  50. package/dist/chunks/{copy.C5j6vSQT.js.map → copy.DgzxvExj.js.map} +1 -1
  51. package/dist/chunks/{dashboard-section.DchlD4B2.js → dashboard-section.CExqPbQb.js} +3 -3
  52. package/dist/chunks/{dashboard-section.DchlD4B2.js.map → dashboard-section.CExqPbQb.js.map} +1 -1
  53. package/dist/chunks/{dashed-underline.6Aw4MP34.js → dashed-underline.dGO33Q_E.js} +3 -3
  54. package/dist/chunks/{dashed-underline.6Aw4MP34.js.map → dashed-underline.dGO33Q_E.js.map} +1 -1
  55. package/dist/chunks/{data-grid-template.Bhotcrsr.js → data-grid-template.BF7JMfoJ.js} +2 -2
  56. package/dist/chunks/{data-grid-template.Bhotcrsr.js.map → data-grid-template.BF7JMfoJ.js.map} +1 -1
  57. package/dist/chunks/data-grid.BXB98JQr.js +2556 -0
  58. package/dist/chunks/data-grid.BXB98JQr.js.map +1 -0
  59. package/dist/chunks/{date-picker.lFLlAGXs.js → date-picker.Dfg1_eo6.js} +3 -3
  60. package/dist/chunks/{date-picker.lFLlAGXs.js.map → date-picker.Dfg1_eo6.js.map} +1 -1
  61. package/dist/chunks/{date-range-picker.Cr_YCwxP.js → date-range-picker.xYGf0SRg.js} +180 -177
  62. package/dist/chunks/date-range-picker.xYGf0SRg.js.map +1 -0
  63. package/dist/chunks/dot.BCX4w7eT.js +24 -0
  64. package/dist/chunks/dot.BCX4w7eT.js.map +1 -0
  65. package/dist/chunks/{dropdown-tag.BPkMWSmY.js → dropdown-tag.B4RMse5R.js} +3 -3
  66. package/dist/chunks/{dropdown-tag.BPkMWSmY.js.map → dropdown-tag.B4RMse5R.js.map} +1 -1
  67. package/dist/chunks/{dropdown.D8xKm1YA.js → dropdown.BfzsI2Th.js} +4 -4
  68. package/dist/chunks/{dropdown.D8xKm1YA.js.map → dropdown.BfzsI2Th.js.map} +1 -1
  69. package/dist/chunks/{error-message.Bk2maRF8.js → error-message.B7uoqQpq.js} +2 -2
  70. package/dist/chunks/{error-message.Bk2maRF8.js.map → error-message.B7uoqQpq.js.map} +1 -1
  71. package/dist/chunks/es6.b4enG1py.js.map +1 -1
  72. package/dist/chunks/file-uploader.CK-Frs_q.js +728 -0
  73. package/dist/chunks/file-uploader.CK-Frs_q.js.map +1 -0
  74. package/dist/chunks/{filter-bar.dQZY8j9C.js → filter-bar.hBPWastb.js} +702 -697
  75. package/dist/chunks/filter-bar.hBPWastb.js.map +1 -0
  76. package/dist/chunks/{footer-actions.B68XcD93.js → footer-actions.DwnLB4NW.js} +2 -2
  77. package/dist/chunks/{footer-actions.B68XcD93.js.map → footer-actions.DwnLB4NW.js.map} +1 -1
  78. package/dist/chunks/{form-layout-title.Cd2WlefD.js → form-layout-title.BarHgyjC.js} +2 -2
  79. package/dist/chunks/{form-layout-title.Cd2WlefD.js.map → form-layout-title.BarHgyjC.js.map} +1 -1
  80. package/dist/chunks/{header.DwTrDlSa.js → header.CAJtHW1k.js} +4 -4
  81. package/dist/chunks/{header.DwTrDlSa.js.map → header.CAJtHW1k.js.map} +1 -1
  82. package/dist/chunks/index.Gcw_BUVh.js +367 -0
  83. package/dist/chunks/index.Gcw_BUVh.js.map +1 -0
  84. package/dist/chunks/{info-icon.CCR-cAFR.js → info-icon.p-28zHUJ.js} +2 -2
  85. package/dist/chunks/{info-icon.CCR-cAFR.js.map → info-icon.p-28zHUJ.js.map} +1 -1
  86. package/dist/chunks/input-field-password.BmfOGkrH.js +191 -0
  87. package/dist/chunks/input-field-password.BmfOGkrH.js.map +1 -0
  88. package/dist/chunks/{input-field.CKOdyDVy.js → input-field.CHD3Fzzg.js} +37 -35
  89. package/dist/chunks/input-field.CHD3Fzzg.js.map +1 -0
  90. package/dist/chunks/{layout-row.CtFsZ5-v.js → layout-row.DzS_XyyF.js} +2 -2
  91. package/dist/chunks/{layout-row.CtFsZ5-v.js.map → layout-row.DzS_XyyF.js.map} +1 -1
  92. package/dist/chunks/{listbox-option-tag.CuHL51H9.js → listbox-option-tag.BnX0H4HE.js} +2 -2
  93. package/dist/chunks/{listbox-option-tag.CuHL51H9.js.map → listbox-option-tag.BnX0H4HE.js.map} +1 -1
  94. package/dist/chunks/{loading-button.2h9RXXIZ.js → loading-button.CiPmvU7F.js} +2 -2
  95. package/dist/chunks/{loading-button.2h9RXXIZ.js.map → loading-button.CiPmvU7F.js.map} +1 -1
  96. package/dist/chunks/{menu.DEeyofbM.js → menu.N41WnXc8.js} +2 -2
  97. package/dist/chunks/{menu.DEeyofbM.js.map → menu.N41WnXc8.js.map} +1 -1
  98. package/dist/chunks/{modal-fullscreen.Ct4aitSv.js → modal-fullscreen.BbNe6M9T.js} +2 -2
  99. package/dist/chunks/{modal-fullscreen.Ct4aitSv.js.map → modal-fullscreen.BbNe6M9T.js.map} +1 -1
  100. package/dist/chunks/{modal.tUtoM34X.js → modal.Cb4zg5fN.js} +4 -4
  101. package/dist/chunks/{modal.tUtoM34X.js.map → modal.Cb4zg5fN.js.map} +1 -1
  102. package/dist/chunks/{pagination.CqrSR1Md.js → pagination.DORr-ox0.js} +2 -2
  103. package/dist/chunks/{pagination.CqrSR1Md.js.map → pagination.DORr-ox0.js.map} +1 -1
  104. package/dist/chunks/{popover.BcWFpCY_.js → popover.Uy-vuQq5.js} +2 -2
  105. package/dist/chunks/{popover.BcWFpCY_.js.map → popover.Uy-vuQq5.js.map} +1 -1
  106. package/dist/chunks/{promo-banner.NSOVGA7M.js → promo-banner.cTUF9seG.js} +2 -2
  107. package/dist/chunks/{promo-banner.NSOVGA7M.js.map → promo-banner.cTUF9seG.js.map} +1 -1
  108. package/dist/chunks/{radio-group.DtlPzh_w.js → radio-group.EnMXbuly.js} +4 -4
  109. package/dist/chunks/{radio-group.DtlPzh_w.js.map → radio-group.EnMXbuly.js.map} +1 -1
  110. package/dist/chunks/{search-bar.CN9pWrLP.js → search-bar.BtFX4039.js} +3 -3
  111. package/dist/chunks/{search-bar.CN9pWrLP.js.map → search-bar.BtFX4039.js.map} +1 -1
  112. package/dist/chunks/{secondary-nav.DMw1l7rH.js → secondary-nav.DtnWRhFW.js} +3 -3
  113. package/dist/chunks/{secondary-nav.DMw1l7rH.js.map → secondary-nav.DtnWRhFW.js.map} +1 -1
  114. package/dist/chunks/{segmented-control.uVH5ahVY.js → segmented-control.CVeUROYR.js} +2 -2
  115. package/dist/chunks/{segmented-control.uVH5ahVY.js.map → segmented-control.CVeUROYR.js.map} +1 -1
  116. package/dist/chunks/{selection-card-group.BjOuUbQD.js → selection-card-group.B6XXbJsv.js} +4 -4
  117. package/dist/chunks/{selection-card-group.BjOuUbQD.js.map → selection-card-group.B6XXbJsv.js.map} +1 -1
  118. package/dist/chunks/show.IEAxtCB7.js +43 -0
  119. package/dist/chunks/show.IEAxtCB7.js.map +1 -0
  120. package/dist/chunks/{sidepanel.BjrsqXLl.js → sidepanel.CRJN9Acz.js} +2 -2
  121. package/dist/chunks/{sidepanel.BjrsqXLl.js.map → sidepanel.CRJN9Acz.js.map} +1 -1
  122. package/dist/chunks/step.5g9BIi15.js +217 -0
  123. package/dist/chunks/step.5g9BIi15.js.map +1 -0
  124. package/dist/chunks/{structured-list-item.CAcBJutf.js → structured-list-item.BEhWyaVP.js} +4 -4
  125. package/dist/chunks/{structured-list-item.CAcBJutf.js.map → structured-list-item.BEhWyaVP.js.map} +1 -1
  126. package/dist/chunks/{summary-grid-item-custom.CPprUptt.js → summary-grid-item-custom.CSXo4NjY.js} +4 -4
  127. package/dist/chunks/{summary-grid-item-custom.CPprUptt.js.map → summary-grid-item-custom.CSXo4NjY.js.map} +1 -1
  128. package/dist/chunks/{tag.DSFSfnAf.js → tag.wTXg-O7i.js} +2 -2
  129. package/dist/chunks/{tag.DSFSfnAf.js.map → tag.wTXg-O7i.js.map} +1 -1
  130. package/dist/chunks/{textarea.B4MZ_pi1.js → textarea.Y3yd_3ll.js} +2 -2
  131. package/dist/chunks/{textarea.B4MZ_pi1.js.map → textarea.Y3yd_3ll.js.map} +1 -1
  132. package/dist/chunks/{timeline-item.CxB3KFiu.js → timeline-item.CCV4U3Zx.js} +5 -5
  133. package/dist/chunks/{timeline-item.CxB3KFiu.js.map → timeline-item.CCV4U3Zx.js.map} +1 -1
  134. package/dist/chunks/{tooltip.CS2Gij6x.js → tooltip.DH8TqpYV.js} +84 -68
  135. package/dist/chunks/tooltip.DH8TqpYV.js.map +1 -0
  136. package/dist/chunks/{tutorial.CGjM0EJT.js → tutorial.4r7MKNEU.js} +4 -4
  137. package/dist/chunks/{tutorial.CGjM0EJT.js.map → tutorial.4r7MKNEU.js.map} +1 -1
  138. package/dist/chunks/{use-cached-selected-values.D5ARl96f.js → use-cached-selected-values.CAlfyb_L.js} +8 -5
  139. package/dist/chunks/{use-cached-selected-values.D5ARl96f.js.map → use-cached-selected-values.CAlfyb_L.js.map} +1 -1
  140. package/dist/code-snippet.js +1 -1
  141. package/dist/dashboard-template.js +1 -1
  142. package/dist/dashed-underline.js +1 -1
  143. package/dist/data-grid-template.js +1 -1
  144. package/dist/data-grid.js +1 -1
  145. package/dist/date-picker.js +1 -1
  146. package/dist/date-range-picker.js +1 -1
  147. package/dist/dropdown.js +3 -3
  148. package/dist/file-uploader.js +5 -0
  149. package/dist/file-uploader.js.map +1 -0
  150. package/dist/filter-bar.js +1 -1
  151. package/dist/form-layout.js +1 -1
  152. package/dist/header.js +1 -1
  153. package/dist/index.js +227 -218
  154. package/dist/index.js.map +1 -1
  155. package/dist/info-icon.js +1 -1
  156. package/dist/input-field-password.js +10 -0
  157. package/dist/input-field-password.js.map +1 -0
  158. package/dist/input-field.js +1 -1
  159. package/dist/internal.js +6 -6
  160. package/dist/layout.js +1 -1
  161. package/dist/menu.js +1 -1
  162. package/dist/modal-fullscreen.js +1 -1
  163. package/dist/modal.js +2 -2
  164. package/dist/pagination.js +1 -1
  165. package/dist/popover.js +1 -1
  166. package/dist/promo-banner.js +1 -1
  167. package/dist/radio-group.js +1 -1
  168. package/dist/search-bar.js +2 -2
  169. package/dist/secondary-nav.js +1 -1
  170. package/dist/segmented-control.js +1 -1
  171. package/dist/selection-card.js +1 -1
  172. package/dist/sidepanel.js +1 -1
  173. package/dist/stepper.js +1 -1
  174. package/dist/structured-list.js +1 -1
  175. package/dist/styles/bento-dark.css +98 -34
  176. package/dist/styles/bento-light.css +98 -34
  177. package/dist/styles/bento.css +98 -34
  178. package/dist/styles/legacy.css +106 -42
  179. package/dist/styles/styleguide.css +98 -34
  180. package/dist/summary-grid.js +1 -1
  181. package/dist/tag.js +1 -1
  182. package/dist/textarea.js +1 -1
  183. package/dist/timeline.js +1 -1
  184. package/dist/tutorial.js +1 -1
  185. package/dist/web-types.json +701 -81
  186. package/package.json +10 -8
  187. package/dist/chunks/data-grid.ahAWR42s.js +0 -2408
  188. package/dist/chunks/data-grid.ahAWR42s.js.map +0 -1
  189. package/dist/chunks/date-range-picker.Cr_YCwxP.js.map +0 -1
  190. package/dist/chunks/filter-bar.dQZY8j9C.js.map +0 -1
  191. package/dist/chunks/index.D5am6ibQ.js +0 -249
  192. package/dist/chunks/index.D5am6ibQ.js.map +0 -1
  193. package/dist/chunks/input-field.CKOdyDVy.js.map +0 -1
  194. package/dist/chunks/step.D3-7YL7-.js +0 -234
  195. package/dist/chunks/step.D3-7YL7-.js.map +0 -1
  196. package/dist/chunks/tooltip.CS2Gij6x.js.map +0 -1
@@ -0,0 +1,2556 @@
1
+ import { ref as b, reactive as Re, toRefs as ye, computed as w, watchEffect as nn, watch as Y, onMounted as be, nextTick as K, onUnmounted as nt, onBeforeUpdate as sn, defineComponent as Q, toRef as st, useSlots as Oe, provide as on, inject as Ue } from "vue";
2
+ import { C as ln } from "./checkmark-circle-fill.Cn7JN_Tk.js";
3
+ import { W as an } from "./warning-filled.CLKRzGMT.js";
4
+ import { n as H } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
+ import { C as ot } from "./cross.CsUPDmaA.js";
6
+ import { N as ke } from "./checkbox-input.Bo4NxNOh.js";
7
+ import { d as rn } from "./popper-container.CnWphJTN.js";
8
+ import { K as te, B as dn } from "./tooltip.DH8TqpYV.js";
9
+ import { B as cn } from "./action-bar.kPPYSgQK.js";
10
+ import { B as un } from "./pagination.DORr-ox0.js";
11
+ import { B as Te } from "./loading-indicator.z8COalOc.js";
12
+ import { B as me, p as lt } from "./typography.Bu_WAKdf.js";
13
+ import { u as Ae } from "./use-has-slot.C9lQZ6nz.js";
14
+ import { u as fn } from "./aria-label.CaUURpnB.js";
15
+ import { g as gn } from "./get-slot-text.Cgn-E48s.js";
16
+ import { u as ie } from "./i18n.BQkEbtPM.js";
17
+ import { B as _n } from "./empty-state.B8ZeRgDi.js";
18
+ import { B as Ce } from "./filter-bar.hBPWastb.js";
19
+ import { E as vn } from "./tabs.keys.Bc2pSKRw.js";
20
+ import { D as Cn } from "./data-grid-template.keys.2_AkxuNT.js";
21
+ import { o as Ne } from "./resize.Bqks3WUm.js";
22
+ import "./index.Cl4_42j5.js";
23
+ import { a as Ge, B as hn } from "./popover.Uy-vuQq5.js";
24
+ import { B as at } from "./button.CufUNBkv.js";
25
+ import { B as it } from "./toggle.INRYdQzz.js";
26
+ import { B as mn } from "./search-bar.BtFX4039.js";
27
+ import { u as pn } from "./dropdown.BfzsI2Th.js";
28
+ import { g as we } from "./generate-uid.D-HFI38h.js";
29
+ import { S as Sn } from "./search.CBKhp7zB.js";
30
+ import { B as Ie } from "./toggle-button.CYplDIO-.js";
31
+ import { B as Ln } from "./directive.O3yEdalv.js";
32
+ import { B as rt } from "./checkbox.B1qjI4R_.js";
33
+ import { B as wn } from "./info-icon.p-28zHUJ.js";
34
+ import { B as dt, O as En, D as Rn } from "./menu.N41WnXc8.js";
35
+ import { A as yn } from "./dialog-page.CplkzZGZ.js";
36
+ import { H as bn, S as On } from "./show.IEAxtCB7.js";
37
+ import { l as We } from "./events.CMzGybJJ.js";
38
+ import { B as Tn, a as An } from "./loading-button.CiPmvU7F.js";
39
+ import { u as Nn } from "./use-expandable-content-height.GkjjbmPy.js";
40
+ import { E as In } from "./link.v-y0fKjn.js";
41
+ import { C as Dn } from "./copy.DgzxvExj.js";
42
+ import { C as Fn, a as xn } from "./chevron-up.B2uWhZf7.js";
43
+ import "../assets/data-grid.css";
44
+ var Ee = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Ee || {}), se = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(se || {}), ae = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ae || {}), T = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(T || {}), he = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(he || {}), k = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(k || {});
45
+ const Mn = (s, t) => {
46
+ const n = b(null), e = b(!1), o = b(void 0), l = s.value.reduce((m, S) => (m[S.field] = null, m), {}), a = Re(l), h = ye(a);
47
+ let g = 0, _ = "";
48
+ const p = w(
49
+ () => Object.fromEntries(s.value.map(({ field: m, width: S, minWidth: O }) => [m, { width: S, minWidth: O }]))
50
+ );
51
+ nn(() => o.value = p.value);
52
+ let u = null, i = null;
53
+ const d = (m) => {
54
+ const S = m.clientX - g, O = _, R = o.value[O].width + S;
55
+ o.value[O].width = R > p.value[O].minWidth ? R : p.value[O].minWidth, t(k.COLUMN_RESIZING, o.value), g = m.clientX;
56
+ }, c = () => {
57
+ e.value = !1, u == null || u(), i == null || i(), _ && t(k.COLUMN_RESIZE, {
58
+ field: _,
59
+ width: o.value[_].width
60
+ }), u = null, i = null, _ = "", g = null;
61
+ }, v = (m, S, O) => {
62
+ if (O.preventDefault(), m) {
63
+ if (e.value = !0, O.buttons !== 1) {
64
+ c();
65
+ return;
66
+ }
67
+ _ = S, g = O.clientX, u = We(window, "mousemove", d), i = We(window, "mouseup", c);
68
+ }
69
+ };
70
+ return Y(
71
+ () => e.value,
72
+ (m, S) => {
73
+ !m && S && (t(k.COLUMN_HOVER, n.value), n.value = null);
74
+ }
75
+ ), {
76
+ resizeData: o,
77
+ allColumnRefs: h,
78
+ startResize: v,
79
+ isResizing: e,
80
+ columnHoverEventToEmitAfterResizing: n
81
+ };
82
+ }, Pn = 100, He = 50, q = "b-actions-column", Bn = 32, zn = 56, $n = 56, Un = 80, kn = 36, Gn = 1, ct = 16, Wn = 20, Hn = (s, t, n) => {
83
+ const e = {}, o = [], l = (h) => {
84
+ const g = e[h];
85
+ g && g.frozen !== !0 && (e[h].frozen = !0, o.push(h));
86
+ };
87
+ function a() {
88
+ if (o.length === n.length)
89
+ return;
90
+ const h = { min: {}, max: {} };
91
+ let g = s, _ = t, p = 0;
92
+ o.forEach((u) => {
93
+ g -= e[u].computedWidth, _ -= e[u].flex;
94
+ });
95
+ for (let u = 0, i = n.length; u < i; u += 1) {
96
+ const d = n[u];
97
+ if (e[d.field] && e[d.field].frozen === !0)
98
+ continue;
99
+ let v = g / _ * d.flex;
100
+ v < d.minWidth && (p += d.minWidth - v, v = d.minWidth, h.min[d.field] = !0), e[d.field] = {
101
+ frozen: !1,
102
+ computedWidth: v,
103
+ flex: d.flex
104
+ };
105
+ }
106
+ p > 0 ? Object.keys(h.min).forEach((u) => {
107
+ l(u);
108
+ }) : n.forEach(({ field: u }) => {
109
+ l(u);
110
+ }), a();
111
+ }
112
+ return a(), e;
113
+ }, Ve = (s, t) => {
114
+ let n = Gn;
115
+ return t && (n += ct * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
116
+ }, Vn = (s) => {
117
+ var t, n, e, o, l;
118
+ return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? Un : $n : kn : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? zn : Bn;
119
+ }, Zn = (s, t, n, e, o, l) => {
120
+ const a = b(s.value), h = b(t), g = b(n), _ = b(e), p = b(o), u = b(!1);
121
+ Y(
122
+ () => s.value,
123
+ (L, E) => {
124
+ var F, f;
125
+ const N = (L == null ? void 0 : L.map(({ field: M }) => M).toString()) === (E == null ? void 0 : E.map(({ field: M }) => M).toString());
126
+ if (!((F = l == null ? void 0 : l.allowColumnDragAndDrop) != null && F.value) || !N) {
127
+ a.value = s.value;
128
+ return;
129
+ }
130
+ a.value = ((f = a.value) == null ? void 0 : f.length) === 0 ? s.value : s.value.sort((M, I) => {
131
+ const x = a.value.findIndex((G) => G.field === M.field), U = a.value.findIndex((G) => G.field === I.field);
132
+ return x === -1 ? 1 : U === -1 ? -1 : x - U;
133
+ });
134
+ }
135
+ );
136
+ const i = b();
137
+ let d = null;
138
+ const c = w(() => {
139
+ var x, U, G;
140
+ const L = [];
141
+ let E = 0, N = 0;
142
+ const F = {};
143
+ let f = a.value.filter((C) => C.visible !== !1);
144
+ const M = a.value.filter((C) => C.visible === !1);
145
+ if ((x = l == null ? void 0 : l.hasSelectableColumn) != null && x.value || (U = l == null ? void 0 : l.hasNestedContent) != null && U.value || (G = l == null ? void 0 : l.hasNestedRows) != null && G.value) {
146
+ const C = Vn(l);
147
+ f = [
148
+ {
149
+ field: q,
150
+ label: "",
151
+ minWidth: C,
152
+ width: C,
153
+ frozen: !0,
154
+ padding: { left: !1, right: !1 }
155
+ },
156
+ ...f
157
+ ];
158
+ }
159
+ f.forEach((C) => {
160
+ const y = { ...C };
161
+ let z;
162
+ y.flex && y.flex > 0 ? (E += y.flex, z = 0, L.push(y)) : z = Math.max(
163
+ (y == null ? void 0 : y.width) ?? Pn,
164
+ (y == null ? void 0 : y.minWidth) ?? He
165
+ ), N += z, y.width = z, y.minWidth = (y == null ? void 0 : y.minWidth) ?? He, F[y.field] = y;
166
+ });
167
+ const I = Math.max(i.value - N, 0);
168
+ if (E > 0 && i.value > 0) {
169
+ const C = Hn(I, E, L);
170
+ Object.keys(C).forEach((y) => {
171
+ F[y].width = C[y].computedWidth;
172
+ });
173
+ }
174
+ return M.forEach((C) => {
175
+ const y = { ...C };
176
+ F[y.field] = y;
177
+ }), Object.values(F);
178
+ }), v = b(void 0), m = (L) => {
179
+ v.value = { ...v.value, ...L };
180
+ }, S = async () => {
181
+ a.value.some((L) => L == null ? void 0 : L.autoWidth) && (u.value = !0, await K(), a == null || a.value.filter((L) => L == null ? void 0 : L.autoWidth).forEach(({ field: L, minWidth: E }) => {
182
+ var M, I, x, U;
183
+ const N = Ve(
184
+ (M = _.value) == null ? void 0 : M[L],
185
+ (I = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : I.value
186
+ ), F = (U = (x = p.value) == null ? void 0 : x[L]) == null ? void 0 : U.reduce(
187
+ (G, C) => Math.max(G, Ve(C)),
188
+ 0
189
+ ), f = Math.max(N, F ?? 0);
190
+ (E === void 0 || f > E) && m({
191
+ [L]: {
192
+ width: f
193
+ }
194
+ });
195
+ }), u.value = !1);
196
+ };
197
+ Y([() => a.value, () => h.value], async () => {
198
+ a.value.some((L) => L == null ? void 0 : L.autoWidth) && await S();
199
+ });
200
+ const O = w(
201
+ () => c.value.map((L) => {
202
+ var E, N;
203
+ return {
204
+ ...L,
205
+ // Override column width with resized ones
206
+ width: ((N = (E = v.value) == null ? void 0 : E[L.field]) == null ? void 0 : N.width) ?? L.width
207
+ };
208
+ })
209
+ ), R = w(
210
+ () => {
211
+ var L;
212
+ return (L = O.value) == null ? void 0 : L.filter(({ visible: E }) => E !== !1).reduce((E, N) => N.width + E, 0);
213
+ }
214
+ ), D = w(
215
+ () => i.value <= R.value
216
+ ), B = w(() => ({
217
+ width: i.value > R.value ? "100%" : "fit-content"
218
+ }));
219
+ return be(() => {
220
+ var E;
221
+ const L = l != null && l.isDataGridTemplate ? Wn : 0;
222
+ K(() => {
223
+ g.value && (i.value = g.value.getBoundingClientRect().width - L);
224
+ const N = Y(
225
+ g,
226
+ () => {
227
+ g.value && (K(() => N()), d = Ne(g.value, ({ width: F }) => {
228
+ i.value = F - L;
229
+ }));
230
+ },
231
+ { immediate: !0 }
232
+ );
233
+ }), (E = document == null ? void 0 : document.fonts) != null && E.ready ? document.fonts.ready.then(() => {
234
+ S();
235
+ }) : S();
236
+ }), nt(() => {
237
+ d == null || d.disconnect();
238
+ }), sn(() => {
239
+ var L;
240
+ p.value && ((L = Object.keys(p.value)) == null ? void 0 : L.length) > 0 && Object.keys(p.value).forEach((N) => {
241
+ p.value[N] = [];
242
+ });
243
+ }), {
244
+ columnDefs: O,
245
+ gridColumnWidthStyle: B,
246
+ onColumnWidthOverride: m,
247
+ isMeasuringColumnWidths: u,
248
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: D,
249
+ columns: a,
250
+ totalWidthOfAllColumns: R
251
+ };
252
+ }, jn = (s, t, n, e, o) => {
253
+ const l = b(s.value ?? []), a = Re({
254
+ allItemsSelected: !1,
255
+ isIndeterminate: !1
256
+ }), h = w(
257
+ () => n.value.flatMap((c) => {
258
+ var v;
259
+ return [c, ((v = c == null ? void 0 : c.children) == null ? void 0 : v.length) > 0 ? c == null ? void 0 : c.children : []];
260
+ }).flat()
261
+ ), g = () => {
262
+ t(T.SELECT, l.value), t(T.UPDATE_SELECTION, l.value);
263
+ }, _ = (c) => {
264
+ var m, S, O, R, D;
265
+ if (l.value = c, ((m = n.value) == null ? void 0 : m.length) > 0 && ((S = h.value) == null ? void 0 : S.filter((B) => !o(B)).every((B) => l.value.includes(e(B))))) {
266
+ a.allItemsSelected = !0;
267
+ const B = ((O = n.value) == null ? void 0 : O.length) > 0 && n.value.every((L) => l.value.includes(e(L)));
268
+ a.isIndeterminate = !B;
269
+ } else
270
+ a.allItemsSelected = !1, a.isIndeterminate = ((R = l.value) == null ? void 0 : R.length) > 0 && ((D = n.value) == null ? void 0 : D.length) > 0 && n.value.some(
271
+ (B) => {
272
+ var L;
273
+ return l.value.includes(e(B)) || ((L = B == null ? void 0 : B.children) == null ? void 0 : L.some((E) => l.value.includes(e(E))));
274
+ }
275
+ );
276
+ }, p = (c) => {
277
+ K(() => {
278
+ var v, m, S;
279
+ if (a.allItemsSelected = c, c) {
280
+ l.value = (m = (v = h.value) == null ? void 0 : v.filter(
281
+ (R) => !o(R) && ((R == null ? void 0 : R.children) === void 0 || R.children.every((D) => !o(D)))
282
+ )) == null ? void 0 : m.map((R) => e(R));
283
+ const O = ((S = n.value) == null ? void 0 : S.length) > 0 && n.value.every((R) => l.value.includes(e(R)));
284
+ a.isIndeterminate = l.value.length > 0 && !O;
285
+ } else
286
+ l.value = [], a.isIndeterminate = !1;
287
+ g();
288
+ });
289
+ }, u = (c, v) => {
290
+ K(() => {
291
+ var m;
292
+ _(((m = v == null ? void 0 : v.children) == null ? void 0 : m.length) > 0 ? i(c, v) : c), g();
293
+ });
294
+ }, i = (c, v) => {
295
+ var O;
296
+ const m = e(v), S = (O = v.children) == null ? void 0 : O.filter((R) => !o(R)).map((R) => e(R));
297
+ if (c.includes(m)) {
298
+ const R = c;
299
+ return S.forEach((D) => {
300
+ R.includes(D) || R.push(D);
301
+ }), R;
302
+ }
303
+ return c.filter((R) => !S.includes(R));
304
+ }, d = (c, v, m) => {
305
+ K(() => {
306
+ var O, R;
307
+ const S = e(v);
308
+ c.includes(e(m)) ? _(
309
+ !c.includes(S) && ((O = v == null ? void 0 : v.children) != null && O.every((D) => c.includes(e(D)))) ? [...c, S] : c
310
+ ) : _(
311
+ c.includes(S) && !((R = v == null ? void 0 : v.children) != null && R.every((D) => c.includes(e(D)))) ? c.filter((D) => D !== S) : c
312
+ ), g();
313
+ });
314
+ };
315
+ return Y(
316
+ () => s.value,
317
+ () => {
318
+ _(s.value ?? []);
319
+ },
320
+ { immediate: !0 }
321
+ ), Y(
322
+ () => n.value,
323
+ () => {
324
+ const c = n.value.filter((v) => l.value.includes(e(v))).flatMap(
325
+ (v) => {
326
+ var m;
327
+ return ((m = v == null ? void 0 : v.children) == null ? void 0 : m.length) > 0 ? v.children.map((S) => e(S)).filter((S) => !l.value.includes(S)) : [];
328
+ }
329
+ );
330
+ _([...l.value, ...c]), g();
331
+ }
332
+ ), { onAllRowSelect: p, onRowSelect: u, onNestedRowSelect: d, allItemsSelectedState: a, selectedItems: l };
333
+ }, qn = (s, t, n) => ({ isSorting: (a) => s.value.some((h) => h.field === a), getSortingDirection: (a) => {
334
+ var h;
335
+ return (h = s.value.find((g) => g.field === a)) == null ? void 0 : h.direction;
336
+ }, sortByColumnField: (a) => {
337
+ var _;
338
+ if (!t.value.some((p) => p.field === a && p.sortable))
339
+ return;
340
+ const g = [{
341
+ field: a,
342
+ direction: ((_ = s.value.find((p) => p.field === a)) == null ? void 0 : _.direction) === ae.ASCENDING ? ae.DESCENDING : ae.ASCENDING
343
+ }];
344
+ n("sort", g);
345
+ } });
346
+ var j = ((s) => (s[s.ARROW_DOWN = te.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = te.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = te.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = te.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = te.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = te.PAGE_DOWN] = "PAGE_DOWN", s[s.END = te.END] = "END", s[s.HOME = te.HOME] = "HOME", s))(j || {});
347
+ const Yn = (s, t, n) => {
348
+ const e = w(() => {
349
+ const d = t.value.filter(({ visible: c }) => c !== !1);
350
+ return n.value ? d.length + 1 : d.length;
351
+ }), o = w(
352
+ () => [...Object.values(s.value)].flat(1).sort((d, c) => {
353
+ const v = Number(d.getAttribute("data-cellindex")), m = Number(c.getAttribute("data-cellindex"));
354
+ return v > m ? 1 : m > v ? -1 : 0;
355
+ })
356
+ ), l = (d) => Math.floor(d / e.value), a = (d, c, v) => {
357
+ const m = o.value.length - 1, S = e.value - 1, O = l(d), R = d - e.value * O;
358
+ return {
359
+ [j.PAGE_UP]: R,
360
+ [j.PAGE_DOWN]: m - S + R,
361
+ [j.END]: v ? m : e.value * O + S,
362
+ [j.HOME]: v ? 0 : e.value * O
363
+ }[c];
364
+ }, h = (d, c) => {
365
+ const m = {
366
+ [j.ARROW_DOWN]: e.value,
367
+ [j.ARROW_UP]: -e.value,
368
+ [j.ARROW_LEFT]: -1,
369
+ [j.ARROW_RIGHT]: 1
370
+ }[c], S = d + m;
371
+ return S < 0 || S >= o.value.length ? d : S;
372
+ }, g = (d) => [
373
+ j.PAGE_UP,
374
+ j.PAGE_DOWN,
375
+ j.END,
376
+ j.HOME
377
+ ].includes(d), _ = (d, c, v) => {
378
+ const m = o.value.indexOf(d);
379
+ return g(c) ? a(m, c, v) : h(m, c);
380
+ }, p = (d, c, v) => {
381
+ if (!o.value.includes(d))
382
+ return;
383
+ const m = _(d, c, v);
384
+ o.value[m].focus();
385
+ }, u = (d) => d in j;
386
+ return {
387
+ isNavigationKeyCode: u,
388
+ focusOnNextGridcell: p,
389
+ navigationInput: (d) => {
390
+ const { ctrlKey: c, keyCode: v, target: m } = d;
391
+ Object.values(s.value).flat(1).includes(m) && u(v) && p(m, v, c);
392
+ }
393
+ };
394
+ }, Xn = 90, Jn = (s, t, n, e, o) => {
395
+ const l = b(s), a = b(t), h = b(n), g = b(e), _ = w(() => l.value !== "none"), p = w(() => l.value === "automatic"), u = () => {
396
+ o(T.UPDATE_SHOW_MORE);
397
+ };
398
+ return Y(
399
+ () => a.value,
400
+ () => {
401
+ p.value && h.value.offsetHeight / a.value * 100 > Xn && !g.value && u();
402
+ }
403
+ ), { isLazyLoad: _, isInfiniteScroll: p, verticalScrollPosition: a, emitLazyLoadEvent: u };
404
+ }, Kn = (s, t, n) => {
405
+ const e = b(s), o = b(t), l = Re({
406
+ dragging: null,
407
+ dragToLeft: null,
408
+ target: null
409
+ }), a = (d, c = 0) => {
410
+ const v = e.value.findIndex((O) => O.field === d.field), m = v + c;
411
+ if (m < 0 || m > e.value.length - 1)
412
+ return;
413
+ const S = [...e.value];
414
+ S.splice(m, 0, S.splice(v, 1)[0]), n(T.COLUMNS, S), n(T.UPDATE_COLUMNS, S);
415
+ }, h = (d, c) => {
416
+ l.dragging = d, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
417
+ }, g = (d, c) => {
418
+ l.target = d;
419
+ const v = c.currentTarget.getBoundingClientRect(), m = v.left + v.width / 2, S = c.clientX ?? 0;
420
+ l.dragToLeft = S <= m;
421
+ }, _ = (d) => {
422
+ var c, v;
423
+ if (((c = l.dragging) == null ? void 0 : c.field) !== d.field) {
424
+ const m = e.value.findIndex((L) => {
425
+ var E;
426
+ return L.field === ((E = l.dragging) == null ? void 0 : E.field);
427
+ }), S = e.value.findIndex((L) => L.field === d.field), O = l.dragToLeft ? S : S + 1, R = O > m ? O - 1 : O;
428
+ let D = [...e.value];
429
+ D.splice(
430
+ R === -1 ? 0 : R,
431
+ 0,
432
+ D.splice(m, 1)[0]
433
+ );
434
+ const B = e.value.findIndex((L) => !(L != null && L.frozen));
435
+ ((v = l.dragging) == null ? void 0 : v.frozen) !== d.frozen && O !== B && (D = D.map(
436
+ (L) => {
437
+ var E;
438
+ return ((E = l.dragging) == null ? void 0 : E.field) === L.field ? { ...L, frozen: !!(d != null && d.frozen) } : L;
439
+ }
440
+ )), n(T.COLUMNS, D), n(T.UPDATE_COLUMNS, D);
441
+ }
442
+ l.dragging = null, l.target = null;
443
+ }, p = () => {
444
+ l.dragging = null, l.dragToLeft = null, l.target = null;
445
+ }, u = w(() => o.value ? {
446
+ [k.COLUMN_DRAG_START]: (d, c) => h(d, c),
447
+ [k.COLUMN_DRAG_ENTER]: (d, c) => g(d, c),
448
+ [k.COLUMN_DROP]: (d) => _(d),
449
+ [k.COLUMN_DRAG_END]: () => p()
450
+ } : {}), i = w(() => (d) => o.value ? {
451
+ dragenter: (c) => {
452
+ c.preventDefault(), g(d, c);
453
+ },
454
+ drop: () => {
455
+ _(d);
456
+ },
457
+ dragover: (c) => {
458
+ c.preventDefault();
459
+ }
460
+ } : {});
461
+ return {
462
+ // Values
463
+ draggingColumns: l,
464
+ // Methods
465
+ draggingEventsForColumns: u,
466
+ draggingEventsForRowCell: i,
467
+ onMoveColumnByOffset: a
468
+ };
469
+ }, Qn = (s, t) => {
470
+ const n = b(s), e = w(
471
+ () => [...n.value].sort((u, i) => u.frozen === i.frozen ? 0 : u.frozen ? -1 : 1)
472
+ ), o = w(
473
+ () => e.value.filter((u) => u.frozen && u.visible !== !1)
474
+ ), l = w(
475
+ () => e.value.filter((u) => !u.frozen && u.visible !== !1)
476
+ ), a = w(
477
+ () => [
478
+ { columnSet: o.value, id: "frozen", isFrozenColumns: !0 },
479
+ { columnSet: l.value, id: "unfrozen" }
480
+ ].filter(({ columnSet: u }) => u.length)
481
+ ), h = w(
482
+ () => n.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== q).length === 1
483
+ ), g = (u) => t(T.UPDATE_CONDENSED, u), _ = (u) => {
484
+ t(T.COLUMNS, u), t(T.UPDATE_COLUMNS, u);
485
+ };
486
+ return {
487
+ // Values
488
+ columnSets: a,
489
+ isOnlyOneVisibleColumn: h,
490
+ sortedColumns: e,
491
+ // Methods
492
+ onConfigSettingsUpdate: g,
493
+ onConfigSettingsColumnsUpdate: _,
494
+ onConfigSettingsColumnUpdate: (u) => {
495
+ const i = e.value.map(
496
+ (d) => (d == null ? void 0 : d.field) === u.field ? u : d
497
+ );
498
+ _(i);
499
+ }
500
+ };
501
+ }, Ze = (s, t) => {
502
+ const n = b(0);
503
+ let e = null;
504
+ const o = () => {
505
+ s != null && s.value && t.value && (n.value = s.value.offsetHeight);
506
+ };
507
+ return be(() => {
508
+ K(() => {
509
+ const l = Y(
510
+ s,
511
+ () => {
512
+ s != null && s.value && (K(() => l()), e = Ne(s.value, () => {
513
+ o();
514
+ }));
515
+ },
516
+ { immediate: !0 }
517
+ );
518
+ Y(
519
+ t,
520
+ () => {
521
+ t.value ? o() : n.value = 0;
522
+ },
523
+ { immediate: !0 }
524
+ );
525
+ });
526
+ }), nt(() => {
527
+ e == null || e.disconnect();
528
+ }), n;
529
+ }, es = (s, t, n, e, o) => {
530
+ const l = b(0), a = b(!1), h = b(!1);
531
+ Y(
532
+ () => l.value,
533
+ () => {
534
+ s.value.scrollLeft = l.value, t.value.scrollLeft = l.value, a.value = !!l.value, h.value = t.value.scrollWidth - t.value.offsetWidth > l.value;
535
+ }
536
+ ), be(async () => {
537
+ var i, d;
538
+ await K(), ((i = t.value) == null ? void 0 : i.offsetWidth) < ((d = t.value) == null ? void 0 : d.scrollWidth) && (h.value = !0);
539
+ });
540
+ const g = (i) => {
541
+ if (l.value = i.target.scrollLeft, n.value = s.value.scrollHeight - i.target.scrollTop, e != null && e.value) {
542
+ const d = i.target.scrollLeft;
543
+ e.value.scrollLeft !== d && (e.value.scrollLeft = d);
544
+ }
545
+ }, _ = (i) => {
546
+ i.key !== "Tab" && i.key !== "ArrowRight" && i.key !== "ArrowLeft" || (i.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
547
+ s.value.style.overflowX = "auto";
548
+ }));
549
+ }, p = (i) => {
550
+ const d = i.target.scrollLeft;
551
+ s.value.scrollLeft !== d && (s.value.scrollLeft = d);
552
+ }, u = w(() => {
553
+ var i, d, c;
554
+ return {
555
+ "b-data-grid__horizontal-scrollbar--sticky-pagination": ((i = o == null ? void 0 : o.pagination) == null ? void 0 : i.value) && (((d = o == null ? void 0 : o.stickyPagination) == null ? void 0 : d.value) || (o == null ? void 0 : o.isDataGridTemplate)) && !((c = o == null ? void 0 : o.isLazyLoad) != null && c.value)
556
+ };
557
+ });
558
+ return {
559
+ // Values
560
+ scrollLeftPosition: l,
561
+ hasLeftOverflow: a,
562
+ hasRightOverflow: h,
563
+ horizontalScrollbarConditionalClasses: u,
564
+ // Methods
565
+ updateScrollPosition: g,
566
+ updateScrollPositionOnFrozenColumnsNavigation: _,
567
+ syncVirtualScrollerWithBody: p
568
+ };
569
+ }, ts = (s, t, n, e) => {
570
+ const o = b(null), l = w(() => {
571
+ var v, m, S, O;
572
+ if (!o.value || o.value.field === q)
573
+ return {
574
+ hoveredOverColumnField: "",
575
+ isSeparatorOffset: !1,
576
+ noBorderLeft: !1,
577
+ noBorderRight: !1
578
+ };
579
+ const a = (m = (v = s.value.find((R) => R.isFrozenColumns)) == null ? void 0 : v.columnSet) == null ? void 0 : m.filter((R) => R.field !== q), h = s.value.find((R) => !(R != null && R.isFrozenColumns)), g = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, _ = !o.value.frozen && ((S = h == null ? void 0 : h.columnSet) == null ? void 0 : S[0].field) === o.value.field, p = (t.value || n.value) && g, u = (t.value || n.value) && !a && _, i = a && _, d = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, c = n.value && e.value && !o.value.frozen && ((O = h == null ? void 0 : h.columnSet) == null ? void 0 : O[h.columnSet.length - 1].field) === o.value.field;
580
+ return {
581
+ hoveredOverColumnField: o.value.field,
582
+ isSeparatorOffset: c,
583
+ noBorderLeft: !!p || !!u || !!i,
584
+ noBorderRight: !!d || !!c
585
+ };
586
+ });
587
+ return {
588
+ hoveredOverColumn: o,
589
+ hoveredOverColumnState: l
590
+ };
591
+ };
592
+ let je = 0;
593
+ const ns = {
594
+ beforeCreate() {
595
+ this.uuid = je.toString(), je += 1;
596
+ }
597
+ };
598
+ var ss = function() {
599
+ var t = this, n = t._self._c;
600
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { 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" } }), n("path", { attrs: { 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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
601
+ }, os = [], ls = /* @__PURE__ */ H(
602
+ ns,
603
+ ss,
604
+ os,
605
+ !1,
606
+ null,
607
+ null
608
+ );
609
+ const as = ls.exports;
610
+ let qe = 0;
611
+ const is = {
612
+ beforeCreate() {
613
+ this.uuid = qe.toString(), qe += 1;
614
+ }
615
+ };
616
+ var rs = function() {
617
+ var t = this, n = t._self._c;
618
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", 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" } })]);
619
+ }, ds = [], cs = /* @__PURE__ */ H(
620
+ is,
621
+ rs,
622
+ ds,
623
+ !1,
624
+ null,
625
+ null
626
+ );
627
+ const us = cs.exports;
628
+ let Ye = 0;
629
+ const fs = {
630
+ beforeCreate() {
631
+ this.uuid = Ye.toString(), Ye += 1;
632
+ }
633
+ };
634
+ var gs = function() {
635
+ var t = this, n = t._self._c;
636
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
637
+ }, _s = [], vs = /* @__PURE__ */ H(
638
+ fs,
639
+ gs,
640
+ _s,
641
+ !1,
642
+ null,
643
+ null
644
+ );
645
+ const ut = vs.exports;
646
+ let Xe = 0;
647
+ const Cs = {
648
+ beforeCreate() {
649
+ this.uuid = Xe.toString(), Xe += 1;
650
+ }
651
+ };
652
+ var hs = function() {
653
+ var t = this, n = t._self._c;
654
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { 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" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
655
+ }, ms = [], ps = /* @__PURE__ */ H(
656
+ Cs,
657
+ hs,
658
+ ms,
659
+ !1,
660
+ null,
661
+ null
662
+ );
663
+ const Ss = ps.exports;
664
+ let Je = 0;
665
+ const Ls = {
666
+ beforeCreate() {
667
+ this.uuid = Je.toString(), Je += 1;
668
+ }
669
+ };
670
+ var ws = function() {
671
+ var t = this, n = t._self._c;
672
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { 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" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
673
+ }, Es = [], Rs = /* @__PURE__ */ H(
674
+ Ls,
675
+ ws,
676
+ Es,
677
+ !1,
678
+ null,
679
+ null
680
+ );
681
+ const ys = Rs.exports;
682
+ let Ke = 0;
683
+ const bs = {
684
+ beforeCreate() {
685
+ this.uuid = Ke.toString(), Ke += 1;
686
+ }
687
+ };
688
+ var Os = function() {
689
+ var t = this, n = t._self._c;
690
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
691
+ }, Ts = [], As = /* @__PURE__ */ H(
692
+ bs,
693
+ Os,
694
+ Ts,
695
+ !1,
696
+ null,
697
+ null
698
+ );
699
+ const Ns = As.exports, Is = {
700
+ "en-US": {
701
+ sortColumn: "Sort {name} column",
702
+ sortColumnInAscendingOrder: "Sort {name} column in ascending order",
703
+ sortColumnInDescendingOrder: "Sort {name} column in descending order",
704
+ freezeColumn: "Freeze column",
705
+ hideColumn: "Hide column",
706
+ moveColumnLeft: "Move column left",
707
+ moveColumnRight: "Move column right",
708
+ selectAll: "Select all",
709
+ selectPage: "Select this page",
710
+ selectionMenu: "Selection menu",
711
+ showColumn: "Show column",
712
+ unfreezeColumn: "Unfreeze column",
713
+ columnActions: "{name} column actions"
714
+ },
715
+ "pt-BR": {
716
+ freezeColumn: "Congelar coluna",
717
+ hideColumn: "Ocultar coluna",
718
+ moveColumnLeft: "Mover coluna para a esquerda",
719
+ moveColumnRight: "Mover coluna para a direita",
720
+ selectAll: "Selecionar tudo",
721
+ unfreezeColumn: "Descongelar coluna"
722
+ },
723
+ "ja-JP": {
724
+ freezeColumn: "列を固定",
725
+ hideColumn: "列を非表示",
726
+ moveColumnLeft: "列を左へ移動",
727
+ moveColumnRight: "列を右へ移動",
728
+ selectAll: "すべて選択",
729
+ unfreezeColumn: "列の固定を解除"
730
+ }
731
+ }, Ds = {
732
+ i18n: { messages: Is },
733
+ name: "data-grid-columns"
734
+ }, Fs = /* @__PURE__ */ Q({
735
+ ...Ds,
736
+ props: {
737
+ /**
738
+ * Column definitions using 'key' to relate to data object.
739
+ */
740
+ columns: {
741
+ type: Array,
742
+ required: !0
743
+ },
744
+ /**
745
+ * Columns being dragged, contains dragging column and a target column
746
+ */
747
+ draggingColumns: {
748
+ type: Object,
749
+ default: void 0
750
+ },
751
+ /**
752
+ * Toggle the columns draggable events.
753
+ */
754
+ hasDraggableColumns: {
755
+ type: Boolean,
756
+ default: !0
757
+ },
758
+ /**
759
+ * If resize is enabled
760
+ */
761
+ hasResizableColumns: {
762
+ type: Boolean,
763
+ default: !0
764
+ },
765
+ /**
766
+ * Signifies if the column panel is enabled.
767
+ */
768
+ hasColumnPanel: {
769
+ type: Boolean,
770
+ default: !1
771
+ },
772
+ /**
773
+ * If set to true, aligns the first column panel to the right of its button.
774
+ */
775
+ hasFirstColumnPanelRightAligned: {
776
+ type: Boolean,
777
+ default: !1
778
+ },
779
+ /**
780
+ * If the data grid has overflow on the left side
781
+ */
782
+ hasLeftOverflow: {
783
+ type: Boolean,
784
+ default: !1
785
+ },
786
+ /**
787
+ * The column hovered over state and whether the hovered over column should show a border right or left.
788
+ */
789
+ hoveredOverColumnState: {
790
+ type: Object,
791
+ required: !0
792
+ },
793
+ /**
794
+ * Toggled to true when the DataGrid has auto width columns and is measuring the
795
+ */
796
+ isMeasuringColumnWidths: {
797
+ type: Boolean,
798
+ default: !1
799
+ },
800
+ /**
801
+ * Used to disable hiding the last visible column.
802
+ */
803
+ isOnlyOneVisibleColumn: {
804
+ type: Boolean,
805
+ default: !1
806
+ },
807
+ /**
808
+ * If these columns are frozen (pinned) columns
809
+ */
810
+ isFrozenColumns: {
811
+ type: Boolean,
812
+ default: !1
813
+ },
814
+ /**
815
+ * Show frozen columns separator
816
+ */
817
+ showFrozenColumnsSeparator: {
818
+ type: Boolean,
819
+ default: !1
820
+ },
821
+ /**
822
+ * The column all items selected state
823
+ */
824
+ allItemsSelectedState: {
825
+ type: Object,
826
+ default: void 0
827
+ },
828
+ /**
829
+ * Determines if the user has enabled row selection
830
+ */
831
+ selectable: {
832
+ type: Boolean,
833
+ default: !1
834
+ },
835
+ /**
836
+ * Adds an extra option when selecting all, to select items in other pages too
837
+ */
838
+ selectableAcrossPages: {
839
+ type: Boolean,
840
+ default: !1
841
+ },
842
+ /**
843
+ * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
844
+ * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
845
+ */
846
+ sortBy: {
847
+ type: Array,
848
+ // NOTE: is an array to allow multi-sorting in the future
849
+ default: () => []
850
+ },
851
+ /**
852
+ * Truncates all data grid column headers
853
+ */
854
+ truncateColumnHeaders: {
855
+ type: Boolean,
856
+ default: !1
857
+ }
858
+ },
859
+ emits: ["sort", "column-hover"],
860
+ setup(s, { expose: t, emit: n }) {
861
+ const e = s, o = 100, { t: l } = ie(), { columns: a, sortBy: h } = ye(e), g = b({}), _ = b({}), p = b(), u = b(), i = (r) => n(k.SELECT_ALL_ROWS, r), d = (r) => r.field === q, c = w(() => [
862
+ {
863
+ text: l("selectPage"),
864
+ handler: () => i(!0)
865
+ },
866
+ {
867
+ text: l("selectAll"),
868
+ handler: () => n(k.SELECT_ALL_ACROSS_PAGES)
869
+ }
870
+ ]), { startResize: v, isResizing: m, columnHoverEventToEmitAfterResizing: S } = Mn(a, n), { isSorting: O, getSortingDirection: R, sortByColumnField: D } = qn(h, a, n), B = (r) => {
871
+ var oe;
872
+ if (!r.sortable)
873
+ return null;
874
+ const P = (oe = e.sortBy.find(({ field: le }) => le === r.field)) == null ? void 0 : oe.direction;
875
+ return P ? {
876
+ [ae.ASCENDING]: he.ASCENDING,
877
+ [ae.DESCENDING]: he.DESCENDING
878
+ }[P] : he.NONE;
879
+ }, L = w(() => (r) => e.hasDraggableColumns ? {
880
+ dragstart: (P) => {
881
+ n(k.COLUMN_DRAG_START, r, P);
882
+ },
883
+ dragover: (P) => {
884
+ P.preventDefault();
885
+ },
886
+ dragenter: (P) => {
887
+ P.preventDefault(), n(k.COLUMN_DRAG_ENTER, r, P);
888
+ },
889
+ drop: () => {
890
+ n(k.COLUMN_DROP, r);
891
+ },
892
+ dragend: () => {
893
+ n(k.COLUMN_DRAG_END);
894
+ }
895
+ } : {}), E = w(() => (r) => [
896
+ {
897
+ text: l("moveColumnLeft"),
898
+ handler: () => n(k.COLUMN_MOVE, r, -1),
899
+ icon: yn,
900
+ disabled: e.columns[0].field === r.field
901
+ },
902
+ {
903
+ text: l("moveColumnRight"),
904
+ handler: () => n(k.COLUMN_MOVE, r, 1),
905
+ icon: us,
906
+ disabled: e.columns[e.columns.length - 1].field === r.field
907
+ },
908
+ {
909
+ text: r != null && r.frozen ? l("unfreezeColumn") : l("freezeColumn"),
910
+ handler: () => n(k.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
911
+ icon: ut
912
+ },
913
+ {
914
+ text: (r == null ? void 0 : r.visible) !== !1 ? l("hideColumn") : l("showColumn"),
915
+ handler: () => {
916
+ n(k.COLUMN_UPDATE, {
917
+ ...r,
918
+ visible: (r == null ? void 0 : r.visible) === !1
919
+ });
920
+ },
921
+ icon: (r == null ? void 0 : r.visible) !== !1 ? bn : On,
922
+ disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && e.isOnlyOneVisibleColumn
923
+ }
924
+ ]), N = (r) => {
925
+ p.value = r.field, u.value && clearTimeout(u.value);
926
+ }, F = () => {
927
+ const r = setTimeout(() => {
928
+ p.value = "";
929
+ }, o);
930
+ u.value = r;
931
+ }, f = (r) => {
932
+ let P = {
933
+ mouseenter: () => {
934
+ N(r), m.value ? S.value = r : n("column-hover", r);
935
+ },
936
+ mouseleave: () => {
937
+ F(), m.value ? S.value = null : n("column-hover", null);
938
+ },
939
+ focus: () => N(r)
940
+ };
941
+ return d(r) || (P = {
942
+ ...P,
943
+ ...L.value(r)
944
+ }), P;
945
+ }, M = (r) => r.infoIconTooltip || r.sortable || e.hasColumnPanel, I = (r, P) => {
946
+ var Z;
947
+ ((Z = g.value) == null ? void 0 : Z[P]) === void 0 && (g.value = { ...g.value, [P]: null }), r !== null && (g.value[P] = r);
948
+ }, x = w(() => {
949
+ var P;
950
+ const r = {
951
+ "b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
952
+ };
953
+ return (P = a.value[0]) != null && P.frozen ? {
954
+ ...r,
955
+ "b-data-grid-columns--frozen": !0,
956
+ "b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
957
+ "b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
958
+ } : {
959
+ ...r,
960
+ "b-data-grid-columns--unfrozen": !0
961
+ };
962
+ }), U = (r, P) => r && P === 0 ? Ge.BOTTOM_START : Ge.BOTTOM_END, G = (r, P) => {
963
+ var Z, oe, le, de, fe, W, re, ge, ce, _e;
964
+ return {
965
+ "b-data-grid-columns__column--column-hovered": r.field === e.hoveredOverColumnState.hoveredOverColumnField,
966
+ "b-data-grid-columns__column--column-hovered-no-border-left": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
967
+ "b-data-grid-columns__column--column-hovered-no-border-right": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
968
+ "b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && P === a.value.length - 1,
969
+ "b-data-grid-columns__column--sortable": r.sortable,
970
+ "b-data-grid-columns__column--padding-left-unset": ((Z = r == null ? void 0 : r.padding) == null ? void 0 : Z.left) === !1,
971
+ "b-data-grid-columns__column--padding-right-unset": ((oe = r == null ? void 0 : r.padding) == null ? void 0 : oe.right) === !1,
972
+ "b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
973
+ "b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
974
+ "b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((de = (le = e.draggingColumns) == null ? void 0 : le.dragging) == null ? void 0 : de.field),
975
+ "b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((W = (fe = e.draggingColumns) == null ? void 0 : fe.target) == null ? void 0 : W.field) && ((re = e.draggingColumns) == null ? void 0 : re.dragToLeft),
976
+ "b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((ce = (ge = e.draggingColumns) == null ? void 0 : ge.target) == null ? void 0 : ce.field) && !((_e = e.draggingColumns) != null && _e.dragToLeft),
977
+ "b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || e.hasColumnPanel && p.value === r.field || e.selectableAcrossPages
978
+ };
979
+ }, C = (r) => ({
980
+ "b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
981
+ }), y = (r) => ({
982
+ "b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
983
+ }), z = (r) => ({
984
+ "b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
985
+ "b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === r.field && e.hoveredOverColumnState.isSeparatorOffset
986
+ }), X = w(() => ({
987
+ "b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
988
+ }));
989
+ return t({
990
+ columnHeaderRefs: g
991
+ }), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: h, columnHeaderRefs: g, contextMenuRef: _, hoveredColumnField: p, closingTimeOutId: u, onAllRowSelect: i, isActionsColumn: d, selectAllMenu: c, startResize: v, isResizing: m, columnHoverEventToEmitAfterResizing: S, isSorting: O, getSortingDirection: R, sortByColumnField: D, getSortingColumnDirection: B, draggingEventsForColumn: L, contextualMenuData: E, showContextualMenu: N, hideContextualMenu: F, dataGridColumnEvents: f, hasColumnActions: M, registerColumnsRefs: I, conditionalColumnsClasses: x, computeMenuPosition: U, conditionalColumnClasses: G, conditionalColumnHeaderAndActionsClasses: C, conditionalColumnActionsClasses: y, conditionalColumnSeparatorClasses: z, conditionalColumnHeaderClasses: X, BentoCheckbox: rt, BentoDatagridSortDirection: ae, BentoTypography: me, BentoInfoIcon: wn, DatagridColumnsEvent: k, BentoMenu: dt, BentoToggleButton: Ie, ArrowUpAndDownSortIcon: as, SortAscendingIcon: Ss, SortDescendingIcon: ys, TriangleDown: Ns };
992
+ }
993
+ });
994
+ var xs = function() {
995
+ var t = this, n = t._self._c, e = t._self._setupProxy;
996
+ return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o, l) {
997
+ return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(e.BentoCheckbox, { attrs: { "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
998
+ return [n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu") } })];
999
+ }, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
1000
+ return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
1001
+ }, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(a) {
1002
+ return e.sortByColumnField(o.field);
1003
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1004
+ return [e.getSortingDirection(o.field) ? e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: o.label }) } }) : e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: o.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: o.label }) } })];
1005
+ }, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[o.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
1006
+ return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
1007
+ }, close: function(a) {
1008
+ return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
1009
+ } } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(a) {
1010
+ return e.startResize(t.hasResizableColumns, o.field, a);
1011
+ }, click: function(a) {
1012
+ a.stopPropagation();
1013
+ } } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
1014
+ }), 0);
1015
+ }, Ms = [], Ps = /* @__PURE__ */ H(
1016
+ Fs,
1017
+ xs,
1018
+ Ms,
1019
+ !1,
1020
+ null,
1021
+ "43622155"
1022
+ );
1023
+ const Bs = Ps.exports;
1024
+ var ne = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(ne || {});
1025
+ let Qe = 0;
1026
+ const zs = {
1027
+ beforeCreate() {
1028
+ this.uuid = Qe.toString(), Qe += 1;
1029
+ }
1030
+ };
1031
+ var $s = function() {
1032
+ var t = this, n = t._self._c;
1033
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { 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" } }), n("path", { attrs: { 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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
1034
+ }, Us = [], ks = /* @__PURE__ */ H(
1035
+ zs,
1036
+ $s,
1037
+ Us,
1038
+ !1,
1039
+ null,
1040
+ null
1041
+ );
1042
+ const Gs = ks.exports, Ws = {
1043
+ "en-US": {
1044
+ toggleColumnVisibility: "Toggle {label} column visibility",
1045
+ toggleColumnFreeze: "Toggle {label} column freeze"
1046
+ }
1047
+ }, Hs = Q({
1048
+ i18n: { messages: Ws },
1049
+ name: "bento-data-grid",
1050
+ components: {
1051
+ BentoFreezeIcon: ut,
1052
+ BentoToggle: it
1053
+ },
1054
+ props: {
1055
+ /**
1056
+ * Is column visibitlity toggle disabled
1057
+ */
1058
+ isColumnVisibilityToggleDisabled: {
1059
+ type: Boolean,
1060
+ required: !0
1061
+ },
1062
+ /**
1063
+ * Column definition
1064
+ */
1065
+ column: {
1066
+ type: Object,
1067
+ required: !0
1068
+ }
1069
+ },
1070
+ emits: ["visible-column", "updated-column"],
1071
+ setup(s, { emit: t }) {
1072
+ const { t: n } = ie(), e = b(!1), o = w(() => {
1073
+ var u;
1074
+ return (u = s.column) == null ? void 0 : u.frozen;
1075
+ }), l = w(() => {
1076
+ var u;
1077
+ return ((u = s.column) == null ? void 0 : u.visible) !== !1;
1078
+ }), a = () => {
1079
+ t("visible-column", { ...s.column, visible: !l.value });
1080
+ }, h = () => {
1081
+ t("updated-column", { ...s.column, frozen: !o.value });
1082
+ }, g = () => {
1083
+ o.value || (e.value = !0);
1084
+ }, _ = () => {
1085
+ o.value || (e.value = !1);
1086
+ }, p = w(() => ({
1087
+ "b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
1088
+ }));
1089
+ return {
1090
+ // Values
1091
+ isFreezeIconOptionShown: e,
1092
+ isColumnFrozen: o,
1093
+ freezeIconConditionalClasses: p,
1094
+ isColumnVisible: l,
1095
+ // Methods
1096
+ toggleColumnVisibility: a,
1097
+ showFreezeIcon: g,
1098
+ hideFreezeIcon: _,
1099
+ toggleColumnFreeze: h,
1100
+ // Translations
1101
+ t: n
1102
+ };
1103
+ }
1104
+ });
1105
+ var Vs = function() {
1106
+ var t = this, n = t._self._c;
1107
+ return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: t.isColumnFrozen || t.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
1108
+ return t.toggleColumnFreeze.apply(null, arguments);
1109
+ } } })], 1);
1110
+ }, Zs = [], js = /* @__PURE__ */ H(
1111
+ Hs,
1112
+ Vs,
1113
+ Zs,
1114
+ !1,
1115
+ null,
1116
+ "eae7733f"
1117
+ );
1118
+ const qs = js.exports, Ys = {
1119
+ "en-US": {
1120
+ closeConfigSettingsPanel: "Close configuration settings panel",
1121
+ closeSearch: "Close search",
1122
+ columns: "Columns",
1123
+ columnVisibilitySearchFilter: "Column visibility search filter",
1124
+ condensed: "Condensed",
1125
+ condensedToggle: "Condensed toggle",
1126
+ configSettingsPanel: "Configuration settings Panel",
1127
+ displayOptions: "Display options",
1128
+ noColumnsMatch: "No columns match this search",
1129
+ search: "Search",
1130
+ showAllColumns: "Show all columns ({numberOfColumns})",
1131
+ size: "Size",
1132
+ toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility"
1133
+ },
1134
+ "pt-BR": {
1135
+ condensed: "Condensado",
1136
+ search: "Buscar",
1137
+ size: "Tamanho"
1138
+ },
1139
+ "ja-JP": {
1140
+ condensed: "凝縮",
1141
+ search: "検索",
1142
+ size: "サイズ"
1143
+ }
1144
+ }, Xs = Q({
1145
+ i18n: { messages: Ys },
1146
+ name: "bento-data-grid",
1147
+ components: {
1148
+ BentoButton: at,
1149
+ BentoCrossIcon: ot,
1150
+ BentoPopover: hn,
1151
+ BentoSettingsIcon: Gs,
1152
+ BentoToggleButton: Ie,
1153
+ BentoDataGridConfigSettingsConfigRow: qs,
1154
+ BentoSearchBar: mn,
1155
+ BentoSearchIcon: Sn,
1156
+ BentoToggle: it,
1157
+ BentoTypography: me
1158
+ },
1159
+ directives: { BentoClickOutsideDirective: Ln },
1160
+ props: {
1161
+ /**
1162
+ * Column definitions
1163
+ */
1164
+ columns: {
1165
+ type: Array,
1166
+ required: !0
1167
+ },
1168
+ /**
1169
+ * Sets the row cells to the condensed padding state.
1170
+ */
1171
+ condensed: {
1172
+ type: Boolean,
1173
+ default: !1
1174
+ }
1175
+ },
1176
+ emits: [ne.CONFIG_SETTINGS, ne.UPDATE_COLUMNS],
1177
+ setup(s, { emit: t }) {
1178
+ const { t: n } = ie(), e = b(null), o = we("data-grid-config-settings-popover"), l = b(null), a = b(!1), h = b(!0), g = b(null), _ = b(""), p = st(s, "columns"), u = b(!1), i = pn(_, p), d = () => {
1179
+ _.value = "";
1180
+ }, c = w(
1181
+ () => !s.columns.some((E) => E.visible === !1 && !E.mandatory)
1182
+ ), v = () => {
1183
+ d(), u.value = !u.value, u.value ? K(() => {
1184
+ var E;
1185
+ return (E = l.value.$refs.bentoInputField) == null ? void 0 : E.focusInput();
1186
+ }) : K(() => {
1187
+ var E, N;
1188
+ return (N = (E = g == null ? void 0 : g.value) == null ? void 0 : E.$el) == null ? void 0 : N.focus();
1189
+ }), h.value = c.value;
1190
+ }, m = (E) => E.mandatory ?? !1, S = (E) => {
1191
+ const N = s.columns.map((F) => ({
1192
+ ...F,
1193
+ visible: E.field === F.field ? E.visible : F.visible
1194
+ }));
1195
+ t(ne.UPDATE_COLUMNS, N);
1196
+ }, O = (E) => {
1197
+ E ? t(
1198
+ ne.UPDATE_COLUMNS,
1199
+ s.columns.map((N) => ({ ...N, visible: !0 }))
1200
+ ) : t(
1201
+ ne.UPDATE_COLUMNS,
1202
+ s.columns.map((N) => ({ ...N, visible: (N == null ? void 0 : N.mandatory) === !0 }))
1203
+ );
1204
+ }, R = (E) => {
1205
+ const N = s.columns.map((F) => ({
1206
+ ...F,
1207
+ frozen: E.field === F.field ? !!(E != null && E.frozen) : !!(F != null && F.frozen)
1208
+ }));
1209
+ t(ne.UPDATE_COLUMNS, N);
1210
+ }, D = (E) => {
1211
+ a.value = E, h.value = c.value;
1212
+ };
1213
+ return {
1214
+ // Values
1215
+ configSettingsButtonRef: e,
1216
+ popoverId: o,
1217
+ isConfigSettingsPanelOpen: a,
1218
+ allColumnsVisbilityToggleState: h,
1219
+ filteredColumnVisibilityColumns: i,
1220
+ searchTerm: _,
1221
+ isColumnVisibilityFilterShown: u,
1222
+ searchBarRef: l,
1223
+ searchButtonRef: g,
1224
+ DATAGRID_ACTIONS_COLUMN_FIELD_NAME: q,
1225
+ // Methods
1226
+ setConfigSettingsPanelVisibility: D,
1227
+ emitCondensedToggle: (E) => t(ne.CONFIG_SETTINGS, E),
1228
+ toggleAllColumnVisibility: O,
1229
+ clearAction: d,
1230
+ toggleColumnFilter: v,
1231
+ emitVisibleColumns: S,
1232
+ emitFrozenColumns: R,
1233
+ onClickOutside: () => D(!1),
1234
+ isColumnVisibilityToggleDisabled: m,
1235
+ // Translations
1236
+ t: n
1237
+ };
1238
+ }
1239
+ });
1240
+ var Js = function() {
1241
+ var t = this, n = t._self._c;
1242
+ return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
1243
+ return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
1244
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1245
+ return [n("bento-settings-icon", { attrs: { "svg-title": t.t("toggleConfigSettingsPanelVisibility") } })];
1246
+ }, proxy: !0 }]) })], 1)]), t.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: t.popoverId, open: t.isConfigSettingsPanelOpen, "aria-label": t.t("configSettingsPanel"), "target-element": t.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [t._v(" " + t._s(t.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(e) {
1247
+ return t.setConfigSettingsPanelVisibility(!1);
1248
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1249
+ return [n("bento-cross-icon", { attrs: { "svg-title": t.t("closeConfigSettingsPanel") } })];
1250
+ }, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("condensedToggle"), value: t.condensed }, on: { input: t.emitCondensedToggle } }, [t._v(" " + t._s(t.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("columns")) + " ")]), t.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1251
+ return [n("bento-cross-icon")];
1252
+ }, proxy: !0 }], null, !1, 2651303519) }, [t._v(" " + t._s(t.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1253
+ return [n("bento-search-icon")];
1254
+ }, proxy: !0 }], null, !1, 2341044271) }, [t._v(t._s(t.t("search")))])], 1), t.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: t.searchTerm, "input-field-aria-label": t.t("columnVisibilitySearchFilter").toString() }, on: { input: function(e) {
1255
+ t.searchTerm = e;
1256
+ }, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
1257
+ return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
1258
+ }), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
1259
+ }, Ks = [], Qs = /* @__PURE__ */ H(
1260
+ Xs,
1261
+ Js,
1262
+ Ks,
1263
+ !1,
1264
+ null,
1265
+ "e7f0a261"
1266
+ );
1267
+ const eo = Qs.exports, ft = {
1268
+ "en-US": {
1269
+ gettingYourData: "Getting your data",
1270
+ loading: "Loading",
1271
+ selectRow: "Select row",
1272
+ showMore: "Show more",
1273
+ sortAscending: "{field} sort ascending",
1274
+ sortDescending: "{field} sort descending",
1275
+ sortInactive: "{field} sort inactive"
1276
+ },
1277
+ "pt-BR": {
1278
+ loading: "Carregando",
1279
+ showMore: "Mostrar mais"
1280
+ },
1281
+ "ja-JP": {
1282
+ loading: "読み込み中",
1283
+ showMore: "表示内容を増やす"
1284
+ }
1285
+ }, to = {
1286
+ i18n: { messages: ft }
1287
+ }, no = /* @__PURE__ */ Q({
1288
+ ...to,
1289
+ __name: "data-grid-lazy-load",
1290
+ props: {
1291
+ loading: { type: Boolean },
1292
+ isInfiniteScroll: { type: Boolean }
1293
+ },
1294
+ setup(s) {
1295
+ const { t } = ie();
1296
+ return { __sfc: !0, t, BentoLoadingButton: Tn, BentoLoadingButtonState: An, BentoLoadingIndicator: Te, BentoDatagridEvent: T };
1297
+ }
1298
+ });
1299
+ var so = function() {
1300
+ var t = this, n = t._self._c, e = t._self._setupProxy;
1301
+ return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
1302
+ return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
1303
+ } } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
1304
+ }, oo = [], lo = /* @__PURE__ */ H(
1305
+ no,
1306
+ so,
1307
+ oo,
1308
+ !1,
1309
+ null,
1310
+ "fd9b8204"
1311
+ );
1312
+ const ao = lo.exports;
1313
+ let et = 0;
1314
+ const io = {
1315
+ beforeCreate() {
1316
+ this.uuid = et.toString(), et += 1;
1317
+ }
1318
+ };
1319
+ var ro = function() {
1320
+ var t = this, n = t._self._c;
1321
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z" } })]);
1322
+ }, co = [], uo = /* @__PURE__ */ H(
1323
+ io,
1324
+ ro,
1325
+ co,
1326
+ !1,
1327
+ null,
1328
+ null
1329
+ );
1330
+ const fo = uo.exports, go = {
1331
+ "en-US": {
1332
+ copy: "Copy",
1333
+ edit: "Edit",
1334
+ open: "Open",
1335
+ more: "More"
1336
+ },
1337
+ "pt-BR": {
1338
+ copy: "Copiar",
1339
+ edit: "Editar",
1340
+ open: "Abrir",
1341
+ more: "Mais"
1342
+ },
1343
+ "ja-JP": {
1344
+ copy: "コピー",
1345
+ edit: "編集",
1346
+ open: "を開く",
1347
+ more: "表示を増やす"
1348
+ }
1349
+ }, _o = {
1350
+ i18n: { messages: go },
1351
+ name: "data-grid-cell-actions"
1352
+ }, vo = /* @__PURE__ */ Q({
1353
+ ..._o,
1354
+ props: {
1355
+ /**
1356
+ * Column definitions using 'key' to relate to data object.
1357
+ */
1358
+ cellActions: {
1359
+ type: Array,
1360
+ required: !0,
1361
+ validator: (s) => (s == null ? void 0 : s.length) <= 2
1362
+ },
1363
+ /**
1364
+ * The column field key.
1365
+ */
1366
+ columnKey: {
1367
+ type: String,
1368
+ required: !0
1369
+ },
1370
+ /**
1371
+ * The row data item object.
1372
+ */
1373
+ rowDataItem: {
1374
+ type: Object,
1375
+ required: !0
1376
+ }
1377
+ },
1378
+ emits: ["menu-item-click-close"],
1379
+ setup(s, { emit: t }) {
1380
+ const n = s, { t: e } = ie(), o = w(() => {
1381
+ var i;
1382
+ return ((i = n.cellActions) == null ? void 0 : i.length) > 2 && lt(
1383
+ "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
1384
+ ), n.cellActions.slice(0, 2);
1385
+ }), l = w(() => (i, d) => {
1386
+ if (!(!d && i.isShort || d && !i.isShort))
1387
+ switch (i.variant) {
1388
+ case "copy":
1389
+ return e("copy");
1390
+ case "edit":
1391
+ return e("edit");
1392
+ case "open":
1393
+ return e("open");
1394
+ case "more":
1395
+ return e("more");
1396
+ default:
1397
+ return i.title;
1398
+ }
1399
+ }), a = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
1400
+ click: () => i.event(n.rowDataItem, n.columnKey)
1401
+ } : {}, h = (i) => ({
1402
+ ...i,
1403
+ handler: () => {
1404
+ i != null && i.handler && typeof i.handler == "function" && (i == null || i.handler()), i != null && i.event && typeof i.event == "function" && (i == null || i.event(n.rowDataItem, n.columnKey));
1405
+ }
1406
+ }), g = (i) => i.map((d) => {
1407
+ const c = d;
1408
+ return c != null && c.items && (c.items = g(c.items)), { ...h(c) };
1409
+ });
1410
+ return { __sfc: !0, t: e, props: n, emit: t, limitedRowCellActionsProps: o, getButtonTitle: l, generateButtonEvents: a, generateMenuEvents: h, transformMenuEvents: g, getCopyText: (i) => {
1411
+ var d, c;
1412
+ return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : (c = (d = n.rowDataItem) == null ? void 0 : d[n.columnKey]) == null ? void 0 : c.toString();
1413
+ }, shouldShowMenuIconRight: (i) => i.iconRight || ((i == null ? void 0 : i.variant) === "more" || (i == null ? void 0 : i.variant) === "open") && !i.isShort, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton: at, BentoMenu: dt, Copy: Dn, Edit1Icon: fo, ExternalLinkIcon: In, OptionsVerticalIcon: En };
1414
+ }
1415
+ });
1416
+ var Co = function() {
1417
+ var t = this, n = t._self._c, e = t._self._setupProxy;
1418
+ return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, t._l(e.limitedRowCellActionsProps, function(o, l) {
1419
+ return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
1420
+ condensed: !0,
1421
+ variant: "secondary",
1422
+ disabled: o.disabled
1423
+ }, teleport: "" }, on: { "menu-item-click": function(a) {
1424
+ return e.emit("menu-item-click-close");
1425
+ } }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
1426
+ return [(o == null ? void 0 : o.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(o, !0) } })];
1427
+ }, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
1428
+ return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
1429
+ }, proxy: !0 }, e.shouldShowMenuIconRight(o) ? { key: "iconRight", fn: function() {
1430
+ return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
1431
+ }, proxy: !0 } : null], null, !0) }) : o.variant === "copy" ? n(e.Copy, { attrs: { text: e.getCopyText(o), "button-text": e.getButtonTitle(o), button: {
1432
+ condensed: !0,
1433
+ variant: "secondary"
1434
+ } } }) : n(e.BentoButton, t._g({ attrs: { condensed: "", variant: "secondary", critical: o.critical, disabled: o.disabled, link: o.link }, scopedSlots: t._u([o.iconLeft || o.variant === "edit" ? { key: "iconLeft", fn: function() {
1435
+ return [(o == null ? void 0 : o.variant) === "edit" ? n(e.Edit1Icon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": o.title } })];
1436
+ }, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
1437
+ return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
1438
+ }, proxy: !0 }, o.iconRight || o.variant === "open" ? { key: "iconRight", fn: function() {
1439
+ return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
1440
+ }, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
1441
+ }), 0)])]);
1442
+ }, ho = [], mo = /* @__PURE__ */ H(
1443
+ vo,
1444
+ Co,
1445
+ ho,
1446
+ !1,
1447
+ null,
1448
+ "a6bb216c"
1449
+ );
1450
+ const po = mo.exports;
1451
+ var V = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s))(V || {});
1452
+ const So = {
1453
+ "en-US": {
1454
+ collapseNestedContent: "Collapse nested content",
1455
+ expandNestedContent: "Expand nested content",
1456
+ selectRow: "Select row"
1457
+ }
1458
+ }, Lo = {
1459
+ i18n: { messages: So },
1460
+ name: "data-grid-cell"
1461
+ }, wo = /* @__PURE__ */ Q({
1462
+ ...Lo,
1463
+ props: {
1464
+ draggingEventsForRowCell: {
1465
+ type: Function,
1466
+ required: !0
1467
+ },
1468
+ /**
1469
+ * The columns sets including
1470
+ */
1471
+ columnSets: {
1472
+ type: Array,
1473
+ required: !0
1474
+ },
1475
+ /**
1476
+ * The columns set we are iterating over
1477
+ */
1478
+ column: {
1479
+ type: Object,
1480
+ required: !0
1481
+ },
1482
+ colIndex: {
1483
+ type: Number,
1484
+ required: !0
1485
+ },
1486
+ columnSetIndex: {
1487
+ type: Number,
1488
+ required: !0
1489
+ },
1490
+ /**
1491
+ * Sets the row cells to the condensed padding state.
1492
+ */
1493
+ condensed: {
1494
+ type: Boolean,
1495
+ default: !1
1496
+ },
1497
+ /**
1498
+ * Columns being dragged, contains dragging column and a target column
1499
+ */
1500
+ draggingColumns: {
1501
+ type: Object,
1502
+ default: void 0
1503
+ },
1504
+ /**
1505
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
1506
+ * This is used selecting and performance reasons and must exist in each data item.
1507
+ */
1508
+ getDataItemId: {
1509
+ type: Function,
1510
+ default: (s) => s.id
1511
+ },
1512
+ /**
1513
+ * The column hovered over state and whether the hovered over column should show a border right or left.
1514
+ */
1515
+ hoveredOverColumnState: {
1516
+ type: Object,
1517
+ required: !0
1518
+ },
1519
+ /**
1520
+ * A customisable method to determine if a row is not selectable.
1521
+ * The default is that every row is selectable.
1522
+ */
1523
+ isDataItemDisabled: {
1524
+ type: Function,
1525
+ default: () => !1
1526
+ },
1527
+ isMeasuringColumnWidths: {
1528
+ type: Boolean,
1529
+ default: !1
1530
+ },
1531
+ /**
1532
+ * Determines if the nested content is visible.
1533
+ */
1534
+ isNestedContentExpanded: {
1535
+ type: Boolean,
1536
+ default: !1
1537
+ },
1538
+ /**
1539
+ * Determines if the nest content slot is enabled for this data row.
1540
+ */
1541
+ nestedContent: {
1542
+ type: Boolean,
1543
+ default: !1
1544
+ },
1545
+ /**
1546
+ * The IDs of the rows this cell controls to show / hide them.
1547
+ */
1548
+ nestedRowsElementIds: {
1549
+ type: Array,
1550
+ default: () => []
1551
+ },
1552
+ /**
1553
+ * The row data object
1554
+ */
1555
+ rowData: {
1556
+ type: Object,
1557
+ required: !0
1558
+ },
1559
+ rowIndex: {
1560
+ type: Number,
1561
+ required: !0
1562
+ },
1563
+ /**
1564
+ * The row selection checkbox indeterminate state.
1565
+ */
1566
+ selectionIsIndeterminate: {
1567
+ type: Boolean,
1568
+ default: !1
1569
+ },
1570
+ /**
1571
+ * Determines if the row selection is enabled.
1572
+ */
1573
+ selectable: {
1574
+ type: Boolean,
1575
+ default: !1
1576
+ },
1577
+ selectedItems: {
1578
+ type: Array,
1579
+ required: !0
1580
+ }
1581
+ },
1582
+ emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
1583
+ setup(s, { expose: t, emit: n }) {
1584
+ const e = s, o = Oe(), l = Ae(o), { t: a } = ie(), h = b(null), g = b(null), _ = b(!1), p = b([]), u = w(() => {
1585
+ var f;
1586
+ return !!((f = e.rowData) != null && f[e.column.field]);
1587
+ }), i = w(
1588
+ () => {
1589
+ var f;
1590
+ return e.column.field === q && ((f = e.nestedRowsElementIds) == null ? void 0 : f.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
1591
+ }
1592
+ ), d = w(
1593
+ () => e.column.field === q && !e.selectable && !e.nestedContent
1594
+ ), c = (f, M) => (f == null ? void 0 : f.overflow) === Ee.ELLIPSIS ? `${M}` : void 0, v = (f) => f ?? "-", m = (f) => e.columnSets.slice(0, f).reduce((M, { columnSet: I }) => M + I.length, 0), S = (f, M) => f + m(M), O = (f, M, I) => m() * f + S(M, I), R = (f) => {
1595
+ var M;
1596
+ (f === null || !h.value.contains(f) && !((M = p.value) != null && M.map((I) => I.value).some((I) => I === f || (I == null ? void 0 : I.contains(f))))) && (_.value = !1);
1597
+ }, D = () => {
1598
+ _.value = !1;
1599
+ }, B = (f) => {
1600
+ const I = { ...{
1601
+ ...e.draggingEventsForRowCell(f)
1602
+ } };
1603
+ return f.frozen && (I.keyup = (x) => n("on-frozen-columns-key-press", x), I.keydown = (x) => n("on-frozen-columns-key-press", x)), f.cellActions && (I.mouseenter = () => {
1604
+ _.value = !0;
1605
+ }, I.mouseleave = (x) => {
1606
+ _.value = !1, R(x == null ? void 0 : x.relatedTarget);
1607
+ }, I.mouseleave = (x) => {
1608
+ R(x == null ? void 0 : x.relatedTarget);
1609
+ }, I.focus = (x) => {
1610
+ _.value = !0;
1611
+ }, I.focusout = (x) => {
1612
+ R(x == null ? void 0 : x.relatedTarget);
1613
+ }), I;
1614
+ }, L = () => {
1615
+ n("nested-content-toggled");
1616
+ };
1617
+ Y(
1618
+ () => _.value,
1619
+ () => {
1620
+ _.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
1621
+ }
1622
+ );
1623
+ const E = (f) => {
1624
+ p.value.push(f);
1625
+ }, N = (f) => {
1626
+ h.value.contains(f == null ? void 0 : f.relatedTarget) || (_.value = !1);
1627
+ };
1628
+ on(Rn, {
1629
+ registerMenuContainerElement: E,
1630
+ menuMouseLeave: N
1631
+ });
1632
+ const F = (f) => {
1633
+ var M, I, x, U, G, C, y;
1634
+ return {
1635
+ [`b-data-grid-cell--${V.COLUMN_HOVERED}`]: (f == null ? void 0 : f.field) === e.hoveredOverColumnState.hoveredOverColumnField,
1636
+ [`b-data-grid-cell--${V.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (f == null ? void 0 : f.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
1637
+ [`b-data-grid-cell--${V.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (f == null ? void 0 : f.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
1638
+ [`b-data-grid-cell--${V.PADDING_LEFT_UNSET}`]: ((M = f == null ? void 0 : f.padding) == null ? void 0 : M.left) === !1,
1639
+ [`b-data-grid-cell--${V.PADDING_RIGHT_UNSET}`]: ((I = f == null ? void 0 : f.padding) == null ? void 0 : I.right) === !1,
1640
+ [`b-data-grid-cell--${V.NUMERIC}`]: f == null ? void 0 : f.numeric,
1641
+ [`b-data-grid-cell--${V.CONDENSED}`]: e.condensed,
1642
+ [`b-data-grid-cell--${V.OVERFLOW_ELLIPSIS}`]: (f == null ? void 0 : f.overflow) === Ee.ELLIPSIS,
1643
+ [`b-data-grid-cell--${V.IS_COLUMN_REORDERING}`]: ((x = e.draggingColumns.dragging) == null ? void 0 : x.field) === f.field,
1644
+ [`b-data-grid-cell--${V.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((U = e.draggingColumns.target) == null ? void 0 : U.field) === f.field && ((G = e.draggingColumns) == null ? void 0 : G.dragToLeft),
1645
+ [`b-data-grid-cell--${V.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((C = e.draggingColumns.target) == null ? void 0 : C.field) === f.field && !((y = e.draggingColumns) != null && y.dragToLeft),
1646
+ [`b-data-grid-cell--${V.FROZEN}`]: f == null ? void 0 : f.frozen,
1647
+ [`b-data-grid-cell--${V.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
1648
+ [`b-data-grid-cell--${V.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && f.field === q,
1649
+ [`b-data-grid-cell--${V.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && f.field === q,
1650
+ [`b-data-grid-cell--${V.ACTION_COL_SELECTION_ENABLED}`]: f.field === q && e.selectable
1651
+ };
1652
+ };
1653
+ return t({
1654
+ gridcellRef: h
1655
+ }), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: h, cellActionsRef: g, shouldShowCellActions: _, childrenMenuContainerElements: p, hasRowData: u, controlledNestedRowElementIds: i, ariaHidden: d, conditionalTitleAttribute: c, getRowData: v, sumColumnAmountsInColumnSets: m, getColIndex: S, getCellIndex: O, isLeavingCellFocus: R, onMenuClose: D, getGridcellEvents: B, toggleNestedContent: L, registerMenuContainerElement: E, menuMouseLeave: N, conditionalRowCellClasses: F, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: q, BentoCheckbox: rt, BentoTypography: me, BentoToggleButton: Ie, DataGridCellActions: po, ChevronDownIcon: Fn, ChevronUpIcon: xn };
1656
+ }
1657
+ });
1658
+ var Eo = function() {
1659
+ var o;
1660
+ var t = this, n = t._self._c, e = t._self._setupProxy;
1661
+ return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
1662
+ width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
1663
+ }, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(l) {
1664
+ return t.$emit("select-row", l);
1665
+ } } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
1666
+ return [t.isNestedContentExpanded ? n(e.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("collapseNestedContent") } }) : n(e.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("expandNestedContent") } })];
1667
+ }, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { attrs: { el: "div" } }, [t._t(`item-${t.column.field}`, function() {
1668
+ return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
1669
+ }, { item: t.rowData })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [e.shouldShowCellActions && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData }, on: { "menu-item-click-close": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
1670
+ }, Ro = [], yo = /* @__PURE__ */ H(
1671
+ wo,
1672
+ Eo,
1673
+ Ro,
1674
+ !1,
1675
+ null,
1676
+ "118af37b"
1677
+ );
1678
+ const bo = yo.exports, Oo = {
1679
+ name: "data-grid-row"
1680
+ }, To = /* @__PURE__ */ Q({
1681
+ ...Oo,
1682
+ props: {
1683
+ /**
1684
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
1685
+ */
1686
+ allowRowClicks: { type: Boolean, default: !1 },
1687
+ /**
1688
+ * The columns sets including
1689
+ */
1690
+ columnSets: {
1691
+ type: Array,
1692
+ required: !0
1693
+ },
1694
+ /**
1695
+ * Sets the row cells to the condensed padding state.
1696
+ */
1697
+ condensed: {
1698
+ type: Boolean,
1699
+ default: !1
1700
+ },
1701
+ /**
1702
+ * Columns being dragged, contains dragging column and a target column
1703
+ */
1704
+ draggingColumns: {
1705
+ type: Object,
1706
+ default: void 0
1707
+ },
1708
+ /**
1709
+ * Dragging event handlers for each row cell
1710
+ */
1711
+ draggingEventsForRowCell: {
1712
+ type: Function,
1713
+ required: !0
1714
+ },
1715
+ /**
1716
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
1717
+ * This is used selecting and performance reasons and must exist in each data item.
1718
+ */
1719
+ getDataItemId: {
1720
+ type: Function,
1721
+ default: (s) => s.id
1722
+ },
1723
+ /**
1724
+ * Set to true if the datagrid has been scrolled and the left side has overflowing space.
1725
+ */
1726
+ hasLeftOverflow: {
1727
+ type: Boolean,
1728
+ default: !1
1729
+ },
1730
+ /**
1731
+ * Enables the nested content slot functionality.
1732
+ */
1733
+ hasNestedContent: {
1734
+ type: Boolean,
1735
+ default: !1
1736
+ },
1737
+ /**
1738
+ * Enables the nested content slot functionality.
1739
+ */
1740
+ hasNestedRows: {
1741
+ type: Boolean,
1742
+ default: !1
1743
+ },
1744
+ /**
1745
+ * Highlighted row IDs.
1746
+ */
1747
+ highlightedRows: {
1748
+ type: Array,
1749
+ default: () => []
1750
+ },
1751
+ /**
1752
+ * The row index of a currently hovered row.
1753
+ */
1754
+ hoveredRowIndex: {
1755
+ type: Number,
1756
+ default: -1
1757
+ },
1758
+ /**
1759
+ * The column hovered over state and whether the hovered over column should show a border right or left.
1760
+ */
1761
+ hoveredOverColumnState: {
1762
+ type: Object,
1763
+ required: !0
1764
+ },
1765
+ /**
1766
+ * A customisable method to determine if a row is not selectable.
1767
+ * The default is that every row is selectable.
1768
+ */
1769
+ isDataItemDisabled: {
1770
+ type: Function,
1771
+ default: () => !1
1772
+ },
1773
+ /**
1774
+ * If the row is the last child in it's parent container.
1775
+ */
1776
+ isRowLastChild: {
1777
+ type: Boolean,
1778
+ default: !1
1779
+ },
1780
+ /**
1781
+ * If columns are being measured for the autoWidth functionality.
1782
+ */
1783
+ isMeasuringColumnWidths: {
1784
+ type: Boolean,
1785
+ default: !1
1786
+ },
1787
+ /**
1788
+ * Determines if this row is nested inside another row.
1789
+ */
1790
+ isNestedRow: {
1791
+ type: Boolean,
1792
+ default: !1
1793
+ },
1794
+ /**
1795
+ * The row data object
1796
+ */
1797
+ rowData: {
1798
+ type: Object,
1799
+ required: !0
1800
+ },
1801
+ /**
1802
+ * The row index.
1803
+ */
1804
+ rowIndex: {
1805
+ type: Number,
1806
+ required: !0
1807
+ },
1808
+ /**
1809
+ * The row ID to be using for the ID attribute.
1810
+ */
1811
+ rowId: {
1812
+ type: Number,
1813
+ default: void 0
1814
+ },
1815
+ /**
1816
+ * The number of rows that this row is within.
1817
+ */
1818
+ rowSetSize: {
1819
+ type: Number,
1820
+ default: 0
1821
+ },
1822
+ /**
1823
+ * Determines whether to render frozen seperator on the row.
1824
+ */
1825
+ showFrozenColumnsSeparator: {
1826
+ type: Boolean,
1827
+ default: !1
1828
+ },
1829
+ /**
1830
+ * Determines if the row selection is enabled.
1831
+ */
1832
+ selectable: {
1833
+ type: Boolean,
1834
+ default: !1
1835
+ },
1836
+ /**
1837
+ * The array of IDs for the selected rows.
1838
+ */
1839
+ selectedItems: {
1840
+ type: Array,
1841
+ required: !0
1842
+ },
1843
+ /**
1844
+ * Enables / Disables the nested-content slot
1845
+ */
1846
+ shouldShowNestedContent: {
1847
+ type: Function,
1848
+ default: (s) => !0
1849
+ },
1850
+ /**
1851
+ * Returns the nested rows for a given BentoDatagridDataItem.
1852
+ */
1853
+ shouldShowNestedRows: {
1854
+ type: Function,
1855
+ default: (s) => !0
1856
+ }
1857
+ },
1858
+ emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
1859
+ setup(s, { expose: t, emit: n }) {
1860
+ const e = s, o = Oe(), l = Ae(o), a = b({}), h = b(!1), g = b(), _ = we("nested-content-slot"), p = w(() => e.shouldShowNestedRows(e.rowData)), u = w(
1861
+ () => {
1862
+ var C, y;
1863
+ return !e.isNestedRow && e.hasNestedRows && p.value && ((y = (C = e.rowData) == null ? void 0 : C.children) == null ? void 0 : y.length) > 0;
1864
+ }
1865
+ ), i = w(
1866
+ () => {
1867
+ var C, y;
1868
+ return !e.isNestedRow && e.hasNestedRows && p.value && (((C = e.rowData) == null ? void 0 : C.children) === void 0 || ((y = e == null ? void 0 : e.rowData) == null ? void 0 : y.children.length) === 0);
1869
+ }
1870
+ ), d = w(
1871
+ () => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && p.value && !e.isNestedRow
1872
+ ), c = w(() => {
1873
+ if (e.hasNestedContent || e.hasNestedRows) {
1874
+ const C = h.value.toString();
1875
+ return {
1876
+ "aria-expanded": d.value ? C : void 0,
1877
+ "aria-level": e.isNestedRow ? "2" : "1",
1878
+ "aria-posinset": e.rowIndex + 1,
1879
+ "aria-setsize": e.rowSetSize
1880
+ };
1881
+ }
1882
+ return { "aria-rowindex": e.rowIndex + 1 };
1883
+ }), v = w(() => {
1884
+ if (i.value)
1885
+ return {
1886
+ "aria-busy": "true",
1887
+ "aria-live": "polite"
1888
+ };
1889
+ if (!(u.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
1890
+ return {
1891
+ "aria-level": e.isNestedRow ? "3" : "2",
1892
+ "aria-posinset": "1",
1893
+ "aria-setsize": "1",
1894
+ id: _,
1895
+ role: "row",
1896
+ tabindex: "-1"
1897
+ };
1898
+ }), m = w(() => {
1899
+ var C, y;
1900
+ return u.value ? (y = (C = e.rowData) == null ? void 0 : C.children) == null ? void 0 : y.reduce((z, X, r) => (z[r] = we("nested-row"), z), {}) : [];
1901
+ }), S = w(() => {
1902
+ var C;
1903
+ if (h.value) {
1904
+ if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
1905
+ return [_];
1906
+ if (u.value && ((C = Object.keys(m.value)) == null ? void 0 : C.length) > 0) {
1907
+ const y = Object.values(m.value);
1908
+ if ((y == null ? void 0 : y.length) > 0)
1909
+ return y;
1910
+ }
1911
+ return [];
1912
+ }
1913
+ }), O = w(() => {
1914
+ var y, z;
1915
+ const C = (z = (y = e.rowData) == null ? void 0 : y.children) == null ? void 0 : z.map((X) => e.getDataItemId(X));
1916
+ if ((C == null ? void 0 : C.length) > 0) {
1917
+ const X = C.every((P) => {
1918
+ var Z;
1919
+ return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(P);
1920
+ }), r = C.some((P) => {
1921
+ var Z;
1922
+ return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(P);
1923
+ });
1924
+ return !X && r;
1925
+ }
1926
+ return !1;
1927
+ }), R = (C, y) => {
1928
+ const z = C;
1929
+ C !== null && (z != null && z.gridcellRef) && (a.value[y] = z.gridcellRef);
1930
+ }, D = (C) => m.value[C], B = (C) => {
1931
+ if (!e.selectable)
1932
+ return null;
1933
+ const y = e.getDataItemId(C);
1934
+ return e.selectedItems.includes(y).toString();
1935
+ }, L = (C) => {
1936
+ e.allowRowClicks && n("row-click", e.rowData, C);
1937
+ }, E = (C) => {
1938
+ n("select-row", C, e.rowData);
1939
+ }, N = (C, y) => {
1940
+ n("select-nested-row", y, e.rowData, C);
1941
+ }, { updateContentHeight: F, contentHeight: f } = Nn(g, h), M = w(() => {
1942
+ var C;
1943
+ if (e.hasNestedContent || e.hasNestedRows)
1944
+ return {
1945
+ paddingLeft: `${u.value || i.value ? 0 : a.value[q].clientWidth + ct}px`,
1946
+ "max-height": (e.hasNestedContent || e.hasNestedRows) && f.value && !((C = f == null ? void 0 : f.value) != null && C.includes("null")) ? f.value : 0
1947
+ };
1948
+ });
1949
+ Y(
1950
+ () => g.value,
1951
+ () => {
1952
+ let C = null;
1953
+ !C && g.value && (C = Ne(g.value, () => {
1954
+ g.value && F();
1955
+ }));
1956
+ }
1957
+ );
1958
+ const I = () => {
1959
+ h.value = !h.value, F(), n("nested-content-toggled", e.rowData);
1960
+ };
1961
+ Y(
1962
+ () => {
1963
+ var C;
1964
+ return (C = e.rowData) == null ? void 0 : C.children;
1965
+ },
1966
+ (C, y) => {
1967
+ var z, X;
1968
+ ((X = (z = e == null ? void 0 : e.rowData) == null ? void 0 : z.children) == null ? void 0 : X.length) > 0 && y === void 0 && !h.value && F();
1969
+ }
1970
+ );
1971
+ const x = (C, y) => ({
1972
+ "b-data-grid-row-container__row--disabled": e.isDataItemDisabled(C),
1973
+ "b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
1974
+ "b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(C)) || e.selectedItems.includes(e.getDataItemId(C)),
1975
+ "b-data-grid-row-container__row--hovered": e.hoveredRowIndex === y,
1976
+ "b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !h.value,
1977
+ "b-data-grid-row-container__row--nested-row": e.isNestedRow
1978
+ }), U = (C) => ({
1979
+ "b-data-grid-row-container__row-cell-set--frozen": C,
1980
+ [`b-data-grid-row-container__row-cell-set--${se.OVERFLOW_SHADOW_LEFT}`]: C && e.hasLeftOverflow,
1981
+ "b-data-grid-row-container__row-cell-set--frozen-separator": C && e.showFrozenColumnsSeparator,
1982
+ "b-data-grid-row-container__row-cell-set--unfrozen": !C,
1983
+ "b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
1984
+ }), G = w(() => ({
1985
+ "b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
1986
+ "b-data-grid-row-container__row-nested-slot": !u.value && e.shouldShowNestedContent(e.rowData)
1987
+ }));
1988
+ return t({
1989
+ gridcellRefs: a
1990
+ }), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: h, nestedContentRef: g, nestedContentSlotId: _, shouldShowNestedRowsBooleanResult: p, shouldShowRenderNestedRows: u, isLoadingNestedRows: i, shouldShowNestedContentToggle: d, ariaRowAttributes: c, nestedContentContainerDivAriaAttributes: v, nestedRowIds: m, allNestedRowIds: S, hasUnSelectedNestedRows: O, registerRowCellRef: R, getRowId: D, getRowAriaSelectedValue: B, onRowClick: L, onRowSelect: E, onNestedRowSelect: N, updateContentHeight: F, contentHeight: f, nestedContentStyles: M, nestedContentToggled: I, conditionalRowClasses: x, conditionalRowSetClasses: U, conditionalNestedRowClasses: G, DataGridCell: bo, BentoLoadingIndicator: Te, DataGridRow: gt };
1991
+ }
1992
+ });
1993
+ var Ao = function() {
1994
+ var t = this, n = t._self._c, e = t._self._setupProxy;
1995
+ return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: t.rowId, role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: o, id: l, isFrozenColumns: a }, h) {
1996
+ return [o != null && o.length ? n("div", { key: `data-grid-rows-${l}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(a), attrs: { "data-testid": `data-grid-${l}-rows` } }, t._l(o, function(g, _) {
1997
+ return n(e.DataGridCell, { key: `cell-${g.field}`, ref: (p) => e.registerRowCellRef(p, g.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: g, "column-set-index": h, "col-index": _, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(p) {
1998
+ return e.emit("cell-hovered", p);
1999
+ }, "on-frozen-columns-key-press": function(p) {
2000
+ return e.emit("on-frozen-columns-key-press", p);
2001
+ }, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(p, u) {
2002
+ return { key: u, fn: function(i) {
2003
+ return [t._t(u, null, null, i)];
2004
+ } };
2005
+ })], null, !0) });
2006
+ }), 1) : t._e()];
2007
+ })], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(o, l) {
2008
+ return n(e.DataGridRow, t._b({ key: `child-${l}`, attrs: { id: e.getRowId(l), "row-data": o, "row-index": l, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(a) {
2009
+ return e.emit("cell-hovered", a);
2010
+ }, "row-click": function(a) {
2011
+ return e.emit("row-click", a);
2012
+ }, "on-frozen-columns-key-press": function(a) {
2013
+ return e.emit("con-frozen-columns-key-press", a);
2014
+ }, "select-row": function(a) {
2015
+ return e.onNestedRowSelect(o, a);
2016
+ } }, scopedSlots: t._u([t._l(e.slots, function(a, h) {
2017
+ return { key: h, fn: function(g) {
2018
+ return [t._t(h, null, null, g)];
2019
+ } };
2020
+ })], null, !0) }, "data-grid-row", e.props, !1));
2021
+ }) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()], 2)]) : t._e()]) : t._e()], 1);
2022
+ }, No = [], Io = /* @__PURE__ */ H(
2023
+ To,
2024
+ Ao,
2025
+ No,
2026
+ !1,
2027
+ null,
2028
+ "e7701751"
2029
+ );
2030
+ const gt = Io.exports;
2031
+ let tt = 0;
2032
+ const Do = {
2033
+ beforeCreate() {
2034
+ this.uuid = tt.toString(), tt += 1;
2035
+ }
2036
+ };
2037
+ var Fo = function() {
2038
+ var t = this, n = t._self._c;
2039
+ return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
2040
+ }, xo = [], Mo = /* @__PURE__ */ H(
2041
+ Do,
2042
+ Fo,
2043
+ xo,
2044
+ !1,
2045
+ null,
2046
+ null
2047
+ );
2048
+ const Po = Mo.exports, Bo = {}, zo = /* @__PURE__ */ Q({
2049
+ ...Bo,
2050
+ __name: "data-grid-static-icon",
2051
+ props: {
2052
+ colored: { type: Boolean, default: !1 },
2053
+ tooltipText: null,
2054
+ variant: { default: "no-value" }
2055
+ },
2056
+ setup(s) {
2057
+ const t = s, n = w(() => {
2058
+ switch (t.variant) {
2059
+ case "checkmark":
2060
+ return ln;
2061
+ case "warning":
2062
+ return an;
2063
+ case "error":
2064
+ return Po;
2065
+ case "cross":
2066
+ return ot;
2067
+ case "no-value":
2068
+ return ke;
2069
+ default:
2070
+ return ke;
2071
+ }
2072
+ }), e = w(() => ({
2073
+ "b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
2074
+ })), o = w(() => `b-data-grid-static-icon__${t.variant}`), l = w(() => rn.AUTO);
2075
+ return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: dn };
2076
+ }
2077
+ });
2078
+ var $o = function() {
2079
+ var t = this, n = t._self._c, e = t._self._setupProxy;
2080
+ return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
2081
+ }, Uo = [], ko = /* @__PURE__ */ H(
2082
+ zo,
2083
+ $o,
2084
+ Uo,
2085
+ !1,
2086
+ null,
2087
+ "f8532817"
2088
+ );
2089
+ const Ml = ko.exports, Go = {
2090
+ i18n: { messages: ft },
2091
+ name: "bento-data-grid"
2092
+ }, Wo = /* @__PURE__ */ Q({
2093
+ ...Go,
2094
+ props: {
2095
+ /**
2096
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
2097
+ */
2098
+ allowRowClicks: { type: Boolean, default: !1 },
2099
+ /**
2100
+ * When true, column headers will become draggable, allowing users to rearrange columns.
2101
+ */
2102
+ allowColumnDragAndDrop: { type: Boolean, default: !0 },
2103
+ /**
2104
+ * List of actions that will be rendered in the action bar when user selects items.
2105
+ *
2106
+ * Each object in the list should have a `title`, an `event` and,
2107
+ * optionally, an `icon`.
2108
+ *
2109
+ * The component will display 4 actions and the hide the rest inside a menu.
2110
+ *
2111
+ * @see BentoButton for a list of all the other props supported by each button action.
2112
+ */
2113
+ bulkActions: {
2114
+ type: Array,
2115
+ default: null
2116
+ },
2117
+ /**
2118
+ * Sets the row cells to the condensed padding state.
2119
+ */
2120
+ condensed: {
2121
+ type: Boolean,
2122
+ default: !1
2123
+ },
2124
+ /**
2125
+ * Column definitions using 'key' to relate to data object.
2126
+ */
2127
+ columns: {
2128
+ type: Array,
2129
+ required: !0
2130
+ },
2131
+ /**
2132
+ * Enables / hides the display options panel and the column contextual menu functionality.
2133
+ */
2134
+ columnPanel: { type: Boolean, default: !1 },
2135
+ /**
2136
+ * An array of data objects to display.
2137
+ */
2138
+ data: {
2139
+ type: Array,
2140
+ required: !0
2141
+ },
2142
+ /**
2143
+ * Empty state props that will be passed down to inner empty-state component
2144
+ */
2145
+ emptyState: {
2146
+ type: Object,
2147
+ default: void 0
2148
+ },
2149
+ /**
2150
+ * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
2151
+ * {@see BentoFilterBarModel}
2152
+ */
2153
+ filters: {
2154
+ type: Ce.props.value.type,
2155
+ default: void 0
2156
+ },
2157
+ /**
2158
+ * An array of the values for each filter set in `value`.
2159
+ * {@see BentoFilterValues}
2160
+ */
2161
+ filterValues: {
2162
+ type: Ce.props.filterValues.type,
2163
+ default: () => []
2164
+ },
2165
+ /**
2166
+ * Filter bar search term useful to filter all the data by text
2167
+ */
2168
+ filterSearchTerm: {
2169
+ type: Ce.props.searchTerm.type,
2170
+ default: void 0
2171
+ },
2172
+ /**
2173
+ * Allows the grid to be rendered inside a confined space.
2174
+ */
2175
+ fitContent: { type: Boolean, default: !1 },
2176
+ /**
2177
+ * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2178
+ * This is used selecting and performance reasons and must exist in each data item.
2179
+ */
2180
+ getDataItemId: {
2181
+ type: Function,
2182
+ default: (s) => s.id
2183
+ },
2184
+ /**
2185
+ * If resize is enabled
2186
+ */
2187
+ hasResizableColumns: {
2188
+ type: Boolean,
2189
+ default: !0
2190
+ },
2191
+ /**
2192
+ * Enables the nested content slot functionality.
2193
+ */
2194
+ hasNestedContent: {
2195
+ type: Boolean,
2196
+ default: !1
2197
+ },
2198
+ /**
2199
+ * Enables the nested content slot functionality.
2200
+ */
2201
+ hasNestedRows: {
2202
+ type: Boolean,
2203
+ default: !1
2204
+ },
2205
+ /**
2206
+ * Highlighted items
2207
+ */
2208
+ highlightedRows: {
2209
+ type: Array,
2210
+ default: () => []
2211
+ },
2212
+ /**
2213
+ * A customisable method to determine if a row is not selectable.
2214
+ * The default is that every row is selectable.
2215
+ */
2216
+ isDataItemDisabled: {
2217
+ type: Function,
2218
+ default: () => !1
2219
+ },
2220
+ /**
2221
+ * The type of `Lazy Load`.
2222
+ * Type "automatic" will enable infinite scrolling
2223
+ * Type "button" will enable lazy loading with "Show more" button
2224
+ * @values automatic, button, none
2225
+ */
2226
+ lazyLoadType: {
2227
+ type: String,
2228
+ default: "none",
2229
+ validator: (s) => ["automatic", "button", "none"].includes(s)
2230
+ },
2231
+ /**
2232
+ * If the loading indicator should be shown.
2233
+ */
2234
+ loading: {
2235
+ type: Boolean,
2236
+ default: !1
2237
+ },
2238
+ /**
2239
+ * Enables / Disables the table's surrounding border.
2240
+ */
2241
+ outline: {
2242
+ type: Boolean,
2243
+ default: !1
2244
+ },
2245
+ /**
2246
+ * Renders the data grid with no top spacing, to render inside containers that already have spacing
2247
+ */
2248
+ noSpacingTop: {
2249
+ type: Boolean,
2250
+ default: !1
2251
+ },
2252
+ /**
2253
+ * Pagination props that will be passed down to inner pagination component
2254
+ */
2255
+ pagination: {
2256
+ type: Object,
2257
+ default: void 0
2258
+ },
2259
+ /**
2260
+ * Adds an extra option when selecting all items that allows user to select items in other pages too.
2261
+ */
2262
+ selectableAcrossPages: {
2263
+ type: Boolean,
2264
+ default: !1
2265
+ },
2266
+ /**
2267
+ * Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
2268
+ */
2269
+ stickyHorizontalScrollbar: {
2270
+ type: Boolean,
2271
+ default: !1
2272
+ },
2273
+ /**
2274
+ * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
2275
+ * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
2276
+ */
2277
+ stickyPagination: {
2278
+ type: Boolean,
2279
+ default: !1
2280
+ },
2281
+ /**
2282
+ * Make data-grid filters stick to the top of the page along with the data-grid headers.
2283
+ * Defaults to true.
2284
+ */
2285
+ stickyFilters: {
2286
+ type: Boolean,
2287
+ default: !0
2288
+ },
2289
+ /**
2290
+ * Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
2291
+ */
2292
+ selectable: {
2293
+ type: Boolean,
2294
+ default: !1
2295
+ },
2296
+ /**
2297
+ * Selected items
2298
+ */
2299
+ selection: {
2300
+ type: Array,
2301
+ default: () => []
2302
+ },
2303
+ /**
2304
+ * Enables / Disables the nested-content slot
2305
+ */
2306
+ shouldShowNestedContent: {
2307
+ type: Function,
2308
+ default: (s) => !0
2309
+ },
2310
+ /**
2311
+ * Returns the nested rows for a given BentoDatagridDataItem.
2312
+ */
2313
+ shouldShowNestedRows: {
2314
+ type: Function,
2315
+ default: (s) => !0
2316
+ },
2317
+ /**
2318
+ * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
2319
+ * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
2320
+ */
2321
+ sortBy: {
2322
+ type: Array,
2323
+ // NOTE: is an array to allow multi-sorting in the future
2324
+ default: () => []
2325
+ },
2326
+ /**
2327
+ * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
2328
+ */
2329
+ tabTitle: {
2330
+ type: String,
2331
+ default: null
2332
+ },
2333
+ /**
2334
+ * Truncates all data grid column headers
2335
+ */
2336
+ truncateColumnHeaders: {
2337
+ type: Boolean,
2338
+ default: !1
2339
+ }
2340
+ },
2341
+ emits: [
2342
+ T.COLUMNS,
2343
+ T.COLUMN_RESIZE,
2344
+ T.ITEMS_PAGE,
2345
+ T.FILTER_SEARCH_INPUT,
2346
+ T.FILTER_SEARCH_CLEAR,
2347
+ T.NAVIGATE,
2348
+ T.NESTED_CONTENT_TOGGLED,
2349
+ T.UPDATE_COLUMNS,
2350
+ T.UPDATE_CONDENSED,
2351
+ T.UPDATE_FILTER_VALUES,
2352
+ T.UPDATE_FILTERS,
2353
+ T.UPDATE_FILTER_SEARCH_TERM,
2354
+ T.UPDATE_SHOW_MORE,
2355
+ T.UPDATE_PAGINATION,
2356
+ T.UPDATE_SELECTION,
2357
+ T.UPDATE_SORT_BY,
2358
+ T.ROW_CLICK,
2359
+ T.SELECT,
2360
+ T.SELECT_ALL_ACROSS_PAGES,
2361
+ T.SORT
2362
+ ],
2363
+ setup(s, { expose: t, emit: n }) {
2364
+ const e = s, o = Oe(), l = Ae(o), a = b(null), h = b(), g = b({}), _ = b(null), p = b(null), u = b(), i = b(null), d = b(null), {
2365
+ allowColumnDragAndDrop: c,
2366
+ columns: v,
2367
+ columnPanel: m,
2368
+ data: S,
2369
+ lazyLoadType: O,
2370
+ loading: R,
2371
+ hasNestedContent: D,
2372
+ hasNestedRows: B,
2373
+ selectable: L,
2374
+ selection: E,
2375
+ selectableAcrossPages: N,
2376
+ stickyPagination: F,
2377
+ outline: f,
2378
+ pagination: M
2379
+ } = ye(e), I = b(-1), { t: x } = ie(), U = w(() => r.value.filter((A) => A.frozen).length), G = Ue(
2380
+ Cn,
2381
+ () => ({
2382
+ isDataGridTemplate: !1,
2383
+ stickyTabs: b(!1),
2384
+ tabsRef: b(null)
2385
+ })
2386
+ ), { isDataGridTemplate: C, stickyTabs: y, tabsRef: z } = G(), X = w(() => e.fitContent || C ? 0 : null), {
2387
+ columnDefs: r,
2388
+ onColumnWidthOverride: P,
2389
+ gridColumnWidthStyle: Z,
2390
+ isMeasuringColumnWidths: oe,
2391
+ isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: le,
2392
+ columns: de,
2393
+ totalWidthOfAllColumns: fe
2394
+ } = Zn(v, S, a, g, _, {
2395
+ hasColumnPanel: m,
2396
+ hasSelectableColumn: L,
2397
+ hasSelectableAcrossPages: N,
2398
+ hasNestedContent: D,
2399
+ hasNestedRows: B,
2400
+ allowColumnDragAndDrop: c,
2401
+ isDataGridTemplate: C
2402
+ }), W = (A, ...$) => {
2403
+ (A === T.COLUMNS || A === T.UPDATE_COLUMNS) && ([de.value] = $), n(A, ...$);
2404
+ }, re = Ze(z, y), ge = w(
2405
+ () => e.stickyFilters ? `${re.value}px` : null
2406
+ ), ce = Ze(p, st(e, "stickyFilters")), _e = w(
2407
+ () => `${ce.value + re.value}px`
2408
+ ), {
2409
+ sortedColumns: De,
2410
+ columnSets: pe,
2411
+ isOnlyOneVisibleColumn: _t,
2412
+ onConfigSettingsUpdate: vt,
2413
+ onConfigSettingsColumnsUpdate: Ct,
2414
+ onConfigSettingsColumnUpdate: ht
2415
+ } = Qn(r, W), { hoveredOverColumn: mt, hoveredOverColumnState: pt } = ts(
2416
+ pe,
2417
+ L,
2418
+ f,
2419
+ le
2420
+ ), { draggingColumns: St, draggingEventsForColumns: Lt, draggingEventsForRowCell: wt, onMoveColumnByOffset: Et } = Kn(De, c, W), { onAllRowSelect: Rt, onRowSelect: yt, onNestedRowSelect: bt, selectedItems: Fe, allItemsSelectedState: Ot } = jn(
2421
+ E,
2422
+ W,
2423
+ S,
2424
+ e.getDataItemId,
2425
+ e.isDataItemDisabled
2426
+ ), { navigationInput: Tt } = Yn(_, v, L), { isLazyLoad: Se, isInfiniteScroll: At, verticalScrollPosition: xe, emitLazyLoadEvent: Nt } = Jn(
2427
+ O,
2428
+ i,
2429
+ a,
2430
+ R,
2431
+ W
2432
+ ), {
2433
+ updateScrollPosition: It,
2434
+ updateScrollPositionOnFrozenColumnsNavigation: Dt,
2435
+ syncVirtualScrollerWithBody: Ft,
2436
+ hasLeftOverflow: Le,
2437
+ hasRightOverflow: Me,
2438
+ horizontalScrollbarConditionalClasses: xt
2439
+ } = es(a, h, xe, d, {
2440
+ isLazyLoad: Se,
2441
+ pagination: M,
2442
+ stickyPagination: F,
2443
+ isDataGridTemplate: C
2444
+ }), Pe = () => {
2445
+ u.value.isClearAllVisible ? u.value.clearAllFilters() : u.value.isResetAllVisible && u.value.resetAllFilters();
2446
+ }, Mt = w(() => {
2447
+ var A, $;
2448
+ return {
2449
+ ...e.emptyState,
2450
+ variant: ((A = e.emptyState) == null ? void 0 : A.variant) === "embedded" || (($ = e.emptyState) == null ? void 0 : $.variant) === "basic" ? e.emptyState.variant : "basic"
2451
+ };
2452
+ }), Pt = w(() => ({
2453
+ [`b-data-grid--${se.OUTLINE}`]: e.outline,
2454
+ [`b-data-grid--${se.SCROLL}`]: e.fitContent || Se.value,
2455
+ [`b-data-grid--${se.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
2456
+ [`b-data-grid--${se.OVERFLOW_SHADOW_LEFT}`]: Le.value && !U.value,
2457
+ [`b-data-grid--${se.OVERFLOW_SHADOW_RIGHT}`]: Me.value,
2458
+ [`b-data-grid--${se.NO_SPACING_TOP}`]: e.noSpacingTop
2459
+ })), Bt = w(() => ({
2460
+ "b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
2461
+ })), zt = w(() => pe.value.findIndex((A) => A.columnSet.length)), $t = w(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && U.value === 1) || Le.value), Ut = w(() => ({
2462
+ "b-data-grid__filters--sticky": !!e.stickyFilters || C
2463
+ })), kt = w(() => {
2464
+ var A, $, J, ee, ve, ue;
2465
+ return {
2466
+ "b-data-grid__pagination--padding-left-unset": ((J = ($ = (A = e.columns) == null ? void 0 : A[0]) == null ? void 0 : $.padding) == null ? void 0 : J.left) === !1,
2467
+ "b-data-grid__pagination--padding-right-unset": ((ue = (ve = (ee = e.columns) == null ? void 0 : ee[e.columns.length - 1]) == null ? void 0 : ve.padding) == null ? void 0 : ue.right) === !1,
2468
+ "b-data-grid__pagination--sticky": !!e.stickyPagination || C
2469
+ };
2470
+ }), Gt = (A) => {
2471
+ const $ = A;
2472
+ A !== null && ($ != null && $.columnHeaderRefs) && Object.entries($ == null ? void 0 : $.columnHeaderRefs).forEach(([J, ee]) => {
2473
+ g.value[J] = ee;
2474
+ });
2475
+ }, Wt = (A, $) => {
2476
+ const J = A;
2477
+ A !== null && (J != null && J.gridcellRefs) && Object.entries(J == null ? void 0 : J.gridcellRefs).map(([ee, ve]) => {
2478
+ var ue;
2479
+ ((ue = _.value) == null ? void 0 : ue[ee]) === void 0 && (_.value = { ..._.value, [ee]: [] }), _.value[ee][$] = ve;
2480
+ });
2481
+ }, Ht = (A, $) => {
2482
+ e.allowRowClicks && W(T.ROW_CLICK, A, $);
2483
+ }, Vt = (A) => {
2484
+ I.value = A;
2485
+ }, Zt = w(() => !!e.selectableAcrossPages && !!e.pagination), jt = w(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), qt = fn({
2486
+ label: o != null && o.header ? gn(o)("header") : null,
2487
+ defaultFallback: "data grid"
2488
+ }), Be = w(() => {
2489
+ var A;
2490
+ return ((A = Fe.value) == null ? void 0 : A.length) ?? 0;
2491
+ }), Yt = w(() => e.bulkActions && Be.value > 0), Xt = (A) => W(T.COLUMN_RESIZE, A), Jt = (A) => {
2492
+ W(T.UPDATE_SORT_BY, A), W(T.SORT, A);
2493
+ }, Kt = (A, $) => {
2494
+ W(T.NAVIGATE, A), W(T.UPDATE_PAGINATION, {
2495
+ ...e.pagination,
2496
+ size: $,
2497
+ page: A
2498
+ });
2499
+ }, Qt = (A) => {
2500
+ W(T.ITEMS_PAGE, A);
2501
+ }, en = () => {
2502
+ W(T.FILTER_SEARCH_CLEAR);
2503
+ }, tn = (A) => {
2504
+ W(T.UPDATE_FILTER_SEARCH_TERM, A), W(T.FILTER_SEARCH_INPUT, A);
2505
+ }, ze = w(() => v.value.some((A) => A.mandatory));
2506
+ ze.value || lt(
2507
+ "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
2508
+ );
2509
+ const $e = Ue(vn, () => null);
2510
+ return $e(e.tabTitle), t({ onEmptyStateClearResetButtonClick: Pe }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: h, columnHeaderRefs: g, gridcellRefs: _, filtersRef: p, filterBarRef: u, verticalScrollPositionRef: i, virtualHorizontalScrollbarRef: d, allowColumnDragAndDrop: c, columns: v, columnPanel: m, data: S, lazyLoadType: O, loading: R, hasNestedContent: D, hasNestedRows: B, selectable: L, selection: E, selectableAcrossPages: N, stickyPagination: F, outline: f, pagination: M, hoveredRowIndex: I, t: x, frozenColumnsLength: U, registerDatagridInDataGridTemplate: G, isDataGridTemplate: C, stickyTabs: y, tabsRef: z, computedColumnsTabIndex: X, columnDefs: r, onColumnWidthOverride: P, gridColumnWidthStyle: Z, isMeasuringColumnWidths: oe, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: le, localColumnsState: de, totalWidthOfAllColumns: fe, definedEmitsFunction: n, emit: W, stickyFiltersHeight: re, computedStickyFiltersTopPosition: ge, columnHeadersHeight: ce, computedColumnHeadersTopPosition: _e, sortedColumns: De, columnSets: pe, isOnlyOneVisibleColumn: _t, onConfigSettingsUpdate: vt, onConfigSettingsColumnsUpdate: Ct, onConfigSettingsColumnUpdate: ht, hoveredOverColumn: mt, hoveredOverColumnState: pt, draggingColumns: St, draggingEventsForColumns: Lt, draggingEventsForRowCell: wt, onMoveColumnByOffset: Et, onAllRowSelect: Rt, onRowSelect: yt, onNestedRowSelect: bt, selectedItems: Fe, allItemsSelectedState: Ot, navigationInput: Tt, isLazyLoad: Se, isInfiniteScroll: At, verticalScrollPosition: xe, emitLazyLoadEvent: Nt, updateScrollPosition: It, updateScrollPositionOnFrozenColumnsNavigation: Dt, syncVirtualScrollerWithBody: Ft, hasLeftOverflow: Le, hasRightOverflow: Me, horizontalScrollbarConditionalClasses: xt, onEmptyStateClearResetButtonClick: Pe, limitedEmptyStateProps: Mt, conditionalGridClasses: Pt, conditionalGridBodyClasses: Bt, computedColumnPanelAlignment: zt, showFrozenColumnsSeparator: $t, conditionalFilterClasses: Ut, conditionalPaginationClasses: kt, registerColumnHeaderRefs: Gt, registerRowCellRefs: Wt, onRowClick: Ht, onCellHover: Vt, selectableAcrossPagesComputed: Zt, ariaGridRole: jt, ariaGridHeaderText: qt, itemsSelectedCounter: Be, showActionBar: Yt, onColumnResized: Xt, onSort: Jt, onPaginationNavigate: Kt, onItemsPerPageChange: Qt, onSearchTermCleared: en, onSearchTermInput: tn, hasMandatoryColumn: ze, setTitle: $e, BentoActionBar: cn, BentoPagination: un, BentoLoadingIndicator: Te, BentoTypography: me, BentoDataGridConfigSettings: eo, DataGridColumns: Bs, DataGridLazyLoad: ao, DataGridRow: gt, BentoDatagridEvent: T, BentoEmptyState: _n, BentoFilterBar: Ce };
2511
+ }
2512
+ });
2513
+ var Ho = function() {
2514
+ var o;
2515
+ var t = this, n = t._self._c, e = t._self._setupProxy;
2516
+ return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "filter-values": t.filterValues, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: e.localColumnsState, condensed: t.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : t._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: h }, g) {
2517
+ return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (_) => e.registerColumnHeaderRefs(_), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": h, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": g === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "truncate-column-headers": t.truncateColumnHeaders }, on: { "column-hover": function(_) {
2518
+ e.hoveredOverColumn = _;
2519
+ }, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(_) {
2520
+ return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
2521
+ }, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(_, p) {
2522
+ return { key: p, fn: function(u) {
2523
+ return [t._t(p, null, null, u)];
2524
+ } };
2525
+ })], null, !0) }, e.draggingEventsForColumns)) : t._e()];
2526
+ })], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(l, a) {
2527
+ var h, g;
2528
+ return n(e.DataGridRow, { key: a, ref: (_) => e.registerRowCellRefs(_, a), refInFor: !0, style: e.gridColumnWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-last-child": a + 1 === ((h = e.data) == null ? void 0 : h.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-data": l, "row-index": a, "row-set-size": (g = e.data) == null ? void 0 : g.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(_) {
2529
+ return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, _);
2530
+ }, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(_, p) {
2531
+ return { key: p, fn: function(u) {
2532
+ return [t._t(p, null, null, u)];
2533
+ } };
2534
+ })], null, !0) });
2535
+ }), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", class: e.horizontalScrollbarConditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(l) {
2536
+ return e.onAllRowSelect(!1);
2537
+ } } }) : t._e()], 1);
2538
+ }, Vo = [], Zo = /* @__PURE__ */ H(
2539
+ Wo,
2540
+ Ho,
2541
+ Vo,
2542
+ !1,
2543
+ null,
2544
+ "a0c2a0f8"
2545
+ );
2546
+ const Pl = Zo.exports;
2547
+ export {
2548
+ Ee as B,
2549
+ Ml as a,
2550
+ se as b,
2551
+ ae as c,
2552
+ Pl as d,
2553
+ T as e,
2554
+ he as f
2555
+ };
2556
+ //# sourceMappingURL=data-grid.BXB98JQr.js.map