@adyen/bento-vue3 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.C7fgi1R1.js → data-grid.BEUdR8kC.js} +459 -458
- package/dist/chunks/data-grid.BEUdR8kC.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.C7fgi1R1.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as $, reactive as et, toRefs as tt, computed as w, watchEffect as Rn, watch as
|
|
1
|
+
import { ref as $, reactive as et, toRefs as tt, computed as w, watchEffect as Rn, watch as ue, onMounted as nt, nextTick as re, onUnmounted as kt, onBeforeUpdate as An, openBlock as r, createElementBlock as b, mergeProps as X, toDisplayString as G, createCommentVNode as U, createElementVNode as C, defineComponent as Le, normalizeClass as ae, unref as n, Fragment as ce, renderList as ve, toHandlers as Ze, createVNode as B, withCtx as W, renderSlot as ye, createBlock as P, withModifiers as Tn, resolveComponent as ie, createTextVNode as Q, withDirectives as lt, vShow as wn, toRef as Dt, resolveDirective as Nn, Transition as Mn, createSlots as Be, resolveDynamicComponent as $e, pushScopeId as Un, popScopeId as kn, provide as Dn, useSlots as Pn, inject as ut, normalizeStyle as Ge, normalizeProps as Xe, guardReactiveProps as Ke } from "vue";
|
|
2
2
|
import { C as Fn } from "./checkmark-circle-fill.D29b-JWj.js";
|
|
3
3
|
import { W as zn } from "./warning-filled.DHw1rVWs.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as
|
|
4
|
+
import { _ as j } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import { C as Pt } from "./cross.BlL0FyHo.js";
|
|
6
6
|
import { N as gt } from "./checkbox-input.CR1lHf7f.js";
|
|
7
|
-
import { K as
|
|
8
|
-
import { d as
|
|
7
|
+
import { K as he, B as Wn } from "./tooltip.D8i6THF3.js";
|
|
8
|
+
import { d as Gn } from "./popper-container.DigB3V2j.js";
|
|
9
9
|
import { B as Hn } from "./action-bar.C7PbsWC8.js";
|
|
10
10
|
import { B as Vn } from "./pagination.pQeDklkD.js";
|
|
11
11
|
import { B as Ft } from "./loading-indicator.BFMEf39U.js";
|
|
@@ -17,9 +17,9 @@ import { B as xn } from "./empty-state.DlKnuaPT.js";
|
|
|
17
17
|
import { B as He } from "./filter-bar.Dw9Kl9r7.js";
|
|
18
18
|
import { E as jn } from "./tabs.keys.Bc2pSKRw.js";
|
|
19
19
|
import { D as qn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
20
|
-
import { o as
|
|
20
|
+
import { o as Wt } from "./resize.Bqks3WUm.js";
|
|
21
21
|
import { a as ft, B as Yn } from "./popover.CENPURSv.js";
|
|
22
|
-
import { B as
|
|
22
|
+
import { B as Gt } from "./button.DDi9e0jg.js";
|
|
23
23
|
import { B as Ht } from "./toggle.DmTjGY0a.js";
|
|
24
24
|
import { B as Xn } from "./search-bar.DiEgrDzT.js";
|
|
25
25
|
import { u as Kn } from "./dropdown.CnuM6WO5.js";
|
|
@@ -33,9 +33,9 @@ import { B as Je, O as nl, D as ll } from "./menu.BuL47dds.js";
|
|
|
33
33
|
import { A as sl } from "./dialog-page.CZ4ZouAB.js";
|
|
34
34
|
import { l as vt } from "./events.CMzGybJJ.js";
|
|
35
35
|
import { C as ol } from "./copy.CRP53v65.js";
|
|
36
|
-
import { B as mt, a as
|
|
36
|
+
import { B as mt, a as ht } from "./loading-button.CokvM6FB.js";
|
|
37
37
|
import "../assets/data-grid.css";
|
|
38
|
-
var Qe = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Qe || {}),
|
|
38
|
+
var Qe = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Qe || {}), _e = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e))(_e || {}), pe = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(pe || {}), T = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))(T || {}), Ve = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(Ve || {}), x = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SORT = "sort", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(x || {});
|
|
39
39
|
const il = (e, u) => {
|
|
40
40
|
const a = $(null), t = $(!1), g = $(void 0), o = e.value.reduce((L, y) => (L[y.field] = null, L), {}), f = et(o), p = tt(f);
|
|
41
41
|
let v = 0, I = "";
|
|
@@ -45,10 +45,10 @@ const il = (e, u) => {
|
|
|
45
45
|
Rn(() => g.value = O.value);
|
|
46
46
|
let c = null, d = null;
|
|
47
47
|
const i = (L) => {
|
|
48
|
-
const y = L.clientX - v, N = I,
|
|
49
|
-
g.value[N].width =
|
|
48
|
+
const y = L.clientX - v, N = I, k = g.value[N].width + y;
|
|
49
|
+
g.value[N].width = k > O.value[N].minWidth ? k : O.value[N].minWidth, u(x.COLUMN_RESIZING, g.value), v = L.clientX;
|
|
50
50
|
}, l = () => {
|
|
51
|
-
t.value = !1, c == null || c(), d == null || d(), I && u(
|
|
51
|
+
t.value = !1, c == null || c(), d == null || d(), I && u(x.COLUMN_RESIZE, {
|
|
52
52
|
field: I,
|
|
53
53
|
width: g.value[I].width
|
|
54
54
|
}), c = null, d = null, I = "", v = null;
|
|
@@ -61,10 +61,10 @@ const il = (e, u) => {
|
|
|
61
61
|
I = y, v = N.clientX, c = vt(window, "mousemove", i), d = vt(window, "mouseup", l);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
return
|
|
64
|
+
return ue(
|
|
65
65
|
() => t.value,
|
|
66
66
|
(L, y) => {
|
|
67
|
-
!L && y && (u(
|
|
67
|
+
!L && y && (u(x.COLUMN_HOVER, a.value), a.value = null);
|
|
68
68
|
}
|
|
69
69
|
), {
|
|
70
70
|
resizeData: g,
|
|
@@ -73,7 +73,7 @@ const il = (e, u) => {
|
|
|
73
73
|
isResizing: t,
|
|
74
74
|
columnHoverEventToEmitAfterResizing: a
|
|
75
75
|
};
|
|
76
|
-
}, al = 100,
|
|
76
|
+
}, al = 100, _t = 50, be = "b-select", rl = 32, dl = 56, cl = 1, ul = 16, gl = (e, u, a) => {
|
|
77
77
|
const t = {}, g = [], o = (p) => {
|
|
78
78
|
const v = t[p];
|
|
79
79
|
v && v.frozen !== !0 && (t[p].frozen = !0, g.push(p));
|
|
@@ -109,111 +109,112 @@ const il = (e, u) => {
|
|
|
109
109
|
return u && (a += ul * 2), e != null && e.offsetWidth ? e.offsetWidth + a : 0;
|
|
110
110
|
}, fl = (e, u, a, t, g, o) => {
|
|
111
111
|
const f = $(e.value), p = $(u), v = $(a), I = $(t), O = $(g), c = $(!1);
|
|
112
|
-
|
|
112
|
+
ue(
|
|
113
113
|
() => e.value,
|
|
114
|
-
() => {
|
|
115
|
-
var
|
|
116
|
-
|
|
114
|
+
(m, h) => {
|
|
115
|
+
var V, q;
|
|
116
|
+
const M = (m == null ? void 0 : m.map(({ field: Y }) => Y).toString()) === (h == null ? void 0 : h.map(({ field: Y }) => Y).toString());
|
|
117
|
+
if (!((V = o == null ? void 0 : o.allowColumnDragAndDrop) != null && V.value) || !M) {
|
|
117
118
|
f.value = e.value;
|
|
118
119
|
return;
|
|
119
120
|
}
|
|
120
|
-
f.value = ((
|
|
121
|
-
const
|
|
122
|
-
return
|
|
121
|
+
f.value = ((q = f.value) == null ? void 0 : q.length) === 0 ? e.value : e.value.sort((Y, ge) => {
|
|
122
|
+
const le = f.value.findIndex((Z) => Z.field === Y.field), ee = f.value.findIndex((Z) => Z.field === ge.field);
|
|
123
|
+
return le === -1 ? 1 : ee === -1 ? -1 : le - ee;
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
126
|
);
|
|
126
127
|
const d = $();
|
|
127
128
|
let i = null;
|
|
128
129
|
const l = w(() => {
|
|
129
|
-
var
|
|
130
|
+
var le, ee;
|
|
130
131
|
const m = [];
|
|
131
|
-
let
|
|
132
|
+
let h = 0, M = 0;
|
|
132
133
|
const V = {};
|
|
133
|
-
let q = f.value.filter((
|
|
134
|
-
const
|
|
135
|
-
if ((
|
|
136
|
-
const
|
|
134
|
+
let q = f.value.filter((Z) => Z.visible !== !1);
|
|
135
|
+
const Y = f.value.filter((Z) => Z.visible === !1);
|
|
136
|
+
if ((le = o == null ? void 0 : o.hasSelectableColumn) != null && le.value) {
|
|
137
|
+
const Z = (ee = o == null ? void 0 : o.hasSelectableAcrossPages) != null && ee.value ? dl : rl;
|
|
137
138
|
q = [
|
|
138
139
|
{
|
|
139
140
|
field: be,
|
|
140
141
|
label: "",
|
|
141
|
-
minWidth:
|
|
142
|
-
width:
|
|
142
|
+
minWidth: Z,
|
|
143
|
+
width: Z,
|
|
143
144
|
frozen: !0,
|
|
144
145
|
padding: { left: !1, right: !1 }
|
|
145
146
|
},
|
|
146
147
|
...q
|
|
147
148
|
];
|
|
148
149
|
}
|
|
149
|
-
q.forEach((
|
|
150
|
-
const F = { ...
|
|
151
|
-
let
|
|
152
|
-
F.flex && F.flex > 0 ? (
|
|
150
|
+
q.forEach((Z) => {
|
|
151
|
+
const F = { ...Z };
|
|
152
|
+
let fe;
|
|
153
|
+
F.flex && F.flex > 0 ? (h += F.flex, fe = 0, m.push(F)) : fe = Math.max(
|
|
153
154
|
(F == null ? void 0 : F.width) ?? al,
|
|
154
|
-
(F == null ? void 0 : F.minWidth) ??
|
|
155
|
-
), M +=
|
|
155
|
+
(F == null ? void 0 : F.minWidth) ?? _t
|
|
156
|
+
), M += fe, F.width = fe, F.minWidth = (F == null ? void 0 : F.minWidth) ?? _t, V[F.field] = F;
|
|
156
157
|
});
|
|
157
|
-
const
|
|
158
|
-
if (
|
|
159
|
-
const
|
|
160
|
-
Object.keys(
|
|
161
|
-
V[F].width =
|
|
158
|
+
const ge = Math.max(d.value - M, 0);
|
|
159
|
+
if (h > 0 && d.value > 0) {
|
|
160
|
+
const Z = gl(ge, h, m);
|
|
161
|
+
Object.keys(Z).forEach((F) => {
|
|
162
|
+
V[F].width = Z[F].computedWidth;
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
|
-
return
|
|
165
|
-
const F = { ...
|
|
165
|
+
return Y.forEach((Z) => {
|
|
166
|
+
const F = { ...Z };
|
|
166
167
|
V[F.field] = F;
|
|
167
168
|
}), Object.values(V);
|
|
168
169
|
}), E = $(void 0), L = (m) => {
|
|
169
170
|
E.value = { ...E.value, ...m };
|
|
170
171
|
}, y = async () => {
|
|
171
|
-
f.value.some((m) => m == null ? void 0 : m.autoWidth) && (c.value = !0, await
|
|
172
|
-
var
|
|
172
|
+
f.value.some((m) => m == null ? void 0 : m.autoWidth) && (c.value = !0, await re(), await re(), f == null || f.value.filter((m) => m == null ? void 0 : m.autoWidth).forEach(({ field: m, minWidth: h }) => {
|
|
173
|
+
var Y, ge, le, ee;
|
|
173
174
|
const M = Ct(
|
|
174
|
-
(
|
|
175
|
-
(
|
|
176
|
-
), V = (
|
|
177
|
-
(
|
|
175
|
+
(Y = I.value) == null ? void 0 : Y[m],
|
|
176
|
+
(ge = o == null ? void 0 : o.hasColumnPanel) == null ? void 0 : ge.value
|
|
177
|
+
), V = (ee = (le = O.value) == null ? void 0 : le[m]) == null ? void 0 : ee.reduce(
|
|
178
|
+
(Z, F) => Math.max(Z, Ct(F)),
|
|
178
179
|
0
|
|
179
180
|
), q = Math.max(M, V ?? 0);
|
|
180
|
-
(
|
|
181
|
+
(h === void 0 || q > h) && L({
|
|
181
182
|
[m]: {
|
|
182
183
|
width: q
|
|
183
184
|
}
|
|
184
185
|
});
|
|
185
186
|
}), c.value = !1);
|
|
186
187
|
};
|
|
187
|
-
|
|
188
|
+
ue([() => f.value, () => p.value], async () => {
|
|
188
189
|
f.value.some((m) => m == null ? void 0 : m.autoWidth) && await y();
|
|
189
190
|
});
|
|
190
191
|
const N = w(
|
|
191
192
|
() => l.value.map((m) => {
|
|
192
|
-
var
|
|
193
|
+
var h, M;
|
|
193
194
|
return {
|
|
194
195
|
...m,
|
|
195
196
|
// Override column width with resized ones
|
|
196
|
-
width: ((M = (
|
|
197
|
+
width: ((M = (h = E.value) == null ? void 0 : h[m.field]) == null ? void 0 : M.width) ?? m.width
|
|
197
198
|
};
|
|
198
199
|
})
|
|
199
|
-
),
|
|
200
|
+
), k = w(
|
|
200
201
|
() => {
|
|
201
202
|
var m;
|
|
202
|
-
return (m = N.value) == null ? void 0 : m.filter(({ visible:
|
|
203
|
+
return (m = N.value) == null ? void 0 : m.filter(({ visible: h }) => h !== !1).reduce((h, M) => M.width + h, 0);
|
|
203
204
|
}
|
|
204
|
-
),
|
|
205
|
-
() => d.value <=
|
|
205
|
+
), _ = w(
|
|
206
|
+
() => d.value <= k.value
|
|
206
207
|
), H = w(() => ({
|
|
207
|
-
width: d.value >
|
|
208
|
+
width: d.value > k.value ? "100%" : "fit-content"
|
|
208
209
|
}));
|
|
209
210
|
return nt(() => {
|
|
210
211
|
var m;
|
|
211
|
-
|
|
212
|
+
re(() => {
|
|
212
213
|
v.value && (d.value = v.value.getBoundingClientRect().width);
|
|
213
|
-
const
|
|
214
|
+
const h = ue(
|
|
214
215
|
v,
|
|
215
216
|
() => {
|
|
216
|
-
v.value && (
|
|
217
|
+
v.value && (re(() => h()), i = Wt(v.value, ({ width: M }) => {
|
|
217
218
|
d.value = M;
|
|
218
219
|
}));
|
|
219
220
|
},
|
|
@@ -222,7 +223,7 @@ const il = (e, u) => {
|
|
|
222
223
|
}), (m = document == null ? void 0 : document.fonts) != null && m.ready ? document.fonts.ready.then(() => {
|
|
223
224
|
y();
|
|
224
225
|
}) : y();
|
|
225
|
-
}),
|
|
226
|
+
}), kt(() => {
|
|
226
227
|
i == null || i.disconnect();
|
|
227
228
|
}), An(() => {
|
|
228
229
|
var m;
|
|
@@ -234,7 +235,7 @@ const il = (e, u) => {
|
|
|
234
235
|
gridColumnWidthStyle: H,
|
|
235
236
|
onColumnWidthOverride: L,
|
|
236
237
|
isMeasuringColumnWidths: c,
|
|
237
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
238
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: _,
|
|
238
239
|
columns: f
|
|
239
240
|
};
|
|
240
241
|
}, vl = (e, u, a, t, g) => {
|
|
@@ -247,12 +248,12 @@ const il = (e, u) => {
|
|
|
247
248
|
var i, l, E, L, y;
|
|
248
249
|
if (o.value = c, ((i = a.value) == null ? void 0 : i.length) > 0 && ((l = a.value) == null ? void 0 : l.filter((N) => !g(N)).every((N) => o.value.includes(t(N))))) {
|
|
249
250
|
f.allItemsSelected = !0;
|
|
250
|
-
const N = ((E = a.value) == null ? void 0 : E.length) > 0 && a.value.every((
|
|
251
|
+
const N = ((E = a.value) == null ? void 0 : E.length) > 0 && a.value.every((k) => o.value.includes(t(k)));
|
|
251
252
|
f.isIndeterminate = !N;
|
|
252
253
|
} else
|
|
253
254
|
f.allItemsSelected = !1, f.isIndeterminate = ((L = o.value) == null ? void 0 : L.length) > 0 && ((y = a.value) == null ? void 0 : y.length) > 0 && a.value.some((N) => o.value.includes(t(N)));
|
|
254
255
|
}, I = (c) => {
|
|
255
|
-
|
|
256
|
+
re(() => {
|
|
256
257
|
var d, i, l;
|
|
257
258
|
if (f.allItemsSelected = c, c) {
|
|
258
259
|
o.value = (i = (d = a.value) == null ? void 0 : d.filter((L) => !g(L))) == null ? void 0 : i.map((L) => t(L));
|
|
@@ -263,17 +264,17 @@ const il = (e, u) => {
|
|
|
263
264
|
p();
|
|
264
265
|
});
|
|
265
266
|
}, O = (c) => {
|
|
266
|
-
|
|
267
|
+
re(() => {
|
|
267
268
|
v(c), p();
|
|
268
269
|
});
|
|
269
270
|
};
|
|
270
|
-
return
|
|
271
|
+
return ue(
|
|
271
272
|
() => e.value,
|
|
272
273
|
() => {
|
|
273
274
|
v(e.value ?? []);
|
|
274
275
|
},
|
|
275
276
|
{ immediate: !0 }
|
|
276
|
-
),
|
|
277
|
+
), ue(
|
|
277
278
|
() => a.value,
|
|
278
279
|
() => {
|
|
279
280
|
v(o.value);
|
|
@@ -290,10 +291,10 @@ const il = (e, u) => {
|
|
|
290
291
|
field: f,
|
|
291
292
|
direction: ((I = e.value.find((O) => O.field === f)) == null ? void 0 : I.direction) === pe.ASCENDING ? pe.DESCENDING : pe.ASCENDING
|
|
292
293
|
}];
|
|
293
|
-
a(
|
|
294
|
+
a(x.SORT, v);
|
|
294
295
|
} });
|
|
295
|
-
var J = ((e) => (e[e.ARROW_DOWN =
|
|
296
|
-
const
|
|
296
|
+
var J = ((e) => (e[e.ARROW_DOWN = he.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = he.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = he.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = he.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = he.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = he.PAGE_DOWN] = "PAGE_DOWN", e[e.END = he.END] = "END", e[e.HOME = he.HOME] = "HOME", e))(J || {});
|
|
297
|
+
const hl = (e, u, a) => {
|
|
297
298
|
const t = w(() => {
|
|
298
299
|
const i = u.value.filter(({ visible: l }) => l !== !1);
|
|
299
300
|
return a.value ? i.length + 1 : i.length;
|
|
@@ -303,10 +304,10 @@ const _l = (e, u, a) => {
|
|
|
303
304
|
return E > L ? 1 : L > E ? -1 : 0;
|
|
304
305
|
})
|
|
305
306
|
), o = (i) => Math.floor(i / t.value), f = (i, l, E) => {
|
|
306
|
-
const L = g.value.length - 1, y = t.value - 1, N = o(i),
|
|
307
|
+
const L = g.value.length - 1, y = t.value - 1, N = o(i), k = i - t.value * N;
|
|
307
308
|
return {
|
|
308
|
-
[J.PAGE_UP]:
|
|
309
|
-
[J.PAGE_DOWN]: L - y +
|
|
309
|
+
[J.PAGE_UP]: k,
|
|
310
|
+
[J.PAGE_DOWN]: L - y + k,
|
|
310
311
|
[J.END]: E ? L : t.value * N + y,
|
|
311
312
|
[J.HOME]: E ? 0 : t.value * N
|
|
312
313
|
}[l];
|
|
@@ -340,14 +341,14 @@ const _l = (e, u, a) => {
|
|
|
340
341
|
Object.values(e.value).flat(1).includes(L) && c(E) && O(L, E, l);
|
|
341
342
|
}
|
|
342
343
|
};
|
|
343
|
-
},
|
|
344
|
+
}, _l = 90, Cl = (e, u, a, t, g) => {
|
|
344
345
|
const o = $(e), f = $(u), p = $(a), v = $(t), I = w(() => o.value !== "none"), O = w(() => o.value === "automatic"), c = () => {
|
|
345
346
|
g(T.UPDATE_SHOW_MORE);
|
|
346
347
|
};
|
|
347
|
-
return
|
|
348
|
+
return ue(
|
|
348
349
|
() => f.value,
|
|
349
350
|
() => {
|
|
350
|
-
O.value && p.value.offsetHeight / f.value * 100 >
|
|
351
|
+
O.value && p.value.offsetHeight / f.value * 100 > _l && !v.value && c();
|
|
351
352
|
}
|
|
352
353
|
), { isLazyLoad: I, isInfiniteScroll: O, verticalScrollPosition: f, emitLazyLoadEvent: c };
|
|
353
354
|
}, pl = (e, u, a) => {
|
|
@@ -371,31 +372,31 @@ const _l = (e, u, a) => {
|
|
|
371
372
|
var l, E;
|
|
372
373
|
if (((l = o.dragging) == null ? void 0 : l.field) !== i.field) {
|
|
373
374
|
const L = t.value.findIndex((m) => {
|
|
374
|
-
var
|
|
375
|
-
return m.field === ((
|
|
376
|
-
}), y = t.value.findIndex((m) => m.field === i.field), N = o.dragToLeft ? y : y + 1,
|
|
377
|
-
let
|
|
378
|
-
|
|
379
|
-
|
|
375
|
+
var h;
|
|
376
|
+
return m.field === ((h = o.dragging) == null ? void 0 : h.field);
|
|
377
|
+
}), y = t.value.findIndex((m) => m.field === i.field), N = o.dragToLeft ? y : y + 1, k = N > L ? N - 1 : N;
|
|
378
|
+
let _ = [...t.value];
|
|
379
|
+
_.splice(
|
|
380
|
+
k === -1 ? 0 : k,
|
|
380
381
|
0,
|
|
381
|
-
|
|
382
|
+
_.splice(L, 1)[0]
|
|
382
383
|
);
|
|
383
384
|
const H = t.value.findIndex((m) => !(m != null && m.frozen));
|
|
384
|
-
((E = o.dragging) == null ? void 0 : E.frozen) !== i.frozen && N !== H && (
|
|
385
|
+
((E = o.dragging) == null ? void 0 : E.frozen) !== i.frozen && N !== H && (_ = _.map(
|
|
385
386
|
(m) => {
|
|
386
|
-
var
|
|
387
|
-
return ((
|
|
387
|
+
var h;
|
|
388
|
+
return ((h = o.dragging) == null ? void 0 : h.field) === m.field ? { ...m, frozen: !!(i != null && i.frozen) } : m;
|
|
388
389
|
}
|
|
389
|
-
)), a(T.COLUMNS,
|
|
390
|
+
)), a(T.COLUMNS, _), a(T.UPDATE_COLUMNS, _);
|
|
390
391
|
}
|
|
391
392
|
o.dragging = null, o.target = null;
|
|
392
393
|
}, O = () => {
|
|
393
394
|
o.dragging = null, o.dragToLeft = null, o.target = null;
|
|
394
395
|
}, c = w(() => g.value ? {
|
|
395
|
-
[
|
|
396
|
-
[
|
|
397
|
-
[
|
|
398
|
-
[
|
|
396
|
+
[x.COLUMN_DRAG_START]: (i, l) => p(i, l),
|
|
397
|
+
[x.COLUMN_DRAG_ENTER]: (i, l) => v(i, l),
|
|
398
|
+
[x.COLUMN_DROP]: (i) => I(i),
|
|
399
|
+
[x.COLUMN_DRAG_END]: () => O()
|
|
399
400
|
} : {}), d = w(() => (i) => g.value ? {
|
|
400
401
|
dragenter: (l) => {
|
|
401
402
|
l.preventDefault(), v(i, l);
|
|
@@ -454,17 +455,17 @@ const _l = (e, u, a) => {
|
|
|
454
455
|
e != null && e.value && u.value && (a.value = e.value.offsetHeight);
|
|
455
456
|
};
|
|
456
457
|
return nt(() => {
|
|
457
|
-
|
|
458
|
-
const o =
|
|
458
|
+
re(() => {
|
|
459
|
+
const o = ue(
|
|
459
460
|
e,
|
|
460
461
|
() => {
|
|
461
|
-
e != null && e.value && (
|
|
462
|
+
e != null && e.value && (re(() => o()), t = Wt(e.value, () => {
|
|
462
463
|
g();
|
|
463
464
|
}));
|
|
464
465
|
},
|
|
465
466
|
{ immediate: !0 }
|
|
466
467
|
);
|
|
467
|
-
|
|
468
|
+
ue(
|
|
468
469
|
u,
|
|
469
470
|
() => {
|
|
470
471
|
u.value ? g() : a.value = 0;
|
|
@@ -472,19 +473,19 @@ const _l = (e, u, a) => {
|
|
|
472
473
|
{ immediate: !0 }
|
|
473
474
|
);
|
|
474
475
|
});
|
|
475
|
-
}),
|
|
476
|
+
}), kt(() => {
|
|
476
477
|
t == null || t.disconnect();
|
|
477
478
|
}), a;
|
|
478
479
|
}, Sl = (e, u, a) => {
|
|
479
480
|
const t = $(0), g = $(!1), o = $(!1);
|
|
480
|
-
return
|
|
481
|
+
return ue(
|
|
481
482
|
() => t.value,
|
|
482
483
|
() => {
|
|
483
484
|
e.value.scrollLeft = t.value, u.value.scrollLeft = t.value, g.value = !!t.value, o.value = u.value.scrollWidth - u.value.offsetWidth > t.value;
|
|
484
485
|
}
|
|
485
486
|
), nt(async () => {
|
|
486
487
|
var v, I;
|
|
487
|
-
await
|
|
488
|
+
await re(), await re(), ((v = u.value) == null ? void 0 : v.offsetWidth) < ((I = u.value) == null ? void 0 : I.scrollWidth) && (o.value = !0);
|
|
488
489
|
}), {
|
|
489
490
|
// Values
|
|
490
491
|
scrollLeftPosition: t,
|
|
@@ -510,7 +511,7 @@ const _l = (e, u, a) => {
|
|
|
510
511
|
noBorderLeft: !1,
|
|
511
512
|
noBorderRight: !1
|
|
512
513
|
};
|
|
513
|
-
const f = (L = (E = e.value.find((
|
|
514
|
+
const f = (L = (E = e.value.find((k) => k.isFrozenColumns)) == null ? void 0 : E.columnSet) == null ? void 0 : L.filter((k) => k.field !== be), p = e.value.find((k) => !(k != null && k.isFrozenColumns)), v = g.value.frozen && (f == null ? void 0 : f[0].field) === g.value.field, I = !g.value.frozen && ((y = p == null ? void 0 : p.columnSet) == null ? void 0 : y[0].field) === g.value.field, O = (u.value || a.value) && v, c = (u.value || a.value) && !f && I, d = f && I, i = (f == null ? void 0 : f.length) > 0 && g.value.frozen && (f == null ? void 0 : f[f.length - 1].field) === g.value.field, l = a.value && t.value && !g.value.frozen && ((N = p == null ? void 0 : p.columnSet) == null ? void 0 : N[p.columnSet.length - 1].field) === g.value.field;
|
|
514
515
|
return {
|
|
515
516
|
hoveredOverColumnField: g.value.field,
|
|
516
517
|
isSeparatorOffset: l,
|
|
@@ -539,14 +540,14 @@ const El = {
|
|
|
539
540
|
Tl
|
|
540
541
|
];
|
|
541
542
|
function Nl(e, u, a, t, g, o) {
|
|
542
|
-
return r(), b("svg",
|
|
543
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
543
544
|
class: "ui-assets-icons-16",
|
|
544
545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
545
546
|
width: "16",
|
|
546
547
|
height: "16",
|
|
547
548
|
fill: "none"
|
|
548
549
|
}), [
|
|
549
|
-
e.$attrs["svg-title"] ? (r(), b("title", yl,
|
|
550
|
+
e.$attrs["svg-title"] ? (r(), b("title", yl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
550
551
|
C("g", {
|
|
551
552
|
fill: "#00112C",
|
|
552
553
|
"clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
@@ -558,35 +559,35 @@ function Nl(e, u, a, t, g, o) {
|
|
|
558
559
|
])
|
|
559
560
|
], 16);
|
|
560
561
|
}
|
|
561
|
-
const Ml = /* @__PURE__ */
|
|
562
|
+
const Ml = /* @__PURE__ */ j(El, [["render", Nl]]);
|
|
562
563
|
let St = 0;
|
|
563
564
|
const Ul = {
|
|
564
565
|
beforeCreate() {
|
|
565
566
|
this.uuid = St.toString(), St += 1;
|
|
566
567
|
}
|
|
567
|
-
},
|
|
568
|
+
}, kl = { key: 0 }, Dl = /* @__PURE__ */ C("path", {
|
|
568
569
|
fill: "#00112C",
|
|
569
570
|
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"
|
|
570
571
|
}, null, -1);
|
|
571
|
-
function
|
|
572
|
-
return r(), b("svg",
|
|
572
|
+
function Pl(e, u, a, t, g, o) {
|
|
573
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
573
574
|
class: "ui-assets-icons-16",
|
|
574
575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
575
576
|
width: "16",
|
|
576
577
|
height: "16",
|
|
577
578
|
fill: "none"
|
|
578
579
|
}), [
|
|
579
|
-
e.$attrs["svg-title"] ? (r(), b("title",
|
|
580
|
-
|
|
580
|
+
e.$attrs["svg-title"] ? (r(), b("title", kl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
581
|
+
Dl
|
|
581
582
|
], 16);
|
|
582
583
|
}
|
|
583
|
-
const Fl = /* @__PURE__ */
|
|
584
|
+
const Fl = /* @__PURE__ */ j(Ul, [["render", Pl]]);
|
|
584
585
|
let bt = 0;
|
|
585
586
|
const zl = {
|
|
586
587
|
beforeCreate() {
|
|
587
588
|
this.uuid = bt.toString(), bt += 1;
|
|
588
589
|
}
|
|
589
|
-
},
|
|
590
|
+
}, Wl = { key: 0 }, Gl = ["clip-path"], Hl = /* @__PURE__ */ C("path", {
|
|
590
591
|
fill: "#00112C",
|
|
591
592
|
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"
|
|
592
593
|
}, null, -1), Vl = [
|
|
@@ -600,17 +601,17 @@ const zl = {
|
|
|
600
601
|
Zl
|
|
601
602
|
];
|
|
602
603
|
function jl(e, u, a, t, g, o) {
|
|
603
|
-
return r(), b("svg",
|
|
604
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
604
605
|
class: "ui-assets-icons-16",
|
|
605
606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
606
607
|
width: "16",
|
|
607
608
|
height: "16",
|
|
608
609
|
fill: "none"
|
|
609
610
|
}), [
|
|
610
|
-
e.$attrs["svg-title"] ? (r(), b("title",
|
|
611
|
+
e.$attrs["svg-title"] ? (r(), b("title", Wl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
611
612
|
C("g", {
|
|
612
613
|
"clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")"
|
|
613
|
-
}, Vl, 8,
|
|
614
|
+
}, Vl, 8, Gl),
|
|
614
615
|
C("defs", null, [
|
|
615
616
|
C("clipPath", {
|
|
616
617
|
id: "uia-icons-16-freeze__a" + e.uuid
|
|
@@ -618,7 +619,7 @@ function jl(e, u, a, t, g, o) {
|
|
|
618
619
|
])
|
|
619
620
|
], 16);
|
|
620
621
|
}
|
|
621
|
-
const Zt = /* @__PURE__ */
|
|
622
|
+
const Zt = /* @__PURE__ */ j(zl, [["render", jl]]);
|
|
622
623
|
let Et = 0;
|
|
623
624
|
const ql = {
|
|
624
625
|
beforeCreate() {
|
|
@@ -635,20 +636,20 @@ const ql = {
|
|
|
635
636
|
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"
|
|
636
637
|
}, null, -1);
|
|
637
638
|
function Ql(e, u, a, t, g, o) {
|
|
638
|
-
return r(), b("svg",
|
|
639
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
639
640
|
class: "ui-assets-icons-16",
|
|
640
641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
641
642
|
width: "16",
|
|
642
643
|
height: "16",
|
|
643
644
|
fill: "none"
|
|
644
645
|
}), [
|
|
645
|
-
e.$attrs["svg-title"] ? (r(), b("title", Yl,
|
|
646
|
+
e.$attrs["svg-title"] ? (r(), b("title", Yl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
646
647
|
Xl,
|
|
647
648
|
Kl,
|
|
648
649
|
Jl
|
|
649
650
|
], 16);
|
|
650
651
|
}
|
|
651
|
-
const es = /* @__PURE__ */
|
|
652
|
+
const es = /* @__PURE__ */ j(ql, [["render", Ql]]);
|
|
652
653
|
let yt = 0;
|
|
653
654
|
const ts = {
|
|
654
655
|
beforeCreate() {
|
|
@@ -667,14 +668,14 @@ const ts = {
|
|
|
667
668
|
cs
|
|
668
669
|
];
|
|
669
670
|
function gs(e, u, a, t, g, o) {
|
|
670
|
-
return r(), b("svg",
|
|
671
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
671
672
|
class: "ui-assets-icons-16",
|
|
672
673
|
xmlns: "http://www.w3.org/2000/svg",
|
|
673
674
|
width: "16",
|
|
674
675
|
height: "16",
|
|
675
676
|
fill: "none"
|
|
676
677
|
}), [
|
|
677
|
-
e.$attrs["svg-title"] ? (r(), b("title", ns,
|
|
678
|
+
e.$attrs["svg-title"] ? (r(), b("title", ns, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
678
679
|
C("g", {
|
|
679
680
|
fill: "#00112C",
|
|
680
681
|
"clip-path": "url(#uia-icons-16-sort_ascending__a" + e.uuid + ")"
|
|
@@ -686,14 +687,14 @@ function gs(e, u, a, t, g, o) {
|
|
|
686
687
|
])
|
|
687
688
|
], 16);
|
|
688
689
|
}
|
|
689
|
-
const fs = /* @__PURE__ */
|
|
690
|
+
const fs = /* @__PURE__ */ j(ts, [["render", gs]]);
|
|
690
691
|
let Ot = 0;
|
|
691
692
|
const vs = {
|
|
692
693
|
beforeCreate() {
|
|
693
694
|
this.uuid = Ot.toString(), Ot += 1;
|
|
694
695
|
}
|
|
695
|
-
}, ms = { key: 0 },
|
|
696
|
-
|
|
696
|
+
}, ms = { key: 0 }, hs = ["clip-path"], _s = /* @__PURE__ */ C("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1), Cs = /* @__PURE__ */ C("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1), ps = /* @__PURE__ */ C("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1), Ls = /* @__PURE__ */ C("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1), Ss = [
|
|
697
|
+
_s,
|
|
697
698
|
Cs,
|
|
698
699
|
ps,
|
|
699
700
|
Ls
|
|
@@ -705,18 +706,18 @@ const vs = {
|
|
|
705
706
|
Es
|
|
706
707
|
];
|
|
707
708
|
function Os(e, u, a, t, g, o) {
|
|
708
|
-
return r(), b("svg",
|
|
709
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
709
710
|
class: "ui-assets-icons-16",
|
|
710
711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
711
712
|
width: "16",
|
|
712
713
|
height: "16",
|
|
713
714
|
fill: "none"
|
|
714
715
|
}), [
|
|
715
|
-
e.$attrs["svg-title"] ? (r(), b("title", ms,
|
|
716
|
+
e.$attrs["svg-title"] ? (r(), b("title", ms, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
716
717
|
C("g", {
|
|
717
718
|
fill: "#00112C",
|
|
718
719
|
"clip-path": "url(#uia-icons-16-sort_descending__a" + e.uuid + ")"
|
|
719
|
-
}, Ss, 8,
|
|
720
|
+
}, Ss, 8, hs),
|
|
720
721
|
C("defs", null, [
|
|
721
722
|
C("clipPath", {
|
|
722
723
|
id: "uia-icons-16-sort_descending__a" + e.uuid
|
|
@@ -724,7 +725,7 @@ function Os(e, u, a, t, g, o) {
|
|
|
724
725
|
])
|
|
725
726
|
], 16);
|
|
726
727
|
}
|
|
727
|
-
const Is = /* @__PURE__ */
|
|
728
|
+
const Is = /* @__PURE__ */ j(vs, [["render", Os]]);
|
|
728
729
|
let It = 0;
|
|
729
730
|
const $s = {
|
|
730
731
|
beforeCreate() {
|
|
@@ -738,41 +739,41 @@ const $s = {
|
|
|
738
739
|
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"
|
|
739
740
|
}, null, -1);
|
|
740
741
|
function ws(e, u, a, t, g, o) {
|
|
741
|
-
return r(), b("svg",
|
|
742
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
742
743
|
class: "ui-assets-icons-16",
|
|
743
744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
744
745
|
width: "16",
|
|
745
746
|
height: "16",
|
|
746
747
|
fill: "none"
|
|
747
748
|
}), [
|
|
748
|
-
e.$attrs["svg-title"] ? (r(), b("title", Rs,
|
|
749
|
+
e.$attrs["svg-title"] ? (r(), b("title", Rs, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
749
750
|
As,
|
|
750
751
|
Ts
|
|
751
752
|
], 16);
|
|
752
753
|
}
|
|
753
|
-
const Ns = /* @__PURE__ */
|
|
754
|
+
const Ns = /* @__PURE__ */ j($s, [["render", ws]]);
|
|
754
755
|
let $t = 0;
|
|
755
756
|
const Ms = {
|
|
756
757
|
beforeCreate() {
|
|
757
758
|
this.uuid = $t.toString(), $t += 1;
|
|
758
759
|
}
|
|
759
|
-
}, Us = { key: 0 },
|
|
760
|
+
}, Us = { key: 0 }, ks = /* @__PURE__ */ C("path", {
|
|
760
761
|
fill: "#00112C",
|
|
761
762
|
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
762
763
|
}, null, -1);
|
|
763
|
-
function
|
|
764
|
-
return r(), b("svg",
|
|
764
|
+
function Ds(e, u, a, t, g, o) {
|
|
765
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
765
766
|
class: "ui-assets-icons-16",
|
|
766
767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
767
768
|
width: "16",
|
|
768
769
|
height: "16",
|
|
769
770
|
fill: "none"
|
|
770
771
|
}), [
|
|
771
|
-
e.$attrs["svg-title"] ? (r(), b("title", Us,
|
|
772
|
-
|
|
772
|
+
e.$attrs["svg-title"] ? (r(), b("title", Us, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
773
|
+
ks
|
|
773
774
|
], 16);
|
|
774
775
|
}
|
|
775
|
-
const
|
|
776
|
+
const Ps = /* @__PURE__ */ j(Ms, [["render", Ds]]), xt = {
|
|
776
777
|
"en-US": {
|
|
777
778
|
sortColumn: "Sort {name} column",
|
|
778
779
|
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
@@ -788,7 +789,7 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
788
789
|
unfreezeColumn: "Unfreeze column",
|
|
789
790
|
columnActions: "{name} column actions"
|
|
790
791
|
}
|
|
791
|
-
}, Fs = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], zs = ["aria-label"],
|
|
792
|
+
}, Fs = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], zs = ["aria-label"], Ws = { class: "b-data-grid-columns__label" }, Gs = {
|
|
792
793
|
key: 0,
|
|
793
794
|
class: "b-data-grid-columns__column-info-icon"
|
|
794
795
|
}, Hs = {
|
|
@@ -923,62 +924,62 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
923
924
|
},
|
|
924
925
|
emits: ["column-hover"],
|
|
925
926
|
setup(e, { expose: u, emit: a }) {
|
|
926
|
-
const t = e, g = 100, { t: o } = Ee({ messages: xt }), { columns: f, sortBy: p } = tt(t), v = $({}), I = $({}), O = $(), c = $(), d = (s) => a(
|
|
927
|
+
const t = e, g = 100, { t: o } = Ee({ messages: xt }), { columns: f, sortBy: p } = tt(t), v = $({}), I = $({}), O = $(), c = $(), d = (s) => a(x.SELECT_ALL_ROWS, s), i = (s) => s.field === be, l = w(() => [
|
|
927
928
|
{
|
|
928
929
|
text: o("selectPage"),
|
|
929
930
|
handler: () => d(!0)
|
|
930
931
|
},
|
|
931
932
|
{
|
|
932
933
|
text: o("selectAll"),
|
|
933
|
-
handler: () => a(
|
|
934
|
+
handler: () => a(x.SELECT_ALL_ACROSS_PAGES)
|
|
934
935
|
}
|
|
935
|
-
]), { startResize: E, isResizing: L, columnHoverEventToEmitAfterResizing: y } = il(f, a), { isSorting: N, getSortingDirection:
|
|
936
|
-
var
|
|
936
|
+
]), { startResize: E, isResizing: L, columnHoverEventToEmitAfterResizing: y } = il(f, a), { isSorting: N, getSortingDirection: k, sortByColumnField: _ } = ml(p, f, a), H = (s) => {
|
|
937
|
+
var se;
|
|
937
938
|
if (!s.sortable)
|
|
938
939
|
return null;
|
|
939
|
-
const
|
|
940
|
-
return
|
|
940
|
+
const D = (se = t.sortBy.find(({ field: K }) => K === s.field)) == null ? void 0 : se.direction;
|
|
941
|
+
return D ? {
|
|
941
942
|
[pe.ASCENDING]: Ve.ASCENDING,
|
|
942
943
|
[pe.DESCENDING]: Ve.DESCENDING
|
|
943
|
-
}[
|
|
944
|
+
}[D] : Ve.NONE;
|
|
944
945
|
}, m = w(() => (s) => t.hasDraggableColumns ? {
|
|
945
|
-
dragstart: (
|
|
946
|
-
a(
|
|
946
|
+
dragstart: (D) => {
|
|
947
|
+
a(x.COLUMN_DRAG_START, s, D);
|
|
947
948
|
},
|
|
948
|
-
dragover: (
|
|
949
|
-
|
|
949
|
+
dragover: (D) => {
|
|
950
|
+
D.preventDefault();
|
|
950
951
|
},
|
|
951
|
-
dragenter: (
|
|
952
|
-
|
|
952
|
+
dragenter: (D) => {
|
|
953
|
+
D.preventDefault(), a(x.COLUMN_DRAG_ENTER, s, D);
|
|
953
954
|
},
|
|
954
955
|
drop: () => {
|
|
955
|
-
a(
|
|
956
|
+
a(x.COLUMN_DROP, s);
|
|
956
957
|
},
|
|
957
958
|
dragend: () => {
|
|
958
|
-
a(
|
|
959
|
+
a(x.COLUMN_DRAG_END);
|
|
959
960
|
}
|
|
960
|
-
} : {}),
|
|
961
|
+
} : {}), h = w(() => (s) => [
|
|
961
962
|
{
|
|
962
963
|
text: o("moveColumnLeft"),
|
|
963
|
-
handler: () => a(
|
|
964
|
+
handler: () => a(x.COLUMN_MOVE, s, -1),
|
|
964
965
|
icon: sl,
|
|
965
966
|
disabled: t.columns[0].field === s.field
|
|
966
967
|
},
|
|
967
968
|
{
|
|
968
969
|
text: o("moveColumnRight"),
|
|
969
|
-
handler: () => a(
|
|
970
|
+
handler: () => a(x.COLUMN_MOVE, s, 1),
|
|
970
971
|
icon: Fl,
|
|
971
972
|
disabled: t.columns[t.columns.length - 1].field === s.field
|
|
972
973
|
},
|
|
973
974
|
{
|
|
974
975
|
text: s != null && s.frozen ? o("unfreezeColumn") : o("freezeColumn"),
|
|
975
|
-
handler: () => a(
|
|
976
|
+
handler: () => a(x.COLUMN_UPDATE, { ...s, frozen: !(s != null && s.frozen) }),
|
|
976
977
|
icon: Zt
|
|
977
978
|
},
|
|
978
979
|
{
|
|
979
980
|
text: (s == null ? void 0 : s.visible) !== !1 ? o("hideColumn") : o("showColumn"),
|
|
980
981
|
handler: () => {
|
|
981
|
-
a(
|
|
982
|
+
a(x.COLUMN_UPDATE, {
|
|
982
983
|
...s,
|
|
983
984
|
visible: (s == null ? void 0 : s.visible) === !1
|
|
984
985
|
});
|
|
@@ -994,7 +995,7 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
994
995
|
}, g);
|
|
995
996
|
c.value = s;
|
|
996
997
|
}, q = (s) => {
|
|
997
|
-
let
|
|
998
|
+
let D = {
|
|
998
999
|
mouseenter: () => {
|
|
999
1000
|
M(s), L.value ? y.value = s : a("column-hover", s);
|
|
1000
1001
|
},
|
|
@@ -1003,19 +1004,19 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1003
1004
|
},
|
|
1004
1005
|
focus: () => M(s)
|
|
1005
1006
|
};
|
|
1006
|
-
return i(s) || (
|
|
1007
|
-
...
|
|
1007
|
+
return i(s) || (D = {
|
|
1008
|
+
...D,
|
|
1008
1009
|
...m.value(s)
|
|
1009
|
-
}),
|
|
1010
|
-
},
|
|
1010
|
+
}), D;
|
|
1011
|
+
}, Y = (s) => s.infoIconTooltip || s.sortable || t.hasColumnPanel, ge = (s, D) => {
|
|
1011
1012
|
var R;
|
|
1012
|
-
((R = v.value) == null ? void 0 : R[
|
|
1013
|
-
},
|
|
1014
|
-
var
|
|
1013
|
+
((R = v.value) == null ? void 0 : R[D]) === void 0 && (v.value = { ...v.value, [D]: null }), s !== null && (v.value[D] = s);
|
|
1014
|
+
}, le = w(() => {
|
|
1015
|
+
var D;
|
|
1015
1016
|
const s = {
|
|
1016
1017
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
1017
1018
|
};
|
|
1018
|
-
return (
|
|
1019
|
+
return (D = f.value[0]) != null && D.frozen ? {
|
|
1019
1020
|
...s,
|
|
1020
1021
|
"b-data-grid-columns--frozen": !0,
|
|
1021
1022
|
"b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
|
|
@@ -1024,26 +1025,26 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1024
1025
|
...s,
|
|
1025
1026
|
"b-data-grid-columns--unfrozen": !0
|
|
1026
1027
|
};
|
|
1027
|
-
}),
|
|
1028
|
-
var R,
|
|
1028
|
+
}), ee = (s, D) => s && D === 0 ? ft.BOTTOM_START : ft.BOTTOM_END, Z = (s, D) => {
|
|
1029
|
+
var R, se, K, Ae, me, Te, we, Ne, Me, Oe;
|
|
1029
1030
|
return {
|
|
1030
1031
|
"b-data-grid-columns__column--column-hovered": s.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1031
1032
|
"b-data-grid-columns__column--column-hovered-no-border-left": s.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1032
1033
|
"b-data-grid-columns__column--column-hovered-no-border-right": s.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1033
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns &&
|
|
1034
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && D === f.value.length - 1,
|
|
1034
1035
|
"b-data-grid-columns__column--sortable": s.sortable,
|
|
1035
1036
|
"b-data-grid-columns__column--padding-left-unset": ((R = s == null ? void 0 : s.padding) == null ? void 0 : R.left) === !1,
|
|
1036
|
-
"b-data-grid-columns__column--padding-right-unset": ((
|
|
1037
|
+
"b-data-grid-columns__column--padding-right-unset": ((se = s == null ? void 0 : s.padding) == null ? void 0 : se.right) === !1,
|
|
1037
1038
|
"b-data-grid-columns__column--numeric": s == null ? void 0 : s.numeric,
|
|
1038
1039
|
"b-data-grid-columns__column--frozen": s == null ? void 0 : s.frozen,
|
|
1039
|
-
"b-data-grid-columns__column--is-re-ordering": (s == null ? void 0 : s.field) === ((Ae = (
|
|
1040
|
+
"b-data-grid-columns__column--is-re-ordering": (s == null ? void 0 : s.field) === ((Ae = (K = t.draggingColumns) == null ? void 0 : K.dragging) == null ? void 0 : Ae.field),
|
|
1040
1041
|
"b-data-grid-columns__column--is-re-ordering-target-left": (s == null ? void 0 : s.field) === ((Te = (me = t.draggingColumns) == null ? void 0 : me.target) == null ? void 0 : Te.field) && ((we = t.draggingColumns) == null ? void 0 : we.dragToLeft),
|
|
1041
1042
|
"b-data-grid-columns__column--is-re-ordering-target-right": (s == null ? void 0 : s.field) === ((Me = (Ne = t.draggingColumns) == null ? void 0 : Ne.target) == null ? void 0 : Me.field) && !((Oe = t.draggingColumns) != null && Oe.dragToLeft),
|
|
1042
1043
|
"b-data-grid-columns__column--with-sorting-or-column-panel": s.sortable || s.infoIconTooltip || t.hasColumnPanel && O.value === s.field || t.selectableAcrossPages
|
|
1043
1044
|
};
|
|
1044
1045
|
}, F = (s) => ({
|
|
1045
1046
|
"b-data-grid-columns__column-header-and-actions--numeric": s == null ? void 0 : s.numeric
|
|
1046
|
-
}),
|
|
1047
|
+
}), fe = (s) => ({
|
|
1047
1048
|
"b-data-grid-columns__column-actions--numeric": s == null ? void 0 : s.numeric
|
|
1048
1049
|
}), qe = (s) => ({
|
|
1049
1050
|
"b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
|
|
@@ -1053,18 +1054,18 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1053
1054
|
}));
|
|
1054
1055
|
return u({
|
|
1055
1056
|
columnHeaderRefs: v
|
|
1056
|
-
}), (s,
|
|
1057
|
-
class:
|
|
1057
|
+
}), (s, D) => (r(), b("div", {
|
|
1058
|
+
class: ae(["b-data-grid-columns", n(le)]),
|
|
1058
1059
|
"data-testid": "data-grid-columns"
|
|
1059
1060
|
}, [
|
|
1060
|
-
(r(!0), b(
|
|
1061
|
+
(r(!0), b(ce, null, ve(n(f), (R, se) => (r(), b("div", X({
|
|
1061
1062
|
key: R.field,
|
|
1062
1063
|
ref_for: !0,
|
|
1063
|
-
ref: (
|
|
1064
|
-
"aria-colindex":
|
|
1064
|
+
ref: (K) => ge(K, R.field),
|
|
1065
|
+
"aria-colindex": se + 1,
|
|
1065
1066
|
"aria-label": R.label,
|
|
1066
1067
|
"aria-sort": H(R),
|
|
1067
|
-
class: [
|
|
1068
|
+
class: [Z(R, se), "b-data-grid-columns__column"],
|
|
1068
1069
|
"data-testid": `${R.field}-column-header`,
|
|
1069
1070
|
draggable: e.hasDraggableColumns && !n(L) && !i(R),
|
|
1070
1071
|
role: "columnheader",
|
|
@@ -1079,7 +1080,7 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1079
1080
|
value: "data-grid-select-all",
|
|
1080
1081
|
"onUpdate:modelValue": d
|
|
1081
1082
|
}, null, 8, ["model-value", "indeterminate"]),
|
|
1082
|
-
e.selectableAcrossPages ? (r(),
|
|
1083
|
+
e.selectableAcrossPages ? (r(), P(n(Je), {
|
|
1083
1084
|
key: 0,
|
|
1084
1085
|
class: "b-data-grid-columns__select-column-menu",
|
|
1085
1086
|
data: n(l),
|
|
@@ -1087,37 +1088,37 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1087
1088
|
"menu-fixed-positioning": "",
|
|
1088
1089
|
button: { variant: "tertiary", condensed: !0 }
|
|
1089
1090
|
}, {
|
|
1090
|
-
iconLeft:
|
|
1091
|
-
B(n(
|
|
1091
|
+
iconLeft: W(() => [
|
|
1092
|
+
B(n(Ps), {
|
|
1092
1093
|
"svg-title": n(o)("selectionMenu")
|
|
1093
1094
|
}, null, 8, ["svg-title"])
|
|
1094
1095
|
]),
|
|
1095
1096
|
_: 1
|
|
1096
1097
|
}, 8, ["data"])) : U("", !0)
|
|
1097
|
-
])) : (r(), b(
|
|
1098
|
+
])) : (r(), b(ce, { key: 0 }, [
|
|
1098
1099
|
C("div", {
|
|
1099
1100
|
"aria-label": n(o)("columnActions", { name: R.label }),
|
|
1100
1101
|
"aria-live": "polite",
|
|
1101
1102
|
role: "region",
|
|
1102
|
-
class:
|
|
1103
|
+
class: ae(["b-data-grid-columns__column-header-and-actions", F(R)])
|
|
1103
1104
|
}, [
|
|
1104
1105
|
B(n(xe), {
|
|
1105
1106
|
el: "div",
|
|
1106
1107
|
strongest: "",
|
|
1107
|
-
class:
|
|
1108
|
+
class: ae(["b-data-grid-columns__column-header", n(Re)])
|
|
1108
1109
|
}, {
|
|
1109
|
-
default:
|
|
1110
|
+
default: W(() => [
|
|
1110
1111
|
ye(s.$slots, `head-${R.field}`, { column: R }, () => [
|
|
1111
|
-
C("span",
|
|
1112
|
+
C("span", Ws, G(R.label), 1)
|
|
1112
1113
|
], !0)
|
|
1113
1114
|
]),
|
|
1114
1115
|
_: 2
|
|
1115
1116
|
}, 1032, ["class"]),
|
|
1116
|
-
|
|
1117
|
+
Y(R) ? (r(), b("div", {
|
|
1117
1118
|
key: 0,
|
|
1118
|
-
class:
|
|
1119
|
+
class: ae(["b-data-grid-columns__column-actions", fe(R)])
|
|
1119
1120
|
}, [
|
|
1120
|
-
R.infoIconTooltip ? (r(), b("div",
|
|
1121
|
+
R.infoIconTooltip ? (r(), b("div", Gs, [
|
|
1121
1122
|
B(n(tl), {
|
|
1122
1123
|
"tooltip-text": R.infoIconTooltip
|
|
1123
1124
|
}, null, 8, ["tooltip-text"])
|
|
@@ -1127,16 +1128,16 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1127
1128
|
condensed: "",
|
|
1128
1129
|
toggled: n(N)(R.field),
|
|
1129
1130
|
variant: "tertiary",
|
|
1130
|
-
onClick: (
|
|
1131
|
+
onClick: (K) => n(_)(R.field)
|
|
1131
1132
|
}, {
|
|
1132
|
-
iconLeft:
|
|
1133
|
-
n(
|
|
1133
|
+
iconLeft: W(() => [
|
|
1134
|
+
n(k)(R.field) ? n(k)(R.field) === n(pe).ASCENDING ? (r(), P(n(fs), {
|
|
1134
1135
|
key: 1,
|
|
1135
1136
|
"svg-title": n(o)("sortColumnInDescendingOrder", { name: R.label })
|
|
1136
|
-
}, null, 8, ["svg-title"])) : n(
|
|
1137
|
+
}, null, 8, ["svg-title"])) : n(k)(R.field) === n(pe).DESCENDING ? (r(), P(n(Is), {
|
|
1137
1138
|
key: 2,
|
|
1138
1139
|
"svg-title": n(o)("sortColumnInAscendingOrder", { name: R.label })
|
|
1139
|
-
}, null, 8, ["svg-title"])) : U("", !0) : (r(),
|
|
1140
|
+
}, null, 8, ["svg-title"])) : U("", !0) : (r(), P(n(Ml), {
|
|
1140
1141
|
key: 0,
|
|
1141
1142
|
"svg-title": n(o)("sortColumn", { name: R.label })
|
|
1142
1143
|
}, null, 8, ["svg-title"]))
|
|
@@ -1144,35 +1145,35 @@ const ks = /* @__PURE__ */ x(Ms, [["render", Ps]]), xt = {
|
|
|
1144
1145
|
_: 2
|
|
1145
1146
|
}, 1032, ["toggled", "onClick"])
|
|
1146
1147
|
])) : U("", !0),
|
|
1147
|
-
e.hasColumnPanel && O.value === R.field ? (r(),
|
|
1148
|
+
e.hasColumnPanel && O.value === R.field ? (r(), P(n(Je), {
|
|
1148
1149
|
key: 2,
|
|
1149
1150
|
ref_for: !0,
|
|
1150
|
-
ref: (
|
|
1151
|
+
ref: (K) => I.value[R.field] = K,
|
|
1151
1152
|
class: "b-data-grid-columns__menu",
|
|
1152
|
-
data: n(
|
|
1153
|
-
"menu-position":
|
|
1153
|
+
data: n(h)(R),
|
|
1154
|
+
"menu-position": ee(e.hasFirstColumnPanelRightAligned, se),
|
|
1154
1155
|
"menu-fixed-positioning": !0,
|
|
1155
1156
|
button: { variant: "tertiary", condensed: !0 },
|
|
1156
|
-
onOpen:
|
|
1157
|
-
onClose:
|
|
1157
|
+
onOpen: D[0] || (D[0] = (K) => s.$emit(n(x).COLUMN_MENU_OPEN)),
|
|
1158
|
+
onClose: D[1] || (D[1] = (K) => s.$emit(n(x).COLUMN_MENU_CLOSE))
|
|
1158
1159
|
}, null, 8, ["data", "menu-position"])) : U("", !0)
|
|
1159
1160
|
], 2)) : U("", !0)
|
|
1160
1161
|
], 10, zs),
|
|
1161
1162
|
C("div", {
|
|
1162
1163
|
"data-testid": `data-grid-column-${R.field}`,
|
|
1163
|
-
class:
|
|
1164
|
+
class: ae(["b-data-grid-columns__column-separator-container", qe(R)]),
|
|
1164
1165
|
role: "presentation",
|
|
1165
|
-
onMousedown: (
|
|
1166
|
-
onClick:
|
|
1166
|
+
onMousedown: (K) => n(E)(e.hasResizableColumns, R.field, K),
|
|
1167
|
+
onClick: D[2] || (D[2] = Tn(() => {
|
|
1167
1168
|
}, ["stop"]))
|
|
1168
1169
|
}, [
|
|
1169
|
-
!e.isFrozenColumns || e.isFrozenColumns &&
|
|
1170
|
+
!e.isFrozenColumns || e.isFrozenColumns && se !== n(f).length - 1 ? (r(), b("div", Bs)) : U("", !0)
|
|
1170
1171
|
], 42, Vs)
|
|
1171
1172
|
], 64))
|
|
1172
1173
|
], 16, Fs))), 128))
|
|
1173
1174
|
], 2));
|
|
1174
1175
|
}
|
|
1175
|
-
}), qs = /* @__PURE__ */
|
|
1176
|
+
}), qs = /* @__PURE__ */ j(js, [["__scopeId", "data-v-85b904ac"]]);
|
|
1176
1177
|
var Ce = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(Ce || {});
|
|
1177
1178
|
let Rt = 0;
|
|
1178
1179
|
const Ys = {
|
|
@@ -1190,14 +1191,14 @@ const Ys = {
|
|
|
1190
1191
|
no
|
|
1191
1192
|
];
|
|
1192
1193
|
function so(e, u, a, t, g, o) {
|
|
1193
|
-
return r(), b("svg",
|
|
1194
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
1194
1195
|
class: "ui-assets-icons-16",
|
|
1195
1196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1196
1197
|
width: "16",
|
|
1197
1198
|
height: "16",
|
|
1198
1199
|
fill: "none"
|
|
1199
1200
|
}), [
|
|
1200
|
-
e.$attrs["svg-title"] ? (r(), b("title", Xs,
|
|
1201
|
+
e.$attrs["svg-title"] ? (r(), b("title", Xs, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
1201
1202
|
C("g", {
|
|
1202
1203
|
fill: "#00112C",
|
|
1203
1204
|
"clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")"
|
|
@@ -1209,7 +1210,7 @@ function so(e, u, a, t, g, o) {
|
|
|
1209
1210
|
])
|
|
1210
1211
|
], 16);
|
|
1211
1212
|
}
|
|
1212
|
-
const oo = /* @__PURE__ */
|
|
1213
|
+
const oo = /* @__PURE__ */ j(Ys, [["render", so]]), At = {
|
|
1213
1214
|
"en-US": {
|
|
1214
1215
|
toggleColumnVisibility: "Toggle {label} column visibility",
|
|
1215
1216
|
toggleColumnFreeze: "Toggle {label} column freeze"
|
|
@@ -1273,7 +1274,7 @@ const oo = /* @__PURE__ */ x(Ys, [["render", so]]), At = {
|
|
|
1273
1274
|
}
|
|
1274
1275
|
});
|
|
1275
1276
|
function ao(e, u, a, t, g, o) {
|
|
1276
|
-
const f =
|
|
1277
|
+
const f = ie("bento-toggle"), p = ie("bento-freeze-icon");
|
|
1277
1278
|
return r(), b("div", {
|
|
1278
1279
|
class: "b-data-grid-config-settings-column-row",
|
|
1279
1280
|
onMouseover: u[0] || (u[0] = (...v) => e.showFreezeIcon && e.showFreezeIcon(...v)),
|
|
@@ -1286,21 +1287,21 @@ function ao(e, u, a, t, g, o) {
|
|
|
1286
1287
|
value: e.isColumnVisible,
|
|
1287
1288
|
onInput: e.toggleColumnVisibility
|
|
1288
1289
|
}, {
|
|
1289
|
-
default:
|
|
1290
|
-
Q(
|
|
1290
|
+
default: W(() => [
|
|
1291
|
+
Q(G(e.column.label), 1)
|
|
1291
1292
|
]),
|
|
1292
1293
|
_: 1
|
|
1293
1294
|
}, 8, ["aria-label", "disabled", "value", "onInput"]),
|
|
1294
1295
|
lt(B(p, {
|
|
1295
1296
|
"aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
|
|
1296
|
-
class:
|
|
1297
|
+
class: ae(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
|
|
1297
1298
|
onClick: e.toggleColumnFreeze
|
|
1298
1299
|
}, null, 8, ["aria-label", "class", "onClick"]), [
|
|
1299
1300
|
[wn, e.isColumnFrozen || e.isFreezeIconOptionShown]
|
|
1300
1301
|
])
|
|
1301
1302
|
], 32);
|
|
1302
1303
|
}
|
|
1303
|
-
const ro = /* @__PURE__ */
|
|
1304
|
+
const ro = /* @__PURE__ */ j(io, [["render", ao], ["__scopeId", "data-v-bb87a729"]]), Tt = {
|
|
1304
1305
|
"en-US": {
|
|
1305
1306
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1306
1307
|
configSettingsPanel: "Configuration settings Panel",
|
|
@@ -1320,8 +1321,8 @@ const ro = /* @__PURE__ */ x(io, [["render", ao], ["__scopeId", "data-v-bb87a729
|
|
|
1320
1321
|
i18n: { messages: Tt },
|
|
1321
1322
|
name: "bento-data-grid",
|
|
1322
1323
|
components: {
|
|
1323
|
-
BentoButton:
|
|
1324
|
-
BentoCrossIcon:
|
|
1324
|
+
BentoButton: Gt,
|
|
1325
|
+
BentoCrossIcon: Pt,
|
|
1325
1326
|
BentoPopover: Yn,
|
|
1326
1327
|
BentoSettingsIcon: oo,
|
|
1327
1328
|
BentoToggleButton: Vt,
|
|
@@ -1350,40 +1351,40 @@ const ro = /* @__PURE__ */ x(io, [["render", ao], ["__scopeId", "data-v-bb87a729
|
|
|
1350
1351
|
},
|
|
1351
1352
|
emits: [Ce.CONFIG_SETTINGS, Ce.UPDATE_COLUMNS],
|
|
1352
1353
|
setup(e, { emit: u }) {
|
|
1353
|
-
const { t: a } = Ee({ messages: Tt }), t = $(null), g = Qn("data-grid-config-settings-popover"), o = $(null), f = $(!1), p = $(!0), v = $(null), I = $(""), O =
|
|
1354
|
+
const { t: a } = Ee({ messages: Tt }), t = $(null), g = Qn("data-grid-config-settings-popover"), o = $(null), f = $(!1), p = $(!0), v = $(null), I = $(""), O = Dt(e, "columns"), c = $(!1), d = Kn(I, O), i = () => {
|
|
1354
1355
|
I.value = "";
|
|
1355
1356
|
}, l = w(
|
|
1356
|
-
() => !e.columns.some((
|
|
1357
|
+
() => !e.columns.some((h) => h.visible === !1 && !h.mandatory)
|
|
1357
1358
|
), E = () => {
|
|
1358
|
-
i(), c.value = !c.value, c.value ?
|
|
1359
|
-
var
|
|
1360
|
-
return (
|
|
1361
|
-
}) :
|
|
1362
|
-
var
|
|
1363
|
-
return (M = (
|
|
1359
|
+
i(), c.value = !c.value, c.value ? re(() => {
|
|
1360
|
+
var h;
|
|
1361
|
+
return (h = o.value.$refs.bentoInputField) == null ? void 0 : h.focusInput();
|
|
1362
|
+
}) : re(() => {
|
|
1363
|
+
var h, M;
|
|
1364
|
+
return (M = (h = v == null ? void 0 : v.value) == null ? void 0 : h.$el) == null ? void 0 : M.focus();
|
|
1364
1365
|
}), p.value = l.value;
|
|
1365
|
-
}, L = (
|
|
1366
|
+
}, L = (h) => h.mandatory ?? !1, y = (h) => {
|
|
1366
1367
|
const M = e.columns.map((V) => ({
|
|
1367
1368
|
...V,
|
|
1368
|
-
visible:
|
|
1369
|
+
visible: h.field === V.field ? h.visible : V.visible
|
|
1369
1370
|
}));
|
|
1370
1371
|
u(Ce.UPDATE_COLUMNS, M);
|
|
1371
|
-
}, N = (
|
|
1372
|
-
|
|
1372
|
+
}, N = (h) => {
|
|
1373
|
+
h ? u(
|
|
1373
1374
|
Ce.UPDATE_COLUMNS,
|
|
1374
1375
|
e.columns.map((M) => ({ ...M, visible: !0 }))
|
|
1375
1376
|
) : u(
|
|
1376
1377
|
Ce.UPDATE_COLUMNS,
|
|
1377
1378
|
e.columns.map((M) => ({ ...M, visible: (M == null ? void 0 : M.mandatory) === !0 }))
|
|
1378
1379
|
);
|
|
1379
|
-
},
|
|
1380
|
+
}, k = (h) => {
|
|
1380
1381
|
const M = e.columns.map((V) => ({
|
|
1381
1382
|
...V,
|
|
1382
|
-
frozen:
|
|
1383
|
+
frozen: h.field === V.field ? !!(h != null && h.frozen) : !!(V != null && V.frozen)
|
|
1383
1384
|
}));
|
|
1384
1385
|
u(Ce.UPDATE_COLUMNS, M);
|
|
1385
|
-
},
|
|
1386
|
-
f.value =
|
|
1386
|
+
}, _ = (h) => {
|
|
1387
|
+
f.value = h, p.value = l.value;
|
|
1387
1388
|
};
|
|
1388
1389
|
return {
|
|
1389
1390
|
// Values
|
|
@@ -1398,14 +1399,14 @@ const ro = /* @__PURE__ */ x(io, [["render", ao], ["__scopeId", "data-v-bb87a729
|
|
|
1398
1399
|
searchButtonRef: v,
|
|
1399
1400
|
DATAGRID_SELECT_FIELD_NAME: be,
|
|
1400
1401
|
// Methods
|
|
1401
|
-
setConfigSettingsPanelVisibility:
|
|
1402
|
-
emitCondensedToggle: (
|
|
1402
|
+
setConfigSettingsPanelVisibility: _,
|
|
1403
|
+
emitCondensedToggle: (h) => u(Ce.CONFIG_SETTINGS, h),
|
|
1403
1404
|
toggleAllColumnVisibility: N,
|
|
1404
1405
|
clearAction: i,
|
|
1405
1406
|
toggleColumnFilter: E,
|
|
1406
1407
|
emitVisibleColumns: y,
|
|
1407
|
-
emitFrozenColumns:
|
|
1408
|
-
onClickOutside: () =>
|
|
1408
|
+
emitFrozenColumns: k,
|
|
1409
|
+
onClickOutside: () => _(!1),
|
|
1409
1410
|
isColumnVisibilityToggleDisabled: L,
|
|
1410
1411
|
// Translations
|
|
1411
1412
|
t: a
|
|
@@ -1414,7 +1415,7 @@ const ro = /* @__PURE__ */ x(io, [["render", ao], ["__scopeId", "data-v-bb87a729
|
|
|
1414
1415
|
}), uo = { class: "b-data-grid-config-settings" }, go = { class: "b-data-grid-config-settings__button-and-separator" }, fo = {
|
|
1415
1416
|
ref: "configSettingsButtonRef",
|
|
1416
1417
|
class: "b-data-grid-config-settings__button-container"
|
|
1417
|
-
}, vo = { class: "b-data-grid-config-settings__panel-header" }, mo = { class: "b-data-grid-config-settings__condensed-view-settings" },
|
|
1418
|
+
}, vo = { class: "b-data-grid-config-settings__panel-header" }, mo = { class: "b-data-grid-config-settings__condensed-view-settings" }, ho = { class: "b-data-grid-config-settings__column-visibility-settings" }, _o = { class: "b-data-grid-config-settings__column-visibility-header" }, Co = {
|
|
1418
1419
|
key: 0,
|
|
1419
1420
|
class: "b-data-grid-config-settings__column-visibility-search"
|
|
1420
1421
|
}, po = {
|
|
@@ -1422,7 +1423,7 @@ const ro = /* @__PURE__ */ x(io, [["render", ao], ["__scopeId", "data-v-bb87a729
|
|
|
1422
1423
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1423
1424
|
}, Lo = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1424
1425
|
function So(e, u, a, t, g, o) {
|
|
1425
|
-
const f =
|
|
1426
|
+
const f = ie("bento-settings-icon"), p = ie("bento-toggle-button"), v = ie("bento-typography"), I = ie("bento-cross-icon"), O = ie("bento-button"), c = ie("bento-toggle"), d = ie("bento-search-icon"), i = ie("bento-search-bar"), l = ie("bento-data-grid-config-settings-config-row"), E = ie("bento-popover"), L = Nn("bento-click-outside-directive");
|
|
1426
1427
|
return lt((r(), b("div", uo, [
|
|
1427
1428
|
C("div", go, [
|
|
1428
1429
|
C("div", fo, [
|
|
@@ -1433,7 +1434,7 @@ function So(e, u, a, t, g, o) {
|
|
|
1433
1434
|
toggled: e.isConfigSettingsPanelOpen,
|
|
1434
1435
|
onClick: u[0] || (u[0] = (y) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
|
|
1435
1436
|
}, {
|
|
1436
|
-
iconLeft:
|
|
1437
|
+
iconLeft: W(() => [
|
|
1437
1438
|
B(f, {
|
|
1438
1439
|
"svg-title": e.t("toggleConfigSettingsPanelVisibility")
|
|
1439
1440
|
}, null, 8, ["svg-title"])
|
|
@@ -1442,7 +1443,7 @@ function So(e, u, a, t, g, o) {
|
|
|
1442
1443
|
}, 8, ["aria-controls", "toggled"])
|
|
1443
1444
|
], 512)
|
|
1444
1445
|
]),
|
|
1445
|
-
e.configSettingsButtonRef ? (r(),
|
|
1446
|
+
e.configSettingsButtonRef ? (r(), P(E, {
|
|
1446
1447
|
key: 0,
|
|
1447
1448
|
id: e.popoverId,
|
|
1448
1449
|
open: e.isConfigSettingsPanelOpen,
|
|
@@ -1451,14 +1452,14 @@ function So(e, u, a, t, g, o) {
|
|
|
1451
1452
|
"target-element": e.configSettingsButtonRef,
|
|
1452
1453
|
position: "bottom-end"
|
|
1453
1454
|
}, {
|
|
1454
|
-
default:
|
|
1455
|
+
default: W(() => [
|
|
1455
1456
|
C("div", vo, [
|
|
1456
1457
|
B(v, {
|
|
1457
1458
|
el: "span",
|
|
1458
1459
|
strongest: ""
|
|
1459
1460
|
}, {
|
|
1460
|
-
default:
|
|
1461
|
-
Q(
|
|
1461
|
+
default: W(() => [
|
|
1462
|
+
Q(G(e.t("displayOptions")), 1)
|
|
1462
1463
|
]),
|
|
1463
1464
|
_: 1
|
|
1464
1465
|
}),
|
|
@@ -1466,7 +1467,7 @@ function So(e, u, a, t, g, o) {
|
|
|
1466
1467
|
variant: "tertiary",
|
|
1467
1468
|
onClick: u[1] || (u[1] = (y) => e.setConfigSettingsPanelVisibility(!1))
|
|
1468
1469
|
}, {
|
|
1469
|
-
iconLeft:
|
|
1470
|
+
iconLeft: W(() => [
|
|
1470
1471
|
B(I, {
|
|
1471
1472
|
"svg-title": e.t("closeConfigSettingsPanel")
|
|
1472
1473
|
}, null, 8, ["svg-title"])
|
|
@@ -1480,8 +1481,8 @@ function So(e, u, a, t, g, o) {
|
|
|
1480
1481
|
el: "span",
|
|
1481
1482
|
stronger: ""
|
|
1482
1483
|
}, {
|
|
1483
|
-
default:
|
|
1484
|
-
Q(
|
|
1484
|
+
default: W(() => [
|
|
1485
|
+
Q(G(e.t("size")), 1)
|
|
1485
1486
|
]),
|
|
1486
1487
|
_: 1
|
|
1487
1488
|
}),
|
|
@@ -1491,47 +1492,47 @@ function So(e, u, a, t, g, o) {
|
|
|
1491
1492
|
value: e.condensed,
|
|
1492
1493
|
onInput: e.emitCondensedToggle
|
|
1493
1494
|
}, {
|
|
1494
|
-
default:
|
|
1495
|
-
Q(
|
|
1495
|
+
default: W(() => [
|
|
1496
|
+
Q(G(e.t("condensed")), 1)
|
|
1496
1497
|
]),
|
|
1497
1498
|
_: 1
|
|
1498
1499
|
}, 8, ["aria-label", "value", "onInput"])
|
|
1499
1500
|
]),
|
|
1500
|
-
C("div",
|
|
1501
|
-
C("div",
|
|
1501
|
+
C("div", ho, [
|
|
1502
|
+
C("div", _o, [
|
|
1502
1503
|
B(v, {
|
|
1503
1504
|
class: "b-data-grid-config-settings__column-visibility-title",
|
|
1504
1505
|
el: "span",
|
|
1505
1506
|
stronger: ""
|
|
1506
1507
|
}, {
|
|
1507
|
-
default:
|
|
1508
|
-
Q(
|
|
1508
|
+
default: W(() => [
|
|
1509
|
+
Q(G(e.t("columns")), 1)
|
|
1509
1510
|
]),
|
|
1510
1511
|
_: 1
|
|
1511
1512
|
}),
|
|
1512
|
-
e.isColumnVisibilityFilterShown ? (r(),
|
|
1513
|
+
e.isColumnVisibilityFilterShown ? (r(), P(O, {
|
|
1513
1514
|
key: 1,
|
|
1514
1515
|
variant: "tertiary",
|
|
1515
1516
|
onClick: e.toggleColumnFilter
|
|
1516
1517
|
}, {
|
|
1517
|
-
iconLeft:
|
|
1518
|
+
iconLeft: W(() => [
|
|
1518
1519
|
B(I)
|
|
1519
1520
|
]),
|
|
1520
|
-
default:
|
|
1521
|
-
Q(" " +
|
|
1521
|
+
default: W(() => [
|
|
1522
|
+
Q(" " + G(e.t("closeSearch")), 1)
|
|
1522
1523
|
]),
|
|
1523
1524
|
_: 1
|
|
1524
|
-
}, 8, ["onClick"])) : (r(),
|
|
1525
|
+
}, 8, ["onClick"])) : (r(), P(O, {
|
|
1525
1526
|
key: 0,
|
|
1526
1527
|
ref: "searchButtonRef",
|
|
1527
1528
|
variant: "tertiary",
|
|
1528
1529
|
onClick: e.toggleColumnFilter
|
|
1529
1530
|
}, {
|
|
1530
|
-
iconLeft:
|
|
1531
|
+
iconLeft: W(() => [
|
|
1531
1532
|
B(d)
|
|
1532
1533
|
]),
|
|
1533
|
-
default:
|
|
1534
|
-
Q(
|
|
1534
|
+
default: W(() => [
|
|
1535
|
+
Q(G(e.t("search")), 1)
|
|
1535
1536
|
]),
|
|
1536
1537
|
_: 1
|
|
1537
1538
|
}, 8, ["onClick"]))
|
|
@@ -1551,17 +1552,17 @@ function So(e, u, a, t, g, o) {
|
|
|
1551
1552
|
value: e.allColumnsVisbilityToggleState,
|
|
1552
1553
|
onInput: e.toggleAllColumnVisibility
|
|
1553
1554
|
}, {
|
|
1554
|
-
default:
|
|
1555
|
-
Q(
|
|
1555
|
+
default: W(() => [
|
|
1556
|
+
Q(G(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
|
|
1556
1557
|
]),
|
|
1557
1558
|
_: 1
|
|
1558
1559
|
}, 8, ["value", "onInput"])
|
|
1559
1560
|
])),
|
|
1560
1561
|
C("div", Lo, [
|
|
1561
|
-
(r(!0), b(
|
|
1562
|
+
(r(!0), b(ce, null, ve(e.filteredColumnVisibilityColumns, (y) => (r(), b("div", {
|
|
1562
1563
|
key: y.field
|
|
1563
1564
|
}, [
|
|
1564
|
-
y.field !== e.DATAGRID_SELECT_FIELD_NAME ? (r(),
|
|
1565
|
+
y.field !== e.DATAGRID_SELECT_FIELD_NAME ? (r(), P(l, {
|
|
1565
1566
|
key: 0,
|
|
1566
1567
|
column: y,
|
|
1567
1568
|
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(y),
|
|
@@ -1569,13 +1570,13 @@ function So(e, u, a, t, g, o) {
|
|
|
1569
1570
|
onUpdatedColumn: e.emitFrozenColumns
|
|
1570
1571
|
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : U("", !0)
|
|
1571
1572
|
]))), 128)),
|
|
1572
|
-
e.filteredColumnVisibilityColumns.length === 0 ? (r(),
|
|
1573
|
+
e.filteredColumnVisibilityColumns.length === 0 ? (r(), P(v, {
|
|
1573
1574
|
key: 0,
|
|
1574
1575
|
el: "span",
|
|
1575
1576
|
class: "b-data-grid-config-settings__column-visibility-empty-search-message"
|
|
1576
1577
|
}, {
|
|
1577
|
-
default:
|
|
1578
|
-
Q(
|
|
1578
|
+
default: W(() => [
|
|
1579
|
+
Q(G(e.t("noColumnsMatch")), 1)
|
|
1579
1580
|
]),
|
|
1580
1581
|
_: 1
|
|
1581
1582
|
})) : U("", !0)
|
|
@@ -1588,7 +1589,7 @@ function So(e, u, a, t, g, o) {
|
|
|
1588
1589
|
[L, e.onClickOutside]
|
|
1589
1590
|
]);
|
|
1590
1591
|
}
|
|
1591
|
-
const bo = /* @__PURE__ */
|
|
1592
|
+
const bo = /* @__PURE__ */ j(co, [["render", So], ["__scopeId", "data-v-e2bc2576"]]), je = {
|
|
1592
1593
|
"en-US": {
|
|
1593
1594
|
gettingYourData: "Getting your data",
|
|
1594
1595
|
loading: "Loading",
|
|
@@ -1610,31 +1611,31 @@ const bo = /* @__PURE__ */ x(co, [["render", So], ["__scopeId", "data-v-e2bc2576
|
|
|
1610
1611
|
setup(e) {
|
|
1611
1612
|
const { t: u } = Ee({ messages: je });
|
|
1612
1613
|
return (a, t) => (r(), b("div", Eo, [
|
|
1613
|
-
e.loading && e.isInfiniteScroll ? (r(),
|
|
1614
|
-
e.loading && !e.isInfiniteScroll ? (r(),
|
|
1614
|
+
e.loading && e.isInfiniteScroll ? (r(), P(n(Ft), { key: 0 })) : U("", !0),
|
|
1615
|
+
e.loading && !e.isInfiniteScroll ? (r(), P(n(mt), {
|
|
1615
1616
|
key: 1,
|
|
1616
1617
|
variant: "secondary",
|
|
1617
|
-
state: n(
|
|
1618
|
+
state: n(ht).LOADING
|
|
1618
1619
|
}, {
|
|
1619
|
-
default:
|
|
1620
|
-
Q(
|
|
1620
|
+
default: W(() => [
|
|
1621
|
+
Q(G(n(u)("loading")), 1)
|
|
1621
1622
|
]),
|
|
1622
1623
|
_: 1
|
|
1623
1624
|
}, 8, ["state"])) : U("", !0),
|
|
1624
|
-
!e.loading && !e.isInfiniteScroll ? (r(),
|
|
1625
|
+
!e.loading && !e.isInfiniteScroll ? (r(), P(n(mt), {
|
|
1625
1626
|
key: 2,
|
|
1626
|
-
state: n(
|
|
1627
|
+
state: n(ht).START,
|
|
1627
1628
|
variant: "secondary",
|
|
1628
1629
|
onClick: t[0] || (t[0] = (g) => a.$emit(n(T).UPDATE_SHOW_MORE))
|
|
1629
1630
|
}, {
|
|
1630
|
-
default:
|
|
1631
|
-
Q(
|
|
1631
|
+
default: W(() => [
|
|
1632
|
+
Q(G(n(u)("showMore")), 1)
|
|
1632
1633
|
]),
|
|
1633
1634
|
_: 1
|
|
1634
1635
|
}, 8, ["state"])) : U("", !0)
|
|
1635
1636
|
]));
|
|
1636
1637
|
}
|
|
1637
|
-
}), Io = /* @__PURE__ */
|
|
1638
|
+
}), Io = /* @__PURE__ */ j(Oo, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1638
1639
|
let wt = 0;
|
|
1639
1640
|
const $o = {
|
|
1640
1641
|
beforeCreate() {
|
|
@@ -1645,18 +1646,18 @@ const $o = {
|
|
|
1645
1646
|
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"
|
|
1646
1647
|
}, null, -1);
|
|
1647
1648
|
function To(e, u, a, t, g, o) {
|
|
1648
|
-
return r(), b("svg",
|
|
1649
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
1649
1650
|
class: "ui-assets-icons-16",
|
|
1650
1651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1651
1652
|
width: "16",
|
|
1652
1653
|
height: "16",
|
|
1653
1654
|
fill: "none"
|
|
1654
1655
|
}), [
|
|
1655
|
-
e.$attrs["svg-title"] ? (r(), b("title", Ro,
|
|
1656
|
+
e.$attrs["svg-title"] ? (r(), b("title", Ro, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
1656
1657
|
Ao
|
|
1657
1658
|
], 16);
|
|
1658
1659
|
}
|
|
1659
|
-
const wo = /* @__PURE__ */
|
|
1660
|
+
const wo = /* @__PURE__ */ j($o, [["render", To]]);
|
|
1660
1661
|
let Nt = 0;
|
|
1661
1662
|
const No = {
|
|
1662
1663
|
beforeCreate() {
|
|
@@ -1666,33 +1667,33 @@ const No = {
|
|
|
1666
1667
|
fill: "#00112C",
|
|
1667
1668
|
d: "M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z"
|
|
1668
1669
|
}, null, -1);
|
|
1669
|
-
function
|
|
1670
|
-
return r(), b("svg",
|
|
1670
|
+
function ko(e, u, a, t, g, o) {
|
|
1671
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
1671
1672
|
class: "ui-assets-icons-16",
|
|
1672
1673
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1673
1674
|
width: "16",
|
|
1674
1675
|
height: "16",
|
|
1675
1676
|
fill: "none"
|
|
1676
1677
|
}), [
|
|
1677
|
-
e.$attrs["svg-title"] ? (r(), b("title", Mo,
|
|
1678
|
+
e.$attrs["svg-title"] ? (r(), b("title", Mo, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
1678
1679
|
Uo
|
|
1679
1680
|
], 16);
|
|
1680
1681
|
}
|
|
1681
|
-
const Mt = /* @__PURE__ */
|
|
1682
|
+
const Mt = /* @__PURE__ */ j(No, [["render", ko]]), jt = {
|
|
1682
1683
|
"en-US": {
|
|
1683
1684
|
copy: "Copy",
|
|
1684
1685
|
edit: "Edit",
|
|
1685
1686
|
open: "Open",
|
|
1686
1687
|
more: "More"
|
|
1687
1688
|
}
|
|
1688
|
-
},
|
|
1689
|
+
}, Do = (e) => (Un("data-v-da2fa02e"), e = e(), kn(), e), Po = { class: "b-data-grid-cell-actions" }, Fo = /* @__PURE__ */ Do(() => /* @__PURE__ */ C("div", { class: "b-data-grid-cell-actions__background-gradient" }, null, -1)), zo = {
|
|
1689
1690
|
class: "b-data-grid-cell-actions__actions",
|
|
1690
1691
|
role: "group"
|
|
1691
|
-
},
|
|
1692
|
+
}, Wo = {
|
|
1692
1693
|
i18n: { messages: jt },
|
|
1693
1694
|
name: "data-grid-cell-actions"
|
|
1694
|
-
},
|
|
1695
|
-
...
|
|
1695
|
+
}, Go = /* @__PURE__ */ Le({
|
|
1696
|
+
...Wo,
|
|
1696
1697
|
props: {
|
|
1697
1698
|
/**
|
|
1698
1699
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1752,19 +1753,19 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1752
1753
|
var i, l;
|
|
1753
1754
|
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(a.rowDataItem, a.columnKey) : (l = (i = a.rowDataItem) == null ? void 0 : i[a.columnKey]) == null ? void 0 : l.toString();
|
|
1754
1755
|
}, O = (d) => d.iconRight || ((d == null ? void 0 : d.variant) === "more" || (d == null ? void 0 : d.variant) === "open") && !d.isShort, c = (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more";
|
|
1755
|
-
return (d, i) => (r(),
|
|
1756
|
+
return (d, i) => (r(), P(Mn, {
|
|
1756
1757
|
name: "b-data-grid-cell-actions__animation",
|
|
1757
1758
|
appear: ""
|
|
1758
1759
|
}, {
|
|
1759
|
-
default:
|
|
1760
|
-
C("div",
|
|
1760
|
+
default: W(() => [
|
|
1761
|
+
C("div", Po, [
|
|
1761
1762
|
Fo,
|
|
1762
1763
|
C("div", zo, [
|
|
1763
|
-
(r(!0), b(
|
|
1764
|
+
(r(!0), b(ce, null, ve(n(g), (l, E) => (r(), b("div", {
|
|
1764
1765
|
key: E,
|
|
1765
1766
|
class: "b-data-grid-cell-actions__action"
|
|
1766
1767
|
}, [
|
|
1767
|
-
l.menuData ? (r(),
|
|
1768
|
+
l.menuData ? (r(), P(n(Je), {
|
|
1768
1769
|
key: 0,
|
|
1769
1770
|
data: v(l.menuData),
|
|
1770
1771
|
button: {
|
|
@@ -1777,11 +1778,11 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1777
1778
|
}, Be({ _: 2 }, [
|
|
1778
1779
|
c(l) ? {
|
|
1779
1780
|
name: "iconLeft",
|
|
1780
|
-
fn:
|
|
1781
|
-
(l == null ? void 0 : l.variant) === "more" ? (r(),
|
|
1781
|
+
fn: W(() => [
|
|
1782
|
+
(l == null ? void 0 : l.variant) === "more" ? (r(), P(n(nl), {
|
|
1782
1783
|
key: 0,
|
|
1783
1784
|
"svg-title": n(o)(l, !0)
|
|
1784
|
-
}, null, 8, ["svg-title"])) : (r(),
|
|
1785
|
+
}, null, 8, ["svg-title"])) : (r(), P($e(l.iconLeft), {
|
|
1785
1786
|
key: 1,
|
|
1786
1787
|
"svg-title": n(o)(l, !0)
|
|
1787
1788
|
}, null, 8, ["svg-title"]))
|
|
@@ -1790,25 +1791,25 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1790
1791
|
} : void 0,
|
|
1791
1792
|
l != null && l.isShort ? void 0 : {
|
|
1792
1793
|
name: "default",
|
|
1793
|
-
fn:
|
|
1794
|
-
Q(
|
|
1794
|
+
fn: W(() => [
|
|
1795
|
+
Q(G(n(o)(l)), 1)
|
|
1795
1796
|
]),
|
|
1796
1797
|
key: "1"
|
|
1797
1798
|
},
|
|
1798
1799
|
O(l) ? {
|
|
1799
1800
|
name: "iconRight",
|
|
1800
|
-
fn:
|
|
1801
|
-
(l == null ? void 0 : l.variant) === "open" ? (r(),
|
|
1801
|
+
fn: W(() => [
|
|
1802
|
+
(l == null ? void 0 : l.variant) === "open" ? (r(), P(n(Mt), {
|
|
1802
1803
|
key: 0,
|
|
1803
1804
|
"svg-title": n(o)(l, !0)
|
|
1804
|
-
}, null, 8, ["svg-title"])) : (r(),
|
|
1805
|
+
}, null, 8, ["svg-title"])) : (r(), P($e(l.iconRight), {
|
|
1805
1806
|
key: 1,
|
|
1806
1807
|
"svg-title": l.title
|
|
1807
1808
|
}, null, 8, ["svg-title"]))
|
|
1808
1809
|
]),
|
|
1809
1810
|
key: "2"
|
|
1810
1811
|
} : void 0
|
|
1811
|
-
]), 1032, ["data", "button"])) : l.variant === "copy" ? (r(),
|
|
1812
|
+
]), 1032, ["data", "button"])) : l.variant === "copy" ? (r(), P(n(ol), {
|
|
1812
1813
|
key: 1,
|
|
1813
1814
|
text: I(l),
|
|
1814
1815
|
"button-text": n(o)(l),
|
|
@@ -1816,7 +1817,7 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1816
1817
|
condensed: !0,
|
|
1817
1818
|
variant: "secondary"
|
|
1818
1819
|
}
|
|
1819
|
-
}, null, 8, ["text", "button-text"])) : (r(),
|
|
1820
|
+
}, null, 8, ["text", "button-text"])) : (r(), P(n(Gt), X({
|
|
1820
1821
|
key: 2,
|
|
1821
1822
|
condensed: "",
|
|
1822
1823
|
variant: "secondary",
|
|
@@ -1826,11 +1827,11 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1826
1827
|
}, Ze(f(l))), Be({ _: 2 }, [
|
|
1827
1828
|
l.iconLeft || l.variant === "edit" ? {
|
|
1828
1829
|
name: "iconLeft",
|
|
1829
|
-
fn:
|
|
1830
|
-
(l == null ? void 0 : l.variant) === "edit" ? (r(),
|
|
1830
|
+
fn: W(() => [
|
|
1831
|
+
(l == null ? void 0 : l.variant) === "edit" ? (r(), P(n(wo), {
|
|
1831
1832
|
key: 0,
|
|
1832
1833
|
"svg-title": n(o)(l, !0)
|
|
1833
|
-
}, null, 8, ["svg-title"])) : (r(),
|
|
1834
|
+
}, null, 8, ["svg-title"])) : (r(), P($e(l.iconLeft), {
|
|
1834
1835
|
key: 1,
|
|
1835
1836
|
"svg-title": l.title
|
|
1836
1837
|
}, null, 8, ["svg-title"]))
|
|
@@ -1839,18 +1840,18 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1839
1840
|
} : void 0,
|
|
1840
1841
|
l != null && l.isShort ? void 0 : {
|
|
1841
1842
|
name: "default",
|
|
1842
|
-
fn:
|
|
1843
|
-
Q(
|
|
1843
|
+
fn: W(() => [
|
|
1844
|
+
Q(G(n(o)(l)), 1)
|
|
1844
1845
|
]),
|
|
1845
1846
|
key: "1"
|
|
1846
1847
|
},
|
|
1847
1848
|
l.iconRight || l.variant === "open" ? {
|
|
1848
1849
|
name: "iconRight",
|
|
1849
|
-
fn:
|
|
1850
|
-
(l == null ? void 0 : l.variant) === "open" ? (r(),
|
|
1850
|
+
fn: W(() => [
|
|
1851
|
+
(l == null ? void 0 : l.variant) === "open" ? (r(), P(n(Mt), {
|
|
1851
1852
|
key: 0,
|
|
1852
1853
|
"svg-title": n(o)(l, !0)
|
|
1853
|
-
}, null, 8, ["svg-title"])) : (r(),
|
|
1854
|
+
}, null, 8, ["svg-title"])) : (r(), P($e(l.iconRight), {
|
|
1854
1855
|
key: 1,
|
|
1855
1856
|
"svg-title": l.title
|
|
1856
1857
|
}, null, 8, ["svg-title"]))
|
|
@@ -1865,8 +1866,8 @@ const Mt = /* @__PURE__ */ x(No, [["render", Do]]), jt = {
|
|
|
1865
1866
|
_: 1
|
|
1866
1867
|
}));
|
|
1867
1868
|
}
|
|
1868
|
-
}), Ho = /* @__PURE__ */
|
|
1869
|
-
var
|
|
1869
|
+
}), Ho = /* @__PURE__ */ j(Go, [["__scopeId", "data-v-da2fa02e"]]);
|
|
1870
|
+
var ne = /* @__PURE__ */ ((e) => (e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e))(ne || {});
|
|
1870
1871
|
const qt = {
|
|
1871
1872
|
"en-US": {
|
|
1872
1873
|
selectRow: "Select row"
|
|
@@ -1965,68 +1966,68 @@ const qt = {
|
|
|
1965
1966
|
},
|
|
1966
1967
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered"],
|
|
1967
1968
|
setup(e, { expose: u, emit: a }) {
|
|
1968
|
-
const t = e, { t: g } = Ee({ messages: qt }), o = $(null), f = $(null), p = $(!1), v = $([]), I = (
|
|
1969
|
+
const t = e, { t: g } = Ee({ messages: qt }), o = $(null), f = $(null), p = $(!1), v = $([]), I = (_, H) => (_ == null ? void 0 : _.overflow) === Qe.ELLIPSIS ? `${H}` : void 0, O = (_) => _ ?? "-", c = (_) => t.columnSets.slice(0, _).reduce((H, { columnSet: m }) => H + m.length, 0), d = (_, H) => _ + c(H), i = (_, H, m) => c() * _ + d(H, m), l = (_) => {
|
|
1969
1970
|
var H;
|
|
1970
|
-
(
|
|
1971
|
+
(_ === null || !o.value.contains(_) && !((H = v.value) != null && H.map((m) => m.value).some((m) => m === _ || (m == null ? void 0 : m.contains(_))))) && (p.value = !1);
|
|
1971
1972
|
}, E = () => {
|
|
1972
1973
|
p.value = !1;
|
|
1973
|
-
}, L = (
|
|
1974
|
+
}, L = (_) => {
|
|
1974
1975
|
const m = { ...{
|
|
1975
|
-
...t.draggingEventsForRowCell(
|
|
1976
|
+
...t.draggingEventsForRowCell(_)
|
|
1976
1977
|
} };
|
|
1977
|
-
return
|
|
1978
|
+
return _.frozen && (m.keyup = (h) => a("on-frozen-columns-key-press", h), m.keydown = (h) => a("on-frozen-columns-key-press", h)), _.cellActions && (m.mouseenter = () => {
|
|
1978
1979
|
p.value = !0;
|
|
1979
|
-
}, m.mouseleave = (
|
|
1980
|
-
p.value = !1, l(
|
|
1981
|
-
}, m.mouseleave = (
|
|
1982
|
-
l(
|
|
1983
|
-
}, m.focus = (
|
|
1980
|
+
}, m.mouseleave = (h) => {
|
|
1981
|
+
p.value = !1, l(h == null ? void 0 : h.relatedTarget);
|
|
1982
|
+
}, m.mouseleave = (h) => {
|
|
1983
|
+
l(h == null ? void 0 : h.relatedTarget);
|
|
1984
|
+
}, m.focus = (h) => {
|
|
1984
1985
|
p.value = !0;
|
|
1985
|
-
}, m.focusout = (
|
|
1986
|
-
l(
|
|
1986
|
+
}, m.focusout = (h) => {
|
|
1987
|
+
l(h == null ? void 0 : h.relatedTarget);
|
|
1987
1988
|
}), m;
|
|
1988
1989
|
};
|
|
1989
|
-
|
|
1990
|
+
ue(
|
|
1990
1991
|
() => p.value,
|
|
1991
1992
|
() => {
|
|
1992
1993
|
p.value === !0 ? a("cell-hovered", t.rowIndex) : a("cell-hovered", -1);
|
|
1993
1994
|
}
|
|
1994
|
-
),
|
|
1995
|
-
registerMenuContainerElement: (
|
|
1996
|
-
v.value.push(
|
|
1995
|
+
), Dn(ll, {
|
|
1996
|
+
registerMenuContainerElement: (_) => {
|
|
1997
|
+
v.value.push(_);
|
|
1997
1998
|
},
|
|
1998
|
-
menuMouseLeave: (
|
|
1999
|
-
o.value.contains(
|
|
1999
|
+
menuMouseLeave: (_) => {
|
|
2000
|
+
o.value.contains(_ == null ? void 0 : _.relatedTarget) || (p.value = !1);
|
|
2000
2001
|
}
|
|
2001
2002
|
});
|
|
2002
|
-
const
|
|
2003
|
-
var H, m,
|
|
2003
|
+
const k = (_) => {
|
|
2004
|
+
var H, m, h, M, V, q, Y;
|
|
2004
2005
|
return {
|
|
2005
|
-
[`b-data-grid-cell--${
|
|
2006
|
-
[`b-data-grid-cell--${
|
|
2007
|
-
[`b-data-grid-cell--${
|
|
2008
|
-
[`b-data-grid-cell--${
|
|
2009
|
-
[`b-data-grid-cell--${
|
|
2010
|
-
[`b-data-grid-cell--${
|
|
2011
|
-
[`b-data-grid-cell--${
|
|
2012
|
-
[`b-data-grid-cell--${
|
|
2013
|
-
[`b-data-grid-cell--${
|
|
2014
|
-
[`b-data-grid-cell--${
|
|
2015
|
-
[`b-data-grid-cell--${
|
|
2016
|
-
[`b-data-grid-cell--${
|
|
2006
|
+
[`b-data-grid-cell--${ne.COLUMN_HOVERED}`]: (_ == null ? void 0 : _.field) === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
2007
|
+
[`b-data-grid-cell--${ne.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (_ == null ? void 0 : _.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
2008
|
+
[`b-data-grid-cell--${ne.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (_ == null ? void 0 : _.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
2009
|
+
[`b-data-grid-cell--${ne.PADDING_LEFT_UNSET}`]: ((H = _ == null ? void 0 : _.padding) == null ? void 0 : H.left) === !1,
|
|
2010
|
+
[`b-data-grid-cell--${ne.PADDING_RIGHT_UNSET}`]: ((m = _ == null ? void 0 : _.padding) == null ? void 0 : m.right) === !1,
|
|
2011
|
+
[`b-data-grid-cell--${ne.NUMERIC}`]: _ == null ? void 0 : _.numeric,
|
|
2012
|
+
[`b-data-grid-cell--${ne.CONDENSED}`]: t.condensed,
|
|
2013
|
+
[`b-data-grid-cell--${ne.OVERFLOW_ELLIPSIS}`]: (_ == null ? void 0 : _.overflow) === Qe.ELLIPSIS,
|
|
2014
|
+
[`b-data-grid-cell--${ne.IS_COLUMN_REORDERING}`]: ((h = t.draggingColumns.dragging) == null ? void 0 : h.field) === _.field,
|
|
2015
|
+
[`b-data-grid-cell--${ne.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((M = t.draggingColumns.target) == null ? void 0 : M.field) === _.field && ((V = t.draggingColumns) == null ? void 0 : V.dragToLeft),
|
|
2016
|
+
[`b-data-grid-cell--${ne.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((q = t.draggingColumns.target) == null ? void 0 : q.field) === _.field && !((Y = t.draggingColumns) != null && Y.dragToLeft),
|
|
2017
|
+
[`b-data-grid-cell--${ne.FROZEN}`]: _ == null ? void 0 : _.frozen
|
|
2017
2018
|
};
|
|
2018
2019
|
};
|
|
2019
2020
|
return u({
|
|
2020
2021
|
gridcellRef: o
|
|
2021
|
-
}), (
|
|
2022
|
+
}), (_, H) => {
|
|
2022
2023
|
var m;
|
|
2023
|
-
return r(), b("div",
|
|
2024
|
+
return r(), b("div", X({
|
|
2024
2025
|
key: `cell-${e.column.field}`,
|
|
2025
2026
|
ref_key: "gridcellRef",
|
|
2026
2027
|
ref: o,
|
|
2027
2028
|
"data-testid": `cell-${e.column.field}`,
|
|
2028
2029
|
"data-cellindex": i(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2029
|
-
class: ["b-data-grid-cell",
|
|
2030
|
+
class: ["b-data-grid-cell", k(e.column)],
|
|
2030
2031
|
role: "gridcell",
|
|
2031
2032
|
tabindex: i(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1",
|
|
2032
2033
|
"aria-colindex": d(e.colIndex, e.columnSetIndex) + 1,
|
|
@@ -2034,19 +2035,19 @@ const qt = {
|
|
|
2034
2035
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2035
2036
|
}
|
|
2036
2037
|
}, Ze(L(e.column), !0)), [
|
|
2037
|
-
e.column.field !== n(be) ? (r(), b(
|
|
2038
|
+
e.column.field !== n(be) ? (r(), b(ce, { key: 0 }, [
|
|
2038
2039
|
B(n(xe), { el: "div" }, {
|
|
2039
|
-
default:
|
|
2040
|
-
ye(
|
|
2040
|
+
default: W(() => [
|
|
2041
|
+
ye(_.$slots, `item-${e.column.field}`, { item: e.rowData }, () => [
|
|
2041
2042
|
C("span", {
|
|
2042
2043
|
title: I(e.column, e.rowData[e.column.field])
|
|
2043
|
-
},
|
|
2044
|
+
}, G(O(e.rowData[e.column.field])), 9, Bo)
|
|
2044
2045
|
], !0)
|
|
2045
2046
|
]),
|
|
2046
2047
|
_: 3
|
|
2047
2048
|
}),
|
|
2048
2049
|
((m = e.column.cellActions) == null ? void 0 : m.length) > 0 ? (r(), b("div", Zo, [
|
|
2049
|
-
p.value ? (r(),
|
|
2050
|
+
p.value ? (r(), P(Ho, {
|
|
2050
2051
|
key: 0,
|
|
2051
2052
|
ref_key: "cellActionsRef",
|
|
2052
2053
|
ref: f,
|
|
@@ -2056,19 +2057,19 @@ const qt = {
|
|
|
2056
2057
|
onMenuItemClickClose: E
|
|
2057
2058
|
}, null, 8, ["cell-actions", "column-key", "row-data-item"])) : U("", !0)
|
|
2058
2059
|
])) : U("", !0)
|
|
2059
|
-
], 64)) : (r(),
|
|
2060
|
+
], 64)) : (r(), P(n(Bt), {
|
|
2060
2061
|
key: 1,
|
|
2061
2062
|
class: "b-data-grid-cell__select-cell",
|
|
2062
2063
|
"aria-label": n(g)("selectRow"),
|
|
2063
2064
|
"model-value": e.selectedItems,
|
|
2064
2065
|
disabled: e.isDataItemDisabled(e.rowData),
|
|
2065
2066
|
value: e.getDataItemId(e.rowData),
|
|
2066
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
2067
|
+
"onUpdate:modelValue": H[0] || (H[0] = (h) => _.$emit("select-row", h))
|
|
2067
2068
|
}, null, 8, ["aria-label", "model-value", "disabled", "value"]))
|
|
2068
2069
|
], 16, Vo);
|
|
2069
2070
|
};
|
|
2070
2071
|
}
|
|
2071
|
-
}), qo = /* @__PURE__ */
|
|
2072
|
+
}), qo = /* @__PURE__ */ j(jo, [["__scopeId", "data-v-e7cd69b4"]]);
|
|
2072
2073
|
let Ut = 0;
|
|
2073
2074
|
const Yo = {
|
|
2074
2075
|
beforeCreate() {
|
|
@@ -2087,14 +2088,14 @@ const Yo = {
|
|
|
2087
2088
|
ti
|
|
2088
2089
|
];
|
|
2089
2090
|
function li(e, u, a, t, g, o) {
|
|
2090
|
-
return r(), b("svg",
|
|
2091
|
+
return r(), b("svg", X({ role: "img" }, e.$attrs, {
|
|
2091
2092
|
class: "ui-assets-icons-16",
|
|
2092
2093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2093
2094
|
width: "16",
|
|
2094
2095
|
height: "16",
|
|
2095
2096
|
fill: "none"
|
|
2096
2097
|
}), [
|
|
2097
|
-
e.$attrs["svg-title"] ? (r(), b("title", Xo,
|
|
2098
|
+
e.$attrs["svg-title"] ? (r(), b("title", Xo, G(e.$attrs["svg-title"]), 1)) : U("", !0),
|
|
2098
2099
|
C("g", {
|
|
2099
2100
|
"clip-path": "url(#uia-icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
2100
2101
|
}, Qo, 8, Ko),
|
|
@@ -2105,7 +2106,7 @@ function li(e, u, a, t, g, o) {
|
|
|
2105
2106
|
])
|
|
2106
2107
|
], 16);
|
|
2107
2108
|
}
|
|
2108
|
-
const si = /* @__PURE__ */
|
|
2109
|
+
const si = /* @__PURE__ */ j(Yo, [["render", li]]), oi = ["aria-label"], ii = {}, ai = /* @__PURE__ */ Le({
|
|
2109
2110
|
...ii,
|
|
2110
2111
|
__name: "data-grid-static-icon",
|
|
2111
2112
|
props: {
|
|
@@ -2123,7 +2124,7 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2123
2124
|
case "error":
|
|
2124
2125
|
return si;
|
|
2125
2126
|
case "cross":
|
|
2126
|
-
return
|
|
2127
|
+
return Pt;
|
|
2127
2128
|
case "no-value":
|
|
2128
2129
|
return gt;
|
|
2129
2130
|
default:
|
|
@@ -2131,21 +2132,21 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2131
2132
|
}
|
|
2132
2133
|
}), t = w(() => ({
|
|
2133
2134
|
"b-data-grid-static-icon--colored": u.colored && u.variant !== "no-value"
|
|
2134
|
-
})), g = w(() => `b-data-grid-static-icon__${u.variant}`), o = w(() =>
|
|
2135
|
+
})), g = w(() => `b-data-grid-static-icon__${u.variant}`), o = w(() => Gn.AUTO);
|
|
2135
2136
|
return (f, p) => lt((r(), b("div", {
|
|
2136
2137
|
"aria-label": e.tooltipText,
|
|
2137
|
-
class:
|
|
2138
|
+
class: ae(["b-data-grid-static-icon", n(t)]),
|
|
2138
2139
|
tabindex: "0"
|
|
2139
2140
|
}, [
|
|
2140
|
-
(r(),
|
|
2141
|
-
class:
|
|
2141
|
+
(r(), P($e(n(a)), {
|
|
2142
|
+
class: ae(n(g)),
|
|
2142
2143
|
"svg-title": e.tooltipText
|
|
2143
2144
|
}, null, 8, ["class", "svg-title"]))
|
|
2144
2145
|
], 10, oi)), [
|
|
2145
|
-
[n(
|
|
2146
|
+
[n(Wn), e.tooltipText, n(o)]
|
|
2146
2147
|
]);
|
|
2147
2148
|
}
|
|
2148
|
-
}), la = /* @__PURE__ */
|
|
2149
|
+
}), la = /* @__PURE__ */ j(ai, [["__scopeId", "data-v-3ee55e9a"]]), ri = ["aria-rowcount", "aria-colcount", "aria-label"], di = {
|
|
2149
2150
|
key: 1,
|
|
2150
2151
|
class: "b-data-grid__header"
|
|
2151
2152
|
}, ci = ["tabindex"], ui = ["tabindex", "aria-busy"], gi = {
|
|
@@ -2154,14 +2155,14 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2154
2155
|
}, fi = {
|
|
2155
2156
|
key: 1,
|
|
2156
2157
|
class: "b-data-grid__empty-state"
|
|
2157
|
-
}, vi = ["aria-rowindex", "aria-selected", "onClick"], mi = ["data-testid"],
|
|
2158
|
+
}, vi = ["aria-rowindex", "aria-selected", "onClick"], mi = ["data-testid"], hi = {
|
|
2158
2159
|
key: 4,
|
|
2159
2160
|
class: "b-data-grid__footer"
|
|
2160
|
-
},
|
|
2161
|
+
}, _i = {
|
|
2161
2162
|
i18n: { messages: je },
|
|
2162
2163
|
name: "bento-data-grid"
|
|
2163
2164
|
}, Ci = /* @__PURE__ */ Le({
|
|
2164
|
-
...
|
|
2165
|
+
..._i,
|
|
2165
2166
|
props: {
|
|
2166
2167
|
/**
|
|
2167
2168
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2396,7 +2397,7 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2396
2397
|
T.SORT
|
|
2397
2398
|
],
|
|
2398
2399
|
setup(e, { expose: u, emit: a }) {
|
|
2399
|
-
const t = e, g =
|
|
2400
|
+
const t = e, g = Pn(), o = $(null), f = $(), p = $({}), v = $(null), I = $(null), O = $(), c = $(null), {
|
|
2400
2401
|
allowColumnDragAndDrop: d,
|
|
2401
2402
|
columns: i,
|
|
2402
2403
|
columnPanel: l,
|
|
@@ -2404,34 +2405,34 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2404
2405
|
lazyLoadType: L,
|
|
2405
2406
|
selectable: y,
|
|
2406
2407
|
selection: N,
|
|
2407
|
-
loading:
|
|
2408
|
-
selectableAcrossPages:
|
|
2408
|
+
loading: k,
|
|
2409
|
+
selectableAcrossPages: _,
|
|
2409
2410
|
outline: H
|
|
2410
|
-
} = tt(t), m = $(-1), { t:
|
|
2411
|
+
} = tt(t), m = $(-1), { t: h } = Ee({ messages: je }), M = w(() => ee.value.filter((S) => S.frozen).length), V = ut(
|
|
2411
2412
|
qn,
|
|
2412
2413
|
() => ({
|
|
2413
2414
|
isDataGridTemplate: !1,
|
|
2414
2415
|
stickyTabs: $(!1),
|
|
2415
2416
|
tabsRef: $(null)
|
|
2416
2417
|
})
|
|
2417
|
-
), { isDataGridTemplate: q, stickyTabs:
|
|
2418
|
-
columnDefs:
|
|
2419
|
-
onColumnWidthOverride:
|
|
2418
|
+
), { isDataGridTemplate: q, stickyTabs: Y, tabsRef: ge } = V(), le = w(() => t.fitContent || q ? 0 : null), {
|
|
2419
|
+
columnDefs: ee,
|
|
2420
|
+
onColumnWidthOverride: Z,
|
|
2420
2421
|
gridColumnWidthStyle: F,
|
|
2421
|
-
isMeasuringColumnWidths:
|
|
2422
|
+
isMeasuringColumnWidths: fe,
|
|
2422
2423
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: qe,
|
|
2423
2424
|
columns: Re
|
|
2424
2425
|
} = fl(i, E, o, p, v, {
|
|
2425
2426
|
hasColumnPanel: l,
|
|
2426
2427
|
hasSelectableColumn: y,
|
|
2427
|
-
hasSelectableAcrossPages:
|
|
2428
|
+
hasSelectableAcrossPages: _,
|
|
2428
2429
|
allowColumnDragAndDrop: d
|
|
2429
2430
|
}), s = (S, ...A) => {
|
|
2430
2431
|
(S === T.COLUMNS || S === T.UPDATE_COLUMNS) && ([Re.value] = A), a(S, ...A);
|
|
2431
|
-
},
|
|
2432
|
-
() => t.stickyFilters ? `${
|
|
2433
|
-
),
|
|
2434
|
-
() => `${
|
|
2432
|
+
}, D = pt(ge, Y), R = w(
|
|
2433
|
+
() => t.stickyFilters ? `${D.value}px` : null
|
|
2434
|
+
), se = pt(I, Dt(t, "stickyFilters")), K = w(
|
|
2435
|
+
() => `${se.value + D.value}px`
|
|
2435
2436
|
), {
|
|
2436
2437
|
sortedColumns: Ae,
|
|
2437
2438
|
columnSets: me,
|
|
@@ -2439,7 +2440,7 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2439
2440
|
onConfigSettingsUpdate: we,
|
|
2440
2441
|
onConfigSettingsColumnsUpdate: Ne,
|
|
2441
2442
|
onConfigSettingsColumnUpdate: Me
|
|
2442
|
-
} = Ll(
|
|
2443
|
+
} = Ll(ee, s), { hoveredOverColumn: Oe, hoveredOverColumnState: st } = bl(
|
|
2443
2444
|
me,
|
|
2444
2445
|
y,
|
|
2445
2446
|
H,
|
|
@@ -2450,13 +2451,13 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2450
2451
|
E,
|
|
2451
2452
|
t.getDataItemId,
|
|
2452
2453
|
t.isDataItemDisabled
|
|
2453
|
-
), { navigationInput: it } =
|
|
2454
|
+
), { navigationInput: it } = hl(v, i, y), { isLazyLoad: ke, isInfiniteScroll: en, verticalScrollPosition: tn, emitLazyLoadEvent: nn } = Cl(
|
|
2454
2455
|
L,
|
|
2455
2456
|
c,
|
|
2456
2457
|
o,
|
|
2457
|
-
|
|
2458
|
+
k,
|
|
2458
2459
|
s
|
|
2459
|
-
), { updateScrollPosition:
|
|
2460
|
+
), { updateScrollPosition: De, updateScrollPositionOnFrozenColumnsNavigation: ln, hasLeftOverflow: Pe, hasRightOverflow: sn } = Sl(o, f, tn), on = () => {
|
|
2460
2461
|
O.value.isClearAllVisible ? O.value.clearAllFilters() : O.value.isResetAllVisible && O.value.resetAllFilters();
|
|
2461
2462
|
}, an = w(() => {
|
|
2462
2463
|
var S, A;
|
|
@@ -2465,48 +2466,48 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2465
2466
|
variant: ((S = t.emptyState) == null ? void 0 : S.variant) === "embedded" || ((A = t.emptyState) == null ? void 0 : A.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
2466
2467
|
};
|
|
2467
2468
|
}), rn = w(() => ({
|
|
2468
|
-
[`b-data-grid--${
|
|
2469
|
-
[`b-data-grid--${
|
|
2470
|
-
[`b-data-grid--${
|
|
2471
|
-
[`b-data-grid--${
|
|
2472
|
-
[`b-data-grid--${
|
|
2473
|
-
[`b-data-grid--${
|
|
2469
|
+
[`b-data-grid--${_e.OUTLINE}`]: t.outline,
|
|
2470
|
+
[`b-data-grid--${_e.SCROLL}`]: t.fitContent || ke.value,
|
|
2471
|
+
[`b-data-grid--${_e.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
2472
|
+
[`b-data-grid--${_e.OVERFLOW_SHADOW_LEFT}`]: Pe.value && !M.value,
|
|
2473
|
+
[`b-data-grid--${_e.OVERFLOW_SHADOW_RIGHT}`]: sn.value,
|
|
2474
|
+
[`b-data-grid--${_e.NO_SPACING_TOP}`]: t.noSpacingTop
|
|
2474
2475
|
})), dn = w(() => me.value.findIndex((S) => S.columnSet.length)), cn = (S, A) => {
|
|
2475
|
-
var
|
|
2476
|
+
var oe;
|
|
2476
2477
|
return {
|
|
2477
2478
|
"b-data-grid__row--disabled": t.isDataItemDisabled(S),
|
|
2478
2479
|
"b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
|
|
2479
|
-
"b-data-grid__cell--is-re-ordering": ((
|
|
2480
|
+
"b-data-grid__cell--is-re-ordering": ((oe = Ye.target) == null ? void 0 : oe.field) !== void 0,
|
|
2480
2481
|
"b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(S)) || Ue.value.includes(t.getDataItemId(S)),
|
|
2481
2482
|
"b-data-grid__row--hovered": m.value === A
|
|
2482
2483
|
};
|
|
2483
|
-
}, at = w(() => !(t.selectable && M.value === 1) ||
|
|
2484
|
+
}, at = w(() => !(t.selectable && M.value === 1) || Pe.value), un = (S) => ({
|
|
2484
2485
|
"b-data-grid__row-cell-set--frozen": S,
|
|
2485
|
-
[`b-data-grid__row-cell-set--${
|
|
2486
|
+
[`b-data-grid__row-cell-set--${_e.OVERFLOW_SHADOW_LEFT}`]: S && Pe.value,
|
|
2486
2487
|
"b-data-grid__row-cell-set--frozen-separator": S && at.value,
|
|
2487
2488
|
"b-data-grid__row-cell-set--unfrozen": !S,
|
|
2488
|
-
"b-data-grid__row-cell-set--is-measuring":
|
|
2489
|
+
"b-data-grid__row-cell-set--is-measuring": fe.value
|
|
2489
2490
|
}), gn = w(() => {
|
|
2490
|
-
var S, A,
|
|
2491
|
+
var S, A, oe, z, te, de;
|
|
2491
2492
|
return {
|
|
2492
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
2493
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
2493
|
+
"b-data-grid__pagination--padding-left-unset": ((oe = (A = (S = t.columns) == null ? void 0 : S[0]) == null ? void 0 : A.padding) == null ? void 0 : oe.left) === !1,
|
|
2494
|
+
"b-data-grid__pagination--padding-right-unset": ((de = (te = (z = t.columns) == null ? void 0 : z[t.columns.length - 1]) == null ? void 0 : te.padding) == null ? void 0 : de.right) === !1,
|
|
2494
2495
|
"b-data-grid__pagination--sticky": !!t.stickyPagination || q
|
|
2495
2496
|
};
|
|
2496
2497
|
}), fn = (S) => {
|
|
2497
2498
|
const A = S;
|
|
2498
|
-
S !== null && (A != null && A.columnHeaderRefs) && Object.entries(A == null ? void 0 : A.columnHeaderRefs).forEach(([
|
|
2499
|
-
p.value[
|
|
2499
|
+
S !== null && (A != null && A.columnHeaderRefs) && Object.entries(A == null ? void 0 : A.columnHeaderRefs).forEach(([oe, z]) => {
|
|
2500
|
+
p.value[oe] = z;
|
|
2500
2501
|
});
|
|
2501
|
-
}, vn = (S, A,
|
|
2502
|
-
var
|
|
2502
|
+
}, vn = (S, A, oe) => {
|
|
2503
|
+
var te;
|
|
2503
2504
|
const z = S;
|
|
2504
|
-
((
|
|
2505
|
+
((te = v.value) == null ? void 0 : te[A]) === void 0 && (v.value = { ...v.value, [A]: [] }), S !== null && (z != null && z.gridcellRef) && (v.value[A][oe] = z.gridcellRef);
|
|
2505
2506
|
}, mn = (S, A) => {
|
|
2506
2507
|
t.allowRowClicks && s(T.ROW_CLICK, S, A);
|
|
2507
|
-
},
|
|
2508
|
+
}, hn = (S) => {
|
|
2508
2509
|
m.value = S;
|
|
2509
|
-
},
|
|
2510
|
+
}, _n = w(() => !!t.selectableAcrossPages && !!t.pagination), rt = Bn({
|
|
2510
2511
|
label: g != null && g.header ? Zn(g)("header") : null,
|
|
2511
2512
|
defaultFallback: "data grid"
|
|
2512
2513
|
}), Cn = (S) => {
|
|
@@ -2535,9 +2536,9 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2535
2536
|
return w(() => i.value.some((S) => S.mandatory)).value || zt(
|
|
2536
2537
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2537
2538
|
), ut(jn, () => null)(t.tabTitle), u({ onEmptyStateClearResetButtonClick: on }), (S, A) => {
|
|
2538
|
-
var
|
|
2539
|
+
var oe;
|
|
2539
2540
|
return r(), b("div", {
|
|
2540
|
-
class:
|
|
2541
|
+
class: ae(["b-data-grid", n(rn)]),
|
|
2541
2542
|
role: "grid",
|
|
2542
2543
|
"aria-rowcount": n(E).length,
|
|
2543
2544
|
"aria-colcount": n(i).length,
|
|
@@ -2548,9 +2549,9 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2548
2549
|
ref_key: "filtersRef",
|
|
2549
2550
|
ref: I,
|
|
2550
2551
|
class: "b-data-grid__filters",
|
|
2551
|
-
style:
|
|
2552
|
+
style: Ge({ top: n(R) })
|
|
2552
2553
|
}, [
|
|
2553
|
-
e.filters ? (r(),
|
|
2554
|
+
e.filters ? (r(), P(He, {
|
|
2554
2555
|
key: 0,
|
|
2555
2556
|
ref_key: "filterBarRef",
|
|
2556
2557
|
ref: O,
|
|
@@ -2568,9 +2569,9 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2568
2569
|
])) : U("", !0),
|
|
2569
2570
|
C("div", {
|
|
2570
2571
|
class: "b-data-grid__column-headers",
|
|
2571
|
-
style:
|
|
2572
|
+
style: Ge({ top: n(K) })
|
|
2572
2573
|
}, [
|
|
2573
|
-
n(l) ? (r(),
|
|
2574
|
+
n(l) ? (r(), P(n(bo), {
|
|
2574
2575
|
key: 0,
|
|
2575
2576
|
class: "b-data-grid__config-settings",
|
|
2576
2577
|
columns: n(Re),
|
|
@@ -2583,49 +2584,49 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2583
2584
|
ref: f,
|
|
2584
2585
|
role: "rowgroup",
|
|
2585
2586
|
class: "b-data-grid__columns-row",
|
|
2586
|
-
tabindex: n(
|
|
2587
|
+
tabindex: n(le),
|
|
2587
2588
|
onScroll: A[4] || (A[4] = //@ts-ignore
|
|
2588
|
-
(...z) => n(
|
|
2589
|
+
(...z) => n(De) && n(De)(...z))
|
|
2589
2590
|
}, [
|
|
2590
2591
|
C("div", {
|
|
2591
|
-
style:
|
|
2592
|
+
style: Ge(n(F)),
|
|
2592
2593
|
class: "b-data-grid__columns",
|
|
2593
2594
|
role: "row"
|
|
2594
2595
|
}, [
|
|
2595
|
-
(r(!0), b(
|
|
2596
|
-
z != null && z.length ? (r(),
|
|
2597
|
-
key: `data-grid-columns-${
|
|
2596
|
+
(r(!0), b(ce, null, ve(n(me), ({ columnSet: z, id: te, isFrozenColumns: de }, Fe) => (r(), b(ce, null, [
|
|
2597
|
+
z != null && z.length ? (r(), P(n(qs), X({
|
|
2598
|
+
key: `data-grid-columns-${te}`,
|
|
2598
2599
|
ref_for: !0,
|
|
2599
2600
|
ref: (Se) => fn(Se),
|
|
2600
2601
|
columns: z,
|
|
2601
2602
|
"has-resizable-columns": e.hasResizableColumns,
|
|
2602
2603
|
"sort-by": e.sortBy,
|
|
2603
2604
|
"all-items-selected-state": n(Qt),
|
|
2604
|
-
"is-frozen-columns":
|
|
2605
|
+
"is-frozen-columns": de,
|
|
2605
2606
|
"show-frozen-columns-separator": n(at),
|
|
2606
2607
|
"dragging-columns": n(Ye),
|
|
2607
2608
|
"has-draggable-columns": n(d),
|
|
2608
2609
|
"has-column-panel": n(l),
|
|
2609
|
-
"has-left-overflow": n(
|
|
2610
|
+
"has-left-overflow": n(Pe),
|
|
2610
2611
|
"has-first-column-panel-right-aligned": Fe === n(dn),
|
|
2611
2612
|
"hovered-over-column-state": n(st),
|
|
2612
|
-
"is-measuring-column-widths": n(
|
|
2613
|
+
"is-measuring-column-widths": n(fe),
|
|
2613
2614
|
"is-only-one-visible-column": n(Te),
|
|
2614
|
-
"selectable-across-pages": n(
|
|
2615
|
+
"selectable-across-pages": n(_n),
|
|
2615
2616
|
"truncate-column-headers": e.truncateColumnHeaders
|
|
2616
2617
|
}, Ze(n(Yt)), {
|
|
2617
2618
|
onColumnHover: A[2] || (A[2] = (Se) => Oe.value = Se),
|
|
2618
2619
|
onColumnMove: n(Kt),
|
|
2619
2620
|
onColumnUpdate: n(Me),
|
|
2620
2621
|
onColumnResize: Ln,
|
|
2621
|
-
onColumnResizing: n(
|
|
2622
|
+
onColumnResizing: n(Z),
|
|
2622
2623
|
onSelectAllRows: n(ot),
|
|
2623
2624
|
onSelectAllAcrossPages: A[3] || (A[3] = (Se) => s(n(T).SELECT_ALL_ACROSS_PAGES)),
|
|
2624
2625
|
onSort: Sn
|
|
2625
2626
|
}), Be({ _: 2 }, [
|
|
2626
2627
|
ve(n(g), (Se, ze) => ({
|
|
2627
2628
|
name: ze,
|
|
2628
|
-
fn:
|
|
2629
|
+
fn: W((Ie) => [
|
|
2629
2630
|
ye(S.$slots, ze, Xe(Ke(Ie)), void 0, !0)
|
|
2630
2631
|
])
|
|
2631
2632
|
}))
|
|
@@ -2639,13 +2640,13 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2639
2640
|
ref: o,
|
|
2640
2641
|
"data-testid": "data-grid-body",
|
|
2641
2642
|
class: "b-data-grid__body",
|
|
2642
|
-
tabindex: n(
|
|
2643
|
-
"aria-busy": n(
|
|
2643
|
+
tabindex: n(k) ? "0" : "-1",
|
|
2644
|
+
"aria-busy": n(k),
|
|
2644
2645
|
"aria-live": "polite",
|
|
2645
2646
|
onScroll: A[7] || (A[7] = //@ts-ignore
|
|
2646
|
-
(...z) => n(
|
|
2647
|
+
(...z) => n(De) && n(De)(...z))
|
|
2647
2648
|
}, [
|
|
2648
|
-
n(
|
|
2649
|
+
n(k) && !n(ke) ? (r(), b("div", gi, [
|
|
2649
2650
|
B(n(Ft), {
|
|
2650
2651
|
class: "b-data-grid__loading-indicator",
|
|
2651
2652
|
large: ""
|
|
@@ -2654,12 +2655,12 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2654
2655
|
el: "span",
|
|
2655
2656
|
variant: "caption"
|
|
2656
2657
|
}, {
|
|
2657
|
-
default:
|
|
2658
|
-
Q(
|
|
2658
|
+
default: W(() => [
|
|
2659
|
+
Q(G(n(h)("gettingYourData")), 1)
|
|
2659
2660
|
]),
|
|
2660
2661
|
_: 1
|
|
2661
2662
|
})
|
|
2662
|
-
])) : ((
|
|
2663
|
+
])) : ((oe = n(E)) == null ? void 0 : oe.length) === 0 && e.emptyState ? (r(), b("div", fi, [
|
|
2663
2664
|
B(n(xn), Xe(Ke(n(an))), null, 16)
|
|
2664
2665
|
])) : (r(), b("div", {
|
|
2665
2666
|
key: 2,
|
|
@@ -2668,25 +2669,25 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2668
2669
|
onKeydown: A[6] || (A[6] = //@ts-ignore
|
|
2669
2670
|
(...z) => n(it) && n(it)(...z))
|
|
2670
2671
|
}, [
|
|
2671
|
-
(r(!0), b(
|
|
2672
|
-
key:
|
|
2673
|
-
style:
|
|
2674
|
-
class:
|
|
2672
|
+
(r(!0), b(ce, null, ve(n(E), (z, te) => (r(), b("div", {
|
|
2673
|
+
key: te,
|
|
2674
|
+
style: Ge(n(F)),
|
|
2675
|
+
class: ae(["b-data-grid__row", cn(z, te)]),
|
|
2675
2676
|
role: "row",
|
|
2676
|
-
"aria-rowindex":
|
|
2677
|
+
"aria-rowindex": te + 1,
|
|
2677
2678
|
"aria-selected": Cn(z),
|
|
2678
|
-
onClick: (
|
|
2679
|
+
onClick: (de) => mn(z, de)
|
|
2679
2680
|
}, [
|
|
2680
|
-
(r(!0), b(
|
|
2681
|
-
|
|
2681
|
+
(r(!0), b(ce, null, ve(n(me), ({ columnSet: de, id: Fe, isFrozenColumns: Se }, ze) => (r(), b(ce, null, [
|
|
2682
|
+
de != null && de.length ? (r(), b("div", {
|
|
2682
2683
|
key: `data-grid-rows-${Fe}`,
|
|
2683
|
-
class:
|
|
2684
|
+
class: ae(["b-data-grid__cells", un(Se)]),
|
|
2684
2685
|
"data-testid": `data-grid-${Fe}-rows`
|
|
2685
2686
|
}, [
|
|
2686
|
-
(r(!0), b(
|
|
2687
|
+
(r(!0), b(ce, null, ve(de, (Ie, In) => (r(), P(n(qo), {
|
|
2687
2688
|
key: `cell-${Ie.field}`,
|
|
2688
2689
|
ref_for: !0,
|
|
2689
|
-
ref: (
|
|
2690
|
+
ref: (We) => vn(We, Ie.field, te),
|
|
2690
2691
|
column: Ie,
|
|
2691
2692
|
"column-set-index": ze,
|
|
2692
2693
|
"col-index": In,
|
|
@@ -2697,18 +2698,18 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2697
2698
|
"get-data-item-id": e.getDataItemId,
|
|
2698
2699
|
"hovered-over-column-state": n(st),
|
|
2699
2700
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
2700
|
-
"is-measuring-column-widths": n(
|
|
2701
|
+
"is-measuring-column-widths": n(fe),
|
|
2701
2702
|
"row-data": z,
|
|
2702
|
-
"row-index":
|
|
2703
|
+
"row-index": te,
|
|
2703
2704
|
"selected-items": n(Ue),
|
|
2704
|
-
onCellHover: A[5] || (A[5] = (
|
|
2705
|
+
onCellHover: A[5] || (A[5] = (We) => Oe.value = We),
|
|
2705
2706
|
onOnFrozenColumnsKeyPress: n(ln),
|
|
2706
2707
|
onSelectRow: n(Jt),
|
|
2707
|
-
onCellHovered:
|
|
2708
|
+
onCellHovered: hn
|
|
2708
2709
|
}, Be({ _: 2 }, [
|
|
2709
|
-
ve(n(g), (
|
|
2710
|
+
ve(n(g), (We, ct) => ({
|
|
2710
2711
|
name: ct,
|
|
2711
|
-
fn:
|
|
2712
|
+
fn: W(($n) => [
|
|
2712
2713
|
ye(S.$slots, ct, Xe(Ke($n)), void 0, !0)
|
|
2713
2714
|
])
|
|
2714
2715
|
}))
|
|
@@ -2718,27 +2719,27 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2718
2719
|
], 14, vi))), 128))
|
|
2719
2720
|
], 32))
|
|
2720
2721
|
], 40, ui),
|
|
2721
|
-
n(
|
|
2722
|
+
n(ke) ? (r(), P(n(Io), {
|
|
2722
2723
|
key: 2,
|
|
2723
|
-
loading: n(
|
|
2724
|
+
loading: n(k),
|
|
2724
2725
|
"is-infinite-scroll": n(en),
|
|
2725
2726
|
"onUpdate:showMore": n(nn)
|
|
2726
2727
|
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : U("", !0),
|
|
2727
|
-
e.pagination && !n(
|
|
2728
|
+
e.pagination && !n(ke) ? (r(), b("div", {
|
|
2728
2729
|
key: 3,
|
|
2729
2730
|
"data-testid": "pagination-container",
|
|
2730
|
-
class:
|
|
2731
|
+
class: ae(["b-data-grid__pagination", n(gn)])
|
|
2731
2732
|
}, [
|
|
2732
|
-
B(n(Vn),
|
|
2733
|
+
B(n(Vn), X(e.pagination, {
|
|
2733
2734
|
"aria-label": `${n(rt)} navigation`,
|
|
2734
2735
|
onNavigate: bn,
|
|
2735
2736
|
onItemsPage: En
|
|
2736
2737
|
}), null, 16, ["aria-label"])
|
|
2737
2738
|
], 2)) : U("", !0),
|
|
2738
|
-
S.$slots.footer ? (r(), b("div",
|
|
2739
|
+
S.$slots.footer ? (r(), b("div", hi, [
|
|
2739
2740
|
ye(S.$slots, "footer", {}, void 0, !0)
|
|
2740
2741
|
])) : U("", !0),
|
|
2741
|
-
n(pn) ? (r(),
|
|
2742
|
+
n(pn) ? (r(), P(n(Hn), {
|
|
2742
2743
|
key: 5,
|
|
2743
2744
|
actions: e.bulkActions,
|
|
2744
2745
|
"item-counter": n(dt),
|
|
@@ -2748,14 +2749,14 @@ const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}
|
|
|
2748
2749
|
], 10, ri);
|
|
2749
2750
|
};
|
|
2750
2751
|
}
|
|
2751
|
-
}), sa = /* @__PURE__ */
|
|
2752
|
+
}), sa = /* @__PURE__ */ j(Ci, [["__scopeId", "data-v-c4f76f50"]]);
|
|
2752
2753
|
export {
|
|
2753
2754
|
Qe as B,
|
|
2754
2755
|
la as a,
|
|
2755
|
-
|
|
2756
|
+
_e as b,
|
|
2756
2757
|
pe as c,
|
|
2757
2758
|
sa as d,
|
|
2758
2759
|
T as e,
|
|
2759
2760
|
Ve as f
|
|
2760
2761
|
};
|
|
2761
|
-
//# sourceMappingURL=data-grid.
|
|
2762
|
+
//# sourceMappingURL=data-grid.BEUdR8kC.js.map
|