@adyen/bento-vue2 1.31.1 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +0 -2
- package/dist/@types/index.d.ts +4 -2
- package/dist/accordion.js +1 -1
- 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/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.DmnrjNzw.js → accordion-item.CNYpvxwN.js} +2 -2
- package/dist/chunks/{accordion-item.DmnrjNzw.js.map → accordion-item.CNYpvxwN.js.map} +1 -1
- package/dist/chunks/{action-bar.B_0DvTPe.js → action-bar.Ds_ofJs6.js} +6 -6
- package/dist/chunks/{action-bar.B_0DvTPe.js.map → action-bar.Ds_ofJs6.js.map} +1 -1
- package/dist/chunks/{alert.CJyTM4Az.js → alert.Ba2hSVeM.js} +3 -3
- package/dist/chunks/{alert.CJyTM4Az.js.map → alert.Ba2hSVeM.js.map} +1 -1
- package/dist/chunks/{avatar.tSIC1ahz.js → avatar.DohItrb9.js} +2 -2
- package/dist/chunks/{avatar.tSIC1ahz.js.map → avatar.DohItrb9.js.map} +1 -1
- package/dist/chunks/{base-button.DER7_IsF.js → base-button.-qw8sZSY.js} +2 -2
- package/dist/chunks/{base-button.DER7_IsF.js.map → base-button.-qw8sZSY.js.map} +1 -1
- package/dist/chunks/{base-modal.ChqzRaIU.js → base-modal.B17Ib1QQ.js} +5 -5
- package/dist/chunks/{base-modal.ChqzRaIU.js.map → base-modal.B17Ib1QQ.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ZDejXKrX.js → button-actions-with-menu.K8p3AG8r.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ZDejXKrX.js.map → button-actions-with-menu.K8p3AG8r.js.map} +1 -1
- package/dist/chunks/{button-actions.BNTiClWe.js → button-actions.IJs0hN8c.js} +3 -3
- package/dist/chunks/{button-actions.BNTiClWe.js.map → button-actions.IJs0hN8c.js.map} +1 -1
- package/dist/chunks/{button.DhAUh5JA.js → button.qOf7CXY2.js} +3 -3
- package/dist/chunks/{button.DhAUh5JA.js.map → button.qOf7CXY2.js.map} +1 -1
- package/dist/chunks/{calendar.QEa4jeX-.js → calendar.etLGotqH.js} +4 -4
- package/dist/chunks/{calendar.QEa4jeX-.js.map → calendar.etLGotqH.js.map} +1 -1
- package/dist/chunks/{card.Bzc_8gg1.js → card.-BYuiE_X.js} +3 -3
- package/dist/chunks/{card.Bzc_8gg1.js.map → card.-BYuiE_X.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BSOHcerG.js → checkbox-group.Bj9gURHB.js} +5 -5
- package/dist/chunks/{checkbox-group.BSOHcerG.js.map → checkbox-group.Bj9gURHB.js.map} +1 -1
- package/dist/chunks/{checkbox.BP2_1_qF.js → checkbox.CKQZXIR3.js} +4 -4
- package/dist/chunks/{checkbox.BP2_1_qF.js.map → checkbox.CKQZXIR3.js.map} +1 -1
- package/dist/chunks/{code-snippet.njEtbQlt.js → code-snippet.Dr7HvCcg.js} +37 -37
- package/dist/chunks/{code-snippet.njEtbQlt.js.map → code-snippet.Dr7HvCcg.js.map} +1 -1
- package/dist/chunks/{controls-group.Xc8GU6VO.js → controls-group.WoEXCpkM.js} +3 -3
- package/dist/chunks/{controls-group.Xc8GU6VO.js.map → controls-group.WoEXCpkM.js.map} +1 -1
- package/dist/chunks/{copy.9yVc8L5b.js → copy.CIuoE2VU.js} +3 -3
- package/dist/chunks/{copy.9yVc8L5b.js.map → copy.CIuoE2VU.js.map} +1 -1
- package/dist/chunks/{country.KayLT0zy.js → country.DeYdzMXh.js} +2 -2
- package/dist/chunks/{country.KayLT0zy.js.map → country.DeYdzMXh.js.map} +1 -1
- package/dist/chunks/{currency.H7n7RQiX.js → currency.Cfq_Yw2V.js} +2 -2
- package/dist/chunks/{currency.H7n7RQiX.js.map → currency.Cfq_Yw2V.js.map} +1 -1
- package/dist/chunks/{dashboard-section.COlHzwkB.js → dashboard-section.CKy3tW-3.js} +3 -3
- package/dist/chunks/{dashboard-section.COlHzwkB.js.map → dashboard-section.CKy3tW-3.js.map} +1 -1
- package/dist/chunks/{dashed-underline.C0lIPy0T.js → dashed-underline.OyLCDT1U.js} +4 -4
- package/dist/chunks/{dashed-underline.C0lIPy0T.js.map → dashed-underline.OyLCDT1U.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D2pO9uS9.js → data-grid-template.CxaInpI8.js} +3 -3
- package/dist/chunks/{data-grid-template.D2pO9uS9.js.map → data-grid-template.CxaInpI8.js.map} +1 -1
- package/dist/chunks/{data-grid.VZ1STYt0.js → data-grid.Dsv60eRz.js} +501 -498
- package/dist/chunks/{data-grid.VZ1STYt0.js.map → data-grid.Dsv60eRz.js.map} +1 -1
- package/dist/chunks/{date-picker.MKbisqpp.js → date-picker.CZ34YMMu.js} +17 -17
- package/dist/chunks/{date-picker.MKbisqpp.js.map → date-picker.CZ34YMMu.js.map} +1 -1
- package/dist/chunks/{date-range-picker.5zSN9d5P.js → date-range-picker.C__cQBs3.js} +25 -25
- package/dist/chunks/{date-range-picker.5zSN9d5P.js.map → date-range-picker.C__cQBs3.js.map} +1 -1
- package/dist/chunks/{date.DKjxxR6P.js → date.DQaxR7TF.js} +2 -2
- package/dist/chunks/{date.DKjxxR6P.js.map → date.DQaxR7TF.js.map} +1 -1
- package/dist/chunks/{dialog-page.DAh0M4mT.js → dialog-page.Cc-XASGB.js} +31 -32
- package/dist/chunks/{dialog-page.DAh0M4mT.js.map → dialog-page.Cc-XASGB.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Yx8EPd6W.js → dropdown-default-textbox.BM9qsdzQ.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.Yx8EPd6W.js.map → dropdown-default-textbox.BM9qsdzQ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.ChMjZXqI.js → dropdown-tag.DEqYdqVG.js} +6 -6
- package/dist/chunks/{dropdown-tag.ChMjZXqI.js.map → dropdown-tag.DEqYdqVG.js.map} +1 -1
- package/dist/chunks/{dropdown.D-9cUSSo.js → dropdown.Bn6SRkU5.js} +18 -18
- package/dist/chunks/{dropdown.D-9cUSSo.js.map → dropdown.Bn6SRkU5.js.map} +1 -1
- package/dist/chunks/{empty-state.BqVOj4v1.js → empty-state.CWy3y5Ly.js} +3 -3
- package/dist/chunks/{empty-state.BqVOj4v1.js.map → empty-state.CWy3y5Ly.js.map} +1 -1
- package/dist/chunks/{error-message.IjcYmSSd.js → error-message.epR1WJH2.js} +3 -3
- package/dist/chunks/{error-message.IjcYmSSd.js.map → error-message.epR1WJH2.js.map} +1 -1
- package/dist/chunks/{filter-bar.7nGTSoYh.js → filter-bar.Dcsv7a4q.js} +25 -25
- package/dist/chunks/filter-bar.Dcsv7a4q.js.map +1 -0
- package/dist/chunks/{fixed-scroller.Bq1AgPnw.js → fixed-scroller.wvGW5A2g.js} +2 -2
- package/dist/chunks/{fixed-scroller.Bq1AgPnw.js.map → fixed-scroller.wvGW5A2g.js.map} +1 -1
- package/dist/chunks/{footer-actions.C8aAV7xl.js → footer-actions.B6Q5ybfw.js} +4 -4
- package/dist/chunks/{footer-actions.C8aAV7xl.js.map → footer-actions.B6Q5ybfw.js.map} +1 -1
- package/dist/chunks/{form-layout-title.BzNU0B72.js → form-layout-title.ChRqPBDL.js} +3 -3
- package/dist/chunks/{form-layout-title.BzNU0B72.js.map → form-layout-title.ChRqPBDL.js.map} +1 -1
- package/dist/chunks/{header.Z0INnUEd.js → header.jOE8ctvn.js} +5 -5
- package/dist/chunks/{header.Z0INnUEd.js.map → header.jOE8ctvn.js.map} +1 -1
- package/dist/chunks/{info-icon.BkVcFKkT.js → info-icon.DQI7sjBY.js} +2 -2
- package/dist/chunks/{info-icon.BkVcFKkT.js.map → info-icon.DQI7sjBY.js.map} +1 -1
- package/dist/chunks/{input-field.DMBpk8py.js → input-field.mEo-bCtk.js} +4 -4
- package/dist/chunks/{input-field.DMBpk8py.js.map → input-field.mEo-bCtk.js.map} +1 -1
- package/dist/chunks/{inspector.types.BbPF5hmc.js → inspector.types.l7r-FN49.js} +3 -3
- package/dist/chunks/{inspector.types.BbPF5hmc.js.map → inspector.types.l7r-FN49.js.map} +1 -1
- package/dist/chunks/{link.DJ1A53gF.js → link.CjFBXE3D.js} +2 -2
- package/dist/chunks/{link.DJ1A53gF.js.map → link.CjFBXE3D.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.cRJfigp-.js → listbox-option-tag.BXz3dHfF.js} +3 -3
- package/dist/chunks/{listbox-option-tag.cRJfigp-.js.map → listbox-option-tag.BXz3dHfF.js.map} +1 -1
- package/dist/chunks/{loading-button.CcYmeIl8.js → loading-button.Ba8So0d6.js} +2 -2
- package/dist/chunks/{loading-button.CcYmeIl8.js.map → loading-button.Ba8So0d6.js.map} +1 -1
- package/dist/chunks/{menu.C8ZmHcw8.js → menu.e-PrV4Wl.js} +5 -5
- package/dist/chunks/{menu.C8ZmHcw8.js.map → menu.e-PrV4Wl.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CO8EYRRT.js → modal-fullscreen.PFFfWzPD.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CO8EYRRT.js.map → modal-fullscreen.PFFfWzPD.js.map} +1 -1
- package/dist/chunks/{modal.DfjUKkg-.js → modal.DPrBUWDe.js} +6 -6
- package/dist/chunks/{modal.DfjUKkg-.js.map → modal.DPrBUWDe.js.map} +1 -1
- package/dist/chunks/{pagination.Cfx0W4Ol.js → pagination.CT08YpqC.js} +4 -4
- package/dist/chunks/{pagination.Cfx0W4Ol.js.map → pagination.CT08YpqC.js.map} +1 -1
- package/dist/chunks/{payment-method.D9Qx-s4V.js → payment-method.BnLkBqVQ.js} +2 -2
- package/dist/chunks/{payment-method.D9Qx-s4V.js.map → payment-method.BnLkBqVQ.js.map} +1 -1
- package/dist/chunks/{popover.BUB-a17X.js → popover.Du6UI6Yh.js} +4 -4
- package/dist/chunks/{popover.BUB-a17X.js.map → popover.Du6UI6Yh.js.map} +1 -1
- package/dist/chunks/{radio-group.BD2V4FKN.js → radio-group.D650KrHa.js} +5 -5
- package/dist/chunks/{radio-group.BD2V4FKN.js.map → radio-group.D650KrHa.js.map} +1 -1
- package/dist/chunks/{search-bar.TiQbXYj4.js → search-bar.hxEJk-w0.js} +2 -2
- package/dist/chunks/{search-bar.TiQbXYj4.js.map → search-bar.hxEJk-w0.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DgAWiJMb.js → secondary-nav.Bsi7Dj0s.js} +3 -3
- package/dist/chunks/{secondary-nav.DgAWiJMb.js.map → secondary-nav.Bsi7Dj0s.js.map} +1 -1
- package/dist/chunks/{segmented-control.C05AwFnZ.js → segmented-control.BeXMVbce.js} +3 -3
- package/dist/chunks/{segmented-control.C05AwFnZ.js.map → segmented-control.BeXMVbce.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DJlp94TC.js → selection-card-group.D5DRYhrw.js} +4 -4
- package/dist/chunks/{selection-card-group.DJlp94TC.js.map → selection-card-group.D5DRYhrw.js.map} +1 -1
- package/dist/chunks/{sidepanel.CS8HWC7H.js → sidepanel.DRP_jFVq.js} +5 -5
- package/dist/chunks/{sidepanel.CS8HWC7H.js.map → sidepanel.DRP_jFVq.js.map} +1 -1
- package/dist/chunks/{status.types.BhbOYpZx.js → status.types.CcGZuqg5.js} +2 -2
- package/dist/chunks/{status.types.BhbOYpZx.js.map → status.types.CcGZuqg5.js.map} +1 -1
- package/dist/chunks/{step.CZqxgAkd.js → step.RkChji1p.js} +3 -3
- package/dist/chunks/{step.CZqxgAkd.js.map → step.RkChji1p.js.map} +1 -1
- package/dist/chunks/{structured-list-item.8NE9UKBY.js → structured-list-item.BfEARGrz.js} +6 -6
- package/dist/chunks/{structured-list-item.8NE9UKBY.js.map → structured-list-item.BfEARGrz.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.Cl-LVb2n.js → summary-grid-item-custom.Cjv109f8.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.Cl-LVb2n.js.map → summary-grid-item-custom.Cjv109f8.js.map} +1 -1
- package/dist/chunks/{tabs.CE65f3E_.js → tabs.BLCcrVbI.js} +3 -3
- package/dist/chunks/{tabs.CE65f3E_.js.map → tabs.BLCcrVbI.js.map} +1 -1
- package/dist/chunks/{tag.B2o39TYl.js → tag.4Vqj8tm4.js} +4 -4
- package/dist/chunks/tag.4Vqj8tm4.js.map +1 -0
- package/dist/chunks/{textarea.DzUvpK3q.js → textarea.DM2Cwx14.js} +4 -4
- package/dist/chunks/{textarea.DzUvpK3q.js.map → textarea.DM2Cwx14.js.map} +1 -1
- package/dist/chunks/{timeline-item.BktaQxIY.js → timeline-item.B2c3eI3L.js} +9 -9
- package/dist/chunks/{timeline-item.BktaQxIY.js.map → timeline-item.B2c3eI3L.js.map} +1 -1
- package/dist/chunks/{toast.0EYDj8o-.js → toast.rrKNWeM6.js} +4 -4
- package/dist/chunks/{toast.0EYDj8o-.js.map → toast.rrKNWeM6.js.map} +1 -1
- package/dist/chunks/{toggle-button.2U-vbQhk.js → toggle-button.CBuKACw5.js} +2 -2
- package/dist/chunks/{toggle-button.2U-vbQhk.js.map → toggle-button.CBuKACw5.js.map} +1 -1
- package/dist/chunks/{toggle.CiOVTWlk.js → toggle.DtrStAja.js} +2 -2
- package/dist/chunks/{toggle.CiOVTWlk.js.map → toggle.DtrStAja.js.map} +1 -1
- package/dist/chunks/{tooltip.BmKdsFTL.js → tooltip.4f_qwm8o.js} +2 -2
- package/dist/chunks/{tooltip.BmKdsFTL.js.map → tooltip.4f_qwm8o.js.map} +1 -1
- package/dist/chunks/{tutorial.Cc58Yk8q.js → tutorial.DUjlu3SH.js} +5 -5
- package/dist/chunks/{tutorial.Cc58Yk8q.js.map → tutorial.DUjlu3SH.js.map} +1 -1
- package/dist/chunks/{typography.Bjtu3Gca.js → typography.CdCYtxYj.js} +1 -2
- package/dist/chunks/{typography.Bjtu3Gca.js.map → typography.CdCYtxYj.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js → use-bento-toast-controller.C66wCsav.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BifdE4ak.js.map → use-bento-toast-controller.C66wCsav.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DgARPcHp.js → use-cached-selected-values.DWQ8SMSi.js} +332 -328
- package/dist/chunks/use-cached-selected-values.DWQ8SMSi.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.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/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +63 -63
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- 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/payment-method.js +1 -1
- package/dist/popover.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/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- 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/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -45
- package/package.json +3 -3
- package/dist/assets/badge.css +0 -1
- package/dist/badge.js +0 -57
- package/dist/badge.js.map +0 -1
- package/dist/chunks/filter-bar.7nGTSoYh.js.map +0 -1
- package/dist/chunks/tag.B2o39TYl.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DgARPcHp.js.map +0 -1
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as b, reactive as Se, toRefs as Ee, computed as R, watchEffect as kt, watch as H, onMounted as Oe, nextTick as V, onUnmounted as Je, onBeforeUpdate as Ht, defineComponent as ee, toRef as Qe, provide as Vt, useSlots as Zt, inject as Fe } from "vue";
|
|
2
2
|
import { C as jt } from "./checkmark-circle-fill.DVl6QSwm.js";
|
|
3
3
|
import { W as qt } from "./warning-filled.CLKRzGMT.js";
|
|
4
4
|
import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
5
|
import { C as et } from "./cross.CsUPDmaA.js";
|
|
6
6
|
import { N as Pe } from "./checkbox-input.DwDwI2BD.js";
|
|
7
7
|
import { d as Yt } from "./popper-container.By1AW5Od.js";
|
|
8
|
-
import { K, B as Xt } from "./tooltip.
|
|
9
|
-
import { B as Kt } from "./action-bar.
|
|
10
|
-
import { B as Jt } from "./pagination.
|
|
8
|
+
import { K, B as Xt } from "./tooltip.4f_qwm8o.js";
|
|
9
|
+
import { B as Kt } from "./action-bar.Ds_ofJs6.js";
|
|
10
|
+
import { B as Jt } from "./pagination.CT08YpqC.js";
|
|
11
11
|
import { B as tt } from "./loading-indicator.DXc7I1Lm.js";
|
|
12
|
-
import { B as he, p as nt } from "./typography.
|
|
12
|
+
import { B as he, p as nt } from "./typography.CdCYtxYj.js";
|
|
13
13
|
import { u as Qt } from "./aria-label.CaUURpnB.js";
|
|
14
14
|
import { g as en } from "./get-slot-text.Cgn-E48s.js";
|
|
15
15
|
import { u as se } from "./i18n.BQkEbtPM.js";
|
|
16
|
-
import { B as tn } from "./empty-state.
|
|
17
|
-
import { B as me } from "./filter-bar.
|
|
16
|
+
import { B as tn } from "./empty-state.CWy3y5Ly.js";
|
|
17
|
+
import { B as me } from "./filter-bar.Dcsv7a4q.js";
|
|
18
18
|
import { E as nn } from "./tabs.keys.Bc2pSKRw.js";
|
|
19
19
|
import { D as sn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
20
20
|
import { o as st } from "./resize.Bqks3WUm.js";
|
|
21
21
|
import "./index.Cl4_42j5.js";
|
|
22
|
-
import { a as $e, B as ln } from "./popover.
|
|
23
|
-
import { B as lt } from "./button.
|
|
24
|
-
import { B as ot } from "./toggle.
|
|
25
|
-
import { B as on } from "./search-bar.
|
|
26
|
-
import { u as an } from "./dropdown.
|
|
22
|
+
import { a as $e, B as ln } from "./popover.Du6UI6Yh.js";
|
|
23
|
+
import { B as lt } from "./button.qOf7CXY2.js";
|
|
24
|
+
import { B as ot } from "./toggle.DtrStAja.js";
|
|
25
|
+
import { B as on } from "./search-bar.hxEJk-w0.js";
|
|
26
|
+
import { u as an } from "./dropdown.Bn6SRkU5.js";
|
|
27
27
|
import { g as rn } from "./unique-id.XFfoKuc2.js";
|
|
28
28
|
import { S as cn } from "./search.CBKhp7zB.js";
|
|
29
|
-
import { B as it } from "./toggle-button.
|
|
29
|
+
import { B as it } from "./toggle-button.CBuKACw5.js";
|
|
30
30
|
import { B as dn } from "./directive.O3yEdalv.js";
|
|
31
|
-
import { B as at } from "./checkbox.
|
|
32
|
-
import { B as rt, O as un, D as fn } from "./menu.
|
|
33
|
-
import { E as gn } from "./link.
|
|
34
|
-
import { C as _n } from "./copy.
|
|
35
|
-
import { B as vn } from "./info-icon.
|
|
36
|
-
import { A as Cn } from "./dialog-page.
|
|
31
|
+
import { B as at } from "./checkbox.CKQZXIR3.js";
|
|
32
|
+
import { B as rt, O as un, D as fn } from "./menu.e-PrV4Wl.js";
|
|
33
|
+
import { E as gn } from "./link.CjFBXE3D.js";
|
|
34
|
+
import { C as _n } from "./copy.CIuoE2VU.js";
|
|
35
|
+
import { B as vn } from "./info-icon.DQI7sjBY.js";
|
|
36
|
+
import { A as Cn } from "./dialog-page.Cc-XASGB.js";
|
|
37
37
|
import { l as xe } from "./events.CMzGybJJ.js";
|
|
38
|
-
import { B as mn, a as pn } from "./loading-button.
|
|
38
|
+
import { B as mn, a as pn } from "./loading-button.Ba8So0d6.js";
|
|
39
39
|
import "../assets/data-grid.css";
|
|
40
|
-
var Le = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Le || {}), J = /* @__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))(J || {}), te = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(te || {}),
|
|
40
|
+
var Le = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Le || {}), J = /* @__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))(J || {}), te = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(te || {}), A = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", 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))(A || {}), pe = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(pe || {}), F = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SORT = "sort", 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))(F || {});
|
|
41
41
|
const hn = (s, e) => {
|
|
42
|
-
const n =
|
|
43
|
-
let u = 0,
|
|
44
|
-
const
|
|
45
|
-
() => Object.fromEntries(s.value.map(({ field: m, width:
|
|
42
|
+
const n = b(null), t = b(!1), l = b(void 0), o = s.value.reduce((m, O) => (m[O.field] = null, m), {}), r = Se(o), v = Ee(r);
|
|
43
|
+
let u = 0, L = "";
|
|
44
|
+
const S = R(
|
|
45
|
+
() => Object.fromEntries(s.value.map(({ field: m, width: O, minWidth: y }) => [m, { width: O, minWidth: y }]))
|
|
46
46
|
);
|
|
47
|
-
kt(() => l.value =
|
|
48
|
-
let
|
|
47
|
+
kt(() => l.value = S.value);
|
|
48
|
+
let d = null, c = null;
|
|
49
49
|
const a = (m) => {
|
|
50
|
-
const
|
|
51
|
-
l.value[
|
|
50
|
+
const O = m.clientX - u, y = L, T = l.value[y].width + O;
|
|
51
|
+
l.value[y].width = T > S.value[y].minWidth ? T : S.value[y].minWidth, e(F.COLUMN_RESIZING, l.value), u = m.clientX;
|
|
52
52
|
}, g = () => {
|
|
53
|
-
t.value = !1,
|
|
54
|
-
field:
|
|
55
|
-
width: l.value[
|
|
56
|
-
}),
|
|
57
|
-
},
|
|
58
|
-
if (
|
|
59
|
-
if (t.value = !0,
|
|
53
|
+
t.value = !1, d == null || d(), c == null || c(), L && e(F.COLUMN_RESIZE, {
|
|
54
|
+
field: L,
|
|
55
|
+
width: l.value[L].width
|
|
56
|
+
}), d = null, c = null, L = "", u = null;
|
|
57
|
+
}, h = (m, O, y) => {
|
|
58
|
+
if (y.preventDefault(), m) {
|
|
59
|
+
if (t.value = !0, y.buttons !== 1) {
|
|
60
60
|
g();
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
L = O, u = y.clientX, d = xe(window, "mousemove", a), c = xe(window, "mouseup", g);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
return H(
|
|
67
67
|
() => t.value,
|
|
68
|
-
(m,
|
|
69
|
-
!m &&
|
|
68
|
+
(m, O) => {
|
|
69
|
+
!m && O && (e(F.COLUMN_HOVER, n.value), n.value = null);
|
|
70
70
|
}
|
|
71
71
|
), {
|
|
72
72
|
resizeData: l,
|
|
73
|
-
allColumnRefs:
|
|
74
|
-
startResize:
|
|
73
|
+
allColumnRefs: v,
|
|
74
|
+
startResize: h,
|
|
75
75
|
isResizing: t,
|
|
76
76
|
columnHoverEventToEmitAfterResizing: n
|
|
77
77
|
};
|
|
78
78
|
}, Ln = 100, Ue = 50, ne = "b-select", Sn = 32, En = 56, On = 1, bn = 16, Rn = (s, e, n) => {
|
|
79
|
-
const t = {}, l = [], o = (
|
|
80
|
-
const u = t[
|
|
81
|
-
u && u.frozen !== !0 && (t[
|
|
79
|
+
const t = {}, l = [], o = (v) => {
|
|
80
|
+
const u = t[v];
|
|
81
|
+
u && u.frozen !== !0 && (t[v].frozen = !0, l.push(v));
|
|
82
82
|
};
|
|
83
83
|
function r() {
|
|
84
84
|
if (l.length === n.length)
|
|
85
85
|
return;
|
|
86
|
-
const
|
|
87
|
-
let u = s,
|
|
88
|
-
l.forEach((
|
|
89
|
-
u -= t[
|
|
86
|
+
const v = { min: {}, max: {} };
|
|
87
|
+
let u = s, L = e, S = 0;
|
|
88
|
+
l.forEach((d) => {
|
|
89
|
+
u -= t[d].computedWidth, L -= t[d].flex;
|
|
90
90
|
});
|
|
91
|
-
for (let
|
|
92
|
-
const a = n[
|
|
91
|
+
for (let d = 0, c = n.length; d < c; d += 1) {
|
|
92
|
+
const a = n[d];
|
|
93
93
|
if (t[a.field] && t[a.field].frozen === !0)
|
|
94
94
|
continue;
|
|
95
|
-
let
|
|
96
|
-
|
|
95
|
+
let h = u / L * a.flex;
|
|
96
|
+
h < a.minWidth && (S += a.minWidth - h, h = a.minWidth, v.min[a.field] = !0), t[a.field] = {
|
|
97
97
|
frozen: !1,
|
|
98
|
-
computedWidth:
|
|
98
|
+
computedWidth: h,
|
|
99
99
|
flex: a.flex
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
o(
|
|
104
|
-
}) : n.forEach(({ field:
|
|
105
|
-
o(
|
|
102
|
+
S > 0 ? Object.keys(v.min).forEach((d) => {
|
|
103
|
+
o(d);
|
|
104
|
+
}) : n.forEach(({ field: d }) => {
|
|
105
|
+
o(d);
|
|
106
106
|
}), r();
|
|
107
107
|
}
|
|
108
108
|
return r(), t;
|
|
@@ -110,164 +110,164 @@ const hn = (s, e) => {
|
|
|
110
110
|
let n = On;
|
|
111
111
|
return e && (n += bn * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
112
112
|
}, yn = (s, e, n, t, l, o) => {
|
|
113
|
-
const r =
|
|
113
|
+
const r = b(s.value), v = b(e), u = b(n), L = b(t), S = b(l), d = b(!1);
|
|
114
114
|
H(
|
|
115
115
|
() => s.value,
|
|
116
|
-
(
|
|
116
|
+
(_, f) => {
|
|
117
117
|
var w, x;
|
|
118
|
-
const
|
|
119
|
-
if (!((w = o == null ? void 0 : o.allowColumnDragAndDrop) != null && w.value) || !
|
|
118
|
+
const p = (_ == null ? void 0 : _.map(({ field: U }) => U).toString()) === (f == null ? void 0 : f.map(({ field: U }) => U).toString());
|
|
119
|
+
if (!((w = o == null ? void 0 : o.allowColumnDragAndDrop) != null && w.value) || !p) {
|
|
120
120
|
r.value = s.value;
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
r.value = ((x = r.value) == null ? void 0 : x.length) === 0 ? s.value : s.value.sort((U,
|
|
124
|
-
const
|
|
125
|
-
return
|
|
123
|
+
r.value = ((x = r.value) == null ? void 0 : x.length) === 0 ? s.value : s.value.sort((U, z) => {
|
|
124
|
+
const k = r.value.findIndex((M) => M.field === U.field), B = r.value.findIndex((M) => M.field === z.field);
|
|
125
|
+
return k === -1 ? 1 : B === -1 ? -1 : k - B;
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
);
|
|
129
|
-
const
|
|
129
|
+
const c = b();
|
|
130
130
|
let a = null;
|
|
131
|
-
const g =
|
|
132
|
-
var
|
|
133
|
-
const
|
|
134
|
-
let
|
|
131
|
+
const g = R(() => {
|
|
132
|
+
var k, B;
|
|
133
|
+
const _ = [];
|
|
134
|
+
let f = 0, p = 0;
|
|
135
135
|
const w = {};
|
|
136
|
-
let x = r.value.filter((
|
|
137
|
-
const U = r.value.filter((
|
|
138
|
-
if ((
|
|
139
|
-
const
|
|
136
|
+
let x = r.value.filter((M) => M.visible !== !1);
|
|
137
|
+
const U = r.value.filter((M) => M.visible === !1);
|
|
138
|
+
if ((k = o == null ? void 0 : o.hasSelectableColumn) != null && k.value) {
|
|
139
|
+
const M = (B = o == null ? void 0 : o.hasSelectableAcrossPages) != null && B.value ? En : Sn;
|
|
140
140
|
x = [
|
|
141
141
|
{
|
|
142
142
|
field: ne,
|
|
143
143
|
label: "",
|
|
144
|
-
minWidth:
|
|
145
|
-
width:
|
|
144
|
+
minWidth: M,
|
|
145
|
+
width: M,
|
|
146
146
|
frozen: !0,
|
|
147
147
|
padding: { left: !1, right: !1 }
|
|
148
148
|
},
|
|
149
149
|
...x
|
|
150
150
|
];
|
|
151
151
|
}
|
|
152
|
-
x.forEach((
|
|
153
|
-
const I = { ...
|
|
152
|
+
x.forEach((M) => {
|
|
153
|
+
const I = { ...M };
|
|
154
154
|
let Z;
|
|
155
|
-
I.flex && I.flex > 0 ? (
|
|
155
|
+
I.flex && I.flex > 0 ? (f += I.flex, Z = 0, _.push(I)) : Z = Math.max(
|
|
156
156
|
(I == null ? void 0 : I.width) ?? Ln,
|
|
157
157
|
(I == null ? void 0 : I.minWidth) ?? Ue
|
|
158
|
-
),
|
|
158
|
+
), p += Z, I.width = Z, I.minWidth = (I == null ? void 0 : I.minWidth) ?? Ue, w[I.field] = I;
|
|
159
159
|
});
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
Object.keys(
|
|
164
|
-
w[I].width =
|
|
160
|
+
const z = Math.max(c.value - p, 0);
|
|
161
|
+
if (f > 0 && c.value > 0) {
|
|
162
|
+
const M = Rn(z, f, _);
|
|
163
|
+
Object.keys(M).forEach((I) => {
|
|
164
|
+
w[I].width = M[I].computedWidth;
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
return U.forEach((
|
|
168
|
-
const I = { ...
|
|
167
|
+
return U.forEach((M) => {
|
|
168
|
+
const I = { ...M };
|
|
169
169
|
w[I.field] = I;
|
|
170
170
|
}), Object.values(w);
|
|
171
|
-
}),
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
r.value.some((
|
|
175
|
-
var U,
|
|
176
|
-
const
|
|
177
|
-
(U =
|
|
178
|
-
(
|
|
179
|
-
), w = (
|
|
180
|
-
(
|
|
171
|
+
}), h = b(void 0), m = (_) => {
|
|
172
|
+
h.value = { ...h.value, ..._ };
|
|
173
|
+
}, O = async () => {
|
|
174
|
+
r.value.some((_) => _ == null ? void 0 : _.autoWidth) && (d.value = !0, await V(), r == null || r.value.filter((_) => _ == null ? void 0 : _.autoWidth).forEach(({ field: _, minWidth: f }) => {
|
|
175
|
+
var U, z, k, B;
|
|
176
|
+
const p = ze(
|
|
177
|
+
(U = L.value) == null ? void 0 : U[_],
|
|
178
|
+
(z = o == null ? void 0 : o.hasColumnPanel) == null ? void 0 : z.value
|
|
179
|
+
), w = (B = (k = S.value) == null ? void 0 : k[_]) == null ? void 0 : B.reduce(
|
|
180
|
+
(M, I) => Math.max(M, ze(I)),
|
|
181
181
|
0
|
|
182
|
-
), x = Math.max(
|
|
183
|
-
(
|
|
184
|
-
[
|
|
182
|
+
), x = Math.max(p, w ?? 0);
|
|
183
|
+
(f === void 0 || x > f) && m({
|
|
184
|
+
[_]: {
|
|
185
185
|
width: x
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
-
}),
|
|
188
|
+
}), d.value = !1);
|
|
189
189
|
};
|
|
190
|
-
H([() => r.value, () =>
|
|
191
|
-
r.value.some((
|
|
190
|
+
H([() => r.value, () => v.value], async () => {
|
|
191
|
+
r.value.some((_) => _ == null ? void 0 : _.autoWidth) && await O();
|
|
192
192
|
});
|
|
193
|
-
const
|
|
194
|
-
() => g.value.map((
|
|
195
|
-
var
|
|
193
|
+
const y = R(
|
|
194
|
+
() => g.value.map((_) => {
|
|
195
|
+
var f, p;
|
|
196
196
|
return {
|
|
197
|
-
...
|
|
197
|
+
..._,
|
|
198
198
|
// Override column width with resized ones
|
|
199
|
-
width: ((
|
|
199
|
+
width: ((p = (f = h.value) == null ? void 0 : f[_.field]) == null ? void 0 : p.width) ?? _.width
|
|
200
200
|
};
|
|
201
201
|
})
|
|
202
|
-
), T =
|
|
202
|
+
), T = R(
|
|
203
203
|
() => {
|
|
204
|
-
var
|
|
205
|
-
return (
|
|
204
|
+
var _;
|
|
205
|
+
return (_ = y.value) == null ? void 0 : _.filter(({ visible: f }) => f !== !1).reduce((f, p) => p.width + f, 0);
|
|
206
206
|
}
|
|
207
|
-
),
|
|
208
|
-
() =>
|
|
209
|
-
),
|
|
210
|
-
width:
|
|
207
|
+
), P = R(
|
|
208
|
+
() => c.value <= T.value
|
|
209
|
+
), C = R(() => ({
|
|
210
|
+
width: c.value > T.value ? "100%" : "fit-content"
|
|
211
211
|
}));
|
|
212
212
|
return Oe(() => {
|
|
213
|
-
var
|
|
213
|
+
var _;
|
|
214
214
|
V(() => {
|
|
215
|
-
u.value && (
|
|
216
|
-
const
|
|
215
|
+
u.value && (c.value = u.value.getBoundingClientRect().width);
|
|
216
|
+
const f = H(
|
|
217
217
|
u,
|
|
218
218
|
() => {
|
|
219
|
-
u.value && (V(() =>
|
|
220
|
-
|
|
219
|
+
u.value && (V(() => f()), a = st(u.value, ({ width: p }) => {
|
|
220
|
+
c.value = p;
|
|
221
221
|
}));
|
|
222
222
|
},
|
|
223
223
|
{ immediate: !0 }
|
|
224
224
|
);
|
|
225
|
-
}), (
|
|
226
|
-
|
|
227
|
-
}) :
|
|
225
|
+
}), (_ = document == null ? void 0 : document.fonts) != null && _.ready ? document.fonts.ready.then(() => {
|
|
226
|
+
O();
|
|
227
|
+
}) : O();
|
|
228
228
|
}), Je(() => {
|
|
229
229
|
a == null || a.disconnect();
|
|
230
230
|
}), Ht(() => {
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
var _;
|
|
232
|
+
S.value && ((_ = Object.keys(S.value)) == null ? void 0 : _.length) > 0 && Object.keys(S.value).forEach((p) => {
|
|
233
|
+
S.value[p] = [];
|
|
234
234
|
});
|
|
235
235
|
}), {
|
|
236
|
-
columnDefs:
|
|
237
|
-
gridColumnWidthStyle:
|
|
236
|
+
columnDefs: y,
|
|
237
|
+
gridColumnWidthStyle: C,
|
|
238
238
|
onColumnWidthOverride: m,
|
|
239
|
-
isMeasuringColumnWidths:
|
|
240
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
239
|
+
isMeasuringColumnWidths: d,
|
|
240
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: P,
|
|
241
241
|
columns: r
|
|
242
242
|
};
|
|
243
243
|
}, An = (s, e, n, t, l) => {
|
|
244
|
-
const o =
|
|
244
|
+
const o = b(s.value ?? []), r = Se({
|
|
245
245
|
allItemsSelected: !1,
|
|
246
246
|
isIndeterminate: !1
|
|
247
|
-
}),
|
|
248
|
-
e(
|
|
249
|
-
}, u = (
|
|
250
|
-
var a, g,
|
|
251
|
-
if (o.value =
|
|
247
|
+
}), v = () => {
|
|
248
|
+
e(A.SELECT, o.value), e(A.UPDATE_SELECTION, o.value);
|
|
249
|
+
}, u = (d) => {
|
|
250
|
+
var a, g, h, m, O;
|
|
251
|
+
if (o.value = d, ((a = n.value) == null ? void 0 : a.length) > 0 && ((g = n.value) == null ? void 0 : g.filter((y) => !l(y)).every((y) => o.value.includes(t(y))))) {
|
|
252
252
|
r.allItemsSelected = !0;
|
|
253
|
-
const
|
|
254
|
-
r.isIndeterminate = !
|
|
253
|
+
const y = ((h = n.value) == null ? void 0 : h.length) > 0 && n.value.every((T) => o.value.includes(t(T)));
|
|
254
|
+
r.isIndeterminate = !y;
|
|
255
255
|
} else
|
|
256
|
-
r.allItemsSelected = !1, r.isIndeterminate = ((m = o.value) == null ? void 0 : m.length) > 0 && ((
|
|
257
|
-
},
|
|
256
|
+
r.allItemsSelected = !1, r.isIndeterminate = ((m = o.value) == null ? void 0 : m.length) > 0 && ((O = n.value) == null ? void 0 : O.length) > 0 && n.value.some((y) => o.value.includes(t(y)));
|
|
257
|
+
}, L = (d) => {
|
|
258
258
|
V(() => {
|
|
259
|
-
var
|
|
260
|
-
if (r.allItemsSelected =
|
|
261
|
-
o.value = (a = (
|
|
262
|
-
const
|
|
263
|
-
r.isIndeterminate = o.value.length > 0 && !
|
|
259
|
+
var c, a, g;
|
|
260
|
+
if (r.allItemsSelected = d, d) {
|
|
261
|
+
o.value = (a = (c = n.value) == null ? void 0 : c.filter((m) => !l(m))) == null ? void 0 : a.map((m) => t(m));
|
|
262
|
+
const h = ((g = n.value) == null ? void 0 : g.length) > 0 && n.value.every((m) => o.value.includes(t(m)));
|
|
263
|
+
r.isIndeterminate = o.value.length > 0 && !h;
|
|
264
264
|
} else
|
|
265
265
|
o.value = [], r.isIndeterminate = !1;
|
|
266
|
-
|
|
266
|
+
v();
|
|
267
267
|
});
|
|
268
|
-
},
|
|
268
|
+
}, S = (d) => {
|
|
269
269
|
V(() => {
|
|
270
|
-
u(
|
|
270
|
+
u(d), v();
|
|
271
271
|
});
|
|
272
272
|
};
|
|
273
273
|
return H(
|
|
@@ -281,130 +281,130 @@ const hn = (s, e) => {
|
|
|
281
281
|
() => {
|
|
282
282
|
u(o.value);
|
|
283
283
|
}
|
|
284
|
-
), { onAllRowSelect:
|
|
285
|
-
}, Tn = (s, e, n) => ({ isSorting: (r) => s.value.some((
|
|
286
|
-
var
|
|
287
|
-
return (
|
|
284
|
+
), { onAllRowSelect: L, onRowSelect: S, allItemsSelectedState: r, selectedItems: o };
|
|
285
|
+
}, Tn = (s, e, n) => ({ isSorting: (r) => s.value.some((v) => v.field === r), getSortingDirection: (r) => {
|
|
286
|
+
var v;
|
|
287
|
+
return (v = s.value.find((u) => u.field === r)) == null ? void 0 : v.direction;
|
|
288
288
|
}, sortByColumnField: (r) => {
|
|
289
|
-
var
|
|
290
|
-
if (!e.value.some((
|
|
289
|
+
var L;
|
|
290
|
+
if (!e.value.some((S) => S.field === r && S.sortable))
|
|
291
291
|
return;
|
|
292
292
|
const u = [{
|
|
293
293
|
field: r,
|
|
294
|
-
direction: ((
|
|
294
|
+
direction: ((L = s.value.find((S) => S.field === r)) == null ? void 0 : L.direction) === te.ASCENDING ? te.DESCENDING : te.ASCENDING
|
|
295
295
|
}];
|
|
296
|
-
n(
|
|
296
|
+
n(F.SORT, u);
|
|
297
297
|
} });
|
|
298
|
-
var
|
|
298
|
+
var G = ((s) => (s[s.ARROW_DOWN = K.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = K.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = K.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = K.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = K.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = K.PAGE_DOWN] = "PAGE_DOWN", s[s.END = K.END] = "END", s[s.HOME = K.HOME] = "HOME", s))(G || {});
|
|
299
299
|
const In = (s, e, n) => {
|
|
300
|
-
const t =
|
|
300
|
+
const t = R(() => {
|
|
301
301
|
const a = e.value.filter(({ visible: g }) => g !== !1);
|
|
302
302
|
return n.value ? a.length + 1 : a.length;
|
|
303
|
-
}), l =
|
|
303
|
+
}), l = R(
|
|
304
304
|
() => [...Object.values(s.value)].flat(1).sort((a, g) => {
|
|
305
|
-
const
|
|
306
|
-
return
|
|
305
|
+
const h = Number(a.getAttribute("data-cellindex")), m = Number(g.getAttribute("data-cellindex"));
|
|
306
|
+
return h > m ? 1 : m > h ? -1 : 0;
|
|
307
307
|
})
|
|
308
|
-
), o = (a) => Math.floor(a / t.value), r = (a, g,
|
|
309
|
-
const m = l.value.length - 1,
|
|
308
|
+
), o = (a) => Math.floor(a / t.value), r = (a, g, h) => {
|
|
309
|
+
const m = l.value.length - 1, O = t.value - 1, y = o(a), T = a - t.value * y;
|
|
310
310
|
return {
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
314
|
-
[
|
|
311
|
+
[G.PAGE_UP]: T,
|
|
312
|
+
[G.PAGE_DOWN]: m - O + T,
|
|
313
|
+
[G.END]: h ? m : t.value * y + O,
|
|
314
|
+
[G.HOME]: h ? 0 : t.value * y
|
|
315
315
|
}[g];
|
|
316
|
-
},
|
|
316
|
+
}, v = (a, g) => {
|
|
317
317
|
const m = {
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
}[g],
|
|
323
|
-
return
|
|
318
|
+
[G.ARROW_DOWN]: t.value,
|
|
319
|
+
[G.ARROW_UP]: -t.value,
|
|
320
|
+
[G.ARROW_LEFT]: -1,
|
|
321
|
+
[G.ARROW_RIGHT]: 1
|
|
322
|
+
}[g], O = a + m;
|
|
323
|
+
return O < 0 || O >= l.value.length ? a : O;
|
|
324
324
|
}, u = (a) => [
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
].includes(a),
|
|
325
|
+
G.PAGE_UP,
|
|
326
|
+
G.PAGE_DOWN,
|
|
327
|
+
G.END,
|
|
328
|
+
G.HOME
|
|
329
|
+
].includes(a), L = (a, g, h) => {
|
|
330
330
|
const m = l.value.indexOf(a);
|
|
331
|
-
return u(g) ? r(m, g,
|
|
332
|
-
},
|
|
331
|
+
return u(g) ? r(m, g, h) : v(m, g);
|
|
332
|
+
}, S = (a, g, h) => {
|
|
333
333
|
if (!l.value.includes(a))
|
|
334
334
|
return;
|
|
335
|
-
const m =
|
|
335
|
+
const m = L(a, g, h);
|
|
336
336
|
l.value[m].focus();
|
|
337
|
-
},
|
|
337
|
+
}, d = (a) => a in G;
|
|
338
338
|
return {
|
|
339
|
-
isNavigationKeyCode:
|
|
340
|
-
focusOnNextGridcell:
|
|
339
|
+
isNavigationKeyCode: d,
|
|
340
|
+
focusOnNextGridcell: S,
|
|
341
341
|
navigationInput: (a) => {
|
|
342
|
-
const { ctrlKey: g, keyCode:
|
|
343
|
-
Object.values(s.value).flat(1).includes(m) &&
|
|
342
|
+
const { ctrlKey: g, keyCode: h, target: m } = a;
|
|
343
|
+
Object.values(s.value).flat(1).includes(m) && d(h) && S(m, h, g);
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
}, wn = 90, Nn = (s, e, n, t, l) => {
|
|
347
|
-
const o =
|
|
348
|
-
l(
|
|
347
|
+
const o = b(s), r = b(e), v = b(n), u = b(t), L = R(() => o.value !== "none"), S = R(() => o.value === "automatic"), d = () => {
|
|
348
|
+
l(A.UPDATE_SHOW_MORE);
|
|
349
349
|
};
|
|
350
350
|
return H(
|
|
351
351
|
() => r.value,
|
|
352
352
|
() => {
|
|
353
|
-
|
|
353
|
+
S.value && v.value.offsetHeight / r.value * 100 > wn && !u.value && d();
|
|
354
354
|
}
|
|
355
|
-
), { isLazyLoad:
|
|
355
|
+
), { isLazyLoad: L, isInfiniteScroll: S, verticalScrollPosition: r, emitLazyLoadEvent: d };
|
|
356
356
|
}, Dn = (s, e, n) => {
|
|
357
|
-
const t =
|
|
357
|
+
const t = b(s), l = b(e), o = Se({
|
|
358
358
|
dragging: null,
|
|
359
359
|
dragToLeft: null,
|
|
360
360
|
target: null
|
|
361
361
|
}), r = (a, g = 0) => {
|
|
362
|
-
const
|
|
362
|
+
const h = t.value.findIndex((y) => y.field === a.field), m = h + g;
|
|
363
363
|
if (m < 0 || m > t.value.length - 1)
|
|
364
364
|
return;
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
},
|
|
365
|
+
const O = [...t.value];
|
|
366
|
+
O.splice(m, 0, O.splice(h, 1)[0]), n(A.COLUMNS, O), n(A.UPDATE_COLUMNS, O);
|
|
367
|
+
}, v = (a, g) => {
|
|
368
368
|
o.dragging = a, g.dataTransfer.setData("text", ""), g.dataTransfer.dropEffect = "move";
|
|
369
369
|
}, u = (a, g) => {
|
|
370
370
|
o.target = a;
|
|
371
|
-
const
|
|
372
|
-
o.dragToLeft =
|
|
373
|
-
},
|
|
374
|
-
var g,
|
|
371
|
+
const h = g.currentTarget.getBoundingClientRect(), m = h.left + h.width / 2, O = g.clientX ?? 0;
|
|
372
|
+
o.dragToLeft = O <= m;
|
|
373
|
+
}, L = (a) => {
|
|
374
|
+
var g, h;
|
|
375
375
|
if (((g = o.dragging) == null ? void 0 : g.field) !== a.field) {
|
|
376
|
-
const m = t.value.findIndex((
|
|
377
|
-
var
|
|
378
|
-
return
|
|
379
|
-
}),
|
|
380
|
-
let
|
|
381
|
-
|
|
376
|
+
const m = t.value.findIndex((_) => {
|
|
377
|
+
var f;
|
|
378
|
+
return _.field === ((f = o.dragging) == null ? void 0 : f.field);
|
|
379
|
+
}), O = t.value.findIndex((_) => _.field === a.field), y = o.dragToLeft ? O : O + 1, T = y > m ? y - 1 : y;
|
|
380
|
+
let P = [...t.value];
|
|
381
|
+
P.splice(
|
|
382
382
|
T === -1 ? 0 : T,
|
|
383
383
|
0,
|
|
384
|
-
|
|
384
|
+
P.splice(m, 1)[0]
|
|
385
385
|
);
|
|
386
|
-
const
|
|
387
|
-
((
|
|
388
|
-
(
|
|
389
|
-
var
|
|
390
|
-
return ((
|
|
386
|
+
const C = t.value.findIndex((_) => !(_ != null && _.frozen));
|
|
387
|
+
((h = o.dragging) == null ? void 0 : h.frozen) !== a.frozen && y !== C && (P = P.map(
|
|
388
|
+
(_) => {
|
|
389
|
+
var f;
|
|
390
|
+
return ((f = o.dragging) == null ? void 0 : f.field) === _.field ? { ..._, frozen: !!(a != null && a.frozen) } : _;
|
|
391
391
|
}
|
|
392
|
-
)), n(
|
|
392
|
+
)), n(A.COLUMNS, P), n(A.UPDATE_COLUMNS, P);
|
|
393
393
|
}
|
|
394
394
|
o.dragging = null, o.target = null;
|
|
395
|
-
},
|
|
395
|
+
}, S = () => {
|
|
396
396
|
o.dragging = null, o.dragToLeft = null, o.target = null;
|
|
397
|
-
},
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
402
|
-
} : {}),
|
|
397
|
+
}, d = R(() => l.value ? {
|
|
398
|
+
[F.COLUMN_DRAG_START]: (a, g) => v(a, g),
|
|
399
|
+
[F.COLUMN_DRAG_ENTER]: (a, g) => u(a, g),
|
|
400
|
+
[F.COLUMN_DROP]: (a) => L(a),
|
|
401
|
+
[F.COLUMN_DRAG_END]: () => S()
|
|
402
|
+
} : {}), c = R(() => (a) => l.value ? {
|
|
403
403
|
dragenter: (g) => {
|
|
404
404
|
g.preventDefault(), u(a, g);
|
|
405
405
|
},
|
|
406
406
|
drop: () => {
|
|
407
|
-
|
|
407
|
+
L(a);
|
|
408
408
|
},
|
|
409
409
|
dragover: (g) => {
|
|
410
410
|
g.preventDefault();
|
|
@@ -414,44 +414,44 @@ const In = (s, e, n) => {
|
|
|
414
414
|
// Values
|
|
415
415
|
draggingColumns: o,
|
|
416
416
|
// Methods
|
|
417
|
-
draggingEventsForColumns:
|
|
418
|
-
draggingEventsForRowCell:
|
|
417
|
+
draggingEventsForColumns: d,
|
|
418
|
+
draggingEventsForRowCell: c,
|
|
419
419
|
onMoveColumnByOffset: r
|
|
420
420
|
};
|
|
421
421
|
}, Mn = (s, e) => {
|
|
422
|
-
const n =
|
|
423
|
-
() => [...n.value].sort((
|
|
424
|
-
), l =
|
|
425
|
-
() => t.value.filter((
|
|
426
|
-
), o =
|
|
427
|
-
() => t.value.filter((
|
|
428
|
-
), r =
|
|
422
|
+
const n = b(s), t = R(
|
|
423
|
+
() => [...n.value].sort((d, c) => d.frozen === c.frozen ? 0 : d.frozen ? -1 : 1)
|
|
424
|
+
), l = R(
|
|
425
|
+
() => t.value.filter((d) => d.frozen && d.visible !== !1)
|
|
426
|
+
), o = R(
|
|
427
|
+
() => t.value.filter((d) => !d.frozen && d.visible !== !1)
|
|
428
|
+
), r = R(
|
|
429
429
|
() => [
|
|
430
430
|
{ columnSet: l.value, id: "frozen", isFrozenColumns: !0 },
|
|
431
431
|
{ columnSet: o.value, id: "unfrozen" }
|
|
432
|
-
].filter(({ columnSet:
|
|
433
|
-
),
|
|
434
|
-
() => n.value.filter((
|
|
435
|
-
), u = (
|
|
436
|
-
e(
|
|
432
|
+
].filter(({ columnSet: d }) => d.length)
|
|
433
|
+
), v = R(
|
|
434
|
+
() => n.value.filter((d) => (d == null ? void 0 : d.visible) !== !1 && (d == null ? void 0 : d.field) !== ne).length === 1
|
|
435
|
+
), u = (d) => e(A.UPDATE_CONDENSED, d), L = (d) => {
|
|
436
|
+
e(A.COLUMNS, d), e(A.UPDATE_COLUMNS, d);
|
|
437
437
|
};
|
|
438
438
|
return {
|
|
439
439
|
// Values
|
|
440
440
|
columnSets: r,
|
|
441
|
-
isOnlyOneVisibleColumn:
|
|
441
|
+
isOnlyOneVisibleColumn: v,
|
|
442
442
|
sortedColumns: t,
|
|
443
443
|
// Methods
|
|
444
444
|
onConfigSettingsUpdate: u,
|
|
445
|
-
onConfigSettingsColumnsUpdate:
|
|
446
|
-
onConfigSettingsColumnUpdate: (
|
|
447
|
-
const
|
|
448
|
-
(a) => (a == null ? void 0 : a.field) ===
|
|
445
|
+
onConfigSettingsColumnsUpdate: L,
|
|
446
|
+
onConfigSettingsColumnUpdate: (d) => {
|
|
447
|
+
const c = t.value.map(
|
|
448
|
+
(a) => (a == null ? void 0 : a.field) === d.field ? d : a
|
|
449
449
|
);
|
|
450
|
-
|
|
450
|
+
L(c);
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
}, Be = (s, e) => {
|
|
454
|
-
const n =
|
|
454
|
+
const n = b(0);
|
|
455
455
|
let t = null;
|
|
456
456
|
const l = () => {
|
|
457
457
|
s != null && s.value && e.value && (n.value = s.value.offsetHeight);
|
|
@@ -479,15 +479,15 @@ const In = (s, e, n) => {
|
|
|
479
479
|
t == null || t.disconnect();
|
|
480
480
|
}), n;
|
|
481
481
|
}, Fn = (s, e, n) => {
|
|
482
|
-
const t =
|
|
482
|
+
const t = b(0), l = b(!1), o = b(!1);
|
|
483
483
|
return H(
|
|
484
484
|
() => t.value,
|
|
485
485
|
() => {
|
|
486
486
|
s.value.scrollLeft = t.value, e.value.scrollLeft = t.value, l.value = !!t.value, o.value = e.value.scrollWidth - e.value.offsetWidth > t.value;
|
|
487
487
|
}
|
|
488
488
|
), Oe(async () => {
|
|
489
|
-
var u,
|
|
490
|
-
await V(), ((u = e.value) == null ? void 0 : u.offsetWidth) < ((
|
|
489
|
+
var u, L;
|
|
490
|
+
await V(), ((u = e.value) == null ? void 0 : u.offsetWidth) < ((L = e.value) == null ? void 0 : L.scrollWidth) && (o.value = !0);
|
|
491
491
|
}), {
|
|
492
492
|
// Values
|
|
493
493
|
scrollLeftPosition: t,
|
|
@@ -504,8 +504,8 @@ const In = (s, e, n) => {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}, Pn = (s, e, n, t) => {
|
|
507
|
-
const l =
|
|
508
|
-
var
|
|
507
|
+
const l = b(null), o = R(() => {
|
|
508
|
+
var h, m, O, y;
|
|
509
509
|
if (!l.value || l.value.field === ne)
|
|
510
510
|
return {
|
|
511
511
|
hoveredOverColumnField: "",
|
|
@@ -513,11 +513,11 @@ const In = (s, e, n) => {
|
|
|
513
513
|
noBorderLeft: !1,
|
|
514
514
|
noBorderRight: !1
|
|
515
515
|
};
|
|
516
|
-
const r = (m = (
|
|
516
|
+
const r = (m = (h = s.value.find((T) => T.isFrozenColumns)) == null ? void 0 : h.columnSet) == null ? void 0 : m.filter((T) => T.field !== ne), v = s.value.find((T) => !(T != null && T.isFrozenColumns)), u = l.value.frozen && (r == null ? void 0 : r[0].field) === l.value.field, L = !l.value.frozen && ((O = v == null ? void 0 : v.columnSet) == null ? void 0 : O[0].field) === l.value.field, S = (e.value || n.value) && u, d = (e.value || n.value) && !r && L, c = r && L, a = (r == null ? void 0 : r.length) > 0 && l.value.frozen && (r == null ? void 0 : r[r.length - 1].field) === l.value.field, g = n.value && t.value && !l.value.frozen && ((y = v == null ? void 0 : v.columnSet) == null ? void 0 : y[v.columnSet.length - 1].field) === l.value.field;
|
|
517
517
|
return {
|
|
518
518
|
hoveredOverColumnField: l.value.field,
|
|
519
519
|
isSeparatorOffset: g,
|
|
520
|
-
noBorderLeft: !!
|
|
520
|
+
noBorderLeft: !!S || !!d || !!c,
|
|
521
521
|
noBorderRight: !!a || !!g
|
|
522
522
|
};
|
|
523
523
|
});
|
|
@@ -808,16 +808,16 @@ const Ls = hs.exports, Ss = {
|
|
|
808
808
|
},
|
|
809
809
|
emits: ["column-hover"],
|
|
810
810
|
setup(s, { expose: e, emit: n }) {
|
|
811
|
-
const t = s, l = 100, { t: o } = se(), { columns: r, sortBy:
|
|
811
|
+
const t = s, l = 100, { t: o } = se(), { columns: r, sortBy: v } = Ee(t), u = b({}), L = b({}), S = b(), d = b(), c = (i) => n(F.SELECT_ALL_ROWS, i), a = (i) => i.field === ne, g = R(() => [
|
|
812
812
|
{
|
|
813
813
|
text: o("selectPage"),
|
|
814
|
-
handler: () =>
|
|
814
|
+
handler: () => c(!0)
|
|
815
815
|
},
|
|
816
816
|
{
|
|
817
817
|
text: o("selectAll"),
|
|
818
|
-
handler: () => n(
|
|
818
|
+
handler: () => n(F.SELECT_ALL_ACROSS_PAGES)
|
|
819
819
|
}
|
|
820
|
-
]), { startResize:
|
|
820
|
+
]), { startResize: h, isResizing: m, columnHoverEventToEmitAfterResizing: O } = hn(r, n), { isSorting: y, getSortingDirection: T, sortByColumnField: P } = Tn(v, r, n), C = (i) => {
|
|
821
821
|
var X;
|
|
822
822
|
if (!i.sortable)
|
|
823
823
|
return null;
|
|
@@ -826,44 +826,44 @@ const Ls = hs.exports, Ss = {
|
|
|
826
826
|
[te.ASCENDING]: pe.ASCENDING,
|
|
827
827
|
[te.DESCENDING]: pe.DESCENDING
|
|
828
828
|
}[N] : pe.NONE;
|
|
829
|
-
},
|
|
829
|
+
}, _ = R(() => (i) => t.hasDraggableColumns ? {
|
|
830
830
|
dragstart: (N) => {
|
|
831
|
-
n(
|
|
831
|
+
n(F.COLUMN_DRAG_START, i, N);
|
|
832
832
|
},
|
|
833
833
|
dragover: (N) => {
|
|
834
834
|
N.preventDefault();
|
|
835
835
|
},
|
|
836
836
|
dragenter: (N) => {
|
|
837
|
-
N.preventDefault(), n(
|
|
837
|
+
N.preventDefault(), n(F.COLUMN_DRAG_ENTER, i, N);
|
|
838
838
|
},
|
|
839
839
|
drop: () => {
|
|
840
|
-
n(
|
|
840
|
+
n(F.COLUMN_DROP, i);
|
|
841
841
|
},
|
|
842
842
|
dragend: () => {
|
|
843
|
-
n(
|
|
843
|
+
n(F.COLUMN_DRAG_END);
|
|
844
844
|
}
|
|
845
|
-
} : {}),
|
|
845
|
+
} : {}), f = R(() => (i) => [
|
|
846
846
|
{
|
|
847
847
|
text: o("moveColumnLeft"),
|
|
848
|
-
handler: () => n(
|
|
848
|
+
handler: () => n(F.COLUMN_MOVE, i, -1),
|
|
849
849
|
icon: Cn,
|
|
850
850
|
disabled: t.columns[0].field === i.field
|
|
851
851
|
},
|
|
852
852
|
{
|
|
853
853
|
text: o("moveColumnRight"),
|
|
854
|
-
handler: () => n(
|
|
854
|
+
handler: () => n(F.COLUMN_MOVE, i, 1),
|
|
855
855
|
icon: Vn,
|
|
856
856
|
disabled: t.columns[t.columns.length - 1].field === i.field
|
|
857
857
|
},
|
|
858
858
|
{
|
|
859
859
|
text: i != null && i.frozen ? o("unfreezeColumn") : o("freezeColumn"),
|
|
860
|
-
handler: () => n(
|
|
860
|
+
handler: () => n(F.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
|
|
861
861
|
icon: ct
|
|
862
862
|
},
|
|
863
863
|
{
|
|
864
864
|
text: (i == null ? void 0 : i.visible) !== !1 ? o("hideColumn") : o("showColumn"),
|
|
865
865
|
handler: () => {
|
|
866
|
-
n(
|
|
866
|
+
n(F.COLUMN_UPDATE, {
|
|
867
867
|
...i,
|
|
868
868
|
visible: (i == null ? void 0 : i.visible) === !1
|
|
869
869
|
});
|
|
@@ -871,31 +871,31 @@ const Ls = hs.exports, Ss = {
|
|
|
871
871
|
icon: (i == null ? void 0 : i.visible) !== !1 ? es : vs,
|
|
872
872
|
disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && t.isOnlyOneVisibleColumn
|
|
873
873
|
}
|
|
874
|
-
]),
|
|
875
|
-
|
|
874
|
+
]), p = (i) => {
|
|
875
|
+
S.value = i.field, d.value && clearTimeout(d.value);
|
|
876
876
|
}, w = () => {
|
|
877
877
|
const i = setTimeout(() => {
|
|
878
|
-
|
|
878
|
+
S.value = "";
|
|
879
879
|
}, l);
|
|
880
|
-
|
|
880
|
+
d.value = i;
|
|
881
881
|
}, x = (i) => {
|
|
882
882
|
let N = {
|
|
883
883
|
mouseenter: () => {
|
|
884
|
-
|
|
884
|
+
p(i), m.value ? O.value = i : n("column-hover", i);
|
|
885
885
|
},
|
|
886
886
|
mouseleave: () => {
|
|
887
|
-
w(), m.value ?
|
|
887
|
+
w(), m.value ? O.value = null : n("column-hover", null);
|
|
888
888
|
},
|
|
889
|
-
focus: () =>
|
|
889
|
+
focus: () => p(i)
|
|
890
890
|
};
|
|
891
891
|
return a(i) || (N = {
|
|
892
892
|
...N,
|
|
893
|
-
...
|
|
893
|
+
..._.value(i)
|
|
894
894
|
}), N;
|
|
895
|
-
}, U = (i) => i.infoIconTooltip || i.sortable || t.hasColumnPanel,
|
|
895
|
+
}, U = (i) => i.infoIconTooltip || i.sortable || t.hasColumnPanel, z = (i, N) => {
|
|
896
896
|
var Y;
|
|
897
897
|
((Y = u.value) == null ? void 0 : Y[N]) === void 0 && (u.value = { ...u.value, [N]: null }), i !== null && (u.value[N] = i);
|
|
898
|
-
},
|
|
898
|
+
}, k = R(() => {
|
|
899
899
|
var N;
|
|
900
900
|
const i = {
|
|
901
901
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
@@ -909,7 +909,7 @@ const Ls = hs.exports, Ss = {
|
|
|
909
909
|
...i,
|
|
910
910
|
"b-data-grid-columns--unfrozen": !0
|
|
911
911
|
};
|
|
912
|
-
}),
|
|
912
|
+
}), B = (i, N) => i && N === 0 ? $e.BOTTOM_START : $e.BOTTOM_END, M = (i, N) => {
|
|
913
913
|
var Y, X, le, ie, oe, de, ue, fe, ge, _e;
|
|
914
914
|
return {
|
|
915
915
|
"b-data-grid-columns__column--column-hovered": i.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
@@ -924,7 +924,7 @@ const Ls = hs.exports, Ss = {
|
|
|
924
924
|
"b-data-grid-columns__column--is-re-ordering": (i == null ? void 0 : i.field) === ((ie = (le = t.draggingColumns) == null ? void 0 : le.dragging) == null ? void 0 : ie.field),
|
|
925
925
|
"b-data-grid-columns__column--is-re-ordering-target-left": (i == null ? void 0 : i.field) === ((de = (oe = t.draggingColumns) == null ? void 0 : oe.target) == null ? void 0 : de.field) && ((ue = t.draggingColumns) == null ? void 0 : ue.dragToLeft),
|
|
926
926
|
"b-data-grid-columns__column--is-re-ordering-target-right": (i == null ? void 0 : i.field) === ((ge = (fe = t.draggingColumns) == null ? void 0 : fe.target) == null ? void 0 : ge.field) && !((_e = t.draggingColumns) != null && _e.dragToLeft),
|
|
927
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": i.sortable || i.infoIconTooltip || t.hasColumnPanel &&
|
|
927
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": i.sortable || i.infoIconTooltip || t.hasColumnPanel && S.value === i.field || t.selectableAcrossPages
|
|
928
928
|
};
|
|
929
929
|
}, I = (i) => ({
|
|
930
930
|
"b-data-grid-columns__column-header-and-actions--numeric": i == null ? void 0 : i.numeric
|
|
@@ -933,12 +933,12 @@ const Ls = hs.exports, Ss = {
|
|
|
933
933
|
}), re = (i) => ({
|
|
934
934
|
"b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
|
|
935
935
|
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === i.field && t.hoveredOverColumnState.isSeparatorOffset
|
|
936
|
-
}), ce =
|
|
936
|
+
}), ce = R(() => ({
|
|
937
937
|
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
938
938
|
}));
|
|
939
939
|
return e({
|
|
940
940
|
columnHeaderRefs: u
|
|
941
|
-
}), { __sfc: !0, props: t, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: l, t: o, columns: r, sortBy:
|
|
941
|
+
}), { __sfc: !0, props: t, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: l, t: o, columns: r, sortBy: v, columnHeaderRefs: u, contextMenuRef: L, hoveredColumnField: S, closingTimeOutId: d, onAllRowSelect: c, isSelectColumn: a, selectAllMenu: g, startResize: h, isResizing: m, columnHoverEventToEmitAfterResizing: O, isSorting: y, getSortingDirection: T, sortByColumnField: P, getSortingColumnDirection: C, draggingEventsForColumn: _, contextualMenuData: f, showContextualMenu: p, hideContextualMenu: w, dataGridColumnEvents: x, hasColumnActions: U, registerColumnsRefs: z, conditionalColumnsClasses: k, computeMenuPosition: B, conditionalColumnClasses: M, conditionalColumnHeaderAndActionsClasses: I, conditionalColumnActionsClasses: Z, conditionalColumnSeparatorClasses: re, conditionalColumnHeaderClasses: ce, BentoCheckbox: at, BentoDatagridSortDirection: te, BentoTypography: he, BentoInfoIcon: vn, DatagridColumnsEvent: F, BentoMenu: rt, BentoToggleButton: it, ArrowUpAndDownSortIcon: Bn, SortAscendingIcon: os, SortDescendingIcon: ds, TriangleDown: Ls };
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
944
|
var bs = function() {
|
|
@@ -1019,34 +1019,34 @@ const Ds = Ns.exports, Ms = {
|
|
|
1019
1019
|
},
|
|
1020
1020
|
emits: ["visible-column", "updated-column"],
|
|
1021
1021
|
setup(s, { emit: e }) {
|
|
1022
|
-
const { t: n } = se(), t =
|
|
1023
|
-
var
|
|
1024
|
-
return (
|
|
1025
|
-
}), o =
|
|
1026
|
-
var
|
|
1027
|
-
return ((
|
|
1022
|
+
const { t: n } = se(), t = b(!1), l = R(() => {
|
|
1023
|
+
var d;
|
|
1024
|
+
return (d = s.column) == null ? void 0 : d.frozen;
|
|
1025
|
+
}), o = R(() => {
|
|
1026
|
+
var d;
|
|
1027
|
+
return ((d = s.column) == null ? void 0 : d.visible) !== !1;
|
|
1028
1028
|
}), r = () => {
|
|
1029
1029
|
e("visible-column", { ...s.column, visible: !o.value });
|
|
1030
|
-
},
|
|
1030
|
+
}, v = () => {
|
|
1031
1031
|
e("updated-column", { ...s.column, frozen: !l.value });
|
|
1032
1032
|
}, u = () => {
|
|
1033
1033
|
l.value || (t.value = !0);
|
|
1034
|
-
},
|
|
1034
|
+
}, L = () => {
|
|
1035
1035
|
l.value || (t.value = !1);
|
|
1036
|
-
},
|
|
1036
|
+
}, S = R(() => ({
|
|
1037
1037
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": l.value
|
|
1038
1038
|
}));
|
|
1039
1039
|
return {
|
|
1040
1040
|
// Values
|
|
1041
1041
|
isFreezeIconOptionShown: t,
|
|
1042
1042
|
isColumnFrozen: l,
|
|
1043
|
-
freezeIconConditionalClasses:
|
|
1043
|
+
freezeIconConditionalClasses: S,
|
|
1044
1044
|
isColumnVisible: o,
|
|
1045
1045
|
// Methods
|
|
1046
1046
|
toggleColumnVisibility: r,
|
|
1047
1047
|
showFreezeIcon: u,
|
|
1048
|
-
hideFreezeIcon:
|
|
1049
|
-
toggleColumnFreeze:
|
|
1048
|
+
hideFreezeIcon: L,
|
|
1049
|
+
toggleColumnFreeze: v,
|
|
1050
1050
|
// Translations
|
|
1051
1051
|
t: n
|
|
1052
1052
|
};
|
|
@@ -1115,62 +1115,62 @@ const Us = xs.exports, zs = {
|
|
|
1115
1115
|
},
|
|
1116
1116
|
emits: [Q.CONFIG_SETTINGS, Q.UPDATE_COLUMNS],
|
|
1117
1117
|
setup(s, { emit: e }) {
|
|
1118
|
-
const { t: n } = se(), t =
|
|
1119
|
-
|
|
1120
|
-
}, g =
|
|
1121
|
-
() => !s.columns.some((
|
|
1122
|
-
),
|
|
1123
|
-
a(),
|
|
1124
|
-
var
|
|
1125
|
-
return (
|
|
1118
|
+
const { t: n } = se(), t = b(null), l = rn("data-grid-config-settings-popover"), o = b(null), r = b(!1), v = b(!0), u = b(null), L = b(""), S = Qe(s, "columns"), d = b(!1), c = an(L, S), a = () => {
|
|
1119
|
+
L.value = "";
|
|
1120
|
+
}, g = R(
|
|
1121
|
+
() => !s.columns.some((f) => f.visible === !1 && !f.mandatory)
|
|
1122
|
+
), h = () => {
|
|
1123
|
+
a(), d.value = !d.value, d.value ? V(() => {
|
|
1124
|
+
var f;
|
|
1125
|
+
return (f = o.value.$refs.bentoInputField) == null ? void 0 : f.focusInput();
|
|
1126
1126
|
}) : V(() => {
|
|
1127
|
-
var
|
|
1128
|
-
return (
|
|
1129
|
-
}),
|
|
1130
|
-
}, m = (
|
|
1131
|
-
const
|
|
1127
|
+
var f, p;
|
|
1128
|
+
return (p = (f = u == null ? void 0 : u.value) == null ? void 0 : f.$el) == null ? void 0 : p.focus();
|
|
1129
|
+
}), v.value = g.value;
|
|
1130
|
+
}, m = (f) => f.mandatory ?? !1, O = (f) => {
|
|
1131
|
+
const p = s.columns.map((w) => ({
|
|
1132
1132
|
...w,
|
|
1133
|
-
visible:
|
|
1133
|
+
visible: f.field === w.field ? f.visible : w.visible
|
|
1134
1134
|
}));
|
|
1135
|
-
e(Q.UPDATE_COLUMNS,
|
|
1136
|
-
},
|
|
1137
|
-
|
|
1135
|
+
e(Q.UPDATE_COLUMNS, p);
|
|
1136
|
+
}, y = (f) => {
|
|
1137
|
+
f ? e(
|
|
1138
1138
|
Q.UPDATE_COLUMNS,
|
|
1139
|
-
s.columns.map((
|
|
1139
|
+
s.columns.map((p) => ({ ...p, visible: !0 }))
|
|
1140
1140
|
) : e(
|
|
1141
1141
|
Q.UPDATE_COLUMNS,
|
|
1142
|
-
s.columns.map((
|
|
1142
|
+
s.columns.map((p) => ({ ...p, visible: (p == null ? void 0 : p.mandatory) === !0 }))
|
|
1143
1143
|
);
|
|
1144
|
-
}, T = (
|
|
1145
|
-
const
|
|
1144
|
+
}, T = (f) => {
|
|
1145
|
+
const p = s.columns.map((w) => ({
|
|
1146
1146
|
...w,
|
|
1147
|
-
frozen:
|
|
1147
|
+
frozen: f.field === w.field ? !!(f != null && f.frozen) : !!(w != null && w.frozen)
|
|
1148
1148
|
}));
|
|
1149
|
-
e(Q.UPDATE_COLUMNS,
|
|
1150
|
-
},
|
|
1151
|
-
r.value =
|
|
1149
|
+
e(Q.UPDATE_COLUMNS, p);
|
|
1150
|
+
}, P = (f) => {
|
|
1151
|
+
r.value = f, v.value = g.value;
|
|
1152
1152
|
};
|
|
1153
1153
|
return {
|
|
1154
1154
|
// Values
|
|
1155
1155
|
configSettingsButtonRef: t,
|
|
1156
1156
|
popoverId: l,
|
|
1157
1157
|
isConfigSettingsPanelOpen: r,
|
|
1158
|
-
allColumnsVisbilityToggleState:
|
|
1159
|
-
filteredColumnVisibilityColumns:
|
|
1160
|
-
searchTerm:
|
|
1161
|
-
isColumnVisibilityFilterShown:
|
|
1158
|
+
allColumnsVisbilityToggleState: v,
|
|
1159
|
+
filteredColumnVisibilityColumns: c,
|
|
1160
|
+
searchTerm: L,
|
|
1161
|
+
isColumnVisibilityFilterShown: d,
|
|
1162
1162
|
searchBarRef: o,
|
|
1163
1163
|
searchButtonRef: u,
|
|
1164
1164
|
DATAGRID_SELECT_FIELD_NAME: ne,
|
|
1165
1165
|
// Methods
|
|
1166
|
-
setConfigSettingsPanelVisibility:
|
|
1167
|
-
emitCondensedToggle: (
|
|
1168
|
-
toggleAllColumnVisibility:
|
|
1166
|
+
setConfigSettingsPanelVisibility: P,
|
|
1167
|
+
emitCondensedToggle: (f) => e(Q.CONFIG_SETTINGS, f),
|
|
1168
|
+
toggleAllColumnVisibility: y,
|
|
1169
1169
|
clearAction: a,
|
|
1170
|
-
toggleColumnFilter:
|
|
1171
|
-
emitVisibleColumns:
|
|
1170
|
+
toggleColumnFilter: h,
|
|
1171
|
+
emitVisibleColumns: O,
|
|
1172
1172
|
emitFrozenColumns: T,
|
|
1173
|
-
onClickOutside: () =>
|
|
1173
|
+
onClickOutside: () => P(!1),
|
|
1174
1174
|
isColumnVisibilityToggleDisabled: m,
|
|
1175
1175
|
// Translations
|
|
1176
1176
|
t: n
|
|
@@ -1225,7 +1225,7 @@ const Hs = ks.exports, dt = {
|
|
|
1225
1225
|
},
|
|
1226
1226
|
setup(s) {
|
|
1227
1227
|
const { t: e } = se();
|
|
1228
|
-
return { __sfc: !0, t: e, BentoLoadingButton: mn, BentoLoadingButtonState: pn, BentoLoadingIndicator: tt, BentoDatagridEvent:
|
|
1228
|
+
return { __sfc: !0, t: e, BentoLoadingButton: mn, BentoLoadingButtonState: pn, BentoLoadingIndicator: tt, BentoDatagridEvent: A };
|
|
1229
1229
|
}
|
|
1230
1230
|
});
|
|
1231
1231
|
var js = function() {
|
|
@@ -1297,14 +1297,14 @@ const tl = el.exports, nl = {
|
|
|
1297
1297
|
},
|
|
1298
1298
|
emits: ["menu-item-click-close"],
|
|
1299
1299
|
setup(s, { emit: e }) {
|
|
1300
|
-
const n = s, { t } = se(), l =
|
|
1301
|
-
var
|
|
1302
|
-
return ((
|
|
1300
|
+
const n = s, { t } = se(), l = R(() => {
|
|
1301
|
+
var c;
|
|
1302
|
+
return ((c = n.cellActions) == null ? void 0 : c.length) > 2 && nt(
|
|
1303
1303
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1304
1304
|
), n.cellActions.slice(0, 2);
|
|
1305
|
-
}), o =
|
|
1306
|
-
if (!(!a &&
|
|
1307
|
-
switch (
|
|
1305
|
+
}), o = R(() => (c, a) => {
|
|
1306
|
+
if (!(!a && c.isShort || a && !c.isShort))
|
|
1307
|
+
switch (c.variant) {
|
|
1308
1308
|
case "copy":
|
|
1309
1309
|
return t("copy");
|
|
1310
1310
|
case "edit":
|
|
@@ -1314,23 +1314,23 @@ const tl = el.exports, nl = {
|
|
|
1314
1314
|
case "more":
|
|
1315
1315
|
return t("more");
|
|
1316
1316
|
default:
|
|
1317
|
-
return
|
|
1317
|
+
return c.title;
|
|
1318
1318
|
}
|
|
1319
|
-
}), r = (
|
|
1320
|
-
click: () =>
|
|
1321
|
-
} : {},
|
|
1322
|
-
...
|
|
1319
|
+
}), r = (c) => (c == null ? void 0 : c.event) !== void 0 ? {
|
|
1320
|
+
click: () => c.event(n.rowDataItem, n.columnKey)
|
|
1321
|
+
} : {}, v = (c) => ({
|
|
1322
|
+
...c,
|
|
1323
1323
|
handler: () => {
|
|
1324
|
-
|
|
1324
|
+
c != null && c.handler && typeof c.handler == "function" && (c == null || c.handler()), c != null && c.event && typeof c.event == "function" && (c == null || c.event(n.rowDataItem, n.columnKey));
|
|
1325
1325
|
}
|
|
1326
|
-
}), u = (
|
|
1326
|
+
}), u = (c) => c.map((a) => {
|
|
1327
1327
|
const g = a;
|
|
1328
|
-
return g != null && g.items && (g.items = u(g.items)), { ...
|
|
1328
|
+
return g != null && g.items && (g.items = u(g.items)), { ...v(g) };
|
|
1329
1329
|
});
|
|
1330
|
-
return { __sfc: !0, t, props: n, emit: e, limitedRowCellActionsProps: l, getButtonTitle: o, generateButtonEvents: r, generateMenuEvents:
|
|
1330
|
+
return { __sfc: !0, t, props: n, emit: e, limitedRowCellActionsProps: l, getButtonTitle: o, generateButtonEvents: r, generateMenuEvents: v, transformMenuEvents: u, getCopyText: (c) => {
|
|
1331
1331
|
var a, g;
|
|
1332
|
-
return (
|
|
1333
|
-
}, shouldShowMenuIconRight: (
|
|
1332
|
+
return (c == null ? void 0 : c.getCopyData) !== void 0 ? c.getCopyData(n.rowDataItem, n.columnKey) : (g = (a = n.rowDataItem) == null ? void 0 : a[n.columnKey]) == null ? void 0 : g.toString();
|
|
1333
|
+
}, shouldShowMenuIconRight: (c) => c.iconRight || ((c == null ? void 0 : c.variant) === "more" || (c == null ? void 0 : c.variant) === "open") && !c.isShort, shouldShowMenuIconLeft: (c) => c.iconLeft || (c == null ? void 0 : c.variant) === "more", BentoButton: lt, BentoMenu: rt, Copy: _n, Edit1Icon: tl, ExternalLinkIcon: gn, OptionsVerticalIcon: un };
|
|
1334
1334
|
}
|
|
1335
1335
|
});
|
|
1336
1336
|
var ol = function() {
|
|
@@ -1368,7 +1368,7 @@ var ol = function() {
|
|
|
1368
1368
|
"3bdd74d8"
|
|
1369
1369
|
);
|
|
1370
1370
|
const rl = al.exports;
|
|
1371
|
-
var
|
|
1371
|
+
var W = /* @__PURE__ */ ((s) => (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.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s))(W || {});
|
|
1372
1372
|
const cl = {
|
|
1373
1373
|
"en-US": {
|
|
1374
1374
|
selectRow: "Select row"
|
|
@@ -1464,62 +1464,65 @@ const cl = {
|
|
|
1464
1464
|
},
|
|
1465
1465
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered"],
|
|
1466
1466
|
setup(s, { expose: e, emit: n }) {
|
|
1467
|
-
const t = s, { t: l } = se(), o =
|
|
1468
|
-
var
|
|
1469
|
-
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
|
|
1467
|
+
const t = s, { t: l } = se(), o = b(null), r = b(null), v = b(!1), u = b([]), L = R(() => {
|
|
1468
|
+
var C;
|
|
1469
|
+
return !!((C = t.rowData) != null && C[t.column.field]);
|
|
1470
|
+
}), S = (C, _) => (C == null ? void 0 : C.overflow) === Le.ELLIPSIS ? `${_}` : void 0, d = (C) => C ?? "-", c = (C) => t.columnSets.slice(0, C).reduce((_, { columnSet: f }) => _ + f.length, 0), a = (C, _) => C + c(_), g = (C, _, f) => c() * C + a(_, f), h = (C) => {
|
|
1471
|
+
var _;
|
|
1472
|
+
(C === null || !o.value.contains(C) && !((_ = u.value) != null && _.map((f) => f.value).some((f) => f === C || (f == null ? void 0 : f.contains(C))))) && (v.value = !1);
|
|
1473
|
+
}, m = () => {
|
|
1474
|
+
v.value = !1;
|
|
1475
|
+
}, O = (C) => {
|
|
1473
1476
|
const f = { ...{
|
|
1474
|
-
...t.draggingEventsForRowCell(
|
|
1477
|
+
...t.draggingEventsForRowCell(C)
|
|
1475
1478
|
} };
|
|
1476
|
-
return
|
|
1477
|
-
|
|
1478
|
-
}, f.mouseleave = (
|
|
1479
|
-
|
|
1480
|
-
}, f.mouseleave = (
|
|
1481
|
-
|
|
1482
|
-
}, f.focus = (
|
|
1483
|
-
|
|
1484
|
-
}, f.focusout = (
|
|
1485
|
-
|
|
1479
|
+
return C.frozen && (f.keyup = (p) => n("on-frozen-columns-key-press", p), f.keydown = (p) => n("on-frozen-columns-key-press", p)), C.cellActions && (f.mouseenter = () => {
|
|
1480
|
+
v.value = !0;
|
|
1481
|
+
}, f.mouseleave = (p) => {
|
|
1482
|
+
v.value = !1, h(p == null ? void 0 : p.relatedTarget);
|
|
1483
|
+
}, f.mouseleave = (p) => {
|
|
1484
|
+
h(p == null ? void 0 : p.relatedTarget);
|
|
1485
|
+
}, f.focus = (p) => {
|
|
1486
|
+
v.value = !0;
|
|
1487
|
+
}, f.focusout = (p) => {
|
|
1488
|
+
h(p == null ? void 0 : p.relatedTarget);
|
|
1486
1489
|
}), f;
|
|
1487
1490
|
};
|
|
1488
1491
|
H(
|
|
1489
|
-
() =>
|
|
1492
|
+
() => v.value,
|
|
1490
1493
|
() => {
|
|
1491
|
-
|
|
1494
|
+
v.value === !0 ? n("cell-hovered", t.rowIndex) : n("cell-hovered", -1);
|
|
1492
1495
|
}
|
|
1493
1496
|
);
|
|
1494
|
-
const
|
|
1495
|
-
u.value.push(
|
|
1496
|
-
},
|
|
1497
|
-
o.value.contains(
|
|
1497
|
+
const y = (C) => {
|
|
1498
|
+
u.value.push(C);
|
|
1499
|
+
}, T = (C) => {
|
|
1500
|
+
o.value.contains(C == null ? void 0 : C.relatedTarget) || (v.value = !1);
|
|
1498
1501
|
};
|
|
1499
1502
|
Vt(fn, {
|
|
1500
|
-
registerMenuContainerElement:
|
|
1501
|
-
menuMouseLeave:
|
|
1503
|
+
registerMenuContainerElement: y,
|
|
1504
|
+
menuMouseLeave: T
|
|
1502
1505
|
});
|
|
1503
|
-
const
|
|
1504
|
-
var
|
|
1506
|
+
const P = (C) => {
|
|
1507
|
+
var _, f, p, w, x, U, z;
|
|
1505
1508
|
return {
|
|
1506
|
-
[`b-data-grid-cell--${
|
|
1507
|
-
[`b-data-grid-cell--${
|
|
1508
|
-
[`b-data-grid-cell--${
|
|
1509
|
-
[`b-data-grid-cell--${
|
|
1510
|
-
[`b-data-grid-cell--${
|
|
1511
|
-
[`b-data-grid-cell--${
|
|
1512
|
-
[`b-data-grid-cell--${
|
|
1513
|
-
[`b-data-grid-cell--${
|
|
1514
|
-
[`b-data-grid-cell--${
|
|
1515
|
-
[`b-data-grid-cell--${
|
|
1516
|
-
[`b-data-grid-cell--${
|
|
1517
|
-
[`b-data-grid-cell--${
|
|
1509
|
+
[`b-data-grid-cell--${W.COLUMN_HOVERED}`]: (C == null ? void 0 : C.field) === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1510
|
+
[`b-data-grid-cell--${W.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (C == null ? void 0 : C.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1511
|
+
[`b-data-grid-cell--${W.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (C == null ? void 0 : C.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1512
|
+
[`b-data-grid-cell--${W.PADDING_LEFT_UNSET}`]: ((_ = C == null ? void 0 : C.padding) == null ? void 0 : _.left) === !1,
|
|
1513
|
+
[`b-data-grid-cell--${W.PADDING_RIGHT_UNSET}`]: ((f = C == null ? void 0 : C.padding) == null ? void 0 : f.right) === !1,
|
|
1514
|
+
[`b-data-grid-cell--${W.NUMERIC}`]: C == null ? void 0 : C.numeric,
|
|
1515
|
+
[`b-data-grid-cell--${W.CONDENSED}`]: t.condensed,
|
|
1516
|
+
[`b-data-grid-cell--${W.OVERFLOW_ELLIPSIS}`]: (C == null ? void 0 : C.overflow) === Le.ELLIPSIS,
|
|
1517
|
+
[`b-data-grid-cell--${W.IS_COLUMN_REORDERING}`]: ((p = t.draggingColumns.dragging) == null ? void 0 : p.field) === C.field,
|
|
1518
|
+
[`b-data-grid-cell--${W.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((w = t.draggingColumns.target) == null ? void 0 : w.field) === C.field && ((x = t.draggingColumns) == null ? void 0 : x.dragToLeft),
|
|
1519
|
+
[`b-data-grid-cell--${W.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((U = t.draggingColumns.target) == null ? void 0 : U.field) === C.field && !((z = t.draggingColumns) != null && z.dragToLeft),
|
|
1520
|
+
[`b-data-grid-cell--${W.FROZEN}`]: C == null ? void 0 : C.frozen
|
|
1518
1521
|
};
|
|
1519
1522
|
};
|
|
1520
1523
|
return e({
|
|
1521
1524
|
gridcellRef: o
|
|
1522
|
-
}), { __sfc: !0, t: l, props: t, emit: n, gridcellRef: o, cellActionsRef: r, shouldShowCellActions:
|
|
1525
|
+
}), { __sfc: !0, t: l, props: t, emit: n, gridcellRef: o, cellActionsRef: r, shouldShowCellActions: v, childrenMenuContainerElements: u, hasRowData: L, conditionalTitleAttribute: S, getRowData: d, sumColumnAmountsInColumnSets: c, getColIndex: a, getCellIndex: g, isLeavingCellFocus: h, onMenuClose: m, getGridcellEvents: O, registerMenuContainerElement: y, menuMouseLeave: T, conditionalRowCellClasses: P, DATAGRID_SELECT_FIELD_NAME: ne, BentoCheckbox: at, BentoTypography: he, DataGridCellActions: rl };
|
|
1523
1526
|
}
|
|
1524
1527
|
});
|
|
1525
1528
|
var fl = function() {
|
|
@@ -1529,7 +1532,7 @@ var fl = function() {
|
|
|
1529
1532
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
1530
1533
|
}, attrs: { "data-testid": `cell-${e.column.field}`, "data-cellindex": t.getCellIndex(e.rowIndex, e.colIndex, e.columnSetIndex), role: "gridcell", tabindex: t.getCellIndex(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": t.getColIndex(e.colIndex, e.columnSetIndex) + 1 } }, t.getGridcellEvents(e.column)), [e.column.field !== t.DATAGRID_SELECT_FIELD_NAME ? [n(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${e.column.field}`, function() {
|
|
1531
1534
|
return [n("span", { attrs: { title: t.conditionalTitleAttribute(e.column, e.rowData[e.column.field]) } }, [e._v(e._s(t.getRowData(e.rowData[e.column.field])))])];
|
|
1532
|
-
}, { item: e.rowData })], 2), ((l = e.column.cellActions) == null ? void 0 : l.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [t.shouldShowCellActions ? n(t.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": e.column.cellActions, "column-key": e.column.field, "row-data-item": e.rowData }, on: { "menu-item-click-close": t.onMenuClose } }) : e._e()], 1) : e._e()] : [n(t.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": t.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(e.rowData), value: e.getDataItemId(e.rowData) }, on: { "update:model-value": function(o) {
|
|
1535
|
+
}, { item: e.rowData })], 2), ((l = e.column.cellActions) == null ? void 0 : l.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [t.shouldShowCellActions && t.hasRowData ? n(t.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": e.column.cellActions, "column-key": e.column.field, "row-data-item": e.rowData }, on: { "menu-item-click-close": t.onMenuClose } }) : e._e()], 1) : e._e()] : [n(t.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": t.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(e.rowData), value: e.getDataItemId(e.rowData) }, on: { "update:model-value": function(o) {
|
|
1533
1536
|
return e.$emit("select-row", o);
|
|
1534
1537
|
} } })]], 2);
|
|
1535
1538
|
}, gl = [], _l = /* @__PURE__ */ $(
|
|
@@ -1538,7 +1541,7 @@ var fl = function() {
|
|
|
1538
1541
|
gl,
|
|
1539
1542
|
!1,
|
|
1540
1543
|
null,
|
|
1541
|
-
"
|
|
1544
|
+
"8d39e541"
|
|
1542
1545
|
);
|
|
1543
1546
|
const vl = _l.exports;
|
|
1544
1547
|
let Ke = 0;
|
|
@@ -1567,7 +1570,7 @@ const Ll = hl.exports, Sl = {}, El = /* @__PURE__ */ ee({
|
|
|
1567
1570
|
variant: { default: "no-value" }
|
|
1568
1571
|
},
|
|
1569
1572
|
setup(s) {
|
|
1570
|
-
const e = s, n =
|
|
1573
|
+
const e = s, n = R(() => {
|
|
1571
1574
|
switch (e.variant) {
|
|
1572
1575
|
case "checkmark":
|
|
1573
1576
|
return jt;
|
|
@@ -1582,9 +1585,9 @@ const Ll = hl.exports, Sl = {}, El = /* @__PURE__ */ ee({
|
|
|
1582
1585
|
default:
|
|
1583
1586
|
return Pe;
|
|
1584
1587
|
}
|
|
1585
|
-
}), t =
|
|
1588
|
+
}), t = R(() => ({
|
|
1586
1589
|
"b-data-grid-static-icon--colored": e.colored && e.variant !== "no-value"
|
|
1587
|
-
})), l =
|
|
1590
|
+
})), l = R(() => `b-data-grid-static-icon__${e.variant}`), o = R(() => Yt.AUTO);
|
|
1588
1591
|
return { __sfc: !0, props: e, computedIcon: n, conditionalClasses: t, computedIconClass: l, tooltipPosition: o, vBentoTooltipDirective: Xt };
|
|
1589
1592
|
}
|
|
1590
1593
|
});
|
|
@@ -1817,62 +1820,62 @@ const Co = Rl.exports, yl = {
|
|
|
1817
1820
|
}
|
|
1818
1821
|
},
|
|
1819
1822
|
emits: [
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1823
|
+
A.COLUMNS,
|
|
1824
|
+
A.COLUMN_RESIZE,
|
|
1825
|
+
A.ITEMS_PAGE,
|
|
1826
|
+
A.FILTER_SEARCH_INPUT,
|
|
1827
|
+
A.FILTER_SEARCH_CLEAR,
|
|
1828
|
+
A.NAVIGATE,
|
|
1829
|
+
A.UPDATE_COLUMNS,
|
|
1830
|
+
A.UPDATE_CONDENSED,
|
|
1831
|
+
A.UPDATE_FILTER_VALUES,
|
|
1832
|
+
A.UPDATE_FILTERS,
|
|
1833
|
+
A.UPDATE_FILTER_SEARCH_TERM,
|
|
1834
|
+
A.UPDATE_SHOW_MORE,
|
|
1835
|
+
A.UPDATE_PAGINATION,
|
|
1836
|
+
A.UPDATE_SELECTION,
|
|
1837
|
+
A.UPDATE_SORT_BY,
|
|
1838
|
+
A.ROW_CLICK,
|
|
1839
|
+
A.SELECT,
|
|
1840
|
+
A.SELECT_ALL_ACROSS_PAGES,
|
|
1841
|
+
A.SORT
|
|
1839
1842
|
],
|
|
1840
1843
|
setup(s, { expose: e, emit: n }) {
|
|
1841
|
-
const t = s, l = Zt(), o =
|
|
1842
|
-
allowColumnDragAndDrop:
|
|
1844
|
+
const t = s, l = Zt(), o = b(null), r = b(), v = b({}), u = b(null), L = b(null), S = b(), d = b(null), {
|
|
1845
|
+
allowColumnDragAndDrop: c,
|
|
1843
1846
|
columns: a,
|
|
1844
1847
|
columnPanel: g,
|
|
1845
|
-
data:
|
|
1848
|
+
data: h,
|
|
1846
1849
|
lazyLoadType: m,
|
|
1847
|
-
selectable:
|
|
1848
|
-
selection:
|
|
1850
|
+
selectable: O,
|
|
1851
|
+
selection: y,
|
|
1849
1852
|
loading: T,
|
|
1850
|
-
selectableAcrossPages:
|
|
1851
|
-
outline:
|
|
1852
|
-
} = Ee(t),
|
|
1853
|
+
selectableAcrossPages: P,
|
|
1854
|
+
outline: C
|
|
1855
|
+
} = Ee(t), _ = b(-1), { t: f } = se(), p = R(() => B.value.filter((E) => E.frozen).length), w = Fe(
|
|
1853
1856
|
sn,
|
|
1854
1857
|
() => ({
|
|
1855
1858
|
isDataGridTemplate: !1,
|
|
1856
|
-
stickyTabs:
|
|
1857
|
-
tabsRef:
|
|
1859
|
+
stickyTabs: b(!1),
|
|
1860
|
+
tabsRef: b(null)
|
|
1858
1861
|
})
|
|
1859
|
-
), { isDataGridTemplate: x, stickyTabs: U, tabsRef:
|
|
1860
|
-
columnDefs:
|
|
1861
|
-
onColumnWidthOverride:
|
|
1862
|
+
), { isDataGridTemplate: x, stickyTabs: U, tabsRef: z } = w(), k = R(() => t.fitContent || x ? 0 : null), {
|
|
1863
|
+
columnDefs: B,
|
|
1864
|
+
onColumnWidthOverride: M,
|
|
1862
1865
|
gridColumnWidthStyle: I,
|
|
1863
1866
|
isMeasuringColumnWidths: Z,
|
|
1864
1867
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: re,
|
|
1865
1868
|
columns: ce
|
|
1866
|
-
} = yn(a,
|
|
1869
|
+
} = yn(a, h, o, v, u, {
|
|
1867
1870
|
hasColumnPanel: g,
|
|
1868
|
-
hasSelectableColumn:
|
|
1869
|
-
hasSelectableAcrossPages:
|
|
1870
|
-
allowColumnDragAndDrop:
|
|
1871
|
-
}), i = (
|
|
1872
|
-
(
|
|
1873
|
-
}, N = Be(
|
|
1871
|
+
hasSelectableColumn: O,
|
|
1872
|
+
hasSelectableAcrossPages: P,
|
|
1873
|
+
allowColumnDragAndDrop: c
|
|
1874
|
+
}), i = (E, ...D) => {
|
|
1875
|
+
(E === A.COLUMNS || E === A.UPDATE_COLUMNS) && ([ce.value] = D), n(E, ...D);
|
|
1876
|
+
}, N = Be(z, U), Y = R(
|
|
1874
1877
|
() => t.stickyFilters ? `${N.value}px` : null
|
|
1875
|
-
), X = Be(
|
|
1878
|
+
), X = Be(L, Qe(t, "stickyFilters")), le = R(
|
|
1876
1879
|
() => `${X.value + N.value}px`
|
|
1877
1880
|
), {
|
|
1878
1881
|
sortedColumns: ie,
|
|
@@ -1881,127 +1884,127 @@ const Co = Rl.exports, yl = {
|
|
|
1881
1884
|
onConfigSettingsUpdate: ue,
|
|
1882
1885
|
onConfigSettingsColumnsUpdate: fe,
|
|
1883
1886
|
onConfigSettingsColumnUpdate: ge
|
|
1884
|
-
} = Mn(
|
|
1887
|
+
} = Mn(B, i), { hoveredOverColumn: _e, hoveredOverColumnState: ut } = Pn(
|
|
1885
1888
|
oe,
|
|
1886
|
-
|
|
1887
|
-
|
|
1889
|
+
O,
|
|
1890
|
+
C,
|
|
1888
1891
|
re
|
|
1889
|
-
), { draggingColumns: be, draggingEventsForColumns: ft, draggingEventsForRowCell: gt, onMoveColumnByOffset: _t } = Dn(ie,
|
|
1890
|
-
|
|
1892
|
+
), { draggingColumns: be, draggingEventsForColumns: ft, draggingEventsForRowCell: gt, onMoveColumnByOffset: _t } = Dn(ie, c, i), { onAllRowSelect: vt, onRowSelect: Ct, selectedItems: ve, allItemsSelectedState: mt } = An(
|
|
1893
|
+
y,
|
|
1891
1894
|
i,
|
|
1892
|
-
|
|
1895
|
+
h,
|
|
1893
1896
|
t.getDataItemId,
|
|
1894
1897
|
t.isDataItemDisabled
|
|
1895
|
-
), { navigationInput: pt } = In(u, a,
|
|
1898
|
+
), { navigationInput: pt } = In(u, a, O), { isLazyLoad: Re, isInfiniteScroll: ht, verticalScrollPosition: ye, emitLazyLoadEvent: Lt } = Nn(
|
|
1896
1899
|
m,
|
|
1897
|
-
|
|
1900
|
+
d,
|
|
1898
1901
|
o,
|
|
1899
1902
|
T,
|
|
1900
1903
|
i
|
|
1901
1904
|
), { updateScrollPosition: St, updateScrollPositionOnFrozenColumnsNavigation: Et, hasLeftOverflow: Ce, hasRightOverflow: Ae } = Fn(o, r, ye), Te = () => {
|
|
1902
|
-
|
|
1903
|
-
}, Ot =
|
|
1904
|
-
var
|
|
1905
|
+
S.value.isClearAllVisible ? S.value.clearAllFilters() : S.value.isResetAllVisible && S.value.resetAllFilters();
|
|
1906
|
+
}, Ot = R(() => {
|
|
1907
|
+
var E, D;
|
|
1905
1908
|
return {
|
|
1906
1909
|
...t.emptyState,
|
|
1907
|
-
variant: ((
|
|
1910
|
+
variant: ((E = t.emptyState) == null ? void 0 : E.variant) === "embedded" || ((D = t.emptyState) == null ? void 0 : D.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
1908
1911
|
};
|
|
1909
|
-
}), bt =
|
|
1912
|
+
}), bt = R(() => ({
|
|
1910
1913
|
[`b-data-grid--${J.OUTLINE}`]: t.outline,
|
|
1911
1914
|
[`b-data-grid--${J.SCROLL}`]: t.fitContent || Re.value,
|
|
1912
1915
|
[`b-data-grid--${J.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
1913
|
-
[`b-data-grid--${J.OVERFLOW_SHADOW_LEFT}`]: Ce.value && !
|
|
1916
|
+
[`b-data-grid--${J.OVERFLOW_SHADOW_LEFT}`]: Ce.value && !p.value,
|
|
1914
1917
|
[`b-data-grid--${J.OVERFLOW_SHADOW_RIGHT}`]: Ae.value,
|
|
1915
1918
|
[`b-data-grid--${J.NO_SPACING_TOP}`]: t.noSpacingTop
|
|
1916
|
-
})), Rt =
|
|
1919
|
+
})), Rt = R(() => oe.value.findIndex((E) => E.columnSet.length)), yt = (E, D) => {
|
|
1917
1920
|
var j;
|
|
1918
1921
|
return {
|
|
1919
|
-
"b-data-grid__row--disabled": t.isDataItemDisabled(
|
|
1922
|
+
"b-data-grid__row--disabled": t.isDataItemDisabled(E),
|
|
1920
1923
|
"b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
|
|
1921
1924
|
"b-data-grid__cell--is-re-ordering": ((j = be.target) == null ? void 0 : j.field) !== void 0,
|
|
1922
|
-
"b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(
|
|
1923
|
-
"b-data-grid__row--hovered":
|
|
1925
|
+
"b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(E)) || ve.value.includes(t.getDataItemId(E)),
|
|
1926
|
+
"b-data-grid__row--hovered": _.value === D
|
|
1924
1927
|
};
|
|
1925
|
-
}, Ie =
|
|
1926
|
-
"b-data-grid__row-cell-set--frozen":
|
|
1927
|
-
[`b-data-grid__row-cell-set--${J.OVERFLOW_SHADOW_LEFT}`]:
|
|
1928
|
-
"b-data-grid__row-cell-set--frozen-separator":
|
|
1929
|
-
"b-data-grid__row-cell-set--unfrozen": !
|
|
1928
|
+
}, Ie = R(() => !(t.selectable && p.value === 1) || Ce.value), At = (E) => ({
|
|
1929
|
+
"b-data-grid__row-cell-set--frozen": E,
|
|
1930
|
+
[`b-data-grid__row-cell-set--${J.OVERFLOW_SHADOW_LEFT}`]: E && Ce.value,
|
|
1931
|
+
"b-data-grid__row-cell-set--frozen-separator": E && Ie.value,
|
|
1932
|
+
"b-data-grid__row-cell-set--unfrozen": !E,
|
|
1930
1933
|
"b-data-grid__row-cell-set--is-measuring": Z.value
|
|
1931
|
-
}), Tt =
|
|
1932
|
-
var
|
|
1934
|
+
}), Tt = R(() => {
|
|
1935
|
+
var E, D, j, q, ae, Me;
|
|
1933
1936
|
return {
|
|
1934
|
-
"b-data-grid__pagination--padding-left-unset": ((j = (D = (
|
|
1937
|
+
"b-data-grid__pagination--padding-left-unset": ((j = (D = (E = t.columns) == null ? void 0 : E[0]) == null ? void 0 : D.padding) == null ? void 0 : j.left) === !1,
|
|
1935
1938
|
"b-data-grid__pagination--padding-right-unset": ((Me = (ae = (q = t.columns) == null ? void 0 : q[t.columns.length - 1]) == null ? void 0 : ae.padding) == null ? void 0 : Me.right) === !1,
|
|
1936
1939
|
"b-data-grid__pagination--sticky": !!t.stickyPagination || x
|
|
1937
1940
|
};
|
|
1938
|
-
}), It = (
|
|
1939
|
-
const D =
|
|
1940
|
-
|
|
1941
|
-
|
|
1941
|
+
}), It = (E) => {
|
|
1942
|
+
const D = E;
|
|
1943
|
+
E !== null && (D != null && D.columnHeaderRefs) && Object.entries(D == null ? void 0 : D.columnHeaderRefs).forEach(([j, q]) => {
|
|
1944
|
+
v.value[j] = q;
|
|
1942
1945
|
});
|
|
1943
|
-
}, wt = (
|
|
1946
|
+
}, wt = (E, D, j) => {
|
|
1944
1947
|
var ae;
|
|
1945
|
-
const q =
|
|
1946
|
-
((ae = u.value) == null ? void 0 : ae[D]) === void 0 && (u.value = { ...u.value, [D]: [] }),
|
|
1947
|
-
}, Nt = (
|
|
1948
|
-
t.allowRowClicks && i(
|
|
1949
|
-
}, Dt = (
|
|
1950
|
-
|
|
1951
|
-
}, Mt =
|
|
1948
|
+
const q = E;
|
|
1949
|
+
((ae = u.value) == null ? void 0 : ae[D]) === void 0 && (u.value = { ...u.value, [D]: [] }), E !== null && (q != null && q.gridcellRef) && (u.value[D][j] = q.gridcellRef);
|
|
1950
|
+
}, Nt = (E, D) => {
|
|
1951
|
+
t.allowRowClicks && i(A.ROW_CLICK, E, D);
|
|
1952
|
+
}, Dt = (E) => {
|
|
1953
|
+
_.value = E;
|
|
1954
|
+
}, Mt = R(() => !!t.selectableAcrossPages && !!t.pagination), Ft = Qt({
|
|
1952
1955
|
label: l != null && l.header ? en(l)("header") : null,
|
|
1953
1956
|
defaultFallback: "data grid"
|
|
1954
|
-
}), Pt = (
|
|
1957
|
+
}), Pt = (E) => {
|
|
1955
1958
|
if (!t.selectable)
|
|
1956
1959
|
return null;
|
|
1957
|
-
const D = t.getDataItemId(
|
|
1960
|
+
const D = t.getDataItemId(E);
|
|
1958
1961
|
return ve.value.includes(D).toString();
|
|
1959
|
-
}, we =
|
|
1960
|
-
var
|
|
1961
|
-
return ((
|
|
1962
|
-
}), $t =
|
|
1963
|
-
i(
|
|
1964
|
-
}, zt = (
|
|
1965
|
-
i(
|
|
1962
|
+
}, we = R(() => {
|
|
1963
|
+
var E;
|
|
1964
|
+
return ((E = ve.value) == null ? void 0 : E.length) ?? 0;
|
|
1965
|
+
}), $t = R(() => t.bulkActions && we.value > 0), xt = (E) => i(A.COLUMN_RESIZE, E), Ut = (E) => {
|
|
1966
|
+
i(A.UPDATE_SORT_BY, E), i(A.SORT, E);
|
|
1967
|
+
}, zt = (E, D) => {
|
|
1968
|
+
i(A.NAVIGATE, E), i(A.UPDATE_PAGINATION, {
|
|
1966
1969
|
...t.pagination,
|
|
1967
1970
|
size: D,
|
|
1968
|
-
page:
|
|
1971
|
+
page: E
|
|
1969
1972
|
});
|
|
1970
|
-
}, Bt = (
|
|
1971
|
-
i(
|
|
1973
|
+
}, Bt = (E) => {
|
|
1974
|
+
i(A.ITEMS_PAGE, E);
|
|
1972
1975
|
}, Gt = () => {
|
|
1973
|
-
i(
|
|
1974
|
-
}, Wt = (
|
|
1975
|
-
i(
|
|
1976
|
-
}, Ne =
|
|
1976
|
+
i(A.FILTER_SEARCH_CLEAR);
|
|
1977
|
+
}, Wt = (E) => {
|
|
1978
|
+
i(A.UPDATE_FILTER_SEARCH_TERM, E), i(A.FILTER_SEARCH_INPUT, E);
|
|
1979
|
+
}, Ne = R(() => a.value.some((E) => E.mandatory));
|
|
1977
1980
|
Ne.value || nt(
|
|
1978
1981
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
1979
1982
|
);
|
|
1980
1983
|
const De = Fe(nn, () => null);
|
|
1981
|
-
return De(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Te }), { __sfc: !0, props: t, slots: l, body: o, columnsRef: r, columnHeaderRefs:
|
|
1984
|
+
return De(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Te }), { __sfc: !0, props: t, slots: l, body: o, columnsRef: r, columnHeaderRefs: v, gridcellRefs: u, filtersRef: L, filterBarRef: S, verticalScrollPositionRef: d, allowColumnDragAndDrop: c, columns: a, columnPanel: g, data: h, lazyLoadType: m, selectable: O, selection: y, loading: T, selectableAcrossPages: P, outline: C, hoveredRowIndex: _, t: f, frozenColumnsLength: p, registerDatagridInDataGridTemplate: w, isDataGridTemplate: x, stickyTabs: U, tabsRef: z, computedColumnsTabIndex: k, columnDefs: B, onColumnWidthOverride: M, gridColumnWidthStyle: I, isMeasuringColumnWidths: Z, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: re, localColumnsState: ce, definedEmitsFunction: n, emit: i, stickyFiltersHeight: N, computedStickyFiltersTopPosition: Y, columnHeadersHeight: X, computedColumnHeadersTopPosition: le, sortedColumns: ie, columnSets: oe, isOnlyOneVisibleColumn: de, onConfigSettingsUpdate: ue, onConfigSettingsColumnsUpdate: fe, onConfigSettingsColumnUpdate: ge, hoveredOverColumn: _e, hoveredOverColumnState: ut, draggingColumns: be, draggingEventsForColumns: ft, draggingEventsForRowCell: gt, onMoveColumnByOffset: _t, onAllRowSelect: vt, onRowSelect: Ct, selectedItems: ve, allItemsSelectedState: mt, navigationInput: pt, isLazyLoad: Re, isInfiniteScroll: ht, verticalScrollPosition: ye, emitLazyLoadEvent: Lt, updateScrollPosition: St, updateScrollPositionOnFrozenColumnsNavigation: Et, hasLeftOverflow: Ce, hasRightOverflow: Ae, onEmptyStateClearResetButtonClick: Te, limitedEmptyStateProps: Ot, conditionalGridClasses: bt, computedColumnPanelAlignment: Rt, conditionalRowClasses: yt, showFrozenColumnsSeparator: Ie, conditionalRowSetClasses: At, conditionalPaginationClasses: Tt, registerColumnHeaderRefs: It, registerRowCellRef: wt, onRowClick: Nt, onCellHover: Dt, selectableAcrossPagesComputed: Mt, ariaGridHeaderText: Ft, getRowAriaSelectedValue: Pt, itemsSelectedCounter: we, showActionBar: $t, onColumnResized: xt, onSort: Ut, onPaginationNavigate: zt, onItemsPerPageChange: Bt, onSearchTermCleared: Gt, onSearchTermInput: Wt, hasMandatoryColumn: Ne, setTitle: De, BentoActionBar: Kt, BentoPagination: Jt, BentoLoadingIndicator: tt, BentoTypography: he, BentoDataGridConfigSettings: Hs, DataGridCell: vl, DataGridColumns: As, DataGridLazyLoad: Xs, BentoDatagridEvent: A, BentoEmptyState: tn, BentoFilterBar: me };
|
|
1982
1985
|
}
|
|
1983
1986
|
});
|
|
1984
1987
|
var Tl = function() {
|
|
1985
1988
|
var l;
|
|
1986
1989
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1987
|
-
return n("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? n(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, o), "update:filter-values": (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, o) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [t.columnPanel ? n(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: t.localColumnsState, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: o, id: r, isFrozenColumns:
|
|
1988
|
-
return [o != null && o.length ? n(t.DataGridColumns, e._g({ key: `data-grid-columns-${r}`, ref: (
|
|
1989
|
-
t.hoveredOverColumn =
|
|
1990
|
-
}, "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, "select-all-across-pages": function(
|
|
1990
|
+
return n("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? n(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, o), "update:filter-values": (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, o) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [t.columnPanel ? n(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: t.localColumnsState, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: o, id: r, isFrozenColumns: v }, u) {
|
|
1991
|
+
return [o != null && o.length ? n(t.DataGridColumns, e._g({ key: `data-grid-columns-${r}`, ref: (L) => t.registerColumnHeaderRefs(L), refInFor: !0, attrs: { columns: o, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": v, "show-frozen-columns-separator": t.showFrozenColumnsSeparator, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": t.columnPanel, "has-left-overflow": t.hasLeftOverflow, "has-first-column-panel-right-aligned": u === t.computedColumnPanelAlignment, "hovered-over-column-state": t.hoveredOverColumnState, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-only-one-visible-column": t.isOnlyOneVisibleColumn, "selectable-across-pages": t.selectableAcrossPagesComputed, "truncate-column-headers": e.truncateColumnHeaders }, on: { "column-hover": function(L) {
|
|
1992
|
+
t.hoveredOverColumn = L;
|
|
1993
|
+
}, "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, "select-all-across-pages": function(L) {
|
|
1991
1994
|
return t.emit(t.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
1992
|
-
}, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(
|
|
1993
|
-
return { key:
|
|
1994
|
-
return [e._t(
|
|
1995
|
+
}, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(L, S) {
|
|
1996
|
+
return { key: S, fn: function(d) {
|
|
1997
|
+
return [e._t(S, null, null, d)];
|
|
1995
1998
|
} };
|
|
1996
1999
|
})], null, !0) }, t.draggingEventsForColumns)) : e._e()];
|
|
1997
2000
|
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { "data-testid": "data-grid-body", tabindex: t.loading ? "0" : "-1", "aria-busy": t.loading, "aria-live": "polite" }, on: { scroll: t.updateScrollPosition } }, [t.loading && !t.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(t.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(t.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(t.t("gettingYourData")))])], 1) : ((l = t.data) == null ? void 0 : l.length) === 0 && e.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(t.BentoEmptyState, e._b({}, "bento-empty-state", t.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: t.navigationInput } }, e._l(t.data, function(o, r) {
|
|
1998
|
-
return n("div", { key: r, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(o, r), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": r + 1, "aria-selected": t.getRowAriaSelectedValue(o) }, on: { click: function(
|
|
1999
|
-
return t.onRowClick(o,
|
|
2000
|
-
} } }, [e._l(t.columnSets, function({ columnSet:
|
|
2001
|
-
return [
|
|
2002
|
-
return n(t.DataGridCell, { key: `cell-${
|
|
2003
|
-
return { key: g, fn: function(
|
|
2004
|
-
return [e._t(g, null, null,
|
|
2001
|
+
return n("div", { key: r, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(o, r), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": r + 1, "aria-selected": t.getRowAriaSelectedValue(o) }, on: { click: function(v) {
|
|
2002
|
+
return t.onRowClick(o, v);
|
|
2003
|
+
} } }, [e._l(t.columnSets, function({ columnSet: v, id: u, isFrozenColumns: L }, S) {
|
|
2004
|
+
return [v != null && v.length ? n("div", { key: `data-grid-rows-${u}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(L), attrs: { "data-testid": `data-grid-${u}-rows` } }, e._l(v, function(d, c) {
|
|
2005
|
+
return n(t.DataGridCell, { key: `cell-${d.field}`, ref: (a) => t.registerRowCellRef(a, d.field, r), refInFor: !0, attrs: { column: d, "column-set-index": S, "col-index": c, "column-sets": t.columnSets, condensed: e.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": e.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": e.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "row-data": o, "row-index": r, "selected-items": t.selectedItems }, on: { "cell-hover": (a) => t.hoveredOverColumn = a, "on-frozen-columns-key-press": t.updateScrollPositionOnFrozenColumnsNavigation, "select-row": t.onRowSelect, "cell-hovered": t.onCellHover }, scopedSlots: e._u([e._l(t.slots, function(a, g) {
|
|
2006
|
+
return { key: g, fn: function(h) {
|
|
2007
|
+
return [e._t(g, null, null, h)];
|
|
2005
2008
|
} };
|
|
2006
2009
|
})], null, !0) });
|
|
2007
2010
|
}), 1) : e._e()];
|
|
@@ -2024,7 +2027,7 @@ export {
|
|
|
2024
2027
|
J as b,
|
|
2025
2028
|
te as c,
|
|
2026
2029
|
mo as d,
|
|
2027
|
-
|
|
2030
|
+
A as e,
|
|
2028
2031
|
pe as f
|
|
2029
2032
|
};
|
|
2030
|
-
//# sourceMappingURL=data-grid.
|
|
2033
|
+
//# sourceMappingURL=data-grid.Dsv60eRz.js.map
|