@adyen/bento-vue2 1.38.1 → 1.40.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 (167) hide show
  1. package/README.md +8 -4
  2. package/dist/@types/index.d.ts +262 -234
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/data-grid-template.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/info-icon.css +1 -1
  13. package/dist/assets/input-field.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/link.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/search-bar.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/assets/status.css +1 -1
  23. package/dist/assets/tag.css +1 -1
  24. package/dist/button.js +4 -4
  25. package/dist/card.js +1 -1
  26. package/dist/chunks/{action-bar.D4-U6Fkb.js → action-bar.DJmskrzB.js} +5 -5
  27. package/dist/chunks/{action-bar.D4-U6Fkb.js.map → action-bar.DJmskrzB.js.map} +1 -1
  28. package/dist/chunks/{alert.DHu9891u.js → alert.Y4JUnmhl.js} +2 -2
  29. package/dist/chunks/{alert.DHu9891u.js.map → alert.Y4JUnmhl.js.map} +1 -1
  30. package/dist/chunks/{base-modal.O-Xbv58a.js → base-modal.SJX9uGT4.js} +4 -4
  31. package/dist/chunks/{base-modal.O-Xbv58a.js.map → base-modal.SJX9uGT4.js.map} +1 -1
  32. package/dist/chunks/{button-actions-with-menu.MEx5L6Sg.js → button-actions-with-menu.DZOHTxUi.js} +4 -4
  33. package/dist/chunks/{button-actions-with-menu.MEx5L6Sg.js.map → button-actions-with-menu.DZOHTxUi.js.map} +1 -1
  34. package/dist/chunks/{button-actions.Daj6TvUt.js → button-actions.BJMK3kZC.js} +3 -3
  35. package/dist/chunks/{button-actions.Daj6TvUt.js.map → button-actions.BJMK3kZC.js.map} +1 -1
  36. package/dist/chunks/{button.PIszagl6.js → button.CufUNBkv.js} +2 -2
  37. package/dist/chunks/{button.PIszagl6.js.map → button.CufUNBkv.js.map} +1 -1
  38. package/dist/chunks/{calendar.DadXSN5E.js → calendar.B9WZ8ub3.js} +2 -2
  39. package/dist/chunks/{calendar.DadXSN5E.js.map → calendar.B9WZ8ub3.js.map} +1 -1
  40. package/dist/chunks/{card.CQTvuu6n.js → card.Cfj-r6CX.js} +2 -2
  41. package/dist/chunks/{card.CQTvuu6n.js.map → card.Cfj-r6CX.js.map} +1 -1
  42. package/dist/chunks/{code-snippet.BweusD-1.js → code-snippet.CmBhucys.js} +5 -5
  43. package/dist/chunks/{code-snippet.BweusD-1.js.map → code-snippet.CmBhucys.js.map} +1 -1
  44. package/dist/chunks/{copy.fvajyLGQ.js → copy.C5j6vSQT.js} +2 -2
  45. package/dist/chunks/{copy.fvajyLGQ.js.map → copy.C5j6vSQT.js.map} +1 -1
  46. package/dist/chunks/{dashboard-section.C42qpyhm.js → dashboard-section.9R8bIh92.js} +3 -3
  47. package/dist/chunks/{dashboard-section.C42qpyhm.js.map → dashboard-section.9R8bIh92.js.map} +1 -1
  48. package/dist/chunks/{dashed-underline.Dd9CWaDw.js → dashed-underline.6Aw4MP34.js} +2 -2
  49. package/dist/chunks/{dashed-underline.Dd9CWaDw.js.map → dashed-underline.6Aw4MP34.js.map} +1 -1
  50. package/dist/chunks/{data-grid-template.DSFF6tTv.js → data-grid-template.Bhotcrsr.js} +3 -3
  51. package/dist/chunks/{data-grid-template.DSFF6tTv.js.map → data-grid-template.Bhotcrsr.js.map} +1 -1
  52. package/dist/chunks/data-grid.Czo9hi7m.js +2369 -0
  53. package/dist/chunks/data-grid.Czo9hi7m.js.map +1 -0
  54. package/dist/chunks/{date-picker.D9EWIMKc.js → date-picker.lFLlAGXs.js} +3 -3
  55. package/dist/chunks/{date-picker.D9EWIMKc.js.map → date-picker.lFLlAGXs.js.map} +1 -1
  56. package/dist/chunks/{date-range-picker.Dl7IDQX7.js → date-range-picker.Cr_YCwxP.js} +6 -6
  57. package/dist/chunks/{date-range-picker.Dl7IDQX7.js.map → date-range-picker.Cr_YCwxP.js.map} +1 -1
  58. package/dist/chunks/{dialog-page.Qi9Zc34k.js → dialog-page.CplkzZGZ.js} +2 -2
  59. package/dist/chunks/{dialog-page.Qi9Zc34k.js.map → dialog-page.CplkzZGZ.js.map} +1 -1
  60. package/dist/chunks/{dropdown-tag.C8NnThcn.js → dropdown-tag.BPkMWSmY.js} +2 -2
  61. package/dist/chunks/{dropdown-tag.C8NnThcn.js.map → dropdown-tag.BPkMWSmY.js.map} +1 -1
  62. package/dist/chunks/{dropdown.D-z8R4hr.js → dropdown.D8xKm1YA.js} +37 -36
  63. package/dist/chunks/{dropdown.D-z8R4hr.js.map → dropdown.D8xKm1YA.js.map} +1 -1
  64. package/dist/chunks/{empty-state.c6UY_tmZ.js → empty-state.B8ZeRgDi.js} +2 -2
  65. package/dist/chunks/{empty-state.c6UY_tmZ.js.map → empty-state.B8ZeRgDi.js.map} +1 -1
  66. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  67. package/dist/chunks/{filter-bar.DQJ7y-B4.js → filter-bar.dQZY8j9C.js} +14 -14
  68. package/dist/chunks/{filter-bar.DQJ7y-B4.js.map → filter-bar.dQZY8j9C.js.map} +1 -1
  69. package/dist/chunks/{fixed-scroller.Bv65QAGg.js → fixed-scroller.B880PL1J.js} +2 -2
  70. package/dist/chunks/{fixed-scroller.Bv65QAGg.js.map → fixed-scroller.B880PL1J.js.map} +1 -1
  71. package/dist/chunks/{footer-actions.C33u1bdy.js → footer-actions.B68XcD93.js} +3 -3
  72. package/dist/chunks/{footer-actions.C33u1bdy.js.map → footer-actions.B68XcD93.js.map} +1 -1
  73. package/dist/chunks/{form-layout-title.CTnkin8u.js → form-layout-title.Cd2WlefD.js} +2 -2
  74. package/dist/chunks/{form-layout-title.CTnkin8u.js.map → form-layout-title.Cd2WlefD.js.map} +1 -1
  75. package/dist/chunks/{header.C9phQQdd.js → header.DwTrDlSa.js} +4 -4
  76. package/dist/chunks/{header.C9phQQdd.js.map → header.DwTrDlSa.js.map} +1 -1
  77. package/dist/chunks/input-field.CKOdyDVy.js +226 -0
  78. package/dist/chunks/input-field.CKOdyDVy.js.map +1 -0
  79. package/dist/chunks/{inspector.types.B8ma6aEp.js → inspector.types.DaY6OOzz.js} +2 -2
  80. package/dist/chunks/{inspector.types.B8ma6aEp.js.map → inspector.types.DaY6OOzz.js.map} +1 -1
  81. package/dist/chunks/{link.n62xz4hO.js → link.v-y0fKjn.js} +2 -2
  82. package/dist/chunks/link.v-y0fKjn.js.map +1 -0
  83. package/dist/chunks/{loading-button.DG5CBOC6.js → loading-button.2h9RXXIZ.js} +2 -2
  84. package/dist/chunks/{loading-button.DG5CBOC6.js.map → loading-button.2h9RXXIZ.js.map} +1 -1
  85. package/dist/chunks/{menu.CRSCf_7g.js → menu.DEeyofbM.js} +3 -3
  86. package/dist/chunks/{menu.CRSCf_7g.js.map → menu.DEeyofbM.js.map} +1 -1
  87. package/dist/chunks/{modal-fullscreen.CHk3iiWD.js → modal-fullscreen.Ct4aitSv.js} +4 -4
  88. package/dist/chunks/{modal-fullscreen.CHk3iiWD.js.map → modal-fullscreen.Ct4aitSv.js.map} +1 -1
  89. package/dist/chunks/{modal.CZ7IpM0s.js → modal.tUtoM34X.js} +5 -5
  90. package/dist/chunks/{modal.CZ7IpM0s.js.map → modal.tUtoM34X.js.map} +1 -1
  91. package/dist/chunks/{pagination.D1Eq93AU.js → pagination.CqrSR1Md.js} +111 -110
  92. package/dist/chunks/{pagination.D1Eq93AU.js.map → pagination.CqrSR1Md.js.map} +1 -1
  93. package/dist/chunks/{popover.Dgrhz6Ty.js → popover.BcWFpCY_.js} +3 -3
  94. package/dist/chunks/{popover.Dgrhz6Ty.js.map → popover.BcWFpCY_.js.map} +1 -1
  95. package/dist/chunks/{search-bar.CKz-FPCl.js → search-bar.CN9pWrLP.js} +36 -29
  96. package/dist/chunks/search-bar.CN9pWrLP.js.map +1 -0
  97. package/dist/chunks/{secondary-nav.DDg3jyak.js → secondary-nav.bchOEARi.js} +2 -2
  98. package/dist/chunks/{secondary-nav.DDg3jyak.js.map → secondary-nav.bchOEARi.js.map} +1 -1
  99. package/dist/chunks/{sidepanel.Beqpqgzb.js → sidepanel.BjrsqXLl.js} +4 -4
  100. package/dist/chunks/{sidepanel.Beqpqgzb.js.map → sidepanel.BjrsqXLl.js.map} +1 -1
  101. package/dist/chunks/{status.types.UkYKuQHH.js → status.types.B0jtv0c7.js} +6 -6
  102. package/dist/chunks/status.types.B0jtv0c7.js.map +1 -0
  103. package/dist/chunks/{structured-list-item.CEvVHuPw.js → structured-list-item.C4gxvOkq.js} +3 -3
  104. package/dist/chunks/{structured-list-item.CEvVHuPw.js.map → structured-list-item.C4gxvOkq.js.map} +1 -1
  105. package/dist/chunks/{summary-grid-item-custom.Mh4w6dXl.js → summary-grid-item-custom.CPprUptt.js} +2 -2
  106. package/dist/chunks/{summary-grid-item-custom.Mh4w6dXl.js.map → summary-grid-item-custom.CPprUptt.js.map} +1 -1
  107. package/dist/chunks/{tabs.BiTr_PdY.js → tabs.Casntai-.js} +2 -2
  108. package/dist/chunks/{tabs.BiTr_PdY.js.map → tabs.Casntai-.js.map} +1 -1
  109. package/dist/chunks/{textarea.DPL1yV7o.js → textarea.B4MZ_pi1.js} +2 -2
  110. package/dist/chunks/{textarea.DPL1yV7o.js.map → textarea.B4MZ_pi1.js.map} +1 -1
  111. package/dist/chunks/{timeline-item.D1VPSSGb.js → timeline-item.Bmn0Pu11.js} +6 -6
  112. package/dist/chunks/{timeline-item.D1VPSSGb.js.map → timeline-item.Bmn0Pu11.js.map} +1 -1
  113. package/dist/chunks/{toast.C7L41pAm.js → toast.BEipTIrz.js} +2 -2
  114. package/dist/chunks/{toast.C7L41pAm.js.map → toast.BEipTIrz.js.map} +1 -1
  115. package/dist/chunks/{toggle-button.D5Ann2NH.js → toggle-button.CYplDIO-.js} +2 -2
  116. package/dist/chunks/{toggle-button.D5Ann2NH.js.map → toggle-button.CYplDIO-.js.map} +1 -1
  117. package/dist/chunks/{tutorial.RhC117bN.js → tutorial.DG5I6TRS.js} +4 -4
  118. package/dist/chunks/{tutorial.RhC117bN.js.map → tutorial.DG5I6TRS.js.map} +1 -1
  119. package/dist/chunks/{use-cached-selected-values.DYwPtMZL.js → use-cached-selected-values.D5ARl96f.js} +3 -3
  120. package/dist/chunks/{use-cached-selected-values.DYwPtMZL.js.map → use-cached-selected-values.D5ARl96f.js.map} +1 -1
  121. package/dist/code-snippet.js +1 -1
  122. package/dist/dashboard-template.js +1 -1
  123. package/dist/dashed-underline.js +1 -1
  124. package/dist/data-grid-template.js +1 -1
  125. package/dist/data-grid.js +1 -1
  126. package/dist/date-picker.js +2 -2
  127. package/dist/date-range-picker.js +2 -2
  128. package/dist/dropdown.js +3 -3
  129. package/dist/empty-state.js +1 -1
  130. package/dist/filter-bar.js +1 -1
  131. package/dist/form-layout.js +1 -1
  132. package/dist/header.js +1 -1
  133. package/dist/index.js +42 -42
  134. package/dist/input-field.js +1 -1
  135. package/dist/inspector.js +1 -1
  136. package/dist/internal.js +5 -5
  137. package/dist/link.js +1 -1
  138. package/dist/menu.js +1 -1
  139. package/dist/modal-fullscreen.js +1 -1
  140. package/dist/modal.js +2 -2
  141. package/dist/pagination.js +1 -1
  142. package/dist/popover.js +1 -1
  143. package/dist/search-bar.js +2 -2
  144. package/dist/secondary-nav.js +1 -1
  145. package/dist/sidepanel.js +1 -1
  146. package/dist/status.js +1 -1
  147. package/dist/structured-list.js +1 -1
  148. package/dist/styles/bento-dark.css +8 -2
  149. package/dist/styles/bento-light.css +9 -3
  150. package/dist/styles/bento.css +9 -3
  151. package/dist/styles/legacy.css +9 -3
  152. package/dist/styles/styleguide.css +9 -3
  153. package/dist/summary-grid.js +1 -1
  154. package/dist/tabs.js +1 -1
  155. package/dist/textarea.js +1 -1
  156. package/dist/timeline.js +1 -1
  157. package/dist/toast.js +1 -1
  158. package/dist/tutorial.js +1 -1
  159. package/dist/web-types.json +304 -164
  160. package/package.json +8 -7
  161. package/dist/chunks/data-grid.Bs1AeOdW.js +0 -2104
  162. package/dist/chunks/data-grid.Bs1AeOdW.js.map +0 -1
  163. package/dist/chunks/input-field.D8GdzKoR.js +0 -225
  164. package/dist/chunks/input-field.D8GdzKoR.js.map +0 -1
  165. package/dist/chunks/link.n62xz4hO.js.map +0 -1
  166. package/dist/chunks/search-bar.CKz-FPCl.js.map +0 -1
  167. package/dist/chunks/status.types.UkYKuQHH.js.map +0 -1
