@adyen/bento-vue3 1.87.1 → 1.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +127 -66
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/chunks/action-bar.BS2cJzG_.js +355 -0
- package/dist/chunks/action-bar.BS2cJzG_.js.map +1 -0
- package/dist/chunks/{code-snippet.Dl1MEedz.js → code-snippet.CJDFfbit.js} +2 -2
- package/dist/chunks/{code-snippet.Dl1MEedz.js.map → code-snippet.CJDFfbit.js.map} +1 -1
- package/dist/chunks/{data-grid.DKys-Nai.js → data-grid.CWop1cFU.js} +412 -405
- package/dist/chunks/data-grid.CWop1cFU.js.map +1 -0
- package/dist/chunks/{date-picker.D5B_SECc.js → date-picker.BtNEBZfS.js} +11 -11
- package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.BtNEBZfS.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CHq6WwCb.js → date-range-picker.DVpgkLuA.js} +21 -21
- package/dist/chunks/{date-range-picker.CHq6WwCb.js.map → date-range-picker.DVpgkLuA.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CwSzUwa7.js → dropdown-tag.DyKf9OvB.js} +2 -2
- package/dist/chunks/{dropdown-tag.CwSzUwa7.js.map → dropdown-tag.DyKf9OvB.js.map} +1 -1
- package/dist/chunks/{dropdown.Bdw2B-Cw.js → dropdown.BXbfqIpi.js} +179 -178
- package/dist/chunks/dropdown.BXbfqIpi.js.map +1 -0
- package/dist/chunks/{filter-bar.CuN1cxZZ.js → filter-bar.l5_cF2g4.js} +7 -7
- package/dist/chunks/{filter-bar.CuN1cxZZ.js.map → filter-bar.l5_cF2g4.js.map} +1 -1
- package/dist/chunks/{header-with-views.BwhK4MPe.js → header-with-views.RTgwVY-Y.js} +2 -2
- package/dist/chunks/{header-with-views.BwhK4MPe.js.map → header-with-views.RTgwVY-Y.js.map} +1 -1
- package/dist/chunks/{input-field-password.CKhqGBVB.js → input-field-password.DEWVmJBO.js} +3 -3
- package/dist/chunks/{input-field-password.CKhqGBVB.js.map → input-field-password.DEWVmJBO.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Cailj_71.js → input-field-phone-number.CnCDyXmY.js} +3 -3
- package/dist/chunks/{input-field-phone-number.Cailj_71.js.map → input-field-phone-number.CnCDyXmY.js.map} +1 -1
- package/dist/chunks/{input-field.DqXVoKpy.js → input-field.BHdMoXK2.js} +2 -2
- package/dist/chunks/{input-field.DqXVoKpy.js.map → input-field.BHdMoXK2.js.map} +1 -1
- package/dist/chunks/{pagination.CqCd5JCe.js → pagination.DWbONyCn.js} +2 -2
- package/dist/chunks/{pagination.CqCd5JCe.js.map → pagination.DWbONyCn.js.map} +1 -1
- package/dist/chunks/{radio-group.v8mDVZ-o.js → radio-group.DEYzF6o7.js} +2 -2
- package/dist/chunks/{radio-group.v8mDVZ-o.js.map → radio-group.DEYzF6o7.js.map} +1 -1
- package/dist/chunks/{radio-input.DektLjN4.js → radio-input.FC4PVCHr.js} +36 -34
- package/dist/chunks/radio-input.FC4PVCHr.js.map +1 -0
- package/dist/chunks/{search-bar.DGpLNVng.js → search-bar.Dzrc_qhy.js} +3 -3
- package/dist/chunks/{search-bar.DGpLNVng.js.map → search-bar.Dzrc_qhy.js.map} +1 -1
- package/dist/chunks/{secondary-nav.l_60nnXA.js → secondary-nav.D2Llqw3y.js} +2 -2
- package/dist/chunks/{secondary-nav.l_60nnXA.js.map → secondary-nav.D2Llqw3y.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BuA6CLom.js → selection-card-group.B3LCxON_.js} +2 -2
- package/dist/chunks/{selection-card-group.BuA6CLom.js.map → selection-card-group.B3LCxON_.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +18 -18
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/chunks/action-bar.Ho_fXeXK.js +0 -209
- package/dist/chunks/action-bar.Ho_fXeXK.js.map +0 -1
- package/dist/chunks/data-grid.DKys-Nai.js.map +0 -1
- package/dist/chunks/dropdown.Bdw2B-Cw.js.map +0 -1
- package/dist/chunks/radio-input.DektLjN4.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as E, onMounted as et, nextTick as Ce, watch as ye, onUnmounted as fl, reactive as Et, toRefs as yt, computed as C, watchEffect as Cn, onBeforeUpdate as _n, openBlock as d, createElementBlock as p, mergeProps as se, toDisplayString as J, createCommentVNode as W, createElementVNode as
|
|
1
|
+
import { ref as E, onMounted as et, nextTick as Ce, watch as ye, onUnmounted as fl, reactive as Et, toRefs as yt, computed as C, watchEffect as Cn, onBeforeUpdate as _n, openBlock as d, createElementBlock as p, mergeProps as se, toDisplayString as J, createCommentVNode as W, createElementVNode as A, defineComponent as Ne, inject as Pe, normalizeClass as de, Fragment as _e, renderList as Ae, unref as o, toHandlers as gt, createBlock as H, withCtx as G, createVNode as Y, renderSlot as ze, withModifiers as bn, normalizeStyle as Fe, resolveComponent as Te, createTextVNode as fe, withDirectives as nt, vShow as wn, toRef as bt, resolveDirective as Sn, Transition as gl, createSlots as Qe, resolveDynamicComponent as Xe, useSlots as Rt, provide as dt, withKeys as zt, normalizeProps as pn, guardReactiveProps as En } from "vue";
|
|
2
2
|
import { C as yn } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
3
3
|
import { W as Rn } from "./warning-filled.BzyK_mMj.js";
|
|
4
4
|
/* empty css */
|
|
@@ -11,12 +11,12 @@ import { B as On } from "./dashed-underline.wbRHATeE.js";
|
|
|
11
11
|
import { B as qe, p as ml } from "./typography.B3J6_tYk.js";
|
|
12
12
|
import { u as We } from "./index.B875RXHM.js";
|
|
13
13
|
import { B as Nn } from "./tag.CqWg6C3H.js";
|
|
14
|
-
import { B as In } from "./action-bar.
|
|
15
|
-
import { B as
|
|
14
|
+
import { B as In } from "./action-bar.BS2cJzG_.js";
|
|
15
|
+
import { B as Dn } from "./pagination.DWbONyCn.js";
|
|
16
16
|
import { B as ct } from "./loading-indicator.BPol9I84.js";
|
|
17
17
|
import { u as Lt } from "./use-has-slot.B7eQSabc.js";
|
|
18
18
|
import { g as ft } from "./generate-uid.NJ8tVoha.js";
|
|
19
|
-
import { a as
|
|
19
|
+
import { a as $n } from "./filter-bar.l5_cF2g4.js";
|
|
20
20
|
import { B as kn } from "./empty-state.DqdPzU-g.js";
|
|
21
21
|
import { E as Un } from "./tabs.keys.B4qGhjp2.js";
|
|
22
22
|
import { D as Mn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
@@ -25,12 +25,11 @@ import { o as At } from "./resize.Bqks3WUm.js";
|
|
|
25
25
|
import { f as St, c as Tt, h as zn, a as Bt, b as Wt, O as Vt, D as Pn } from "./button-actions.BYBpjNqy.js";
|
|
26
26
|
import { B as hl } from "./button.C6t9_lzm.js";
|
|
27
27
|
import { B as Cl } from "./toggle.BupEBkIG.js";
|
|
28
|
-
import { B as Bn } from "./search-bar.
|
|
28
|
+
import { B as Bn } from "./search-bar.Dzrc_qhy.js";
|
|
29
29
|
import { B as Wn } from "./directive.rXUeDb8p.js";
|
|
30
|
-
import { u as Vn } from "./dropdown.
|
|
30
|
+
import { u as Vn } from "./dropdown.BXbfqIpi.js";
|
|
31
31
|
import { S as Hn } from "./search.ClLmZAgC.js";
|
|
32
32
|
import { B as _l } from "./checkbox.CSV86azi.js";
|
|
33
|
-
import { b as bl } from "./focus-trap.BxCwzLqN.js";
|
|
34
33
|
import { B as Gn } from "./info-icon.DyPOv7Pi.js";
|
|
35
34
|
import { D as xn } from "./use-cached-selected-values.C4_X3vVj.js";
|
|
36
35
|
import { B as Ht } from "./popover.types.DhALnOLQ.js";
|
|
@@ -38,6 +37,7 @@ import { A as Zn } from "./arrow-left.C6UiqO-c.js";
|
|
|
38
37
|
import { A as jn } from "./arrow-right.fSdLV_ho.js";
|
|
39
38
|
import { H as qn, S as Kn } from "./show.BreRPkgL.js";
|
|
40
39
|
import { l as Gt } from "./events.BQOQSSb7.js";
|
|
40
|
+
import { b as bl } from "./focus-trap.BxCwzLqN.js";
|
|
41
41
|
import { E as xt } from "./link.DTCn2EtX.js";
|
|
42
42
|
import { C as Zt } from "./copy.C_BCNHYQ.js";
|
|
43
43
|
import { C as Yn } from "./chevron-down.XeE-LBV_.js";
|
|
@@ -86,39 +86,39 @@ const jt = (e) => {
|
|
|
86
86
|
};
|
|
87
87
|
var pt = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(pt || {}), ae = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL = "deselect-all", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(ae || {}), Me = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e.FIT_CONTENT = "fit-content", e.ZEBRA_ROWS = "zebra-rows", e))(Me || {}), He = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(He || {}), z = /* @__PURE__ */ ((e) => (e.CELL_FOCUS = "cell-focus", e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.SORT = "sort", e))(z || {}), ut = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(ut || {});
|
|
88
88
|
const Qn = (e, s) => {
|
|
89
|
-
const i = E(null), t = E(!1), u = E(void 0), l = e.value.reduce((
|
|
89
|
+
const i = E(null), t = E(!1), u = E(void 0), l = e.value.reduce((N, k) => (N[k.field] = null, N), {}), n = Et(l), v = yt(n);
|
|
90
90
|
let f = 0, _ = "";
|
|
91
91
|
const b = C(
|
|
92
|
-
() => Object.fromEntries(e.value.map(({ field:
|
|
92
|
+
() => Object.fromEntries(e.value.map(({ field: N, width: k, minWidth: y }) => [N, { width: k, minWidth: y }]))
|
|
93
93
|
);
|
|
94
94
|
Cn(() => u.value = b.value);
|
|
95
|
-
let
|
|
96
|
-
const S = (
|
|
97
|
-
const k =
|
|
98
|
-
u.value[y].width = M > b.value[y].minWidth ? M : b.value[y].minWidth, s(ae.COLUMN_RESIZING, u.value), f =
|
|
95
|
+
let L = null, I = null;
|
|
96
|
+
const S = (N) => {
|
|
97
|
+
const k = N.clientX - f, y = _, M = u.value[y].width + k;
|
|
98
|
+
u.value[y].width = M > b.value[y].minWidth ? M : b.value[y].minWidth, s(ae.COLUMN_RESIZING, u.value), f = N.clientX;
|
|
99
99
|
}, c = () => {
|
|
100
|
-
t.value = !1,
|
|
100
|
+
t.value = !1, L == null || L(), I == null || I(), _ && s(ae.COLUMN_RESIZE, {
|
|
101
101
|
field: _,
|
|
102
102
|
width: u.value[_].width
|
|
103
|
-
}),
|
|
104
|
-
},
|
|
105
|
-
if (y.preventDefault(),
|
|
103
|
+
}), L = null, I = null, _ = "", f = null;
|
|
104
|
+
}, T = (N, k, y) => {
|
|
105
|
+
if (y.preventDefault(), N) {
|
|
106
106
|
if (t.value = !0, y.buttons !== 1) {
|
|
107
107
|
c();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
_ = k, f = y.clientX,
|
|
110
|
+
_ = k, f = y.clientX, L = Gt(window, "mousemove", S), I = Gt(window, "mouseup", c);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
return ye(
|
|
114
114
|
() => t.value,
|
|
115
|
-
(
|
|
116
|
-
!
|
|
115
|
+
(N, k) => {
|
|
116
|
+
!N && k && (s(ae.COLUMN_HOVER, i.value), i.value = null);
|
|
117
117
|
}
|
|
118
118
|
), {
|
|
119
119
|
resizeData: u,
|
|
120
120
|
allColumnRefs: v,
|
|
121
|
-
startResize:
|
|
121
|
+
startResize: T,
|
|
122
122
|
isResizing: t,
|
|
123
123
|
columnHoverEventToEmitAfterResizing: i
|
|
124
124
|
};
|
|
@@ -132,24 +132,24 @@ const Qn = (e, s) => {
|
|
|
132
132
|
return;
|
|
133
133
|
const v = { min: {} };
|
|
134
134
|
let f = e, _ = s, b = 0;
|
|
135
|
-
u.forEach((
|
|
136
|
-
f -= t[
|
|
135
|
+
u.forEach((L) => {
|
|
136
|
+
f -= t[L].computedWidth, _ -= t[L].flex;
|
|
137
137
|
});
|
|
138
|
-
for (let
|
|
139
|
-
const S = i[
|
|
138
|
+
for (let L = 0, I = i.length; L < I; L += 1) {
|
|
139
|
+
const S = i[L];
|
|
140
140
|
if (t[S.field] && t[S.field].frozen === !0)
|
|
141
141
|
continue;
|
|
142
|
-
let
|
|
143
|
-
|
|
142
|
+
let T = f / _ * S.flex;
|
|
143
|
+
T < S.minWidth && (b += S.minWidth - T, T = S.minWidth, v.min[S.field] = !0), t[S.field] = {
|
|
144
144
|
frozen: !1,
|
|
145
|
-
computedWidth:
|
|
145
|
+
computedWidth: T,
|
|
146
146
|
flex: S.flex
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
b > 0 ? Object.keys(v.min).forEach((
|
|
150
|
-
l(
|
|
151
|
-
}) : i.forEach(({ field:
|
|
152
|
-
l(
|
|
149
|
+
b > 0 ? Object.keys(v.min).forEach((L) => {
|
|
150
|
+
l(L);
|
|
151
|
+
}) : i.forEach(({ field: L }) => {
|
|
152
|
+
l(L);
|
|
153
153
|
}), n();
|
|
154
154
|
}
|
|
155
155
|
return n(), t;
|
|
@@ -160,13 +160,13 @@ const Qn = (e, s) => {
|
|
|
160
160
|
var s, i, t, u, l;
|
|
161
161
|
return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (u = e == null ? void 0 : e.hasSelectableAcrossPages) != null && u.value ? oo : no : so : (l = e == null ? void 0 : e.hasSelectableAcrossPages) != null && l.value ? lo : to;
|
|
162
162
|
}, co = (e, s, i, t, u, l) => {
|
|
163
|
-
const n = E(e.value), v = E(s), f = E(i), _ = E(t), b = E(u),
|
|
163
|
+
const n = E(e.value), v = E(s), f = E(i), _ = E(t), b = E(u), L = E(!1), I = E(0);
|
|
164
164
|
ye(
|
|
165
165
|
() => e.value,
|
|
166
166
|
(a, g) => {
|
|
167
167
|
var B, x;
|
|
168
|
-
const
|
|
169
|
-
if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !
|
|
168
|
+
const O = (a == null ? void 0 : a.map(({ field: j }) => j).toString()) === (g == null ? void 0 : g.map(({ field: j }) => j).toString());
|
|
169
|
+
if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !O) {
|
|
170
170
|
n.value = e.value;
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
@@ -178,10 +178,10 @@ const Qn = (e, s) => {
|
|
|
178
178
|
);
|
|
179
179
|
const S = E();
|
|
180
180
|
let c = null;
|
|
181
|
-
const
|
|
181
|
+
const T = C(() => {
|
|
182
182
|
var be, ge, ue;
|
|
183
183
|
const a = [];
|
|
184
|
-
let g = 0,
|
|
184
|
+
let g = 0, O = 0;
|
|
185
185
|
const B = {};
|
|
186
186
|
let x = n.value.filter((oe) => oe.visible !== !1);
|
|
187
187
|
const j = n.value.filter((oe) => oe.visible === !1);
|
|
@@ -205,9 +205,9 @@ const Qn = (e, s) => {
|
|
|
205
205
|
X.flex && X.flex > 0 ? (g += X.flex, we = 0, a.push(X)) : we = Math.max(
|
|
206
206
|
(X == null ? void 0 : X.width) ?? eo,
|
|
207
207
|
(X == null ? void 0 : X.minWidth) ?? Kt
|
|
208
|
-
),
|
|
209
|
-
}),
|
|
210
|
-
const le = Math.max(S.value -
|
|
208
|
+
), O += we, X.width = we, X.minWidth = (X == null ? void 0 : X.minWidth) ?? Kt, B[X.field] = X;
|
|
209
|
+
}), O += I.value;
|
|
210
|
+
const le = Math.max(S.value - O, 0);
|
|
211
211
|
if (g > 0 && S.value > 0) {
|
|
212
212
|
const oe = ro(le, g, a);
|
|
213
213
|
Object.keys(oe).forEach((X) => {
|
|
@@ -218,41 +218,41 @@ const Qn = (e, s) => {
|
|
|
218
218
|
const X = { ...oe };
|
|
219
219
|
B[X.field] = X;
|
|
220
220
|
}), Object.values(B);
|
|
221
|
-
}),
|
|
222
|
-
|
|
221
|
+
}), N = E(void 0), k = (a) => {
|
|
222
|
+
N.value = { ...N.value, ...a };
|
|
223
223
|
}, y = async () => {
|
|
224
|
-
n.value.some((a) => a == null ? void 0 : a.autoWidth) && (
|
|
224
|
+
n.value.some((a) => a == null ? void 0 : a.autoWidth) && (L.value = !0, await Ce(), await Ce(), n == null || n.value.filter((a) => a == null ? void 0 : a.autoWidth).forEach(({ field: a, minWidth: g }) => {
|
|
225
225
|
var j, le, be, ge;
|
|
226
|
-
const
|
|
226
|
+
const O = Yt(
|
|
227
227
|
(j = _.value) == null ? void 0 : j[a],
|
|
228
228
|
(le = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : le.value
|
|
229
229
|
), B = (ge = (be = b.value) == null ? void 0 : be[a]) == null ? void 0 : ge.reduce(
|
|
230
230
|
(ue, oe) => Math.max(ue, Yt(oe)),
|
|
231
231
|
0
|
|
232
|
-
), x = Math.max(
|
|
232
|
+
), x = Math.max(O, B ?? 0);
|
|
233
233
|
(g === void 0 || x > g) && k({
|
|
234
234
|
[a]: {
|
|
235
235
|
width: x
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
}),
|
|
238
|
+
}), L.value = !1);
|
|
239
239
|
};
|
|
240
240
|
ye([() => n.value, () => v.value], async () => {
|
|
241
241
|
n.value.some((a) => a == null ? void 0 : a.autoWidth) && await y();
|
|
242
242
|
});
|
|
243
243
|
const M = C(
|
|
244
|
-
() =>
|
|
245
|
-
var g,
|
|
244
|
+
() => T.value.map((a) => {
|
|
245
|
+
var g, O;
|
|
246
246
|
return {
|
|
247
247
|
...a,
|
|
248
248
|
// Override column width with resized ones
|
|
249
|
-
width: ((
|
|
249
|
+
width: ((O = (g = N.value) == null ? void 0 : g[a.field]) == null ? void 0 : O.width) ?? a.width
|
|
250
250
|
};
|
|
251
251
|
})
|
|
252
252
|
), h = C(
|
|
253
253
|
() => {
|
|
254
254
|
var a;
|
|
255
|
-
return ((a = M.value) == null ? void 0 : a.filter(({ visible: g }) => g !== !1).reduce((g,
|
|
255
|
+
return ((a = M.value) == null ? void 0 : a.filter(({ visible: g }) => g !== !1).reduce((g, O) => O.width + g, 0)) + I.value;
|
|
256
256
|
}
|
|
257
257
|
), F = C(
|
|
258
258
|
() => S.value <= h.value
|
|
@@ -264,10 +264,10 @@ const Qn = (e, s) => {
|
|
|
264
264
|
const a = l != null && l.isDataGridTemplate ? io : 0;
|
|
265
265
|
Ce(() => {
|
|
266
266
|
f.value && (S.value = f.value.getBoundingClientRect().width - a);
|
|
267
|
-
const
|
|
267
|
+
const O = ye(
|
|
268
268
|
f,
|
|
269
269
|
() => {
|
|
270
|
-
f.value && (Ce(() =>
|
|
270
|
+
f.value && (Ce(() => O()), c = At(f.value, ({ width: B }) => {
|
|
271
271
|
S.value = B - a;
|
|
272
272
|
}));
|
|
273
273
|
},
|
|
@@ -280,18 +280,18 @@ const Qn = (e, s) => {
|
|
|
280
280
|
c == null || c.disconnect();
|
|
281
281
|
}), _n(() => {
|
|
282
282
|
var a;
|
|
283
|
-
b.value && ((a = Object.keys(b.value)) == null ? void 0 : a.length) > 0 && Object.keys(b.value).forEach((
|
|
284
|
-
b.value[
|
|
283
|
+
b.value && ((a = Object.keys(b.value)) == null ? void 0 : a.length) > 0 && Object.keys(b.value).forEach((O) => {
|
|
284
|
+
b.value[O] = [];
|
|
285
285
|
});
|
|
286
286
|
}), {
|
|
287
287
|
columnDefs: M,
|
|
288
288
|
gridRowWidthStyle: m,
|
|
289
289
|
onColumnWidthOverride: k,
|
|
290
|
-
isMeasuringColumnWidths:
|
|
290
|
+
isMeasuringColumnWidths: L,
|
|
291
291
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
|
|
292
292
|
columns: n,
|
|
293
293
|
totalWidthOfAllColumns: h,
|
|
294
|
-
rowActionsMaxWidth:
|
|
294
|
+
rowActionsMaxWidth: I
|
|
295
295
|
};
|
|
296
296
|
}, fo = (e, s, i, t, u, l, n) => {
|
|
297
297
|
const v = E(e.value ?? []), f = Et({
|
|
@@ -305,31 +305,31 @@ const Qn = (e, s) => {
|
|
|
305
305
|
), b = C(
|
|
306
306
|
() => {
|
|
307
307
|
var a, g;
|
|
308
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.every((
|
|
308
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.every((O) => v.value.includes(t(O))));
|
|
309
309
|
}
|
|
310
|
-
),
|
|
310
|
+
), L = C(
|
|
311
311
|
() => {
|
|
312
312
|
var a, g;
|
|
313
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.filter((
|
|
313
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.filter((O) => !u(O)).every((O) => v.value.includes(t(O))));
|
|
314
314
|
}
|
|
315
|
-
),
|
|
315
|
+
), I = C(
|
|
316
316
|
() => {
|
|
317
317
|
var a, g;
|
|
318
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.some((
|
|
318
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.some((O) => v.value.includes(t(O))));
|
|
319
319
|
}
|
|
320
320
|
), S = C(
|
|
321
321
|
() => {
|
|
322
322
|
var a, g;
|
|
323
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.filter((
|
|
323
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.filter((O) => !u(O)).some((O) => v.value.includes(t(O))));
|
|
324
324
|
}
|
|
325
325
|
), c = C(() => {
|
|
326
326
|
var a;
|
|
327
|
-
return !(l != null && l.value) || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.totalCount) === void 0 ? !1 : v.value.length >= n.value.totalCount &&
|
|
328
|
-
}),
|
|
327
|
+
return !(l != null && l.value) || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.totalCount) === void 0 ? !1 : v.value.length >= n.value.totalCount && L.value;
|
|
328
|
+
}), T = () => {
|
|
329
329
|
s(z.SELECT, v.value), s(z.UPDATE_SELECTION, v.value);
|
|
330
|
-
},
|
|
331
|
-
var g,
|
|
332
|
-
v.value = a, b.value ? (f.allItemsSelected = !0, f.isIndeterminate = !1) : (f.allItemsSelected = !1, f.isIndeterminate = ((g = v.value) == null ? void 0 : g.length) > 0 && ((
|
|
330
|
+
}, N = (a) => {
|
|
331
|
+
var g, O;
|
|
332
|
+
v.value = a, b.value ? (f.allItemsSelected = !0, f.isIndeterminate = !1) : (f.allItemsSelected = !1, f.isIndeterminate = ((g = v.value) == null ? void 0 : g.length) > 0 && ((O = i.value) == null ? void 0 : O.length) > 0 && i.value.some(
|
|
333
333
|
(B) => {
|
|
334
334
|
var x;
|
|
335
335
|
return v.value.includes(t(B)) || ((x = B == null ? void 0 : B.children) == null ? void 0 : x.some((j) => v.value.includes(t(j))));
|
|
@@ -337,47 +337,47 @@ const Qn = (e, s) => {
|
|
|
337
337
|
));
|
|
338
338
|
}, k = (a) => {
|
|
339
339
|
Ce(() => {
|
|
340
|
-
var
|
|
340
|
+
var O, B;
|
|
341
341
|
f.allItemsSelected = a;
|
|
342
|
-
const g = ((B = (
|
|
342
|
+
const g = ((B = (O = _.value) == null ? void 0 : O.filter(
|
|
343
343
|
(x) => !u(x) && ((x == null ? void 0 : x.children) === void 0 || x.children.every((j) => !u(j)))
|
|
344
344
|
)) == null ? void 0 : B.map((x) => t(x))) ?? [];
|
|
345
|
-
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...g])], f.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !g.includes(x)), f.isIndeterminate = !
|
|
345
|
+
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...g])], f.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !g.includes(x)), f.isIndeterminate = !I.value), T();
|
|
346
346
|
});
|
|
347
347
|
}, y = () => {
|
|
348
348
|
Ce(() => {
|
|
349
|
-
|
|
349
|
+
N([]), T();
|
|
350
350
|
});
|
|
351
351
|
}, M = (a, g) => {
|
|
352
352
|
Ce(() => {
|
|
353
|
-
var
|
|
354
|
-
|
|
353
|
+
var O;
|
|
354
|
+
N(((O = g == null ? void 0 : g.children) == null ? void 0 : O.length) > 0 ? h(a, g) : a), T();
|
|
355
355
|
});
|
|
356
356
|
}, h = (a, g) => {
|
|
357
357
|
var x;
|
|
358
|
-
const
|
|
359
|
-
if (a.includes(
|
|
358
|
+
const O = t(g), B = (x = g.children) == null ? void 0 : x.filter((j) => !u(j)).map((j) => t(j));
|
|
359
|
+
if (a.includes(O)) {
|
|
360
360
|
const j = a;
|
|
361
361
|
return B.forEach((le) => {
|
|
362
362
|
j.includes(le) || j.push(le);
|
|
363
363
|
}), j;
|
|
364
364
|
}
|
|
365
365
|
return a.filter((j) => !B.includes(j));
|
|
366
|
-
}, F = (a, g,
|
|
366
|
+
}, F = (a, g, O) => {
|
|
367
367
|
Ce(() => {
|
|
368
368
|
var x, j;
|
|
369
369
|
const B = t(g);
|
|
370
|
-
a.includes(t(
|
|
370
|
+
a.includes(t(O)) ? N(
|
|
371
371
|
!a.includes(B) && ((x = g == null ? void 0 : g.children) != null && x.every((le) => a.includes(t(le)))) ? [...a, B] : a
|
|
372
|
-
) :
|
|
372
|
+
) : N(
|
|
373
373
|
a.includes(B) && !((j = g == null ? void 0 : g.children) != null && j.every((le) => a.includes(t(le)))) ? a.filter((le) => le !== B) : a
|
|
374
|
-
),
|
|
374
|
+
), T();
|
|
375
375
|
});
|
|
376
|
-
}, m = C(() => c.value ? "all" :
|
|
376
|
+
}, m = C(() => c.value ? "all" : L.value ? "page" : !v.value || v.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
377
377
|
return ye(
|
|
378
378
|
() => e.value,
|
|
379
379
|
() => {
|
|
380
|
-
|
|
380
|
+
N(e.value ?? []);
|
|
381
381
|
},
|
|
382
382
|
{ immediate: !0 }
|
|
383
383
|
), ye(
|
|
@@ -385,11 +385,11 @@ const Qn = (e, s) => {
|
|
|
385
385
|
() => {
|
|
386
386
|
const a = i.value.filter((g) => v.value.includes(t(g))).flatMap(
|
|
387
387
|
(g) => {
|
|
388
|
-
var
|
|
389
|
-
return ((
|
|
388
|
+
var O;
|
|
389
|
+
return ((O = g == null ? void 0 : g.children) == null ? void 0 : O.length) > 0 ? g.children.map((B) => t(B)).filter((B) => !v.value.includes(B)) : [];
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
|
-
(a == null ? void 0 : a.length) > 0 ? (
|
|
392
|
+
(a == null ? void 0 : a.length) > 0 ? (N([...v.value, ...a]), T()) : N(v.value);
|
|
393
393
|
}
|
|
394
394
|
), {
|
|
395
395
|
onAllRowSelect: k,
|
|
@@ -440,7 +440,7 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
440
440
|
a != null && a[F] && M.push(a[F]);
|
|
441
441
|
}
|
|
442
442
|
return M;
|
|
443
|
-
}), b = (y) => Math.floor(y / f.value),
|
|
443
|
+
}), b = (y) => Math.floor(y / f.value), L = (y, M, h) => {
|
|
444
444
|
const F = _.value.length - 1, m = f.value - 1, a = b(y), g = y - f.value * a;
|
|
445
445
|
return {
|
|
446
446
|
[pe.PAGE_UP]: g + (n.value ? f.value : 0),
|
|
@@ -448,7 +448,7 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
448
448
|
[pe.END]: h ? F : f.value * a + m,
|
|
449
449
|
[pe.HOME]: h ? n.value ? f.value : 0 : f.value * a
|
|
450
450
|
}[M];
|
|
451
|
-
},
|
|
451
|
+
}, I = (y, M) => {
|
|
452
452
|
const h = b(y), m = {
|
|
453
453
|
[pe.ARROW_DOWN]: f.value,
|
|
454
454
|
[pe.ARROW_UP]: h === 0 && !n.value ? 0 : -f.value,
|
|
@@ -463,64 +463,64 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
463
463
|
pe.HOME
|
|
464
464
|
].includes(y), c = (y, M, h) => {
|
|
465
465
|
const F = _.value.indexOf(y);
|
|
466
|
-
return S(M) ?
|
|
467
|
-
},
|
|
466
|
+
return S(M) ? L(F, M, h) : I(F, M);
|
|
467
|
+
}, T = (y, M, h) => {
|
|
468
468
|
if (!_.value.includes(y))
|
|
469
469
|
return;
|
|
470
470
|
const F = c(y, M, h);
|
|
471
471
|
_.value[F].focus();
|
|
472
|
-
},
|
|
472
|
+
}, N = (y) => y in pe;
|
|
473
473
|
return {
|
|
474
|
-
isNavigationKeyCode:
|
|
475
|
-
focusOnNextGridcell:
|
|
474
|
+
isNavigationKeyCode: N,
|
|
475
|
+
focusOnNextGridcell: T,
|
|
476
476
|
navigationInput: (y) => {
|
|
477
477
|
const { ctrlKey: M, key: h, target: F } = y, m = h;
|
|
478
478
|
let a = F;
|
|
479
|
-
a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a = F.closest('[role="gridcell"], [role="columnheader"]')), _.value.includes(a) &&
|
|
479
|
+
a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a = F.closest('[role="gridcell"], [role="columnheader"]')), _.value.includes(a) && N(m) && T(a, m, M));
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
}, mo = 90, ho = (e, s, i, t, u) => {
|
|
483
|
-
const l = E(e), n = E(s), v = E(i), f = E(t), _ = C(() => l.value !== "none"), b = C(() => l.value === "automatic"),
|
|
483
|
+
const l = E(e), n = E(s), v = E(i), f = E(t), _ = C(() => l.value !== "none"), b = C(() => l.value === "automatic"), L = () => {
|
|
484
484
|
u(z.UPDATE_SHOW_MORE);
|
|
485
485
|
};
|
|
486
486
|
return ye(
|
|
487
487
|
() => n.value,
|
|
488
488
|
() => {
|
|
489
|
-
b.value && v.value.offsetHeight / n.value * 100 > mo && !f.value &&
|
|
489
|
+
b.value && v.value.offsetHeight / n.value * 100 > mo && !f.value && L();
|
|
490
490
|
}
|
|
491
|
-
), { isLazyLoad: _, isInfiniteScroll: b, verticalScrollPosition: n, emitLazyLoadEvent:
|
|
491
|
+
), { isLazyLoad: _, isInfiniteScroll: b, verticalScrollPosition: n, emitLazyLoadEvent: L };
|
|
492
492
|
}, Co = (e, s, i) => {
|
|
493
493
|
const t = E(e), u = E(s), l = Et({
|
|
494
494
|
dragging: null,
|
|
495
495
|
dragToLeft: null,
|
|
496
496
|
target: null
|
|
497
497
|
}), n = (S, c = 0) => {
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
498
|
+
const T = t.value.findIndex((y) => y.field === S.field), N = T + c;
|
|
499
|
+
if (N < 0 || N > t.value.length - 1)
|
|
500
500
|
return;
|
|
501
501
|
const k = [...t.value];
|
|
502
|
-
k.splice(
|
|
502
|
+
k.splice(N, 0, k.splice(T, 1)[0]), i(z.COLUMNS, k), i(z.UPDATE_COLUMNS, k);
|
|
503
503
|
}, v = (S, c) => {
|
|
504
504
|
l.dragging = S, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
|
|
505
505
|
}, f = (S, c) => {
|
|
506
506
|
l.target = S;
|
|
507
|
-
const
|
|
508
|
-
l.dragToLeft = k <=
|
|
507
|
+
const T = c.currentTarget.getBoundingClientRect(), N = T.left + T.width / 2, k = c.clientX ?? 0;
|
|
508
|
+
l.dragToLeft = k <= N;
|
|
509
509
|
}, _ = (S) => {
|
|
510
|
-
var c,
|
|
510
|
+
var c, T;
|
|
511
511
|
if (((c = l.dragging) == null ? void 0 : c.field) !== S.field) {
|
|
512
|
-
const
|
|
512
|
+
const N = t.value.findIndex((m) => {
|
|
513
513
|
var a;
|
|
514
514
|
return m.field === ((a = l.dragging) == null ? void 0 : a.field);
|
|
515
|
-
}), k = t.value.findIndex((m) => m.field === S.field), y = l.dragToLeft ? k : k + 1, M = y >
|
|
515
|
+
}), k = t.value.findIndex((m) => m.field === S.field), y = l.dragToLeft ? k : k + 1, M = y > N ? y - 1 : y;
|
|
516
516
|
let h = [...t.value];
|
|
517
517
|
h.splice(
|
|
518
518
|
M === -1 ? 0 : M,
|
|
519
519
|
0,
|
|
520
|
-
h.splice(
|
|
520
|
+
h.splice(N, 1)[0]
|
|
521
521
|
);
|
|
522
522
|
const F = t.value.findIndex((m) => !(m != null && m.frozen));
|
|
523
|
-
((
|
|
523
|
+
((T = l.dragging) == null ? void 0 : T.frozen) !== S.frozen && y !== F && (h = h.map(
|
|
524
524
|
(m) => {
|
|
525
525
|
var a;
|
|
526
526
|
return ((a = l.dragging) == null ? void 0 : a.field) === m.field ? { ...m, frozen: !!(S != null && S.frozen) } : m;
|
|
@@ -530,12 +530,12 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
530
530
|
l.dragging = null, l.target = null;
|
|
531
531
|
}, b = () => {
|
|
532
532
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
533
|
-
},
|
|
533
|
+
}, L = C(() => u.value ? {
|
|
534
534
|
[ae.COLUMN_DRAG_START]: (S, c) => v(S, c),
|
|
535
535
|
[ae.COLUMN_DRAG_ENTER]: (S, c) => f(S, c),
|
|
536
536
|
[ae.COLUMN_DROP]: (S) => _(S),
|
|
537
537
|
[ae.COLUMN_DRAG_END]: () => b()
|
|
538
|
-
} : {}),
|
|
538
|
+
} : {}), I = C(() => (S) => u.value ? {
|
|
539
539
|
dragenter: (c) => {
|
|
540
540
|
c.preventDefault(), f(S, c);
|
|
541
541
|
},
|
|
@@ -550,13 +550,13 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
550
550
|
// Values
|
|
551
551
|
draggingColumns: l,
|
|
552
552
|
// Methods
|
|
553
|
-
draggingEventsForColumns:
|
|
554
|
-
draggingEventsForRowCell:
|
|
553
|
+
draggingEventsForColumns: L,
|
|
554
|
+
draggingEventsForRowCell: I,
|
|
555
555
|
onMoveColumnByOffset: n
|
|
556
556
|
};
|
|
557
557
|
}, _o = (e, s, i) => {
|
|
558
558
|
const t = E(e), u = E(s.value), l = C(
|
|
559
|
-
() => [...t.value].sort((c,
|
|
559
|
+
() => [...t.value].sort((c, T) => c.frozen === T.frozen ? 0 : c.frozen ? -1 : 1)
|
|
560
560
|
), n = C(
|
|
561
561
|
() => l.value.filter((c) => c.frozen && c.visible !== !1)
|
|
562
562
|
), v = C(
|
|
@@ -568,15 +568,15 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
568
568
|
].filter(({ columnSet: c }) => c.length)
|
|
569
569
|
), _ = C(
|
|
570
570
|
() => t.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== Ee).length === 1
|
|
571
|
-
), b = (c) => i(z.UPDATE_CONDENSED, c),
|
|
571
|
+
), b = (c) => i(z.UPDATE_CONDENSED, c), L = (c) => {
|
|
572
572
|
u.value = c, i(z.UPDATE_ZEBRA_ROWS, c);
|
|
573
|
-
},
|
|
573
|
+
}, I = (c) => {
|
|
574
574
|
i(z.COLUMNS, c), i(z.UPDATE_COLUMNS, c);
|
|
575
575
|
}, S = (c) => {
|
|
576
|
-
const
|
|
577
|
-
(
|
|
576
|
+
const T = l.value.map(
|
|
577
|
+
(N) => (N == null ? void 0 : N.field) === c.field ? c : N
|
|
578
578
|
);
|
|
579
|
-
|
|
579
|
+
I(T);
|
|
580
580
|
};
|
|
581
581
|
return ye(s, (c) => {
|
|
582
582
|
u.value = c;
|
|
@@ -587,34 +587,34 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
587
587
|
internalZebraRows: u,
|
|
588
588
|
sortedColumns: l,
|
|
589
589
|
// Methods
|
|
590
|
-
onConfigSettingsColumnsUpdate:
|
|
590
|
+
onConfigSettingsColumnsUpdate: I,
|
|
591
591
|
onConfigSettingsColumnUpdate: S,
|
|
592
592
|
onConfigSettingsCondensedUpdate: b,
|
|
593
|
-
onConfigSettingsZebraRowsUpdate:
|
|
593
|
+
onConfigSettingsZebraRowsUpdate: L
|
|
594
594
|
};
|
|
595
595
|
}, bo = (e, s, i, t, u, l, n) => {
|
|
596
596
|
const v = E(0), f = E(!1), _ = E(!1);
|
|
597
597
|
ye([() => v.value, () => l.value], ([c]) => {
|
|
598
598
|
e.value.scrollLeft = c, s.value.scrollLeft = c, f.value = !!c, _.value = s.value.scrollWidth - s.value.offsetWidth > c;
|
|
599
599
|
}), et(async () => {
|
|
600
|
-
var c,
|
|
601
|
-
await Ce(), await Ce(), ((c = s.value) == null ? void 0 : c.offsetWidth) < ((
|
|
600
|
+
var c, T;
|
|
601
|
+
await Ce(), await Ce(), ((c = s.value) == null ? void 0 : c.offsetWidth) < ((T = s.value) == null ? void 0 : T.scrollWidth) && (_.value = !0);
|
|
602
602
|
});
|
|
603
603
|
const b = (c) => {
|
|
604
604
|
if (v.value = c.target.scrollLeft, i.value = e.value.scrollHeight - c.target.scrollTop, t != null && t.value) {
|
|
605
|
-
const
|
|
606
|
-
t.value.scrollLeft !==
|
|
605
|
+
const T = c.target.scrollLeft;
|
|
606
|
+
t.value.scrollLeft !== T && (t.value.scrollLeft = T);
|
|
607
607
|
}
|
|
608
|
-
},
|
|
608
|
+
}, L = (c) => {
|
|
609
609
|
c.key === "Tab" || c.key !== "ArrowRight" && c.key !== "ArrowLeft" || (c.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
610
610
|
e.value && (e.value.style.overflowX = "auto");
|
|
611
611
|
}));
|
|
612
|
-
},
|
|
613
|
-
const
|
|
614
|
-
e.value.scrollLeft !==
|
|
612
|
+
}, I = (c) => {
|
|
613
|
+
const T = c.target.scrollLeft;
|
|
614
|
+
e.value.scrollLeft !== T && (e.value.scrollLeft = T);
|
|
615
615
|
}, S = C(() => {
|
|
616
|
-
var c,
|
|
617
|
-
return (c = n == null ? void 0 : n.pagination) != null && c.value && ((
|
|
616
|
+
var c, T, N, k;
|
|
617
|
+
return (c = n == null ? void 0 : n.pagination) != null && c.value && ((T = n == null ? void 0 : n.stickyPagination) != null && T.value || n != null && n.isDataGridTemplate) && !((N = n == null ? void 0 : n.isLazyLoad) != null && N.value) ? { bottom: `${(((k = u.value) == null ? void 0 : k.clientHeight) ?? 0) + 1}px` } : {};
|
|
618
618
|
});
|
|
619
619
|
return {
|
|
620
620
|
// Values
|
|
@@ -624,12 +624,12 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
624
624
|
horizontalScrollbarConditionalStyles: S,
|
|
625
625
|
// Methods
|
|
626
626
|
updateScrollPosition: b,
|
|
627
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
628
|
-
syncVirtualScrollerWithBody:
|
|
627
|
+
updateScrollPositionOnFrozenColumnsNavigation: L,
|
|
628
|
+
syncVirtualScrollerWithBody: I
|
|
629
629
|
};
|
|
630
630
|
}, wo = (e, s, i, t) => {
|
|
631
631
|
const u = E(null), l = C(() => {
|
|
632
|
-
var
|
|
632
|
+
var T, N, k, y;
|
|
633
633
|
if (!u.value || u.value.field === Ee)
|
|
634
634
|
return {
|
|
635
635
|
hoveredOverColumnField: "",
|
|
@@ -637,11 +637,11 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
637
637
|
noBorderLeft: !1,
|
|
638
638
|
noBorderRight: !1
|
|
639
639
|
};
|
|
640
|
-
const n = (
|
|
640
|
+
const n = (N = (T = e.value.find((M) => M.isFrozenColumns)) == null ? void 0 : T.columnSet) == null ? void 0 : N.filter((M) => M.field !== Ee), v = e.value.find((M) => !(M != null && M.isFrozenColumns)), f = u.value.frozen && (n == null ? void 0 : n[0].field) === u.value.field, _ = !u.value.frozen && ((k = v == null ? void 0 : v.columnSet) == null ? void 0 : k[0].field) === u.value.field, b = (s.value || i.value) && f, L = (s.value || i.value) && !n && _, I = n && _, S = (n == null ? void 0 : n.length) > 0 && u.value.frozen && (n == null ? void 0 : n[n.length - 1].field) === u.value.field, c = i.value && t.value && !u.value.frozen && ((y = v == null ? void 0 : v.columnSet) == null ? void 0 : y[v.columnSet.length - 1].field) === u.value.field;
|
|
641
641
|
return {
|
|
642
642
|
hoveredOverColumnField: u.value.field,
|
|
643
643
|
isSeparatorOffset: c,
|
|
644
|
-
noBorderLeft: !!b || !!
|
|
644
|
+
noBorderLeft: !!b || !!L || !!I,
|
|
645
645
|
noBorderRight: !!S || !!c
|
|
646
646
|
};
|
|
647
647
|
});
|
|
@@ -658,42 +658,49 @@ const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
658
658
|
return i.forEach((t) => t.node.setAttribute("tabindex", "-1")), i;
|
|
659
659
|
}, Sl = (e) => {
|
|
660
660
|
(e == null ? void 0 : e.length) > 0 && e.forEach((s) => s == null ? void 0 : s.node.setAttribute("tabindex", "0"));
|
|
661
|
-
}, Jt = () => {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
661
|
+
}, Jt = (e) => {
|
|
662
|
+
var f;
|
|
663
|
+
const s = window.getSelection();
|
|
664
|
+
if (!s || !s.rangeCount)
|
|
665
|
+
return;
|
|
666
|
+
const i = s.getRangeAt(0).cloneContents(), t = (f = i.textContent) == null ? void 0 : f.trim();
|
|
667
|
+
if (!t)
|
|
668
|
+
return;
|
|
669
|
+
const u = i.querySelectorAll('[role="row"]');
|
|
670
|
+
let l = "<table>", n = "";
|
|
671
|
+
const v = (_) => {
|
|
672
|
+
_.forEach((b) => {
|
|
673
|
+
const L = b.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", I = b.textContent.trim();
|
|
674
|
+
I && (l += `<${L}>${I}</${L}>`, n += `${I} `);
|
|
668
675
|
});
|
|
669
676
|
};
|
|
670
|
-
if (!
|
|
671
|
-
const
|
|
677
|
+
if (!u.length) {
|
|
678
|
+
const _ = i.querySelectorAll(
|
|
672
679
|
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
673
680
|
);
|
|
674
|
-
if (
|
|
675
|
-
|
|
681
|
+
if (_.length)
|
|
682
|
+
l += "<tr>", v(_), l += "</tr>";
|
|
676
683
|
else {
|
|
677
|
-
navigator.clipboard.writeText(
|
|
684
|
+
e == null || e.preventDefault(), navigator.clipboard.writeText(t);
|
|
678
685
|
return;
|
|
679
686
|
}
|
|
680
687
|
}
|
|
681
|
-
|
|
682
|
-
const
|
|
688
|
+
u.forEach((_) => {
|
|
689
|
+
const b = _.querySelectorAll(
|
|
683
690
|
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
684
691
|
);
|
|
685
|
-
if (
|
|
686
|
-
|
|
692
|
+
if (l += "<tr>", b.length)
|
|
693
|
+
v(b);
|
|
687
694
|
else {
|
|
688
|
-
const
|
|
689
|
-
|
|
695
|
+
const L = _.textContent.trim();
|
|
696
|
+
l += `<td>${L}</td>`, n += `${L} `;
|
|
690
697
|
}
|
|
691
|
-
|
|
698
|
+
l += "</tr>", n += `
|
|
692
699
|
`;
|
|
693
|
-
}),
|
|
700
|
+
}), l += "</table>", e == null || e.preventDefault(), navigator.clipboard.write([
|
|
694
701
|
new ClipboardItem({
|
|
695
|
-
"text/html": new Blob([
|
|
696
|
-
"text/plain": new Blob([
|
|
702
|
+
"text/html": new Blob([l], { type: "text/html" }),
|
|
703
|
+
"text/plain": new Blob([n || t], { type: "text/plain" })
|
|
697
704
|
})
|
|
698
705
|
]);
|
|
699
706
|
};
|
|
@@ -712,18 +719,18 @@ function Ro(e, s, i, t, u, l) {
|
|
|
712
719
|
fill: "none"
|
|
713
720
|
}), [
|
|
714
721
|
e.$attrs["svg-title"] ? (d(), p("title", po, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
715
|
-
|
|
722
|
+
A("g", {
|
|
716
723
|
fill: "#001222",
|
|
717
724
|
"clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
718
725
|
}, s[0] || (s[0] = [
|
|
719
|
-
|
|
720
|
-
|
|
726
|
+
A("path", { 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" }, null, -1),
|
|
727
|
+
A("path", { 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" }, null, -1)
|
|
721
728
|
]), 8, Eo),
|
|
722
|
-
|
|
723
|
-
|
|
729
|
+
A("defs", null, [
|
|
730
|
+
A("clipPath", {
|
|
724
731
|
id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid
|
|
725
732
|
}, s[1] || (s[1] = [
|
|
726
|
-
|
|
733
|
+
A("rect", {
|
|
727
734
|
width: "16",
|
|
728
735
|
height: "16",
|
|
729
736
|
fill: "#fff"
|
|
@@ -748,19 +755,19 @@ function Io(e, s, i, t, u, l) {
|
|
|
748
755
|
fill: "none"
|
|
749
756
|
}), [
|
|
750
757
|
e.$attrs["svg-title"] ? (d(), p("title", To, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
751
|
-
|
|
758
|
+
A("g", {
|
|
752
759
|
"clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
|
|
753
760
|
}, s[0] || (s[0] = [
|
|
754
|
-
|
|
761
|
+
A("path", {
|
|
755
762
|
fill: "#001222",
|
|
756
763
|
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"
|
|
757
764
|
}, null, -1)
|
|
758
765
|
]), 8, Oo),
|
|
759
|
-
|
|
760
|
-
|
|
766
|
+
A("defs", null, [
|
|
767
|
+
A("clipPath", {
|
|
761
768
|
id: "uia-ui-assets/icons-16-freeze__a" + e.uuid
|
|
762
769
|
}, s[1] || (s[1] = [
|
|
763
|
-
|
|
770
|
+
A("rect", {
|
|
764
771
|
width: "16",
|
|
765
772
|
height: "16",
|
|
766
773
|
fill: "#fff",
|
|
@@ -772,11 +779,11 @@ function Io(e, s, i, t, u, l) {
|
|
|
772
779
|
}
|
|
773
780
|
const pl = /* @__PURE__ */ re(Ao, [["render", Io]]);
|
|
774
781
|
let el = 0;
|
|
775
|
-
const
|
|
782
|
+
const Do = {
|
|
776
783
|
beforeCreate() {
|
|
777
784
|
this.uuid = el.toString(), el += 1;
|
|
778
785
|
}
|
|
779
|
-
},
|
|
786
|
+
}, $o = { key: 0 }, ko = ["clip-path"], Uo = ["id"];
|
|
780
787
|
function Mo(e, s, i, t, u, l) {
|
|
781
788
|
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
782
789
|
class: "ui-assets-icons-16",
|
|
@@ -785,21 +792,21 @@ function Mo(e, s, i, t, u, l) {
|
|
|
785
792
|
height: "16",
|
|
786
793
|
fill: "none"
|
|
787
794
|
}), [
|
|
788
|
-
e.$attrs["svg-title"] ? (d(), p("title",
|
|
789
|
-
|
|
795
|
+
e.$attrs["svg-title"] ? (d(), p("title", $o, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
796
|
+
A("g", {
|
|
790
797
|
fill: "#001222",
|
|
791
798
|
"clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
|
|
792
799
|
}, s[0] || (s[0] = [
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
800
|
+
A("path", { 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" }, null, -1),
|
|
801
|
+
A("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
802
|
+
A("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
|
|
803
|
+
A("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
|
|
797
804
|
]), 8, ko),
|
|
798
|
-
|
|
799
|
-
|
|
805
|
+
A("defs", null, [
|
|
806
|
+
A("clipPath", {
|
|
800
807
|
id: "uia-ui-assets/icons-16-sort_ascending__a" + e.uuid
|
|
801
808
|
}, s[1] || (s[1] = [
|
|
802
|
-
|
|
809
|
+
A("rect", {
|
|
803
810
|
width: "16",
|
|
804
811
|
height: "16",
|
|
805
812
|
fill: "#fff"
|
|
@@ -808,7 +815,7 @@ function Mo(e, s, i, t, u, l) {
|
|
|
808
815
|
])
|
|
809
816
|
], 16);
|
|
810
817
|
}
|
|
811
|
-
const Fo = /* @__PURE__ */ re(
|
|
818
|
+
const Fo = /* @__PURE__ */ re(Do, [["render", Mo]]);
|
|
812
819
|
let tl = 0;
|
|
813
820
|
const zo = {
|
|
814
821
|
beforeCreate() {
|
|
@@ -824,20 +831,20 @@ function Vo(e, s, i, t, u, l) {
|
|
|
824
831
|
fill: "none"
|
|
825
832
|
}), [
|
|
826
833
|
e.$attrs["svg-title"] ? (d(), p("title", Po, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
827
|
-
|
|
834
|
+
A("g", {
|
|
828
835
|
fill: "#001222",
|
|
829
836
|
"clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
|
|
830
837
|
}, s[0] || (s[0] = [
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
838
|
+
A("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1),
|
|
839
|
+
A("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
840
|
+
A("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
|
|
841
|
+
A("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
|
|
835
842
|
]), 8, Bo),
|
|
836
|
-
|
|
837
|
-
|
|
843
|
+
A("defs", null, [
|
|
844
|
+
A("clipPath", {
|
|
838
845
|
id: "uia-ui-assets/icons-16-sort_descending__a" + e.uuid
|
|
839
846
|
}, s[1] || (s[1] = [
|
|
840
|
-
|
|
847
|
+
A("rect", {
|
|
841
848
|
width: "16",
|
|
842
849
|
height: "16",
|
|
843
850
|
fill: "#fff"
|
|
@@ -862,7 +869,7 @@ function Zo(e, s, i, t, u, l) {
|
|
|
862
869
|
fill: "none"
|
|
863
870
|
}), [
|
|
864
871
|
e.$attrs["svg-title"] ? (d(), p("title", xo, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
865
|
-
s[0] || (s[0] =
|
|
872
|
+
s[0] || (s[0] = A("path", {
|
|
866
873
|
fill: "#001222",
|
|
867
874
|
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
868
875
|
}, null, -1))
|
|
@@ -1092,7 +1099,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1092
1099
|
},
|
|
1093
1100
|
emits: ["sort", "column-hover"],
|
|
1094
1101
|
setup(e, { expose: s, emit: i }) {
|
|
1095
|
-
const t = e, u = i, l = 100, { t: n } = We({ messages: El }), { columns: v, sortBy: f } = yt(t), _ = E(), b = E({}),
|
|
1102
|
+
const t = e, u = i, l = 100, { t: n } = We({ messages: El }), { columns: v, sortBy: f } = yt(t), _ = E(), b = E({}), L = E({}), I = E(), S = E(), c = (r) => u(ae.SELECT_ALL_ROWS, r), T = (r) => r.field === Ee, N = C(() => t.selectionState === "all"), k = C(
|
|
1096
1103
|
() => {
|
|
1097
1104
|
var r, V, U;
|
|
1098
1105
|
return [
|
|
@@ -1140,7 +1147,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1140
1147
|
[He.ASCENDING]: ut.ASCENDING,
|
|
1141
1148
|
[He.DESCENDING]: ut.DESCENDING
|
|
1142
1149
|
}[V] : ut.NONE;
|
|
1143
|
-
},
|
|
1150
|
+
}, O = C(() => (r) => t.hasDraggableColumns ? {
|
|
1144
1151
|
dragstart: (V) => {
|
|
1145
1152
|
u(ae.COLUMN_DRAG_START, r, V);
|
|
1146
1153
|
},
|
|
@@ -1188,10 +1195,10 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1188
1195
|
}
|
|
1189
1196
|
].filter(Boolean)
|
|
1190
1197
|
), x = (r) => {
|
|
1191
|
-
|
|
1198
|
+
I.value = r.field, S.value && clearTimeout(S.value);
|
|
1192
1199
|
}, j = (r) => {
|
|
1193
1200
|
const V = setTimeout(() => {
|
|
1194
|
-
r.field ===
|
|
1201
|
+
r.field === I.value && (I.value = "");
|
|
1195
1202
|
}, l);
|
|
1196
1203
|
S.value = V;
|
|
1197
1204
|
}, le = (r) => {
|
|
@@ -1203,16 +1210,16 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1203
1210
|
j(r), M.value ? h.value = null : u("column-hover", null);
|
|
1204
1211
|
},
|
|
1205
1212
|
focus: () => {
|
|
1206
|
-
x(r),
|
|
1213
|
+
x(r), T(r) && Ot(b.value[r.field]);
|
|
1207
1214
|
},
|
|
1208
1215
|
focusout: (U) => {
|
|
1209
1216
|
var ve;
|
|
1210
1217
|
(ve = _.value) != null && ve.contains(U == null ? void 0 : U.relatedTarget) || j(r);
|
|
1211
1218
|
}
|
|
1212
1219
|
};
|
|
1213
|
-
return
|
|
1220
|
+
return T(r) || (V = {
|
|
1214
1221
|
...V,
|
|
1215
|
-
...
|
|
1222
|
+
...O.value(r)
|
|
1216
1223
|
}), V;
|
|
1217
1224
|
}, be = (r) => r.infoIconTooltip || r.sortable || t.hasColumnPanel, ge = (r, V) => {
|
|
1218
1225
|
var U;
|
|
@@ -1237,7 +1244,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1237
1244
|
}), we = C(() => ({
|
|
1238
1245
|
"b-data-grid-columns__select-column--all": t.selectableAcrossPages
|
|
1239
1246
|
})), R = (r, V) => r && V === 0 ? Ht.BOTTOM_START : Ht.BOTTOM_END, ee = (r, V) => {
|
|
1240
|
-
var U, ve, me, Ge, w,
|
|
1247
|
+
var U, ve, me, Ge, w, D, te, ne, ce, Z;
|
|
1241
1248
|
return {
|
|
1242
1249
|
"b-data-grid-columns__column--column-hovered": r.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1243
1250
|
"b-data-grid-columns__column--column-hovered-no-border-left": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
@@ -1249,7 +1256,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1249
1256
|
"b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
|
|
1250
1257
|
"b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
|
|
1251
1258
|
"b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((Ge = (me = t.draggingColumns) == null ? void 0 : me.dragging) == null ? void 0 : Ge.field),
|
|
1252
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((
|
|
1259
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((D = (w = t.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : D.field) && ((te = t.draggingColumns) == null ? void 0 : te.dragToLeft),
|
|
1253
1260
|
"b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((ce = (ne = t.draggingColumns) == null ? void 0 : ne.target) == null ? void 0 : ce.field) && !((Z = t.draggingColumns) != null && Z.dragToLeft),
|
|
1254
1261
|
"b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || t.hasColumnPanel || t.selectableAcrossPages,
|
|
1255
1262
|
"b-data-grid-columns--small-container": ue.value
|
|
@@ -1264,7 +1271,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1264
1271
|
}), Ie = C(() => ({
|
|
1265
1272
|
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
1266
1273
|
})), Be = (r) => ({
|
|
1267
|
-
"b-data-grid-columns__menu--hovered":
|
|
1274
|
+
"b-data-grid-columns__menu--hovered": I.value === r.field || oe.value
|
|
1268
1275
|
});
|
|
1269
1276
|
return s({
|
|
1270
1277
|
columnHeaderRefs: b
|
|
@@ -1283,12 +1290,12 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1283
1290
|
"aria-sort": g(U),
|
|
1284
1291
|
class: [ee(U, ve), "b-data-grid-columns__column"],
|
|
1285
1292
|
"data-testid": `${U.field}-column-header`,
|
|
1286
|
-
draggable: e.hasDraggableColumns && !o(M) && !
|
|
1293
|
+
draggable: e.hasDraggableColumns && !o(M) && !T(U),
|
|
1287
1294
|
role: "columnheader",
|
|
1288
1295
|
tabindex: U.sortable || e.hasColumnPanel || U.infoIconTooltip ? "0" : "-1",
|
|
1289
1296
|
style: { width: U.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${U.width}px` }
|
|
1290
1297
|
}, gt(le(U), !0)), [
|
|
1291
|
-
|
|
1298
|
+
T(U) && e.selectable ? (d(), p("div", {
|
|
1292
1299
|
key: 0,
|
|
1293
1300
|
class: de(["b-data-grid-columns__select-column", we.value])
|
|
1294
1301
|
}, [
|
|
@@ -1311,11 +1318,11 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1311
1318
|
"menu-position": "bottom-start"
|
|
1312
1319
|
}, {
|
|
1313
1320
|
iconLeft: G(() => [
|
|
1314
|
-
|
|
1321
|
+
A("div", Ko, [
|
|
1315
1322
|
Y(o(xn), {
|
|
1316
1323
|
indeterminate: e.allItemsSelectedState.isIndeterminate,
|
|
1317
1324
|
checked: e.allItemsSelectedState.allItemsSelected,
|
|
1318
|
-
"all-selected":
|
|
1325
|
+
"all-selected": N.value,
|
|
1319
1326
|
class: "b-data-grid-columns__select-column-menu-checkbox",
|
|
1320
1327
|
"data-testid": "checkbox-select-all"
|
|
1321
1328
|
}, null, 8, ["indeterminate", "checked", "all-selected"]),
|
|
@@ -1328,7 +1335,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1328
1335
|
_: 1
|
|
1329
1336
|
}, 8, ["button", "data"])) : W("", !0)
|
|
1330
1337
|
], 2)) : (d(), p(_e, { key: 1 }, [
|
|
1331
|
-
|
|
1338
|
+
A("div", {
|
|
1332
1339
|
"aria-label": o(n)("columnActions", { name: U.label }),
|
|
1333
1340
|
"aria-live": "polite",
|
|
1334
1341
|
role: "region",
|
|
@@ -1341,7 +1348,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1341
1348
|
}, {
|
|
1342
1349
|
default: G(() => [
|
|
1343
1350
|
ze(r.$slots, `head-${U.field}`, { column: U }, () => [
|
|
1344
|
-
|
|
1351
|
+
A("span", Jo, J(U.label), 1)
|
|
1345
1352
|
], !0)
|
|
1346
1353
|
]),
|
|
1347
1354
|
_: 2
|
|
@@ -1380,7 +1387,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1380
1387
|
e.hasColumnPanel ? (d(), H(o(St), {
|
|
1381
1388
|
key: 2,
|
|
1382
1389
|
ref_for: !0,
|
|
1383
|
-
ref: (me) =>
|
|
1390
|
+
ref: (me) => L.value[U.field] = me,
|
|
1384
1391
|
class: de(["b-data-grid-columns__menu", Be(U)]),
|
|
1385
1392
|
"disable-arrow-down-opening-menu": "",
|
|
1386
1393
|
data: B.value(U),
|
|
@@ -1392,7 +1399,7 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1392
1399
|
}, null, 8, ["class", "data", "menu-position"])) : W("", !0)
|
|
1393
1400
|
], 2)) : W("", !0)
|
|
1394
1401
|
], 10, Yo),
|
|
1395
|
-
|
|
1402
|
+
A("div", {
|
|
1396
1403
|
"data-testid": `data-grid-column-${U.field}`,
|
|
1397
1404
|
class: de(["b-data-grid-columns__column-separator-container", Ve(U)]),
|
|
1398
1405
|
role: "presentation",
|
|
@@ -1405,11 +1412,11 @@ const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
|
1405
1412
|
], 64))
|
|
1406
1413
|
], 16, qo))), 128)),
|
|
1407
1414
|
e.rowActionsMaximumWidth && !e.isFrozenColumns ? (d(), p(_e, { key: 0 }, [
|
|
1408
|
-
V[3] || (V[3] =
|
|
1415
|
+
V[3] || (V[3] = A("div", {
|
|
1409
1416
|
role: "presentation",
|
|
1410
1417
|
class: "b-data-grid-columns__row-actions-filler"
|
|
1411
1418
|
}, null, -1)),
|
|
1412
|
-
|
|
1419
|
+
A("div", {
|
|
1413
1420
|
ref: (U) => ge(U, o(lt)),
|
|
1414
1421
|
"aria-label": o(n)("rowActionsColumn"),
|
|
1415
1422
|
"aria-colindex": o(v).length + 1,
|
|
@@ -1438,18 +1445,18 @@ function us(e, s, i, t, u, l) {
|
|
|
1438
1445
|
fill: "none"
|
|
1439
1446
|
}), [
|
|
1440
1447
|
e.$attrs["svg-title"] ? (d(), p("title", is, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
1441
|
-
|
|
1448
|
+
A("g", {
|
|
1442
1449
|
fill: "#001222",
|
|
1443
1450
|
"clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
|
|
1444
1451
|
}, s[0] || (s[0] = [
|
|
1445
|
-
|
|
1446
|
-
|
|
1452
|
+
A("path", { 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" }, null, -1),
|
|
1453
|
+
A("path", { 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" }, null, -1)
|
|
1447
1454
|
]), 8, rs),
|
|
1448
|
-
|
|
1449
|
-
|
|
1455
|
+
A("defs", null, [
|
|
1456
|
+
A("clipPath", {
|
|
1450
1457
|
id: "uia-ui-assets/icons-16-settings__a" + e.uuid
|
|
1451
1458
|
}, s[1] || (s[1] = [
|
|
1452
|
-
|
|
1459
|
+
A("rect", {
|
|
1453
1460
|
width: "16",
|
|
1454
1461
|
height: "16",
|
|
1455
1462
|
fill: "#fff"
|
|
@@ -1497,11 +1504,11 @@ const cs = /* @__PURE__ */ re(as, [["render", us]]), ol = {
|
|
|
1497
1504
|
emits: ["visible-column", "updated-column"],
|
|
1498
1505
|
setup(e, { emit: s }) {
|
|
1499
1506
|
const { t: i } = We({ messages: ol }), t = E(!1), u = C(() => {
|
|
1500
|
-
var
|
|
1501
|
-
return (
|
|
1507
|
+
var I;
|
|
1508
|
+
return (I = e.column) == null ? void 0 : I.frozen;
|
|
1502
1509
|
}), l = C(() => {
|
|
1503
|
-
var
|
|
1504
|
-
return ((
|
|
1510
|
+
var I;
|
|
1511
|
+
return ((I = e.column) == null ? void 0 : I.visible) !== !1;
|
|
1505
1512
|
}), n = Pe(
|
|
1506
1513
|
ot,
|
|
1507
1514
|
C(() => !1)
|
|
@@ -1513,14 +1520,14 @@ const cs = /* @__PURE__ */ re(as, [["render", us]]), ol = {
|
|
|
1513
1520
|
u.value || (t.value = !0);
|
|
1514
1521
|
}, b = () => {
|
|
1515
1522
|
u.value || (t.value = !1);
|
|
1516
|
-
},
|
|
1523
|
+
}, L = C(() => ({
|
|
1517
1524
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": u.value
|
|
1518
1525
|
}));
|
|
1519
1526
|
return {
|
|
1520
1527
|
// Values
|
|
1521
1528
|
isFreezeIconOptionShown: t,
|
|
1522
1529
|
isColumnFrozen: u,
|
|
1523
|
-
freezeIconConditionalClasses:
|
|
1530
|
+
freezeIconConditionalClasses: L,
|
|
1524
1531
|
isColumnVisible: l,
|
|
1525
1532
|
isSmallContainer: n,
|
|
1526
1533
|
// Methods
|
|
@@ -1658,38 +1665,38 @@ const vs = /* @__PURE__ */ re(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1658
1665
|
Ue.UPDATE_ZEBRA_ROWS
|
|
1659
1666
|
],
|
|
1660
1667
|
setup(e, { emit: s }) {
|
|
1661
|
-
const { t: i } = We({ messages: sl }), t = E(null), u = ft("data-grid-config-settings-popover"), l = E(null), n = E(!1), v = E(!0), f = E(null), _ = E(""), b = bt(e, "columns"),
|
|
1668
|
+
const { t: i } = We({ messages: sl }), t = E(null), u = ft("data-grid-config-settings-popover"), l = E(null), n = E(!1), v = E(!0), f = E(null), _ = E(""), b = bt(e, "columns"), L = E(!1), I = Vn(_, b), S = () => {
|
|
1662
1669
|
_.value = "";
|
|
1663
1670
|
}, c = C(
|
|
1664
1671
|
() => !e.columns.some((g) => g.visible === !1 && !g.mandatory)
|
|
1665
|
-
),
|
|
1666
|
-
S(),
|
|
1672
|
+
), T = () => {
|
|
1673
|
+
S(), L.value = !L.value, L.value ? Ce(() => {
|
|
1667
1674
|
var g;
|
|
1668
1675
|
return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
|
|
1669
1676
|
}) : Ce(() => {
|
|
1670
|
-
var g,
|
|
1671
|
-
return (
|
|
1677
|
+
var g, O;
|
|
1678
|
+
return (O = (g = f == null ? void 0 : f.value) == null ? void 0 : g.$el) == null ? void 0 : O.focus();
|
|
1672
1679
|
}), v.value = c.value;
|
|
1673
|
-
},
|
|
1674
|
-
const
|
|
1680
|
+
}, N = (g) => g.mandatory ?? !1, k = (g) => {
|
|
1681
|
+
const O = e.columns.map((B) => ({
|
|
1675
1682
|
...B,
|
|
1676
1683
|
visible: g.field === B.field ? g.visible : B.visible
|
|
1677
1684
|
}));
|
|
1678
|
-
s(Ue.UPDATE_COLUMNS,
|
|
1685
|
+
s(Ue.UPDATE_COLUMNS, O);
|
|
1679
1686
|
}, y = (g) => {
|
|
1680
1687
|
g ? s(
|
|
1681
1688
|
Ue.UPDATE_COLUMNS,
|
|
1682
|
-
e.columns.map((
|
|
1689
|
+
e.columns.map((O) => ({ ...O, visible: !0 }))
|
|
1683
1690
|
) : s(
|
|
1684
1691
|
Ue.UPDATE_COLUMNS,
|
|
1685
|
-
e.columns.map((
|
|
1692
|
+
e.columns.map((O) => ({ ...O, visible: (O == null ? void 0 : O.mandatory) === !0 }))
|
|
1686
1693
|
);
|
|
1687
1694
|
}, M = (g) => {
|
|
1688
|
-
const
|
|
1695
|
+
const O = e.columns.map((B) => ({
|
|
1689
1696
|
...B,
|
|
1690
1697
|
frozen: g.field === B.field ? !!(g != null && g.frozen) : !!(B != null && B.frozen)
|
|
1691
1698
|
}));
|
|
1692
|
-
s(Ue.UPDATE_COLUMNS,
|
|
1699
|
+
s(Ue.UPDATE_COLUMNS, O);
|
|
1693
1700
|
}, h = (g) => {
|
|
1694
1701
|
n.value = g, v.value = c.value;
|
|
1695
1702
|
};
|
|
@@ -1699,9 +1706,9 @@ const vs = /* @__PURE__ */ re(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1699
1706
|
popoverId: u,
|
|
1700
1707
|
isConfigSettingsPanelOpen: n,
|
|
1701
1708
|
allColumnsVisbilityToggleState: v,
|
|
1702
|
-
filteredColumnVisibilityColumns:
|
|
1709
|
+
filteredColumnVisibilityColumns: I,
|
|
1703
1710
|
searchTerm: _,
|
|
1704
|
-
isColumnVisibilityFilterShown:
|
|
1711
|
+
isColumnVisibilityFilterShown: L,
|
|
1705
1712
|
searchBarRef: l,
|
|
1706
1713
|
searchButtonRef: f,
|
|
1707
1714
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Ee,
|
|
@@ -1710,11 +1717,11 @@ const vs = /* @__PURE__ */ re(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1710
1717
|
emitCondensedToggle: (g) => s(Ue.UPDATE_CONDENSED, g),
|
|
1711
1718
|
toggleAllColumnVisibility: y,
|
|
1712
1719
|
clearAction: S,
|
|
1713
|
-
toggleColumnFilter:
|
|
1720
|
+
toggleColumnFilter: T,
|
|
1714
1721
|
emitVisibleColumns: k,
|
|
1715
1722
|
emitFrozenColumns: M,
|
|
1716
1723
|
onClickOutside: () => h(!1),
|
|
1717
|
-
isColumnVisibilityToggleDisabled:
|
|
1724
|
+
isColumnVisibilityToggleDisabled: N,
|
|
1718
1725
|
emitZebraRowsToggle: (g) => s(Ue.UPDATE_ZEBRA_ROWS, g),
|
|
1719
1726
|
// Translations
|
|
1720
1727
|
t: i
|
|
@@ -1731,10 +1738,10 @@ const vs = /* @__PURE__ */ re(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1731
1738
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1732
1739
|
}, As = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1733
1740
|
function Ts(e, s, i, t, u, l) {
|
|
1734
|
-
const n = Te("bento-settings-icon"), v = Te("bento-toggle-button"), f = Te("bento-typography"), _ = Te("bento-cross-icon"), b = Te("bento-button"),
|
|
1741
|
+
const n = Te("bento-settings-icon"), v = Te("bento-toggle-button"), f = Te("bento-typography"), _ = Te("bento-cross-icon"), b = Te("bento-button"), L = Te("bento-toggle"), I = Te("bento-search-icon"), S = Te("bento-search-bar"), c = Te("bento-data-grid-config-settings-config-row"), T = Te("bento-popover"), N = Sn("bento-click-outside-directive");
|
|
1735
1742
|
return nt((d(), p("div", hs, [
|
|
1736
|
-
|
|
1737
|
-
|
|
1743
|
+
A("div", Cs, [
|
|
1744
|
+
A("div", _s, [
|
|
1738
1745
|
Y(v, {
|
|
1739
1746
|
"aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
|
|
1740
1747
|
variant: "tertiary",
|
|
@@ -1751,7 +1758,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1751
1758
|
}, 8, ["aria-controls", "toggled"])
|
|
1752
1759
|
], 512)
|
|
1753
1760
|
]),
|
|
1754
|
-
e.configSettingsButtonRef ? (d(), H(
|
|
1761
|
+
e.configSettingsButtonRef ? (d(), H(T, {
|
|
1755
1762
|
key: 0,
|
|
1756
1763
|
id: e.popoverId,
|
|
1757
1764
|
open: e.isConfigSettingsPanelOpen,
|
|
@@ -1761,7 +1768,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1761
1768
|
position: "bottom-end"
|
|
1762
1769
|
}, {
|
|
1763
1770
|
default: G(() => [
|
|
1764
|
-
|
|
1771
|
+
A("div", bs, [
|
|
1765
1772
|
Y(f, {
|
|
1766
1773
|
el: "span",
|
|
1767
1774
|
strongest: ""
|
|
@@ -1783,7 +1790,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1783
1790
|
_: 1
|
|
1784
1791
|
})
|
|
1785
1792
|
]),
|
|
1786
|
-
|
|
1793
|
+
A("div", ws, [
|
|
1787
1794
|
Y(f, {
|
|
1788
1795
|
class: "b-data-grid-config-settings__appearance-title",
|
|
1789
1796
|
el: "span",
|
|
@@ -1794,8 +1801,8 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1794
1801
|
]),
|
|
1795
1802
|
_: 1
|
|
1796
1803
|
}),
|
|
1797
|
-
|
|
1798
|
-
Y(
|
|
1804
|
+
A("div", Ss, [
|
|
1805
|
+
Y(L, {
|
|
1799
1806
|
"label-position": "after",
|
|
1800
1807
|
"aria-label": e.t("condensedToggle"),
|
|
1801
1808
|
value: e.condensed,
|
|
@@ -1807,8 +1814,8 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1807
1814
|
_: 1
|
|
1808
1815
|
}, 8, ["aria-label", "value", "onInput"])
|
|
1809
1816
|
]),
|
|
1810
|
-
|
|
1811
|
-
Y(
|
|
1817
|
+
A("div", ps, [
|
|
1818
|
+
Y(L, {
|
|
1812
1819
|
"label-position": "after",
|
|
1813
1820
|
"aria-label": e.t("zebraRowsToggle"),
|
|
1814
1821
|
value: e.zebraRows,
|
|
@@ -1821,8 +1828,8 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1821
1828
|
}, 8, ["aria-label", "value", "onInput"])
|
|
1822
1829
|
])
|
|
1823
1830
|
]),
|
|
1824
|
-
|
|
1825
|
-
|
|
1831
|
+
A("div", Es, [
|
|
1832
|
+
A("div", ys, [
|
|
1826
1833
|
Y(f, {
|
|
1827
1834
|
class: "b-data-grid-config-settings__column-visibility-title",
|
|
1828
1835
|
el: "span",
|
|
@@ -1852,7 +1859,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1852
1859
|
onClick: e.toggleColumnFilter
|
|
1853
1860
|
}, {
|
|
1854
1861
|
iconLeft: G(() => [
|
|
1855
|
-
Y(
|
|
1862
|
+
Y(I)
|
|
1856
1863
|
]),
|
|
1857
1864
|
default: G(() => [
|
|
1858
1865
|
fe(J(e.t("search")), 1)
|
|
@@ -1870,7 +1877,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1870
1877
|
onEscapePressed: e.toggleColumnFilter
|
|
1871
1878
|
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
1872
1879
|
])) : (d(), p("div", Ls, [
|
|
1873
|
-
Y(
|
|
1880
|
+
Y(L, {
|
|
1874
1881
|
"label-position": "after",
|
|
1875
1882
|
value: e.allColumnsVisbilityToggleState,
|
|
1876
1883
|
onInput: e.toggleAllColumnVisibility
|
|
@@ -1881,7 +1888,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1881
1888
|
_: 1
|
|
1882
1889
|
}, 8, ["value", "onInput"])
|
|
1883
1890
|
])),
|
|
1884
|
-
|
|
1891
|
+
A("div", As, [
|
|
1885
1892
|
(d(!0), p(_e, null, Ae(e.filteredColumnVisibilityColumns, (k) => (d(), p("div", {
|
|
1886
1893
|
key: k.field
|
|
1887
1894
|
}, [
|
|
@@ -1909,7 +1916,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1909
1916
|
_: 1
|
|
1910
1917
|
}, 8, ["id", "open", "aria-label", "target-element"])) : W("", !0)
|
|
1911
1918
|
])), [
|
|
1912
|
-
[
|
|
1919
|
+
[N, e.onClickOutside]
|
|
1913
1920
|
]);
|
|
1914
1921
|
}
|
|
1915
1922
|
const Os = /* @__PURE__ */ re(ms, [["render", Ts], ["__scopeId", "data-v-01dda331"]]), mt = {
|
|
@@ -1951,7 +1958,7 @@ const Os = /* @__PURE__ */ re(ms, [["render", Ts], ["__scopeId", "data-v-01dda33
|
|
|
1951
1958
|
}
|
|
1952
1959
|
}, Ns = { class: "b-data-grid-lazy-load" }, Is = {
|
|
1953
1960
|
i18n: { messages: mt }
|
|
1954
|
-
},
|
|
1961
|
+
}, Ds = /* @__PURE__ */ Ne({
|
|
1955
1962
|
...Is,
|
|
1956
1963
|
__name: "data-grid-lazy-load",
|
|
1957
1964
|
props: {
|
|
@@ -1985,7 +1992,7 @@ const Os = /* @__PURE__ */ re(ms, [["render", Ts], ["__scopeId", "data-v-01dda33
|
|
|
1985
1992
|
}, 8, ["state"])) : W("", !0)
|
|
1986
1993
|
]));
|
|
1987
1994
|
}
|
|
1988
|
-
}),
|
|
1995
|
+
}), $s = /* @__PURE__ */ re(Ds, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1989
1996
|
let al = 0;
|
|
1990
1997
|
const ks = {
|
|
1991
1998
|
beforeCreate() {
|
|
@@ -2001,7 +2008,7 @@ function Ms(e, s, i, t, u, l) {
|
|
|
2001
2008
|
fill: "none"
|
|
2002
2009
|
}), [
|
|
2003
2010
|
e.$attrs["svg-title"] ? (d(), p("title", Us, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
2004
|
-
s[0] || (s[0] =
|
|
2011
|
+
s[0] || (s[0] = A("path", {
|
|
2005
2012
|
fill: "#001222",
|
|
2006
2013
|
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"
|
|
2007
2014
|
}, null, -1))
|
|
@@ -2135,13 +2142,13 @@ const il = /* @__PURE__ */ re(ks, [["render", Ms]]), Rl = {
|
|
|
2135
2142
|
"b-data-grid-cell-actions__actions--zebra": t.hasZebraBackground,
|
|
2136
2143
|
"b-data-grid-cell-actions__actions--highlighted": t.isHighlighted,
|
|
2137
2144
|
"b-data-grid-cell-actions__actions--selected": t.isSelected
|
|
2138
|
-
})),
|
|
2139
|
-
function
|
|
2145
|
+
})), L = C(() => !f.value || f.value && t.hasRightOverflow);
|
|
2146
|
+
function I(h) {
|
|
2140
2147
|
return typeof h == "function";
|
|
2141
2148
|
}
|
|
2142
2149
|
const S = C(() => {
|
|
2143
2150
|
var F;
|
|
2144
|
-
const h =
|
|
2151
|
+
const h = I(t.cellActions) ? (F = t.cellActions) == null ? void 0 : F.call(t, t.rowDataItem, t.columnKey) : t.cellActions;
|
|
2145
2152
|
if (l.value && !f.value && h) {
|
|
2146
2153
|
const m = [];
|
|
2147
2154
|
return h.forEach((a) => {
|
|
@@ -2180,18 +2187,18 @@ const il = /* @__PURE__ */ re(ks, [["render", Ms]]), Rl = {
|
|
|
2180
2187
|
default:
|
|
2181
2188
|
return h.title;
|
|
2182
2189
|
}
|
|
2183
|
-
}),
|
|
2190
|
+
}), T = (h) => (h == null ? void 0 : h.event) !== void 0 ? {
|
|
2184
2191
|
click: (F) => {
|
|
2185
2192
|
F.stopPropagation(), h.event(t.rowDataItem, t.columnKey);
|
|
2186
2193
|
}
|
|
2187
|
-
} : {},
|
|
2194
|
+
} : {}, N = (h) => ({
|
|
2188
2195
|
...h,
|
|
2189
2196
|
handler: () => {
|
|
2190
2197
|
h != null && h.handler && typeof h.handler == "function" && (h == null || h.handler()), h != null && h.event && typeof h.event == "function" && (h == null || h.event(t.rowDataItem, t.columnKey));
|
|
2191
2198
|
}
|
|
2192
2199
|
}), k = (h) => h.map((F) => {
|
|
2193
2200
|
const m = F;
|
|
2194
|
-
return m != null && m.items && (m.items = k(m.items)), { ...
|
|
2201
|
+
return m != null && m.items && (m.items = k(m.items)), { ...N(m) };
|
|
2195
2202
|
}), y = (h) => {
|
|
2196
2203
|
var F, m;
|
|
2197
2204
|
return (h == null ? void 0 : h.getCopyData) !== void 0 ? h.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (m = (F = t.rowDataItem) == null ? void 0 : F[t.columnKey]) == null ? void 0 : m.toString() : "";
|
|
@@ -2201,12 +2208,12 @@ const il = /* @__PURE__ */ re(ks, [["render", Ms]]), Rl = {
|
|
|
2201
2208
|
appear: ""
|
|
2202
2209
|
}, {
|
|
2203
2210
|
default: G(() => [
|
|
2204
|
-
|
|
2205
|
-
|
|
2211
|
+
A("div", Fs, [
|
|
2212
|
+
L.value && !o(l) ? (d(), p("div", {
|
|
2206
2213
|
key: 0,
|
|
2207
2214
|
class: de(["b-data-grid-cell-actions__background-gradient", _.value])
|
|
2208
2215
|
}, null, 2)) : W("", !0),
|
|
2209
|
-
|
|
2216
|
+
A("div", {
|
|
2210
2217
|
class: de(["b-data-grid-cell-actions__actions", b.value]),
|
|
2211
2218
|
role: "group"
|
|
2212
2219
|
}, [
|
|
@@ -2265,7 +2272,7 @@ const il = /* @__PURE__ */ re(ks, [["render", Ms]]), Rl = {
|
|
|
2265
2272
|
critical: m.critical,
|
|
2266
2273
|
disabled: m.disabled,
|
|
2267
2274
|
link: m.link
|
|
2268
|
-
}, gt(
|
|
2275
|
+
}, gt(T(m))), Qe({ _: 2 }, [
|
|
2269
2276
|
m.iconLeft || m.variant === "edit" ? {
|
|
2270
2277
|
name: "iconLeft",
|
|
2271
2278
|
fn: G(() => [
|
|
@@ -2480,20 +2487,20 @@ const rl = () => {
|
|
|
2480
2487
|
},
|
|
2481
2488
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
2482
2489
|
setup(e, { expose: s, emit: i }) {
|
|
2483
|
-
const t = Rt(), u = Lt(t), { t: l } = We({ messages: Al }), n = e, v = i, f = E(null), _ = E(null), b = E(!1),
|
|
2490
|
+
const t = Rt(), u = Lt(t), { t: l } = We({ messages: Al }), n = e, v = i, f = E(null), _ = E(null), b = E(!1), L = E([]), I = E(!1), S = E(), c = E(!1), T = C(() => {
|
|
2484
2491
|
var R;
|
|
2485
2492
|
return !!((R = n.rowData) != null && R[n.column.field]);
|
|
2486
|
-
}),
|
|
2493
|
+
}), N = C(
|
|
2487
2494
|
() => {
|
|
2488
2495
|
var R;
|
|
2489
2496
|
return n.column.field === Ee && ((R = n.nestedRowsElementIds) == null ? void 0 : R.length) > 0 ? n.nestedRowsElementIds.join(" ") : void 0;
|
|
2490
2497
|
}
|
|
2491
2498
|
), k = C(
|
|
2492
2499
|
() => n.column.field === Ee && !n.selectable && !n.nestedContent
|
|
2493
|
-
), y = C(() => !k.value && (a(n.rowIndex, n.colIndex, n.columnSetIndex) === 0 && !c.value ||
|
|
2500
|
+
), y = C(() => !k.value && (a(n.rowIndex, n.colIndex, n.columnSetIndex) === 0 && !c.value || I.value) ? "0" : (n.column.field === Ee, "-1")), M = (R, ee) => (R == null ? void 0 : R.overflow) === pt.ELLIPSIS ? `${ee}` : void 0, h = (R) => R ?? "-", F = (R) => n.columnSets.slice(0, R).reduce((ee, { columnSet: q }) => ee + q.length, 0), m = (R, ee) => R + F(ee), a = (R, ee, q) => F() * R + m(ee, q), g = (R) => {
|
|
2494
2501
|
var ee;
|
|
2495
|
-
(R === null || !f.value.contains(R) && !((ee =
|
|
2496
|
-
},
|
|
2502
|
+
(R === null || !f.value.contains(R) && !((ee = L.value) != null && ee.map((q) => q.value).some((q) => q === R || (q == null ? void 0 : q.contains(R))))) && (b.value = !1);
|
|
2503
|
+
}, O = () => {
|
|
2497
2504
|
b.value = !1;
|
|
2498
2505
|
}, B = E(!1), x = (R) => {
|
|
2499
2506
|
const ee = {
|
|
@@ -2502,7 +2509,7 @@ const rl = () => {
|
|
|
2502
2509
|
focus: async () => {
|
|
2503
2510
|
if (!rl())
|
|
2504
2511
|
return;
|
|
2505
|
-
|
|
2512
|
+
I.value = !0, c.value = !0, v("cell-focus", {
|
|
2506
2513
|
rowData: n.rowData,
|
|
2507
2514
|
column: n.column,
|
|
2508
2515
|
rowIndex: n.rowIndex,
|
|
@@ -2513,7 +2520,7 @@ const rl = () => {
|
|
|
2513
2520
|
rl() && (B.value = !1);
|
|
2514
2521
|
},
|
|
2515
2522
|
keydown: (Q) => {
|
|
2516
|
-
Q.key !== Oe.TAB && (B.value = !1,
|
|
2523
|
+
Q.key !== Oe.TAB && (B.value = !1, I.value = !1, je(f.value));
|
|
2517
2524
|
}
|
|
2518
2525
|
}, q = { ...ee };
|
|
2519
2526
|
return R.frozen && (q.keyup = (Q) => v("on-frozen-columns-key-press", Q), q.keydown = (Q) => {
|
|
@@ -2541,7 +2548,7 @@ const rl = () => {
|
|
|
2541
2548
|
}
|
|
2542
2549
|
), dt(Pn, {
|
|
2543
2550
|
registerMenuContainerElement: (R) => {
|
|
2544
|
-
|
|
2551
|
+
L.value.push(R);
|
|
2545
2552
|
},
|
|
2546
2553
|
menuMouseLeave: (R) => {
|
|
2547
2554
|
f.value.contains(R == null ? void 0 : R.relatedTarget) || (b.value = !1);
|
|
@@ -2603,14 +2610,14 @@ const rl = () => {
|
|
|
2603
2610
|
indeterminate: e.selectionIsIndeterminate,
|
|
2604
2611
|
"model-value": e.selectedItems,
|
|
2605
2612
|
value: e.getDataItemId(e.rowData),
|
|
2606
|
-
tabindex:
|
|
2613
|
+
tabindex: I.value ? 0 : -1,
|
|
2607
2614
|
"onUpdate:modelValue": ee[0] || (ee[0] = (Q) => R.$emit("select-row", Q))
|
|
2608
2615
|
}, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value", "tabindex"])) : W("", !0),
|
|
2609
2616
|
e.nestedContent ? (d(), H(o(Tt), {
|
|
2610
2617
|
key: 1,
|
|
2611
2618
|
ref: "menuButtonRef",
|
|
2612
2619
|
"aria-haspopup": "true",
|
|
2613
|
-
"aria-controls":
|
|
2620
|
+
"aria-controls": N.value,
|
|
2614
2621
|
condensed: "",
|
|
2615
2622
|
variant: "tertiary",
|
|
2616
2623
|
toggled: e.isNestedContentExpanded,
|
|
@@ -2640,7 +2647,7 @@ const rl = () => {
|
|
|
2640
2647
|
item: e.rowData,
|
|
2641
2648
|
rowIndex: e.rowIndex
|
|
2642
2649
|
}, () => [
|
|
2643
|
-
|
|
2650
|
+
A("span", {
|
|
2644
2651
|
title: M(e.column, e.rowData[e.column.field])
|
|
2645
2652
|
}, J(h(e.rowData[e.column.field])), 9, Ws)
|
|
2646
2653
|
], !0)
|
|
@@ -2648,7 +2655,7 @@ const rl = () => {
|
|
|
2648
2655
|
_: 3
|
|
2649
2656
|
}, 8, ["class"]),
|
|
2650
2657
|
((q = e.column.cellActions) == null ? void 0 : q.length) > 0 ? (d(), p("div", Vs, [
|
|
2651
|
-
(b.value || o(oe)) && (
|
|
2658
|
+
(b.value || o(oe)) && (T.value || o(u)(`item-${e.column.field}`)) ? (d(), H(Ll, {
|
|
2652
2659
|
key: 0,
|
|
2653
2660
|
ref_key: "cellActionsRef",
|
|
2654
2661
|
ref: _,
|
|
@@ -2659,7 +2666,7 @@ const rl = () => {
|
|
|
2659
2666
|
"is-highlighted": e.isHighlighted,
|
|
2660
2667
|
"is-selected": e.isSelected,
|
|
2661
2668
|
"teleport-menu": "",
|
|
2662
|
-
onMenuItemClick:
|
|
2669
|
+
onMenuItemClick: O
|
|
2663
2670
|
}, null, 8, ["cell-actions", "column-key", "row-data-item", "has-zebra-background", "is-highlighted", "is-selected"])) : W("", !0)
|
|
2664
2671
|
])) : W("", !0)
|
|
2665
2672
|
], 64))
|
|
@@ -2886,19 +2893,19 @@ const rl = () => {
|
|
|
2886
2893
|
},
|
|
2887
2894
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2888
2895
|
setup(e, { expose: s, emit: i }) {
|
|
2889
|
-
const t = Rt(), u = Lt(t), l = e, n = i, v = E({}), f = E(!1), _ = E(), b = E(),
|
|
2896
|
+
const t = Rt(), u = Lt(t), l = e, n = i, v = E({}), f = E(!1), _ = E(), b = E(), L = ft("nested-content-slot"), I = E(!1), S = E();
|
|
2890
2897
|
et(() => {
|
|
2891
2898
|
b.value && (S.value = je(b.value));
|
|
2892
2899
|
});
|
|
2893
|
-
const c = C(() => l.shouldShowNestedRows(l.rowData)),
|
|
2900
|
+
const c = C(() => l.shouldShowNestedRows(l.rowData)), T = C(
|
|
2894
2901
|
() => {
|
|
2895
|
-
var w,
|
|
2896
|
-
return !l.isNestedRow && l.hasNestedRows && c.value && ((
|
|
2902
|
+
var w, D;
|
|
2903
|
+
return !l.isNestedRow && l.hasNestedRows && c.value && ((D = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : D.length) > 0;
|
|
2897
2904
|
}
|
|
2898
|
-
),
|
|
2905
|
+
), N = C(
|
|
2899
2906
|
() => {
|
|
2900
|
-
var w,
|
|
2901
|
-
return !l.isNestedRow && l.hasNestedRows && c.value && (((w = l.rowData) == null ? void 0 : w.children) === void 0 || ((
|
|
2907
|
+
var w, D;
|
|
2908
|
+
return !l.isNestedRow && l.hasNestedRows && c.value && (((w = l.rowData) == null ? void 0 : w.children) === void 0 || ((D = l == null ? void 0 : l.rowData) == null ? void 0 : D.children.length) === 0);
|
|
2902
2909
|
}
|
|
2903
2910
|
), k = C(
|
|
2904
2911
|
() => l.hasNestedContent && l.shouldShowNestedContent(l.rowData) || l.hasNestedRows && c.value && !l.isNestedRow
|
|
@@ -2914,38 +2921,38 @@ const rl = () => {
|
|
|
2914
2921
|
}
|
|
2915
2922
|
return { "aria-rowindex": l.rowIndex + 1 };
|
|
2916
2923
|
}), M = C(() => {
|
|
2917
|
-
if (
|
|
2924
|
+
if (N.value)
|
|
2918
2925
|
return {
|
|
2919
2926
|
"aria-busy": "true",
|
|
2920
2927
|
"aria-live": "polite"
|
|
2921
2928
|
};
|
|
2922
|
-
if (!(
|
|
2929
|
+
if (!(T.value || !l.hasNestedContent || !l.shouldShowNestedContent(l.rowData)))
|
|
2923
2930
|
return {
|
|
2924
2931
|
"aria-level": l.isNestedRow ? "3" : "2",
|
|
2925
2932
|
"aria-posinset": "1",
|
|
2926
2933
|
"aria-setsize": "1",
|
|
2927
|
-
id:
|
|
2934
|
+
id: L,
|
|
2928
2935
|
role: "row",
|
|
2929
2936
|
tabindex: "-1"
|
|
2930
2937
|
};
|
|
2931
2938
|
}), h = C(() => {
|
|
2932
|
-
var w,
|
|
2933
|
-
return
|
|
2939
|
+
var w, D;
|
|
2940
|
+
return T.value ? (D = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : D.reduce((te, ne, ce) => (te[ce] = ft("nested-row"), te), {}) : [];
|
|
2934
2941
|
}), F = C(() => {
|
|
2935
2942
|
var w;
|
|
2936
2943
|
if (f.value) {
|
|
2937
2944
|
if (l.hasNestedContent && l.shouldShowNestedContent(l.rowData))
|
|
2938
|
-
return [
|
|
2939
|
-
if (
|
|
2940
|
-
const
|
|
2941
|
-
if ((
|
|
2942
|
-
return
|
|
2945
|
+
return [L];
|
|
2946
|
+
if (T.value && ((w = Object.keys(h.value)) == null ? void 0 : w.length) > 0) {
|
|
2947
|
+
const D = Object.values(h.value);
|
|
2948
|
+
if ((D == null ? void 0 : D.length) > 0)
|
|
2949
|
+
return D;
|
|
2943
2950
|
}
|
|
2944
2951
|
return [];
|
|
2945
2952
|
}
|
|
2946
2953
|
}), m = C(() => {
|
|
2947
|
-
var
|
|
2948
|
-
const w = (te = (
|
|
2954
|
+
var D, te;
|
|
2955
|
+
const w = (te = (D = l.rowData) == null ? void 0 : D.children) == null ? void 0 : te.map((ne) => l.getDataItemId(ne));
|
|
2949
2956
|
if ((w == null ? void 0 : w.length) > 0) {
|
|
2950
2957
|
const ne = w.every((Z) => {
|
|
2951
2958
|
var Re;
|
|
@@ -2957,49 +2964,49 @@ const rl = () => {
|
|
|
2957
2964
|
return !ne && ce;
|
|
2958
2965
|
}
|
|
2959
2966
|
return !1;
|
|
2960
|
-
}), a = (w,
|
|
2967
|
+
}), a = (w, D) => {
|
|
2961
2968
|
const te = w;
|
|
2962
|
-
w !== null && (te != null && te.gridcellRef) && (v.value[
|
|
2963
|
-
}, g = (w) => h.value[w],
|
|
2969
|
+
w !== null && (te != null && te.gridcellRef) && (v.value[D] = te.gridcellRef);
|
|
2970
|
+
}, g = (w) => h.value[w], O = (w) => {
|
|
2964
2971
|
if (!l.selectable)
|
|
2965
2972
|
return null;
|
|
2966
|
-
const
|
|
2967
|
-
return l.selectedItems.includes(
|
|
2968
|
-
}, B = (w,
|
|
2969
|
-
n("row-click", w,
|
|
2973
|
+
const D = l.getDataItemId(w);
|
|
2974
|
+
return l.selectedItems.includes(D).toString();
|
|
2975
|
+
}, B = (w, D) => {
|
|
2976
|
+
n("row-click", w, D);
|
|
2970
2977
|
}, x = (w) => {
|
|
2971
2978
|
var ne;
|
|
2972
2979
|
if (!l.allowRowClicks)
|
|
2973
2980
|
return;
|
|
2974
|
-
let
|
|
2981
|
+
let D = !1;
|
|
2975
2982
|
const te = ["button", "input", "a"];
|
|
2976
2983
|
for (let ce = 0; ce < te.length; ce++)
|
|
2977
2984
|
if ((ne = w == null ? void 0 : w.target) != null && ne.closest(te[ce])) {
|
|
2978
|
-
|
|
2985
|
+
D = !0;
|
|
2979
2986
|
break;
|
|
2980
2987
|
}
|
|
2981
|
-
|
|
2988
|
+
D || B(l.rowData, w);
|
|
2982
2989
|
}, j = (w) => {
|
|
2983
2990
|
n("select-row", w, l.rowData);
|
|
2984
|
-
}, le = (w,
|
|
2985
|
-
n("select-nested-row",
|
|
2991
|
+
}, le = (w, D) => {
|
|
2992
|
+
n("select-nested-row", D, l.rowData, w);
|
|
2986
2993
|
}, be = () => {
|
|
2987
|
-
|
|
2994
|
+
I.value = !0;
|
|
2988
2995
|
}, ge = () => {
|
|
2989
|
-
|
|
2996
|
+
I.value = !1;
|
|
2990
2997
|
}, ue = () => {
|
|
2991
2998
|
var w;
|
|
2992
2999
|
Sl([(w = S.value) == null ? void 0 : w[0]]), Ot(b.value);
|
|
2993
3000
|
}, oe = () => {
|
|
2994
3001
|
je(b.value);
|
|
2995
3002
|
}, X = (w) => {
|
|
2996
|
-
var
|
|
2997
|
-
w.key !== Oe.TAB && je(b.value), w.key === Oe.ARROW_RIGHT && ((
|
|
2998
|
-
}, we = () => l.columnSets.reduce((w, { columnSet:
|
|
3003
|
+
var D, te;
|
|
3004
|
+
w.key !== Oe.TAB && je(b.value), w.key === Oe.ARROW_RIGHT && ((D = S.value) == null ? void 0 : D.length) > 1 && S.value[0].node === document.activeElement ? (je(b.value), S.value[1].node.setAttribute("tabindex", "0"), S.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === Oe.ARROW_LEFT && ((te = S.value) == null ? void 0 : te.length) > 1 && S.value[1].node === document.activeElement && (je(b.value), S.value[0].node.setAttribute("tabindex", "0"), S.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
|
|
3005
|
+
}, we = () => l.columnSets.reduce((w, { columnSet: D }) => w + D.length, 0), R = () => we() * l.rowIndex + we(), { updateContentHeight: ee, contentHeight: q } = Xn(_, f), Q = C(() => {
|
|
2999
3006
|
var w;
|
|
3000
3007
|
if (l.hasNestedContent || l.hasNestedRows)
|
|
3001
3008
|
return {
|
|
3002
|
-
paddingLeft: `${
|
|
3009
|
+
paddingLeft: `${T.value || N.value ? 0 : v.value[Ee].offsetWidth + wl}px`,
|
|
3003
3010
|
"max-height": (l.hasNestedContent || l.hasNestedRows) && q.value && !((w = q == null ? void 0 : q.value) != null && w.includes("null")) ? q.value : 0
|
|
3004
3011
|
};
|
|
3005
3012
|
});
|
|
@@ -3020,41 +3027,41 @@ const rl = () => {
|
|
|
3020
3027
|
var w;
|
|
3021
3028
|
return (w = l.rowData) == null ? void 0 : w.children;
|
|
3022
3029
|
},
|
|
3023
|
-
(w,
|
|
3030
|
+
(w, D) => {
|
|
3024
3031
|
var te, ne;
|
|
3025
|
-
((ne = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : ne.length) > 0 &&
|
|
3032
|
+
((ne = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : ne.length) > 0 && D === void 0 && !f.value && ee();
|
|
3026
3033
|
}
|
|
3027
3034
|
);
|
|
3028
3035
|
const Ie = Pe(
|
|
3029
3036
|
ot,
|
|
3030
3037
|
C(() => !1)
|
|
3031
|
-
), Be = (w) => l.highlightedRows.includes(l.getDataItemId(w)), r = (w) => l.selectedItems.includes(l.getDataItemId(w)), V = (w,
|
|
3038
|
+
), Be = (w) => l.highlightedRows.includes(l.getDataItemId(w)), r = (w) => l.selectedItems.includes(l.getDataItemId(w)), V = (w, D) => ({
|
|
3032
3039
|
"b-data-grid-row-container__row--disabled": l.isDataItemDisabled(w),
|
|
3033
3040
|
"b-data-grid-row-container__row--row-clicks-enabled": l.allowRowClicks,
|
|
3034
3041
|
"b-data-grid-row-container__row--highlighted": Be(w),
|
|
3035
3042
|
"b-data-grid-row-container__row--selected": r(w),
|
|
3036
|
-
"b-data-grid-row-container__row--hovered": l.hoveredRowIndex ===
|
|
3043
|
+
"b-data-grid-row-container__row--hovered": l.hoveredRowIndex === D,
|
|
3037
3044
|
"b-data-grid-row-container__row--is-last-child": l.isRowLastChild && !f.value,
|
|
3038
3045
|
"b-data-grid-row-container__row--nested-row": l.isNestedRow,
|
|
3039
3046
|
"b-data-grid-row-container__row--zebra": l.isRowEven
|
|
3040
|
-
}), U = (w,
|
|
3041
|
-
"b-data-grid-row-container__row-cell-set--frozen": w && !
|
|
3042
|
-
[`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: !
|
|
3043
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !
|
|
3044
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !w ||
|
|
3047
|
+
}), U = (w, D) => ({
|
|
3048
|
+
"b-data-grid-row-container__row-cell-set--frozen": w && !D,
|
|
3049
|
+
[`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: !D && w && l.hasLeftOverflow,
|
|
3050
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !D && w && l.showFrozenColumnsSeparator,
|
|
3051
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !w || D,
|
|
3045
3052
|
"b-data-grid-row-container__row-cell-set--is-measuring": l.isMeasuringColumnWidths
|
|
3046
3053
|
}), ve = C(() => ({
|
|
3047
3054
|
"b-data-grid-row-container__row-nested-slot--is-last-child": l.isRowLastChild,
|
|
3048
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
3055
|
+
"b-data-grid-row-container__row-nested-slot": !T.value && l.shouldShowNestedContent(l.rowData)
|
|
3049
3056
|
})), me = C(() => ({
|
|
3050
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open":
|
|
3057
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": I.value
|
|
3051
3058
|
})), Ge = C(() => ({
|
|
3052
3059
|
minWidth: `${l.rowActionsMaximumWidth}px`
|
|
3053
3060
|
}));
|
|
3054
3061
|
return s({
|
|
3055
3062
|
gridcellRefs: v,
|
|
3056
3063
|
rowActionsRef: b
|
|
3057
|
-
}), (w,
|
|
3064
|
+
}), (w, D) => {
|
|
3058
3065
|
var te;
|
|
3059
3066
|
return d(), p("div", Zs, [
|
|
3060
3067
|
(d(), p("div", se(y.value, {
|
|
@@ -3062,7 +3069,7 @@ const rl = () => {
|
|
|
3062
3069
|
key: e.rowIndex,
|
|
3063
3070
|
class: ["b-data-grid-row-container__row", V(e.rowData, e.rowIndex)],
|
|
3064
3071
|
role: "row",
|
|
3065
|
-
"aria-selected":
|
|
3072
|
+
"aria-selected": O(e.rowData),
|
|
3066
3073
|
onClick: x,
|
|
3067
3074
|
onKeyup: [
|
|
3068
3075
|
zt(x, ["enter"]),
|
|
@@ -3078,7 +3085,7 @@ const rl = () => {
|
|
|
3078
3085
|
(d(!0), p(_e, null, Ae(ne, (xe, ht) => (d(), H(xs, {
|
|
3079
3086
|
key: `cell-${xe.field}`,
|
|
3080
3087
|
ref_for: !0,
|
|
3081
|
-
ref: (
|
|
3088
|
+
ref: (De) => a(De, xe.field),
|
|
3082
3089
|
class: "b-data-grid-row-container__cell",
|
|
3083
3090
|
column: xe,
|
|
3084
3091
|
"column-set-index": Re,
|
|
@@ -3102,13 +3109,13 @@ const rl = () => {
|
|
|
3102
3109
|
"selection-is-indeterminate": m.value,
|
|
3103
3110
|
selectable: e.selectable,
|
|
3104
3111
|
"selected-items": e.selectedItems,
|
|
3105
|
-
onCellHovered:
|
|
3106
|
-
onCellFocus:
|
|
3107
|
-
onOnFrozenColumnsKeyPress:
|
|
3112
|
+
onCellHovered: D[0] || (D[0] = (De) => n("cell-hovered", De)),
|
|
3113
|
+
onCellFocus: D[1] || (D[1] = (De) => n("cell-focus", De)),
|
|
3114
|
+
onOnFrozenColumnsKeyPress: D[2] || (D[2] = (De) => n("on-frozen-columns-key-press", De)),
|
|
3108
3115
|
onSelectRow: j,
|
|
3109
3116
|
onNestedContentToggled: Ve
|
|
3110
3117
|
}, Qe({ _: 2 }, [
|
|
3111
|
-
Ae(o(t), (
|
|
3118
|
+
Ae(o(t), (De, tt) => ({
|
|
3112
3119
|
name: tt,
|
|
3113
3120
|
fn: G((Ke) => [
|
|
3114
3121
|
ze(w.$slots, tt, se({ ref_for: !0 }, Ke), void 0, !0)
|
|
@@ -3149,18 +3156,18 @@ const rl = () => {
|
|
|
3149
3156
|
name: "b-data-grid-row-container__animation--nested-content"
|
|
3150
3157
|
}, {
|
|
3151
3158
|
default: G(() => [
|
|
3152
|
-
f.value &&
|
|
3159
|
+
f.value && T.value ? (d(), p("div", {
|
|
3153
3160
|
key: 0,
|
|
3154
3161
|
class: de(ve.value),
|
|
3155
3162
|
"data-testid": "nested-content-container",
|
|
3156
3163
|
style: Fe(Q.value),
|
|
3157
3164
|
role: "presentation"
|
|
3158
3165
|
}, [
|
|
3159
|
-
|
|
3166
|
+
A("div", {
|
|
3160
3167
|
ref_key: "nestedContentRef",
|
|
3161
3168
|
ref: _
|
|
3162
3169
|
}, [
|
|
3163
|
-
|
|
3170
|
+
N.value ? (d(), p("div", Ys, [
|
|
3164
3171
|
Y(o(ct))
|
|
3165
3172
|
])) : W("", !0),
|
|
3166
3173
|
(d(!0), p(_e, null, Ae(e.rowData.children, (ne, ce) => (d(), H(Tl, se({ ref_for: !0 }, l, {
|
|
@@ -3170,10 +3177,10 @@ const rl = () => {
|
|
|
3170
3177
|
"row-index": ce,
|
|
3171
3178
|
"row-set-size": e.rowData.children.length,
|
|
3172
3179
|
"is-nested-row": "",
|
|
3173
|
-
onCellHovered:
|
|
3174
|
-
onCellFocus:
|
|
3180
|
+
onCellHovered: D[3] || (D[3] = (Z) => n("cell-hovered", Z)),
|
|
3181
|
+
onCellFocus: D[4] || (D[4] = (Z) => n("cell-focus", Z)),
|
|
3175
3182
|
onRowClick: B,
|
|
3176
|
-
onOnFrozenColumnsKeyPress:
|
|
3183
|
+
onOnFrozenColumnsKeyPress: D[5] || (D[5] = (Z) => n("on-frozen-columns-key-press", Z)),
|
|
3177
3184
|
onSelectRow: (Z) => le(ne, Z)
|
|
3178
3185
|
}), Qe({ _: 2 }, [
|
|
3179
3186
|
Ae(o(t), (Z, Re) => ({
|
|
@@ -3191,12 +3198,12 @@ const rl = () => {
|
|
|
3191
3198
|
role: "row",
|
|
3192
3199
|
tabindex: "-1"
|
|
3193
3200
|
}), [
|
|
3194
|
-
|
|
3201
|
+
A("div", {
|
|
3195
3202
|
ref_key: "nestedContentRef",
|
|
3196
3203
|
ref: _,
|
|
3197
3204
|
role: "gridcell"
|
|
3198
3205
|
}, [
|
|
3199
|
-
|
|
3206
|
+
N.value ? (d(), p("div", Js, [
|
|
3200
3207
|
Y(o(ct))
|
|
3201
3208
|
])) : o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (d(), p("div", Xs, [
|
|
3202
3209
|
ze(w.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
@@ -3225,19 +3232,19 @@ function sa(e, s, i, t, u, l) {
|
|
|
3225
3232
|
fill: "none"
|
|
3226
3233
|
}), [
|
|
3227
3234
|
e.$attrs["svg-title"] ? (d(), p("title", la, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3228
|
-
|
|
3235
|
+
A("g", {
|
|
3229
3236
|
"clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
3230
3237
|
}, s[0] || (s[0] = [
|
|
3231
|
-
|
|
3238
|
+
A("path", {
|
|
3232
3239
|
fill: "#001222",
|
|
3233
3240
|
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"
|
|
3234
3241
|
}, null, -1)
|
|
3235
3242
|
]), 8, na),
|
|
3236
|
-
|
|
3237
|
-
|
|
3243
|
+
A("defs", null, [
|
|
3244
|
+
A("clipPath", {
|
|
3238
3245
|
id: "uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid
|
|
3239
3246
|
}, s[1] || (s[1] = [
|
|
3240
|
-
|
|
3247
|
+
A("rect", {
|
|
3241
3248
|
width: "16",
|
|
3242
3249
|
height: "16",
|
|
3243
3250
|
fill: "#fff"
|
|
@@ -3343,11 +3350,11 @@ const aa = /* @__PURE__ */ re(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3343
3350
|
"popover-content": G(() => [
|
|
3344
3351
|
Y(o(qe), { class: "b-data-grid-summary-cell__popover-content" }, {
|
|
3345
3352
|
default: G(() => [
|
|
3346
|
-
|
|
3347
|
-
(d(!0), p(_e, null, Ae(_.items, (
|
|
3348
|
-
(d(), H(Xe(n(
|
|
3353
|
+
A("ul", ca, [
|
|
3354
|
+
(d(!0), p(_e, null, Ae(_.items, (L) => (d(), p("li", { key: L }, [
|
|
3355
|
+
(d(), H(Xe(n(L)), null, {
|
|
3349
3356
|
default: G(() => [
|
|
3350
|
-
fe(J(
|
|
3357
|
+
fe(J(L), 1)
|
|
3351
3358
|
]),
|
|
3352
3359
|
_: 2
|
|
3353
3360
|
}, 1024))
|
|
@@ -3375,7 +3382,7 @@ const aa = /* @__PURE__ */ re(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3375
3382
|
}, null, 8, ["content", "position", "is-shown", "target-element"])) : W("", !0)
|
|
3376
3383
|
]));
|
|
3377
3384
|
}
|
|
3378
|
-
}),
|
|
3385
|
+
}), Di = /* @__PURE__ */ re(ga, [["__scopeId", "data-v-5ea6289c"]]), va = { class: "b-data-grid-tag-with-text-cell" }, ma = {}, ha = /* @__PURE__ */ Ne({
|
|
3379
3386
|
...ma,
|
|
3380
3387
|
__name: "data-grid-tag-with-text-cell",
|
|
3381
3388
|
props: {
|
|
@@ -3394,7 +3401,7 @@ const aa = /* @__PURE__ */ re(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3394
3401
|
})
|
|
3395
3402
|
]));
|
|
3396
3403
|
}
|
|
3397
|
-
}),
|
|
3404
|
+
}), $i = /* @__PURE__ */ re(ha, [["__scopeId", "data-v-b8837a72"]]);
|
|
3398
3405
|
let ul = 0;
|
|
3399
3406
|
const Ca = {
|
|
3400
3407
|
beforeCreate() {
|
|
@@ -3410,7 +3417,7 @@ function ba(e, s, i, t, u, l) {
|
|
|
3410
3417
|
fill: "none"
|
|
3411
3418
|
}), [
|
|
3412
3419
|
e.$attrs["svg-title"] ? (d(), p("title", _a, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3413
|
-
s[0] || (s[0] =
|
|
3420
|
+
s[0] || (s[0] = A("path", {
|
|
3414
3421
|
fill: "#001222",
|
|
3415
3422
|
d: "M12.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z"
|
|
3416
3423
|
}, null, -1))
|
|
@@ -3432,7 +3439,7 @@ function Ea(e, s, i, t, u, l) {
|
|
|
3432
3439
|
fill: "none"
|
|
3433
3440
|
}), [
|
|
3434
3441
|
e.$attrs["svg-title"] ? (d(), p("title", pa, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3435
|
-
s[0] || (s[0] =
|
|
3442
|
+
s[0] || (s[0] = A("path", {
|
|
3436
3443
|
fill: "#001222",
|
|
3437
3444
|
d: "M8.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z"
|
|
3438
3445
|
}, null, -1))
|
|
@@ -3513,10 +3520,10 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3513
3520
|
}, Na = ["id", "role", "aria-rowcount", "aria-colcount", "aria-label"], Ia = {
|
|
3514
3521
|
key: 0,
|
|
3515
3522
|
role: "row"
|
|
3516
|
-
},
|
|
3523
|
+
}, Da = {
|
|
3517
3524
|
key: 0,
|
|
3518
3525
|
class: "b-data-grid__loading"
|
|
3519
|
-
},
|
|
3526
|
+
}, $a = {
|
|
3520
3527
|
key: 0,
|
|
3521
3528
|
role: "row",
|
|
3522
3529
|
tabindex: "-1"
|
|
@@ -3864,8 +3871,8 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3864
3871
|
z.CELL_FOCUS
|
|
3865
3872
|
],
|
|
3866
3873
|
setup(e, { expose: s, emit: i }) {
|
|
3867
|
-
const t = e, u = Rt(), l = Lt(u), n = E(null), v = E(), f = E({}), _ = E(ft("data-grid")), b = E(null),
|
|
3868
|
-
allowColumnDragAndDrop:
|
|
3874
|
+
const t = e, u = Rt(), l = Lt(u), n = E(null), v = E(), f = E({}), _ = E(ft("data-grid")), b = E(null), L = E(null), I = E(null), S = E(null), c = E(null), T = E(null), {
|
|
3875
|
+
allowColumnDragAndDrop: N,
|
|
3869
3876
|
columns: k,
|
|
3870
3877
|
columnPanel: y,
|
|
3871
3878
|
data: M,
|
|
@@ -3874,7 +3881,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3874
3881
|
hasNestedContent: m,
|
|
3875
3882
|
hasNestedRows: a,
|
|
3876
3883
|
selectable: g,
|
|
3877
|
-
selection:
|
|
3884
|
+
selection: O,
|
|
3878
3885
|
selectableAcrossPages: B,
|
|
3879
3886
|
stickyPagination: x,
|
|
3880
3887
|
outline: j,
|
|
@@ -3901,7 +3908,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3901
3908
|
gridRowWidthStyle: me,
|
|
3902
3909
|
isMeasuringColumnWidths: Ge,
|
|
3903
3910
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: w,
|
|
3904
|
-
columns:
|
|
3911
|
+
columns: D,
|
|
3905
3912
|
totalWidthOfAllColumns: te,
|
|
3906
3913
|
rowActionsMaxWidth: ne
|
|
3907
3914
|
} = co(k, M, n, f, b, {
|
|
@@ -3910,10 +3917,10 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3910
3917
|
hasSelectableAcrossPages: B,
|
|
3911
3918
|
hasNestedContent: m,
|
|
3912
3919
|
hasNestedRows: a,
|
|
3913
|
-
allowColumnDragAndDrop:
|
|
3920
|
+
allowColumnDragAndDrop: N,
|
|
3914
3921
|
isDataGridTemplate: Ie
|
|
3915
3922
|
}), ce = i, Z = ($, ...P) => {
|
|
3916
|
-
($ === z.COLUMNS || $ === z.UPDATE_COLUMNS) && ([
|
|
3923
|
+
($ === z.COLUMNS || $ === z.UPDATE_COLUMNS) && ([D.value] = P), ce($, ...P);
|
|
3917
3924
|
}, Re = qt(
|
|
3918
3925
|
r,
|
|
3919
3926
|
Be,
|
|
@@ -3921,15 +3928,15 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3921
3928
|
Ve
|
|
3922
3929
|
), xe = C(
|
|
3923
3930
|
() => t.stickyFilters ? `${Re.value}px` : null
|
|
3924
|
-
), ht = qt(
|
|
3931
|
+
), ht = qt(L, bt(t, "stickyFilters")), De = C(
|
|
3925
3932
|
() => `${ht.value + Re.value}px`
|
|
3926
3933
|
), {
|
|
3927
3934
|
sortedColumns: tt,
|
|
3928
3935
|
columnSets: Ke,
|
|
3929
3936
|
isOnlyOneVisibleColumn: Il,
|
|
3930
3937
|
internalZebraRows: Ct,
|
|
3931
|
-
onConfigSettingsColumnsUpdate:
|
|
3932
|
-
onConfigSettingsColumnUpdate:
|
|
3938
|
+
onConfigSettingsColumnsUpdate: Dl,
|
|
3939
|
+
onConfigSettingsColumnUpdate: $l,
|
|
3933
3940
|
onConfigSettingsCondensedUpdate: kl,
|
|
3934
3941
|
onConfigSettingsZebraRowsUpdate: Ul
|
|
3935
3942
|
} = _o(U, be, Z), { hoveredOverColumn: Ml, hoveredOverColumnState: Nt } = wo(
|
|
@@ -3937,7 +3944,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3937
3944
|
g,
|
|
3938
3945
|
j,
|
|
3939
3946
|
w
|
|
3940
|
-
), { draggingColumns: It, draggingEventsForColumns: Fl, draggingEventsForRowCell: zl, onMoveColumnByOffset: Pl } = Co(tt,
|
|
3947
|
+
), { draggingColumns: It, draggingEventsForColumns: Fl, draggingEventsForRowCell: zl, onMoveColumnByOffset: Pl } = Co(tt, N, Z), Dt = C(
|
|
3941
3948
|
() => {
|
|
3942
3949
|
var $;
|
|
3943
3950
|
return (($ = t.data) == null ? void 0 : $.length) > 0 && !!t.selectableAcrossPages && !!t.pagination && t.pagination.totalCount > 0;
|
|
@@ -3946,22 +3953,22 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3946
3953
|
onAllRowSelect: Bl,
|
|
3947
3954
|
onRowSelect: Wl,
|
|
3948
3955
|
onNestedRowSelect: Vl,
|
|
3949
|
-
onDeselectAll:
|
|
3956
|
+
onDeselectAll: $t,
|
|
3950
3957
|
allItemsSelectedState: Hl,
|
|
3951
3958
|
selectedItems: _t,
|
|
3952
3959
|
selectionState: Gl
|
|
3953
3960
|
} = fo(
|
|
3954
|
-
|
|
3961
|
+
O,
|
|
3955
3962
|
Z,
|
|
3956
3963
|
M,
|
|
3957
3964
|
t.getDataItemId,
|
|
3958
3965
|
t.isDataItemDisabled,
|
|
3959
|
-
|
|
3966
|
+
Dt,
|
|
3960
3967
|
le
|
|
3961
3968
|
), xl = C(() => {
|
|
3962
3969
|
var $, P, ie, K;
|
|
3963
3970
|
return {
|
|
3964
|
-
filtered: (($ =
|
|
3971
|
+
filtered: (($ = I.value) == null ? void 0 : $.isClearAllVisible) || ((P = I.value) == null ? void 0 : P.isResetAllVisible) || !!t.filterSearchTerm,
|
|
3965
3972
|
allRowsVisible: ((ie = le.value) == null ? void 0 : ie.size) >= ((K = le.value) == null ? void 0 : K.totalCount)
|
|
3966
3973
|
};
|
|
3967
3974
|
}), { navigationInput: st } = vo(
|
|
@@ -3988,7 +3995,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3988
3995
|
n,
|
|
3989
3996
|
v,
|
|
3990
3997
|
jl,
|
|
3991
|
-
|
|
3998
|
+
T,
|
|
3992
3999
|
S,
|
|
3993
4000
|
te,
|
|
3994
4001
|
{
|
|
@@ -3998,7 +4005,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
3998
4005
|
isDataGridTemplate: Ie
|
|
3999
4006
|
}
|
|
4000
4007
|
), Jl = () => {
|
|
4001
|
-
|
|
4008
|
+
I.value.isClearAllVisible ? I.value.clearAllFilters() : I.value.isResetAllVisible && I.value.resetAllFilters();
|
|
4002
4009
|
}, Xl = C(() => {
|
|
4003
4010
|
var $, P;
|
|
4004
4011
|
return {
|
|
@@ -4035,11 +4042,11 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4035
4042
|
var K, Le, ke, Ze;
|
|
4036
4043
|
const ie = $;
|
|
4037
4044
|
if ($ !== null && ie != null && ie.gridcellRefs) {
|
|
4038
|
-
const
|
|
4045
|
+
const $e = t.rowActions !== void 0 && (ie == null ? void 0 : ie.rowActionsRef);
|
|
4039
4046
|
Object.entries(ie == null ? void 0 : ie.gridcellRefs).map(([Se, Je]) => {
|
|
4040
4047
|
var rt;
|
|
4041
4048
|
((rt = b.value) == null ? void 0 : rt[Se]) === void 0 && (b.value = { ...b.value, [Se]: [] }), b.value[Se][P] = Je;
|
|
4042
|
-
}),
|
|
4049
|
+
}), $e && (((K = b.value) == null ? void 0 : K[lt]) === void 0 && (b.value = { ...b.value, [lt]: [] }), b.value[lt][P] = (Le = ie.rowActionsRef) == null ? void 0 : Le[0], ne.value = Math.max(
|
|
4043
4050
|
ne.value,
|
|
4044
4051
|
((Ze = (ke = ie.rowActionsRef) == null ? void 0 : ke[0]) == null ? void 0 : Ze.offsetWidth) ?? 0
|
|
4045
4052
|
));
|
|
@@ -4083,17 +4090,17 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4083
4090
|
e.filters ? (d(), p("div", {
|
|
4084
4091
|
key: 0,
|
|
4085
4092
|
ref_key: "filtersRef",
|
|
4086
|
-
ref:
|
|
4093
|
+
ref: L,
|
|
4087
4094
|
class: de(["b-data-grid__filters", ln.value]),
|
|
4088
4095
|
style: Fe({ top: xe.value }),
|
|
4089
4096
|
"aria-controls": _.value,
|
|
4090
4097
|
"aria-label": o(ue)("filterBar"),
|
|
4091
4098
|
role: "region"
|
|
4092
4099
|
}, [
|
|
4093
|
-
e.filters ? (d(), H(
|
|
4100
|
+
e.filters ? (d(), H($n, {
|
|
4094
4101
|
key: 0,
|
|
4095
4102
|
ref_key: "filterBarRef",
|
|
4096
|
-
ref:
|
|
4103
|
+
ref: I,
|
|
4097
4104
|
config: e.filters,
|
|
4098
4105
|
"container-size-layout": e.filtersContainerSizeLayout,
|
|
4099
4106
|
"filter-values": e.filterValues,
|
|
@@ -4110,20 +4117,20 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4110
4117
|
$.$slots.header ? (d(), p("div", Oa, [
|
|
4111
4118
|
ze($.$slots, "header", {}, void 0, !0)
|
|
4112
4119
|
])) : W("", !0),
|
|
4113
|
-
|
|
4120
|
+
A("div", {
|
|
4114
4121
|
id: _.value,
|
|
4115
4122
|
role: dn.value,
|
|
4116
4123
|
"aria-rowcount": o(M).length,
|
|
4117
4124
|
"aria-colcount": o(k).length,
|
|
4118
4125
|
"aria-label": e.emptyState ? o(ue)("noResults") : null,
|
|
4119
4126
|
class: "b-data-grid__wrapper",
|
|
4120
|
-
style: Fe({ top:
|
|
4127
|
+
style: Fe({ top: De.value })
|
|
4121
4128
|
}, [
|
|
4122
|
-
|
|
4129
|
+
A("div", {
|
|
4123
4130
|
class: "b-data-grid__column-headers",
|
|
4124
|
-
style: Fe({ top:
|
|
4131
|
+
style: Fe({ top: De.value })
|
|
4125
4132
|
}, [
|
|
4126
|
-
|
|
4133
|
+
A("div", {
|
|
4127
4134
|
ref_key: "columnsRef",
|
|
4128
4135
|
ref: v,
|
|
4129
4136
|
role: "rowgroup",
|
|
@@ -4137,21 +4144,21 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4137
4144
|
Y(o(Os), {
|
|
4138
4145
|
class: "b-data-grid__config-settings",
|
|
4139
4146
|
role: "gridcell",
|
|
4140
|
-
columns: o(
|
|
4147
|
+
columns: o(D),
|
|
4141
4148
|
condensed: e.condensed,
|
|
4142
4149
|
"zebra-rows": o(Ct),
|
|
4143
4150
|
"onUpdate:condensed": o(kl),
|
|
4144
4151
|
"onUpdate:zebraRows": o(Ul),
|
|
4145
|
-
"onUpdate:columns": o(
|
|
4152
|
+
"onUpdate:columns": o(Dl)
|
|
4146
4153
|
}, null, 8, ["columns", "condensed", "zebra-rows", "onUpdate:condensed", "onUpdate:zebraRows", "onUpdate:columns"])
|
|
4147
4154
|
])) : W("", !0),
|
|
4148
|
-
|
|
4155
|
+
A("div", {
|
|
4149
4156
|
style: Fe(o(me)),
|
|
4150
4157
|
class: "b-data-grid__columns",
|
|
4151
4158
|
role: "row"
|
|
4152
4159
|
}, [
|
|
4153
4160
|
(d(!0), p(_e, null, Ae(o(Ke), ({ columnSet: K, id: Le, isFrozenColumns: ke }, Ze) => {
|
|
4154
|
-
var
|
|
4161
|
+
var $e;
|
|
4155
4162
|
return d(), p(_e, null, [
|
|
4156
4163
|
K != null && K.length ? (d(), H(o(ss), se({
|
|
4157
4164
|
key: `data-grid-columns-${Le}`,
|
|
@@ -4164,15 +4171,15 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4164
4171
|
"is-frozen-columns": ke,
|
|
4165
4172
|
"show-frozen-columns-separator": Mt.value,
|
|
4166
4173
|
"dragging-columns": o(It),
|
|
4167
|
-
"has-draggable-columns": o(
|
|
4174
|
+
"has-draggable-columns": o(N),
|
|
4168
4175
|
"has-column-panel": o(y),
|
|
4169
4176
|
"has-left-overflow": o(it),
|
|
4170
4177
|
"has-first-column-panel-right-aligned": Ze === tn.value,
|
|
4171
4178
|
"hovered-over-column-state": o(Nt),
|
|
4172
4179
|
"is-measuring-column-widths": o(Ge),
|
|
4173
4180
|
"is-only-one-visible-column": o(Il),
|
|
4174
|
-
selectable: ((
|
|
4175
|
-
"selectable-across-pages":
|
|
4181
|
+
selectable: (($e = o(M)) == null ? void 0 : $e.length) > 0 && o(g),
|
|
4182
|
+
"selectable-across-pages": Dt.value,
|
|
4176
4183
|
"selected-items": o(_t),
|
|
4177
4184
|
"visible-rows-state": xl.value,
|
|
4178
4185
|
"selection-state": o(Gl),
|
|
@@ -4181,14 +4188,14 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4181
4188
|
}, gt(o(Fl)), {
|
|
4182
4189
|
onColumnHover: P[3] || (P[3] = (Se) => Ml.value = Se),
|
|
4183
4190
|
onColumnMove: o(Pl),
|
|
4184
|
-
onColumnUpdate: o(
|
|
4191
|
+
onColumnUpdate: o($l),
|
|
4185
4192
|
onColumnResize: cn,
|
|
4186
4193
|
onColumnResizing: o(ve),
|
|
4187
4194
|
onSelectAllRows: o(Bl),
|
|
4188
4195
|
onSelectAllAcrossPages: P[4] || (P[4] = (Se) => Z(o(z).SELECT_ALL_ACROSS_PAGES)),
|
|
4189
4196
|
onSelectAllCurrentResults: P[5] || (P[5] = (Se) => Z(o(z).SELECT_ALL_CURRENT_RESULTS)),
|
|
4190
4197
|
onDeselectAllCurrentResults: P[6] || (P[6] = (Se) => Z(o(z).DESELECT_ALL_CURRENT_RESULTS)),
|
|
4191
|
-
onDeselectAll: o(
|
|
4198
|
+
onDeselectAll: o($t),
|
|
4192
4199
|
onSort: fn
|
|
4193
4200
|
}), Qe({ _: 2 }, [
|
|
4194
4201
|
Ae(o(u), (Se, Je) => ({
|
|
@@ -4203,7 +4210,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4203
4210
|
], 4)
|
|
4204
4211
|
], 544)
|
|
4205
4212
|
], 4),
|
|
4206
|
-
|
|
4213
|
+
A("div", {
|
|
4207
4214
|
ref_key: "body",
|
|
4208
4215
|
ref: n,
|
|
4209
4216
|
"data-testid": "data-grid-body",
|
|
@@ -4211,7 +4218,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4211
4218
|
onScroll: P[12] || (P[12] = //@ts-ignore
|
|
4212
4219
|
(...K) => o(at) && o(at)(...K))
|
|
4213
4220
|
}, [
|
|
4214
|
-
o(F) && !o(Ye) ? (d(), p("div",
|
|
4221
|
+
o(F) && !o(Ye) ? (d(), p("div", Da, [
|
|
4215
4222
|
Y(o(ct), {
|
|
4216
4223
|
class: "b-data-grid__loading-indicator",
|
|
4217
4224
|
large: ""
|
|
@@ -4231,8 +4238,8 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4231
4238
|
onKeydown: P[11] || (P[11] = //@ts-ignore
|
|
4232
4239
|
(...K) => o(st) && o(st)(...K))
|
|
4233
4240
|
}, [
|
|
4234
|
-
((ie = o(M)) == null ? void 0 : ie.length) === 0 && e.emptyState ? (d(), p("div",
|
|
4235
|
-
|
|
4241
|
+
((ie = o(M)) == null ? void 0 : ie.length) === 0 && e.emptyState ? (d(), p("div", $a, [
|
|
4242
|
+
A("div", {
|
|
4236
4243
|
role: "gridcell",
|
|
4237
4244
|
"aria-colspan": o(k).length,
|
|
4238
4245
|
tabindex: "-1"
|
|
@@ -4244,7 +4251,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4244
4251
|
return d(), H(o(Tl), {
|
|
4245
4252
|
key: Le,
|
|
4246
4253
|
ref_for: !0,
|
|
4247
|
-
ref: (
|
|
4254
|
+
ref: ($e) => sn($e, Le),
|
|
4248
4255
|
style: Fe(o(me)),
|
|
4249
4256
|
"allow-row-clicks": e.allowRowClicks,
|
|
4250
4257
|
"column-sets": o(Ke),
|
|
@@ -4274,14 +4281,14 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4274
4281
|
selectable: o(g),
|
|
4275
4282
|
"selected-items": o(_t),
|
|
4276
4283
|
onCellHovered: rn,
|
|
4277
|
-
onCellFocus: P[9] || (P[9] = (
|
|
4278
|
-
onNestedContentToggled: P[10] || (P[10] = (
|
|
4284
|
+
onCellFocus: P[9] || (P[9] = ($e) => Z(o(z).CELL_FOCUS, $e)),
|
|
4285
|
+
onNestedContentToggled: P[10] || (P[10] = ($e) => Z(o(z).NESTED_CONTENT_TOGGLED, $e)),
|
|
4279
4286
|
onRowClick: an,
|
|
4280
4287
|
onOnFrozenColumnsKeyPress: o(Kl),
|
|
4281
4288
|
onSelectRow: o(Wl),
|
|
4282
4289
|
onSelectNestedRow: o(Vl)
|
|
4283
4290
|
}, Qe({ _: 2 }, [
|
|
4284
|
-
Ae(o(u), (
|
|
4291
|
+
Ae(o(u), ($e, Se) => ({
|
|
4285
4292
|
name: Se,
|
|
4286
4293
|
fn: G((Je) => [
|
|
4287
4294
|
ze($.$slots, Se, se({ ref_for: !0 }, Je), void 0, !0)
|
|
@@ -4292,7 +4299,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4292
4299
|
], 32))
|
|
4293
4300
|
], 34)
|
|
4294
4301
|
], 12, Na),
|
|
4295
|
-
o(Ye) ? (d(), H(o(
|
|
4302
|
+
o(Ye) ? (d(), H(o($s), {
|
|
4296
4303
|
key: 2,
|
|
4297
4304
|
loading: o(F),
|
|
4298
4305
|
"is-infinite-scroll": o(Zl),
|
|
@@ -4301,7 +4308,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4301
4308
|
e.stickyHorizontalScrollbar ? (d(), p("div", {
|
|
4302
4309
|
key: 3,
|
|
4303
4310
|
ref_key: "virtualHorizontalScrollbarRef",
|
|
4304
|
-
ref:
|
|
4311
|
+
ref: T,
|
|
4305
4312
|
class: "b-data-grid__horizontal-scrollbar",
|
|
4306
4313
|
"aria-hidden": "true",
|
|
4307
4314
|
"data-testid": "sticky-horizontal-scrollbar",
|
|
@@ -4309,7 +4316,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4309
4316
|
onScroll: P[13] || (P[13] = //@ts-ignore
|
|
4310
4317
|
(...K) => o(kt) && o(kt)(...K))
|
|
4311
4318
|
}, [
|
|
4312
|
-
|
|
4319
|
+
A("div", {
|
|
4313
4320
|
style: Fe({ width: `${o(te)}px`, height: "15px" })
|
|
4314
4321
|
}, null, 4)
|
|
4315
4322
|
], 36)) : W("", !0),
|
|
@@ -4320,7 +4327,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4320
4327
|
"data-testid": "pagination-container",
|
|
4321
4328
|
class: de(["b-data-grid__pagination", nn.value])
|
|
4322
4329
|
}, [
|
|
4323
|
-
Y(o(
|
|
4330
|
+
Y(o(Dn), se(o(le), {
|
|
4324
4331
|
"aria-label": $.$t("pagination"),
|
|
4325
4332
|
"aria-controls": _.value,
|
|
4326
4333
|
onNavigate: gn,
|
|
@@ -4340,7 +4347,7 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4340
4347
|
actions: e.bulkActions,
|
|
4341
4348
|
"item-counter": Ft.value,
|
|
4342
4349
|
"extra-bottom-spacing": o(x),
|
|
4343
|
-
onClose: o(
|
|
4350
|
+
onClose: o($t)
|
|
4344
4351
|
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing", "onClose"])) : W("", !0)
|
|
4345
4352
|
], 42, Aa);
|
|
4346
4353
|
};
|
|
@@ -4349,8 +4356,8 @@ const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
|
4349
4356
|
export {
|
|
4350
4357
|
pt as B,
|
|
4351
4358
|
Ii as a,
|
|
4352
|
-
|
|
4353
|
-
|
|
4359
|
+
Di as b,
|
|
4360
|
+
$i as c,
|
|
4354
4361
|
Ui as d,
|
|
4355
4362
|
ki as e,
|
|
4356
4363
|
ut as f,
|
|
@@ -4358,4 +4365,4 @@ export {
|
|
|
4358
4365
|
He as h,
|
|
4359
4366
|
Me as i
|
|
4360
4367
|
};
|
|
4361
|
-
//# sourceMappingURL=data-grid.
|
|
4368
|
+
//# sourceMappingURL=data-grid.CWop1cFU.js.map
|