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