@adyen/bento-vue2 1.77.0 → 1.78.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 +137 -98
- 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/checkbox-group.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/index.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/checkbox-group.HqNbZx2y.js +141 -0
- package/dist/chunks/checkbox-group.HqNbZx2y.js.map +1 -0
- package/dist/chunks/{checkbox.itbBlXev.js → checkbox.CqF5Dank.js} +18 -18
- package/dist/chunks/{checkbox.itbBlXev.js.map → checkbox.CqF5Dank.js.map} +1 -1
- package/dist/chunks/{data-grid.B-kBw540.js → data-grid.BhwTkhfk.js} +508 -503
- package/dist/chunks/data-grid.BhwTkhfk.js.map +1 -0
- package/dist/chunks/date-range-picker.CmKA76Yu.js +898 -0
- package/dist/chunks/date-range-picker.CmKA76Yu.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.BLnSnOlj.js → filter-bar.Bj4LgjzJ.js} +5 -5
- package/dist/chunks/filter-bar.Bj4LgjzJ.js.map +1 -0
- package/dist/chunks/{header-with-views.C6Y7mAkq.js → header-with-views.D6JUlnEf.js} +2 -2
- package/dist/chunks/{header-with-views.C6Y7mAkq.js.map → header-with-views.D6JUlnEf.js.map} +1 -1
- package/dist/chunks/link.D8qpqg3W.js.map +1 -1
- package/dist/chunks/{radio-group.B8ukv-pw.js → radio-group.0JNwgkZa.js} +64 -63
- package/dist/chunks/radio-group.0JNwgkZa.js.map +1 -0
- package/dist/chunks/{rich-text-editor.DzH-Z5oi.js → rich-text-editor.NFLhgVJo.js} +2 -2
- package/dist/chunks/{rich-text-editor.DzH-Z5oi.js.map → rich-text-editor.NFLhgVJo.js.map} +1 -1
- package/dist/chunks/{selection-card-group.D4rcUyvV.js → selection-card-group.u-2Y_9o2.js} +97 -94
- package/dist/chunks/{selection-card-group.D4rcUyvV.js.map → selection-card-group.u-2Y_9o2.js.map} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-range-picker.js +5 -4
- package/dist/date-range-picker.js.map +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +382 -357
- package/dist/index.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/styles/bento-dark.css +5 -0
- package/dist/styles/bento-light.css +5 -0
- package/dist/styles/bento.css +5 -0
- package/dist/styles/legacy.css +5 -0
- package/dist/styles/styleguide.css +5 -0
- package/dist/web-types.json +44 -16
- package/package.json +6 -6
- package/dist/chunks/checkbox-group.C3RH5Gcg.js +0 -152
- package/dist/chunks/checkbox-group.C3RH5Gcg.js.map +0 -1
- package/dist/chunks/data-grid.B-kBw540.js.map +0 -1
- package/dist/chunks/date-range-picker.BtPxkPN0.js +0 -942
- package/dist/chunks/date-range-picker.BtPxkPN0.js.map +0 -1
- package/dist/chunks/filter-bar.BLnSnOlj.js.map +0 -1
- package/dist/chunks/radio-group.B8ukv-pw.js.map +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ref as p, onMounted as be, nextTick as le, watch as ae, onUnmounted as Tt, reactive as ke, toRefs as We, computed as v, watchEffect as Pn, onBeforeUpdate as zn, defineComponent as
|
|
1
|
+
import { ref as p, onMounted as be, nextTick as le, watch as ae, onUnmounted as Tt, reactive as ke, toRefs as We, computed as v, watchEffect as Pn, onBeforeUpdate as zn, defineComponent as Ce, inject as ve, toRef as ze, useSlots as Ge, provide as Oe } from "vue";
|
|
2
2
|
import { C as $n } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
3
|
import { W as kn } from "./warning-filled.CbJ1pcB2.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { n as
|
|
5
|
+
import { n as Y } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
6
|
import { C as Ot } from "./cross.CC_B-vG-.js";
|
|
7
7
|
import { N as it } from "./minus-small.DJacLGTw.js";
|
|
8
8
|
import { d as Wn } from "./popper-container.agLYtGwv.js";
|
|
9
9
|
import { E as ce, b as Gn, B as Hn, T as Vn } from "./tooltip.D3SDcRef.js";
|
|
10
10
|
import { B as Zn } from "./dashed-underline.K-l-7bDq.js";
|
|
11
11
|
import { B as ye, p as Nt } from "./typography.hlOAxsEn.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as pe } from "./index.B6WW_F-J.js";
|
|
13
13
|
import { B as jn } from "./action-bar.MXZTIUNk.js";
|
|
14
14
|
import { B as qn } from "./pagination.BzyyZJy6.js";
|
|
15
15
|
import { B as He } from "./loading-indicator.PxbRzshH.js";
|
|
16
16
|
import { u as Ve } from "./use-has-slot.C9lQZ6nz.js";
|
|
17
17
|
import { g as Ie } from "./generate-uid.NJ8tVoha.js";
|
|
18
|
-
import { B as Pe } from "./filter-bar.
|
|
18
|
+
import { B as Pe } from "./filter-bar.Bj4LgjzJ.js";
|
|
19
19
|
import { B as Kn } from "./empty-state.BsdRxzS2.js";
|
|
20
20
|
import { E as Yn } from "./tabs.keys.Cb4Vw5Jh.js";
|
|
21
21
|
import { D as Jn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
22
22
|
import { b as Xn } from "./index.BDK4hwK_.js";
|
|
23
23
|
import { o as Ze } from "./resize.Bqks3WUm.js";
|
|
24
24
|
import "./index.Cl4_42j5.js";
|
|
25
|
-
import { B as It } from "./checkbox.
|
|
25
|
+
import { B as It } from "./checkbox.CqF5Dank.js";
|
|
26
26
|
import { B as Dt } from "./button.CS_kdxYh.js";
|
|
27
27
|
import { c as je, f as xt, h as Qn, b as es, a as ts, O as rt, D as ns } from "./button-actions.B81vY51z.js";
|
|
28
28
|
import { E as ct } from "./link.D8qpqg3W.js";
|
|
29
29
|
import { C as dt } from "./copy.WQDLcs_T.js";
|
|
30
30
|
import { C as ss } from "./chevron-down.eYtgv5ly.js";
|
|
31
31
|
import { C as os } from "./chevron-up.d8cwIlA_.js";
|
|
32
|
-
import { b as
|
|
32
|
+
import { b as Bt } from "./focus-trap.BJfpIboH.js";
|
|
33
33
|
import { u as ls } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
34
34
|
import { B as as } from "./info-icon.Bhka3oGh.js";
|
|
35
35
|
import { D as is } from "./use-cached-selected-values.BZd3CTeP.js";
|
|
@@ -37,7 +37,7 @@ import { B as ut } from "./popover.types.DK6opPkz.js";
|
|
|
37
37
|
import { A as rs } from "./dialog-page.D23qNwKW.js";
|
|
38
38
|
import { H as cs, S as ds } from "./show.B_mKPF6I.js";
|
|
39
39
|
import { l as ft } from "./events.CMzGybJJ.js";
|
|
40
|
-
import { B as
|
|
40
|
+
import { B as Ft } from "./toggle.D2wmNu7m.js";
|
|
41
41
|
import { B as us } from "./search-bar.CgzPXP8r.js";
|
|
42
42
|
import { u as fs } from "./dropdown.-3x2IBDg.js";
|
|
43
43
|
import { S as gs } from "./search.D53Ia3rC.js";
|
|
@@ -83,36 +83,36 @@ const gt = (s) => {
|
|
|
83
83
|
l == null || l.disconnect(), a == null || a.disconnect();
|
|
84
84
|
}), o;
|
|
85
85
|
};
|
|
86
|
-
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 || {}),
|
|
86
|
+
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 || {}), _e = /* @__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))(_e || {}), Se = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(Se || {}), N = /* @__PURE__ */ ((s) => (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 || {}), Ne = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ne || {});
|
|
87
87
|
const vs = (s, t) => {
|
|
88
|
-
const n = p(null), e = p(!1), o = p(void 0), l = s.value.reduce((L,
|
|
88
|
+
const n = p(null), e = p(!1), o = p(void 0), l = s.value.reduce((L, B) => (L[B.field] = null, L), {}), a = ke(l), i = We(a);
|
|
89
89
|
let _ = 0, g = "";
|
|
90
90
|
const w = v(
|
|
91
|
-
() => Object.fromEntries(s.value.map(({ field: L, width:
|
|
91
|
+
() => Object.fromEntries(s.value.map(({ field: L, width: B, minWidth: b }) => [L, { width: B, minWidth: b }]))
|
|
92
92
|
);
|
|
93
93
|
Pn(() => o.value = w.value);
|
|
94
|
-
let
|
|
94
|
+
let m = null, E = null;
|
|
95
95
|
const S = (L) => {
|
|
96
|
-
const
|
|
96
|
+
const B = L.clientX - _, b = g, d = o.value[b].width + B;
|
|
97
97
|
o.value[b].width = d > w.value[b].minWidth ? d : w.value[b].minWidth, t(j.COLUMN_RESIZING, o.value), _ = L.clientX;
|
|
98
98
|
}, u = () => {
|
|
99
|
-
e.value = !1,
|
|
99
|
+
e.value = !1, m == null || m(), E == null || E(), g && t(j.COLUMN_RESIZE, {
|
|
100
100
|
field: g,
|
|
101
101
|
width: o.value[g].width
|
|
102
|
-
}),
|
|
103
|
-
}, y = (L,
|
|
102
|
+
}), m = null, E = null, g = "", _ = null;
|
|
103
|
+
}, y = (L, B, b) => {
|
|
104
104
|
if (b.preventDefault(), L) {
|
|
105
105
|
if (e.value = !0, b.buttons !== 1) {
|
|
106
106
|
u();
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
g =
|
|
109
|
+
g = B, _ = b.clientX, m = ft(window, "mousemove", S), E = ft(window, "mouseup", u);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
return ae(
|
|
113
113
|
() => e.value,
|
|
114
|
-
(L,
|
|
115
|
-
!L &&
|
|
114
|
+
(L, B) => {
|
|
115
|
+
!L && B && (t(j.COLUMN_HOVER, n.value), n.value = null);
|
|
116
116
|
}
|
|
117
117
|
), {
|
|
118
118
|
resizeData: o,
|
|
@@ -121,7 +121,7 @@ const vs = (s, t) => {
|
|
|
121
121
|
isResizing: e,
|
|
122
122
|
columnHoverEventToEmitAfterResizing: n
|
|
123
123
|
};
|
|
124
|
-
}, Cs = 100, vt = 50, oe = "b-actions-column",
|
|
124
|
+
}, Cs = 100, vt = 50, oe = "b-actions-column", ms = 42, hs = 56, ps = 56, ws = 80, Ss = 36, bs = 1, Ut = 16, Rs = 20, Es = (s, t, n) => {
|
|
125
125
|
const e = {}, o = [], l = (i) => {
|
|
126
126
|
const _ = e[i];
|
|
127
127
|
_ && _.frozen !== !0 && (e[i].frozen = !0, o.push(i));
|
|
@@ -131,11 +131,11 @@ const vs = (s, t) => {
|
|
|
131
131
|
return;
|
|
132
132
|
const i = { min: {} };
|
|
133
133
|
let _ = s, g = t, w = 0;
|
|
134
|
-
o.forEach((
|
|
135
|
-
_ -= e[
|
|
134
|
+
o.forEach((m) => {
|
|
135
|
+
_ -= e[m].computedWidth, g -= e[m].flex;
|
|
136
136
|
});
|
|
137
|
-
for (let
|
|
138
|
-
const S = n[
|
|
137
|
+
for (let m = 0, E = n.length; m < E; m += 1) {
|
|
138
|
+
const S = n[m];
|
|
139
139
|
if (e[S.field] && e[S.field].frozen === !0)
|
|
140
140
|
continue;
|
|
141
141
|
let y = _ / g * S.flex;
|
|
@@ -145,10 +145,10 @@ const vs = (s, t) => {
|
|
|
145
145
|
flex: S.flex
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
w > 0 ? Object.keys(i.min).forEach((
|
|
149
|
-
l(
|
|
150
|
-
}) : n.forEach(({ field:
|
|
151
|
-
l(
|
|
148
|
+
w > 0 ? Object.keys(i.min).forEach((m) => {
|
|
149
|
+
l(m);
|
|
150
|
+
}) : n.forEach(({ field: m }) => {
|
|
151
|
+
l(m);
|
|
152
152
|
}), a();
|
|
153
153
|
}
|
|
154
154
|
return a(), e;
|
|
@@ -157,101 +157,101 @@ const vs = (s, t) => {
|
|
|
157
157
|
return t && (n += Ut * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
158
158
|
}, Ls = (s) => {
|
|
159
159
|
var t, n, e, o, l;
|
|
160
|
-
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 ? ws : ps : Ss : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ?
|
|
160
|
+
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 ? ws : ps : Ss : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? hs : ms;
|
|
161
161
|
}, ys = (s, t, n, e, o, l) => {
|
|
162
|
-
const a = p(s.value), i = p(t), _ = p(n), g = p(e), w = p(o),
|
|
162
|
+
const a = p(s.value), i = p(t), _ = p(n), g = p(e), w = p(o), m = p(!1), E = p(0);
|
|
163
163
|
ae(
|
|
164
164
|
() => s.value,
|
|
165
165
|
(r, f) => {
|
|
166
|
-
var T,
|
|
167
|
-
const
|
|
168
|
-
if (!((T = l == null ? void 0 : l.allowColumnDragAndDrop) != null && T.value) || !
|
|
166
|
+
var T, F;
|
|
167
|
+
const R = (r == null ? void 0 : r.map(({ field: U }) => U).toString()) === (f == null ? void 0 : f.map(({ field: U }) => U).toString());
|
|
168
|
+
if (!((T = l == null ? void 0 : l.allowColumnDragAndDrop) != null && T.value) || !R) {
|
|
169
169
|
a.value = s.value;
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
a.value = ((
|
|
173
|
-
const
|
|
174
|
-
return
|
|
172
|
+
a.value = ((F = a.value) == null ? void 0 : F.length) === 0 ? s.value : s.value.sort((U, k) => {
|
|
173
|
+
const J = a.value.findIndex((ee) => ee.field === U.field), q = a.value.findIndex((ee) => ee.field === k.field);
|
|
174
|
+
return J === -1 ? 1 : q === -1 ? -1 : J - q;
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
const S = p();
|
|
179
179
|
let u = null;
|
|
180
180
|
const y = v(() => {
|
|
181
|
-
var
|
|
181
|
+
var J, q, ee;
|
|
182
182
|
const r = [];
|
|
183
|
-
let f = 0,
|
|
183
|
+
let f = 0, R = 0;
|
|
184
184
|
const T = {};
|
|
185
|
-
let
|
|
186
|
-
const U = a.value.filter((
|
|
187
|
-
if ((
|
|
188
|
-
const
|
|
189
|
-
|
|
185
|
+
let F = a.value.filter((G) => G.visible !== !1);
|
|
186
|
+
const U = a.value.filter((G) => G.visible === !1);
|
|
187
|
+
if ((J = l == null ? void 0 : l.hasSelectableColumn) != null && J.value || (q = l == null ? void 0 : l.hasNestedContent) != null && q.value || (ee = l == null ? void 0 : l.hasNestedRows) != null && ee.value) {
|
|
188
|
+
const G = Ls(l);
|
|
189
|
+
F = [
|
|
190
190
|
{
|
|
191
191
|
field: oe,
|
|
192
192
|
label: "",
|
|
193
|
-
minWidth:
|
|
194
|
-
width:
|
|
193
|
+
minWidth: G,
|
|
194
|
+
width: G,
|
|
195
195
|
frozen: !0,
|
|
196
196
|
padding: { left: !1, right: !1 }
|
|
197
197
|
},
|
|
198
|
-
...
|
|
198
|
+
...F
|
|
199
199
|
];
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
const
|
|
201
|
+
F.forEach((G) => {
|
|
202
|
+
const P = { ...G };
|
|
203
203
|
let C;
|
|
204
|
-
|
|
205
|
-
(
|
|
206
|
-
(
|
|
207
|
-
),
|
|
208
|
-
}),
|
|
209
|
-
const
|
|
204
|
+
P.flex && P.flex > 0 ? (f += P.flex, C = 0, r.push(P)) : C = Math.max(
|
|
205
|
+
(P == null ? void 0 : P.width) ?? Cs,
|
|
206
|
+
(P == null ? void 0 : P.minWidth) ?? vt
|
|
207
|
+
), R += C, P.width = C, P.minWidth = (P == null ? void 0 : P.minWidth) ?? vt, T[P.field] = P;
|
|
208
|
+
}), R += E.value;
|
|
209
|
+
const k = Math.max(S.value - R, 0);
|
|
210
210
|
if (f > 0 && S.value > 0) {
|
|
211
|
-
const
|
|
212
|
-
Object.keys(
|
|
213
|
-
T[
|
|
211
|
+
const G = Es(k, f, r);
|
|
212
|
+
Object.keys(G).forEach((P) => {
|
|
213
|
+
T[P].width = G[P].computedWidth;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
return U.forEach((
|
|
217
|
-
const
|
|
218
|
-
T[
|
|
216
|
+
return U.forEach((G) => {
|
|
217
|
+
const P = { ...G };
|
|
218
|
+
T[P.field] = P;
|
|
219
219
|
}), Object.values(T);
|
|
220
|
-
}), L = p(void 0),
|
|
220
|
+
}), L = p(void 0), B = (r) => {
|
|
221
221
|
L.value = { ...L.value, ...r };
|
|
222
222
|
}, b = async () => {
|
|
223
|
-
a.value.some((r) => r == null ? void 0 : r.autoWidth) && (
|
|
224
|
-
var U,
|
|
225
|
-
const
|
|
223
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && (m.value = !0, await le(), a == null || a.value.filter((r) => r == null ? void 0 : r.autoWidth).forEach(({ field: r, minWidth: f }) => {
|
|
224
|
+
var U, k, J, q;
|
|
225
|
+
const R = Ct(
|
|
226
226
|
(U = g.value) == null ? void 0 : U[r],
|
|
227
|
-
(
|
|
228
|
-
), T = (q = (
|
|
229
|
-
(
|
|
227
|
+
(k = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : k.value
|
|
228
|
+
), T = (q = (J = w.value) == null ? void 0 : J[r]) == null ? void 0 : q.reduce(
|
|
229
|
+
(ee, G) => Math.max(ee, Ct(G)),
|
|
230
230
|
0
|
|
231
|
-
),
|
|
232
|
-
(f === void 0 ||
|
|
231
|
+
), F = Math.max(R, T ?? 0);
|
|
232
|
+
(f === void 0 || F > f) && B({
|
|
233
233
|
[r]: {
|
|
234
|
-
width:
|
|
234
|
+
width: F
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
}),
|
|
237
|
+
}), m.value = !1);
|
|
238
238
|
};
|
|
239
239
|
ae([() => a.value, () => i.value], async () => {
|
|
240
240
|
a.value.some((r) => r == null ? void 0 : r.autoWidth) && await b();
|
|
241
241
|
});
|
|
242
242
|
const d = v(
|
|
243
243
|
() => y.value.map((r) => {
|
|
244
|
-
var f,
|
|
244
|
+
var f, R;
|
|
245
245
|
return {
|
|
246
246
|
...r,
|
|
247
247
|
// Override column width with resized ones
|
|
248
|
-
width: ((
|
|
248
|
+
width: ((R = (f = L.value) == null ? void 0 : f[r.field]) == null ? void 0 : R.width) ?? r.width
|
|
249
249
|
};
|
|
250
250
|
})
|
|
251
251
|
), A = v(
|
|
252
252
|
() => {
|
|
253
253
|
var r;
|
|
254
|
-
return ((r = d.value) == null ? void 0 : r.filter(({ visible: f }) => f !== !1).reduce((f,
|
|
254
|
+
return ((r = d.value) == null ? void 0 : r.filter(({ visible: f }) => f !== !1).reduce((f, R) => R.width + f, 0)) + E.value;
|
|
255
255
|
}
|
|
256
256
|
), O = v(
|
|
257
257
|
() => S.value <= A.value
|
|
@@ -260,13 +260,13 @@ const vs = (s, t) => {
|
|
|
260
260
|
}));
|
|
261
261
|
return be(() => {
|
|
262
262
|
var f;
|
|
263
|
-
const r = l != null && l.isDataGridTemplate ?
|
|
263
|
+
const r = l != null && l.isDataGridTemplate ? Rs : 0;
|
|
264
264
|
le(() => {
|
|
265
265
|
_.value && (S.value = _.value.getBoundingClientRect().width - r);
|
|
266
|
-
const
|
|
266
|
+
const R = ae(
|
|
267
267
|
_,
|
|
268
268
|
() => {
|
|
269
|
-
_.value && (le(() =>
|
|
269
|
+
_.value && (le(() => R()), u = Ze(_.value, ({ width: T }) => {
|
|
270
270
|
S.value = T - r;
|
|
271
271
|
}));
|
|
272
272
|
},
|
|
@@ -279,18 +279,18 @@ const vs = (s, t) => {
|
|
|
279
279
|
u == null || u.disconnect();
|
|
280
280
|
}), zn(() => {
|
|
281
281
|
var r;
|
|
282
|
-
w.value && ((r = Object.keys(w.value)) == null ? void 0 : r.length) > 0 && Object.keys(w.value).forEach((
|
|
283
|
-
w.value[
|
|
282
|
+
w.value && ((r = Object.keys(w.value)) == null ? void 0 : r.length) > 0 && Object.keys(w.value).forEach((R) => {
|
|
283
|
+
w.value[R] = [];
|
|
284
284
|
});
|
|
285
285
|
}), {
|
|
286
286
|
columnDefs: d,
|
|
287
287
|
gridRowWidthStyle: D,
|
|
288
|
-
onColumnWidthOverride:
|
|
289
|
-
isMeasuringColumnWidths:
|
|
288
|
+
onColumnWidthOverride: B,
|
|
289
|
+
isMeasuringColumnWidths: m,
|
|
290
290
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: O,
|
|
291
291
|
columns: a,
|
|
292
292
|
totalWidthOfAllColumns: A,
|
|
293
|
-
rowActionsMaxWidth:
|
|
293
|
+
rowActionsMaxWidth: E
|
|
294
294
|
};
|
|
295
295
|
}, As = (s, t, n, e, o, l, a) => {
|
|
296
296
|
const i = p(s.value ?? []), _ = ke({
|
|
@@ -304,44 +304,44 @@ const vs = (s, t) => {
|
|
|
304
304
|
), w = v(
|
|
305
305
|
() => {
|
|
306
306
|
var r, f;
|
|
307
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.every((
|
|
307
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.every((R) => i.value.includes(e(R))));
|
|
308
308
|
}
|
|
309
|
-
),
|
|
309
|
+
), m = v(
|
|
310
310
|
() => {
|
|
311
311
|
var r, f;
|
|
312
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.filter((
|
|
312
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.filter((R) => !o(R)).every((R) => i.value.includes(e(R))));
|
|
313
313
|
}
|
|
314
|
-
),
|
|
314
|
+
), E = v(
|
|
315
315
|
() => {
|
|
316
316
|
var r, f;
|
|
317
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.some((
|
|
317
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.some((R) => i.value.includes(e(R))));
|
|
318
318
|
}
|
|
319
319
|
), S = v(
|
|
320
320
|
() => {
|
|
321
321
|
var r, f;
|
|
322
|
-
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.filter((
|
|
322
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.filter((R) => !o(R)).some((R) => i.value.includes(e(R))));
|
|
323
323
|
}
|
|
324
324
|
), u = v(() => {
|
|
325
325
|
var r;
|
|
326
|
-
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;
|
|
326
|
+
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;
|
|
327
327
|
}), y = () => {
|
|
328
328
|
t(N.SELECT, i.value), t(N.UPDATE_SELECTION, i.value);
|
|
329
329
|
}, L = (r) => {
|
|
330
|
-
var f,
|
|
331
|
-
i.value = r, w.value ? (_.allItemsSelected = !0, _.isIndeterminate = !1) : (_.allItemsSelected = !1, _.isIndeterminate = ((f = i.value) == null ? void 0 : f.length) > 0 && ((
|
|
330
|
+
var f, R;
|
|
331
|
+
i.value = r, w.value ? (_.allItemsSelected = !0, _.isIndeterminate = !1) : (_.allItemsSelected = !1, _.isIndeterminate = ((f = i.value) == null ? void 0 : f.length) > 0 && ((R = n.value) == null ? void 0 : R.length) > 0 && n.value.some(
|
|
332
332
|
(T) => {
|
|
333
|
-
var
|
|
334
|
-
return i.value.includes(e(T)) || ((
|
|
333
|
+
var F;
|
|
334
|
+
return i.value.includes(e(T)) || ((F = T == null ? void 0 : T.children) == null ? void 0 : F.some((U) => i.value.includes(e(U))));
|
|
335
335
|
}
|
|
336
336
|
));
|
|
337
|
-
},
|
|
337
|
+
}, B = (r) => {
|
|
338
338
|
le(() => {
|
|
339
|
-
var
|
|
339
|
+
var R, T;
|
|
340
340
|
_.allItemsSelected = r;
|
|
341
|
-
const f = ((T = (
|
|
342
|
-
(
|
|
343
|
-
)) == null ? void 0 : T.map((
|
|
344
|
-
r ? (i.value = [.../* @__PURE__ */ new Set([...i.value, ...f])], _.isIndeterminate = !w.value) : (i.value = i.value.filter((
|
|
341
|
+
const f = ((T = (R = g.value) == null ? void 0 : R.filter(
|
|
342
|
+
(F) => !o(F) && ((F == null ? void 0 : F.children) === void 0 || F.children.every((U) => !o(U)))
|
|
343
|
+
)) == null ? void 0 : T.map((F) => e(F))) ?? [];
|
|
344
|
+
r ? (i.value = [.../* @__PURE__ */ new Set([...i.value, ...f])], _.isIndeterminate = !w.value) : (i.value = i.value.filter((F) => !f.includes(F)), _.isIndeterminate = !E.value), y();
|
|
345
345
|
});
|
|
346
346
|
}, b = () => {
|
|
347
347
|
le(() => {
|
|
@@ -349,30 +349,30 @@ const vs = (s, t) => {
|
|
|
349
349
|
});
|
|
350
350
|
}, d = (r, f) => {
|
|
351
351
|
le(() => {
|
|
352
|
-
var
|
|
353
|
-
L(((
|
|
352
|
+
var R;
|
|
353
|
+
L(((R = f == null ? void 0 : f.children) == null ? void 0 : R.length) > 0 ? A(r, f) : r), y();
|
|
354
354
|
});
|
|
355
355
|
}, A = (r, f) => {
|
|
356
|
-
var
|
|
357
|
-
const
|
|
358
|
-
if (r.includes(
|
|
356
|
+
var F;
|
|
357
|
+
const R = e(f), T = (F = f.children) == null ? void 0 : F.filter((U) => !o(U)).map((U) => e(U));
|
|
358
|
+
if (r.includes(R)) {
|
|
359
359
|
const U = r;
|
|
360
|
-
return T.forEach((
|
|
361
|
-
U.includes(
|
|
360
|
+
return T.forEach((k) => {
|
|
361
|
+
U.includes(k) || U.push(k);
|
|
362
362
|
}), U;
|
|
363
363
|
}
|
|
364
364
|
return r.filter((U) => !T.includes(U));
|
|
365
|
-
}, O = (r, f,
|
|
365
|
+
}, O = (r, f, R) => {
|
|
366
366
|
le(() => {
|
|
367
|
-
var
|
|
367
|
+
var F, U;
|
|
368
368
|
const T = e(f);
|
|
369
|
-
r.includes(e(
|
|
370
|
-
!r.includes(T) && ((
|
|
369
|
+
r.includes(e(R)) ? L(
|
|
370
|
+
!r.includes(T) && ((F = f == null ? void 0 : f.children) != null && F.every((k) => r.includes(e(k)))) ? [...r, T] : r
|
|
371
371
|
) : L(
|
|
372
|
-
r.includes(T) && !((U = f == null ? void 0 : f.children) != null && U.every((
|
|
372
|
+
r.includes(T) && !((U = f == null ? void 0 : f.children) != null && U.every((k) => r.includes(e(k)))) ? r.filter((k) => k !== T) : r
|
|
373
373
|
), y();
|
|
374
374
|
});
|
|
375
|
-
}, D = v(() => u.value ? "all" :
|
|
375
|
+
}, D = v(() => u.value ? "all" : m.value ? "page" : !i.value || i.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
376
376
|
return ae(
|
|
377
377
|
() => s.value,
|
|
378
378
|
() => {
|
|
@@ -384,14 +384,14 @@ const vs = (s, t) => {
|
|
|
384
384
|
() => {
|
|
385
385
|
const r = n.value.filter((f) => i.value.includes(e(f))).flatMap(
|
|
386
386
|
(f) => {
|
|
387
|
-
var
|
|
388
|
-
return ((
|
|
387
|
+
var R;
|
|
388
|
+
return ((R = f == null ? void 0 : f.children) == null ? void 0 : R.length) > 0 ? f.children.map((T) => e(T)).filter((T) => !i.value.includes(T)) : [];
|
|
389
389
|
}
|
|
390
390
|
);
|
|
391
391
|
(r == null ? void 0 : r.length) > 0 ? (L([...i.value, ...r]), y()) : L(i.value);
|
|
392
392
|
}
|
|
393
393
|
), {
|
|
394
|
-
onAllRowSelect:
|
|
394
|
+
onAllRowSelect: B,
|
|
395
395
|
onRowSelect: d,
|
|
396
396
|
onNestedRowSelect: O,
|
|
397
397
|
onDeselectAll: b,
|
|
@@ -439,7 +439,7 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
439
439
|
r != null && r[O] && d.push(r[O]);
|
|
440
440
|
}
|
|
441
441
|
return d;
|
|
442
|
-
}), w = (b) => Math.floor(b / _.value),
|
|
442
|
+
}), w = (b) => Math.floor(b / _.value), m = (b, d, A) => {
|
|
443
443
|
const O = g.value.length - 1, D = _.value - 1, r = w(b), f = b - _.value * r;
|
|
444
444
|
return {
|
|
445
445
|
[se.PAGE_UP]: f + (a.value ? _.value : 0),
|
|
@@ -447,7 +447,7 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
447
447
|
[se.END]: A ? O : _.value * r + D,
|
|
448
448
|
[se.HOME]: A ? a.value ? _.value : 0 : _.value * r
|
|
449
449
|
}[d];
|
|
450
|
-
},
|
|
450
|
+
}, E = (b, d) => {
|
|
451
451
|
const A = w(b), D = {
|
|
452
452
|
[se.ARROW_DOWN]: _.value,
|
|
453
453
|
[se.ARROW_UP]: A === 0 && !a.value ? 0 : -_.value,
|
|
@@ -462,7 +462,7 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
462
462
|
se.HOME
|
|
463
463
|
].includes(b), u = (b, d, A) => {
|
|
464
464
|
const O = g.value.indexOf(b);
|
|
465
|
-
return S(d) ?
|
|
465
|
+
return S(d) ? m(O, d, A) : E(O, d);
|
|
466
466
|
}, y = (b, d, A) => {
|
|
467
467
|
if (!g.value.includes(b))
|
|
468
468
|
return;
|
|
@@ -479,15 +479,15 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}, Ns = 90, Is = (s, t, n, e, o) => {
|
|
482
|
-
const l = p(s), a = p(t), i = p(n), _ = p(e), g = v(() => l.value !== "none"), w = v(() => l.value === "automatic"),
|
|
482
|
+
const l = p(s), a = p(t), i = p(n), _ = p(e), g = v(() => l.value !== "none"), w = v(() => l.value === "automatic"), m = () => {
|
|
483
483
|
o(N.UPDATE_SHOW_MORE);
|
|
484
484
|
};
|
|
485
485
|
return ae(
|
|
486
486
|
() => a.value,
|
|
487
487
|
() => {
|
|
488
|
-
w.value && i.value.offsetHeight / a.value * 100 > Ns && !_.value &&
|
|
488
|
+
w.value && i.value.offsetHeight / a.value * 100 > Ns && !_.value && m();
|
|
489
489
|
}
|
|
490
|
-
), { isLazyLoad: g, isInfiniteScroll: w, verticalScrollPosition: a, emitLazyLoadEvent:
|
|
490
|
+
), { isLazyLoad: g, isInfiniteScroll: w, verticalScrollPosition: a, emitLazyLoadEvent: m };
|
|
491
491
|
}, Ds = (s, t, n) => {
|
|
492
492
|
const e = p(s), o = p(t), l = ke({
|
|
493
493
|
dragging: null,
|
|
@@ -497,21 +497,21 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
497
497
|
const y = e.value.findIndex((b) => b.field === S.field), L = y + u;
|
|
498
498
|
if (L < 0 || L > e.value.length - 1)
|
|
499
499
|
return;
|
|
500
|
-
const
|
|
501
|
-
|
|
500
|
+
const B = [...e.value];
|
|
501
|
+
B.splice(L, 0, B.splice(y, 1)[0]), n(N.COLUMNS, B), n(N.UPDATE_COLUMNS, B);
|
|
502
502
|
}, i = (S, u) => {
|
|
503
503
|
l.dragging = S, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
504
504
|
}, _ = (S, u) => {
|
|
505
505
|
l.target = S;
|
|
506
|
-
const y = u.currentTarget.getBoundingClientRect(), L = y.left + y.width / 2,
|
|
507
|
-
l.dragToLeft =
|
|
506
|
+
const y = u.currentTarget.getBoundingClientRect(), L = y.left + y.width / 2, B = u.clientX ?? 0;
|
|
507
|
+
l.dragToLeft = B <= L;
|
|
508
508
|
}, g = (S) => {
|
|
509
509
|
var u, y;
|
|
510
510
|
if (((u = l.dragging) == null ? void 0 : u.field) !== S.field) {
|
|
511
511
|
const L = e.value.findIndex((D) => {
|
|
512
512
|
var r;
|
|
513
513
|
return D.field === ((r = l.dragging) == null ? void 0 : r.field);
|
|
514
|
-
}),
|
|
514
|
+
}), B = e.value.findIndex((D) => D.field === S.field), b = l.dragToLeft ? B : B + 1, d = b > L ? b - 1 : b;
|
|
515
515
|
let A = [...e.value];
|
|
516
516
|
A.splice(
|
|
517
517
|
d === -1 ? 0 : d,
|
|
@@ -529,12 +529,12 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
529
529
|
l.dragging = null, l.target = null;
|
|
530
530
|
}, w = () => {
|
|
531
531
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
532
|
-
},
|
|
532
|
+
}, m = v(() => o.value ? {
|
|
533
533
|
[j.COLUMN_DRAG_START]: (S, u) => i(S, u),
|
|
534
534
|
[j.COLUMN_DRAG_ENTER]: (S, u) => _(S, u),
|
|
535
535
|
[j.COLUMN_DROP]: (S) => g(S),
|
|
536
536
|
[j.COLUMN_DRAG_END]: () => w()
|
|
537
|
-
} : {}),
|
|
537
|
+
} : {}), E = v(() => (S) => o.value ? {
|
|
538
538
|
dragenter: (u) => {
|
|
539
539
|
u.preventDefault(), _(S, u);
|
|
540
540
|
},
|
|
@@ -549,8 +549,8 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
549
549
|
// Values
|
|
550
550
|
draggingColumns: l,
|
|
551
551
|
// Methods
|
|
552
|
-
draggingEventsForColumns:
|
|
553
|
-
draggingEventsForRowCell:
|
|
552
|
+
draggingEventsForColumns: m,
|
|
553
|
+
draggingEventsForRowCell: E,
|
|
554
554
|
onMoveColumnByOffset: a
|
|
555
555
|
};
|
|
556
556
|
}, xs = (s, t, n) => {
|
|
@@ -567,15 +567,15 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
567
567
|
].filter(({ columnSet: u }) => u.length)
|
|
568
568
|
), g = v(
|
|
569
569
|
() => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== oe).length === 1
|
|
570
|
-
), w = (u) => n(N.UPDATE_CONDENSED, u),
|
|
570
|
+
), w = (u) => n(N.UPDATE_CONDENSED, u), m = (u) => {
|
|
571
571
|
o.value = u, n(N.UPDATE_ZEBRA_ROWS, u);
|
|
572
|
-
},
|
|
572
|
+
}, E = (u) => {
|
|
573
573
|
n(N.COLUMNS, u), n(N.UPDATE_COLUMNS, u);
|
|
574
574
|
}, S = (u) => {
|
|
575
575
|
const y = l.value.map(
|
|
576
576
|
(L) => (L == null ? void 0 : L.field) === u.field ? u : L
|
|
577
577
|
);
|
|
578
|
-
|
|
578
|
+
E(y);
|
|
579
579
|
};
|
|
580
580
|
return ae(t, (u) => {
|
|
581
581
|
o.value = u;
|
|
@@ -586,12 +586,12 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
586
586
|
internalZebraRows: o,
|
|
587
587
|
sortedColumns: l,
|
|
588
588
|
// Methods
|
|
589
|
-
onConfigSettingsColumnsUpdate:
|
|
589
|
+
onConfigSettingsColumnsUpdate: E,
|
|
590
590
|
onConfigSettingsColumnUpdate: S,
|
|
591
591
|
onConfigSettingsCondensedUpdate: w,
|
|
592
|
-
onConfigSettingsZebraRowsUpdate:
|
|
592
|
+
onConfigSettingsZebraRowsUpdate: m
|
|
593
593
|
};
|
|
594
|
-
},
|
|
594
|
+
}, Bs = (s, t, n, e, o, l, a) => {
|
|
595
595
|
const i = p(0), _ = p(!1), g = p(!1);
|
|
596
596
|
ae([() => i.value, () => l.value], ([u]) => {
|
|
597
597
|
s.value.scrollLeft = u, t.value.scrollLeft = u, _.value = !!u, g.value = t.value.scrollWidth - t.value.offsetWidth > u;
|
|
@@ -604,16 +604,16 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
604
604
|
const y = u.target.scrollLeft;
|
|
605
605
|
e.value.scrollLeft !== y && (e.value.scrollLeft = y);
|
|
606
606
|
}
|
|
607
|
-
},
|
|
607
|
+
}, m = (u) => {
|
|
608
608
|
u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
609
609
|
s.value && (s.value.style.overflowX = "auto");
|
|
610
610
|
}));
|
|
611
|
-
},
|
|
611
|
+
}, E = (u) => {
|
|
612
612
|
const y = u.target.scrollLeft;
|
|
613
613
|
s.value.scrollLeft !== y && (s.value.scrollLeft = y);
|
|
614
614
|
}, S = v(() => {
|
|
615
|
-
var u, y, L,
|
|
616
|
-
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((y = a == null ? void 0 : a.stickyPagination) != null && y.value || a != null && a.isDataGridTemplate) && !((L = a == null ? void 0 : a.isLazyLoad) != null && L.value) ? { bottom: `${(((
|
|
615
|
+
var u, y, L, B;
|
|
616
|
+
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((y = a == null ? void 0 : a.stickyPagination) != null && y.value || a != null && a.isDataGridTemplate) && !((L = a == null ? void 0 : a.isLazyLoad) != null && L.value) ? { bottom: `${(((B = o.value) == null ? void 0 : B.clientHeight) ?? 0) + 1}px` } : {};
|
|
617
617
|
});
|
|
618
618
|
return {
|
|
619
619
|
// Values
|
|
@@ -623,12 +623,12 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
623
623
|
horizontalScrollbarConditionalStyles: S,
|
|
624
624
|
// Methods
|
|
625
625
|
updateScrollPosition: w,
|
|
626
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
627
|
-
syncVirtualScrollerWithBody:
|
|
626
|
+
updateScrollPositionOnFrozenColumnsNavigation: m,
|
|
627
|
+
syncVirtualScrollerWithBody: E
|
|
628
628
|
};
|
|
629
|
-
},
|
|
629
|
+
}, Fs = (s, t, n, e) => {
|
|
630
630
|
const o = p(null), l = v(() => {
|
|
631
|
-
var y, L,
|
|
631
|
+
var y, L, B, b;
|
|
632
632
|
if (!o.value || o.value.field === oe)
|
|
633
633
|
return {
|
|
634
634
|
hoveredOverColumnField: "",
|
|
@@ -636,11 +636,11 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
636
636
|
noBorderLeft: !1,
|
|
637
637
|
noBorderRight: !1
|
|
638
638
|
};
|
|
639
|
-
const a = (L = (y = s.value.find((d) => d.isFrozenColumns)) == null ? void 0 : y.columnSet) == null ? void 0 : L.filter((d) => d.field !== oe), i = s.value.find((d) => !(d != null && d.isFrozenColumns)), _ = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, g = !o.value.frozen && ((
|
|
639
|
+
const a = (L = (y = s.value.find((d) => d.isFrozenColumns)) == null ? void 0 : y.columnSet) == null ? void 0 : L.filter((d) => d.field !== oe), i = s.value.find((d) => !(d != null && d.isFrozenColumns)), _ = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, g = !o.value.frozen && ((B = i == null ? void 0 : i.columnSet) == null ? void 0 : B[0].field) === o.value.field, w = (t.value || n.value) && _, m = (t.value || n.value) && !a && g, E = a && g, S = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, u = n.value && e.value && !o.value.frozen && ((b = i == null ? void 0 : i.columnSet) == null ? void 0 : b[i.columnSet.length - 1].field) === o.value.field;
|
|
640
640
|
return {
|
|
641
641
|
hoveredOverColumnField: o.value.field,
|
|
642
642
|
isSeparatorOffset: u,
|
|
643
|
-
noBorderLeft: !!w || !!
|
|
643
|
+
noBorderLeft: !!w || !!m || !!E,
|
|
644
644
|
noBorderRight: !!S || !!u
|
|
645
645
|
};
|
|
646
646
|
});
|
|
@@ -649,10 +649,10 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
649
649
|
hoveredOverColumnState: l
|
|
650
650
|
};
|
|
651
651
|
}, qe = (s) => {
|
|
652
|
-
const n =
|
|
652
|
+
const n = Bt(s).filter((e) => e.node !== s);
|
|
653
653
|
return (n == null ? void 0 : n.length) > 0 ? (n[0].node.focus(), !0) : !1;
|
|
654
654
|
}, we = (s) => {
|
|
655
|
-
const t =
|
|
655
|
+
const t = Bt(s), n = t == null ? void 0 : t.filter((e) => e.node !== s);
|
|
656
656
|
if ((n == null ? void 0 : n.length) > 0)
|
|
657
657
|
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
658
658
|
}, Mt = (s) => {
|
|
@@ -696,16 +696,16 @@ const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
696
696
|
})
|
|
697
697
|
]);
|
|
698
698
|
};
|
|
699
|
-
let
|
|
699
|
+
let mt = 0;
|
|
700
700
|
const Ms = {
|
|
701
701
|
beforeCreate() {
|
|
702
|
-
this.uuid =
|
|
702
|
+
this.uuid = mt.toString(), mt += 1;
|
|
703
703
|
}
|
|
704
704
|
};
|
|
705
705
|
var Ps = function() {
|
|
706
706
|
var t = this, n = t._self._c;
|
|
707
707
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
708
|
-
}, zs = [], $s = /* @__PURE__ */
|
|
708
|
+
}, zs = [], $s = /* @__PURE__ */ Y(
|
|
709
709
|
Ms,
|
|
710
710
|
Ps,
|
|
711
711
|
zs,
|
|
@@ -714,16 +714,16 @@ var Ps = function() {
|
|
|
714
714
|
null
|
|
715
715
|
);
|
|
716
716
|
const ks = $s.exports;
|
|
717
|
-
let
|
|
717
|
+
let ht = 0;
|
|
718
718
|
const Ws = {
|
|
719
719
|
beforeCreate() {
|
|
720
|
-
this.uuid =
|
|
720
|
+
this.uuid = ht.toString(), ht += 1;
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
723
|
var Gs = function() {
|
|
724
724
|
var t = this, n = t._self._c;
|
|
725
725
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
|
|
726
|
-
}, Hs = [], Vs = /* @__PURE__ */
|
|
726
|
+
}, Hs = [], Vs = /* @__PURE__ */ Y(
|
|
727
727
|
Ws,
|
|
728
728
|
Gs,
|
|
729
729
|
Hs,
|
|
@@ -741,7 +741,7 @@ const js = {
|
|
|
741
741
|
var qs = function() {
|
|
742
742
|
var t = this, n = t._self._c;
|
|
743
743
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M10.5605 14.5L9.94434 13.8838C9.6002 13.5397 9.18722 13.3072 8.75 13.1836V10.9336L10.1689 10.1162L11.6865 10.9941L12.1094 12.5605C12.1146 12.5821 12.1182 12.6044 12.124 12.626L12.1553 12.7441L12.3496 13.4688L13.7988 13.0801L13.6162 12.4004L13.6201 12.3984L13.5547 12.1592C13.4254 11.5178 13.8153 10.878 14.4561 10.7061L14.5742 10.6748L15.2988 10.4805L14.9102 9.03125L14.2295 9.21387L14.2285 9.20996L13.5049 9.40625L12.4346 9.69531L10.9199 8.81836V7.18262L12.8633 6.05762C13.1889 6.37496 13.597 6.61697 14.0674 6.74316L14.1855 6.77441L14.9102 6.96875L15.2988 5.52051L14.5742 5.32617L14.4561 5.29395C13.7894 5.11503 13.3935 4.4294 13.5723 3.7627L13.6045 3.64453L13.7988 2.91992L12.3496 2.53125L12.1553 3.25586L12.124 3.37402C11.9979 3.84406 12.0018 4.31824 12.1133 4.75879L10.1689 5.88477L8.75 5.06738V2.81738C9.18731 2.69384 9.60013 2.46036 9.94434 2.11621L10.5605 1.5L9.5 0.439453L8.88379 1.05566C8.39567 1.54362 7.60433 1.54362 7.11621 1.05566L6.5 0.439453L5.43945 1.5L6.05566 2.11621C6.39987 2.46036 6.81269 2.69384 7.25 2.81738V5.06738L5.83105 5.88477L3.88574 4.75879C3.99724 4.31819 4.00207 3.84412 3.87598 3.37402L3.84473 3.25586L3.65039 2.53125L2.20117 2.91992L2.39551 3.64453L2.42773 3.7627C2.60651 4.42942 2.21066 5.11507 1.54395 5.29395L1.42578 5.32617L0.701172 5.52051L1.08984 6.96875L1.81445 6.77441L1.93262 6.74316C2.40275 6.61703 2.81018 6.37474 3.13574 6.05762L5.08008 7.18262V8.81836L3.13574 9.94336C2.81015 9.62622 2.40287 9.38399 1.93262 9.25781L1.81445 9.22559L1.08984 9.03125L0.701172 10.4805L1.42578 10.6748L1.54395 10.7061C2.2106 10.8849 2.60644 11.5706 2.42773 12.2373L2.39551 12.3555L2.20117 13.0801L3.65039 13.4688L3.84473 12.7441L3.87598 12.626C4.00207 12.1559 3.99723 11.6817 3.88574 11.2412L5.83105 10.1162L7.25 10.9336V13.1836C6.81278 13.3072 6.3998 13.5397 6.05566 13.8838L5.43945 14.5L6.5 15.5605L7.11621 14.9443C7.60433 14.4564 8.39567 14.4564 8.88379 14.9443L9.5 15.5605L10.5605 14.5ZM6.58008 8.81641V7.18262L8 6.36426L9.41992 7.18262V8.81641L8 9.63477L6.58008 8.81641Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
744
|
-
}, Ks = [], Ys = /* @__PURE__ */
|
|
744
|
+
}, Ks = [], Ys = /* @__PURE__ */ Y(
|
|
745
745
|
js,
|
|
746
746
|
qs,
|
|
747
747
|
Ks,
|
|
@@ -759,7 +759,7 @@ const Js = {
|
|
|
759
759
|
var Xs = function() {
|
|
760
760
|
var t = this, n = t._self._c;
|
|
761
761
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
762
|
-
}, Qs = [], eo = /* @__PURE__ */
|
|
762
|
+
}, Qs = [], eo = /* @__PURE__ */ Y(
|
|
763
763
|
Js,
|
|
764
764
|
Xs,
|
|
765
765
|
Qs,
|
|
@@ -777,7 +777,7 @@ const no = {
|
|
|
777
777
|
var so = function() {
|
|
778
778
|
var t = this, n = t._self._c;
|
|
779
779
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
780
|
-
}, oo = [], lo = /* @__PURE__ */
|
|
780
|
+
}, oo = [], lo = /* @__PURE__ */ Y(
|
|
781
781
|
no,
|
|
782
782
|
so,
|
|
783
783
|
oo,
|
|
@@ -795,7 +795,7 @@ const io = {
|
|
|
795
795
|
var ro = function() {
|
|
796
796
|
var t = this, n = t._self._c;
|
|
797
797
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
798
|
-
}, co = [], uo = /* @__PURE__ */
|
|
798
|
+
}, co = [], uo = /* @__PURE__ */ Y(
|
|
799
799
|
io,
|
|
800
800
|
ro,
|
|
801
801
|
co,
|
|
@@ -844,7 +844,7 @@ const fo = uo.exports, go = {
|
|
|
844
844
|
}, zt = Symbol("data-grid slashed zero key"), Ae = Symbol("data-grid small container key"), De = Symbol("data-grid touch device key"), _o = {
|
|
845
845
|
i18n: { messages: go },
|
|
846
846
|
name: "data-grid-columns"
|
|
847
|
-
}, vo = /* @__PURE__ */
|
|
847
|
+
}, vo = /* @__PURE__ */ Ce({
|
|
848
848
|
..._o,
|
|
849
849
|
props: {
|
|
850
850
|
/**
|
|
@@ -862,11 +862,11 @@ const fo = uo.exports, go = {
|
|
|
862
862
|
default: void 0
|
|
863
863
|
},
|
|
864
864
|
/**
|
|
865
|
-
*
|
|
865
|
+
* Determines the state of the current results: { filtered: boolean, allItemsVisible: boolean } to render the correct select all menu options
|
|
866
866
|
*/
|
|
867
|
-
|
|
868
|
-
type:
|
|
869
|
-
default:
|
|
867
|
+
visibleRowsState: {
|
|
868
|
+
type: Object,
|
|
869
|
+
default: void 0
|
|
870
870
|
},
|
|
871
871
|
/**
|
|
872
872
|
* Toggle the columns draggable events.
|
|
@@ -992,59 +992,63 @@ const fo = uo.exports, go = {
|
|
|
992
992
|
},
|
|
993
993
|
emits: ["sort", "column-hover"],
|
|
994
994
|
setup(s, { expose: t, emit: n }) {
|
|
995
|
-
const e = s, o = 100, { t: l } =
|
|
996
|
-
() =>
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
995
|
+
const e = s, o = 100, { t: l } = pe(), { columns: a, sortBy: i } = We(e), _ = p(), g = p({}), w = p({}), m = p(), E = p(), S = (c) => n(j.SELECT_ALL_ROWS, c), u = (c) => c.field === oe, y = v(() => e.selectionState === "all"), L = v(
|
|
996
|
+
() => {
|
|
997
|
+
var c, M, X;
|
|
998
|
+
return [
|
|
999
|
+
{
|
|
1000
|
+
text: l("selectPage"),
|
|
1001
|
+
handler: () => S(!0),
|
|
1002
|
+
disabled: e.selectionState === "page" || e.selectionState === "all"
|
|
1003
|
+
},
|
|
1004
|
+
(c = e.visibleRowsState) != null && c.filtered ? {
|
|
1005
|
+
text: l("selectAllCurrentResults"),
|
|
1006
|
+
handler: () => n(j.SELECT_ALL_CURRENT_RESULTS),
|
|
1007
|
+
addDivider: e.selectionState !== "none",
|
|
1008
|
+
disabled: e.selectionState === "all"
|
|
1009
|
+
} : {
|
|
1010
|
+
text: l("selectAll"),
|
|
1011
|
+
handler: () => n(j.SELECT_ALL_ACROSS_PAGES),
|
|
1012
|
+
addDivider: e.selectionState !== "none",
|
|
1013
|
+
disabled: e.selectionState === "all"
|
|
1014
|
+
},
|
|
1015
|
+
e.selectionState !== "none" && {
|
|
1016
|
+
text: l("deselectPage"),
|
|
1017
|
+
handler: () => S(!1),
|
|
1018
|
+
addDivider: !((M = e.visibleRowsState) != null && M.filtered),
|
|
1019
|
+
// otherwise divider shown in deselect all in current results
|
|
1020
|
+
disabled: e.selectionState === "unselected-page"
|
|
1021
|
+
},
|
|
1022
|
+
((X = e.visibleRowsState) == null ? void 0 : X.filtered) && e.selectionState !== "none" && {
|
|
1023
|
+
text: l("deselectAllCurrentResults"),
|
|
1024
|
+
handler: () => n(j.DESELECT_ALL_CURRENT_RESULTS),
|
|
1025
|
+
addDivider: !0,
|
|
1026
|
+
disabled: e.selectionState === "unselected-page" && e.visibleRowsState.allRowsVisible
|
|
1027
|
+
},
|
|
1028
|
+
e.selectionState !== "none" && {
|
|
1029
|
+
text: l("deselectAll"),
|
|
1030
|
+
handler: () => n(j.DESELECT_ALL)
|
|
1031
|
+
}
|
|
1032
|
+
].filter(Boolean);
|
|
1033
|
+
}
|
|
1034
|
+
), { startResize: B, isResizing: b, columnHoverEventToEmitAfterResizing: d } = vs(a, n), { isSorting: A, getSortingDirection: O, sortByColumnField: D } = Ts(i, a, n), r = (c) => {
|
|
1031
1035
|
var ne;
|
|
1032
1036
|
if (!c.sortable)
|
|
1033
1037
|
return null;
|
|
1034
|
-
const
|
|
1035
|
-
return
|
|
1038
|
+
const M = (ne = e.sortBy.find(({ field: he }) => he === c.field)) == null ? void 0 : ne.direction;
|
|
1039
|
+
return M ? {
|
|
1036
1040
|
[Se.ASCENDING]: Ne.ASCENDING,
|
|
1037
1041
|
[Se.DESCENDING]: Ne.DESCENDING
|
|
1038
|
-
}[
|
|
1042
|
+
}[M] : Ne.NONE;
|
|
1039
1043
|
}, f = v(() => (c) => e.hasDraggableColumns ? {
|
|
1040
|
-
dragstart: (
|
|
1041
|
-
n(j.COLUMN_DRAG_START, c,
|
|
1044
|
+
dragstart: (M) => {
|
|
1045
|
+
n(j.COLUMN_DRAG_START, c, M);
|
|
1042
1046
|
},
|
|
1043
|
-
dragover: (
|
|
1044
|
-
|
|
1047
|
+
dragover: (M) => {
|
|
1048
|
+
M.preventDefault();
|
|
1045
1049
|
},
|
|
1046
|
-
dragenter: (
|
|
1047
|
-
|
|
1050
|
+
dragenter: (M) => {
|
|
1051
|
+
M.preventDefault(), n(j.COLUMN_DRAG_ENTER, c, M);
|
|
1048
1052
|
},
|
|
1049
1053
|
drop: () => {
|
|
1050
1054
|
n(j.COLUMN_DROP, c);
|
|
@@ -1052,7 +1056,7 @@ const fo = uo.exports, go = {
|
|
|
1052
1056
|
dragend: () => {
|
|
1053
1057
|
n(j.COLUMN_DRAG_END);
|
|
1054
1058
|
}
|
|
1055
|
-
} : {}),
|
|
1059
|
+
} : {}), R = v(
|
|
1056
1060
|
() => (c) => [
|
|
1057
1061
|
{
|
|
1058
1062
|
text: l("moveColumnLeft"),
|
|
@@ -1084,44 +1088,44 @@ const fo = uo.exports, go = {
|
|
|
1084
1088
|
}
|
|
1085
1089
|
].filter(Boolean)
|
|
1086
1090
|
), T = (c) => {
|
|
1087
|
-
|
|
1088
|
-
},
|
|
1089
|
-
const
|
|
1090
|
-
c.field ===
|
|
1091
|
+
m.value = c.field, E.value && clearTimeout(E.value);
|
|
1092
|
+
}, F = (c) => {
|
|
1093
|
+
const M = setTimeout(() => {
|
|
1094
|
+
c.field === m.value && (m.value = "");
|
|
1091
1095
|
}, o);
|
|
1092
|
-
|
|
1096
|
+
E.value = M;
|
|
1093
1097
|
}, U = (c) => {
|
|
1094
|
-
let
|
|
1098
|
+
let M = {
|
|
1095
1099
|
mouseenter: () => {
|
|
1096
1100
|
T(c), b.value ? d.value = c : n("column-hover", c);
|
|
1097
1101
|
},
|
|
1098
1102
|
mouseleave: () => {
|
|
1099
|
-
|
|
1103
|
+
F(c), b.value ? d.value = null : n("column-hover", null);
|
|
1100
1104
|
},
|
|
1101
1105
|
focus: () => {
|
|
1102
1106
|
T(c), u(c) && qe(g.value[c.field]);
|
|
1103
1107
|
},
|
|
1104
|
-
focusout: (
|
|
1108
|
+
focusout: (X) => {
|
|
1105
1109
|
var ne;
|
|
1106
|
-
(ne = _.value) != null && ne.contains(
|
|
1110
|
+
(ne = _.value) != null && ne.contains(X == null ? void 0 : X.relatedTarget) || F(c);
|
|
1107
1111
|
}
|
|
1108
1112
|
};
|
|
1109
|
-
return u(c) || (
|
|
1110
|
-
...
|
|
1113
|
+
return u(c) || (M = {
|
|
1114
|
+
...M,
|
|
1111
1115
|
...f.value(c)
|
|
1112
|
-
}),
|
|
1113
|
-
},
|
|
1114
|
-
var
|
|
1115
|
-
((
|
|
1116
|
-
}, q =
|
|
1116
|
+
}), M;
|
|
1117
|
+
}, k = (c) => c.infoIconTooltip || c.sortable || e.hasColumnPanel, J = (c, M) => {
|
|
1118
|
+
var X;
|
|
1119
|
+
((X = g.value) == null ? void 0 : X[M]) === void 0 && (g.value = { ...g.value, [M]: null }), c !== null && (g.value[M] = c);
|
|
1120
|
+
}, q = ve(
|
|
1117
1121
|
Ae,
|
|
1118
1122
|
v(() => !1)
|
|
1119
|
-
),
|
|
1120
|
-
var
|
|
1123
|
+
), ee = ve(De, p(!1)), G = v(() => {
|
|
1124
|
+
var M;
|
|
1121
1125
|
const c = {
|
|
1122
1126
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
1123
1127
|
};
|
|
1124
|
-
return (
|
|
1128
|
+
return (M = a.value[0]) != null && M.frozen && !q.value ? {
|
|
1125
1129
|
...c,
|
|
1126
1130
|
"b-data-grid-columns--frozen": !0,
|
|
1127
1131
|
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
@@ -1130,41 +1134,41 @@ const fo = uo.exports, go = {
|
|
|
1130
1134
|
...c,
|
|
1131
1135
|
"b-data-grid-columns--unfrozen": !0
|
|
1132
1136
|
};
|
|
1133
|
-
}),
|
|
1137
|
+
}), P = v(() => ({
|
|
1134
1138
|
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1135
|
-
})), C = (c,
|
|
1136
|
-
var
|
|
1139
|
+
})), C = (c, M) => c && M === 0 ? ut.BOTTOM_START : ut.BOTTOM_END, z = (c, M) => {
|
|
1140
|
+
var X, ne, he, h, x, H, te, re, ue, Z;
|
|
1137
1141
|
return {
|
|
1138
1142
|
"b-data-grid-columns__column--column-hovered": c.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1139
1143
|
"b-data-grid-columns__column--column-hovered-no-border-left": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1140
1144
|
"b-data-grid-columns__column--column-hovered-no-border-right": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1141
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns &&
|
|
1145
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && M === a.value.length - 1,
|
|
1142
1146
|
"b-data-grid-columns__column--sortable": c.sortable,
|
|
1143
|
-
"b-data-grid-columns__column--padding-left-unset": ((
|
|
1147
|
+
"b-data-grid-columns__column--padding-left-unset": ((X = c == null ? void 0 : c.padding) == null ? void 0 : X.left) === !1,
|
|
1144
1148
|
"b-data-grid-columns__column--padding-right-unset": ((ne = c == null ? void 0 : c.padding) == null ? void 0 : ne.right) === !1,
|
|
1145
1149
|
"b-data-grid-columns__column--numeric": c == null ? void 0 : c.numeric,
|
|
1146
1150
|
"b-data-grid-columns__column--frozen": c == null ? void 0 : c.frozen,
|
|
1147
|
-
"b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((
|
|
1148
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((H = (x = e.draggingColumns) == null ? void 0 : x.target) == null ? void 0 : H.field) && ((
|
|
1151
|
+
"b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((h = (he = e.draggingColumns) == null ? void 0 : he.dragging) == null ? void 0 : h.field),
|
|
1152
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((H = (x = e.draggingColumns) == null ? void 0 : x.target) == null ? void 0 : H.field) && ((te = e.draggingColumns) == null ? void 0 : te.dragToLeft),
|
|
1149
1153
|
"b-data-grid-columns__column--is-re-ordering-target-right": (c == null ? void 0 : c.field) === ((ue = (re = e.draggingColumns) == null ? void 0 : re.target) == null ? void 0 : ue.field) && !((Z = e.draggingColumns) != null && Z.dragToLeft),
|
|
1150
1154
|
"b-data-grid-columns__column--with-sorting-or-column-panel": c.sortable || c.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1151
1155
|
"b-data-grid-columns--small-container": q.value
|
|
1152
1156
|
};
|
|
1153
|
-
},
|
|
1157
|
+
}, W = (c) => ({
|
|
1154
1158
|
"b-data-grid-columns__column-header-and-actions--numeric": c == null ? void 0 : c.numeric
|
|
1155
1159
|
}), $ = (c) => ({
|
|
1156
1160
|
"b-data-grid-columns__column-actions--numeric": c == null ? void 0 : c.numeric
|
|
1157
|
-
}),
|
|
1161
|
+
}), me = (c) => ({
|
|
1158
1162
|
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1159
1163
|
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === c.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1160
1164
|
}), de = v(() => ({
|
|
1161
1165
|
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1162
1166
|
})), ie = (c) => ({
|
|
1163
|
-
"b-data-grid-columns__menu--hovered":
|
|
1167
|
+
"b-data-grid-columns__menu--hovered": m.value === c.field || ee.value
|
|
1164
1168
|
});
|
|
1165
1169
|
return t({
|
|
1166
1170
|
columnHeaderRefs: g
|
|
1167
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: i, allColumnsRef: _, columnHeaderRefs: g, contextMenuRef: w, hoveredColumnField:
|
|
1171
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: i, allColumnsRef: _, columnHeaderRefs: g, contextMenuRef: w, hoveredColumnField: m, closingTimeOutId: E, onAllRowSelect: S, isActionsColumn: u, isAllSelectionState: y, selectAllMenu: L, startResize: B, isResizing: b, columnHoverEventToEmitAfterResizing: d, isSorting: A, getSortingDirection: O, sortByColumnField: D, getSortingColumnDirection: r, draggingEventsForColumn: f, contextualMenuData: R, showContextualMenu: T, hideContextualMenu: F, dataGridColumnEvents: U, hasColumnActions: k, registerColumnsRefs: J, isSmallContainer: q, isTouchDevice: ee, conditionalColumnsClasses: G, conditionalSelectColumnClasses: P, computeMenuPosition: C, conditionalColumnClasses: z, conditionalColumnHeaderAndActionsClasses: W, conditionalColumnActionsClasses: $, conditionalColumnSeparatorClasses: me, conditionalColumnHeaderClasses: de, conditionalColumnMenuClasses: ie, BentoCheckbox: It, BentoDatagridSortDirection: Se, BentoTypography: ye, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: Le, BentoInfoIcon: as, DatagridColumnsEvent: j, BentoMenu: xt, BentoToggleButton: je, DecorativeCheckbox: is, ArrowUpAndDownSortIcon: ks, SortAscendingIcon: to, SortDescendingIcon: ao, TriangleDown: fo };
|
|
1168
1172
|
}
|
|
1169
1173
|
});
|
|
1170
1174
|
var Co = function() {
|
|
@@ -1188,26 +1192,26 @@ var Co = function() {
|
|
|
1188
1192
|
a.stopPropagation();
|
|
1189
1193
|
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1190
1194
|
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (o) => e.registerColumnsRefs(o, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: "0" } })] : t._e()], 2);
|
|
1191
|
-
},
|
|
1195
|
+
}, mo = [], ho = /* @__PURE__ */ Y(
|
|
1192
1196
|
vo,
|
|
1193
1197
|
Co,
|
|
1194
|
-
|
|
1198
|
+
mo,
|
|
1195
1199
|
!1,
|
|
1196
1200
|
null,
|
|
1197
|
-
"
|
|
1201
|
+
"047e7ae6"
|
|
1198
1202
|
);
|
|
1199
|
-
const po =
|
|
1200
|
-
var
|
|
1201
|
-
let
|
|
1203
|
+
const po = ho.exports;
|
|
1204
|
+
var ge = /* @__PURE__ */ ((s) => (s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s))(ge || {});
|
|
1205
|
+
let Rt = 0;
|
|
1202
1206
|
const wo = {
|
|
1203
1207
|
beforeCreate() {
|
|
1204
|
-
this.uuid =
|
|
1208
|
+
this.uuid = Rt.toString(), Rt += 1;
|
|
1205
1209
|
}
|
|
1206
1210
|
};
|
|
1207
1211
|
var So = function() {
|
|
1208
1212
|
var t = this, n = t._self._c;
|
|
1209
1213
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1210
|
-
}, bo = [],
|
|
1214
|
+
}, bo = [], Ro = /* @__PURE__ */ Y(
|
|
1211
1215
|
wo,
|
|
1212
1216
|
So,
|
|
1213
1217
|
bo,
|
|
@@ -1215,17 +1219,17 @@ var So = function() {
|
|
|
1215
1219
|
null,
|
|
1216
1220
|
null
|
|
1217
1221
|
);
|
|
1218
|
-
const
|
|
1222
|
+
const Eo = Ro.exports, Lo = {
|
|
1219
1223
|
"en-US": {
|
|
1220
1224
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1221
1225
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1222
1226
|
}
|
|
1223
|
-
}, yo =
|
|
1227
|
+
}, yo = Ce({
|
|
1224
1228
|
i18n: { messages: Lo },
|
|
1225
1229
|
name: "bento-data-grid",
|
|
1226
1230
|
components: {
|
|
1227
1231
|
BentoFreezeIcon: Pt,
|
|
1228
|
-
BentoToggle:
|
|
1232
|
+
BentoToggle: Ft
|
|
1229
1233
|
},
|
|
1230
1234
|
props: {
|
|
1231
1235
|
/**
|
|
@@ -1245,13 +1249,13 @@ const Ro = Eo.exports, Lo = {
|
|
|
1245
1249
|
},
|
|
1246
1250
|
emits: ["visible-column", "updated-column"],
|
|
1247
1251
|
setup(s, { emit: t }) {
|
|
1248
|
-
const { t: n } =
|
|
1249
|
-
var
|
|
1250
|
-
return (
|
|
1252
|
+
const { t: n } = pe(), e = p(!1), o = v(() => {
|
|
1253
|
+
var E;
|
|
1254
|
+
return (E = s.column) == null ? void 0 : E.frozen;
|
|
1251
1255
|
}), l = v(() => {
|
|
1252
|
-
var
|
|
1253
|
-
return ((
|
|
1254
|
-
}), a =
|
|
1256
|
+
var E;
|
|
1257
|
+
return ((E = s.column) == null ? void 0 : E.visible) !== !1;
|
|
1258
|
+
}), a = ve(
|
|
1255
1259
|
Ae,
|
|
1256
1260
|
v(() => !1)
|
|
1257
1261
|
), i = () => {
|
|
@@ -1262,14 +1266,14 @@ const Ro = Eo.exports, Lo = {
|
|
|
1262
1266
|
o.value || (e.value = !0);
|
|
1263
1267
|
}, w = () => {
|
|
1264
1268
|
o.value || (e.value = !1);
|
|
1265
|
-
},
|
|
1269
|
+
}, m = v(() => ({
|
|
1266
1270
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1267
1271
|
}));
|
|
1268
1272
|
return {
|
|
1269
1273
|
// Values
|
|
1270
1274
|
isFreezeIconOptionShown: e,
|
|
1271
1275
|
isColumnFrozen: o,
|
|
1272
|
-
freezeIconConditionalClasses:
|
|
1276
|
+
freezeIconConditionalClasses: m,
|
|
1273
1277
|
isColumnVisible: l,
|
|
1274
1278
|
isSmallContainer: a,
|
|
1275
1279
|
// Methods
|
|
@@ -1287,7 +1291,7 @@ var Ao = function() {
|
|
|
1287
1291
|
return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: (t.isColumnFrozen || t.isFreezeIconOptionShown) && !t.isSmallContainer, expression: "(isColumnFrozen || isFreezeIconOptionShown) && !isSmallContainer" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
|
|
1288
1292
|
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1289
1293
|
} } })], 1);
|
|
1290
|
-
}, To = [], Oo = /* @__PURE__ */
|
|
1294
|
+
}, To = [], Oo = /* @__PURE__ */ Y(
|
|
1291
1295
|
yo,
|
|
1292
1296
|
Ao,
|
|
1293
1297
|
To,
|
|
@@ -1323,19 +1327,19 @@ const No = Oo.exports, Io = {
|
|
|
1323
1327
|
condensed: "Condensado",
|
|
1324
1328
|
search: "Buscar"
|
|
1325
1329
|
}
|
|
1326
|
-
}, Do =
|
|
1330
|
+
}, Do = Ce({
|
|
1327
1331
|
i18n: { messages: Io },
|
|
1328
1332
|
name: "bento-data-grid",
|
|
1329
1333
|
components: {
|
|
1330
1334
|
BentoButton: Dt,
|
|
1331
1335
|
BentoCrossIcon: Ot,
|
|
1332
1336
|
BentoPopover: Qn,
|
|
1333
|
-
BentoSettingsIcon:
|
|
1337
|
+
BentoSettingsIcon: Eo,
|
|
1334
1338
|
BentoToggleButton: je,
|
|
1335
1339
|
BentoDataGridConfigSettingsConfigRow: No,
|
|
1336
1340
|
BentoSearchBar: us,
|
|
1337
1341
|
BentoSearchIcon: gs,
|
|
1338
|
-
BentoToggle:
|
|
1342
|
+
BentoToggle: Ft,
|
|
1339
1343
|
BentoTypography: ye
|
|
1340
1344
|
},
|
|
1341
1345
|
directives: { BentoClickOutsideDirective: _s },
|
|
@@ -1363,43 +1367,43 @@ const No = Oo.exports, Io = {
|
|
|
1363
1367
|
}
|
|
1364
1368
|
},
|
|
1365
1369
|
emits: [
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1370
|
+
ge.UPDATE_CONDENSED,
|
|
1371
|
+
ge.UPDATE_COLUMNS,
|
|
1372
|
+
ge.UPDATE_ZEBRA_ROWS
|
|
1369
1373
|
],
|
|
1370
1374
|
setup(s, { emit: t }) {
|
|
1371
|
-
const { t: n } =
|
|
1375
|
+
const { t: n } = pe(), e = p(null), o = Ie("data-grid-config-settings-popover"), l = p(null), a = p(!1), i = p(!0), _ = p(null), g = p(""), w = ze(s, "columns"), m = p(!1), E = fs(g, w), S = () => {
|
|
1372
1376
|
g.value = "";
|
|
1373
1377
|
}, u = v(
|
|
1374
1378
|
() => !s.columns.some((f) => f.visible === !1 && !f.mandatory)
|
|
1375
1379
|
), y = () => {
|
|
1376
|
-
S(),
|
|
1380
|
+
S(), m.value = !m.value, m.value ? le(() => {
|
|
1377
1381
|
var f;
|
|
1378
1382
|
return (f = l.value.$refs.bentoInputField) == null ? void 0 : f.focusInput();
|
|
1379
1383
|
}) : le(() => {
|
|
1380
|
-
var f,
|
|
1381
|
-
return (
|
|
1384
|
+
var f, R;
|
|
1385
|
+
return (R = (f = _ == null ? void 0 : _.value) == null ? void 0 : f.$el) == null ? void 0 : R.focus();
|
|
1382
1386
|
}), i.value = u.value;
|
|
1383
|
-
}, L = (f) => f.mandatory ?? !1,
|
|
1384
|
-
const
|
|
1387
|
+
}, L = (f) => f.mandatory ?? !1, B = (f) => {
|
|
1388
|
+
const R = s.columns.map((T) => ({
|
|
1385
1389
|
...T,
|
|
1386
1390
|
visible: f.field === T.field ? f.visible : T.visible
|
|
1387
1391
|
}));
|
|
1388
|
-
t(
|
|
1392
|
+
t(ge.UPDATE_COLUMNS, R);
|
|
1389
1393
|
}, b = (f) => {
|
|
1390
1394
|
f ? t(
|
|
1391
|
-
|
|
1392
|
-
s.columns.map((
|
|
1395
|
+
ge.UPDATE_COLUMNS,
|
|
1396
|
+
s.columns.map((R) => ({ ...R, visible: !0 }))
|
|
1393
1397
|
) : t(
|
|
1394
|
-
|
|
1395
|
-
s.columns.map((
|
|
1398
|
+
ge.UPDATE_COLUMNS,
|
|
1399
|
+
s.columns.map((R) => ({ ...R, visible: (R == null ? void 0 : R.mandatory) === !0 }))
|
|
1396
1400
|
);
|
|
1397
1401
|
}, d = (f) => {
|
|
1398
|
-
const
|
|
1402
|
+
const R = s.columns.map((T) => ({
|
|
1399
1403
|
...T,
|
|
1400
1404
|
frozen: f.field === T.field ? !!(f != null && f.frozen) : !!(T != null && T.frozen)
|
|
1401
1405
|
}));
|
|
1402
|
-
t(
|
|
1406
|
+
t(ge.UPDATE_COLUMNS, R);
|
|
1403
1407
|
}, A = (f) => {
|
|
1404
1408
|
a.value = f, i.value = u.value;
|
|
1405
1409
|
};
|
|
@@ -1409,23 +1413,23 @@ const No = Oo.exports, Io = {
|
|
|
1409
1413
|
popoverId: o,
|
|
1410
1414
|
isConfigSettingsPanelOpen: a,
|
|
1411
1415
|
allColumnsVisbilityToggleState: i,
|
|
1412
|
-
filteredColumnVisibilityColumns:
|
|
1416
|
+
filteredColumnVisibilityColumns: E,
|
|
1413
1417
|
searchTerm: g,
|
|
1414
|
-
isColumnVisibilityFilterShown:
|
|
1418
|
+
isColumnVisibilityFilterShown: m,
|
|
1415
1419
|
searchBarRef: l,
|
|
1416
1420
|
searchButtonRef: _,
|
|
1417
1421
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe,
|
|
1418
1422
|
// Methods
|
|
1419
1423
|
setConfigSettingsPanelVisibility: A,
|
|
1420
|
-
emitCondensedToggle: (f) => t(
|
|
1424
|
+
emitCondensedToggle: (f) => t(ge.UPDATE_CONDENSED, f),
|
|
1421
1425
|
toggleAllColumnVisibility: b,
|
|
1422
1426
|
clearAction: S,
|
|
1423
1427
|
toggleColumnFilter: y,
|
|
1424
|
-
emitVisibleColumns:
|
|
1428
|
+
emitVisibleColumns: B,
|
|
1425
1429
|
emitFrozenColumns: d,
|
|
1426
1430
|
onClickOutside: () => A(!1),
|
|
1427
1431
|
isColumnVisibilityToggleDisabled: L,
|
|
1428
|
-
emitZebraRowsToggle: (f) => t(
|
|
1432
|
+
emitZebraRowsToggle: (f) => t(ge.UPDATE_ZEBRA_ROWS, f),
|
|
1429
1433
|
// Translations
|
|
1430
1434
|
t: n
|
|
1431
1435
|
};
|
|
@@ -1450,15 +1454,15 @@ var xo = function() {
|
|
|
1450
1454
|
}, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
|
|
1451
1455
|
return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
|
|
1452
1456
|
}), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
|
|
1453
|
-
},
|
|
1457
|
+
}, Bo = [], Fo = /* @__PURE__ */ Y(
|
|
1454
1458
|
Do,
|
|
1455
1459
|
xo,
|
|
1456
|
-
|
|
1460
|
+
Bo,
|
|
1457
1461
|
!1,
|
|
1458
1462
|
null,
|
|
1459
1463
|
"0e477266"
|
|
1460
1464
|
);
|
|
1461
|
-
const Uo =
|
|
1465
|
+
const Uo = Fo.exports, $t = {
|
|
1462
1466
|
"en-US": {
|
|
1463
1467
|
filterBar: "Filters",
|
|
1464
1468
|
gettingYourData: "Getting your data",
|
|
@@ -1481,7 +1485,7 @@ const Uo = Bo.exports, $t = {
|
|
|
1481
1485
|
}
|
|
1482
1486
|
}, Mo = {
|
|
1483
1487
|
i18n: { messages: $t }
|
|
1484
|
-
}, Po = /* @__PURE__ */
|
|
1488
|
+
}, Po = /* @__PURE__ */ Ce({
|
|
1485
1489
|
...Mo,
|
|
1486
1490
|
__name: "data-grid-lazy-load",
|
|
1487
1491
|
props: {
|
|
@@ -1489,7 +1493,7 @@ const Uo = Bo.exports, $t = {
|
|
|
1489
1493
|
isInfiniteScroll: { type: Boolean }
|
|
1490
1494
|
},
|
|
1491
1495
|
setup(s) {
|
|
1492
|
-
const { t } =
|
|
1496
|
+
const { t } = pe();
|
|
1493
1497
|
return { __sfc: !0, t, BentoLoadingButton: ts, BentoLoadingButtonState: es, BentoLoadingIndicator: He, BentoDatagridEvent: N };
|
|
1494
1498
|
}
|
|
1495
1499
|
});
|
|
@@ -1498,7 +1502,7 @@ var zo = function() {
|
|
|
1498
1502
|
return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
|
|
1499
1503
|
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1500
1504
|
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1501
|
-
}, $o = [], ko = /* @__PURE__ */
|
|
1505
|
+
}, $o = [], ko = /* @__PURE__ */ Y(
|
|
1502
1506
|
Po,
|
|
1503
1507
|
zo,
|
|
1504
1508
|
$o,
|
|
@@ -1507,16 +1511,16 @@ var zo = function() {
|
|
|
1507
1511
|
"fd9b8204"
|
|
1508
1512
|
);
|
|
1509
1513
|
const Wo = ko.exports;
|
|
1510
|
-
let
|
|
1514
|
+
let Et = 0;
|
|
1511
1515
|
const Go = {
|
|
1512
1516
|
beforeCreate() {
|
|
1513
|
-
this.uuid =
|
|
1517
|
+
this.uuid = Et.toString(), Et += 1;
|
|
1514
1518
|
}
|
|
1515
1519
|
};
|
|
1516
1520
|
var Ho = function() {
|
|
1517
1521
|
var t = this, n = t._self._c;
|
|
1518
1522
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M9.38867 2.21717C10.4626 1.14323 12.2044 1.14323 13.2783 2.21717L13.7832 2.72205C14.857 3.79601 14.8571 5.53782 13.7832 6.6117L5.64355 14.7504H1.25V10.3558L9.38867 2.21717ZM2.75 10.9769V13.2504H5.02246L11.2715 6.9994L8.99902 4.72693L2.75 10.9769ZM12.2168 3.27772C11.7286 2.78987 10.9373 2.78967 10.4492 3.27772L10.0596 3.66639L12.332 5.93885L12.7217 5.55018C13.2098 5.06203 13.2098 4.27076 12.7217 3.7826L12.2168 3.27772Z" } })]);
|
|
1519
|
-
}, Vo = [], Zo = /* @__PURE__ */
|
|
1523
|
+
}, Vo = [], Zo = /* @__PURE__ */ Y(
|
|
1520
1524
|
Go,
|
|
1521
1525
|
Ho,
|
|
1522
1526
|
Vo,
|
|
@@ -1546,7 +1550,7 @@ const Lt = Zo.exports, jo = {
|
|
|
1546
1550
|
}, qo = {
|
|
1547
1551
|
i18n: { messages: jo },
|
|
1548
1552
|
name: "data-grid-cell-actions"
|
|
1549
|
-
}, Ko = /* @__PURE__ */
|
|
1553
|
+
}, Ko = /* @__PURE__ */ Ce({
|
|
1550
1554
|
...qo,
|
|
1551
1555
|
props: {
|
|
1552
1556
|
/**
|
|
@@ -1616,7 +1620,7 @@ const Lt = Zo.exports, jo = {
|
|
|
1616
1620
|
},
|
|
1617
1621
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1618
1622
|
setup(s, { emit: t }) {
|
|
1619
|
-
const n = s, { t: e } =
|
|
1623
|
+
const n = s, { t: e } = pe(), o = ve(De, p(!1)), l = (d) => {
|
|
1620
1624
|
if ("text" in d && d.text !== void 0)
|
|
1621
1625
|
return d.text;
|
|
1622
1626
|
switch (d.variant) {
|
|
@@ -1653,12 +1657,12 @@ const Lt = Zo.exports, jo = {
|
|
|
1653
1657
|
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
1654
1658
|
"b-data-grid-cell-actions__actions--selected": n.isSelected
|
|
1655
1659
|
})), w = v(() => !i.value || i.value && n.hasRightOverflow);
|
|
1656
|
-
function
|
|
1660
|
+
function m(d) {
|
|
1657
1661
|
return typeof d == "function";
|
|
1658
1662
|
}
|
|
1659
|
-
const
|
|
1663
|
+
const E = v(() => {
|
|
1660
1664
|
var A;
|
|
1661
|
-
const d =
|
|
1665
|
+
const d = m(n.cellActions) ? (A = n.cellActions) == null ? void 0 : A.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1662
1666
|
if (o.value && !i.value && d) {
|
|
1663
1667
|
const O = [];
|
|
1664
1668
|
return d.forEach((D) => {
|
|
@@ -1710,7 +1714,7 @@ const Lt = Zo.exports, jo = {
|
|
|
1710
1714
|
const O = A;
|
|
1711
1715
|
return O != null && O.items && (O.items = L(O.items)), { ...y(O) };
|
|
1712
1716
|
});
|
|
1713
|
-
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: i, conditionalCellActionsBackgroundGradientClasses: _, conditionalCellActionsClasses: g, showGradientElement: w, isBentoColumnCellActionsByCellValueDataFn:
|
|
1717
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: i, conditionalCellActionsBackgroundGradientClasses: _, conditionalCellActionsClasses: g, showGradientElement: w, isBentoColumnCellActionsByCellValueDataFn: m, computedCellActions: E, getButtonTitle: S, generateButtonEvents: u, generateMenuEvents: y, transformMenuEvents: L, getCopyText: (d) => {
|
|
1714
1718
|
var A, O;
|
|
1715
1719
|
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (O = (A = n.rowDataItem) == null ? void 0 : A[n.columnKey]) == null ? void 0 : O.toString() : "";
|
|
1716
1720
|
}, shouldShowMenuIconLeft: (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more", BentoButton: Dt, BentoMenu: xt, Copy: dt, Edit1Icon: Lt, ExternalLinkIcon: ct, OptionsVerticalIcon: rt };
|
|
@@ -1744,7 +1748,7 @@ var Yo = function() {
|
|
|
1744
1748
|
return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1745
1749
|
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1746
1750
|
}), 0)])]);
|
|
1747
|
-
}, Jo = [], Xo = /* @__PURE__ */
|
|
1751
|
+
}, Jo = [], Xo = /* @__PURE__ */ Y(
|
|
1748
1752
|
Ko,
|
|
1749
1753
|
Yo,
|
|
1750
1754
|
Jo,
|
|
@@ -1753,7 +1757,7 @@ var Yo = function() {
|
|
|
1753
1757
|
"b4facd10"
|
|
1754
1758
|
);
|
|
1755
1759
|
const kt = Xo.exports;
|
|
1756
|
-
var
|
|
1760
|
+
var Q = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(Q || {});
|
|
1757
1761
|
const yt = () => {
|
|
1758
1762
|
const s = document.activeElement;
|
|
1759
1763
|
return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
|
|
@@ -1766,7 +1770,7 @@ const yt = () => {
|
|
|
1766
1770
|
}, el = {
|
|
1767
1771
|
i18n: { messages: Qo },
|
|
1768
1772
|
name: "data-grid-cell"
|
|
1769
|
-
}, tl = /* @__PURE__ */
|
|
1773
|
+
}, tl = /* @__PURE__ */ Ce({
|
|
1770
1774
|
...el,
|
|
1771
1775
|
props: {
|
|
1772
1776
|
draggingEventsForRowCell: {
|
|
@@ -1910,7 +1914,7 @@ const yt = () => {
|
|
|
1910
1914
|
},
|
|
1911
1915
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1912
1916
|
setup(s, { expose: t, emit: n }) {
|
|
1913
|
-
const e = s, o = Ge(), l = Ve(o), { t: a } =
|
|
1917
|
+
const e = s, o = Ge(), l = Ve(o), { t: a } = pe(), i = p(null), _ = p(null), g = p(!1), w = p([]), m = p(!1), E = p(), S = p(!1), u = v(() => {
|
|
1914
1918
|
var C;
|
|
1915
1919
|
return !!((C = e.rowData) != null && C[e.column.field]);
|
|
1916
1920
|
}), y = v(
|
|
@@ -1920,43 +1924,43 @@ const yt = () => {
|
|
|
1920
1924
|
}
|
|
1921
1925
|
), L = v(
|
|
1922
1926
|
() => e.column.field === oe && !e.selectable && !e.nestedContent
|
|
1923
|
-
),
|
|
1927
|
+
), B = v(() => !L.value && (D(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !S.value || m.value) ? "0" : (e.column.field === oe, "-1")), b = (C, z) => (C == null ? void 0 : C.overflow) === $e.ELLIPSIS ? `${z}` : void 0, d = (C) => C ?? "-", A = (C) => e.columnSets.slice(0, C).reduce((z, { columnSet: W }) => z + W.length, 0), O = (C, z) => C + A(z), D = (C, z, W) => A() * C + O(z, W), r = (C) => {
|
|
1924
1928
|
var z;
|
|
1925
|
-
(C === null || !i.value.contains(C) && !((z = w.value) != null && z.map((
|
|
1929
|
+
(C === null || !i.value.contains(C) && !((z = w.value) != null && z.map((W) => W.value).some((W) => W === C || (W == null ? void 0 : W.contains(C))))) && (g.value = !1);
|
|
1926
1930
|
}, f = () => {
|
|
1927
1931
|
g.value = !1;
|
|
1928
|
-
},
|
|
1932
|
+
}, R = p(!1), T = (C) => {
|
|
1929
1933
|
const z = {
|
|
1930
1934
|
...e.draggingEventsForRowCell(C),
|
|
1931
1935
|
// Focus on the first interactive child in the grid cell if one exists
|
|
1932
1936
|
focus: async () => {
|
|
1933
1937
|
if (!yt())
|
|
1934
1938
|
return;
|
|
1935
|
-
|
|
1939
|
+
m.value = !0, S.value = !0, Mt(E.value), await le(), qe(i.value) && (R.value = !0);
|
|
1936
1940
|
},
|
|
1937
1941
|
focusout: () => {
|
|
1938
|
-
yt() && (
|
|
1942
|
+
yt() && (R.value = !1);
|
|
1939
1943
|
},
|
|
1940
1944
|
keydown: ($) => {
|
|
1941
|
-
$.key !== ce.TAB && (
|
|
1945
|
+
$.key !== ce.TAB && (R.value = !1, m.value = !1, we(i.value));
|
|
1942
1946
|
}
|
|
1943
|
-
},
|
|
1944
|
-
return C.frozen && (
|
|
1947
|
+
}, W = { ...z };
|
|
1948
|
+
return C.frozen && (W.keyup = ($) => n("on-frozen-columns-key-press", $), W.keydown = ($) => {
|
|
1945
1949
|
z.keydown($), n("on-frozen-columns-key-press", $);
|
|
1946
|
-
}), C.cellActions && (
|
|
1950
|
+
}), C.cellActions && (W.mouseenter = () => {
|
|
1947
1951
|
g.value = !0;
|
|
1948
|
-
},
|
|
1952
|
+
}, W.mouseleave = ($) => {
|
|
1949
1953
|
r($ == null ? void 0 : $.relatedTarget);
|
|
1950
|
-
},
|
|
1954
|
+
}, W.focus = async ($) => {
|
|
1951
1955
|
z.focus($), await le(), g.value = !0;
|
|
1952
|
-
},
|
|
1956
|
+
}, W.focusout = ($) => {
|
|
1953
1957
|
z.focusout($), r($ == null ? void 0 : $.relatedTarget);
|
|
1954
|
-
}),
|
|
1958
|
+
}), W;
|
|
1955
1959
|
};
|
|
1956
1960
|
be(() => {
|
|
1957
|
-
|
|
1961
|
+
E.value = we(i.value);
|
|
1958
1962
|
});
|
|
1959
|
-
const
|
|
1963
|
+
const F = () => {
|
|
1960
1964
|
n("nested-content-toggled");
|
|
1961
1965
|
};
|
|
1962
1966
|
ae(
|
|
@@ -1967,44 +1971,44 @@ const yt = () => {
|
|
|
1967
1971
|
);
|
|
1968
1972
|
const U = (C) => {
|
|
1969
1973
|
w.value.push(C);
|
|
1970
|
-
},
|
|
1974
|
+
}, k = (C) => {
|
|
1971
1975
|
i.value.contains(C == null ? void 0 : C.relatedTarget) || (g.value = !1);
|
|
1972
1976
|
};
|
|
1973
1977
|
Oe(ns, {
|
|
1974
1978
|
registerMenuContainerElement: U,
|
|
1975
|
-
menuMouseLeave:
|
|
1979
|
+
menuMouseLeave: k
|
|
1976
1980
|
});
|
|
1977
|
-
const
|
|
1981
|
+
const J = ve(zt, p(!1)), q = ve(
|
|
1978
1982
|
Ae,
|
|
1979
1983
|
v(() => !1)
|
|
1980
|
-
),
|
|
1981
|
-
var z,
|
|
1984
|
+
), ee = ve(De, p(!1)), G = (C) => {
|
|
1985
|
+
var z, W, $, me, de, ie, c;
|
|
1982
1986
|
return {
|
|
1983
|
-
[`b-data-grid-cell--${
|
|
1984
|
-
[`b-data-grid-cell--${
|
|
1985
|
-
[`b-data-grid-cell--${
|
|
1986
|
-
[`b-data-grid-cell--${
|
|
1987
|
-
[`b-data-grid-cell--${
|
|
1988
|
-
[`b-data-grid-cell--${
|
|
1989
|
-
[`b-data-grid-cell--${
|
|
1990
|
-
[`b-data-grid-cell--${
|
|
1991
|
-
[`b-data-grid-cell--${
|
|
1992
|
-
[`b-data-grid-cell--${
|
|
1993
|
-
[`b-data-grid-cell--${
|
|
1994
|
-
[`b-data-grid-cell--${
|
|
1995
|
-
[`b-data-grid-cell--${
|
|
1996
|
-
[`b-data-grid-cell--${
|
|
1997
|
-
[`b-data-grid-cell--${
|
|
1998
|
-
[`b-data-grid-cell--${
|
|
1999
|
-
[`b-data-grid-cell--${
|
|
1987
|
+
[`b-data-grid-cell--${Q.COLUMN_HOVERED}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1988
|
+
[`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1989
|
+
[`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1990
|
+
[`b-data-grid-cell--${Q.PADDING_LEFT_UNSET}`]: ((z = C == null ? void 0 : C.padding) == null ? void 0 : z.left) === !1,
|
|
1991
|
+
[`b-data-grid-cell--${Q.PADDING_RIGHT_UNSET}`]: ((W = C == null ? void 0 : C.padding) == null ? void 0 : W.right) === !1,
|
|
1992
|
+
[`b-data-grid-cell--${Q.NUMERIC}`]: C == null ? void 0 : C.numeric,
|
|
1993
|
+
[`b-data-grid-cell--${Q.CONDENSED}`]: e.condensed,
|
|
1994
|
+
[`b-data-grid-cell--${Q.OVERFLOW_ELLIPSIS}`]: (C == null ? void 0 : C.overflow) === $e.ELLIPSIS,
|
|
1995
|
+
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING}`]: (($ = e.draggingColumns.dragging) == null ? void 0 : $.field) === C.field,
|
|
1996
|
+
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((me = e.draggingColumns.target) == null ? void 0 : me.field) === C.field && ((de = e.draggingColumns) == null ? void 0 : de.dragToLeft),
|
|
1997
|
+
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((ie = e.draggingColumns.target) == null ? void 0 : ie.field) === C.field && !((c = e.draggingColumns) != null && c.dragToLeft),
|
|
1998
|
+
[`b-data-grid-cell--${Q.FROZEN}`]: C == null ? void 0 : C.frozen,
|
|
1999
|
+
[`b-data-grid-cell--${Q.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
2000
|
+
[`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && C.field === oe,
|
|
2001
|
+
[`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && C.field === oe,
|
|
2002
|
+
[`b-data-grid-cell--${Q.ACTION_COL_SELECTION_ENABLED}`]: C.field === oe && e.selectable,
|
|
2003
|
+
[`b-data-grid-cell--${Q.SLASHED_ZERO}`]: J.value,
|
|
2000
2004
|
"b-data-grid-cell--small-container": q.value
|
|
2001
2005
|
};
|
|
2002
|
-
},
|
|
2003
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element":
|
|
2006
|
+
}, P = v(() => ({
|
|
2007
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": R.value
|
|
2004
2008
|
}));
|
|
2005
2009
|
return t({
|
|
2006
2010
|
gridcellRef: i
|
|
2007
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: i, cellActionsRef: _, shouldShowCellActions: g, childrenMenuContainerElements: w, isFocused:
|
|
2011
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: i, cellActionsRef: _, shouldShowCellActions: g, childrenMenuContainerElements: w, isFocused: m, focusableItems: E, hasEverBeenFocused: S, hasRowData: u, controlledNestedRowElementIds: y, ariaHidden: L, tabIndex: B, conditionalTitleAttribute: b, getRowData: d, sumColumnAmountsInColumnSets: A, getColIndex: O, getCellIndex: D, isLeavingCellFocus: r, onMenuClose: f, hasInteractiveElFocusedInside: R, getGridcellEvents: T, toggleNestedContent: F, registerMenuContainerElement: U, menuMouseLeave: k, hasSlashedZero: J, isSmallContainer: q, isTouchDevice: ee, conditionalRowCellClasses: G, computedCellContentClasses: P, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe, BentoCheckbox: It, BentoTypography: ye, BentoToggleButton: je, DataGridCellActions: kt, ChevronDownIcon: ss, ChevronUpIcon: os };
|
|
2008
2012
|
}
|
|
2009
2013
|
});
|
|
2010
2014
|
var nl = function() {
|
|
@@ -2019,7 +2023,7 @@ var nl = function() {
|
|
|
2019
2023
|
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
|
|
2020
2024
|
return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
|
|
2021
2025
|
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [(e.shouldShowCellActions || e.isTouchDevice) && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData, "has-zebra-background": t.hasZebraBackground, "is-highlighted": t.isHighlighted, "is-selected": t.isSelected, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
2022
|
-
}, sl = [], ol = /* @__PURE__ */
|
|
2026
|
+
}, sl = [], ol = /* @__PURE__ */ Y(
|
|
2023
2027
|
tl,
|
|
2024
2028
|
nl,
|
|
2025
2029
|
sl,
|
|
@@ -2029,7 +2033,7 @@ var nl = function() {
|
|
|
2029
2033
|
);
|
|
2030
2034
|
const ll = ol.exports, al = {
|
|
2031
2035
|
name: "data-grid-row"
|
|
2032
|
-
}, il = /* @__PURE__ */
|
|
2036
|
+
}, il = /* @__PURE__ */ Ce({
|
|
2033
2037
|
...al,
|
|
2034
2038
|
props: {
|
|
2035
2039
|
/**
|
|
@@ -2238,27 +2242,27 @@ const ll = ol.exports, al = {
|
|
|
2238
2242
|
},
|
|
2239
2243
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2240
2244
|
setup(s, { expose: t, emit: n }) {
|
|
2241
|
-
const e = s, o = Ge(), l = Ve(o), a = p({}), i = p(!1), _ = p(), g = p(), w = Ie("nested-content-slot"),
|
|
2245
|
+
const e = s, o = Ge(), l = Ve(o), a = p({}), i = p(!1), _ = p(), g = p(), w = Ie("nested-content-slot"), m = p(!1), E = p();
|
|
2242
2246
|
be(() => {
|
|
2243
|
-
g.value && (
|
|
2247
|
+
g.value && (E.value = we(g.value));
|
|
2244
2248
|
});
|
|
2245
2249
|
const S = v(() => e.shouldShowNestedRows(e.rowData)), u = v(
|
|
2246
2250
|
() => {
|
|
2247
|
-
var
|
|
2248
|
-
return !e.isNestedRow && e.hasNestedRows && S.value && ((x = (
|
|
2251
|
+
var h, x;
|
|
2252
|
+
return !e.isNestedRow && e.hasNestedRows && S.value && ((x = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : x.length) > 0;
|
|
2249
2253
|
}
|
|
2250
2254
|
), y = v(
|
|
2251
2255
|
() => {
|
|
2252
|
-
var
|
|
2253
|
-
return !e.isNestedRow && e.hasNestedRows && S.value && (((
|
|
2256
|
+
var h, x;
|
|
2257
|
+
return !e.isNestedRow && e.hasNestedRows && S.value && (((h = e.rowData) == null ? void 0 : h.children) === void 0 || ((x = e == null ? void 0 : e.rowData) == null ? void 0 : x.children.length) === 0);
|
|
2254
2258
|
}
|
|
2255
2259
|
), L = v(
|
|
2256
2260
|
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && S.value && !e.isNestedRow
|
|
2257
|
-
),
|
|
2261
|
+
), B = v(() => {
|
|
2258
2262
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2259
|
-
const
|
|
2263
|
+
const h = i.value.toString();
|
|
2260
2264
|
return {
|
|
2261
|
-
"aria-expanded": L.value ?
|
|
2265
|
+
"aria-expanded": L.value ? h : void 0,
|
|
2262
2266
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2263
2267
|
"aria-posinset": e.rowIndex + 1,
|
|
2264
2268
|
"aria-setsize": e.rowSetSize
|
|
@@ -2281,14 +2285,14 @@ const ll = ol.exports, al = {
|
|
|
2281
2285
|
tabindex: "-1"
|
|
2282
2286
|
};
|
|
2283
2287
|
}), d = v(() => {
|
|
2284
|
-
var
|
|
2285
|
-
return u.value ? (x = (
|
|
2288
|
+
var h, x;
|
|
2289
|
+
return u.value ? (x = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : x.reduce((H, te, re) => (H[re] = Ie("nested-row"), H), {}) : [];
|
|
2286
2290
|
}), A = v(() => {
|
|
2287
|
-
var
|
|
2291
|
+
var h;
|
|
2288
2292
|
if (i.value) {
|
|
2289
2293
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2290
2294
|
return [w];
|
|
2291
|
-
if (u.value && ((
|
|
2295
|
+
if (u.value && ((h = Object.keys(d.value)) == null ? void 0 : h.length) > 0) {
|
|
2292
2296
|
const x = Object.values(d.value);
|
|
2293
2297
|
if ((x == null ? void 0 : x.length) > 0)
|
|
2294
2298
|
return x;
|
|
@@ -2297,67 +2301,67 @@ const ll = ol.exports, al = {
|
|
|
2297
2301
|
}
|
|
2298
2302
|
}), O = v(() => {
|
|
2299
2303
|
var x, H;
|
|
2300
|
-
const
|
|
2301
|
-
if ((
|
|
2302
|
-
const
|
|
2304
|
+
const h = (H = (x = e.rowData) == null ? void 0 : x.children) == null ? void 0 : H.map((te) => e.getDataItemId(te));
|
|
2305
|
+
if ((h == null ? void 0 : h.length) > 0) {
|
|
2306
|
+
const te = h.every((ue) => {
|
|
2303
2307
|
var Z;
|
|
2304
2308
|
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(ue);
|
|
2305
|
-
}), re =
|
|
2309
|
+
}), re = h.some((ue) => {
|
|
2306
2310
|
var Z;
|
|
2307
2311
|
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(ue);
|
|
2308
2312
|
});
|
|
2309
|
-
return !
|
|
2313
|
+
return !te && re;
|
|
2310
2314
|
}
|
|
2311
2315
|
return !1;
|
|
2312
|
-
}), D = (
|
|
2313
|
-
const H =
|
|
2314
|
-
|
|
2315
|
-
}, r = (
|
|
2316
|
+
}), D = (h, x) => {
|
|
2317
|
+
const H = h;
|
|
2318
|
+
h !== null && (H != null && H.gridcellRef) && (a.value[x] = H.gridcellRef);
|
|
2319
|
+
}, r = (h) => d.value[h], f = (h) => {
|
|
2316
2320
|
if (!e.selectable)
|
|
2317
2321
|
return null;
|
|
2318
|
-
const x = e.getDataItemId(
|
|
2322
|
+
const x = e.getDataItemId(h);
|
|
2319
2323
|
return e.selectedItems.includes(x).toString();
|
|
2320
|
-
},
|
|
2321
|
-
var
|
|
2324
|
+
}, R = (h) => {
|
|
2325
|
+
var te;
|
|
2322
2326
|
if (!e.allowRowClicks)
|
|
2323
2327
|
return;
|
|
2324
2328
|
let x = !1;
|
|
2325
2329
|
const H = ["button", "input", "a"];
|
|
2326
2330
|
for (let re = 0; re < H.length; re++)
|
|
2327
|
-
if ((
|
|
2331
|
+
if ((te = h == null ? void 0 : h.target) != null && te.closest(H[re])) {
|
|
2328
2332
|
x = !0;
|
|
2329
2333
|
break;
|
|
2330
2334
|
}
|
|
2331
|
-
x || n("row-click", e.rowData,
|
|
2332
|
-
}, T = (
|
|
2333
|
-
n("select-row",
|
|
2334
|
-
},
|
|
2335
|
-
n("select-nested-row", x, e.rowData,
|
|
2335
|
+
x || n("row-click", e.rowData, h);
|
|
2336
|
+
}, T = (h) => {
|
|
2337
|
+
n("select-row", h, e.rowData);
|
|
2338
|
+
}, F = (h, x) => {
|
|
2339
|
+
n("select-nested-row", x, e.rowData, h);
|
|
2336
2340
|
}, U = () => {
|
|
2337
|
-
|
|
2338
|
-
},
|
|
2339
|
-
|
|
2340
|
-
},
|
|
2341
|
-
var
|
|
2342
|
-
Mt([(
|
|
2341
|
+
m.value = !0;
|
|
2342
|
+
}, k = () => {
|
|
2343
|
+
m.value = !1;
|
|
2344
|
+
}, J = () => {
|
|
2345
|
+
var h;
|
|
2346
|
+
Mt([(h = E.value) == null ? void 0 : h[0]]), qe(g.value);
|
|
2343
2347
|
}, q = () => {
|
|
2344
2348
|
we(g.value);
|
|
2345
|
-
},
|
|
2349
|
+
}, ee = (h) => {
|
|
2346
2350
|
var x, H;
|
|
2347
|
-
|
|
2348
|
-
},
|
|
2349
|
-
var
|
|
2351
|
+
h.key !== ce.TAB && we(g.value), h.key === ce.ARROW_RIGHT && ((x = E.value) == null ? void 0 : x.length) > 1 && E.value[0].node === document.activeElement ? (we(g.value), E.value[1].node.setAttribute("tabindex", "0"), E.value[1].node.focus(), h.stopPropagation(), h.preventDefault()) : h.key === ce.ARROW_LEFT && ((H = E.value) == null ? void 0 : H.length) > 1 && E.value[1].node === document.activeElement && (we(g.value), E.value[0].node.setAttribute("tabindex", "0"), E.value[0].node.focus(), h.stopPropagation(), h.preventDefault());
|
|
2352
|
+
}, G = () => e.columnSets.reduce((h, { columnSet: x }) => h + x.length, 0), P = () => G() * e.rowIndex + G(), { updateContentHeight: C, contentHeight: z } = ls(_, i), W = v(() => {
|
|
2353
|
+
var h;
|
|
2350
2354
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
2351
2355
|
return {
|
|
2352
2356
|
paddingLeft: `${u.value || y.value ? 0 : a.value[oe].offsetWidth + Ut}px`,
|
|
2353
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) && z.value && !((
|
|
2357
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && z.value && !((h = z == null ? void 0 : z.value) != null && h.includes("null")) ? z.value : 0
|
|
2354
2358
|
};
|
|
2355
2359
|
});
|
|
2356
2360
|
ae(
|
|
2357
2361
|
() => _.value,
|
|
2358
2362
|
() => {
|
|
2359
|
-
let
|
|
2360
|
-
!
|
|
2363
|
+
let h = null;
|
|
2364
|
+
!h && _.value && (h = Ze(_.value, () => {
|
|
2361
2365
|
_.value && C();
|
|
2362
2366
|
}));
|
|
2363
2367
|
}
|
|
@@ -2367,44 +2371,44 @@ const ll = ol.exports, al = {
|
|
|
2367
2371
|
};
|
|
2368
2372
|
ae(
|
|
2369
2373
|
() => {
|
|
2370
|
-
var
|
|
2371
|
-
return (
|
|
2374
|
+
var h;
|
|
2375
|
+
return (h = e.rowData) == null ? void 0 : h.children;
|
|
2372
2376
|
},
|
|
2373
|
-
(
|
|
2374
|
-
var H,
|
|
2375
|
-
((
|
|
2377
|
+
(h, x) => {
|
|
2378
|
+
var H, te;
|
|
2379
|
+
((te = (H = e == null ? void 0 : e.rowData) == null ? void 0 : H.children) == null ? void 0 : te.length) > 0 && x === void 0 && !i.value && C();
|
|
2376
2380
|
}
|
|
2377
2381
|
);
|
|
2378
|
-
const
|
|
2382
|
+
const me = ve(
|
|
2379
2383
|
Ae,
|
|
2380
2384
|
v(() => !1)
|
|
2381
|
-
), de = (
|
|
2382
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(
|
|
2385
|
+
), de = (h) => e.highlightedRows.includes(e.getDataItemId(h)), ie = (h) => e.selectedItems.includes(e.getDataItemId(h)), c = (h, x) => ({
|
|
2386
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(h),
|
|
2383
2387
|
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2384
|
-
"b-data-grid-row-container__row--highlighted": de(
|
|
2385
|
-
"b-data-grid-row-container__row--selected": ie(
|
|
2388
|
+
"b-data-grid-row-container__row--highlighted": de(h),
|
|
2389
|
+
"b-data-grid-row-container__row--selected": ie(h),
|
|
2386
2390
|
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === x,
|
|
2387
2391
|
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !i.value,
|
|
2388
2392
|
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
2389
2393
|
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
2390
|
-
}),
|
|
2391
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
2392
|
-
[`b-data-grid-row-container__row-cell-set--${
|
|
2393
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !x &&
|
|
2394
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
2394
|
+
}), M = (h, x) => ({
|
|
2395
|
+
"b-data-grid-row-container__row-cell-set--frozen": h && !x,
|
|
2396
|
+
[`b-data-grid-row-container__row-cell-set--${_e.OVERFLOW_SHADOW_LEFT}`]: !x && h && e.hasLeftOverflow,
|
|
2397
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !x && h && e.showFrozenColumnsSeparator,
|
|
2398
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !h || x,
|
|
2395
2399
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2396
|
-
}),
|
|
2400
|
+
}), X = v(() => ({
|
|
2397
2401
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2398
2402
|
"b-data-grid-row-container__row-nested-slot": !u.value && e.shouldShowNestedContent(e.rowData)
|
|
2399
2403
|
})), ne = v(() => ({
|
|
2400
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open":
|
|
2404
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": m.value
|
|
2401
2405
|
})), he = v(() => ({
|
|
2402
2406
|
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
2403
2407
|
}));
|
|
2404
2408
|
return t({
|
|
2405
2409
|
gridcellRefs: a,
|
|
2406
2410
|
rowActionsRef: g
|
|
2407
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: i, nestedContentRef: _, rowActionsRef: g, nestedContentSlotId: w, isRowActionMenuOpen:
|
|
2411
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: i, nestedContentRef: _, rowActionsRef: g, nestedContentSlotId: w, isRowActionMenuOpen: m, focusableItems: E, shouldShowNestedRowsBooleanResult: S, shouldShowRenderNestedRows: u, isLoadingNestedRows: y, shouldShowNestedContentToggle: L, ariaRowAttributes: B, nestedContentContainerDivAriaAttributes: b, nestedRowIds: d, allNestedRowIds: A, hasUnSelectedNestedRows: O, registerRowCellRef: D, getRowId: r, getRowAriaSelectedValue: f, onRowClick: R, onRowSelect: T, onNestedRowSelect: F, onRowActionMenuOpen: U, onRowActionMenuClose: k, onRowActionsCellFocus: J, onRowActionsCellFocusOut: q, onRowActionsCellOnKeyDown: ee, sumColumnAmountsInColumnSets: G, getRowActionsCellIndex: P, updateContentHeight: C, contentHeight: z, nestedContentStyles: W, nestedContentToggled: $, isSmallContainer: me, isHighlightedRow: de, isSelectedRow: ie, conditionalRowClasses: c, conditionalRowSetClasses: M, conditionalNestedRowClasses: X, conditionalRowActionsContainerClasses: ne, computedRowActionsStyles: he, BentoLoadingIndicator: He, DataGridRow: Wt, DataGridCell: ll, DataGridCellActions: kt };
|
|
2408
2412
|
}
|
|
2409
2413
|
});
|
|
2410
2414
|
var rl = function() {
|
|
@@ -2416,13 +2420,13 @@ var rl = function() {
|
|
|
2416
2420
|
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
2417
2421
|
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
2418
2422
|
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(g, w) {
|
|
2419
|
-
return n(e.DataGridCell, { key: `cell-${g.field}`, ref: (
|
|
2420
|
-
return e.emit("cell-hovered",
|
|
2421
|
-
}, "on-frozen-columns-key-press": function(
|
|
2422
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2423
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2424
|
-
return { key:
|
|
2425
|
-
return [t._t(
|
|
2423
|
+
return n(e.DataGridCell, { key: `cell-${g.field}`, ref: (m) => e.registerRowCellRef(m, g.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: g, "column-set-index": _, "col-index": w, "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) {
|
|
2424
|
+
return e.emit("cell-hovered", m);
|
|
2425
|
+
}, "on-frozen-columns-key-press": function(m) {
|
|
2426
|
+
return e.emit("on-frozen-columns-key-press", m);
|
|
2427
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m, E) {
|
|
2428
|
+
return { key: E, fn: function(S) {
|
|
2429
|
+
return [t._t(E, null, null, S)];
|
|
2426
2430
|
} };
|
|
2427
2431
|
})], null, !0) });
|
|
2428
2432
|
}), 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()];
|
|
@@ -2441,7 +2445,7 @@ var rl = function() {
|
|
|
2441
2445
|
} };
|
|
2442
2446
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2443
2447
|
})], 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);
|
|
2444
|
-
}, cl = [], dl = /* @__PURE__ */
|
|
2448
|
+
}, cl = [], dl = /* @__PURE__ */ Y(
|
|
2445
2449
|
il,
|
|
2446
2450
|
rl,
|
|
2447
2451
|
cl,
|
|
@@ -2459,7 +2463,7 @@ const ul = {
|
|
|
2459
2463
|
var fl = function() {
|
|
2460
2464
|
var t = this, n = t._self._c;
|
|
2461
2465
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2462
|
-
}, gl = [], _l = /* @__PURE__ */
|
|
2466
|
+
}, gl = [], _l = /* @__PURE__ */ Y(
|
|
2463
2467
|
ul,
|
|
2464
2468
|
fl,
|
|
2465
2469
|
gl,
|
|
@@ -2467,7 +2471,7 @@ var fl = function() {
|
|
|
2467
2471
|
null,
|
|
2468
2472
|
null
|
|
2469
2473
|
);
|
|
2470
|
-
const vl = _l.exports, Cl = {},
|
|
2474
|
+
const vl = _l.exports, Cl = {}, ml = /* @__PURE__ */ Ce({
|
|
2471
2475
|
...Cl,
|
|
2472
2476
|
__name: "data-grid-static-icon",
|
|
2473
2477
|
props: {
|
|
@@ -2497,12 +2501,12 @@ const vl = _l.exports, Cl = {}, hl = /* @__PURE__ */ ve({
|
|
|
2497
2501
|
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: Gn };
|
|
2498
2502
|
}
|
|
2499
2503
|
});
|
|
2500
|
-
var
|
|
2504
|
+
var hl = function() {
|
|
2501
2505
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2502
2506
|
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
|
|
2503
|
-
}, pl = [], wl = /* @__PURE__ */
|
|
2504
|
-
hl,
|
|
2507
|
+
}, pl = [], wl = /* @__PURE__ */ Y(
|
|
2505
2508
|
ml,
|
|
2509
|
+
hl,
|
|
2506
2510
|
pl,
|
|
2507
2511
|
!1,
|
|
2508
2512
|
null,
|
|
@@ -2529,7 +2533,7 @@ const ba = wl.exports, Sl = {
|
|
|
2529
2533
|
}
|
|
2530
2534
|
}, bl = {
|
|
2531
2535
|
i18n: { messages: Sl }
|
|
2532
|
-
},
|
|
2536
|
+
}, Rl = /* @__PURE__ */ Ce({
|
|
2533
2537
|
...bl,
|
|
2534
2538
|
__name: "data-grid-summary-cell",
|
|
2535
2539
|
props: {
|
|
@@ -2540,7 +2544,7 @@ const ba = wl.exports, Sl = {
|
|
|
2540
2544
|
tooltipText: { default: null }
|
|
2541
2545
|
},
|
|
2542
2546
|
setup(s) {
|
|
2543
|
-
const t = s, { tc: n } =
|
|
2547
|
+
const t = s, { tc: n } = pe(), e = p(), o = v(() => ({
|
|
2544
2548
|
popoverPosition: "right",
|
|
2545
2549
|
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
2546
2550
|
popoverTitle: t.label,
|
|
@@ -2559,25 +2563,25 @@ const ba = wl.exports, Sl = {
|
|
|
2559
2563
|
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: i, computedToolTipText: _, BentoDashedUnderline: Zn, BentoTypography: ye, Tooltip: Vn, BentoTooltipPosition: Hn };
|
|
2560
2564
|
}
|
|
2561
2565
|
});
|
|
2562
|
-
var
|
|
2566
|
+
var El = function() {
|
|
2563
2567
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2564
2568
|
return n("div", { staticClass: "b-data-grid-summary-cell" }, [t.items.length > 1 ? n(e.BentoDashedUnderline, t._b({ ref: "dashedUnderlineRef", scopedSlots: t._u([{ key: "popover-content", fn: function() {
|
|
2565
2569
|
return [n(e.BentoTypography, { staticClass: "b-data-grid-summary-cell__popover-content" }, [n("ul", { staticClass: "b-data-grid-summary-cell__list" }, t._l(t.items, function(o) {
|
|
2566
2570
|
return n("li", { key: o }, [n(e.highlightedComponent(o), { tag: "component" }, [t._v(t._s(o))])], 1);
|
|
2567
2571
|
}), 0)])];
|
|
2568
2572
|
}, proxy: !0 }], null, !1, 4023850623) }, "bento-dashed-underline", e.dashedUnderlineProps, !1), [t._v(" " + t._s(t.label) + " ")]) : [t._v(t._s(t.items[0]))], e.dashedUnderlineRef && e.computedToolTipText ? n(e.Tooltip, { attrs: { content: e.computedToolTipText, "disabled-focus-trap": !0, position: e.BentoTooltipPosition.RIGHT, "fallback-position": ["left", "bottom"], "is-shown": !!e.computedToolTipText, "target-element": e.dashedUnderlineRef } }) : t._e()], 2);
|
|
2569
|
-
}, Ll = [], yl = /* @__PURE__ */
|
|
2570
|
-
El,
|
|
2573
|
+
}, Ll = [], yl = /* @__PURE__ */ Y(
|
|
2571
2574
|
Rl,
|
|
2575
|
+
El,
|
|
2572
2576
|
Ll,
|
|
2573
2577
|
!1,
|
|
2574
2578
|
null,
|
|
2575
2579
|
"2cf5d218"
|
|
2576
2580
|
);
|
|
2577
|
-
const
|
|
2581
|
+
const Ra = yl.exports, Al = {
|
|
2578
2582
|
i18n: { messages: $t },
|
|
2579
2583
|
name: "bento-data-grid"
|
|
2580
|
-
}, Tl = /* @__PURE__ */
|
|
2584
|
+
}, Tl = /* @__PURE__ */ Ce({
|
|
2581
2585
|
...Al,
|
|
2582
2586
|
props: {
|
|
2583
2587
|
/**
|
|
@@ -2914,9 +2918,9 @@ const Ea = yl.exports, Al = {
|
|
|
2914
2918
|
N.SORT
|
|
2915
2919
|
],
|
|
2916
2920
|
setup(s, { expose: t, emit: n }) {
|
|
2917
|
-
const e = s, o = Ge(), l = Ve(o), a = p(null), i = p(), _ = p({}), g = p(Ie("data-grid")), w = p(null),
|
|
2921
|
+
const e = s, o = Ge(), l = Ve(o), a = p(null), i = p(), _ = p({}), g = p(Ie("data-grid")), w = p(null), m = p(null), E = p(), S = p(null), u = p(null), y = p(null), {
|
|
2918
2922
|
allowColumnDragAndDrop: L,
|
|
2919
|
-
columns:
|
|
2923
|
+
columns: B,
|
|
2920
2924
|
columnPanel: b,
|
|
2921
2925
|
data: d,
|
|
2922
2926
|
lazyLoadType: A,
|
|
@@ -2924,19 +2928,19 @@ const Ea = yl.exports, Al = {
|
|
|
2924
2928
|
hasNestedContent: D,
|
|
2925
2929
|
hasNestedRows: r,
|
|
2926
2930
|
selectable: f,
|
|
2927
|
-
selection:
|
|
2931
|
+
selection: R,
|
|
2928
2932
|
selectableAcrossPages: T,
|
|
2929
|
-
stickyPagination:
|
|
2933
|
+
stickyPagination: F,
|
|
2930
2934
|
outline: U,
|
|
2931
|
-
pagination:
|
|
2932
|
-
zebraRows:
|
|
2933
|
-
} = We(e), q = p(-1), { t:
|
|
2934
|
-
Oe(Ae,
|
|
2935
|
+
pagination: k,
|
|
2936
|
+
zebraRows: J
|
|
2937
|
+
} = We(e), q = p(-1), { t: ee } = pe(), G = v(() => ne.value.filter((I) => I.frozen).length), P = 550, C = p(), { width: z } = Xn(C), W = v(() => z.value <= P);
|
|
2938
|
+
Oe(Ae, W);
|
|
2935
2939
|
const $ = p(!1);
|
|
2936
2940
|
be(() => {
|
|
2937
2941
|
typeof window < "u" && ($.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
2938
2942
|
}), Oe(De, $);
|
|
2939
|
-
const
|
|
2943
|
+
const me = ve(
|
|
2940
2944
|
Jn,
|
|
2941
2945
|
() => ({
|
|
2942
2946
|
additionalContentSlotRef: p(null),
|
|
@@ -2945,16 +2949,16 @@ const Ea = yl.exports, Al = {
|
|
|
2945
2949
|
stickyTabs: p(!1),
|
|
2946
2950
|
tabsRef: p(null)
|
|
2947
2951
|
})
|
|
2948
|
-
), { additionalContentSlotRef: de, isDataGridTemplate: ie, stickyTabs: c, tabsRef:
|
|
2952
|
+
), { additionalContentSlotRef: de, isDataGridTemplate: ie, stickyTabs: c, tabsRef: M, stickyAdditionalContent: X } = me(), {
|
|
2949
2953
|
columnDefs: ne,
|
|
2950
2954
|
onColumnWidthOverride: he,
|
|
2951
|
-
gridRowWidthStyle:
|
|
2955
|
+
gridRowWidthStyle: h,
|
|
2952
2956
|
isMeasuringColumnWidths: x,
|
|
2953
2957
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: H,
|
|
2954
|
-
columns:
|
|
2958
|
+
columns: te,
|
|
2955
2959
|
totalWidthOfAllColumns: re,
|
|
2956
2960
|
rowActionsMaxWidth: ue
|
|
2957
|
-
} = ys(
|
|
2961
|
+
} = ys(B, d, a, _, w, {
|
|
2958
2962
|
hasColumnPanel: b,
|
|
2959
2963
|
hasSelectableColumn: f,
|
|
2960
2964
|
hasSelectableAcrossPages: T,
|
|
@@ -2963,31 +2967,31 @@ const Ea = yl.exports, Al = {
|
|
|
2963
2967
|
allowColumnDragAndDrop: L,
|
|
2964
2968
|
isDataGridTemplate: ie
|
|
2965
2969
|
}), Z = (I, ...V) => {
|
|
2966
|
-
(I === N.COLUMNS || I === N.UPDATE_COLUMNS) && ([
|
|
2970
|
+
(I === N.COLUMNS || I === N.UPDATE_COLUMNS) && ([te.value] = V), n(I, ...V);
|
|
2967
2971
|
}, xe = _t(
|
|
2968
|
-
|
|
2972
|
+
M,
|
|
2969
2973
|
c,
|
|
2970
|
-
|
|
2974
|
+
X,
|
|
2971
2975
|
de
|
|
2972
2976
|
), Gt = v(
|
|
2973
2977
|
() => e.stickyFilters ? `${xe.value}px` : null
|
|
2974
|
-
), Ke = _t(
|
|
2978
|
+
), Ke = _t(m, ze(e, "stickyFilters")), Ht = v(
|
|
2975
2979
|
() => `${Ke.value + xe.value}px`
|
|
2976
2980
|
), {
|
|
2977
|
-
sortedColumns:
|
|
2978
|
-
columnSets:
|
|
2981
|
+
sortedColumns: Be,
|
|
2982
|
+
columnSets: Fe,
|
|
2979
2983
|
isOnlyOneVisibleColumn: Vt,
|
|
2980
2984
|
internalZebraRows: Ye,
|
|
2981
2985
|
onConfigSettingsColumnsUpdate: Zt,
|
|
2982
2986
|
onConfigSettingsColumnUpdate: jt,
|
|
2983
2987
|
onConfigSettingsCondensedUpdate: qt,
|
|
2984
2988
|
onConfigSettingsZebraRowsUpdate: Kt
|
|
2985
|
-
} = xs(ne,
|
|
2986
|
-
|
|
2989
|
+
} = xs(ne, J, Z), { hoveredOverColumn: Yt, hoveredOverColumnState: Jt } = Fs(
|
|
2990
|
+
Fe,
|
|
2987
2991
|
f,
|
|
2988
2992
|
U,
|
|
2989
2993
|
H
|
|
2990
|
-
), { draggingColumns: Xt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn } = Ds(
|
|
2994
|
+
), { draggingColumns: Xt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn } = Ds(Be, L, Z), Je = v(
|
|
2991
2995
|
() => {
|
|
2992
2996
|
var I;
|
|
2993
2997
|
return ((I = e.data) == null ? void 0 : I.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
|
|
@@ -3001,22 +3005,23 @@ const Ea = yl.exports, Al = {
|
|
|
3001
3005
|
selectedItems: Xe,
|
|
3002
3006
|
selectionState: rn
|
|
3003
3007
|
} = As(
|
|
3004
|
-
|
|
3008
|
+
R,
|
|
3005
3009
|
Z,
|
|
3006
3010
|
d,
|
|
3007
3011
|
e.getDataItemId,
|
|
3008
3012
|
e.isDataItemDisabled,
|
|
3009
3013
|
Je,
|
|
3010
|
-
|
|
3011
|
-
), cn = v(
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3014
|
+
k
|
|
3015
|
+
), cn = v(() => {
|
|
3016
|
+
var I, V, K, fe;
|
|
3017
|
+
return {
|
|
3018
|
+
filtered: ((I = E.value) == null ? void 0 : I.isClearAllVisible) || ((V = E.value) == null ? void 0 : V.isResetAllVisible) || !!e.filterSearchTerm,
|
|
3019
|
+
allRowsVisible: ((K = k.value) == null ? void 0 : K.size) >= ((fe = k.value) == null ? void 0 : fe.totalCount)
|
|
3020
|
+
};
|
|
3021
|
+
}), { navigationInput: dn } = Os(
|
|
3017
3022
|
w,
|
|
3018
3023
|
_,
|
|
3019
|
-
|
|
3024
|
+
Be,
|
|
3020
3025
|
f,
|
|
3021
3026
|
v(() => e.rowActions !== void 0),
|
|
3022
3027
|
b
|
|
@@ -3033,7 +3038,7 @@ const Ea = yl.exports, Al = {
|
|
|
3033
3038
|
hasLeftOverflow: Ue,
|
|
3034
3039
|
hasRightOverflow: et,
|
|
3035
3040
|
horizontalScrollbarConditionalStyles: Cn
|
|
3036
|
-
} =
|
|
3041
|
+
} = Bs(
|
|
3037
3042
|
a,
|
|
3038
3043
|
i,
|
|
3039
3044
|
Qe,
|
|
@@ -3042,55 +3047,55 @@ const Ea = yl.exports, Al = {
|
|
|
3042
3047
|
re,
|
|
3043
3048
|
{
|
|
3044
3049
|
isLazyLoad: Te,
|
|
3045
|
-
pagination:
|
|
3046
|
-
stickyPagination:
|
|
3050
|
+
pagination: k,
|
|
3051
|
+
stickyPagination: F,
|
|
3047
3052
|
isDataGridTemplate: ie
|
|
3048
3053
|
}
|
|
3049
3054
|
), tt = () => {
|
|
3050
|
-
|
|
3051
|
-
},
|
|
3055
|
+
E.value.isClearAllVisible ? E.value.clearAllFilters() : E.value.isResetAllVisible && E.value.resetAllFilters();
|
|
3056
|
+
}, mn = v(() => {
|
|
3052
3057
|
var I, V;
|
|
3053
3058
|
return {
|
|
3054
3059
|
...e.emptyState,
|
|
3055
3060
|
variant: ((I = e.emptyState) == null ? void 0 : I.variant) === "embedded" || ((V = e.emptyState) == null ? void 0 : V.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
3056
3061
|
};
|
|
3057
|
-
}),
|
|
3058
|
-
[`b-data-grid--${
|
|
3059
|
-
[`b-data-grid--${
|
|
3060
|
-
[`b-data-grid--${
|
|
3061
|
-
[`b-data-grid--${
|
|
3062
|
-
[`b-data-grid--${
|
|
3063
|
-
[`b-data-grid--${
|
|
3064
|
-
[`b-data-grid--${
|
|
3065
|
-
[`b-data-grid--${
|
|
3062
|
+
}), hn = v(() => ({
|
|
3063
|
+
[`b-data-grid--${_e.OUTLINE}`]: e.outline,
|
|
3064
|
+
[`b-data-grid--${_e.SCROLL}`]: e.fitContent || Te.value,
|
|
3065
|
+
[`b-data-grid--${_e.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
3066
|
+
[`b-data-grid--${_e.OVERFLOW_SHADOW_LEFT}`]: Ue.value && !G.value,
|
|
3067
|
+
[`b-data-grid--${_e.OVERFLOW_SHADOW_RIGHT}`]: et.value && e.rowActions === void 0,
|
|
3068
|
+
[`b-data-grid--${_e.NO_SPACING_TOP}`]: e.noSpacingTop,
|
|
3069
|
+
[`b-data-grid--${_e.FIT_CONTENT}`]: e.fitContent,
|
|
3070
|
+
[`b-data-grid--${_e.ZEBRA_ROWS}`]: Ye.value,
|
|
3066
3071
|
"b-data-grid--lazy-load": Te.value
|
|
3067
3072
|
})), pn = v(() => ({
|
|
3068
3073
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
3069
|
-
})), wn = v(() =>
|
|
3074
|
+
})), wn = v(() => Fe.value.findIndex((I) => I.columnSet.length)), Sn = v(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && G.value === 1) || Ue.value), bn = v(() => ({
|
|
3070
3075
|
"b-data-grid__filters--sticky": !!e.stickyFilters || ie
|
|
3071
|
-
})),
|
|
3072
|
-
var I, V,
|
|
3076
|
+
})), Rn = v(() => {
|
|
3077
|
+
var I, V, K, fe, Re, Ee;
|
|
3073
3078
|
return {
|
|
3074
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
3075
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
3079
|
+
"b-data-grid__pagination--padding-left-unset": ((K = (V = (I = e.columns) == null ? void 0 : I[0]) == null ? void 0 : V.padding) == null ? void 0 : K.left) === !1,
|
|
3080
|
+
"b-data-grid__pagination--padding-right-unset": ((Ee = (Re = (fe = e.columns) == null ? void 0 : fe[e.columns.length - 1]) == null ? void 0 : Re.padding) == null ? void 0 : Ee.right) === !1,
|
|
3076
3081
|
"b-data-grid__pagination--sticky": !!e.stickyPagination || ie
|
|
3077
3082
|
};
|
|
3078
|
-
}),
|
|
3083
|
+
}), En = (I) => {
|
|
3079
3084
|
const V = I;
|
|
3080
|
-
I !== null && (V != null && V.columnHeaderRefs) && Object.entries(V == null ? void 0 : V.columnHeaderRefs).forEach(([
|
|
3081
|
-
_.value[
|
|
3085
|
+
I !== null && (V != null && V.columnHeaderRefs) && Object.entries(V == null ? void 0 : V.columnHeaderRefs).forEach(([K, fe]) => {
|
|
3086
|
+
_.value[K] = fe;
|
|
3082
3087
|
});
|
|
3083
3088
|
}, Ln = (I, V) => {
|
|
3084
|
-
var
|
|
3085
|
-
const
|
|
3086
|
-
if (I !== null &&
|
|
3087
|
-
const Un = e.rowActions !== void 0 && (
|
|
3088
|
-
Object.entries(
|
|
3089
|
+
var fe, Re, Ee, lt;
|
|
3090
|
+
const K = I;
|
|
3091
|
+
if (I !== null && K != null && K.gridcellRefs) {
|
|
3092
|
+
const Un = e.rowActions !== void 0 && (K == null ? void 0 : K.rowActionsRef);
|
|
3093
|
+
Object.entries(K == null ? void 0 : K.gridcellRefs).map(([Me, Mn]) => {
|
|
3089
3094
|
var at;
|
|
3090
3095
|
((at = w.value) == null ? void 0 : at[Me]) === void 0 && (w.value = { ...w.value, [Me]: [] }), w.value[Me][V] = Mn;
|
|
3091
|
-
}), Un && (((
|
|
3096
|
+
}), Un && (((fe = w.value) == null ? void 0 : fe[Le]) === void 0 && (w.value = { ...w.value, [Le]: [] }), w.value[Le][V] = (Re = K.rowActionsRef) == null ? void 0 : Re[0], ue.value = Math.max(
|
|
3092
3097
|
ue.value,
|
|
3093
|
-
((lt = (
|
|
3098
|
+
((lt = (Ee = K.rowActionsRef) == null ? void 0 : Ee[0]) == null ? void 0 : lt.offsetWidth) ?? 0
|
|
3094
3099
|
));
|
|
3095
3100
|
}
|
|
3096
3101
|
}, yn = (I, V) => {
|
|
@@ -3110,16 +3115,16 @@ const Ea = yl.exports, Al = {
|
|
|
3110
3115
|
});
|
|
3111
3116
|
}, xn = (I) => {
|
|
3112
3117
|
Z(N.ITEMS_PAGE, I);
|
|
3113
|
-
},
|
|
3118
|
+
}, Bn = () => {
|
|
3114
3119
|
Z(N.FILTER_SEARCH_CLEAR);
|
|
3115
|
-
},
|
|
3120
|
+
}, Fn = (I) => {
|
|
3116
3121
|
Z(N.UPDATE_FILTER_SEARCH_TERM, I), Z(N.FILTER_SEARCH_INPUT, I);
|
|
3117
|
-
}, st = v(() =>
|
|
3122
|
+
}, st = v(() => B.value.some((I) => I.mandatory));
|
|
3118
3123
|
st.value || Nt(
|
|
3119
3124
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3120
3125
|
);
|
|
3121
|
-
const ot =
|
|
3122
|
-
return ot(e.tabTitle), Oe(zt, ze(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: tt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: i, columnHeaderRefs: _, dataGridUid: g, gridcellRefs: w, filtersRef:
|
|
3126
|
+
const ot = ve(Yn, () => null);
|
|
3127
|
+
return ot(e.tabTitle), Oe(zt, ze(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: tt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: i, columnHeaderRefs: _, dataGridUid: g, gridcellRefs: w, filtersRef: m, filterBarRef: E, paginationContainerRef: S, verticalScrollPositionRef: u, virtualHorizontalScrollbarRef: y, allowColumnDragAndDrop: L, columns: B, columnPanel: b, data: d, lazyLoadType: A, loading: O, hasNestedContent: D, hasNestedRows: r, selectable: f, selection: R, selectableAcrossPages: T, stickyPagination: F, outline: U, pagination: k, zebraRows: J, hoveredRowIndex: q, t: ee, frozenColumnsLength: G, MOBILE_BREAKPOINT: P, dataGridRef: C, width: z, isSmallContainer: W, isTouchDevice: $, registerDatagridInDataGridTemplate: me, additionalContentSlotRef: de, isDataGridTemplate: ie, stickyTabs: c, tabsRef: M, stickyAdditionalContent: X, columnDefs: ne, onColumnWidthOverride: he, gridRowWidthStyle: h, isMeasuringColumnWidths: x, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: H, localColumnsState: te, totalWidthOfAllColumns: re, rowActionsMaxWidth: ue, definedEmitsFunction: n, emit: Z, stickyFiltersHeight: xe, computedStickyFiltersTopPosition: Gt, columnHeadersHeight: Ke, computedColumnHeadersTopPosition: Ht, sortedColumns: Be, columnSets: Fe, isOnlyOneVisibleColumn: Vt, internalZebraRows: Ye, onConfigSettingsColumnsUpdate: Zt, onConfigSettingsColumnUpdate: jt, onConfigSettingsCondensedUpdate: qt, onConfigSettingsZebraRowsUpdate: Kt, hoveredOverColumn: Yt, hoveredOverColumnState: Jt, draggingColumns: Xt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn, selectableAcrossPagesComputed: Je, onAllRowSelect: nn, onRowSelect: sn, onNestedRowSelect: on, onDeselectAll: ln, allItemsSelectedState: an, selectedItems: Xe, selectionState: rn, visibleRowsState: cn, navigationInput: dn, isLazyLoad: Te, isInfiniteScroll: un, verticalScrollPosition: Qe, emitLazyLoadEvent: fn, updateScrollPosition: gn, updateScrollPositionOnFrozenColumnsNavigation: _n, syncVirtualScrollerWithBody: vn, hasLeftOverflow: Ue, hasRightOverflow: et, horizontalScrollbarConditionalStyles: Cn, onEmptyStateClearResetButtonClick: tt, limitedEmptyStateProps: mn, conditionalGridClasses: hn, conditionalGridBodyClasses: pn, computedColumnPanelAlignment: wn, showFrozenColumnsSeparator: Sn, conditionalFilterClasses: bn, conditionalPaginationClasses: Rn, registerColumnHeaderRefs: En, registerRowCellRefs: Ln, onRowClick: yn, onCellHover: An, ariaGridRole: Tn, itemsSelectedCounter: nt, showActionBar: On, onColumnResized: Nn, onSort: In, onPaginationNavigate: Dn, onItemsPerPageChange: xn, onSearchTermCleared: Bn, onSearchTermInput: Fn, hasMandatoryColumn: st, setTitle: ot, BentoActionBar: jn, BentoPagination: qn, BentoLoadingIndicator: He, BentoTypography: ye, BentoDataGridConfigSettings: Uo, DataGridColumns: po, DataGridLazyLoad: Wo, DataGridRow: Wt, handleClipboard: Us, BentoDatagridEvent: N, BentoFilterBar: Pe, BentoEmptyState: Kn };
|
|
3123
3128
|
}
|
|
3124
3129
|
});
|
|
3125
3130
|
var Ol = function() {
|
|
@@ -3127,7 +3132,7 @@ var Ol = function() {
|
|
|
3127
3132
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3128
3133
|
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 }, _) {
|
|
3129
3134
|
var g;
|
|
3130
|
-
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (w) => e.registerColumnHeaderRefs(w), 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-
|
|
3135
|
+
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (w) => e.registerColumnHeaderRefs(w), 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: ((g = e.data) == null ? void 0 : g.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(w) {
|
|
3131
3136
|
e.hoveredOverColumn = w;
|
|
3132
3137
|
}, "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(w) {
|
|
3133
3138
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
@@ -3135,9 +3140,9 @@ var Ol = function() {
|
|
|
3135
3140
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
|
|
3136
3141
|
}, "deselect-all-current-results": function(w) {
|
|
3137
3142
|
return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
|
|
3138
|
-
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(w,
|
|
3139
|
-
return { key:
|
|
3140
|
-
return [t._t(
|
|
3143
|
+
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(w, m) {
|
|
3144
|
+
return { key: m, fn: function(E) {
|
|
3145
|
+
return [t._t(m, null, null, E)];
|
|
3141
3146
|
} };
|
|
3142
3147
|
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
3143
3148
|
})], 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) {
|
|
@@ -3145,28 +3150,28 @@ var Ol = function() {
|
|
|
3145
3150
|
return n(e.DataGridRow, { key: a, ref: (g) => e.registerRowCellRefs(g, 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, "nested-content-toggled": function(g) {
|
|
3146
3151
|
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, g);
|
|
3147
3152
|
}, "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(g, w) {
|
|
3148
|
-
return { key: w, fn: function(
|
|
3149
|
-
return [t._t(w, null, null,
|
|
3153
|
+
return { key: w, fn: function(m) {
|
|
3154
|
+
return [t._t(w, null, null, m)];
|
|
3150
3155
|
} };
|
|
3151
3156
|
})], null, !0) });
|
|
3152
3157
|
})], 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);
|
|
3153
|
-
}, Nl = [], Il = /* @__PURE__ */
|
|
3158
|
+
}, Nl = [], Il = /* @__PURE__ */ Y(
|
|
3154
3159
|
Tl,
|
|
3155
3160
|
Ol,
|
|
3156
3161
|
Nl,
|
|
3157
3162
|
!1,
|
|
3158
3163
|
null,
|
|
3159
|
-
"
|
|
3164
|
+
"cc51d1d4"
|
|
3160
3165
|
);
|
|
3161
|
-
const
|
|
3166
|
+
const Ea = Il.exports;
|
|
3162
3167
|
export {
|
|
3163
|
-
|
|
3168
|
+
_e as B,
|
|
3164
3169
|
ba as a,
|
|
3165
|
-
|
|
3170
|
+
Ra as b,
|
|
3166
3171
|
Se as c,
|
|
3167
|
-
|
|
3172
|
+
Ea as d,
|
|
3168
3173
|
N as e,
|
|
3169
3174
|
Ne as f,
|
|
3170
3175
|
$e as g
|
|
3171
3176
|
};
|
|
3172
|
-
//# sourceMappingURL=data-grid.
|
|
3177
|
+
//# sourceMappingURL=data-grid.BhwTkhfk.js.map
|