@adyen/bento-vue3 1.84.2 → 1.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +244 -130
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +5 -0
- package/dist/ai-tag.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-tag.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.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/draggable-handle.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
- package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
- package/dist/chunks/action-bar.BlhZoFfL.js +209 -0
- package/dist/chunks/action-bar.BlhZoFfL.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
- package/dist/chunks/ai-button.PAbhTT01.js +57 -0
- package/dist/chunks/ai-button.PAbhTT01.js.map +1 -0
- package/dist/chunks/ai-tag.CqMBHSfn.js +131 -0
- package/dist/chunks/ai-tag.CqMBHSfn.js.map +1 -0
- package/dist/chunks/alert.BYcw-u3b.js.map +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/arrow-left.DoP6zFsY.js +29 -0
- package/dist/chunks/arrow-left.DoP6zFsY.js.map +1 -0
- package/dist/chunks/arrow-right.BVd1Dgd8.js +29 -0
- package/dist/chunks/arrow-right.BVd1Dgd8.js.map +1 -0
- package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js +44 -0
- package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js.map +1 -0
- package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
- package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
- package/dist/chunks/{base-modal.D3GyeCFT.js → base-modal.CNETR72d.js} +5 -5
- package/dist/chunks/{base-modal.D3GyeCFT.js.map → base-modal.CNETR72d.js.map} +1 -1
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
- package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js → button-actions-with-menu.DY0pTtk-.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js.map → button-actions-with-menu.DY0pTtk-.js.map} +1 -1
- package/dist/chunks/{button-actions.Crj4QFAd.js → button-actions.Dk8xU2cz.js} +2 -2
- package/dist/chunks/{button-actions.Crj4QFAd.js.map → button-actions.Dk8xU2cz.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.CSp48LJt.js.map +1 -1
- package/dist/chunks/{calendar.DKPx_cQU.js → calendar.Dbc0yjyg.js} +106 -100
- package/dist/chunks/{calendar.DKPx_cQU.js.map → calendar.Dbc0yjyg.js.map} +1 -1
- package/dist/chunks/{card.C_03IYJe.js → card.C7LbwK7Q.js} +2 -2
- package/dist/chunks/{card.C_03IYJe.js.map → card.C7LbwK7Q.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DZrhxIHp.js → checkbox-group.CCpe-S-E.js} +4 -4
- package/dist/chunks/{checkbox-group.DZrhxIHp.js.map → checkbox-group.CCpe-S-E.js.map} +1 -1
- package/dist/chunks/{checkbox.BWgWtiLJ.js → checkbox.A35e7MsN.js} +3 -3
- package/dist/chunks/{checkbox.BWgWtiLJ.js.map → checkbox.A35e7MsN.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
- package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
- package/dist/chunks/{code-snippet.BX3Yeo0x.js → code-snippet.DKkTjYdC.js} +4 -4
- package/dist/chunks/{code-snippet.BX3Yeo0x.js.map → code-snippet.DKkTjYdC.js.map} +1 -1
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
- package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
- package/dist/chunks/{controls-group.DpFv8c4E.js → controls-group.BHOKajou.js} +2 -2
- package/dist/chunks/{controls-group.DpFv8c4E.js.map → controls-group.BHOKajou.js.map} +1 -1
- package/dist/chunks/{copy.xg9ElNxd.js → copy.CgITv6wr.js} +3 -3
- package/dist/chunks/{copy.xg9ElNxd.js.map → copy.CgITv6wr.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js.map +1 -1
- package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
- package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
- package/dist/chunks/cross.B92GxFTY.js.map +1 -1
- package/dist/chunks/currency.DijmAkAB.js.map +1 -1
- package/dist/chunks/{dashboard-section.D_k3_Z2T.js → dashboard-section.CrXdP_MQ.js} +3 -3
- package/dist/chunks/{dashboard-section.D_k3_Z2T.js.map → dashboard-section.CrXdP_MQ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.B0z2ZZh7.js → dashed-underline.BzppJBtk.js} +3 -3
- package/dist/chunks/{dashed-underline.B0z2ZZh7.js.map → dashed-underline.BzppJBtk.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DdIrvOXp.js → data-grid-template.DFjdgxwb.js} +3 -3
- package/dist/chunks/{data-grid-template.DdIrvOXp.js.map → data-grid-template.DFjdgxwb.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.CqtJp9rE.js → data-grid.KkCt0Bgm.js} +1064 -1065
- package/dist/chunks/data-grid.KkCt0Bgm.js.map +1 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -1
- package/dist/chunks/{date-picker.DGIwFh6T.js → date-picker.dQuj_OF_.js} +16 -16
- package/dist/chunks/{date-picker.DGIwFh6T.js.map → date-picker.dQuj_OF_.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.BAKR_gDf.js +1100 -0
- package/dist/chunks/date-range-picker.BAKR_gDf.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date.CL55prL0.js.map +1 -1
- package/dist/chunks/de.DvtL0g75.js.map +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
- package/dist/chunks/dialog-page.CF10AQQ3.js +158 -0
- package/dist/chunks/dialog-page.CF10AQQ3.js.map +1 -0
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
- package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
- package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
- package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
- package/dist/chunks/{dropdown-tag.Bf6TiNZw.js → dropdown-tag.CBgns9Y3.js} +3 -3
- package/dist/chunks/{dropdown-tag.Bf6TiNZw.js.map → dropdown-tag.CBgns9Y3.js.map} +1 -1
- package/dist/chunks/{dropdown.Dct8gr_q.js → dropdown.DmzMGz30.js} +22 -22
- package/dist/chunks/{dropdown.Dct8gr_q.js.map → dropdown.DmzMGz30.js.map} +1 -1
- package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
- package/dist/chunks/es.bz0mzkMq.js.map +1 -1
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
- package/dist/chunks/events.BQOQSSb7.js.map +1 -1
- package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
- package/dist/chunks/{field-label.D7vU2Icm.js → field-label.OurHuGZS.js} +2 -2
- package/dist/chunks/{field-label.D7vU2Icm.js.map → field-label.OurHuGZS.js.map} +1 -1
- package/dist/chunks/{file-uploader.BmBKLzIx.js → file-uploader.CQgu9YIY.js} +4 -4
- package/dist/chunks/file-uploader.CQgu9YIY.js.map +1 -0
- package/dist/chunks/filter-bar.BJmaoSr2.js +4117 -0
- package/dist/chunks/filter-bar.BJmaoSr2.js.map +1 -0
- package/dist/chunks/{focus-trap.BaHvK7aT.js → focus-trap.DH57j-Ov.js} +2 -2
- package/dist/chunks/{focus-trap.BaHvK7aT.js.map → focus-trap.DH57j-Ov.js.map} +1 -1
- package/dist/chunks/{footer-actions.BqNvwVk7.js → footer-actions.BMggOsip.js} +2 -2
- package/dist/chunks/{footer-actions.BqNvwVk7.js.map → footer-actions.BMggOsip.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.CPsEzRzS.js → form-layout-title.wnvpIbOe.js} +2 -2
- package/dist/chunks/{form-layout-title.CPsEzRzS.js.map → form-layout-title.wnvpIbOe.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
- package/dist/chunks/grab.B63hmf-_.js +26 -0
- package/dist/chunks/grab.B63hmf-_.js.map +1 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
- package/dist/chunks/{header-meta.PysBmkSU.js → header-meta.CkLmuprc.js} +8 -8
- package/dist/chunks/{header-meta.PysBmkSU.js.map → header-meta.CkLmuprc.js.map} +1 -1
- package/dist/chunks/{header-with-views.XzJCg2Ln.js → header-with-views.BXZmqtnz.js} +612 -630
- package/dist/chunks/header-with-views.BXZmqtnz.js.map +1 -0
- package/dist/chunks/{header.yMTOq8MR.js → header.RiaBKasj.js} +3 -3
- package/dist/chunks/{header.yMTOq8MR.js.map → header.RiaBKasj.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/{index.E60QniEu.js → index.CL07S4Wa.js} +3 -3
- package/dist/chunks/{index.E60QniEu.js.map → index.CL07S4Wa.js.map} +1 -1
- package/dist/chunks/index.pdBj0KQU.js.map +1 -1
- package/dist/chunks/{info-icon.BQDGteil.js → info-icon.B6wfo65e.js} +3 -3
- package/dist/chunks/{info-icon.BQDGteil.js.map → info-icon.B6wfo65e.js.map} +1 -1
- package/dist/chunks/info.BKwey1HA.js.map +1 -1
- package/dist/chunks/{input-field-password.Drp3Gn3x.js → input-field-password.ClyJRN6h.js} +6 -6
- package/dist/chunks/{input-field-password.Drp3Gn3x.js.map → input-field-password.ClyJRN6h.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CcCrGAZb.js → input-field-phone-number.CUdzwXz0.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CcCrGAZb.js.map → input-field-phone-number.CUdzwXz0.js.map} +1 -1
- package/dist/chunks/{input-field.CBegTqdQ.js → input-field.CFNofr-W.js} +3 -3
- package/dist/chunks/{input-field.CBegTqdQ.js.map → input-field.CFNofr-W.js.map} +1 -1
- package/dist/chunks/{inspector.Dox76eqN.js → inspector.I4-8J_fd.js} +3 -3
- package/dist/chunks/{inspector.Dox76eqN.js.map → inspector.I4-8J_fd.js.map} +1 -1
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
- package/dist/chunks/isSameWeek.5sjhTHiU.js +14 -0
- package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.5sjhTHiU.js.map} +1 -1
- package/dist/chunks/{it.Oaj6BklL.js → it.DEniTaO2.js} +2 -2
- package/dist/chunks/{it.Oaj6BklL.js.map → it.DEniTaO2.js.map} +1 -1
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
- package/dist/chunks/{layout-row.CX8kV_w0.js → layout-row.Ccw24NzW.js} +3 -3
- package/dist/chunks/layout-row.Ccw24NzW.js.map +1 -0
- package/dist/chunks/link.BLCQlEZU.js.map +1 -1
- package/dist/chunks/{listbox-option-tag.BQZJF00q.js → listbox-option-tag.BHQiD5oC.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BQZJF00q.js.map → listbox-option-tag.BHQiD5oC.js.map} +1 -1
- package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
- package/dist/chunks/match.CMBZxEs9.js.map +1 -1
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.BXjxVsAq.js → modal-fullscreen.f445bZ94.js} +4 -4
- package/dist/chunks/{modal-fullscreen.BXjxVsAq.js.map → modal-fullscreen.f445bZ94.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
- package/dist/chunks/{pagination.BofKoYTB.js → pagination.DuRU9Xg_.js} +2 -2
- package/dist/chunks/{pagination.BofKoYTB.js.map → pagination.DuRU9Xg_.js.map} +1 -1
- package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
- package/dist/chunks/popover.types.BbYumG-N.js +6 -0
- package/dist/chunks/{popover.types.DgfeurkF.js.map → popover.types.BbYumG-N.js.map} +1 -1
- package/dist/chunks/{popper-container.I9gzp1NR.js → popper-container.DdG_YvVF.js} +2 -2
- package/dist/chunks/{popper-container.I9gzp1NR.js.map → popper-container.DdG_YvVF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BIRH5sVX.js → promo-banner.DzIYjBfG.js} +2 -2
- package/dist/chunks/{promo-banner.BIRH5sVX.js.map → promo-banner.DzIYjBfG.js.map} +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
- package/dist/chunks/{radio-group.BqsQRDjs.js → radio-group.EqsvAKt2.js} +4 -4
- package/dist/chunks/{radio-group.BqsQRDjs.js.map → radio-group.EqsvAKt2.js.map} +1 -1
- package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
- package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Bafyvjc3.js → rich-text-editor.-JS_rIjs.js} +4 -4
- package/dist/chunks/{rich-text-editor.Bafyvjc3.js.map → rich-text-editor.-JS_rIjs.js.map} +1 -1
- package/dist/chunks/{search-bar.DrkPxPDP.js → search-bar.DPc0omnd.js} +3 -3
- package/dist/chunks/{search-bar.DrkPxPDP.js.map → search-bar.DPc0omnd.js.map} +1 -1
- package/dist/chunks/search.PczW-onY.js.map +1 -1
- package/dist/chunks/{secondary-nav.C0_VfFa9.js → secondary-nav.BGKR8l0u.js} +3 -3
- package/dist/chunks/{secondary-nav.C0_VfFa9.js.map → secondary-nav.BGKR8l0u.js.map} +1 -1
- package/dist/chunks/{segmented-control.CFlHfj3N.js → segmented-control.CFPAl4HD.js} +2 -2
- package/dist/chunks/{segmented-control.CFlHfj3N.js.map → segmented-control.CFPAl4HD.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.DNPlEqEq.js → selection-card-group.BL0LTYhI.js} +4 -4
- package/dist/chunks/{selection-card-group.DNPlEqEq.js.map → selection-card-group.BL0LTYhI.js.map} +1 -1
- package/dist/chunks/show.CT4Augxb.js.map +1 -1
- package/dist/chunks/{sidepanel.RJihFo_R.js → sidepanel.sWMdYcUC.js} +5 -5
- package/dist/chunks/{sidepanel.RJihFo_R.js.map → sidepanel.sWMdYcUC.js.map} +1 -1
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.CM1KIrNi.js} +2 -2
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.CM1KIrNi.js.map} +1 -1
- package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
- package/dist/chunks/step.DpgnDx29.js.map +1 -1
- package/dist/chunks/{structured-list-item.B-hdp7rW.js → structured-list-item.Uky_MJPp.js} +4 -4
- package/dist/chunks/{structured-list-item.B-hdp7rW.js.map → structured-list-item.Uky_MJPp.js.map} +1 -1
- package/dist/chunks/success.DhioLvPD.js.map +1 -1
- package/dist/chunks/success.nNwxJRBS.js.map +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
- package/dist/chunks/{summary-grid.types.BVLRSBAF.js → summary-grid.types.R-TEtkgx.js} +5 -5
- package/dist/chunks/{summary-grid.types.BVLRSBAF.js.map → summary-grid.types.R-TEtkgx.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
- package/dist/chunks/tab.JPngc9oS.js.map +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/{tag.DFJIvNLs.js → tag.CNN_D55j.js} +2 -2
- package/dist/chunks/{tag.DFJIvNLs.js.map → tag.CNN_D55j.js.map} +1 -1
- package/dist/chunks/{textarea.CEDkF8BB.js → textarea.BGcYYD8C.js} +2 -2
- package/dist/chunks/{textarea.CEDkF8BB.js.map → textarea.BGcYYD8C.js.map} +1 -1
- package/dist/chunks/{timeline-item.BxGaSGLf.js → timeline-item.Cbd_rb9J.js} +6 -6
- package/dist/chunks/{timeline-item.BxGaSGLf.js.map → timeline-item.Cbd_rb9J.js.map} +1 -1
- package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
- package/dist/chunks/{tooltip.Nn3o8_vO.js → tooltip.CqV3Okcs.js} +2 -2
- package/dist/chunks/{tooltip.Nn3o8_vO.js.map → tooltip.CqV3Okcs.js.map} +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js} +28 -28
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map} +1 -1
- package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
- package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js → use-cached-selected-values.iGHt7ROs.js} +15 -15
- package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js.map → use-cached-selected-values.iGHt7ROs.js.map} +1 -1
- package/dist/chunks/use-country-items.JZCYNoW7.js.map +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
- package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.CgIooHto.js} +2 -2
- package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.CgIooHto.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +6 -5
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +163 -0
- package/dist/draggable-handle.js.map +1 -0
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +319 -315
- 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/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.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 +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +5 -0
- package/dist/styles/bento-light.css +5 -0
- package/dist/styles/bento.css +5 -0
- package/dist/styles/legacy.css +5 -0
- package/dist/styles/styleguide.css +5 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -7
- package/dist/chunks/action-bar.CriH15oF.js +0 -204
- package/dist/chunks/action-bar.CriH15oF.js.map +0 -1
- package/dist/chunks/ai-button.CDRPf7IY.js +0 -93
- package/dist/chunks/ai-button.CDRPf7IY.js.map +0 -1
- package/dist/chunks/constructNow.DuaJst0D.js +0 -8
- package/dist/chunks/data-grid.CqtJp9rE.js.map +0 -1
- package/dist/chunks/date-range-picker.Df9XyFMH.js +0 -1896
- package/dist/chunks/date-range-picker.Df9XyFMH.js.map +0 -1
- package/dist/chunks/dialog-page.DaZSlMzY.js +0 -181
- package/dist/chunks/dialog-page.DaZSlMzY.js.map +0 -1
- package/dist/chunks/file-uploader.BmBKLzIx.js.map +0 -1
- package/dist/chunks/filter-bar.DHRuvmx9.js +0 -3363
- package/dist/chunks/filter-bar.DHRuvmx9.js.map +0 -1
- package/dist/chunks/header-with-views.XzJCg2Ln.js.map +0 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
- package/dist/chunks/layout-row.CX8kV_w0.js.map +0 -1
- package/dist/chunks/popover.types.DgfeurkF.js +0 -6
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { ref as E, onMounted as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
1
|
+
import { ref as E, onMounted as Xe, nextTick as _e, watch as ye, onUnmounted as fl, reactive as pt, toRefs as Et, computed as C, watchEffect as Cn, onBeforeUpdate as _n, createElementBlock as p, openBlock as r, mergeProps as se, createCommentVNode as W, createElementVNode as L, toDisplayString as X, defineComponent as Ie, inject as Pe, normalizeClass as ce, Fragment as be, renderList as Ae, unref as o, toHandlers as ft, createBlock as H, withCtx as G, createVNode as Y, renderSlot as ze, withModifiers as bn, normalizeStyle as Fe, resolveComponent as Oe, withDirectives as yt, createTextVNode as ge, vShow as wn, toRef as bt, resolveDirective as Sn, Transition as gl, createSlots as Je, resolveDynamicComponent as Ye, useSlots as Rt, provide as rt, withKeys as zt, normalizeProps as pn, guardReactiveProps as En } from "vue";
|
|
2
|
+
import { C as yn } from "./checkmark-circle-fill._6-d40ru.js";
|
|
3
|
+
import { W as Rn } from "./warning-filled.BMGD0G-_.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { _ as ue } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as vl } from "./cross.B92GxFTY.js";
|
|
7
7
|
import { N as Pt } from "./minus-small.DYIyF5XW.js";
|
|
8
|
-
import { E as Ne, b as
|
|
9
|
-
import { d as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
8
|
+
import { E as Ne, b as Ln, T as An, B as Tn } from "./tooltip.CqV3Okcs.js";
|
|
9
|
+
import { d as On } from "./popper-container.DdG_YvVF.js";
|
|
10
|
+
import { B as Nn } from "./dashed-underline.BzppJBtk.js";
|
|
11
|
+
import { B as je, p as ml } from "./typography.6Oo5TOMP.js";
|
|
12
12
|
import { u as We } from "./index.pdBj0KQU.js";
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
13
|
+
import { B as In } from "./tag.CNN_D55j.js";
|
|
14
|
+
import { B as $n } from "./action-bar.BlhZoFfL.js";
|
|
15
|
+
import { B as Dn } from "./pagination.DuRU9Xg_.js";
|
|
15
16
|
import { B as ut } from "./loading-indicator.Db794TT5.js";
|
|
16
|
-
import { u as
|
|
17
|
+
import { u as Lt } from "./use-has-slot.B7eQSabc.js";
|
|
17
18
|
import { g as ct } from "./generate-uid.NJ8tVoha.js";
|
|
18
|
-
import { B as
|
|
19
|
-
import { B as
|
|
20
|
-
import { E as
|
|
21
|
-
import { D as
|
|
22
|
-
import { b as
|
|
19
|
+
import { B as _t } from "./filter-bar.BJmaoSr2.js";
|
|
20
|
+
import { B as kn } from "./empty-state.D_ifpeU-.js";
|
|
21
|
+
import { E as Un } from "./tabs.keys.B4qGhjp2.js";
|
|
22
|
+
import { D as Mn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
23
|
+
import { b as Fn } from "./index.CL07S4Wa.js";
|
|
23
24
|
import { o as At } from "./resize.Bqks3WUm.js";
|
|
24
|
-
import { f as
|
|
25
|
-
import { B as
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import { B as
|
|
29
|
-
import { u as
|
|
30
|
-
import { S as
|
|
31
|
-
import { B as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { A as
|
|
37
|
-
import { H as
|
|
25
|
+
import { f as wt, c as Tt, h as zn, a as Bt, b as Wt, O as Vt, D as Pn } from "./button-actions.Dk8xU2cz.js";
|
|
26
|
+
import { B as hl } from "./button.CSp48LJt.js";
|
|
27
|
+
import { B as Cl } from "./toggle.vl0ZwLhN.js";
|
|
28
|
+
import { B as Bn } from "./search-bar.DPc0omnd.js";
|
|
29
|
+
import { B as Wn } from "./directive.Cbdox5VL.js";
|
|
30
|
+
import { u as Vn } from "./dropdown.DmzMGz30.js";
|
|
31
|
+
import { S as Hn } from "./search.PczW-onY.js";
|
|
32
|
+
import { B as _l } from "./checkbox.A35e7MsN.js";
|
|
33
|
+
import { B as Gn } from "./info-icon.B6wfo65e.js";
|
|
34
|
+
import { D as xn } from "./use-cached-selected-values.iGHt7ROs.js";
|
|
35
|
+
import { B as Ht } from "./popover.types.BbYumG-N.js";
|
|
36
|
+
import { A as Zn } from "./arrow-left.DoP6zFsY.js";
|
|
37
|
+
import { A as jn } from "./arrow-right.BVd1Dgd8.js";
|
|
38
|
+
import { H as qn, S as Kn } from "./show.CT4Augxb.js";
|
|
38
39
|
import { l as Gt } from "./events.BQOQSSb7.js";
|
|
40
|
+
import { b as bl } from "./focus-trap.DH57j-Ov.js";
|
|
39
41
|
import { E as xt } from "./link.BLCQlEZU.js";
|
|
40
|
-
import { C as Zt } from "./copy.
|
|
41
|
-
import { C as
|
|
42
|
-
import { C as
|
|
43
|
-
import { u as
|
|
42
|
+
import { C as Zt } from "./copy.CgITv6wr.js";
|
|
43
|
+
import { C as Yn } from "./chevron-down.DCQ6ZLaq.js";
|
|
44
|
+
import { C as Jn } from "./chevron-up.kfuLRpZb.js";
|
|
45
|
+
import { u as Xn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
44
46
|
import "../assets/data-grid.css";
|
|
45
47
|
const jt = (e) => {
|
|
46
48
|
if (!e)
|
|
@@ -49,24 +51,24 @@ const jt = (e) => {
|
|
|
49
51
|
let i = e.offsetHeight;
|
|
50
52
|
const t = window.getComputedStyle(e, "::after");
|
|
51
53
|
if (t.content !== "none" && t.position === "absolute") {
|
|
52
|
-
const
|
|
53
|
-
!isNaN(
|
|
54
|
+
const l = parseFloat(t.height), n = parseFloat(t.bottom);
|
|
55
|
+
!isNaN(l) && !isNaN(n) && n < 0 && n + l <= 0 && (i += l);
|
|
54
56
|
}
|
|
55
57
|
const u = parseFloat(s.top);
|
|
56
58
|
return !isNaN(u) && u < 0 && (i += u), i;
|
|
57
59
|
}, qt = (e, s, i = E(!1), t = null) => {
|
|
58
60
|
const u = E(0);
|
|
59
|
-
let
|
|
61
|
+
let l = null, n = null;
|
|
60
62
|
const v = () => {
|
|
61
|
-
const f = s.value ? jt(e.value) : 0,
|
|
62
|
-
u.value = f +
|
|
63
|
+
const f = s.value ? jt(e.value) : 0, _ = i.value && t ? jt(t.value) : 0;
|
|
64
|
+
u.value = f + _;
|
|
63
65
|
};
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
+
return Xe(() => {
|
|
67
|
+
_e(() => {
|
|
66
68
|
const f = ye(
|
|
67
69
|
e,
|
|
68
70
|
() => {
|
|
69
|
-
e != null && e.value && (
|
|
71
|
+
e != null && e.value && (_e(() => f()), l = At(e.value, v), n = new MutationObserver(v), n.observe(e.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
70
72
|
},
|
|
71
73
|
{ immediate: !0 }
|
|
72
74
|
);
|
|
@@ -78,34 +80,34 @@ const jt = (e) => {
|
|
|
78
80
|
{ immediate: !0 }
|
|
79
81
|
);
|
|
80
82
|
});
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
+
}), fl(() => {
|
|
84
|
+
l == null || l.disconnect(), n == null || n.disconnect();
|
|
83
85
|
}), u;
|
|
84
86
|
};
|
|
85
87
|
var St = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(St || {}), ie = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL = "deselect-all", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(ie || {}), Me = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e.FIT_CONTENT = "fit-content", e.ZEBRA_ROWS = "zebra-rows", e))(Me || {}), Ge = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(Ge || {}), z = /* @__PURE__ */ ((e) => (e.CELL_FOCUS = "cell-focus", e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.SORT = "sort", e))(z || {}), dt = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(dt || {});
|
|
86
|
-
const
|
|
87
|
-
const i = E(null), t = E(!1), u = E(void 0),
|
|
88
|
-
let f = 0,
|
|
89
|
-
const
|
|
90
|
-
() => Object.fromEntries(e.value.map(({ field: O, width: k, minWidth:
|
|
88
|
+
const Qn = (e, s) => {
|
|
89
|
+
const i = E(null), t = E(!1), u = E(void 0), l = e.value.reduce((O, k) => (O[k.field] = null, O), {}), n = pt(l), v = Et(n);
|
|
90
|
+
let f = 0, _ = "";
|
|
91
|
+
const b = C(
|
|
92
|
+
() => Object.fromEntries(e.value.map(({ field: O, width: k, minWidth: R }) => [O, { width: k, minWidth: R }]))
|
|
91
93
|
);
|
|
92
|
-
|
|
94
|
+
Cn(() => u.value = b.value);
|
|
93
95
|
let N = null, D = null;
|
|
94
96
|
const S = (O) => {
|
|
95
|
-
const k = O.clientX - f,
|
|
96
|
-
u.value[
|
|
97
|
+
const k = O.clientX - f, R = _, M = u.value[R].width + k;
|
|
98
|
+
u.value[R].width = M > b.value[R].minWidth ? M : b.value[R].minWidth, s(ie.COLUMN_RESIZING, u.value), f = O.clientX;
|
|
97
99
|
}, c = () => {
|
|
98
|
-
t.value = !1, N == null || N(), D == null || D(),
|
|
99
|
-
field:
|
|
100
|
-
width: u.value[
|
|
101
|
-
}), N = null, D = null,
|
|
102
|
-
}, A = (O, k,
|
|
103
|
-
if (
|
|
104
|
-
if (t.value = !0,
|
|
100
|
+
t.value = !1, N == null || N(), D == null || D(), _ && s(ie.COLUMN_RESIZE, {
|
|
101
|
+
field: _,
|
|
102
|
+
width: u.value[_].width
|
|
103
|
+
}), N = null, D = null, _ = "", f = null;
|
|
104
|
+
}, A = (O, k, R) => {
|
|
105
|
+
if (R.preventDefault(), O) {
|
|
106
|
+
if (t.value = !0, R.buttons !== 1) {
|
|
105
107
|
c();
|
|
106
108
|
return;
|
|
107
109
|
}
|
|
108
|
-
|
|
110
|
+
_ = k, f = R.clientX, N = Gt(window, "mousemove", S), D = Gt(window, "mouseup", c);
|
|
109
111
|
}
|
|
110
112
|
};
|
|
111
113
|
return ye(
|
|
@@ -120,112 +122,112 @@ const Yl = (e, s) => {
|
|
|
120
122
|
isResizing: t,
|
|
121
123
|
columnHoverEventToEmitAfterResizing: i
|
|
122
124
|
};
|
|
123
|
-
},
|
|
124
|
-
const t = {}, u = [],
|
|
125
|
+
}, eo = 100, Kt = 50, Ee = "b-actions-column", to = 42, lo = 56, no = 56, oo = 80, so = 36, ao = 1, wl = 16, io = 20, ro = (e, s, i) => {
|
|
126
|
+
const t = {}, u = [], l = (v) => {
|
|
125
127
|
const f = t[v];
|
|
126
128
|
f && f.frozen !== !0 && (t[v].frozen = !0, u.push(v));
|
|
127
129
|
};
|
|
128
|
-
function
|
|
130
|
+
function n() {
|
|
129
131
|
if (u.length === i.length)
|
|
130
132
|
return;
|
|
131
133
|
const v = { min: {} };
|
|
132
|
-
let f = e,
|
|
134
|
+
let f = e, _ = s, b = 0;
|
|
133
135
|
u.forEach((N) => {
|
|
134
|
-
f -= t[N].computedWidth,
|
|
136
|
+
f -= t[N].computedWidth, _ -= t[N].flex;
|
|
135
137
|
});
|
|
136
138
|
for (let N = 0, D = i.length; N < D; N += 1) {
|
|
137
139
|
const S = i[N];
|
|
138
140
|
if (t[S.field] && t[S.field].frozen === !0)
|
|
139
141
|
continue;
|
|
140
|
-
let A = f /
|
|
141
|
-
A < S.minWidth && (
|
|
142
|
+
let A = f / _ * S.flex;
|
|
143
|
+
A < S.minWidth && (b += S.minWidth - A, A = S.minWidth, v.min[S.field] = !0), t[S.field] = {
|
|
142
144
|
frozen: !1,
|
|
143
145
|
computedWidth: A,
|
|
144
146
|
flex: S.flex
|
|
145
147
|
};
|
|
146
148
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
b > 0 ? Object.keys(v.min).forEach((N) => {
|
|
150
|
+
l(N);
|
|
149
151
|
}) : i.forEach(({ field: N }) => {
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
+
l(N);
|
|
153
|
+
}), n();
|
|
152
154
|
}
|
|
153
|
-
return
|
|
155
|
+
return n(), t;
|
|
154
156
|
}, Yt = (e, s) => {
|
|
155
|
-
let i =
|
|
156
|
-
return s && (i +=
|
|
157
|
-
},
|
|
158
|
-
var s, i, t, u,
|
|
159
|
-
return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (u = e == null ? void 0 : e.hasSelectableAcrossPages) != null && u.value ?
|
|
160
|
-
},
|
|
161
|
-
const
|
|
157
|
+
let i = ao;
|
|
158
|
+
return s && (i += wl * 2), e != null && e.offsetWidth ? e.offsetWidth + i : 0;
|
|
159
|
+
}, uo = (e) => {
|
|
160
|
+
var s, i, t, u, l;
|
|
161
|
+
return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (u = e == null ? void 0 : e.hasSelectableAcrossPages) != null && u.value ? oo : no : so : (l = e == null ? void 0 : e.hasSelectableAcrossPages) != null && l.value ? lo : to;
|
|
162
|
+
}, co = (e, s, i, t, u, l) => {
|
|
163
|
+
const n = E(e.value), v = E(s), f = E(i), _ = E(t), b = E(u), N = E(!1), D = E(0);
|
|
162
164
|
ye(
|
|
163
165
|
() => e.value,
|
|
164
166
|
(a, g) => {
|
|
165
167
|
var B, x;
|
|
166
168
|
const T = (a == null ? void 0 : a.map(({ field: Z }) => Z).toString()) === (g == null ? void 0 : g.map(({ field: Z }) => Z).toString());
|
|
167
|
-
if (!((B =
|
|
168
|
-
|
|
169
|
+
if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !T) {
|
|
170
|
+
n.value = e.value;
|
|
169
171
|
return;
|
|
170
172
|
}
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
return
|
|
173
|
+
n.value = ((x = n.value) == null ? void 0 : x.length) === 0 ? e.value : e.value.sort((Z, le) => {
|
|
174
|
+
const we = n.value.findIndex((fe) => fe.field === Z.field), ve = n.value.findIndex((fe) => fe.field === le.field);
|
|
175
|
+
return we === -1 ? 1 : ve === -1 ? -1 : we - ve;
|
|
174
176
|
});
|
|
175
177
|
}
|
|
176
178
|
);
|
|
177
179
|
const S = E();
|
|
178
180
|
let c = null;
|
|
179
181
|
const A = C(() => {
|
|
180
|
-
var
|
|
182
|
+
var we, ve, fe;
|
|
181
183
|
const a = [];
|
|
182
184
|
let g = 0, T = 0;
|
|
183
185
|
const B = {};
|
|
184
|
-
let x =
|
|
185
|
-
const Z =
|
|
186
|
-
if ((
|
|
187
|
-
const
|
|
186
|
+
let x = n.value.filter((ne) => ne.visible !== !1);
|
|
187
|
+
const Z = n.value.filter((ne) => ne.visible === !1);
|
|
188
|
+
if ((we = l == null ? void 0 : l.hasSelectableColumn) != null && we.value || (ve = l == null ? void 0 : l.hasNestedContent) != null && ve.value || (fe = l == null ? void 0 : l.hasNestedRows) != null && fe.value) {
|
|
189
|
+
const ne = uo(l);
|
|
188
190
|
x = [
|
|
189
191
|
{
|
|
190
192
|
field: Ee,
|
|
191
193
|
label: "",
|
|
192
|
-
minWidth:
|
|
193
|
-
width:
|
|
194
|
+
minWidth: ne,
|
|
195
|
+
width: ne,
|
|
194
196
|
frozen: !0,
|
|
195
197
|
padding: { left: !1, right: !1 }
|
|
196
198
|
},
|
|
197
199
|
...x
|
|
198
200
|
];
|
|
199
201
|
}
|
|
200
|
-
x.forEach((
|
|
201
|
-
const q = { ...
|
|
202
|
-
let
|
|
203
|
-
q.flex && q.flex > 0 ? (g += q.flex,
|
|
204
|
-
(q == null ? void 0 : q.width) ??
|
|
202
|
+
x.forEach((ne) => {
|
|
203
|
+
const q = { ...ne };
|
|
204
|
+
let Re;
|
|
205
|
+
q.flex && q.flex > 0 ? (g += q.flex, Re = 0, a.push(q)) : Re = Math.max(
|
|
206
|
+
(q == null ? void 0 : q.width) ?? eo,
|
|
205
207
|
(q == null ? void 0 : q.minWidth) ?? Kt
|
|
206
|
-
), T +=
|
|
208
|
+
), T += Re, q.width = Re, q.minWidth = (q == null ? void 0 : q.minWidth) ?? Kt, B[q.field] = q;
|
|
207
209
|
}), T += D.value;
|
|
208
|
-
const
|
|
210
|
+
const le = Math.max(S.value - T, 0);
|
|
209
211
|
if (g > 0 && S.value > 0) {
|
|
210
|
-
const
|
|
211
|
-
Object.keys(
|
|
212
|
-
B[q].width =
|
|
212
|
+
const ne = ro(le, g, a);
|
|
213
|
+
Object.keys(ne).forEach((q) => {
|
|
214
|
+
B[q].width = ne[q].computedWidth;
|
|
213
215
|
});
|
|
214
216
|
}
|
|
215
|
-
return Z.forEach((
|
|
216
|
-
const q = { ...
|
|
217
|
+
return Z.forEach((ne) => {
|
|
218
|
+
const q = { ...ne };
|
|
217
219
|
B[q.field] = q;
|
|
218
220
|
}), Object.values(B);
|
|
219
221
|
}), O = E(void 0), k = (a) => {
|
|
220
222
|
O.value = { ...O.value, ...a };
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
var Z,
|
|
223
|
+
}, R = async () => {
|
|
224
|
+
n.value.some((a) => a == null ? void 0 : a.autoWidth) && (N.value = !0, await _e(), await _e(), n == null || n.value.filter((a) => a == null ? void 0 : a.autoWidth).forEach(({ field: a, minWidth: g }) => {
|
|
225
|
+
var Z, le, we, ve;
|
|
224
226
|
const T = Yt(
|
|
225
|
-
(Z =
|
|
226
|
-
(
|
|
227
|
-
), B = (ve = (
|
|
228
|
-
(fe,
|
|
227
|
+
(Z = _.value) == null ? void 0 : Z[a],
|
|
228
|
+
(le = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : le.value
|
|
229
|
+
), B = (ve = (we = b.value) == null ? void 0 : we[a]) == null ? void 0 : ve.reduce(
|
|
230
|
+
(fe, ne) => Math.max(fe, Yt(ne)),
|
|
229
231
|
0
|
|
230
232
|
), x = Math.max(T, B ?? 0);
|
|
231
233
|
(g === void 0 || x > g) && k({
|
|
@@ -235,8 +237,8 @@ const Yl = (e, s) => {
|
|
|
235
237
|
});
|
|
236
238
|
}), N.value = !1);
|
|
237
239
|
};
|
|
238
|
-
ye([() =>
|
|
239
|
-
|
|
240
|
+
ye([() => n.value, () => v.value], async () => {
|
|
241
|
+
n.value.some((a) => a == null ? void 0 : a.autoWidth) && await R();
|
|
240
242
|
});
|
|
241
243
|
const M = C(
|
|
242
244
|
() => A.value.map((a) => {
|
|
@@ -257,29 +259,29 @@ const Yl = (e, s) => {
|
|
|
257
259
|
), h = C(() => ({
|
|
258
260
|
width: S.value > m.value ? "100%" : "fit-content"
|
|
259
261
|
}));
|
|
260
|
-
return
|
|
262
|
+
return Xe(() => {
|
|
261
263
|
var g;
|
|
262
|
-
const a =
|
|
263
|
-
|
|
264
|
+
const a = l != null && l.isDataGridTemplate ? io : 0;
|
|
265
|
+
_e(() => {
|
|
264
266
|
f.value && (S.value = f.value.getBoundingClientRect().width - a);
|
|
265
267
|
const T = ye(
|
|
266
268
|
f,
|
|
267
269
|
() => {
|
|
268
|
-
f.value && (
|
|
270
|
+
f.value && (_e(() => T()), c = At(f.value, ({ width: B }) => {
|
|
269
271
|
S.value = B - a;
|
|
270
272
|
}));
|
|
271
273
|
},
|
|
272
274
|
{ immediate: !0 }
|
|
273
275
|
);
|
|
274
276
|
}), (g = document == null ? void 0 : document.fonts) != null && g.ready ? document.fonts.ready.then(() => {
|
|
275
|
-
|
|
276
|
-
}) :
|
|
277
|
-
}),
|
|
277
|
+
R();
|
|
278
|
+
}) : R();
|
|
279
|
+
}), fl(() => {
|
|
278
280
|
c == null || c.disconnect();
|
|
279
|
-
}),
|
|
281
|
+
}), _n(() => {
|
|
280
282
|
var a;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
b.value && ((a = Object.keys(b.value)) == null ? void 0 : a.length) > 0 && Object.keys(b.value).forEach((T) => {
|
|
284
|
+
b.value[T] = [];
|
|
283
285
|
});
|
|
284
286
|
}), {
|
|
285
287
|
columnDefs: M,
|
|
@@ -287,67 +289,67 @@ const Yl = (e, s) => {
|
|
|
287
289
|
onColumnWidthOverride: k,
|
|
288
290
|
isMeasuringColumnWidths: N,
|
|
289
291
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
|
|
290
|
-
columns:
|
|
292
|
+
columns: n,
|
|
291
293
|
totalWidthOfAllColumns: m,
|
|
292
294
|
rowActionsMaxWidth: D
|
|
293
295
|
};
|
|
294
|
-
},
|
|
296
|
+
}, fo = (e, s, i, t, u, l, n) => {
|
|
295
297
|
const v = E(e.value ?? []), f = pt({
|
|
296
298
|
allItemsSelected: !1,
|
|
297
299
|
isIndeterminate: !1
|
|
298
|
-
}),
|
|
300
|
+
}), _ = C(
|
|
299
301
|
() => i.value.flatMap((a) => {
|
|
300
302
|
var g;
|
|
301
303
|
return [a, ((g = a == null ? void 0 : a.children) == null ? void 0 : g.length) > 0 ? a == null ? void 0 : a.children : []];
|
|
302
304
|
}).flat()
|
|
303
|
-
),
|
|
305
|
+
), b = C(
|
|
304
306
|
() => {
|
|
305
307
|
var a, g;
|
|
306
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g =
|
|
308
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.every((T) => v.value.includes(t(T))));
|
|
307
309
|
}
|
|
308
310
|
), N = C(
|
|
309
311
|
() => {
|
|
310
312
|
var a, g;
|
|
311
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g =
|
|
313
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((g = _.value) == null ? void 0 : g.filter((T) => !u(T)).every((T) => v.value.includes(t(T))));
|
|
312
314
|
}
|
|
313
315
|
), D = C(
|
|
314
316
|
() => {
|
|
315
317
|
var a, g;
|
|
316
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g =
|
|
318
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.some((T) => v.value.includes(t(T))));
|
|
317
319
|
}
|
|
318
320
|
), S = C(
|
|
319
321
|
() => {
|
|
320
322
|
var a, g;
|
|
321
|
-
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g =
|
|
323
|
+
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((g = _.value) != null && g.filter((T) => !u(T)).some((T) => v.value.includes(t(T))));
|
|
322
324
|
}
|
|
323
325
|
), c = C(() => {
|
|
324
326
|
var a;
|
|
325
|
-
return !(
|
|
327
|
+
return !(l != null && l.value) || ((a = n == null ? void 0 : n.value) == null ? void 0 : a.totalCount) === void 0 ? !1 : v.value.length >= n.value.totalCount && N.value;
|
|
326
328
|
}), A = () => {
|
|
327
329
|
s(z.SELECT, v.value), s(z.UPDATE_SELECTION, v.value);
|
|
328
330
|
}, O = (a) => {
|
|
329
331
|
var g, T;
|
|
330
|
-
v.value = a,
|
|
332
|
+
v.value = a, b.value ? (f.allItemsSelected = !0, f.isIndeterminate = !1) : (f.allItemsSelected = !1, f.isIndeterminate = ((g = v.value) == null ? void 0 : g.length) > 0 && ((T = i.value) == null ? void 0 : T.length) > 0 && i.value.some(
|
|
331
333
|
(B) => {
|
|
332
334
|
var x;
|
|
333
335
|
return v.value.includes(t(B)) || ((x = B == null ? void 0 : B.children) == null ? void 0 : x.some((Z) => v.value.includes(t(Z))));
|
|
334
336
|
}
|
|
335
337
|
));
|
|
336
338
|
}, k = (a) => {
|
|
337
|
-
|
|
339
|
+
_e(() => {
|
|
338
340
|
var T, B;
|
|
339
341
|
f.allItemsSelected = a;
|
|
340
|
-
const g = ((B = (T =
|
|
342
|
+
const g = ((B = (T = _.value) == null ? void 0 : T.filter(
|
|
341
343
|
(x) => !u(x) && ((x == null ? void 0 : x.children) === void 0 || x.children.every((Z) => !u(Z)))
|
|
342
344
|
)) == null ? void 0 : B.map((x) => t(x))) ?? [];
|
|
343
|
-
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...g])], f.isIndeterminate = !
|
|
345
|
+
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...g])], f.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !g.includes(x)), f.isIndeterminate = !D.value), A();
|
|
344
346
|
});
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
+
}, R = () => {
|
|
348
|
+
_e(() => {
|
|
347
349
|
O([]), A();
|
|
348
350
|
});
|
|
349
351
|
}, M = (a, g) => {
|
|
350
|
-
|
|
352
|
+
_e(() => {
|
|
351
353
|
var T;
|
|
352
354
|
O(((T = g == null ? void 0 : g.children) == null ? void 0 : T.length) > 0 ? m(a, g) : a), A();
|
|
353
355
|
});
|
|
@@ -356,19 +358,19 @@ const Yl = (e, s) => {
|
|
|
356
358
|
const T = t(g), B = (x = g.children) == null ? void 0 : x.filter((Z) => !u(Z)).map((Z) => t(Z));
|
|
357
359
|
if (a.includes(T)) {
|
|
358
360
|
const Z = a;
|
|
359
|
-
return B.forEach((
|
|
360
|
-
Z.includes(
|
|
361
|
+
return B.forEach((le) => {
|
|
362
|
+
Z.includes(le) || Z.push(le);
|
|
361
363
|
}), Z;
|
|
362
364
|
}
|
|
363
365
|
return a.filter((Z) => !B.includes(Z));
|
|
364
366
|
}, F = (a, g, T) => {
|
|
365
|
-
|
|
367
|
+
_e(() => {
|
|
366
368
|
var x, Z;
|
|
367
369
|
const B = t(g);
|
|
368
370
|
a.includes(t(T)) ? O(
|
|
369
|
-
!a.includes(B) && ((x = g == null ? void 0 : g.children) != null && x.every((
|
|
371
|
+
!a.includes(B) && ((x = g == null ? void 0 : g.children) != null && x.every((le) => a.includes(t(le)))) ? [...a, B] : a
|
|
370
372
|
) : O(
|
|
371
|
-
a.includes(B) && !((Z = g == null ? void 0 : g.children) != null && Z.every((
|
|
373
|
+
a.includes(B) && !((Z = g == null ? void 0 : g.children) != null && Z.every((le) => a.includes(t(le)))) ? a.filter((le) => le !== B) : a
|
|
372
374
|
), A();
|
|
373
375
|
});
|
|
374
376
|
}, h = C(() => c.value ? "all" : N.value ? "page" : !v.value || v.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
@@ -393,124 +395,124 @@ const Yl = (e, s) => {
|
|
|
393
395
|
onAllRowSelect: k,
|
|
394
396
|
onRowSelect: M,
|
|
395
397
|
onNestedRowSelect: F,
|
|
396
|
-
onDeselectAll:
|
|
398
|
+
onDeselectAll: R,
|
|
397
399
|
allItemsSelectedState: f,
|
|
398
400
|
selectedItems: v,
|
|
399
401
|
selectionState: h
|
|
400
402
|
};
|
|
401
|
-
},
|
|
403
|
+
}, go = (e, s, i) => ({ isSorting: (n) => e.value.some((v) => v.field === n), getSortingDirection: (n) => {
|
|
402
404
|
var v;
|
|
403
|
-
return (v = e.value.find((f) => f.field ===
|
|
404
|
-
}, sortByColumnField: (
|
|
405
|
-
var
|
|
406
|
-
if (!s.value.some((
|
|
405
|
+
return (v = e.value.find((f) => f.field === n)) == null ? void 0 : v.direction;
|
|
406
|
+
}, sortByColumnField: (n) => {
|
|
407
|
+
var _;
|
|
408
|
+
if (!s.value.some((b) => b.field === n && b.sortable))
|
|
407
409
|
return;
|
|
408
410
|
const f = [{
|
|
409
|
-
field:
|
|
410
|
-
direction: ((
|
|
411
|
+
field: n,
|
|
412
|
+
direction: ((_ = e.value.find((b) => b.field === n)) == null ? void 0 : _.direction) === Ge.ASCENDING ? Ge.DESCENDING : Ge.ASCENDING
|
|
411
413
|
}];
|
|
412
414
|
i("sort", f);
|
|
413
415
|
} });
|
|
414
416
|
var pe = ((e) => (e[e.ARROW_DOWN = Ne.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Ne.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Ne.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Ne.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Ne.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Ne.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Ne.END] = "END", e[e.HOME = Ne.HOME] = "HOME", e))(pe || {});
|
|
415
|
-
const et = "b-row-actions-column",
|
|
416
|
-
const
|
|
417
|
-
let
|
|
418
|
-
return u.value && (
|
|
419
|
-
...
|
|
417
|
+
const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
418
|
+
const n = C(() => l.value || t.value ? !0 : i.value.some((R) => R.infoIconTooltip || R.sortable)), v = C(() => {
|
|
419
|
+
let R = i.value.filter(({ visible: M }) => M !== !1);
|
|
420
|
+
return u.value && (R = [
|
|
421
|
+
...R,
|
|
420
422
|
{ field: et, label: "" }
|
|
421
|
-
]),
|
|
422
|
-
}), f = C(() => v.value.length),
|
|
423
|
+
]), R;
|
|
424
|
+
}), f = C(() => v.value.length), _ = C(() => {
|
|
423
425
|
if (!e.value)
|
|
424
426
|
return [];
|
|
425
|
-
const
|
|
426
|
-
if (!
|
|
427
|
+
const R = Object.keys(e.value)[0];
|
|
428
|
+
if (!R || !e.value[R])
|
|
427
429
|
return [];
|
|
428
430
|
const M = [];
|
|
429
|
-
if (
|
|
431
|
+
if (n.value)
|
|
430
432
|
for (const F of v.value) {
|
|
431
433
|
const h = s.value[F.field];
|
|
432
434
|
M.push(h);
|
|
433
435
|
}
|
|
434
|
-
const m = e.value[
|
|
436
|
+
const m = e.value[R].length;
|
|
435
437
|
for (let F = 0; F < m; F++)
|
|
436
438
|
for (const h of v.value) {
|
|
437
439
|
const a = e.value[h.field];
|
|
438
440
|
a != null && a[F] && M.push(a[F]);
|
|
439
441
|
}
|
|
440
442
|
return M;
|
|
441
|
-
}),
|
|
442
|
-
const F =
|
|
443
|
+
}), b = (R) => Math.floor(R / f.value), N = (R, M, m) => {
|
|
444
|
+
const F = _.value.length - 1, h = f.value - 1, a = b(R), g = R - f.value * a;
|
|
443
445
|
return {
|
|
444
|
-
[pe.PAGE_UP]: g + (
|
|
446
|
+
[pe.PAGE_UP]: g + (n.value ? f.value : 0),
|
|
445
447
|
[pe.PAGE_DOWN]: F - h + g,
|
|
446
448
|
[pe.END]: m ? F : f.value * a + h,
|
|
447
|
-
[pe.HOME]: m ?
|
|
449
|
+
[pe.HOME]: m ? n.value ? f.value : 0 : f.value * a
|
|
448
450
|
}[M];
|
|
449
|
-
}, D = (
|
|
450
|
-
const m =
|
|
451
|
+
}, D = (R, M) => {
|
|
452
|
+
const m = b(R), h = {
|
|
451
453
|
[pe.ARROW_DOWN]: f.value,
|
|
452
|
-
[pe.ARROW_UP]: m === 0 && !
|
|
454
|
+
[pe.ARROW_UP]: m === 0 && !n.value ? 0 : -f.value,
|
|
453
455
|
[pe.ARROW_LEFT]: -1,
|
|
454
456
|
[pe.ARROW_RIGHT]: 1
|
|
455
|
-
}[M], a =
|
|
456
|
-
return a < 0 || a >=
|
|
457
|
-
}, S = (
|
|
457
|
+
}[M], a = R + h;
|
|
458
|
+
return a < 0 || a >= _.value.length ? R : a;
|
|
459
|
+
}, S = (R) => [
|
|
458
460
|
pe.PAGE_UP,
|
|
459
461
|
pe.PAGE_DOWN,
|
|
460
462
|
pe.END,
|
|
461
463
|
pe.HOME
|
|
462
|
-
].includes(
|
|
463
|
-
const F =
|
|
464
|
+
].includes(R), c = (R, M, m) => {
|
|
465
|
+
const F = _.value.indexOf(R);
|
|
464
466
|
return S(M) ? N(F, M, m) : D(F, M);
|
|
465
|
-
}, A = (
|
|
466
|
-
if (!
|
|
467
|
+
}, A = (R, M, m) => {
|
|
468
|
+
if (!_.value.includes(R))
|
|
467
469
|
return;
|
|
468
|
-
const F = c(
|
|
469
|
-
|
|
470
|
-
}, O = (
|
|
470
|
+
const F = c(R, M, m);
|
|
471
|
+
_.value[F].focus();
|
|
472
|
+
}, O = (R) => R in pe;
|
|
471
473
|
return {
|
|
472
474
|
isNavigationKeyCode: O,
|
|
473
475
|
focusOnNextGridcell: A,
|
|
474
|
-
navigationInput: (
|
|
475
|
-
const { ctrlKey: M, key: m, target: F } =
|
|
476
|
+
navigationInput: (R) => {
|
|
477
|
+
const { ctrlKey: M, key: m, target: F } = R, h = m;
|
|
476
478
|
let a = F;
|
|
477
|
-
a.getAttribute("role") !== "menuitem" && (
|
|
479
|
+
a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a = F.closest('[role="gridcell"], [role="columnheader"]')), _.value.includes(a) && O(h) && A(a, h, M));
|
|
478
480
|
}
|
|
479
481
|
};
|
|
480
|
-
},
|
|
481
|
-
const
|
|
482
|
+
}, mo = 90, ho = (e, s, i, t, u) => {
|
|
483
|
+
const l = E(e), n = E(s), v = E(i), f = E(t), _ = C(() => l.value !== "none"), b = C(() => l.value === "automatic"), N = () => {
|
|
482
484
|
u(z.UPDATE_SHOW_MORE);
|
|
483
485
|
};
|
|
484
486
|
return ye(
|
|
485
|
-
() =>
|
|
487
|
+
() => n.value,
|
|
486
488
|
() => {
|
|
487
|
-
|
|
489
|
+
b.value && v.value.offsetHeight / n.value * 100 > mo && !f.value && N();
|
|
488
490
|
}
|
|
489
|
-
), { isLazyLoad:
|
|
490
|
-
},
|
|
491
|
-
const t = E(e), u = E(s),
|
|
491
|
+
), { isLazyLoad: _, isInfiniteScroll: b, verticalScrollPosition: n, emitLazyLoadEvent: N };
|
|
492
|
+
}, Co = (e, s, i) => {
|
|
493
|
+
const t = E(e), u = E(s), l = pt({
|
|
492
494
|
dragging: null,
|
|
493
495
|
dragToLeft: null,
|
|
494
496
|
target: null
|
|
495
|
-
}),
|
|
496
|
-
const A = t.value.findIndex((
|
|
497
|
+
}), n = (S, c = 0) => {
|
|
498
|
+
const A = t.value.findIndex((R) => R.field === S.field), O = A + c;
|
|
497
499
|
if (O < 0 || O > t.value.length - 1)
|
|
498
500
|
return;
|
|
499
501
|
const k = [...t.value];
|
|
500
502
|
k.splice(O, 0, k.splice(A, 1)[0]), i(z.COLUMNS, k), i(z.UPDATE_COLUMNS, k);
|
|
501
503
|
}, v = (S, c) => {
|
|
502
|
-
|
|
504
|
+
l.dragging = S, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
|
|
503
505
|
}, f = (S, c) => {
|
|
504
|
-
|
|
506
|
+
l.target = S;
|
|
505
507
|
const A = c.currentTarget.getBoundingClientRect(), O = A.left + A.width / 2, k = c.clientX ?? 0;
|
|
506
|
-
|
|
507
|
-
},
|
|
508
|
+
l.dragToLeft = k <= O;
|
|
509
|
+
}, _ = (S) => {
|
|
508
510
|
var c, A;
|
|
509
|
-
if (((c =
|
|
511
|
+
if (((c = l.dragging) == null ? void 0 : c.field) !== S.field) {
|
|
510
512
|
const O = t.value.findIndex((h) => {
|
|
511
513
|
var a;
|
|
512
|
-
return h.field === ((a =
|
|
513
|
-
}), k = t.value.findIndex((h) => h.field === S.field),
|
|
514
|
+
return h.field === ((a = l.dragging) == null ? void 0 : a.field);
|
|
515
|
+
}), k = t.value.findIndex((h) => h.field === S.field), R = l.dragToLeft ? k : k + 1, M = R > O ? R - 1 : R;
|
|
514
516
|
let m = [...t.value];
|
|
515
517
|
m.splice(
|
|
516
518
|
M === -1 ? 0 : M,
|
|
@@ -518,27 +520,27 @@ const et = "b-row-actions-column", co = (e, s, i, t, u, n) => {
|
|
|
518
520
|
m.splice(O, 1)[0]
|
|
519
521
|
);
|
|
520
522
|
const F = t.value.findIndex((h) => !(h != null && h.frozen));
|
|
521
|
-
((A =
|
|
523
|
+
((A = l.dragging) == null ? void 0 : A.frozen) !== S.frozen && R !== F && (m = m.map(
|
|
522
524
|
(h) => {
|
|
523
525
|
var a;
|
|
524
|
-
return ((a =
|
|
526
|
+
return ((a = l.dragging) == null ? void 0 : a.field) === h.field ? { ...h, frozen: !!(S != null && S.frozen) } : h;
|
|
525
527
|
}
|
|
526
528
|
)), i(z.COLUMNS, m), i(z.UPDATE_COLUMNS, m);
|
|
527
529
|
}
|
|
528
|
-
|
|
529
|
-
},
|
|
530
|
-
|
|
530
|
+
l.dragging = null, l.target = null;
|
|
531
|
+
}, b = () => {
|
|
532
|
+
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
531
533
|
}, N = C(() => u.value ? {
|
|
532
534
|
[ie.COLUMN_DRAG_START]: (S, c) => v(S, c),
|
|
533
535
|
[ie.COLUMN_DRAG_ENTER]: (S, c) => f(S, c),
|
|
534
|
-
[ie.COLUMN_DROP]: (S) =>
|
|
535
|
-
[ie.COLUMN_DRAG_END]: () =>
|
|
536
|
+
[ie.COLUMN_DROP]: (S) => _(S),
|
|
537
|
+
[ie.COLUMN_DRAG_END]: () => b()
|
|
536
538
|
} : {}), D = C(() => (S) => u.value ? {
|
|
537
539
|
dragenter: (c) => {
|
|
538
540
|
c.preventDefault(), f(S, c);
|
|
539
541
|
},
|
|
540
542
|
drop: () => {
|
|
541
|
-
|
|
543
|
+
_(S);
|
|
542
544
|
},
|
|
543
545
|
dragover: (c) => {
|
|
544
546
|
c.preventDefault();
|
|
@@ -546,32 +548,32 @@ const et = "b-row-actions-column", co = (e, s, i, t, u, n) => {
|
|
|
546
548
|
} : {});
|
|
547
549
|
return {
|
|
548
550
|
// Values
|
|
549
|
-
draggingColumns:
|
|
551
|
+
draggingColumns: l,
|
|
550
552
|
// Methods
|
|
551
553
|
draggingEventsForColumns: N,
|
|
552
554
|
draggingEventsForRowCell: D,
|
|
553
|
-
onMoveColumnByOffset:
|
|
555
|
+
onMoveColumnByOffset: n
|
|
554
556
|
};
|
|
555
|
-
},
|
|
556
|
-
const t = E(e), u = E(s.value),
|
|
557
|
+
}, _o = (e, s, i) => {
|
|
558
|
+
const t = E(e), u = E(s.value), l = C(
|
|
557
559
|
() => [...t.value].sort((c, A) => c.frozen === A.frozen ? 0 : c.frozen ? -1 : 1)
|
|
558
|
-
),
|
|
559
|
-
() =>
|
|
560
|
+
), n = C(
|
|
561
|
+
() => l.value.filter((c) => c.frozen && c.visible !== !1)
|
|
560
562
|
), v = C(
|
|
561
|
-
() =>
|
|
563
|
+
() => l.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
562
564
|
), f = C(
|
|
563
565
|
() => [
|
|
564
|
-
{ columnSet:
|
|
566
|
+
{ columnSet: n.value, id: "frozen", isFrozenColumns: !0 },
|
|
565
567
|
{ columnSet: v.value, id: "unfrozen" }
|
|
566
568
|
].filter(({ columnSet: c }) => c.length)
|
|
567
|
-
),
|
|
569
|
+
), _ = C(
|
|
568
570
|
() => t.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== Ee).length === 1
|
|
569
|
-
),
|
|
571
|
+
), b = (c) => i(z.UPDATE_CONDENSED, c), N = (c) => {
|
|
570
572
|
u.value = c, i(z.UPDATE_ZEBRA_ROWS, c);
|
|
571
573
|
}, D = (c) => {
|
|
572
574
|
i(z.COLUMNS, c), i(z.UPDATE_COLUMNS, c);
|
|
573
575
|
}, S = (c) => {
|
|
574
|
-
const A =
|
|
576
|
+
const A = l.value.map(
|
|
575
577
|
(O) => (O == null ? void 0 : O.field) === c.field ? c : O
|
|
576
578
|
);
|
|
577
579
|
D(A);
|
|
@@ -581,24 +583,24 @@ const et = "b-row-actions-column", co = (e, s, i, t, u, n) => {
|
|
|
581
583
|
}), {
|
|
582
584
|
// Values
|
|
583
585
|
columnSets: f,
|
|
584
|
-
isOnlyOneVisibleColumn:
|
|
586
|
+
isOnlyOneVisibleColumn: _,
|
|
585
587
|
internalZebraRows: u,
|
|
586
|
-
sortedColumns:
|
|
588
|
+
sortedColumns: l,
|
|
587
589
|
// Methods
|
|
588
590
|
onConfigSettingsColumnsUpdate: D,
|
|
589
591
|
onConfigSettingsColumnUpdate: S,
|
|
590
|
-
onConfigSettingsCondensedUpdate:
|
|
592
|
+
onConfigSettingsCondensedUpdate: b,
|
|
591
593
|
onConfigSettingsZebraRowsUpdate: N
|
|
592
594
|
};
|
|
593
|
-
},
|
|
594
|
-
const v = E(0), f = E(!1),
|
|
595
|
-
ye([() => v.value, () =>
|
|
596
|
-
e.value.scrollLeft = c, s.value.scrollLeft = c, f.value = !!c,
|
|
597
|
-
}),
|
|
595
|
+
}, bo = (e, s, i, t, u, l, n) => {
|
|
596
|
+
const v = E(0), f = E(!1), _ = E(!1);
|
|
597
|
+
ye([() => v.value, () => l.value], ([c]) => {
|
|
598
|
+
e.value.scrollLeft = c, s.value.scrollLeft = c, f.value = !!c, _.value = s.value.scrollWidth - s.value.offsetWidth > c;
|
|
599
|
+
}), Xe(async () => {
|
|
598
600
|
var c, A;
|
|
599
|
-
await
|
|
601
|
+
await _e(), await _e(), ((c = s.value) == null ? void 0 : c.offsetWidth) < ((A = s.value) == null ? void 0 : A.scrollWidth) && (_.value = !0);
|
|
600
602
|
});
|
|
601
|
-
const
|
|
603
|
+
const b = (c) => {
|
|
602
604
|
if (v.value = c.target.scrollLeft, i.value = e.value.scrollHeight - c.target.scrollTop, t != null && t.value) {
|
|
603
605
|
const A = c.target.scrollLeft;
|
|
604
606
|
t.value.scrollLeft !== A && (t.value.scrollLeft = A);
|
|
@@ -612,22 +614,22 @@ const et = "b-row-actions-column", co = (e, s, i, t, u, n) => {
|
|
|
612
614
|
e.value.scrollLeft !== A && (e.value.scrollLeft = A);
|
|
613
615
|
}, S = C(() => {
|
|
614
616
|
var c, A, O, k;
|
|
615
|
-
return (c =
|
|
617
|
+
return (c = n == null ? void 0 : n.pagination) != null && c.value && ((A = n == null ? void 0 : n.stickyPagination) != null && A.value || n != null && n.isDataGridTemplate) && !((O = n == null ? void 0 : n.isLazyLoad) != null && O.value) ? { bottom: `${(((k = u.value) == null ? void 0 : k.clientHeight) ?? 0) + 1}px` } : {};
|
|
616
618
|
});
|
|
617
619
|
return {
|
|
618
620
|
// Values
|
|
619
621
|
scrollLeftPosition: v,
|
|
620
622
|
hasLeftOverflow: f,
|
|
621
|
-
hasRightOverflow:
|
|
623
|
+
hasRightOverflow: _,
|
|
622
624
|
horizontalScrollbarConditionalStyles: S,
|
|
623
625
|
// Methods
|
|
624
|
-
updateScrollPosition:
|
|
626
|
+
updateScrollPosition: b,
|
|
625
627
|
updateScrollPositionOnFrozenColumnsNavigation: N,
|
|
626
628
|
syncVirtualScrollerWithBody: D
|
|
627
629
|
};
|
|
628
|
-
},
|
|
629
|
-
const u = E(null),
|
|
630
|
-
var A, O, k,
|
|
630
|
+
}, wo = (e, s, i, t) => {
|
|
631
|
+
const u = E(null), l = C(() => {
|
|
632
|
+
var A, O, k, R;
|
|
631
633
|
if (!u.value || u.value.field === Ee)
|
|
632
634
|
return {
|
|
633
635
|
hoveredOverColumnField: "",
|
|
@@ -635,55 +637,55 @@ const et = "b-row-actions-column", co = (e, s, i, t, u, n) => {
|
|
|
635
637
|
noBorderLeft: !1,
|
|
636
638
|
noBorderRight: !1
|
|
637
639
|
};
|
|
638
|
-
const
|
|
640
|
+
const n = (O = (A = e.value.find((M) => M.isFrozenColumns)) == null ? void 0 : A.columnSet) == null ? void 0 : O.filter((M) => M.field !== Ee), v = e.value.find((M) => !(M != null && M.isFrozenColumns)), f = u.value.frozen && (n == null ? void 0 : n[0].field) === u.value.field, _ = !u.value.frozen && ((k = v == null ? void 0 : v.columnSet) == null ? void 0 : k[0].field) === u.value.field, b = (s.value || i.value) && f, N = (s.value || i.value) && !n && _, D = n && _, S = (n == null ? void 0 : n.length) > 0 && u.value.frozen && (n == null ? void 0 : n[n.length - 1].field) === u.value.field, c = i.value && t.value && !u.value.frozen && ((R = v == null ? void 0 : v.columnSet) == null ? void 0 : R[v.columnSet.length - 1].field) === u.value.field;
|
|
639
641
|
return {
|
|
640
642
|
hoveredOverColumnField: u.value.field,
|
|
641
643
|
isSeparatorOffset: c,
|
|
642
|
-
noBorderLeft: !!
|
|
644
|
+
noBorderLeft: !!b || !!N || !!D,
|
|
643
645
|
noBorderRight: !!S || !!c
|
|
644
646
|
};
|
|
645
647
|
});
|
|
646
648
|
return {
|
|
647
649
|
hoveredOverColumn: u,
|
|
648
|
-
hoveredOverColumnState:
|
|
650
|
+
hoveredOverColumnState: l
|
|
649
651
|
};
|
|
650
652
|
}, Ot = (e) => {
|
|
651
|
-
const i =
|
|
653
|
+
const i = bl(e).filter((t) => t.node !== e);
|
|
652
654
|
return (i == null ? void 0 : i.length) > 0 ? (i[0].node.focus(), !0) : !1;
|
|
653
655
|
}, Ze = (e) => {
|
|
654
|
-
const s =
|
|
656
|
+
const s = bl(e), i = s == null ? void 0 : s.filter((t) => t.node !== e);
|
|
655
657
|
if ((i == null ? void 0 : i.length) > 0)
|
|
656
658
|
return i.forEach((t) => t.node.setAttribute("tabindex", "-1")), i;
|
|
657
|
-
},
|
|
659
|
+
}, Sl = (e) => {
|
|
658
660
|
(e == null ? void 0 : e.length) > 0 && e.forEach((s) => s == null ? void 0 : s.node.setAttribute("tabindex", "0"));
|
|
659
661
|
}, Jt = () => {
|
|
660
662
|
const e = window.getSelection().getRangeAt(0).cloneContents(), s = e.querySelectorAll('[role="row"]');
|
|
661
663
|
let i = "<table>", t = "";
|
|
662
|
-
const u = (
|
|
663
|
-
|
|
664
|
-
const v =
|
|
664
|
+
const u = (l) => {
|
|
665
|
+
l.forEach((n) => {
|
|
666
|
+
const v = n.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", f = n.textContent.trim();
|
|
665
667
|
f && (i += `<${v}>${f}</${v}>`, t += `${f} `);
|
|
666
668
|
});
|
|
667
669
|
};
|
|
668
670
|
if (!s.length) {
|
|
669
|
-
const
|
|
671
|
+
const l = e.querySelectorAll(
|
|
670
672
|
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
671
673
|
);
|
|
672
|
-
if (
|
|
673
|
-
i += "<tr>", u(
|
|
674
|
+
if (l.length)
|
|
675
|
+
i += "<tr>", u(l), i += "</tr>";
|
|
674
676
|
else {
|
|
675
677
|
navigator.clipboard.writeText(e.textContent);
|
|
676
678
|
return;
|
|
677
679
|
}
|
|
678
680
|
}
|
|
679
|
-
s.forEach((
|
|
680
|
-
const
|
|
681
|
+
s.forEach((l) => {
|
|
682
|
+
const n = l.querySelectorAll(
|
|
681
683
|
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
682
684
|
);
|
|
683
|
-
if (i += "<tr>",
|
|
684
|
-
u(
|
|
685
|
+
if (i += "<tr>", n.length)
|
|
686
|
+
u(n);
|
|
685
687
|
else {
|
|
686
|
-
const v =
|
|
688
|
+
const v = l.textContent.trim();
|
|
687
689
|
i += `<td>${v}</td>`, t += `${v} `;
|
|
688
690
|
}
|
|
689
691
|
i += "</tr>", t += `
|
|
@@ -696,199 +698,177 @@ const et = "b-row-actions-column", co = (e, s, i, t, u, n) => {
|
|
|
696
698
|
]);
|
|
697
699
|
};
|
|
698
700
|
let Xt = 0;
|
|
699
|
-
const
|
|
701
|
+
const So = {
|
|
700
702
|
beforeCreate() {
|
|
701
703
|
this.uuid = Xt.toString(), Xt += 1;
|
|
702
704
|
}
|
|
703
|
-
},
|
|
704
|
-
function
|
|
705
|
-
return r(), p("svg",
|
|
705
|
+
}, po = { key: 0 }, Eo = ["clip-path"], yo = ["id"];
|
|
706
|
+
function Ro(e, s, i, t, u, l) {
|
|
707
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
706
708
|
class: "ui-assets-icons-16",
|
|
707
709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
708
710
|
width: "16",
|
|
709
711
|
height: "16",
|
|
710
712
|
fill: "none"
|
|
711
713
|
}), [
|
|
712
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
713
|
-
|
|
714
|
+
e.$attrs["svg-title"] ? (r(), p("title", po, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
715
|
+
L("g", {
|
|
714
716
|
fill: "#001222",
|
|
715
717
|
"clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
716
718
|
}, s[0] || (s[0] = [
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
]), 8,
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
L("path", { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" }, null, -1),
|
|
720
|
+
L("path", { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" }, null, -1)
|
|
721
|
+
]), 8, Eo),
|
|
722
|
+
L("defs", null, [
|
|
723
|
+
L("clipPath", {
|
|
722
724
|
id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid
|
|
723
725
|
}, s[1] || (s[1] = [
|
|
724
|
-
|
|
726
|
+
L("rect", {
|
|
725
727
|
width: "16",
|
|
726
728
|
height: "16",
|
|
727
729
|
fill: "#fff"
|
|
728
730
|
}, null, -1)
|
|
729
|
-
]), 8,
|
|
731
|
+
]), 8, yo)
|
|
730
732
|
])
|
|
731
733
|
], 16);
|
|
732
734
|
}
|
|
733
|
-
const
|
|
735
|
+
const Lo = /* @__PURE__ */ ue(So, [["render", Ro]]);
|
|
734
736
|
let Qt = 0;
|
|
735
|
-
const
|
|
737
|
+
const Ao = {
|
|
736
738
|
beforeCreate() {
|
|
737
739
|
this.uuid = Qt.toString(), Qt += 1;
|
|
738
740
|
}
|
|
739
|
-
},
|
|
740
|
-
function
|
|
741
|
-
return r(), p("svg",
|
|
741
|
+
}, To = { key: 0 }, Oo = ["clip-path"], No = ["id"];
|
|
742
|
+
function Io(e, s, i, t, u, l) {
|
|
743
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
742
744
|
class: "ui-assets-icons-16",
|
|
743
745
|
xmlns: "http://www.w3.org/2000/svg",
|
|
744
746
|
width: "16",
|
|
745
747
|
height: "16",
|
|
746
748
|
fill: "none"
|
|
747
749
|
}), [
|
|
748
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
749
|
-
|
|
750
|
-
fill: "#001222",
|
|
751
|
-
d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z"
|
|
752
|
-
}, null, -1))
|
|
753
|
-
], 16);
|
|
754
|
-
}
|
|
755
|
-
const Ao = /* @__PURE__ */ ue(yo, [["render", Ro]]);
|
|
756
|
-
let en = 0;
|
|
757
|
-
const To = {
|
|
758
|
-
beforeCreate() {
|
|
759
|
-
this.uuid = en.toString(), en += 1;
|
|
760
|
-
}
|
|
761
|
-
}, Oo = { key: 0 }, No = ["clip-path"], Io = ["id"];
|
|
762
|
-
function $o(e, s, i, t, u, n) {
|
|
763
|
-
return r(), p("svg", le({ role: "img" }, e.$attrs, {
|
|
764
|
-
class: "ui-assets-icons-16",
|
|
765
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
766
|
-
width: "16",
|
|
767
|
-
height: "16",
|
|
768
|
-
fill: "none"
|
|
769
|
-
}), [
|
|
770
|
-
e.$attrs["svg-title"] ? (r(), p("title", Oo, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
771
|
-
R("g", {
|
|
750
|
+
e.$attrs["svg-title"] ? (r(), p("title", To, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
751
|
+
L("g", {
|
|
772
752
|
"clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
|
|
773
753
|
}, s[0] || (s[0] = [
|
|
774
|
-
|
|
754
|
+
L("path", {
|
|
775
755
|
fill: "#001222",
|
|
776
756
|
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"
|
|
777
757
|
}, null, -1)
|
|
778
|
-
]), 8,
|
|
779
|
-
|
|
780
|
-
|
|
758
|
+
]), 8, Oo),
|
|
759
|
+
L("defs", null, [
|
|
760
|
+
L("clipPath", {
|
|
781
761
|
id: "uia-ui-assets/icons-16-freeze__a" + e.uuid
|
|
782
762
|
}, s[1] || (s[1] = [
|
|
783
|
-
|
|
763
|
+
L("rect", {
|
|
784
764
|
width: "16",
|
|
785
765
|
height: "16",
|
|
786
766
|
fill: "#fff",
|
|
787
767
|
transform: "matrix(1 0 0 -1 0 16)"
|
|
788
768
|
}, null, -1)
|
|
789
|
-
]), 8,
|
|
769
|
+
]), 8, No)
|
|
790
770
|
])
|
|
791
771
|
], 16);
|
|
792
772
|
}
|
|
793
|
-
const
|
|
794
|
-
let
|
|
795
|
-
const
|
|
773
|
+
const pl = /* @__PURE__ */ ue(Ao, [["render", Io]]);
|
|
774
|
+
let el = 0;
|
|
775
|
+
const $o = {
|
|
796
776
|
beforeCreate() {
|
|
797
|
-
this.uuid =
|
|
777
|
+
this.uuid = el.toString(), el += 1;
|
|
798
778
|
}
|
|
799
|
-
},
|
|
800
|
-
function
|
|
801
|
-
return r(), p("svg",
|
|
779
|
+
}, Do = { key: 0 }, ko = ["clip-path"], Uo = ["id"];
|
|
780
|
+
function Mo(e, s, i, t, u, l) {
|
|
781
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
802
782
|
class: "ui-assets-icons-16",
|
|
803
783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
804
784
|
width: "16",
|
|
805
785
|
height: "16",
|
|
806
786
|
fill: "none"
|
|
807
787
|
}), [
|
|
808
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
809
|
-
|
|
788
|
+
e.$attrs["svg-title"] ? (r(), p("title", Do, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
789
|
+
L("g", {
|
|
810
790
|
fill: "#001222",
|
|
811
791
|
"clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
|
|
812
792
|
}, s[0] || (s[0] = [
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
]), 8,
|
|
818
|
-
|
|
819
|
-
|
|
793
|
+
L("path", { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" }, null, -1),
|
|
794
|
+
L("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
795
|
+
L("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
|
|
796
|
+
L("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
|
|
797
|
+
]), 8, ko),
|
|
798
|
+
L("defs", null, [
|
|
799
|
+
L("clipPath", {
|
|
820
800
|
id: "uia-ui-assets/icons-16-sort_ascending__a" + e.uuid
|
|
821
801
|
}, s[1] || (s[1] = [
|
|
822
|
-
|
|
802
|
+
L("rect", {
|
|
823
803
|
width: "16",
|
|
824
804
|
height: "16",
|
|
825
805
|
fill: "#fff"
|
|
826
806
|
}, null, -1)
|
|
827
|
-
]), 8,
|
|
807
|
+
]), 8, Uo)
|
|
828
808
|
])
|
|
829
809
|
], 16);
|
|
830
810
|
}
|
|
831
|
-
const
|
|
832
|
-
let
|
|
833
|
-
const
|
|
811
|
+
const Fo = /* @__PURE__ */ ue($o, [["render", Mo]]);
|
|
812
|
+
let tl = 0;
|
|
813
|
+
const zo = {
|
|
834
814
|
beforeCreate() {
|
|
835
|
-
this.uuid =
|
|
815
|
+
this.uuid = tl.toString(), tl += 1;
|
|
836
816
|
}
|
|
837
|
-
},
|
|
838
|
-
function
|
|
839
|
-
return r(), p("svg",
|
|
817
|
+
}, Po = { key: 0 }, Bo = ["clip-path"], Wo = ["id"];
|
|
818
|
+
function Vo(e, s, i, t, u, l) {
|
|
819
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
840
820
|
class: "ui-assets-icons-16",
|
|
841
821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
842
822
|
width: "16",
|
|
843
823
|
height: "16",
|
|
844
824
|
fill: "none"
|
|
845
825
|
}), [
|
|
846
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
847
|
-
|
|
826
|
+
e.$attrs["svg-title"] ? (r(), p("title", Po, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
827
|
+
L("g", {
|
|
848
828
|
fill: "#001222",
|
|
849
829
|
"clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
|
|
850
830
|
}, s[0] || (s[0] = [
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
]), 8,
|
|
856
|
-
|
|
857
|
-
|
|
831
|
+
L("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1),
|
|
832
|
+
L("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
833
|
+
L("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
|
|
834
|
+
L("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
|
|
835
|
+
]), 8, Bo),
|
|
836
|
+
L("defs", null, [
|
|
837
|
+
L("clipPath", {
|
|
858
838
|
id: "uia-ui-assets/icons-16-sort_descending__a" + e.uuid
|
|
859
839
|
}, s[1] || (s[1] = [
|
|
860
|
-
|
|
840
|
+
L("rect", {
|
|
861
841
|
width: "16",
|
|
862
842
|
height: "16",
|
|
863
843
|
fill: "#fff"
|
|
864
844
|
}, null, -1)
|
|
865
|
-
]), 8,
|
|
845
|
+
]), 8, Wo)
|
|
866
846
|
])
|
|
867
847
|
], 16);
|
|
868
848
|
}
|
|
869
|
-
const
|
|
870
|
-
let
|
|
871
|
-
const
|
|
849
|
+
const Ho = /* @__PURE__ */ ue(zo, [["render", Vo]]);
|
|
850
|
+
let ll = 0;
|
|
851
|
+
const Go = {
|
|
872
852
|
beforeCreate() {
|
|
873
|
-
this.uuid =
|
|
853
|
+
this.uuid = ll.toString(), ll += 1;
|
|
874
854
|
}
|
|
875
|
-
},
|
|
876
|
-
function
|
|
877
|
-
return r(), p("svg",
|
|
855
|
+
}, xo = { key: 0 };
|
|
856
|
+
function Zo(e, s, i, t, u, l) {
|
|
857
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
878
858
|
class: "ui-assets-icons-16",
|
|
879
859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
880
860
|
width: "16",
|
|
881
861
|
height: "16",
|
|
882
862
|
fill: "none"
|
|
883
863
|
}), [
|
|
884
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
885
|
-
s[0] || (s[0] =
|
|
864
|
+
e.$attrs["svg-title"] ? (r(), p("title", xo, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
865
|
+
s[0] || (s[0] = L("path", {
|
|
886
866
|
fill: "#001222",
|
|
887
867
|
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
888
868
|
}, null, -1))
|
|
889
869
|
], 16);
|
|
890
870
|
}
|
|
891
|
-
const
|
|
871
|
+
const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), El = {
|
|
892
872
|
"en-US": {
|
|
893
873
|
columnActions: "{name} column actions",
|
|
894
874
|
deselectAll: "Deselect all",
|
|
@@ -952,20 +932,20 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
952
932
|
sortColumnInDescendingOrder: "Classificar a coluna {name} em ordem decrescente",
|
|
953
933
|
unfreezeColumn: "Descongelar coluna"
|
|
954
934
|
}
|
|
955
|
-
},
|
|
935
|
+
}, yl = /* @__PURE__ */ Symbol("data-grid slashed zero key"), tt = /* @__PURE__ */ Symbol("data-grid small container key"), gt = /* @__PURE__ */ Symbol("data-grid touch device key"), qo = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Ko = { class: "b-data-grid-columns__select-column-menu-button" }, Yo = ["aria-label"], Jo = { class: "b-data-grid-columns__label" }, Xo = {
|
|
956
936
|
key: 0,
|
|
957
937
|
class: "b-data-grid-columns__column-info-icon"
|
|
958
|
-
},
|
|
938
|
+
}, Qo = {
|
|
959
939
|
key: 1,
|
|
960
940
|
class: "b-data-grid-columns__column-sort"
|
|
961
|
-
},
|
|
941
|
+
}, es = ["data-testid", "onMousedown"], ts = {
|
|
962
942
|
key: 0,
|
|
963
943
|
class: "b-data-grid-columns__column-separator"
|
|
964
|
-
}, ls = ["aria-label", "aria-colindex"],
|
|
965
|
-
i18n: { messages:
|
|
944
|
+
}, ls = ["aria-label", "aria-colindex"], ns = {
|
|
945
|
+
i18n: { messages: El },
|
|
966
946
|
name: "data-grid-columns"
|
|
967
|
-
},
|
|
968
|
-
...
|
|
947
|
+
}, os = /* @__PURE__ */ Ie({
|
|
948
|
+
...ns,
|
|
969
949
|
props: {
|
|
970
950
|
/**
|
|
971
951
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1112,46 +1092,46 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1112
1092
|
},
|
|
1113
1093
|
emits: ["sort", "column-hover"],
|
|
1114
1094
|
setup(e, { expose: s, emit: i }) {
|
|
1115
|
-
const t = e, u = i,
|
|
1095
|
+
const t = e, u = i, l = 100, { t: n } = We({ messages: El }), { columns: v, sortBy: f } = Et(t), _ = E(), b = E({}), N = E({}), D = E(), S = E(), c = (d) => u(ie.SELECT_ALL_ROWS, d), A = (d) => d.field === Ee, O = C(() => t.selectionState === "all"), k = C(
|
|
1116
1096
|
() => {
|
|
1117
1097
|
var d, V, U;
|
|
1118
1098
|
return [
|
|
1119
1099
|
{
|
|
1120
|
-
text:
|
|
1100
|
+
text: n("selectPage"),
|
|
1121
1101
|
handler: () => c(!0),
|
|
1122
1102
|
disabled: t.selectionState === "page" || t.selectionState === "all"
|
|
1123
1103
|
},
|
|
1124
1104
|
(d = t.visibleRowsState) != null && d.filtered ? {
|
|
1125
|
-
text:
|
|
1105
|
+
text: n("selectAllCurrentResults"),
|
|
1126
1106
|
handler: () => u(ie.SELECT_ALL_CURRENT_RESULTS),
|
|
1127
1107
|
addDivider: t.selectionState !== "none",
|
|
1128
1108
|
disabled: t.selectionState === "all"
|
|
1129
1109
|
} : {
|
|
1130
|
-
text:
|
|
1110
|
+
text: n("selectAll"),
|
|
1131
1111
|
handler: () => u(ie.SELECT_ALL_ACROSS_PAGES),
|
|
1132
1112
|
addDivider: t.selectionState !== "none",
|
|
1133
1113
|
disabled: t.selectionState === "all"
|
|
1134
1114
|
},
|
|
1135
1115
|
t.selectionState !== "none" && {
|
|
1136
|
-
text:
|
|
1116
|
+
text: n("deselectPage"),
|
|
1137
1117
|
handler: () => c(!1),
|
|
1138
1118
|
addDivider: !((V = t.visibleRowsState) != null && V.filtered),
|
|
1139
1119
|
// otherwise divider shown in deselect all in current results
|
|
1140
1120
|
disabled: t.selectionState === "unselected-page"
|
|
1141
1121
|
},
|
|
1142
1122
|
((U = t.visibleRowsState) == null ? void 0 : U.filtered) && t.selectionState !== "none" && {
|
|
1143
|
-
text:
|
|
1123
|
+
text: n("deselectAllCurrentResults"),
|
|
1144
1124
|
handler: () => u(ie.DESELECT_ALL_CURRENT_RESULTS),
|
|
1145
1125
|
addDivider: !0,
|
|
1146
1126
|
disabled: t.selectionState === "unselected-page" && t.visibleRowsState.allRowsVisible
|
|
1147
1127
|
},
|
|
1148
1128
|
t.selectionState !== "none" && {
|
|
1149
|
-
text:
|
|
1129
|
+
text: n("deselectAll"),
|
|
1150
1130
|
handler: () => u(ie.DESELECT_ALL)
|
|
1151
1131
|
}
|
|
1152
1132
|
].filter(Boolean);
|
|
1153
1133
|
}
|
|
1154
|
-
), { startResize:
|
|
1134
|
+
), { startResize: R, isResizing: M, columnHoverEventToEmitAfterResizing: m } = Qn(v, u), { isSorting: F, getSortingDirection: h, sortByColumnField: a } = go(f, v, u), g = (d) => {
|
|
1155
1135
|
var Ce;
|
|
1156
1136
|
if (!d.sortable)
|
|
1157
1137
|
return null;
|
|
@@ -1179,31 +1159,31 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1179
1159
|
} : {}), B = C(
|
|
1180
1160
|
() => (d) => [
|
|
1181
1161
|
{
|
|
1182
|
-
text:
|
|
1162
|
+
text: n("moveColumnLeft"),
|
|
1183
1163
|
handler: () => u(ie.COLUMN_MOVE, d, -1),
|
|
1184
|
-
icon:
|
|
1164
|
+
icon: Zn,
|
|
1185
1165
|
disabled: t.columns[0].field === d.field
|
|
1186
1166
|
},
|
|
1187
1167
|
{
|
|
1188
|
-
text:
|
|
1168
|
+
text: n("moveColumnRight"),
|
|
1189
1169
|
handler: () => u(ie.COLUMN_MOVE, d, 1),
|
|
1190
|
-
icon:
|
|
1170
|
+
icon: jn,
|
|
1191
1171
|
disabled: t.columns[t.columns.length - 1].field === d.field
|
|
1192
1172
|
},
|
|
1193
1173
|
!fe.value && {
|
|
1194
|
-
text: d != null && d.frozen ?
|
|
1174
|
+
text: d != null && d.frozen ? n("unfreezeColumn") : n("freezeColumn"),
|
|
1195
1175
|
handler: () => u(ie.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
|
|
1196
|
-
icon:
|
|
1176
|
+
icon: pl
|
|
1197
1177
|
},
|
|
1198
1178
|
{
|
|
1199
|
-
text: (d == null ? void 0 : d.visible) !== !1 ?
|
|
1179
|
+
text: (d == null ? void 0 : d.visible) !== !1 ? n("hideColumn") : n("showColumn"),
|
|
1200
1180
|
handler: () => {
|
|
1201
1181
|
u(ie.COLUMN_UPDATE, {
|
|
1202
1182
|
...d,
|
|
1203
1183
|
visible: (d == null ? void 0 : d.visible) === !1
|
|
1204
1184
|
});
|
|
1205
1185
|
},
|
|
1206
|
-
icon: (d == null ? void 0 : d.visible) !== !1 ?
|
|
1186
|
+
icon: (d == null ? void 0 : d.visible) !== !1 ? qn : Kn,
|
|
1207
1187
|
disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && t.isOnlyOneVisibleColumn
|
|
1208
1188
|
}
|
|
1209
1189
|
].filter(Boolean)
|
|
@@ -1212,9 +1192,9 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1212
1192
|
}, Z = (d) => {
|
|
1213
1193
|
const V = setTimeout(() => {
|
|
1214
1194
|
d.field === D.value && (D.value = "");
|
|
1215
|
-
},
|
|
1195
|
+
}, l);
|
|
1216
1196
|
S.value = V;
|
|
1217
|
-
},
|
|
1197
|
+
}, le = (d) => {
|
|
1218
1198
|
let V = {
|
|
1219
1199
|
mouseenter: () => {
|
|
1220
1200
|
x(d), M.value ? m.value = d : u("column-hover", d);
|
|
@@ -1223,24 +1203,24 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1223
1203
|
Z(d), M.value ? m.value = null : u("column-hover", null);
|
|
1224
1204
|
},
|
|
1225
1205
|
focus: () => {
|
|
1226
|
-
x(d), A(d) && Ot(
|
|
1206
|
+
x(d), A(d) && Ot(b.value[d.field]);
|
|
1227
1207
|
},
|
|
1228
1208
|
focusout: (U) => {
|
|
1229
1209
|
var Ce;
|
|
1230
|
-
(Ce =
|
|
1210
|
+
(Ce = _.value) != null && Ce.contains(U == null ? void 0 : U.relatedTarget) || Z(d);
|
|
1231
1211
|
}
|
|
1232
1212
|
};
|
|
1233
1213
|
return A(d) || (V = {
|
|
1234
1214
|
...V,
|
|
1235
1215
|
...T.value(d)
|
|
1236
1216
|
}), V;
|
|
1237
|
-
},
|
|
1217
|
+
}, we = (d) => d.infoIconTooltip || d.sortable || t.hasColumnPanel, ve = (d, V) => {
|
|
1238
1218
|
var U;
|
|
1239
|
-
((U =
|
|
1219
|
+
((U = b.value) == null ? void 0 : U[V]) === void 0 && (b.value = { ...b.value, [V]: null }), d !== null && (b.value[V] = d);
|
|
1240
1220
|
}, fe = Pe(
|
|
1241
1221
|
tt,
|
|
1242
1222
|
C(() => !1)
|
|
1243
|
-
),
|
|
1223
|
+
), ne = Pe(gt, E(!1)), q = C(() => {
|
|
1244
1224
|
var V;
|
|
1245
1225
|
const d = {
|
|
1246
1226
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
@@ -1254,10 +1234,10 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1254
1234
|
...d,
|
|
1255
1235
|
"b-data-grid-columns--unfrozen": !0
|
|
1256
1236
|
};
|
|
1257
|
-
}),
|
|
1237
|
+
}), Re = C(() => ({
|
|
1258
1238
|
"b-data-grid-columns__select-column--all": t.selectableAcrossPages
|
|
1259
|
-
})), y = (d, V) => d && V === 0 ? Ht.BOTTOM_START : Ht.BOTTOM_END,
|
|
1260
|
-
var U, Ce, me,
|
|
1239
|
+
})), y = (d, V) => d && V === 0 ? Ht.BOTTOM_START : Ht.BOTTOM_END, Q = (d, V) => {
|
|
1240
|
+
var U, Ce, me, w, I, te, oe, ae, re, K;
|
|
1261
1241
|
return {
|
|
1262
1242
|
"b-data-grid-columns__column--column-hovered": d.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1263
1243
|
"b-data-grid-columns__column--column-hovered-no-border-left": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
@@ -1268,13 +1248,13 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1268
1248
|
"b-data-grid-columns__column--padding-right-unset": ((Ce = d == null ? void 0 : d.padding) == null ? void 0 : Ce.right) === !1,
|
|
1269
1249
|
"b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
|
|
1270
1250
|
"b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
|
|
1271
|
-
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((
|
|
1272
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((te = (I = t.draggingColumns) == null ? void 0 : I.target) == null ? void 0 : te.field) && ((
|
|
1251
|
+
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((w = (me = t.draggingColumns) == null ? void 0 : me.dragging) == null ? void 0 : w.field),
|
|
1252
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((te = (I = t.draggingColumns) == null ? void 0 : I.target) == null ? void 0 : te.field) && ((oe = t.draggingColumns) == null ? void 0 : oe.dragToLeft),
|
|
1273
1253
|
"b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((re = (ae = t.draggingColumns) == null ? void 0 : ae.target) == null ? void 0 : re.field) && !((K = t.draggingColumns) != null && K.dragToLeft),
|
|
1274
1254
|
"b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || t.hasColumnPanel || t.selectableAcrossPages,
|
|
1275
1255
|
"b-data-grid-columns--small-container": fe.value
|
|
1276
1256
|
};
|
|
1277
|
-
},
|
|
1257
|
+
}, J = (d) => ({
|
|
1278
1258
|
"b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
|
|
1279
1259
|
}), ee = (d) => ({
|
|
1280
1260
|
"b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
|
|
@@ -1284,46 +1264,46 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1284
1264
|
}), Te = C(() => ({
|
|
1285
1265
|
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
1286
1266
|
})), Be = (d) => ({
|
|
1287
|
-
"b-data-grid-columns__menu--hovered": D.value === d.field ||
|
|
1267
|
+
"b-data-grid-columns__menu--hovered": D.value === d.field || ne.value
|
|
1288
1268
|
});
|
|
1289
1269
|
return s({
|
|
1290
|
-
columnHeaderRefs:
|
|
1270
|
+
columnHeaderRefs: b
|
|
1291
1271
|
}), (d, V) => (r(), p("div", {
|
|
1292
1272
|
ref_key: "allColumnsRef",
|
|
1293
|
-
ref:
|
|
1273
|
+
ref: _,
|
|
1294
1274
|
class: ce(["b-data-grid-columns", q.value]),
|
|
1295
1275
|
"data-testid": "data-grid-columns"
|
|
1296
1276
|
}, [
|
|
1297
|
-
(r(!0), p(
|
|
1277
|
+
(r(!0), p(be, null, Ae(o(v), (U, Ce) => (r(), p("div", se({
|
|
1298
1278
|
key: U.field,
|
|
1299
1279
|
ref_for: !0,
|
|
1300
1280
|
ref: (me) => ve(me, U.field),
|
|
1301
1281
|
"aria-colindex": Ce + 1,
|
|
1302
1282
|
"aria-label": U.label,
|
|
1303
1283
|
"aria-sort": g(U),
|
|
1304
|
-
class: [
|
|
1284
|
+
class: [Q(U, Ce), "b-data-grid-columns__column"],
|
|
1305
1285
|
"data-testid": `${U.field}-column-header`,
|
|
1306
1286
|
draggable: e.hasDraggableColumns && !o(M) && !A(U),
|
|
1307
1287
|
role: "columnheader",
|
|
1308
1288
|
tabindex: U.sortable || e.hasColumnPanel || U.infoIconTooltip ? "0" : "-1",
|
|
1309
1289
|
style: { width: U.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${U.width}px` }
|
|
1310
|
-
}, ft(
|
|
1290
|
+
}, ft(le(U), !0)), [
|
|
1311
1291
|
A(U) && e.selectable ? (r(), p("div", {
|
|
1312
1292
|
key: 0,
|
|
1313
|
-
class: ce(["b-data-grid-columns__select-column",
|
|
1293
|
+
class: ce(["b-data-grid-columns__select-column", Re.value])
|
|
1314
1294
|
}, [
|
|
1315
|
-
e.selectableAcrossPages ? W("", !0) : (r(), H(o(
|
|
1295
|
+
e.selectableAcrossPages ? W("", !0) : (r(), H(o(_l), {
|
|
1316
1296
|
key: 0,
|
|
1317
|
-
"aria-label": o(
|
|
1297
|
+
"aria-label": o(n)("selectAll"),
|
|
1318
1298
|
"model-value": e.allItemsSelectedState.allItemsSelected,
|
|
1319
1299
|
"data-testid": "checkbox-select-all",
|
|
1320
1300
|
indeterminate: e.allItemsSelectedState.isIndeterminate,
|
|
1321
1301
|
value: "data-grid-select-all",
|
|
1322
1302
|
"onUpdate:modelValue": c
|
|
1323
1303
|
}, null, 8, ["aria-label", "model-value", "indeterminate"])),
|
|
1324
|
-
e.selectableAcrossPages ? (r(), H(o(
|
|
1304
|
+
e.selectableAcrossPages ? (r(), H(o(wt), {
|
|
1325
1305
|
key: 1,
|
|
1326
|
-
button: { variant: "tertiary", condensed: !0, "aria-label": o(
|
|
1306
|
+
button: { variant: "tertiary", condensed: !0, "aria-label": o(n)("selectAllMenu") },
|
|
1327
1307
|
data: k.value,
|
|
1328
1308
|
class: "b-data-grid-columns__select-column-menu",
|
|
1329
1309
|
"disable-arrow-down-opening-menu": "",
|
|
@@ -1331,73 +1311,73 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1331
1311
|
"menu-position": "bottom-start"
|
|
1332
1312
|
}, {
|
|
1333
1313
|
iconLeft: G(() => [
|
|
1334
|
-
|
|
1335
|
-
|
|
1314
|
+
L("div", Ko, [
|
|
1315
|
+
Y(o(xn), {
|
|
1336
1316
|
indeterminate: e.allItemsSelectedState.isIndeterminate,
|
|
1337
1317
|
checked: e.allItemsSelectedState.allItemsSelected,
|
|
1338
1318
|
"all-selected": O.value,
|
|
1339
1319
|
class: "b-data-grid-columns__select-column-menu-checkbox",
|
|
1340
1320
|
"data-testid": "checkbox-select-all"
|
|
1341
1321
|
}, null, 8, ["indeterminate", "checked", "all-selected"]),
|
|
1342
|
-
|
|
1343
|
-
"svg-title": o(
|
|
1322
|
+
Y(o(jo), {
|
|
1323
|
+
"svg-title": o(n)("selectionMenu"),
|
|
1344
1324
|
"aria-hidden": "true"
|
|
1345
1325
|
}, null, 8, ["svg-title"])
|
|
1346
1326
|
])
|
|
1347
1327
|
]),
|
|
1348
1328
|
_: 1
|
|
1349
1329
|
}, 8, ["button", "data"])) : W("", !0)
|
|
1350
|
-
], 2)) : (r(), p(
|
|
1351
|
-
|
|
1352
|
-
"aria-label": o(
|
|
1330
|
+
], 2)) : (r(), p(be, { key: 1 }, [
|
|
1331
|
+
L("div", {
|
|
1332
|
+
"aria-label": o(n)("columnActions", { name: U.label }),
|
|
1353
1333
|
"aria-live": "polite",
|
|
1354
1334
|
role: "region",
|
|
1355
|
-
class: ce(["b-data-grid-columns__column-header-and-actions",
|
|
1335
|
+
class: ce(["b-data-grid-columns__column-header-and-actions", J(U)])
|
|
1356
1336
|
}, [
|
|
1357
|
-
|
|
1337
|
+
Y(o(je), {
|
|
1358
1338
|
el: "div",
|
|
1359
1339
|
strongest: "",
|
|
1360
1340
|
class: ce(["b-data-grid-columns__column-header", Te.value])
|
|
1361
1341
|
}, {
|
|
1362
1342
|
default: G(() => [
|
|
1363
1343
|
ze(d.$slots, `head-${U.field}`, { column: U }, () => [
|
|
1364
|
-
|
|
1344
|
+
L("span", Jo, X(U.label), 1)
|
|
1365
1345
|
], !0)
|
|
1366
1346
|
]),
|
|
1367
1347
|
_: 2
|
|
1368
1348
|
}, 1032, ["class"]),
|
|
1369
|
-
|
|
1349
|
+
we(U) ? (r(), p("div", {
|
|
1370
1350
|
key: 0,
|
|
1371
1351
|
class: ce(["b-data-grid-columns__column-actions", ee(U)])
|
|
1372
1352
|
}, [
|
|
1373
|
-
U.infoIconTooltip ? (r(), p("div",
|
|
1374
|
-
|
|
1353
|
+
U.infoIconTooltip ? (r(), p("div", Xo, [
|
|
1354
|
+
Y(o(Gn), {
|
|
1375
1355
|
"tooltip-text": U.infoIconTooltip
|
|
1376
1356
|
}, null, 8, ["tooltip-text"])
|
|
1377
1357
|
])) : W("", !0),
|
|
1378
|
-
U.sortable ? (r(), p("div",
|
|
1379
|
-
|
|
1358
|
+
U.sortable ? (r(), p("div", Qo, [
|
|
1359
|
+
Y(o(Tt), {
|
|
1380
1360
|
condensed: "",
|
|
1381
1361
|
toggled: o(F)(U.field),
|
|
1382
1362
|
variant: "tertiary",
|
|
1383
1363
|
onClick: (me) => o(a)(U.field)
|
|
1384
1364
|
}, {
|
|
1385
1365
|
iconLeft: G(() => [
|
|
1386
|
-
o(h)(U.field) ? o(h)(U.field) === o(Ge).ASCENDING ? (r(), H(o(
|
|
1366
|
+
o(h)(U.field) ? o(h)(U.field) === o(Ge).ASCENDING ? (r(), H(o(Fo), {
|
|
1387
1367
|
key: 1,
|
|
1388
|
-
"svg-title": o(
|
|
1389
|
-
}, null, 8, ["svg-title"])) : o(h)(U.field) === o(Ge).DESCENDING ? (r(), H(o(
|
|
1368
|
+
"svg-title": o(n)("sortColumnInDescendingOrder", { name: U.label })
|
|
1369
|
+
}, null, 8, ["svg-title"])) : o(h)(U.field) === o(Ge).DESCENDING ? (r(), H(o(Ho), {
|
|
1390
1370
|
key: 2,
|
|
1391
|
-
"svg-title": o(
|
|
1392
|
-
}, null, 8, ["svg-title"])) : W("", !0) : (r(), H(o(
|
|
1371
|
+
"svg-title": o(n)("sortColumnInAscendingOrder", { name: U.label })
|
|
1372
|
+
}, null, 8, ["svg-title"])) : W("", !0) : (r(), H(o(Lo), {
|
|
1393
1373
|
key: 0,
|
|
1394
|
-
"svg-title": o(
|
|
1374
|
+
"svg-title": o(n)("sortColumn", { name: U.label })
|
|
1395
1375
|
}, null, 8, ["svg-title"]))
|
|
1396
1376
|
]),
|
|
1397
1377
|
_: 2
|
|
1398
1378
|
}, 1032, ["toggled", "onClick"])
|
|
1399
1379
|
])) : W("", !0),
|
|
1400
|
-
e.hasColumnPanel ? (r(), H(o(
|
|
1380
|
+
e.hasColumnPanel ? (r(), H(o(wt), {
|
|
1401
1381
|
key: 2,
|
|
1402
1382
|
ref_for: !0,
|
|
1403
1383
|
ref: (me) => N.value[U.field] = me,
|
|
@@ -1411,27 +1391,27 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1411
1391
|
onClose: V[1] || (V[1] = (me) => d.$emit(o(ie).COLUMN_MENU_CLOSE))
|
|
1412
1392
|
}, null, 8, ["class", "data", "menu-position"])) : W("", !0)
|
|
1413
1393
|
], 2)) : W("", !0)
|
|
1414
|
-
], 10,
|
|
1415
|
-
|
|
1394
|
+
], 10, Yo),
|
|
1395
|
+
L("div", {
|
|
1416
1396
|
"data-testid": `data-grid-column-${U.field}`,
|
|
1417
1397
|
class: ce(["b-data-grid-columns__column-separator-container", Ve(U)]),
|
|
1418
1398
|
role: "presentation",
|
|
1419
|
-
onMousedown: (me) => o(
|
|
1420
|
-
onClick: V[2] || (V[2] =
|
|
1399
|
+
onMousedown: (me) => o(R)(e.hasResizableColumns, U.field, me),
|
|
1400
|
+
onClick: V[2] || (V[2] = bn(() => {
|
|
1421
1401
|
}, ["stop"]))
|
|
1422
1402
|
}, [
|
|
1423
|
-
!e.isFrozenColumns || e.isFrozenColumns && Ce !== o(v).length - 1 ? (r(), p("div",
|
|
1424
|
-
], 42,
|
|
1403
|
+
!e.isFrozenColumns || e.isFrozenColumns && Ce !== o(v).length - 1 ? (r(), p("div", ts)) : W("", !0)
|
|
1404
|
+
], 42, es)
|
|
1425
1405
|
], 64))
|
|
1426
|
-
], 16,
|
|
1427
|
-
e.rowActionsMaximumWidth && !e.isFrozenColumns ? (r(), p(
|
|
1428
|
-
V[3] || (V[3] =
|
|
1406
|
+
], 16, qo))), 128)),
|
|
1407
|
+
e.rowActionsMaximumWidth && !e.isFrozenColumns ? (r(), p(be, { key: 0 }, [
|
|
1408
|
+
V[3] || (V[3] = L("div", {
|
|
1429
1409
|
role: "presentation",
|
|
1430
1410
|
class: "b-data-grid-columns__row-actions-filler"
|
|
1431
1411
|
}, null, -1)),
|
|
1432
|
-
|
|
1412
|
+
L("div", {
|
|
1433
1413
|
ref: (U) => ve(U, o(et)),
|
|
1434
|
-
"aria-label": o(
|
|
1414
|
+
"aria-label": o(n)("rowActionsColumn"),
|
|
1435
1415
|
"aria-colindex": o(v).length + 1,
|
|
1436
1416
|
class: "b-data-grid-columns__column",
|
|
1437
1417
|
role: "columnheader",
|
|
@@ -1441,44 +1421,44 @@ const qo = /* @__PURE__ */ ue(xo, [["render", jo]]), Ln = {
|
|
|
1441
1421
|
], 64)) : W("", !0)
|
|
1442
1422
|
], 2));
|
|
1443
1423
|
}
|
|
1444
|
-
}),
|
|
1424
|
+
}), ss = /* @__PURE__ */ ue(os, [["__scopeId", "data-v-ee88da0d"]]);
|
|
1445
1425
|
var Ue = /* @__PURE__ */ ((e) => (e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e))(Ue || {});
|
|
1446
|
-
let
|
|
1447
|
-
const
|
|
1426
|
+
let nl = 0;
|
|
1427
|
+
const as = {
|
|
1448
1428
|
beforeCreate() {
|
|
1449
|
-
this.uuid =
|
|
1429
|
+
this.uuid = nl.toString(), nl += 1;
|
|
1450
1430
|
}
|
|
1451
|
-
},
|
|
1452
|
-
function
|
|
1453
|
-
return r(), p("svg",
|
|
1431
|
+
}, is = { key: 0 }, rs = ["clip-path"], ds = ["id"];
|
|
1432
|
+
function us(e, s, i, t, u, l) {
|
|
1433
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
1454
1434
|
class: "ui-assets-icons-16",
|
|
1455
1435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1456
1436
|
width: "16",
|
|
1457
1437
|
height: "16",
|
|
1458
1438
|
fill: "none"
|
|
1459
1439
|
}), [
|
|
1460
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
1461
|
-
|
|
1440
|
+
e.$attrs["svg-title"] ? (r(), p("title", is, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
1441
|
+
L("g", {
|
|
1462
1442
|
fill: "#001222",
|
|
1463
1443
|
"clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
|
|
1464
1444
|
}, s[0] || (s[0] = [
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
]), 8,
|
|
1468
|
-
|
|
1469
|
-
|
|
1445
|
+
L("path", { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" }, null, -1),
|
|
1446
|
+
L("path", { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" }, null, -1)
|
|
1447
|
+
]), 8, rs),
|
|
1448
|
+
L("defs", null, [
|
|
1449
|
+
L("clipPath", {
|
|
1470
1450
|
id: "uia-ui-assets/icons-16-settings__a" + e.uuid
|
|
1471
1451
|
}, s[1] || (s[1] = [
|
|
1472
|
-
|
|
1452
|
+
L("rect", {
|
|
1473
1453
|
width: "16",
|
|
1474
1454
|
height: "16",
|
|
1475
1455
|
fill: "#fff"
|
|
1476
1456
|
}, null, -1)
|
|
1477
|
-
]), 8,
|
|
1457
|
+
]), 8, ds)
|
|
1478
1458
|
])
|
|
1479
1459
|
], 16);
|
|
1480
1460
|
}
|
|
1481
|
-
const
|
|
1461
|
+
const cs = /* @__PURE__ */ ue(as, [["render", us]]), ol = {
|
|
1482
1462
|
"en-US": {
|
|
1483
1463
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1484
1464
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
@@ -1491,12 +1471,12 @@ const fs = /* @__PURE__ */ ue(is, [["render", cs]]), sn = {
|
|
|
1491
1471
|
toggleColumnFreeze: "Alternar congelamento da coluna {label}",
|
|
1492
1472
|
toggleColumnVisibility: "Alternar visibilidade da coluna {label}"
|
|
1493
1473
|
}
|
|
1494
|
-
},
|
|
1495
|
-
i18n: { messages:
|
|
1474
|
+
}, fs = Ie({
|
|
1475
|
+
i18n: { messages: ol },
|
|
1496
1476
|
name: "bento-data-grid",
|
|
1497
1477
|
components: {
|
|
1498
|
-
BentoFreezeIcon:
|
|
1499
|
-
BentoToggle:
|
|
1478
|
+
BentoFreezeIcon: pl,
|
|
1479
|
+
BentoToggle: Cl
|
|
1500
1480
|
},
|
|
1501
1481
|
props: {
|
|
1502
1482
|
/**
|
|
@@ -1516,22 +1496,22 @@ const fs = /* @__PURE__ */ ue(is, [["render", cs]]), sn = {
|
|
|
1516
1496
|
},
|
|
1517
1497
|
emits: ["visible-column", "updated-column"],
|
|
1518
1498
|
setup(e, { emit: s }) {
|
|
1519
|
-
const { t: i } = We({ messages:
|
|
1499
|
+
const { t: i } = We({ messages: ol }), t = E(!1), u = C(() => {
|
|
1520
1500
|
var D;
|
|
1521
1501
|
return (D = e.column) == null ? void 0 : D.frozen;
|
|
1522
|
-
}),
|
|
1502
|
+
}), l = C(() => {
|
|
1523
1503
|
var D;
|
|
1524
1504
|
return ((D = e.column) == null ? void 0 : D.visible) !== !1;
|
|
1525
|
-
}),
|
|
1505
|
+
}), n = Pe(
|
|
1526
1506
|
tt,
|
|
1527
1507
|
C(() => !1)
|
|
1528
1508
|
), v = () => {
|
|
1529
|
-
s("visible-column", { ...e.column, visible: !
|
|
1509
|
+
s("visible-column", { ...e.column, visible: !l.value });
|
|
1530
1510
|
}, f = () => {
|
|
1531
1511
|
s("updated-column", { ...e.column, frozen: !u.value });
|
|
1532
|
-
},
|
|
1512
|
+
}, _ = () => {
|
|
1533
1513
|
u.value || (t.value = !0);
|
|
1534
|
-
},
|
|
1514
|
+
}, b = () => {
|
|
1535
1515
|
u.value || (t.value = !1);
|
|
1536
1516
|
}, N = C(() => ({
|
|
1537
1517
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": u.value
|
|
@@ -1541,26 +1521,26 @@ const fs = /* @__PURE__ */ ue(is, [["render", cs]]), sn = {
|
|
|
1541
1521
|
isFreezeIconOptionShown: t,
|
|
1542
1522
|
isColumnFrozen: u,
|
|
1543
1523
|
freezeIconConditionalClasses: N,
|
|
1544
|
-
isColumnVisible:
|
|
1545
|
-
isSmallContainer:
|
|
1524
|
+
isColumnVisible: l,
|
|
1525
|
+
isSmallContainer: n,
|
|
1546
1526
|
// Methods
|
|
1547
1527
|
toggleColumnVisibility: v,
|
|
1548
|
-
showFreezeIcon:
|
|
1549
|
-
hideFreezeIcon:
|
|
1528
|
+
showFreezeIcon: _,
|
|
1529
|
+
hideFreezeIcon: b,
|
|
1550
1530
|
toggleColumnFreeze: f,
|
|
1551
1531
|
// Translations
|
|
1552
1532
|
t: i
|
|
1553
1533
|
};
|
|
1554
1534
|
}
|
|
1555
1535
|
});
|
|
1556
|
-
function
|
|
1557
|
-
const
|
|
1536
|
+
function gs(e, s, i, t, u, l) {
|
|
1537
|
+
const n = Oe("bento-toggle"), v = Oe("bento-freeze-icon");
|
|
1558
1538
|
return r(), p("div", {
|
|
1559
1539
|
class: "b-data-grid-config-settings-column-row",
|
|
1560
1540
|
onMouseover: s[0] || (s[0] = (...f) => e.showFreezeIcon && e.showFreezeIcon(...f)),
|
|
1561
1541
|
onMouseleave: s[1] || (s[1] = (...f) => e.hideFreezeIcon && e.hideFreezeIcon(...f))
|
|
1562
1542
|
}, [
|
|
1563
|
-
|
|
1543
|
+
Y(n, {
|
|
1564
1544
|
"aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
|
|
1565
1545
|
disabled: e.isColumnVisibilityToggleDisabled,
|
|
1566
1546
|
"label-position": "after",
|
|
@@ -1568,20 +1548,20 @@ function vs(e, s, i, t, u, n) {
|
|
|
1568
1548
|
onInput: e.toggleColumnVisibility
|
|
1569
1549
|
}, {
|
|
1570
1550
|
default: G(() => [
|
|
1571
|
-
ge(
|
|
1551
|
+
ge(X(e.column.label), 1)
|
|
1572
1552
|
]),
|
|
1573
1553
|
_: 1
|
|
1574
1554
|
}, 8, ["aria-label", "disabled", "value", "onInput"]),
|
|
1575
|
-
yt(
|
|
1555
|
+
yt(Y(v, {
|
|
1576
1556
|
"aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
|
|
1577
1557
|
class: ce(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
|
|
1578
1558
|
onClick: e.toggleColumnFreeze
|
|
1579
1559
|
}, null, 8, ["aria-label", "class", "onClick"]), [
|
|
1580
|
-
[
|
|
1560
|
+
[wn, (e.isColumnFrozen || e.isFreezeIconOptionShown) && !e.isSmallContainer]
|
|
1581
1561
|
])
|
|
1582
1562
|
], 32);
|
|
1583
1563
|
}
|
|
1584
|
-
const
|
|
1564
|
+
const vs = /* @__PURE__ */ ue(fs, [["render", gs], ["__scopeId", "data-v-0769d049"]]), sl = {
|
|
1585
1565
|
"en-US": {
|
|
1586
1566
|
appearance: "Appearance",
|
|
1587
1567
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
@@ -1633,22 +1613,22 @@ const ms = /* @__PURE__ */ ue(gs, [["render", vs], ["__scopeId", "data-v-0769d04
|
|
|
1633
1613
|
zebraRows: "Linhas alternadas",
|
|
1634
1614
|
zebraRowsToggle: "Alternar linhas alternadas"
|
|
1635
1615
|
}
|
|
1636
|
-
},
|
|
1637
|
-
i18n: { messages:
|
|
1616
|
+
}, ms = Ie({
|
|
1617
|
+
i18n: { messages: sl },
|
|
1638
1618
|
name: "bento-data-grid",
|
|
1639
1619
|
components: {
|
|
1640
|
-
BentoButton:
|
|
1641
|
-
BentoCrossIcon:
|
|
1642
|
-
BentoPopover:
|
|
1643
|
-
BentoSettingsIcon:
|
|
1620
|
+
BentoButton: hl,
|
|
1621
|
+
BentoCrossIcon: vl,
|
|
1622
|
+
BentoPopover: zn,
|
|
1623
|
+
BentoSettingsIcon: cs,
|
|
1644
1624
|
BentoToggleButton: Tt,
|
|
1645
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1646
|
-
BentoSearchBar:
|
|
1647
|
-
BentoSearchIcon:
|
|
1648
|
-
BentoToggle:
|
|
1649
|
-
BentoTypography:
|
|
1625
|
+
BentoDataGridConfigSettingsConfigRow: vs,
|
|
1626
|
+
BentoSearchBar: Bn,
|
|
1627
|
+
BentoSearchIcon: Hn,
|
|
1628
|
+
BentoToggle: Cl,
|
|
1629
|
+
BentoTypography: je
|
|
1650
1630
|
},
|
|
1651
|
-
directives: { BentoClickOutsideDirective:
|
|
1631
|
+
directives: { BentoClickOutsideDirective: Wn },
|
|
1652
1632
|
props: {
|
|
1653
1633
|
/**
|
|
1654
1634
|
* Column definitions
|
|
@@ -1678,15 +1658,15 @@ const ms = /* @__PURE__ */ ue(gs, [["render", vs], ["__scopeId", "data-v-0769d04
|
|
|
1678
1658
|
Ue.UPDATE_ZEBRA_ROWS
|
|
1679
1659
|
],
|
|
1680
1660
|
setup(e, { emit: s }) {
|
|
1681
|
-
const { t: i } = We({ messages:
|
|
1682
|
-
|
|
1661
|
+
const { t: i } = We({ messages: sl }), t = E(null), u = ct("data-grid-config-settings-popover"), l = E(null), n = E(!1), v = E(!0), f = E(null), _ = E(""), b = bt(e, "columns"), N = E(!1), D = Vn(_, b), S = () => {
|
|
1662
|
+
_.value = "";
|
|
1683
1663
|
}, c = C(
|
|
1684
1664
|
() => !e.columns.some((g) => g.visible === !1 && !g.mandatory)
|
|
1685
1665
|
), A = () => {
|
|
1686
|
-
S(), N.value = !N.value, N.value ?
|
|
1666
|
+
S(), N.value = !N.value, N.value ? _e(() => {
|
|
1687
1667
|
var g;
|
|
1688
|
-
return (g =
|
|
1689
|
-
}) :
|
|
1668
|
+
return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
|
|
1669
|
+
}) : _e(() => {
|
|
1690
1670
|
var g, T;
|
|
1691
1671
|
return (T = (g = f == null ? void 0 : f.value) == null ? void 0 : g.$el) == null ? void 0 : T.focus();
|
|
1692
1672
|
}), v.value = c.value;
|
|
@@ -1696,7 +1676,7 @@ const ms = /* @__PURE__ */ ue(gs, [["render", vs], ["__scopeId", "data-v-0769d04
|
|
|
1696
1676
|
visible: g.field === B.field ? g.visible : B.visible
|
|
1697
1677
|
}));
|
|
1698
1678
|
s(Ue.UPDATE_COLUMNS, T);
|
|
1699
|
-
},
|
|
1679
|
+
}, R = (g) => {
|
|
1700
1680
|
g ? s(
|
|
1701
1681
|
Ue.UPDATE_COLUMNS,
|
|
1702
1682
|
e.columns.map((T) => ({ ...T, visible: !0 }))
|
|
@@ -1711,24 +1691,24 @@ const ms = /* @__PURE__ */ ue(gs, [["render", vs], ["__scopeId", "data-v-0769d04
|
|
|
1711
1691
|
}));
|
|
1712
1692
|
s(Ue.UPDATE_COLUMNS, T);
|
|
1713
1693
|
}, m = (g) => {
|
|
1714
|
-
|
|
1694
|
+
n.value = g, v.value = c.value;
|
|
1715
1695
|
};
|
|
1716
1696
|
return {
|
|
1717
1697
|
// Values
|
|
1718
1698
|
configSettingsButtonRef: t,
|
|
1719
1699
|
popoverId: u,
|
|
1720
|
-
isConfigSettingsPanelOpen:
|
|
1700
|
+
isConfigSettingsPanelOpen: n,
|
|
1721
1701
|
allColumnsVisbilityToggleState: v,
|
|
1722
1702
|
filteredColumnVisibilityColumns: D,
|
|
1723
|
-
searchTerm:
|
|
1703
|
+
searchTerm: _,
|
|
1724
1704
|
isColumnVisibilityFilterShown: N,
|
|
1725
|
-
searchBarRef:
|
|
1705
|
+
searchBarRef: l,
|
|
1726
1706
|
searchButtonRef: f,
|
|
1727
1707
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: Ee,
|
|
1728
1708
|
// Methods
|
|
1729
1709
|
setConfigSettingsPanelVisibility: m,
|
|
1730
1710
|
emitCondensedToggle: (g) => s(Ue.UPDATE_CONDENSED, g),
|
|
1731
|
-
toggleAllColumnVisibility:
|
|
1711
|
+
toggleAllColumnVisibility: R,
|
|
1732
1712
|
clearAction: S,
|
|
1733
1713
|
toggleColumnFilter: A,
|
|
1734
1714
|
emitVisibleColumns: k,
|
|
@@ -1740,22 +1720,22 @@ const ms = /* @__PURE__ */ ue(gs, [["render", vs], ["__scopeId", "data-v-0769d04
|
|
|
1740
1720
|
t: i
|
|
1741
1721
|
};
|
|
1742
1722
|
}
|
|
1743
|
-
}),
|
|
1723
|
+
}), hs = { class: "b-data-grid-config-settings" }, Cs = { class: "b-data-grid-config-settings__button-and-separator" }, _s = {
|
|
1744
1724
|
ref: "configSettingsButtonRef",
|
|
1745
1725
|
class: "b-data-grid-config-settings__button-container"
|
|
1746
|
-
},
|
|
1726
|
+
}, bs = { class: "b-data-grid-config-settings__panel-header" }, ws = { class: "b-data-grid-config-settings__appearance" }, Ss = { class: "b-data-grid-config-settings__appearance-button" }, ps = { class: "b-data-grid-config-settings__appearance-button" }, Es = { class: "b-data-grid-config-settings__column-visibility-settings" }, ys = { class: "b-data-grid-config-settings__column-visibility-header" }, Rs = {
|
|
1747
1727
|
key: 0,
|
|
1748
1728
|
class: "b-data-grid-config-settings__column-visibility-search"
|
|
1749
|
-
},
|
|
1729
|
+
}, Ls = {
|
|
1750
1730
|
key: 1,
|
|
1751
1731
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1754
|
-
const
|
|
1755
|
-
return yt((r(), p("div",
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1732
|
+
}, As = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1733
|
+
function Ts(e, s, i, t, u, l) {
|
|
1734
|
+
const n = Oe("bento-settings-icon"), v = Oe("bento-toggle-button"), f = Oe("bento-typography"), _ = Oe("bento-cross-icon"), b = Oe("bento-button"), N = Oe("bento-toggle"), D = Oe("bento-search-icon"), S = Oe("bento-search-bar"), c = Oe("bento-data-grid-config-settings-config-row"), A = Oe("bento-popover"), O = Sn("bento-click-outside-directive");
|
|
1735
|
+
return yt((r(), p("div", hs, [
|
|
1736
|
+
L("div", Cs, [
|
|
1737
|
+
L("div", _s, [
|
|
1738
|
+
Y(v, {
|
|
1759
1739
|
"aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
|
|
1760
1740
|
variant: "tertiary",
|
|
1761
1741
|
condensed: "",
|
|
@@ -1763,7 +1743,7 @@ function Os(e, s, i, t, u, n) {
|
|
|
1763
1743
|
onClick: s[0] || (s[0] = (k) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
|
|
1764
1744
|
}, {
|
|
1765
1745
|
iconLeft: G(() => [
|
|
1766
|
-
|
|
1746
|
+
Y(n, {
|
|
1767
1747
|
"svg-title": e.t("toggleConfigSettingsPanelVisibility")
|
|
1768
1748
|
}, null, 8, ["svg-title"])
|
|
1769
1749
|
]),
|
|
@@ -1781,107 +1761,107 @@ function Os(e, s, i, t, u, n) {
|
|
|
1781
1761
|
position: "bottom-end"
|
|
1782
1762
|
}, {
|
|
1783
1763
|
default: G(() => [
|
|
1784
|
-
|
|
1785
|
-
|
|
1764
|
+
L("div", bs, [
|
|
1765
|
+
Y(f, {
|
|
1786
1766
|
el: "span",
|
|
1787
1767
|
strongest: ""
|
|
1788
1768
|
}, {
|
|
1789
1769
|
default: G(() => [
|
|
1790
|
-
ge(
|
|
1770
|
+
ge(X(e.t("displayOptions")), 1)
|
|
1791
1771
|
]),
|
|
1792
1772
|
_: 1
|
|
1793
1773
|
}),
|
|
1794
|
-
|
|
1774
|
+
Y(b, {
|
|
1795
1775
|
variant: "tertiary",
|
|
1796
1776
|
onClick: s[1] || (s[1] = (k) => e.setConfigSettingsPanelVisibility(!1))
|
|
1797
1777
|
}, {
|
|
1798
1778
|
iconLeft: G(() => [
|
|
1799
|
-
|
|
1779
|
+
Y(_, {
|
|
1800
1780
|
"svg-title": e.t("closeConfigSettingsPanel")
|
|
1801
1781
|
}, null, 8, ["svg-title"])
|
|
1802
1782
|
]),
|
|
1803
1783
|
_: 1
|
|
1804
1784
|
})
|
|
1805
1785
|
]),
|
|
1806
|
-
|
|
1807
|
-
|
|
1786
|
+
L("div", ws, [
|
|
1787
|
+
Y(f, {
|
|
1808
1788
|
class: "b-data-grid-config-settings__appearance-title",
|
|
1809
1789
|
el: "span",
|
|
1810
1790
|
stronger: ""
|
|
1811
1791
|
}, {
|
|
1812
1792
|
default: G(() => [
|
|
1813
|
-
ge(
|
|
1793
|
+
ge(X(e.t("appearance")), 1)
|
|
1814
1794
|
]),
|
|
1815
1795
|
_: 1
|
|
1816
1796
|
}),
|
|
1817
|
-
|
|
1818
|
-
|
|
1797
|
+
L("div", Ss, [
|
|
1798
|
+
Y(N, {
|
|
1819
1799
|
"label-position": "after",
|
|
1820
1800
|
"aria-label": e.t("condensedToggle"),
|
|
1821
1801
|
value: e.condensed,
|
|
1822
1802
|
onInput: e.emitCondensedToggle
|
|
1823
1803
|
}, {
|
|
1824
1804
|
default: G(() => [
|
|
1825
|
-
ge(
|
|
1805
|
+
ge(X(e.t("condensed")), 1)
|
|
1826
1806
|
]),
|
|
1827
1807
|
_: 1
|
|
1828
1808
|
}, 8, ["aria-label", "value", "onInput"])
|
|
1829
1809
|
]),
|
|
1830
|
-
|
|
1831
|
-
|
|
1810
|
+
L("div", ps, [
|
|
1811
|
+
Y(N, {
|
|
1832
1812
|
"label-position": "after",
|
|
1833
1813
|
"aria-label": e.t("zebraRowsToggle"),
|
|
1834
1814
|
value: e.zebraRows,
|
|
1835
1815
|
onInput: e.emitZebraRowsToggle
|
|
1836
1816
|
}, {
|
|
1837
1817
|
default: G(() => [
|
|
1838
|
-
ge(
|
|
1818
|
+
ge(X(e.t("zebraRows")), 1)
|
|
1839
1819
|
]),
|
|
1840
1820
|
_: 1
|
|
1841
1821
|
}, 8, ["aria-label", "value", "onInput"])
|
|
1842
1822
|
])
|
|
1843
1823
|
]),
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1824
|
+
L("div", Es, [
|
|
1825
|
+
L("div", ys, [
|
|
1826
|
+
Y(f, {
|
|
1847
1827
|
class: "b-data-grid-config-settings__column-visibility-title",
|
|
1848
1828
|
el: "span",
|
|
1849
1829
|
stronger: ""
|
|
1850
1830
|
}, {
|
|
1851
1831
|
default: G(() => [
|
|
1852
|
-
ge(
|
|
1832
|
+
ge(X(e.t("columns")), 1)
|
|
1853
1833
|
]),
|
|
1854
1834
|
_: 1
|
|
1855
1835
|
}),
|
|
1856
|
-
e.isColumnVisibilityFilterShown ? (r(), H(
|
|
1836
|
+
e.isColumnVisibilityFilterShown ? (r(), H(b, {
|
|
1857
1837
|
key: 1,
|
|
1858
1838
|
variant: "tertiary",
|
|
1859
1839
|
onClick: e.toggleColumnFilter
|
|
1860
1840
|
}, {
|
|
1861
1841
|
iconLeft: G(() => [
|
|
1862
|
-
|
|
1842
|
+
Y(_)
|
|
1863
1843
|
]),
|
|
1864
1844
|
default: G(() => [
|
|
1865
|
-
ge(" " +
|
|
1845
|
+
ge(" " + X(e.t("closeSearch")), 1)
|
|
1866
1846
|
]),
|
|
1867
1847
|
_: 1
|
|
1868
|
-
}, 8, ["onClick"])) : (r(), H(
|
|
1848
|
+
}, 8, ["onClick"])) : (r(), H(b, {
|
|
1869
1849
|
key: 0,
|
|
1870
1850
|
ref: "searchButtonRef",
|
|
1871
1851
|
variant: "tertiary",
|
|
1872
1852
|
onClick: e.toggleColumnFilter
|
|
1873
1853
|
}, {
|
|
1874
1854
|
iconLeft: G(() => [
|
|
1875
|
-
|
|
1855
|
+
Y(D)
|
|
1876
1856
|
]),
|
|
1877
1857
|
default: G(() => [
|
|
1878
|
-
ge(
|
|
1858
|
+
ge(X(e.t("search")), 1)
|
|
1879
1859
|
]),
|
|
1880
1860
|
_: 1
|
|
1881
1861
|
}, 8, ["onClick"]))
|
|
1882
1862
|
]),
|
|
1883
1863
|
e.isColumnVisibilityFilterShown ? (r(), p("div", Rs, [
|
|
1884
|
-
|
|
1864
|
+
Y(S, {
|
|
1885
1865
|
ref: "searchBarRef",
|
|
1886
1866
|
value: e.searchTerm,
|
|
1887
1867
|
"input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
|
|
@@ -1889,20 +1869,20 @@ function Os(e, s, i, t, u, n) {
|
|
|
1889
1869
|
onClear: e.clearAction,
|
|
1890
1870
|
onEscapePressed: e.toggleColumnFilter
|
|
1891
1871
|
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
1892
|
-
])) : (r(), p("div",
|
|
1893
|
-
|
|
1872
|
+
])) : (r(), p("div", Ls, [
|
|
1873
|
+
Y(N, {
|
|
1894
1874
|
"label-position": "after",
|
|
1895
1875
|
value: e.allColumnsVisbilityToggleState,
|
|
1896
1876
|
onInput: e.toggleAllColumnVisibility
|
|
1897
1877
|
}, {
|
|
1898
1878
|
default: G(() => [
|
|
1899
|
-
ge(
|
|
1879
|
+
ge(X(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
|
|
1900
1880
|
]),
|
|
1901
1881
|
_: 1
|
|
1902
1882
|
}, 8, ["value", "onInput"])
|
|
1903
1883
|
])),
|
|
1904
|
-
|
|
1905
|
-
(r(!0), p(
|
|
1884
|
+
L("div", As, [
|
|
1885
|
+
(r(!0), p(be, null, Ae(e.filteredColumnVisibilityColumns, (k) => (r(), p("div", {
|
|
1906
1886
|
key: k.field
|
|
1907
1887
|
}, [
|
|
1908
1888
|
k.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (r(), H(c, {
|
|
@@ -1919,7 +1899,7 @@ function Os(e, s, i, t, u, n) {
|
|
|
1919
1899
|
class: "b-data-grid-config-settings__column-visibility-empty-search-message"
|
|
1920
1900
|
}, {
|
|
1921
1901
|
default: G(() => [
|
|
1922
|
-
ge(
|
|
1902
|
+
ge(X(e.t("noColumnsMatch")), 1)
|
|
1923
1903
|
]),
|
|
1924
1904
|
_: 1
|
|
1925
1905
|
})) : W("", !0)
|
|
@@ -1932,7 +1912,7 @@ function Os(e, s, i, t, u, n) {
|
|
|
1932
1912
|
[O, e.onClickOutside]
|
|
1933
1913
|
]);
|
|
1934
1914
|
}
|
|
1935
|
-
const
|
|
1915
|
+
const Os = /* @__PURE__ */ ue(ms, [["render", Ts], ["__scopeId", "data-v-01dda331"]]), vt = {
|
|
1936
1916
|
"en-US": {
|
|
1937
1917
|
filterBar: "Filters",
|
|
1938
1918
|
gettingYourData: "Getting your data",
|
|
@@ -1969,10 +1949,10 @@ const Ns = /* @__PURE__ */ ue(hs, [["render", Os], ["__scopeId", "data-v-01dda33
|
|
|
1969
1949
|
sortDescending: "{field} ordenar em ordem decrescente",
|
|
1970
1950
|
sortInactive: "{field} ordenação inativa"
|
|
1971
1951
|
}
|
|
1972
|
-
},
|
|
1952
|
+
}, Ns = { class: "b-data-grid-lazy-load" }, Is = {
|
|
1973
1953
|
i18n: { messages: vt }
|
|
1974
|
-
},
|
|
1975
|
-
|
|
1954
|
+
}, $s = /* @__PURE__ */ Ie({
|
|
1955
|
+
...Is,
|
|
1976
1956
|
__name: "data-grid-lazy-load",
|
|
1977
1957
|
props: {
|
|
1978
1958
|
loading: { type: Boolean },
|
|
@@ -1980,7 +1960,7 @@ const Ns = /* @__PURE__ */ ue(hs, [["render", Os], ["__scopeId", "data-v-01dda33
|
|
|
1980
1960
|
},
|
|
1981
1961
|
setup(e) {
|
|
1982
1962
|
const { t: s } = We({ messages: vt });
|
|
1983
|
-
return (i, t) => (r(), p("div",
|
|
1963
|
+
return (i, t) => (r(), p("div", Ns, [
|
|
1984
1964
|
i.loading && i.isInfiniteScroll ? (r(), H(o(ut), { key: 0 })) : W("", !0),
|
|
1985
1965
|
i.loading && !i.isInfiniteScroll ? (r(), H(o(Bt), {
|
|
1986
1966
|
key: 1,
|
|
@@ -1988,7 +1968,7 @@ const Ns = /* @__PURE__ */ ue(hs, [["render", Os], ["__scopeId", "data-v-01dda33
|
|
|
1988
1968
|
state: o(Wt).LOADING
|
|
1989
1969
|
}, {
|
|
1990
1970
|
default: G(() => [
|
|
1991
|
-
ge(
|
|
1971
|
+
ge(X(o(s)("loading")), 1)
|
|
1992
1972
|
]),
|
|
1993
1973
|
_: 1
|
|
1994
1974
|
}, 8, ["state"])) : W("", !0),
|
|
@@ -1999,35 +1979,35 @@ const Ns = /* @__PURE__ */ ue(hs, [["render", Os], ["__scopeId", "data-v-01dda33
|
|
|
1999
1979
|
onClick: t[0] || (t[0] = (u) => i.$emit(o(z).UPDATE_SHOW_MORE))
|
|
2000
1980
|
}, {
|
|
2001
1981
|
default: G(() => [
|
|
2002
|
-
ge(
|
|
1982
|
+
ge(X(o(s)("showMore")), 1)
|
|
2003
1983
|
]),
|
|
2004
1984
|
_: 1
|
|
2005
1985
|
}, 8, ["state"])) : W("", !0)
|
|
2006
1986
|
]));
|
|
2007
1987
|
}
|
|
2008
|
-
}),
|
|
2009
|
-
let
|
|
2010
|
-
const
|
|
1988
|
+
}), Ds = /* @__PURE__ */ ue($s, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1989
|
+
let al = 0;
|
|
1990
|
+
const ks = {
|
|
2011
1991
|
beforeCreate() {
|
|
2012
|
-
this.uuid =
|
|
1992
|
+
this.uuid = al.toString(), al += 1;
|
|
2013
1993
|
}
|
|
2014
|
-
},
|
|
2015
|
-
function
|
|
2016
|
-
return r(), p("svg",
|
|
1994
|
+
}, Us = { key: 0 };
|
|
1995
|
+
function Ms(e, s, i, t, u, l) {
|
|
1996
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
2017
1997
|
class: "ui-assets-icons-16",
|
|
2018
1998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2019
1999
|
width: "16",
|
|
2020
2000
|
height: "16",
|
|
2021
2001
|
fill: "none"
|
|
2022
2002
|
}), [
|
|
2023
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
2024
|
-
s[0] || (s[0] =
|
|
2003
|
+
e.$attrs["svg-title"] ? (r(), p("title", Us, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
2004
|
+
s[0] || (s[0] = L("path", {
|
|
2025
2005
|
fill: "#001222",
|
|
2026
2006
|
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"
|
|
2027
2007
|
}, null, -1))
|
|
2028
2008
|
], 16);
|
|
2029
2009
|
}
|
|
2030
|
-
const
|
|
2010
|
+
const il = /* @__PURE__ */ ue(ks, [["render", Ms]]), Rl = {
|
|
2031
2011
|
"en-US": {
|
|
2032
2012
|
copy: "Copy",
|
|
2033
2013
|
edit: "Edit",
|
|
@@ -2046,11 +2026,11 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2046
2026
|
more: "Mais",
|
|
2047
2027
|
open: "Aberto"
|
|
2048
2028
|
}
|
|
2049
|
-
},
|
|
2050
|
-
i18n: { messages:
|
|
2029
|
+
}, Fs = { class: "b-data-grid-cell-actions" }, zs = {
|
|
2030
|
+
i18n: { messages: Rl },
|
|
2051
2031
|
name: "data-grid-cell-actions"
|
|
2052
|
-
},
|
|
2053
|
-
...
|
|
2032
|
+
}, Ps = /* @__PURE__ */ Ie({
|
|
2033
|
+
...zs,
|
|
2054
2034
|
props: {
|
|
2055
2035
|
/**
|
|
2056
2036
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -2119,7 +2099,7 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2119
2099
|
},
|
|
2120
2100
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
2121
2101
|
setup(e, { emit: s }) {
|
|
2122
|
-
const { t: i } = We({ messages:
|
|
2102
|
+
const { t: i } = We({ messages: Rl }), t = e, u = s, l = Pe(gt, E(!1)), n = (m) => {
|
|
2123
2103
|
if ("text" in m && m.text !== void 0)
|
|
2124
2104
|
return m.text;
|
|
2125
2105
|
switch (m.variant) {
|
|
@@ -2139,18 +2119,18 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2139
2119
|
case "copy":
|
|
2140
2120
|
return Zt;
|
|
2141
2121
|
case "edit":
|
|
2142
|
-
return
|
|
2122
|
+
return il;
|
|
2143
2123
|
case "open":
|
|
2144
2124
|
return xt;
|
|
2145
2125
|
default:
|
|
2146
2126
|
return;
|
|
2147
2127
|
}
|
|
2148
|
-
}, f = C(() => t.columnKey === void 0),
|
|
2128
|
+
}, f = C(() => t.columnKey === void 0), _ = C(() => ({
|
|
2149
2129
|
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": f.value && t.hasRightOverflow,
|
|
2150
2130
|
"b-data-grid-cell-actions__background-gradient--zebra": t.hasZebraBackground,
|
|
2151
2131
|
"b-data-grid-cell-actions__background-gradient--highlighted": t.isHighlighted,
|
|
2152
2132
|
"b-data-grid-cell-actions__background-gradient--selected": t.isSelected
|
|
2153
|
-
})),
|
|
2133
|
+
})), b = C(() => ({
|
|
2154
2134
|
"b-data-grid-cell-actions__actions--with-row-actions": f.value,
|
|
2155
2135
|
"b-data-grid-cell-actions__actions--zebra": t.hasZebraBackground,
|
|
2156
2136
|
"b-data-grid-cell-actions__actions--highlighted": t.isHighlighted,
|
|
@@ -2162,13 +2142,13 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2162
2142
|
const S = C(() => {
|
|
2163
2143
|
var F;
|
|
2164
2144
|
const m = D(t.cellActions) ? (F = t.cellActions) == null ? void 0 : F.call(t, t.rowDataItem, t.columnKey) : t.cellActions;
|
|
2165
|
-
if (
|
|
2145
|
+
if (l.value && !f.value && m) {
|
|
2166
2146
|
const h = [];
|
|
2167
2147
|
return m.forEach((a) => {
|
|
2168
2148
|
a.menuData ? a.menuData.forEach((g) => {
|
|
2169
2149
|
h.push(g);
|
|
2170
2150
|
}) : h.push({
|
|
2171
|
-
text:
|
|
2151
|
+
text: n(a),
|
|
2172
2152
|
event: a.event,
|
|
2173
2153
|
critical: a.critical,
|
|
2174
2154
|
disabled: a.disabled,
|
|
@@ -2183,7 +2163,7 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2183
2163
|
}
|
|
2184
2164
|
];
|
|
2185
2165
|
}
|
|
2186
|
-
return !
|
|
2166
|
+
return !l.value && (m == null ? void 0 : m.length) > 2 && ml(
|
|
2187
2167
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
2188
2168
|
), m == null ? void 0 : m.slice(0, 2);
|
|
2189
2169
|
}), c = C(() => (m, F) => {
|
|
@@ -2212,29 +2192,29 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2212
2192
|
}), k = (m) => m.map((F) => {
|
|
2213
2193
|
const h = F;
|
|
2214
2194
|
return h != null && h.items && (h.items = k(h.items)), { ...O(h) };
|
|
2215
|
-
}),
|
|
2195
|
+
}), R = (m) => {
|
|
2216
2196
|
var F, h;
|
|
2217
2197
|
return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (h = (F = t.rowDataItem) == null ? void 0 : F[t.columnKey]) == null ? void 0 : h.toString() : "";
|
|
2218
2198
|
}, M = (m) => m.iconLeft || (m == null ? void 0 : m.variant) === "more";
|
|
2219
|
-
return (m, F) => (r(), H(
|
|
2199
|
+
return (m, F) => (r(), H(gl, {
|
|
2220
2200
|
name: "b-data-grid-cell-actions__animation",
|
|
2221
2201
|
appear: ""
|
|
2222
2202
|
}, {
|
|
2223
2203
|
default: G(() => [
|
|
2224
|
-
|
|
2225
|
-
N.value && !o(
|
|
2204
|
+
L("div", Fs, [
|
|
2205
|
+
N.value && !o(l) ? (r(), p("div", {
|
|
2226
2206
|
key: 0,
|
|
2227
|
-
class: ce(["b-data-grid-cell-actions__background-gradient",
|
|
2207
|
+
class: ce(["b-data-grid-cell-actions__background-gradient", _.value])
|
|
2228
2208
|
}, null, 2)) : W("", !0),
|
|
2229
|
-
|
|
2230
|
-
class: ce(["b-data-grid-cell-actions__actions",
|
|
2209
|
+
L("div", {
|
|
2210
|
+
class: ce(["b-data-grid-cell-actions__actions", b.value]),
|
|
2231
2211
|
role: "group"
|
|
2232
2212
|
}, [
|
|
2233
|
-
(r(!0), p(
|
|
2213
|
+
(r(!0), p(be, null, Ae(S.value, (h, a) => (r(), p("div", {
|
|
2234
2214
|
key: a,
|
|
2235
2215
|
class: "b-data-grid-cell-actions__action"
|
|
2236
2216
|
}, [
|
|
2237
|
-
h.menuData ? (r(), H(o(
|
|
2217
|
+
h.menuData ? (r(), H(o(wt), {
|
|
2238
2218
|
key: 0,
|
|
2239
2219
|
data: k(h.menuData),
|
|
2240
2220
|
button: {
|
|
@@ -2247,14 +2227,14 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2247
2227
|
onOpen: F[0] || (F[0] = (g) => u("menu-open")),
|
|
2248
2228
|
onClose: F[1] || (F[1] = (g) => u("menu-close")),
|
|
2249
2229
|
onMenuItemClick: F[2] || (F[2] = (g) => u("menu-item-click"))
|
|
2250
|
-
},
|
|
2230
|
+
}, Je({ _: 2 }, [
|
|
2251
2231
|
M(h) ? {
|
|
2252
2232
|
name: "iconLeft",
|
|
2253
2233
|
fn: G(() => [
|
|
2254
2234
|
(h == null ? void 0 : h.variant) === "more" ? (r(), H(o(Vt), {
|
|
2255
2235
|
key: 0,
|
|
2256
2236
|
"svg-title": c.value(h, !0)
|
|
2257
|
-
}, null, 8, ["svg-title"])) : (r(), H(
|
|
2237
|
+
}, null, 8, ["svg-title"])) : (r(), H(Ye(h.iconLeft), {
|
|
2258
2238
|
key: 1,
|
|
2259
2239
|
"svg-title": c.value(h, !0)
|
|
2260
2240
|
}, null, 8, ["svg-title"]))
|
|
@@ -2264,33 +2244,33 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2264
2244
|
h != null && h.isShort ? void 0 : {
|
|
2265
2245
|
name: "default",
|
|
2266
2246
|
fn: G(() => [
|
|
2267
|
-
ge(
|
|
2247
|
+
ge(X(c.value(h)), 1)
|
|
2268
2248
|
]),
|
|
2269
2249
|
key: "1"
|
|
2270
2250
|
}
|
|
2271
2251
|
]), 1032, ["data", "button", "disable-arrow-down-opening-menu", "teleport"])) : h.variant === "copy" ? (r(), H(o(Zt), {
|
|
2272
2252
|
key: 1,
|
|
2273
|
-
text:
|
|
2253
|
+
text: R(h),
|
|
2274
2254
|
"button-text": c.value(h),
|
|
2275
2255
|
button: {
|
|
2276
2256
|
condensed: !0,
|
|
2277
2257
|
variant: "secondary"
|
|
2278
2258
|
}
|
|
2279
|
-
}, null, 8, ["text", "button-text"])) : (r(), H(o(
|
|
2259
|
+
}, null, 8, ["text", "button-text"])) : (r(), H(o(hl), se({
|
|
2280
2260
|
key: 2,
|
|
2281
2261
|
condensed: "",
|
|
2282
2262
|
variant: "secondary",
|
|
2283
2263
|
critical: h.critical,
|
|
2284
2264
|
disabled: h.disabled,
|
|
2285
2265
|
link: h.link
|
|
2286
|
-
}, ft(A(h))),
|
|
2266
|
+
}, ft(A(h))), Je({ _: 2 }, [
|
|
2287
2267
|
h.iconLeft || h.variant === "edit" ? {
|
|
2288
2268
|
name: "iconLeft",
|
|
2289
2269
|
fn: G(() => [
|
|
2290
|
-
(h == null ? void 0 : h.variant) === "edit" ? (r(), H(o(
|
|
2270
|
+
(h == null ? void 0 : h.variant) === "edit" ? (r(), H(o(il), {
|
|
2291
2271
|
key: 0,
|
|
2292
2272
|
"svg-title": c.value(h, !0)
|
|
2293
|
-
}, null, 8, ["svg-title"])) : (r(), H(
|
|
2273
|
+
}, null, 8, ["svg-title"])) : (r(), H(Ye(h.iconLeft), {
|
|
2294
2274
|
key: 1,
|
|
2295
2275
|
"svg-title": h.title
|
|
2296
2276
|
}, null, 8, ["svg-title"]))
|
|
@@ -2300,7 +2280,7 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2300
2280
|
h != null && h.isShort ? void 0 : {
|
|
2301
2281
|
name: "default",
|
|
2302
2282
|
fn: G(() => [
|
|
2303
|
-
ge(
|
|
2283
|
+
ge(X(c.value(h)), 1)
|
|
2304
2284
|
]),
|
|
2305
2285
|
key: "1"
|
|
2306
2286
|
},
|
|
@@ -2310,7 +2290,7 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2310
2290
|
(h == null ? void 0 : h.variant) === "open" ? (r(), H(o(xt), {
|
|
2311
2291
|
key: 0,
|
|
2312
2292
|
"svg-title": c.value(h, !0)
|
|
2313
|
-
}, null, 8, ["svg-title"])) : (r(), H(
|
|
2293
|
+
}, null, 8, ["svg-title"])) : (r(), H(Ye(h.iconRight), {
|
|
2314
2294
|
key: 1,
|
|
2315
2295
|
"svg-title": h.title
|
|
2316
2296
|
}, null, 8, ["svg-title"]))
|
|
@@ -2325,12 +2305,12 @@ const dn = /* @__PURE__ */ ue(Us, [["render", Fs]]), An = {
|
|
|
2325
2305
|
_: 1
|
|
2326
2306
|
}));
|
|
2327
2307
|
}
|
|
2328
|
-
}),
|
|
2308
|
+
}), Ll = /* @__PURE__ */ ue(Ps, [["__scopeId", "data-v-b8bb5e39"]]);
|
|
2329
2309
|
var he = /* @__PURE__ */ ((e) => (e.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", e.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", e.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e.SLASHED_ZERO = "slashed-zero", e))(he || {});
|
|
2330
|
-
const
|
|
2310
|
+
const rl = () => {
|
|
2331
2311
|
const e = document.activeElement;
|
|
2332
2312
|
return e ? e.matches(":focus-visible") || e.matches(".focus-visible") : !1;
|
|
2333
|
-
},
|
|
2313
|
+
}, Al = {
|
|
2334
2314
|
"en-US": {
|
|
2335
2315
|
collapseNestedContent: "Collapse nested content",
|
|
2336
2316
|
expandNestedContent: "Expand nested content",
|
|
@@ -2346,14 +2326,14 @@ const un = () => {
|
|
|
2346
2326
|
expandNestedContent: "Expandir conteúdo aninhado",
|
|
2347
2327
|
selectRow: "Selecionar linha"
|
|
2348
2328
|
}
|
|
2349
|
-
},
|
|
2329
|
+
}, Bs = ["aria-hidden", "data-testid", "data-cellindex", "tabindex", "aria-colindex"], Ws = ["title"], Vs = {
|
|
2350
2330
|
key: 0,
|
|
2351
2331
|
class: "b-data-grid-cell__cell-actions"
|
|
2352
|
-
},
|
|
2353
|
-
i18n: { messages:
|
|
2332
|
+
}, Hs = {
|
|
2333
|
+
i18n: { messages: Al },
|
|
2354
2334
|
name: "data-grid-cell"
|
|
2355
|
-
},
|
|
2356
|
-
...
|
|
2335
|
+
}, Gs = /* @__PURE__ */ Ie({
|
|
2336
|
+
...Hs,
|
|
2357
2337
|
props: {
|
|
2358
2338
|
draggingEventsForRowCell: {
|
|
2359
2339
|
type: Function,
|
|
@@ -2496,106 +2476,106 @@ const un = () => {
|
|
|
2496
2476
|
},
|
|
2497
2477
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
2498
2478
|
setup(e, { expose: s, emit: i }) {
|
|
2499
|
-
const t =
|
|
2479
|
+
const t = Rt(), u = Lt(t), { t: l } = We({ messages: Al }), n = e, v = i, f = E(null), _ = E(null), b = E(!1), N = E([]), D = E(!1), S = E(), c = E(!1), A = C(() => {
|
|
2500
2480
|
var y;
|
|
2501
|
-
return !!((y =
|
|
2481
|
+
return !!((y = n.rowData) != null && y[n.column.field]);
|
|
2502
2482
|
}), O = C(
|
|
2503
2483
|
() => {
|
|
2504
2484
|
var y;
|
|
2505
|
-
return
|
|
2485
|
+
return n.column.field === Ee && ((y = n.nestedRowsElementIds) == null ? void 0 : y.length) > 0 ? n.nestedRowsElementIds.join(" ") : void 0;
|
|
2506
2486
|
}
|
|
2507
2487
|
), k = C(
|
|
2508
|
-
() =>
|
|
2509
|
-
),
|
|
2510
|
-
var
|
|
2511
|
-
(y === null || !f.value.contains(y) && !((
|
|
2488
|
+
() => n.column.field === Ee && !n.selectable && !n.nestedContent
|
|
2489
|
+
), R = C(() => !k.value && (a(n.rowIndex, n.colIndex, n.columnSetIndex) === 0 && !c.value || D.value) ? "0" : (n.column.field === Ee, "-1")), M = (y, Q) => (y == null ? void 0 : y.overflow) === St.ELLIPSIS ? `${Q}` : void 0, m = (y) => y ?? "-", F = (y) => n.columnSets.slice(0, y).reduce((Q, { columnSet: J }) => Q + J.length, 0), h = (y, Q) => y + F(Q), a = (y, Q, J) => F() * y + h(Q, J), g = (y) => {
|
|
2490
|
+
var Q;
|
|
2491
|
+
(y === null || !f.value.contains(y) && !((Q = N.value) != null && Q.map((J) => J.value).some((J) => J === y || (J == null ? void 0 : J.contains(y))))) && (b.value = !1);
|
|
2512
2492
|
}, T = () => {
|
|
2513
|
-
|
|
2493
|
+
b.value = !1;
|
|
2514
2494
|
}, B = E(!1), x = (y) => {
|
|
2515
|
-
const
|
|
2516
|
-
...
|
|
2495
|
+
const Q = {
|
|
2496
|
+
...n.draggingEventsForRowCell(y),
|
|
2517
2497
|
// Focus on the first interactive child in the grid cell if one exists
|
|
2518
2498
|
focus: async () => {
|
|
2519
|
-
if (!
|
|
2499
|
+
if (!rl())
|
|
2520
2500
|
return;
|
|
2521
2501
|
D.value = !0, c.value = !0, v("cell-focus", {
|
|
2522
|
-
rowData:
|
|
2523
|
-
column:
|
|
2524
|
-
rowIndex:
|
|
2525
|
-
colIndex: h(
|
|
2526
|
-
}),
|
|
2502
|
+
rowData: n.rowData,
|
|
2503
|
+
column: n.column,
|
|
2504
|
+
rowIndex: n.rowIndex,
|
|
2505
|
+
colIndex: h(n.colIndex, n.columnSetIndex)
|
|
2506
|
+
}), Sl(S.value), await _e(), Ot(f.value) && (B.value = !0);
|
|
2527
2507
|
},
|
|
2528
2508
|
focusout: () => {
|
|
2529
|
-
|
|
2509
|
+
rl() && (B.value = !1);
|
|
2530
2510
|
},
|
|
2531
2511
|
keydown: (ee) => {
|
|
2532
2512
|
ee.key !== Ne.TAB && (B.value = !1, D.value = !1, Ze(f.value));
|
|
2533
2513
|
}
|
|
2534
|
-
},
|
|
2535
|
-
return y.frozen && (
|
|
2536
|
-
|
|
2537
|
-
}), y.cellActions && (
|
|
2538
|
-
|
|
2539
|
-
},
|
|
2514
|
+
}, J = { ...Q };
|
|
2515
|
+
return y.frozen && (J.keyup = (ee) => v("on-frozen-columns-key-press", ee), J.keydown = (ee) => {
|
|
2516
|
+
Q.keydown(ee), v("on-frozen-columns-key-press", ee);
|
|
2517
|
+
}), y.cellActions && (J.mouseenter = () => {
|
|
2518
|
+
b.value = !0;
|
|
2519
|
+
}, J.mouseleave = (ee) => {
|
|
2540
2520
|
g(ee == null ? void 0 : ee.relatedTarget);
|
|
2541
|
-
},
|
|
2542
|
-
|
|
2543
|
-
},
|
|
2544
|
-
|
|
2545
|
-
}),
|
|
2521
|
+
}, J.focus = async (ee) => {
|
|
2522
|
+
Q.focus(ee), await _e(), b.value = !0;
|
|
2523
|
+
}, J.focusout = (ee) => {
|
|
2524
|
+
Q.focusout(ee), g(ee == null ? void 0 : ee.relatedTarget);
|
|
2525
|
+
}), J;
|
|
2546
2526
|
};
|
|
2547
|
-
|
|
2527
|
+
Xe(() => {
|
|
2548
2528
|
S.value = Ze(f.value);
|
|
2549
2529
|
});
|
|
2550
2530
|
const Z = () => {
|
|
2551
2531
|
v("nested-content-toggled");
|
|
2552
2532
|
};
|
|
2553
2533
|
ye(
|
|
2554
|
-
() =>
|
|
2534
|
+
() => b.value,
|
|
2555
2535
|
() => {
|
|
2556
|
-
|
|
2536
|
+
b.value === !0 ? v("cell-hovered", n.rowIndex) : v("cell-hovered", -1);
|
|
2557
2537
|
}
|
|
2558
|
-
), rt(
|
|
2538
|
+
), rt(Pn, {
|
|
2559
2539
|
registerMenuContainerElement: (y) => {
|
|
2560
2540
|
N.value.push(y);
|
|
2561
2541
|
},
|
|
2562
2542
|
menuMouseLeave: (y) => {
|
|
2563
|
-
f.value.contains(y == null ? void 0 : y.relatedTarget) || (
|
|
2543
|
+
f.value.contains(y == null ? void 0 : y.relatedTarget) || (b.value = !1);
|
|
2564
2544
|
}
|
|
2565
2545
|
});
|
|
2566
|
-
const ve = Pe(
|
|
2546
|
+
const ve = Pe(yl, E(!1)), fe = Pe(
|
|
2567
2547
|
tt,
|
|
2568
2548
|
C(() => !1)
|
|
2569
|
-
),
|
|
2570
|
-
var
|
|
2549
|
+
), ne = Pe(gt, E(!1)), q = (y) => {
|
|
2550
|
+
var Q, J, ee, Ve, Te, Be, d;
|
|
2571
2551
|
return {
|
|
2572
|
-
[`b-data-grid-cell--${he.COLUMN_HOVERED}`]: (y == null ? void 0 : y.field) ===
|
|
2573
|
-
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (y == null ? void 0 : y.field) ===
|
|
2574
|
-
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (y == null ? void 0 : y.field) ===
|
|
2575
|
-
[`b-data-grid-cell--${he.PADDING_LEFT_UNSET}`]: ((
|
|
2576
|
-
[`b-data-grid-cell--${he.PADDING_RIGHT_UNSET}`]: ((
|
|
2552
|
+
[`b-data-grid-cell--${he.COLUMN_HOVERED}`]: (y == null ? void 0 : y.field) === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
2553
|
+
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (y == null ? void 0 : y.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
|
|
2554
|
+
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (y == null ? void 0 : y.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
|
|
2555
|
+
[`b-data-grid-cell--${he.PADDING_LEFT_UNSET}`]: ((Q = y == null ? void 0 : y.padding) == null ? void 0 : Q.left) === !1,
|
|
2556
|
+
[`b-data-grid-cell--${he.PADDING_RIGHT_UNSET}`]: ((J = y == null ? void 0 : y.padding) == null ? void 0 : J.right) === !1,
|
|
2577
2557
|
[`b-data-grid-cell--${he.NUMERIC}`]: y == null ? void 0 : y.numeric,
|
|
2578
|
-
[`b-data-grid-cell--${he.CONDENSED}`]:
|
|
2558
|
+
[`b-data-grid-cell--${he.CONDENSED}`]: n.condensed,
|
|
2579
2559
|
[`b-data-grid-cell--${he.OVERFLOW_ELLIPSIS}`]: (y == null ? void 0 : y.overflow) === St.ELLIPSIS,
|
|
2580
|
-
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING}`]: ((ee =
|
|
2581
|
-
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ve =
|
|
2582
|
-
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Be =
|
|
2560
|
+
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING}`]: ((ee = n.draggingColumns.dragging) == null ? void 0 : ee.field) === y.field,
|
|
2561
|
+
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ve = n.draggingColumns.target) == null ? void 0 : Ve.field) === y.field && ((Te = n.draggingColumns) == null ? void 0 : Te.dragToLeft),
|
|
2562
|
+
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Be = n.draggingColumns.target) == null ? void 0 : Be.field) === y.field && !((d = n.draggingColumns) != null && d.dragToLeft),
|
|
2583
2563
|
[`b-data-grid-cell--${he.FROZEN}`]: y == null ? void 0 : y.frozen,
|
|
2584
|
-
[`b-data-grid-cell--${he.NESTED_CONTENT_ENABLED}`]:
|
|
2585
|
-
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_ENABLED}`]:
|
|
2586
|
-
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]:
|
|
2587
|
-
[`b-data-grid-cell--${he.ACTION_COL_SELECTION_ENABLED}`]: y.field === Ee &&
|
|
2564
|
+
[`b-data-grid-cell--${he.NESTED_CONTENT_ENABLED}`]: n.nestedContent,
|
|
2565
|
+
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_ENABLED}`]: n.nestedContent && !n.selectable && y.field === Ee,
|
|
2566
|
+
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: n.nestedContent && n.selectable && y.field === Ee,
|
|
2567
|
+
[`b-data-grid-cell--${he.ACTION_COL_SELECTION_ENABLED}`]: y.field === Ee && n.selectable,
|
|
2588
2568
|
[`b-data-grid-cell--${he.SLASHED_ZERO}`]: ve.value,
|
|
2589
2569
|
"b-data-grid-cell--small-container": fe.value
|
|
2590
2570
|
};
|
|
2591
|
-
},
|
|
2571
|
+
}, Re = C(() => ({
|
|
2592
2572
|
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": B.value
|
|
2593
2573
|
}));
|
|
2594
2574
|
return s({
|
|
2595
2575
|
gridcellRef: f
|
|
2596
|
-
}), (y,
|
|
2597
|
-
var
|
|
2598
|
-
return r(), p("div",
|
|
2576
|
+
}), (y, Q) => {
|
|
2577
|
+
var J;
|
|
2578
|
+
return r(), p("div", se({
|
|
2599
2579
|
key: `cell-${e.column.field}`,
|
|
2600
2580
|
ref_key: "gridcellRef",
|
|
2601
2581
|
ref: f,
|
|
@@ -2604,23 +2584,23 @@ const un = () => {
|
|
|
2604
2584
|
"data-cellindex": a(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2605
2585
|
class: ["b-data-grid-cell", q(e.column)],
|
|
2606
2586
|
role: "gridcell",
|
|
2607
|
-
tabindex:
|
|
2587
|
+
tabindex: R.value,
|
|
2608
2588
|
"aria-colindex": h(e.colIndex, e.columnSetIndex) + 1,
|
|
2609
2589
|
style: {
|
|
2610
2590
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2611
2591
|
}
|
|
2612
2592
|
}, ft(x(e.column), !0)), [
|
|
2613
|
-
e.column.field === o(Ee) ? (r(), p(
|
|
2614
|
-
e.selectable ? (r(), H(o(
|
|
2593
|
+
e.column.field === o(Ee) ? (r(), p(be, { key: 0 }, [
|
|
2594
|
+
e.selectable ? (r(), H(o(_l), {
|
|
2615
2595
|
key: 0,
|
|
2616
2596
|
class: "b-data-grid-cell__select-cell",
|
|
2617
|
-
"aria-label": o(
|
|
2597
|
+
"aria-label": o(l)("selectRow"),
|
|
2618
2598
|
disabled: e.isDataItemDisabled(e.rowData),
|
|
2619
2599
|
indeterminate: e.selectionIsIndeterminate,
|
|
2620
2600
|
"model-value": e.selectedItems,
|
|
2621
2601
|
value: e.getDataItemId(e.rowData),
|
|
2622
2602
|
tabindex: D.value ? 0 : -1,
|
|
2623
|
-
"onUpdate:modelValue":
|
|
2603
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (ee) => y.$emit("select-row", ee))
|
|
2624
2604
|
}, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value", "tabindex"])) : W("", !0),
|
|
2625
2605
|
e.nestedContent ? (r(), H(o(Tt), {
|
|
2626
2606
|
key: 1,
|
|
@@ -2633,22 +2613,22 @@ const un = () => {
|
|
|
2633
2613
|
onClick: Z
|
|
2634
2614
|
}, {
|
|
2635
2615
|
iconLeft: G(() => [
|
|
2636
|
-
e.isNestedContentExpanded ? (r(), H(o(
|
|
2616
|
+
e.isNestedContentExpanded ? (r(), H(o(Jn), {
|
|
2637
2617
|
key: 0,
|
|
2638
2618
|
class: "b-accordion-item__icon",
|
|
2639
|
-
"svg-title": o(
|
|
2640
|
-
}, null, 8, ["svg-title"])) : (r(), H(o(
|
|
2619
|
+
"svg-title": o(l)("collapseNestedContent")
|
|
2620
|
+
}, null, 8, ["svg-title"])) : (r(), H(o(Yn), {
|
|
2641
2621
|
key: 1,
|
|
2642
2622
|
class: "b-accordion-item__icon",
|
|
2643
|
-
"svg-title": o(
|
|
2623
|
+
"svg-title": o(l)("expandNestedContent")
|
|
2644
2624
|
}, null, 8, ["svg-title"]))
|
|
2645
2625
|
]),
|
|
2646
2626
|
_: 1
|
|
2647
2627
|
}, 8, ["aria-controls", "toggled"])) : W("", !0)
|
|
2648
|
-
], 64)) : (r(), p(
|
|
2649
|
-
|
|
2628
|
+
], 64)) : (r(), p(be, { key: 1 }, [
|
|
2629
|
+
Y(o(je), {
|
|
2650
2630
|
el: "div",
|
|
2651
|
-
class: ce(["b-data-grid-cell__cell-content",
|
|
2631
|
+
class: ce(["b-data-grid-cell__cell-content", Re.value]),
|
|
2652
2632
|
"data-testid": "cell-content"
|
|
2653
2633
|
}, {
|
|
2654
2634
|
default: G(() => [
|
|
@@ -2656,18 +2636,18 @@ const un = () => {
|
|
|
2656
2636
|
item: e.rowData,
|
|
2657
2637
|
rowIndex: e.rowIndex
|
|
2658
2638
|
}, () => [
|
|
2659
|
-
|
|
2639
|
+
L("span", {
|
|
2660
2640
|
title: M(e.column, e.rowData[e.column.field])
|
|
2661
|
-
},
|
|
2641
|
+
}, X(m(e.rowData[e.column.field])), 9, Ws)
|
|
2662
2642
|
], !0)
|
|
2663
2643
|
]),
|
|
2664
2644
|
_: 3
|
|
2665
2645
|
}, 8, ["class"]),
|
|
2666
|
-
((
|
|
2667
|
-
(
|
|
2646
|
+
((J = e.column.cellActions) == null ? void 0 : J.length) > 0 ? (r(), p("div", Vs, [
|
|
2647
|
+
(b.value || o(ne)) && (A.value || o(u)(`item-${e.column.field}`)) ? (r(), H(Ll, {
|
|
2668
2648
|
key: 0,
|
|
2669
2649
|
ref_key: "cellActionsRef",
|
|
2670
|
-
ref:
|
|
2650
|
+
ref: _,
|
|
2671
2651
|
"cell-actions": e.column.cellActions,
|
|
2672
2652
|
"column-key": e.column.field,
|
|
2673
2653
|
"row-data-item": e.rowData,
|
|
@@ -2679,22 +2659,22 @@ const un = () => {
|
|
|
2679
2659
|
}, null, 8, ["cell-actions", "column-key", "row-data-item", "has-zebra-background", "is-highlighted", "is-selected"])) : W("", !0)
|
|
2680
2660
|
])) : W("", !0)
|
|
2681
2661
|
], 64))
|
|
2682
|
-
], 16,
|
|
2662
|
+
], 16, Bs);
|
|
2683
2663
|
};
|
|
2684
2664
|
}
|
|
2685
|
-
}),
|
|
2665
|
+
}), xs = /* @__PURE__ */ ue(Gs, [["__scopeId", "data-v-51166457"]]), Zs = {
|
|
2686
2666
|
class: "b-data-grid-row-container",
|
|
2687
2667
|
role: "presentation"
|
|
2688
|
-
},
|
|
2668
|
+
}, js = ["id", "aria-selected"], qs = ["data-testid"], Ks = ["aria-colindex", "data-cellindex"], Ys = {
|
|
2689
2669
|
key: 0,
|
|
2690
2670
|
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2691
|
-
},
|
|
2671
|
+
}, Js = {
|
|
2692
2672
|
key: 0,
|
|
2693
2673
|
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2694
|
-
},
|
|
2674
|
+
}, Xs = { key: 1 }, Qs = {
|
|
2695
2675
|
name: "data-grid-row"
|
|
2696
|
-
},
|
|
2697
|
-
...
|
|
2676
|
+
}, ea = /* @__PURE__ */ Ie({
|
|
2677
|
+
...Qs,
|
|
2698
2678
|
props: {
|
|
2699
2679
|
/**
|
|
2700
2680
|
* Row actions property that generates which button to show in row actions area
|
|
@@ -2902,42 +2882,42 @@ const un = () => {
|
|
|
2902
2882
|
},
|
|
2903
2883
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2904
2884
|
setup(e, { expose: s, emit: i }) {
|
|
2905
|
-
const t =
|
|
2906
|
-
|
|
2907
|
-
|
|
2885
|
+
const t = Rt(), u = Lt(t), l = e, n = i, v = E({}), f = E(!1), _ = E(), b = E(), N = ct("nested-content-slot"), D = E(!1), S = E();
|
|
2886
|
+
Xe(() => {
|
|
2887
|
+
b.value && (S.value = Ze(b.value));
|
|
2908
2888
|
});
|
|
2909
|
-
const c = C(() =>
|
|
2889
|
+
const c = C(() => l.shouldShowNestedRows(l.rowData)), A = C(
|
|
2910
2890
|
() => {
|
|
2911
|
-
var
|
|
2912
|
-
return !
|
|
2891
|
+
var w, I;
|
|
2892
|
+
return !l.isNestedRow && l.hasNestedRows && c.value && ((I = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : I.length) > 0;
|
|
2913
2893
|
}
|
|
2914
2894
|
), O = C(
|
|
2915
2895
|
() => {
|
|
2916
|
-
var
|
|
2917
|
-
return !
|
|
2896
|
+
var w, I;
|
|
2897
|
+
return !l.isNestedRow && l.hasNestedRows && c.value && (((w = l.rowData) == null ? void 0 : w.children) === void 0 || ((I = l == null ? void 0 : l.rowData) == null ? void 0 : I.children.length) === 0);
|
|
2918
2898
|
}
|
|
2919
2899
|
), k = C(
|
|
2920
|
-
() =>
|
|
2921
|
-
),
|
|
2922
|
-
if (
|
|
2923
|
-
const
|
|
2900
|
+
() => l.hasNestedContent && l.shouldShowNestedContent(l.rowData) || l.hasNestedRows && c.value && !l.isNestedRow
|
|
2901
|
+
), R = C(() => {
|
|
2902
|
+
if (l.hasNestedContent || l.hasNestedRows) {
|
|
2903
|
+
const w = f.value.toString();
|
|
2924
2904
|
return {
|
|
2925
|
-
"aria-expanded": k.value ?
|
|
2926
|
-
"aria-level":
|
|
2927
|
-
"aria-posinset":
|
|
2928
|
-
"aria-setsize":
|
|
2905
|
+
"aria-expanded": k.value ? w : void 0,
|
|
2906
|
+
"aria-level": l.isNestedRow ? "2" : "1",
|
|
2907
|
+
"aria-posinset": l.rowIndex + 1,
|
|
2908
|
+
"aria-setsize": l.rowSetSize
|
|
2929
2909
|
};
|
|
2930
2910
|
}
|
|
2931
|
-
return { "aria-rowindex":
|
|
2911
|
+
return { "aria-rowindex": l.rowIndex + 1 };
|
|
2932
2912
|
}), M = C(() => {
|
|
2933
2913
|
if (O.value)
|
|
2934
2914
|
return {
|
|
2935
2915
|
"aria-busy": "true",
|
|
2936
2916
|
"aria-live": "polite"
|
|
2937
2917
|
};
|
|
2938
|
-
if (!(A.value || !
|
|
2918
|
+
if (!(A.value || !l.hasNestedContent || !l.shouldShowNestedContent(l.rowData)))
|
|
2939
2919
|
return {
|
|
2940
|
-
"aria-level":
|
|
2920
|
+
"aria-level": l.isNestedRow ? "3" : "2",
|
|
2941
2921
|
"aria-posinset": "1",
|
|
2942
2922
|
"aria-setsize": "1",
|
|
2943
2923
|
id: N,
|
|
@@ -2945,14 +2925,14 @@ const un = () => {
|
|
|
2945
2925
|
tabindex: "-1"
|
|
2946
2926
|
};
|
|
2947
2927
|
}), m = C(() => {
|
|
2948
|
-
var
|
|
2949
|
-
return A.value ? (I = (
|
|
2928
|
+
var w, I;
|
|
2929
|
+
return A.value ? (I = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : I.reduce((te, oe, ae) => (te[ae] = ct("nested-row"), te), {}) : [];
|
|
2950
2930
|
}), F = C(() => {
|
|
2951
|
-
var
|
|
2931
|
+
var w;
|
|
2952
2932
|
if (f.value) {
|
|
2953
|
-
if (
|
|
2933
|
+
if (l.hasNestedContent && l.shouldShowNestedContent(l.rowData))
|
|
2954
2934
|
return [N];
|
|
2955
|
-
if (A.value && ((
|
|
2935
|
+
if (A.value && ((w = Object.keys(m.value)) == null ? void 0 : w.length) > 0) {
|
|
2956
2936
|
const I = Object.values(m.value);
|
|
2957
2937
|
if ((I == null ? void 0 : I.length) > 0)
|
|
2958
2938
|
return I;
|
|
@@ -2961,117 +2941,117 @@ const un = () => {
|
|
|
2961
2941
|
}
|
|
2962
2942
|
}), h = C(() => {
|
|
2963
2943
|
var I, te;
|
|
2964
|
-
const
|
|
2965
|
-
if ((
|
|
2966
|
-
const
|
|
2944
|
+
const w = (te = (I = l.rowData) == null ? void 0 : I.children) == null ? void 0 : te.map((oe) => l.getDataItemId(oe));
|
|
2945
|
+
if ((w == null ? void 0 : w.length) > 0) {
|
|
2946
|
+
const oe = w.every((re) => {
|
|
2967
2947
|
var K;
|
|
2968
|
-
return (K =
|
|
2969
|
-
}), ae =
|
|
2948
|
+
return (K = l == null ? void 0 : l.selectedItems) == null ? void 0 : K.includes(re);
|
|
2949
|
+
}), ae = w.some((re) => {
|
|
2970
2950
|
var K;
|
|
2971
|
-
return (K =
|
|
2951
|
+
return (K = l == null ? void 0 : l.selectedItems) == null ? void 0 : K.includes(re);
|
|
2972
2952
|
});
|
|
2973
|
-
return !
|
|
2953
|
+
return !oe && ae;
|
|
2974
2954
|
}
|
|
2975
2955
|
return !1;
|
|
2976
|
-
}), a = (
|
|
2977
|
-
const te =
|
|
2978
|
-
|
|
2979
|
-
}, g = (
|
|
2980
|
-
if (!
|
|
2956
|
+
}), a = (w, I) => {
|
|
2957
|
+
const te = w;
|
|
2958
|
+
w !== null && (te != null && te.gridcellRef) && (v.value[I] = te.gridcellRef);
|
|
2959
|
+
}, g = (w) => m.value[w], T = (w) => {
|
|
2960
|
+
if (!l.selectable)
|
|
2981
2961
|
return null;
|
|
2982
|
-
const I =
|
|
2983
|
-
return
|
|
2984
|
-
}, B = (
|
|
2985
|
-
var
|
|
2986
|
-
if (!
|
|
2962
|
+
const I = l.getDataItemId(w);
|
|
2963
|
+
return l.selectedItems.includes(I).toString();
|
|
2964
|
+
}, B = (w) => {
|
|
2965
|
+
var oe;
|
|
2966
|
+
if (!l.allowRowClicks)
|
|
2987
2967
|
return;
|
|
2988
2968
|
let I = !1;
|
|
2989
2969
|
const te = ["button", "input", "a"];
|
|
2990
2970
|
for (let ae = 0; ae < te.length; ae++)
|
|
2991
|
-
if ((
|
|
2971
|
+
if ((oe = w == null ? void 0 : w.target) != null && oe.closest(te[ae])) {
|
|
2992
2972
|
I = !0;
|
|
2993
2973
|
break;
|
|
2994
2974
|
}
|
|
2995
|
-
I ||
|
|
2996
|
-
}, x = (
|
|
2997
|
-
|
|
2998
|
-
}, Z = (
|
|
2999
|
-
|
|
3000
|
-
},
|
|
2975
|
+
I || n("row-click", l.rowData, w);
|
|
2976
|
+
}, x = (w) => {
|
|
2977
|
+
n("select-row", w, l.rowData);
|
|
2978
|
+
}, Z = (w, I) => {
|
|
2979
|
+
n("select-nested-row", I, l.rowData, w);
|
|
2980
|
+
}, le = () => {
|
|
3001
2981
|
D.value = !0;
|
|
3002
|
-
},
|
|
2982
|
+
}, we = () => {
|
|
3003
2983
|
D.value = !1;
|
|
3004
2984
|
}, ve = () => {
|
|
3005
|
-
var
|
|
3006
|
-
|
|
2985
|
+
var w;
|
|
2986
|
+
Sl([(w = S.value) == null ? void 0 : w[0]]), Ot(b.value);
|
|
3007
2987
|
}, fe = () => {
|
|
3008
|
-
Ze(
|
|
3009
|
-
},
|
|
2988
|
+
Ze(b.value);
|
|
2989
|
+
}, ne = (w) => {
|
|
3010
2990
|
var I, te;
|
|
3011
|
-
|
|
3012
|
-
}, q = () =>
|
|
3013
|
-
var
|
|
3014
|
-
if (
|
|
2991
|
+
w.key !== Ne.TAB && Ze(b.value), w.key === Ne.ARROW_RIGHT && ((I = S.value) == null ? void 0 : I.length) > 1 && S.value[0].node === document.activeElement ? (Ze(b.value), S.value[1].node.setAttribute("tabindex", "0"), S.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === Ne.ARROW_LEFT && ((te = S.value) == null ? void 0 : te.length) > 1 && S.value[1].node === document.activeElement && (Ze(b.value), S.value[0].node.setAttribute("tabindex", "0"), S.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
|
|
2992
|
+
}, q = () => l.columnSets.reduce((w, { columnSet: I }) => w + I.length, 0), Re = () => q() * l.rowIndex + q(), { updateContentHeight: y, contentHeight: Q } = Xn(_, f), J = C(() => {
|
|
2993
|
+
var w;
|
|
2994
|
+
if (l.hasNestedContent || l.hasNestedRows)
|
|
3015
2995
|
return {
|
|
3016
|
-
paddingLeft: `${A.value || O.value ? 0 : v.value[Ee].offsetWidth +
|
|
3017
|
-
"max-height": (
|
|
2996
|
+
paddingLeft: `${A.value || O.value ? 0 : v.value[Ee].offsetWidth + wl}px`,
|
|
2997
|
+
"max-height": (l.hasNestedContent || l.hasNestedRows) && Q.value && !((w = Q == null ? void 0 : Q.value) != null && w.includes("null")) ? Q.value : 0
|
|
3018
2998
|
};
|
|
3019
2999
|
});
|
|
3020
3000
|
ye(
|
|
3021
|
-
() =>
|
|
3001
|
+
() => _.value,
|
|
3022
3002
|
() => {
|
|
3023
|
-
let
|
|
3024
|
-
!
|
|
3025
|
-
|
|
3003
|
+
let w = null;
|
|
3004
|
+
!w && _.value && (w = At(_.value, () => {
|
|
3005
|
+
_.value && y();
|
|
3026
3006
|
}));
|
|
3027
3007
|
}
|
|
3028
3008
|
);
|
|
3029
3009
|
const ee = () => {
|
|
3030
|
-
f.value = !f.value, y(),
|
|
3010
|
+
f.value = !f.value, y(), n("nested-content-toggled", l.rowData);
|
|
3031
3011
|
};
|
|
3032
3012
|
ye(
|
|
3033
3013
|
() => {
|
|
3034
|
-
var
|
|
3035
|
-
return (
|
|
3014
|
+
var w;
|
|
3015
|
+
return (w = l.rowData) == null ? void 0 : w.children;
|
|
3036
3016
|
},
|
|
3037
|
-
(
|
|
3038
|
-
var te,
|
|
3039
|
-
((
|
|
3017
|
+
(w, I) => {
|
|
3018
|
+
var te, oe;
|
|
3019
|
+
((oe = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : oe.length) > 0 && I === void 0 && !f.value && y();
|
|
3040
3020
|
}
|
|
3041
3021
|
);
|
|
3042
3022
|
const Ve = Pe(
|
|
3043
3023
|
tt,
|
|
3044
3024
|
C(() => !1)
|
|
3045
|
-
), Te = (
|
|
3046
|
-
"b-data-grid-row-container__row--disabled":
|
|
3047
|
-
"b-data-grid-row-container__row--row-clicks-enabled":
|
|
3048
|
-
"b-data-grid-row-container__row--highlighted": Te(
|
|
3049
|
-
"b-data-grid-row-container__row--selected": Be(
|
|
3050
|
-
"b-data-grid-row-container__row--hovered":
|
|
3051
|
-
"b-data-grid-row-container__row--is-last-child":
|
|
3052
|
-
"b-data-grid-row-container__row--nested-row":
|
|
3053
|
-
"b-data-grid-row-container__row--zebra":
|
|
3054
|
-
}), V = (
|
|
3055
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
3056
|
-
[`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: !I &&
|
|
3057
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !I &&
|
|
3058
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
3059
|
-
"b-data-grid-row-container__row-cell-set--is-measuring":
|
|
3025
|
+
), Te = (w) => l.highlightedRows.includes(l.getDataItemId(w)), Be = (w) => l.selectedItems.includes(l.getDataItemId(w)), d = (w, I) => ({
|
|
3026
|
+
"b-data-grid-row-container__row--disabled": l.isDataItemDisabled(w),
|
|
3027
|
+
"b-data-grid-row-container__row--row-clicks-enabled": l.allowRowClicks,
|
|
3028
|
+
"b-data-grid-row-container__row--highlighted": Te(w),
|
|
3029
|
+
"b-data-grid-row-container__row--selected": Be(w),
|
|
3030
|
+
"b-data-grid-row-container__row--hovered": l.hoveredRowIndex === I,
|
|
3031
|
+
"b-data-grid-row-container__row--is-last-child": l.isRowLastChild && !f.value,
|
|
3032
|
+
"b-data-grid-row-container__row--nested-row": l.isNestedRow,
|
|
3033
|
+
"b-data-grid-row-container__row--zebra": l.isRowEven
|
|
3034
|
+
}), V = (w, I) => ({
|
|
3035
|
+
"b-data-grid-row-container__row-cell-set--frozen": w && !I,
|
|
3036
|
+
[`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: !I && w && l.hasLeftOverflow,
|
|
3037
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !I && w && l.showFrozenColumnsSeparator,
|
|
3038
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !w || I,
|
|
3039
|
+
"b-data-grid-row-container__row-cell-set--is-measuring": l.isMeasuringColumnWidths
|
|
3060
3040
|
}), U = C(() => ({
|
|
3061
|
-
"b-data-grid-row-container__row-nested-slot--is-last-child":
|
|
3062
|
-
"b-data-grid-row-container__row-nested-slot": !A.value &&
|
|
3041
|
+
"b-data-grid-row-container__row-nested-slot--is-last-child": l.isRowLastChild,
|
|
3042
|
+
"b-data-grid-row-container__row-nested-slot": !A.value && l.shouldShowNestedContent(l.rowData)
|
|
3063
3043
|
})), Ce = C(() => ({
|
|
3064
3044
|
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": D.value
|
|
3065
3045
|
})), me = C(() => ({
|
|
3066
|
-
minWidth: `${
|
|
3046
|
+
minWidth: `${l.rowActionsMaximumWidth}px`
|
|
3067
3047
|
}));
|
|
3068
3048
|
return s({
|
|
3069
3049
|
gridcellRefs: v,
|
|
3070
|
-
rowActionsRef:
|
|
3071
|
-
}), (
|
|
3050
|
+
rowActionsRef: b
|
|
3051
|
+
}), (w, I) => {
|
|
3072
3052
|
var te;
|
|
3073
|
-
return r(), p("div",
|
|
3074
|
-
(r(), p("div",
|
|
3053
|
+
return r(), p("div", Zs, [
|
|
3054
|
+
(r(), p("div", se(R.value, {
|
|
3075
3055
|
id: (te = e.rowId) == null ? void 0 : te.toString(),
|
|
3076
3056
|
key: e.rowIndex,
|
|
3077
3057
|
class: ["b-data-grid-row-container__row", d(e.rowData, e.rowIndex)],
|
|
@@ -3083,13 +3063,13 @@ const un = () => {
|
|
|
3083
3063
|
zt(B, ["space"])
|
|
3084
3064
|
]
|
|
3085
3065
|
}), [
|
|
3086
|
-
(r(!0), p(
|
|
3087
|
-
|
|
3066
|
+
(r(!0), p(be, null, Ae(e.columnSets, ({ columnSet: oe, id: ae, isFrozenColumns: re }, K) => (r(), p(be, null, [
|
|
3067
|
+
oe != null && oe.length ? (r(), p("div", {
|
|
3088
3068
|
key: `data-grid-rows-${ae}`,
|
|
3089
3069
|
class: ce(["b-data-grid-row-container__cells", V(re, o(Ve))]),
|
|
3090
3070
|
"data-testid": `data-grid-${ae}-rows`
|
|
3091
3071
|
}, [
|
|
3092
|
-
(r(!0), p(
|
|
3072
|
+
(r(!0), p(be, null, Ae(oe, (He, mt) => (r(), H(xs, {
|
|
3093
3073
|
key: `cell-${He.field}`,
|
|
3094
3074
|
ref_for: !0,
|
|
3095
3075
|
ref: (De) => a(De, He.field),
|
|
@@ -3116,49 +3096,49 @@ const un = () => {
|
|
|
3116
3096
|
"selection-is-indeterminate": h.value,
|
|
3117
3097
|
selectable: e.selectable,
|
|
3118
3098
|
"selected-items": e.selectedItems,
|
|
3119
|
-
onCellHovered: I[0] || (I[0] = (De) =>
|
|
3120
|
-
onCellFocus: I[1] || (I[1] = (De) =>
|
|
3121
|
-
onOnFrozenColumnsKeyPress: I[2] || (I[2] = (De) =>
|
|
3099
|
+
onCellHovered: I[0] || (I[0] = (De) => n("cell-hovered", De)),
|
|
3100
|
+
onCellFocus: I[1] || (I[1] = (De) => n("cell-focus", De)),
|
|
3101
|
+
onOnFrozenColumnsKeyPress: I[2] || (I[2] = (De) => n("on-frozen-columns-key-press", De)),
|
|
3122
3102
|
onSelectRow: x,
|
|
3123
3103
|
onNestedContentToggled: ee
|
|
3124
|
-
},
|
|
3104
|
+
}, Je({ _: 2 }, [
|
|
3125
3105
|
Ae(o(t), (De, Qe) => ({
|
|
3126
3106
|
name: Qe,
|
|
3127
|
-
fn: G((
|
|
3128
|
-
ze(
|
|
3107
|
+
fn: G((lt) => [
|
|
3108
|
+
ze(w.$slots, Qe, se({ ref_for: !0 }, lt), void 0, !0)
|
|
3129
3109
|
])
|
|
3130
3110
|
}))
|
|
3131
3111
|
]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-zebra-background", "is-highlighted", "is-selected", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "is-nested-content-expanded", "nested-content", "nested-rows-element-ids", "row-data", "row-index", "selection-is-indeterminate", "selectable", "selected-items"]))), 128))
|
|
3132
|
-
], 10,
|
|
3112
|
+
], 10, qs)) : W("", !0),
|
|
3133
3113
|
!re && e.rowActions ? (r(), p("div", {
|
|
3134
3114
|
key: `data-grid-row-actions-${ae}`,
|
|
3135
3115
|
ref_for: !0,
|
|
3136
3116
|
ref_key: "rowActionsRef",
|
|
3137
|
-
ref:
|
|
3117
|
+
ref: b,
|
|
3138
3118
|
"aria-colindex": q().toString(),
|
|
3139
3119
|
class: ce(["b-data-grid-row-container__row-actions-container", Ce.value]),
|
|
3140
3120
|
style: Fe(me.value),
|
|
3141
|
-
"data-cellindex":
|
|
3121
|
+
"data-cellindex": Re(),
|
|
3142
3122
|
tabindex: "-1",
|
|
3143
3123
|
role: "gridcell",
|
|
3144
3124
|
onFocus: ve,
|
|
3145
3125
|
"on:focusOut": fe,
|
|
3146
|
-
onKeydown:
|
|
3126
|
+
onKeydown: ne
|
|
3147
3127
|
}, [
|
|
3148
|
-
|
|
3128
|
+
Y(Ll, {
|
|
3149
3129
|
class: "b-data-grid-row-container__row-actions",
|
|
3150
3130
|
"disable-arrow-down-opening-menu": "",
|
|
3151
3131
|
"cell-actions": e.rowActions,
|
|
3152
3132
|
"has-right-overflow": e.hasRightOverflow,
|
|
3153
3133
|
"row-data-item": e.rowData,
|
|
3154
3134
|
"teleport-menu": "",
|
|
3155
|
-
onMenuOpen:
|
|
3156
|
-
onMenuClose:
|
|
3135
|
+
onMenuOpen: le,
|
|
3136
|
+
onMenuClose: we
|
|
3157
3137
|
}, null, 8, ["cell-actions", "has-right-overflow", "row-data-item"])
|
|
3158
|
-
], 46,
|
|
3138
|
+
], 46, Ks)) : W("", !0)
|
|
3159
3139
|
], 64))), 256))
|
|
3160
|
-
], 16,
|
|
3161
|
-
e.hasNestedContent && o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && c.value ? (r(), H(
|
|
3140
|
+
], 16, js)),
|
|
3141
|
+
e.hasNestedContent && o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && c.value ? (r(), H(gl, {
|
|
3162
3142
|
key: `${e.rowIndex}-nest-content`,
|
|
3163
3143
|
name: "b-data-grid-row-container__animation--nested-content"
|
|
3164
3144
|
}, {
|
|
@@ -3167,53 +3147,53 @@ const un = () => {
|
|
|
3167
3147
|
key: 0,
|
|
3168
3148
|
class: ce(U.value),
|
|
3169
3149
|
"data-testid": "nested-content-container",
|
|
3170
|
-
style: Fe(
|
|
3150
|
+
style: Fe(J.value),
|
|
3171
3151
|
role: "presentation"
|
|
3172
3152
|
}, [
|
|
3173
|
-
|
|
3153
|
+
L("div", {
|
|
3174
3154
|
ref_key: "nestedContentRef",
|
|
3175
|
-
ref:
|
|
3155
|
+
ref: _
|
|
3176
3156
|
}, [
|
|
3177
|
-
O.value ? (r(), p("div",
|
|
3178
|
-
|
|
3157
|
+
O.value ? (r(), p("div", Ys, [
|
|
3158
|
+
Y(o(ut))
|
|
3179
3159
|
])) : W("", !0),
|
|
3180
|
-
(r(!0), p(
|
|
3160
|
+
(r(!0), p(be, null, Ae(e.rowData.children, (oe, ae) => (r(), H(Tl, se({ ref_for: !0 }, l, {
|
|
3181
3161
|
id: g(ae),
|
|
3182
3162
|
key: `child-${ae}`,
|
|
3183
|
-
"row-data":
|
|
3163
|
+
"row-data": oe,
|
|
3184
3164
|
"row-index": ae,
|
|
3185
3165
|
"row-set-size": e.rowData.children.length,
|
|
3186
3166
|
"is-nested-row": "",
|
|
3187
|
-
onCellHovered: I[3] || (I[3] = (re) =>
|
|
3188
|
-
onCellFocus: I[4] || (I[4] = (re) =>
|
|
3189
|
-
onRowClick: I[5] || (I[5] = (re) =>
|
|
3190
|
-
onOnFrozenColumnsKeyPress: I[6] || (I[6] = (re) =>
|
|
3191
|
-
onSelectRow: (re) => Z(
|
|
3192
|
-
}),
|
|
3167
|
+
onCellHovered: I[3] || (I[3] = (re) => n("cell-hovered", re)),
|
|
3168
|
+
onCellFocus: I[4] || (I[4] = (re) => n("cell-focus", re)),
|
|
3169
|
+
onRowClick: I[5] || (I[5] = (re) => n("row-click", ...re)),
|
|
3170
|
+
onOnFrozenColumnsKeyPress: I[6] || (I[6] = (re) => n("on-frozen-columns-key-press", re)),
|
|
3171
|
+
onSelectRow: (re) => Z(oe, re)
|
|
3172
|
+
}), Je({ _: 2 }, [
|
|
3193
3173
|
Ae(o(t), (re, K) => ({
|
|
3194
3174
|
name: K,
|
|
3195
3175
|
fn: G((He) => [
|
|
3196
|
-
ze(
|
|
3176
|
+
ze(w.$slots, K, se({ ref_for: !0 }, He), void 0, !0)
|
|
3197
3177
|
])
|
|
3198
3178
|
}))
|
|
3199
3179
|
]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128))
|
|
3200
3180
|
], 512)
|
|
3201
|
-
], 6)) : f.value ? (r(), p("div",
|
|
3181
|
+
], 6)) : f.value ? (r(), p("div", se({ key: 1 }, M.value, {
|
|
3202
3182
|
class: U.value,
|
|
3203
3183
|
"data-testid": "nested-content-container",
|
|
3204
|
-
style:
|
|
3184
|
+
style: J.value,
|
|
3205
3185
|
role: "row",
|
|
3206
3186
|
tabindex: "-1"
|
|
3207
3187
|
}), [
|
|
3208
|
-
|
|
3188
|
+
L("div", {
|
|
3209
3189
|
ref_key: "nestedContentRef",
|
|
3210
|
-
ref:
|
|
3190
|
+
ref: _,
|
|
3211
3191
|
role: "gridcell"
|
|
3212
3192
|
}, [
|
|
3213
|
-
O.value ? (r(), p("div",
|
|
3214
|
-
|
|
3215
|
-
])) : o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (r(), p("div",
|
|
3216
|
-
ze(
|
|
3193
|
+
O.value ? (r(), p("div", Js, [
|
|
3194
|
+
Y(o(ut))
|
|
3195
|
+
])) : o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (r(), p("div", Xs, [
|
|
3196
|
+
ze(w.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
3217
3197
|
])) : W("", !0)
|
|
3218
3198
|
], 512)
|
|
3219
3199
|
], 16)) : W("", !0)
|
|
@@ -3223,45 +3203,45 @@ const un = () => {
|
|
|
3223
3203
|
]);
|
|
3224
3204
|
};
|
|
3225
3205
|
}
|
|
3226
|
-
}),
|
|
3227
|
-
let
|
|
3228
|
-
const
|
|
3206
|
+
}), Tl = /* @__PURE__ */ ue(ea, [["__scopeId", "data-v-df666f73"]]);
|
|
3207
|
+
let dl = 0;
|
|
3208
|
+
const ta = {
|
|
3229
3209
|
beforeCreate() {
|
|
3230
|
-
this.uuid =
|
|
3210
|
+
this.uuid = dl.toString(), dl += 1;
|
|
3231
3211
|
}
|
|
3232
|
-
}, la = { key: 0 },
|
|
3233
|
-
function
|
|
3234
|
-
return r(), p("svg",
|
|
3212
|
+
}, la = { key: 0 }, na = ["clip-path"], oa = ["id"];
|
|
3213
|
+
function sa(e, s, i, t, u, l) {
|
|
3214
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
3235
3215
|
class: "ui-assets-icons-16",
|
|
3236
3216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3237
3217
|
width: "16",
|
|
3238
3218
|
height: "16",
|
|
3239
3219
|
fill: "none"
|
|
3240
3220
|
}), [
|
|
3241
|
-
e.$attrs["svg-title"] ? (r(), p("title", la,
|
|
3242
|
-
|
|
3221
|
+
e.$attrs["svg-title"] ? (r(), p("title", la, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3222
|
+
L("g", {
|
|
3243
3223
|
"clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
3244
3224
|
}, s[0] || (s[0] = [
|
|
3245
|
-
|
|
3225
|
+
L("path", {
|
|
3246
3226
|
fill: "#001222",
|
|
3247
3227
|
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"
|
|
3248
3228
|
}, null, -1)
|
|
3249
|
-
]), 8,
|
|
3250
|
-
|
|
3251
|
-
|
|
3229
|
+
]), 8, na),
|
|
3230
|
+
L("defs", null, [
|
|
3231
|
+
L("clipPath", {
|
|
3252
3232
|
id: "uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid
|
|
3253
3233
|
}, s[1] || (s[1] = [
|
|
3254
|
-
|
|
3234
|
+
L("rect", {
|
|
3255
3235
|
width: "16",
|
|
3256
3236
|
height: "16",
|
|
3257
3237
|
fill: "#fff"
|
|
3258
3238
|
}, null, -1)
|
|
3259
|
-
]), 8,
|
|
3239
|
+
]), 8, oa)
|
|
3260
3240
|
])
|
|
3261
3241
|
], 16);
|
|
3262
3242
|
}
|
|
3263
|
-
const
|
|
3264
|
-
...
|
|
3243
|
+
const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {}, da = /* @__PURE__ */ Ie({
|
|
3244
|
+
...ra,
|
|
3265
3245
|
__name: "data-grid-static-icon",
|
|
3266
3246
|
props: {
|
|
3267
3247
|
colored: { type: Boolean, default: !1 },
|
|
@@ -3272,13 +3252,13 @@ const ia = /* @__PURE__ */ ue(na, [["render", aa]]), ra = ["aria-label"], da = {
|
|
|
3272
3252
|
const s = e, i = C(() => {
|
|
3273
3253
|
switch (s.variant) {
|
|
3274
3254
|
case "checkmark":
|
|
3275
|
-
return
|
|
3255
|
+
return yn;
|
|
3276
3256
|
case "warning":
|
|
3277
|
-
return
|
|
3257
|
+
return Rn;
|
|
3278
3258
|
case "error":
|
|
3279
|
-
return
|
|
3259
|
+
return aa;
|
|
3280
3260
|
case "cross":
|
|
3281
|
-
return
|
|
3261
|
+
return vl;
|
|
3282
3262
|
case "no-value":
|
|
3283
3263
|
return Pt;
|
|
3284
3264
|
default:
|
|
@@ -3286,21 +3266,21 @@ const ia = /* @__PURE__ */ ue(na, [["render", aa]]), ra = ["aria-label"], da = {
|
|
|
3286
3266
|
}
|
|
3287
3267
|
}), t = C(() => ({
|
|
3288
3268
|
"b-data-grid-static-icon--colored": s.colored && s.variant !== "no-value"
|
|
3289
|
-
})), u = C(() => `b-data-grid-static-icon__${s.variant}`),
|
|
3290
|
-
return (
|
|
3291
|
-
"aria-label":
|
|
3269
|
+
})), u = C(() => `b-data-grid-static-icon__${s.variant}`), l = C(() => On.AUTO);
|
|
3270
|
+
return (n, v) => yt((r(), p("div", {
|
|
3271
|
+
"aria-label": n.tooltipText,
|
|
3292
3272
|
class: ce(["b-data-grid-static-icon", t.value]),
|
|
3293
3273
|
tabindex: "0"
|
|
3294
3274
|
}, [
|
|
3295
|
-
(r(), H(
|
|
3275
|
+
(r(), H(Ye(i.value), {
|
|
3296
3276
|
class: ce(u.value),
|
|
3297
|
-
"svg-title":
|
|
3277
|
+
"svg-title": n.tooltipText
|
|
3298
3278
|
}, null, 8, ["class", "svg-title"]))
|
|
3299
|
-
], 10,
|
|
3300
|
-
[o(
|
|
3279
|
+
], 10, ia)), [
|
|
3280
|
+
[o(Ln), n.tooltipText, l.value]
|
|
3301
3281
|
]);
|
|
3302
3282
|
}
|
|
3303
|
-
}),
|
|
3283
|
+
}), Ii = /* @__PURE__ */ ue(da, [["__scopeId", "data-v-b8c9e150"]]), Ol = {
|
|
3304
3284
|
"de-DE": {
|
|
3305
3285
|
numberResults: "1 Ergebnis | {count} Ergebnisse"
|
|
3306
3286
|
},
|
|
@@ -3319,10 +3299,10 @@ const ia = /* @__PURE__ */ ue(na, [["render", aa]]), ra = ["aria-label"], da = {
|
|
|
3319
3299
|
"pt-BR": {
|
|
3320
3300
|
numberResults: "1 resultado | {count} resultados"
|
|
3321
3301
|
}
|
|
3322
|
-
},
|
|
3323
|
-
i18n: { messages:
|
|
3324
|
-
},
|
|
3325
|
-
...
|
|
3302
|
+
}, ua = { class: "b-data-grid-summary-cell" }, ca = { class: "b-data-grid-summary-cell__list" }, fa = {
|
|
3303
|
+
i18n: { messages: Ol }
|
|
3304
|
+
}, ga = /* @__PURE__ */ Ie({
|
|
3305
|
+
...fa,
|
|
3326
3306
|
__name: "data-grid-summary-cell",
|
|
3327
3307
|
props: {
|
|
3328
3308
|
label: {},
|
|
@@ -3332,7 +3312,7 @@ const ia = /* @__PURE__ */ ue(na, [["render", aa]]), ra = ["aria-label"], da = {
|
|
|
3332
3312
|
tooltipText: { default: null }
|
|
3333
3313
|
},
|
|
3334
3314
|
setup(e) {
|
|
3335
|
-
const { tc: s } = We({ messages:
|
|
3315
|
+
const { tc: s } = We({ messages: Ol }), i = e, t = E(), u = C(() => ({
|
|
3336
3316
|
popoverPosition: "right",
|
|
3337
3317
|
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
3338
3318
|
popoverTitle: i.label,
|
|
@@ -3342,26 +3322,26 @@ const ia = /* @__PURE__ */ ue(na, [["render", aa]]), ra = ["aria-label"], da = {
|
|
|
3342
3322
|
teleport: {
|
|
3343
3323
|
disabled: !1
|
|
3344
3324
|
}
|
|
3345
|
-
})),
|
|
3346
|
-
var
|
|
3347
|
-
return ((
|
|
3348
|
-
}),
|
|
3325
|
+
})), l = C(() => {
|
|
3326
|
+
var _;
|
|
3327
|
+
return ((_ = i.searchTerm) == null ? void 0 : _.toLowerCase()) ?? "";
|
|
3328
|
+
}), n = (_) => i.searchTerm && _.toLowerCase().includes(l.value) ? "mark" : "span", v = C(() => i.searchTerm ? i.items.filter((_) => _.toLowerCase().includes(l.value)).length : 0), f = C(
|
|
3349
3329
|
() => i.tooltipText ?? (v.value > 0 ? s("numberResults", v.value) : "")
|
|
3350
3330
|
);
|
|
3351
|
-
return (
|
|
3352
|
-
|
|
3331
|
+
return (_, b) => (r(), p("div", ua, [
|
|
3332
|
+
_.items.length > 1 ? (r(), H(o(Nn), se({
|
|
3353
3333
|
key: 0,
|
|
3354
3334
|
ref_key: "dashedUnderlineRef",
|
|
3355
3335
|
ref: t
|
|
3356
3336
|
}, u.value), {
|
|
3357
3337
|
"popover-content": G(() => [
|
|
3358
|
-
|
|
3338
|
+
Y(o(je), { class: "b-data-grid-summary-cell__popover-content" }, {
|
|
3359
3339
|
default: G(() => [
|
|
3360
|
-
|
|
3361
|
-
(r(!0), p(
|
|
3362
|
-
(r(), H(
|
|
3340
|
+
L("ul", ca, [
|
|
3341
|
+
(r(!0), p(be, null, Ae(_.items, (N) => (r(), p("li", { key: N }, [
|
|
3342
|
+
(r(), H(Ye(n(N)), null, {
|
|
3363
3343
|
default: G(() => [
|
|
3364
|
-
ge(
|
|
3344
|
+
ge(X(N), 1)
|
|
3365
3345
|
]),
|
|
3366
3346
|
_: 2
|
|
3367
3347
|
}, 1024))
|
|
@@ -3372,68 +3352,86 @@ const ia = /* @__PURE__ */ ue(na, [["render", aa]]), ra = ["aria-label"], da = {
|
|
|
3372
3352
|
})
|
|
3373
3353
|
]),
|
|
3374
3354
|
default: G(() => [
|
|
3375
|
-
ge(
|
|
3355
|
+
ge(X(_.label) + " ", 1)
|
|
3376
3356
|
]),
|
|
3377
3357
|
_: 1
|
|
3378
|
-
}, 16)) : (r(), p(
|
|
3379
|
-
ge(
|
|
3358
|
+
}, 16)) : (r(), p(be, { key: 1 }, [
|
|
3359
|
+
ge(X(_.items[0]), 1)
|
|
3380
3360
|
], 64)),
|
|
3381
|
-
t.value && f.value ? (r(), H(o(
|
|
3361
|
+
t.value && f.value ? (r(), H(o(An), {
|
|
3382
3362
|
key: 2,
|
|
3383
3363
|
content: f.value,
|
|
3384
3364
|
"disabled-focus-trap": !0,
|
|
3385
|
-
position: o(
|
|
3365
|
+
position: o(Tn).RIGHT,
|
|
3386
3366
|
"fallback-position": ["left", "bottom"],
|
|
3387
3367
|
"is-shown": !!f.value,
|
|
3388
3368
|
"target-element": t.value
|
|
3389
3369
|
}, null, 8, ["content", "position", "is-shown", "target-element"])) : W("", !0)
|
|
3390
3370
|
]));
|
|
3391
3371
|
}
|
|
3392
|
-
}),
|
|
3393
|
-
|
|
3394
|
-
|
|
3372
|
+
}), $i = /* @__PURE__ */ ue(ga, [["__scopeId", "data-v-5ea6289c"]]), va = { class: "b-data-grid-tag-with-text-cell" }, ma = {}, ha = /* @__PURE__ */ Ie({
|
|
3373
|
+
...ma,
|
|
3374
|
+
__name: "data-grid-tag-with-text-cell",
|
|
3375
|
+
props: {
|
|
3376
|
+
tag: {},
|
|
3377
|
+
value: {}
|
|
3378
|
+
},
|
|
3379
|
+
setup(e) {
|
|
3380
|
+
return (s, i) => (r(), p("div", va, [
|
|
3381
|
+
Y(In, pn(En(s.tag)), null, 16),
|
|
3382
|
+
Y(je, { el: "span" }, {
|
|
3383
|
+
default: G(() => [
|
|
3384
|
+
ge(X(s.value), 1)
|
|
3385
|
+
]),
|
|
3386
|
+
_: 1
|
|
3387
|
+
})
|
|
3388
|
+
]));
|
|
3389
|
+
}
|
|
3390
|
+
}), Di = /* @__PURE__ */ ue(ha, [["__scopeId", "data-v-2763675a"]]);
|
|
3391
|
+
let ul = 0;
|
|
3392
|
+
const Ca = {
|
|
3395
3393
|
beforeCreate() {
|
|
3396
|
-
this.uuid =
|
|
3394
|
+
this.uuid = ul.toString(), ul += 1;
|
|
3397
3395
|
}
|
|
3398
|
-
},
|
|
3399
|
-
function
|
|
3400
|
-
return r(), p("svg",
|
|
3396
|
+
}, _a = { key: 0 };
|
|
3397
|
+
function ba(e, s, i, t, u, l) {
|
|
3398
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
3401
3399
|
class: "ui-assets-icons-16",
|
|
3402
3400
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3403
3401
|
width: "16",
|
|
3404
3402
|
height: "16",
|
|
3405
3403
|
fill: "none"
|
|
3406
3404
|
}), [
|
|
3407
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
3408
|
-
s[0] || (s[0] =
|
|
3405
|
+
e.$attrs["svg-title"] ? (r(), p("title", _a, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3406
|
+
s[0] || (s[0] = L("path", {
|
|
3409
3407
|
fill: "#001222",
|
|
3410
3408
|
d: "M12.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z"
|
|
3411
3409
|
}, null, -1))
|
|
3412
3410
|
], 16);
|
|
3413
3411
|
}
|
|
3414
|
-
const
|
|
3415
|
-
let
|
|
3416
|
-
const
|
|
3412
|
+
const wa = /* @__PURE__ */ ue(Ca, [["render", ba]]);
|
|
3413
|
+
let cl = 0;
|
|
3414
|
+
const Sa = {
|
|
3417
3415
|
beforeCreate() {
|
|
3418
|
-
this.uuid =
|
|
3416
|
+
this.uuid = cl.toString(), cl += 1;
|
|
3419
3417
|
}
|
|
3420
|
-
},
|
|
3421
|
-
function
|
|
3422
|
-
return r(), p("svg",
|
|
3418
|
+
}, pa = { key: 0 };
|
|
3419
|
+
function Ea(e, s, i, t, u, l) {
|
|
3420
|
+
return r(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
3423
3421
|
class: "ui-assets-icons-16",
|
|
3424
3422
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3425
3423
|
width: "16",
|
|
3426
3424
|
height: "16",
|
|
3427
3425
|
fill: "none"
|
|
3428
3426
|
}), [
|
|
3429
|
-
e.$attrs["svg-title"] ? (r(), p("title",
|
|
3430
|
-
s[0] || (s[0] =
|
|
3427
|
+
e.$attrs["svg-title"] ? (r(), p("title", pa, X(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3428
|
+
s[0] || (s[0] = L("path", {
|
|
3431
3429
|
fill: "#001222",
|
|
3432
3430
|
d: "M8.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z"
|
|
3433
3431
|
}, null, -1))
|
|
3434
3432
|
], 16);
|
|
3435
3433
|
}
|
|
3436
|
-
const
|
|
3434
|
+
const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Nl = {
|
|
3437
3435
|
"en-US": {
|
|
3438
3436
|
decrease: "decrease",
|
|
3439
3437
|
increase: "increase"
|
|
@@ -3446,10 +3444,10 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3446
3444
|
decrease: "diminuir",
|
|
3447
3445
|
increase: "aumentar"
|
|
3448
3446
|
}
|
|
3449
|
-
},
|
|
3450
|
-
i18n: { messages:
|
|
3451
|
-
},
|
|
3452
|
-
...
|
|
3447
|
+
}, Ra = {
|
|
3448
|
+
i18n: { messages: Nl }
|
|
3449
|
+
}, La = /* @__PURE__ */ Ie({
|
|
3450
|
+
...Ra,
|
|
3453
3451
|
__name: "data-grid-trend-cell",
|
|
3454
3452
|
props: {
|
|
3455
3453
|
direction: { default: "none" },
|
|
@@ -3457,9 +3455,9 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3457
3455
|
value: {}
|
|
3458
3456
|
},
|
|
3459
3457
|
setup(e) {
|
|
3460
|
-
const { t: s, locale: i } = We({ messages:
|
|
3458
|
+
const { t: s, locale: i } = We({ messages: Nl }), t = e, u = C(() => ({
|
|
3461
3459
|
[`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
|
|
3462
|
-
})),
|
|
3460
|
+
})), l = C(() => {
|
|
3463
3461
|
switch (t.direction) {
|
|
3464
3462
|
case "up":
|
|
3465
3463
|
return s("increase");
|
|
@@ -3468,12 +3466,12 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3468
3466
|
default:
|
|
3469
3467
|
return null;
|
|
3470
3468
|
}
|
|
3471
|
-
}),
|
|
3469
|
+
}), n = C(() => {
|
|
3472
3470
|
switch (t.direction) {
|
|
3473
3471
|
case "up":
|
|
3474
|
-
return
|
|
3472
|
+
return wa;
|
|
3475
3473
|
case "down":
|
|
3476
|
-
return
|
|
3474
|
+
return ya;
|
|
3477
3475
|
default:
|
|
3478
3476
|
return null;
|
|
3479
3477
|
}
|
|
@@ -3487,42 +3485,42 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3487
3485
|
// Cap it reasonably to avoid float artifacts
|
|
3488
3486
|
}).format(f / 100);
|
|
3489
3487
|
});
|
|
3490
|
-
return (f,
|
|
3488
|
+
return (f, _) => (r(), p("div", {
|
|
3491
3489
|
class: ce(["b-data-grid-trend-cell", u.value])
|
|
3492
3490
|
}, [
|
|
3493
|
-
|
|
3491
|
+
n.value ? (r(), H(Ye(n.value), {
|
|
3494
3492
|
key: 0,
|
|
3495
|
-
"svg-title":
|
|
3493
|
+
"svg-title": l.value
|
|
3496
3494
|
}, null, 8, ["svg-title"])) : W("", !0),
|
|
3497
|
-
|
|
3495
|
+
Y(o(je), { el: "span" }, {
|
|
3498
3496
|
default: G(() => [
|
|
3499
|
-
ge(
|
|
3497
|
+
ge(X(v.value), 1)
|
|
3500
3498
|
]),
|
|
3501
3499
|
_: 1
|
|
3502
3500
|
})
|
|
3503
3501
|
], 2));
|
|
3504
3502
|
}
|
|
3505
|
-
}),
|
|
3503
|
+
}), ki = /* @__PURE__ */ ue(La, [["__scopeId", "data-v-08286f85"]]), Aa = ["aria-busy"], Ta = ["aria-controls", "aria-label"], Oa = {
|
|
3506
3504
|
key: 1,
|
|
3507
3505
|
class: "b-data-grid__header"
|
|
3508
|
-
},
|
|
3506
|
+
}, Na = ["id", "role", "aria-rowcount", "aria-colcount", "aria-label"], Ia = {
|
|
3509
3507
|
key: 0,
|
|
3510
3508
|
role: "row"
|
|
3511
|
-
},
|
|
3509
|
+
}, $a = {
|
|
3512
3510
|
key: 0,
|
|
3513
3511
|
class: "b-data-grid__loading"
|
|
3514
|
-
},
|
|
3512
|
+
}, Da = {
|
|
3515
3513
|
key: 0,
|
|
3516
3514
|
role: "row",
|
|
3517
3515
|
tabindex: "-1"
|
|
3518
|
-
},
|
|
3516
|
+
}, ka = ["aria-colspan"], Ua = {
|
|
3519
3517
|
key: 5,
|
|
3520
3518
|
class: "b-data-grid__footer"
|
|
3521
|
-
},
|
|
3519
|
+
}, Ma = {
|
|
3522
3520
|
i18n: { messages: vt },
|
|
3523
3521
|
name: "bento-data-grid"
|
|
3524
|
-
},
|
|
3525
|
-
...
|
|
3522
|
+
}, Fa = /* @__PURE__ */ Ie({
|
|
3523
|
+
...Ma,
|
|
3526
3524
|
props: {
|
|
3527
3525
|
/**
|
|
3528
3526
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -3609,7 +3607,7 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3609
3607
|
* {@see BentoFilterValues}
|
|
3610
3608
|
*/
|
|
3611
3609
|
filterValues: {
|
|
3612
|
-
type:
|
|
3610
|
+
type: _t.props.filterValues.type,
|
|
3613
3611
|
default: () => []
|
|
3614
3612
|
},
|
|
3615
3613
|
/**
|
|
@@ -3640,7 +3638,7 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3640
3638
|
* Filter bar search term useful to filter all the data by text
|
|
3641
3639
|
*/
|
|
3642
3640
|
filterSearchTerm: {
|
|
3643
|
-
type:
|
|
3641
|
+
type: _t.props.searchTerm.type,
|
|
3644
3642
|
default: void 0
|
|
3645
3643
|
},
|
|
3646
3644
|
/**
|
|
@@ -3859,10 +3857,10 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3859
3857
|
z.CELL_FOCUS
|
|
3860
3858
|
],
|
|
3861
3859
|
setup(e, { expose: s, emit: i }) {
|
|
3862
|
-
const t = e, u =
|
|
3860
|
+
const t = e, u = Rt(), l = Lt(u), n = E(null), v = E(), f = E({}), _ = E(ct("data-grid")), b = E(null), N = E(null), D = E(), S = E(null), c = E(null), A = E(null), {
|
|
3863
3861
|
allowColumnDragAndDrop: O,
|
|
3864
3862
|
columns: k,
|
|
3865
|
-
columnPanel:
|
|
3863
|
+
columnPanel: R,
|
|
3866
3864
|
data: M,
|
|
3867
3865
|
lazyLoadType: m,
|
|
3868
3866
|
loading: F,
|
|
@@ -3873,16 +3871,16 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3873
3871
|
selectableAcrossPages: B,
|
|
3874
3872
|
stickyPagination: x,
|
|
3875
3873
|
outline: Z,
|
|
3876
|
-
pagination:
|
|
3877
|
-
zebraRows:
|
|
3878
|
-
} = Et(t), ve = E(-1), { t: fe } = We({ messages: vt }),
|
|
3879
|
-
rt(tt,
|
|
3880
|
-
const
|
|
3881
|
-
|
|
3882
|
-
typeof window < "u" && (
|
|
3883
|
-
}), rt(gt,
|
|
3874
|
+
pagination: le,
|
|
3875
|
+
zebraRows: we
|
|
3876
|
+
} = Et(t), ve = E(-1), { t: fe } = We({ messages: vt }), ne = C(() => U.value.filter(($) => $.frozen).length), q = 550, Re = E(), { width: y } = Fn(Re), Q = C(() => y.value <= q);
|
|
3877
|
+
rt(tt, Q);
|
|
3878
|
+
const J = E(!1);
|
|
3879
|
+
Xe(() => {
|
|
3880
|
+
typeof window < "u" && (J.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
3881
|
+
}), rt(gt, J);
|
|
3884
3882
|
const ee = Pe(
|
|
3885
|
-
|
|
3883
|
+
Mn,
|
|
3886
3884
|
() => ({
|
|
3887
3885
|
additionalContentSlotRef: E(null),
|
|
3888
3886
|
isDataGridTemplate: !1,
|
|
@@ -3894,13 +3892,13 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3894
3892
|
columnDefs: U,
|
|
3895
3893
|
onColumnWidthOverride: Ce,
|
|
3896
3894
|
gridRowWidthStyle: me,
|
|
3897
|
-
isMeasuringColumnWidths:
|
|
3895
|
+
isMeasuringColumnWidths: w,
|
|
3898
3896
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: I,
|
|
3899
3897
|
columns: te,
|
|
3900
|
-
totalWidthOfAllColumns:
|
|
3898
|
+
totalWidthOfAllColumns: oe,
|
|
3901
3899
|
rowActionsMaxWidth: ae
|
|
3902
|
-
} =
|
|
3903
|
-
hasColumnPanel:
|
|
3900
|
+
} = co(k, M, n, f, b, {
|
|
3901
|
+
hasColumnPanel: R,
|
|
3904
3902
|
hasSelectableColumn: g,
|
|
3905
3903
|
hasSelectableAcrossPages: B,
|
|
3906
3904
|
hasNestedContent: h,
|
|
@@ -3916,159 +3914,159 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
3916
3914
|
Ve
|
|
3917
3915
|
), mt = C(
|
|
3918
3916
|
() => t.stickyFilters ? `${He.value}px` : null
|
|
3919
|
-
), De = qt(N,
|
|
3917
|
+
), De = qt(N, bt(t, "stickyFilters")), Qe = C(
|
|
3920
3918
|
() => `${De.value + He.value}px`
|
|
3921
3919
|
), {
|
|
3922
|
-
sortedColumns:
|
|
3923
|
-
columnSets:
|
|
3924
|
-
isOnlyOneVisibleColumn:
|
|
3920
|
+
sortedColumns: lt,
|
|
3921
|
+
columnSets: nt,
|
|
3922
|
+
isOnlyOneVisibleColumn: Il,
|
|
3925
3923
|
internalZebraRows: ht,
|
|
3926
|
-
onConfigSettingsColumnsUpdate:
|
|
3927
|
-
onConfigSettingsColumnUpdate:
|
|
3928
|
-
onConfigSettingsCondensedUpdate:
|
|
3929
|
-
onConfigSettingsZebraRowsUpdate:
|
|
3930
|
-
} =
|
|
3931
|
-
|
|
3924
|
+
onConfigSettingsColumnsUpdate: $l,
|
|
3925
|
+
onConfigSettingsColumnUpdate: Dl,
|
|
3926
|
+
onConfigSettingsCondensedUpdate: kl,
|
|
3927
|
+
onConfigSettingsZebraRowsUpdate: Ul
|
|
3928
|
+
} = _o(U, we, K), { hoveredOverColumn: Ml, hoveredOverColumnState: Nt } = wo(
|
|
3929
|
+
nt,
|
|
3932
3930
|
g,
|
|
3933
3931
|
Z,
|
|
3934
3932
|
I
|
|
3935
|
-
), { draggingColumns: It, draggingEventsForColumns:
|
|
3933
|
+
), { draggingColumns: It, draggingEventsForColumns: Fl, draggingEventsForRowCell: zl, onMoveColumnByOffset: Pl } = Co(lt, O, K), $t = C(
|
|
3936
3934
|
() => {
|
|
3937
3935
|
var $;
|
|
3938
3936
|
return (($ = t.data) == null ? void 0 : $.length) > 0 && !!t.selectableAcrossPages && !!t.pagination && t.pagination.totalCount > 0;
|
|
3939
3937
|
}
|
|
3940
3938
|
), {
|
|
3941
|
-
onAllRowSelect:
|
|
3942
|
-
onRowSelect:
|
|
3943
|
-
onNestedRowSelect:
|
|
3939
|
+
onAllRowSelect: Bl,
|
|
3940
|
+
onRowSelect: Wl,
|
|
3941
|
+
onNestedRowSelect: Vl,
|
|
3944
3942
|
onDeselectAll: Dt,
|
|
3945
|
-
allItemsSelectedState:
|
|
3943
|
+
allItemsSelectedState: Hl,
|
|
3946
3944
|
selectedItems: Ct,
|
|
3947
|
-
selectionState:
|
|
3948
|
-
} =
|
|
3945
|
+
selectionState: Gl
|
|
3946
|
+
} = fo(
|
|
3949
3947
|
T,
|
|
3950
3948
|
K,
|
|
3951
3949
|
M,
|
|
3952
3950
|
t.getDataItemId,
|
|
3953
3951
|
t.isDataItemDisabled,
|
|
3954
3952
|
$t,
|
|
3955
|
-
|
|
3956
|
-
),
|
|
3953
|
+
le
|
|
3954
|
+
), xl = C(() => {
|
|
3957
3955
|
var $, P, de, j;
|
|
3958
3956
|
return {
|
|
3959
3957
|
filtered: (($ = D.value) == null ? void 0 : $.isClearAllVisible) || ((P = D.value) == null ? void 0 : P.isResetAllVisible) || !!t.filterSearchTerm,
|
|
3960
|
-
allRowsVisible: ((de =
|
|
3958
|
+
allRowsVisible: ((de = le.value) == null ? void 0 : de.size) >= ((j = le.value) == null ? void 0 : j.totalCount)
|
|
3961
3959
|
};
|
|
3962
|
-
}), { navigationInput: ot } =
|
|
3963
|
-
|
|
3960
|
+
}), { navigationInput: ot } = vo(
|
|
3961
|
+
b,
|
|
3964
3962
|
f,
|
|
3965
|
-
|
|
3963
|
+
lt,
|
|
3966
3964
|
g,
|
|
3967
3965
|
C(() => t.rowActions !== void 0),
|
|
3968
|
-
|
|
3969
|
-
), { isLazyLoad:
|
|
3966
|
+
R
|
|
3967
|
+
), { isLazyLoad: qe, isInfiniteScroll: Zl, verticalScrollPosition: jl, emitLazyLoadEvent: ql } = ho(
|
|
3970
3968
|
m,
|
|
3971
3969
|
c,
|
|
3972
|
-
|
|
3970
|
+
n,
|
|
3973
3971
|
F,
|
|
3974
3972
|
K
|
|
3975
3973
|
), {
|
|
3976
3974
|
updateScrollPosition: st,
|
|
3977
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
3975
|
+
updateScrollPositionOnFrozenColumnsNavigation: Kl,
|
|
3978
3976
|
syncVirtualScrollerWithBody: kt,
|
|
3979
3977
|
hasLeftOverflow: at,
|
|
3980
3978
|
hasRightOverflow: Ut,
|
|
3981
|
-
horizontalScrollbarConditionalStyles:
|
|
3982
|
-
} =
|
|
3983
|
-
|
|
3979
|
+
horizontalScrollbarConditionalStyles: Yl
|
|
3980
|
+
} = bo(
|
|
3981
|
+
n,
|
|
3984
3982
|
v,
|
|
3985
|
-
|
|
3983
|
+
jl,
|
|
3986
3984
|
A,
|
|
3987
3985
|
S,
|
|
3988
|
-
|
|
3986
|
+
oe,
|
|
3989
3987
|
{
|
|
3990
|
-
isLazyLoad:
|
|
3991
|
-
pagination:
|
|
3988
|
+
isLazyLoad: qe,
|
|
3989
|
+
pagination: le,
|
|
3992
3990
|
stickyPagination: x,
|
|
3993
3991
|
isDataGridTemplate: Te
|
|
3994
3992
|
}
|
|
3995
|
-
),
|
|
3993
|
+
), Jl = () => {
|
|
3996
3994
|
D.value.isClearAllVisible ? D.value.clearAllFilters() : D.value.isResetAllVisible && D.value.resetAllFilters();
|
|
3997
|
-
},
|
|
3995
|
+
}, Xl = C(() => {
|
|
3998
3996
|
var $, P;
|
|
3999
3997
|
return {
|
|
4000
3998
|
...t.emptyState,
|
|
4001
3999
|
variant: (($ = t.emptyState) == null ? void 0 : $.variant) === "embedded" || ((P = t.emptyState) == null ? void 0 : P.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
4002
4000
|
};
|
|
4003
|
-
}),
|
|
4001
|
+
}), Ql = C(() => ({
|
|
4004
4002
|
[`b-data-grid--${Me.OUTLINE}`]: t.outline,
|
|
4005
|
-
[`b-data-grid--${Me.SCROLL}`]: t.fitContent ||
|
|
4003
|
+
[`b-data-grid--${Me.SCROLL}`]: t.fitContent || qe.value,
|
|
4006
4004
|
[`b-data-grid--${Me.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
4007
|
-
[`b-data-grid--${Me.OVERFLOW_SHADOW_LEFT}`]: at.value && !
|
|
4005
|
+
[`b-data-grid--${Me.OVERFLOW_SHADOW_LEFT}`]: at.value && !ne.value,
|
|
4008
4006
|
[`b-data-grid--${Me.OVERFLOW_SHADOW_RIGHT}`]: Ut.value && t.rowActions === void 0,
|
|
4009
4007
|
[`b-data-grid--${Me.NO_SPACING_TOP}`]: t.noSpacingTop,
|
|
4010
4008
|
[`b-data-grid--${Me.FIT_CONTENT}`]: t.fitContent,
|
|
4011
4009
|
[`b-data-grid--${Me.ZEBRA_ROWS}`]: ht.value,
|
|
4012
|
-
"b-data-grid--lazy-load":
|
|
4013
|
-
})),
|
|
4010
|
+
"b-data-grid--lazy-load": qe.value
|
|
4011
|
+
})), en = C(() => ({
|
|
4014
4012
|
"b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
|
|
4015
|
-
})),
|
|
4013
|
+
})), tn = C(() => nt.value.findIndex(($) => $.columnSet.length)), Mt = C(() => !((t.selectable || t.hasNestedContent || t.hasNestedRows) && ne.value === 1) || at.value), ln = C(() => ({
|
|
4016
4014
|
"b-data-grid__filters--sticky": !!t.stickyFilters || Te
|
|
4017
|
-
})),
|
|
4018
|
-
var $, P, de, j,
|
|
4015
|
+
})), nn = C(() => {
|
|
4016
|
+
var $, P, de, j, Le, ke;
|
|
4019
4017
|
return {
|
|
4020
4018
|
"b-data-grid__pagination--padding-left-unset": ((de = (P = ($ = t.columns) == null ? void 0 : $[0]) == null ? void 0 : P.padding) == null ? void 0 : de.left) === !1,
|
|
4021
|
-
"b-data-grid__pagination--padding-right-unset": ((ke = (
|
|
4019
|
+
"b-data-grid__pagination--padding-right-unset": ((ke = (Le = (j = t.columns) == null ? void 0 : j[t.columns.length - 1]) == null ? void 0 : Le.padding) == null ? void 0 : ke.right) === !1,
|
|
4022
4020
|
"b-data-grid__pagination--sticky": !!t.stickyPagination || Te
|
|
4023
4021
|
};
|
|
4024
|
-
}),
|
|
4022
|
+
}), on = ($) => {
|
|
4025
4023
|
const P = $;
|
|
4026
4024
|
$ !== null && (P != null && P.columnHeaderRefs) && Object.entries(P == null ? void 0 : P.columnHeaderRefs).forEach(([de, j]) => {
|
|
4027
4025
|
f.value[de] = j;
|
|
4028
4026
|
});
|
|
4029
|
-
},
|
|
4030
|
-
var j,
|
|
4027
|
+
}, sn = ($, P) => {
|
|
4028
|
+
var j, Le, ke, xe;
|
|
4031
4029
|
const de = $;
|
|
4032
4030
|
if ($ !== null && de != null && de.gridcellRefs) {
|
|
4033
|
-
const
|
|
4034
|
-
Object.entries(de == null ? void 0 : de.gridcellRefs).map(([Se,
|
|
4031
|
+
const $e = t.rowActions !== void 0 && (de == null ? void 0 : de.rowActionsRef);
|
|
4032
|
+
Object.entries(de == null ? void 0 : de.gridcellRefs).map(([Se, Ke]) => {
|
|
4035
4033
|
var it;
|
|
4036
|
-
((it =
|
|
4037
|
-
}),
|
|
4034
|
+
((it = b.value) == null ? void 0 : it[Se]) === void 0 && (b.value = { ...b.value, [Se]: [] }), b.value[Se][P] = Ke;
|
|
4035
|
+
}), $e && (((j = b.value) == null ? void 0 : j[et]) === void 0 && (b.value = { ...b.value, [et]: [] }), b.value[et][P] = (Le = de.rowActionsRef) == null ? void 0 : Le[0], ae.value = Math.max(
|
|
4038
4036
|
ae.value,
|
|
4039
4037
|
((xe = (ke = de.rowActionsRef) == null ? void 0 : ke[0]) == null ? void 0 : xe.offsetWidth) ?? 0
|
|
4040
4038
|
));
|
|
4041
4039
|
}
|
|
4042
|
-
},
|
|
4040
|
+
}, an = ($, P) => {
|
|
4043
4041
|
t.allowRowClicks && K(z.ROW_CLICK, $, P);
|
|
4044
|
-
},
|
|
4042
|
+
}, rn = ($) => {
|
|
4045
4043
|
ve.value = $;
|
|
4046
|
-
},
|
|
4044
|
+
}, dn = C(() => t.hasNestedContent || t.hasNestedRows ? "treegrid" : "grid"), Ft = C(() => {
|
|
4047
4045
|
var $;
|
|
4048
4046
|
return (($ = Ct.value) == null ? void 0 : $.length) ?? 0;
|
|
4049
|
-
}),
|
|
4047
|
+
}), un = C(() => t.bulkActions && Ft.value > 0), cn = ($) => K(z.COLUMN_RESIZE, $), fn = ($) => {
|
|
4050
4048
|
K(z.UPDATE_SORT_BY, $), K(z.SORT, $);
|
|
4051
|
-
},
|
|
4049
|
+
}, gn = ($, P) => {
|
|
4052
4050
|
K(z.NAVIGATE, $), K(z.UPDATE_PAGINATION, {
|
|
4053
4051
|
...t.pagination,
|
|
4054
4052
|
size: P,
|
|
4055
4053
|
page: $
|
|
4056
4054
|
});
|
|
4057
|
-
},
|
|
4055
|
+
}, vn = ($) => {
|
|
4058
4056
|
K(z.ITEMS_PAGE, $);
|
|
4059
|
-
},
|
|
4057
|
+
}, mn = () => {
|
|
4060
4058
|
K(z.FILTER_SEARCH_CLEAR);
|
|
4061
|
-
},
|
|
4059
|
+
}, hn = ($) => {
|
|
4062
4060
|
K(z.UPDATE_FILTER_SEARCH_TERM, $), K(z.FILTER_SEARCH_INPUT, $);
|
|
4063
4061
|
};
|
|
4064
|
-
return C(() => k.value.some(($) => $.mandatory)).value ||
|
|
4062
|
+
return C(() => k.value.some(($) => $.mandatory)).value || ml(
|
|
4065
4063
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
4066
|
-
), Pe(
|
|
4064
|
+
), Pe(Un, () => null)(t.tabTitle), rt(yl, bt(t, "slashedZero")), s({ onEmptyStateClearResetButtonClick: Jl }), ($, P) => {
|
|
4067
4065
|
var de;
|
|
4068
4066
|
return r(), p("div", {
|
|
4069
4067
|
ref_key: "dataGridRef",
|
|
4070
|
-
ref:
|
|
4071
|
-
class: ce(["b-data-grid",
|
|
4068
|
+
ref: Re,
|
|
4069
|
+
class: ce(["b-data-grid", Ql.value]),
|
|
4072
4070
|
"data-testid": "data-grid",
|
|
4073
4071
|
"aria-live": "polite",
|
|
4074
4072
|
"aria-busy": o(F),
|
|
@@ -4079,13 +4077,13 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4079
4077
|
key: 0,
|
|
4080
4078
|
ref_key: "filtersRef",
|
|
4081
4079
|
ref: N,
|
|
4082
|
-
class: ce(["b-data-grid__filters",
|
|
4080
|
+
class: ce(["b-data-grid__filters", ln.value]),
|
|
4083
4081
|
style: Fe({ top: mt.value }),
|
|
4084
|
-
"aria-controls":
|
|
4082
|
+
"aria-controls": _.value,
|
|
4085
4083
|
"aria-label": o(fe)("filterBar"),
|
|
4086
4084
|
role: "region"
|
|
4087
4085
|
}, [
|
|
4088
|
-
e.filters ? (r(), H(o(
|
|
4086
|
+
e.filters ? (r(), H(o(_t), {
|
|
4089
4087
|
key: 0,
|
|
4090
4088
|
ref_key: "filterBarRef",
|
|
4091
4089
|
ref: D,
|
|
@@ -4095,30 +4093,30 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4095
4093
|
"filter-values-object": e.filterValuesObject,
|
|
4096
4094
|
search: e.filterSearchConfig,
|
|
4097
4095
|
"search-term": e.filterSearchTerm,
|
|
4098
|
-
onSearchInput:
|
|
4099
|
-
onSearchClear:
|
|
4096
|
+
onSearchInput: hn,
|
|
4097
|
+
onSearchClear: mn,
|
|
4100
4098
|
onInput: P[0] || (P[0] = (j) => $.$emit(o(z).UPDATE_FILTERS, j)),
|
|
4101
4099
|
"onUpdate:filterValues": P[1] || (P[1] = (j) => $.$emit(o(z).UPDATE_FILTER_VALUES, j)),
|
|
4102
4100
|
"onUpdate:filterValuesObject": P[2] || (P[2] = (j) => $.$emit(o(z).UPDATE_FILTER_VALUES_OBJECT, j))
|
|
4103
4101
|
}, null, 8, ["config", "container-size-layout", "filter-values", "filter-values-object", "search", "search-term"])) : W("", !0)
|
|
4104
|
-
], 14,
|
|
4105
|
-
$.$slots.header ? (r(), p("div",
|
|
4102
|
+
], 14, Ta)) : W("", !0),
|
|
4103
|
+
$.$slots.header ? (r(), p("div", Oa, [
|
|
4106
4104
|
ze($.$slots, "header", {}, void 0, !0)
|
|
4107
4105
|
])) : W("", !0),
|
|
4108
|
-
|
|
4109
|
-
id:
|
|
4110
|
-
role:
|
|
4106
|
+
L("div", {
|
|
4107
|
+
id: _.value,
|
|
4108
|
+
role: dn.value,
|
|
4111
4109
|
"aria-rowcount": o(M).length,
|
|
4112
4110
|
"aria-colcount": o(k).length,
|
|
4113
4111
|
"aria-label": e.emptyState ? o(fe)("noResults") : null,
|
|
4114
4112
|
class: "b-data-grid__wrapper",
|
|
4115
4113
|
style: Fe({ top: Qe.value })
|
|
4116
4114
|
}, [
|
|
4117
|
-
|
|
4115
|
+
L("div", {
|
|
4118
4116
|
class: "b-data-grid__column-headers",
|
|
4119
4117
|
style: Fe({ top: Qe.value })
|
|
4120
4118
|
}, [
|
|
4121
|
-
|
|
4119
|
+
L("div", {
|
|
4122
4120
|
ref_key: "columnsRef",
|
|
4123
4121
|
ref: v,
|
|
4124
4122
|
role: "rowgroup",
|
|
@@ -4128,68 +4126,68 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4128
4126
|
onKeydown: P[8] || (P[8] = //@ts-ignore
|
|
4129
4127
|
(...j) => o(ot) && o(ot)(...j))
|
|
4130
4128
|
}, [
|
|
4131
|
-
o(
|
|
4132
|
-
|
|
4129
|
+
o(R) ? (r(), p("div", Ia, [
|
|
4130
|
+
Y(o(Os), {
|
|
4133
4131
|
class: "b-data-grid__config-settings",
|
|
4134
4132
|
role: "gridcell",
|
|
4135
4133
|
columns: o(te),
|
|
4136
4134
|
condensed: e.condensed,
|
|
4137
4135
|
"zebra-rows": o(ht),
|
|
4138
|
-
"onUpdate:condensed": o(
|
|
4139
|
-
"onUpdate:zebraRows": o(
|
|
4140
|
-
"onUpdate:columns": o(
|
|
4136
|
+
"onUpdate:condensed": o(kl),
|
|
4137
|
+
"onUpdate:zebraRows": o(Ul),
|
|
4138
|
+
"onUpdate:columns": o($l)
|
|
4141
4139
|
}, null, 8, ["columns", "condensed", "zebra-rows", "onUpdate:condensed", "onUpdate:zebraRows", "onUpdate:columns"])
|
|
4142
4140
|
])) : W("", !0),
|
|
4143
|
-
|
|
4141
|
+
L("div", {
|
|
4144
4142
|
style: Fe(o(me)),
|
|
4145
4143
|
class: "b-data-grid__columns",
|
|
4146
4144
|
role: "row"
|
|
4147
4145
|
}, [
|
|
4148
|
-
(r(!0), p(
|
|
4149
|
-
var
|
|
4150
|
-
return r(), p(
|
|
4151
|
-
j != null && j.length ? (r(), H(o(
|
|
4152
|
-
key: `data-grid-columns-${
|
|
4146
|
+
(r(!0), p(be, null, Ae(o(nt), ({ columnSet: j, id: Le, isFrozenColumns: ke }, xe) => {
|
|
4147
|
+
var $e;
|
|
4148
|
+
return r(), p(be, null, [
|
|
4149
|
+
j != null && j.length ? (r(), H(o(ss), se({
|
|
4150
|
+
key: `data-grid-columns-${Le}`,
|
|
4153
4151
|
ref_for: !0,
|
|
4154
|
-
ref: (Se) =>
|
|
4152
|
+
ref: (Se) => on(Se),
|
|
4155
4153
|
columns: j,
|
|
4156
4154
|
"has-resizable-columns": e.hasResizableColumns,
|
|
4157
4155
|
"sort-by": e.sortBy,
|
|
4158
|
-
"all-items-selected-state": o(
|
|
4156
|
+
"all-items-selected-state": o(Hl),
|
|
4159
4157
|
"is-frozen-columns": ke,
|
|
4160
4158
|
"show-frozen-columns-separator": Mt.value,
|
|
4161
4159
|
"dragging-columns": o(It),
|
|
4162
4160
|
"has-draggable-columns": o(O),
|
|
4163
|
-
"has-column-panel": o(
|
|
4161
|
+
"has-column-panel": o(R),
|
|
4164
4162
|
"has-left-overflow": o(at),
|
|
4165
|
-
"has-first-column-panel-right-aligned": xe ===
|
|
4163
|
+
"has-first-column-panel-right-aligned": xe === tn.value,
|
|
4166
4164
|
"hovered-over-column-state": o(Nt),
|
|
4167
|
-
"is-measuring-column-widths": o(
|
|
4168
|
-
"is-only-one-visible-column": o(
|
|
4169
|
-
selectable: ((
|
|
4165
|
+
"is-measuring-column-widths": o(w),
|
|
4166
|
+
"is-only-one-visible-column": o(Il),
|
|
4167
|
+
selectable: (($e = o(M)) == null ? void 0 : $e.length) > 0 && o(g),
|
|
4170
4168
|
"selectable-across-pages": $t.value,
|
|
4171
4169
|
"selected-items": o(Ct),
|
|
4172
|
-
"visible-rows-state":
|
|
4173
|
-
"selection-state": o(
|
|
4170
|
+
"visible-rows-state": xl.value,
|
|
4171
|
+
"selection-state": o(Gl),
|
|
4174
4172
|
"truncate-column-headers": e.truncateColumnHeaders,
|
|
4175
4173
|
"row-actions-maximum-width": o(ae)
|
|
4176
|
-
}, ft(o(
|
|
4177
|
-
onColumnHover: P[3] || (P[3] = (Se) =>
|
|
4178
|
-
onColumnMove: o(
|
|
4179
|
-
onColumnUpdate: o(
|
|
4180
|
-
onColumnResize:
|
|
4174
|
+
}, ft(o(Fl)), {
|
|
4175
|
+
onColumnHover: P[3] || (P[3] = (Se) => Ml.value = Se),
|
|
4176
|
+
onColumnMove: o(Pl),
|
|
4177
|
+
onColumnUpdate: o(Dl),
|
|
4178
|
+
onColumnResize: cn,
|
|
4181
4179
|
onColumnResizing: o(Ce),
|
|
4182
|
-
onSelectAllRows: o(
|
|
4180
|
+
onSelectAllRows: o(Bl),
|
|
4183
4181
|
onSelectAllAcrossPages: P[4] || (P[4] = (Se) => K(o(z).SELECT_ALL_ACROSS_PAGES)),
|
|
4184
4182
|
onSelectAllCurrentResults: P[5] || (P[5] = (Se) => K(o(z).SELECT_ALL_CURRENT_RESULTS)),
|
|
4185
4183
|
onDeselectAllCurrentResults: P[6] || (P[6] = (Se) => K(o(z).DESELECT_ALL_CURRENT_RESULTS)),
|
|
4186
4184
|
onDeselectAll: o(Dt),
|
|
4187
|
-
onSort:
|
|
4188
|
-
}),
|
|
4189
|
-
Ae(o(u), (Se,
|
|
4190
|
-
name:
|
|
4185
|
+
onSort: fn
|
|
4186
|
+
}), Je({ _: 2 }, [
|
|
4187
|
+
Ae(o(u), (Se, Ke) => ({
|
|
4188
|
+
name: Ke,
|
|
4191
4189
|
fn: G((it) => [
|
|
4192
|
-
ze($.$slots,
|
|
4190
|
+
ze($.$slots, Ke, se({ ref_for: !0 }, it), void 0, !0)
|
|
4193
4191
|
])
|
|
4194
4192
|
}))
|
|
4195
4193
|
]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "selected-items", "visible-rows-state", "selection-state", "truncate-column-headers", "row-actions-maximum-width", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows", "onDeselectAll"])) : W("", !0)
|
|
@@ -4198,25 +4196,25 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4198
4196
|
], 4)
|
|
4199
4197
|
], 544)
|
|
4200
4198
|
], 4),
|
|
4201
|
-
|
|
4199
|
+
L("div", {
|
|
4202
4200
|
ref_key: "body",
|
|
4203
|
-
ref:
|
|
4201
|
+
ref: n,
|
|
4204
4202
|
"data-testid": "data-grid-body",
|
|
4205
|
-
class: ce(["b-data-grid__body",
|
|
4203
|
+
class: ce(["b-data-grid__body", en.value]),
|
|
4206
4204
|
onScroll: P[12] || (P[12] = //@ts-ignore
|
|
4207
4205
|
(...j) => o(st) && o(st)(...j))
|
|
4208
4206
|
}, [
|
|
4209
|
-
o(F) && !o(
|
|
4210
|
-
|
|
4207
|
+
o(F) && !o(qe) ? (r(), p("div", $a, [
|
|
4208
|
+
Y(o(ut), {
|
|
4211
4209
|
class: "b-data-grid__loading-indicator",
|
|
4212
4210
|
large: ""
|
|
4213
4211
|
}),
|
|
4214
|
-
|
|
4212
|
+
Y(o(je), {
|
|
4215
4213
|
el: "span",
|
|
4216
4214
|
variant: "caption"
|
|
4217
4215
|
}, {
|
|
4218
4216
|
default: G(() => [
|
|
4219
|
-
ge(
|
|
4217
|
+
ge(X(o(fe)("gettingYourData")), 1)
|
|
4220
4218
|
]),
|
|
4221
4219
|
_: 1
|
|
4222
4220
|
})
|
|
@@ -4226,26 +4224,26 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4226
4224
|
onKeydown: P[11] || (P[11] = //@ts-ignore
|
|
4227
4225
|
(...j) => o(ot) && o(ot)(...j))
|
|
4228
4226
|
}, [
|
|
4229
|
-
((de = o(M)) == null ? void 0 : de.length) === 0 && e.emptyState ? (r(), p("div",
|
|
4230
|
-
|
|
4227
|
+
((de = o(M)) == null ? void 0 : de.length) === 0 && e.emptyState ? (r(), p("div", Da, [
|
|
4228
|
+
L("div", {
|
|
4231
4229
|
role: "gridcell",
|
|
4232
4230
|
"aria-colspan": o(k).length,
|
|
4233
4231
|
tabindex: "-1"
|
|
4234
4232
|
}, [
|
|
4235
|
-
|
|
4236
|
-
], 8,
|
|
4237
|
-
])) : (r(!0), p(
|
|
4233
|
+
Y(o(kn), se({ class: "b-data-grid__empty-state" }, Xl.value), null, 16)
|
|
4234
|
+
], 8, ka)
|
|
4235
|
+
])) : (r(!0), p(be, { key: 1 }, Ae(o(M), (j, Le) => {
|
|
4238
4236
|
var ke, xe;
|
|
4239
|
-
return r(), H(o(
|
|
4240
|
-
key:
|
|
4237
|
+
return r(), H(o(Tl), {
|
|
4238
|
+
key: Le,
|
|
4241
4239
|
ref_for: !0,
|
|
4242
|
-
ref: (
|
|
4240
|
+
ref: ($e) => sn($e, Le),
|
|
4243
4241
|
style: Fe(o(me)),
|
|
4244
4242
|
"allow-row-clicks": e.allowRowClicks,
|
|
4245
|
-
"column-sets": o(
|
|
4243
|
+
"column-sets": o(nt),
|
|
4246
4244
|
condensed: e.condensed,
|
|
4247
4245
|
"dragging-columns": o(It),
|
|
4248
|
-
"dragging-events-for-row-cell": o(
|
|
4246
|
+
"dragging-events-for-row-cell": o(zl),
|
|
4249
4247
|
"get-data-item-id": e.getDataItemId,
|
|
4250
4248
|
"has-nested-content": o(h),
|
|
4251
4249
|
"has-nested-rows": o(a),
|
|
@@ -4255,43 +4253,43 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4255
4253
|
"hovered-row-index": ve.value,
|
|
4256
4254
|
"hovered-over-column-state": o(Nt),
|
|
4257
4255
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
4258
|
-
"is-row-even": o(ht) ?
|
|
4259
|
-
"is-row-last-child":
|
|
4260
|
-
"is-measuring-column-widths": o(
|
|
4256
|
+
"is-row-even": o(ht) ? Le % 2 !== 0 : !1,
|
|
4257
|
+
"is-row-last-child": Le + 1 === ((ke = o(M)) == null ? void 0 : ke.length),
|
|
4258
|
+
"is-measuring-column-widths": o(w),
|
|
4261
4259
|
"row-actions-maximum-width": o(ae),
|
|
4262
4260
|
"row-actions": e.rowActions,
|
|
4263
4261
|
"row-data": j,
|
|
4264
|
-
"row-index":
|
|
4262
|
+
"row-index": Le,
|
|
4265
4263
|
"row-set-size": (xe = o(M)) == null ? void 0 : xe.length,
|
|
4266
4264
|
"show-frozen-columns-separator": Mt.value,
|
|
4267
4265
|
"should-show-nested-content": e.shouldShowNestedContent,
|
|
4268
4266
|
"should-show-nested-rows": e.shouldShowNestedRows,
|
|
4269
4267
|
selectable: o(g),
|
|
4270
4268
|
"selected-items": o(Ct),
|
|
4271
|
-
onCellHovered:
|
|
4272
|
-
onCellFocus: P[9] || (P[9] = (
|
|
4273
|
-
onNestedContentToggled: P[10] || (P[10] = (
|
|
4274
|
-
onRowClick:
|
|
4275
|
-
onOnFrozenColumnsKeyPress: o(
|
|
4276
|
-
onSelectRow: o(
|
|
4277
|
-
onSelectNestedRow: o(
|
|
4278
|
-
},
|
|
4279
|
-
Ae(o(u), (
|
|
4269
|
+
onCellHovered: rn,
|
|
4270
|
+
onCellFocus: P[9] || (P[9] = ($e) => K(o(z).CELL_FOCUS, $e)),
|
|
4271
|
+
onNestedContentToggled: P[10] || (P[10] = ($e) => K(o(z).NESTED_CONTENT_TOGGLED, $e)),
|
|
4272
|
+
onRowClick: an,
|
|
4273
|
+
onOnFrozenColumnsKeyPress: o(Kl),
|
|
4274
|
+
onSelectRow: o(Wl),
|
|
4275
|
+
onSelectNestedRow: o(Vl)
|
|
4276
|
+
}, Je({ _: 2 }, [
|
|
4277
|
+
Ae(o(u), ($e, Se) => ({
|
|
4280
4278
|
name: Se,
|
|
4281
|
-
fn: G((
|
|
4282
|
-
ze($.$slots, Se,
|
|
4279
|
+
fn: G((Ke) => [
|
|
4280
|
+
ze($.$slots, Se, se({ ref_for: !0 }, Ke), void 0, !0)
|
|
4283
4281
|
])
|
|
4284
4282
|
}))
|
|
4285
4283
|
]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-even", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
|
|
4286
4284
|
}), 128))
|
|
4287
4285
|
], 32))
|
|
4288
4286
|
], 34)
|
|
4289
|
-
], 12,
|
|
4290
|
-
o(
|
|
4287
|
+
], 12, Na),
|
|
4288
|
+
o(qe) ? (r(), H(o(Ds), {
|
|
4291
4289
|
key: 2,
|
|
4292
4290
|
loading: o(F),
|
|
4293
|
-
"is-infinite-scroll": o(
|
|
4294
|
-
"onUpdate:showMore": o(
|
|
4291
|
+
"is-infinite-scroll": o(Zl),
|
|
4292
|
+
"onUpdate:showMore": o(ql)
|
|
4295
4293
|
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : W("", !0),
|
|
4296
4294
|
e.stickyHorizontalScrollbar ? (r(), p("div", {
|
|
4297
4295
|
key: 3,
|
|
@@ -4300,56 +4298,57 @@ const pa = /* @__PURE__ */ ue(wa, [["render", Sa]]), $n = {
|
|
|
4300
4298
|
class: "b-data-grid__horizontal-scrollbar",
|
|
4301
4299
|
"aria-hidden": "true",
|
|
4302
4300
|
"data-testid": "sticky-horizontal-scrollbar",
|
|
4303
|
-
style: Fe(o(
|
|
4301
|
+
style: Fe(o(Yl)),
|
|
4304
4302
|
onScroll: P[13] || (P[13] = //@ts-ignore
|
|
4305
4303
|
(...j) => o(kt) && o(kt)(...j))
|
|
4306
4304
|
}, [
|
|
4307
|
-
|
|
4308
|
-
style: Fe({ width: `${o(
|
|
4305
|
+
L("div", {
|
|
4306
|
+
style: Fe({ width: `${o(oe)}px`, height: "15px" })
|
|
4309
4307
|
}, null, 4)
|
|
4310
4308
|
], 36)) : W("", !0),
|
|
4311
|
-
o(
|
|
4309
|
+
o(le) && !o(qe) ? (r(), p("div", {
|
|
4312
4310
|
key: 4,
|
|
4313
4311
|
ref_key: "paginationContainerRef",
|
|
4314
4312
|
ref: S,
|
|
4315
4313
|
"data-testid": "pagination-container",
|
|
4316
|
-
class: ce(["b-data-grid__pagination",
|
|
4314
|
+
class: ce(["b-data-grid__pagination", nn.value])
|
|
4317
4315
|
}, [
|
|
4318
|
-
|
|
4316
|
+
Y(o(Dn), se(o(le), {
|
|
4319
4317
|
"aria-label": $.$t("pagination"),
|
|
4320
|
-
"aria-controls":
|
|
4321
|
-
onNavigate:
|
|
4322
|
-
onItemsPage:
|
|
4318
|
+
"aria-controls": _.value,
|
|
4319
|
+
onNavigate: gn,
|
|
4320
|
+
onItemsPage: vn
|
|
4323
4321
|
}), {
|
|
4324
4322
|
default: G(() => [
|
|
4325
|
-
o(
|
|
4323
|
+
o(l)("pagination-slot") ? ze($.$slots, "pagination-slot", { key: 0 }, void 0, !0) : W("", !0)
|
|
4326
4324
|
]),
|
|
4327
4325
|
_: 3
|
|
4328
4326
|
}, 16, ["aria-label", "aria-controls"])
|
|
4329
4327
|
], 2)) : W("", !0),
|
|
4330
|
-
$.$slots.footer ? (r(), p("div",
|
|
4328
|
+
$.$slots.footer ? (r(), p("div", Ua, [
|
|
4331
4329
|
ze($.$slots, "footer", {}, void 0, !0)
|
|
4332
4330
|
])) : W("", !0),
|
|
4333
|
-
|
|
4331
|
+
un.value ? (r(), H(o($n), {
|
|
4334
4332
|
key: 6,
|
|
4335
4333
|
actions: e.bulkActions,
|
|
4336
4334
|
"item-counter": Ft.value,
|
|
4337
4335
|
"extra-bottom-spacing": o(x),
|
|
4338
4336
|
onClose: o(Dt)
|
|
4339
4337
|
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing", "onClose"])) : W("", !0)
|
|
4340
|
-
], 42,
|
|
4338
|
+
], 42, Aa);
|
|
4341
4339
|
};
|
|
4342
4340
|
}
|
|
4343
|
-
}),
|
|
4341
|
+
}), Ui = /* @__PURE__ */ ue(Fa, [["__scopeId", "data-v-930b9600"]]);
|
|
4344
4342
|
export {
|
|
4345
4343
|
Me as B,
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4344
|
+
Ii as a,
|
|
4345
|
+
$i as b,
|
|
4346
|
+
Di as c,
|
|
4347
|
+
Ui as d,
|
|
4348
|
+
ki as e,
|
|
4349
|
+
Ge as f,
|
|
4350
|
+
z as g,
|
|
4351
|
+
dt as h,
|
|
4352
|
+
St as i
|
|
4354
4353
|
};
|
|
4355
|
-
//# sourceMappingURL=data-grid.
|
|
4354
|
+
//# sourceMappingURL=data-grid.KkCt0Bgm.js.map
|