@adyen/bento-vue3 1.40.0 → 1.41.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/components.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/currency/currency.types.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +34 -211
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{use-selector.d.ts → use-selector/use-selector.d.ts} +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-sorter.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -1
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +43 -72
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/layout/components/layout-row/layout-row.vue.d.ts +54 -0
- package/dist/@types/packages/vue2/src/components/layout/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/layout/layout.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/layout/layout.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/layout/layout.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/__mock-image.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.types.d.ts +83 -0
- package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +65 -0
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +19 -4
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CNH2XWmk.js → action-bar.BZIBGja0.js} +2 -2
- package/dist/chunks/{action-bar.CNH2XWmk.js.map → action-bar.BZIBGja0.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bu6WRt6i.js → checkbox-group.Zf-GivDW.js} +2 -2
- package/dist/chunks/{checkbox-group.Bu6WRt6i.js.map → checkbox-group.Zf-GivDW.js.map} +1 -1
- package/dist/chunks/{checkbox.DfUxRkJe.js → checkbox.DdMkyTo5.js} +15 -15
- package/dist/chunks/{checkbox.DfUxRkJe.js.map → checkbox.DdMkyTo5.js.map} +1 -1
- package/dist/chunks/{code-snippet.DqTEK8cz.js → code-snippet.Dp_tDJ-S.js} +3 -3
- package/dist/chunks/{code-snippet.DqTEK8cz.js.map → code-snippet.Dp_tDJ-S.js.map} +1 -1
- package/dist/chunks/{currency.BGrGBnhm.js → currency.Dz2x17_Q.js} +57 -70
- package/dist/chunks/currency.Dz2x17_Q.js.map +1 -0
- package/dist/chunks/{dashboard-section.rv0r2_-a.js → dashboard-section.BdRXcY4u.js} +2 -2
- package/dist/chunks/{dashboard-section.rv0r2_-a.js.map → dashboard-section.BdRXcY4u.js.map} +1 -1
- package/dist/chunks/{data-grid.DR-w_KKU.js → data-grid.BC2tOBxm.js} +1329 -1276
- package/dist/chunks/data-grid.BC2tOBxm.js.map +1 -0
- package/dist/chunks/{date-picker.mfXjVZ9w.js → date-picker.B6HK0sb2.js} +14 -14
- package/dist/chunks/{date-picker.mfXjVZ9w.js.map → date-picker.B6HK0sb2.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Cs8Ia3Qs.js → date-range-picker.3iWt1Cd6.js} +23 -23
- package/dist/chunks/{date-range-picker.Cs8Ia3Qs.js.map → date-range-picker.3iWt1Cd6.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DeoUXbp4.js → dropdown-tag.ChFJ9l5g.js} +2 -2
- package/dist/chunks/{dropdown-tag.DeoUXbp4.js.map → dropdown-tag.ChFJ9l5g.js.map} +1 -1
- package/dist/chunks/{dropdown.DBxpqjEM.js → dropdown.CMKdLPHi.js} +26 -26
- package/dist/chunks/{dropdown.DBxpqjEM.js.map → dropdown.CMKdLPHi.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js +10 -0
- package/dist/chunks/es6.b4enG1py.js.map +1 -0
- package/dist/chunks/{filter-bar.DiW13x-f.js → filter-bar.pKcJryD3.js} +7 -7
- package/dist/chunks/{filter-bar.DiW13x-f.js.map → filter-bar.pKcJryD3.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js +47 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map +1 -0
- package/dist/chunks/index.ChdIlujs.js +248 -0
- package/dist/chunks/{index.DKQuLmwu.js.map → index.ChdIlujs.js.map} +1 -1
- package/dist/chunks/{input-field.DbeVnbwg.js → input-field.Bk2p3kIb.js} +2 -2
- package/dist/chunks/{input-field.DbeVnbwg.js.map → input-field.Bk2p3kIb.js.map} +1 -1
- package/dist/chunks/layout-row.rzhGrBQ3.js +101 -0
- package/dist/chunks/layout-row.rzhGrBQ3.js.map +1 -0
- package/dist/chunks/{pagination.B-OihXTg.js → pagination.D_4FRHE9.js} +2 -2
- package/dist/chunks/{pagination.B-OihXTg.js.map → pagination.D_4FRHE9.js.map} +1 -1
- package/dist/chunks/promo-banner.BRn1iznD.js +126 -0
- package/dist/chunks/promo-banner.BRn1iznD.js.map +1 -0
- package/dist/chunks/{search-bar.DN-QKFlJ.js → search-bar.D_4u91te.js} +3 -3
- package/dist/chunks/{search-bar.DN-QKFlJ.js.map → search-bar.D_4u91te.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C-7Qq6rE.js → secondary-nav.CQ3aLyrM.js} +4 -4
- package/dist/chunks/{secondary-nav.C-7Qq6rE.js.map → secondary-nav.CQ3aLyrM.js.map} +1 -1
- package/dist/chunks/selection-card-group.Du3Cwf47.js +474 -0
- package/dist/chunks/selection-card-group.Du3Cwf47.js.map +1 -0
- package/dist/chunks/{structured-list-item.BhNJlDub.js → structured-list-item.CujUEOTK.js} +3 -3
- package/dist/chunks/structured-list-item.CujUEOTK.js.map +1 -0
- package/dist/chunks/{timeline-item.CEolKFn0.js → timeline-item.B8VvkDfR.js} +2 -2
- package/dist/chunks/{timeline-item.CEolKFn0.js.map → timeline-item.B8VvkDfR.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js → tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js} +9 -9
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js.map → tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.C7Lt5U_S.js → use-cached-selected-values.DaRzXFIt.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.C7Lt5U_S.js.map → use-cached-selected-values.DaRzXFIt.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/image.js +1 -1
- package/dist/index.js +197 -190
- package/dist/index.js.map +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/pagination.js +1 -1
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +16 -0
- package/dist/styles/bento-light.css +16 -0
- package/dist/styles/bento.css +16 -0
- package/dist/styles/legacy.css +16 -0
- package/dist/styles/styleguide.css +16 -0
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +0 -19
- package/dist/chunks/currency.BGrGBnhm.js.map +0 -1
- package/dist/chunks/data-grid.DR-w_KKU.js.map +0 -1
- package/dist/chunks/es6.BvpG4Oi6.js +0 -9
- package/dist/chunks/es6.BvpG4Oi6.js.map +0 -1
- package/dist/chunks/image.0KzfycGE.js +0 -78
- package/dist/chunks/image.0KzfycGE.js.map +0 -1
- package/dist/chunks/index.DKQuLmwu.js +0 -182
- package/dist/chunks/selection-card-group.DkSYInMF.js +0 -392
- package/dist/chunks/selection-card-group.DkSYInMF.js.map +0 -1
- package/dist/chunks/structured-list-item.BhNJlDub.js.map +0 -1
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as
|
|
6
|
-
import { N as
|
|
7
|
-
import { l as
|
|
8
|
-
import { K as
|
|
9
|
-
import { c as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import { B as
|
|
13
|
-
import { B as Ve, p as
|
|
14
|
-
import { u as
|
|
15
|
-
import { g as
|
|
16
|
-
import { u as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as We } from "./filter-bar.
|
|
19
|
-
import { E as
|
|
20
|
-
import { D as
|
|
1
|
+
import { ref as I, reactive as Xe, toRefs as Ke, computed as O, watchEffect as kn, watch as ce, onMounted as Je, nextTick as ue, onUnmounted as zt, onBeforeUpdate as zn, openBlock as u, createElementBlock as E, mergeProps as Y, toDisplayString as j, createCommentVNode as M, createElementVNode as p, defineComponent as he, normalizeClass as ne, Fragment as fe, renderList as Ce, unref as l, toHandlers as He, createVNode as q, createBlock as U, withCtx as G, renderSlot as be, withModifiers as Un, resolveComponent as de, createTextVNode as oe, withDirectives as Qe, vShow as Fn, toRef as Ut, resolveDirective as Pn, Transition as Ft, createSlots as $e, resolveDynamicComponent as Ne, useSlots as et, provide as Bn, normalizeStyle as Ie, inject as ft, normalizeProps as Wn, guardReactiveProps as Gn } from "vue";
|
|
2
|
+
import { C as Hn } from "./checkmark-circle-fill.ChV7Jy6r.js";
|
|
3
|
+
import { W as Vn } from "./warning-filled.Dm_HhqzW.js";
|
|
4
|
+
import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import { C as Pt } from "./cross.OvPfvoqX.js";
|
|
6
|
+
import { N as gt } from "./checkbox-input.D8ZUqd4m.js";
|
|
7
|
+
import { l as vt } from "./events.FNmSWp_P.js";
|
|
8
|
+
import { K as Le, B as xn } from "./tooltip.BEl_LdFo.js";
|
|
9
|
+
import { c as Zn } from "./popper-container.types.BCZMbVFD.js";
|
|
10
|
+
import { B as jn } from "./action-bar.BZIBGja0.js";
|
|
11
|
+
import { B as qn } from "./pagination.D_4FRHE9.js";
|
|
12
|
+
import { B as Bt } from "./loading-indicator.N_WV9Gwz.js";
|
|
13
|
+
import { B as Ve, p as Wt } from "./typography.DNzU41ah.js";
|
|
14
|
+
import { u as Yn } from "./aria-label.CaUURpnB.js";
|
|
15
|
+
import { g as Xn } from "./get-slot-text.D5WBGjic.js";
|
|
16
|
+
import { u as Oe } from "./i18n.CPGoe9tN.js";
|
|
17
|
+
import { B as Kn } from "./empty-state.CpXSj1aU.js";
|
|
18
|
+
import { B as We } from "./filter-bar.pKcJryD3.js";
|
|
19
|
+
import { E as Jn } from "./tabs.keys.Bc2pSKRw.js";
|
|
20
|
+
import { D as Qn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
21
21
|
import { o as tt } from "./resize.Bqks3WUm.js";
|
|
22
|
-
import { a as
|
|
23
|
-
import { B as
|
|
22
|
+
import { a as mt, B as el } from "./popover.HArIkKve.js";
|
|
23
|
+
import { B as Gt } from "./button.pwNCxwPu.js";
|
|
24
24
|
import { B as Ht } from "./toggle.Bme9eaeR.js";
|
|
25
|
-
import { B as
|
|
26
|
-
import { u as
|
|
27
|
-
import { B as
|
|
28
|
-
import { g as
|
|
29
|
-
import { S as
|
|
25
|
+
import { B as tl } from "./search-bar.D_4u91te.js";
|
|
26
|
+
import { u as nl } from "./dropdown.CMKdLPHi.js";
|
|
27
|
+
import { B as ll } from "./directive.O3yEdalv.js";
|
|
28
|
+
import { g as Vt } from "./generate-uid.D-HFI38h.js";
|
|
29
|
+
import { S as sl } from "./search.EnLryD8V.js";
|
|
30
30
|
import { B as nt } from "./toggle-button.Bf77_tMh.js";
|
|
31
|
-
import { B as
|
|
32
|
-
import { B as
|
|
33
|
-
import { B as qe, O as
|
|
34
|
-
import { A as
|
|
35
|
-
import { u as
|
|
36
|
-
import { u as
|
|
37
|
-
import { C as
|
|
38
|
-
import { C as
|
|
39
|
-
import { B as
|
|
31
|
+
import { B as xt } from "./checkbox.DdMkyTo5.js";
|
|
32
|
+
import { B as ol } from "./info-icon.CNPSAUM6.js";
|
|
33
|
+
import { B as qe, O as il, D as al } from "./menu.DXVN_WLr.js";
|
|
34
|
+
import { A as rl } from "./dialog-page.CnDOg98_.js";
|
|
35
|
+
import { u as Zt } from "./use-has-slot.B7eQSabc.js";
|
|
36
|
+
import { u as dl } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
37
|
+
import { C as ul } from "./copy.dbbJppdL.js";
|
|
38
|
+
import { C as cl, a as fl } from "./chevron-up.DQZG_BP3.js";
|
|
39
|
+
import { B as Ct, a as ht } from "./loading-button.CHujR70I.js";
|
|
40
40
|
import "../assets/data-grid.css";
|
|
41
|
-
var Ye = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Ye || {}),
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
() => Object.fromEntries(e.value.map(({ field:
|
|
41
|
+
var Ye = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Ye || {}), Ee = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e))(Ee || {}), Se = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(Se || {}), $ = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))($ || {}), Ge = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(Ge || {}), K = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(K || {});
|
|
42
|
+
const gl = (e, o) => {
|
|
43
|
+
const f = I(null), t = I(!1), r = I(void 0), i = e.value.reduce((_, w) => (_[w.field] = null, _), {}), s = Xe(i), h = Ke(s);
|
|
44
|
+
let C = 0, y = "";
|
|
45
|
+
const b = O(
|
|
46
|
+
() => Object.fromEntries(e.value.map(({ field: _, width: w, minWidth: A }) => [_, { width: w, minWidth: A }]))
|
|
47
47
|
);
|
|
48
|
-
|
|
49
|
-
let
|
|
50
|
-
const n = (
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
t.value = !1,
|
|
55
|
-
field:
|
|
56
|
-
width:
|
|
57
|
-
}),
|
|
58
|
-
}, a = (
|
|
59
|
-
if (A.preventDefault(),
|
|
48
|
+
kn(() => r.value = b.value);
|
|
49
|
+
let c = null, S = null;
|
|
50
|
+
const n = (_) => {
|
|
51
|
+
const w = _.clientX - C, A = y, F = r.value[A].width + w;
|
|
52
|
+
r.value[A].width = F > b.value[A].minWidth ? F : b.value[A].minWidth, o(K.COLUMN_RESIZING, r.value), C = _.clientX;
|
|
53
|
+
}, g = () => {
|
|
54
|
+
t.value = !1, c == null || c(), S == null || S(), y && o(K.COLUMN_RESIZE, {
|
|
55
|
+
field: y,
|
|
56
|
+
width: r.value[y].width
|
|
57
|
+
}), c = null, S = null, y = "", C = null;
|
|
58
|
+
}, a = (_, w, A) => {
|
|
59
|
+
if (A.preventDefault(), _) {
|
|
60
60
|
if (t.value = !0, A.buttons !== 1) {
|
|
61
|
-
|
|
61
|
+
g();
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
y = w, C = A.clientX, c = vt(window, "mousemove", n), S = vt(window, "mouseup", g);
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
return ce(
|
|
68
68
|
() => t.value,
|
|
69
|
-
(
|
|
70
|
-
!
|
|
69
|
+
(_, w) => {
|
|
70
|
+
!_ && w && (o(K.COLUMN_HOVER, f.value), f.value = null);
|
|
71
71
|
}
|
|
72
72
|
), {
|
|
73
|
-
resizeData:
|
|
74
|
-
allColumnRefs:
|
|
73
|
+
resizeData: r,
|
|
74
|
+
allColumnRefs: h,
|
|
75
75
|
startResize: a,
|
|
76
76
|
isResizing: t,
|
|
77
|
-
columnHoverEventToEmitAfterResizing:
|
|
77
|
+
columnHoverEventToEmitAfterResizing: f
|
|
78
78
|
};
|
|
79
|
-
},
|
|
80
|
-
const t = {},
|
|
81
|
-
const
|
|
82
|
-
|
|
79
|
+
}, vl = 100, _t = 50, ie = "b-actions-column", ml = 32, Cl = 56, hl = 56, _l = 80, Ll = 36, pl = 1, jt = 16, El = 20, bl = (e, o, f) => {
|
|
80
|
+
const t = {}, r = [], i = (h) => {
|
|
81
|
+
const C = t[h];
|
|
82
|
+
C && C.frozen !== !0 && (t[h].frozen = !0, r.push(h));
|
|
83
83
|
};
|
|
84
84
|
function s() {
|
|
85
|
-
if (
|
|
85
|
+
if (r.length === f.length)
|
|
86
86
|
return;
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
const h = { min: {}, max: {} };
|
|
88
|
+
let C = e, y = o, b = 0;
|
|
89
|
+
r.forEach((c) => {
|
|
90
|
+
C -= t[c].computedWidth, y -= t[c].flex;
|
|
91
91
|
});
|
|
92
|
-
for (let
|
|
93
|
-
const n = c
|
|
92
|
+
for (let c = 0, S = f.length; c < S; c += 1) {
|
|
93
|
+
const n = f[c];
|
|
94
94
|
if (t[n.field] && t[n.field].frozen === !0)
|
|
95
95
|
continue;
|
|
96
|
-
let a =
|
|
97
|
-
a < n.minWidth && (
|
|
96
|
+
let a = C / y * n.flex;
|
|
97
|
+
a < n.minWidth && (b += n.minWidth - a, a = n.minWidth, h.min[n.field] = !0), t[n.field] = {
|
|
98
98
|
frozen: !1,
|
|
99
99
|
computedWidth: a,
|
|
100
100
|
flex: n.flex
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
i(
|
|
105
|
-
}) :
|
|
106
|
-
i(
|
|
103
|
+
b > 0 ? Object.keys(h.min).forEach((c) => {
|
|
104
|
+
i(c);
|
|
105
|
+
}) : f.forEach(({ field: c }) => {
|
|
106
|
+
i(c);
|
|
107
107
|
}), s();
|
|
108
108
|
}
|
|
109
109
|
return s(), t;
|
|
110
|
-
},
|
|
111
|
-
let
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
var
|
|
115
|
-
return (
|
|
116
|
-
},
|
|
117
|
-
const s =
|
|
110
|
+
}, Lt = (e, o) => {
|
|
111
|
+
let f = pl;
|
|
112
|
+
return o && (f += jt * 2), e != null && e.offsetWidth ? e.offsetWidth + f : 0;
|
|
113
|
+
}, Sl = (e) => {
|
|
114
|
+
var o, f, t, r;
|
|
115
|
+
return (o = e == null ? void 0 : e.hasNestedContent) != null && o.value ? (f = e == null ? void 0 : e.hasSelectableColumn) != null && f.value ? (t = e == null ? void 0 : e.hasSelectableAcrossPages) != null && t.value ? _l : hl : Ll : (r = e == null ? void 0 : e.hasSelectableAcrossPages) != null && r.value ? Cl : ml;
|
|
116
|
+
}, yl = (e, o, f, t, r, i) => {
|
|
117
|
+
const s = I(e.value), h = I(o), C = I(f), y = I(t), b = I(r), c = I(!1);
|
|
118
118
|
ce(
|
|
119
119
|
() => e.value,
|
|
120
|
-
(
|
|
121
|
-
var
|
|
122
|
-
const D = (
|
|
123
|
-
if (!((
|
|
120
|
+
(v, L) => {
|
|
121
|
+
var H, J;
|
|
122
|
+
const D = (v == null ? void 0 : v.map(({ field: m }) => m).toString()) === (L == null ? void 0 : L.map(({ field: m }) => m).toString());
|
|
123
|
+
if (!((H = i == null ? void 0 : i.allowColumnDragAndDrop) != null && H.value) || !D) {
|
|
124
124
|
s.value = e.value;
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
s.value = ((J = s.value) == null ? void 0 : J.length) === 0 ? e.value : e.value.sort((
|
|
128
|
-
const
|
|
129
|
-
return
|
|
127
|
+
s.value = ((J = s.value) == null ? void 0 : J.length) === 0 ? e.value : e.value.sort((m, B) => {
|
|
128
|
+
const k = s.value.findIndex((V) => V.field === m.field), N = s.value.findIndex((V) => V.field === B.field);
|
|
129
|
+
return k === -1 ? 1 : N === -1 ? -1 : k - N;
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
|
-
const
|
|
133
|
+
const S = I();
|
|
134
134
|
let n = null;
|
|
135
|
-
const
|
|
136
|
-
var
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
const
|
|
135
|
+
const g = O(() => {
|
|
136
|
+
var k, N;
|
|
137
|
+
const v = [];
|
|
138
|
+
let L = 0, D = 0;
|
|
139
|
+
const H = {};
|
|
140
140
|
let J = s.value.filter((V) => V.visible !== !1);
|
|
141
|
-
const
|
|
142
|
-
if ((
|
|
143
|
-
const V =
|
|
141
|
+
const m = s.value.filter((V) => V.visible === !1);
|
|
142
|
+
if ((k = i == null ? void 0 : i.hasSelectableColumn) != null && k.value || (N = i == null ? void 0 : i.hasNestedContent) != null && N.value) {
|
|
143
|
+
const V = Sl(i);
|
|
144
144
|
J = [
|
|
145
145
|
{
|
|
146
|
-
field:
|
|
146
|
+
field: ie,
|
|
147
147
|
label: "",
|
|
148
148
|
minWidth: V,
|
|
149
149
|
width: V,
|
|
@@ -154,312 +154,313 @@ const il = (e, l) => {
|
|
|
154
154
|
];
|
|
155
155
|
}
|
|
156
156
|
J.forEach((V) => {
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
|
|
160
|
-
(
|
|
161
|
-
(
|
|
162
|
-
), D +=
|
|
157
|
+
const P = { ...V };
|
|
158
|
+
let ge;
|
|
159
|
+
P.flex && P.flex > 0 ? (L += P.flex, ge = 0, v.push(P)) : ge = Math.max(
|
|
160
|
+
(P == null ? void 0 : P.width) ?? vl,
|
|
161
|
+
(P == null ? void 0 : P.minWidth) ?? _t
|
|
162
|
+
), D += ge, P.width = ge, P.minWidth = (P == null ? void 0 : P.minWidth) ?? _t, H[P.field] = P;
|
|
163
163
|
});
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
166
|
-
const V =
|
|
167
|
-
Object.keys(V).forEach((
|
|
168
|
-
|
|
164
|
+
const B = Math.max(S.value - D, 0);
|
|
165
|
+
if (L > 0 && S.value > 0) {
|
|
166
|
+
const V = bl(B, L, v);
|
|
167
|
+
Object.keys(V).forEach((P) => {
|
|
168
|
+
H[P].width = V[P].computedWidth;
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
return
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
}), Object.values(
|
|
175
|
-
}), a =
|
|
176
|
-
a.value = { ...a.value, ...
|
|
177
|
-
},
|
|
178
|
-
s.value.some((
|
|
179
|
-
var
|
|
180
|
-
const D =
|
|
181
|
-
(
|
|
182
|
-
(
|
|
183
|
-
),
|
|
184
|
-
(V,
|
|
171
|
+
return m.forEach((V) => {
|
|
172
|
+
const P = { ...V };
|
|
173
|
+
H[P.field] = P;
|
|
174
|
+
}), Object.values(H);
|
|
175
|
+
}), a = I(void 0), _ = (v) => {
|
|
176
|
+
a.value = { ...a.value, ...v };
|
|
177
|
+
}, w = async () => {
|
|
178
|
+
s.value.some((v) => v == null ? void 0 : v.autoWidth) && (c.value = !0, await ue(), await ue(), s == null || s.value.filter((v) => v == null ? void 0 : v.autoWidth).forEach(({ field: v, minWidth: L }) => {
|
|
179
|
+
var m, B, k, N;
|
|
180
|
+
const D = Lt(
|
|
181
|
+
(m = y.value) == null ? void 0 : m[v],
|
|
182
|
+
(B = i == null ? void 0 : i.hasColumnPanel) == null ? void 0 : B.value
|
|
183
|
+
), H = (N = (k = b.value) == null ? void 0 : k[v]) == null ? void 0 : N.reduce(
|
|
184
|
+
(V, P) => Math.max(V, Lt(P)),
|
|
185
185
|
0
|
|
186
|
-
), J = Math.max(D,
|
|
187
|
-
(
|
|
188
|
-
[
|
|
186
|
+
), J = Math.max(D, H ?? 0);
|
|
187
|
+
(L === void 0 || J > L) && _({
|
|
188
|
+
[v]: {
|
|
189
189
|
width: J
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
|
-
}),
|
|
192
|
+
}), c.value = !1);
|
|
193
193
|
};
|
|
194
|
-
ce([() => s.value, () =>
|
|
195
|
-
s.value.some((
|
|
194
|
+
ce([() => s.value, () => h.value], async () => {
|
|
195
|
+
s.value.some((v) => v == null ? void 0 : v.autoWidth) && await w();
|
|
196
196
|
});
|
|
197
|
-
const A =
|
|
198
|
-
() =>
|
|
199
|
-
var
|
|
197
|
+
const A = O(
|
|
198
|
+
() => g.value.map((v) => {
|
|
199
|
+
var L, D;
|
|
200
200
|
return {
|
|
201
|
-
...
|
|
201
|
+
...v,
|
|
202
202
|
// Override column width with resized ones
|
|
203
|
-
width: ((D = (
|
|
203
|
+
width: ((D = (L = a.value) == null ? void 0 : L[v.field]) == null ? void 0 : D.width) ?? v.width
|
|
204
204
|
};
|
|
205
205
|
})
|
|
206
|
-
),
|
|
206
|
+
), F = O(
|
|
207
207
|
() => {
|
|
208
|
-
var
|
|
209
|
-
return (
|
|
208
|
+
var v;
|
|
209
|
+
return (v = A.value) == null ? void 0 : v.filter(({ visible: L }) => L !== !1).reduce((L, D) => D.width + L, 0);
|
|
210
210
|
}
|
|
211
|
-
),
|
|
212
|
-
() =>
|
|
213
|
-
),
|
|
214
|
-
width:
|
|
211
|
+
), x = O(
|
|
212
|
+
() => S.value <= F.value
|
|
213
|
+
), ae = O(() => ({
|
|
214
|
+
width: S.value > F.value ? "100%" : "fit-content"
|
|
215
215
|
}));
|
|
216
216
|
return Je(() => {
|
|
217
|
-
var
|
|
218
|
-
const
|
|
217
|
+
var L;
|
|
218
|
+
const v = i != null && i.isDataGridTemplate ? El : 0;
|
|
219
219
|
ue(() => {
|
|
220
|
-
|
|
220
|
+
C.value && (S.value = C.value.getBoundingClientRect().width - v);
|
|
221
221
|
const D = ce(
|
|
222
|
-
|
|
222
|
+
C,
|
|
223
223
|
() => {
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
C.value && (ue(() => D()), n = tt(C.value, ({ width: H }) => {
|
|
225
|
+
S.value = H - v;
|
|
226
226
|
}));
|
|
227
227
|
},
|
|
228
228
|
{ immediate: !0 }
|
|
229
229
|
);
|
|
230
|
-
}), (
|
|
231
|
-
|
|
232
|
-
}) :
|
|
233
|
-
}),
|
|
230
|
+
}), (L = document == null ? void 0 : document.fonts) != null && L.ready ? document.fonts.ready.then(() => {
|
|
231
|
+
w();
|
|
232
|
+
}) : w();
|
|
233
|
+
}), zt(() => {
|
|
234
234
|
n == null || n.disconnect();
|
|
235
|
-
}),
|
|
236
|
-
var
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
}), zn(() => {
|
|
236
|
+
var v;
|
|
237
|
+
b.value && ((v = Object.keys(b.value)) == null ? void 0 : v.length) > 0 && Object.keys(b.value).forEach((D) => {
|
|
238
|
+
b.value[D] = [];
|
|
239
239
|
});
|
|
240
240
|
}), {
|
|
241
241
|
columnDefs: A,
|
|
242
|
-
gridColumnWidthStyle:
|
|
243
|
-
onColumnWidthOverride:
|
|
244
|
-
isMeasuringColumnWidths:
|
|
245
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
246
|
-
columns: s
|
|
242
|
+
gridColumnWidthStyle: ae,
|
|
243
|
+
onColumnWidthOverride: _,
|
|
244
|
+
isMeasuringColumnWidths: c,
|
|
245
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: x,
|
|
246
|
+
columns: s,
|
|
247
|
+
totalWidthOfAllColumns: F
|
|
247
248
|
};
|
|
248
|
-
},
|
|
249
|
-
const i =
|
|
249
|
+
}, wl = (e, o, f, t, r) => {
|
|
250
|
+
const i = I(e.value ?? []), s = Xe({
|
|
250
251
|
allItemsSelected: !1,
|
|
251
252
|
isIndeterminate: !1
|
|
252
|
-
}),
|
|
253
|
-
|
|
254
|
-
},
|
|
255
|
-
var n,
|
|
256
|
-
if (i.value =
|
|
253
|
+
}), h = () => {
|
|
254
|
+
o($.SELECT, i.value), o($.UPDATE_SELECTION, i.value);
|
|
255
|
+
}, C = (c) => {
|
|
256
|
+
var n, g, a, _, w;
|
|
257
|
+
if (i.value = c, ((n = f.value) == null ? void 0 : n.length) > 0 && ((g = f.value) == null ? void 0 : g.filter((A) => !r(A)).every((A) => i.value.includes(t(A))))) {
|
|
257
258
|
s.allItemsSelected = !0;
|
|
258
|
-
const A = ((a =
|
|
259
|
+
const A = ((a = f.value) == null ? void 0 : a.length) > 0 && f.value.every((F) => i.value.includes(t(F)));
|
|
259
260
|
s.isIndeterminate = !A;
|
|
260
261
|
} else
|
|
261
|
-
s.allItemsSelected = !1, s.isIndeterminate = ((
|
|
262
|
-
},
|
|
262
|
+
s.allItemsSelected = !1, s.isIndeterminate = ((_ = i.value) == null ? void 0 : _.length) > 0 && ((w = f.value) == null ? void 0 : w.length) > 0 && f.value.some((A) => i.value.includes(t(A)));
|
|
263
|
+
}, y = (c) => {
|
|
263
264
|
ue(() => {
|
|
264
|
-
var
|
|
265
|
-
if (s.allItemsSelected =
|
|
266
|
-
i.value = (n = (
|
|
267
|
-
const a = ((
|
|
265
|
+
var S, n, g;
|
|
266
|
+
if (s.allItemsSelected = c, c) {
|
|
267
|
+
i.value = (n = (S = f.value) == null ? void 0 : S.filter((_) => !r(_))) == null ? void 0 : n.map((_) => t(_));
|
|
268
|
+
const a = ((g = f.value) == null ? void 0 : g.length) > 0 && f.value.every((_) => i.value.includes(t(_)));
|
|
268
269
|
s.isIndeterminate = i.value.length > 0 && !a;
|
|
269
270
|
} else
|
|
270
271
|
i.value = [], s.isIndeterminate = !1;
|
|
271
|
-
|
|
272
|
+
h();
|
|
272
273
|
});
|
|
273
|
-
},
|
|
274
|
+
}, b = (c) => {
|
|
274
275
|
ue(() => {
|
|
275
|
-
|
|
276
|
+
C(c), h();
|
|
276
277
|
});
|
|
277
278
|
};
|
|
278
279
|
return ce(
|
|
279
280
|
() => e.value,
|
|
280
281
|
() => {
|
|
281
|
-
|
|
282
|
+
C(e.value ?? []);
|
|
282
283
|
},
|
|
283
284
|
{ immediate: !0 }
|
|
284
285
|
), ce(
|
|
285
|
-
() =>
|
|
286
|
+
() => f.value,
|
|
286
287
|
() => {
|
|
287
|
-
|
|
288
|
+
C(i.value);
|
|
288
289
|
}
|
|
289
|
-
), { onAllRowSelect:
|
|
290
|
-
},
|
|
291
|
-
var
|
|
292
|
-
return (
|
|
290
|
+
), { onAllRowSelect: y, onRowSelect: b, allItemsSelectedState: s, selectedItems: i };
|
|
291
|
+
}, Ol = (e, o, f) => ({ isSorting: (s) => e.value.some((h) => h.field === s), getSortingDirection: (s) => {
|
|
292
|
+
var h;
|
|
293
|
+
return (h = e.value.find((C) => C.field === s)) == null ? void 0 : h.direction;
|
|
293
294
|
}, sortByColumnField: (s) => {
|
|
294
|
-
var
|
|
295
|
-
if (!
|
|
295
|
+
var y;
|
|
296
|
+
if (!o.value.some((b) => b.field === s && b.sortable))
|
|
296
297
|
return;
|
|
297
|
-
const
|
|
298
|
+
const C = [{
|
|
298
299
|
field: s,
|
|
299
|
-
direction: ((
|
|
300
|
+
direction: ((y = e.value.find((b) => b.field === s)) == null ? void 0 : y.direction) === Se.ASCENDING ? Se.DESCENDING : Se.ASCENDING
|
|
300
301
|
}];
|
|
301
|
-
|
|
302
|
+
f("sort", C);
|
|
302
303
|
} });
|
|
303
|
-
var
|
|
304
|
-
const
|
|
305
|
-
const t =
|
|
306
|
-
const n =
|
|
307
|
-
return
|
|
308
|
-
}),
|
|
309
|
-
() => [...Object.values(e.value)].flat(1).sort((n,
|
|
310
|
-
const a = Number(n.getAttribute("data-cellindex")),
|
|
311
|
-
return a >
|
|
304
|
+
var se = ((e) => (e[e.ARROW_DOWN = Le.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Le.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Le.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Le.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Le.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Le.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Le.END] = "END", e[e.HOME = Le.HOME] = "HOME", e))(se || {});
|
|
305
|
+
const Il = (e, o, f) => {
|
|
306
|
+
const t = O(() => {
|
|
307
|
+
const n = o.value.filter(({ visible: g }) => g !== !1);
|
|
308
|
+
return f.value ? n.length + 1 : n.length;
|
|
309
|
+
}), r = O(
|
|
310
|
+
() => [...Object.values(e.value)].flat(1).sort((n, g) => {
|
|
311
|
+
const a = Number(n.getAttribute("data-cellindex")), _ = Number(g.getAttribute("data-cellindex"));
|
|
312
|
+
return a > _ ? 1 : _ > a ? -1 : 0;
|
|
312
313
|
})
|
|
313
|
-
), i = (n) => Math.floor(n / t.value), s = (n,
|
|
314
|
-
const
|
|
314
|
+
), i = (n) => Math.floor(n / t.value), s = (n, g, a) => {
|
|
315
|
+
const _ = r.value.length - 1, w = t.value - 1, A = i(n), F = n - t.value * A;
|
|
315
316
|
return {
|
|
316
|
-
[
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
}[
|
|
321
|
-
},
|
|
322
|
-
const
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
}[
|
|
328
|
-
return
|
|
329
|
-
},
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
].includes(n),
|
|
335
|
-
const
|
|
336
|
-
return g
|
|
337
|
-
},
|
|
338
|
-
if (!
|
|
317
|
+
[se.PAGE_UP]: F,
|
|
318
|
+
[se.PAGE_DOWN]: _ - w + F,
|
|
319
|
+
[se.END]: a ? _ : t.value * A + w,
|
|
320
|
+
[se.HOME]: a ? 0 : t.value * A
|
|
321
|
+
}[g];
|
|
322
|
+
}, h = (n, g) => {
|
|
323
|
+
const _ = {
|
|
324
|
+
[se.ARROW_DOWN]: t.value,
|
|
325
|
+
[se.ARROW_UP]: -t.value,
|
|
326
|
+
[se.ARROW_LEFT]: -1,
|
|
327
|
+
[se.ARROW_RIGHT]: 1
|
|
328
|
+
}[g], w = n + _;
|
|
329
|
+
return w < 0 || w >= r.value.length ? n : w;
|
|
330
|
+
}, C = (n) => [
|
|
331
|
+
se.PAGE_UP,
|
|
332
|
+
se.PAGE_DOWN,
|
|
333
|
+
se.END,
|
|
334
|
+
se.HOME
|
|
335
|
+
].includes(n), y = (n, g, a) => {
|
|
336
|
+
const _ = r.value.indexOf(n);
|
|
337
|
+
return C(g) ? s(_, g, a) : h(_, g);
|
|
338
|
+
}, b = (n, g, a) => {
|
|
339
|
+
if (!r.value.includes(n))
|
|
339
340
|
return;
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
},
|
|
341
|
+
const _ = y(n, g, a);
|
|
342
|
+
r.value[_].focus();
|
|
343
|
+
}, c = (n) => n in se;
|
|
343
344
|
return {
|
|
344
|
-
isNavigationKeyCode:
|
|
345
|
-
focusOnNextGridcell:
|
|
345
|
+
isNavigationKeyCode: c,
|
|
346
|
+
focusOnNextGridcell: b,
|
|
346
347
|
navigationInput: (n) => {
|
|
347
|
-
const { ctrlKey:
|
|
348
|
-
Object.values(e.value).flat(1).includes(
|
|
348
|
+
const { ctrlKey: g, keyCode: a, target: _ } = n;
|
|
349
|
+
Object.values(e.value).flat(1).includes(_) && c(a) && b(_, a, g);
|
|
349
350
|
}
|
|
350
351
|
};
|
|
351
|
-
},
|
|
352
|
-
const i =
|
|
353
|
-
|
|
352
|
+
}, Al = 90, Rl = (e, o, f, t, r) => {
|
|
353
|
+
const i = I(e), s = I(o), h = I(f), C = I(t), y = O(() => i.value !== "none"), b = O(() => i.value === "automatic"), c = () => {
|
|
354
|
+
r($.UPDATE_SHOW_MORE);
|
|
354
355
|
};
|
|
355
356
|
return ce(
|
|
356
357
|
() => s.value,
|
|
357
358
|
() => {
|
|
358
|
-
|
|
359
|
+
b.value && h.value.offsetHeight / s.value * 100 > Al && !C.value && c();
|
|
359
360
|
}
|
|
360
|
-
), { isLazyLoad:
|
|
361
|
-
},
|
|
362
|
-
const t =
|
|
361
|
+
), { isLazyLoad: y, isInfiniteScroll: b, verticalScrollPosition: s, emitLazyLoadEvent: c };
|
|
362
|
+
}, Tl = (e, o, f) => {
|
|
363
|
+
const t = I(e), r = I(o), i = Xe({
|
|
363
364
|
dragging: null,
|
|
364
365
|
dragToLeft: null,
|
|
365
366
|
target: null
|
|
366
|
-
}), s = (n,
|
|
367
|
-
const a = t.value.findIndex((A) => A.field === n.field),
|
|
368
|
-
if (
|
|
367
|
+
}), s = (n, g = 0) => {
|
|
368
|
+
const a = t.value.findIndex((A) => A.field === n.field), _ = a + g;
|
|
369
|
+
if (_ < 0 || _ > t.value.length - 1)
|
|
369
370
|
return;
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
},
|
|
373
|
-
i.dragging = n,
|
|
374
|
-
},
|
|
371
|
+
const w = [...t.value];
|
|
372
|
+
w.splice(_, 0, w.splice(a, 1)[0]), f($.COLUMNS, w), f($.UPDATE_COLUMNS, w);
|
|
373
|
+
}, h = (n, g) => {
|
|
374
|
+
i.dragging = n, g.dataTransfer.setData("text", ""), g.dataTransfer.dropEffect = "move";
|
|
375
|
+
}, C = (n, g) => {
|
|
375
376
|
i.target = n;
|
|
376
|
-
const a =
|
|
377
|
-
i.dragToLeft =
|
|
378
|
-
},
|
|
379
|
-
var
|
|
380
|
-
if (((
|
|
381
|
-
const
|
|
382
|
-
var
|
|
383
|
-
return
|
|
384
|
-
}),
|
|
385
|
-
let
|
|
386
|
-
|
|
387
|
-
|
|
377
|
+
const a = g.currentTarget.getBoundingClientRect(), _ = a.left + a.width / 2, w = g.clientX ?? 0;
|
|
378
|
+
i.dragToLeft = w <= _;
|
|
379
|
+
}, y = (n) => {
|
|
380
|
+
var g, a;
|
|
381
|
+
if (((g = i.dragging) == null ? void 0 : g.field) !== n.field) {
|
|
382
|
+
const _ = t.value.findIndex((v) => {
|
|
383
|
+
var L;
|
|
384
|
+
return v.field === ((L = i.dragging) == null ? void 0 : L.field);
|
|
385
|
+
}), w = t.value.findIndex((v) => v.field === n.field), A = i.dragToLeft ? w : w + 1, F = A > _ ? A - 1 : A;
|
|
386
|
+
let x = [...t.value];
|
|
387
|
+
x.splice(
|
|
388
|
+
F === -1 ? 0 : F,
|
|
388
389
|
0,
|
|
389
|
-
|
|
390
|
+
x.splice(_, 1)[0]
|
|
390
391
|
);
|
|
391
|
-
const
|
|
392
|
-
((a = i.dragging) == null ? void 0 : a.frozen) !== n.frozen && A !==
|
|
393
|
-
(
|
|
394
|
-
var
|
|
395
|
-
return ((
|
|
392
|
+
const ae = t.value.findIndex((v) => !(v != null && v.frozen));
|
|
393
|
+
((a = i.dragging) == null ? void 0 : a.frozen) !== n.frozen && A !== ae && (x = x.map(
|
|
394
|
+
(v) => {
|
|
395
|
+
var L;
|
|
396
|
+
return ((L = i.dragging) == null ? void 0 : L.field) === v.field ? { ...v, frozen: !!(n != null && n.frozen) } : v;
|
|
396
397
|
}
|
|
397
|
-
)),
|
|
398
|
+
)), f($.COLUMNS, x), f($.UPDATE_COLUMNS, x);
|
|
398
399
|
}
|
|
399
400
|
i.dragging = null, i.target = null;
|
|
400
|
-
},
|
|
401
|
+
}, b = () => {
|
|
401
402
|
i.dragging = null, i.dragToLeft = null, i.target = null;
|
|
402
|
-
},
|
|
403
|
-
[
|
|
404
|
-
[
|
|
405
|
-
[
|
|
406
|
-
[
|
|
407
|
-
} : {}),
|
|
408
|
-
dragenter: (
|
|
409
|
-
|
|
403
|
+
}, c = O(() => r.value ? {
|
|
404
|
+
[K.COLUMN_DRAG_START]: (n, g) => h(n, g),
|
|
405
|
+
[K.COLUMN_DRAG_ENTER]: (n, g) => C(n, g),
|
|
406
|
+
[K.COLUMN_DROP]: (n) => y(n),
|
|
407
|
+
[K.COLUMN_DRAG_END]: () => b()
|
|
408
|
+
} : {}), S = O(() => (n) => r.value ? {
|
|
409
|
+
dragenter: (g) => {
|
|
410
|
+
g.preventDefault(), C(n, g);
|
|
410
411
|
},
|
|
411
412
|
drop: () => {
|
|
412
|
-
|
|
413
|
+
y(n);
|
|
413
414
|
},
|
|
414
|
-
dragover: (
|
|
415
|
-
|
|
415
|
+
dragover: (g) => {
|
|
416
|
+
g.preventDefault();
|
|
416
417
|
}
|
|
417
418
|
} : {});
|
|
418
419
|
return {
|
|
419
420
|
// Values
|
|
420
421
|
draggingColumns: i,
|
|
421
422
|
// Methods
|
|
422
|
-
draggingEventsForColumns:
|
|
423
|
-
draggingEventsForRowCell:
|
|
423
|
+
draggingEventsForColumns: c,
|
|
424
|
+
draggingEventsForRowCell: S,
|
|
424
425
|
onMoveColumnByOffset: s
|
|
425
426
|
};
|
|
426
|
-
},
|
|
427
|
-
const
|
|
428
|
-
() => [...
|
|
429
|
-
),
|
|
430
|
-
() => t.value.filter((
|
|
431
|
-
), i =
|
|
432
|
-
() => t.value.filter((
|
|
433
|
-
), s =
|
|
427
|
+
}, Nl = (e, o) => {
|
|
428
|
+
const f = I(e), t = O(
|
|
429
|
+
() => [...f.value].sort((c, S) => c.frozen === S.frozen ? 0 : c.frozen ? -1 : 1)
|
|
430
|
+
), r = O(
|
|
431
|
+
() => t.value.filter((c) => c.frozen && c.visible !== !1)
|
|
432
|
+
), i = O(
|
|
433
|
+
() => t.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
434
|
+
), s = O(
|
|
434
435
|
() => [
|
|
435
|
-
{ columnSet:
|
|
436
|
+
{ columnSet: r.value, id: "frozen", isFrozenColumns: !0 },
|
|
436
437
|
{ columnSet: i.value, id: "unfrozen" }
|
|
437
|
-
].filter(({ columnSet:
|
|
438
|
-
),
|
|
439
|
-
() =>
|
|
440
|
-
),
|
|
441
|
-
|
|
438
|
+
].filter(({ columnSet: c }) => c.length)
|
|
439
|
+
), h = O(
|
|
440
|
+
() => f.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== ie).length === 1
|
|
441
|
+
), C = (c) => o($.UPDATE_CONDENSED, c), y = (c) => {
|
|
442
|
+
o($.COLUMNS, c), o($.UPDATE_COLUMNS, c);
|
|
442
443
|
};
|
|
443
444
|
return {
|
|
444
445
|
// Values
|
|
445
446
|
columnSets: s,
|
|
446
|
-
isOnlyOneVisibleColumn:
|
|
447
|
+
isOnlyOneVisibleColumn: h,
|
|
447
448
|
sortedColumns: t,
|
|
448
449
|
// Methods
|
|
449
|
-
onConfigSettingsUpdate:
|
|
450
|
-
onConfigSettingsColumnsUpdate:
|
|
451
|
-
onConfigSettingsColumnUpdate: (
|
|
452
|
-
const
|
|
453
|
-
(n) => (n == null ? void 0 : n.field) ===
|
|
450
|
+
onConfigSettingsUpdate: C,
|
|
451
|
+
onConfigSettingsColumnsUpdate: y,
|
|
452
|
+
onConfigSettingsColumnUpdate: (c) => {
|
|
453
|
+
const S = t.value.map(
|
|
454
|
+
(n) => (n == null ? void 0 : n.field) === c.field ? c : n
|
|
454
455
|
);
|
|
455
|
-
|
|
456
|
+
y(S);
|
|
456
457
|
}
|
|
457
458
|
};
|
|
458
|
-
},
|
|
459
|
-
const
|
|
459
|
+
}, pt = (e, o) => {
|
|
460
|
+
const f = I(0);
|
|
460
461
|
let t = null;
|
|
461
|
-
const
|
|
462
|
-
e != null && e.value &&
|
|
462
|
+
const r = () => {
|
|
463
|
+
e != null && e.value && o.value && (f.value = e.value.offsetHeight);
|
|
463
464
|
};
|
|
464
465
|
return Je(() => {
|
|
465
466
|
ue(() => {
|
|
@@ -467,320 +468,335 @@ const pl = (e, l, c) => {
|
|
|
467
468
|
e,
|
|
468
469
|
() => {
|
|
469
470
|
e != null && e.value && (ue(() => i()), t = tt(e.value, () => {
|
|
470
|
-
|
|
471
|
+
r();
|
|
471
472
|
}));
|
|
472
473
|
},
|
|
473
474
|
{ immediate: !0 }
|
|
474
475
|
);
|
|
475
476
|
ce(
|
|
476
|
-
|
|
477
|
+
o,
|
|
477
478
|
() => {
|
|
478
|
-
|
|
479
|
+
o.value ? r() : f.value = 0;
|
|
479
480
|
},
|
|
480
481
|
{ immediate: !0 }
|
|
481
482
|
);
|
|
482
483
|
});
|
|
483
|
-
}),
|
|
484
|
+
}), zt(() => {
|
|
484
485
|
t == null || t.disconnect();
|
|
485
|
-
}),
|
|
486
|
-
},
|
|
487
|
-
const
|
|
488
|
-
|
|
489
|
-
() =>
|
|
486
|
+
}), f;
|
|
487
|
+
}, $l = (e, o, f, t, r) => {
|
|
488
|
+
const i = I(0), s = I(!1), h = I(!1);
|
|
489
|
+
ce(
|
|
490
|
+
() => i.value,
|
|
490
491
|
() => {
|
|
491
|
-
e.value.scrollLeft =
|
|
492
|
+
e.value.scrollLeft = i.value, o.value.scrollLeft = i.value, s.value = !!i.value, h.value = o.value.scrollWidth - o.value.offsetWidth > i.value;
|
|
492
493
|
}
|
|
493
494
|
), Je(async () => {
|
|
494
|
-
var
|
|
495
|
-
await ue(), await ue(), ((
|
|
496
|
-
})
|
|
495
|
+
var S, n;
|
|
496
|
+
await ue(), await ue(), ((S = o.value) == null ? void 0 : S.offsetWidth) < ((n = o.value) == null ? void 0 : n.scrollWidth) && (h.value = !0);
|
|
497
|
+
});
|
|
498
|
+
const C = (S) => {
|
|
499
|
+
if (i.value = S.target.scrollLeft, f.value = e.value.scrollHeight - S.target.scrollTop, t != null && t.value) {
|
|
500
|
+
const n = S.target.scrollLeft;
|
|
501
|
+
t.value.scrollLeft !== n && (t.value.scrollLeft = n);
|
|
502
|
+
}
|
|
503
|
+
}, y = (S) => {
|
|
504
|
+
S.key !== "Tab" && S.key !== "ArrowRight" && S.key !== "ArrowLeft" || (S.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
505
|
+
e.value.style.overflowX = "auto";
|
|
506
|
+
}));
|
|
507
|
+
}, b = (S) => {
|
|
508
|
+
const n = S.target.scrollLeft;
|
|
509
|
+
e.value.scrollLeft !== n && (e.value.scrollLeft = n);
|
|
510
|
+
}, c = O(() => {
|
|
511
|
+
var S, n, g;
|
|
512
|
+
return {
|
|
513
|
+
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((S = r == null ? void 0 : r.pagination) == null ? void 0 : S.value) && ((n = r == null ? void 0 : r.stickyPagination) == null ? void 0 : n.value) && !((g = r == null ? void 0 : r.isLazyLoad) != null && g.value)
|
|
514
|
+
};
|
|
515
|
+
});
|
|
516
|
+
return {
|
|
497
517
|
// Values
|
|
498
|
-
scrollLeftPosition:
|
|
499
|
-
hasLeftOverflow:
|
|
500
|
-
hasRightOverflow:
|
|
518
|
+
scrollLeftPosition: i,
|
|
519
|
+
hasLeftOverflow: s,
|
|
520
|
+
hasRightOverflow: h,
|
|
521
|
+
horizontalScrollbarConditionalClasses: c,
|
|
501
522
|
// Methods
|
|
502
|
-
updateScrollPosition:
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
updateScrollPositionOnFrozenColumnsNavigation: (g) => {
|
|
506
|
-
g.key !== "Tab" && g.key !== "ArrowRight" && g.key !== "ArrowLeft" || (g.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
507
|
-
e.value.style.overflowX = "auto";
|
|
508
|
-
}));
|
|
509
|
-
}
|
|
523
|
+
updateScrollPosition: C,
|
|
524
|
+
updateScrollPositionOnFrozenColumnsNavigation: y,
|
|
525
|
+
syncVirtualScrollerWithBody: b
|
|
510
526
|
};
|
|
511
|
-
},
|
|
512
|
-
const
|
|
513
|
-
var a,
|
|
514
|
-
if (!
|
|
527
|
+
}, Dl = (e, o, f, t) => {
|
|
528
|
+
const r = I(null), i = O(() => {
|
|
529
|
+
var a, _, w, A;
|
|
530
|
+
if (!r.value || r.value.field === ie)
|
|
515
531
|
return {
|
|
516
532
|
hoveredOverColumnField: "",
|
|
517
533
|
isSeparatorOffset: !1,
|
|
518
534
|
noBorderLeft: !1,
|
|
519
535
|
noBorderRight: !1
|
|
520
536
|
};
|
|
521
|
-
const s = (
|
|
537
|
+
const s = (_ = (a = e.value.find((F) => F.isFrozenColumns)) == null ? void 0 : a.columnSet) == null ? void 0 : _.filter((F) => F.field !== ie), h = e.value.find((F) => !(F != null && F.isFrozenColumns)), C = r.value.frozen && (s == null ? void 0 : s[0].field) === r.value.field, y = !r.value.frozen && ((w = h == null ? void 0 : h.columnSet) == null ? void 0 : w[0].field) === r.value.field, b = (o.value || f.value) && C, c = (o.value || f.value) && !s && y, S = s && y, n = (s == null ? void 0 : s.length) > 0 && r.value.frozen && (s == null ? void 0 : s[s.length - 1].field) === r.value.field, g = f.value && t.value && !r.value.frozen && ((A = h == null ? void 0 : h.columnSet) == null ? void 0 : A[h.columnSet.length - 1].field) === r.value.field;
|
|
522
538
|
return {
|
|
523
|
-
hoveredOverColumnField:
|
|
524
|
-
isSeparatorOffset:
|
|
525
|
-
noBorderLeft: !!
|
|
526
|
-
noBorderRight: !!n || !!
|
|
539
|
+
hoveredOverColumnField: r.value.field,
|
|
540
|
+
isSeparatorOffset: g,
|
|
541
|
+
noBorderLeft: !!b || !!c || !!S,
|
|
542
|
+
noBorderRight: !!n || !!g
|
|
527
543
|
};
|
|
528
544
|
});
|
|
529
545
|
return {
|
|
530
|
-
hoveredOverColumn:
|
|
546
|
+
hoveredOverColumn: r,
|
|
531
547
|
hoveredOverColumnState: i
|
|
532
548
|
};
|
|
533
549
|
};
|
|
534
|
-
let
|
|
535
|
-
const
|
|
550
|
+
let Et = 0;
|
|
551
|
+
const Ml = {
|
|
536
552
|
beforeCreate() {
|
|
537
|
-
this.uuid =
|
|
553
|
+
this.uuid = Et.toString(), Et += 1;
|
|
538
554
|
}
|
|
539
|
-
},
|
|
540
|
-
function
|
|
541
|
-
return u(), E("svg",
|
|
555
|
+
}, kl = { key: 0 }, zl = ["clip-path"], Ul = ["id"];
|
|
556
|
+
function Fl(e, o, f, t, r, i) {
|
|
557
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
542
558
|
class: "ui-assets-icons-16",
|
|
543
559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
544
560
|
width: "16",
|
|
545
561
|
height: "16",
|
|
546
562
|
fill: "none"
|
|
547
563
|
}), [
|
|
548
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
564
|
+
e.$attrs["svg-title"] ? (u(), E("title", kl, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
549
565
|
p("g", {
|
|
550
566
|
fill: "#00112C",
|
|
551
567
|
"clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
552
|
-
},
|
|
568
|
+
}, o[0] || (o[0] = [
|
|
553
569
|
p("path", { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" }, null, -1),
|
|
554
570
|
p("path", { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" }, null, -1)
|
|
555
|
-
]), 8,
|
|
571
|
+
]), 8, zl),
|
|
556
572
|
p("defs", null, [
|
|
557
573
|
p("clipPath", {
|
|
558
574
|
id: "uia-icons-16-arrow_up_down_sort__a" + e.uuid
|
|
559
|
-
},
|
|
575
|
+
}, o[1] || (o[1] = [
|
|
560
576
|
p("rect", {
|
|
561
577
|
width: "16",
|
|
562
578
|
height: "16",
|
|
563
579
|
fill: "#fff"
|
|
564
580
|
}, null, -1)
|
|
565
|
-
]), 8,
|
|
581
|
+
]), 8, Ul)
|
|
566
582
|
])
|
|
567
583
|
], 16);
|
|
568
584
|
}
|
|
569
|
-
const
|
|
570
|
-
let
|
|
571
|
-
const
|
|
585
|
+
const Pl = /* @__PURE__ */ X(Ml, [["render", Fl]]);
|
|
586
|
+
let bt = 0;
|
|
587
|
+
const Bl = {
|
|
572
588
|
beforeCreate() {
|
|
573
|
-
this.uuid =
|
|
589
|
+
this.uuid = bt.toString(), bt += 1;
|
|
574
590
|
}
|
|
575
|
-
},
|
|
576
|
-
function
|
|
577
|
-
return u(), E("svg",
|
|
591
|
+
}, Wl = { key: 0 };
|
|
592
|
+
function Gl(e, o, f, t, r, i) {
|
|
593
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
578
594
|
class: "ui-assets-icons-16",
|
|
579
595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
580
596
|
width: "16",
|
|
581
597
|
height: "16",
|
|
582
598
|
fill: "none"
|
|
583
599
|
}), [
|
|
584
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
585
|
-
|
|
600
|
+
e.$attrs["svg-title"] ? (u(), E("title", Wl, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
601
|
+
o[0] || (o[0] = p("path", {
|
|
586
602
|
fill: "#00112C",
|
|
587
603
|
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"
|
|
588
604
|
}, null, -1))
|
|
589
605
|
], 16);
|
|
590
606
|
}
|
|
591
|
-
const
|
|
607
|
+
const Hl = /* @__PURE__ */ X(Bl, [["render", Gl]]);
|
|
592
608
|
let St = 0;
|
|
593
|
-
const
|
|
609
|
+
const Vl = {
|
|
594
610
|
beforeCreate() {
|
|
595
611
|
this.uuid = St.toString(), St += 1;
|
|
596
612
|
}
|
|
597
|
-
},
|
|
598
|
-
function
|
|
599
|
-
return u(), E("svg",
|
|
613
|
+
}, xl = { key: 0 }, Zl = ["clip-path"], jl = ["id"];
|
|
614
|
+
function ql(e, o, f, t, r, i) {
|
|
615
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
600
616
|
class: "ui-assets-icons-16",
|
|
601
617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
602
618
|
width: "16",
|
|
603
619
|
height: "16",
|
|
604
620
|
fill: "none"
|
|
605
621
|
}), [
|
|
606
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
622
|
+
e.$attrs["svg-title"] ? (u(), E("title", xl, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
607
623
|
p("g", {
|
|
608
624
|
"clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")"
|
|
609
|
-
},
|
|
625
|
+
}, o[0] || (o[0] = [
|
|
610
626
|
p("path", {
|
|
611
627
|
fill: "#00112C",
|
|
612
628
|
d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z"
|
|
613
629
|
}, null, -1)
|
|
614
|
-
]), 8,
|
|
630
|
+
]), 8, Zl),
|
|
615
631
|
p("defs", null, [
|
|
616
632
|
p("clipPath", {
|
|
617
633
|
id: "uia-icons-16-freeze__a" + e.uuid
|
|
618
|
-
},
|
|
634
|
+
}, o[1] || (o[1] = [
|
|
619
635
|
p("rect", {
|
|
620
636
|
width: "16",
|
|
621
637
|
height: "16",
|
|
622
638
|
fill: "#fff",
|
|
623
639
|
transform: "matrix(1 0 0 -1 0 16)"
|
|
624
640
|
}, null, -1)
|
|
625
|
-
]), 8,
|
|
641
|
+
]), 8, jl)
|
|
626
642
|
])
|
|
627
643
|
], 16);
|
|
628
644
|
}
|
|
629
|
-
const
|
|
630
|
-
let
|
|
631
|
-
const
|
|
645
|
+
const qt = /* @__PURE__ */ X(Vl, [["render", ql]]);
|
|
646
|
+
let yt = 0;
|
|
647
|
+
const Yl = {
|
|
632
648
|
beforeCreate() {
|
|
633
|
-
this.uuid =
|
|
649
|
+
this.uuid = yt.toString(), yt += 1;
|
|
634
650
|
}
|
|
635
|
-
},
|
|
636
|
-
function
|
|
637
|
-
return u(), E("svg",
|
|
651
|
+
}, Xl = { key: 0 };
|
|
652
|
+
function Kl(e, o, f, t, r, i) {
|
|
653
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
638
654
|
class: "ui-assets-icons-16",
|
|
639
655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
640
656
|
width: "16",
|
|
641
657
|
height: "16",
|
|
642
658
|
fill: "none"
|
|
643
659
|
}), [
|
|
644
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
645
|
-
|
|
660
|
+
e.$attrs["svg-title"] ? (u(), E("title", Xl, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
661
|
+
o[0] || (o[0] = p("path", {
|
|
646
662
|
fill: "#00112C",
|
|
647
663
|
d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z"
|
|
648
664
|
}, null, -1)),
|
|
649
|
-
|
|
665
|
+
o[1] || (o[1] = p("path", {
|
|
650
666
|
fill: "#00112C",
|
|
651
667
|
d: "M13.9404 5.23L12.8704 6.3C13.4704 6.97 13.9004 7.62 14.1304 8C13.4704 9.07 11.2504 12.25 8.00039 12.25C7.67039 12.25 7.34039 12.22 7.03039 12.14L5.80039 13.37C6.48039 13.61 7.21039 13.75 8.00039 13.75C12.7425 13.75 15.4838 8.69421 15.6649 8.36011C15.6671 8.35603 15.6689 8.35265 15.6704 8.35L15.8504 8L15.6704 7.65C15.6204 7.55 15.0204 6.43 13.9404 5.23Z"
|
|
652
668
|
}, null, -1)),
|
|
653
|
-
|
|
669
|
+
o[2] || (o[2] = p("path", {
|
|
654
670
|
fill: "#00112C",
|
|
655
671
|
d: "M8.96039 3.85C8.65039 3.78 8.33039 3.75 8.00039 3.75C4.75039 3.75 2.53039 6.93 1.87039 8C2.10039 8.38 2.53039 9.02 3.12039 9.69L2.06039 10.75C0.98039 9.56 0.380391 8.45 0.330391 8.35L0.150391 8L0.330391 7.65C0.331838 7.64735 0.333668 7.64397 0.33588 7.63989C0.517034 7.30578 3.25829 2.25 8.00039 2.25C8.79039 2.25 9.52039 2.39 10.1904 2.62L8.96039 3.85Z"
|
|
656
672
|
}, null, -1))
|
|
657
673
|
], 16);
|
|
658
674
|
}
|
|
659
|
-
const
|
|
660
|
-
let
|
|
661
|
-
const
|
|
675
|
+
const Jl = /* @__PURE__ */ X(Yl, [["render", Kl]]);
|
|
676
|
+
let wt = 0;
|
|
677
|
+
const Ql = {
|
|
662
678
|
beforeCreate() {
|
|
663
|
-
this.uuid =
|
|
679
|
+
this.uuid = wt.toString(), wt += 1;
|
|
664
680
|
}
|
|
665
|
-
},
|
|
666
|
-
function
|
|
667
|
-
return u(), E("svg",
|
|
681
|
+
}, es = { key: 0 }, ts = ["clip-path"], ns = ["id"];
|
|
682
|
+
function ls(e, o, f, t, r, i) {
|
|
683
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
668
684
|
class: "ui-assets-icons-16",
|
|
669
685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
670
686
|
width: "16",
|
|
671
687
|
height: "16",
|
|
672
688
|
fill: "none"
|
|
673
689
|
}), [
|
|
674
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
690
|
+
e.$attrs["svg-title"] ? (u(), E("title", es, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
675
691
|
p("g", {
|
|
676
692
|
fill: "#00112C",
|
|
677
693
|
"clip-path": "url(#uia-icons-16-sort_ascending__a" + e.uuid + ")"
|
|
678
|
-
},
|
|
694
|
+
}, o[0] || (o[0] = [
|
|
679
695
|
p("path", { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" }, null, -1),
|
|
680
696
|
p("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
681
697
|
p("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
|
|
682
698
|
p("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
|
|
683
|
-
]), 8,
|
|
699
|
+
]), 8, ts),
|
|
684
700
|
p("defs", null, [
|
|
685
701
|
p("clipPath", {
|
|
686
702
|
id: "uia-icons-16-sort_ascending__a" + e.uuid
|
|
687
|
-
},
|
|
703
|
+
}, o[1] || (o[1] = [
|
|
688
704
|
p("rect", {
|
|
689
705
|
width: "16",
|
|
690
706
|
height: "16",
|
|
691
707
|
fill: "#fff"
|
|
692
708
|
}, null, -1)
|
|
693
|
-
]), 8,
|
|
709
|
+
]), 8, ns)
|
|
694
710
|
])
|
|
695
711
|
], 16);
|
|
696
712
|
}
|
|
697
|
-
const
|
|
698
|
-
let
|
|
699
|
-
const
|
|
713
|
+
const ss = /* @__PURE__ */ X(Ql, [["render", ls]]);
|
|
714
|
+
let Ot = 0;
|
|
715
|
+
const os = {
|
|
700
716
|
beforeCreate() {
|
|
701
|
-
this.uuid =
|
|
717
|
+
this.uuid = Ot.toString(), Ot += 1;
|
|
702
718
|
}
|
|
703
|
-
},
|
|
704
|
-
function
|
|
705
|
-
return u(), E("svg",
|
|
719
|
+
}, is = { key: 0 }, as = ["clip-path"], rs = ["id"];
|
|
720
|
+
function ds(e, o, f, t, r, i) {
|
|
721
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
706
722
|
class: "ui-assets-icons-16",
|
|
707
723
|
xmlns: "http://www.w3.org/2000/svg",
|
|
708
724
|
width: "16",
|
|
709
725
|
height: "16",
|
|
710
726
|
fill: "none"
|
|
711
727
|
}), [
|
|
712
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
728
|
+
e.$attrs["svg-title"] ? (u(), E("title", is, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
713
729
|
p("g", {
|
|
714
730
|
fill: "#00112C",
|
|
715
731
|
"clip-path": "url(#uia-icons-16-sort_descending__a" + e.uuid + ")"
|
|
716
|
-
},
|
|
732
|
+
}, o[0] || (o[0] = [
|
|
717
733
|
p("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1),
|
|
718
734
|
p("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
719
735
|
p("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
|
|
720
736
|
p("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
|
|
721
|
-
]), 8,
|
|
737
|
+
]), 8, as),
|
|
722
738
|
p("defs", null, [
|
|
723
739
|
p("clipPath", {
|
|
724
740
|
id: "uia-icons-16-sort_descending__a" + e.uuid
|
|
725
|
-
},
|
|
741
|
+
}, o[1] || (o[1] = [
|
|
726
742
|
p("rect", {
|
|
727
743
|
width: "16",
|
|
728
744
|
height: "16",
|
|
729
745
|
fill: "#fff"
|
|
730
746
|
}, null, -1)
|
|
731
|
-
]), 8,
|
|
747
|
+
]), 8, rs)
|
|
732
748
|
])
|
|
733
749
|
], 16);
|
|
734
750
|
}
|
|
735
|
-
const
|
|
736
|
-
let
|
|
737
|
-
const
|
|
751
|
+
const us = /* @__PURE__ */ X(os, [["render", ds]]);
|
|
752
|
+
let It = 0;
|
|
753
|
+
const cs = {
|
|
738
754
|
beforeCreate() {
|
|
739
|
-
this.uuid =
|
|
755
|
+
this.uuid = It.toString(), It += 1;
|
|
740
756
|
}
|
|
741
|
-
},
|
|
742
|
-
function
|
|
743
|
-
return u(), E("svg",
|
|
757
|
+
}, fs = { key: 0 };
|
|
758
|
+
function gs(e, o, f, t, r, i) {
|
|
759
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
744
760
|
class: "ui-assets-icons-16",
|
|
745
761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
762
|
width: "16",
|
|
747
763
|
height: "16",
|
|
748
764
|
fill: "none"
|
|
749
765
|
}), [
|
|
750
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
751
|
-
|
|
766
|
+
e.$attrs["svg-title"] ? (u(), E("title", fs, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
767
|
+
o[0] || (o[0] = p("path", {
|
|
752
768
|
fill: "#00112C",
|
|
753
769
|
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"
|
|
754
770
|
}, null, -1)),
|
|
755
|
-
|
|
771
|
+
o[1] || (o[1] = p("path", {
|
|
756
772
|
fill: "#00112C",
|
|
757
773
|
d: "M7.99964 2.25C5.50387 2.25 3.57073 3.66588 2.3086 4.9806C1.6704 5.64539 1.18078 6.30745 0.850599 6.80272C0.685043 7.05106 0.558349 7.2593 0.471981 7.40748C0.428769 7.48162 0.395568 7.54087 0.372564 7.58275C0.36106 7.60369 0.352097 7.6203 0.345701 7.63227L0.338032 7.64672L0.335646 7.65126L0.334488 7.65348L0.154297 8L0.334225 8.34601L0.999638 8C0.334225 8.34601 0.334814 8.34715 0.334814 8.34715L0.335646 8.34874L0.338032 8.35328L0.345701 8.36773C0.352097 8.3797 0.36106 8.39631 0.372564 8.41725C0.395568 8.45913 0.428769 8.51838 0.471981 8.59252C0.558349 8.7407 0.685043 8.94894 0.850599 9.19728C1.18078 9.69255 1.6704 10.3546 2.3086 11.0194C3.57073 12.3341 5.50387 13.75 7.99964 13.75C10.4954 13.75 12.4285 12.3341 13.6907 11.0194C14.3289 10.3546 14.8185 9.69255 15.1487 9.19728C15.3142 8.94894 15.4409 8.7407 15.5273 8.59252C15.5705 8.51838 15.6037 8.45913 15.6267 8.41725C15.6382 8.39631 15.6472 8.3797 15.6536 8.36773L15.6612 8.35328L15.6636 8.34874L15.6648 8.34652L15.845 8L15.6651 7.65399L14.9996 8C15.6651 7.65399 15.6645 7.65285 15.6645 7.65285L15.6636 7.65126L15.6612 7.64672L15.6536 7.63227C15.6472 7.6203 15.6382 7.60369 15.6267 7.58275C15.6037 7.54087 15.5705 7.48162 15.5273 7.40748C15.4409 7.2593 15.3142 7.05106 15.1487 6.80272C14.8185 6.30745 14.3289 5.64539 13.6907 4.9806C12.4285 3.66588 10.4954 2.25 7.99964 2.25ZM14.9996 8L15.6648 8.34652C15.6648 8.34652 15.6651 8.34601 14.9996 8ZM0.999638 8L0.334488 7.65348C0.334488 7.65348 0.334225 7.65399 0.999638 8ZM2.09867 8.36522C2.00649 8.22694 1.92852 8.10363 1.86519 8C1.92852 7.89637 2.00649 7.77306 2.09867 7.63478C2.39349 7.19255 2.82887 6.60461 3.39068 6.0194C4.52855 4.83412 6.09541 3.75 7.99964 3.75C9.90387 3.75 11.4707 4.83412 12.6086 6.0194C13.1704 6.60461 13.6058 7.19255 13.9006 7.63478C13.9928 7.77306 14.0708 7.89637 14.1341 8C14.0708 8.10363 13.9928 8.22694 13.9006 8.36522C13.6058 8.80745 13.1704 9.39539 12.6086 9.9806C11.4707 11.1659 9.90387 12.25 7.99964 12.25C6.09541 12.25 4.52855 11.1659 3.39068 9.9806C2.82887 9.39539 2.39349 8.80745 2.09867 8.36522Z"
|
|
758
774
|
}, null, -1))
|
|
759
775
|
], 16);
|
|
760
776
|
}
|
|
761
|
-
const
|
|
762
|
-
let
|
|
763
|
-
const
|
|
777
|
+
const vs = /* @__PURE__ */ X(cs, [["render", gs]]);
|
|
778
|
+
let At = 0;
|
|
779
|
+
const ms = {
|
|
764
780
|
beforeCreate() {
|
|
765
|
-
this.uuid =
|
|
781
|
+
this.uuid = At.toString(), At += 1;
|
|
766
782
|
}
|
|
767
|
-
},
|
|
768
|
-
function
|
|
769
|
-
return u(), E("svg",
|
|
783
|
+
}, Cs = { key: 0 };
|
|
784
|
+
function hs(e, o, f, t, r, i) {
|
|
785
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
770
786
|
class: "ui-assets-icons-16",
|
|
771
787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
772
788
|
width: "16",
|
|
773
789
|
height: "16",
|
|
774
790
|
fill: "none"
|
|
775
791
|
}), [
|
|
776
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
777
|
-
|
|
792
|
+
e.$attrs["svg-title"] ? (u(), E("title", Cs, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
793
|
+
o[0] || (o[0] = p("path", {
|
|
778
794
|
fill: "#00112C",
|
|
779
795
|
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
780
796
|
}, null, -1))
|
|
781
797
|
], 16);
|
|
782
798
|
}
|
|
783
|
-
const
|
|
799
|
+
const _s = /* @__PURE__ */ X(ms, [["render", hs]]), Yt = {
|
|
784
800
|
"en-US": {
|
|
785
801
|
sortColumn: "Sort {name} column",
|
|
786
802
|
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
@@ -812,23 +828,23 @@ const cs = /* @__PURE__ */ K(rs, [["render", us]]), qt = {
|
|
|
812
828
|
selectAll: "すべて選択",
|
|
813
829
|
unfreezeColumn: "列の固定を解除"
|
|
814
830
|
}
|
|
815
|
-
},
|
|
831
|
+
}, Ls = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], ps = {
|
|
816
832
|
key: 0,
|
|
817
833
|
class: "b-data-grid-columns__select-column"
|
|
818
|
-
},
|
|
834
|
+
}, Es = ["aria-label"], bs = { class: "b-data-grid-columns__label" }, Ss = {
|
|
819
835
|
key: 0,
|
|
820
836
|
class: "b-data-grid-columns__column-info-icon"
|
|
821
|
-
},
|
|
837
|
+
}, ys = {
|
|
822
838
|
key: 1,
|
|
823
839
|
class: "b-data-grid-columns__column-sort"
|
|
824
|
-
},
|
|
840
|
+
}, ws = ["data-testid", "onMousedown"], Os = {
|
|
825
841
|
key: 0,
|
|
826
842
|
class: "b-data-grid-columns__column-separator"
|
|
827
|
-
},
|
|
828
|
-
i18n: { messages:
|
|
843
|
+
}, Is = {
|
|
844
|
+
i18n: { messages: Yt },
|
|
829
845
|
name: "data-grid-columns"
|
|
830
|
-
},
|
|
831
|
-
...
|
|
846
|
+
}, As = /* @__PURE__ */ he({
|
|
847
|
+
...Is,
|
|
832
848
|
props: {
|
|
833
849
|
/**
|
|
834
850
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -952,165 +968,165 @@ const cs = /* @__PURE__ */ K(rs, [["render", us]]), qt = {
|
|
|
952
968
|
default: !1
|
|
953
969
|
}
|
|
954
970
|
},
|
|
955
|
-
emits: ["column-hover"],
|
|
956
|
-
setup(e, { expose:
|
|
957
|
-
const t = e,
|
|
971
|
+
emits: ["sort", "column-hover"],
|
|
972
|
+
setup(e, { expose: o, emit: f }) {
|
|
973
|
+
const t = e, r = f, i = 100, { t: s } = Oe({ messages: Yt }), { columns: h, sortBy: C } = Ke(t), y = I({}), b = I({}), c = I(), S = I(), n = (d) => r(K.SELECT_ALL_ROWS, d), g = (d) => d.field === ie, a = O(() => [
|
|
958
974
|
{
|
|
959
975
|
text: s("selectPage"),
|
|
960
976
|
handler: () => n(!0)
|
|
961
977
|
},
|
|
962
978
|
{
|
|
963
979
|
text: s("selectAll"),
|
|
964
|
-
handler: () =>
|
|
980
|
+
handler: () => r(K.SELECT_ALL_ACROSS_PAGES)
|
|
965
981
|
}
|
|
966
|
-
]), { startResize:
|
|
982
|
+
]), { startResize: _, isResizing: w, columnHoverEventToEmitAfterResizing: A } = gl(h, r), { isSorting: F, getSortingDirection: x, sortByColumnField: ae } = Ol(C, h, r), v = (d) => {
|
|
967
983
|
var re;
|
|
968
|
-
if (!
|
|
984
|
+
if (!d.sortable)
|
|
969
985
|
return null;
|
|
970
|
-
const
|
|
971
|
-
return
|
|
972
|
-
[Se.ASCENDING]:
|
|
973
|
-
[Se.DESCENDING]:
|
|
974
|
-
}[
|
|
975
|
-
},
|
|
976
|
-
dragstart: (
|
|
977
|
-
|
|
986
|
+
const W = (re = t.sortBy.find(({ field: te }) => te === d.field)) == null ? void 0 : re.direction;
|
|
987
|
+
return W ? {
|
|
988
|
+
[Se.ASCENDING]: Ge.ASCENDING,
|
|
989
|
+
[Se.DESCENDING]: Ge.DESCENDING
|
|
990
|
+
}[W] : Ge.NONE;
|
|
991
|
+
}, L = O(() => (d) => t.hasDraggableColumns ? {
|
|
992
|
+
dragstart: (W) => {
|
|
993
|
+
r(K.COLUMN_DRAG_START, d, W);
|
|
978
994
|
},
|
|
979
|
-
dragover: (
|
|
980
|
-
|
|
995
|
+
dragover: (W) => {
|
|
996
|
+
W.preventDefault();
|
|
981
997
|
},
|
|
982
|
-
dragenter: (
|
|
983
|
-
|
|
998
|
+
dragenter: (W) => {
|
|
999
|
+
W.preventDefault(), r(K.COLUMN_DRAG_ENTER, d, W);
|
|
984
1000
|
},
|
|
985
1001
|
drop: () => {
|
|
986
|
-
|
|
1002
|
+
r(K.COLUMN_DROP, d);
|
|
987
1003
|
},
|
|
988
1004
|
dragend: () => {
|
|
989
|
-
|
|
1005
|
+
r(K.COLUMN_DRAG_END);
|
|
990
1006
|
}
|
|
991
|
-
} : {}), D =
|
|
1007
|
+
} : {}), D = O(() => (d) => [
|
|
992
1008
|
{
|
|
993
1009
|
text: s("moveColumnLeft"),
|
|
994
|
-
handler: () =>
|
|
995
|
-
icon:
|
|
996
|
-
disabled: t.columns[0].field ===
|
|
1010
|
+
handler: () => r(K.COLUMN_MOVE, d, -1),
|
|
1011
|
+
icon: rl,
|
|
1012
|
+
disabled: t.columns[0].field === d.field
|
|
997
1013
|
},
|
|
998
1014
|
{
|
|
999
1015
|
text: s("moveColumnRight"),
|
|
1000
|
-
handler: () =>
|
|
1001
|
-
icon:
|
|
1002
|
-
disabled: t.columns[t.columns.length - 1].field ===
|
|
1016
|
+
handler: () => r(K.COLUMN_MOVE, d, 1),
|
|
1017
|
+
icon: Hl,
|
|
1018
|
+
disabled: t.columns[t.columns.length - 1].field === d.field
|
|
1003
1019
|
},
|
|
1004
1020
|
{
|
|
1005
|
-
text:
|
|
1006
|
-
handler: () =>
|
|
1007
|
-
icon:
|
|
1021
|
+
text: d != null && d.frozen ? s("unfreezeColumn") : s("freezeColumn"),
|
|
1022
|
+
handler: () => r(K.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
|
|
1023
|
+
icon: qt
|
|
1008
1024
|
},
|
|
1009
1025
|
{
|
|
1010
|
-
text: (
|
|
1026
|
+
text: (d == null ? void 0 : d.visible) !== !1 ? s("hideColumn") : s("showColumn"),
|
|
1011
1027
|
handler: () => {
|
|
1012
|
-
|
|
1013
|
-
...
|
|
1014
|
-
visible: (
|
|
1028
|
+
r(K.COLUMN_UPDATE, {
|
|
1029
|
+
...d,
|
|
1030
|
+
visible: (d == null ? void 0 : d.visible) === !1
|
|
1015
1031
|
});
|
|
1016
1032
|
},
|
|
1017
|
-
icon: (
|
|
1018
|
-
disabled: (
|
|
1033
|
+
icon: (d == null ? void 0 : d.visible) !== !1 ? Jl : vs,
|
|
1034
|
+
disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && t.isOnlyOneVisibleColumn
|
|
1019
1035
|
}
|
|
1020
|
-
]),
|
|
1021
|
-
|
|
1036
|
+
]), H = (d) => {
|
|
1037
|
+
c.value = d.field, S.value && clearTimeout(S.value);
|
|
1022
1038
|
}, J = () => {
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1039
|
+
const d = setTimeout(() => {
|
|
1040
|
+
c.value = "";
|
|
1025
1041
|
}, i);
|
|
1026
|
-
|
|
1027
|
-
},
|
|
1028
|
-
let
|
|
1042
|
+
S.value = d;
|
|
1043
|
+
}, m = (d) => {
|
|
1044
|
+
let W = {
|
|
1029
1045
|
mouseenter: () => {
|
|
1030
|
-
|
|
1046
|
+
H(d), w.value ? A.value = d : r("column-hover", d);
|
|
1031
1047
|
},
|
|
1032
1048
|
mouseleave: () => {
|
|
1033
|
-
J(),
|
|
1049
|
+
J(), w.value ? A.value = null : r("column-hover", null);
|
|
1034
1050
|
},
|
|
1035
|
-
focus: () =>
|
|
1051
|
+
focus: () => H(d)
|
|
1036
1052
|
};
|
|
1037
|
-
return
|
|
1038
|
-
...
|
|
1039
|
-
...
|
|
1040
|
-
}),
|
|
1041
|
-
},
|
|
1053
|
+
return g(d) || (W = {
|
|
1054
|
+
...W,
|
|
1055
|
+
...L.value(d)
|
|
1056
|
+
}), W;
|
|
1057
|
+
}, B = (d) => d.infoIconTooltip || d.sortable || t.hasColumnPanel, k = (d, W) => {
|
|
1042
1058
|
var T;
|
|
1043
|
-
((T =
|
|
1044
|
-
},
|
|
1045
|
-
var
|
|
1046
|
-
const
|
|
1059
|
+
((T = y.value) == null ? void 0 : T[W]) === void 0 && (y.value = { ...y.value, [W]: null }), d !== null && (y.value[W] = d);
|
|
1060
|
+
}, N = O(() => {
|
|
1061
|
+
var W;
|
|
1062
|
+
const d = {
|
|
1047
1063
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
1048
1064
|
};
|
|
1049
|
-
return (
|
|
1050
|
-
...
|
|
1065
|
+
return (W = h.value[0]) != null && W.frozen ? {
|
|
1066
|
+
...d,
|
|
1051
1067
|
"b-data-grid-columns--frozen": !0,
|
|
1052
1068
|
"b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
|
|
1053
1069
|
"b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
|
|
1054
1070
|
} : {
|
|
1055
|
-
...
|
|
1071
|
+
...d,
|
|
1056
1072
|
"b-data-grid-columns--unfrozen": !0
|
|
1057
1073
|
};
|
|
1058
|
-
}), V = (
|
|
1059
|
-
var T, re,
|
|
1074
|
+
}), V = (d, W) => d && W === 0 ? mt.BOTTOM_START : mt.BOTTOM_END, P = (d, W) => {
|
|
1075
|
+
var T, re, te, Q, Ae, Me, ke, ze, Ue, we;
|
|
1060
1076
|
return {
|
|
1061
|
-
"b-data-grid-columns__column--column-hovered":
|
|
1062
|
-
"b-data-grid-columns__column--column-hovered-no-border-left":
|
|
1063
|
-
"b-data-grid-columns__column--column-hovered-no-border-right":
|
|
1064
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns &&
|
|
1065
|
-
"b-data-grid-columns__column--sortable":
|
|
1066
|
-
"b-data-grid-columns__column--padding-left-unset": ((T =
|
|
1067
|
-
"b-data-grid-columns__column--padding-right-unset": ((re =
|
|
1068
|
-
"b-data-grid-columns__column--numeric":
|
|
1069
|
-
"b-data-grid-columns__column--frozen":
|
|
1070
|
-
"b-data-grid-columns__column--is-re-ordering": (
|
|
1071
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (
|
|
1072
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (
|
|
1073
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel":
|
|
1077
|
+
"b-data-grid-columns__column--column-hovered": d.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1078
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1079
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1080
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && W === h.value.length - 1,
|
|
1081
|
+
"b-data-grid-columns__column--sortable": d.sortable,
|
|
1082
|
+
"b-data-grid-columns__column--padding-left-unset": ((T = d == null ? void 0 : d.padding) == null ? void 0 : T.left) === !1,
|
|
1083
|
+
"b-data-grid-columns__column--padding-right-unset": ((re = d == null ? void 0 : d.padding) == null ? void 0 : re.right) === !1,
|
|
1084
|
+
"b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
|
|
1085
|
+
"b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
|
|
1086
|
+
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((Q = (te = t.draggingColumns) == null ? void 0 : te.dragging) == null ? void 0 : Q.field),
|
|
1087
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((Me = (Ae = t.draggingColumns) == null ? void 0 : Ae.target) == null ? void 0 : Me.field) && ((ke = t.draggingColumns) == null ? void 0 : ke.dragToLeft),
|
|
1088
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((Ue = (ze = t.draggingColumns) == null ? void 0 : ze.target) == null ? void 0 : Ue.field) && !((we = t.draggingColumns) != null && we.dragToLeft),
|
|
1089
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || t.hasColumnPanel && c.value === d.field || t.selectableAcrossPages
|
|
1074
1090
|
};
|
|
1075
|
-
},
|
|
1076
|
-
"b-data-grid-columns__column-header-and-actions--numeric":
|
|
1077
|
-
}),
|
|
1078
|
-
"b-data-grid-columns__column-actions--numeric":
|
|
1079
|
-
}), Ze = (
|
|
1091
|
+
}, ge = (d) => ({
|
|
1092
|
+
"b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
|
|
1093
|
+
}), ye = (d) => ({
|
|
1094
|
+
"b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
|
|
1095
|
+
}), Ze = (d) => ({
|
|
1080
1096
|
"b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
|
|
1081
|
-
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField ===
|
|
1082
|
-
}),
|
|
1097
|
+
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === d.field && t.hoveredOverColumnState.isSeparatorOffset
|
|
1098
|
+
}), De = O(() => ({
|
|
1083
1099
|
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
1084
1100
|
}));
|
|
1085
|
-
return
|
|
1086
|
-
columnHeaderRefs:
|
|
1087
|
-
}), (
|
|
1088
|
-
class:
|
|
1101
|
+
return o({
|
|
1102
|
+
columnHeaderRefs: y
|
|
1103
|
+
}), (d, W) => (u(), E("div", {
|
|
1104
|
+
class: ne(["b-data-grid-columns", N.value]),
|
|
1089
1105
|
"data-testid": "data-grid-columns"
|
|
1090
1106
|
}, [
|
|
1091
|
-
(u(!0), E(fe, null,
|
|
1107
|
+
(u(!0), E(fe, null, Ce(l(h), (T, re) => (u(), E("div", Y({
|
|
1092
1108
|
key: T.field,
|
|
1093
1109
|
ref_for: !0,
|
|
1094
|
-
ref: (
|
|
1110
|
+
ref: (te) => k(te, T.field),
|
|
1095
1111
|
"aria-colindex": re + 1,
|
|
1096
1112
|
"aria-label": T.label,
|
|
1097
|
-
"aria-sort":
|
|
1098
|
-
class: [
|
|
1113
|
+
"aria-sort": v(T),
|
|
1114
|
+
class: [P(T, re), "b-data-grid-columns__column"],
|
|
1099
1115
|
"data-testid": `${T.field}-column-header`,
|
|
1100
|
-
draggable: e.hasDraggableColumns && !
|
|
1116
|
+
draggable: e.hasDraggableColumns && !l(w) && !g(T),
|
|
1101
1117
|
role: "columnheader",
|
|
1102
1118
|
tabindex: T.sortable || e.hasColumnPanel || T.infoIconTooltip ? "0" : "-1",
|
|
1103
1119
|
style: { width: T.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${T.width}px` }
|
|
1104
|
-
},
|
|
1105
|
-
|
|
1106
|
-
q(
|
|
1120
|
+
}, He(m(T), !0)), [
|
|
1121
|
+
g(T) && e.selectable ? (u(), E("div", ps, [
|
|
1122
|
+
q(l(xt), {
|
|
1107
1123
|
"model-value": e.allItemsSelectedState.allItemsSelected,
|
|
1108
1124
|
"data-testid": "checkbox-select-all",
|
|
1109
1125
|
indeterminate: e.allItemsSelectedState.isIndeterminate,
|
|
1110
1126
|
value: "data-grid-select-all",
|
|
1111
1127
|
"onUpdate:modelValue": n
|
|
1112
1128
|
}, null, 8, ["model-value", "indeterminate"]),
|
|
1113
|
-
e.selectableAcrossPages ? (u(),
|
|
1129
|
+
e.selectableAcrossPages ? (u(), U(l(qe), {
|
|
1114
1130
|
key: 0,
|
|
1115
1131
|
class: "b-data-grid-columns__select-column-menu",
|
|
1116
1132
|
data: a.value,
|
|
@@ -1118,138 +1134,138 @@ const cs = /* @__PURE__ */ K(rs, [["render", us]]), qt = {
|
|
|
1118
1134
|
"menu-fixed-positioning": "",
|
|
1119
1135
|
button: { variant: "tertiary", condensed: !0 }
|
|
1120
1136
|
}, {
|
|
1121
|
-
iconLeft:
|
|
1122
|
-
q(
|
|
1123
|
-
"svg-title":
|
|
1137
|
+
iconLeft: G(() => [
|
|
1138
|
+
q(l(_s), {
|
|
1139
|
+
"svg-title": l(s)("selectionMenu")
|
|
1124
1140
|
}, null, 8, ["svg-title"])
|
|
1125
1141
|
]),
|
|
1126
1142
|
_: 1
|
|
1127
|
-
}, 8, ["data"])) :
|
|
1143
|
+
}, 8, ["data"])) : M("", !0)
|
|
1128
1144
|
])) : (u(), E(fe, { key: 1 }, [
|
|
1129
1145
|
p("div", {
|
|
1130
|
-
"aria-label":
|
|
1146
|
+
"aria-label": l(s)("columnActions", { name: T.label }),
|
|
1131
1147
|
"aria-live": "polite",
|
|
1132
1148
|
role: "region",
|
|
1133
|
-
class:
|
|
1149
|
+
class: ne(["b-data-grid-columns__column-header-and-actions", ge(T)])
|
|
1134
1150
|
}, [
|
|
1135
|
-
q(
|
|
1151
|
+
q(l(Ve), {
|
|
1136
1152
|
el: "div",
|
|
1137
1153
|
strongest: "",
|
|
1138
|
-
class:
|
|
1154
|
+
class: ne(["b-data-grid-columns__column-header", De.value])
|
|
1139
1155
|
}, {
|
|
1140
|
-
default:
|
|
1141
|
-
|
|
1142
|
-
p("span",
|
|
1156
|
+
default: G(() => [
|
|
1157
|
+
be(d.$slots, `head-${T.field}`, { column: T }, () => [
|
|
1158
|
+
p("span", bs, j(T.label), 1)
|
|
1143
1159
|
], !0)
|
|
1144
1160
|
]),
|
|
1145
1161
|
_: 2
|
|
1146
1162
|
}, 1032, ["class"]),
|
|
1147
|
-
|
|
1163
|
+
B(T) ? (u(), E("div", {
|
|
1148
1164
|
key: 0,
|
|
1149
|
-
class:
|
|
1165
|
+
class: ne(["b-data-grid-columns__column-actions", ye(T)])
|
|
1150
1166
|
}, [
|
|
1151
|
-
T.infoIconTooltip ? (u(), E("div",
|
|
1152
|
-
q(
|
|
1167
|
+
T.infoIconTooltip ? (u(), E("div", Ss, [
|
|
1168
|
+
q(l(ol), {
|
|
1153
1169
|
"tooltip-text": T.infoIconTooltip
|
|
1154
1170
|
}, null, 8, ["tooltip-text"])
|
|
1155
|
-
])) :
|
|
1156
|
-
T.sortable ? (u(), E("div",
|
|
1157
|
-
q(
|
|
1171
|
+
])) : M("", !0),
|
|
1172
|
+
T.sortable ? (u(), E("div", ys, [
|
|
1173
|
+
q(l(nt), {
|
|
1158
1174
|
condensed: "",
|
|
1159
|
-
toggled:
|
|
1175
|
+
toggled: l(F)(T.field),
|
|
1160
1176
|
variant: "tertiary",
|
|
1161
|
-
onClick: (
|
|
1177
|
+
onClick: (te) => l(ae)(T.field)
|
|
1162
1178
|
}, {
|
|
1163
|
-
iconLeft:
|
|
1164
|
-
|
|
1179
|
+
iconLeft: G(() => [
|
|
1180
|
+
l(x)(T.field) ? l(x)(T.field) === l(Se).ASCENDING ? (u(), U(l(ss), {
|
|
1165
1181
|
key: 1,
|
|
1166
|
-
"svg-title":
|
|
1167
|
-
}, null, 8, ["svg-title"])) :
|
|
1182
|
+
"svg-title": l(s)("sortColumnInDescendingOrder", { name: T.label })
|
|
1183
|
+
}, null, 8, ["svg-title"])) : l(x)(T.field) === l(Se).DESCENDING ? (u(), U(l(us), {
|
|
1168
1184
|
key: 2,
|
|
1169
|
-
"svg-title":
|
|
1170
|
-
}, null, 8, ["svg-title"])) :
|
|
1185
|
+
"svg-title": l(s)("sortColumnInAscendingOrder", { name: T.label })
|
|
1186
|
+
}, null, 8, ["svg-title"])) : M("", !0) : (u(), U(l(Pl), {
|
|
1171
1187
|
key: 0,
|
|
1172
|
-
"svg-title":
|
|
1188
|
+
"svg-title": l(s)("sortColumn", { name: T.label })
|
|
1173
1189
|
}, null, 8, ["svg-title"]))
|
|
1174
1190
|
]),
|
|
1175
1191
|
_: 2
|
|
1176
1192
|
}, 1032, ["toggled", "onClick"])
|
|
1177
|
-
])) :
|
|
1178
|
-
e.hasColumnPanel &&
|
|
1193
|
+
])) : M("", !0),
|
|
1194
|
+
e.hasColumnPanel && c.value === T.field ? (u(), U(l(qe), {
|
|
1179
1195
|
key: 2,
|
|
1180
1196
|
ref_for: !0,
|
|
1181
|
-
ref: (
|
|
1197
|
+
ref: (te) => b.value[T.field] = te,
|
|
1182
1198
|
class: "b-data-grid-columns__menu",
|
|
1183
1199
|
data: D.value(T),
|
|
1184
1200
|
"menu-position": V(e.hasFirstColumnPanelRightAligned, re),
|
|
1185
1201
|
"menu-fixed-positioning": !0,
|
|
1186
1202
|
button: { variant: "tertiary", condensed: !0 },
|
|
1187
|
-
onOpen:
|
|
1188
|
-
onClose:
|
|
1189
|
-
}, null, 8, ["data", "menu-position"])) :
|
|
1190
|
-
], 2)) :
|
|
1191
|
-
], 10,
|
|
1203
|
+
onOpen: W[0] || (W[0] = (te) => d.$emit(l(K).COLUMN_MENU_OPEN)),
|
|
1204
|
+
onClose: W[1] || (W[1] = (te) => d.$emit(l(K).COLUMN_MENU_CLOSE))
|
|
1205
|
+
}, null, 8, ["data", "menu-position"])) : M("", !0)
|
|
1206
|
+
], 2)) : M("", !0)
|
|
1207
|
+
], 10, Es),
|
|
1192
1208
|
p("div", {
|
|
1193
1209
|
"data-testid": `data-grid-column-${T.field}`,
|
|
1194
|
-
class:
|
|
1210
|
+
class: ne(["b-data-grid-columns__column-separator-container", Ze(T)]),
|
|
1195
1211
|
role: "presentation",
|
|
1196
|
-
onMousedown: (
|
|
1197
|
-
onClick:
|
|
1212
|
+
onMousedown: (te) => l(_)(e.hasResizableColumns, T.field, te),
|
|
1213
|
+
onClick: W[2] || (W[2] = Un(() => {
|
|
1198
1214
|
}, ["stop"]))
|
|
1199
1215
|
}, [
|
|
1200
|
-
!e.isFrozenColumns || e.isFrozenColumns && re !==
|
|
1201
|
-
], 42,
|
|
1216
|
+
!e.isFrozenColumns || e.isFrozenColumns && re !== l(h).length - 1 ? (u(), E("div", Os)) : M("", !0)
|
|
1217
|
+
], 42, ws)
|
|
1202
1218
|
], 64))
|
|
1203
|
-
], 16,
|
|
1219
|
+
], 16, Ls))), 128))
|
|
1204
1220
|
], 2));
|
|
1205
1221
|
}
|
|
1206
|
-
}),
|
|
1207
|
-
var
|
|
1208
|
-
let
|
|
1209
|
-
const
|
|
1222
|
+
}), Rs = /* @__PURE__ */ X(As, [["__scopeId", "data-v-5b48d3ec"]]);
|
|
1223
|
+
var pe = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(pe || {});
|
|
1224
|
+
let Rt = 0;
|
|
1225
|
+
const Ts = {
|
|
1210
1226
|
beforeCreate() {
|
|
1211
|
-
this.uuid =
|
|
1227
|
+
this.uuid = Rt.toString(), Rt += 1;
|
|
1212
1228
|
}
|
|
1213
|
-
},
|
|
1214
|
-
function
|
|
1215
|
-
return u(), E("svg",
|
|
1229
|
+
}, Ns = { key: 0 }, $s = ["clip-path"], Ds = ["id"];
|
|
1230
|
+
function Ms(e, o, f, t, r, i) {
|
|
1231
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
1216
1232
|
class: "ui-assets-icons-16",
|
|
1217
1233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1218
1234
|
width: "16",
|
|
1219
1235
|
height: "16",
|
|
1220
1236
|
fill: "none"
|
|
1221
1237
|
}), [
|
|
1222
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
1238
|
+
e.$attrs["svg-title"] ? (u(), E("title", Ns, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
1223
1239
|
p("g", {
|
|
1224
1240
|
fill: "#00112C",
|
|
1225
1241
|
"clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")"
|
|
1226
|
-
},
|
|
1242
|
+
}, o[0] || (o[0] = [
|
|
1227
1243
|
p("path", { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" }, null, -1),
|
|
1228
1244
|
p("path", { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" }, null, -1)
|
|
1229
|
-
]), 8,
|
|
1245
|
+
]), 8, $s),
|
|
1230
1246
|
p("defs", null, [
|
|
1231
1247
|
p("clipPath", {
|
|
1232
1248
|
id: "uia-icons-16-settings__a" + e.uuid
|
|
1233
|
-
},
|
|
1249
|
+
}, o[1] || (o[1] = [
|
|
1234
1250
|
p("rect", {
|
|
1235
1251
|
width: "16",
|
|
1236
1252
|
height: "16",
|
|
1237
1253
|
fill: "#fff"
|
|
1238
1254
|
}, null, -1)
|
|
1239
|
-
]), 8,
|
|
1255
|
+
]), 8, Ds)
|
|
1240
1256
|
])
|
|
1241
1257
|
], 16);
|
|
1242
1258
|
}
|
|
1243
|
-
const
|
|
1259
|
+
const ks = /* @__PURE__ */ X(Ts, [["render", Ms]]), Tt = {
|
|
1244
1260
|
"en-US": {
|
|
1245
1261
|
toggleColumnVisibility: "Toggle {label} column visibility",
|
|
1246
1262
|
toggleColumnFreeze: "Toggle {label} column freeze"
|
|
1247
1263
|
}
|
|
1248
|
-
},
|
|
1249
|
-
i18n: { messages:
|
|
1264
|
+
}, zs = he({
|
|
1265
|
+
i18n: { messages: Tt },
|
|
1250
1266
|
name: "bento-data-grid",
|
|
1251
1267
|
components: {
|
|
1252
|
-
BentoFreezeIcon:
|
|
1268
|
+
BentoFreezeIcon: qt,
|
|
1253
1269
|
BentoToggle: Ht
|
|
1254
1270
|
},
|
|
1255
1271
|
props: {
|
|
@@ -1269,46 +1285,46 @@ const As = /* @__PURE__ */ K(bs, [["render", Is]]), Rt = {
|
|
|
1269
1285
|
}
|
|
1270
1286
|
},
|
|
1271
1287
|
emits: ["visible-column", "updated-column"],
|
|
1272
|
-
setup(e, { emit:
|
|
1273
|
-
const { t:
|
|
1274
|
-
var
|
|
1275
|
-
return (
|
|
1276
|
-
}), i =
|
|
1277
|
-
var
|
|
1278
|
-
return ((
|
|
1288
|
+
setup(e, { emit: o }) {
|
|
1289
|
+
const { t: f } = Oe({ messages: Tt }), t = I(!1), r = O(() => {
|
|
1290
|
+
var c;
|
|
1291
|
+
return (c = e.column) == null ? void 0 : c.frozen;
|
|
1292
|
+
}), i = O(() => {
|
|
1293
|
+
var c;
|
|
1294
|
+
return ((c = e.column) == null ? void 0 : c.visible) !== !1;
|
|
1279
1295
|
}), s = () => {
|
|
1280
|
-
|
|
1281
|
-
},
|
|
1282
|
-
|
|
1283
|
-
},
|
|
1284
|
-
|
|
1285
|
-
},
|
|
1286
|
-
|
|
1287
|
-
},
|
|
1288
|
-
"b-data-grid-config-settings-column-row__freeze-icon--frozen":
|
|
1296
|
+
o("visible-column", { ...e.column, visible: !i.value });
|
|
1297
|
+
}, h = () => {
|
|
1298
|
+
o("updated-column", { ...e.column, frozen: !r.value });
|
|
1299
|
+
}, C = () => {
|
|
1300
|
+
r.value || (t.value = !0);
|
|
1301
|
+
}, y = () => {
|
|
1302
|
+
r.value || (t.value = !1);
|
|
1303
|
+
}, b = O(() => ({
|
|
1304
|
+
"b-data-grid-config-settings-column-row__freeze-icon--frozen": r.value
|
|
1289
1305
|
}));
|
|
1290
1306
|
return {
|
|
1291
1307
|
// Values
|
|
1292
1308
|
isFreezeIconOptionShown: t,
|
|
1293
|
-
isColumnFrozen:
|
|
1294
|
-
freezeIconConditionalClasses:
|
|
1309
|
+
isColumnFrozen: r,
|
|
1310
|
+
freezeIconConditionalClasses: b,
|
|
1295
1311
|
isColumnVisible: i,
|
|
1296
1312
|
// Methods
|
|
1297
1313
|
toggleColumnVisibility: s,
|
|
1298
|
-
showFreezeIcon:
|
|
1299
|
-
hideFreezeIcon:
|
|
1300
|
-
toggleColumnFreeze:
|
|
1314
|
+
showFreezeIcon: C,
|
|
1315
|
+
hideFreezeIcon: y,
|
|
1316
|
+
toggleColumnFreeze: h,
|
|
1301
1317
|
// Translations
|
|
1302
|
-
t:
|
|
1318
|
+
t: f
|
|
1303
1319
|
};
|
|
1304
1320
|
}
|
|
1305
1321
|
});
|
|
1306
|
-
function
|
|
1307
|
-
const s = de("bento-toggle"),
|
|
1322
|
+
function Us(e, o, f, t, r, i) {
|
|
1323
|
+
const s = de("bento-toggle"), h = de("bento-freeze-icon");
|
|
1308
1324
|
return u(), E("div", {
|
|
1309
1325
|
class: "b-data-grid-config-settings-column-row",
|
|
1310
|
-
onMouseover:
|
|
1311
|
-
onMouseleave:
|
|
1326
|
+
onMouseover: o[0] || (o[0] = (...C) => e.showFreezeIcon && e.showFreezeIcon(...C)),
|
|
1327
|
+
onMouseleave: o[1] || (o[1] = (...C) => e.hideFreezeIcon && e.hideFreezeIcon(...C))
|
|
1312
1328
|
}, [
|
|
1313
1329
|
q(s, {
|
|
1314
1330
|
"aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
|
|
@@ -1317,21 +1333,21 @@ function Ts(e, l, c, t, d, i) {
|
|
|
1317
1333
|
value: e.isColumnVisible,
|
|
1318
1334
|
onInput: e.toggleColumnVisibility
|
|
1319
1335
|
}, {
|
|
1320
|
-
default:
|
|
1321
|
-
|
|
1336
|
+
default: G(() => [
|
|
1337
|
+
oe(j(e.column.label), 1)
|
|
1322
1338
|
]),
|
|
1323
1339
|
_: 1
|
|
1324
1340
|
}, 8, ["aria-label", "disabled", "value", "onInput"]),
|
|
1325
|
-
Qe(q(
|
|
1341
|
+
Qe(q(h, {
|
|
1326
1342
|
"aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
|
|
1327
|
-
class:
|
|
1343
|
+
class: ne(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
|
|
1328
1344
|
onClick: e.toggleColumnFreeze
|
|
1329
1345
|
}, null, 8, ["aria-label", "class", "onClick"]), [
|
|
1330
|
-
[
|
|
1346
|
+
[Fn, e.isColumnFrozen || e.isFreezeIconOptionShown]
|
|
1331
1347
|
])
|
|
1332
1348
|
], 32);
|
|
1333
1349
|
}
|
|
1334
|
-
const
|
|
1350
|
+
const Fs = /* @__PURE__ */ X(zs, [["render", Us], ["__scopeId", "data-v-bb87a729"]]), Nt = {
|
|
1335
1351
|
"en-US": {
|
|
1336
1352
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1337
1353
|
closeSearch: "Close search",
|
|
@@ -1357,22 +1373,22 @@ const Ns = /* @__PURE__ */ K(Rs, [["render", Ts], ["__scopeId", "data-v-bb87a729
|
|
|
1357
1373
|
search: "検索",
|
|
1358
1374
|
size: "サイズ"
|
|
1359
1375
|
}
|
|
1360
|
-
},
|
|
1361
|
-
i18n: { messages:
|
|
1376
|
+
}, Ps = he({
|
|
1377
|
+
i18n: { messages: Nt },
|
|
1362
1378
|
name: "bento-data-grid",
|
|
1363
1379
|
components: {
|
|
1364
|
-
BentoButton:
|
|
1365
|
-
BentoCrossIcon:
|
|
1366
|
-
BentoPopover:
|
|
1367
|
-
BentoSettingsIcon:
|
|
1380
|
+
BentoButton: Gt,
|
|
1381
|
+
BentoCrossIcon: Pt,
|
|
1382
|
+
BentoPopover: el,
|
|
1383
|
+
BentoSettingsIcon: ks,
|
|
1368
1384
|
BentoToggleButton: nt,
|
|
1369
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1370
|
-
BentoSearchBar:
|
|
1371
|
-
BentoSearchIcon:
|
|
1385
|
+
BentoDataGridConfigSettingsConfigRow: Fs,
|
|
1386
|
+
BentoSearchBar: tl,
|
|
1387
|
+
BentoSearchIcon: sl,
|
|
1372
1388
|
BentoToggle: Ht,
|
|
1373
1389
|
BentoTypography: Ve
|
|
1374
1390
|
},
|
|
1375
|
-
directives: { BentoClickOutsideDirective:
|
|
1391
|
+
directives: { BentoClickOutsideDirective: ll },
|
|
1376
1392
|
props: {
|
|
1377
1393
|
/**
|
|
1378
1394
|
* Column definitions
|
|
@@ -1389,92 +1405,92 @@ const Ns = /* @__PURE__ */ K(Rs, [["render", Ts], ["__scopeId", "data-v-bb87a729
|
|
|
1389
1405
|
default: !1
|
|
1390
1406
|
}
|
|
1391
1407
|
},
|
|
1392
|
-
emits: [
|
|
1393
|
-
setup(e, { emit:
|
|
1394
|
-
const { t:
|
|
1395
|
-
|
|
1396
|
-
},
|
|
1397
|
-
() => !e.columns.some((
|
|
1408
|
+
emits: [pe.CONFIG_SETTINGS, pe.UPDATE_COLUMNS],
|
|
1409
|
+
setup(e, { emit: o }) {
|
|
1410
|
+
const { t: f } = Oe({ messages: Nt }), t = I(null), r = Vt("data-grid-config-settings-popover"), i = I(null), s = I(!1), h = I(!0), C = I(null), y = I(""), b = Ut(e, "columns"), c = I(!1), S = nl(y, b), n = () => {
|
|
1411
|
+
y.value = "";
|
|
1412
|
+
}, g = O(
|
|
1413
|
+
() => !e.columns.some((L) => L.visible === !1 && !L.mandatory)
|
|
1398
1414
|
), a = () => {
|
|
1399
|
-
n(),
|
|
1400
|
-
var
|
|
1401
|
-
return (
|
|
1415
|
+
n(), c.value = !c.value, c.value ? ue(() => {
|
|
1416
|
+
var L;
|
|
1417
|
+
return (L = i.value.$refs.bentoInputField) == null ? void 0 : L.focusInput();
|
|
1402
1418
|
}) : ue(() => {
|
|
1403
|
-
var
|
|
1404
|
-
return (D = (
|
|
1405
|
-
}),
|
|
1406
|
-
},
|
|
1407
|
-
const D = e.columns.map((
|
|
1408
|
-
...
|
|
1409
|
-
visible:
|
|
1419
|
+
var L, D;
|
|
1420
|
+
return (D = (L = C == null ? void 0 : C.value) == null ? void 0 : L.$el) == null ? void 0 : D.focus();
|
|
1421
|
+
}), h.value = g.value;
|
|
1422
|
+
}, _ = (L) => L.mandatory ?? !1, w = (L) => {
|
|
1423
|
+
const D = e.columns.map((H) => ({
|
|
1424
|
+
...H,
|
|
1425
|
+
visible: L.field === H.field ? L.visible : H.visible
|
|
1410
1426
|
}));
|
|
1411
|
-
|
|
1412
|
-
}, A = (
|
|
1413
|
-
|
|
1414
|
-
|
|
1427
|
+
o(pe.UPDATE_COLUMNS, D);
|
|
1428
|
+
}, A = (L) => {
|
|
1429
|
+
L ? o(
|
|
1430
|
+
pe.UPDATE_COLUMNS,
|
|
1415
1431
|
e.columns.map((D) => ({ ...D, visible: !0 }))
|
|
1416
|
-
) :
|
|
1417
|
-
|
|
1432
|
+
) : o(
|
|
1433
|
+
pe.UPDATE_COLUMNS,
|
|
1418
1434
|
e.columns.map((D) => ({ ...D, visible: (D == null ? void 0 : D.mandatory) === !0 }))
|
|
1419
1435
|
);
|
|
1420
|
-
},
|
|
1421
|
-
const D = e.columns.map((
|
|
1422
|
-
...
|
|
1423
|
-
frozen:
|
|
1436
|
+
}, F = (L) => {
|
|
1437
|
+
const D = e.columns.map((H) => ({
|
|
1438
|
+
...H,
|
|
1439
|
+
frozen: L.field === H.field ? !!(L != null && L.frozen) : !!(H != null && H.frozen)
|
|
1424
1440
|
}));
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
s.value =
|
|
1441
|
+
o(pe.UPDATE_COLUMNS, D);
|
|
1442
|
+
}, x = (L) => {
|
|
1443
|
+
s.value = L, h.value = g.value;
|
|
1428
1444
|
};
|
|
1429
1445
|
return {
|
|
1430
1446
|
// Values
|
|
1431
1447
|
configSettingsButtonRef: t,
|
|
1432
|
-
popoverId:
|
|
1448
|
+
popoverId: r,
|
|
1433
1449
|
isConfigSettingsPanelOpen: s,
|
|
1434
|
-
allColumnsVisbilityToggleState:
|
|
1435
|
-
filteredColumnVisibilityColumns:
|
|
1436
|
-
searchTerm:
|
|
1437
|
-
isColumnVisibilityFilterShown:
|
|
1450
|
+
allColumnsVisbilityToggleState: h,
|
|
1451
|
+
filteredColumnVisibilityColumns: S,
|
|
1452
|
+
searchTerm: y,
|
|
1453
|
+
isColumnVisibilityFilterShown: c,
|
|
1438
1454
|
searchBarRef: i,
|
|
1439
|
-
searchButtonRef:
|
|
1440
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME:
|
|
1455
|
+
searchButtonRef: C,
|
|
1456
|
+
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: ie,
|
|
1441
1457
|
// Methods
|
|
1442
|
-
setConfigSettingsPanelVisibility:
|
|
1443
|
-
emitCondensedToggle: (
|
|
1458
|
+
setConfigSettingsPanelVisibility: x,
|
|
1459
|
+
emitCondensedToggle: (L) => o(pe.CONFIG_SETTINGS, L),
|
|
1444
1460
|
toggleAllColumnVisibility: A,
|
|
1445
1461
|
clearAction: n,
|
|
1446
1462
|
toggleColumnFilter: a,
|
|
1447
|
-
emitVisibleColumns:
|
|
1448
|
-
emitFrozenColumns:
|
|
1449
|
-
onClickOutside: () =>
|
|
1450
|
-
isColumnVisibilityToggleDisabled:
|
|
1463
|
+
emitVisibleColumns: w,
|
|
1464
|
+
emitFrozenColumns: F,
|
|
1465
|
+
onClickOutside: () => x(!1),
|
|
1466
|
+
isColumnVisibilityToggleDisabled: _,
|
|
1451
1467
|
// Translations
|
|
1452
|
-
t:
|
|
1468
|
+
t: f
|
|
1453
1469
|
};
|
|
1454
1470
|
}
|
|
1455
|
-
}),
|
|
1471
|
+
}), Bs = { class: "b-data-grid-config-settings" }, Ws = { class: "b-data-grid-config-settings__button-and-separator" }, Gs = {
|
|
1456
1472
|
ref: "configSettingsButtonRef",
|
|
1457
1473
|
class: "b-data-grid-config-settings__button-container"
|
|
1458
|
-
},
|
|
1474
|
+
}, Hs = { class: "b-data-grid-config-settings__panel-header" }, Vs = { class: "b-data-grid-config-settings__condensed-view-settings" }, xs = { class: "b-data-grid-config-settings__column-visibility-settings" }, Zs = { class: "b-data-grid-config-settings__column-visibility-header" }, js = {
|
|
1459
1475
|
key: 0,
|
|
1460
1476
|
class: "b-data-grid-config-settings__column-visibility-search"
|
|
1461
|
-
},
|
|
1477
|
+
}, qs = {
|
|
1462
1478
|
key: 1,
|
|
1463
1479
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1464
|
-
},
|
|
1465
|
-
function
|
|
1466
|
-
const s = de("bento-settings-icon"),
|
|
1467
|
-
return Qe((u(), E("div",
|
|
1468
|
-
p("div",
|
|
1469
|
-
p("div",
|
|
1470
|
-
q(
|
|
1480
|
+
}, Ys = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1481
|
+
function Xs(e, o, f, t, r, i) {
|
|
1482
|
+
const s = de("bento-settings-icon"), h = de("bento-toggle-button"), C = de("bento-typography"), y = de("bento-cross-icon"), b = de("bento-button"), c = de("bento-toggle"), S = de("bento-search-icon"), n = de("bento-search-bar"), g = de("bento-data-grid-config-settings-config-row"), a = de("bento-popover"), _ = Pn("bento-click-outside-directive");
|
|
1483
|
+
return Qe((u(), E("div", Bs, [
|
|
1484
|
+
p("div", Ws, [
|
|
1485
|
+
p("div", Gs, [
|
|
1486
|
+
q(h, {
|
|
1471
1487
|
"aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
|
|
1472
1488
|
variant: "tertiary",
|
|
1473
1489
|
condensed: "",
|
|
1474
1490
|
toggled: e.isConfigSettingsPanelOpen,
|
|
1475
|
-
onClick:
|
|
1491
|
+
onClick: o[0] || (o[0] = (w) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
|
|
1476
1492
|
}, {
|
|
1477
|
-
iconLeft:
|
|
1493
|
+
iconLeft: G(() => [
|
|
1478
1494
|
q(s, {
|
|
1479
1495
|
"svg-title": e.t("toggleConfigSettingsPanelVisibility")
|
|
1480
1496
|
}, null, 8, ["svg-title"])
|
|
@@ -1483,7 +1499,7 @@ function Gs(e, l, c, t, d, i) {
|
|
|
1483
1499
|
}, 8, ["aria-controls", "toggled"])
|
|
1484
1500
|
], 512)
|
|
1485
1501
|
]),
|
|
1486
|
-
e.configSettingsButtonRef ? (u(),
|
|
1502
|
+
e.configSettingsButtonRef ? (u(), U(a, {
|
|
1487
1503
|
key: 0,
|
|
1488
1504
|
id: e.popoverId,
|
|
1489
1505
|
open: e.isConfigSettingsPanelOpen,
|
|
@@ -1492,144 +1508,144 @@ function Gs(e, l, c, t, d, i) {
|
|
|
1492
1508
|
"target-element": e.configSettingsButtonRef,
|
|
1493
1509
|
position: "bottom-end"
|
|
1494
1510
|
}, {
|
|
1495
|
-
default:
|
|
1496
|
-
p("div",
|
|
1497
|
-
q(
|
|
1511
|
+
default: G(() => [
|
|
1512
|
+
p("div", Hs, [
|
|
1513
|
+
q(C, {
|
|
1498
1514
|
el: "span",
|
|
1499
1515
|
strongest: ""
|
|
1500
1516
|
}, {
|
|
1501
|
-
default:
|
|
1502
|
-
|
|
1517
|
+
default: G(() => [
|
|
1518
|
+
oe(j(e.t("displayOptions")), 1)
|
|
1503
1519
|
]),
|
|
1504
1520
|
_: 1
|
|
1505
1521
|
}),
|
|
1506
|
-
q(
|
|
1522
|
+
q(b, {
|
|
1507
1523
|
variant: "tertiary",
|
|
1508
|
-
onClick:
|
|
1524
|
+
onClick: o[1] || (o[1] = (w) => e.setConfigSettingsPanelVisibility(!1))
|
|
1509
1525
|
}, {
|
|
1510
|
-
iconLeft:
|
|
1511
|
-
q(
|
|
1526
|
+
iconLeft: G(() => [
|
|
1527
|
+
q(y, {
|
|
1512
1528
|
"svg-title": e.t("closeConfigSettingsPanel")
|
|
1513
1529
|
}, null, 8, ["svg-title"])
|
|
1514
1530
|
]),
|
|
1515
1531
|
_: 1
|
|
1516
1532
|
})
|
|
1517
1533
|
]),
|
|
1518
|
-
p("div",
|
|
1519
|
-
q(
|
|
1534
|
+
p("div", Vs, [
|
|
1535
|
+
q(C, {
|
|
1520
1536
|
class: "b-data-grid-config-settings__condensed-view-title",
|
|
1521
1537
|
el: "span",
|
|
1522
1538
|
stronger: ""
|
|
1523
1539
|
}, {
|
|
1524
|
-
default:
|
|
1525
|
-
|
|
1540
|
+
default: G(() => [
|
|
1541
|
+
oe(j(e.t("size")), 1)
|
|
1526
1542
|
]),
|
|
1527
1543
|
_: 1
|
|
1528
1544
|
}),
|
|
1529
|
-
q(
|
|
1545
|
+
q(c, {
|
|
1530
1546
|
"label-position": "after",
|
|
1531
1547
|
"aria-label": e.t("condensedToggle"),
|
|
1532
1548
|
value: e.condensed,
|
|
1533
1549
|
onInput: e.emitCondensedToggle
|
|
1534
1550
|
}, {
|
|
1535
|
-
default:
|
|
1536
|
-
|
|
1551
|
+
default: G(() => [
|
|
1552
|
+
oe(j(e.t("condensed")), 1)
|
|
1537
1553
|
]),
|
|
1538
1554
|
_: 1
|
|
1539
1555
|
}, 8, ["aria-label", "value", "onInput"])
|
|
1540
1556
|
]),
|
|
1541
|
-
p("div",
|
|
1542
|
-
p("div",
|
|
1543
|
-
q(
|
|
1557
|
+
p("div", xs, [
|
|
1558
|
+
p("div", Zs, [
|
|
1559
|
+
q(C, {
|
|
1544
1560
|
class: "b-data-grid-config-settings__column-visibility-title",
|
|
1545
1561
|
el: "span",
|
|
1546
1562
|
stronger: ""
|
|
1547
1563
|
}, {
|
|
1548
|
-
default:
|
|
1549
|
-
|
|
1564
|
+
default: G(() => [
|
|
1565
|
+
oe(j(e.t("columns")), 1)
|
|
1550
1566
|
]),
|
|
1551
1567
|
_: 1
|
|
1552
1568
|
}),
|
|
1553
|
-
e.isColumnVisibilityFilterShown ? (u(),
|
|
1569
|
+
e.isColumnVisibilityFilterShown ? (u(), U(b, {
|
|
1554
1570
|
key: 1,
|
|
1555
1571
|
variant: "tertiary",
|
|
1556
1572
|
onClick: e.toggleColumnFilter
|
|
1557
1573
|
}, {
|
|
1558
|
-
iconLeft:
|
|
1559
|
-
q(
|
|
1574
|
+
iconLeft: G(() => [
|
|
1575
|
+
q(y)
|
|
1560
1576
|
]),
|
|
1561
|
-
default:
|
|
1562
|
-
|
|
1577
|
+
default: G(() => [
|
|
1578
|
+
oe(" " + j(e.t("closeSearch")), 1)
|
|
1563
1579
|
]),
|
|
1564
1580
|
_: 1
|
|
1565
|
-
}, 8, ["onClick"])) : (u(),
|
|
1581
|
+
}, 8, ["onClick"])) : (u(), U(b, {
|
|
1566
1582
|
key: 0,
|
|
1567
1583
|
ref: "searchButtonRef",
|
|
1568
1584
|
variant: "tertiary",
|
|
1569
1585
|
onClick: e.toggleColumnFilter
|
|
1570
1586
|
}, {
|
|
1571
|
-
iconLeft:
|
|
1572
|
-
q(
|
|
1587
|
+
iconLeft: G(() => [
|
|
1588
|
+
q(S)
|
|
1573
1589
|
]),
|
|
1574
|
-
default:
|
|
1575
|
-
|
|
1590
|
+
default: G(() => [
|
|
1591
|
+
oe(j(e.t("search")), 1)
|
|
1576
1592
|
]),
|
|
1577
1593
|
_: 1
|
|
1578
1594
|
}, 8, ["onClick"]))
|
|
1579
1595
|
]),
|
|
1580
|
-
e.isColumnVisibilityFilterShown ? (u(), E("div",
|
|
1596
|
+
e.isColumnVisibilityFilterShown ? (u(), E("div", js, [
|
|
1581
1597
|
q(n, {
|
|
1582
1598
|
ref: "searchBarRef",
|
|
1583
1599
|
value: e.searchTerm,
|
|
1584
1600
|
"input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
|
|
1585
|
-
onInput:
|
|
1601
|
+
onInput: o[2] || (o[2] = (w) => e.searchTerm = w),
|
|
1586
1602
|
onClear: e.clearAction,
|
|
1587
1603
|
onEscapePressed: e.toggleColumnFilter
|
|
1588
1604
|
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
1589
|
-
])) : (u(), E("div",
|
|
1590
|
-
q(
|
|
1605
|
+
])) : (u(), E("div", qs, [
|
|
1606
|
+
q(c, {
|
|
1591
1607
|
"label-position": "after",
|
|
1592
1608
|
value: e.allColumnsVisbilityToggleState,
|
|
1593
1609
|
onInput: e.toggleAllColumnVisibility
|
|
1594
1610
|
}, {
|
|
1595
|
-
default:
|
|
1596
|
-
|
|
1611
|
+
default: G(() => [
|
|
1612
|
+
oe(j(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
|
|
1597
1613
|
]),
|
|
1598
1614
|
_: 1
|
|
1599
1615
|
}, 8, ["value", "onInput"])
|
|
1600
1616
|
])),
|
|
1601
|
-
p("div",
|
|
1602
|
-
(u(!0), E(fe, null,
|
|
1603
|
-
key:
|
|
1617
|
+
p("div", Ys, [
|
|
1618
|
+
(u(!0), E(fe, null, Ce(e.filteredColumnVisibilityColumns, (w) => (u(), E("div", {
|
|
1619
|
+
key: w.field
|
|
1604
1620
|
}, [
|
|
1605
|
-
|
|
1621
|
+
w.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (u(), U(g, {
|
|
1606
1622
|
key: 0,
|
|
1607
|
-
column:
|
|
1608
|
-
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(
|
|
1623
|
+
column: w,
|
|
1624
|
+
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(w),
|
|
1609
1625
|
onVisibleColumn: e.emitVisibleColumns,
|
|
1610
1626
|
onUpdatedColumn: e.emitFrozenColumns
|
|
1611
|
-
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) :
|
|
1627
|
+
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : M("", !0)
|
|
1612
1628
|
]))), 128)),
|
|
1613
|
-
e.filteredColumnVisibilityColumns.length === 0 ? (u(),
|
|
1629
|
+
e.filteredColumnVisibilityColumns.length === 0 ? (u(), U(C, {
|
|
1614
1630
|
key: 0,
|
|
1615
1631
|
el: "span",
|
|
1616
1632
|
class: "b-data-grid-config-settings__column-visibility-empty-search-message"
|
|
1617
1633
|
}, {
|
|
1618
|
-
default:
|
|
1619
|
-
|
|
1634
|
+
default: G(() => [
|
|
1635
|
+
oe(j(e.t("noColumnsMatch")), 1)
|
|
1620
1636
|
]),
|
|
1621
1637
|
_: 1
|
|
1622
|
-
})) :
|
|
1638
|
+
})) : M("", !0)
|
|
1623
1639
|
])
|
|
1624
1640
|
])
|
|
1625
1641
|
]),
|
|
1626
1642
|
_: 1
|
|
1627
|
-
}, 8, ["id", "open", "aria-label", "target-element"])) :
|
|
1643
|
+
}, 8, ["id", "open", "aria-label", "target-element"])) : M("", !0)
|
|
1628
1644
|
])), [
|
|
1629
|
-
[
|
|
1645
|
+
[_, e.onClickOutside]
|
|
1630
1646
|
]);
|
|
1631
1647
|
}
|
|
1632
|
-
const
|
|
1648
|
+
const Ks = /* @__PURE__ */ X(Ps, [["render", Xs], ["__scopeId", "data-v-f5950a53"]]), xe = {
|
|
1633
1649
|
"en-US": {
|
|
1634
1650
|
gettingYourData: "Getting your data",
|
|
1635
1651
|
loading: "Loading",
|
|
@@ -1647,87 +1663,87 @@ const Vs = /* @__PURE__ */ K($s, [["render", Gs], ["__scopeId", "data-v-f5950a53
|
|
|
1647
1663
|
loading: "読み込み中",
|
|
1648
1664
|
showMore: "表示内容を増やす"
|
|
1649
1665
|
}
|
|
1650
|
-
},
|
|
1666
|
+
}, Js = { class: "b-data-grid-lazy-load" }, Qs = {
|
|
1651
1667
|
i18n: { messages: xe }
|
|
1652
|
-
},
|
|
1653
|
-
...
|
|
1668
|
+
}, eo = /* @__PURE__ */ he({
|
|
1669
|
+
...Qs,
|
|
1654
1670
|
__name: "data-grid-lazy-load",
|
|
1655
1671
|
props: {
|
|
1656
1672
|
loading: { type: Boolean },
|
|
1657
1673
|
isInfiniteScroll: { type: Boolean }
|
|
1658
1674
|
},
|
|
1659
1675
|
setup(e) {
|
|
1660
|
-
const { t:
|
|
1661
|
-
return (
|
|
1662
|
-
|
|
1663
|
-
|
|
1676
|
+
const { t: o } = Oe({ messages: xe });
|
|
1677
|
+
return (f, t) => (u(), E("div", Js, [
|
|
1678
|
+
f.loading && f.isInfiniteScroll ? (u(), U(l(Bt), { key: 0 })) : M("", !0),
|
|
1679
|
+
f.loading && !f.isInfiniteScroll ? (u(), U(l(Ct), {
|
|
1664
1680
|
key: 1,
|
|
1665
1681
|
variant: "secondary",
|
|
1666
|
-
state:
|
|
1682
|
+
state: l(ht).LOADING
|
|
1667
1683
|
}, {
|
|
1668
|
-
default:
|
|
1669
|
-
|
|
1684
|
+
default: G(() => [
|
|
1685
|
+
oe(j(l(o)("loading")), 1)
|
|
1670
1686
|
]),
|
|
1671
1687
|
_: 1
|
|
1672
|
-
}, 8, ["state"])) :
|
|
1673
|
-
!
|
|
1688
|
+
}, 8, ["state"])) : M("", !0),
|
|
1689
|
+
!f.loading && !f.isInfiniteScroll ? (u(), U(l(Ct), {
|
|
1674
1690
|
key: 2,
|
|
1675
|
-
state:
|
|
1691
|
+
state: l(ht).START,
|
|
1676
1692
|
variant: "secondary",
|
|
1677
|
-
onClick: t[0] || (t[0] = (
|
|
1693
|
+
onClick: t[0] || (t[0] = (r) => f.$emit(l($).UPDATE_SHOW_MORE))
|
|
1678
1694
|
}, {
|
|
1679
|
-
default:
|
|
1680
|
-
|
|
1695
|
+
default: G(() => [
|
|
1696
|
+
oe(j(l(o)("showMore")), 1)
|
|
1681
1697
|
]),
|
|
1682
1698
|
_: 1
|
|
1683
|
-
}, 8, ["state"])) :
|
|
1699
|
+
}, 8, ["state"])) : M("", !0)
|
|
1684
1700
|
]));
|
|
1685
1701
|
}
|
|
1686
|
-
}),
|
|
1687
|
-
let
|
|
1688
|
-
const
|
|
1702
|
+
}), to = /* @__PURE__ */ X(eo, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1703
|
+
let $t = 0;
|
|
1704
|
+
const no = {
|
|
1689
1705
|
beforeCreate() {
|
|
1690
|
-
this.uuid =
|
|
1706
|
+
this.uuid = $t.toString(), $t += 1;
|
|
1691
1707
|
}
|
|
1692
|
-
},
|
|
1693
|
-
function
|
|
1694
|
-
return u(), E("svg",
|
|
1708
|
+
}, lo = { key: 0 };
|
|
1709
|
+
function so(e, o, f, t, r, i) {
|
|
1710
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
1695
1711
|
class: "ui-assets-icons-16",
|
|
1696
1712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1697
1713
|
width: "16",
|
|
1698
1714
|
height: "16",
|
|
1699
1715
|
fill: "none"
|
|
1700
1716
|
}), [
|
|
1701
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
1702
|
-
|
|
1717
|
+
e.$attrs["svg-title"] ? (u(), E("title", lo, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
1718
|
+
o[0] || (o[0] = p("path", {
|
|
1703
1719
|
fill: "#00112C",
|
|
1704
1720
|
d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z"
|
|
1705
1721
|
}, null, -1))
|
|
1706
1722
|
], 16);
|
|
1707
1723
|
}
|
|
1708
|
-
const
|
|
1709
|
-
let
|
|
1710
|
-
const
|
|
1724
|
+
const oo = /* @__PURE__ */ X(no, [["render", so]]);
|
|
1725
|
+
let Dt = 0;
|
|
1726
|
+
const io = {
|
|
1711
1727
|
beforeCreate() {
|
|
1712
|
-
this.uuid =
|
|
1728
|
+
this.uuid = Dt.toString(), Dt += 1;
|
|
1713
1729
|
}
|
|
1714
|
-
},
|
|
1715
|
-
function
|
|
1716
|
-
return u(), E("svg",
|
|
1730
|
+
}, ao = { key: 0 };
|
|
1731
|
+
function ro(e, o, f, t, r, i) {
|
|
1732
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
1717
1733
|
class: "ui-assets-icons-16",
|
|
1718
1734
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1719
1735
|
width: "16",
|
|
1720
1736
|
height: "16",
|
|
1721
1737
|
fill: "none"
|
|
1722
1738
|
}), [
|
|
1723
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
1724
|
-
|
|
1739
|
+
e.$attrs["svg-title"] ? (u(), E("title", ao, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
1740
|
+
o[0] || (o[0] = p("path", {
|
|
1725
1741
|
fill: "#00112C",
|
|
1726
1742
|
d: "M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z"
|
|
1727
1743
|
}, null, -1))
|
|
1728
1744
|
], 16);
|
|
1729
1745
|
}
|
|
1730
|
-
const
|
|
1746
|
+
const Mt = /* @__PURE__ */ X(io, [["render", ro]]), Xt = {
|
|
1731
1747
|
"en-US": {
|
|
1732
1748
|
copy: "Copy",
|
|
1733
1749
|
edit: "Edit",
|
|
@@ -1746,14 +1762,14 @@ const Dt = /* @__PURE__ */ K(Qs, [["render", to]]), Yt = {
|
|
|
1746
1762
|
open: "を開く",
|
|
1747
1763
|
more: "表示を増やす"
|
|
1748
1764
|
}
|
|
1749
|
-
},
|
|
1765
|
+
}, uo = { class: "b-data-grid-cell-actions" }, co = {
|
|
1750
1766
|
class: "b-data-grid-cell-actions__actions",
|
|
1751
1767
|
role: "group"
|
|
1752
|
-
},
|
|
1753
|
-
i18n: { messages:
|
|
1768
|
+
}, fo = {
|
|
1769
|
+
i18n: { messages: Xt },
|
|
1754
1770
|
name: "data-grid-cell-actions"
|
|
1755
|
-
},
|
|
1756
|
-
...
|
|
1771
|
+
}, go = /* @__PURE__ */ he({
|
|
1772
|
+
...fo,
|
|
1757
1773
|
props: {
|
|
1758
1774
|
/**
|
|
1759
1775
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1779,70 +1795,70 @@ const Dt = /* @__PURE__ */ K(Qs, [["render", to]]), Yt = {
|
|
|
1779
1795
|
}
|
|
1780
1796
|
},
|
|
1781
1797
|
emits: ["menu-item-click-close"],
|
|
1782
|
-
setup(e, { emit:
|
|
1783
|
-
const { t:
|
|
1798
|
+
setup(e, { emit: o }) {
|
|
1799
|
+
const { t: f } = Oe({ messages: Xt }), t = e, r = o, i = O(() => {
|
|
1784
1800
|
var n;
|
|
1785
|
-
return ((n = t.cellActions) == null ? void 0 : n.length) > 2 &&
|
|
1801
|
+
return ((n = t.cellActions) == null ? void 0 : n.length) > 2 && Wt(
|
|
1786
1802
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1787
1803
|
), t.cellActions.slice(0, 2);
|
|
1788
|
-
}), s =
|
|
1789
|
-
if (!(!
|
|
1804
|
+
}), s = O(() => (n, g) => {
|
|
1805
|
+
if (!(!g && n.isShort || g && !n.isShort))
|
|
1790
1806
|
switch (n.variant) {
|
|
1791
1807
|
case "copy":
|
|
1792
|
-
return
|
|
1808
|
+
return f("copy");
|
|
1793
1809
|
case "edit":
|
|
1794
|
-
return
|
|
1810
|
+
return f("edit");
|
|
1795
1811
|
case "open":
|
|
1796
|
-
return
|
|
1812
|
+
return f("open");
|
|
1797
1813
|
case "more":
|
|
1798
|
-
return
|
|
1814
|
+
return f("more");
|
|
1799
1815
|
default:
|
|
1800
1816
|
return n.title;
|
|
1801
1817
|
}
|
|
1802
|
-
}),
|
|
1818
|
+
}), h = (n) => (n == null ? void 0 : n.event) !== void 0 ? {
|
|
1803
1819
|
click: () => n.event(t.rowDataItem, t.columnKey)
|
|
1804
|
-
} : {},
|
|
1820
|
+
} : {}, C = (n) => ({
|
|
1805
1821
|
...n,
|
|
1806
1822
|
handler: () => {
|
|
1807
1823
|
n != null && n.handler && typeof n.handler == "function" && (n == null || n.handler()), n != null && n.event && typeof n.event == "function" && (n == null || n.event(t.rowDataItem, t.columnKey));
|
|
1808
1824
|
}
|
|
1809
|
-
}),
|
|
1810
|
-
const a =
|
|
1811
|
-
return a != null && a.items && (a.items =
|
|
1812
|
-
}),
|
|
1813
|
-
var
|
|
1814
|
-
return (n == null ? void 0 : n.getCopyData) !== void 0 ? n.getCopyData(t.rowDataItem, t.columnKey) : (a = (
|
|
1815
|
-
},
|
|
1816
|
-
return (n,
|
|
1825
|
+
}), y = (n) => n.map((g) => {
|
|
1826
|
+
const a = g;
|
|
1827
|
+
return a != null && a.items && (a.items = y(a.items)), { ...C(a) };
|
|
1828
|
+
}), b = (n) => {
|
|
1829
|
+
var g, a;
|
|
1830
|
+
return (n == null ? void 0 : n.getCopyData) !== void 0 ? n.getCopyData(t.rowDataItem, t.columnKey) : (a = (g = t.rowDataItem) == null ? void 0 : g[t.columnKey]) == null ? void 0 : a.toString();
|
|
1831
|
+
}, c = (n) => n.iconRight || ((n == null ? void 0 : n.variant) === "more" || (n == null ? void 0 : n.variant) === "open") && !n.isShort, S = (n) => n.iconLeft || (n == null ? void 0 : n.variant) === "more";
|
|
1832
|
+
return (n, g) => (u(), U(Ft, {
|
|
1817
1833
|
name: "b-data-grid-cell-actions__animation",
|
|
1818
1834
|
appear: ""
|
|
1819
1835
|
}, {
|
|
1820
|
-
default:
|
|
1821
|
-
p("div",
|
|
1822
|
-
|
|
1823
|
-
p("div",
|
|
1824
|
-
(u(!0), E(fe, null,
|
|
1825
|
-
key:
|
|
1836
|
+
default: G(() => [
|
|
1837
|
+
p("div", uo, [
|
|
1838
|
+
g[1] || (g[1] = p("div", { class: "b-data-grid-cell-actions__background-gradient" }, null, -1)),
|
|
1839
|
+
p("div", co, [
|
|
1840
|
+
(u(!0), E(fe, null, Ce(i.value, (a, _) => (u(), E("div", {
|
|
1841
|
+
key: _,
|
|
1826
1842
|
class: "b-data-grid-cell-actions__action"
|
|
1827
1843
|
}, [
|
|
1828
|
-
a.menuData ? (u(),
|
|
1844
|
+
a.menuData ? (u(), U(l(qe), {
|
|
1829
1845
|
key: 0,
|
|
1830
|
-
data:
|
|
1846
|
+
data: y(a.menuData),
|
|
1831
1847
|
button: {
|
|
1832
1848
|
condensed: !0,
|
|
1833
1849
|
variant: "secondary",
|
|
1834
1850
|
disabled: a.disabled
|
|
1835
1851
|
},
|
|
1836
1852
|
teleport: "",
|
|
1837
|
-
onMenuItemClick:
|
|
1838
|
-
},
|
|
1839
|
-
|
|
1853
|
+
onMenuItemClick: g[0] || (g[0] = (w) => r("menu-item-click-close"))
|
|
1854
|
+
}, $e({ _: 2 }, [
|
|
1855
|
+
S(a) ? {
|
|
1840
1856
|
name: "iconLeft",
|
|
1841
|
-
fn:
|
|
1842
|
-
(a == null ? void 0 : a.variant) === "more" ? (u(),
|
|
1857
|
+
fn: G(() => [
|
|
1858
|
+
(a == null ? void 0 : a.variant) === "more" ? (u(), U(l(il), {
|
|
1843
1859
|
key: 0,
|
|
1844
1860
|
"svg-title": s.value(a, !0)
|
|
1845
|
-
}, null, 8, ["svg-title"])) : (u(),
|
|
1861
|
+
}, null, 8, ["svg-title"])) : (u(), U(Ne(a.iconLeft), {
|
|
1846
1862
|
key: 1,
|
|
1847
1863
|
"svg-title": s.value(a, !0)
|
|
1848
1864
|
}, null, 8, ["svg-title"]))
|
|
@@ -1851,47 +1867,47 @@ const Dt = /* @__PURE__ */ K(Qs, [["render", to]]), Yt = {
|
|
|
1851
1867
|
} : void 0,
|
|
1852
1868
|
a != null && a.isShort ? void 0 : {
|
|
1853
1869
|
name: "default",
|
|
1854
|
-
fn:
|
|
1855
|
-
|
|
1870
|
+
fn: G(() => [
|
|
1871
|
+
oe(j(s.value(a)), 1)
|
|
1856
1872
|
]),
|
|
1857
1873
|
key: "1"
|
|
1858
1874
|
},
|
|
1859
|
-
|
|
1875
|
+
c(a) ? {
|
|
1860
1876
|
name: "iconRight",
|
|
1861
|
-
fn:
|
|
1862
|
-
(a == null ? void 0 : a.variant) === "open" ? (u(),
|
|
1877
|
+
fn: G(() => [
|
|
1878
|
+
(a == null ? void 0 : a.variant) === "open" ? (u(), U(l(Mt), {
|
|
1863
1879
|
key: 0,
|
|
1864
1880
|
"svg-title": s.value(a, !0)
|
|
1865
|
-
}, null, 8, ["svg-title"])) : (u(),
|
|
1881
|
+
}, null, 8, ["svg-title"])) : (u(), U(Ne(a.iconRight), {
|
|
1866
1882
|
key: 1,
|
|
1867
1883
|
"svg-title": a.title
|
|
1868
1884
|
}, null, 8, ["svg-title"]))
|
|
1869
1885
|
]),
|
|
1870
1886
|
key: "2"
|
|
1871
1887
|
} : void 0
|
|
1872
|
-
]), 1032, ["data", "button"])) : a.variant === "copy" ? (u(),
|
|
1888
|
+
]), 1032, ["data", "button"])) : a.variant === "copy" ? (u(), U(l(ul), {
|
|
1873
1889
|
key: 1,
|
|
1874
|
-
text:
|
|
1890
|
+
text: b(a),
|
|
1875
1891
|
"button-text": s.value(a),
|
|
1876
1892
|
button: {
|
|
1877
1893
|
condensed: !0,
|
|
1878
1894
|
variant: "secondary"
|
|
1879
1895
|
}
|
|
1880
|
-
}, null, 8, ["text", "button-text"])) : (u(),
|
|
1896
|
+
}, null, 8, ["text", "button-text"])) : (u(), U(l(Gt), Y({
|
|
1881
1897
|
key: 2,
|
|
1882
1898
|
condensed: "",
|
|
1883
1899
|
variant: "secondary",
|
|
1884
1900
|
critical: a.critical,
|
|
1885
1901
|
disabled: a.disabled,
|
|
1886
1902
|
link: a.link
|
|
1887
|
-
},
|
|
1903
|
+
}, He(h(a))), $e({ _: 2 }, [
|
|
1888
1904
|
a.iconLeft || a.variant === "edit" ? {
|
|
1889
1905
|
name: "iconLeft",
|
|
1890
|
-
fn:
|
|
1891
|
-
(a == null ? void 0 : a.variant) === "edit" ? (u(),
|
|
1906
|
+
fn: G(() => [
|
|
1907
|
+
(a == null ? void 0 : a.variant) === "edit" ? (u(), U(l(oo), {
|
|
1892
1908
|
key: 0,
|
|
1893
1909
|
"svg-title": s.value(a, !0)
|
|
1894
|
-
}, null, 8, ["svg-title"])) : (u(),
|
|
1910
|
+
}, null, 8, ["svg-title"])) : (u(), U(Ne(a.iconLeft), {
|
|
1895
1911
|
key: 1,
|
|
1896
1912
|
"svg-title": a.title
|
|
1897
1913
|
}, null, 8, ["svg-title"]))
|
|
@@ -1900,18 +1916,18 @@ const Dt = /* @__PURE__ */ K(Qs, [["render", to]]), Yt = {
|
|
|
1900
1916
|
} : void 0,
|
|
1901
1917
|
a != null && a.isShort ? void 0 : {
|
|
1902
1918
|
name: "default",
|
|
1903
|
-
fn:
|
|
1904
|
-
|
|
1919
|
+
fn: G(() => [
|
|
1920
|
+
oe(j(s.value(a)), 1)
|
|
1905
1921
|
]),
|
|
1906
1922
|
key: "1"
|
|
1907
1923
|
},
|
|
1908
1924
|
a.iconRight || a.variant === "open" ? {
|
|
1909
1925
|
name: "iconRight",
|
|
1910
|
-
fn:
|
|
1911
|
-
(a == null ? void 0 : a.variant) === "open" ? (u(),
|
|
1926
|
+
fn: G(() => [
|
|
1927
|
+
(a == null ? void 0 : a.variant) === "open" ? (u(), U(l(Mt), {
|
|
1912
1928
|
key: 0,
|
|
1913
1929
|
"svg-title": s.value(a, !0)
|
|
1914
|
-
}, null, 8, ["svg-title"])) : (u(),
|
|
1930
|
+
}, null, 8, ["svg-title"])) : (u(), U(Ne(a.iconRight), {
|
|
1915
1931
|
key: 1,
|
|
1916
1932
|
"svg-title": a.title
|
|
1917
1933
|
}, null, 8, ["svg-title"]))
|
|
@@ -1926,22 +1942,22 @@ const Dt = /* @__PURE__ */ K(Qs, [["render", to]]), Yt = {
|
|
|
1926
1942
|
_: 1
|
|
1927
1943
|
}));
|
|
1928
1944
|
}
|
|
1929
|
-
}),
|
|
1930
|
-
var
|
|
1931
|
-
const
|
|
1945
|
+
}), vo = /* @__PURE__ */ X(go, [["__scopeId", "data-v-da2fa02e"]]);
|
|
1946
|
+
var ee = /* @__PURE__ */ ((e) => (e.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", e.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", e.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e))(ee || {});
|
|
1947
|
+
const Kt = {
|
|
1932
1948
|
"en-US": {
|
|
1933
1949
|
collapseNestedContent: "Collapse nested content",
|
|
1934
1950
|
expandNestedContent: "Expand nested content",
|
|
1935
1951
|
selectRow: "Select row"
|
|
1936
1952
|
}
|
|
1937
|
-
},
|
|
1953
|
+
}, mo = ["aria-hidden", "data-testid", "data-cellindex", "tabindex", "aria-colindex"], Co = ["title"], ho = {
|
|
1938
1954
|
key: 0,
|
|
1939
1955
|
class: "b-data-grid-cell__cell-actions"
|
|
1940
|
-
},
|
|
1941
|
-
i18n: { messages:
|
|
1956
|
+
}, _o = {
|
|
1957
|
+
i18n: { messages: Kt },
|
|
1942
1958
|
name: "data-grid-cell"
|
|
1943
|
-
},
|
|
1944
|
-
...
|
|
1959
|
+
}, Lo = /* @__PURE__ */ he({
|
|
1960
|
+
..._o,
|
|
1945
1961
|
props: {
|
|
1946
1962
|
draggingEventsForRowCell: {
|
|
1947
1963
|
type: Function,
|
|
@@ -2055,101 +2071,101 @@ const Xt = {
|
|
|
2055
2071
|
}
|
|
2056
2072
|
},
|
|
2057
2073
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
2058
|
-
setup(e, { expose:
|
|
2059
|
-
const t = et(),
|
|
2060
|
-
var
|
|
2061
|
-
return !!((
|
|
2062
|
-
}), n =
|
|
2063
|
-
() => s.column.field ===
|
|
2064
|
-
),
|
|
2065
|
-
() => s.column.field ===
|
|
2066
|
-
), a = (
|
|
2067
|
-
var
|
|
2068
|
-
(
|
|
2069
|
-
},
|
|
2070
|
-
|
|
2071
|
-
},
|
|
2072
|
-
const
|
|
2073
|
-
...s.draggingEventsForRowCell(
|
|
2074
|
+
setup(e, { expose: o, emit: f }) {
|
|
2075
|
+
const t = et(), r = Zt(t), { t: i } = Oe({ messages: Kt }), s = e, h = f, C = I(null), y = I(null), b = I(!1), c = I([]), S = O(() => {
|
|
2076
|
+
var m;
|
|
2077
|
+
return !!((m = s.rowData) != null && m[s.column.field]);
|
|
2078
|
+
}), n = O(
|
|
2079
|
+
() => s.column.field === ie ? s.nestedRowsElementIds.join(" ") : ""
|
|
2080
|
+
), g = O(
|
|
2081
|
+
() => s.column.field === ie && !s.selectable && !s.nestedContent
|
|
2082
|
+
), a = (m, B) => (m == null ? void 0 : m.overflow) === Ye.ELLIPSIS ? `${B}` : void 0, _ = (m) => m ?? "-", w = (m) => s.columnSets.slice(0, m).reduce((B, { columnSet: k }) => B + k.length, 0), A = (m, B) => m + w(B), F = (m, B, k) => w() * m + A(B, k), x = (m) => {
|
|
2083
|
+
var B;
|
|
2084
|
+
(m === null || !C.value.contains(m) && !((B = c.value) != null && B.map((k) => k.value).some((k) => k === m || (k == null ? void 0 : k.contains(m))))) && (b.value = !1);
|
|
2085
|
+
}, ae = () => {
|
|
2086
|
+
b.value = !1;
|
|
2087
|
+
}, v = (m) => {
|
|
2088
|
+
const k = { ...{
|
|
2089
|
+
...s.draggingEventsForRowCell(m)
|
|
2074
2090
|
} };
|
|
2075
|
-
return
|
|
2076
|
-
|
|
2077
|
-
},
|
|
2078
|
-
|
|
2079
|
-
},
|
|
2080
|
-
|
|
2081
|
-
},
|
|
2082
|
-
|
|
2083
|
-
},
|
|
2084
|
-
|
|
2085
|
-
}),
|
|
2086
|
-
},
|
|
2087
|
-
|
|
2091
|
+
return m.frozen && (k.keyup = (N) => h("on-frozen-columns-key-press", N), k.keydown = (N) => h("on-frozen-columns-key-press", N)), m.cellActions && (k.mouseenter = () => {
|
|
2092
|
+
b.value = !0;
|
|
2093
|
+
}, k.mouseleave = (N) => {
|
|
2094
|
+
b.value = !1, x(N == null ? void 0 : N.relatedTarget);
|
|
2095
|
+
}, k.mouseleave = (N) => {
|
|
2096
|
+
x(N == null ? void 0 : N.relatedTarget);
|
|
2097
|
+
}, k.focus = (N) => {
|
|
2098
|
+
b.value = !0;
|
|
2099
|
+
}, k.focusout = (N) => {
|
|
2100
|
+
x(N == null ? void 0 : N.relatedTarget);
|
|
2101
|
+
}), k;
|
|
2102
|
+
}, L = () => {
|
|
2103
|
+
h("nested-content-toggled");
|
|
2088
2104
|
};
|
|
2089
2105
|
ce(
|
|
2090
|
-
() =>
|
|
2106
|
+
() => b.value,
|
|
2091
2107
|
() => {
|
|
2092
|
-
|
|
2108
|
+
b.value === !0 ? h("cell-hovered", s.rowIndex) : h("cell-hovered", -1);
|
|
2093
2109
|
}
|
|
2094
|
-
),
|
|
2095
|
-
registerMenuContainerElement: (
|
|
2096
|
-
|
|
2110
|
+
), Bn(al, {
|
|
2111
|
+
registerMenuContainerElement: (m) => {
|
|
2112
|
+
c.value.push(m);
|
|
2097
2113
|
},
|
|
2098
|
-
menuMouseLeave: (
|
|
2099
|
-
|
|
2114
|
+
menuMouseLeave: (m) => {
|
|
2115
|
+
C.value.contains(m == null ? void 0 : m.relatedTarget) || (b.value = !1);
|
|
2100
2116
|
}
|
|
2101
2117
|
});
|
|
2102
|
-
const J = (
|
|
2103
|
-
var
|
|
2118
|
+
const J = (m) => {
|
|
2119
|
+
var B, k, N, V, P, ge, ye;
|
|
2104
2120
|
return {
|
|
2105
|
-
[`b-data-grid-cell--${
|
|
2106
|
-
[`b-data-grid-cell--${
|
|
2107
|
-
[`b-data-grid-cell--${
|
|
2108
|
-
[`b-data-grid-cell--${
|
|
2109
|
-
[`b-data-grid-cell--${
|
|
2110
|
-
[`b-data-grid-cell--${
|
|
2111
|
-
[`b-data-grid-cell--${
|
|
2112
|
-
[`b-data-grid-cell--${
|
|
2113
|
-
[`b-data-grid-cell--${
|
|
2114
|
-
[`b-data-grid-cell--${
|
|
2115
|
-
[`b-data-grid-cell--${
|
|
2116
|
-
[`b-data-grid-cell--${
|
|
2117
|
-
[`b-data-grid-cell--${
|
|
2118
|
-
[`b-data-grid-cell--${
|
|
2119
|
-
[`b-data-grid-cell--${
|
|
2120
|
-
[`b-data-grid-cell--${
|
|
2121
|
+
[`b-data-grid-cell--${ee.COLUMN_HOVERED}`]: (m == null ? void 0 : m.field) === s.hoveredOverColumnState.hoveredOverColumnField,
|
|
2122
|
+
[`b-data-grid-cell--${ee.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (m == null ? void 0 : m.field) === s.hoveredOverColumnState.hoveredOverColumnField && s.hoveredOverColumnState.noBorderLeft,
|
|
2123
|
+
[`b-data-grid-cell--${ee.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (m == null ? void 0 : m.field) === s.hoveredOverColumnState.hoveredOverColumnField && s.hoveredOverColumnState.noBorderRight,
|
|
2124
|
+
[`b-data-grid-cell--${ee.PADDING_LEFT_UNSET}`]: ((B = m == null ? void 0 : m.padding) == null ? void 0 : B.left) === !1,
|
|
2125
|
+
[`b-data-grid-cell--${ee.PADDING_RIGHT_UNSET}`]: ((k = m == null ? void 0 : m.padding) == null ? void 0 : k.right) === !1,
|
|
2126
|
+
[`b-data-grid-cell--${ee.NUMERIC}`]: m == null ? void 0 : m.numeric,
|
|
2127
|
+
[`b-data-grid-cell--${ee.CONDENSED}`]: s.condensed,
|
|
2128
|
+
[`b-data-grid-cell--${ee.OVERFLOW_ELLIPSIS}`]: (m == null ? void 0 : m.overflow) === Ye.ELLIPSIS,
|
|
2129
|
+
[`b-data-grid-cell--${ee.IS_COLUMN_REORDERING}`]: ((N = s.draggingColumns.dragging) == null ? void 0 : N.field) === m.field,
|
|
2130
|
+
[`b-data-grid-cell--${ee.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((V = s.draggingColumns.target) == null ? void 0 : V.field) === m.field && ((P = s.draggingColumns) == null ? void 0 : P.dragToLeft),
|
|
2131
|
+
[`b-data-grid-cell--${ee.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((ge = s.draggingColumns.target) == null ? void 0 : ge.field) === m.field && !((ye = s.draggingColumns) != null && ye.dragToLeft),
|
|
2132
|
+
[`b-data-grid-cell--${ee.FROZEN}`]: m == null ? void 0 : m.frozen,
|
|
2133
|
+
[`b-data-grid-cell--${ee.NESTED_CONTENT_ENABLED}`]: s.nestedContent,
|
|
2134
|
+
[`b-data-grid-cell--${ee.ACTION_COL_NESTED_CONTENT_ENABLED}`]: s.nestedContent && !s.selectable && m.field === ie,
|
|
2135
|
+
[`b-data-grid-cell--${ee.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: s.nestedContent && s.selectable && m.field === ie,
|
|
2136
|
+
[`b-data-grid-cell--${ee.ACTION_COL_SELECTION_ENABLED}`]: m.field === ie && s.selectable
|
|
2121
2137
|
};
|
|
2122
2138
|
};
|
|
2123
|
-
return
|
|
2124
|
-
gridcellRef:
|
|
2125
|
-
}), (
|
|
2126
|
-
var
|
|
2127
|
-
return u(), E("div",
|
|
2139
|
+
return o({
|
|
2140
|
+
gridcellRef: C
|
|
2141
|
+
}), (m, B) => {
|
|
2142
|
+
var k;
|
|
2143
|
+
return u(), E("div", Y({
|
|
2128
2144
|
key: `cell-${e.column.field}`,
|
|
2129
2145
|
ref_key: "gridcellRef",
|
|
2130
|
-
ref:
|
|
2131
|
-
"aria-hidden":
|
|
2146
|
+
ref: C,
|
|
2147
|
+
"aria-hidden": g.value,
|
|
2132
2148
|
"data-testid": `cell-${e.column.field}`,
|
|
2133
|
-
"data-cellindex":
|
|
2149
|
+
"data-cellindex": F(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2134
2150
|
class: ["b-data-grid-cell", J(e.column)],
|
|
2135
2151
|
role: "gridcell",
|
|
2136
|
-
tabindex:
|
|
2152
|
+
tabindex: F(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1",
|
|
2137
2153
|
"aria-colindex": A(e.colIndex, e.columnSetIndex) + 1,
|
|
2138
2154
|
style: {
|
|
2139
2155
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2140
2156
|
}
|
|
2141
|
-
},
|
|
2142
|
-
e.column.field ===
|
|
2143
|
-
e.selectable ? (u(),
|
|
2157
|
+
}, He(v(e.column), !0)), [
|
|
2158
|
+
e.column.field === l(ie) ? (u(), E(fe, { key: 0 }, [
|
|
2159
|
+
e.selectable ? (u(), U(l(xt), {
|
|
2144
2160
|
key: 0,
|
|
2145
2161
|
class: "b-data-grid-cell__select-cell",
|
|
2146
|
-
"aria-label":
|
|
2162
|
+
"aria-label": l(i)("selectRow"),
|
|
2147
2163
|
"model-value": e.selectedItems,
|
|
2148
2164
|
disabled: e.isDataItemDisabled(e.rowData),
|
|
2149
2165
|
value: e.getDataItemId(e.rowData),
|
|
2150
|
-
"onUpdate:modelValue":
|
|
2151
|
-
}, null, 8, ["aria-label", "model-value", "disabled", "value"])) :
|
|
2152
|
-
e.nestedContent ? (u(),
|
|
2166
|
+
"onUpdate:modelValue": B[0] || (B[0] = (N) => m.$emit("select-row", N))
|
|
2167
|
+
}, null, 8, ["aria-label", "model-value", "disabled", "value"])) : M("", !0),
|
|
2168
|
+
e.nestedContent ? (u(), U(l(nt), {
|
|
2153
2169
|
key: 1,
|
|
2154
2170
|
ref: "menuButtonRef",
|
|
2155
2171
|
"aria-haspopup": "true",
|
|
@@ -2157,51 +2173,51 @@ const Xt = {
|
|
|
2157
2173
|
condensed: "",
|
|
2158
2174
|
variant: "tertiary",
|
|
2159
2175
|
toggled: e.isNestedContentExpanded,
|
|
2160
|
-
onClick:
|
|
2176
|
+
onClick: L
|
|
2161
2177
|
}, {
|
|
2162
|
-
iconLeft:
|
|
2163
|
-
e.isNestedContentExpanded ? (u(),
|
|
2178
|
+
iconLeft: G(() => [
|
|
2179
|
+
e.isNestedContentExpanded ? (u(), U(l(cl), {
|
|
2164
2180
|
key: 0,
|
|
2165
2181
|
class: "b-accordion-item__icon",
|
|
2166
|
-
"svg-title":
|
|
2167
|
-
}, null, 8, ["svg-title"])) : (u(),
|
|
2182
|
+
"svg-title": l(i)("collapseNestedContent")
|
|
2183
|
+
}, null, 8, ["svg-title"])) : (u(), U(l(fl), {
|
|
2168
2184
|
key: 1,
|
|
2169
2185
|
class: "b-accordion-item__icon",
|
|
2170
|
-
"svg-title":
|
|
2186
|
+
"svg-title": l(i)("expandNestedContent")
|
|
2171
2187
|
}, null, 8, ["svg-title"]))
|
|
2172
2188
|
]),
|
|
2173
2189
|
_: 1
|
|
2174
|
-
}, 8, ["aria-controls", "toggled"])) :
|
|
2190
|
+
}, 8, ["aria-controls", "toggled"])) : M("", !0)
|
|
2175
2191
|
], 64)) : (u(), E(fe, { key: 1 }, [
|
|
2176
|
-
q(
|
|
2177
|
-
default:
|
|
2178
|
-
|
|
2192
|
+
q(l(Ve), { el: "div" }, {
|
|
2193
|
+
default: G(() => [
|
|
2194
|
+
be(m.$slots, `item-${e.column.field}`, { item: e.rowData }, () => [
|
|
2179
2195
|
p("span", {
|
|
2180
2196
|
title: a(e.column, e.rowData[e.column.field])
|
|
2181
|
-
},
|
|
2197
|
+
}, j(_(e.rowData[e.column.field])), 9, Co)
|
|
2182
2198
|
], !0)
|
|
2183
2199
|
]),
|
|
2184
2200
|
_: 3
|
|
2185
2201
|
}),
|
|
2186
|
-
((
|
|
2187
|
-
|
|
2202
|
+
((k = e.column.cellActions) == null ? void 0 : k.length) > 0 ? (u(), E("div", ho, [
|
|
2203
|
+
b.value && (S.value || l(r)(`item-${e.column.field}`)) ? (u(), U(vo, {
|
|
2188
2204
|
key: 0,
|
|
2189
2205
|
ref_key: "cellActionsRef",
|
|
2190
|
-
ref:
|
|
2206
|
+
ref: y,
|
|
2191
2207
|
"cell-actions": e.column.cellActions,
|
|
2192
2208
|
"column-key": e.column.field,
|
|
2193
2209
|
"row-data-item": e.rowData,
|
|
2194
|
-
onMenuItemClickClose:
|
|
2195
|
-
}, null, 8, ["cell-actions", "column-key", "row-data-item"])) :
|
|
2196
|
-
])) :
|
|
2210
|
+
onMenuItemClickClose: ae
|
|
2211
|
+
}, null, 8, ["cell-actions", "column-key", "row-data-item"])) : M("", !0)
|
|
2212
|
+
])) : M("", !0)
|
|
2197
2213
|
], 64))
|
|
2198
|
-
], 16,
|
|
2214
|
+
], 16, mo);
|
|
2199
2215
|
};
|
|
2200
2216
|
}
|
|
2201
|
-
}),
|
|
2217
|
+
}), po = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-0450eb4d"]]), Eo = { class: "b-data-grid-row-container" }, bo = ["aria-selected"], So = ["data-testid"], yo = ["id"], wo = {
|
|
2202
2218
|
name: "data-grid-row"
|
|
2203
|
-
},
|
|
2204
|
-
...
|
|
2219
|
+
}, Oo = /* @__PURE__ */ he({
|
|
2220
|
+
...wo,
|
|
2205
2221
|
props: {
|
|
2206
2222
|
/**
|
|
2207
2223
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2351,85 +2367,85 @@ const Xt = {
|
|
|
2351
2367
|
}
|
|
2352
2368
|
},
|
|
2353
2369
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "row-click"],
|
|
2354
|
-
setup(e, { expose:
|
|
2355
|
-
const t = et(),
|
|
2370
|
+
setup(e, { expose: o, emit: f }) {
|
|
2371
|
+
const t = et(), r = Zt(t), i = e, s = f, h = I({}), C = I(!1), y = I(), b = Vt("nested-content-slot"), c = O(() => {
|
|
2356
2372
|
if (i.hasNestedContent) {
|
|
2357
|
-
const
|
|
2373
|
+
const v = C.value.toString();
|
|
2358
2374
|
return {
|
|
2359
|
-
"aria-expanded": i.shouldShowNestedContent(i.rowData) ?
|
|
2375
|
+
"aria-expanded": i.shouldShowNestedContent(i.rowData) ? v : void 0,
|
|
2360
2376
|
"aria-level": "1",
|
|
2361
2377
|
"aria-posinset": i.rowIndex + 1,
|
|
2362
2378
|
"aria-setsize": i.rowSetSize
|
|
2363
2379
|
};
|
|
2364
2380
|
}
|
|
2365
2381
|
return { "aria-rowindex": i.rowIndex + 1 };
|
|
2366
|
-
}),
|
|
2367
|
-
const D =
|
|
2368
|
-
|
|
2369
|
-
}, n = (
|
|
2382
|
+
}), S = (v, L) => {
|
|
2383
|
+
const D = v;
|
|
2384
|
+
v !== null && (D != null && D.gridcellRef) && (h.value[L] = D.gridcellRef);
|
|
2385
|
+
}, n = (v) => {
|
|
2370
2386
|
if (!i.selectable)
|
|
2371
2387
|
return null;
|
|
2372
|
-
const
|
|
2373
|
-
return i.selectedItems.includes(
|
|
2374
|
-
},
|
|
2375
|
-
i.allowRowClicks && s("row-click", i.rowData,
|
|
2376
|
-
}, { updateContentHeight: a, contentHeight:
|
|
2388
|
+
const L = i.getDataItemId(v);
|
|
2389
|
+
return i.selectedItems.includes(L).toString();
|
|
2390
|
+
}, g = (v) => {
|
|
2391
|
+
i.allowRowClicks && s("row-click", i.rowData, v);
|
|
2392
|
+
}, { updateContentHeight: a, contentHeight: _ } = dl(y, C), w = O(() => {
|
|
2377
2393
|
if (i.hasNestedContent)
|
|
2378
2394
|
return {
|
|
2379
|
-
paddingLeft: `${
|
|
2380
|
-
"max-height": i.hasNestedContent &&
|
|
2395
|
+
paddingLeft: `${h.value[ie].clientWidth + jt}px`,
|
|
2396
|
+
"max-height": i.hasNestedContent && _.value ? _.value : 0
|
|
2381
2397
|
};
|
|
2382
2398
|
});
|
|
2383
2399
|
ce(
|
|
2384
|
-
() =>
|
|
2400
|
+
() => y.value,
|
|
2385
2401
|
() => {
|
|
2386
|
-
let
|
|
2387
|
-
!
|
|
2388
|
-
|
|
2402
|
+
let v = null;
|
|
2403
|
+
!v && y.value && (v = tt(y.value, () => {
|
|
2404
|
+
y.value && a();
|
|
2389
2405
|
}));
|
|
2390
2406
|
}
|
|
2391
2407
|
);
|
|
2392
2408
|
const A = () => {
|
|
2393
|
-
|
|
2394
|
-
},
|
|
2395
|
-
"b-data-grid-row-container__row--disabled": i.isDataItemDisabled(
|
|
2409
|
+
C.value = !C.value, a();
|
|
2410
|
+
}, F = (v, L) => ({
|
|
2411
|
+
"b-data-grid-row-container__row--disabled": i.isDataItemDisabled(v),
|
|
2396
2412
|
"b-data-grid-row-container__row--row-clicks-enabled": i.allowRowClicks,
|
|
2397
|
-
"b-data-grid-row-container__row--highlighted": i.highlightedRows.includes(i.getDataItemId(
|
|
2398
|
-
"b-data-grid-row-container__row--hovered": i.hoveredRowIndex ===
|
|
2399
|
-
"b-data-grid-row-container__row--is-last-child": i.isRowLastChild && !
|
|
2400
|
-
}),
|
|
2401
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
2402
|
-
[`b-data-grid-row-container__row-cell-set--${
|
|
2403
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator":
|
|
2404
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
2413
|
+
"b-data-grid-row-container__row--highlighted": i.highlightedRows.includes(i.getDataItemId(v)) || i.selectedItems.includes(i.getDataItemId(v)),
|
|
2414
|
+
"b-data-grid-row-container__row--hovered": i.hoveredRowIndex === L,
|
|
2415
|
+
"b-data-grid-row-container__row--is-last-child": i.isRowLastChild && !C.value
|
|
2416
|
+
}), x = (v) => ({
|
|
2417
|
+
"b-data-grid-row-container__row-cell-set--frozen": v,
|
|
2418
|
+
[`b-data-grid-row-container__row-cell-set--${Ee.OVERFLOW_SHADOW_LEFT}`]: v && i.hasLeftOverflow,
|
|
2419
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": v && i.showFrozenColumnsSeparator,
|
|
2420
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !v,
|
|
2405
2421
|
"b-data-grid-row-container__row-cell-set--is-measuring": i.isMeasuringColumnWidths
|
|
2406
|
-
}),
|
|
2422
|
+
}), ae = O(() => ({
|
|
2407
2423
|
"b-data-grid-row-container__row-nested-slot--is-last-child": i.isRowLastChild
|
|
2408
2424
|
}));
|
|
2409
|
-
return
|
|
2410
|
-
gridcellRefs:
|
|
2411
|
-
}), (
|
|
2412
|
-
(u(), E("div",
|
|
2425
|
+
return o({
|
|
2426
|
+
gridcellRefs: h
|
|
2427
|
+
}), (v, L) => (u(), E("div", Eo, [
|
|
2428
|
+
(u(), E("div", Y(c.value, {
|
|
2413
2429
|
key: e.rowIndex,
|
|
2414
|
-
class: ["b-data-grid-row-container__row",
|
|
2430
|
+
class: ["b-data-grid-row-container__row", F(e.rowData, e.rowIndex)],
|
|
2415
2431
|
role: "row",
|
|
2416
2432
|
"aria-selected": n(e.rowData),
|
|
2417
|
-
onClick:
|
|
2433
|
+
onClick: g
|
|
2418
2434
|
}), [
|
|
2419
|
-
(u(!0), E(fe, null,
|
|
2435
|
+
(u(!0), E(fe, null, Ce(e.columnSets, ({ columnSet: D, id: H, isFrozenColumns: J }, m) => (u(), E(fe, null, [
|
|
2420
2436
|
D != null && D.length ? (u(), E("div", {
|
|
2421
|
-
key: `data-grid-rows-${
|
|
2422
|
-
class:
|
|
2423
|
-
"data-testid": `data-grid-${
|
|
2437
|
+
key: `data-grid-rows-${H}`,
|
|
2438
|
+
class: ne(["b-data-grid-row-container__cells", x(J)]),
|
|
2439
|
+
"data-testid": `data-grid-${H}-rows`
|
|
2424
2440
|
}, [
|
|
2425
|
-
(u(!0), E(fe, null,
|
|
2426
|
-
key: `cell-${
|
|
2441
|
+
(u(!0), E(fe, null, Ce(D, (B, k) => (u(), U(l(po), {
|
|
2442
|
+
key: `cell-${B.field}`,
|
|
2427
2443
|
ref_for: !0,
|
|
2428
|
-
ref: (
|
|
2444
|
+
ref: (N) => S(N, B.field),
|
|
2429
2445
|
class: "b-data-grid-row-container__cell",
|
|
2430
|
-
column:
|
|
2431
|
-
"column-set-index":
|
|
2432
|
-
"col-index":
|
|
2446
|
+
column: B,
|
|
2447
|
+
"column-set-index": m,
|
|
2448
|
+
"col-index": k,
|
|
2433
2449
|
"column-sets": e.columnSets,
|
|
2434
2450
|
condensed: e.condensed,
|
|
2435
2451
|
"dragging-columns": e.draggingColumns,
|
|
@@ -2438,95 +2454,95 @@ const Xt = {
|
|
|
2438
2454
|
"hovered-over-column-state": e.hoveredOverColumnState,
|
|
2439
2455
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
2440
2456
|
"is-measuring-column-widths": e.isMeasuringColumnWidths,
|
|
2441
|
-
"is-nested-content-expanded":
|
|
2457
|
+
"is-nested-content-expanded": C.value,
|
|
2442
2458
|
"nested-content": e.hasNestedContent && e.shouldShowNestedContent(e.rowData),
|
|
2443
|
-
"nested-rows-element-ids": [
|
|
2459
|
+
"nested-rows-element-ids": [l(b)],
|
|
2444
2460
|
"row-data": e.rowData,
|
|
2445
2461
|
"row-index": e.rowIndex,
|
|
2446
2462
|
selectable: e.selectable,
|
|
2447
2463
|
"selected-items": e.selectedItems,
|
|
2448
|
-
onCellHovered:
|
|
2449
|
-
onOnFrozenColumnsKeyPress:
|
|
2450
|
-
onSelectRow:
|
|
2464
|
+
onCellHovered: L[0] || (L[0] = (N) => s("cell-hovered", N)),
|
|
2465
|
+
onOnFrozenColumnsKeyPress: L[1] || (L[1] = (N) => s("on-frozen-columns-key-press", N)),
|
|
2466
|
+
onSelectRow: L[2] || (L[2] = (N) => s("select-row", N)),
|
|
2451
2467
|
onNestedContentToggled: A
|
|
2452
|
-
},
|
|
2453
|
-
|
|
2468
|
+
}, $e({ _: 2 }, [
|
|
2469
|
+
Ce(l(t), (N, V) => ({
|
|
2454
2470
|
name: V,
|
|
2455
|
-
fn:
|
|
2456
|
-
|
|
2471
|
+
fn: G((P) => [
|
|
2472
|
+
be(v.$slots, V, Y({ ref_for: !0 }, P), void 0, !0)
|
|
2457
2473
|
])
|
|
2458
2474
|
}))
|
|
2459
2475
|
]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "is-nested-content-expanded", "nested-content", "nested-rows-element-ids", "row-data", "row-index", "selectable", "selected-items"]))), 128))
|
|
2460
|
-
], 10,
|
|
2476
|
+
], 10, So)) : M("", !0)
|
|
2461
2477
|
], 64))), 256))
|
|
2462
|
-
], 16,
|
|
2463
|
-
e.hasNestedContent &&
|
|
2478
|
+
], 16, bo)),
|
|
2479
|
+
e.hasNestedContent && l(r)("nested-slot") ? (u(), U(Ft, {
|
|
2464
2480
|
key: `${e.rowIndex}-nest-content`,
|
|
2465
2481
|
name: "b-data-grid-row-container__animation--nested-content"
|
|
2466
2482
|
}, {
|
|
2467
|
-
default:
|
|
2468
|
-
|
|
2483
|
+
default: G(() => [
|
|
2484
|
+
C.value ? (u(), E("div", {
|
|
2469
2485
|
key: 0,
|
|
2470
|
-
id:
|
|
2486
|
+
id: l(b),
|
|
2471
2487
|
"aria-level": "2",
|
|
2472
2488
|
"aria-posinset": "1",
|
|
2473
2489
|
"aria-setsize": "1",
|
|
2474
|
-
class:
|
|
2490
|
+
class: ne(["b-data-grid-row-container__row-nested-slot", ae.value]),
|
|
2475
2491
|
role: "row",
|
|
2476
2492
|
tabindex: "-1",
|
|
2477
|
-
style:
|
|
2493
|
+
style: Ie(w.value)
|
|
2478
2494
|
}, [
|
|
2479
2495
|
p("div", {
|
|
2480
2496
|
ref_key: "nestedContentRef",
|
|
2481
|
-
ref:
|
|
2497
|
+
ref: y
|
|
2482
2498
|
}, [
|
|
2483
|
-
|
|
2499
|
+
be(v.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
2484
2500
|
], 512)
|
|
2485
|
-
], 14,
|
|
2501
|
+
], 14, yo)) : M("", !0)
|
|
2486
2502
|
]),
|
|
2487
2503
|
_: 3
|
|
2488
|
-
})) :
|
|
2504
|
+
})) : M("", !0)
|
|
2489
2505
|
]));
|
|
2490
2506
|
}
|
|
2491
|
-
}),
|
|
2492
|
-
let
|
|
2493
|
-
const
|
|
2507
|
+
}), Io = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-fca272f7"]]);
|
|
2508
|
+
let kt = 0;
|
|
2509
|
+
const Ao = {
|
|
2494
2510
|
beforeCreate() {
|
|
2495
|
-
this.uuid =
|
|
2511
|
+
this.uuid = kt.toString(), kt += 1;
|
|
2496
2512
|
}
|
|
2497
|
-
},
|
|
2498
|
-
function
|
|
2499
|
-
return u(), E("svg",
|
|
2513
|
+
}, Ro = { key: 0 }, To = ["clip-path"], No = ["id"];
|
|
2514
|
+
function $o(e, o, f, t, r, i) {
|
|
2515
|
+
return u(), E("svg", Y({ role: "img" }, e.$attrs, {
|
|
2500
2516
|
class: "ui-assets-icons-16",
|
|
2501
2517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2502
2518
|
width: "16",
|
|
2503
2519
|
height: "16",
|
|
2504
2520
|
fill: "none"
|
|
2505
2521
|
}), [
|
|
2506
|
-
e.$attrs["svg-title"] ? (u(), E("title",
|
|
2522
|
+
e.$attrs["svg-title"] ? (u(), E("title", Ro, j(e.$attrs["svg-title"]), 1)) : M("", !0),
|
|
2507
2523
|
p("g", {
|
|
2508
2524
|
"clip-path": "url(#uia-icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
2509
|
-
},
|
|
2525
|
+
}, o[0] || (o[0] = [
|
|
2510
2526
|
p("path", {
|
|
2511
2527
|
fill: "#00112C",
|
|
2512
2528
|
d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 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 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z"
|
|
2513
2529
|
}, null, -1)
|
|
2514
|
-
]), 8,
|
|
2530
|
+
]), 8, To),
|
|
2515
2531
|
p("defs", null, [
|
|
2516
2532
|
p("clipPath", {
|
|
2517
2533
|
id: "uia-icons-16-warning_circle_fill__a" + e.uuid
|
|
2518
|
-
},
|
|
2534
|
+
}, o[1] || (o[1] = [
|
|
2519
2535
|
p("rect", {
|
|
2520
2536
|
width: "16",
|
|
2521
2537
|
height: "16",
|
|
2522
2538
|
fill: "#fff"
|
|
2523
2539
|
}, null, -1)
|
|
2524
|
-
]), 8,
|
|
2540
|
+
]), 8, No)
|
|
2525
2541
|
])
|
|
2526
2542
|
], 16);
|
|
2527
2543
|
}
|
|
2528
|
-
const
|
|
2529
|
-
...
|
|
2544
|
+
const Do = /* @__PURE__ */ X(Ao, [["render", $o]]), Mo = ["aria-label"], ko = {}, zo = /* @__PURE__ */ he({
|
|
2545
|
+
...ko,
|
|
2530
2546
|
__name: "data-grid-static-icon",
|
|
2531
2547
|
props: {
|
|
2532
2548
|
colored: { type: Boolean, default: !1 },
|
|
@@ -2534,54 +2550,54 @@ const Oo = /* @__PURE__ */ K(Eo, [["render", wo]]), Io = ["aria-label"], Ao = {}
|
|
|
2534
2550
|
variant: { default: "no-value" }
|
|
2535
2551
|
},
|
|
2536
2552
|
setup(e) {
|
|
2537
|
-
const
|
|
2538
|
-
switch (
|
|
2553
|
+
const o = e, f = O(() => {
|
|
2554
|
+
switch (o.variant) {
|
|
2539
2555
|
case "checkmark":
|
|
2540
|
-
return
|
|
2556
|
+
return Hn;
|
|
2541
2557
|
case "warning":
|
|
2542
|
-
return
|
|
2558
|
+
return Vn;
|
|
2543
2559
|
case "error":
|
|
2544
|
-
return
|
|
2560
|
+
return Do;
|
|
2545
2561
|
case "cross":
|
|
2546
|
-
return
|
|
2562
|
+
return Pt;
|
|
2547
2563
|
case "no-value":
|
|
2548
|
-
return
|
|
2564
|
+
return gt;
|
|
2549
2565
|
default:
|
|
2550
|
-
return
|
|
2566
|
+
return gt;
|
|
2551
2567
|
}
|
|
2552
|
-
}), t =
|
|
2553
|
-
"b-data-grid-static-icon--colored":
|
|
2554
|
-
})),
|
|
2555
|
-
return (s,
|
|
2568
|
+
}), t = O(() => ({
|
|
2569
|
+
"b-data-grid-static-icon--colored": o.colored && o.variant !== "no-value"
|
|
2570
|
+
})), r = O(() => `b-data-grid-static-icon__${o.variant}`), i = O(() => Zn.AUTO);
|
|
2571
|
+
return (s, h) => Qe((u(), E("div", {
|
|
2556
2572
|
"aria-label": s.tooltipText,
|
|
2557
|
-
class:
|
|
2573
|
+
class: ne(["b-data-grid-static-icon", t.value]),
|
|
2558
2574
|
tabindex: "0"
|
|
2559
2575
|
}, [
|
|
2560
|
-
(u(),
|
|
2561
|
-
class:
|
|
2576
|
+
(u(), U(Ne(f.value), {
|
|
2577
|
+
class: ne(r.value),
|
|
2562
2578
|
"svg-title": s.tooltipText
|
|
2563
2579
|
}, null, 8, ["class", "svg-title"]))
|
|
2564
|
-
], 10,
|
|
2565
|
-
[
|
|
2580
|
+
], 10, Mo)), [
|
|
2581
|
+
[l(xn), s.tooltipText, i.value]
|
|
2566
2582
|
]);
|
|
2567
2583
|
}
|
|
2568
|
-
}),
|
|
2584
|
+
}), Di = /* @__PURE__ */ X(zo, [["__scopeId", "data-v-3ee55e9a"]]), Uo = ["aria-rowcount", "aria-colcount", "aria-label", "role"], Fo = {
|
|
2569
2585
|
key: 1,
|
|
2570
2586
|
class: "b-data-grid__header"
|
|
2571
|
-
},
|
|
2587
|
+
}, Po = ["tabindex"], Bo = ["tabindex", "aria-busy"], Wo = {
|
|
2572
2588
|
key: 0,
|
|
2573
2589
|
class: "b-data-grid__loading"
|
|
2574
|
-
},
|
|
2590
|
+
}, Go = {
|
|
2575
2591
|
key: 1,
|
|
2576
2592
|
class: "b-data-grid__empty-state"
|
|
2577
|
-
},
|
|
2578
|
-
key:
|
|
2593
|
+
}, Ho = {
|
|
2594
|
+
key: 5,
|
|
2579
2595
|
class: "b-data-grid__footer"
|
|
2580
|
-
},
|
|
2596
|
+
}, Vo = {
|
|
2581
2597
|
i18n: { messages: xe },
|
|
2582
2598
|
name: "bento-data-grid"
|
|
2583
|
-
},
|
|
2584
|
-
...
|
|
2599
|
+
}, xo = /* @__PURE__ */ he({
|
|
2600
|
+
...Vo,
|
|
2585
2601
|
props: {
|
|
2586
2602
|
/**
|
|
2587
2603
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2747,6 +2763,13 @@ const Oo = /* @__PURE__ */ K(Eo, [["render", wo]]), Io = ["aria-label"], Ao = {}
|
|
|
2747
2763
|
type: Boolean,
|
|
2748
2764
|
default: !1
|
|
2749
2765
|
},
|
|
2766
|
+
/**
|
|
2767
|
+
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
2768
|
+
*/
|
|
2769
|
+
stickyHorizontalScrollbar: {
|
|
2770
|
+
type: Boolean,
|
|
2771
|
+
default: !1
|
|
2772
|
+
},
|
|
2750
2773
|
/**
|
|
2751
2774
|
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
2752
2775
|
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
@@ -2829,348 +2852,378 @@ const Oo = /* @__PURE__ */ K(Eo, [["render", wo]]), Io = ["aria-label"], Ao = {}
|
|
|
2829
2852
|
$.SELECT_ALL_ACROSS_PAGES,
|
|
2830
2853
|
$.SORT
|
|
2831
2854
|
],
|
|
2832
|
-
setup(e, { expose:
|
|
2833
|
-
const t = e,
|
|
2834
|
-
allowColumnDragAndDrop:
|
|
2835
|
-
columns:
|
|
2836
|
-
columnPanel:
|
|
2837
|
-
data:
|
|
2838
|
-
lazyLoadType:
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2855
|
+
setup(e, { expose: o, emit: f }) {
|
|
2856
|
+
const t = e, r = et(), i = I(null), s = I(), h = I({}), C = I(null), y = I(null), b = I(), c = I(null), S = I(null), {
|
|
2857
|
+
allowColumnDragAndDrop: n,
|
|
2858
|
+
columns: g,
|
|
2859
|
+
columnPanel: a,
|
|
2860
|
+
data: _,
|
|
2861
|
+
lazyLoadType: w,
|
|
2862
|
+
loading: A,
|
|
2863
|
+
hasNestedContent: F,
|
|
2864
|
+
selectable: x,
|
|
2865
|
+
selection: ae,
|
|
2866
|
+
selectableAcrossPages: v,
|
|
2867
|
+
stickyPagination: L,
|
|
2868
|
+
outline: D,
|
|
2869
|
+
pagination: H
|
|
2870
|
+
} = Ke(t), J = I(-1), { t: m } = Oe({ messages: xe }), B = O(() => ye.value.filter((R) => R.frozen).length), k = ft(
|
|
2871
|
+
Qn,
|
|
2847
2872
|
() => ({
|
|
2848
2873
|
isDataGridTemplate: !1,
|
|
2849
|
-
stickyTabs:
|
|
2850
|
-
tabsRef:
|
|
2874
|
+
stickyTabs: I(!1),
|
|
2875
|
+
tabsRef: I(null)
|
|
2851
2876
|
})
|
|
2852
|
-
), { isDataGridTemplate:
|
|
2853
|
-
columnDefs:
|
|
2854
|
-
onColumnWidthOverride:
|
|
2855
|
-
gridColumnWidthStyle:
|
|
2856
|
-
isMeasuringColumnWidths:
|
|
2857
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
2858
|
-
columns:
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2877
|
+
), { isDataGridTemplate: N, stickyTabs: V, tabsRef: P } = k(), ge = O(() => t.fitContent || N ? 0 : null), {
|
|
2878
|
+
columnDefs: ye,
|
|
2879
|
+
onColumnWidthOverride: Ze,
|
|
2880
|
+
gridColumnWidthStyle: De,
|
|
2881
|
+
isMeasuringColumnWidths: d,
|
|
2882
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: W,
|
|
2883
|
+
columns: T,
|
|
2884
|
+
totalWidthOfAllColumns: re
|
|
2885
|
+
} = yl(g, _, i, h, C, {
|
|
2886
|
+
hasColumnPanel: a,
|
|
2887
|
+
hasSelectableColumn: x,
|
|
2888
|
+
hasSelectableAcrossPages: v,
|
|
2889
|
+
hasNestedContent: F,
|
|
2890
|
+
allowColumnDragAndDrop: n,
|
|
2891
|
+
isDataGridTemplate: N
|
|
2892
|
+
}), te = f, Q = (R, ...z) => {
|
|
2893
|
+
(R === $.COLUMNS || R === $.UPDATE_COLUMNS) && ([T.value] = z), te(R, ...z);
|
|
2894
|
+
}, Ae = pt(P, V), Me = O(
|
|
2895
|
+
() => t.stickyFilters ? `${Ae.value}px` : null
|
|
2896
|
+
), ke = pt(y, Ut(t, "stickyFilters")), ze = O(
|
|
2897
|
+
() => `${ke.value + Ae.value}px`
|
|
2872
2898
|
), {
|
|
2873
|
-
sortedColumns:
|
|
2874
|
-
columnSets:
|
|
2875
|
-
isOnlyOneVisibleColumn:
|
|
2876
|
-
onConfigSettingsUpdate:
|
|
2877
|
-
onConfigSettingsColumnsUpdate:
|
|
2878
|
-
onConfigSettingsColumnUpdate:
|
|
2879
|
-
} =
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
), { draggingColumns: st, draggingEventsForColumns:
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2899
|
+
sortedColumns: Ue,
|
|
2900
|
+
columnSets: we,
|
|
2901
|
+
isOnlyOneVisibleColumn: Jt,
|
|
2902
|
+
onConfigSettingsUpdate: Qt,
|
|
2903
|
+
onConfigSettingsColumnsUpdate: en,
|
|
2904
|
+
onConfigSettingsColumnUpdate: tn
|
|
2905
|
+
} = Nl(ye, Q), { hoveredOverColumn: nn, hoveredOverColumnState: lt } = Dl(
|
|
2906
|
+
we,
|
|
2907
|
+
x,
|
|
2908
|
+
D,
|
|
2909
|
+
W
|
|
2910
|
+
), { draggingColumns: st, draggingEventsForColumns: ln, draggingEventsForRowCell: sn, onMoveColumnByOffset: on } = Tl(Ue, n, Q), { onAllRowSelect: ot, onRowSelect: an, selectedItems: it, allItemsSelectedState: rn } = wl(
|
|
2911
|
+
ae,
|
|
2912
|
+
Q,
|
|
2913
|
+
_,
|
|
2888
2914
|
t.getDataItemId,
|
|
2889
2915
|
t.isDataItemDisabled
|
|
2890
|
-
), { navigationInput: at } =
|
|
2891
|
-
|
|
2892
|
-
|
|
2916
|
+
), { navigationInput: at } = Il(C, g, x), { isLazyLoad: Re, isInfiniteScroll: dn, verticalScrollPosition: un, emitLazyLoadEvent: cn } = Rl(
|
|
2917
|
+
w,
|
|
2918
|
+
c,
|
|
2893
2919
|
i,
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
), {
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2920
|
+
A,
|
|
2921
|
+
Q
|
|
2922
|
+
), {
|
|
2923
|
+
updateScrollPosition: Fe,
|
|
2924
|
+
updateScrollPositionOnFrozenColumnsNavigation: fn,
|
|
2925
|
+
syncVirtualScrollerWithBody: rt,
|
|
2926
|
+
hasLeftOverflow: Pe,
|
|
2927
|
+
hasRightOverflow: gn,
|
|
2928
|
+
horizontalScrollbarConditionalClasses: vn
|
|
2929
|
+
} = $l(i, s, un, S, {
|
|
2930
|
+
isLazyLoad: Re,
|
|
2931
|
+
pagination: H,
|
|
2932
|
+
stickyPagination: L
|
|
2933
|
+
}), mn = () => {
|
|
2934
|
+
b.value.isClearAllVisible ? b.value.clearAllFilters() : b.value.isResetAllVisible && b.value.resetAllFilters();
|
|
2935
|
+
}, Cn = O(() => {
|
|
2936
|
+
var R, z;
|
|
2900
2937
|
return {
|
|
2901
2938
|
...t.emptyState,
|
|
2902
|
-
variant: ((
|
|
2939
|
+
variant: ((R = t.emptyState) == null ? void 0 : R.variant) === "embedded" || ((z = t.emptyState) == null ? void 0 : z.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
2903
2940
|
};
|
|
2904
|
-
}),
|
|
2905
|
-
[`b-data-grid--${
|
|
2906
|
-
[`b-data-grid--${
|
|
2907
|
-
[`b-data-grid--${
|
|
2908
|
-
[`b-data-grid--${
|
|
2909
|
-
[`b-data-grid--${
|
|
2910
|
-
[`b-data-grid--${
|
|
2911
|
-
})),
|
|
2912
|
-
"b-data-
|
|
2913
|
-
})),
|
|
2914
|
-
|
|
2941
|
+
}), hn = O(() => ({
|
|
2942
|
+
[`b-data-grid--${Ee.OUTLINE}`]: t.outline,
|
|
2943
|
+
[`b-data-grid--${Ee.SCROLL}`]: t.fitContent || Re.value,
|
|
2944
|
+
[`b-data-grid--${Ee.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
2945
|
+
[`b-data-grid--${Ee.OVERFLOW_SHADOW_LEFT}`]: Pe.value && !B.value,
|
|
2946
|
+
[`b-data-grid--${Ee.OVERFLOW_SHADOW_RIGHT}`]: gn.value,
|
|
2947
|
+
[`b-data-grid--${Ee.NO_SPACING_TOP}`]: t.noSpacingTop
|
|
2948
|
+
})), _n = O(() => ({
|
|
2949
|
+
"b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
|
|
2950
|
+
})), Ln = O(() => we.value.findIndex((R) => R.columnSet.length)), dt = O(() => !((t.selectable || t.hasNestedContent) && B.value === 1) || Pe.value), pn = O(() => ({
|
|
2951
|
+
"b-data-grid__filters--sticky": !!t.stickyFilters || N
|
|
2952
|
+
})), En = O(() => {
|
|
2953
|
+
var R, z, le, Z, ve, me;
|
|
2915
2954
|
return {
|
|
2916
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
2917
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
2918
|
-
"b-data-grid__pagination--sticky": !!t.stickyPagination ||
|
|
2955
|
+
"b-data-grid__pagination--padding-left-unset": ((le = (z = (R = t.columns) == null ? void 0 : R[0]) == null ? void 0 : z.padding) == null ? void 0 : le.left) === !1,
|
|
2956
|
+
"b-data-grid__pagination--padding-right-unset": ((me = (ve = (Z = t.columns) == null ? void 0 : Z[t.columns.length - 1]) == null ? void 0 : ve.padding) == null ? void 0 : me.right) === !1,
|
|
2957
|
+
"b-data-grid__pagination--sticky": !!t.stickyPagination || N
|
|
2919
2958
|
};
|
|
2920
|
-
}),
|
|
2921
|
-
const
|
|
2922
|
-
|
|
2923
|
-
|
|
2959
|
+
}), bn = (R) => {
|
|
2960
|
+
const z = R;
|
|
2961
|
+
R !== null && (z != null && z.columnHeaderRefs) && Object.entries(z == null ? void 0 : z.columnHeaderRefs).forEach(([le, Z]) => {
|
|
2962
|
+
h.value[le] = Z;
|
|
2924
2963
|
});
|
|
2925
|
-
},
|
|
2926
|
-
const
|
|
2927
|
-
|
|
2928
|
-
var
|
|
2929
|
-
((
|
|
2964
|
+
}, Sn = (R, z) => {
|
|
2965
|
+
const le = R;
|
|
2966
|
+
R !== null && (le != null && le.gridcellRefs) && Object.entries(le == null ? void 0 : le.gridcellRefs).map(([Z, ve]) => {
|
|
2967
|
+
var me;
|
|
2968
|
+
((me = C.value) == null ? void 0 : me[Z]) === void 0 && (C.value = { ...C.value, [Z]: [] }), C.value[Z][z] = ve;
|
|
2930
2969
|
});
|
|
2931
|
-
},
|
|
2932
|
-
t.allowRowClicks &&
|
|
2933
|
-
},
|
|
2934
|
-
|
|
2935
|
-
},
|
|
2936
|
-
label:
|
|
2970
|
+
}, yn = (R, z) => {
|
|
2971
|
+
t.allowRowClicks && Q($.ROW_CLICK, R, z);
|
|
2972
|
+
}, wn = (R) => {
|
|
2973
|
+
J.value = R;
|
|
2974
|
+
}, On = O(() => !!t.selectableAcrossPages && !!t.pagination), In = O(() => t.hasNestedContent ? "treegrid" : "grid"), ut = Yn({
|
|
2975
|
+
label: r != null && r.header ? Xn(r)("header") : null,
|
|
2937
2976
|
defaultFallback: "data grid"
|
|
2938
|
-
}),
|
|
2939
|
-
var
|
|
2940
|
-
return ((
|
|
2941
|
-
}),
|
|
2942
|
-
|
|
2943
|
-
},
|
|
2944
|
-
|
|
2977
|
+
}), ct = O(() => {
|
|
2978
|
+
var R;
|
|
2979
|
+
return ((R = it.value) == null ? void 0 : R.length) ?? 0;
|
|
2980
|
+
}), An = O(() => t.bulkActions && ct.value > 0), Rn = (R) => Q($.COLUMN_RESIZE, R), Tn = (R) => {
|
|
2981
|
+
Q($.UPDATE_SORT_BY, R), Q($.SORT, R);
|
|
2982
|
+
}, Nn = (R, z) => {
|
|
2983
|
+
Q($.NAVIGATE, R), Q($.UPDATE_PAGINATION, {
|
|
2945
2984
|
...t.pagination,
|
|
2946
|
-
size:
|
|
2947
|
-
page:
|
|
2985
|
+
size: z,
|
|
2986
|
+
page: R
|
|
2948
2987
|
});
|
|
2949
|
-
},
|
|
2950
|
-
|
|
2951
|
-
},
|
|
2952
|
-
|
|
2953
|
-
},
|
|
2954
|
-
|
|
2988
|
+
}, $n = (R) => {
|
|
2989
|
+
Q($.ITEMS_PAGE, R);
|
|
2990
|
+
}, Dn = () => {
|
|
2991
|
+
Q($.FILTER_SEARCH_CLEAR);
|
|
2992
|
+
}, Mn = (R) => {
|
|
2993
|
+
Q($.UPDATE_FILTER_SEARCH_TERM, R), Q($.FILTER_SEARCH_INPUT, R);
|
|
2955
2994
|
};
|
|
2956
|
-
return
|
|
2995
|
+
return O(() => g.value.some((R) => R.mandatory)).value || Wt(
|
|
2957
2996
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2958
|
-
),
|
|
2959
|
-
var
|
|
2997
|
+
), ft(Jn, () => null)(t.tabTitle), o({ onEmptyStateClearResetButtonClick: mn }), (R, z) => {
|
|
2998
|
+
var le;
|
|
2960
2999
|
return u(), E("div", {
|
|
2961
|
-
class:
|
|
2962
|
-
"aria-rowcount":
|
|
2963
|
-
"aria-colcount":
|
|
2964
|
-
"aria-label":
|
|
2965
|
-
role:
|
|
3000
|
+
class: ne(["b-data-grid", hn.value]),
|
|
3001
|
+
"aria-rowcount": l(_).length,
|
|
3002
|
+
"aria-colcount": l(g).length,
|
|
3003
|
+
"aria-label": l(ut),
|
|
3004
|
+
role: In.value
|
|
2966
3005
|
}, [
|
|
2967
3006
|
e.filters ? (u(), E("div", {
|
|
2968
3007
|
key: 0,
|
|
2969
3008
|
ref_key: "filtersRef",
|
|
2970
|
-
ref:
|
|
2971
|
-
class:
|
|
2972
|
-
style:
|
|
3009
|
+
ref: y,
|
|
3010
|
+
class: ne(["b-data-grid__filters", pn.value]),
|
|
3011
|
+
style: Ie({ top: Me.value })
|
|
2973
3012
|
}, [
|
|
2974
|
-
e.filters ? (u(),
|
|
3013
|
+
e.filters ? (u(), U(We, {
|
|
2975
3014
|
key: 0,
|
|
2976
3015
|
ref_key: "filterBarRef",
|
|
2977
|
-
ref:
|
|
3016
|
+
ref: b,
|
|
2978
3017
|
config: e.filters,
|
|
2979
3018
|
"filter-values": e.filterValues,
|
|
2980
3019
|
"search-term": e.filterSearchTerm,
|
|
2981
|
-
onSearchInput:
|
|
2982
|
-
onSearchClear:
|
|
2983
|
-
onInput:
|
|
2984
|
-
"onUpdate:filterValues":
|
|
2985
|
-
}, null, 8, ["config", "filter-values", "search-term"])) :
|
|
2986
|
-
], 6)) :
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
])) :
|
|
3020
|
+
onSearchInput: Mn,
|
|
3021
|
+
onSearchClear: Dn,
|
|
3022
|
+
onInput: z[0] || (z[0] = (Z) => R.$emit(l($).UPDATE_FILTERS, Z)),
|
|
3023
|
+
"onUpdate:filterValues": z[1] || (z[1] = (Z) => R.$emit(l($).UPDATE_FILTER_VALUES, Z))
|
|
3024
|
+
}, null, 8, ["config", "filter-values", "search-term"])) : M("", !0)
|
|
3025
|
+
], 6)) : M("", !0),
|
|
3026
|
+
R.$slots.header ? (u(), E("div", Fo, [
|
|
3027
|
+
be(R.$slots, "header", {}, void 0, !0)
|
|
3028
|
+
])) : M("", !0),
|
|
2990
3029
|
p("div", {
|
|
2991
3030
|
class: "b-data-grid__column-headers",
|
|
2992
|
-
style:
|
|
3031
|
+
style: Ie({ top: ze.value })
|
|
2993
3032
|
}, [
|
|
2994
|
-
|
|
3033
|
+
l(a) ? (u(), U(l(Ks), {
|
|
2995
3034
|
key: 0,
|
|
2996
3035
|
class: "b-data-grid__config-settings",
|
|
2997
|
-
columns:
|
|
3036
|
+
columns: l(T),
|
|
2998
3037
|
condensed: e.condensed,
|
|
2999
|
-
onConfigSettings:
|
|
3000
|
-
"onUpdate:columns":
|
|
3001
|
-
}, null, 8, ["columns", "condensed", "onConfigSettings", "onUpdate:columns"])) :
|
|
3038
|
+
onConfigSettings: l(Qt),
|
|
3039
|
+
"onUpdate:columns": l(en)
|
|
3040
|
+
}, null, 8, ["columns", "condensed", "onConfigSettings", "onUpdate:columns"])) : M("", !0),
|
|
3002
3041
|
p("div", {
|
|
3003
3042
|
ref_key: "columnsRef",
|
|
3004
3043
|
ref: s,
|
|
3005
3044
|
role: "rowgroup",
|
|
3006
3045
|
class: "b-data-grid__columns-row",
|
|
3007
|
-
tabindex:
|
|
3008
|
-
onScroll:
|
|
3009
|
-
(...Z) =>
|
|
3046
|
+
tabindex: ge.value,
|
|
3047
|
+
onScroll: z[4] || (z[4] = //@ts-ignore
|
|
3048
|
+
(...Z) => l(Fe) && l(Fe)(...Z))
|
|
3010
3049
|
}, [
|
|
3011
3050
|
p("div", {
|
|
3012
|
-
style:
|
|
3051
|
+
style: Ie(l(De)),
|
|
3013
3052
|
class: "b-data-grid__columns",
|
|
3014
3053
|
role: "row"
|
|
3015
3054
|
}, [
|
|
3016
|
-
(u(!0), E(fe, null,
|
|
3017
|
-
Z != null && Z.length ? (u(),
|
|
3018
|
-
key: `data-grid-columns-${
|
|
3055
|
+
(u(!0), E(fe, null, Ce(l(we), ({ columnSet: Z, id: ve, isFrozenColumns: me }, Be) => (u(), E(fe, null, [
|
|
3056
|
+
Z != null && Z.length ? (u(), U(l(Rs), Y({
|
|
3057
|
+
key: `data-grid-columns-${ve}`,
|
|
3019
3058
|
ref_for: !0,
|
|
3020
|
-
ref: (
|
|
3059
|
+
ref: (_e) => bn(_e),
|
|
3021
3060
|
columns: Z,
|
|
3022
3061
|
"has-resizable-columns": e.hasResizableColumns,
|
|
3023
3062
|
"sort-by": e.sortBy,
|
|
3024
|
-
"all-items-selected-state":
|
|
3025
|
-
"is-frozen-columns":
|
|
3026
|
-
"show-frozen-columns-separator":
|
|
3027
|
-
"dragging-columns":
|
|
3028
|
-
"has-draggable-columns":
|
|
3029
|
-
"has-column-panel":
|
|
3030
|
-
"has-left-overflow":
|
|
3031
|
-
"has-first-column-panel-right-aligned": Be ===
|
|
3032
|
-
"hovered-over-column-state":
|
|
3033
|
-
"is-measuring-column-widths":
|
|
3034
|
-
"is-only-one-visible-column":
|
|
3035
|
-
selectable:
|
|
3036
|
-
"selectable-across-pages":
|
|
3063
|
+
"all-items-selected-state": l(rn),
|
|
3064
|
+
"is-frozen-columns": me,
|
|
3065
|
+
"show-frozen-columns-separator": dt.value,
|
|
3066
|
+
"dragging-columns": l(st),
|
|
3067
|
+
"has-draggable-columns": l(n),
|
|
3068
|
+
"has-column-panel": l(a),
|
|
3069
|
+
"has-left-overflow": l(Pe),
|
|
3070
|
+
"has-first-column-panel-right-aligned": Be === Ln.value,
|
|
3071
|
+
"hovered-over-column-state": l(lt),
|
|
3072
|
+
"is-measuring-column-widths": l(d),
|
|
3073
|
+
"is-only-one-visible-column": l(Jt),
|
|
3074
|
+
selectable: l(x),
|
|
3075
|
+
"selectable-across-pages": On.value,
|
|
3037
3076
|
"truncate-column-headers": e.truncateColumnHeaders
|
|
3038
|
-
},
|
|
3039
|
-
onColumnHover:
|
|
3040
|
-
onColumnMove:
|
|
3041
|
-
onColumnUpdate:
|
|
3042
|
-
onColumnResize:
|
|
3043
|
-
onColumnResizing:
|
|
3044
|
-
onSelectAllRows:
|
|
3045
|
-
onSelectAllAcrossPages:
|
|
3046
|
-
onSort:
|
|
3047
|
-
}),
|
|
3048
|
-
|
|
3049
|
-
name:
|
|
3050
|
-
fn:
|
|
3051
|
-
|
|
3077
|
+
}, He(l(ln)), {
|
|
3078
|
+
onColumnHover: z[2] || (z[2] = (_e) => nn.value = _e),
|
|
3079
|
+
onColumnMove: l(on),
|
|
3080
|
+
onColumnUpdate: l(tn),
|
|
3081
|
+
onColumnResize: Rn,
|
|
3082
|
+
onColumnResizing: l(Ze),
|
|
3083
|
+
onSelectAllRows: l(ot),
|
|
3084
|
+
onSelectAllAcrossPages: z[3] || (z[3] = (_e) => Q(l($).SELECT_ALL_ACROSS_PAGES)),
|
|
3085
|
+
onSort: Tn
|
|
3086
|
+
}), $e({ _: 2 }, [
|
|
3087
|
+
Ce(l(r), (_e, Te) => ({
|
|
3088
|
+
name: Te,
|
|
3089
|
+
fn: G((je) => [
|
|
3090
|
+
be(R.$slots, Te, Y({ ref_for: !0 }, je), void 0, !0)
|
|
3052
3091
|
])
|
|
3053
3092
|
}))
|
|
3054
|
-
]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "truncate-column-headers", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows"])) :
|
|
3093
|
+
]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "truncate-column-headers", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows"])) : M("", !0)
|
|
3055
3094
|
], 64))), 256))
|
|
3056
3095
|
], 4)
|
|
3057
|
-
], 40,
|
|
3096
|
+
], 40, Po)
|
|
3058
3097
|
], 4),
|
|
3059
3098
|
p("div", {
|
|
3060
3099
|
ref_key: "body",
|
|
3061
3100
|
ref: i,
|
|
3062
3101
|
"data-testid": "data-grid-body",
|
|
3063
|
-
class: "b-data-grid__body",
|
|
3064
|
-
tabindex:
|
|
3065
|
-
"aria-busy":
|
|
3102
|
+
class: ne(["b-data-grid__body", _n.value]),
|
|
3103
|
+
tabindex: l(A) ? "0" : "-1",
|
|
3104
|
+
"aria-busy": l(A),
|
|
3066
3105
|
"aria-live": "polite",
|
|
3067
|
-
onScroll:
|
|
3068
|
-
(...Z) =>
|
|
3106
|
+
onScroll: z[6] || (z[6] = //@ts-ignore
|
|
3107
|
+
(...Z) => l(Fe) && l(Fe)(...Z))
|
|
3069
3108
|
}, [
|
|
3070
|
-
|
|
3071
|
-
q(
|
|
3109
|
+
l(A) && !l(Re) ? (u(), E("div", Wo, [
|
|
3110
|
+
q(l(Bt), {
|
|
3072
3111
|
class: "b-data-grid__loading-indicator",
|
|
3073
3112
|
large: ""
|
|
3074
3113
|
}),
|
|
3075
|
-
q(
|
|
3114
|
+
q(l(Ve), {
|
|
3076
3115
|
el: "span",
|
|
3077
3116
|
variant: "caption"
|
|
3078
3117
|
}, {
|
|
3079
|
-
default:
|
|
3080
|
-
|
|
3118
|
+
default: G(() => [
|
|
3119
|
+
oe(j(l(m)("gettingYourData")), 1)
|
|
3081
3120
|
]),
|
|
3082
3121
|
_: 1
|
|
3083
3122
|
})
|
|
3084
|
-
])) : ((
|
|
3085
|
-
q(
|
|
3123
|
+
])) : ((le = l(_)) == null ? void 0 : le.length) === 0 && e.emptyState ? (u(), E("div", Go, [
|
|
3124
|
+
q(l(Kn), Wn(Gn(Cn.value)), null, 16)
|
|
3086
3125
|
])) : (u(), E("div", {
|
|
3087
3126
|
key: 2,
|
|
3088
3127
|
class: "b-data-grid__rows",
|
|
3089
3128
|
role: "rowgroup",
|
|
3090
|
-
onKeydown:
|
|
3091
|
-
(...Z) =>
|
|
3129
|
+
onKeydown: z[5] || (z[5] = //@ts-ignore
|
|
3130
|
+
(...Z) => l(at) && l(at)(...Z))
|
|
3092
3131
|
}, [
|
|
3093
|
-
(u(!0), E(fe, null,
|
|
3094
|
-
var
|
|
3095
|
-
return u(),
|
|
3096
|
-
key:
|
|
3132
|
+
(u(!0), E(fe, null, Ce(l(_), (Z, ve) => {
|
|
3133
|
+
var me, Be;
|
|
3134
|
+
return u(), U(l(Io), {
|
|
3135
|
+
key: ve,
|
|
3097
3136
|
ref_for: !0,
|
|
3098
|
-
ref: (
|
|
3099
|
-
style:
|
|
3137
|
+
ref: (_e) => Sn(_e, ve),
|
|
3138
|
+
style: Ie(l(De)),
|
|
3100
3139
|
"allow-row-clicks": e.allowRowClicks,
|
|
3101
|
-
"column-sets":
|
|
3140
|
+
"column-sets": l(we),
|
|
3102
3141
|
condensed: e.condensed,
|
|
3103
|
-
"dragging-columns":
|
|
3104
|
-
"dragging-events-for-row-cell":
|
|
3142
|
+
"dragging-columns": l(st),
|
|
3143
|
+
"dragging-events-for-row-cell": l(sn),
|
|
3105
3144
|
"get-data-item-id": e.getDataItemId,
|
|
3106
|
-
"has-nested-content":
|
|
3107
|
-
"has-left-overflow":
|
|
3145
|
+
"has-nested-content": l(F),
|
|
3146
|
+
"has-left-overflow": l(Pe),
|
|
3108
3147
|
"highlighted-rows": e.highlightedRows,
|
|
3109
|
-
"hovered-row-index":
|
|
3110
|
-
"hovered-over-column-state":
|
|
3148
|
+
"hovered-row-index": J.value,
|
|
3149
|
+
"hovered-over-column-state": l(lt),
|
|
3111
3150
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
3112
|
-
"is-row-last-child":
|
|
3113
|
-
"is-measuring-column-widths":
|
|
3151
|
+
"is-row-last-child": ve + 1 === ((me = l(_)) == null ? void 0 : me.length),
|
|
3152
|
+
"is-measuring-column-widths": l(d),
|
|
3114
3153
|
"row-data": Z,
|
|
3115
|
-
"row-index":
|
|
3116
|
-
"row-set-size": (Be =
|
|
3117
|
-
"show-frozen-columns-separator":
|
|
3154
|
+
"row-index": ve,
|
|
3155
|
+
"row-set-size": (Be = l(_)) == null ? void 0 : Be.length,
|
|
3156
|
+
"show-frozen-columns-separator": dt.value,
|
|
3118
3157
|
"should-show-nested-content": e.shouldShowNestedContent,
|
|
3119
|
-
selectable:
|
|
3120
|
-
"selected-items":
|
|
3121
|
-
onCellHovered:
|
|
3122
|
-
onRowClick:
|
|
3123
|
-
onOnFrozenColumnsKeyPress:
|
|
3124
|
-
onSelectRow:
|
|
3125
|
-
},
|
|
3126
|
-
|
|
3127
|
-
name:
|
|
3128
|
-
fn:
|
|
3129
|
-
|
|
3158
|
+
selectable: l(x),
|
|
3159
|
+
"selected-items": l(it),
|
|
3160
|
+
onCellHovered: wn,
|
|
3161
|
+
onRowClick: yn,
|
|
3162
|
+
onOnFrozenColumnsKeyPress: l(fn),
|
|
3163
|
+
onSelectRow: l(an)
|
|
3164
|
+
}, $e({ _: 2 }, [
|
|
3165
|
+
Ce(l(r), (_e, Te) => ({
|
|
3166
|
+
name: Te,
|
|
3167
|
+
fn: G((je) => [
|
|
3168
|
+
be(R.$slots, Te, Y({ ref_for: !0 }, je), void 0, !0)
|
|
3130
3169
|
])
|
|
3131
3170
|
}))
|
|
3132
3171
|
]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-left-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-last-child", "is-measuring-column-widths", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow"]);
|
|
3133
3172
|
}), 128))
|
|
3134
3173
|
], 32))
|
|
3135
|
-
],
|
|
3136
|
-
|
|
3174
|
+
], 42, Bo),
|
|
3175
|
+
l(Re) ? (u(), U(l(to), {
|
|
3137
3176
|
key: 2,
|
|
3138
|
-
loading:
|
|
3139
|
-
"is-infinite-scroll":
|
|
3140
|
-
"onUpdate:showMore":
|
|
3141
|
-
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) :
|
|
3142
|
-
e.
|
|
3177
|
+
loading: l(A),
|
|
3178
|
+
"is-infinite-scroll": l(dn),
|
|
3179
|
+
"onUpdate:showMore": l(cn)
|
|
3180
|
+
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : M("", !0),
|
|
3181
|
+
e.stickyHorizontalScrollbar ? (u(), E("div", {
|
|
3143
3182
|
key: 3,
|
|
3183
|
+
ref_key: "virtualHorizontalScrollbarRef",
|
|
3184
|
+
ref: S,
|
|
3185
|
+
class: ne(["b-data-grid__horizontal-scrollbar", l(vn)]),
|
|
3186
|
+
"aria-hidden": "true",
|
|
3187
|
+
"data-testid": "sticky-horizontal-scrollbar",
|
|
3188
|
+
onScroll: z[7] || (z[7] = //@ts-ignore
|
|
3189
|
+
(...Z) => l(rt) && l(rt)(...Z))
|
|
3190
|
+
}, [
|
|
3191
|
+
p("div", {
|
|
3192
|
+
style: Ie({ width: `${l(re)}px`, height: "15px" })
|
|
3193
|
+
}, null, 4)
|
|
3194
|
+
], 34)) : M("", !0),
|
|
3195
|
+
l(H) && !l(Re) ? (u(), E("div", {
|
|
3196
|
+
key: 4,
|
|
3144
3197
|
"data-testid": "pagination-container",
|
|
3145
|
-
class:
|
|
3198
|
+
class: ne(["b-data-grid__pagination", En.value])
|
|
3146
3199
|
}, [
|
|
3147
|
-
q(
|
|
3148
|
-
"aria-label": `${
|
|
3149
|
-
onNavigate:
|
|
3150
|
-
onItemsPage:
|
|
3200
|
+
q(l(qn), Y(l(H), {
|
|
3201
|
+
"aria-label": `${l(ut)} navigation`,
|
|
3202
|
+
onNavigate: Nn,
|
|
3203
|
+
onItemsPage: $n
|
|
3151
3204
|
}), null, 16, ["aria-label"])
|
|
3152
|
-
], 2)) :
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
])) :
|
|
3156
|
-
|
|
3157
|
-
key:
|
|
3205
|
+
], 2)) : M("", !0),
|
|
3206
|
+
R.$slots.footer ? (u(), E("div", Ho, [
|
|
3207
|
+
be(R.$slots, "footer", {}, void 0, !0)
|
|
3208
|
+
])) : M("", !0),
|
|
3209
|
+
An.value ? (u(), U(l(jn), {
|
|
3210
|
+
key: 6,
|
|
3158
3211
|
actions: e.bulkActions,
|
|
3159
|
-
"item-counter":
|
|
3160
|
-
"extra-bottom-spacing":
|
|
3161
|
-
onClose:
|
|
3162
|
-
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing"])) :
|
|
3163
|
-
], 10,
|
|
3212
|
+
"item-counter": ct.value,
|
|
3213
|
+
"extra-bottom-spacing": l(L),
|
|
3214
|
+
onClose: z[8] || (z[8] = (Z) => l(ot)(!1))
|
|
3215
|
+
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing"])) : M("", !0)
|
|
3216
|
+
], 10, Uo);
|
|
3164
3217
|
};
|
|
3165
3218
|
}
|
|
3166
|
-
}),
|
|
3219
|
+
}), Mi = /* @__PURE__ */ X(xo, [["__scopeId", "data-v-ab5fef4d"]]);
|
|
3167
3220
|
export {
|
|
3168
3221
|
Ye as B,
|
|
3169
|
-
|
|
3170
|
-
|
|
3222
|
+
Di as a,
|
|
3223
|
+
Ee as b,
|
|
3171
3224
|
Se as c,
|
|
3172
|
-
|
|
3225
|
+
Mi as d,
|
|
3173
3226
|
$ as e,
|
|
3174
|
-
|
|
3227
|
+
Ge as f
|
|
3175
3228
|
};
|
|
3176
|
-
//# sourceMappingURL=data-grid.
|
|
3229
|
+
//# sourceMappingURL=data-grid.BC2tOBxm.js.map
|