@adyen/bento-vue3 1.57.0 → 1.58.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 +2 -0
- package/dist/@types/index.d.ts +191 -52
- 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/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BOCrfaHz.js → action-bar.C3YC7Cvq.js} +4 -4
- package/dist/chunks/{action-bar.BOCrfaHz.js.map → action-bar.C3YC7Cvq.js.map} +1 -1
- package/dist/chunks/{base-modal.DhzWPnD5.js → base-modal.C9t8wOxU.js} +2 -2
- package/dist/chunks/{base-modal.DhzWPnD5.js.map → base-modal.C9t8wOxU.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CkyIwzNi.js → button-actions-with-menu.DVvlTcnv.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.CkyIwzNi.js.map → button-actions-with-menu.DVvlTcnv.js.map} +1 -1
- package/dist/chunks/{button-actions.DWGBFisz.js → button-actions.WnxN4KnV.js} +2 -2
- package/dist/chunks/{button-actions.DWGBFisz.js.map → button-actions.WnxN4KnV.js.map} +1 -1
- package/dist/chunks/calendar.DzwpAB0z.js +1288 -0
- package/dist/chunks/calendar.DzwpAB0z.js.map +1 -0
- package/dist/chunks/{card.DguoAMcm.js → card.PFtc1o__.js} +2 -2
- package/dist/chunks/{card.DguoAMcm.js.map → card.PFtc1o__.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CZ-J707C.js → checkbox-group.tAmTjBdy.js} +4 -4
- package/dist/chunks/{checkbox-group.CZ-J707C.js.map → checkbox-group.tAmTjBdy.js.map} +1 -1
- package/dist/chunks/{checkbox.CMuObeL7.js → checkbox.H3fMdGno.js} +17 -17
- package/dist/chunks/{checkbox.CMuObeL7.js.map → checkbox.H3fMdGno.js.map} +1 -1
- package/dist/chunks/{code-snippet.WgKhySvn.js → code-snippet.EAwTnNST.js} +5 -5
- package/dist/chunks/{code-snippet.WgKhySvn.js.map → code-snippet.EAwTnNST.js.map} +1 -1
- package/dist/chunks/{controls-group.DsGEDyTw.js → controls-group.CQZTslGW.js} +2 -2
- package/dist/chunks/{controls-group.DsGEDyTw.js.map → controls-group.CQZTslGW.js.map} +1 -1
- package/dist/chunks/{copy.QuF9bDfT.js → copy.Ce8Mdpir.js} +2 -2
- package/dist/chunks/{copy.QuF9bDfT.js.map → copy.Ce8Mdpir.js.map} +1 -1
- package/dist/chunks/{dashboard-section.fZiEAres.js → dashboard-section.D5fPiyCI.js} +2 -2
- package/dist/chunks/{dashboard-section.fZiEAres.js.map → dashboard-section.D5fPiyCI.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BZ_oZeHs.js → dashed-underline.CMScTPOb.js} +3 -3
- package/dist/chunks/{dashed-underline.BZ_oZeHs.js.map → dashed-underline.CMScTPOb.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Cw-0-al0.js → data-grid-template.Qig0zkMz.js} +2 -2
- package/dist/chunks/{data-grid-template.Cw-0-al0.js.map → data-grid-template.Qig0zkMz.js.map} +1 -1
- package/dist/chunks/data-grid.C98jzhfU.js +3611 -0
- package/dist/chunks/data-grid.C98jzhfU.js.map +1 -0
- package/dist/chunks/{date-picker.CWGFy7Hb.js → date-picker.Bmkc0eYL.js} +17 -17
- package/dist/chunks/{date-picker.CWGFy7Hb.js.map → date-picker.Bmkc0eYL.js.map} +1 -1
- package/dist/chunks/date-range-picker.D-_e1W8W.js +1171 -0
- package/dist/chunks/date-range-picker.D-_e1W8W.js.map +1 -0
- package/dist/chunks/{dropdown-tag.DCat3Pd2.js → dropdown-tag.9Uuos_mS.js} +3 -3
- package/dist/chunks/{dropdown-tag.DCat3Pd2.js.map → dropdown-tag.9Uuos_mS.js.map} +1 -1
- package/dist/chunks/{dropdown.D4lL2ytb.js → dropdown.CnMnzXc2.js} +29 -29
- package/dist/chunks/{dropdown.D4lL2ytb.js.map → dropdown.CnMnzXc2.js.map} +1 -1
- package/dist/chunks/{error-message.CjdvgIAh.js → error-message.KTNWtFyf.js} +2 -2
- package/dist/chunks/{error-message.CjdvgIAh.js.map → error-message.KTNWtFyf.js.map} +1 -1
- package/dist/chunks/{es6.BtaxuP0b.js → es6.BA9GH7QZ.js} +2 -2
- package/dist/chunks/{es6.BtaxuP0b.js.map → es6.BA9GH7QZ.js.map} +1 -1
- package/dist/chunks/{file-uploader.faOTOytJ.js → file-uploader.DzGfFhY9.js} +3 -3
- package/dist/chunks/{file-uploader.faOTOytJ.js.map → file-uploader.DzGfFhY9.js.map} +1 -1
- package/dist/chunks/{filter-bar.BbLKMSsn.js → filter-bar.CY2ZlyD4.js} +1015 -959
- package/dist/chunks/filter-bar.CY2ZlyD4.js.map +1 -0
- package/dist/chunks/{footer-actions.CQARYj4Q.js → footer-actions.DqKdjjjh.js} +2 -2
- package/dist/chunks/{footer-actions.CQARYj4Q.js.map → footer-actions.DqKdjjjh.js.map} +1 -1
- package/dist/chunks/{header-with-views.WANsHlGK.js → header-with-views.B-d7Y1qK.js} +10 -10
- package/dist/chunks/{header-with-views.WANsHlGK.js.map → header-with-views.B-d7Y1qK.js.map} +1 -1
- package/dist/chunks/{header.DAuIurUM.js → header.Nh7Jph4R.js} +4 -4
- package/dist/chunks/{header.DAuIurUM.js.map → header.Nh7Jph4R.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.J10ERGQ2.js → info-icon-with-popover.CZGbqWFt.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.J10ERGQ2.js.map → info-icon-with-popover.CZGbqWFt.js.map} +1 -1
- package/dist/chunks/{info-icon.71yYfuEc.js → info-icon.DOH8zIvI.js} +2 -2
- package/dist/chunks/{info-icon.71yYfuEc.js.map → info-icon.DOH8zIvI.js.map} +1 -1
- package/dist/chunks/input-field-password.B5uy0EiK.js +366 -0
- package/dist/chunks/input-field-password.B5uy0EiK.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DPNOepAt.js → input-field-phone-number.Ck6XS73k.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DPNOepAt.js.map → input-field-phone-number.Ck6XS73k.js.map} +1 -1
- package/dist/chunks/{input-field.CtV60WoD.js → input-field.CUfSQLYO.js} +3 -3
- package/dist/chunks/{input-field.CtV60WoD.js.map → input-field.CUfSQLYO.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DsnH9Q9j.js → listbox-option-tag.v1qrgVav.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DsnH9Q9j.js.map → listbox-option-tag.v1qrgVav.js.map} +1 -1
- package/dist/chunks/{menu.BOj630ue.js → menu.BmSWTWp2.js} +2 -2
- package/dist/chunks/{menu.BOj630ue.js.map → menu.BmSWTWp2.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.D1hncuS7.js → modal-fullscreen.B73FGuMI.js} +2 -2
- package/dist/chunks/{modal-fullscreen.D1hncuS7.js.map → modal-fullscreen.B73FGuMI.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.y7pMBxB0.js → modal.vue_vue_type_script_setup_true_lang.hMWefloS.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.y7pMBxB0.js.map → modal.vue_vue_type_script_setup_true_lang.hMWefloS.js.map} +1 -1
- package/dist/chunks/pagination.BfA6pOGB.js +461 -0
- package/dist/chunks/pagination.BfA6pOGB.js.map +1 -0
- package/dist/chunks/{popover.BzzdIK19.js → popover.DiIZe9RM.js} +2 -2
- package/dist/chunks/{popover.BzzdIK19.js.map → popover.DiIZe9RM.js.map} +1 -1
- package/dist/chunks/{radio-group.seLW9WC9.js → radio-group.DG_SxGuf.js} +4 -4
- package/dist/chunks/{radio-group.seLW9WC9.js.map → radio-group.DG_SxGuf.js.map} +1 -1
- package/dist/chunks/rich-text-editor.zXIxJKs8.js +6221 -0
- package/dist/chunks/rich-text-editor.zXIxJKs8.js.map +1 -0
- package/dist/chunks/{search-bar.DgDUdcot.js → search-bar.BUG88A0q.js} +3 -3
- package/dist/chunks/{search-bar.DgDUdcot.js.map → search-bar.BUG88A0q.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C3TEPrCq.js → secondary-nav.igRQouwn.js} +3 -3
- package/dist/chunks/{secondary-nav.C3TEPrCq.js.map → secondary-nav.igRQouwn.js.map} +1 -1
- package/dist/chunks/{segmented-control.B2cS73wG.js → segmented-control.ClJS7gzl.js} +2 -2
- package/dist/chunks/{segmented-control.B2cS73wG.js.map → segmented-control.ClJS7gzl.js.map} +1 -1
- package/dist/chunks/{selection-card-group.gd66OMqI.js → selection-card-group.CdRPwD-M.js} +12 -12
- package/dist/chunks/{selection-card-group.gd66OMqI.js.map → selection-card-group.CdRPwD-M.js.map} +1 -1
- package/dist/chunks/{sidepanel.9wJbIvIS.js → sidepanel.C4z6LXMz.js} +2 -2
- package/dist/chunks/{sidepanel.9wJbIvIS.js.map → sidepanel.C4z6LXMz.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CzzWSj5s.js → structured-list-item.BDps9Y9e.js} +4 -4
- package/dist/chunks/{structured-list-item.CzzWSj5s.js.map → structured-list-item.BDps9Y9e.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.IZdK-Mvh.js → summary-grid.types.DMCKjGMN.js} +5 -5
- package/dist/chunks/{summary-grid.types.IZdK-Mvh.js.map → summary-grid.types.DMCKjGMN.js.map} +1 -1
- package/dist/chunks/{tag.iiCQSgG9.js → tag.uRkpY4u1.js} +2 -2
- package/dist/chunks/{tag.iiCQSgG9.js.map → tag.uRkpY4u1.js.map} +1 -1
- package/dist/chunks/{textarea.DY0kNx0r.js → textarea.Dzy0cs2N.js} +2 -2
- package/dist/chunks/{textarea.DY0kNx0r.js.map → textarea.Dzy0cs2N.js.map} +1 -1
- package/dist/chunks/{timeline-item.dleRa6Yu.js → timeline-item.CuSRjcnT.js} +5 -5
- package/dist/chunks/{timeline-item.dleRa6Yu.js.map → timeline-item.CuSRjcnT.js.map} +1 -1
- package/dist/chunks/{tooltip.Di6i0aTd.js → tooltip.CFgesodr.js} +71 -71
- package/dist/chunks/{tooltip.Di6i0aTd.js.map → tooltip.CFgesodr.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.A0Wcwr8f.js → tutorial.vue_vue_type_script_setup_true_lang.s21s5Oso.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.A0Wcwr8f.js.map → tutorial.vue_vue_type_script_setup_true_lang.s21s5Oso.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BgoZ5uGq.js → use-cached-selected-values.CE98s5Ai.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.BgoZ5uGq.js.map → use-cached-selected-values.CE98s5Ai.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +156 -154
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +10 -10
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +2 -6218
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +15 -15
- package/dist/styles/bento-light.css +95 -95
- package/dist/styles/bento.css +95 -95
- package/dist/styles/legacy.css +96 -96
- package/dist/styles/styleguide.css +96 -96
- package/dist/styles/utility.css +64 -64
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/chunks/calendar.D61aBwg1.js +0 -1249
- package/dist/chunks/calendar.D61aBwg1.js.map +0 -1
- package/dist/chunks/data-grid.BVcmZ1X_.js +0 -3519
- package/dist/chunks/data-grid.BVcmZ1X_.js.map +0 -1
- package/dist/chunks/date-range-picker.RzinIKLS.js +0 -1110
- package/dist/chunks/date-range-picker.RzinIKLS.js.map +0 -1
- package/dist/chunks/filter-bar.BbLKMSsn.js.map +0 -1
- package/dist/chunks/input-field-password.Bv_0ulNg.js +0 -348
- package/dist/chunks/input-field-password.Bv_0ulNg.js.map +0 -1
- package/dist/chunks/pagination.fwhC8tEq.js +0 -445
- package/dist/chunks/pagination.fwhC8tEq.js.map +0 -1
|
@@ -1,3519 +0,0 @@
|
|
|
1
|
-
import { ref as p, onMounted as nt, nextTick as Ce, watch as we, onUnmounted as Gt, reactive as lt, toRefs as ot, computed as L, watchEffect as Vn, onBeforeUpdate as xn, createElementBlock as R, openBlock as f, mergeProps as oe, createCommentVNode as k, createElementVNode as A, toDisplayString as X, defineComponent as Oe, normalizeClass as ce, Fragment as _e, renderList as Le, unref as o, toHandlers as xe, createVNode as Y, createBlock as B, withCtx as V, renderSlot as pe, withModifiers as Zn, resolveComponent as Ee, withDirectives as st, createTextVNode as ve, vShow as jn, toRef as Xe, resolveDirective as qn, Transition as Ht, createSlots as ze, resolveDynamicComponent as Be, useSlots as it, provide as Vt, inject as Je, normalizeStyle as Me, normalizeProps as Kn, guardReactiveProps as Yn } from "vue";
|
|
2
|
-
import { C as Xn } from "./checkmark-circle-fill.jicbqe7k.js";
|
|
3
|
-
import { W as Jn } from "./warning-filled.DmHh0nYG.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { _ as de } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { C as xt } from "./cross.CbLEjiVy.js";
|
|
7
|
-
import { N as St } from "./checkbox-input.DVayucaL.js";
|
|
8
|
-
import { l as Et } from "./events.FNmSWp_P.js";
|
|
9
|
-
import { K as Ae, B as Qn } from "./tooltip.Di6i0aTd.js";
|
|
10
|
-
import { c as el } from "./popper-container.types.BCZMbVFD.js";
|
|
11
|
-
import { B as tl } from "./action-bar.BOCrfaHz.js";
|
|
12
|
-
import { B as nl } from "./pagination.fwhC8tEq.js";
|
|
13
|
-
import { B as at } from "./loading-indicator.DEepb9Wl.js";
|
|
14
|
-
import { B as Ze, p as Zt } from "./typography.DN5eC5ch.js";
|
|
15
|
-
import { u as rt } from "./use-has-slot.B7eQSabc.js";
|
|
16
|
-
import { u as ll } from "./aria-label.CaUURpnB.js";
|
|
17
|
-
import { g as ol } from "./get-slot-text.DQlZEsId.js";
|
|
18
|
-
import { u as $e } from "./i18n.B6g5VX0q.js";
|
|
19
|
-
import { B as Ye } from "./filter-bar.BbLKMSsn.js";
|
|
20
|
-
import { B as sl } from "./empty-state.BGWjUH6G.js";
|
|
21
|
-
import { E as il } from "./tabs.keys.Bc2pSKRw.js";
|
|
22
|
-
import { D as al } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
23
|
-
import { o as dt } from "./resize.Bqks3WUm.js";
|
|
24
|
-
import { a as Lt, B as rl } from "./popover.BzzdIK19.js";
|
|
25
|
-
import { B as jt } from "./button.CVZJTZv0.js";
|
|
26
|
-
import { B as qt } from "./toggle.hoD_i2Ey.js";
|
|
27
|
-
import { B as dl } from "./search-bar.DgDUdcot.js";
|
|
28
|
-
import { u as ul } from "./dropdown.D4lL2ytb.js";
|
|
29
|
-
import { B as cl } from "./directive.Cbdox5VL.js";
|
|
30
|
-
import { g as Qe } from "./generate-uid.NJ8tVoha.js";
|
|
31
|
-
import { S as fl } from "./search.CW_aTqip.js";
|
|
32
|
-
import { B as ut } from "./toggle-button.Dv1t15yj.js";
|
|
33
|
-
import { B as Kt } from "./checkbox.CMuObeL7.js";
|
|
34
|
-
import { B as gl } from "./info-icon.71yYfuEc.js";
|
|
35
|
-
import { B as et, O as vl, D as ml } from "./menu.BOj630ue.js";
|
|
36
|
-
import { A as hl } from "./dialog-page.C72BX6So.js";
|
|
37
|
-
import { H as Cl, S as _l } from "./show.ByWWaogc.js";
|
|
38
|
-
import { u as wl } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
39
|
-
import { E as bt } from "./link.CTH1xj0i.js";
|
|
40
|
-
import { C as yl } from "./copy.QuF9bDfT.js";
|
|
41
|
-
import { C as Sl, a as El } from "./chevron-up.-0oLlHmh.js";
|
|
42
|
-
import { d as Rt, e as pt } from "./button-actions.DWGBFisz.js";
|
|
43
|
-
import "../assets/data-grid.css";
|
|
44
|
-
const Ot = (e) => {
|
|
45
|
-
if (!e)
|
|
46
|
-
return 0;
|
|
47
|
-
const s = window.getComputedStyle(e);
|
|
48
|
-
let m = e.offsetHeight;
|
|
49
|
-
const n = window.getComputedStyle(e, "::after");
|
|
50
|
-
if (n.content !== "none" && n.position === "absolute") {
|
|
51
|
-
const t = parseFloat(n.height), l = parseFloat(n.bottom);
|
|
52
|
-
!isNaN(t) && !isNaN(l) && l < 0 && l + t <= 0 && (m += t);
|
|
53
|
-
}
|
|
54
|
-
const r = parseFloat(s.top);
|
|
55
|
-
return !isNaN(r) && r < 0 && (m += r), m;
|
|
56
|
-
}, At = (e, s, m = p(!1), n = null) => {
|
|
57
|
-
const r = p(0);
|
|
58
|
-
let t = null, l = null;
|
|
59
|
-
const E = () => {
|
|
60
|
-
const _ = s.value ? Ot(e.value) : 0, b = m.value && n ? Ot(n.value) : 0;
|
|
61
|
-
r.value = _ + b;
|
|
62
|
-
};
|
|
63
|
-
return nt(() => {
|
|
64
|
-
Ce(() => {
|
|
65
|
-
const _ = we(
|
|
66
|
-
e,
|
|
67
|
-
() => {
|
|
68
|
-
e != null && e.value && (Ce(() => _()), t = dt(e.value, E), l = new MutationObserver(E), l.observe(e.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
69
|
-
},
|
|
70
|
-
{ immediate: !0 }
|
|
71
|
-
);
|
|
72
|
-
we(
|
|
73
|
-
[s, m],
|
|
74
|
-
() => {
|
|
75
|
-
E();
|
|
76
|
-
},
|
|
77
|
-
{ immediate: !0 }
|
|
78
|
-
);
|
|
79
|
-
});
|
|
80
|
-
}), Gt(() => {
|
|
81
|
-
t == null || t.disconnect(), l == null || l.disconnect();
|
|
82
|
-
}), r;
|
|
83
|
-
};
|
|
84
|
-
var tt = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(tt || {}), Te = /* @__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))(Te || {}), Ie = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(Ie || {}), $ = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_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))($ || {}), Ve = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(Ve || {}), ie = /* @__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))(ie || {});
|
|
85
|
-
const Ll = (e, s) => {
|
|
86
|
-
const m = p(null), n = p(!1), r = p(void 0), t = e.value.reduce((S, y) => (S[y.field] = null, S), {}), l = lt(t), E = ot(l);
|
|
87
|
-
let _ = 0, b = "";
|
|
88
|
-
const O = L(
|
|
89
|
-
() => Object.fromEntries(e.value.map(({ field: S, width: y, minWidth: d }) => [S, { width: y, minWidth: d }]))
|
|
90
|
-
);
|
|
91
|
-
Vn(() => r.value = O.value);
|
|
92
|
-
let g = null, D = null;
|
|
93
|
-
const a = (S) => {
|
|
94
|
-
const y = S.clientX - _, d = b, w = r.value[d].width + y;
|
|
95
|
-
r.value[d].width = w > O.value[d].minWidth ? w : O.value[d].minWidth, s(ie.COLUMN_RESIZING, r.value), _ = S.clientX;
|
|
96
|
-
}, i = () => {
|
|
97
|
-
n.value = !1, g == null || g(), D == null || D(), b && s(ie.COLUMN_RESIZE, {
|
|
98
|
-
field: b,
|
|
99
|
-
width: r.value[b].width
|
|
100
|
-
}), g = null, D = null, b = "", _ = null;
|
|
101
|
-
}, h = (S, y, d) => {
|
|
102
|
-
if (d.preventDefault(), S) {
|
|
103
|
-
if (n.value = !0, d.buttons !== 1) {
|
|
104
|
-
i();
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
b = y, _ = d.clientX, g = Et(window, "mousemove", a), D = Et(window, "mouseup", i);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
return we(
|
|
111
|
-
() => n.value,
|
|
112
|
-
(S, y) => {
|
|
113
|
-
!S && y && (s(ie.COLUMN_HOVER, m.value), m.value = null);
|
|
114
|
-
}
|
|
115
|
-
), {
|
|
116
|
-
resizeData: r,
|
|
117
|
-
allColumnRefs: E,
|
|
118
|
-
startResize: h,
|
|
119
|
-
isResizing: n,
|
|
120
|
-
columnHoverEventToEmitAfterResizing: m
|
|
121
|
-
};
|
|
122
|
-
}, bl = 100, Nt = 50, he = "b-actions-column", Rl = 32, pl = 56, Ol = 56, Al = 80, Nl = 36, Tl = 1, Yt = 16, Il = 20, $l = (e, s, m) => {
|
|
123
|
-
const n = {}, r = [], t = (E) => {
|
|
124
|
-
const _ = n[E];
|
|
125
|
-
_ && _.frozen !== !0 && (n[E].frozen = !0, r.push(E));
|
|
126
|
-
};
|
|
127
|
-
function l() {
|
|
128
|
-
if (r.length === m.length)
|
|
129
|
-
return;
|
|
130
|
-
const E = { min: {} };
|
|
131
|
-
let _ = e, b = s, O = 0;
|
|
132
|
-
r.forEach((g) => {
|
|
133
|
-
_ -= n[g].computedWidth, b -= n[g].flex;
|
|
134
|
-
});
|
|
135
|
-
for (let g = 0, D = m.length; g < D; g += 1) {
|
|
136
|
-
const a = m[g];
|
|
137
|
-
if (n[a.field] && n[a.field].frozen === !0)
|
|
138
|
-
continue;
|
|
139
|
-
let h = _ / b * a.flex;
|
|
140
|
-
h < a.minWidth && (O += a.minWidth - h, h = a.minWidth, E.min[a.field] = !0), n[a.field] = {
|
|
141
|
-
frozen: !1,
|
|
142
|
-
computedWidth: h,
|
|
143
|
-
flex: a.flex
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
O > 0 ? Object.keys(E.min).forEach((g) => {
|
|
147
|
-
t(g);
|
|
148
|
-
}) : m.forEach(({ field: g }) => {
|
|
149
|
-
t(g);
|
|
150
|
-
}), l();
|
|
151
|
-
}
|
|
152
|
-
return l(), n;
|
|
153
|
-
}, Tt = (e, s) => {
|
|
154
|
-
let m = Tl;
|
|
155
|
-
return s && (m += Yt * 2), e != null && e.offsetWidth ? e.offsetWidth + m : 0;
|
|
156
|
-
}, Dl = (e) => {
|
|
157
|
-
var s, m, n, r, t;
|
|
158
|
-
return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (m = e == null ? void 0 : e.hasNestedRows) != null && m.value ? (n = e == null ? void 0 : e.hasSelectableColumn) != null && n.value ? (r = e == null ? void 0 : e.hasSelectableAcrossPages) != null && r.value ? Al : Ol : Nl : (t = e == null ? void 0 : e.hasSelectableAcrossPages) != null && t.value ? pl : Rl;
|
|
159
|
-
}, kl = (e, s, m, n, r, t) => {
|
|
160
|
-
const l = p(e.value), E = p(s), _ = p(m), b = p(n), O = p(r), g = p(!1), D = p(0);
|
|
161
|
-
we(
|
|
162
|
-
() => e.value,
|
|
163
|
-
(N, U) => {
|
|
164
|
-
var te, C;
|
|
165
|
-
const ee = (N == null ? void 0 : N.map(({ field: x }) => x).toString()) === (U == null ? void 0 : U.map(({ field: x }) => x).toString());
|
|
166
|
-
if (!((te = t == null ? void 0 : t.allowColumnDragAndDrop) != null && te.value) || !ee) {
|
|
167
|
-
l.value = e.value;
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
l.value = ((C = l.value) == null ? void 0 : C.length) === 0 ? e.value : e.value.sort((x, F) => {
|
|
171
|
-
const P = l.value.findIndex((ne) => ne.field === x.field), ue = l.value.findIndex((ne) => ne.field === F.field);
|
|
172
|
-
return P === -1 ? 1 : ue === -1 ? -1 : P - ue;
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
const a = p();
|
|
177
|
-
let i = null;
|
|
178
|
-
const h = L(() => {
|
|
179
|
-
var P, ue, ne;
|
|
180
|
-
const N = [];
|
|
181
|
-
let U = 0, ee = 0;
|
|
182
|
-
const te = {};
|
|
183
|
-
let C = l.value.filter((J) => J.visible !== !1);
|
|
184
|
-
const x = l.value.filter((J) => J.visible === !1);
|
|
185
|
-
if ((P = t == null ? void 0 : t.hasSelectableColumn) != null && P.value || (ue = t == null ? void 0 : t.hasNestedContent) != null && ue.value || (ne = t == null ? void 0 : t.hasNestedRows) != null && ne.value) {
|
|
186
|
-
const J = Dl(t);
|
|
187
|
-
C = [
|
|
188
|
-
{
|
|
189
|
-
field: he,
|
|
190
|
-
label: "",
|
|
191
|
-
minWidth: J,
|
|
192
|
-
width: J,
|
|
193
|
-
frozen: !0,
|
|
194
|
-
padding: { left: !1, right: !1 }
|
|
195
|
-
},
|
|
196
|
-
...C
|
|
197
|
-
];
|
|
198
|
-
}
|
|
199
|
-
C.forEach((J) => {
|
|
200
|
-
const Z = { ...J };
|
|
201
|
-
let Re;
|
|
202
|
-
Z.flex && Z.flex > 0 ? (U += Z.flex, Re = 0, N.push(Z)) : Re = Math.max(
|
|
203
|
-
(Z == null ? void 0 : Z.width) ?? bl,
|
|
204
|
-
(Z == null ? void 0 : Z.minWidth) ?? Nt
|
|
205
|
-
), ee += Re, Z.width = Re, Z.minWidth = (Z == null ? void 0 : Z.minWidth) ?? Nt, te[Z.field] = Z;
|
|
206
|
-
});
|
|
207
|
-
const F = Math.max(a.value - ee, 0);
|
|
208
|
-
if (U > 0 && a.value > 0) {
|
|
209
|
-
const J = $l(F, U, N);
|
|
210
|
-
Object.keys(J).forEach((Z) => {
|
|
211
|
-
te[Z].width = J[Z].computedWidth;
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
return x.forEach((J) => {
|
|
215
|
-
const Z = { ...J };
|
|
216
|
-
te[Z.field] = Z;
|
|
217
|
-
}), Object.values(te);
|
|
218
|
-
}), S = p(void 0), y = (N) => {
|
|
219
|
-
S.value = { ...S.value, ...N };
|
|
220
|
-
}, d = async () => {
|
|
221
|
-
l.value.some((N) => N == null ? void 0 : N.autoWidth) && (g.value = !0, await Ce(), await Ce(), l == null || l.value.filter((N) => N == null ? void 0 : N.autoWidth).forEach(({ field: N, minWidth: U }) => {
|
|
222
|
-
var x, F, P, ue;
|
|
223
|
-
const ee = Tt(
|
|
224
|
-
(x = b.value) == null ? void 0 : x[N],
|
|
225
|
-
(F = t == null ? void 0 : t.hasColumnPanel) == null ? void 0 : F.value
|
|
226
|
-
), te = (ue = (P = O.value) == null ? void 0 : P[N]) == null ? void 0 : ue.reduce(
|
|
227
|
-
(ne, J) => Math.max(ne, Tt(J)),
|
|
228
|
-
0
|
|
229
|
-
), C = Math.max(ee, te ?? 0);
|
|
230
|
-
(U === void 0 || C > U) && y({
|
|
231
|
-
[N]: {
|
|
232
|
-
width: C
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}), g.value = !1);
|
|
236
|
-
};
|
|
237
|
-
we([() => l.value, () => E.value], async () => {
|
|
238
|
-
l.value.some((N) => N == null ? void 0 : N.autoWidth) && await d();
|
|
239
|
-
});
|
|
240
|
-
const w = L(
|
|
241
|
-
() => h.value.map((N) => {
|
|
242
|
-
var U, ee;
|
|
243
|
-
return {
|
|
244
|
-
...N,
|
|
245
|
-
// Override column width with resized ones
|
|
246
|
-
width: ((ee = (U = S.value) == null ? void 0 : U[N.field]) == null ? void 0 : ee.width) ?? N.width
|
|
247
|
-
};
|
|
248
|
-
})
|
|
249
|
-
), v = L(
|
|
250
|
-
() => {
|
|
251
|
-
var N;
|
|
252
|
-
return ((N = w.value) == null ? void 0 : N.filter(({ visible: U }) => U !== !1).reduce((U, ee) => ee.width + U, 0)) + D.value;
|
|
253
|
-
}
|
|
254
|
-
), q = L(
|
|
255
|
-
() => a.value <= v.value
|
|
256
|
-
), G = L(() => ({
|
|
257
|
-
width: a.value > v.value ? "100%" : "fit-content"
|
|
258
|
-
})), M = L(() => ({
|
|
259
|
-
...G.value,
|
|
260
|
-
paddingRight: `${D.value}px`
|
|
261
|
-
}));
|
|
262
|
-
return nt(() => {
|
|
263
|
-
var U;
|
|
264
|
-
const N = t != null && t.isDataGridTemplate ? Il : 0;
|
|
265
|
-
Ce(() => {
|
|
266
|
-
_.value && (a.value = _.value.getBoundingClientRect().width - N);
|
|
267
|
-
const ee = we(
|
|
268
|
-
_,
|
|
269
|
-
() => {
|
|
270
|
-
_.value && (Ce(() => ee()), i = dt(_.value, ({ width: te }) => {
|
|
271
|
-
a.value = te - N;
|
|
272
|
-
}));
|
|
273
|
-
},
|
|
274
|
-
{ immediate: !0 }
|
|
275
|
-
);
|
|
276
|
-
}), (U = document == null ? void 0 : document.fonts) != null && U.ready ? document.fonts.ready.then(() => {
|
|
277
|
-
d();
|
|
278
|
-
}) : d();
|
|
279
|
-
}), Gt(() => {
|
|
280
|
-
i == null || i.disconnect();
|
|
281
|
-
}), xn(() => {
|
|
282
|
-
var N;
|
|
283
|
-
O.value && ((N = Object.keys(O.value)) == null ? void 0 : N.length) > 0 && Object.keys(O.value).forEach((ee) => {
|
|
284
|
-
O.value[ee] = [];
|
|
285
|
-
});
|
|
286
|
-
}), {
|
|
287
|
-
columnDefs: w,
|
|
288
|
-
gridColumnWidthStyle: M,
|
|
289
|
-
gridRowWidthStyle: G,
|
|
290
|
-
onColumnWidthOverride: y,
|
|
291
|
-
isMeasuringColumnWidths: g,
|
|
292
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: q,
|
|
293
|
-
columns: l,
|
|
294
|
-
totalWidthOfAllColumns: v,
|
|
295
|
-
rowActionsMaxWidth: D
|
|
296
|
-
};
|
|
297
|
-
}, Ml = (e, s, m, n, r) => {
|
|
298
|
-
const t = p(e.value ?? []), l = lt({
|
|
299
|
-
allItemsSelected: !1,
|
|
300
|
-
isIndeterminate: !1
|
|
301
|
-
}), E = L(
|
|
302
|
-
() => m.value.flatMap((i) => {
|
|
303
|
-
var h;
|
|
304
|
-
return [i, ((h = i == null ? void 0 : i.children) == null ? void 0 : h.length) > 0 ? i == null ? void 0 : i.children : []];
|
|
305
|
-
}).flat()
|
|
306
|
-
), _ = () => {
|
|
307
|
-
s($.SELECT, t.value), s($.UPDATE_SELECTION, t.value);
|
|
308
|
-
}, b = (i) => {
|
|
309
|
-
var S, y, d, w, v;
|
|
310
|
-
if (t.value = i, ((S = m.value) == null ? void 0 : S.length) > 0 && ((y = E.value) == null ? void 0 : y.filter((q) => !r(q)).every((q) => t.value.includes(n(q))))) {
|
|
311
|
-
l.allItemsSelected = !0;
|
|
312
|
-
const q = ((d = m.value) == null ? void 0 : d.length) > 0 && m.value.every((G) => t.value.includes(n(G)));
|
|
313
|
-
l.isIndeterminate = !q;
|
|
314
|
-
} else
|
|
315
|
-
l.allItemsSelected = !1, l.isIndeterminate = ((w = t.value) == null ? void 0 : w.length) > 0 && ((v = m.value) == null ? void 0 : v.length) > 0 && m.value.some(
|
|
316
|
-
(q) => {
|
|
317
|
-
var G;
|
|
318
|
-
return t.value.includes(n(q)) || ((G = q == null ? void 0 : q.children) == null ? void 0 : G.some((M) => t.value.includes(n(M))));
|
|
319
|
-
}
|
|
320
|
-
);
|
|
321
|
-
}, O = (i) => {
|
|
322
|
-
Ce(() => {
|
|
323
|
-
var h, S, y;
|
|
324
|
-
if (l.allItemsSelected = i, i) {
|
|
325
|
-
t.value = (S = (h = E.value) == null ? void 0 : h.filter(
|
|
326
|
-
(w) => !r(w) && ((w == null ? void 0 : w.children) === void 0 || w.children.every((v) => !r(v)))
|
|
327
|
-
)) == null ? void 0 : S.map((w) => n(w));
|
|
328
|
-
const d = ((y = m.value) == null ? void 0 : y.length) > 0 && m.value.every((w) => t.value.includes(n(w)));
|
|
329
|
-
l.isIndeterminate = t.value.length > 0 && !d;
|
|
330
|
-
} else
|
|
331
|
-
t.value = [], l.isIndeterminate = !1;
|
|
332
|
-
_();
|
|
333
|
-
});
|
|
334
|
-
}, g = (i, h) => {
|
|
335
|
-
Ce(() => {
|
|
336
|
-
var S;
|
|
337
|
-
b(((S = h == null ? void 0 : h.children) == null ? void 0 : S.length) > 0 ? D(i, h) : i), _();
|
|
338
|
-
});
|
|
339
|
-
}, D = (i, h) => {
|
|
340
|
-
var d;
|
|
341
|
-
const S = n(h), y = (d = h.children) == null ? void 0 : d.filter((w) => !r(w)).map((w) => n(w));
|
|
342
|
-
if (i.includes(S)) {
|
|
343
|
-
const w = i;
|
|
344
|
-
return y.forEach((v) => {
|
|
345
|
-
w.includes(v) || w.push(v);
|
|
346
|
-
}), w;
|
|
347
|
-
}
|
|
348
|
-
return i.filter((w) => !y.includes(w));
|
|
349
|
-
}, a = (i, h, S) => {
|
|
350
|
-
Ce(() => {
|
|
351
|
-
var d, w;
|
|
352
|
-
const y = n(h);
|
|
353
|
-
i.includes(n(S)) ? b(
|
|
354
|
-
!i.includes(y) && ((d = h == null ? void 0 : h.children) != null && d.every((v) => i.includes(n(v)))) ? [...i, y] : i
|
|
355
|
-
) : b(
|
|
356
|
-
i.includes(y) && !((w = h == null ? void 0 : h.children) != null && w.every((v) => i.includes(n(v)))) ? i.filter((v) => v !== y) : i
|
|
357
|
-
), _();
|
|
358
|
-
});
|
|
359
|
-
};
|
|
360
|
-
return we(
|
|
361
|
-
() => e.value,
|
|
362
|
-
() => {
|
|
363
|
-
b(e.value ?? []);
|
|
364
|
-
},
|
|
365
|
-
{ immediate: !0 }
|
|
366
|
-
), we(
|
|
367
|
-
() => m.value,
|
|
368
|
-
() => {
|
|
369
|
-
const i = m.value.filter((h) => t.value.includes(n(h))).flatMap(
|
|
370
|
-
(h) => {
|
|
371
|
-
var S;
|
|
372
|
-
return ((S = h == null ? void 0 : h.children) == null ? void 0 : S.length) > 0 ? h.children.map((y) => n(y)).filter((y) => !t.value.includes(y)) : [];
|
|
373
|
-
}
|
|
374
|
-
);
|
|
375
|
-
(i == null ? void 0 : i.length) > 0 ? (b([...t.value, ...i]), _()) : b(t.value);
|
|
376
|
-
}
|
|
377
|
-
), { onAllRowSelect: O, onRowSelect: g, onNestedRowSelect: a, allItemsSelectedState: l, selectedItems: t };
|
|
378
|
-
}, zl = (e, s, m) => ({ isSorting: (l) => e.value.some((E) => E.field === l), getSortingDirection: (l) => {
|
|
379
|
-
var E;
|
|
380
|
-
return (E = e.value.find((_) => _.field === l)) == null ? void 0 : E.direction;
|
|
381
|
-
}, sortByColumnField: (l) => {
|
|
382
|
-
var b;
|
|
383
|
-
if (!s.value.some((O) => O.field === l && O.sortable))
|
|
384
|
-
return;
|
|
385
|
-
const _ = [{
|
|
386
|
-
field: l,
|
|
387
|
-
direction: ((b = e.value.find((O) => O.field === l)) == null ? void 0 : b.direction) === Ie.ASCENDING ? Ie.DESCENDING : Ie.ASCENDING
|
|
388
|
-
}];
|
|
389
|
-
m("sort", _);
|
|
390
|
-
} });
|
|
391
|
-
var ge = ((e) => (e[e.ARROW_DOWN = Ae.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Ae.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Ae.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Ae.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Ae.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Ae.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Ae.END] = "END", e[e.HOME = Ae.HOME] = "HOME", e))(ge || {});
|
|
392
|
-
const Fl = (e, s, m) => {
|
|
393
|
-
const n = L(() => {
|
|
394
|
-
const a = s.value.filter(({ visible: i }) => i !== !1);
|
|
395
|
-
return m.value ? a.length + 1 : a.length;
|
|
396
|
-
}), r = L(
|
|
397
|
-
() => [...Object.values(e.value)].flat(1).sort((a, i) => {
|
|
398
|
-
const h = Number(a.getAttribute("data-cellindex")), S = Number(i.getAttribute("data-cellindex"));
|
|
399
|
-
return h > S ? 1 : S > h ? -1 : 0;
|
|
400
|
-
})
|
|
401
|
-
), t = (a) => Math.floor(a / n.value), l = (a, i, h) => {
|
|
402
|
-
const S = r.value.length - 1, y = n.value - 1, d = t(a), w = a - n.value * d;
|
|
403
|
-
return {
|
|
404
|
-
[ge.PAGE_UP]: w,
|
|
405
|
-
[ge.PAGE_DOWN]: S - y + w,
|
|
406
|
-
[ge.END]: h ? S : n.value * d + y,
|
|
407
|
-
[ge.HOME]: h ? 0 : n.value * d
|
|
408
|
-
}[i];
|
|
409
|
-
}, E = (a, i) => {
|
|
410
|
-
const S = {
|
|
411
|
-
[ge.ARROW_DOWN]: n.value,
|
|
412
|
-
[ge.ARROW_UP]: -n.value,
|
|
413
|
-
[ge.ARROW_LEFT]: -1,
|
|
414
|
-
[ge.ARROW_RIGHT]: 1
|
|
415
|
-
}[i], y = a + S;
|
|
416
|
-
return y < 0 || y >= r.value.length ? a : y;
|
|
417
|
-
}, _ = (a) => [
|
|
418
|
-
ge.PAGE_UP,
|
|
419
|
-
ge.PAGE_DOWN,
|
|
420
|
-
ge.END,
|
|
421
|
-
ge.HOME
|
|
422
|
-
].includes(a), b = (a, i, h) => {
|
|
423
|
-
const S = r.value.indexOf(a);
|
|
424
|
-
return _(i) ? l(S, i, h) : E(S, i);
|
|
425
|
-
}, O = (a, i, h) => {
|
|
426
|
-
if (!r.value.includes(a))
|
|
427
|
-
return;
|
|
428
|
-
const S = b(a, i, h);
|
|
429
|
-
r.value[S].focus();
|
|
430
|
-
}, g = (a) => a in ge;
|
|
431
|
-
return {
|
|
432
|
-
isNavigationKeyCode: g,
|
|
433
|
-
focusOnNextGridcell: O,
|
|
434
|
-
navigationInput: (a) => {
|
|
435
|
-
const { ctrlKey: i, keyCode: h, target: S } = a;
|
|
436
|
-
Object.values(e.value).flat(1).includes(S) && g(h) && O(S, h, i);
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
}, Ul = 90, Pl = (e, s, m, n, r) => {
|
|
440
|
-
const t = p(e), l = p(s), E = p(m), _ = p(n), b = L(() => t.value !== "none"), O = L(() => t.value === "automatic"), g = () => {
|
|
441
|
-
r($.UPDATE_SHOW_MORE);
|
|
442
|
-
};
|
|
443
|
-
return we(
|
|
444
|
-
() => l.value,
|
|
445
|
-
() => {
|
|
446
|
-
O.value && E.value.offsetHeight / l.value * 100 > Ul && !_.value && g();
|
|
447
|
-
}
|
|
448
|
-
), { isLazyLoad: b, isInfiniteScroll: O, verticalScrollPosition: l, emitLazyLoadEvent: g };
|
|
449
|
-
}, Bl = (e, s, m) => {
|
|
450
|
-
const n = p(e), r = p(s), t = lt({
|
|
451
|
-
dragging: null,
|
|
452
|
-
dragToLeft: null,
|
|
453
|
-
target: null
|
|
454
|
-
}), l = (a, i = 0) => {
|
|
455
|
-
const h = n.value.findIndex((d) => d.field === a.field), S = h + i;
|
|
456
|
-
if (S < 0 || S > n.value.length - 1)
|
|
457
|
-
return;
|
|
458
|
-
const y = [...n.value];
|
|
459
|
-
y.splice(S, 0, y.splice(h, 1)[0]), m($.COLUMNS, y), m($.UPDATE_COLUMNS, y);
|
|
460
|
-
}, E = (a, i) => {
|
|
461
|
-
t.dragging = a, i.dataTransfer.setData("text", ""), i.dataTransfer.dropEffect = "move";
|
|
462
|
-
}, _ = (a, i) => {
|
|
463
|
-
t.target = a;
|
|
464
|
-
const h = i.currentTarget.getBoundingClientRect(), S = h.left + h.width / 2, y = i.clientX ?? 0;
|
|
465
|
-
t.dragToLeft = y <= S;
|
|
466
|
-
}, b = (a) => {
|
|
467
|
-
var i, h;
|
|
468
|
-
if (((i = t.dragging) == null ? void 0 : i.field) !== a.field) {
|
|
469
|
-
const S = n.value.findIndex((G) => {
|
|
470
|
-
var M;
|
|
471
|
-
return G.field === ((M = t.dragging) == null ? void 0 : M.field);
|
|
472
|
-
}), y = n.value.findIndex((G) => G.field === a.field), d = t.dragToLeft ? y : y + 1, w = d > S ? d - 1 : d;
|
|
473
|
-
let v = [...n.value];
|
|
474
|
-
v.splice(
|
|
475
|
-
w === -1 ? 0 : w,
|
|
476
|
-
0,
|
|
477
|
-
v.splice(S, 1)[0]
|
|
478
|
-
);
|
|
479
|
-
const q = n.value.findIndex((G) => !(G != null && G.frozen));
|
|
480
|
-
((h = t.dragging) == null ? void 0 : h.frozen) !== a.frozen && d !== q && (v = v.map(
|
|
481
|
-
(G) => {
|
|
482
|
-
var M;
|
|
483
|
-
return ((M = t.dragging) == null ? void 0 : M.field) === G.field ? { ...G, frozen: !!(a != null && a.frozen) } : G;
|
|
484
|
-
}
|
|
485
|
-
)), m($.COLUMNS, v), m($.UPDATE_COLUMNS, v);
|
|
486
|
-
}
|
|
487
|
-
t.dragging = null, t.target = null;
|
|
488
|
-
}, O = () => {
|
|
489
|
-
t.dragging = null, t.dragToLeft = null, t.target = null;
|
|
490
|
-
}, g = L(() => r.value ? {
|
|
491
|
-
[ie.COLUMN_DRAG_START]: (a, i) => E(a, i),
|
|
492
|
-
[ie.COLUMN_DRAG_ENTER]: (a, i) => _(a, i),
|
|
493
|
-
[ie.COLUMN_DROP]: (a) => b(a),
|
|
494
|
-
[ie.COLUMN_DRAG_END]: () => O()
|
|
495
|
-
} : {}), D = L(() => (a) => r.value ? {
|
|
496
|
-
dragenter: (i) => {
|
|
497
|
-
i.preventDefault(), _(a, i);
|
|
498
|
-
},
|
|
499
|
-
drop: () => {
|
|
500
|
-
b(a);
|
|
501
|
-
},
|
|
502
|
-
dragover: (i) => {
|
|
503
|
-
i.preventDefault();
|
|
504
|
-
}
|
|
505
|
-
} : {});
|
|
506
|
-
return {
|
|
507
|
-
// Values
|
|
508
|
-
draggingColumns: t,
|
|
509
|
-
// Methods
|
|
510
|
-
draggingEventsForColumns: g,
|
|
511
|
-
draggingEventsForRowCell: D,
|
|
512
|
-
onMoveColumnByOffset: l
|
|
513
|
-
};
|
|
514
|
-
}, Wl = (e, s) => {
|
|
515
|
-
const m = p(e), n = L(
|
|
516
|
-
() => [...m.value].sort((g, D) => g.frozen === D.frozen ? 0 : g.frozen ? -1 : 1)
|
|
517
|
-
), r = L(
|
|
518
|
-
() => n.value.filter((g) => g.frozen && g.visible !== !1)
|
|
519
|
-
), t = L(
|
|
520
|
-
() => n.value.filter((g) => !g.frozen && g.visible !== !1)
|
|
521
|
-
), l = L(
|
|
522
|
-
() => [
|
|
523
|
-
{ columnSet: r.value, id: "frozen", isFrozenColumns: !0 },
|
|
524
|
-
{ columnSet: t.value, id: "unfrozen" }
|
|
525
|
-
].filter(({ columnSet: g }) => g.length)
|
|
526
|
-
), E = L(
|
|
527
|
-
() => m.value.filter((g) => (g == null ? void 0 : g.visible) !== !1 && (g == null ? void 0 : g.field) !== he).length === 1
|
|
528
|
-
), _ = (g) => s($.UPDATE_CONDENSED, g), b = (g) => {
|
|
529
|
-
s($.COLUMNS, g), s($.UPDATE_COLUMNS, g);
|
|
530
|
-
};
|
|
531
|
-
return {
|
|
532
|
-
// Values
|
|
533
|
-
columnSets: l,
|
|
534
|
-
isOnlyOneVisibleColumn: E,
|
|
535
|
-
sortedColumns: n,
|
|
536
|
-
// Methods
|
|
537
|
-
onConfigSettingsUpdate: _,
|
|
538
|
-
onConfigSettingsColumnsUpdate: b,
|
|
539
|
-
onConfigSettingsColumnUpdate: (g) => {
|
|
540
|
-
const D = n.value.map(
|
|
541
|
-
(a) => (a == null ? void 0 : a.field) === g.field ? g : a
|
|
542
|
-
);
|
|
543
|
-
b(D);
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
}, Gl = (e, s, m, n, r, t) => {
|
|
547
|
-
const l = p(0), E = p(!1), _ = p(!1);
|
|
548
|
-
we([() => l.value, () => r.value], ([a]) => {
|
|
549
|
-
e.value.scrollLeft = a, s.value.scrollLeft = a, E.value = !!a, _.value = s.value.scrollWidth - s.value.offsetWidth > a;
|
|
550
|
-
}), nt(async () => {
|
|
551
|
-
var a, i;
|
|
552
|
-
await Ce(), await Ce(), ((a = s.value) == null ? void 0 : a.offsetWidth) < ((i = s.value) == null ? void 0 : i.scrollWidth) && (_.value = !0);
|
|
553
|
-
});
|
|
554
|
-
const b = (a) => {
|
|
555
|
-
if (l.value = a.target.scrollLeft, m.value = e.value.scrollHeight - a.target.scrollTop, n != null && n.value) {
|
|
556
|
-
const i = a.target.scrollLeft;
|
|
557
|
-
n.value.scrollLeft !== i && (n.value.scrollLeft = i);
|
|
558
|
-
}
|
|
559
|
-
}, O = (a) => {
|
|
560
|
-
a.key !== "Tab" && a.key !== "ArrowRight" && a.key !== "ArrowLeft" || (a.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
561
|
-
e.value.style.overflowX = "auto";
|
|
562
|
-
}));
|
|
563
|
-
}, g = (a) => {
|
|
564
|
-
const i = a.target.scrollLeft;
|
|
565
|
-
e.value.scrollLeft !== i && (e.value.scrollLeft = i);
|
|
566
|
-
}, D = L(() => {
|
|
567
|
-
var a, i, h;
|
|
568
|
-
return {
|
|
569
|
-
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((a = t == null ? void 0 : t.pagination) == null ? void 0 : a.value) && (((i = t == null ? void 0 : t.stickyPagination) == null ? void 0 : i.value) || (t == null ? void 0 : t.isDataGridTemplate)) && !((h = t == null ? void 0 : t.isLazyLoad) != null && h.value)
|
|
570
|
-
};
|
|
571
|
-
});
|
|
572
|
-
return {
|
|
573
|
-
// Values
|
|
574
|
-
scrollLeftPosition: l,
|
|
575
|
-
hasLeftOverflow: E,
|
|
576
|
-
hasRightOverflow: _,
|
|
577
|
-
horizontalScrollbarConditionalClasses: D,
|
|
578
|
-
// Methods
|
|
579
|
-
updateScrollPosition: b,
|
|
580
|
-
updateScrollPositionOnFrozenColumnsNavigation: O,
|
|
581
|
-
syncVirtualScrollerWithBody: g
|
|
582
|
-
};
|
|
583
|
-
}, Hl = (e, s, m, n) => {
|
|
584
|
-
const r = p(null), t = L(() => {
|
|
585
|
-
var h, S, y, d;
|
|
586
|
-
if (!r.value || r.value.field === he)
|
|
587
|
-
return {
|
|
588
|
-
hoveredOverColumnField: "",
|
|
589
|
-
isSeparatorOffset: !1,
|
|
590
|
-
noBorderLeft: !1,
|
|
591
|
-
noBorderRight: !1
|
|
592
|
-
};
|
|
593
|
-
const l = (S = (h = e.value.find((w) => w.isFrozenColumns)) == null ? void 0 : h.columnSet) == null ? void 0 : S.filter((w) => w.field !== he), E = e.value.find((w) => !(w != null && w.isFrozenColumns)), _ = r.value.frozen && (l == null ? void 0 : l[0].field) === r.value.field, b = !r.value.frozen && ((y = E == null ? void 0 : E.columnSet) == null ? void 0 : y[0].field) === r.value.field, O = (s.value || m.value) && _, g = (s.value || m.value) && !l && b, D = l && b, a = (l == null ? void 0 : l.length) > 0 && r.value.frozen && (l == null ? void 0 : l[l.length - 1].field) === r.value.field, i = m.value && n.value && !r.value.frozen && ((d = E == null ? void 0 : E.columnSet) == null ? void 0 : d[E.columnSet.length - 1].field) === r.value.field;
|
|
594
|
-
return {
|
|
595
|
-
hoveredOverColumnField: r.value.field,
|
|
596
|
-
isSeparatorOffset: i,
|
|
597
|
-
noBorderLeft: !!O || !!g || !!D,
|
|
598
|
-
noBorderRight: !!a || !!i
|
|
599
|
-
};
|
|
600
|
-
});
|
|
601
|
-
return {
|
|
602
|
-
hoveredOverColumn: r,
|
|
603
|
-
hoveredOverColumnState: t
|
|
604
|
-
};
|
|
605
|
-
};
|
|
606
|
-
let It = 0;
|
|
607
|
-
const Vl = {
|
|
608
|
-
beforeCreate() {
|
|
609
|
-
this.uuid = It.toString(), It += 1;
|
|
610
|
-
}
|
|
611
|
-
}, xl = { key: 0 }, Zl = ["clip-path"], jl = ["id"];
|
|
612
|
-
function ql(e, s, m, n, r, t) {
|
|
613
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
614
|
-
class: "ui-assets-icons-16",
|
|
615
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
616
|
-
width: "16",
|
|
617
|
-
height: "16",
|
|
618
|
-
fill: "none"
|
|
619
|
-
}), [
|
|
620
|
-
e.$attrs["svg-title"] ? (f(), R("title", xl, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
621
|
-
A("g", {
|
|
622
|
-
fill: "#00112C",
|
|
623
|
-
"clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
624
|
-
}, s[0] || (s[0] = [
|
|
625
|
-
A("path", { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" }, null, -1),
|
|
626
|
-
A("path", { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" }, null, -1)
|
|
627
|
-
]), 8, Zl),
|
|
628
|
-
A("defs", null, [
|
|
629
|
-
A("clipPath", {
|
|
630
|
-
id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid
|
|
631
|
-
}, s[1] || (s[1] = [
|
|
632
|
-
A("rect", {
|
|
633
|
-
width: "16",
|
|
634
|
-
height: "16",
|
|
635
|
-
fill: "#fff"
|
|
636
|
-
}, null, -1)
|
|
637
|
-
]), 8, jl)
|
|
638
|
-
])
|
|
639
|
-
], 16);
|
|
640
|
-
}
|
|
641
|
-
const Kl = /* @__PURE__ */ de(Vl, [["render", ql]]);
|
|
642
|
-
let $t = 0;
|
|
643
|
-
const Yl = {
|
|
644
|
-
beforeCreate() {
|
|
645
|
-
this.uuid = $t.toString(), $t += 1;
|
|
646
|
-
}
|
|
647
|
-
}, Xl = { key: 0 };
|
|
648
|
-
function Jl(e, s, m, n, r, t) {
|
|
649
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
650
|
-
class: "ui-assets-icons-16",
|
|
651
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
652
|
-
width: "16",
|
|
653
|
-
height: "16",
|
|
654
|
-
fill: "none"
|
|
655
|
-
}), [
|
|
656
|
-
e.$attrs["svg-title"] ? (f(), R("title", Xl, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
657
|
-
s[0] || (s[0] = A("path", {
|
|
658
|
-
fill: "#00112C",
|
|
659
|
-
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"
|
|
660
|
-
}, null, -1))
|
|
661
|
-
], 16);
|
|
662
|
-
}
|
|
663
|
-
const Ql = /* @__PURE__ */ de(Yl, [["render", Jl]]);
|
|
664
|
-
let Dt = 0;
|
|
665
|
-
const eo = {
|
|
666
|
-
beforeCreate() {
|
|
667
|
-
this.uuid = Dt.toString(), Dt += 1;
|
|
668
|
-
}
|
|
669
|
-
}, to = { key: 0 }, no = ["clip-path"], lo = ["id"];
|
|
670
|
-
function oo(e, s, m, n, r, t) {
|
|
671
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
672
|
-
class: "ui-assets-icons-16",
|
|
673
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
674
|
-
width: "16",
|
|
675
|
-
height: "16",
|
|
676
|
-
fill: "none"
|
|
677
|
-
}), [
|
|
678
|
-
e.$attrs["svg-title"] ? (f(), R("title", to, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
679
|
-
A("g", {
|
|
680
|
-
"clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
|
|
681
|
-
}, s[0] || (s[0] = [
|
|
682
|
-
A("path", {
|
|
683
|
-
fill: "#00112C",
|
|
684
|
-
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"
|
|
685
|
-
}, null, -1)
|
|
686
|
-
]), 8, no),
|
|
687
|
-
A("defs", null, [
|
|
688
|
-
A("clipPath", {
|
|
689
|
-
id: "uia-ui-assets/icons-16-freeze__a" + e.uuid
|
|
690
|
-
}, s[1] || (s[1] = [
|
|
691
|
-
A("rect", {
|
|
692
|
-
width: "16",
|
|
693
|
-
height: "16",
|
|
694
|
-
fill: "#fff",
|
|
695
|
-
transform: "matrix(1 0 0 -1 0 16)"
|
|
696
|
-
}, null, -1)
|
|
697
|
-
]), 8, lo)
|
|
698
|
-
])
|
|
699
|
-
], 16);
|
|
700
|
-
}
|
|
701
|
-
const Xt = /* @__PURE__ */ de(eo, [["render", oo]]);
|
|
702
|
-
let kt = 0;
|
|
703
|
-
const so = {
|
|
704
|
-
beforeCreate() {
|
|
705
|
-
this.uuid = kt.toString(), kt += 1;
|
|
706
|
-
}
|
|
707
|
-
}, io = { key: 0 }, ao = ["clip-path"], ro = ["id"];
|
|
708
|
-
function uo(e, s, m, n, r, t) {
|
|
709
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
710
|
-
class: "ui-assets-icons-16",
|
|
711
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
712
|
-
width: "16",
|
|
713
|
-
height: "16",
|
|
714
|
-
fill: "none"
|
|
715
|
-
}), [
|
|
716
|
-
e.$attrs["svg-title"] ? (f(), R("title", io, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
717
|
-
A("g", {
|
|
718
|
-
fill: "#00112C",
|
|
719
|
-
"clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
|
|
720
|
-
}, s[0] || (s[0] = [
|
|
721
|
-
A("path", { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" }, null, -1),
|
|
722
|
-
A("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
723
|
-
A("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
|
|
724
|
-
A("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
|
|
725
|
-
]), 8, ao),
|
|
726
|
-
A("defs", null, [
|
|
727
|
-
A("clipPath", {
|
|
728
|
-
id: "uia-ui-assets/icons-16-sort_ascending__a" + e.uuid
|
|
729
|
-
}, s[1] || (s[1] = [
|
|
730
|
-
A("rect", {
|
|
731
|
-
width: "16",
|
|
732
|
-
height: "16",
|
|
733
|
-
fill: "#fff"
|
|
734
|
-
}, null, -1)
|
|
735
|
-
]), 8, ro)
|
|
736
|
-
])
|
|
737
|
-
], 16);
|
|
738
|
-
}
|
|
739
|
-
const co = /* @__PURE__ */ de(so, [["render", uo]]);
|
|
740
|
-
let Mt = 0;
|
|
741
|
-
const fo = {
|
|
742
|
-
beforeCreate() {
|
|
743
|
-
this.uuid = Mt.toString(), Mt += 1;
|
|
744
|
-
}
|
|
745
|
-
}, go = { key: 0 }, vo = ["clip-path"], mo = ["id"];
|
|
746
|
-
function ho(e, s, m, n, r, t) {
|
|
747
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
748
|
-
class: "ui-assets-icons-16",
|
|
749
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
750
|
-
width: "16",
|
|
751
|
-
height: "16",
|
|
752
|
-
fill: "none"
|
|
753
|
-
}), [
|
|
754
|
-
e.$attrs["svg-title"] ? (f(), R("title", go, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
755
|
-
A("g", {
|
|
756
|
-
fill: "#00112C",
|
|
757
|
-
"clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
|
|
758
|
-
}, s[0] || (s[0] = [
|
|
759
|
-
A("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1),
|
|
760
|
-
A("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
761
|
-
A("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
|
|
762
|
-
A("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
|
|
763
|
-
]), 8, vo),
|
|
764
|
-
A("defs", null, [
|
|
765
|
-
A("clipPath", {
|
|
766
|
-
id: "uia-ui-assets/icons-16-sort_descending__a" + e.uuid
|
|
767
|
-
}, s[1] || (s[1] = [
|
|
768
|
-
A("rect", {
|
|
769
|
-
width: "16",
|
|
770
|
-
height: "16",
|
|
771
|
-
fill: "#fff"
|
|
772
|
-
}, null, -1)
|
|
773
|
-
]), 8, mo)
|
|
774
|
-
])
|
|
775
|
-
], 16);
|
|
776
|
-
}
|
|
777
|
-
const Co = /* @__PURE__ */ de(fo, [["render", ho]]);
|
|
778
|
-
let zt = 0;
|
|
779
|
-
const _o = {
|
|
780
|
-
beforeCreate() {
|
|
781
|
-
this.uuid = zt.toString(), zt += 1;
|
|
782
|
-
}
|
|
783
|
-
}, wo = { key: 0 };
|
|
784
|
-
function yo(e, s, m, n, r, t) {
|
|
785
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
786
|
-
class: "ui-assets-icons-16",
|
|
787
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
788
|
-
width: "16",
|
|
789
|
-
height: "16",
|
|
790
|
-
fill: "none"
|
|
791
|
-
}), [
|
|
792
|
-
e.$attrs["svg-title"] ? (f(), R("title", wo, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
793
|
-
s[0] || (s[0] = A("path", {
|
|
794
|
-
fill: "#00112C",
|
|
795
|
-
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
796
|
-
}, null, -1))
|
|
797
|
-
], 16);
|
|
798
|
-
}
|
|
799
|
-
const So = /* @__PURE__ */ de(_o, [["render", yo]]), Jt = {
|
|
800
|
-
"en-US": {
|
|
801
|
-
columnActions: "{name} column actions",
|
|
802
|
-
freezeColumn: "Freeze column",
|
|
803
|
-
hideColumn: "Hide column",
|
|
804
|
-
moveColumnLeft: "Move column left",
|
|
805
|
-
moveColumnRight: "Move column right",
|
|
806
|
-
selectAll: "Select all",
|
|
807
|
-
selectPage: "Select this page",
|
|
808
|
-
selectionMenu: "Selection menu",
|
|
809
|
-
showColumn: "Show column",
|
|
810
|
-
sortColumn: "Sort {name} column",
|
|
811
|
-
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
812
|
-
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
813
|
-
unfreezeColumn: "Unfreeze column"
|
|
814
|
-
},
|
|
815
|
-
"ja-JP": {
|
|
816
|
-
freezeColumn: "列を固定",
|
|
817
|
-
hideColumn: "列を非表示",
|
|
818
|
-
moveColumnLeft: "列を左へ移動",
|
|
819
|
-
moveColumnRight: "列を右へ移動",
|
|
820
|
-
selectAll: "すべて選択",
|
|
821
|
-
unfreezeColumn: "列の固定を解除"
|
|
822
|
-
},
|
|
823
|
-
"pt-BR": {
|
|
824
|
-
freezeColumn: "Congelar coluna",
|
|
825
|
-
hideColumn: "Ocultar coluna",
|
|
826
|
-
moveColumnLeft: "Mover coluna para a esquerda",
|
|
827
|
-
moveColumnRight: "Mover coluna para a direita",
|
|
828
|
-
selectAll: "Selecionar tudo",
|
|
829
|
-
unfreezeColumn: "Descongelar coluna"
|
|
830
|
-
}
|
|
831
|
-
}, Eo = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Lo = {
|
|
832
|
-
key: 0,
|
|
833
|
-
class: "b-data-grid-columns__select-column"
|
|
834
|
-
}, bo = ["aria-label"], Ro = { class: "b-data-grid-columns__label" }, po = {
|
|
835
|
-
key: 0,
|
|
836
|
-
class: "b-data-grid-columns__column-info-icon"
|
|
837
|
-
}, Oo = {
|
|
838
|
-
key: 1,
|
|
839
|
-
class: "b-data-grid-columns__column-sort"
|
|
840
|
-
}, Ao = ["data-testid", "onMousedown"], No = {
|
|
841
|
-
key: 0,
|
|
842
|
-
class: "b-data-grid-columns__column-separator"
|
|
843
|
-
}, To = {
|
|
844
|
-
i18n: { messages: Jt },
|
|
845
|
-
name: "data-grid-columns"
|
|
846
|
-
}, Io = /* @__PURE__ */ Oe({
|
|
847
|
-
...To,
|
|
848
|
-
props: {
|
|
849
|
-
/**
|
|
850
|
-
* Column definitions using 'key' to relate to data object.
|
|
851
|
-
*/
|
|
852
|
-
columns: {
|
|
853
|
-
type: Array,
|
|
854
|
-
required: !0
|
|
855
|
-
},
|
|
856
|
-
/**
|
|
857
|
-
* Columns being dragged, contains dragging column and a target column
|
|
858
|
-
*/
|
|
859
|
-
draggingColumns: {
|
|
860
|
-
type: Object,
|
|
861
|
-
default: void 0
|
|
862
|
-
},
|
|
863
|
-
/**
|
|
864
|
-
* Toggle the columns draggable events.
|
|
865
|
-
*/
|
|
866
|
-
hasDraggableColumns: {
|
|
867
|
-
type: Boolean,
|
|
868
|
-
default: !0
|
|
869
|
-
},
|
|
870
|
-
/**
|
|
871
|
-
* If resize is enabled
|
|
872
|
-
*/
|
|
873
|
-
hasResizableColumns: {
|
|
874
|
-
type: Boolean,
|
|
875
|
-
default: !0
|
|
876
|
-
},
|
|
877
|
-
/**
|
|
878
|
-
* Signifies if the column panel is enabled.
|
|
879
|
-
*/
|
|
880
|
-
hasColumnPanel: {
|
|
881
|
-
type: Boolean,
|
|
882
|
-
default: !1
|
|
883
|
-
},
|
|
884
|
-
/**
|
|
885
|
-
* If set to true, aligns the first column panel to the right of its button.
|
|
886
|
-
*/
|
|
887
|
-
hasFirstColumnPanelRightAligned: {
|
|
888
|
-
type: Boolean,
|
|
889
|
-
default: !1
|
|
890
|
-
},
|
|
891
|
-
/**
|
|
892
|
-
* If the data grid has overflow on the left side
|
|
893
|
-
*/
|
|
894
|
-
hasLeftOverflow: {
|
|
895
|
-
type: Boolean,
|
|
896
|
-
default: !1
|
|
897
|
-
},
|
|
898
|
-
/**
|
|
899
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
900
|
-
*/
|
|
901
|
-
hoveredOverColumnState: {
|
|
902
|
-
type: Object,
|
|
903
|
-
required: !0
|
|
904
|
-
},
|
|
905
|
-
/**
|
|
906
|
-
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
907
|
-
*/
|
|
908
|
-
isMeasuringColumnWidths: {
|
|
909
|
-
type: Boolean,
|
|
910
|
-
default: !1
|
|
911
|
-
},
|
|
912
|
-
/**
|
|
913
|
-
* Used to disable hiding the last visible column.
|
|
914
|
-
*/
|
|
915
|
-
isOnlyOneVisibleColumn: {
|
|
916
|
-
type: Boolean,
|
|
917
|
-
default: !1
|
|
918
|
-
},
|
|
919
|
-
/**
|
|
920
|
-
* If these columns are frozen (pinned) columns
|
|
921
|
-
*/
|
|
922
|
-
isFrozenColumns: {
|
|
923
|
-
type: Boolean,
|
|
924
|
-
default: !1
|
|
925
|
-
},
|
|
926
|
-
/**
|
|
927
|
-
* Show frozen columns separator
|
|
928
|
-
*/
|
|
929
|
-
showFrozenColumnsSeparator: {
|
|
930
|
-
type: Boolean,
|
|
931
|
-
default: !1
|
|
932
|
-
},
|
|
933
|
-
/**
|
|
934
|
-
* The column all items selected state
|
|
935
|
-
*/
|
|
936
|
-
allItemsSelectedState: {
|
|
937
|
-
type: Object,
|
|
938
|
-
default: void 0
|
|
939
|
-
},
|
|
940
|
-
/**
|
|
941
|
-
* Determines if the user has enabled row selection
|
|
942
|
-
*/
|
|
943
|
-
selectable: {
|
|
944
|
-
type: Boolean,
|
|
945
|
-
default: !1
|
|
946
|
-
},
|
|
947
|
-
/**
|
|
948
|
-
* Adds an extra option when selecting all, to select items in other pages too
|
|
949
|
-
*/
|
|
950
|
-
selectableAcrossPages: {
|
|
951
|
-
type: Boolean,
|
|
952
|
-
default: !1
|
|
953
|
-
},
|
|
954
|
-
/**
|
|
955
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
956
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
957
|
-
*/
|
|
958
|
-
sortBy: {
|
|
959
|
-
type: Array,
|
|
960
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
961
|
-
default: () => []
|
|
962
|
-
},
|
|
963
|
-
/**
|
|
964
|
-
* Truncates all data grid column headers
|
|
965
|
-
*/
|
|
966
|
-
truncateColumnHeaders: {
|
|
967
|
-
type: Boolean,
|
|
968
|
-
default: !1
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
emits: ["sort", "column-hover"],
|
|
972
|
-
setup(e, { expose: s, emit: m }) {
|
|
973
|
-
const n = e, r = m, t = 100, { t: l } = $e({ messages: Jt }), { columns: E, sortBy: _ } = ot(n), b = p({}), O = p({}), g = p(), D = p(), a = (u) => r(ie.SELECT_ALL_ROWS, u), i = (u) => u.field === he, h = L(() => [
|
|
974
|
-
{
|
|
975
|
-
text: l("selectPage"),
|
|
976
|
-
handler: () => a(!0)
|
|
977
|
-
},
|
|
978
|
-
{
|
|
979
|
-
text: l("selectAll"),
|
|
980
|
-
handler: () => r(ie.SELECT_ALL_ACROSS_PAGES)
|
|
981
|
-
}
|
|
982
|
-
]), { startResize: S, isResizing: y, columnHoverEventToEmitAfterResizing: d } = Ll(E, r), { isSorting: w, getSortingDirection: v, sortByColumnField: q } = zl(_, E, r), G = (u) => {
|
|
983
|
-
var T;
|
|
984
|
-
if (!u.sortable)
|
|
985
|
-
return null;
|
|
986
|
-
const W = (T = n.sortBy.find(({ field: H }) => H === u.field)) == null ? void 0 : T.direction;
|
|
987
|
-
return W ? {
|
|
988
|
-
[Ie.ASCENDING]: Ve.ASCENDING,
|
|
989
|
-
[Ie.DESCENDING]: Ve.DESCENDING
|
|
990
|
-
}[W] : Ve.NONE;
|
|
991
|
-
}, M = L(() => (u) => n.hasDraggableColumns ? {
|
|
992
|
-
dragstart: (W) => {
|
|
993
|
-
r(ie.COLUMN_DRAG_START, u, W);
|
|
994
|
-
},
|
|
995
|
-
dragover: (W) => {
|
|
996
|
-
W.preventDefault();
|
|
997
|
-
},
|
|
998
|
-
dragenter: (W) => {
|
|
999
|
-
W.preventDefault(), r(ie.COLUMN_DRAG_ENTER, u, W);
|
|
1000
|
-
},
|
|
1001
|
-
drop: () => {
|
|
1002
|
-
r(ie.COLUMN_DROP, u);
|
|
1003
|
-
},
|
|
1004
|
-
dragend: () => {
|
|
1005
|
-
r(ie.COLUMN_DRAG_END);
|
|
1006
|
-
}
|
|
1007
|
-
} : {}), N = L(() => (u) => [
|
|
1008
|
-
{
|
|
1009
|
-
text: l("moveColumnLeft"),
|
|
1010
|
-
handler: () => r(ie.COLUMN_MOVE, u, -1),
|
|
1011
|
-
icon: hl,
|
|
1012
|
-
disabled: n.columns[0].field === u.field
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
text: l("moveColumnRight"),
|
|
1016
|
-
handler: () => r(ie.COLUMN_MOVE, u, 1),
|
|
1017
|
-
icon: Ql,
|
|
1018
|
-
disabled: n.columns[n.columns.length - 1].field === u.field
|
|
1019
|
-
},
|
|
1020
|
-
{
|
|
1021
|
-
text: u != null && u.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
1022
|
-
handler: () => r(ie.COLUMN_UPDATE, { ...u, frozen: !(u != null && u.frozen) }),
|
|
1023
|
-
icon: Xt
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
text: (u == null ? void 0 : u.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
1027
|
-
handler: () => {
|
|
1028
|
-
r(ie.COLUMN_UPDATE, {
|
|
1029
|
-
...u,
|
|
1030
|
-
visible: (u == null ? void 0 : u.visible) === !1
|
|
1031
|
-
});
|
|
1032
|
-
},
|
|
1033
|
-
icon: (u == null ? void 0 : u.visible) !== !1 ? Cl : _l,
|
|
1034
|
-
disabled: (u == null ? void 0 : u.mandatory) || (u == null ? void 0 : u.visible) !== !1 && n.isOnlyOneVisibleColumn
|
|
1035
|
-
}
|
|
1036
|
-
]), U = (u) => {
|
|
1037
|
-
g.value = u.field, D.value && clearTimeout(D.value);
|
|
1038
|
-
}, ee = () => {
|
|
1039
|
-
const u = setTimeout(() => {
|
|
1040
|
-
g.value = "";
|
|
1041
|
-
}, t);
|
|
1042
|
-
D.value = u;
|
|
1043
|
-
}, te = (u) => {
|
|
1044
|
-
let W = {
|
|
1045
|
-
mouseenter: () => {
|
|
1046
|
-
U(u), y.value ? d.value = u : r("column-hover", u);
|
|
1047
|
-
},
|
|
1048
|
-
mouseleave: () => {
|
|
1049
|
-
ee(), y.value ? d.value = null : r("column-hover", null);
|
|
1050
|
-
},
|
|
1051
|
-
focus: () => U(u)
|
|
1052
|
-
};
|
|
1053
|
-
return i(u) || (W = {
|
|
1054
|
-
...W,
|
|
1055
|
-
...M.value(u)
|
|
1056
|
-
}), W;
|
|
1057
|
-
}, C = (u) => u.infoIconTooltip || u.sortable || n.hasColumnPanel, x = (u, W) => {
|
|
1058
|
-
var c;
|
|
1059
|
-
((c = b.value) == null ? void 0 : c[W]) === void 0 && (b.value = { ...b.value, [W]: null }), u !== null && (b.value[W] = u);
|
|
1060
|
-
}, F = L(() => {
|
|
1061
|
-
var W;
|
|
1062
|
-
const u = {
|
|
1063
|
-
"b-data-grid-columns--is-measuring": n.isMeasuringColumnWidths
|
|
1064
|
-
};
|
|
1065
|
-
return (W = E.value[0]) != null && W.frozen ? {
|
|
1066
|
-
...u,
|
|
1067
|
-
"b-data-grid-columns--frozen": !0,
|
|
1068
|
-
"b-data-grid-columns--frozen-separator": n.showFrozenColumnsSeparator,
|
|
1069
|
-
"b-data-grid-columns--overflow-shadow-left": n.hasLeftOverflow
|
|
1070
|
-
} : {
|
|
1071
|
-
...u,
|
|
1072
|
-
"b-data-grid-columns--unfrozen": !0
|
|
1073
|
-
};
|
|
1074
|
-
}), P = (u, W) => u && W === 0 ? Lt.BOTTOM_START : Lt.BOTTOM_END, ue = (u, W) => {
|
|
1075
|
-
var c, T, H, Q, se, le, fe, ye, De, K;
|
|
1076
|
-
return {
|
|
1077
|
-
"b-data-grid-columns__column--column-hovered": u.field === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
1078
|
-
"b-data-grid-columns__column--column-hovered-no-border-left": u.field === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
|
|
1079
|
-
"b-data-grid-columns__column--column-hovered-no-border-right": u.field === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
|
|
1080
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": n.isFrozenColumns && W === E.value.length - 1,
|
|
1081
|
-
"b-data-grid-columns__column--sortable": u.sortable,
|
|
1082
|
-
"b-data-grid-columns__column--padding-left-unset": ((c = u == null ? void 0 : u.padding) == null ? void 0 : c.left) === !1,
|
|
1083
|
-
"b-data-grid-columns__column--padding-right-unset": ((T = u == null ? void 0 : u.padding) == null ? void 0 : T.right) === !1,
|
|
1084
|
-
"b-data-grid-columns__column--numeric": u == null ? void 0 : u.numeric,
|
|
1085
|
-
"b-data-grid-columns__column--frozen": u == null ? void 0 : u.frozen,
|
|
1086
|
-
"b-data-grid-columns__column--is-re-ordering": (u == null ? void 0 : u.field) === ((Q = (H = n.draggingColumns) == null ? void 0 : H.dragging) == null ? void 0 : Q.field),
|
|
1087
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (u == null ? void 0 : u.field) === ((le = (se = n.draggingColumns) == null ? void 0 : se.target) == null ? void 0 : le.field) && ((fe = n.draggingColumns) == null ? void 0 : fe.dragToLeft),
|
|
1088
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (u == null ? void 0 : u.field) === ((De = (ye = n.draggingColumns) == null ? void 0 : ye.target) == null ? void 0 : De.field) && !((K = n.draggingColumns) != null && K.dragToLeft),
|
|
1089
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": u.sortable || u.infoIconTooltip || n.hasColumnPanel && g.value === u.field || n.selectableAcrossPages
|
|
1090
|
-
};
|
|
1091
|
-
}, ne = (u) => ({
|
|
1092
|
-
"b-data-grid-columns__column-header-and-actions--numeric": u == null ? void 0 : u.numeric
|
|
1093
|
-
}), J = (u) => ({
|
|
1094
|
-
"b-data-grid-columns__column-actions--numeric": u == null ? void 0 : u.numeric
|
|
1095
|
-
}), Z = (u) => ({
|
|
1096
|
-
"b-data-grid-columns__column-separator-container--is-resizeable": n.hasResizableColumns,
|
|
1097
|
-
"b-data-grid-columns__column-separator-container--is-offset": n.hoveredOverColumnState.hoveredOverColumnField === u.field && n.hoveredOverColumnState.isSeparatorOffset
|
|
1098
|
-
}), Re = L(() => ({
|
|
1099
|
-
"b-data-grid-columns__column-header--truncated": n.truncateColumnHeaders
|
|
1100
|
-
}));
|
|
1101
|
-
return s({
|
|
1102
|
-
columnHeaderRefs: b
|
|
1103
|
-
}), (u, W) => (f(), R("div", {
|
|
1104
|
-
class: ce(["b-data-grid-columns", F.value]),
|
|
1105
|
-
"data-testid": "data-grid-columns"
|
|
1106
|
-
}, [
|
|
1107
|
-
(f(!0), R(_e, null, Le(o(E), (c, T) => (f(), R("div", oe({
|
|
1108
|
-
key: c.field,
|
|
1109
|
-
ref_for: !0,
|
|
1110
|
-
ref: (H) => x(H, c.field),
|
|
1111
|
-
"aria-colindex": T + 1,
|
|
1112
|
-
"aria-label": c.label,
|
|
1113
|
-
"aria-sort": G(c),
|
|
1114
|
-
class: [ue(c, T), "b-data-grid-columns__column"],
|
|
1115
|
-
"data-testid": `${c.field}-column-header`,
|
|
1116
|
-
draggable: e.hasDraggableColumns && !o(y) && !i(c),
|
|
1117
|
-
role: "columnheader",
|
|
1118
|
-
tabindex: c.sortable || e.hasColumnPanel || c.infoIconTooltip ? "0" : "-1",
|
|
1119
|
-
style: { width: c.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${c.width}px` }
|
|
1120
|
-
}, xe(te(c), !0)), [
|
|
1121
|
-
i(c) && e.selectable ? (f(), R("div", Lo, [
|
|
1122
|
-
Y(o(Kt), {
|
|
1123
|
-
"aria-label": o(l)("selectAll"),
|
|
1124
|
-
"model-value": e.allItemsSelectedState.allItemsSelected,
|
|
1125
|
-
"data-testid": "checkbox-select-all",
|
|
1126
|
-
indeterminate: e.allItemsSelectedState.isIndeterminate,
|
|
1127
|
-
value: "data-grid-select-all",
|
|
1128
|
-
"onUpdate:modelValue": a
|
|
1129
|
-
}, null, 8, ["aria-label", "model-value", "indeterminate"]),
|
|
1130
|
-
e.selectableAcrossPages ? (f(), B(o(et), {
|
|
1131
|
-
key: 0,
|
|
1132
|
-
class: "b-data-grid-columns__select-column-menu",
|
|
1133
|
-
data: h.value,
|
|
1134
|
-
"menu-position": "bottom-start",
|
|
1135
|
-
"menu-fixed-positioning": "",
|
|
1136
|
-
button: { variant: "tertiary", condensed: !0 }
|
|
1137
|
-
}, {
|
|
1138
|
-
iconLeft: V(() => [
|
|
1139
|
-
Y(o(So), {
|
|
1140
|
-
"svg-title": o(l)("selectionMenu")
|
|
1141
|
-
}, null, 8, ["svg-title"])
|
|
1142
|
-
]),
|
|
1143
|
-
_: 1
|
|
1144
|
-
}, 8, ["data"])) : k("", !0)
|
|
1145
|
-
])) : (f(), R(_e, { key: 1 }, [
|
|
1146
|
-
A("div", {
|
|
1147
|
-
"aria-label": o(l)("columnActions", { name: c.label }),
|
|
1148
|
-
"aria-live": "polite",
|
|
1149
|
-
role: "region",
|
|
1150
|
-
class: ce(["b-data-grid-columns__column-header-and-actions", ne(c)])
|
|
1151
|
-
}, [
|
|
1152
|
-
Y(o(Ze), {
|
|
1153
|
-
el: "div",
|
|
1154
|
-
strongest: "",
|
|
1155
|
-
class: ce(["b-data-grid-columns__column-header", Re.value])
|
|
1156
|
-
}, {
|
|
1157
|
-
default: V(() => [
|
|
1158
|
-
pe(u.$slots, `head-${c.field}`, { column: c }, () => [
|
|
1159
|
-
A("span", Ro, X(c.label), 1)
|
|
1160
|
-
], !0)
|
|
1161
|
-
]),
|
|
1162
|
-
_: 2
|
|
1163
|
-
}, 1032, ["class"]),
|
|
1164
|
-
C(c) ? (f(), R("div", {
|
|
1165
|
-
key: 0,
|
|
1166
|
-
class: ce(["b-data-grid-columns__column-actions", J(c)])
|
|
1167
|
-
}, [
|
|
1168
|
-
c.infoIconTooltip ? (f(), R("div", po, [
|
|
1169
|
-
Y(o(gl), {
|
|
1170
|
-
"tooltip-text": c.infoIconTooltip
|
|
1171
|
-
}, null, 8, ["tooltip-text"])
|
|
1172
|
-
])) : k("", !0),
|
|
1173
|
-
c.sortable ? (f(), R("div", Oo, [
|
|
1174
|
-
Y(o(ut), {
|
|
1175
|
-
condensed: "",
|
|
1176
|
-
toggled: o(w)(c.field),
|
|
1177
|
-
variant: "tertiary",
|
|
1178
|
-
onClick: (H) => o(q)(c.field)
|
|
1179
|
-
}, {
|
|
1180
|
-
iconLeft: V(() => [
|
|
1181
|
-
o(v)(c.field) ? o(v)(c.field) === o(Ie).ASCENDING ? (f(), B(o(co), {
|
|
1182
|
-
key: 1,
|
|
1183
|
-
"svg-title": o(l)("sortColumnInDescendingOrder", { name: c.label })
|
|
1184
|
-
}, null, 8, ["svg-title"])) : o(v)(c.field) === o(Ie).DESCENDING ? (f(), B(o(Co), {
|
|
1185
|
-
key: 2,
|
|
1186
|
-
"svg-title": o(l)("sortColumnInAscendingOrder", { name: c.label })
|
|
1187
|
-
}, null, 8, ["svg-title"])) : k("", !0) : (f(), B(o(Kl), {
|
|
1188
|
-
key: 0,
|
|
1189
|
-
"svg-title": o(l)("sortColumn", { name: c.label })
|
|
1190
|
-
}, null, 8, ["svg-title"]))
|
|
1191
|
-
]),
|
|
1192
|
-
_: 2
|
|
1193
|
-
}, 1032, ["toggled", "onClick"])
|
|
1194
|
-
])) : k("", !0),
|
|
1195
|
-
e.hasColumnPanel && g.value === c.field ? (f(), B(o(et), {
|
|
1196
|
-
key: 2,
|
|
1197
|
-
ref_for: !0,
|
|
1198
|
-
ref: (H) => O.value[c.field] = H,
|
|
1199
|
-
class: "b-data-grid-columns__menu",
|
|
1200
|
-
data: N.value(c),
|
|
1201
|
-
"menu-position": P(e.hasFirstColumnPanelRightAligned, T),
|
|
1202
|
-
"menu-fixed-positioning": !0,
|
|
1203
|
-
button: { variant: "tertiary", condensed: !0 },
|
|
1204
|
-
onOpen: W[0] || (W[0] = (H) => u.$emit(o(ie).COLUMN_MENU_OPEN)),
|
|
1205
|
-
onClose: W[1] || (W[1] = (H) => u.$emit(o(ie).COLUMN_MENU_CLOSE))
|
|
1206
|
-
}, null, 8, ["data", "menu-position"])) : k("", !0)
|
|
1207
|
-
], 2)) : k("", !0)
|
|
1208
|
-
], 10, bo),
|
|
1209
|
-
A("div", {
|
|
1210
|
-
"data-testid": `data-grid-column-${c.field}`,
|
|
1211
|
-
class: ce(["b-data-grid-columns__column-separator-container", Z(c)]),
|
|
1212
|
-
role: "presentation",
|
|
1213
|
-
onMousedown: (H) => o(S)(e.hasResizableColumns, c.field, H),
|
|
1214
|
-
onClick: W[2] || (W[2] = Zn(() => {
|
|
1215
|
-
}, ["stop"]))
|
|
1216
|
-
}, [
|
|
1217
|
-
!e.isFrozenColumns || e.isFrozenColumns && T !== o(E).length - 1 ? (f(), R("div", No)) : k("", !0)
|
|
1218
|
-
], 42, Ao)
|
|
1219
|
-
], 64))
|
|
1220
|
-
], 16, Eo))), 128))
|
|
1221
|
-
], 2));
|
|
1222
|
-
}
|
|
1223
|
-
}), $o = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-cfa55fda"]]);
|
|
1224
|
-
var Ne = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(Ne || {});
|
|
1225
|
-
let Ft = 0;
|
|
1226
|
-
const Do = {
|
|
1227
|
-
beforeCreate() {
|
|
1228
|
-
this.uuid = Ft.toString(), Ft += 1;
|
|
1229
|
-
}
|
|
1230
|
-
}, ko = { key: 0 }, Mo = ["clip-path"], zo = ["id"];
|
|
1231
|
-
function Fo(e, s, m, n, r, t) {
|
|
1232
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
1233
|
-
class: "ui-assets-icons-16",
|
|
1234
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1235
|
-
width: "16",
|
|
1236
|
-
height: "16",
|
|
1237
|
-
fill: "none"
|
|
1238
|
-
}), [
|
|
1239
|
-
e.$attrs["svg-title"] ? (f(), R("title", ko, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
1240
|
-
A("g", {
|
|
1241
|
-
fill: "#00112C",
|
|
1242
|
-
"clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
|
|
1243
|
-
}, s[0] || (s[0] = [
|
|
1244
|
-
A("path", { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" }, null, -1),
|
|
1245
|
-
A("path", { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" }, null, -1)
|
|
1246
|
-
]), 8, Mo),
|
|
1247
|
-
A("defs", null, [
|
|
1248
|
-
A("clipPath", {
|
|
1249
|
-
id: "uia-ui-assets/icons-16-settings__a" + e.uuid
|
|
1250
|
-
}, s[1] || (s[1] = [
|
|
1251
|
-
A("rect", {
|
|
1252
|
-
width: "16",
|
|
1253
|
-
height: "16",
|
|
1254
|
-
fill: "#fff"
|
|
1255
|
-
}, null, -1)
|
|
1256
|
-
]), 8, zo)
|
|
1257
|
-
])
|
|
1258
|
-
], 16);
|
|
1259
|
-
}
|
|
1260
|
-
const Uo = /* @__PURE__ */ de(Do, [["render", Fo]]), Ut = {
|
|
1261
|
-
"en-US": {
|
|
1262
|
-
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1263
|
-
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1264
|
-
}
|
|
1265
|
-
}, Po = Oe({
|
|
1266
|
-
i18n: { messages: Ut },
|
|
1267
|
-
name: "bento-data-grid",
|
|
1268
|
-
components: {
|
|
1269
|
-
BentoFreezeIcon: Xt,
|
|
1270
|
-
BentoToggle: qt
|
|
1271
|
-
},
|
|
1272
|
-
props: {
|
|
1273
|
-
/**
|
|
1274
|
-
* Is column visibitlity toggle disabled
|
|
1275
|
-
*/
|
|
1276
|
-
isColumnVisibilityToggleDisabled: {
|
|
1277
|
-
type: Boolean,
|
|
1278
|
-
required: !0
|
|
1279
|
-
},
|
|
1280
|
-
/**
|
|
1281
|
-
* Column definition
|
|
1282
|
-
*/
|
|
1283
|
-
column: {
|
|
1284
|
-
type: Object,
|
|
1285
|
-
required: !0
|
|
1286
|
-
}
|
|
1287
|
-
},
|
|
1288
|
-
emits: ["visible-column", "updated-column"],
|
|
1289
|
-
setup(e, { emit: s }) {
|
|
1290
|
-
const { t: m } = $e({ messages: Ut }), n = p(!1), r = L(() => {
|
|
1291
|
-
var g;
|
|
1292
|
-
return (g = e.column) == null ? void 0 : g.frozen;
|
|
1293
|
-
}), t = L(() => {
|
|
1294
|
-
var g;
|
|
1295
|
-
return ((g = e.column) == null ? void 0 : g.visible) !== !1;
|
|
1296
|
-
}), l = () => {
|
|
1297
|
-
s("visible-column", { ...e.column, visible: !t.value });
|
|
1298
|
-
}, E = () => {
|
|
1299
|
-
s("updated-column", { ...e.column, frozen: !r.value });
|
|
1300
|
-
}, _ = () => {
|
|
1301
|
-
r.value || (n.value = !0);
|
|
1302
|
-
}, b = () => {
|
|
1303
|
-
r.value || (n.value = !1);
|
|
1304
|
-
}, O = L(() => ({
|
|
1305
|
-
"b-data-grid-config-settings-column-row__freeze-icon--frozen": r.value
|
|
1306
|
-
}));
|
|
1307
|
-
return {
|
|
1308
|
-
// Values
|
|
1309
|
-
isFreezeIconOptionShown: n,
|
|
1310
|
-
isColumnFrozen: r,
|
|
1311
|
-
freezeIconConditionalClasses: O,
|
|
1312
|
-
isColumnVisible: t,
|
|
1313
|
-
// Methods
|
|
1314
|
-
toggleColumnVisibility: l,
|
|
1315
|
-
showFreezeIcon: _,
|
|
1316
|
-
hideFreezeIcon: b,
|
|
1317
|
-
toggleColumnFreeze: E,
|
|
1318
|
-
// Translations
|
|
1319
|
-
t: m
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
});
|
|
1323
|
-
function Bo(e, s, m, n, r, t) {
|
|
1324
|
-
const l = Ee("bento-toggle"), E = Ee("bento-freeze-icon");
|
|
1325
|
-
return f(), R("div", {
|
|
1326
|
-
class: "b-data-grid-config-settings-column-row",
|
|
1327
|
-
onMouseover: s[0] || (s[0] = (..._) => e.showFreezeIcon && e.showFreezeIcon(..._)),
|
|
1328
|
-
onMouseleave: s[1] || (s[1] = (..._) => e.hideFreezeIcon && e.hideFreezeIcon(..._))
|
|
1329
|
-
}, [
|
|
1330
|
-
Y(l, {
|
|
1331
|
-
"aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
|
|
1332
|
-
disabled: e.isColumnVisibilityToggleDisabled,
|
|
1333
|
-
"label-position": "after",
|
|
1334
|
-
value: e.isColumnVisible,
|
|
1335
|
-
onInput: e.toggleColumnVisibility
|
|
1336
|
-
}, {
|
|
1337
|
-
default: V(() => [
|
|
1338
|
-
ve(X(e.column.label), 1)
|
|
1339
|
-
]),
|
|
1340
|
-
_: 1
|
|
1341
|
-
}, 8, ["aria-label", "disabled", "value", "onInput"]),
|
|
1342
|
-
st(Y(E, {
|
|
1343
|
-
"aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
|
|
1344
|
-
class: ce(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
|
|
1345
|
-
onClick: e.toggleColumnFreeze
|
|
1346
|
-
}, null, 8, ["aria-label", "class", "onClick"]), [
|
|
1347
|
-
[jn, e.isColumnFrozen || e.isFreezeIconOptionShown]
|
|
1348
|
-
])
|
|
1349
|
-
], 32);
|
|
1350
|
-
}
|
|
1351
|
-
const Wo = /* @__PURE__ */ de(Po, [["render", Bo], ["__scopeId", "data-v-bb87a729"]]), Pt = {
|
|
1352
|
-
"en-US": {
|
|
1353
|
-
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1354
|
-
closeSearch: "Close search",
|
|
1355
|
-
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1356
|
-
columns: "Columns",
|
|
1357
|
-
condensed: "Condensed",
|
|
1358
|
-
condensedToggle: "Condensed toggle",
|
|
1359
|
-
configSettingsPanel: "Configuration settings Panel",
|
|
1360
|
-
displayOptions: "Display options",
|
|
1361
|
-
noColumnsMatch: "No columns match this search",
|
|
1362
|
-
search: "Search",
|
|
1363
|
-
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1364
|
-
size: "Size",
|
|
1365
|
-
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility"
|
|
1366
|
-
},
|
|
1367
|
-
"ja-JP": {
|
|
1368
|
-
condensed: "凝縮",
|
|
1369
|
-
search: "検索",
|
|
1370
|
-
size: "サイズ"
|
|
1371
|
-
},
|
|
1372
|
-
"pt-BR": {
|
|
1373
|
-
condensed: "Condensado",
|
|
1374
|
-
search: "Buscar",
|
|
1375
|
-
size: "Tamanho"
|
|
1376
|
-
}
|
|
1377
|
-
}, Go = Oe({
|
|
1378
|
-
i18n: { messages: Pt },
|
|
1379
|
-
name: "bento-data-grid",
|
|
1380
|
-
components: {
|
|
1381
|
-
BentoButton: jt,
|
|
1382
|
-
BentoCrossIcon: xt,
|
|
1383
|
-
BentoPopover: rl,
|
|
1384
|
-
BentoSettingsIcon: Uo,
|
|
1385
|
-
BentoToggleButton: ut,
|
|
1386
|
-
BentoDataGridConfigSettingsConfigRow: Wo,
|
|
1387
|
-
BentoSearchBar: dl,
|
|
1388
|
-
BentoSearchIcon: fl,
|
|
1389
|
-
BentoToggle: qt,
|
|
1390
|
-
BentoTypography: Ze
|
|
1391
|
-
},
|
|
1392
|
-
directives: { BentoClickOutsideDirective: cl },
|
|
1393
|
-
props: {
|
|
1394
|
-
/**
|
|
1395
|
-
* Column definitions
|
|
1396
|
-
*/
|
|
1397
|
-
columns: {
|
|
1398
|
-
type: Array,
|
|
1399
|
-
required: !0
|
|
1400
|
-
},
|
|
1401
|
-
/**
|
|
1402
|
-
* Sets the row cells to the condensed padding state.
|
|
1403
|
-
*/
|
|
1404
|
-
condensed: {
|
|
1405
|
-
type: Boolean,
|
|
1406
|
-
default: !1
|
|
1407
|
-
}
|
|
1408
|
-
},
|
|
1409
|
-
emits: [Ne.CONFIG_SETTINGS, Ne.UPDATE_COLUMNS],
|
|
1410
|
-
setup(e, { emit: s }) {
|
|
1411
|
-
const { t: m } = $e({ messages: Pt }), n = p(null), r = Qe("data-grid-config-settings-popover"), t = p(null), l = p(!1), E = p(!0), _ = p(null), b = p(""), O = Xe(e, "columns"), g = p(!1), D = ul(b, O), a = () => {
|
|
1412
|
-
b.value = "";
|
|
1413
|
-
}, i = L(
|
|
1414
|
-
() => !e.columns.some((M) => M.visible === !1 && !M.mandatory)
|
|
1415
|
-
), h = () => {
|
|
1416
|
-
a(), g.value = !g.value, g.value ? Ce(() => {
|
|
1417
|
-
var M;
|
|
1418
|
-
return (M = t.value.$refs.bentoInputField) == null ? void 0 : M.focusInput();
|
|
1419
|
-
}) : Ce(() => {
|
|
1420
|
-
var M, N;
|
|
1421
|
-
return (N = (M = _ == null ? void 0 : _.value) == null ? void 0 : M.$el) == null ? void 0 : N.focus();
|
|
1422
|
-
}), E.value = i.value;
|
|
1423
|
-
}, S = (M) => M.mandatory ?? !1, y = (M) => {
|
|
1424
|
-
const N = e.columns.map((U) => ({
|
|
1425
|
-
...U,
|
|
1426
|
-
visible: M.field === U.field ? M.visible : U.visible
|
|
1427
|
-
}));
|
|
1428
|
-
s(Ne.UPDATE_COLUMNS, N);
|
|
1429
|
-
}, d = (M) => {
|
|
1430
|
-
M ? s(
|
|
1431
|
-
Ne.UPDATE_COLUMNS,
|
|
1432
|
-
e.columns.map((N) => ({ ...N, visible: !0 }))
|
|
1433
|
-
) : s(
|
|
1434
|
-
Ne.UPDATE_COLUMNS,
|
|
1435
|
-
e.columns.map((N) => ({ ...N, visible: (N == null ? void 0 : N.mandatory) === !0 }))
|
|
1436
|
-
);
|
|
1437
|
-
}, w = (M) => {
|
|
1438
|
-
const N = e.columns.map((U) => ({
|
|
1439
|
-
...U,
|
|
1440
|
-
frozen: M.field === U.field ? !!(M != null && M.frozen) : !!(U != null && U.frozen)
|
|
1441
|
-
}));
|
|
1442
|
-
s(Ne.UPDATE_COLUMNS, N);
|
|
1443
|
-
}, v = (M) => {
|
|
1444
|
-
l.value = M, E.value = i.value;
|
|
1445
|
-
};
|
|
1446
|
-
return {
|
|
1447
|
-
// Values
|
|
1448
|
-
configSettingsButtonRef: n,
|
|
1449
|
-
popoverId: r,
|
|
1450
|
-
isConfigSettingsPanelOpen: l,
|
|
1451
|
-
allColumnsVisbilityToggleState: E,
|
|
1452
|
-
filteredColumnVisibilityColumns: D,
|
|
1453
|
-
searchTerm: b,
|
|
1454
|
-
isColumnVisibilityFilterShown: g,
|
|
1455
|
-
searchBarRef: t,
|
|
1456
|
-
searchButtonRef: _,
|
|
1457
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: he,
|
|
1458
|
-
// Methods
|
|
1459
|
-
setConfigSettingsPanelVisibility: v,
|
|
1460
|
-
emitCondensedToggle: (M) => s(Ne.CONFIG_SETTINGS, M),
|
|
1461
|
-
toggleAllColumnVisibility: d,
|
|
1462
|
-
clearAction: a,
|
|
1463
|
-
toggleColumnFilter: h,
|
|
1464
|
-
emitVisibleColumns: y,
|
|
1465
|
-
emitFrozenColumns: w,
|
|
1466
|
-
onClickOutside: () => v(!1),
|
|
1467
|
-
isColumnVisibilityToggleDisabled: S,
|
|
1468
|
-
// Translations
|
|
1469
|
-
t: m
|
|
1470
|
-
};
|
|
1471
|
-
}
|
|
1472
|
-
}), Ho = { class: "b-data-grid-config-settings" }, Vo = { class: "b-data-grid-config-settings__button-and-separator" }, xo = {
|
|
1473
|
-
ref: "configSettingsButtonRef",
|
|
1474
|
-
class: "b-data-grid-config-settings__button-container"
|
|
1475
|
-
}, Zo = { class: "b-data-grid-config-settings__panel-header" }, jo = { class: "b-data-grid-config-settings__condensed-view-settings" }, qo = { class: "b-data-grid-config-settings__column-visibility-settings" }, Ko = { class: "b-data-grid-config-settings__column-visibility-header" }, Yo = {
|
|
1476
|
-
key: 0,
|
|
1477
|
-
class: "b-data-grid-config-settings__column-visibility-search"
|
|
1478
|
-
}, Xo = {
|
|
1479
|
-
key: 1,
|
|
1480
|
-
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1481
|
-
}, Jo = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1482
|
-
function Qo(e, s, m, n, r, t) {
|
|
1483
|
-
const l = Ee("bento-settings-icon"), E = Ee("bento-toggle-button"), _ = Ee("bento-typography"), b = Ee("bento-cross-icon"), O = Ee("bento-button"), g = Ee("bento-toggle"), D = Ee("bento-search-icon"), a = Ee("bento-search-bar"), i = Ee("bento-data-grid-config-settings-config-row"), h = Ee("bento-popover"), S = qn("bento-click-outside-directive");
|
|
1484
|
-
return st((f(), R("div", Ho, [
|
|
1485
|
-
A("div", Vo, [
|
|
1486
|
-
A("div", xo, [
|
|
1487
|
-
Y(E, {
|
|
1488
|
-
"aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
|
|
1489
|
-
variant: "tertiary",
|
|
1490
|
-
condensed: "",
|
|
1491
|
-
toggled: e.isConfigSettingsPanelOpen,
|
|
1492
|
-
onClick: s[0] || (s[0] = (y) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
|
|
1493
|
-
}, {
|
|
1494
|
-
iconLeft: V(() => [
|
|
1495
|
-
Y(l, {
|
|
1496
|
-
"svg-title": e.t("toggleConfigSettingsPanelVisibility")
|
|
1497
|
-
}, null, 8, ["svg-title"])
|
|
1498
|
-
]),
|
|
1499
|
-
_: 1
|
|
1500
|
-
}, 8, ["aria-controls", "toggled"])
|
|
1501
|
-
], 512)
|
|
1502
|
-
]),
|
|
1503
|
-
e.configSettingsButtonRef ? (f(), B(h, {
|
|
1504
|
-
key: 0,
|
|
1505
|
-
id: e.popoverId,
|
|
1506
|
-
open: e.isConfigSettingsPanelOpen,
|
|
1507
|
-
class: "b-data-grid-config-settings__panel",
|
|
1508
|
-
"aria-label": e.t("configSettingsPanel"),
|
|
1509
|
-
"target-element": e.configSettingsButtonRef,
|
|
1510
|
-
position: "bottom-end"
|
|
1511
|
-
}, {
|
|
1512
|
-
default: V(() => [
|
|
1513
|
-
A("div", Zo, [
|
|
1514
|
-
Y(_, {
|
|
1515
|
-
el: "span",
|
|
1516
|
-
strongest: ""
|
|
1517
|
-
}, {
|
|
1518
|
-
default: V(() => [
|
|
1519
|
-
ve(X(e.t("displayOptions")), 1)
|
|
1520
|
-
]),
|
|
1521
|
-
_: 1
|
|
1522
|
-
}),
|
|
1523
|
-
Y(O, {
|
|
1524
|
-
variant: "tertiary",
|
|
1525
|
-
onClick: s[1] || (s[1] = (y) => e.setConfigSettingsPanelVisibility(!1))
|
|
1526
|
-
}, {
|
|
1527
|
-
iconLeft: V(() => [
|
|
1528
|
-
Y(b, {
|
|
1529
|
-
"svg-title": e.t("closeConfigSettingsPanel")
|
|
1530
|
-
}, null, 8, ["svg-title"])
|
|
1531
|
-
]),
|
|
1532
|
-
_: 1
|
|
1533
|
-
})
|
|
1534
|
-
]),
|
|
1535
|
-
A("div", jo, [
|
|
1536
|
-
Y(_, {
|
|
1537
|
-
class: "b-data-grid-config-settings__condensed-view-title",
|
|
1538
|
-
el: "span",
|
|
1539
|
-
stronger: ""
|
|
1540
|
-
}, {
|
|
1541
|
-
default: V(() => [
|
|
1542
|
-
ve(X(e.t("size")), 1)
|
|
1543
|
-
]),
|
|
1544
|
-
_: 1
|
|
1545
|
-
}),
|
|
1546
|
-
Y(g, {
|
|
1547
|
-
"label-position": "after",
|
|
1548
|
-
"aria-label": e.t("condensedToggle"),
|
|
1549
|
-
value: e.condensed,
|
|
1550
|
-
onInput: e.emitCondensedToggle
|
|
1551
|
-
}, {
|
|
1552
|
-
default: V(() => [
|
|
1553
|
-
ve(X(e.t("condensed")), 1)
|
|
1554
|
-
]),
|
|
1555
|
-
_: 1
|
|
1556
|
-
}, 8, ["aria-label", "value", "onInput"])
|
|
1557
|
-
]),
|
|
1558
|
-
A("div", qo, [
|
|
1559
|
-
A("div", Ko, [
|
|
1560
|
-
Y(_, {
|
|
1561
|
-
class: "b-data-grid-config-settings__column-visibility-title",
|
|
1562
|
-
el: "span",
|
|
1563
|
-
stronger: ""
|
|
1564
|
-
}, {
|
|
1565
|
-
default: V(() => [
|
|
1566
|
-
ve(X(e.t("columns")), 1)
|
|
1567
|
-
]),
|
|
1568
|
-
_: 1
|
|
1569
|
-
}),
|
|
1570
|
-
e.isColumnVisibilityFilterShown ? (f(), B(O, {
|
|
1571
|
-
key: 1,
|
|
1572
|
-
variant: "tertiary",
|
|
1573
|
-
onClick: e.toggleColumnFilter
|
|
1574
|
-
}, {
|
|
1575
|
-
iconLeft: V(() => [
|
|
1576
|
-
Y(b)
|
|
1577
|
-
]),
|
|
1578
|
-
default: V(() => [
|
|
1579
|
-
ve(" " + X(e.t("closeSearch")), 1)
|
|
1580
|
-
]),
|
|
1581
|
-
_: 1
|
|
1582
|
-
}, 8, ["onClick"])) : (f(), B(O, {
|
|
1583
|
-
key: 0,
|
|
1584
|
-
ref: "searchButtonRef",
|
|
1585
|
-
variant: "tertiary",
|
|
1586
|
-
onClick: e.toggleColumnFilter
|
|
1587
|
-
}, {
|
|
1588
|
-
iconLeft: V(() => [
|
|
1589
|
-
Y(D)
|
|
1590
|
-
]),
|
|
1591
|
-
default: V(() => [
|
|
1592
|
-
ve(X(e.t("search")), 1)
|
|
1593
|
-
]),
|
|
1594
|
-
_: 1
|
|
1595
|
-
}, 8, ["onClick"]))
|
|
1596
|
-
]),
|
|
1597
|
-
e.isColumnVisibilityFilterShown ? (f(), R("div", Yo, [
|
|
1598
|
-
Y(a, {
|
|
1599
|
-
ref: "searchBarRef",
|
|
1600
|
-
value: e.searchTerm,
|
|
1601
|
-
"input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
|
|
1602
|
-
onInput: s[2] || (s[2] = (y) => e.searchTerm = y),
|
|
1603
|
-
onClear: e.clearAction,
|
|
1604
|
-
onEscapePressed: e.toggleColumnFilter
|
|
1605
|
-
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
1606
|
-
])) : (f(), R("div", Xo, [
|
|
1607
|
-
Y(g, {
|
|
1608
|
-
"label-position": "after",
|
|
1609
|
-
value: e.allColumnsVisbilityToggleState,
|
|
1610
|
-
onInput: e.toggleAllColumnVisibility
|
|
1611
|
-
}, {
|
|
1612
|
-
default: V(() => [
|
|
1613
|
-
ve(X(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
|
|
1614
|
-
]),
|
|
1615
|
-
_: 1
|
|
1616
|
-
}, 8, ["value", "onInput"])
|
|
1617
|
-
])),
|
|
1618
|
-
A("div", Jo, [
|
|
1619
|
-
(f(!0), R(_e, null, Le(e.filteredColumnVisibilityColumns, (y) => (f(), R("div", {
|
|
1620
|
-
key: y.field
|
|
1621
|
-
}, [
|
|
1622
|
-
y.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (f(), B(i, {
|
|
1623
|
-
key: 0,
|
|
1624
|
-
column: y,
|
|
1625
|
-
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(y),
|
|
1626
|
-
onVisibleColumn: e.emitVisibleColumns,
|
|
1627
|
-
onUpdatedColumn: e.emitFrozenColumns
|
|
1628
|
-
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : k("", !0)
|
|
1629
|
-
]))), 128)),
|
|
1630
|
-
e.filteredColumnVisibilityColumns.length === 0 ? (f(), B(_, {
|
|
1631
|
-
key: 0,
|
|
1632
|
-
el: "span",
|
|
1633
|
-
class: "b-data-grid-config-settings__column-visibility-empty-search-message"
|
|
1634
|
-
}, {
|
|
1635
|
-
default: V(() => [
|
|
1636
|
-
ve(X(e.t("noColumnsMatch")), 1)
|
|
1637
|
-
]),
|
|
1638
|
-
_: 1
|
|
1639
|
-
})) : k("", !0)
|
|
1640
|
-
])
|
|
1641
|
-
])
|
|
1642
|
-
]),
|
|
1643
|
-
_: 1
|
|
1644
|
-
}, 8, ["id", "open", "aria-label", "target-element"])) : k("", !0)
|
|
1645
|
-
])), [
|
|
1646
|
-
[S, e.onClickOutside]
|
|
1647
|
-
]);
|
|
1648
|
-
}
|
|
1649
|
-
const es = /* @__PURE__ */ de(Go, [["render", Qo], ["__scopeId", "data-v-f5950a53"]]), je = {
|
|
1650
|
-
"en-US": {
|
|
1651
|
-
gettingYourData: "Getting your data",
|
|
1652
|
-
loading: "Loading",
|
|
1653
|
-
selectRow: "Select row",
|
|
1654
|
-
showMore: "Show more",
|
|
1655
|
-
sortAscending: "{field} sort ascending",
|
|
1656
|
-
sortDescending: "{field} sort descending",
|
|
1657
|
-
sortInactive: "{field} sort inactive"
|
|
1658
|
-
},
|
|
1659
|
-
"ja-JP": {
|
|
1660
|
-
loading: "読み込み中",
|
|
1661
|
-
showMore: "表示内容を増やす"
|
|
1662
|
-
},
|
|
1663
|
-
"pt-BR": {
|
|
1664
|
-
loading: "Carregando",
|
|
1665
|
-
showMore: "Mostrar mais"
|
|
1666
|
-
}
|
|
1667
|
-
}, ts = { class: "b-data-grid-lazy-load" }, ns = {
|
|
1668
|
-
i18n: { messages: je }
|
|
1669
|
-
}, ls = /* @__PURE__ */ Oe({
|
|
1670
|
-
...ns,
|
|
1671
|
-
__name: "data-grid-lazy-load",
|
|
1672
|
-
props: {
|
|
1673
|
-
loading: { type: Boolean },
|
|
1674
|
-
isInfiniteScroll: { type: Boolean }
|
|
1675
|
-
},
|
|
1676
|
-
setup(e) {
|
|
1677
|
-
const { t: s } = $e({ messages: je });
|
|
1678
|
-
return (m, n) => (f(), R("div", ts, [
|
|
1679
|
-
m.loading && m.isInfiniteScroll ? (f(), B(o(at), { key: 0 })) : k("", !0),
|
|
1680
|
-
m.loading && !m.isInfiniteScroll ? (f(), B(o(Rt), {
|
|
1681
|
-
key: 1,
|
|
1682
|
-
variant: "secondary",
|
|
1683
|
-
state: o(pt).LOADING
|
|
1684
|
-
}, {
|
|
1685
|
-
default: V(() => [
|
|
1686
|
-
ve(X(o(s)("loading")), 1)
|
|
1687
|
-
]),
|
|
1688
|
-
_: 1
|
|
1689
|
-
}, 8, ["state"])) : k("", !0),
|
|
1690
|
-
!m.loading && !m.isInfiniteScroll ? (f(), B(o(Rt), {
|
|
1691
|
-
key: 2,
|
|
1692
|
-
state: o(pt).START,
|
|
1693
|
-
variant: "secondary",
|
|
1694
|
-
onClick: n[0] || (n[0] = (r) => m.$emit(o($).UPDATE_SHOW_MORE))
|
|
1695
|
-
}, {
|
|
1696
|
-
default: V(() => [
|
|
1697
|
-
ve(X(o(s)("showMore")), 1)
|
|
1698
|
-
]),
|
|
1699
|
-
_: 1
|
|
1700
|
-
}, 8, ["state"])) : k("", !0)
|
|
1701
|
-
]));
|
|
1702
|
-
}
|
|
1703
|
-
}), os = /* @__PURE__ */ de(ls, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1704
|
-
let Bt = 0;
|
|
1705
|
-
const ss = {
|
|
1706
|
-
beforeCreate() {
|
|
1707
|
-
this.uuid = Bt.toString(), Bt += 1;
|
|
1708
|
-
}
|
|
1709
|
-
}, is = { key: 0 };
|
|
1710
|
-
function as(e, s, m, n, r, t) {
|
|
1711
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
1712
|
-
class: "ui-assets-icons-16",
|
|
1713
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1714
|
-
width: "16",
|
|
1715
|
-
height: "16",
|
|
1716
|
-
fill: "none"
|
|
1717
|
-
}), [
|
|
1718
|
-
e.$attrs["svg-title"] ? (f(), R("title", is, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
1719
|
-
s[0] || (s[0] = A("path", {
|
|
1720
|
-
fill: "#00112C",
|
|
1721
|
-
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"
|
|
1722
|
-
}, null, -1))
|
|
1723
|
-
], 16);
|
|
1724
|
-
}
|
|
1725
|
-
const rs = /* @__PURE__ */ de(ss, [["render", as]]), Qt = {
|
|
1726
|
-
"en-US": {
|
|
1727
|
-
copy: "Copy",
|
|
1728
|
-
edit: "Edit",
|
|
1729
|
-
more: "More",
|
|
1730
|
-
open: "Open"
|
|
1731
|
-
},
|
|
1732
|
-
"ja-JP": {
|
|
1733
|
-
copy: "コピー",
|
|
1734
|
-
edit: "編集",
|
|
1735
|
-
more: "表示を増やす",
|
|
1736
|
-
open: "を開く"
|
|
1737
|
-
},
|
|
1738
|
-
"pt-BR": {
|
|
1739
|
-
copy: "Copiar",
|
|
1740
|
-
edit: "Editar",
|
|
1741
|
-
more: "Mais",
|
|
1742
|
-
open: "Abrir"
|
|
1743
|
-
}
|
|
1744
|
-
}, ds = { class: "b-data-grid-cell-actions" }, us = {
|
|
1745
|
-
i18n: { messages: Qt },
|
|
1746
|
-
name: "data-grid-cell-actions"
|
|
1747
|
-
}, cs = /* @__PURE__ */ Oe({
|
|
1748
|
-
...us,
|
|
1749
|
-
props: {
|
|
1750
|
-
/**
|
|
1751
|
-
* Column definitions using 'key' to relate to data object.
|
|
1752
|
-
*/
|
|
1753
|
-
cellActions: {
|
|
1754
|
-
type: [Array, Function],
|
|
1755
|
-
required: !0,
|
|
1756
|
-
validator: (e) => (e == null ? void 0 : e.length) <= 2
|
|
1757
|
-
},
|
|
1758
|
-
/**
|
|
1759
|
-
* The column field key.
|
|
1760
|
-
*/
|
|
1761
|
-
columnKey: {
|
|
1762
|
-
type: String,
|
|
1763
|
-
default: void 0
|
|
1764
|
-
},
|
|
1765
|
-
/**
|
|
1766
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1767
|
-
*/
|
|
1768
|
-
hasRightOverflow: {
|
|
1769
|
-
type: Boolean,
|
|
1770
|
-
default: !1
|
|
1771
|
-
},
|
|
1772
|
-
/**
|
|
1773
|
-
* Set if set to true will teleport the action menu component
|
|
1774
|
-
*/
|
|
1775
|
-
teleportMenu: {
|
|
1776
|
-
type: Boolean,
|
|
1777
|
-
default: !1
|
|
1778
|
-
},
|
|
1779
|
-
/**
|
|
1780
|
-
* The row data item object.
|
|
1781
|
-
*/
|
|
1782
|
-
rowDataItem: {
|
|
1783
|
-
type: Object,
|
|
1784
|
-
required: !0
|
|
1785
|
-
}
|
|
1786
|
-
},
|
|
1787
|
-
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1788
|
-
setup(e, { emit: s }) {
|
|
1789
|
-
const { t: m } = $e({ messages: Qt }), n = e, r = s, t = L(() => n.columnKey === void 0), l = L(() => ({
|
|
1790
|
-
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": t.value && n.hasRightOverflow
|
|
1791
|
-
})), E = L(() => ({
|
|
1792
|
-
"b-data-grid-cell-actions__actions--with-row-actions": t.value
|
|
1793
|
-
})), _ = L(() => !t.value || t.value && n.hasRightOverflow);
|
|
1794
|
-
function b(d) {
|
|
1795
|
-
return typeof d == "function";
|
|
1796
|
-
}
|
|
1797
|
-
const O = L(() => {
|
|
1798
|
-
var w;
|
|
1799
|
-
const d = b(n.cellActions) ? (w = n.cellActions) == null ? void 0 : w.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1800
|
-
return (d == null ? void 0 : d.length) > 2 && Zt(
|
|
1801
|
-
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1802
|
-
), d == null ? void 0 : d.slice(0, 2);
|
|
1803
|
-
}), g = L(() => (d, w) => {
|
|
1804
|
-
if (!(!w && d.isShort || w && !d.isShort))
|
|
1805
|
-
switch (d.variant) {
|
|
1806
|
-
case "copy":
|
|
1807
|
-
return m("copy");
|
|
1808
|
-
case "edit":
|
|
1809
|
-
return m("edit");
|
|
1810
|
-
case "open":
|
|
1811
|
-
return m("open");
|
|
1812
|
-
case "more":
|
|
1813
|
-
return m("more");
|
|
1814
|
-
default:
|
|
1815
|
-
return d.title;
|
|
1816
|
-
}
|
|
1817
|
-
}), D = (d) => (d == null ? void 0 : d.event) !== void 0 ? {
|
|
1818
|
-
click: (w) => {
|
|
1819
|
-
w.stopPropagation(), d.event(n.rowDataItem, n.columnKey);
|
|
1820
|
-
}
|
|
1821
|
-
} : {}, a = (d) => ({
|
|
1822
|
-
...d,
|
|
1823
|
-
handler: () => {
|
|
1824
|
-
d != null && d.handler && typeof d.handler == "function" && (d == null || d.handler()), d != null && d.event && typeof d.event == "function" && (d == null || d.event(n.rowDataItem, n.columnKey));
|
|
1825
|
-
}
|
|
1826
|
-
}), i = (d) => d.map((w) => {
|
|
1827
|
-
const v = w;
|
|
1828
|
-
return v != null && v.items && (v.items = i(v.items)), { ...a(v) };
|
|
1829
|
-
}), h = (d) => {
|
|
1830
|
-
var w, v;
|
|
1831
|
-
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (v = (w = n.rowDataItem) == null ? void 0 : w[n.columnKey]) == null ? void 0 : v.toString() : "";
|
|
1832
|
-
}, S = (d) => d.iconRight || ((d == null ? void 0 : d.variant) === "more" || (d == null ? void 0 : d.variant) === "open") && !d.isShort, y = (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more";
|
|
1833
|
-
return (d, w) => (f(), B(Ht, {
|
|
1834
|
-
name: "b-data-grid-cell-actions__animation",
|
|
1835
|
-
appear: ""
|
|
1836
|
-
}, {
|
|
1837
|
-
default: V(() => [
|
|
1838
|
-
A("div", ds, [
|
|
1839
|
-
_.value ? (f(), R("div", {
|
|
1840
|
-
key: 0,
|
|
1841
|
-
class: ce(["b-data-grid-cell-actions__background-gradient", l.value])
|
|
1842
|
-
}, null, 2)) : k("", !0),
|
|
1843
|
-
A("div", {
|
|
1844
|
-
class: ce(["b-data-grid-cell-actions__actions", E.value]),
|
|
1845
|
-
role: "group"
|
|
1846
|
-
}, [
|
|
1847
|
-
(f(!0), R(_e, null, Le(O.value, (v, q) => (f(), R("div", {
|
|
1848
|
-
key: q,
|
|
1849
|
-
class: "b-data-grid-cell-actions__action"
|
|
1850
|
-
}, [
|
|
1851
|
-
v.menuData ? (f(), B(o(et), {
|
|
1852
|
-
key: 0,
|
|
1853
|
-
data: i(v.menuData),
|
|
1854
|
-
button: {
|
|
1855
|
-
condensed: !0,
|
|
1856
|
-
variant: "secondary",
|
|
1857
|
-
disabled: v.disabled
|
|
1858
|
-
},
|
|
1859
|
-
teleport: e.teleportMenu,
|
|
1860
|
-
onOpen: w[0] || (w[0] = (G) => r("menu-open")),
|
|
1861
|
-
onClose: w[1] || (w[1] = (G) => r("menu-close")),
|
|
1862
|
-
onMenuItemClick: w[2] || (w[2] = (G) => r("menu-item-click"))
|
|
1863
|
-
}, ze({ _: 2 }, [
|
|
1864
|
-
y(v) ? {
|
|
1865
|
-
name: "iconLeft",
|
|
1866
|
-
fn: V(() => [
|
|
1867
|
-
(v == null ? void 0 : v.variant) === "more" ? (f(), B(o(vl), {
|
|
1868
|
-
key: 0,
|
|
1869
|
-
"svg-title": g.value(v, !0)
|
|
1870
|
-
}, null, 8, ["svg-title"])) : (f(), B(Be(v.iconLeft), {
|
|
1871
|
-
key: 1,
|
|
1872
|
-
"svg-title": g.value(v, !0)
|
|
1873
|
-
}, null, 8, ["svg-title"]))
|
|
1874
|
-
]),
|
|
1875
|
-
key: "0"
|
|
1876
|
-
} : void 0,
|
|
1877
|
-
v != null && v.isShort ? void 0 : {
|
|
1878
|
-
name: "default",
|
|
1879
|
-
fn: V(() => [
|
|
1880
|
-
ve(X(g.value(v)), 1)
|
|
1881
|
-
]),
|
|
1882
|
-
key: "1"
|
|
1883
|
-
},
|
|
1884
|
-
S(v) ? {
|
|
1885
|
-
name: "iconRight",
|
|
1886
|
-
fn: V(() => [
|
|
1887
|
-
(v == null ? void 0 : v.variant) === "open" ? (f(), B(o(bt), {
|
|
1888
|
-
key: 0,
|
|
1889
|
-
"svg-title": g.value(v, !0)
|
|
1890
|
-
}, null, 8, ["svg-title"])) : (f(), B(Be(v.iconRight), {
|
|
1891
|
-
key: 1,
|
|
1892
|
-
"svg-title": v.title
|
|
1893
|
-
}, null, 8, ["svg-title"]))
|
|
1894
|
-
]),
|
|
1895
|
-
key: "2"
|
|
1896
|
-
} : void 0
|
|
1897
|
-
]), 1032, ["data", "button", "teleport"])) : v.variant === "copy" ? (f(), B(o(yl), {
|
|
1898
|
-
key: 1,
|
|
1899
|
-
text: h(v),
|
|
1900
|
-
"button-text": g.value(v),
|
|
1901
|
-
button: {
|
|
1902
|
-
condensed: !0,
|
|
1903
|
-
variant: "secondary"
|
|
1904
|
-
}
|
|
1905
|
-
}, null, 8, ["text", "button-text"])) : (f(), B(o(jt), oe({
|
|
1906
|
-
key: 2,
|
|
1907
|
-
condensed: "",
|
|
1908
|
-
variant: "secondary",
|
|
1909
|
-
critical: v.critical,
|
|
1910
|
-
disabled: v.disabled,
|
|
1911
|
-
link: v.link
|
|
1912
|
-
}, xe(D(v))), ze({ _: 2 }, [
|
|
1913
|
-
v.iconLeft || v.variant === "edit" ? {
|
|
1914
|
-
name: "iconLeft",
|
|
1915
|
-
fn: V(() => [
|
|
1916
|
-
(v == null ? void 0 : v.variant) === "edit" ? (f(), B(o(rs), {
|
|
1917
|
-
key: 0,
|
|
1918
|
-
"svg-title": g.value(v, !0)
|
|
1919
|
-
}, null, 8, ["svg-title"])) : (f(), B(Be(v.iconLeft), {
|
|
1920
|
-
key: 1,
|
|
1921
|
-
"svg-title": v.title
|
|
1922
|
-
}, null, 8, ["svg-title"]))
|
|
1923
|
-
]),
|
|
1924
|
-
key: "0"
|
|
1925
|
-
} : void 0,
|
|
1926
|
-
v != null && v.isShort ? void 0 : {
|
|
1927
|
-
name: "default",
|
|
1928
|
-
fn: V(() => [
|
|
1929
|
-
ve(X(g.value(v)), 1)
|
|
1930
|
-
]),
|
|
1931
|
-
key: "1"
|
|
1932
|
-
},
|
|
1933
|
-
v.iconRight || v.variant === "open" ? {
|
|
1934
|
-
name: "iconRight",
|
|
1935
|
-
fn: V(() => [
|
|
1936
|
-
(v == null ? void 0 : v.variant) === "open" ? (f(), B(o(bt), {
|
|
1937
|
-
key: 0,
|
|
1938
|
-
"svg-title": g.value(v, !0)
|
|
1939
|
-
}, null, 8, ["svg-title"])) : (f(), B(Be(v.iconRight), {
|
|
1940
|
-
key: 1,
|
|
1941
|
-
"svg-title": v.title
|
|
1942
|
-
}, null, 8, ["svg-title"]))
|
|
1943
|
-
]),
|
|
1944
|
-
key: "2"
|
|
1945
|
-
} : void 0
|
|
1946
|
-
]), 1040, ["critical", "disabled", "link"]))
|
|
1947
|
-
]))), 128))
|
|
1948
|
-
], 2)
|
|
1949
|
-
])
|
|
1950
|
-
]),
|
|
1951
|
-
_: 1
|
|
1952
|
-
}));
|
|
1953
|
-
}
|
|
1954
|
-
}), en = /* @__PURE__ */ de(cs, [["__scopeId", "data-v-8787887f"]]), tn = Symbol("data-grid slashed zero key");
|
|
1955
|
-
var re = /* @__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.SLASHED_ZERO = "slashed-zero", e))(re || {});
|
|
1956
|
-
const nn = {
|
|
1957
|
-
"en-US": {
|
|
1958
|
-
collapseNestedContent: "Collapse nested content",
|
|
1959
|
-
expandNestedContent: "Expand nested content",
|
|
1960
|
-
selectRow: "Select row"
|
|
1961
|
-
}
|
|
1962
|
-
}, fs = ["aria-hidden", "data-testid", "data-cellindex", "tabindex", "aria-colindex"], gs = ["title"], vs = {
|
|
1963
|
-
key: 0,
|
|
1964
|
-
class: "b-data-grid-cell__cell-actions"
|
|
1965
|
-
}, ms = {
|
|
1966
|
-
i18n: { messages: nn },
|
|
1967
|
-
name: "data-grid-cell"
|
|
1968
|
-
}, hs = /* @__PURE__ */ Oe({
|
|
1969
|
-
...ms,
|
|
1970
|
-
props: {
|
|
1971
|
-
draggingEventsForRowCell: {
|
|
1972
|
-
type: Function,
|
|
1973
|
-
required: !0
|
|
1974
|
-
},
|
|
1975
|
-
/**
|
|
1976
|
-
* The columns sets including
|
|
1977
|
-
*/
|
|
1978
|
-
columnSets: {
|
|
1979
|
-
type: Array,
|
|
1980
|
-
required: !0
|
|
1981
|
-
},
|
|
1982
|
-
/**
|
|
1983
|
-
* The columns set we are iterating over
|
|
1984
|
-
*/
|
|
1985
|
-
column: {
|
|
1986
|
-
type: Object,
|
|
1987
|
-
required: !0
|
|
1988
|
-
},
|
|
1989
|
-
colIndex: {
|
|
1990
|
-
type: Number,
|
|
1991
|
-
required: !0
|
|
1992
|
-
},
|
|
1993
|
-
columnSetIndex: {
|
|
1994
|
-
type: Number,
|
|
1995
|
-
required: !0
|
|
1996
|
-
},
|
|
1997
|
-
/**
|
|
1998
|
-
* Sets the row cells to the condensed padding state.
|
|
1999
|
-
*/
|
|
2000
|
-
condensed: {
|
|
2001
|
-
type: Boolean,
|
|
2002
|
-
default: !1
|
|
2003
|
-
},
|
|
2004
|
-
/**
|
|
2005
|
-
* Columns being dragged, contains dragging column and a target column
|
|
2006
|
-
*/
|
|
2007
|
-
draggingColumns: {
|
|
2008
|
-
type: Object,
|
|
2009
|
-
default: void 0
|
|
2010
|
-
},
|
|
2011
|
-
/**
|
|
2012
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2013
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2014
|
-
*/
|
|
2015
|
-
getDataItemId: {
|
|
2016
|
-
type: Function,
|
|
2017
|
-
default: (e) => e.id
|
|
2018
|
-
},
|
|
2019
|
-
/**
|
|
2020
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2021
|
-
*/
|
|
2022
|
-
hoveredOverColumnState: {
|
|
2023
|
-
type: Object,
|
|
2024
|
-
required: !0
|
|
2025
|
-
},
|
|
2026
|
-
/**
|
|
2027
|
-
* A customisable method to determine if a row is not selectable.
|
|
2028
|
-
* The default is that every row is selectable.
|
|
2029
|
-
*/
|
|
2030
|
-
isDataItemDisabled: {
|
|
2031
|
-
type: Function,
|
|
2032
|
-
default: () => !1
|
|
2033
|
-
},
|
|
2034
|
-
isMeasuringColumnWidths: {
|
|
2035
|
-
type: Boolean,
|
|
2036
|
-
default: !1
|
|
2037
|
-
},
|
|
2038
|
-
/**
|
|
2039
|
-
* Determines if the nested content is visible.
|
|
2040
|
-
*/
|
|
2041
|
-
isNestedContentExpanded: {
|
|
2042
|
-
type: Boolean,
|
|
2043
|
-
default: !1
|
|
2044
|
-
},
|
|
2045
|
-
/**
|
|
2046
|
-
* Determines if the nest content slot is enabled for this data row.
|
|
2047
|
-
*/
|
|
2048
|
-
nestedContent: {
|
|
2049
|
-
type: Boolean,
|
|
2050
|
-
default: !1
|
|
2051
|
-
},
|
|
2052
|
-
/**
|
|
2053
|
-
* The IDs of the rows this cell controls to show / hide them.
|
|
2054
|
-
*/
|
|
2055
|
-
nestedRowsElementIds: {
|
|
2056
|
-
type: Array,
|
|
2057
|
-
default: () => []
|
|
2058
|
-
},
|
|
2059
|
-
/**
|
|
2060
|
-
* The row data object
|
|
2061
|
-
*/
|
|
2062
|
-
rowData: {
|
|
2063
|
-
type: Object,
|
|
2064
|
-
required: !0
|
|
2065
|
-
},
|
|
2066
|
-
rowIndex: {
|
|
2067
|
-
type: Number,
|
|
2068
|
-
required: !0
|
|
2069
|
-
},
|
|
2070
|
-
/**
|
|
2071
|
-
* The row selection checkbox indeterminate state.
|
|
2072
|
-
*/
|
|
2073
|
-
selectionIsIndeterminate: {
|
|
2074
|
-
type: Boolean,
|
|
2075
|
-
default: !1
|
|
2076
|
-
},
|
|
2077
|
-
/**
|
|
2078
|
-
* Determines if the row selection is enabled.
|
|
2079
|
-
*/
|
|
2080
|
-
selectable: {
|
|
2081
|
-
type: Boolean,
|
|
2082
|
-
default: !1
|
|
2083
|
-
},
|
|
2084
|
-
selectedItems: {
|
|
2085
|
-
type: Array,
|
|
2086
|
-
required: !0
|
|
2087
|
-
}
|
|
2088
|
-
},
|
|
2089
|
-
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
2090
|
-
setup(e, { expose: s, emit: m }) {
|
|
2091
|
-
const n = it(), r = rt(n), { t } = $e({ messages: nn }), l = e, E = m, _ = p(null), b = p(null), O = p(!1), g = p([]), D = L(() => {
|
|
2092
|
-
var C;
|
|
2093
|
-
return !!((C = l.rowData) != null && C[l.column.field]);
|
|
2094
|
-
}), a = L(
|
|
2095
|
-
() => {
|
|
2096
|
-
var C;
|
|
2097
|
-
return l.column.field === he && ((C = l.nestedRowsElementIds) == null ? void 0 : C.length) > 0 ? l.nestedRowsElementIds.join(" ") : void 0;
|
|
2098
|
-
}
|
|
2099
|
-
), i = L(
|
|
2100
|
-
() => l.column.field === he && !l.selectable && !l.nestedContent
|
|
2101
|
-
), h = (C, x) => (C == null ? void 0 : C.overflow) === tt.ELLIPSIS ? `${x}` : void 0, S = (C) => C ?? "-", y = (C) => l.columnSets.slice(0, C).reduce((x, { columnSet: F }) => x + F.length, 0), d = (C, x) => C + y(x), w = (C, x, F) => y() * C + d(x, F), v = (C) => {
|
|
2102
|
-
var x;
|
|
2103
|
-
(C === null || !_.value.contains(C) && !((x = g.value) != null && x.map((F) => F.value).some((F) => F === C || (F == null ? void 0 : F.contains(C))))) && (O.value = !1);
|
|
2104
|
-
}, q = () => {
|
|
2105
|
-
O.value = !1;
|
|
2106
|
-
}, G = (C) => {
|
|
2107
|
-
const F = { ...{
|
|
2108
|
-
...l.draggingEventsForRowCell(C)
|
|
2109
|
-
} };
|
|
2110
|
-
return C.frozen && (F.keyup = (P) => E("on-frozen-columns-key-press", P), F.keydown = (P) => E("on-frozen-columns-key-press", P)), C.cellActions && (F.mouseenter = () => {
|
|
2111
|
-
O.value = !0;
|
|
2112
|
-
}, F.mouseleave = (P) => {
|
|
2113
|
-
O.value = !1, v(P == null ? void 0 : P.relatedTarget);
|
|
2114
|
-
}, F.mouseleave = (P) => {
|
|
2115
|
-
v(P == null ? void 0 : P.relatedTarget);
|
|
2116
|
-
}, F.focus = (P) => {
|
|
2117
|
-
O.value = !0;
|
|
2118
|
-
}, F.focusout = (P) => {
|
|
2119
|
-
v(P == null ? void 0 : P.relatedTarget);
|
|
2120
|
-
}), F;
|
|
2121
|
-
}, M = () => {
|
|
2122
|
-
E("nested-content-toggled");
|
|
2123
|
-
};
|
|
2124
|
-
we(
|
|
2125
|
-
() => O.value,
|
|
2126
|
-
() => {
|
|
2127
|
-
O.value === !0 ? E("cell-hovered", l.rowIndex) : E("cell-hovered", -1);
|
|
2128
|
-
}
|
|
2129
|
-
), Vt(ml, {
|
|
2130
|
-
registerMenuContainerElement: (C) => {
|
|
2131
|
-
g.value.push(C);
|
|
2132
|
-
},
|
|
2133
|
-
menuMouseLeave: (C) => {
|
|
2134
|
-
_.value.contains(C == null ? void 0 : C.relatedTarget) || (O.value = !1);
|
|
2135
|
-
}
|
|
2136
|
-
});
|
|
2137
|
-
const ee = Je(tn, p(!1)), te = (C) => {
|
|
2138
|
-
var x, F, P, ue, ne, J, Z;
|
|
2139
|
-
return {
|
|
2140
|
-
[`b-data-grid-cell--${re.COLUMN_HOVERED}`]: (C == null ? void 0 : C.field) === l.hoveredOverColumnState.hoveredOverColumnField,
|
|
2141
|
-
[`b-data-grid-cell--${re.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (C == null ? void 0 : C.field) === l.hoveredOverColumnState.hoveredOverColumnField && l.hoveredOverColumnState.noBorderLeft,
|
|
2142
|
-
[`b-data-grid-cell--${re.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (C == null ? void 0 : C.field) === l.hoveredOverColumnState.hoveredOverColumnField && l.hoveredOverColumnState.noBorderRight,
|
|
2143
|
-
[`b-data-grid-cell--${re.PADDING_LEFT_UNSET}`]: ((x = C == null ? void 0 : C.padding) == null ? void 0 : x.left) === !1,
|
|
2144
|
-
[`b-data-grid-cell--${re.PADDING_RIGHT_UNSET}`]: ((F = C == null ? void 0 : C.padding) == null ? void 0 : F.right) === !1,
|
|
2145
|
-
[`b-data-grid-cell--${re.NUMERIC}`]: C == null ? void 0 : C.numeric,
|
|
2146
|
-
[`b-data-grid-cell--${re.CONDENSED}`]: l.condensed,
|
|
2147
|
-
[`b-data-grid-cell--${re.OVERFLOW_ELLIPSIS}`]: (C == null ? void 0 : C.overflow) === tt.ELLIPSIS,
|
|
2148
|
-
[`b-data-grid-cell--${re.IS_COLUMN_REORDERING}`]: ((P = l.draggingColumns.dragging) == null ? void 0 : P.field) === C.field,
|
|
2149
|
-
[`b-data-grid-cell--${re.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((ue = l.draggingColumns.target) == null ? void 0 : ue.field) === C.field && ((ne = l.draggingColumns) == null ? void 0 : ne.dragToLeft),
|
|
2150
|
-
[`b-data-grid-cell--${re.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((J = l.draggingColumns.target) == null ? void 0 : J.field) === C.field && !((Z = l.draggingColumns) != null && Z.dragToLeft),
|
|
2151
|
-
[`b-data-grid-cell--${re.FROZEN}`]: C == null ? void 0 : C.frozen,
|
|
2152
|
-
[`b-data-grid-cell--${re.NESTED_CONTENT_ENABLED}`]: l.nestedContent,
|
|
2153
|
-
[`b-data-grid-cell--${re.ACTION_COL_NESTED_CONTENT_ENABLED}`]: l.nestedContent && !l.selectable && C.field === he,
|
|
2154
|
-
[`b-data-grid-cell--${re.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: l.nestedContent && l.selectable && C.field === he,
|
|
2155
|
-
[`b-data-grid-cell--${re.ACTION_COL_SELECTION_ENABLED}`]: C.field === he && l.selectable,
|
|
2156
|
-
[`b-data-grid-cell--${re.SLASHED_ZERO}`]: ee.value
|
|
2157
|
-
};
|
|
2158
|
-
};
|
|
2159
|
-
return s({
|
|
2160
|
-
gridcellRef: _
|
|
2161
|
-
}), (C, x) => {
|
|
2162
|
-
var F;
|
|
2163
|
-
return f(), R("div", oe({
|
|
2164
|
-
key: `cell-${e.column.field}`,
|
|
2165
|
-
ref_key: "gridcellRef",
|
|
2166
|
-
ref: _,
|
|
2167
|
-
"aria-hidden": i.value,
|
|
2168
|
-
"data-testid": `cell-${e.column.field}`,
|
|
2169
|
-
"data-cellindex": w(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2170
|
-
class: ["b-data-grid-cell", te(e.column)],
|
|
2171
|
-
role: "gridcell",
|
|
2172
|
-
tabindex: w(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1",
|
|
2173
|
-
"aria-colindex": d(e.colIndex, e.columnSetIndex) + 1,
|
|
2174
|
-
style: {
|
|
2175
|
-
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2176
|
-
}
|
|
2177
|
-
}, xe(G(e.column), !0)), [
|
|
2178
|
-
e.column.field === o(he) ? (f(), R(_e, { key: 0 }, [
|
|
2179
|
-
e.selectable ? (f(), B(o(Kt), {
|
|
2180
|
-
key: 0,
|
|
2181
|
-
class: "b-data-grid-cell__select-cell",
|
|
2182
|
-
"aria-label": o(t)("selectRow"),
|
|
2183
|
-
disabled: e.isDataItemDisabled(e.rowData),
|
|
2184
|
-
indeterminate: e.selectionIsIndeterminate,
|
|
2185
|
-
"model-value": e.selectedItems,
|
|
2186
|
-
value: e.getDataItemId(e.rowData),
|
|
2187
|
-
"onUpdate:modelValue": x[0] || (x[0] = (P) => C.$emit("select-row", P))
|
|
2188
|
-
}, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value"])) : k("", !0),
|
|
2189
|
-
e.nestedContent ? (f(), B(o(ut), {
|
|
2190
|
-
key: 1,
|
|
2191
|
-
ref: "menuButtonRef",
|
|
2192
|
-
"aria-haspopup": "true",
|
|
2193
|
-
"aria-controls": a.value,
|
|
2194
|
-
condensed: "",
|
|
2195
|
-
variant: "tertiary",
|
|
2196
|
-
toggled: e.isNestedContentExpanded,
|
|
2197
|
-
onClick: M
|
|
2198
|
-
}, {
|
|
2199
|
-
iconLeft: V(() => [
|
|
2200
|
-
e.isNestedContentExpanded ? (f(), B(o(Sl), {
|
|
2201
|
-
key: 0,
|
|
2202
|
-
class: "b-accordion-item__icon",
|
|
2203
|
-
"svg-title": o(t)("collapseNestedContent")
|
|
2204
|
-
}, null, 8, ["svg-title"])) : (f(), B(o(El), {
|
|
2205
|
-
key: 1,
|
|
2206
|
-
class: "b-accordion-item__icon",
|
|
2207
|
-
"svg-title": o(t)("expandNestedContent")
|
|
2208
|
-
}, null, 8, ["svg-title"]))
|
|
2209
|
-
]),
|
|
2210
|
-
_: 1
|
|
2211
|
-
}, 8, ["aria-controls", "toggled"])) : k("", !0)
|
|
2212
|
-
], 64)) : (f(), R(_e, { key: 1 }, [
|
|
2213
|
-
Y(o(Ze), { el: "div" }, {
|
|
2214
|
-
default: V(() => [
|
|
2215
|
-
pe(C.$slots, `item-${e.column.field}`, {
|
|
2216
|
-
item: e.rowData,
|
|
2217
|
-
rowIndex: e.rowIndex
|
|
2218
|
-
}, () => [
|
|
2219
|
-
A("span", {
|
|
2220
|
-
title: h(e.column, e.rowData[e.column.field])
|
|
2221
|
-
}, X(S(e.rowData[e.column.field])), 9, gs)
|
|
2222
|
-
], !0)
|
|
2223
|
-
]),
|
|
2224
|
-
_: 3
|
|
2225
|
-
}),
|
|
2226
|
-
((F = e.column.cellActions) == null ? void 0 : F.length) > 0 ? (f(), R("div", vs, [
|
|
2227
|
-
O.value && (D.value || o(r)(`item-${e.column.field}`)) ? (f(), B(en, {
|
|
2228
|
-
key: 0,
|
|
2229
|
-
ref_key: "cellActionsRef",
|
|
2230
|
-
ref: b,
|
|
2231
|
-
"cell-actions": e.column.cellActions,
|
|
2232
|
-
"column-key": e.column.field,
|
|
2233
|
-
"row-data-item": e.rowData,
|
|
2234
|
-
"teleport-menu": "",
|
|
2235
|
-
onMenuItemClick: q
|
|
2236
|
-
}, null, 8, ["cell-actions", "column-key", "row-data-item"])) : k("", !0)
|
|
2237
|
-
])) : k("", !0)
|
|
2238
|
-
], 64))
|
|
2239
|
-
], 16, fs);
|
|
2240
|
-
};
|
|
2241
|
-
}
|
|
2242
|
-
}), Cs = /* @__PURE__ */ de(hs, [["__scopeId", "data-v-bf03f2af"]]), _s = { class: "b-data-grid-row-container" }, ws = ["id", "aria-selected"], ys = ["data-testid"], Ss = {
|
|
2243
|
-
key: 0,
|
|
2244
|
-
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2245
|
-
}, Es = { key: 2 }, Ls = {
|
|
2246
|
-
name: "data-grid-row"
|
|
2247
|
-
}, bs = /* @__PURE__ */ Oe({
|
|
2248
|
-
...Ls,
|
|
2249
|
-
props: {
|
|
2250
|
-
/**
|
|
2251
|
-
* Row actions property that generates which button to show in row actions area
|
|
2252
|
-
*/
|
|
2253
|
-
rowActions: {
|
|
2254
|
-
type: [Function, Array],
|
|
2255
|
-
default: void 0
|
|
2256
|
-
},
|
|
2257
|
-
/**
|
|
2258
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2259
|
-
*/
|
|
2260
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
2261
|
-
/**
|
|
2262
|
-
* The columns sets including
|
|
2263
|
-
*/
|
|
2264
|
-
columnSets: {
|
|
2265
|
-
type: Array,
|
|
2266
|
-
required: !0
|
|
2267
|
-
},
|
|
2268
|
-
/**
|
|
2269
|
-
* Sets the row cells to the condensed padding state.
|
|
2270
|
-
*/
|
|
2271
|
-
condensed: {
|
|
2272
|
-
type: Boolean,
|
|
2273
|
-
default: !1
|
|
2274
|
-
},
|
|
2275
|
-
/**
|
|
2276
|
-
* Columns being dragged, contains dragging column and a target column
|
|
2277
|
-
*/
|
|
2278
|
-
draggingColumns: {
|
|
2279
|
-
type: Object,
|
|
2280
|
-
default: void 0
|
|
2281
|
-
},
|
|
2282
|
-
/**
|
|
2283
|
-
* Dragging event handlers for each row cell
|
|
2284
|
-
*/
|
|
2285
|
-
draggingEventsForRowCell: {
|
|
2286
|
-
type: Function,
|
|
2287
|
-
required: !0
|
|
2288
|
-
},
|
|
2289
|
-
/**
|
|
2290
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2291
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2292
|
-
*/
|
|
2293
|
-
getDataItemId: {
|
|
2294
|
-
type: Function,
|
|
2295
|
-
default: (e) => e.id
|
|
2296
|
-
},
|
|
2297
|
-
/**
|
|
2298
|
-
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
2299
|
-
*/
|
|
2300
|
-
hasLeftOverflow: {
|
|
2301
|
-
type: Boolean,
|
|
2302
|
-
default: !1
|
|
2303
|
-
},
|
|
2304
|
-
/**
|
|
2305
|
-
* Enables the nested content slot functionality.
|
|
2306
|
-
*/
|
|
2307
|
-
hasNestedContent: {
|
|
2308
|
-
type: Boolean,
|
|
2309
|
-
default: !1
|
|
2310
|
-
},
|
|
2311
|
-
/**
|
|
2312
|
-
* Enables the nested content slot functionality.
|
|
2313
|
-
*/
|
|
2314
|
-
hasNestedRows: {
|
|
2315
|
-
type: Boolean,
|
|
2316
|
-
default: !1
|
|
2317
|
-
},
|
|
2318
|
-
/**
|
|
2319
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
2320
|
-
*/
|
|
2321
|
-
hasRightOverflow: {
|
|
2322
|
-
type: Boolean,
|
|
2323
|
-
default: !1
|
|
2324
|
-
},
|
|
2325
|
-
/**
|
|
2326
|
-
* Highlighted row IDs.
|
|
2327
|
-
*/
|
|
2328
|
-
highlightedRows: {
|
|
2329
|
-
type: Array,
|
|
2330
|
-
default: () => []
|
|
2331
|
-
},
|
|
2332
|
-
/**
|
|
2333
|
-
* The row index of a currently hovered row.
|
|
2334
|
-
*/
|
|
2335
|
-
hoveredRowIndex: {
|
|
2336
|
-
type: Number,
|
|
2337
|
-
default: -1
|
|
2338
|
-
},
|
|
2339
|
-
/**
|
|
2340
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2341
|
-
*/
|
|
2342
|
-
hoveredOverColumnState: {
|
|
2343
|
-
type: Object,
|
|
2344
|
-
required: !0
|
|
2345
|
-
},
|
|
2346
|
-
/**
|
|
2347
|
-
* A customisable method to determine if a row is not selectable.
|
|
2348
|
-
* The default is that every row is selectable.
|
|
2349
|
-
*/
|
|
2350
|
-
isDataItemDisabled: {
|
|
2351
|
-
type: Function,
|
|
2352
|
-
default: () => !1
|
|
2353
|
-
},
|
|
2354
|
-
/**
|
|
2355
|
-
* If the row is the last child in it's parent container.
|
|
2356
|
-
*/
|
|
2357
|
-
isRowLastChild: {
|
|
2358
|
-
type: Boolean,
|
|
2359
|
-
default: !1
|
|
2360
|
-
},
|
|
2361
|
-
/**
|
|
2362
|
-
* If columns are being measured for the autoWidth functionality.
|
|
2363
|
-
*/
|
|
2364
|
-
isMeasuringColumnWidths: {
|
|
2365
|
-
type: Boolean,
|
|
2366
|
-
default: !1
|
|
2367
|
-
},
|
|
2368
|
-
/**
|
|
2369
|
-
* Determines if this row is nested inside another row.
|
|
2370
|
-
*/
|
|
2371
|
-
isNestedRow: {
|
|
2372
|
-
type: Boolean,
|
|
2373
|
-
default: !1
|
|
2374
|
-
},
|
|
2375
|
-
/**
|
|
2376
|
-
* The maximum width of the row actions in all rows
|
|
2377
|
-
*/
|
|
2378
|
-
rowActionsMaximumWidth: {
|
|
2379
|
-
type: Number,
|
|
2380
|
-
default: 0
|
|
2381
|
-
},
|
|
2382
|
-
/**
|
|
2383
|
-
* The row data object
|
|
2384
|
-
*/
|
|
2385
|
-
rowData: {
|
|
2386
|
-
type: Object,
|
|
2387
|
-
required: !0
|
|
2388
|
-
},
|
|
2389
|
-
/**
|
|
2390
|
-
* The row index.
|
|
2391
|
-
*/
|
|
2392
|
-
rowIndex: {
|
|
2393
|
-
type: Number,
|
|
2394
|
-
required: !0
|
|
2395
|
-
},
|
|
2396
|
-
/**
|
|
2397
|
-
* The row ID to be using for the ID attribute.
|
|
2398
|
-
*/
|
|
2399
|
-
rowId: {
|
|
2400
|
-
type: Number,
|
|
2401
|
-
default: void 0
|
|
2402
|
-
},
|
|
2403
|
-
/**
|
|
2404
|
-
* The number of rows that this row is within.
|
|
2405
|
-
*/
|
|
2406
|
-
rowSetSize: {
|
|
2407
|
-
type: Number,
|
|
2408
|
-
default: 0
|
|
2409
|
-
},
|
|
2410
|
-
/**
|
|
2411
|
-
* Determines whether to render frozen seperator on the row.
|
|
2412
|
-
*/
|
|
2413
|
-
showFrozenColumnsSeparator: {
|
|
2414
|
-
type: Boolean,
|
|
2415
|
-
default: !1
|
|
2416
|
-
},
|
|
2417
|
-
/**
|
|
2418
|
-
* Determines if the row selection is enabled.
|
|
2419
|
-
*/
|
|
2420
|
-
selectable: {
|
|
2421
|
-
type: Boolean,
|
|
2422
|
-
default: !1
|
|
2423
|
-
},
|
|
2424
|
-
/**
|
|
2425
|
-
* The array of IDs for the selected rows.
|
|
2426
|
-
*/
|
|
2427
|
-
selectedItems: {
|
|
2428
|
-
type: Array,
|
|
2429
|
-
required: !0
|
|
2430
|
-
},
|
|
2431
|
-
/**
|
|
2432
|
-
* Enables / Disables the nested-content slot
|
|
2433
|
-
*/
|
|
2434
|
-
shouldShowNestedContent: {
|
|
2435
|
-
type: Function,
|
|
2436
|
-
default: (e) => !0
|
|
2437
|
-
},
|
|
2438
|
-
/**
|
|
2439
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2440
|
-
*/
|
|
2441
|
-
shouldShowNestedRows: {
|
|
2442
|
-
type: Function,
|
|
2443
|
-
default: (e) => !0
|
|
2444
|
-
}
|
|
2445
|
-
},
|
|
2446
|
-
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2447
|
-
setup(e, { expose: s, emit: m }) {
|
|
2448
|
-
const n = it(), r = rt(n), t = e, l = m, E = p({}), _ = p(!1), b = p(), O = p(), g = Qe("nested-content-slot"), D = p(!1), a = L(() => t.shouldShowNestedRows(t.rowData)), i = L(
|
|
2449
|
-
() => {
|
|
2450
|
-
var c, T;
|
|
2451
|
-
return !t.isNestedRow && t.hasNestedRows && a.value && ((T = (c = t.rowData) == null ? void 0 : c.children) == null ? void 0 : T.length) > 0;
|
|
2452
|
-
}
|
|
2453
|
-
), h = L(
|
|
2454
|
-
() => {
|
|
2455
|
-
var c, T;
|
|
2456
|
-
return !t.isNestedRow && t.hasNestedRows && a.value && (((c = t.rowData) == null ? void 0 : c.children) === void 0 || ((T = t == null ? void 0 : t.rowData) == null ? void 0 : T.children.length) === 0);
|
|
2457
|
-
}
|
|
2458
|
-
), S = L(
|
|
2459
|
-
() => t.hasNestedContent && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && a.value && !t.isNestedRow
|
|
2460
|
-
), y = L(() => {
|
|
2461
|
-
if (t.hasNestedContent || t.hasNestedRows) {
|
|
2462
|
-
const c = _.value.toString();
|
|
2463
|
-
return {
|
|
2464
|
-
"aria-expanded": S.value ? c : void 0,
|
|
2465
|
-
"aria-level": t.isNestedRow ? "2" : "1",
|
|
2466
|
-
"aria-posinset": t.rowIndex + 1,
|
|
2467
|
-
"aria-setsize": t.rowSetSize
|
|
2468
|
-
};
|
|
2469
|
-
}
|
|
2470
|
-
return { "aria-rowindex": t.rowIndex + 1 };
|
|
2471
|
-
}), d = L(() => {
|
|
2472
|
-
if (h.value)
|
|
2473
|
-
return {
|
|
2474
|
-
"aria-busy": "true",
|
|
2475
|
-
"aria-live": "polite"
|
|
2476
|
-
};
|
|
2477
|
-
if (!(i.value || !t.hasNestedContent || !t.shouldShowNestedContent(t.rowData)))
|
|
2478
|
-
return {
|
|
2479
|
-
"aria-level": t.isNestedRow ? "3" : "2",
|
|
2480
|
-
"aria-posinset": "1",
|
|
2481
|
-
"aria-setsize": "1",
|
|
2482
|
-
id: g,
|
|
2483
|
-
role: "row",
|
|
2484
|
-
tabindex: "-1"
|
|
2485
|
-
};
|
|
2486
|
-
}), w = L(() => {
|
|
2487
|
-
var c, T;
|
|
2488
|
-
return i.value ? (T = (c = t.rowData) == null ? void 0 : c.children) == null ? void 0 : T.reduce((H, Q, se) => (H[se] = Qe("nested-row"), H), {}) : [];
|
|
2489
|
-
}), v = L(() => {
|
|
2490
|
-
var c;
|
|
2491
|
-
if (_.value) {
|
|
2492
|
-
if (t.hasNestedContent && t.shouldShowNestedContent(t.rowData))
|
|
2493
|
-
return [g];
|
|
2494
|
-
if (i.value && ((c = Object.keys(w.value)) == null ? void 0 : c.length) > 0) {
|
|
2495
|
-
const T = Object.values(w.value);
|
|
2496
|
-
if ((T == null ? void 0 : T.length) > 0)
|
|
2497
|
-
return T;
|
|
2498
|
-
}
|
|
2499
|
-
return [];
|
|
2500
|
-
}
|
|
2501
|
-
}), q = L(() => {
|
|
2502
|
-
var T, H;
|
|
2503
|
-
const c = (H = (T = t.rowData) == null ? void 0 : T.children) == null ? void 0 : H.map((Q) => t.getDataItemId(Q));
|
|
2504
|
-
if ((c == null ? void 0 : c.length) > 0) {
|
|
2505
|
-
const Q = c.every((le) => {
|
|
2506
|
-
var fe;
|
|
2507
|
-
return (fe = t == null ? void 0 : t.selectedItems) == null ? void 0 : fe.includes(le);
|
|
2508
|
-
}), se = c.some((le) => {
|
|
2509
|
-
var fe;
|
|
2510
|
-
return (fe = t == null ? void 0 : t.selectedItems) == null ? void 0 : fe.includes(le);
|
|
2511
|
-
});
|
|
2512
|
-
return !Q && se;
|
|
2513
|
-
}
|
|
2514
|
-
return !1;
|
|
2515
|
-
}), G = (c, T) => {
|
|
2516
|
-
const H = c;
|
|
2517
|
-
c !== null && (H != null && H.gridcellRef) && (E.value[T] = H.gridcellRef);
|
|
2518
|
-
}, M = (c) => w.value[c], N = (c) => {
|
|
2519
|
-
if (!t.selectable)
|
|
2520
|
-
return null;
|
|
2521
|
-
const T = t.getDataItemId(c);
|
|
2522
|
-
return t.selectedItems.includes(T).toString();
|
|
2523
|
-
}, U = (c) => {
|
|
2524
|
-
var Q;
|
|
2525
|
-
let T = !1;
|
|
2526
|
-
const H = ["button", "input", "a"];
|
|
2527
|
-
for (let se = 0; se < H.length; se++)
|
|
2528
|
-
if ((Q = c == null ? void 0 : c.target) != null && Q.closest(H[se])) {
|
|
2529
|
-
T = !0;
|
|
2530
|
-
break;
|
|
2531
|
-
}
|
|
2532
|
-
!T && t.allowRowClicks && l("row-click", t.rowData, c);
|
|
2533
|
-
}, ee = (c) => {
|
|
2534
|
-
l("select-row", c, t.rowData);
|
|
2535
|
-
}, te = (c, T) => {
|
|
2536
|
-
l("select-nested-row", T, t.rowData, c);
|
|
2537
|
-
}, C = () => {
|
|
2538
|
-
D.value = !0;
|
|
2539
|
-
}, x = () => {
|
|
2540
|
-
D.value = !1;
|
|
2541
|
-
}, { updateContentHeight: F, contentHeight: P } = wl(b, _), ue = L(() => {
|
|
2542
|
-
var c;
|
|
2543
|
-
if (t.hasNestedContent || t.hasNestedRows)
|
|
2544
|
-
return {
|
|
2545
|
-
paddingLeft: `${i.value || h.value ? 0 : E.value[he].clientWidth + Yt}px`,
|
|
2546
|
-
"max-height": (t.hasNestedContent || t.hasNestedRows) && P.value && !((c = P == null ? void 0 : P.value) != null && c.includes("null")) ? P.value : 0
|
|
2547
|
-
};
|
|
2548
|
-
});
|
|
2549
|
-
we(
|
|
2550
|
-
() => b.value,
|
|
2551
|
-
() => {
|
|
2552
|
-
let c = null;
|
|
2553
|
-
!c && b.value && (c = dt(b.value, () => {
|
|
2554
|
-
b.value && F();
|
|
2555
|
-
}));
|
|
2556
|
-
}
|
|
2557
|
-
);
|
|
2558
|
-
const ne = () => {
|
|
2559
|
-
_.value = !_.value, F(), l("nested-content-toggled", t.rowData);
|
|
2560
|
-
};
|
|
2561
|
-
we(
|
|
2562
|
-
() => {
|
|
2563
|
-
var c;
|
|
2564
|
-
return (c = t.rowData) == null ? void 0 : c.children;
|
|
2565
|
-
},
|
|
2566
|
-
(c, T) => {
|
|
2567
|
-
var H, Q;
|
|
2568
|
-
((Q = (H = t == null ? void 0 : t.rowData) == null ? void 0 : H.children) == null ? void 0 : Q.length) > 0 && T === void 0 && !_.value && F();
|
|
2569
|
-
}
|
|
2570
|
-
);
|
|
2571
|
-
const J = (c, T) => ({
|
|
2572
|
-
"b-data-grid-row-container__row--disabled": t.isDataItemDisabled(c),
|
|
2573
|
-
"b-data-grid-row-container__row--row-clicks-enabled": t.allowRowClicks,
|
|
2574
|
-
"b-data-grid-row-container__row--highlighted": t.highlightedRows.includes(t.getDataItemId(c)) || t.selectedItems.includes(t.getDataItemId(c)),
|
|
2575
|
-
"b-data-grid-row-container__row--hovered": t.hoveredRowIndex === T,
|
|
2576
|
-
"b-data-grid-row-container__row--is-last-child": t.isRowLastChild && !_.value,
|
|
2577
|
-
"b-data-grid-row-container__row--nested-row": t.isNestedRow
|
|
2578
|
-
}), Z = (c) => ({
|
|
2579
|
-
"b-data-grid-row-container__row-cell-set--frozen": c,
|
|
2580
|
-
[`b-data-grid-row-container__row-cell-set--${Te.OVERFLOW_SHADOW_LEFT}`]: c && t.hasLeftOverflow,
|
|
2581
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": c && t.showFrozenColumnsSeparator,
|
|
2582
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !c,
|
|
2583
|
-
"b-data-grid-row-container__row-cell-set--is-measuring": t.isMeasuringColumnWidths
|
|
2584
|
-
}), Re = L(() => ({
|
|
2585
|
-
"b-data-grid-row-container__row-nested-slot--is-last-child": t.isRowLastChild,
|
|
2586
|
-
"b-data-grid-row-container__row-nested-slot": !i.value && t.shouldShowNestedContent(t.rowData)
|
|
2587
|
-
})), u = L(() => ({
|
|
2588
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": D.value
|
|
2589
|
-
})), W = L(() => ({
|
|
2590
|
-
minWidth: `${t.rowActionsMaximumWidth}px`
|
|
2591
|
-
}));
|
|
2592
|
-
return s({
|
|
2593
|
-
gridcellRefs: E,
|
|
2594
|
-
rowActionsRef: O
|
|
2595
|
-
}), (c, T) => {
|
|
2596
|
-
var H;
|
|
2597
|
-
return f(), R("div", _s, [
|
|
2598
|
-
(f(), R("div", oe(y.value, {
|
|
2599
|
-
id: (H = e.rowId) == null ? void 0 : H.toString(),
|
|
2600
|
-
key: e.rowIndex,
|
|
2601
|
-
class: ["b-data-grid-row-container__row", J(e.rowData, e.rowIndex)],
|
|
2602
|
-
role: "row",
|
|
2603
|
-
"aria-selected": N(e.rowData),
|
|
2604
|
-
onClick: U
|
|
2605
|
-
}), [
|
|
2606
|
-
(f(!0), R(_e, null, Le(e.columnSets, ({ columnSet: Q, id: se, isFrozenColumns: le }, fe) => (f(), R(_e, null, [
|
|
2607
|
-
Q != null && Q.length ? (f(), R("div", {
|
|
2608
|
-
key: `data-grid-rows-${se}`,
|
|
2609
|
-
class: ce(["b-data-grid-row-container__cells", Z(le)]),
|
|
2610
|
-
"data-testid": `data-grid-${se}-rows`
|
|
2611
|
-
}, [
|
|
2612
|
-
(f(!0), R(_e, null, Le(Q, (ye, De) => (f(), B(o(Cs), {
|
|
2613
|
-
key: `cell-${ye.field}`,
|
|
2614
|
-
ref_for: !0,
|
|
2615
|
-
ref: (K) => G(K, ye.field),
|
|
2616
|
-
class: "b-data-grid-row-container__cell",
|
|
2617
|
-
column: ye,
|
|
2618
|
-
"column-set-index": fe,
|
|
2619
|
-
"col-index": De,
|
|
2620
|
-
"column-sets": e.columnSets,
|
|
2621
|
-
condensed: e.condensed,
|
|
2622
|
-
"dragging-columns": e.draggingColumns,
|
|
2623
|
-
"dragging-events-for-row-cell": e.draggingEventsForRowCell,
|
|
2624
|
-
"get-data-item-id": e.getDataItemId,
|
|
2625
|
-
"hovered-over-column-state": e.hoveredOverColumnState,
|
|
2626
|
-
"is-data-item-disabled": e.isDataItemDisabled,
|
|
2627
|
-
"is-measuring-column-widths": e.isMeasuringColumnWidths,
|
|
2628
|
-
"is-nested-content-expanded": _.value,
|
|
2629
|
-
"nested-content": S.value,
|
|
2630
|
-
"nested-rows-element-ids": v.value,
|
|
2631
|
-
"row-data": e.rowData,
|
|
2632
|
-
"row-index": e.rowIndex,
|
|
2633
|
-
"selection-is-indeterminate": q.value,
|
|
2634
|
-
selectable: e.selectable,
|
|
2635
|
-
"selected-items": e.selectedItems,
|
|
2636
|
-
onCellHovered: T[0] || (T[0] = (K) => l("cell-hovered", K)),
|
|
2637
|
-
onOnFrozenColumnsKeyPress: T[1] || (T[1] = (K) => l("on-frozen-columns-key-press", K)),
|
|
2638
|
-
onSelectRow: ee,
|
|
2639
|
-
onNestedContentToggled: ne
|
|
2640
|
-
}, ze({ _: 2 }, [
|
|
2641
|
-
Le(o(n), (K, Fe) => ({
|
|
2642
|
-
name: Fe,
|
|
2643
|
-
fn: V((qe) => [
|
|
2644
|
-
pe(c.$slots, Fe, oe({ ref_for: !0 }, qe), void 0, !0)
|
|
2645
|
-
])
|
|
2646
|
-
}))
|
|
2647
|
-
]), 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", "selection-is-indeterminate", "selectable", "selected-items"]))), 128))
|
|
2648
|
-
], 10, ys)) : k("", !0),
|
|
2649
|
-
!le && e.rowActions ? (f(), R("div", {
|
|
2650
|
-
key: `data-grid-row-actions-${se}`,
|
|
2651
|
-
ref_for: !0,
|
|
2652
|
-
ref_key: "rowActionsRef",
|
|
2653
|
-
ref: O,
|
|
2654
|
-
class: ce(["b-data-grid-row-container__row-actions-container", u.value]),
|
|
2655
|
-
style: Me(W.value)
|
|
2656
|
-
}, [
|
|
2657
|
-
Y(o(en), {
|
|
2658
|
-
class: "b-data-grid-row-container__row-actions",
|
|
2659
|
-
"cell-actions": e.rowActions,
|
|
2660
|
-
"has-right-overflow": e.hasRightOverflow,
|
|
2661
|
-
"row-data-item": e.rowData,
|
|
2662
|
-
onMenuOpen: C,
|
|
2663
|
-
onMenuClose: x
|
|
2664
|
-
}, null, 8, ["cell-actions", "has-right-overflow", "row-data-item"])
|
|
2665
|
-
], 6)) : k("", !0)
|
|
2666
|
-
], 64))), 256))
|
|
2667
|
-
], 16, ws)),
|
|
2668
|
-
e.hasNestedContent && o(r)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && a.value ? (f(), B(Ht, {
|
|
2669
|
-
key: `${e.rowIndex}-nest-content`,
|
|
2670
|
-
name: "b-data-grid-row-container__animation--nested-content"
|
|
2671
|
-
}, {
|
|
2672
|
-
default: V(() => [
|
|
2673
|
-
_.value ? (f(), R("div", oe({ key: 0 }, d.value, {
|
|
2674
|
-
class: Re.value,
|
|
2675
|
-
"data-testid": "nested-content-container",
|
|
2676
|
-
style: ue.value
|
|
2677
|
-
}), [
|
|
2678
|
-
A("div", {
|
|
2679
|
-
ref_key: "nestedContentRef",
|
|
2680
|
-
ref: b
|
|
2681
|
-
}, [
|
|
2682
|
-
h.value ? (f(), R("div", Ss, [
|
|
2683
|
-
Y(o(at))
|
|
2684
|
-
])) : i.value ? (f(!0), R(_e, { key: 1 }, Le(e.rowData.children, (Q, se) => (f(), B(ln, oe({ ref_for: !0 }, t, {
|
|
2685
|
-
id: M(se),
|
|
2686
|
-
key: `child-${se}`,
|
|
2687
|
-
"row-data": Q,
|
|
2688
|
-
"row-index": se,
|
|
2689
|
-
"row-set-size": e.rowData.children.length,
|
|
2690
|
-
"is-nested-row": "",
|
|
2691
|
-
onCellHovered: T[2] || (T[2] = (le) => l("cell-hovered", le)),
|
|
2692
|
-
onRowClick: T[3] || (T[3] = (le) => l("row-click", ...le)),
|
|
2693
|
-
onOnFrozenColumnsKeyPress: T[4] || (T[4] = (le) => l("on-frozen-columns-key-press", le)),
|
|
2694
|
-
onSelectRow: (le) => te(Q, le)
|
|
2695
|
-
}), ze({ _: 2 }, [
|
|
2696
|
-
Le(o(n), (le, fe) => ({
|
|
2697
|
-
name: fe,
|
|
2698
|
-
fn: V((ye) => [
|
|
2699
|
-
pe(c.$slots, fe, oe({ ref_for: !0 }, ye), void 0, !0)
|
|
2700
|
-
])
|
|
2701
|
-
}))
|
|
2702
|
-
]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128)) : o(r)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (f(), R("div", Es, [
|
|
2703
|
-
pe(c.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
2704
|
-
])) : k("", !0)
|
|
2705
|
-
], 512)
|
|
2706
|
-
], 16)) : k("", !0)
|
|
2707
|
-
]),
|
|
2708
|
-
_: 3
|
|
2709
|
-
})) : k("", !0)
|
|
2710
|
-
]);
|
|
2711
|
-
};
|
|
2712
|
-
}
|
|
2713
|
-
}), ln = /* @__PURE__ */ de(bs, [["__scopeId", "data-v-ee9e5934"]]);
|
|
2714
|
-
let Wt = 0;
|
|
2715
|
-
const Rs = {
|
|
2716
|
-
beforeCreate() {
|
|
2717
|
-
this.uuid = Wt.toString(), Wt += 1;
|
|
2718
|
-
}
|
|
2719
|
-
}, ps = { key: 0 }, Os = ["clip-path"], As = ["id"];
|
|
2720
|
-
function Ns(e, s, m, n, r, t) {
|
|
2721
|
-
return f(), R("svg", oe({ role: "img" }, e.$attrs, {
|
|
2722
|
-
class: "ui-assets-icons-16",
|
|
2723
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2724
|
-
width: "16",
|
|
2725
|
-
height: "16",
|
|
2726
|
-
fill: "none"
|
|
2727
|
-
}), [
|
|
2728
|
-
e.$attrs["svg-title"] ? (f(), R("title", ps, X(e.$attrs["svg-title"]), 1)) : k("", !0),
|
|
2729
|
-
A("g", {
|
|
2730
|
-
"clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
2731
|
-
}, s[0] || (s[0] = [
|
|
2732
|
-
A("path", {
|
|
2733
|
-
fill: "#00112C",
|
|
2734
|
-
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"
|
|
2735
|
-
}, null, -1)
|
|
2736
|
-
]), 8, Os),
|
|
2737
|
-
A("defs", null, [
|
|
2738
|
-
A("clipPath", {
|
|
2739
|
-
id: "uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid
|
|
2740
|
-
}, s[1] || (s[1] = [
|
|
2741
|
-
A("rect", {
|
|
2742
|
-
width: "16",
|
|
2743
|
-
height: "16",
|
|
2744
|
-
fill: "#fff"
|
|
2745
|
-
}, null, -1)
|
|
2746
|
-
]), 8, As)
|
|
2747
|
-
])
|
|
2748
|
-
], 16);
|
|
2749
|
-
}
|
|
2750
|
-
const Ts = /* @__PURE__ */ de(Rs, [["render", Ns]]), Is = ["aria-label"], $s = {}, Ds = /* @__PURE__ */ Oe({
|
|
2751
|
-
...$s,
|
|
2752
|
-
__name: "data-grid-static-icon",
|
|
2753
|
-
props: {
|
|
2754
|
-
colored: { type: Boolean, default: !1 },
|
|
2755
|
-
tooltipText: {},
|
|
2756
|
-
variant: { default: "no-value" }
|
|
2757
|
-
},
|
|
2758
|
-
setup(e) {
|
|
2759
|
-
const s = e, m = L(() => {
|
|
2760
|
-
switch (s.variant) {
|
|
2761
|
-
case "checkmark":
|
|
2762
|
-
return Xn;
|
|
2763
|
-
case "warning":
|
|
2764
|
-
return Jn;
|
|
2765
|
-
case "error":
|
|
2766
|
-
return Ts;
|
|
2767
|
-
case "cross":
|
|
2768
|
-
return xt;
|
|
2769
|
-
case "no-value":
|
|
2770
|
-
return St;
|
|
2771
|
-
default:
|
|
2772
|
-
return St;
|
|
2773
|
-
}
|
|
2774
|
-
}), n = L(() => ({
|
|
2775
|
-
"b-data-grid-static-icon--colored": s.colored && s.variant !== "no-value"
|
|
2776
|
-
})), r = L(() => `b-data-grid-static-icon__${s.variant}`), t = L(() => el.AUTO);
|
|
2777
|
-
return (l, E) => st((f(), R("div", {
|
|
2778
|
-
"aria-label": l.tooltipText,
|
|
2779
|
-
class: ce(["b-data-grid-static-icon", n.value]),
|
|
2780
|
-
tabindex: "0"
|
|
2781
|
-
}, [
|
|
2782
|
-
(f(), B(Be(m.value), {
|
|
2783
|
-
class: ce(r.value),
|
|
2784
|
-
"svg-title": l.tooltipText
|
|
2785
|
-
}, null, 8, ["class", "svg-title"]))
|
|
2786
|
-
], 10, Is)), [
|
|
2787
|
-
[o(Qn), l.tooltipText, t.value]
|
|
2788
|
-
]);
|
|
2789
|
-
}
|
|
2790
|
-
}), Di = /* @__PURE__ */ de(Ds, [["__scopeId", "data-v-3ee55e9a"]]), ks = ["aria-rowcount", "aria-colcount", "aria-label", "role"], Ms = {
|
|
2791
|
-
key: 1,
|
|
2792
|
-
class: "b-data-grid__header"
|
|
2793
|
-
}, zs = ["tabindex"], Fs = ["tabindex", "aria-busy"], Us = {
|
|
2794
|
-
key: 0,
|
|
2795
|
-
class: "b-data-grid__loading"
|
|
2796
|
-
}, Ps = {
|
|
2797
|
-
key: 1,
|
|
2798
|
-
class: "b-data-grid__empty-state"
|
|
2799
|
-
}, Bs = {
|
|
2800
|
-
key: 5,
|
|
2801
|
-
class: "b-data-grid__footer"
|
|
2802
|
-
}, Ws = {
|
|
2803
|
-
i18n: { messages: je },
|
|
2804
|
-
name: "bento-data-grid"
|
|
2805
|
-
}, Gs = /* @__PURE__ */ Oe({
|
|
2806
|
-
...Ws,
|
|
2807
|
-
props: {
|
|
2808
|
-
/**
|
|
2809
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2810
|
-
*/
|
|
2811
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
2812
|
-
/**
|
|
2813
|
-
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
2814
|
-
*/
|
|
2815
|
-
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
2816
|
-
/**
|
|
2817
|
-
* List of actions that will be rendered in the action bar when user selects items.
|
|
2818
|
-
*
|
|
2819
|
-
* Each object in the list should have a `title`, an `event` and,
|
|
2820
|
-
* optionally, an `icon`.
|
|
2821
|
-
*
|
|
2822
|
-
* The component will display 4 actions and the hide the rest inside a menu.
|
|
2823
|
-
*
|
|
2824
|
-
* @see BentoButton for a list of all the other props supported by each button action.
|
|
2825
|
-
*/
|
|
2826
|
-
bulkActions: {
|
|
2827
|
-
type: Array,
|
|
2828
|
-
default: null
|
|
2829
|
-
},
|
|
2830
|
-
/**
|
|
2831
|
-
* Sets the row cells to the condensed padding state.
|
|
2832
|
-
*/
|
|
2833
|
-
condensed: {
|
|
2834
|
-
type: Boolean,
|
|
2835
|
-
default: !1
|
|
2836
|
-
},
|
|
2837
|
-
/**
|
|
2838
|
-
* Column definitions using 'key' to relate to data object.
|
|
2839
|
-
*/
|
|
2840
|
-
columns: {
|
|
2841
|
-
type: Array,
|
|
2842
|
-
required: !0
|
|
2843
|
-
},
|
|
2844
|
-
/**
|
|
2845
|
-
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
2846
|
-
*/
|
|
2847
|
-
columnPanel: { type: Boolean, default: !1 },
|
|
2848
|
-
/**
|
|
2849
|
-
* An array of data objects to display.
|
|
2850
|
-
*/
|
|
2851
|
-
data: {
|
|
2852
|
-
type: Array,
|
|
2853
|
-
required: !0
|
|
2854
|
-
},
|
|
2855
|
-
/**
|
|
2856
|
-
* Empty state props that will be passed down to inner empty-state component
|
|
2857
|
-
*/
|
|
2858
|
-
emptyState: {
|
|
2859
|
-
type: Object,
|
|
2860
|
-
default: void 0
|
|
2861
|
-
},
|
|
2862
|
-
/**
|
|
2863
|
-
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
2864
|
-
* {@see BentoFilterBarModel}
|
|
2865
|
-
*/
|
|
2866
|
-
filters: {
|
|
2867
|
-
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
2868
|
-
type: Array,
|
|
2869
|
-
default: void 0
|
|
2870
|
-
},
|
|
2871
|
-
/**
|
|
2872
|
-
* Defines the layout (multi-line or one-line) to be used in the filter bar for different
|
|
2873
|
-
* container sizes:
|
|
2874
|
-
* - Large (>=700px): Always multi-line
|
|
2875
|
-
* - Medium (>=430px & <700px)
|
|
2876
|
-
* - Small (<430px)
|
|
2877
|
-
*
|
|
2878
|
-
* @default
|
|
2879
|
-
* {
|
|
2880
|
-
* medium: 'multi-line',
|
|
2881
|
-
* small: 'one-line'
|
|
2882
|
-
* }
|
|
2883
|
-
*/
|
|
2884
|
-
filtersContainerSizeLayout: {
|
|
2885
|
-
type: Object,
|
|
2886
|
-
default: void 0
|
|
2887
|
-
},
|
|
2888
|
-
/**
|
|
2889
|
-
* An array of the values for each filter set in `value`.
|
|
2890
|
-
* {@see BentoFilterValues}
|
|
2891
|
-
*/
|
|
2892
|
-
filterValues: {
|
|
2893
|
-
type: Ye.props.filterValues.type,
|
|
2894
|
-
default: () => []
|
|
2895
|
-
},
|
|
2896
|
-
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
2897
|
-
// It was not done now because it's a breaking change for the types.
|
|
2898
|
-
/**
|
|
2899
|
-
* Filter's search bar properties with which the placeholder, hint and other
|
|
2900
|
-
* "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
|
|
2901
|
-
*/
|
|
2902
|
-
filterSearchConfig: {
|
|
2903
|
-
type: Object,
|
|
2904
|
-
default: void 0
|
|
2905
|
-
},
|
|
2906
|
-
/**
|
|
2907
|
-
* Filter bar search term useful to filter all the data by text
|
|
2908
|
-
*/
|
|
2909
|
-
filterSearchTerm: {
|
|
2910
|
-
type: Ye.props.searchTerm.type,
|
|
2911
|
-
default: void 0
|
|
2912
|
-
},
|
|
2913
|
-
/**
|
|
2914
|
-
* Allows the grid to be rendered inside a confined space.
|
|
2915
|
-
*/
|
|
2916
|
-
fitContent: { type: Boolean, default: !1 },
|
|
2917
|
-
/**
|
|
2918
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2919
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2920
|
-
*/
|
|
2921
|
-
getDataItemId: {
|
|
2922
|
-
type: Function,
|
|
2923
|
-
default: (e) => e.id
|
|
2924
|
-
},
|
|
2925
|
-
/**
|
|
2926
|
-
* Row actions propery that generates which button to show in row actions area
|
|
2927
|
-
*/
|
|
2928
|
-
rowActions: {
|
|
2929
|
-
type: [Function, Array],
|
|
2930
|
-
default: void 0
|
|
2931
|
-
},
|
|
2932
|
-
/**
|
|
2933
|
-
* If resize is enabled
|
|
2934
|
-
*/
|
|
2935
|
-
hasResizableColumns: {
|
|
2936
|
-
type: Boolean,
|
|
2937
|
-
default: !0
|
|
2938
|
-
},
|
|
2939
|
-
/**
|
|
2940
|
-
* Enables the nested content slot functionality.
|
|
2941
|
-
*/
|
|
2942
|
-
hasNestedContent: {
|
|
2943
|
-
type: Boolean,
|
|
2944
|
-
default: !1
|
|
2945
|
-
},
|
|
2946
|
-
/**
|
|
2947
|
-
* Enables the nested content slot functionality.
|
|
2948
|
-
*/
|
|
2949
|
-
hasNestedRows: {
|
|
2950
|
-
type: Boolean,
|
|
2951
|
-
default: !1
|
|
2952
|
-
},
|
|
2953
|
-
/**
|
|
2954
|
-
* Highlighted items
|
|
2955
|
-
*/
|
|
2956
|
-
highlightedRows: {
|
|
2957
|
-
type: Array,
|
|
2958
|
-
default: () => []
|
|
2959
|
-
},
|
|
2960
|
-
/**
|
|
2961
|
-
* A customisable method to determine if a row is not selectable.
|
|
2962
|
-
* The default is that every row is selectable.
|
|
2963
|
-
*/
|
|
2964
|
-
isDataItemDisabled: {
|
|
2965
|
-
type: Function,
|
|
2966
|
-
default: () => !1
|
|
2967
|
-
},
|
|
2968
|
-
/**
|
|
2969
|
-
* The type of `Lazy Load`.
|
|
2970
|
-
* Type "automatic" will enable infinite scrolling
|
|
2971
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
2972
|
-
* @values automatic, button, none
|
|
2973
|
-
*/
|
|
2974
|
-
lazyLoadType: {
|
|
2975
|
-
type: String,
|
|
2976
|
-
default: "none",
|
|
2977
|
-
validator: (e) => ["automatic", "button", "none"].includes(e)
|
|
2978
|
-
},
|
|
2979
|
-
/**
|
|
2980
|
-
* If the loading indicator should be shown.
|
|
2981
|
-
*/
|
|
2982
|
-
loading: {
|
|
2983
|
-
type: Boolean,
|
|
2984
|
-
default: !1
|
|
2985
|
-
},
|
|
2986
|
-
/**
|
|
2987
|
-
* Enables / Disables the table's surrounding border.
|
|
2988
|
-
*/
|
|
2989
|
-
outline: {
|
|
2990
|
-
type: Boolean,
|
|
2991
|
-
default: !1
|
|
2992
|
-
},
|
|
2993
|
-
/**
|
|
2994
|
-
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
2995
|
-
*/
|
|
2996
|
-
noSpacingTop: {
|
|
2997
|
-
type: Boolean,
|
|
2998
|
-
default: !1
|
|
2999
|
-
},
|
|
3000
|
-
/**
|
|
3001
|
-
* Pagination props that will be passed down to inner pagination component
|
|
3002
|
-
*/
|
|
3003
|
-
pagination: {
|
|
3004
|
-
type: Object,
|
|
3005
|
-
default: void 0
|
|
3006
|
-
},
|
|
3007
|
-
/**
|
|
3008
|
-
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
3009
|
-
*/
|
|
3010
|
-
selectableAcrossPages: {
|
|
3011
|
-
type: Boolean,
|
|
3012
|
-
default: !1
|
|
3013
|
-
},
|
|
3014
|
-
/**
|
|
3015
|
-
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
3016
|
-
*/
|
|
3017
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
3018
|
-
/**
|
|
3019
|
-
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
3020
|
-
*/
|
|
3021
|
-
stickyHorizontalScrollbar: {
|
|
3022
|
-
type: Boolean,
|
|
3023
|
-
default: !1
|
|
3024
|
-
},
|
|
3025
|
-
/**
|
|
3026
|
-
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
3027
|
-
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
3028
|
-
*/
|
|
3029
|
-
stickyPagination: {
|
|
3030
|
-
type: Boolean,
|
|
3031
|
-
default: !1
|
|
3032
|
-
},
|
|
3033
|
-
/**
|
|
3034
|
-
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
3035
|
-
* Defaults to true.
|
|
3036
|
-
*/
|
|
3037
|
-
stickyFilters: {
|
|
3038
|
-
type: Boolean,
|
|
3039
|
-
default: !0
|
|
3040
|
-
},
|
|
3041
|
-
/**
|
|
3042
|
-
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
3043
|
-
*/
|
|
3044
|
-
selectable: {
|
|
3045
|
-
type: Boolean,
|
|
3046
|
-
default: !1
|
|
3047
|
-
},
|
|
3048
|
-
/**
|
|
3049
|
-
* Selected items
|
|
3050
|
-
*/
|
|
3051
|
-
selection: {
|
|
3052
|
-
type: Array,
|
|
3053
|
-
default: () => []
|
|
3054
|
-
},
|
|
3055
|
-
/**
|
|
3056
|
-
* Enables / Disables the nested-content slot
|
|
3057
|
-
*/
|
|
3058
|
-
shouldShowNestedContent: {
|
|
3059
|
-
type: Function,
|
|
3060
|
-
default: (e) => !0
|
|
3061
|
-
},
|
|
3062
|
-
/**
|
|
3063
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
3064
|
-
*/
|
|
3065
|
-
shouldShowNestedRows: {
|
|
3066
|
-
type: Function,
|
|
3067
|
-
default: (e) => !0
|
|
3068
|
-
},
|
|
3069
|
-
/**
|
|
3070
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
3071
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
3072
|
-
*/
|
|
3073
|
-
sortBy: {
|
|
3074
|
-
type: Array,
|
|
3075
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
3076
|
-
default: () => []
|
|
3077
|
-
},
|
|
3078
|
-
/**
|
|
3079
|
-
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
3080
|
-
*/
|
|
3081
|
-
tabTitle: {
|
|
3082
|
-
type: String,
|
|
3083
|
-
default: null
|
|
3084
|
-
},
|
|
3085
|
-
/**
|
|
3086
|
-
* Truncates all data grid column headers
|
|
3087
|
-
*/
|
|
3088
|
-
truncateColumnHeaders: {
|
|
3089
|
-
type: Boolean,
|
|
3090
|
-
default: !1
|
|
3091
|
-
}
|
|
3092
|
-
},
|
|
3093
|
-
emits: [
|
|
3094
|
-
$.COLUMNS,
|
|
3095
|
-
$.COLUMN_RESIZE,
|
|
3096
|
-
$.ITEMS_PAGE,
|
|
3097
|
-
$.FILTER_SEARCH_INPUT,
|
|
3098
|
-
$.FILTER_SEARCH_CLEAR,
|
|
3099
|
-
$.NAVIGATE,
|
|
3100
|
-
$.NESTED_CONTENT_TOGGLED,
|
|
3101
|
-
$.UPDATE_COLUMNS,
|
|
3102
|
-
$.UPDATE_CONDENSED,
|
|
3103
|
-
$.UPDATE_FILTER_VALUES,
|
|
3104
|
-
$.UPDATE_FILTERS,
|
|
3105
|
-
$.UPDATE_FILTER_SEARCH_TERM,
|
|
3106
|
-
$.UPDATE_SHOW_MORE,
|
|
3107
|
-
$.UPDATE_PAGINATION,
|
|
3108
|
-
$.UPDATE_SELECTION,
|
|
3109
|
-
$.UPDATE_SORT_BY,
|
|
3110
|
-
$.ROW_CLICK,
|
|
3111
|
-
$.SELECT,
|
|
3112
|
-
$.SELECT_ALL_ACROSS_PAGES,
|
|
3113
|
-
$.SORT
|
|
3114
|
-
],
|
|
3115
|
-
setup(e, { expose: s, emit: m }) {
|
|
3116
|
-
const n = e, r = it(), t = rt(r), l = p(null), E = p(), _ = p({}), b = p(null), O = p(null), g = p(), D = p(null), a = p(null), {
|
|
3117
|
-
allowColumnDragAndDrop: i,
|
|
3118
|
-
columns: h,
|
|
3119
|
-
columnPanel: S,
|
|
3120
|
-
data: y,
|
|
3121
|
-
lazyLoadType: d,
|
|
3122
|
-
loading: w,
|
|
3123
|
-
hasNestedContent: v,
|
|
3124
|
-
hasNestedRows: q,
|
|
3125
|
-
selectable: G,
|
|
3126
|
-
selection: M,
|
|
3127
|
-
selectableAcrossPages: N,
|
|
3128
|
-
stickyPagination: U,
|
|
3129
|
-
outline: ee,
|
|
3130
|
-
pagination: te
|
|
3131
|
-
} = ot(n), C = p(-1), { t: x } = $e({ messages: je }), F = L(() => W.value.filter((I) => I.frozen).length), P = Je(
|
|
3132
|
-
al,
|
|
3133
|
-
() => ({
|
|
3134
|
-
additionalContentSlotRef: p(null),
|
|
3135
|
-
isDataGridTemplate: !1,
|
|
3136
|
-
stickyAditionalContent: p(!1),
|
|
3137
|
-
stickyTabs: p(!1),
|
|
3138
|
-
tabsRef: p(null)
|
|
3139
|
-
})
|
|
3140
|
-
), { additionalContentSlotRef: ue, isDataGridTemplate: ne, stickyTabs: J, tabsRef: Z, stickyAdditionalContent: Re } = P(), u = L(() => n.fitContent || ne ? 0 : null), {
|
|
3141
|
-
columnDefs: W,
|
|
3142
|
-
onColumnWidthOverride: c,
|
|
3143
|
-
gridColumnWidthStyle: T,
|
|
3144
|
-
gridRowWidthStyle: H,
|
|
3145
|
-
isMeasuringColumnWidths: Q,
|
|
3146
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: se,
|
|
3147
|
-
columns: le,
|
|
3148
|
-
totalWidthOfAllColumns: fe,
|
|
3149
|
-
rowActionsMaxWidth: ye
|
|
3150
|
-
} = kl(h, y, l, _, b, {
|
|
3151
|
-
hasColumnPanel: S,
|
|
3152
|
-
hasSelectableColumn: G,
|
|
3153
|
-
hasSelectableAcrossPages: N,
|
|
3154
|
-
hasNestedContent: v,
|
|
3155
|
-
hasNestedRows: q,
|
|
3156
|
-
allowColumnDragAndDrop: i,
|
|
3157
|
-
isDataGridTemplate: ne
|
|
3158
|
-
}), De = m, K = (I, ...z) => {
|
|
3159
|
-
(I === $.COLUMNS || I === $.UPDATE_COLUMNS) && ([le.value] = z), De(I, ...z);
|
|
3160
|
-
}, Fe = At(
|
|
3161
|
-
Z,
|
|
3162
|
-
J,
|
|
3163
|
-
Re,
|
|
3164
|
-
ue
|
|
3165
|
-
), qe = L(
|
|
3166
|
-
() => n.stickyFilters ? `${Fe.value}px` : null
|
|
3167
|
-
), on = At(O, Xe(n, "stickyFilters")), sn = L(
|
|
3168
|
-
() => `${on.value + Fe.value}px`
|
|
3169
|
-
), {
|
|
3170
|
-
sortedColumns: an,
|
|
3171
|
-
columnSets: We,
|
|
3172
|
-
isOnlyOneVisibleColumn: rn,
|
|
3173
|
-
onConfigSettingsUpdate: dn,
|
|
3174
|
-
onConfigSettingsColumnsUpdate: un,
|
|
3175
|
-
onConfigSettingsColumnUpdate: cn
|
|
3176
|
-
} = Wl(W, K), { hoveredOverColumn: fn, hoveredOverColumnState: ct } = Hl(
|
|
3177
|
-
We,
|
|
3178
|
-
G,
|
|
3179
|
-
ee,
|
|
3180
|
-
se
|
|
3181
|
-
), { draggingColumns: ft, draggingEventsForColumns: gn, draggingEventsForRowCell: vn, onMoveColumnByOffset: mn } = Bl(an, i, K), { onAllRowSelect: gt, onRowSelect: hn, onNestedRowSelect: Cn, selectedItems: vt, allItemsSelectedState: _n } = Ml(
|
|
3182
|
-
M,
|
|
3183
|
-
K,
|
|
3184
|
-
y,
|
|
3185
|
-
n.getDataItemId,
|
|
3186
|
-
n.isDataItemDisabled
|
|
3187
|
-
), { navigationInput: mt } = Fl(b, h, G), { isLazyLoad: Ue, isInfiniteScroll: wn, verticalScrollPosition: yn, emitLazyLoadEvent: Sn } = Pl(
|
|
3188
|
-
d,
|
|
3189
|
-
D,
|
|
3190
|
-
l,
|
|
3191
|
-
w,
|
|
3192
|
-
K
|
|
3193
|
-
), {
|
|
3194
|
-
updateScrollPosition: Ge,
|
|
3195
|
-
updateScrollPositionOnFrozenColumnsNavigation: En,
|
|
3196
|
-
syncVirtualScrollerWithBody: ht,
|
|
3197
|
-
hasLeftOverflow: He,
|
|
3198
|
-
hasRightOverflow: Ct,
|
|
3199
|
-
horizontalScrollbarConditionalClasses: Ln
|
|
3200
|
-
} = Gl(l, E, yn, a, fe, {
|
|
3201
|
-
isLazyLoad: Ue,
|
|
3202
|
-
pagination: te,
|
|
3203
|
-
stickyPagination: U,
|
|
3204
|
-
isDataGridTemplate: ne
|
|
3205
|
-
}), bn = () => {
|
|
3206
|
-
g.value.isClearAllVisible ? g.value.clearAllFilters() : g.value.isResetAllVisible && g.value.resetAllFilters();
|
|
3207
|
-
}, Rn = L(() => {
|
|
3208
|
-
var I, z;
|
|
3209
|
-
return {
|
|
3210
|
-
...n.emptyState,
|
|
3211
|
-
variant: ((I = n.emptyState) == null ? void 0 : I.variant) === "embedded" || ((z = n.emptyState) == null ? void 0 : z.variant) === "basic" ? n.emptyState.variant : "basic"
|
|
3212
|
-
};
|
|
3213
|
-
}), pn = L(() => ({
|
|
3214
|
-
[`b-data-grid--${Te.OUTLINE}`]: n.outline,
|
|
3215
|
-
[`b-data-grid--${Te.SCROLL}`]: n.fitContent || Ue.value,
|
|
3216
|
-
[`b-data-grid--${Te.STICKY_FILTERS}`]: n.filters && n.stickyFilters,
|
|
3217
|
-
[`b-data-grid--${Te.OVERFLOW_SHADOW_LEFT}`]: He.value && !F.value,
|
|
3218
|
-
[`b-data-grid--${Te.OVERFLOW_SHADOW_RIGHT}`]: Ct.value && n.rowActions === void 0,
|
|
3219
|
-
[`b-data-grid--${Te.NO_SPACING_TOP}`]: n.noSpacingTop
|
|
3220
|
-
})), On = L(() => ({
|
|
3221
|
-
"b-data-grid__body--sticky-horizontal-scrollbar": n.stickyHorizontalScrollbar
|
|
3222
|
-
})), An = L(() => We.value.findIndex((I) => I.columnSet.length)), _t = L(() => !((n.selectable || n.hasNestedContent || n.hasNestedRows) && F.value === 1) || He.value), Nn = L(() => ({
|
|
3223
|
-
"b-data-grid__filters--sticky": !!n.stickyFilters || ne
|
|
3224
|
-
})), Tn = L(() => {
|
|
3225
|
-
var I, z, ae, j, Se, be;
|
|
3226
|
-
return {
|
|
3227
|
-
"b-data-grid__pagination--padding-left-unset": ((ae = (z = (I = n.columns) == null ? void 0 : I[0]) == null ? void 0 : z.padding) == null ? void 0 : ae.left) === !1,
|
|
3228
|
-
"b-data-grid__pagination--padding-right-unset": ((be = (Se = (j = n.columns) == null ? void 0 : j[n.columns.length - 1]) == null ? void 0 : Se.padding) == null ? void 0 : be.right) === !1,
|
|
3229
|
-
"b-data-grid__pagination--sticky": !!n.stickyPagination || ne
|
|
3230
|
-
};
|
|
3231
|
-
}), In = (I) => {
|
|
3232
|
-
const z = I;
|
|
3233
|
-
I !== null && (z != null && z.columnHeaderRefs) && Object.entries(z == null ? void 0 : z.columnHeaderRefs).forEach(([ae, j]) => {
|
|
3234
|
-
_.value[ae] = j;
|
|
3235
|
-
});
|
|
3236
|
-
}, $n = (I, z) => {
|
|
3237
|
-
var j, Se;
|
|
3238
|
-
const ae = I;
|
|
3239
|
-
I !== null && (ae != null && ae.gridcellRefs && Object.entries(ae == null ? void 0 : ae.gridcellRefs).map(([be, ke]) => {
|
|
3240
|
-
var me;
|
|
3241
|
-
((me = b.value) == null ? void 0 : me[be]) === void 0 && (b.value = { ...b.value, [be]: [] }), b.value[be][z] = ke;
|
|
3242
|
-
}), n.rowActions !== void 0 && (ae != null && ae.rowActionsRef) && (ye.value = Math.max(
|
|
3243
|
-
ye.value,
|
|
3244
|
-
((Se = (j = ae.rowActionsRef) == null ? void 0 : j[0]) == null ? void 0 : Se.offsetWidth) ?? 0
|
|
3245
|
-
)));
|
|
3246
|
-
}, Dn = (I, z) => {
|
|
3247
|
-
n.allowRowClicks && K($.ROW_CLICK, I, z);
|
|
3248
|
-
}, kn = (I) => {
|
|
3249
|
-
C.value = I;
|
|
3250
|
-
}, Mn = L(() => !!n.selectableAcrossPages && !!n.pagination), zn = L(() => n.hasNestedContent || n.hasNestedRows ? "treegrid" : "grid"), wt = ll({
|
|
3251
|
-
label: r != null && r.header ? ol(r)("header") : null,
|
|
3252
|
-
defaultFallback: "data grid"
|
|
3253
|
-
}), yt = L(() => {
|
|
3254
|
-
var I;
|
|
3255
|
-
return ((I = vt.value) == null ? void 0 : I.length) ?? 0;
|
|
3256
|
-
}), Fn = L(() => n.bulkActions && yt.value > 0), Un = (I) => K($.COLUMN_RESIZE, I), Pn = (I) => {
|
|
3257
|
-
K($.UPDATE_SORT_BY, I), K($.SORT, I);
|
|
3258
|
-
}, Bn = (I, z) => {
|
|
3259
|
-
K($.NAVIGATE, I), K($.UPDATE_PAGINATION, {
|
|
3260
|
-
...n.pagination,
|
|
3261
|
-
size: z,
|
|
3262
|
-
page: I
|
|
3263
|
-
});
|
|
3264
|
-
}, Wn = (I) => {
|
|
3265
|
-
K($.ITEMS_PAGE, I);
|
|
3266
|
-
}, Gn = () => {
|
|
3267
|
-
K($.FILTER_SEARCH_CLEAR);
|
|
3268
|
-
}, Hn = (I) => {
|
|
3269
|
-
K($.UPDATE_FILTER_SEARCH_TERM, I), K($.FILTER_SEARCH_INPUT, I);
|
|
3270
|
-
};
|
|
3271
|
-
return L(() => h.value.some((I) => I.mandatory)).value || Zt(
|
|
3272
|
-
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3273
|
-
), Je(il, () => null)(n.tabTitle), Vt(tn, Xe(n, "slashedZero")), s({ onEmptyStateClearResetButtonClick: bn }), (I, z) => {
|
|
3274
|
-
var ae;
|
|
3275
|
-
return f(), R("div", {
|
|
3276
|
-
class: ce(["b-data-grid", pn.value]),
|
|
3277
|
-
"aria-rowcount": o(y).length,
|
|
3278
|
-
"aria-colcount": o(h).length,
|
|
3279
|
-
"aria-label": o(wt),
|
|
3280
|
-
role: zn.value
|
|
3281
|
-
}, [
|
|
3282
|
-
e.filters ? (f(), R("div", {
|
|
3283
|
-
key: 0,
|
|
3284
|
-
ref_key: "filtersRef",
|
|
3285
|
-
ref: O,
|
|
3286
|
-
class: ce(["b-data-grid__filters", Nn.value]),
|
|
3287
|
-
style: Me({ top: qe.value })
|
|
3288
|
-
}, [
|
|
3289
|
-
e.filters ? (f(), B(o(Ye), {
|
|
3290
|
-
key: 0,
|
|
3291
|
-
ref_key: "filterBarRef",
|
|
3292
|
-
ref: g,
|
|
3293
|
-
config: e.filters,
|
|
3294
|
-
"container-size-layout": e.filtersContainerSizeLayout,
|
|
3295
|
-
"filter-values": e.filterValues,
|
|
3296
|
-
search: e.filterSearchConfig,
|
|
3297
|
-
"search-term": e.filterSearchTerm,
|
|
3298
|
-
onSearchInput: Hn,
|
|
3299
|
-
onSearchClear: Gn,
|
|
3300
|
-
onInput: z[0] || (z[0] = (j) => I.$emit(o($).UPDATE_FILTERS, j)),
|
|
3301
|
-
"onUpdate:filterValues": z[1] || (z[1] = (j) => I.$emit(o($).UPDATE_FILTER_VALUES, j))
|
|
3302
|
-
}, null, 8, ["config", "container-size-layout", "filter-values", "search", "search-term"])) : k("", !0)
|
|
3303
|
-
], 6)) : k("", !0),
|
|
3304
|
-
I.$slots.header ? (f(), R("div", Ms, [
|
|
3305
|
-
pe(I.$slots, "header", {}, void 0, !0)
|
|
3306
|
-
])) : k("", !0),
|
|
3307
|
-
A("div", {
|
|
3308
|
-
class: "b-data-grid__column-headers",
|
|
3309
|
-
style: Me({ top: sn.value })
|
|
3310
|
-
}, [
|
|
3311
|
-
o(S) ? (f(), B(o(es), {
|
|
3312
|
-
key: 0,
|
|
3313
|
-
class: "b-data-grid__config-settings",
|
|
3314
|
-
columns: o(le),
|
|
3315
|
-
condensed: e.condensed,
|
|
3316
|
-
onConfigSettings: o(dn),
|
|
3317
|
-
"onUpdate:columns": o(un)
|
|
3318
|
-
}, null, 8, ["columns", "condensed", "onConfigSettings", "onUpdate:columns"])) : k("", !0),
|
|
3319
|
-
A("div", {
|
|
3320
|
-
ref_key: "columnsRef",
|
|
3321
|
-
ref: E,
|
|
3322
|
-
role: "rowgroup",
|
|
3323
|
-
class: "b-data-grid__columns-row",
|
|
3324
|
-
tabindex: u.value,
|
|
3325
|
-
onScroll: z[4] || (z[4] = //@ts-ignore
|
|
3326
|
-
(...j) => o(Ge) && o(Ge)(...j))
|
|
3327
|
-
}, [
|
|
3328
|
-
A("div", {
|
|
3329
|
-
style: Me(o(T)),
|
|
3330
|
-
class: "b-data-grid__columns",
|
|
3331
|
-
role: "row"
|
|
3332
|
-
}, [
|
|
3333
|
-
(f(!0), R(_e, null, Le(o(We), ({ columnSet: j, id: Se, isFrozenColumns: be }, ke) => (f(), R(_e, null, [
|
|
3334
|
-
j != null && j.length ? (f(), B(o($o), oe({
|
|
3335
|
-
key: `data-grid-columns-${Se}`,
|
|
3336
|
-
ref_for: !0,
|
|
3337
|
-
ref: (me) => In(me),
|
|
3338
|
-
columns: j,
|
|
3339
|
-
"has-resizable-columns": e.hasResizableColumns,
|
|
3340
|
-
"sort-by": e.sortBy,
|
|
3341
|
-
"all-items-selected-state": o(_n),
|
|
3342
|
-
"is-frozen-columns": be,
|
|
3343
|
-
"show-frozen-columns-separator": _t.value,
|
|
3344
|
-
"dragging-columns": o(ft),
|
|
3345
|
-
"has-draggable-columns": o(i),
|
|
3346
|
-
"has-column-panel": o(S),
|
|
3347
|
-
"has-left-overflow": o(He),
|
|
3348
|
-
"has-first-column-panel-right-aligned": ke === An.value,
|
|
3349
|
-
"hovered-over-column-state": o(ct),
|
|
3350
|
-
"is-measuring-column-widths": o(Q),
|
|
3351
|
-
"is-only-one-visible-column": o(rn),
|
|
3352
|
-
selectable: o(G),
|
|
3353
|
-
"selectable-across-pages": Mn.value,
|
|
3354
|
-
"truncate-column-headers": e.truncateColumnHeaders
|
|
3355
|
-
}, xe(o(gn)), {
|
|
3356
|
-
onColumnHover: z[2] || (z[2] = (me) => fn.value = me),
|
|
3357
|
-
onColumnMove: o(mn),
|
|
3358
|
-
onColumnUpdate: o(cn),
|
|
3359
|
-
onColumnResize: Un,
|
|
3360
|
-
onColumnResizing: o(c),
|
|
3361
|
-
onSelectAllRows: o(gt),
|
|
3362
|
-
onSelectAllAcrossPages: z[3] || (z[3] = (me) => K(o($).SELECT_ALL_ACROSS_PAGES)),
|
|
3363
|
-
onSort: Pn
|
|
3364
|
-
}), ze({ _: 2 }, [
|
|
3365
|
-
Le(o(r), (me, Pe) => ({
|
|
3366
|
-
name: Pe,
|
|
3367
|
-
fn: V((Ke) => [
|
|
3368
|
-
pe(I.$slots, Pe, oe({ ref_for: !0 }, Ke), void 0, !0)
|
|
3369
|
-
])
|
|
3370
|
-
}))
|
|
3371
|
-
]), 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"])) : k("", !0)
|
|
3372
|
-
], 64))), 256))
|
|
3373
|
-
], 4)
|
|
3374
|
-
], 40, zs)
|
|
3375
|
-
], 4),
|
|
3376
|
-
A("div", {
|
|
3377
|
-
ref_key: "body",
|
|
3378
|
-
ref: l,
|
|
3379
|
-
"data-testid": "data-grid-body",
|
|
3380
|
-
class: ce(["b-data-grid__body", On.value]),
|
|
3381
|
-
tabindex: o(w) ? "0" : "-1",
|
|
3382
|
-
"aria-busy": o(w),
|
|
3383
|
-
"aria-live": "polite",
|
|
3384
|
-
onScroll: z[7] || (z[7] = //@ts-ignore
|
|
3385
|
-
(...j) => o(Ge) && o(Ge)(...j))
|
|
3386
|
-
}, [
|
|
3387
|
-
o(w) && !o(Ue) ? (f(), R("div", Us, [
|
|
3388
|
-
Y(o(at), {
|
|
3389
|
-
class: "b-data-grid__loading-indicator",
|
|
3390
|
-
large: ""
|
|
3391
|
-
}),
|
|
3392
|
-
Y(o(Ze), {
|
|
3393
|
-
el: "span",
|
|
3394
|
-
variant: "caption"
|
|
3395
|
-
}, {
|
|
3396
|
-
default: V(() => [
|
|
3397
|
-
ve(X(o(x)("gettingYourData")), 1)
|
|
3398
|
-
]),
|
|
3399
|
-
_: 1
|
|
3400
|
-
})
|
|
3401
|
-
])) : ((ae = o(y)) == null ? void 0 : ae.length) === 0 && e.emptyState ? (f(), R("div", Ps, [
|
|
3402
|
-
Y(o(sl), Kn(Yn(Rn.value)), null, 16)
|
|
3403
|
-
])) : (f(), R("div", {
|
|
3404
|
-
key: 2,
|
|
3405
|
-
class: "b-data-grid__rows",
|
|
3406
|
-
role: "rowgroup",
|
|
3407
|
-
onKeydown: z[6] || (z[6] = //@ts-ignore
|
|
3408
|
-
(...j) => o(mt) && o(mt)(...j))
|
|
3409
|
-
}, [
|
|
3410
|
-
(f(!0), R(_e, null, Le(o(y), (j, Se) => {
|
|
3411
|
-
var be, ke;
|
|
3412
|
-
return f(), B(o(ln), {
|
|
3413
|
-
key: Se,
|
|
3414
|
-
ref_for: !0,
|
|
3415
|
-
ref: (me) => $n(me, Se),
|
|
3416
|
-
style: Me(o(H)),
|
|
3417
|
-
"allow-row-clicks": e.allowRowClicks,
|
|
3418
|
-
"column-sets": o(We),
|
|
3419
|
-
condensed: e.condensed,
|
|
3420
|
-
"dragging-columns": o(ft),
|
|
3421
|
-
"dragging-events-for-row-cell": o(vn),
|
|
3422
|
-
"get-data-item-id": e.getDataItemId,
|
|
3423
|
-
"has-nested-content": o(v),
|
|
3424
|
-
"has-nested-rows": o(q),
|
|
3425
|
-
"has-left-overflow": o(He),
|
|
3426
|
-
"has-right-overflow": o(Ct),
|
|
3427
|
-
"highlighted-rows": e.highlightedRows,
|
|
3428
|
-
"hovered-row-index": C.value,
|
|
3429
|
-
"hovered-over-column-state": o(ct),
|
|
3430
|
-
"is-data-item-disabled": e.isDataItemDisabled,
|
|
3431
|
-
"is-row-last-child": Se + 1 === ((be = o(y)) == null ? void 0 : be.length),
|
|
3432
|
-
"is-measuring-column-widths": o(Q),
|
|
3433
|
-
"row-actions-maximum-width": o(ye),
|
|
3434
|
-
"row-actions": e.rowActions,
|
|
3435
|
-
"row-data": j,
|
|
3436
|
-
"row-index": Se,
|
|
3437
|
-
"row-set-size": (ke = o(y)) == null ? void 0 : ke.length,
|
|
3438
|
-
"show-frozen-columns-separator": _t.value,
|
|
3439
|
-
"should-show-nested-content": e.shouldShowNestedContent,
|
|
3440
|
-
"should-show-nested-rows": e.shouldShowNestedRows,
|
|
3441
|
-
selectable: o(G),
|
|
3442
|
-
"selected-items": o(vt),
|
|
3443
|
-
onCellHovered: kn,
|
|
3444
|
-
onNestedContentToggled: z[5] || (z[5] = (me) => K(o($).NESTED_CONTENT_TOGGLED, me)),
|
|
3445
|
-
onRowClick: Dn,
|
|
3446
|
-
onOnFrozenColumnsKeyPress: o(En),
|
|
3447
|
-
onSelectRow: o(hn),
|
|
3448
|
-
onSelectNestedRow: o(Cn)
|
|
3449
|
-
}, ze({ _: 2 }, [
|
|
3450
|
-
Le(o(r), (me, Pe) => ({
|
|
3451
|
-
name: Pe,
|
|
3452
|
-
fn: V((Ke) => [
|
|
3453
|
-
pe(I.$slots, Pe, oe({ ref_for: !0 }, Ke), void 0, !0)
|
|
3454
|
-
])
|
|
3455
|
-
}))
|
|
3456
|
-
]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
|
|
3457
|
-
}), 128))
|
|
3458
|
-
], 32))
|
|
3459
|
-
], 42, Fs),
|
|
3460
|
-
o(Ue) ? (f(), B(o(os), {
|
|
3461
|
-
key: 2,
|
|
3462
|
-
loading: o(w),
|
|
3463
|
-
"is-infinite-scroll": o(wn),
|
|
3464
|
-
"onUpdate:showMore": o(Sn)
|
|
3465
|
-
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : k("", !0),
|
|
3466
|
-
e.stickyHorizontalScrollbar ? (f(), R("div", {
|
|
3467
|
-
key: 3,
|
|
3468
|
-
ref_key: "virtualHorizontalScrollbarRef",
|
|
3469
|
-
ref: a,
|
|
3470
|
-
class: ce(["b-data-grid__horizontal-scrollbar", o(Ln)]),
|
|
3471
|
-
"aria-hidden": "true",
|
|
3472
|
-
"data-testid": "sticky-horizontal-scrollbar",
|
|
3473
|
-
onScroll: z[8] || (z[8] = //@ts-ignore
|
|
3474
|
-
(...j) => o(ht) && o(ht)(...j))
|
|
3475
|
-
}, [
|
|
3476
|
-
A("div", {
|
|
3477
|
-
style: Me({ width: `${o(fe)}px`, height: "15px" })
|
|
3478
|
-
}, null, 4)
|
|
3479
|
-
], 34)) : k("", !0),
|
|
3480
|
-
o(te) && !o(Ue) ? (f(), R("div", {
|
|
3481
|
-
key: 4,
|
|
3482
|
-
"data-testid": "pagination-container",
|
|
3483
|
-
class: ce(["b-data-grid__pagination", Tn.value])
|
|
3484
|
-
}, [
|
|
3485
|
-
Y(o(nl), oe(o(te), {
|
|
3486
|
-
"aria-label": `${o(wt)} navigation`,
|
|
3487
|
-
onNavigate: Bn,
|
|
3488
|
-
onItemsPage: Wn
|
|
3489
|
-
}), {
|
|
3490
|
-
default: V(() => [
|
|
3491
|
-
o(t)("pagination-slot") ? pe(I.$slots, "pagination-slot", { key: 0 }, void 0, !0) : k("", !0)
|
|
3492
|
-
]),
|
|
3493
|
-
_: 3
|
|
3494
|
-
}, 16, ["aria-label"])
|
|
3495
|
-
], 2)) : k("", !0),
|
|
3496
|
-
I.$slots.footer ? (f(), R("div", Bs, [
|
|
3497
|
-
pe(I.$slots, "footer", {}, void 0, !0)
|
|
3498
|
-
])) : k("", !0),
|
|
3499
|
-
Fn.value ? (f(), B(o(tl), {
|
|
3500
|
-
key: 6,
|
|
3501
|
-
actions: e.bulkActions,
|
|
3502
|
-
"item-counter": yt.value,
|
|
3503
|
-
"extra-bottom-spacing": o(U),
|
|
3504
|
-
onClose: z[9] || (z[9] = (j) => o(gt)(!1))
|
|
3505
|
-
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing"])) : k("", !0)
|
|
3506
|
-
], 10, ks);
|
|
3507
|
-
};
|
|
3508
|
-
}
|
|
3509
|
-
}), ki = /* @__PURE__ */ de(Gs, [["__scopeId", "data-v-2862ac97"]]);
|
|
3510
|
-
export {
|
|
3511
|
-
tt as B,
|
|
3512
|
-
Di as a,
|
|
3513
|
-
Te as b,
|
|
3514
|
-
Ie as c,
|
|
3515
|
-
ki as d,
|
|
3516
|
-
$ as e,
|
|
3517
|
-
Ve as f
|
|
3518
|
-
};
|
|
3519
|
-
//# sourceMappingURL=data-grid.BVcmZ1X_.js.map
|