@adyen/bento-vue2 1.60.1 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +114 -7
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-with-views.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/popover.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/chunks/{action-bar.CMqiD6vc.js → action-bar.Bgd_D2d9.js} +5 -5
- package/dist/chunks/{action-bar.CMqiD6vc.js.map → action-bar.Bgd_D2d9.js.map} +1 -1
- package/dist/chunks/{alert.Du9NfW-V.js → alert.C1QHvbmJ.js} +2 -2
- package/dist/chunks/{alert.Du9NfW-V.js.map → alert.C1QHvbmJ.js.map} +1 -1
- package/dist/chunks/{base-modal.xA_DhHx9.js → base-modal.BKjjZPZw.js} +4 -4
- package/dist/chunks/{base-modal.xA_DhHx9.js.map → base-modal.BKjjZPZw.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.S7i4V-8E.js → button-actions-with-menu.YN379eYi.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.S7i4V-8E.js.map → button-actions-with-menu.YN379eYi.js.map} +1 -1
- package/dist/chunks/{button-actions.BFtzsfNe.js → button-actions.CHZ2BT5_.js} +2 -2
- package/dist/chunks/{button-actions.BFtzsfNe.js.map → button-actions.CHZ2BT5_.js.map} +1 -1
- package/dist/chunks/{button.BuD-IsW5.js → button.CvgJ_0_Z.js} +21 -10
- package/dist/chunks/button.CvgJ_0_Z.js.map +1 -0
- package/dist/chunks/{calendar.DQiq_EoU.js → calendar.CjVkJzjc.js} +2 -2
- package/dist/chunks/{calendar.DQiq_EoU.js.map → calendar.CjVkJzjc.js.map} +1 -1
- package/dist/chunks/{card.Bk7Lz1GS.js → card.CcDdIUvd.js} +2 -2
- package/dist/chunks/{card.Bk7Lz1GS.js.map → card.CcDdIUvd.js.map} +1 -1
- package/dist/chunks/{code-snippet.BlYhf-Dt.js → code-snippet.gRALClm3.js} +5 -5
- package/dist/chunks/{code-snippet.BlYhf-Dt.js.map → code-snippet.gRALClm3.js.map} +1 -1
- package/dist/chunks/{copy.Bod4H2Dk.js → copy.qU5LvaNi.js} +2 -2
- package/dist/chunks/{copy.Bod4H2Dk.js.map → copy.qU5LvaNi.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Dx6eYon4.js → dashboard-section.Bn5RJCPR.js} +3 -3
- package/dist/chunks/{dashboard-section.Dx6eYon4.js.map → dashboard-section.Bn5RJCPR.js.map} +1 -1
- package/dist/chunks/dashed-underline._q5UFPSC.js +78 -0
- package/dist/chunks/dashed-underline._q5UFPSC.js.map +1 -0
- package/dist/chunks/{data-grid-template.CVl3PU0v.js → data-grid-template.CrpwSZRE.js} +4 -4
- package/dist/chunks/{data-grid-template.CVl3PU0v.js.map → data-grid-template.CrpwSZRE.js.map} +1 -1
- package/dist/chunks/{data-grid.BZaXKTLk.js → data-grid.ZBzlPPcj.js} +351 -348
- package/dist/chunks/data-grid.ZBzlPPcj.js.map +1 -0
- package/dist/chunks/{date-picker.lrT6LXe-.js → date-picker.BOEKZKFp.js} +3 -3
- package/dist/chunks/{date-picker.lrT6LXe-.js.map → date-picker.BOEKZKFp.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Djt5mYvh.js → date-range-picker.DMHCqAZA.js} +6 -6
- package/dist/chunks/{date-range-picker.Djt5mYvh.js.map → date-range-picker.DMHCqAZA.js.map} +1 -1
- package/dist/chunks/delight.CDBAFnwC.js +5 -0
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
- package/dist/chunks/delight.xKDCvvaS.js +5 -0
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
- package/dist/chunks/{dialog-page.C5r6tM57.js → dialog-page.CDV828kt.js} +2 -2
- package/dist/chunks/{dialog-page.C5r6tM57.js.map → dialog-page.CDV828kt.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CY3nZ50z.js → dropdown-tag.CaEPpy4R.js} +2 -2
- package/dist/chunks/{dropdown-tag.CY3nZ50z.js.map → dropdown-tag.CaEPpy4R.js.map} +1 -1
- package/dist/chunks/{dropdown.Cx-3TGBk.js → dropdown.3c5SsPV1.js} +89 -74
- package/dist/chunks/{dropdown.Cx-3TGBk.js.map → dropdown.3c5SsPV1.js.map} +1 -1
- package/dist/chunks/empty-state.DXDb-S58.js +151 -0
- package/dist/chunks/empty-state.DXDb-S58.js.map +1 -0
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{file-uploader.E18P6eyS.js → file-uploader.ChDPu4V7.js} +3 -3
- package/dist/chunks/{file-uploader.E18P6eyS.js.map → file-uploader.ChDPu4V7.js.map} +1 -1
- package/dist/chunks/{filter-bar.D6IL1UDu.js → filter-bar.BVRAteKx.js} +545 -540
- package/dist/chunks/filter-bar.BVRAteKx.js.map +1 -0
- package/dist/chunks/{fixed-scroller.D0a6q8_i.js → fixed-scroller.DPiQh_o-.js} +2 -2
- package/dist/chunks/{fixed-scroller.D0a6q8_i.js.map → fixed-scroller.DPiQh_o-.js.map} +1 -1
- package/dist/chunks/{footer-actions.BgpSnSSn.js → footer-actions.B3pFu9GM.js} +3 -3
- package/dist/chunks/{footer-actions.BgpSnSSn.js.map → footer-actions.B3pFu9GM.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DBCY18f8.js → form-layout-title.Ck5QqPkA.js} +2 -2
- package/dist/chunks/{form-layout-title.DBCY18f8.js.map → form-layout-title.Ck5QqPkA.js.map} +1 -1
- package/dist/chunks/{header-with-views.DAdbhhG9.js → header-with-views.BlEEUDWs.js} +486 -484
- package/dist/chunks/{header-with-views.DAdbhhG9.js.map → header-with-views.BlEEUDWs.js.map} +1 -1
- package/dist/chunks/{header.8SId1U5r.js → header.BfxNBVCD.js} +4 -4
- package/dist/chunks/{header.8SId1U5r.js.map → header.BfxNBVCD.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.XZqkxPsB.js → info-icon-with-popover.B4Q8jmW7.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.XZqkxPsB.js.map → info-icon-with-popover.B4Q8jmW7.js.map} +1 -1
- package/dist/chunks/{input-field-password.lK0Im1eg.js → input-field-password.Ciw4TWWq.js} +5 -5
- package/dist/chunks/{input-field-password.lK0Im1eg.js.map → input-field-password.Ciw4TWWq.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BnjBqUKg.js → input-field-phone-number.CRx64sme.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BnjBqUKg.js.map → input-field-phone-number.CRx64sme.js.map} +1 -1
- package/dist/chunks/{input-field.B8HxtNIv.js → input-field.DOnqD_Fx.js} +2 -2
- package/dist/chunks/{input-field.B8HxtNIv.js.map → input-field.DOnqD_Fx.js.map} +1 -1
- package/dist/chunks/{inspector.CegHqvEW.js → inspector.tn1wr5hV.js} +2 -2
- package/dist/chunks/{inspector.CegHqvEW.js.map → inspector.tn1wr5hV.js.map} +1 -1
- package/dist/chunks/{menu.CT0SIn4v.js → menu.B_DCBdeN.js} +3 -3
- package/dist/chunks/{menu.CT0SIn4v.js.map → menu.B_DCBdeN.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.tofT1h0P.js → modal-fullscreen.cBUMfJhU.js} +4 -4
- package/dist/chunks/{modal-fullscreen.tofT1h0P.js.map → modal-fullscreen.cBUMfJhU.js.map} +1 -1
- package/dist/chunks/{modal.CiYtGu6u.js → modal.DWkmyvRc.js} +5 -5
- package/dist/chunks/{modal.CiYtGu6u.js.map → modal.DWkmyvRc.js.map} +1 -1
- package/dist/chunks/{pagination.B-EP9Lkq.js → pagination.pzY_1Qqp.js} +3 -3
- package/dist/chunks/{pagination.B-EP9Lkq.js.map → pagination.pzY_1Qqp.js.map} +1 -1
- package/dist/chunks/{popover.COaHa4ES.js → popover.BN2VK6KG.js} +3 -3
- package/dist/chunks/{popover.COaHa4ES.js.map → popover.BN2VK6KG.js.map} +1 -1
- package/dist/chunks/{promo-banner.DJpA7Whg.js → promo-banner.Cua4uX1x.js} +2 -2
- package/dist/chunks/{promo-banner.DJpA7Whg.js.map → promo-banner.Cua4uX1x.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.C4NdjtLA.js → rich-text-editor.BRlygI8q.js} +2 -2
- package/dist/chunks/{rich-text-editor.C4NdjtLA.js.map → rich-text-editor.BRlygI8q.js.map} +1 -1
- package/dist/chunks/{search-bar.B4u_IgiI.js → search-bar.C10szx9Q.js} +3 -3
- package/dist/chunks/{search-bar.B4u_IgiI.js.map → search-bar.C10szx9Q.js.map} +1 -1
- package/dist/chunks/{secondary-nav.EROJ_sJQ.js → secondary-nav.Bdxei6WP.js} +2 -2
- package/dist/chunks/{secondary-nav.EROJ_sJQ.js.map → secondary-nav.Bdxei6WP.js.map} +1 -1
- package/dist/chunks/{sidepanel.3EBWM8JV.js → sidepanel.X5Te2FiT.js} +4 -4
- package/dist/chunks/{sidepanel.3EBWM8JV.js.map → sidepanel.X5Te2FiT.js.map} +1 -1
- package/dist/chunks/{structured-list-item.rOTJM0uc.js → structured-list-item.n5vrbuW9.js} +3 -3
- package/dist/chunks/{structured-list-item.rOTJM0uc.js.map → structured-list-item.n5vrbuW9.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Bg1Y7i-F.js → summary-grid.types.D23lQ-e5.js} +3 -3
- package/dist/chunks/{summary-grid.types.Bg1Y7i-F.js.map → summary-grid.types.D23lQ-e5.js.map} +1 -1
- package/dist/chunks/{tabs.DX_Gq12z.js → tabs.DKehFLDL.js} +2 -2
- package/dist/chunks/{tabs.DX_Gq12z.js.map → tabs.DKehFLDL.js.map} +1 -1
- package/dist/chunks/{textarea.0PapD8Nl.js → textarea.D09495Nz.js} +2 -2
- package/dist/chunks/{textarea.0PapD8Nl.js.map → textarea.D09495Nz.js.map} +1 -1
- package/dist/chunks/{timeline-item.IFw76Qeh.js → timeline-item.DKPI-4iu.js} +5 -5
- package/dist/chunks/{timeline-item.IFw76Qeh.js.map → timeline-item.DKPI-4iu.js.map} +1 -1
- package/dist/chunks/{toast.B2u2W_TQ.js → toast.C_uVjJnK.js} +2 -2
- package/dist/chunks/{toast.B2u2W_TQ.js.map → toast.C_uVjJnK.js.map} +1 -1
- package/dist/chunks/{toggle-button.ChDbeBZ8.js → toggle-button.COEDg5Ym.js} +2 -2
- package/dist/chunks/{toggle-button.ChDbeBZ8.js.map → toggle-button.COEDg5Ym.js.map} +1 -1
- package/dist/chunks/{tutorial.suIRmXta.js → tutorial.DgmK5EEo.js} +4 -4
- package/dist/chunks/{tutorial.suIRmXta.js.map → tutorial.DgmK5EEo.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.9OnD_j5F.js → use-cached-selected-values.C-umGJXi.js} +451 -445
- package/dist/chunks/use-cached-selected-values.C-umGJXi.js.map +1 -0
- 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/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +45 -45
- 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/inspector.js +1 -1
- package/dist/internal.js +8 -8
- 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/promo-banner.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +1 -0
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +20 -1
- package/package.json +5 -5
- package/dist/chunks/button.BuD-IsW5.js.map +0 -1
- package/dist/chunks/dashed-underline.CY5J4pZp.js +0 -65
- package/dist/chunks/dashed-underline.CY5J4pZp.js.map +0 -1
- package/dist/chunks/data-grid.BZaXKTLk.js.map +0 -1
- package/dist/chunks/empty-state.IvvHHQ35.js +0 -151
- package/dist/chunks/empty-state.IvvHHQ35.js.map +0 -1
- package/dist/chunks/filter-bar.D6IL1UDu.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.9OnD_j5F.js.map +0 -1
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { ref as E, onMounted as Te, nextTick as ne, watch as te, onUnmounted as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
1
|
+
import { ref as E, onMounted as Te, nextTick as ne, watch as te, onUnmounted as ft, reactive as Ie, toRefs as De, computed as w, watchEffect as pn, onBeforeUpdate as wn, defineComponent as ae, toRef as be, useSlots as xe, provide as gt, inject as Ae } from "vue";
|
|
2
|
+
import { C as Sn } from "./checkmark-circle-fill.DZBl7CeY.js";
|
|
3
|
+
import { W as En } from "./warning-filled.Cd0kVWwa.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { n as q } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as _t } from "./cross.CJ5EEL2c.js";
|
|
7
7
|
import { N as Ye } from "./checkbox-input.Dr1GS2BZ.js";
|
|
8
|
-
import { d as
|
|
9
|
-
import { E as re, B as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
8
|
+
import { d as Ln } from "./popper-container.DIFqmRsp.js";
|
|
9
|
+
import { E as re, B as yn } from "./tooltip.DyZIyMZN.js";
|
|
10
|
+
import { B as Rn } from "./action-bar.Bgd_D2d9.js";
|
|
11
|
+
import { B as bn } from "./pagination.pzY_1Qqp.js";
|
|
12
12
|
import { B as Fe } from "./loading-indicator.z8COalOc.js";
|
|
13
|
-
import { B as
|
|
13
|
+
import { B as he, p as vt } from "./typography.J1v_SPG3.js";
|
|
14
14
|
import { u as Me } from "./use-has-slot.C9lQZ6nz.js";
|
|
15
|
-
import { u as
|
|
16
|
-
import { g as
|
|
15
|
+
import { u as An } from "./aria-label.CaUURpnB.js";
|
|
16
|
+
import { g as On } from "./get-slot-text.BQS5Olxm.js";
|
|
17
17
|
import { u as ge } from "./i18n.BQkEbtPM.js";
|
|
18
|
-
import { B as Re } from "./filter-bar.
|
|
19
|
-
import { B as
|
|
20
|
-
import { E as
|
|
21
|
-
import { D as
|
|
18
|
+
import { B as Re } from "./filter-bar.BVRAteKx.js";
|
|
19
|
+
import { B as Nn } from "./empty-state.DXDb-S58.js";
|
|
20
|
+
import { E as Tn } from "./tabs.keys.Bc2pSKRw.js";
|
|
21
|
+
import { D as In } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
22
22
|
import { o as Be } from "./resize.Bqks3WUm.js";
|
|
23
23
|
import "./index.Cl4_42j5.js";
|
|
24
|
-
import { b as
|
|
25
|
-
import { u as
|
|
24
|
+
import { b as Dn } from "./focus-trap.C-wIQqpO.js";
|
|
25
|
+
import { u as xn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
26
26
|
import { g as Oe } from "./generate-uid.NJ8tVoha.js";
|
|
27
|
-
import { B as
|
|
28
|
-
import { B as
|
|
29
|
-
import { E as
|
|
30
|
-
import { C as
|
|
27
|
+
import { B as Ct } from "./button.CvgJ_0_Z.js";
|
|
28
|
+
import { B as mt, O as Fn, D as Mn } from "./menu.B_DCBdeN.js";
|
|
29
|
+
import { E as Bn } from "./link.D0P79Toh.js";
|
|
30
|
+
import { C as $n } from "./copy.qU5LvaNi.js";
|
|
31
31
|
import { B as ht } from "./checkbox.DkDqMVeb.js";
|
|
32
|
-
import { C as
|
|
33
|
-
import { B as $e } from "./toggle-button.
|
|
34
|
-
import { e as
|
|
35
|
-
import { B as
|
|
36
|
-
import { a as Xe, B as
|
|
37
|
-
import { A as
|
|
38
|
-
import { H as
|
|
32
|
+
import { C as zn, a as Pn } from "./chevron-up.CSVyoaTy.js";
|
|
33
|
+
import { B as $e } from "./toggle-button.COEDg5Ym.js";
|
|
34
|
+
import { e as Un, d as kn } from "./button-actions.CHZ2BT5_.js";
|
|
35
|
+
import { B as Wn } from "./info-icon.C1xOlhYj.js";
|
|
36
|
+
import { a as Xe, B as Gn } from "./popover.BN2VK6KG.js";
|
|
37
|
+
import { A as Hn } from "./dialog-page.CDV828kt.js";
|
|
38
|
+
import { H as Vn, S as Zn } from "./show.e4LEpZKG.js";
|
|
39
39
|
import { l as Ke } from "./events.CMzGybJJ.js";
|
|
40
|
-
import { B as
|
|
41
|
-
import { B as
|
|
42
|
-
import { u as
|
|
43
|
-
import { S as
|
|
44
|
-
import { B as
|
|
40
|
+
import { B as pt } from "./toggle.Q52IIKfi.js";
|
|
41
|
+
import { B as jn } from "./search-bar.C10szx9Q.js";
|
|
42
|
+
import { u as qn } from "./dropdown.3c5SsPV1.js";
|
|
43
|
+
import { S as Yn } from "./search.DLtglc02.js";
|
|
44
|
+
import { B as Xn } from "./directive.Cbdox5VL.js";
|
|
45
45
|
import "../assets/data-grid.css";
|
|
46
46
|
const Je = (s) => {
|
|
47
47
|
if (!s)
|
|
@@ -79,20 +79,20 @@ const Je = (s) => {
|
|
|
79
79
|
{ immediate: !0 }
|
|
80
80
|
);
|
|
81
81
|
});
|
|
82
|
-
}),
|
|
82
|
+
}), ft(() => {
|
|
83
83
|
l == null || l.disconnect(), a == null || a.disconnect();
|
|
84
84
|
}), o;
|
|
85
85
|
};
|
|
86
|
-
var Ne = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Ne || {}), ce = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(ce || {}), fe = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(fe || {}), N = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(N || {}),
|
|
87
|
-
const
|
|
86
|
+
var Ne = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Ne || {}), ce = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(ce || {}), fe = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(fe || {}), N = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(N || {}), me = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(me || {}), V = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(V || {});
|
|
87
|
+
const Kn = (s, t) => {
|
|
88
88
|
const n = E(null), e = E(!1), o = E(void 0), l = s.value.reduce((S, i) => (S[i.field] = null, S), {}), a = Ie(l), g = De(a);
|
|
89
89
|
let v = 0, f = "";
|
|
90
90
|
const L = w(
|
|
91
91
|
() => Object.fromEntries(s.value.map(({ field: S, width: i, minWidth: _ }) => [S, { width: i, minWidth: _ }]))
|
|
92
92
|
);
|
|
93
|
-
|
|
93
|
+
pn(() => o.value = L.value);
|
|
94
94
|
let c = null, A = null;
|
|
95
|
-
const
|
|
95
|
+
const h = (S) => {
|
|
96
96
|
const i = S.clientX - v, _ = f, C = o.value[_].width + i;
|
|
97
97
|
o.value[_].width = C > L.value[_].minWidth ? C : L.value[_].minWidth, t(V.COLUMN_RESIZING, o.value), v = S.clientX;
|
|
98
98
|
}, d = () => {
|
|
@@ -100,13 +100,13 @@ const Xn = (s, t) => {
|
|
|
100
100
|
field: f,
|
|
101
101
|
width: o.value[f].width
|
|
102
102
|
}), c = null, A = null, f = "", v = null;
|
|
103
|
-
},
|
|
103
|
+
}, m = (S, i, _) => {
|
|
104
104
|
if (_.preventDefault(), S) {
|
|
105
105
|
if (e.value = !0, _.buttons !== 1) {
|
|
106
106
|
d();
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
f = i, v = _.clientX, c = Ke(window, "mousemove",
|
|
109
|
+
f = i, v = _.clientX, c = Ke(window, "mousemove", h), A = Ke(window, "mouseup", d);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
return te(
|
|
@@ -117,11 +117,11 @@ const Xn = (s, t) => {
|
|
|
117
117
|
), {
|
|
118
118
|
resizeData: o,
|
|
119
119
|
allColumnRefs: g,
|
|
120
|
-
startResize:
|
|
120
|
+
startResize: m,
|
|
121
121
|
isResizing: e,
|
|
122
122
|
columnHoverEventToEmitAfterResizing: n
|
|
123
123
|
};
|
|
124
|
-
},
|
|
124
|
+
}, Jn = 100, et = 50, ee = "b-actions-column", Qn = 32, es = 56, ts = 56, ns = 80, ss = 36, os = 1, wt = 16, ls = 20, as = (s, t, n) => {
|
|
125
125
|
const e = {}, o = [], l = (g) => {
|
|
126
126
|
const v = e[g];
|
|
127
127
|
v && v.frozen !== !0 && (e[g].frozen = !0, o.push(g));
|
|
@@ -135,14 +135,14 @@ const Xn = (s, t) => {
|
|
|
135
135
|
v -= e[c].computedWidth, f -= e[c].flex;
|
|
136
136
|
});
|
|
137
137
|
for (let c = 0, A = n.length; c < A; c += 1) {
|
|
138
|
-
const
|
|
139
|
-
if (e[
|
|
138
|
+
const h = n[c];
|
|
139
|
+
if (e[h.field] && e[h.field].frozen === !0)
|
|
140
140
|
continue;
|
|
141
|
-
let
|
|
142
|
-
|
|
141
|
+
let m = v / f * h.flex;
|
|
142
|
+
m < h.minWidth && (L += h.minWidth - m, m = h.minWidth, g.min[h.field] = !0), e[h.field] = {
|
|
143
143
|
frozen: !1,
|
|
144
|
-
computedWidth:
|
|
145
|
-
flex:
|
|
144
|
+
computedWidth: m,
|
|
145
|
+
flex: h.flex
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
L > 0 ? Object.keys(g.min).forEach((c) => {
|
|
@@ -153,12 +153,12 @@ const Xn = (s, t) => {
|
|
|
153
153
|
}
|
|
154
154
|
return a(), e;
|
|
155
155
|
}, tt = (s, t) => {
|
|
156
|
-
let n =
|
|
157
|
-
return t && (n +=
|
|
158
|
-
},
|
|
156
|
+
let n = os;
|
|
157
|
+
return t && (n += wt * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
158
|
+
}, is = (s) => {
|
|
159
159
|
var t, n, e, o, l;
|
|
160
|
-
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ?
|
|
161
|
-
},
|
|
160
|
+
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? ns : ts : ss : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? es : Qn;
|
|
161
|
+
}, rs = (s, t, n, e, o, l) => {
|
|
162
162
|
const a = E(s.value), g = E(t), v = E(n), f = E(e), L = E(o), c = E(!1), A = E(0);
|
|
163
163
|
te(
|
|
164
164
|
() => s.value,
|
|
@@ -175,9 +175,9 @@ const Xn = (s, t) => {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
|
-
const
|
|
178
|
+
const h = E();
|
|
179
179
|
let d = null;
|
|
180
|
-
const
|
|
180
|
+
const m = w(() => {
|
|
181
181
|
var $, x, D;
|
|
182
182
|
const u = [];
|
|
183
183
|
let R = 0, F = 0;
|
|
@@ -185,7 +185,7 @@ const Xn = (s, t) => {
|
|
|
185
185
|
let Z = a.value.filter((z) => z.visible !== !1);
|
|
186
186
|
const H = a.value.filter((z) => z.visible === !1);
|
|
187
187
|
if (($ = l == null ? void 0 : l.hasSelectableColumn) != null && $.value || (x = l == null ? void 0 : l.hasNestedContent) != null && x.value || (D = l == null ? void 0 : l.hasNestedRows) != null && D.value) {
|
|
188
|
-
const z =
|
|
188
|
+
const z = is(l);
|
|
189
189
|
Z = [
|
|
190
190
|
{
|
|
191
191
|
field: ee,
|
|
@@ -202,13 +202,13 @@ const Xn = (s, t) => {
|
|
|
202
202
|
const M = { ...z };
|
|
203
203
|
let K;
|
|
204
204
|
M.flex && M.flex > 0 ? (R += M.flex, K = 0, u.push(M)) : K = Math.max(
|
|
205
|
-
(M == null ? void 0 : M.width) ??
|
|
205
|
+
(M == null ? void 0 : M.width) ?? Jn,
|
|
206
206
|
(M == null ? void 0 : M.minWidth) ?? et
|
|
207
207
|
), F += K, M.width = K, M.minWidth = (M == null ? void 0 : M.minWidth) ?? et, G[M.field] = M;
|
|
208
208
|
});
|
|
209
|
-
const p = Math.max(
|
|
210
|
-
if (R > 0 &&
|
|
211
|
-
const z =
|
|
209
|
+
const p = Math.max(h.value - F, 0);
|
|
210
|
+
if (R > 0 && h.value > 0) {
|
|
211
|
+
const z = as(p, R, u);
|
|
212
212
|
Object.keys(z).forEach((M) => {
|
|
213
213
|
G[M].width = z[M].computedWidth;
|
|
214
214
|
});
|
|
@@ -240,7 +240,7 @@ const Xn = (s, t) => {
|
|
|
240
240
|
a.value.some((u) => u == null ? void 0 : u.autoWidth) && await _();
|
|
241
241
|
});
|
|
242
242
|
const C = w(
|
|
243
|
-
() =>
|
|
243
|
+
() => m.value.map((u) => {
|
|
244
244
|
var R, F;
|
|
245
245
|
return {
|
|
246
246
|
...u,
|
|
@@ -254,20 +254,20 @@ const Xn = (s, t) => {
|
|
|
254
254
|
return ((u = C.value) == null ? void 0 : u.filter(({ visible: R }) => R !== !1).reduce((R, F) => F.width + R, 0)) + A.value;
|
|
255
255
|
}
|
|
256
256
|
), O = w(
|
|
257
|
-
() =>
|
|
257
|
+
() => h.value <= b.value
|
|
258
258
|
), I = w(() => ({
|
|
259
|
-
width:
|
|
259
|
+
width: h.value > b.value ? "100%" : "fit-content"
|
|
260
260
|
}));
|
|
261
261
|
return Te(() => {
|
|
262
262
|
var R;
|
|
263
|
-
const u = l != null && l.isDataGridTemplate ?
|
|
263
|
+
const u = l != null && l.isDataGridTemplate ? ls : 0;
|
|
264
264
|
ne(() => {
|
|
265
|
-
v.value && (
|
|
265
|
+
v.value && (h.value = v.value.getBoundingClientRect().width - u);
|
|
266
266
|
const F = te(
|
|
267
267
|
v,
|
|
268
268
|
() => {
|
|
269
269
|
v.value && (ne(() => F()), d = Be(v.value, ({ width: G }) => {
|
|
270
|
-
|
|
270
|
+
h.value = G - u;
|
|
271
271
|
}));
|
|
272
272
|
},
|
|
273
273
|
{ immediate: !0 }
|
|
@@ -275,9 +275,9 @@ const Xn = (s, t) => {
|
|
|
275
275
|
}), (R = document == null ? void 0 : document.fonts) != null && R.ready ? document.fonts.ready.then(() => {
|
|
276
276
|
_();
|
|
277
277
|
}) : _();
|
|
278
|
-
}),
|
|
278
|
+
}), ft(() => {
|
|
279
279
|
d == null || d.disconnect();
|
|
280
|
-
}),
|
|
280
|
+
}), wn(() => {
|
|
281
281
|
var u;
|
|
282
282
|
L.value && ((u = Object.keys(L.value)) == null ? void 0 : u.length) > 0 && Object.keys(L.value).forEach((F) => {
|
|
283
283
|
L.value[F] = [];
|
|
@@ -292,14 +292,14 @@ const Xn = (s, t) => {
|
|
|
292
292
|
totalWidthOfAllColumns: b,
|
|
293
293
|
rowActionsMaxWidth: A
|
|
294
294
|
};
|
|
295
|
-
},
|
|
295
|
+
}, ds = (s, t, n, e, o) => {
|
|
296
296
|
const l = E(s.value ?? []), a = Ie({
|
|
297
297
|
allItemsSelected: !1,
|
|
298
298
|
isIndeterminate: !1
|
|
299
299
|
}), g = w(
|
|
300
300
|
() => n.value.flatMap((d) => {
|
|
301
|
-
var
|
|
302
|
-
return [d, ((
|
|
301
|
+
var m;
|
|
302
|
+
return [d, ((m = d == null ? void 0 : d.children) == null ? void 0 : m.length) > 0 ? d == null ? void 0 : d.children : []];
|
|
303
303
|
}).flat()
|
|
304
304
|
), v = () => {
|
|
305
305
|
t(N.SELECT, l.value), t(N.UPDATE_SELECTION, l.value);
|
|
@@ -318,9 +318,9 @@ const Xn = (s, t) => {
|
|
|
318
318
|
);
|
|
319
319
|
}, L = (d) => {
|
|
320
320
|
ne(() => {
|
|
321
|
-
var
|
|
321
|
+
var m, S, i;
|
|
322
322
|
if (a.allItemsSelected = d, d) {
|
|
323
|
-
l.value = (S = (
|
|
323
|
+
l.value = (S = (m = g.value) == null ? void 0 : m.filter(
|
|
324
324
|
(C) => !o(C) && ((C == null ? void 0 : C.children) === void 0 || C.children.every((b) => !o(b)))
|
|
325
325
|
)) == null ? void 0 : S.map((C) => e(C));
|
|
326
326
|
const _ = ((i = n.value) == null ? void 0 : i.length) > 0 && n.value.every((C) => l.value.includes(e(C)));
|
|
@@ -329,14 +329,14 @@ const Xn = (s, t) => {
|
|
|
329
329
|
l.value = [], a.isIndeterminate = !1;
|
|
330
330
|
v();
|
|
331
331
|
});
|
|
332
|
-
}, c = (d,
|
|
332
|
+
}, c = (d, m) => {
|
|
333
333
|
ne(() => {
|
|
334
334
|
var S;
|
|
335
|
-
f(((S =
|
|
335
|
+
f(((S = m == null ? void 0 : m.children) == null ? void 0 : S.length) > 0 ? A(d, m) : d), v();
|
|
336
336
|
});
|
|
337
|
-
}, A = (d,
|
|
337
|
+
}, A = (d, m) => {
|
|
338
338
|
var _;
|
|
339
|
-
const S = e(
|
|
339
|
+
const S = e(m), i = (_ = m.children) == null ? void 0 : _.filter((C) => !o(C)).map((C) => e(C));
|
|
340
340
|
if (d.includes(S)) {
|
|
341
341
|
const C = d;
|
|
342
342
|
return i.forEach((b) => {
|
|
@@ -344,14 +344,14 @@ const Xn = (s, t) => {
|
|
|
344
344
|
}), C;
|
|
345
345
|
}
|
|
346
346
|
return d.filter((C) => !i.includes(C));
|
|
347
|
-
},
|
|
347
|
+
}, h = (d, m, S) => {
|
|
348
348
|
ne(() => {
|
|
349
349
|
var _, C;
|
|
350
|
-
const i = e(
|
|
350
|
+
const i = e(m);
|
|
351
351
|
d.includes(e(S)) ? f(
|
|
352
|
-
!d.includes(i) && ((_ =
|
|
352
|
+
!d.includes(i) && ((_ = m == null ? void 0 : m.children) != null && _.every((b) => d.includes(e(b)))) ? [...d, i] : d
|
|
353
353
|
) : f(
|
|
354
|
-
d.includes(i) && !((C =
|
|
354
|
+
d.includes(i) && !((C = m == null ? void 0 : m.children) != null && C.every((b) => d.includes(e(b)))) ? d.filter((b) => b !== i) : d
|
|
355
355
|
), v();
|
|
356
356
|
});
|
|
357
357
|
};
|
|
@@ -364,16 +364,16 @@ const Xn = (s, t) => {
|
|
|
364
364
|
), te(
|
|
365
365
|
() => n.value,
|
|
366
366
|
() => {
|
|
367
|
-
const d = n.value.filter((
|
|
368
|
-
(
|
|
367
|
+
const d = n.value.filter((m) => l.value.includes(e(m))).flatMap(
|
|
368
|
+
(m) => {
|
|
369
369
|
var S;
|
|
370
|
-
return ((S =
|
|
370
|
+
return ((S = m == null ? void 0 : m.children) == null ? void 0 : S.length) > 0 ? m.children.map((i) => e(i)).filter((i) => !l.value.includes(i)) : [];
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
373
|
(d == null ? void 0 : d.length) > 0 ? (f([...l.value, ...d]), v()) : f(l.value);
|
|
374
374
|
}
|
|
375
|
-
), { onAllRowSelect: L, onRowSelect: c, onNestedRowSelect:
|
|
376
|
-
},
|
|
375
|
+
), { onAllRowSelect: L, onRowSelect: c, onNestedRowSelect: h, allItemsSelectedState: a, selectedItems: l };
|
|
376
|
+
}, cs = (s, t, n) => ({ isSorting: (a) => s.value.some((g) => g.field === a), getSortingDirection: (a) => {
|
|
377
377
|
var g;
|
|
378
378
|
return (g = s.value.find((v) => v.field === a)) == null ? void 0 : g.direction;
|
|
379
379
|
}, sortByColumnField: (a) => {
|
|
@@ -388,9 +388,9 @@ const Xn = (s, t) => {
|
|
|
388
388
|
} });
|
|
389
389
|
var J = ((s) => (s[s.ARROW_DOWN = re.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = re.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = re.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = re.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = re.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = re.PAGE_DOWN] = "PAGE_DOWN", s[s.END = re.END] = "END", s[s.HOME = re.HOME] = "HOME", s))(J || {});
|
|
390
390
|
const Ce = "b-row-actions-column", ze = (s) => {
|
|
391
|
-
const n =
|
|
391
|
+
const n = Dn(s).filter((e) => e.node !== s);
|
|
392
392
|
return (n == null ? void 0 : n.length) > 0 ? (n[0].node.focus(), !0) : !1;
|
|
393
|
-
},
|
|
393
|
+
}, us = (s, t, n, e, o, l) => {
|
|
394
394
|
const a = w(() => l.value || e.value ? !0 : n.value.some((_) => _.infoIconTooltip || _.sortable)), g = w(() => {
|
|
395
395
|
let _ = n.value.filter(({ visible: C }) => C !== !1);
|
|
396
396
|
return o.value && (_ = [
|
|
@@ -432,15 +432,15 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
432
432
|
[J.ARROW_RIGHT]: 1
|
|
433
433
|
}[C], u = _ + I;
|
|
434
434
|
return u < 0 || u >= f.value.length ? _ : u;
|
|
435
|
-
},
|
|
435
|
+
}, h = (_) => [
|
|
436
436
|
J.PAGE_UP,
|
|
437
437
|
J.PAGE_DOWN,
|
|
438
438
|
J.END,
|
|
439
439
|
J.HOME
|
|
440
440
|
].includes(_), d = (_, C, b) => {
|
|
441
441
|
const O = f.value.indexOf(_);
|
|
442
|
-
return
|
|
443
|
-
},
|
|
442
|
+
return h(C) ? c(O, C, b) : A(O, C);
|
|
443
|
+
}, m = (_, C, b) => {
|
|
444
444
|
if (!f.value.includes(_))
|
|
445
445
|
return;
|
|
446
446
|
const O = d(_, C, b);
|
|
@@ -448,47 +448,47 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
448
448
|
}, S = (_) => _ in J;
|
|
449
449
|
return {
|
|
450
450
|
isNavigationKeyCode: S,
|
|
451
|
-
focusOnNextGridcell:
|
|
451
|
+
focusOnNextGridcell: m,
|
|
452
452
|
navigationInput: (_) => {
|
|
453
453
|
const { ctrlKey: C, key: b, target: O } = _, I = b;
|
|
454
454
|
let u = O;
|
|
455
|
-
u.getAttribute("role") !== "menuitem" && (f.value.includes(u) || (u = O.closest('[role="gridcell"], [role="columnheader"]')), f.value.includes(u) && S(I) &&
|
|
455
|
+
u.getAttribute("role") !== "menuitem" && (f.value.includes(u) || (u = O.closest('[role="gridcell"], [role="columnheader"]')), f.value.includes(u) && S(I) && m(u, I, C));
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
},
|
|
458
|
+
}, fs = 90, gs = (s, t, n, e, o) => {
|
|
459
459
|
const l = E(s), a = E(t), g = E(n), v = E(e), f = w(() => l.value !== "none"), L = w(() => l.value === "automatic"), c = () => {
|
|
460
460
|
o(N.UPDATE_SHOW_MORE);
|
|
461
461
|
};
|
|
462
462
|
return te(
|
|
463
463
|
() => a.value,
|
|
464
464
|
() => {
|
|
465
|
-
L.value && g.value.offsetHeight / a.value * 100 >
|
|
465
|
+
L.value && g.value.offsetHeight / a.value * 100 > fs && !v.value && c();
|
|
466
466
|
}
|
|
467
467
|
), { isLazyLoad: f, isInfiniteScroll: L, verticalScrollPosition: a, emitLazyLoadEvent: c };
|
|
468
|
-
},
|
|
468
|
+
}, _s = (s, t, n) => {
|
|
469
469
|
const e = E(s), o = E(t), l = Ie({
|
|
470
470
|
dragging: null,
|
|
471
471
|
dragToLeft: null,
|
|
472
472
|
target: null
|
|
473
|
-
}), a = (
|
|
474
|
-
const
|
|
473
|
+
}), a = (h, d = 0) => {
|
|
474
|
+
const m = e.value.findIndex((_) => _.field === h.field), S = m + d;
|
|
475
475
|
if (S < 0 || S > e.value.length - 1)
|
|
476
476
|
return;
|
|
477
477
|
const i = [...e.value];
|
|
478
|
-
i.splice(S, 0, i.splice(
|
|
479
|
-
}, g = (
|
|
480
|
-
l.dragging =
|
|
481
|
-
}, v = (
|
|
482
|
-
l.target =
|
|
483
|
-
const
|
|
478
|
+
i.splice(S, 0, i.splice(m, 1)[0]), n(N.COLUMNS, i), n(N.UPDATE_COLUMNS, i);
|
|
479
|
+
}, g = (h, d) => {
|
|
480
|
+
l.dragging = h, d.dataTransfer.setData("text", ""), d.dataTransfer.dropEffect = "move";
|
|
481
|
+
}, v = (h, d) => {
|
|
482
|
+
l.target = h;
|
|
483
|
+
const m = d.currentTarget.getBoundingClientRect(), S = m.left + m.width / 2, i = d.clientX ?? 0;
|
|
484
484
|
l.dragToLeft = i <= S;
|
|
485
|
-
}, f = (
|
|
486
|
-
var d,
|
|
487
|
-
if (((d = l.dragging) == null ? void 0 : d.field) !==
|
|
485
|
+
}, f = (h) => {
|
|
486
|
+
var d, m;
|
|
487
|
+
if (((d = l.dragging) == null ? void 0 : d.field) !== h.field) {
|
|
488
488
|
const S = e.value.findIndex((I) => {
|
|
489
489
|
var u;
|
|
490
490
|
return I.field === ((u = l.dragging) == null ? void 0 : u.field);
|
|
491
|
-
}), i = e.value.findIndex((I) => I.field ===
|
|
491
|
+
}), i = e.value.findIndex((I) => I.field === h.field), _ = l.dragToLeft ? i : i + 1, C = _ > S ? _ - 1 : _;
|
|
492
492
|
let b = [...e.value];
|
|
493
493
|
b.splice(
|
|
494
494
|
C === -1 ? 0 : C,
|
|
@@ -496,10 +496,10 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
496
496
|
b.splice(S, 1)[0]
|
|
497
497
|
);
|
|
498
498
|
const O = e.value.findIndex((I) => !(I != null && I.frozen));
|
|
499
|
-
((
|
|
499
|
+
((m = l.dragging) == null ? void 0 : m.frozen) !== h.frozen && _ !== O && (b = b.map(
|
|
500
500
|
(I) => {
|
|
501
501
|
var u;
|
|
502
|
-
return ((u = l.dragging) == null ? void 0 : u.field) === I.field ? { ...I, frozen: !!(
|
|
502
|
+
return ((u = l.dragging) == null ? void 0 : u.field) === I.field ? { ...I, frozen: !!(h != null && h.frozen) } : I;
|
|
503
503
|
}
|
|
504
504
|
)), n(N.COLUMNS, b), n(N.UPDATE_COLUMNS, b);
|
|
505
505
|
}
|
|
@@ -507,16 +507,16 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
507
507
|
}, L = () => {
|
|
508
508
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
509
509
|
}, c = w(() => o.value ? {
|
|
510
|
-
[V.COLUMN_DRAG_START]: (
|
|
511
|
-
[V.COLUMN_DRAG_ENTER]: (
|
|
512
|
-
[V.COLUMN_DROP]: (
|
|
510
|
+
[V.COLUMN_DRAG_START]: (h, d) => g(h, d),
|
|
511
|
+
[V.COLUMN_DRAG_ENTER]: (h, d) => v(h, d),
|
|
512
|
+
[V.COLUMN_DROP]: (h) => f(h),
|
|
513
513
|
[V.COLUMN_DRAG_END]: () => L()
|
|
514
|
-
} : {}), A = w(() => (
|
|
514
|
+
} : {}), A = w(() => (h) => o.value ? {
|
|
515
515
|
dragenter: (d) => {
|
|
516
|
-
d.preventDefault(), v(
|
|
516
|
+
d.preventDefault(), v(h, d);
|
|
517
517
|
},
|
|
518
518
|
drop: () => {
|
|
519
|
-
f(
|
|
519
|
+
f(h);
|
|
520
520
|
},
|
|
521
521
|
dragover: (d) => {
|
|
522
522
|
d.preventDefault();
|
|
@@ -530,7 +530,7 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
530
530
|
draggingEventsForRowCell: A,
|
|
531
531
|
onMoveColumnByOffset: a
|
|
532
532
|
};
|
|
533
|
-
},
|
|
533
|
+
}, vs = (s, t) => {
|
|
534
534
|
const n = E(s), e = w(
|
|
535
535
|
() => [...n.value].sort((c, A) => c.frozen === A.frozen ? 0 : c.frozen ? -1 : 1)
|
|
536
536
|
), o = w(
|
|
@@ -557,49 +557,49 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
557
557
|
onConfigSettingsColumnsUpdate: f,
|
|
558
558
|
onConfigSettingsColumnUpdate: (c) => {
|
|
559
559
|
const A = e.value.map(
|
|
560
|
-
(
|
|
560
|
+
(h) => (h == null ? void 0 : h.field) === c.field ? c : h
|
|
561
561
|
);
|
|
562
562
|
f(A);
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
|
-
},
|
|
565
|
+
}, Cs = (s, t, n, e, o, l, a) => {
|
|
566
566
|
const g = E(0), v = E(!1), f = E(!1);
|
|
567
567
|
te([() => g.value, () => l.value], ([d]) => {
|
|
568
568
|
s.value.scrollLeft = d, t.value.scrollLeft = d, v.value = !!d, f.value = t.value.scrollWidth - t.value.offsetWidth > d;
|
|
569
569
|
}), Te(async () => {
|
|
570
|
-
var d,
|
|
571
|
-
await ne(), ((d = t.value) == null ? void 0 : d.offsetWidth) < ((
|
|
570
|
+
var d, m;
|
|
571
|
+
await ne(), ((d = t.value) == null ? void 0 : d.offsetWidth) < ((m = t.value) == null ? void 0 : m.scrollWidth) && (f.value = !0);
|
|
572
572
|
});
|
|
573
573
|
const L = (d) => {
|
|
574
574
|
if (g.value = d.target.scrollLeft, n.value = s.value.scrollHeight - d.target.scrollTop, e != null && e.value) {
|
|
575
|
-
const
|
|
576
|
-
e.value.scrollLeft !==
|
|
575
|
+
const m = d.target.scrollLeft;
|
|
576
|
+
e.value.scrollLeft !== m && (e.value.scrollLeft = m);
|
|
577
577
|
}
|
|
578
578
|
}, c = (d) => {
|
|
579
579
|
d.key !== "Tab" && d.key !== "ArrowRight" && d.key !== "ArrowLeft" || (d.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
580
580
|
s.value && (s.value.style.overflowX = "auto");
|
|
581
581
|
}));
|
|
582
582
|
}, A = (d) => {
|
|
583
|
-
const
|
|
584
|
-
s.value.scrollLeft !==
|
|
585
|
-
},
|
|
586
|
-
var d,
|
|
587
|
-
return (d = a == null ? void 0 : a.pagination) != null && d.value && ((
|
|
583
|
+
const m = d.target.scrollLeft;
|
|
584
|
+
s.value.scrollLeft !== m && (s.value.scrollLeft = m);
|
|
585
|
+
}, h = w(() => {
|
|
586
|
+
var d, m, S, i;
|
|
587
|
+
return (d = a == null ? void 0 : a.pagination) != null && d.value && ((m = a == null ? void 0 : a.stickyPagination) != null && m.value || a != null && a.isDataGridTemplate) && !((S = a == null ? void 0 : a.isLazyLoad) != null && S.value) ? { bottom: `${(((i = o.value) == null ? void 0 : i.clientHeight) ?? 0) + 1}px` } : {};
|
|
588
588
|
});
|
|
589
589
|
return {
|
|
590
590
|
// Values
|
|
591
591
|
scrollLeftPosition: g,
|
|
592
592
|
hasLeftOverflow: v,
|
|
593
593
|
hasRightOverflow: f,
|
|
594
|
-
horizontalScrollbarConditionalStyles:
|
|
594
|
+
horizontalScrollbarConditionalStyles: h,
|
|
595
595
|
// Methods
|
|
596
596
|
updateScrollPosition: L,
|
|
597
597
|
updateScrollPositionOnFrozenColumnsNavigation: c,
|
|
598
598
|
syncVirtualScrollerWithBody: A
|
|
599
599
|
};
|
|
600
|
-
},
|
|
600
|
+
}, ms = (s, t, n, e) => {
|
|
601
601
|
const o = E(null), l = w(() => {
|
|
602
|
-
var
|
|
602
|
+
var m, S, i, _;
|
|
603
603
|
if (!o.value || o.value.field === ee)
|
|
604
604
|
return {
|
|
605
605
|
hoveredOverColumnField: "",
|
|
@@ -607,12 +607,12 @@ const Ce = "b-row-actions-column", ze = (s) => {
|
|
|
607
607
|
noBorderLeft: !1,
|
|
608
608
|
noBorderRight: !1
|
|
609
609
|
};
|
|
610
|
-
const a = (S = (
|
|
610
|
+
const a = (S = (m = s.value.find((C) => C.isFrozenColumns)) == null ? void 0 : m.columnSet) == null ? void 0 : S.filter((C) => C.field !== ee), g = s.value.find((C) => !(C != null && C.isFrozenColumns)), v = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, f = !o.value.frozen && ((i = g == null ? void 0 : g.columnSet) == null ? void 0 : i[0].field) === o.value.field, L = (t.value || n.value) && v, c = (t.value || n.value) && !a && f, A = a && f, h = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, d = n.value && e.value && !o.value.frozen && ((_ = g == null ? void 0 : g.columnSet) == null ? void 0 : _[g.columnSet.length - 1].field) === o.value.field;
|
|
611
611
|
return {
|
|
612
612
|
hoveredOverColumnField: o.value.field,
|
|
613
613
|
isSeparatorOffset: d,
|
|
614
614
|
noBorderLeft: !!L || !!c || !!A,
|
|
615
|
-
noBorderRight: !!
|
|
615
|
+
noBorderRight: !!h || !!d
|
|
616
616
|
};
|
|
617
617
|
});
|
|
618
618
|
return {
|
|
@@ -626,108 +626,108 @@ const hs = {
|
|
|
626
626
|
this.uuid = nt.toString(), nt += 1;
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
|
-
var
|
|
629
|
+
var ps = function() {
|
|
630
630
|
var t = this, n = t._self._c;
|
|
631
631
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
632
|
-
},
|
|
632
|
+
}, ws = [], Ss = /* @__PURE__ */ q(
|
|
633
633
|
hs,
|
|
634
|
-
ms,
|
|
635
634
|
ps,
|
|
635
|
+
ws,
|
|
636
636
|
!1,
|
|
637
637
|
null,
|
|
638
638
|
null
|
|
639
639
|
);
|
|
640
|
-
const
|
|
640
|
+
const Es = Ss.exports;
|
|
641
641
|
let st = 0;
|
|
642
|
-
const
|
|
642
|
+
const Ls = {
|
|
643
643
|
beforeCreate() {
|
|
644
644
|
this.uuid = st.toString(), st += 1;
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
var
|
|
647
|
+
var ys = function() {
|
|
648
648
|
var t = this, n = t._self._c;
|
|
649
649
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", 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" } })]);
|
|
650
|
-
},
|
|
651
|
-
Es,
|
|
650
|
+
}, Rs = [], bs = /* @__PURE__ */ q(
|
|
652
651
|
Ls,
|
|
653
652
|
ys,
|
|
653
|
+
Rs,
|
|
654
654
|
!1,
|
|
655
655
|
null,
|
|
656
656
|
null
|
|
657
657
|
);
|
|
658
|
-
const
|
|
658
|
+
const As = bs.exports;
|
|
659
659
|
let ot = 0;
|
|
660
|
-
const
|
|
660
|
+
const Os = {
|
|
661
661
|
beforeCreate() {
|
|
662
662
|
this.uuid = ot.toString(), ot += 1;
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
|
-
var
|
|
665
|
+
var Ns = function() {
|
|
666
666
|
var t = this, n = t._self._c;
|
|
667
667
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", 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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
668
|
-
},
|
|
669
|
-
As,
|
|
668
|
+
}, Ts = [], Is = /* @__PURE__ */ q(
|
|
670
669
|
Os,
|
|
671
670
|
Ns,
|
|
671
|
+
Ts,
|
|
672
672
|
!1,
|
|
673
673
|
null,
|
|
674
674
|
null
|
|
675
675
|
);
|
|
676
|
-
const
|
|
676
|
+
const St = Is.exports;
|
|
677
677
|
let lt = 0;
|
|
678
|
-
const
|
|
678
|
+
const Ds = {
|
|
679
679
|
beforeCreate() {
|
|
680
680
|
this.uuid = lt.toString(), lt += 1;
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
|
-
var
|
|
683
|
+
var xs = function() {
|
|
684
684
|
var t = this, n = t._self._c;
|
|
685
685
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
686
|
-
},
|
|
687
|
-
Is,
|
|
686
|
+
}, Fs = [], Ms = /* @__PURE__ */ q(
|
|
688
687
|
Ds,
|
|
689
688
|
xs,
|
|
689
|
+
Fs,
|
|
690
690
|
!1,
|
|
691
691
|
null,
|
|
692
692
|
null
|
|
693
693
|
);
|
|
694
|
-
const
|
|
694
|
+
const Bs = Ms.exports;
|
|
695
695
|
let at = 0;
|
|
696
|
-
const
|
|
696
|
+
const $s = {
|
|
697
697
|
beforeCreate() {
|
|
698
698
|
this.uuid = at.toString(), at += 1;
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
|
-
var
|
|
701
|
+
var zs = function() {
|
|
702
702
|
var t = this, n = t._self._c;
|
|
703
703
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
704
|
-
},
|
|
705
|
-
Bs,
|
|
704
|
+
}, Ps = [], Us = /* @__PURE__ */ q(
|
|
706
705
|
$s,
|
|
707
706
|
zs,
|
|
707
|
+
Ps,
|
|
708
708
|
!1,
|
|
709
709
|
null,
|
|
710
710
|
null
|
|
711
711
|
);
|
|
712
|
-
const
|
|
712
|
+
const ks = Us.exports;
|
|
713
713
|
let it = 0;
|
|
714
|
-
const
|
|
714
|
+
const Ws = {
|
|
715
715
|
beforeCreate() {
|
|
716
716
|
this.uuid = it.toString(), it += 1;
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
var
|
|
719
|
+
var Gs = function() {
|
|
720
720
|
var t = this, n = t._self._c;
|
|
721
721
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
722
|
-
},
|
|
723
|
-
ks,
|
|
722
|
+
}, Hs = [], Vs = /* @__PURE__ */ q(
|
|
724
723
|
Ws,
|
|
725
724
|
Gs,
|
|
725
|
+
Hs,
|
|
726
726
|
!1,
|
|
727
727
|
null,
|
|
728
728
|
null
|
|
729
729
|
);
|
|
730
|
-
const
|
|
730
|
+
const Zs = Vs.exports, js = {
|
|
731
731
|
"en-US": {
|
|
732
732
|
columnActions: "{name} column actions",
|
|
733
733
|
freezeColumn: "Freeze column",
|
|
@@ -760,11 +760,11 @@ const Vs = Hs.exports, Zs = {
|
|
|
760
760
|
selectAll: "Selecionar tudo",
|
|
761
761
|
unfreezeColumn: "Descongelar coluna"
|
|
762
762
|
}
|
|
763
|
-
},
|
|
764
|
-
i18n: { messages:
|
|
763
|
+
}, qs = {
|
|
764
|
+
i18n: { messages: js },
|
|
765
765
|
name: "data-grid-columns"
|
|
766
|
-
},
|
|
767
|
-
...
|
|
766
|
+
}, Ys = /* @__PURE__ */ ae({
|
|
767
|
+
...qs,
|
|
768
768
|
props: {
|
|
769
769
|
/**
|
|
770
770
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -897,7 +897,7 @@ const Vs = Hs.exports, Zs = {
|
|
|
897
897
|
},
|
|
898
898
|
emits: ["sort", "column-hover"],
|
|
899
899
|
setup(s, { expose: t, emit: n }) {
|
|
900
|
-
const e = s, o = 100, { t: l } = ge(), { columns: a, sortBy: g } = De(e), v = E({}), f = E({}), L = E(), c = E(), A = (r) => n(V.SELECT_ALL_ROWS, r),
|
|
900
|
+
const e = s, o = 100, { t: l } = ge(), { columns: a, sortBy: g } = De(e), v = E({}), f = E({}), L = E(), c = E(), A = (r) => n(V.SELECT_ALL_ROWS, r), h = (r) => r.field === ee, d = w(() => [
|
|
901
901
|
{
|
|
902
902
|
text: l("selectPage"),
|
|
903
903
|
handler: () => A(!0)
|
|
@@ -906,15 +906,15 @@ const Vs = Hs.exports, Zs = {
|
|
|
906
906
|
text: l("selectAll"),
|
|
907
907
|
handler: () => n(V.SELECT_ALL_ACROSS_PAGES)
|
|
908
908
|
}
|
|
909
|
-
]), { startResize:
|
|
909
|
+
]), { startResize: m, isResizing: S, columnHoverEventToEmitAfterResizing: i } = Kn(a, n), { isSorting: _, getSortingDirection: C, sortByColumnField: b } = cs(g, a, n), O = (r) => {
|
|
910
910
|
var se;
|
|
911
911
|
if (!r.sortable)
|
|
912
912
|
return null;
|
|
913
913
|
const P = (se = e.sortBy.find(({ field: ie }) => ie === r.field)) == null ? void 0 : se.direction;
|
|
914
914
|
return P ? {
|
|
915
|
-
[fe.ASCENDING]:
|
|
916
|
-
[fe.DESCENDING]:
|
|
917
|
-
}[P] :
|
|
915
|
+
[fe.ASCENDING]: me.ASCENDING,
|
|
916
|
+
[fe.DESCENDING]: me.DESCENDING
|
|
917
|
+
}[P] : me.NONE;
|
|
918
918
|
}, I = w(() => (r) => e.hasDraggableColumns ? {
|
|
919
919
|
dragstart: (P) => {
|
|
920
920
|
n(V.COLUMN_DRAG_START, r, P);
|
|
@@ -935,19 +935,19 @@ const Vs = Hs.exports, Zs = {
|
|
|
935
935
|
{
|
|
936
936
|
text: l("moveColumnLeft"),
|
|
937
937
|
handler: () => n(V.COLUMN_MOVE, r, -1),
|
|
938
|
-
icon:
|
|
938
|
+
icon: Hn,
|
|
939
939
|
disabled: e.columns[0].field === r.field
|
|
940
940
|
},
|
|
941
941
|
{
|
|
942
942
|
text: l("moveColumnRight"),
|
|
943
943
|
handler: () => n(V.COLUMN_MOVE, r, 1),
|
|
944
|
-
icon:
|
|
944
|
+
icon: As,
|
|
945
945
|
disabled: e.columns[e.columns.length - 1].field === r.field
|
|
946
946
|
},
|
|
947
947
|
{
|
|
948
948
|
text: r != null && r.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
949
949
|
handler: () => n(V.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
|
|
950
|
-
icon:
|
|
950
|
+
icon: St
|
|
951
951
|
},
|
|
952
952
|
{
|
|
953
953
|
text: (r == null ? void 0 : r.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
@@ -957,7 +957,7 @@ const Vs = Hs.exports, Zs = {
|
|
|
957
957
|
visible: (r == null ? void 0 : r.visible) === !1
|
|
958
958
|
});
|
|
959
959
|
},
|
|
960
|
-
icon: (r == null ? void 0 : r.visible) !== !1 ?
|
|
960
|
+
icon: (r == null ? void 0 : r.visible) !== !1 ? Vn : Zn,
|
|
961
961
|
disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
962
962
|
}
|
|
963
963
|
]), R = (r) => {
|
|
@@ -976,10 +976,10 @@ const Vs = Hs.exports, Zs = {
|
|
|
976
976
|
F(), S.value ? i.value = null : n("column-hover", null);
|
|
977
977
|
},
|
|
978
978
|
focus: () => {
|
|
979
|
-
R(r),
|
|
979
|
+
R(r), h(r) && ze(v.value[r.field]);
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
|
-
return
|
|
982
|
+
return h(r) || (P = {
|
|
983
983
|
...P,
|
|
984
984
|
...I.value(r)
|
|
985
985
|
}), P;
|
|
@@ -1029,10 +1029,10 @@ const Vs = Hs.exports, Zs = {
|
|
|
1029
1029
|
}));
|
|
1030
1030
|
return t({
|
|
1031
1031
|
columnHeaderRefs: v
|
|
1032
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: g, columnHeaderRefs: v, contextMenuRef: f, hoveredColumnField: L, closingTimeOutId: c, onAllRowSelect: A, isActionsColumn:
|
|
1032
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: g, columnHeaderRefs: v, contextMenuRef: f, hoveredColumnField: L, closingTimeOutId: c, onAllRowSelect: A, isActionsColumn: h, selectAllMenu: d, startResize: m, isResizing: S, columnHoverEventToEmitAfterResizing: i, isSorting: _, getSortingDirection: C, sortByColumnField: b, getSortingColumnDirection: O, draggingEventsForColumn: I, contextualMenuData: u, showContextualMenu: R, hideContextualMenu: F, dataGridColumnEvents: G, hasColumnActions: Z, registerColumnsRefs: H, conditionalColumnsClasses: p, computeMenuPosition: $, conditionalColumnClasses: x, conditionalColumnHeaderAndActionsClasses: D, conditionalColumnActionsClasses: z, conditionalColumnSeparatorClasses: M, conditionalColumnHeaderClasses: K, BentoCheckbox: ht, BentoDatagridSortDirection: fe, BentoTypography: he, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: Ce, BentoInfoIcon: Wn, DatagridColumnsEvent: V, BentoMenu: mt, BentoToggleButton: $e, ArrowUpAndDownSortIcon: Es, SortAscendingIcon: Bs, SortDescendingIcon: ks, TriangleDown: Zs };
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
|
-
var
|
|
1035
|
+
var Xs = function() {
|
|
1036
1036
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1037
1037
|
return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(o, l) {
|
|
1038
1038
|
return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
@@ -1053,44 +1053,44 @@ var Ys = function() {
|
|
|
1053
1053
|
a.stopPropagation();
|
|
1054
1054
|
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1055
1055
|
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (o) => e.registerColumnsRefs(o, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: "0" } })] : t._e()], 2);
|
|
1056
|
-
},
|
|
1057
|
-
qs,
|
|
1056
|
+
}, Ks = [], Js = /* @__PURE__ */ q(
|
|
1058
1057
|
Ys,
|
|
1059
1058
|
Xs,
|
|
1059
|
+
Ks,
|
|
1060
1060
|
!1,
|
|
1061
1061
|
null,
|
|
1062
1062
|
"027bd6de"
|
|
1063
1063
|
);
|
|
1064
|
-
const
|
|
1064
|
+
const Qs = Js.exports;
|
|
1065
1065
|
var de = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(de || {});
|
|
1066
1066
|
let rt = 0;
|
|
1067
|
-
const
|
|
1067
|
+
const eo = {
|
|
1068
1068
|
beforeCreate() {
|
|
1069
1069
|
this.uuid = rt.toString(), rt += 1;
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
|
-
var
|
|
1072
|
+
var to = function() {
|
|
1073
1073
|
var t = this, n = t._self._c;
|
|
1074
1074
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1075
|
-
},
|
|
1076
|
-
Qs,
|
|
1075
|
+
}, no = [], so = /* @__PURE__ */ q(
|
|
1077
1076
|
eo,
|
|
1078
1077
|
to,
|
|
1078
|
+
no,
|
|
1079
1079
|
!1,
|
|
1080
1080
|
null,
|
|
1081
1081
|
null
|
|
1082
1082
|
);
|
|
1083
|
-
const
|
|
1083
|
+
const oo = so.exports, lo = {
|
|
1084
1084
|
"en-US": {
|
|
1085
1085
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1086
1086
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1087
1087
|
}
|
|
1088
|
-
},
|
|
1089
|
-
i18n: { messages:
|
|
1088
|
+
}, ao = ae({
|
|
1089
|
+
i18n: { messages: lo },
|
|
1090
1090
|
name: "bento-data-grid",
|
|
1091
1091
|
components: {
|
|
1092
|
-
BentoFreezeIcon:
|
|
1093
|
-
BentoToggle:
|
|
1092
|
+
BentoFreezeIcon: St,
|
|
1093
|
+
BentoToggle: pt
|
|
1094
1094
|
},
|
|
1095
1095
|
props: {
|
|
1096
1096
|
/**
|
|
@@ -1143,20 +1143,20 @@ const so = no.exports, oo = {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
1145
|
});
|
|
1146
|
-
var
|
|
1146
|
+
var io = function() {
|
|
1147
1147
|
var t = this, n = t._self._c;
|
|
1148
1148
|
return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: t.isColumnFrozen || t.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
|
|
1149
1149
|
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1150
1150
|
} } })], 1);
|
|
1151
|
-
},
|
|
1152
|
-
lo,
|
|
1151
|
+
}, ro = [], co = /* @__PURE__ */ q(
|
|
1153
1152
|
ao,
|
|
1154
1153
|
io,
|
|
1154
|
+
ro,
|
|
1155
1155
|
!1,
|
|
1156
1156
|
null,
|
|
1157
1157
|
"eae7733f"
|
|
1158
1158
|
);
|
|
1159
|
-
const
|
|
1159
|
+
const uo = co.exports, fo = {
|
|
1160
1160
|
"en-US": {
|
|
1161
1161
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1162
1162
|
closeSearch: "Close search",
|
|
@@ -1182,22 +1182,22 @@ const co = ro.exports, uo = {
|
|
|
1182
1182
|
search: "Buscar",
|
|
1183
1183
|
size: "Tamanho"
|
|
1184
1184
|
}
|
|
1185
|
-
},
|
|
1186
|
-
i18n: { messages:
|
|
1185
|
+
}, go = ae({
|
|
1186
|
+
i18n: { messages: fo },
|
|
1187
1187
|
name: "bento-data-grid",
|
|
1188
1188
|
components: {
|
|
1189
|
-
BentoButton:
|
|
1190
|
-
BentoCrossIcon:
|
|
1191
|
-
BentoPopover:
|
|
1192
|
-
BentoSettingsIcon:
|
|
1189
|
+
BentoButton: Ct,
|
|
1190
|
+
BentoCrossIcon: _t,
|
|
1191
|
+
BentoPopover: Gn,
|
|
1192
|
+
BentoSettingsIcon: oo,
|
|
1193
1193
|
BentoToggleButton: $e,
|
|
1194
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1195
|
-
BentoSearchBar:
|
|
1196
|
-
BentoSearchIcon:
|
|
1197
|
-
BentoToggle:
|
|
1198
|
-
BentoTypography:
|
|
1194
|
+
BentoDataGridConfigSettingsConfigRow: uo,
|
|
1195
|
+
BentoSearchBar: jn,
|
|
1196
|
+
BentoSearchIcon: Yn,
|
|
1197
|
+
BentoToggle: pt,
|
|
1198
|
+
BentoTypography: he
|
|
1199
1199
|
},
|
|
1200
|
-
directives: { BentoClickOutsideDirective:
|
|
1200
|
+
directives: { BentoClickOutsideDirective: Xn },
|
|
1201
1201
|
props: {
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Column definitions
|
|
@@ -1216,12 +1216,12 @@ const co = ro.exports, uo = {
|
|
|
1216
1216
|
},
|
|
1217
1217
|
emits: [de.CONFIG_SETTINGS, de.UPDATE_COLUMNS],
|
|
1218
1218
|
setup(s, { emit: t }) {
|
|
1219
|
-
const { t: n } = ge(), e = E(null), o = Oe("data-grid-config-settings-popover"), l = E(null), a = E(!1), g = E(!0), v = E(null), f = E(""), L = be(s, "columns"), c = E(!1), A =
|
|
1219
|
+
const { t: n } = ge(), e = E(null), o = Oe("data-grid-config-settings-popover"), l = E(null), a = E(!1), g = E(!0), v = E(null), f = E(""), L = be(s, "columns"), c = E(!1), A = qn(f, L), h = () => {
|
|
1220
1220
|
f.value = "";
|
|
1221
1221
|
}, d = w(
|
|
1222
1222
|
() => !s.columns.some((u) => u.visible === !1 && !u.mandatory)
|
|
1223
|
-
),
|
|
1224
|
-
|
|
1223
|
+
), m = () => {
|
|
1224
|
+
h(), c.value = !c.value, c.value ? ne(() => {
|
|
1225
1225
|
var u;
|
|
1226
1226
|
return (u = l.value.$refs.bentoInputField) == null ? void 0 : u.focusInput();
|
|
1227
1227
|
}) : ne(() => {
|
|
@@ -1267,8 +1267,8 @@ const co = ro.exports, uo = {
|
|
|
1267
1267
|
setConfigSettingsPanelVisibility: b,
|
|
1268
1268
|
emitCondensedToggle: (u) => t(de.CONFIG_SETTINGS, u),
|
|
1269
1269
|
toggleAllColumnVisibility: _,
|
|
1270
|
-
clearAction:
|
|
1271
|
-
toggleColumnFilter:
|
|
1270
|
+
clearAction: h,
|
|
1271
|
+
toggleColumnFilter: m,
|
|
1272
1272
|
emitVisibleColumns: i,
|
|
1273
1273
|
emitFrozenColumns: C,
|
|
1274
1274
|
onClickOutside: () => b(!1),
|
|
@@ -1278,7 +1278,7 @@ const co = ro.exports, uo = {
|
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
1280
|
});
|
|
1281
|
-
var
|
|
1281
|
+
var _o = function() {
|
|
1282
1282
|
var t = this, n = t._self._c;
|
|
1283
1283
|
return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
|
|
1284
1284
|
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
@@ -1297,15 +1297,15 @@ var go = function() {
|
|
|
1297
1297
|
}, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
|
|
1298
1298
|
return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
|
|
1299
1299
|
}), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
|
|
1300
|
-
},
|
|
1301
|
-
fo,
|
|
1300
|
+
}, vo = [], Co = /* @__PURE__ */ q(
|
|
1302
1301
|
go,
|
|
1303
1302
|
_o,
|
|
1303
|
+
vo,
|
|
1304
1304
|
!1,
|
|
1305
1305
|
null,
|
|
1306
1306
|
"e7f0a261"
|
|
1307
1307
|
);
|
|
1308
|
-
const
|
|
1308
|
+
const mo = Co.exports, Et = {
|
|
1309
1309
|
"en-US": {
|
|
1310
1310
|
gettingYourData: "Getting your data",
|
|
1311
1311
|
loading: "Loading",
|
|
@@ -1324,8 +1324,8 @@ const Co = vo.exports, St = {
|
|
|
1324
1324
|
showMore: "Mostrar mais"
|
|
1325
1325
|
}
|
|
1326
1326
|
}, ho = {
|
|
1327
|
-
i18n: { messages:
|
|
1328
|
-
},
|
|
1327
|
+
i18n: { messages: Et }
|
|
1328
|
+
}, po = /* @__PURE__ */ ae({
|
|
1329
1329
|
...ho,
|
|
1330
1330
|
__name: "data-grid-lazy-load",
|
|
1331
1331
|
props: {
|
|
@@ -1334,41 +1334,41 @@ const Co = vo.exports, St = {
|
|
|
1334
1334
|
},
|
|
1335
1335
|
setup(s) {
|
|
1336
1336
|
const { t } = ge();
|
|
1337
|
-
return { __sfc: !0, t, BentoLoadingButton:
|
|
1337
|
+
return { __sfc: !0, t, BentoLoadingButton: kn, BentoLoadingButtonState: Un, BentoLoadingIndicator: Fe, BentoDatagridEvent: N };
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
1340
|
-
var
|
|
1340
|
+
var wo = function() {
|
|
1341
1341
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1342
1342
|
return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
|
|
1343
1343
|
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1344
1344
|
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1345
|
-
},
|
|
1346
|
-
mo,
|
|
1345
|
+
}, So = [], Eo = /* @__PURE__ */ q(
|
|
1347
1346
|
po,
|
|
1348
1347
|
wo,
|
|
1348
|
+
So,
|
|
1349
1349
|
!1,
|
|
1350
1350
|
null,
|
|
1351
1351
|
"fd9b8204"
|
|
1352
1352
|
);
|
|
1353
|
-
const
|
|
1353
|
+
const Lo = Eo.exports;
|
|
1354
1354
|
let dt = 0;
|
|
1355
|
-
const
|
|
1355
|
+
const yo = {
|
|
1356
1356
|
beforeCreate() {
|
|
1357
1357
|
this.uuid = dt.toString(), dt += 1;
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
|
-
var
|
|
1360
|
+
var Ro = function() {
|
|
1361
1361
|
var t = this, n = t._self._c;
|
|
1362
1362
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", 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" } })]);
|
|
1363
|
-
},
|
|
1364
|
-
Lo,
|
|
1363
|
+
}, bo = [], Ao = /* @__PURE__ */ q(
|
|
1365
1364
|
yo,
|
|
1366
1365
|
Ro,
|
|
1366
|
+
bo,
|
|
1367
1367
|
!1,
|
|
1368
1368
|
null,
|
|
1369
1369
|
null
|
|
1370
1370
|
);
|
|
1371
|
-
const
|
|
1371
|
+
const Oo = Ao.exports, No = {
|
|
1372
1372
|
"en-US": {
|
|
1373
1373
|
copy: "Copy",
|
|
1374
1374
|
edit: "Edit",
|
|
@@ -1387,11 +1387,11 @@ const Ao = bo.exports, Oo = {
|
|
|
1387
1387
|
more: "Mais",
|
|
1388
1388
|
open: "Abrir"
|
|
1389
1389
|
}
|
|
1390
|
-
},
|
|
1391
|
-
i18n: { messages:
|
|
1390
|
+
}, To = {
|
|
1391
|
+
i18n: { messages: No },
|
|
1392
1392
|
name: "data-grid-cell-actions"
|
|
1393
|
-
},
|
|
1394
|
-
...
|
|
1393
|
+
}, Io = /* @__PURE__ */ ae({
|
|
1394
|
+
...To,
|
|
1395
1395
|
props: {
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1450,7 +1450,7 @@ const Ao = bo.exports, Oo = {
|
|
|
1450
1450
|
const f = w(() => {
|
|
1451
1451
|
var _;
|
|
1452
1452
|
const i = v(n.cellActions) ? (_ = n.cellActions) == null ? void 0 : _.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1453
|
-
return (i == null ? void 0 : i.length) > 2 &&
|
|
1453
|
+
return (i == null ? void 0 : i.length) > 2 && vt(
|
|
1454
1454
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1455
1455
|
), i == null ? void 0 : i.slice(0, 2);
|
|
1456
1456
|
}), L = w(() => (i, _) => {
|
|
@@ -1476,17 +1476,17 @@ const Ao = bo.exports, Oo = {
|
|
|
1476
1476
|
handler: () => {
|
|
1477
1477
|
i != null && i.handler && typeof i.handler == "function" && (i == null || i.handler()), i != null && i.event && typeof i.event == "function" && (i == null || i.event(n.rowDataItem, n.columnKey));
|
|
1478
1478
|
}
|
|
1479
|
-
}),
|
|
1479
|
+
}), h = (i) => i.map((_) => {
|
|
1480
1480
|
const C = _;
|
|
1481
|
-
return C != null && C.items && (C.items =
|
|
1481
|
+
return C != null && C.items && (C.items = h(C.items)), { ...A(C) };
|
|
1482
1482
|
});
|
|
1483
|
-
return { __sfc: !0, t: e, props: n, emit: t, isRowActions: o, conditionalCellActionsBackgroundGradientClasses: l, conditionalCellActionsClasses: a, showGradientElement: g, isBentoColumnCellActionsByCellValueDataFn: v, computedCellActions: f, getButtonTitle: L, generateButtonEvents: c, generateMenuEvents: A, transformMenuEvents:
|
|
1483
|
+
return { __sfc: !0, t: e, props: n, emit: t, isRowActions: o, conditionalCellActionsBackgroundGradientClasses: l, conditionalCellActionsClasses: a, showGradientElement: g, isBentoColumnCellActionsByCellValueDataFn: v, computedCellActions: f, getButtonTitle: L, generateButtonEvents: c, generateMenuEvents: A, transformMenuEvents: h, getCopyText: (i) => {
|
|
1484
1484
|
var _, C;
|
|
1485
1485
|
return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (C = (_ = n.rowDataItem) == null ? void 0 : _[n.columnKey]) == null ? void 0 : C.toString() : "";
|
|
1486
|
-
}, shouldShowMenuIconRight: (i) => i.iconRight || ((i == null ? void 0 : i.variant) === "more" || (i == null ? void 0 : i.variant) === "open") && !i.isShort, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton:
|
|
1486
|
+
}, shouldShowMenuIconRight: (i) => i.iconRight || ((i == null ? void 0 : i.variant) === "more" || (i == null ? void 0 : i.variant) === "open") && !i.isShort, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton: Ct, BentoMenu: mt, Copy: $n, Edit1Icon: Oo, ExternalLinkIcon: Bn, OptionsVerticalIcon: Fn };
|
|
1487
1487
|
}
|
|
1488
1488
|
});
|
|
1489
|
-
var
|
|
1489
|
+
var Do = function() {
|
|
1490
1490
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1491
1491
|
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, l) {
|
|
1492
1492
|
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
@@ -1516,27 +1516,30 @@ var Io = function() {
|
|
|
1516
1516
|
return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1517
1517
|
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1518
1518
|
}), 0)])]);
|
|
1519
|
-
},
|
|
1520
|
-
To,
|
|
1519
|
+
}, xo = [], Fo = /* @__PURE__ */ q(
|
|
1521
1520
|
Io,
|
|
1522
1521
|
Do,
|
|
1522
|
+
xo,
|
|
1523
1523
|
!1,
|
|
1524
1524
|
null,
|
|
1525
1525
|
"b6109751"
|
|
1526
1526
|
);
|
|
1527
|
-
const
|
|
1527
|
+
const Lt = Fo.exports, yt = Symbol("data-grid slashed zero key");
|
|
1528
1528
|
var j = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(j || {});
|
|
1529
|
-
const
|
|
1529
|
+
const ct = () => {
|
|
1530
|
+
const s = document.activeElement;
|
|
1531
|
+
return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
|
|
1532
|
+
}, Mo = {
|
|
1530
1533
|
"en-US": {
|
|
1531
1534
|
collapseNestedContent: "Collapse nested content",
|
|
1532
1535
|
expandNestedContent: "Expand nested content",
|
|
1533
1536
|
selectRow: "Select row"
|
|
1534
1537
|
}
|
|
1535
|
-
},
|
|
1536
|
-
i18n: { messages:
|
|
1538
|
+
}, Bo = {
|
|
1539
|
+
i18n: { messages: Mo },
|
|
1537
1540
|
name: "data-grid-cell"
|
|
1538
|
-
},
|
|
1539
|
-
...
|
|
1541
|
+
}, $o = /* @__PURE__ */ ae({
|
|
1542
|
+
...Bo,
|
|
1540
1543
|
props: {
|
|
1541
1544
|
draggingEventsForRowCell: {
|
|
1542
1545
|
type: Function,
|
|
@@ -1666,9 +1669,9 @@ const Fo = {
|
|
|
1666
1669
|
var p;
|
|
1667
1670
|
return e.column.field === ee && ((p = e.nestedRowsElementIds) == null ? void 0 : p.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1668
1671
|
}
|
|
1669
|
-
),
|
|
1672
|
+
), h = w(
|
|
1670
1673
|
() => e.column.field === ee && !e.selectable && !e.nestedContent
|
|
1671
|
-
), d = (p, $) => (p == null ? void 0 : p.overflow) === Ne.ELLIPSIS ? `${$}` : void 0,
|
|
1674
|
+
), d = (p, $) => (p == null ? void 0 : p.overflow) === Ne.ELLIPSIS ? `${$}` : void 0, m = (p) => p ?? "-", S = (p) => e.columnSets.slice(0, p).reduce(($, { columnSet: x }) => $ + x.length, 0), i = (p, $) => p + S($), _ = (p, $, x) => S() * p + i($, x), C = (p) => {
|
|
1672
1675
|
var $;
|
|
1673
1676
|
(p === null || !g.value.contains(p) && !(($ = L.value) != null && $.map((x) => x.value).some((x) => x === p || (x == null ? void 0 : x.contains(p))))) && (f.value = !1);
|
|
1674
1677
|
}, b = () => {
|
|
@@ -1691,9 +1694,9 @@ const Fo = {
|
|
|
1691
1694
|
}, x.mouseleave = (D) => {
|
|
1692
1695
|
C(D == null ? void 0 : D.relatedTarget);
|
|
1693
1696
|
}, x.focus = async (D) => {
|
|
1694
|
-
$.focus(D), await ne(), f.value = !0;
|
|
1697
|
+
ct() && $.focus(D), await ne(), f.value = !0;
|
|
1695
1698
|
}, x.focusout = (D) => {
|
|
1696
|
-
$.focusout(D), C(D == null ? void 0 : D.relatedTarget);
|
|
1699
|
+
ct() && $.focusout(D), C(D == null ? void 0 : D.relatedTarget);
|
|
1697
1700
|
}), x;
|
|
1698
1701
|
}, u = () => {
|
|
1699
1702
|
n("nested-content-toggled");
|
|
@@ -1709,11 +1712,11 @@ const Fo = {
|
|
|
1709
1712
|
}, F = (p) => {
|
|
1710
1713
|
g.value.contains(p == null ? void 0 : p.relatedTarget) || (f.value = !1);
|
|
1711
1714
|
};
|
|
1712
|
-
|
|
1715
|
+
gt(Mn, {
|
|
1713
1716
|
registerMenuContainerElement: R,
|
|
1714
1717
|
menuMouseLeave: F
|
|
1715
1718
|
});
|
|
1716
|
-
const G = Ae(
|
|
1719
|
+
const G = Ae(yt, E(!1)), Z = (p) => {
|
|
1717
1720
|
var $, x, D, z, M, K, r;
|
|
1718
1721
|
return {
|
|
1719
1722
|
[`b-data-grid-cell--${j.COLUMN_HOVERED}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
@@ -1739,10 +1742,10 @@ const Fo = {
|
|
|
1739
1742
|
}));
|
|
1740
1743
|
return t({
|
|
1741
1744
|
gridcellRef: g
|
|
1742
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: g, cellActionsRef: v, shouldShowCellActions: f, childrenMenuContainerElements: L, hasRowData: c, controlledNestedRowElementIds: A, ariaHidden:
|
|
1745
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: g, cellActionsRef: v, shouldShowCellActions: f, childrenMenuContainerElements: L, hasRowData: c, controlledNestedRowElementIds: A, ariaHidden: h, conditionalTitleAttribute: d, getRowData: m, sumColumnAmountsInColumnSets: S, getColIndex: i, getCellIndex: _, isLeavingCellFocus: C, onMenuClose: b, hasInteractiveElFocusedInside: O, getGridcellEvents: I, toggleNestedContent: u, registerMenuContainerElement: R, menuMouseLeave: F, hasSlashedZero: G, conditionalRowCellClasses: Z, computedCellContentClasses: H, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: ee, BentoCheckbox: ht, BentoTypography: he, BentoToggleButton: $e, DataGridCellActions: Lt, ChevronDownIcon: Pn, ChevronUpIcon: zn };
|
|
1743
1746
|
}
|
|
1744
1747
|
});
|
|
1745
|
-
var
|
|
1748
|
+
var zo = function() {
|
|
1746
1749
|
var o;
|
|
1747
1750
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1748
1751
|
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
@@ -1754,18 +1757,18 @@ var $o = function() {
|
|
|
1754
1757
|
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1755
1758
|
return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
|
|
1756
1759
|
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [e.shouldShowCellActions && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1757
|
-
},
|
|
1758
|
-
Bo,
|
|
1760
|
+
}, Po = [], Uo = /* @__PURE__ */ q(
|
|
1759
1761
|
$o,
|
|
1760
1762
|
zo,
|
|
1763
|
+
Po,
|
|
1761
1764
|
!1,
|
|
1762
1765
|
null,
|
|
1763
|
-
"
|
|
1766
|
+
"48286ae5"
|
|
1764
1767
|
);
|
|
1765
|
-
const
|
|
1768
|
+
const ko = Uo.exports, Wo = {
|
|
1766
1769
|
name: "data-grid-row"
|
|
1767
|
-
},
|
|
1768
|
-
...
|
|
1770
|
+
}, Go = /* @__PURE__ */ ae({
|
|
1771
|
+
...Wo,
|
|
1769
1772
|
props: {
|
|
1770
1773
|
/**
|
|
1771
1774
|
* Row actions property that generates which button to show in row actions area
|
|
@@ -1965,7 +1968,7 @@ const Uo = Po.exports, ko = {
|
|
|
1965
1968
|
},
|
|
1966
1969
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
1967
1970
|
setup(s, { expose: t, emit: n }) {
|
|
1968
|
-
const e = s, o = xe(), l = Me(o), a = E({}), g = E(!1), v = E(), f = E(), L = Oe("nested-content-slot"), c = E(!1), A = w(() => e.shouldShowNestedRows(e.rowData)),
|
|
1971
|
+
const e = s, o = xe(), l = Me(o), a = E({}), g = E(!1), v = E(), f = E(), L = Oe("nested-content-slot"), c = E(!1), A = w(() => e.shouldShowNestedRows(e.rowData)), h = w(
|
|
1969
1972
|
() => {
|
|
1970
1973
|
var y, B;
|
|
1971
1974
|
return !e.isNestedRow && e.hasNestedRows && A.value && ((B = (y = e.rowData) == null ? void 0 : y.children) == null ? void 0 : B.length) > 0;
|
|
@@ -1975,13 +1978,13 @@ const Uo = Po.exports, ko = {
|
|
|
1975
1978
|
var y, B;
|
|
1976
1979
|
return !e.isNestedRow && e.hasNestedRows && A.value && (((y = e.rowData) == null ? void 0 : y.children) === void 0 || ((B = e == null ? void 0 : e.rowData) == null ? void 0 : B.children.length) === 0);
|
|
1977
1980
|
}
|
|
1978
|
-
),
|
|
1981
|
+
), m = w(
|
|
1979
1982
|
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && A.value && !e.isNestedRow
|
|
1980
1983
|
), S = w(() => {
|
|
1981
1984
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
1982
1985
|
const y = g.value.toString();
|
|
1983
1986
|
return {
|
|
1984
|
-
"aria-expanded":
|
|
1987
|
+
"aria-expanded": m.value ? y : void 0,
|
|
1985
1988
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
1986
1989
|
"aria-posinset": e.rowIndex + 1,
|
|
1987
1990
|
"aria-setsize": e.rowSetSize
|
|
@@ -1994,7 +1997,7 @@ const Uo = Po.exports, ko = {
|
|
|
1994
1997
|
"aria-busy": "true",
|
|
1995
1998
|
"aria-live": "polite"
|
|
1996
1999
|
};
|
|
1997
|
-
if (!(
|
|
2000
|
+
if (!(h.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
1998
2001
|
return {
|
|
1999
2002
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2000
2003
|
"aria-posinset": "1",
|
|
@@ -2005,13 +2008,13 @@ const Uo = Po.exports, ko = {
|
|
|
2005
2008
|
};
|
|
2006
2009
|
}), _ = w(() => {
|
|
2007
2010
|
var y, B;
|
|
2008
|
-
return
|
|
2011
|
+
return h.value ? (B = (y = e.rowData) == null ? void 0 : y.children) == null ? void 0 : B.reduce((k, Y, Q) => (k[Q] = Oe("nested-row"), k), {}) : [];
|
|
2009
2012
|
}), C = w(() => {
|
|
2010
2013
|
var y;
|
|
2011
2014
|
if (g.value) {
|
|
2012
2015
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2013
2016
|
return [L];
|
|
2014
|
-
if (
|
|
2017
|
+
if (h.value && ((y = Object.keys(_.value)) == null ? void 0 : y.length) > 0) {
|
|
2015
2018
|
const B = Object.values(_.value);
|
|
2016
2019
|
if ((B == null ? void 0 : B.length) > 0)
|
|
2017
2020
|
return B;
|
|
@@ -2060,11 +2063,11 @@ const Uo = Po.exports, ko = {
|
|
|
2060
2063
|
c.value = !1;
|
|
2061
2064
|
}, p = () => {
|
|
2062
2065
|
ze(f.value);
|
|
2063
|
-
}, $ = () => e.columnSets.reduce((y, { columnSet: B }) => y + B.length, 0), x = () => $() * e.rowIndex + $(), { updateContentHeight: D, contentHeight: z } =
|
|
2066
|
+
}, $ = () => e.columnSets.reduce((y, { columnSet: B }) => y + B.length, 0), x = () => $() * e.rowIndex + $(), { updateContentHeight: D, contentHeight: z } = xn(v, g), M = w(() => {
|
|
2064
2067
|
var y;
|
|
2065
2068
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
2066
2069
|
return {
|
|
2067
|
-
paddingLeft: `${
|
|
2070
|
+
paddingLeft: `${h.value || d.value ? 0 : a.value[ee].clientWidth + wt}px`,
|
|
2068
2071
|
"max-height": (e.hasNestedContent || e.hasNestedRows) && z.value && !((y = z == null ? void 0 : z.value) != null && y.includes("null")) ? z.value : 0
|
|
2069
2072
|
};
|
|
2070
2073
|
});
|
|
@@ -2105,7 +2108,7 @@ const Uo = Po.exports, ko = {
|
|
|
2105
2108
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2106
2109
|
}), oe = w(() => ({
|
|
2107
2110
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2108
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
2111
|
+
"b-data-grid-row-container__row-nested-slot": !h.value && e.shouldShowNestedContent(e.rowData)
|
|
2109
2112
|
})), se = w(() => ({
|
|
2110
2113
|
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": c.value
|
|
2111
2114
|
})), ie = w(() => ({
|
|
@@ -2114,10 +2117,10 @@ const Uo = Po.exports, ko = {
|
|
|
2114
2117
|
return t({
|
|
2115
2118
|
gridcellRefs: a,
|
|
2116
2119
|
rowActionsRef: f
|
|
2117
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: g, nestedContentRef: v, rowActionsRef: f, nestedContentSlotId: L, isRowActionMenuOpen: c, shouldShowNestedRowsBooleanResult: A, shouldShowRenderNestedRows:
|
|
2120
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: g, nestedContentRef: v, rowActionsRef: f, nestedContentSlotId: L, isRowActionMenuOpen: c, shouldShowNestedRowsBooleanResult: A, shouldShowRenderNestedRows: h, isLoadingNestedRows: d, shouldShowNestedContentToggle: m, ariaRowAttributes: S, nestedContentContainerDivAriaAttributes: i, nestedRowIds: _, allNestedRowIds: C, hasUnSelectedNestedRows: b, registerRowCellRef: O, getRowId: I, getRowAriaSelectedValue: u, onRowClick: R, onRowSelect: F, onNestedRowSelect: G, onRowActionMenuOpen: Z, onRowActionMenuClose: H, onRowActionsCellFocus: p, sumColumnAmountsInColumnSets: $, getRowActionsCellIndex: x, updateContentHeight: D, contentHeight: z, nestedContentStyles: M, nestedContentToggled: K, conditionalRowClasses: r, conditionalRowSetClasses: P, conditionalNestedRowClasses: oe, conditionalRowActionsContainerClasses: se, computedRowActionsStyles: ie, DataGridCell: ko, DataGridCellActions: Lt, BentoLoadingIndicator: Fe, DataGridRow: Rt };
|
|
2118
2121
|
}
|
|
2119
2122
|
});
|
|
2120
|
-
var
|
|
2123
|
+
var Ho = function() {
|
|
2121
2124
|
var o;
|
|
2122
2125
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2123
2126
|
return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: (o = t.rowId) == null ? void 0 : o.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, v) {
|
|
@@ -2127,8 +2130,8 @@ var Go = function() {
|
|
|
2127
2130
|
}, "on-frozen-columns-key-press": function(c) {
|
|
2128
2131
|
return e.emit("on-frozen-columns-key-press", c);
|
|
2129
2132
|
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(c, A) {
|
|
2130
|
-
return { key: A, fn: function(
|
|
2131
|
-
return [t._t(A, null, null,
|
|
2133
|
+
return { key: A, fn: function(h) {
|
|
2134
|
+
return [t._t(A, null, null, h)];
|
|
2132
2135
|
} };
|
|
2133
2136
|
})], null, !0) });
|
|
2134
2137
|
}), 1) : t._e(), !g && t.rowActions ? n("div", { key: `data-grid-row-actions-${a}`, ref: "rowActionsRef", refInFor: !0, staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
|
|
@@ -2147,34 +2150,34 @@ var Go = function() {
|
|
|
2147
2150
|
} };
|
|
2148
2151
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2149
2152
|
}) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()], 2)]) : t._e()]) : t._e()], 1);
|
|
2150
|
-
},
|
|
2151
|
-
Wo,
|
|
2153
|
+
}, Vo = [], Zo = /* @__PURE__ */ q(
|
|
2152
2154
|
Go,
|
|
2153
2155
|
Ho,
|
|
2156
|
+
Vo,
|
|
2154
2157
|
!1,
|
|
2155
2158
|
null,
|
|
2156
2159
|
"9ebc1423"
|
|
2157
2160
|
);
|
|
2158
|
-
const
|
|
2159
|
-
let
|
|
2160
|
-
const
|
|
2161
|
+
const Rt = Zo.exports;
|
|
2162
|
+
let ut = 0;
|
|
2163
|
+
const jo = {
|
|
2161
2164
|
beforeCreate() {
|
|
2162
|
-
this.uuid =
|
|
2165
|
+
this.uuid = ut.toString(), ut += 1;
|
|
2163
2166
|
}
|
|
2164
2167
|
};
|
|
2165
|
-
var
|
|
2168
|
+
var qo = function() {
|
|
2166
2169
|
var t = this, n = t._self._c;
|
|
2167
2170
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", 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" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2168
|
-
},
|
|
2169
|
-
Zo,
|
|
2171
|
+
}, Yo = [], Xo = /* @__PURE__ */ q(
|
|
2170
2172
|
jo,
|
|
2171
2173
|
qo,
|
|
2174
|
+
Yo,
|
|
2172
2175
|
!1,
|
|
2173
2176
|
null,
|
|
2174
2177
|
null
|
|
2175
2178
|
);
|
|
2176
|
-
const
|
|
2177
|
-
...
|
|
2179
|
+
const Ko = Xo.exports, Jo = {}, Qo = /* @__PURE__ */ ae({
|
|
2180
|
+
...Jo,
|
|
2178
2181
|
__name: "data-grid-static-icon",
|
|
2179
2182
|
props: {
|
|
2180
2183
|
colored: { type: Boolean, default: !1 },
|
|
@@ -2185,13 +2188,13 @@ const Xo = Yo.exports, Ko = {}, Jo = /* @__PURE__ */ ae({
|
|
|
2185
2188
|
const t = s, n = w(() => {
|
|
2186
2189
|
switch (t.variant) {
|
|
2187
2190
|
case "checkmark":
|
|
2188
|
-
return wn;
|
|
2189
|
-
case "warning":
|
|
2190
2191
|
return Sn;
|
|
2192
|
+
case "warning":
|
|
2193
|
+
return En;
|
|
2191
2194
|
case "error":
|
|
2192
|
-
return
|
|
2195
|
+
return Ko;
|
|
2193
2196
|
case "cross":
|
|
2194
|
-
return
|
|
2197
|
+
return _t;
|
|
2195
2198
|
case "no-value":
|
|
2196
2199
|
return Ye;
|
|
2197
2200
|
default:
|
|
@@ -2199,22 +2202,22 @@ const Xo = Yo.exports, Ko = {}, Jo = /* @__PURE__ */ ae({
|
|
|
2199
2202
|
}
|
|
2200
2203
|
}), e = w(() => ({
|
|
2201
2204
|
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2202
|
-
})), o = w(() => `b-data-grid-static-icon__${t.variant}`), l = w(() =>
|
|
2203
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective:
|
|
2205
|
+
})), o = w(() => `b-data-grid-static-icon__${t.variant}`), l = w(() => Ln.AUTO);
|
|
2206
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: yn };
|
|
2204
2207
|
}
|
|
2205
2208
|
});
|
|
2206
|
-
var
|
|
2209
|
+
var el = function() {
|
|
2207
2210
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2208
2211
|
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
|
|
2209
|
-
},
|
|
2210
|
-
Jo,
|
|
2212
|
+
}, tl = [], nl = /* @__PURE__ */ q(
|
|
2211
2213
|
Qo,
|
|
2212
2214
|
el,
|
|
2215
|
+
tl,
|
|
2213
2216
|
!1,
|
|
2214
2217
|
null,
|
|
2215
2218
|
"f8532817"
|
|
2216
2219
|
);
|
|
2217
|
-
const
|
|
2220
|
+
const Ql = nl.exports, sl = () => {
|
|
2218
2221
|
const s = window.getSelection().getRangeAt(0).cloneContents(), t = s.querySelectorAll('[role="row"]');
|
|
2219
2222
|
let n = "<table>";
|
|
2220
2223
|
const e = (o) => {
|
|
@@ -2243,11 +2246,11 @@ const Jl = tl.exports, nl = () => {
|
|
|
2243
2246
|
"text/plain": new Blob([n], { type: "text/plain" })
|
|
2244
2247
|
})
|
|
2245
2248
|
]);
|
|
2246
|
-
},
|
|
2247
|
-
i18n: { messages:
|
|
2249
|
+
}, ol = {
|
|
2250
|
+
i18n: { messages: Et },
|
|
2248
2251
|
name: "bento-data-grid"
|
|
2249
|
-
},
|
|
2250
|
-
...
|
|
2252
|
+
}, ll = /* @__PURE__ */ ae({
|
|
2253
|
+
...ol,
|
|
2251
2254
|
props: {
|
|
2252
2255
|
/**
|
|
2253
2256
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2557,8 +2560,8 @@ const Jl = tl.exports, nl = () => {
|
|
|
2557
2560
|
N.SORT
|
|
2558
2561
|
],
|
|
2559
2562
|
setup(s, { expose: t, emit: n }) {
|
|
2560
|
-
const e = s, o = xe(), l = Me(o), a = E(null), g = E(), v = E({}), f = E(null), L = E(null), c = E(), A = E(null),
|
|
2561
|
-
allowColumnDragAndDrop:
|
|
2563
|
+
const e = s, o = xe(), l = Me(o), a = E(null), g = E(), v = E({}), f = E(null), L = E(null), c = E(), A = E(null), h = E(null), d = E(null), {
|
|
2564
|
+
allowColumnDragAndDrop: m,
|
|
2562
2565
|
columns: S,
|
|
2563
2566
|
columnPanel: i,
|
|
2564
2567
|
data: _,
|
|
@@ -2573,7 +2576,7 @@ const Jl = tl.exports, nl = () => {
|
|
|
2573
2576
|
outline: Z,
|
|
2574
2577
|
pagination: H
|
|
2575
2578
|
} = De(e), p = E(-1), { t: $ } = ge(), x = w(() => se.value.filter((T) => T.frozen).length), D = Ae(
|
|
2576
|
-
|
|
2579
|
+
In,
|
|
2577
2580
|
() => ({
|
|
2578
2581
|
additionalContentSlotRef: E(null),
|
|
2579
2582
|
isDataGridTemplate: !1,
|
|
@@ -2590,13 +2593,13 @@ const Jl = tl.exports, nl = () => {
|
|
|
2590
2593
|
columns: Y,
|
|
2591
2594
|
totalWidthOfAllColumns: Q,
|
|
2592
2595
|
rowActionsMaxWidth: le
|
|
2593
|
-
} =
|
|
2596
|
+
} = rs(S, _, a, v, f, {
|
|
2594
2597
|
hasColumnPanel: i,
|
|
2595
2598
|
hasSelectableColumn: u,
|
|
2596
2599
|
hasSelectableAcrossPages: F,
|
|
2597
2600
|
hasNestedContent: O,
|
|
2598
2601
|
hasNestedRows: I,
|
|
2599
|
-
allowColumnDragAndDrop:
|
|
2602
|
+
allowColumnDragAndDrop: m,
|
|
2600
2603
|
isDataGridTemplate: M
|
|
2601
2604
|
}), U = (T, ...W) => {
|
|
2602
2605
|
(T === N.COLUMNS || T === N.UPDATE_COLUMNS) && ([Y.value] = W), n(T, ...W);
|
|
@@ -2605,49 +2608,49 @@ const Jl = tl.exports, nl = () => {
|
|
|
2605
2608
|
K,
|
|
2606
2609
|
P,
|
|
2607
2610
|
z
|
|
2608
|
-
),
|
|
2611
|
+
), bt = w(
|
|
2609
2612
|
() => e.stickyFilters ? `${pe.value}px` : null
|
|
2610
|
-
), Pe = Qe(L, be(e, "stickyFilters")),
|
|
2613
|
+
), Pe = Qe(L, be(e, "stickyFilters")), At = w(
|
|
2611
2614
|
() => `${Pe.value + pe.value}px`
|
|
2612
2615
|
), {
|
|
2613
2616
|
sortedColumns: we,
|
|
2614
2617
|
columnSets: Se,
|
|
2615
|
-
isOnlyOneVisibleColumn:
|
|
2616
|
-
onConfigSettingsUpdate:
|
|
2617
|
-
onConfigSettingsColumnsUpdate:
|
|
2618
|
-
onConfigSettingsColumnUpdate:
|
|
2619
|
-
} =
|
|
2618
|
+
isOnlyOneVisibleColumn: Ot,
|
|
2619
|
+
onConfigSettingsUpdate: Nt,
|
|
2620
|
+
onConfigSettingsColumnsUpdate: Tt,
|
|
2621
|
+
onConfigSettingsColumnUpdate: It
|
|
2622
|
+
} = vs(se, U), { hoveredOverColumn: Dt, hoveredOverColumnState: xt } = ms(
|
|
2620
2623
|
Se,
|
|
2621
2624
|
u,
|
|
2622
2625
|
Z,
|
|
2623
2626
|
k
|
|
2624
|
-
), { draggingColumns:
|
|
2627
|
+
), { draggingColumns: Ft, draggingEventsForColumns: Mt, draggingEventsForRowCell: Bt, onMoveColumnByOffset: $t } = _s(we, m, U), { onAllRowSelect: zt, onRowSelect: Pt, onNestedRowSelect: Ut, selectedItems: Ue, allItemsSelectedState: kt } = ds(
|
|
2625
2628
|
R,
|
|
2626
2629
|
U,
|
|
2627
2630
|
_,
|
|
2628
2631
|
e.getDataItemId,
|
|
2629
2632
|
e.isDataItemDisabled
|
|
2630
|
-
), { navigationInput:
|
|
2633
|
+
), { navigationInput: Wt } = us(
|
|
2631
2634
|
f,
|
|
2632
2635
|
v,
|
|
2633
2636
|
we,
|
|
2634
2637
|
u,
|
|
2635
2638
|
w(() => e.rowActions !== void 0),
|
|
2636
2639
|
i
|
|
2637
|
-
), { isLazyLoad: Ee, isInfiniteScroll:
|
|
2640
|
+
), { isLazyLoad: Ee, isInfiniteScroll: Gt, verticalScrollPosition: ke, emitLazyLoadEvent: Ht } = gs(
|
|
2638
2641
|
C,
|
|
2639
|
-
|
|
2642
|
+
h,
|
|
2640
2643
|
a,
|
|
2641
2644
|
b,
|
|
2642
2645
|
U
|
|
2643
2646
|
), {
|
|
2644
|
-
updateScrollPosition:
|
|
2645
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
2646
|
-
syncVirtualScrollerWithBody:
|
|
2647
|
+
updateScrollPosition: Vt,
|
|
2648
|
+
updateScrollPositionOnFrozenColumnsNavigation: Zt,
|
|
2649
|
+
syncVirtualScrollerWithBody: jt,
|
|
2647
2650
|
hasLeftOverflow: Le,
|
|
2648
2651
|
hasRightOverflow: We,
|
|
2649
|
-
horizontalScrollbarConditionalStyles:
|
|
2650
|
-
} =
|
|
2652
|
+
horizontalScrollbarConditionalStyles: qt
|
|
2653
|
+
} = Cs(
|
|
2651
2654
|
a,
|
|
2652
2655
|
g,
|
|
2653
2656
|
ke,
|
|
@@ -2662,81 +2665,81 @@ const Jl = tl.exports, nl = () => {
|
|
|
2662
2665
|
}
|
|
2663
2666
|
), Ge = () => {
|
|
2664
2667
|
c.value.isClearAllVisible ? c.value.clearAllFilters() : c.value.isResetAllVisible && c.value.resetAllFilters();
|
|
2665
|
-
},
|
|
2668
|
+
}, Yt = w(() => {
|
|
2666
2669
|
var T, W;
|
|
2667
2670
|
return {
|
|
2668
2671
|
...e.emptyState,
|
|
2669
2672
|
variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((W = e.emptyState) == null ? void 0 : W.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
2670
2673
|
};
|
|
2671
|
-
}),
|
|
2674
|
+
}), Xt = w(() => ({
|
|
2672
2675
|
[`b-data-grid--${ce.OUTLINE}`]: e.outline,
|
|
2673
2676
|
[`b-data-grid--${ce.SCROLL}`]: e.fitContent || Ee.value,
|
|
2674
2677
|
[`b-data-grid--${ce.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
2675
2678
|
[`b-data-grid--${ce.OVERFLOW_SHADOW_LEFT}`]: Le.value && !x.value,
|
|
2676
2679
|
[`b-data-grid--${ce.OVERFLOW_SHADOW_RIGHT}`]: We.value && e.rowActions === void 0,
|
|
2677
2680
|
[`b-data-grid--${ce.NO_SPACING_TOP}`]: e.noSpacingTop
|
|
2678
|
-
})),
|
|
2681
|
+
})), Kt = w(() => ({
|
|
2679
2682
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
2680
|
-
})),
|
|
2683
|
+
})), Jt = w(() => Se.value.findIndex((T) => T.columnSet.length)), Qt = w(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && x.value === 1) || Le.value), en = w(() => ({
|
|
2681
2684
|
"b-data-grid__filters--sticky": !!e.stickyFilters || M
|
|
2682
|
-
})),
|
|
2685
|
+
})), tn = w(() => {
|
|
2683
2686
|
var T, W, X, ue, _e, ve;
|
|
2684
2687
|
return {
|
|
2685
2688
|
"b-data-grid__pagination--padding-left-unset": ((X = (W = (T = e.columns) == null ? void 0 : T[0]) == null ? void 0 : W.padding) == null ? void 0 : X.left) === !1,
|
|
2686
2689
|
"b-data-grid__pagination--padding-right-unset": ((ve = (_e = (ue = e.columns) == null ? void 0 : ue[e.columns.length - 1]) == null ? void 0 : _e.padding) == null ? void 0 : ve.right) === !1,
|
|
2687
2690
|
"b-data-grid__pagination--sticky": !!e.stickyPagination || M
|
|
2688
2691
|
};
|
|
2689
|
-
}),
|
|
2692
|
+
}), nn = (T) => {
|
|
2690
2693
|
const W = T;
|
|
2691
2694
|
T !== null && (W != null && W.columnHeaderRefs) && Object.entries(W == null ? void 0 : W.columnHeaderRefs).forEach(([X, ue]) => {
|
|
2692
2695
|
v.value[X] = ue;
|
|
2693
2696
|
});
|
|
2694
|
-
},
|
|
2697
|
+
}, sn = (T, W) => {
|
|
2695
2698
|
var ue, _e, ve, je;
|
|
2696
2699
|
const X = T;
|
|
2697
2700
|
if (T !== null && X != null && X.gridcellRefs) {
|
|
2698
|
-
const
|
|
2701
|
+
const mn = e.rowActions !== void 0 && (X == null ? void 0 : X.rowActionsRef);
|
|
2699
2702
|
Object.entries(X == null ? void 0 : X.gridcellRefs).map(([ye, hn]) => {
|
|
2700
2703
|
var qe;
|
|
2701
2704
|
((qe = f.value) == null ? void 0 : qe[ye]) === void 0 && (f.value = { ...f.value, [ye]: [] }), f.value[ye][W] = hn;
|
|
2702
|
-
}),
|
|
2705
|
+
}), mn && (((ue = f.value) == null ? void 0 : ue[Ce]) === void 0 && (f.value = { ...f.value, [Ce]: [] }), f.value[Ce][W] = (_e = X.rowActionsRef) == null ? void 0 : _e[0], le.value = Math.max(
|
|
2703
2706
|
le.value,
|
|
2704
2707
|
((je = (ve = X.rowActionsRef) == null ? void 0 : ve[0]) == null ? void 0 : je.offsetWidth) ?? 0
|
|
2705
2708
|
));
|
|
2706
2709
|
}
|
|
2707
|
-
},
|
|
2710
|
+
}, on = (T, W) => {
|
|
2708
2711
|
e.allowRowClicks && U(N.ROW_CLICK, T, W);
|
|
2709
|
-
},
|
|
2712
|
+
}, ln = (T) => {
|
|
2710
2713
|
p.value = T;
|
|
2711
|
-
},
|
|
2712
|
-
label: o != null && o.header ?
|
|
2714
|
+
}, an = w(() => !!e.selectableAcrossPages && !!e.pagination), rn = w(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), dn = An({
|
|
2715
|
+
label: o != null && o.header ? On(o)("header") : null,
|
|
2713
2716
|
defaultFallback: "data grid"
|
|
2714
2717
|
}), He = w(() => {
|
|
2715
2718
|
var T;
|
|
2716
2719
|
return ((T = Ue.value) == null ? void 0 : T.length) ?? 0;
|
|
2717
|
-
}),
|
|
2720
|
+
}), cn = w(() => e.bulkActions && He.value > 0), un = (T) => U(N.COLUMN_RESIZE, T), fn = (T) => {
|
|
2718
2721
|
U(N.UPDATE_SORT_BY, T), U(N.SORT, T);
|
|
2719
|
-
},
|
|
2722
|
+
}, gn = (T, W) => {
|
|
2720
2723
|
U(N.NAVIGATE, T), U(N.UPDATE_PAGINATION, {
|
|
2721
2724
|
...e.pagination,
|
|
2722
2725
|
size: W,
|
|
2723
2726
|
page: T
|
|
2724
2727
|
});
|
|
2725
|
-
},
|
|
2728
|
+
}, _n = (T) => {
|
|
2726
2729
|
U(N.ITEMS_PAGE, T);
|
|
2727
|
-
},
|
|
2730
|
+
}, vn = () => {
|
|
2728
2731
|
U(N.FILTER_SEARCH_CLEAR);
|
|
2729
|
-
},
|
|
2732
|
+
}, Cn = (T) => {
|
|
2730
2733
|
U(N.UPDATE_FILTER_SEARCH_TERM, T), U(N.FILTER_SEARCH_INPUT, T);
|
|
2731
2734
|
}, Ve = w(() => S.value.some((T) => T.mandatory));
|
|
2732
|
-
Ve.value ||
|
|
2735
|
+
Ve.value || vt(
|
|
2733
2736
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2734
2737
|
);
|
|
2735
|
-
const Ze = Ae(
|
|
2736
|
-
return Ze(e.tabTitle),
|
|
2738
|
+
const Ze = Ae(Tn, () => null);
|
|
2739
|
+
return Ze(e.tabTitle), gt(yt, be(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: Ge }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: g, columnHeaderRefs: v, gridcellRefs: f, filtersRef: L, filterBarRef: c, paginationContainerRef: A, verticalScrollPositionRef: h, virtualHorizontalScrollbarRef: d, allowColumnDragAndDrop: m, columns: S, columnPanel: i, data: _, lazyLoadType: C, loading: b, hasNestedContent: O, hasNestedRows: I, selectable: u, selection: R, selectableAcrossPages: F, stickyPagination: G, outline: Z, pagination: H, hoveredRowIndex: p, t: $, frozenColumnsLength: x, registerDatagridInDataGridTemplate: D, additionalContentSlotRef: z, isDataGridTemplate: M, stickyTabs: K, tabsRef: r, stickyAdditionalContent: P, computedColumnsTabIndex: oe, columnDefs: se, onColumnWidthOverride: ie, gridRowWidthStyle: y, isMeasuringColumnWidths: B, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: k, localColumnsState: Y, totalWidthOfAllColumns: Q, rowActionsMaxWidth: le, definedEmitsFunction: n, emit: U, stickyFiltersHeight: pe, computedStickyFiltersTopPosition: bt, columnHeadersHeight: Pe, computedColumnHeadersTopPosition: At, sortedColumns: we, columnSets: Se, isOnlyOneVisibleColumn: Ot, onConfigSettingsUpdate: Nt, onConfigSettingsColumnsUpdate: Tt, onConfigSettingsColumnUpdate: It, hoveredOverColumn: Dt, hoveredOverColumnState: xt, draggingColumns: Ft, draggingEventsForColumns: Mt, draggingEventsForRowCell: Bt, onMoveColumnByOffset: $t, onAllRowSelect: zt, onRowSelect: Pt, onNestedRowSelect: Ut, selectedItems: Ue, allItemsSelectedState: kt, navigationInput: Wt, isLazyLoad: Ee, isInfiniteScroll: Gt, verticalScrollPosition: ke, emitLazyLoadEvent: Ht, updateScrollPosition: Vt, updateScrollPositionOnFrozenColumnsNavigation: Zt, syncVirtualScrollerWithBody: jt, hasLeftOverflow: Le, hasRightOverflow: We, horizontalScrollbarConditionalStyles: qt, onEmptyStateClearResetButtonClick: Ge, limitedEmptyStateProps: Yt, conditionalGridClasses: Xt, conditionalGridBodyClasses: Kt, computedColumnPanelAlignment: Jt, showFrozenColumnsSeparator: Qt, conditionalFilterClasses: en, conditionalPaginationClasses: tn, registerColumnHeaderRefs: nn, registerRowCellRefs: sn, onRowClick: on, onCellHover: ln, selectableAcrossPagesComputed: an, ariaGridRole: rn, ariaGridHeaderText: dn, itemsSelectedCounter: He, showActionBar: cn, onColumnResized: un, onSort: fn, onPaginationNavigate: gn, onItemsPerPageChange: _n, onSearchTermCleared: vn, onSearchTermInput: Cn, hasMandatoryColumn: Ve, setTitle: Ze, BentoActionBar: Rn, BentoPagination: bn, BentoLoadingIndicator: Fe, BentoTypography: he, BentoDataGridConfigSettings: mo, DataGridColumns: Qs, DataGridLazyLoad: Lo, DataGridRow: Rt, handleClipboard: sl, BentoDatagridEvent: N, BentoFilterBar: Re, BentoEmptyState: Nn };
|
|
2737
2740
|
}
|
|
2738
2741
|
});
|
|
2739
|
-
var
|
|
2742
|
+
var al = function() {
|
|
2740
2743
|
var o;
|
|
2741
2744
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2742
2745
|
return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: e.localColumnsState, condensed: t.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : t._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, v) {
|
|
@@ -2761,22 +2764,22 @@ var ll = function() {
|
|
|
2761
2764
|
}), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", style: e.horizontalScrollbarConditionalStyles, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { ref: "paginationContainerRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(l) {
|
|
2762
2765
|
return e.onAllRowSelect(!1);
|
|
2763
2766
|
} } }) : t._e()], 1);
|
|
2764
|
-
},
|
|
2765
|
-
ol,
|
|
2767
|
+
}, il = [], rl = /* @__PURE__ */ q(
|
|
2766
2768
|
ll,
|
|
2767
2769
|
al,
|
|
2770
|
+
il,
|
|
2768
2771
|
!1,
|
|
2769
2772
|
null,
|
|
2770
2773
|
"eea84d8f"
|
|
2771
2774
|
);
|
|
2772
|
-
const
|
|
2775
|
+
const ea = rl.exports;
|
|
2773
2776
|
export {
|
|
2774
2777
|
Ne as B,
|
|
2775
|
-
|
|
2778
|
+
Ql as a,
|
|
2776
2779
|
ce as b,
|
|
2777
2780
|
fe as c,
|
|
2778
|
-
|
|
2781
|
+
ea as d,
|
|
2779
2782
|
N as e,
|
|
2780
|
-
|
|
2783
|
+
me as f
|
|
2781
2784
|
};
|
|
2782
|
-
//# sourceMappingURL=data-grid.
|
|
2785
|
+
//# sourceMappingURL=data-grid.ZBzlPPcj.js.map
|