@adyen/bento-vue2 1.54.2 → 1.55.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 +20 -2
- 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/copy.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.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/focus-trap.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.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/popper-container.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/teleport.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CH1Mswou.js → action-bar.DQ1JoKzt.js} +5 -5
- package/dist/chunks/{action-bar.CH1Mswou.js.map → action-bar.DQ1JoKzt.js.map} +1 -1
- package/dist/chunks/{alert.BkMKX9wD.js → alert.C5Y5RBx9.js} +2 -2
- package/dist/chunks/{alert.BkMKX9wD.js.map → alert.C5Y5RBx9.js.map} +1 -1
- package/dist/chunks/{base-modal.B4TNcOz9.js → base-modal.CEHMcrwC.js} +15 -15
- package/dist/chunks/{base-modal.B4TNcOz9.js.map → base-modal.CEHMcrwC.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.mqNecwDb.js → button-actions-with-menu.BehknT6F.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.mqNecwDb.js.map → button-actions-with-menu.BehknT6F.js.map} +1 -1
- package/dist/chunks/{button-actions.XlUhz42n.js → button-actions.C5Dp4DeK.js} +2 -2
- package/dist/chunks/{button-actions.XlUhz42n.js.map → button-actions.C5Dp4DeK.js.map} +1 -1
- package/dist/chunks/{button.D-3uUhuG.js → button.DUApwEu1.js} +2 -2
- package/dist/chunks/button.DUApwEu1.js.map +1 -0
- package/dist/chunks/{calendar.D4dMXwc0.js → calendar.C9bRwE-l.js} +2 -2
- package/dist/chunks/calendar.C9bRwE-l.js.map +1 -0
- package/dist/chunks/{card.BT04hjvV.js → card.Ba5Jqezr.js} +2 -2
- package/dist/chunks/{card.BT04hjvV.js.map → card.Ba5Jqezr.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DZF4UIym.js → checkbox-group.COqNevz5.js} +4 -4
- package/dist/chunks/{checkbox-group.DZF4UIym.js.map → checkbox-group.COqNevz5.js.map} +1 -1
- package/dist/chunks/{checkbox.DloQJI-K.js → checkbox.LFeWM5p4.js} +3 -3
- package/dist/chunks/{checkbox.DloQJI-K.js.map → checkbox.LFeWM5p4.js.map} +1 -1
- package/dist/chunks/{code-snippet.eHqicJXk.js → code-snippet.Q1HB3T_K.js} +6 -6
- package/dist/chunks/{code-snippet.eHqicJXk.js.map → code-snippet.Q1HB3T_K.js.map} +1 -1
- package/dist/chunks/{controls-group.C-HKhH1m.js → controls-group.B-JUz-ir.js} +2 -2
- package/dist/chunks/{controls-group.C-HKhH1m.js.map → controls-group.B-JUz-ir.js.map} +1 -1
- package/dist/chunks/{copy.k18tXmP1.js → copy.C7gFAgeL.js} +9 -9
- package/dist/chunks/{copy.k18tXmP1.js.map → copy.C7gFAgeL.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DlIwNKkx.js → dashboard-section.Cn7UfGjF.js} +47 -50
- package/dist/chunks/dashboard-section.Cn7UfGjF.js.map +1 -0
- package/dist/chunks/{dashed-underline.BbQIbZfu.js → dashed-underline.0K0Xbu6k.js} +3 -3
- package/dist/chunks/{dashed-underline.BbQIbZfu.js.map → dashed-underline.0K0Xbu6k.js.map} +1 -1
- package/dist/chunks/data-grid-template.Bm08fIsa.js +69 -0
- package/dist/chunks/data-grid-template.Bm08fIsa.js.map +1 -0
- package/dist/chunks/{data-grid.BTxmzkic.js → data-grid.C8S9cY5p.js} +1181 -1095
- package/dist/chunks/data-grid.C8S9cY5p.js.map +1 -0
- package/dist/chunks/{date-picker.Dy0k-7_1.js → date-picker.DPSJvBlj.js} +5 -5
- package/dist/chunks/{date-picker.Dy0k-7_1.js.map → date-picker.DPSJvBlj.js.map} +1 -1
- package/dist/chunks/{date-range-picker.nTv7S5oB.js → date-range-picker.B03wCOPP.js} +27 -24
- package/dist/chunks/date-range-picker.B03wCOPP.js.map +1 -0
- package/dist/chunks/{dialog-page.BfF5_hmG.js → dialog-page.C8iNK4bf.js} +2 -2
- package/dist/chunks/{dialog-page.BfF5_hmG.js.map → dialog-page.C8iNK4bf.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CDTdHfTv.js → dropdown-default-textbox.AUsF-RIc.js} +18 -18
- package/dist/chunks/{dropdown-default-textbox.CDTdHfTv.js.map → dropdown-default-textbox.AUsF-RIc.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B15dzpe3.js → dropdown-tag.DUlkje2L.js} +3 -3
- package/dist/chunks/{dropdown-tag.B15dzpe3.js.map → dropdown-tag.DUlkje2L.js.map} +1 -1
- package/dist/chunks/{dropdown.CFBycvtL.js → dropdown.DihPVajz.js} +31 -31
- package/dist/chunks/{dropdown.CFBycvtL.js.map → dropdown.DihPVajz.js.map} +1 -1
- package/dist/chunks/{empty-state.JbgxSrnv.js → empty-state.aBO3bh4N.js} +2 -2
- package/dist/chunks/{empty-state.JbgxSrnv.js.map → empty-state.aBO3bh4N.js.map} +1 -1
- package/dist/chunks/{error-message.qHRfH-8Y.js → error-message.7bsic_sK.js} +2 -2
- package/dist/chunks/{error-message.qHRfH-8Y.js.map → error-message.7bsic_sK.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.CKcv6q6S.js → file-uploader.P_s39Esv.js} +5 -5
- package/dist/chunks/{file-uploader.CKcv6q6S.js.map → file-uploader.P_s39Esv.js.map} +1 -1
- package/dist/chunks/{filter-bar.Cu4I3kJB.js → filter-bar.Djv7J4G1.js} +31 -28
- package/dist/chunks/filter-bar.Djv7J4G1.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BwvXYzE6.js → fixed-scroller.C7Eug22g.js} +2 -2
- package/dist/chunks/{fixed-scroller.BwvXYzE6.js.map → fixed-scroller.C7Eug22g.js.map} +1 -1
- package/dist/chunks/{focus-trap.V3Q8H_5C.js → focus-trap.DEHn1dxN.js} +6 -6
- package/dist/chunks/{focus-trap.V3Q8H_5C.js.map → focus-trap.DEHn1dxN.js.map} +1 -1
- package/dist/chunks/{footer-actions.DYi_MR9I.js → footer-actions.CNNRHYLb.js} +3 -3
- package/dist/chunks/{footer-actions.DYi_MR9I.js.map → footer-actions.CNNRHYLb.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DK1-01RH.js → form-layout-title.C9P21KnX.js} +2 -2
- package/dist/chunks/{form-layout-title.DK1-01RH.js.map → form-layout-title.C9P21KnX.js.map} +1 -1
- package/dist/chunks/{header-with-views.ugNWdbC8.js → header-with-views.siHZ-MsA.js} +13 -13
- package/dist/chunks/{header-with-views.ugNWdbC8.js.map → header-with-views.siHZ-MsA.js.map} +1 -1
- package/dist/chunks/{header.DWx6s2nt.js → header.BXGTPqZK.js} +4 -4
- package/dist/chunks/{header.DWx6s2nt.js.map → header.BXGTPqZK.js.map} +1 -1
- package/dist/chunks/i18n.BQkEbtPM.js.map +1 -1
- package/dist/chunks/{info-icon-with-popover.B4wYDzGz.js → info-icon-with-popover.CdZ1_8hG.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.B4wYDzGz.js.map → info-icon-with-popover.CdZ1_8hG.js.map} +1 -1
- package/dist/chunks/{info-icon.J62KXp9I.js → info-icon.Dn0FHy-U.js} +3 -3
- package/dist/chunks/{info-icon.J62KXp9I.js.map → info-icon.Dn0FHy-U.js.map} +1 -1
- package/dist/chunks/{input-field-password.DCcG3ju1.js → input-field-password.Dz_8fr0j.js} +6 -6
- package/dist/chunks/{input-field-password.DCcG3ju1.js.map → input-field-password.Dz_8fr0j.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BxP8LyD-.js → input-field-phone-number.CPlRrAGe.js} +8 -12
- package/dist/chunks/{input-field-phone-number.BxP8LyD-.js.map → input-field-phone-number.CPlRrAGe.js.map} +1 -1
- package/dist/chunks/{input-field.BUj99rZv.js → input-field.DcOnDLTc.js} +3 -3
- package/dist/chunks/{input-field.BUj99rZv.js.map → input-field.DcOnDLTc.js.map} +1 -1
- package/dist/chunks/{inspector.types.Cmq6sdCz.js → inspector.types.D1m792RZ.js} +3 -3
- package/dist/chunks/{inspector.types.Cmq6sdCz.js.map → inspector.types.D1m792RZ.js.map} +1 -1
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
- package/dist/chunks/{listbox-option-tag.BHI-8rRX.js → listbox-option-tag.BSQ8bM-O.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BHI-8rRX.js.map → listbox-option-tag.BSQ8bM-O.js.map} +1 -1
- package/dist/chunks/{menu.BoxhffPs.js → menu.DFatjXpw.js} +5 -6
- package/dist/chunks/menu.DFatjXpw.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.E7e13pW9.js → modal-fullscreen._NBj0IXu.js} +5 -5
- package/dist/chunks/{modal-fullscreen.E7e13pW9.js.map → modal-fullscreen._NBj0IXu.js.map} +1 -1
- package/dist/chunks/{modal.n7b-ITaf.js → modal.CpZzd8fG.js} +5 -5
- package/dist/chunks/{modal.n7b-ITaf.js.map → modal.CpZzd8fG.js.map} +1 -1
- package/dist/chunks/{pagination.eAo5wz5D.js → pagination.PQCpgVVF.js} +3 -3
- package/dist/chunks/{pagination.eAo5wz5D.js.map → pagination.PQCpgVVF.js.map} +1 -1
- package/dist/chunks/{popover.C4PNSrnW.js → popover.BVLuUYSi.js} +4 -4
- package/dist/chunks/{popover.C4PNSrnW.js.map → popover.BVLuUYSi.js.map} +1 -1
- package/dist/chunks/{popper-container.DWY19wS0.js → popper-container.DieshXa8.js} +3 -3
- package/dist/chunks/{popper-container.DWY19wS0.js.map → popper-container.DieshXa8.js.map} +1 -1
- package/dist/chunks/{promo-banner.DgCKKp6o.js → promo-banner.C4jiwSeA.js} +2 -2
- package/dist/chunks/{promo-banner.DgCKKp6o.js.map → promo-banner.C4jiwSeA.js.map} +1 -1
- package/dist/chunks/{radio-group.WbbrQhEO.js → radio-group.BuKC_n23.js} +4 -4
- package/dist/chunks/{radio-group.WbbrQhEO.js.map → radio-group.BuKC_n23.js.map} +1 -1
- package/dist/chunks/{search-bar.C-DwowF7.js → search-bar.BPnYyZ9S.js} +3 -3
- package/dist/chunks/{search-bar.C-DwowF7.js.map → search-bar.BPnYyZ9S.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CTeYViOR.js → secondary-nav.CDykzeRU.js} +2 -2
- package/dist/chunks/{secondary-nav.CTeYViOR.js.map → secondary-nav.CDykzeRU.js.map} +1 -1
- package/dist/chunks/{segmented-control.DGNMY2BP.js → segmented-control.CCgCeLDQ.js} +2 -2
- package/dist/chunks/{segmented-control.DGNMY2BP.js.map → segmented-control.CCgCeLDQ.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BmKUEuny.js → selection-card-group.Dj9wWfmY.js} +3 -3
- package/dist/chunks/{selection-card-group.BmKUEuny.js.map → selection-card-group.Dj9wWfmY.js.map} +1 -1
- package/dist/chunks/{sidepanel.Bnw4accy.js → sidepanel.DcBdDgec.js} +10 -10
- package/dist/chunks/{sidepanel.Bnw4accy.js.map → sidepanel.DcBdDgec.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Co5P9bFC.js → structured-list-item.w0GVxwQf.js} +5 -5
- package/dist/chunks/{structured-list-item.Co5P9bFC.js.map → structured-list-item.w0GVxwQf.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.egM7irBt.js → summary-grid.types.DoD7Ls0O.js} +5 -5
- package/dist/chunks/{summary-grid.types.egM7irBt.js.map → summary-grid.types.DoD7Ls0O.js.map} +1 -1
- package/dist/chunks/tabs.T3A3YNdF.js +205 -0
- package/dist/chunks/tabs.T3A3YNdF.js.map +1 -0
- package/dist/chunks/{tag.CyspYb1E.js → tag.C7ATWnRW.js} +2 -2
- package/dist/chunks/{tag.CyspYb1E.js.map → tag.C7ATWnRW.js.map} +1 -1
- package/dist/chunks/{teleport.BHfrns33.js → teleport.5oodkxuB.js} +6 -6
- package/dist/chunks/teleport.5oodkxuB.js.map +1 -0
- package/dist/chunks/{textarea.CC8esIW6.js → textarea.CrPdkIGL.js} +3 -3
- package/dist/chunks/{textarea.CC8esIW6.js.map → textarea.CrPdkIGL.js.map} +1 -1
- package/dist/chunks/{timeline-item.Byorbxmc.js → timeline-item.B6XTUyr8.js} +6 -6
- package/dist/chunks/{timeline-item.Byorbxmc.js.map → timeline-item.B6XTUyr8.js.map} +1 -1
- package/dist/chunks/{toast.DqSWycRO.js → toast.CjJW9t4G.js} +2 -2
- package/dist/chunks/{toast.DqSWycRO.js.map → toast.CjJW9t4G.js.map} +1 -1
- package/dist/chunks/{toggle-button.DgSFugBP.js → toggle-button.Dj2uoRyw.js} +2 -2
- package/dist/chunks/{toggle-button.DgSFugBP.js.map → toggle-button.Dj2uoRyw.js.map} +1 -1
- package/dist/chunks/{tooltip.DOvci5lX.js → tooltip.CfER_5In.js} +2 -2
- package/dist/chunks/{tooltip.DOvci5lX.js.map → tooltip.CfER_5In.js.map} +1 -1
- package/dist/chunks/{tutorial.QwHbq1FO.js → tutorial.CTzjDY6m.js} +5 -5
- package/dist/chunks/{tutorial.QwHbq1FO.js.map → tutorial.CTzjDY6m.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DHpjo2tV.js → use-cached-selected-values.D6lOsd0o.js} +431 -422
- package/dist/chunks/use-cached-selected-values.D6lOsd0o.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 +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.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 +54 -54
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +13 -13
- 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/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +8 -4
- package/dist/styles/bento-light.css +8 -4
- package/dist/styles/bento.css +8 -4
- package/dist/styles/legacy.css +8 -5
- package/dist/styles/styleguide.css +8 -4
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.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 +85 -5
- package/package.json +18 -6
- package/dist/chunks/button.D-3uUhuG.js.map +0 -1
- package/dist/chunks/calendar.D4dMXwc0.js.map +0 -1
- package/dist/chunks/dashboard-section.DlIwNKkx.js.map +0 -1
- package/dist/chunks/data-grid-template.BJTWe6Ty.js +0 -69
- package/dist/chunks/data-grid-template.BJTWe6Ty.js.map +0 -1
- package/dist/chunks/data-grid.BTxmzkic.js.map +0 -1
- package/dist/chunks/date-range-picker.nTv7S5oB.js.map +0 -1
- package/dist/chunks/filter-bar.Cu4I3kJB.js.map +0 -1
- package/dist/chunks/menu.BoxhffPs.js.map +0 -1
- package/dist/chunks/tabs.C8CgvNt4.js +0 -214
- package/dist/chunks/tabs.C8CgvNt4.js.map +0 -1
- package/dist/chunks/teleport.BHfrns33.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DHpjo2tV.js.map +0 -1
|
@@ -1,623 +1,625 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
1
|
+
import { ref as y, reactive as be, toRefs as Ae, computed as m, watchEffect as cn, watch as ee, onMounted as Oe, nextTick as ne, onUnmounted as lt, onBeforeUpdate as un, defineComponent as oe, toRef as Le, useSlots as Ne, provide as at, inject as Ee } from "vue";
|
|
2
|
+
import { C as fn } from "./checkmark-circle-fill.DZBl7CeY.js";
|
|
3
|
+
import { W as gn } from "./warning-filled.Cd0kVWwa.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { n as
|
|
6
|
-
import { C as
|
|
7
|
-
import { N as
|
|
8
|
-
import { d as
|
|
9
|
-
import { K as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import { B as
|
|
13
|
-
import { B as he, p as
|
|
5
|
+
import { n as Y } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { C as it } from "./cross.CJ5EEL2c.js";
|
|
7
|
+
import { N as He } from "./checkbox-input.CMhyJDdo.js";
|
|
8
|
+
import { d as _n } from "./popper-container.DieshXa8.js";
|
|
9
|
+
import { K as ae, B as vn } from "./tooltip.CfER_5In.js";
|
|
10
|
+
import { B as Cn } from "./action-bar.DQ1JoKzt.js";
|
|
11
|
+
import { B as hn } from "./pagination.PQCpgVVF.js";
|
|
12
|
+
import { B as Te } from "./loading-indicator.z8COalOc.js";
|
|
13
|
+
import { B as he, p as rt } from "./typography.J1v_SPG3.js";
|
|
14
14
|
import { u as Ie } from "./use-has-slot.C9lQZ6nz.js";
|
|
15
|
-
import { u as
|
|
16
|
-
import { g as
|
|
17
|
-
import { u as
|
|
18
|
-
import { B as
|
|
19
|
-
import { B as
|
|
20
|
-
import { E as
|
|
21
|
-
import { D as
|
|
15
|
+
import { u as mn } from "./aria-label.CaUURpnB.js";
|
|
16
|
+
import { g as pn } from "./get-slot-text.BQS5Olxm.js";
|
|
17
|
+
import { u as ue } from "./i18n.BQkEbtPM.js";
|
|
18
|
+
import { B as Se } from "./filter-bar.Djv7J4G1.js";
|
|
19
|
+
import { B as wn } from "./empty-state.aBO3bh4N.js";
|
|
20
|
+
import { E as Sn } from "./tabs.keys.Bc2pSKRw.js";
|
|
21
|
+
import { D as Ln } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
22
22
|
import { o as De } from "./resize.Bqks3WUm.js";
|
|
23
23
|
import "./index.Cl4_42j5.js";
|
|
24
|
-
import { u as
|
|
25
|
-
import { g as
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { C as
|
|
32
|
-
import { B as
|
|
33
|
-
import { e as
|
|
34
|
-
import { B as
|
|
35
|
-
import { a as
|
|
36
|
-
import { A as
|
|
37
|
-
import { H as
|
|
38
|
-
import { l as
|
|
39
|
-
import { B as
|
|
40
|
-
import { B as
|
|
41
|
-
import { u as
|
|
42
|
-
import { S as
|
|
43
|
-
import { B as
|
|
24
|
+
import { u as En } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
25
|
+
import { g as Re } from "./generate-uid.NJ8tVoha.js";
|
|
26
|
+
import { B as dt } from "./button.DUApwEu1.js";
|
|
27
|
+
import { B as ct, O as Rn, D as yn } from "./menu.DFatjXpw.js";
|
|
28
|
+
import { E as bn } from "./link.BH3eB_7E.js";
|
|
29
|
+
import { C as An } from "./copy.C7gFAgeL.js";
|
|
30
|
+
import { B as ut } from "./checkbox.LFeWM5p4.js";
|
|
31
|
+
import { C as On, a as Nn } from "./chevron-up.CSVyoaTy.js";
|
|
32
|
+
import { B as xe } from "./toggle-button.Dj2uoRyw.js";
|
|
33
|
+
import { e as Tn, d as In } from "./button-actions.C5Dp4DeK.js";
|
|
34
|
+
import { B as Dn } from "./info-icon.Dn0FHy-U.js";
|
|
35
|
+
import { a as Ve, B as xn } from "./popover.BVLuUYSi.js";
|
|
36
|
+
import { A as Fn } from "./dialog-page.C8iNK4bf.js";
|
|
37
|
+
import { H as Mn, S as Bn } from "./show.e4LEpZKG.js";
|
|
38
|
+
import { l as Ze } from "./events.CMzGybJJ.js";
|
|
39
|
+
import { B as ft } from "./toggle.Q52IIKfi.js";
|
|
40
|
+
import { B as Pn } from "./search-bar.BPnYyZ9S.js";
|
|
41
|
+
import { u as $n } from "./dropdown.DihPVajz.js";
|
|
42
|
+
import { S as zn } from "./search.DLtglc02.js";
|
|
43
|
+
import { B as Un } from "./directive.Cbdox5VL.js";
|
|
44
44
|
import "../assets/data-grid.css";
|
|
45
|
-
var
|
|
46
|
-
const
|
|
47
|
-
const n =
|
|
48
|
-
let
|
|
49
|
-
const
|
|
50
|
-
() => Object.fromEntries(s.value.map(({ field: h, width:
|
|
45
|
+
var ye = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(ye || {}), re = /* @__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))(re || {}), ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ce || {}), b = /* @__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))(b || {}), Ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ce || {}), H = /* @__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))(H || {});
|
|
46
|
+
const kn = (s, t) => {
|
|
47
|
+
const n = y(null), e = y(!1), o = y(void 0), l = s.value.reduce((h, i) => (h[i.field] = null, h), {}), a = be(l), g = Ae(a);
|
|
48
|
+
let _ = 0, f = "";
|
|
49
|
+
const S = m(
|
|
50
|
+
() => Object.fromEntries(s.value.map(({ field: h, width: i, minWidth: L }) => [h, { width: i, minWidth: L }]))
|
|
51
51
|
);
|
|
52
|
-
|
|
53
|
-
let c = null,
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
o.value[
|
|
57
|
-
},
|
|
58
|
-
e.value = !1, c == null || c(),
|
|
52
|
+
cn(() => o.value = S.value);
|
|
53
|
+
let c = null, p = null;
|
|
54
|
+
const r = (h) => {
|
|
55
|
+
const i = h.clientX - _, L = f, w = o.value[L].width + i;
|
|
56
|
+
o.value[L].width = w > S.value[L].minWidth ? w : S.value[L].minWidth, t(H.COLUMN_RESIZING, o.value), _ = h.clientX;
|
|
57
|
+
}, u = () => {
|
|
58
|
+
e.value = !1, c == null || c(), p == null || p(), f && t(H.COLUMN_RESIZE, {
|
|
59
59
|
field: f,
|
|
60
60
|
width: o.value[f].width
|
|
61
|
-
}), c = null,
|
|
62
|
-
},
|
|
63
|
-
if (
|
|
64
|
-
if (e.value = !0,
|
|
65
|
-
|
|
61
|
+
}), c = null, p = null, f = "", _ = null;
|
|
62
|
+
}, C = (h, i, L) => {
|
|
63
|
+
if (L.preventDefault(), h) {
|
|
64
|
+
if (e.value = !0, L.buttons !== 1) {
|
|
65
|
+
u();
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
f =
|
|
68
|
+
f = i, _ = L.clientX, c = Ze(window, "mousemove", r), p = Ze(window, "mouseup", u);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
return
|
|
71
|
+
return ee(
|
|
72
72
|
() => e.value,
|
|
73
|
-
(h,
|
|
74
|
-
!h &&
|
|
73
|
+
(h, i) => {
|
|
74
|
+
!h && i && (t(H.COLUMN_HOVER, n.value), n.value = null);
|
|
75
75
|
}
|
|
76
76
|
), {
|
|
77
77
|
resizeData: o,
|
|
78
|
-
allColumnRefs:
|
|
79
|
-
startResize:
|
|
78
|
+
allColumnRefs: g,
|
|
79
|
+
startResize: C,
|
|
80
80
|
isResizing: e,
|
|
81
81
|
columnHoverEventToEmitAfterResizing: n
|
|
82
82
|
};
|
|
83
|
-
},
|
|
84
|
-
const e = {}, o = [],
|
|
85
|
-
const
|
|
86
|
-
|
|
83
|
+
}, Wn = 100, je = 50, Q = "b-actions-column", Gn = 32, Hn = 56, Vn = 56, Zn = 80, jn = 36, qn = 1, gt = 16, Yn = 20, Xn = (s, t, n) => {
|
|
84
|
+
const e = {}, o = [], l = (g) => {
|
|
85
|
+
const _ = e[g];
|
|
86
|
+
_ && _.frozen !== !0 && (e[g].frozen = !0, o.push(g));
|
|
87
87
|
};
|
|
88
|
-
function
|
|
88
|
+
function a() {
|
|
89
89
|
if (o.length === n.length)
|
|
90
90
|
return;
|
|
91
|
-
const
|
|
92
|
-
let
|
|
91
|
+
const g = { min: {} };
|
|
92
|
+
let _ = s, f = t, S = 0;
|
|
93
93
|
o.forEach((c) => {
|
|
94
|
-
|
|
94
|
+
_ -= e[c].computedWidth, f -= e[c].flex;
|
|
95
95
|
});
|
|
96
|
-
for (let c = 0,
|
|
97
|
-
const
|
|
98
|
-
if (e[
|
|
96
|
+
for (let c = 0, p = n.length; c < p; c += 1) {
|
|
97
|
+
const r = n[c];
|
|
98
|
+
if (e[r.field] && e[r.field].frozen === !0)
|
|
99
99
|
continue;
|
|
100
|
-
let
|
|
101
|
-
|
|
100
|
+
let C = _ / f * r.flex;
|
|
101
|
+
C < r.minWidth && (S += r.minWidth - C, C = r.minWidth, g.min[r.field] = !0), e[r.field] = {
|
|
102
102
|
frozen: !1,
|
|
103
|
-
computedWidth:
|
|
104
|
-
flex:
|
|
103
|
+
computedWidth: C,
|
|
104
|
+
flex: r.flex
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
S > 0 ? Object.keys(g.min).forEach((c) => {
|
|
108
|
+
l(c);
|
|
109
109
|
}) : n.forEach(({ field: c }) => {
|
|
110
|
-
|
|
111
|
-
}),
|
|
110
|
+
l(c);
|
|
111
|
+
}), a();
|
|
112
112
|
}
|
|
113
|
-
return
|
|
114
|
-
},
|
|
115
|
-
let n =
|
|
116
|
-
return t && (n +=
|
|
117
|
-
},
|
|
118
|
-
var t, n, e, o,
|
|
119
|
-
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 ?
|
|
120
|
-
},
|
|
121
|
-
const
|
|
122
|
-
|
|
113
|
+
return a(), e;
|
|
114
|
+
}, qe = (s, t) => {
|
|
115
|
+
let n = qn;
|
|
116
|
+
return t && (n += gt * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
117
|
+
}, Kn = (s) => {
|
|
118
|
+
var t, n, e, o, l;
|
|
119
|
+
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 ? Zn : Vn : jn : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? Hn : Gn;
|
|
120
|
+
}, Jn = (s, t, n, e, o, l) => {
|
|
121
|
+
const a = y(s.value), g = y(t), _ = y(n), f = y(e), S = y(o), c = y(!1), p = y(0);
|
|
122
|
+
ee(
|
|
123
123
|
() => s.value,
|
|
124
|
-
(
|
|
125
|
-
var
|
|
126
|
-
const
|
|
127
|
-
if (!((
|
|
128
|
-
|
|
124
|
+
(E, O) => {
|
|
125
|
+
var v, M;
|
|
126
|
+
const U = (E == null ? void 0 : E.map(({ field: N }) => N).toString()) === (O == null ? void 0 : O.map(({ field: N }) => N).toString());
|
|
127
|
+
if (!((v = l == null ? void 0 : l.allowColumnDragAndDrop) != null && v.value) || !U) {
|
|
128
|
+
a.value = s.value;
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
return
|
|
131
|
+
a.value = ((M = a.value) == null ? void 0 : M.length) === 0 ? s.value : s.value.sort((N, I) => {
|
|
132
|
+
const V = a.value.findIndex((Z) => Z.field === N.field), k = a.value.findIndex((Z) => Z.field === I.field);
|
|
133
|
+
return V === -1 ? 1 : k === -1 ? -1 : V - k;
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
const
|
|
140
|
-
var
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
const
|
|
146
|
-
if ((
|
|
147
|
-
const
|
|
148
|
-
|
|
137
|
+
const r = y();
|
|
138
|
+
let u = null;
|
|
139
|
+
const C = m(() => {
|
|
140
|
+
var V, k, Z;
|
|
141
|
+
const E = [];
|
|
142
|
+
let O = 0, U = 0;
|
|
143
|
+
const v = {};
|
|
144
|
+
let M = a.value.filter(($) => $.visible !== !1);
|
|
145
|
+
const N = a.value.filter(($) => $.visible === !1);
|
|
146
|
+
if ((V = l == null ? void 0 : l.hasSelectableColumn) != null && V.value || (k = l == null ? void 0 : l.hasNestedContent) != null && k.value || (Z = l == null ? void 0 : l.hasNestedRows) != null && Z.value) {
|
|
147
|
+
const $ = Kn(l);
|
|
148
|
+
M = [
|
|
149
149
|
{
|
|
150
|
-
field:
|
|
150
|
+
field: Q,
|
|
151
151
|
label: "",
|
|
152
|
-
minWidth:
|
|
153
|
-
width:
|
|
152
|
+
minWidth: $,
|
|
153
|
+
width: $,
|
|
154
154
|
frozen: !0,
|
|
155
155
|
padding: { left: !1, right: !1 }
|
|
156
156
|
},
|
|
157
|
-
|
|
157
|
+
...M
|
|
158
158
|
];
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
|
|
164
|
-
(
|
|
165
|
-
(
|
|
166
|
-
),
|
|
160
|
+
M.forEach(($) => {
|
|
161
|
+
const B = { ...$ };
|
|
162
|
+
let d;
|
|
163
|
+
B.flex && B.flex > 0 ? (O += B.flex, d = 0, E.push(B)) : d = Math.max(
|
|
164
|
+
(B == null ? void 0 : B.width) ?? Wn,
|
|
165
|
+
(B == null ? void 0 : B.minWidth) ?? je
|
|
166
|
+
), U += d, B.width = d, B.minWidth = (B == null ? void 0 : B.minWidth) ?? je, v[B.field] = B;
|
|
167
167
|
});
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
170
|
-
const
|
|
171
|
-
Object.keys(
|
|
172
|
-
|
|
168
|
+
const I = Math.max(r.value - U, 0);
|
|
169
|
+
if (O > 0 && r.value > 0) {
|
|
170
|
+
const $ = Xn(I, O, E);
|
|
171
|
+
Object.keys($).forEach((B) => {
|
|
172
|
+
v[B].width = $[B].computedWidth;
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
return
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
}), Object.values(
|
|
179
|
-
}),
|
|
180
|
-
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
const
|
|
185
|
-
(
|
|
186
|
-
(
|
|
187
|
-
),
|
|
188
|
-
(
|
|
175
|
+
return N.forEach(($) => {
|
|
176
|
+
const B = { ...$ };
|
|
177
|
+
v[B.field] = B;
|
|
178
|
+
}), Object.values(v);
|
|
179
|
+
}), h = y(void 0), i = (E) => {
|
|
180
|
+
h.value = { ...h.value, ...E };
|
|
181
|
+
}, L = async () => {
|
|
182
|
+
a.value.some((E) => E == null ? void 0 : E.autoWidth) && (c.value = !0, await ne(), a == null || a.value.filter((E) => E == null ? void 0 : E.autoWidth).forEach(({ field: E, minWidth: O }) => {
|
|
183
|
+
var N, I, V, k;
|
|
184
|
+
const U = qe(
|
|
185
|
+
(N = f.value) == null ? void 0 : N[E],
|
|
186
|
+
(I = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : I.value
|
|
187
|
+
), v = (k = (V = S.value) == null ? void 0 : V[E]) == null ? void 0 : k.reduce(
|
|
188
|
+
(Z, $) => Math.max(Z, qe($)),
|
|
189
189
|
0
|
|
190
|
-
),
|
|
191
|
-
(
|
|
192
|
-
[
|
|
193
|
-
width:
|
|
190
|
+
), M = Math.max(U, v ?? 0);
|
|
191
|
+
(O === void 0 || M > O) && i({
|
|
192
|
+
[E]: {
|
|
193
|
+
width: M
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
}), c.value = !1);
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
ee([() => a.value, () => g.value], async () => {
|
|
199
|
+
a.value.some((E) => E == null ? void 0 : E.autoWidth) && await L();
|
|
200
200
|
});
|
|
201
|
-
const
|
|
202
|
-
() =>
|
|
203
|
-
var
|
|
201
|
+
const w = m(
|
|
202
|
+
() => C.value.map((E) => {
|
|
203
|
+
var O, U;
|
|
204
204
|
return {
|
|
205
|
-
...
|
|
205
|
+
...E,
|
|
206
206
|
// Override column width with resized ones
|
|
207
|
-
width: ((
|
|
207
|
+
width: ((U = (O = h.value) == null ? void 0 : O[E.field]) == null ? void 0 : U.width) ?? E.width
|
|
208
208
|
};
|
|
209
209
|
})
|
|
210
|
-
),
|
|
210
|
+
), D = m(
|
|
211
211
|
() => {
|
|
212
|
-
var
|
|
213
|
-
return (
|
|
212
|
+
var E;
|
|
213
|
+
return ((E = w.value) == null ? void 0 : E.filter(({ visible: O }) => O !== !1).reduce((O, U) => U.width + O, 0)) + p.value;
|
|
214
214
|
}
|
|
215
|
-
),
|
|
216
|
-
() =>
|
|
217
|
-
),
|
|
218
|
-
width:
|
|
215
|
+
), z = m(
|
|
216
|
+
() => r.value <= D.value
|
|
217
|
+
), F = m(() => ({
|
|
218
|
+
width: r.value > D.value ? "100%" : "fit-content"
|
|
219
|
+
})), A = m(() => ({
|
|
220
|
+
...F.value,
|
|
221
|
+
paddingRight: `${p.value}px`
|
|
219
222
|
}));
|
|
220
|
-
return
|
|
221
|
-
var
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
|
|
223
|
+
return Oe(() => {
|
|
224
|
+
var O;
|
|
225
|
+
const E = l != null && l.isDataGridTemplate ? Yn : 0;
|
|
226
|
+
ne(() => {
|
|
227
|
+
_.value && (r.value = _.value.getBoundingClientRect().width - E);
|
|
228
|
+
const U = ee(
|
|
229
|
+
_,
|
|
227
230
|
() => {
|
|
228
|
-
|
|
229
|
-
|
|
231
|
+
_.value && (ne(() => U()), u = De(_.value, ({ width: v }) => {
|
|
232
|
+
r.value = v - E;
|
|
230
233
|
}));
|
|
231
234
|
},
|
|
232
235
|
{ immediate: !0 }
|
|
233
236
|
);
|
|
234
|
-
}), (
|
|
235
|
-
|
|
236
|
-
}) :
|
|
237
|
-
}),
|
|
238
|
-
|
|
239
|
-
}),
|
|
240
|
-
var
|
|
241
|
-
|
|
242
|
-
|
|
237
|
+
}), (O = document == null ? void 0 : document.fonts) != null && O.ready ? document.fonts.ready.then(() => {
|
|
238
|
+
L();
|
|
239
|
+
}) : L();
|
|
240
|
+
}), lt(() => {
|
|
241
|
+
u == null || u.disconnect();
|
|
242
|
+
}), un(() => {
|
|
243
|
+
var E;
|
|
244
|
+
S.value && ((E = Object.keys(S.value)) == null ? void 0 : E.length) > 0 && Object.keys(S.value).forEach((U) => {
|
|
245
|
+
S.value[U] = [];
|
|
243
246
|
});
|
|
244
247
|
}), {
|
|
245
|
-
columnDefs:
|
|
246
|
-
gridColumnWidthStyle:
|
|
247
|
-
|
|
248
|
+
columnDefs: w,
|
|
249
|
+
gridColumnWidthStyle: A,
|
|
250
|
+
gridRowWidthStyle: F,
|
|
251
|
+
onColumnWidthOverride: i,
|
|
248
252
|
isMeasuringColumnWidths: c,
|
|
249
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
250
|
-
columns:
|
|
251
|
-
totalWidthOfAllColumns:
|
|
253
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: z,
|
|
254
|
+
columns: a,
|
|
255
|
+
totalWidthOfAllColumns: D,
|
|
256
|
+
rowActionsMaxWidth: p
|
|
252
257
|
};
|
|
253
|
-
},
|
|
254
|
-
const
|
|
258
|
+
}, Qn = (s, t, n, e, o) => {
|
|
259
|
+
const l = y(s.value ?? []), a = be({
|
|
255
260
|
allItemsSelected: !1,
|
|
256
261
|
isIndeterminate: !1
|
|
257
|
-
}),
|
|
258
|
-
() => n.value.flatMap((
|
|
259
|
-
var
|
|
260
|
-
return [
|
|
262
|
+
}), g = m(
|
|
263
|
+
() => n.value.flatMap((u) => {
|
|
264
|
+
var C;
|
|
265
|
+
return [u, ((C = u == null ? void 0 : u.children) == null ? void 0 : C.length) > 0 ? u == null ? void 0 : u.children : []];
|
|
261
266
|
}).flat()
|
|
262
|
-
),
|
|
263
|
-
t(
|
|
264
|
-
}, f = (
|
|
265
|
-
var h,
|
|
266
|
-
if (
|
|
267
|
-
|
|
268
|
-
const z = ((
|
|
269
|
-
|
|
267
|
+
), _ = () => {
|
|
268
|
+
t(b.SELECT, l.value), t(b.UPDATE_SELECTION, l.value);
|
|
269
|
+
}, f = (u) => {
|
|
270
|
+
var h, i, L, w, D;
|
|
271
|
+
if (l.value = u, ((h = n.value) == null ? void 0 : h.length) > 0 && ((i = g.value) == null ? void 0 : i.filter((z) => !o(z)).every((z) => l.value.includes(e(z))))) {
|
|
272
|
+
a.allItemsSelected = !0;
|
|
273
|
+
const z = ((L = n.value) == null ? void 0 : L.length) > 0 && n.value.every((F) => l.value.includes(e(F)));
|
|
274
|
+
a.isIndeterminate = !z;
|
|
270
275
|
} else
|
|
271
|
-
|
|
276
|
+
a.allItemsSelected = !1, a.isIndeterminate = ((w = l.value) == null ? void 0 : w.length) > 0 && ((D = n.value) == null ? void 0 : D.length) > 0 && n.value.some(
|
|
272
277
|
(z) => {
|
|
273
|
-
var
|
|
274
|
-
return
|
|
278
|
+
var F;
|
|
279
|
+
return l.value.includes(e(z)) || ((F = z == null ? void 0 : z.children) == null ? void 0 : F.some((A) => l.value.includes(e(A))));
|
|
275
280
|
}
|
|
276
281
|
);
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
var
|
|
280
|
-
if (
|
|
281
|
-
|
|
282
|
-
(
|
|
283
|
-
)) == null ? void 0 : h.map((
|
|
284
|
-
const
|
|
285
|
-
|
|
282
|
+
}, S = (u) => {
|
|
283
|
+
ne(() => {
|
|
284
|
+
var C, h, i;
|
|
285
|
+
if (a.allItemsSelected = u, u) {
|
|
286
|
+
l.value = (h = (C = g.value) == null ? void 0 : C.filter(
|
|
287
|
+
(w) => !o(w) && ((w == null ? void 0 : w.children) === void 0 || w.children.every((D) => !o(D)))
|
|
288
|
+
)) == null ? void 0 : h.map((w) => e(w));
|
|
289
|
+
const L = ((i = n.value) == null ? void 0 : i.length) > 0 && n.value.every((w) => l.value.includes(e(w)));
|
|
290
|
+
a.isIndeterminate = l.value.length > 0 && !L;
|
|
286
291
|
} else
|
|
287
|
-
|
|
288
|
-
|
|
292
|
+
l.value = [], a.isIndeterminate = !1;
|
|
293
|
+
_();
|
|
289
294
|
});
|
|
290
|
-
}, c = (
|
|
291
|
-
|
|
295
|
+
}, c = (u, C) => {
|
|
296
|
+
ne(() => {
|
|
292
297
|
var h;
|
|
293
|
-
f(((h =
|
|
298
|
+
f(((h = C == null ? void 0 : C.children) == null ? void 0 : h.length) > 0 ? p(u, C) : u), _();
|
|
294
299
|
});
|
|
295
|
-
},
|
|
296
|
-
var
|
|
297
|
-
const h = e(
|
|
298
|
-
if (
|
|
299
|
-
const
|
|
300
|
-
return
|
|
301
|
-
|
|
302
|
-
}),
|
|
300
|
+
}, p = (u, C) => {
|
|
301
|
+
var L;
|
|
302
|
+
const h = e(C), i = (L = C.children) == null ? void 0 : L.filter((w) => !o(w)).map((w) => e(w));
|
|
303
|
+
if (u.includes(h)) {
|
|
304
|
+
const w = u;
|
|
305
|
+
return i.forEach((D) => {
|
|
306
|
+
w.includes(D) || w.push(D);
|
|
307
|
+
}), w;
|
|
303
308
|
}
|
|
304
|
-
return
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
var
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
!
|
|
309
|
+
return u.filter((w) => !i.includes(w));
|
|
310
|
+
}, r = (u, C, h) => {
|
|
311
|
+
ne(() => {
|
|
312
|
+
var L, w;
|
|
313
|
+
const i = e(C);
|
|
314
|
+
u.includes(e(h)) ? f(
|
|
315
|
+
!u.includes(i) && ((L = C == null ? void 0 : C.children) != null && L.every((D) => u.includes(e(D)))) ? [...u, i] : u
|
|
311
316
|
) : f(
|
|
312
|
-
|
|
313
|
-
),
|
|
317
|
+
u.includes(i) && !((w = C == null ? void 0 : C.children) != null && w.every((D) => u.includes(e(D)))) ? u.filter((D) => D !== i) : u
|
|
318
|
+
), _();
|
|
314
319
|
});
|
|
315
320
|
};
|
|
316
|
-
return
|
|
321
|
+
return ee(
|
|
317
322
|
() => s.value,
|
|
318
323
|
() => {
|
|
319
324
|
f(s.value ?? []);
|
|
320
325
|
},
|
|
321
326
|
{ immediate: !0 }
|
|
322
|
-
),
|
|
327
|
+
), ee(
|
|
323
328
|
() => n.value,
|
|
324
329
|
() => {
|
|
325
|
-
const
|
|
326
|
-
(
|
|
330
|
+
const u = n.value.filter((C) => l.value.includes(e(C))).flatMap(
|
|
331
|
+
(C) => {
|
|
327
332
|
var h;
|
|
328
|
-
return ((h =
|
|
333
|
+
return ((h = C == null ? void 0 : C.children) == null ? void 0 : h.length) > 0 ? C.children.map((i) => e(i)).filter((i) => !l.value.includes(i)) : [];
|
|
329
334
|
}
|
|
330
335
|
);
|
|
331
|
-
(
|
|
336
|
+
(u == null ? void 0 : u.length) > 0 ? (f([...l.value, ...u]), _()) : f(l.value);
|
|
332
337
|
}
|
|
333
|
-
), { onAllRowSelect:
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
return (
|
|
337
|
-
}, sortByColumnField: (
|
|
338
|
+
), { onAllRowSelect: S, onRowSelect: c, onNestedRowSelect: r, allItemsSelectedState: a, selectedItems: l };
|
|
339
|
+
}, es = (s, t, n) => ({ isSorting: (a) => s.value.some((g) => g.field === a), getSortingDirection: (a) => {
|
|
340
|
+
var g;
|
|
341
|
+
return (g = s.value.find((_) => _.field === a)) == null ? void 0 : g.direction;
|
|
342
|
+
}, sortByColumnField: (a) => {
|
|
338
343
|
var f;
|
|
339
|
-
if (!t.value.some((
|
|
344
|
+
if (!t.value.some((S) => S.field === a && S.sortable))
|
|
340
345
|
return;
|
|
341
|
-
const
|
|
342
|
-
field:
|
|
343
|
-
direction: ((f = s.value.find((
|
|
346
|
+
const _ = [{
|
|
347
|
+
field: a,
|
|
348
|
+
direction: ((f = s.value.find((S) => S.field === a)) == null ? void 0 : f.direction) === ce.ASCENDING ? ce.DESCENDING : ce.ASCENDING
|
|
344
349
|
}];
|
|
345
|
-
n("sort",
|
|
350
|
+
n("sort", _);
|
|
346
351
|
} });
|
|
347
|
-
var
|
|
348
|
-
const
|
|
349
|
-
const e =
|
|
350
|
-
const
|
|
351
|
-
return n.value ?
|
|
352
|
-
}), o =
|
|
353
|
-
() => [...Object.values(s.value)].flat(1).sort((
|
|
354
|
-
const
|
|
355
|
-
return
|
|
352
|
+
var K = ((s) => (s[s.ARROW_DOWN = ae.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = ae.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = ae.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = ae.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = ae.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = ae.PAGE_DOWN] = "PAGE_DOWN", s[s.END = ae.END] = "END", s[s.HOME = ae.HOME] = "HOME", s))(K || {});
|
|
353
|
+
const ts = (s, t, n) => {
|
|
354
|
+
const e = m(() => {
|
|
355
|
+
const r = t.value.filter(({ visible: u }) => u !== !1);
|
|
356
|
+
return n.value ? r.length + 1 : r.length;
|
|
357
|
+
}), o = m(
|
|
358
|
+
() => [...Object.values(s.value)].flat(1).sort((r, u) => {
|
|
359
|
+
const C = Number(r.getAttribute("data-cellindex")), h = Number(u.getAttribute("data-cellindex"));
|
|
360
|
+
return C > h ? 1 : h > C ? -1 : 0;
|
|
356
361
|
})
|
|
357
|
-
),
|
|
358
|
-
const h = o.value.length - 1,
|
|
362
|
+
), l = (r) => Math.floor(r / e.value), a = (r, u, C) => {
|
|
363
|
+
const h = o.value.length - 1, i = e.value - 1, L = l(r), w = r - e.value * L;
|
|
359
364
|
return {
|
|
360
|
-
[
|
|
361
|
-
[
|
|
362
|
-
[
|
|
363
|
-
[
|
|
364
|
-
}[
|
|
365
|
-
},
|
|
365
|
+
[K.PAGE_UP]: w,
|
|
366
|
+
[K.PAGE_DOWN]: h - i + w,
|
|
367
|
+
[K.END]: C ? h : e.value * L + i,
|
|
368
|
+
[K.HOME]: C ? 0 : e.value * L
|
|
369
|
+
}[u];
|
|
370
|
+
}, g = (r, u) => {
|
|
366
371
|
const h = {
|
|
367
|
-
[
|
|
368
|
-
[
|
|
369
|
-
[
|
|
370
|
-
[
|
|
371
|
-
}[
|
|
372
|
-
return
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
].includes(
|
|
379
|
-
const h = o.value.indexOf(
|
|
380
|
-
return
|
|
381
|
-
},
|
|
382
|
-
if (!o.value.includes(
|
|
372
|
+
[K.ARROW_DOWN]: e.value,
|
|
373
|
+
[K.ARROW_UP]: -e.value,
|
|
374
|
+
[K.ARROW_LEFT]: -1,
|
|
375
|
+
[K.ARROW_RIGHT]: 1
|
|
376
|
+
}[u], i = r + h;
|
|
377
|
+
return i < 0 || i >= o.value.length ? r : i;
|
|
378
|
+
}, _ = (r) => [
|
|
379
|
+
K.PAGE_UP,
|
|
380
|
+
K.PAGE_DOWN,
|
|
381
|
+
K.END,
|
|
382
|
+
K.HOME
|
|
383
|
+
].includes(r), f = (r, u, C) => {
|
|
384
|
+
const h = o.value.indexOf(r);
|
|
385
|
+
return _(u) ? a(h, u, C) : g(h, u);
|
|
386
|
+
}, S = (r, u, C) => {
|
|
387
|
+
if (!o.value.includes(r))
|
|
383
388
|
return;
|
|
384
|
-
const h = f(
|
|
389
|
+
const h = f(r, u, C);
|
|
385
390
|
o.value[h].focus();
|
|
386
|
-
}, c = (
|
|
391
|
+
}, c = (r) => r in K;
|
|
387
392
|
return {
|
|
388
393
|
isNavigationKeyCode: c,
|
|
389
|
-
focusOnNextGridcell:
|
|
390
|
-
navigationInput: (
|
|
391
|
-
const { ctrlKey:
|
|
392
|
-
Object.values(s.value).flat(1).includes(h) && c(
|
|
394
|
+
focusOnNextGridcell: S,
|
|
395
|
+
navigationInput: (r) => {
|
|
396
|
+
const { ctrlKey: u, keyCode: C, target: h } = r;
|
|
397
|
+
Object.values(s.value).flat(1).includes(h) && c(C) && S(h, C, u);
|
|
393
398
|
}
|
|
394
399
|
};
|
|
395
|
-
},
|
|
396
|
-
const
|
|
397
|
-
o(
|
|
400
|
+
}, ns = 90, ss = (s, t, n, e, o) => {
|
|
401
|
+
const l = y(s), a = y(t), g = y(n), _ = y(e), f = m(() => l.value !== "none"), S = m(() => l.value === "automatic"), c = () => {
|
|
402
|
+
o(b.UPDATE_SHOW_MORE);
|
|
398
403
|
};
|
|
399
|
-
return
|
|
400
|
-
() =>
|
|
404
|
+
return ee(
|
|
405
|
+
() => a.value,
|
|
401
406
|
() => {
|
|
402
|
-
|
|
407
|
+
S.value && g.value.offsetHeight / a.value * 100 > ns && !_.value && c();
|
|
403
408
|
}
|
|
404
|
-
), { isLazyLoad: f, isInfiniteScroll:
|
|
405
|
-
},
|
|
406
|
-
const e =
|
|
409
|
+
), { isLazyLoad: f, isInfiniteScroll: S, verticalScrollPosition: a, emitLazyLoadEvent: c };
|
|
410
|
+
}, os = (s, t, n) => {
|
|
411
|
+
const e = y(s), o = y(t), l = be({
|
|
407
412
|
dragging: null,
|
|
408
413
|
dragToLeft: null,
|
|
409
414
|
target: null
|
|
410
|
-
}),
|
|
411
|
-
const
|
|
415
|
+
}), a = (r, u = 0) => {
|
|
416
|
+
const C = e.value.findIndex((L) => L.field === r.field), h = C + u;
|
|
412
417
|
if (h < 0 || h > e.value.length - 1)
|
|
413
418
|
return;
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
},
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
}, f = (
|
|
423
|
-
var
|
|
424
|
-
if (((
|
|
425
|
-
const h = e.value.findIndex((
|
|
426
|
-
var
|
|
427
|
-
return
|
|
428
|
-
}),
|
|
429
|
-
let
|
|
430
|
-
|
|
431
|
-
|
|
419
|
+
const i = [...e.value];
|
|
420
|
+
i.splice(h, 0, i.splice(C, 1)[0]), n(b.COLUMNS, i), n(b.UPDATE_COLUMNS, i);
|
|
421
|
+
}, g = (r, u) => {
|
|
422
|
+
l.dragging = r, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
423
|
+
}, _ = (r, u) => {
|
|
424
|
+
l.target = r;
|
|
425
|
+
const C = u.currentTarget.getBoundingClientRect(), h = C.left + C.width / 2, i = u.clientX ?? 0;
|
|
426
|
+
l.dragToLeft = i <= h;
|
|
427
|
+
}, f = (r) => {
|
|
428
|
+
var u, C;
|
|
429
|
+
if (((u = l.dragging) == null ? void 0 : u.field) !== r.field) {
|
|
430
|
+
const h = e.value.findIndex((F) => {
|
|
431
|
+
var A;
|
|
432
|
+
return F.field === ((A = l.dragging) == null ? void 0 : A.field);
|
|
433
|
+
}), i = e.value.findIndex((F) => F.field === r.field), L = l.dragToLeft ? i : i + 1, w = L > h ? L - 1 : L;
|
|
434
|
+
let D = [...e.value];
|
|
435
|
+
D.splice(
|
|
436
|
+
w === -1 ? 0 : w,
|
|
432
437
|
0,
|
|
433
|
-
|
|
438
|
+
D.splice(h, 1)[0]
|
|
434
439
|
);
|
|
435
|
-
const z = e.value.findIndex((
|
|
436
|
-
((
|
|
437
|
-
(
|
|
438
|
-
var
|
|
439
|
-
return ((
|
|
440
|
+
const z = e.value.findIndex((F) => !(F != null && F.frozen));
|
|
441
|
+
((C = l.dragging) == null ? void 0 : C.frozen) !== r.frozen && L !== z && (D = D.map(
|
|
442
|
+
(F) => {
|
|
443
|
+
var A;
|
|
444
|
+
return ((A = l.dragging) == null ? void 0 : A.field) === F.field ? { ...F, frozen: !!(r != null && r.frozen) } : F;
|
|
440
445
|
}
|
|
441
|
-
)), n(
|
|
446
|
+
)), n(b.COLUMNS, D), n(b.UPDATE_COLUMNS, D);
|
|
442
447
|
}
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
}, c =
|
|
447
|
-
[
|
|
448
|
-
[
|
|
449
|
-
[
|
|
450
|
-
[
|
|
451
|
-
} : {}),
|
|
452
|
-
dragenter: (
|
|
453
|
-
|
|
448
|
+
l.dragging = null, l.target = null;
|
|
449
|
+
}, S = () => {
|
|
450
|
+
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
451
|
+
}, c = m(() => o.value ? {
|
|
452
|
+
[H.COLUMN_DRAG_START]: (r, u) => g(r, u),
|
|
453
|
+
[H.COLUMN_DRAG_ENTER]: (r, u) => _(r, u),
|
|
454
|
+
[H.COLUMN_DROP]: (r) => f(r),
|
|
455
|
+
[H.COLUMN_DRAG_END]: () => S()
|
|
456
|
+
} : {}), p = m(() => (r) => o.value ? {
|
|
457
|
+
dragenter: (u) => {
|
|
458
|
+
u.preventDefault(), _(r, u);
|
|
454
459
|
},
|
|
455
460
|
drop: () => {
|
|
456
|
-
f(
|
|
461
|
+
f(r);
|
|
457
462
|
},
|
|
458
|
-
dragover: (
|
|
459
|
-
|
|
463
|
+
dragover: (u) => {
|
|
464
|
+
u.preventDefault();
|
|
460
465
|
}
|
|
461
466
|
} : {});
|
|
462
467
|
return {
|
|
463
468
|
// Values
|
|
464
|
-
draggingColumns:
|
|
469
|
+
draggingColumns: l,
|
|
465
470
|
// Methods
|
|
466
471
|
draggingEventsForColumns: c,
|
|
467
|
-
draggingEventsForRowCell:
|
|
468
|
-
onMoveColumnByOffset:
|
|
472
|
+
draggingEventsForRowCell: p,
|
|
473
|
+
onMoveColumnByOffset: a
|
|
469
474
|
};
|
|
470
|
-
},
|
|
471
|
-
const n =
|
|
472
|
-
() => [...n.value].sort((c,
|
|
473
|
-
), o =
|
|
475
|
+
}, ls = (s, t) => {
|
|
476
|
+
const n = y(s), e = m(
|
|
477
|
+
() => [...n.value].sort((c, p) => c.frozen === p.frozen ? 0 : c.frozen ? -1 : 1)
|
|
478
|
+
), o = m(
|
|
474
479
|
() => e.value.filter((c) => c.frozen && c.visible !== !1)
|
|
475
|
-
),
|
|
480
|
+
), l = m(
|
|
476
481
|
() => e.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
477
|
-
),
|
|
482
|
+
), a = m(
|
|
478
483
|
() => [
|
|
479
484
|
{ columnSet: o.value, id: "frozen", isFrozenColumns: !0 },
|
|
480
|
-
{ columnSet:
|
|
485
|
+
{ columnSet: l.value, id: "unfrozen" }
|
|
481
486
|
].filter(({ columnSet: c }) => c.length)
|
|
482
|
-
),
|
|
483
|
-
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !==
|
|
484
|
-
),
|
|
485
|
-
t(
|
|
487
|
+
), g = m(
|
|
488
|
+
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== Q).length === 1
|
|
489
|
+
), _ = (c) => t(b.UPDATE_CONDENSED, c), f = (c) => {
|
|
490
|
+
t(b.COLUMNS, c), t(b.UPDATE_COLUMNS, c);
|
|
486
491
|
};
|
|
487
492
|
return {
|
|
488
493
|
// Values
|
|
489
|
-
columnSets:
|
|
490
|
-
isOnlyOneVisibleColumn:
|
|
494
|
+
columnSets: a,
|
|
495
|
+
isOnlyOneVisibleColumn: g,
|
|
491
496
|
sortedColumns: e,
|
|
492
497
|
// Methods
|
|
493
|
-
onConfigSettingsUpdate:
|
|
498
|
+
onConfigSettingsUpdate: _,
|
|
494
499
|
onConfigSettingsColumnsUpdate: f,
|
|
495
500
|
onConfigSettingsColumnUpdate: (c) => {
|
|
496
|
-
const
|
|
497
|
-
(
|
|
501
|
+
const p = e.value.map(
|
|
502
|
+
(r) => (r == null ? void 0 : r.field) === c.field ? c : r
|
|
498
503
|
);
|
|
499
|
-
f(
|
|
504
|
+
f(p);
|
|
500
505
|
}
|
|
501
506
|
};
|
|
502
|
-
},
|
|
503
|
-
const n =
|
|
504
|
-
let e = null;
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
+
}, Ye = (s, t) => {
|
|
508
|
+
const n = y(0);
|
|
509
|
+
let e = null, o = null;
|
|
510
|
+
const l = () => {
|
|
511
|
+
const a = s.value;
|
|
512
|
+
if (a && t.value) {
|
|
513
|
+
const g = window.getComputedStyle(a);
|
|
514
|
+
let _ = a.offsetHeight;
|
|
515
|
+
const f = window.getComputedStyle(a, "::after");
|
|
516
|
+
if (f.content !== "none" && f.position === "absolute") {
|
|
517
|
+
const p = parseFloat(f.height), r = parseFloat(f.bottom);
|
|
518
|
+
!isNaN(p) && !isNaN(r) && r < 0 && r + p <= 0 && (_ += p);
|
|
519
|
+
}
|
|
520
|
+
const S = window.getComputedStyle(a, "::before");
|
|
521
|
+
if (S.content !== "none" && S.position === "absolute") {
|
|
522
|
+
const p = parseFloat(S.height), r = parseFloat(S.top);
|
|
523
|
+
!isNaN(p) && !isNaN(r) && r < 0 && r + p <= 0 && (_ += p);
|
|
524
|
+
}
|
|
525
|
+
const c = parseFloat(g.top);
|
|
526
|
+
!isNaN(c) && c < 0 && (_ += c), n.value = _;
|
|
527
|
+
} else
|
|
528
|
+
n.value = 0;
|
|
507
529
|
};
|
|
508
|
-
return
|
|
509
|
-
|
|
510
|
-
const a =
|
|
530
|
+
return Oe(() => {
|
|
531
|
+
ne(() => {
|
|
532
|
+
const a = ee(
|
|
511
533
|
s,
|
|
512
534
|
() => {
|
|
513
|
-
s != null && s.value && (
|
|
514
|
-
o();
|
|
515
|
-
}));
|
|
535
|
+
s != null && s.value && (ne(() => a()), e = De(s.value, l), o = new MutationObserver(l), o.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
516
536
|
},
|
|
517
537
|
{ immediate: !0 }
|
|
518
538
|
);
|
|
519
|
-
|
|
539
|
+
ee(
|
|
520
540
|
t,
|
|
521
541
|
() => {
|
|
522
|
-
|
|
542
|
+
l();
|
|
523
543
|
},
|
|
524
544
|
{ immediate: !0 }
|
|
525
545
|
);
|
|
526
546
|
});
|
|
527
|
-
}),
|
|
528
|
-
e == null || e.disconnect();
|
|
547
|
+
}), lt(() => {
|
|
548
|
+
e == null || e.disconnect(), o == null || o.disconnect();
|
|
529
549
|
}), n;
|
|
530
|
-
},
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
() =>
|
|
550
|
+
}, as = (s, t, n, e, o) => {
|
|
551
|
+
const l = y(0), a = y(!1), g = y(!1);
|
|
552
|
+
ee(
|
|
553
|
+
() => l.value,
|
|
534
554
|
() => {
|
|
535
|
-
s.value.scrollLeft =
|
|
555
|
+
s.value.scrollLeft = l.value, t.value.scrollLeft = l.value, a.value = !!l.value, g.value = t.value.scrollWidth - t.value.offsetWidth > l.value;
|
|
536
556
|
}
|
|
537
|
-
),
|
|
538
|
-
var
|
|
539
|
-
await
|
|
557
|
+
), Oe(async () => {
|
|
558
|
+
var p, r;
|
|
559
|
+
await ne(), ((p = t.value) == null ? void 0 : p.offsetWidth) < ((r = t.value) == null ? void 0 : r.scrollWidth) && (g.value = !0);
|
|
540
560
|
});
|
|
541
|
-
const
|
|
542
|
-
if (
|
|
543
|
-
const
|
|
544
|
-
e.value.scrollLeft !==
|
|
561
|
+
const _ = (p) => {
|
|
562
|
+
if (l.value = p.target.scrollLeft, n.value = s.value.scrollHeight - p.target.scrollTop, e != null && e.value) {
|
|
563
|
+
const r = p.target.scrollLeft;
|
|
564
|
+
e.value.scrollLeft !== r && (e.value.scrollLeft = r);
|
|
545
565
|
}
|
|
546
|
-
}, f = (
|
|
547
|
-
|
|
566
|
+
}, f = (p) => {
|
|
567
|
+
p.key !== "Tab" && p.key !== "ArrowRight" && p.key !== "ArrowLeft" || (p.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
548
568
|
s.value.style.overflowX = "auto";
|
|
549
569
|
}));
|
|
550
|
-
},
|
|
551
|
-
const
|
|
552
|
-
s.value.scrollLeft !==
|
|
553
|
-
}, c =
|
|
554
|
-
var
|
|
570
|
+
}, S = (p) => {
|
|
571
|
+
const r = p.target.scrollLeft;
|
|
572
|
+
s.value.scrollLeft !== r && (s.value.scrollLeft = r);
|
|
573
|
+
}, c = m(() => {
|
|
574
|
+
var p, r, u;
|
|
555
575
|
return {
|
|
556
|
-
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((
|
|
576
|
+
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((p = o == null ? void 0 : o.pagination) == null ? void 0 : p.value) && (((r = o == null ? void 0 : o.stickyPagination) == null ? void 0 : r.value) || (o == null ? void 0 : o.isDataGridTemplate)) && !((u = o == null ? void 0 : o.isLazyLoad) != null && u.value)
|
|
557
577
|
};
|
|
558
578
|
});
|
|
559
579
|
return {
|
|
560
580
|
// Values
|
|
561
|
-
scrollLeftPosition:
|
|
562
|
-
hasLeftOverflow:
|
|
563
|
-
hasRightOverflow:
|
|
581
|
+
scrollLeftPosition: l,
|
|
582
|
+
hasLeftOverflow: a,
|
|
583
|
+
hasRightOverflow: g,
|
|
564
584
|
horizontalScrollbarConditionalClasses: c,
|
|
565
585
|
// Methods
|
|
566
|
-
updateScrollPosition:
|
|
586
|
+
updateScrollPosition: _,
|
|
567
587
|
updateScrollPositionOnFrozenColumnsNavigation: f,
|
|
568
|
-
syncVirtualScrollerWithBody:
|
|
588
|
+
syncVirtualScrollerWithBody: S
|
|
569
589
|
};
|
|
570
|
-
},
|
|
571
|
-
const o =
|
|
572
|
-
var
|
|
573
|
-
if (!o.value || o.value.field ===
|
|
590
|
+
}, is = (s, t, n, e) => {
|
|
591
|
+
const o = y(null), l = m(() => {
|
|
592
|
+
var C, h, i, L;
|
|
593
|
+
if (!o.value || o.value.field === Q)
|
|
574
594
|
return {
|
|
575
595
|
hoveredOverColumnField: "",
|
|
576
596
|
isSeparatorOffset: !1,
|
|
577
597
|
noBorderLeft: !1,
|
|
578
598
|
noBorderRight: !1
|
|
579
599
|
};
|
|
580
|
-
const
|
|
600
|
+
const a = (h = (C = s.value.find((w) => w.isFrozenColumns)) == null ? void 0 : C.columnSet) == null ? void 0 : h.filter((w) => w.field !== Q), g = s.value.find((w) => !(w != null && w.isFrozenColumns)), _ = 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, S = (t.value || n.value) && _, c = (t.value || n.value) && !a && f, p = a && f, r = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, u = n.value && e.value && !o.value.frozen && ((L = g == null ? void 0 : g.columnSet) == null ? void 0 : L[g.columnSet.length - 1].field) === o.value.field;
|
|
581
601
|
return {
|
|
582
602
|
hoveredOverColumnField: o.value.field,
|
|
583
|
-
isSeparatorOffset:
|
|
584
|
-
noBorderLeft: !!
|
|
585
|
-
noBorderRight: !!
|
|
603
|
+
isSeparatorOffset: u,
|
|
604
|
+
noBorderLeft: !!S || !!c || !!p,
|
|
605
|
+
noBorderRight: !!r || !!u
|
|
586
606
|
};
|
|
587
607
|
});
|
|
588
608
|
return {
|
|
589
609
|
hoveredOverColumn: o,
|
|
590
|
-
hoveredOverColumnState:
|
|
610
|
+
hoveredOverColumnState: l
|
|
591
611
|
};
|
|
592
612
|
};
|
|
593
|
-
let
|
|
594
|
-
const ss = {
|
|
595
|
-
beforeCreate() {
|
|
596
|
-
this.uuid = qe.toString(), qe += 1;
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
var os = function() {
|
|
600
|
-
var t = this, n = t._self._c;
|
|
601
|
-
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" } })])])]);
|
|
602
|
-
}, ls = [], as = /* @__PURE__ */ V(
|
|
603
|
-
ss,
|
|
604
|
-
os,
|
|
605
|
-
ls,
|
|
606
|
-
!1,
|
|
607
|
-
null,
|
|
608
|
-
null
|
|
609
|
-
);
|
|
610
|
-
const is = as.exports;
|
|
611
|
-
let Ye = 0;
|
|
613
|
+
let Xe = 0;
|
|
612
614
|
const rs = {
|
|
613
615
|
beforeCreate() {
|
|
614
|
-
this.uuid =
|
|
616
|
+
this.uuid = Xe.toString(), Xe += 1;
|
|
615
617
|
}
|
|
616
618
|
};
|
|
617
619
|
var ds = function() {
|
|
618
620
|
var t = this, n = t._self._c;
|
|
619
|
-
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("
|
|
620
|
-
}, cs = [], us = /* @__PURE__ */
|
|
621
|
+
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" } })])])]);
|
|
622
|
+
}, cs = [], us = /* @__PURE__ */ Y(
|
|
621
623
|
rs,
|
|
622
624
|
ds,
|
|
623
625
|
cs,
|
|
@@ -626,16 +628,16 @@ var ds = function() {
|
|
|
626
628
|
null
|
|
627
629
|
);
|
|
628
630
|
const fs = us.exports;
|
|
629
|
-
let
|
|
631
|
+
let Ke = 0;
|
|
630
632
|
const gs = {
|
|
631
633
|
beforeCreate() {
|
|
632
|
-
this.uuid =
|
|
634
|
+
this.uuid = Ke.toString(), Ke += 1;
|
|
633
635
|
}
|
|
634
636
|
};
|
|
635
637
|
var _s = function() {
|
|
636
638
|
var t = this, n = t._self._c;
|
|
637
|
-
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("
|
|
638
|
-
}, vs = [], Cs = /* @__PURE__ */
|
|
639
|
+
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" } })]);
|
|
640
|
+
}, vs = [], Cs = /* @__PURE__ */ Y(
|
|
639
641
|
gs,
|
|
640
642
|
_s,
|
|
641
643
|
vs,
|
|
@@ -643,61 +645,79 @@ var _s = function() {
|
|
|
643
645
|
null,
|
|
644
646
|
null
|
|
645
647
|
);
|
|
646
|
-
const
|
|
648
|
+
const hs = Cs.exports;
|
|
647
649
|
let Je = 0;
|
|
648
|
-
const
|
|
650
|
+
const ms = {
|
|
649
651
|
beforeCreate() {
|
|
650
652
|
this.uuid = Je.toString(), Je += 1;
|
|
651
653
|
}
|
|
652
654
|
};
|
|
653
|
-
var
|
|
655
|
+
var ps = function() {
|
|
654
656
|
var t = this, n = t._self._c;
|
|
655
|
-
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: {
|
|
656
|
-
},
|
|
657
|
-
hs,
|
|
657
|
+
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)" } })])])]);
|
|
658
|
+
}, ws = [], Ss = /* @__PURE__ */ Y(
|
|
658
659
|
ms,
|
|
659
660
|
ps,
|
|
661
|
+
ws,
|
|
660
662
|
!1,
|
|
661
663
|
null,
|
|
662
664
|
null
|
|
663
665
|
);
|
|
664
|
-
const
|
|
665
|
-
let
|
|
666
|
-
const
|
|
666
|
+
const _t = Ss.exports;
|
|
667
|
+
let Qe = 0;
|
|
668
|
+
const Ls = {
|
|
667
669
|
beforeCreate() {
|
|
668
|
-
this.uuid =
|
|
670
|
+
this.uuid = Qe.toString(), Qe += 1;
|
|
669
671
|
}
|
|
670
672
|
};
|
|
671
673
|
var Es = function() {
|
|
672
674
|
var t = this, n = t._self._c;
|
|
673
|
-
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-
|
|
674
|
-
},
|
|
675
|
-
|
|
675
|
+
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" } })])])]);
|
|
676
|
+
}, Rs = [], ys = /* @__PURE__ */ Y(
|
|
677
|
+
Ls,
|
|
676
678
|
Es,
|
|
677
|
-
|
|
679
|
+
Rs,
|
|
678
680
|
!1,
|
|
679
681
|
null,
|
|
680
682
|
null
|
|
681
683
|
);
|
|
682
|
-
const bs =
|
|
683
|
-
let
|
|
684
|
-
const
|
|
684
|
+
const bs = ys.exports;
|
|
685
|
+
let et = 0;
|
|
686
|
+
const As = {
|
|
685
687
|
beforeCreate() {
|
|
686
|
-
this.uuid =
|
|
688
|
+
this.uuid = et.toString(), et += 1;
|
|
687
689
|
}
|
|
688
690
|
};
|
|
689
|
-
var
|
|
691
|
+
var Os = function() {
|
|
690
692
|
var t = this, n = t._self._c;
|
|
691
|
-
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("
|
|
692
|
-
},
|
|
693
|
-
Os,
|
|
693
|
+
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" } })])])]);
|
|
694
|
+
}, Ns = [], Ts = /* @__PURE__ */ Y(
|
|
694
695
|
As,
|
|
695
|
-
|
|
696
|
+
Os,
|
|
697
|
+
Ns,
|
|
698
|
+
!1,
|
|
699
|
+
null,
|
|
700
|
+
null
|
|
701
|
+
);
|
|
702
|
+
const Is = Ts.exports;
|
|
703
|
+
let tt = 0;
|
|
704
|
+
const Ds = {
|
|
705
|
+
beforeCreate() {
|
|
706
|
+
this.uuid = tt.toString(), tt += 1;
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
var xs = function() {
|
|
710
|
+
var t = this, n = t._self._c;
|
|
711
|
+
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" } })]);
|
|
712
|
+
}, Fs = [], Ms = /* @__PURE__ */ Y(
|
|
713
|
+
Ds,
|
|
714
|
+
xs,
|
|
715
|
+
Fs,
|
|
696
716
|
!1,
|
|
697
717
|
null,
|
|
698
718
|
null
|
|
699
719
|
);
|
|
700
|
-
const
|
|
720
|
+
const Bs = Ms.exports, Ps = {
|
|
701
721
|
"en-US": {
|
|
702
722
|
columnActions: "{name} column actions",
|
|
703
723
|
freezeColumn: "Freeze column",
|
|
@@ -729,11 +749,11 @@ const Is = Ns.exports, Ds = {
|
|
|
729
749
|
selectAll: "Selecionar tudo",
|
|
730
750
|
unfreezeColumn: "Descongelar coluna"
|
|
731
751
|
}
|
|
732
|
-
},
|
|
733
|
-
i18n: { messages:
|
|
752
|
+
}, $s = {
|
|
753
|
+
i18n: { messages: Ps },
|
|
734
754
|
name: "data-grid-columns"
|
|
735
|
-
},
|
|
736
|
-
|
|
755
|
+
}, zs = /* @__PURE__ */ oe({
|
|
756
|
+
...$s,
|
|
737
757
|
props: {
|
|
738
758
|
/**
|
|
739
759
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -859,198 +879,198 @@ const Is = Ns.exports, Ds = {
|
|
|
859
879
|
},
|
|
860
880
|
emits: ["sort", "column-hover"],
|
|
861
881
|
setup(s, { expose: t, emit: n }) {
|
|
862
|
-
const e = s, o = 100, { t:
|
|
882
|
+
const e = s, o = 100, { t: l } = ue(), { columns: a, sortBy: g } = Ae(e), _ = y({}), f = y({}), S = y(), c = y(), p = (d) => n(H.SELECT_ALL_ROWS, d), r = (d) => d.field === Q, u = m(() => [
|
|
863
883
|
{
|
|
864
|
-
text:
|
|
865
|
-
handler: () =>
|
|
884
|
+
text: l("selectPage"),
|
|
885
|
+
handler: () => p(!0)
|
|
866
886
|
},
|
|
867
887
|
{
|
|
868
|
-
text:
|
|
869
|
-
handler: () => n(
|
|
888
|
+
text: l("selectAll"),
|
|
889
|
+
handler: () => n(H.SELECT_ALL_ACROSS_PAGES)
|
|
870
890
|
}
|
|
871
|
-
]), { startResize:
|
|
872
|
-
var
|
|
873
|
-
if (!
|
|
891
|
+
]), { startResize: C, isResizing: h, columnHoverEventToEmitAfterResizing: i } = kn(a, n), { isSorting: L, getSortingDirection: w, sortByColumnField: D } = es(g, a, n), z = (d) => {
|
|
892
|
+
var x;
|
|
893
|
+
if (!d.sortable)
|
|
874
894
|
return null;
|
|
875
|
-
const
|
|
876
|
-
return
|
|
877
|
-
[
|
|
878
|
-
[
|
|
879
|
-
}[
|
|
880
|
-
},
|
|
881
|
-
dragstart: (
|
|
882
|
-
n(
|
|
895
|
+
const P = (x = e.sortBy.find(({ field: G }) => G === d.field)) == null ? void 0 : x.direction;
|
|
896
|
+
return P ? {
|
|
897
|
+
[ce.ASCENDING]: Ce.ASCENDING,
|
|
898
|
+
[ce.DESCENDING]: Ce.DESCENDING
|
|
899
|
+
}[P] : Ce.NONE;
|
|
900
|
+
}, F = m(() => (d) => e.hasDraggableColumns ? {
|
|
901
|
+
dragstart: (P) => {
|
|
902
|
+
n(H.COLUMN_DRAG_START, d, P);
|
|
883
903
|
},
|
|
884
|
-
dragover: (
|
|
885
|
-
|
|
904
|
+
dragover: (P) => {
|
|
905
|
+
P.preventDefault();
|
|
886
906
|
},
|
|
887
|
-
dragenter: (
|
|
888
|
-
|
|
907
|
+
dragenter: (P) => {
|
|
908
|
+
P.preventDefault(), n(H.COLUMN_DRAG_ENTER, d, P);
|
|
889
909
|
},
|
|
890
910
|
drop: () => {
|
|
891
|
-
n(
|
|
911
|
+
n(H.COLUMN_DROP, d);
|
|
892
912
|
},
|
|
893
913
|
dragend: () => {
|
|
894
|
-
n(
|
|
914
|
+
n(H.COLUMN_DRAG_END);
|
|
895
915
|
}
|
|
896
|
-
} : {}),
|
|
916
|
+
} : {}), A = m(() => (d) => [
|
|
897
917
|
{
|
|
898
|
-
text:
|
|
899
|
-
handler: () => n(
|
|
900
|
-
icon:
|
|
901
|
-
disabled: e.columns[0].field ===
|
|
918
|
+
text: l("moveColumnLeft"),
|
|
919
|
+
handler: () => n(H.COLUMN_MOVE, d, -1),
|
|
920
|
+
icon: Fn,
|
|
921
|
+
disabled: e.columns[0].field === d.field
|
|
902
922
|
},
|
|
903
923
|
{
|
|
904
|
-
text:
|
|
905
|
-
handler: () => n(
|
|
906
|
-
icon:
|
|
907
|
-
disabled: e.columns[e.columns.length - 1].field ===
|
|
924
|
+
text: l("moveColumnRight"),
|
|
925
|
+
handler: () => n(H.COLUMN_MOVE, d, 1),
|
|
926
|
+
icon: hs,
|
|
927
|
+
disabled: e.columns[e.columns.length - 1].field === d.field
|
|
908
928
|
},
|
|
909
929
|
{
|
|
910
|
-
text:
|
|
911
|
-
handler: () => n(
|
|
912
|
-
icon:
|
|
930
|
+
text: d != null && d.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
931
|
+
handler: () => n(H.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
|
|
932
|
+
icon: _t
|
|
913
933
|
},
|
|
914
934
|
{
|
|
915
|
-
text: (
|
|
935
|
+
text: (d == null ? void 0 : d.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
916
936
|
handler: () => {
|
|
917
|
-
n(
|
|
918
|
-
...
|
|
919
|
-
visible: (
|
|
937
|
+
n(H.COLUMN_UPDATE, {
|
|
938
|
+
...d,
|
|
939
|
+
visible: (d == null ? void 0 : d.visible) === !1
|
|
920
940
|
});
|
|
921
941
|
},
|
|
922
|
-
icon: (
|
|
923
|
-
disabled: (
|
|
942
|
+
icon: (d == null ? void 0 : d.visible) !== !1 ? Mn : Bn,
|
|
943
|
+
disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
924
944
|
}
|
|
925
|
-
]),
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
const
|
|
929
|
-
|
|
945
|
+
]), E = (d) => {
|
|
946
|
+
S.value = d.field, c.value && clearTimeout(c.value);
|
|
947
|
+
}, O = () => {
|
|
948
|
+
const d = setTimeout(() => {
|
|
949
|
+
S.value = "";
|
|
930
950
|
}, o);
|
|
931
|
-
c.value =
|
|
932
|
-
},
|
|
933
|
-
let
|
|
951
|
+
c.value = d;
|
|
952
|
+
}, U = (d) => {
|
|
953
|
+
let P = {
|
|
934
954
|
mouseenter: () => {
|
|
935
|
-
|
|
955
|
+
E(d), h.value ? i.value = d : n("column-hover", d);
|
|
936
956
|
},
|
|
937
957
|
mouseleave: () => {
|
|
938
|
-
|
|
958
|
+
O(), h.value ? i.value = null : n("column-hover", null);
|
|
939
959
|
},
|
|
940
|
-
focus: () =>
|
|
960
|
+
focus: () => E(d)
|
|
941
961
|
};
|
|
942
|
-
return
|
|
943
|
-
...
|
|
944
|
-
...
|
|
945
|
-
}),
|
|
946
|
-
},
|
|
947
|
-
var
|
|
948
|
-
((
|
|
949
|
-
},
|
|
950
|
-
var
|
|
951
|
-
const
|
|
962
|
+
return r(d) || (P = {
|
|
963
|
+
...P,
|
|
964
|
+
...F.value(d)
|
|
965
|
+
}), P;
|
|
966
|
+
}, v = (d) => d.infoIconTooltip || d.sortable || e.hasColumnPanel, M = (d, P) => {
|
|
967
|
+
var R;
|
|
968
|
+
((R = _.value) == null ? void 0 : R[P]) === void 0 && (_.value = { ..._.value, [P]: null }), d !== null && (_.value[P] = d);
|
|
969
|
+
}, N = m(() => {
|
|
970
|
+
var P;
|
|
971
|
+
const d = {
|
|
952
972
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
953
973
|
};
|
|
954
|
-
return (
|
|
955
|
-
...
|
|
974
|
+
return (P = a.value[0]) != null && P.frozen ? {
|
|
975
|
+
...d,
|
|
956
976
|
"b-data-grid-columns--frozen": !0,
|
|
957
977
|
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
958
978
|
"b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
|
|
959
979
|
} : {
|
|
960
|
-
...
|
|
980
|
+
...d,
|
|
961
981
|
"b-data-grid-columns--unfrozen": !0
|
|
962
982
|
};
|
|
963
|
-
}),
|
|
964
|
-
var
|
|
983
|
+
}), I = (d, P) => d && P === 0 ? Ve.BOTTOM_START : Ve.BOTTOM_END, V = (d, P) => {
|
|
984
|
+
var R, x, G, J, se, le, te, j, fe, ve;
|
|
965
985
|
return {
|
|
966
|
-
"b-data-grid-columns__column--column-hovered":
|
|
967
|
-
"b-data-grid-columns__column--column-hovered-no-border-left":
|
|
968
|
-
"b-data-grid-columns__column--column-hovered-no-border-right":
|
|
969
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns &&
|
|
970
|
-
"b-data-grid-columns__column--sortable":
|
|
971
|
-
"b-data-grid-columns__column--padding-left-unset": ((
|
|
972
|
-
"b-data-grid-columns__column--padding-right-unset": ((
|
|
973
|
-
"b-data-grid-columns__column--numeric":
|
|
974
|
-
"b-data-grid-columns__column--frozen":
|
|
975
|
-
"b-data-grid-columns__column--is-re-ordering": (
|
|
976
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (
|
|
977
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (
|
|
978
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel":
|
|
986
|
+
"b-data-grid-columns__column--column-hovered": d.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
987
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": d.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
988
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": d.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
989
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && P === a.value.length - 1,
|
|
990
|
+
"b-data-grid-columns__column--sortable": d.sortable,
|
|
991
|
+
"b-data-grid-columns__column--padding-left-unset": ((R = d == null ? void 0 : d.padding) == null ? void 0 : R.left) === !1,
|
|
992
|
+
"b-data-grid-columns__column--padding-right-unset": ((x = d == null ? void 0 : d.padding) == null ? void 0 : x.right) === !1,
|
|
993
|
+
"b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
|
|
994
|
+
"b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
|
|
995
|
+
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((J = (G = e.draggingColumns) == null ? void 0 : G.dragging) == null ? void 0 : J.field),
|
|
996
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((le = (se = e.draggingColumns) == null ? void 0 : se.target) == null ? void 0 : le.field) && ((te = e.draggingColumns) == null ? void 0 : te.dragToLeft),
|
|
997
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((fe = (j = e.draggingColumns) == null ? void 0 : j.target) == null ? void 0 : fe.field) && !((ve = e.draggingColumns) != null && ve.dragToLeft),
|
|
998
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || e.hasColumnPanel && S.value === d.field || e.selectableAcrossPages
|
|
979
999
|
};
|
|
980
|
-
},
|
|
981
|
-
"b-data-grid-columns__column-header-and-actions--numeric":
|
|
982
|
-
}),
|
|
983
|
-
"b-data-grid-columns__column-actions--numeric":
|
|
984
|
-
}),
|
|
1000
|
+
}, k = (d) => ({
|
|
1001
|
+
"b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
|
|
1002
|
+
}), Z = (d) => ({
|
|
1003
|
+
"b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
|
|
1004
|
+
}), $ = (d) => ({
|
|
985
1005
|
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
986
|
-
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField ===
|
|
987
|
-
}),
|
|
1006
|
+
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === d.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1007
|
+
}), B = m(() => ({
|
|
988
1008
|
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
989
1009
|
}));
|
|
990
1010
|
return t({
|
|
991
|
-
columnHeaderRefs:
|
|
992
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t:
|
|
1011
|
+
columnHeaderRefs: _
|
|
1012
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: g, columnHeaderRefs: _, contextMenuRef: f, hoveredColumnField: S, closingTimeOutId: c, onAllRowSelect: p, isActionsColumn: r, selectAllMenu: u, startResize: C, isResizing: h, columnHoverEventToEmitAfterResizing: i, isSorting: L, getSortingDirection: w, sortByColumnField: D, getSortingColumnDirection: z, draggingEventsForColumn: F, contextualMenuData: A, showContextualMenu: E, hideContextualMenu: O, dataGridColumnEvents: U, hasColumnActions: v, registerColumnsRefs: M, conditionalColumnsClasses: N, computeMenuPosition: I, conditionalColumnClasses: V, conditionalColumnHeaderAndActionsClasses: k, conditionalColumnActionsClasses: Z, conditionalColumnSeparatorClasses: $, conditionalColumnHeaderClasses: B, BentoCheckbox: ut, BentoDatagridSortDirection: ce, BentoTypography: he, BentoInfoIcon: Dn, DatagridColumnsEvent: H, BentoMenu: ct, BentoToggleButton: xe, ArrowUpAndDownSortIcon: fs, SortAscendingIcon: bs, SortDescendingIcon: Is, TriangleDown: Bs };
|
|
993
1013
|
}
|
|
994
1014
|
});
|
|
995
|
-
var
|
|
1015
|
+
var Us = function() {
|
|
996
1016
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
997
|
-
return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o,
|
|
998
|
-
return n("div", t._g({ key: o.field, ref: (
|
|
1017
|
+
return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o, l) {
|
|
1018
|
+
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, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
999
1019
|
return [n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu") } })];
|
|
1000
1020
|
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
|
|
1001
1021
|
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
|
|
1002
|
-
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(
|
|
1022
|
+
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(a) {
|
|
1003
1023
|
return e.sortByColumnField(o.field);
|
|
1004
1024
|
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1005
1025
|
return [e.getSortingDirection(o.field) ? e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: o.label }) } }) : e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: o.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: o.label }) } })];
|
|
1006
|
-
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (
|
|
1026
|
+
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[o.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
|
|
1007
1027
|
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1008
|
-
}, close: function(
|
|
1028
|
+
}, close: function(a) {
|
|
1009
1029
|
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1010
|
-
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(
|
|
1011
|
-
return e.startResize(t.hasResizableColumns, o.field,
|
|
1012
|
-
}, click: function(
|
|
1013
|
-
|
|
1014
|
-
} } }, [!t.isFrozenColumns || t.isFrozenColumns &&
|
|
1030
|
+
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(a) {
|
|
1031
|
+
return e.startResize(t.hasResizableColumns, o.field, a);
|
|
1032
|
+
}, click: function(a) {
|
|
1033
|
+
a.stopPropagation();
|
|
1034
|
+
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1015
1035
|
}), 0);
|
|
1016
|
-
},
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1036
|
+
}, ks = [], Ws = /* @__PURE__ */ Y(
|
|
1037
|
+
zs,
|
|
1038
|
+
Us,
|
|
1039
|
+
ks,
|
|
1020
1040
|
!1,
|
|
1021
1041
|
null,
|
|
1022
1042
|
"ba3e9ccf"
|
|
1023
1043
|
);
|
|
1024
|
-
const
|
|
1025
|
-
var
|
|
1026
|
-
let
|
|
1027
|
-
const
|
|
1044
|
+
const Gs = Ws.exports;
|
|
1045
|
+
var ie = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(ie || {});
|
|
1046
|
+
let nt = 0;
|
|
1047
|
+
const Hs = {
|
|
1028
1048
|
beforeCreate() {
|
|
1029
|
-
this.uuid =
|
|
1049
|
+
this.uuid = nt.toString(), nt += 1;
|
|
1030
1050
|
}
|
|
1031
1051
|
};
|
|
1032
|
-
var
|
|
1052
|
+
var Vs = function() {
|
|
1033
1053
|
var t = this, n = t._self._c;
|
|
1034
1054
|
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" } })])])]);
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1055
|
+
}, Zs = [], js = /* @__PURE__ */ Y(
|
|
1056
|
+
Hs,
|
|
1057
|
+
Vs,
|
|
1058
|
+
Zs,
|
|
1039
1059
|
!1,
|
|
1040
1060
|
null,
|
|
1041
1061
|
null
|
|
1042
1062
|
);
|
|
1043
|
-
const
|
|
1063
|
+
const qs = js.exports, Ys = {
|
|
1044
1064
|
"en-US": {
|
|
1045
1065
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1046
1066
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1047
1067
|
}
|
|
1048
|
-
},
|
|
1049
|
-
i18n: { messages:
|
|
1068
|
+
}, Xs = oe({
|
|
1069
|
+
i18n: { messages: Ys },
|
|
1050
1070
|
name: "bento-data-grid",
|
|
1051
1071
|
components: {
|
|
1052
|
-
BentoFreezeIcon:
|
|
1053
|
-
BentoToggle:
|
|
1072
|
+
BentoFreezeIcon: _t,
|
|
1073
|
+
BentoToggle: ft
|
|
1054
1074
|
},
|
|
1055
1075
|
props: {
|
|
1056
1076
|
/**
|
|
@@ -1070,53 +1090,53 @@ const Ws = Gs.exports, Hs = {
|
|
|
1070
1090
|
},
|
|
1071
1091
|
emits: ["visible-column", "updated-column"],
|
|
1072
1092
|
setup(s, { emit: t }) {
|
|
1073
|
-
const { t: n } =
|
|
1093
|
+
const { t: n } = ue(), e = y(!1), o = m(() => {
|
|
1074
1094
|
var c;
|
|
1075
1095
|
return (c = s.column) == null ? void 0 : c.frozen;
|
|
1076
|
-
}),
|
|
1096
|
+
}), l = m(() => {
|
|
1077
1097
|
var c;
|
|
1078
1098
|
return ((c = s.column) == null ? void 0 : c.visible) !== !1;
|
|
1079
|
-
}),
|
|
1080
|
-
t("visible-column", { ...s.column, visible: !
|
|
1081
|
-
},
|
|
1099
|
+
}), a = () => {
|
|
1100
|
+
t("visible-column", { ...s.column, visible: !l.value });
|
|
1101
|
+
}, g = () => {
|
|
1082
1102
|
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1083
|
-
},
|
|
1103
|
+
}, _ = () => {
|
|
1084
1104
|
o.value || (e.value = !0);
|
|
1085
1105
|
}, f = () => {
|
|
1086
1106
|
o.value || (e.value = !1);
|
|
1087
|
-
},
|
|
1107
|
+
}, S = m(() => ({
|
|
1088
1108
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1089
1109
|
}));
|
|
1090
1110
|
return {
|
|
1091
1111
|
// Values
|
|
1092
1112
|
isFreezeIconOptionShown: e,
|
|
1093
1113
|
isColumnFrozen: o,
|
|
1094
|
-
freezeIconConditionalClasses:
|
|
1095
|
-
isColumnVisible:
|
|
1114
|
+
freezeIconConditionalClasses: S,
|
|
1115
|
+
isColumnVisible: l,
|
|
1096
1116
|
// Methods
|
|
1097
|
-
toggleColumnVisibility:
|
|
1098
|
-
showFreezeIcon:
|
|
1117
|
+
toggleColumnVisibility: a,
|
|
1118
|
+
showFreezeIcon: _,
|
|
1099
1119
|
hideFreezeIcon: f,
|
|
1100
|
-
toggleColumnFreeze:
|
|
1120
|
+
toggleColumnFreeze: g,
|
|
1101
1121
|
// Translations
|
|
1102
1122
|
t: n
|
|
1103
1123
|
};
|
|
1104
1124
|
}
|
|
1105
1125
|
});
|
|
1106
|
-
var
|
|
1126
|
+
var Ks = function() {
|
|
1107
1127
|
var t = this, n = t._self._c;
|
|
1108
1128
|
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) {
|
|
1109
1129
|
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1110
1130
|
} } })], 1);
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1131
|
+
}, Js = [], Qs = /* @__PURE__ */ Y(
|
|
1132
|
+
Xs,
|
|
1133
|
+
Ks,
|
|
1134
|
+
Js,
|
|
1115
1135
|
!1,
|
|
1116
1136
|
null,
|
|
1117
1137
|
"eae7733f"
|
|
1118
1138
|
);
|
|
1119
|
-
const
|
|
1139
|
+
const eo = Qs.exports, to = {
|
|
1120
1140
|
"en-US": {
|
|
1121
1141
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1122
1142
|
closeSearch: "Close search",
|
|
@@ -1142,22 +1162,22 @@ const Ys = qs.exports, Xs = {
|
|
|
1142
1162
|
search: "Buscar",
|
|
1143
1163
|
size: "Tamanho"
|
|
1144
1164
|
}
|
|
1145
|
-
},
|
|
1146
|
-
i18n: { messages:
|
|
1165
|
+
}, no = oe({
|
|
1166
|
+
i18n: { messages: to },
|
|
1147
1167
|
name: "bento-data-grid",
|
|
1148
1168
|
components: {
|
|
1149
|
-
BentoButton:
|
|
1150
|
-
BentoCrossIcon:
|
|
1151
|
-
BentoPopover:
|
|
1152
|
-
BentoSettingsIcon:
|
|
1153
|
-
BentoToggleButton:
|
|
1154
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1155
|
-
BentoSearchBar:
|
|
1156
|
-
BentoSearchIcon:
|
|
1157
|
-
BentoToggle:
|
|
1169
|
+
BentoButton: dt,
|
|
1170
|
+
BentoCrossIcon: it,
|
|
1171
|
+
BentoPopover: xn,
|
|
1172
|
+
BentoSettingsIcon: qs,
|
|
1173
|
+
BentoToggleButton: xe,
|
|
1174
|
+
BentoDataGridConfigSettingsConfigRow: eo,
|
|
1175
|
+
BentoSearchBar: Pn,
|
|
1176
|
+
BentoSearchIcon: zn,
|
|
1177
|
+
BentoToggle: ft,
|
|
1158
1178
|
BentoTypography: he
|
|
1159
1179
|
},
|
|
1160
|
-
directives: { BentoClickOutsideDirective:
|
|
1180
|
+
directives: { BentoClickOutsideDirective: Un },
|
|
1161
1181
|
props: {
|
|
1162
1182
|
/**
|
|
1163
1183
|
* Column definitions
|
|
@@ -1174,71 +1194,71 @@ const Ys = qs.exports, Xs = {
|
|
|
1174
1194
|
default: !1
|
|
1175
1195
|
}
|
|
1176
1196
|
},
|
|
1177
|
-
emits: [
|
|
1197
|
+
emits: [ie.CONFIG_SETTINGS, ie.UPDATE_COLUMNS],
|
|
1178
1198
|
setup(s, { emit: t }) {
|
|
1179
|
-
const { t: n } =
|
|
1199
|
+
const { t: n } = ue(), e = y(null), o = Re("data-grid-config-settings-popover"), l = y(null), a = y(!1), g = y(!0), _ = y(null), f = y(""), S = Le(s, "columns"), c = y(!1), p = $n(f, S), r = () => {
|
|
1180
1200
|
f.value = "";
|
|
1181
|
-
},
|
|
1182
|
-
() => !s.columns.some((
|
|
1183
|
-
),
|
|
1184
|
-
|
|
1185
|
-
var
|
|
1186
|
-
return (
|
|
1187
|
-
}) :
|
|
1188
|
-
var
|
|
1189
|
-
return (
|
|
1190
|
-
}),
|
|
1191
|
-
}, h = (
|
|
1192
|
-
const
|
|
1193
|
-
...
|
|
1194
|
-
visible:
|
|
1201
|
+
}, u = m(
|
|
1202
|
+
() => !s.columns.some((A) => A.visible === !1 && !A.mandatory)
|
|
1203
|
+
), C = () => {
|
|
1204
|
+
r(), c.value = !c.value, c.value ? ne(() => {
|
|
1205
|
+
var A;
|
|
1206
|
+
return (A = l.value.$refs.bentoInputField) == null ? void 0 : A.focusInput();
|
|
1207
|
+
}) : ne(() => {
|
|
1208
|
+
var A, E;
|
|
1209
|
+
return (E = (A = _ == null ? void 0 : _.value) == null ? void 0 : A.$el) == null ? void 0 : E.focus();
|
|
1210
|
+
}), g.value = u.value;
|
|
1211
|
+
}, h = (A) => A.mandatory ?? !1, i = (A) => {
|
|
1212
|
+
const E = s.columns.map((O) => ({
|
|
1213
|
+
...O,
|
|
1214
|
+
visible: A.field === O.field ? A.visible : O.visible
|
|
1195
1215
|
}));
|
|
1196
|
-
t(
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
s.columns.map((
|
|
1216
|
+
t(ie.UPDATE_COLUMNS, E);
|
|
1217
|
+
}, L = (A) => {
|
|
1218
|
+
A ? t(
|
|
1219
|
+
ie.UPDATE_COLUMNS,
|
|
1220
|
+
s.columns.map((E) => ({ ...E, visible: !0 }))
|
|
1201
1221
|
) : t(
|
|
1202
|
-
|
|
1203
|
-
s.columns.map((
|
|
1222
|
+
ie.UPDATE_COLUMNS,
|
|
1223
|
+
s.columns.map((E) => ({ ...E, visible: (E == null ? void 0 : E.mandatory) === !0 }))
|
|
1204
1224
|
);
|
|
1205
|
-
},
|
|
1206
|
-
const
|
|
1207
|
-
...
|
|
1208
|
-
frozen:
|
|
1225
|
+
}, w = (A) => {
|
|
1226
|
+
const E = s.columns.map((O) => ({
|
|
1227
|
+
...O,
|
|
1228
|
+
frozen: A.field === O.field ? !!(A != null && A.frozen) : !!(O != null && O.frozen)
|
|
1209
1229
|
}));
|
|
1210
|
-
t(
|
|
1211
|
-
},
|
|
1212
|
-
|
|
1230
|
+
t(ie.UPDATE_COLUMNS, E);
|
|
1231
|
+
}, D = (A) => {
|
|
1232
|
+
a.value = A, g.value = u.value;
|
|
1213
1233
|
};
|
|
1214
1234
|
return {
|
|
1215
1235
|
// Values
|
|
1216
1236
|
configSettingsButtonRef: e,
|
|
1217
1237
|
popoverId: o,
|
|
1218
|
-
isConfigSettingsPanelOpen:
|
|
1219
|
-
allColumnsVisbilityToggleState:
|
|
1220
|
-
filteredColumnVisibilityColumns:
|
|
1238
|
+
isConfigSettingsPanelOpen: a,
|
|
1239
|
+
allColumnsVisbilityToggleState: g,
|
|
1240
|
+
filteredColumnVisibilityColumns: p,
|
|
1221
1241
|
searchTerm: f,
|
|
1222
1242
|
isColumnVisibilityFilterShown: c,
|
|
1223
|
-
searchBarRef:
|
|
1224
|
-
searchButtonRef:
|
|
1225
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME:
|
|
1243
|
+
searchBarRef: l,
|
|
1244
|
+
searchButtonRef: _,
|
|
1245
|
+
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Q,
|
|
1226
1246
|
// Methods
|
|
1227
|
-
setConfigSettingsPanelVisibility:
|
|
1228
|
-
emitCondensedToggle: (
|
|
1229
|
-
toggleAllColumnVisibility:
|
|
1230
|
-
clearAction:
|
|
1231
|
-
toggleColumnFilter:
|
|
1232
|
-
emitVisibleColumns:
|
|
1233
|
-
emitFrozenColumns:
|
|
1234
|
-
onClickOutside: () =>
|
|
1247
|
+
setConfigSettingsPanelVisibility: D,
|
|
1248
|
+
emitCondensedToggle: (A) => t(ie.CONFIG_SETTINGS, A),
|
|
1249
|
+
toggleAllColumnVisibility: L,
|
|
1250
|
+
clearAction: r,
|
|
1251
|
+
toggleColumnFilter: C,
|
|
1252
|
+
emitVisibleColumns: i,
|
|
1253
|
+
emitFrozenColumns: w,
|
|
1254
|
+
onClickOutside: () => D(!1),
|
|
1235
1255
|
isColumnVisibilityToggleDisabled: h,
|
|
1236
1256
|
// Translations
|
|
1237
1257
|
t: n
|
|
1238
1258
|
};
|
|
1239
1259
|
}
|
|
1240
1260
|
});
|
|
1241
|
-
var
|
|
1261
|
+
var so = function() {
|
|
1242
1262
|
var t = this, n = t._self._c;
|
|
1243
1263
|
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) {
|
|
1244
1264
|
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
@@ -1257,15 +1277,15 @@ var Ks = function() {
|
|
|
1257
1277
|
}, 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) {
|
|
1258
1278
|
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);
|
|
1259
1279
|
}), 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);
|
|
1260
|
-
},
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1280
|
+
}, oo = [], lo = /* @__PURE__ */ Y(
|
|
1281
|
+
no,
|
|
1282
|
+
so,
|
|
1283
|
+
oo,
|
|
1264
1284
|
!1,
|
|
1265
1285
|
null,
|
|
1266
1286
|
"e7f0a261"
|
|
1267
1287
|
);
|
|
1268
|
-
const
|
|
1288
|
+
const ao = lo.exports, vt = {
|
|
1269
1289
|
"en-US": {
|
|
1270
1290
|
gettingYourData: "Getting your data",
|
|
1271
1291
|
loading: "Loading",
|
|
@@ -1283,52 +1303,52 @@ const to = eo.exports, gt = {
|
|
|
1283
1303
|
loading: "Carregando",
|
|
1284
1304
|
showMore: "Mostrar mais"
|
|
1285
1305
|
}
|
|
1286
|
-
},
|
|
1287
|
-
i18n: { messages:
|
|
1288
|
-
},
|
|
1289
|
-
...
|
|
1306
|
+
}, io = {
|
|
1307
|
+
i18n: { messages: vt }
|
|
1308
|
+
}, ro = /* @__PURE__ */ oe({
|
|
1309
|
+
...io,
|
|
1290
1310
|
__name: "data-grid-lazy-load",
|
|
1291
1311
|
props: {
|
|
1292
1312
|
loading: { type: Boolean },
|
|
1293
1313
|
isInfiniteScroll: { type: Boolean }
|
|
1294
1314
|
},
|
|
1295
1315
|
setup(s) {
|
|
1296
|
-
const { t } =
|
|
1297
|
-
return { __sfc: !0, t, BentoLoadingButton:
|
|
1316
|
+
const { t } = ue();
|
|
1317
|
+
return { __sfc: !0, t, BentoLoadingButton: In, BentoLoadingButtonState: Tn, BentoLoadingIndicator: Te, BentoDatagridEvent: b };
|
|
1298
1318
|
}
|
|
1299
1319
|
});
|
|
1300
|
-
var
|
|
1320
|
+
var co = function() {
|
|
1301
1321
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1302
1322
|
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) {
|
|
1303
1323
|
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1304
1324
|
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1305
|
-
},
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1325
|
+
}, uo = [], fo = /* @__PURE__ */ Y(
|
|
1326
|
+
ro,
|
|
1327
|
+
co,
|
|
1328
|
+
uo,
|
|
1309
1329
|
!1,
|
|
1310
1330
|
null,
|
|
1311
1331
|
"fd9b8204"
|
|
1312
1332
|
);
|
|
1313
|
-
const
|
|
1314
|
-
let
|
|
1315
|
-
const
|
|
1333
|
+
const go = fo.exports;
|
|
1334
|
+
let st = 0;
|
|
1335
|
+
const _o = {
|
|
1316
1336
|
beforeCreate() {
|
|
1317
|
-
this.uuid =
|
|
1337
|
+
this.uuid = st.toString(), st += 1;
|
|
1318
1338
|
}
|
|
1319
1339
|
};
|
|
1320
|
-
var
|
|
1340
|
+
var vo = function() {
|
|
1321
1341
|
var t = this, n = t._self._c;
|
|
1322
1342
|
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" } })]);
|
|
1323
|
-
},
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1343
|
+
}, Co = [], ho = /* @__PURE__ */ Y(
|
|
1344
|
+
_o,
|
|
1345
|
+
vo,
|
|
1346
|
+
Co,
|
|
1327
1347
|
!1,
|
|
1328
1348
|
null,
|
|
1329
1349
|
null
|
|
1330
1350
|
);
|
|
1331
|
-
const
|
|
1351
|
+
const mo = ho.exports, po = {
|
|
1332
1352
|
"en-US": {
|
|
1333
1353
|
copy: "Copy",
|
|
1334
1354
|
edit: "Edit",
|
|
@@ -1347,11 +1367,11 @@ const go = fo.exports, _o = {
|
|
|
1347
1367
|
more: "Mais",
|
|
1348
1368
|
open: "Abrir"
|
|
1349
1369
|
}
|
|
1350
|
-
},
|
|
1351
|
-
i18n: { messages:
|
|
1370
|
+
}, wo = {
|
|
1371
|
+
i18n: { messages: po },
|
|
1352
1372
|
name: "data-grid-cell-actions"
|
|
1353
|
-
},
|
|
1354
|
-
...
|
|
1373
|
+
}, So = /* @__PURE__ */ oe({
|
|
1374
|
+
...wo,
|
|
1355
1375
|
props: {
|
|
1356
1376
|
/**
|
|
1357
1377
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1366,7 +1386,21 @@ const go = fo.exports, _o = {
|
|
|
1366
1386
|
*/
|
|
1367
1387
|
columnKey: {
|
|
1368
1388
|
type: String,
|
|
1369
|
-
|
|
1389
|
+
default: void 0
|
|
1390
|
+
},
|
|
1391
|
+
/**
|
|
1392
|
+
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1393
|
+
*/
|
|
1394
|
+
hasRightOverflow: {
|
|
1395
|
+
type: Boolean,
|
|
1396
|
+
default: !1
|
|
1397
|
+
},
|
|
1398
|
+
/**
|
|
1399
|
+
* Set if set to true will teleport the action menu component
|
|
1400
|
+
*/
|
|
1401
|
+
teleportMenu: {
|
|
1402
|
+
type: Boolean,
|
|
1403
|
+
default: !1
|
|
1370
1404
|
},
|
|
1371
1405
|
/**
|
|
1372
1406
|
* The row data item object.
|
|
@@ -1376,21 +1410,25 @@ const go = fo.exports, _o = {
|
|
|
1376
1410
|
required: !0
|
|
1377
1411
|
}
|
|
1378
1412
|
},
|
|
1379
|
-
emits: ["menu-item-click
|
|
1413
|
+
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1380
1414
|
setup(s, { emit: t }) {
|
|
1381
|
-
const n = s, { t: e } =
|
|
1382
|
-
|
|
1383
|
-
|
|
1415
|
+
const n = s, { t: e } = ue(), o = m(() => n.columnKey === void 0), l = m(() => ({
|
|
1416
|
+
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": o.value && n.hasRightOverflow
|
|
1417
|
+
})), a = m(() => ({
|
|
1418
|
+
"b-data-grid-cell-actions__actions--with-row-actions": o.value
|
|
1419
|
+
})), g = m(() => !o.value || o.value && n.hasRightOverflow);
|
|
1420
|
+
function _(i) {
|
|
1421
|
+
return typeof i == "function";
|
|
1384
1422
|
}
|
|
1385
|
-
const
|
|
1386
|
-
var
|
|
1387
|
-
const
|
|
1388
|
-
return (
|
|
1423
|
+
const f = m(() => {
|
|
1424
|
+
var L;
|
|
1425
|
+
const i = _(n.cellActions) ? (L = n.cellActions) == null ? void 0 : L.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1426
|
+
return (i == null ? void 0 : i.length) > 2 && rt(
|
|
1389
1427
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1390
|
-
),
|
|
1391
|
-
}),
|
|
1392
|
-
if (!(!
|
|
1393
|
-
switch (
|
|
1428
|
+
), i == null ? void 0 : i.slice(0, 2);
|
|
1429
|
+
}), S = m(() => (i, L) => {
|
|
1430
|
+
if (!(!L && i.isShort || L && !i.isShort))
|
|
1431
|
+
switch (i.variant) {
|
|
1394
1432
|
case "copy":
|
|
1395
1433
|
return e("copy");
|
|
1396
1434
|
case "edit":
|
|
@@ -1400,34 +1438,38 @@ const go = fo.exports, _o = {
|
|
|
1400
1438
|
case "more":
|
|
1401
1439
|
return e("more");
|
|
1402
1440
|
default:
|
|
1403
|
-
return
|
|
1441
|
+
return i.title;
|
|
1404
1442
|
}
|
|
1405
|
-
}),
|
|
1406
|
-
click: () =>
|
|
1407
|
-
} : {},
|
|
1408
|
-
...
|
|
1443
|
+
}), c = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
|
|
1444
|
+
click: () => i.event(n.rowDataItem, n.columnKey)
|
|
1445
|
+
} : {}, p = (i) => ({
|
|
1446
|
+
...i,
|
|
1409
1447
|
handler: () => {
|
|
1410
|
-
|
|
1448
|
+
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));
|
|
1411
1449
|
}
|
|
1412
|
-
}),
|
|
1413
|
-
const
|
|
1414
|
-
return
|
|
1450
|
+
}), r = (i) => i.map((L) => {
|
|
1451
|
+
const w = L;
|
|
1452
|
+
return w != null && w.items && (w.items = r(w.items)), { ...p(w) };
|
|
1415
1453
|
});
|
|
1416
|
-
return { __sfc: !0, t: e, props: n, emit: t,
|
|
1417
|
-
var
|
|
1418
|
-
return (
|
|
1419
|
-
}, shouldShowMenuIconRight: (
|
|
1454
|
+
return { __sfc: !0, t: e, props: n, emit: t, isRowActions: o, conditionalCellActionsBackgroundGradientClasses: l, conditionalCellActionsClasses: a, showGradientElement: g, isBentoColumnCellActionsByCellValueDataFn: _, computedCellActions: f, getButtonTitle: S, generateButtonEvents: c, generateMenuEvents: p, transformMenuEvents: r, getCopyText: (i) => {
|
|
1455
|
+
var L, w;
|
|
1456
|
+
return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (w = (L = n.rowDataItem) == null ? void 0 : L[n.columnKey]) == null ? void 0 : w.toString() : "";
|
|
1457
|
+
}, 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: dt, BentoMenu: ct, Copy: An, Edit1Icon: mo, ExternalLinkIcon: bn, OptionsVerticalIcon: Rn };
|
|
1420
1458
|
}
|
|
1421
1459
|
});
|
|
1422
|
-
var
|
|
1460
|
+
var Lo = function() {
|
|
1423
1461
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1424
|
-
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, t._l(e.computedCellActions, function(o,
|
|
1425
|
-
return n("div", { key:
|
|
1462
|
+
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) {
|
|
1463
|
+
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
1426
1464
|
condensed: !0,
|
|
1427
1465
|
variant: "secondary",
|
|
1428
1466
|
disabled: o.disabled
|
|
1429
|
-
}, teleport:
|
|
1430
|
-
return e.emit("menu-
|
|
1467
|
+
}, teleport: t.teleportMenu }, on: { open: function(a) {
|
|
1468
|
+
return e.emit("menu-open");
|
|
1469
|
+
}, close: function(a) {
|
|
1470
|
+
return e.emit("menu-close");
|
|
1471
|
+
}, "menu-item-click": function(a) {
|
|
1472
|
+
return e.emit("menu-item-click");
|
|
1431
1473
|
} }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
|
|
1432
1474
|
return [(o == null ? void 0 : o.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(o, !0) } })];
|
|
1433
1475
|
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
@@ -1445,27 +1487,27 @@ var ho = function() {
|
|
|
1445
1487
|
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 } })];
|
|
1446
1488
|
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1447
1489
|
}), 0)])]);
|
|
1448
|
-
},
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1490
|
+
}, Eo = [], Ro = /* @__PURE__ */ Y(
|
|
1491
|
+
So,
|
|
1492
|
+
Lo,
|
|
1493
|
+
Eo,
|
|
1452
1494
|
!1,
|
|
1453
1495
|
null,
|
|
1454
|
-
"
|
|
1496
|
+
"b7fa9d51"
|
|
1455
1497
|
);
|
|
1456
|
-
const
|
|
1457
|
-
var
|
|
1458
|
-
const
|
|
1498
|
+
const Ct = Ro.exports, ht = Symbol("data-grid slashed zero key");
|
|
1499
|
+
var q = /* @__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))(q || {});
|
|
1500
|
+
const yo = {
|
|
1459
1501
|
"en-US": {
|
|
1460
1502
|
collapseNestedContent: "Collapse nested content",
|
|
1461
1503
|
expandNestedContent: "Expand nested content",
|
|
1462
1504
|
selectRow: "Select row"
|
|
1463
1505
|
}
|
|
1464
|
-
},
|
|
1465
|
-
i18n: { messages:
|
|
1506
|
+
}, bo = {
|
|
1507
|
+
i18n: { messages: yo },
|
|
1466
1508
|
name: "data-grid-cell"
|
|
1467
|
-
},
|
|
1468
|
-
...
|
|
1509
|
+
}, Ao = /* @__PURE__ */ oe({
|
|
1510
|
+
...bo,
|
|
1469
1511
|
props: {
|
|
1470
1512
|
draggingEventsForRowCell: {
|
|
1471
1513
|
type: Function,
|
|
@@ -1587,106 +1629,113 @@ const Lo = {
|
|
|
1587
1629
|
},
|
|
1588
1630
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1589
1631
|
setup(s, { expose: t, emit: n }) {
|
|
1590
|
-
const e = s, o =
|
|
1591
|
-
var
|
|
1592
|
-
return !!((
|
|
1593
|
-
}),
|
|
1632
|
+
const e = s, o = Ne(), l = Ie(o), { t: a } = ue(), g = y(null), _ = y(null), f = y(!1), S = y([]), c = m(() => {
|
|
1633
|
+
var v;
|
|
1634
|
+
return !!((v = e.rowData) != null && v[e.column.field]);
|
|
1635
|
+
}), p = m(
|
|
1594
1636
|
() => {
|
|
1595
|
-
var
|
|
1596
|
-
return e.column.field ===
|
|
1637
|
+
var v;
|
|
1638
|
+
return e.column.field === Q && ((v = e.nestedRowsElementIds) == null ? void 0 : v.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1597
1639
|
}
|
|
1598
|
-
),
|
|
1599
|
-
() => e.column.field ===
|
|
1600
|
-
),
|
|
1601
|
-
var
|
|
1602
|
-
(
|
|
1603
|
-
},
|
|
1640
|
+
), r = m(
|
|
1641
|
+
() => e.column.field === Q && !e.selectable && !e.nestedContent
|
|
1642
|
+
), u = (v, M) => (v == null ? void 0 : v.overflow) === ye.ELLIPSIS ? `${M}` : void 0, C = (v) => v ?? "-", h = (v) => e.columnSets.slice(0, v).reduce((M, { columnSet: N }) => M + N.length, 0), i = (v, M) => v + h(M), L = (v, M, N) => h() * v + i(M, N), w = (v) => {
|
|
1643
|
+
var M;
|
|
1644
|
+
(v === null || !g.value.contains(v) && !((M = S.value) != null && M.map((N) => N.value).some((N) => N === v || (N == null ? void 0 : N.contains(v))))) && (f.value = !1);
|
|
1645
|
+
}, D = () => {
|
|
1604
1646
|
f.value = !1;
|
|
1605
|
-
}, z = (
|
|
1606
|
-
const
|
|
1607
|
-
...e.draggingEventsForRowCell(
|
|
1647
|
+
}, z = (v) => {
|
|
1648
|
+
const N = { ...{
|
|
1649
|
+
...e.draggingEventsForRowCell(v)
|
|
1608
1650
|
} };
|
|
1609
|
-
return
|
|
1651
|
+
return v.frozen && (N.keyup = (I) => n("on-frozen-columns-key-press", I), N.keydown = (I) => n("on-frozen-columns-key-press", I)), v.cellActions && (N.mouseenter = () => {
|
|
1610
1652
|
f.value = !0;
|
|
1611
|
-
},
|
|
1612
|
-
f.value = !1,
|
|
1613
|
-
},
|
|
1614
|
-
|
|
1615
|
-
},
|
|
1653
|
+
}, N.mouseleave = (I) => {
|
|
1654
|
+
f.value = !1, w(I == null ? void 0 : I.relatedTarget);
|
|
1655
|
+
}, N.mouseleave = (I) => {
|
|
1656
|
+
w(I == null ? void 0 : I.relatedTarget);
|
|
1657
|
+
}, N.focus = (I) => {
|
|
1616
1658
|
f.value = !0;
|
|
1617
|
-
},
|
|
1618
|
-
|
|
1619
|
-
}),
|
|
1620
|
-
},
|
|
1659
|
+
}, N.focusout = (I) => {
|
|
1660
|
+
w(I == null ? void 0 : I.relatedTarget);
|
|
1661
|
+
}), N;
|
|
1662
|
+
}, F = () => {
|
|
1621
1663
|
n("nested-content-toggled");
|
|
1622
1664
|
};
|
|
1623
|
-
|
|
1665
|
+
ee(
|
|
1624
1666
|
() => f.value,
|
|
1625
1667
|
() => {
|
|
1626
1668
|
f.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
1627
1669
|
}
|
|
1628
1670
|
);
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1631
|
-
},
|
|
1632
|
-
|
|
1671
|
+
const A = (v) => {
|
|
1672
|
+
S.value.push(v);
|
|
1673
|
+
}, E = (v) => {
|
|
1674
|
+
g.value.contains(v == null ? void 0 : v.relatedTarget) || (f.value = !1);
|
|
1633
1675
|
};
|
|
1634
|
-
|
|
1635
|
-
registerMenuContainerElement:
|
|
1636
|
-
menuMouseLeave:
|
|
1676
|
+
at(yn, {
|
|
1677
|
+
registerMenuContainerElement: A,
|
|
1678
|
+
menuMouseLeave: E
|
|
1637
1679
|
});
|
|
1638
|
-
const
|
|
1639
|
-
var
|
|
1680
|
+
const O = Ee(ht, y(!1)), U = (v) => {
|
|
1681
|
+
var M, N, I, V, k, Z, $;
|
|
1640
1682
|
return {
|
|
1641
|
-
[`b-data-grid-cell--${
|
|
1642
|
-
[`b-data-grid-cell--${
|
|
1643
|
-
[`b-data-grid-cell--${
|
|
1644
|
-
[`b-data-grid-cell--${
|
|
1645
|
-
[`b-data-grid-cell--${
|
|
1646
|
-
[`b-data-grid-cell--${
|
|
1647
|
-
[`b-data-grid-cell--${
|
|
1648
|
-
[`b-data-grid-cell--${
|
|
1649
|
-
[`b-data-grid-cell--${
|
|
1650
|
-
[`b-data-grid-cell--${
|
|
1651
|
-
[`b-data-grid-cell--${
|
|
1652
|
-
[`b-data-grid-cell--${
|
|
1653
|
-
[`b-data-grid-cell--${
|
|
1654
|
-
[`b-data-grid-cell--${
|
|
1655
|
-
[`b-data-grid-cell--${
|
|
1656
|
-
[`b-data-grid-cell--${
|
|
1657
|
-
[`b-data-grid-cell--${
|
|
1683
|
+
[`b-data-grid-cell--${q.COLUMN_HOVERED}`]: (v == null ? void 0 : v.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1684
|
+
[`b-data-grid-cell--${q.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (v == null ? void 0 : v.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1685
|
+
[`b-data-grid-cell--${q.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (v == null ? void 0 : v.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1686
|
+
[`b-data-grid-cell--${q.PADDING_LEFT_UNSET}`]: ((M = v == null ? void 0 : v.padding) == null ? void 0 : M.left) === !1,
|
|
1687
|
+
[`b-data-grid-cell--${q.PADDING_RIGHT_UNSET}`]: ((N = v == null ? void 0 : v.padding) == null ? void 0 : N.right) === !1,
|
|
1688
|
+
[`b-data-grid-cell--${q.NUMERIC}`]: v == null ? void 0 : v.numeric,
|
|
1689
|
+
[`b-data-grid-cell--${q.CONDENSED}`]: e.condensed,
|
|
1690
|
+
[`b-data-grid-cell--${q.OVERFLOW_ELLIPSIS}`]: (v == null ? void 0 : v.overflow) === ye.ELLIPSIS,
|
|
1691
|
+
[`b-data-grid-cell--${q.IS_COLUMN_REORDERING}`]: ((I = e.draggingColumns.dragging) == null ? void 0 : I.field) === v.field,
|
|
1692
|
+
[`b-data-grid-cell--${q.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((V = e.draggingColumns.target) == null ? void 0 : V.field) === v.field && ((k = e.draggingColumns) == null ? void 0 : k.dragToLeft),
|
|
1693
|
+
[`b-data-grid-cell--${q.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Z = e.draggingColumns.target) == null ? void 0 : Z.field) === v.field && !(($ = e.draggingColumns) != null && $.dragToLeft),
|
|
1694
|
+
[`b-data-grid-cell--${q.FROZEN}`]: v == null ? void 0 : v.frozen,
|
|
1695
|
+
[`b-data-grid-cell--${q.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
1696
|
+
[`b-data-grid-cell--${q.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && v.field === Q,
|
|
1697
|
+
[`b-data-grid-cell--${q.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && v.field === Q,
|
|
1698
|
+
[`b-data-grid-cell--${q.ACTION_COL_SELECTION_ENABLED}`]: v.field === Q && e.selectable,
|
|
1699
|
+
[`b-data-grid-cell--${q.SLASHED_ZERO}`]: O.value
|
|
1658
1700
|
};
|
|
1659
1701
|
};
|
|
1660
1702
|
return t({
|
|
1661
|
-
gridcellRef:
|
|
1662
|
-
}), { __sfc: !0, slots: o, hasSlot:
|
|
1703
|
+
gridcellRef: g
|
|
1704
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: g, cellActionsRef: _, shouldShowCellActions: f, childrenMenuContainerElements: S, hasRowData: c, controlledNestedRowElementIds: p, ariaHidden: r, conditionalTitleAttribute: u, getRowData: C, sumColumnAmountsInColumnSets: h, getColIndex: i, getCellIndex: L, isLeavingCellFocus: w, onMenuClose: D, getGridcellEvents: z, toggleNestedContent: F, registerMenuContainerElement: A, menuMouseLeave: E, hasSlashedZero: O, conditionalRowCellClasses: U, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Q, BentoCheckbox: ut, BentoTypography: he, BentoToggleButton: xe, DataGridCellActions: Ct, ChevronDownIcon: Nn, ChevronUpIcon: On };
|
|
1663
1705
|
}
|
|
1664
1706
|
});
|
|
1665
|
-
var
|
|
1707
|
+
var Oo = function() {
|
|
1666
1708
|
var o;
|
|
1667
1709
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1668
1710
|
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
1669
1711
|
width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
|
|
1670
|
-
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(
|
|
1671
|
-
return t.$emit("select-row",
|
|
1712
|
+
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(l) {
|
|
1713
|
+
return t.$emit("select-row", l);
|
|
1672
1714
|
} } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1673
1715
|
return [t.isNestedContentExpanded ? n(e.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("collapseNestedContent") } }) : n(e.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("expandNestedContent") } })];
|
|
1674
1716
|
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { attrs: { el: "div" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1675
1717
|
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])))])];
|
|
1676
|
-
}, { 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 }, on: { "menu-item-click
|
|
1677
|
-
},
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1718
|
+
}, { 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);
|
|
1719
|
+
}, No = [], To = /* @__PURE__ */ Y(
|
|
1720
|
+
Ao,
|
|
1721
|
+
Oo,
|
|
1722
|
+
No,
|
|
1681
1723
|
!1,
|
|
1682
1724
|
null,
|
|
1683
|
-
"
|
|
1725
|
+
"dd8a6001"
|
|
1684
1726
|
);
|
|
1685
|
-
const
|
|
1727
|
+
const Io = To.exports, Do = {
|
|
1686
1728
|
name: "data-grid-row"
|
|
1687
|
-
},
|
|
1688
|
-
...
|
|
1729
|
+
}, xo = /* @__PURE__ */ oe({
|
|
1730
|
+
...Do,
|
|
1689
1731
|
props: {
|
|
1732
|
+
/**
|
|
1733
|
+
* Row actions property that generates which button to show in row actions area
|
|
1734
|
+
*/
|
|
1735
|
+
rowActions: {
|
|
1736
|
+
type: [Function, Array],
|
|
1737
|
+
default: void 0
|
|
1738
|
+
},
|
|
1690
1739
|
/**
|
|
1691
1740
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
1692
1741
|
*/
|
|
@@ -1748,6 +1797,13 @@ const Oo = bo.exports, Ao = {
|
|
|
1748
1797
|
type: Boolean,
|
|
1749
1798
|
default: !1
|
|
1750
1799
|
},
|
|
1800
|
+
/**
|
|
1801
|
+
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1802
|
+
*/
|
|
1803
|
+
hasRightOverflow: {
|
|
1804
|
+
type: Boolean,
|
|
1805
|
+
default: !1
|
|
1806
|
+
},
|
|
1751
1807
|
/**
|
|
1752
1808
|
* Highlighted row IDs.
|
|
1753
1809
|
*/
|
|
@@ -1798,6 +1854,13 @@ const Oo = bo.exports, Ao = {
|
|
|
1798
1854
|
type: Boolean,
|
|
1799
1855
|
default: !1
|
|
1800
1856
|
},
|
|
1857
|
+
/**
|
|
1858
|
+
* The maximum width of the row actions in all rows
|
|
1859
|
+
*/
|
|
1860
|
+
rowActionsMaximumWidth: {
|
|
1861
|
+
type: Number,
|
|
1862
|
+
default: 0
|
|
1863
|
+
},
|
|
1801
1864
|
/**
|
|
1802
1865
|
* The row data object
|
|
1803
1866
|
*/
|
|
@@ -1864,196 +1927,206 @@ const Oo = bo.exports, Ao = {
|
|
|
1864
1927
|
},
|
|
1865
1928
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
1866
1929
|
setup(s, { expose: t, emit: n }) {
|
|
1867
|
-
const e = s, o =
|
|
1930
|
+
const e = s, o = Ne(), l = Ie(o), a = y({}), g = y(!1), _ = y(), f = y(), S = Re("nested-content-slot"), c = y(!1), p = m(() => e.shouldShowNestedRows(e.rowData)), r = m(
|
|
1868
1931
|
() => {
|
|
1869
|
-
var
|
|
1870
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
1932
|
+
var R, x;
|
|
1933
|
+
return !e.isNestedRow && e.hasNestedRows && p.value && ((x = (R = e.rowData) == null ? void 0 : R.children) == null ? void 0 : x.length) > 0;
|
|
1871
1934
|
}
|
|
1872
|
-
),
|
|
1935
|
+
), u = m(
|
|
1873
1936
|
() => {
|
|
1874
|
-
var
|
|
1875
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
1937
|
+
var R, x;
|
|
1938
|
+
return !e.isNestedRow && e.hasNestedRows && p.value && (((R = e.rowData) == null ? void 0 : R.children) === void 0 || ((x = e == null ? void 0 : e.rowData) == null ? void 0 : x.children.length) === 0);
|
|
1876
1939
|
}
|
|
1877
|
-
),
|
|
1878
|
-
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows &&
|
|
1879
|
-
),
|
|
1940
|
+
), C = m(
|
|
1941
|
+
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && p.value && !e.isNestedRow
|
|
1942
|
+
), h = m(() => {
|
|
1880
1943
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
1881
|
-
const
|
|
1944
|
+
const R = g.value.toString();
|
|
1882
1945
|
return {
|
|
1883
|
-
"aria-expanded":
|
|
1946
|
+
"aria-expanded": C.value ? R : void 0,
|
|
1884
1947
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
1885
1948
|
"aria-posinset": e.rowIndex + 1,
|
|
1886
1949
|
"aria-setsize": e.rowSetSize
|
|
1887
1950
|
};
|
|
1888
1951
|
}
|
|
1889
1952
|
return { "aria-rowindex": e.rowIndex + 1 };
|
|
1890
|
-
}),
|
|
1891
|
-
if (
|
|
1953
|
+
}), i = m(() => {
|
|
1954
|
+
if (u.value)
|
|
1892
1955
|
return {
|
|
1893
1956
|
"aria-busy": "true",
|
|
1894
1957
|
"aria-live": "polite"
|
|
1895
1958
|
};
|
|
1896
|
-
if (!(
|
|
1959
|
+
if (!(r.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
1897
1960
|
return {
|
|
1898
1961
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
1899
1962
|
"aria-posinset": "1",
|
|
1900
1963
|
"aria-setsize": "1",
|
|
1901
|
-
id:
|
|
1964
|
+
id: S,
|
|
1902
1965
|
role: "row",
|
|
1903
1966
|
tabindex: "-1"
|
|
1904
1967
|
};
|
|
1905
|
-
}),
|
|
1906
|
-
var
|
|
1907
|
-
return
|
|
1908
|
-
}),
|
|
1909
|
-
var
|
|
1910
|
-
if (
|
|
1968
|
+
}), L = m(() => {
|
|
1969
|
+
var R, x;
|
|
1970
|
+
return r.value ? (x = (R = e.rowData) == null ? void 0 : R.children) == null ? void 0 : x.reduce((G, J, se) => (G[se] = Re("nested-row"), G), {}) : [];
|
|
1971
|
+
}), w = m(() => {
|
|
1972
|
+
var R;
|
|
1973
|
+
if (g.value) {
|
|
1911
1974
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
1912
|
-
return [
|
|
1913
|
-
if (
|
|
1914
|
-
const
|
|
1915
|
-
if ((
|
|
1916
|
-
return
|
|
1975
|
+
return [S];
|
|
1976
|
+
if (r.value && ((R = Object.keys(L.value)) == null ? void 0 : R.length) > 0) {
|
|
1977
|
+
const x = Object.values(L.value);
|
|
1978
|
+
if ((x == null ? void 0 : x.length) > 0)
|
|
1979
|
+
return x;
|
|
1917
1980
|
}
|
|
1918
1981
|
return [];
|
|
1919
1982
|
}
|
|
1920
|
-
}),
|
|
1921
|
-
var
|
|
1922
|
-
const
|
|
1923
|
-
if ((
|
|
1924
|
-
const
|
|
1925
|
-
var
|
|
1926
|
-
return (
|
|
1927
|
-
}),
|
|
1928
|
-
var
|
|
1929
|
-
return (
|
|
1983
|
+
}), D = m(() => {
|
|
1984
|
+
var x, G;
|
|
1985
|
+
const R = (G = (x = e.rowData) == null ? void 0 : x.children) == null ? void 0 : G.map((J) => e.getDataItemId(J));
|
|
1986
|
+
if ((R == null ? void 0 : R.length) > 0) {
|
|
1987
|
+
const J = R.every((le) => {
|
|
1988
|
+
var te;
|
|
1989
|
+
return (te = e == null ? void 0 : e.selectedItems) == null ? void 0 : te.includes(le);
|
|
1990
|
+
}), se = R.some((le) => {
|
|
1991
|
+
var te;
|
|
1992
|
+
return (te = e == null ? void 0 : e.selectedItems) == null ? void 0 : te.includes(le);
|
|
1930
1993
|
});
|
|
1931
|
-
return !
|
|
1994
|
+
return !J && se;
|
|
1932
1995
|
}
|
|
1933
1996
|
return !1;
|
|
1934
|
-
}),
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1937
|
-
}, F = (
|
|
1997
|
+
}), z = (R, x) => {
|
|
1998
|
+
const G = R;
|
|
1999
|
+
R !== null && (G != null && G.gridcellRef) && (a.value[x] = G.gridcellRef);
|
|
2000
|
+
}, F = (R) => L.value[R], A = (R) => {
|
|
1938
2001
|
if (!e.selectable)
|
|
1939
2002
|
return null;
|
|
1940
|
-
const
|
|
1941
|
-
return e.selectedItems.includes(
|
|
1942
|
-
},
|
|
1943
|
-
!(
|
|
1944
|
-
},
|
|
1945
|
-
n("select-row",
|
|
1946
|
-
},
|
|
1947
|
-
n("select-nested-row",
|
|
1948
|
-
},
|
|
1949
|
-
|
|
2003
|
+
const x = e.getDataItemId(R);
|
|
2004
|
+
return e.selectedItems.includes(x).toString();
|
|
2005
|
+
}, E = (R) => {
|
|
2006
|
+
!(R.target.type === "checkbox") && e.allowRowClicks && n("row-click", e.rowData, R);
|
|
2007
|
+
}, O = (R) => {
|
|
2008
|
+
n("select-row", R, e.rowData);
|
|
2009
|
+
}, U = (R, x) => {
|
|
2010
|
+
n("select-nested-row", x, e.rowData, R);
|
|
2011
|
+
}, v = () => {
|
|
2012
|
+
c.value = !0;
|
|
2013
|
+
}, M = () => {
|
|
2014
|
+
c.value = !1;
|
|
2015
|
+
}, { updateContentHeight: N, contentHeight: I } = En(_, g), V = m(() => {
|
|
2016
|
+
var R;
|
|
1950
2017
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
1951
2018
|
return {
|
|
1952
|
-
paddingLeft: `${
|
|
1953
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) &&
|
|
2019
|
+
paddingLeft: `${r.value || u.value ? 0 : a.value[Q].clientWidth + gt}px`,
|
|
2020
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && I.value && !((R = I == null ? void 0 : I.value) != null && R.includes("null")) ? I.value : 0
|
|
1954
2021
|
};
|
|
1955
2022
|
});
|
|
1956
|
-
|
|
1957
|
-
() =>
|
|
2023
|
+
ee(
|
|
2024
|
+
() => _.value,
|
|
1958
2025
|
() => {
|
|
1959
|
-
let
|
|
1960
|
-
!
|
|
1961
|
-
|
|
2026
|
+
let R = null;
|
|
2027
|
+
!R && _.value && (R = De(_.value, () => {
|
|
2028
|
+
_.value && N();
|
|
1962
2029
|
}));
|
|
1963
2030
|
}
|
|
1964
2031
|
);
|
|
1965
|
-
const
|
|
1966
|
-
|
|
2032
|
+
const k = () => {
|
|
2033
|
+
g.value = !g.value, N(), n("nested-content-toggled", e.rowData);
|
|
1967
2034
|
};
|
|
1968
|
-
|
|
2035
|
+
ee(
|
|
1969
2036
|
() => {
|
|
1970
|
-
var
|
|
1971
|
-
return (
|
|
2037
|
+
var R;
|
|
2038
|
+
return (R = e.rowData) == null ? void 0 : R.children;
|
|
1972
2039
|
},
|
|
1973
|
-
(
|
|
1974
|
-
var
|
|
1975
|
-
((
|
|
2040
|
+
(R, x) => {
|
|
2041
|
+
var G, J;
|
|
2042
|
+
((J = (G = e == null ? void 0 : e.rowData) == null ? void 0 : G.children) == null ? void 0 : J.length) > 0 && x === void 0 && !g.value && N();
|
|
1976
2043
|
}
|
|
1977
2044
|
);
|
|
1978
|
-
const
|
|
1979
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(
|
|
2045
|
+
const Z = (R, x) => ({
|
|
2046
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(R),
|
|
1980
2047
|
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
1981
|
-
"b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(
|
|
1982
|
-
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex ===
|
|
1983
|
-
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !
|
|
2048
|
+
"b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(R)) || e.selectedItems.includes(e.getDataItemId(R)),
|
|
2049
|
+
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === x,
|
|
2050
|
+
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !g.value,
|
|
1984
2051
|
"b-data-grid-row-container__row--nested-row": e.isNestedRow
|
|
1985
|
-
}),
|
|
1986
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
1987
|
-
[`b-data-grid-row-container__row-cell-set--${
|
|
1988
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator":
|
|
1989
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
2052
|
+
}), $ = (R) => ({
|
|
2053
|
+
"b-data-grid-row-container__row-cell-set--frozen": R,
|
|
2054
|
+
[`b-data-grid-row-container__row-cell-set--${re.OVERFLOW_SHADOW_LEFT}`]: R && e.hasLeftOverflow,
|
|
2055
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": R && e.showFrozenColumnsSeparator,
|
|
2056
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !R,
|
|
1990
2057
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
1991
|
-
}),
|
|
2058
|
+
}), B = m(() => ({
|
|
1992
2059
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
1993
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
2060
|
+
"b-data-grid-row-container__row-nested-slot": !r.value && e.shouldShowNestedContent(e.rowData)
|
|
2061
|
+
})), d = m(() => ({
|
|
2062
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": c.value
|
|
2063
|
+
})), P = m(() => ({
|
|
2064
|
+
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
1994
2065
|
}));
|
|
1995
2066
|
return t({
|
|
1996
|
-
gridcellRefs:
|
|
1997
|
-
|
|
2067
|
+
gridcellRefs: a,
|
|
2068
|
+
rowActionsRef: f
|
|
2069
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: g, nestedContentRef: _, rowActionsRef: f, nestedContentSlotId: S, isRowActionMenuOpen: c, shouldShowNestedRowsBooleanResult: p, shouldShowRenderNestedRows: r, isLoadingNestedRows: u, shouldShowNestedContentToggle: C, ariaRowAttributes: h, nestedContentContainerDivAriaAttributes: i, nestedRowIds: L, allNestedRowIds: w, hasUnSelectedNestedRows: D, registerRowCellRef: z, getRowId: F, getRowAriaSelectedValue: A, onRowClick: E, onRowSelect: O, onNestedRowSelect: U, onRowActionMenuOpen: v, onRowActionMenuClose: M, updateContentHeight: N, contentHeight: I, nestedContentStyles: V, nestedContentToggled: k, conditionalRowClasses: Z, conditionalRowSetClasses: $, conditionalNestedRowClasses: B, conditionalRowActionsContainerClasses: d, computedRowActionsStyles: P, DataGridCell: Io, DataGridCellActions: Ct, BentoLoadingIndicator: Te, DataGridRow: mt };
|
|
1998
2070
|
}
|
|
1999
2071
|
});
|
|
2000
|
-
var
|
|
2072
|
+
var Fo = function() {
|
|
2073
|
+
var o;
|
|
2001
2074
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2002
|
-
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: t.rowId, role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet:
|
|
2003
|
-
return [
|
|
2004
|
-
return n(e.DataGridCell, { key: `cell-${
|
|
2005
|
-
return e.emit("cell-hovered",
|
|
2006
|
-
}, "on-frozen-columns-key-press": function(
|
|
2007
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2008
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2009
|
-
return { key:
|
|
2010
|
-
return [t._t(
|
|
2075
|
+
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 }, _) {
|
|
2076
|
+
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(g), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(f, S) {
|
|
2077
|
+
return n(e.DataGridCell, { key: `cell-${f.field}`, ref: (c) => e.registerRowCellRef(c, f.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: f, "column-set-index": _, "col-index": S, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(c) {
|
|
2078
|
+
return e.emit("cell-hovered", c);
|
|
2079
|
+
}, "on-frozen-columns-key-press": function(c) {
|
|
2080
|
+
return e.emit("on-frozen-columns-key-press", c);
|
|
2081
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(c, p) {
|
|
2082
|
+
return { key: p, fn: function(r) {
|
|
2083
|
+
return [t._t(p, null, null, r)];
|
|
2011
2084
|
} };
|
|
2012
2085
|
})], null, !0) });
|
|
2013
|
-
}), 1) : t._e()];
|
|
2014
|
-
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(
|
|
2015
|
-
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data":
|
|
2016
|
-
return e.emit("cell-hovered",
|
|
2017
|
-
}, "row-click": function(
|
|
2018
|
-
return e.emit("row-click",
|
|
2019
|
-
}, "on-frozen-columns-key-press": function(
|
|
2020
|
-
return e.emit("
|
|
2021
|
-
}, "select-row": function(
|
|
2022
|
-
return e.onNestedRowSelect(
|
|
2023
|
-
} }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2024
|
-
return { key:
|
|
2025
|
-
return [t._t(
|
|
2086
|
+
}), 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 }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "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()];
|
|
2087
|
+
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(l, a) {
|
|
2088
|
+
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(g) {
|
|
2089
|
+
return e.emit("cell-hovered", g);
|
|
2090
|
+
}, "row-click": function(g) {
|
|
2091
|
+
return e.emit("row-click", ...g);
|
|
2092
|
+
}, "on-frozen-columns-key-press": function(g) {
|
|
2093
|
+
return e.emit("on-frozen-columns-key-press", g);
|
|
2094
|
+
}, "select-row": function(g) {
|
|
2095
|
+
return e.onNestedRowSelect(l, g);
|
|
2096
|
+
} }, scopedSlots: t._u([t._l(e.slots, function(g, _) {
|
|
2097
|
+
return { key: _, fn: function(f) {
|
|
2098
|
+
return [t._t(_, null, null, f)];
|
|
2026
2099
|
} };
|
|
2027
2100
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2028
2101
|
}) : 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);
|
|
2029
|
-
},
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2102
|
+
}, Mo = [], Bo = /* @__PURE__ */ Y(
|
|
2103
|
+
xo,
|
|
2104
|
+
Fo,
|
|
2105
|
+
Mo,
|
|
2033
2106
|
!1,
|
|
2034
2107
|
null,
|
|
2035
|
-
"
|
|
2108
|
+
"85174ea4"
|
|
2036
2109
|
);
|
|
2037
|
-
const
|
|
2038
|
-
let
|
|
2039
|
-
const
|
|
2110
|
+
const mt = Bo.exports;
|
|
2111
|
+
let ot = 0;
|
|
2112
|
+
const Po = {
|
|
2040
2113
|
beforeCreate() {
|
|
2041
|
-
this.uuid =
|
|
2114
|
+
this.uuid = ot.toString(), ot += 1;
|
|
2042
2115
|
}
|
|
2043
2116
|
};
|
|
2044
|
-
var
|
|
2117
|
+
var $o = function() {
|
|
2045
2118
|
var t = this, n = t._self._c;
|
|
2046
2119
|
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" } })])])]);
|
|
2047
|
-
},
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2120
|
+
}, zo = [], Uo = /* @__PURE__ */ Y(
|
|
2121
|
+
Po,
|
|
2122
|
+
$o,
|
|
2123
|
+
zo,
|
|
2051
2124
|
!1,
|
|
2052
2125
|
null,
|
|
2053
2126
|
null
|
|
2054
2127
|
);
|
|
2055
|
-
const
|
|
2056
|
-
...
|
|
2128
|
+
const ko = Uo.exports, Wo = {}, Go = /* @__PURE__ */ oe({
|
|
2129
|
+
...Wo,
|
|
2057
2130
|
__name: "data-grid-static-icon",
|
|
2058
2131
|
props: {
|
|
2059
2132
|
colored: { type: Boolean, default: !1 },
|
|
@@ -2061,43 +2134,43 @@ const Po = Bo.exports, zo = {}, $o = /* @__PURE__ */ Q({
|
|
|
2061
2134
|
variant: { default: "no-value" }
|
|
2062
2135
|
},
|
|
2063
2136
|
setup(s) {
|
|
2064
|
-
const t = s, n =
|
|
2137
|
+
const t = s, n = m(() => {
|
|
2065
2138
|
switch (t.variant) {
|
|
2066
2139
|
case "checkmark":
|
|
2067
|
-
return
|
|
2140
|
+
return fn;
|
|
2068
2141
|
case "warning":
|
|
2069
|
-
return
|
|
2142
|
+
return gn;
|
|
2070
2143
|
case "error":
|
|
2071
|
-
return
|
|
2144
|
+
return ko;
|
|
2072
2145
|
case "cross":
|
|
2073
|
-
return
|
|
2146
|
+
return it;
|
|
2074
2147
|
case "no-value":
|
|
2075
|
-
return
|
|
2148
|
+
return He;
|
|
2076
2149
|
default:
|
|
2077
|
-
return
|
|
2150
|
+
return He;
|
|
2078
2151
|
}
|
|
2079
|
-
}), e =
|
|
2152
|
+
}), e = m(() => ({
|
|
2080
2153
|
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2081
|
-
})), o =
|
|
2082
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition:
|
|
2154
|
+
})), o = m(() => `b-data-grid-static-icon__${t.variant}`), l = m(() => _n.AUTO);
|
|
2155
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: vn };
|
|
2083
2156
|
}
|
|
2084
2157
|
});
|
|
2085
|
-
var
|
|
2158
|
+
var Ho = function() {
|
|
2086
2159
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2087
2160
|
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);
|
|
2088
|
-
},
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2161
|
+
}, Vo = [], Zo = /* @__PURE__ */ Y(
|
|
2162
|
+
Go,
|
|
2163
|
+
Ho,
|
|
2164
|
+
Vo,
|
|
2092
2165
|
!1,
|
|
2093
2166
|
null,
|
|
2094
2167
|
"f8532817"
|
|
2095
2168
|
);
|
|
2096
|
-
const
|
|
2097
|
-
i18n: { messages:
|
|
2169
|
+
const kl = Zo.exports, jo = {
|
|
2170
|
+
i18n: { messages: vt },
|
|
2098
2171
|
name: "bento-data-grid"
|
|
2099
|
-
},
|
|
2100
|
-
...
|
|
2172
|
+
}, qo = /* @__PURE__ */ oe({
|
|
2173
|
+
...jo,
|
|
2101
2174
|
props: {
|
|
2102
2175
|
/**
|
|
2103
2176
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2167,7 +2240,7 @@ const Pl = Go.exports, Wo = {
|
|
|
2167
2240
|
* {@see BentoFilterValues}
|
|
2168
2241
|
*/
|
|
2169
2242
|
filterValues: {
|
|
2170
|
-
type:
|
|
2243
|
+
type: Se.props.filterValues.type,
|
|
2171
2244
|
default: () => []
|
|
2172
2245
|
},
|
|
2173
2246
|
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
@@ -2184,7 +2257,7 @@ const Pl = Go.exports, Wo = {
|
|
|
2184
2257
|
* Filter bar search term useful to filter all the data by text
|
|
2185
2258
|
*/
|
|
2186
2259
|
filterSearchTerm: {
|
|
2187
|
-
type:
|
|
2260
|
+
type: Se.props.searchTerm.type,
|
|
2188
2261
|
default: void 0
|
|
2189
2262
|
},
|
|
2190
2263
|
/**
|
|
@@ -2199,6 +2272,13 @@ const Pl = Go.exports, Wo = {
|
|
|
2199
2272
|
type: Function,
|
|
2200
2273
|
default: (s) => s.id
|
|
2201
2274
|
},
|
|
2275
|
+
/**
|
|
2276
|
+
* Row actions propery that generates which button to show in row actions area
|
|
2277
|
+
*/
|
|
2278
|
+
rowActions: {
|
|
2279
|
+
type: [Function, Array],
|
|
2280
|
+
default: void 0
|
|
2281
|
+
},
|
|
2202
2282
|
/**
|
|
2203
2283
|
* If resize is enabled
|
|
2204
2284
|
*/
|
|
@@ -2361,218 +2441,224 @@ const Pl = Go.exports, Wo = {
|
|
|
2361
2441
|
}
|
|
2362
2442
|
},
|
|
2363
2443
|
emits: [
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2444
|
+
b.COLUMNS,
|
|
2445
|
+
b.COLUMN_RESIZE,
|
|
2446
|
+
b.ITEMS_PAGE,
|
|
2447
|
+
b.FILTER_SEARCH_INPUT,
|
|
2448
|
+
b.FILTER_SEARCH_CLEAR,
|
|
2449
|
+
b.NAVIGATE,
|
|
2450
|
+
b.NESTED_CONTENT_TOGGLED,
|
|
2451
|
+
b.UPDATE_COLUMNS,
|
|
2452
|
+
b.UPDATE_CONDENSED,
|
|
2453
|
+
b.UPDATE_FILTER_VALUES,
|
|
2454
|
+
b.UPDATE_FILTERS,
|
|
2455
|
+
b.UPDATE_FILTER_SEARCH_TERM,
|
|
2456
|
+
b.UPDATE_SHOW_MORE,
|
|
2457
|
+
b.UPDATE_PAGINATION,
|
|
2458
|
+
b.UPDATE_SELECTION,
|
|
2459
|
+
b.UPDATE_SORT_BY,
|
|
2460
|
+
b.ROW_CLICK,
|
|
2461
|
+
b.SELECT,
|
|
2462
|
+
b.SELECT_ALL_ACROSS_PAGES,
|
|
2463
|
+
b.SORT
|
|
2384
2464
|
],
|
|
2385
2465
|
setup(s, { expose: t, emit: n }) {
|
|
2386
|
-
const e = s, o =
|
|
2387
|
-
allowColumnDragAndDrop:
|
|
2388
|
-
columns:
|
|
2466
|
+
const e = s, o = Ne(), l = Ie(o), a = y(null), g = y(), _ = y({}), f = y(null), S = y(null), c = y(), p = y(null), r = y(null), {
|
|
2467
|
+
allowColumnDragAndDrop: u,
|
|
2468
|
+
columns: C,
|
|
2389
2469
|
columnPanel: h,
|
|
2390
|
-
data:
|
|
2391
|
-
lazyLoadType:
|
|
2392
|
-
loading:
|
|
2393
|
-
hasNestedContent:
|
|
2470
|
+
data: i,
|
|
2471
|
+
lazyLoadType: L,
|
|
2472
|
+
loading: w,
|
|
2473
|
+
hasNestedContent: D,
|
|
2394
2474
|
hasNestedRows: z,
|
|
2395
|
-
selectable:
|
|
2396
|
-
selection:
|
|
2397
|
-
selectableAcrossPages:
|
|
2398
|
-
stickyPagination:
|
|
2399
|
-
outline:
|
|
2400
|
-
pagination:
|
|
2401
|
-
} =
|
|
2402
|
-
|
|
2475
|
+
selectable: F,
|
|
2476
|
+
selection: A,
|
|
2477
|
+
selectableAcrossPages: E,
|
|
2478
|
+
stickyPagination: O,
|
|
2479
|
+
outline: U,
|
|
2480
|
+
pagination: v
|
|
2481
|
+
} = Ae(e), M = y(-1), { t: N } = ue(), I = m(() => d.value.filter((T) => T.frozen).length), V = Ee(
|
|
2482
|
+
Ln,
|
|
2403
2483
|
() => ({
|
|
2404
2484
|
isDataGridTemplate: !1,
|
|
2405
|
-
stickyTabs:
|
|
2406
|
-
tabsRef:
|
|
2485
|
+
stickyTabs: y(!1),
|
|
2486
|
+
tabsRef: y(null)
|
|
2407
2487
|
})
|
|
2408
|
-
), { isDataGridTemplate:
|
|
2409
|
-
columnDefs:
|
|
2410
|
-
onColumnWidthOverride:
|
|
2411
|
-
gridColumnWidthStyle:
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2488
|
+
), { isDataGridTemplate: k, stickyTabs: Z, tabsRef: $ } = V(), B = m(() => e.fitContent || k ? 0 : null), {
|
|
2489
|
+
columnDefs: d,
|
|
2490
|
+
onColumnWidthOverride: P,
|
|
2491
|
+
gridColumnWidthStyle: R,
|
|
2492
|
+
gridRowWidthStyle: x,
|
|
2493
|
+
isMeasuringColumnWidths: G,
|
|
2494
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: J,
|
|
2495
|
+
columns: se,
|
|
2496
|
+
totalWidthOfAllColumns: le,
|
|
2497
|
+
rowActionsMaxWidth: te
|
|
2498
|
+
} = Jn(C, i, a, _, f, {
|
|
2417
2499
|
hasColumnPanel: h,
|
|
2418
|
-
hasSelectableColumn:
|
|
2419
|
-
hasSelectableAcrossPages:
|
|
2420
|
-
hasNestedContent:
|
|
2500
|
+
hasSelectableColumn: F,
|
|
2501
|
+
hasSelectableAcrossPages: E,
|
|
2502
|
+
hasNestedContent: D,
|
|
2421
2503
|
hasNestedRows: z,
|
|
2422
|
-
allowColumnDragAndDrop:
|
|
2423
|
-
isDataGridTemplate:
|
|
2424
|
-
}),
|
|
2425
|
-
(T ===
|
|
2426
|
-
},
|
|
2427
|
-
() => e.stickyFilters ? `${
|
|
2428
|
-
),
|
|
2429
|
-
() => `${
|
|
2504
|
+
allowColumnDragAndDrop: u,
|
|
2505
|
+
isDataGridTemplate: k
|
|
2506
|
+
}), j = (T, ...W) => {
|
|
2507
|
+
(T === b.COLUMNS || T === b.UPDATE_COLUMNS) && ([se.value] = W), n(T, ...W);
|
|
2508
|
+
}, fe = Ye($, Z), ve = m(
|
|
2509
|
+
() => e.stickyFilters ? `${fe.value}px` : null
|
|
2510
|
+
), Fe = Ye(S, Le(e, "stickyFilters")), pt = m(
|
|
2511
|
+
() => `${Fe.value + fe.value}px`
|
|
2430
2512
|
), {
|
|
2431
|
-
sortedColumns:
|
|
2513
|
+
sortedColumns: Me,
|
|
2432
2514
|
columnSets: me,
|
|
2433
|
-
isOnlyOneVisibleColumn:
|
|
2434
|
-
onConfigSettingsUpdate:
|
|
2435
|
-
onConfigSettingsColumnsUpdate:
|
|
2436
|
-
onConfigSettingsColumnUpdate:
|
|
2437
|
-
} =
|
|
2515
|
+
isOnlyOneVisibleColumn: wt,
|
|
2516
|
+
onConfigSettingsUpdate: St,
|
|
2517
|
+
onConfigSettingsColumnsUpdate: Lt,
|
|
2518
|
+
onConfigSettingsColumnUpdate: Et
|
|
2519
|
+
} = ls(d, j), { hoveredOverColumn: Rt, hoveredOverColumnState: yt } = is(
|
|
2438
2520
|
me,
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
), { draggingColumns:
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2521
|
+
F,
|
|
2522
|
+
U,
|
|
2523
|
+
J
|
|
2524
|
+
), { draggingColumns: bt, draggingEventsForColumns: At, draggingEventsForRowCell: Ot, onMoveColumnByOffset: Nt } = os(Me, u, j), { onAllRowSelect: Tt, onRowSelect: It, onNestedRowSelect: Dt, selectedItems: Be, allItemsSelectedState: xt } = Qn(
|
|
2525
|
+
A,
|
|
2526
|
+
j,
|
|
2527
|
+
i,
|
|
2446
2528
|
e.getDataItemId,
|
|
2447
2529
|
e.isDataItemDisabled
|
|
2448
|
-
), { navigationInput:
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2530
|
+
), { navigationInput: Ft } = ts(f, C, F), { isLazyLoad: pe, isInfiniteScroll: Mt, verticalScrollPosition: Pe, emitLazyLoadEvent: Bt } = ss(
|
|
2531
|
+
L,
|
|
2532
|
+
p,
|
|
2533
|
+
a,
|
|
2534
|
+
w,
|
|
2535
|
+
j
|
|
2454
2536
|
), {
|
|
2455
|
-
updateScrollPosition:
|
|
2456
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
2457
|
-
syncVirtualScrollerWithBody:
|
|
2458
|
-
hasLeftOverflow:
|
|
2459
|
-
hasRightOverflow:
|
|
2460
|
-
horizontalScrollbarConditionalClasses:
|
|
2461
|
-
} =
|
|
2537
|
+
updateScrollPosition: Pt,
|
|
2538
|
+
updateScrollPositionOnFrozenColumnsNavigation: $t,
|
|
2539
|
+
syncVirtualScrollerWithBody: zt,
|
|
2540
|
+
hasLeftOverflow: we,
|
|
2541
|
+
hasRightOverflow: $e,
|
|
2542
|
+
horizontalScrollbarConditionalClasses: Ut
|
|
2543
|
+
} = as(a, g, Pe, r, {
|
|
2462
2544
|
isLazyLoad: pe,
|
|
2463
|
-
pagination:
|
|
2464
|
-
stickyPagination:
|
|
2465
|
-
isDataGridTemplate:
|
|
2545
|
+
pagination: v,
|
|
2546
|
+
stickyPagination: O,
|
|
2547
|
+
isDataGridTemplate: k
|
|
2466
2548
|
}), ze = () => {
|
|
2467
2549
|
c.value.isClearAllVisible ? c.value.clearAllFilters() : c.value.isResetAllVisible && c.value.resetAllFilters();
|
|
2468
|
-
},
|
|
2469
|
-
var T,
|
|
2550
|
+
}, kt = m(() => {
|
|
2551
|
+
var T, W;
|
|
2470
2552
|
return {
|
|
2471
2553
|
...e.emptyState,
|
|
2472
|
-
variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((
|
|
2554
|
+
variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((W = e.emptyState) == null ? void 0 : W.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
2473
2555
|
};
|
|
2474
|
-
}),
|
|
2475
|
-
[`b-data-grid--${
|
|
2476
|
-
[`b-data-grid--${
|
|
2477
|
-
[`b-data-grid--${
|
|
2478
|
-
[`b-data-grid--${
|
|
2479
|
-
[`b-data-grid--${
|
|
2480
|
-
[`b-data-grid--${
|
|
2481
|
-
})),
|
|
2556
|
+
}), Wt = m(() => ({
|
|
2557
|
+
[`b-data-grid--${re.OUTLINE}`]: e.outline,
|
|
2558
|
+
[`b-data-grid--${re.SCROLL}`]: e.fitContent || pe.value,
|
|
2559
|
+
[`b-data-grid--${re.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
2560
|
+
[`b-data-grid--${re.OVERFLOW_SHADOW_LEFT}`]: we.value && !I.value,
|
|
2561
|
+
[`b-data-grid--${re.OVERFLOW_SHADOW_RIGHT}`]: $e.value && e.rowActions === void 0,
|
|
2562
|
+
[`b-data-grid--${re.NO_SPACING_TOP}`]: e.noSpacingTop
|
|
2563
|
+
})), Gt = m(() => ({
|
|
2482
2564
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
2483
|
-
})),
|
|
2484
|
-
"b-data-grid__filters--sticky": !!e.stickyFilters ||
|
|
2485
|
-
})),
|
|
2486
|
-
var T,
|
|
2565
|
+
})), Ht = m(() => me.value.findIndex((T) => T.columnSet.length)), Vt = m(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && I.value === 1) || we.value), Zt = m(() => ({
|
|
2566
|
+
"b-data-grid__filters--sticky": !!e.stickyFilters || k
|
|
2567
|
+
})), jt = m(() => {
|
|
2568
|
+
var T, W, X, de, _e, ge;
|
|
2487
2569
|
return {
|
|
2488
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
2489
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
2490
|
-
"b-data-grid__pagination--sticky": !!e.stickyPagination ||
|
|
2570
|
+
"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,
|
|
2571
|
+
"b-data-grid__pagination--padding-right-unset": ((ge = (_e = (de = e.columns) == null ? void 0 : de[e.columns.length - 1]) == null ? void 0 : _e.padding) == null ? void 0 : ge.right) === !1,
|
|
2572
|
+
"b-data-grid__pagination--sticky": !!e.stickyPagination || k
|
|
2491
2573
|
};
|
|
2492
|
-
}),
|
|
2493
|
-
const
|
|
2494
|
-
T !== null && (
|
|
2495
|
-
|
|
2496
|
-
});
|
|
2497
|
-
}, Vt = (T, U) => {
|
|
2498
|
-
const J = T;
|
|
2499
|
-
T !== null && (J != null && J.gridcellRefs) && Object.entries(J == null ? void 0 : J.gridcellRefs).map(([ee, ve]) => {
|
|
2500
|
-
var ue;
|
|
2501
|
-
((ue = f.value) == null ? void 0 : ue[ee]) === void 0 && (f.value = { ...f.value, [ee]: [] }), f.value[ee][U] = ve;
|
|
2574
|
+
}), qt = (T) => {
|
|
2575
|
+
const W = T;
|
|
2576
|
+
T !== null && (W != null && W.columnHeaderRefs) && Object.entries(W == null ? void 0 : W.columnHeaderRefs).forEach(([X, de]) => {
|
|
2577
|
+
_.value[X] = de;
|
|
2502
2578
|
});
|
|
2503
|
-
},
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2579
|
+
}, Yt = (T, W) => {
|
|
2580
|
+
var de, _e;
|
|
2581
|
+
const X = T;
|
|
2582
|
+
T !== null && (X != null && X.gridcellRefs && Object.entries(X == null ? void 0 : X.gridcellRefs).map(([ge, dn]) => {
|
|
2583
|
+
var Ge;
|
|
2584
|
+
((Ge = f.value) == null ? void 0 : Ge[ge]) === void 0 && (f.value = { ...f.value, [ge]: [] }), f.value[ge][W] = dn;
|
|
2585
|
+
}), e.rowActions !== void 0 && (X != null && X.rowActionsRef) && (te.value = Math.max(
|
|
2586
|
+
te.value,
|
|
2587
|
+
((_e = (de = X.rowActionsRef) == null ? void 0 : de[0]) == null ? void 0 : _e.offsetWidth) ?? 0
|
|
2588
|
+
)));
|
|
2589
|
+
}, Xt = (T, W) => {
|
|
2590
|
+
e.allowRowClicks && j(b.ROW_CLICK, T, W);
|
|
2591
|
+
}, Kt = (T) => {
|
|
2592
|
+
M.value = T;
|
|
2593
|
+
}, Jt = m(() => !!e.selectableAcrossPages && !!e.pagination), Qt = m(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), en = mn({
|
|
2594
|
+
label: o != null && o.header ? pn(o)("header") : null,
|
|
2509
2595
|
defaultFallback: "data grid"
|
|
2510
|
-
}),
|
|
2596
|
+
}), Ue = m(() => {
|
|
2511
2597
|
var T;
|
|
2512
|
-
return ((T =
|
|
2513
|
-
}),
|
|
2514
|
-
|
|
2515
|
-
},
|
|
2516
|
-
|
|
2598
|
+
return ((T = Be.value) == null ? void 0 : T.length) ?? 0;
|
|
2599
|
+
}), tn = m(() => e.bulkActions && Ue.value > 0), nn = (T) => j(b.COLUMN_RESIZE, T), sn = (T) => {
|
|
2600
|
+
j(b.UPDATE_SORT_BY, T), j(b.SORT, T);
|
|
2601
|
+
}, on = (T, W) => {
|
|
2602
|
+
j(b.NAVIGATE, T), j(b.UPDATE_PAGINATION, {
|
|
2517
2603
|
...e.pagination,
|
|
2518
|
-
size:
|
|
2604
|
+
size: W,
|
|
2519
2605
|
page: T
|
|
2520
2606
|
});
|
|
2521
|
-
},
|
|
2522
|
-
|
|
2523
|
-
},
|
|
2524
|
-
|
|
2525
|
-
},
|
|
2526
|
-
|
|
2527
|
-
},
|
|
2528
|
-
|
|
2607
|
+
}, ln = (T) => {
|
|
2608
|
+
j(b.ITEMS_PAGE, T);
|
|
2609
|
+
}, an = () => {
|
|
2610
|
+
j(b.FILTER_SEARCH_CLEAR);
|
|
2611
|
+
}, rn = (T) => {
|
|
2612
|
+
j(b.UPDATE_FILTER_SEARCH_TERM, T), j(b.FILTER_SEARCH_INPUT, T);
|
|
2613
|
+
}, ke = m(() => C.value.some((T) => T.mandatory));
|
|
2614
|
+
ke.value || rt(
|
|
2529
2615
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2530
2616
|
);
|
|
2531
|
-
const
|
|
2532
|
-
return
|
|
2617
|
+
const We = Ee(Sn, () => null);
|
|
2618
|
+
return We(e.tabTitle), at(ht, Le(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: ze }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: g, columnHeaderRefs: _, gridcellRefs: f, filtersRef: S, filterBarRef: c, verticalScrollPositionRef: p, virtualHorizontalScrollbarRef: r, allowColumnDragAndDrop: u, columns: C, columnPanel: h, data: i, lazyLoadType: L, loading: w, hasNestedContent: D, hasNestedRows: z, selectable: F, selection: A, selectableAcrossPages: E, stickyPagination: O, outline: U, pagination: v, hoveredRowIndex: M, t: N, frozenColumnsLength: I, registerDatagridInDataGridTemplate: V, isDataGridTemplate: k, stickyTabs: Z, tabsRef: $, computedColumnsTabIndex: B, columnDefs: d, onColumnWidthOverride: P, gridColumnWidthStyle: R, gridRowWidthStyle: x, isMeasuringColumnWidths: G, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: J, localColumnsState: se, totalWidthOfAllColumns: le, rowActionsMaxWidth: te, definedEmitsFunction: n, emit: j, stickyFiltersHeight: fe, computedStickyFiltersTopPosition: ve, columnHeadersHeight: Fe, computedColumnHeadersTopPosition: pt, sortedColumns: Me, columnSets: me, isOnlyOneVisibleColumn: wt, onConfigSettingsUpdate: St, onConfigSettingsColumnsUpdate: Lt, onConfigSettingsColumnUpdate: Et, hoveredOverColumn: Rt, hoveredOverColumnState: yt, draggingColumns: bt, draggingEventsForColumns: At, draggingEventsForRowCell: Ot, onMoveColumnByOffset: Nt, onAllRowSelect: Tt, onRowSelect: It, onNestedRowSelect: Dt, selectedItems: Be, allItemsSelectedState: xt, navigationInput: Ft, isLazyLoad: pe, isInfiniteScroll: Mt, verticalScrollPosition: Pe, emitLazyLoadEvent: Bt, updateScrollPosition: Pt, updateScrollPositionOnFrozenColumnsNavigation: $t, syncVirtualScrollerWithBody: zt, hasLeftOverflow: we, hasRightOverflow: $e, horizontalScrollbarConditionalClasses: Ut, onEmptyStateClearResetButtonClick: ze, limitedEmptyStateProps: kt, conditionalGridClasses: Wt, conditionalGridBodyClasses: Gt, computedColumnPanelAlignment: Ht, showFrozenColumnsSeparator: Vt, conditionalFilterClasses: Zt, conditionalPaginationClasses: jt, registerColumnHeaderRefs: qt, registerRowCellRefs: Yt, onRowClick: Xt, onCellHover: Kt, selectableAcrossPagesComputed: Jt, ariaGridRole: Qt, ariaGridHeaderText: en, itemsSelectedCounter: Ue, showActionBar: tn, onColumnResized: nn, onSort: sn, onPaginationNavigate: on, onItemsPerPageChange: ln, onSearchTermCleared: an, onSearchTermInput: rn, hasMandatoryColumn: ke, setTitle: We, BentoActionBar: Cn, BentoPagination: hn, BentoLoadingIndicator: Te, BentoTypography: he, BentoDataGridConfigSettings: ao, DataGridColumns: Gs, DataGridLazyLoad: go, DataGridRow: mt, BentoDatagridEvent: b, BentoFilterBar: Se, BentoEmptyState: wn };
|
|
2533
2619
|
}
|
|
2534
2620
|
});
|
|
2535
|
-
var
|
|
2621
|
+
var Yo = function() {
|
|
2536
2622
|
var o;
|
|
2537
2623
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2538
|
-
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 } }, [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, "filter-values": t.filterValues, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (
|
|
2539
|
-
return [
|
|
2624
|
+
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 } }, [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, "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 } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, _) {
|
|
2625
|
+
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (f) => e.registerColumnHeaderRefs(f), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": g, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "truncate-column-headers": t.truncateColumnHeaders }, on: { "column-hover": function(f) {
|
|
2540
2626
|
e.hoveredOverColumn = f;
|
|
2541
2627
|
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(f) {
|
|
2542
2628
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
2543
|
-
}, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(f,
|
|
2544
|
-
return { key:
|
|
2545
|
-
return [t._t(
|
|
2629
|
+
}, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(f, S) {
|
|
2630
|
+
return { key: S, fn: function(c) {
|
|
2631
|
+
return [t._t(S, null, null, c)];
|
|
2546
2632
|
} };
|
|
2547
2633
|
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
2548
|
-
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(
|
|
2549
|
-
var
|
|
2550
|
-
return n(e.DataGridRow, { key:
|
|
2634
|
+
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(l, a) {
|
|
2635
|
+
var g, _;
|
|
2636
|
+
return n(e.DataGridRow, { key: a, ref: (f) => e.registerRowCellRefs(f, a), refInFor: !0, style: e.gridRowWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-last-child": a + 1 === ((g = e.data) == null ? void 0 : g.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": (_ = e.data) == null ? void 0 : _.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(f) {
|
|
2551
2637
|
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, f);
|
|
2552
|
-
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(f,
|
|
2553
|
-
return { key:
|
|
2554
|
-
return [t._t(
|
|
2638
|
+
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(f, S) {
|
|
2639
|
+
return { key: S, fn: function(c) {
|
|
2640
|
+
return [t._t(S, null, null, c)];
|
|
2555
2641
|
} };
|
|
2556
2642
|
})], null, !0) });
|
|
2557
|
-
}), 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", class: e.horizontalScrollbarConditionalClasses, 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", { 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(
|
|
2643
|
+
}), 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", class: e.horizontalScrollbarConditionalClasses, 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", { 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) {
|
|
2558
2644
|
return e.onAllRowSelect(!1);
|
|
2559
2645
|
} } }) : t._e()], 1);
|
|
2560
|
-
},
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2646
|
+
}, Xo = [], Ko = /* @__PURE__ */ Y(
|
|
2647
|
+
qo,
|
|
2648
|
+
Yo,
|
|
2649
|
+
Xo,
|
|
2564
2650
|
!1,
|
|
2565
2651
|
null,
|
|
2566
|
-
"
|
|
2652
|
+
"70019a06"
|
|
2567
2653
|
);
|
|
2568
|
-
const
|
|
2654
|
+
const Wl = Ko.exports;
|
|
2569
2655
|
export {
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2656
|
+
ye as B,
|
|
2657
|
+
kl as a,
|
|
2658
|
+
re as b,
|
|
2659
|
+
ce as c,
|
|
2660
|
+
Wl as d,
|
|
2661
|
+
b as e,
|
|
2576
2662
|
Ce as f
|
|
2577
2663
|
};
|
|
2578
|
-
//# sourceMappingURL=data-grid.
|
|
2664
|
+
//# sourceMappingURL=data-grid.C8S9cY5p.js.map
|