@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
|
@@ -1,4121 +0,0 @@
|
|
|
1
|
-
import { ref as w, onMounted as Te, nextTick as ee, watch as ae, onUnmounted as Ot, reactive as We, toRefs as Ge, computed as C, watchEffect as Pn, onBeforeUpdate as zn, defineComponent as ie, inject as me, toRef as ke, useSlots as Ve, provide as Ne } from "vue";
|
|
2
|
-
import { C as Bn } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
|
-
import { W as Un } from "./alert.CDP-LTh5.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { n as X } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import { C as It } from "./cross.CC_B-vG-.js";
|
|
7
|
-
import { N as it } from "./minus-small.DJacLGTw.js";
|
|
8
|
-
import { b as kn } from "./popper-container.Cb9wuFId.js";
|
|
9
|
-
import { E as j, b as Nt, B as $n, T as Wn } from "./tooltip.7ct8WxCl.js";
|
|
10
|
-
import { B as Gn } from "./dashed-underline.ByPcIHNe.js";
|
|
11
|
-
import { B as ye, p as Dt } from "./typography.C8lPlsbD.js";
|
|
12
|
-
import { u as Ce } from "./index.B6WW_F-J.js";
|
|
13
|
-
import { B as Vn } from "./tag.BAyLm485.js";
|
|
14
|
-
import { B as Hn } from "./action-bar.-kzjjAuX.js";
|
|
15
|
-
import { B as Zn } from "./pagination.CZVdaeqE.js";
|
|
16
|
-
import { B as He } from "./loading-indicator.PxbRzshH.js";
|
|
17
|
-
import { u as Ze } from "./use-has-slot.C9lQZ6nz.js";
|
|
18
|
-
import { u as jn } from "./use-touch-device.DTqFAbXh.js";
|
|
19
|
-
import { g as Me } from "./generate-uid.NJ8tVoha.js";
|
|
20
|
-
import { a as qn } from "./filter-bar.qlViDZPY.js";
|
|
21
|
-
import { B as Kn } from "./empty-state.DSVU1vU8.js";
|
|
22
|
-
import { E as Yn } from "./tabs.keys.B4qGhjp2.js";
|
|
23
|
-
import { D as Xn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
24
|
-
import { h as Jn } from "./index.C7m7gI5w.js";
|
|
25
|
-
import { o as Mt } from "./resize.Bqks3WUm.js";
|
|
26
|
-
import "./index.Cl4_42j5.js";
|
|
27
|
-
import { b as Ft } from "./focus-trap.oRKjDFzf.js";
|
|
28
|
-
import { B as xt } from "./checkbox.BUc2332d.js";
|
|
29
|
-
import { B as Pt } from "./button.CKS_V3p5.js";
|
|
30
|
-
import { c as je, f as zt, h as Qn, b as eo, a as to, O as rt, D as no } from "./button-actions.Dpbx0xf3.js";
|
|
31
|
-
import { E as ct } from "./link.Cejg8jB6.js";
|
|
32
|
-
import { C as dt } from "./copy.BlyhTDSU.js";
|
|
33
|
-
import { C as oo } from "./chevron-down.eYtgv5ly.js";
|
|
34
|
-
import { C as so } from "./chevron-up.d8cwIlA_.js";
|
|
35
|
-
import { u as lo } from "./use-expandable-content-height.2WJLCL-R.js";
|
|
36
|
-
import { B as ao } from "./info-icon.BnLYUTzI.js";
|
|
37
|
-
import { j as io, f as ro } from "./dropdown.DIqgVVXB.js";
|
|
38
|
-
import { B as ut } from "./popover.types.BfnJIpII.js";
|
|
39
|
-
import { A as co } from "./arrow-left.CRREfabP.js";
|
|
40
|
-
import { A as uo } from "./arrow-right.Dn3AYpUP.js";
|
|
41
|
-
import { H as fo, S as go } from "./show.B_mKPF6I.js";
|
|
42
|
-
import { l as ft } from "./events.BQOQSSb7.js";
|
|
43
|
-
import { B as Bt } from "./toggle.Ca-MM3dt.js";
|
|
44
|
-
import { B as mo } from "./search-bar.8iDkgmjw.js";
|
|
45
|
-
import { S as _o } from "./search.D53Ia3rC.js";
|
|
46
|
-
import { B as Co } from "./directive.BBWhsNtO.js";
|
|
47
|
-
import "../assets/data-grid.css";
|
|
48
|
-
const gt = (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 l = parseFloat(e.height), a = parseFloat(e.bottom);
|
|
56
|
-
!isNaN(l) && !isNaN(a) && a < 0 && a + l <= 0 && (n += l);
|
|
57
|
-
}
|
|
58
|
-
const s = parseFloat(t.top);
|
|
59
|
-
return !isNaN(s) && s < 0 && (n += s), n;
|
|
60
|
-
}, mt = (o, t, n = w(!1), e = null) => {
|
|
61
|
-
const s = w(0);
|
|
62
|
-
let l = null, a = null;
|
|
63
|
-
const r = () => {
|
|
64
|
-
const d = t.value ? gt(o.value) : 0, g = n.value && e ? gt(e.value) : 0;
|
|
65
|
-
s.value = d + g;
|
|
66
|
-
};
|
|
67
|
-
return Te(() => {
|
|
68
|
-
ee(() => {
|
|
69
|
-
const d = ae(
|
|
70
|
-
o,
|
|
71
|
-
() => {
|
|
72
|
-
o != null && o.value && (ee(() => d()), l = Mt(o.value, r), a = new MutationObserver(r), a.observe(o.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
73
|
-
},
|
|
74
|
-
{ immediate: !0 }
|
|
75
|
-
);
|
|
76
|
-
ae(
|
|
77
|
-
[t, n],
|
|
78
|
-
() => {
|
|
79
|
-
r();
|
|
80
|
-
},
|
|
81
|
-
{ immediate: !0 }
|
|
82
|
-
);
|
|
83
|
-
});
|
|
84
|
-
}), Ot(() => {
|
|
85
|
-
l == null || l.disconnect(), a == null || a.disconnect();
|
|
86
|
-
}), s;
|
|
87
|
-
};
|
|
88
|
-
var $e = /* @__PURE__ */ ((o) => (o.WRAP = "wrap", o.ELLIPSIS = "ellipsis", o))($e || {}), Y = /* @__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))(Y || {}), ge = /* @__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))(ge || {}), Ee = /* @__PURE__ */ ((o) => (o.ASCENDING = "asc", o.DESCENDING = "desc", o))(Ee || {}), M = /* @__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))(M || {}), De = /* @__PURE__ */ ((o) => (o.ASCENDING = "ascending", o.DESCENDING = "descending", o.NONE = "none", o))(De || {});
|
|
89
|
-
const vo = (o, t) => {
|
|
90
|
-
const n = w(null), e = w(!1), s = w(void 0), l = o.value.reduce((E, N) => (E[N.field] = null, E), {}), a = We(l), r = Ge(a);
|
|
91
|
-
let d = 0, g = "";
|
|
92
|
-
const p = C(
|
|
93
|
-
() => Object.fromEntries(o.value.map(({ field: E, width: N, minWidth: R }) => [E, { width: N, minWidth: R }]))
|
|
94
|
-
);
|
|
95
|
-
Pn(() => s.value = p.value);
|
|
96
|
-
let v = null, y = null;
|
|
97
|
-
const S = (E) => {
|
|
98
|
-
const N = E.clientX - d, R = g, m = s.value[R].width + N;
|
|
99
|
-
s.value[R].width = m > p.value[R].minWidth ? m : p.value[R].minWidth, t(Y.COLUMN_RESIZING, s.value), d = E.clientX;
|
|
100
|
-
}, u = () => {
|
|
101
|
-
e.value = !1, v == null || v(), y == null || y(), g && t(Y.COLUMN_RESIZE, {
|
|
102
|
-
field: g,
|
|
103
|
-
width: s.value[g].width
|
|
104
|
-
}), v = null, y = null, g = "", d = null;
|
|
105
|
-
}, b = (E, N, R) => {
|
|
106
|
-
if (R.preventDefault(), E) {
|
|
107
|
-
if (e.value = !0, R.buttons !== 1) {
|
|
108
|
-
u();
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
g = N, d = R.clientX, v = ft(window, "mousemove", S), y = ft(window, "mouseup", u);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
return ae(
|
|
115
|
-
() => e.value,
|
|
116
|
-
(E, N) => {
|
|
117
|
-
!E && N && (t(Y.COLUMN_HOVER, n.value), n.value = null);
|
|
118
|
-
}
|
|
119
|
-
), {
|
|
120
|
-
resizeData: s,
|
|
121
|
-
allColumnRefs: r,
|
|
122
|
-
startResize: b,
|
|
123
|
-
isResizing: e,
|
|
124
|
-
columnHoverEventToEmitAfterResizing: n
|
|
125
|
-
};
|
|
126
|
-
}, ho = 100, _t = 50, le = "b-actions-column", po = 42, bo = 56, wo = 56, So = 80, Ro = 36, Ao = 1, Ut = 16, Eo = 20, yo = (o, t, n) => {
|
|
127
|
-
const e = {}, s = [], l = (r) => {
|
|
128
|
-
const d = e[r];
|
|
129
|
-
d && d.frozen !== !0 && (e[r].frozen = !0, s.push(r));
|
|
130
|
-
};
|
|
131
|
-
function a() {
|
|
132
|
-
if (s.length === n.length)
|
|
133
|
-
return;
|
|
134
|
-
const r = { min: {} };
|
|
135
|
-
let d = o, g = t, p = 0;
|
|
136
|
-
s.forEach((v) => {
|
|
137
|
-
d -= e[v].computedWidth, g -= e[v].flex;
|
|
138
|
-
});
|
|
139
|
-
for (let v = 0, y = n.length; v < y; v += 1) {
|
|
140
|
-
const S = n[v];
|
|
141
|
-
if (e[S.field] && e[S.field].frozen === !0)
|
|
142
|
-
continue;
|
|
143
|
-
let b = d / g * S.flex;
|
|
144
|
-
b < S.minWidth && (p += S.minWidth - b, b = S.minWidth, r.min[S.field] = !0), e[S.field] = {
|
|
145
|
-
frozen: !1,
|
|
146
|
-
computedWidth: b,
|
|
147
|
-
flex: S.flex
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
p > 0 ? Object.keys(r.min).forEach((v) => {
|
|
151
|
-
l(v);
|
|
152
|
-
}) : n.forEach(({ field: v }) => {
|
|
153
|
-
l(v);
|
|
154
|
-
}), a();
|
|
155
|
-
}
|
|
156
|
-
return a(), e;
|
|
157
|
-
}, Ct = (o, t) => {
|
|
158
|
-
let n = Ao;
|
|
159
|
-
return t && (n += Ut * 2), o != null && o.offsetWidth ? o.offsetWidth + n : 0;
|
|
160
|
-
}, Lo = (o) => {
|
|
161
|
-
var t, n, e, s, l;
|
|
162
|
-
return (t = o == null ? void 0 : o.hasNestedContent) != null && t.value || (n = o == null ? void 0 : o.hasNestedRows) != null && n.value ? (e = o == null ? void 0 : o.hasSelectableColumn) != null && e.value ? (s = o == null ? void 0 : o.hasSelectableAcrossPages) != null && s.value ? So : wo : Ro : (l = o == null ? void 0 : o.hasSelectableAcrossPages) != null && l.value ? bo : po;
|
|
163
|
-
}, To = (o, t, n, e, s, l) => {
|
|
164
|
-
const a = w(o.value), r = w(t), d = w(n), g = w(e), p = w(s), v = w(!1), y = w(0);
|
|
165
|
-
ae(
|
|
166
|
-
() => o.value,
|
|
167
|
-
(i, f) => {
|
|
168
|
-
var D, P;
|
|
169
|
-
const A = (i == null ? void 0 : i.map(({ field: x }) => x).toString()) === (f == null ? void 0 : f.map(({ field: x }) => x).toString());
|
|
170
|
-
if (!((D = l == null ? void 0 : l.allowColumnDragAndDrop) != null && D.value) || !A) {
|
|
171
|
-
a.value = o.value;
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
a.value = ((P = a.value) == null ? void 0 : P.length) === 0 ? o.value : o.value.sort((x, U) => {
|
|
175
|
-
const q = a.value.findIndex((G) => G.field === x.field), W = a.value.findIndex((G) => G.field === U.field);
|
|
176
|
-
return q === -1 ? 1 : W === -1 ? -1 : q - W;
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
const S = w();
|
|
181
|
-
let u = null;
|
|
182
|
-
const b = C(() => {
|
|
183
|
-
var q, W, G;
|
|
184
|
-
const i = [];
|
|
185
|
-
let f = 0, A = 0;
|
|
186
|
-
const D = {};
|
|
187
|
-
let P = a.value.filter(($) => $.visible !== !1);
|
|
188
|
-
const x = a.value.filter(($) => $.visible === !1);
|
|
189
|
-
if ((q = l == null ? void 0 : l.hasSelectableColumn) != null && q.value || (W = l == null ? void 0 : l.hasNestedContent) != null && W.value || (G = l == null ? void 0 : l.hasNestedRows) != null && G.value) {
|
|
190
|
-
const $ = Lo(l);
|
|
191
|
-
P = [
|
|
192
|
-
{
|
|
193
|
-
field: le,
|
|
194
|
-
label: "",
|
|
195
|
-
minWidth: $,
|
|
196
|
-
width: $,
|
|
197
|
-
frozen: !0,
|
|
198
|
-
padding: { left: !1, right: !1 }
|
|
199
|
-
},
|
|
200
|
-
...P
|
|
201
|
-
];
|
|
202
|
-
}
|
|
203
|
-
P.forEach(($) => {
|
|
204
|
-
const B = { ...$ };
|
|
205
|
-
let oe;
|
|
206
|
-
B.flex && B.flex > 0 ? (f += B.flex, oe = 0, i.push(B)) : oe = Math.max(
|
|
207
|
-
(B == null ? void 0 : B.width) ?? ho,
|
|
208
|
-
(B == null ? void 0 : B.minWidth) ?? _t
|
|
209
|
-
), A += oe, B.width = oe, B.minWidth = (B == null ? void 0 : B.minWidth) ?? _t, D[B.field] = B;
|
|
210
|
-
}), A += y.value;
|
|
211
|
-
const U = Math.max(S.value - A, 0);
|
|
212
|
-
if (f > 0 && S.value > 0) {
|
|
213
|
-
const $ = yo(U, f, i);
|
|
214
|
-
Object.keys($).forEach((B) => {
|
|
215
|
-
D[B].width = $[B].computedWidth;
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
return x.forEach(($) => {
|
|
219
|
-
const B = { ...$ };
|
|
220
|
-
D[B.field] = B;
|
|
221
|
-
}), Object.values(D);
|
|
222
|
-
}), E = w(void 0), N = (i) => {
|
|
223
|
-
E.value = { ...E.value, ...i };
|
|
224
|
-
}, R = async () => {
|
|
225
|
-
a.value.some((i) => i == null ? void 0 : i.autoWidth) && (v.value = !0, await ee(), a == null || a.value.filter((i) => i == null ? void 0 : i.autoWidth).forEach(({ field: i, minWidth: f }) => {
|
|
226
|
-
var x, U, q, W;
|
|
227
|
-
const A = Ct(
|
|
228
|
-
(x = g.value) == null ? void 0 : x[i],
|
|
229
|
-
(U = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : U.value
|
|
230
|
-
), D = (W = (q = p.value) == null ? void 0 : q[i]) == null ? void 0 : W.reduce(
|
|
231
|
-
(G, $) => Math.max(G, Ct($)),
|
|
232
|
-
0
|
|
233
|
-
), P = Math.max(A, D ?? 0);
|
|
234
|
-
(f === void 0 || P > f) && N({
|
|
235
|
-
[i]: {
|
|
236
|
-
width: P
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
}), v.value = !1);
|
|
240
|
-
};
|
|
241
|
-
ae([() => a.value, () => r.value], async () => {
|
|
242
|
-
a.value.some((i) => i == null ? void 0 : i.autoWidth) && await R();
|
|
243
|
-
});
|
|
244
|
-
const m = C(
|
|
245
|
-
() => b.value.map((i) => {
|
|
246
|
-
var f, A;
|
|
247
|
-
return {
|
|
248
|
-
...i,
|
|
249
|
-
// Override column width with resized ones
|
|
250
|
-
width: ((A = (f = E.value) == null ? void 0 : f[i.field]) == null ? void 0 : A.width) ?? i.width
|
|
251
|
-
};
|
|
252
|
-
})
|
|
253
|
-
), O = C(
|
|
254
|
-
() => {
|
|
255
|
-
var i;
|
|
256
|
-
return ((i = m.value) == null ? void 0 : i.filter(({ visible: f }) => f !== !1).reduce((f, A) => A.width + f, 0)) + y.value;
|
|
257
|
-
}
|
|
258
|
-
), I = C(
|
|
259
|
-
() => S.value <= O.value
|
|
260
|
-
), _ = C(() => ({
|
|
261
|
-
width: S.value > O.value ? "100%" : "fit-content"
|
|
262
|
-
}));
|
|
263
|
-
return Te(() => {
|
|
264
|
-
var f;
|
|
265
|
-
const i = l != null && l.isDataGridTemplate ? Eo : 0;
|
|
266
|
-
ee(() => {
|
|
267
|
-
d.value && (S.value = d.value.getBoundingClientRect().width - i);
|
|
268
|
-
const A = ae(
|
|
269
|
-
d,
|
|
270
|
-
() => {
|
|
271
|
-
d.value && (ee(() => A()), u = Mt(d.value, ({ width: D }) => {
|
|
272
|
-
S.value = D - i;
|
|
273
|
-
}));
|
|
274
|
-
},
|
|
275
|
-
{ immediate: !0 }
|
|
276
|
-
);
|
|
277
|
-
}), (f = document == null ? void 0 : document.fonts) != null && f.ready ? document.fonts.ready.then(() => {
|
|
278
|
-
R();
|
|
279
|
-
}) : R();
|
|
280
|
-
}), Ot(() => {
|
|
281
|
-
u == null || u.disconnect();
|
|
282
|
-
}), zn(() => {
|
|
283
|
-
var i;
|
|
284
|
-
p.value && ((i = Object.keys(p.value)) == null ? void 0 : i.length) > 0 && Object.keys(p.value).forEach((A) => {
|
|
285
|
-
p.value[A] = [];
|
|
286
|
-
});
|
|
287
|
-
}), {
|
|
288
|
-
columnDefs: m,
|
|
289
|
-
gridRowWidthStyle: _,
|
|
290
|
-
onColumnWidthOverride: N,
|
|
291
|
-
isMeasuringColumnWidths: v,
|
|
292
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: I,
|
|
293
|
-
columns: a,
|
|
294
|
-
totalWidthOfAllColumns: O,
|
|
295
|
-
rowActionsMaxWidth: y
|
|
296
|
-
};
|
|
297
|
-
}, Oo = (o, t, n, e, s, l, a) => {
|
|
298
|
-
const r = w(o.value ?? []), d = We({
|
|
299
|
-
allItemsSelected: !1,
|
|
300
|
-
isIndeterminate: !1
|
|
301
|
-
}), g = C(
|
|
302
|
-
() => n.value.flatMap((i) => {
|
|
303
|
-
var f;
|
|
304
|
-
return [i, ((f = i == null ? void 0 : i.children) == null ? void 0 : f.length) > 0 ? i == null ? void 0 : i.children : []];
|
|
305
|
-
}).flat()
|
|
306
|
-
), p = C(
|
|
307
|
-
() => {
|
|
308
|
-
var i, f;
|
|
309
|
-
return ((i = n.value) == null ? void 0 : i.length) > 0 && ((f = g.value) == null ? void 0 : f.every((A) => r.value.includes(e(A))));
|
|
310
|
-
}
|
|
311
|
-
), v = C(
|
|
312
|
-
() => {
|
|
313
|
-
var i, f;
|
|
314
|
-
return ((i = n.value) == null ? void 0 : i.length) > 0 && ((f = g.value) == null ? void 0 : f.filter((A) => !s(A)).every((A) => r.value.includes(e(A))));
|
|
315
|
-
}
|
|
316
|
-
), y = C(
|
|
317
|
-
() => {
|
|
318
|
-
var i, f;
|
|
319
|
-
return ((i = n.value) == null ? void 0 : i.length) > 0 && !((f = g.value) != null && f.some((A) => r.value.includes(e(A))));
|
|
320
|
-
}
|
|
321
|
-
), S = C(
|
|
322
|
-
() => {
|
|
323
|
-
var i, f;
|
|
324
|
-
return ((i = n.value) == null ? void 0 : i.length) > 0 && !((f = g.value) != null && f.filter((A) => !s(A)).some((A) => r.value.includes(e(A))));
|
|
325
|
-
}
|
|
326
|
-
), u = C(() => {
|
|
327
|
-
var i;
|
|
328
|
-
return !(l != null && l.value) || ((i = a == null ? void 0 : a.value) == null ? void 0 : i.totalCount) === void 0 ? !1 : r.value.length >= a.value.totalCount && v.value;
|
|
329
|
-
}), b = () => {
|
|
330
|
-
t(M.SELECT, r.value), t(M.UPDATE_SELECTION, r.value);
|
|
331
|
-
}, E = (i) => {
|
|
332
|
-
var f, A;
|
|
333
|
-
r.value = i, p.value ? (d.allItemsSelected = !0, d.isIndeterminate = !1) : (d.allItemsSelected = !1, d.isIndeterminate = ((f = r.value) == null ? void 0 : f.length) > 0 && ((A = n.value) == null ? void 0 : A.length) > 0 && n.value.some(
|
|
334
|
-
(D) => {
|
|
335
|
-
var P;
|
|
336
|
-
return r.value.includes(e(D)) || ((P = D == null ? void 0 : D.children) == null ? void 0 : P.some((x) => r.value.includes(e(x))));
|
|
337
|
-
}
|
|
338
|
-
));
|
|
339
|
-
}, N = (i) => {
|
|
340
|
-
ee(() => {
|
|
341
|
-
var A, D;
|
|
342
|
-
d.allItemsSelected = i;
|
|
343
|
-
const f = ((D = (A = g.value) == null ? void 0 : A.filter(
|
|
344
|
-
(P) => !s(P) && ((P == null ? void 0 : P.children) === void 0 || P.children.every((x) => !s(x)))
|
|
345
|
-
)) == null ? void 0 : D.map((P) => e(P))) ?? [];
|
|
346
|
-
i ? (r.value = [.../* @__PURE__ */ new Set([...r.value, ...f])], d.isIndeterminate = !p.value) : (r.value = r.value.filter((P) => !f.includes(P)), d.isIndeterminate = !y.value), b();
|
|
347
|
-
});
|
|
348
|
-
}, R = () => {
|
|
349
|
-
ee(() => {
|
|
350
|
-
E([]), b();
|
|
351
|
-
});
|
|
352
|
-
}, m = (i, f) => {
|
|
353
|
-
ee(() => {
|
|
354
|
-
var A;
|
|
355
|
-
E(((A = f == null ? void 0 : f.children) == null ? void 0 : A.length) > 0 ? O(i, f) : i), b();
|
|
356
|
-
});
|
|
357
|
-
}, O = (i, f) => {
|
|
358
|
-
var P;
|
|
359
|
-
const A = e(f), D = (P = f.children) == null ? void 0 : P.filter((x) => !s(x)).map((x) => e(x));
|
|
360
|
-
if (i.includes(A)) {
|
|
361
|
-
const x = i;
|
|
362
|
-
return D.forEach((U) => {
|
|
363
|
-
x.includes(U) || x.push(U);
|
|
364
|
-
}), x;
|
|
365
|
-
}
|
|
366
|
-
return i.filter((x) => !D.includes(x));
|
|
367
|
-
}, I = (i, f, A) => {
|
|
368
|
-
ee(() => {
|
|
369
|
-
var P, x;
|
|
370
|
-
const D = e(f);
|
|
371
|
-
i.includes(e(A)) ? E(
|
|
372
|
-
!i.includes(D) && ((P = f == null ? void 0 : f.children) != null && P.every((U) => i.includes(e(U)))) ? [...i, D] : i
|
|
373
|
-
) : E(
|
|
374
|
-
i.includes(D) && !((x = f == null ? void 0 : f.children) != null && x.every((U) => i.includes(e(U)))) ? i.filter((U) => U !== D) : i
|
|
375
|
-
), b();
|
|
376
|
-
});
|
|
377
|
-
}, _ = C(() => u.value ? "all" : v.value ? "page" : !r.value || r.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
378
|
-
return ae(
|
|
379
|
-
() => o.value,
|
|
380
|
-
() => {
|
|
381
|
-
E(o.value ?? []);
|
|
382
|
-
},
|
|
383
|
-
{ immediate: !0 }
|
|
384
|
-
), ae(
|
|
385
|
-
() => n.value,
|
|
386
|
-
() => {
|
|
387
|
-
const i = n.value.filter((f) => r.value.includes(e(f))).flatMap(
|
|
388
|
-
(f) => {
|
|
389
|
-
var A;
|
|
390
|
-
return ((A = f == null ? void 0 : f.children) == null ? void 0 : A.length) > 0 ? f.children.map((D) => e(D)).filter((D) => !r.value.includes(D)) : [];
|
|
391
|
-
}
|
|
392
|
-
);
|
|
393
|
-
(i == null ? void 0 : i.length) > 0 ? (E([...r.value, ...i]), b()) : E(r.value);
|
|
394
|
-
}
|
|
395
|
-
), {
|
|
396
|
-
onAllRowSelect: N,
|
|
397
|
-
onRowSelect: m,
|
|
398
|
-
onNestedRowSelect: I,
|
|
399
|
-
onDeselectAll: R,
|
|
400
|
-
allItemsSelectedState: d,
|
|
401
|
-
selectedItems: r,
|
|
402
|
-
selectionState: _
|
|
403
|
-
};
|
|
404
|
-
}, Io = (o, t, n) => ({ isSorting: (a) => o.value.some((r) => r.field === a), getSortingDirection: (a) => {
|
|
405
|
-
var r;
|
|
406
|
-
return (r = o.value.find((d) => d.field === a)) == null ? void 0 : r.direction;
|
|
407
|
-
}, sortByColumnField: (a) => {
|
|
408
|
-
var g;
|
|
409
|
-
if (!t.value.some((p) => p.field === a && p.sortable))
|
|
410
|
-
return;
|
|
411
|
-
const d = [{
|
|
412
|
-
field: a,
|
|
413
|
-
direction: ((g = o.value.find((p) => p.field === a)) == null ? void 0 : g.direction) === Ee.ASCENDING ? Ee.DESCENDING : Ee.ASCENDING
|
|
414
|
-
}];
|
|
415
|
-
n("sort", d);
|
|
416
|
-
} });
|
|
417
|
-
var se = ((o) => (o[o.ARROW_DOWN = j.ARROW_DOWN] = "ARROW_DOWN", o[o.ARROW_UP = j.ARROW_UP] = "ARROW_UP", o[o.ARROW_LEFT = j.ARROW_LEFT] = "ARROW_LEFT", o[o.ARROW_RIGHT = j.ARROW_RIGHT] = "ARROW_RIGHT", o[o.PAGE_UP = j.PAGE_UP] = "PAGE_UP", o[o.PAGE_DOWN = j.PAGE_DOWN] = "PAGE_DOWN", o[o.END = j.END] = "END", o[o.HOME = j.HOME] = "HOME", o))(se || {});
|
|
418
|
-
const qe = "b-row-actions-column", No = (o, t, n, e, s, l) => {
|
|
419
|
-
const a = C(() => l.value || e.value ? !0 : n.value.some((R) => R.infoIconTooltip || R.sortable)), r = C(() => {
|
|
420
|
-
let R = n.value.filter(({ visible: m }) => m !== !1);
|
|
421
|
-
return s.value && (R = [
|
|
422
|
-
...R,
|
|
423
|
-
{ field: qe, label: "" }
|
|
424
|
-
]), R;
|
|
425
|
-
}), d = C(() => r.value.length), g = C(() => {
|
|
426
|
-
if (!o.value)
|
|
427
|
-
return [];
|
|
428
|
-
const R = Object.keys(o.value)[0];
|
|
429
|
-
if (!R || !o.value[R])
|
|
430
|
-
return [];
|
|
431
|
-
const m = [];
|
|
432
|
-
if (a.value)
|
|
433
|
-
for (const I of r.value) {
|
|
434
|
-
const _ = t.value[I.field];
|
|
435
|
-
m.push(_);
|
|
436
|
-
}
|
|
437
|
-
const O = o.value[R].length;
|
|
438
|
-
for (let I = 0; I < O; I++)
|
|
439
|
-
for (const _ of r.value) {
|
|
440
|
-
const i = o.value[_.field];
|
|
441
|
-
i != null && i[I] && m.push(i[I]);
|
|
442
|
-
}
|
|
443
|
-
return m;
|
|
444
|
-
}), p = (R) => Math.floor(R / d.value), v = (R, m, O) => {
|
|
445
|
-
const I = g.value.length - 1, _ = d.value - 1, i = p(R), f = R - d.value * i;
|
|
446
|
-
return {
|
|
447
|
-
[se.PAGE_UP]: f + (a.value ? d.value : 0),
|
|
448
|
-
[se.PAGE_DOWN]: I - _ + f,
|
|
449
|
-
[se.END]: O ? I : d.value * i + _,
|
|
450
|
-
[se.HOME]: O ? a.value ? d.value : 0 : d.value * i
|
|
451
|
-
}[m];
|
|
452
|
-
}, y = (R, m) => {
|
|
453
|
-
const O = p(R), _ = {
|
|
454
|
-
[se.ARROW_DOWN]: d.value,
|
|
455
|
-
[se.ARROW_UP]: O === 0 && !a.value ? 0 : -d.value,
|
|
456
|
-
[se.ARROW_LEFT]: -1,
|
|
457
|
-
[se.ARROW_RIGHT]: 1
|
|
458
|
-
}[m], i = R + _;
|
|
459
|
-
return i < 0 || i >= g.value.length ? R : i;
|
|
460
|
-
}, S = (R) => [
|
|
461
|
-
se.PAGE_UP,
|
|
462
|
-
se.PAGE_DOWN,
|
|
463
|
-
se.END,
|
|
464
|
-
se.HOME
|
|
465
|
-
].includes(R), u = (R, m, O) => {
|
|
466
|
-
const I = g.value.indexOf(R);
|
|
467
|
-
return S(m) ? v(I, m, O) : y(I, m);
|
|
468
|
-
}, b = (R, m, O) => {
|
|
469
|
-
if (!g.value.includes(R))
|
|
470
|
-
return;
|
|
471
|
-
const I = u(R, m, O);
|
|
472
|
-
g.value[I].focus();
|
|
473
|
-
}, E = (R) => R in se;
|
|
474
|
-
return {
|
|
475
|
-
isNavigationKeyCode: E,
|
|
476
|
-
focusOnNextGridcell: b,
|
|
477
|
-
navigationInput: (R) => {
|
|
478
|
-
const { ctrlKey: m, key: O, target: I } = R, _ = O;
|
|
479
|
-
let i = I;
|
|
480
|
-
i.getAttribute("role") !== "menuitem" && (g.value.includes(i) || (i = I.closest('[role="gridcell"], [role="columnheader"]')), g.value.includes(i) && E(_) && b(i, _, m));
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
}, Do = 90, Mo = (o, t, n, e, s) => {
|
|
484
|
-
const l = w(o), a = w(t), r = w(n), d = w(e), g = C(() => l.value !== "none"), p = C(() => l.value === "automatic"), v = () => {
|
|
485
|
-
s(M.UPDATE_SHOW_MORE);
|
|
486
|
-
};
|
|
487
|
-
return ae(
|
|
488
|
-
() => a.value,
|
|
489
|
-
() => {
|
|
490
|
-
p.value && r.value.offsetHeight / a.value * 100 > Do && !d.value && v();
|
|
491
|
-
}
|
|
492
|
-
), { isLazyLoad: g, isInfiniteScroll: p, verticalScrollPosition: a, emitLazyLoadEvent: v };
|
|
493
|
-
}, Fo = (o, t, n) => {
|
|
494
|
-
const e = w(o), s = w(t), l = We({
|
|
495
|
-
dragging: null,
|
|
496
|
-
dragToLeft: null,
|
|
497
|
-
target: null
|
|
498
|
-
}), a = (S, u = 0) => {
|
|
499
|
-
const b = e.value.findIndex((R) => R.field === S.field), E = b + u;
|
|
500
|
-
if (E < 0 || E > e.value.length - 1)
|
|
501
|
-
return;
|
|
502
|
-
const N = [...e.value];
|
|
503
|
-
N.splice(E, 0, N.splice(b, 1)[0]), n(M.COLUMNS, N), n(M.UPDATE_COLUMNS, N);
|
|
504
|
-
}, r = (S, u) => {
|
|
505
|
-
l.dragging = S, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
506
|
-
}, d = (S, u) => {
|
|
507
|
-
l.target = S;
|
|
508
|
-
const b = u.currentTarget.getBoundingClientRect(), E = b.left + b.width / 2, N = u.clientX ?? 0;
|
|
509
|
-
l.dragToLeft = N <= E;
|
|
510
|
-
}, g = (S) => {
|
|
511
|
-
var u, b;
|
|
512
|
-
if (((u = l.dragging) == null ? void 0 : u.field) !== S.field) {
|
|
513
|
-
const E = e.value.findIndex((_) => {
|
|
514
|
-
var i;
|
|
515
|
-
return _.field === ((i = l.dragging) == null ? void 0 : i.field);
|
|
516
|
-
}), N = e.value.findIndex((_) => _.field === S.field), R = l.dragToLeft ? N : N + 1, m = R > E ? R - 1 : R;
|
|
517
|
-
let O = [...e.value];
|
|
518
|
-
O.splice(
|
|
519
|
-
m === -1 ? 0 : m,
|
|
520
|
-
0,
|
|
521
|
-
O.splice(E, 1)[0]
|
|
522
|
-
);
|
|
523
|
-
const I = e.value.findIndex((_) => !(_ != null && _.frozen));
|
|
524
|
-
((b = l.dragging) == null ? void 0 : b.frozen) !== S.frozen && R !== I && (O = O.map(
|
|
525
|
-
(_) => {
|
|
526
|
-
var i;
|
|
527
|
-
return ((i = l.dragging) == null ? void 0 : i.field) === _.field ? { ..._, frozen: !!(S != null && S.frozen) } : _;
|
|
528
|
-
}
|
|
529
|
-
)), n(M.COLUMNS, O), n(M.UPDATE_COLUMNS, O);
|
|
530
|
-
}
|
|
531
|
-
l.dragging = null, l.target = null;
|
|
532
|
-
}, p = () => {
|
|
533
|
-
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
534
|
-
}, v = C(() => s.value ? {
|
|
535
|
-
[Y.COLUMN_DRAG_START]: (S, u) => r(S, u),
|
|
536
|
-
[Y.COLUMN_DRAG_ENTER]: (S, u) => d(S, u),
|
|
537
|
-
[Y.COLUMN_DROP]: (S) => g(S),
|
|
538
|
-
[Y.COLUMN_DRAG_END]: () => p()
|
|
539
|
-
} : {}), y = C(() => (S) => s.value ? {
|
|
540
|
-
dragenter: (u) => {
|
|
541
|
-
u.preventDefault(), d(S, u);
|
|
542
|
-
},
|
|
543
|
-
drop: () => {
|
|
544
|
-
g(S);
|
|
545
|
-
},
|
|
546
|
-
dragover: (u) => {
|
|
547
|
-
u.preventDefault();
|
|
548
|
-
}
|
|
549
|
-
} : {});
|
|
550
|
-
return {
|
|
551
|
-
// Values
|
|
552
|
-
draggingColumns: l,
|
|
553
|
-
// Methods
|
|
554
|
-
draggingEventsForColumns: v,
|
|
555
|
-
draggingEventsForRowCell: y,
|
|
556
|
-
onMoveColumnByOffset: a
|
|
557
|
-
};
|
|
558
|
-
}, xo = (o, t, n) => {
|
|
559
|
-
const e = w(o), s = w(t.value), l = C(
|
|
560
|
-
() => [...e.value].sort((u, b) => u.frozen === b.frozen ? 0 : u.frozen ? -1 : 1)
|
|
561
|
-
), a = C(
|
|
562
|
-
() => l.value.filter((u) => u.frozen && u.visible !== !1)
|
|
563
|
-
), r = C(
|
|
564
|
-
() => l.value.filter((u) => !u.frozen && u.visible !== !1)
|
|
565
|
-
), d = C(
|
|
566
|
-
() => [
|
|
567
|
-
{ columnSet: a.value, id: "frozen", isFrozenColumns: !0 },
|
|
568
|
-
{ columnSet: r.value, id: "unfrozen" }
|
|
569
|
-
].filter(({ columnSet: u }) => u.length)
|
|
570
|
-
), g = C(
|
|
571
|
-
() => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== le).length === 1
|
|
572
|
-
), p = (u) => n(M.UPDATE_CONDENSED, u), v = (u) => {
|
|
573
|
-
s.value = u, n(M.UPDATE_ZEBRA_ROWS, u);
|
|
574
|
-
}, y = (u) => {
|
|
575
|
-
n(M.COLUMNS, u), n(M.UPDATE_COLUMNS, u);
|
|
576
|
-
}, S = (u) => {
|
|
577
|
-
const b = l.value.map(
|
|
578
|
-
(E) => (E == null ? void 0 : E.field) === u.field ? u : E
|
|
579
|
-
);
|
|
580
|
-
y(b);
|
|
581
|
-
};
|
|
582
|
-
return ae(t, (u) => {
|
|
583
|
-
s.value = u;
|
|
584
|
-
}), {
|
|
585
|
-
// Values
|
|
586
|
-
columnSets: d,
|
|
587
|
-
isOnlyOneVisibleColumn: g,
|
|
588
|
-
internalZebraRows: s,
|
|
589
|
-
sortedColumns: l,
|
|
590
|
-
// Methods
|
|
591
|
-
onConfigSettingsColumnsUpdate: y,
|
|
592
|
-
onConfigSettingsColumnUpdate: S,
|
|
593
|
-
onConfigSettingsCondensedUpdate: p,
|
|
594
|
-
onConfigSettingsZebraRowsUpdate: v
|
|
595
|
-
};
|
|
596
|
-
}, Po = (o, t, n, e, s, l, a) => {
|
|
597
|
-
const r = w(0), d = w(!1), g = w(!1);
|
|
598
|
-
ae([() => r.value, () => l.value], ([u]) => {
|
|
599
|
-
o.value.scrollLeft = u, t.value.scrollLeft = u, d.value = !!u, g.value = t.value.scrollWidth - t.value.offsetWidth > u;
|
|
600
|
-
}), Te(async () => {
|
|
601
|
-
var u, b;
|
|
602
|
-
await ee(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((b = t.value) == null ? void 0 : b.scrollWidth) && (g.value = !0);
|
|
603
|
-
});
|
|
604
|
-
const p = (u) => {
|
|
605
|
-
if (r.value = u.target.scrollLeft, n.value = o.value.scrollHeight - u.target.scrollTop, e != null && e.value) {
|
|
606
|
-
const b = u.target.scrollLeft;
|
|
607
|
-
e.value.scrollLeft !== b && (e.value.scrollLeft = b);
|
|
608
|
-
}
|
|
609
|
-
}, v = (u) => {
|
|
610
|
-
u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), o.value.scrollLeft = 0, o.value.style.overflowX = "hidden", setTimeout(() => {
|
|
611
|
-
o.value && (o.value.style.overflowX = "auto");
|
|
612
|
-
}));
|
|
613
|
-
}, y = (u) => {
|
|
614
|
-
const b = u.target.scrollLeft;
|
|
615
|
-
o.value.scrollLeft !== b && (o.value.scrollLeft = b);
|
|
616
|
-
}, S = C(() => {
|
|
617
|
-
var u, b, E, N;
|
|
618
|
-
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((b = a == null ? void 0 : a.stickyPagination) != null && b.value || a != null && a.isDataGridTemplate) && !((E = a == null ? void 0 : a.isLazyLoad) != null && E.value) ? { bottom: `${(((N = s.value) == null ? void 0 : N.clientHeight) ?? 0) + 1}px` } : {};
|
|
619
|
-
});
|
|
620
|
-
return {
|
|
621
|
-
// Values
|
|
622
|
-
scrollLeftPosition: r,
|
|
623
|
-
hasLeftOverflow: d,
|
|
624
|
-
hasRightOverflow: g,
|
|
625
|
-
horizontalScrollbarConditionalStyles: S,
|
|
626
|
-
// Methods
|
|
627
|
-
updateScrollPosition: p,
|
|
628
|
-
updateScrollPositionOnFrozenColumnsNavigation: v,
|
|
629
|
-
syncVirtualScrollerWithBody: y
|
|
630
|
-
};
|
|
631
|
-
}, zo = (o, t, n, e) => {
|
|
632
|
-
const s = w(null), l = C(() => {
|
|
633
|
-
var b, E, N, R, m, O;
|
|
634
|
-
if (!s.value || s.value.field === le)
|
|
635
|
-
return {
|
|
636
|
-
hoveredOverColumnField: "",
|
|
637
|
-
isSeparatorOffset: !1,
|
|
638
|
-
noBorderLeft: !1,
|
|
639
|
-
noBorderRight: !1
|
|
640
|
-
};
|
|
641
|
-
const a = (E = (b = o.value.find((I) => I.isFrozenColumns)) == null ? void 0 : b.columnSet) == null ? void 0 : E.filter((I) => I.field !== le), r = o.value.find((I) => !(I != null && I.isFrozenColumns)), d = s.value.frozen && ((N = a == null ? void 0 : a[0]) == null ? void 0 : N.field) === s.value.field, g = !s.value.frozen && ((m = (R = r == null ? void 0 : r.columnSet) == null ? void 0 : R[0]) == null ? void 0 : m.field) === s.value.field, p = (t.value || n.value) && d, v = (t.value || n.value) && !a && g, y = a && g, S = (a == null ? void 0 : a.length) > 0 && s.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === s.value.field, u = n.value && e.value && !s.value.frozen && ((O = r == null ? void 0 : r.columnSet) == null ? void 0 : O[r.columnSet.length - 1].field) === s.value.field;
|
|
642
|
-
return {
|
|
643
|
-
hoveredOverColumnField: s.value.field,
|
|
644
|
-
isSeparatorOffset: u,
|
|
645
|
-
noBorderLeft: !!p || !!v || !!y,
|
|
646
|
-
noBorderRight: !!S || !!u
|
|
647
|
-
};
|
|
648
|
-
});
|
|
649
|
-
return {
|
|
650
|
-
hoveredOverColumn: s,
|
|
651
|
-
hoveredOverColumnState: l
|
|
652
|
-
};
|
|
653
|
-
}, Fe = (o, t) => {
|
|
654
|
-
const e = Ft(o).filter((s) => s.node !== o);
|
|
655
|
-
if ((e == null ? void 0 : e.length) > 0) {
|
|
656
|
-
const s = t != null && t.last ? e.length - 1 : 0;
|
|
657
|
-
return e[s].node.focus(), !0;
|
|
658
|
-
}
|
|
659
|
-
return !1;
|
|
660
|
-
}, ce = (o) => {
|
|
661
|
-
const t = Ft(o), n = t == null ? void 0 : t.filter((e) => e.node !== o);
|
|
662
|
-
if ((n == null ? void 0 : n.length) > 0)
|
|
663
|
-
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
664
|
-
}, xe = (o) => {
|
|
665
|
-
(o == null ? void 0 : o.length) > 0 && o.forEach((t) => t == null ? void 0 : t.node.setAttribute("tabindex", "0"));
|
|
666
|
-
}, Bo = (o) => {
|
|
667
|
-
var d;
|
|
668
|
-
const t = window.getSelection();
|
|
669
|
-
if (!t || !t.rangeCount)
|
|
670
|
-
return;
|
|
671
|
-
const n = t.getRangeAt(0).cloneContents(), e = (d = n.textContent) == null ? void 0 : d.trim();
|
|
672
|
-
if (!e)
|
|
673
|
-
return;
|
|
674
|
-
const s = n.querySelectorAll('[role="row"]');
|
|
675
|
-
let l = "<table>", a = "";
|
|
676
|
-
const r = (g) => {
|
|
677
|
-
g.forEach((p) => {
|
|
678
|
-
const v = p.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", y = p.textContent.trim();
|
|
679
|
-
y && (l += `<${v}>${y}</${v}>`, a += `${y} `);
|
|
680
|
-
});
|
|
681
|
-
};
|
|
682
|
-
if (!s.length) {
|
|
683
|
-
const g = n.querySelectorAll(
|
|
684
|
-
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
685
|
-
);
|
|
686
|
-
if (g.length)
|
|
687
|
-
l += "<tr>", r(g), l += "</tr>";
|
|
688
|
-
else {
|
|
689
|
-
o == null || o.preventDefault(), navigator.clipboard.writeText(e);
|
|
690
|
-
return;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
s.forEach((g) => {
|
|
694
|
-
const p = g.querySelectorAll(
|
|
695
|
-
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
696
|
-
);
|
|
697
|
-
if (l += "<tr>", p.length)
|
|
698
|
-
r(p);
|
|
699
|
-
else {
|
|
700
|
-
const v = g.textContent.trim();
|
|
701
|
-
l += `<td>${v}</td>`, a += `${v} `;
|
|
702
|
-
}
|
|
703
|
-
l += "</tr>", a += `
|
|
704
|
-
`;
|
|
705
|
-
}), l += "</table>", o == null || o.preventDefault(), navigator.clipboard.write([
|
|
706
|
-
new ClipboardItem({
|
|
707
|
-
"text/html": new Blob([l], { type: "text/html" }),
|
|
708
|
-
"text/plain": new Blob([a || e], { type: "text/plain" })
|
|
709
|
-
})
|
|
710
|
-
]);
|
|
711
|
-
};
|
|
712
|
-
let vt = 0;
|
|
713
|
-
const Uo = {
|
|
714
|
-
beforeCreate() {
|
|
715
|
-
this.uuid = vt.toString(), vt += 1;
|
|
716
|
-
}
|
|
717
|
-
};
|
|
718
|
-
var ko = function() {
|
|
719
|
-
var t = this, n = t._self._c;
|
|
720
|
-
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" } })])])]);
|
|
721
|
-
}, $o = [], Wo = /* @__PURE__ */ X(
|
|
722
|
-
Uo,
|
|
723
|
-
ko,
|
|
724
|
-
$o,
|
|
725
|
-
!1,
|
|
726
|
-
null,
|
|
727
|
-
null
|
|
728
|
-
);
|
|
729
|
-
const Go = Wo.exports;
|
|
730
|
-
let ht = 0;
|
|
731
|
-
const Vo = {
|
|
732
|
-
beforeCreate() {
|
|
733
|
-
this.uuid = ht.toString(), ht += 1;
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
var Ho = function() {
|
|
737
|
-
var t = this, n = t._self._c;
|
|
738
|
-
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)" } })])])]);
|
|
739
|
-
}, Zo = [], jo = /* @__PURE__ */ X(
|
|
740
|
-
Vo,
|
|
741
|
-
Ho,
|
|
742
|
-
Zo,
|
|
743
|
-
!1,
|
|
744
|
-
null,
|
|
745
|
-
null
|
|
746
|
-
);
|
|
747
|
-
const kt = jo.exports;
|
|
748
|
-
let pt = 0;
|
|
749
|
-
const qo = {
|
|
750
|
-
beforeCreate() {
|
|
751
|
-
this.uuid = pt.toString(), pt += 1;
|
|
752
|
-
}
|
|
753
|
-
};
|
|
754
|
-
var Ko = function() {
|
|
755
|
-
var t = this, n = t._self._c;
|
|
756
|
-
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" } })])])]);
|
|
757
|
-
}, Yo = [], Xo = /* @__PURE__ */ X(
|
|
758
|
-
qo,
|
|
759
|
-
Ko,
|
|
760
|
-
Yo,
|
|
761
|
-
!1,
|
|
762
|
-
null,
|
|
763
|
-
null
|
|
764
|
-
);
|
|
765
|
-
const Jo = Xo.exports;
|
|
766
|
-
let bt = 0;
|
|
767
|
-
const Qo = {
|
|
768
|
-
beforeCreate() {
|
|
769
|
-
this.uuid = bt.toString(), bt += 1;
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
var es = function() {
|
|
773
|
-
var t = this, n = t._self._c;
|
|
774
|
-
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" } })])])]);
|
|
775
|
-
}, ts = [], ns = /* @__PURE__ */ X(
|
|
776
|
-
Qo,
|
|
777
|
-
es,
|
|
778
|
-
ts,
|
|
779
|
-
!1,
|
|
780
|
-
null,
|
|
781
|
-
null
|
|
782
|
-
);
|
|
783
|
-
const os = ns.exports;
|
|
784
|
-
let wt = 0;
|
|
785
|
-
const ss = {
|
|
786
|
-
beforeCreate() {
|
|
787
|
-
this.uuid = wt.toString(), wt += 1;
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
var ls = function() {
|
|
791
|
-
var t = this, n = t._self._c;
|
|
792
|
-
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" } })]);
|
|
793
|
-
}, as = [], is = /* @__PURE__ */ X(
|
|
794
|
-
ss,
|
|
795
|
-
ls,
|
|
796
|
-
as,
|
|
797
|
-
!1,
|
|
798
|
-
null,
|
|
799
|
-
null
|
|
800
|
-
);
|
|
801
|
-
const rs = is.exports, cs = {
|
|
802
|
-
"de-DE": {
|
|
803
|
-
columnActions: "{name}-Spaltenaktionen",
|
|
804
|
-
deselectAll: "Alle abwählen",
|
|
805
|
-
deselectAllCurrentResults: "Alle in den aktuellen Ergebnissen abwählen",
|
|
806
|
-
deselectPage: "Diese Seite abwählen",
|
|
807
|
-
freezeColumn: "Spalte einfrieren",
|
|
808
|
-
hideColumn: "Spalte ausblenden",
|
|
809
|
-
moveColumnLeft: "Spalte nach links verschieben",
|
|
810
|
-
moveColumnRight: "Spalte nach rechts verschieben",
|
|
811
|
-
rowActionsColumn: "Spaltenaktionen für Zeilen",
|
|
812
|
-
selectAll: "Alle auswählen",
|
|
813
|
-
selectAllCurrentResults: "Alle in den aktuellen Ergebnissen auswählen",
|
|
814
|
-
selectAllMenu: "Menü „Alle auswählen“",
|
|
815
|
-
selectPage: "Diese Seite auswählen",
|
|
816
|
-
selectionMenu: "Auswahlmenü",
|
|
817
|
-
showColumn: "Spalte anzeigen",
|
|
818
|
-
sortColumn: "Spalte {name} sortieren",
|
|
819
|
-
sortColumnInAscendingOrder: "Spalte {name} in aufsteigender Reihenfolge sortieren",
|
|
820
|
-
sortColumnInDescendingOrder: "Spalte {name} in absteigender Reihenfolge sortieren",
|
|
821
|
-
unfreezeColumn: "Spalte einfrieren aufheben"
|
|
822
|
-
},
|
|
823
|
-
"en-GB": {
|
|
824
|
-
columnActions: "{name} column actions",
|
|
825
|
-
deselectAll: "Deselect all",
|
|
826
|
-
deselectAllCurrentResults: "Deselect all from current results",
|
|
827
|
-
deselectPage: "Deselect this page",
|
|
828
|
-
freezeColumn: "Freeze column",
|
|
829
|
-
hideColumn: "Hide column",
|
|
830
|
-
moveColumnLeft: "Move column left",
|
|
831
|
-
moveColumnRight: "Move column to the right",
|
|
832
|
-
rowActionsColumn: "Row actions column",
|
|
833
|
-
selectAll: "Select all",
|
|
834
|
-
selectAllCurrentResults: "Select all in current results",
|
|
835
|
-
selectAllMenu: "Select all menu",
|
|
836
|
-
selectPage: "Select this page",
|
|
837
|
-
selectionMenu: "Selection menu",
|
|
838
|
-
showColumn: "Show column",
|
|
839
|
-
sortColumn: "Sort {name} column",
|
|
840
|
-
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
841
|
-
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
842
|
-
unfreezeColumn: "Unfreeze column"
|
|
843
|
-
},
|
|
844
|
-
"en-US": {
|
|
845
|
-
columnActions: "{name} column actions",
|
|
846
|
-
deselectAll: "Deselect all",
|
|
847
|
-
deselectAllCurrentResults: "Deselect all in current results",
|
|
848
|
-
deselectPage: "Deselect this page",
|
|
849
|
-
freezeColumn: "Freeze column",
|
|
850
|
-
hideColumn: "Hide column",
|
|
851
|
-
moveColumnLeft: "Move column left",
|
|
852
|
-
moveColumnRight: "Move column right",
|
|
853
|
-
rowActionsColumn: "Row actions column",
|
|
854
|
-
selectAll: "Select all",
|
|
855
|
-
selectAllCurrentResults: "Select all in current results",
|
|
856
|
-
selectAllMenu: "Select all menu",
|
|
857
|
-
selectPage: "Select this page",
|
|
858
|
-
selectionMenu: "Selection menu",
|
|
859
|
-
showColumn: "Show column",
|
|
860
|
-
sortColumn: "Sort {name} column",
|
|
861
|
-
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
862
|
-
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
863
|
-
unfreezeColumn: "Unfreeze column"
|
|
864
|
-
},
|
|
865
|
-
"es-419": {
|
|
866
|
-
columnActions: "Acciones de columna {name}",
|
|
867
|
-
deselectAll: "Deseleccionar todo",
|
|
868
|
-
deselectAllCurrentResults: "Deseleccionar todo en los resultados actuales",
|
|
869
|
-
deselectPage: "Anular selección de esta página",
|
|
870
|
-
freezeColumn: "Congelar columna",
|
|
871
|
-
hideColumn: "Ocultar columna",
|
|
872
|
-
moveColumnLeft: "Mover columna a la izquierda",
|
|
873
|
-
moveColumnRight: "Mover columna a la derecha",
|
|
874
|
-
rowActionsColumn: "Columna de acciones de fila",
|
|
875
|
-
selectAll: "Seleccionar todo",
|
|
876
|
-
selectAllCurrentResults: "Seleccionar todos los resultados actuales",
|
|
877
|
-
selectAllMenu: "Seleccionar todo el menú",
|
|
878
|
-
selectPage: "Seleccionar esta página",
|
|
879
|
-
selectionMenu: "Menú de selección",
|
|
880
|
-
showColumn: "Mostrar columna",
|
|
881
|
-
sortColumn: "Ordenar columna {name}",
|
|
882
|
-
sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente",
|
|
883
|
-
sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente",
|
|
884
|
-
unfreezeColumn: "Desbloquear columna"
|
|
885
|
-
},
|
|
886
|
-
"es-ES": {
|
|
887
|
-
columnActions: "{name} acciones de columna",
|
|
888
|
-
deselectAll: "Deseleccionar todo",
|
|
889
|
-
deselectAllCurrentResults: "Deseleccionar todo en los resultados actuales",
|
|
890
|
-
deselectPage: "Deseleccionar esta página",
|
|
891
|
-
freezeColumn: "Congelar columna",
|
|
892
|
-
hideColumn: "Ocultar columna",
|
|
893
|
-
moveColumnLeft: "Mover la columna a la izquierda",
|
|
894
|
-
moveColumnRight: "Mover la columna a la derecha",
|
|
895
|
-
rowActionsColumn: "Columna de acciones de fila",
|
|
896
|
-
selectAll: "Seleccionar todo",
|
|
897
|
-
selectAllCurrentResults: "Seleccionar todos los resultados actuales",
|
|
898
|
-
selectAllMenu: "Seleccionar todos los menús",
|
|
899
|
-
selectPage: "Seleccionar esta página",
|
|
900
|
-
selectionMenu: "Menú de selección",
|
|
901
|
-
showColumn: "Mostrar columna",
|
|
902
|
-
sortColumn: "Ordenar la columna {name}",
|
|
903
|
-
sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente",
|
|
904
|
-
sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente",
|
|
905
|
-
unfreezeColumn: "Descongelar columna"
|
|
906
|
-
},
|
|
907
|
-
"es-MX": {
|
|
908
|
-
columnActions: "Acciones de columna {name}",
|
|
909
|
-
deselectAll: "Eliminar la selección de todo",
|
|
910
|
-
deselectAllCurrentResults: "Eliminar la selección de todo en los resultados actuales",
|
|
911
|
-
deselectPage: "Eliminar la selección de esta página",
|
|
912
|
-
freezeColumn: "Inmovilizar columna",
|
|
913
|
-
hideColumn: "Ocultar columna",
|
|
914
|
-
moveColumnLeft: "Mover columna a la izquierda",
|
|
915
|
-
moveColumnRight: "Mover columna a la derecha",
|
|
916
|
-
rowActionsColumn: "Columna de acciones de fila",
|
|
917
|
-
selectAll: "Seleccionar todo",
|
|
918
|
-
selectAllCurrentResults: "Seleccionar todo en los resultados actuales",
|
|
919
|
-
selectAllMenu: "Seleccionar todo el menú",
|
|
920
|
-
selectPage: "Seleccionar esta página",
|
|
921
|
-
selectionMenu: "Menú de selección",
|
|
922
|
-
showColumn: "Mostrar columna",
|
|
923
|
-
sortColumn: "Ordenar la columna {name}",
|
|
924
|
-
sortColumnInAscendingOrder: "Ordenar la columna {name} en orden ascendente",
|
|
925
|
-
sortColumnInDescendingOrder: "Ordenar la columna {name} en orden descendente",
|
|
926
|
-
unfreezeColumn: "Movilizar columna"
|
|
927
|
-
},
|
|
928
|
-
"fr-FR": {
|
|
929
|
-
columnActions: "Actions de la colonne {name}",
|
|
930
|
-
deselectAll: "Tout désélectionner",
|
|
931
|
-
deselectAllCurrentResults: "Tout désélectionner dans les résultats actuels",
|
|
932
|
-
deselectPage: "Désélectionner cette page",
|
|
933
|
-
freezeColumn: "Figer la colonne",
|
|
934
|
-
hideColumn: "Masquer la colonne",
|
|
935
|
-
moveColumnLeft: "Déplacer la colonne vers la gauche",
|
|
936
|
-
moveColumnRight: "Déplacer la colonne vers la droite",
|
|
937
|
-
rowActionsColumn: "Colonne des actions de ligne",
|
|
938
|
-
selectAll: "Tout sélectionner",
|
|
939
|
-
selectAllCurrentResults: "Tout sélectionner dans les résultats actuels",
|
|
940
|
-
selectAllMenu: "Sélectionner tout le menu",
|
|
941
|
-
selectPage: "Sélectionner cette page",
|
|
942
|
-
selectionMenu: "Menu de sélection",
|
|
943
|
-
showColumn: "Afficher la colonne",
|
|
944
|
-
sortColumn: "Trier la colonne {name}",
|
|
945
|
-
sortColumnInAscendingOrder: "Trier la colonne {name} dans l'ordre croissant",
|
|
946
|
-
sortColumnInDescendingOrder: "Trier la colonne {name} dans l'ordre décroissant",
|
|
947
|
-
unfreezeColumn: "Libérer la colonne"
|
|
948
|
-
},
|
|
949
|
-
"it-IT": {
|
|
950
|
-
columnActions: "azioni sulla colonna {name}",
|
|
951
|
-
deselectAll: "Deseleziona tutti",
|
|
952
|
-
deselectAllCurrentResults: "Deseleziona tutti i risultati attuali",
|
|
953
|
-
deselectPage: "Deseleziona questa pagina",
|
|
954
|
-
freezeColumn: "Blocca colonna",
|
|
955
|
-
hideColumn: "Nascondi colonna",
|
|
956
|
-
moveColumnLeft: "Sposta colonna a sinistra",
|
|
957
|
-
moveColumnRight: "Sposta colonna a destra",
|
|
958
|
-
rowActionsColumn: "Colonna delle azioni sulle righe",
|
|
959
|
-
selectAll: "Seleziona tutto",
|
|
960
|
-
selectAllCurrentResults: "Seleziona tutto nei risultati correnti",
|
|
961
|
-
selectAllMenu: "Seleziona tutti i menu",
|
|
962
|
-
selectPage: "Seleziona questa pagina",
|
|
963
|
-
selectionMenu: "Menu di selezione",
|
|
964
|
-
showColumn: "Mostra colonna",
|
|
965
|
-
sortColumn: "Ordina la colonna {name}",
|
|
966
|
-
sortColumnInAscendingOrder: "Ordina la colonna {name} in ordine crescente",
|
|
967
|
-
sortColumnInDescendingOrder: "Ordina la colonna {name} in ordine decrescente",
|
|
968
|
-
unfreezeColumn: "Sblocca colonna"
|
|
969
|
-
},
|
|
970
|
-
"ja-JP": {
|
|
971
|
-
columnActions: "{name}列のアクション",
|
|
972
|
-
deselectAll: "すべての選択を解除",
|
|
973
|
-
deselectAllCurrentResults: "現在の結果の選択をすべて解除",
|
|
974
|
-
deselectPage: "このページの選択を解除",
|
|
975
|
-
freezeColumn: "列を固定",
|
|
976
|
-
hideColumn: "列を非表示",
|
|
977
|
-
moveColumnLeft: "列を左に移動",
|
|
978
|
-
moveColumnRight: "列を右に移動",
|
|
979
|
-
rowActionsColumn: "行アクション列",
|
|
980
|
-
selectAll: "すべて選択",
|
|
981
|
-
selectAllCurrentResults: "現在の結果をすべて選択",
|
|
982
|
-
selectAllMenu: "すべてのメニューを選択",
|
|
983
|
-
selectPage: "このページを選択",
|
|
984
|
-
selectionMenu: "選択メニュー",
|
|
985
|
-
showColumn: "列を表示",
|
|
986
|
-
sortColumn: "{name}列を並べ替え",
|
|
987
|
-
sortColumnInAscendingOrder: "{name}列を昇順に並べ替え",
|
|
988
|
-
sortColumnInDescendingOrder: "{name}列を降順に並べ替え",
|
|
989
|
-
unfreezeColumn: "列の固定を解除"
|
|
990
|
-
},
|
|
991
|
-
"pt-BR": {
|
|
992
|
-
columnActions: "Ações da coluna {name}",
|
|
993
|
-
deselectAll: "Desmarcar tudo",
|
|
994
|
-
deselectAllCurrentResults: "Desmarcar tudo nos resultados atuais",
|
|
995
|
-
deselectPage: "Desmarcar esta página",
|
|
996
|
-
freezeColumn: "Congelar coluna",
|
|
997
|
-
hideColumn: "Ocultar coluna",
|
|
998
|
-
moveColumnLeft: "Mover coluna para a esquerda",
|
|
999
|
-
moveColumnRight: "Mover a coluna para a direita",
|
|
1000
|
-
rowActionsColumn: "Coluna de ações da linha",
|
|
1001
|
-
selectAll: "Selecionar tudo",
|
|
1002
|
-
selectAllCurrentResults: "Selecionar tudo nos resultados atuais",
|
|
1003
|
-
selectAllMenu: "Selecionar todo o menu",
|
|
1004
|
-
selectPage: "Selecionar esta página",
|
|
1005
|
-
selectionMenu: "Menu de seleção",
|
|
1006
|
-
showColumn: "Mostrar coluna",
|
|
1007
|
-
sortColumn: "Classificar coluna {name}",
|
|
1008
|
-
sortColumnInAscendingOrder: "Classificar coluna {name} em ordem crescente",
|
|
1009
|
-
sortColumnInDescendingOrder: "Classificar coluna {name} em ordem decrescente",
|
|
1010
|
-
unfreezeColumn: "Liberar coluna"
|
|
1011
|
-
},
|
|
1012
|
-
"zh-CN": {
|
|
1013
|
-
columnActions: "{name} 列操作",
|
|
1014
|
-
deselectAll: "取消所有选择",
|
|
1015
|
-
deselectAllCurrentResults: "取消当前结果中的所有选择",
|
|
1016
|
-
deselectPage: "取消选择此页面",
|
|
1017
|
-
freezeColumn: "冻结列",
|
|
1018
|
-
hideColumn: "隐藏列",
|
|
1019
|
-
moveColumnLeft: "将列向左移动",
|
|
1020
|
-
moveColumnRight: "将列向右移动",
|
|
1021
|
-
rowActionsColumn: "行操作列",
|
|
1022
|
-
selectAll: "全部选择",
|
|
1023
|
-
selectAllCurrentResults: "选择当前结果的全部",
|
|
1024
|
-
selectAllMenu: "选择全部菜单",
|
|
1025
|
-
selectPage: "选择此页",
|
|
1026
|
-
selectionMenu: "选择菜单",
|
|
1027
|
-
showColumn: "显示列",
|
|
1028
|
-
sortColumn: "排序 {name} 列",
|
|
1029
|
-
sortColumnInAscendingOrder: "按升序排列 {name} 列",
|
|
1030
|
-
sortColumnInDescendingOrder: "按降序排序 {name} 列",
|
|
1031
|
-
unfreezeColumn: "取消冻结列"
|
|
1032
|
-
}
|
|
1033
|
-
}, $t = /* @__PURE__ */ Symbol("data-grid slashed zero key"), Oe = /* @__PURE__ */ Symbol("data-grid small container key"), Pe = /* @__PURE__ */ Symbol("data-grid touch device key"), ds = {
|
|
1034
|
-
i18n: { messages: cs },
|
|
1035
|
-
name: "data-grid-columns"
|
|
1036
|
-
}, us = /* @__PURE__ */ ie({
|
|
1037
|
-
...ds,
|
|
1038
|
-
props: {
|
|
1039
|
-
/**
|
|
1040
|
-
* Column definitions using 'key' to relate to data object.
|
|
1041
|
-
*/
|
|
1042
|
-
columns: {
|
|
1043
|
-
type: Array,
|
|
1044
|
-
required: !0
|
|
1045
|
-
},
|
|
1046
|
-
/**
|
|
1047
|
-
* Columns being dragged, contains dragging column and a target column
|
|
1048
|
-
*/
|
|
1049
|
-
draggingColumns: {
|
|
1050
|
-
type: Object,
|
|
1051
|
-
default: void 0
|
|
1052
|
-
},
|
|
1053
|
-
/**
|
|
1054
|
-
* Determines the state of the current results: { filtered: boolean, allItemsVisible: boolean } to render the correct select all menu options
|
|
1055
|
-
*/
|
|
1056
|
-
visibleRowsState: {
|
|
1057
|
-
type: Object,
|
|
1058
|
-
default: void 0
|
|
1059
|
-
},
|
|
1060
|
-
/**
|
|
1061
|
-
* Toggle the columns draggable events.
|
|
1062
|
-
*/
|
|
1063
|
-
hasDraggableColumns: {
|
|
1064
|
-
type: Boolean,
|
|
1065
|
-
default: !0
|
|
1066
|
-
},
|
|
1067
|
-
/**
|
|
1068
|
-
* If resize is enabled
|
|
1069
|
-
*/
|
|
1070
|
-
hasResizableColumns: {
|
|
1071
|
-
type: Boolean,
|
|
1072
|
-
default: !0
|
|
1073
|
-
},
|
|
1074
|
-
/**
|
|
1075
|
-
* Signifies if the column panel is enabled.
|
|
1076
|
-
*/
|
|
1077
|
-
hasColumnPanel: {
|
|
1078
|
-
type: Boolean,
|
|
1079
|
-
default: !1
|
|
1080
|
-
},
|
|
1081
|
-
/**
|
|
1082
|
-
* If set to true, aligns the first column panel to the right of its button.
|
|
1083
|
-
*/
|
|
1084
|
-
hasFirstColumnPanelRightAligned: {
|
|
1085
|
-
type: Boolean,
|
|
1086
|
-
default: !1
|
|
1087
|
-
},
|
|
1088
|
-
/**
|
|
1089
|
-
* If the data grid has overflow on the left side
|
|
1090
|
-
*/
|
|
1091
|
-
hasLeftOverflow: {
|
|
1092
|
-
type: Boolean,
|
|
1093
|
-
default: !1
|
|
1094
|
-
},
|
|
1095
|
-
/**
|
|
1096
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1097
|
-
*/
|
|
1098
|
-
hoveredOverColumnState: {
|
|
1099
|
-
type: Object,
|
|
1100
|
-
required: !0
|
|
1101
|
-
},
|
|
1102
|
-
/**
|
|
1103
|
-
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
1104
|
-
*/
|
|
1105
|
-
isMeasuringColumnWidths: {
|
|
1106
|
-
type: Boolean,
|
|
1107
|
-
default: !1
|
|
1108
|
-
},
|
|
1109
|
-
/**
|
|
1110
|
-
* Used to disable hiding the last visible column.
|
|
1111
|
-
*/
|
|
1112
|
-
isOnlyOneVisibleColumn: {
|
|
1113
|
-
type: Boolean,
|
|
1114
|
-
default: !1
|
|
1115
|
-
},
|
|
1116
|
-
/**
|
|
1117
|
-
* If these columns are frozen (pinned) columns
|
|
1118
|
-
*/
|
|
1119
|
-
isFrozenColumns: {
|
|
1120
|
-
type: Boolean,
|
|
1121
|
-
default: !1
|
|
1122
|
-
},
|
|
1123
|
-
/**
|
|
1124
|
-
* Show frozen columns separator
|
|
1125
|
-
*/
|
|
1126
|
-
showFrozenColumnsSeparator: {
|
|
1127
|
-
type: Boolean,
|
|
1128
|
-
default: !1
|
|
1129
|
-
},
|
|
1130
|
-
/**
|
|
1131
|
-
* The column all items selected state
|
|
1132
|
-
*/
|
|
1133
|
-
allItemsSelectedState: {
|
|
1134
|
-
type: Object,
|
|
1135
|
-
default: void 0
|
|
1136
|
-
},
|
|
1137
|
-
/**
|
|
1138
|
-
* Determines if the user has enabled row selection
|
|
1139
|
-
*/
|
|
1140
|
-
selectable: {
|
|
1141
|
-
type: Boolean,
|
|
1142
|
-
default: !1
|
|
1143
|
-
},
|
|
1144
|
-
/**
|
|
1145
|
-
* Adds an extra option when selecting all, to select items in other pages too
|
|
1146
|
-
*/
|
|
1147
|
-
selectableAcrossPages: {
|
|
1148
|
-
type: Boolean,
|
|
1149
|
-
default: !1
|
|
1150
|
-
},
|
|
1151
|
-
/**
|
|
1152
|
-
* Determines which state of row selection is currently active. Used to display the "Select all" menu options.
|
|
1153
|
-
*/
|
|
1154
|
-
selectionState: {
|
|
1155
|
-
type: String,
|
|
1156
|
-
default: void 0
|
|
1157
|
-
},
|
|
1158
|
-
/**
|
|
1159
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
1160
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
1161
|
-
*/
|
|
1162
|
-
sortBy: {
|
|
1163
|
-
type: Array,
|
|
1164
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
1165
|
-
default: () => []
|
|
1166
|
-
},
|
|
1167
|
-
/**
|
|
1168
|
-
* Truncates all data grid column headers
|
|
1169
|
-
*/
|
|
1170
|
-
truncateColumnHeaders: {
|
|
1171
|
-
type: Boolean,
|
|
1172
|
-
default: !1
|
|
1173
|
-
},
|
|
1174
|
-
/**
|
|
1175
|
-
* The maximum width of the row actions in all rows
|
|
1176
|
-
*/
|
|
1177
|
-
rowActionsMaximumWidth: {
|
|
1178
|
-
type: Number,
|
|
1179
|
-
default: 0
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
emits: ["sort", "column-hover"],
|
|
1183
|
-
setup(o, { expose: t, emit: n }) {
|
|
1184
|
-
const e = o, s = 100, { t: l } = Ce(), { columns: a, sortBy: r } = Ge(e), d = w(), g = w({}), p = w({}), v = w(), y = w(), S = C(
|
|
1185
|
-
() => e.columns.some((c) => c.sortable || e.hasColumnPanel || c.infoIconTooltip)
|
|
1186
|
-
), u = (c) => n(Y.SELECT_ALL_ROWS, c), b = (c) => c.field === le, E = C(() => e.selectionState === "all"), N = C(
|
|
1187
|
-
() => {
|
|
1188
|
-
var c, z, Z;
|
|
1189
|
-
return [
|
|
1190
|
-
{
|
|
1191
|
-
text: l("selectPage"),
|
|
1192
|
-
handler: () => u(!0),
|
|
1193
|
-
disabled: e.selectionState === "page" || e.selectionState === "all"
|
|
1194
|
-
},
|
|
1195
|
-
(c = e.visibleRowsState) != null && c.filtered ? {
|
|
1196
|
-
text: l("selectAllCurrentResults"),
|
|
1197
|
-
handler: () => n(Y.SELECT_ALL_CURRENT_RESULTS),
|
|
1198
|
-
addDivider: e.selectionState !== "none",
|
|
1199
|
-
disabled: e.selectionState === "all"
|
|
1200
|
-
} : {
|
|
1201
|
-
text: l("selectAll"),
|
|
1202
|
-
handler: () => n(Y.SELECT_ALL_ACROSS_PAGES),
|
|
1203
|
-
addDivider: e.selectionState !== "none",
|
|
1204
|
-
disabled: e.selectionState === "all"
|
|
1205
|
-
},
|
|
1206
|
-
e.selectionState !== "none" && {
|
|
1207
|
-
text: l("deselectPage"),
|
|
1208
|
-
handler: () => u(!1),
|
|
1209
|
-
addDivider: !((z = e.visibleRowsState) != null && z.filtered),
|
|
1210
|
-
// otherwise divider shown in deselect all in current results
|
|
1211
|
-
disabled: e.selectionState === "unselected-page"
|
|
1212
|
-
},
|
|
1213
|
-
((Z = e.visibleRowsState) == null ? void 0 : Z.filtered) && e.selectionState !== "none" && {
|
|
1214
|
-
text: l("deselectAllCurrentResults"),
|
|
1215
|
-
handler: () => n(Y.DESELECT_ALL_CURRENT_RESULTS),
|
|
1216
|
-
addDivider: !0,
|
|
1217
|
-
disabled: e.selectionState === "unselected-page" && e.visibleRowsState.allRowsVisible
|
|
1218
|
-
},
|
|
1219
|
-
e.selectionState !== "none" && {
|
|
1220
|
-
text: l("deselectAll"),
|
|
1221
|
-
handler: () => n(Y.DESELECT_ALL)
|
|
1222
|
-
}
|
|
1223
|
-
].filter(Boolean);
|
|
1224
|
-
}
|
|
1225
|
-
), { startResize: R, isResizing: m, columnHoverEventToEmitAfterResizing: O } = vo(a, n), { isSorting: I, getSortingDirection: _, sortByColumnField: i } = Io(r, a, n), f = (c) => {
|
|
1226
|
-
var te;
|
|
1227
|
-
if (!c.sortable)
|
|
1228
|
-
return null;
|
|
1229
|
-
const z = (te = e.sortBy.find(({ field: re }) => re === c.field)) == null ? void 0 : te.direction;
|
|
1230
|
-
return z ? {
|
|
1231
|
-
[Ee.ASCENDING]: De.ASCENDING,
|
|
1232
|
-
[Ee.DESCENDING]: De.DESCENDING
|
|
1233
|
-
}[z] : De.NONE;
|
|
1234
|
-
}, A = C(() => (c) => e.hasDraggableColumns ? {
|
|
1235
|
-
dragstart: (z) => {
|
|
1236
|
-
n(Y.COLUMN_DRAG_START, c, z);
|
|
1237
|
-
},
|
|
1238
|
-
dragover: (z) => {
|
|
1239
|
-
z.preventDefault();
|
|
1240
|
-
},
|
|
1241
|
-
dragenter: (z) => {
|
|
1242
|
-
z.preventDefault(), n(Y.COLUMN_DRAG_ENTER, c, z);
|
|
1243
|
-
},
|
|
1244
|
-
drop: () => {
|
|
1245
|
-
n(Y.COLUMN_DROP, c);
|
|
1246
|
-
},
|
|
1247
|
-
dragend: () => {
|
|
1248
|
-
n(Y.COLUMN_DRAG_END);
|
|
1249
|
-
}
|
|
1250
|
-
} : {}), D = C(
|
|
1251
|
-
() => (c) => [
|
|
1252
|
-
{
|
|
1253
|
-
text: l("moveColumnLeft"),
|
|
1254
|
-
handler: () => n(Y.COLUMN_MOVE, c, -1),
|
|
1255
|
-
icon: co,
|
|
1256
|
-
disabled: e.columns[0].field === c.field
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
text: l("moveColumnRight"),
|
|
1260
|
-
handler: () => n(Y.COLUMN_MOVE, c, 1),
|
|
1261
|
-
icon: uo,
|
|
1262
|
-
disabled: e.columns[e.columns.length - 1].field === c.field
|
|
1263
|
-
},
|
|
1264
|
-
!G.value && {
|
|
1265
|
-
text: c != null && c.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
1266
|
-
handler: () => n(Y.COLUMN_UPDATE, { ...c, frozen: !(c != null && c.frozen) }),
|
|
1267
|
-
icon: kt
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
text: (c == null ? void 0 : c.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
1271
|
-
handler: () => {
|
|
1272
|
-
n(Y.COLUMN_UPDATE, {
|
|
1273
|
-
...c,
|
|
1274
|
-
visible: (c == null ? void 0 : c.visible) === !1
|
|
1275
|
-
});
|
|
1276
|
-
},
|
|
1277
|
-
icon: (c == null ? void 0 : c.visible) !== !1 ? fo : go,
|
|
1278
|
-
disabled: (c == null ? void 0 : c.mandatory) || (c == null ? void 0 : c.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
1279
|
-
}
|
|
1280
|
-
].filter(Boolean)
|
|
1281
|
-
), P = (c) => {
|
|
1282
|
-
v.value = c.field, y.value && clearTimeout(y.value);
|
|
1283
|
-
}, x = (c) => {
|
|
1284
|
-
const z = setTimeout(() => {
|
|
1285
|
-
c.field === v.value && (v.value = "");
|
|
1286
|
-
}, s);
|
|
1287
|
-
y.value = z;
|
|
1288
|
-
}, U = (c) => {
|
|
1289
|
-
let z = {
|
|
1290
|
-
mouseenter: () => {
|
|
1291
|
-
P(c), m.value ? O.value = c : n("column-hover", c);
|
|
1292
|
-
},
|
|
1293
|
-
mouseleave: () => {
|
|
1294
|
-
x(c), m.value ? O.value = null : n("column-hover", null);
|
|
1295
|
-
},
|
|
1296
|
-
focus: () => {
|
|
1297
|
-
P(c), b(c) && Fe(g.value[c.field]);
|
|
1298
|
-
},
|
|
1299
|
-
focusout: (Z) => {
|
|
1300
|
-
var te;
|
|
1301
|
-
(te = d.value) != null && te.contains(Z == null ? void 0 : Z.relatedTarget) || x(c);
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
return b(c) || (z = {
|
|
1305
|
-
...z,
|
|
1306
|
-
...A.value(c)
|
|
1307
|
-
}), z;
|
|
1308
|
-
}, q = (c) => c.infoIconTooltip || c.sortable || e.hasColumnPanel, W = (c, z) => {
|
|
1309
|
-
var Z;
|
|
1310
|
-
((Z = g.value) == null ? void 0 : Z[z]) === void 0 && (g.value = { ...g.value, [z]: null }), c !== null && (g.value[z] = c);
|
|
1311
|
-
}, G = me(
|
|
1312
|
-
Oe,
|
|
1313
|
-
C(() => !1)
|
|
1314
|
-
), $ = me(Pe, w(!1)), B = C(() => {
|
|
1315
|
-
var z;
|
|
1316
|
-
const c = {
|
|
1317
|
-
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
1318
|
-
};
|
|
1319
|
-
return (z = a.value[0]) != null && z.frozen && !G.value ? {
|
|
1320
|
-
...c,
|
|
1321
|
-
"b-data-grid-columns--frozen": !0,
|
|
1322
|
-
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
1323
|
-
"b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
|
|
1324
|
-
} : {
|
|
1325
|
-
...c,
|
|
1326
|
-
"b-data-grid-columns--unfrozen": !0
|
|
1327
|
-
};
|
|
1328
|
-
}), oe = C(() => ({
|
|
1329
|
-
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1330
|
-
})), _e = (c, z) => c && z === 0 ? ut.BOTTOM_START : ut.BOTTOM_END, ve = (c, z) => {
|
|
1331
|
-
var Z, te, re, Le, pe, be, we, h, T, H;
|
|
1332
|
-
return {
|
|
1333
|
-
"b-data-grid-columns__column--column-hovered": c.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1334
|
-
"b-data-grid-columns__column--column-hovered-no-border-left": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1335
|
-
"b-data-grid-columns__column--column-hovered-no-border-right": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1336
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && z === a.value.length - 1,
|
|
1337
|
-
"b-data-grid-columns__column--sortable": c.sortable,
|
|
1338
|
-
"b-data-grid-columns__column--padding-left-unset": ((Z = c == null ? void 0 : c.padding) == null ? void 0 : Z.left) === !1,
|
|
1339
|
-
"b-data-grid-columns__column--padding-right-unset": ((te = c == null ? void 0 : c.padding) == null ? void 0 : te.right) === !1,
|
|
1340
|
-
"b-data-grid-columns__column--numeric": c == null ? void 0 : c.numeric,
|
|
1341
|
-
"b-data-grid-columns__column--frozen": c == null ? void 0 : c.frozen,
|
|
1342
|
-
"b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((Le = (re = e.draggingColumns) == null ? void 0 : re.dragging) == null ? void 0 : Le.field),
|
|
1343
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((be = (pe = e.draggingColumns) == null ? void 0 : pe.target) == null ? void 0 : be.field) && ((we = e.draggingColumns) == null ? void 0 : we.dragToLeft),
|
|
1344
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (c == null ? void 0 : c.field) === ((T = (h = e.draggingColumns) == null ? void 0 : h.target) == null ? void 0 : T.field) && !((H = e.draggingColumns) != null && H.dragToLeft),
|
|
1345
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": c.sortable || c.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1346
|
-
"b-data-grid-columns--small-container": G.value
|
|
1347
|
-
};
|
|
1348
|
-
}, he = (c) => ({
|
|
1349
|
-
"b-data-grid-columns__column-header-and-actions--numeric": c == null ? void 0 : c.numeric
|
|
1350
|
-
}), de = (c) => ({
|
|
1351
|
-
"b-data-grid-columns__column-actions--numeric": c == null ? void 0 : c.numeric
|
|
1352
|
-
}), L = (c) => ({
|
|
1353
|
-
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1354
|
-
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === c.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1355
|
-
}), k = C(() => ({
|
|
1356
|
-
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1357
|
-
})), J = (c) => ({
|
|
1358
|
-
"b-data-grid-columns__menu--hovered": v.value === c.field || $.value
|
|
1359
|
-
});
|
|
1360
|
-
return t({
|
|
1361
|
-
columnHeaderRefs: g
|
|
1362
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: s, t: l, columns: a, sortBy: r, allColumnsRef: d, columnHeaderRefs: g, contextMenuRef: p, hoveredColumnField: v, closingTimeOutId: y, areAnyColumnsFocusable: S, onAllRowSelect: u, isActionsColumn: b, isAllSelectionState: E, selectAllMenu: N, startResize: R, isResizing: m, columnHoverEventToEmitAfterResizing: O, isSorting: I, getSortingDirection: _, sortByColumnField: i, getSortingColumnDirection: f, draggingEventsForColumn: A, contextualMenuData: D, showContextualMenu: P, hideContextualMenu: x, dataGridColumnEvents: U, hasColumnActions: q, registerColumnsRefs: W, isSmallContainer: G, isTouchDevice: $, conditionalColumnsClasses: B, conditionalSelectColumnClasses: oe, computeMenuPosition: _e, conditionalColumnClasses: ve, conditionalColumnHeaderAndActionsClasses: he, conditionalColumnActionsClasses: de, conditionalColumnSeparatorClasses: L, conditionalColumnHeaderClasses: k, conditionalColumnMenuClasses: J, BentoCheckbox: xt, BentoDatagridSortDirection: Ee, BentoTypography: ye, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: qe, BentoInfoIcon: ao, DatagridColumnsEvent: Y, BentoMenu: zt, BentoToggleButton: je, DecorativeCheckbox: io, ArrowUpAndDownSortIcon: Go, SortAscendingIcon: Jo, SortDescendingIcon: os, TriangleDown: rs };
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
var fs = function() {
|
|
1366
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1367
|
-
return n("div", { ref: "allColumnsRef", staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(s, l) {
|
|
1368
|
-
return n("div", t._g({ key: s.field, ref: (a) => e.registerColumnsRefs(a, s.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(s, l), style: { width: s.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${s.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": s.label, "aria-sort": e.getSortingColumnDirection(s), "data-testid": `${s.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(s), role: "columnheader", tabindex: s.sortable || t.hasColumnPanel || s.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(s)), [e.isActionsColumn(s) && 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() {
|
|
1369
|
-
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)];
|
|
1370
|
-
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(s), attrs: { "aria-label": e.t("columnActions", { name: s.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-${s.field}`, function() {
|
|
1371
|
-
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(s.label))])];
|
|
1372
|
-
}, { column: s })], 2), e.hasColumnActions(s) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(s) }, [s.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": s.infoIconTooltip } })], 1) : t._e(), s.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(s.field), variant: "tertiary" }, on: { click: function(a) {
|
|
1373
|
-
return e.sortByColumnField(s.field);
|
|
1374
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1375
|
-
return [e.getSortingDirection(s.field) ? e.getSortingDirection(s.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: s.label }) } }) : e.getSortingDirection(s.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: s.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: s.label }) } })];
|
|
1376
|
-
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[s.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", class: e.conditionalColumnMenuClasses(s), attrs: { "disable-arrow-down-opening-menu": "", data: e.contextualMenuData(s), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
|
|
1377
|
-
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1378
|
-
}, close: function(a) {
|
|
1379
|
-
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1380
|
-
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(s), attrs: { "data-testid": `data-grid-column-${s.field}`, role: "presentation" }, on: { mousedown: function(a) {
|
|
1381
|
-
return e.startResize(t.hasResizableColumns, s.field, a);
|
|
1382
|
-
}, click: function(a) {
|
|
1383
|
-
a.stopPropagation();
|
|
1384
|
-
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1385
|
-
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (s) => e.registerColumnsRefs(s, 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);
|
|
1386
|
-
}, gs = [], ms = /* @__PURE__ */ X(
|
|
1387
|
-
us,
|
|
1388
|
-
fs,
|
|
1389
|
-
gs,
|
|
1390
|
-
!1,
|
|
1391
|
-
null,
|
|
1392
|
-
"6c78a96a"
|
|
1393
|
-
);
|
|
1394
|
-
const _s = ms.exports;
|
|
1395
|
-
var fe = /* @__PURE__ */ ((o) => (o.UPDATE_CONDENSED = "update:condensed", o.UPDATE_COLUMNS = "update:columns", o.UPDATE_ZEBRA_ROWS = "update:zebra-rows", o))(fe || {});
|
|
1396
|
-
let St = 0;
|
|
1397
|
-
const Cs = {
|
|
1398
|
-
beforeCreate() {
|
|
1399
|
-
this.uuid = St.toString(), St += 1;
|
|
1400
|
-
}
|
|
1401
|
-
};
|
|
1402
|
-
var vs = function() {
|
|
1403
|
-
var t = this, n = t._self._c;
|
|
1404
|
-
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" } })])])]);
|
|
1405
|
-
}, hs = [], ps = /* @__PURE__ */ X(
|
|
1406
|
-
Cs,
|
|
1407
|
-
vs,
|
|
1408
|
-
hs,
|
|
1409
|
-
!1,
|
|
1410
|
-
null,
|
|
1411
|
-
null
|
|
1412
|
-
);
|
|
1413
|
-
const bs = ps.exports, ws = {
|
|
1414
|
-
"de-DE": {
|
|
1415
|
-
toggleColumnFreeze: "{label} Spaltenfixierung umschalten",
|
|
1416
|
-
toggleColumnVisibility: "Sichtbarkeit der Spalte {label} umschalten"
|
|
1417
|
-
},
|
|
1418
|
-
"en-GB": {
|
|
1419
|
-
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1420
|
-
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1421
|
-
},
|
|
1422
|
-
"en-US": {
|
|
1423
|
-
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1424
|
-
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1425
|
-
},
|
|
1426
|
-
"es-419": {
|
|
1427
|
-
toggleColumnFreeze: "Alternar la congelación de la columna {label}",
|
|
1428
|
-
toggleColumnVisibility: "Mostrar o ocultar la columna {label}"
|
|
1429
|
-
},
|
|
1430
|
-
"es-ES": {
|
|
1431
|
-
toggleColumnFreeze: "Alternar la congelación de la columna {label}",
|
|
1432
|
-
toggleColumnVisibility: "Mostrar/ocultar la visibilidad de la columna {label}"
|
|
1433
|
-
},
|
|
1434
|
-
"es-MX": {
|
|
1435
|
-
toggleColumnFreeze: "Alternar la congelación de la columna {label}",
|
|
1436
|
-
toggleColumnVisibility: "Mostrar/ocultar la visibilidad de la columna {label}"
|
|
1437
|
-
},
|
|
1438
|
-
"fr-FR": {
|
|
1439
|
-
toggleColumnFreeze: "Activer/désactiver le figement de la colonne {label}",
|
|
1440
|
-
toggleColumnVisibility: "Activer/désactiver la visibilité de la colonne {label}"
|
|
1441
|
-
},
|
|
1442
|
-
"it-IT": {
|
|
1443
|
-
toggleColumnFreeze: "Attiva/disattiva il blocco delle colonne {label}",
|
|
1444
|
-
toggleColumnVisibility: "Attiva la visibilità delle colonne {label}"
|
|
1445
|
-
},
|
|
1446
|
-
"ja-JP": {
|
|
1447
|
-
toggleColumnFreeze: "{label}列の固定を切り替え",
|
|
1448
|
-
toggleColumnVisibility: "{label}列の表示を切り替え"
|
|
1449
|
-
},
|
|
1450
|
-
"pt-BR": {
|
|
1451
|
-
toggleColumnFreeze: "Alternar congelamento da coluna {label}",
|
|
1452
|
-
toggleColumnVisibility: "Alternar visibilidade da coluna {label}"
|
|
1453
|
-
},
|
|
1454
|
-
"zh-CN": {
|
|
1455
|
-
toggleColumnFreeze: "切换 {label} 列冻结",
|
|
1456
|
-
toggleColumnVisibility: "切换 {label} 列的可见性"
|
|
1457
|
-
}
|
|
1458
|
-
}, Ss = ie({
|
|
1459
|
-
i18n: { messages: ws },
|
|
1460
|
-
name: "bento-data-grid",
|
|
1461
|
-
components: {
|
|
1462
|
-
BentoFreezeIcon: kt,
|
|
1463
|
-
BentoToggle: Bt
|
|
1464
|
-
},
|
|
1465
|
-
props: {
|
|
1466
|
-
/**
|
|
1467
|
-
* Is column visibitlity toggle disabled
|
|
1468
|
-
*/
|
|
1469
|
-
isColumnVisibilityToggleDisabled: {
|
|
1470
|
-
type: Boolean,
|
|
1471
|
-
required: !0
|
|
1472
|
-
},
|
|
1473
|
-
/**
|
|
1474
|
-
* Column definition
|
|
1475
|
-
*/
|
|
1476
|
-
column: {
|
|
1477
|
-
type: Object,
|
|
1478
|
-
required: !0
|
|
1479
|
-
}
|
|
1480
|
-
},
|
|
1481
|
-
emits: ["visible-column", "updated-column"],
|
|
1482
|
-
setup(o, { emit: t }) {
|
|
1483
|
-
const { t: n } = Ce(), e = w(!1), s = C(() => {
|
|
1484
|
-
var y;
|
|
1485
|
-
return (y = o.column) == null ? void 0 : y.frozen;
|
|
1486
|
-
}), l = C(() => {
|
|
1487
|
-
var y;
|
|
1488
|
-
return ((y = o.column) == null ? void 0 : y.visible) !== !1;
|
|
1489
|
-
}), a = me(
|
|
1490
|
-
Oe,
|
|
1491
|
-
C(() => !1)
|
|
1492
|
-
), r = () => {
|
|
1493
|
-
t("visible-column", { ...o.column, visible: !l.value });
|
|
1494
|
-
}, d = () => {
|
|
1495
|
-
t("updated-column", { ...o.column, frozen: !s.value });
|
|
1496
|
-
}, g = () => {
|
|
1497
|
-
s.value || (e.value = !0);
|
|
1498
|
-
}, p = () => {
|
|
1499
|
-
s.value || (e.value = !1);
|
|
1500
|
-
}, v = C(() => ({
|
|
1501
|
-
"b-data-grid-config-settings-column-row__freeze-icon--frozen": s.value
|
|
1502
|
-
}));
|
|
1503
|
-
return {
|
|
1504
|
-
// Values
|
|
1505
|
-
isFreezeIconOptionShown: e,
|
|
1506
|
-
isColumnFrozen: s,
|
|
1507
|
-
freezeIconConditionalClasses: v,
|
|
1508
|
-
isColumnVisible: l,
|
|
1509
|
-
isSmallContainer: a,
|
|
1510
|
-
// Methods
|
|
1511
|
-
toggleColumnVisibility: r,
|
|
1512
|
-
showFreezeIcon: g,
|
|
1513
|
-
hideFreezeIcon: p,
|
|
1514
|
-
toggleColumnFreeze: d,
|
|
1515
|
-
// Translations
|
|
1516
|
-
t: n
|
|
1517
|
-
};
|
|
1518
|
-
}
|
|
1519
|
-
});
|
|
1520
|
-
var Rs = function() {
|
|
1521
|
-
var t = this, n = t._self._c;
|
|
1522
|
-
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) {
|
|
1523
|
-
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1524
|
-
} } })], 1);
|
|
1525
|
-
}, As = [], Es = /* @__PURE__ */ X(
|
|
1526
|
-
Ss,
|
|
1527
|
-
Rs,
|
|
1528
|
-
As,
|
|
1529
|
-
!1,
|
|
1530
|
-
null,
|
|
1531
|
-
"b49cbd8d"
|
|
1532
|
-
);
|
|
1533
|
-
const ys = Es.exports, Ls = {
|
|
1534
|
-
"de-DE": {
|
|
1535
|
-
appearance: "Erscheinungsbild",
|
|
1536
|
-
closeConfigSettingsPanel: "Konfigurations-Einstellungen-Panel schließen",
|
|
1537
|
-
closeSearch: "Suche schließen",
|
|
1538
|
-
columnVisibilitySearchFilter: "Suchfilter für die Spaltensichtbarkeit",
|
|
1539
|
-
columns: "Spalten",
|
|
1540
|
-
condensed: "Kompakt",
|
|
1541
|
-
condensedToggle: "Umschalter für Kompakt",
|
|
1542
|
-
configSettingsPanel: "Konfigurationseinstellungen-Panel",
|
|
1543
|
-
displayOptions: "Anzeigeoptionen",
|
|
1544
|
-
noColumnsMatch: "Keine Spalten entsprechen dieser Suche",
|
|
1545
|
-
search: "Suche",
|
|
1546
|
-
showAllColumns: "Alle Spalten anzeigen ({numberOfColumns})",
|
|
1547
|
-
toggleConfigSettingsPanelVisibility: "Konfigurationsmenü ein- oder ausblenden",
|
|
1548
|
-
zebraRows: "Zebramuster",
|
|
1549
|
-
zebraRowsToggle: "Zebramuster schalten"
|
|
1550
|
-
},
|
|
1551
|
-
"en-GB": {
|
|
1552
|
-
appearance: "Appearance",
|
|
1553
|
-
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1554
|
-
closeSearch: "Close search",
|
|
1555
|
-
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1556
|
-
columns: "Columns",
|
|
1557
|
-
condensed: "Condensed",
|
|
1558
|
-
condensedToggle: "Condensed toggle",
|
|
1559
|
-
configSettingsPanel: "Configuration settings Panel",
|
|
1560
|
-
displayOptions: "Display options",
|
|
1561
|
-
noColumnsMatch: "No columns match this search",
|
|
1562
|
-
search: "Search",
|
|
1563
|
-
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1564
|
-
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
|
|
1565
|
-
zebraRows: "Zebra rows",
|
|
1566
|
-
zebraRowsToggle: "Zebra rows toggle"
|
|
1567
|
-
},
|
|
1568
|
-
"en-US": {
|
|
1569
|
-
appearance: "Appearance",
|
|
1570
|
-
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1571
|
-
closeSearch: "Close search",
|
|
1572
|
-
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1573
|
-
columns: "Columns",
|
|
1574
|
-
condensed: "Condensed",
|
|
1575
|
-
condensedToggle: "Condensed toggle",
|
|
1576
|
-
configSettingsPanel: "Configuration settings Panel",
|
|
1577
|
-
displayOptions: "Display options",
|
|
1578
|
-
noColumnsMatch: "No columns match this search",
|
|
1579
|
-
search: "Search",
|
|
1580
|
-
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1581
|
-
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
|
|
1582
|
-
zebraRows: "Zebra rows",
|
|
1583
|
-
zebraRowsToggle: "Zebra rows toggle"
|
|
1584
|
-
},
|
|
1585
|
-
"es-419": {
|
|
1586
|
-
appearance: "Apariencia",
|
|
1587
|
-
closeConfigSettingsPanel: "Cerrar el panel de configuración",
|
|
1588
|
-
closeSearch: "Cerrar búsqueda",
|
|
1589
|
-
columnVisibilitySearchFilter: "Filtro de búsqueda por visibilidad de columnas",
|
|
1590
|
-
columns: "Columnas",
|
|
1591
|
-
condensed: "Condensado",
|
|
1592
|
-
condensedToggle: "Alternador condensado",
|
|
1593
|
-
configSettingsPanel: "Panel de configuración",
|
|
1594
|
-
displayOptions: "Opciones de visualización",
|
|
1595
|
-
noColumnsMatch: "No hay columnas que coincidan con esta búsqueda",
|
|
1596
|
-
search: "Buscar",
|
|
1597
|
-
showAllColumns: "Mostrar todas las columnas ({numberOfColumns})",
|
|
1598
|
-
toggleConfigSettingsPanelVisibility: "Mostrar u ocultar el panel de configuración",
|
|
1599
|
-
zebraRows: "Filas alternadas",
|
|
1600
|
-
zebraRowsToggle: "Interruptor de filas alternadas"
|
|
1601
|
-
},
|
|
1602
|
-
"es-ES": {
|
|
1603
|
-
appearance: "Aspecto",
|
|
1604
|
-
closeConfigSettingsPanel: "Cerrar el panel de ajustes de configuración",
|
|
1605
|
-
closeSearch: "Cerrar búsqueda",
|
|
1606
|
-
columnVisibilitySearchFilter: "Filtro de búsqueda de visibilidad en columnas",
|
|
1607
|
-
columns: "Columnas",
|
|
1608
|
-
condensed: "Condensado",
|
|
1609
|
-
condensedToggle: "Interruptor condensado",
|
|
1610
|
-
configSettingsPanel: "Panel de ajustes de configuración",
|
|
1611
|
-
displayOptions: "Opciones de visualización",
|
|
1612
|
-
noColumnsMatch: "Ninguna columna corresponde a esta búsqueda",
|
|
1613
|
-
search: "Buscar",
|
|
1614
|
-
showAllColumns: "Mostrar todas las columnas ({numberOfColumns})",
|
|
1615
|
-
toggleConfigSettingsPanelVisibility: "Mostrar/ocultar el panel de ajustes",
|
|
1616
|
-
zebraRows: "Filas de cebra",
|
|
1617
|
-
zebraRowsToggle: "Alternar filas de cebra"
|
|
1618
|
-
},
|
|
1619
|
-
"es-MX": {
|
|
1620
|
-
appearance: "Aspecto",
|
|
1621
|
-
closeConfigSettingsPanel: "Cerrar el panel de ajustes de configuración",
|
|
1622
|
-
closeSearch: "Cerrar búsqueda",
|
|
1623
|
-
columnVisibilitySearchFilter: "Filtro de búsqueda de visibilidad en columnas",
|
|
1624
|
-
columns: "Columnas",
|
|
1625
|
-
condensed: "Condensado",
|
|
1626
|
-
condensedToggle: "Botón de alternancia condensado",
|
|
1627
|
-
configSettingsPanel: "Panel de ajustes de configuración",
|
|
1628
|
-
displayOptions: "Opciones de visualización",
|
|
1629
|
-
noColumnsMatch: "No hay columnas que coincidan con esta búsqueda",
|
|
1630
|
-
search: "Buscar",
|
|
1631
|
-
showAllColumns: "Mostrar todas las columnas ({numberOfColumns})",
|
|
1632
|
-
toggleConfigSettingsPanelVisibility: "Mostrar/ocultar el panel de ajustes de configuración",
|
|
1633
|
-
zebraRows: "Filas cebra",
|
|
1634
|
-
zebraRowsToggle: "Botón de alternancia de filas cebra"
|
|
1635
|
-
},
|
|
1636
|
-
"fr-FR": {
|
|
1637
|
-
appearance: "Apparence",
|
|
1638
|
-
closeConfigSettingsPanel: "Fermer le panneau des paramètres de configuration",
|
|
1639
|
-
closeSearch: "Fermer la recherche",
|
|
1640
|
-
columnVisibilitySearchFilter: "Filtre de recherche de visibilité des colonnes",
|
|
1641
|
-
columns: "Colonnes",
|
|
1642
|
-
condensed: "Condensé",
|
|
1643
|
-
condensedToggle: "Activer/désactiver l'affichage condensé",
|
|
1644
|
-
configSettingsPanel: "Panneau des paramètres de configuration",
|
|
1645
|
-
displayOptions: "Options d'affichage",
|
|
1646
|
-
noColumnsMatch: "Aucune colonne ne correspond à cette recherche",
|
|
1647
|
-
search: "Rechercher",
|
|
1648
|
-
showAllColumns: "Afficher toutes les colonnes ({numberOfColumns})",
|
|
1649
|
-
toggleConfigSettingsPanelVisibility: "Afficher/masquer le panneau des paramètres de configuration",
|
|
1650
|
-
zebraRows: "Lignes alternées",
|
|
1651
|
-
zebraRowsToggle: "Activer/désactiver les lignes alternées"
|
|
1652
|
-
},
|
|
1653
|
-
"it-IT": {
|
|
1654
|
-
appearance: "Aspetto",
|
|
1655
|
-
closeConfigSettingsPanel: "Chiudi il pannello delle impostazioni di configurazione",
|
|
1656
|
-
closeSearch: "Chiudi ricerca",
|
|
1657
|
-
columnVisibilitySearchFilter: "Filtro di ricerca per la visibilità delle colonne",
|
|
1658
|
-
columns: "Colonne",
|
|
1659
|
-
condensed: "In formato ridotto",
|
|
1660
|
-
condensedToggle: "Interruttore in formato ridotto",
|
|
1661
|
-
configSettingsPanel: "Pannello delle impostazioni di configurazione",
|
|
1662
|
-
displayOptions: "Opzioni di visualizzazione",
|
|
1663
|
-
noColumnsMatch: "Nessuna colonna corrisponde a questa ricerca",
|
|
1664
|
-
search: "Cerca",
|
|
1665
|
-
showAllColumns: "Mostra tutte le colonne ({numberOfColumns})",
|
|
1666
|
-
toggleConfigSettingsPanelVisibility: "Attiva/disattiva la visibilità del pannello delle impostazioni di configurazione",
|
|
1667
|
-
zebraRows: "Righe zebra",
|
|
1668
|
-
zebraRowsToggle: "Attiva/disattiva righe in stile zebra"
|
|
1669
|
-
},
|
|
1670
|
-
"ja-JP": {
|
|
1671
|
-
appearance: "外観",
|
|
1672
|
-
closeConfigSettingsPanel: "構成設定パネルを閉じる",
|
|
1673
|
-
closeSearch: "検索を閉じる",
|
|
1674
|
-
columnVisibilitySearchFilter: "列の表示設定検索フィルター",
|
|
1675
|
-
columns: "列",
|
|
1676
|
-
condensed: "コンパクト表示",
|
|
1677
|
-
condensedToggle: "コンパクト表示の切り替え",
|
|
1678
|
-
configSettingsPanel: "構成設定パネル",
|
|
1679
|
-
displayOptions: "表示オプション",
|
|
1680
|
-
noColumnsMatch: "この検索に一致する列はありません",
|
|
1681
|
-
search: "検索",
|
|
1682
|
-
showAllColumns: "すべての列を表示 ({numberOfColumns})",
|
|
1683
|
-
toggleConfigSettingsPanelVisibility: "構成設定パネルの表示を切り替え",
|
|
1684
|
-
zebraRows: "縞模様(行)",
|
|
1685
|
-
zebraRowsToggle: "縞模様(行)の切り替え"
|
|
1686
|
-
},
|
|
1687
|
-
"pt-BR": {
|
|
1688
|
-
appearance: "Aparência",
|
|
1689
|
-
closeConfigSettingsPanel: "Fechar painel de configurações",
|
|
1690
|
-
closeSearch: "Fechar busca",
|
|
1691
|
-
columnVisibilitySearchFilter: "Filtro de busca de visibilidade da coluna",
|
|
1692
|
-
columns: "Colunas",
|
|
1693
|
-
condensed: "Condensado",
|
|
1694
|
-
condensedToggle: "Alternância condensada",
|
|
1695
|
-
configSettingsPanel: "Painel de configurações",
|
|
1696
|
-
displayOptions: "Opções de exibição",
|
|
1697
|
-
noColumnsMatch: "Nenhuma coluna corresponde a esta busca",
|
|
1698
|
-
search: "Busca",
|
|
1699
|
-
showAllColumns: "Mostrar todas as colunas ({numberOfColumns})",
|
|
1700
|
-
toggleConfigSettingsPanelVisibility: "Alternar a visibilidade do painel de configurações",
|
|
1701
|
-
zebraRows: "Linhas alternadas",
|
|
1702
|
-
zebraRowsToggle: "Alternar linhas alternadas"
|
|
1703
|
-
},
|
|
1704
|
-
"zh-CN": {
|
|
1705
|
-
appearance: "外观",
|
|
1706
|
-
closeConfigSettingsPanel: "关闭配置设置面板",
|
|
1707
|
-
closeSearch: "关闭搜索",
|
|
1708
|
-
columnVisibilitySearchFilter: "列可见性搜索筛选器",
|
|
1709
|
-
columns: "列",
|
|
1710
|
-
condensed: "扼要",
|
|
1711
|
-
condensedToggle: "扼要切换",
|
|
1712
|
-
configSettingsPanel: "配置设置面板",
|
|
1713
|
-
displayOptions: "显示选项",
|
|
1714
|
-
noColumnsMatch: "没有符合此搜索条件的列",
|
|
1715
|
-
search: "搜索",
|
|
1716
|
-
showAllColumns: "显示所有列 ({numberOfColumns})",
|
|
1717
|
-
toggleConfigSettingsPanelVisibility: "切换配置设置面板的可见性",
|
|
1718
|
-
zebraRows: "斑马条纹行",
|
|
1719
|
-
zebraRowsToggle: "斑马条纹行切换"
|
|
1720
|
-
}
|
|
1721
|
-
}, Ts = ie({
|
|
1722
|
-
i18n: { messages: Ls },
|
|
1723
|
-
name: "bento-data-grid",
|
|
1724
|
-
components: {
|
|
1725
|
-
BentoButton: Pt,
|
|
1726
|
-
BentoCrossIcon: It,
|
|
1727
|
-
BentoPopover: Qn,
|
|
1728
|
-
BentoSettingsIcon: bs,
|
|
1729
|
-
BentoToggleButton: je,
|
|
1730
|
-
BentoDataGridConfigSettingsConfigRow: ys,
|
|
1731
|
-
BentoSearchBar: mo,
|
|
1732
|
-
BentoSearchIcon: _o,
|
|
1733
|
-
BentoToggle: Bt,
|
|
1734
|
-
BentoTypography: ye
|
|
1735
|
-
},
|
|
1736
|
-
directives: { BentoClickOutsideDirective: Co },
|
|
1737
|
-
props: {
|
|
1738
|
-
/**
|
|
1739
|
-
* Column definitions
|
|
1740
|
-
*/
|
|
1741
|
-
columns: {
|
|
1742
|
-
type: Array,
|
|
1743
|
-
required: !0
|
|
1744
|
-
},
|
|
1745
|
-
/**
|
|
1746
|
-
* Sets the row cells to the condensed padding state.
|
|
1747
|
-
*/
|
|
1748
|
-
condensed: {
|
|
1749
|
-
type: Boolean,
|
|
1750
|
-
default: !1
|
|
1751
|
-
},
|
|
1752
|
-
/**
|
|
1753
|
-
* Sets a different background color for even rows.
|
|
1754
|
-
*/
|
|
1755
|
-
zebraRows: {
|
|
1756
|
-
type: Boolean,
|
|
1757
|
-
default: !1
|
|
1758
|
-
}
|
|
1759
|
-
},
|
|
1760
|
-
emits: [
|
|
1761
|
-
fe.UPDATE_CONDENSED,
|
|
1762
|
-
fe.UPDATE_COLUMNS,
|
|
1763
|
-
fe.UPDATE_ZEBRA_ROWS
|
|
1764
|
-
],
|
|
1765
|
-
setup(o, { emit: t }) {
|
|
1766
|
-
const { t: n } = Ce(), e = w(null), s = Me("data-grid-config-settings-popover"), l = w(null), a = w(!1), r = w(!0), d = w(null), g = w(""), p = ke(o, "columns"), v = w(!1), y = ro(g, p), S = () => {
|
|
1767
|
-
g.value = "";
|
|
1768
|
-
}, u = C(
|
|
1769
|
-
() => !o.columns.some((f) => f.visible === !1 && !f.mandatory)
|
|
1770
|
-
), b = () => {
|
|
1771
|
-
S(), v.value = !v.value, v.value ? ee(() => {
|
|
1772
|
-
var f;
|
|
1773
|
-
return (f = l.value.$refs.bentoInputField) == null ? void 0 : f.focusInput();
|
|
1774
|
-
}) : ee(() => {
|
|
1775
|
-
var f, A;
|
|
1776
|
-
return (A = (f = d == null ? void 0 : d.value) == null ? void 0 : f.$el) == null ? void 0 : A.focus();
|
|
1777
|
-
}), r.value = u.value;
|
|
1778
|
-
}, E = (f) => f.mandatory ?? !1, N = (f) => {
|
|
1779
|
-
const A = o.columns.map((D) => ({
|
|
1780
|
-
...D,
|
|
1781
|
-
visible: f.field === D.field ? f.visible : D.visible
|
|
1782
|
-
}));
|
|
1783
|
-
t(fe.UPDATE_COLUMNS, A);
|
|
1784
|
-
}, R = (f) => {
|
|
1785
|
-
f ? t(
|
|
1786
|
-
fe.UPDATE_COLUMNS,
|
|
1787
|
-
o.columns.map((A) => ({ ...A, visible: !0 }))
|
|
1788
|
-
) : t(
|
|
1789
|
-
fe.UPDATE_COLUMNS,
|
|
1790
|
-
o.columns.map((A) => ({ ...A, visible: (A == null ? void 0 : A.mandatory) === !0 }))
|
|
1791
|
-
);
|
|
1792
|
-
}, m = (f) => {
|
|
1793
|
-
const A = o.columns.map((D) => ({
|
|
1794
|
-
...D,
|
|
1795
|
-
frozen: f.field === D.field ? !!(f != null && f.frozen) : !!(D != null && D.frozen)
|
|
1796
|
-
}));
|
|
1797
|
-
t(fe.UPDATE_COLUMNS, A);
|
|
1798
|
-
}, O = (f) => {
|
|
1799
|
-
a.value = f, r.value = u.value;
|
|
1800
|
-
};
|
|
1801
|
-
return {
|
|
1802
|
-
// Values
|
|
1803
|
-
configSettingsButtonRef: e,
|
|
1804
|
-
popoverId: s,
|
|
1805
|
-
isConfigSettingsPanelOpen: a,
|
|
1806
|
-
allColumnsVisbilityToggleState: r,
|
|
1807
|
-
filteredColumnVisibilityColumns: y,
|
|
1808
|
-
searchTerm: g,
|
|
1809
|
-
isColumnVisibilityFilterShown: v,
|
|
1810
|
-
searchBarRef: l,
|
|
1811
|
-
searchButtonRef: d,
|
|
1812
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: le,
|
|
1813
|
-
// Methods
|
|
1814
|
-
setConfigSettingsPanelVisibility: O,
|
|
1815
|
-
emitCondensedToggle: (f) => t(fe.UPDATE_CONDENSED, f),
|
|
1816
|
-
toggleAllColumnVisibility: R,
|
|
1817
|
-
clearAction: S,
|
|
1818
|
-
toggleColumnFilter: b,
|
|
1819
|
-
emitVisibleColumns: N,
|
|
1820
|
-
emitFrozenColumns: m,
|
|
1821
|
-
onClickOutside: () => O(!1),
|
|
1822
|
-
isColumnVisibilityToggleDisabled: E,
|
|
1823
|
-
emitZebraRowsToggle: (f) => t(fe.UPDATE_ZEBRA_ROWS, f),
|
|
1824
|
-
// Translations
|
|
1825
|
-
t: n
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
});
|
|
1829
|
-
var Os = function() {
|
|
1830
|
-
var t = this, n = t._self._c;
|
|
1831
|
-
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) {
|
|
1832
|
-
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
1833
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1834
|
-
return [n("bento-settings-icon", { attrs: { "svg-title": t.t("toggleConfigSettingsPanelVisibility") } })];
|
|
1835
|
-
}, 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) {
|
|
1836
|
-
return t.setConfigSettingsPanelVisibility(!1);
|
|
1837
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1838
|
-
return [n("bento-cross-icon", { attrs: { "svg-title": t.t("closeConfigSettingsPanel") } })];
|
|
1839
|
-
}, 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() {
|
|
1840
|
-
return [n("bento-cross-icon")];
|
|
1841
|
-
}, 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() {
|
|
1842
|
-
return [n("bento-search-icon")];
|
|
1843
|
-
}, 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) {
|
|
1844
|
-
t.searchTerm = e;
|
|
1845
|
-
}, 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) {
|
|
1846
|
-
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);
|
|
1847
|
-
}), 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);
|
|
1848
|
-
}, Is = [], Ns = /* @__PURE__ */ X(
|
|
1849
|
-
Ts,
|
|
1850
|
-
Os,
|
|
1851
|
-
Is,
|
|
1852
|
-
!1,
|
|
1853
|
-
null,
|
|
1854
|
-
"0e477266"
|
|
1855
|
-
);
|
|
1856
|
-
const Ds = Ns.exports, Wt = {
|
|
1857
|
-
"de-DE": {
|
|
1858
|
-
filterBar: "Filter",
|
|
1859
|
-
gettingYourData: "Ihre Daten werden abgerufen",
|
|
1860
|
-
loading: "Laden",
|
|
1861
|
-
noResults: "Keine Ergebnisse",
|
|
1862
|
-
pagination: "Paginierung",
|
|
1863
|
-
selectRow: "Zeile auswählen",
|
|
1864
|
-
showMore: "Mehr anzeigen",
|
|
1865
|
-
sortAscending: "{field} aufsteigend sortieren",
|
|
1866
|
-
sortDescending: "{field} absteigend sortieren",
|
|
1867
|
-
sortInactive: "{field} Sortierung inaktiv"
|
|
1868
|
-
},
|
|
1869
|
-
"en-GB": {
|
|
1870
|
-
filterBar: "Filters",
|
|
1871
|
-
gettingYourData: "Getting your data",
|
|
1872
|
-
loading: "Loading",
|
|
1873
|
-
noResults: "No results",
|
|
1874
|
-
pagination: "Pagination",
|
|
1875
|
-
selectRow: "Select row",
|
|
1876
|
-
showMore: "Show more",
|
|
1877
|
-
sortAscending: "{field} sort ascending",
|
|
1878
|
-
sortDescending: "{field} sort descending",
|
|
1879
|
-
sortInactive: "{field} sort inactive"
|
|
1880
|
-
},
|
|
1881
|
-
"en-US": {
|
|
1882
|
-
filterBar: "Filters",
|
|
1883
|
-
gettingYourData: "Getting your data",
|
|
1884
|
-
loading: "Loading",
|
|
1885
|
-
noResults: "No results",
|
|
1886
|
-
pagination: "Pagination",
|
|
1887
|
-
selectRow: "Select row",
|
|
1888
|
-
showMore: "Show more",
|
|
1889
|
-
sortAscending: "{field} sort ascending",
|
|
1890
|
-
sortDescending: "{field} sort descending",
|
|
1891
|
-
sortInactive: "{field} sort inactive"
|
|
1892
|
-
},
|
|
1893
|
-
"es-419": {
|
|
1894
|
-
filterBar: "Filtros",
|
|
1895
|
-
gettingYourData: "Obteniendo tus datos",
|
|
1896
|
-
loading: "Cargando",
|
|
1897
|
-
noResults: "No hay resultados",
|
|
1898
|
-
pagination: "Paginación",
|
|
1899
|
-
selectRow: "Seleccionar fila",
|
|
1900
|
-
showMore: "Mostrar más",
|
|
1901
|
-
sortAscending: "{field} en orden ascendente",
|
|
1902
|
-
sortDescending: "{field} en orden descendente",
|
|
1903
|
-
sortInactive: "{field} en orden inactivo"
|
|
1904
|
-
},
|
|
1905
|
-
"es-ES": {
|
|
1906
|
-
filterBar: "Filtros",
|
|
1907
|
-
gettingYourData: "Obtención de tus datos",
|
|
1908
|
-
loading: "Cargando",
|
|
1909
|
-
noResults: "No hay resultados",
|
|
1910
|
-
pagination: "Paginación",
|
|
1911
|
-
selectRow: "Seleccionar fila",
|
|
1912
|
-
showMore: "Mostrar más",
|
|
1913
|
-
sortAscending: "Ordenamiento de {field} ascendente",
|
|
1914
|
-
sortDescending: "Ordenamiento de {field} descendente",
|
|
1915
|
-
sortInactive: "Ordenamiento de {field} inactivo"
|
|
1916
|
-
},
|
|
1917
|
-
"es-MX": {
|
|
1918
|
-
filterBar: "Filtros",
|
|
1919
|
-
gettingYourData: "Obtener tus datos",
|
|
1920
|
-
loading: "Cargando",
|
|
1921
|
-
noResults: "No hay resultados",
|
|
1922
|
-
pagination: "Paginación",
|
|
1923
|
-
selectRow: "Seleccionar fila",
|
|
1924
|
-
showMore: "Mostrar más",
|
|
1925
|
-
sortAscending: "Ordenamiento de {field} ascendente",
|
|
1926
|
-
sortDescending: "Ordenamiento de {field} descendente",
|
|
1927
|
-
sortInactive: "Ordenamiento de {field} inactivo"
|
|
1928
|
-
},
|
|
1929
|
-
"fr-FR": {
|
|
1930
|
-
filterBar: "Filtres",
|
|
1931
|
-
gettingYourData: "Obtenir vos données",
|
|
1932
|
-
loading: "Chargement",
|
|
1933
|
-
noResults: "Aucun résultat",
|
|
1934
|
-
pagination: "Pagination",
|
|
1935
|
-
selectRow: "Sélectionner une ligne",
|
|
1936
|
-
showMore: "Afficher plus",
|
|
1937
|
-
sortAscending: "Tri de {field} par ordre croissant",
|
|
1938
|
-
sortDescending: "{field} trier par ordre décroissant",
|
|
1939
|
-
sortInactive: "Tri de {field} inactif"
|
|
1940
|
-
},
|
|
1941
|
-
"it-IT": {
|
|
1942
|
-
filterBar: "Filtri",
|
|
1943
|
-
gettingYourData: "Ottenimento dei dati",
|
|
1944
|
-
loading: "Caricamento",
|
|
1945
|
-
noResults: "Nessun risultato",
|
|
1946
|
-
pagination: "Paginazione",
|
|
1947
|
-
selectRow: "Seleziona riga",
|
|
1948
|
-
showMore: "Mostra di più",
|
|
1949
|
-
sortAscending: "{field} ordine crescente",
|
|
1950
|
-
sortDescending: "{field} ordine decrescente",
|
|
1951
|
-
sortInactive: "{field} ordine inattivo"
|
|
1952
|
-
},
|
|
1953
|
-
"ja-JP": {
|
|
1954
|
-
filterBar: "フィルター",
|
|
1955
|
-
gettingYourData: "データを読み込み中",
|
|
1956
|
-
loading: "読み込み中",
|
|
1957
|
-
noResults: "結果なし",
|
|
1958
|
-
pagination: "ページネーション",
|
|
1959
|
-
selectRow: "行を選択",
|
|
1960
|
-
showMore: "もっと見る",
|
|
1961
|
-
sortAscending: "{field}昇順で並べ替え",
|
|
1962
|
-
sortDescending: "{field}降順で並べ替え",
|
|
1963
|
-
sortInactive: "{field}の並べ替えが無効"
|
|
1964
|
-
},
|
|
1965
|
-
"pt-BR": {
|
|
1966
|
-
filterBar: "Filtros",
|
|
1967
|
-
gettingYourData: "Obtendo seus dados",
|
|
1968
|
-
loading: "Carregando",
|
|
1969
|
-
noResults: "Nenhum resultado",
|
|
1970
|
-
pagination: "Paginação",
|
|
1971
|
-
selectRow: "Selecionar linha",
|
|
1972
|
-
showMore: "Mostrar mais",
|
|
1973
|
-
sortAscending: "{field} ordenar em ordem ascendente",
|
|
1974
|
-
sortDescending: "{field} ordenar em ordem decrescente",
|
|
1975
|
-
sortInactive: "{field} ordenação inativa"
|
|
1976
|
-
},
|
|
1977
|
-
"zh-CN": {
|
|
1978
|
-
filterBar: "筛选器",
|
|
1979
|
-
gettingYourData: "获取数据",
|
|
1980
|
-
loading: "正在加载",
|
|
1981
|
-
noResults: "没有结果",
|
|
1982
|
-
pagination: "分页",
|
|
1983
|
-
selectRow: "选择行",
|
|
1984
|
-
showMore: "显示更多",
|
|
1985
|
-
sortAscending: "{field} 升序排序",
|
|
1986
|
-
sortDescending: "{field} 降序排序",
|
|
1987
|
-
sortInactive: "{field} 排序未激活"
|
|
1988
|
-
}
|
|
1989
|
-
}, Ms = {
|
|
1990
|
-
i18n: { messages: Wt }
|
|
1991
|
-
}, Fs = /* @__PURE__ */ ie({
|
|
1992
|
-
...Ms,
|
|
1993
|
-
__name: "data-grid-lazy-load",
|
|
1994
|
-
props: {
|
|
1995
|
-
loading: { type: Boolean },
|
|
1996
|
-
isInfiniteScroll: { type: Boolean }
|
|
1997
|
-
},
|
|
1998
|
-
setup(o) {
|
|
1999
|
-
const { t } = Ce();
|
|
2000
|
-
return { __sfc: !0, t, BentoLoadingButton: to, BentoLoadingButtonState: eo, BentoLoadingIndicator: He, BentoDatagridEvent: M };
|
|
2001
|
-
}
|
|
2002
|
-
});
|
|
2003
|
-
var xs = function() {
|
|
2004
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2005
|
-
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(s) {
|
|
2006
|
-
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
2007
|
-
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
2008
|
-
}, Ps = [], zs = /* @__PURE__ */ X(
|
|
2009
|
-
Fs,
|
|
2010
|
-
xs,
|
|
2011
|
-
Ps,
|
|
2012
|
-
!1,
|
|
2013
|
-
null,
|
|
2014
|
-
"fd9b8204"
|
|
2015
|
-
);
|
|
2016
|
-
const Bs = zs.exports, Rt = () => {
|
|
2017
|
-
const o = document.activeElement;
|
|
2018
|
-
return o ? o.matches(":focus-visible") || o.matches(".focus-visible") : !1;
|
|
2019
|
-
}, Us = ({ gridcellRef: o }) => {
|
|
2020
|
-
const t = w(!1), n = w(!1), e = w(), s = w([]), l = w(!1), a = w(!1), r = w(!1), d = w(!1), g = w(!1), p = C(() => {
|
|
2021
|
-
var _;
|
|
2022
|
-
return (((_ = e.value) == null ? void 0 : _.length) ?? 0) > 1;
|
|
2023
|
-
}), v = (_) => {
|
|
2024
|
-
var i, f;
|
|
2025
|
-
return _ ? (i = o.value) != null && i.contains(_) ? !0 : (f = s.value) == null ? void 0 : f.map((A) => A.value).some((A) => A === _ || (A == null ? void 0 : A.contains(_))) : !1;
|
|
2026
|
-
}, y = (_) => {
|
|
2027
|
-
v(_) || (t.value = !1);
|
|
2028
|
-
}, S = () => {
|
|
2029
|
-
d.value = !0, setTimeout(() => {
|
|
2030
|
-
var _, i;
|
|
2031
|
-
(_ = o.value) != null && _.contains(document.activeElement) && ((i = o.value) == null || i.focus());
|
|
2032
|
-
}, 0);
|
|
2033
|
-
}, u = () => {
|
|
2034
|
-
var _;
|
|
2035
|
-
a.value = !1, l.value = !1, g.value = !0, ce(o.value), (_ = o.value) == null || _.focus();
|
|
2036
|
-
}, b = () => {
|
|
2037
|
-
var f;
|
|
2038
|
-
const _ = (f = o.value) == null ? void 0 : f.closest('[role="grid"]');
|
|
2039
|
-
if (!_)
|
|
2040
|
-
return null;
|
|
2041
|
-
const i = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT, {
|
|
2042
|
-
acceptNode(A) {
|
|
2043
|
-
return _.contains(A) ? NodeFilter.FILTER_REJECT : A.tabIndex >= 0 && !A.hasAttribute("disabled") ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
2044
|
-
}
|
|
2045
|
-
});
|
|
2046
|
-
return i.currentNode = _, i.nextNode();
|
|
2047
|
-
}, E = () => {
|
|
2048
|
-
var i;
|
|
2049
|
-
if (l.value || a.value)
|
|
2050
|
-
return !0;
|
|
2051
|
-
const _ = document.activeElement;
|
|
2052
|
-
return !!(_ && _ !== o.value && ((i = o.value) != null && i.contains(_)));
|
|
2053
|
-
};
|
|
2054
|
-
return {
|
|
2055
|
-
shouldShowCellActions: t,
|
|
2056
|
-
isFocused: n,
|
|
2057
|
-
focusableItems: e,
|
|
2058
|
-
childrenMenuContainerElements: s,
|
|
2059
|
-
hasInteractiveElFocusedInside: l,
|
|
2060
|
-
cellInteractionMode: a,
|
|
2061
|
-
isNavigatingAway: r,
|
|
2062
|
-
isReturningFromMenu: d,
|
|
2063
|
-
isMultiWidgetCell: p,
|
|
2064
|
-
isFocusWithinCellOrMenu: v,
|
|
2065
|
-
hideCellActionsIfLeft: y,
|
|
2066
|
-
onMenuClose: S,
|
|
2067
|
-
exitInteractionMode: u,
|
|
2068
|
-
findNextFocusableAfterGrid: b,
|
|
2069
|
-
hasChildFocusedInside: E,
|
|
2070
|
-
handleFocus: async (_) => {
|
|
2071
|
-
if (!Rt())
|
|
2072
|
-
return;
|
|
2073
|
-
n.value = !0, document.activeElement === o.value && (a.value = !1, l.value = !1), _(), !p.value && !d.value && !g.value && (xe(e.value), await ee(), Fe(o.value) && (l.value = !0)), d.value = !1, g.value = !1;
|
|
2074
|
-
},
|
|
2075
|
-
handleFocusout: (_) => {
|
|
2076
|
-
Rt() && (v(_.relatedTarget) || (l.value = !1, a.value = !1, r.value = !1));
|
|
2077
|
-
},
|
|
2078
|
-
handleKeydown: (_) => {
|
|
2079
|
-
var x, U, q;
|
|
2080
|
-
const i = document.activeElement, f = i === o.value;
|
|
2081
|
-
if (!f && !!i && !!((x = o.value) != null && x.contains(i)) && (_.key === j.ENTER || _.key === " " || _.key === j.F2)) {
|
|
2082
|
-
_.stopPropagation();
|
|
2083
|
-
return;
|
|
2084
|
-
}
|
|
2085
|
-
if (f && (((U = e.value) == null ? void 0 : U.length) ?? 0) > 0 && (_.key === j.ENTER || _.key === j.F2)) {
|
|
2086
|
-
_.stopPropagation(), _.preventDefault(), a.value ? u() : (a.value = !0, xe(e.value), ee(() => {
|
|
2087
|
-
Fe(o.value) && (l.value = !0);
|
|
2088
|
-
}));
|
|
2089
|
-
return;
|
|
2090
|
-
}
|
|
2091
|
-
if (_.key === j.ESCAPE && E()) {
|
|
2092
|
-
_.stopPropagation(), _.preventDefault(), u();
|
|
2093
|
-
return;
|
|
2094
|
-
}
|
|
2095
|
-
const D = E();
|
|
2096
|
-
if ((a.value || p.value && t.value && D) && _.key !== j.TAB) {
|
|
2097
|
-
if (_.stopPropagation(), _.key === j.ARROW_LEFT || _.key === j.ARROW_RIGHT) {
|
|
2098
|
-
const W = (q = e.value) == null ? void 0 : q.findIndex((G) => G.node === document.activeElement);
|
|
2099
|
-
if (W !== void 0 && W >= 0) {
|
|
2100
|
-
const G = _.key === j.ARROW_RIGHT ? W + 1 : W - 1;
|
|
2101
|
-
G >= 0 && G < e.value.length ? (ce(o.value), e.value[G].node.setAttribute("tabindex", "0"), e.value[G].node.focus()) : u(), _.preventDefault();
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
return;
|
|
2105
|
-
}
|
|
2106
|
-
if (_.key === j.TAB && D) {
|
|
2107
|
-
_.preventDefault(), _.stopPropagation(), r.value = !0;
|
|
2108
|
-
const W = b();
|
|
2109
|
-
setTimeout(() => {
|
|
2110
|
-
l.value = !1, t.value = !1, ee(() => W == null ? void 0 : W.focus());
|
|
2111
|
-
}, 0);
|
|
2112
|
-
return;
|
|
2113
|
-
}
|
|
2114
|
-
_.key !== j.TAB && (D && (r.value = !0), l.value = !1, n.value = !1, t.value = !1, ce(o.value));
|
|
2115
|
-
},
|
|
2116
|
-
handleCellActionsFocus: async (_, i) => {
|
|
2117
|
-
if (r.value) {
|
|
2118
|
-
r.value = !1;
|
|
2119
|
-
return;
|
|
2120
|
-
}
|
|
2121
|
-
_(i), await ee(), t.value = !0;
|
|
2122
|
-
},
|
|
2123
|
-
handleCellActionsFocusout: (_, i) => {
|
|
2124
|
-
const f = r.value;
|
|
2125
|
-
_(i), f || y(i == null ? void 0 : i.relatedTarget);
|
|
2126
|
-
}
|
|
2127
|
-
};
|
|
2128
|
-
};
|
|
2129
|
-
let At = 0;
|
|
2130
|
-
const ks = {
|
|
2131
|
-
beforeCreate() {
|
|
2132
|
-
this.uuid = At.toString(), At += 1;
|
|
2133
|
-
}
|
|
2134
|
-
};
|
|
2135
|
-
var $s = function() {
|
|
2136
|
-
var t = this, n = t._self._c;
|
|
2137
|
-
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" } })]);
|
|
2138
|
-
}, Ws = [], Gs = /* @__PURE__ */ X(
|
|
2139
|
-
ks,
|
|
2140
|
-
$s,
|
|
2141
|
-
Ws,
|
|
2142
|
-
!1,
|
|
2143
|
-
null,
|
|
2144
|
-
null
|
|
2145
|
-
);
|
|
2146
|
-
const Et = Gs.exports, Vs = {
|
|
2147
|
-
"de-DE": {
|
|
2148
|
-
copy: "Kopieren",
|
|
2149
|
-
edit: "Bearbeiten",
|
|
2150
|
-
more: "Mehr",
|
|
2151
|
-
open: "Offen"
|
|
2152
|
-
},
|
|
2153
|
-
"en-GB": {
|
|
2154
|
-
copy: "Copy",
|
|
2155
|
-
edit: "Edit",
|
|
2156
|
-
more: "More",
|
|
2157
|
-
open: "Open"
|
|
2158
|
-
},
|
|
2159
|
-
"en-US": {
|
|
2160
|
-
copy: "Copy",
|
|
2161
|
-
edit: "Edit",
|
|
2162
|
-
more: "More",
|
|
2163
|
-
open: "Open"
|
|
2164
|
-
},
|
|
2165
|
-
"es-419": {
|
|
2166
|
-
copy: "Copiar",
|
|
2167
|
-
edit: "Editar",
|
|
2168
|
-
more: "Más",
|
|
2169
|
-
open: "Abrir"
|
|
2170
|
-
},
|
|
2171
|
-
"es-ES": {
|
|
2172
|
-
copy: "Copiar",
|
|
2173
|
-
edit: "Editar",
|
|
2174
|
-
more: "Más",
|
|
2175
|
-
open: "Abrir"
|
|
2176
|
-
},
|
|
2177
|
-
"es-MX": {
|
|
2178
|
-
copy: "Copiar",
|
|
2179
|
-
edit: "Editar",
|
|
2180
|
-
more: "Más",
|
|
2181
|
-
open: "Abrir"
|
|
2182
|
-
},
|
|
2183
|
-
"fr-FR": {
|
|
2184
|
-
copy: "Copier",
|
|
2185
|
-
edit: "Modifier",
|
|
2186
|
-
more: "Plus",
|
|
2187
|
-
open: "Ouvrir"
|
|
2188
|
-
},
|
|
2189
|
-
"it-IT": {
|
|
2190
|
-
copy: "Copia",
|
|
2191
|
-
edit: "Modifica",
|
|
2192
|
-
more: "Altro",
|
|
2193
|
-
open: "Apri"
|
|
2194
|
-
},
|
|
2195
|
-
"ja-JP": {
|
|
2196
|
-
copy: "コピー",
|
|
2197
|
-
edit: "編集",
|
|
2198
|
-
more: "その他",
|
|
2199
|
-
open: "開く"
|
|
2200
|
-
},
|
|
2201
|
-
"pt-BR": {
|
|
2202
|
-
copy: "Copiar",
|
|
2203
|
-
edit: "Editar",
|
|
2204
|
-
more: "Mais",
|
|
2205
|
-
open: "Abrir"
|
|
2206
|
-
},
|
|
2207
|
-
"zh-CN": {
|
|
2208
|
-
copy: "复制",
|
|
2209
|
-
edit: "编辑",
|
|
2210
|
-
more: "更多",
|
|
2211
|
-
open: "打开"
|
|
2212
|
-
}
|
|
2213
|
-
}, Hs = {
|
|
2214
|
-
i18n: { messages: Vs },
|
|
2215
|
-
name: "data-grid-cell-actions"
|
|
2216
|
-
}, Zs = /* @__PURE__ */ ie({
|
|
2217
|
-
...Hs,
|
|
2218
|
-
props: {
|
|
2219
|
-
/**
|
|
2220
|
-
* Column definitions using 'key' to relate to data object.
|
|
2221
|
-
*/
|
|
2222
|
-
cellActions: {
|
|
2223
|
-
type: [Array, Function],
|
|
2224
|
-
required: !0,
|
|
2225
|
-
validator: (o) => (o == null ? void 0 : o.length) <= 2
|
|
2226
|
-
},
|
|
2227
|
-
/**
|
|
2228
|
-
* The column field key.
|
|
2229
|
-
*/
|
|
2230
|
-
columnKey: {
|
|
2231
|
-
type: String,
|
|
2232
|
-
default: void 0
|
|
2233
|
-
},
|
|
2234
|
-
/**
|
|
2235
|
-
* Disables any opening of the cell actions menus using the down arrow key.
|
|
2236
|
-
*/
|
|
2237
|
-
disableArrowDownOpeningMenu: {
|
|
2238
|
-
type: Boolean,
|
|
2239
|
-
default: !1
|
|
2240
|
-
},
|
|
2241
|
-
/**
|
|
2242
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
2243
|
-
*/
|
|
2244
|
-
hasRightOverflow: {
|
|
2245
|
-
type: Boolean,
|
|
2246
|
-
default: !1
|
|
2247
|
-
},
|
|
2248
|
-
/**
|
|
2249
|
-
* Set to true if the row has a darker background when zebra rows is enabled.
|
|
2250
|
-
*/
|
|
2251
|
-
hasZebraBackground: {
|
|
2252
|
-
type: Boolean,
|
|
2253
|
-
default: !1
|
|
2254
|
-
},
|
|
2255
|
-
/**
|
|
2256
|
-
* Set to true if the row is selected.
|
|
2257
|
-
*/
|
|
2258
|
-
isSelected: {
|
|
2259
|
-
type: Boolean,
|
|
2260
|
-
default: !1
|
|
2261
|
-
},
|
|
2262
|
-
/**
|
|
2263
|
-
* Set to true if the row is highlighted.
|
|
2264
|
-
*/
|
|
2265
|
-
isHighlighted: {
|
|
2266
|
-
type: Boolean,
|
|
2267
|
-
default: !1
|
|
2268
|
-
},
|
|
2269
|
-
/**
|
|
2270
|
-
* Set if set to true will teleport the action menu component
|
|
2271
|
-
*/
|
|
2272
|
-
teleportMenu: {
|
|
2273
|
-
type: Boolean,
|
|
2274
|
-
default: !1
|
|
2275
|
-
},
|
|
2276
|
-
/**
|
|
2277
|
-
* The row data item object.
|
|
2278
|
-
*/
|
|
2279
|
-
rowDataItem: {
|
|
2280
|
-
type: Object,
|
|
2281
|
-
required: !0
|
|
2282
|
-
}
|
|
2283
|
-
},
|
|
2284
|
-
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
2285
|
-
setup(o, { emit: t }) {
|
|
2286
|
-
const n = o, { t: e } = Ce(), s = me(Pe, w(!1)), l = (m) => {
|
|
2287
|
-
if ("text" in m && m.text !== void 0)
|
|
2288
|
-
return m.text;
|
|
2289
|
-
switch (m.variant) {
|
|
2290
|
-
case "copy":
|
|
2291
|
-
return e("copy");
|
|
2292
|
-
case "edit":
|
|
2293
|
-
return e("edit");
|
|
2294
|
-
case "open":
|
|
2295
|
-
return e("open");
|
|
2296
|
-
case "more":
|
|
2297
|
-
return e("more");
|
|
2298
|
-
default:
|
|
2299
|
-
return m.title;
|
|
2300
|
-
}
|
|
2301
|
-
}, a = (m) => {
|
|
2302
|
-
switch (m.variant) {
|
|
2303
|
-
case "copy":
|
|
2304
|
-
return dt;
|
|
2305
|
-
case "edit":
|
|
2306
|
-
return Et;
|
|
2307
|
-
case "open":
|
|
2308
|
-
return ct;
|
|
2309
|
-
default:
|
|
2310
|
-
return;
|
|
2311
|
-
}
|
|
2312
|
-
}, r = C(() => n.columnKey === void 0), d = C(() => ({
|
|
2313
|
-
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": r.value && n.hasRightOverflow,
|
|
2314
|
-
"b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
|
|
2315
|
-
"b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
|
|
2316
|
-
"b-data-grid-cell-actions__background-gradient--selected": n.isSelected
|
|
2317
|
-
})), g = C(() => ({
|
|
2318
|
-
"b-data-grid-cell-actions__actions--with-row-actions": r.value,
|
|
2319
|
-
"b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
|
|
2320
|
-
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
2321
|
-
"b-data-grid-cell-actions__actions--selected": n.isSelected,
|
|
2322
|
-
"b-data-grid-cell-actions__actions--zebra-hover": !r.value && n.hasZebraBackground,
|
|
2323
|
-
"b-data-grid-cell-actions__actions--highlighted-hover": !r.value && n.isHighlighted,
|
|
2324
|
-
"b-data-grid-cell-actions__actions--selected-hover": !r.value && n.isSelected
|
|
2325
|
-
})), p = C(() => !r.value || r.value && n.hasRightOverflow);
|
|
2326
|
-
function v(m) {
|
|
2327
|
-
return typeof m == "function";
|
|
2328
|
-
}
|
|
2329
|
-
const y = C(() => {
|
|
2330
|
-
var O;
|
|
2331
|
-
const m = v(n.cellActions) ? (O = n.cellActions) == null ? void 0 : O.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
2332
|
-
if (s.value && !r.value && m) {
|
|
2333
|
-
const I = [];
|
|
2334
|
-
return m.forEach((_) => {
|
|
2335
|
-
_.menuData ? _.menuData.forEach((i) => {
|
|
2336
|
-
I.push(i);
|
|
2337
|
-
}) : I.push({
|
|
2338
|
-
text: l(_),
|
|
2339
|
-
event: _.event,
|
|
2340
|
-
critical: _.critical,
|
|
2341
|
-
disabled: _.disabled,
|
|
2342
|
-
icon: a(_)
|
|
2343
|
-
});
|
|
2344
|
-
}), [
|
|
2345
|
-
{
|
|
2346
|
-
variant: "more",
|
|
2347
|
-
isShort: !0,
|
|
2348
|
-
iconLeft: rt,
|
|
2349
|
-
menuData: E(I)
|
|
2350
|
-
}
|
|
2351
|
-
];
|
|
2352
|
-
}
|
|
2353
|
-
return !s.value && (m == null ? void 0 : m.length) > 2 && Dt(
|
|
2354
|
-
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
2355
|
-
), m == null ? void 0 : m.slice(0, 2);
|
|
2356
|
-
}), S = C(() => (m, O) => {
|
|
2357
|
-
if (!(!O && m.isShort || O && !m.isShort))
|
|
2358
|
-
switch (m.variant) {
|
|
2359
|
-
case "copy":
|
|
2360
|
-
return e("copy");
|
|
2361
|
-
case "edit":
|
|
2362
|
-
return e("edit");
|
|
2363
|
-
case "open":
|
|
2364
|
-
return e("open");
|
|
2365
|
-
case "more":
|
|
2366
|
-
return e("more");
|
|
2367
|
-
default:
|
|
2368
|
-
return m.title;
|
|
2369
|
-
}
|
|
2370
|
-
}), u = (m) => (m == null ? void 0 : m.event) !== void 0 ? {
|
|
2371
|
-
click: (O) => {
|
|
2372
|
-
O.stopPropagation(), m.event(n.rowDataItem, n.columnKey);
|
|
2373
|
-
}
|
|
2374
|
-
} : {}, b = (m) => ({
|
|
2375
|
-
...m,
|
|
2376
|
-
handler: () => {
|
|
2377
|
-
m != null && m.handler && typeof m.handler == "function" && (m == null || m.handler()), m != null && m.event && typeof m.event == "function" && (m == null || m.event(n.rowDataItem, n.columnKey));
|
|
2378
|
-
}
|
|
2379
|
-
}), E = (m) => m.map((O) => {
|
|
2380
|
-
const I = O;
|
|
2381
|
-
return I != null && I.items && (I.items = E(I.items)), { ...b(I) };
|
|
2382
|
-
});
|
|
2383
|
-
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: s, getMenuItemText: l, getMenuItemIcon: a, isRowActions: r, conditionalCellActionsBackgroundGradientClasses: d, conditionalCellActionsClasses: g, showGradientElement: p, isBentoColumnCellActionsByCellValueDataFn: v, computedCellActions: y, getButtonTitle: S, generateButtonEvents: u, generateMenuEvents: b, transformMenuEvents: E, getCopyText: (m) => {
|
|
2384
|
-
var O, I;
|
|
2385
|
-
return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (I = (O = n.rowDataItem) == null ? void 0 : O[n.columnKey]) == null ? void 0 : I.toString() : "";
|
|
2386
|
-
}, shouldShowMenuIconLeft: (m) => m.iconLeft || (m == null ? void 0 : m.variant) === "more", BentoButton: Pt, BentoMenu: zt, Copy: dt, vBentoTooltipDirective: Nt, Edit1Icon: Et, ExternalLinkIcon: ct, OptionsVerticalIcon: rt };
|
|
2387
|
-
}
|
|
2388
|
-
});
|
|
2389
|
-
var js = function() {
|
|
2390
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2391
|
-
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(s, l) {
|
|
2392
|
-
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [s.menuData ? n(e.BentoMenu, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[button.tooltipPosition]", value: s.tooltipText, expression: "button.tooltipText", arg: s.tooltipPosition }], attrs: { data: e.transformMenuEvents(s.menuData), button: {
|
|
2393
|
-
condensed: !0,
|
|
2394
|
-
variant: "secondary",
|
|
2395
|
-
disabled: s.disabled
|
|
2396
|
-
}, "disable-arrow-down-opening-menu": t.disableArrowDownOpeningMenu, teleport: t.teleportMenu }, on: { open: function(a) {
|
|
2397
|
-
return e.emit("menu-open");
|
|
2398
|
-
}, close: function(a) {
|
|
2399
|
-
return e.emit("menu-close");
|
|
2400
|
-
}, "menu-item-click": function(a) {
|
|
2401
|
-
return e.emit("menu-item-click");
|
|
2402
|
-
} }, scopedSlots: t._u([e.shouldShowMenuIconLeft(s) ? { key: "iconLeft", fn: function() {
|
|
2403
|
-
return [(s == null ? void 0 : s.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(s, !0) } }) : n(s.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(s, !0) } })];
|
|
2404
|
-
}, proxy: !0 } : null, s != null && s.isShort ? null : { key: "default", fn: function() {
|
|
2405
|
-
return [t._v(" " + t._s(e.getButtonTitle(s)) + " ")];
|
|
2406
|
-
}, proxy: !0 }], null, !0) }) : s.variant === "copy" ? n(e.Copy, { attrs: { text: e.getCopyText(s), "button-text": e.getButtonTitle(s), button: {
|
|
2407
|
-
condensed: !0,
|
|
2408
|
-
variant: "secondary"
|
|
2409
|
-
} } }) : n(e.BentoButton, t._g({ directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[button.tooltipPosition]", value: s.tooltipText, expression: "button.tooltipText", arg: s.tooltipPosition }], attrs: { condensed: "", variant: "secondary", critical: s.critical, disabled: s.disabled, link: s.link }, scopedSlots: t._u([s.iconLeft || s.variant === "edit" ? { key: "iconLeft", fn: function() {
|
|
2410
|
-
return [(s == null ? void 0 : s.variant) === "edit" ? n(e.Edit1Icon, { attrs: { "svg-title": e.getButtonTitle(s, !0) } }) : n(s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
2411
|
-
}, proxy: !0 } : null, s != null && s.isShort ? null : { key: "default", fn: function() {
|
|
2412
|
-
return [t._v(" " + t._s(e.getButtonTitle(s)) + " ")];
|
|
2413
|
-
}, proxy: !0 }, s.iconRight || s.variant === "open" ? { key: "iconRight", fn: function() {
|
|
2414
|
-
return [(s == null ? void 0 : s.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(s, !0) } }) : n(s.iconRight, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
2415
|
-
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(s)))], 1);
|
|
2416
|
-
}), 0)])]);
|
|
2417
|
-
}, qs = [], Ks = /* @__PURE__ */ X(
|
|
2418
|
-
Zs,
|
|
2419
|
-
js,
|
|
2420
|
-
qs,
|
|
2421
|
-
!1,
|
|
2422
|
-
null,
|
|
2423
|
-
"2fdee11b"
|
|
2424
|
-
);
|
|
2425
|
-
const Gt = Ks.exports;
|
|
2426
|
-
var Q = /* @__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))(Q || {});
|
|
2427
|
-
const Ys = {
|
|
2428
|
-
"de-DE": {
|
|
2429
|
-
collapseNestedContent: "Verschachtelte Inhalte ausblenden",
|
|
2430
|
-
expandNestedContent: "Verschachtelten Inhalt anzeigen",
|
|
2431
|
-
selectRow: "Zeile auswählen"
|
|
2432
|
-
},
|
|
2433
|
-
"en-GB": {
|
|
2434
|
-
collapseNestedContent: "Collapse nested content",
|
|
2435
|
-
expandNestedContent: "Expand nested content",
|
|
2436
|
-
selectRow: "Select row"
|
|
2437
|
-
},
|
|
2438
|
-
"en-US": {
|
|
2439
|
-
collapseNestedContent: "Collapse nested content",
|
|
2440
|
-
expandNestedContent: "Expand nested content",
|
|
2441
|
-
selectRow: "Select row"
|
|
2442
|
-
},
|
|
2443
|
-
"es-419": {
|
|
2444
|
-
collapseNestedContent: "Ocultar contenido anidado",
|
|
2445
|
-
expandNestedContent: "Expandir contenido anidado",
|
|
2446
|
-
selectRow: "Seleccionar fila"
|
|
2447
|
-
},
|
|
2448
|
-
"es-ES": {
|
|
2449
|
-
collapseNestedContent: "Colapsar contenido anidado",
|
|
2450
|
-
expandNestedContent: "Ampliar contenido anidado",
|
|
2451
|
-
selectRow: "Seleccionar fila"
|
|
2452
|
-
},
|
|
2453
|
-
"es-MX": {
|
|
2454
|
-
collapseNestedContent: "Colapsar contenido anidado",
|
|
2455
|
-
expandNestedContent: "Expandir contenido anidado",
|
|
2456
|
-
selectRow: "Seleccionar fila"
|
|
2457
|
-
},
|
|
2458
|
-
"fr-FR": {
|
|
2459
|
-
collapseNestedContent: "Réduire le contenu imbriqué",
|
|
2460
|
-
expandNestedContent: "Développer le contenu imbriqué",
|
|
2461
|
-
selectRow: "Sélectionner une ligne"
|
|
2462
|
-
},
|
|
2463
|
-
"it-IT": {
|
|
2464
|
-
collapseNestedContent: "Comprimi i contenuti annidati",
|
|
2465
|
-
expandNestedContent: "Espandi i contenuti annidati",
|
|
2466
|
-
selectRow: "Seleziona riga"
|
|
2467
|
-
},
|
|
2468
|
-
"ja-JP": {
|
|
2469
|
-
collapseNestedContent: "ネストされたコンテンツを折りたたむ",
|
|
2470
|
-
expandNestedContent: "ネストされたコンテンツを展開",
|
|
2471
|
-
selectRow: "行を選択"
|
|
2472
|
-
},
|
|
2473
|
-
"pt-BR": {
|
|
2474
|
-
collapseNestedContent: "Recolher conteúdo aninhado",
|
|
2475
|
-
expandNestedContent: "Expandir conteúdo aninhado",
|
|
2476
|
-
selectRow: "Selecionar linha"
|
|
2477
|
-
},
|
|
2478
|
-
"zh-CN": {
|
|
2479
|
-
collapseNestedContent: "折叠嵌套内容",
|
|
2480
|
-
expandNestedContent: "展开嵌套内容",
|
|
2481
|
-
selectRow: "选择行"
|
|
2482
|
-
}
|
|
2483
|
-
}, Xs = {
|
|
2484
|
-
i18n: { messages: Ys },
|
|
2485
|
-
name: "data-grid-cell"
|
|
2486
|
-
}, Js = /* @__PURE__ */ ie({
|
|
2487
|
-
...Xs,
|
|
2488
|
-
props: {
|
|
2489
|
-
draggingEventsForRowCell: {
|
|
2490
|
-
type: Function,
|
|
2491
|
-
required: !0
|
|
2492
|
-
},
|
|
2493
|
-
/**
|
|
2494
|
-
* The columns sets including
|
|
2495
|
-
*/
|
|
2496
|
-
columnSets: {
|
|
2497
|
-
type: Array,
|
|
2498
|
-
required: !0
|
|
2499
|
-
},
|
|
2500
|
-
/**
|
|
2501
|
-
* The columns set we are iterating over
|
|
2502
|
-
*/
|
|
2503
|
-
column: {
|
|
2504
|
-
type: Object,
|
|
2505
|
-
required: !0
|
|
2506
|
-
},
|
|
2507
|
-
colIndex: {
|
|
2508
|
-
type: Number,
|
|
2509
|
-
required: !0
|
|
2510
|
-
},
|
|
2511
|
-
columnSetIndex: {
|
|
2512
|
-
type: Number,
|
|
2513
|
-
required: !0
|
|
2514
|
-
},
|
|
2515
|
-
/**
|
|
2516
|
-
* Sets the row cells to the condensed padding state.
|
|
2517
|
-
*/
|
|
2518
|
-
condensed: {
|
|
2519
|
-
type: Boolean,
|
|
2520
|
-
default: !1
|
|
2521
|
-
},
|
|
2522
|
-
/**
|
|
2523
|
-
* Columns being dragged, contains dragging column and a target column
|
|
2524
|
-
*/
|
|
2525
|
-
draggingColumns: {
|
|
2526
|
-
type: Object,
|
|
2527
|
-
default: void 0
|
|
2528
|
-
},
|
|
2529
|
-
/**
|
|
2530
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2531
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2532
|
-
*/
|
|
2533
|
-
getDataItemId: {
|
|
2534
|
-
type: Function,
|
|
2535
|
-
default: (o) => o.id
|
|
2536
|
-
},
|
|
2537
|
-
/**
|
|
2538
|
-
* Set to true if the cell has a darker background when zebra rows is enabled.
|
|
2539
|
-
*/
|
|
2540
|
-
hasZebraBackground: {
|
|
2541
|
-
type: Boolean,
|
|
2542
|
-
default: !1
|
|
2543
|
-
},
|
|
2544
|
-
/**
|
|
2545
|
-
* Set to true if the row is selected.
|
|
2546
|
-
*/
|
|
2547
|
-
isSelected: {
|
|
2548
|
-
type: Boolean,
|
|
2549
|
-
default: !1
|
|
2550
|
-
},
|
|
2551
|
-
/**
|
|
2552
|
-
* Set to true if the row is highlighted.
|
|
2553
|
-
*/
|
|
2554
|
-
isHighlighted: {
|
|
2555
|
-
type: Boolean,
|
|
2556
|
-
default: !1
|
|
2557
|
-
},
|
|
2558
|
-
/**
|
|
2559
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2560
|
-
*/
|
|
2561
|
-
hoveredOverColumnState: {
|
|
2562
|
-
type: Object,
|
|
2563
|
-
required: !0
|
|
2564
|
-
},
|
|
2565
|
-
/**
|
|
2566
|
-
* A customisable method to determine if a row is not selectable.
|
|
2567
|
-
* The default is that every row is selectable.
|
|
2568
|
-
*/
|
|
2569
|
-
isDataItemDisabled: {
|
|
2570
|
-
type: Function,
|
|
2571
|
-
default: () => !1
|
|
2572
|
-
},
|
|
2573
|
-
isMeasuringColumnWidths: {
|
|
2574
|
-
type: Boolean,
|
|
2575
|
-
default: !1
|
|
2576
|
-
},
|
|
2577
|
-
/**
|
|
2578
|
-
* Determines if the nested content is visible.
|
|
2579
|
-
*/
|
|
2580
|
-
isNestedContentExpanded: {
|
|
2581
|
-
type: Boolean,
|
|
2582
|
-
default: !1
|
|
2583
|
-
},
|
|
2584
|
-
/**
|
|
2585
|
-
* Determines if the nest content slot is enabled for this data row.
|
|
2586
|
-
*/
|
|
2587
|
-
nestedContent: {
|
|
2588
|
-
type: Boolean,
|
|
2589
|
-
default: !1
|
|
2590
|
-
},
|
|
2591
|
-
/**
|
|
2592
|
-
* The IDs of the rows this cell controls to show / hide them.
|
|
2593
|
-
*/
|
|
2594
|
-
nestedRowsElementIds: {
|
|
2595
|
-
type: Array,
|
|
2596
|
-
default: () => []
|
|
2597
|
-
},
|
|
2598
|
-
/**
|
|
2599
|
-
* The row data object
|
|
2600
|
-
*/
|
|
2601
|
-
rowData: {
|
|
2602
|
-
type: Object,
|
|
2603
|
-
required: !0
|
|
2604
|
-
},
|
|
2605
|
-
rowIndex: {
|
|
2606
|
-
type: Number,
|
|
2607
|
-
required: !0
|
|
2608
|
-
},
|
|
2609
|
-
/**
|
|
2610
|
-
* The row selection checkbox indeterminate state.
|
|
2611
|
-
*/
|
|
2612
|
-
selectionIsIndeterminate: {
|
|
2613
|
-
type: Boolean,
|
|
2614
|
-
default: !1
|
|
2615
|
-
},
|
|
2616
|
-
/**
|
|
2617
|
-
* Determines if the row selection is enabled.
|
|
2618
|
-
*/
|
|
2619
|
-
selectable: {
|
|
2620
|
-
type: Boolean,
|
|
2621
|
-
default: !1
|
|
2622
|
-
},
|
|
2623
|
-
selectedItems: {
|
|
2624
|
-
type: Array,
|
|
2625
|
-
required: !0
|
|
2626
|
-
}
|
|
2627
|
-
},
|
|
2628
|
-
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
2629
|
-
setup(o, { expose: t, emit: n }) {
|
|
2630
|
-
const e = o, s = Ve(), l = Ze(s), { t: a } = Ce(), r = w(null), d = w(null), g = w(!1), {
|
|
2631
|
-
shouldShowCellActions: p,
|
|
2632
|
-
isFocused: v,
|
|
2633
|
-
focusableItems: y,
|
|
2634
|
-
childrenMenuContainerElements: S,
|
|
2635
|
-
hasInteractiveElFocusedInside: u,
|
|
2636
|
-
onMenuClose: b,
|
|
2637
|
-
hideCellActionsIfLeft: E,
|
|
2638
|
-
handleFocus: N,
|
|
2639
|
-
handleFocusout: R,
|
|
2640
|
-
handleKeydown: m,
|
|
2641
|
-
handleCellActionsFocus: O,
|
|
2642
|
-
handleCellActionsFocusout: I
|
|
2643
|
-
} = Us({ gridcellRef: r }), _ = C(() => {
|
|
2644
|
-
var L;
|
|
2645
|
-
return !!((L = e.rowData) != null && L[e.column.field]);
|
|
2646
|
-
}), i = C(
|
|
2647
|
-
() => {
|
|
2648
|
-
var L;
|
|
2649
|
-
return e.column.field === le && ((L = e.nestedRowsElementIds) == null ? void 0 : L.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
2650
|
-
}
|
|
2651
|
-
), f = C(
|
|
2652
|
-
() => e.column.field === le && !e.selectable && !e.nestedContent
|
|
2653
|
-
), A = C(() => !f.value && (q(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !g.value || v.value) ? "0" : (e.column.field === le, "-1")), D = (L, k) => (L == null ? void 0 : L.overflow) === $e.ELLIPSIS ? `${k}` : void 0, P = (L) => L ?? "-", x = (L) => e.columnSets.slice(0, L).reduce((k, { columnSet: J }) => k + J.length, 0), U = (L, k) => L + x(k), q = (L, k, J) => x() * L + U(k, J), W = (L) => {
|
|
2654
|
-
const k = {
|
|
2655
|
-
...e.draggingEventsForRowCell(L),
|
|
2656
|
-
focus: async () => {
|
|
2657
|
-
g.value = !0, await N(() => {
|
|
2658
|
-
n("cell-focus", {
|
|
2659
|
-
rowData: e.rowData,
|
|
2660
|
-
column: e.column,
|
|
2661
|
-
rowIndex: e.rowIndex,
|
|
2662
|
-
colIndex: U(e.colIndex, e.columnSetIndex)
|
|
2663
|
-
});
|
|
2664
|
-
});
|
|
2665
|
-
},
|
|
2666
|
-
focusout: R,
|
|
2667
|
-
keydown: m
|
|
2668
|
-
}, J = { ...k };
|
|
2669
|
-
return L.frozen && (J.keyup = (c) => n("on-frozen-columns-key-press", c), J.keydown = (c) => {
|
|
2670
|
-
k.keydown(c), n("on-frozen-columns-key-press", c);
|
|
2671
|
-
}), L.cellActions && (J.mouseenter = () => {
|
|
2672
|
-
p.value = !0;
|
|
2673
|
-
}, J.mouseleave = (c) => {
|
|
2674
|
-
E(c == null ? void 0 : c.relatedTarget);
|
|
2675
|
-
}, J.focus = async (c) => {
|
|
2676
|
-
await O(k.focus, c);
|
|
2677
|
-
}, J.focusout = (c) => {
|
|
2678
|
-
I(k.focusout, c);
|
|
2679
|
-
}), J;
|
|
2680
|
-
};
|
|
2681
|
-
Te(() => {
|
|
2682
|
-
y.value = ce(r.value);
|
|
2683
|
-
});
|
|
2684
|
-
const G = () => {
|
|
2685
|
-
n("nested-content-toggled");
|
|
2686
|
-
};
|
|
2687
|
-
ae(
|
|
2688
|
-
() => p.value,
|
|
2689
|
-
async () => {
|
|
2690
|
-
p.value === !0 ? (n("cell-hovered", e.rowIndex), await ee(), y.value = ce(r.value), v.value && xe(y.value)) : n("cell-hovered", -1);
|
|
2691
|
-
}
|
|
2692
|
-
);
|
|
2693
|
-
const $ = (L) => {
|
|
2694
|
-
S.value.push(L);
|
|
2695
|
-
}, B = (L) => {
|
|
2696
|
-
r.value.contains(L == null ? void 0 : L.relatedTarget) || (p.value = !1);
|
|
2697
|
-
};
|
|
2698
|
-
Ne(no, {
|
|
2699
|
-
registerMenuContainerElement: $,
|
|
2700
|
-
menuMouseLeave: B
|
|
2701
|
-
});
|
|
2702
|
-
const oe = me($t, w(!1)), _e = me(
|
|
2703
|
-
Oe,
|
|
2704
|
-
C(() => !1)
|
|
2705
|
-
), ve = me(Pe, w(!1)), he = (L) => {
|
|
2706
|
-
var k, J, c, z, Z, te, re;
|
|
2707
|
-
return {
|
|
2708
|
-
[`b-data-grid-cell--${Q.COLUMN_HOVERED}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
2709
|
-
[`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
2710
|
-
[`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (L == null ? void 0 : L.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
2711
|
-
[`b-data-grid-cell--${Q.PADDING_LEFT_UNSET}`]: ((k = L == null ? void 0 : L.padding) == null ? void 0 : k.left) === !1,
|
|
2712
|
-
[`b-data-grid-cell--${Q.PADDING_RIGHT_UNSET}`]: ((J = L == null ? void 0 : L.padding) == null ? void 0 : J.right) === !1,
|
|
2713
|
-
[`b-data-grid-cell--${Q.NUMERIC}`]: L == null ? void 0 : L.numeric,
|
|
2714
|
-
[`b-data-grid-cell--${Q.CONDENSED}`]: e.condensed,
|
|
2715
|
-
[`b-data-grid-cell--${Q.OVERFLOW_ELLIPSIS}`]: (L == null ? void 0 : L.overflow) === $e.ELLIPSIS,
|
|
2716
|
-
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING}`]: ((c = e.draggingColumns.dragging) == null ? void 0 : c.field) === L.field,
|
|
2717
|
-
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((z = e.draggingColumns.target) == null ? void 0 : z.field) === L.field && ((Z = e.draggingColumns) == null ? void 0 : Z.dragToLeft),
|
|
2718
|
-
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((te = e.draggingColumns.target) == null ? void 0 : te.field) === L.field && !((re = e.draggingColumns) != null && re.dragToLeft),
|
|
2719
|
-
[`b-data-grid-cell--${Q.FROZEN}`]: L == null ? void 0 : L.frozen,
|
|
2720
|
-
[`b-data-grid-cell--${Q.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
2721
|
-
[`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && L.field === le,
|
|
2722
|
-
[`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && L.field === le,
|
|
2723
|
-
[`b-data-grid-cell--${Q.ACTION_COL_SELECTION_ENABLED}`]: L.field === le && e.selectable,
|
|
2724
|
-
[`b-data-grid-cell--${Q.SLASHED_ZERO}`]: oe.value,
|
|
2725
|
-
"b-data-grid-cell--small-container": _e.value
|
|
2726
|
-
};
|
|
2727
|
-
}, de = C(() => ({
|
|
2728
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": u.value
|
|
2729
|
-
}));
|
|
2730
|
-
return t({
|
|
2731
|
-
gridcellRef: r
|
|
2732
|
-
}), { __sfc: !0, slots: s, hasSlot: l, t: a, props: e, emit: n, gridcellRef: r, cellActionsRef: d, hasEverBeenFocused: g, shouldShowCellActions: p, isFocused: v, focusableItems: y, childrenMenuContainerElements: S, hasInteractiveElFocusedInside: u, onMenuClose: b, hideCellActionsIfLeft: E, handleFocus: N, handleFocusout: R, handleKeydown: m, handleCellActionsFocus: O, handleCellActionsFocusout: I, hasRowData: _, controlledNestedRowElementIds: i, ariaHidden: f, tabIndex: A, conditionalTitleAttribute: D, getRowData: P, sumColumnAmountsInColumnSets: x, getColIndex: U, getCellIndex: q, getGridcellEvents: W, toggleNestedContent: G, registerMenuContainerElement: $, menuMouseLeave: B, hasSlashedZero: oe, isSmallContainer: _e, isTouchDevice: ve, conditionalRowCellClasses: he, computedCellContentClasses: de, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: le, BentoCheckbox: xt, BentoTypography: ye, BentoToggleButton: je, DataGridCellActions: Gt, ChevronDownIcon: oo, ChevronUpIcon: so };
|
|
2733
|
-
}
|
|
2734
|
-
});
|
|
2735
|
-
var Qs = function() {
|
|
2736
|
-
var s;
|
|
2737
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2738
|
-
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
2739
|
-
width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
|
|
2740
|
-
}, 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) {
|
|
2741
|
-
return t.$emit("select-row", l);
|
|
2742
|
-
} } })] : 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() {
|
|
2743
|
-
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") } })];
|
|
2744
|
-
}, 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() {
|
|
2745
|
-
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])))])];
|
|
2746
|
-
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((s = t.column.cellActions) == null ? void 0 : s.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);
|
|
2747
|
-
}, el = [], tl = /* @__PURE__ */ X(
|
|
2748
|
-
Js,
|
|
2749
|
-
Qs,
|
|
2750
|
-
el,
|
|
2751
|
-
!1,
|
|
2752
|
-
null,
|
|
2753
|
-
"ba645d13"
|
|
2754
|
-
);
|
|
2755
|
-
const nl = tl.exports, ol = {
|
|
2756
|
-
name: "data-grid-row"
|
|
2757
|
-
}, sl = /* @__PURE__ */ ie({
|
|
2758
|
-
...ol,
|
|
2759
|
-
props: {
|
|
2760
|
-
/**
|
|
2761
|
-
* Row actions property that generates which button to show in row actions area
|
|
2762
|
-
*/
|
|
2763
|
-
rowActions: {
|
|
2764
|
-
type: [Function, Array],
|
|
2765
|
-
default: void 0
|
|
2766
|
-
},
|
|
2767
|
-
/**
|
|
2768
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2769
|
-
*/
|
|
2770
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
2771
|
-
/**
|
|
2772
|
-
* The columns sets including
|
|
2773
|
-
*/
|
|
2774
|
-
columnSets: {
|
|
2775
|
-
type: Array,
|
|
2776
|
-
required: !0
|
|
2777
|
-
},
|
|
2778
|
-
/**
|
|
2779
|
-
* Sets the row cells to the condensed padding state.
|
|
2780
|
-
*/
|
|
2781
|
-
condensed: {
|
|
2782
|
-
type: Boolean,
|
|
2783
|
-
default: !1
|
|
2784
|
-
},
|
|
2785
|
-
/**
|
|
2786
|
-
* Columns being dragged, contains dragging column and a target column
|
|
2787
|
-
*/
|
|
2788
|
-
draggingColumns: {
|
|
2789
|
-
type: Object,
|
|
2790
|
-
default: void 0
|
|
2791
|
-
},
|
|
2792
|
-
/**
|
|
2793
|
-
* Dragging event handlers for each row cell
|
|
2794
|
-
*/
|
|
2795
|
-
draggingEventsForRowCell: {
|
|
2796
|
-
type: Function,
|
|
2797
|
-
required: !0
|
|
2798
|
-
},
|
|
2799
|
-
/**
|
|
2800
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2801
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2802
|
-
*/
|
|
2803
|
-
getDataItemId: {
|
|
2804
|
-
type: Function,
|
|
2805
|
-
default: (o) => o.id
|
|
2806
|
-
},
|
|
2807
|
-
/**
|
|
2808
|
-
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
2809
|
-
*/
|
|
2810
|
-
hasLeftOverflow: {
|
|
2811
|
-
type: Boolean,
|
|
2812
|
-
default: !1
|
|
2813
|
-
},
|
|
2814
|
-
/**
|
|
2815
|
-
* Enables the nested content slot functionality.
|
|
2816
|
-
*/
|
|
2817
|
-
hasNestedContent: {
|
|
2818
|
-
type: Boolean,
|
|
2819
|
-
default: !1
|
|
2820
|
-
},
|
|
2821
|
-
/**
|
|
2822
|
-
* Enables the nested content slot functionality.
|
|
2823
|
-
*/
|
|
2824
|
-
hasNestedRows: {
|
|
2825
|
-
type: Boolean,
|
|
2826
|
-
default: !1
|
|
2827
|
-
},
|
|
2828
|
-
/**
|
|
2829
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
2830
|
-
*/
|
|
2831
|
-
hasRightOverflow: {
|
|
2832
|
-
type: Boolean,
|
|
2833
|
-
default: !1
|
|
2834
|
-
},
|
|
2835
|
-
/**
|
|
2836
|
-
* Highlighted row IDs.
|
|
2837
|
-
*/
|
|
2838
|
-
highlightedRows: {
|
|
2839
|
-
type: Array,
|
|
2840
|
-
default: () => []
|
|
2841
|
-
},
|
|
2842
|
-
/**
|
|
2843
|
-
* The row index of a currently hovered row.
|
|
2844
|
-
*/
|
|
2845
|
-
hoveredRowIndex: {
|
|
2846
|
-
type: Number,
|
|
2847
|
-
default: -1
|
|
2848
|
-
},
|
|
2849
|
-
/**
|
|
2850
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2851
|
-
*/
|
|
2852
|
-
hoveredOverColumnState: {
|
|
2853
|
-
type: Object,
|
|
2854
|
-
required: !0
|
|
2855
|
-
},
|
|
2856
|
-
/**
|
|
2857
|
-
* A customisable method to determine if a row is not selectable.
|
|
2858
|
-
* The default is that every row is selectable.
|
|
2859
|
-
*/
|
|
2860
|
-
isDataItemDisabled: {
|
|
2861
|
-
type: Function,
|
|
2862
|
-
default: () => !1
|
|
2863
|
-
},
|
|
2864
|
-
/**
|
|
2865
|
-
* If the row is of an even number.
|
|
2866
|
-
* Rows are 0th based index e.g. index 0 is an odd-numbered row.
|
|
2867
|
-
*/
|
|
2868
|
-
isRowEven: {
|
|
2869
|
-
type: Boolean,
|
|
2870
|
-
default: !1
|
|
2871
|
-
},
|
|
2872
|
-
/**
|
|
2873
|
-
* If the row is the last child in it's parent container.
|
|
2874
|
-
*/
|
|
2875
|
-
isRowLastChild: {
|
|
2876
|
-
type: Boolean,
|
|
2877
|
-
default: !1
|
|
2878
|
-
},
|
|
2879
|
-
/**
|
|
2880
|
-
* If columns are being measured for the autoWidth functionality.
|
|
2881
|
-
*/
|
|
2882
|
-
isMeasuringColumnWidths: {
|
|
2883
|
-
type: Boolean,
|
|
2884
|
-
default: !1
|
|
2885
|
-
},
|
|
2886
|
-
/**
|
|
2887
|
-
* Determines if this row is nested inside another row.
|
|
2888
|
-
*/
|
|
2889
|
-
isNestedRow: {
|
|
2890
|
-
type: Boolean,
|
|
2891
|
-
default: !1
|
|
2892
|
-
},
|
|
2893
|
-
/**
|
|
2894
|
-
* The maximum width of the row actions in all rows
|
|
2895
|
-
*/
|
|
2896
|
-
rowActionsMaximumWidth: {
|
|
2897
|
-
type: Number,
|
|
2898
|
-
default: 0
|
|
2899
|
-
},
|
|
2900
|
-
/**
|
|
2901
|
-
* The row data object
|
|
2902
|
-
*/
|
|
2903
|
-
rowData: {
|
|
2904
|
-
type: Object,
|
|
2905
|
-
required: !0
|
|
2906
|
-
},
|
|
2907
|
-
/**
|
|
2908
|
-
* The row index.
|
|
2909
|
-
*/
|
|
2910
|
-
rowIndex: {
|
|
2911
|
-
type: Number,
|
|
2912
|
-
required: !0
|
|
2913
|
-
},
|
|
2914
|
-
/**
|
|
2915
|
-
* The row ID to be using for the ID attribute.
|
|
2916
|
-
*/
|
|
2917
|
-
rowId: {
|
|
2918
|
-
type: Number,
|
|
2919
|
-
default: void 0
|
|
2920
|
-
},
|
|
2921
|
-
/**
|
|
2922
|
-
* The number of rows that this row is within.
|
|
2923
|
-
*/
|
|
2924
|
-
rowSetSize: {
|
|
2925
|
-
type: Number,
|
|
2926
|
-
default: 0
|
|
2927
|
-
},
|
|
2928
|
-
/**
|
|
2929
|
-
* Determines whether to render frozen seperator on the row.
|
|
2930
|
-
*/
|
|
2931
|
-
showFrozenColumnsSeparator: {
|
|
2932
|
-
type: Boolean,
|
|
2933
|
-
default: !1
|
|
2934
|
-
},
|
|
2935
|
-
/**
|
|
2936
|
-
* Determines if the row selection is enabled.
|
|
2937
|
-
*/
|
|
2938
|
-
selectable: {
|
|
2939
|
-
type: Boolean,
|
|
2940
|
-
default: !1
|
|
2941
|
-
},
|
|
2942
|
-
/**
|
|
2943
|
-
* The array of IDs for the selected rows.
|
|
2944
|
-
*/
|
|
2945
|
-
selectedItems: {
|
|
2946
|
-
type: Array,
|
|
2947
|
-
required: !0
|
|
2948
|
-
},
|
|
2949
|
-
/**
|
|
2950
|
-
* Enables / Disables the nested-content slot
|
|
2951
|
-
*/
|
|
2952
|
-
shouldShowNestedContent: {
|
|
2953
|
-
type: Function,
|
|
2954
|
-
default: (o) => !0
|
|
2955
|
-
},
|
|
2956
|
-
/**
|
|
2957
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2958
|
-
*/
|
|
2959
|
-
shouldShowNestedRows: {
|
|
2960
|
-
type: Function,
|
|
2961
|
-
default: (o) => !0
|
|
2962
|
-
}
|
|
2963
|
-
},
|
|
2964
|
-
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2965
|
-
setup(o, { expose: t, emit: n }) {
|
|
2966
|
-
const e = o, s = Ve(), l = Ze(s), a = (h, T) => !h || !T ? !1 : !!(T.compareDocumentPosition(h) & Node.DOCUMENT_POSITION_FOLLOWING), r = w({}), d = w(!1), g = w(), p = w(), v = w([]), y = Me("nested-content-slot"), S = w(!1), u = w(!1), b = w(), E = () => {
|
|
2967
|
-
const h = p.value;
|
|
2968
|
-
return Array.isArray(h) ? h[0] : h;
|
|
2969
|
-
};
|
|
2970
|
-
Te(() => {
|
|
2971
|
-
const h = E();
|
|
2972
|
-
h && (b.value = ce(h));
|
|
2973
|
-
});
|
|
2974
|
-
const N = C(() => e.shouldShowNestedRows(e.rowData)), R = C(
|
|
2975
|
-
() => {
|
|
2976
|
-
var h, T;
|
|
2977
|
-
return !e.isNestedRow && e.hasNestedRows && N.value && ((T = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : T.length) > 0;
|
|
2978
|
-
}
|
|
2979
|
-
), m = C(
|
|
2980
|
-
() => {
|
|
2981
|
-
var h, T;
|
|
2982
|
-
return !e.isNestedRow && e.hasNestedRows && N.value && (((h = e.rowData) == null ? void 0 : h.children) === void 0 || ((T = e == null ? void 0 : e.rowData) == null ? void 0 : T.children.length) === 0);
|
|
2983
|
-
}
|
|
2984
|
-
), O = C(
|
|
2985
|
-
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && N.value && !e.isNestedRow
|
|
2986
|
-
), I = C(() => {
|
|
2987
|
-
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2988
|
-
const h = d.value.toString();
|
|
2989
|
-
return {
|
|
2990
|
-
"aria-expanded": O.value ? h : void 0,
|
|
2991
|
-
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2992
|
-
"aria-posinset": e.rowIndex + 1,
|
|
2993
|
-
"aria-setsize": e.rowSetSize
|
|
2994
|
-
};
|
|
2995
|
-
}
|
|
2996
|
-
return { "aria-rowindex": e.rowIndex + 1 };
|
|
2997
|
-
}), _ = C(() => {
|
|
2998
|
-
if (m.value)
|
|
2999
|
-
return {
|
|
3000
|
-
"aria-busy": "true",
|
|
3001
|
-
"aria-live": "polite"
|
|
3002
|
-
};
|
|
3003
|
-
if (!(R.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
3004
|
-
return {
|
|
3005
|
-
"aria-level": e.isNestedRow ? "3" : "2",
|
|
3006
|
-
"aria-posinset": "1",
|
|
3007
|
-
"aria-setsize": "1",
|
|
3008
|
-
id: y,
|
|
3009
|
-
role: "row",
|
|
3010
|
-
tabindex: "-1"
|
|
3011
|
-
};
|
|
3012
|
-
}), i = C(() => {
|
|
3013
|
-
var h, T;
|
|
3014
|
-
return R.value ? (T = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : T.reduce((H, ne, V) => (H[V] = Me("nested-row"), H), {}) : [];
|
|
3015
|
-
}), f = C(() => {
|
|
3016
|
-
var h;
|
|
3017
|
-
if (d.value) {
|
|
3018
|
-
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
3019
|
-
return [y];
|
|
3020
|
-
if (R.value && ((h = Object.keys(i.value)) == null ? void 0 : h.length) > 0) {
|
|
3021
|
-
const T = Object.values(i.value);
|
|
3022
|
-
if ((T == null ? void 0 : T.length) > 0)
|
|
3023
|
-
return T;
|
|
3024
|
-
}
|
|
3025
|
-
return [];
|
|
3026
|
-
}
|
|
3027
|
-
}), A = C(() => {
|
|
3028
|
-
var T, H;
|
|
3029
|
-
const h = (H = (T = e.rowData) == null ? void 0 : T.children) == null ? void 0 : H.map((ne) => e.getDataItemId(ne));
|
|
3030
|
-
if ((h == null ? void 0 : h.length) > 0) {
|
|
3031
|
-
const ne = h.every((ue) => {
|
|
3032
|
-
var Se;
|
|
3033
|
-
return (Se = e == null ? void 0 : e.selectedItems) == null ? void 0 : Se.includes(ue);
|
|
3034
|
-
}), V = h.some((ue) => {
|
|
3035
|
-
var Se;
|
|
3036
|
-
return (Se = e == null ? void 0 : e.selectedItems) == null ? void 0 : Se.includes(ue);
|
|
3037
|
-
});
|
|
3038
|
-
return !ne && V;
|
|
3039
|
-
}
|
|
3040
|
-
return !1;
|
|
3041
|
-
}), D = (h, T) => {
|
|
3042
|
-
const H = h;
|
|
3043
|
-
h !== null && (H != null && H.gridcellRef) && (r.value[T] = H.gridcellRef);
|
|
3044
|
-
}, P = (h, T) => {
|
|
3045
|
-
h !== null && (v.value[T] = h);
|
|
3046
|
-
}, x = (h) => i.value[h], U = (h) => {
|
|
3047
|
-
if (!e.selectable)
|
|
3048
|
-
return null;
|
|
3049
|
-
const T = e.getDataItemId(h);
|
|
3050
|
-
return e.selectedItems.includes(T).toString();
|
|
3051
|
-
}, q = (h, T) => {
|
|
3052
|
-
n("row-click", h, T);
|
|
3053
|
-
}, W = (h) => {
|
|
3054
|
-
var ne;
|
|
3055
|
-
if (!e.allowRowClicks)
|
|
3056
|
-
return;
|
|
3057
|
-
let T = !1;
|
|
3058
|
-
const H = ["button", "input", "a"];
|
|
3059
|
-
for (let V = 0; V < H.length; V++)
|
|
3060
|
-
if ((ne = h == null ? void 0 : h.target) != null && ne.closest(H[V])) {
|
|
3061
|
-
T = !0;
|
|
3062
|
-
break;
|
|
3063
|
-
}
|
|
3064
|
-
T || q(e.rowData, h);
|
|
3065
|
-
}, G = (h) => {
|
|
3066
|
-
n("select-row", h, e.rowData);
|
|
3067
|
-
}, $ = (h, T) => {
|
|
3068
|
-
n("select-nested-row", T, e.rowData, h);
|
|
3069
|
-
}, B = () => {
|
|
3070
|
-
S.value = !0;
|
|
3071
|
-
}, oe = () => {
|
|
3072
|
-
S.value = !1;
|
|
3073
|
-
}, _e = (h) => {
|
|
3074
|
-
var ue;
|
|
3075
|
-
if (u.value) {
|
|
3076
|
-
u.value = !1;
|
|
3077
|
-
return;
|
|
3078
|
-
}
|
|
3079
|
-
const T = E();
|
|
3080
|
-
if (!T || !((ue = b.value) != null && ue.length))
|
|
3081
|
-
return;
|
|
3082
|
-
const H = a(h.relatedTarget, T), ne = b.value.length - 1, V = H ? b.value[ne] : b.value[0];
|
|
3083
|
-
xe([V]), Fe(T, { last: H });
|
|
3084
|
-
}, ve = () => {
|
|
3085
|
-
const h = E();
|
|
3086
|
-
h && ce(h);
|
|
3087
|
-
}, he = (h) => {
|
|
3088
|
-
var H, ne;
|
|
3089
|
-
const T = E();
|
|
3090
|
-
if (h.key === j.ESCAPE) {
|
|
3091
|
-
T && ce(T), u.value = !0, T == null || T.focus(), h.stopPropagation(), h.preventDefault();
|
|
3092
|
-
return;
|
|
3093
|
-
}
|
|
3094
|
-
h.key !== j.TAB && T && ce(T), h.key === j.ARROW_RIGHT && ((H = b.value) == null ? void 0 : H.length) > 1 && b.value[0].node === document.activeElement ? (T && ce(T), b.value[1].node.setAttribute("tabindex", "0"), b.value[1].node.focus(), h.stopPropagation(), h.preventDefault()) : h.key === j.ARROW_LEFT && ((ne = b.value) == null ? void 0 : ne.length) > 1 && b.value[1].node === document.activeElement && (T && ce(T), b.value[0].node.setAttribute("tabindex", "0"), b.value[0].node.focus(), h.stopPropagation(), h.preventDefault());
|
|
3095
|
-
}, de = () => e.columnSets.reduce((h, { columnSet: T }) => h + T.length, 0), L = () => de() * e.rowIndex + de(), { contentHeight: k } = lo(g, d), J = C(() => {
|
|
3096
|
-
var h;
|
|
3097
|
-
if (e.hasNestedContent || e.hasNestedRows)
|
|
3098
|
-
return {
|
|
3099
|
-
paddingLeft: `${R.value || m.value ? 0 : r.value[le].offsetWidth + Ut}px`,
|
|
3100
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) && k.value && !((h = k == null ? void 0 : k.value) != null && h.includes("null")) ? k.value : 0
|
|
3101
|
-
};
|
|
3102
|
-
}), c = () => {
|
|
3103
|
-
d.value = !d.value, n("nested-content-toggled", e.rowData);
|
|
3104
|
-
}, z = me(
|
|
3105
|
-
Oe,
|
|
3106
|
-
C(() => !1)
|
|
3107
|
-
), Z = (h) => e.highlightedRows.includes(e.getDataItemId(h)), te = (h) => e.selectedItems.includes(e.getDataItemId(h)), re = (h, T) => ({
|
|
3108
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(h),
|
|
3109
|
-
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
3110
|
-
"b-data-grid-row-container__row--highlighted": Z(h),
|
|
3111
|
-
"b-data-grid-row-container__row--selected": te(h),
|
|
3112
|
-
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === T,
|
|
3113
|
-
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !d.value,
|
|
3114
|
-
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
3115
|
-
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
3116
|
-
}), Le = (h, T) => ({
|
|
3117
|
-
"b-data-grid-row-container__row-cell-set--frozen": h && !T,
|
|
3118
|
-
[`b-data-grid-row-container__row-cell-set--${ge.OVERFLOW_SHADOW_LEFT}`]: !T && h && e.hasLeftOverflow,
|
|
3119
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !T && h && e.showFrozenColumnsSeparator,
|
|
3120
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !h || T,
|
|
3121
|
-
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
3122
|
-
}), pe = C(() => ({
|
|
3123
|
-
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
3124
|
-
"b-data-grid-row-container__row-nested-slot": !R.value && e.shouldShowNestedContent(e.rowData)
|
|
3125
|
-
})), be = C(() => ({
|
|
3126
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": S.value
|
|
3127
|
-
})), we = C(() => ({
|
|
3128
|
-
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
3129
|
-
}));
|
|
3130
|
-
return t({
|
|
3131
|
-
gridcellRefs: r,
|
|
3132
|
-
isNestedContentShown: d,
|
|
3133
|
-
nestedRowRefs: v,
|
|
3134
|
-
rowActionsRef: p
|
|
3135
|
-
}), { __sfc: !0, slots: s, hasSlot: l, props: e, emit: n, isRelatedTargetAfterInDOM: a, gridcellRefs: r, isNestedContentShown: d, nestedContentRef: g, rowActionsRef: p, nestedRowRefs: v, nestedContentSlotId: y, isRowActionMenuOpen: S, isExitingRowActionInteraction: u, focusableItems: b, getRowActionsElement: E, shouldShowNestedRowsBooleanResult: N, shouldShowRenderNestedRows: R, isLoadingNestedRows: m, shouldShowNestedContentToggle: O, ariaRowAttributes: I, nestedContentContainerDivAriaAttributes: _, nestedRowIds: i, allNestedRowIds: f, hasUnSelectedNestedRows: A, registerRowCellRef: D, registerNestedRowRef: P, getRowId: x, getRowAriaSelectedValue: U, emitRowClick: q, onRowClick: W, onRowSelect: G, onNestedRowSelect: $, onRowActionMenuOpen: B, onRowActionMenuClose: oe, onRowActionsCellFocus: _e, onRowActionsCellFocusOut: ve, onRowActionsCellOnKeyDown: he, sumColumnAmountsInColumnSets: de, getRowActionsCellIndex: L, contentHeight: k, nestedContentStyles: J, nestedContentToggled: c, isSmallContainer: z, isHighlightedRow: Z, isSelectedRow: te, conditionalRowClasses: re, conditionalRowSetClasses: Le, conditionalNestedRowClasses: pe, conditionalRowActionsContainerClasses: be, computedRowActionsStyles: we, BentoLoadingIndicator: He, DataGridCell: nl, DataGridCellActions: Gt };
|
|
3136
|
-
}
|
|
3137
|
-
});
|
|
3138
|
-
var ll = function() {
|
|
3139
|
-
var s;
|
|
3140
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3141
|
-
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: (s = t.rowId) == null ? void 0 : s.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick, keyup: [function(l) {
|
|
3142
|
-
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onRowClick.apply(null, arguments);
|
|
3143
|
-
}, function(l) {
|
|
3144
|
-
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
3145
|
-
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, d) {
|
|
3146
|
-
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(r, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(g, p) {
|
|
3147
|
-
return n(e.DataGridCell, { key: `cell-${g.field}`, ref: (v) => e.registerRowCellRef(v, g.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: g, "column-set-index": d, "col-index": p, "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) {
|
|
3148
|
-
return e.emit("cell-hovered", v);
|
|
3149
|
-
}, "cell-focus": function(v) {
|
|
3150
|
-
return e.emit("cell-focus", v);
|
|
3151
|
-
}, "on-frozen-columns-key-press": function(v) {
|
|
3152
|
-
return e.emit("on-frozen-columns-key-press", v);
|
|
3153
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(v, y) {
|
|
3154
|
-
return { key: y, fn: function(S) {
|
|
3155
|
-
return [t._t(y, null, null, S)];
|
|
3156
|
-
} };
|
|
3157
|
-
})], null, !0) });
|
|
3158
|
-
}), 1) : t._e()];
|
|
3159
|
-
}), 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) {
|
|
3160
|
-
return n("data-grid-row", t._b({ key: `child-${a}`, ref: (r) => e.registerNestedRowRef(r, a), refInFor: !0, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(r) {
|
|
3161
|
-
return e.emit("cell-hovered", r);
|
|
3162
|
-
}, "cell-focus": function(r) {
|
|
3163
|
-
return e.emit("cell-focus", r);
|
|
3164
|
-
}, "row-click": e.emitRowClick, "on-frozen-columns-key-press": function(r) {
|
|
3165
|
-
return e.emit("on-frozen-columns-key-press", r);
|
|
3166
|
-
}, "select-row": function(r) {
|
|
3167
|
-
return e.onNestedRowSelect(l, r);
|
|
3168
|
-
} }, scopedSlots: t._u([t._l(e.slots, function(r, d) {
|
|
3169
|
-
return { key: d, fn: function(g) {
|
|
3170
|
-
return [t._t(d, null, null, g)];
|
|
3171
|
-
} };
|
|
3172
|
-
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
3173
|
-
})], 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);
|
|
3174
|
-
}, al = [], il = /* @__PURE__ */ X(
|
|
3175
|
-
sl,
|
|
3176
|
-
ll,
|
|
3177
|
-
al,
|
|
3178
|
-
!1,
|
|
3179
|
-
null,
|
|
3180
|
-
"4c57a740"
|
|
3181
|
-
);
|
|
3182
|
-
const rl = il.exports;
|
|
3183
|
-
let yt = 0;
|
|
3184
|
-
const cl = {
|
|
3185
|
-
beforeCreate() {
|
|
3186
|
-
this.uuid = yt.toString(), yt += 1;
|
|
3187
|
-
}
|
|
3188
|
-
};
|
|
3189
|
-
var dl = function() {
|
|
3190
|
-
var t = this, n = t._self._c;
|
|
3191
|
-
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" } })])])]);
|
|
3192
|
-
}, ul = [], fl = /* @__PURE__ */ X(
|
|
3193
|
-
cl,
|
|
3194
|
-
dl,
|
|
3195
|
-
ul,
|
|
3196
|
-
!1,
|
|
3197
|
-
null,
|
|
3198
|
-
null
|
|
3199
|
-
);
|
|
3200
|
-
const gl = fl.exports, ml = {}, _l = /* @__PURE__ */ ie({
|
|
3201
|
-
...ml,
|
|
3202
|
-
__name: "data-grid-static-icon",
|
|
3203
|
-
props: {
|
|
3204
|
-
colored: { type: Boolean, default: !1 },
|
|
3205
|
-
tooltipText: null,
|
|
3206
|
-
variant: { default: "no-value" }
|
|
3207
|
-
},
|
|
3208
|
-
setup(o) {
|
|
3209
|
-
const t = o, n = C(() => {
|
|
3210
|
-
switch (t.variant) {
|
|
3211
|
-
case "checkmark":
|
|
3212
|
-
return Bn;
|
|
3213
|
-
case "warning":
|
|
3214
|
-
return Un;
|
|
3215
|
-
case "error":
|
|
3216
|
-
return gl;
|
|
3217
|
-
case "cross":
|
|
3218
|
-
return It;
|
|
3219
|
-
case "no-value":
|
|
3220
|
-
return it;
|
|
3221
|
-
default:
|
|
3222
|
-
return it;
|
|
3223
|
-
}
|
|
3224
|
-
}), e = C(() => ({
|
|
3225
|
-
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
3226
|
-
})), s = C(() => `b-data-grid-static-icon__${t.variant}`), l = C(() => kn.AUTO);
|
|
3227
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: s, tooltipPosition: l, vBentoTooltipDirective: Nt };
|
|
3228
|
-
}
|
|
3229
|
-
});
|
|
3230
|
-
var Cl = function() {
|
|
3231
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3232
|
-
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);
|
|
3233
|
-
}, vl = [], hl = /* @__PURE__ */ X(
|
|
3234
|
-
_l,
|
|
3235
|
-
Cl,
|
|
3236
|
-
vl,
|
|
3237
|
-
!1,
|
|
3238
|
-
null,
|
|
3239
|
-
"dbc055cb"
|
|
3240
|
-
);
|
|
3241
|
-
const Va = hl.exports, pl = {
|
|
3242
|
-
"de-DE": {
|
|
3243
|
-
numberResults: "1 Ergebnis | {count} Ergebnisse"
|
|
3244
|
-
},
|
|
3245
|
-
"en-GB": {
|
|
3246
|
-
numberResults: "1 result | {count} results"
|
|
3247
|
-
},
|
|
3248
|
-
"en-US": {
|
|
3249
|
-
numberResults: "1 result | {count} results"
|
|
3250
|
-
},
|
|
3251
|
-
"es-419": {
|
|
3252
|
-
numberResults: "1 resultado | {count} resultados"
|
|
3253
|
-
},
|
|
3254
|
-
"es-ES": {
|
|
3255
|
-
numberResults: "1 resultado | {count} resultados"
|
|
3256
|
-
},
|
|
3257
|
-
"es-MX": {
|
|
3258
|
-
numberResults: "1 resultado | {count} resultados"
|
|
3259
|
-
},
|
|
3260
|
-
"fr-FR": {
|
|
3261
|
-
numberResults: "1 résultat | {count} résultats"
|
|
3262
|
-
},
|
|
3263
|
-
"it-IT": {
|
|
3264
|
-
numberResults: "1 risultato | {count} risultati"
|
|
3265
|
-
},
|
|
3266
|
-
"ja-JP": {
|
|
3267
|
-
numberResults: "1件の結果 | {count}件の結果"
|
|
3268
|
-
},
|
|
3269
|
-
"pt-BR": {
|
|
3270
|
-
numberResults: "1 resultado | {count} resultados"
|
|
3271
|
-
},
|
|
3272
|
-
"zh-CN": {
|
|
3273
|
-
numberResults: "1 个结果 | {count} 个结果"
|
|
3274
|
-
}
|
|
3275
|
-
}, bl = {
|
|
3276
|
-
i18n: { messages: pl }
|
|
3277
|
-
}, wl = /* @__PURE__ */ ie({
|
|
3278
|
-
...bl,
|
|
3279
|
-
__name: "data-grid-summary-cell",
|
|
3280
|
-
props: {
|
|
3281
|
-
label: null,
|
|
3282
|
-
items: null,
|
|
3283
|
-
dashedUnderline: { default: () => ({}) },
|
|
3284
|
-
searchTerm: { default: "" },
|
|
3285
|
-
tooltipText: { default: null }
|
|
3286
|
-
},
|
|
3287
|
-
setup(o) {
|
|
3288
|
-
const t = o, { tc: n } = Ce(), e = w(), s = C(() => ({
|
|
3289
|
-
popoverPosition: "right",
|
|
3290
|
-
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
3291
|
-
popoverTitle: t.label,
|
|
3292
|
-
popoverSize: "small",
|
|
3293
|
-
...t.dashedUnderline,
|
|
3294
|
-
// We force teleport as this is needed for the popover to appear above all the data grid elements
|
|
3295
|
-
teleport: {
|
|
3296
|
-
disabled: !1
|
|
3297
|
-
}
|
|
3298
|
-
})), l = C(() => {
|
|
3299
|
-
var g;
|
|
3300
|
-
return ((g = t.searchTerm) == null ? void 0 : g.toLowerCase()) ?? "";
|
|
3301
|
-
}), a = (g) => t.searchTerm && g.toLowerCase().includes(l.value) ? "mark" : "span", r = C(() => t.searchTerm ? t.items.filter((g) => g.toLowerCase().includes(l.value)).length : 0), d = C(
|
|
3302
|
-
() => t.tooltipText ?? (r.value > 0 ? n("numberResults", r.value) : "")
|
|
3303
|
-
);
|
|
3304
|
-
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: s, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: r, computedToolTipText: d, BentoDashedUnderline: Gn, BentoTypography: ye, Tooltip: Wn, BentoTooltipPosition: $n };
|
|
3305
|
-
}
|
|
3306
|
-
});
|
|
3307
|
-
var Sl = function() {
|
|
3308
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3309
|
-
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() {
|
|
3310
|
-
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(s) {
|
|
3311
|
-
return n("li", { key: s }, [n(e.highlightedComponent(s), { tag: "component" }, [t._v(t._s(s))])], 1);
|
|
3312
|
-
}), 0)])];
|
|
3313
|
-
}, 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);
|
|
3314
|
-
}, Rl = [], Al = /* @__PURE__ */ X(
|
|
3315
|
-
wl,
|
|
3316
|
-
Sl,
|
|
3317
|
-
Rl,
|
|
3318
|
-
!1,
|
|
3319
|
-
null,
|
|
3320
|
-
"2cf5d218"
|
|
3321
|
-
);
|
|
3322
|
-
const Ha = Al.exports, El = {}, yl = /* @__PURE__ */ ie({
|
|
3323
|
-
...El,
|
|
3324
|
-
__name: "data-grid-tag-with-text-cell",
|
|
3325
|
-
props: {
|
|
3326
|
-
tag: null,
|
|
3327
|
-
value: null
|
|
3328
|
-
},
|
|
3329
|
-
setup(o) {
|
|
3330
|
-
return { __sfc: !0, props: o, BentoTag: Vn, BentoTypography: ye };
|
|
3331
|
-
}
|
|
3332
|
-
});
|
|
3333
|
-
var Ll = function() {
|
|
3334
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3335
|
-
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);
|
|
3336
|
-
}, Tl = [], Ol = /* @__PURE__ */ X(
|
|
3337
|
-
yl,
|
|
3338
|
-
Ll,
|
|
3339
|
-
Tl,
|
|
3340
|
-
!1,
|
|
3341
|
-
null,
|
|
3342
|
-
"ed0cc252"
|
|
3343
|
-
);
|
|
3344
|
-
const Za = Ol.exports;
|
|
3345
|
-
let Lt = 0;
|
|
3346
|
-
const Il = {
|
|
3347
|
-
beforeCreate() {
|
|
3348
|
-
this.uuid = Lt.toString(), Lt += 1;
|
|
3349
|
-
}
|
|
3350
|
-
};
|
|
3351
|
-
var Nl = function() {
|
|
3352
|
-
var t = this, n = t._self._c;
|
|
3353
|
-
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" } })]);
|
|
3354
|
-
}, Dl = [], Ml = /* @__PURE__ */ X(
|
|
3355
|
-
Il,
|
|
3356
|
-
Nl,
|
|
3357
|
-
Dl,
|
|
3358
|
-
!1,
|
|
3359
|
-
null,
|
|
3360
|
-
null
|
|
3361
|
-
);
|
|
3362
|
-
const Fl = Ml.exports;
|
|
3363
|
-
let Tt = 0;
|
|
3364
|
-
const xl = {
|
|
3365
|
-
beforeCreate() {
|
|
3366
|
-
this.uuid = Tt.toString(), Tt += 1;
|
|
3367
|
-
}
|
|
3368
|
-
};
|
|
3369
|
-
var Pl = function() {
|
|
3370
|
-
var t = this, n = t._self._c;
|
|
3371
|
-
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" } })]);
|
|
3372
|
-
}, zl = [], Bl = /* @__PURE__ */ X(
|
|
3373
|
-
xl,
|
|
3374
|
-
Pl,
|
|
3375
|
-
zl,
|
|
3376
|
-
!1,
|
|
3377
|
-
null,
|
|
3378
|
-
null
|
|
3379
|
-
);
|
|
3380
|
-
const Ul = Bl.exports, kl = {
|
|
3381
|
-
"de-DE": {
|
|
3382
|
-
decrease: "verringern",
|
|
3383
|
-
increase: "erhöhen"
|
|
3384
|
-
},
|
|
3385
|
-
"en-GB": {
|
|
3386
|
-
decrease: "decrease",
|
|
3387
|
-
increase: "increase"
|
|
3388
|
-
},
|
|
3389
|
-
"en-US": {
|
|
3390
|
-
decrease: "decrease",
|
|
3391
|
-
increase: "increase"
|
|
3392
|
-
},
|
|
3393
|
-
"es-419": {
|
|
3394
|
-
decrease: "disminución",
|
|
3395
|
-
increase: "aumentar"
|
|
3396
|
-
},
|
|
3397
|
-
"es-ES": {
|
|
3398
|
-
decrease: "disminuir",
|
|
3399
|
-
increase: "aumentar"
|
|
3400
|
-
},
|
|
3401
|
-
"es-MX": {
|
|
3402
|
-
decrease: "disminuir",
|
|
3403
|
-
increase: "aumentar"
|
|
3404
|
-
},
|
|
3405
|
-
"fr-FR": {
|
|
3406
|
-
decrease: "diminuer",
|
|
3407
|
-
increase: "augmentation"
|
|
3408
|
-
},
|
|
3409
|
-
"it-IT": {
|
|
3410
|
-
decrease: "riduci",
|
|
3411
|
-
increase: "aumenta"
|
|
3412
|
-
},
|
|
3413
|
-
"ja-JP": {
|
|
3414
|
-
decrease: "低減",
|
|
3415
|
-
increase: "増加"
|
|
3416
|
-
},
|
|
3417
|
-
"pt-BR": {
|
|
3418
|
-
decrease: "diminuir",
|
|
3419
|
-
increase: "aumentar"
|
|
3420
|
-
},
|
|
3421
|
-
"zh-CN": {
|
|
3422
|
-
decrease: "减少",
|
|
3423
|
-
increase: "增加"
|
|
3424
|
-
}
|
|
3425
|
-
}, $l = {
|
|
3426
|
-
i18n: { messages: kl }
|
|
3427
|
-
}, Wl = /* @__PURE__ */ ie({
|
|
3428
|
-
...$l,
|
|
3429
|
-
__name: "data-grid-trend-cell",
|
|
3430
|
-
props: {
|
|
3431
|
-
direction: { default: "none" },
|
|
3432
|
-
variant: { default: "black" },
|
|
3433
|
-
value: null
|
|
3434
|
-
},
|
|
3435
|
-
setup(o) {
|
|
3436
|
-
const t = o, { t: n, locale: e } = Ce(), s = C(() => ({
|
|
3437
|
-
[`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
|
|
3438
|
-
})), l = C(() => {
|
|
3439
|
-
switch (t.direction) {
|
|
3440
|
-
case "up":
|
|
3441
|
-
return n("increase");
|
|
3442
|
-
case "down":
|
|
3443
|
-
return n("decrease");
|
|
3444
|
-
default:
|
|
3445
|
-
return null;
|
|
3446
|
-
}
|
|
3447
|
-
}), a = C(() => {
|
|
3448
|
-
switch (t.direction) {
|
|
3449
|
-
case "up":
|
|
3450
|
-
return Fl;
|
|
3451
|
-
case "down":
|
|
3452
|
-
return Ul;
|
|
3453
|
-
default:
|
|
3454
|
-
return null;
|
|
3455
|
-
}
|
|
3456
|
-
}), r = C(() => {
|
|
3457
|
-
const d = typeof t.value == "string" ? parseFloat(t.value) : t.value;
|
|
3458
|
-
return isNaN(d) ? "" : new Intl.NumberFormat(e.value, {
|
|
3459
|
-
style: "percent",
|
|
3460
|
-
minimumFractionDigits: 0,
|
|
3461
|
-
// Don't force zeros
|
|
3462
|
-
maximumFractionDigits: 10
|
|
3463
|
-
// Cap it reasonably to avoid float artifacts
|
|
3464
|
-
}).format(d / 100);
|
|
3465
|
-
});
|
|
3466
|
-
return { __sfc: !0, t: n, locale: e, props: t, conditionalClasses: s, computedIconTitle: l, computedIcon: a, computedValue: r, BentoTypography: ye };
|
|
3467
|
-
}
|
|
3468
|
-
});
|
|
3469
|
-
var Gl = function() {
|
|
3470
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3471
|
-
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);
|
|
3472
|
-
}, Vl = [], Hl = /* @__PURE__ */ X(
|
|
3473
|
-
Wl,
|
|
3474
|
-
Gl,
|
|
3475
|
-
Vl,
|
|
3476
|
-
!1,
|
|
3477
|
-
null,
|
|
3478
|
-
"05cdd7d9"
|
|
3479
|
-
);
|
|
3480
|
-
const ja = Hl.exports, Zl = (o, t, n) => {
|
|
3481
|
-
const e = w([]), s = (d, g) => {
|
|
3482
|
-
var u, b;
|
|
3483
|
-
if (!(d != null && d.gridcellRefs))
|
|
3484
|
-
return { count: 0, entries: [], maxWidth: 0 };
|
|
3485
|
-
const p = [];
|
|
3486
|
-
let v = 0;
|
|
3487
|
-
const y = n.value && (d == null ? void 0 : d.rowActionsRef);
|
|
3488
|
-
Object.entries(d.gridcellRefs).forEach(([E, N]) => {
|
|
3489
|
-
p.push({ field: E, index: g, el: N });
|
|
3490
|
-
}), y && (p.push({
|
|
3491
|
-
field: qe,
|
|
3492
|
-
index: g,
|
|
3493
|
-
el: d.rowActionsRef
|
|
3494
|
-
}), v = Math.max(v, ((u = d.rowActionsRef) == null ? void 0 : u.offsetWidth) ?? 0));
|
|
3495
|
-
let S = 1;
|
|
3496
|
-
if (d.isNestedContentShown && ((b = d.nestedRowRefs) == null ? void 0 : b.length) > 0)
|
|
3497
|
-
for (let E = 0; E < d.nestedRowRefs.length; E++) {
|
|
3498
|
-
const N = d.nestedRowRefs[E];
|
|
3499
|
-
if (N) {
|
|
3500
|
-
const R = s(N, g + S);
|
|
3501
|
-
p.push(...R.entries), v = Math.max(v, R.maxWidth), S += R.count;
|
|
3502
|
-
}
|
|
3503
|
-
}
|
|
3504
|
-
return { count: S, entries: p, maxWidth: v };
|
|
3505
|
-
};
|
|
3506
|
-
let l = !1;
|
|
3507
|
-
const a = (d, g) => {
|
|
3508
|
-
d !== null && (e.value[g] = d, l || r());
|
|
3509
|
-
}, r = () => {
|
|
3510
|
-
l = !0;
|
|
3511
|
-
const d = {};
|
|
3512
|
-
let g = 0, p = 0;
|
|
3513
|
-
for (let v = 0; v < e.value.length; v++) {
|
|
3514
|
-
const y = e.value[v];
|
|
3515
|
-
if (y) {
|
|
3516
|
-
const S = s(y, p);
|
|
3517
|
-
S.entries.forEach(({ field: u, index: b, el: E }) => {
|
|
3518
|
-
d[u] === void 0 && (d[u] = []), d[u][b] = E;
|
|
3519
|
-
}), g = Math.max(g, S.maxWidth), p += S.count;
|
|
3520
|
-
}
|
|
3521
|
-
}
|
|
3522
|
-
o.value = d, t.value = g, l = !1;
|
|
3523
|
-
};
|
|
3524
|
-
return {
|
|
3525
|
-
topLevelRowComponents: e,
|
|
3526
|
-
registerRowCellRefs: a,
|
|
3527
|
-
rebuildGridcellRefs: r
|
|
3528
|
-
};
|
|
3529
|
-
}, jl = {
|
|
3530
|
-
i18n: { messages: Wt },
|
|
3531
|
-
name: "bento-data-grid"
|
|
3532
|
-
}, ql = /* @__PURE__ */ ie({
|
|
3533
|
-
...jl,
|
|
3534
|
-
props: {
|
|
3535
|
-
/**
|
|
3536
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
3537
|
-
*/
|
|
3538
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
3539
|
-
/**
|
|
3540
|
-
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
3541
|
-
*/
|
|
3542
|
-
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
3543
|
-
/**
|
|
3544
|
-
* List of actions that will be rendered in the action bar when user selects items.
|
|
3545
|
-
*
|
|
3546
|
-
* Each object in the list should have a `title`, an `event` and,
|
|
3547
|
-
* optionally, an `icon`.
|
|
3548
|
-
*
|
|
3549
|
-
* The component will display 4 actions and the hide the rest inside a menu.
|
|
3550
|
-
*
|
|
3551
|
-
* @see BentoButton for a list of all the other props supported by each button action.
|
|
3552
|
-
*/
|
|
3553
|
-
bulkActions: {
|
|
3554
|
-
type: Array,
|
|
3555
|
-
default: null
|
|
3556
|
-
},
|
|
3557
|
-
/**
|
|
3558
|
-
* Sets the row cells to the condensed padding state.
|
|
3559
|
-
*/
|
|
3560
|
-
condensed: {
|
|
3561
|
-
type: Boolean,
|
|
3562
|
-
default: !1
|
|
3563
|
-
},
|
|
3564
|
-
/**
|
|
3565
|
-
* Column definitions using 'key' to relate to data object.
|
|
3566
|
-
*/
|
|
3567
|
-
columns: {
|
|
3568
|
-
type: Array,
|
|
3569
|
-
required: !0
|
|
3570
|
-
},
|
|
3571
|
-
/**
|
|
3572
|
-
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
3573
|
-
*/
|
|
3574
|
-
columnPanel: { type: Boolean, default: !1 },
|
|
3575
|
-
/**
|
|
3576
|
-
* An array of data objects to display.
|
|
3577
|
-
*/
|
|
3578
|
-
data: {
|
|
3579
|
-
type: Array,
|
|
3580
|
-
required: !0
|
|
3581
|
-
},
|
|
3582
|
-
/**
|
|
3583
|
-
* Empty state props that will be passed down to inner empty-state component
|
|
3584
|
-
*/
|
|
3585
|
-
emptyState: {
|
|
3586
|
-
type: Object,
|
|
3587
|
-
default: void 0
|
|
3588
|
-
},
|
|
3589
|
-
/**
|
|
3590
|
-
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
3591
|
-
* {@see BentoFilterBarModel}
|
|
3592
|
-
*/
|
|
3593
|
-
filters: {
|
|
3594
|
-
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
3595
|
-
type: Array,
|
|
3596
|
-
default: void 0
|
|
3597
|
-
},
|
|
3598
|
-
/**
|
|
3599
|
-
* Defines the layout (multi-line or one-line) to be used in the filter bar for different
|
|
3600
|
-
* container sizes:
|
|
3601
|
-
* - Large (>=700px): Always multi-line
|
|
3602
|
-
* - Medium (>=430px & <700px)
|
|
3603
|
-
* - Small (<430px)
|
|
3604
|
-
*
|
|
3605
|
-
* @default
|
|
3606
|
-
* {
|
|
3607
|
-
* medium: 'multi-line',
|
|
3608
|
-
* small: 'one-line'
|
|
3609
|
-
* }
|
|
3610
|
-
*/
|
|
3611
|
-
filtersContainerSizeLayout: {
|
|
3612
|
-
type: Object,
|
|
3613
|
-
default: void 0
|
|
3614
|
-
},
|
|
3615
|
-
/**
|
|
3616
|
-
* An array of the values for each filter set in `value`.
|
|
3617
|
-
* {@see BentoFilterValues}
|
|
3618
|
-
*/
|
|
3619
|
-
filterValues: {
|
|
3620
|
-
type: Array,
|
|
3621
|
-
default: () => []
|
|
3622
|
-
},
|
|
3623
|
-
/**
|
|
3624
|
-
* 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.
|
|
3625
|
-
*
|
|
3626
|
-
* @example
|
|
3627
|
-
* {
|
|
3628
|
-
* 'company': '200',
|
|
3629
|
-
* 'name': 'some text'
|
|
3630
|
-
* },
|
|
3631
|
-
*/
|
|
3632
|
-
filterValuesObject: {
|
|
3633
|
-
type: Object,
|
|
3634
|
-
default: () => {
|
|
3635
|
-
}
|
|
3636
|
-
},
|
|
3637
|
-
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
3638
|
-
// It was not done now because it's a breaking change for the types.
|
|
3639
|
-
/**
|
|
3640
|
-
* Filter's search bar properties with which the placeholder, hint and other
|
|
3641
|
-
* "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
|
|
3642
|
-
*/
|
|
3643
|
-
filterSearchConfig: {
|
|
3644
|
-
type: Object,
|
|
3645
|
-
default: void 0
|
|
3646
|
-
},
|
|
3647
|
-
/**
|
|
3648
|
-
* Filter bar search term useful to filter all the data by text
|
|
3649
|
-
*/
|
|
3650
|
-
filterSearchTerm: {
|
|
3651
|
-
type: String,
|
|
3652
|
-
default: void 0
|
|
3653
|
-
},
|
|
3654
|
-
/**
|
|
3655
|
-
* Allows the grid to be rendered inside a confined space.
|
|
3656
|
-
* This makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.
|
|
3657
|
-
*/
|
|
3658
|
-
fitContent: { type: Boolean, default: !1 },
|
|
3659
|
-
/**
|
|
3660
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
3661
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
3662
|
-
*/
|
|
3663
|
-
getDataItemId: {
|
|
3664
|
-
type: Function,
|
|
3665
|
-
default: (o) => o.id
|
|
3666
|
-
},
|
|
3667
|
-
/**
|
|
3668
|
-
* Row actions propery that generates which button to show in row actions area
|
|
3669
|
-
*/
|
|
3670
|
-
rowActions: {
|
|
3671
|
-
type: [Function, Array],
|
|
3672
|
-
default: void 0
|
|
3673
|
-
},
|
|
3674
|
-
/**
|
|
3675
|
-
* If resize is enabled
|
|
3676
|
-
*/
|
|
3677
|
-
hasResizableColumns: {
|
|
3678
|
-
type: Boolean,
|
|
3679
|
-
default: !0
|
|
3680
|
-
},
|
|
3681
|
-
/**
|
|
3682
|
-
* Enables the nested content slot functionality.
|
|
3683
|
-
*/
|
|
3684
|
-
hasNestedContent: {
|
|
3685
|
-
type: Boolean,
|
|
3686
|
-
default: !1
|
|
3687
|
-
},
|
|
3688
|
-
/**
|
|
3689
|
-
* Enables the nested content slot functionality.
|
|
3690
|
-
*/
|
|
3691
|
-
hasNestedRows: {
|
|
3692
|
-
type: Boolean,
|
|
3693
|
-
default: !1
|
|
3694
|
-
},
|
|
3695
|
-
/**
|
|
3696
|
-
* Highlighted items
|
|
3697
|
-
*/
|
|
3698
|
-
highlightedRows: {
|
|
3699
|
-
type: Array,
|
|
3700
|
-
default: () => []
|
|
3701
|
-
},
|
|
3702
|
-
/**
|
|
3703
|
-
* A customisable method to determine if a row is not selectable.
|
|
3704
|
-
* The default is that every row is selectable.
|
|
3705
|
-
*/
|
|
3706
|
-
isDataItemDisabled: {
|
|
3707
|
-
type: Function,
|
|
3708
|
-
default: () => !1
|
|
3709
|
-
},
|
|
3710
|
-
/**
|
|
3711
|
-
* The type of `Lazy Load`.
|
|
3712
|
-
* Type "automatic" will enable infinite scrolling
|
|
3713
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
3714
|
-
* @values automatic, button, none
|
|
3715
|
-
*/
|
|
3716
|
-
lazyLoadType: {
|
|
3717
|
-
type: String,
|
|
3718
|
-
default: "none",
|
|
3719
|
-
validator: (o) => ["automatic", "button", "none"].includes(o)
|
|
3720
|
-
},
|
|
3721
|
-
/**
|
|
3722
|
-
* If the loading indicator should be shown.
|
|
3723
|
-
*/
|
|
3724
|
-
loading: {
|
|
3725
|
-
type: Boolean,
|
|
3726
|
-
default: !1
|
|
3727
|
-
},
|
|
3728
|
-
/**
|
|
3729
|
-
* Enables / Disables the table's surrounding border.
|
|
3730
|
-
*/
|
|
3731
|
-
outline: {
|
|
3732
|
-
type: Boolean,
|
|
3733
|
-
default: !1
|
|
3734
|
-
},
|
|
3735
|
-
/**
|
|
3736
|
-
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
3737
|
-
*/
|
|
3738
|
-
noSpacingTop: {
|
|
3739
|
-
type: Boolean,
|
|
3740
|
-
default: !1
|
|
3741
|
-
},
|
|
3742
|
-
/**
|
|
3743
|
-
* Pagination props that will be passed down to inner pagination component
|
|
3744
|
-
*/
|
|
3745
|
-
pagination: {
|
|
3746
|
-
type: Object,
|
|
3747
|
-
default: void 0
|
|
3748
|
-
},
|
|
3749
|
-
/**
|
|
3750
|
-
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
3751
|
-
* Needs pagination.totalCount to be set.
|
|
3752
|
-
*/
|
|
3753
|
-
selectableAcrossPages: {
|
|
3754
|
-
type: Boolean,
|
|
3755
|
-
default: !1
|
|
3756
|
-
},
|
|
3757
|
-
/**
|
|
3758
|
-
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
3759
|
-
*/
|
|
3760
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
3761
|
-
/**
|
|
3762
|
-
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
3763
|
-
*/
|
|
3764
|
-
stickyHorizontalScrollbar: {
|
|
3765
|
-
type: Boolean,
|
|
3766
|
-
default: !1
|
|
3767
|
-
},
|
|
3768
|
-
/**
|
|
3769
|
-
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
3770
|
-
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
3771
|
-
*/
|
|
3772
|
-
stickyPagination: {
|
|
3773
|
-
type: Boolean,
|
|
3774
|
-
default: !1
|
|
3775
|
-
},
|
|
3776
|
-
/**
|
|
3777
|
-
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
3778
|
-
* Defaults to true.
|
|
3779
|
-
*/
|
|
3780
|
-
stickyFilters: {
|
|
3781
|
-
type: Boolean,
|
|
3782
|
-
default: !0
|
|
3783
|
-
},
|
|
3784
|
-
/**
|
|
3785
|
-
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
3786
|
-
*/
|
|
3787
|
-
selectable: {
|
|
3788
|
-
type: Boolean,
|
|
3789
|
-
default: !1
|
|
3790
|
-
},
|
|
3791
|
-
/**
|
|
3792
|
-
* Selected items
|
|
3793
|
-
*/
|
|
3794
|
-
selection: {
|
|
3795
|
-
type: Array,
|
|
3796
|
-
default: () => []
|
|
3797
|
-
},
|
|
3798
|
-
/**
|
|
3799
|
-
* Enables / Disables the nested-content slot
|
|
3800
|
-
*/
|
|
3801
|
-
shouldShowNestedContent: {
|
|
3802
|
-
type: Function,
|
|
3803
|
-
default: (o) => !0
|
|
3804
|
-
},
|
|
3805
|
-
/**
|
|
3806
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
3807
|
-
*/
|
|
3808
|
-
shouldShowNestedRows: {
|
|
3809
|
-
type: Function,
|
|
3810
|
-
default: (o) => !0
|
|
3811
|
-
},
|
|
3812
|
-
/**
|
|
3813
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
3814
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
3815
|
-
*/
|
|
3816
|
-
sortBy: {
|
|
3817
|
-
type: Array,
|
|
3818
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
3819
|
-
default: () => []
|
|
3820
|
-
},
|
|
3821
|
-
/**
|
|
3822
|
-
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
3823
|
-
*/
|
|
3824
|
-
tabTitle: {
|
|
3825
|
-
type: String,
|
|
3826
|
-
default: null
|
|
3827
|
-
},
|
|
3828
|
-
/**
|
|
3829
|
-
* Truncates all data grid column headers
|
|
3830
|
-
*/
|
|
3831
|
-
truncateColumnHeaders: {
|
|
3832
|
-
type: Boolean,
|
|
3833
|
-
default: !1
|
|
3834
|
-
},
|
|
3835
|
-
/**
|
|
3836
|
-
* Toggles the alternating background color of rows.
|
|
3837
|
-
*/
|
|
3838
|
-
zebraRows: {
|
|
3839
|
-
type: Boolean,
|
|
3840
|
-
default: !1
|
|
3841
|
-
}
|
|
3842
|
-
},
|
|
3843
|
-
emits: [
|
|
3844
|
-
M.COLUMNS,
|
|
3845
|
-
M.COLUMN_RESIZE,
|
|
3846
|
-
M.ITEMS_PAGE,
|
|
3847
|
-
M.FILTER_SEARCH_INPUT,
|
|
3848
|
-
M.FILTER_SEARCH_CLEAR,
|
|
3849
|
-
M.NAVIGATE,
|
|
3850
|
-
M.NESTED_CONTENT_TOGGLED,
|
|
3851
|
-
M.UPDATE_COLUMNS,
|
|
3852
|
-
M.UPDATE_CONDENSED,
|
|
3853
|
-
M.UPDATE_FILTER_VALUES,
|
|
3854
|
-
M.UPDATE_FILTER_VALUES_OBJECT,
|
|
3855
|
-
M.UPDATE_FILTERS,
|
|
3856
|
-
M.UPDATE_FILTER_SEARCH_TERM,
|
|
3857
|
-
M.UPDATE_SHOW_MORE,
|
|
3858
|
-
M.UPDATE_PAGINATION,
|
|
3859
|
-
M.UPDATE_SELECTION,
|
|
3860
|
-
M.UPDATE_SORT_BY,
|
|
3861
|
-
M.ROW_CLICK,
|
|
3862
|
-
M.SELECT,
|
|
3863
|
-
M.SELECT_ALL_ACROSS_PAGES,
|
|
3864
|
-
M.SELECT_ALL_CURRENT_RESULTS,
|
|
3865
|
-
M.DESELECT_ALL_CURRENT_RESULTS,
|
|
3866
|
-
M.SORT,
|
|
3867
|
-
M.CELL_FOCUS
|
|
3868
|
-
],
|
|
3869
|
-
setup(o, { expose: t, emit: n }) {
|
|
3870
|
-
const e = o, s = Ve(), l = Ze(s), a = w(null), r = w(), d = w({}), g = w(Me("data-grid")), p = w(null), v = w(null), y = w(null), S = w(null), u = w(null), b = w(null), {
|
|
3871
|
-
allowColumnDragAndDrop: E,
|
|
3872
|
-
columns: N,
|
|
3873
|
-
columnPanel: R,
|
|
3874
|
-
data: m,
|
|
3875
|
-
lazyLoadType: O,
|
|
3876
|
-
loading: I,
|
|
3877
|
-
hasNestedContent: _,
|
|
3878
|
-
hasNestedRows: i,
|
|
3879
|
-
selectable: f,
|
|
3880
|
-
selection: A,
|
|
3881
|
-
selectableAcrossPages: D,
|
|
3882
|
-
stickyPagination: P,
|
|
3883
|
-
outline: x,
|
|
3884
|
-
pagination: U,
|
|
3885
|
-
zebraRows: q
|
|
3886
|
-
} = Ge(e), W = w(-1), { t: G } = Ce(), $ = C(() => Z.value.filter((F) => F.frozen).length), B = 550, oe = w(), { width: _e } = Jn(oe), ve = C(() => _e.value <= B);
|
|
3887
|
-
Ne(Oe, ve);
|
|
3888
|
-
const { isTouchDevice: he } = jn();
|
|
3889
|
-
Ne(Pe, he);
|
|
3890
|
-
const de = me(
|
|
3891
|
-
Xn,
|
|
3892
|
-
() => ({
|
|
3893
|
-
additionalContentSlotRef: w(null),
|
|
3894
|
-
isDataGridTemplate: !1,
|
|
3895
|
-
stickyAditionalContent: w(!1),
|
|
3896
|
-
stickyTabs: w(!1),
|
|
3897
|
-
tabsRef: w(null)
|
|
3898
|
-
})
|
|
3899
|
-
), { additionalContentSlotRef: L, isDataGridTemplate: k, stickyTabs: J, tabsRef: c, stickyAdditionalContent: z } = de(), {
|
|
3900
|
-
columnDefs: Z,
|
|
3901
|
-
onColumnWidthOverride: te,
|
|
3902
|
-
gridRowWidthStyle: re,
|
|
3903
|
-
isMeasuringColumnWidths: Le,
|
|
3904
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: pe,
|
|
3905
|
-
columns: be,
|
|
3906
|
-
totalWidthOfAllColumns: we,
|
|
3907
|
-
rowActionsMaxWidth: h
|
|
3908
|
-
} = To(N, m, a, d, p, {
|
|
3909
|
-
hasColumnPanel: R,
|
|
3910
|
-
hasSelectableColumn: f,
|
|
3911
|
-
hasSelectableAcrossPages: D,
|
|
3912
|
-
hasNestedContent: _,
|
|
3913
|
-
hasNestedRows: i,
|
|
3914
|
-
allowColumnDragAndDrop: E,
|
|
3915
|
-
isDataGridTemplate: k
|
|
3916
|
-
}), T = C(() => e.rowActions !== void 0), { registerRowCellRefs: H, rebuildGridcellRefs: ne } = Zl(
|
|
3917
|
-
p,
|
|
3918
|
-
h,
|
|
3919
|
-
T
|
|
3920
|
-
), V = (F, ...K) => {
|
|
3921
|
-
(F === M.COLUMNS || F === M.UPDATE_COLUMNS) && ([be.value] = K), n(F, ...K);
|
|
3922
|
-
}, ue = mt(
|
|
3923
|
-
c,
|
|
3924
|
-
J,
|
|
3925
|
-
z,
|
|
3926
|
-
L
|
|
3927
|
-
), Se = C(
|
|
3928
|
-
() => e.stickyFilters ? `${ue.value}px` : null
|
|
3929
|
-
), Ke = mt(v, ke(e, "stickyFilters")), Vt = C(
|
|
3930
|
-
() => `${Ke.value + ue.value}px`
|
|
3931
|
-
), {
|
|
3932
|
-
sortedColumns: ze,
|
|
3933
|
-
columnSets: Be,
|
|
3934
|
-
isOnlyOneVisibleColumn: Ht,
|
|
3935
|
-
internalZebraRows: Ye,
|
|
3936
|
-
onConfigSettingsColumnsUpdate: Zt,
|
|
3937
|
-
onConfigSettingsColumnUpdate: jt,
|
|
3938
|
-
onConfigSettingsCondensedUpdate: qt,
|
|
3939
|
-
onConfigSettingsZebraRowsUpdate: Kt
|
|
3940
|
-
} = xo(Z, q, V), { hoveredOverColumn: Yt, hoveredOverColumnState: Xt } = zo(
|
|
3941
|
-
Be,
|
|
3942
|
-
f,
|
|
3943
|
-
x,
|
|
3944
|
-
pe
|
|
3945
|
-
), { draggingColumns: Jt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn } = Fo(ze, E, V), Xe = C(
|
|
3946
|
-
() => {
|
|
3947
|
-
var F;
|
|
3948
|
-
return ((F = e.data) == null ? void 0 : F.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
|
|
3949
|
-
}
|
|
3950
|
-
), {
|
|
3951
|
-
onAllRowSelect: nn,
|
|
3952
|
-
onRowSelect: on,
|
|
3953
|
-
onNestedRowSelect: sn,
|
|
3954
|
-
onDeselectAll: ln,
|
|
3955
|
-
allItemsSelectedState: an,
|
|
3956
|
-
selectedItems: Je,
|
|
3957
|
-
selectionState: rn
|
|
3958
|
-
} = Oo(
|
|
3959
|
-
A,
|
|
3960
|
-
V,
|
|
3961
|
-
m,
|
|
3962
|
-
e.getDataItemId,
|
|
3963
|
-
e.isDataItemDisabled,
|
|
3964
|
-
Xe,
|
|
3965
|
-
U
|
|
3966
|
-
), cn = C(() => {
|
|
3967
|
-
var F, K, Re, Ae;
|
|
3968
|
-
return {
|
|
3969
|
-
filtered: ((F = y.value) == null ? void 0 : F.isClearAllVisible) || ((K = y.value) == null ? void 0 : K.isResetAllVisible) || !!e.filterSearchTerm,
|
|
3970
|
-
allRowsVisible: ((Re = U.value) == null ? void 0 : Re.size) >= ((Ae = U.value) == null ? void 0 : Ae.totalCount)
|
|
3971
|
-
};
|
|
3972
|
-
}), { navigationInput: dn } = No(
|
|
3973
|
-
p,
|
|
3974
|
-
d,
|
|
3975
|
-
ze,
|
|
3976
|
-
f,
|
|
3977
|
-
T,
|
|
3978
|
-
R
|
|
3979
|
-
), { isLazyLoad: Ie, isInfiniteScroll: un, verticalScrollPosition: Qe, emitLazyLoadEvent: fn } = Mo(
|
|
3980
|
-
O,
|
|
3981
|
-
u,
|
|
3982
|
-
a,
|
|
3983
|
-
I,
|
|
3984
|
-
V
|
|
3985
|
-
), {
|
|
3986
|
-
updateScrollPosition: gn,
|
|
3987
|
-
updateScrollPositionOnFrozenColumnsNavigation: mn,
|
|
3988
|
-
syncVirtualScrollerWithBody: _n,
|
|
3989
|
-
hasLeftOverflow: Ue,
|
|
3990
|
-
hasRightOverflow: et,
|
|
3991
|
-
horizontalScrollbarConditionalStyles: Cn
|
|
3992
|
-
} = Po(
|
|
3993
|
-
a,
|
|
3994
|
-
r,
|
|
3995
|
-
Qe,
|
|
3996
|
-
b,
|
|
3997
|
-
S,
|
|
3998
|
-
we,
|
|
3999
|
-
{
|
|
4000
|
-
isLazyLoad: Ie,
|
|
4001
|
-
pagination: U,
|
|
4002
|
-
stickyPagination: P,
|
|
4003
|
-
isDataGridTemplate: k
|
|
4004
|
-
}
|
|
4005
|
-
), tt = () => {
|
|
4006
|
-
y.value.isClearAllVisible ? y.value.clearAllFilters() : y.value.isResetAllVisible && y.value.resetAllFilters();
|
|
4007
|
-
}, vn = C(() => {
|
|
4008
|
-
var F, K;
|
|
4009
|
-
return {
|
|
4010
|
-
...e.emptyState,
|
|
4011
|
-
variant: ((F = e.emptyState) == null ? void 0 : F.variant) === "embedded" || ((K = e.emptyState) == null ? void 0 : K.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
4012
|
-
};
|
|
4013
|
-
}), hn = C(() => ({
|
|
4014
|
-
[`b-data-grid--${ge.OUTLINE}`]: e.outline,
|
|
4015
|
-
[`b-data-grid--${ge.SCROLL}`]: e.fitContent || Ie.value,
|
|
4016
|
-
[`b-data-grid--${ge.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
4017
|
-
[`b-data-grid--${ge.OVERFLOW_SHADOW_LEFT}`]: Ue.value && !$.value,
|
|
4018
|
-
[`b-data-grid--${ge.OVERFLOW_SHADOW_RIGHT}`]: et.value && e.rowActions === void 0,
|
|
4019
|
-
[`b-data-grid--${ge.NO_SPACING_TOP}`]: e.noSpacingTop,
|
|
4020
|
-
[`b-data-grid--${ge.FIT_CONTENT}`]: e.fitContent,
|
|
4021
|
-
[`b-data-grid--${ge.ZEBRA_ROWS}`]: Ye.value,
|
|
4022
|
-
"b-data-grid--lazy-load": Ie.value
|
|
4023
|
-
})), pn = C(() => ({
|
|
4024
|
-
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
4025
|
-
})), bn = C(() => Be.value.findIndex((F) => F.columnSet.length)), wn = C(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && $.value === 1) || Ue.value), Sn = C(() => ({
|
|
4026
|
-
"b-data-grid__filters--sticky": !!e.stickyFilters || k
|
|
4027
|
-
})), Rn = C(() => {
|
|
4028
|
-
var F, K, Re, Ae, lt, at;
|
|
4029
|
-
return {
|
|
4030
|
-
"b-data-grid__pagination--padding-left-unset": ((Re = (K = (F = e.columns) == null ? void 0 : F[0]) == null ? void 0 : K.padding) == null ? void 0 : Re.left) === !1,
|
|
4031
|
-
"b-data-grid__pagination--padding-right-unset": ((at = (lt = (Ae = e.columns) == null ? void 0 : Ae[e.columns.length - 1]) == null ? void 0 : lt.padding) == null ? void 0 : at.right) === !1,
|
|
4032
|
-
"b-data-grid__pagination--sticky": !!e.stickyPagination || k
|
|
4033
|
-
};
|
|
4034
|
-
}), An = (F) => {
|
|
4035
|
-
const K = F;
|
|
4036
|
-
F !== null && (K != null && K.columnHeaderRefs) && Object.entries(K == null ? void 0 : K.columnHeaderRefs).forEach(([Re, Ae]) => {
|
|
4037
|
-
d.value[Re] = Ae;
|
|
4038
|
-
});
|
|
4039
|
-
}, En = (F, K) => {
|
|
4040
|
-
e.allowRowClicks && V(M.ROW_CLICK, F, K);
|
|
4041
|
-
}, yn = (F) => {
|
|
4042
|
-
V(M.NESTED_CONTENT_TOGGLED, F), ee(() => ne());
|
|
4043
|
-
}, Ln = (F) => {
|
|
4044
|
-
W.value = F;
|
|
4045
|
-
}, Tn = C(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), nt = C(() => {
|
|
4046
|
-
var F;
|
|
4047
|
-
return ((F = Je.value) == null ? void 0 : F.length) ?? 0;
|
|
4048
|
-
}), On = C(() => e.bulkActions && nt.value > 0), In = (F) => V(M.COLUMN_RESIZE, F), Nn = (F) => {
|
|
4049
|
-
V(M.UPDATE_SORT_BY, F), V(M.SORT, F);
|
|
4050
|
-
}, Dn = (F, K) => {
|
|
4051
|
-
V(M.NAVIGATE, F), V(M.UPDATE_PAGINATION, {
|
|
4052
|
-
...e.pagination,
|
|
4053
|
-
size: K,
|
|
4054
|
-
page: F
|
|
4055
|
-
});
|
|
4056
|
-
}, Mn = (F) => {
|
|
4057
|
-
V(M.ITEMS_PAGE, F);
|
|
4058
|
-
}, Fn = () => {
|
|
4059
|
-
V(M.FILTER_SEARCH_CLEAR);
|
|
4060
|
-
}, xn = (F) => {
|
|
4061
|
-
V(M.UPDATE_FILTER_SEARCH_TERM, F), V(M.FILTER_SEARCH_INPUT, F);
|
|
4062
|
-
}, ot = C(() => N.value.some((F) => F.mandatory));
|
|
4063
|
-
ot.value || Dt(
|
|
4064
|
-
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
4065
|
-
);
|
|
4066
|
-
const st = me(Yn, () => null);
|
|
4067
|
-
return st(e.tabTitle), Ne($t, ke(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: tt }), { __sfc: !0, props: e, slots: s, hasSlot: l, body: a, columnsRef: r, columnHeaderRefs: d, dataGridUid: g, gridcellRefs: p, filtersRef: v, filterBarRef: y, paginationContainerRef: S, verticalScrollPositionRef: u, virtualHorizontalScrollbarRef: b, allowColumnDragAndDrop: E, columns: N, columnPanel: R, data: m, lazyLoadType: O, loading: I, hasNestedContent: _, hasNestedRows: i, selectable: f, selection: A, selectableAcrossPages: D, stickyPagination: P, outline: x, pagination: U, zebraRows: q, hoveredRowIndex: W, t: G, frozenColumnsLength: $, MOBILE_BREAKPOINT: B, dataGridRef: oe, width: _e, isSmallContainer: ve, isTouchDevice: he, registerDatagridInDataGridTemplate: de, additionalContentSlotRef: L, isDataGridTemplate: k, stickyTabs: J, tabsRef: c, stickyAdditionalContent: z, columnDefs: Z, onColumnWidthOverride: te, gridRowWidthStyle: re, isMeasuringColumnWidths: Le, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: pe, localColumnsState: be, totalWidthOfAllColumns: we, rowActionsMaxWidth: h, hasRowActions: T, registerRowCellRefs: H, rebuildGridcellRefs: ne, definedEmitsFunction: n, emit: V, stickyFiltersHeight: ue, computedStickyFiltersTopPosition: Se, columnHeadersHeight: Ke, computedColumnHeadersTopPosition: Vt, sortedColumns: ze, columnSets: Be, isOnlyOneVisibleColumn: Ht, internalZebraRows: Ye, onConfigSettingsColumnsUpdate: Zt, onConfigSettingsColumnUpdate: jt, onConfigSettingsCondensedUpdate: qt, onConfigSettingsZebraRowsUpdate: Kt, hoveredOverColumn: Yt, hoveredOverColumnState: Xt, draggingColumns: Jt, draggingEventsForColumns: Qt, draggingEventsForRowCell: en, onMoveColumnByOffset: tn, selectableAcrossPagesComputed: Xe, onAllRowSelect: nn, onRowSelect: on, onNestedRowSelect: sn, onDeselectAll: ln, allItemsSelectedState: an, selectedItems: Je, selectionState: rn, visibleRowsState: cn, navigationInput: dn, isLazyLoad: Ie, isInfiniteScroll: un, verticalScrollPosition: Qe, emitLazyLoadEvent: fn, updateScrollPosition: gn, updateScrollPositionOnFrozenColumnsNavigation: mn, syncVirtualScrollerWithBody: _n, hasLeftOverflow: Ue, hasRightOverflow: et, horizontalScrollbarConditionalStyles: Cn, onEmptyStateClearResetButtonClick: tt, limitedEmptyStateProps: vn, conditionalGridClasses: hn, conditionalGridBodyClasses: pn, computedColumnPanelAlignment: bn, showFrozenColumnsSeparator: wn, conditionalFilterClasses: Sn, conditionalPaginationClasses: Rn, registerColumnHeaderRefs: An, onRowClick: En, onNestedContentToggled: yn, onCellHover: Ln, ariaGridRole: Tn, itemsSelectedCounter: nt, showActionBar: On, onColumnResized: In, onSort: Nn, onPaginationNavigate: Dn, onItemsPerPageChange: Mn, onSearchTermCleared: Fn, onSearchTermInput: xn, hasMandatoryColumn: ot, setTitle: st, BentoActionBar: Hn, BentoPagination: Zn, BentoLoadingIndicator: He, BentoTypography: ye, BentoDataGridConfigSettings: Ds, DataGridColumns: _s, DataGridLazyLoad: Bs, DataGridRow: rl, handleClipboard: Bo, BentoDatagridEvent: M, BentoFilterBar: qn, BentoEmptyState: Kn };
|
|
4068
|
-
}
|
|
4069
|
-
});
|
|
4070
|
-
var Kl = function() {
|
|
4071
|
-
var s;
|
|
4072
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
4073
|
-
return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "data-testid": "data-grid", "aria-live": "polite", "aria-busy": e.loading }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition }, attrs: { "aria-controls": e.dataGridUid, "aria-label": e.t("filterBar"), role: "region" } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__wrapper", style: { top: e.computedColumnHeadersTopPosition }, attrs: { id: e.dataGridUid, role: e.ariaGridRole, "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": t.emptyState ? e.t("noResults") : null } }, [n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [e.columnPanel ? n("div", { attrs: { role: "row" } }, [n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { role: "gridcell", columns: e.localColumnsState, condensed: t.condensed, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } })], 1) : t._e(), n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, d) {
|
|
4074
|
-
var g;
|
|
4075
|
-
return [l != null && l.length || !r && e.rowActionsMaxWidth ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (p) => e.registerColumnHeaderRefs(p), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": r, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": d === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((g = e.data) == null ? void 0 : g.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "visible-rows-state": e.visibleRowsState, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(p) {
|
|
4076
|
-
e.hoveredOverColumn = p;
|
|
4077
|
-
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(p) {
|
|
4078
|
-
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
4079
|
-
}, "select-all-current-results": function(p) {
|
|
4080
|
-
return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
|
|
4081
|
-
}, "deselect-all-current-results": function(p) {
|
|
4082
|
-
return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
|
|
4083
|
-
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(p, v) {
|
|
4084
|
-
return { key: v, fn: function(y) {
|
|
4085
|
-
return [t._t(v, null, null, y)];
|
|
4086
|
-
} };
|
|
4087
|
-
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
4088
|
-
})], 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 } }, [((s = e.data) == null ? void 0 : s.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) {
|
|
4089
|
-
var r, d;
|
|
4090
|
-
return n(e.DataGridRow, { key: a, ref: (g) => e.registerRowCellRefs(g, 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 === ((r = e.data) == null ? void 0 : r.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": (d = e.data) == null ? void 0 : d.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(g) {
|
|
4091
|
-
return e.emit(e.BentoDatagridEvent.CELL_FOCUS, g);
|
|
4092
|
-
}, "nested-content-toggled": function(g) {
|
|
4093
|
-
return e.onNestedContentToggled(g);
|
|
4094
|
-
}, "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(g, p) {
|
|
4095
|
-
return { key: p, fn: function(v) {
|
|
4096
|
-
return [t._t(p, null, null, v)];
|
|
4097
|
-
} };
|
|
4098
|
-
})], null, !0) });
|
|
4099
|
-
})], 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);
|
|
4100
|
-
}, Yl = [], Xl = /* @__PURE__ */ X(
|
|
4101
|
-
ql,
|
|
4102
|
-
Kl,
|
|
4103
|
-
Yl,
|
|
4104
|
-
!1,
|
|
4105
|
-
null,
|
|
4106
|
-
"d2adefa7"
|
|
4107
|
-
);
|
|
4108
|
-
const qa = Xl.exports;
|
|
4109
|
-
export {
|
|
4110
|
-
$e as B,
|
|
4111
|
-
Va as a,
|
|
4112
|
-
Ha as b,
|
|
4113
|
-
Za as c,
|
|
4114
|
-
qa as d,
|
|
4115
|
-
ja as e,
|
|
4116
|
-
De as f,
|
|
4117
|
-
M as g,
|
|
4118
|
-
Ee as h,
|
|
4119
|
-
ge as i
|
|
4120
|
-
};
|
|
4121
|
-
//# sourceMappingURL=data-grid.BDXQ_kKQ.js.map
|