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