@adyen/bento-vue2 1.87.1 → 1.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +127 -63
- package/dist/action-bar.js +1 -1
- 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/button-actions.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/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/action-bar.rHHYcsRV.js +233 -0
- package/dist/chunks/action-bar.rHHYcsRV.js.map +1 -0
- package/dist/chunks/{checkbox-group.BtsDJN9I.js → checkbox-group.ntiYZadA.js} +2 -2
- package/dist/chunks/{checkbox-group.BtsDJN9I.js.map → checkbox-group.ntiYZadA.js.map} +1 -1
- package/dist/chunks/{checkbox.Dxvh9si9.js → checkbox.DfB3ZeA-.js} +18 -18
- package/dist/chunks/{checkbox.Dxvh9si9.js.map → checkbox.DfB3ZeA-.js.map} +1 -1
- package/dist/chunks/{code-snippet.CaAEHdBl.js → code-snippet.D5ET8Yc1.js} +2 -2
- package/dist/chunks/{code-snippet.CaAEHdBl.js.map → code-snippet.D5ET8Yc1.js.map} +1 -1
- package/dist/chunks/{data-grid.BvukOpky.js → data-grid.u3f__x8_.js} +470 -463
- package/dist/chunks/data-grid.u3f__x8_.js.map +1 -0
- package/dist/chunks/{date-range-picker.BJ-ARlkH.js → date-range-picker.B9XHHv9W.js} +3 -3
- package/dist/chunks/{date-range-picker.BJ-ARlkH.js.map → date-range-picker.B9XHHv9W.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DSCZALNp.js → dropdown-tag.Dmq73cu9.js} +2 -2
- package/dist/chunks/{dropdown-tag.DSCZALNp.js.map → dropdown-tag.Dmq73cu9.js.map} +1 -1
- package/dist/chunks/{dropdown.ET_mq1_P.js → dropdown.Do5c4SST.js} +25 -25
- package/dist/chunks/dropdown.Do5c4SST.js.map +1 -0
- package/dist/chunks/{filter-bar.DrkWf7T6.js → filter-bar.B_RHM9kR.js} +11 -11
- package/dist/chunks/{filter-bar.DrkWf7T6.js.map → filter-bar.B_RHM9kR.js.map} +1 -1
- package/dist/chunks/{header-with-views.DLoIc0yO.js → header-with-views.F1h5e4Wn.js} +3 -3
- package/dist/chunks/{header-with-views.DLoIc0yO.js.map → header-with-views.F1h5e4Wn.js.map} +1 -1
- package/dist/chunks/{input-field-password.TIzrVzR6.js → input-field-password.nYiBJRzJ.js} +3 -3
- package/dist/chunks/{input-field-password.TIzrVzR6.js.map → input-field-password.nYiBJRzJ.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.s2fP7BVR.js → input-field-phone-number.BhLVrf55.js} +3 -3
- package/dist/chunks/{input-field-phone-number.s2fP7BVR.js.map → input-field-phone-number.BhLVrf55.js.map} +1 -1
- package/dist/chunks/{input-field.CSCJTxk1.js → input-field.CFdpdjK5.js} +2 -2
- package/dist/chunks/{input-field.CSCJTxk1.js.map → input-field.CFdpdjK5.js.map} +1 -1
- package/dist/chunks/{pagination.iN0eYByB.js → pagination.BKIqR6O6.js} +2 -2
- package/dist/chunks/{pagination.iN0eYByB.js.map → pagination.BKIqR6O6.js.map} +1 -1
- package/dist/chunks/{radio-group.5ZxqWguJ.js → radio-group.DhDhTbZp.js} +2 -2
- package/dist/chunks/{radio-group.5ZxqWguJ.js.map → radio-group.DhDhTbZp.js.map} +1 -1
- package/dist/chunks/{radio-input.kzb4gxLW.js → radio-input.CLlYadKI.js} +14 -14
- package/dist/chunks/radio-input.CLlYadKI.js.map +1 -0
- package/dist/chunks/{rich-text-editor.BJ-FvvNc.js → rich-text-editor.BjjQ0hue.js} +2 -2
- package/dist/chunks/{rich-text-editor.BJ-FvvNc.js.map → rich-text-editor.BjjQ0hue.js.map} +1 -1
- package/dist/chunks/{search-bar.GPl6NU_w.js → search-bar.k0tIoWcb.js} +3 -3
- package/dist/chunks/{search-bar.GPl6NU_w.js.map → search-bar.k0tIoWcb.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DMHDxGDq.js → secondary-nav.CV6EiZPL.js} +2 -2
- package/dist/chunks/{secondary-nav.DMHDxGDq.js.map → secondary-nav.CV6EiZPL.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Hol_gJKN.js → selection-card-group.CMTwk1iJ.js} +8 -8
- package/dist/chunks/{selection-card-group.Hol_gJKN.js.map → selection-card-group.CMTwk1iJ.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +20 -20
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/web-types.json +57 -3
- package/package.json +5 -5
- package/dist/chunks/action-bar.ChMlt59Z.js +0 -163
- package/dist/chunks/action-bar.ChMlt59Z.js.map +0 -1
- package/dist/chunks/data-grid.BvukOpky.js.map +0 -1
- package/dist/chunks/dropdown.ET_mq1_P.js.map +0 -1
- package/dist/chunks/radio-input.kzb4gxLW.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as p, onMounted as Ee, nextTick as ae, watch as ie, onUnmounted as Tt, reactive as ze, toRefs as ke, computed as v, watchEffect as $n, onBeforeUpdate as zn, defineComponent as de, inject as _e, toRef as Ue, useSlots as We, provide as Ne } from "vue";
|
|
2
2
|
import { C as kn } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
3
|
import { W as Wn } from "./warning-filled.CbJ1pcB2.js";
|
|
4
4
|
/* empty css */
|
|
@@ -11,19 +11,19 @@ import { B as Zn } from "./dashed-underline.DauOBhSD.js";
|
|
|
11
11
|
import { B as Se, p as It } from "./typography.C8lPlsbD.js";
|
|
12
12
|
import { u as he } from "./index.B6WW_F-J.js";
|
|
13
13
|
import { B as jn } from "./tag.CocLKztJ.js";
|
|
14
|
-
import { B as qn } from "./action-bar.
|
|
15
|
-
import { B as Yn } from "./pagination.
|
|
14
|
+
import { B as qn } from "./action-bar.rHHYcsRV.js";
|
|
15
|
+
import { B as Yn } from "./pagination.BKIqR6O6.js";
|
|
16
16
|
import { B as Ge } from "./loading-indicator.PxbRzshH.js";
|
|
17
17
|
import { u as He } from "./use-has-slot.C9lQZ6nz.js";
|
|
18
18
|
import { g as De } from "./generate-uid.NJ8tVoha.js";
|
|
19
|
-
import { a as Jn } from "./filter-bar.
|
|
19
|
+
import { a as Jn } from "./filter-bar.B_RHM9kR.js";
|
|
20
20
|
import { B as Kn } from "./empty-state.IiG1LXa2.js";
|
|
21
21
|
import { E as Xn } from "./tabs.keys.B4qGhjp2.js";
|
|
22
22
|
import { D as Qn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
23
23
|
import { b as es } from "./index.CwzYJHw2.js";
|
|
24
24
|
import { o as Ve } from "./resize.Bqks3WUm.js";
|
|
25
25
|
import "./index.Cl4_42j5.js";
|
|
26
|
-
import { B as Dt } from "./checkbox.
|
|
26
|
+
import { B as Dt } from "./checkbox.DfB3ZeA-.js";
|
|
27
27
|
import { B as xt } from "./button.Ctj3rkxw.js";
|
|
28
28
|
import { c as Ze, f as Ft, h as ts, b as ns, a as ss, O as it, D as os } from "./button-actions.DyPS54Yi.js";
|
|
29
29
|
import { E as rt } from "./link.DKimL08z.js";
|
|
@@ -40,8 +40,8 @@ import { A as us } from "./arrow-right.Dn3AYpUP.js";
|
|
|
40
40
|
import { H as fs, S as gs } from "./show.B_mKPF6I.js";
|
|
41
41
|
import { l as ut } from "./events.BQOQSSb7.js";
|
|
42
42
|
import { B as Pt } from "./toggle.B1z1YPe_.js";
|
|
43
|
-
import { B as _s } from "./search-bar.
|
|
44
|
-
import { u as vs } from "./dropdown.
|
|
43
|
+
import { B as _s } from "./search-bar.k0tIoWcb.js";
|
|
44
|
+
import { u as vs } from "./dropdown.Do5c4SST.js";
|
|
45
45
|
import { S as ms } from "./search.D53Ia3rC.js";
|
|
46
46
|
import { B as Cs } from "./directive.rXUeDb8p.js";
|
|
47
47
|
import "../assets/data-grid.css";
|
|
@@ -57,12 +57,12 @@ const ft = (s) => {
|
|
|
57
57
|
}
|
|
58
58
|
const o = parseFloat(t.top);
|
|
59
59
|
return !isNaN(o) && o < 0 && (n += o), n;
|
|
60
|
-
}, gt = (s, t, n =
|
|
61
|
-
const o =
|
|
60
|
+
}, gt = (s, t, n = p(!1), e = null) => {
|
|
61
|
+
const o = p(0);
|
|
62
62
|
let l = null, a = null;
|
|
63
63
|
const i = () => {
|
|
64
|
-
const _ = t.value ? ft(s.value) : 0,
|
|
65
|
-
o.value = _ +
|
|
64
|
+
const _ = t.value ? ft(s.value) : 0, d = n.value && e ? ft(e.value) : 0;
|
|
65
|
+
o.value = _ + d;
|
|
66
66
|
};
|
|
67
67
|
return Ee(() => {
|
|
68
68
|
ae(() => {
|
|
@@ -87,28 +87,28 @@ const ft = (s) => {
|
|
|
87
87
|
};
|
|
88
88
|
var $e = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))($e || {}), j = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL = "deselect-all", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(j || {}), ge = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s.FIT_CONTENT = "fit-content", s.ZEBRA_ROWS = "zebra-rows", s))(ge || {}), be = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(be || {}), N = /* @__PURE__ */ ((s) => (s.CELL_FOCUS = "cell-focus", s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.SORT = "sort", s))(N || {}), Ie = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ie || {});
|
|
89
89
|
const hs = (s, t) => {
|
|
90
|
-
const n =
|
|
91
|
-
let _ = 0,
|
|
92
|
-
const
|
|
93
|
-
() => Object.fromEntries(s.value.map(({ field: L, width: F, minWidth:
|
|
90
|
+
const n = p(null), e = p(!1), o = p(void 0), l = s.value.reduce((L, F) => (L[F.field] = null, L), {}), a = ze(l), i = ke(a);
|
|
91
|
+
let _ = 0, d = "";
|
|
92
|
+
const C = v(
|
|
93
|
+
() => Object.fromEntries(s.value.map(({ field: L, width: F, minWidth: E }) => [L, { width: F, minWidth: E }]))
|
|
94
94
|
);
|
|
95
|
-
$n(() => o.value =
|
|
96
|
-
let m = null,
|
|
95
|
+
$n(() => o.value = C.value);
|
|
96
|
+
let m = null, S = null;
|
|
97
97
|
const b = (L) => {
|
|
98
|
-
const F = L.clientX - _,
|
|
99
|
-
o.value[
|
|
100
|
-
},
|
|
101
|
-
e.value = !1, m == null || m(),
|
|
102
|
-
field:
|
|
103
|
-
width: o.value[
|
|
104
|
-
}), m = null,
|
|
105
|
-
}, A = (L, F,
|
|
106
|
-
if (
|
|
107
|
-
if (e.value = !0,
|
|
108
|
-
|
|
98
|
+
const F = L.clientX - _, E = d, u = o.value[E].width + F;
|
|
99
|
+
o.value[E].width = u > C.value[E].minWidth ? u : C.value[E].minWidth, t(j.COLUMN_RESIZING, o.value), _ = L.clientX;
|
|
100
|
+
}, f = () => {
|
|
101
|
+
e.value = !1, m == null || m(), S == null || S(), d && t(j.COLUMN_RESIZE, {
|
|
102
|
+
field: d,
|
|
103
|
+
width: o.value[d].width
|
|
104
|
+
}), m = null, S = null, d = "", _ = null;
|
|
105
|
+
}, A = (L, F, E) => {
|
|
106
|
+
if (E.preventDefault(), L) {
|
|
107
|
+
if (e.value = !0, E.buttons !== 1) {
|
|
108
|
+
f();
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
d = F, _ = E.clientX, m = ut(window, "mousemove", b), S = ut(window, "mouseup", f);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
return ie(
|
|
@@ -132,22 +132,22 @@ const hs = (s, t) => {
|
|
|
132
132
|
if (o.length === n.length)
|
|
133
133
|
return;
|
|
134
134
|
const i = { min: {} };
|
|
135
|
-
let _ = s,
|
|
135
|
+
let _ = s, d = t, C = 0;
|
|
136
136
|
o.forEach((m) => {
|
|
137
|
-
_ -= e[m].computedWidth,
|
|
137
|
+
_ -= e[m].computedWidth, d -= e[m].flex;
|
|
138
138
|
});
|
|
139
|
-
for (let m = 0,
|
|
139
|
+
for (let m = 0, S = n.length; m < S; m += 1) {
|
|
140
140
|
const b = n[m];
|
|
141
141
|
if (e[b.field] && e[b.field].frozen === !0)
|
|
142
142
|
continue;
|
|
143
|
-
let A = _ /
|
|
144
|
-
A < b.minWidth && (
|
|
143
|
+
let A = _ / d * b.flex;
|
|
144
|
+
A < b.minWidth && (C += b.minWidth - A, A = b.minWidth, i.min[b.field] = !0), e[b.field] = {
|
|
145
145
|
frozen: !1,
|
|
146
146
|
computedWidth: A,
|
|
147
147
|
flex: b.flex
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
C > 0 ? Object.keys(i.min).forEach((m) => {
|
|
151
151
|
l(m);
|
|
152
152
|
}) : n.forEach(({ field: m }) => {
|
|
153
153
|
l(m);
|
|
@@ -161,13 +161,13 @@ const hs = (s, t) => {
|
|
|
161
161
|
var t, n, e, o, l;
|
|
162
162
|
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? Rs : Ss : Es : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? bs : ws;
|
|
163
163
|
}, Os = (s, t, n, e, o, l) => {
|
|
164
|
-
const a =
|
|
164
|
+
const a = p(s.value), i = p(t), _ = p(n), d = p(e), C = p(o), m = p(!1), S = p(0);
|
|
165
165
|
ie(
|
|
166
166
|
() => s.value,
|
|
167
|
-
(r,
|
|
167
|
+
(r, g) => {
|
|
168
168
|
var T, B;
|
|
169
|
-
const
|
|
170
|
-
if (!((T = l == null ? void 0 : l.allowColumnDragAndDrop) != null && T.value) || !
|
|
169
|
+
const R = (r == null ? void 0 : r.map(({ field: P }) => P).toString()) === (g == null ? void 0 : g.map(({ field: P }) => P).toString());
|
|
170
|
+
if (!((T = l == null ? void 0 : l.allowColumnDragAndDrop) != null && T.value) || !R) {
|
|
171
171
|
a.value = s.value;
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
@@ -177,12 +177,12 @@ const hs = (s, t) => {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
|
-
const b =
|
|
181
|
-
let
|
|
180
|
+
const b = p();
|
|
181
|
+
let f = null;
|
|
182
182
|
const A = v(() => {
|
|
183
183
|
var K, Y, ee;
|
|
184
184
|
const r = [];
|
|
185
|
-
let
|
|
185
|
+
let g = 0, R = 0;
|
|
186
186
|
const T = {};
|
|
187
187
|
let B = a.value.filter((G) => G.visible !== !1);
|
|
188
188
|
const P = a.value.filter((G) => G.visible === !1);
|
|
@@ -203,14 +203,14 @@ const hs = (s, t) => {
|
|
|
203
203
|
B.forEach((G) => {
|
|
204
204
|
const M = { ...G };
|
|
205
205
|
let w;
|
|
206
|
-
M.flex && M.flex > 0 ? (
|
|
206
|
+
M.flex && M.flex > 0 ? (g += M.flex, w = 0, r.push(M)) : w = Math.max(
|
|
207
207
|
(M == null ? void 0 : M.width) ?? ps,
|
|
208
208
|
(M == null ? void 0 : M.minWidth) ?? _t
|
|
209
|
-
),
|
|
210
|
-
}),
|
|
211
|
-
const k = Math.max(b.value -
|
|
212
|
-
if (
|
|
213
|
-
const G = ys(k,
|
|
209
|
+
), R += w, M.width = w, M.minWidth = (M == null ? void 0 : M.minWidth) ?? _t, T[M.field] = M;
|
|
210
|
+
}), R += S.value;
|
|
211
|
+
const k = Math.max(b.value - R, 0);
|
|
212
|
+
if (g > 0 && b.value > 0) {
|
|
213
|
+
const G = ys(k, g, r);
|
|
214
214
|
Object.keys(G).forEach((M) => {
|
|
215
215
|
T[M].width = G[M].computedWidth;
|
|
216
216
|
});
|
|
@@ -219,19 +219,19 @@ const hs = (s, t) => {
|
|
|
219
219
|
const M = { ...G };
|
|
220
220
|
T[M.field] = M;
|
|
221
221
|
}), Object.values(T);
|
|
222
|
-
}), L =
|
|
222
|
+
}), L = p(void 0), F = (r) => {
|
|
223
223
|
L.value = { ...L.value, ...r };
|
|
224
|
-
},
|
|
225
|
-
a.value.some((r) => r == null ? void 0 : r.autoWidth) && (m.value = !0, await ae(), a == null || a.value.filter((r) => r == null ? void 0 : r.autoWidth).forEach(({ field: r, minWidth:
|
|
224
|
+
}, E = async () => {
|
|
225
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && (m.value = !0, await ae(), a == null || a.value.filter((r) => r == null ? void 0 : r.autoWidth).forEach(({ field: r, minWidth: g }) => {
|
|
226
226
|
var P, k, K, Y;
|
|
227
|
-
const
|
|
228
|
-
(P =
|
|
227
|
+
const R = vt(
|
|
228
|
+
(P = d.value) == null ? void 0 : P[r],
|
|
229
229
|
(k = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : k.value
|
|
230
|
-
), T = (Y = (K =
|
|
230
|
+
), T = (Y = (K = C.value) == null ? void 0 : K[r]) == null ? void 0 : Y.reduce(
|
|
231
231
|
(ee, G) => Math.max(ee, vt(G)),
|
|
232
232
|
0
|
|
233
|
-
), B = Math.max(
|
|
234
|
-
(
|
|
233
|
+
), B = Math.max(R, T ?? 0);
|
|
234
|
+
(g === void 0 || B > g) && F({
|
|
235
235
|
[r]: {
|
|
236
236
|
width: B
|
|
237
237
|
}
|
|
@@ -239,21 +239,21 @@ const hs = (s, t) => {
|
|
|
239
239
|
}), m.value = !1);
|
|
240
240
|
};
|
|
241
241
|
ie([() => a.value, () => i.value], async () => {
|
|
242
|
-
a.value.some((r) => r == null ? void 0 : r.autoWidth) && await
|
|
242
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && await E();
|
|
243
243
|
});
|
|
244
|
-
const
|
|
244
|
+
const u = v(
|
|
245
245
|
() => A.value.map((r) => {
|
|
246
|
-
var
|
|
246
|
+
var g, R;
|
|
247
247
|
return {
|
|
248
248
|
...r,
|
|
249
249
|
// Override column width with resized ones
|
|
250
|
-
width: ((
|
|
250
|
+
width: ((R = (g = L.value) == null ? void 0 : g[r.field]) == null ? void 0 : R.width) ?? r.width
|
|
251
251
|
};
|
|
252
252
|
})
|
|
253
253
|
), y = v(
|
|
254
254
|
() => {
|
|
255
255
|
var r;
|
|
256
|
-
return ((r =
|
|
256
|
+
return ((r = u.value) == null ? void 0 : r.filter(({ visible: g }) => g !== !1).reduce((g, R) => R.width + g, 0)) + S.value;
|
|
257
257
|
}
|
|
258
258
|
), O = v(
|
|
259
259
|
() => b.value <= y.value
|
|
@@ -261,76 +261,76 @@ const hs = (s, t) => {
|
|
|
261
261
|
width: b.value > y.value ? "100%" : "fit-content"
|
|
262
262
|
}));
|
|
263
263
|
return Ee(() => {
|
|
264
|
-
var
|
|
264
|
+
var g;
|
|
265
265
|
const r = l != null && l.isDataGridTemplate ? As : 0;
|
|
266
266
|
ae(() => {
|
|
267
267
|
_.value && (b.value = _.value.getBoundingClientRect().width - r);
|
|
268
|
-
const
|
|
268
|
+
const R = ie(
|
|
269
269
|
_,
|
|
270
270
|
() => {
|
|
271
|
-
_.value && (ae(() =>
|
|
271
|
+
_.value && (ae(() => R()), f = Ve(_.value, ({ width: T }) => {
|
|
272
272
|
b.value = T - r;
|
|
273
273
|
}));
|
|
274
274
|
},
|
|
275
275
|
{ immediate: !0 }
|
|
276
276
|
);
|
|
277
|
-
}), (
|
|
278
|
-
|
|
279
|
-
}) :
|
|
277
|
+
}), (g = document == null ? void 0 : document.fonts) != null && g.ready ? document.fonts.ready.then(() => {
|
|
278
|
+
E();
|
|
279
|
+
}) : E();
|
|
280
280
|
}), Tt(() => {
|
|
281
|
-
|
|
281
|
+
f == null || f.disconnect();
|
|
282
282
|
}), zn(() => {
|
|
283
283
|
var r;
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
C.value && ((r = Object.keys(C.value)) == null ? void 0 : r.length) > 0 && Object.keys(C.value).forEach((R) => {
|
|
285
|
+
C.value[R] = [];
|
|
286
286
|
});
|
|
287
287
|
}), {
|
|
288
|
-
columnDefs:
|
|
288
|
+
columnDefs: u,
|
|
289
289
|
gridRowWidthStyle: x,
|
|
290
290
|
onColumnWidthOverride: F,
|
|
291
291
|
isMeasuringColumnWidths: m,
|
|
292
292
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: O,
|
|
293
293
|
columns: a,
|
|
294
294
|
totalWidthOfAllColumns: y,
|
|
295
|
-
rowActionsMaxWidth:
|
|
295
|
+
rowActionsMaxWidth: S
|
|
296
296
|
};
|
|
297
297
|
}, Ns = (s, t, n, e, o, l, a) => {
|
|
298
|
-
const i =
|
|
298
|
+
const i = p(s.value ?? []), _ = ze({
|
|
299
299
|
allItemsSelected: !1,
|
|
300
300
|
isIndeterminate: !1
|
|
301
|
-
}),
|
|
301
|
+
}), d = v(
|
|
302
302
|
() => n.value.flatMap((r) => {
|
|
303
|
-
var
|
|
304
|
-
return [r, ((
|
|
303
|
+
var g;
|
|
304
|
+
return [r, ((g = r == null ? void 0 : r.children) == null ? void 0 : g.length) > 0 ? r == null ? void 0 : r.children : []];
|
|
305
305
|
}).flat()
|
|
306
|
-
),
|
|
306
|
+
), C = v(
|
|
307
307
|
() => {
|
|
308
|
-
var r,
|
|
309
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((
|
|
308
|
+
var r, g;
|
|
309
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((g = d.value) == null ? void 0 : g.every((R) => i.value.includes(e(R))));
|
|
310
310
|
}
|
|
311
311
|
), m = v(
|
|
312
312
|
() => {
|
|
313
|
-
var r,
|
|
314
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((
|
|
313
|
+
var r, g;
|
|
314
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((g = d.value) == null ? void 0 : g.filter((R) => !o(R)).every((R) => i.value.includes(e(R))));
|
|
315
315
|
}
|
|
316
|
-
),
|
|
316
|
+
), S = v(
|
|
317
317
|
() => {
|
|
318
|
-
var r,
|
|
319
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((
|
|
318
|
+
var r, g;
|
|
319
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((g = d.value) != null && g.some((R) => i.value.includes(e(R))));
|
|
320
320
|
}
|
|
321
321
|
), b = v(
|
|
322
322
|
() => {
|
|
323
|
-
var r,
|
|
324
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((
|
|
323
|
+
var r, g;
|
|
324
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((g = d.value) != null && g.filter((R) => !o(R)).some((R) => i.value.includes(e(R))));
|
|
325
325
|
}
|
|
326
|
-
),
|
|
326
|
+
), f = v(() => {
|
|
327
327
|
var r;
|
|
328
328
|
return !(l != null && l.value) || ((r = a == null ? void 0 : a.value) == null ? void 0 : r.totalCount) === void 0 ? !1 : i.value.length >= a.value.totalCount && m.value;
|
|
329
329
|
}), A = () => {
|
|
330
330
|
t(N.SELECT, i.value), t(N.UPDATE_SELECTION, i.value);
|
|
331
331
|
}, L = (r) => {
|
|
332
|
-
var
|
|
333
|
-
i.value = r,
|
|
332
|
+
var g, R;
|
|
333
|
+
i.value = r, C.value ? (_.allItemsSelected = !0, _.isIndeterminate = !1) : (_.allItemsSelected = !1, _.isIndeterminate = ((g = i.value) == null ? void 0 : g.length) > 0 && ((R = n.value) == null ? void 0 : R.length) > 0 && n.value.some(
|
|
334
334
|
(T) => {
|
|
335
335
|
var B;
|
|
336
336
|
return i.value.includes(e(T)) || ((B = T == null ? void 0 : T.children) == null ? void 0 : B.some((P) => i.value.includes(e(P))));
|
|
@@ -338,43 +338,43 @@ const hs = (s, t) => {
|
|
|
338
338
|
));
|
|
339
339
|
}, F = (r) => {
|
|
340
340
|
ae(() => {
|
|
341
|
-
var
|
|
341
|
+
var R, T;
|
|
342
342
|
_.allItemsSelected = r;
|
|
343
|
-
const
|
|
343
|
+
const g = ((T = (R = d.value) == null ? void 0 : R.filter(
|
|
344
344
|
(B) => !o(B) && ((B == null ? void 0 : B.children) === void 0 || B.children.every((P) => !o(P)))
|
|
345
345
|
)) == null ? void 0 : T.map((B) => e(B))) ?? [];
|
|
346
|
-
r ? (i.value = [.../* @__PURE__ */ new Set([...i.value, ...
|
|
346
|
+
r ? (i.value = [.../* @__PURE__ */ new Set([...i.value, ...g])], _.isIndeterminate = !C.value) : (i.value = i.value.filter((B) => !g.includes(B)), _.isIndeterminate = !S.value), A();
|
|
347
347
|
});
|
|
348
|
-
},
|
|
348
|
+
}, E = () => {
|
|
349
349
|
ae(() => {
|
|
350
350
|
L([]), A();
|
|
351
351
|
});
|
|
352
|
-
},
|
|
352
|
+
}, u = (r, g) => {
|
|
353
353
|
ae(() => {
|
|
354
|
-
var
|
|
355
|
-
L(((
|
|
354
|
+
var R;
|
|
355
|
+
L(((R = g == null ? void 0 : g.children) == null ? void 0 : R.length) > 0 ? y(r, g) : r), A();
|
|
356
356
|
});
|
|
357
|
-
}, y = (r,
|
|
357
|
+
}, y = (r, g) => {
|
|
358
358
|
var B;
|
|
359
|
-
const
|
|
360
|
-
if (r.includes(
|
|
359
|
+
const R = e(g), T = (B = g.children) == null ? void 0 : B.filter((P) => !o(P)).map((P) => e(P));
|
|
360
|
+
if (r.includes(R)) {
|
|
361
361
|
const P = r;
|
|
362
362
|
return T.forEach((k) => {
|
|
363
363
|
P.includes(k) || P.push(k);
|
|
364
364
|
}), P;
|
|
365
365
|
}
|
|
366
366
|
return r.filter((P) => !T.includes(P));
|
|
367
|
-
}, O = (r,
|
|
367
|
+
}, O = (r, g, R) => {
|
|
368
368
|
ae(() => {
|
|
369
369
|
var B, P;
|
|
370
|
-
const T = e(
|
|
371
|
-
r.includes(e(
|
|
372
|
-
!r.includes(T) && ((B =
|
|
370
|
+
const T = e(g);
|
|
371
|
+
r.includes(e(R)) ? L(
|
|
372
|
+
!r.includes(T) && ((B = g == null ? void 0 : g.children) != null && B.every((k) => r.includes(e(k)))) ? [...r, T] : r
|
|
373
373
|
) : L(
|
|
374
|
-
r.includes(T) && !((P =
|
|
374
|
+
r.includes(T) && !((P = g == null ? void 0 : g.children) != null && P.every((k) => r.includes(e(k)))) ? r.filter((k) => k !== T) : r
|
|
375
375
|
), A();
|
|
376
376
|
});
|
|
377
|
-
}, x = v(() =>
|
|
377
|
+
}, x = v(() => f.value ? "all" : m.value ? "page" : !i.value || i.value.length === 0 ? "none" : b.value ? "unselected-page" : "single");
|
|
378
378
|
return ie(
|
|
379
379
|
() => s.value,
|
|
380
380
|
() => {
|
|
@@ -384,19 +384,19 @@ const hs = (s, t) => {
|
|
|
384
384
|
), ie(
|
|
385
385
|
() => n.value,
|
|
386
386
|
() => {
|
|
387
|
-
const r = n.value.filter((
|
|
388
|
-
(
|
|
389
|
-
var
|
|
390
|
-
return ((
|
|
387
|
+
const r = n.value.filter((g) => i.value.includes(e(g))).flatMap(
|
|
388
|
+
(g) => {
|
|
389
|
+
var R;
|
|
390
|
+
return ((R = g == null ? void 0 : g.children) == null ? void 0 : R.length) > 0 ? g.children.map((T) => e(T)).filter((T) => !i.value.includes(T)) : [];
|
|
391
391
|
}
|
|
392
392
|
);
|
|
393
393
|
(r == null ? void 0 : r.length) > 0 ? (L([...i.value, ...r]), A()) : L(i.value);
|
|
394
394
|
}
|
|
395
395
|
), {
|
|
396
396
|
onAllRowSelect: F,
|
|
397
|
-
onRowSelect:
|
|
397
|
+
onRowSelect: u,
|
|
398
398
|
onNestedRowSelect: O,
|
|
399
|
-
onDeselectAll:
|
|
399
|
+
onDeselectAll: E,
|
|
400
400
|
allItemsSelectedState: _,
|
|
401
401
|
selectedItems: i,
|
|
402
402
|
selectionState: x
|
|
@@ -405,123 +405,123 @@ const hs = (s, t) => {
|
|
|
405
405
|
var i;
|
|
406
406
|
return (i = s.value.find((_) => _.field === a)) == null ? void 0 : i.direction;
|
|
407
407
|
}, sortByColumnField: (a) => {
|
|
408
|
-
var
|
|
409
|
-
if (!t.value.some((
|
|
408
|
+
var d;
|
|
409
|
+
if (!t.value.some((C) => C.field === a && C.sortable))
|
|
410
410
|
return;
|
|
411
411
|
const _ = [{
|
|
412
412
|
field: a,
|
|
413
|
-
direction: ((
|
|
413
|
+
direction: ((d = s.value.find((C) => C.field === a)) == null ? void 0 : d.direction) === be.ASCENDING ? be.DESCENDING : be.ASCENDING
|
|
414
414
|
}];
|
|
415
415
|
n("sort", _);
|
|
416
416
|
} });
|
|
417
417
|
var oe = ((s) => (s[s.ARROW_DOWN = ce.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = ce.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = ce.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = ce.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = ce.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = ce.PAGE_DOWN] = "PAGE_DOWN", s[s.END = ce.END] = "END", s[s.HOME = ce.HOME] = "HOME", s))(oe || {});
|
|
418
418
|
const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
419
|
-
const a = v(() => l.value || e.value ? !0 : n.value.some((
|
|
420
|
-
let
|
|
421
|
-
return o.value && (
|
|
422
|
-
...
|
|
419
|
+
const a = v(() => l.value || e.value ? !0 : n.value.some((E) => E.infoIconTooltip || E.sortable)), i = v(() => {
|
|
420
|
+
let E = n.value.filter(({ visible: u }) => u !== !1);
|
|
421
|
+
return o.value && (E = [
|
|
422
|
+
...E,
|
|
423
423
|
{ field: ye, label: "" }
|
|
424
|
-
]),
|
|
425
|
-
}), _ = v(() => i.value.length),
|
|
424
|
+
]), E;
|
|
425
|
+
}), _ = v(() => i.value.length), d = v(() => {
|
|
426
426
|
if (!s.value)
|
|
427
427
|
return [];
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
428
|
+
const E = Object.keys(s.value)[0];
|
|
429
|
+
if (!E || !s.value[E])
|
|
430
430
|
return [];
|
|
431
|
-
const
|
|
431
|
+
const u = [];
|
|
432
432
|
if (a.value)
|
|
433
433
|
for (const O of i.value) {
|
|
434
434
|
const x = t.value[O.field];
|
|
435
|
-
|
|
435
|
+
u.push(x);
|
|
436
436
|
}
|
|
437
|
-
const y = s.value[
|
|
437
|
+
const y = s.value[E].length;
|
|
438
438
|
for (let O = 0; O < y; O++)
|
|
439
439
|
for (const x of i.value) {
|
|
440
440
|
const r = s.value[x.field];
|
|
441
|
-
r != null && r[O] &&
|
|
441
|
+
r != null && r[O] && u.push(r[O]);
|
|
442
442
|
}
|
|
443
|
-
return
|
|
444
|
-
}),
|
|
445
|
-
const O =
|
|
443
|
+
return u;
|
|
444
|
+
}), C = (E) => Math.floor(E / _.value), m = (E, u, y) => {
|
|
445
|
+
const O = d.value.length - 1, x = _.value - 1, r = C(E), g = E - _.value * r;
|
|
446
446
|
return {
|
|
447
|
-
[oe.PAGE_UP]:
|
|
448
|
-
[oe.PAGE_DOWN]: O - x +
|
|
447
|
+
[oe.PAGE_UP]: g + (a.value ? _.value : 0),
|
|
448
|
+
[oe.PAGE_DOWN]: O - x + g,
|
|
449
449
|
[oe.END]: y ? O : _.value * r + x,
|
|
450
450
|
[oe.HOME]: y ? a.value ? _.value : 0 : _.value * r
|
|
451
|
-
}[
|
|
452
|
-
},
|
|
453
|
-
const y =
|
|
451
|
+
}[u];
|
|
452
|
+
}, S = (E, u) => {
|
|
453
|
+
const y = C(E), x = {
|
|
454
454
|
[oe.ARROW_DOWN]: _.value,
|
|
455
455
|
[oe.ARROW_UP]: y === 0 && !a.value ? 0 : -_.value,
|
|
456
456
|
[oe.ARROW_LEFT]: -1,
|
|
457
457
|
[oe.ARROW_RIGHT]: 1
|
|
458
|
-
}[
|
|
459
|
-
return r < 0 || r >=
|
|
460
|
-
}, b = (
|
|
458
|
+
}[u], r = E + x;
|
|
459
|
+
return r < 0 || r >= d.value.length ? E : r;
|
|
460
|
+
}, b = (E) => [
|
|
461
461
|
oe.PAGE_UP,
|
|
462
462
|
oe.PAGE_DOWN,
|
|
463
463
|
oe.END,
|
|
464
464
|
oe.HOME
|
|
465
|
-
].includes(
|
|
466
|
-
const O =
|
|
467
|
-
return b(
|
|
468
|
-
}, A = (
|
|
469
|
-
if (!
|
|
465
|
+
].includes(E), f = (E, u, y) => {
|
|
466
|
+
const O = d.value.indexOf(E);
|
|
467
|
+
return b(u) ? m(O, u, y) : S(O, u);
|
|
468
|
+
}, A = (E, u, y) => {
|
|
469
|
+
if (!d.value.includes(E))
|
|
470
470
|
return;
|
|
471
|
-
const O =
|
|
472
|
-
|
|
473
|
-
}, L = (
|
|
471
|
+
const O = f(E, u, y);
|
|
472
|
+
d.value[O].focus();
|
|
473
|
+
}, L = (E) => E in oe;
|
|
474
474
|
return {
|
|
475
475
|
isNavigationKeyCode: L,
|
|
476
476
|
focusOnNextGridcell: A,
|
|
477
|
-
navigationInput: (
|
|
478
|
-
const { ctrlKey:
|
|
477
|
+
navigationInput: (E) => {
|
|
478
|
+
const { ctrlKey: u, key: y, target: O } = E, x = y;
|
|
479
479
|
let r = O;
|
|
480
|
-
r.getAttribute("role") !== "menuitem" && (
|
|
480
|
+
r.getAttribute("role") !== "menuitem" && (d.value.includes(r) || (r = O.closest('[role="gridcell"], [role="columnheader"]')), d.value.includes(r) && L(x) && A(r, x, u));
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
}, xs = 90, Fs = (s, t, n, e, o) => {
|
|
484
|
-
const l =
|
|
484
|
+
const l = p(s), a = p(t), i = p(n), _ = p(e), d = v(() => l.value !== "none"), C = v(() => l.value === "automatic"), m = () => {
|
|
485
485
|
o(N.UPDATE_SHOW_MORE);
|
|
486
486
|
};
|
|
487
487
|
return ie(
|
|
488
488
|
() => a.value,
|
|
489
489
|
() => {
|
|
490
|
-
|
|
490
|
+
C.value && i.value.offsetHeight / a.value * 100 > xs && !_.value && m();
|
|
491
491
|
}
|
|
492
|
-
), { isLazyLoad:
|
|
492
|
+
), { isLazyLoad: d, isInfiniteScroll: C, verticalScrollPosition: a, emitLazyLoadEvent: m };
|
|
493
493
|
}, Bs = (s, t, n) => {
|
|
494
|
-
const e =
|
|
494
|
+
const e = p(s), o = p(t), l = ze({
|
|
495
495
|
dragging: null,
|
|
496
496
|
dragToLeft: null,
|
|
497
497
|
target: null
|
|
498
|
-
}), a = (b,
|
|
499
|
-
const A = e.value.findIndex((
|
|
498
|
+
}), a = (b, f = 0) => {
|
|
499
|
+
const A = e.value.findIndex((E) => E.field === b.field), L = A + f;
|
|
500
500
|
if (L < 0 || L > e.value.length - 1)
|
|
501
501
|
return;
|
|
502
502
|
const F = [...e.value];
|
|
503
503
|
F.splice(L, 0, F.splice(A, 1)[0]), n(N.COLUMNS, F), n(N.UPDATE_COLUMNS, F);
|
|
504
|
-
}, i = (b,
|
|
505
|
-
l.dragging = b,
|
|
506
|
-
}, _ = (b,
|
|
504
|
+
}, i = (b, f) => {
|
|
505
|
+
l.dragging = b, f.dataTransfer.setData("text", ""), f.dataTransfer.dropEffect = "move";
|
|
506
|
+
}, _ = (b, f) => {
|
|
507
507
|
l.target = b;
|
|
508
|
-
const A =
|
|
508
|
+
const A = f.currentTarget.getBoundingClientRect(), L = A.left + A.width / 2, F = f.clientX ?? 0;
|
|
509
509
|
l.dragToLeft = F <= L;
|
|
510
|
-
},
|
|
511
|
-
var
|
|
512
|
-
if (((
|
|
510
|
+
}, d = (b) => {
|
|
511
|
+
var f, A;
|
|
512
|
+
if (((f = l.dragging) == null ? void 0 : f.field) !== b.field) {
|
|
513
513
|
const L = e.value.findIndex((x) => {
|
|
514
514
|
var r;
|
|
515
515
|
return x.field === ((r = l.dragging) == null ? void 0 : r.field);
|
|
516
|
-
}), F = e.value.findIndex((x) => x.field === b.field),
|
|
516
|
+
}), F = e.value.findIndex((x) => x.field === b.field), E = l.dragToLeft ? F : F + 1, u = E > L ? E - 1 : E;
|
|
517
517
|
let y = [...e.value];
|
|
518
518
|
y.splice(
|
|
519
|
-
|
|
519
|
+
u === -1 ? 0 : u,
|
|
520
520
|
0,
|
|
521
521
|
y.splice(L, 1)[0]
|
|
522
522
|
);
|
|
523
523
|
const O = e.value.findIndex((x) => !(x != null && x.frozen));
|
|
524
|
-
((A = l.dragging) == null ? void 0 : A.frozen) !== b.frozen &&
|
|
524
|
+
((A = l.dragging) == null ? void 0 : A.frozen) !== b.frozen && E !== O && (y = y.map(
|
|
525
525
|
(x) => {
|
|
526
526
|
var r;
|
|
527
527
|
return ((r = l.dragging) == null ? void 0 : r.field) === x.field ? { ...x, frozen: !!(b != null && b.frozen) } : x;
|
|
@@ -529,22 +529,22 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
529
529
|
)), n(N.COLUMNS, y), n(N.UPDATE_COLUMNS, y);
|
|
530
530
|
}
|
|
531
531
|
l.dragging = null, l.target = null;
|
|
532
|
-
},
|
|
532
|
+
}, C = () => {
|
|
533
533
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
534
534
|
}, m = v(() => o.value ? {
|
|
535
|
-
[j.COLUMN_DRAG_START]: (b,
|
|
536
|
-
[j.COLUMN_DRAG_ENTER]: (b,
|
|
537
|
-
[j.COLUMN_DROP]: (b) =>
|
|
538
|
-
[j.COLUMN_DRAG_END]: () =>
|
|
539
|
-
} : {}),
|
|
540
|
-
dragenter: (
|
|
541
|
-
|
|
535
|
+
[j.COLUMN_DRAG_START]: (b, f) => i(b, f),
|
|
536
|
+
[j.COLUMN_DRAG_ENTER]: (b, f) => _(b, f),
|
|
537
|
+
[j.COLUMN_DROP]: (b) => d(b),
|
|
538
|
+
[j.COLUMN_DRAG_END]: () => C()
|
|
539
|
+
} : {}), S = v(() => (b) => o.value ? {
|
|
540
|
+
dragenter: (f) => {
|
|
541
|
+
f.preventDefault(), _(b, f);
|
|
542
542
|
},
|
|
543
543
|
drop: () => {
|
|
544
|
-
|
|
544
|
+
d(b);
|
|
545
545
|
},
|
|
546
|
-
dragover: (
|
|
547
|
-
|
|
546
|
+
dragover: (f) => {
|
|
547
|
+
f.preventDefault();
|
|
548
548
|
}
|
|
549
549
|
} : {});
|
|
550
550
|
return {
|
|
@@ -552,85 +552,85 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
552
552
|
draggingColumns: l,
|
|
553
553
|
// Methods
|
|
554
554
|
draggingEventsForColumns: m,
|
|
555
|
-
draggingEventsForRowCell:
|
|
555
|
+
draggingEventsForRowCell: S,
|
|
556
556
|
onMoveColumnByOffset: a
|
|
557
557
|
};
|
|
558
558
|
}, Ps = (s, t, n) => {
|
|
559
|
-
const e =
|
|
560
|
-
() => [...e.value].sort((
|
|
559
|
+
const e = p(s), o = p(t.value), l = v(
|
|
560
|
+
() => [...e.value].sort((f, A) => f.frozen === A.frozen ? 0 : f.frozen ? -1 : 1)
|
|
561
561
|
), a = v(
|
|
562
|
-
() => l.value.filter((
|
|
562
|
+
() => l.value.filter((f) => f.frozen && f.visible !== !1)
|
|
563
563
|
), i = v(
|
|
564
|
-
() => l.value.filter((
|
|
564
|
+
() => l.value.filter((f) => !f.frozen && f.visible !== !1)
|
|
565
565
|
), _ = v(
|
|
566
566
|
() => [
|
|
567
567
|
{ columnSet: a.value, id: "frozen", isFrozenColumns: !0 },
|
|
568
568
|
{ columnSet: i.value, id: "unfrozen" }
|
|
569
|
-
].filter(({ columnSet:
|
|
570
|
-
),
|
|
571
|
-
() => e.value.filter((
|
|
572
|
-
),
|
|
573
|
-
o.value =
|
|
574
|
-
},
|
|
575
|
-
n(N.COLUMNS,
|
|
576
|
-
}, b = (
|
|
569
|
+
].filter(({ columnSet: f }) => f.length)
|
|
570
|
+
), d = v(
|
|
571
|
+
() => e.value.filter((f) => (f == null ? void 0 : f.visible) !== !1 && (f == null ? void 0 : f.field) !== le).length === 1
|
|
572
|
+
), C = (f) => n(N.UPDATE_CONDENSED, f), m = (f) => {
|
|
573
|
+
o.value = f, n(N.UPDATE_ZEBRA_ROWS, f);
|
|
574
|
+
}, S = (f) => {
|
|
575
|
+
n(N.COLUMNS, f), n(N.UPDATE_COLUMNS, f);
|
|
576
|
+
}, b = (f) => {
|
|
577
577
|
const A = l.value.map(
|
|
578
|
-
(L) => (L == null ? void 0 : L.field) ===
|
|
578
|
+
(L) => (L == null ? void 0 : L.field) === f.field ? f : L
|
|
579
579
|
);
|
|
580
|
-
|
|
580
|
+
S(A);
|
|
581
581
|
};
|
|
582
|
-
return ie(t, (
|
|
583
|
-
o.value =
|
|
582
|
+
return ie(t, (f) => {
|
|
583
|
+
o.value = f;
|
|
584
584
|
}), {
|
|
585
585
|
// Values
|
|
586
586
|
columnSets: _,
|
|
587
|
-
isOnlyOneVisibleColumn:
|
|
587
|
+
isOnlyOneVisibleColumn: d,
|
|
588
588
|
internalZebraRows: o,
|
|
589
589
|
sortedColumns: l,
|
|
590
590
|
// Methods
|
|
591
|
-
onConfigSettingsColumnsUpdate:
|
|
591
|
+
onConfigSettingsColumnsUpdate: S,
|
|
592
592
|
onConfigSettingsColumnUpdate: b,
|
|
593
|
-
onConfigSettingsCondensedUpdate:
|
|
593
|
+
onConfigSettingsCondensedUpdate: C,
|
|
594
594
|
onConfigSettingsZebraRowsUpdate: m
|
|
595
595
|
};
|
|
596
596
|
}, Ms = (s, t, n, e, o, l, a) => {
|
|
597
|
-
const i =
|
|
598
|
-
ie([() => i.value, () => l.value], ([
|
|
599
|
-
s.value.scrollLeft =
|
|
597
|
+
const i = p(0), _ = p(!1), d = p(!1);
|
|
598
|
+
ie([() => i.value, () => l.value], ([f]) => {
|
|
599
|
+
s.value.scrollLeft = f, t.value.scrollLeft = f, _.value = !!f, d.value = t.value.scrollWidth - t.value.offsetWidth > f;
|
|
600
600
|
}), Ee(async () => {
|
|
601
|
-
var
|
|
602
|
-
await ae(), ((
|
|
601
|
+
var f, A;
|
|
602
|
+
await ae(), ((f = t.value) == null ? void 0 : f.offsetWidth) < ((A = t.value) == null ? void 0 : A.scrollWidth) && (d.value = !0);
|
|
603
603
|
});
|
|
604
|
-
const
|
|
605
|
-
if (i.value =
|
|
606
|
-
const A =
|
|
604
|
+
const C = (f) => {
|
|
605
|
+
if (i.value = f.target.scrollLeft, n.value = s.value.scrollHeight - f.target.scrollTop, e != null && e.value) {
|
|
606
|
+
const A = f.target.scrollLeft;
|
|
607
607
|
e.value.scrollLeft !== A && (e.value.scrollLeft = A);
|
|
608
608
|
}
|
|
609
|
-
}, m = (
|
|
610
|
-
|
|
609
|
+
}, m = (f) => {
|
|
610
|
+
f.key === "Tab" || f.key !== "ArrowRight" && f.key !== "ArrowLeft" || (f.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
611
611
|
s.value && (s.value.style.overflowX = "auto");
|
|
612
612
|
}));
|
|
613
|
-
},
|
|
614
|
-
const A =
|
|
613
|
+
}, S = (f) => {
|
|
614
|
+
const A = f.target.scrollLeft;
|
|
615
615
|
s.value.scrollLeft !== A && (s.value.scrollLeft = A);
|
|
616
616
|
}, b = v(() => {
|
|
617
|
-
var
|
|
618
|
-
return (
|
|
617
|
+
var f, A, L, F;
|
|
618
|
+
return (f = a == null ? void 0 : a.pagination) != null && f.value && ((A = a == null ? void 0 : a.stickyPagination) != null && A.value || a != null && a.isDataGridTemplate) && !((L = a == null ? void 0 : a.isLazyLoad) != null && L.value) ? { bottom: `${(((F = o.value) == null ? void 0 : F.clientHeight) ?? 0) + 1}px` } : {};
|
|
619
619
|
});
|
|
620
620
|
return {
|
|
621
621
|
// Values
|
|
622
622
|
scrollLeftPosition: i,
|
|
623
623
|
hasLeftOverflow: _,
|
|
624
|
-
hasRightOverflow:
|
|
624
|
+
hasRightOverflow: d,
|
|
625
625
|
horizontalScrollbarConditionalStyles: b,
|
|
626
626
|
// Methods
|
|
627
|
-
updateScrollPosition:
|
|
627
|
+
updateScrollPosition: C,
|
|
628
628
|
updateScrollPositionOnFrozenColumnsNavigation: m,
|
|
629
|
-
syncVirtualScrollerWithBody:
|
|
629
|
+
syncVirtualScrollerWithBody: S
|
|
630
630
|
};
|
|
631
631
|
}, Us = (s, t, n, e) => {
|
|
632
|
-
const o =
|
|
633
|
-
var A, L, F,
|
|
632
|
+
const o = p(null), l = v(() => {
|
|
633
|
+
var A, L, F, E;
|
|
634
634
|
if (!o.value || o.value.field === le)
|
|
635
635
|
return {
|
|
636
636
|
hoveredOverColumnField: "",
|
|
@@ -638,12 +638,12 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
638
638
|
noBorderLeft: !1,
|
|
639
639
|
noBorderRight: !1
|
|
640
640
|
};
|
|
641
|
-
const a = (L = (A = s.value.find((
|
|
641
|
+
const a = (L = (A = s.value.find((u) => u.isFrozenColumns)) == null ? void 0 : A.columnSet) == null ? void 0 : L.filter((u) => u.field !== le), i = s.value.find((u) => !(u != null && u.isFrozenColumns)), _ = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, d = !o.value.frozen && ((F = i == null ? void 0 : i.columnSet) == null ? void 0 : F[0].field) === o.value.field, C = (t.value || n.value) && _, m = (t.value || n.value) && !a && d, S = a && d, b = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, f = n.value && e.value && !o.value.frozen && ((E = i == null ? void 0 : i.columnSet) == null ? void 0 : E[i.columnSet.length - 1].field) === o.value.field;
|
|
642
642
|
return {
|
|
643
643
|
hoveredOverColumnField: o.value.field,
|
|
644
|
-
isSeparatorOffset:
|
|
645
|
-
noBorderLeft: !!
|
|
646
|
-
noBorderRight: !!b || !!
|
|
644
|
+
isSeparatorOffset: f,
|
|
645
|
+
noBorderLeft: !!C || !!m || !!S,
|
|
646
|
+
noBorderRight: !!b || !!f
|
|
647
647
|
};
|
|
648
648
|
});
|
|
649
649
|
return {
|
|
@@ -659,42 +659,49 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
659
659
|
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
660
660
|
}, Ut = (s) => {
|
|
661
661
|
(s == null ? void 0 : s.length) > 0 && s.forEach((t) => t == null ? void 0 : t.node.setAttribute("tabindex", "0"));
|
|
662
|
-
}, $s = () => {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
662
|
+
}, $s = (s) => {
|
|
663
|
+
var _;
|
|
664
|
+
const t = window.getSelection();
|
|
665
|
+
if (!t || !t.rangeCount)
|
|
666
|
+
return;
|
|
667
|
+
const n = t.getRangeAt(0).cloneContents(), e = (_ = n.textContent) == null ? void 0 : _.trim();
|
|
668
|
+
if (!e)
|
|
669
|
+
return;
|
|
670
|
+
const o = n.querySelectorAll('[role="row"]');
|
|
671
|
+
let l = "<table>", a = "";
|
|
672
|
+
const i = (d) => {
|
|
673
|
+
d.forEach((C) => {
|
|
674
|
+
const m = C.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", S = C.textContent.trim();
|
|
675
|
+
S && (l += `<${m}>${S}</${m}>`, a += `${S} `);
|
|
669
676
|
});
|
|
670
677
|
};
|
|
671
|
-
if (!
|
|
672
|
-
const
|
|
678
|
+
if (!o.length) {
|
|
679
|
+
const d = n.querySelectorAll(
|
|
673
680
|
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
674
681
|
);
|
|
675
|
-
if (
|
|
676
|
-
|
|
682
|
+
if (d.length)
|
|
683
|
+
l += "<tr>", i(d), l += "</tr>";
|
|
677
684
|
else {
|
|
678
|
-
navigator.clipboard.writeText(
|
|
685
|
+
s == null || s.preventDefault(), navigator.clipboard.writeText(e);
|
|
679
686
|
return;
|
|
680
687
|
}
|
|
681
688
|
}
|
|
682
|
-
|
|
683
|
-
const
|
|
689
|
+
o.forEach((d) => {
|
|
690
|
+
const C = d.querySelectorAll(
|
|
684
691
|
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
685
692
|
);
|
|
686
|
-
if (
|
|
687
|
-
|
|
693
|
+
if (l += "<tr>", C.length)
|
|
694
|
+
i(C);
|
|
688
695
|
else {
|
|
689
|
-
const
|
|
690
|
-
|
|
696
|
+
const m = d.textContent.trim();
|
|
697
|
+
l += `<td>${m}</td>`, a += `${m} `;
|
|
691
698
|
}
|
|
692
|
-
|
|
699
|
+
l += "</tr>", a += `
|
|
693
700
|
`;
|
|
694
|
-
}),
|
|
701
|
+
}), l += "</table>", s == null || s.preventDefault(), navigator.clipboard.write([
|
|
695
702
|
new ClipboardItem({
|
|
696
|
-
"text/html": new Blob([
|
|
697
|
-
"text/plain": new Blob([
|
|
703
|
+
"text/html": new Blob([l], { type: "text/html" }),
|
|
704
|
+
"text/plain": new Blob([a || e], { type: "text/plain" })
|
|
698
705
|
})
|
|
699
706
|
]);
|
|
700
707
|
};
|
|
@@ -1002,7 +1009,7 @@ const co = ro.exports, uo = {
|
|
|
1002
1009
|
},
|
|
1003
1010
|
emits: ["sort", "column-hover"],
|
|
1004
1011
|
setup(s, { expose: t, emit: n }) {
|
|
1005
|
-
const e = s, o = 100, { t: l } = he(), { columns: a, sortBy: i } = ke(e), _ =
|
|
1012
|
+
const e = s, o = 100, { t: l } = he(), { columns: a, sortBy: i } = ke(e), _ = p(), d = p({}), C = p({}), m = p(), S = p(), b = (c) => n(j.SELECT_ALL_ROWS, c), f = (c) => c.field === le, A = v(() => e.selectionState === "all"), L = v(
|
|
1006
1013
|
() => {
|
|
1007
1014
|
var c, U, X;
|
|
1008
1015
|
return [
|
|
@@ -1041,7 +1048,7 @@ const co = ro.exports, uo = {
|
|
|
1041
1048
|
}
|
|
1042
1049
|
].filter(Boolean);
|
|
1043
1050
|
}
|
|
1044
|
-
), { startResize: F, isResizing:
|
|
1051
|
+
), { startResize: F, isResizing: E, columnHoverEventToEmitAfterResizing: u } = hs(a, n), { isSorting: y, getSortingDirection: O, sortByColumnField: x } = Is(i, a, n), r = (c) => {
|
|
1045
1052
|
var ne;
|
|
1046
1053
|
if (!c.sortable)
|
|
1047
1054
|
return null;
|
|
@@ -1050,7 +1057,7 @@ const co = ro.exports, uo = {
|
|
|
1050
1057
|
[be.ASCENDING]: Ie.ASCENDING,
|
|
1051
1058
|
[be.DESCENDING]: Ie.DESCENDING
|
|
1052
1059
|
}[U] : Ie.NONE;
|
|
1053
|
-
},
|
|
1060
|
+
}, g = v(() => (c) => e.hasDraggableColumns ? {
|
|
1054
1061
|
dragstart: (U) => {
|
|
1055
1062
|
n(j.COLUMN_DRAG_START, c, U);
|
|
1056
1063
|
},
|
|
@@ -1066,7 +1073,7 @@ const co = ro.exports, uo = {
|
|
|
1066
1073
|
dragend: () => {
|
|
1067
1074
|
n(j.COLUMN_DRAG_END);
|
|
1068
1075
|
}
|
|
1069
|
-
} : {}),
|
|
1076
|
+
} : {}), R = v(
|
|
1070
1077
|
() => (c) => [
|
|
1071
1078
|
{
|
|
1072
1079
|
text: l("moveColumnLeft"),
|
|
@@ -1098,39 +1105,39 @@ const co = ro.exports, uo = {
|
|
|
1098
1105
|
}
|
|
1099
1106
|
].filter(Boolean)
|
|
1100
1107
|
), T = (c) => {
|
|
1101
|
-
m.value = c.field,
|
|
1108
|
+
m.value = c.field, S.value && clearTimeout(S.value);
|
|
1102
1109
|
}, B = (c) => {
|
|
1103
1110
|
const U = setTimeout(() => {
|
|
1104
1111
|
c.field === m.value && (m.value = "");
|
|
1105
1112
|
}, o);
|
|
1106
|
-
|
|
1113
|
+
S.value = U;
|
|
1107
1114
|
}, P = (c) => {
|
|
1108
1115
|
let U = {
|
|
1109
1116
|
mouseenter: () => {
|
|
1110
|
-
T(c),
|
|
1117
|
+
T(c), E.value ? u.value = c : n("column-hover", c);
|
|
1111
1118
|
},
|
|
1112
1119
|
mouseleave: () => {
|
|
1113
|
-
B(c),
|
|
1120
|
+
B(c), E.value ? u.value = null : n("column-hover", null);
|
|
1114
1121
|
},
|
|
1115
1122
|
focus: () => {
|
|
1116
|
-
T(c),
|
|
1123
|
+
T(c), f(c) && je(d.value[c.field]);
|
|
1117
1124
|
},
|
|
1118
1125
|
focusout: (X) => {
|
|
1119
1126
|
var ne;
|
|
1120
1127
|
(ne = _.value) != null && ne.contains(X == null ? void 0 : X.relatedTarget) || B(c);
|
|
1121
1128
|
}
|
|
1122
1129
|
};
|
|
1123
|
-
return
|
|
1130
|
+
return f(c) || (U = {
|
|
1124
1131
|
...U,
|
|
1125
|
-
...
|
|
1132
|
+
...g.value(c)
|
|
1126
1133
|
}), U;
|
|
1127
1134
|
}, k = (c) => c.infoIconTooltip || c.sortable || e.hasColumnPanel, K = (c, U) => {
|
|
1128
1135
|
var X;
|
|
1129
|
-
((X =
|
|
1136
|
+
((X = d.value) == null ? void 0 : X[U]) === void 0 && (d.value = { ...d.value, [U]: null }), c !== null && (d.value[U] = c);
|
|
1130
1137
|
}, Y = _e(
|
|
1131
1138
|
Te,
|
|
1132
1139
|
v(() => !1)
|
|
1133
|
-
), ee = _e(xe,
|
|
1140
|
+
), ee = _e(xe, p(!1)), G = v(() => {
|
|
1134
1141
|
var U;
|
|
1135
1142
|
const c = {
|
|
1136
1143
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
@@ -1147,7 +1154,7 @@ const co = ro.exports, uo = {
|
|
|
1147
1154
|
}), M = v(() => ({
|
|
1148
1155
|
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1149
1156
|
})), w = (c, U) => c && U === 0 ? dt.BOTTOM_START : dt.BOTTOM_END, W = (c, U) => {
|
|
1150
|
-
var X, ne, pe, Re,
|
|
1157
|
+
var X, ne, pe, Re, h, I, H, te, se, Z;
|
|
1151
1158
|
return {
|
|
1152
1159
|
"b-data-grid-columns__column--column-hovered": c.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1153
1160
|
"b-data-grid-columns__column--column-hovered-no-border-left": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
@@ -1159,7 +1166,7 @@ const co = ro.exports, uo = {
|
|
|
1159
1166
|
"b-data-grid-columns__column--numeric": c == null ? void 0 : c.numeric,
|
|
1160
1167
|
"b-data-grid-columns__column--frozen": c == null ? void 0 : c.frozen,
|
|
1161
1168
|
"b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((Re = (pe = e.draggingColumns) == null ? void 0 : pe.dragging) == null ? void 0 : Re.field),
|
|
1162
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((I = (
|
|
1169
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((I = (h = e.draggingColumns) == null ? void 0 : h.target) == null ? void 0 : I.field) && ((H = e.draggingColumns) == null ? void 0 : H.dragToLeft),
|
|
1163
1170
|
"b-data-grid-columns__column--is-re-ordering-target-right": (c == null ? void 0 : c.field) === ((se = (te = e.draggingColumns) == null ? void 0 : te.target) == null ? void 0 : se.field) && !((Z = e.draggingColumns) != null && Z.dragToLeft),
|
|
1164
1171
|
"b-data-grid-columns__column--with-sorting-or-column-panel": c.sortable || c.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1165
1172
|
"b-data-grid-columns--small-container": Y.value
|
|
@@ -1177,8 +1184,8 @@ const co = ro.exports, uo = {
|
|
|
1177
1184
|
"b-data-grid-columns__menu--hovered": m.value === c.field || ee.value
|
|
1178
1185
|
});
|
|
1179
1186
|
return t({
|
|
1180
|
-
columnHeaderRefs:
|
|
1181
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: i, allColumnsRef: _, columnHeaderRefs:
|
|
1187
|
+
columnHeaderRefs: d
|
|
1188
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: i, allColumnsRef: _, columnHeaderRefs: d, contextMenuRef: C, hoveredColumnField: m, closingTimeOutId: S, onAllRowSelect: b, isActionsColumn: f, isAllSelectionState: A, selectAllMenu: L, startResize: F, isResizing: E, columnHoverEventToEmitAfterResizing: u, isSorting: y, getSortingDirection: O, sortByColumnField: x, getSortingColumnDirection: r, draggingEventsForColumn: g, contextualMenuData: R, showContextualMenu: T, hideContextualMenu: B, dataGridColumnEvents: P, hasColumnActions: k, registerColumnsRefs: K, isSmallContainer: Y, isTouchDevice: ee, conditionalColumnsClasses: G, conditionalSelectColumnClasses: M, computeMenuPosition: w, conditionalColumnClasses: W, conditionalColumnHeaderAndActionsClasses: $, conditionalColumnActionsClasses: z, conditionalColumnSeparatorClasses: ve, conditionalColumnHeaderClasses: me, conditionalColumnMenuClasses: re, BentoCheckbox: Dt, BentoDatagridSortDirection: be, BentoTypography: Se, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: ye, BentoInfoIcon: rs, DatagridColumnsEvent: j, BentoMenu: Ft, BentoToggleButton: Ze, DecorativeCheckbox: cs, ArrowUpAndDownSortIcon: Hs, SortAscendingIcon: Qs, SortDescendingIcon: oo, TriangleDown: co };
|
|
1182
1189
|
}
|
|
1183
1190
|
});
|
|
1184
1191
|
var _o = function() {
|
|
@@ -1267,12 +1274,12 @@ const So = bo.exports, Ro = {
|
|
|
1267
1274
|
},
|
|
1268
1275
|
emits: ["visible-column", "updated-column"],
|
|
1269
1276
|
setup(s, { emit: t }) {
|
|
1270
|
-
const { t: n } = he(), e =
|
|
1271
|
-
var
|
|
1272
|
-
return (
|
|
1277
|
+
const { t: n } = he(), e = p(!1), o = v(() => {
|
|
1278
|
+
var S;
|
|
1279
|
+
return (S = s.column) == null ? void 0 : S.frozen;
|
|
1273
1280
|
}), l = v(() => {
|
|
1274
|
-
var
|
|
1275
|
-
return ((
|
|
1281
|
+
var S;
|
|
1282
|
+
return ((S = s.column) == null ? void 0 : S.visible) !== !1;
|
|
1276
1283
|
}), a = _e(
|
|
1277
1284
|
Te,
|
|
1278
1285
|
v(() => !1)
|
|
@@ -1280,9 +1287,9 @@ const So = bo.exports, Ro = {
|
|
|
1280
1287
|
t("visible-column", { ...s.column, visible: !l.value });
|
|
1281
1288
|
}, _ = () => {
|
|
1282
1289
|
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1283
|
-
},
|
|
1290
|
+
}, d = () => {
|
|
1284
1291
|
o.value || (e.value = !0);
|
|
1285
|
-
},
|
|
1292
|
+
}, C = () => {
|
|
1286
1293
|
o.value || (e.value = !1);
|
|
1287
1294
|
}, m = v(() => ({
|
|
1288
1295
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
@@ -1296,8 +1303,8 @@ const So = bo.exports, Ro = {
|
|
|
1296
1303
|
isSmallContainer: a,
|
|
1297
1304
|
// Methods
|
|
1298
1305
|
toggleColumnVisibility: i,
|
|
1299
|
-
showFreezeIcon:
|
|
1300
|
-
hideFreezeIcon:
|
|
1306
|
+
showFreezeIcon: d,
|
|
1307
|
+
hideFreezeIcon: C,
|
|
1301
1308
|
toggleColumnFreeze: _,
|
|
1302
1309
|
// Translations
|
|
1303
1310
|
t: n
|
|
@@ -1414,40 +1421,40 @@ const To = yo.exports, Oo = {
|
|
|
1414
1421
|
fe.UPDATE_ZEBRA_ROWS
|
|
1415
1422
|
],
|
|
1416
1423
|
setup(s, { emit: t }) {
|
|
1417
|
-
const { t: n } = he(), e =
|
|
1418
|
-
|
|
1419
|
-
},
|
|
1420
|
-
() => !s.columns.some((
|
|
1424
|
+
const { t: n } = he(), e = p(null), o = De("data-grid-config-settings-popover"), l = p(null), a = p(!1), i = p(!0), _ = p(null), d = p(""), C = Ue(s, "columns"), m = p(!1), S = vs(d, C), b = () => {
|
|
1425
|
+
d.value = "";
|
|
1426
|
+
}, f = v(
|
|
1427
|
+
() => !s.columns.some((g) => g.visible === !1 && !g.mandatory)
|
|
1421
1428
|
), A = () => {
|
|
1422
1429
|
b(), m.value = !m.value, m.value ? ae(() => {
|
|
1423
|
-
var
|
|
1424
|
-
return (
|
|
1430
|
+
var g;
|
|
1431
|
+
return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
|
|
1425
1432
|
}) : ae(() => {
|
|
1426
|
-
var
|
|
1427
|
-
return (
|
|
1428
|
-
}), i.value =
|
|
1429
|
-
}, L = (
|
|
1430
|
-
const
|
|
1433
|
+
var g, R;
|
|
1434
|
+
return (R = (g = _ == null ? void 0 : _.value) == null ? void 0 : g.$el) == null ? void 0 : R.focus();
|
|
1435
|
+
}), i.value = f.value;
|
|
1436
|
+
}, L = (g) => g.mandatory ?? !1, F = (g) => {
|
|
1437
|
+
const R = s.columns.map((T) => ({
|
|
1431
1438
|
...T,
|
|
1432
|
-
visible:
|
|
1439
|
+
visible: g.field === T.field ? g.visible : T.visible
|
|
1433
1440
|
}));
|
|
1434
|
-
t(fe.UPDATE_COLUMNS,
|
|
1435
|
-
},
|
|
1436
|
-
|
|
1441
|
+
t(fe.UPDATE_COLUMNS, R);
|
|
1442
|
+
}, E = (g) => {
|
|
1443
|
+
g ? t(
|
|
1437
1444
|
fe.UPDATE_COLUMNS,
|
|
1438
|
-
s.columns.map((
|
|
1445
|
+
s.columns.map((R) => ({ ...R, visible: !0 }))
|
|
1439
1446
|
) : t(
|
|
1440
1447
|
fe.UPDATE_COLUMNS,
|
|
1441
|
-
s.columns.map((
|
|
1448
|
+
s.columns.map((R) => ({ ...R, visible: (R == null ? void 0 : R.mandatory) === !0 }))
|
|
1442
1449
|
);
|
|
1443
|
-
},
|
|
1444
|
-
const
|
|
1450
|
+
}, u = (g) => {
|
|
1451
|
+
const R = s.columns.map((T) => ({
|
|
1445
1452
|
...T,
|
|
1446
|
-
frozen:
|
|
1453
|
+
frozen: g.field === T.field ? !!(g != null && g.frozen) : !!(T != null && T.frozen)
|
|
1447
1454
|
}));
|
|
1448
|
-
t(fe.UPDATE_COLUMNS,
|
|
1449
|
-
}, y = (
|
|
1450
|
-
a.value =
|
|
1455
|
+
t(fe.UPDATE_COLUMNS, R);
|
|
1456
|
+
}, y = (g) => {
|
|
1457
|
+
a.value = g, i.value = f.value;
|
|
1451
1458
|
};
|
|
1452
1459
|
return {
|
|
1453
1460
|
// Values
|
|
@@ -1455,23 +1462,23 @@ const To = yo.exports, Oo = {
|
|
|
1455
1462
|
popoverId: o,
|
|
1456
1463
|
isConfigSettingsPanelOpen: a,
|
|
1457
1464
|
allColumnsVisbilityToggleState: i,
|
|
1458
|
-
filteredColumnVisibilityColumns:
|
|
1459
|
-
searchTerm:
|
|
1465
|
+
filteredColumnVisibilityColumns: S,
|
|
1466
|
+
searchTerm: d,
|
|
1460
1467
|
isColumnVisibilityFilterShown: m,
|
|
1461
1468
|
searchBarRef: l,
|
|
1462
1469
|
searchButtonRef: _,
|
|
1463
1470
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: le,
|
|
1464
1471
|
// Methods
|
|
1465
1472
|
setConfigSettingsPanelVisibility: y,
|
|
1466
|
-
emitCondensedToggle: (
|
|
1467
|
-
toggleAllColumnVisibility:
|
|
1473
|
+
emitCondensedToggle: (g) => t(fe.UPDATE_CONDENSED, g),
|
|
1474
|
+
toggleAllColumnVisibility: E,
|
|
1468
1475
|
clearAction: b,
|
|
1469
1476
|
toggleColumnFilter: A,
|
|
1470
1477
|
emitVisibleColumns: F,
|
|
1471
|
-
emitFrozenColumns:
|
|
1478
|
+
emitFrozenColumns: u,
|
|
1472
1479
|
onClickOutside: () => y(!1),
|
|
1473
1480
|
isColumnVisibilityToggleDisabled: L,
|
|
1474
|
-
emitZebraRowsToggle: (
|
|
1481
|
+
emitZebraRowsToggle: (g) => t(fe.UPDATE_ZEBRA_ROWS, g),
|
|
1475
1482
|
// Translations
|
|
1476
1483
|
t: n
|
|
1477
1484
|
};
|
|
@@ -1678,10 +1685,10 @@ const Rt = Ho.exports, Vo = {
|
|
|
1678
1685
|
},
|
|
1679
1686
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1680
1687
|
setup(s, { emit: t }) {
|
|
1681
|
-
const n = s, { t: e } = he(), o = _e(xe,
|
|
1682
|
-
if ("text" in
|
|
1683
|
-
return
|
|
1684
|
-
switch (
|
|
1688
|
+
const n = s, { t: e } = he(), o = _e(xe, p(!1)), l = (u) => {
|
|
1689
|
+
if ("text" in u && u.text !== void 0)
|
|
1690
|
+
return u.text;
|
|
1691
|
+
switch (u.variant) {
|
|
1685
1692
|
case "copy":
|
|
1686
1693
|
return e("copy");
|
|
1687
1694
|
case "edit":
|
|
@@ -1691,10 +1698,10 @@ const Rt = Ho.exports, Vo = {
|
|
|
1691
1698
|
case "more":
|
|
1692
1699
|
return e("more");
|
|
1693
1700
|
default:
|
|
1694
|
-
return
|
|
1701
|
+
return u.title;
|
|
1695
1702
|
}
|
|
1696
|
-
}, a = (
|
|
1697
|
-
switch (
|
|
1703
|
+
}, a = (u) => {
|
|
1704
|
+
switch (u.variant) {
|
|
1698
1705
|
case "copy":
|
|
1699
1706
|
return ct;
|
|
1700
1707
|
case "edit":
|
|
@@ -1709,21 +1716,21 @@ const Rt = Ho.exports, Vo = {
|
|
|
1709
1716
|
"b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
|
|
1710
1717
|
"b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
|
|
1711
1718
|
"b-data-grid-cell-actions__background-gradient--selected": n.isSelected
|
|
1712
|
-
})),
|
|
1719
|
+
})), d = v(() => ({
|
|
1713
1720
|
"b-data-grid-cell-actions__actions--with-row-actions": i.value,
|
|
1714
1721
|
"b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
|
|
1715
1722
|
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
1716
1723
|
"b-data-grid-cell-actions__actions--selected": n.isSelected
|
|
1717
|
-
})),
|
|
1718
|
-
function m(
|
|
1719
|
-
return typeof
|
|
1724
|
+
})), C = v(() => !i.value || i.value && n.hasRightOverflow);
|
|
1725
|
+
function m(u) {
|
|
1726
|
+
return typeof u == "function";
|
|
1720
1727
|
}
|
|
1721
|
-
const
|
|
1728
|
+
const S = v(() => {
|
|
1722
1729
|
var y;
|
|
1723
|
-
const
|
|
1724
|
-
if (o.value && !i.value &&
|
|
1730
|
+
const u = m(n.cellActions) ? (y = n.cellActions) == null ? void 0 : y.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1731
|
+
if (o.value && !i.value && u) {
|
|
1725
1732
|
const O = [];
|
|
1726
|
-
return
|
|
1733
|
+
return u.forEach((x) => {
|
|
1727
1734
|
x.menuData ? x.menuData.forEach((r) => {
|
|
1728
1735
|
O.push(r);
|
|
1729
1736
|
}) : O.push({
|
|
@@ -1742,12 +1749,12 @@ const Rt = Ho.exports, Vo = {
|
|
|
1742
1749
|
}
|
|
1743
1750
|
];
|
|
1744
1751
|
}
|
|
1745
|
-
return !o.value && (
|
|
1752
|
+
return !o.value && (u == null ? void 0 : u.length) > 2 && It(
|
|
1746
1753
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1747
|
-
),
|
|
1748
|
-
}), b = v(() => (
|
|
1749
|
-
if (!(!y &&
|
|
1750
|
-
switch (
|
|
1754
|
+
), u == null ? void 0 : u.slice(0, 2);
|
|
1755
|
+
}), b = v(() => (u, y) => {
|
|
1756
|
+
if (!(!y && u.isShort || y && !u.isShort))
|
|
1757
|
+
switch (u.variant) {
|
|
1751
1758
|
case "copy":
|
|
1752
1759
|
return e("copy");
|
|
1753
1760
|
case "edit":
|
|
@@ -1757,25 +1764,25 @@ const Rt = Ho.exports, Vo = {
|
|
|
1757
1764
|
case "more":
|
|
1758
1765
|
return e("more");
|
|
1759
1766
|
default:
|
|
1760
|
-
return
|
|
1767
|
+
return u.title;
|
|
1761
1768
|
}
|
|
1762
|
-
}),
|
|
1769
|
+
}), f = (u) => (u == null ? void 0 : u.event) !== void 0 ? {
|
|
1763
1770
|
click: (y) => {
|
|
1764
|
-
y.stopPropagation(),
|
|
1771
|
+
y.stopPropagation(), u.event(n.rowDataItem, n.columnKey);
|
|
1765
1772
|
}
|
|
1766
|
-
} : {}, A = (
|
|
1767
|
-
...
|
|
1773
|
+
} : {}, A = (u) => ({
|
|
1774
|
+
...u,
|
|
1768
1775
|
handler: () => {
|
|
1769
|
-
|
|
1776
|
+
u != null && u.handler && typeof u.handler == "function" && (u == null || u.handler()), u != null && u.event && typeof u.event == "function" && (u == null || u.event(n.rowDataItem, n.columnKey));
|
|
1770
1777
|
}
|
|
1771
|
-
}), L = (
|
|
1778
|
+
}), L = (u) => u.map((y) => {
|
|
1772
1779
|
const O = y;
|
|
1773
1780
|
return O != null && O.items && (O.items = L(O.items)), { ...A(O) };
|
|
1774
1781
|
});
|
|
1775
|
-
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: i, conditionalCellActionsBackgroundGradientClasses: _, conditionalCellActionsClasses:
|
|
1782
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: i, conditionalCellActionsBackgroundGradientClasses: _, conditionalCellActionsClasses: d, showGradientElement: C, isBentoColumnCellActionsByCellValueDataFn: m, computedCellActions: S, getButtonTitle: b, generateButtonEvents: f, generateMenuEvents: A, transformMenuEvents: L, getCopyText: (u) => {
|
|
1776
1783
|
var y, O;
|
|
1777
|
-
return (
|
|
1778
|
-
}, shouldShowMenuIconLeft: (
|
|
1784
|
+
return (u == null ? void 0 : u.getCopyData) !== void 0 ? u.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (O = (y = n.rowDataItem) == null ? void 0 : y[n.columnKey]) == null ? void 0 : O.toString() : "";
|
|
1785
|
+
}, shouldShowMenuIconLeft: (u) => u.iconLeft || (u == null ? void 0 : u.variant) === "more", BentoButton: xt, BentoMenu: Ft, Copy: ct, vBentoTooltipDirective: Nt, Edit1Icon: Rt, ExternalLinkIcon: rt, OptionsVerticalIcon: it };
|
|
1779
1786
|
}
|
|
1780
1787
|
});
|
|
1781
1788
|
var qo = function() {
|
|
@@ -1982,7 +1989,7 @@ const Et = () => {
|
|
|
1982
1989
|
},
|
|
1983
1990
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
1984
1991
|
setup(s, { expose: t, emit: n }) {
|
|
1985
|
-
const e = s, o = We(), l = He(o), { t: a } = he(), i =
|
|
1992
|
+
const e = s, o = We(), l = He(o), { t: a } = he(), i = p(null), _ = p(null), d = p(!1), C = p([]), m = p(!1), S = p(), b = p(!1), f = v(() => {
|
|
1986
1993
|
var w;
|
|
1987
1994
|
return !!((w = e.rowData) != null && w[e.column.field]);
|
|
1988
1995
|
}), A = v(
|
|
@@ -1992,12 +1999,12 @@ const Et = () => {
|
|
|
1992
1999
|
}
|
|
1993
2000
|
), L = v(
|
|
1994
2001
|
() => e.column.field === le && !e.selectable && !e.nestedContent
|
|
1995
|
-
), F = v(() => !L.value && (x(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !b.value || m.value) ? "0" : (e.column.field === le, "-1")),
|
|
2002
|
+
), F = v(() => !L.value && (x(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !b.value || m.value) ? "0" : (e.column.field === le, "-1")), E = (w, W) => (w == null ? void 0 : w.overflow) === $e.ELLIPSIS ? `${W}` : void 0, u = (w) => w ?? "-", y = (w) => e.columnSets.slice(0, w).reduce((W, { columnSet: $ }) => W + $.length, 0), O = (w, W) => w + y(W), x = (w, W, $) => y() * w + O(W, $), r = (w) => {
|
|
1996
2003
|
var W;
|
|
1997
|
-
(w === null || !i.value.contains(w) && !((W =
|
|
1998
|
-
},
|
|
1999
|
-
|
|
2000
|
-
},
|
|
2004
|
+
(w === null || !i.value.contains(w) && !((W = C.value) != null && W.map(($) => $.value).some(($) => $ === w || ($ == null ? void 0 : $.contains(w))))) && (d.value = !1);
|
|
2005
|
+
}, g = () => {
|
|
2006
|
+
d.value = !1;
|
|
2007
|
+
}, R = p(!1), T = (w) => {
|
|
2001
2008
|
const W = {
|
|
2002
2009
|
...e.draggingEventsForRowCell(w),
|
|
2003
2010
|
// Focus on the first interactive child in the grid cell if one exists
|
|
@@ -2009,52 +2016,52 @@ const Et = () => {
|
|
|
2009
2016
|
column: e.column,
|
|
2010
2017
|
rowIndex: e.rowIndex,
|
|
2011
2018
|
colIndex: O(e.colIndex, e.columnSetIndex)
|
|
2012
|
-
}), Ut(
|
|
2019
|
+
}), Ut(S.value), await ae(), je(i.value) && (R.value = !0);
|
|
2013
2020
|
},
|
|
2014
2021
|
focusout: () => {
|
|
2015
|
-
Et() && (
|
|
2022
|
+
Et() && (R.value = !1);
|
|
2016
2023
|
},
|
|
2017
2024
|
keydown: (z) => {
|
|
2018
|
-
z.key !== ce.TAB && (
|
|
2025
|
+
z.key !== ce.TAB && (R.value = !1, m.value = !1, we(i.value));
|
|
2019
2026
|
}
|
|
2020
2027
|
}, $ = { ...W };
|
|
2021
2028
|
return w.frozen && ($.keyup = (z) => n("on-frozen-columns-key-press", z), $.keydown = (z) => {
|
|
2022
2029
|
W.keydown(z), n("on-frozen-columns-key-press", z);
|
|
2023
2030
|
}), w.cellActions && ($.mouseenter = () => {
|
|
2024
|
-
|
|
2031
|
+
d.value = !0;
|
|
2025
2032
|
}, $.mouseleave = (z) => {
|
|
2026
2033
|
r(z == null ? void 0 : z.relatedTarget);
|
|
2027
2034
|
}, $.focus = async (z) => {
|
|
2028
|
-
W.focus(z), await ae(),
|
|
2035
|
+
W.focus(z), await ae(), d.value = !0;
|
|
2029
2036
|
}, $.focusout = (z) => {
|
|
2030
2037
|
W.focusout(z), r(z == null ? void 0 : z.relatedTarget);
|
|
2031
2038
|
}), $;
|
|
2032
2039
|
};
|
|
2033
2040
|
Ee(() => {
|
|
2034
|
-
|
|
2041
|
+
S.value = we(i.value);
|
|
2035
2042
|
});
|
|
2036
2043
|
const B = () => {
|
|
2037
2044
|
n("nested-content-toggled");
|
|
2038
2045
|
};
|
|
2039
2046
|
ie(
|
|
2040
|
-
() =>
|
|
2047
|
+
() => d.value,
|
|
2041
2048
|
() => {
|
|
2042
|
-
|
|
2049
|
+
d.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
2043
2050
|
}
|
|
2044
2051
|
);
|
|
2045
2052
|
const P = (w) => {
|
|
2046
|
-
|
|
2053
|
+
C.value.push(w);
|
|
2047
2054
|
}, k = (w) => {
|
|
2048
|
-
i.value.contains(w == null ? void 0 : w.relatedTarget) || (
|
|
2055
|
+
i.value.contains(w == null ? void 0 : w.relatedTarget) || (d.value = !1);
|
|
2049
2056
|
};
|
|
2050
2057
|
Ne(os, {
|
|
2051
2058
|
registerMenuContainerElement: P,
|
|
2052
2059
|
menuMouseLeave: k
|
|
2053
2060
|
});
|
|
2054
|
-
const K = _e(zt,
|
|
2061
|
+
const K = _e(zt, p(!1)), Y = _e(
|
|
2055
2062
|
Te,
|
|
2056
2063
|
v(() => !1)
|
|
2057
|
-
), ee = _e(xe,
|
|
2064
|
+
), ee = _e(xe, p(!1)), G = (w) => {
|
|
2058
2065
|
var W, $, z, ve, me, re, c;
|
|
2059
2066
|
return {
|
|
2060
2067
|
[`b-data-grid-cell--${Q.COLUMN_HOVERED}`]: (w == null ? void 0 : w.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
@@ -2077,11 +2084,11 @@ const Et = () => {
|
|
|
2077
2084
|
"b-data-grid-cell--small-container": Y.value
|
|
2078
2085
|
};
|
|
2079
2086
|
}, M = v(() => ({
|
|
2080
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element":
|
|
2087
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": R.value
|
|
2081
2088
|
}));
|
|
2082
2089
|
return t({
|
|
2083
2090
|
gridcellRef: i
|
|
2084
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: i, cellActionsRef: _, shouldShowCellActions:
|
|
2091
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: i, cellActionsRef: _, shouldShowCellActions: d, childrenMenuContainerElements: C, isFocused: m, focusableItems: S, hasEverBeenFocused: b, hasRowData: f, controlledNestedRowElementIds: A, ariaHidden: L, tabIndex: F, conditionalTitleAttribute: E, getRowData: u, sumColumnAmountsInColumnSets: y, getColIndex: O, getCellIndex: x, isLeavingCellFocus: r, onMenuClose: g, hasInteractiveElFocusedInside: R, getGridcellEvents: T, toggleNestedContent: B, registerMenuContainerElement: P, menuMouseLeave: k, hasSlashedZero: K, isSmallContainer: Y, isTouchDevice: ee, conditionalRowCellClasses: G, computedCellContentClasses: M, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: le, BentoCheckbox: Dt, BentoTypography: Se, BentoToggleButton: Ze, DataGridCellActions: Wt, ChevronDownIcon: ls, ChevronUpIcon: as };
|
|
2085
2092
|
}
|
|
2086
2093
|
});
|
|
2087
2094
|
var el = function() {
|
|
@@ -2315,58 +2322,58 @@ const sl = nl.exports, ol = {
|
|
|
2315
2322
|
},
|
|
2316
2323
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2317
2324
|
setup(s, { expose: t, emit: n }) {
|
|
2318
|
-
const e = s, o = We(), l = He(o), a =
|
|
2325
|
+
const e = s, o = We(), l = He(o), a = p({}), i = p(!1), _ = p(), d = p(), C = De("nested-content-slot"), m = p(!1), S = p();
|
|
2319
2326
|
Ee(() => {
|
|
2320
|
-
|
|
2327
|
+
d.value && (S.value = we(d.value));
|
|
2321
2328
|
});
|
|
2322
|
-
const b = v(() => e.shouldShowNestedRows(e.rowData)),
|
|
2329
|
+
const b = v(() => e.shouldShowNestedRows(e.rowData)), f = v(
|
|
2323
2330
|
() => {
|
|
2324
|
-
var
|
|
2325
|
-
return !e.isNestedRow && e.hasNestedRows && b.value && ((I = (
|
|
2331
|
+
var h, I;
|
|
2332
|
+
return !e.isNestedRow && e.hasNestedRows && b.value && ((I = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : I.length) > 0;
|
|
2326
2333
|
}
|
|
2327
2334
|
), A = v(
|
|
2328
2335
|
() => {
|
|
2329
|
-
var
|
|
2330
|
-
return !e.isNestedRow && e.hasNestedRows && b.value && (((
|
|
2336
|
+
var h, I;
|
|
2337
|
+
return !e.isNestedRow && e.hasNestedRows && b.value && (((h = e.rowData) == null ? void 0 : h.children) === void 0 || ((I = e == null ? void 0 : e.rowData) == null ? void 0 : I.children.length) === 0);
|
|
2331
2338
|
}
|
|
2332
2339
|
), L = v(
|
|
2333
2340
|
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && b.value && !e.isNestedRow
|
|
2334
2341
|
), F = v(() => {
|
|
2335
2342
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2336
|
-
const
|
|
2343
|
+
const h = i.value.toString();
|
|
2337
2344
|
return {
|
|
2338
|
-
"aria-expanded": L.value ?
|
|
2345
|
+
"aria-expanded": L.value ? h : void 0,
|
|
2339
2346
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2340
2347
|
"aria-posinset": e.rowIndex + 1,
|
|
2341
2348
|
"aria-setsize": e.rowSetSize
|
|
2342
2349
|
};
|
|
2343
2350
|
}
|
|
2344
2351
|
return { "aria-rowindex": e.rowIndex + 1 };
|
|
2345
|
-
}),
|
|
2352
|
+
}), E = v(() => {
|
|
2346
2353
|
if (A.value)
|
|
2347
2354
|
return {
|
|
2348
2355
|
"aria-busy": "true",
|
|
2349
2356
|
"aria-live": "polite"
|
|
2350
2357
|
};
|
|
2351
|
-
if (!(
|
|
2358
|
+
if (!(f.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
2352
2359
|
return {
|
|
2353
2360
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2354
2361
|
"aria-posinset": "1",
|
|
2355
2362
|
"aria-setsize": "1",
|
|
2356
|
-
id:
|
|
2363
|
+
id: C,
|
|
2357
2364
|
role: "row",
|
|
2358
2365
|
tabindex: "-1"
|
|
2359
2366
|
};
|
|
2360
|
-
}),
|
|
2361
|
-
var
|
|
2362
|
-
return
|
|
2367
|
+
}), u = v(() => {
|
|
2368
|
+
var h, I;
|
|
2369
|
+
return f.value ? (I = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : I.reduce((H, te, se) => (H[se] = De("nested-row"), H), {}) : [];
|
|
2363
2370
|
}), y = v(() => {
|
|
2364
|
-
var
|
|
2371
|
+
var h;
|
|
2365
2372
|
if (i.value) {
|
|
2366
2373
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2367
|
-
return [
|
|
2368
|
-
if (
|
|
2369
|
-
const I = Object.values(
|
|
2374
|
+
return [C];
|
|
2375
|
+
if (f.value && ((h = Object.keys(u.value)) == null ? void 0 : h.length) > 0) {
|
|
2376
|
+
const I = Object.values(u.value);
|
|
2370
2377
|
if ((I == null ? void 0 : I.length) > 0)
|
|
2371
2378
|
return I;
|
|
2372
2379
|
}
|
|
@@ -2374,69 +2381,69 @@ const sl = nl.exports, ol = {
|
|
|
2374
2381
|
}
|
|
2375
2382
|
}), O = v(() => {
|
|
2376
2383
|
var I, H;
|
|
2377
|
-
const
|
|
2378
|
-
if ((
|
|
2379
|
-
const te =
|
|
2384
|
+
const h = (H = (I = e.rowData) == null ? void 0 : I.children) == null ? void 0 : H.map((te) => e.getDataItemId(te));
|
|
2385
|
+
if ((h == null ? void 0 : h.length) > 0) {
|
|
2386
|
+
const te = h.every((Z) => {
|
|
2380
2387
|
var Ce;
|
|
2381
2388
|
return (Ce = e == null ? void 0 : e.selectedItems) == null ? void 0 : Ce.includes(Z);
|
|
2382
|
-
}), se =
|
|
2389
|
+
}), se = h.some((Z) => {
|
|
2383
2390
|
var Ce;
|
|
2384
2391
|
return (Ce = e == null ? void 0 : e.selectedItems) == null ? void 0 : Ce.includes(Z);
|
|
2385
2392
|
});
|
|
2386
2393
|
return !te && se;
|
|
2387
2394
|
}
|
|
2388
2395
|
return !1;
|
|
2389
|
-
}), x = (
|
|
2390
|
-
const H =
|
|
2391
|
-
|
|
2392
|
-
}, r = (
|
|
2396
|
+
}), x = (h, I) => {
|
|
2397
|
+
const H = h;
|
|
2398
|
+
h !== null && (H != null && H.gridcellRef) && (a.value[I] = H.gridcellRef);
|
|
2399
|
+
}, r = (h) => u.value[h], g = (h) => {
|
|
2393
2400
|
if (!e.selectable)
|
|
2394
2401
|
return null;
|
|
2395
|
-
const I = e.getDataItemId(
|
|
2402
|
+
const I = e.getDataItemId(h);
|
|
2396
2403
|
return e.selectedItems.includes(I).toString();
|
|
2397
|
-
},
|
|
2398
|
-
n("row-click",
|
|
2399
|
-
}, T = (
|
|
2404
|
+
}, R = (h, I) => {
|
|
2405
|
+
n("row-click", h, I);
|
|
2406
|
+
}, T = (h) => {
|
|
2400
2407
|
var te;
|
|
2401
2408
|
if (!e.allowRowClicks)
|
|
2402
2409
|
return;
|
|
2403
2410
|
let I = !1;
|
|
2404
2411
|
const H = ["button", "input", "a"];
|
|
2405
2412
|
for (let se = 0; se < H.length; se++)
|
|
2406
|
-
if ((te =
|
|
2413
|
+
if ((te = h == null ? void 0 : h.target) != null && te.closest(H[se])) {
|
|
2407
2414
|
I = !0;
|
|
2408
2415
|
break;
|
|
2409
2416
|
}
|
|
2410
|
-
I ||
|
|
2411
|
-
}, B = (
|
|
2412
|
-
n("select-row",
|
|
2413
|
-
}, P = (
|
|
2414
|
-
n("select-nested-row", I, e.rowData,
|
|
2417
|
+
I || R(e.rowData, h);
|
|
2418
|
+
}, B = (h) => {
|
|
2419
|
+
n("select-row", h, e.rowData);
|
|
2420
|
+
}, P = (h, I) => {
|
|
2421
|
+
n("select-nested-row", I, e.rowData, h);
|
|
2415
2422
|
}, k = () => {
|
|
2416
2423
|
m.value = !0;
|
|
2417
2424
|
}, K = () => {
|
|
2418
2425
|
m.value = !1;
|
|
2419
2426
|
}, Y = () => {
|
|
2420
|
-
var
|
|
2421
|
-
Ut([(
|
|
2427
|
+
var h;
|
|
2428
|
+
Ut([(h = S.value) == null ? void 0 : h[0]]), je(d.value);
|
|
2422
2429
|
}, ee = () => {
|
|
2423
|
-
we(
|
|
2424
|
-
}, G = (
|
|
2430
|
+
we(d.value);
|
|
2431
|
+
}, G = (h) => {
|
|
2425
2432
|
var I, H;
|
|
2426
|
-
|
|
2427
|
-
}, M = () => e.columnSets.reduce((
|
|
2428
|
-
var
|
|
2433
|
+
h.key !== ce.TAB && we(d.value), h.key === ce.ARROW_RIGHT && ((I = S.value) == null ? void 0 : I.length) > 1 && S.value[0].node === document.activeElement ? (we(d.value), S.value[1].node.setAttribute("tabindex", "0"), S.value[1].node.focus(), h.stopPropagation(), h.preventDefault()) : h.key === ce.ARROW_LEFT && ((H = S.value) == null ? void 0 : H.length) > 1 && S.value[1].node === document.activeElement && (we(d.value), S.value[0].node.setAttribute("tabindex", "0"), S.value[0].node.focus(), h.stopPropagation(), h.preventDefault());
|
|
2434
|
+
}, M = () => e.columnSets.reduce((h, { columnSet: I }) => h + I.length, 0), w = () => M() * e.rowIndex + M(), { updateContentHeight: W, contentHeight: $ } = is(_, i), z = v(() => {
|
|
2435
|
+
var h;
|
|
2429
2436
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
2430
2437
|
return {
|
|
2431
|
-
paddingLeft: `${
|
|
2432
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) && $.value && !((
|
|
2438
|
+
paddingLeft: `${f.value || A.value ? 0 : a.value[le].offsetWidth + Mt}px`,
|
|
2439
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && $.value && !((h = $ == null ? void 0 : $.value) != null && h.includes("null")) ? $.value : 0
|
|
2433
2440
|
};
|
|
2434
2441
|
});
|
|
2435
2442
|
ie(
|
|
2436
2443
|
() => _.value,
|
|
2437
2444
|
() => {
|
|
2438
|
-
let
|
|
2439
|
-
!
|
|
2445
|
+
let h = null;
|
|
2446
|
+
!h && _.value && (h = Ve(_.value, () => {
|
|
2440
2447
|
_.value && W();
|
|
2441
2448
|
}));
|
|
2442
2449
|
}
|
|
@@ -2446,10 +2453,10 @@ const sl = nl.exports, ol = {
|
|
|
2446
2453
|
};
|
|
2447
2454
|
ie(
|
|
2448
2455
|
() => {
|
|
2449
|
-
var
|
|
2450
|
-
return (
|
|
2456
|
+
var h;
|
|
2457
|
+
return (h = e.rowData) == null ? void 0 : h.children;
|
|
2451
2458
|
},
|
|
2452
|
-
(
|
|
2459
|
+
(h, I) => {
|
|
2453
2460
|
var H, te;
|
|
2454
2461
|
((te = (H = e == null ? void 0 : e.rowData) == null ? void 0 : H.children) == null ? void 0 : te.length) > 0 && I === void 0 && !i.value && W();
|
|
2455
2462
|
}
|
|
@@ -2457,24 +2464,24 @@ const sl = nl.exports, ol = {
|
|
|
2457
2464
|
const me = _e(
|
|
2458
2465
|
Te,
|
|
2459
2466
|
v(() => !1)
|
|
2460
|
-
), re = (
|
|
2461
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(
|
|
2467
|
+
), re = (h) => e.highlightedRows.includes(e.getDataItemId(h)), c = (h) => e.selectedItems.includes(e.getDataItemId(h)), U = (h, I) => ({
|
|
2468
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(h),
|
|
2462
2469
|
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2463
|
-
"b-data-grid-row-container__row--highlighted": re(
|
|
2464
|
-
"b-data-grid-row-container__row--selected": c(
|
|
2470
|
+
"b-data-grid-row-container__row--highlighted": re(h),
|
|
2471
|
+
"b-data-grid-row-container__row--selected": c(h),
|
|
2465
2472
|
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === I,
|
|
2466
2473
|
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !i.value,
|
|
2467
2474
|
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
2468
2475
|
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
2469
|
-
}), X = (
|
|
2470
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
2471
|
-
[`b-data-grid-row-container__row-cell-set--${ge.OVERFLOW_SHADOW_LEFT}`]: !I &&
|
|
2472
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !I &&
|
|
2473
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
2476
|
+
}), X = (h, I) => ({
|
|
2477
|
+
"b-data-grid-row-container__row-cell-set--frozen": h && !I,
|
|
2478
|
+
[`b-data-grid-row-container__row-cell-set--${ge.OVERFLOW_SHADOW_LEFT}`]: !I && h && e.hasLeftOverflow,
|
|
2479
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !I && h && e.showFrozenColumnsSeparator,
|
|
2480
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !h || I,
|
|
2474
2481
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2475
2482
|
}), ne = v(() => ({
|
|
2476
2483
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2477
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
2484
|
+
"b-data-grid-row-container__row-nested-slot": !f.value && e.shouldShowNestedContent(e.rowData)
|
|
2478
2485
|
})), pe = v(() => ({
|
|
2479
2486
|
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": m.value
|
|
2480
2487
|
})), Re = v(() => ({
|
|
@@ -2482,8 +2489,8 @@ const sl = nl.exports, ol = {
|
|
|
2482
2489
|
}));
|
|
2483
2490
|
return t({
|
|
2484
2491
|
gridcellRefs: a,
|
|
2485
|
-
rowActionsRef:
|
|
2486
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: i, nestedContentRef: _, rowActionsRef:
|
|
2492
|
+
rowActionsRef: d
|
|
2493
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: i, nestedContentRef: _, rowActionsRef: d, nestedContentSlotId: C, isRowActionMenuOpen: m, focusableItems: S, shouldShowNestedRowsBooleanResult: b, shouldShowRenderNestedRows: f, isLoadingNestedRows: A, shouldShowNestedContentToggle: L, ariaRowAttributes: F, nestedContentContainerDivAriaAttributes: E, nestedRowIds: u, allNestedRowIds: y, hasUnSelectedNestedRows: O, registerRowCellRef: x, getRowId: r, getRowAriaSelectedValue: g, emitRowClick: R, onRowClick: T, onRowSelect: B, onNestedRowSelect: P, onRowActionMenuOpen: k, onRowActionMenuClose: K, onRowActionsCellFocus: Y, onRowActionsCellFocusOut: ee, onRowActionsCellOnKeyDown: G, sumColumnAmountsInColumnSets: M, getRowActionsCellIndex: w, updateContentHeight: W, contentHeight: $, nestedContentStyles: z, nestedContentToggled: ve, isSmallContainer: me, isHighlightedRow: re, isSelectedRow: c, conditionalRowClasses: U, conditionalRowSetClasses: X, conditionalNestedRowClasses: ne, conditionalRowActionsContainerClasses: pe, computedRowActionsStyles: Re, BentoLoadingIndicator: Ge, DataGridRow: Gt, DataGridCell: sl, DataGridCellActions: Wt };
|
|
2487
2494
|
}
|
|
2488
2495
|
});
|
|
2489
2496
|
var al = function() {
|
|
@@ -2494,16 +2501,16 @@ var al = function() {
|
|
|
2494
2501
|
}, function(l) {
|
|
2495
2502
|
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
2496
2503
|
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
2497
|
-
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(i, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(
|
|
2498
|
-
return n(e.DataGridCell, { key: `cell-${
|
|
2504
|
+
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(i, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(d, C) {
|
|
2505
|
+
return n(e.DataGridCell, { key: `cell-${d.field}`, ref: (m) => e.registerRowCellRef(m, d.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: d, "column-set-index": _, "col-index": C, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(m) {
|
|
2499
2506
|
return e.emit("cell-hovered", m);
|
|
2500
2507
|
}, "cell-focus": function(m) {
|
|
2501
2508
|
return e.emit("cell-focus", m);
|
|
2502
2509
|
}, "on-frozen-columns-key-press": function(m) {
|
|
2503
2510
|
return e.emit("on-frozen-columns-key-press", m);
|
|
2504
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m,
|
|
2505
|
-
return { key:
|
|
2506
|
-
return [t._t(
|
|
2511
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m, S) {
|
|
2512
|
+
return { key: S, fn: function(b) {
|
|
2513
|
+
return [t._t(S, null, null, b)];
|
|
2507
2514
|
} };
|
|
2508
2515
|
})], null, !0) });
|
|
2509
2516
|
}), 1) : t._e(), !i && t.rowActions ? n("div", { key: `data-grid-row-actions-${a}`, ref: "rowActionsRef", refInFor: !0, staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus, focusOut: e.onRowActionsCellFocusOut, keydown: e.onRowActionsCellOnKeyDown } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData, "teleport-menu": "" }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
|
|
@@ -2517,8 +2524,8 @@ var al = function() {
|
|
|
2517
2524
|
}, "select-row": function(i) {
|
|
2518
2525
|
return e.onNestedRowSelect(l, i);
|
|
2519
2526
|
} }, scopedSlots: t._u([t._l(e.slots, function(i, _) {
|
|
2520
|
-
return { key: _, fn: function(
|
|
2521
|
-
return [t._t(_, null, null,
|
|
2527
|
+
return { key: _, fn: function(d) {
|
|
2528
|
+
return [t._t(_, null, null, d)];
|
|
2522
2529
|
} };
|
|
2523
2530
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2524
2531
|
})], 2)]) : e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "row", tabindex: "-1" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef", attrs: { role: "gridcell" } }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()])]) : t._e()]) : t._e()], 1);
|
|
@@ -2621,7 +2628,7 @@ const Ga = hl.exports, pl = {
|
|
|
2621
2628
|
tooltipText: { default: null }
|
|
2622
2629
|
},
|
|
2623
2630
|
setup(s) {
|
|
2624
|
-
const t = s, { tc: n } = he(), e =
|
|
2631
|
+
const t = s, { tc: n } = he(), e = p(), o = v(() => ({
|
|
2625
2632
|
popoverPosition: "right",
|
|
2626
2633
|
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
2627
2634
|
popoverTitle: t.label,
|
|
@@ -2632,9 +2639,9 @@ const Ga = hl.exports, pl = {
|
|
|
2632
2639
|
disabled: !1
|
|
2633
2640
|
}
|
|
2634
2641
|
})), l = v(() => {
|
|
2635
|
-
var
|
|
2636
|
-
return ((
|
|
2637
|
-
}), a = (
|
|
2642
|
+
var d;
|
|
2643
|
+
return ((d = t.searchTerm) == null ? void 0 : d.toLowerCase()) ?? "";
|
|
2644
|
+
}), a = (d) => t.searchTerm && d.toLowerCase().includes(l.value) ? "mark" : "span", i = v(() => t.searchTerm ? t.items.filter((d) => d.toLowerCase().includes(l.value)).length : 0), _ = v(
|
|
2638
2645
|
() => t.tooltipText ?? (i.value > 0 ? n("numberResults", i.value) : "")
|
|
2639
2646
|
);
|
|
2640
2647
|
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: i, computedToolTipText: _, BentoDashedUnderline: Zn, BentoTypography: Se, Tooltip: Vn, BentoTooltipPosition: Hn };
|
|
@@ -3122,49 +3129,49 @@ const Za = Vl.exports, Zl = {
|
|
|
3122
3129
|
N.CELL_FOCUS
|
|
3123
3130
|
],
|
|
3124
3131
|
setup(s, { expose: t, emit: n }) {
|
|
3125
|
-
const e = s, o = We(), l = He(o), a =
|
|
3132
|
+
const e = s, o = We(), l = He(o), a = p(null), i = p(), _ = p({}), d = p(De("data-grid")), C = p(null), m = p(null), S = p(null), b = p(null), f = p(null), A = p(null), {
|
|
3126
3133
|
allowColumnDragAndDrop: L,
|
|
3127
3134
|
columns: F,
|
|
3128
|
-
columnPanel:
|
|
3129
|
-
data:
|
|
3135
|
+
columnPanel: E,
|
|
3136
|
+
data: u,
|
|
3130
3137
|
lazyLoadType: y,
|
|
3131
3138
|
loading: O,
|
|
3132
3139
|
hasNestedContent: x,
|
|
3133
3140
|
hasNestedRows: r,
|
|
3134
|
-
selectable:
|
|
3135
|
-
selection:
|
|
3141
|
+
selectable: g,
|
|
3142
|
+
selection: R,
|
|
3136
3143
|
selectableAcrossPages: T,
|
|
3137
3144
|
stickyPagination: B,
|
|
3138
3145
|
outline: P,
|
|
3139
3146
|
pagination: k,
|
|
3140
3147
|
zebraRows: K
|
|
3141
|
-
} = ke(e), Y =
|
|
3148
|
+
} = ke(e), Y = p(-1), { t: ee } = he(), G = v(() => ne.value.filter((D) => D.frozen).length), M = 550, w = p(), { width: W } = es(w), $ = v(() => W.value <= M);
|
|
3142
3149
|
Ne(Te, $);
|
|
3143
|
-
const z =
|
|
3150
|
+
const z = p(!1);
|
|
3144
3151
|
Ee(() => {
|
|
3145
3152
|
typeof window < "u" && (z.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
3146
3153
|
}), Ne(xe, z);
|
|
3147
3154
|
const ve = _e(
|
|
3148
3155
|
Qn,
|
|
3149
3156
|
() => ({
|
|
3150
|
-
additionalContentSlotRef:
|
|
3157
|
+
additionalContentSlotRef: p(null),
|
|
3151
3158
|
isDataGridTemplate: !1,
|
|
3152
|
-
stickyAditionalContent:
|
|
3153
|
-
stickyTabs:
|
|
3154
|
-
tabsRef:
|
|
3159
|
+
stickyAditionalContent: p(!1),
|
|
3160
|
+
stickyTabs: p(!1),
|
|
3161
|
+
tabsRef: p(null)
|
|
3155
3162
|
})
|
|
3156
3163
|
), { additionalContentSlotRef: me, isDataGridTemplate: re, stickyTabs: c, tabsRef: U, stickyAdditionalContent: X } = ve(), {
|
|
3157
3164
|
columnDefs: ne,
|
|
3158
3165
|
onColumnWidthOverride: pe,
|
|
3159
3166
|
gridRowWidthStyle: Re,
|
|
3160
|
-
isMeasuringColumnWidths:
|
|
3167
|
+
isMeasuringColumnWidths: h,
|
|
3161
3168
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: I,
|
|
3162
3169
|
columns: H,
|
|
3163
3170
|
totalWidthOfAllColumns: te,
|
|
3164
3171
|
rowActionsMaxWidth: se
|
|
3165
|
-
} = Os(F,
|
|
3166
|
-
hasColumnPanel:
|
|
3167
|
-
hasSelectableColumn:
|
|
3172
|
+
} = Os(F, u, a, _, C, {
|
|
3173
|
+
hasColumnPanel: E,
|
|
3174
|
+
hasSelectableColumn: g,
|
|
3168
3175
|
hasSelectableAcrossPages: T,
|
|
3169
3176
|
hasNestedContent: x,
|
|
3170
3177
|
hasNestedRows: r,
|
|
@@ -3192,7 +3199,7 @@ const Za = Vl.exports, Zl = {
|
|
|
3192
3199
|
onConfigSettingsZebraRowsUpdate: Jt
|
|
3193
3200
|
} = Ps(ne, K, Z), { hoveredOverColumn: Kt, hoveredOverColumnState: Xt } = Us(
|
|
3194
3201
|
Be,
|
|
3195
|
-
|
|
3202
|
+
g,
|
|
3196
3203
|
P,
|
|
3197
3204
|
I
|
|
3198
3205
|
), { draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn } = Bs(Fe, L, Z), Je = v(
|
|
@@ -3209,9 +3216,9 @@ const Za = Vl.exports, Zl = {
|
|
|
3209
3216
|
selectedItems: Ke,
|
|
3210
3217
|
selectionState: cn
|
|
3211
3218
|
} = Ns(
|
|
3212
|
-
|
|
3219
|
+
R,
|
|
3213
3220
|
Z,
|
|
3214
|
-
|
|
3221
|
+
u,
|
|
3215
3222
|
e.getDataItemId,
|
|
3216
3223
|
e.isDataItemDisabled,
|
|
3217
3224
|
Je,
|
|
@@ -3219,19 +3226,19 @@ const Za = Vl.exports, Zl = {
|
|
|
3219
3226
|
), dn = v(() => {
|
|
3220
3227
|
var D, V, J, ue;
|
|
3221
3228
|
return {
|
|
3222
|
-
filtered: ((D =
|
|
3229
|
+
filtered: ((D = S.value) == null ? void 0 : D.isClearAllVisible) || ((V = S.value) == null ? void 0 : V.isResetAllVisible) || !!e.filterSearchTerm,
|
|
3223
3230
|
allRowsVisible: ((J = k.value) == null ? void 0 : J.size) >= ((ue = k.value) == null ? void 0 : ue.totalCount)
|
|
3224
3231
|
};
|
|
3225
3232
|
}), { navigationInput: un } = Ds(
|
|
3226
|
-
|
|
3233
|
+
C,
|
|
3227
3234
|
_,
|
|
3228
3235
|
Fe,
|
|
3229
|
-
|
|
3236
|
+
g,
|
|
3230
3237
|
v(() => e.rowActions !== void 0),
|
|
3231
|
-
|
|
3238
|
+
E
|
|
3232
3239
|
), { isLazyLoad: Oe, isInfiniteScroll: fn, verticalScrollPosition: Xe, emitLazyLoadEvent: gn } = Fs(
|
|
3233
3240
|
y,
|
|
3234
|
-
|
|
3241
|
+
f,
|
|
3235
3242
|
a,
|
|
3236
3243
|
O,
|
|
3237
3244
|
Z
|
|
@@ -3256,7 +3263,7 @@ const Za = Vl.exports, Zl = {
|
|
|
3256
3263
|
isDataGridTemplate: re
|
|
3257
3264
|
}
|
|
3258
3265
|
), et = () => {
|
|
3259
|
-
|
|
3266
|
+
S.value.isClearAllVisible ? S.value.clearAllFilters() : S.value.isResetAllVisible && S.value.resetAllFilters();
|
|
3260
3267
|
}, hn = v(() => {
|
|
3261
3268
|
var D, V;
|
|
3262
3269
|
return {
|
|
@@ -3296,8 +3303,8 @@ const Za = Vl.exports, Zl = {
|
|
|
3296
3303
|
const Mn = e.rowActions !== void 0 && (J == null ? void 0 : J.rowActionsRef);
|
|
3297
3304
|
Object.entries(J == null ? void 0 : J.gridcellRefs).map(([Me, Un]) => {
|
|
3298
3305
|
var lt;
|
|
3299
|
-
((lt =
|
|
3300
|
-
}), Mn && (((ue =
|
|
3306
|
+
((lt = C.value) == null ? void 0 : lt[Me]) === void 0 && (C.value = { ...C.value, [Me]: [] }), C.value[Me][V] = Un;
|
|
3307
|
+
}), Mn && (((ue = C.value) == null ? void 0 : ue[ye]) === void 0 && (C.value = { ...C.value, [ye]: [] }), C.value[ye][V] = (Le = J.rowActionsRef) == null ? void 0 : Le[0], se.value = Math.max(
|
|
3301
3308
|
se.value,
|
|
3302
3309
|
((ot = (Ae = J.rowActionsRef) == null ? void 0 : Ae[0]) == null ? void 0 : ot.offsetWidth) ?? 0
|
|
3303
3310
|
));
|
|
@@ -3328,36 +3335,36 @@ const Za = Vl.exports, Zl = {
|
|
|
3328
3335
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3329
3336
|
);
|
|
3330
3337
|
const st = _e(Xn, () => null);
|
|
3331
|
-
return st(e.tabTitle), Ne(zt, Ue(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: et }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: i, columnHeaderRefs: _, dataGridUid:
|
|
3338
|
+
return st(e.tabTitle), Ne(zt, Ue(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: et }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: i, columnHeaderRefs: _, dataGridUid: d, gridcellRefs: C, filtersRef: m, filterBarRef: S, paginationContainerRef: b, verticalScrollPositionRef: f, virtualHorizontalScrollbarRef: A, allowColumnDragAndDrop: L, columns: F, columnPanel: E, data: u, lazyLoadType: y, loading: O, hasNestedContent: x, hasNestedRows: r, selectable: g, selection: R, selectableAcrossPages: T, stickyPagination: B, outline: P, pagination: k, zebraRows: K, hoveredRowIndex: Y, t: ee, frozenColumnsLength: G, MOBILE_BREAKPOINT: M, dataGridRef: w, width: W, isSmallContainer: $, isTouchDevice: z, registerDatagridInDataGridTemplate: ve, additionalContentSlotRef: me, isDataGridTemplate: re, stickyTabs: c, tabsRef: U, stickyAdditionalContent: X, columnDefs: ne, onColumnWidthOverride: pe, gridRowWidthStyle: Re, isMeasuringColumnWidths: h, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: I, localColumnsState: H, totalWidthOfAllColumns: te, rowActionsMaxWidth: se, definedEmitsFunction: n, emit: Z, stickyFiltersHeight: Ce, computedStickyFiltersTopPosition: Ht, columnHeadersHeight: qe, computedColumnHeadersTopPosition: Vt, sortedColumns: Fe, columnSets: Be, isOnlyOneVisibleColumn: Zt, internalZebraRows: Ye, onConfigSettingsColumnsUpdate: jt, onConfigSettingsColumnUpdate: qt, onConfigSettingsCondensedUpdate: Yt, onConfigSettingsZebraRowsUpdate: Jt, hoveredOverColumn: Kt, hoveredOverColumnState: Xt, draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn, selectableAcrossPagesComputed: Je, onAllRowSelect: sn, onRowSelect: on, onNestedRowSelect: ln, onDeselectAll: an, allItemsSelectedState: rn, selectedItems: Ke, selectionState: cn, visibleRowsState: dn, navigationInput: un, isLazyLoad: Oe, isInfiniteScroll: fn, verticalScrollPosition: Xe, emitLazyLoadEvent: gn, updateScrollPosition: _n, updateScrollPositionOnFrozenColumnsNavigation: vn, syncVirtualScrollerWithBody: mn, hasLeftOverflow: Pe, hasRightOverflow: Qe, horizontalScrollbarConditionalStyles: Cn, onEmptyStateClearResetButtonClick: et, limitedEmptyStateProps: hn, conditionalGridClasses: pn, conditionalGridBodyClasses: wn, computedColumnPanelAlignment: bn, showFrozenColumnsSeparator: Sn, conditionalFilterClasses: Rn, conditionalPaginationClasses: En, registerColumnHeaderRefs: Ln, registerRowCellRefs: An, onRowClick: yn, onCellHover: Tn, ariaGridRole: On, itemsSelectedCounter: tt, showActionBar: Nn, onColumnResized: In, onSort: Dn, onPaginationNavigate: xn, onItemsPerPageChange: Fn, onSearchTermCleared: Bn, onSearchTermInput: Pn, hasMandatoryColumn: nt, setTitle: st, BentoActionBar: qn, BentoPagination: Yn, BentoLoadingIndicator: Ge, BentoTypography: Se, BentoDataGridConfigSettings: Fo, DataGridColumns: Co, DataGridLazyLoad: zo, DataGridRow: Gt, handleClipboard: $s, BentoDatagridEvent: N, BentoFilterBar: Jn, BentoEmptyState: Kn };
|
|
3332
3339
|
}
|
|
3333
3340
|
});
|
|
3334
3341
|
var ql = function() {
|
|
3335
3342
|
var o;
|
|
3336
3343
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3337
3344
|
return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "data-testid": "data-grid", "aria-live": "polite", "aria-busy": e.loading }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition }, attrs: { "aria-controls": e.dataGridUid, "aria-label": e.t("filterBar"), role: "region" } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__wrapper", style: { top: e.computedColumnHeadersTopPosition }, attrs: { id: e.dataGridUid, role: e.ariaGridRole, "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": t.emptyState ? e.t("noResults") : null } }, [n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [e.columnPanel ? n("div", { attrs: { role: "row" } }, [n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { role: "gridcell", columns: e.localColumnsState, condensed: t.condensed, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } })], 1) : t._e(), n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
3338
|
-
var
|
|
3339
|
-
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (
|
|
3340
|
-
e.hoveredOverColumn =
|
|
3341
|
-
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(
|
|
3345
|
+
var d;
|
|
3346
|
+
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (C) => e.registerColumnHeaderRefs(C), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": i, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((d = e.data) == null ? void 0 : d.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "visible-rows-state": e.visibleRowsState, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(C) {
|
|
3347
|
+
e.hoveredOverColumn = C;
|
|
3348
|
+
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(C) {
|
|
3342
3349
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
3343
|
-
}, "select-all-current-results": function(
|
|
3350
|
+
}, "select-all-current-results": function(C) {
|
|
3344
3351
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
|
|
3345
|
-
}, "deselect-all-current-results": function(
|
|
3352
|
+
}, "deselect-all-current-results": function(C) {
|
|
3346
3353
|
return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
|
|
3347
|
-
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(
|
|
3348
|
-
return { key: m, fn: function(
|
|
3349
|
-
return [t._t(m, null, null,
|
|
3354
|
+
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(C, m) {
|
|
3355
|
+
return { key: m, fn: function(S) {
|
|
3356
|
+
return [t._t(m, null, null, S)];
|
|
3350
3357
|
} };
|
|
3351
3358
|
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
3352
3359
|
})], 2)])]), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : n("div", { attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, [((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? [n("div", { attrs: { role: "row", tabindex: "-1" } }, [n("div", { attrs: { role: "gridcell", "aria-colspan": e.columns.length, tabindex: "-1" } }, [n(e.BentoEmptyState, t._b({ staticClass: "b-data-grid__empty-state" }, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1)])] : t._l(e.data, function(l, a) {
|
|
3353
3360
|
var i, _;
|
|
3354
|
-
return n(e.DataGridRow, { key: a, ref: (
|
|
3355
|
-
return e.emit(e.BentoDatagridEvent.CELL_FOCUS,
|
|
3356
|
-
}, "nested-content-toggled": function(
|
|
3357
|
-
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED,
|
|
3358
|
-
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(
|
|
3359
|
-
return { key:
|
|
3360
|
-
return [t._t(
|
|
3361
|
+
return n(e.DataGridRow, { key: a, ref: (d) => e.registerRowCellRefs(d, a), refInFor: !0, style: e.gridRowWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-even": e.internalZebraRows ? a % 2 !== 0 : !1, "is-row-last-child": a + 1 === ((i = e.data) == null ? void 0 : i.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": (_ = e.data) == null ? void 0 : _.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "cell-focus": function(d) {
|
|
3362
|
+
return e.emit(e.BentoDatagridEvent.CELL_FOCUS, d);
|
|
3363
|
+
}, "nested-content-toggled": function(d) {
|
|
3364
|
+
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, d);
|
|
3365
|
+
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(d, C) {
|
|
3366
|
+
return { key: C, fn: function(m) {
|
|
3367
|
+
return [t._t(C, null, null, m)];
|
|
3361
3368
|
} };
|
|
3362
3369
|
})], null, !0) });
|
|
3363
3370
|
})], 2)])]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", style: e.horizontalScrollbarConditionalStyles, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { ref: "paginationContainerRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": t.$t("pagination"), "aria-controls": e.dataGridUid }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: e.onDeselectAll } }) : t._e()], 1);
|
|
@@ -3382,4 +3389,4 @@ export {
|
|
|
3382
3389
|
be as h,
|
|
3383
3390
|
ge as i
|
|
3384
3391
|
};
|
|
3385
|
-
//# sourceMappingURL=data-grid.
|
|
3392
|
+
//# sourceMappingURL=data-grid.u3f__x8_.js.map
|