@adyen/bento-vue2 1.91.0 → 1.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +118 -127
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.Dj830k6L.js → action-bar.ChuPTyQG.js} +3 -3
- package/dist/chunks/{action-bar.Dj830k6L.js.map → action-bar.ChuPTyQG.js.map} +1 -1
- package/dist/chunks/{ai-tag.AyG2UWCB.js → ai-tag.Dt8nijLW.js} +2 -2
- package/dist/chunks/{ai-tag.AyG2UWCB.js.map → ai-tag.Dt8nijLW.js.map} +1 -1
- package/dist/chunks/{alert.CXRb-Smf.js → alert.CLqcPN0Q.js} +73 -55
- package/dist/chunks/alert.CLqcPN0Q.js.map +1 -0
- package/dist/chunks/{base-modal.C52VMtnd.js → base-modal.DMdzcBrq.js} +3 -3
- package/dist/chunks/base-modal.DMdzcBrq.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.OsPQ-POD.js → button-actions-with-menu.CXFziNUr.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.OsPQ-POD.js.map → button-actions-with-menu.CXFziNUr.js.map} +1 -1
- package/dist/chunks/{button-actions.Bdbu0bvt.js → button-actions.CXD6_9qN.js} +4 -4
- package/dist/chunks/button-actions.CXD6_9qN.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.C9b2AC9w.js.map +1 -1
- package/dist/chunks/{calendar.CqsfThnC.js → calendar.rZsIZPxm.js} +526 -466
- package/dist/chunks/calendar.rZsIZPxm.js.map +1 -0
- package/dist/chunks/{card.8z7UQeVK.js → card.Brma5kdb.js} +2 -2
- package/dist/chunks/card.Brma5kdb.js.map +1 -0
- package/dist/chunks/{checkbox-group.Dur2Edtw.js → checkbox-group.DWZvFkjz.js} +4 -4
- package/dist/chunks/checkbox-group.DWZvFkjz.js.map +1 -0
- package/dist/chunks/{checkbox.vNjt6QDJ.js → checkbox.BZP0wtnE.js} +3 -5
- package/dist/chunks/checkbox.BZP0wtnE.js.map +1 -0
- package/dist/chunks/{code-snippet.BVpFBhKq.js → code-snippet.DHAymIXp.js} +3 -3
- package/dist/chunks/code-snippet.DHAymIXp.js.map +1 -0
- package/dist/chunks/constructNow.CK0ryPil.js +8 -0
- package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.CK0ryPil.js.map} +1 -1
- package/dist/chunks/country.types.jjXwaoMl.js.map +1 -1
- package/dist/chunks/{dashboard-section.DNxNVV44.js → dashboard-section.D9rS8myE.js} +2 -2
- package/dist/chunks/{dashboard-section.DNxNVV44.js.map → dashboard-section.D9rS8myE.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DL2_sik5.js → dashed-underline.D_FhFRXM.js} +2 -2
- package/dist/chunks/{dashed-underline.DL2_sik5.js.map → dashed-underline.D_FhFRXM.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BFv1zr6g.js → data-grid-template.CRijG20n.js} +2 -2
- package/dist/chunks/{data-grid-template.BFv1zr6g.js.map → data-grid-template.CRijG20n.js.map} +1 -1
- package/dist/chunks/{data-grid.ZHY5EzP3.js → data-grid.hMM9F36T.js} +363 -363
- package/dist/chunks/data-grid.hMM9F36T.js.map +1 -0
- package/dist/chunks/{date-picker.kl6aFlr1.js → date-picker.BSo6Cvum.js} +7 -7
- package/dist/chunks/{date-picker.kl6aFlr1.js.map → date-picker.BSo6Cvum.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date-range-picker.LCWVAa5R.js → date-range-picker.D90k5b8p.js} +419 -411
- package/dist/chunks/date-range-picker.D90k5b8p.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{de.BJvo6njq.js → de.pvjpUJ1o.js} +2 -2
- package/dist/chunks/{de.BJvo6njq.js.map → de.pvjpUJ1o.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.CIYECBxK.js → differenceInMonths.CpwVtHZX.js} +3 -2
- package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.CpwVtHZX.js.map} +1 -1
- package/dist/chunks/{draggable-handle.Ba28eM8o.js → draggable-handle.BR_aQH5N.js} +2 -2
- package/dist/chunks/{draggable-handle.Ba28eM8o.js.map → draggable-handle.BR_aQH5N.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B61hPq5n.js → dropdown-tag.z3rsxbpW.js} +4 -4
- package/dist/chunks/dropdown-tag.z3rsxbpW.js.map +1 -0
- package/dist/chunks/{dropdown.Ca-f8tdX.js → dropdown.BYJwx-JD.js} +313 -305
- package/dist/chunks/dropdown.BYJwx-JD.js.map +1 -0
- package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.-Q7Oq-nY.js} +2 -2
- package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.-Q7Oq-nY.js.map} +1 -1
- package/dist/chunks/{en-US.YeSsZuOc.js → en-US.BK5uiAND.js} +5 -5
- package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.BK5uiAND.js.map} +1 -1
- package/dist/chunks/{es.DyUjjSL8.js → es.2H4LvTyV.js} +2 -2
- package/dist/chunks/{es.DyUjjSL8.js.map → es.2H4LvTyV.js.map} +1 -1
- package/dist/chunks/{file-uploader.DeWmLpfp.js → file-uploader.Djl0xaDN.js} +4 -5
- package/dist/chunks/{file-uploader.DeWmLpfp.js.map → file-uploader.Djl0xaDN.js.map} +1 -1
- package/dist/chunks/{filter-bar.Bd4ghW_B.js → filter-bar.C9rWMIWO.js} +50 -50
- package/dist/chunks/filter-bar.C9rWMIWO.js.map +1 -0
- package/dist/chunks/{footer-actions.CvUaoMzj.js → footer-actions.D9mHwk5l.js} +2 -2
- package/dist/chunks/{footer-actions.CvUaoMzj.js.map → footer-actions.D9mHwk5l.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DzGajv4U.js → form-layout-title.zZVLCyqe.js} +2 -2
- package/dist/chunks/{form-layout-title.DzGajv4U.js.map → form-layout-title.zZVLCyqe.js.map} +1 -1
- package/dist/chunks/{fr.JD_4GwS8.js → fr.Cu0IIfBP.js} +2 -2
- package/dist/chunks/{fr.JD_4GwS8.js.map → fr.Cu0IIfBP.js.map} +1 -1
- package/dist/chunks/{header-meta.AXUGoqDd.js → header-meta.BSPnWWmi.js} +14 -14
- package/dist/chunks/{header-meta.AXUGoqDd.js.map → header-meta.BSPnWWmi.js.map} +1 -1
- package/dist/chunks/{header-with-views.Ba4dswJF.js → header-with-views.g6J7x6l2.js} +8 -8
- package/dist/chunks/{header-with-views.Ba4dswJF.js.map → header-with-views.g6J7x6l2.js.map} +1 -1
- package/dist/chunks/{header.C7B7RBib.js → header.DyZG7qWe.js} +3 -3
- package/dist/chunks/header.DyZG7qWe.js.map +1 -0
- package/dist/chunks/{input-field-password.BNAtIn_D.js → input-field-password.CiDdI6A_.js} +4 -4
- package/dist/chunks/input-field-password.CiDdI6A_.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CEYx1s4b.js → input-field-phone-number.DFS58acU.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CEYx1s4b.js.map → input-field-phone-number.DFS58acU.js.map} +1 -1
- package/dist/chunks/input-field.CGLjYab8.js +222 -0
- package/dist/chunks/input-field.CGLjYab8.js.map +1 -0
- package/dist/chunks/{input-time.BLuMfakv.js → input-time.BhAUyKZM.js} +4 -4
- package/dist/chunks/{input-time.BLuMfakv.js.map → input-time.BhAUyKZM.js.map} +1 -1
- package/dist/chunks/isSameWeek.TrpUOIn5.js +14 -0
- package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.TrpUOIn5.js.map} +1 -1
- package/dist/chunks/{it.BlUnV-yA.js → it.B65snrJA.js} +3 -3
- package/dist/chunks/{it.BlUnV-yA.js.map → it.B65snrJA.js.map} +1 -1
- package/dist/chunks/{ja.nUwDmVf2.js → ja.xGVfFSzL.js} +2 -2
- package/dist/chunks/{ja.nUwDmVf2.js.map → ja.xGVfFSzL.js.map} +1 -1
- package/dist/chunks/link.DB5g6d48.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DTvg2NLk.js → modal-fullscreen.De6mevyD.js} +2 -2
- package/dist/chunks/{modal-fullscreen.DTvg2NLk.js.map → modal-fullscreen.De6mevyD.js.map} +1 -1
- package/dist/chunks/{modal.D_TcWTkf.js → modal.BXxwn9H4.js} +93 -91
- package/dist/chunks/{modal.D_TcWTkf.js.map → modal.BXxwn9H4.js.map} +1 -1
- package/dist/chunks/{pagination.D6BxMw5L.js → pagination.BzsKZFnw.js} +2 -2
- package/dist/chunks/{pagination.D6BxMw5L.js.map → pagination.BzsKZFnw.js.map} +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/popover.types.hA13DZPg.js.map +1 -1
- package/dist/chunks/popper-container.C_n9Ds1W.js.map +1 -1
- package/dist/chunks/promo-banner.Dc_kK1x9.js.map +1 -1
- package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.D9FuAQZm.js} +2 -2
- package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.D9FuAQZm.js.map} +1 -1
- package/dist/chunks/radio-group.Bb-L-0io.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Dtdfh-0V.js → rich-text-editor.DPpIzYid.js} +3 -3
- package/dist/chunks/{rich-text-editor.Dtdfh-0V.js.map → rich-text-editor.DPpIzYid.js.map} +1 -1
- package/dist/chunks/{search-bar.MVJS9-Mh.js → search-bar.BEOieKeA.js} +4 -4
- package/dist/chunks/{search-bar.MVJS9-Mh.js.map → search-bar.BEOieKeA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C-nPZR-2.js → secondary-nav.BBL5zZPK.js} +2 -2
- package/dist/chunks/{secondary-nav.C-nPZR-2.js.map → secondary-nav.BBL5zZPK.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{sidepanel.BTRfwGiS.js → sidepanel.nW0Bhk_u.js} +3 -3
- package/dist/chunks/{sidepanel.BTRfwGiS.js.map → sidepanel.nW0Bhk_u.js.map} +1 -1
- package/dist/chunks/{startOfWeek.CXhhX-R7.js → startOfWeek.Br5KM4z_.js} +2 -2
- package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Br5KM4z_.js.map} +1 -1
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
- package/dist/chunks/{summary-grid.types.DUIqCmwg.js → summary-grid.types.Dp_efYVN.js} +2 -2
- package/dist/chunks/{summary-grid.types.DUIqCmwg.js.map → summary-grid.types.Dp_efYVN.js.map} +1 -1
- package/dist/chunks/tag.D2xagTJv.js.map +1 -1
- package/dist/chunks/textarea.CJS-1I41.js.map +1 -1
- package/dist/chunks/{timeline-item.BOUWkLi1.js → timeline-item.CF9jbIRr.js} +4 -4
- package/dist/chunks/timeline-item.CF9jbIRr.js.map +1 -0
- package/dist/chunks/{toggle.B1z1YPe_.js → toggle.Ca-MM3dt.js} +3 -5
- package/dist/chunks/toggle.Ca-MM3dt.js.map +1 -0
- package/dist/chunks/tooltip.BxtnF3is.js.map +1 -1
- package/dist/chunks/{tutorial.CZt_mcuT.js → tutorial.CoWDVs7_.js} +2 -2
- package/dist/chunks/{tutorial.CZt_mcuT.js.map → tutorial.CoWDVs7_.js.map} +1 -1
- package/dist/chunks/typography.C8lPlsbD.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.BJbWbkEQ.js → use-cached-selected-values.Du8-wWR2.js} +616 -551
- package/dist/chunks/use-cached-selected-values.Du8-wWR2.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.Djf8AoLr.js → use-date-input-formatter.ibZeLD_V.js} +4 -4
- package/dist/chunks/{use-date-input-formatter.Djf8AoLr.js.map → use-date-input-formatter.ibZeLD_V.js.map} +1 -1
- package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Be4pa3-g.js} +3 -3
- package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Be4pa3-g.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/internal.js +5 -5
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +45 -4
- package/package.json +5 -5
- package/dist/chunks/alert.CXRb-Smf.js.map +0 -1
- package/dist/chunks/base-modal.C52VMtnd.js.map +0 -1
- package/dist/chunks/button-actions.Bdbu0bvt.js.map +0 -1
- package/dist/chunks/calendar.CqsfThnC.js.map +0 -1
- package/dist/chunks/card.8z7UQeVK.js.map +0 -1
- package/dist/chunks/checkbox-group.Dur2Edtw.js.map +0 -1
- package/dist/chunks/checkbox.vNjt6QDJ.js.map +0 -1
- package/dist/chunks/code-snippet.BVpFBhKq.js.map +0 -1
- package/dist/chunks/constructNow.CIc7d13I.js +0 -8
- package/dist/chunks/data-grid.ZHY5EzP3.js.map +0 -1
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +0 -1
- package/dist/chunks/dropdown-tag.B61hPq5n.js.map +0 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +0 -1
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +0 -1
- package/dist/chunks/header.C7B7RBib.js.map +0 -1
- package/dist/chunks/input-field-password.BNAtIn_D.js.map +0 -1
- package/dist/chunks/input-field.Dh5W0Az-.js +0 -211
- package/dist/chunks/input-field.Dh5W0Az-.js.map +0 -1
- package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
- package/dist/chunks/timeline-item.BOUWkLi1.js.map +0 -1
- package/dist/chunks/toggle.B1z1YPe_.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +0 -1
- package/dist/chunks/warning-filled.CbJ1pcB2.js +0 -24
- package/dist/chunks/warning-filled.CbJ1pcB2.js.map +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as w, onMounted as Oe, nextTick as ee, watch as le, onUnmounted as It, reactive as Ge, toRefs as Ve, computed as C, watchEffect as zn, onBeforeUpdate as Bn, defineComponent as re, inject as ge, toRef as $e, useSlots as He, provide as De } from "vue";
|
|
2
2
|
import { C as Un } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
|
-
import { W as kn } from "./
|
|
3
|
+
import { W as kn } from "./alert.CLqcPN0Q.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { n as J } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
6
|
import { C as Nt } from "./cross.CC_B-vG-.js";
|
|
7
7
|
import { N as rt } from "./minus-small.DJacLGTw.js";
|
|
8
8
|
import { b as $n } from "./popper-container.C_n9Ds1W.js";
|
|
9
9
|
import { E as j, b as Dt, B as Wn, T as Gn } from "./tooltip.BxtnF3is.js";
|
|
10
|
-
import { B as Vn } from "./dashed-underline.
|
|
11
|
-
import { B as Le, p as
|
|
10
|
+
import { B as Vn } from "./dashed-underline.D_FhFRXM.js";
|
|
11
|
+
import { B as Le, p as Mt } from "./typography.C8lPlsbD.js";
|
|
12
12
|
import { u as _e } from "./index.B6WW_F-J.js";
|
|
13
13
|
import { B as Hn } from "./tag.D2xagTJv.js";
|
|
14
|
-
import { B as Zn } from "./action-bar.
|
|
15
|
-
import { B as jn } from "./pagination.
|
|
14
|
+
import { B as Zn } from "./action-bar.ChuPTyQG.js";
|
|
15
|
+
import { B as jn } from "./pagination.BzsKZFnw.js";
|
|
16
16
|
import { B as Ze } from "./loading-indicator.PxbRzshH.js";
|
|
17
17
|
import { u as je } from "./use-has-slot.C9lQZ6nz.js";
|
|
18
18
|
import { u as qn } from "./use-touch-device.DTqFAbXh.js";
|
|
19
|
-
import { g as
|
|
20
|
-
import { a as Kn } from "./filter-bar.
|
|
19
|
+
import { g as Fe } from "./generate-uid.NJ8tVoha.js";
|
|
20
|
+
import { a as Kn } from "./filter-bar.C9rWMIWO.js";
|
|
21
21
|
import { B as Yn } from "./empty-state.DMV23IZy.js";
|
|
22
22
|
import { E as Xn } from "./tabs.keys.B4qGhjp2.js";
|
|
23
23
|
import { D as Jn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
24
24
|
import { b as Qn } from "./index.CwzYJHw2.js";
|
|
25
25
|
import { o as qe } from "./resize.Bqks3WUm.js";
|
|
26
26
|
import "./index.Cl4_42j5.js";
|
|
27
|
-
import { b as
|
|
28
|
-
import { B as xt } from "./checkbox.
|
|
27
|
+
import { b as Ft } from "./focus-trap.DRqjHzt6.js";
|
|
28
|
+
import { B as xt } from "./checkbox.BZP0wtnE.js";
|
|
29
29
|
import { B as Pt } from "./button.C9b2AC9w.js";
|
|
30
|
-
import { c as Ke, f as zt, h as es, b as ts, a as ns, O as ct, D as ss } from "./button-actions.
|
|
30
|
+
import { c as Ke, f as zt, h as es, b as ts, a as ns, O as ct, D as ss } from "./button-actions.CXD6_9qN.js";
|
|
31
31
|
import { E as dt } from "./link.DB5g6d48.js";
|
|
32
32
|
import { C as ut } from "./copy.qqGYFbKJ.js";
|
|
33
33
|
import { C as os } from "./chevron-down.eYtgv5ly.js";
|
|
34
34
|
import { C as ls } from "./chevron-up.d8cwIlA_.js";
|
|
35
35
|
import { u as as } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
36
36
|
import { B as is } from "./info-icon.DCR42Kvm.js";
|
|
37
|
-
import { D as rs } from "./use-cached-selected-values.
|
|
37
|
+
import { D as rs } from "./use-cached-selected-values.Du8-wWR2.js";
|
|
38
38
|
import { B as ft } from "./popover.types.hA13DZPg.js";
|
|
39
39
|
import { A as cs } from "./arrow-left.CRREfabP.js";
|
|
40
40
|
import { A as ds } from "./arrow-right.Dn3AYpUP.js";
|
|
41
41
|
import { H as us, S as fs } from "./show.B_mKPF6I.js";
|
|
42
42
|
import { l as gt } from "./events.BQOQSSb7.js";
|
|
43
|
-
import { B as Bt } from "./toggle.
|
|
44
|
-
import { B as gs } from "./search-bar.
|
|
45
|
-
import { u as ms } from "./dropdown.
|
|
43
|
+
import { B as Bt } from "./toggle.Ca-MM3dt.js";
|
|
44
|
+
import { B as gs } from "./search-bar.BEOieKeA.js";
|
|
45
|
+
import { u as ms } from "./dropdown.BYJwx-JD.js";
|
|
46
46
|
import { S as _s } from "./search.D53Ia3rC.js";
|
|
47
47
|
import { B as Cs } from "./directive.Bfr4fuOy.js";
|
|
48
48
|
import "../assets/data-grid.css";
|
|
@@ -58,8 +58,8 @@ const mt = (s) => {
|
|
|
58
58
|
}
|
|
59
59
|
const o = parseFloat(t.top);
|
|
60
60
|
return !isNaN(o) && o < 0 && (n += o), n;
|
|
61
|
-
}, _t = (s, t, n =
|
|
62
|
-
const o =
|
|
61
|
+
}, _t = (s, t, n = w(!1), e = null) => {
|
|
62
|
+
const o = w(0);
|
|
63
63
|
let l = null, a = null;
|
|
64
64
|
const r = () => {
|
|
65
65
|
const d = t.value ? mt(s.value) : 0, f = n.value && e ? mt(e.value) : 0;
|
|
@@ -86,30 +86,30 @@ const mt = (s) => {
|
|
|
86
86
|
l == null || l.disconnect(), a == null || a.disconnect();
|
|
87
87
|
}), o;
|
|
88
88
|
};
|
|
89
|
-
var We = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(We || {}), X = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL = "deselect-all", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(X || {}), fe = /* @__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.FIT_CONTENT = "fit-content", s.ZEBRA_ROWS = "zebra-rows", s))(fe || {}), ye = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ye || {}),
|
|
89
|
+
var We = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(We || {}), X = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL = "deselect-all", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(X || {}), fe = /* @__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.FIT_CONTENT = "fit-content", s.ZEBRA_ROWS = "zebra-rows", s))(fe || {}), ye = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ye || {}), M = /* @__PURE__ */ ((s) => (s.CELL_FOCUS = "cell-focus", s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", 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.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.SORT = "sort", s))(M || {}), Me = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Me || {});
|
|
90
90
|
const vs = (s, t) => {
|
|
91
|
-
const n =
|
|
91
|
+
const n = w(null), e = w(!1), o = w(void 0), l = s.value.reduce((E, N) => (E[N.field] = null, E), {}), a = Ge(l), r = Ve(a);
|
|
92
92
|
let d = 0, f = "";
|
|
93
93
|
const p = C(
|
|
94
|
-
() => Object.fromEntries(s.value.map(({ field: E, width: N, minWidth:
|
|
94
|
+
() => Object.fromEntries(s.value.map(({ field: E, width: N, minWidth: R }) => [E, { width: N, minWidth: R }]))
|
|
95
95
|
);
|
|
96
96
|
zn(() => o.value = p.value);
|
|
97
97
|
let h = null, y = null;
|
|
98
|
-
const
|
|
99
|
-
const N = E.clientX - d,
|
|
100
|
-
o.value[
|
|
98
|
+
const S = (E) => {
|
|
99
|
+
const N = E.clientX - d, R = f, m = o.value[R].width + N;
|
|
100
|
+
o.value[R].width = m > p.value[R].minWidth ? m : p.value[R].minWidth, t(X.COLUMN_RESIZING, o.value), d = E.clientX;
|
|
101
101
|
}, u = () => {
|
|
102
102
|
e.value = !1, h == null || h(), y == null || y(), f && t(X.COLUMN_RESIZE, {
|
|
103
103
|
field: f,
|
|
104
104
|
width: o.value[f].width
|
|
105
105
|
}), h = null, y = null, f = "", d = null;
|
|
106
|
-
},
|
|
107
|
-
if (
|
|
108
|
-
if (e.value = !0,
|
|
106
|
+
}, b = (E, N, R) => {
|
|
107
|
+
if (R.preventDefault(), E) {
|
|
108
|
+
if (e.value = !0, R.buttons !== 1) {
|
|
109
109
|
u();
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
f = N, d =
|
|
112
|
+
f = N, d = R.clientX, h = gt(window, "mousemove", S), y = gt(window, "mouseup", u);
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
return le(
|
|
@@ -120,7 +120,7 @@ const vs = (s, t) => {
|
|
|
120
120
|
), {
|
|
121
121
|
resizeData: o,
|
|
122
122
|
allColumnRefs: r,
|
|
123
|
-
startResize:
|
|
123
|
+
startResize: b,
|
|
124
124
|
isResizing: e,
|
|
125
125
|
columnHoverEventToEmitAfterResizing: n
|
|
126
126
|
};
|
|
@@ -138,14 +138,14 @@ const vs = (s, t) => {
|
|
|
138
138
|
d -= e[h].computedWidth, f -= e[h].flex;
|
|
139
139
|
});
|
|
140
140
|
for (let h = 0, y = n.length; h < y; h += 1) {
|
|
141
|
-
const
|
|
142
|
-
if (e[
|
|
141
|
+
const S = n[h];
|
|
142
|
+
if (e[S.field] && e[S.field].frozen === !0)
|
|
143
143
|
continue;
|
|
144
|
-
let
|
|
145
|
-
|
|
144
|
+
let b = d / f * S.flex;
|
|
145
|
+
b < S.minWidth && (p += S.minWidth - b, b = S.minWidth, r.min[S.field] = !0), e[S.field] = {
|
|
146
146
|
frozen: !1,
|
|
147
|
-
computedWidth:
|
|
148
|
-
flex:
|
|
147
|
+
computedWidth: b,
|
|
148
|
+
flex: S.flex
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
p > 0 ? Object.keys(r.min).forEach((h) => {
|
|
@@ -162,13 +162,13 @@ const vs = (s, t) => {
|
|
|
162
162
|
var t, n, e, o, l;
|
|
163
163
|
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? Ss : ws : Rs : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? bs : ps;
|
|
164
164
|
}, Ts = (s, t, n, e, o, l) => {
|
|
165
|
-
const a =
|
|
165
|
+
const a = w(s.value), r = w(t), d = w(n), f = w(e), p = w(o), h = w(!1), y = w(0);
|
|
166
166
|
le(
|
|
167
167
|
() => s.value,
|
|
168
168
|
(i, g) => {
|
|
169
|
-
var
|
|
169
|
+
var D, P;
|
|
170
170
|
const A = (i == null ? void 0 : i.map(({ field: x }) => x).toString()) === (g == null ? void 0 : g.map(({ field: x }) => x).toString());
|
|
171
|
-
if (!((
|
|
171
|
+
if (!((D = l == null ? void 0 : l.allowColumnDragAndDrop) != null && D.value) || !A) {
|
|
172
172
|
a.value = s.value;
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
@@ -178,13 +178,13 @@ const vs = (s, t) => {
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
|
-
const
|
|
181
|
+
const S = w();
|
|
182
182
|
let u = null;
|
|
183
|
-
const
|
|
183
|
+
const b = C(() => {
|
|
184
184
|
var q, G, V;
|
|
185
185
|
const i = [];
|
|
186
186
|
let g = 0, A = 0;
|
|
187
|
-
const
|
|
187
|
+
const D = {};
|
|
188
188
|
let P = a.value.filter((W) => W.visible !== !1);
|
|
189
189
|
const x = a.value.filter((W) => W.visible === !1);
|
|
190
190
|
if ((q = l == null ? void 0 : l.hasSelectableColumn) != null && q.value || (G = l == null ? void 0 : l.hasNestedContent) != null && G.value || (V = l == null ? void 0 : l.hasNestedRows) != null && V.value) {
|
|
@@ -207,31 +207,31 @@ const vs = (s, t) => {
|
|
|
207
207
|
B.flex && B.flex > 0 ? (g += B.flex, ne = 0, i.push(B)) : ne = Math.max(
|
|
208
208
|
(B == null ? void 0 : B.width) ?? hs,
|
|
209
209
|
(B == null ? void 0 : B.minWidth) ?? Ct
|
|
210
|
-
), A += ne, B.width = ne, B.minWidth = (B == null ? void 0 : B.minWidth) ?? Ct,
|
|
210
|
+
), A += ne, B.width = ne, B.minWidth = (B == null ? void 0 : B.minWidth) ?? Ct, D[B.field] = B;
|
|
211
211
|
}), A += y.value;
|
|
212
|
-
const U = Math.max(
|
|
213
|
-
if (g > 0 &&
|
|
212
|
+
const U = Math.max(S.value - A, 0);
|
|
213
|
+
if (g > 0 && S.value > 0) {
|
|
214
214
|
const W = ys(U, g, i);
|
|
215
215
|
Object.keys(W).forEach((B) => {
|
|
216
|
-
|
|
216
|
+
D[B].width = W[B].computedWidth;
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
return x.forEach((W) => {
|
|
220
220
|
const B = { ...W };
|
|
221
|
-
|
|
222
|
-
}), Object.values(
|
|
223
|
-
}), E =
|
|
221
|
+
D[B.field] = B;
|
|
222
|
+
}), Object.values(D);
|
|
223
|
+
}), E = w(void 0), N = (i) => {
|
|
224
224
|
E.value = { ...E.value, ...i };
|
|
225
|
-
},
|
|
225
|
+
}, R = async () => {
|
|
226
226
|
a.value.some((i) => i == null ? void 0 : i.autoWidth) && (h.value = !0, await ee(), a == null || a.value.filter((i) => i == null ? void 0 : i.autoWidth).forEach(({ field: i, minWidth: g }) => {
|
|
227
227
|
var x, U, q, G;
|
|
228
228
|
const A = vt(
|
|
229
229
|
(x = f.value) == null ? void 0 : x[i],
|
|
230
230
|
(U = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : U.value
|
|
231
|
-
),
|
|
231
|
+
), D = (G = (q = p.value) == null ? void 0 : q[i]) == null ? void 0 : G.reduce(
|
|
232
232
|
(V, W) => Math.max(V, vt(W)),
|
|
233
233
|
0
|
|
234
|
-
), P = Math.max(A,
|
|
234
|
+
), P = Math.max(A, D ?? 0);
|
|
235
235
|
(g === void 0 || P > g) && N({
|
|
236
236
|
[i]: {
|
|
237
237
|
width: P
|
|
@@ -240,10 +240,10 @@ const vs = (s, t) => {
|
|
|
240
240
|
}), h.value = !1);
|
|
241
241
|
};
|
|
242
242
|
le([() => a.value, () => r.value], async () => {
|
|
243
|
-
a.value.some((i) => i == null ? void 0 : i.autoWidth) && await
|
|
243
|
+
a.value.some((i) => i == null ? void 0 : i.autoWidth) && await R();
|
|
244
244
|
});
|
|
245
245
|
const m = C(
|
|
246
|
-
() =>
|
|
246
|
+
() => b.value.map((i) => {
|
|
247
247
|
var g, A;
|
|
248
248
|
return {
|
|
249
249
|
...i,
|
|
@@ -256,28 +256,28 @@ const vs = (s, t) => {
|
|
|
256
256
|
var i;
|
|
257
257
|
return ((i = m.value) == null ? void 0 : i.filter(({ visible: g }) => g !== !1).reduce((g, A) => A.width + g, 0)) + y.value;
|
|
258
258
|
}
|
|
259
|
-
),
|
|
260
|
-
() =>
|
|
259
|
+
), I = C(
|
|
260
|
+
() => S.value <= O.value
|
|
261
261
|
), _ = C(() => ({
|
|
262
|
-
width:
|
|
262
|
+
width: S.value > O.value ? "100%" : "fit-content"
|
|
263
263
|
}));
|
|
264
264
|
return Oe(() => {
|
|
265
265
|
var g;
|
|
266
266
|
const i = l != null && l.isDataGridTemplate ? Es : 0;
|
|
267
267
|
ee(() => {
|
|
268
|
-
d.value && (
|
|
268
|
+
d.value && (S.value = d.value.getBoundingClientRect().width - i);
|
|
269
269
|
const A = le(
|
|
270
270
|
d,
|
|
271
271
|
() => {
|
|
272
|
-
d.value && (ee(() => A()), u = qe(d.value, ({ width:
|
|
273
|
-
|
|
272
|
+
d.value && (ee(() => A()), u = qe(d.value, ({ width: D }) => {
|
|
273
|
+
S.value = D - i;
|
|
274
274
|
}));
|
|
275
275
|
},
|
|
276
276
|
{ immediate: !0 }
|
|
277
277
|
);
|
|
278
278
|
}), (g = document == null ? void 0 : document.fonts) != null && g.ready ? document.fonts.ready.then(() => {
|
|
279
|
-
|
|
280
|
-
}) :
|
|
279
|
+
R();
|
|
280
|
+
}) : R();
|
|
281
281
|
}), It(() => {
|
|
282
282
|
u == null || u.disconnect();
|
|
283
283
|
}), Bn(() => {
|
|
@@ -290,13 +290,13 @@ const vs = (s, t) => {
|
|
|
290
290
|
gridRowWidthStyle: _,
|
|
291
291
|
onColumnWidthOverride: N,
|
|
292
292
|
isMeasuringColumnWidths: h,
|
|
293
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
293
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: I,
|
|
294
294
|
columns: a,
|
|
295
295
|
totalWidthOfAllColumns: O,
|
|
296
296
|
rowActionsMaxWidth: y
|
|
297
297
|
};
|
|
298
298
|
}, Os = (s, t, n, e, o, l, a) => {
|
|
299
|
-
const r =
|
|
299
|
+
const r = w(s.value ?? []), d = Ge({
|
|
300
300
|
allItemsSelected: !1,
|
|
301
301
|
isIndeterminate: !1
|
|
302
302
|
}), f = C(
|
|
@@ -319,7 +319,7 @@ const vs = (s, t) => {
|
|
|
319
319
|
var i, g;
|
|
320
320
|
return ((i = n.value) == null ? void 0 : i.length) > 0 && !((g = f.value) != null && g.some((A) => r.value.includes(e(A))));
|
|
321
321
|
}
|
|
322
|
-
),
|
|
322
|
+
), S = C(
|
|
323
323
|
() => {
|
|
324
324
|
var i, g;
|
|
325
325
|
return ((i = n.value) == null ? void 0 : i.length) > 0 && !((g = f.value) != null && g.filter((A) => !o(A)).some((A) => r.value.includes(e(A))));
|
|
@@ -327,55 +327,55 @@ const vs = (s, t) => {
|
|
|
327
327
|
), u = C(() => {
|
|
328
328
|
var i;
|
|
329
329
|
return !(l != null && l.value) || ((i = a == null ? void 0 : a.value) == null ? void 0 : i.totalCount) === void 0 ? !1 : r.value.length >= a.value.totalCount && h.value;
|
|
330
|
-
}),
|
|
331
|
-
t(
|
|
330
|
+
}), b = () => {
|
|
331
|
+
t(M.SELECT, r.value), t(M.UPDATE_SELECTION, r.value);
|
|
332
332
|
}, E = (i) => {
|
|
333
333
|
var g, A;
|
|
334
334
|
r.value = i, p.value ? (d.allItemsSelected = !0, d.isIndeterminate = !1) : (d.allItemsSelected = !1, d.isIndeterminate = ((g = r.value) == null ? void 0 : g.length) > 0 && ((A = n.value) == null ? void 0 : A.length) > 0 && n.value.some(
|
|
335
|
-
(
|
|
335
|
+
(D) => {
|
|
336
336
|
var P;
|
|
337
|
-
return r.value.includes(e(
|
|
337
|
+
return r.value.includes(e(D)) || ((P = D == null ? void 0 : D.children) == null ? void 0 : P.some((x) => r.value.includes(e(x))));
|
|
338
338
|
}
|
|
339
339
|
));
|
|
340
340
|
}, N = (i) => {
|
|
341
341
|
ee(() => {
|
|
342
|
-
var A,
|
|
342
|
+
var A, D;
|
|
343
343
|
d.allItemsSelected = i;
|
|
344
|
-
const g = ((
|
|
344
|
+
const g = ((D = (A = f.value) == null ? void 0 : A.filter(
|
|
345
345
|
(P) => !o(P) && ((P == null ? void 0 : P.children) === void 0 || P.children.every((x) => !o(x)))
|
|
346
|
-
)) == null ? void 0 :
|
|
347
|
-
i ? (r.value = [.../* @__PURE__ */ new Set([...r.value, ...g])], d.isIndeterminate = !p.value) : (r.value = r.value.filter((P) => !g.includes(P)), d.isIndeterminate = !y.value),
|
|
346
|
+
)) == null ? void 0 : D.map((P) => e(P))) ?? [];
|
|
347
|
+
i ? (r.value = [.../* @__PURE__ */ new Set([...r.value, ...g])], d.isIndeterminate = !p.value) : (r.value = r.value.filter((P) => !g.includes(P)), d.isIndeterminate = !y.value), b();
|
|
348
348
|
});
|
|
349
|
-
},
|
|
349
|
+
}, R = () => {
|
|
350
350
|
ee(() => {
|
|
351
|
-
E([]),
|
|
351
|
+
E([]), b();
|
|
352
352
|
});
|
|
353
353
|
}, m = (i, g) => {
|
|
354
354
|
ee(() => {
|
|
355
355
|
var A;
|
|
356
|
-
E(((A = g == null ? void 0 : g.children) == null ? void 0 : A.length) > 0 ? O(i, g) : i),
|
|
356
|
+
E(((A = g == null ? void 0 : g.children) == null ? void 0 : A.length) > 0 ? O(i, g) : i), b();
|
|
357
357
|
});
|
|
358
358
|
}, O = (i, g) => {
|
|
359
359
|
var P;
|
|
360
|
-
const A = e(g),
|
|
360
|
+
const A = e(g), D = (P = g.children) == null ? void 0 : P.filter((x) => !o(x)).map((x) => e(x));
|
|
361
361
|
if (i.includes(A)) {
|
|
362
362
|
const x = i;
|
|
363
|
-
return
|
|
363
|
+
return D.forEach((U) => {
|
|
364
364
|
x.includes(U) || x.push(U);
|
|
365
365
|
}), x;
|
|
366
366
|
}
|
|
367
|
-
return i.filter((x) => !
|
|
368
|
-
},
|
|
367
|
+
return i.filter((x) => !D.includes(x));
|
|
368
|
+
}, I = (i, g, A) => {
|
|
369
369
|
ee(() => {
|
|
370
370
|
var P, x;
|
|
371
|
-
const
|
|
371
|
+
const D = e(g);
|
|
372
372
|
i.includes(e(A)) ? E(
|
|
373
|
-
!i.includes(
|
|
373
|
+
!i.includes(D) && ((P = g == null ? void 0 : g.children) != null && P.every((U) => i.includes(e(U)))) ? [...i, D] : i
|
|
374
374
|
) : E(
|
|
375
|
-
i.includes(
|
|
376
|
-
),
|
|
375
|
+
i.includes(D) && !((x = g == null ? void 0 : g.children) != null && x.every((U) => i.includes(e(U)))) ? i.filter((U) => U !== D) : i
|
|
376
|
+
), b();
|
|
377
377
|
});
|
|
378
|
-
}, _ = C(() => u.value ? "all" : h.value ? "page" : !r.value || r.value.length === 0 ? "none" :
|
|
378
|
+
}, _ = C(() => u.value ? "all" : h.value ? "page" : !r.value || r.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
379
379
|
return le(
|
|
380
380
|
() => s.value,
|
|
381
381
|
() => {
|
|
@@ -388,16 +388,16 @@ const vs = (s, t) => {
|
|
|
388
388
|
const i = n.value.filter((g) => r.value.includes(e(g))).flatMap(
|
|
389
389
|
(g) => {
|
|
390
390
|
var A;
|
|
391
|
-
return ((A = g == null ? void 0 : g.children) == null ? void 0 : A.length) > 0 ? g.children.map((
|
|
391
|
+
return ((A = g == null ? void 0 : g.children) == null ? void 0 : A.length) > 0 ? g.children.map((D) => e(D)).filter((D) => !r.value.includes(D)) : [];
|
|
392
392
|
}
|
|
393
393
|
);
|
|
394
|
-
(i == null ? void 0 : i.length) > 0 ? (E([...r.value, ...i]),
|
|
394
|
+
(i == null ? void 0 : i.length) > 0 ? (E([...r.value, ...i]), b()) : E(r.value);
|
|
395
395
|
}
|
|
396
396
|
), {
|
|
397
397
|
onAllRowSelect: N,
|
|
398
398
|
onRowSelect: m,
|
|
399
|
-
onNestedRowSelect:
|
|
400
|
-
onDeselectAll:
|
|
399
|
+
onNestedRowSelect: I,
|
|
400
|
+
onDeselectAll: R,
|
|
401
401
|
allItemsSelectedState: d,
|
|
402
402
|
selectedItems: r,
|
|
403
403
|
selectionState: _
|
|
@@ -417,73 +417,73 @@ const vs = (s, t) => {
|
|
|
417
417
|
} });
|
|
418
418
|
var se = ((s) => (s[s.ARROW_DOWN = j.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = j.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = j.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = j.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = j.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = j.PAGE_DOWN] = "PAGE_DOWN", s[s.END = j.END] = "END", s[s.HOME = j.HOME] = "HOME", s))(se || {});
|
|
419
419
|
const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
420
|
-
const a = C(() => l.value || e.value ? !0 : n.value.some((
|
|
421
|
-
let
|
|
422
|
-
return o.value && (
|
|
423
|
-
...
|
|
420
|
+
const a = C(() => l.value || e.value ? !0 : n.value.some((R) => R.infoIconTooltip || R.sortable)), r = C(() => {
|
|
421
|
+
let R = n.value.filter(({ visible: m }) => m !== !1);
|
|
422
|
+
return o.value && (R = [
|
|
423
|
+
...R,
|
|
424
424
|
{ field: Ye, label: "" }
|
|
425
|
-
]),
|
|
425
|
+
]), R;
|
|
426
426
|
}), d = C(() => r.value.length), f = C(() => {
|
|
427
427
|
if (!s.value)
|
|
428
428
|
return [];
|
|
429
|
-
const
|
|
430
|
-
if (!
|
|
429
|
+
const R = Object.keys(s.value)[0];
|
|
430
|
+
if (!R || !s.value[R])
|
|
431
431
|
return [];
|
|
432
432
|
const m = [];
|
|
433
433
|
if (a.value)
|
|
434
|
-
for (const
|
|
435
|
-
const _ = t.value[
|
|
434
|
+
for (const I of r.value) {
|
|
435
|
+
const _ = t.value[I.field];
|
|
436
436
|
m.push(_);
|
|
437
437
|
}
|
|
438
|
-
const O = s.value[
|
|
439
|
-
for (let
|
|
438
|
+
const O = s.value[R].length;
|
|
439
|
+
for (let I = 0; I < O; I++)
|
|
440
440
|
for (const _ of r.value) {
|
|
441
441
|
const i = s.value[_.field];
|
|
442
|
-
i != null && i[
|
|
442
|
+
i != null && i[I] && m.push(i[I]);
|
|
443
443
|
}
|
|
444
444
|
return m;
|
|
445
|
-
}), p = (
|
|
446
|
-
const
|
|
445
|
+
}), p = (R) => Math.floor(R / d.value), h = (R, m, O) => {
|
|
446
|
+
const I = f.value.length - 1, _ = d.value - 1, i = p(R), g = R - d.value * i;
|
|
447
447
|
return {
|
|
448
448
|
[se.PAGE_UP]: g + (a.value ? d.value : 0),
|
|
449
|
-
[se.PAGE_DOWN]:
|
|
450
|
-
[se.END]: O ?
|
|
449
|
+
[se.PAGE_DOWN]: I - _ + g,
|
|
450
|
+
[se.END]: O ? I : d.value * i + _,
|
|
451
451
|
[se.HOME]: O ? a.value ? d.value : 0 : d.value * i
|
|
452
452
|
}[m];
|
|
453
|
-
}, y = (
|
|
454
|
-
const O = p(
|
|
453
|
+
}, y = (R, m) => {
|
|
454
|
+
const O = p(R), _ = {
|
|
455
455
|
[se.ARROW_DOWN]: d.value,
|
|
456
456
|
[se.ARROW_UP]: O === 0 && !a.value ? 0 : -d.value,
|
|
457
457
|
[se.ARROW_LEFT]: -1,
|
|
458
458
|
[se.ARROW_RIGHT]: 1
|
|
459
|
-
}[m], i =
|
|
460
|
-
return i < 0 || i >= f.value.length ?
|
|
461
|
-
},
|
|
459
|
+
}[m], i = R + _;
|
|
460
|
+
return i < 0 || i >= f.value.length ? R : i;
|
|
461
|
+
}, S = (R) => [
|
|
462
462
|
se.PAGE_UP,
|
|
463
463
|
se.PAGE_DOWN,
|
|
464
464
|
se.END,
|
|
465
465
|
se.HOME
|
|
466
|
-
].includes(
|
|
467
|
-
const
|
|
468
|
-
return
|
|
469
|
-
},
|
|
470
|
-
if (!f.value.includes(
|
|
466
|
+
].includes(R), u = (R, m, O) => {
|
|
467
|
+
const I = f.value.indexOf(R);
|
|
468
|
+
return S(m) ? h(I, m, O) : y(I, m);
|
|
469
|
+
}, b = (R, m, O) => {
|
|
470
|
+
if (!f.value.includes(R))
|
|
471
471
|
return;
|
|
472
|
-
const
|
|
473
|
-
f.value[
|
|
474
|
-
}, E = (
|
|
472
|
+
const I = u(R, m, O);
|
|
473
|
+
f.value[I].focus();
|
|
474
|
+
}, E = (R) => R in se;
|
|
475
475
|
return {
|
|
476
476
|
isNavigationKeyCode: E,
|
|
477
|
-
focusOnNextGridcell:
|
|
478
|
-
navigationInput: (
|
|
479
|
-
const { ctrlKey: m, key: O, target:
|
|
480
|
-
let i =
|
|
481
|
-
i.getAttribute("role") !== "menuitem" && (f.value.includes(i) || (i =
|
|
477
|
+
focusOnNextGridcell: b,
|
|
478
|
+
navigationInput: (R) => {
|
|
479
|
+
const { ctrlKey: m, key: O, target: I } = R, _ = O;
|
|
480
|
+
let i = I;
|
|
481
|
+
i.getAttribute("role") !== "menuitem" && (f.value.includes(i) || (i = I.closest('[role="gridcell"], [role="columnheader"]')), f.value.includes(i) && E(_) && b(i, _, m));
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
|
-
}, Ds = 90,
|
|
485
|
-
const l =
|
|
486
|
-
o(
|
|
484
|
+
}, Ds = 90, Ms = (s, t, n, e, o) => {
|
|
485
|
+
const l = w(s), a = w(t), r = w(n), d = w(e), f = C(() => l.value !== "none"), p = C(() => l.value === "automatic"), h = () => {
|
|
486
|
+
o(M.UPDATE_SHOW_MORE);
|
|
487
487
|
};
|
|
488
488
|
return le(
|
|
489
489
|
() => a.value,
|
|
@@ -491,58 +491,58 @@ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
|
491
491
|
p.value && r.value.offsetHeight / a.value * 100 > Ds && !d.value && h();
|
|
492
492
|
}
|
|
493
493
|
), { isLazyLoad: f, isInfiniteScroll: p, verticalScrollPosition: a, emitLazyLoadEvent: h };
|
|
494
|
-
},
|
|
495
|
-
const e =
|
|
494
|
+
}, Fs = (s, t, n) => {
|
|
495
|
+
const e = w(s), o = w(t), l = Ge({
|
|
496
496
|
dragging: null,
|
|
497
497
|
dragToLeft: null,
|
|
498
498
|
target: null
|
|
499
|
-
}), a = (
|
|
500
|
-
const
|
|
499
|
+
}), a = (S, u = 0) => {
|
|
500
|
+
const b = e.value.findIndex((R) => R.field === S.field), E = b + u;
|
|
501
501
|
if (E < 0 || E > e.value.length - 1)
|
|
502
502
|
return;
|
|
503
503
|
const N = [...e.value];
|
|
504
|
-
N.splice(E, 0, N.splice(
|
|
505
|
-
}, r = (
|
|
506
|
-
l.dragging =
|
|
507
|
-
}, d = (
|
|
508
|
-
l.target =
|
|
509
|
-
const
|
|
504
|
+
N.splice(E, 0, N.splice(b, 1)[0]), n(M.COLUMNS, N), n(M.UPDATE_COLUMNS, N);
|
|
505
|
+
}, r = (S, u) => {
|
|
506
|
+
l.dragging = S, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
507
|
+
}, d = (S, u) => {
|
|
508
|
+
l.target = S;
|
|
509
|
+
const b = u.currentTarget.getBoundingClientRect(), E = b.left + b.width / 2, N = u.clientX ?? 0;
|
|
510
510
|
l.dragToLeft = N <= E;
|
|
511
|
-
}, f = (
|
|
512
|
-
var u,
|
|
513
|
-
if (((u = l.dragging) == null ? void 0 : u.field) !==
|
|
511
|
+
}, f = (S) => {
|
|
512
|
+
var u, b;
|
|
513
|
+
if (((u = l.dragging) == null ? void 0 : u.field) !== S.field) {
|
|
514
514
|
const E = e.value.findIndex((_) => {
|
|
515
515
|
var i;
|
|
516
516
|
return _.field === ((i = l.dragging) == null ? void 0 : i.field);
|
|
517
|
-
}), N = e.value.findIndex((_) => _.field ===
|
|
517
|
+
}), N = e.value.findIndex((_) => _.field === S.field), R = l.dragToLeft ? N : N + 1, m = R > E ? R - 1 : R;
|
|
518
518
|
let O = [...e.value];
|
|
519
519
|
O.splice(
|
|
520
520
|
m === -1 ? 0 : m,
|
|
521
521
|
0,
|
|
522
522
|
O.splice(E, 1)[0]
|
|
523
523
|
);
|
|
524
|
-
const
|
|
525
|
-
((
|
|
524
|
+
const I = e.value.findIndex((_) => !(_ != null && _.frozen));
|
|
525
|
+
((b = l.dragging) == null ? void 0 : b.frozen) !== S.frozen && R !== I && (O = O.map(
|
|
526
526
|
(_) => {
|
|
527
527
|
var i;
|
|
528
|
-
return ((i = l.dragging) == null ? void 0 : i.field) === _.field ? { ..._, frozen: !!(
|
|
528
|
+
return ((i = l.dragging) == null ? void 0 : i.field) === _.field ? { ..._, frozen: !!(S != null && S.frozen) } : _;
|
|
529
529
|
}
|
|
530
|
-
)), n(
|
|
530
|
+
)), n(M.COLUMNS, O), n(M.UPDATE_COLUMNS, O);
|
|
531
531
|
}
|
|
532
532
|
l.dragging = null, l.target = null;
|
|
533
533
|
}, p = () => {
|
|
534
534
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
535
535
|
}, h = C(() => o.value ? {
|
|
536
|
-
[X.COLUMN_DRAG_START]: (
|
|
537
|
-
[X.COLUMN_DRAG_ENTER]: (
|
|
538
|
-
[X.COLUMN_DROP]: (
|
|
536
|
+
[X.COLUMN_DRAG_START]: (S, u) => r(S, u),
|
|
537
|
+
[X.COLUMN_DRAG_ENTER]: (S, u) => d(S, u),
|
|
538
|
+
[X.COLUMN_DROP]: (S) => f(S),
|
|
539
539
|
[X.COLUMN_DRAG_END]: () => p()
|
|
540
|
-
} : {}), y = C(() => (
|
|
540
|
+
} : {}), y = C(() => (S) => o.value ? {
|
|
541
541
|
dragenter: (u) => {
|
|
542
|
-
u.preventDefault(), d(
|
|
542
|
+
u.preventDefault(), d(S, u);
|
|
543
543
|
},
|
|
544
544
|
drop: () => {
|
|
545
|
-
f(
|
|
545
|
+
f(S);
|
|
546
546
|
},
|
|
547
547
|
dragover: (u) => {
|
|
548
548
|
u.preventDefault();
|
|
@@ -557,8 +557,8 @@ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
|
557
557
|
onMoveColumnByOffset: a
|
|
558
558
|
};
|
|
559
559
|
}, xs = (s, t, n) => {
|
|
560
|
-
const e =
|
|
561
|
-
() => [...e.value].sort((u,
|
|
560
|
+
const e = w(s), o = w(t.value), l = C(
|
|
561
|
+
() => [...e.value].sort((u, b) => u.frozen === b.frozen ? 0 : u.frozen ? -1 : 1)
|
|
562
562
|
), a = C(
|
|
563
563
|
() => l.value.filter((u) => u.frozen && u.visible !== !1)
|
|
564
564
|
), r = C(
|
|
@@ -570,15 +570,15 @@ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
|
570
570
|
].filter(({ columnSet: u }) => u.length)
|
|
571
571
|
), f = C(
|
|
572
572
|
() => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== oe).length === 1
|
|
573
|
-
), p = (u) => n(
|
|
574
|
-
o.value = u, n(
|
|
573
|
+
), p = (u) => n(M.UPDATE_CONDENSED, u), h = (u) => {
|
|
574
|
+
o.value = u, n(M.UPDATE_ZEBRA_ROWS, u);
|
|
575
575
|
}, y = (u) => {
|
|
576
|
-
n(
|
|
577
|
-
},
|
|
578
|
-
const
|
|
576
|
+
n(M.COLUMNS, u), n(M.UPDATE_COLUMNS, u);
|
|
577
|
+
}, S = (u) => {
|
|
578
|
+
const b = l.value.map(
|
|
579
579
|
(E) => (E == null ? void 0 : E.field) === u.field ? u : E
|
|
580
580
|
);
|
|
581
|
-
y(
|
|
581
|
+
y(b);
|
|
582
582
|
};
|
|
583
583
|
return le(t, (u) => {
|
|
584
584
|
o.value = u;
|
|
@@ -590,48 +590,48 @@ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
|
590
590
|
sortedColumns: l,
|
|
591
591
|
// Methods
|
|
592
592
|
onConfigSettingsColumnsUpdate: y,
|
|
593
|
-
onConfigSettingsColumnUpdate:
|
|
593
|
+
onConfigSettingsColumnUpdate: S,
|
|
594
594
|
onConfigSettingsCondensedUpdate: p,
|
|
595
595
|
onConfigSettingsZebraRowsUpdate: h
|
|
596
596
|
};
|
|
597
597
|
}, Ps = (s, t, n, e, o, l, a) => {
|
|
598
|
-
const r =
|
|
598
|
+
const r = w(0), d = w(!1), f = w(!1);
|
|
599
599
|
le([() => r.value, () => l.value], ([u]) => {
|
|
600
600
|
s.value.scrollLeft = u, t.value.scrollLeft = u, d.value = !!u, f.value = t.value.scrollWidth - t.value.offsetWidth > u;
|
|
601
601
|
}), Oe(async () => {
|
|
602
|
-
var u,
|
|
603
|
-
await ee(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((
|
|
602
|
+
var u, b;
|
|
603
|
+
await ee(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((b = t.value) == null ? void 0 : b.scrollWidth) && (f.value = !0);
|
|
604
604
|
});
|
|
605
605
|
const p = (u) => {
|
|
606
606
|
if (r.value = u.target.scrollLeft, n.value = s.value.scrollHeight - u.target.scrollTop, e != null && e.value) {
|
|
607
|
-
const
|
|
608
|
-
e.value.scrollLeft !==
|
|
607
|
+
const b = u.target.scrollLeft;
|
|
608
|
+
e.value.scrollLeft !== b && (e.value.scrollLeft = b);
|
|
609
609
|
}
|
|
610
610
|
}, h = (u) => {
|
|
611
611
|
u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
612
612
|
s.value && (s.value.style.overflowX = "auto");
|
|
613
613
|
}));
|
|
614
614
|
}, y = (u) => {
|
|
615
|
-
const
|
|
616
|
-
s.value.scrollLeft !==
|
|
617
|
-
},
|
|
618
|
-
var u,
|
|
619
|
-
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((
|
|
615
|
+
const b = u.target.scrollLeft;
|
|
616
|
+
s.value.scrollLeft !== b && (s.value.scrollLeft = b);
|
|
617
|
+
}, S = C(() => {
|
|
618
|
+
var u, b, E, N;
|
|
619
|
+
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((b = a == null ? void 0 : a.stickyPagination) != null && b.value || a != null && a.isDataGridTemplate) && !((E = a == null ? void 0 : a.isLazyLoad) != null && E.value) ? { bottom: `${(((N = o.value) == null ? void 0 : N.clientHeight) ?? 0) + 1}px` } : {};
|
|
620
620
|
});
|
|
621
621
|
return {
|
|
622
622
|
// Values
|
|
623
623
|
scrollLeftPosition: r,
|
|
624
624
|
hasLeftOverflow: d,
|
|
625
625
|
hasRightOverflow: f,
|
|
626
|
-
horizontalScrollbarConditionalStyles:
|
|
626
|
+
horizontalScrollbarConditionalStyles: S,
|
|
627
627
|
// Methods
|
|
628
628
|
updateScrollPosition: p,
|
|
629
629
|
updateScrollPositionOnFrozenColumnsNavigation: h,
|
|
630
630
|
syncVirtualScrollerWithBody: y
|
|
631
631
|
};
|
|
632
632
|
}, zs = (s, t, n, e) => {
|
|
633
|
-
const o =
|
|
634
|
-
var
|
|
633
|
+
const o = w(null), l = C(() => {
|
|
634
|
+
var b, E, N, R, m, O;
|
|
635
635
|
if (!o.value || o.value.field === oe)
|
|
636
636
|
return {
|
|
637
637
|
hoveredOverColumnField: "",
|
|
@@ -639,12 +639,12 @@ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
|
639
639
|
noBorderLeft: !1,
|
|
640
640
|
noBorderRight: !1
|
|
641
641
|
};
|
|
642
|
-
const a = (E = (
|
|
642
|
+
const a = (E = (b = s.value.find((I) => I.isFrozenColumns)) == null ? void 0 : b.columnSet) == null ? void 0 : E.filter((I) => I.field !== oe), r = s.value.find((I) => !(I != null && I.isFrozenColumns)), d = o.value.frozen && ((N = a == null ? void 0 : a[0]) == null ? void 0 : N.field) === o.value.field, f = !o.value.frozen && ((m = (R = r == null ? void 0 : r.columnSet) == null ? void 0 : R[0]) == null ? void 0 : m.field) === o.value.field, p = (t.value || n.value) && d, h = (t.value || n.value) && !a && f, y = a && f, S = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, u = n.value && e.value && !o.value.frozen && ((O = r == null ? void 0 : r.columnSet) == null ? void 0 : O[r.columnSet.length - 1].field) === o.value.field;
|
|
643
643
|
return {
|
|
644
644
|
hoveredOverColumnField: o.value.field,
|
|
645
645
|
isSeparatorOffset: u,
|
|
646
646
|
noBorderLeft: !!p || !!h || !!y,
|
|
647
|
-
noBorderRight: !!
|
|
647
|
+
noBorderRight: !!S || !!u
|
|
648
648
|
};
|
|
649
649
|
});
|
|
650
650
|
return {
|
|
@@ -652,14 +652,14 @@ const Ye = "b-row-actions-column", Ns = (s, t, n, e, o, l) => {
|
|
|
652
652
|
hoveredOverColumnState: l
|
|
653
653
|
};
|
|
654
654
|
}, xe = (s, t) => {
|
|
655
|
-
const e =
|
|
655
|
+
const e = Ft(s).filter((o) => o.node !== s);
|
|
656
656
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
657
657
|
const o = t != null && t.last ? e.length - 1 : 0;
|
|
658
658
|
return e[o].node.focus(), !0;
|
|
659
659
|
}
|
|
660
660
|
return !1;
|
|
661
661
|
}, ce = (s) => {
|
|
662
|
-
const t =
|
|
662
|
+
const t = Ft(s), n = t == null ? void 0 : t.filter((e) => e.node !== s);
|
|
663
663
|
if ((n == null ? void 0 : n.length) > 0)
|
|
664
664
|
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
665
665
|
}, Pe = (s) => {
|
|
@@ -1161,9 +1161,9 @@ const ro = io.exports, co = {
|
|
|
1161
1161
|
},
|
|
1162
1162
|
emits: ["sort", "column-hover"],
|
|
1163
1163
|
setup(s, { expose: t, emit: n }) {
|
|
1164
|
-
const e = s, o = 100, { t: l } = _e(), { columns: a, sortBy: r } = Ve(e), d =
|
|
1164
|
+
const e = s, o = 100, { t: l } = _e(), { columns: a, sortBy: r } = Ve(e), d = w(), f = w({}), p = w({}), h = w(), y = w(), S = C(
|
|
1165
1165
|
() => e.columns.some((c) => c.sortable || e.hasColumnPanel || c.infoIconTooltip)
|
|
1166
|
-
), u = (c) => n(X.SELECT_ALL_ROWS, c),
|
|
1166
|
+
), u = (c) => n(X.SELECT_ALL_ROWS, c), b = (c) => c.field === oe, E = C(() => e.selectionState === "all"), N = C(
|
|
1167
1167
|
() => {
|
|
1168
1168
|
var c, z, K;
|
|
1169
1169
|
return [
|
|
@@ -1202,15 +1202,15 @@ const ro = io.exports, co = {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
].filter(Boolean);
|
|
1204
1204
|
}
|
|
1205
|
-
), { startResize:
|
|
1205
|
+
), { startResize: R, isResizing: m, columnHoverEventToEmitAfterResizing: O } = vs(a, n), { isSorting: I, getSortingDirection: _, sortByColumnField: i } = Is(r, a, n), g = (c) => {
|
|
1206
1206
|
var te;
|
|
1207
1207
|
if (!c.sortable)
|
|
1208
1208
|
return null;
|
|
1209
1209
|
const z = (te = e.sortBy.find(({ field: ie }) => ie === c.field)) == null ? void 0 : te.direction;
|
|
1210
1210
|
return z ? {
|
|
1211
|
-
[ye.ASCENDING]:
|
|
1212
|
-
[ye.DESCENDING]:
|
|
1213
|
-
}[z] :
|
|
1211
|
+
[ye.ASCENDING]: Me.ASCENDING,
|
|
1212
|
+
[ye.DESCENDING]: Me.DESCENDING
|
|
1213
|
+
}[z] : Me.NONE;
|
|
1214
1214
|
}, A = C(() => (c) => e.hasDraggableColumns ? {
|
|
1215
1215
|
dragstart: (z) => {
|
|
1216
1216
|
n(X.COLUMN_DRAG_START, c, z);
|
|
@@ -1227,7 +1227,7 @@ const ro = io.exports, co = {
|
|
|
1227
1227
|
dragend: () => {
|
|
1228
1228
|
n(X.COLUMN_DRAG_END);
|
|
1229
1229
|
}
|
|
1230
|
-
} : {}),
|
|
1230
|
+
} : {}), D = C(
|
|
1231
1231
|
() => (c) => [
|
|
1232
1232
|
{
|
|
1233
1233
|
text: l("moveColumnLeft"),
|
|
@@ -1274,14 +1274,14 @@ const ro = io.exports, co = {
|
|
|
1274
1274
|
x(c), m.value ? O.value = null : n("column-hover", null);
|
|
1275
1275
|
},
|
|
1276
1276
|
focus: () => {
|
|
1277
|
-
P(c),
|
|
1277
|
+
P(c), b(c) && xe(f.value[c.field]);
|
|
1278
1278
|
},
|
|
1279
1279
|
focusout: (K) => {
|
|
1280
1280
|
var te;
|
|
1281
1281
|
(te = d.value) != null && te.contains(K == null ? void 0 : K.relatedTarget) || x(c);
|
|
1282
1282
|
}
|
|
1283
1283
|
};
|
|
1284
|
-
return
|
|
1284
|
+
return b(c) || (z = {
|
|
1285
1285
|
...z,
|
|
1286
1286
|
...A.value(c)
|
|
1287
1287
|
}), z;
|
|
@@ -1291,7 +1291,7 @@ const ro = io.exports, co = {
|
|
|
1291
1291
|
}, V = ge(
|
|
1292
1292
|
Ie,
|
|
1293
1293
|
C(() => !1)
|
|
1294
|
-
), W = ge(ze,
|
|
1294
|
+
), W = ge(ze, w(!1)), B = C(() => {
|
|
1295
1295
|
var z;
|
|
1296
1296
|
const c = {
|
|
1297
1297
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
@@ -1339,7 +1339,7 @@ const ro = io.exports, co = {
|
|
|
1339
1339
|
});
|
|
1340
1340
|
return t({
|
|
1341
1341
|
columnHeaderRefs: f
|
|
1342
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: r, allColumnsRef: d, columnHeaderRefs: f, contextMenuRef: p, hoveredColumnField: h, closingTimeOutId: y, areAnyColumnsFocusable:
|
|
1342
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: r, allColumnsRef: d, columnHeaderRefs: f, contextMenuRef: p, hoveredColumnField: h, closingTimeOutId: y, areAnyColumnsFocusable: S, onAllRowSelect: u, isActionsColumn: b, isAllSelectionState: E, selectAllMenu: N, startResize: R, isResizing: m, columnHoverEventToEmitAfterResizing: O, isSorting: I, getSortingDirection: _, sortByColumnField: i, getSortingColumnDirection: g, draggingEventsForColumn: A, contextualMenuData: D, showContextualMenu: P, hideContextualMenu: x, dataGridColumnEvents: U, hasColumnActions: q, registerColumnsRefs: G, isSmallContainer: V, isTouchDevice: W, conditionalColumnsClasses: B, conditionalSelectColumnClasses: ne, computeMenuPosition: me, conditionalColumnClasses: Ce, conditionalColumnHeaderAndActionsClasses: ve, conditionalColumnActionsClasses: de, conditionalColumnSeparatorClasses: L, conditionalColumnHeaderClasses: $, conditionalColumnMenuClasses: H, BentoCheckbox: xt, BentoDatagridSortDirection: ye, BentoTypography: Le, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: Ye, BentoInfoIcon: is, DatagridColumnsEvent: X, BentoMenu: zt, BentoToggleButton: Ke, DecorativeCheckbox: rs, ArrowUpAndDownSortIcon: Gs, SortAscendingIcon: Js, SortDescendingIcon: so, TriangleDown: ro };
|
|
1343
1343
|
}
|
|
1344
1344
|
});
|
|
1345
1345
|
var go = function() {
|
|
@@ -1456,7 +1456,7 @@ const wo = bo.exports, So = {
|
|
|
1456
1456
|
},
|
|
1457
1457
|
emits: ["visible-column", "updated-column"],
|
|
1458
1458
|
setup(s, { emit: t }) {
|
|
1459
|
-
const { t: n } = _e(), e =
|
|
1459
|
+
const { t: n } = _e(), e = w(!1), o = C(() => {
|
|
1460
1460
|
var y;
|
|
1461
1461
|
return (y = s.column) == null ? void 0 : y.frozen;
|
|
1462
1462
|
}), l = C(() => {
|
|
@@ -1722,12 +1722,12 @@ const Lo = yo.exports, To = {
|
|
|
1722
1722
|
ue.UPDATE_ZEBRA_ROWS
|
|
1723
1723
|
],
|
|
1724
1724
|
setup(s, { emit: t }) {
|
|
1725
|
-
const { t: n } = _e(), e =
|
|
1725
|
+
const { t: n } = _e(), e = w(null), o = Fe("data-grid-config-settings-popover"), l = w(null), a = w(!1), r = w(!0), d = w(null), f = w(""), p = $e(s, "columns"), h = w(!1), y = ms(f, p), S = () => {
|
|
1726
1726
|
f.value = "";
|
|
1727
1727
|
}, u = C(
|
|
1728
1728
|
() => !s.columns.some((g) => g.visible === !1 && !g.mandatory)
|
|
1729
|
-
),
|
|
1730
|
-
|
|
1729
|
+
), b = () => {
|
|
1730
|
+
S(), h.value = !h.value, h.value ? ee(() => {
|
|
1731
1731
|
var g;
|
|
1732
1732
|
return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
|
|
1733
1733
|
}) : ee(() => {
|
|
@@ -1735,12 +1735,12 @@ const Lo = yo.exports, To = {
|
|
|
1735
1735
|
return (A = (g = d == null ? void 0 : d.value) == null ? void 0 : g.$el) == null ? void 0 : A.focus();
|
|
1736
1736
|
}), r.value = u.value;
|
|
1737
1737
|
}, E = (g) => g.mandatory ?? !1, N = (g) => {
|
|
1738
|
-
const A = s.columns.map((
|
|
1739
|
-
...
|
|
1740
|
-
visible: g.field ===
|
|
1738
|
+
const A = s.columns.map((D) => ({
|
|
1739
|
+
...D,
|
|
1740
|
+
visible: g.field === D.field ? g.visible : D.visible
|
|
1741
1741
|
}));
|
|
1742
1742
|
t(ue.UPDATE_COLUMNS, A);
|
|
1743
|
-
},
|
|
1743
|
+
}, R = (g) => {
|
|
1744
1744
|
g ? t(
|
|
1745
1745
|
ue.UPDATE_COLUMNS,
|
|
1746
1746
|
s.columns.map((A) => ({ ...A, visible: !0 }))
|
|
@@ -1749,9 +1749,9 @@ const Lo = yo.exports, To = {
|
|
|
1749
1749
|
s.columns.map((A) => ({ ...A, visible: (A == null ? void 0 : A.mandatory) === !0 }))
|
|
1750
1750
|
);
|
|
1751
1751
|
}, m = (g) => {
|
|
1752
|
-
const A = s.columns.map((
|
|
1753
|
-
...
|
|
1754
|
-
frozen: g.field ===
|
|
1752
|
+
const A = s.columns.map((D) => ({
|
|
1753
|
+
...D,
|
|
1754
|
+
frozen: g.field === D.field ? !!(g != null && g.frozen) : !!(D != null && D.frozen)
|
|
1755
1755
|
}));
|
|
1756
1756
|
t(ue.UPDATE_COLUMNS, A);
|
|
1757
1757
|
}, O = (g) => {
|
|
@@ -1772,9 +1772,9 @@ const Lo = yo.exports, To = {
|
|
|
1772
1772
|
// Methods
|
|
1773
1773
|
setConfigSettingsPanelVisibility: O,
|
|
1774
1774
|
emitCondensedToggle: (g) => t(ue.UPDATE_CONDENSED, g),
|
|
1775
|
-
toggleAllColumnVisibility:
|
|
1776
|
-
clearAction:
|
|
1777
|
-
toggleColumnFilter:
|
|
1775
|
+
toggleAllColumnVisibility: R,
|
|
1776
|
+
clearAction: S,
|
|
1777
|
+
toggleColumnFilter: b,
|
|
1778
1778
|
emitVisibleColumns: N,
|
|
1779
1779
|
emitFrozenColumns: m,
|
|
1780
1780
|
onClickOutside: () => O(!1),
|
|
@@ -1812,7 +1812,7 @@ var Io = function() {
|
|
|
1812
1812
|
null,
|
|
1813
1813
|
"0e477266"
|
|
1814
1814
|
);
|
|
1815
|
-
const
|
|
1815
|
+
const Mo = Do.exports, Wt = {
|
|
1816
1816
|
"de-DE": {
|
|
1817
1817
|
filterBar: "Filter",
|
|
1818
1818
|
gettingYourData: "Ihre Daten werden abgerufen",
|
|
@@ -1933,10 +1933,10 @@ const Fo = Do.exports, Wt = {
|
|
|
1933
1933
|
sortDescending: "{field} 降序排序",
|
|
1934
1934
|
sortInactive: "{field} 排序未激活"
|
|
1935
1935
|
}
|
|
1936
|
-
},
|
|
1936
|
+
}, Fo = {
|
|
1937
1937
|
i18n: { messages: Wt }
|
|
1938
1938
|
}, xo = /* @__PURE__ */ re({
|
|
1939
|
-
...
|
|
1939
|
+
...Fo,
|
|
1940
1940
|
__name: "data-grid-lazy-load",
|
|
1941
1941
|
props: {
|
|
1942
1942
|
loading: { type: Boolean },
|
|
@@ -1944,7 +1944,7 @@ const Fo = Do.exports, Wt = {
|
|
|
1944
1944
|
},
|
|
1945
1945
|
setup(s) {
|
|
1946
1946
|
const { t } = _e();
|
|
1947
|
-
return { __sfc: !0, t, BentoLoadingButton: ns, BentoLoadingButtonState: ts, BentoLoadingIndicator: Ze, BentoDatagridEvent:
|
|
1947
|
+
return { __sfc: !0, t, BentoLoadingButton: ns, BentoLoadingButtonState: ts, BentoLoadingIndicator: Ze, BentoDatagridEvent: M };
|
|
1948
1948
|
}
|
|
1949
1949
|
});
|
|
1950
1950
|
var Po = function() {
|
|
@@ -1964,7 +1964,7 @@ const Uo = Bo.exports, At = () => {
|
|
|
1964
1964
|
const s = document.activeElement;
|
|
1965
1965
|
return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
|
|
1966
1966
|
}, ko = ({ gridcellRef: s }) => {
|
|
1967
|
-
const t =
|
|
1967
|
+
const t = w(!1), n = w(!1), e = w(), o = w([]), l = w(!1), a = w(!1), r = w(!1), d = w(!1), f = w(!1), p = C(() => {
|
|
1968
1968
|
var _;
|
|
1969
1969
|
return (((_ = e.value) == null ? void 0 : _.length) ?? 0) > 1;
|
|
1970
1970
|
}), h = (_) => {
|
|
@@ -1972,7 +1972,7 @@ const Uo = Bo.exports, At = () => {
|
|
|
1972
1972
|
return _ ? (i = s.value) != null && i.contains(_) ? !0 : (g = o.value) == null ? void 0 : g.map((A) => A.value).some((A) => A === _ || (A == null ? void 0 : A.contains(_))) : !1;
|
|
1973
1973
|
}, y = (_) => {
|
|
1974
1974
|
h(_) || (t.value = !1);
|
|
1975
|
-
},
|
|
1975
|
+
}, S = () => {
|
|
1976
1976
|
d.value = !0, setTimeout(() => {
|
|
1977
1977
|
var _, i;
|
|
1978
1978
|
(_ = s.value) != null && _.contains(document.activeElement) && ((i = s.value) == null || i.focus());
|
|
@@ -1980,7 +1980,7 @@ const Uo = Bo.exports, At = () => {
|
|
|
1980
1980
|
}, u = () => {
|
|
1981
1981
|
var _;
|
|
1982
1982
|
a.value = !1, l.value = !1, f.value = !0, ce(s.value), (_ = s.value) == null || _.focus();
|
|
1983
|
-
},
|
|
1983
|
+
}, b = () => {
|
|
1984
1984
|
var g;
|
|
1985
1985
|
const _ = (g = s.value) == null ? void 0 : g.closest('[role="grid"]');
|
|
1986
1986
|
if (!_)
|
|
@@ -2010,9 +2010,9 @@ const Uo = Bo.exports, At = () => {
|
|
|
2010
2010
|
isMultiWidgetCell: p,
|
|
2011
2011
|
isFocusWithinCellOrMenu: h,
|
|
2012
2012
|
hideCellActionsIfLeft: y,
|
|
2013
|
-
onMenuClose:
|
|
2013
|
+
onMenuClose: S,
|
|
2014
2014
|
exitInteractionMode: u,
|
|
2015
|
-
findNextFocusableAfterGrid:
|
|
2015
|
+
findNextFocusableAfterGrid: b,
|
|
2016
2016
|
hasChildFocusedInside: E,
|
|
2017
2017
|
handleFocus: async (_) => {
|
|
2018
2018
|
if (!At())
|
|
@@ -2039,8 +2039,8 @@ const Uo = Bo.exports, At = () => {
|
|
|
2039
2039
|
_.stopPropagation(), _.preventDefault(), u();
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
2042
|
-
const
|
|
2043
|
-
if ((a.value || p.value && t.value &&
|
|
2042
|
+
const D = E();
|
|
2043
|
+
if ((a.value || p.value && t.value && D) && _.key !== j.TAB) {
|
|
2044
2044
|
if (_.stopPropagation(), _.key === j.ARROW_LEFT || _.key === j.ARROW_RIGHT) {
|
|
2045
2045
|
const G = (q = e.value) == null ? void 0 : q.findIndex((V) => V.node === document.activeElement);
|
|
2046
2046
|
if (G !== void 0 && G >= 0) {
|
|
@@ -2050,15 +2050,15 @@ const Uo = Bo.exports, At = () => {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
return;
|
|
2052
2052
|
}
|
|
2053
|
-
if (_.key === j.TAB &&
|
|
2053
|
+
if (_.key === j.TAB && D) {
|
|
2054
2054
|
_.preventDefault(), _.stopPropagation(), r.value = !0;
|
|
2055
|
-
const G =
|
|
2055
|
+
const G = b();
|
|
2056
2056
|
setTimeout(() => {
|
|
2057
2057
|
l.value = !1, t.value = !1, ee(() => G == null ? void 0 : G.focus());
|
|
2058
2058
|
}, 0);
|
|
2059
2059
|
return;
|
|
2060
2060
|
}
|
|
2061
|
-
_.key !== j.TAB && (
|
|
2061
|
+
_.key !== j.TAB && (D && (r.value = !0), l.value = !1, n.value = !1, t.value = !1, ce(s.value));
|
|
2062
2062
|
},
|
|
2063
2063
|
handleCellActionsFocus: async (_, i) => {
|
|
2064
2064
|
if (r.value) {
|
|
@@ -2224,7 +2224,7 @@ const yt = Vo.exports, Ho = {
|
|
|
2224
2224
|
},
|
|
2225
2225
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
2226
2226
|
setup(s, { emit: t }) {
|
|
2227
|
-
const n = s, { t: e } = _e(), o = ge(ze,
|
|
2227
|
+
const n = s, { t: e } = _e(), o = ge(ze, w(!1)), l = (m) => {
|
|
2228
2228
|
if ("text" in m && m.text !== void 0)
|
|
2229
2229
|
return m.text;
|
|
2230
2230
|
switch (m.variant) {
|
|
@@ -2271,11 +2271,11 @@ const yt = Vo.exports, Ho = {
|
|
|
2271
2271
|
var O;
|
|
2272
2272
|
const m = h(n.cellActions) ? (O = n.cellActions) == null ? void 0 : O.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
2273
2273
|
if (o.value && !r.value && m) {
|
|
2274
|
-
const
|
|
2274
|
+
const I = [];
|
|
2275
2275
|
return m.forEach((_) => {
|
|
2276
2276
|
_.menuData ? _.menuData.forEach((i) => {
|
|
2277
|
-
|
|
2278
|
-
}) :
|
|
2277
|
+
I.push(i);
|
|
2278
|
+
}) : I.push({
|
|
2279
2279
|
text: l(_),
|
|
2280
2280
|
event: _.event,
|
|
2281
2281
|
critical: _.critical,
|
|
@@ -2287,14 +2287,14 @@ const yt = Vo.exports, Ho = {
|
|
|
2287
2287
|
variant: "more",
|
|
2288
2288
|
isShort: !0,
|
|
2289
2289
|
iconLeft: ct,
|
|
2290
|
-
menuData: E(
|
|
2290
|
+
menuData: E(I)
|
|
2291
2291
|
}
|
|
2292
2292
|
];
|
|
2293
2293
|
}
|
|
2294
|
-
return !o.value && (m == null ? void 0 : m.length) > 2 &&
|
|
2294
|
+
return !o.value && (m == null ? void 0 : m.length) > 2 && Mt(
|
|
2295
2295
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
2296
2296
|
), m == null ? void 0 : m.slice(0, 2);
|
|
2297
|
-
}),
|
|
2297
|
+
}), S = C(() => (m, O) => {
|
|
2298
2298
|
if (!(!O && m.isShort || O && !m.isShort))
|
|
2299
2299
|
switch (m.variant) {
|
|
2300
2300
|
case "copy":
|
|
@@ -2312,18 +2312,18 @@ const yt = Vo.exports, Ho = {
|
|
|
2312
2312
|
click: (O) => {
|
|
2313
2313
|
O.stopPropagation(), m.event(n.rowDataItem, n.columnKey);
|
|
2314
2314
|
}
|
|
2315
|
-
} : {},
|
|
2315
|
+
} : {}, b = (m) => ({
|
|
2316
2316
|
...m,
|
|
2317
2317
|
handler: () => {
|
|
2318
2318
|
m != null && m.handler && typeof m.handler == "function" && (m == null || m.handler()), m != null && m.event && typeof m.event == "function" && (m == null || m.event(n.rowDataItem, n.columnKey));
|
|
2319
2319
|
}
|
|
2320
2320
|
}), E = (m) => m.map((O) => {
|
|
2321
|
-
const
|
|
2322
|
-
return
|
|
2321
|
+
const I = O;
|
|
2322
|
+
return I != null && I.items && (I.items = E(I.items)), { ...b(I) };
|
|
2323
2323
|
});
|
|
2324
|
-
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: r, conditionalCellActionsBackgroundGradientClasses: d, conditionalCellActionsClasses: f, showGradientElement: p, isBentoColumnCellActionsByCellValueDataFn: h, computedCellActions: y, getButtonTitle:
|
|
2325
|
-
var O,
|
|
2326
|
-
return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (
|
|
2324
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: r, conditionalCellActionsBackgroundGradientClasses: d, conditionalCellActionsClasses: f, showGradientElement: p, isBentoColumnCellActionsByCellValueDataFn: h, computedCellActions: y, getButtonTitle: S, generateButtonEvents: u, generateMenuEvents: b, transformMenuEvents: E, getCopyText: (m) => {
|
|
2325
|
+
var O, I;
|
|
2326
|
+
return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (I = (O = n.rowDataItem) == null ? void 0 : O[n.columnKey]) == null ? void 0 : I.toString() : "";
|
|
2327
2327
|
}, shouldShowMenuIconLeft: (m) => m.iconLeft || (m == null ? void 0 : m.variant) === "more", BentoButton: Pt, BentoMenu: zt, Copy: ut, vBentoTooltipDirective: Dt, Edit1Icon: yt, ExternalLinkIcon: dt, OptionsVerticalIcon: ct };
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
@@ -2563,19 +2563,19 @@ const Xo = {
|
|
|
2563
2563
|
},
|
|
2564
2564
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
2565
2565
|
setup(s, { expose: t, emit: n }) {
|
|
2566
|
-
const e = s, o = He(), l = je(o), { t: a } = _e(), r =
|
|
2566
|
+
const e = s, o = He(), l = je(o), { t: a } = _e(), r = w(null), d = w(null), f = w(!1), {
|
|
2567
2567
|
shouldShowCellActions: p,
|
|
2568
2568
|
isFocused: h,
|
|
2569
2569
|
focusableItems: y,
|
|
2570
|
-
childrenMenuContainerElements:
|
|
2570
|
+
childrenMenuContainerElements: S,
|
|
2571
2571
|
hasInteractiveElFocusedInside: u,
|
|
2572
|
-
onMenuClose:
|
|
2572
|
+
onMenuClose: b,
|
|
2573
2573
|
hideCellActionsIfLeft: E,
|
|
2574
2574
|
handleFocus: N,
|
|
2575
|
-
handleFocusout:
|
|
2575
|
+
handleFocusout: R,
|
|
2576
2576
|
handleKeydown: m,
|
|
2577
2577
|
handleCellActionsFocus: O,
|
|
2578
|
-
handleCellActionsFocusout:
|
|
2578
|
+
handleCellActionsFocusout: I
|
|
2579
2579
|
} = ko({ gridcellRef: r }), _ = C(() => {
|
|
2580
2580
|
var L;
|
|
2581
2581
|
return !!((L = e.rowData) != null && L[e.column.field]);
|
|
@@ -2586,7 +2586,7 @@ const Xo = {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
), g = C(
|
|
2588
2588
|
() => e.column.field === oe && !e.selectable && !e.nestedContent
|
|
2589
|
-
), A = C(() => !g.value && (q(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !f.value || h.value) ? "0" : (e.column.field === oe, "-1")),
|
|
2589
|
+
), A = C(() => !g.value && (q(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !f.value || h.value) ? "0" : (e.column.field === oe, "-1")), D = (L, $) => (L == null ? void 0 : L.overflow) === We.ELLIPSIS ? `${$}` : void 0, P = (L) => L ?? "-", x = (L) => e.columnSets.slice(0, L).reduce(($, { columnSet: H }) => $ + H.length, 0), U = (L, $) => L + x($), q = (L, $, H) => x() * L + U($, H), G = (L) => {
|
|
2590
2590
|
const $ = {
|
|
2591
2591
|
...e.draggingEventsForRowCell(L),
|
|
2592
2592
|
focus: async () => {
|
|
@@ -2599,7 +2599,7 @@ const Xo = {
|
|
|
2599
2599
|
});
|
|
2600
2600
|
});
|
|
2601
2601
|
},
|
|
2602
|
-
focusout:
|
|
2602
|
+
focusout: R,
|
|
2603
2603
|
keydown: m
|
|
2604
2604
|
}, H = { ...$ };
|
|
2605
2605
|
return L.frozen && (H.keyup = (c) => n("on-frozen-columns-key-press", c), H.keydown = (c) => {
|
|
@@ -2611,7 +2611,7 @@ const Xo = {
|
|
|
2611
2611
|
}, H.focus = async (c) => {
|
|
2612
2612
|
await O($.focus, c);
|
|
2613
2613
|
}, H.focusout = (c) => {
|
|
2614
|
-
|
|
2614
|
+
I($.focusout, c);
|
|
2615
2615
|
}), H;
|
|
2616
2616
|
};
|
|
2617
2617
|
Oe(() => {
|
|
@@ -2627,7 +2627,7 @@ const Xo = {
|
|
|
2627
2627
|
}
|
|
2628
2628
|
);
|
|
2629
2629
|
const W = (L) => {
|
|
2630
|
-
|
|
2630
|
+
S.value.push(L);
|
|
2631
2631
|
}, B = (L) => {
|
|
2632
2632
|
r.value.contains(L == null ? void 0 : L.relatedTarget) || (p.value = !1);
|
|
2633
2633
|
};
|
|
@@ -2635,10 +2635,10 @@ const Xo = {
|
|
|
2635
2635
|
registerMenuContainerElement: W,
|
|
2636
2636
|
menuMouseLeave: B
|
|
2637
2637
|
});
|
|
2638
|
-
const ne = ge($t,
|
|
2638
|
+
const ne = ge($t, w(!1)), me = ge(
|
|
2639
2639
|
Ie,
|
|
2640
2640
|
C(() => !1)
|
|
2641
|
-
), Ce = ge(ze,
|
|
2641
|
+
), Ce = ge(ze, w(!1)), ve = (L) => {
|
|
2642
2642
|
var $, H, c, z, K, te, ie;
|
|
2643
2643
|
return {
|
|
2644
2644
|
[`b-data-grid-cell--${Q.COLUMN_HOVERED}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
@@ -2665,7 +2665,7 @@ const Xo = {
|
|
|
2665
2665
|
}));
|
|
2666
2666
|
return t({
|
|
2667
2667
|
gridcellRef: r
|
|
2668
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: r, cellActionsRef: d, hasEverBeenFocused: f, shouldShowCellActions: p, isFocused: h, focusableItems: y, childrenMenuContainerElements:
|
|
2668
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: r, cellActionsRef: d, hasEverBeenFocused: f, shouldShowCellActions: p, isFocused: h, focusableItems: y, childrenMenuContainerElements: S, hasInteractiveElFocusedInside: u, onMenuClose: b, hideCellActionsIfLeft: E, handleFocus: N, handleFocusout: R, handleKeydown: m, handleCellActionsFocus: O, handleCellActionsFocusout: I, hasRowData: _, controlledNestedRowElementIds: i, ariaHidden: g, tabIndex: A, conditionalTitleAttribute: D, getRowData: P, sumColumnAmountsInColumnSets: x, getColIndex: U, getCellIndex: q, getGridcellEvents: G, toggleNestedContent: V, registerMenuContainerElement: W, menuMouseLeave: B, hasSlashedZero: ne, isSmallContainer: me, isTouchDevice: Ce, conditionalRowCellClasses: ve, computedCellContentClasses: de, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe, BentoCheckbox: xt, BentoTypography: Le, BentoToggleButton: Ke, DataGridCellActions: Gt, ChevronDownIcon: os, ChevronUpIcon: ls };
|
|
2669
2669
|
}
|
|
2670
2670
|
});
|
|
2671
2671
|
var el = function() {
|
|
@@ -2899,15 +2899,15 @@ const sl = nl.exports, ol = {
|
|
|
2899
2899
|
},
|
|
2900
2900
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2901
2901
|
setup(s, { expose: t, emit: n }) {
|
|
2902
|
-
const e = s, o = He(), l = je(o), a = (v, T) => !v || !T ? !1 : !!(T.compareDocumentPosition(v) & Node.DOCUMENT_POSITION_FOLLOWING), r =
|
|
2902
|
+
const e = s, o = He(), l = je(o), a = (v, T) => !v || !T ? !1 : !!(T.compareDocumentPosition(v) & Node.DOCUMENT_POSITION_FOLLOWING), r = w({}), d = w(!1), f = w(), p = w(), h = w([]), y = Fe("nested-content-slot"), S = w(!1), u = w(!1), b = w(), E = () => {
|
|
2903
2903
|
const v = p.value;
|
|
2904
2904
|
return Array.isArray(v) ? v[0] : v;
|
|
2905
2905
|
};
|
|
2906
2906
|
Oe(() => {
|
|
2907
2907
|
const v = E();
|
|
2908
|
-
v && (
|
|
2908
|
+
v && (b.value = ce(v));
|
|
2909
2909
|
});
|
|
2910
|
-
const N = C(() => e.shouldShowNestedRows(e.rowData)),
|
|
2910
|
+
const N = C(() => e.shouldShowNestedRows(e.rowData)), R = C(
|
|
2911
2911
|
() => {
|
|
2912
2912
|
var v, T;
|
|
2913
2913
|
return !e.isNestedRow && e.hasNestedRows && N.value && ((T = (v = e.rowData) == null ? void 0 : v.children) == null ? void 0 : T.length) > 0;
|
|
@@ -2919,7 +2919,7 @@ const sl = nl.exports, ol = {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
), O = C(
|
|
2921
2921
|
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && N.value && !e.isNestedRow
|
|
2922
|
-
),
|
|
2922
|
+
), I = C(() => {
|
|
2923
2923
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2924
2924
|
const v = d.value.toString();
|
|
2925
2925
|
return {
|
|
@@ -2936,7 +2936,7 @@ const sl = nl.exports, ol = {
|
|
|
2936
2936
|
"aria-busy": "true",
|
|
2937
2937
|
"aria-live": "polite"
|
|
2938
2938
|
};
|
|
2939
|
-
if (!(
|
|
2939
|
+
if (!(R.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
2940
2940
|
return {
|
|
2941
2941
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2942
2942
|
"aria-posinset": "1",
|
|
@@ -2947,13 +2947,13 @@ const sl = nl.exports, ol = {
|
|
|
2947
2947
|
};
|
|
2948
2948
|
}), i = C(() => {
|
|
2949
2949
|
var v, T;
|
|
2950
|
-
return
|
|
2950
|
+
return R.value ? (T = (v = e.rowData) == null ? void 0 : v.children) == null ? void 0 : T.reduce((Z, k, ae) => (Z[ae] = Fe("nested-row"), Z), {}) : [];
|
|
2951
2951
|
}), g = C(() => {
|
|
2952
2952
|
var v;
|
|
2953
2953
|
if (d.value) {
|
|
2954
2954
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2955
2955
|
return [y];
|
|
2956
|
-
if (
|
|
2956
|
+
if (R.value && ((v = Object.keys(i.value)) == null ? void 0 : v.length) > 0) {
|
|
2957
2957
|
const T = Object.values(i.value);
|
|
2958
2958
|
if ((T == null ? void 0 : T.length) > 0)
|
|
2959
2959
|
return T;
|
|
@@ -2974,7 +2974,7 @@ const sl = nl.exports, ol = {
|
|
|
2974
2974
|
return !k && ae;
|
|
2975
2975
|
}
|
|
2976
2976
|
return !1;
|
|
2977
|
-
}),
|
|
2977
|
+
}), D = (v, T) => {
|
|
2978
2978
|
const Z = v;
|
|
2979
2979
|
v !== null && (Z != null && Z.gridcellRef) && (r.value[T] = Z.gridcellRef);
|
|
2980
2980
|
}, P = (v, T) => {
|
|
@@ -3003,9 +3003,9 @@ const sl = nl.exports, ol = {
|
|
|
3003
3003
|
}, W = (v, T) => {
|
|
3004
3004
|
n("select-nested-row", T, e.rowData, v);
|
|
3005
3005
|
}, B = () => {
|
|
3006
|
-
|
|
3006
|
+
S.value = !0;
|
|
3007
3007
|
}, ne = () => {
|
|
3008
|
-
|
|
3008
|
+
S.value = !1;
|
|
3009
3009
|
}, me = (v) => {
|
|
3010
3010
|
var he;
|
|
3011
3011
|
if (u.value) {
|
|
@@ -3013,9 +3013,9 @@ const sl = nl.exports, ol = {
|
|
|
3013
3013
|
return;
|
|
3014
3014
|
}
|
|
3015
3015
|
const T = E();
|
|
3016
|
-
if (!T || !((he =
|
|
3016
|
+
if (!T || !((he = b.value) != null && he.length))
|
|
3017
3017
|
return;
|
|
3018
|
-
const Z = a(v.relatedTarget, T), k =
|
|
3018
|
+
const Z = a(v.relatedTarget, T), k = b.value.length - 1, ae = Z ? b.value[k] : b.value[0];
|
|
3019
3019
|
Pe([ae]), xe(T, { last: Z });
|
|
3020
3020
|
}, Ce = () => {
|
|
3021
3021
|
const v = E();
|
|
@@ -3027,12 +3027,12 @@ const sl = nl.exports, ol = {
|
|
|
3027
3027
|
T && ce(T), u.value = !0, T == null || T.focus(), v.stopPropagation(), v.preventDefault();
|
|
3028
3028
|
return;
|
|
3029
3029
|
}
|
|
3030
|
-
v.key !== j.TAB && T && ce(T), v.key === j.ARROW_RIGHT && ((Z =
|
|
3030
|
+
v.key !== j.TAB && T && ce(T), v.key === j.ARROW_RIGHT && ((Z = b.value) == null ? void 0 : Z.length) > 1 && b.value[0].node === document.activeElement ? (T && ce(T), b.value[1].node.setAttribute("tabindex", "0"), b.value[1].node.focus(), v.stopPropagation(), v.preventDefault()) : v.key === j.ARROW_LEFT && ((k = b.value) == null ? void 0 : k.length) > 1 && b.value[1].node === document.activeElement && (T && ce(T), b.value[0].node.setAttribute("tabindex", "0"), b.value[0].node.focus(), v.stopPropagation(), v.preventDefault());
|
|
3031
3031
|
}, de = () => e.columnSets.reduce((v, { columnSet: T }) => v + T.length, 0), L = () => de() * e.rowIndex + de(), { updateContentHeight: $, contentHeight: H } = as(f, d), c = C(() => {
|
|
3032
3032
|
var v;
|
|
3033
3033
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
3034
3034
|
return {
|
|
3035
|
-
paddingLeft: `${
|
|
3035
|
+
paddingLeft: `${R.value || m.value ? 0 : r.value[oe].offsetWidth + Ut}px`,
|
|
3036
3036
|
"max-height": (e.hasNestedContent || e.hasNestedRows) && H.value && !((v = H == null ? void 0 : H.value) != null && v.includes("null")) ? H.value : 0
|
|
3037
3037
|
};
|
|
3038
3038
|
});
|
|
@@ -3078,9 +3078,9 @@ const sl = nl.exports, ol = {
|
|
|
3078
3078
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
3079
3079
|
}), we = C(() => ({
|
|
3080
3080
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
3081
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
3081
|
+
"b-data-grid-row-container__row-nested-slot": !R.value && e.shouldShowNestedContent(e.rowData)
|
|
3082
3082
|
})), Se = C(() => ({
|
|
3083
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open":
|
|
3083
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": S.value
|
|
3084
3084
|
})), Re = C(() => ({
|
|
3085
3085
|
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
3086
3086
|
}));
|
|
@@ -3089,7 +3089,7 @@ const sl = nl.exports, ol = {
|
|
|
3089
3089
|
isNestedContentShown: d,
|
|
3090
3090
|
nestedRowRefs: h,
|
|
3091
3091
|
rowActionsRef: p
|
|
3092
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, isRelatedTargetAfterInDOM: a, gridcellRefs: r, isNestedContentShown: d, nestedContentRef: f, rowActionsRef: p, nestedRowRefs: h, nestedContentSlotId: y, isRowActionMenuOpen:
|
|
3092
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, isRelatedTargetAfterInDOM: a, gridcellRefs: r, isNestedContentShown: d, nestedContentRef: f, rowActionsRef: p, nestedRowRefs: h, nestedContentSlotId: y, isRowActionMenuOpen: S, isExitingRowActionInteraction: u, focusableItems: b, getRowActionsElement: E, shouldShowNestedRowsBooleanResult: N, shouldShowRenderNestedRows: R, isLoadingNestedRows: m, shouldShowNestedContentToggle: O, ariaRowAttributes: I, nestedContentContainerDivAriaAttributes: _, nestedRowIds: i, allNestedRowIds: g, hasUnSelectedNestedRows: A, registerRowCellRef: D, registerNestedRowRef: P, getRowId: x, getRowAriaSelectedValue: U, emitRowClick: q, onRowClick: G, onRowSelect: V, onNestedRowSelect: W, onRowActionMenuOpen: B, onRowActionMenuClose: ne, onRowActionsCellFocus: me, onRowActionsCellFocusOut: Ce, onRowActionsCellOnKeyDown: ve, sumColumnAmountsInColumnSets: de, getRowActionsCellIndex: L, updateContentHeight: $, contentHeight: H, nestedContentStyles: c, nestedContentToggled: z, isSmallContainer: K, isHighlightedRow: te, isSelectedRow: ie, conditionalRowClasses: Te, conditionalRowSetClasses: be, conditionalNestedRowClasses: we, conditionalRowActionsContainerClasses: Se, computedRowActionsStyles: Re, BentoLoadingIndicator: Ze, DataGridRow: Vt, DataGridCell: sl, DataGridCellActions: Gt };
|
|
3093
3093
|
}
|
|
3094
3094
|
});
|
|
3095
3095
|
var al = function() {
|
|
@@ -3108,12 +3108,12 @@ var al = function() {
|
|
|
3108
3108
|
}, "on-frozen-columns-key-press": function(h) {
|
|
3109
3109
|
return e.emit("on-frozen-columns-key-press", h);
|
|
3110
3110
|
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(h, y) {
|
|
3111
|
-
return { key: y, fn: function(
|
|
3112
|
-
return [t._t(y, null, null,
|
|
3111
|
+
return { key: y, fn: function(S) {
|
|
3112
|
+
return [t._t(y, null, null, S)];
|
|
3113
3113
|
} };
|
|
3114
3114
|
})], null, !0) });
|
|
3115
|
-
}), 1) : t._e()
|
|
3116
|
-
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown && e.shouldShowRenderNestedRows ? n("div", { class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "presentation" } }, [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : t._e(), t._l(t.rowData.children, function(l, a) {
|
|
3115
|
+
}), 1) : t._e()];
|
|
3116
|
+
}), t.rowActions ? n("div", { ref: "rowActionsRef", staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus, focusOut: e.onRowActionsCellFocusOut, keydown: e.onRowActionsCellOnKeyDown } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "teleport-menu": "" }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown && e.shouldShowRenderNestedRows ? n("div", { class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "presentation" } }, [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : t._e(), t._l(t.rowData.children, function(l, a) {
|
|
3117
3117
|
return n(e.DataGridRow, t._b({ key: `child-${a}`, ref: (r) => e.registerNestedRowRef(r, a), refInFor: !0, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(r) {
|
|
3118
3118
|
return e.emit("cell-hovered", r);
|
|
3119
3119
|
}, "cell-focus": function(r) {
|
|
@@ -3134,7 +3134,7 @@ var al = function() {
|
|
|
3134
3134
|
il,
|
|
3135
3135
|
!1,
|
|
3136
3136
|
null,
|
|
3137
|
-
"
|
|
3137
|
+
"01ee31f7"
|
|
3138
3138
|
);
|
|
3139
3139
|
const Vt = rl.exports;
|
|
3140
3140
|
let Lt = 0;
|
|
@@ -3239,7 +3239,7 @@ const Ha = hl.exports, pl = {
|
|
|
3239
3239
|
tooltipText: { default: null }
|
|
3240
3240
|
},
|
|
3241
3241
|
setup(s) {
|
|
3242
|
-
const t = s, { tc: n } = _e(), e =
|
|
3242
|
+
const t = s, { tc: n } = _e(), e = w(), o = C(() => ({
|
|
3243
3243
|
popoverPosition: "right",
|
|
3244
3244
|
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
3245
3245
|
popoverTitle: t.label,
|
|
@@ -3305,7 +3305,7 @@ const Il = {
|
|
|
3305
3305
|
var Nl = function() {
|
|
3306
3306
|
var t = this, n = t._self._c;
|
|
3307
3307
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", d: "M12.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z" } })]);
|
|
3308
|
-
}, Dl = [],
|
|
3308
|
+
}, Dl = [], Ml = /* @__PURE__ */ J(
|
|
3309
3309
|
Il,
|
|
3310
3310
|
Nl,
|
|
3311
3311
|
Dl,
|
|
@@ -3313,7 +3313,7 @@ var Nl = function() {
|
|
|
3313
3313
|
null,
|
|
3314
3314
|
null
|
|
3315
3315
|
);
|
|
3316
|
-
const
|
|
3316
|
+
const Fl = Ml.exports;
|
|
3317
3317
|
let Ot = 0;
|
|
3318
3318
|
const xl = {
|
|
3319
3319
|
beforeCreate() {
|
|
@@ -3397,7 +3397,7 @@ const Ul = Bl.exports, kl = {
|
|
|
3397
3397
|
}), a = C(() => {
|
|
3398
3398
|
switch (t.direction) {
|
|
3399
3399
|
case "up":
|
|
3400
|
-
return
|
|
3400
|
+
return Fl;
|
|
3401
3401
|
case "down":
|
|
3402
3402
|
return Ul;
|
|
3403
3403
|
default:
|
|
@@ -3428,30 +3428,30 @@ var Gl = function() {
|
|
|
3428
3428
|
"05cdd7d9"
|
|
3429
3429
|
);
|
|
3430
3430
|
const qa = Hl.exports, Zl = (s, t, n) => {
|
|
3431
|
-
const e =
|
|
3432
|
-
var u,
|
|
3431
|
+
const e = w([]), o = (d, f) => {
|
|
3432
|
+
var u, b;
|
|
3433
3433
|
if (!(d != null && d.gridcellRefs))
|
|
3434
3434
|
return { count: 0, entries: [], maxWidth: 0 };
|
|
3435
3435
|
const p = [];
|
|
3436
3436
|
let h = 0;
|
|
3437
3437
|
const y = n.value && (d == null ? void 0 : d.rowActionsRef);
|
|
3438
|
-
Object.entries(d.gridcellRefs).forEach(([
|
|
3439
|
-
p.push({ field:
|
|
3438
|
+
Object.entries(d.gridcellRefs).forEach(([E, N]) => {
|
|
3439
|
+
p.push({ field: E, index: f, el: N });
|
|
3440
3440
|
}), y && (p.push({
|
|
3441
3441
|
field: Ye,
|
|
3442
3442
|
index: f,
|
|
3443
|
-
el:
|
|
3444
|
-
}), h = Math.max(h, ((
|
|
3445
|
-
let
|
|
3446
|
-
if (d.isNestedContentShown && ((
|
|
3447
|
-
for (let
|
|
3448
|
-
const
|
|
3449
|
-
if (
|
|
3450
|
-
const
|
|
3451
|
-
p.push(...
|
|
3443
|
+
el: d.rowActionsRef
|
|
3444
|
+
}), h = Math.max(h, ((u = d.rowActionsRef) == null ? void 0 : u.offsetWidth) ?? 0));
|
|
3445
|
+
let S = 1;
|
|
3446
|
+
if (d.isNestedContentShown && ((b = d.nestedRowRefs) == null ? void 0 : b.length) > 0)
|
|
3447
|
+
for (let E = 0; E < d.nestedRowRefs.length; E++) {
|
|
3448
|
+
const N = d.nestedRowRefs[E];
|
|
3449
|
+
if (N) {
|
|
3450
|
+
const R = o(N, f + S);
|
|
3451
|
+
p.push(...R.entries), h = Math.max(h, R.maxWidth), S += R.count;
|
|
3452
3452
|
}
|
|
3453
3453
|
}
|
|
3454
|
-
return { count:
|
|
3454
|
+
return { count: S, entries: p, maxWidth: h };
|
|
3455
3455
|
};
|
|
3456
3456
|
let l = !1;
|
|
3457
3457
|
const a = (d, f) => {
|
|
@@ -3463,10 +3463,10 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3463
3463
|
for (let h = 0; h < e.value.length; h++) {
|
|
3464
3464
|
const y = e.value[h];
|
|
3465
3465
|
if (y) {
|
|
3466
|
-
const
|
|
3467
|
-
|
|
3468
|
-
d[u] === void 0 && (d[u] = []), d[u][
|
|
3469
|
-
}), f = Math.max(f,
|
|
3466
|
+
const S = o(y, p);
|
|
3467
|
+
S.entries.forEach(({ field: u, index: b, el: E }) => {
|
|
3468
|
+
d[u] === void 0 && (d[u] = []), d[u][b] = E;
|
|
3469
|
+
}), f = Math.max(f, S.maxWidth), p += S.count;
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
3472
|
s.value = d, t.value = f, l = !1;
|
|
@@ -3791,60 +3791,60 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
},
|
|
3793
3793
|
emits: [
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3794
|
+
M.COLUMNS,
|
|
3795
|
+
M.COLUMN_RESIZE,
|
|
3796
|
+
M.ITEMS_PAGE,
|
|
3797
|
+
M.FILTER_SEARCH_INPUT,
|
|
3798
|
+
M.FILTER_SEARCH_CLEAR,
|
|
3799
|
+
M.NAVIGATE,
|
|
3800
|
+
M.NESTED_CONTENT_TOGGLED,
|
|
3801
|
+
M.UPDATE_COLUMNS,
|
|
3802
|
+
M.UPDATE_CONDENSED,
|
|
3803
|
+
M.UPDATE_FILTER_VALUES,
|
|
3804
|
+
M.UPDATE_FILTER_VALUES_OBJECT,
|
|
3805
|
+
M.UPDATE_FILTERS,
|
|
3806
|
+
M.UPDATE_FILTER_SEARCH_TERM,
|
|
3807
|
+
M.UPDATE_SHOW_MORE,
|
|
3808
|
+
M.UPDATE_PAGINATION,
|
|
3809
|
+
M.UPDATE_SELECTION,
|
|
3810
|
+
M.UPDATE_SORT_BY,
|
|
3811
|
+
M.ROW_CLICK,
|
|
3812
|
+
M.SELECT,
|
|
3813
|
+
M.SELECT_ALL_ACROSS_PAGES,
|
|
3814
|
+
M.SELECT_ALL_CURRENT_RESULTS,
|
|
3815
|
+
M.DESELECT_ALL_CURRENT_RESULTS,
|
|
3816
|
+
M.SORT,
|
|
3817
|
+
M.CELL_FOCUS
|
|
3818
3818
|
],
|
|
3819
3819
|
setup(s, { expose: t, emit: n }) {
|
|
3820
|
-
const e = s, o = He(), l = je(o), a =
|
|
3820
|
+
const e = s, o = He(), l = je(o), a = w(null), r = w(), d = w({}), f = w(Fe("data-grid")), p = w(null), h = w(null), y = w(null), S = w(null), u = w(null), b = w(null), {
|
|
3821
3821
|
allowColumnDragAndDrop: E,
|
|
3822
3822
|
columns: N,
|
|
3823
|
-
columnPanel:
|
|
3823
|
+
columnPanel: R,
|
|
3824
3824
|
data: m,
|
|
3825
3825
|
lazyLoadType: O,
|
|
3826
|
-
loading:
|
|
3826
|
+
loading: I,
|
|
3827
3827
|
hasNestedContent: _,
|
|
3828
3828
|
hasNestedRows: i,
|
|
3829
3829
|
selectable: g,
|
|
3830
3830
|
selection: A,
|
|
3831
|
-
selectableAcrossPages:
|
|
3831
|
+
selectableAcrossPages: D,
|
|
3832
3832
|
stickyPagination: P,
|
|
3833
3833
|
outline: x,
|
|
3834
3834
|
pagination: U,
|
|
3835
3835
|
zebraRows: q
|
|
3836
|
-
} = Ve(e), G =
|
|
3836
|
+
} = Ve(e), G = w(-1), { t: V } = _e(), W = C(() => K.value.filter((F) => F.frozen).length), B = 550, ne = w(), { width: me } = Qn(ne), Ce = C(() => me.value <= B);
|
|
3837
3837
|
De(Ie, Ce);
|
|
3838
3838
|
const { isTouchDevice: ve } = qn();
|
|
3839
3839
|
De(ze, ve);
|
|
3840
3840
|
const de = ge(
|
|
3841
3841
|
Jn,
|
|
3842
3842
|
() => ({
|
|
3843
|
-
additionalContentSlotRef:
|
|
3843
|
+
additionalContentSlotRef: w(null),
|
|
3844
3844
|
isDataGridTemplate: !1,
|
|
3845
|
-
stickyAditionalContent:
|
|
3846
|
-
stickyTabs:
|
|
3847
|
-
tabsRef:
|
|
3845
|
+
stickyAditionalContent: w(!1),
|
|
3846
|
+
stickyTabs: w(!1),
|
|
3847
|
+
tabsRef: w(null)
|
|
3848
3848
|
})
|
|
3849
3849
|
), { additionalContentSlotRef: L, isDataGridTemplate: $, stickyTabs: H, tabsRef: c, stickyAdditionalContent: z } = de(), {
|
|
3850
3850
|
columnDefs: K,
|
|
@@ -3856,9 +3856,9 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3856
3856
|
totalWidthOfAllColumns: Se,
|
|
3857
3857
|
rowActionsMaxWidth: Re
|
|
3858
3858
|
} = Ts(N, m, a, d, p, {
|
|
3859
|
-
hasColumnPanel:
|
|
3859
|
+
hasColumnPanel: R,
|
|
3860
3860
|
hasSelectableColumn: g,
|
|
3861
|
-
hasSelectableAcrossPages:
|
|
3861
|
+
hasSelectableAcrossPages: D,
|
|
3862
3862
|
hasNestedContent: _,
|
|
3863
3863
|
hasNestedRows: i,
|
|
3864
3864
|
allowColumnDragAndDrop: E,
|
|
@@ -3867,8 +3867,8 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3867
3867
|
p,
|
|
3868
3868
|
Re,
|
|
3869
3869
|
v
|
|
3870
|
-
), k = (
|
|
3871
|
-
(
|
|
3870
|
+
), k = (F, ...Y) => {
|
|
3871
|
+
(F === M.COLUMNS || F === M.UPDATE_COLUMNS) && ([we.value] = Y), n(F, ...Y);
|
|
3872
3872
|
}, ae = _t(
|
|
3873
3873
|
c,
|
|
3874
3874
|
H,
|
|
@@ -3892,10 +3892,10 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3892
3892
|
g,
|
|
3893
3893
|
x,
|
|
3894
3894
|
be
|
|
3895
|
-
), { draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn } =
|
|
3895
|
+
), { draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn } = Fs(Be, E, k), Je = C(
|
|
3896
3896
|
() => {
|
|
3897
|
-
var
|
|
3898
|
-
return ((
|
|
3897
|
+
var F;
|
|
3898
|
+
return ((F = e.data) == null ? void 0 : F.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
|
|
3899
3899
|
}
|
|
3900
3900
|
), {
|
|
3901
3901
|
onAllRowSelect: sn,
|
|
@@ -3914,9 +3914,9 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3914
3914
|
Je,
|
|
3915
3915
|
U
|
|
3916
3916
|
), dn = C(() => {
|
|
3917
|
-
var
|
|
3917
|
+
var F, Y, Ae, Ee;
|
|
3918
3918
|
return {
|
|
3919
|
-
filtered: ((
|
|
3919
|
+
filtered: ((F = y.value) == null ? void 0 : F.isClearAllVisible) || ((Y = y.value) == null ? void 0 : Y.isResetAllVisible) || !!e.filterSearchTerm,
|
|
3920
3920
|
allRowsVisible: ((Ae = U.value) == null ? void 0 : Ae.size) >= ((Ee = U.value) == null ? void 0 : Ee.totalCount)
|
|
3921
3921
|
};
|
|
3922
3922
|
}), { navigationInput: un } = Ns(
|
|
@@ -3925,12 +3925,12 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3925
3925
|
Be,
|
|
3926
3926
|
g,
|
|
3927
3927
|
v,
|
|
3928
|
-
|
|
3929
|
-
), { isLazyLoad: Ne, isInfiniteScroll: fn, verticalScrollPosition: et, emitLazyLoadEvent: gn } =
|
|
3928
|
+
R
|
|
3929
|
+
), { isLazyLoad: Ne, isInfiniteScroll: fn, verticalScrollPosition: et, emitLazyLoadEvent: gn } = Ms(
|
|
3930
3930
|
O,
|
|
3931
3931
|
u,
|
|
3932
3932
|
a,
|
|
3933
|
-
|
|
3933
|
+
I,
|
|
3934
3934
|
k
|
|
3935
3935
|
), {
|
|
3936
3936
|
updateScrollPosition: mn,
|
|
@@ -3943,8 +3943,8 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3943
3943
|
a,
|
|
3944
3944
|
r,
|
|
3945
3945
|
et,
|
|
3946
|
-
|
|
3947
|
-
|
|
3946
|
+
b,
|
|
3947
|
+
S,
|
|
3948
3948
|
Se,
|
|
3949
3949
|
{
|
|
3950
3950
|
isLazyLoad: Ne,
|
|
@@ -3955,10 +3955,10 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3955
3955
|
), nt = () => {
|
|
3956
3956
|
y.value.isClearAllVisible ? y.value.clearAllFilters() : y.value.isResetAllVisible && y.value.resetAllFilters();
|
|
3957
3957
|
}, hn = C(() => {
|
|
3958
|
-
var
|
|
3958
|
+
var F, Y;
|
|
3959
3959
|
return {
|
|
3960
3960
|
...e.emptyState,
|
|
3961
|
-
variant: ((
|
|
3961
|
+
variant: ((F = e.emptyState) == null ? void 0 : F.variant) === "embedded" || ((Y = e.emptyState) == null ? void 0 : Y.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
3962
3962
|
};
|
|
3963
3963
|
}), pn = C(() => ({
|
|
3964
3964
|
[`b-data-grid--${fe.OUTLINE}`]: e.outline,
|
|
@@ -3972,49 +3972,49 @@ const qa = Hl.exports, Zl = (s, t, n) => {
|
|
|
3972
3972
|
"b-data-grid--lazy-load": Ne.value
|
|
3973
3973
|
})), bn = C(() => ({
|
|
3974
3974
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
3975
|
-
})), wn = C(() => Ue.value.findIndex((
|
|
3975
|
+
})), wn = C(() => Ue.value.findIndex((F) => F.columnSet.length)), Sn = C(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && W.value === 1) || ke.value), Rn = C(() => ({
|
|
3976
3976
|
"b-data-grid__filters--sticky": !!e.stickyFilters || $
|
|
3977
3977
|
})), An = C(() => {
|
|
3978
|
-
var
|
|
3978
|
+
var F, Y, Ae, Ee, at, it;
|
|
3979
3979
|
return {
|
|
3980
|
-
"b-data-grid__pagination--padding-left-unset": ((Ae = (Y = (
|
|
3980
|
+
"b-data-grid__pagination--padding-left-unset": ((Ae = (Y = (F = e.columns) == null ? void 0 : F[0]) == null ? void 0 : Y.padding) == null ? void 0 : Ae.left) === !1,
|
|
3981
3981
|
"b-data-grid__pagination--padding-right-unset": ((it = (at = (Ee = e.columns) == null ? void 0 : Ee[e.columns.length - 1]) == null ? void 0 : at.padding) == null ? void 0 : it.right) === !1,
|
|
3982
3982
|
"b-data-grid__pagination--sticky": !!e.stickyPagination || $
|
|
3983
3983
|
};
|
|
3984
|
-
}), En = (
|
|
3985
|
-
const Y =
|
|
3986
|
-
|
|
3984
|
+
}), En = (F) => {
|
|
3985
|
+
const Y = F;
|
|
3986
|
+
F !== null && (Y != null && Y.columnHeaderRefs) && Object.entries(Y == null ? void 0 : Y.columnHeaderRefs).forEach(([Ae, Ee]) => {
|
|
3987
3987
|
d.value[Ae] = Ee;
|
|
3988
3988
|
});
|
|
3989
|
-
}, yn = (
|
|
3990
|
-
e.allowRowClicks && k(
|
|
3991
|
-
}, Ln = (
|
|
3992
|
-
k(
|
|
3993
|
-
}, Tn = (
|
|
3994
|
-
G.value =
|
|
3989
|
+
}, yn = (F, Y) => {
|
|
3990
|
+
e.allowRowClicks && k(M.ROW_CLICK, F, Y);
|
|
3991
|
+
}, Ln = (F) => {
|
|
3992
|
+
k(M.NESTED_CONTENT_TOGGLED, F), ee(() => Z());
|
|
3993
|
+
}, Tn = (F) => {
|
|
3994
|
+
G.value = F;
|
|
3995
3995
|
}, On = C(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), st = C(() => {
|
|
3996
|
-
var
|
|
3997
|
-
return ((
|
|
3998
|
-
}), In = C(() => e.bulkActions && st.value > 0), Nn = (
|
|
3999
|
-
k(
|
|
4000
|
-
},
|
|
4001
|
-
k(
|
|
3996
|
+
var F;
|
|
3997
|
+
return ((F = Qe.value) == null ? void 0 : F.length) ?? 0;
|
|
3998
|
+
}), In = C(() => e.bulkActions && st.value > 0), Nn = (F) => k(M.COLUMN_RESIZE, F), Dn = (F) => {
|
|
3999
|
+
k(M.UPDATE_SORT_BY, F), k(M.SORT, F);
|
|
4000
|
+
}, Mn = (F, Y) => {
|
|
4001
|
+
k(M.NAVIGATE, F), k(M.UPDATE_PAGINATION, {
|
|
4002
4002
|
...e.pagination,
|
|
4003
4003
|
size: Y,
|
|
4004
|
-
page:
|
|
4004
|
+
page: F
|
|
4005
4005
|
});
|
|
4006
|
-
},
|
|
4007
|
-
k(
|
|
4006
|
+
}, Fn = (F) => {
|
|
4007
|
+
k(M.ITEMS_PAGE, F);
|
|
4008
4008
|
}, xn = () => {
|
|
4009
|
-
k(
|
|
4010
|
-
}, Pn = (
|
|
4011
|
-
k(
|
|
4012
|
-
}, ot = C(() => N.value.some((
|
|
4013
|
-
ot.value ||
|
|
4009
|
+
k(M.FILTER_SEARCH_CLEAR);
|
|
4010
|
+
}, Pn = (F) => {
|
|
4011
|
+
k(M.UPDATE_FILTER_SEARCH_TERM, F), k(M.FILTER_SEARCH_INPUT, F);
|
|
4012
|
+
}, ot = C(() => N.value.some((F) => F.mandatory));
|
|
4013
|
+
ot.value || Mt(
|
|
4014
4014
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
4015
4015
|
);
|
|
4016
4016
|
const lt = ge(Xn, () => null);
|
|
4017
|
-
return lt(e.tabTitle), De($t, $e(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: nt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: r, columnHeaderRefs: d, dataGridUid: f, gridcellRefs: p, filtersRef: h, filterBarRef: y, paginationContainerRef:
|
|
4017
|
+
return lt(e.tabTitle), De($t, $e(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: nt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: r, columnHeaderRefs: d, dataGridUid: f, gridcellRefs: p, filtersRef: h, filterBarRef: y, paginationContainerRef: S, verticalScrollPositionRef: u, virtualHorizontalScrollbarRef: b, allowColumnDragAndDrop: E, columns: N, columnPanel: R, data: m, lazyLoadType: O, loading: I, hasNestedContent: _, hasNestedRows: i, selectable: g, selection: A, selectableAcrossPages: D, stickyPagination: P, outline: x, pagination: U, zebraRows: q, hoveredRowIndex: G, t: V, frozenColumnsLength: W, MOBILE_BREAKPOINT: B, dataGridRef: ne, width: me, isSmallContainer: Ce, isTouchDevice: ve, registerDatagridInDataGridTemplate: de, additionalContentSlotRef: L, isDataGridTemplate: $, stickyTabs: H, tabsRef: c, stickyAdditionalContent: z, columnDefs: K, onColumnWidthOverride: te, gridRowWidthStyle: ie, isMeasuringColumnWidths: Te, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: be, localColumnsState: we, totalWidthOfAllColumns: Se, rowActionsMaxWidth: Re, hasRowActions: v, registerRowCellRefs: T, rebuildGridcellRefs: Z, definedEmitsFunction: n, emit: k, stickyFiltersHeight: ae, computedStickyFiltersTopPosition: he, columnHeadersHeight: pe, computedColumnHeadersTopPosition: Ht, sortedColumns: Be, columnSets: Ue, isOnlyOneVisibleColumn: Zt, internalZebraRows: Xe, onConfigSettingsColumnsUpdate: jt, onConfigSettingsColumnUpdate: qt, onConfigSettingsCondensedUpdate: Kt, onConfigSettingsZebraRowsUpdate: Yt, hoveredOverColumn: Xt, hoveredOverColumnState: Jt, draggingColumns: Qt, draggingEventsForColumns: en, draggingEventsForRowCell: tn, onMoveColumnByOffset: nn, selectableAcrossPagesComputed: Je, onAllRowSelect: sn, onRowSelect: on, onNestedRowSelect: ln, onDeselectAll: an, allItemsSelectedState: rn, selectedItems: Qe, selectionState: cn, visibleRowsState: dn, navigationInput: un, isLazyLoad: Ne, isInfiniteScroll: fn, verticalScrollPosition: et, emitLazyLoadEvent: gn, updateScrollPosition: mn, updateScrollPositionOnFrozenColumnsNavigation: _n, syncVirtualScrollerWithBody: Cn, hasLeftOverflow: ke, hasRightOverflow: tt, horizontalScrollbarConditionalStyles: vn, onEmptyStateClearResetButtonClick: nt, limitedEmptyStateProps: hn, conditionalGridClasses: pn, conditionalGridBodyClasses: bn, computedColumnPanelAlignment: wn, showFrozenColumnsSeparator: Sn, conditionalFilterClasses: Rn, conditionalPaginationClasses: An, registerColumnHeaderRefs: En, onRowClick: yn, onNestedContentToggled: Ln, onCellHover: Tn, ariaGridRole: On, itemsSelectedCounter: st, showActionBar: In, onColumnResized: Nn, onSort: Dn, onPaginationNavigate: Mn, onItemsPerPageChange: Fn, onSearchTermCleared: xn, onSearchTermInput: Pn, hasMandatoryColumn: ot, setTitle: lt, BentoActionBar: Zn, BentoPagination: jn, BentoLoadingIndicator: Ze, BentoTypography: Le, BentoDataGridConfigSettings: Mo, DataGridColumns: Co, DataGridLazyLoad: Uo, DataGridRow: Vt, handleClipboard: Bs, BentoDatagridEvent: M, BentoFilterBar: Kn, BentoEmptyState: Yn };
|
|
4018
4018
|
}
|
|
4019
4019
|
});
|
|
4020
4020
|
var Kl = function() {
|
|
@@ -4022,7 +4022,7 @@ var Kl = function() {
|
|
|
4022
4022
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
4023
4023
|
return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "data-testid": "data-grid", "aria-live": "polite", "aria-busy": e.loading }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition }, attrs: { "aria-controls": e.dataGridUid, "aria-label": e.t("filterBar"), role: "region" } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__wrapper", style: { top: e.computedColumnHeadersTopPosition }, attrs: { id: e.dataGridUid, role: e.ariaGridRole, "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": t.emptyState ? e.t("noResults") : null } }, [n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [e.columnPanel ? n("div", { attrs: { role: "row" } }, [n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { role: "gridcell", columns: e.localColumnsState, condensed: t.condensed, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } })], 1) : t._e(), n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, d) {
|
|
4024
4024
|
var f;
|
|
4025
|
-
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (p) => e.registerColumnHeaderRefs(p), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": r, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": d === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((f = e.data) == null ? void 0 : f.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "visible-rows-state": e.visibleRowsState, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(p) {
|
|
4025
|
+
return [l != null && l.length || !r && e.rowActionsMaxWidth ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (p) => e.registerColumnHeaderRefs(p), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": r, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": d === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((f = e.data) == null ? void 0 : f.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "visible-rows-state": e.visibleRowsState, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(p) {
|
|
4026
4026
|
e.hoveredOverColumn = p;
|
|
4027
4027
|
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(p) {
|
|
4028
4028
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
@@ -4053,7 +4053,7 @@ var Kl = function() {
|
|
|
4053
4053
|
Yl,
|
|
4054
4054
|
!1,
|
|
4055
4055
|
null,
|
|
4056
|
-
"
|
|
4056
|
+
"60f96cde"
|
|
4057
4057
|
);
|
|
4058
4058
|
const Ka = Xl.exports;
|
|
4059
4059
|
export {
|
|
@@ -4063,9 +4063,9 @@ export {
|
|
|
4063
4063
|
ja as c,
|
|
4064
4064
|
Ka as d,
|
|
4065
4065
|
qa as e,
|
|
4066
|
-
|
|
4067
|
-
|
|
4066
|
+
Me as f,
|
|
4067
|
+
M as g,
|
|
4068
4068
|
ye as h,
|
|
4069
4069
|
fe as i
|
|
4070
4070
|
};
|
|
4071
|
-
//# sourceMappingURL=data-grid.
|
|
4071
|
+
//# sourceMappingURL=data-grid.hMM9F36T.js.map
|