@adyen/bento-vue2 1.74.0 → 1.76.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 +1693 -616
- 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/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/calendar.Fm_dfQC5.js +1871 -0
- package/dist/chunks/calendar.Fm_dfQC5.js.map +1 -0
- package/dist/chunks/{checkbox-group.DETXTJqI.js → checkbox-group.CtNVRcmP.js} +2 -2
- package/dist/chunks/{checkbox-group.DETXTJqI.js.map → checkbox-group.CtNVRcmP.js.map} +1 -1
- package/dist/chunks/{checkbox.BPtHAAEa.js → checkbox.nyUc0gLb.js} +18 -18
- package/dist/chunks/{checkbox.BPtHAAEa.js.map → checkbox.nyUc0gLb.js.map} +1 -1
- package/dist/chunks/{code-snippet.VtrsOTEC.js → code-snippet.DFf3KMSi.js} +2 -2
- package/dist/chunks/{code-snippet.VtrsOTEC.js.map → code-snippet.DFf3KMSi.js.map} +1 -1
- package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
- package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
- package/dist/chunks/{currency.DDB4G_A8.js → currency.AvvbekWO.js} +15 -14
- package/dist/chunks/{currency.DDB4G_A8.js.map → currency.AvvbekWO.js.map} +1 -1
- package/dist/chunks/{dashboard-section.jIpBvP6X.js → dashboard-section.D1l7wDX3.js} +2 -2
- package/dist/chunks/{dashboard-section.jIpBvP6X.js.map → dashboard-section.D1l7wDX3.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CozTcWQ0.js → data-grid-template.DGUDqzjj.js} +2 -2
- package/dist/chunks/{data-grid-template.CozTcWQ0.js.map → data-grid-template.DGUDqzjj.js.map} +1 -1
- package/dist/chunks/{data-grid.DN9xml8y.js → data-grid.B5aCkT0o.js} +1257 -1223
- package/dist/chunks/data-grid.B5aCkT0o.js.map +1 -0
- package/dist/chunks/{date-picker.DoYYzWcA.js → date-picker.DImAYvoM.js} +14 -14
- package/dist/chunks/date-picker.DImAYvoM.js.map +1 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js +914 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js.map +1 -0
- package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
- package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
- package/dist/chunks/dropdown-tag.CpvU8eSZ.js +260 -0
- package/dist/chunks/dropdown-tag.CpvU8eSZ.js.map +1 -0
- package/dist/chunks/{dropdown.BOvtYKXS.js → dropdown.RxD2TqnP.js} +14 -14
- package/dist/chunks/{dropdown.BOvtYKXS.js.map → dropdown.RxD2TqnP.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.DzHJi42d.js → filter-bar.C0S87JZD.js} +511 -486
- package/dist/chunks/filter-bar.C0S87JZD.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
- package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js +170 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js.map +1 -0
- package/dist/chunks/{header-with-views.t5Fr63SD.js → header-with-views.j16q5wEc.js} +4 -4
- package/dist/chunks/{header-with-views.t5Fr63SD.js.map → header-with-views.j16q5wEc.js.map} +1 -1
- package/dist/chunks/{header.DwSyDQ68.js → header.DoWKsA15.js} +2 -2
- package/dist/chunks/{header.DwSyDQ68.js.map → header.DoWKsA15.js.map} +1 -1
- package/dist/chunks/{input-field-password.Dm3HYonF.js → input-field-password.CSfXqEbT.js} +47 -38
- package/dist/chunks/input-field-password.CSfXqEbT.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.bZauIuHJ.js → input-field-phone-number.oa4hXQdK.js} +3 -3
- package/dist/chunks/{input-field-phone-number.bZauIuHJ.js.map → input-field-phone-number.oa4hXQdK.js.map} +1 -1
- package/dist/chunks/input-field.DdQu3b1-.js +161 -0
- package/dist/chunks/input-field.DdQu3b1-.js.map +1 -0
- package/dist/chunks/{pagination.CKD9FDrA.js → pagination.C0YW_A_o.js} +2 -2
- package/dist/chunks/{pagination.CKD9FDrA.js.map → pagination.C0YW_A_o.js.map} +1 -1
- package/dist/chunks/radio-group.AcYMFudv.js.map +1 -1
- package/dist/chunks/{rich-text-editor.BZgQ578S.js → rich-text-editor.eYW8X_YP.js} +354 -352
- package/dist/chunks/{rich-text-editor.BZgQ578S.js.map → rich-text-editor.eYW8X_YP.js.map} +1 -1
- package/dist/chunks/{search-bar.c-w7Uky2.js → search-bar.DJVfPz-f.js} +3 -3
- package/dist/chunks/{search-bar.c-w7Uky2.js.map → search-bar.DJVfPz-f.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D69COlqF.js → secondary-nav.BFiTQaag.js} +2 -2
- package/dist/chunks/{secondary-nav.D69COlqF.js.map → secondary-nav.BFiTQaag.js.map} +1 -1
- package/dist/chunks/{selection-card-group.8UIir78G.js → selection-card-group.D4rcUyvV.js} +58 -120
- package/dist/chunks/{selection-card-group.8UIir78G.js.map → selection-card-group.D4rcUyvV.js.map} +1 -1
- package/dist/chunks/textarea.CIQuLWQ8.js.map +1 -1
- package/dist/chunks/{timeline-item.VSw9vKdO.js → timeline-item.CZBuknZ_.js} +156 -168
- package/dist/chunks/timeline-item.CZBuknZ_.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.IsfhJHxQ.js → use-cached-selected-values.BZd3CTeP.js} +334 -314
- package/dist/chunks/use-cached-selected-values.BZd3CTeP.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +221 -220
- 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/internal.js +3 -3
- package/dist/pagination.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/styles/bento-dark.css +7 -5
- package/dist/styles/bento-light.css +7 -5
- package/dist/styles/bento.css +7 -5
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +7 -5
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +692 -1390
- package/package.json +12 -27
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/calendar.EfqJlztU.js +0 -2093
- package/dist/chunks/calendar.EfqJlztU.js.map +0 -1
- package/dist/chunks/data-grid.DN9xml8y.js.map +0 -1
- package/dist/chunks/date-picker.DoYYzWcA.js.map +0 -1
- package/dist/chunks/date-range-picker.C_pJ8yH5.js +0 -917
- package/dist/chunks/date-range-picker.C_pJ8yH5.js.map +0 -1
- package/dist/chunks/dropdown-tag.DBnurtCQ.js +0 -245
- package/dist/chunks/dropdown-tag.DBnurtCQ.js.map +0 -1
- package/dist/chunks/filter-bar.DzHJi42d.js.map +0 -1
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
- package/dist/chunks/header-meta.uiIO1wHP.js +0 -185
- package/dist/chunks/header-meta.uiIO1wHP.js.map +0 -1
- package/dist/chunks/index.BrH1t1iu.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/input-field-password.Dm3HYonF.js.map +0 -1
- package/dist/chunks/input-field.D52XYEzU.js +0 -157
- package/dist/chunks/input-field.D52XYEzU.js.map +0 -1
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.IsfhJHxQ.js.map +0 -1
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
1
|
+
import { ref as p, onMounted as be, nextTick as le, watch as ae, onUnmounted as Tt, reactive as ke, toRefs as We, computed as v, watchEffect as Pn, onBeforeUpdate as zn, defineComponent as ve, inject as _e, toRef as ze, useSlots as Ge, provide as Oe } from "vue";
|
|
2
|
+
import { C as $n } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
|
+
import { W as kn } from "./warning-filled.CbJ1pcB2.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { n as
|
|
6
|
-
import { C as
|
|
7
|
-
import { N as
|
|
8
|
-
import { d as
|
|
9
|
-
import { E as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import { u as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
16
|
-
import { u as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { B as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { o as je } from "./resize.Bqks3WUm.js";
|
|
5
|
+
import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { C as Ot } from "./cross.CC_B-vG-.js";
|
|
7
|
+
import { N as it } from "./minus-small.DJacLGTw.js";
|
|
8
|
+
import { d as Wn } from "./popper-container.agLYtGwv.js";
|
|
9
|
+
import { E as ce, b as Gn, B as Hn, T as Vn } from "./tooltip.D3SDcRef.js";
|
|
10
|
+
import { B as Zn } from "./dashed-underline.K-l-7bDq.js";
|
|
11
|
+
import { B as ye, p as Nt } from "./typography.hlOAxsEn.js";
|
|
12
|
+
import { u as me } from "./index.B6WW_F-J.js";
|
|
13
|
+
import { B as jn } from "./action-bar.MXZTIUNk.js";
|
|
14
|
+
import { B as qn } from "./pagination.C0YW_A_o.js";
|
|
15
|
+
import { B as He } from "./loading-indicator.PxbRzshH.js";
|
|
16
|
+
import { u as Ve } from "./use-has-slot.C9lQZ6nz.js";
|
|
17
|
+
import { g as Ie } from "./generate-uid.NJ8tVoha.js";
|
|
18
|
+
import { B as Pe } from "./filter-bar.C0S87JZD.js";
|
|
19
|
+
import { B as Kn } from "./empty-state.BsdRxzS2.js";
|
|
20
|
+
import { E as Yn } from "./tabs.keys.Cb4Vw5Jh.js";
|
|
21
|
+
import { D as Jn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
22
|
+
import { b as Xn } from "./index.BDK4hwK_.js";
|
|
23
|
+
import { o as Ze } from "./resize.Bqks3WUm.js";
|
|
25
24
|
import "./index.Cl4_42j5.js";
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import { c as
|
|
29
|
-
import { E as
|
|
30
|
-
import { C as
|
|
31
|
-
import { C as
|
|
32
|
-
import { C as
|
|
33
|
-
import { b as
|
|
34
|
-
import { u as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { B as
|
|
38
|
-
import { A as
|
|
39
|
-
import { H as
|
|
40
|
-
import { l as
|
|
41
|
-
import { B as
|
|
42
|
-
import { B as
|
|
43
|
-
import { u as
|
|
44
|
-
import { S as
|
|
45
|
-
import { B as
|
|
25
|
+
import { B as It } from "./checkbox.nyUc0gLb.js";
|
|
26
|
+
import { B as Dt } from "./button.CS_kdxYh.js";
|
|
27
|
+
import { c as je, f as xt, h as Qn, b as es, a as ts, O as rt, D as ns } from "./button-actions.B81vY51z.js";
|
|
28
|
+
import { E as ct } from "./link.D8qpqg3W.js";
|
|
29
|
+
import { C as dt } from "./copy.WQDLcs_T.js";
|
|
30
|
+
import { C as ss } from "./chevron-down.eYtgv5ly.js";
|
|
31
|
+
import { C as os } from "./chevron-up.d8cwIlA_.js";
|
|
32
|
+
import { b as Ft } from "./focus-trap.BJfpIboH.js";
|
|
33
|
+
import { u as ls } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
34
|
+
import { B as as } from "./info-icon.Bhka3oGh.js";
|
|
35
|
+
import { D as is } from "./use-cached-selected-values.BZd3CTeP.js";
|
|
36
|
+
import { B as ut } from "./popover.types.DK6opPkz.js";
|
|
37
|
+
import { A as rs } from "./dialog-page.D23qNwKW.js";
|
|
38
|
+
import { H as cs, S as ds } from "./show.B_mKPF6I.js";
|
|
39
|
+
import { l as ft } from "./events.CMzGybJJ.js";
|
|
40
|
+
import { B as Bt } from "./toggle.BJMXpHRu.js";
|
|
41
|
+
import { B as us } from "./search-bar.DJVfPz-f.js";
|
|
42
|
+
import { u as fs } from "./dropdown.RxD2TqnP.js";
|
|
43
|
+
import { S as gs } from "./search.D53Ia3rC.js";
|
|
44
|
+
import { B as _s } from "./directive.Cbdox5VL.js";
|
|
46
45
|
import "../assets/data-grid.css";
|
|
47
|
-
const
|
|
46
|
+
const gt = (s) => {
|
|
48
47
|
if (!s)
|
|
49
48
|
return 0;
|
|
50
49
|
const t = window.getComputedStyle(s);
|
|
@@ -56,487 +55,491 @@ const vt = (s) => {
|
|
|
56
55
|
}
|
|
57
56
|
const o = parseFloat(t.top);
|
|
58
57
|
return !isNaN(o) && o < 0 && (n += o), n;
|
|
59
|
-
},
|
|
60
|
-
const o =
|
|
58
|
+
}, _t = (s, t, n = p(!1), e = null) => {
|
|
59
|
+
const o = p(0);
|
|
61
60
|
let l = null, a = null;
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
o.value =
|
|
61
|
+
const i = () => {
|
|
62
|
+
const _ = t.value ? gt(s.value) : 0, g = n.value && e ? gt(e.value) : 0;
|
|
63
|
+
o.value = _ + g;
|
|
65
64
|
};
|
|
66
|
-
return
|
|
65
|
+
return be(() => {
|
|
67
66
|
le(() => {
|
|
68
|
-
const
|
|
67
|
+
const _ = ae(
|
|
69
68
|
s,
|
|
70
69
|
() => {
|
|
71
|
-
s != null && s.value && (le(() =>
|
|
70
|
+
s != null && s.value && (le(() => _()), l = Ze(s.value, i), a = new MutationObserver(i), a.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
72
71
|
},
|
|
73
72
|
{ immediate: !0 }
|
|
74
73
|
);
|
|
75
74
|
ae(
|
|
76
75
|
[t, n],
|
|
77
76
|
() => {
|
|
78
|
-
|
|
77
|
+
i();
|
|
79
78
|
},
|
|
80
79
|
{ immediate: !0 }
|
|
81
80
|
);
|
|
82
81
|
});
|
|
83
|
-
}),
|
|
82
|
+
}), Tt(() => {
|
|
84
83
|
l == null || l.disconnect(), a == null || a.disconnect();
|
|
85
84
|
}), o;
|
|
86
85
|
};
|
|
87
|
-
var
|
|
88
|
-
const
|
|
89
|
-
const n =
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
() => Object.fromEntries(s.value.map(({ field:
|
|
86
|
+
var $e = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))($e || {}), j = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL = "deselect-all", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(j || {}), ge = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s.FIT_CONTENT = "fit-content", s.ZEBRA_ROWS = "zebra-rows", s))(ge || {}), Se = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(Se || {}), N = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.SORT = "sort", s))(N || {}), Ne = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ne || {});
|
|
87
|
+
const vs = (s, t) => {
|
|
88
|
+
const n = p(null), e = p(!1), o = p(void 0), l = s.value.reduce((L, F) => (L[F.field] = null, L), {}), a = ke(l), i = We(a);
|
|
89
|
+
let _ = 0, g = "";
|
|
90
|
+
const w = v(
|
|
91
|
+
() => Object.fromEntries(s.value.map(({ field: L, width: F, minWidth: b }) => [L, { width: F, minWidth: b }]))
|
|
93
92
|
);
|
|
94
|
-
Pn(() => o.value =
|
|
95
|
-
let
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
o.value[
|
|
93
|
+
Pn(() => o.value = w.value);
|
|
94
|
+
let h = null, R = null;
|
|
95
|
+
const S = (L) => {
|
|
96
|
+
const F = L.clientX - _, b = g, d = o.value[b].width + F;
|
|
97
|
+
o.value[b].width = d > w.value[b].minWidth ? d : w.value[b].minWidth, t(j.COLUMN_RESIZING, o.value), _ = L.clientX;
|
|
99
98
|
}, u = () => {
|
|
100
|
-
e.value = !1,
|
|
101
|
-
field:
|
|
102
|
-
width: o.value[
|
|
103
|
-
}),
|
|
104
|
-
},
|
|
105
|
-
if (
|
|
106
|
-
if (e.value = !0,
|
|
99
|
+
e.value = !1, h == null || h(), R == null || R(), g && t(j.COLUMN_RESIZE, {
|
|
100
|
+
field: g,
|
|
101
|
+
width: o.value[g].width
|
|
102
|
+
}), h = null, R = null, g = "", _ = null;
|
|
103
|
+
}, y = (L, F, b) => {
|
|
104
|
+
if (b.preventDefault(), L) {
|
|
105
|
+
if (e.value = !0, b.buttons !== 1) {
|
|
107
106
|
u();
|
|
108
107
|
return;
|
|
109
108
|
}
|
|
110
|
-
|
|
109
|
+
g = F, _ = b.clientX, h = ft(window, "mousemove", S), R = ft(window, "mouseup", u);
|
|
111
110
|
}
|
|
112
111
|
};
|
|
113
112
|
return ae(
|
|
114
113
|
() => e.value,
|
|
115
|
-
(
|
|
116
|
-
!
|
|
114
|
+
(L, F) => {
|
|
115
|
+
!L && F && (t(j.COLUMN_HOVER, n.value), n.value = null);
|
|
117
116
|
}
|
|
118
117
|
), {
|
|
119
118
|
resizeData: o,
|
|
120
|
-
allColumnRefs:
|
|
121
|
-
startResize:
|
|
119
|
+
allColumnRefs: i,
|
|
120
|
+
startResize: y,
|
|
122
121
|
isResizing: e,
|
|
123
122
|
columnHoverEventToEmitAfterResizing: n
|
|
124
123
|
};
|
|
125
|
-
},
|
|
126
|
-
const e = {}, o = [], l = (
|
|
127
|
-
const
|
|
128
|
-
|
|
124
|
+
}, Cs = 100, vt = 50, oe = "b-actions-column", hs = 42, ms = 56, ps = 56, ws = 80, Ss = 36, bs = 1, Ut = 16, Es = 20, Rs = (s, t, n) => {
|
|
125
|
+
const e = {}, o = [], l = (i) => {
|
|
126
|
+
const _ = e[i];
|
|
127
|
+
_ && _.frozen !== !0 && (e[i].frozen = !0, o.push(i));
|
|
129
128
|
};
|
|
130
129
|
function a() {
|
|
131
130
|
if (o.length === n.length)
|
|
132
131
|
return;
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
o.forEach((
|
|
136
|
-
|
|
132
|
+
const i = { min: {} };
|
|
133
|
+
let _ = s, g = t, w = 0;
|
|
134
|
+
o.forEach((h) => {
|
|
135
|
+
_ -= e[h].computedWidth, g -= e[h].flex;
|
|
137
136
|
});
|
|
138
|
-
for (let
|
|
139
|
-
const
|
|
140
|
-
if (e[
|
|
137
|
+
for (let h = 0, R = n.length; h < R; h += 1) {
|
|
138
|
+
const S = n[h];
|
|
139
|
+
if (e[S.field] && e[S.field].frozen === !0)
|
|
141
140
|
continue;
|
|
142
|
-
let
|
|
143
|
-
|
|
141
|
+
let y = _ / g * S.flex;
|
|
142
|
+
y < S.minWidth && (w += S.minWidth - y, y = S.minWidth, i.min[S.field] = !0), e[S.field] = {
|
|
144
143
|
frozen: !1,
|
|
145
|
-
computedWidth:
|
|
146
|
-
flex:
|
|
144
|
+
computedWidth: y,
|
|
145
|
+
flex: S.flex
|
|
147
146
|
};
|
|
148
147
|
}
|
|
149
|
-
|
|
150
|
-
l(
|
|
151
|
-
}) : n.forEach(({ field:
|
|
152
|
-
l(
|
|
148
|
+
w > 0 ? Object.keys(i.min).forEach((h) => {
|
|
149
|
+
l(h);
|
|
150
|
+
}) : n.forEach(({ field: h }) => {
|
|
151
|
+
l(h);
|
|
153
152
|
}), a();
|
|
154
153
|
}
|
|
155
154
|
return a(), e;
|
|
156
|
-
},
|
|
157
|
-
let n =
|
|
158
|
-
return t && (n +=
|
|
159
|
-
},
|
|
155
|
+
}, Ct = (s, t) => {
|
|
156
|
+
let n = bs;
|
|
157
|
+
return t && (n += Ut * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
158
|
+
}, Ls = (s) => {
|
|
160
159
|
var t, n, e, o, l;
|
|
161
|
-
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ?
|
|
162
|
-
},
|
|
163
|
-
const a =
|
|
160
|
+
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? ws : ps : Ss : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? ms : hs;
|
|
161
|
+
}, ys = (s, t, n, e, o, l) => {
|
|
162
|
+
const a = p(s.value), i = p(t), _ = p(n), g = p(e), w = p(o), h = p(!1), R = p(0);
|
|
164
163
|
ae(
|
|
165
164
|
() => s.value,
|
|
166
|
-
(
|
|
167
|
-
var
|
|
168
|
-
const
|
|
169
|
-
if (!((
|
|
165
|
+
(r, f) => {
|
|
166
|
+
var T, B;
|
|
167
|
+
const E = (r == null ? void 0 : r.map(({ field: U }) => U).toString()) === (f == null ? void 0 : f.map(({ field: U }) => U).toString());
|
|
168
|
+
if (!((T = l == null ? void 0 : l.allowColumnDragAndDrop) != null && T.value) || !E) {
|
|
170
169
|
a.value = s.value;
|
|
171
170
|
return;
|
|
172
171
|
}
|
|
173
|
-
a.value = ((
|
|
174
|
-
const
|
|
175
|
-
return
|
|
172
|
+
a.value = ((B = a.value) == null ? void 0 : B.length) === 0 ? s.value : s.value.sort((U, G) => {
|
|
173
|
+
const Y = a.value.findIndex((X) => X.field === U.field), q = a.value.findIndex((X) => X.field === G.field);
|
|
174
|
+
return Y === -1 ? 1 : q === -1 ? -1 : Y - q;
|
|
176
175
|
});
|
|
177
176
|
}
|
|
178
177
|
);
|
|
179
|
-
const
|
|
178
|
+
const S = p();
|
|
180
179
|
let u = null;
|
|
181
|
-
const
|
|
182
|
-
var
|
|
183
|
-
const
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
const
|
|
188
|
-
if ((
|
|
189
|
-
const
|
|
190
|
-
|
|
180
|
+
const y = v(() => {
|
|
181
|
+
var Y, q, X;
|
|
182
|
+
const r = [];
|
|
183
|
+
let f = 0, E = 0;
|
|
184
|
+
const T = {};
|
|
185
|
+
let B = a.value.filter((W) => W.visible !== !1);
|
|
186
|
+
const U = a.value.filter((W) => W.visible === !1);
|
|
187
|
+
if ((Y = l == null ? void 0 : l.hasSelectableColumn) != null && Y.value || (q = l == null ? void 0 : l.hasNestedContent) != null && q.value || (X = l == null ? void 0 : l.hasNestedRows) != null && X.value) {
|
|
188
|
+
const W = Ls(l);
|
|
189
|
+
B = [
|
|
191
190
|
{
|
|
192
191
|
field: oe,
|
|
193
192
|
label: "",
|
|
194
|
-
minWidth:
|
|
195
|
-
width:
|
|
193
|
+
minWidth: W,
|
|
194
|
+
width: W,
|
|
196
195
|
frozen: !0,
|
|
197
196
|
padding: { left: !1, right: !1 }
|
|
198
197
|
},
|
|
199
|
-
...
|
|
198
|
+
...B
|
|
200
199
|
];
|
|
201
200
|
}
|
|
202
|
-
|
|
203
|
-
const M = { ...
|
|
204
|
-
let
|
|
205
|
-
M.flex && M.flex > 0 ? (
|
|
206
|
-
(M == null ? void 0 : M.width) ??
|
|
207
|
-
(M == null ? void 0 : M.minWidth) ??
|
|
208
|
-
),
|
|
209
|
-
}),
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
Object.keys(
|
|
214
|
-
|
|
201
|
+
B.forEach((W) => {
|
|
202
|
+
const M = { ...W };
|
|
203
|
+
let C;
|
|
204
|
+
M.flex && M.flex > 0 ? (f += M.flex, C = 0, r.push(M)) : C = Math.max(
|
|
205
|
+
(M == null ? void 0 : M.width) ?? Cs,
|
|
206
|
+
(M == null ? void 0 : M.minWidth) ?? vt
|
|
207
|
+
), E += C, M.width = C, M.minWidth = (M == null ? void 0 : M.minWidth) ?? vt, T[M.field] = M;
|
|
208
|
+
}), E += R.value;
|
|
209
|
+
const G = Math.max(S.value - E, 0);
|
|
210
|
+
if (f > 0 && S.value > 0) {
|
|
211
|
+
const W = Rs(G, f, r);
|
|
212
|
+
Object.keys(W).forEach((M) => {
|
|
213
|
+
T[M].width = W[M].computedWidth;
|
|
215
214
|
});
|
|
216
215
|
}
|
|
217
|
-
return
|
|
218
|
-
const M = { ...
|
|
219
|
-
|
|
220
|
-
}), Object.values(
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
a.value.some((
|
|
225
|
-
var
|
|
226
|
-
const
|
|
227
|
-
(
|
|
228
|
-
(
|
|
229
|
-
),
|
|
230
|
-
(
|
|
216
|
+
return U.forEach((W) => {
|
|
217
|
+
const M = { ...W };
|
|
218
|
+
T[M.field] = M;
|
|
219
|
+
}), Object.values(T);
|
|
220
|
+
}), L = p(void 0), F = (r) => {
|
|
221
|
+
L.value = { ...L.value, ...r };
|
|
222
|
+
}, b = async () => {
|
|
223
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && (h.value = !0, await le(), a == null || a.value.filter((r) => r == null ? void 0 : r.autoWidth).forEach(({ field: r, minWidth: f }) => {
|
|
224
|
+
var U, G, Y, q;
|
|
225
|
+
const E = Ct(
|
|
226
|
+
(U = g.value) == null ? void 0 : U[r],
|
|
227
|
+
(G = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : G.value
|
|
228
|
+
), T = (q = (Y = w.value) == null ? void 0 : Y[r]) == null ? void 0 : q.reduce(
|
|
229
|
+
(X, W) => Math.max(X, Ct(W)),
|
|
231
230
|
0
|
|
232
|
-
),
|
|
233
|
-
(
|
|
234
|
-
[
|
|
235
|
-
width:
|
|
231
|
+
), B = Math.max(E, T ?? 0);
|
|
232
|
+
(f === void 0 || B > f) && F({
|
|
233
|
+
[r]: {
|
|
234
|
+
width: B
|
|
236
235
|
}
|
|
237
236
|
});
|
|
238
|
-
}),
|
|
237
|
+
}), h.value = !1);
|
|
239
238
|
};
|
|
240
|
-
ae([() => a.value, () =>
|
|
241
|
-
a.value.some((
|
|
239
|
+
ae([() => a.value, () => i.value], async () => {
|
|
240
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && await b();
|
|
242
241
|
});
|
|
243
|
-
const
|
|
244
|
-
() =>
|
|
245
|
-
var
|
|
242
|
+
const d = v(
|
|
243
|
+
() => y.value.map((r) => {
|
|
244
|
+
var f, E;
|
|
246
245
|
return {
|
|
247
|
-
...
|
|
246
|
+
...r,
|
|
248
247
|
// Override column width with resized ones
|
|
249
|
-
width: ((
|
|
248
|
+
width: ((E = (f = L.value) == null ? void 0 : f[r.field]) == null ? void 0 : E.width) ?? r.width
|
|
250
249
|
};
|
|
251
250
|
})
|
|
252
|
-
),
|
|
251
|
+
), A = v(
|
|
253
252
|
() => {
|
|
254
|
-
var
|
|
255
|
-
return ((
|
|
253
|
+
var r;
|
|
254
|
+
return ((r = d.value) == null ? void 0 : r.filter(({ visible: f }) => f !== !1).reduce((f, E) => E.width + f, 0)) + R.value;
|
|
256
255
|
}
|
|
257
|
-
),
|
|
258
|
-
() =>
|
|
259
|
-
),
|
|
260
|
-
width:
|
|
256
|
+
), O = v(
|
|
257
|
+
() => S.value <= A.value
|
|
258
|
+
), D = v(() => ({
|
|
259
|
+
width: S.value > A.value ? "100%" : "fit-content"
|
|
261
260
|
}));
|
|
262
|
-
return
|
|
263
|
-
var
|
|
264
|
-
const
|
|
261
|
+
return be(() => {
|
|
262
|
+
var f;
|
|
263
|
+
const r = l != null && l.isDataGridTemplate ? Es : 0;
|
|
265
264
|
le(() => {
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
265
|
+
_.value && (S.value = _.value.getBoundingClientRect().width - r);
|
|
266
|
+
const E = ae(
|
|
267
|
+
_,
|
|
269
268
|
() => {
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
_.value && (le(() => E()), u = Ze(_.value, ({ width: T }) => {
|
|
270
|
+
S.value = T - r;
|
|
272
271
|
}));
|
|
273
272
|
},
|
|
274
273
|
{ immediate: !0 }
|
|
275
274
|
);
|
|
276
|
-
}), (
|
|
277
|
-
|
|
278
|
-
}) :
|
|
279
|
-
}),
|
|
275
|
+
}), (f = document == null ? void 0 : document.fonts) != null && f.ready ? document.fonts.ready.then(() => {
|
|
276
|
+
b();
|
|
277
|
+
}) : b();
|
|
278
|
+
}), Tt(() => {
|
|
280
279
|
u == null || u.disconnect();
|
|
281
|
-
}),
|
|
282
|
-
var
|
|
283
|
-
|
|
284
|
-
|
|
280
|
+
}), zn(() => {
|
|
281
|
+
var r;
|
|
282
|
+
w.value && ((r = Object.keys(w.value)) == null ? void 0 : r.length) > 0 && Object.keys(w.value).forEach((E) => {
|
|
283
|
+
w.value[E] = [];
|
|
285
284
|
});
|
|
286
285
|
}), {
|
|
287
|
-
columnDefs:
|
|
288
|
-
gridRowWidthStyle:
|
|
289
|
-
onColumnWidthOverride:
|
|
290
|
-
isMeasuringColumnWidths:
|
|
291
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
286
|
+
columnDefs: d,
|
|
287
|
+
gridRowWidthStyle: D,
|
|
288
|
+
onColumnWidthOverride: F,
|
|
289
|
+
isMeasuringColumnWidths: h,
|
|
290
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: O,
|
|
292
291
|
columns: a,
|
|
293
|
-
totalWidthOfAllColumns:
|
|
294
|
-
rowActionsMaxWidth:
|
|
292
|
+
totalWidthOfAllColumns: A,
|
|
293
|
+
rowActionsMaxWidth: R
|
|
295
294
|
};
|
|
296
|
-
},
|
|
297
|
-
const
|
|
295
|
+
}, As = (s, t, n, e, o, l, a) => {
|
|
296
|
+
const i = p(s.value ?? []), _ = ke({
|
|
298
297
|
allItemsSelected: !1,
|
|
299
298
|
isIndeterminate: !1
|
|
300
|
-
}),
|
|
301
|
-
() => n.value.flatMap((
|
|
302
|
-
var
|
|
303
|
-
return [
|
|
299
|
+
}), g = v(
|
|
300
|
+
() => n.value.flatMap((r) => {
|
|
301
|
+
var f;
|
|
302
|
+
return [r, ((f = r == null ? void 0 : r.children) == null ? void 0 : f.length) > 0 ? r == null ? void 0 : r.children : []];
|
|
304
303
|
}).flat()
|
|
305
|
-
),
|
|
304
|
+
), w = v(
|
|
306
305
|
() => {
|
|
307
|
-
var
|
|
308
|
-
return ((
|
|
306
|
+
var r, f;
|
|
307
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.every((E) => i.value.includes(e(E))));
|
|
309
308
|
}
|
|
310
|
-
),
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
},
|
|
309
|
+
), h = v(
|
|
310
|
+
() => {
|
|
311
|
+
var r, f;
|
|
312
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.filter((E) => !o(E)).every((E) => i.value.includes(e(E))));
|
|
313
|
+
}
|
|
314
|
+
), R = v(
|
|
315
|
+
() => {
|
|
316
|
+
var r, f;
|
|
317
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.some((E) => i.value.includes(e(E))));
|
|
318
|
+
}
|
|
319
|
+
), S = v(
|
|
320
|
+
() => {
|
|
321
|
+
var r, f;
|
|
322
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.filter((E) => !o(E)).some((E) => i.value.includes(e(E))));
|
|
323
|
+
}
|
|
324
|
+
), u = v(() => {
|
|
325
|
+
var r;
|
|
326
|
+
return !(l != null && l.value) || ((r = a == null ? void 0 : a.value) == null ? void 0 : r.totalCount) === void 0 ? !1 : i.value.length >= a.value.totalCount;
|
|
327
|
+
}), y = () => {
|
|
328
|
+
t(N.SELECT, i.value), t(N.UPDATE_SELECTION, i.value);
|
|
329
|
+
}, L = (r) => {
|
|
330
|
+
var f, E;
|
|
331
|
+
i.value = r, w.value ? (_.allItemsSelected = !0, _.isIndeterminate = !1) : (_.allItemsSelected = !1, _.isIndeterminate = ((f = i.value) == null ? void 0 : f.length) > 0 && ((E = n.value) == null ? void 0 : E.length) > 0 && n.value.some(
|
|
332
|
+
(T) => {
|
|
333
|
+
var B;
|
|
334
|
+
return i.value.includes(e(T)) || ((B = T == null ? void 0 : T.children) == null ? void 0 : B.some((U) => i.value.includes(e(U))));
|
|
335
|
+
}
|
|
336
|
+
));
|
|
337
|
+
}, F = (r) => {
|
|
329
338
|
le(() => {
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
const C = ((A = n.value) == null ? void 0 : A.length) > 0 && n.value.every((y) => r.value.includes(e(y)));
|
|
337
|
-
f.isIndeterminate = (l == null ? void 0 : l.value) && !m.value || r.value.length > 0 && !C;
|
|
338
|
-
} else
|
|
339
|
-
r.value = [], f.isIndeterminate = !1;
|
|
340
|
-
E();
|
|
339
|
+
var E, T;
|
|
340
|
+
_.allItemsSelected = r;
|
|
341
|
+
const f = ((T = (E = g.value) == null ? void 0 : E.filter(
|
|
342
|
+
(B) => !o(B) && ((B == null ? void 0 : B.children) === void 0 || B.children.every((U) => !o(U)))
|
|
343
|
+
)) == null ? void 0 : T.map((B) => e(B))) ?? [];
|
|
344
|
+
r ? (i.value = [.../* @__PURE__ */ new Set([...i.value, ...f])], _.isIndeterminate = !w.value) : (i.value = i.value.filter((B) => !f.includes(B)), _.isIndeterminate = !R.value), y();
|
|
341
345
|
});
|
|
342
|
-
},
|
|
346
|
+
}, b = () => {
|
|
343
347
|
le(() => {
|
|
344
|
-
|
|
348
|
+
L([]), y();
|
|
345
349
|
});
|
|
346
|
-
},
|
|
350
|
+
}, d = (r, f) => {
|
|
347
351
|
le(() => {
|
|
348
|
-
var
|
|
349
|
-
|
|
352
|
+
var E;
|
|
353
|
+
L(((E = f == null ? void 0 : f.children) == null ? void 0 : E.length) > 0 ? A(r, f) : r), y();
|
|
350
354
|
});
|
|
351
|
-
},
|
|
352
|
-
var
|
|
353
|
-
const
|
|
354
|
-
if (
|
|
355
|
-
const
|
|
356
|
-
return
|
|
357
|
-
|
|
358
|
-
}),
|
|
355
|
+
}, A = (r, f) => {
|
|
356
|
+
var B;
|
|
357
|
+
const E = e(f), T = (B = f.children) == null ? void 0 : B.filter((U) => !o(U)).map((U) => e(U));
|
|
358
|
+
if (r.includes(E)) {
|
|
359
|
+
const U = r;
|
|
360
|
+
return T.forEach((G) => {
|
|
361
|
+
U.includes(G) || U.push(G);
|
|
362
|
+
}), U;
|
|
359
363
|
}
|
|
360
|
-
return
|
|
361
|
-
},
|
|
364
|
+
return r.filter((U) => !T.includes(U));
|
|
365
|
+
}, O = (r, f, E) => {
|
|
362
366
|
le(() => {
|
|
363
|
-
var
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
!
|
|
367
|
-
) :
|
|
368
|
-
|
|
369
|
-
),
|
|
367
|
+
var B, U;
|
|
368
|
+
const T = e(f);
|
|
369
|
+
r.includes(e(E)) ? L(
|
|
370
|
+
!r.includes(T) && ((B = f == null ? void 0 : f.children) != null && B.every((G) => r.includes(e(G)))) ? [...r, T] : r
|
|
371
|
+
) : L(
|
|
372
|
+
r.includes(T) && !((U = f == null ? void 0 : f.children) != null && U.every((G) => r.includes(e(G)))) ? r.filter((G) => G !== T) : r
|
|
373
|
+
), y();
|
|
370
374
|
});
|
|
371
|
-
};
|
|
375
|
+
}, D = v(() => u.value ? "all" : h.value ? "page" : !i.value || i.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
372
376
|
return ae(
|
|
373
377
|
() => s.value,
|
|
374
378
|
() => {
|
|
375
|
-
|
|
379
|
+
L(s.value ?? []);
|
|
376
380
|
},
|
|
377
381
|
{ immediate: !0 }
|
|
378
382
|
), ae(
|
|
379
383
|
() => n.value,
|
|
380
384
|
() => {
|
|
381
|
-
const
|
|
382
|
-
(
|
|
383
|
-
var
|
|
384
|
-
return ((
|
|
385
|
+
const r = n.value.filter((f) => i.value.includes(e(f))).flatMap(
|
|
386
|
+
(f) => {
|
|
387
|
+
var E;
|
|
388
|
+
return ((E = f == null ? void 0 : f.children) == null ? void 0 : E.length) > 0 ? f.children.map((T) => e(T)).filter((T) => !i.value.includes(T)) : [];
|
|
385
389
|
}
|
|
386
390
|
);
|
|
387
|
-
(
|
|
391
|
+
(r == null ? void 0 : r.length) > 0 ? (L([...i.value, ...r]), y()) : L(i.value);
|
|
388
392
|
}
|
|
389
393
|
), {
|
|
390
|
-
onAllRowSelect:
|
|
391
|
-
onRowSelect:
|
|
392
|
-
onNestedRowSelect:
|
|
393
|
-
onDeselectAll:
|
|
394
|
-
allItemsSelectedState:
|
|
395
|
-
selectedItems:
|
|
396
|
-
|
|
397
|
-
isEveryItemAcrossPagesSelected: m
|
|
394
|
+
onAllRowSelect: F,
|
|
395
|
+
onRowSelect: d,
|
|
396
|
+
onNestedRowSelect: O,
|
|
397
|
+
onDeselectAll: b,
|
|
398
|
+
allItemsSelectedState: _,
|
|
399
|
+
selectedItems: i,
|
|
400
|
+
selectionState: D
|
|
398
401
|
};
|
|
399
|
-
},
|
|
400
|
-
var
|
|
401
|
-
return (
|
|
402
|
+
}, Ts = (s, t, n) => ({ isSorting: (a) => s.value.some((i) => i.field === a), getSortingDirection: (a) => {
|
|
403
|
+
var i;
|
|
404
|
+
return (i = s.value.find((_) => _.field === a)) == null ? void 0 : i.direction;
|
|
402
405
|
}, sortByColumnField: (a) => {
|
|
403
|
-
var
|
|
404
|
-
if (!t.value.some((
|
|
406
|
+
var g;
|
|
407
|
+
if (!t.value.some((w) => w.field === a && w.sortable))
|
|
405
408
|
return;
|
|
406
|
-
const
|
|
409
|
+
const _ = [{
|
|
407
410
|
field: a,
|
|
408
|
-
direction: ((
|
|
411
|
+
direction: ((g = s.value.find((w) => w.field === a)) == null ? void 0 : g.direction) === Se.ASCENDING ? Se.DESCENDING : Se.ASCENDING
|
|
409
412
|
}];
|
|
410
|
-
n("sort",
|
|
413
|
+
n("sort", _);
|
|
411
414
|
} });
|
|
412
|
-
var se = ((s) => (s[s.ARROW_DOWN =
|
|
413
|
-
const
|
|
414
|
-
const a =
|
|
415
|
-
let
|
|
416
|
-
return o.value && (
|
|
417
|
-
...
|
|
418
|
-
{ field:
|
|
419
|
-
]),
|
|
420
|
-
}),
|
|
415
|
+
var se = ((s) => (s[s.ARROW_DOWN = ce.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = ce.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = ce.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = ce.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = ce.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = ce.PAGE_DOWN] = "PAGE_DOWN", s[s.END = ce.END] = "END", s[s.HOME = ce.HOME] = "HOME", s))(se || {});
|
|
416
|
+
const Le = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
417
|
+
const a = v(() => l.value || e.value ? !0 : n.value.some((b) => b.infoIconTooltip || b.sortable)), i = v(() => {
|
|
418
|
+
let b = n.value.filter(({ visible: d }) => d !== !1);
|
|
419
|
+
return o.value && (b = [
|
|
420
|
+
...b,
|
|
421
|
+
{ field: Le, label: "" }
|
|
422
|
+
]), b;
|
|
423
|
+
}), _ = v(() => i.value.length), g = v(() => {
|
|
421
424
|
if (!s.value)
|
|
422
425
|
return [];
|
|
423
|
-
const
|
|
424
|
-
if (!
|
|
426
|
+
const b = Object.keys(s.value)[0];
|
|
427
|
+
if (!b || !s.value[b])
|
|
425
428
|
return [];
|
|
426
|
-
const
|
|
429
|
+
const d = [];
|
|
427
430
|
if (a.value)
|
|
428
|
-
for (const
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
+
for (const O of i.value) {
|
|
432
|
+
const D = t.value[O.field];
|
|
433
|
+
d.push(D);
|
|
431
434
|
}
|
|
432
|
-
const
|
|
433
|
-
for (let
|
|
434
|
-
for (const
|
|
435
|
-
const
|
|
436
|
-
|
|
435
|
+
const A = s.value[b].length;
|
|
436
|
+
for (let O = 0; O < A; O++)
|
|
437
|
+
for (const D of i.value) {
|
|
438
|
+
const r = s.value[D.field];
|
|
439
|
+
r != null && r[O] && d.push(r[O]);
|
|
437
440
|
}
|
|
438
|
-
return
|
|
439
|
-
}),
|
|
440
|
-
const
|
|
441
|
+
return d;
|
|
442
|
+
}), w = (b) => Math.floor(b / _.value), h = (b, d, A) => {
|
|
443
|
+
const O = g.value.length - 1, D = _.value - 1, r = w(b), f = b - _.value * r;
|
|
441
444
|
return {
|
|
442
|
-
[se.PAGE_UP]:
|
|
443
|
-
[se.PAGE_DOWN]:
|
|
444
|
-
[se.END]:
|
|
445
|
-
[se.HOME]:
|
|
446
|
-
}[
|
|
447
|
-
},
|
|
448
|
-
const
|
|
449
|
-
[se.ARROW_DOWN]:
|
|
450
|
-
[se.ARROW_UP]:
|
|
445
|
+
[se.PAGE_UP]: f + (a.value ? _.value : 0),
|
|
446
|
+
[se.PAGE_DOWN]: O - D + f,
|
|
447
|
+
[se.END]: A ? O : _.value * r + D,
|
|
448
|
+
[se.HOME]: A ? a.value ? _.value : 0 : _.value * r
|
|
449
|
+
}[d];
|
|
450
|
+
}, R = (b, d) => {
|
|
451
|
+
const A = w(b), D = {
|
|
452
|
+
[se.ARROW_DOWN]: _.value,
|
|
453
|
+
[se.ARROW_UP]: A === 0 && !a.value ? 0 : -_.value,
|
|
451
454
|
[se.ARROW_LEFT]: -1,
|
|
452
455
|
[se.ARROW_RIGHT]: 1
|
|
453
|
-
}[
|
|
454
|
-
return
|
|
455
|
-
},
|
|
456
|
+
}[d], r = b + D;
|
|
457
|
+
return r < 0 || r >= g.value.length ? b : r;
|
|
458
|
+
}, S = (b) => [
|
|
456
459
|
se.PAGE_UP,
|
|
457
460
|
se.PAGE_DOWN,
|
|
458
461
|
se.END,
|
|
459
462
|
se.HOME
|
|
460
|
-
].includes(
|
|
461
|
-
const
|
|
462
|
-
return
|
|
463
|
-
},
|
|
464
|
-
if (!
|
|
463
|
+
].includes(b), u = (b, d, A) => {
|
|
464
|
+
const O = g.value.indexOf(b);
|
|
465
|
+
return S(d) ? h(O, d, A) : R(O, d);
|
|
466
|
+
}, y = (b, d, A) => {
|
|
467
|
+
if (!g.value.includes(b))
|
|
465
468
|
return;
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
},
|
|
469
|
+
const O = u(b, d, A);
|
|
470
|
+
g.value[O].focus();
|
|
471
|
+
}, L = (b) => b in se;
|
|
469
472
|
return {
|
|
470
|
-
isNavigationKeyCode:
|
|
471
|
-
focusOnNextGridcell:
|
|
472
|
-
navigationInput: (
|
|
473
|
-
const { ctrlKey:
|
|
474
|
-
let
|
|
475
|
-
|
|
473
|
+
isNavigationKeyCode: L,
|
|
474
|
+
focusOnNextGridcell: y,
|
|
475
|
+
navigationInput: (b) => {
|
|
476
|
+
const { ctrlKey: d, key: A, target: O } = b, D = A;
|
|
477
|
+
let r = O;
|
|
478
|
+
r.getAttribute("role") !== "menuitem" && (g.value.includes(r) || (r = O.closest('[role="gridcell"], [role="columnheader"]')), g.value.includes(r) && L(D) && y(r, D, d));
|
|
476
479
|
}
|
|
477
480
|
};
|
|
478
|
-
},
|
|
479
|
-
const l =
|
|
481
|
+
}, Ns = 90, Is = (s, t, n, e, o) => {
|
|
482
|
+
const l = p(s), a = p(t), i = p(n), _ = p(e), g = v(() => l.value !== "none"), w = v(() => l.value === "automatic"), h = () => {
|
|
480
483
|
o(N.UPDATE_SHOW_MORE);
|
|
481
484
|
};
|
|
482
485
|
return ae(
|
|
483
486
|
() => a.value,
|
|
484
487
|
() => {
|
|
485
|
-
|
|
488
|
+
w.value && i.value.offsetHeight / a.value * 100 > Ns && !_.value && h();
|
|
486
489
|
}
|
|
487
|
-
), { isLazyLoad:
|
|
488
|
-
},
|
|
489
|
-
const e =
|
|
490
|
+
), { isLazyLoad: g, isInfiniteScroll: w, verticalScrollPosition: a, emitLazyLoadEvent: h };
|
|
491
|
+
}, Ds = (s, t, n) => {
|
|
492
|
+
const e = p(s), o = p(t), l = ke({
|
|
490
493
|
dragging: null,
|
|
491
494
|
dragToLeft: null,
|
|
492
495
|
target: null
|
|
493
|
-
}), a = (
|
|
494
|
-
const
|
|
495
|
-
if (
|
|
496
|
+
}), a = (S, u = 0) => {
|
|
497
|
+
const y = e.value.findIndex((b) => b.field === S.field), L = y + u;
|
|
498
|
+
if (L < 0 || L > e.value.length - 1)
|
|
496
499
|
return;
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
l.dragging =
|
|
501
|
-
},
|
|
502
|
-
l.target =
|
|
503
|
-
const
|
|
504
|
-
l.dragToLeft =
|
|
505
|
-
},
|
|
506
|
-
var u,
|
|
507
|
-
if (((u = l.dragging) == null ? void 0 : u.field) !==
|
|
508
|
-
const
|
|
509
|
-
var
|
|
510
|
-
return
|
|
511
|
-
}),
|
|
512
|
-
let
|
|
513
|
-
|
|
514
|
-
|
|
500
|
+
const F = [...e.value];
|
|
501
|
+
F.splice(L, 0, F.splice(y, 1)[0]), n(N.COLUMNS, F), n(N.UPDATE_COLUMNS, F);
|
|
502
|
+
}, i = (S, u) => {
|
|
503
|
+
l.dragging = S, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
504
|
+
}, _ = (S, u) => {
|
|
505
|
+
l.target = S;
|
|
506
|
+
const y = u.currentTarget.getBoundingClientRect(), L = y.left + y.width / 2, F = u.clientX ?? 0;
|
|
507
|
+
l.dragToLeft = F <= L;
|
|
508
|
+
}, g = (S) => {
|
|
509
|
+
var u, y;
|
|
510
|
+
if (((u = l.dragging) == null ? void 0 : u.field) !== S.field) {
|
|
511
|
+
const L = e.value.findIndex((D) => {
|
|
512
|
+
var r;
|
|
513
|
+
return D.field === ((r = l.dragging) == null ? void 0 : r.field);
|
|
514
|
+
}), F = e.value.findIndex((D) => D.field === S.field), b = l.dragToLeft ? F : F + 1, d = b > L ? b - 1 : b;
|
|
515
|
+
let A = [...e.value];
|
|
516
|
+
A.splice(
|
|
517
|
+
d === -1 ? 0 : d,
|
|
515
518
|
0,
|
|
516
|
-
|
|
519
|
+
A.splice(L, 1)[0]
|
|
517
520
|
);
|
|
518
|
-
const
|
|
519
|
-
((
|
|
520
|
-
(
|
|
521
|
-
var
|
|
522
|
-
return ((
|
|
521
|
+
const O = e.value.findIndex((D) => !(D != null && D.frozen));
|
|
522
|
+
((y = l.dragging) == null ? void 0 : y.frozen) !== S.frozen && b !== O && (A = A.map(
|
|
523
|
+
(D) => {
|
|
524
|
+
var r;
|
|
525
|
+
return ((r = l.dragging) == null ? void 0 : r.field) === D.field ? { ...D, frozen: !!(S != null && S.frozen) } : D;
|
|
523
526
|
}
|
|
524
|
-
)), n(N.COLUMNS,
|
|
527
|
+
)), n(N.COLUMNS, A), n(N.UPDATE_COLUMNS, A);
|
|
525
528
|
}
|
|
526
529
|
l.dragging = null, l.target = null;
|
|
527
|
-
},
|
|
530
|
+
}, w = () => {
|
|
528
531
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
529
|
-
},
|
|
530
|
-
[
|
|
531
|
-
[
|
|
532
|
-
[
|
|
533
|
-
[
|
|
534
|
-
} : {}),
|
|
532
|
+
}, h = v(() => o.value ? {
|
|
533
|
+
[j.COLUMN_DRAG_START]: (S, u) => i(S, u),
|
|
534
|
+
[j.COLUMN_DRAG_ENTER]: (S, u) => _(S, u),
|
|
535
|
+
[j.COLUMN_DROP]: (S) => g(S),
|
|
536
|
+
[j.COLUMN_DRAG_END]: () => w()
|
|
537
|
+
} : {}), R = v(() => (S) => o.value ? {
|
|
535
538
|
dragenter: (u) => {
|
|
536
|
-
u.preventDefault(),
|
|
539
|
+
u.preventDefault(), _(S, u);
|
|
537
540
|
},
|
|
538
541
|
drop: () => {
|
|
539
|
-
|
|
542
|
+
g(S);
|
|
540
543
|
},
|
|
541
544
|
dragover: (u) => {
|
|
542
545
|
u.preventDefault();
|
|
@@ -546,86 +549,86 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
546
549
|
// Values
|
|
547
550
|
draggingColumns: l,
|
|
548
551
|
// Methods
|
|
549
|
-
draggingEventsForColumns:
|
|
550
|
-
draggingEventsForRowCell:
|
|
552
|
+
draggingEventsForColumns: h,
|
|
553
|
+
draggingEventsForRowCell: R,
|
|
551
554
|
onMoveColumnByOffset: a
|
|
552
555
|
};
|
|
553
|
-
},
|
|
554
|
-
const e =
|
|
555
|
-
() => [...e.value].sort((u,
|
|
556
|
-
), a =
|
|
556
|
+
}, xs = (s, t, n) => {
|
|
557
|
+
const e = p(s), o = p(t.value), l = v(
|
|
558
|
+
() => [...e.value].sort((u, y) => u.frozen === y.frozen ? 0 : u.frozen ? -1 : 1)
|
|
559
|
+
), a = v(
|
|
557
560
|
() => l.value.filter((u) => u.frozen && u.visible !== !1)
|
|
558
|
-
),
|
|
561
|
+
), i = v(
|
|
559
562
|
() => l.value.filter((u) => !u.frozen && u.visible !== !1)
|
|
560
|
-
),
|
|
563
|
+
), _ = v(
|
|
561
564
|
() => [
|
|
562
565
|
{ columnSet: a.value, id: "frozen", isFrozenColumns: !0 },
|
|
563
|
-
{ columnSet:
|
|
566
|
+
{ columnSet: i.value, id: "unfrozen" }
|
|
564
567
|
].filter(({ columnSet: u }) => u.length)
|
|
565
|
-
),
|
|
568
|
+
), g = v(
|
|
566
569
|
() => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== oe).length === 1
|
|
567
|
-
),
|
|
570
|
+
), w = (u) => n(N.UPDATE_CONDENSED, u), h = (u) => {
|
|
568
571
|
o.value = u, n(N.UPDATE_ZEBRA_ROWS, u);
|
|
569
|
-
},
|
|
572
|
+
}, R = (u) => {
|
|
570
573
|
n(N.COLUMNS, u), n(N.UPDATE_COLUMNS, u);
|
|
571
|
-
},
|
|
572
|
-
const
|
|
573
|
-
(
|
|
574
|
+
}, S = (u) => {
|
|
575
|
+
const y = l.value.map(
|
|
576
|
+
(L) => (L == null ? void 0 : L.field) === u.field ? u : L
|
|
574
577
|
);
|
|
575
|
-
|
|
578
|
+
R(y);
|
|
576
579
|
};
|
|
577
580
|
return ae(t, (u) => {
|
|
578
581
|
o.value = u;
|
|
579
582
|
}), {
|
|
580
583
|
// Values
|
|
581
|
-
columnSets:
|
|
582
|
-
isOnlyOneVisibleColumn:
|
|
584
|
+
columnSets: _,
|
|
585
|
+
isOnlyOneVisibleColumn: g,
|
|
583
586
|
internalZebraRows: o,
|
|
584
587
|
sortedColumns: l,
|
|
585
588
|
// Methods
|
|
586
|
-
onConfigSettingsColumnsUpdate:
|
|
587
|
-
onConfigSettingsColumnUpdate:
|
|
588
|
-
onConfigSettingsCondensedUpdate:
|
|
589
|
-
onConfigSettingsZebraRowsUpdate:
|
|
589
|
+
onConfigSettingsColumnsUpdate: R,
|
|
590
|
+
onConfigSettingsColumnUpdate: S,
|
|
591
|
+
onConfigSettingsCondensedUpdate: w,
|
|
592
|
+
onConfigSettingsZebraRowsUpdate: h
|
|
590
593
|
};
|
|
591
|
-
},
|
|
592
|
-
const
|
|
593
|
-
ae([() =>
|
|
594
|
-
s.value.scrollLeft = u, t.value.scrollLeft = u,
|
|
595
|
-
}),
|
|
596
|
-
var u,
|
|
597
|
-
await le(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((
|
|
594
|
+
}, Fs = (s, t, n, e, o, l, a) => {
|
|
595
|
+
const i = p(0), _ = p(!1), g = p(!1);
|
|
596
|
+
ae([() => i.value, () => l.value], ([u]) => {
|
|
597
|
+
s.value.scrollLeft = u, t.value.scrollLeft = u, _.value = !!u, g.value = t.value.scrollWidth - t.value.offsetWidth > u;
|
|
598
|
+
}), be(async () => {
|
|
599
|
+
var u, y;
|
|
600
|
+
await le(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((y = t.value) == null ? void 0 : y.scrollWidth) && (g.value = !0);
|
|
598
601
|
});
|
|
599
|
-
const
|
|
600
|
-
if (
|
|
601
|
-
const
|
|
602
|
-
e.value.scrollLeft !==
|
|
602
|
+
const w = (u) => {
|
|
603
|
+
if (i.value = u.target.scrollLeft, n.value = s.value.scrollHeight - u.target.scrollTop, e != null && e.value) {
|
|
604
|
+
const y = u.target.scrollLeft;
|
|
605
|
+
e.value.scrollLeft !== y && (e.value.scrollLeft = y);
|
|
603
606
|
}
|
|
604
|
-
},
|
|
607
|
+
}, h = (u) => {
|
|
605
608
|
u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
606
609
|
s.value && (s.value.style.overflowX = "auto");
|
|
607
610
|
}));
|
|
608
|
-
},
|
|
609
|
-
const
|
|
610
|
-
s.value.scrollLeft !==
|
|
611
|
-
},
|
|
612
|
-
var u,
|
|
613
|
-
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((
|
|
611
|
+
}, R = (u) => {
|
|
612
|
+
const y = u.target.scrollLeft;
|
|
613
|
+
s.value.scrollLeft !== y && (s.value.scrollLeft = y);
|
|
614
|
+
}, S = v(() => {
|
|
615
|
+
var u, y, L, F;
|
|
616
|
+
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((y = a == null ? void 0 : a.stickyPagination) != null && y.value || a != null && a.isDataGridTemplate) && !((L = a == null ? void 0 : a.isLazyLoad) != null && L.value) ? { bottom: `${(((F = o.value) == null ? void 0 : F.clientHeight) ?? 0) + 1}px` } : {};
|
|
614
617
|
});
|
|
615
618
|
return {
|
|
616
619
|
// Values
|
|
617
|
-
scrollLeftPosition:
|
|
618
|
-
hasLeftOverflow:
|
|
619
|
-
hasRightOverflow:
|
|
620
|
-
horizontalScrollbarConditionalStyles:
|
|
620
|
+
scrollLeftPosition: i,
|
|
621
|
+
hasLeftOverflow: _,
|
|
622
|
+
hasRightOverflow: g,
|
|
623
|
+
horizontalScrollbarConditionalStyles: S,
|
|
621
624
|
// Methods
|
|
622
|
-
updateScrollPosition:
|
|
623
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
624
|
-
syncVirtualScrollerWithBody:
|
|
625
|
+
updateScrollPosition: w,
|
|
626
|
+
updateScrollPositionOnFrozenColumnsNavigation: h,
|
|
627
|
+
syncVirtualScrollerWithBody: R
|
|
625
628
|
};
|
|
626
|
-
},
|
|
627
|
-
const o =
|
|
628
|
-
var
|
|
629
|
+
}, Bs = (s, t, n, e) => {
|
|
630
|
+
const o = p(null), l = v(() => {
|
|
631
|
+
var y, L, F, b;
|
|
629
632
|
if (!o.value || o.value.field === oe)
|
|
630
633
|
return {
|
|
631
634
|
hoveredOverColumnField: "",
|
|
@@ -633,34 +636,34 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
633
636
|
noBorderLeft: !1,
|
|
634
637
|
noBorderRight: !1
|
|
635
638
|
};
|
|
636
|
-
const a = (
|
|
639
|
+
const a = (L = (y = s.value.find((d) => d.isFrozenColumns)) == null ? void 0 : y.columnSet) == null ? void 0 : L.filter((d) => d.field !== oe), i = s.value.find((d) => !(d != null && d.isFrozenColumns)), _ = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, g = !o.value.frozen && ((F = i == null ? void 0 : i.columnSet) == null ? void 0 : F[0].field) === o.value.field, w = (t.value || n.value) && _, h = (t.value || n.value) && !a && g, R = a && g, S = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, u = n.value && e.value && !o.value.frozen && ((b = i == null ? void 0 : i.columnSet) == null ? void 0 : b[i.columnSet.length - 1].field) === o.value.field;
|
|
637
640
|
return {
|
|
638
641
|
hoveredOverColumnField: o.value.field,
|
|
639
642
|
isSeparatorOffset: u,
|
|
640
|
-
noBorderLeft: !!
|
|
641
|
-
noBorderRight: !!
|
|
643
|
+
noBorderLeft: !!w || !!h || !!R,
|
|
644
|
+
noBorderRight: !!S || !!u
|
|
642
645
|
};
|
|
643
646
|
});
|
|
644
647
|
return {
|
|
645
648
|
hoveredOverColumn: o,
|
|
646
649
|
hoveredOverColumnState: l
|
|
647
650
|
};
|
|
648
|
-
},
|
|
649
|
-
const n =
|
|
651
|
+
}, qe = (s) => {
|
|
652
|
+
const n = Ft(s).filter((e) => e.node !== s);
|
|
650
653
|
return (n == null ? void 0 : n.length) > 0 ? (n[0].node.focus(), !0) : !1;
|
|
651
|
-
},
|
|
652
|
-
const t =
|
|
654
|
+
}, we = (s) => {
|
|
655
|
+
const t = Ft(s), n = t == null ? void 0 : t.filter((e) => e.node !== s);
|
|
653
656
|
if ((n == null ? void 0 : n.length) > 0)
|
|
654
657
|
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
655
|
-
},
|
|
658
|
+
}, Mt = (s) => {
|
|
656
659
|
(s == null ? void 0 : s.length) > 0 && s.forEach((t) => t == null ? void 0 : t.node.setAttribute("tabindex", "0"));
|
|
657
|
-
},
|
|
660
|
+
}, Us = () => {
|
|
658
661
|
const s = window.getSelection().getRangeAt(0).cloneContents(), t = s.querySelectorAll('[role="row"]');
|
|
659
662
|
let n = "<table>", e = "";
|
|
660
663
|
const o = (l) => {
|
|
661
664
|
l.forEach((a) => {
|
|
662
|
-
const
|
|
663
|
-
|
|
665
|
+
const i = a.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", _ = a.textContent.trim();
|
|
666
|
+
_ && (n += `<${i}>${_}</${i}>`, e += `${_} `);
|
|
664
667
|
});
|
|
665
668
|
};
|
|
666
669
|
if (!t.length) {
|
|
@@ -681,8 +684,8 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
681
684
|
if (n += "<tr>", a.length)
|
|
682
685
|
o(a);
|
|
683
686
|
else {
|
|
684
|
-
const
|
|
685
|
-
n += `<td>${
|
|
687
|
+
const i = l.textContent.trim();
|
|
688
|
+
n += `<td>${i}</td>`, e += `${i} `;
|
|
686
689
|
}
|
|
687
690
|
n += "</tr>", e += `
|
|
688
691
|
`;
|
|
@@ -693,123 +696,126 @@ const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
|
693
696
|
})
|
|
694
697
|
]);
|
|
695
698
|
};
|
|
696
|
-
let
|
|
697
|
-
const
|
|
699
|
+
let ht = 0;
|
|
700
|
+
const Ms = {
|
|
698
701
|
beforeCreate() {
|
|
699
|
-
this.uuid =
|
|
702
|
+
this.uuid = ht.toString(), ht += 1;
|
|
700
703
|
}
|
|
701
704
|
};
|
|
702
|
-
var
|
|
705
|
+
var Ps = function() {
|
|
703
706
|
var t = this, n = t._self._c;
|
|
704
707
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
705
|
-
},
|
|
708
|
+
}, zs = [], $s = /* @__PURE__ */ K(
|
|
709
|
+
Ms,
|
|
706
710
|
Ps,
|
|
707
|
-
|
|
708
|
-
Ws,
|
|
711
|
+
zs,
|
|
709
712
|
!1,
|
|
710
713
|
null,
|
|
711
714
|
null
|
|
712
715
|
);
|
|
713
|
-
const
|
|
714
|
-
let
|
|
715
|
-
const
|
|
716
|
+
const ks = $s.exports;
|
|
717
|
+
let mt = 0;
|
|
718
|
+
const Ws = {
|
|
716
719
|
beforeCreate() {
|
|
717
|
-
this.uuid =
|
|
720
|
+
this.uuid = mt.toString(), mt += 1;
|
|
718
721
|
}
|
|
719
722
|
};
|
|
720
|
-
var
|
|
723
|
+
var Gs = function() {
|
|
721
724
|
var t = this, n = t._self._c;
|
|
722
725
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
|
|
723
|
-
},
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
726
|
+
}, Hs = [], Vs = /* @__PURE__ */ K(
|
|
727
|
+
Ws,
|
|
728
|
+
Gs,
|
|
729
|
+
Hs,
|
|
727
730
|
!1,
|
|
728
731
|
null,
|
|
729
732
|
null
|
|
730
733
|
);
|
|
731
|
-
const
|
|
732
|
-
let
|
|
733
|
-
const
|
|
734
|
+
const Zs = Vs.exports;
|
|
735
|
+
let pt = 0;
|
|
736
|
+
const js = {
|
|
734
737
|
beforeCreate() {
|
|
735
|
-
this.uuid =
|
|
738
|
+
this.uuid = pt.toString(), pt += 1;
|
|
736
739
|
}
|
|
737
740
|
};
|
|
738
|
-
var
|
|
741
|
+
var qs = function() {
|
|
739
742
|
var t = this, n = t._self._c;
|
|
740
743
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M10.5605 14.5L9.94434 13.8838C9.6002 13.5397 9.18722 13.3072 8.75 13.1836V10.9336L10.1689 10.1162L11.6865 10.9941L12.1094 12.5605C12.1146 12.5821 12.1182 12.6044 12.124 12.626L12.1553 12.7441L12.3496 13.4688L13.7988 13.0801L13.6162 12.4004L13.6201 12.3984L13.5547 12.1592C13.4254 11.5178 13.8153 10.878 14.4561 10.7061L14.5742 10.6748L15.2988 10.4805L14.9102 9.03125L14.2295 9.21387L14.2285 9.20996L13.5049 9.40625L12.4346 9.69531L10.9199 8.81836V7.18262L12.8633 6.05762C13.1889 6.37496 13.597 6.61697 14.0674 6.74316L14.1855 6.77441L14.9102 6.96875L15.2988 5.52051L14.5742 5.32617L14.4561 5.29395C13.7894 5.11503 13.3935 4.4294 13.5723 3.7627L13.6045 3.64453L13.7988 2.91992L12.3496 2.53125L12.1553 3.25586L12.124 3.37402C11.9979 3.84406 12.0018 4.31824 12.1133 4.75879L10.1689 5.88477L8.75 5.06738V2.81738C9.18731 2.69384 9.60013 2.46036 9.94434 2.11621L10.5605 1.5L9.5 0.439453L8.88379 1.05566C8.39567 1.54362 7.60433 1.54362 7.11621 1.05566L6.5 0.439453L5.43945 1.5L6.05566 2.11621C6.39987 2.46036 6.81269 2.69384 7.25 2.81738V5.06738L5.83105 5.88477L3.88574 4.75879C3.99724 4.31819 4.00207 3.84412 3.87598 3.37402L3.84473 3.25586L3.65039 2.53125L2.20117 2.91992L2.39551 3.64453L2.42773 3.7627C2.60651 4.42942 2.21066 5.11507 1.54395 5.29395L1.42578 5.32617L0.701172 5.52051L1.08984 6.96875L1.81445 6.77441L1.93262 6.74316C2.40275 6.61703 2.81018 6.37474 3.13574 6.05762L5.08008 7.18262V8.81836L3.13574 9.94336C2.81015 9.62622 2.40287 9.38399 1.93262 9.25781L1.81445 9.22559L1.08984 9.03125L0.701172 10.4805L1.42578 10.6748L1.54395 10.7061C2.2106 10.8849 2.60644 11.5706 2.42773 12.2373L2.39551 12.3555L2.20117 13.0801L3.65039 13.4688L3.84473 12.7441L3.87598 12.626C4.00207 12.1559 3.99723 11.6817 3.88574 11.2412L5.83105 10.1162L7.25 10.9336V13.1836C6.81278 13.3072 6.3998 13.5397 6.05566 13.8838L5.43945 14.5L6.5 15.5605L7.11621 14.9443C7.60433 14.4564 8.39567 14.4564 8.88379 14.9443L9.5 15.5605L10.5605 14.5ZM6.58008 8.81641V7.18262L8 6.36426L9.41992 7.18262V8.81641L8 9.63477L6.58008 8.81641Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
741
|
-
},
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
744
|
+
}, Ks = [], Ys = /* @__PURE__ */ K(
|
|
745
|
+
js,
|
|
746
|
+
qs,
|
|
747
|
+
Ks,
|
|
745
748
|
!1,
|
|
746
749
|
null,
|
|
747
750
|
null
|
|
748
751
|
);
|
|
749
|
-
const Pt =
|
|
750
|
-
let
|
|
751
|
-
const
|
|
752
|
+
const Pt = Ys.exports;
|
|
753
|
+
let wt = 0;
|
|
754
|
+
const Js = {
|
|
752
755
|
beforeCreate() {
|
|
753
|
-
this.uuid =
|
|
756
|
+
this.uuid = wt.toString(), wt += 1;
|
|
754
757
|
}
|
|
755
758
|
};
|
|
756
|
-
var
|
|
759
|
+
var Xs = function() {
|
|
757
760
|
var t = this, n = t._self._c;
|
|
758
761
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
762
|
+
}, Qs = [], eo = /* @__PURE__ */ K(
|
|
763
|
+
Js,
|
|
764
|
+
Xs,
|
|
765
|
+
Qs,
|
|
763
766
|
!1,
|
|
764
767
|
null,
|
|
765
768
|
null
|
|
766
769
|
);
|
|
767
|
-
const
|
|
768
|
-
let
|
|
769
|
-
const
|
|
770
|
+
const to = eo.exports;
|
|
771
|
+
let St = 0;
|
|
772
|
+
const no = {
|
|
770
773
|
beforeCreate() {
|
|
771
|
-
this.uuid =
|
|
774
|
+
this.uuid = St.toString(), St += 1;
|
|
772
775
|
}
|
|
773
776
|
};
|
|
774
|
-
var
|
|
777
|
+
var so = function() {
|
|
775
778
|
var t = this, n = t._self._c;
|
|
776
779
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
780
|
+
}, oo = [], lo = /* @__PURE__ */ K(
|
|
781
|
+
no,
|
|
782
|
+
so,
|
|
783
|
+
oo,
|
|
781
784
|
!1,
|
|
782
785
|
null,
|
|
783
786
|
null
|
|
784
787
|
);
|
|
785
|
-
const
|
|
786
|
-
let
|
|
787
|
-
const
|
|
788
|
+
const ao = lo.exports;
|
|
789
|
+
let bt = 0;
|
|
790
|
+
const io = {
|
|
788
791
|
beforeCreate() {
|
|
789
|
-
this.uuid =
|
|
792
|
+
this.uuid = bt.toString(), bt += 1;
|
|
790
793
|
}
|
|
791
794
|
};
|
|
792
|
-
var
|
|
795
|
+
var ro = function() {
|
|
793
796
|
var t = this, n = t._self._c;
|
|
794
797
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
798
|
+
}, co = [], uo = /* @__PURE__ */ K(
|
|
799
|
+
io,
|
|
800
|
+
ro,
|
|
801
|
+
co,
|
|
799
802
|
!1,
|
|
800
803
|
null,
|
|
801
804
|
null
|
|
802
805
|
);
|
|
803
|
-
const
|
|
806
|
+
const fo = uo.exports, go = {
|
|
804
807
|
"en-US": {
|
|
805
808
|
columnActions: "{name} column actions",
|
|
806
809
|
deselectAll: "Deselect all",
|
|
810
|
+
deselectAllCurrentResults: "Deselect all in current results",
|
|
811
|
+
deselectPage: "Deselect this page",
|
|
807
812
|
freezeColumn: "Freeze column",
|
|
808
813
|
hideColumn: "Hide column",
|
|
809
814
|
moveColumnLeft: "Move column left",
|
|
810
815
|
moveColumnRight: "Move column right",
|
|
811
816
|
rowActionsColumn: "Row actions column",
|
|
812
817
|
selectAll: "Select all",
|
|
818
|
+
selectAllCurrentResults: "Select all in current results",
|
|
813
819
|
selectAllMenu: "Select all menu",
|
|
814
820
|
selectPage: "Select this page",
|
|
815
821
|
selectionMenu: "Selection menu",
|
|
@@ -835,11 +841,11 @@ const vo = _o.exports, mo = {
|
|
|
835
841
|
selectAll: "Selecionar tudo",
|
|
836
842
|
unfreezeColumn: "Descongelar coluna"
|
|
837
843
|
}
|
|
838
|
-
},
|
|
839
|
-
i18n: { messages:
|
|
844
|
+
}, zt = Symbol("data-grid slashed zero key"), Ae = Symbol("data-grid small container key"), De = Symbol("data-grid touch device key"), _o = {
|
|
845
|
+
i18n: { messages: go },
|
|
840
846
|
name: "data-grid-columns"
|
|
841
|
-
},
|
|
842
|
-
...
|
|
847
|
+
}, vo = /* @__PURE__ */ ve({
|
|
848
|
+
..._o,
|
|
843
849
|
props: {
|
|
844
850
|
/**
|
|
845
851
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -855,6 +861,13 @@ const vo = _o.exports, mo = {
|
|
|
855
861
|
type: Object,
|
|
856
862
|
default: void 0
|
|
857
863
|
},
|
|
864
|
+
/**
|
|
865
|
+
* If there are any active filters.
|
|
866
|
+
*/
|
|
867
|
+
hasActiveFilters: {
|
|
868
|
+
type: Boolean,
|
|
869
|
+
default: !1
|
|
870
|
+
},
|
|
858
871
|
/**
|
|
859
872
|
* Toggle the columns draggable events.
|
|
860
873
|
*/
|
|
@@ -979,168 +992,186 @@ const vo = _o.exports, mo = {
|
|
|
979
992
|
},
|
|
980
993
|
emits: ["sort", "column-hover"],
|
|
981
994
|
setup(s, { expose: t, emit: n }) {
|
|
982
|
-
const e = s, o = 100, { t: l } =
|
|
995
|
+
const e = s, o = 100, { t: l } = me(), { columns: a, sortBy: i } = We(e), _ = p(), g = p({}), w = p({}), h = p(), R = p(), S = (c) => n(j.SELECT_ALL_ROWS, c), u = (c) => c.field === oe, y = v(() => e.selectionState === "all"), L = v(
|
|
983
996
|
() => [
|
|
984
|
-
|
|
997
|
+
{
|
|
985
998
|
text: l("selectPage"),
|
|
986
|
-
handler: () =>
|
|
999
|
+
handler: () => S(!0),
|
|
1000
|
+
disabled: e.selectionState === "page" || e.selectionState === "all"
|
|
987
1001
|
},
|
|
988
|
-
{
|
|
1002
|
+
e.hasActiveFilters ? {
|
|
1003
|
+
text: l("selectAllCurrentResults"),
|
|
1004
|
+
handler: () => n(j.SELECT_ALL_CURRENT_RESULTS),
|
|
1005
|
+
addDivider: e.selectionState !== "none",
|
|
1006
|
+
disabled: e.selectionState === "all"
|
|
1007
|
+
} : {
|
|
989
1008
|
text: l("selectAll"),
|
|
990
|
-
handler: () => n(
|
|
1009
|
+
handler: () => n(j.SELECT_ALL_ACROSS_PAGES),
|
|
1010
|
+
addDivider: e.selectionState !== "none",
|
|
1011
|
+
disabled: e.selectionState === "all"
|
|
1012
|
+
},
|
|
1013
|
+
e.selectionState !== "none" && {
|
|
1014
|
+
text: l("deselectPage"),
|
|
1015
|
+
handler: () => S(!1),
|
|
1016
|
+
addDivider: !e.hasActiveFilters,
|
|
1017
|
+
// otherwise divider shown in deselect all in current results
|
|
1018
|
+
disabled: e.selectionState === "unselected-page"
|
|
1019
|
+
},
|
|
1020
|
+
e.hasActiveFilters && e.selectionState !== "none" && {
|
|
1021
|
+
text: l("deselectAllCurrentResults"),
|
|
1022
|
+
handler: () => n(j.DESELECT_ALL_CURRENT_RESULTS),
|
|
1023
|
+
addDivider: !0
|
|
991
1024
|
},
|
|
992
1025
|
e.selectionState !== "none" && {
|
|
993
1026
|
text: l("deselectAll"),
|
|
994
|
-
handler: () => n(
|
|
1027
|
+
handler: () => n(j.DESELECT_ALL)
|
|
995
1028
|
}
|
|
996
1029
|
].filter(Boolean)
|
|
997
|
-
), { startResize:
|
|
998
|
-
var
|
|
999
|
-
if (!
|
|
1030
|
+
), { startResize: F, isResizing: b, columnHoverEventToEmitAfterResizing: d } = vs(a, n), { isSorting: A, getSortingDirection: O, sortByColumnField: D } = Ts(i, a, n), r = (c) => {
|
|
1031
|
+
var ne;
|
|
1032
|
+
if (!c.sortable)
|
|
1000
1033
|
return null;
|
|
1001
|
-
const
|
|
1002
|
-
return
|
|
1003
|
-
[
|
|
1004
|
-
[
|
|
1005
|
-
}[
|
|
1006
|
-
},
|
|
1007
|
-
dragstart: (
|
|
1008
|
-
n(
|
|
1034
|
+
const P = (ne = e.sortBy.find(({ field: he }) => he === c.field)) == null ? void 0 : ne.direction;
|
|
1035
|
+
return P ? {
|
|
1036
|
+
[Se.ASCENDING]: Ne.ASCENDING,
|
|
1037
|
+
[Se.DESCENDING]: Ne.DESCENDING
|
|
1038
|
+
}[P] : Ne.NONE;
|
|
1039
|
+
}, f = v(() => (c) => e.hasDraggableColumns ? {
|
|
1040
|
+
dragstart: (P) => {
|
|
1041
|
+
n(j.COLUMN_DRAG_START, c, P);
|
|
1009
1042
|
},
|
|
1010
|
-
dragover: (
|
|
1011
|
-
|
|
1043
|
+
dragover: (P) => {
|
|
1044
|
+
P.preventDefault();
|
|
1012
1045
|
},
|
|
1013
|
-
dragenter: (
|
|
1014
|
-
|
|
1046
|
+
dragenter: (P) => {
|
|
1047
|
+
P.preventDefault(), n(j.COLUMN_DRAG_ENTER, c, P);
|
|
1015
1048
|
},
|
|
1016
1049
|
drop: () => {
|
|
1017
|
-
n(
|
|
1050
|
+
n(j.COLUMN_DROP, c);
|
|
1018
1051
|
},
|
|
1019
1052
|
dragend: () => {
|
|
1020
|
-
n(
|
|
1053
|
+
n(j.COLUMN_DRAG_END);
|
|
1021
1054
|
}
|
|
1022
|
-
} : {}),
|
|
1023
|
-
() => (
|
|
1055
|
+
} : {}), E = v(
|
|
1056
|
+
() => (c) => [
|
|
1024
1057
|
{
|
|
1025
1058
|
text: l("moveColumnLeft"),
|
|
1026
|
-
handler: () => n(
|
|
1027
|
-
icon:
|
|
1028
|
-
disabled: e.columns[0].field ===
|
|
1059
|
+
handler: () => n(j.COLUMN_MOVE, c, -1),
|
|
1060
|
+
icon: rs,
|
|
1061
|
+
disabled: e.columns[0].field === c.field
|
|
1029
1062
|
},
|
|
1030
1063
|
{
|
|
1031
1064
|
text: l("moveColumnRight"),
|
|
1032
|
-
handler: () => n(
|
|
1033
|
-
icon:
|
|
1034
|
-
disabled: e.columns[e.columns.length - 1].field ===
|
|
1065
|
+
handler: () => n(j.COLUMN_MOVE, c, 1),
|
|
1066
|
+
icon: Zs,
|
|
1067
|
+
disabled: e.columns[e.columns.length - 1].field === c.field
|
|
1035
1068
|
},
|
|
1036
|
-
!
|
|
1037
|
-
text:
|
|
1038
|
-
handler: () => n(
|
|
1069
|
+
!q.value && {
|
|
1070
|
+
text: c != null && c.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
1071
|
+
handler: () => n(j.COLUMN_UPDATE, { ...c, frozen: !(c != null && c.frozen) }),
|
|
1039
1072
|
icon: Pt
|
|
1040
1073
|
},
|
|
1041
1074
|
{
|
|
1042
|
-
text: (
|
|
1075
|
+
text: (c == null ? void 0 : c.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
1043
1076
|
handler: () => {
|
|
1044
|
-
n(
|
|
1045
|
-
...
|
|
1046
|
-
visible: (
|
|
1077
|
+
n(j.COLUMN_UPDATE, {
|
|
1078
|
+
...c,
|
|
1079
|
+
visible: (c == null ? void 0 : c.visible) === !1
|
|
1047
1080
|
});
|
|
1048
1081
|
},
|
|
1049
|
-
icon: (
|
|
1050
|
-
disabled: (
|
|
1082
|
+
icon: (c == null ? void 0 : c.visible) !== !1 ? cs : ds,
|
|
1083
|
+
disabled: (c == null ? void 0 : c.mandatory) || (c == null ? void 0 : c.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
1051
1084
|
}
|
|
1052
1085
|
].filter(Boolean)
|
|
1053
|
-
),
|
|
1054
|
-
|
|
1055
|
-
}, B = (
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1086
|
+
), T = (c) => {
|
|
1087
|
+
h.value = c.field, R.value && clearTimeout(R.value);
|
|
1088
|
+
}, B = (c) => {
|
|
1089
|
+
const P = setTimeout(() => {
|
|
1090
|
+
c.field === h.value && (h.value = "");
|
|
1058
1091
|
}, o);
|
|
1059
|
-
|
|
1060
|
-
},
|
|
1061
|
-
let
|
|
1092
|
+
R.value = P;
|
|
1093
|
+
}, U = (c) => {
|
|
1094
|
+
let P = {
|
|
1062
1095
|
mouseenter: () => {
|
|
1063
|
-
|
|
1096
|
+
T(c), b.value ? d.value = c : n("column-hover", c);
|
|
1064
1097
|
},
|
|
1065
1098
|
mouseleave: () => {
|
|
1066
|
-
B(
|
|
1099
|
+
B(c), b.value ? d.value = null : n("column-hover", null);
|
|
1067
1100
|
},
|
|
1068
1101
|
focus: () => {
|
|
1069
|
-
|
|
1102
|
+
T(c), u(c) && qe(g.value[c.field]);
|
|
1070
1103
|
},
|
|
1071
1104
|
focusout: (te) => {
|
|
1072
|
-
var
|
|
1073
|
-
(
|
|
1105
|
+
var ne;
|
|
1106
|
+
(ne = _.value) != null && ne.contains(te == null ? void 0 : te.relatedTarget) || B(c);
|
|
1074
1107
|
}
|
|
1075
1108
|
};
|
|
1076
|
-
return u(
|
|
1077
|
-
...
|
|
1078
|
-
...
|
|
1079
|
-
}),
|
|
1080
|
-
}, G = (
|
|
1109
|
+
return u(c) || (P = {
|
|
1110
|
+
...P,
|
|
1111
|
+
...f.value(c)
|
|
1112
|
+
}), P;
|
|
1113
|
+
}, G = (c) => c.infoIconTooltip || c.sortable || e.hasColumnPanel, Y = (c, P) => {
|
|
1081
1114
|
var te;
|
|
1082
|
-
((te =
|
|
1083
|
-
},
|
|
1115
|
+
((te = g.value) == null ? void 0 : te[P]) === void 0 && (g.value = { ...g.value, [P]: null }), c !== null && (g.value[P] = c);
|
|
1116
|
+
}, q = _e(
|
|
1084
1117
|
Ae,
|
|
1085
|
-
|
|
1086
|
-
),
|
|
1087
|
-
var
|
|
1088
|
-
const
|
|
1118
|
+
v(() => !1)
|
|
1119
|
+
), X = _e(De, p(!1)), W = v(() => {
|
|
1120
|
+
var P;
|
|
1121
|
+
const c = {
|
|
1089
1122
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
1090
1123
|
};
|
|
1091
|
-
return (
|
|
1092
|
-
...
|
|
1124
|
+
return (P = a.value[0]) != null && P.frozen && !q.value ? {
|
|
1125
|
+
...c,
|
|
1093
1126
|
"b-data-grid-columns--frozen": !0,
|
|
1094
1127
|
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
1095
1128
|
"b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
|
|
1096
1129
|
} : {
|
|
1097
|
-
...
|
|
1130
|
+
...c,
|
|
1098
1131
|
"b-data-grid-columns--unfrozen": !0
|
|
1099
1132
|
};
|
|
1100
|
-
}),
|
|
1133
|
+
}), M = v(() => ({
|
|
1101
1134
|
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1102
|
-
})),
|
|
1103
|
-
var te,
|
|
1135
|
+
})), C = (c, P) => c && P === 0 ? ut.BOTTOM_START : ut.BOTTOM_END, z = (c, P) => {
|
|
1136
|
+
var te, ne, he, m, x, H, Q, re, ue, Z;
|
|
1104
1137
|
return {
|
|
1105
|
-
"b-data-grid-columns__column--column-hovered":
|
|
1106
|
-
"b-data-grid-columns__column--column-hovered-no-border-left":
|
|
1107
|
-
"b-data-grid-columns__column--column-hovered-no-border-right":
|
|
1108
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns &&
|
|
1109
|
-
"b-data-grid-columns__column--sortable":
|
|
1110
|
-
"b-data-grid-columns__column--padding-left-unset": ((te =
|
|
1111
|
-
"b-data-grid-columns__column--padding-right-unset": ((
|
|
1112
|
-
"b-data-grid-columns__column--numeric":
|
|
1113
|
-
"b-data-grid-columns__column--frozen":
|
|
1114
|
-
"b-data-grid-columns__column--is-re-ordering": (
|
|
1115
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (
|
|
1116
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (
|
|
1117
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel":
|
|
1118
|
-
"b-data-grid-columns--small-container":
|
|
1138
|
+
"b-data-grid-columns__column--column-hovered": c.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1139
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1140
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1141
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && P === a.value.length - 1,
|
|
1142
|
+
"b-data-grid-columns__column--sortable": c.sortable,
|
|
1143
|
+
"b-data-grid-columns__column--padding-left-unset": ((te = c == null ? void 0 : c.padding) == null ? void 0 : te.left) === !1,
|
|
1144
|
+
"b-data-grid-columns__column--padding-right-unset": ((ne = c == null ? void 0 : c.padding) == null ? void 0 : ne.right) === !1,
|
|
1145
|
+
"b-data-grid-columns__column--numeric": c == null ? void 0 : c.numeric,
|
|
1146
|
+
"b-data-grid-columns__column--frozen": c == null ? void 0 : c.frozen,
|
|
1147
|
+
"b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((m = (he = e.draggingColumns) == null ? void 0 : he.dragging) == null ? void 0 : m.field),
|
|
1148
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((H = (x = e.draggingColumns) == null ? void 0 : x.target) == null ? void 0 : H.field) && ((Q = e.draggingColumns) == null ? void 0 : Q.dragToLeft),
|
|
1149
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (c == null ? void 0 : c.field) === ((ue = (re = e.draggingColumns) == null ? void 0 : re.target) == null ? void 0 : ue.field) && !((Z = e.draggingColumns) != null && Z.dragToLeft),
|
|
1150
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": c.sortable || c.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1151
|
+
"b-data-grid-columns--small-container": q.value
|
|
1119
1152
|
};
|
|
1120
|
-
},
|
|
1121
|
-
"b-data-grid-columns__column-header-and-actions--numeric":
|
|
1122
|
-
}),
|
|
1123
|
-
"b-data-grid-columns__column-actions--numeric":
|
|
1124
|
-
}),
|
|
1153
|
+
}, k = (c) => ({
|
|
1154
|
+
"b-data-grid-columns__column-header-and-actions--numeric": c == null ? void 0 : c.numeric
|
|
1155
|
+
}), $ = (c) => ({
|
|
1156
|
+
"b-data-grid-columns__column-actions--numeric": c == null ? void 0 : c.numeric
|
|
1157
|
+
}), Ce = (c) => ({
|
|
1125
1158
|
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1126
|
-
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField ===
|
|
1127
|
-
}),
|
|
1159
|
+
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === c.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1160
|
+
}), de = v(() => ({
|
|
1128
1161
|
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1129
|
-
})),
|
|
1130
|
-
"b-data-grid-columns__menu--hovered":
|
|
1162
|
+
})), ie = (c) => ({
|
|
1163
|
+
"b-data-grid-columns__menu--hovered": h.value === c.field || X.value
|
|
1131
1164
|
});
|
|
1132
1165
|
return t({
|
|
1133
|
-
columnHeaderRefs:
|
|
1134
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy:
|
|
1166
|
+
columnHeaderRefs: g
|
|
1167
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: i, allColumnsRef: _, columnHeaderRefs: g, contextMenuRef: w, hoveredColumnField: h, closingTimeOutId: R, onAllRowSelect: S, isActionsColumn: u, isAllSelectionState: y, selectAllMenu: L, startResize: F, isResizing: b, columnHoverEventToEmitAfterResizing: d, isSorting: A, getSortingDirection: O, sortByColumnField: D, getSortingColumnDirection: r, draggingEventsForColumn: f, contextualMenuData: E, showContextualMenu: T, hideContextualMenu: B, dataGridColumnEvents: U, hasColumnActions: G, registerColumnsRefs: Y, isSmallContainer: q, isTouchDevice: X, conditionalColumnsClasses: W, conditionalSelectColumnClasses: M, computeMenuPosition: C, conditionalColumnClasses: z, conditionalColumnHeaderAndActionsClasses: k, conditionalColumnActionsClasses: $, conditionalColumnSeparatorClasses: Ce, conditionalColumnHeaderClasses: de, conditionalColumnMenuClasses: ie, BentoCheckbox: It, BentoDatagridSortDirection: Se, BentoTypography: ye, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: Le, BentoInfoIcon: as, DatagridColumnsEvent: j, BentoMenu: xt, BentoToggleButton: je, DecorativeCheckbox: is, ArrowUpAndDownSortIcon: ks, SortAscendingIcon: to, SortDescendingIcon: ao, TriangleDown: fo };
|
|
1135
1168
|
}
|
|
1136
1169
|
});
|
|
1137
|
-
var
|
|
1170
|
+
var Co = function() {
|
|
1138
1171
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1139
1172
|
return n("div", { ref: "allColumnsRef", staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(o, l) {
|
|
1140
|
-
return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column", class: e.conditionalSelectColumnClasses }, [t.selectableAcrossPages ? t._e() : n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [
|
|
1141
|
-
return t
|
|
1142
|
-
} } }) : n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { button: { variant: "tertiary", condensed: !0, "aria-label": e.t("selectAllMenu") }, data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-fixed-positioning": "", "menu-position": "bottom-start" }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1143
|
-
return [n("div", { staticClass: "b-data-grid-columns__select-column-menu-button" }, [n(e.BentoCheckbox, { staticClass: "b-data-grid-columns__select-column-menu-checkbox", attrs: { indeterminate: t.allItemsSelectedState.isIndeterminate, "model-value": t.allItemsSelectedState.allItemsSelected, "aria-hidden": "true", "data-testid": "checkbox-select-all", tabindex: "-1", value: "data-grid-select-all" } }), n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu"), "aria-hidden": "true" } })], 1)];
|
|
1173
|
+
return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column", class: e.conditionalSelectColumnClasses }, [t.selectableAcrossPages ? t._e() : n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { button: { variant: "tertiary", condensed: !0, "aria-label": e.t("selectAllMenu") }, data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-fixed-positioning": "", "menu-position": "bottom-start" }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1174
|
+
return [n("div", { staticClass: "b-data-grid-columns__select-column-menu-button" }, [n(e.DecorativeCheckbox, { staticClass: "b-data-grid-columns__select-column-menu-checkbox", attrs: { indeterminate: t.allItemsSelectedState.isIndeterminate, checked: t.allItemsSelectedState.allItemsSelected, "all-selected": e.isAllSelectionState, "data-testid": "checkbox-select-all" } }), n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu"), "aria-hidden": "true" } })], 1)];
|
|
1144
1175
|
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
|
|
1145
1176
|
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
|
|
1146
1177
|
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(a) {
|
|
@@ -1157,44 +1188,44 @@ var po = function() {
|
|
|
1157
1188
|
a.stopPropagation();
|
|
1158
1189
|
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1159
1190
|
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (o) => e.registerColumnsRefs(o, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: "0" } })] : t._e()], 2);
|
|
1160
|
-
},
|
|
1191
|
+
}, ho = [], mo = /* @__PURE__ */ K(
|
|
1192
|
+
vo,
|
|
1193
|
+
Co,
|
|
1161
1194
|
ho,
|
|
1162
|
-
po,
|
|
1163
|
-
wo,
|
|
1164
1195
|
!1,
|
|
1165
1196
|
null,
|
|
1166
|
-
"
|
|
1197
|
+
"23318879"
|
|
1167
1198
|
);
|
|
1168
|
-
const
|
|
1199
|
+
const po = mo.exports;
|
|
1169
1200
|
var fe = /* @__PURE__ */ ((s) => (s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s))(fe || {});
|
|
1170
|
-
let
|
|
1171
|
-
const
|
|
1201
|
+
let Et = 0;
|
|
1202
|
+
const wo = {
|
|
1172
1203
|
beforeCreate() {
|
|
1173
|
-
this.uuid =
|
|
1204
|
+
this.uuid = Et.toString(), Et += 1;
|
|
1174
1205
|
}
|
|
1175
1206
|
};
|
|
1176
|
-
var
|
|
1207
|
+
var So = function() {
|
|
1177
1208
|
var t = this, n = t._self._c;
|
|
1178
1209
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1179
|
-
},
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1210
|
+
}, bo = [], Eo = /* @__PURE__ */ K(
|
|
1211
|
+
wo,
|
|
1212
|
+
So,
|
|
1213
|
+
bo,
|
|
1183
1214
|
!1,
|
|
1184
1215
|
null,
|
|
1185
1216
|
null
|
|
1186
1217
|
);
|
|
1187
|
-
const
|
|
1218
|
+
const Ro = Eo.exports, Lo = {
|
|
1188
1219
|
"en-US": {
|
|
1189
1220
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1190
1221
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1191
1222
|
}
|
|
1192
|
-
},
|
|
1193
|
-
i18n: { messages:
|
|
1223
|
+
}, yo = ve({
|
|
1224
|
+
i18n: { messages: Lo },
|
|
1194
1225
|
name: "bento-data-grid",
|
|
1195
1226
|
components: {
|
|
1196
1227
|
BentoFreezeIcon: Pt,
|
|
1197
|
-
BentoToggle:
|
|
1228
|
+
BentoToggle: Bt
|
|
1198
1229
|
},
|
|
1199
1230
|
props: {
|
|
1200
1231
|
/**
|
|
@@ -1214,57 +1245,57 @@ const Ao = Lo.exports, To = {
|
|
|
1214
1245
|
},
|
|
1215
1246
|
emits: ["visible-column", "updated-column"],
|
|
1216
1247
|
setup(s, { emit: t }) {
|
|
1217
|
-
const { t: n } =
|
|
1218
|
-
var
|
|
1219
|
-
return (
|
|
1220
|
-
}), l =
|
|
1221
|
-
var
|
|
1222
|
-
return ((
|
|
1248
|
+
const { t: n } = me(), e = p(!1), o = v(() => {
|
|
1249
|
+
var R;
|
|
1250
|
+
return (R = s.column) == null ? void 0 : R.frozen;
|
|
1251
|
+
}), l = v(() => {
|
|
1252
|
+
var R;
|
|
1253
|
+
return ((R = s.column) == null ? void 0 : R.visible) !== !1;
|
|
1223
1254
|
}), a = _e(
|
|
1224
1255
|
Ae,
|
|
1225
|
-
|
|
1226
|
-
),
|
|
1256
|
+
v(() => !1)
|
|
1257
|
+
), i = () => {
|
|
1227
1258
|
t("visible-column", { ...s.column, visible: !l.value });
|
|
1228
|
-
},
|
|
1259
|
+
}, _ = () => {
|
|
1229
1260
|
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1230
|
-
},
|
|
1261
|
+
}, g = () => {
|
|
1231
1262
|
o.value || (e.value = !0);
|
|
1232
|
-
},
|
|
1263
|
+
}, w = () => {
|
|
1233
1264
|
o.value || (e.value = !1);
|
|
1234
|
-
},
|
|
1265
|
+
}, h = v(() => ({
|
|
1235
1266
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1236
1267
|
}));
|
|
1237
1268
|
return {
|
|
1238
1269
|
// Values
|
|
1239
1270
|
isFreezeIconOptionShown: e,
|
|
1240
1271
|
isColumnFrozen: o,
|
|
1241
|
-
freezeIconConditionalClasses:
|
|
1272
|
+
freezeIconConditionalClasses: h,
|
|
1242
1273
|
isColumnVisible: l,
|
|
1243
1274
|
isSmallContainer: a,
|
|
1244
1275
|
// Methods
|
|
1245
|
-
toggleColumnVisibility:
|
|
1246
|
-
showFreezeIcon:
|
|
1247
|
-
hideFreezeIcon:
|
|
1248
|
-
toggleColumnFreeze:
|
|
1276
|
+
toggleColumnVisibility: i,
|
|
1277
|
+
showFreezeIcon: g,
|
|
1278
|
+
hideFreezeIcon: w,
|
|
1279
|
+
toggleColumnFreeze: _,
|
|
1249
1280
|
// Translations
|
|
1250
1281
|
t: n
|
|
1251
1282
|
};
|
|
1252
1283
|
}
|
|
1253
1284
|
});
|
|
1254
|
-
var
|
|
1285
|
+
var Ao = function() {
|
|
1255
1286
|
var t = this, n = t._self._c;
|
|
1256
1287
|
return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: (t.isColumnFrozen || t.isFreezeIconOptionShown) && !t.isSmallContainer, expression: "(isColumnFrozen || isFreezeIconOptionShown) && !isSmallContainer" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
|
|
1257
1288
|
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1258
1289
|
} } })], 1);
|
|
1259
|
-
},
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1290
|
+
}, To = [], Oo = /* @__PURE__ */ K(
|
|
1291
|
+
yo,
|
|
1292
|
+
Ao,
|
|
1293
|
+
To,
|
|
1263
1294
|
!1,
|
|
1264
1295
|
null,
|
|
1265
1296
|
"b49cbd8d"
|
|
1266
1297
|
);
|
|
1267
|
-
const
|
|
1298
|
+
const No = Oo.exports, Io = {
|
|
1268
1299
|
"en-US": {
|
|
1269
1300
|
appearance: "Appearance",
|
|
1270
1301
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
@@ -1292,22 +1323,22 @@ const xo = Do.exports, Bo = {
|
|
|
1292
1323
|
condensed: "Condensado",
|
|
1293
1324
|
search: "Buscar"
|
|
1294
1325
|
}
|
|
1295
|
-
},
|
|
1296
|
-
i18n: { messages:
|
|
1326
|
+
}, Do = ve({
|
|
1327
|
+
i18n: { messages: Io },
|
|
1297
1328
|
name: "bento-data-grid",
|
|
1298
1329
|
components: {
|
|
1299
|
-
BentoButton:
|
|
1300
|
-
BentoCrossIcon:
|
|
1301
|
-
BentoPopover:
|
|
1302
|
-
BentoSettingsIcon:
|
|
1303
|
-
BentoToggleButton:
|
|
1304
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1305
|
-
BentoSearchBar:
|
|
1306
|
-
BentoSearchIcon:
|
|
1307
|
-
BentoToggle:
|
|
1308
|
-
BentoTypography:
|
|
1330
|
+
BentoButton: Dt,
|
|
1331
|
+
BentoCrossIcon: Ot,
|
|
1332
|
+
BentoPopover: Qn,
|
|
1333
|
+
BentoSettingsIcon: Ro,
|
|
1334
|
+
BentoToggleButton: je,
|
|
1335
|
+
BentoDataGridConfigSettingsConfigRow: No,
|
|
1336
|
+
BentoSearchBar: us,
|
|
1337
|
+
BentoSearchIcon: gs,
|
|
1338
|
+
BentoToggle: Bt,
|
|
1339
|
+
BentoTypography: ye
|
|
1309
1340
|
},
|
|
1310
|
-
directives: { BentoClickOutsideDirective:
|
|
1341
|
+
directives: { BentoClickOutsideDirective: _s },
|
|
1311
1342
|
props: {
|
|
1312
1343
|
/**
|
|
1313
1344
|
* Column definitions
|
|
@@ -1337,70 +1368,70 @@ const xo = Do.exports, Bo = {
|
|
|
1337
1368
|
fe.UPDATE_ZEBRA_ROWS
|
|
1338
1369
|
],
|
|
1339
1370
|
setup(s, { emit: t }) {
|
|
1340
|
-
const { t: n } =
|
|
1341
|
-
|
|
1342
|
-
}, u =
|
|
1343
|
-
() => !s.columns.some((
|
|
1344
|
-
),
|
|
1345
|
-
|
|
1346
|
-
var
|
|
1347
|
-
return (
|
|
1371
|
+
const { t: n } = me(), e = p(null), o = Ie("data-grid-config-settings-popover"), l = p(null), a = p(!1), i = p(!0), _ = p(null), g = p(""), w = ze(s, "columns"), h = p(!1), R = fs(g, w), S = () => {
|
|
1372
|
+
g.value = "";
|
|
1373
|
+
}, u = v(
|
|
1374
|
+
() => !s.columns.some((f) => f.visible === !1 && !f.mandatory)
|
|
1375
|
+
), y = () => {
|
|
1376
|
+
S(), h.value = !h.value, h.value ? le(() => {
|
|
1377
|
+
var f;
|
|
1378
|
+
return (f = l.value.$refs.bentoInputField) == null ? void 0 : f.focusInput();
|
|
1348
1379
|
}) : le(() => {
|
|
1349
|
-
var
|
|
1350
|
-
return (
|
|
1351
|
-
}),
|
|
1352
|
-
},
|
|
1353
|
-
const
|
|
1354
|
-
...
|
|
1355
|
-
visible:
|
|
1380
|
+
var f, E;
|
|
1381
|
+
return (E = (f = _ == null ? void 0 : _.value) == null ? void 0 : f.$el) == null ? void 0 : E.focus();
|
|
1382
|
+
}), i.value = u.value;
|
|
1383
|
+
}, L = (f) => f.mandatory ?? !1, F = (f) => {
|
|
1384
|
+
const E = s.columns.map((T) => ({
|
|
1385
|
+
...T,
|
|
1386
|
+
visible: f.field === T.field ? f.visible : T.visible
|
|
1356
1387
|
}));
|
|
1357
|
-
t(fe.UPDATE_COLUMNS,
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1388
|
+
t(fe.UPDATE_COLUMNS, E);
|
|
1389
|
+
}, b = (f) => {
|
|
1390
|
+
f ? t(
|
|
1360
1391
|
fe.UPDATE_COLUMNS,
|
|
1361
|
-
s.columns.map((
|
|
1392
|
+
s.columns.map((E) => ({ ...E, visible: !0 }))
|
|
1362
1393
|
) : t(
|
|
1363
1394
|
fe.UPDATE_COLUMNS,
|
|
1364
|
-
s.columns.map((
|
|
1395
|
+
s.columns.map((E) => ({ ...E, visible: (E == null ? void 0 : E.mandatory) === !0 }))
|
|
1365
1396
|
);
|
|
1366
|
-
},
|
|
1367
|
-
const
|
|
1368
|
-
...
|
|
1369
|
-
frozen:
|
|
1397
|
+
}, d = (f) => {
|
|
1398
|
+
const E = s.columns.map((T) => ({
|
|
1399
|
+
...T,
|
|
1400
|
+
frozen: f.field === T.field ? !!(f != null && f.frozen) : !!(T != null && T.frozen)
|
|
1370
1401
|
}));
|
|
1371
|
-
t(fe.UPDATE_COLUMNS,
|
|
1372
|
-
},
|
|
1373
|
-
a.value =
|
|
1402
|
+
t(fe.UPDATE_COLUMNS, E);
|
|
1403
|
+
}, A = (f) => {
|
|
1404
|
+
a.value = f, i.value = u.value;
|
|
1374
1405
|
};
|
|
1375
1406
|
return {
|
|
1376
1407
|
// Values
|
|
1377
1408
|
configSettingsButtonRef: e,
|
|
1378
1409
|
popoverId: o,
|
|
1379
1410
|
isConfigSettingsPanelOpen: a,
|
|
1380
|
-
allColumnsVisbilityToggleState:
|
|
1381
|
-
filteredColumnVisibilityColumns:
|
|
1382
|
-
searchTerm:
|
|
1383
|
-
isColumnVisibilityFilterShown:
|
|
1411
|
+
allColumnsVisbilityToggleState: i,
|
|
1412
|
+
filteredColumnVisibilityColumns: R,
|
|
1413
|
+
searchTerm: g,
|
|
1414
|
+
isColumnVisibilityFilterShown: h,
|
|
1384
1415
|
searchBarRef: l,
|
|
1385
|
-
searchButtonRef:
|
|
1416
|
+
searchButtonRef: _,
|
|
1386
1417
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe,
|
|
1387
1418
|
// Methods
|
|
1388
|
-
setConfigSettingsPanelVisibility:
|
|
1389
|
-
emitCondensedToggle: (
|
|
1390
|
-
toggleAllColumnVisibility:
|
|
1391
|
-
clearAction:
|
|
1392
|
-
toggleColumnFilter:
|
|
1393
|
-
emitVisibleColumns:
|
|
1394
|
-
emitFrozenColumns:
|
|
1395
|
-
onClickOutside: () =>
|
|
1396
|
-
isColumnVisibilityToggleDisabled:
|
|
1397
|
-
emitZebraRowsToggle: (
|
|
1419
|
+
setConfigSettingsPanelVisibility: A,
|
|
1420
|
+
emitCondensedToggle: (f) => t(fe.UPDATE_CONDENSED, f),
|
|
1421
|
+
toggleAllColumnVisibility: b,
|
|
1422
|
+
clearAction: S,
|
|
1423
|
+
toggleColumnFilter: y,
|
|
1424
|
+
emitVisibleColumns: F,
|
|
1425
|
+
emitFrozenColumns: d,
|
|
1426
|
+
onClickOutside: () => A(!1),
|
|
1427
|
+
isColumnVisibilityToggleDisabled: L,
|
|
1428
|
+
emitZebraRowsToggle: (f) => t(fe.UPDATE_ZEBRA_ROWS, f),
|
|
1398
1429
|
// Translations
|
|
1399
1430
|
t: n
|
|
1400
1431
|
};
|
|
1401
1432
|
}
|
|
1402
1433
|
});
|
|
1403
|
-
var
|
|
1434
|
+
var xo = function() {
|
|
1404
1435
|
var t = this, n = t._self._c;
|
|
1405
1436
|
return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
|
|
1406
1437
|
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
@@ -1419,18 +1450,21 @@ var Mo = function() {
|
|
|
1419
1450
|
}, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
|
|
1420
1451
|
return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
|
|
1421
1452
|
}), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
|
|
1422
|
-
},
|
|
1453
|
+
}, Fo = [], Bo = /* @__PURE__ */ K(
|
|
1454
|
+
Do,
|
|
1455
|
+
xo,
|
|
1423
1456
|
Fo,
|
|
1424
|
-
Mo,
|
|
1425
|
-
Uo,
|
|
1426
1457
|
!1,
|
|
1427
1458
|
null,
|
|
1428
1459
|
"0e477266"
|
|
1429
1460
|
);
|
|
1430
|
-
const
|
|
1461
|
+
const Uo = Bo.exports, $t = {
|
|
1431
1462
|
"en-US": {
|
|
1463
|
+
filterBar: "Filters",
|
|
1432
1464
|
gettingYourData: "Getting your data",
|
|
1433
1465
|
loading: "Loading",
|
|
1466
|
+
noResults: "No results",
|
|
1467
|
+
pagination: "Pagination",
|
|
1434
1468
|
selectRow: "Select row",
|
|
1435
1469
|
showMore: "Show more",
|
|
1436
1470
|
sortAscending: "{field} sort ascending",
|
|
@@ -1445,52 +1479,52 @@ const $o = zo.exports, Wt = {
|
|
|
1445
1479
|
loading: "Carregando",
|
|
1446
1480
|
showMore: "Mostrar mais"
|
|
1447
1481
|
}
|
|
1448
|
-
},
|
|
1449
|
-
i18n: { messages:
|
|
1450
|
-
},
|
|
1451
|
-
...
|
|
1482
|
+
}, Mo = {
|
|
1483
|
+
i18n: { messages: $t }
|
|
1484
|
+
}, Po = /* @__PURE__ */ ve({
|
|
1485
|
+
...Mo,
|
|
1452
1486
|
__name: "data-grid-lazy-load",
|
|
1453
1487
|
props: {
|
|
1454
1488
|
loading: { type: Boolean },
|
|
1455
1489
|
isInfiniteScroll: { type: Boolean }
|
|
1456
1490
|
},
|
|
1457
1491
|
setup(s) {
|
|
1458
|
-
const { t } =
|
|
1459
|
-
return { __sfc: !0, t, BentoLoadingButton:
|
|
1492
|
+
const { t } = me();
|
|
1493
|
+
return { __sfc: !0, t, BentoLoadingButton: ts, BentoLoadingButtonState: es, BentoLoadingIndicator: He, BentoDatagridEvent: N };
|
|
1460
1494
|
}
|
|
1461
1495
|
});
|
|
1462
|
-
var
|
|
1496
|
+
var zo = function() {
|
|
1463
1497
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1464
1498
|
return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
|
|
1465
1499
|
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1466
1500
|
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1467
|
-
},
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1501
|
+
}, $o = [], ko = /* @__PURE__ */ K(
|
|
1502
|
+
Po,
|
|
1503
|
+
zo,
|
|
1504
|
+
$o,
|
|
1471
1505
|
!1,
|
|
1472
1506
|
null,
|
|
1473
1507
|
"fd9b8204"
|
|
1474
1508
|
);
|
|
1475
|
-
const
|
|
1476
|
-
let
|
|
1477
|
-
const
|
|
1509
|
+
const Wo = ko.exports;
|
|
1510
|
+
let Rt = 0;
|
|
1511
|
+
const Go = {
|
|
1478
1512
|
beforeCreate() {
|
|
1479
|
-
this.uuid =
|
|
1513
|
+
this.uuid = Rt.toString(), Rt += 1;
|
|
1480
1514
|
}
|
|
1481
1515
|
};
|
|
1482
|
-
var
|
|
1516
|
+
var Ho = function() {
|
|
1483
1517
|
var t = this, n = t._self._c;
|
|
1484
1518
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M9.38867 2.21717C10.4626 1.14323 12.2044 1.14323 13.2783 2.21717L13.7832 2.72205C14.857 3.79601 14.8571 5.53782 13.7832 6.6117L5.64355 14.7504H1.25V10.3558L9.38867 2.21717ZM2.75 10.9769V13.2504H5.02246L11.2715 6.9994L8.99902 4.72693L2.75 10.9769ZM12.2168 3.27772C11.7286 2.78987 10.9373 2.78967 10.4492 3.27772L10.0596 3.66639L12.332 5.93885L12.7217 5.55018C13.2098 5.06203 13.2098 4.27076 12.7217 3.7826L12.2168 3.27772Z" } })]);
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1519
|
+
}, Vo = [], Zo = /* @__PURE__ */ K(
|
|
1520
|
+
Go,
|
|
1521
|
+
Ho,
|
|
1522
|
+
Vo,
|
|
1489
1523
|
!1,
|
|
1490
1524
|
null,
|
|
1491
1525
|
null
|
|
1492
1526
|
);
|
|
1493
|
-
const
|
|
1527
|
+
const Lt = Zo.exports, jo = {
|
|
1494
1528
|
"en-US": {
|
|
1495
1529
|
copy: "Copy",
|
|
1496
1530
|
edit: "Edit",
|
|
@@ -1509,11 +1543,11 @@ const At = Ko.exports, Yo = {
|
|
|
1509
1543
|
more: "Mais",
|
|
1510
1544
|
open: "Abrir"
|
|
1511
1545
|
}
|
|
1512
|
-
},
|
|
1513
|
-
i18n: { messages:
|
|
1546
|
+
}, qo = {
|
|
1547
|
+
i18n: { messages: jo },
|
|
1514
1548
|
name: "data-grid-cell-actions"
|
|
1515
|
-
},
|
|
1516
|
-
...
|
|
1549
|
+
}, Ko = /* @__PURE__ */ ve({
|
|
1550
|
+
...qo,
|
|
1517
1551
|
props: {
|
|
1518
1552
|
/**
|
|
1519
1553
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1582,10 +1616,10 @@ const At = Ko.exports, Yo = {
|
|
|
1582
1616
|
},
|
|
1583
1617
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1584
1618
|
setup(s, { emit: t }) {
|
|
1585
|
-
const n = s, { t: e } =
|
|
1586
|
-
if ("text" in
|
|
1587
|
-
return
|
|
1588
|
-
switch (
|
|
1619
|
+
const n = s, { t: e } = me(), o = _e(De, p(!1)), l = (d) => {
|
|
1620
|
+
if ("text" in d && d.text !== void 0)
|
|
1621
|
+
return d.text;
|
|
1622
|
+
switch (d.variant) {
|
|
1589
1623
|
case "copy":
|
|
1590
1624
|
return e("copy");
|
|
1591
1625
|
case "edit":
|
|
@@ -1595,63 +1629,63 @@ const At = Ko.exports, Yo = {
|
|
|
1595
1629
|
case "more":
|
|
1596
1630
|
return e("more");
|
|
1597
1631
|
default:
|
|
1598
|
-
return
|
|
1632
|
+
return d.title;
|
|
1599
1633
|
}
|
|
1600
|
-
}, a = (
|
|
1601
|
-
switch (
|
|
1634
|
+
}, a = (d) => {
|
|
1635
|
+
switch (d.variant) {
|
|
1602
1636
|
case "copy":
|
|
1603
|
-
return
|
|
1637
|
+
return dt;
|
|
1604
1638
|
case "edit":
|
|
1605
|
-
return
|
|
1639
|
+
return Lt;
|
|
1606
1640
|
case "open":
|
|
1607
|
-
return
|
|
1641
|
+
return ct;
|
|
1608
1642
|
default:
|
|
1609
1643
|
return;
|
|
1610
1644
|
}
|
|
1611
|
-
},
|
|
1612
|
-
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow":
|
|
1645
|
+
}, i = v(() => n.columnKey === void 0), _ = v(() => ({
|
|
1646
|
+
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": i.value && n.hasRightOverflow,
|
|
1613
1647
|
"b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
|
|
1614
1648
|
"b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
|
|
1615
1649
|
"b-data-grid-cell-actions__background-gradient--selected": n.isSelected
|
|
1616
|
-
})),
|
|
1617
|
-
"b-data-grid-cell-actions__actions--with-row-actions":
|
|
1650
|
+
})), g = v(() => ({
|
|
1651
|
+
"b-data-grid-cell-actions__actions--with-row-actions": i.value,
|
|
1618
1652
|
"b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
|
|
1619
1653
|
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
1620
1654
|
"b-data-grid-cell-actions__actions--selected": n.isSelected
|
|
1621
|
-
})),
|
|
1622
|
-
function
|
|
1623
|
-
return typeof
|
|
1655
|
+
})), w = v(() => !i.value || i.value && n.hasRightOverflow);
|
|
1656
|
+
function h(d) {
|
|
1657
|
+
return typeof d == "function";
|
|
1624
1658
|
}
|
|
1625
|
-
const
|
|
1626
|
-
var
|
|
1627
|
-
const
|
|
1628
|
-
if (o.value && !
|
|
1629
|
-
const
|
|
1630
|
-
return
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
}) :
|
|
1634
|
-
text: l(
|
|
1635
|
-
event:
|
|
1636
|
-
critical:
|
|
1637
|
-
disabled:
|
|
1638
|
-
icon: a(
|
|
1659
|
+
const R = v(() => {
|
|
1660
|
+
var A;
|
|
1661
|
+
const d = h(n.cellActions) ? (A = n.cellActions) == null ? void 0 : A.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1662
|
+
if (o.value && !i.value && d) {
|
|
1663
|
+
const O = [];
|
|
1664
|
+
return d.forEach((D) => {
|
|
1665
|
+
D.menuData ? D.menuData.forEach((r) => {
|
|
1666
|
+
O.push(r);
|
|
1667
|
+
}) : O.push({
|
|
1668
|
+
text: l(D),
|
|
1669
|
+
event: D.event,
|
|
1670
|
+
critical: D.critical,
|
|
1671
|
+
disabled: D.disabled,
|
|
1672
|
+
icon: a(D)
|
|
1639
1673
|
});
|
|
1640
1674
|
}), [
|
|
1641
1675
|
{
|
|
1642
1676
|
variant: "more",
|
|
1643
1677
|
isShort: !0,
|
|
1644
|
-
iconLeft:
|
|
1645
|
-
menuData: O
|
|
1678
|
+
iconLeft: rt,
|
|
1679
|
+
menuData: L(O)
|
|
1646
1680
|
}
|
|
1647
1681
|
];
|
|
1648
1682
|
}
|
|
1649
|
-
return !o.value && (
|
|
1683
|
+
return !o.value && (d == null ? void 0 : d.length) > 2 && Nt(
|
|
1650
1684
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1651
|
-
),
|
|
1652
|
-
}),
|
|
1653
|
-
if (!(!
|
|
1654
|
-
switch (
|
|
1685
|
+
), d == null ? void 0 : d.slice(0, 2);
|
|
1686
|
+
}), S = v(() => (d, A) => {
|
|
1687
|
+
if (!(!A && d.isShort || A && !d.isShort))
|
|
1688
|
+
switch (d.variant) {
|
|
1655
1689
|
case "copy":
|
|
1656
1690
|
return e("copy");
|
|
1657
1691
|
case "edit":
|
|
@@ -1661,28 +1695,28 @@ const At = Ko.exports, Yo = {
|
|
|
1661
1695
|
case "more":
|
|
1662
1696
|
return e("more");
|
|
1663
1697
|
default:
|
|
1664
|
-
return
|
|
1698
|
+
return d.title;
|
|
1665
1699
|
}
|
|
1666
|
-
}), u = (
|
|
1667
|
-
click: (
|
|
1668
|
-
|
|
1700
|
+
}), u = (d) => (d == null ? void 0 : d.event) !== void 0 ? {
|
|
1701
|
+
click: (A) => {
|
|
1702
|
+
A.stopPropagation(), d.event(n.rowDataItem, n.columnKey);
|
|
1669
1703
|
}
|
|
1670
|
-
} : {},
|
|
1671
|
-
...
|
|
1704
|
+
} : {}, y = (d) => ({
|
|
1705
|
+
...d,
|
|
1672
1706
|
handler: () => {
|
|
1673
|
-
|
|
1707
|
+
d != null && d.handler && typeof d.handler == "function" && (d == null || d.handler()), d != null && d.event && typeof d.event == "function" && (d == null || d.event(n.rowDataItem, n.columnKey));
|
|
1674
1708
|
}
|
|
1675
|
-
}),
|
|
1676
|
-
const
|
|
1677
|
-
return
|
|
1709
|
+
}), L = (d) => d.map((A) => {
|
|
1710
|
+
const O = A;
|
|
1711
|
+
return O != null && O.items && (O.items = L(O.items)), { ...y(O) };
|
|
1678
1712
|
});
|
|
1679
|
-
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions:
|
|
1680
|
-
var
|
|
1681
|
-
return (
|
|
1682
|
-
}, shouldShowMenuIconLeft: (
|
|
1713
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: i, conditionalCellActionsBackgroundGradientClasses: _, conditionalCellActionsClasses: g, showGradientElement: w, isBentoColumnCellActionsByCellValueDataFn: h, computedCellActions: R, getButtonTitle: S, generateButtonEvents: u, generateMenuEvents: y, transformMenuEvents: L, getCopyText: (d) => {
|
|
1714
|
+
var A, O;
|
|
1715
|
+
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (O = (A = n.rowDataItem) == null ? void 0 : A[n.columnKey]) == null ? void 0 : O.toString() : "";
|
|
1716
|
+
}, shouldShowMenuIconLeft: (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more", BentoButton: Dt, BentoMenu: xt, Copy: dt, Edit1Icon: Lt, ExternalLinkIcon: ct, OptionsVerticalIcon: rt };
|
|
1683
1717
|
}
|
|
1684
1718
|
});
|
|
1685
|
-
var
|
|
1719
|
+
var Yo = function() {
|
|
1686
1720
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1687
1721
|
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement && !e.isTouchDevice ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, l) {
|
|
1688
1722
|
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
@@ -1710,30 +1744,30 @@ var Qo = function() {
|
|
|
1710
1744
|
return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1711
1745
|
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1712
1746
|
}), 0)])]);
|
|
1713
|
-
},
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1747
|
+
}, Jo = [], Xo = /* @__PURE__ */ K(
|
|
1748
|
+
Ko,
|
|
1749
|
+
Yo,
|
|
1750
|
+
Jo,
|
|
1717
1751
|
!1,
|
|
1718
1752
|
null,
|
|
1719
1753
|
"b4facd10"
|
|
1720
1754
|
);
|
|
1721
|
-
const
|
|
1755
|
+
const kt = Xo.exports;
|
|
1722
1756
|
var J = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(J || {});
|
|
1723
|
-
const
|
|
1757
|
+
const yt = () => {
|
|
1724
1758
|
const s = document.activeElement;
|
|
1725
1759
|
return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
|
|
1726
|
-
},
|
|
1760
|
+
}, Qo = {
|
|
1727
1761
|
"en-US": {
|
|
1728
1762
|
collapseNestedContent: "Collapse nested content",
|
|
1729
1763
|
expandNestedContent: "Expand nested content",
|
|
1730
1764
|
selectRow: "Select row"
|
|
1731
1765
|
}
|
|
1732
|
-
},
|
|
1733
|
-
i18n: { messages:
|
|
1766
|
+
}, el = {
|
|
1767
|
+
i18n: { messages: Qo },
|
|
1734
1768
|
name: "data-grid-cell"
|
|
1735
|
-
},
|
|
1736
|
-
...
|
|
1769
|
+
}, tl = /* @__PURE__ */ ve({
|
|
1770
|
+
...el,
|
|
1737
1771
|
props: {
|
|
1738
1772
|
draggingEventsForRowCell: {
|
|
1739
1773
|
type: Function,
|
|
@@ -1876,104 +1910,104 @@ const Tt = () => {
|
|
|
1876
1910
|
},
|
|
1877
1911
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1878
1912
|
setup(s, { expose: t, emit: n }) {
|
|
1879
|
-
const e = s, o =
|
|
1880
|
-
var
|
|
1881
|
-
return !!((
|
|
1882
|
-
}),
|
|
1913
|
+
const e = s, o = Ge(), l = Ve(o), { t: a } = me(), i = p(null), _ = p(null), g = p(!1), w = p([]), h = p(!1), R = p(), S = p(!1), u = v(() => {
|
|
1914
|
+
var C;
|
|
1915
|
+
return !!((C = e.rowData) != null && C[e.column.field]);
|
|
1916
|
+
}), y = v(
|
|
1883
1917
|
() => {
|
|
1884
|
-
var
|
|
1885
|
-
return e.column.field === oe && ((
|
|
1918
|
+
var C;
|
|
1919
|
+
return e.column.field === oe && ((C = e.nestedRowsElementIds) == null ? void 0 : C.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1886
1920
|
}
|
|
1887
|
-
),
|
|
1921
|
+
), L = v(
|
|
1888
1922
|
() => e.column.field === oe && !e.selectable && !e.nestedContent
|
|
1889
|
-
),
|
|
1890
|
-
var
|
|
1891
|
-
(
|
|
1892
|
-
},
|
|
1893
|
-
|
|
1894
|
-
},
|
|
1895
|
-
const
|
|
1896
|
-
...e.draggingEventsForRowCell(
|
|
1923
|
+
), F = v(() => !L.value && (D(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !S.value || h.value) ? "0" : (e.column.field === oe, "-1")), b = (C, z) => (C == null ? void 0 : C.overflow) === $e.ELLIPSIS ? `${z}` : void 0, d = (C) => C ?? "-", A = (C) => e.columnSets.slice(0, C).reduce((z, { columnSet: k }) => z + k.length, 0), O = (C, z) => C + A(z), D = (C, z, k) => A() * C + O(z, k), r = (C) => {
|
|
1924
|
+
var z;
|
|
1925
|
+
(C === null || !i.value.contains(C) && !((z = w.value) != null && z.map((k) => k.value).some((k) => k === C || (k == null ? void 0 : k.contains(C))))) && (g.value = !1);
|
|
1926
|
+
}, f = () => {
|
|
1927
|
+
g.value = !1;
|
|
1928
|
+
}, E = p(!1), T = (C) => {
|
|
1929
|
+
const z = {
|
|
1930
|
+
...e.draggingEventsForRowCell(C),
|
|
1897
1931
|
// Focus on the first interactive child in the grid cell if one exists
|
|
1898
1932
|
focus: async () => {
|
|
1899
|
-
if (!
|
|
1933
|
+
if (!yt())
|
|
1900
1934
|
return;
|
|
1901
|
-
|
|
1935
|
+
h.value = !0, S.value = !0, Mt(R.value), await le(), qe(i.value) && (E.value = !0);
|
|
1902
1936
|
},
|
|
1903
1937
|
focusout: () => {
|
|
1904
|
-
|
|
1938
|
+
yt() && (E.value = !1);
|
|
1905
1939
|
},
|
|
1906
1940
|
keydown: ($) => {
|
|
1907
|
-
$.key !==
|
|
1941
|
+
$.key !== ce.TAB && (E.value = !1, h.value = !1, we(i.value));
|
|
1908
1942
|
}
|
|
1909
|
-
},
|
|
1910
|
-
return
|
|
1911
|
-
|
|
1912
|
-
}),
|
|
1913
|
-
|
|
1914
|
-
},
|
|
1915
|
-
|
|
1916
|
-
},
|
|
1917
|
-
|
|
1918
|
-
},
|
|
1919
|
-
|
|
1920
|
-
}),
|
|
1943
|
+
}, k = { ...z };
|
|
1944
|
+
return C.frozen && (k.keyup = ($) => n("on-frozen-columns-key-press", $), k.keydown = ($) => {
|
|
1945
|
+
z.keydown($), n("on-frozen-columns-key-press", $);
|
|
1946
|
+
}), C.cellActions && (k.mouseenter = () => {
|
|
1947
|
+
g.value = !0;
|
|
1948
|
+
}, k.mouseleave = ($) => {
|
|
1949
|
+
r($ == null ? void 0 : $.relatedTarget);
|
|
1950
|
+
}, k.focus = async ($) => {
|
|
1951
|
+
z.focus($), await le(), g.value = !0;
|
|
1952
|
+
}, k.focusout = ($) => {
|
|
1953
|
+
z.focusout($), r($ == null ? void 0 : $.relatedTarget);
|
|
1954
|
+
}), k;
|
|
1921
1955
|
};
|
|
1922
|
-
|
|
1923
|
-
|
|
1956
|
+
be(() => {
|
|
1957
|
+
R.value = we(i.value);
|
|
1924
1958
|
});
|
|
1925
|
-
const
|
|
1959
|
+
const B = () => {
|
|
1926
1960
|
n("nested-content-toggled");
|
|
1927
1961
|
};
|
|
1928
1962
|
ae(
|
|
1929
|
-
() =>
|
|
1963
|
+
() => g.value,
|
|
1930
1964
|
() => {
|
|
1931
|
-
|
|
1965
|
+
g.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
1932
1966
|
}
|
|
1933
1967
|
);
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1968
|
+
const U = (C) => {
|
|
1969
|
+
w.value.push(C);
|
|
1970
|
+
}, G = (C) => {
|
|
1971
|
+
i.value.contains(C == null ? void 0 : C.relatedTarget) || (g.value = !1);
|
|
1938
1972
|
};
|
|
1939
|
-
|
|
1940
|
-
registerMenuContainerElement:
|
|
1941
|
-
menuMouseLeave:
|
|
1973
|
+
Oe(ns, {
|
|
1974
|
+
registerMenuContainerElement: U,
|
|
1975
|
+
menuMouseLeave: G
|
|
1942
1976
|
});
|
|
1943
|
-
const
|
|
1977
|
+
const Y = _e(zt, p(!1)), q = _e(
|
|
1944
1978
|
Ae,
|
|
1945
|
-
|
|
1946
|
-
),
|
|
1947
|
-
var
|
|
1979
|
+
v(() => !1)
|
|
1980
|
+
), X = _e(De, p(!1)), W = (C) => {
|
|
1981
|
+
var z, k, $, Ce, de, ie, c;
|
|
1948
1982
|
return {
|
|
1949
|
-
[`b-data-grid-cell--${J.COLUMN_HOVERED}`]: (
|
|
1950
|
-
[`b-data-grid-cell--${J.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (
|
|
1951
|
-
[`b-data-grid-cell--${J.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (
|
|
1952
|
-
[`b-data-grid-cell--${J.PADDING_LEFT_UNSET}`]: ((
|
|
1953
|
-
[`b-data-grid-cell--${J.PADDING_RIGHT_UNSET}`]: ((
|
|
1954
|
-
[`b-data-grid-cell--${J.NUMERIC}`]:
|
|
1983
|
+
[`b-data-grid-cell--${J.COLUMN_HOVERED}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1984
|
+
[`b-data-grid-cell--${J.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1985
|
+
[`b-data-grid-cell--${J.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1986
|
+
[`b-data-grid-cell--${J.PADDING_LEFT_UNSET}`]: ((z = C == null ? void 0 : C.padding) == null ? void 0 : z.left) === !1,
|
|
1987
|
+
[`b-data-grid-cell--${J.PADDING_RIGHT_UNSET}`]: ((k = C == null ? void 0 : C.padding) == null ? void 0 : k.right) === !1,
|
|
1988
|
+
[`b-data-grid-cell--${J.NUMERIC}`]: C == null ? void 0 : C.numeric,
|
|
1955
1989
|
[`b-data-grid-cell--${J.CONDENSED}`]: e.condensed,
|
|
1956
|
-
[`b-data-grid-cell--${J.OVERFLOW_ELLIPSIS}`]: (
|
|
1957
|
-
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING}`]: (($ = e.draggingColumns.dragging) == null ? void 0 : $.field) ===
|
|
1958
|
-
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((
|
|
1959
|
-
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((
|
|
1960
|
-
[`b-data-grid-cell--${J.FROZEN}`]:
|
|
1990
|
+
[`b-data-grid-cell--${J.OVERFLOW_ELLIPSIS}`]: (C == null ? void 0 : C.overflow) === $e.ELLIPSIS,
|
|
1991
|
+
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING}`]: (($ = e.draggingColumns.dragging) == null ? void 0 : $.field) === C.field,
|
|
1992
|
+
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ce = e.draggingColumns.target) == null ? void 0 : Ce.field) === C.field && ((de = e.draggingColumns) == null ? void 0 : de.dragToLeft),
|
|
1993
|
+
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((ie = e.draggingColumns.target) == null ? void 0 : ie.field) === C.field && !((c = e.draggingColumns) != null && c.dragToLeft),
|
|
1994
|
+
[`b-data-grid-cell--${J.FROZEN}`]: C == null ? void 0 : C.frozen,
|
|
1961
1995
|
[`b-data-grid-cell--${J.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
1962
|
-
[`b-data-grid-cell--${J.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable &&
|
|
1963
|
-
[`b-data-grid-cell--${J.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable &&
|
|
1964
|
-
[`b-data-grid-cell--${J.ACTION_COL_SELECTION_ENABLED}`]:
|
|
1965
|
-
[`b-data-grid-cell--${J.SLASHED_ZERO}`]:
|
|
1966
|
-
"b-data-grid-cell--small-container":
|
|
1996
|
+
[`b-data-grid-cell--${J.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && C.field === oe,
|
|
1997
|
+
[`b-data-grid-cell--${J.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && C.field === oe,
|
|
1998
|
+
[`b-data-grid-cell--${J.ACTION_COL_SELECTION_ENABLED}`]: C.field === oe && e.selectable,
|
|
1999
|
+
[`b-data-grid-cell--${J.SLASHED_ZERO}`]: Y.value,
|
|
2000
|
+
"b-data-grid-cell--small-container": q.value
|
|
1967
2001
|
};
|
|
1968
|
-
}, M =
|
|
1969
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element":
|
|
2002
|
+
}, M = v(() => ({
|
|
2003
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": E.value
|
|
1970
2004
|
}));
|
|
1971
2005
|
return t({
|
|
1972
|
-
gridcellRef:
|
|
1973
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef:
|
|
2006
|
+
gridcellRef: i
|
|
2007
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: i, cellActionsRef: _, shouldShowCellActions: g, childrenMenuContainerElements: w, isFocused: h, focusableItems: R, hasEverBeenFocused: S, hasRowData: u, controlledNestedRowElementIds: y, ariaHidden: L, tabIndex: F, conditionalTitleAttribute: b, getRowData: d, sumColumnAmountsInColumnSets: A, getColIndex: O, getCellIndex: D, isLeavingCellFocus: r, onMenuClose: f, hasInteractiveElFocusedInside: E, getGridcellEvents: T, toggleNestedContent: B, registerMenuContainerElement: U, menuMouseLeave: G, hasSlashedZero: Y, isSmallContainer: q, isTouchDevice: X, conditionalRowCellClasses: W, computedCellContentClasses: M, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe, BentoCheckbox: It, BentoTypography: ye, BentoToggleButton: je, DataGridCellActions: kt, ChevronDownIcon: ss, ChevronUpIcon: os };
|
|
1974
2008
|
}
|
|
1975
2009
|
});
|
|
1976
|
-
var
|
|
2010
|
+
var nl = function() {
|
|
1977
2011
|
var o;
|
|
1978
2012
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1979
2013
|
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
@@ -1985,18 +2019,18 @@ var ll = function() {
|
|
|
1985
2019
|
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1986
2020
|
return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
|
|
1987
2021
|
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [(e.shouldShowCellActions || e.isTouchDevice) && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData, "has-zebra-background": t.hasZebraBackground, "is-highlighted": t.isHighlighted, "is-selected": t.isSelected, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1988
|
-
},
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
2022
|
+
}, sl = [], ol = /* @__PURE__ */ K(
|
|
2023
|
+
tl,
|
|
2024
|
+
nl,
|
|
2025
|
+
sl,
|
|
1992
2026
|
!1,
|
|
1993
2027
|
null,
|
|
1994
|
-
"
|
|
2028
|
+
"132d5a4d"
|
|
1995
2029
|
);
|
|
1996
|
-
const
|
|
2030
|
+
const ll = ol.exports, al = {
|
|
1997
2031
|
name: "data-grid-row"
|
|
1998
|
-
},
|
|
1999
|
-
...
|
|
2032
|
+
}, il = /* @__PURE__ */ ve({
|
|
2033
|
+
...al,
|
|
2000
2034
|
props: {
|
|
2001
2035
|
/**
|
|
2002
2036
|
* Row actions property that generates which button to show in row actions area
|
|
@@ -2204,35 +2238,35 @@ const rl = il.exports, dl = {
|
|
|
2204
2238
|
},
|
|
2205
2239
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2206
2240
|
setup(s, { expose: t, emit: n }) {
|
|
2207
|
-
const e = s, o =
|
|
2208
|
-
|
|
2209
|
-
|
|
2241
|
+
const e = s, o = Ge(), l = Ve(o), a = p({}), i = p(!1), _ = p(), g = p(), w = Ie("nested-content-slot"), h = p(!1), R = p();
|
|
2242
|
+
be(() => {
|
|
2243
|
+
g.value && (R.value = we(g.value));
|
|
2210
2244
|
});
|
|
2211
|
-
const
|
|
2245
|
+
const S = v(() => e.shouldShowNestedRows(e.rowData)), u = v(
|
|
2212
2246
|
() => {
|
|
2213
|
-
var
|
|
2214
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
2247
|
+
var m, x;
|
|
2248
|
+
return !e.isNestedRow && e.hasNestedRows && S.value && ((x = (m = e.rowData) == null ? void 0 : m.children) == null ? void 0 : x.length) > 0;
|
|
2215
2249
|
}
|
|
2216
|
-
),
|
|
2250
|
+
), y = v(
|
|
2217
2251
|
() => {
|
|
2218
|
-
var
|
|
2219
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
2252
|
+
var m, x;
|
|
2253
|
+
return !e.isNestedRow && e.hasNestedRows && S.value && (((m = e.rowData) == null ? void 0 : m.children) === void 0 || ((x = e == null ? void 0 : e.rowData) == null ? void 0 : x.children.length) === 0);
|
|
2220
2254
|
}
|
|
2221
|
-
),
|
|
2222
|
-
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows &&
|
|
2223
|
-
),
|
|
2255
|
+
), L = v(
|
|
2256
|
+
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && S.value && !e.isNestedRow
|
|
2257
|
+
), F = v(() => {
|
|
2224
2258
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2225
|
-
const
|
|
2259
|
+
const m = i.value.toString();
|
|
2226
2260
|
return {
|
|
2227
|
-
"aria-expanded":
|
|
2261
|
+
"aria-expanded": L.value ? m : void 0,
|
|
2228
2262
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2229
2263
|
"aria-posinset": e.rowIndex + 1,
|
|
2230
2264
|
"aria-setsize": e.rowSetSize
|
|
2231
2265
|
};
|
|
2232
2266
|
}
|
|
2233
2267
|
return { "aria-rowindex": e.rowIndex + 1 };
|
|
2234
|
-
}),
|
|
2235
|
-
if (
|
|
2268
|
+
}), b = v(() => {
|
|
2269
|
+
if (y.value)
|
|
2236
2270
|
return {
|
|
2237
2271
|
"aria-busy": "true",
|
|
2238
2272
|
"aria-live": "polite"
|
|
@@ -2242,199 +2276,199 @@ const rl = il.exports, dl = {
|
|
|
2242
2276
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2243
2277
|
"aria-posinset": "1",
|
|
2244
2278
|
"aria-setsize": "1",
|
|
2245
|
-
id:
|
|
2279
|
+
id: w,
|
|
2246
2280
|
role: "row",
|
|
2247
2281
|
tabindex: "-1"
|
|
2248
2282
|
};
|
|
2249
|
-
}),
|
|
2250
|
-
var
|
|
2251
|
-
return u.value ? (x = (
|
|
2252
|
-
}),
|
|
2253
|
-
var
|
|
2254
|
-
if (
|
|
2283
|
+
}), d = v(() => {
|
|
2284
|
+
var m, x;
|
|
2285
|
+
return u.value ? (x = (m = e.rowData) == null ? void 0 : m.children) == null ? void 0 : x.reduce((H, Q, re) => (H[re] = Ie("nested-row"), H), {}) : [];
|
|
2286
|
+
}), A = v(() => {
|
|
2287
|
+
var m;
|
|
2288
|
+
if (i.value) {
|
|
2255
2289
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2256
|
-
return [
|
|
2257
|
-
if (u.value && ((
|
|
2258
|
-
const x = Object.values(
|
|
2290
|
+
return [w];
|
|
2291
|
+
if (u.value && ((m = Object.keys(d.value)) == null ? void 0 : m.length) > 0) {
|
|
2292
|
+
const x = Object.values(d.value);
|
|
2259
2293
|
if ((x == null ? void 0 : x.length) > 0)
|
|
2260
2294
|
return x;
|
|
2261
2295
|
}
|
|
2262
2296
|
return [];
|
|
2263
2297
|
}
|
|
2264
|
-
}),
|
|
2265
|
-
var x,
|
|
2266
|
-
const
|
|
2267
|
-
if ((
|
|
2268
|
-
const Q =
|
|
2269
|
-
var
|
|
2270
|
-
return (
|
|
2271
|
-
}),
|
|
2272
|
-
var
|
|
2273
|
-
return (
|
|
2298
|
+
}), O = v(() => {
|
|
2299
|
+
var x, H;
|
|
2300
|
+
const m = (H = (x = e.rowData) == null ? void 0 : x.children) == null ? void 0 : H.map((Q) => e.getDataItemId(Q));
|
|
2301
|
+
if ((m == null ? void 0 : m.length) > 0) {
|
|
2302
|
+
const Q = m.every((ue) => {
|
|
2303
|
+
var Z;
|
|
2304
|
+
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(ue);
|
|
2305
|
+
}), re = m.some((ue) => {
|
|
2306
|
+
var Z;
|
|
2307
|
+
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(ue);
|
|
2274
2308
|
});
|
|
2275
|
-
return !Q &&
|
|
2309
|
+
return !Q && re;
|
|
2276
2310
|
}
|
|
2277
2311
|
return !1;
|
|
2278
|
-
}),
|
|
2279
|
-
const
|
|
2280
|
-
|
|
2281
|
-
},
|
|
2312
|
+
}), D = (m, x) => {
|
|
2313
|
+
const H = m;
|
|
2314
|
+
m !== null && (H != null && H.gridcellRef) && (a.value[x] = H.gridcellRef);
|
|
2315
|
+
}, r = (m) => d.value[m], f = (m) => {
|
|
2282
2316
|
if (!e.selectable)
|
|
2283
2317
|
return null;
|
|
2284
|
-
const x = e.getDataItemId(
|
|
2318
|
+
const x = e.getDataItemId(m);
|
|
2285
2319
|
return e.selectedItems.includes(x).toString();
|
|
2286
|
-
},
|
|
2320
|
+
}, E = (m) => {
|
|
2287
2321
|
var Q;
|
|
2288
2322
|
if (!e.allowRowClicks)
|
|
2289
2323
|
return;
|
|
2290
2324
|
let x = !1;
|
|
2291
|
-
const
|
|
2292
|
-
for (let
|
|
2293
|
-
if ((Q =
|
|
2325
|
+
const H = ["button", "input", "a"];
|
|
2326
|
+
for (let re = 0; re < H.length; re++)
|
|
2327
|
+
if ((Q = m == null ? void 0 : m.target) != null && Q.closest(H[re])) {
|
|
2294
2328
|
x = !0;
|
|
2295
2329
|
break;
|
|
2296
2330
|
}
|
|
2297
|
-
x || n("row-click", e.rowData,
|
|
2298
|
-
},
|
|
2299
|
-
n("select-row",
|
|
2300
|
-
},
|
|
2301
|
-
n("select-nested-row", x, e.rowData,
|
|
2331
|
+
x || n("row-click", e.rowData, m);
|
|
2332
|
+
}, T = (m) => {
|
|
2333
|
+
n("select-row", m, e.rowData);
|
|
2334
|
+
}, B = (m, x) => {
|
|
2335
|
+
n("select-nested-row", x, e.rowData, m);
|
|
2336
|
+
}, U = () => {
|
|
2337
|
+
h.value = !0;
|
|
2302
2338
|
}, G = () => {
|
|
2303
|
-
|
|
2304
|
-
},
|
|
2305
|
-
m
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
},
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
}, P = () => e.columnSets.reduce((w, { columnSet: x }) => w + x.length, 0), M = () => P() * e.rowIndex + P(), { updateContentHeight: p, contentHeight: U } = ds(f, r), z = _(() => {
|
|
2315
|
-
var w;
|
|
2339
|
+
h.value = !1;
|
|
2340
|
+
}, Y = () => {
|
|
2341
|
+
var m;
|
|
2342
|
+
Mt([(m = R.value) == null ? void 0 : m[0]]), qe(g.value);
|
|
2343
|
+
}, q = () => {
|
|
2344
|
+
we(g.value);
|
|
2345
|
+
}, X = (m) => {
|
|
2346
|
+
var x, H;
|
|
2347
|
+
m.key !== ce.TAB && we(g.value), m.key === ce.ARROW_RIGHT && ((x = R.value) == null ? void 0 : x.length) > 1 && R.value[0].node === document.activeElement ? (we(g.value), R.value[1].node.setAttribute("tabindex", "0"), R.value[1].node.focus(), m.stopPropagation(), m.preventDefault()) : m.key === ce.ARROW_LEFT && ((H = R.value) == null ? void 0 : H.length) > 1 && R.value[1].node === document.activeElement && (we(g.value), R.value[0].node.setAttribute("tabindex", "0"), R.value[0].node.focus(), m.stopPropagation(), m.preventDefault());
|
|
2348
|
+
}, W = () => e.columnSets.reduce((m, { columnSet: x }) => m + x.length, 0), M = () => W() * e.rowIndex + W(), { updateContentHeight: C, contentHeight: z } = ls(_, i), k = v(() => {
|
|
2349
|
+
var m;
|
|
2316
2350
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
2317
2351
|
return {
|
|
2318
|
-
paddingLeft: `${u.value ||
|
|
2319
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) &&
|
|
2352
|
+
paddingLeft: `${u.value || y.value ? 0 : a.value[oe].offsetWidth + Ut}px`,
|
|
2353
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && z.value && !((m = z == null ? void 0 : z.value) != null && m.includes("null")) ? z.value : 0
|
|
2320
2354
|
};
|
|
2321
2355
|
});
|
|
2322
2356
|
ae(
|
|
2323
|
-
() =>
|
|
2357
|
+
() => _.value,
|
|
2324
2358
|
() => {
|
|
2325
|
-
let
|
|
2326
|
-
!
|
|
2327
|
-
|
|
2359
|
+
let m = null;
|
|
2360
|
+
!m && _.value && (m = Ze(_.value, () => {
|
|
2361
|
+
_.value && C();
|
|
2328
2362
|
}));
|
|
2329
2363
|
}
|
|
2330
2364
|
);
|
|
2331
2365
|
const $ = () => {
|
|
2332
|
-
|
|
2366
|
+
i.value = !i.value, C(), n("nested-content-toggled", e.rowData);
|
|
2333
2367
|
};
|
|
2334
2368
|
ae(
|
|
2335
2369
|
() => {
|
|
2336
|
-
var
|
|
2337
|
-
return (
|
|
2370
|
+
var m;
|
|
2371
|
+
return (m = e.rowData) == null ? void 0 : m.children;
|
|
2338
2372
|
},
|
|
2339
|
-
(
|
|
2340
|
-
var
|
|
2341
|
-
((Q = (
|
|
2373
|
+
(m, x) => {
|
|
2374
|
+
var H, Q;
|
|
2375
|
+
((Q = (H = e == null ? void 0 : e.rowData) == null ? void 0 : H.children) == null ? void 0 : Q.length) > 0 && x === void 0 && !i.value && C();
|
|
2342
2376
|
}
|
|
2343
2377
|
);
|
|
2344
|
-
const
|
|
2378
|
+
const Ce = _e(
|
|
2345
2379
|
Ae,
|
|
2346
|
-
|
|
2347
|
-
),
|
|
2348
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(
|
|
2380
|
+
v(() => !1)
|
|
2381
|
+
), de = (m) => e.highlightedRows.includes(e.getDataItemId(m)), ie = (m) => e.selectedItems.includes(e.getDataItemId(m)), c = (m, x) => ({
|
|
2382
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(m),
|
|
2349
2383
|
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2350
|
-
"b-data-grid-row-container__row--highlighted":
|
|
2351
|
-
"b-data-grid-row-container__row--selected":
|
|
2384
|
+
"b-data-grid-row-container__row--highlighted": de(m),
|
|
2385
|
+
"b-data-grid-row-container__row--selected": ie(m),
|
|
2352
2386
|
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === x,
|
|
2353
|
-
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !
|
|
2387
|
+
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !i.value,
|
|
2354
2388
|
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
2355
2389
|
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
2356
|
-
}),
|
|
2357
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
2358
|
-
[`b-data-grid-row-container__row-cell-set--${ge.OVERFLOW_SHADOW_LEFT}`]: !x &&
|
|
2359
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !x &&
|
|
2360
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
2390
|
+
}), P = (m, x) => ({
|
|
2391
|
+
"b-data-grid-row-container__row-cell-set--frozen": m && !x,
|
|
2392
|
+
[`b-data-grid-row-container__row-cell-set--${ge.OVERFLOW_SHADOW_LEFT}`]: !x && m && e.hasLeftOverflow,
|
|
2393
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !x && m && e.showFrozenColumnsSeparator,
|
|
2394
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !m || x,
|
|
2361
2395
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2362
|
-
}),
|
|
2396
|
+
}), te = v(() => ({
|
|
2363
2397
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2364
2398
|
"b-data-grid-row-container__row-nested-slot": !u.value && e.shouldShowNestedContent(e.rowData)
|
|
2365
|
-
})),
|
|
2366
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open":
|
|
2367
|
-
})),
|
|
2399
|
+
})), ne = v(() => ({
|
|
2400
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": h.value
|
|
2401
|
+
})), he = v(() => ({
|
|
2368
2402
|
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
2369
2403
|
}));
|
|
2370
2404
|
return t({
|
|
2371
2405
|
gridcellRefs: a,
|
|
2372
|
-
rowActionsRef:
|
|
2373
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown:
|
|
2406
|
+
rowActionsRef: g
|
|
2407
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: i, nestedContentRef: _, rowActionsRef: g, nestedContentSlotId: w, isRowActionMenuOpen: h, focusableItems: R, shouldShowNestedRowsBooleanResult: S, shouldShowRenderNestedRows: u, isLoadingNestedRows: y, shouldShowNestedContentToggle: L, ariaRowAttributes: F, nestedContentContainerDivAriaAttributes: b, nestedRowIds: d, allNestedRowIds: A, hasUnSelectedNestedRows: O, registerRowCellRef: D, getRowId: r, getRowAriaSelectedValue: f, onRowClick: E, onRowSelect: T, onNestedRowSelect: B, onRowActionMenuOpen: U, onRowActionMenuClose: G, onRowActionsCellFocus: Y, onRowActionsCellFocusOut: q, onRowActionsCellOnKeyDown: X, sumColumnAmountsInColumnSets: W, getRowActionsCellIndex: M, updateContentHeight: C, contentHeight: z, nestedContentStyles: k, nestedContentToggled: $, isSmallContainer: Ce, isHighlightedRow: de, isSelectedRow: ie, conditionalRowClasses: c, conditionalRowSetClasses: P, conditionalNestedRowClasses: te, conditionalRowActionsContainerClasses: ne, computedRowActionsStyles: he, BentoLoadingIndicator: He, DataGridRow: Wt, DataGridCell: ll, DataGridCellActions: kt };
|
|
2374
2408
|
}
|
|
2375
2409
|
});
|
|
2376
|
-
var
|
|
2410
|
+
var rl = function() {
|
|
2377
2411
|
var o;
|
|
2378
2412
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2379
|
-
return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: (o = t.rowId) == null ? void 0 : o.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick, keyup: [function(l) {
|
|
2413
|
+
return n("div", { staticClass: "b-data-grid-row-container", attrs: { role: "presentation" } }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: (o = t.rowId) == null ? void 0 : o.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick, keyup: [function(l) {
|
|
2380
2414
|
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onRowClick.apply(null, arguments);
|
|
2381
2415
|
}, function(l) {
|
|
2382
2416
|
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
2383
|
-
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns:
|
|
2384
|
-
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(
|
|
2385
|
-
return n(e.DataGridCell, { key: `cell-${
|
|
2386
|
-
return e.emit("cell-hovered",
|
|
2387
|
-
}, "on-frozen-columns-key-press": function(
|
|
2388
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2389
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2390
|
-
return { key:
|
|
2391
|
-
return [t._t(
|
|
2417
|
+
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
2418
|
+
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(i, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(g, w) {
|
|
2419
|
+
return n(e.DataGridCell, { key: `cell-${g.field}`, ref: (h) => e.registerRowCellRef(h, g.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: g, "column-set-index": _, "col-index": w, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(h) {
|
|
2420
|
+
return e.emit("cell-hovered", h);
|
|
2421
|
+
}, "on-frozen-columns-key-press": function(h) {
|
|
2422
|
+
return e.emit("on-frozen-columns-key-press", h);
|
|
2423
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(h, R) {
|
|
2424
|
+
return { key: R, fn: function(S) {
|
|
2425
|
+
return [t._t(R, null, null, S)];
|
|
2392
2426
|
} };
|
|
2393
2427
|
})], null, !0) });
|
|
2394
|
-
}), 1) : t._e(), !
|
|
2395
|
-
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div",
|
|
2396
|
-
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(
|
|
2397
|
-
return e.emit("cell-hovered",
|
|
2398
|
-
}, "row-click": function(
|
|
2399
|
-
return e.emit("row-click", ...
|
|
2400
|
-
}, "on-frozen-columns-key-press": function(
|
|
2401
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2402
|
-
}, "select-row": function(
|
|
2403
|
-
return e.onNestedRowSelect(l,
|
|
2404
|
-
} }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2405
|
-
return { key:
|
|
2406
|
-
return [t._t(
|
|
2428
|
+
}), 1) : t._e(), !i && t.rowActions ? n("div", { key: `data-grid-row-actions-${a}`, ref: "rowActionsRef", refInFor: !0, staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus, focusOut: e.onRowActionsCellFocusOut, keydown: e.onRowActionsCellOnKeyDown } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData, "teleport-menu": "" }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
|
|
2429
|
+
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown && e.shouldShowRenderNestedRows ? n("div", { class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "presentation" } }, [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : t._e(), t._l(t.rowData.children, function(l, a) {
|
|
2430
|
+
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(i) {
|
|
2431
|
+
return e.emit("cell-hovered", i);
|
|
2432
|
+
}, "row-click": function(i) {
|
|
2433
|
+
return e.emit("row-click", ...i);
|
|
2434
|
+
}, "on-frozen-columns-key-press": function(i) {
|
|
2435
|
+
return e.emit("on-frozen-columns-key-press", i);
|
|
2436
|
+
}, "select-row": function(i) {
|
|
2437
|
+
return e.onNestedRowSelect(l, i);
|
|
2438
|
+
} }, scopedSlots: t._u([t._l(e.slots, function(i, _) {
|
|
2439
|
+
return { key: _, fn: function(g) {
|
|
2440
|
+
return [t._t(_, null, null, g)];
|
|
2407
2441
|
} };
|
|
2408
2442
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2409
|
-
}) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()]
|
|
2410
|
-
},
|
|
2443
|
+
})], 2)]) : e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "row", tabindex: "-1" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef", attrs: { role: "gridcell" } }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()])]) : t._e()]) : t._e()], 1);
|
|
2444
|
+
}, cl = [], dl = /* @__PURE__ */ K(
|
|
2445
|
+
il,
|
|
2446
|
+
rl,
|
|
2411
2447
|
cl,
|
|
2412
|
-
ul,
|
|
2413
|
-
fl,
|
|
2414
2448
|
!1,
|
|
2415
2449
|
null,
|
|
2416
|
-
"
|
|
2450
|
+
"e6af4d8d"
|
|
2417
2451
|
);
|
|
2418
|
-
const
|
|
2419
|
-
let
|
|
2420
|
-
const
|
|
2452
|
+
const Wt = dl.exports;
|
|
2453
|
+
let At = 0;
|
|
2454
|
+
const ul = {
|
|
2421
2455
|
beforeCreate() {
|
|
2422
|
-
this.uuid =
|
|
2456
|
+
this.uuid = At.toString(), At += 1;
|
|
2423
2457
|
}
|
|
2424
2458
|
};
|
|
2425
|
-
var
|
|
2459
|
+
var fl = function() {
|
|
2426
2460
|
var t = this, n = t._self._c;
|
|
2427
2461
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2428
|
-
},
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2462
|
+
}, gl = [], _l = /* @__PURE__ */ K(
|
|
2463
|
+
ul,
|
|
2464
|
+
fl,
|
|
2465
|
+
gl,
|
|
2432
2466
|
!1,
|
|
2433
2467
|
null,
|
|
2434
2468
|
null
|
|
2435
2469
|
);
|
|
2436
|
-
const
|
|
2437
|
-
...
|
|
2470
|
+
const vl = _l.exports, Cl = {}, hl = /* @__PURE__ */ ve({
|
|
2471
|
+
...Cl,
|
|
2438
2472
|
__name: "data-grid-static-icon",
|
|
2439
2473
|
props: {
|
|
2440
2474
|
colored: { type: Boolean, default: !1 },
|
|
@@ -2442,39 +2476,39 @@ const hl = Cl.exports, pl = {}, wl = /* @__PURE__ */ ve({
|
|
|
2442
2476
|
variant: { default: "no-value" }
|
|
2443
2477
|
},
|
|
2444
2478
|
setup(s) {
|
|
2445
|
-
const t = s, n =
|
|
2479
|
+
const t = s, n = v(() => {
|
|
2446
2480
|
switch (t.variant) {
|
|
2447
2481
|
case "checkmark":
|
|
2448
|
-
return
|
|
2482
|
+
return $n;
|
|
2449
2483
|
case "warning":
|
|
2450
|
-
return
|
|
2484
|
+
return kn;
|
|
2451
2485
|
case "error":
|
|
2452
|
-
return
|
|
2486
|
+
return vl;
|
|
2453
2487
|
case "cross":
|
|
2454
|
-
return
|
|
2488
|
+
return Ot;
|
|
2455
2489
|
case "no-value":
|
|
2456
|
-
return
|
|
2490
|
+
return it;
|
|
2457
2491
|
default:
|
|
2458
|
-
return
|
|
2492
|
+
return it;
|
|
2459
2493
|
}
|
|
2460
|
-
}), e =
|
|
2494
|
+
}), e = v(() => ({
|
|
2461
2495
|
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2462
|
-
})), o =
|
|
2463
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective:
|
|
2496
|
+
})), o = v(() => `b-data-grid-static-icon__${t.variant}`), l = v(() => Wn.AUTO);
|
|
2497
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: Gn };
|
|
2464
2498
|
}
|
|
2465
2499
|
});
|
|
2466
|
-
var
|
|
2500
|
+
var ml = function() {
|
|
2467
2501
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2468
2502
|
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
|
|
2469
|
-
},
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2503
|
+
}, pl = [], wl = /* @__PURE__ */ K(
|
|
2504
|
+
hl,
|
|
2505
|
+
ml,
|
|
2506
|
+
pl,
|
|
2473
2507
|
!1,
|
|
2474
2508
|
null,
|
|
2475
2509
|
"dbc055cb"
|
|
2476
2510
|
);
|
|
2477
|
-
const
|
|
2511
|
+
const ba = wl.exports, Sl = {
|
|
2478
2512
|
"de-DE": {
|
|
2479
2513
|
numberResults: "1 Ergebnis | {count} Ergebnisse"
|
|
2480
2514
|
},
|
|
@@ -2493,10 +2527,10 @@ const La = El.exports, Rl = {
|
|
|
2493
2527
|
"pt-BR": {
|
|
2494
2528
|
numberResults: "1 resultado | {count} resultados"
|
|
2495
2529
|
}
|
|
2496
|
-
},
|
|
2497
|
-
i18n: { messages:
|
|
2498
|
-
},
|
|
2499
|
-
...
|
|
2530
|
+
}, bl = {
|
|
2531
|
+
i18n: { messages: Sl }
|
|
2532
|
+
}, El = /* @__PURE__ */ ve({
|
|
2533
|
+
...bl,
|
|
2500
2534
|
__name: "data-grid-summary-cell",
|
|
2501
2535
|
props: {
|
|
2502
2536
|
label: null,
|
|
@@ -2506,48 +2540,45 @@ const La = El.exports, Rl = {
|
|
|
2506
2540
|
tooltipText: { default: null }
|
|
2507
2541
|
},
|
|
2508
2542
|
setup(s) {
|
|
2509
|
-
const t = s, { tc: n } =
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
}), l =
|
|
2523
|
-
|
|
2524
|
-
return ((c = t.searchTerm) == null ? void 0 : c.toLowerCase()) ?? "";
|
|
2525
|
-
}), a = (c) => t.searchTerm && c.toLowerCase().includes(l.value) ? "mark" : "span", r = _(() => t.searchTerm ? t.items.filter((c) => c.toLowerCase().includes(l.value)).length : 0), f = _(
|
|
2526
|
-
() => t.tooltipText ?? (r.value > 0 ? n("numberResults", r.value) : "")
|
|
2543
|
+
const t = s, { tc: n } = me(), e = p(), o = v(() => ({
|
|
2544
|
+
popoverPosition: "right",
|
|
2545
|
+
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
2546
|
+
popoverTitle: t.label,
|
|
2547
|
+
popoverSize: "small",
|
|
2548
|
+
...t.dashedUnderline,
|
|
2549
|
+
// We force teleport as this is needed for the popover to appear above all the data grid elements
|
|
2550
|
+
teleport: {
|
|
2551
|
+
disabled: !1
|
|
2552
|
+
}
|
|
2553
|
+
})), l = v(() => {
|
|
2554
|
+
var g;
|
|
2555
|
+
return ((g = t.searchTerm) == null ? void 0 : g.toLowerCase()) ?? "";
|
|
2556
|
+
}), a = (g) => t.searchTerm && g.toLowerCase().includes(l.value) ? "mark" : "span", i = v(() => t.searchTerm ? t.items.filter((g) => g.toLowerCase().includes(l.value)).length : 0), _ = v(
|
|
2557
|
+
() => t.tooltipText ?? (i.value > 0 ? n("numberResults", i.value) : "")
|
|
2527
2558
|
);
|
|
2528
|
-
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount:
|
|
2559
|
+
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: i, computedToolTipText: _, BentoDashedUnderline: Zn, BentoTypography: ye, Tooltip: Vn, BentoTooltipPosition: Hn };
|
|
2529
2560
|
}
|
|
2530
2561
|
});
|
|
2531
|
-
var
|
|
2562
|
+
var Rl = function() {
|
|
2532
2563
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2533
2564
|
return n("div", { staticClass: "b-data-grid-summary-cell" }, [t.items.length > 1 ? n(e.BentoDashedUnderline, t._b({ ref: "dashedUnderlineRef", scopedSlots: t._u([{ key: "popover-content", fn: function() {
|
|
2534
2565
|
return [n(e.BentoTypography, { staticClass: "b-data-grid-summary-cell__popover-content" }, [n("ul", { staticClass: "b-data-grid-summary-cell__list" }, t._l(t.items, function(o) {
|
|
2535
2566
|
return n("li", { key: o }, [n(e.highlightedComponent(o), { tag: "component" }, [t._v(t._s(o))])], 1);
|
|
2536
2567
|
}), 0)])];
|
|
2537
2568
|
}, proxy: !0 }], null, !1, 4023850623) }, "bento-dashed-underline", e.dashedUnderlineProps, !1), [t._v(" " + t._s(t.label) + " ")]) : [t._v(t._s(t.items[0]))], e.dashedUnderlineRef && e.computedToolTipText ? n(e.Tooltip, { attrs: { content: e.computedToolTipText, "disabled-focus-trap": !0, position: e.BentoTooltipPosition.RIGHT, "fallback-position": ["left", "bottom"], "is-shown": !!e.computedToolTipText, "target-element": e.dashedUnderlineRef } }) : t._e()], 2);
|
|
2538
|
-
},
|
|
2569
|
+
}, Ll = [], yl = /* @__PURE__ */ K(
|
|
2570
|
+
El,
|
|
2571
|
+
Rl,
|
|
2539
2572
|
Ll,
|
|
2540
|
-
Al,
|
|
2541
|
-
Tl,
|
|
2542
2573
|
!1,
|
|
2543
2574
|
null,
|
|
2544
|
-
"
|
|
2575
|
+
"2cf5d218"
|
|
2545
2576
|
);
|
|
2546
|
-
const
|
|
2547
|
-
i18n: { messages:
|
|
2577
|
+
const Ea = yl.exports, Al = {
|
|
2578
|
+
i18n: { messages: $t },
|
|
2548
2579
|
name: "bento-data-grid"
|
|
2549
|
-
},
|
|
2550
|
-
...
|
|
2580
|
+
}, Tl = /* @__PURE__ */ ve({
|
|
2581
|
+
...Al,
|
|
2551
2582
|
props: {
|
|
2552
2583
|
/**
|
|
2553
2584
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2634,7 +2665,7 @@ const Aa = Ol.exports, Il = {
|
|
|
2634
2665
|
* {@see BentoFilterValues}
|
|
2635
2666
|
*/
|
|
2636
2667
|
filterValues: {
|
|
2637
|
-
type:
|
|
2668
|
+
type: Pe.props.filterValues.type,
|
|
2638
2669
|
default: () => []
|
|
2639
2670
|
},
|
|
2640
2671
|
/**
|
|
@@ -2665,7 +2696,7 @@ const Aa = Ol.exports, Il = {
|
|
|
2665
2696
|
* Filter bar search term useful to filter all the data by text
|
|
2666
2697
|
*/
|
|
2667
2698
|
filterSearchTerm: {
|
|
2668
|
-
type:
|
|
2699
|
+
type: Pe.props.searchTerm.type,
|
|
2669
2700
|
default: void 0
|
|
2670
2701
|
},
|
|
2671
2702
|
/**
|
|
@@ -2878,261 +2909,264 @@ const Aa = Ol.exports, Il = {
|
|
|
2878
2909
|
N.ROW_CLICK,
|
|
2879
2910
|
N.SELECT,
|
|
2880
2911
|
N.SELECT_ALL_ACROSS_PAGES,
|
|
2912
|
+
N.SELECT_ALL_CURRENT_RESULTS,
|
|
2913
|
+
N.DESELECT_ALL_CURRENT_RESULTS,
|
|
2881
2914
|
N.SORT
|
|
2882
2915
|
],
|
|
2883
2916
|
setup(s, { expose: t, emit: n }) {
|
|
2884
|
-
const e = s, o =
|
|
2885
|
-
allowColumnDragAndDrop:
|
|
2886
|
-
columns:
|
|
2887
|
-
columnPanel:
|
|
2888
|
-
data:
|
|
2889
|
-
lazyLoadType:
|
|
2890
|
-
loading:
|
|
2891
|
-
hasNestedContent:
|
|
2892
|
-
hasNestedRows:
|
|
2893
|
-
selectable:
|
|
2894
|
-
selection:
|
|
2895
|
-
selectableAcrossPages:
|
|
2917
|
+
const e = s, o = Ge(), l = Ve(o), a = p(null), i = p(), _ = p({}), g = p(Ie("data-grid")), w = p(null), h = p(null), R = p(), S = p(null), u = p(null), y = p(null), {
|
|
2918
|
+
allowColumnDragAndDrop: L,
|
|
2919
|
+
columns: F,
|
|
2920
|
+
columnPanel: b,
|
|
2921
|
+
data: d,
|
|
2922
|
+
lazyLoadType: A,
|
|
2923
|
+
loading: O,
|
|
2924
|
+
hasNestedContent: D,
|
|
2925
|
+
hasNestedRows: r,
|
|
2926
|
+
selectable: f,
|
|
2927
|
+
selection: E,
|
|
2928
|
+
selectableAcrossPages: T,
|
|
2896
2929
|
stickyPagination: B,
|
|
2897
|
-
outline:
|
|
2930
|
+
outline: U,
|
|
2898
2931
|
pagination: G,
|
|
2899
|
-
zebraRows:
|
|
2900
|
-
} =
|
|
2901
|
-
|
|
2902
|
-
const
|
|
2903
|
-
|
|
2904
|
-
typeof window < "u" && (
|
|
2905
|
-
}),
|
|
2906
|
-
const
|
|
2907
|
-
|
|
2932
|
+
zebraRows: Y
|
|
2933
|
+
} = We(e), q = p(-1), { t: X } = me(), W = v(() => ne.value.filter((I) => I.frozen).length), M = 550, C = p(), { width: z } = Xn(C), k = v(() => z.value <= M);
|
|
2934
|
+
Oe(Ae, k);
|
|
2935
|
+
const $ = p(!1);
|
|
2936
|
+
be(() => {
|
|
2937
|
+
typeof window < "u" && ($.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
2938
|
+
}), Oe(De, $);
|
|
2939
|
+
const Ce = _e(
|
|
2940
|
+
Jn,
|
|
2908
2941
|
() => ({
|
|
2909
|
-
additionalContentSlotRef:
|
|
2942
|
+
additionalContentSlotRef: p(null),
|
|
2910
2943
|
isDataGridTemplate: !1,
|
|
2911
|
-
stickyAditionalContent:
|
|
2912
|
-
stickyTabs:
|
|
2913
|
-
tabsRef:
|
|
2944
|
+
stickyAditionalContent: p(!1),
|
|
2945
|
+
stickyTabs: p(!1),
|
|
2946
|
+
tabsRef: p(null)
|
|
2914
2947
|
})
|
|
2915
|
-
), { additionalContentSlotRef:
|
|
2916
|
-
columnDefs:
|
|
2917
|
-
onColumnWidthOverride:
|
|
2918
|
-
gridRowWidthStyle:
|
|
2948
|
+
), { additionalContentSlotRef: de, isDataGridTemplate: ie, stickyTabs: c, tabsRef: P, stickyAdditionalContent: te } = Ce(), {
|
|
2949
|
+
columnDefs: ne,
|
|
2950
|
+
onColumnWidthOverride: he,
|
|
2951
|
+
gridRowWidthStyle: m,
|
|
2919
2952
|
isMeasuringColumnWidths: x,
|
|
2920
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
2953
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: H,
|
|
2921
2954
|
columns: Q,
|
|
2922
|
-
totalWidthOfAllColumns:
|
|
2955
|
+
totalWidthOfAllColumns: re,
|
|
2923
2956
|
rowActionsMaxWidth: ue
|
|
2924
|
-
} =
|
|
2925
|
-
hasColumnPanel:
|
|
2926
|
-
hasSelectableColumn:
|
|
2927
|
-
hasSelectableAcrossPages:
|
|
2928
|
-
hasNestedContent:
|
|
2929
|
-
hasNestedRows:
|
|
2930
|
-
allowColumnDragAndDrop:
|
|
2931
|
-
isDataGridTemplate:
|
|
2932
|
-
}),
|
|
2933
|
-
(I === N.COLUMNS || I === N.UPDATE_COLUMNS) && ([Q.value] =
|
|
2934
|
-
},
|
|
2935
|
-
|
|
2936
|
-
|
|
2957
|
+
} = ys(F, d, a, _, w, {
|
|
2958
|
+
hasColumnPanel: b,
|
|
2959
|
+
hasSelectableColumn: f,
|
|
2960
|
+
hasSelectableAcrossPages: T,
|
|
2961
|
+
hasNestedContent: D,
|
|
2962
|
+
hasNestedRows: r,
|
|
2963
|
+
allowColumnDragAndDrop: L,
|
|
2964
|
+
isDataGridTemplate: ie
|
|
2965
|
+
}), Z = (I, ...V) => {
|
|
2966
|
+
(I === N.COLUMNS || I === N.UPDATE_COLUMNS) && ([Q.value] = V), n(I, ...V);
|
|
2967
|
+
}, xe = _t(
|
|
2968
|
+
P,
|
|
2969
|
+
c,
|
|
2937
2970
|
te,
|
|
2938
|
-
|
|
2939
|
-
),
|
|
2940
|
-
() => e.stickyFilters ? `${
|
|
2941
|
-
),
|
|
2942
|
-
() => `${
|
|
2971
|
+
de
|
|
2972
|
+
), Gt = v(
|
|
2973
|
+
() => e.stickyFilters ? `${xe.value}px` : null
|
|
2974
|
+
), Ke = _t(h, ze(e, "stickyFilters")), Ht = v(
|
|
2975
|
+
() => `${Ke.value + xe.value}px`
|
|
2943
2976
|
), {
|
|
2944
|
-
sortedColumns:
|
|
2945
|
-
columnSets:
|
|
2946
|
-
isOnlyOneVisibleColumn:
|
|
2947
|
-
internalZebraRows:
|
|
2948
|
-
onConfigSettingsColumnsUpdate:
|
|
2949
|
-
onConfigSettingsColumnUpdate:
|
|
2950
|
-
onConfigSettingsCondensedUpdate:
|
|
2951
|
-
onConfigSettingsZebraRowsUpdate:
|
|
2952
|
-
} =
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
), { draggingColumns:
|
|
2977
|
+
sortedColumns: Fe,
|
|
2978
|
+
columnSets: Be,
|
|
2979
|
+
isOnlyOneVisibleColumn: Vt,
|
|
2980
|
+
internalZebraRows: Ye,
|
|
2981
|
+
onConfigSettingsColumnsUpdate: Zt,
|
|
2982
|
+
onConfigSettingsColumnUpdate: jt,
|
|
2983
|
+
onConfigSettingsCondensedUpdate: qt,
|
|
2984
|
+
onConfigSettingsZebraRowsUpdate: Kt
|
|
2985
|
+
} = xs(ne, Y, Z), { hoveredOverColumn: Yt, hoveredOverColumnState: Jt } = Bs(
|
|
2986
|
+
Be,
|
|
2987
|
+
f,
|
|
2988
|
+
U,
|
|
2989
|
+
H
|
|
2990
|
+
), { draggingColumns: Xt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn } = Ds(Fe, L, Z), Je = v(
|
|
2958
2991
|
() => {
|
|
2959
2992
|
var I;
|
|
2960
2993
|
return ((I = e.data) == null ? void 0 : I.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
|
|
2961
2994
|
}
|
|
2962
2995
|
), {
|
|
2963
|
-
onAllRowSelect:
|
|
2964
|
-
onRowSelect:
|
|
2965
|
-
onNestedRowSelect:
|
|
2966
|
-
onDeselectAll:
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
S,
|
|
2996
|
+
onAllRowSelect: nn,
|
|
2997
|
+
onRowSelect: sn,
|
|
2998
|
+
onNestedRowSelect: on,
|
|
2999
|
+
onDeselectAll: ln,
|
|
3000
|
+
allItemsSelectedState: an,
|
|
3001
|
+
selectedItems: Xe,
|
|
3002
|
+
selectionState: rn
|
|
3003
|
+
} = As(
|
|
3004
|
+
E,
|
|
3005
|
+
Z,
|
|
3006
|
+
d,
|
|
2975
3007
|
e.getDataItemId,
|
|
2976
3008
|
e.isDataItemDisabled,
|
|
2977
|
-
|
|
3009
|
+
Je,
|
|
2978
3010
|
G
|
|
2979
|
-
),
|
|
2980
|
-
|
|
3011
|
+
), cn = v(
|
|
3012
|
+
() => {
|
|
3013
|
+
var I, V;
|
|
3014
|
+
return ((I = R.value) == null ? void 0 : I.isClearAllVisible) || ((V = R.value) == null ? void 0 : V.isResetAllVisible);
|
|
3015
|
+
}
|
|
3016
|
+
), { navigationInput: dn } = Os(
|
|
3017
|
+
w,
|
|
3018
|
+
_,
|
|
3019
|
+
Fe,
|
|
2981
3020
|
f,
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
i,
|
|
2988
|
-
h,
|
|
3021
|
+
v(() => e.rowActions !== void 0),
|
|
3022
|
+
b
|
|
3023
|
+
), { isLazyLoad: Te, isInfiniteScroll: un, verticalScrollPosition: Qe, emitLazyLoadEvent: fn } = Is(
|
|
3024
|
+
A,
|
|
3025
|
+
u,
|
|
2989
3026
|
a,
|
|
2990
|
-
|
|
2991
|
-
|
|
3027
|
+
O,
|
|
3028
|
+
Z
|
|
2992
3029
|
), {
|
|
2993
3030
|
updateScrollPosition: gn,
|
|
2994
3031
|
updateScrollPositionOnFrozenColumnsNavigation: _n,
|
|
2995
3032
|
syncVirtualScrollerWithBody: vn,
|
|
2996
|
-
hasLeftOverflow:
|
|
2997
|
-
hasRightOverflow:
|
|
2998
|
-
horizontalScrollbarConditionalStyles:
|
|
2999
|
-
} =
|
|
3033
|
+
hasLeftOverflow: Ue,
|
|
3034
|
+
hasRightOverflow: et,
|
|
3035
|
+
horizontalScrollbarConditionalStyles: Cn
|
|
3036
|
+
} = Fs(
|
|
3000
3037
|
a,
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3038
|
+
i,
|
|
3039
|
+
Qe,
|
|
3040
|
+
y,
|
|
3041
|
+
S,
|
|
3042
|
+
re,
|
|
3006
3043
|
{
|
|
3007
|
-
isLazyLoad:
|
|
3044
|
+
isLazyLoad: Te,
|
|
3008
3045
|
pagination: G,
|
|
3009
3046
|
stickyPagination: B,
|
|
3010
|
-
isDataGridTemplate:
|
|
3047
|
+
isDataGridTemplate: ie
|
|
3011
3048
|
}
|
|
3012
|
-
),
|
|
3013
|
-
|
|
3014
|
-
},
|
|
3015
|
-
var I,
|
|
3049
|
+
), tt = () => {
|
|
3050
|
+
R.value.isClearAllVisible ? R.value.clearAllFilters() : R.value.isResetAllVisible && R.value.resetAllFilters();
|
|
3051
|
+
}, hn = v(() => {
|
|
3052
|
+
var I, V;
|
|
3016
3053
|
return {
|
|
3017
3054
|
...e.emptyState,
|
|
3018
|
-
variant: ((I = e.emptyState) == null ? void 0 : I.variant) === "embedded" || ((
|
|
3055
|
+
variant: ((I = e.emptyState) == null ? void 0 : I.variant) === "embedded" || ((V = e.emptyState) == null ? void 0 : V.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
3019
3056
|
};
|
|
3020
|
-
}),
|
|
3057
|
+
}), mn = v(() => ({
|
|
3021
3058
|
[`b-data-grid--${ge.OUTLINE}`]: e.outline,
|
|
3022
|
-
[`b-data-grid--${ge.SCROLL}`]: e.fitContent ||
|
|
3059
|
+
[`b-data-grid--${ge.SCROLL}`]: e.fitContent || Te.value,
|
|
3023
3060
|
[`b-data-grid--${ge.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
3024
|
-
[`b-data-grid--${ge.OVERFLOW_SHADOW_LEFT}`]:
|
|
3025
|
-
[`b-data-grid--${ge.OVERFLOW_SHADOW_RIGHT}`]:
|
|
3061
|
+
[`b-data-grid--${ge.OVERFLOW_SHADOW_LEFT}`]: Ue.value && !W.value,
|
|
3062
|
+
[`b-data-grid--${ge.OVERFLOW_SHADOW_RIGHT}`]: et.value && e.rowActions === void 0,
|
|
3026
3063
|
[`b-data-grid--${ge.NO_SPACING_TOP}`]: e.noSpacingTop,
|
|
3027
3064
|
[`b-data-grid--${ge.FIT_CONTENT}`]: e.fitContent,
|
|
3028
|
-
[`b-data-grid--${ge.ZEBRA_ROWS}`]:
|
|
3029
|
-
|
|
3065
|
+
[`b-data-grid--${ge.ZEBRA_ROWS}`]: Ye.value,
|
|
3066
|
+
"b-data-grid--lazy-load": Te.value
|
|
3067
|
+
})), pn = v(() => ({
|
|
3030
3068
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
3031
|
-
})), wn =
|
|
3032
|
-
"b-data-grid__filters--sticky": !!e.stickyFilters ||
|
|
3033
|
-
})), En =
|
|
3034
|
-
var I,
|
|
3069
|
+
})), wn = v(() => Be.value.findIndex((I) => I.columnSet.length)), Sn = v(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && W.value === 1) || Ue.value), bn = v(() => ({
|
|
3070
|
+
"b-data-grid__filters--sticky": !!e.stickyFilters || ie
|
|
3071
|
+
})), En = v(() => {
|
|
3072
|
+
var I, V, ee, pe, Ee, Re;
|
|
3035
3073
|
return {
|
|
3036
|
-
"b-data-grid__pagination--padding-left-unset": ((ee = (
|
|
3037
|
-
"b-data-grid__pagination--padding-right-unset": ((Re = (Ee = (
|
|
3038
|
-
"b-data-grid__pagination--sticky": !!e.stickyPagination ||
|
|
3074
|
+
"b-data-grid__pagination--padding-left-unset": ((ee = (V = (I = e.columns) == null ? void 0 : I[0]) == null ? void 0 : V.padding) == null ? void 0 : ee.left) === !1,
|
|
3075
|
+
"b-data-grid__pagination--padding-right-unset": ((Re = (Ee = (pe = e.columns) == null ? void 0 : pe[e.columns.length - 1]) == null ? void 0 : Ee.padding) == null ? void 0 : Re.right) === !1,
|
|
3076
|
+
"b-data-grid__pagination--sticky": !!e.stickyPagination || ie
|
|
3039
3077
|
};
|
|
3040
3078
|
}), Rn = (I) => {
|
|
3041
|
-
const
|
|
3042
|
-
I !== null && (
|
|
3043
|
-
|
|
3079
|
+
const V = I;
|
|
3080
|
+
I !== null && (V != null && V.columnHeaderRefs) && Object.entries(V == null ? void 0 : V.columnHeaderRefs).forEach(([ee, pe]) => {
|
|
3081
|
+
_.value[ee] = pe;
|
|
3044
3082
|
});
|
|
3045
|
-
},
|
|
3046
|
-
var
|
|
3083
|
+
}, Ln = (I, V) => {
|
|
3084
|
+
var pe, Ee, Re, lt;
|
|
3047
3085
|
const ee = I;
|
|
3048
3086
|
if (I !== null && ee != null && ee.gridcellRefs) {
|
|
3049
|
-
const
|
|
3050
|
-
Object.entries(ee == null ? void 0 : ee.gridcellRefs).map(([
|
|
3051
|
-
var
|
|
3052
|
-
((
|
|
3053
|
-
}),
|
|
3087
|
+
const Un = e.rowActions !== void 0 && (ee == null ? void 0 : ee.rowActionsRef);
|
|
3088
|
+
Object.entries(ee == null ? void 0 : ee.gridcellRefs).map(([Me, Mn]) => {
|
|
3089
|
+
var at;
|
|
3090
|
+
((at = w.value) == null ? void 0 : at[Me]) === void 0 && (w.value = { ...w.value, [Me]: [] }), w.value[Me][V] = Mn;
|
|
3091
|
+
}), Un && (((pe = w.value) == null ? void 0 : pe[Le]) === void 0 && (w.value = { ...w.value, [Le]: [] }), w.value[Le][V] = (Ee = ee.rowActionsRef) == null ? void 0 : Ee[0], ue.value = Math.max(
|
|
3054
3092
|
ue.value,
|
|
3055
|
-
((
|
|
3093
|
+
((lt = (Re = ee.rowActionsRef) == null ? void 0 : Re[0]) == null ? void 0 : lt.offsetWidth) ?? 0
|
|
3056
3094
|
));
|
|
3057
3095
|
}
|
|
3058
|
-
},
|
|
3059
|
-
e.allowRowClicks &&
|
|
3096
|
+
}, yn = (I, V) => {
|
|
3097
|
+
e.allowRowClicks && Z(N.ROW_CLICK, I, V);
|
|
3060
3098
|
}, An = (I) => {
|
|
3061
|
-
|
|
3062
|
-
}, Tn =
|
|
3063
|
-
label: o != null && o.header ? Xn(o)("header") : null,
|
|
3064
|
-
defaultFallback: "data grid"
|
|
3065
|
-
}), In = _(() => {
|
|
3099
|
+
q.value = I;
|
|
3100
|
+
}, Tn = v(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), nt = v(() => {
|
|
3066
3101
|
var I;
|
|
3067
|
-
return
|
|
3068
|
-
}),
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
V(N.UPDATE_SORT_BY, I), V(N.SORT, I);
|
|
3073
|
-
}, Bn = (I, W) => {
|
|
3074
|
-
V(N.NAVIGATE, I), V(N.UPDATE_PAGINATION, {
|
|
3102
|
+
return ((I = Xe.value) == null ? void 0 : I.length) ?? 0;
|
|
3103
|
+
}), On = v(() => e.bulkActions && nt.value > 0), Nn = (I) => Z(N.COLUMN_RESIZE, I), In = (I) => {
|
|
3104
|
+
Z(N.UPDATE_SORT_BY, I), Z(N.SORT, I);
|
|
3105
|
+
}, Dn = (I, V) => {
|
|
3106
|
+
Z(N.NAVIGATE, I), Z(N.UPDATE_PAGINATION, {
|
|
3075
3107
|
...e.pagination,
|
|
3076
|
-
size:
|
|
3108
|
+
size: V,
|
|
3077
3109
|
page: I
|
|
3078
3110
|
});
|
|
3079
|
-
},
|
|
3080
|
-
|
|
3081
|
-
},
|
|
3082
|
-
|
|
3083
|
-
},
|
|
3084
|
-
|
|
3085
|
-
},
|
|
3086
|
-
|
|
3111
|
+
}, xn = (I) => {
|
|
3112
|
+
Z(N.ITEMS_PAGE, I);
|
|
3113
|
+
}, Fn = () => {
|
|
3114
|
+
Z(N.FILTER_SEARCH_CLEAR);
|
|
3115
|
+
}, Bn = (I) => {
|
|
3116
|
+
Z(N.UPDATE_FILTER_SEARCH_TERM, I), Z(N.FILTER_SEARCH_INPUT, I);
|
|
3117
|
+
}, st = v(() => F.value.some((I) => I.mandatory));
|
|
3118
|
+
st.value || Nt(
|
|
3087
3119
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3088
3120
|
);
|
|
3089
|
-
const
|
|
3090
|
-
return
|
|
3121
|
+
const ot = _e(Yn, () => null);
|
|
3122
|
+
return ot(e.tabTitle), Oe(zt, ze(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: tt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: i, columnHeaderRefs: _, dataGridUid: g, gridcellRefs: w, filtersRef: h, filterBarRef: R, paginationContainerRef: S, verticalScrollPositionRef: u, virtualHorizontalScrollbarRef: y, allowColumnDragAndDrop: L, columns: F, columnPanel: b, data: d, lazyLoadType: A, loading: O, hasNestedContent: D, hasNestedRows: r, selectable: f, selection: E, selectableAcrossPages: T, stickyPagination: B, outline: U, pagination: G, zebraRows: Y, hoveredRowIndex: q, t: X, frozenColumnsLength: W, MOBILE_BREAKPOINT: M, dataGridRef: C, width: z, isSmallContainer: k, isTouchDevice: $, registerDatagridInDataGridTemplate: Ce, additionalContentSlotRef: de, isDataGridTemplate: ie, stickyTabs: c, tabsRef: P, stickyAdditionalContent: te, columnDefs: ne, onColumnWidthOverride: he, gridRowWidthStyle: m, isMeasuringColumnWidths: x, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: H, localColumnsState: Q, totalWidthOfAllColumns: re, rowActionsMaxWidth: ue, definedEmitsFunction: n, emit: Z, stickyFiltersHeight: xe, computedStickyFiltersTopPosition: Gt, columnHeadersHeight: Ke, computedColumnHeadersTopPosition: Ht, sortedColumns: Fe, columnSets: Be, isOnlyOneVisibleColumn: Vt, internalZebraRows: Ye, onConfigSettingsColumnsUpdate: Zt, onConfigSettingsColumnUpdate: jt, onConfigSettingsCondensedUpdate: qt, onConfigSettingsZebraRowsUpdate: Kt, hoveredOverColumn: Yt, hoveredOverColumnState: Jt, draggingColumns: Xt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn, selectableAcrossPagesComputed: Je, onAllRowSelect: nn, onRowSelect: sn, onNestedRowSelect: on, onDeselectAll: ln, allItemsSelectedState: an, selectedItems: Xe, selectionState: rn, hasActiveFilters: cn, navigationInput: dn, isLazyLoad: Te, isInfiniteScroll: un, verticalScrollPosition: Qe, emitLazyLoadEvent: fn, updateScrollPosition: gn, updateScrollPositionOnFrozenColumnsNavigation: _n, syncVirtualScrollerWithBody: vn, hasLeftOverflow: Ue, hasRightOverflow: et, horizontalScrollbarConditionalStyles: Cn, onEmptyStateClearResetButtonClick: tt, limitedEmptyStateProps: hn, conditionalGridClasses: mn, conditionalGridBodyClasses: pn, computedColumnPanelAlignment: wn, showFrozenColumnsSeparator: Sn, conditionalFilterClasses: bn, conditionalPaginationClasses: En, registerColumnHeaderRefs: Rn, registerRowCellRefs: Ln, onRowClick: yn, onCellHover: An, ariaGridRole: Tn, itemsSelectedCounter: nt, showActionBar: On, onColumnResized: Nn, onSort: In, onPaginationNavigate: Dn, onItemsPerPageChange: xn, onSearchTermCleared: Fn, onSearchTermInput: Bn, hasMandatoryColumn: st, setTitle: ot, BentoActionBar: jn, BentoPagination: qn, BentoLoadingIndicator: He, BentoTypography: ye, BentoDataGridConfigSettings: Uo, DataGridColumns: po, DataGridLazyLoad: Wo, DataGridRow: Wt, handleClipboard: Us, BentoDatagridEvent: N, BentoFilterBar: Pe, BentoEmptyState: Kn };
|
|
3091
3123
|
}
|
|
3092
3124
|
});
|
|
3093
|
-
var
|
|
3125
|
+
var Ol = function() {
|
|
3094
3126
|
var o;
|
|
3095
3127
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3096
|
-
return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "
|
|
3097
|
-
var
|
|
3098
|
-
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (
|
|
3099
|
-
e.hoveredOverColumn =
|
|
3100
|
-
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(
|
|
3128
|
+
return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "data-testid": "data-grid", "aria-live": "polite", "aria-busy": e.loading }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition }, attrs: { "aria-controls": e.dataGridUid, "aria-label": e.t("filterBar"), role: "region" } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__wrapper", style: { top: e.computedColumnHeadersTopPosition }, attrs: { id: e.dataGridUid, role: e.ariaGridRole, "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": t.emptyState ? e.t("noResults") : null } }, [n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [e.columnPanel ? n("div", { attrs: { role: "row" } }, [n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { role: "gridcell", columns: e.localColumnsState, condensed: t.condensed, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } })], 1) : t._e(), n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
3129
|
+
var g;
|
|
3130
|
+
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (w) => e.registerColumnHeaderRefs(w), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": i, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-active-filters": e.hasActiveFilters, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((g = e.data) == null ? void 0 : g.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(w) {
|
|
3131
|
+
e.hoveredOverColumn = w;
|
|
3132
|
+
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(w) {
|
|
3101
3133
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
3102
|
-
}, "
|
|
3103
|
-
return
|
|
3104
|
-
|
|
3134
|
+
}, "select-all-current-results": function(w) {
|
|
3135
|
+
return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
|
|
3136
|
+
}, "deselect-all-current-results": function(w) {
|
|
3137
|
+
return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
|
|
3138
|
+
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(w, h) {
|
|
3139
|
+
return { key: h, fn: function(R) {
|
|
3140
|
+
return [t._t(h, null, null, R)];
|
|
3105
3141
|
} };
|
|
3106
3142
|
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
3107
|
-
})], 2)])]
|
|
3108
|
-
var
|
|
3109
|
-
return n(e.DataGridRow, { key: a, ref: (
|
|
3110
|
-
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED,
|
|
3111
|
-
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(
|
|
3112
|
-
return { key:
|
|
3113
|
-
return [t._t(
|
|
3143
|
+
})], 2)])]), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : n("div", { attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, [((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? [n("div", { attrs: { role: "row", tabindex: "-1" } }, [n("div", { attrs: { role: "gridcell", "aria-colspan": e.columns.length, tabindex: "-1" } }, [n(e.BentoEmptyState, t._b({ staticClass: "b-data-grid__empty-state" }, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1)])] : t._l(e.data, function(l, a) {
|
|
3144
|
+
var i, _;
|
|
3145
|
+
return n(e.DataGridRow, { key: a, ref: (g) => e.registerRowCellRefs(g, a), refInFor: !0, style: e.gridRowWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-even": e.internalZebraRows ? a % 2 !== 0 : !1, "is-row-last-child": a + 1 === ((i = e.data) == null ? void 0 : i.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": (_ = e.data) == null ? void 0 : _.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(g) {
|
|
3146
|
+
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, g);
|
|
3147
|
+
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(g, w) {
|
|
3148
|
+
return { key: w, fn: function(h) {
|
|
3149
|
+
return [t._t(w, null, null, h)];
|
|
3114
3150
|
} };
|
|
3115
3151
|
})], null, !0) });
|
|
3116
|
-
}),
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3152
|
+
})], 2)])]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", style: e.horizontalScrollbarConditionalStyles, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { ref: "paginationContainerRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": t.$t("pagination"), "aria-controls": e.dataGridUid }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: e.onDeselectAll } }) : t._e()], 1);
|
|
3153
|
+
}, Nl = [], Il = /* @__PURE__ */ K(
|
|
3154
|
+
Tl,
|
|
3155
|
+
Ol,
|
|
3120
3156
|
Nl,
|
|
3121
|
-
Dl,
|
|
3122
|
-
xl,
|
|
3123
3157
|
!1,
|
|
3124
3158
|
null,
|
|
3125
|
-
"
|
|
3159
|
+
"301db38d"
|
|
3126
3160
|
);
|
|
3127
|
-
const
|
|
3161
|
+
const Ra = Il.exports;
|
|
3128
3162
|
export {
|
|
3129
3163
|
ge as B,
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3164
|
+
ba as a,
|
|
3165
|
+
Ea as b,
|
|
3166
|
+
Se as c,
|
|
3167
|
+
Ra as d,
|
|
3134
3168
|
N as e,
|
|
3135
|
-
|
|
3136
|
-
|
|
3169
|
+
Ne as f,
|
|
3170
|
+
$e as g
|
|
3137
3171
|
};
|
|
3138
|
-
//# sourceMappingURL=data-grid.
|
|
3172
|
+
//# sourceMappingURL=data-grid.B5aCkT0o.js.map
|