@@ -1,2104 +0,0 @@
1
- import { ref as O, reactive as Se, toRefs as Ee, computed as R, watchEffect as Vt, watch as k, onMounted as be, nextTick as V, onUnmounted as Ke, onBeforeUpdate as Zt, defineComponent as Q, toRef as Qe, useSlots as et, provide as jt, inject as Fe } from "vue";
2
- import { C as qt } from "./checkmark-circle-fill.DVl6QSwm.js";
3
- import { W as Yt } from "./warning-filled.CLKRzGMT.js";
4
- import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
5
- import { C as tt } from "./cross.CsUPDmaA.js";
6
- import { N as Pe } from "./checkbox-input.Bo4NxNOh.js";
7
- import { d as Xt } from "./popper-container.CnWphJTN.js";
8
- import { K as X, B as Jt } from "./tooltip.CS2Gij6x.js";
9
- import { B as Kt } from "./action-bar.D4-U6Fkb.js";
10
- import { B as Qt } from "./pagination.D1Eq93AU.js";
11
- import { B as nt } from "./loading-indicator.z8COalOc.js";
12
- import { B as he, p as st } from "./typography.Bu_WAKdf.js";
13
- import { u as en } from "./aria-label.CaUURpnB.js";
14
- import { g as tn } from "./get-slot-text.Cgn-E48s.js";
15
- import { u as ne } from "./i18n.BQkEbtPM.js";
16
- import { B as nn } from "./empty-state.c6UY_tmZ.js";
17
- import { B as me } from "./filter-bar.DQJ7y-B4.js";
18
- import { E as sn } from "./tabs.keys.Bc2pSKRw.js";
19
- import { D as ln } from "./data-grid-template.keys.2_AkxuNT.js";
20
- import { o as lt } from "./resize.Bqks3WUm.js";
21
- import "./index.Cl4_42j5.js";
22
- import { a as $e, B as an } from "./popover.Dgrhz6Ty.js";
23
- import { B as at } from "./button.PIszagl6.js";
24
- import { B as ot } from "./toggle.INRYdQzz.js";
25
- import { B as on } from "./search-bar.CKz-FPCl.js";
26
- import { u as rn } from "./dropdown.D-z8R4hr.js";
27
- import { g as cn } from "./generate-uid.D-HFI38h.js";
28
- import { S as dn } from "./search.CBKhp7zB.js";
29
- import { B as it } from "./toggle-button.D5Ann2NH.js";
30
- import { B as un } from "./directive.O3yEdalv.js";
31
- import { B as rt } from "./checkbox.5uVM-HLg.js";
32
- import { B as ct, O as fn, D as gn } from "./menu.CRSCf_7g.js";
33
- import { E as _n } from "./link.n62xz4hO.js";
34
- import { C as vn } from "./copy.fvajyLGQ.js";
35
- import { u as Cn } from "./use-has-slot.C9lQZ6nz.js";
36
- import { B as mn } from "./info-icon.CCR-cAFR.js";
37
- import { A as pn } from "./dialog-page.Qi9Zc34k.js";
38
- import { l as xe } from "./events.CMzGybJJ.js";
39
- import { B as hn, a as Ln } from "./loading-button.DG5CBOC6.js";
40
- import "../assets/data-grid.css";
41
- var Le = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Le || {}), J = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(J || {}), ee = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ee || {}), A = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(A || {}), pe = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(pe || {}), P = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SORT = "sort", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(P || {});
42
- const Sn = (s, e) => {
43
- const n = O(null), t = O(!1), l = O(void 0), o = s.value.reduce((C, L) => (C[L.field] = null, C), {}), c = Se(o), _ = Ee(c);
44
- let f = 0, v = "";
45
- const p = R(
46
- () => Object.fromEntries(s.value.map(({ field: C, width: L, minWidth: y }) => [C, { width: L, minWidth: y }]))
47
- );
48
- Vt(() => l.value = p.value);
49
- let d = null, u = null;
50
- const r = (C) => {
51
- const L = C.clientX - f, y = v, w = l.value[y].width + L;
52
- l.value[y].width = w > p.value[y].minWidth ? w : p.value[y].minWidth, e(P.COLUMN_RESIZING, l.value), f = C.clientX;
53
- }, g = () => {
54
- t.value = !1, d == null || d(), u == null || u(), v && e(P.COLUMN_RESIZE, {
55
- field: v,
56
- width: l.value[v].width
57
- }), d = null, u = null, v = "", f = null;
58
- }, h = (C, L, y) => {
59
- if (y.preventDefault(), C) {
60
- if (t.value = !0, y.buttons !== 1) {
61
- g();
62
- return;
63
- }
64
- v = L, f = y.clientX, d = xe(window, "mousemove", r), u = xe(window, "mouseup", g);
65
- }
66
- };
67
- return k(
68
- () => t.value,
69
- (C, L) => {
70
- !C && L && (e(P.COLUMN_HOVER, n.value), n.value = null);
71
- }
72
- ), {
73
- resizeData: l,
74
- allColumnRefs: _,
75
- startResize: h,
76
- isResizing: t,
77
- columnHoverEventToEmitAfterResizing: n
78
- };
79
- }, En = 100, Ue = 50, te = "b-actions-column", bn = 32, On = 56, Rn = 1, yn = 16, An = 20, Tn = (s, e, n) => {
80
- const t = {}, l = [], o = (_) => {
81
- const f = t[_];
82
- f && f.frozen !== !0 && (t[_].frozen = !0, l.push(_));
83
- };
84
- function c() {
85
- if (l.length === n.length)
86
- return;
87
- const _ = { min: {}, max: {} };
88
- let f = s, v = e, p = 0;
89
- l.forEach((d) => {
90
- f -= t[d].computedWidth, v -= t[d].flex;
91
- });
92
- for (let d = 0, u = n.length; d < u; d += 1) {
93
- const r = n[d];
94
- if (t[r.field] && t[r.field].frozen === !0)
95
- continue;
96
- let h = f / v * r.flex;
97
- h < r.minWidth && (p += r.minWidth - h, h = r.minWidth, _.min[r.field] = !0), t[r.field] = {
98
- frozen: !1,
99
- computedWidth: h,
100
- flex: r.flex
101
- };
102
- }
103
- p > 0 ? Object.keys(_.min).forEach((d) => {
104
- o(d);
105
- }) : n.forEach(({ field: d }) => {
106
- o(d);
107
- }), c();
108
- }
109
- return c(), t;
110
- }, ze = (s, e) => {
111
- let n = Rn;
112
- return e && (n += yn * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
113
- }, In = (s) => {
114
- var e, n, t, l;
115
- if ((e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value && !((n = s == null ? void 0 : s.hasSelectableAcrossPages) != null && n.value))
116
- return bn;
117
- if ((t = s == null ? void 0 : s.hasSelectableColumn) != null && t.value && ((l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value))
118
- return On;
119
- }, wn = (s, e, n, t, l, o) => {
120
- const c = O(s.value), _ = O(e), f = O(n), v = O(t), p = O(l), d = O(!1);
121
- k(
122
- () => s.value,
123
- (m, i) => {
124
- var b, T;
125
- const E = (m == null ? void 0 : m.map(({ field: x }) => x).toString()) === (i == null ? void 0 : i.map(({ field: x }) => x).toString());
126
- if (!((b = o == null ? void 0 : o.allowColumnDragAndDrop) != null && b.value) || !E) {
127
- c.value = s.value;
128
- return;
129
- }
130
- c.value = ((T = c.value) == null ? void 0 : T.length) === 0 ? s.value : s.value.sort((x, z) => {
131
- const U = c.value.findIndex((I) => I.field === x.field), N = c.value.findIndex((I) => I.field === z.field);
132
- return U === -1 ? 1 : N === -1 ? -1 : U - N;
133
- });
134
- }
135
- );
136
- const u = O();
137
- let r = null;
138
- const g = R(() => {
139
- var U;
140
- const m = [];
141
- let i = 0, E = 0;
142
- const b = {};
143
- let T = c.value.filter((N) => N.visible !== !1);
144
- const x = c.value.filter((N) => N.visible === !1);
145
- if ((U = o == null ? void 0 : o.hasSelectableColumn) != null && U.value) {
146
- const N = In(o);
147
- T = [
148
- {
149
- field: te,
150
- label: "",
151
- minWidth: N,
152
- width: N,
153
- frozen: !0,
154
- padding: { left: !1, right: !1 }
155
- },
156
- ...T
157
- ];
158
- }
159
- T.forEach((N) => {
160
- const I = { ...N };
161
- let H;
162
- I.flex && I.flex > 0 ? (i += I.flex, H = 0, m.push(I)) : H = Math.max(
163
- (I == null ? void 0 : I.width) ?? En,
164
- (I == null ? void 0 : I.minWidth) ?? Ue
165
- ), E += H, I.width = H, I.minWidth = (I == null ? void 0 : I.minWidth) ?? Ue, b[I.field] = I;
166
- });
167
- const z = Math.max(u.value - E, 0);
168
- if (i > 0 && u.value > 0) {
169
- const N = Tn(z, i, m);
170
- Object.keys(N).forEach((I) => {
171
- b[I].width = N[I].computedWidth;
172
- });
173
- }
174
- return x.forEach((N) => {
175
- const I = { ...N };
176
- b[I.field] = I;
177
- }), Object.values(b);
178
- }), h = O(void 0), C = (m) => {
179
- h.value = { ...h.value, ...m };
180
- }, L = async () => {
181
- c.value.some((m) => m == null ? void 0 : m.autoWidth) && (d.value = !0, await V(), c == null || c.value.filter((m) => m == null ? void 0 : m.autoWidth).forEach(({ field: m, minWidth: i }) => {
182
- var x, z, U, N;
183
- const E = ze(
184
- (x = v.value) == null ? void 0 : x[m],
185
- (z = o == null ? void 0 : o.hasColumnPanel) == null ? void 0 : z.value
186
- ), b = (N = (U = p.value) == null ? void 0 : U[m]) == null ? void 0 : N.reduce(
187
- (I, H) => Math.max(I, ze(H)),
188
- 0
189
- ), T = Math.max(E, b ?? 0);
190
- (i === void 0 || T > i) && C({
191
- [m]: {
192
- width: T
193
- }
194
- });
195
- }), d.value = !1);
196
- };
197
- k([() => c.value, () => _.value], async () => {
198
- c.value.some((m) => m == null ? void 0 : m.autoWidth) && await L();
199
- });
200
- const y = R(
201
- () => g.value.map((m) => {
202
- var i, E;
203
- return {
204
- ...m,
205
- // Override column width with resized ones
206
- width: ((E = (i = h.value) == null ? void 0 : i[m.field]) == null ? void 0 : E.width) ?? m.width
207
- };
208
- })
209
- ), w = R(
210
- () => {
211
- var m;
212
- return (m = y.value) == null ? void 0 : m.filter(({ visible: i }) => i !== !1).reduce((i, E) => E.width + i, 0);
213
- }
214
- ), F = R(
215
- () => u.value <= w.value
216
- ), W = R(() => ({
217
- width: u.value > w.value ? "100%" : "fit-content"
218
- }));
219
- return be(() => {
220
- var i;
221
- const m = o != null && o.isDataGridTemplate ? An : 0;
222
- V(() => {
223
- f.value && (u.value = f.value.getBoundingClientRect().width - m);
224
- const E = k(
225
- f,
226
- () => {
227
- f.value && (V(() => E()), r = lt(f.value, ({ width: b }) => {
228
- u.value = b - m;
229
- }));
230
- },
231
- { immediate: !0 }
232
- );
233
- }), (i = document == null ? void 0 : document.fonts) != null && i.ready ? document.fonts.ready.then(() => {
234
- L();
235
- }) : L();
236
- }), Ke(() => {
237
- r == null || r.disconnect();
238
- }), Zt(() => {
239
- var m;
240
- p.value && ((m = Object.keys(p.value)) == null ? void 0 : m.length) > 0 && Object.keys(p.value).forEach((E) => {
241
- p.value[E] = [];
242
- });
243
- }), {
244
- columnDefs: y,
245
- gridColumnWidthStyle: W,
246
- onColumnWidthOverride: C,
247
- isMeasuringColumnWidths: d,
248
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
249
- columns: c
250
- };
251
- }, Nn = (s, e, n, t, l) => {
252
- const o = O(s.value ?? []), c = Se({
253
- allItemsSelected: !1,
254
- isIndeterminate: !1
255
- }), _ = () => {
256
- e(A.SELECT, o.value), e(A.UPDATE_SELECTION, o.value);
257
- }, f = (d) => {
258
- var r, g, h, C, L;
259
- if (o.value = d, ((r = n.value) == null ? void 0 : r.length) > 0 && ((g = n.value) == null ? void 0 : g.filter((y) => !l(y)).every((y) => o.value.includes(t(y))))) {
260
- c.allItemsSelected = !0;
261
- const y = ((h = n.value) == null ? void 0 : h.length) > 0 && n.value.every((w) => o.value.includes(t(w)));
262
- c.isIndeterminate = !y;
263
- } else
264
- c.allItemsSelected = !1, c.isIndeterminate = ((C = o.value) == null ? void 0 : C.length) > 0 && ((L = n.value) == null ? void 0 : L.length) > 0 && n.value.some((y) => o.value.includes(t(y)));
265
- }, v = (d) => {
266
- V(() => {
267
- var u, r, g;
268
- if (c.allItemsSelected = d, d) {
269
- o.value = (r = (u = n.value) == null ? void 0 : u.filter((C) => !l(C))) == null ? void 0 : r.map((C) => t(C));
270
- const h = ((g = n.value) == null ? void 0 : g.length) > 0 && n.value.every((C) => o.value.includes(t(C)));
271
- c.isIndeterminate = o.value.length > 0 && !h;
272
- } else
273
- o.value = [], c.isIndeterminate = !1;
274
- _();
275
- });
276
- }, p = (d) => {
277
- V(() => {
278
- f(d), _();
279
- });
280
- };
281
- return k(
282
- () => s.value,
283
- () => {
284
- f(s.value ?? []);
285
- },
286
- { immediate: !0 }
287
- ), k(
288
- () => n.value,
289
- () => {
290
- f(o.value);
291
- }
292
- ), { onAllRowSelect: v, onRowSelect: p, allItemsSelectedState: c, selectedItems: o };
293
- }, Dn = (s, e, n) => ({ isSorting: (c) => s.value.some((_) => _.field === c), getSortingDirection: (c) => {
294
- var _;
295
- return (_ = s.value.find((f) => f.field === c)) == null ? void 0 : _.direction;
296
- }, sortByColumnField: (c) => {
297
- var v;
298
- if (!e.value.some((p) => p.field === c && p.sortable))
299
- return;
300
- const f = [{
301
- field: c,
302
- direction: ((v = s.value.find((p) => p.field === c)) == null ? void 0 : v.direction) === ee.ASCENDING ? ee.DESCENDING : ee.ASCENDING
303
- }];
304
- n(P.SORT, f);
305
- } });
306
- var B = ((s) => (s[s.ARROW_DOWN = X.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = X.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = X.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = X.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = X.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = X.PAGE_DOWN] = "PAGE_DOWN", s[s.END = X.END] = "END", s[s.HOME = X.HOME] = "HOME", s))(B || {});
307
- const Mn = (s, e, n) => {
308
- const t = R(() => {
309
- const r = e.value.filter(({ visible: g }) => g !== !1);
310
- return n.value ? r.length + 1 : r.length;
311
- }), l = R(
312
- () => [...Object.values(s.value)].flat(1).sort((r, g) => {
313
- const h = Number(r.getAttribute("data-cellindex")), C = Number(g.getAttribute("data-cellindex"));
314
- return h > C ? 1 : C > h ? -1 : 0;
315
- })
316
- ), o = (r) => Math.floor(r / t.value), c = (r, g, h) => {
317
- const C = l.value.length - 1, L = t.value - 1, y = o(r), w = r - t.value * y;
318
- return {
319
- [B.PAGE_UP]: w,
320
- [B.PAGE_DOWN]: C - L + w,
321
- [B.END]: h ? C : t.value * y + L,
322
- [B.HOME]: h ? 0 : t.value * y
323
- }[g];
324
- }, _ = (r, g) => {
325
- const C = {
326
- [B.ARROW_DOWN]: t.value,
327
- [B.ARROW_UP]: -t.value,
328
- [B.ARROW_LEFT]: -1,
329
- [B.ARROW_RIGHT]: 1
330
- }[g], L = r + C;
331
- return L < 0 || L >= l.value.length ? r : L;
332
- }, f = (r) => [
333
- B.PAGE_UP,
334
- B.PAGE_DOWN,
335
- B.END,
336
- B.HOME
337
- ].includes(r), v = (r, g, h) => {
338
- const C = l.value.indexOf(r);
339
- return f(g) ? c(C, g, h) : _(C, g);
340
- }, p = (r, g, h) => {
341
- if (!l.value.includes(r))
342
- return;
343
- const C = v(r, g, h);
344
- l.value[C].focus();
345
- }, d = (r) => r in B;
346
- return {
347
- isNavigationKeyCode: d,
348
- focusOnNextGridcell: p,
349
- navigationInput: (r) => {
350
- const { ctrlKey: g, keyCode: h, target: C } = r;
351
- Object.values(s.value).flat(1).includes(C) && d(h) && p(C, h, g);
352
- }
353
- };
354
- }, Fn = 90, Pn = (s, e, n, t, l) => {
355
- const o = O(s), c = O(e), _ = O(n), f = O(t), v = R(() => o.value !== "none"), p = R(() => o.value === "automatic"), d = () => {
356
- l(A.UPDATE_SHOW_MORE);
357
- };
358
- return k(
359
- () => c.value,
360
- () => {
361
- p.value && _.value.offsetHeight / c.value * 100 > Fn && !f.value && d();
362
- }
363
- ), { isLazyLoad: v, isInfiniteScroll: p, verticalScrollPosition: c, emitLazyLoadEvent: d };
364
- }, $n = (s, e, n) => {
365
- const t = O(s), l = O(e), o = Se({
366
- dragging: null,
367
- dragToLeft: null,
368
- target: null
369
- }), c = (r, g = 0) => {
370
- const h = t.value.findIndex((y) => y.field === r.field), C = h + g;
371
- if (C < 0 || C > t.value.length - 1)
372
- return;
373
- const L = [...t.value];
374
- L.splice(C, 0, L.splice(h, 1)[0]), n(A.COLUMNS, L), n(A.UPDATE_COLUMNS, L);
375
- }, _ = (r, g) => {
376
- o.dragging = r, g.dataTransfer.setData("text", ""), g.dataTransfer.dropEffect = "move";
377
- }, f = (r, g) => {
378
- o.target = r;
379
- const h = g.currentTarget.getBoundingClientRect(), C = h.left + h.width / 2, L = g.clientX ?? 0;
380
- o.dragToLeft = L <= C;
381
- }, v = (r) => {
382
- var g, h;
383
- if (((g = o.dragging) == null ? void 0 : g.field) !== r.field) {
384
- const C = t.value.findIndex((m) => {
385
- var i;
386
- return m.field === ((i = o.dragging) == null ? void 0 : i.field);
387
- }), L = t.value.findIndex((m) => m.field === r.field), y = o.dragToLeft ? L : L + 1, w = y > C ? y - 1 : y;
388
- let F = [...t.value];
389
- F.splice(
390
- w === -1 ? 0 : w,
391
- 0,
392
- F.splice(C, 1)[0]
393
- );
394
- const W = t.value.findIndex((m) => !(m != null && m.frozen));
395
- ((h = o.dragging) == null ? void 0 : h.frozen) !== r.frozen && y !== W && (F = F.map(
396
- (m) => {
397
- var i;
398
- return ((i = o.dragging) == null ? void 0 : i.field) === m.field ? { ...m, frozen: !!(r != null && r.frozen) } : m;
399
- }
400
- )), n(A.COLUMNS, F), n(A.UPDATE_COLUMNS, F);
401
- }
402
- o.dragging = null, o.target = null;
403
- }, p = () => {
404
- o.dragging = null, o.dragToLeft = null, o.target = null;
405
- }, d = R(() => l.value ? {
406
- [P.COLUMN_DRAG_START]: (r, g) => _(r, g),
407
- [P.COLUMN_DRAG_ENTER]: (r, g) => f(r, g),
408
- [P.COLUMN_DROP]: (r) => v(r),
409
- [P.COLUMN_DRAG_END]: () => p()
410
- } : {}), u = R(() => (r) => l.value ? {
411
- dragenter: (g) => {
412
- g.preventDefault(), f(r, g);
413
- },
414
- drop: () => {
415
- v(r);
416
- },
417
- dragover: (g) => {
418
- g.preventDefault();
419
- }
420
- } : {});
421
- return {
422
- // Values
423
- draggingColumns: o,
424
- // Methods
425
- draggingEventsForColumns: d,
426
- draggingEventsForRowCell: u,
427
- onMoveColumnByOffset: c
428
- };
429
- }, xn = (s, e) => {
430
- const n = O(s), t = R(
431
- () => [...n.value].sort((d, u) => d.frozen === u.frozen ? 0 : d.frozen ? -1 : 1)
432
- ), l = R(
433
- () => t.value.filter((d) => d.frozen && d.visible !== !1)
434
- ), o = R(
435
- () => t.value.filter((d) => !d.frozen && d.visible !== !1)
436
- ), c = R(
437
- () => [
438
- { columnSet: l.value, id: "frozen", isFrozenColumns: !0 },
439
- { columnSet: o.value, id: "unfrozen" }
440
- ].filter(({ columnSet: d }) => d.length)
441
- ), _ = R(
442
- () => n.value.filter((d) => (d == null ? void 0 : d.visible) !== !1 && (d == null ? void 0 : d.field) !== te).length === 1
443
- ), f = (d) => e(A.UPDATE_CONDENSED, d), v = (d) => {
444
- e(A.COLUMNS, d), e(A.UPDATE_COLUMNS, d);
445
- };
446
- return {
447
- // Values
448
- columnSets: c,
449
- isOnlyOneVisibleColumn: _,
450
- sortedColumns: t,
451
- // Methods
452
- onConfigSettingsUpdate: f,
453
- onConfigSettingsColumnsUpdate: v,
454
- onConfigSettingsColumnUpdate: (d) => {
455
- const u = t.value.map(
456
- (r) => (r == null ? void 0 : r.field) === d.field ? d : r
457
- );
458
- v(u);
459
- }
460
- };
461
- }, Be = (s, e) => {
462
- const n = O(0);
463
- let t = null;
464
- const l = () => {
465
- s != null && s.value && e.value && (n.value = s.value.offsetHeight);
466
- };
467
- return be(() => {
468
- V(() => {
469
- const o = k(
470
- s,
471
- () => {
472
- s != null && s.value && (V(() => o()), t = lt(s.value, () => {
473
- l();
474
- }));
475
- },
476
- { immediate: !0 }
477
- );
478
- k(
479
- e,
480
- () => {
481
- e.value ? l() : n.value = 0;
482
- },
483
- { immediate: !0 }
484
- );
485
- });
486
- }), Ke(() => {
487
- t == null || t.disconnect();
488
- }), n;
489
- }, Un = (s, e, n) => {
490
- const t = O(0), l = O(!1), o = O(!1);
491
- return k(
492
- () => t.value,
493
- () => {
494
- s.value.scrollLeft = t.value, e.value.scrollLeft = t.value, l.value = !!t.value, o.value = e.value.scrollWidth - e.value.offsetWidth > t.value;
495
- }
496
- ), be(async () => {
497
- var f, v;
498
- await V(), ((f = e.value) == null ? void 0 : f.offsetWidth) < ((v = e.value) == null ? void 0 : v.scrollWidth) && (o.value = !0);
499
- }), {
500
- // Values
501
- scrollLeftPosition: t,
502
- hasLeftOverflow: l,
503
- hasRightOverflow: o,
504
- // Methods
505
- updateScrollPosition: (f) => {
506
- t.value = f.target.scrollLeft, n.value = s.value.scrollHeight - f.target.scrollTop;
507
- },
508
- updateScrollPositionOnFrozenColumnsNavigation: (f) => {
509
- f.key !== "Tab" && f.key !== "ArrowRight" && f.key !== "ArrowLeft" || (f.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
510
- s.value.style.overflowX = "auto";
511
- }));
512
- }
513
- };
514
- }, zn = (s, e, n, t) => {
515
- const l = O(null), o = R(() => {
516
- var h, C, L, y;
517
- if (!l.value || l.value.field === te)
518
- return {
519
- hoveredOverColumnField: "",
520
- isSeparatorOffset: !1,
521
- noBorderLeft: !1,
522
- noBorderRight: !1
523
- };
524
- const c = (C = (h = s.value.find((w) => w.isFrozenColumns)) == null ? void 0 : h.columnSet) == null ? void 0 : C.filter((w) => w.field !== te), _ = s.value.find((w) => !(w != null && w.isFrozenColumns)), f = l.value.frozen && (c == null ? void 0 : c[0].field) === l.value.field, v = !l.value.frozen && ((L = _ == null ? void 0 : _.columnSet) == null ? void 0 : L[0].field) === l.value.field, p = (e.value || n.value) && f, d = (e.value || n.value) && !c && v, u = c && v, r = (c == null ? void 0 : c.length) > 0 && l.value.frozen && (c == null ? void 0 : c[c.length - 1].field) === l.value.field, g = n.value && t.value && !l.value.frozen && ((y = _ == null ? void 0 : _.columnSet) == null ? void 0 : y[_.columnSet.length - 1].field) === l.value.field;
525
- return {
526
- hoveredOverColumnField: l.value.field,
527
- isSeparatorOffset: g,
528
- noBorderLeft: !!p || !!d || !!u,
529
- noBorderRight: !!r || !!g
530
- };
531
- });
532
- return {
533
- hoveredOverColumn: l,
534
- hoveredOverColumnState: o
535
- };
536
- };
537
- let Ge = 0;
538
- const Bn = {
539
- beforeCreate() {
540
- this.uuid = Ge.toString(), Ge += 1;
541
- }
542
- };
543
- var Gn = function() {
544
- var e = this, n = e._self._c;
545
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-arrow_up_down_sort__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
546
- }, Wn = [], kn = /* @__PURE__ */ $(
547
- Bn,
548
- Gn,
549
- Wn,
550
- !1,
551
- null,
552
- null
553
- );
554
- const Hn = kn.exports;
555
- let We = 0;
556
- const Vn = {
557
- beforeCreate() {
558
- this.uuid = We.toString(), We += 1;
559
- }
560
- };
561
- var Zn = function() {
562
- var e = this, n = e._self._c;
563
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
564
- }, jn = [], qn = /* @__PURE__ */ $(
565
- Vn,
566
- Zn,
567
- jn,
568
- !1,
569
- null,
570
- null
571
- );
572
- const Yn = qn.exports;
573
- let ke = 0;
574
- const Xn = {
575
- beforeCreate() {
576
- this.uuid = ke.toString(), ke += 1;
577
- }
578
- };
579
- var Jn = function() {
580
- var e = this, n = e._self._c;
581
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-freeze__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
582
- }, Kn = [], Qn = /* @__PURE__ */ $(
583
- Xn,
584
- Jn,
585
- Kn,
586
- !1,
587
- null,
588
- null
589
- );
590
- const dt = Qn.exports;
591
- let He = 0;
592
- const es = {
593
- beforeCreate() {
594
- this.uuid = He.toString(), He += 1;
595
- }
596
- };
597
- var ts = function() {
598
- var e = this, n = e._self._c;
599
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z" } }), n("path", { attrs: { fill: "#00112C", d: "M13.9404 5.23L12.8704 6.3C13.4704 6.97 13.9004 7.62 14.1304 8C13.4704 9.07 11.2504 12.25 8.00039 12.25C7.67039 12.25 7.34039 12.22 7.03039 12.14L5.80039 13.37C6.48039 13.61 7.21039 13.75 8.00039 13.75C12.7425 13.75 15.4838 8.69421 15.6649 8.36011C15.6671 8.35603 15.6689 8.35265 15.6704 8.35L15.8504 8L15.6704 7.65C15.6204 7.55 15.0204 6.43 13.9404 5.23Z" } }), n("path", { attrs: { fill: "#00112C", d: "M8.96039 3.85C8.65039 3.78 8.33039 3.75 8.00039 3.75C4.75039 3.75 2.53039 6.93 1.87039 8C2.10039 8.38 2.53039 9.02 3.12039 9.69L2.06039 10.75C0.98039 9.56 0.380391 8.45 0.330391 8.35L0.150391 8L0.330391 7.65C0.331838 7.64735 0.333668 7.64397 0.33588 7.63989C0.517034 7.30578 3.25829 2.25 8.00039 2.25C8.79039 2.25 9.52039 2.39 10.1904 2.62L8.96039 3.85Z" } })]);
600
- }, ns = [], ss = /* @__PURE__ */ $(
601
- es,
602
- ts,
603
- ns,
604
- !1,
605
- null,
606
- null
607
- );
608
- const ls = ss.exports;
609
- let Ve = 0;
610
- const as = {
611
- beforeCreate() {
612
- this.uuid = Ve.toString(), Ve += 1;
613
- }
614
- };
615
- var os = function() {
616
- var e = this, n = e._self._c;
617
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_ascending__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_ascending__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
618
- }, is = [], rs = /* @__PURE__ */ $(
619
- as,
620
- os,
621
- is,
622
- !1,
623
- null,
624
- null
625
- );
626
- const cs = rs.exports;
627
- let Ze = 0;
628
- const ds = {
629
- beforeCreate() {
630
- this.uuid = Ze.toString(), Ze += 1;
631
- }
632
- };
633
- var us = function() {
634
- var e = this, n = e._self._c;
635
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_descending__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_descending__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
636
- }, fs = [], gs = /* @__PURE__ */ $(
637
- ds,
638
- us,
639
- fs,
640
- !1,
641
- null,
642
- null
643
- );
644
- const _s = gs.exports;
645
- let je = 0;
646
- const vs = {
647
- beforeCreate() {
648
- this.uuid = je.toString(), je += 1;
649
- }
650
- };
651
- var Cs = function() {
652
- var e = this, n = e._self._c;
653
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { fill: "#00112C", d: "M7.99964 2.25C5.50387 2.25 3.57073 3.66588 2.3086 4.9806C1.6704 5.64539 1.18078 6.30745 0.850599 6.80272C0.685043 7.05106 0.558349 7.2593 0.471981 7.40748C0.428769 7.48162 0.395568 7.54087 0.372564 7.58275C0.36106 7.60369 0.352097 7.6203 0.345701 7.63227L0.338032 7.64672L0.335646 7.65126L0.334488 7.65348L0.154297 8L0.334225 8.34601L0.999638 8C0.334225 8.34601 0.334814 8.34715 0.334814 8.34715L0.335646 8.34874L0.338032 8.35328L0.345701 8.36773C0.352097 8.3797 0.36106 8.39631 0.372564 8.41725C0.395568 8.45913 0.428769 8.51838 0.471981 8.59252C0.558349 8.7407 0.685043 8.94894 0.850599 9.19728C1.18078 9.69255 1.6704 10.3546 2.3086 11.0194C3.57073 12.3341 5.50387 13.75 7.99964 13.75C10.4954 13.75 12.4285 12.3341 13.6907 11.0194C14.3289 10.3546 14.8185 9.69255 15.1487 9.19728C15.3142 8.94894 15.4409 8.7407 15.5273 8.59252C15.5705 8.51838 15.6037 8.45913 15.6267 8.41725C15.6382 8.39631 15.6472 8.3797 15.6536 8.36773L15.6612 8.35328L15.6636 8.34874L15.6648 8.34652L15.845 8L15.6651 7.65399L14.9996 8C15.6651 7.65399 15.6645 7.65285 15.6645 7.65285L15.6636 7.65126L15.6612 7.64672L15.6536 7.63227C15.6472 7.6203 15.6382 7.60369 15.6267 7.58275C15.6037 7.54087 15.5705 7.48162 15.5273 7.40748C15.4409 7.2593 15.3142 7.05106 15.1487 6.80272C14.8185 6.30745 14.3289 5.64539 13.6907 4.9806C12.4285 3.66588 10.4954 2.25 7.99964 2.25ZM14.9996 8L15.6648 8.34652C15.6648 8.34652 15.6651 8.34601 14.9996 8ZM0.999638 8L0.334488 7.65348C0.334488 7.65348 0.334225 7.65399 0.999638 8ZM2.09867 8.36522C2.00649 8.22694 1.92852 8.10363 1.86519 8C1.92852 7.89637 2.00649 7.77306 2.09867 7.63478C2.39349 7.19255 2.82887 6.60461 3.39068 6.0194C4.52855 4.83412 6.09541 3.75 7.99964 3.75C9.90387 3.75 11.4707 4.83412 12.6086 6.0194C13.1704 6.60461 13.6058 7.19255 13.9006 7.63478C13.9928 7.77306 14.0708 7.89637 14.1341 8C14.0708 8.10363 13.9928 8.22694 13.9006 8.36522C13.6058 8.80745 13.1704 9.39539 12.6086 9.9806C11.4707 11.1659 9.90387 12.25 7.99964 12.25C6.09541 12.25 4.52855 11.1659 3.39068 9.9806C2.82887 9.39539 2.39349 8.80745 2.09867 8.36522Z" } })]);
654
- }, ms = [], ps = /* @__PURE__ */ $(
655
- vs,
656
- Cs,
657
- ms,
658
- !1,
659
- null,
660
- null
661
- );
662
- const hs = ps.exports;
663
- let qe = 0;
664
- const Ls = {
665
- beforeCreate() {
666
- this.uuid = qe.toString(), qe += 1;
667
- }
668
- };
669
- var Ss = function() {
670
- var e = this, n = e._self._c;
671
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
672
- }, Es = [], bs = /* @__PURE__ */ $(
673
- Ls,
674
- Ss,
675
- Es,
676
- !1,
677
- null,
678
- null
679
- );
680
- const Os = bs.exports, Rs = {
681
- "en-US": {
682
- sortColumn: "Sort {name} column",
683
- sortColumnInAscendingOrder: "Sort {name} column in ascending order",
684
- sortColumnInDescendingOrder: "Sort {name} column in descending order",
685
- freezeColumn: "Freeze column",
686
- hideColumn: "Hide column",
687
- moveColumnLeft: "Move column left",
688
- moveColumnRight: "Move column right",
689
- selectAll: "Select all",
690
- selectPage: "Select this page",
691
- selectionMenu: "Selection menu",
692
- showColumn: "Show column",
693
- unfreezeColumn: "Unfreeze column",
694
- columnActions: "{name} column actions"
695
- },
696
- "pt-BR": {
697
- freezeColumn: "Congelar coluna",
698
- hideColumn: "Ocultar coluna",
699
- moveColumnLeft: "Mover coluna para a esquerda",
700
- moveColumnRight: "Mover coluna para a direita",
701
- selectAll: "Selecionar tudo",
702
- unfreezeColumn: "Descongelar coluna"
703
- },
704
- "ja-JP": {
705
- freezeColumn: "列を固定",
706
- hideColumn: "列を非表示",
707
- moveColumnLeft: "列を左へ移動",
708
- moveColumnRight: "列を右へ移動",
709
- selectAll: "すべて選択",
710
- unfreezeColumn: "列の固定を解除"
711
- }
712
- }, ys = {
713
- i18n: { messages: Rs },
714
- name: "data-grid-columns"
715
- }, As = /* @__PURE__ */ Q({
716
- ...ys,
717
- props: {
718
- /**
719
- * Column definitions using 'key' to relate to data object.
720
- */
721
- columns: {
722
- type: Array,
723
- required: !0
724
- },
725
- /**
726
- * Columns being dragged, contains dragging column and a target column
727
- */
728
- draggingColumns: {
729
- type: Object,
730
- default: void 0
731
- },
732
- /**
733
- * Toggle the columns draggable events.
734
- */
735
- hasDraggableColumns: {
736
- type: Boolean,
737
- default: !0
738
- },
739
- /**
740
- * If resize is enabled
741
- */
742
- hasResizableColumns: {
743
- type: Boolean,
744
- default: !0
745
- },
746
- /**
747
- * Signifies if the column panel is enabled.
748
- */
749
- hasColumnPanel: {
750
- type: Boolean,
751
- default: !1
752
- },
753
- /**
754
- * If set to true, aligns the first column panel to the right of its button.
755
- */
756
- hasFirstColumnPanelRightAligned: {
757
- type: Boolean,
758
- default: !1
759
- },
760
- /**
761
- * If the data grid has overflow on the left side
762
- */
763
- hasLeftOverflow: {
764
- type: Boolean,
765
- default: !1
766
- },
767
- /**
768
- * The column hovered over state and whether the hovered over column should show a border right or left.
769
- */
770
- hoveredOverColumnState: {
771
- type: Object,
772
- required: !0
773
- },
774
- /**
775
- * Toggled to true when the DataGrid has auto width columns and is measuring the
776
- */
777
- isMeasuringColumnWidths: {
778
- type: Boolean,
779
- default: !1
780
- },
781
- /**
782
- * Used to disable hiding the last visible column.
783
- */
784
- isOnlyOneVisibleColumn: {
785
- type: Boolean,
786
- default: !1
787
- },
788
- /**
789
- * If these columns are frozen (pinned) columns
790
- */
791
- isFrozenColumns: {
792
- type: Boolean,
793
- default: !1
794
- },
795
- /**
796
- * Show frozen columns separator
797
- */
798
- showFrozenColumnsSeparator: {
799
- type: Boolean,
800
- default: !1
801
- },
802
- /**
803
- * The column all items selected state
804
- */
805
- allItemsSelectedState: {
806
- type: Object,
807
- default: void 0
808
- },
809
- /**
810
- * Determines if the user has enabled row selection
811
- */
812
- selectable: {
813
- type: Boolean,
814
- default: !1
815
- },
816
- /**
817
- * Adds an extra option when selecting all, to select items in other pages too
818
- */
819
- selectableAcrossPages: {
820
- type: Boolean,
821
- default: !1
822
- },
823
- /**
824
- * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
825
- * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
826
- */
827
- sortBy: {
828
- type: Array,
829
- // NOTE: is an array to allow multi-sorting in the future
830
- default: () => []
831
- },
832
- /**
833
- * Truncates all data grid column headers
834
- */
835
- truncateColumnHeaders: {
836
- type: Boolean,
837
- default: !1
838
- }
839
- },
840
- emits: ["column-hover"],
841
- setup(s, { expose: e, emit: n }) {
842
- const t = s, l = 100, { t: o } = ne(), { columns: c, sortBy: _ } = Ee(t), f = O({}), v = O({}), p = O(), d = O(), u = (a) => n(P.SELECT_ALL_ROWS, a), r = (a) => a.field === te, g = R(() => [
843
- {
844
- text: o("selectPage"),
845
- handler: () => u(!0)
846
- },
847
- {
848
- text: o("selectAll"),
849
- handler: () => n(P.SELECT_ALL_ACROSS_PAGES)
850
- }
851
- ]), { startResize: h, isResizing: C, columnHoverEventToEmitAfterResizing: L } = Sn(c, n), { isSorting: y, getSortingDirection: w, sortByColumnField: F } = Dn(_, c, n), W = (a) => {
852
- var Y;
853
- if (!a.sortable)
854
- return null;
855
- const D = (Y = t.sortBy.find(({ field: se }) => se === a.field)) == null ? void 0 : Y.direction;
856
- return D ? {
857
- [ee.ASCENDING]: pe.ASCENDING,
858
- [ee.DESCENDING]: pe.DESCENDING
859
- }[D] : pe.NONE;
860
- }, m = R(() => (a) => t.hasDraggableColumns ? {
861
- dragstart: (D) => {
862
- n(P.COLUMN_DRAG_START, a, D);
863
- },
864
- dragover: (D) => {
865
- D.preventDefault();
866
- },
867
- dragenter: (D) => {
868
- D.preventDefault(), n(P.COLUMN_DRAG_ENTER, a, D);
869
- },
870
- drop: () => {
871
- n(P.COLUMN_DROP, a);
872
- },
873
- dragend: () => {
874
- n(P.COLUMN_DRAG_END);
875
- }
876
- } : {}), i = R(() => (a) => [
877
- {
878
- text: o("moveColumnLeft"),
879
- handler: () => n(P.COLUMN_MOVE, a, -1),
880
- icon: pn,
881
- disabled: t.columns[0].field === a.field
882
- },
883
- {
884
- text: o("moveColumnRight"),
885
- handler: () => n(P.COLUMN_MOVE, a, 1),
886
- icon: Yn,
887
- disabled: t.columns[t.columns.length - 1].field === a.field
888
- },
889
- {
890
- text: a != null && a.frozen ? o("unfreezeColumn") : o("freezeColumn"),
891
- handler: () => n(P.COLUMN_UPDATE, { ...a, frozen: !(a != null && a.frozen) }),
892
- icon: dt
893
- },
894
- {
895
- text: (a == null ? void 0 : a.visible) !== !1 ? o("hideColumn") : o("showColumn"),
896
- handler: () => {
897
- n(P.COLUMN_UPDATE, {
898
- ...a,
899
- visible: (a == null ? void 0 : a.visible) === !1
900
- });
901
- },
902
- icon: (a == null ? void 0 : a.visible) !== !1 ? ls : hs,
903
- disabled: (a == null ? void 0 : a.mandatory) || (a == null ? void 0 : a.visible) !== !1 && t.isOnlyOneVisibleColumn
904
- }
905
- ]), E = (a) => {
906
- p.value = a.field, d.value && clearTimeout(d.value);
907
- }, b = () => {
908
- const a = setTimeout(() => {
909
- p.value = "";
910
- }, l);
911
- d.value = a;
912
- }, T = (a) => {
913
- let D = {
914
- mouseenter: () => {
915
- E(a), C.value ? L.value = a : n("column-hover", a);
916
- },
917
- mouseleave: () => {
918
- b(), C.value ? L.value = null : n("column-hover", null);
919
- },
920
- focus: () => E(a)
921
- };
922
- return r(a) || (D = {
923
- ...D,
924
- ...m.value(a)
925
- }), D;
926
- }, x = (a) => a.infoIconTooltip || a.sortable || t.hasColumnPanel, z = (a, D) => {
927
- var q;
928
- ((q = f.value) == null ? void 0 : q[D]) === void 0 && (f.value = { ...f.value, [D]: null }), a !== null && (f.value[D] = a);
929
- }, U = R(() => {
930
- var D;
931
- const a = {
932
- "b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
933
- };
934
- return (D = c.value[0]) != null && D.frozen ? {
935
- ...a,
936
- "b-data-grid-columns--frozen": !0,
937
- "b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
938
- "b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
939
- } : {
940
- ...a,
941
- "b-data-grid-columns--unfrozen": !0
942
- };
943
- }), N = (a, D) => a && D === 0 ? $e.BOTTOM_START : $e.BOTTOM_END, I = (a, D) => {
944
- var q, Y, se, ae, le, de, ue, fe, ge, _e;
945
- return {
946
- "b-data-grid-columns__column--column-hovered": a.field === t.hoveredOverColumnState.hoveredOverColumnField,
947
- "b-data-grid-columns__column--column-hovered-no-border-left": a.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
948
- "b-data-grid-columns__column--column-hovered-no-border-right": a.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
949
- "b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && D === c.value.length - 1,
950
- "b-data-grid-columns__column--sortable": a.sortable,
951
- "b-data-grid-columns__column--padding-left-unset": ((q = a == null ? void 0 : a.padding) == null ? void 0 : q.left) === !1,
952
- "b-data-grid-columns__column--padding-right-unset": ((Y = a == null ? void 0 : a.padding) == null ? void 0 : Y.right) === !1,
953
- "b-data-grid-columns__column--numeric": a == null ? void 0 : a.numeric,
954
- "b-data-grid-columns__column--frozen": a == null ? void 0 : a.frozen,
955
- "b-data-grid-columns__column--is-re-ordering": (a == null ? void 0 : a.field) === ((ae = (se = t.draggingColumns) == null ? void 0 : se.dragging) == null ? void 0 : ae.field),
956
- "b-data-grid-columns__column--is-re-ordering-target-left": (a == null ? void 0 : a.field) === ((de = (le = t.draggingColumns) == null ? void 0 : le.target) == null ? void 0 : de.field) && ((ue = t.draggingColumns) == null ? void 0 : ue.dragToLeft),
957
- "b-data-grid-columns__column--is-re-ordering-target-right": (a == null ? void 0 : a.field) === ((ge = (fe = t.draggingColumns) == null ? void 0 : fe.target) == null ? void 0 : ge.field) && !((_e = t.draggingColumns) != null && _e.dragToLeft),
958
- "b-data-grid-columns__column--with-sorting-or-column-panel": a.sortable || a.infoIconTooltip || t.hasColumnPanel && p.value === a.field || t.selectableAcrossPages
959
- };
960
- }, H = (a) => ({
961
- "b-data-grid-columns__column-header-and-actions--numeric": a == null ? void 0 : a.numeric
962
- }), ie = (a) => ({
963
- "b-data-grid-columns__column-actions--numeric": a == null ? void 0 : a.numeric
964
- }), re = (a) => ({
965
- "b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
966
- "b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === a.field && t.hoveredOverColumnState.isSeparatorOffset
967
- }), ce = R(() => ({
968
- "b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
969
- }));
970
- return e({
971
- columnHeaderRefs: f
972
- }), { __sfc: !0, props: t, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: l, t: o, columns: c, sortBy: _, columnHeaderRefs: f, contextMenuRef: v, hoveredColumnField: p, closingTimeOutId: d, onAllRowSelect: u, isActionsColumn: r, selectAllMenu: g, startResize: h, isResizing: C, columnHoverEventToEmitAfterResizing: L, isSorting: y, getSortingDirection: w, sortByColumnField: F, getSortingColumnDirection: W, draggingEventsForColumn: m, contextualMenuData: i, showContextualMenu: E, hideContextualMenu: b, dataGridColumnEvents: T, hasColumnActions: x, registerColumnsRefs: z, conditionalColumnsClasses: U, computeMenuPosition: N, conditionalColumnClasses: I, conditionalColumnHeaderAndActionsClasses: H, conditionalColumnActionsClasses: ie, conditionalColumnSeparatorClasses: re, conditionalColumnHeaderClasses: ce, BentoCheckbox: rt, BentoDatagridSortDirection: ee, BentoTypography: he, BentoInfoIcon: mn, DatagridColumnsEvent: P, BentoMenu: ct, BentoToggleButton: it, ArrowUpAndDownSortIcon: Hn, SortAscendingIcon: cs, SortDescendingIcon: _s, TriangleDown: Os };
973
- }
974
- });
975
- var Ts = function() {
976
- var e = this, n = e._self._c, t = e._self._setupProxy;
977
- return n("div", { staticClass: "b-data-grid-columns", class: t.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(t.columns, function(l, o) {
978
- return n("div", e._g({ key: l.field, ref: (c) => t.registerColumnsRefs(c, l.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: t.conditionalColumnClasses(l, o), style: { width: l.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${l.width}px` }, attrs: { "aria-colindex": o + 1, "aria-label": l.label, "aria-sort": t.getSortingColumnDirection(l), "data-testid": `${l.field}-column-header`, draggable: e.hasDraggableColumns && !t.isResizing && !t.isActionsColumn(l), role: "columnheader", tabindex: l.sortable || e.hasColumnPanel || l.infoIconTooltip ? "0" : "-1" } }, t.dataGridColumnEvents(l)), [t.isActionsColumn(l) && e.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(t.BentoCheckbox, { attrs: { "model-value": e.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": t.onAllRowSelect } }), e.selectableAcrossPages ? [n(t.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: t.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
979
- return [n(t.TriangleDown, { attrs: { "svg-title": t.t("selectionMenu") } })];
980
- }, proxy: !0 }], null, !0) })] : e._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: t.conditionalColumnHeaderAndActionsClasses(l), attrs: { "aria-label": t.t("columnActions", { name: l.label }), "aria-live": "polite", role: "region" } }, [n(t.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: t.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [e._t(`head-${l.field}`, function() {
981
- return [n("span", { staticClass: "b-data-grid-columns__label" }, [e._v(e._s(l.label))])];
982
- }, { column: l })], 2), t.hasColumnActions(l) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: t.conditionalColumnActionsClasses(l) }, [l.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(t.BentoInfoIcon, { attrs: { "tooltip-text": l.infoIconTooltip } })], 1) : e._e(), l.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(t.BentoToggleButton, { attrs: { condensed: "", toggled: t.isSorting(l.field), variant: "tertiary" }, on: { click: function(c) {
983
- return t.sortByColumnField(l.field);
984
- } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
985
- return [t.getSortingDirection(l.field) ? t.getSortingDirection(l.field) === t.BentoDatagridSortDirection.ASCENDING ? n(t.SortAscendingIcon, { attrs: { "svg-title": t.t("sortColumnInDescendingOrder", { name: l.label }) } }) : t.getSortingDirection(l.field) === t.BentoDatagridSortDirection.DESCENDING ? n(t.SortDescendingIcon, { attrs: { "svg-title": t.t("sortColumnInAscendingOrder", { name: l.label }) } }) : e._e() : n(t.ArrowUpAndDownSortIcon, { attrs: { "svg-title": t.t("sortColumn", { name: l.label }) } })];
986
- }, proxy: !0 }], null, !0) })], 1) : e._e(), e.hasColumnPanel && t.hoveredColumnField === l.field ? n(t.BentoMenu, { ref: (c) => t.contextMenuRef[l.field] = c, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: t.contextualMenuData(l), "menu-position": t.computeMenuPosition(e.hasFirstColumnPanelRightAligned, o), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(c) {
987
- return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_OPEN);
988
- }, close: function(c) {
989
- return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
990
- } } }) : e._e()], 1) : e._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: t.conditionalColumnSeparatorClasses(l), attrs: { "data-testid": `data-grid-column-${l.field}`, role: "presentation" }, on: { mousedown: function(c) {
991
- return t.startResize(e.hasResizableColumns, l.field, c);
992
- }, click: function(c) {
993
- c.stopPropagation();
994
- } } }, [!e.isFrozenColumns || e.isFrozenColumns && o !== t.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
995
- }), 0);
996
- }, Is = [], ws = /* @__PURE__ */ $(
997
- As,
998
- Ts,
999
- Is,
1000
- !1,
1001
- null,
1002
- "81c8604f"
1003
- );
1004
- const Ns = ws.exports;
1005
- var K = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(K || {});
1006
- let Ye = 0;
1007
- const Ds = {
1008
- beforeCreate() {
1009
- this.uuid = Ye.toString(), Ye += 1;
1010
- }
1011
- };
1012
- var Ms = function() {
1013
- var e = this, n = e._self._c;
1014
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-settings__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
1015
- }, Fs = [], Ps = /* @__PURE__ */ $(
1016
- Ds,
1017
- Ms,
1018
- Fs,
1019
- !1,
1020
- null,
1021
- null
1022
- );
1023
- const $s = Ps.exports, xs = {
1024
- "en-US": {
1025
- toggleColumnVisibility: "Toggle {label} column visibility",
1026
- toggleColumnFreeze: "Toggle {label} column freeze"
1027
- }
1028
- }, Us = Q({
1029
- i18n: { messages: xs },
1030
- name: "bento-data-grid",
1031
- components: {
1032
- BentoFreezeIcon: dt,
1033
- BentoToggle: ot
1034
- },
1035
- props: {
1036
- /**
1037
- * Is column visibitlity toggle disabled
1038
- */
1039
- isColumnVisibilityToggleDisabled: {
1040
- type: Boolean,
1041
- required: !0
1042
- },
1043
- /**
1044
- * Column definition
1045
- */
1046
- column: {
1047
- type: Object,
1048
- required: !0
1049
- }
1050
- },
1051
- emits: ["visible-column", "updated-column"],
1052
- setup(s, { emit: e }) {
1053
- const { t: n } = ne(), t = O(!1), l = R(() => {
1054
- var d;
1055
- return (d = s.column) == null ? void 0 : d.frozen;
1056
- }), o = R(() => {
1057
- var d;
1058
- return ((d = s.column) == null ? void 0 : d.visible) !== !1;
1059
- }), c = () => {
1060
- e("visible-column", { ...s.column, visible: !o.value });
1061
- }, _ = () => {
1062
- e("updated-column", { ...s.column, frozen: !l.value });
1063
- }, f = () => {
1064
- l.value || (t.value = !0);
1065
- }, v = () => {
1066
- l.value || (t.value = !1);
1067
- }, p = R(() => ({
1068
- "b-data-grid-config-settings-column-row__freeze-icon--frozen": l.value
1069
- }));
1070
- return {
1071
- // Values
1072
- isFreezeIconOptionShown: t,
1073
- isColumnFrozen: l,
1074
- freezeIconConditionalClasses: p,
1075
- isColumnVisible: o,
1076
- // Methods
1077
- toggleColumnVisibility: c,
1078
- showFreezeIcon: f,
1079
- hideFreezeIcon: v,
1080
- toggleColumnFreeze: _,
1081
- // Translations
1082
- t: n
1083
- };
1084
- }
1085
- });
1086
- var zs = function() {
1087
- var e = this, n = e._self._c;
1088
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": e.t("toggleColumnVisibility", { label: e.column.label }), disabled: e.isColumnVisibilityToggleDisabled, "label-position": "after", value: e.isColumnVisible }, on: { input: e.toggleColumnVisibility } }, [e._v(" " + e._s(e.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isColumnFrozen || e.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: e.freezeIconConditionalClasses, attrs: { "aria-label": e.t("toggleColumnFreeze", { label: e.column.label }) }, nativeOn: { click: function(t) {
1089
- return e.toggleColumnFreeze.apply(null, arguments);
1090
- } } })], 1);
1091
- }, Bs = [], Gs = /* @__PURE__ */ $(
1092
- Us,
1093
- zs,
1094
- Bs,
1095
- !1,
1096
- null,
1097
- "eae7733f"
1098
- );
1099
- const Ws = Gs.exports, ks = {
1100
- "en-US": {
1101
- closeConfigSettingsPanel: "Close configuration settings panel",
1102
- closeSearch: "Close search",
1103
- columns: "Columns",
1104
- columnVisibilitySearchFilter: "Column visibility search filter",
1105
- condensed: "Condensed",
1106
- condensedToggle: "Condensed toggle",
1107
- configSettingsPanel: "Configuration settings Panel",
1108
- displayOptions: "Display options",
1109
- noColumnsMatch: "No columns match this search",
1110
- search: "Search",
1111
- showAllColumns: "Show all columns ({numberOfColumns})",
1112
- size: "Size",
1113
- toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility"
1114
- },
1115
- "pt-BR": {
1116
- condensed: "Condensado",
1117
- search: "Buscar",
1118
- size: "Tamanho"
1119
- },
1120
- "ja-JP": {
1121
- condensed: "凝縮",
1122
- search: "検索",
1123
- size: "サイズ"
1124
- }
1125
- }, Hs = Q({
1126
- i18n: { messages: ks },
1127
- name: "bento-data-grid",
1128
- components: {
1129
- BentoButton: at,
1130
- BentoCrossIcon: tt,
1131
- BentoPopover: an,
1132
- BentoSettingsIcon: $s,
1133
- BentoToggleButton: it,
1134
- BentoDataGridConfigSettingsConfigRow: Ws,
1135
- BentoSearchBar: on,
1136
- BentoSearchIcon: dn,
1137
- BentoToggle: ot,
1138
- BentoTypography: he
1139
- },
1140
- directives: { BentoClickOutsideDirective: un },
1141
- props: {
1142
- /**
1143
- * Column definitions
1144
- */
1145
- columns: {
1146
- type: Array,
1147
- required: !0
1148
- },
1149
- /**
1150
- * Sets the row cells to the condensed padding state.
1151
- */
1152
- condensed: {
1153
- type: Boolean,
1154
- default: !1
1155
- }
1156
- },
1157
- emits: [K.CONFIG_SETTINGS, K.UPDATE_COLUMNS],
1158
- setup(s, { emit: e }) {
1159
- const { t: n } = ne(), t = O(null), l = cn("data-grid-config-settings-popover"), o = O(null), c = O(!1), _ = O(!0), f = O(null), v = O(""), p = Qe(s, "columns"), d = O(!1), u = rn(v, p), r = () => {
1160
- v.value = "";
1161
- }, g = R(
1162
- () => !s.columns.some((i) => i.visible === !1 && !i.mandatory)
1163
- ), h = () => {
1164
- r(), d.value = !d.value, d.value ? V(() => {
1165
- var i;
1166
- return (i = o.value.$refs.bentoInputField) == null ? void 0 : i.focusInput();
1167
- }) : V(() => {
1168
- var i, E;
1169
- return (E = (i = f == null ? void 0 : f.value) == null ? void 0 : i.$el) == null ? void 0 : E.focus();
1170
- }), _.value = g.value;
1171
- }, C = (i) => i.mandatory ?? !1, L = (i) => {
1172
- const E = s.columns.map((b) => ({
1173
- ...b,
1174
- visible: i.field === b.field ? i.visible : b.visible
1175
- }));
1176
- e(K.UPDATE_COLUMNS, E);
1177
- }, y = (i) => {
1178
- i ? e(
1179
- K.UPDATE_COLUMNS,
1180
- s.columns.map((E) => ({ ...E, visible: !0 }))
1181
- ) : e(
1182
- K.UPDATE_COLUMNS,
1183
- s.columns.map((E) => ({ ...E, visible: (E == null ? void 0 : E.mandatory) === !0 }))
1184
- );
1185
- }, w = (i) => {
1186
- const E = s.columns.map((b) => ({
1187
- ...b,
1188
- frozen: i.field === b.field ? !!(i != null && i.frozen) : !!(b != null && b.frozen)
1189
- }));
1190
- e(K.UPDATE_COLUMNS, E);
1191
- }, F = (i) => {
1192
- c.value = i, _.value = g.value;
1193
- };
1194
- return {
1195
- // Values
1196
- configSettingsButtonRef: t,
1197
- popoverId: l,
1198
- isConfigSettingsPanelOpen: c,
1199
- allColumnsVisbilityToggleState: _,
1200
- filteredColumnVisibilityColumns: u,
1201
- searchTerm: v,
1202
- isColumnVisibilityFilterShown: d,
1203
- searchBarRef: o,
1204
- searchButtonRef: f,
1205
- DATAGRID_ACTIONS_COLUMN_FIELD_NAME: te,
1206
- // Methods
1207
- setConfigSettingsPanelVisibility: F,
1208
- emitCondensedToggle: (i) => e(K.CONFIG_SETTINGS, i),
1209
- toggleAllColumnVisibility: y,
1210
- clearAction: r,
1211
- toggleColumnFilter: h,
1212
- emitVisibleColumns: L,
1213
- emitFrozenColumns: w,
1214
- onClickOutside: () => F(!1),
1215
- isColumnVisibilityToggleDisabled: C,
1216
- // Translations
1217
- t: n
1218
- };
1219
- }
1220
- });
1221
- var Vs = function() {
1222
- var e = this, n = e._self._c;
1223
- return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: "tertiary", condensed: "", toggled: e.isConfigSettingsPanelOpen }, on: { click: function(t) {
1224
- return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
1225
- } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1226
- return [n("bento-settings-icon", { attrs: { "svg-title": e.t("toggleConfigSettingsPanelVisibility") } })];
1227
- }, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: e.popoverId, open: e.isConfigSettingsPanelOpen, "aria-label": e.t("configSettingsPanel"), "target-element": e.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(e.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(t) {
1228
- return e.setConfigSettingsPanelVisibility(!1);
1229
- } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1230
- return [n("bento-cross-icon", { attrs: { "svg-title": e.t("closeConfigSettingsPanel") } })];
1231
- }, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": "after", "aria-label": e.t("condensedToggle"), value: e.condensed }, on: { input: e.emitCondensedToggle } }, [e._v(" " + e._s(e.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.t("columns")) + " ")]), e.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1232
- return [n("bento-cross-icon")];
1233
- }, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1234
- return [n("bento-search-icon")];
1235
- }, proxy: !0 }], null, !1, 2341044271) }, [e._v(e._s(e.t("search")))])], 1), e.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: e.searchTerm, "input-field-aria-label": e.t("columnVisibilitySearchFilter").toString() }, on: { input: function(t) {
1236
- e.searchTerm = t;
1237
- }, clear: e.clearAction, "escape-pressed": e.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: e.allColumnsVisbilityToggleState }, on: { input: e.toggleAllColumnVisibility } }, [e._v(" " + e._s(e.t("showAllColumns", { numberOfColumns: e.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(t) {
1238
- return n("div", { key: t.field }, [t.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: t, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(t) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
1239
- }), e.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [e._v(" " + e._s(e.t("noColumnsMatch")) + " ")]) : e._e()], 2)])]) : e._e()], 1);
1240
- }, Zs = [], js = /* @__PURE__ */ $(
1241
- Hs,
1242
- Vs,
1243
- Zs,
1244
- !1,
1245
- null,
1246
- "e7f0a261"
1247
- );
1248
- const qs = js.exports, ut = {
1249
- "en-US": {
1250
- gettingYourData: "Getting your data",
1251
- loading: "Loading",
1252
- selectRow: "Select row",
1253
- showMore: "Show more",
1254
- sortAscending: "{field} sort ascending",
1255
- sortDescending: "{field} sort descending",
1256
- sortInactive: "{field} sort inactive"
1257
- },
1258
- "pt-BR": {
1259
- loading: "Carregando",
1260
- showMore: "Mostrar mais"
1261
- },
1262
- "ja-JP": {
1263
- loading: "読み込み中",
1264
- showMore: "表示内容を増やす"
1265
- }
1266
- }, Ys = {
1267
- i18n: { messages: ut }
1268
- }, Xs = /* @__PURE__ */ Q({
1269
- ...Ys,
1270
- __name: "data-grid-lazy-load",
1271
- props: {
1272
- loading: { type: Boolean },
1273
- isInfiniteScroll: { type: Boolean }
1274
- },
1275
- setup(s) {
1276
- const { t: e } = ne();
1277
- return { __sfc: !0, t: e, BentoLoadingButton: hn, BentoLoadingButtonState: Ln, BentoLoadingIndicator: nt, BentoDatagridEvent: A };
1278
- }
1279
- });
1280
- var Js = function() {
1281
- var e = this, n = e._self._c, t = e._self._setupProxy;
1282
- return n("div", { staticClass: "b-data-grid-lazy-load" }, [e.loading && e.isInfiniteScroll ? n(t.BentoLoadingIndicator) : e._e(), e.loading && !e.isInfiniteScroll ? n(t.BentoLoadingButton, { attrs: { variant: "secondary", state: t.BentoLoadingButtonState.LOADING } }, [e._v(e._s(t.t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? n(t.BentoLoadingButton, { attrs: { state: t.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(l) {
1283
- return e.$emit(t.BentoDatagridEvent.UPDATE_SHOW_MORE);
1284
- } } }, [e._v(e._s(t.t("showMore")))]) : e._e()], 1);
1285
- }, Ks = [], Qs = /* @__PURE__ */ $(
1286
- Xs,
1287
- Js,
1288
- Ks,
1289
- !1,
1290
- null,
1291
- "fd9b8204"
1292
- );
1293
- const el = Qs.exports;
1294
- let Xe = 0;
1295
- const tl = {
1296
- beforeCreate() {
1297
- this.uuid = Xe.toString(), Xe += 1;
1298
- }
1299
- };
1300
- var nl = function() {
1301
- var e = this, n = e._self._c;
1302
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z" } })]);
1303
- }, sl = [], ll = /* @__PURE__ */ $(
1304
- tl,
1305
- nl,
1306
- sl,
1307
- !1,
1308
- null,
1309
- null
1310
- );
1311
- const al = ll.exports, ol = {
1312
- "en-US": {
1313
- copy: "Copy",
1314
- edit: "Edit",
1315
- open: "Open",
1316
- more: "More"
1317
- },
1318
- "pt-BR": {
1319
- copy: "Copiar",
1320
- edit: "Editar",
1321
- open: "Abrir",
1322
- more: "Mais"
1323
- },
1324
- "ja-JP": {
1325
- copy: "コピー",
1326
- edit: "編集",
1327
- open: "を開く",
1328
- more: "表示を増やす"
1329
- }
1330
- }, il = {
1331
- i18n: { messages: ol },
1332
- name: "data-grid-cell-actions"
1333
- }, rl = /* @__PURE__ */ Q({
1334
- ...il,
1335
- props: {
1336
- /**
1337
- * Column definitions using 'key' to relate to data object.
1338
- */
1339
- cellActions: {
1340
- type: Array,
1341
- required: !0,
1342
- validator: (s) => (s == null ? void 0 : s.length) <= 2
1343
- },
1344
- /**
1345
- * The column field key.
1346
- */
1347
- columnKey: {
1348
- type: String,
1349
- required: !0
1350
- },
1351
- /**
1352
- * The row data item object.
1353
- */
1354
- rowDataItem: {
1355
- type: Object,
1356
- required: !0
1357
- }
1358
- },
1359
- emits: ["menu-item-click-close"],
1360
- setup(s, { emit: e }) {
1361
- const n = s, { t } = ne(), l = R(() => {
1362
- var u;
1363
- return ((u = n.cellActions) == null ? void 0 : u.length) > 2 && st(
1364
- "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
1365
- ), n.cellActions.slice(0, 2);
1366
- }), o = R(() => (u, r) => {
1367
- if (!(!r && u.isShort || r && !u.isShort))
1368
- switch (u.variant) {
1369
- case "copy":
1370
- return t("copy");
1371
- case "edit":
1372
- return t("edit");
1373
- case "open":
1374
- return t("open");
1375
- case "more":
1376
- return t("more");
1377
- default:
1378
- return u.title;
1379
- }
1380
- }), c = (u) => (u == null ? void 0 : u.event) !== void 0 ? {
1381
- click: () => u.event(n.rowDataItem, n.columnKey)
1382
- } : {}, _ = (u) => ({
1383
- ...u,
1384
- handler: () => {
1385
- u != null && u.handler && typeof u.handler == "function" && (u == null || u.handler()), u != null && u.event && typeof u.event == "function" && (u == null || u.event(n.rowDataItem, n.columnKey));
1386
- }
1387
- }), f = (u) => u.map((r) => {
1388
- const g = r;
1389
- return g != null && g.items && (g.items = f(g.items)), { ..._(g) };
1390
- });
1391
- return { __sfc: !0, t, props: n, emit: e, limitedRowCellActionsProps: l, getButtonTitle: o, generateButtonEvents: c, generateMenuEvents: _, transformMenuEvents: f, getCopyText: (u) => {
1392
- var r, g;
1393
- return (u == null ? void 0 : u.getCopyData) !== void 0 ? u.getCopyData(n.rowDataItem, n.columnKey) : (g = (r = n.rowDataItem) == null ? void 0 : r[n.columnKey]) == null ? void 0 : g.toString();
1394
- }, shouldShowMenuIconRight: (u) => u.iconRight || ((u == null ? void 0 : u.variant) === "more" || (u == null ? void 0 : u.variant) === "open") && !u.isShort, shouldShowMenuIconLeft: (u) => u.iconLeft || (u == null ? void 0 : u.variant) === "more", BentoButton: at, BentoMenu: ct, Copy: vn, Edit1Icon: al, ExternalLinkIcon: _n, OptionsVerticalIcon: fn };
1395
- }
1396
- });
1397
- var cl = function() {
1398
- var e = this, n = e._self._c, t = e._self._setupProxy;
1399
- return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, e._l(t.limitedRowCellActionsProps, function(l, o) {
1400
- return n("div", { key: o, staticClass: "b-data-grid-cell-actions__action" }, [l.menuData ? n(t.BentoMenu, { attrs: { data: t.transformMenuEvents(l.menuData), button: {
1401
- condensed: !0,
1402
- variant: "secondary",
1403
- disabled: l.disabled
1404
- }, teleport: "" }, on: { "menu-item-click": function(c) {
1405
- return t.emit("menu-item-click-close");
1406
- } }, scopedSlots: e._u([t.shouldShowMenuIconLeft(l) ? { key: "iconLeft", fn: function() {
1407
- return [(l == null ? void 0 : l.variant) === "more" ? n(t.OptionsVerticalIcon, { attrs: { "svg-title": t.getButtonTitle(l, !0) } }) : n(l.iconLeft, { tag: "component", attrs: { "svg-title": t.getButtonTitle(l, !0) } })];
1408
- }, proxy: !0 } : null, l != null && l.isShort ? null : { key: "default", fn: function() {
1409
- return [e._v(" " + e._s(t.getButtonTitle(l)) + " ")];
1410
- }, proxy: !0 }, t.shouldShowMenuIconRight(l) ? { key: "iconRight", fn: function() {
1411
- return [(l == null ? void 0 : l.variant) === "open" ? n(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(l, !0) } }) : n(l.iconRight, { tag: "component", attrs: { "svg-title": l.title } })];
1412
- }, proxy: !0 } : null], null, !0) }) : l.variant === "copy" ? n(t.Copy, { attrs: { text: t.getCopyText(l), "button-text": t.getButtonTitle(l), button: {
1413
- condensed: !0,
1414
- variant: "secondary"
1415
- } } }) : n(t.BentoButton, e._g({ attrs: { condensed: "", variant: "secondary", critical: l.critical, disabled: l.disabled, link: l.link }, scopedSlots: e._u([l.iconLeft || l.variant === "edit" ? { key: "iconLeft", fn: function() {
1416
- return [(l == null ? void 0 : l.variant) === "edit" ? n(t.Edit1Icon, { attrs: { "svg-title": t.getButtonTitle(l, !0) } }) : n(l.iconLeft, { tag: "component", attrs: { "svg-title": l.title } })];
1417
- }, proxy: !0 } : null, l != null && l.isShort ? null : { key: "default", fn: function() {
1418
- return [e._v(" " + e._s(t.getButtonTitle(l)) + " ")];
1419
- }, proxy: !0 }, l.iconRight || l.variant === "open" ? { key: "iconRight", fn: function() {
1420
- return [(l == null ? void 0 : l.variant) === "open" ? n(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(l, !0) } }) : n(l.iconRight, { tag: "component", attrs: { "svg-title": l.title } })];
1421
- }, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(l)))], 1);
1422
- }), 0)])]);
1423
- }, dl = [], ul = /* @__PURE__ */ $(
1424
- rl,
1425
- cl,
1426
- dl,
1427
- !1,
1428
- null,
1429
- "a6bb216c"
1430
- );
1431
- const fl = ul.exports;
1432
- var G = /* @__PURE__ */ ((s) => (s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s))(G || {});
1433
- const gl = {
1434
- "en-US": {
1435
- selectRow: "Select row"
1436
- }
1437
- }, _l = {
1438
- i18n: { messages: gl },
1439
- name: "data-grid-cell"
1440
- }, vl = /* @__PURE__ */ Q({
1441
- ..._l,
1442
- props: {
1443
- draggingEventsForRowCell: {
1444
- type: Function,
1445
- required: !0
1446
- },
1447
- /**
1448
- * The columns sets including
1449
- */
1450
- columnSets: {
1451
- type: Array,
1452
- required: !0
1453
- },
1454
- /**
1455
- * The columns set we are iterating over
1456
- */
1457
- column: {
1458
- type: Object,
1459
- required: !0
1460
- },
1461
- colIndex: {
1462
- type: Number,
1463
- required: !0
1464
- },
1465
- columnSetIndex: {
1466
- type: Number,
1467
- required: !0
1468
- },
1469
- /**
1470
- * Sets the row cells to the condensed padding state.
1471
- */
1472
- condensed: {
1473
- type: Boolean,
1474
- default: !1
1475
- },
1476
- /**
1477
- * Columns being dragged, contains dragging column and a target column
1478
- */
1479
- draggingColumns: {
1480
- type: Object,
1481
- default: void 0
1482
- },
1483
- /**
1484
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
1485
- * This is used selecting and performance reasons and must exist in each data item.
1486
- */
1487
- getDataItemId: {
1488
- type: Function,
1489
- default: (s) => s.id
1490
- },
1491
- /**
1492
- * The column hovered over state and whether the hovered over column should show a border right or left.
1493
- */
1494
- hoveredOverColumnState: {
1495
- type: Object,
1496
- required: !0
1497
- },
1498
- /**
1499
- * A customisable method to determine if a row is not selectable.
1500
- * The default is that every row is selectable.
1501
- */
1502
- isDataItemDisabled: {
1503
- type: Function,
1504
- default: () => !1
1505
- },
1506
- isMeasuringColumnWidths: {
1507
- type: Boolean,
1508
- default: !1
1509
- },
1510
- /**
1511
- * The row data object
1512
- */
1513
- rowData: {
1514
- type: Object,
1515
- required: !0
1516
- },
1517
- rowIndex: {
1518
- type: Number,
1519
- required: !0
1520
- },
1521
- /**
1522
- * Determines if the row selection is enabled.
1523
- */
1524
- selectable: {
1525
- type: Boolean,
1526
- default: !1
1527
- },
1528
- selectedItems: {
1529
- type: Array,
1530
- required: !0
1531
- }
1532
- },
1533
- emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered"],
1534
- setup(s, { expose: e, emit: n }) {
1535
- const t = s, l = et(), o = Cn(l), { t: c } = ne(), _ = O(null), f = O(null), v = O(!1), p = O([]), d = R(() => {
1536
- var i;
1537
- return !!((i = t.rowData) != null && i[t.column.field]);
1538
- }), u = (i, E) => (i == null ? void 0 : i.overflow) === Le.ELLIPSIS ? `${E}` : void 0, r = (i) => i ?? "-", g = (i) => t.columnSets.slice(0, i).reduce((E, { columnSet: b }) => E + b.length, 0), h = (i, E) => i + g(E), C = (i, E, b) => g() * i + h(E, b), L = (i) => {
1539
- var E;
1540
- (i === null || !_.value.contains(i) && !((E = p.value) != null && E.map((b) => b.value).some((b) => b === i || (b == null ? void 0 : b.contains(i))))) && (v.value = !1);
1541
- }, y = () => {
1542
- v.value = !1;
1543
- }, w = (i) => {
1544
- const b = { ...{
1545
- ...t.draggingEventsForRowCell(i)
1546
- } };
1547
- return i.frozen && (b.keyup = (T) => n("on-frozen-columns-key-press", T), b.keydown = (T) => n("on-frozen-columns-key-press", T)), i.cellActions && (b.mouseenter = () => {
1548
- v.value = !0;
1549
- }, b.mouseleave = (T) => {
1550
- v.value = !1, L(T == null ? void 0 : T.relatedTarget);
1551
- }, b.mouseleave = (T) => {
1552
- L(T == null ? void 0 : T.relatedTarget);
1553
- }, b.focus = (T) => {
1554
- v.value = !0;
1555
- }, b.focusout = (T) => {
1556
- L(T == null ? void 0 : T.relatedTarget);
1557
- }), b;
1558
- };
1559
- k(
1560
- () => v.value,
1561
- () => {
1562
- v.value === !0 ? n("cell-hovered", t.rowIndex) : n("cell-hovered", -1);
1563
- }
1564
- );
1565
- const F = (i) => {
1566
- p.value.push(i);
1567
- }, W = (i) => {
1568
- _.value.contains(i == null ? void 0 : i.relatedTarget) || (v.value = !1);
1569
- };
1570
- jt(gn, {
1571
- registerMenuContainerElement: F,
1572
- menuMouseLeave: W
1573
- });
1574
- const m = (i) => {
1575
- var E, b, T, x, z, U, N;
1576
- return {
1577
- [`b-data-grid-cell--${G.COLUMN_HOVERED}`]: (i == null ? void 0 : i.field) === t.hoveredOverColumnState.hoveredOverColumnField,
1578
- [`b-data-grid-cell--${G.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (i == null ? void 0 : i.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
1579
- [`b-data-grid-cell--${G.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (i == null ? void 0 : i.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
1580
- [`b-data-grid-cell--${G.PADDING_LEFT_UNSET}`]: ((E = i == null ? void 0 : i.padding) == null ? void 0 : E.left) === !1,
1581
- [`b-data-grid-cell--${G.PADDING_RIGHT_UNSET}`]: ((b = i == null ? void 0 : i.padding) == null ? void 0 : b.right) === !1,
1582
- [`b-data-grid-cell--${G.NUMERIC}`]: i == null ? void 0 : i.numeric,
1583
- [`b-data-grid-cell--${G.CONDENSED}`]: t.condensed,
1584
- [`b-data-grid-cell--${G.OVERFLOW_ELLIPSIS}`]: (i == null ? void 0 : i.overflow) === Le.ELLIPSIS,
1585
- [`b-data-grid-cell--${G.IS_COLUMN_REORDERING}`]: ((T = t.draggingColumns.dragging) == null ? void 0 : T.field) === i.field,
1586
- [`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((x = t.draggingColumns.target) == null ? void 0 : x.field) === i.field && ((z = t.draggingColumns) == null ? void 0 : z.dragToLeft),
1587
- [`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((U = t.draggingColumns.target) == null ? void 0 : U.field) === i.field && !((N = t.draggingColumns) != null && N.dragToLeft),
1588
- [`b-data-grid-cell--${G.FROZEN}`]: i == null ? void 0 : i.frozen
1589
- };
1590
- };
1591
- return e({
1592
- gridcellRef: _
1593
- }), { __sfc: !0, slots: l, hasSlot: o, t: c, props: t, emit: n, gridcellRef: _, cellActionsRef: f, shouldShowCellActions: v, childrenMenuContainerElements: p, hasRowData: d, conditionalTitleAttribute: u, getRowData: r, sumColumnAmountsInColumnSets: g, getColIndex: h, getCellIndex: C, isLeavingCellFocus: L, onMenuClose: y, getGridcellEvents: w, registerMenuContainerElement: F, menuMouseLeave: W, conditionalRowCellClasses: m, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: te, BentoCheckbox: rt, BentoTypography: he, DataGridCellActions: fl };
1594
- }
1595
- });
1596
- var Cl = function() {
1597
- var l;
1598
- var e = this, n = e._self._c, t = e._self._setupProxy;
1599
- return n("div", e._g({ key: `cell-${e.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: t.conditionalRowCellClasses(e.column), style: {
1600
- width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
1601
- }, attrs: { "data-testid": `cell-${e.column.field}`, "data-cellindex": t.getCellIndex(e.rowIndex, e.colIndex, e.columnSetIndex), role: "gridcell", tabindex: t.getCellIndex(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": t.getColIndex(e.colIndex, e.columnSetIndex) + 1 } }, t.getGridcellEvents(e.column)), [e.column.field === t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [e.selectable ? [n(t.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": t.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(e.rowData), value: e.getDataItemId(e.rowData) }, on: { "update:model-value": function(o) {
1602
- return e.$emit("select-row", o);
1603
- } } })] : e._e()] : [n(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${e.column.field}`, function() {
1604
- return [n("span", { attrs: { title: t.conditionalTitleAttribute(e.column, e.rowData[e.column.field]) } }, [e._v(e._s(t.getRowData(e.rowData[e.column.field])))])];
1605
- }, { item: e.rowData })], 2), ((l = e.column.cellActions) == null ? void 0 : l.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [t.shouldShowCellActions && (t.hasRowData || t.hasSlot(`item-${e.column.field}`)) ? n(t.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": e.column.cellActions, "column-key": e.column.field, "row-data-item": e.rowData }, on: { "menu-item-click-close": t.onMenuClose } }) : e._e()], 1) : e._e()]], 2);
1606
- }, ml = [], pl = /* @__PURE__ */ $(
1607
- vl,
1608
- Cl,
1609
- ml,
1610
- !1,
1611
- null,
1612
- "b8aae2d2"
1613
- );
1614
- const hl = pl.exports;
1615
- let Je = 0;
1616
- const Ll = {
1617
- beforeCreate() {
1618
- this.uuid = Je.toString(), Je += 1;
1619
- }
1620
- };
1621
- var Sl = function() {
1622
- var e = this, n = e._self._c;
1623
- return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-warning_circle_fill__a" + e.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-warning_circle_fill__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
1624
- }, El = [], bl = /* @__PURE__ */ $(
1625
- Ll,
1626
- Sl,
1627
- El,
1628
- !1,
1629
- null,
1630
- null
1631
- );
1632
- const Ol = bl.exports, Rl = {}, yl = /* @__PURE__ */ Q({
1633
- ...Rl,
1634
- __name: "data-grid-static-icon",
1635
- props: {
1636
- colored: { type: Boolean, default: !1 },
1637
- tooltipText: null,
1638
- variant: { default: "no-value" }
1639
- },
1640
- setup(s) {
1641
- const e = s, n = R(() => {
1642
- switch (e.variant) {
1643
- case "checkmark":
1644
- return qt;
1645
- case "warning":
1646
- return Yt;
1647
- case "error":
1648
- return Ol;
1649
- case "cross":
1650
- return tt;
1651
- case "no-value":
1652
- return Pe;
1653
- default:
1654
- return Pe;
1655
- }
1656
- }), t = R(() => ({
1657
- "b-data-grid-static-icon--colored": e.colored && e.variant !== "no-value"
1658
- })), l = R(() => `b-data-grid-static-icon__${e.variant}`), o = R(() => Xt.AUTO);
1659
- return { __sfc: !0, props: e, computedIcon: n, conditionalClasses: t, computedIconClass: l, tooltipPosition: o, vBentoTooltipDirective: Jt };
1660
- }
1661
- });
1662
- var Al = function() {
1663
- var e = this, n = e._self._c, t = e._self._setupProxy;
1664
- return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: e.tooltipText, expression: "tooltipText", arg: t.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: t.conditionalClasses, attrs: { "aria-label": e.tooltipText, tabindex: "0" } }, [n(t.computedIcon, { tag: "component", class: t.computedIconClass, attrs: { "svg-title": e.tooltipText } })], 1);
1665
- }, Tl = [], Il = /* @__PURE__ */ $(
1666
- yl,
1667
- Al,
1668
- Tl,
1669
- !1,
1670
- null,
1671
- "f8532817"
1672
- );
1673
- const La = Il.exports, wl = {
1674
- i18n: { messages: ut },
1675
- name: "bento-data-grid"
1676
- }, Nl = /* @__PURE__ */ Q({
1677
- ...wl,
1678
- props: {
1679
- /**
1680
- * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
1681
- */
1682
- allowRowClicks: { type: Boolean, default: !1 },
1683
- /**
1684
- * When true, column headers will become draggable, allowing users to rearrange columns.
1685
- */
1686
- allowColumnDragAndDrop: { type: Boolean, default: !0 },
1687
- /**
1688
- * List of actions that will be rendered in the action bar when user selects items.
1689
- *
1690
- * Each object in the list should have a `title`, an `event` and,
1691
- * optionally, an `icon`.
1692
- *
1693
- * The component will display 4 actions and the hide the rest inside a menu.
1694
- *
1695
- * @see BentoButton for a list of all the other props supported by each button action.
1696
- */
1697
- bulkActions: {
1698
- type: Array,
1699
- default: null
1700
- },
1701
- /**
1702
- * Sets the row cells to the condensed padding state.
1703
- */
1704
- condensed: {
1705
- type: Boolean,
1706
- default: !1
1707
- },
1708
- /**
1709
- * Column definitions using 'key' to relate to data object.
1710
- */
1711
- columns: {
1712
- type: Array,
1713
- required: !0
1714
- },
1715
- /**
1716
- * Enables / hides the display options panel and the column contextual menu functionality.
1717
- */
1718
- columnPanel: { type: Boolean, default: !1 },
1719
- /**
1720
- * An array of data objects to display.
1721
- */
1722
- data: {
1723
- type: Array,
1724
- required: !0
1725
- },
1726
- /**
1727
- * Empty state props that will be passed down to inner empty-state component
1728
- */
1729
- emptyState: {
1730
- type: Object,
1731
- default: void 0
1732
- },
1733
- /**
1734
- * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
1735
- * {@see BentoFilterBarModel}
1736
- */
1737
- filters: {
1738
- type: me.props.value.type,
1739
- default: void 0
1740
- },
1741
- /**
1742
- * An array of the values for each filter set in `value`.
1743
- * {@see BentoFilterValues}
1744
- */
1745
- filterValues: {
1746
- type: me.props.filterValues.type,
1747
- default: () => []
1748
- },
1749
- /**
1750
- * Filter bar search term useful to filter all the data by text
1751
- */
1752
- filterSearchTerm: {
1753
- type: me.props.searchTerm.type,
1754
- default: void 0
1755
- },
1756
- /**
1757
- * Allows the grid to be rendered inside a confined space.
1758
- */
1759
- fitContent: { type: Boolean, default: !1 },
1760
- /**
1761
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
1762
- * This is used selecting and performance reasons and must exist in each data item.
1763
- */
1764
- getDataItemId: {
1765
- type: Function,
1766
- default: (s) => s.id
1767
- },
1768
- /**
1769
- * If resize is enabled
1770
- */
1771
- hasResizableColumns: {
1772
- type: Boolean,
1773
- default: !0
1774
- },
1775
- /**
1776
- * A customisable method to determine if a row is not selectable.
1777
- * The default is that every row is selectable.
1778
- */
1779
- isDataItemDisabled: {
1780
- type: Function,
1781
- default: () => !1
1782
- },
1783
- /**
1784
- * The type of `Lazy Load`.
1785
- * Type "automatic" will enable infinite scrolling
1786
- * Type "button" will enable lazy loading with "Show more" button
1787
- * @values automatic, button, none
1788
- */
1789
- lazyLoadType: {
1790
- type: String,
1791
- default: "none",
1792
- validator: (s) => ["automatic", "button", "none"].includes(s)
1793
- },
1794
- /**
1795
- * If the loading indicator should be shown.
1796
- */
1797
- loading: {
1798
- type: Boolean,
1799
- default: !1
1800
- },
1801
- /**
1802
- * Enables / Disables the table's surrounding border.
1803
- */
1804
- outline: {
1805
- type: Boolean,
1806
- default: !1
1807
- },
1808
- /**
1809
- * Pagination props that will be passed down to inner pagination component
1810
- */
1811
- pagination: {
1812
- type: Object,
1813
- default: void 0
1814
- },
1815
- /**
1816
- * Adds an extra option when selecting all items that allows user to select items in other pages too.
1817
- */
1818
- selectableAcrossPages: {
1819
- type: Boolean,
1820
- default: !1
1821
- },
1822
- /**
1823
- * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
1824
- * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
1825
- */
1826
- stickyPagination: {
1827
- type: Boolean,
1828
- default: !1
1829
- },
1830
- /**
1831
- * Make data-grid filters stick to the top of the page along with the data-grid headers.
1832
- * Defaults to true.
1833
- */
1834
- stickyFilters: {
1835
- type: Boolean,
1836
- default: !0
1837
- },
1838
- /**
1839
- * Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
1840
- */
1841
- selectable: {
1842
- type: Boolean,
1843
- default: !1
1844
- },
1845
- /**
1846
- * Selected items
1847
- */
1848
- selection: {
1849
- type: Array,
1850
- default: () => []
1851
- },
1852
- /**
1853
- * Highlighted items
1854
- */
1855
- highlightedRows: {
1856
- type: Array,
1857
- default: () => []
1858
- },
1859
- /**
1860
- * Renders the data grid with no top spacing, to render inside containers that already have spacing
1861
- */
1862
- noSpacingTop: {
1863
- type: Boolean,
1864
- default: !1
1865
- },
1866
- /**
1867
- * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
1868
- * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
1869
- */
1870
- sortBy: {
1871
- type: Array,
1872
- // NOTE: is an array to allow multi-sorting in the future
1873
- default: () => []
1874
- },
1875
- /**
1876
- * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
1877
- */
1878
- tabTitle: {
1879
- type: String,
1880
- default: null
1881
- },
1882
- /**
1883
- * Truncates all data grid column headers
1884
- */
1885
- truncateColumnHeaders: {
1886
- type: Boolean,
1887
- default: !1
1888
- }
1889
- },
1890
- emits: [
1891
- A.COLUMNS,
1892
- A.COLUMN_RESIZE,
1893
- A.ITEMS_PAGE,
1894
- A.FILTER_SEARCH_INPUT,
1895
- A.FILTER_SEARCH_CLEAR,
1896
- A.NAVIGATE,
1897
- A.UPDATE_COLUMNS,
1898
- A.UPDATE_CONDENSED,
1899
- A.UPDATE_FILTER_VALUES,
1900
- A.UPDATE_FILTERS,
1901
- A.UPDATE_FILTER_SEARCH_TERM,
1902
- A.UPDATE_SHOW_MORE,
1903
- A.UPDATE_PAGINATION,
1904
- A.UPDATE_SELECTION,
1905
- A.UPDATE_SORT_BY,
1906
- A.ROW_CLICK,
1907
- A.SELECT,
1908
- A.SELECT_ALL_ACROSS_PAGES,
1909
- A.SORT
1910
- ],
1911
- setup(s, { expose: e, emit: n }) {
1912
- const t = s, l = et(), o = O(null), c = O(), _ = O({}), f = O(null), v = O(null), p = O(), d = O(null), {
1913
- allowColumnDragAndDrop: u,
1914
- columns: r,
1915
- columnPanel: g,
1916
- data: h,
1917
- lazyLoadType: C,
1918
- selectable: L,
1919
- selection: y,
1920
- loading: w,
1921
- selectableAcrossPages: F,
1922
- outline: W
1923
- } = Ee(t), m = O(-1), { t: i } = ne(), E = R(() => N.value.filter((S) => S.frozen).length), b = Fe(
1924
- ln,
1925
- () => ({
1926
- isDataGridTemplate: !1,
1927
- stickyTabs: O(!1),
1928
- tabsRef: O(null)
1929
- })
1930
- ), { isDataGridTemplate: T, stickyTabs: x, tabsRef: z } = b(), U = R(() => t.fitContent || T ? 0 : null), {
1931
- columnDefs: N,
1932
- onColumnWidthOverride: I,
1933
- gridColumnWidthStyle: H,
1934
- isMeasuringColumnWidths: ie,
1935
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: re,
1936
- columns: ce
1937
- } = wn(r, h, o, _, f, {
1938
- hasColumnPanel: g,
1939
- hasSelectableColumn: L,
1940
- hasSelectableAcrossPages: F,
1941
- allowColumnDragAndDrop: u,
1942
- isDataGridTemplate: T
1943
- }), a = (S, ...M) => {
1944
- (S === A.COLUMNS || S === A.UPDATE_COLUMNS) && ([ce.value] = M), n(S, ...M);
1945
- }, D = Be(z, x), q = R(
1946
- () => t.stickyFilters ? `${D.value}px` : null
1947
- ), Y = Be(v, Qe(t, "stickyFilters")), se = R(
1948
- () => `${Y.value + D.value}px`
1949
- ), {
1950
- sortedColumns: ae,
1951
- columnSets: le,
1952
- isOnlyOneVisibleColumn: de,
1953
- onConfigSettingsUpdate: ue,
1954
- onConfigSettingsColumnsUpdate: fe,
1955
- onConfigSettingsColumnUpdate: ge
1956
- } = xn(N, a), { hoveredOverColumn: _e, hoveredOverColumnState: ft } = zn(
1957
- le,
1958
- L,
1959
- W,
1960
- re
1961
- ), { draggingColumns: Oe, draggingEventsForColumns: gt, draggingEventsForRowCell: _t, onMoveColumnByOffset: vt } = $n(ae, u, a), { onAllRowSelect: Ct, onRowSelect: mt, selectedItems: ve, allItemsSelectedState: pt } = Nn(
1962
- y,
1963
- a,
1964
- h,
1965
- t.getDataItemId,
1966
- t.isDataItemDisabled
1967
- ), { navigationInput: ht } = Mn(f, r, L), { isLazyLoad: Re, isInfiniteScroll: Lt, verticalScrollPosition: ye, emitLazyLoadEvent: St } = Pn(
1968
- C,
1969
- d,
1970
- o,
1971
- w,
1972
- a
1973
- ), { updateScrollPosition: Et, updateScrollPositionOnFrozenColumnsNavigation: bt, hasLeftOverflow: Ce, hasRightOverflow: Ae } = Un(o, c, ye), Te = () => {
1974
- p.value.isClearAllVisible ? p.value.clearAllFilters() : p.value.isResetAllVisible && p.value.resetAllFilters();
1975
- }, Ot = R(() => {
1976
- var S, M;
1977
- return {
1978
- ...t.emptyState,
1979
- variant: ((S = t.emptyState) == null ? void 0 : S.variant) === "embedded" || ((M = t.emptyState) == null ? void 0 : M.variant) === "basic" ? t.emptyState.variant : "basic"
1980
- };
1981
- }), Rt = R(() => ({
1982
- [`b-data-grid--${J.OUTLINE}`]: t.outline,
1983
- [`b-data-grid--${J.SCROLL}`]: t.fitContent || Re.value,
1984
- [`b-data-grid--${J.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
1985
- [`b-data-grid--${J.OVERFLOW_SHADOW_LEFT}`]: Ce.value && !E.value,
1986
- [`b-data-grid--${J.OVERFLOW_SHADOW_RIGHT}`]: Ae.value,
1987
- [`b-data-grid--${J.NO_SPACING_TOP}`]: t.noSpacingTop
1988
- })), yt = R(() => le.value.findIndex((S) => S.columnSet.length)), At = (S, M) => {
1989
- var Z;
1990
- return {
1991
- "b-data-grid__row--disabled": t.isDataItemDisabled(S),
1992
- "b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
1993
- "b-data-grid__cell--is-re-ordering": ((Z = Oe.target) == null ? void 0 : Z.field) !== void 0,
1994
- "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(S)) || ve.value.includes(t.getDataItemId(S)),
1995
- "b-data-grid__row--hovered": m.value === M
1996
- };
1997
- }, Ie = R(() => !(t.selectable && E.value === 1) || Ce.value), Tt = (S) => ({
1998
- "b-data-grid__row-cell-set--frozen": S,
1999
- [`b-data-grid__row-cell-set--${J.OVERFLOW_SHADOW_LEFT}`]: S && Ce.value,
2000
- "b-data-grid__row-cell-set--frozen-separator": S && Ie.value,
2001
- "b-data-grid__row-cell-set--unfrozen": !S,
2002
- "b-data-grid__row-cell-set--is-measuring": ie.value
2003
- }), It = R(() => ({
2004
- "b-data-grid__filters--sticky": !!t.stickyFilters || T
2005
- })), wt = R(() => {
2006
- var S, M, Z, j, oe, Me;
2007
- return {
2008
- "b-data-grid__pagination--padding-left-unset": ((Z = (M = (S = t.columns) == null ? void 0 : S[0]) == null ? void 0 : M.padding) == null ? void 0 : Z.left) === !1,
2009
- "b-data-grid__pagination--padding-right-unset": ((Me = (oe = (j = t.columns) == null ? void 0 : j[t.columns.length - 1]) == null ? void 0 : oe.padding) == null ? void 0 : Me.right) === !1,
2010
- "b-data-grid__pagination--sticky": !!t.stickyPagination || T
2011
- };
2012
- }), Nt = (S) => {
2013
- const M = S;
2014
- S !== null && (M != null && M.columnHeaderRefs) && Object.entries(M == null ? void 0 : M.columnHeaderRefs).forEach(([Z, j]) => {
2015
- _.value[Z] = j;
2016
- });
2017
- }, Dt = (S, M, Z) => {
2018
- var oe;
2019
- const j = S;
2020
- ((oe = f.value) == null ? void 0 : oe[M]) === void 0 && (f.value = { ...f.value, [M]: [] }), S !== null && (j != null && j.gridcellRef) && (f.value[M][Z] = j.gridcellRef);
2021
- }, Mt = (S, M) => {
2022
- t.allowRowClicks && a(A.ROW_CLICK, S, M);
2023
- }, Ft = (S) => {
2024
- m.value = S;
2025
- }, Pt = R(() => !!t.selectableAcrossPages && !!t.pagination), $t = en({
2026
- label: l != null && l.header ? tn(l)("header") : null,
2027
- defaultFallback: "data grid"
2028
- }), xt = (S) => {
2029
- if (!t.selectable)
2030
- return null;
2031
- const M = t.getDataItemId(S);
2032
- return ve.value.includes(M).toString();
2033
- }, we = R(() => {
2034
- var S;
2035
- return ((S = ve.value) == null ? void 0 : S.length) ?? 0;
2036
- }), Ut = R(() => t.bulkActions && we.value > 0), zt = (S) => a(A.COLUMN_RESIZE, S), Bt = (S) => {
2037
- a(A.UPDATE_SORT_BY, S), a(A.SORT, S);
2038
- }, Gt = (S, M) => {
2039
- a(A.NAVIGATE, S), a(A.UPDATE_PAGINATION, {
2040
- ...t.pagination,
2041
- size: M,
2042
- page: S
2043
- });
2044
- }, Wt = (S) => {
2045
- a(A.ITEMS_PAGE, S);
2046
- }, kt = () => {
2047
- a(A.FILTER_SEARCH_CLEAR);
2048
- }, Ht = (S) => {
2049
- a(A.UPDATE_FILTER_SEARCH_TERM, S), a(A.FILTER_SEARCH_INPUT, S);
2050
- }, Ne = R(() => r.value.some((S) => S.mandatory));
2051
- Ne.value || st(
2052
- "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
2053
- );
2054
- const De = Fe(sn, () => null);
2055
- return De(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Te }), { __sfc: !0, props: t, slots: l, body: o, columnsRef: c, columnHeaderRefs: _, gridcellRefs: f, filtersRef: v, filterBarRef: p, verticalScrollPositionRef: d, allowColumnDragAndDrop: u, columns: r, columnPanel: g, data: h, lazyLoadType: C, selectable: L, selection: y, loading: w, selectableAcrossPages: F, outline: W, hoveredRowIndex: m, t: i, frozenColumnsLength: E, registerDatagridInDataGridTemplate: b, isDataGridTemplate: T, stickyTabs: x, tabsRef: z, computedColumnsTabIndex: U, columnDefs: N, onColumnWidthOverride: I, gridColumnWidthStyle: H, isMeasuringColumnWidths: ie, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: re, localColumnsState: ce, definedEmitsFunction: n, emit: a, stickyFiltersHeight: D, computedStickyFiltersTopPosition: q, columnHeadersHeight: Y, computedColumnHeadersTopPosition: se, sortedColumns: ae, columnSets: le, isOnlyOneVisibleColumn: de, onConfigSettingsUpdate: ue, onConfigSettingsColumnsUpdate: fe, onConfigSettingsColumnUpdate: ge, hoveredOverColumn: _e, hoveredOverColumnState: ft, draggingColumns: Oe, draggingEventsForColumns: gt, draggingEventsForRowCell: _t, onMoveColumnByOffset: vt, onAllRowSelect: Ct, onRowSelect: mt, selectedItems: ve, allItemsSelectedState: pt, navigationInput: ht, isLazyLoad: Re, isInfiniteScroll: Lt, verticalScrollPosition: ye, emitLazyLoadEvent: St, updateScrollPosition: Et, updateScrollPositionOnFrozenColumnsNavigation: bt, hasLeftOverflow: Ce, hasRightOverflow: Ae, onEmptyStateClearResetButtonClick: Te, limitedEmptyStateProps: Ot, conditionalGridClasses: Rt, computedColumnPanelAlignment: yt, conditionalRowClasses: At, showFrozenColumnsSeparator: Ie, conditionalRowSetClasses: Tt, conditionalFilterClasses: It, conditionalPaginationClasses: wt, registerColumnHeaderRefs: Nt, registerRowCellRef: Dt, onRowClick: Mt, onCellHover: Ft, selectableAcrossPagesComputed: Pt, ariaGridHeaderText: $t, getRowAriaSelectedValue: xt, itemsSelectedCounter: we, showActionBar: Ut, onColumnResized: zt, onSort: Bt, onPaginationNavigate: Gt, onItemsPerPageChange: Wt, onSearchTermCleared: kt, onSearchTermInput: Ht, hasMandatoryColumn: Ne, setTitle: De, BentoActionBar: Kt, BentoPagination: Qt, BentoLoadingIndicator: nt, BentoTypography: he, BentoDataGridConfigSettings: qs, DataGridCell: hl, DataGridColumns: Ns, DataGridLazyLoad: el, BentoDatagridEvent: A, BentoEmptyState: nn, BentoFilterBar: me };
2056
- }
2057
- });
2058
- var Dl = function() {
2059
- var l;
2060
- var e = this, n = e._self._c, t = e._self._setupProxy;
2061
- return n("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: t.conditionalFilterClasses, style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? n(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, o), "update:filter-values": (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, o) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [t.columnPanel ? n(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: t.localColumnsState, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: o, id: c, isFrozenColumns: _ }, f) {
2062
- return [o != null && o.length ? n(t.DataGridColumns, e._g({ key: `data-grid-columns-${c}`, ref: (v) => t.registerColumnHeaderRefs(v), refInFor: !0, attrs: { columns: o, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": _, "show-frozen-columns-separator": t.showFrozenColumnsSeparator, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": t.columnPanel, "has-left-overflow": t.hasLeftOverflow, "has-first-column-panel-right-aligned": f === t.computedColumnPanelAlignment, "hovered-over-column-state": t.hoveredOverColumnState, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-only-one-visible-column": t.isOnlyOneVisibleColumn, selectable: t.selectable, "selectable-across-pages": t.selectableAcrossPagesComputed, "truncate-column-headers": e.truncateColumnHeaders }, on: { "column-hover": function(v) {
2063
- t.hoveredOverColumn = v;
2064
- }, "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, "select-all-across-pages": function(v) {
2065
- return t.emit(t.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
2066
- }, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(v, p) {
2067
- return { key: p, fn: function(d) {
2068
- return [e._t(p, null, null, d)];
2069
- } };
2070
- })], null, !0) }, t.draggingEventsForColumns)) : e._e()];
2071
- })], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { "data-testid": "data-grid-body", tabindex: t.loading ? "0" : "-1", "aria-busy": t.loading, "aria-live": "polite" }, on: { scroll: t.updateScrollPosition } }, [t.loading && !t.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(t.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(t.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(t.t("gettingYourData")))])], 1) : ((l = t.data) == null ? void 0 : l.length) === 0 && e.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(t.BentoEmptyState, e._b({}, "bento-empty-state", t.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: t.navigationInput } }, e._l(t.data, function(o, c) {
2072
- return n("div", { key: c, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(o, c), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": c + 1, "aria-selected": t.getRowAriaSelectedValue(o) }, on: { click: function(_) {
2073
- return t.onRowClick(o, _);
2074
- } } }, [e._l(t.columnSets, function({ columnSet: _, id: f, isFrozenColumns: v }, p) {
2075
- return [_ != null && _.length ? n("div", { key: `data-grid-rows-${f}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(v), attrs: { "data-testid": `data-grid-${f}-rows` } }, e._l(_, function(d, u) {
2076
- return n(t.DataGridCell, { key: `cell-${d.field}`, ref: (r) => t.registerRowCellRef(r, d.field, c), refInFor: !0, attrs: { column: d, "column-set-index": p, "col-index": u, "column-sets": t.columnSets, condensed: e.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": e.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": e.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "row-data": o, "row-index": c, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hover": (r) => t.hoveredOverColumn = r, "on-frozen-columns-key-press": t.updateScrollPositionOnFrozenColumnsNavigation, "select-row": t.onRowSelect, "cell-hovered": t.onCellHover }, scopedSlots: e._u([e._l(t.slots, function(r, g) {
2077
- return { key: g, fn: function(h) {
2078
- return [e._t(g, null, null, h)];
2079
- } };
2080
- })], null, !0) });
2081
- }), 1) : e._e()];
2082
- })], 2);
2083
- }), 0)]), t.isLazyLoad ? n(t.DataGridLazyLoad, { attrs: { loading: t.loading, "is-infinite-scroll": t.isInfiniteScroll }, on: { "update:show-more": t.emitLazyLoadEvent } }) : e._e(), e.pagination && !t.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: t.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(t.BentoPagination, e._b({ attrs: { "aria-label": `${t.ariaGridHeaderText} navigation` }, on: { navigate: t.onPaginationNavigate, "items-page": t.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1))], 1) : e._e(), e.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e(), t.showActionBar ? n(t.BentoActionBar, { attrs: { actions: e.bulkActions, "item-counter": t.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(o) {
2084
- return t.onAllRowSelect(!1);
2085
- } } }) : e._e()], 1);
2086
- }, Ml = [], Fl = /* @__PURE__ */ $(
2087
- Nl,
2088
- Dl,
2089
- Ml,
2090
- !1,
2091
- null,
2092
- "ea16aee9"
2093
- );
2094
- const Sa = Fl.exports;
2095
- export {
2096
- Le as B,
2097
- La as a,
2098
- J as b,
2099
- ee as c,
2100
- Sa as d,
2101
- A as e,
2102
- pe as f
2103
- };
2104
- //# sourceMappingURL=data-grid.Bs1AeOdW.js.map