@adyen/bento-vue2 1.102.0 → 1.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +20 -3
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-button.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/table-of-contents.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.C0va5Mbv.js → accordion-item.CrVVFIHa.js} +16 -49
- package/dist/chunks/{accordion-item.C0va5Mbv.js.map → accordion-item.CrVVFIHa.js.map} +1 -1
- package/dist/chunks/{action-bar.-kzjjAuX.js → action-bar.BC1fWyHX.js} +18 -150
- package/dist/chunks/{action-bar.-kzjjAuX.js.map → action-bar.BC1fWyHX.js.map} +1 -1
- package/dist/chunks/{ai-button.ChLXOu7p.js → ai-button.CP6Bu7PB.js} +3 -3
- package/dist/chunks/{ai-button.ChLXOu7p.js.map → ai-button.CP6Bu7PB.js.map} +1 -1
- package/dist/chunks/{ai-tag.DhBjifex.js → ai-tag.wYWc7yOx.js} +16 -49
- package/dist/chunks/{ai-tag.DhBjifex.js.map → ai-tag.wYWc7yOx.js.map} +1 -1
- package/dist/chunks/{alert.CDP-LTh5.js → alert.Dj57zB88.js} +15 -81
- package/dist/chunks/{alert.CDP-LTh5.js.map → alert.Dj57zB88.js.map} +1 -1
- package/dist/chunks/anchor-scroller.Bhgy748g.js +120 -0
- package/dist/chunks/anchor-scroller.Bhgy748g.js.map +1 -0
- package/dist/chunks/{avatar.rwWPYJnt.js → avatar.D__jLgjI.js} +2 -2
- package/dist/chunks/{avatar.rwWPYJnt.js.map → avatar.D__jLgjI.js.map} +1 -1
- package/dist/chunks/{base-button.BPRPrO0p.js → base-button.D5C9VIYP.js} +20 -23
- package/dist/chunks/{base-button.BPRPrO0p.js.map → base-button.D5C9VIYP.js.map} +1 -1
- package/dist/chunks/{base-modal.BagJ8weI.js → base-modal.DlD_Lj4Y.js} +100 -141
- package/dist/chunks/{base-modal.BagJ8weI.js.map → base-modal.DlD_Lj4Y.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.CTgggEw2.js +77 -0
- package/dist/chunks/{button-actions-with-menu.DNYoFmV4.js.map → button-actions-with-menu.CTgggEw2.js.map} +1 -1
- package/dist/chunks/{button-actions.Dpbx0xf3.js → button-actions.CxX7lK7z.js} +362 -442
- package/dist/chunks/{button-actions.Dpbx0xf3.js.map → button-actions.CxX7lK7z.js.map} +1 -1
- package/dist/chunks/{button.CKS_V3p5.js → button.C4kKejsg.js} +34 -37
- package/dist/chunks/{button.CKS_V3p5.js.map → button.C4kKejsg.js.map} +1 -1
- package/dist/chunks/calendar.BoFWdxN7.js +1143 -0
- package/dist/chunks/{calendar.CvHJ3Geq.js.map → calendar.BoFWdxN7.js.map} +1 -1
- package/dist/chunks/{card.DqMECGcj.js → card.B70qRHOi.js} +34 -70
- package/dist/chunks/{card.DqMECGcj.js.map → card.B70qRHOi.js.map} +1 -1
- package/dist/chunks/{checkbox-group.YnXz1Hl2.js → checkbox-group.D1zzKsdi.js} +6 -6
- package/dist/chunks/{checkbox-group.YnXz1Hl2.js.map → checkbox-group.D1zzKsdi.js.map} +1 -1
- package/dist/chunks/{checkbox-input.08E9BNeF.js → checkbox-input.kfxcyjfd.js} +28 -31
- package/dist/chunks/{checkbox-input.08E9BNeF.js.map → checkbox-input.kfxcyjfd.js.map} +1 -1
- package/dist/chunks/{checkbox.BUc2332d.js → checkbox.Ca0mu2lE.js} +58 -91
- package/dist/chunks/{checkbox.BUc2332d.js.map → checkbox.Ca0mu2lE.js.map} +1 -1
- package/dist/chunks/{chip.DHmRHsL2.js → chip.wgEnbEPw.js} +16 -38
- package/dist/chunks/{chip.DHmRHsL2.js.map → chip.wgEnbEPw.js.map} +1 -1
- package/dist/chunks/click-outside.B0whuTUU.js +20 -0
- package/dist/chunks/{click-outside.BG01Sm0A.js.map → click-outside.B0whuTUU.js.map} +1 -1
- package/dist/chunks/{code-snippet.Cha3wHUL.js → code-snippet.BglbQWRB.js} +19 -74
- package/dist/chunks/{code-snippet.Cha3wHUL.js.map → code-snippet.BglbQWRB.js.map} +1 -1
- package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
- package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
- package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
- package/dist/chunks/{constructNow.CK0ryPil.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
- package/dist/chunks/{controls-group.BomXFNvi.js → controls-group.DPLAJjbv.js} +3 -3
- package/dist/chunks/{controls-group.BomXFNvi.js.map → controls-group.DPLAJjbv.js.map} +1 -1
- package/dist/chunks/{copy.BlyhTDSU.js → copy.CsKQJlen.js} +16 -60
- package/dist/chunks/{copy.BlyhTDSU.js.map → copy.CsKQJlen.js.map} +1 -1
- package/dist/chunks/{country.DySY9sbA.js → country.D8ncVjcm.js} +5 -5
- package/dist/chunks/{country.DySY9sbA.js.map → country.D8ncVjcm.js.map} +1 -1
- package/dist/chunks/country.types.BUW49nQx.js +27 -0
- package/dist/chunks/country.types.BUW49nQx.js.map +1 -0
- package/dist/chunks/currency.POwX-Trj.js +124 -0
- package/dist/chunks/{currency.Dvy9Qjjf.js.map → currency.POwX-Trj.js.map} +1 -1
- package/dist/chunks/dashboard-section.Bmu65OHg.js +98 -0
- package/dist/chunks/{dashboard-section.D2yqhERq.js.map → dashboard-section.Bmu65OHg.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ByPcIHNe.js → dashed-underline.CbzCYKrk.js} +11 -12
- package/dist/chunks/{dashed-underline.ByPcIHNe.js.map → dashed-underline.CbzCYKrk.js.map} +1 -1
- package/dist/chunks/data-grid-template.BvBHJ0sH.js +102 -0
- package/dist/chunks/{data-grid-template.Ifn423Ot.js.map → data-grid-template.BvBHJ0sH.js.map} +1 -1
- package/dist/chunks/data-grid.DPh8BSnM.js +3266 -0
- package/dist/chunks/{data-grid.BDXQ_kKQ.js.map → data-grid.DPh8BSnM.js.map} +1 -1
- package/dist/chunks/date-picker.DutUBQbH.js +183 -0
- package/dist/chunks/{date-picker.CXZfCxwP.js.map → date-picker.DutUBQbH.js.map} +1 -1
- package/dist/chunks/date-range-picker.5bvgs49h.js +924 -0
- package/dist/chunks/{date-range-picker.BzVQsYk4.js.map → date-range-picker.5bvgs49h.js.map} +1 -1
- package/dist/chunks/date-time-picker.DUWWGlOX.js +127 -0
- package/dist/chunks/{date-time-picker.DaLATfJp.js.map → date-time-picker.DUWWGlOX.js.map} +1 -1
- package/dist/chunks/{date.C1HnIyOv.js → date.CPo8t1n9.js} +25 -25
- package/dist/chunks/{date.C1HnIyOv.js.map → date.CPo8t1n9.js.map} +1 -1
- package/dist/chunks/{de.pvjpUJ1o.js → de.ctR_lBqr.js} +18 -18
- package/dist/chunks/{de.pvjpUJ1o.js.map → de.ctR_lBqr.js.map} +1 -1
- package/dist/chunks/{dialog-page.B_LwIWgK.js → dialog-page.CPorblJc.js} +16 -38
- package/dist/chunks/{dialog-page.B_LwIWgK.js.map → dialog-page.CPorblJc.js.map} +1 -1
- package/dist/chunks/differenceInMonths.yz4Dfe-b.js +44 -0
- package/dist/chunks/{differenceInMonths.CpwVtHZX.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
- package/dist/chunks/{directive.BBWhsNtO.js → directive.D1-d-C2K.js} +2 -2
- package/dist/chunks/{directive.BBWhsNtO.js.map → directive.D1-d-C2K.js.map} +1 -1
- package/dist/chunks/{draggable-handle.kBP4prVO.js → draggable-handle.g2BFN3G1.js} +18 -114
- package/dist/chunks/{draggable-handle.kBP4prVO.js.map → draggable-handle.g2BFN3G1.js.map} +1 -1
- package/dist/chunks/draggable.iIsQLiOa.js +168 -0
- package/dist/chunks/{draggable.rTa1jcHI.js.map → draggable.iIsQLiOa.js.map} +1 -1
- package/dist/chunks/{drawer.DVJxDGw3.js → drawer.CnxX1zZ6.js} +14 -36
- package/dist/chunks/{drawer.DVJxDGw3.js.map → drawer.CnxX1zZ6.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CaLA2NLd.js → dropdown-tag.BFnfCah8.js} +77 -81
- package/dist/chunks/{dropdown-tag.CaLA2NLd.js.map → dropdown-tag.BFnfCah8.js.map} +1 -1
- package/dist/chunks/{dropdown.DIqgVVXB.js → dropdown.Ce2P9MZ-.js} +1131 -1466
- package/dist/chunks/{dropdown.DIqgVVXB.js.map → dropdown.Ce2P9MZ-.js.map} +1 -1
- package/dist/chunks/empty-state.fziM-yAC.js +102 -0
- package/dist/chunks/empty-state.fziM-yAC.js.map +1 -0
- package/dist/chunks/{en-GB.-Q7Oq-nY.js → en-GB.BsQNm5GT.js} +2 -2
- package/dist/chunks/{en-GB.-Q7Oq-nY.js.map → en-GB.BsQNm5GT.js.map} +1 -1
- package/dist/chunks/{en-US.BK5uiAND.js → en-US.BR6y7foR.js} +30 -30
- package/dist/chunks/{en-US.BK5uiAND.js.map → en-US.BR6y7foR.js.map} +1 -1
- package/dist/chunks/{error-message.Hqp_VvD3.js → error-message.BEHBfjmn.js} +14 -36
- package/dist/chunks/{error-message.Hqp_VvD3.js.map → error-message.BEHBfjmn.js.map} +1 -1
- package/dist/chunks/{es.2H4LvTyV.js → es.DxqH-QhP.js} +14 -14
- package/dist/chunks/{es.2H4LvTyV.js.map → es.DxqH-QhP.js.map} +1 -1
- package/dist/chunks/{field-label.DjJ7wdFi.js → field-label.CgdTst2l.js} +15 -37
- package/dist/chunks/{field-label.DjJ7wdFi.js.map → field-label.CgdTst2l.js.map} +1 -1
- package/dist/chunks/{file-uploader.2rIfQ2jb.js → file-uploader.BG89SLkG.js} +317 -630
- package/dist/chunks/{file-uploader.2rIfQ2jb.js.map → file-uploader.BG89SLkG.js.map} +1 -1
- package/dist/chunks/filter-bar.BMO8wTzb.js +3087 -0
- package/dist/chunks/{filter-bar.qlViDZPY.js.map → filter-bar.BMO8wTzb.js.map} +1 -1
- package/dist/chunks/fixed-scroller.oObE3f7m.js +117 -0
- package/dist/chunks/{fixed-scroller.04EUUgD_.js.map → fixed-scroller.oObE3f7m.js.map} +1 -1
- package/dist/chunks/{focus-trap.oRKjDFzf.js → focus-trap.l-wwtCHi.js} +69 -85
- package/dist/chunks/{focus-trap.oRKjDFzf.js.map → focus-trap.l-wwtCHi.js.map} +1 -1
- package/dist/chunks/{footer-actions.DXyJtVip.js → footer-actions.Dn9KYoqB.js} +4 -4
- package/dist/chunks/{footer-actions.DXyJtVip.js.map → footer-actions.Dn9KYoqB.js.map} +1 -1
- package/dist/chunks/{form-layout-group.DnjoLZZM.js → form-layout-group.C_0b8u-g.js} +2 -2
- package/dist/chunks/{form-layout-group.DnjoLZZM.js.map → form-layout-group.C_0b8u-g.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Bt5bP9r3.js → form-layout-title.YhZCVtoc.js} +15 -37
- package/dist/chunks/{form-layout-title.Bt5bP9r3.js.map → form-layout-title.YhZCVtoc.js.map} +1 -1
- package/dist/chunks/{fr.Cu0IIfBP.js → fr.DJtn8ron.js} +16 -16
- package/dist/chunks/{fr.Cu0IIfBP.js.map → fr.DJtn8ron.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
- package/dist/chunks/get-slot-text.DM_NdrUC.js +6 -0
- package/dist/chunks/{get-slot-text.Bjb9dTSV.js.map → get-slot-text.DM_NdrUC.js.map} +1 -1
- package/dist/chunks/{grid-layout.1aIiz2N_.js → grid-layout.BeCrjPgT.js} +16 -17
- package/dist/chunks/{grid-layout.1aIiz2N_.js.map → grid-layout.BeCrjPgT.js.map} +1 -1
- package/dist/chunks/header-meta.mDdMmFUA.js +206 -0
- package/dist/chunks/{header-meta.CCQVPDU8.js.map → header-meta.mDdMmFUA.js.map} +1 -1
- package/dist/chunks/{header-with-views.CEU6WrV9.js → header-with-views.Dp6SyiPu.js} +791 -1270
- package/dist/chunks/{header-with-views.CEU6WrV9.js.map → header-with-views.Dp6SyiPu.js.map} +1 -1
- package/dist/chunks/{header.BoNOTATn.js → header.DUAxdw_d.js} +4 -4
- package/dist/chunks/{header.BoNOTATn.js.map → header.DUAxdw_d.js.map} +1 -1
- package/dist/chunks/{index.C7m7gI5w.js → index.CL3TXc0a.js} +154 -160
- package/dist/chunks/{index.C7m7gI5w.js.map → index.CL3TXc0a.js.map} +1 -1
- package/dist/chunks/{index.B6WW_F-J.js → index.CPOlyau9.js} +5 -5
- package/dist/chunks/index.CPOlyau9.js.map +1 -0
- package/dist/chunks/{info-icon.BnLYUTzI.js → info-icon.BRnbXunj.js} +3 -3
- package/dist/chunks/{info-icon.BnLYUTzI.js.map → info-icon.BRnbXunj.js.map} +1 -1
- package/dist/chunks/input-field-password.C9_o6Kg2.js +230 -0
- package/dist/chunks/input-field-password.C9_o6Kg2.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CPjH0EVF.js → input-field-phone-number.zRjd8HPi.js} +724 -756
- package/dist/chunks/{input-field-phone-number.CPjH0EVF.js.map → input-field-phone-number.zRjd8HPi.js.map} +1 -1
- package/dist/chunks/{input-field.BEV5lhwO.js → input-field.BTt1ORWU.js} +22 -58
- package/dist/chunks/{input-field.BEV5lhwO.js.map → input-field.BTt1ORWU.js.map} +1 -1
- package/dist/chunks/{input-time.En4O4DRD.js → input-time.BfJIDgaH.js} +15 -48
- package/dist/chunks/{input-time.En4O4DRD.js.map → input-time.BfJIDgaH.js.map} +1 -1
- package/dist/chunks/{inspector-page.OKPf0I4k.js → inspector-page.i8bVjo9U.js} +4 -4
- package/dist/chunks/{inspector-page.OKPf0I4k.js.map → inspector-page.i8bVjo9U.js.map} +1 -1
- package/dist/chunks/{inspector.DoQPHzCc.js → inspector.Aet0jTC2.js} +39 -106
- package/dist/chunks/{inspector.DoQPHzCc.js.map → inspector.Aet0jTC2.js.map} +1 -1
- package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
- package/dist/chunks/{isSameWeek.TrpUOIn5.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
- package/dist/chunks/{it.B65snrJA.js → it.keS7oN5l.js} +8 -8
- package/dist/chunks/{it.B65snrJA.js.map → it.keS7oN5l.js.map} +1 -1
- package/dist/chunks/{ja.xGVfFSzL.js → ja.cLwacUE6.js} +27 -27
- package/dist/chunks/{ja.xGVfFSzL.js.map → ja.cLwacUE6.js.map} +1 -1
- package/dist/chunks/{layout-row.CPFK9Bg7.js → layout-row.HslYnPgn.js} +34 -35
- package/dist/chunks/{layout-row.CPFK9Bg7.js.map → layout-row.HslYnPgn.js.map} +1 -1
- package/dist/chunks/{link.Cejg8jB6.js → link.CscSbaXa.js} +15 -37
- package/dist/chunks/{link.Cejg8jB6.js.map → link.CscSbaXa.js.map} +1 -1
- package/dist/chunks/list-item.Cngxa9qN.js +166 -0
- package/dist/chunks/{list-item.BiJMHR7b.js.map → list-item.Cngxa9qN.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DnvECZQC.js → listbox-option-tag.BaoiH-Ku.js} +3 -3
- package/dist/chunks/{listbox-option-tag.DnvECZQC.js.map → listbox-option-tag.BaoiH-Ku.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js → modal-fullscreen.Cg1Q6ERf.js} +64 -93
- package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js.map → modal-fullscreen.Cg1Q6ERf.js.map} +1 -1
- package/dist/chunks/{modal.CClQItuJ.js → modal.u-t1CvBr.js} +81 -105
- package/dist/chunks/{modal.CClQItuJ.js.map → modal.u-t1CvBr.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.p1-x06nS.js → navigation-menu-group.gNMP4tW4.js} +80 -129
- package/dist/chunks/{navigation-menu-group.p1-x06nS.js.map → navigation-menu-group.gNMP4tW4.js.map} +1 -1
- package/dist/chunks/{on-click-outside.Cy1eFULD.js → on-click-outside.BgIzQ2G1.js} +32 -33
- package/dist/chunks/{on-click-outside.Cy1eFULD.js.map → on-click-outside.BgIzQ2G1.js.map} +1 -1
- package/dist/chunks/{pagination.CZVdaeqE.js → pagination.D81XgMQ7.js} +73 -192
- package/dist/chunks/pagination.D81XgMQ7.js.map +1 -0
- package/dist/chunks/{payment-method.B3CkgsAY.js → payment-method.Clm5dEYh.js} +2 -2
- package/dist/chunks/{payment-method.B3CkgsAY.js.map → payment-method.Clm5dEYh.js.map} +1 -1
- package/dist/chunks/popover.types.H5Y0rC1r.js +6 -0
- package/dist/chunks/{popover.types.BfnJIpII.js.map → popover.types.H5Y0rC1r.js.map} +1 -1
- package/dist/chunks/{popper-container.Cb9wuFId.js → popper-container.D08eTt4B.js} +245 -252
- package/dist/chunks/{popper-container.Cb9wuFId.js.map → popper-container.D08eTt4B.js.map} +1 -1
- package/dist/chunks/{promo-banner.DZ0gerRx.js → promo-banner.BX47zMKh.js} +17 -39
- package/dist/chunks/{promo-banner.DZ0gerRx.js.map → promo-banner.BX47zMKh.js.map} +1 -1
- package/dist/chunks/{pt-BR.D9FuAQZm.js → pt-BR.ChPOra5s.js} +14 -14
- package/dist/chunks/{pt-BR.D9FuAQZm.js.map → pt-BR.ChPOra5s.js.map} +1 -1
- package/dist/chunks/{radio-group.DUW2dya4.js → radio-group.Dtx5hOkQ.js} +23 -23
- package/dist/chunks/{radio-group.DUW2dya4.js.map → radio-group.Dtx5hOkQ.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CuCPLzUh.js → rich-text-editor.CmVsFJjh.js} +1364 -1416
- package/dist/chunks/{rich-text-editor.CuCPLzUh.js.map → rich-text-editor.CmVsFJjh.js.map} +1 -1
- package/dist/chunks/scroll-to-section.DhW8SFy0.js +101 -0
- package/dist/chunks/scroll-to-section.DhW8SFy0.js.map +1 -0
- package/dist/chunks/{search-bar.8iDkgmjw.js → search-bar.CRfYCmkl.js} +15 -48
- package/dist/chunks/{search-bar.8iDkgmjw.js.map → search-bar.CRfYCmkl.js.map} +1 -1
- package/dist/chunks/secondary-nav.B1Tj7MAA.js +192 -0
- package/dist/chunks/{secondary-nav.CmvSHxvS.js.map → secondary-nav.B1Tj7MAA.js.map} +1 -1
- package/dist/chunks/{segmented-control.Bkp2Y95s.js → segmented-control.CBc-wx0m.js} +44 -48
- package/dist/chunks/{segmented-control.Bkp2Y95s.js.map → segmented-control.CBc-wx0m.js.map} +1 -1
- package/dist/chunks/{selection-card-group.EGigQJOW.js → selection-card-group.BaK3Rt4K.js} +91 -96
- package/dist/chunks/{selection-card-group.EGigQJOW.js.map → selection-card-group.BaK3Rt4K.js.map} +1 -1
- package/dist/chunks/set-time-in-date.BVfkl8K8.js +27 -0
- package/dist/chunks/{set-time-in-date.CU7HeZLY.js.map → set-time-in-date.BVfkl8K8.js.map} +1 -1
- package/dist/chunks/{sidepanel.yB7YuzVt.js → sidepanel.DeIREn9l.js} +55 -78
- package/dist/chunks/{sidepanel.yB7YuzVt.js.map → sidepanel.DeIREn9l.js.map} +1 -1
- package/dist/chunks/startOfWeek.muMEhS7U.js +9 -0
- package/dist/chunks/{startOfWeek.Br5KM4z_.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
- package/dist/chunks/{status.CKb07vxI.js → status.DJ1Dfh5s.js} +2 -2
- package/dist/chunks/{status.CKb07vxI.js.map → status.DJ1Dfh5s.js.map} +1 -1
- package/dist/chunks/step.DfI11Din.js +221 -0
- package/dist/chunks/{step.CIfxl8Wm.js.map → step.DfI11Din.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Cnv4Pw5n.js → structured-list-item._7YG2L3a.js} +18 -40
- package/dist/chunks/{structured-list-item.Cnv4Pw5n.js.map → structured-list-item._7YG2L3a.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BcIlkfVO.js → summary-grid.types.B_gUEQ0c.js} +45 -50
- package/dist/chunks/{summary-grid.types.BcIlkfVO.js.map → summary-grid.types.B_gUEQ0c.js.map} +1 -1
- package/dist/chunks/tab.DFk4K9cq.js +229 -0
- package/dist/chunks/{tab.N0xGWsfO.js.map → tab.DFk4K9cq.js.map} +1 -1
- package/dist/chunks/table-of-contents.CoEnQ9g7.js +104 -0
- package/dist/chunks/{table-of-contents.Cf-IrdZl.js.map → table-of-contents.CoEnQ9g7.js.map} +1 -1
- package/dist/chunks/{tag.BAyLm485.js → tag.BC7FFENr.js} +4 -4
- package/dist/chunks/{tag.BAyLm485.js.map → tag.BC7FFENr.js.map} +1 -1
- package/dist/chunks/textarea.Z-VYFZVq.js +176 -0
- package/dist/chunks/{textarea.BDRR1zE0.js.map → textarea.Z-VYFZVq.js.map} +1 -1
- package/dist/chunks/{timeline-item.QEEIwYMy.js → timeline-item.BGHi_lOY.js} +114 -193
- package/dist/chunks/{timeline-item.QEEIwYMy.js.map → timeline-item.BGHi_lOY.js.map} +1 -1
- package/dist/chunks/{toast.XPG0vaQB.js → toast.D-jat1Xw.js} +64 -86
- package/dist/chunks/{toast.XPG0vaQB.js.map → toast.D-jat1Xw.js.map} +1 -1
- package/dist/chunks/{toggle.Ca-MM3dt.js → toggle.BqHWIhqD.js} +4 -4
- package/dist/chunks/{toggle.Ca-MM3dt.js.map → toggle.BqHWIhqD.js.map} +1 -1
- package/dist/chunks/{tooltip.7ct8WxCl.js → tooltip.D_XsoD_u.js} +68 -70
- package/dist/chunks/{tooltip.7ct8WxCl.js.map → tooltip.D_XsoD_u.js.map} +1 -1
- package/dist/chunks/truncate.DmCXQmeb.js +8 -0
- package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
- package/dist/chunks/{tutorial.bROv3HSx.js → tutorial.BtxKW4ac.js} +80 -173
- package/dist/chunks/{tutorial.bROv3HSx.js.map → tutorial.BtxKW4ac.js.map} +1 -1
- package/dist/chunks/typography.D1OZJbEa.js +90 -0
- package/dist/chunks/typography.D1OZJbEa.js.map +1 -0
- package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js → use-bento-delayed-hover.D6QjSugc.js} +2 -2
- package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js.map → use-bento-delayed-hover.D6QjSugc.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js → use-bento-toast-controller.A5xraVqa.js} +14 -15
- package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js.map → use-bento-toast-controller.A5xraVqa.js.map} +1 -1
- package/dist/chunks/use-country-items.B1KhLbqM.js +30 -0
- package/dist/chunks/{use-country-items.CmCRY7QX.js.map → use-country-items.B1KhLbqM.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.Cv5YgCOo.js +291 -0
- package/dist/chunks/use-country-phon-code.Cv5YgCOo.js.map +1 -0
- package/dist/chunks/use-date-input-formatter.DXwvH7B0.js +1629 -0
- package/dist/chunks/{use-date-input-formatter.DfQk8_Dw.js.map → use-date-input-formatter.DXwvH7B0.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.Bdd9hQwq.js +34 -0
- package/dist/chunks/{use-expandable-content-height.2WJLCL-R.js.map → use-expandable-content-height.Bdd9hQwq.js.map} +1 -1
- package/dist/chunks/utils.DWmc2mUI.js +19 -0
- package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
- package/dist/chunks/{zh-CN.Be4pa3-g.js → zh-CN.ZG6obniO.js} +28 -28
- package/dist/chunks/{zh-CN.Be4pa3-g.js.map → zh-CN.ZG6obniO.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +1 -1
- package/dist/date.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +144 -149
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +2 -2
- package/dist/internal.js +14 -14
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.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/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/use-form-v4.js +331 -341
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +32 -2
- package/package.json +11 -11
- package/dist/chunks/anchor-scroller.DgC74yeM.js +0 -141
- package/dist/chunks/anchor-scroller.DgC74yeM.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.DNYoFmV4.js +0 -85
- package/dist/chunks/calendar.CvHJ3Geq.js +0 -1247
- package/dist/chunks/click-outside.BG01Sm0A.js +0 -23
- package/dist/chunks/constructNow.CK0ryPil.js +0 -8
- package/dist/chunks/country.types.8GCHsdGN.js +0 -2789
- package/dist/chunks/country.types.8GCHsdGN.js.map +0 -1
- package/dist/chunks/currency.Dvy9Qjjf.js +0 -126
- package/dist/chunks/dashboard-section.D2yqhERq.js +0 -102
- package/dist/chunks/data-grid-template.Ifn423Ot.js +0 -111
- package/dist/chunks/data-grid.BDXQ_kKQ.js +0 -4121
- package/dist/chunks/date-picker.CXZfCxwP.js +0 -252
- package/dist/chunks/date-range-picker.BzVQsYk4.js +0 -1295
- package/dist/chunks/date-time-picker.DaLATfJp.js +0 -202
- package/dist/chunks/differenceInMonths.CpwVtHZX.js +0 -44
- package/dist/chunks/draggable.rTa1jcHI.js +0 -196
- package/dist/chunks/empty-state.DSVU1vU8.js +0 -106
- package/dist/chunks/empty-state.DSVU1vU8.js.map +0 -1
- package/dist/chunks/filter-bar.qlViDZPY.js +0 -3754
- package/dist/chunks/fixed-scroller.04EUUgD_.js +0 -152
- package/dist/chunks/get-slot-text.Bjb9dTSV.js +0 -12
- package/dist/chunks/header-meta.CCQVPDU8.js +0 -250
- package/dist/chunks/index.B6WW_F-J.js.map +0 -1
- package/dist/chunks/input-field-password.Bri9q5EV.js +0 -395
- package/dist/chunks/input-field-password.Bri9q5EV.js.map +0 -1
- package/dist/chunks/isSameWeek.TrpUOIn5.js +0 -14
- package/dist/chunks/list-item.BiJMHR7b.js +0 -226
- package/dist/chunks/pagination.CZVdaeqE.js.map +0 -1
- package/dist/chunks/popover.types.BfnJIpII.js +0 -6
- package/dist/chunks/scroll-to-section.CC5g-HBX.js +0 -111
- package/dist/chunks/scroll-to-section.CC5g-HBX.js.map +0 -1
- package/dist/chunks/secondary-nav.CmvSHxvS.js +0 -266
- package/dist/chunks/set-time-in-date.CU7HeZLY.js +0 -27
- package/dist/chunks/startOfWeek.Br5KM4z_.js +0 -10
- package/dist/chunks/step.CIfxl8Wm.js +0 -253
- package/dist/chunks/tab.N0xGWsfO.js +0 -259
- package/dist/chunks/table-of-contents.Cf-IrdZl.js +0 -129
- package/dist/chunks/textarea.BDRR1zE0.js +0 -224
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/typography.C8lPlsbD.js +0 -87
- package/dist/chunks/typography.C8lPlsbD.js.map +0 -1
- package/dist/chunks/use-country-items.CmCRY7QX.js +0 -30
- package/dist/chunks/use-country-phon-code.BWkb546s.js +0 -6641
- package/dist/chunks/use-country-phon-code.BWkb546s.js.map +0 -1
- package/dist/chunks/use-date-input-formatter.DfQk8_Dw.js +0 -1732
- package/dist/chunks/use-expandable-content-height.2WJLCL-R.js +0 -35
- package/dist/chunks/utils.BzUwtTXc.js +0 -21
|
@@ -0,0 +1,3266 @@
|
|
|
1
|
+
import { ref as _, onMounted as pe, nextTick as q, watch as ee, onUnmounted as At, reactive as Ue, toRefs as ke, computed as f, watchEffect as Fn, onBeforeUpdate as Pn, defineComponent as te, inject as ie, toRef as xe, useSlots as $e, provide as Ee } from "vue";
|
|
2
|
+
import { C as zn } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
|
+
import { W as xn } from "./alert.Dj57zB88.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { n as V } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { C as Et } from "./cross.CC_B-vG-.js";
|
|
7
|
+
import { N as nt } from "./minus-small.DJacLGTw.js";
|
|
8
|
+
import { b as Bn } from "./popper-container.D08eTt4B.js";
|
|
9
|
+
import { E as W, b as yt, B as Un, T as kn } from "./tooltip.D_XsoD_u.js";
|
|
10
|
+
import { B as $n } from "./dashed-underline.CbzCYKrk.js";
|
|
11
|
+
import { B as ve, p as Lt } from "./typography.D1OZJbEa.js";
|
|
12
|
+
import { u as ge } from "./index.CPOlyau9.js";
|
|
13
|
+
import { B as Wn } from "./tag.BC7FFENr.js";
|
|
14
|
+
import { B as Gn } from "./action-bar.BC1fWyHX.js";
|
|
15
|
+
import { B as Vn } from "./pagination.D81XgMQ7.js";
|
|
16
|
+
import { B as We } from "./loading-indicator.PxbRzshH.js";
|
|
17
|
+
import { u as Ge } from "./use-has-slot.C9lQZ6nz.js";
|
|
18
|
+
import { u as Hn } from "./use-touch-device.DTqFAbXh.js";
|
|
19
|
+
import { g as Le } from "./generate-uid.DBWe4g6T.js";
|
|
20
|
+
import { a as Zn } from "./filter-bar.BMO8wTzb.js";
|
|
21
|
+
import { B as jn } from "./empty-state.fziM-yAC.js";
|
|
22
|
+
import { E as qn } from "./tabs.keys.B4qGhjp2.js";
|
|
23
|
+
import { D as Kn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
24
|
+
import { h as Yn } from "./index.CL3TXc0a.js";
|
|
25
|
+
import { o as Tt } from "./resize.Bqks3WUm.js";
|
|
26
|
+
import "./index.Cl4_42j5.js";
|
|
27
|
+
import { b as Ot } from "./focus-trap.l-wwtCHi.js";
|
|
28
|
+
import { B as It } from "./checkbox.Ca0mu2lE.js";
|
|
29
|
+
import { B as Nt } from "./button.C4kKejsg.js";
|
|
30
|
+
import { c as Ve, f as Dt, h as Xn, b as Jn, a as Qn, O as ot, D as eo } from "./button-actions.CxX7lK7z.js";
|
|
31
|
+
import { E as lt } from "./link.CscSbaXa.js";
|
|
32
|
+
import { C as st } from "./copy.CsKQJlen.js";
|
|
33
|
+
import { C as to } from "./chevron-down.eYtgv5ly.js";
|
|
34
|
+
import { C as no } from "./chevron-up.d8cwIlA_.js";
|
|
35
|
+
import { u as oo } from "./use-expandable-content-height.Bdd9hQwq.js";
|
|
36
|
+
import { B as lo } from "./info-icon.BRnbXunj.js";
|
|
37
|
+
import { j as so, f as ao } from "./dropdown.Ce2P9MZ-.js";
|
|
38
|
+
import { B as at } from "./popover.types.H5Y0rC1r.js";
|
|
39
|
+
import { A as io } from "./arrow-left.CRREfabP.js";
|
|
40
|
+
import { A as ro } from "./arrow-right.Dn3AYpUP.js";
|
|
41
|
+
import { H as co, S as uo } from "./show.B_mKPF6I.js";
|
|
42
|
+
import { l as it } from "./events.BQOQSSb7.js";
|
|
43
|
+
import { B as Mt } from "./toggle.BqHWIhqD.js";
|
|
44
|
+
import { B as fo } from "./search-bar.CRfYCmkl.js";
|
|
45
|
+
import { S as go } from "./search.D53Ia3rC.js";
|
|
46
|
+
import { B as mo } from "./directive.D1-d-C2K.js";
|
|
47
|
+
import "../assets/data-grid.css";
|
|
48
|
+
const rt = (o) => {
|
|
49
|
+
if (!o)
|
|
50
|
+
return 0;
|
|
51
|
+
const t = window.getComputedStyle(o);
|
|
52
|
+
let n = o.offsetHeight;
|
|
53
|
+
const e = window.getComputedStyle(o, "::after");
|
|
54
|
+
if (e.content !== "none" && e.position === "absolute") {
|
|
55
|
+
const a = parseFloat(e.height), s = parseFloat(e.bottom);
|
|
56
|
+
!isNaN(a) && !isNaN(s) && s < 0 && s + a <= 0 && (n += a);
|
|
57
|
+
}
|
|
58
|
+
const l = parseFloat(t.top);
|
|
59
|
+
return !isNaN(l) && l < 0 && (n += l), n;
|
|
60
|
+
}, ct = (o, t, n = _(!1), e = null) => {
|
|
61
|
+
const l = _(0);
|
|
62
|
+
let a = null, s = null;
|
|
63
|
+
const r = () => {
|
|
64
|
+
const i = t.value ? rt(o.value) : 0, u = n.value && e ? rt(e.value) : 0;
|
|
65
|
+
l.value = i + u;
|
|
66
|
+
};
|
|
67
|
+
return pe(() => {
|
|
68
|
+
q(() => {
|
|
69
|
+
const i = ee(
|
|
70
|
+
o,
|
|
71
|
+
() => {
|
|
72
|
+
o?.value && (q(() => i()), a = Tt(o.value, r), s = new MutationObserver(r), s.observe(o.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
73
|
+
},
|
|
74
|
+
{ immediate: !0 }
|
|
75
|
+
);
|
|
76
|
+
ee(
|
|
77
|
+
[t, n],
|
|
78
|
+
() => {
|
|
79
|
+
r();
|
|
80
|
+
},
|
|
81
|
+
{ immediate: !0 }
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
}), At(() => {
|
|
85
|
+
a?.disconnect(), s?.disconnect();
|
|
86
|
+
}), l;
|
|
87
|
+
};
|
|
88
|
+
var Be = /* @__PURE__ */ ((o) => (o.WRAP = "wrap", o.ELLIPSIS = "ellipsis", o))(Be || {}), G = /* @__PURE__ */ ((o) => (o.COLUMN_RESIZE = "column-resize", o.COLUMN_RESIZING = "column-resizing", o.SELECT_ALL_ROWS = "select-all-rows", o.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", o.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", o.DESELECT_ALL = "deselect-all", o.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", o.COLUMN_MOVE = "column-move", o.COLUMN_UPDATE = "column-update", o.COLUMN_MENU_OPEN = "column-menu-open", o.COLUMN_MENU_CLOSE = "column-menu-close", o.COLUMN_HOVER = "column-hover", o.COLUMN_DRAG_START = "column-dragstart", o.COLUMN_DRAG_ENTER = "column-dragenter", o.COLUMN_DRAG_END = "column-dragend", o.COLUMN_DROP = "column-drop", o))(G || {}), ae = /* @__PURE__ */ ((o) => (o.OUTLINE = "outline", o.SCROLL = "scroll", o.STICKY_FILTERS = "sticky-filters", o.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", o.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", o.NO_SPACING_TOP = "no-spacing-top", o.FIT_CONTENT = "fit-content", o.ZEBRA_ROWS = "zebra-rows", o))(ae || {}), _e = /* @__PURE__ */ ((o) => (o.ASCENDING = "asc", o.DESCENDING = "desc", o))(_e || {}), L = /* @__PURE__ */ ((o) => (o.CELL_FOCUS = "cell-focus", o.COLUMNS = "columns", o.COLUMN_RESIZE = "column-resize", o.ITEMS_PAGE = "items-page", o.NAVIGATE = "navigate", o.NESTED_CONTENT_TOGGLED = "nested-content-toggled", o.FILTER_SEARCH_INPUT = "filter-search-input", o.FILTER_SEARCH_CLEAR = "filter-search-clear", o.UPDATE_COLUMNS = "update:columns", o.UPDATE_CONDENSED = "update:condensed", o.UPDATE_FILTERS = "update:filters", o.UPDATE_FILTER_VALUES = "update:filter-values", o.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", o.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", o.UPDATE_PAGINATION = "update:pagination", o.UPDATE_SELECTION = "update:selection", o.UPDATE_SHOW_MORE = "update:show-more", o.UPDATE_SORT_BY = "update:sort-by", o.UPDATE_ZEBRA_ROWS = "update:zebra-rows", o.ROW_CLICK = "row-click", o.SELECT = "select", o.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", o.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", o.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", o.SORT = "sort", o))(L || {}), ye = /* @__PURE__ */ ((o) => (o.ASCENDING = "ascending", o.DESCENDING = "descending", o.NONE = "none", o))(ye || {});
|
|
89
|
+
const Co = (o, t) => {
|
|
90
|
+
const n = _(null), e = _(!1), l = _(void 0), a = o.value.reduce((A, N) => (A[N.field] = null, A), {}), s = Ue(a), r = ke(s);
|
|
91
|
+
let i = 0, u = "";
|
|
92
|
+
const v = f(
|
|
93
|
+
() => Object.fromEntries(o.value.map(({ field: A, width: N, minWidth: S }) => [A, { width: N, minWidth: S }]))
|
|
94
|
+
);
|
|
95
|
+
Fn(() => l.value = v.value);
|
|
96
|
+
let C = null, E = null;
|
|
97
|
+
const b = (A) => {
|
|
98
|
+
const N = A.clientX - i, S = u, m = l.value[S].width + N;
|
|
99
|
+
l.value[S].width = m > v.value[S].minWidth ? m : v.value[S].minWidth, t(G.COLUMN_RESIZING, l.value), i = A.clientX;
|
|
100
|
+
}, d = () => {
|
|
101
|
+
e.value = !1, C?.(), E?.(), u && t(G.COLUMN_RESIZE, {
|
|
102
|
+
field: u,
|
|
103
|
+
width: l.value[u].width
|
|
104
|
+
}), C = null, E = null, u = "", i = null;
|
|
105
|
+
}, h = (A, N, S) => {
|
|
106
|
+
if (S.preventDefault(), A) {
|
|
107
|
+
if (e.value = !0, S.buttons !== 1) {
|
|
108
|
+
d();
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
u = N, i = S.clientX, C = it(window, "mousemove", b), E = it(window, "mouseup", d);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
return ee(
|
|
115
|
+
() => e.value,
|
|
116
|
+
(A, N) => {
|
|
117
|
+
!A && N && (t(G.COLUMN_HOVER, n.value), n.value = null);
|
|
118
|
+
}
|
|
119
|
+
), {
|
|
120
|
+
resizeData: l,
|
|
121
|
+
allColumnRefs: r,
|
|
122
|
+
startResize: h,
|
|
123
|
+
isResizing: e,
|
|
124
|
+
columnHoverEventToEmitAfterResizing: n
|
|
125
|
+
};
|
|
126
|
+
}, _o = 100, dt = 50, J = "b-actions-column", vo = 42, ho = 56, po = 56, bo = 80, So = 36, wo = 1, Ft = 16, Ro = 20, Ao = (o, t, n) => {
|
|
127
|
+
const e = {}, l = [], a = (r) => {
|
|
128
|
+
const i = e[r];
|
|
129
|
+
i && i.frozen !== !0 && (e[r].frozen = !0, l.push(r));
|
|
130
|
+
};
|
|
131
|
+
function s() {
|
|
132
|
+
if (l.length === n.length)
|
|
133
|
+
return;
|
|
134
|
+
const r = { min: {} };
|
|
135
|
+
let i = o, u = t, v = 0;
|
|
136
|
+
l.forEach((C) => {
|
|
137
|
+
i -= e[C].computedWidth, u -= e[C].flex;
|
|
138
|
+
});
|
|
139
|
+
for (let C = 0, E = n.length; C < E; C += 1) {
|
|
140
|
+
const b = n[C];
|
|
141
|
+
if (e[b.field] && e[b.field].frozen === !0)
|
|
142
|
+
continue;
|
|
143
|
+
let h = i / u * b.flex;
|
|
144
|
+
h < b.minWidth && (v += b.minWidth - h, h = b.minWidth, r.min[b.field] = !0), e[b.field] = {
|
|
145
|
+
frozen: !1,
|
|
146
|
+
computedWidth: h,
|
|
147
|
+
flex: b.flex
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
v > 0 ? Object.keys(r.min).forEach((C) => {
|
|
151
|
+
a(C);
|
|
152
|
+
}) : n.forEach(({ field: C }) => {
|
|
153
|
+
a(C);
|
|
154
|
+
}), s();
|
|
155
|
+
}
|
|
156
|
+
return s(), e;
|
|
157
|
+
}, ut = (o, t) => {
|
|
158
|
+
let n = wo;
|
|
159
|
+
return t && (n += Ft * 2), o?.offsetWidth ? o.offsetWidth + n : 0;
|
|
160
|
+
}, Eo = (o) => o?.hasNestedContent?.value || o?.hasNestedRows?.value ? o?.hasSelectableColumn?.value ? o?.hasSelectableAcrossPages?.value ? bo : po : So : o?.hasSelectableAcrossPages?.value ? ho : vo, yo = (o, t, n, e, l, a) => {
|
|
161
|
+
const s = _(o.value), r = _(t), i = _(n), u = _(e), v = _(l), C = _(!1), E = _(0);
|
|
162
|
+
ee(
|
|
163
|
+
() => o.value,
|
|
164
|
+
(c, p) => {
|
|
165
|
+
const T = c?.map(({ field: D }) => D).toString() === p?.map(({ field: D }) => D).toString();
|
|
166
|
+
if (!a?.allowColumnDragAndDrop?.value || !T) {
|
|
167
|
+
s.value = o.value;
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
s.value = s.value?.length === 0 ? o.value : o.value.sort((D, F) => {
|
|
171
|
+
const z = s.value.findIndex((x) => x.field === D.field), U = s.value.findIndex((x) => x.field === F.field);
|
|
172
|
+
return z === -1 ? 1 : U === -1 ? -1 : z - U;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
const b = _();
|
|
177
|
+
let d = null;
|
|
178
|
+
const h = f(() => {
|
|
179
|
+
const c = [];
|
|
180
|
+
let p = 0, T = 0;
|
|
181
|
+
const D = {};
|
|
182
|
+
let F = s.value.filter((x) => x.visible !== !1);
|
|
183
|
+
const z = s.value.filter((x) => x.visible === !1);
|
|
184
|
+
if (a?.hasSelectableColumn?.value || a?.hasNestedContent?.value || a?.hasNestedRows?.value) {
|
|
185
|
+
const x = Eo(a);
|
|
186
|
+
F = [
|
|
187
|
+
{
|
|
188
|
+
field: J,
|
|
189
|
+
label: "",
|
|
190
|
+
minWidth: x,
|
|
191
|
+
width: x,
|
|
192
|
+
frozen: !0,
|
|
193
|
+
padding: { left: !1, right: !1 }
|
|
194
|
+
},
|
|
195
|
+
...F
|
|
196
|
+
];
|
|
197
|
+
}
|
|
198
|
+
F.forEach((x) => {
|
|
199
|
+
const k = { ...x };
|
|
200
|
+
let K;
|
|
201
|
+
k.flex && k.flex > 0 ? (p += k.flex, K = 0, c.push(k)) : K = Math.max(
|
|
202
|
+
k?.width ?? _o,
|
|
203
|
+
k?.minWidth ?? dt
|
|
204
|
+
), T += K, k.width = K, k.minWidth = k?.minWidth ?? dt, D[k.field] = k;
|
|
205
|
+
}), T += E.value;
|
|
206
|
+
const U = Math.max(b.value - T, 0);
|
|
207
|
+
if (p > 0 && b.value > 0) {
|
|
208
|
+
const x = Ao(U, p, c);
|
|
209
|
+
Object.keys(x).forEach((k) => {
|
|
210
|
+
D[k].width = x[k].computedWidth;
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
return z.forEach((x) => {
|
|
214
|
+
const k = { ...x };
|
|
215
|
+
D[k.field] = k;
|
|
216
|
+
}), Object.values(D);
|
|
217
|
+
}), A = _(void 0), N = (c) => {
|
|
218
|
+
A.value = { ...A.value, ...c };
|
|
219
|
+
}, S = async () => {
|
|
220
|
+
s.value.some((c) => c?.autoWidth) && (C.value = !0, await q(), s?.value.filter((c) => c?.autoWidth).forEach(({ field: c, minWidth: p }) => {
|
|
221
|
+
const T = ut(
|
|
222
|
+
u.value?.[c],
|
|
223
|
+
a?.hasColumnPanel?.value
|
|
224
|
+
), D = v.value?.[c]?.reduce(
|
|
225
|
+
(z, U) => Math.max(z, ut(U)),
|
|
226
|
+
0
|
|
227
|
+
), F = Math.max(T, D ?? 0);
|
|
228
|
+
(p === void 0 || F > p) && N({
|
|
229
|
+
[c]: {
|
|
230
|
+
width: F
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}), C.value = !1);
|
|
234
|
+
};
|
|
235
|
+
ee([() => s.value, () => r.value], async () => {
|
|
236
|
+
s.value.some((c) => c?.autoWidth) && await S();
|
|
237
|
+
});
|
|
238
|
+
const m = f(
|
|
239
|
+
() => h.value.map((c) => ({
|
|
240
|
+
...c,
|
|
241
|
+
// Override column width with resized ones
|
|
242
|
+
width: A.value?.[c.field]?.width ?? c.width
|
|
243
|
+
}))
|
|
244
|
+
), y = f(
|
|
245
|
+
() => m.value?.filter(({ visible: c }) => c !== !1).reduce((c, p) => p.width + c, 0) + E.value
|
|
246
|
+
), O = f(
|
|
247
|
+
() => b.value <= y.value
|
|
248
|
+
), R = f(() => ({
|
|
249
|
+
width: b.value > y.value ? "100%" : "fit-content"
|
|
250
|
+
}));
|
|
251
|
+
return pe(() => {
|
|
252
|
+
const c = a?.isDataGridTemplate ? Ro : 0;
|
|
253
|
+
q(() => {
|
|
254
|
+
i.value && (b.value = i.value.getBoundingClientRect().width - c);
|
|
255
|
+
const p = ee(
|
|
256
|
+
i,
|
|
257
|
+
() => {
|
|
258
|
+
i.value && (q(() => p()), d = Tt(i.value, ({ width: T }) => {
|
|
259
|
+
b.value = T - c;
|
|
260
|
+
}));
|
|
261
|
+
},
|
|
262
|
+
{ immediate: !0 }
|
|
263
|
+
);
|
|
264
|
+
}), document?.fonts?.ready ? document.fonts.ready.then(() => {
|
|
265
|
+
S();
|
|
266
|
+
}) : S();
|
|
267
|
+
}), At(() => {
|
|
268
|
+
d?.disconnect();
|
|
269
|
+
}), Pn(() => {
|
|
270
|
+
v.value && Object.keys(v.value)?.length > 0 && Object.keys(v.value).forEach((p) => {
|
|
271
|
+
v.value[p] = [];
|
|
272
|
+
});
|
|
273
|
+
}), {
|
|
274
|
+
columnDefs: m,
|
|
275
|
+
gridRowWidthStyle: R,
|
|
276
|
+
onColumnWidthOverride: N,
|
|
277
|
+
isMeasuringColumnWidths: C,
|
|
278
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: O,
|
|
279
|
+
columns: s,
|
|
280
|
+
totalWidthOfAllColumns: y,
|
|
281
|
+
rowActionsMaxWidth: E
|
|
282
|
+
};
|
|
283
|
+
}, Lo = (o, t, n, e, l, a, s) => {
|
|
284
|
+
const r = _(o.value ?? []), i = Ue({
|
|
285
|
+
allItemsSelected: !1,
|
|
286
|
+
isIndeterminate: !1
|
|
287
|
+
}), u = f(
|
|
288
|
+
() => n.value.flatMap((c) => [c, c?.children?.length > 0 ? c?.children : []]).flat()
|
|
289
|
+
), v = f(
|
|
290
|
+
() => n.value?.length > 0 && u.value?.every((c) => r.value.includes(e(c)))
|
|
291
|
+
), C = f(
|
|
292
|
+
() => n.value?.length > 0 && u.value?.filter((c) => !l(c)).every((c) => r.value.includes(e(c)))
|
|
293
|
+
), E = f(
|
|
294
|
+
() => n.value?.length > 0 && !u.value?.some((c) => r.value.includes(e(c)))
|
|
295
|
+
), b = f(
|
|
296
|
+
() => n.value?.length > 0 && !u.value?.filter((c) => !l(c)).some((c) => r.value.includes(e(c)))
|
|
297
|
+
), d = f(() => !a?.value || s?.value?.totalCount === void 0 ? !1 : r.value.length >= s.value.totalCount && C.value), h = () => {
|
|
298
|
+
t(L.SELECT, r.value), t(L.UPDATE_SELECTION, r.value);
|
|
299
|
+
}, A = (c) => {
|
|
300
|
+
r.value = c, v.value ? (i.allItemsSelected = !0, i.isIndeterminate = !1) : (i.allItemsSelected = !1, i.isIndeterminate = r.value?.length > 0 && n.value?.length > 0 && n.value.some(
|
|
301
|
+
(p) => r.value.includes(e(p)) || p?.children?.some((T) => r.value.includes(e(T)))
|
|
302
|
+
));
|
|
303
|
+
}, N = (c) => {
|
|
304
|
+
q(() => {
|
|
305
|
+
i.allItemsSelected = c;
|
|
306
|
+
const p = u.value?.filter(
|
|
307
|
+
(T) => !l(T) && (T?.children === void 0 || T.children.every((D) => !l(D)))
|
|
308
|
+
)?.map((T) => e(T)) ?? [];
|
|
309
|
+
c ? (r.value = [.../* @__PURE__ */ new Set([...r.value, ...p])], i.isIndeterminate = !v.value) : (r.value = r.value.filter((T) => !p.includes(T)), i.isIndeterminate = !E.value), h();
|
|
310
|
+
});
|
|
311
|
+
}, S = () => {
|
|
312
|
+
q(() => {
|
|
313
|
+
A([]), h();
|
|
314
|
+
});
|
|
315
|
+
}, m = (c, p) => {
|
|
316
|
+
q(() => {
|
|
317
|
+
A(p?.children?.length > 0 ? y(c, p) : c), h();
|
|
318
|
+
});
|
|
319
|
+
}, y = (c, p) => {
|
|
320
|
+
const T = e(p), D = p.children?.filter((F) => !l(F)).map((F) => e(F));
|
|
321
|
+
if (c.includes(T)) {
|
|
322
|
+
const F = c;
|
|
323
|
+
return D.forEach((z) => {
|
|
324
|
+
F.includes(z) || F.push(z);
|
|
325
|
+
}), F;
|
|
326
|
+
}
|
|
327
|
+
return c.filter((F) => !D.includes(F));
|
|
328
|
+
}, O = (c, p, T) => {
|
|
329
|
+
q(() => {
|
|
330
|
+
const D = e(p);
|
|
331
|
+
c.includes(e(T)) ? A(
|
|
332
|
+
!c.includes(D) && p?.children?.every((F) => c.includes(e(F))) ? [...c, D] : c
|
|
333
|
+
) : A(
|
|
334
|
+
c.includes(D) && !p?.children?.every((F) => c.includes(e(F))) ? c.filter((F) => F !== D) : c
|
|
335
|
+
), h();
|
|
336
|
+
});
|
|
337
|
+
}, R = f(() => d.value ? "all" : C.value ? "page" : !r.value || r.value.length === 0 ? "none" : b.value ? "unselected-page" : "single");
|
|
338
|
+
return ee(
|
|
339
|
+
() => o.value,
|
|
340
|
+
() => {
|
|
341
|
+
A(o.value ?? []);
|
|
342
|
+
},
|
|
343
|
+
{ immediate: !0 }
|
|
344
|
+
), ee(
|
|
345
|
+
() => n.value,
|
|
346
|
+
() => {
|
|
347
|
+
const c = n.value.filter((p) => r.value.includes(e(p))).flatMap(
|
|
348
|
+
(p) => p?.children?.length > 0 ? p.children.map((T) => e(T)).filter((T) => !r.value.includes(T)) : []
|
|
349
|
+
);
|
|
350
|
+
c?.length > 0 ? (A([...r.value, ...c]), h()) : A(r.value);
|
|
351
|
+
}
|
|
352
|
+
), {
|
|
353
|
+
onAllRowSelect: N,
|
|
354
|
+
onRowSelect: m,
|
|
355
|
+
onNestedRowSelect: O,
|
|
356
|
+
onDeselectAll: S,
|
|
357
|
+
allItemsSelectedState: i,
|
|
358
|
+
selectedItems: r,
|
|
359
|
+
selectionState: R
|
|
360
|
+
};
|
|
361
|
+
}, To = (o, t, n) => ({ isSorting: (s) => o.value.some((r) => r.field === s), getSortingDirection: (s) => o.value.find((r) => r.field === s)?.direction, sortByColumnField: (s) => {
|
|
362
|
+
if (!t.value.some((u) => u.field === s && u.sortable))
|
|
363
|
+
return;
|
|
364
|
+
const i = [{
|
|
365
|
+
field: s,
|
|
366
|
+
direction: o.value.find((u) => u.field === s)?.direction === _e.ASCENDING ? _e.DESCENDING : _e.ASCENDING
|
|
367
|
+
}];
|
|
368
|
+
n("sort", i);
|
|
369
|
+
} });
|
|
370
|
+
var X = ((o) => (o[o.ARROW_DOWN = W.ARROW_DOWN] = "ARROW_DOWN", o[o.ARROW_UP = W.ARROW_UP] = "ARROW_UP", o[o.ARROW_LEFT = W.ARROW_LEFT] = "ARROW_LEFT", o[o.ARROW_RIGHT = W.ARROW_RIGHT] = "ARROW_RIGHT", o[o.PAGE_UP = W.PAGE_UP] = "PAGE_UP", o[o.PAGE_DOWN = W.PAGE_DOWN] = "PAGE_DOWN", o[o.END = W.END] = "END", o[o.HOME = W.HOME] = "HOME", o))(X || {});
|
|
371
|
+
const He = "b-row-actions-column", Oo = (o, t, n, e, l, a) => {
|
|
372
|
+
const s = f(() => a.value || e.value ? !0 : n.value.some((S) => S.infoIconTooltip || S.sortable)), r = f(() => {
|
|
373
|
+
let S = n.value.filter(({ visible: m }) => m !== !1);
|
|
374
|
+
return l.value && (S = [
|
|
375
|
+
...S,
|
|
376
|
+
{ field: He, label: "" }
|
|
377
|
+
]), S;
|
|
378
|
+
}), i = f(() => r.value.length), u = f(() => {
|
|
379
|
+
if (!o.value)
|
|
380
|
+
return [];
|
|
381
|
+
const S = Object.keys(o.value)[0];
|
|
382
|
+
if (!S || !o.value[S])
|
|
383
|
+
return [];
|
|
384
|
+
const m = [];
|
|
385
|
+
if (s.value)
|
|
386
|
+
for (const O of r.value) {
|
|
387
|
+
const R = t.value[O.field];
|
|
388
|
+
m.push(R);
|
|
389
|
+
}
|
|
390
|
+
const y = o.value[S].length;
|
|
391
|
+
for (let O = 0; O < y; O++)
|
|
392
|
+
for (const R of r.value) {
|
|
393
|
+
const c = o.value[R.field];
|
|
394
|
+
c?.[O] && m.push(c[O]);
|
|
395
|
+
}
|
|
396
|
+
return m;
|
|
397
|
+
}), v = (S) => Math.floor(S / i.value), C = (S, m, y) => {
|
|
398
|
+
const O = u.value.length - 1, R = i.value - 1, c = v(S), p = S - i.value * c;
|
|
399
|
+
return {
|
|
400
|
+
[X.PAGE_UP]: p + (s.value ? i.value : 0),
|
|
401
|
+
[X.PAGE_DOWN]: O - R + p,
|
|
402
|
+
[X.END]: y ? O : i.value * c + R,
|
|
403
|
+
[X.HOME]: y ? s.value ? i.value : 0 : i.value * c
|
|
404
|
+
}[m];
|
|
405
|
+
}, E = (S, m) => {
|
|
406
|
+
const y = v(S), R = {
|
|
407
|
+
[X.ARROW_DOWN]: i.value,
|
|
408
|
+
[X.ARROW_UP]: y === 0 && !s.value ? 0 : -i.value,
|
|
409
|
+
[X.ARROW_LEFT]: -1,
|
|
410
|
+
[X.ARROW_RIGHT]: 1
|
|
411
|
+
}[m], c = S + R;
|
|
412
|
+
return c < 0 || c >= u.value.length ? S : c;
|
|
413
|
+
}, b = (S) => [
|
|
414
|
+
X.PAGE_UP,
|
|
415
|
+
X.PAGE_DOWN,
|
|
416
|
+
X.END,
|
|
417
|
+
X.HOME
|
|
418
|
+
].includes(S), d = (S, m, y) => {
|
|
419
|
+
const O = u.value.indexOf(S);
|
|
420
|
+
return b(m) ? C(O, m, y) : E(O, m);
|
|
421
|
+
}, h = (S, m, y) => {
|
|
422
|
+
if (!u.value.includes(S))
|
|
423
|
+
return;
|
|
424
|
+
const O = d(S, m, y);
|
|
425
|
+
u.value[O].focus();
|
|
426
|
+
}, A = (S) => S in X;
|
|
427
|
+
return {
|
|
428
|
+
isNavigationKeyCode: A,
|
|
429
|
+
focusOnNextGridcell: h,
|
|
430
|
+
navigationInput: (S) => {
|
|
431
|
+
const { ctrlKey: m, key: y, target: O } = S, R = y;
|
|
432
|
+
let c = O;
|
|
433
|
+
c.getAttribute("role") !== "menuitem" && (u.value.includes(c) || (c = O.closest('[role="gridcell"], [role="columnheader"]')), u.value.includes(c) && A(R) && h(c, R, m));
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
}, Io = 90, No = (o, t, n, e, l) => {
|
|
437
|
+
const a = _(o), s = _(t), r = _(n), i = _(e), u = f(() => a.value !== "none"), v = f(() => a.value === "automatic"), C = () => {
|
|
438
|
+
l(L.UPDATE_SHOW_MORE);
|
|
439
|
+
};
|
|
440
|
+
return ee(
|
|
441
|
+
() => s.value,
|
|
442
|
+
() => {
|
|
443
|
+
v.value && r.value.offsetHeight / s.value * 100 > Io && !i.value && C();
|
|
444
|
+
}
|
|
445
|
+
), { isLazyLoad: u, isInfiniteScroll: v, verticalScrollPosition: s, emitLazyLoadEvent: C };
|
|
446
|
+
}, Do = (o, t, n) => {
|
|
447
|
+
const e = _(o), l = _(t), a = Ue({
|
|
448
|
+
dragging: null,
|
|
449
|
+
dragToLeft: null,
|
|
450
|
+
target: null
|
|
451
|
+
}), s = (b, d = 0) => {
|
|
452
|
+
const h = e.value.findIndex((S) => S.field === b.field), A = h + d;
|
|
453
|
+
if (A < 0 || A > e.value.length - 1)
|
|
454
|
+
return;
|
|
455
|
+
const N = [...e.value];
|
|
456
|
+
N.splice(A, 0, N.splice(h, 1)[0]), n(L.COLUMNS, N), n(L.UPDATE_COLUMNS, N);
|
|
457
|
+
}, r = (b, d) => {
|
|
458
|
+
a.dragging = b, d.dataTransfer.setData("text", ""), d.dataTransfer.dropEffect = "move";
|
|
459
|
+
}, i = (b, d) => {
|
|
460
|
+
a.target = b;
|
|
461
|
+
const h = d.currentTarget.getBoundingClientRect(), A = h.left + h.width / 2, N = d.clientX ?? 0;
|
|
462
|
+
a.dragToLeft = N <= A;
|
|
463
|
+
}, u = (b) => {
|
|
464
|
+
if (a.dragging?.field !== b.field) {
|
|
465
|
+
const d = e.value.findIndex((y) => y.field === a.dragging?.field), h = e.value.findIndex((y) => y.field === b.field), A = a.dragToLeft ? h : h + 1, N = A > d ? A - 1 : A;
|
|
466
|
+
let S = [...e.value];
|
|
467
|
+
S.splice(
|
|
468
|
+
N === -1 ? 0 : N,
|
|
469
|
+
0,
|
|
470
|
+
S.splice(d, 1)[0]
|
|
471
|
+
);
|
|
472
|
+
const m = e.value.findIndex((y) => !y?.frozen);
|
|
473
|
+
a.dragging?.frozen !== b.frozen && A !== m && (S = S.map(
|
|
474
|
+
(y) => a.dragging?.field === y.field ? { ...y, frozen: !!b?.frozen } : y
|
|
475
|
+
)), n(L.COLUMNS, S), n(L.UPDATE_COLUMNS, S);
|
|
476
|
+
}
|
|
477
|
+
a.dragging = null, a.target = null;
|
|
478
|
+
}, v = () => {
|
|
479
|
+
a.dragging = null, a.dragToLeft = null, a.target = null;
|
|
480
|
+
}, C = f(() => l.value ? {
|
|
481
|
+
[G.COLUMN_DRAG_START]: (b, d) => r(b, d),
|
|
482
|
+
[G.COLUMN_DRAG_ENTER]: (b, d) => i(b, d),
|
|
483
|
+
[G.COLUMN_DROP]: (b) => u(b),
|
|
484
|
+
[G.COLUMN_DRAG_END]: () => v()
|
|
485
|
+
} : {}), E = f(() => (b) => l.value ? {
|
|
486
|
+
dragenter: (d) => {
|
|
487
|
+
d.preventDefault(), i(b, d);
|
|
488
|
+
},
|
|
489
|
+
drop: () => {
|
|
490
|
+
u(b);
|
|
491
|
+
},
|
|
492
|
+
dragover: (d) => {
|
|
493
|
+
d.preventDefault();
|
|
494
|
+
}
|
|
495
|
+
} : {});
|
|
496
|
+
return {
|
|
497
|
+
// Values
|
|
498
|
+
draggingColumns: a,
|
|
499
|
+
// Methods
|
|
500
|
+
draggingEventsForColumns: C,
|
|
501
|
+
draggingEventsForRowCell: E,
|
|
502
|
+
onMoveColumnByOffset: s
|
|
503
|
+
};
|
|
504
|
+
}, Mo = (o, t, n) => {
|
|
505
|
+
const e = _(o), l = _(t.value), a = f(
|
|
506
|
+
() => [...e.value].sort((d, h) => d.frozen === h.frozen ? 0 : d.frozen ? -1 : 1)
|
|
507
|
+
), s = f(
|
|
508
|
+
() => a.value.filter((d) => d.frozen && d.visible !== !1)
|
|
509
|
+
), r = f(
|
|
510
|
+
() => a.value.filter((d) => !d.frozen && d.visible !== !1)
|
|
511
|
+
), i = f(
|
|
512
|
+
() => [
|
|
513
|
+
{ columnSet: s.value, id: "frozen", isFrozenColumns: !0 },
|
|
514
|
+
{ columnSet: r.value, id: "unfrozen" }
|
|
515
|
+
].filter(({ columnSet: d }) => d.length)
|
|
516
|
+
), u = f(
|
|
517
|
+
() => e.value.filter((d) => d?.visible !== !1 && d?.field !== J).length === 1
|
|
518
|
+
), v = (d) => n(L.UPDATE_CONDENSED, d), C = (d) => {
|
|
519
|
+
l.value = d, n(L.UPDATE_ZEBRA_ROWS, d);
|
|
520
|
+
}, E = (d) => {
|
|
521
|
+
n(L.COLUMNS, d), n(L.UPDATE_COLUMNS, d);
|
|
522
|
+
}, b = (d) => {
|
|
523
|
+
const h = a.value.map(
|
|
524
|
+
(A) => A?.field === d.field ? d : A
|
|
525
|
+
);
|
|
526
|
+
E(h);
|
|
527
|
+
};
|
|
528
|
+
return ee(t, (d) => {
|
|
529
|
+
l.value = d;
|
|
530
|
+
}), {
|
|
531
|
+
// Values
|
|
532
|
+
columnSets: i,
|
|
533
|
+
isOnlyOneVisibleColumn: u,
|
|
534
|
+
internalZebraRows: l,
|
|
535
|
+
sortedColumns: a,
|
|
536
|
+
// Methods
|
|
537
|
+
onConfigSettingsColumnsUpdate: E,
|
|
538
|
+
onConfigSettingsColumnUpdate: b,
|
|
539
|
+
onConfigSettingsCondensedUpdate: v,
|
|
540
|
+
onConfigSettingsZebraRowsUpdate: C
|
|
541
|
+
};
|
|
542
|
+
}, Fo = (o, t, n, e, l, a, s) => {
|
|
543
|
+
const r = _(0), i = _(!1), u = _(!1);
|
|
544
|
+
ee([() => r.value, () => a.value], ([d]) => {
|
|
545
|
+
o.value.scrollLeft = d, t.value.scrollLeft = d, i.value = !!d, u.value = t.value.scrollWidth - t.value.offsetWidth > d;
|
|
546
|
+
}), pe(async () => {
|
|
547
|
+
await q(), t.value?.offsetWidth < t.value?.scrollWidth && (u.value = !0);
|
|
548
|
+
});
|
|
549
|
+
const v = (d) => {
|
|
550
|
+
if (r.value = d.target.scrollLeft, n.value = o.value.scrollHeight - d.target.scrollTop, e?.value) {
|
|
551
|
+
const h = d.target.scrollLeft;
|
|
552
|
+
e.value.scrollLeft !== h && (e.value.scrollLeft = h);
|
|
553
|
+
}
|
|
554
|
+
}, C = (d) => {
|
|
555
|
+
d.key === "Tab" || d.key !== "ArrowRight" && d.key !== "ArrowLeft" || (d.preventDefault(), o.value.scrollLeft = 0, o.value.style.overflowX = "hidden", setTimeout(() => {
|
|
556
|
+
o.value && (o.value.style.overflowX = "auto");
|
|
557
|
+
}));
|
|
558
|
+
}, E = (d) => {
|
|
559
|
+
const h = d.target.scrollLeft;
|
|
560
|
+
o.value.scrollLeft !== h && (o.value.scrollLeft = h);
|
|
561
|
+
}, b = f(() => s?.pagination?.value && (s?.stickyPagination?.value || s?.isDataGridTemplate) && !s?.isLazyLoad?.value ? { bottom: `${(l.value?.clientHeight ?? 0) + 1}px` } : {});
|
|
562
|
+
return {
|
|
563
|
+
// Values
|
|
564
|
+
scrollLeftPosition: r,
|
|
565
|
+
hasLeftOverflow: i,
|
|
566
|
+
hasRightOverflow: u,
|
|
567
|
+
horizontalScrollbarConditionalStyles: b,
|
|
568
|
+
// Methods
|
|
569
|
+
updateScrollPosition: v,
|
|
570
|
+
updateScrollPositionOnFrozenColumnsNavigation: C,
|
|
571
|
+
syncVirtualScrollerWithBody: E
|
|
572
|
+
};
|
|
573
|
+
}, Po = (o, t, n, e) => {
|
|
574
|
+
const l = _(null), a = f(() => {
|
|
575
|
+
if (!l.value || l.value.field === J)
|
|
576
|
+
return {
|
|
577
|
+
hoveredOverColumnField: "",
|
|
578
|
+
isSeparatorOffset: !1,
|
|
579
|
+
noBorderLeft: !1,
|
|
580
|
+
noBorderRight: !1
|
|
581
|
+
};
|
|
582
|
+
const s = o.value.find((h) => h.isFrozenColumns)?.columnSet?.filter((h) => h.field !== J), r = o.value.find((h) => !h?.isFrozenColumns), i = l.value.frozen && s?.[0]?.field === l.value.field, u = !l.value.frozen && r?.columnSet?.[0]?.field === l.value.field, v = (t.value || n.value) && i, C = (t.value || n.value) && !s && u, E = s && u, b = s?.length > 0 && l.value.frozen && s?.[s.length - 1].field === l.value.field, d = n.value && e.value && !l.value.frozen && r?.columnSet?.[r.columnSet.length - 1].field === l.value.field;
|
|
583
|
+
return {
|
|
584
|
+
hoveredOverColumnField: l.value.field,
|
|
585
|
+
isSeparatorOffset: d,
|
|
586
|
+
noBorderLeft: !!v || !!C || !!E,
|
|
587
|
+
noBorderRight: !!b || !!d
|
|
588
|
+
};
|
|
589
|
+
});
|
|
590
|
+
return {
|
|
591
|
+
hoveredOverColumn: l,
|
|
592
|
+
hoveredOverColumnState: a
|
|
593
|
+
};
|
|
594
|
+
}, Te = (o, t) => {
|
|
595
|
+
const e = Ot(o).filter((l) => l.node !== o);
|
|
596
|
+
if (e?.length > 0) {
|
|
597
|
+
const l = t?.last ? e.length - 1 : 0;
|
|
598
|
+
return e[l].node.focus(), !0;
|
|
599
|
+
}
|
|
600
|
+
return !1;
|
|
601
|
+
}, oe = (o) => {
|
|
602
|
+
const n = Ot(o)?.filter((e) => e.node !== o);
|
|
603
|
+
if (n?.length > 0)
|
|
604
|
+
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
605
|
+
}, Oe = (o) => {
|
|
606
|
+
o?.length > 0 && o.forEach((t) => t?.node.setAttribute("tabindex", "0"));
|
|
607
|
+
}, zo = (o) => {
|
|
608
|
+
const t = window.getSelection();
|
|
609
|
+
if (!t || !t.rangeCount)
|
|
610
|
+
return;
|
|
611
|
+
const n = t.getRangeAt(0).cloneContents(), e = n.textContent?.trim();
|
|
612
|
+
if (!e)
|
|
613
|
+
return;
|
|
614
|
+
const l = n.querySelectorAll('[role="row"]');
|
|
615
|
+
let a = "<table>", s = "";
|
|
616
|
+
const r = (i) => {
|
|
617
|
+
i.forEach((u) => {
|
|
618
|
+
const v = u.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", C = u.textContent.trim();
|
|
619
|
+
C && (a += `<${v}>${C}</${v}>`, s += `${C} `);
|
|
620
|
+
});
|
|
621
|
+
};
|
|
622
|
+
if (!l.length) {
|
|
623
|
+
const i = n.querySelectorAll(
|
|
624
|
+
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
625
|
+
);
|
|
626
|
+
if (i.length)
|
|
627
|
+
a += "<tr>", r(i), a += "</tr>";
|
|
628
|
+
else {
|
|
629
|
+
o?.preventDefault(), navigator.clipboard.writeText(e);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
l.forEach((i) => {
|
|
634
|
+
const u = i.querySelectorAll(
|
|
635
|
+
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
636
|
+
);
|
|
637
|
+
if (a += "<tr>", u.length)
|
|
638
|
+
r(u);
|
|
639
|
+
else {
|
|
640
|
+
const v = i.textContent.trim();
|
|
641
|
+
a += `<td>${v}</td>`, s += `${v} `;
|
|
642
|
+
}
|
|
643
|
+
a += "</tr>", s += `
|
|
644
|
+
`;
|
|
645
|
+
}), a += "</table>", o?.preventDefault(), navigator.clipboard.write([
|
|
646
|
+
new ClipboardItem({
|
|
647
|
+
"text/html": new Blob([a], { type: "text/html" }),
|
|
648
|
+
"text/plain": new Blob([s || e], { type: "text/plain" })
|
|
649
|
+
})
|
|
650
|
+
]);
|
|
651
|
+
};
|
|
652
|
+
let ft = 0;
|
|
653
|
+
const xo = {
|
|
654
|
+
beforeCreate() {
|
|
655
|
+
this.uuid = ft.toString(), ft += 1;
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
var Bo = function() {
|
|
659
|
+
var t = this, n = t._self._c;
|
|
660
|
+
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
661
|
+
}, Uo = [], ko = /* @__PURE__ */ V(
|
|
662
|
+
xo,
|
|
663
|
+
Bo,
|
|
664
|
+
Uo,
|
|
665
|
+
!1,
|
|
666
|
+
null,
|
|
667
|
+
null
|
|
668
|
+
);
|
|
669
|
+
const $o = ko.exports;
|
|
670
|
+
let gt = 0;
|
|
671
|
+
const Wo = {
|
|
672
|
+
beforeCreate() {
|
|
673
|
+
this.uuid = gt.toString(), gt += 1;
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
var Go = function() {
|
|
677
|
+
var t = this, n = t._self._c;
|
|
678
|
+
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M10.5605 14.5L9.94434 13.8838C9.6002 13.5397 9.18722 13.3072 8.75 13.1836V10.9336L10.1689 10.1162L11.6865 10.9941L12.1094 12.5605C12.1146 12.5821 12.1182 12.6044 12.124 12.626L12.1553 12.7441L12.3496 13.4688L13.7988 13.0801L13.6162 12.4004L13.6201 12.3984L13.5547 12.1592C13.4254 11.5178 13.8153 10.878 14.4561 10.7061L14.5742 10.6748L15.2988 10.4805L14.9102 9.03125L14.2295 9.21387L14.2285 9.20996L13.5049 9.40625L12.4346 9.69531L10.9199 8.81836V7.18262L12.8633 6.05762C13.1889 6.37496 13.597 6.61697 14.0674 6.74316L14.1855 6.77441L14.9102 6.96875L15.2988 5.52051L14.5742 5.32617L14.4561 5.29395C13.7894 5.11503 13.3935 4.4294 13.5723 3.7627L13.6045 3.64453L13.7988 2.91992L12.3496 2.53125L12.1553 3.25586L12.124 3.37402C11.9979 3.84406 12.0018 4.31824 12.1133 4.75879L10.1689 5.88477L8.75 5.06738V2.81738C9.18731 2.69384 9.60013 2.46036 9.94434 2.11621L10.5605 1.5L9.5 0.439453L8.88379 1.05566C8.39567 1.54362 7.60433 1.54362 7.11621 1.05566L6.5 0.439453L5.43945 1.5L6.05566 2.11621C6.39987 2.46036 6.81269 2.69384 7.25 2.81738V5.06738L5.83105 5.88477L3.88574 4.75879C3.99724 4.31819 4.00207 3.84412 3.87598 3.37402L3.84473 3.25586L3.65039 2.53125L2.20117 2.91992L2.39551 3.64453L2.42773 3.7627C2.60651 4.42942 2.21066 5.11507 1.54395 5.29395L1.42578 5.32617L0.701172 5.52051L1.08984 6.96875L1.81445 6.77441L1.93262 6.74316C2.40275 6.61703 2.81018 6.37474 3.13574 6.05762L5.08008 7.18262V8.81836L3.13574 9.94336C2.81015 9.62622 2.40287 9.38399 1.93262 9.25781L1.81445 9.22559L1.08984 9.03125L0.701172 10.4805L1.42578 10.6748L1.54395 10.7061C2.2106 10.8849 2.60644 11.5706 2.42773 12.2373L2.39551 12.3555L2.20117 13.0801L3.65039 13.4688L3.84473 12.7441L3.87598 12.626C4.00207 12.1559 3.99723 11.6817 3.88574 11.2412L5.83105 10.1162L7.25 10.9336V13.1836C6.81278 13.3072 6.3998 13.5397 6.05566 13.8838L5.43945 14.5L6.5 15.5605L7.11621 14.9443C7.60433 14.4564 8.39567 14.4564 8.88379 14.9443L9.5 15.5605L10.5605 14.5ZM6.58008 8.81641V7.18262L8 6.36426L9.41992 7.18262V8.81641L8 9.63477L6.58008 8.81641Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
679
|
+
}, Vo = [], Ho = /* @__PURE__ */ V(
|
|
680
|
+
Wo,
|
|
681
|
+
Go,
|
|
682
|
+
Vo,
|
|
683
|
+
!1,
|
|
684
|
+
null,
|
|
685
|
+
null
|
|
686
|
+
);
|
|
687
|
+
const Pt = Ho.exports;
|
|
688
|
+
let mt = 0;
|
|
689
|
+
const Zo = {
|
|
690
|
+
beforeCreate() {
|
|
691
|
+
this.uuid = mt.toString(), mt += 1;
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
var jo = function() {
|
|
695
|
+
var t = this, n = t._self._c;
|
|
696
|
+
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
697
|
+
}, qo = [], Ko = /* @__PURE__ */ V(
|
|
698
|
+
Zo,
|
|
699
|
+
jo,
|
|
700
|
+
qo,
|
|
701
|
+
!1,
|
|
702
|
+
null,
|
|
703
|
+
null
|
|
704
|
+
);
|
|
705
|
+
const Yo = Ko.exports;
|
|
706
|
+
let Ct = 0;
|
|
707
|
+
const Xo = {
|
|
708
|
+
beforeCreate() {
|
|
709
|
+
this.uuid = Ct.toString(), Ct += 1;
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
var Jo = function() {
|
|
713
|
+
var t = this, n = t._self._c;
|
|
714
|
+
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
715
|
+
}, Qo = [], el = /* @__PURE__ */ V(
|
|
716
|
+
Xo,
|
|
717
|
+
Jo,
|
|
718
|
+
Qo,
|
|
719
|
+
!1,
|
|
720
|
+
null,
|
|
721
|
+
null
|
|
722
|
+
);
|
|
723
|
+
const tl = el.exports;
|
|
724
|
+
let _t = 0;
|
|
725
|
+
const nl = {
|
|
726
|
+
beforeCreate() {
|
|
727
|
+
this.uuid = _t.toString(), _t += 1;
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
var ol = function() {
|
|
731
|
+
var t = this, n = t._self._c;
|
|
732
|
+
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: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
733
|
+
}, ll = [], sl = /* @__PURE__ */ V(
|
|
734
|
+
nl,
|
|
735
|
+
ol,
|
|
736
|
+
ll,
|
|
737
|
+
!1,
|
|
738
|
+
null,
|
|
739
|
+
null
|
|
740
|
+
);
|
|
741
|
+
const al = sl.exports, il = {
|
|
742
|
+
"de-DE": { columnActions: "{name}-Spaltenaktionen", deselectAll: "Alle abwählen", deselectAllCurrentResults: "Alle in den aktuellen Ergebnissen abwählen", deselectPage: "Diese Seite abwählen", freezeColumn: "Spalte einfrieren", hideColumn: "Spalte ausblenden", moveColumnLeft: "Spalte nach links verschieben", moveColumnRight: "Spalte nach rechts verschieben", rowActionsColumn: "Spaltenaktionen für Zeilen", selectAll: "Alle auswählen", selectAllCurrentResults: "Alle in den aktuellen Ergebnissen auswählen", selectAllMenu: "Menü „Alle auswählen“", selectPage: "Diese Seite auswählen", selectionMenu: "Auswahlmenü", showColumn: "Spalte anzeigen", sortColumn: "Spalte {name} sortieren", sortColumnInAscendingOrder: "Spalte {name} in aufsteigender Reihenfolge sortieren", sortColumnInDescendingOrder: "Spalte {name} in absteigender Reihenfolge sortieren", unfreezeColumn: "Spalte einfrieren aufheben" },
|
|
743
|
+
"en-GB": { columnActions: "{name} column actions", deselectAll: "Deselect all", deselectAllCurrentResults: "Deselect all from current results", deselectPage: "Deselect this page", freezeColumn: "Freeze column", hideColumn: "Hide column", moveColumnLeft: "Move column left", moveColumnRight: "Move column to the right", rowActionsColumn: "Row actions column", selectAll: "Select all", selectAllCurrentResults: "Select all in current results", selectAllMenu: "Select all menu", selectPage: "Select this page", selectionMenu: "Selection menu", showColumn: "Show column", sortColumn: "Sort {name} column", sortColumnInAscendingOrder: "Sort {name} column in ascending order", sortColumnInDescendingOrder: "Sort {name} column in descending order", unfreezeColumn: "Unfreeze column" },
|
|
744
|
+
"en-US": { columnActions: "{name} column actions", deselectAll: "Deselect all", deselectAllCurrentResults: "Deselect all in current results", deselectPage: "Deselect this page", freezeColumn: "Freeze column", hideColumn: "Hide column", moveColumnLeft: "Move column left", moveColumnRight: "Move column right", rowActionsColumn: "Row actions column", selectAll: "Select all", selectAllCurrentResults: "Select all in current results", selectAllMenu: "Select all menu", selectPage: "Select this page", selectionMenu: "Selection menu", showColumn: "Show column", sortColumn: "Sort {name} column", sortColumnInAscendingOrder: "Sort {name} column in ascending order", sortColumnInDescendingOrder: "Sort {name} column in descending order", unfreezeColumn: "Unfreeze column" },
|
|
745
|
+
"es-419": { columnActions: "Acciones de columna {name}", deselectAll: "Deseleccionar todo", deselectAllCurrentResults: "Deseleccionar todo en los resultados actuales", deselectPage: "Anular selección de esta página", freezeColumn: "Congelar columna", hideColumn: "Ocultar columna", moveColumnLeft: "Mover columna a la izquierda", moveColumnRight: "Mover columna a la derecha", rowActionsColumn: "Columna de acciones de fila", selectAll: "Seleccionar todo", selectAllCurrentResults: "Seleccionar todos los resultados actuales", selectAllMenu: "Seleccionar todo el menú", selectPage: "Seleccionar esta página", selectionMenu: "Menú de selección", showColumn: "Mostrar columna", sortColumn: "Ordenar columna {name}", sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente", sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente", unfreezeColumn: "Desbloquear columna" },
|
|
746
|
+
"es-ES": { columnActions: "{name} acciones de columna", deselectAll: "Deseleccionar todo", deselectAllCurrentResults: "Deseleccionar todo en los resultados actuales", deselectPage: "Deseleccionar esta página", freezeColumn: "Congelar columna", hideColumn: "Ocultar columna", moveColumnLeft: "Mover la columna a la izquierda", moveColumnRight: "Mover la columna a la derecha", rowActionsColumn: "Columna de acciones de fila", selectAll: "Seleccionar todo", selectAllCurrentResults: "Seleccionar todos los resultados actuales", selectAllMenu: "Seleccionar todos los menús", selectPage: "Seleccionar esta página", selectionMenu: "Menú de selección", showColumn: "Mostrar columna", sortColumn: "Ordenar la columna {name}", sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente", sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente", unfreezeColumn: "Descongelar columna" },
|
|
747
|
+
"es-MX": { columnActions: "Acciones de columna {name}", deselectAll: "Eliminar la selección de todo", deselectAllCurrentResults: "Eliminar la selección de todo en los resultados actuales", deselectPage: "Eliminar la selección de esta página", freezeColumn: "Inmovilizar columna", hideColumn: "Ocultar columna", moveColumnLeft: "Mover columna a la izquierda", moveColumnRight: "Mover columna a la derecha", rowActionsColumn: "Columna de acciones de fila", selectAll: "Seleccionar todo", selectAllCurrentResults: "Seleccionar todo en los resultados actuales", selectAllMenu: "Seleccionar todo el menú", selectPage: "Seleccionar esta página", selectionMenu: "Menú de selección", showColumn: "Mostrar columna", sortColumn: "Ordenar la columna {name}", sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente", sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente", unfreezeColumn: "Movilizar columna" },
|
|
748
|
+
"fr-FR": { columnActions: "Actions de la colonne {name}", deselectAll: "Tout désélectionner", deselectAllCurrentResults: "Tout désélectionner dans les résultats actuels", deselectPage: "Désélectionner cette page", freezeColumn: "Figer la colonne", hideColumn: "Masquer la colonne", moveColumnLeft: "Déplacer la colonne vers la gauche", moveColumnRight: "Déplacer la colonne vers la droite", rowActionsColumn: "Colonne des actions de ligne", selectAll: "Tout sélectionner", selectAllCurrentResults: "Tout sélectionner dans les résultats actuels", selectAllMenu: "Sélectionner tout le menu", selectPage: "Sélectionner cette page", selectionMenu: "Menu de sélection", showColumn: "Afficher la colonne", sortColumn: "Trier la colonne {name}", sortColumnInAscendingOrder: "Trier la colonne {name} dans l'ordre croissant", sortColumnInDescendingOrder: "Trier la colonne {name} dans l'ordre décroissant", unfreezeColumn: "Libérer la colonne" },
|
|
749
|
+
"it-IT": { columnActions: "azioni sulla colonna {name}", deselectAll: "Deseleziona tutti", deselectAllCurrentResults: "Deseleziona tutti i risultati attuali", deselectPage: "Deseleziona questa pagina", freezeColumn: "Blocca colonna", hideColumn: "Nascondi colonna", moveColumnLeft: "Sposta colonna a sinistra", moveColumnRight: "Sposta colonna a destra", rowActionsColumn: "Colonna delle azioni sulle righe", selectAll: "Seleziona tutto", selectAllCurrentResults: "Seleziona tutto nei risultati correnti", selectAllMenu: "Seleziona tutti i menu", selectPage: "Seleziona questa pagina", selectionMenu: "Menu di selezione", showColumn: "Mostra colonna", sortColumn: "Ordina la colonna {name}", sortColumnInAscendingOrder: "Ordina la colonna {name} in ordine crescente", sortColumnInDescendingOrder: "Ordina la colonna {name} in ordine decrescente", unfreezeColumn: "Sblocca colonna" },
|
|
750
|
+
"ja-JP": { columnActions: "{name}列のアクション", deselectAll: "すべての選択を解除", deselectAllCurrentResults: "現在の結果の選択をすべて解除", deselectPage: "このページの選択を解除", freezeColumn: "列を固定", hideColumn: "列を非表示", moveColumnLeft: "列を左に移動", moveColumnRight: "列を右に移動", rowActionsColumn: "行アクション列", selectAll: "すべて選択", selectAllCurrentResults: "現在の結果をすべて選択", selectAllMenu: "すべてのメニューを選択", selectPage: "このページを選択", selectionMenu: "選択メニュー", showColumn: "列を表示", sortColumn: "{name}列を並べ替え", sortColumnInAscendingOrder: "{name}列を昇順に並べ替え", sortColumnInDescendingOrder: "{name}列を降順に並べ替え", unfreezeColumn: "列の固定を解除" },
|
|
751
|
+
"pt-BR": { columnActions: "Ações da coluna {name}", deselectAll: "Desmarcar tudo", deselectAllCurrentResults: "Desmarcar tudo nos resultados atuais", deselectPage: "Desmarcar esta página", freezeColumn: "Congelar coluna", hideColumn: "Ocultar coluna", moveColumnLeft: "Mover coluna para a esquerda", moveColumnRight: "Mover a coluna para a direita", rowActionsColumn: "Coluna de ações da linha", selectAll: "Selecionar tudo", selectAllCurrentResults: "Selecionar tudo nos resultados atuais", selectAllMenu: "Selecionar todo o menu", selectPage: "Selecionar esta página", selectionMenu: "Menu de seleção", showColumn: "Mostrar coluna", sortColumn: "Classificar coluna {name}", sortColumnInAscendingOrder: "Classificar coluna {name} em ordem crescente", sortColumnInDescendingOrder: "Classificar coluna {name} em ordem decrescente", unfreezeColumn: "Liberar coluna" },
|
|
752
|
+
"zh-CN": { columnActions: "{name} 列操作", deselectAll: "取消所有选择", deselectAllCurrentResults: "取消当前结果中的所有选择", deselectPage: "取消选择此页面", freezeColumn: "冻结列", hideColumn: "隐藏列", moveColumnLeft: "将列向左移动", moveColumnRight: "将列向右移动", rowActionsColumn: "行操作列", selectAll: "全部选择", selectAllCurrentResults: "选择当前结果的全部", selectAllMenu: "选择全部菜单", selectPage: "选择此页", selectionMenu: "选择菜单", showColumn: "显示列", sortColumn: "排序 {name} 列", sortColumnInAscendingOrder: "按升序排列 {name} 列", sortColumnInDescendingOrder: "按降序排序 {name} 列", unfreezeColumn: "取消冻结列" }
|
|
753
|
+
}, zt = /* @__PURE__ */ Symbol("data-grid slashed zero key"), be = /* @__PURE__ */ Symbol("data-grid small container key"), Ie = /* @__PURE__ */ Symbol("data-grid touch device key"), rl = {
|
|
754
|
+
i18n: { messages: il },
|
|
755
|
+
name: "data-grid-columns"
|
|
756
|
+
}, cl = /* @__PURE__ */ te({
|
|
757
|
+
...rl,
|
|
758
|
+
props: {
|
|
759
|
+
/**
|
|
760
|
+
* Column definitions using 'key' to relate to data object.
|
|
761
|
+
*/
|
|
762
|
+
columns: {
|
|
763
|
+
type: Array,
|
|
764
|
+
required: !0
|
|
765
|
+
},
|
|
766
|
+
/**
|
|
767
|
+
* Columns being dragged, contains dragging column and a target column
|
|
768
|
+
*/
|
|
769
|
+
draggingColumns: {
|
|
770
|
+
type: Object,
|
|
771
|
+
default: void 0
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
* Determines the state of the current results: { filtered: boolean, allItemsVisible: boolean } to render the correct select all menu options
|
|
775
|
+
*/
|
|
776
|
+
visibleRowsState: {
|
|
777
|
+
type: Object,
|
|
778
|
+
default: void 0
|
|
779
|
+
},
|
|
780
|
+
/**
|
|
781
|
+
* Toggle the columns draggable events.
|
|
782
|
+
*/
|
|
783
|
+
hasDraggableColumns: {
|
|
784
|
+
type: Boolean,
|
|
785
|
+
default: !0
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
* If resize is enabled
|
|
789
|
+
*/
|
|
790
|
+
hasResizableColumns: {
|
|
791
|
+
type: Boolean,
|
|
792
|
+
default: !0
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* Signifies if the column panel is enabled.
|
|
796
|
+
*/
|
|
797
|
+
hasColumnPanel: {
|
|
798
|
+
type: Boolean,
|
|
799
|
+
default: !1
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
* If set to true, aligns the first column panel to the right of its button.
|
|
803
|
+
*/
|
|
804
|
+
hasFirstColumnPanelRightAligned: {
|
|
805
|
+
type: Boolean,
|
|
806
|
+
default: !1
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
* If the data grid has overflow on the left side
|
|
810
|
+
*/
|
|
811
|
+
hasLeftOverflow: {
|
|
812
|
+
type: Boolean,
|
|
813
|
+
default: !1
|
|
814
|
+
},
|
|
815
|
+
/**
|
|
816
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
817
|
+
*/
|
|
818
|
+
hoveredOverColumnState: {
|
|
819
|
+
type: Object,
|
|
820
|
+
required: !0
|
|
821
|
+
},
|
|
822
|
+
/**
|
|
823
|
+
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
824
|
+
*/
|
|
825
|
+
isMeasuringColumnWidths: {
|
|
826
|
+
type: Boolean,
|
|
827
|
+
default: !1
|
|
828
|
+
},
|
|
829
|
+
/**
|
|
830
|
+
* Used to disable hiding the last visible column.
|
|
831
|
+
*/
|
|
832
|
+
isOnlyOneVisibleColumn: {
|
|
833
|
+
type: Boolean,
|
|
834
|
+
default: !1
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
* If these columns are frozen (pinned) columns
|
|
838
|
+
*/
|
|
839
|
+
isFrozenColumns: {
|
|
840
|
+
type: Boolean,
|
|
841
|
+
default: !1
|
|
842
|
+
},
|
|
843
|
+
/**
|
|
844
|
+
* Show frozen columns separator
|
|
845
|
+
*/
|
|
846
|
+
showFrozenColumnsSeparator: {
|
|
847
|
+
type: Boolean,
|
|
848
|
+
default: !1
|
|
849
|
+
},
|
|
850
|
+
/**
|
|
851
|
+
* The column all items selected state
|
|
852
|
+
*/
|
|
853
|
+
allItemsSelectedState: {
|
|
854
|
+
type: Object,
|
|
855
|
+
default: void 0
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
* Determines if the user has enabled row selection
|
|
859
|
+
*/
|
|
860
|
+
selectable: {
|
|
861
|
+
type: Boolean,
|
|
862
|
+
default: !1
|
|
863
|
+
},
|
|
864
|
+
/**
|
|
865
|
+
* Adds an extra option when selecting all, to select items in other pages too
|
|
866
|
+
*/
|
|
867
|
+
selectableAcrossPages: {
|
|
868
|
+
type: Boolean,
|
|
869
|
+
default: !1
|
|
870
|
+
},
|
|
871
|
+
/**
|
|
872
|
+
* Determines which state of row selection is currently active. Used to display the "Select all" menu options.
|
|
873
|
+
*/
|
|
874
|
+
selectionState: {
|
|
875
|
+
type: String,
|
|
876
|
+
default: void 0
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
880
|
+
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
881
|
+
*/
|
|
882
|
+
sortBy: {
|
|
883
|
+
type: Array,
|
|
884
|
+
// NOTE: is an array to allow multi-sorting in the future
|
|
885
|
+
default: () => []
|
|
886
|
+
},
|
|
887
|
+
/**
|
|
888
|
+
* Truncates all data grid column headers
|
|
889
|
+
*/
|
|
890
|
+
truncateColumnHeaders: {
|
|
891
|
+
type: Boolean,
|
|
892
|
+
default: !1
|
|
893
|
+
},
|
|
894
|
+
/**
|
|
895
|
+
* The maximum width of the row actions in all rows
|
|
896
|
+
*/
|
|
897
|
+
rowActionsMaximumWidth: {
|
|
898
|
+
type: Number,
|
|
899
|
+
default: 0
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
emits: ["sort", "column-hover"],
|
|
903
|
+
setup(o, { expose: t, emit: n }) {
|
|
904
|
+
const e = o, l = 100, { t: a } = ge(), { columns: s, sortBy: r } = ke(e), i = _(), u = _({}), v = _({}), C = _(), E = _(), b = f(
|
|
905
|
+
() => e.columns.some((g) => g.sortable || e.hasColumnPanel || g.infoIconTooltip)
|
|
906
|
+
), d = (g) => n(G.SELECT_ALL_ROWS, g), h = (g) => g.field === J, A = f(() => e.selectionState === "all"), N = f(
|
|
907
|
+
() => [
|
|
908
|
+
{
|
|
909
|
+
text: a("selectPage"),
|
|
910
|
+
handler: () => d(!0),
|
|
911
|
+
disabled: e.selectionState === "page" || e.selectionState === "all"
|
|
912
|
+
},
|
|
913
|
+
e.visibleRowsState?.filtered ? {
|
|
914
|
+
text: a("selectAllCurrentResults"),
|
|
915
|
+
handler: () => n(G.SELECT_ALL_CURRENT_RESULTS),
|
|
916
|
+
addDivider: e.selectionState !== "none",
|
|
917
|
+
disabled: e.selectionState === "all"
|
|
918
|
+
} : {
|
|
919
|
+
text: a("selectAll"),
|
|
920
|
+
handler: () => n(G.SELECT_ALL_ACROSS_PAGES),
|
|
921
|
+
addDivider: e.selectionState !== "none",
|
|
922
|
+
disabled: e.selectionState === "all"
|
|
923
|
+
},
|
|
924
|
+
e.selectionState !== "none" && {
|
|
925
|
+
text: a("deselectPage"),
|
|
926
|
+
handler: () => d(!1),
|
|
927
|
+
addDivider: !e.visibleRowsState?.filtered,
|
|
928
|
+
// otherwise divider shown in deselect all in current results
|
|
929
|
+
disabled: e.selectionState === "unselected-page"
|
|
930
|
+
},
|
|
931
|
+
e.visibleRowsState?.filtered && e.selectionState !== "none" && {
|
|
932
|
+
text: a("deselectAllCurrentResults"),
|
|
933
|
+
handler: () => n(G.DESELECT_ALL_CURRENT_RESULTS),
|
|
934
|
+
addDivider: !0,
|
|
935
|
+
disabled: e.selectionState === "unselected-page" && e.visibleRowsState.allRowsVisible
|
|
936
|
+
},
|
|
937
|
+
e.selectionState !== "none" && {
|
|
938
|
+
text: a("deselectAll"),
|
|
939
|
+
handler: () => n(G.DESELECT_ALL)
|
|
940
|
+
}
|
|
941
|
+
].filter(Boolean)
|
|
942
|
+
), { startResize: S, isResizing: m, columnHoverEventToEmitAfterResizing: y } = Co(s, n), { isSorting: O, getSortingDirection: R, sortByColumnField: c } = To(r, s, n), p = (g) => {
|
|
943
|
+
if (!g.sortable)
|
|
944
|
+
return null;
|
|
945
|
+
const B = e.sortBy.find(({ field: he }) => he === g.field)?.direction;
|
|
946
|
+
return B ? {
|
|
947
|
+
[_e.ASCENDING]: ye.ASCENDING,
|
|
948
|
+
[_e.DESCENDING]: ye.DESCENDING
|
|
949
|
+
}[B] : ye.NONE;
|
|
950
|
+
}, T = f(() => (g) => e.hasDraggableColumns ? {
|
|
951
|
+
dragstart: (B) => {
|
|
952
|
+
n(G.COLUMN_DRAG_START, g, B);
|
|
953
|
+
},
|
|
954
|
+
dragover: (B) => {
|
|
955
|
+
B.preventDefault();
|
|
956
|
+
},
|
|
957
|
+
dragenter: (B) => {
|
|
958
|
+
B.preventDefault(), n(G.COLUMN_DRAG_ENTER, g, B);
|
|
959
|
+
},
|
|
960
|
+
drop: () => {
|
|
961
|
+
n(G.COLUMN_DROP, g);
|
|
962
|
+
},
|
|
963
|
+
dragend: () => {
|
|
964
|
+
n(G.COLUMN_DRAG_END);
|
|
965
|
+
}
|
|
966
|
+
} : {}), D = f(
|
|
967
|
+
() => (g) => [
|
|
968
|
+
{
|
|
969
|
+
text: a("moveColumnLeft"),
|
|
970
|
+
handler: () => n(G.COLUMN_MOVE, g, -1),
|
|
971
|
+
icon: io,
|
|
972
|
+
disabled: e.columns[0].field === g.field
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
text: a("moveColumnRight"),
|
|
976
|
+
handler: () => n(G.COLUMN_MOVE, g, 1),
|
|
977
|
+
icon: ro,
|
|
978
|
+
disabled: e.columns[e.columns.length - 1].field === g.field
|
|
979
|
+
},
|
|
980
|
+
!K.value && {
|
|
981
|
+
text: g?.frozen ? a("unfreezeColumn") : a("freezeColumn"),
|
|
982
|
+
handler: () => n(G.COLUMN_UPDATE, { ...g, frozen: !g?.frozen }),
|
|
983
|
+
icon: Pt
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
text: g?.visible !== !1 ? a("hideColumn") : a("showColumn"),
|
|
987
|
+
handler: () => {
|
|
988
|
+
n(G.COLUMN_UPDATE, {
|
|
989
|
+
...g,
|
|
990
|
+
visible: g?.visible === !1
|
|
991
|
+
});
|
|
992
|
+
},
|
|
993
|
+
icon: g?.visible !== !1 ? co : uo,
|
|
994
|
+
disabled: g?.mandatory || g?.visible !== !1 && e.isOnlyOneVisibleColumn
|
|
995
|
+
}
|
|
996
|
+
].filter(Boolean)
|
|
997
|
+
), F = (g) => {
|
|
998
|
+
C.value = g.field, E.value && clearTimeout(E.value);
|
|
999
|
+
}, z = (g) => {
|
|
1000
|
+
const B = setTimeout(() => {
|
|
1001
|
+
g.field === C.value && (C.value = "");
|
|
1002
|
+
}, l);
|
|
1003
|
+
E.value = B;
|
|
1004
|
+
}, U = (g) => {
|
|
1005
|
+
let B = {
|
|
1006
|
+
mouseenter: () => {
|
|
1007
|
+
F(g), m.value ? y.value = g : n("column-hover", g);
|
|
1008
|
+
},
|
|
1009
|
+
mouseleave: () => {
|
|
1010
|
+
z(g), m.value ? y.value = null : n("column-hover", null);
|
|
1011
|
+
},
|
|
1012
|
+
focus: () => {
|
|
1013
|
+
F(g), h(g) && Te(u.value[g.field]);
|
|
1014
|
+
},
|
|
1015
|
+
focusout: (ue) => {
|
|
1016
|
+
i.value?.contains(ue?.relatedTarget) || z(g);
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
return h(g) || (B = {
|
|
1020
|
+
...B,
|
|
1021
|
+
...T.value(g)
|
|
1022
|
+
}), B;
|
|
1023
|
+
}, x = (g) => g.infoIconTooltip || g.sortable || e.hasColumnPanel, k = (g, B) => {
|
|
1024
|
+
u.value?.[B] === void 0 && (u.value = { ...u.value, [B]: null }), g !== null && (u.value[B] = g);
|
|
1025
|
+
}, K = ie(
|
|
1026
|
+
be,
|
|
1027
|
+
f(() => !1)
|
|
1028
|
+
), ne = ie(Ie, _(!1)), re = f(() => {
|
|
1029
|
+
const g = {
|
|
1030
|
+
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
1031
|
+
};
|
|
1032
|
+
return s.value[0]?.frozen && !K.value ? {
|
|
1033
|
+
...g,
|
|
1034
|
+
"b-data-grid-columns--frozen": !0,
|
|
1035
|
+
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
1036
|
+
"b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
|
|
1037
|
+
} : {
|
|
1038
|
+
...g,
|
|
1039
|
+
"b-data-grid-columns--unfrozen": !0
|
|
1040
|
+
};
|
|
1041
|
+
}), ce = f(() => ({
|
|
1042
|
+
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1043
|
+
})), de = (g, B) => g && B === 0 ? at.BOTTOM_START : at.BOTTOM_END, me = (g, B) => ({
|
|
1044
|
+
"b-data-grid-columns__column--column-hovered": g.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1045
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": g.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1046
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": g.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1047
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && B === s.value.length - 1,
|
|
1048
|
+
"b-data-grid-columns__column--sortable": g.sortable,
|
|
1049
|
+
"b-data-grid-columns__column--padding-left-unset": g?.padding?.left === !1,
|
|
1050
|
+
"b-data-grid-columns__column--padding-right-unset": g?.padding?.right === !1,
|
|
1051
|
+
"b-data-grid-columns__column--numeric": g?.numeric,
|
|
1052
|
+
"b-data-grid-columns__column--frozen": g?.frozen,
|
|
1053
|
+
"b-data-grid-columns__column--is-re-ordering": g?.field === e.draggingColumns?.dragging?.field,
|
|
1054
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": g?.field === e.draggingColumns?.target?.field && e.draggingColumns?.dragToLeft,
|
|
1055
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": g?.field === e.draggingColumns?.target?.field && !e.draggingColumns?.dragToLeft,
|
|
1056
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": g.sortable || g.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1057
|
+
"b-data-grid-columns--small-container": K.value
|
|
1058
|
+
}), Ce = (g) => ({
|
|
1059
|
+
"b-data-grid-columns__column-header-and-actions--numeric": g?.numeric
|
|
1060
|
+
}), le = (g) => ({
|
|
1061
|
+
"b-data-grid-columns__column-actions--numeric": g?.numeric
|
|
1062
|
+
}), M = (g) => ({
|
|
1063
|
+
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1064
|
+
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === g.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1065
|
+
}), $ = f(() => ({
|
|
1066
|
+
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1067
|
+
})), H = (g) => ({
|
|
1068
|
+
"b-data-grid-columns__menu--hovered": C.value === g.field || ne.value
|
|
1069
|
+
});
|
|
1070
|
+
return t({
|
|
1071
|
+
columnHeaderRefs: u
|
|
1072
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: l, t: a, columns: s, sortBy: r, allColumnsRef: i, columnHeaderRefs: u, contextMenuRef: v, hoveredColumnField: C, closingTimeOutId: E, areAnyColumnsFocusable: b, onAllRowSelect: d, isActionsColumn: h, isAllSelectionState: A, selectAllMenu: N, startResize: S, isResizing: m, columnHoverEventToEmitAfterResizing: y, isSorting: O, getSortingDirection: R, sortByColumnField: c, getSortingColumnDirection: p, draggingEventsForColumn: T, contextualMenuData: D, showContextualMenu: F, hideContextualMenu: z, dataGridColumnEvents: U, hasColumnActions: x, registerColumnsRefs: k, isSmallContainer: K, isTouchDevice: ne, conditionalColumnsClasses: re, conditionalSelectColumnClasses: ce, computeMenuPosition: de, conditionalColumnClasses: me, conditionalColumnHeaderAndActionsClasses: Ce, conditionalColumnActionsClasses: le, conditionalColumnSeparatorClasses: M, conditionalColumnHeaderClasses: $, conditionalColumnMenuClasses: H, BentoCheckbox: It, BentoDatagridSortDirection: _e, BentoTypography: ve, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: He, BentoInfoIcon: lo, DatagridColumnsEvent: G, BentoMenu: Dt, BentoToggleButton: Ve, DecorativeCheckbox: so, ArrowUpAndDownSortIcon: $o, SortAscendingIcon: Yo, SortDescendingIcon: tl, TriangleDown: al };
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
var dl = function() {
|
|
1076
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1077
|
+
return n("div", { ref: "allColumnsRef", staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(l, a) {
|
|
1078
|
+
return n("div", t._g({ key: l.field, ref: (s) => e.registerColumnsRefs(s, l.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(l, a), style: { width: l.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${l.width}px` }, attrs: { "aria-colindex": a + 1, "aria-label": l.label, "aria-sort": e.getSortingColumnDirection(l), "data-testid": `${l.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(l), role: "columnheader", tabindex: l.sortable || t.hasColumnPanel || l.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(l)), [e.isActionsColumn(l) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column", class: e.conditionalSelectColumnClasses }, [t.selectableAcrossPages ? t._e() : n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { button: { variant: "tertiary", condensed: !0, "aria-label": e.t("selectAllMenu") }, data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-fixed-positioning": "", "menu-position": "bottom-start" }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1079
|
+
return [n("div", { staticClass: "b-data-grid-columns__select-column-menu-button" }, [n(e.DecorativeCheckbox, { staticClass: "b-data-grid-columns__select-column-menu-checkbox", attrs: { indeterminate: t.allItemsSelectedState.isIndeterminate, checked: t.allItemsSelectedState.allItemsSelected, "all-selected": e.isAllSelectionState, "data-testid": "checkbox-select-all" } }), n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu"), "aria-hidden": "true" } })], 1)];
|
|
1080
|
+
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(l), attrs: { "aria-label": e.t("columnActions", { name: l.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${l.field}`, function() {
|
|
1081
|
+
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(l.label))])];
|
|
1082
|
+
}, { column: l })], 2), e.hasColumnActions(l) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(l) }, [l.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": l.infoIconTooltip } })], 1) : t._e(), l.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(l.field), variant: "tertiary" }, on: { click: function(s) {
|
|
1083
|
+
return e.sortByColumnField(l.field);
|
|
1084
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1085
|
+
return [e.getSortingDirection(l.field) ? e.getSortingDirection(l.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: l.label }) } }) : e.getSortingDirection(l.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: l.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: l.label }) } })];
|
|
1086
|
+
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel ? n(e.BentoMenu, { ref: (s) => e.contextMenuRef[l.field] = s, refInFor: !0, staticClass: "b-data-grid-columns__menu", class: e.conditionalColumnMenuClasses(l), attrs: { "disable-arrow-down-opening-menu": "", data: e.contextualMenuData(l), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, a), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(s) {
|
|
1087
|
+
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1088
|
+
}, close: function(s) {
|
|
1089
|
+
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1090
|
+
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(l), attrs: { "data-testid": `data-grid-column-${l.field}`, role: "presentation" }, on: { mousedown: function(s) {
|
|
1091
|
+
return e.startResize(t.hasResizableColumns, l.field, s);
|
|
1092
|
+
}, click: function(s) {
|
|
1093
|
+
s.stopPropagation();
|
|
1094
|
+
} } }, [!t.isFrozenColumns || t.isFrozenColumns && a !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1095
|
+
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (l) => e.registerColumnsRefs(l, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: e.areAnyColumnsFocusable ? "0" : "-1" } })] : t._e()], 2);
|
|
1096
|
+
}, ul = [], fl = /* @__PURE__ */ V(
|
|
1097
|
+
cl,
|
|
1098
|
+
dl,
|
|
1099
|
+
ul,
|
|
1100
|
+
!1,
|
|
1101
|
+
null,
|
|
1102
|
+
"6c78a96a"
|
|
1103
|
+
);
|
|
1104
|
+
const gl = fl.exports;
|
|
1105
|
+
var se = /* @__PURE__ */ ((o) => (o.UPDATE_CONDENSED = "update:condensed", o.UPDATE_COLUMNS = "update:columns", o.UPDATE_ZEBRA_ROWS = "update:zebra-rows", o))(se || {});
|
|
1106
|
+
let vt = 0;
|
|
1107
|
+
const ml = {
|
|
1108
|
+
beforeCreate() {
|
|
1109
|
+
this.uuid = vt.toString(), vt += 1;
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
var Cl = function() {
|
|
1113
|
+
var t = this, n = t._self._c;
|
|
1114
|
+
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1115
|
+
}, _l = [], vl = /* @__PURE__ */ V(
|
|
1116
|
+
ml,
|
|
1117
|
+
Cl,
|
|
1118
|
+
_l,
|
|
1119
|
+
!1,
|
|
1120
|
+
null,
|
|
1121
|
+
null
|
|
1122
|
+
);
|
|
1123
|
+
const hl = vl.exports, pl = {
|
|
1124
|
+
"de-DE": { toggleColumnFreeze: "{label} Spaltenfixierung umschalten", toggleColumnVisibility: "Sichtbarkeit der Spalte {label} umschalten" },
|
|
1125
|
+
"en-GB": { toggleColumnFreeze: "Toggle {label} column freeze", toggleColumnVisibility: "Toggle {label} column visibility" },
|
|
1126
|
+
"en-US": { toggleColumnFreeze: "Toggle {label} column freeze", toggleColumnVisibility: "Toggle {label} column visibility" },
|
|
1127
|
+
"es-419": { toggleColumnFreeze: "Alternar la congelación de la columna {label}", toggleColumnVisibility: "Mostrar o ocultar la columna {label}" },
|
|
1128
|
+
"es-ES": { toggleColumnFreeze: "Alternar la congelación de la columna {label}", toggleColumnVisibility: "Mostrar/ocultar la visibilidad de la columna {label}" },
|
|
1129
|
+
"es-MX": { toggleColumnFreeze: "Alternar la congelación de la columna {label}", toggleColumnVisibility: "Mostrar/ocultar la visibilidad de la columna {label}" },
|
|
1130
|
+
"fr-FR": { toggleColumnFreeze: "Activer/désactiver le figement de la colonne {label}", toggleColumnVisibility: "Activer/désactiver la visibilité de la colonne {label}" },
|
|
1131
|
+
"it-IT": { toggleColumnFreeze: "Attiva/disattiva il blocco delle colonne {label}", toggleColumnVisibility: "Attiva la visibilità delle colonne {label}" },
|
|
1132
|
+
"ja-JP": { toggleColumnFreeze: "{label}列の固定を切り替え", toggleColumnVisibility: "{label}列の表示を切り替え" },
|
|
1133
|
+
"pt-BR": { toggleColumnFreeze: "Alternar congelamento da coluna {label}", toggleColumnVisibility: "Alternar visibilidade da coluna {label}" },
|
|
1134
|
+
"zh-CN": { toggleColumnFreeze: "切换 {label} 列冻结", toggleColumnVisibility: "切换 {label} 列的可见性" }
|
|
1135
|
+
}, bl = te({
|
|
1136
|
+
i18n: { messages: pl },
|
|
1137
|
+
name: "bento-data-grid",
|
|
1138
|
+
components: {
|
|
1139
|
+
BentoFreezeIcon: Pt,
|
|
1140
|
+
BentoToggle: Mt
|
|
1141
|
+
},
|
|
1142
|
+
props: {
|
|
1143
|
+
/**
|
|
1144
|
+
* Is column visibitlity toggle disabled
|
|
1145
|
+
*/
|
|
1146
|
+
isColumnVisibilityToggleDisabled: {
|
|
1147
|
+
type: Boolean,
|
|
1148
|
+
required: !0
|
|
1149
|
+
},
|
|
1150
|
+
/**
|
|
1151
|
+
* Column definition
|
|
1152
|
+
*/
|
|
1153
|
+
column: {
|
|
1154
|
+
type: Object,
|
|
1155
|
+
required: !0
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
emits: ["visible-column", "updated-column"],
|
|
1159
|
+
setup(o, { emit: t }) {
|
|
1160
|
+
const { t: n } = ge(), e = _(!1), l = f(() => o.column?.frozen), a = f(() => o.column?.visible !== !1), s = ie(
|
|
1161
|
+
be,
|
|
1162
|
+
f(() => !1)
|
|
1163
|
+
), r = () => {
|
|
1164
|
+
t("visible-column", { ...o.column, visible: !a.value });
|
|
1165
|
+
}, i = () => {
|
|
1166
|
+
t("updated-column", { ...o.column, frozen: !l.value });
|
|
1167
|
+
}, u = () => {
|
|
1168
|
+
l.value || (e.value = !0);
|
|
1169
|
+
}, v = () => {
|
|
1170
|
+
l.value || (e.value = !1);
|
|
1171
|
+
}, C = f(() => ({
|
|
1172
|
+
"b-data-grid-config-settings-column-row__freeze-icon--frozen": l.value
|
|
1173
|
+
}));
|
|
1174
|
+
return {
|
|
1175
|
+
// Values
|
|
1176
|
+
isFreezeIconOptionShown: e,
|
|
1177
|
+
isColumnFrozen: l,
|
|
1178
|
+
freezeIconConditionalClasses: C,
|
|
1179
|
+
isColumnVisible: a,
|
|
1180
|
+
isSmallContainer: s,
|
|
1181
|
+
// Methods
|
|
1182
|
+
toggleColumnVisibility: r,
|
|
1183
|
+
showFreezeIcon: u,
|
|
1184
|
+
hideFreezeIcon: v,
|
|
1185
|
+
toggleColumnFreeze: i,
|
|
1186
|
+
// Translations
|
|
1187
|
+
t: n
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
var Sl = function() {
|
|
1192
|
+
var t = this, n = t._self._c;
|
|
1193
|
+
return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: (t.isColumnFrozen || t.isFreezeIconOptionShown) && !t.isSmallContainer, expression: "(isColumnFrozen || isFreezeIconOptionShown) && !isSmallContainer" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
|
|
1194
|
+
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1195
|
+
} } })], 1);
|
|
1196
|
+
}, wl = [], Rl = /* @__PURE__ */ V(
|
|
1197
|
+
bl,
|
|
1198
|
+
Sl,
|
|
1199
|
+
wl,
|
|
1200
|
+
!1,
|
|
1201
|
+
null,
|
|
1202
|
+
"b49cbd8d"
|
|
1203
|
+
);
|
|
1204
|
+
const Al = Rl.exports, El = {
|
|
1205
|
+
"de-DE": { appearance: "Erscheinungsbild", closeConfigSettingsPanel: "Konfigurations-Einstellungen-Panel schließen", closeSearch: "Suche schließen", columnVisibilitySearchFilter: "Suchfilter für die Spaltensichtbarkeit", columns: "Spalten", condensed: "Kompakt", condensedToggle: "Umschalter für Kompakt", configSettingsPanel: "Konfigurationseinstellungen-Panel", displayOptions: "Anzeigeoptionen", noColumnsMatch: "Keine Spalten entsprechen dieser Suche", search: "Suche", showAllColumns: "Alle Spalten anzeigen ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Konfigurationsmenü ein- oder ausblenden", zebraRows: "Zebramuster", zebraRowsToggle: "Zebramuster schalten" },
|
|
1206
|
+
"en-GB": { appearance: "Appearance", closeConfigSettingsPanel: "Close configuration settings panel", closeSearch: "Close search", columnVisibilitySearchFilter: "Column visibility search filter", columns: "Columns", condensed: "Condensed", condensedToggle: "Condensed toggle", configSettingsPanel: "Configuration settings Panel", displayOptions: "Display options", noColumnsMatch: "No columns match this search", search: "Search", showAllColumns: "Show all columns ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility", zebraRows: "Zebra rows", zebraRowsToggle: "Zebra rows toggle" },
|
|
1207
|
+
"en-US": { appearance: "Appearance", closeConfigSettingsPanel: "Close configuration settings panel", closeSearch: "Close search", columnVisibilitySearchFilter: "Column visibility search filter", columns: "Columns", condensed: "Condensed", condensedToggle: "Condensed toggle", configSettingsPanel: "Configuration settings Panel", displayOptions: "Display options", noColumnsMatch: "No columns match this search", search: "Search", showAllColumns: "Show all columns ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility", zebraRows: "Zebra rows", zebraRowsToggle: "Zebra rows toggle" },
|
|
1208
|
+
"es-419": { appearance: "Apariencia", closeConfigSettingsPanel: "Cerrar el panel de configuración", closeSearch: "Cerrar búsqueda", columnVisibilitySearchFilter: "Filtro de búsqueda por visibilidad de columnas", columns: "Columnas", condensed: "Condensado", condensedToggle: "Alternador condensado", configSettingsPanel: "Panel de configuración", displayOptions: "Opciones de visualización", noColumnsMatch: "No hay columnas que coincidan con esta búsqueda", search: "Buscar", showAllColumns: "Mostrar todas las columnas ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Mostrar u ocultar el panel de configuración", zebraRows: "Filas alternadas", zebraRowsToggle: "Interruptor de filas alternadas" },
|
|
1209
|
+
"es-ES": { appearance: "Aspecto", closeConfigSettingsPanel: "Cerrar el panel de ajustes de configuración", closeSearch: "Cerrar búsqueda", columnVisibilitySearchFilter: "Filtro de búsqueda de visibilidad en columnas", columns: "Columnas", condensed: "Condensado", condensedToggle: "Interruptor condensado", configSettingsPanel: "Panel de ajustes de configuración", displayOptions: "Opciones de visualización", noColumnsMatch: "Ninguna columna corresponde a esta búsqueda", search: "Buscar", showAllColumns: "Mostrar todas las columnas ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Mostrar/ocultar el panel de ajustes", zebraRows: "Filas de cebra", zebraRowsToggle: "Alternar filas de cebra" },
|
|
1210
|
+
"es-MX": { appearance: "Aspecto", closeConfigSettingsPanel: "Cerrar el panel de ajustes de configuración", closeSearch: "Cerrar búsqueda", columnVisibilitySearchFilter: "Filtro de búsqueda de visibilidad en columnas", columns: "Columnas", condensed: "Condensado", condensedToggle: "Botón de alternancia condensado", configSettingsPanel: "Panel de ajustes de configuración", displayOptions: "Opciones de visualización", noColumnsMatch: "No hay columnas que coincidan con esta búsqueda", search: "Buscar", showAllColumns: "Mostrar todas las columnas ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Mostrar/ocultar el panel de ajustes de configuración", zebraRows: "Filas cebra", zebraRowsToggle: "Botón de alternancia de filas cebra" },
|
|
1211
|
+
"fr-FR": { appearance: "Apparence", closeConfigSettingsPanel: "Fermer le panneau des paramètres de configuration", closeSearch: "Fermer la recherche", columnVisibilitySearchFilter: "Filtre de recherche de visibilité des colonnes", columns: "Colonnes", condensed: "Condensé", condensedToggle: "Activer/désactiver l'affichage condensé", configSettingsPanel: "Panneau des paramètres de configuration", displayOptions: "Options d'affichage", noColumnsMatch: "Aucune colonne ne correspond à cette recherche", search: "Rechercher", showAllColumns: "Afficher toutes les colonnes ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Afficher/masquer le panneau des paramètres de configuration", zebraRows: "Lignes alternées", zebraRowsToggle: "Activer/désactiver les lignes alternées" },
|
|
1212
|
+
"it-IT": { appearance: "Aspetto", closeConfigSettingsPanel: "Chiudi il pannello delle impostazioni di configurazione", closeSearch: "Chiudi ricerca", columnVisibilitySearchFilter: "Filtro di ricerca per la visibilità delle colonne", columns: "Colonne", condensed: "In formato ridotto", condensedToggle: "Interruttore in formato ridotto", configSettingsPanel: "Pannello delle impostazioni di configurazione", displayOptions: "Opzioni di visualizzazione", noColumnsMatch: "Nessuna colonna corrisponde a questa ricerca", search: "Cerca", showAllColumns: "Mostra tutte le colonne ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Attiva/disattiva la visibilità del pannello delle impostazioni di configurazione", zebraRows: "Righe zebra", zebraRowsToggle: "Attiva/disattiva righe in stile zebra" },
|
|
1213
|
+
"ja-JP": { appearance: "外観", closeConfigSettingsPanel: "構成設定パネルを閉じる", closeSearch: "検索を閉じる", columnVisibilitySearchFilter: "列の表示設定検索フィルター", columns: "列", condensed: "コンパクト表示", condensedToggle: "コンパクト表示の切り替え", configSettingsPanel: "構成設定パネル", displayOptions: "表示オプション", noColumnsMatch: "この検索に一致する列はありません", search: "検索", showAllColumns: "すべての列を表示 ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "構成設定パネルの表示を切り替え", zebraRows: "縞模様(行)", zebraRowsToggle: "縞模様(行)の切り替え" },
|
|
1214
|
+
"pt-BR": { appearance: "Aparência", closeConfigSettingsPanel: "Fechar painel de configurações", closeSearch: "Fechar busca", columnVisibilitySearchFilter: "Filtro de busca de visibilidade da coluna", columns: "Colunas", condensed: "Condensado", condensedToggle: "Alternância condensada", configSettingsPanel: "Painel de configurações", displayOptions: "Opções de exibição", noColumnsMatch: "Nenhuma coluna corresponde a esta busca", search: "Busca", showAllColumns: "Mostrar todas as colunas ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "Alternar a visibilidade do painel de configurações", zebraRows: "Linhas alternadas", zebraRowsToggle: "Alternar linhas alternadas" },
|
|
1215
|
+
"zh-CN": { appearance: "外观", closeConfigSettingsPanel: "关闭配置设置面板", closeSearch: "关闭搜索", columnVisibilitySearchFilter: "列可见性搜索筛选器", columns: "列", condensed: "扼要", condensedToggle: "扼要切换", configSettingsPanel: "配置设置面板", displayOptions: "显示选项", noColumnsMatch: "没有符合此搜索条件的列", search: "搜索", showAllColumns: "显示所有列 ({numberOfColumns})", toggleConfigSettingsPanelVisibility: "切换配置设置面板的可见性", zebraRows: "斑马条纹行", zebraRowsToggle: "斑马条纹行切换" }
|
|
1216
|
+
}, yl = te({
|
|
1217
|
+
i18n: { messages: El },
|
|
1218
|
+
name: "bento-data-grid",
|
|
1219
|
+
components: {
|
|
1220
|
+
BentoButton: Nt,
|
|
1221
|
+
BentoCrossIcon: Et,
|
|
1222
|
+
BentoPopover: Xn,
|
|
1223
|
+
BentoSettingsIcon: hl,
|
|
1224
|
+
BentoToggleButton: Ve,
|
|
1225
|
+
BentoDataGridConfigSettingsConfigRow: Al,
|
|
1226
|
+
BentoSearchBar: fo,
|
|
1227
|
+
BentoSearchIcon: go,
|
|
1228
|
+
BentoToggle: Mt,
|
|
1229
|
+
BentoTypography: ve
|
|
1230
|
+
},
|
|
1231
|
+
directives: { BentoClickOutsideDirective: mo },
|
|
1232
|
+
props: {
|
|
1233
|
+
/**
|
|
1234
|
+
* Column definitions
|
|
1235
|
+
*/
|
|
1236
|
+
columns: {
|
|
1237
|
+
type: Array,
|
|
1238
|
+
required: !0
|
|
1239
|
+
},
|
|
1240
|
+
/**
|
|
1241
|
+
* Sets the row cells to the condensed padding state.
|
|
1242
|
+
*/
|
|
1243
|
+
condensed: {
|
|
1244
|
+
type: Boolean,
|
|
1245
|
+
default: !1
|
|
1246
|
+
},
|
|
1247
|
+
/**
|
|
1248
|
+
* Sets a different background color for even rows.
|
|
1249
|
+
*/
|
|
1250
|
+
zebraRows: {
|
|
1251
|
+
type: Boolean,
|
|
1252
|
+
default: !1
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
emits: [
|
|
1256
|
+
se.UPDATE_CONDENSED,
|
|
1257
|
+
se.UPDATE_COLUMNS,
|
|
1258
|
+
se.UPDATE_ZEBRA_ROWS
|
|
1259
|
+
],
|
|
1260
|
+
setup(o, { emit: t }) {
|
|
1261
|
+
const { t: n } = ge(), e = _(null), l = Le("data-grid-config-settings-popover"), a = _(null), s = _(!1), r = _(!0), i = _(null), u = _(""), v = xe(o, "columns"), C = _(!1), E = ao(u, v), b = () => {
|
|
1262
|
+
u.value = "";
|
|
1263
|
+
}, d = f(
|
|
1264
|
+
() => !o.columns.some((p) => p.visible === !1 && !p.mandatory)
|
|
1265
|
+
), h = () => {
|
|
1266
|
+
b(), C.value = !C.value, C.value ? q(() => a.value.$refs.bentoInputField?.focusInput()) : q(() => i?.value?.$el?.focus()), r.value = d.value;
|
|
1267
|
+
}, A = (p) => p.mandatory ?? !1, N = (p) => {
|
|
1268
|
+
const T = o.columns.map((D) => ({
|
|
1269
|
+
...D,
|
|
1270
|
+
visible: p.field === D.field ? p.visible : D.visible
|
|
1271
|
+
}));
|
|
1272
|
+
t(se.UPDATE_COLUMNS, T);
|
|
1273
|
+
}, S = (p) => {
|
|
1274
|
+
p ? t(
|
|
1275
|
+
se.UPDATE_COLUMNS,
|
|
1276
|
+
o.columns.map((T) => ({ ...T, visible: !0 }))
|
|
1277
|
+
) : t(
|
|
1278
|
+
se.UPDATE_COLUMNS,
|
|
1279
|
+
o.columns.map((T) => ({ ...T, visible: T?.mandatory === !0 }))
|
|
1280
|
+
);
|
|
1281
|
+
}, m = (p) => {
|
|
1282
|
+
const T = o.columns.map((D) => ({
|
|
1283
|
+
...D,
|
|
1284
|
+
frozen: p.field === D.field ? !!p?.frozen : !!D?.frozen
|
|
1285
|
+
}));
|
|
1286
|
+
t(se.UPDATE_COLUMNS, T);
|
|
1287
|
+
}, y = (p) => {
|
|
1288
|
+
s.value = p, r.value = d.value;
|
|
1289
|
+
};
|
|
1290
|
+
return {
|
|
1291
|
+
// Values
|
|
1292
|
+
configSettingsButtonRef: e,
|
|
1293
|
+
popoverId: l,
|
|
1294
|
+
isConfigSettingsPanelOpen: s,
|
|
1295
|
+
allColumnsVisbilityToggleState: r,
|
|
1296
|
+
filteredColumnVisibilityColumns: E,
|
|
1297
|
+
searchTerm: u,
|
|
1298
|
+
isColumnVisibilityFilterShown: C,
|
|
1299
|
+
searchBarRef: a,
|
|
1300
|
+
searchButtonRef: i,
|
|
1301
|
+
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: J,
|
|
1302
|
+
// Methods
|
|
1303
|
+
setConfigSettingsPanelVisibility: y,
|
|
1304
|
+
emitCondensedToggle: (p) => t(se.UPDATE_CONDENSED, p),
|
|
1305
|
+
toggleAllColumnVisibility: S,
|
|
1306
|
+
clearAction: b,
|
|
1307
|
+
toggleColumnFilter: h,
|
|
1308
|
+
emitVisibleColumns: N,
|
|
1309
|
+
emitFrozenColumns: m,
|
|
1310
|
+
onClickOutside: () => y(!1),
|
|
1311
|
+
isColumnVisibilityToggleDisabled: A,
|
|
1312
|
+
emitZebraRowsToggle: (p) => t(se.UPDATE_ZEBRA_ROWS, p),
|
|
1313
|
+
// Translations
|
|
1314
|
+
t: n
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1318
|
+
var Ll = function() {
|
|
1319
|
+
var t = this, n = t._self._c;
|
|
1320
|
+
return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
|
|
1321
|
+
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
1322
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1323
|
+
return [n("bento-settings-icon", { attrs: { "svg-title": t.t("toggleConfigSettingsPanelVisibility") } })];
|
|
1324
|
+
}, proxy: !0 }]) })], 1)]), t.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: t.popoverId, open: t.isConfigSettingsPanelOpen, "aria-label": t.t("configSettingsPanel"), "target-element": t.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [t._v(" " + t._s(t.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(e) {
|
|
1325
|
+
return t.setConfigSettingsPanelVisibility(!1);
|
|
1326
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1327
|
+
return [n("bento-cross-icon", { attrs: { "svg-title": t.t("closeConfigSettingsPanel") } })];
|
|
1328
|
+
}, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__appearance" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__appearance-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("appearance")) + " ")]), n("div", { staticClass: "b-data-grid-config-settings__appearance-button" }, [n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("condensedToggle"), value: t.condensed }, on: { input: t.emitCondensedToggle } }, [t._v(" " + t._s(t.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__appearance-button" }, [n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("zebraRowsToggle"), value: t.zebraRows }, on: { input: t.emitZebraRowsToggle } }, [t._v(" " + t._s(t.t("zebraRows")) + " ")])], 1)], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("columns")) + " ")]), t.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1329
|
+
return [n("bento-cross-icon")];
|
|
1330
|
+
}, proxy: !0 }], null, !1, 2651303519) }, [t._v(" " + t._s(t.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1331
|
+
return [n("bento-search-icon")];
|
|
1332
|
+
}, proxy: !0 }], null, !1, 2341044271) }, [t._v(t._s(t.t("search")))])], 1), t.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: t.searchTerm, "input-field-aria-label": t.t("columnVisibilitySearchFilter").toString() }, on: { input: function(e) {
|
|
1333
|
+
t.searchTerm = e;
|
|
1334
|
+
}, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
|
|
1335
|
+
return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
|
|
1336
|
+
}), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
|
|
1337
|
+
}, Tl = [], Ol = /* @__PURE__ */ V(
|
|
1338
|
+
yl,
|
|
1339
|
+
Ll,
|
|
1340
|
+
Tl,
|
|
1341
|
+
!1,
|
|
1342
|
+
null,
|
|
1343
|
+
"0e477266"
|
|
1344
|
+
);
|
|
1345
|
+
const Il = Ol.exports, xt = {
|
|
1346
|
+
"de-DE": { filterBar: "Filter", gettingYourData: "Ihre Daten werden abgerufen", loading: "Laden", noResults: "Keine Ergebnisse", pagination: "Paginierung", selectRow: "Zeile auswählen", showMore: "Mehr anzeigen", sortAscending: "{field} aufsteigend sortieren", sortDescending: "{field} absteigend sortieren", sortInactive: "{field} Sortierung inaktiv" },
|
|
1347
|
+
"en-GB": { filterBar: "Filters", gettingYourData: "Getting your data", loading: "Loading", noResults: "No results", pagination: "Pagination", selectRow: "Select row", showMore: "Show more", sortAscending: "{field} sort ascending", sortDescending: "{field} sort descending", sortInactive: "{field} sort inactive" },
|
|
1348
|
+
"en-US": { filterBar: "Filters", gettingYourData: "Getting your data", loading: "Loading", noResults: "No results", pagination: "Pagination", selectRow: "Select row", showMore: "Show more", sortAscending: "{field} sort ascending", sortDescending: "{field} sort descending", sortInactive: "{field} sort inactive" },
|
|
1349
|
+
"es-419": { filterBar: "Filtros", gettingYourData: "Obteniendo tus datos", loading: "Cargando", noResults: "No hay resultados", pagination: "Paginación", selectRow: "Seleccionar fila", showMore: "Mostrar más", sortAscending: "{field} en orden ascendente", sortDescending: "{field} en orden descendente", sortInactive: "{field} en orden inactivo" },
|
|
1350
|
+
"es-ES": { filterBar: "Filtros", gettingYourData: "Obtención de tus datos", loading: "Cargando", noResults: "No hay resultados", pagination: "Paginación", selectRow: "Seleccionar fila", showMore: "Mostrar más", sortAscending: "Ordenamiento de {field} ascendente", sortDescending: "Ordenamiento de {field} descendente", sortInactive: "Ordenamiento de {field} inactivo" },
|
|
1351
|
+
"es-MX": { filterBar: "Filtros", gettingYourData: "Obtener tus datos", loading: "Cargando", noResults: "No hay resultados", pagination: "Paginación", selectRow: "Seleccionar fila", showMore: "Mostrar más", sortAscending: "Ordenamiento de {field} ascendente", sortDescending: "Ordenamiento de {field} descendente", sortInactive: "Ordenamiento de {field} inactivo" },
|
|
1352
|
+
"fr-FR": { filterBar: "Filtres", gettingYourData: "Obtenir vos données", loading: "Chargement", noResults: "Aucun résultat", pagination: "Pagination", selectRow: "Sélectionner une ligne", showMore: "Afficher plus", sortAscending: "Tri de {field} par ordre croissant", sortDescending: "{field} trier par ordre décroissant", sortInactive: "Tri de {field} inactif" },
|
|
1353
|
+
"it-IT": { filterBar: "Filtri", gettingYourData: "Ottenimento dei dati", loading: "Caricamento", noResults: "Nessun risultato", pagination: "Paginazione", selectRow: "Seleziona riga", showMore: "Mostra di più", sortAscending: "{field} ordine crescente", sortDescending: "{field} ordine decrescente", sortInactive: "{field} ordine inattivo" },
|
|
1354
|
+
"ja-JP": { filterBar: "フィルター", gettingYourData: "データを読み込み中", loading: "読み込み中", noResults: "結果なし", pagination: "ページネーション", selectRow: "行を選択", showMore: "もっと見る", sortAscending: "{field}昇順で並べ替え", sortDescending: "{field}降順で並べ替え", sortInactive: "{field}の並べ替えが無効" },
|
|
1355
|
+
"pt-BR": { filterBar: "Filtros", gettingYourData: "Obtendo seus dados", loading: "Carregando", noResults: "Nenhum resultado", pagination: "Paginação", selectRow: "Selecionar linha", showMore: "Mostrar mais", sortAscending: "{field} ordenar em ordem ascendente", sortDescending: "{field} ordenar em ordem decrescente", sortInactive: "{field} ordenação inativa" },
|
|
1356
|
+
"zh-CN": { filterBar: "筛选器", gettingYourData: "获取数据", loading: "正在加载", noResults: "没有结果", pagination: "分页", selectRow: "选择行", showMore: "显示更多", sortAscending: "{field} 升序排序", sortDescending: "{field} 降序排序", sortInactive: "{field} 排序未激活" }
|
|
1357
|
+
}, Nl = {
|
|
1358
|
+
i18n: { messages: xt }
|
|
1359
|
+
}, Dl = /* @__PURE__ */ te({
|
|
1360
|
+
...Nl,
|
|
1361
|
+
__name: "data-grid-lazy-load",
|
|
1362
|
+
props: {
|
|
1363
|
+
loading: { type: Boolean },
|
|
1364
|
+
isInfiniteScroll: { type: Boolean }
|
|
1365
|
+
},
|
|
1366
|
+
setup(o) {
|
|
1367
|
+
const { t } = ge();
|
|
1368
|
+
return { __sfc: !0, t, BentoLoadingButton: Qn, BentoLoadingButtonState: Jn, BentoLoadingIndicator: We, BentoDatagridEvent: L };
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
var Ml = function() {
|
|
1372
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1373
|
+
return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(l) {
|
|
1374
|
+
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1375
|
+
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1376
|
+
}, Fl = [], Pl = /* @__PURE__ */ V(
|
|
1377
|
+
Dl,
|
|
1378
|
+
Ml,
|
|
1379
|
+
Fl,
|
|
1380
|
+
!1,
|
|
1381
|
+
null,
|
|
1382
|
+
"fd9b8204"
|
|
1383
|
+
);
|
|
1384
|
+
const zl = Pl.exports, ht = () => {
|
|
1385
|
+
const o = document.activeElement;
|
|
1386
|
+
return o ? o.matches(":focus-visible") || o.matches(".focus-visible") : !1;
|
|
1387
|
+
}, xl = ({ gridcellRef: o }) => {
|
|
1388
|
+
const t = _(!1), n = _(!1), e = _(), l = _([]), a = _(!1), s = _(!1), r = _(!1), i = _(!1), u = _(!1), v = f(() => (e.value?.length ?? 0) > 1), C = (R) => R ? o.value?.contains(R) ? !0 : l.value?.map((c) => c.value).some((c) => c === R || c?.contains(R)) : !1, E = (R) => {
|
|
1389
|
+
C(R) || (t.value = !1);
|
|
1390
|
+
}, b = () => {
|
|
1391
|
+
i.value = !0, setTimeout(() => {
|
|
1392
|
+
o.value?.contains(document.activeElement) && o.value?.focus();
|
|
1393
|
+
}, 0);
|
|
1394
|
+
}, d = () => {
|
|
1395
|
+
s.value = !1, a.value = !1, u.value = !0, oe(o.value), o.value?.focus();
|
|
1396
|
+
}, h = () => {
|
|
1397
|
+
const R = o.value?.closest('[role="grid"]');
|
|
1398
|
+
if (!R)
|
|
1399
|
+
return null;
|
|
1400
|
+
const c = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT, {
|
|
1401
|
+
acceptNode(p) {
|
|
1402
|
+
return R.contains(p) ? NodeFilter.FILTER_REJECT : p.tabIndex >= 0 && !p.hasAttribute("disabled") ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
1405
|
+
return c.currentNode = R, c.nextNode();
|
|
1406
|
+
}, A = () => {
|
|
1407
|
+
if (a.value || s.value)
|
|
1408
|
+
return !0;
|
|
1409
|
+
const R = document.activeElement;
|
|
1410
|
+
return !!(R && R !== o.value && o.value?.contains(R));
|
|
1411
|
+
};
|
|
1412
|
+
return {
|
|
1413
|
+
shouldShowCellActions: t,
|
|
1414
|
+
isFocused: n,
|
|
1415
|
+
focusableItems: e,
|
|
1416
|
+
childrenMenuContainerElements: l,
|
|
1417
|
+
hasInteractiveElFocusedInside: a,
|
|
1418
|
+
cellInteractionMode: s,
|
|
1419
|
+
isNavigatingAway: r,
|
|
1420
|
+
isReturningFromMenu: i,
|
|
1421
|
+
isMultiWidgetCell: v,
|
|
1422
|
+
isFocusWithinCellOrMenu: C,
|
|
1423
|
+
hideCellActionsIfLeft: E,
|
|
1424
|
+
onMenuClose: b,
|
|
1425
|
+
exitInteractionMode: d,
|
|
1426
|
+
findNextFocusableAfterGrid: h,
|
|
1427
|
+
hasChildFocusedInside: A,
|
|
1428
|
+
handleFocus: async (R) => {
|
|
1429
|
+
if (!ht())
|
|
1430
|
+
return;
|
|
1431
|
+
n.value = !0, document.activeElement === o.value && (s.value = !1, a.value = !1), R(), !v.value && !i.value && !u.value && (Oe(e.value), await q(), Te(o.value) && (a.value = !0)), i.value = !1, u.value = !1;
|
|
1432
|
+
},
|
|
1433
|
+
handleFocusout: (R) => {
|
|
1434
|
+
ht() && (C(R.relatedTarget) || (a.value = !1, s.value = !1, r.value = !1));
|
|
1435
|
+
},
|
|
1436
|
+
handleKeydown: (R) => {
|
|
1437
|
+
const c = document.activeElement, p = c === o.value;
|
|
1438
|
+
if (!p && !!c && !!o.value?.contains(c) && (R.key === W.ENTER || R.key === " " || R.key === W.F2)) {
|
|
1439
|
+
R.stopPropagation();
|
|
1440
|
+
return;
|
|
1441
|
+
}
|
|
1442
|
+
if (p && (e.value?.length ?? 0) > 0 && (R.key === W.ENTER || R.key === W.F2)) {
|
|
1443
|
+
R.stopPropagation(), R.preventDefault(), s.value ? d() : (s.value = !0, Oe(e.value), q(() => {
|
|
1444
|
+
Te(o.value) && (a.value = !0);
|
|
1445
|
+
}));
|
|
1446
|
+
return;
|
|
1447
|
+
}
|
|
1448
|
+
if (R.key === W.ESCAPE && A()) {
|
|
1449
|
+
R.stopPropagation(), R.preventDefault(), d();
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1452
|
+
const D = A();
|
|
1453
|
+
if ((s.value || v.value && t.value && D) && R.key !== W.TAB) {
|
|
1454
|
+
if (R.stopPropagation(), R.key === W.ARROW_LEFT || R.key === W.ARROW_RIGHT) {
|
|
1455
|
+
const z = e.value?.findIndex((U) => U.node === document.activeElement);
|
|
1456
|
+
if (z !== void 0 && z >= 0) {
|
|
1457
|
+
const U = R.key === W.ARROW_RIGHT ? z + 1 : z - 1;
|
|
1458
|
+
U >= 0 && U < e.value.length ? (oe(o.value), e.value[U].node.setAttribute("tabindex", "0"), e.value[U].node.focus()) : d(), R.preventDefault();
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
return;
|
|
1462
|
+
}
|
|
1463
|
+
if (R.key === W.TAB && D) {
|
|
1464
|
+
R.preventDefault(), R.stopPropagation(), r.value = !0;
|
|
1465
|
+
const z = h();
|
|
1466
|
+
setTimeout(() => {
|
|
1467
|
+
a.value = !1, t.value = !1, q(() => z?.focus());
|
|
1468
|
+
}, 0);
|
|
1469
|
+
return;
|
|
1470
|
+
}
|
|
1471
|
+
R.key !== W.TAB && (D && (r.value = !0), a.value = !1, n.value = !1, t.value = !1, oe(o.value));
|
|
1472
|
+
},
|
|
1473
|
+
handleCellActionsFocus: async (R, c) => {
|
|
1474
|
+
if (r.value) {
|
|
1475
|
+
r.value = !1;
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1478
|
+
R(c), await q(), t.value = !0;
|
|
1479
|
+
},
|
|
1480
|
+
handleCellActionsFocusout: (R, c) => {
|
|
1481
|
+
const p = r.value;
|
|
1482
|
+
R(c), p || E(c?.relatedTarget);
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
let pt = 0;
|
|
1487
|
+
const Bl = {
|
|
1488
|
+
beforeCreate() {
|
|
1489
|
+
this.uuid = pt.toString(), pt += 1;
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
var Ul = function() {
|
|
1493
|
+
var t = this, n = t._self._c;
|
|
1494
|
+
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: "M9.38867 2.21717C10.4626 1.14323 12.2044 1.14323 13.2783 2.21717L13.7832 2.72205C14.857 3.79601 14.8571 5.53782 13.7832 6.6117L5.64355 14.7504H1.25V10.3558L9.38867 2.21717ZM2.75 10.9769V13.2504H5.02246L11.2715 6.9994L8.99902 4.72693L2.75 10.9769ZM12.2168 3.27772C11.7286 2.78987 10.9373 2.78967 10.4492 3.27772L10.0596 3.66639L12.332 5.93885L12.7217 5.55018C13.2098 5.06203 13.2098 4.27076 12.7217 3.7826L12.2168 3.27772Z" } })]);
|
|
1495
|
+
}, kl = [], $l = /* @__PURE__ */ V(
|
|
1496
|
+
Bl,
|
|
1497
|
+
Ul,
|
|
1498
|
+
kl,
|
|
1499
|
+
!1,
|
|
1500
|
+
null,
|
|
1501
|
+
null
|
|
1502
|
+
);
|
|
1503
|
+
const bt = $l.exports, Wl = {
|
|
1504
|
+
"de-DE": { copy: "Kopieren", edit: "Bearbeiten", more: "Mehr", open: "Offen" },
|
|
1505
|
+
"en-GB": { copy: "Copy", edit: "Edit", more: "More", open: "Open" },
|
|
1506
|
+
"en-US": { copy: "Copy", edit: "Edit", more: "More", open: "Open" },
|
|
1507
|
+
"es-419": { copy: "Copiar", edit: "Editar", more: "Más", open: "Abrir" },
|
|
1508
|
+
"es-ES": { copy: "Copiar", edit: "Editar", more: "Más", open: "Abrir" },
|
|
1509
|
+
"es-MX": { copy: "Copiar", edit: "Editar", more: "Más", open: "Abrir" },
|
|
1510
|
+
"fr-FR": { copy: "Copier", edit: "Modifier", more: "Plus", open: "Ouvrir" },
|
|
1511
|
+
"it-IT": { copy: "Copia", edit: "Modifica", more: "Altro", open: "Apri" },
|
|
1512
|
+
"ja-JP": { copy: "コピー", edit: "編集", more: "その他", open: "開く" },
|
|
1513
|
+
"pt-BR": { copy: "Copiar", edit: "Editar", more: "Mais", open: "Abrir" },
|
|
1514
|
+
"zh-CN": { copy: "复制", edit: "编辑", more: "更多", open: "打开" }
|
|
1515
|
+
}, Gl = {
|
|
1516
|
+
i18n: { messages: Wl },
|
|
1517
|
+
name: "data-grid-cell-actions"
|
|
1518
|
+
}, Vl = /* @__PURE__ */ te({
|
|
1519
|
+
...Gl,
|
|
1520
|
+
props: {
|
|
1521
|
+
/**
|
|
1522
|
+
* Column definitions using 'key' to relate to data object.
|
|
1523
|
+
*/
|
|
1524
|
+
cellActions: {
|
|
1525
|
+
type: [Array, Function],
|
|
1526
|
+
required: !0,
|
|
1527
|
+
validator: (o) => o?.length <= 2
|
|
1528
|
+
},
|
|
1529
|
+
/**
|
|
1530
|
+
* The column field key.
|
|
1531
|
+
*/
|
|
1532
|
+
columnKey: {
|
|
1533
|
+
type: String,
|
|
1534
|
+
default: void 0
|
|
1535
|
+
},
|
|
1536
|
+
/**
|
|
1537
|
+
* Disables any opening of the cell actions menus using the down arrow key.
|
|
1538
|
+
*/
|
|
1539
|
+
disableArrowDownOpeningMenu: {
|
|
1540
|
+
type: Boolean,
|
|
1541
|
+
default: !1
|
|
1542
|
+
},
|
|
1543
|
+
/**
|
|
1544
|
+
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1545
|
+
*/
|
|
1546
|
+
hasRightOverflow: {
|
|
1547
|
+
type: Boolean,
|
|
1548
|
+
default: !1
|
|
1549
|
+
},
|
|
1550
|
+
/**
|
|
1551
|
+
* Set to true if the row has a darker background when zebra rows is enabled.
|
|
1552
|
+
*/
|
|
1553
|
+
hasZebraBackground: {
|
|
1554
|
+
type: Boolean,
|
|
1555
|
+
default: !1
|
|
1556
|
+
},
|
|
1557
|
+
/**
|
|
1558
|
+
* Set to true if the row is selected.
|
|
1559
|
+
*/
|
|
1560
|
+
isSelected: {
|
|
1561
|
+
type: Boolean,
|
|
1562
|
+
default: !1
|
|
1563
|
+
},
|
|
1564
|
+
/**
|
|
1565
|
+
* Set to true if the row is highlighted.
|
|
1566
|
+
*/
|
|
1567
|
+
isHighlighted: {
|
|
1568
|
+
type: Boolean,
|
|
1569
|
+
default: !1
|
|
1570
|
+
},
|
|
1571
|
+
/**
|
|
1572
|
+
* Set if set to true will teleport the action menu component
|
|
1573
|
+
*/
|
|
1574
|
+
teleportMenu: {
|
|
1575
|
+
type: Boolean,
|
|
1576
|
+
default: !1
|
|
1577
|
+
},
|
|
1578
|
+
/**
|
|
1579
|
+
* The row data item object.
|
|
1580
|
+
*/
|
|
1581
|
+
rowDataItem: {
|
|
1582
|
+
type: Object,
|
|
1583
|
+
required: !0
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1587
|
+
setup(o, { emit: t }) {
|
|
1588
|
+
const n = o, { t: e } = ge(), l = ie(Ie, _(!1)), a = (m) => {
|
|
1589
|
+
if ("text" in m && m.text !== void 0)
|
|
1590
|
+
return m.text;
|
|
1591
|
+
switch (m.variant) {
|
|
1592
|
+
case "copy":
|
|
1593
|
+
return e("copy");
|
|
1594
|
+
case "edit":
|
|
1595
|
+
return e("edit");
|
|
1596
|
+
case "open":
|
|
1597
|
+
return e("open");
|
|
1598
|
+
case "more":
|
|
1599
|
+
return e("more");
|
|
1600
|
+
default:
|
|
1601
|
+
return m.title;
|
|
1602
|
+
}
|
|
1603
|
+
}, s = (m) => {
|
|
1604
|
+
switch (m.variant) {
|
|
1605
|
+
case "copy":
|
|
1606
|
+
return st;
|
|
1607
|
+
case "edit":
|
|
1608
|
+
return bt;
|
|
1609
|
+
case "open":
|
|
1610
|
+
return lt;
|
|
1611
|
+
default:
|
|
1612
|
+
return;
|
|
1613
|
+
}
|
|
1614
|
+
}, r = f(() => n.columnKey === void 0), i = f(() => ({
|
|
1615
|
+
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": r.value && n.hasRightOverflow,
|
|
1616
|
+
"b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
|
|
1617
|
+
"b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
|
|
1618
|
+
"b-data-grid-cell-actions__background-gradient--selected": n.isSelected
|
|
1619
|
+
})), u = f(() => ({
|
|
1620
|
+
"b-data-grid-cell-actions__actions--with-row-actions": r.value,
|
|
1621
|
+
"b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
|
|
1622
|
+
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
1623
|
+
"b-data-grid-cell-actions__actions--selected": n.isSelected,
|
|
1624
|
+
"b-data-grid-cell-actions__actions--zebra-hover": !r.value && n.hasZebraBackground,
|
|
1625
|
+
"b-data-grid-cell-actions__actions--highlighted-hover": !r.value && n.isHighlighted,
|
|
1626
|
+
"b-data-grid-cell-actions__actions--selected-hover": !r.value && n.isSelected
|
|
1627
|
+
})), v = f(() => !r.value || r.value && n.hasRightOverflow);
|
|
1628
|
+
function C(m) {
|
|
1629
|
+
return typeof m == "function";
|
|
1630
|
+
}
|
|
1631
|
+
const E = f(() => {
|
|
1632
|
+
const m = C(n.cellActions) ? n.cellActions?.(n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1633
|
+
if (l.value && !r.value && m) {
|
|
1634
|
+
const y = [];
|
|
1635
|
+
return m.forEach((O) => {
|
|
1636
|
+
O.menuData ? O.menuData.forEach((R) => {
|
|
1637
|
+
y.push(R);
|
|
1638
|
+
}) : y.push({
|
|
1639
|
+
text: a(O),
|
|
1640
|
+
event: O.event,
|
|
1641
|
+
critical: O.critical,
|
|
1642
|
+
disabled: O.disabled,
|
|
1643
|
+
icon: s(O)
|
|
1644
|
+
});
|
|
1645
|
+
}), [
|
|
1646
|
+
{
|
|
1647
|
+
variant: "more",
|
|
1648
|
+
isShort: !0,
|
|
1649
|
+
iconLeft: ot,
|
|
1650
|
+
menuData: A(y)
|
|
1651
|
+
}
|
|
1652
|
+
];
|
|
1653
|
+
}
|
|
1654
|
+
return !l.value && m?.length > 2 && Lt(
|
|
1655
|
+
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1656
|
+
), m?.slice(0, 2);
|
|
1657
|
+
}), b = f(() => (m, y) => {
|
|
1658
|
+
if (!(!y && m.isShort || y && !m.isShort))
|
|
1659
|
+
switch (m.variant) {
|
|
1660
|
+
case "copy":
|
|
1661
|
+
return e("copy");
|
|
1662
|
+
case "edit":
|
|
1663
|
+
return e("edit");
|
|
1664
|
+
case "open":
|
|
1665
|
+
return e("open");
|
|
1666
|
+
case "more":
|
|
1667
|
+
return e("more");
|
|
1668
|
+
default:
|
|
1669
|
+
return m.title;
|
|
1670
|
+
}
|
|
1671
|
+
}), d = (m) => m?.event !== void 0 ? {
|
|
1672
|
+
click: (y) => {
|
|
1673
|
+
y.stopPropagation(), m.event(n.rowDataItem, n.columnKey);
|
|
1674
|
+
}
|
|
1675
|
+
} : {}, h = (m) => ({
|
|
1676
|
+
...m,
|
|
1677
|
+
handler: () => {
|
|
1678
|
+
m?.handler && typeof m.handler == "function" && m?.handler(), m?.event && typeof m.event == "function" && m?.event(n.rowDataItem, n.columnKey);
|
|
1679
|
+
}
|
|
1680
|
+
}), A = (m) => m.map((y) => {
|
|
1681
|
+
const O = y;
|
|
1682
|
+
return O?.items && (O.items = A(O.items)), { ...h(O) };
|
|
1683
|
+
});
|
|
1684
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: l, getMenuItemText: a, getMenuItemIcon: s, isRowActions: r, conditionalCellActionsBackgroundGradientClasses: i, conditionalCellActionsClasses: u, showGradientElement: v, isBentoColumnCellActionsByCellValueDataFn: C, computedCellActions: E, getButtonTitle: b, generateButtonEvents: d, generateMenuEvents: h, transformMenuEvents: A, getCopyText: (m) => m?.getCopyData !== void 0 ? m.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? n.rowDataItem?.[n.columnKey]?.toString() : "", shouldShowMenuIconLeft: (m) => m.iconLeft || m?.variant === "more", BentoButton: Nt, BentoMenu: Dt, Copy: st, vBentoTooltipDirective: yt, Edit1Icon: bt, ExternalLinkIcon: lt, OptionsVerticalIcon: ot };
|
|
1685
|
+
}
|
|
1686
|
+
});
|
|
1687
|
+
var Hl = function() {
|
|
1688
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1689
|
+
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement && !e.isTouchDevice ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(l, a) {
|
|
1690
|
+
return n("div", { key: a, staticClass: "b-data-grid-cell-actions__action" }, [l.menuData ? n(e.BentoMenu, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[button.tooltipPosition]", value: l.tooltipText, expression: "button.tooltipText", arg: l.tooltipPosition }], attrs: { data: e.transformMenuEvents(l.menuData), button: {
|
|
1691
|
+
condensed: !0,
|
|
1692
|
+
variant: "secondary",
|
|
1693
|
+
disabled: l.disabled
|
|
1694
|
+
}, "disable-arrow-down-opening-menu": t.disableArrowDownOpeningMenu, teleport: t.teleportMenu }, on: { open: function(s) {
|
|
1695
|
+
return e.emit("menu-open");
|
|
1696
|
+
}, close: function(s) {
|
|
1697
|
+
return e.emit("menu-close");
|
|
1698
|
+
}, "menu-item-click": function(s) {
|
|
1699
|
+
return e.emit("menu-item-click");
|
|
1700
|
+
} }, scopedSlots: t._u([e.shouldShowMenuIconLeft(l) ? { key: "iconLeft", fn: function() {
|
|
1701
|
+
return [l?.variant === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(l, !0) } }) : n(l.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(l, !0) } })];
|
|
1702
|
+
}, proxy: !0 } : null, l?.isShort ? null : { key: "default", fn: function() {
|
|
1703
|
+
return [t._v(" " + t._s(e.getButtonTitle(l)) + " ")];
|
|
1704
|
+
}, proxy: !0 }], null, !0) }) : l.variant === "copy" ? n(e.Copy, { attrs: { text: e.getCopyText(l), "button-text": e.getButtonTitle(l), button: {
|
|
1705
|
+
condensed: !0,
|
|
1706
|
+
variant: "secondary"
|
|
1707
|
+
} } }) : n(e.BentoButton, t._g({ directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[button.tooltipPosition]", value: l.tooltipText, expression: "button.tooltipText", arg: l.tooltipPosition }], attrs: { condensed: "", variant: "secondary", critical: l.critical, disabled: l.disabled, link: l.link }, scopedSlots: t._u([l.iconLeft || l.variant === "edit" ? { key: "iconLeft", fn: function() {
|
|
1708
|
+
return [l?.variant === "edit" ? n(e.Edit1Icon, { attrs: { "svg-title": e.getButtonTitle(l, !0) } }) : n(l.iconLeft, { tag: "component", attrs: { "svg-title": l.title } })];
|
|
1709
|
+
}, proxy: !0 } : null, l?.isShort ? null : { key: "default", fn: function() {
|
|
1710
|
+
return [t._v(" " + t._s(e.getButtonTitle(l)) + " ")];
|
|
1711
|
+
}, proxy: !0 }, l.iconRight || l.variant === "open" ? { key: "iconRight", fn: function() {
|
|
1712
|
+
return [l?.variant === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(l, !0) } }) : n(l.iconRight, { tag: "component", attrs: { "svg-title": l.title } })];
|
|
1713
|
+
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(l)))], 1);
|
|
1714
|
+
}), 0)])]);
|
|
1715
|
+
}, Zl = [], jl = /* @__PURE__ */ V(
|
|
1716
|
+
Vl,
|
|
1717
|
+
Hl,
|
|
1718
|
+
Zl,
|
|
1719
|
+
!1,
|
|
1720
|
+
null,
|
|
1721
|
+
"2fdee11b"
|
|
1722
|
+
);
|
|
1723
|
+
const Bt = jl.exports;
|
|
1724
|
+
var j = /* @__PURE__ */ ((o) => (o.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", o.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", o.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", o.COLUMN_HOVERED = "column-hovered", o.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", o.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", o.CONDENSED = "condensed", o.FROZEN = "frozen", o.IS_COLUMN_REORDERING = "is-column-re-ordering", o.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", o.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", o.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", o.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", o.NUMERIC = "numeric", o.OVERFLOW_ELLIPSIS = "overflow-ellipsis", o.PADDING_LEFT_UNSET = "padding-left-unset", o.PADDING_RIGHT_UNSET = "padding-right-unset", o.SLASHED_ZERO = "slashed-zero", o))(j || {});
|
|
1725
|
+
const ql = {
|
|
1726
|
+
"de-DE": { collapseNestedContent: "Verschachtelte Inhalte ausblenden", expandNestedContent: "Verschachtelten Inhalt anzeigen", selectRow: "Zeile auswählen" },
|
|
1727
|
+
"en-GB": { collapseNestedContent: "Collapse nested content", expandNestedContent: "Expand nested content", selectRow: "Select row" },
|
|
1728
|
+
"en-US": { collapseNestedContent: "Collapse nested content", expandNestedContent: "Expand nested content", selectRow: "Select row" },
|
|
1729
|
+
"es-419": { collapseNestedContent: "Ocultar contenido anidado", expandNestedContent: "Expandir contenido anidado", selectRow: "Seleccionar fila" },
|
|
1730
|
+
"es-ES": { collapseNestedContent: "Colapsar contenido anidado", expandNestedContent: "Ampliar contenido anidado", selectRow: "Seleccionar fila" },
|
|
1731
|
+
"es-MX": { collapseNestedContent: "Colapsar contenido anidado", expandNestedContent: "Expandir contenido anidado", selectRow: "Seleccionar fila" },
|
|
1732
|
+
"fr-FR": { collapseNestedContent: "Réduire le contenu imbriqué", expandNestedContent: "Développer le contenu imbriqué", selectRow: "Sélectionner une ligne" },
|
|
1733
|
+
"it-IT": { collapseNestedContent: "Comprimi i contenuti annidati", expandNestedContent: "Espandi i contenuti annidati", selectRow: "Seleziona riga" },
|
|
1734
|
+
"ja-JP": { collapseNestedContent: "ネストされたコンテンツを折りたたむ", expandNestedContent: "ネストされたコンテンツを展開", selectRow: "行を選択" },
|
|
1735
|
+
"pt-BR": { collapseNestedContent: "Recolher conteúdo aninhado", expandNestedContent: "Expandir conteúdo aninhado", selectRow: "Selecionar linha" },
|
|
1736
|
+
"zh-CN": { collapseNestedContent: "折叠嵌套内容", expandNestedContent: "展开嵌套内容", selectRow: "选择行" }
|
|
1737
|
+
}, Kl = {
|
|
1738
|
+
i18n: { messages: ql },
|
|
1739
|
+
name: "data-grid-cell"
|
|
1740
|
+
}, Yl = /* @__PURE__ */ te({
|
|
1741
|
+
...Kl,
|
|
1742
|
+
props: {
|
|
1743
|
+
draggingEventsForRowCell: {
|
|
1744
|
+
type: Function,
|
|
1745
|
+
required: !0
|
|
1746
|
+
},
|
|
1747
|
+
/**
|
|
1748
|
+
* The columns sets including
|
|
1749
|
+
*/
|
|
1750
|
+
columnSets: {
|
|
1751
|
+
type: Array,
|
|
1752
|
+
required: !0
|
|
1753
|
+
},
|
|
1754
|
+
/**
|
|
1755
|
+
* The columns set we are iterating over
|
|
1756
|
+
*/
|
|
1757
|
+
column: {
|
|
1758
|
+
type: Object,
|
|
1759
|
+
required: !0
|
|
1760
|
+
},
|
|
1761
|
+
colIndex: {
|
|
1762
|
+
type: Number,
|
|
1763
|
+
required: !0
|
|
1764
|
+
},
|
|
1765
|
+
columnSetIndex: {
|
|
1766
|
+
type: Number,
|
|
1767
|
+
required: !0
|
|
1768
|
+
},
|
|
1769
|
+
/**
|
|
1770
|
+
* Sets the row cells to the condensed padding state.
|
|
1771
|
+
*/
|
|
1772
|
+
condensed: {
|
|
1773
|
+
type: Boolean,
|
|
1774
|
+
default: !1
|
|
1775
|
+
},
|
|
1776
|
+
/**
|
|
1777
|
+
* Columns being dragged, contains dragging column and a target column
|
|
1778
|
+
*/
|
|
1779
|
+
draggingColumns: {
|
|
1780
|
+
type: Object,
|
|
1781
|
+
default: void 0
|
|
1782
|
+
},
|
|
1783
|
+
/**
|
|
1784
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
1785
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
1786
|
+
*/
|
|
1787
|
+
getDataItemId: {
|
|
1788
|
+
type: Function,
|
|
1789
|
+
default: (o) => o.id
|
|
1790
|
+
},
|
|
1791
|
+
/**
|
|
1792
|
+
* Set to true if the cell has a darker background when zebra rows is enabled.
|
|
1793
|
+
*/
|
|
1794
|
+
hasZebraBackground: {
|
|
1795
|
+
type: Boolean,
|
|
1796
|
+
default: !1
|
|
1797
|
+
},
|
|
1798
|
+
/**
|
|
1799
|
+
* Set to true if the row is selected.
|
|
1800
|
+
*/
|
|
1801
|
+
isSelected: {
|
|
1802
|
+
type: Boolean,
|
|
1803
|
+
default: !1
|
|
1804
|
+
},
|
|
1805
|
+
/**
|
|
1806
|
+
* Set to true if the row is highlighted.
|
|
1807
|
+
*/
|
|
1808
|
+
isHighlighted: {
|
|
1809
|
+
type: Boolean,
|
|
1810
|
+
default: !1
|
|
1811
|
+
},
|
|
1812
|
+
/**
|
|
1813
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1814
|
+
*/
|
|
1815
|
+
hoveredOverColumnState: {
|
|
1816
|
+
type: Object,
|
|
1817
|
+
required: !0
|
|
1818
|
+
},
|
|
1819
|
+
/**
|
|
1820
|
+
* A customisable method to determine if a row is not selectable.
|
|
1821
|
+
* The default is that every row is selectable.
|
|
1822
|
+
*/
|
|
1823
|
+
isDataItemDisabled: {
|
|
1824
|
+
type: Function,
|
|
1825
|
+
default: () => !1
|
|
1826
|
+
},
|
|
1827
|
+
isMeasuringColumnWidths: {
|
|
1828
|
+
type: Boolean,
|
|
1829
|
+
default: !1
|
|
1830
|
+
},
|
|
1831
|
+
/**
|
|
1832
|
+
* Determines if the nested content is visible.
|
|
1833
|
+
*/
|
|
1834
|
+
isNestedContentExpanded: {
|
|
1835
|
+
type: Boolean,
|
|
1836
|
+
default: !1
|
|
1837
|
+
},
|
|
1838
|
+
/**
|
|
1839
|
+
* Determines if the nest content slot is enabled for this data row.
|
|
1840
|
+
*/
|
|
1841
|
+
nestedContent: {
|
|
1842
|
+
type: Boolean,
|
|
1843
|
+
default: !1
|
|
1844
|
+
},
|
|
1845
|
+
/**
|
|
1846
|
+
* The IDs of the rows this cell controls to show / hide them.
|
|
1847
|
+
*/
|
|
1848
|
+
nestedRowsElementIds: {
|
|
1849
|
+
type: Array,
|
|
1850
|
+
default: () => []
|
|
1851
|
+
},
|
|
1852
|
+
/**
|
|
1853
|
+
* The row data object
|
|
1854
|
+
*/
|
|
1855
|
+
rowData: {
|
|
1856
|
+
type: Object,
|
|
1857
|
+
required: !0
|
|
1858
|
+
},
|
|
1859
|
+
rowIndex: {
|
|
1860
|
+
type: Number,
|
|
1861
|
+
required: !0
|
|
1862
|
+
},
|
|
1863
|
+
/**
|
|
1864
|
+
* The row selection checkbox indeterminate state.
|
|
1865
|
+
*/
|
|
1866
|
+
selectionIsIndeterminate: {
|
|
1867
|
+
type: Boolean,
|
|
1868
|
+
default: !1
|
|
1869
|
+
},
|
|
1870
|
+
/**
|
|
1871
|
+
* Determines if the row selection is enabled.
|
|
1872
|
+
*/
|
|
1873
|
+
selectable: {
|
|
1874
|
+
type: Boolean,
|
|
1875
|
+
default: !1
|
|
1876
|
+
},
|
|
1877
|
+
selectedItems: {
|
|
1878
|
+
type: Array,
|
|
1879
|
+
required: !0
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
1883
|
+
setup(o, { expose: t, emit: n }) {
|
|
1884
|
+
const e = o, l = $e(), a = Ge(l), { t: s } = ge(), r = _(null), i = _(null), u = _(!1), {
|
|
1885
|
+
shouldShowCellActions: v,
|
|
1886
|
+
isFocused: C,
|
|
1887
|
+
focusableItems: E,
|
|
1888
|
+
childrenMenuContainerElements: b,
|
|
1889
|
+
hasInteractiveElFocusedInside: d,
|
|
1890
|
+
onMenuClose: h,
|
|
1891
|
+
hideCellActionsIfLeft: A,
|
|
1892
|
+
handleFocus: N,
|
|
1893
|
+
handleFocusout: S,
|
|
1894
|
+
handleKeydown: m,
|
|
1895
|
+
handleCellActionsFocus: y,
|
|
1896
|
+
handleCellActionsFocusout: O
|
|
1897
|
+
} = xl({ gridcellRef: r }), R = f(() => !!e.rowData?.[e.column.field]), c = f(
|
|
1898
|
+
() => e.column.field === J && e.nestedRowsElementIds?.length > 0 ? e.nestedRowsElementIds.join(" ") : void 0
|
|
1899
|
+
), p = f(
|
|
1900
|
+
() => e.column.field === J && !e.selectable && !e.nestedContent
|
|
1901
|
+
), T = f(() => !p.value && (x(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !u.value || C.value) ? "0" : (e.column.field === J, "-1")), D = (M, $) => M?.overflow === Be.ELLIPSIS ? `${$}` : void 0, F = (M) => M ?? "-", z = (M) => e.columnSets.slice(0, M).reduce(($, { columnSet: H }) => $ + H.length, 0), U = (M, $) => M + z($), x = (M, $, H) => z() * M + U($, H), k = (M) => {
|
|
1902
|
+
const $ = {
|
|
1903
|
+
...e.draggingEventsForRowCell(M),
|
|
1904
|
+
focus: async () => {
|
|
1905
|
+
u.value = !0, await N(() => {
|
|
1906
|
+
n("cell-focus", {
|
|
1907
|
+
rowData: e.rowData,
|
|
1908
|
+
column: e.column,
|
|
1909
|
+
rowIndex: e.rowIndex,
|
|
1910
|
+
colIndex: U(e.colIndex, e.columnSetIndex)
|
|
1911
|
+
});
|
|
1912
|
+
});
|
|
1913
|
+
},
|
|
1914
|
+
focusout: S,
|
|
1915
|
+
keydown: m
|
|
1916
|
+
}, H = { ...$ };
|
|
1917
|
+
return M.frozen && (H.keyup = (g) => n("on-frozen-columns-key-press", g), H.keydown = (g) => {
|
|
1918
|
+
$.keydown(g), n("on-frozen-columns-key-press", g);
|
|
1919
|
+
}), M.cellActions && (H.mouseenter = () => {
|
|
1920
|
+
v.value = !0;
|
|
1921
|
+
}, H.mouseleave = (g) => {
|
|
1922
|
+
A(g?.relatedTarget);
|
|
1923
|
+
}, H.focus = async (g) => {
|
|
1924
|
+
await y($.focus, g);
|
|
1925
|
+
}, H.focusout = (g) => {
|
|
1926
|
+
O($.focusout, g);
|
|
1927
|
+
}), H;
|
|
1928
|
+
};
|
|
1929
|
+
pe(() => {
|
|
1930
|
+
E.value = oe(r.value);
|
|
1931
|
+
});
|
|
1932
|
+
const K = () => {
|
|
1933
|
+
n("nested-content-toggled");
|
|
1934
|
+
};
|
|
1935
|
+
ee(
|
|
1936
|
+
() => v.value,
|
|
1937
|
+
async () => {
|
|
1938
|
+
v.value === !0 ? (n("cell-hovered", e.rowIndex), await q(), E.value = oe(r.value), C.value && Oe(E.value)) : n("cell-hovered", -1);
|
|
1939
|
+
}
|
|
1940
|
+
);
|
|
1941
|
+
const ne = (M) => {
|
|
1942
|
+
b.value.push(M);
|
|
1943
|
+
}, re = (M) => {
|
|
1944
|
+
r.value.contains(M?.relatedTarget) || (v.value = !1);
|
|
1945
|
+
};
|
|
1946
|
+
Ee(eo, {
|
|
1947
|
+
registerMenuContainerElement: ne,
|
|
1948
|
+
menuMouseLeave: re
|
|
1949
|
+
});
|
|
1950
|
+
const ce = ie(zt, _(!1)), de = ie(
|
|
1951
|
+
be,
|
|
1952
|
+
f(() => !1)
|
|
1953
|
+
), me = ie(Ie, _(!1)), Ce = (M) => ({
|
|
1954
|
+
[`b-data-grid-cell--${j.COLUMN_HOVERED}`]: M?.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1955
|
+
[`b-data-grid-cell--${j.COLUMN_HOVERED_NO_BORDER_LEFT}`]: M?.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1956
|
+
[`b-data-grid-cell--${j.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: M?.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1957
|
+
[`b-data-grid-cell--${j.PADDING_LEFT_UNSET}`]: M?.padding?.left === !1,
|
|
1958
|
+
[`b-data-grid-cell--${j.PADDING_RIGHT_UNSET}`]: M?.padding?.right === !1,
|
|
1959
|
+
[`b-data-grid-cell--${j.NUMERIC}`]: M?.numeric,
|
|
1960
|
+
[`b-data-grid-cell--${j.CONDENSED}`]: e.condensed,
|
|
1961
|
+
[`b-data-grid-cell--${j.OVERFLOW_ELLIPSIS}`]: M?.overflow === Be.ELLIPSIS,
|
|
1962
|
+
[`b-data-grid-cell--${j.IS_COLUMN_REORDERING}`]: e.draggingColumns.dragging?.field === M.field,
|
|
1963
|
+
[`b-data-grid-cell--${j.IS_COLUMN_REORDERING_TARGET_LEFT}`]: e.draggingColumns.target?.field === M.field && e.draggingColumns?.dragToLeft,
|
|
1964
|
+
[`b-data-grid-cell--${j.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: e.draggingColumns.target?.field === M.field && !e.draggingColumns?.dragToLeft,
|
|
1965
|
+
[`b-data-grid-cell--${j.FROZEN}`]: M?.frozen,
|
|
1966
|
+
[`b-data-grid-cell--${j.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
1967
|
+
[`b-data-grid-cell--${j.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && M.field === J,
|
|
1968
|
+
[`b-data-grid-cell--${j.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && M.field === J,
|
|
1969
|
+
[`b-data-grid-cell--${j.ACTION_COL_SELECTION_ENABLED}`]: M.field === J && e.selectable,
|
|
1970
|
+
[`b-data-grid-cell--${j.SLASHED_ZERO}`]: ce.value,
|
|
1971
|
+
"b-data-grid-cell--small-container": de.value
|
|
1972
|
+
}), le = f(() => ({
|
|
1973
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": d.value
|
|
1974
|
+
}));
|
|
1975
|
+
return t({
|
|
1976
|
+
gridcellRef: r
|
|
1977
|
+
}), { __sfc: !0, slots: l, hasSlot: a, t: s, props: e, emit: n, gridcellRef: r, cellActionsRef: i, hasEverBeenFocused: u, shouldShowCellActions: v, isFocused: C, focusableItems: E, childrenMenuContainerElements: b, hasInteractiveElFocusedInside: d, onMenuClose: h, hideCellActionsIfLeft: A, handleFocus: N, handleFocusout: S, handleKeydown: m, handleCellActionsFocus: y, handleCellActionsFocusout: O, hasRowData: R, controlledNestedRowElementIds: c, ariaHidden: p, tabIndex: T, conditionalTitleAttribute: D, getRowData: F, sumColumnAmountsInColumnSets: z, getColIndex: U, getCellIndex: x, getGridcellEvents: k, toggleNestedContent: K, registerMenuContainerElement: ne, menuMouseLeave: re, hasSlashedZero: ce, isSmallContainer: de, isTouchDevice: me, conditionalRowCellClasses: Ce, computedCellContentClasses: le, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: J, BentoCheckbox: It, BentoTypography: ve, BentoToggleButton: Ve, DataGridCellActions: Bt, ChevronDownIcon: to, ChevronUpIcon: no };
|
|
1978
|
+
}
|
|
1979
|
+
});
|
|
1980
|
+
var Xl = function() {
|
|
1981
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1982
|
+
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
1983
|
+
width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
|
|
1984
|
+
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.tabIndex, "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData), tabindex: e.isFocused ? 0 : -1 }, on: { "update:model-value": function(l) {
|
|
1985
|
+
return t.$emit("select-row", l);
|
|
1986
|
+
} } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1987
|
+
return [t.isNestedContentExpanded ? n(e.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("collapseNestedContent") } }) : n(e.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("expandNestedContent") } })];
|
|
1988
|
+
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1989
|
+
return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
|
|
1990
|
+
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), t.column.cellActions?.length > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [(e.shouldShowCellActions || e.isTouchDevice) && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData, "has-zebra-background": t.hasZebraBackground, "is-highlighted": t.isHighlighted, "is-selected": t.isSelected, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1991
|
+
}, Jl = [], Ql = /* @__PURE__ */ V(
|
|
1992
|
+
Yl,
|
|
1993
|
+
Xl,
|
|
1994
|
+
Jl,
|
|
1995
|
+
!1,
|
|
1996
|
+
null,
|
|
1997
|
+
"ba645d13"
|
|
1998
|
+
);
|
|
1999
|
+
const es = Ql.exports, ts = {
|
|
2000
|
+
name: "data-grid-row"
|
|
2001
|
+
}, ns = /* @__PURE__ */ te({
|
|
2002
|
+
...ts,
|
|
2003
|
+
props: {
|
|
2004
|
+
/**
|
|
2005
|
+
* Row actions property that generates which button to show in row actions area
|
|
2006
|
+
*/
|
|
2007
|
+
rowActions: {
|
|
2008
|
+
type: [Function, Array],
|
|
2009
|
+
default: void 0
|
|
2010
|
+
},
|
|
2011
|
+
/**
|
|
2012
|
+
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2013
|
+
*/
|
|
2014
|
+
allowRowClicks: { type: Boolean, default: !1 },
|
|
2015
|
+
/**
|
|
2016
|
+
* The columns sets including
|
|
2017
|
+
*/
|
|
2018
|
+
columnSets: {
|
|
2019
|
+
type: Array,
|
|
2020
|
+
required: !0
|
|
2021
|
+
},
|
|
2022
|
+
/**
|
|
2023
|
+
* Sets the row cells to the condensed padding state.
|
|
2024
|
+
*/
|
|
2025
|
+
condensed: {
|
|
2026
|
+
type: Boolean,
|
|
2027
|
+
default: !1
|
|
2028
|
+
},
|
|
2029
|
+
/**
|
|
2030
|
+
* Columns being dragged, contains dragging column and a target column
|
|
2031
|
+
*/
|
|
2032
|
+
draggingColumns: {
|
|
2033
|
+
type: Object,
|
|
2034
|
+
default: void 0
|
|
2035
|
+
},
|
|
2036
|
+
/**
|
|
2037
|
+
* Dragging event handlers for each row cell
|
|
2038
|
+
*/
|
|
2039
|
+
draggingEventsForRowCell: {
|
|
2040
|
+
type: Function,
|
|
2041
|
+
required: !0
|
|
2042
|
+
},
|
|
2043
|
+
/**
|
|
2044
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2045
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
2046
|
+
*/
|
|
2047
|
+
getDataItemId: {
|
|
2048
|
+
type: Function,
|
|
2049
|
+
default: (o) => o.id
|
|
2050
|
+
},
|
|
2051
|
+
/**
|
|
2052
|
+
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
2053
|
+
*/
|
|
2054
|
+
hasLeftOverflow: {
|
|
2055
|
+
type: Boolean,
|
|
2056
|
+
default: !1
|
|
2057
|
+
},
|
|
2058
|
+
/**
|
|
2059
|
+
* Enables the nested content slot functionality.
|
|
2060
|
+
*/
|
|
2061
|
+
hasNestedContent: {
|
|
2062
|
+
type: Boolean,
|
|
2063
|
+
default: !1
|
|
2064
|
+
},
|
|
2065
|
+
/**
|
|
2066
|
+
* Enables the nested content slot functionality.
|
|
2067
|
+
*/
|
|
2068
|
+
hasNestedRows: {
|
|
2069
|
+
type: Boolean,
|
|
2070
|
+
default: !1
|
|
2071
|
+
},
|
|
2072
|
+
/**
|
|
2073
|
+
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
2074
|
+
*/
|
|
2075
|
+
hasRightOverflow: {
|
|
2076
|
+
type: Boolean,
|
|
2077
|
+
default: !1
|
|
2078
|
+
},
|
|
2079
|
+
/**
|
|
2080
|
+
* Highlighted row IDs.
|
|
2081
|
+
*/
|
|
2082
|
+
highlightedRows: {
|
|
2083
|
+
type: Array,
|
|
2084
|
+
default: () => []
|
|
2085
|
+
},
|
|
2086
|
+
/**
|
|
2087
|
+
* The row index of a currently hovered row.
|
|
2088
|
+
*/
|
|
2089
|
+
hoveredRowIndex: {
|
|
2090
|
+
type: Number,
|
|
2091
|
+
default: -1
|
|
2092
|
+
},
|
|
2093
|
+
/**
|
|
2094
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2095
|
+
*/
|
|
2096
|
+
hoveredOverColumnState: {
|
|
2097
|
+
type: Object,
|
|
2098
|
+
required: !0
|
|
2099
|
+
},
|
|
2100
|
+
/**
|
|
2101
|
+
* A customisable method to determine if a row is not selectable.
|
|
2102
|
+
* The default is that every row is selectable.
|
|
2103
|
+
*/
|
|
2104
|
+
isDataItemDisabled: {
|
|
2105
|
+
type: Function,
|
|
2106
|
+
default: () => !1
|
|
2107
|
+
},
|
|
2108
|
+
/**
|
|
2109
|
+
* If the row is of an even number.
|
|
2110
|
+
* Rows are 0th based index e.g. index 0 is an odd-numbered row.
|
|
2111
|
+
*/
|
|
2112
|
+
isRowEven: {
|
|
2113
|
+
type: Boolean,
|
|
2114
|
+
default: !1
|
|
2115
|
+
},
|
|
2116
|
+
/**
|
|
2117
|
+
* If the row is the last child in it's parent container.
|
|
2118
|
+
*/
|
|
2119
|
+
isRowLastChild: {
|
|
2120
|
+
type: Boolean,
|
|
2121
|
+
default: !1
|
|
2122
|
+
},
|
|
2123
|
+
/**
|
|
2124
|
+
* If columns are being measured for the autoWidth functionality.
|
|
2125
|
+
*/
|
|
2126
|
+
isMeasuringColumnWidths: {
|
|
2127
|
+
type: Boolean,
|
|
2128
|
+
default: !1
|
|
2129
|
+
},
|
|
2130
|
+
/**
|
|
2131
|
+
* Determines if this row is nested inside another row.
|
|
2132
|
+
*/
|
|
2133
|
+
isNestedRow: {
|
|
2134
|
+
type: Boolean,
|
|
2135
|
+
default: !1
|
|
2136
|
+
},
|
|
2137
|
+
/**
|
|
2138
|
+
* The maximum width of the row actions in all rows
|
|
2139
|
+
*/
|
|
2140
|
+
rowActionsMaximumWidth: {
|
|
2141
|
+
type: Number,
|
|
2142
|
+
default: 0
|
|
2143
|
+
},
|
|
2144
|
+
/**
|
|
2145
|
+
* The row data object
|
|
2146
|
+
*/
|
|
2147
|
+
rowData: {
|
|
2148
|
+
type: Object,
|
|
2149
|
+
required: !0
|
|
2150
|
+
},
|
|
2151
|
+
/**
|
|
2152
|
+
* The row index.
|
|
2153
|
+
*/
|
|
2154
|
+
rowIndex: {
|
|
2155
|
+
type: Number,
|
|
2156
|
+
required: !0
|
|
2157
|
+
},
|
|
2158
|
+
/**
|
|
2159
|
+
* The row ID to be using for the ID attribute.
|
|
2160
|
+
*/
|
|
2161
|
+
rowId: {
|
|
2162
|
+
type: Number,
|
|
2163
|
+
default: void 0
|
|
2164
|
+
},
|
|
2165
|
+
/**
|
|
2166
|
+
* The number of rows that this row is within.
|
|
2167
|
+
*/
|
|
2168
|
+
rowSetSize: {
|
|
2169
|
+
type: Number,
|
|
2170
|
+
default: 0
|
|
2171
|
+
},
|
|
2172
|
+
/**
|
|
2173
|
+
* Determines whether to render frozen seperator on the row.
|
|
2174
|
+
*/
|
|
2175
|
+
showFrozenColumnsSeparator: {
|
|
2176
|
+
type: Boolean,
|
|
2177
|
+
default: !1
|
|
2178
|
+
},
|
|
2179
|
+
/**
|
|
2180
|
+
* Determines if the row selection is enabled.
|
|
2181
|
+
*/
|
|
2182
|
+
selectable: {
|
|
2183
|
+
type: Boolean,
|
|
2184
|
+
default: !1
|
|
2185
|
+
},
|
|
2186
|
+
/**
|
|
2187
|
+
* The array of IDs for the selected rows.
|
|
2188
|
+
*/
|
|
2189
|
+
selectedItems: {
|
|
2190
|
+
type: Array,
|
|
2191
|
+
required: !0
|
|
2192
|
+
},
|
|
2193
|
+
/**
|
|
2194
|
+
* Enables / Disables the nested-content slot
|
|
2195
|
+
*/
|
|
2196
|
+
shouldShowNestedContent: {
|
|
2197
|
+
type: Function,
|
|
2198
|
+
default: (o) => !0
|
|
2199
|
+
},
|
|
2200
|
+
/**
|
|
2201
|
+
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2202
|
+
*/
|
|
2203
|
+
shouldShowNestedRows: {
|
|
2204
|
+
type: Function,
|
|
2205
|
+
default: (o) => !0
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2209
|
+
setup(o, { expose: t, emit: n }) {
|
|
2210
|
+
const e = o, l = $e(), a = Ge(l), s = (w, I) => !w || !I ? !1 : !!(I.compareDocumentPosition(w) & Node.DOCUMENT_POSITION_FOLLOWING), r = _({}), i = _(!1), u = _(), v = _(), C = _([]), E = Le("nested-content-slot"), b = _(!1), d = _(!1), h = _(), A = () => {
|
|
2211
|
+
const w = v.value;
|
|
2212
|
+
return Array.isArray(w) ? w[0] : w;
|
|
2213
|
+
};
|
|
2214
|
+
pe(() => {
|
|
2215
|
+
const w = A();
|
|
2216
|
+
w && (h.value = oe(w));
|
|
2217
|
+
});
|
|
2218
|
+
const N = f(() => e.shouldShowNestedRows(e.rowData)), S = f(
|
|
2219
|
+
() => !e.isNestedRow && e.hasNestedRows && N.value && e.rowData?.children?.length > 0
|
|
2220
|
+
), m = f(
|
|
2221
|
+
() => !e.isNestedRow && e.hasNestedRows && N.value && (e.rowData?.children === void 0 || e?.rowData?.children.length === 0)
|
|
2222
|
+
), y = f(
|
|
2223
|
+
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && N.value && !e.isNestedRow
|
|
2224
|
+
), O = f(() => {
|
|
2225
|
+
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2226
|
+
const w = i.value.toString();
|
|
2227
|
+
return {
|
|
2228
|
+
"aria-expanded": y.value ? w : void 0,
|
|
2229
|
+
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2230
|
+
"aria-posinset": e.rowIndex + 1,
|
|
2231
|
+
"aria-setsize": e.rowSetSize
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2234
|
+
return { "aria-rowindex": e.rowIndex + 1 };
|
|
2235
|
+
}), R = f(() => {
|
|
2236
|
+
if (m.value)
|
|
2237
|
+
return {
|
|
2238
|
+
"aria-busy": "true",
|
|
2239
|
+
"aria-live": "polite"
|
|
2240
|
+
};
|
|
2241
|
+
if (!(S.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
2242
|
+
return {
|
|
2243
|
+
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2244
|
+
"aria-posinset": "1",
|
|
2245
|
+
"aria-setsize": "1",
|
|
2246
|
+
id: E,
|
|
2247
|
+
role: "row",
|
|
2248
|
+
tabindex: "-1"
|
|
2249
|
+
};
|
|
2250
|
+
}), c = f(() => S.value ? e.rowData?.children?.reduce((w, I, Y) => (w[Y] = Le("nested-row"), w), {}) : []), p = f(() => {
|
|
2251
|
+
if (i.value) {
|
|
2252
|
+
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2253
|
+
return [E];
|
|
2254
|
+
if (S.value && Object.keys(c.value)?.length > 0) {
|
|
2255
|
+
const w = Object.values(c.value);
|
|
2256
|
+
if (w?.length > 0)
|
|
2257
|
+
return w;
|
|
2258
|
+
}
|
|
2259
|
+
return [];
|
|
2260
|
+
}
|
|
2261
|
+
}), T = f(() => {
|
|
2262
|
+
const w = e.rowData?.children?.map((I) => e.getDataItemId(I));
|
|
2263
|
+
if (w?.length > 0) {
|
|
2264
|
+
const I = w.every((Q) => e?.selectedItems?.includes(Q)), Y = w.some((Q) => e?.selectedItems?.includes(Q));
|
|
2265
|
+
return !I && Y;
|
|
2266
|
+
}
|
|
2267
|
+
return !1;
|
|
2268
|
+
}), D = (w, I) => {
|
|
2269
|
+
const Y = w;
|
|
2270
|
+
w !== null && Y?.gridcellRef && (r.value[I] = Y.gridcellRef);
|
|
2271
|
+
}, F = (w, I) => {
|
|
2272
|
+
w !== null && (C.value[I] = w);
|
|
2273
|
+
}, z = (w) => c.value[w], U = (w) => {
|
|
2274
|
+
if (!e.selectable)
|
|
2275
|
+
return null;
|
|
2276
|
+
const I = e.getDataItemId(w);
|
|
2277
|
+
return e.selectedItems.includes(I).toString();
|
|
2278
|
+
}, x = (w, I) => {
|
|
2279
|
+
n("row-click", w, I);
|
|
2280
|
+
}, k = (w) => {
|
|
2281
|
+
if (!e.allowRowClicks)
|
|
2282
|
+
return;
|
|
2283
|
+
let I = !1;
|
|
2284
|
+
const Y = ["button", "input", "a"];
|
|
2285
|
+
for (let Q = 0; Q < Y.length; Q++)
|
|
2286
|
+
if (w?.target?.closest(Y[Q])) {
|
|
2287
|
+
I = !0;
|
|
2288
|
+
break;
|
|
2289
|
+
}
|
|
2290
|
+
I || x(e.rowData, w);
|
|
2291
|
+
}, K = (w) => {
|
|
2292
|
+
n("select-row", w, e.rowData);
|
|
2293
|
+
}, ne = (w, I) => {
|
|
2294
|
+
n("select-nested-row", I, e.rowData, w);
|
|
2295
|
+
}, re = () => {
|
|
2296
|
+
b.value = !0;
|
|
2297
|
+
}, ce = () => {
|
|
2298
|
+
b.value = !1;
|
|
2299
|
+
}, de = (w) => {
|
|
2300
|
+
if (d.value) {
|
|
2301
|
+
d.value = !1;
|
|
2302
|
+
return;
|
|
2303
|
+
}
|
|
2304
|
+
const I = A();
|
|
2305
|
+
if (!I || !h.value?.length)
|
|
2306
|
+
return;
|
|
2307
|
+
const Y = s(w.relatedTarget, I), Q = h.value.length - 1, Z = Y ? h.value[Q] : h.value[0];
|
|
2308
|
+
Oe([Z]), Te(I, { last: Y });
|
|
2309
|
+
}, me = () => {
|
|
2310
|
+
const w = A();
|
|
2311
|
+
w && oe(w);
|
|
2312
|
+
}, Ce = (w) => {
|
|
2313
|
+
const I = A();
|
|
2314
|
+
if (w.key === W.ESCAPE) {
|
|
2315
|
+
I && oe(I), d.value = !0, I?.focus(), w.stopPropagation(), w.preventDefault();
|
|
2316
|
+
return;
|
|
2317
|
+
}
|
|
2318
|
+
w.key !== W.TAB && I && oe(I), w.key === W.ARROW_RIGHT && h.value?.length > 1 && h.value[0].node === document.activeElement ? (I && oe(I), h.value[1].node.setAttribute("tabindex", "0"), h.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === W.ARROW_LEFT && h.value?.length > 1 && h.value[1].node === document.activeElement && (I && oe(I), h.value[0].node.setAttribute("tabindex", "0"), h.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
|
|
2319
|
+
}, le = () => e.columnSets.reduce((w, { columnSet: I }) => w + I.length, 0), M = () => le() * e.rowIndex + le(), { contentHeight: $ } = oo(u, i), H = f(() => {
|
|
2320
|
+
if (e.hasNestedContent || e.hasNestedRows)
|
|
2321
|
+
return {
|
|
2322
|
+
paddingLeft: `${S.value || m.value ? 0 : r.value[J].offsetWidth + Ft}px`,
|
|
2323
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && $.value && !$?.value?.includes("null") ? $.value : 0
|
|
2324
|
+
};
|
|
2325
|
+
}), g = () => {
|
|
2326
|
+
i.value = !i.value, n("nested-content-toggled", e.rowData);
|
|
2327
|
+
}, B = ie(
|
|
2328
|
+
be,
|
|
2329
|
+
f(() => !1)
|
|
2330
|
+
), ue = (w) => e.highlightedRows.includes(e.getDataItemId(w)), he = (w) => e.selectedItems.includes(e.getDataItemId(w)), Ne = (w, I) => ({
|
|
2331
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(w),
|
|
2332
|
+
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2333
|
+
"b-data-grid-row-container__row--highlighted": ue(w),
|
|
2334
|
+
"b-data-grid-row-container__row--selected": he(w),
|
|
2335
|
+
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === I,
|
|
2336
|
+
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !i.value,
|
|
2337
|
+
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
2338
|
+
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
2339
|
+
}), De = (w, I) => ({
|
|
2340
|
+
"b-data-grid-row-container__row-cell-set--frozen": w && !I,
|
|
2341
|
+
[`b-data-grid-row-container__row-cell-set--${ae.OVERFLOW_SHADOW_LEFT}`]: !I && w && e.hasLeftOverflow,
|
|
2342
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !I && w && e.showFrozenColumnsSeparator,
|
|
2343
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !w || I,
|
|
2344
|
+
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2345
|
+
}), Se = f(() => ({
|
|
2346
|
+
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2347
|
+
"b-data-grid-row-container__row-nested-slot": !S.value && e.shouldShowNestedContent(e.rowData)
|
|
2348
|
+
})), we = f(() => ({
|
|
2349
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": b.value
|
|
2350
|
+
})), Re = f(() => ({
|
|
2351
|
+
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
2352
|
+
}));
|
|
2353
|
+
return t({
|
|
2354
|
+
gridcellRefs: r,
|
|
2355
|
+
isNestedContentShown: i,
|
|
2356
|
+
nestedRowRefs: C,
|
|
2357
|
+
rowActionsRef: v
|
|
2358
|
+
}), { __sfc: !0, slots: l, hasSlot: a, props: e, emit: n, isRelatedTargetAfterInDOM: s, gridcellRefs: r, isNestedContentShown: i, nestedContentRef: u, rowActionsRef: v, nestedRowRefs: C, nestedContentSlotId: E, isRowActionMenuOpen: b, isExitingRowActionInteraction: d, focusableItems: h, getRowActionsElement: A, shouldShowNestedRowsBooleanResult: N, shouldShowRenderNestedRows: S, isLoadingNestedRows: m, shouldShowNestedContentToggle: y, ariaRowAttributes: O, nestedContentContainerDivAriaAttributes: R, nestedRowIds: c, allNestedRowIds: p, hasUnSelectedNestedRows: T, registerRowCellRef: D, registerNestedRowRef: F, getRowId: z, getRowAriaSelectedValue: U, emitRowClick: x, onRowClick: k, onRowSelect: K, onNestedRowSelect: ne, onRowActionMenuOpen: re, onRowActionMenuClose: ce, onRowActionsCellFocus: de, onRowActionsCellFocusOut: me, onRowActionsCellOnKeyDown: Ce, sumColumnAmountsInColumnSets: le, getRowActionsCellIndex: M, contentHeight: $, nestedContentStyles: H, nestedContentToggled: g, isSmallContainer: B, isHighlightedRow: ue, isSelectedRow: he, conditionalRowClasses: Ne, conditionalRowSetClasses: De, conditionalNestedRowClasses: Se, conditionalRowActionsContainerClasses: we, computedRowActionsStyles: Re, BentoLoadingIndicator: We, DataGridCell: es, DataGridCellActions: Bt };
|
|
2359
|
+
}
|
|
2360
|
+
});
|
|
2361
|
+
var os = function() {
|
|
2362
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2363
|
+
return n("div", { staticClass: "b-data-grid-row-container", attrs: { role: "presentation" } }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: t.rowId?.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick, keyup: [function(l) {
|
|
2364
|
+
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onRowClick.apply(null, arguments);
|
|
2365
|
+
}, function(l) {
|
|
2366
|
+
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
2367
|
+
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: s }, r) {
|
|
2368
|
+
return [l?.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(s, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(i, u) {
|
|
2369
|
+
return n(e.DataGridCell, { key: `cell-${i.field}`, ref: (v) => e.registerRowCellRef(v, i.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: i, "column-set-index": r, "col-index": u, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(v) {
|
|
2370
|
+
return e.emit("cell-hovered", v);
|
|
2371
|
+
}, "cell-focus": function(v) {
|
|
2372
|
+
return e.emit("cell-focus", v);
|
|
2373
|
+
}, "on-frozen-columns-key-press": function(v) {
|
|
2374
|
+
return e.emit("on-frozen-columns-key-press", v);
|
|
2375
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(v, C) {
|
|
2376
|
+
return { key: C, fn: function(E) {
|
|
2377
|
+
return [t._t(C, null, null, E)];
|
|
2378
|
+
} };
|
|
2379
|
+
})], null, !0) });
|
|
2380
|
+
}), 1) : t._e()];
|
|
2381
|
+
}), 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) {
|
|
2382
|
+
return n("data-grid-row", t._b({ key: `child-${a}`, ref: (s) => e.registerNestedRowRef(s, 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(s) {
|
|
2383
|
+
return e.emit("cell-hovered", s);
|
|
2384
|
+
}, "cell-focus": function(s) {
|
|
2385
|
+
return e.emit("cell-focus", s);
|
|
2386
|
+
}, "row-click": e.emitRowClick, "on-frozen-columns-key-press": function(s) {
|
|
2387
|
+
return e.emit("on-frozen-columns-key-press", s);
|
|
2388
|
+
}, "select-row": function(s) {
|
|
2389
|
+
return e.onNestedRowSelect(l, s);
|
|
2390
|
+
} }, scopedSlots: t._u([t._l(e.slots, function(s, r) {
|
|
2391
|
+
return { key: r, fn: function(i) {
|
|
2392
|
+
return [t._t(r, null, null, i)];
|
|
2393
|
+
} };
|
|
2394
|
+
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2395
|
+
})], 2)]) : e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "row", tabindex: "-1" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef", attrs: { role: "gridcell" } }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()])]) : t._e()]) : t._e()], 1);
|
|
2396
|
+
}, ls = [], ss = /* @__PURE__ */ V(
|
|
2397
|
+
ns,
|
|
2398
|
+
os,
|
|
2399
|
+
ls,
|
|
2400
|
+
!1,
|
|
2401
|
+
null,
|
|
2402
|
+
"4c57a740"
|
|
2403
|
+
);
|
|
2404
|
+
const as = ss.exports;
|
|
2405
|
+
let St = 0;
|
|
2406
|
+
const is = {
|
|
2407
|
+
beforeCreate() {
|
|
2408
|
+
this.uuid = St.toString(), St += 1;
|
|
2409
|
+
}
|
|
2410
|
+
};
|
|
2411
|
+
var rs = function() {
|
|
2412
|
+
var t = this, n = t._self._c;
|
|
2413
|
+
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2414
|
+
}, cs = [], ds = /* @__PURE__ */ V(
|
|
2415
|
+
is,
|
|
2416
|
+
rs,
|
|
2417
|
+
cs,
|
|
2418
|
+
!1,
|
|
2419
|
+
null,
|
|
2420
|
+
null
|
|
2421
|
+
);
|
|
2422
|
+
const us = ds.exports, fs = {}, gs = /* @__PURE__ */ te({
|
|
2423
|
+
...fs,
|
|
2424
|
+
__name: "data-grid-static-icon",
|
|
2425
|
+
props: {
|
|
2426
|
+
colored: { type: Boolean, default: !1 },
|
|
2427
|
+
tooltipText: null,
|
|
2428
|
+
variant: { default: "no-value" }
|
|
2429
|
+
},
|
|
2430
|
+
setup(o) {
|
|
2431
|
+
const t = o, n = f(() => {
|
|
2432
|
+
switch (t.variant) {
|
|
2433
|
+
case "checkmark":
|
|
2434
|
+
return zn;
|
|
2435
|
+
case "warning":
|
|
2436
|
+
return xn;
|
|
2437
|
+
case "error":
|
|
2438
|
+
return us;
|
|
2439
|
+
case "cross":
|
|
2440
|
+
return Et;
|
|
2441
|
+
case "no-value":
|
|
2442
|
+
return nt;
|
|
2443
|
+
default:
|
|
2444
|
+
return nt;
|
|
2445
|
+
}
|
|
2446
|
+
}), e = f(() => ({
|
|
2447
|
+
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2448
|
+
})), l = f(() => `b-data-grid-static-icon__${t.variant}`), a = f(() => Bn.AUTO);
|
|
2449
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: l, tooltipPosition: a, vBentoTooltipDirective: yt };
|
|
2450
|
+
}
|
|
2451
|
+
});
|
|
2452
|
+
var ms = function() {
|
|
2453
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2454
|
+
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
|
|
2455
|
+
}, Cs = [], _s = /* @__PURE__ */ V(
|
|
2456
|
+
gs,
|
|
2457
|
+
ms,
|
|
2458
|
+
Cs,
|
|
2459
|
+
!1,
|
|
2460
|
+
null,
|
|
2461
|
+
"dbc055cb"
|
|
2462
|
+
);
|
|
2463
|
+
const Wa = _s.exports, vs = {
|
|
2464
|
+
"de-DE": { numberResults: "1 Ergebnis | {count} Ergebnisse" },
|
|
2465
|
+
"en-GB": { numberResults: "1 result | {count} results" },
|
|
2466
|
+
"en-US": { numberResults: "1 result | {count} results" },
|
|
2467
|
+
"es-419": { numberResults: "1 resultado | {count} resultados" },
|
|
2468
|
+
"es-ES": { numberResults: "1 resultado | {count} resultados" },
|
|
2469
|
+
"es-MX": { numberResults: "1 resultado | {count} resultados" },
|
|
2470
|
+
"fr-FR": { numberResults: "1 résultat | {count} résultats" },
|
|
2471
|
+
"it-IT": { numberResults: "1 risultato | {count} risultati" },
|
|
2472
|
+
"ja-JP": { numberResults: "1件の結果 | {count}件の結果" },
|
|
2473
|
+
"pt-BR": { numberResults: "1 resultado | {count} resultados" },
|
|
2474
|
+
"zh-CN": { numberResults: "1 个结果 | {count} 个结果" }
|
|
2475
|
+
}, hs = {
|
|
2476
|
+
i18n: { messages: vs }
|
|
2477
|
+
}, ps = /* @__PURE__ */ te({
|
|
2478
|
+
...hs,
|
|
2479
|
+
__name: "data-grid-summary-cell",
|
|
2480
|
+
props: {
|
|
2481
|
+
label: null,
|
|
2482
|
+
items: null,
|
|
2483
|
+
dashedUnderline: { default: () => ({}) },
|
|
2484
|
+
searchTerm: { default: "" },
|
|
2485
|
+
tooltipText: { default: null }
|
|
2486
|
+
},
|
|
2487
|
+
setup(o) {
|
|
2488
|
+
const t = o, { tc: n } = ge(), e = _(), l = f(() => ({
|
|
2489
|
+
popoverPosition: "right",
|
|
2490
|
+
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
2491
|
+
popoverTitle: t.label,
|
|
2492
|
+
popoverSize: "small",
|
|
2493
|
+
...t.dashedUnderline,
|
|
2494
|
+
// We force teleport as this is needed for the popover to appear above all the data grid elements
|
|
2495
|
+
teleport: {
|
|
2496
|
+
disabled: !1
|
|
2497
|
+
}
|
|
2498
|
+
})), a = f(() => t.searchTerm?.toLowerCase() ?? ""), s = (u) => t.searchTerm && u.toLowerCase().includes(a.value) ? "mark" : "span", r = f(() => t.searchTerm ? t.items.filter((u) => u.toLowerCase().includes(a.value)).length : 0), i = f(
|
|
2499
|
+
() => t.tooltipText ?? (r.value > 0 ? n("numberResults", r.value) : "")
|
|
2500
|
+
);
|
|
2501
|
+
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: l, lowerCaseSearchTerm: a, highlightedComponent: s, highlightedItemsCount: r, computedToolTipText: i, BentoDashedUnderline: $n, BentoTypography: ve, Tooltip: kn, BentoTooltipPosition: Un };
|
|
2502
|
+
}
|
|
2503
|
+
});
|
|
2504
|
+
var bs = function() {
|
|
2505
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2506
|
+
return n("div", { staticClass: "b-data-grid-summary-cell" }, [t.items.length > 1 ? n(e.BentoDashedUnderline, t._b({ ref: "dashedUnderlineRef", scopedSlots: t._u([{ key: "popover-content", fn: function() {
|
|
2507
|
+
return [n(e.BentoTypography, { staticClass: "b-data-grid-summary-cell__popover-content" }, [n("ul", { staticClass: "b-data-grid-summary-cell__list" }, t._l(t.items, function(l) {
|
|
2508
|
+
return n("li", { key: l }, [n(e.highlightedComponent(l), { tag: "component" }, [t._v(t._s(l))])], 1);
|
|
2509
|
+
}), 0)])];
|
|
2510
|
+
}, proxy: !0 }], null, !1, 4023850623) }, "bento-dashed-underline", e.dashedUnderlineProps, !1), [t._v(" " + t._s(t.label) + " ")]) : [t._v(t._s(t.items[0]))], e.dashedUnderlineRef && e.computedToolTipText ? n(e.Tooltip, { attrs: { content: e.computedToolTipText, "disabled-focus-trap": !0, position: e.BentoTooltipPosition.RIGHT, "fallback-position": ["left", "bottom"], "is-shown": !!e.computedToolTipText, "target-element": e.dashedUnderlineRef } }) : t._e()], 2);
|
|
2511
|
+
}, Ss = [], ws = /* @__PURE__ */ V(
|
|
2512
|
+
ps,
|
|
2513
|
+
bs,
|
|
2514
|
+
Ss,
|
|
2515
|
+
!1,
|
|
2516
|
+
null,
|
|
2517
|
+
"2cf5d218"
|
|
2518
|
+
);
|
|
2519
|
+
const Ga = ws.exports, Rs = {}, As = /* @__PURE__ */ te({
|
|
2520
|
+
...Rs,
|
|
2521
|
+
__name: "data-grid-tag-with-text-cell",
|
|
2522
|
+
props: {
|
|
2523
|
+
tag: null,
|
|
2524
|
+
value: null
|
|
2525
|
+
},
|
|
2526
|
+
setup(o) {
|
|
2527
|
+
return { __sfc: !0, props: o, BentoTag: Wn, BentoTypography: ve };
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
2530
|
+
var Es = function() {
|
|
2531
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2532
|
+
return n("div", { staticClass: "b-data-grid-tag-with-text-cell" }, [n(e.BentoTag, t._b({}, "bento-tag", e.props.tag, !1)), n(e.BentoTypography, { attrs: { el: "span" } }, [t._v(t._s(t.value))])], 1);
|
|
2533
|
+
}, ys = [], Ls = /* @__PURE__ */ V(
|
|
2534
|
+
As,
|
|
2535
|
+
Es,
|
|
2536
|
+
ys,
|
|
2537
|
+
!1,
|
|
2538
|
+
null,
|
|
2539
|
+
"ed0cc252"
|
|
2540
|
+
);
|
|
2541
|
+
const Va = Ls.exports;
|
|
2542
|
+
let wt = 0;
|
|
2543
|
+
const Ts = {
|
|
2544
|
+
beforeCreate() {
|
|
2545
|
+
this.uuid = wt.toString(), wt += 1;
|
|
2546
|
+
}
|
|
2547
|
+
};
|
|
2548
|
+
var Os = function() {
|
|
2549
|
+
var t = this, n = t._self._c;
|
|
2550
|
+
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" } })]);
|
|
2551
|
+
}, Is = [], Ns = /* @__PURE__ */ V(
|
|
2552
|
+
Ts,
|
|
2553
|
+
Os,
|
|
2554
|
+
Is,
|
|
2555
|
+
!1,
|
|
2556
|
+
null,
|
|
2557
|
+
null
|
|
2558
|
+
);
|
|
2559
|
+
const Ds = Ns.exports;
|
|
2560
|
+
let Rt = 0;
|
|
2561
|
+
const Ms = {
|
|
2562
|
+
beforeCreate() {
|
|
2563
|
+
this.uuid = Rt.toString(), Rt += 1;
|
|
2564
|
+
}
|
|
2565
|
+
};
|
|
2566
|
+
var Fs = function() {
|
|
2567
|
+
var t = this, n = t._self._c;
|
|
2568
|
+
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: "M8.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z" } })]);
|
|
2569
|
+
}, Ps = [], zs = /* @__PURE__ */ V(
|
|
2570
|
+
Ms,
|
|
2571
|
+
Fs,
|
|
2572
|
+
Ps,
|
|
2573
|
+
!1,
|
|
2574
|
+
null,
|
|
2575
|
+
null
|
|
2576
|
+
);
|
|
2577
|
+
const xs = zs.exports, Bs = {
|
|
2578
|
+
"de-DE": { decrease: "verringern", increase: "erhöhen" },
|
|
2579
|
+
"en-GB": { decrease: "decrease", increase: "increase" },
|
|
2580
|
+
"en-US": { decrease: "decrease", increase: "increase" },
|
|
2581
|
+
"es-419": { decrease: "disminución", increase: "aumentar" },
|
|
2582
|
+
"es-ES": { decrease: "disminuir", increase: "aumentar" },
|
|
2583
|
+
"es-MX": { decrease: "disminuir", increase: "aumentar" },
|
|
2584
|
+
"fr-FR": { decrease: "diminuer", increase: "augmentation" },
|
|
2585
|
+
"it-IT": { decrease: "riduci", increase: "aumenta" },
|
|
2586
|
+
"ja-JP": { decrease: "低減", increase: "増加" },
|
|
2587
|
+
"pt-BR": { decrease: "diminuir", increase: "aumentar" },
|
|
2588
|
+
"zh-CN": { decrease: "减少", increase: "增加" }
|
|
2589
|
+
}, Us = {
|
|
2590
|
+
i18n: { messages: Bs }
|
|
2591
|
+
}, ks = /* @__PURE__ */ te({
|
|
2592
|
+
...Us,
|
|
2593
|
+
__name: "data-grid-trend-cell",
|
|
2594
|
+
props: {
|
|
2595
|
+
direction: { default: "none" },
|
|
2596
|
+
variant: { default: "black" },
|
|
2597
|
+
value: null
|
|
2598
|
+
},
|
|
2599
|
+
setup(o) {
|
|
2600
|
+
const t = o, { t: n, locale: e } = ge(), l = f(() => ({
|
|
2601
|
+
[`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
|
|
2602
|
+
})), a = f(() => {
|
|
2603
|
+
switch (t.direction) {
|
|
2604
|
+
case "up":
|
|
2605
|
+
return n("increase");
|
|
2606
|
+
case "down":
|
|
2607
|
+
return n("decrease");
|
|
2608
|
+
default:
|
|
2609
|
+
return null;
|
|
2610
|
+
}
|
|
2611
|
+
}), s = f(() => {
|
|
2612
|
+
switch (t.direction) {
|
|
2613
|
+
case "up":
|
|
2614
|
+
return Ds;
|
|
2615
|
+
case "down":
|
|
2616
|
+
return xs;
|
|
2617
|
+
default:
|
|
2618
|
+
return null;
|
|
2619
|
+
}
|
|
2620
|
+
}), r = f(() => {
|
|
2621
|
+
const i = typeof t.value == "string" ? parseFloat(t.value) : t.value;
|
|
2622
|
+
return isNaN(i) ? "" : new Intl.NumberFormat(e.value, {
|
|
2623
|
+
style: "percent",
|
|
2624
|
+
minimumFractionDigits: 0,
|
|
2625
|
+
// Don't force zeros
|
|
2626
|
+
maximumFractionDigits: 10
|
|
2627
|
+
// Cap it reasonably to avoid float artifacts
|
|
2628
|
+
}).format(i / 100);
|
|
2629
|
+
});
|
|
2630
|
+
return { __sfc: !0, t: n, locale: e, props: t, conditionalClasses: l, computedIconTitle: a, computedIcon: s, computedValue: r, BentoTypography: ve };
|
|
2631
|
+
}
|
|
2632
|
+
});
|
|
2633
|
+
var $s = function() {
|
|
2634
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2635
|
+
return n("div", { staticClass: "b-data-grid-trend-cell", class: e.conditionalClasses }, [e.computedIcon ? n(e.computedIcon, { tag: "component", attrs: { "svg-title": e.computedIconTitle } }) : t._e(), n(e.BentoTypography, { attrs: { el: "span" } }, [t._v(t._s(e.computedValue))])], 1);
|
|
2636
|
+
}, Ws = [], Gs = /* @__PURE__ */ V(
|
|
2637
|
+
ks,
|
|
2638
|
+
$s,
|
|
2639
|
+
Ws,
|
|
2640
|
+
!1,
|
|
2641
|
+
null,
|
|
2642
|
+
"05cdd7d9"
|
|
2643
|
+
);
|
|
2644
|
+
const Ha = Gs.exports, Vs = (o, t, n) => {
|
|
2645
|
+
const e = _([]), l = (i, u) => {
|
|
2646
|
+
if (!i?.gridcellRefs)
|
|
2647
|
+
return { count: 0, entries: [], maxWidth: 0 };
|
|
2648
|
+
const v = [];
|
|
2649
|
+
let C = 0;
|
|
2650
|
+
const E = n.value && i?.rowActionsRef;
|
|
2651
|
+
Object.entries(i.gridcellRefs).forEach(([d, h]) => {
|
|
2652
|
+
v.push({ field: d, index: u, el: h });
|
|
2653
|
+
}), E && (v.push({
|
|
2654
|
+
field: He,
|
|
2655
|
+
index: u,
|
|
2656
|
+
el: i.rowActionsRef
|
|
2657
|
+
}), C = Math.max(C, i.rowActionsRef?.offsetWidth ?? 0));
|
|
2658
|
+
let b = 1;
|
|
2659
|
+
if (i.isNestedContentShown && i.nestedRowRefs?.length > 0)
|
|
2660
|
+
for (let d = 0; d < i.nestedRowRefs.length; d++) {
|
|
2661
|
+
const h = i.nestedRowRefs[d];
|
|
2662
|
+
if (h) {
|
|
2663
|
+
const A = l(h, u + b);
|
|
2664
|
+
v.push(...A.entries), C = Math.max(C, A.maxWidth), b += A.count;
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
return { count: b, entries: v, maxWidth: C };
|
|
2668
|
+
};
|
|
2669
|
+
let a = !1;
|
|
2670
|
+
const s = (i, u) => {
|
|
2671
|
+
i !== null && (e.value[u] = i, a || r());
|
|
2672
|
+
}, r = () => {
|
|
2673
|
+
a = !0;
|
|
2674
|
+
const i = {};
|
|
2675
|
+
let u = 0, v = 0;
|
|
2676
|
+
for (let C = 0; C < e.value.length; C++) {
|
|
2677
|
+
const E = e.value[C];
|
|
2678
|
+
if (E) {
|
|
2679
|
+
const b = l(E, v);
|
|
2680
|
+
b.entries.forEach(({ field: d, index: h, el: A }) => {
|
|
2681
|
+
i[d] === void 0 && (i[d] = []), i[d][h] = A;
|
|
2682
|
+
}), u = Math.max(u, b.maxWidth), v += b.count;
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
o.value = i, t.value = u, a = !1;
|
|
2686
|
+
};
|
|
2687
|
+
return {
|
|
2688
|
+
topLevelRowComponents: e,
|
|
2689
|
+
registerRowCellRefs: s,
|
|
2690
|
+
rebuildGridcellRefs: r
|
|
2691
|
+
};
|
|
2692
|
+
}, Hs = {
|
|
2693
|
+
i18n: { messages: xt },
|
|
2694
|
+
name: "bento-data-grid"
|
|
2695
|
+
}, Zs = /* @__PURE__ */ te({
|
|
2696
|
+
...Hs,
|
|
2697
|
+
props: {
|
|
2698
|
+
/**
|
|
2699
|
+
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2700
|
+
*/
|
|
2701
|
+
allowRowClicks: { type: Boolean, default: !1 },
|
|
2702
|
+
/**
|
|
2703
|
+
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
2704
|
+
*/
|
|
2705
|
+
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
2706
|
+
/**
|
|
2707
|
+
* List of actions that will be rendered in the action bar when user selects items.
|
|
2708
|
+
*
|
|
2709
|
+
* Each object in the list should have a `title`, an `event` and,
|
|
2710
|
+
* optionally, an `icon`.
|
|
2711
|
+
*
|
|
2712
|
+
* The component will display 4 actions and the hide the rest inside a menu.
|
|
2713
|
+
*
|
|
2714
|
+
* @see BentoButton for a list of all the other props supported by each button action.
|
|
2715
|
+
*/
|
|
2716
|
+
bulkActions: {
|
|
2717
|
+
type: Array,
|
|
2718
|
+
default: null
|
|
2719
|
+
},
|
|
2720
|
+
/**
|
|
2721
|
+
* Sets the row cells to the condensed padding state.
|
|
2722
|
+
*/
|
|
2723
|
+
condensed: {
|
|
2724
|
+
type: Boolean,
|
|
2725
|
+
default: !1
|
|
2726
|
+
},
|
|
2727
|
+
/**
|
|
2728
|
+
* Column definitions using 'key' to relate to data object.
|
|
2729
|
+
*/
|
|
2730
|
+
columns: {
|
|
2731
|
+
type: Array,
|
|
2732
|
+
required: !0
|
|
2733
|
+
},
|
|
2734
|
+
/**
|
|
2735
|
+
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
2736
|
+
*/
|
|
2737
|
+
columnPanel: { type: Boolean, default: !1 },
|
|
2738
|
+
/**
|
|
2739
|
+
* An array of data objects to display.
|
|
2740
|
+
*/
|
|
2741
|
+
data: {
|
|
2742
|
+
type: Array,
|
|
2743
|
+
required: !0
|
|
2744
|
+
},
|
|
2745
|
+
/**
|
|
2746
|
+
* Empty state props that will be passed down to inner empty-state component
|
|
2747
|
+
*/
|
|
2748
|
+
emptyState: {
|
|
2749
|
+
type: Object,
|
|
2750
|
+
default: void 0
|
|
2751
|
+
},
|
|
2752
|
+
/**
|
|
2753
|
+
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
2754
|
+
* {@see BentoFilterBarModel}
|
|
2755
|
+
*/
|
|
2756
|
+
filters: {
|
|
2757
|
+
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
2758
|
+
type: Array,
|
|
2759
|
+
default: void 0
|
|
2760
|
+
},
|
|
2761
|
+
/**
|
|
2762
|
+
* Defines the layout (multi-line or one-line) to be used in the filter bar for different
|
|
2763
|
+
* container sizes:
|
|
2764
|
+
* - Large (>=700px): Always multi-line
|
|
2765
|
+
* - Medium (>=430px & <700px)
|
|
2766
|
+
* - Small (<430px)
|
|
2767
|
+
*
|
|
2768
|
+
* @default
|
|
2769
|
+
* {
|
|
2770
|
+
* medium: 'multi-line',
|
|
2771
|
+
* small: 'one-line'
|
|
2772
|
+
* }
|
|
2773
|
+
*/
|
|
2774
|
+
filtersContainerSizeLayout: {
|
|
2775
|
+
type: Object,
|
|
2776
|
+
default: void 0
|
|
2777
|
+
},
|
|
2778
|
+
/**
|
|
2779
|
+
* An array of the values for each filter set in `value`.
|
|
2780
|
+
* {@see BentoFilterValues}
|
|
2781
|
+
*/
|
|
2782
|
+
filterValues: {
|
|
2783
|
+
type: Array,
|
|
2784
|
+
default: () => []
|
|
2785
|
+
},
|
|
2786
|
+
/**
|
|
2787
|
+
* An object of the values for each filter in the filter bar where key is a the field name and the value is the BentoFilterBarValue.
|
|
2788
|
+
*
|
|
2789
|
+
* @example
|
|
2790
|
+
* {
|
|
2791
|
+
* 'company': '200',
|
|
2792
|
+
* 'name': 'some text'
|
|
2793
|
+
* },
|
|
2794
|
+
*/
|
|
2795
|
+
filterValuesObject: {
|
|
2796
|
+
type: Object,
|
|
2797
|
+
default: () => {
|
|
2798
|
+
}
|
|
2799
|
+
},
|
|
2800
|
+
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
2801
|
+
// It was not done now because it's a breaking change for the types.
|
|
2802
|
+
/**
|
|
2803
|
+
* Filter's search bar properties with which the placeholder, hint and other
|
|
2804
|
+
* "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
|
|
2805
|
+
*/
|
|
2806
|
+
filterSearchConfig: {
|
|
2807
|
+
type: Object,
|
|
2808
|
+
default: void 0
|
|
2809
|
+
},
|
|
2810
|
+
/**
|
|
2811
|
+
* Filter bar search term useful to filter all the data by text
|
|
2812
|
+
*/
|
|
2813
|
+
filterSearchTerm: {
|
|
2814
|
+
type: String,
|
|
2815
|
+
default: void 0
|
|
2816
|
+
},
|
|
2817
|
+
/**
|
|
2818
|
+
* Allows the grid to be rendered inside a confined space.
|
|
2819
|
+
* This makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.
|
|
2820
|
+
*/
|
|
2821
|
+
fitContent: { type: Boolean, default: !1 },
|
|
2822
|
+
/**
|
|
2823
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2824
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
2825
|
+
*/
|
|
2826
|
+
getDataItemId: {
|
|
2827
|
+
type: Function,
|
|
2828
|
+
default: (o) => o.id
|
|
2829
|
+
},
|
|
2830
|
+
/**
|
|
2831
|
+
* Row actions propery that generates which button to show in row actions area
|
|
2832
|
+
*/
|
|
2833
|
+
rowActions: {
|
|
2834
|
+
type: [Function, Array],
|
|
2835
|
+
default: void 0
|
|
2836
|
+
},
|
|
2837
|
+
/**
|
|
2838
|
+
* If resize is enabled
|
|
2839
|
+
*/
|
|
2840
|
+
hasResizableColumns: {
|
|
2841
|
+
type: Boolean,
|
|
2842
|
+
default: !0
|
|
2843
|
+
},
|
|
2844
|
+
/**
|
|
2845
|
+
* Enables the nested content slot functionality.
|
|
2846
|
+
*/
|
|
2847
|
+
hasNestedContent: {
|
|
2848
|
+
type: Boolean,
|
|
2849
|
+
default: !1
|
|
2850
|
+
},
|
|
2851
|
+
/**
|
|
2852
|
+
* Enables the nested content slot functionality.
|
|
2853
|
+
*/
|
|
2854
|
+
hasNestedRows: {
|
|
2855
|
+
type: Boolean,
|
|
2856
|
+
default: !1
|
|
2857
|
+
},
|
|
2858
|
+
/**
|
|
2859
|
+
* Highlighted items
|
|
2860
|
+
*/
|
|
2861
|
+
highlightedRows: {
|
|
2862
|
+
type: Array,
|
|
2863
|
+
default: () => []
|
|
2864
|
+
},
|
|
2865
|
+
/**
|
|
2866
|
+
* A customisable method to determine if a row is not selectable.
|
|
2867
|
+
* The default is that every row is selectable.
|
|
2868
|
+
*/
|
|
2869
|
+
isDataItemDisabled: {
|
|
2870
|
+
type: Function,
|
|
2871
|
+
default: () => !1
|
|
2872
|
+
},
|
|
2873
|
+
/**
|
|
2874
|
+
* The type of `Lazy Load`.
|
|
2875
|
+
* Type "automatic" will enable infinite scrolling
|
|
2876
|
+
* Type "button" will enable lazy loading with "Show more" button
|
|
2877
|
+
* @values automatic, button, none
|
|
2878
|
+
*/
|
|
2879
|
+
lazyLoadType: {
|
|
2880
|
+
type: String,
|
|
2881
|
+
default: "none",
|
|
2882
|
+
validator: (o) => ["automatic", "button", "none"].includes(o)
|
|
2883
|
+
},
|
|
2884
|
+
/**
|
|
2885
|
+
* If the loading indicator should be shown.
|
|
2886
|
+
*/
|
|
2887
|
+
loading: {
|
|
2888
|
+
type: Boolean,
|
|
2889
|
+
default: !1
|
|
2890
|
+
},
|
|
2891
|
+
/**
|
|
2892
|
+
* Enables / Disables the table's surrounding border.
|
|
2893
|
+
*/
|
|
2894
|
+
outline: {
|
|
2895
|
+
type: Boolean,
|
|
2896
|
+
default: !1
|
|
2897
|
+
},
|
|
2898
|
+
/**
|
|
2899
|
+
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
2900
|
+
*/
|
|
2901
|
+
noSpacingTop: {
|
|
2902
|
+
type: Boolean,
|
|
2903
|
+
default: !1
|
|
2904
|
+
},
|
|
2905
|
+
/**
|
|
2906
|
+
* Pagination props that will be passed down to inner pagination component
|
|
2907
|
+
*/
|
|
2908
|
+
pagination: {
|
|
2909
|
+
type: Object,
|
|
2910
|
+
default: void 0
|
|
2911
|
+
},
|
|
2912
|
+
/**
|
|
2913
|
+
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
2914
|
+
* Needs pagination.totalCount to be set.
|
|
2915
|
+
*/
|
|
2916
|
+
selectableAcrossPages: {
|
|
2917
|
+
type: Boolean,
|
|
2918
|
+
default: !1
|
|
2919
|
+
},
|
|
2920
|
+
/**
|
|
2921
|
+
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
2922
|
+
*/
|
|
2923
|
+
slashedZero: { type: Boolean, default: !1 },
|
|
2924
|
+
/**
|
|
2925
|
+
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
2926
|
+
*/
|
|
2927
|
+
stickyHorizontalScrollbar: {
|
|
2928
|
+
type: Boolean,
|
|
2929
|
+
default: !1
|
|
2930
|
+
},
|
|
2931
|
+
/**
|
|
2932
|
+
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
2933
|
+
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
2934
|
+
*/
|
|
2935
|
+
stickyPagination: {
|
|
2936
|
+
type: Boolean,
|
|
2937
|
+
default: !1
|
|
2938
|
+
},
|
|
2939
|
+
/**
|
|
2940
|
+
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
2941
|
+
* Defaults to true.
|
|
2942
|
+
*/
|
|
2943
|
+
stickyFilters: {
|
|
2944
|
+
type: Boolean,
|
|
2945
|
+
default: !0
|
|
2946
|
+
},
|
|
2947
|
+
/**
|
|
2948
|
+
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
2949
|
+
*/
|
|
2950
|
+
selectable: {
|
|
2951
|
+
type: Boolean,
|
|
2952
|
+
default: !1
|
|
2953
|
+
},
|
|
2954
|
+
/**
|
|
2955
|
+
* Selected items
|
|
2956
|
+
*/
|
|
2957
|
+
selection: {
|
|
2958
|
+
type: Array,
|
|
2959
|
+
default: () => []
|
|
2960
|
+
},
|
|
2961
|
+
/**
|
|
2962
|
+
* Enables / Disables the nested-content slot
|
|
2963
|
+
*/
|
|
2964
|
+
shouldShowNestedContent: {
|
|
2965
|
+
type: Function,
|
|
2966
|
+
default: (o) => !0
|
|
2967
|
+
},
|
|
2968
|
+
/**
|
|
2969
|
+
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2970
|
+
*/
|
|
2971
|
+
shouldShowNestedRows: {
|
|
2972
|
+
type: Function,
|
|
2973
|
+
default: (o) => !0
|
|
2974
|
+
},
|
|
2975
|
+
/**
|
|
2976
|
+
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
2977
|
+
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
2978
|
+
*/
|
|
2979
|
+
sortBy: {
|
|
2980
|
+
type: Array,
|
|
2981
|
+
// NOTE: is an array to allow multi-sorting in the future
|
|
2982
|
+
default: () => []
|
|
2983
|
+
},
|
|
2984
|
+
/**
|
|
2985
|
+
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
2986
|
+
*/
|
|
2987
|
+
tabTitle: {
|
|
2988
|
+
type: String,
|
|
2989
|
+
default: null
|
|
2990
|
+
},
|
|
2991
|
+
/**
|
|
2992
|
+
* Truncates all data grid column headers
|
|
2993
|
+
*/
|
|
2994
|
+
truncateColumnHeaders: {
|
|
2995
|
+
type: Boolean,
|
|
2996
|
+
default: !1
|
|
2997
|
+
},
|
|
2998
|
+
/**
|
|
2999
|
+
* Toggles the alternating background color of rows.
|
|
3000
|
+
*/
|
|
3001
|
+
zebraRows: {
|
|
3002
|
+
type: Boolean,
|
|
3003
|
+
default: !1
|
|
3004
|
+
}
|
|
3005
|
+
},
|
|
3006
|
+
emits: [
|
|
3007
|
+
L.COLUMNS,
|
|
3008
|
+
L.COLUMN_RESIZE,
|
|
3009
|
+
L.ITEMS_PAGE,
|
|
3010
|
+
L.FILTER_SEARCH_INPUT,
|
|
3011
|
+
L.FILTER_SEARCH_CLEAR,
|
|
3012
|
+
L.NAVIGATE,
|
|
3013
|
+
L.NESTED_CONTENT_TOGGLED,
|
|
3014
|
+
L.UPDATE_COLUMNS,
|
|
3015
|
+
L.UPDATE_CONDENSED,
|
|
3016
|
+
L.UPDATE_FILTER_VALUES,
|
|
3017
|
+
L.UPDATE_FILTER_VALUES_OBJECT,
|
|
3018
|
+
L.UPDATE_FILTERS,
|
|
3019
|
+
L.UPDATE_FILTER_SEARCH_TERM,
|
|
3020
|
+
L.UPDATE_SHOW_MORE,
|
|
3021
|
+
L.UPDATE_PAGINATION,
|
|
3022
|
+
L.UPDATE_SELECTION,
|
|
3023
|
+
L.UPDATE_SORT_BY,
|
|
3024
|
+
L.ROW_CLICK,
|
|
3025
|
+
L.SELECT,
|
|
3026
|
+
L.SELECT_ALL_ACROSS_PAGES,
|
|
3027
|
+
L.SELECT_ALL_CURRENT_RESULTS,
|
|
3028
|
+
L.DESELECT_ALL_CURRENT_RESULTS,
|
|
3029
|
+
L.SORT,
|
|
3030
|
+
L.CELL_FOCUS
|
|
3031
|
+
],
|
|
3032
|
+
setup(o, { expose: t, emit: n }) {
|
|
3033
|
+
const e = o, l = $e(), a = Ge(l), s = _(null), r = _(), i = _({}), u = _(Le("data-grid")), v = _(null), C = _(null), E = _(null), b = _(null), d = _(null), h = _(null), {
|
|
3034
|
+
allowColumnDragAndDrop: A,
|
|
3035
|
+
columns: N,
|
|
3036
|
+
columnPanel: S,
|
|
3037
|
+
data: m,
|
|
3038
|
+
lazyLoadType: y,
|
|
3039
|
+
loading: O,
|
|
3040
|
+
hasNestedContent: R,
|
|
3041
|
+
hasNestedRows: c,
|
|
3042
|
+
selectable: p,
|
|
3043
|
+
selection: T,
|
|
3044
|
+
selectableAcrossPages: D,
|
|
3045
|
+
stickyPagination: F,
|
|
3046
|
+
outline: z,
|
|
3047
|
+
pagination: U,
|
|
3048
|
+
zebraRows: x
|
|
3049
|
+
} = ke(e), k = _(-1), { t: K } = ge(), ne = f(() => ue.value.filter((P) => P.frozen).length), re = 550, ce = _(), { width: de } = Yn(ce), me = f(() => de.value <= re);
|
|
3050
|
+
Ee(be, me);
|
|
3051
|
+
const { isTouchDevice: Ce } = Hn();
|
|
3052
|
+
Ee(Ie, Ce);
|
|
3053
|
+
const le = ie(
|
|
3054
|
+
Kn,
|
|
3055
|
+
() => ({
|
|
3056
|
+
additionalContentSlotRef: _(null),
|
|
3057
|
+
isDataGridTemplate: !1,
|
|
3058
|
+
stickyAditionalContent: _(!1),
|
|
3059
|
+
stickyTabs: _(!1),
|
|
3060
|
+
tabsRef: _(null)
|
|
3061
|
+
})
|
|
3062
|
+
), { additionalContentSlotRef: M, isDataGridTemplate: $, stickyTabs: H, tabsRef: g, stickyAdditionalContent: B } = le(), {
|
|
3063
|
+
columnDefs: ue,
|
|
3064
|
+
onColumnWidthOverride: he,
|
|
3065
|
+
gridRowWidthStyle: Ne,
|
|
3066
|
+
isMeasuringColumnWidths: De,
|
|
3067
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: Se,
|
|
3068
|
+
columns: we,
|
|
3069
|
+
totalWidthOfAllColumns: Re,
|
|
3070
|
+
rowActionsMaxWidth: w
|
|
3071
|
+
} = yo(N, m, s, i, v, {
|
|
3072
|
+
hasColumnPanel: S,
|
|
3073
|
+
hasSelectableColumn: p,
|
|
3074
|
+
hasSelectableAcrossPages: D,
|
|
3075
|
+
hasNestedContent: R,
|
|
3076
|
+
hasNestedRows: c,
|
|
3077
|
+
allowColumnDragAndDrop: A,
|
|
3078
|
+
isDataGridTemplate: $
|
|
3079
|
+
}), I = f(() => e.rowActions !== void 0), { registerRowCellRefs: Y, rebuildGridcellRefs: Q } = Vs(
|
|
3080
|
+
v,
|
|
3081
|
+
w,
|
|
3082
|
+
I
|
|
3083
|
+
), Z = (P, ...fe) => {
|
|
3084
|
+
(P === L.COLUMNS || P === L.UPDATE_COLUMNS) && ([we.value] = fe), n(P, ...fe);
|
|
3085
|
+
}, Me = ct(
|
|
3086
|
+
g,
|
|
3087
|
+
H,
|
|
3088
|
+
B,
|
|
3089
|
+
M
|
|
3090
|
+
), Ut = f(
|
|
3091
|
+
() => e.stickyFilters ? `${Me.value}px` : null
|
|
3092
|
+
), Ze = ct(C, xe(e, "stickyFilters")), kt = f(
|
|
3093
|
+
() => `${Ze.value + Me.value}px`
|
|
3094
|
+
), {
|
|
3095
|
+
sortedColumns: Fe,
|
|
3096
|
+
columnSets: Pe,
|
|
3097
|
+
isOnlyOneVisibleColumn: $t,
|
|
3098
|
+
internalZebraRows: je,
|
|
3099
|
+
onConfigSettingsColumnsUpdate: Wt,
|
|
3100
|
+
onConfigSettingsColumnUpdate: Gt,
|
|
3101
|
+
onConfigSettingsCondensedUpdate: Vt,
|
|
3102
|
+
onConfigSettingsZebraRowsUpdate: Ht
|
|
3103
|
+
} = Mo(ue, x, Z), { hoveredOverColumn: Zt, hoveredOverColumnState: jt } = Po(
|
|
3104
|
+
Pe,
|
|
3105
|
+
p,
|
|
3106
|
+
z,
|
|
3107
|
+
Se
|
|
3108
|
+
), { draggingColumns: qt, draggingEventsForColumns: Kt, draggingEventsForRowCell: Yt, onMoveColumnByOffset: Xt } = Do(Fe, A, Z), qe = f(
|
|
3109
|
+
() => e.data?.length > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0
|
|
3110
|
+
), {
|
|
3111
|
+
onAllRowSelect: Jt,
|
|
3112
|
+
onRowSelect: Qt,
|
|
3113
|
+
onNestedRowSelect: en,
|
|
3114
|
+
onDeselectAll: tn,
|
|
3115
|
+
allItemsSelectedState: nn,
|
|
3116
|
+
selectedItems: Ke,
|
|
3117
|
+
selectionState: on
|
|
3118
|
+
} = Lo(
|
|
3119
|
+
T,
|
|
3120
|
+
Z,
|
|
3121
|
+
m,
|
|
3122
|
+
e.getDataItemId,
|
|
3123
|
+
e.isDataItemDisabled,
|
|
3124
|
+
qe,
|
|
3125
|
+
U
|
|
3126
|
+
), ln = f(() => ({
|
|
3127
|
+
filtered: E.value?.isClearAllVisible || E.value?.isResetAllVisible || !!e.filterSearchTerm,
|
|
3128
|
+
allRowsVisible: U.value?.size >= U.value?.totalCount
|
|
3129
|
+
})), { navigationInput: sn } = Oo(
|
|
3130
|
+
v,
|
|
3131
|
+
i,
|
|
3132
|
+
Fe,
|
|
3133
|
+
p,
|
|
3134
|
+
I,
|
|
3135
|
+
S
|
|
3136
|
+
), { isLazyLoad: Ae, isInfiniteScroll: an, verticalScrollPosition: Ye, emitLazyLoadEvent: rn } = No(
|
|
3137
|
+
y,
|
|
3138
|
+
d,
|
|
3139
|
+
s,
|
|
3140
|
+
O,
|
|
3141
|
+
Z
|
|
3142
|
+
), {
|
|
3143
|
+
updateScrollPosition: cn,
|
|
3144
|
+
updateScrollPositionOnFrozenColumnsNavigation: dn,
|
|
3145
|
+
syncVirtualScrollerWithBody: un,
|
|
3146
|
+
hasLeftOverflow: ze,
|
|
3147
|
+
hasRightOverflow: Xe,
|
|
3148
|
+
horizontalScrollbarConditionalStyles: fn
|
|
3149
|
+
} = Fo(
|
|
3150
|
+
s,
|
|
3151
|
+
r,
|
|
3152
|
+
Ye,
|
|
3153
|
+
h,
|
|
3154
|
+
b,
|
|
3155
|
+
Re,
|
|
3156
|
+
{
|
|
3157
|
+
isLazyLoad: Ae,
|
|
3158
|
+
pagination: U,
|
|
3159
|
+
stickyPagination: F,
|
|
3160
|
+
isDataGridTemplate: $
|
|
3161
|
+
}
|
|
3162
|
+
), Je = () => {
|
|
3163
|
+
E.value.isClearAllVisible ? E.value.clearAllFilters() : E.value.isResetAllVisible && E.value.resetAllFilters();
|
|
3164
|
+
}, gn = f(() => ({
|
|
3165
|
+
...e.emptyState,
|
|
3166
|
+
variant: e.emptyState?.variant === "embedded" || e.emptyState?.variant === "basic" ? e.emptyState.variant : "basic"
|
|
3167
|
+
})), mn = f(() => ({
|
|
3168
|
+
[`b-data-grid--${ae.OUTLINE}`]: e.outline,
|
|
3169
|
+
[`b-data-grid--${ae.SCROLL}`]: e.fitContent || Ae.value,
|
|
3170
|
+
[`b-data-grid--${ae.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
3171
|
+
[`b-data-grid--${ae.OVERFLOW_SHADOW_LEFT}`]: ze.value && !ne.value,
|
|
3172
|
+
[`b-data-grid--${ae.OVERFLOW_SHADOW_RIGHT}`]: Xe.value && e.rowActions === void 0,
|
|
3173
|
+
[`b-data-grid--${ae.NO_SPACING_TOP}`]: e.noSpacingTop,
|
|
3174
|
+
[`b-data-grid--${ae.FIT_CONTENT}`]: e.fitContent,
|
|
3175
|
+
[`b-data-grid--${ae.ZEBRA_ROWS}`]: je.value,
|
|
3176
|
+
"b-data-grid--lazy-load": Ae.value
|
|
3177
|
+
})), Cn = f(() => ({
|
|
3178
|
+
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
3179
|
+
})), _n = f(() => Pe.value.findIndex((P) => P.columnSet.length)), vn = f(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && ne.value === 1) || ze.value), hn = f(() => ({
|
|
3180
|
+
"b-data-grid__filters--sticky": !!e.stickyFilters || $
|
|
3181
|
+
})), pn = f(() => ({
|
|
3182
|
+
"b-data-grid__pagination--padding-left-unset": e.columns?.[0]?.padding?.left === !1,
|
|
3183
|
+
"b-data-grid__pagination--padding-right-unset": e.columns?.[e.columns.length - 1]?.padding?.right === !1,
|
|
3184
|
+
"b-data-grid__pagination--sticky": !!e.stickyPagination || $
|
|
3185
|
+
})), bn = (P) => {
|
|
3186
|
+
const fe = P;
|
|
3187
|
+
P !== null && fe?.columnHeaderRefs && Object.entries(fe?.columnHeaderRefs).forEach(([Dn, Mn]) => {
|
|
3188
|
+
i.value[Dn] = Mn;
|
|
3189
|
+
});
|
|
3190
|
+
}, Sn = (P, fe) => {
|
|
3191
|
+
e.allowRowClicks && Z(L.ROW_CLICK, P, fe);
|
|
3192
|
+
}, wn = (P) => {
|
|
3193
|
+
Z(L.NESTED_CONTENT_TOGGLED, P), q(() => Q());
|
|
3194
|
+
}, Rn = (P) => {
|
|
3195
|
+
k.value = P;
|
|
3196
|
+
}, An = f(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), Qe = f(() => Ke.value?.length ?? 0), En = f(() => e.bulkActions && Qe.value > 0), yn = (P) => Z(L.COLUMN_RESIZE, P), Ln = (P) => {
|
|
3197
|
+
Z(L.UPDATE_SORT_BY, P), Z(L.SORT, P);
|
|
3198
|
+
}, Tn = (P, fe) => {
|
|
3199
|
+
Z(L.NAVIGATE, P), Z(L.UPDATE_PAGINATION, {
|
|
3200
|
+
...e.pagination,
|
|
3201
|
+
size: fe,
|
|
3202
|
+
page: P
|
|
3203
|
+
});
|
|
3204
|
+
}, On = (P) => {
|
|
3205
|
+
Z(L.ITEMS_PAGE, P);
|
|
3206
|
+
}, In = () => {
|
|
3207
|
+
Z(L.FILTER_SEARCH_CLEAR);
|
|
3208
|
+
}, Nn = (P) => {
|
|
3209
|
+
Z(L.UPDATE_FILTER_SEARCH_TERM, P), Z(L.FILTER_SEARCH_INPUT, P);
|
|
3210
|
+
}, et = f(() => N.value.some((P) => P.mandatory));
|
|
3211
|
+
et.value || Lt(
|
|
3212
|
+
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3213
|
+
);
|
|
3214
|
+
const tt = ie(qn, () => null);
|
|
3215
|
+
return tt(e.tabTitle), Ee(zt, xe(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: Je }), { __sfc: !0, props: e, slots: l, hasSlot: a, body: s, columnsRef: r, columnHeaderRefs: i, dataGridUid: u, gridcellRefs: v, filtersRef: C, filterBarRef: E, paginationContainerRef: b, verticalScrollPositionRef: d, virtualHorizontalScrollbarRef: h, allowColumnDragAndDrop: A, columns: N, columnPanel: S, data: m, lazyLoadType: y, loading: O, hasNestedContent: R, hasNestedRows: c, selectable: p, selection: T, selectableAcrossPages: D, stickyPagination: F, outline: z, pagination: U, zebraRows: x, hoveredRowIndex: k, t: K, frozenColumnsLength: ne, MOBILE_BREAKPOINT: re, dataGridRef: ce, width: de, isSmallContainer: me, isTouchDevice: Ce, registerDatagridInDataGridTemplate: le, additionalContentSlotRef: M, isDataGridTemplate: $, stickyTabs: H, tabsRef: g, stickyAdditionalContent: B, columnDefs: ue, onColumnWidthOverride: he, gridRowWidthStyle: Ne, isMeasuringColumnWidths: De, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: Se, localColumnsState: we, totalWidthOfAllColumns: Re, rowActionsMaxWidth: w, hasRowActions: I, registerRowCellRefs: Y, rebuildGridcellRefs: Q, definedEmitsFunction: n, emit: Z, stickyFiltersHeight: Me, computedStickyFiltersTopPosition: Ut, columnHeadersHeight: Ze, computedColumnHeadersTopPosition: kt, sortedColumns: Fe, columnSets: Pe, isOnlyOneVisibleColumn: $t, internalZebraRows: je, onConfigSettingsColumnsUpdate: Wt, onConfigSettingsColumnUpdate: Gt, onConfigSettingsCondensedUpdate: Vt, onConfigSettingsZebraRowsUpdate: Ht, hoveredOverColumn: Zt, hoveredOverColumnState: jt, draggingColumns: qt, draggingEventsForColumns: Kt, draggingEventsForRowCell: Yt, onMoveColumnByOffset: Xt, selectableAcrossPagesComputed: qe, onAllRowSelect: Jt, onRowSelect: Qt, onNestedRowSelect: en, onDeselectAll: tn, allItemsSelectedState: nn, selectedItems: Ke, selectionState: on, visibleRowsState: ln, navigationInput: sn, isLazyLoad: Ae, isInfiniteScroll: an, verticalScrollPosition: Ye, emitLazyLoadEvent: rn, updateScrollPosition: cn, updateScrollPositionOnFrozenColumnsNavigation: dn, syncVirtualScrollerWithBody: un, hasLeftOverflow: ze, hasRightOverflow: Xe, horizontalScrollbarConditionalStyles: fn, onEmptyStateClearResetButtonClick: Je, limitedEmptyStateProps: gn, conditionalGridClasses: mn, conditionalGridBodyClasses: Cn, computedColumnPanelAlignment: _n, showFrozenColumnsSeparator: vn, conditionalFilterClasses: hn, conditionalPaginationClasses: pn, registerColumnHeaderRefs: bn, onRowClick: Sn, onNestedContentToggled: wn, onCellHover: Rn, ariaGridRole: An, itemsSelectedCounter: Qe, showActionBar: En, onColumnResized: yn, onSort: Ln, onPaginationNavigate: Tn, onItemsPerPageChange: On, onSearchTermCleared: In, onSearchTermInput: Nn, hasMandatoryColumn: et, setTitle: tt, BentoActionBar: Gn, BentoPagination: Vn, BentoLoadingIndicator: We, BentoTypography: ve, BentoDataGridConfigSettings: Il, DataGridColumns: gl, DataGridLazyLoad: zl, DataGridRow: as, handleClipboard: zo, BentoDatagridEvent: L, BentoFilterBar: Zn, BentoEmptyState: jn };
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
var js = function() {
|
|
3219
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3220
|
+
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: s }, r) {
|
|
3221
|
+
return [l?.length || !s && e.rowActionsMaxWidth ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (i) => e.registerColumnHeaderRefs(i), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": s, "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": r === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.data?.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(i) {
|
|
3222
|
+
e.hoveredOverColumn = i;
|
|
3223
|
+
}, "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(i) {
|
|
3224
|
+
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
3225
|
+
}, "select-all-current-results": function(i) {
|
|
3226
|
+
return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
|
|
3227
|
+
}, "deselect-all-current-results": function(i) {
|
|
3228
|
+
return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
|
|
3229
|
+
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(i, u) {
|
|
3230
|
+
return { key: u, fn: function(v) {
|
|
3231
|
+
return [t._t(u, null, null, v)];
|
|
3232
|
+
} };
|
|
3233
|
+
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
3234
|
+
})], 2)])]), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : n("div", { attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, [e.data?.length === 0 && t.emptyState ? [n("div", { attrs: { role: "row", tabindex: "-1" } }, [n("div", { attrs: { role: "gridcell", "aria-colspan": e.columns.length, tabindex: "-1" } }, [n(e.BentoEmptyState, t._b({ staticClass: "b-data-grid__empty-state" }, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1)])] : t._l(e.data, function(l, a) {
|
|
3235
|
+
return n(e.DataGridRow, { key: a, ref: (s) => e.registerRowCellRefs(s, a), refInFor: !0, style: e.gridRowWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-even": e.internalZebraRows ? a % 2 !== 0 : !1, "is-row-last-child": a + 1 === e.data?.length, "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": e.data?.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "cell-focus": function(s) {
|
|
3236
|
+
return e.emit(e.BentoDatagridEvent.CELL_FOCUS, s);
|
|
3237
|
+
}, "nested-content-toggled": function(s) {
|
|
3238
|
+
return e.onNestedContentToggled(s);
|
|
3239
|
+
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(s, r) {
|
|
3240
|
+
return { key: r, fn: function(i) {
|
|
3241
|
+
return [t._t(r, null, null, i)];
|
|
3242
|
+
} };
|
|
3243
|
+
})], null, !0) });
|
|
3244
|
+
})], 2)])]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", style: e.horizontalScrollbarConditionalStyles, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { ref: "paginationContainerRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": e.t("pagination"), "aria-controls": e.dataGridUid }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: e.onDeselectAll } }) : t._e()], 1);
|
|
3245
|
+
}, qs = [], Ks = /* @__PURE__ */ V(
|
|
3246
|
+
Zs,
|
|
3247
|
+
js,
|
|
3248
|
+
qs,
|
|
3249
|
+
!1,
|
|
3250
|
+
null,
|
|
3251
|
+
"d2adefa7"
|
|
3252
|
+
);
|
|
3253
|
+
const Za = Ks.exports;
|
|
3254
|
+
export {
|
|
3255
|
+
Be as B,
|
|
3256
|
+
Wa as a,
|
|
3257
|
+
Ga as b,
|
|
3258
|
+
Va as c,
|
|
3259
|
+
Za as d,
|
|
3260
|
+
Ha as e,
|
|
3261
|
+
ye as f,
|
|
3262
|
+
L as g,
|
|
3263
|
+
_e as h,
|
|
3264
|
+
ae as i
|
|
3265
|
+
};
|
|
3266
|
+
//# sourceMappingURL=data-grid.DPh8BSnM.js.map
|