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