@adyen/bento-vue2 1.31.0 → 1.31.1
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.
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/chunks/{data-grid.DPtjSfy6.js → data-grid.VZ1STYt0.js} +456 -455
- package/dist/chunks/data-grid.VZ1STYt0.js.map +1 -0
- package/dist/data-grid.js +1 -1
- package/dist/index.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/chunks/data-grid.DPtjSfy6.js.map +0 -1
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { ref as O, reactive as Se, toRefs as Ee, computed as b, watchEffect as kt, watch as
|
|
1
|
+
import { ref as O, reactive as Se, toRefs as Ee, computed as b, watchEffect as kt, watch as H, onMounted as Oe, nextTick as V, onUnmounted as Je, onBeforeUpdate as Ht, defineComponent as ee, toRef as Qe, provide as Vt, useSlots as Zt, inject as Fe } from "vue";
|
|
2
2
|
import { C as jt } from "./checkmark-circle-fill.DVl6QSwm.js";
|
|
3
3
|
import { W as qt } from "./warning-filled.CLKRzGMT.js";
|
|
4
4
|
import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
5
|
import { C as et } from "./cross.CsUPDmaA.js";
|
|
6
|
-
import { N as
|
|
6
|
+
import { N as Pe } from "./checkbox-input.DwDwI2BD.js";
|
|
7
7
|
import { d as Yt } from "./popper-container.By1AW5Od.js";
|
|
8
8
|
import { K, B as Xt } from "./tooltip.BmKdsFTL.js";
|
|
9
9
|
import { B as Kt } from "./action-bar.B_0DvTPe.js";
|
|
10
10
|
import { B as Jt } from "./pagination.Cfx0W4Ol.js";
|
|
11
11
|
import { B as tt } from "./loading-indicator.DXc7I1Lm.js";
|
|
12
|
-
import { B as he, p as
|
|
12
|
+
import { B as he, p as nt } from "./typography.Bjtu3Gca.js";
|
|
13
13
|
import { u as Qt } from "./aria-label.CaUURpnB.js";
|
|
14
|
-
import { g as
|
|
15
|
-
import { u as
|
|
16
|
-
import { B as
|
|
14
|
+
import { g as en } from "./get-slot-text.Cgn-E48s.js";
|
|
15
|
+
import { u as se } from "./i18n.BQkEbtPM.js";
|
|
16
|
+
import { B as tn } from "./empty-state.BqVOj4v1.js";
|
|
17
17
|
import { B as me } from "./filter-bar.7nGTSoYh.js";
|
|
18
|
-
import { E as
|
|
19
|
-
import { D as
|
|
20
|
-
import { o as
|
|
18
|
+
import { E as nn } from "./tabs.keys.Bc2pSKRw.js";
|
|
19
|
+
import { D as sn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
20
|
+
import { o as st } from "./resize.Bqks3WUm.js";
|
|
21
21
|
import "./index.Cl4_42j5.js";
|
|
22
|
-
import { a as $e, B as
|
|
22
|
+
import { a as $e, B as ln } from "./popover.BUB-a17X.js";
|
|
23
23
|
import { B as lt } from "./button.DhAUh5JA.js";
|
|
24
24
|
import { B as ot } from "./toggle.CiOVTWlk.js";
|
|
25
|
-
import { B as
|
|
26
|
-
import { u as
|
|
27
|
-
import { g as
|
|
28
|
-
import { S as
|
|
25
|
+
import { B as on } from "./search-bar.TiQbXYj4.js";
|
|
26
|
+
import { u as an } from "./dropdown.D-9cUSSo.js";
|
|
27
|
+
import { g as rn } from "./unique-id.XFfoKuc2.js";
|
|
28
|
+
import { S as cn } from "./search.CBKhp7zB.js";
|
|
29
29
|
import { B as it } from "./toggle-button.2U-vbQhk.js";
|
|
30
|
-
import { B as
|
|
30
|
+
import { B as dn } from "./directive.O3yEdalv.js";
|
|
31
31
|
import { B as at } from "./checkbox.BP2_1_qF.js";
|
|
32
|
-
import { B as rt, O as
|
|
33
|
-
import { E as
|
|
34
|
-
import { C as
|
|
35
|
-
import { B as
|
|
36
|
-
import { A as
|
|
32
|
+
import { B as rt, O as un, D as fn } from "./menu.C8ZmHcw8.js";
|
|
33
|
+
import { E as gn } from "./link.DJ1A53gF.js";
|
|
34
|
+
import { C as _n } from "./copy.9yVc8L5b.js";
|
|
35
|
+
import { B as vn } from "./info-icon.BkVcFKkT.js";
|
|
36
|
+
import { A as Cn } from "./dialog-page.DAh0M4mT.js";
|
|
37
37
|
import { l as xe } from "./events.CMzGybJJ.js";
|
|
38
|
-
import { B as
|
|
38
|
+
import { B as mn, a as pn } from "./loading-button.CcYmeIl8.js";
|
|
39
39
|
import "../assets/data-grid.css";
|
|
40
|
-
var Le = /* @__PURE__ */ ((
|
|
41
|
-
const
|
|
42
|
-
const
|
|
40
|
+
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 || {}), te = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(te || {}), y = /* @__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))(y || {}), 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 || {});
|
|
41
|
+
const hn = (s, e) => {
|
|
42
|
+
const n = O(null), t = O(!1), l = O(void 0), o = s.value.reduce((m, E) => (m[E.field] = null, m), {}), r = Se(o), C = Ee(r);
|
|
43
43
|
let u = 0, p = "";
|
|
44
44
|
const h = b(
|
|
45
|
-
() => Object.fromEntries(
|
|
45
|
+
() => Object.fromEntries(s.value.map(({ field: m, width: E, minWidth: R }) => [m, { width: E, minWidth: R }]))
|
|
46
46
|
);
|
|
47
47
|
kt(() => l.value = h.value);
|
|
48
48
|
let c = null, d = null;
|
|
49
49
|
const a = (m) => {
|
|
50
50
|
const E = m.clientX - u, R = p, T = l.value[R].width + E;
|
|
51
|
-
l.value[R].width = T > h.value[R].minWidth ? T : h.value[R].minWidth, e(
|
|
51
|
+
l.value[R].width = T > h.value[R].minWidth ? T : h.value[R].minWidth, e(P.COLUMN_RESIZING, l.value), u = m.clientX;
|
|
52
52
|
}, g = () => {
|
|
53
|
-
t.value = !1, c == null || c(), d == null || d(), p && e(
|
|
53
|
+
t.value = !1, c == null || c(), d == null || d(), p && e(P.COLUMN_RESIZE, {
|
|
54
54
|
field: p,
|
|
55
55
|
width: l.value[p].width
|
|
56
56
|
}), c = null, d = null, p = "", u = null;
|
|
@@ -63,33 +63,33 @@ const ps = (n, e) => {
|
|
|
63
63
|
p = E, u = R.clientX, c = xe(window, "mousemove", a), d = xe(window, "mouseup", g);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
return
|
|
66
|
+
return H(
|
|
67
67
|
() => t.value,
|
|
68
68
|
(m, E) => {
|
|
69
|
-
!m && E && (e(
|
|
69
|
+
!m && E && (e(P.COLUMN_HOVER, n.value), n.value = null);
|
|
70
70
|
}
|
|
71
71
|
), {
|
|
72
72
|
resizeData: l,
|
|
73
73
|
allColumnRefs: C,
|
|
74
74
|
startResize: L,
|
|
75
75
|
isResizing: t,
|
|
76
|
-
columnHoverEventToEmitAfterResizing:
|
|
76
|
+
columnHoverEventToEmitAfterResizing: n
|
|
77
77
|
};
|
|
78
|
-
},
|
|
78
|
+
}, Ln = 100, Ue = 50, ne = "b-select", Sn = 32, En = 56, On = 1, bn = 16, Rn = (s, e, n) => {
|
|
79
79
|
const t = {}, l = [], o = (C) => {
|
|
80
80
|
const u = t[C];
|
|
81
81
|
u && u.frozen !== !0 && (t[C].frozen = !0, l.push(C));
|
|
82
82
|
};
|
|
83
83
|
function r() {
|
|
84
|
-
if (l.length ===
|
|
84
|
+
if (l.length === n.length)
|
|
85
85
|
return;
|
|
86
86
|
const C = { min: {}, max: {} };
|
|
87
|
-
let u =
|
|
87
|
+
let u = s, p = e, h = 0;
|
|
88
88
|
l.forEach((c) => {
|
|
89
89
|
u -= t[c].computedWidth, p -= t[c].flex;
|
|
90
90
|
});
|
|
91
|
-
for (let c = 0, d =
|
|
92
|
-
const a =
|
|
91
|
+
for (let c = 0, d = n.length; c < d; c += 1) {
|
|
92
|
+
const a = n[c];
|
|
93
93
|
if (t[a.field] && t[a.field].frozen === !0)
|
|
94
94
|
continue;
|
|
95
95
|
let L = u / p * a.flex;
|
|
@@ -101,44 +101,45 @@ const ps = (n, e) => {
|
|
|
101
101
|
}
|
|
102
102
|
h > 0 ? Object.keys(C.min).forEach((c) => {
|
|
103
103
|
o(c);
|
|
104
|
-
}) :
|
|
104
|
+
}) : n.forEach(({ field: c }) => {
|
|
105
105
|
o(c);
|
|
106
106
|
}), r();
|
|
107
107
|
}
|
|
108
108
|
return r(), t;
|
|
109
|
-
}, ze = (
|
|
110
|
-
let
|
|
111
|
-
return e && (
|
|
112
|
-
},
|
|
113
|
-
const r = O(
|
|
114
|
-
|
|
115
|
-
() =>
|
|
116
|
-
() => {
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
|
|
109
|
+
}, ze = (s, e) => {
|
|
110
|
+
let n = On;
|
|
111
|
+
return e && (n += bn * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
112
|
+
}, yn = (s, e, n, t, l, o) => {
|
|
113
|
+
const r = O(s.value), C = O(e), u = O(n), p = O(t), h = O(l), c = O(!1);
|
|
114
|
+
H(
|
|
115
|
+
() => s.value,
|
|
116
|
+
(f, _) => {
|
|
117
|
+
var w, x;
|
|
118
|
+
const A = (f == null ? void 0 : f.map(({ field: U }) => U).toString()) === (_ == null ? void 0 : _.map(({ field: U }) => U).toString());
|
|
119
|
+
if (!((w = o == null ? void 0 : o.allowColumnDragAndDrop) != null && w.value) || !A) {
|
|
120
|
+
r.value = s.value;
|
|
120
121
|
return;
|
|
121
122
|
}
|
|
122
|
-
r.value = ((
|
|
123
|
-
const
|
|
124
|
-
return
|
|
123
|
+
r.value = ((x = r.value) == null ? void 0 : x.length) === 0 ? s.value : s.value.sort((U, k) => {
|
|
124
|
+
const W = r.value.findIndex((F) => F.field === U.field), z = r.value.findIndex((F) => F.field === k.field);
|
|
125
|
+
return W === -1 ? 1 : z === -1 ? -1 : W - z;
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
);
|
|
128
129
|
const d = O();
|
|
129
130
|
let a = null;
|
|
130
131
|
const g = b(() => {
|
|
131
|
-
var
|
|
132
|
+
var W, z;
|
|
132
133
|
const f = [];
|
|
133
134
|
let _ = 0, A = 0;
|
|
134
|
-
const
|
|
135
|
+
const w = {};
|
|
135
136
|
let x = r.value.filter((F) => F.visible !== !1);
|
|
136
137
|
const U = r.value.filter((F) => F.visible === !1);
|
|
137
|
-
if ((
|
|
138
|
-
const F = (
|
|
138
|
+
if ((W = o == null ? void 0 : o.hasSelectableColumn) != null && W.value) {
|
|
139
|
+
const F = (z = o == null ? void 0 : o.hasSelectableAcrossPages) != null && z.value ? En : Sn;
|
|
139
140
|
x = [
|
|
140
141
|
{
|
|
141
|
-
field:
|
|
142
|
+
field: ne,
|
|
142
143
|
label: "",
|
|
143
144
|
minWidth: F,
|
|
144
145
|
width: F,
|
|
@@ -152,33 +153,33 @@ const ps = (n, e) => {
|
|
|
152
153
|
const I = { ...F };
|
|
153
154
|
let Z;
|
|
154
155
|
I.flex && I.flex > 0 ? (_ += I.flex, Z = 0, f.push(I)) : Z = Math.max(
|
|
155
|
-
(I == null ? void 0 : I.width) ??
|
|
156
|
+
(I == null ? void 0 : I.width) ?? Ln,
|
|
156
157
|
(I == null ? void 0 : I.minWidth) ?? Ue
|
|
157
|
-
), A += Z, I.width = Z, I.minWidth = (I == null ? void 0 : I.minWidth) ?? Ue,
|
|
158
|
+
), A += Z, I.width = Z, I.minWidth = (I == null ? void 0 : I.minWidth) ?? Ue, w[I.field] = I;
|
|
158
159
|
});
|
|
159
|
-
const
|
|
160
|
+
const k = Math.max(d.value - A, 0);
|
|
160
161
|
if (_ > 0 && d.value > 0) {
|
|
161
|
-
const F =
|
|
162
|
+
const F = Rn(k, _, f);
|
|
162
163
|
Object.keys(F).forEach((I) => {
|
|
163
|
-
|
|
164
|
+
w[I].width = F[I].computedWidth;
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
167
|
return U.forEach((F) => {
|
|
167
168
|
const I = { ...F };
|
|
168
|
-
|
|
169
|
-
}), Object.values(
|
|
169
|
+
w[I.field] = I;
|
|
170
|
+
}), Object.values(w);
|
|
170
171
|
}), L = O(void 0), m = (f) => {
|
|
171
172
|
L.value = { ...L.value, ...f };
|
|
172
173
|
}, E = async () => {
|
|
173
|
-
r.value.some((f) => f == null ? void 0 : f.autoWidth) && (c.value = !0, await
|
|
174
|
-
var U,
|
|
174
|
+
r.value.some((f) => f == null ? void 0 : f.autoWidth) && (c.value = !0, await V(), r == null || r.value.filter((f) => f == null ? void 0 : f.autoWidth).forEach(({ field: f, minWidth: _ }) => {
|
|
175
|
+
var U, k, W, z;
|
|
175
176
|
const A = ze(
|
|
176
177
|
(U = p.value) == null ? void 0 : U[f],
|
|
177
|
-
(
|
|
178
|
-
),
|
|
178
|
+
(k = o == null ? void 0 : o.hasColumnPanel) == null ? void 0 : k.value
|
|
179
|
+
), w = (z = (W = h.value) == null ? void 0 : W[f]) == null ? void 0 : z.reduce(
|
|
179
180
|
(F, I) => Math.max(F, ze(I)),
|
|
180
181
|
0
|
|
181
|
-
), x = Math.max(A,
|
|
182
|
+
), x = Math.max(A, w ?? 0);
|
|
182
183
|
(_ === void 0 || x > _) && m({
|
|
183
184
|
[f]: {
|
|
184
185
|
width: x
|
|
@@ -186,7 +187,7 @@ const ps = (n, e) => {
|
|
|
186
187
|
});
|
|
187
188
|
}), c.value = !1);
|
|
188
189
|
};
|
|
189
|
-
|
|
190
|
+
H([() => r.value, () => C.value], async () => {
|
|
190
191
|
r.value.some((f) => f == null ? void 0 : f.autoWidth) && await E();
|
|
191
192
|
});
|
|
192
193
|
const R = b(
|
|
@@ -205,17 +206,17 @@ const ps = (n, e) => {
|
|
|
205
206
|
}
|
|
206
207
|
), v = b(
|
|
207
208
|
() => d.value <= T.value
|
|
208
|
-
),
|
|
209
|
+
), M = b(() => ({
|
|
209
210
|
width: d.value > T.value ? "100%" : "fit-content"
|
|
210
211
|
}));
|
|
211
212
|
return Oe(() => {
|
|
212
213
|
var f;
|
|
213
|
-
|
|
214
|
+
V(() => {
|
|
214
215
|
u.value && (d.value = u.value.getBoundingClientRect().width);
|
|
215
|
-
const _ =
|
|
216
|
+
const _ = H(
|
|
216
217
|
u,
|
|
217
218
|
() => {
|
|
218
|
-
u.value && (
|
|
219
|
+
u.value && (V(() => _()), a = st(u.value, ({ width: A }) => {
|
|
219
220
|
d.value = A;
|
|
220
221
|
}));
|
|
221
222
|
},
|
|
@@ -233,98 +234,98 @@ const ps = (n, e) => {
|
|
|
233
234
|
});
|
|
234
235
|
}), {
|
|
235
236
|
columnDefs: R,
|
|
236
|
-
gridColumnWidthStyle:
|
|
237
|
+
gridColumnWidthStyle: M,
|
|
237
238
|
onColumnWidthOverride: m,
|
|
238
239
|
isMeasuringColumnWidths: c,
|
|
239
240
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: v,
|
|
240
241
|
columns: r
|
|
241
242
|
};
|
|
242
|
-
},
|
|
243
|
-
const o = O(
|
|
243
|
+
}, An = (s, e, n, t, l) => {
|
|
244
|
+
const o = O(s.value ?? []), r = Se({
|
|
244
245
|
allItemsSelected: !1,
|
|
245
246
|
isIndeterminate: !1
|
|
246
247
|
}), C = () => {
|
|
247
248
|
e(y.SELECT, o.value), e(y.UPDATE_SELECTION, o.value);
|
|
248
249
|
}, u = (c) => {
|
|
249
250
|
var a, g, L, m, E;
|
|
250
|
-
if (o.value = c, ((a =
|
|
251
|
+
if (o.value = c, ((a = n.value) == null ? void 0 : a.length) > 0 && ((g = n.value) == null ? void 0 : g.filter((R) => !l(R)).every((R) => o.value.includes(t(R))))) {
|
|
251
252
|
r.allItemsSelected = !0;
|
|
252
|
-
const R = ((L =
|
|
253
|
+
const R = ((L = n.value) == null ? void 0 : L.length) > 0 && n.value.every((T) => o.value.includes(t(T)));
|
|
253
254
|
r.isIndeterminate = !R;
|
|
254
255
|
} else
|
|
255
|
-
r.allItemsSelected = !1, r.isIndeterminate = ((m = o.value) == null ? void 0 : m.length) > 0 && ((E =
|
|
256
|
+
r.allItemsSelected = !1, r.isIndeterminate = ((m = o.value) == null ? void 0 : m.length) > 0 && ((E = n.value) == null ? void 0 : E.length) > 0 && n.value.some((R) => o.value.includes(t(R)));
|
|
256
257
|
}, p = (c) => {
|
|
257
|
-
|
|
258
|
+
V(() => {
|
|
258
259
|
var d, a, g;
|
|
259
260
|
if (r.allItemsSelected = c, c) {
|
|
260
|
-
o.value = (a = (d =
|
|
261
|
-
const L = ((g =
|
|
261
|
+
o.value = (a = (d = n.value) == null ? void 0 : d.filter((m) => !l(m))) == null ? void 0 : a.map((m) => t(m));
|
|
262
|
+
const L = ((g = n.value) == null ? void 0 : g.length) > 0 && n.value.every((m) => o.value.includes(t(m)));
|
|
262
263
|
r.isIndeterminate = o.value.length > 0 && !L;
|
|
263
264
|
} else
|
|
264
265
|
o.value = [], r.isIndeterminate = !1;
|
|
265
266
|
C();
|
|
266
267
|
});
|
|
267
268
|
}, h = (c) => {
|
|
268
|
-
|
|
269
|
+
V(() => {
|
|
269
270
|
u(c), C();
|
|
270
271
|
});
|
|
271
272
|
};
|
|
272
|
-
return
|
|
273
|
-
() =>
|
|
273
|
+
return H(
|
|
274
|
+
() => s.value,
|
|
274
275
|
() => {
|
|
275
|
-
u(
|
|
276
|
+
u(s.value ?? []);
|
|
276
277
|
},
|
|
277
278
|
{ immediate: !0 }
|
|
278
|
-
),
|
|
279
|
-
() =>
|
|
279
|
+
), H(
|
|
280
|
+
() => n.value,
|
|
280
281
|
() => {
|
|
281
282
|
u(o.value);
|
|
282
283
|
}
|
|
283
284
|
), { onAllRowSelect: p, onRowSelect: h, allItemsSelectedState: r, selectedItems: o };
|
|
284
|
-
},
|
|
285
|
+
}, Tn = (s, e, n) => ({ isSorting: (r) => s.value.some((C) => C.field === r), getSortingDirection: (r) => {
|
|
285
286
|
var C;
|
|
286
|
-
return (C =
|
|
287
|
+
return (C = s.value.find((u) => u.field === r)) == null ? void 0 : C.direction;
|
|
287
288
|
}, sortByColumnField: (r) => {
|
|
288
289
|
var p;
|
|
289
290
|
if (!e.value.some((h) => h.field === r && h.sortable))
|
|
290
291
|
return;
|
|
291
292
|
const u = [{
|
|
292
293
|
field: r,
|
|
293
|
-
direction: ((p =
|
|
294
|
+
direction: ((p = s.value.find((h) => h.field === r)) == null ? void 0 : p.direction) === te.ASCENDING ? te.DESCENDING : te.ASCENDING
|
|
294
295
|
}];
|
|
295
|
-
|
|
296
|
+
n(P.SORT, u);
|
|
296
297
|
} });
|
|
297
|
-
var
|
|
298
|
-
const
|
|
298
|
+
var B = ((s) => (s[s.ARROW_DOWN = K.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = K.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = K.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = K.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = K.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = K.PAGE_DOWN] = "PAGE_DOWN", s[s.END = K.END] = "END", s[s.HOME = K.HOME] = "HOME", s))(B || {});
|
|
299
|
+
const In = (s, e, n) => {
|
|
299
300
|
const t = b(() => {
|
|
300
301
|
const a = e.value.filter(({ visible: g }) => g !== !1);
|
|
301
|
-
return
|
|
302
|
+
return n.value ? a.length + 1 : a.length;
|
|
302
303
|
}), l = b(
|
|
303
|
-
() => [...Object.values(
|
|
304
|
+
() => [...Object.values(s.value)].flat(1).sort((a, g) => {
|
|
304
305
|
const L = Number(a.getAttribute("data-cellindex")), m = Number(g.getAttribute("data-cellindex"));
|
|
305
306
|
return L > m ? 1 : m > L ? -1 : 0;
|
|
306
307
|
})
|
|
307
308
|
), o = (a) => Math.floor(a / t.value), r = (a, g, L) => {
|
|
308
309
|
const m = l.value.length - 1, E = t.value - 1, R = o(a), T = a - t.value * R;
|
|
309
310
|
return {
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
311
|
+
[B.PAGE_UP]: T,
|
|
312
|
+
[B.PAGE_DOWN]: m - E + T,
|
|
313
|
+
[B.END]: L ? m : t.value * R + E,
|
|
314
|
+
[B.HOME]: L ? 0 : t.value * R
|
|
314
315
|
}[g];
|
|
315
316
|
}, C = (a, g) => {
|
|
316
317
|
const m = {
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
[
|
|
318
|
+
[B.ARROW_DOWN]: t.value,
|
|
319
|
+
[B.ARROW_UP]: -t.value,
|
|
320
|
+
[B.ARROW_LEFT]: -1,
|
|
321
|
+
[B.ARROW_RIGHT]: 1
|
|
321
322
|
}[g], E = a + m;
|
|
322
323
|
return E < 0 || E >= l.value.length ? a : E;
|
|
323
324
|
}, u = (a) => [
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
B.PAGE_UP,
|
|
326
|
+
B.PAGE_DOWN,
|
|
327
|
+
B.END,
|
|
328
|
+
B.HOME
|
|
328
329
|
].includes(a), p = (a, g, L) => {
|
|
329
330
|
const m = l.value.indexOf(a);
|
|
330
331
|
return u(g) ? r(m, g, L) : C(m, g);
|
|
@@ -333,27 +334,27 @@ const Ts = (n, e, s) => {
|
|
|
333
334
|
return;
|
|
334
335
|
const m = p(a, g, L);
|
|
335
336
|
l.value[m].focus();
|
|
336
|
-
}, c = (a) => a in
|
|
337
|
+
}, c = (a) => a in B;
|
|
337
338
|
return {
|
|
338
339
|
isNavigationKeyCode: c,
|
|
339
340
|
focusOnNextGridcell: h,
|
|
340
341
|
navigationInput: (a) => {
|
|
341
342
|
const { ctrlKey: g, keyCode: L, target: m } = a;
|
|
342
|
-
Object.values(
|
|
343
|
+
Object.values(s.value).flat(1).includes(m) && c(L) && h(m, L, g);
|
|
343
344
|
}
|
|
344
345
|
};
|
|
345
|
-
},
|
|
346
|
-
const o = O(
|
|
346
|
+
}, wn = 90, Nn = (s, e, n, t, l) => {
|
|
347
|
+
const o = O(s), r = O(e), C = O(n), u = O(t), p = b(() => o.value !== "none"), h = b(() => o.value === "automatic"), c = () => {
|
|
347
348
|
l(y.UPDATE_SHOW_MORE);
|
|
348
349
|
};
|
|
349
|
-
return
|
|
350
|
+
return H(
|
|
350
351
|
() => r.value,
|
|
351
352
|
() => {
|
|
352
|
-
h.value && C.value.offsetHeight / r.value * 100 >
|
|
353
|
+
h.value && C.value.offsetHeight / r.value * 100 > wn && !u.value && c();
|
|
353
354
|
}
|
|
354
355
|
), { isLazyLoad: p, isInfiniteScroll: h, verticalScrollPosition: r, emitLazyLoadEvent: c };
|
|
355
|
-
},
|
|
356
|
-
const t = O(
|
|
356
|
+
}, Dn = (s, e, n) => {
|
|
357
|
+
const t = O(s), l = O(e), o = Se({
|
|
357
358
|
dragging: null,
|
|
358
359
|
dragToLeft: null,
|
|
359
360
|
target: null
|
|
@@ -362,7 +363,7 @@ const Ts = (n, e, s) => {
|
|
|
362
363
|
if (m < 0 || m > t.value.length - 1)
|
|
363
364
|
return;
|
|
364
365
|
const E = [...t.value];
|
|
365
|
-
E.splice(m, 0, E.splice(L, 1)[0]),
|
|
366
|
+
E.splice(m, 0, E.splice(L, 1)[0]), n(y.COLUMNS, E), n(y.UPDATE_COLUMNS, E);
|
|
366
367
|
}, C = (a, g) => {
|
|
367
368
|
o.dragging = a, g.dataTransfer.setData("text", ""), g.dataTransfer.dropEffect = "move";
|
|
368
369
|
}, u = (a, g) => {
|
|
@@ -382,22 +383,22 @@ const Ts = (n, e, s) => {
|
|
|
382
383
|
0,
|
|
383
384
|
v.splice(m, 1)[0]
|
|
384
385
|
);
|
|
385
|
-
const
|
|
386
|
-
((L = o.dragging) == null ? void 0 : L.frozen) !== a.frozen && R !==
|
|
386
|
+
const M = t.value.findIndex((f) => !(f != null && f.frozen));
|
|
387
|
+
((L = o.dragging) == null ? void 0 : L.frozen) !== a.frozen && R !== M && (v = v.map(
|
|
387
388
|
(f) => {
|
|
388
389
|
var _;
|
|
389
390
|
return ((_ = o.dragging) == null ? void 0 : _.field) === f.field ? { ...f, frozen: !!(a != null && a.frozen) } : f;
|
|
390
391
|
}
|
|
391
|
-
)),
|
|
392
|
+
)), n(y.COLUMNS, v), n(y.UPDATE_COLUMNS, v);
|
|
392
393
|
}
|
|
393
394
|
o.dragging = null, o.target = null;
|
|
394
395
|
}, h = () => {
|
|
395
396
|
o.dragging = null, o.dragToLeft = null, o.target = null;
|
|
396
397
|
}, c = b(() => l.value ? {
|
|
397
|
-
[
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
398
|
+
[P.COLUMN_DRAG_START]: (a, g) => C(a, g),
|
|
399
|
+
[P.COLUMN_DRAG_ENTER]: (a, g) => u(a, g),
|
|
400
|
+
[P.COLUMN_DROP]: (a) => p(a),
|
|
401
|
+
[P.COLUMN_DRAG_END]: () => h()
|
|
401
402
|
} : {}), d = b(() => (a) => l.value ? {
|
|
402
403
|
dragenter: (g) => {
|
|
403
404
|
g.preventDefault(), u(a, g);
|
|
@@ -417,9 +418,9 @@ const Ts = (n, e, s) => {
|
|
|
417
418
|
draggingEventsForRowCell: d,
|
|
418
419
|
onMoveColumnByOffset: r
|
|
419
420
|
};
|
|
420
|
-
},
|
|
421
|
-
const
|
|
422
|
-
() => [...
|
|
421
|
+
}, Mn = (s, e) => {
|
|
422
|
+
const n = O(s), t = b(
|
|
423
|
+
() => [...n.value].sort((c, d) => c.frozen === d.frozen ? 0 : c.frozen ? -1 : 1)
|
|
423
424
|
), l = b(
|
|
424
425
|
() => t.value.filter((c) => c.frozen && c.visible !== !1)
|
|
425
426
|
), o = b(
|
|
@@ -430,7 +431,7 @@ const Ts = (n, e, s) => {
|
|
|
430
431
|
{ columnSet: o.value, id: "unfrozen" }
|
|
431
432
|
].filter(({ columnSet: c }) => c.length)
|
|
432
433
|
), C = b(
|
|
433
|
-
() =>
|
|
434
|
+
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== ne).length === 1
|
|
434
435
|
), u = (c) => e(y.UPDATE_CONDENSED, c), p = (c) => {
|
|
435
436
|
e(y.COLUMNS, c), e(y.UPDATE_COLUMNS, c);
|
|
436
437
|
};
|
|
@@ -449,44 +450,44 @@ const Ts = (n, e, s) => {
|
|
|
449
450
|
p(d);
|
|
450
451
|
}
|
|
451
452
|
};
|
|
452
|
-
}, Be = (
|
|
453
|
-
const
|
|
453
|
+
}, Be = (s, e) => {
|
|
454
|
+
const n = O(0);
|
|
454
455
|
let t = null;
|
|
455
456
|
const l = () => {
|
|
456
|
-
|
|
457
|
+
s != null && s.value && e.value && (n.value = s.value.offsetHeight);
|
|
457
458
|
};
|
|
458
459
|
return Oe(() => {
|
|
459
|
-
|
|
460
|
-
const o =
|
|
461
|
-
|
|
460
|
+
V(() => {
|
|
461
|
+
const o = H(
|
|
462
|
+
s,
|
|
462
463
|
() => {
|
|
463
|
-
|
|
464
|
+
s != null && s.value && (V(() => o()), t = st(s.value, () => {
|
|
464
465
|
l();
|
|
465
466
|
}));
|
|
466
467
|
},
|
|
467
468
|
{ immediate: !0 }
|
|
468
469
|
);
|
|
469
|
-
|
|
470
|
+
H(
|
|
470
471
|
e,
|
|
471
472
|
() => {
|
|
472
|
-
e.value ? l() :
|
|
473
|
+
e.value ? l() : n.value = 0;
|
|
473
474
|
},
|
|
474
475
|
{ immediate: !0 }
|
|
475
476
|
);
|
|
476
477
|
});
|
|
477
478
|
}), Je(() => {
|
|
478
479
|
t == null || t.disconnect();
|
|
479
|
-
}),
|
|
480
|
-
},
|
|
480
|
+
}), n;
|
|
481
|
+
}, Fn = (s, e, n) => {
|
|
481
482
|
const t = O(0), l = O(!1), o = O(!1);
|
|
482
|
-
return
|
|
483
|
+
return H(
|
|
483
484
|
() => t.value,
|
|
484
485
|
() => {
|
|
485
|
-
|
|
486
|
+
s.value.scrollLeft = t.value, e.value.scrollLeft = t.value, l.value = !!t.value, o.value = e.value.scrollWidth - e.value.offsetWidth > t.value;
|
|
486
487
|
}
|
|
487
488
|
), Oe(async () => {
|
|
488
489
|
var u, p;
|
|
489
|
-
await
|
|
490
|
+
await V(), ((u = e.value) == null ? void 0 : u.offsetWidth) < ((p = e.value) == null ? void 0 : p.scrollWidth) && (o.value = !0);
|
|
490
491
|
}), {
|
|
491
492
|
// Values
|
|
492
493
|
scrollLeftPosition: t,
|
|
@@ -494,25 +495,25 @@ const Ts = (n, e, s) => {
|
|
|
494
495
|
hasRightOverflow: o,
|
|
495
496
|
// Methods
|
|
496
497
|
updateScrollPosition: (u) => {
|
|
497
|
-
t.value = u.target.scrollLeft,
|
|
498
|
+
t.value = u.target.scrollLeft, n.value = s.value.scrollHeight - u.target.scrollTop;
|
|
498
499
|
},
|
|
499
500
|
updateScrollPositionOnFrozenColumnsNavigation: (u) => {
|
|
500
|
-
u.key !== "Tab" && u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(),
|
|
501
|
-
|
|
501
|
+
u.key !== "Tab" && u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
502
|
+
s.value.style.overflowX = "auto";
|
|
502
503
|
}));
|
|
503
504
|
}
|
|
504
505
|
};
|
|
505
|
-
},
|
|
506
|
+
}, Pn = (s, e, n, t) => {
|
|
506
507
|
const l = O(null), o = b(() => {
|
|
507
508
|
var L, m, E, R;
|
|
508
|
-
if (!l.value || l.value.field ===
|
|
509
|
+
if (!l.value || l.value.field === ne)
|
|
509
510
|
return {
|
|
510
511
|
hoveredOverColumnField: "",
|
|
511
512
|
isSeparatorOffset: !1,
|
|
512
513
|
noBorderLeft: !1,
|
|
513
514
|
noBorderRight: !1
|
|
514
515
|
};
|
|
515
|
-
const r = (m = (L =
|
|
516
|
+
const r = (m = (L = s.value.find((T) => T.isFrozenColumns)) == null ? void 0 : L.columnSet) == null ? void 0 : m.filter((T) => T.field !== ne), C = s.value.find((T) => !(T != null && T.isFrozenColumns)), u = l.value.frozen && (r == null ? void 0 : r[0].field) === l.value.field, p = !l.value.frozen && ((E = C == null ? void 0 : C.columnSet) == null ? void 0 : E[0].field) === l.value.field, h = (e.value || n.value) && u, c = (e.value || n.value) && !r && p, d = r && p, a = (r == null ? void 0 : r.length) > 0 && l.value.frozen && (r == null ? void 0 : r[r.length - 1].field) === l.value.field, g = n.value && t.value && !l.value.frozen && ((R = C == null ? void 0 : C.columnSet) == null ? void 0 : R[C.columnSet.length - 1].field) === l.value.field;
|
|
516
517
|
return {
|
|
517
518
|
hoveredOverColumnField: l.value.field,
|
|
518
519
|
isSeparatorOffset: g,
|
|
@@ -526,149 +527,149 @@ const Ts = (n, e, s) => {
|
|
|
526
527
|
};
|
|
527
528
|
};
|
|
528
529
|
let Ge = 0;
|
|
529
|
-
const
|
|
530
|
+
const $n = {
|
|
530
531
|
beforeCreate() {
|
|
531
532
|
this.uuid = Ge.toString(), Ge += 1;
|
|
532
533
|
}
|
|
533
534
|
};
|
|
534
|
-
var
|
|
535
|
-
var e = this,
|
|
536
|
-
return
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
535
|
+
var xn = function() {
|
|
536
|
+
var e = this, n = e._self._c;
|
|
537
|
+
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" } })])])]);
|
|
538
|
+
}, Un = [], zn = /* @__PURE__ */ $(
|
|
539
|
+
$n,
|
|
540
|
+
xn,
|
|
541
|
+
Un,
|
|
541
542
|
!1,
|
|
542
543
|
null,
|
|
543
544
|
null
|
|
544
545
|
);
|
|
545
|
-
const
|
|
546
|
+
const Bn = zn.exports;
|
|
546
547
|
let We = 0;
|
|
547
|
-
const
|
|
548
|
+
const Gn = {
|
|
548
549
|
beforeCreate() {
|
|
549
550
|
this.uuid = We.toString(), We += 1;
|
|
550
551
|
}
|
|
551
552
|
};
|
|
552
|
-
var
|
|
553
|
-
var e = this,
|
|
554
|
-
return
|
|
555
|
-
},
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
553
|
+
var Wn = function() {
|
|
554
|
+
var e = this, n = e._self._c;
|
|
555
|
+
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" } })]);
|
|
556
|
+
}, kn = [], Hn = /* @__PURE__ */ $(
|
|
557
|
+
Gn,
|
|
558
|
+
Wn,
|
|
559
|
+
kn,
|
|
559
560
|
!1,
|
|
560
561
|
null,
|
|
561
562
|
null
|
|
562
563
|
);
|
|
563
|
-
const
|
|
564
|
+
const Vn = Hn.exports;
|
|
564
565
|
let ke = 0;
|
|
565
|
-
const
|
|
566
|
+
const Zn = {
|
|
566
567
|
beforeCreate() {
|
|
567
568
|
this.uuid = ke.toString(), ke += 1;
|
|
568
569
|
}
|
|
569
570
|
};
|
|
570
|
-
var
|
|
571
|
-
var e = this,
|
|
572
|
-
return
|
|
573
|
-
},
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
571
|
+
var jn = function() {
|
|
572
|
+
var e = this, n = e._self._c;
|
|
573
|
+
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)" } })])])]);
|
|
574
|
+
}, qn = [], Yn = /* @__PURE__ */ $(
|
|
575
|
+
Zn,
|
|
576
|
+
jn,
|
|
577
|
+
qn,
|
|
577
578
|
!1,
|
|
578
579
|
null,
|
|
579
580
|
null
|
|
580
581
|
);
|
|
581
|
-
const ct =
|
|
582
|
+
const ct = Yn.exports;
|
|
582
583
|
let He = 0;
|
|
583
|
-
const
|
|
584
|
+
const Xn = {
|
|
584
585
|
beforeCreate() {
|
|
585
586
|
this.uuid = He.toString(), He += 1;
|
|
586
587
|
}
|
|
587
588
|
};
|
|
588
|
-
var
|
|
589
|
-
var e = this,
|
|
590
|
-
return
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
589
|
+
var Kn = function() {
|
|
590
|
+
var e = this, n = e._self._c;
|
|
591
|
+
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" } })]);
|
|
592
|
+
}, Jn = [], Qn = /* @__PURE__ */ $(
|
|
593
|
+
Xn,
|
|
594
|
+
Kn,
|
|
595
|
+
Jn,
|
|
595
596
|
!1,
|
|
596
597
|
null,
|
|
597
598
|
null
|
|
598
599
|
);
|
|
599
|
-
const
|
|
600
|
+
const es = Qn.exports;
|
|
600
601
|
let Ve = 0;
|
|
601
|
-
const
|
|
602
|
+
const ts = {
|
|
602
603
|
beforeCreate() {
|
|
603
604
|
this.uuid = Ve.toString(), Ve += 1;
|
|
604
605
|
}
|
|
605
606
|
};
|
|
606
|
-
var
|
|
607
|
-
var e = this,
|
|
608
|
-
return
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
607
|
+
var ns = function() {
|
|
608
|
+
var e = this, n = e._self._c;
|
|
609
|
+
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" } })])])]);
|
|
610
|
+
}, ss = [], ls = /* @__PURE__ */ $(
|
|
611
|
+
ts,
|
|
612
|
+
ns,
|
|
613
|
+
ss,
|
|
613
614
|
!1,
|
|
614
615
|
null,
|
|
615
616
|
null
|
|
616
617
|
);
|
|
617
|
-
const
|
|
618
|
+
const os = ls.exports;
|
|
618
619
|
let Ze = 0;
|
|
619
|
-
const
|
|
620
|
+
const is = {
|
|
620
621
|
beforeCreate() {
|
|
621
622
|
this.uuid = Ze.toString(), Ze += 1;
|
|
622
623
|
}
|
|
623
624
|
};
|
|
624
|
-
var
|
|
625
|
-
var e = this,
|
|
626
|
-
return
|
|
627
|
-
},
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
var as = function() {
|
|
626
|
+
var e = this, n = e._self._c;
|
|
627
|
+
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" } })])])]);
|
|
628
|
+
}, rs = [], cs = /* @__PURE__ */ $(
|
|
629
|
+
is,
|
|
630
|
+
as,
|
|
631
|
+
rs,
|
|
631
632
|
!1,
|
|
632
633
|
null,
|
|
633
634
|
null
|
|
634
635
|
);
|
|
635
|
-
const
|
|
636
|
+
const ds = cs.exports;
|
|
636
637
|
let je = 0;
|
|
637
|
-
const
|
|
638
|
+
const us = {
|
|
638
639
|
beforeCreate() {
|
|
639
640
|
this.uuid = je.toString(), je += 1;
|
|
640
641
|
}
|
|
641
642
|
};
|
|
642
|
-
var
|
|
643
|
-
var e = this,
|
|
644
|
-
return
|
|
645
|
-
},
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
643
|
+
var fs = function() {
|
|
644
|
+
var e = this, n = e._self._c;
|
|
645
|
+
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" } })]);
|
|
646
|
+
}, gs = [], _s = /* @__PURE__ */ $(
|
|
647
|
+
us,
|
|
648
|
+
fs,
|
|
649
|
+
gs,
|
|
649
650
|
!1,
|
|
650
651
|
null,
|
|
651
652
|
null
|
|
652
653
|
);
|
|
653
|
-
const
|
|
654
|
+
const vs = _s.exports;
|
|
654
655
|
let qe = 0;
|
|
655
|
-
const
|
|
656
|
+
const Cs = {
|
|
656
657
|
beforeCreate() {
|
|
657
658
|
this.uuid = qe.toString(), qe += 1;
|
|
658
659
|
}
|
|
659
660
|
};
|
|
660
|
-
var
|
|
661
|
-
var e = this,
|
|
662
|
-
return
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
661
|
+
var ms = function() {
|
|
662
|
+
var e = this, n = e._self._c;
|
|
663
|
+
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" } })]);
|
|
664
|
+
}, ps = [], hs = /* @__PURE__ */ $(
|
|
665
|
+
Cs,
|
|
666
|
+
ms,
|
|
667
|
+
ps,
|
|
667
668
|
!1,
|
|
668
669
|
null,
|
|
669
670
|
null
|
|
670
671
|
);
|
|
671
|
-
const
|
|
672
|
+
const Ls = hs.exports, Ss = {
|
|
672
673
|
"en-US": {
|
|
673
674
|
sortColumn: "Sort {name} column",
|
|
674
675
|
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
@@ -684,11 +685,11 @@ const Ln = hn.exports, Sn = {
|
|
|
684
685
|
unfreezeColumn: "Unfreeze column",
|
|
685
686
|
columnActions: "{name} column actions"
|
|
686
687
|
}
|
|
687
|
-
},
|
|
688
|
-
i18n: { messages:
|
|
688
|
+
}, Es = {
|
|
689
|
+
i18n: { messages: Ss },
|
|
689
690
|
name: "data-grid-columns"
|
|
690
|
-
},
|
|
691
|
-
...
|
|
691
|
+
}, Os = /* @__PURE__ */ ee({
|
|
692
|
+
...Es,
|
|
692
693
|
props: {
|
|
693
694
|
/**
|
|
694
695
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -806,100 +807,100 @@ const Ln = hn.exports, Sn = {
|
|
|
806
807
|
}
|
|
807
808
|
},
|
|
808
809
|
emits: ["column-hover"],
|
|
809
|
-
setup(
|
|
810
|
-
const t =
|
|
810
|
+
setup(s, { expose: e, emit: n }) {
|
|
811
|
+
const t = s, l = 100, { t: o } = se(), { columns: r, sortBy: C } = Ee(t), u = O({}), p = O({}), h = O(), c = O(), d = (i) => n(P.SELECT_ALL_ROWS, i), a = (i) => i.field === ne, g = b(() => [
|
|
811
812
|
{
|
|
812
813
|
text: o("selectPage"),
|
|
813
814
|
handler: () => d(!0)
|
|
814
815
|
},
|
|
815
816
|
{
|
|
816
817
|
text: o("selectAll"),
|
|
817
|
-
handler: () =>
|
|
818
|
+
handler: () => n(P.SELECT_ALL_ACROSS_PAGES)
|
|
818
819
|
}
|
|
819
|
-
]), { startResize: L, isResizing: m, columnHoverEventToEmitAfterResizing: E } =
|
|
820
|
+
]), { startResize: L, isResizing: m, columnHoverEventToEmitAfterResizing: E } = hn(r, n), { isSorting: R, getSortingDirection: T, sortByColumnField: v } = Tn(C, r, n), M = (i) => {
|
|
820
821
|
var X;
|
|
821
822
|
if (!i.sortable)
|
|
822
823
|
return null;
|
|
823
|
-
const
|
|
824
|
-
return
|
|
824
|
+
const N = (X = t.sortBy.find(({ field: le }) => le === i.field)) == null ? void 0 : X.direction;
|
|
825
|
+
return N ? {
|
|
825
826
|
[te.ASCENDING]: pe.ASCENDING,
|
|
826
827
|
[te.DESCENDING]: pe.DESCENDING
|
|
827
|
-
}[
|
|
828
|
+
}[N] : pe.NONE;
|
|
828
829
|
}, f = b(() => (i) => t.hasDraggableColumns ? {
|
|
829
|
-
dragstart: (
|
|
830
|
-
|
|
830
|
+
dragstart: (N) => {
|
|
831
|
+
n(P.COLUMN_DRAG_START, i, N);
|
|
831
832
|
},
|
|
832
|
-
dragover: (
|
|
833
|
-
|
|
833
|
+
dragover: (N) => {
|
|
834
|
+
N.preventDefault();
|
|
834
835
|
},
|
|
835
|
-
dragenter: (
|
|
836
|
-
|
|
836
|
+
dragenter: (N) => {
|
|
837
|
+
N.preventDefault(), n(P.COLUMN_DRAG_ENTER, i, N);
|
|
837
838
|
},
|
|
838
839
|
drop: () => {
|
|
839
|
-
|
|
840
|
+
n(P.COLUMN_DROP, i);
|
|
840
841
|
},
|
|
841
842
|
dragend: () => {
|
|
842
|
-
|
|
843
|
+
n(P.COLUMN_DRAG_END);
|
|
843
844
|
}
|
|
844
845
|
} : {}), _ = b(() => (i) => [
|
|
845
846
|
{
|
|
846
847
|
text: o("moveColumnLeft"),
|
|
847
|
-
handler: () =>
|
|
848
|
-
icon:
|
|
848
|
+
handler: () => n(P.COLUMN_MOVE, i, -1),
|
|
849
|
+
icon: Cn,
|
|
849
850
|
disabled: t.columns[0].field === i.field
|
|
850
851
|
},
|
|
851
852
|
{
|
|
852
853
|
text: o("moveColumnRight"),
|
|
853
|
-
handler: () =>
|
|
854
|
-
icon:
|
|
854
|
+
handler: () => n(P.COLUMN_MOVE, i, 1),
|
|
855
|
+
icon: Vn,
|
|
855
856
|
disabled: t.columns[t.columns.length - 1].field === i.field
|
|
856
857
|
},
|
|
857
858
|
{
|
|
858
859
|
text: i != null && i.frozen ? o("unfreezeColumn") : o("freezeColumn"),
|
|
859
|
-
handler: () =>
|
|
860
|
+
handler: () => n(P.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
|
|
860
861
|
icon: ct
|
|
861
862
|
},
|
|
862
863
|
{
|
|
863
864
|
text: (i == null ? void 0 : i.visible) !== !1 ? o("hideColumn") : o("showColumn"),
|
|
864
865
|
handler: () => {
|
|
865
|
-
|
|
866
|
+
n(P.COLUMN_UPDATE, {
|
|
866
867
|
...i,
|
|
867
868
|
visible: (i == null ? void 0 : i.visible) === !1
|
|
868
869
|
});
|
|
869
870
|
},
|
|
870
|
-
icon: (i == null ? void 0 : i.visible) !== !1 ?
|
|
871
|
+
icon: (i == null ? void 0 : i.visible) !== !1 ? es : vs,
|
|
871
872
|
disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && t.isOnlyOneVisibleColumn
|
|
872
873
|
}
|
|
873
874
|
]), A = (i) => {
|
|
874
875
|
h.value = i.field, c.value && clearTimeout(c.value);
|
|
875
|
-
},
|
|
876
|
+
}, w = () => {
|
|
876
877
|
const i = setTimeout(() => {
|
|
877
878
|
h.value = "";
|
|
878
879
|
}, l);
|
|
879
880
|
c.value = i;
|
|
880
881
|
}, x = (i) => {
|
|
881
|
-
let
|
|
882
|
+
let N = {
|
|
882
883
|
mouseenter: () => {
|
|
883
|
-
A(i), m.value ? E.value = i :
|
|
884
|
+
A(i), m.value ? E.value = i : n("column-hover", i);
|
|
884
885
|
},
|
|
885
886
|
mouseleave: () => {
|
|
886
|
-
|
|
887
|
+
w(), m.value ? E.value = null : n("column-hover", null);
|
|
887
888
|
},
|
|
888
889
|
focus: () => A(i)
|
|
889
890
|
};
|
|
890
|
-
return a(i) || (
|
|
891
|
-
...
|
|
891
|
+
return a(i) || (N = {
|
|
892
|
+
...N,
|
|
892
893
|
...f.value(i)
|
|
893
|
-
}),
|
|
894
|
-
}, U = (i) => i.infoIconTooltip || i.sortable || t.hasColumnPanel,
|
|
894
|
+
}), N;
|
|
895
|
+
}, U = (i) => i.infoIconTooltip || i.sortable || t.hasColumnPanel, k = (i, N) => {
|
|
895
896
|
var Y;
|
|
896
|
-
((Y = u.value) == null ? void 0 : Y[
|
|
897
|
-
},
|
|
898
|
-
var
|
|
897
|
+
((Y = u.value) == null ? void 0 : Y[N]) === void 0 && (u.value = { ...u.value, [N]: null }), i !== null && (u.value[N] = i);
|
|
898
|
+
}, W = b(() => {
|
|
899
|
+
var N;
|
|
899
900
|
const i = {
|
|
900
901
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
901
902
|
};
|
|
902
|
-
return (
|
|
903
|
+
return (N = r.value[0]) != null && N.frozen ? {
|
|
903
904
|
...i,
|
|
904
905
|
"b-data-grid-columns--frozen": !0,
|
|
905
906
|
"b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
|
|
@@ -908,13 +909,13 @@ const Ln = hn.exports, Sn = {
|
|
|
908
909
|
...i,
|
|
909
910
|
"b-data-grid-columns--unfrozen": !0
|
|
910
911
|
};
|
|
911
|
-
}),
|
|
912
|
+
}), z = (i, N) => i && N === 0 ? $e.BOTTOM_START : $e.BOTTOM_END, F = (i, N) => {
|
|
912
913
|
var Y, X, le, ie, oe, de, ue, fe, ge, _e;
|
|
913
914
|
return {
|
|
914
915
|
"b-data-grid-columns__column--column-hovered": i.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
915
916
|
"b-data-grid-columns__column--column-hovered-no-border-left": i.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
916
917
|
"b-data-grid-columns__column--column-hovered-no-border-right": i.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
917
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns &&
|
|
918
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && N === r.value.length - 1,
|
|
918
919
|
"b-data-grid-columns__column--sortable": i.sortable,
|
|
919
920
|
"b-data-grid-columns__column--padding-left-unset": ((Y = i == null ? void 0 : i.padding) == null ? void 0 : Y.left) === !1,
|
|
920
921
|
"b-data-grid-columns__column--padding-right-unset": ((X = i == null ? void 0 : i.padding) == null ? void 0 : X.right) === !1,
|
|
@@ -937,64 +938,64 @@ const Ln = hn.exports, Sn = {
|
|
|
937
938
|
}));
|
|
938
939
|
return e({
|
|
939
940
|
columnHeaderRefs: u
|
|
940
|
-
}), { __sfc: !0, props: t, emit:
|
|
941
|
+
}), { __sfc: !0, props: t, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: l, t: o, columns: r, sortBy: C, columnHeaderRefs: u, contextMenuRef: p, hoveredColumnField: h, closingTimeOutId: c, onAllRowSelect: d, isSelectColumn: a, selectAllMenu: g, startResize: L, isResizing: m, columnHoverEventToEmitAfterResizing: E, isSorting: R, getSortingDirection: T, sortByColumnField: v, getSortingColumnDirection: M, draggingEventsForColumn: f, contextualMenuData: _, showContextualMenu: A, hideContextualMenu: w, dataGridColumnEvents: x, hasColumnActions: U, registerColumnsRefs: k, conditionalColumnsClasses: W, computeMenuPosition: z, conditionalColumnClasses: F, conditionalColumnHeaderAndActionsClasses: I, conditionalColumnActionsClasses: Z, conditionalColumnSeparatorClasses: re, conditionalColumnHeaderClasses: ce, BentoCheckbox: at, BentoDatagridSortDirection: te, BentoTypography: he, BentoInfoIcon: vn, DatagridColumnsEvent: P, BentoMenu: rt, BentoToggleButton: it, ArrowUpAndDownSortIcon: Bn, SortAscendingIcon: os, SortDescendingIcon: ds, TriangleDown: Ls };
|
|
941
942
|
}
|
|
942
943
|
});
|
|
943
|
-
var
|
|
944
|
-
var e = this,
|
|
945
|
-
return
|
|
946
|
-
return
|
|
947
|
-
return [
|
|
948
|
-
}, proxy: !0 }], null, !0) })] : e._e()], 2) : [
|
|
949
|
-
return [
|
|
950
|
-
}, { column: l })], 2), t.hasColumnActions(l) ?
|
|
944
|
+
var bs = function() {
|
|
945
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
946
|
+
return n("div", { staticClass: "b-data-grid-columns", class: t.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(t.columns, function(l, o) {
|
|
947
|
+
return n("div", e._g({ key: l.field, ref: (r) => t.registerColumnsRefs(r, 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.isSelectColumn(l), role: "columnheader", tabindex: l.sortable || e.hasColumnPanel || l.infoIconTooltip ? "0" : "-1" } }, t.dataGridColumnEvents(l)), [t.isSelectColumn(l) ? 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() {
|
|
948
|
+
return [n(t.TriangleDown, { attrs: { "svg-title": t.t("selectionMenu") } })];
|
|
949
|
+
}, 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() {
|
|
950
|
+
return [n("span", { staticClass: "b-data-grid-columns__label" }, [e._v(e._s(l.label))])];
|
|
951
|
+
}, { 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(r) {
|
|
951
952
|
return t.sortByColumnField(l.field);
|
|
952
953
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
953
|
-
return [t.getSortingDirection(l.field) ? t.getSortingDirection(l.field) === t.BentoDatagridSortDirection.ASCENDING ?
|
|
954
|
-
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.hasColumnPanel && t.hoveredColumnField === l.field ?
|
|
954
|
+
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 }) } })];
|
|
955
|
+
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.hasColumnPanel && t.hoveredColumnField === l.field ? n(t.BentoMenu, { ref: (r) => t.contextMenuRef[l.field] = r, 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(r) {
|
|
955
956
|
return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
956
957
|
}, close: function(r) {
|
|
957
958
|
return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
958
|
-
} } }) : e._e()], 1) : e._e()], 1),
|
|
959
|
+
} } }) : 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(r) {
|
|
959
960
|
return t.startResize(e.hasResizableColumns, l.field, r);
|
|
960
961
|
}, click: function(r) {
|
|
961
962
|
r.stopPropagation();
|
|
962
|
-
} } }, [!e.isFrozenColumns || e.isFrozenColumns && o !== t.columns.length - 1 ?
|
|
963
|
+
} } }, [!e.isFrozenColumns || e.isFrozenColumns && o !== t.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
|
|
963
964
|
}), 0);
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
965
|
+
}, Rs = [], ys = /* @__PURE__ */ $(
|
|
966
|
+
Os,
|
|
967
|
+
bs,
|
|
968
|
+
Rs,
|
|
968
969
|
!1,
|
|
969
970
|
null,
|
|
970
971
|
"885773e5"
|
|
971
972
|
);
|
|
972
|
-
const
|
|
973
|
-
var Q = /* @__PURE__ */ ((
|
|
973
|
+
const As = ys.exports;
|
|
974
|
+
var Q = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(Q || {});
|
|
974
975
|
let Ye = 0;
|
|
975
|
-
const
|
|
976
|
+
const Ts = {
|
|
976
977
|
beforeCreate() {
|
|
977
978
|
this.uuid = Ye.toString(), Ye += 1;
|
|
978
979
|
}
|
|
979
980
|
};
|
|
980
|
-
var
|
|
981
|
-
var e = this,
|
|
982
|
-
return
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
981
|
+
var Is = function() {
|
|
982
|
+
var e = this, n = e._self._c;
|
|
983
|
+
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" } })])])]);
|
|
984
|
+
}, ws = [], Ns = /* @__PURE__ */ $(
|
|
985
|
+
Ts,
|
|
986
|
+
Is,
|
|
987
|
+
ws,
|
|
987
988
|
!1,
|
|
988
989
|
null,
|
|
989
990
|
null
|
|
990
991
|
);
|
|
991
|
-
const
|
|
992
|
+
const Ds = Ns.exports, Ms = {
|
|
992
993
|
"en-US": {
|
|
993
994
|
toggleColumnVisibility: "Toggle {label} column visibility",
|
|
994
995
|
toggleColumnFreeze: "Toggle {label} column freeze"
|
|
995
996
|
}
|
|
996
|
-
},
|
|
997
|
-
i18n: { messages:
|
|
997
|
+
}, Fs = ee({
|
|
998
|
+
i18n: { messages: Ms },
|
|
998
999
|
name: "bento-data-grid",
|
|
999
1000
|
components: {
|
|
1000
1001
|
BentoFreezeIcon: ct,
|
|
@@ -1017,17 +1018,17 @@ const Dn = Nn.exports, Pn = {
|
|
|
1017
1018
|
}
|
|
1018
1019
|
},
|
|
1019
1020
|
emits: ["visible-column", "updated-column"],
|
|
1020
|
-
setup(
|
|
1021
|
-
const { t:
|
|
1021
|
+
setup(s, { emit: e }) {
|
|
1022
|
+
const { t: n } = se(), t = O(!1), l = b(() => {
|
|
1022
1023
|
var c;
|
|
1023
|
-
return (c =
|
|
1024
|
+
return (c = s.column) == null ? void 0 : c.frozen;
|
|
1024
1025
|
}), o = b(() => {
|
|
1025
1026
|
var c;
|
|
1026
|
-
return ((c =
|
|
1027
|
+
return ((c = s.column) == null ? void 0 : c.visible) !== !1;
|
|
1027
1028
|
}), r = () => {
|
|
1028
|
-
e("visible-column", { ...
|
|
1029
|
+
e("visible-column", { ...s.column, visible: !o.value });
|
|
1029
1030
|
}, C = () => {
|
|
1030
|
-
e("updated-column", { ...
|
|
1031
|
+
e("updated-column", { ...s.column, frozen: !l.value });
|
|
1031
1032
|
}, u = () => {
|
|
1032
1033
|
l.value || (t.value = !0);
|
|
1033
1034
|
}, p = () => {
|
|
@@ -1047,24 +1048,24 @@ const Dn = Nn.exports, Pn = {
|
|
|
1047
1048
|
hideFreezeIcon: p,
|
|
1048
1049
|
toggleColumnFreeze: C,
|
|
1049
1050
|
// Translations
|
|
1050
|
-
t:
|
|
1051
|
+
t: n
|
|
1051
1052
|
};
|
|
1052
1053
|
}
|
|
1053
1054
|
});
|
|
1054
|
-
var
|
|
1055
|
-
var e = this,
|
|
1056
|
-
return e._self._setupProxy,
|
|
1055
|
+
var Ps = function() {
|
|
1056
|
+
var e = this, n = e._self._c;
|
|
1057
|
+
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) {
|
|
1057
1058
|
return e.toggleColumnFreeze.apply(null, arguments);
|
|
1058
1059
|
} } })], 1);
|
|
1059
|
-
}, $
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
$
|
|
1060
|
+
}, $s = [], xs = /* @__PURE__ */ $(
|
|
1061
|
+
Fs,
|
|
1062
|
+
Ps,
|
|
1063
|
+
$s,
|
|
1063
1064
|
!1,
|
|
1064
1065
|
null,
|
|
1065
1066
|
"eae7733f"
|
|
1066
1067
|
);
|
|
1067
|
-
const
|
|
1068
|
+
const Us = xs.exports, zs = {
|
|
1068
1069
|
"en-US": {
|
|
1069
1070
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1070
1071
|
configSettingsPanel: "Configuration settings Panel",
|
|
@@ -1080,22 +1081,22 @@ const Un = xn.exports, zn = {
|
|
|
1080
1081
|
closeSearch: "Close search",
|
|
1081
1082
|
noColumnsMatch: "No columns match this search"
|
|
1082
1083
|
}
|
|
1083
|
-
},
|
|
1084
|
-
i18n: { messages:
|
|
1084
|
+
}, Bs = ee({
|
|
1085
|
+
i18n: { messages: zs },
|
|
1085
1086
|
name: "bento-data-grid",
|
|
1086
1087
|
components: {
|
|
1087
1088
|
BentoButton: lt,
|
|
1088
1089
|
BentoCrossIcon: et,
|
|
1089
|
-
BentoPopover:
|
|
1090
|
-
BentoSettingsIcon:
|
|
1090
|
+
BentoPopover: ln,
|
|
1091
|
+
BentoSettingsIcon: Ds,
|
|
1091
1092
|
BentoToggleButton: it,
|
|
1092
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1093
|
-
BentoSearchBar:
|
|
1094
|
-
BentoSearchIcon:
|
|
1093
|
+
BentoDataGridConfigSettingsConfigRow: Us,
|
|
1094
|
+
BentoSearchBar: on,
|
|
1095
|
+
BentoSearchIcon: cn,
|
|
1095
1096
|
BentoToggle: ot,
|
|
1096
1097
|
BentoTypography: he
|
|
1097
1098
|
},
|
|
1098
|
-
directives: { BentoClickOutsideDirective:
|
|
1099
|
+
directives: { BentoClickOutsideDirective: dn },
|
|
1099
1100
|
props: {
|
|
1100
1101
|
/**
|
|
1101
1102
|
* Column definitions
|
|
@@ -1113,37 +1114,37 @@ const Un = xn.exports, zn = {
|
|
|
1113
1114
|
}
|
|
1114
1115
|
},
|
|
1115
1116
|
emits: [Q.CONFIG_SETTINGS, Q.UPDATE_COLUMNS],
|
|
1116
|
-
setup(
|
|
1117
|
-
const { t:
|
|
1117
|
+
setup(s, { emit: e }) {
|
|
1118
|
+
const { t: n } = se(), t = O(null), l = rn("data-grid-config-settings-popover"), o = O(null), r = O(!1), C = O(!0), u = O(null), p = O(""), h = Qe(s, "columns"), c = O(!1), d = an(p, h), a = () => {
|
|
1118
1119
|
p.value = "";
|
|
1119
1120
|
}, g = b(
|
|
1120
|
-
() => !
|
|
1121
|
+
() => !s.columns.some((_) => _.visible === !1 && !_.mandatory)
|
|
1121
1122
|
), L = () => {
|
|
1122
|
-
a(), c.value = !c.value, c.value ?
|
|
1123
|
+
a(), c.value = !c.value, c.value ? V(() => {
|
|
1123
1124
|
var _;
|
|
1124
1125
|
return (_ = o.value.$refs.bentoInputField) == null ? void 0 : _.focusInput();
|
|
1125
|
-
}) :
|
|
1126
|
+
}) : V(() => {
|
|
1126
1127
|
var _, A;
|
|
1127
1128
|
return (A = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.$el) == null ? void 0 : A.focus();
|
|
1128
1129
|
}), C.value = g.value;
|
|
1129
1130
|
}, m = (_) => _.mandatory ?? !1, E = (_) => {
|
|
1130
|
-
const A =
|
|
1131
|
-
...
|
|
1132
|
-
visible: _.field ===
|
|
1131
|
+
const A = s.columns.map((w) => ({
|
|
1132
|
+
...w,
|
|
1133
|
+
visible: _.field === w.field ? _.visible : w.visible
|
|
1133
1134
|
}));
|
|
1134
1135
|
e(Q.UPDATE_COLUMNS, A);
|
|
1135
1136
|
}, R = (_) => {
|
|
1136
1137
|
_ ? e(
|
|
1137
1138
|
Q.UPDATE_COLUMNS,
|
|
1138
|
-
|
|
1139
|
+
s.columns.map((A) => ({ ...A, visible: !0 }))
|
|
1139
1140
|
) : e(
|
|
1140
1141
|
Q.UPDATE_COLUMNS,
|
|
1141
|
-
|
|
1142
|
+
s.columns.map((A) => ({ ...A, visible: (A == null ? void 0 : A.mandatory) === !0 }))
|
|
1142
1143
|
);
|
|
1143
1144
|
}, T = (_) => {
|
|
1144
|
-
const A =
|
|
1145
|
-
...
|
|
1146
|
-
frozen: _.field ===
|
|
1145
|
+
const A = s.columns.map((w) => ({
|
|
1146
|
+
...w,
|
|
1147
|
+
frozen: _.field === w.field ? !!(_ != null && _.frozen) : !!(w != null && w.frozen)
|
|
1147
1148
|
}));
|
|
1148
1149
|
e(Q.UPDATE_COLUMNS, A);
|
|
1149
1150
|
}, v = (_) => {
|
|
@@ -1160,7 +1161,7 @@ const Un = xn.exports, zn = {
|
|
|
1160
1161
|
isColumnVisibilityFilterShown: c,
|
|
1161
1162
|
searchBarRef: o,
|
|
1162
1163
|
searchButtonRef: u,
|
|
1163
|
-
DATAGRID_SELECT_FIELD_NAME:
|
|
1164
|
+
DATAGRID_SELECT_FIELD_NAME: ne,
|
|
1164
1165
|
// Methods
|
|
1165
1166
|
setConfigSettingsPanelVisibility: v,
|
|
1166
1167
|
emitCondensedToggle: (_) => e(Q.CONFIG_SETTINGS, _),
|
|
@@ -1172,38 +1173,38 @@ const Un = xn.exports, zn = {
|
|
|
1172
1173
|
onClickOutside: () => v(!1),
|
|
1173
1174
|
isColumnVisibilityToggleDisabled: m,
|
|
1174
1175
|
// Translations
|
|
1175
|
-
t:
|
|
1176
|
+
t: n
|
|
1176
1177
|
};
|
|
1177
1178
|
}
|
|
1178
1179
|
});
|
|
1179
|
-
var
|
|
1180
|
-
var e = this,
|
|
1181
|
-
return e._self._setupProxy,
|
|
1180
|
+
var Gs = function() {
|
|
1181
|
+
var e = this, n = e._self._c;
|
|
1182
|
+
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) {
|
|
1182
1183
|
return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
|
|
1183
1184
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1184
|
-
return [
|
|
1185
|
-
}, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ?
|
|
1185
|
+
return [n("bento-settings-icon", { attrs: { "svg-title": e.t("toggleConfigSettingsPanelVisibility") } })];
|
|
1186
|
+
}, 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) {
|
|
1186
1187
|
return e.setConfigSettingsPanelVisibility(!1);
|
|
1187
1188
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1188
|
-
return [
|
|
1189
|
-
}, proxy: !0 }], null, !1, 353359238) })], 1),
|
|
1190
|
-
return [
|
|
1191
|
-
}, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.t("closeSearch")) + " ")]) :
|
|
1192
|
-
return [
|
|
1193
|
-
}, proxy: !0 }], null, !1, 2341044271) }, [e._v(e._s(e.t("search")))])], 1), e.isColumnVisibilityFilterShown ?
|
|
1189
|
+
return [n("bento-cross-icon", { attrs: { "svg-title": e.t("closeConfigSettingsPanel") } })];
|
|
1190
|
+
}, 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() {
|
|
1191
|
+
return [n("bento-cross-icon")];
|
|
1192
|
+
}, 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() {
|
|
1193
|
+
return [n("bento-search-icon")];
|
|
1194
|
+
}, 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) {
|
|
1194
1195
|
e.searchTerm = t;
|
|
1195
|
-
}, clear: e.clearAction, "escape-pressed": e.toggleColumnFilter } })], 1) :
|
|
1196
|
-
return
|
|
1197
|
-
}), e.filteredColumnVisibilityColumns.length === 0 ?
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1196
|
+
}, 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) {
|
|
1197
|
+
return n("div", { key: t.field }, [t.field !== e.DATAGRID_SELECT_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);
|
|
1198
|
+
}), 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);
|
|
1199
|
+
}, Ws = [], ks = /* @__PURE__ */ $(
|
|
1200
|
+
Bs,
|
|
1201
|
+
Gs,
|
|
1202
|
+
Ws,
|
|
1202
1203
|
!1,
|
|
1203
1204
|
null,
|
|
1204
1205
|
"5bd3936a"
|
|
1205
1206
|
);
|
|
1206
|
-
const
|
|
1207
|
+
const Hs = ks.exports, dt = {
|
|
1207
1208
|
"en-US": {
|
|
1208
1209
|
gettingYourData: "Getting your data",
|
|
1209
1210
|
loading: "Loading",
|
|
@@ -1213,63 +1214,63 @@ const Hn = kn.exports, dt = {
|
|
|
1213
1214
|
sortInactive: "{field} sort inactive",
|
|
1214
1215
|
selectRow: "Select row"
|
|
1215
1216
|
}
|
|
1216
|
-
},
|
|
1217
|
+
}, Vs = {
|
|
1217
1218
|
i18n: { messages: dt }
|
|
1218
|
-
},
|
|
1219
|
-
...
|
|
1219
|
+
}, Zs = /* @__PURE__ */ ee({
|
|
1220
|
+
...Vs,
|
|
1220
1221
|
__name: "data-grid-lazy-load",
|
|
1221
1222
|
props: {
|
|
1222
1223
|
loading: { type: Boolean },
|
|
1223
1224
|
isInfiniteScroll: { type: Boolean }
|
|
1224
1225
|
},
|
|
1225
|
-
setup(
|
|
1226
|
-
const { t: e } =
|
|
1227
|
-
return { __sfc: !0, t: e, BentoLoadingButton:
|
|
1226
|
+
setup(s) {
|
|
1227
|
+
const { t: e } = se();
|
|
1228
|
+
return { __sfc: !0, t: e, BentoLoadingButton: mn, BentoLoadingButtonState: pn, BentoLoadingIndicator: tt, BentoDatagridEvent: y };
|
|
1228
1229
|
}
|
|
1229
1230
|
});
|
|
1230
|
-
var
|
|
1231
|
-
var e = this,
|
|
1232
|
-
return
|
|
1231
|
+
var js = function() {
|
|
1232
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1233
|
+
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) {
|
|
1233
1234
|
return e.$emit(t.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1234
1235
|
} } }, [e._v(e._s(t.t("showMore")))]) : e._e()], 1);
|
|
1235
|
-
},
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1236
|
+
}, qs = [], Ys = /* @__PURE__ */ $(
|
|
1237
|
+
Zs,
|
|
1238
|
+
js,
|
|
1239
|
+
qs,
|
|
1239
1240
|
!1,
|
|
1240
1241
|
null,
|
|
1241
1242
|
"f3e1d421"
|
|
1242
1243
|
);
|
|
1243
|
-
const
|
|
1244
|
+
const Xs = Ys.exports;
|
|
1244
1245
|
let Xe = 0;
|
|
1245
|
-
const
|
|
1246
|
+
const Ks = {
|
|
1246
1247
|
beforeCreate() {
|
|
1247
1248
|
this.uuid = Xe.toString(), Xe += 1;
|
|
1248
1249
|
}
|
|
1249
1250
|
};
|
|
1250
|
-
var
|
|
1251
|
-
var e = this,
|
|
1252
|
-
return
|
|
1253
|
-
},
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1251
|
+
var Js = function() {
|
|
1252
|
+
var e = this, n = e._self._c;
|
|
1253
|
+
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" } })]);
|
|
1254
|
+
}, Qs = [], el = /* @__PURE__ */ $(
|
|
1255
|
+
Ks,
|
|
1256
|
+
Js,
|
|
1257
|
+
Qs,
|
|
1257
1258
|
!1,
|
|
1258
1259
|
null,
|
|
1259
1260
|
null
|
|
1260
1261
|
);
|
|
1261
|
-
const tl = el.exports,
|
|
1262
|
+
const tl = el.exports, nl = {
|
|
1262
1263
|
"en-US": {
|
|
1263
1264
|
copy: "Copy",
|
|
1264
1265
|
edit: "Edit",
|
|
1265
1266
|
open: "Open",
|
|
1266
1267
|
more: "More"
|
|
1267
1268
|
}
|
|
1268
|
-
},
|
|
1269
|
-
i18n: { messages:
|
|
1269
|
+
}, sl = {
|
|
1270
|
+
i18n: { messages: nl },
|
|
1270
1271
|
name: "data-grid-cell-actions"
|
|
1271
1272
|
}, ll = /* @__PURE__ */ ee({
|
|
1272
|
-
...
|
|
1273
|
+
...sl,
|
|
1273
1274
|
props: {
|
|
1274
1275
|
/**
|
|
1275
1276
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1277,7 +1278,7 @@ const tl = el.exports, sl = {
|
|
|
1277
1278
|
cellActions: {
|
|
1278
1279
|
type: Array,
|
|
1279
1280
|
required: !0,
|
|
1280
|
-
validator: (
|
|
1281
|
+
validator: (s) => (s == null ? void 0 : s.length) <= 2
|
|
1281
1282
|
},
|
|
1282
1283
|
/**
|
|
1283
1284
|
* The column field key.
|
|
@@ -1295,12 +1296,12 @@ const tl = el.exports, sl = {
|
|
|
1295
1296
|
}
|
|
1296
1297
|
},
|
|
1297
1298
|
emits: ["menu-item-click-close"],
|
|
1298
|
-
setup(
|
|
1299
|
-
const
|
|
1299
|
+
setup(s, { emit: e }) {
|
|
1300
|
+
const n = s, { t } = se(), l = b(() => {
|
|
1300
1301
|
var d;
|
|
1301
|
-
return ((d =
|
|
1302
|
+
return ((d = n.cellActions) == null ? void 0 : d.length) > 2 && nt(
|
|
1302
1303
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1303
|
-
),
|
|
1304
|
+
), n.cellActions.slice(0, 2);
|
|
1304
1305
|
}), o = b(() => (d, a) => {
|
|
1305
1306
|
if (!(!a && d.isShort || a && !d.isShort))
|
|
1306
1307
|
switch (d.variant) {
|
|
@@ -1316,46 +1317,46 @@ const tl = el.exports, sl = {
|
|
|
1316
1317
|
return d.title;
|
|
1317
1318
|
}
|
|
1318
1319
|
}), r = (d) => (d == null ? void 0 : d.event) !== void 0 ? {
|
|
1319
|
-
click: () => d.event(
|
|
1320
|
+
click: () => d.event(n.rowDataItem, n.columnKey)
|
|
1320
1321
|
} : {}, C = (d) => ({
|
|
1321
1322
|
...d,
|
|
1322
1323
|
handler: () => {
|
|
1323
|
-
d != null && d.handler && typeof d.handler == "function" && (d == null || d.handler()), d != null && d.event && typeof d.event == "function" && (d == null || d.event(
|
|
1324
|
+
d != null && d.handler && typeof d.handler == "function" && (d == null || d.handler()), d != null && d.event && typeof d.event == "function" && (d == null || d.event(n.rowDataItem, n.columnKey));
|
|
1324
1325
|
}
|
|
1325
1326
|
}), u = (d) => d.map((a) => {
|
|
1326
1327
|
const g = a;
|
|
1327
1328
|
return g != null && g.items && (g.items = u(g.items)), { ...C(g) };
|
|
1328
1329
|
});
|
|
1329
|
-
return { __sfc: !0, t, props:
|
|
1330
|
+
return { __sfc: !0, t, props: n, emit: e, limitedRowCellActionsProps: l, getButtonTitle: o, generateButtonEvents: r, generateMenuEvents: C, transformMenuEvents: u, getCopyText: (d) => {
|
|
1330
1331
|
var a, g;
|
|
1331
|
-
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(
|
|
1332
|
-
}, shouldShowMenuIconRight: (d) => d.iconRight || ((d == null ? void 0 : d.variant) === "more" || (d == null ? void 0 : d.variant) === "open") && !d.isShort, shouldShowMenuIconLeft: (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more", BentoButton: lt, BentoMenu: rt, Copy:
|
|
1332
|
+
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(n.rowDataItem, n.columnKey) : (g = (a = n.rowDataItem) == null ? void 0 : a[n.columnKey]) == null ? void 0 : g.toString();
|
|
1333
|
+
}, shouldShowMenuIconRight: (d) => d.iconRight || ((d == null ? void 0 : d.variant) === "more" || (d == null ? void 0 : d.variant) === "open") && !d.isShort, shouldShowMenuIconLeft: (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more", BentoButton: lt, BentoMenu: rt, Copy: _n, Edit1Icon: tl, ExternalLinkIcon: gn, OptionsVerticalIcon: un };
|
|
1333
1334
|
}
|
|
1334
1335
|
});
|
|
1335
1336
|
var ol = function() {
|
|
1336
|
-
var e = this,
|
|
1337
|
-
return
|
|
1338
|
-
return
|
|
1337
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1338
|
+
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) {
|
|
1339
|
+
return n("div", { key: o, staticClass: "b-data-grid-cell-actions__action" }, [l.menuData ? n(t.BentoMenu, { attrs: { data: t.transformMenuEvents(l.menuData), button: {
|
|
1339
1340
|
condensed: !0,
|
|
1340
1341
|
variant: "secondary",
|
|
1341
1342
|
disabled: l.disabled
|
|
1342
1343
|
}, teleport: "" }, on: { "menu-item-click": function(r) {
|
|
1343
1344
|
return t.emit("menu-item-click-close");
|
|
1344
1345
|
} }, scopedSlots: e._u([t.shouldShowMenuIconLeft(l) ? { key: "iconLeft", fn: function() {
|
|
1345
|
-
return [(l == null ? void 0 : l.variant) === "more" ?
|
|
1346
|
+
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) } })];
|
|
1346
1347
|
}, proxy: !0 } : null, l != null && l.isShort ? null : { key: "default", fn: function() {
|
|
1347
1348
|
return [e._v(" " + e._s(t.getButtonTitle(l)) + " ")];
|
|
1348
1349
|
}, proxy: !0 }, t.shouldShowMenuIconRight(l) ? { key: "iconRight", fn: function() {
|
|
1349
|
-
return [(l == null ? void 0 : l.variant) === "open" ?
|
|
1350
|
-
}, proxy: !0 } : null], null, !0) }) : l.variant === "copy" ?
|
|
1350
|
+
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 } })];
|
|
1351
|
+
}, proxy: !0 } : null], null, !0) }) : l.variant === "copy" ? n(t.Copy, { attrs: { text: t.getCopyText(l), "button-text": t.getButtonTitle(l), button: {
|
|
1351
1352
|
condensed: !0,
|
|
1352
1353
|
variant: "secondary"
|
|
1353
|
-
} } }) :
|
|
1354
|
-
return [(l == null ? void 0 : l.variant) === "edit" ?
|
|
1354
|
+
} } }) : 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() {
|
|
1355
|
+
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 } })];
|
|
1355
1356
|
}, proxy: !0 } : null, l != null && l.isShort ? null : { key: "default", fn: function() {
|
|
1356
1357
|
return [e._v(" " + e._s(t.getButtonTitle(l)) + " ")];
|
|
1357
1358
|
}, proxy: !0 }, l.iconRight || l.variant === "open" ? { key: "iconRight", fn: function() {
|
|
1358
|
-
return [(l == null ? void 0 : l.variant) === "open" ?
|
|
1359
|
+
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 } })];
|
|
1359
1360
|
}, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(l)))], 1);
|
|
1360
1361
|
}), 0)])]);
|
|
1361
1362
|
}, il = [], al = /* @__PURE__ */ $(
|
|
@@ -1367,7 +1368,7 @@ var ol = function() {
|
|
|
1367
1368
|
"3bdd74d8"
|
|
1368
1369
|
);
|
|
1369
1370
|
const rl = al.exports;
|
|
1370
|
-
var G = /* @__PURE__ */ ((
|
|
1371
|
+
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 || {});
|
|
1371
1372
|
const cl = {
|
|
1372
1373
|
"en-US": {
|
|
1373
1374
|
selectRow: "Select row"
|
|
@@ -1424,7 +1425,7 @@ const cl = {
|
|
|
1424
1425
|
*/
|
|
1425
1426
|
getDataItemId: {
|
|
1426
1427
|
type: Function,
|
|
1427
|
-
default: (
|
|
1428
|
+
default: (s) => s.id
|
|
1428
1429
|
},
|
|
1429
1430
|
/**
|
|
1430
1431
|
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
@@ -1462,17 +1463,17 @@ const cl = {
|
|
|
1462
1463
|
}
|
|
1463
1464
|
},
|
|
1464
1465
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered"],
|
|
1465
|
-
setup(
|
|
1466
|
-
const t =
|
|
1467
|
-
var
|
|
1468
|
-
(v === null || !o.value.contains(v) && !((
|
|
1466
|
+
setup(s, { expose: e, emit: n }) {
|
|
1467
|
+
const t = s, { t: l } = se(), o = O(null), r = O(null), C = O(!1), u = O([]), p = (v, M) => (v == null ? void 0 : v.overflow) === Le.ELLIPSIS ? `${M}` : void 0, h = (v) => v ?? "-", c = (v) => t.columnSets.slice(0, v).reduce((M, { columnSet: f }) => M + f.length, 0), d = (v, M) => v + c(M), a = (v, M, f) => c() * v + d(M, f), g = (v) => {
|
|
1468
|
+
var M;
|
|
1469
|
+
(v === null || !o.value.contains(v) && !((M = u.value) != null && M.map((f) => f.value).some((f) => f === v || (f == null ? void 0 : f.contains(v))))) && (C.value = !1);
|
|
1469
1470
|
}, L = () => {
|
|
1470
1471
|
C.value = !1;
|
|
1471
1472
|
}, m = (v) => {
|
|
1472
1473
|
const f = { ...{
|
|
1473
1474
|
...t.draggingEventsForRowCell(v)
|
|
1474
1475
|
} };
|
|
1475
|
-
return v.frozen && (f.keyup = (_) =>
|
|
1476
|
+
return v.frozen && (f.keyup = (_) => n("on-frozen-columns-key-press", _), f.keydown = (_) => n("on-frozen-columns-key-press", _)), v.cellActions && (f.mouseenter = () => {
|
|
1476
1477
|
C.value = !0;
|
|
1477
1478
|
}, f.mouseleave = (_) => {
|
|
1478
1479
|
C.value = !1, g(_ == null ? void 0 : _.relatedTarget);
|
|
@@ -1484,10 +1485,10 @@ const cl = {
|
|
|
1484
1485
|
g(_ == null ? void 0 : _.relatedTarget);
|
|
1485
1486
|
}), f;
|
|
1486
1487
|
};
|
|
1487
|
-
|
|
1488
|
+
H(
|
|
1488
1489
|
() => C.value,
|
|
1489
1490
|
() => {
|
|
1490
|
-
C.value === !0 ?
|
|
1491
|
+
C.value === !0 ? n("cell-hovered", t.rowIndex) : n("cell-hovered", -1);
|
|
1491
1492
|
}
|
|
1492
1493
|
);
|
|
1493
1494
|
const E = (v) => {
|
|
@@ -1495,40 +1496,40 @@ const cl = {
|
|
|
1495
1496
|
}, R = (v) => {
|
|
1496
1497
|
o.value.contains(v == null ? void 0 : v.relatedTarget) || (C.value = !1);
|
|
1497
1498
|
};
|
|
1498
|
-
Vt(
|
|
1499
|
+
Vt(fn, {
|
|
1499
1500
|
registerMenuContainerElement: E,
|
|
1500
1501
|
menuMouseLeave: R
|
|
1501
1502
|
});
|
|
1502
1503
|
const T = (v) => {
|
|
1503
|
-
var
|
|
1504
|
+
var M, f, _, A, w, x, U;
|
|
1504
1505
|
return {
|
|
1505
1506
|
[`b-data-grid-cell--${G.COLUMN_HOVERED}`]: (v == null ? void 0 : v.field) === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1506
1507
|
[`b-data-grid-cell--${G.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (v == null ? void 0 : v.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1507
1508
|
[`b-data-grid-cell--${G.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (v == null ? void 0 : v.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1508
|
-
[`b-data-grid-cell--${G.PADDING_LEFT_UNSET}`]: ((
|
|
1509
|
+
[`b-data-grid-cell--${G.PADDING_LEFT_UNSET}`]: ((M = v == null ? void 0 : v.padding) == null ? void 0 : M.left) === !1,
|
|
1509
1510
|
[`b-data-grid-cell--${G.PADDING_RIGHT_UNSET}`]: ((f = v == null ? void 0 : v.padding) == null ? void 0 : f.right) === !1,
|
|
1510
1511
|
[`b-data-grid-cell--${G.NUMERIC}`]: v == null ? void 0 : v.numeric,
|
|
1511
1512
|
[`b-data-grid-cell--${G.CONDENSED}`]: t.condensed,
|
|
1512
1513
|
[`b-data-grid-cell--${G.OVERFLOW_ELLIPSIS}`]: (v == null ? void 0 : v.overflow) === Le.ELLIPSIS,
|
|
1513
1514
|
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING}`]: ((_ = t.draggingColumns.dragging) == null ? void 0 : _.field) === v.field,
|
|
1514
|
-
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((A = t.draggingColumns.target) == null ? void 0 : A.field) === v.field && ((
|
|
1515
|
+
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((A = t.draggingColumns.target) == null ? void 0 : A.field) === v.field && ((w = t.draggingColumns) == null ? void 0 : w.dragToLeft),
|
|
1515
1516
|
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((x = t.draggingColumns.target) == null ? void 0 : x.field) === v.field && !((U = t.draggingColumns) != null && U.dragToLeft),
|
|
1516
1517
|
[`b-data-grid-cell--${G.FROZEN}`]: v == null ? void 0 : v.frozen
|
|
1517
1518
|
};
|
|
1518
1519
|
};
|
|
1519
1520
|
return e({
|
|
1520
1521
|
gridcellRef: o
|
|
1521
|
-
}), { __sfc: !0, t: l, props: t, emit:
|
|
1522
|
+
}), { __sfc: !0, t: l, props: t, emit: n, gridcellRef: o, cellActionsRef: r, shouldShowCellActions: C, childrenMenuContainerElements: u, conditionalTitleAttribute: p, getRowData: h, sumColumnAmountsInColumnSets: c, getColIndex: d, getCellIndex: a, isLeavingCellFocus: g, onMenuClose: L, getGridcellEvents: m, registerMenuContainerElement: E, menuMouseLeave: R, conditionalRowCellClasses: T, DATAGRID_SELECT_FIELD_NAME: ne, BentoCheckbox: at, BentoTypography: he, DataGridCellActions: rl };
|
|
1522
1523
|
}
|
|
1523
1524
|
});
|
|
1524
1525
|
var fl = function() {
|
|
1525
1526
|
var l;
|
|
1526
|
-
var e = this,
|
|
1527
|
-
return
|
|
1527
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1528
|
+
return n("div", e._g({ key: `cell-${e.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: t.conditionalRowCellClasses(e.column), style: {
|
|
1528
1529
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
1529
|
-
}, 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_SELECT_FIELD_NAME ? [
|
|
1530
|
-
return [
|
|
1531
|
-
}, { item: e.rowData })], 2), ((l = e.column.cellActions) == null ? void 0 : l.length) > 0 ?
|
|
1530
|
+
}, 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_SELECT_FIELD_NAME ? [n(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${e.column.field}`, function() {
|
|
1531
|
+
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])))])];
|
|
1532
|
+
}, { 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 ? 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()] : [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) {
|
|
1532
1533
|
return e.$emit("select-row", o);
|
|
1533
1534
|
} } })]], 2);
|
|
1534
1535
|
}, gl = [], _l = /* @__PURE__ */ $(
|
|
@@ -1547,8 +1548,8 @@ const Cl = {
|
|
|
1547
1548
|
}
|
|
1548
1549
|
};
|
|
1549
1550
|
var ml = function() {
|
|
1550
|
-
var e = this,
|
|
1551
|
-
return
|
|
1551
|
+
var e = this, n = e._self._c;
|
|
1552
|
+
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" } })])])]);
|
|
1552
1553
|
}, pl = [], hl = /* @__PURE__ */ $(
|
|
1553
1554
|
Cl,
|
|
1554
1555
|
ml,
|
|
@@ -1565,8 +1566,8 @@ const Ll = hl.exports, Sl = {}, El = /* @__PURE__ */ ee({
|
|
|
1565
1566
|
tooltipText: null,
|
|
1566
1567
|
variant: { default: "no-value" }
|
|
1567
1568
|
},
|
|
1568
|
-
setup(
|
|
1569
|
-
const e =
|
|
1569
|
+
setup(s) {
|
|
1570
|
+
const e = s, n = b(() => {
|
|
1570
1571
|
switch (e.variant) {
|
|
1571
1572
|
case "checkmark":
|
|
1572
1573
|
return jt;
|
|
@@ -1577,19 +1578,19 @@ const Ll = hl.exports, Sl = {}, El = /* @__PURE__ */ ee({
|
|
|
1577
1578
|
case "cross":
|
|
1578
1579
|
return et;
|
|
1579
1580
|
case "no-value":
|
|
1580
|
-
return
|
|
1581
|
+
return Pe;
|
|
1581
1582
|
default:
|
|
1582
|
-
return
|
|
1583
|
+
return Pe;
|
|
1583
1584
|
}
|
|
1584
1585
|
}), t = b(() => ({
|
|
1585
1586
|
"b-data-grid-static-icon--colored": e.colored && e.variant !== "no-value"
|
|
1586
1587
|
})), l = b(() => `b-data-grid-static-icon__${e.variant}`), o = b(() => Yt.AUTO);
|
|
1587
|
-
return { __sfc: !0, props: e, computedIcon:
|
|
1588
|
+
return { __sfc: !0, props: e, computedIcon: n, conditionalClasses: t, computedIconClass: l, tooltipPosition: o, vBentoTooltipDirective: Xt };
|
|
1588
1589
|
}
|
|
1589
1590
|
});
|
|
1590
1591
|
var Ol = function() {
|
|
1591
|
-
var e = this,
|
|
1592
|
-
return
|
|
1592
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1593
|
+
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);
|
|
1593
1594
|
}, bl = [], Rl = /* @__PURE__ */ $(
|
|
1594
1595
|
El,
|
|
1595
1596
|
Ol,
|
|
@@ -1691,7 +1692,7 @@ const Co = Rl.exports, yl = {
|
|
|
1691
1692
|
*/
|
|
1692
1693
|
getDataItemId: {
|
|
1693
1694
|
type: Function,
|
|
1694
|
-
default: (
|
|
1695
|
+
default: (s) => s.id
|
|
1695
1696
|
},
|
|
1696
1697
|
/**
|
|
1697
1698
|
* If resize is enabled
|
|
@@ -1717,7 +1718,7 @@ const Co = Rl.exports, yl = {
|
|
|
1717
1718
|
lazyLoadType: {
|
|
1718
1719
|
type: String,
|
|
1719
1720
|
default: "none",
|
|
1720
|
-
validator: (
|
|
1721
|
+
validator: (s) => ["automatic", "button", "none"].includes(s)
|
|
1721
1722
|
},
|
|
1722
1723
|
/**
|
|
1723
1724
|
* If the loading indicator should be shown.
|
|
@@ -1836,8 +1837,8 @@ const Co = Rl.exports, yl = {
|
|
|
1836
1837
|
y.SELECT_ALL_ACROSS_PAGES,
|
|
1837
1838
|
y.SORT
|
|
1838
1839
|
],
|
|
1839
|
-
setup(
|
|
1840
|
-
const t =
|
|
1840
|
+
setup(s, { expose: e, emit: n }) {
|
|
1841
|
+
const t = s, l = Zt(), o = O(null), r = O(), C = O({}), u = O(null), p = O(null), h = O(), c = O(null), {
|
|
1841
1842
|
allowColumnDragAndDrop: d,
|
|
1842
1843
|
columns: a,
|
|
1843
1844
|
columnPanel: g,
|
|
@@ -1847,32 +1848,32 @@ const Co = Rl.exports, yl = {
|
|
|
1847
1848
|
selection: R,
|
|
1848
1849
|
loading: T,
|
|
1849
1850
|
selectableAcrossPages: v,
|
|
1850
|
-
outline:
|
|
1851
|
-
} = Ee(t), f = O(-1), { t: _ } =
|
|
1852
|
-
|
|
1851
|
+
outline: M
|
|
1852
|
+
} = Ee(t), f = O(-1), { t: _ } = se(), A = b(() => z.value.filter((S) => S.frozen).length), w = Fe(
|
|
1853
|
+
sn,
|
|
1853
1854
|
() => ({
|
|
1854
1855
|
isDataGridTemplate: !1,
|
|
1855
1856
|
stickyTabs: O(!1),
|
|
1856
1857
|
tabsRef: O(null)
|
|
1857
1858
|
})
|
|
1858
|
-
), { isDataGridTemplate: x, stickyTabs: U, tabsRef:
|
|
1859
|
-
columnDefs:
|
|
1859
|
+
), { isDataGridTemplate: x, stickyTabs: U, tabsRef: k } = w(), W = b(() => t.fitContent || x ? 0 : null), {
|
|
1860
|
+
columnDefs: z,
|
|
1860
1861
|
onColumnWidthOverride: F,
|
|
1861
1862
|
gridColumnWidthStyle: I,
|
|
1862
1863
|
isMeasuringColumnWidths: Z,
|
|
1863
1864
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: re,
|
|
1864
1865
|
columns: ce
|
|
1865
|
-
} =
|
|
1866
|
+
} = yn(a, L, o, C, u, {
|
|
1866
1867
|
hasColumnPanel: g,
|
|
1867
1868
|
hasSelectableColumn: E,
|
|
1868
1869
|
hasSelectableAcrossPages: v,
|
|
1869
1870
|
allowColumnDragAndDrop: d
|
|
1870
1871
|
}), i = (S, ...D) => {
|
|
1871
|
-
(S === y.COLUMNS || S === y.UPDATE_COLUMNS) && ([ce.value] = D),
|
|
1872
|
-
},
|
|
1873
|
-
() => t.stickyFilters ? `${
|
|
1872
|
+
(S === y.COLUMNS || S === y.UPDATE_COLUMNS) && ([ce.value] = D), n(S, ...D);
|
|
1873
|
+
}, N = Be(k, U), Y = b(
|
|
1874
|
+
() => t.stickyFilters ? `${N.value}px` : null
|
|
1874
1875
|
), X = Be(p, Qe(t, "stickyFilters")), le = b(
|
|
1875
|
-
() => `${X.value +
|
|
1876
|
+
() => `${X.value + N.value}px`
|
|
1876
1877
|
), {
|
|
1877
1878
|
sortedColumns: ie,
|
|
1878
1879
|
columnSets: oe,
|
|
@@ -1880,24 +1881,24 @@ const Co = Rl.exports, yl = {
|
|
|
1880
1881
|
onConfigSettingsUpdate: ue,
|
|
1881
1882
|
onConfigSettingsColumnsUpdate: fe,
|
|
1882
1883
|
onConfigSettingsColumnUpdate: ge
|
|
1883
|
-
} =
|
|
1884
|
+
} = Mn(z, i), { hoveredOverColumn: _e, hoveredOverColumnState: ut } = Pn(
|
|
1884
1885
|
oe,
|
|
1885
1886
|
E,
|
|
1886
|
-
|
|
1887
|
+
M,
|
|
1887
1888
|
re
|
|
1888
|
-
), { draggingColumns: be, draggingEventsForColumns: ft, draggingEventsForRowCell: gt, onMoveColumnByOffset: _t } =
|
|
1889
|
+
), { draggingColumns: be, draggingEventsForColumns: ft, draggingEventsForRowCell: gt, onMoveColumnByOffset: _t } = Dn(ie, d, i), { onAllRowSelect: vt, onRowSelect: Ct, selectedItems: ve, allItemsSelectedState: mt } = An(
|
|
1889
1890
|
R,
|
|
1890
1891
|
i,
|
|
1891
1892
|
L,
|
|
1892
1893
|
t.getDataItemId,
|
|
1893
1894
|
t.isDataItemDisabled
|
|
1894
|
-
), { navigationInput: pt } =
|
|
1895
|
+
), { navigationInput: pt } = In(u, a, E), { isLazyLoad: Re, isInfiniteScroll: ht, verticalScrollPosition: ye, emitLazyLoadEvent: Lt } = Nn(
|
|
1895
1896
|
m,
|
|
1896
1897
|
c,
|
|
1897
1898
|
o,
|
|
1898
1899
|
T,
|
|
1899
1900
|
i
|
|
1900
|
-
), { updateScrollPosition: St, updateScrollPositionOnFrozenColumnsNavigation: Et, hasLeftOverflow: Ce, hasRightOverflow: Ae } =
|
|
1901
|
+
), { updateScrollPosition: St, updateScrollPositionOnFrozenColumnsNavigation: Et, hasLeftOverflow: Ce, hasRightOverflow: Ae } = Fn(o, r, ye), Te = () => {
|
|
1901
1902
|
h.value.isClearAllVisible ? h.value.clearAllFilters() : h.value.isResetAllVisible && h.value.resetAllFilters();
|
|
1902
1903
|
}, Ot = b(() => {
|
|
1903
1904
|
var S, D;
|
|
@@ -1928,10 +1929,10 @@ const Co = Rl.exports, yl = {
|
|
|
1928
1929
|
"b-data-grid__row-cell-set--unfrozen": !S,
|
|
1929
1930
|
"b-data-grid__row-cell-set--is-measuring": Z.value
|
|
1930
1931
|
}), Tt = b(() => {
|
|
1931
|
-
var S, D, j, q, ae,
|
|
1932
|
+
var S, D, j, q, ae, Me;
|
|
1932
1933
|
return {
|
|
1933
1934
|
"b-data-grid__pagination--padding-left-unset": ((j = (D = (S = t.columns) == null ? void 0 : S[0]) == null ? void 0 : D.padding) == null ? void 0 : j.left) === !1,
|
|
1934
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
1935
|
+
"b-data-grid__pagination--padding-right-unset": ((Me = (ae = (q = t.columns) == null ? void 0 : q[t.columns.length - 1]) == null ? void 0 : ae.padding) == null ? void 0 : Me.right) === !1,
|
|
1935
1936
|
"b-data-grid__pagination--sticky": !!t.stickyPagination || x
|
|
1936
1937
|
};
|
|
1937
1938
|
}), It = (S) => {
|
|
@@ -1947,10 +1948,10 @@ const Co = Rl.exports, yl = {
|
|
|
1947
1948
|
t.allowRowClicks && i(y.ROW_CLICK, S, D);
|
|
1948
1949
|
}, Dt = (S) => {
|
|
1949
1950
|
f.value = S;
|
|
1950
|
-
},
|
|
1951
|
-
label: l != null && l.header ?
|
|
1951
|
+
}, Mt = b(() => !!t.selectableAcrossPages && !!t.pagination), Ft = Qt({
|
|
1952
|
+
label: l != null && l.header ? en(l)("header") : null,
|
|
1952
1953
|
defaultFallback: "data grid"
|
|
1953
|
-
}),
|
|
1954
|
+
}), Pt = (S) => {
|
|
1954
1955
|
if (!t.selectable)
|
|
1955
1956
|
return null;
|
|
1956
1957
|
const D = t.getDataItemId(S);
|
|
@@ -1973,18 +1974,18 @@ const Co = Rl.exports, yl = {
|
|
|
1973
1974
|
}, Wt = (S) => {
|
|
1974
1975
|
i(y.UPDATE_FILTER_SEARCH_TERM, S), i(y.FILTER_SEARCH_INPUT, S);
|
|
1975
1976
|
}, Ne = b(() => a.value.some((S) => S.mandatory));
|
|
1976
|
-
Ne.value ||
|
|
1977
|
+
Ne.value || nt(
|
|
1977
1978
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
1978
1979
|
);
|
|
1979
|
-
const De =
|
|
1980
|
-
return De(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Te }), { __sfc: !0, props: t, slots: l, body: o, columnsRef: r, columnHeaderRefs: C, gridcellRefs: u, filtersRef: p, filterBarRef: h, verticalScrollPositionRef: c, allowColumnDragAndDrop: d, columns: a, columnPanel: g, data: L, lazyLoadType: m, selectable: E, selection: R, loading: T, selectableAcrossPages: v, outline:
|
|
1980
|
+
const De = Fe(nn, () => null);
|
|
1981
|
+
return De(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Te }), { __sfc: !0, props: t, slots: l, body: o, columnsRef: r, columnHeaderRefs: C, gridcellRefs: u, filtersRef: p, filterBarRef: h, verticalScrollPositionRef: c, allowColumnDragAndDrop: d, columns: a, columnPanel: g, data: L, lazyLoadType: m, selectable: E, selection: R, loading: T, selectableAcrossPages: v, outline: M, hoveredRowIndex: f, t: _, frozenColumnsLength: A, registerDatagridInDataGridTemplate: w, isDataGridTemplate: x, stickyTabs: U, tabsRef: k, computedColumnsTabIndex: W, columnDefs: z, onColumnWidthOverride: F, gridColumnWidthStyle: I, isMeasuringColumnWidths: Z, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: re, localColumnsState: ce, definedEmitsFunction: n, emit: i, stickyFiltersHeight: N, computedStickyFiltersTopPosition: Y, columnHeadersHeight: X, computedColumnHeadersTopPosition: le, sortedColumns: ie, columnSets: oe, isOnlyOneVisibleColumn: de, onConfigSettingsUpdate: ue, onConfigSettingsColumnsUpdate: fe, onConfigSettingsColumnUpdate: ge, hoveredOverColumn: _e, hoveredOverColumnState: ut, draggingColumns: be, draggingEventsForColumns: ft, draggingEventsForRowCell: gt, onMoveColumnByOffset: _t, onAllRowSelect: vt, onRowSelect: Ct, selectedItems: ve, allItemsSelectedState: mt, navigationInput: pt, isLazyLoad: Re, isInfiniteScroll: ht, verticalScrollPosition: ye, emitLazyLoadEvent: Lt, updateScrollPosition: St, updateScrollPositionOnFrozenColumnsNavigation: Et, hasLeftOverflow: Ce, hasRightOverflow: Ae, onEmptyStateClearResetButtonClick: Te, limitedEmptyStateProps: Ot, conditionalGridClasses: bt, computedColumnPanelAlignment: Rt, conditionalRowClasses: yt, showFrozenColumnsSeparator: Ie, conditionalRowSetClasses: At, conditionalPaginationClasses: Tt, registerColumnHeaderRefs: It, registerRowCellRef: wt, onRowClick: Nt, onCellHover: Dt, selectableAcrossPagesComputed: Mt, ariaGridHeaderText: Ft, getRowAriaSelectedValue: Pt, itemsSelectedCounter: we, showActionBar: $t, onColumnResized: xt, onSort: Ut, onPaginationNavigate: zt, onItemsPerPageChange: Bt, onSearchTermCleared: Gt, onSearchTermInput: Wt, hasMandatoryColumn: Ne, setTitle: De, BentoActionBar: Kt, BentoPagination: Jt, BentoLoadingIndicator: tt, BentoTypography: he, BentoDataGridConfigSettings: Hs, DataGridCell: vl, DataGridColumns: As, DataGridLazyLoad: Xs, BentoDatagridEvent: y, BentoEmptyState: tn, BentoFilterBar: me };
|
|
1981
1982
|
}
|
|
1982
1983
|
});
|
|
1983
1984
|
var Tl = function() {
|
|
1984
1985
|
var l;
|
|
1985
|
-
var e = this,
|
|
1986
|
-
return
|
|
1987
|
-
return [o != null && o.length ?
|
|
1986
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1987
|
+
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", 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: r, isFrozenColumns: C }, u) {
|
|
1988
|
+
return [o != null && o.length ? n(t.DataGridColumns, e._g({ key: `data-grid-columns-${r}`, ref: (p) => t.registerColumnHeaderRefs(p), refInFor: !0, attrs: { columns: o, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": C, "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": u === t.computedColumnPanelAlignment, "hovered-over-column-state": t.hoveredOverColumnState, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-only-one-visible-column": t.isOnlyOneVisibleColumn, "selectable-across-pages": t.selectableAcrossPagesComputed, "truncate-column-headers": e.truncateColumnHeaders }, on: { "column-hover": function(p) {
|
|
1988
1989
|
t.hoveredOverColumn = p;
|
|
1989
1990
|
}, "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(p) {
|
|
1990
1991
|
return t.emit(t.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
@@ -1993,19 +1994,19 @@ var Tl = function() {
|
|
|
1993
1994
|
return [e._t(h, null, null, c)];
|
|
1994
1995
|
} };
|
|
1995
1996
|
})], null, !0) }, t.draggingEventsForColumns)) : e._e()];
|
|
1996
|
-
})], 2)])], 1),
|
|
1997
|
-
return
|
|
1997
|
+
})], 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, r) {
|
|
1998
|
+
return n("div", { key: r, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(o, r), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": r + 1, "aria-selected": t.getRowAriaSelectedValue(o) }, on: { click: function(C) {
|
|
1998
1999
|
return t.onRowClick(o, C);
|
|
1999
2000
|
} } }, [e._l(t.columnSets, function({ columnSet: C, id: u, isFrozenColumns: p }, h) {
|
|
2000
|
-
return [C != null && C.length ?
|
|
2001
|
-
return
|
|
2001
|
+
return [C != null && C.length ? n("div", { key: `data-grid-rows-${u}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(p), attrs: { "data-testid": `data-grid-${u}-rows` } }, e._l(C, function(c, d) {
|
|
2002
|
+
return n(t.DataGridCell, { key: `cell-${c.field}`, ref: (a) => t.registerRowCellRef(a, c.field, r), refInFor: !0, attrs: { column: c, "column-set-index": h, "col-index": d, "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": r, "selected-items": t.selectedItems }, on: { "cell-hover": (a) => t.hoveredOverColumn = a, "on-frozen-columns-key-press": t.updateScrollPositionOnFrozenColumnsNavigation, "select-row": t.onRowSelect, "cell-hovered": t.onCellHover }, scopedSlots: e._u([e._l(t.slots, function(a, g) {
|
|
2002
2003
|
return { key: g, fn: function(L) {
|
|
2003
2004
|
return [e._t(g, null, null, L)];
|
|
2004
2005
|
} };
|
|
2005
2006
|
})], null, !0) });
|
|
2006
2007
|
}), 1) : e._e()];
|
|
2007
2008
|
})], 2);
|
|
2008
|
-
}), 0)]), t.isLazyLoad ?
|
|
2009
|
+
}), 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) {
|
|
2009
2010
|
return t.onAllRowSelect(!1);
|
|
2010
2011
|
} } }) : e._e()], 1);
|
|
2011
2012
|
}, Il = [], wl = /* @__PURE__ */ $(
|
|
@@ -2026,4 +2027,4 @@ export {
|
|
|
2026
2027
|
y as e,
|
|
2027
2028
|
pe as f
|
|
2028
2029
|
};
|
|
2029
|
-
//# sourceMappingURL=data-grid.
|
|
2030
|
+
//# sourceMappingURL=data-grid.VZ1STYt0.js.map
|